@ckeditor/ckeditor5-track-changes 44.2.0-alpha.8 → 44.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- 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/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
- package/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/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 +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.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/trackchangesconfig.d.ts +8 -4
- 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,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Yt,Plugin as
|
|
24
|
-
_0x1a5f8e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x99ad50,_0xe40107){super(),this['id']=_0xe40107['id'],this['type']=_0xe40107['type'],this['subType']=_0xe40107['subType']||null,this['author']=_0xe40107['author'],this['creator']=_0xe40107['creator']||_0xe40107['author'],this['isExternal']=Boolean(_0xe40107['attributes']&&_0xe40107['attributes']['@external']),this['data']=null,this['_model']=_0x99ad50,this['_onAccept']=_0xe40107['onAccept'],this['_onDiscard']=_0xe40107['onDiscard'],this['_onAttributesChange']=_0xe40107['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe40107['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 _0x478e83=this;for(;_0x478e83['previous'];)_0x478e83=_0x478e83['previous'];return _0x478e83;}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'](_0x5e2191){this['_markerNames']['add'](_0x5e2191);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1dc337=>this['_model']['markers']['get'](_0x1dc337))['filter'](_0x5d8ff2=>_0x5d8ff2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5f02b7=>{for(const _0x46a2b5 of this['getMarkers']())_0x5f02b7['removeMarker'](_0x46a2b5);}),this['_markerNames']['clear']();}['removeMarker'](_0xd205d1){this['_model']['change'](_0x1bbb9e=>{_0x1bbb9e['removeMarker'](_0xd205d1);}),this['_markerNames']['delete'](_0xd205d1);}['addRange'](_0x1a6f18){const _0x9af2f5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x9af2f5),this['_model']['change'](_0x327e29=>{_0x327e29['addMarker'](_0x9af2f5,{'range':_0x1a6f18,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4a0f6c){for(const _0x3f8627 of this['getRanges']())if(_0x3f8627['isIntersecting'](_0x4a0f6c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x57dd18=>_0x57dd18['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5505b9,_0x23a274)=>[..._0x5505b9,..._0x23a274['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x373fbe=this['getRanges']();if(0x1!=_0x373fbe['length'])return null;const _0x24d471=_0x373fbe[0x0],_0x32d52a=_0x24d471['start']['nodeAfter'],_0x110637=_0x24d471['end']['nodeBefore'];return _0x32d52a instanceof _0x3d1b3c?_0x32d52a!=_0x110637?null:_0x32d52a: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 _0x3abf49=[];let _0x53dfb1=this['head'];for(;_0x53dfb1;)_0x3abf49['push'](_0x53dfb1),_0x53dfb1=_0x53dfb1['next'];return _0x3abf49;}['setAttribute'](_0x1b811e,_0x315ccd){const _0x3d575e=_0x6a734b(this['attributes']);_0x1e54d7(_0x3d575e,_0x1b811e,_0x315ccd),_0x3a9f79(_0x3d575e,this['attributes'])||(this['attributes']=_0x3d575e,this['_onAttributesChange'](_0x3d575e));}['removeAttribute'](_0x2dcd6a){const _0x168092=_0x6a734b(this['attributes']);_0x5b5157(_0x168092,_0x2dcd6a),_0x3a9f79(_0x168092,this['attributes'])||(this['attributes']=_0x168092,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 _0x4e0f2a()['substr'](0x1,0x5);}}function o(_0x4c5b8a,_0x9ef78a,_0x11a663){const _0x1300e0=_0x4c5b8a['t'],t=_0x4c5b8a['t'];switch(_0x9ef78a){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',_0x11a663);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x11a663);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x11a663);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x11a663);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x11a663);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',_0x11a663);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x11a663);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',_0x11a663);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x11a663);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x11a663);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x11a663);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x11a663);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x11a663);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x11a663);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x11a663);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x11a663);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x11a663);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x11a663);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x11a663);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x11a663);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x11a663);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x11a663);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x11a663);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x11a663);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'},_0x11a663);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x11a663);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x11a663);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x11a663);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x11a663);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x11a663);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'},_0x11a663);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x11a663);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x11a663);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x11a663);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x11a663);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'},_0x11a663);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x11a663);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'},_0x11a663);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'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'},_0x11a663);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x11a663);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'},_0x11a663);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x11a663);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'},_0x11a663);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x11a663);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x11a663);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'},_0x11a663);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x11a663);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 _0x1300e0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x11a663);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1300e0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x11a663);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x11a663);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'},_0x11a663);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'},_0x11a663);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'},_0x11a663);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x9ef78a;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x121d35,_0x32bb18){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x121d35,this['_locale']=_0x32bb18;}['getDescriptions'](_0x1c4a17){const _0x4f078b=[],_0x4a10b5=new Set(),_0x1ece8a=new Set();for(let _0x42a39a=0x0;_0x42a39a<_0x1c4a17['length'];_0x42a39a++){const _0x4fe9a6=_0x1c4a17[_0x42a39a];if(!_0x4fe9a6['isInContent'])continue;const _0x30839a=this['_handleCustomCallbackDescription'](_0x4fe9a6);if(_0x30839a){if(null!=_0x4fe9a6['subType']){if(_0x4a10b5['has'](_0x4fe9a6['subType']))continue;_0x4a10b5['add'](_0x4fe9a6['subType']);}_0x4f078b['push'](_0x30839a);}else{if('attribute'!=_0x4fe9a6['type'])'insertion'!=_0x4fe9a6['type']&&'deletion'!=_0x4fe9a6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4f078b,_0x4fe9a6,_0x1c4a17[_0x42a39a+0x1]);else{const _0x3ebdae=_0x4fe9a6['data']['key'];if(_0x1ece8a['has'](_0x3ebdae))continue;_0x1ece8a['add'](_0x4fe9a6['data']['key']),_0x3ebdae==m?this['_handleRenameSuggestionDescription'](_0x4f078b,_0x4fe9a6):this['_handleAttributeSuggestionDescription'](_0x4f078b,_0x4fe9a6);}}}return this['_resolveDescriptionItems'](_0x4f078b);}['registerDescriptionCallback'](_0x3ae1e5){this['_customCallbacks']['push'](_0x3ae1e5);}['registerElementLabel'](_0x1723ce,_0x1c6e62,_0x259921=_0x1ed091['normal']){'function'==typeof _0x1723ce?_0x4d5e3a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1723ce,'label':_0x1c6e62,'priority':_0x259921}):this['_itemLabels']['set'](_0x1723ce,_0x1c6e62);}['registerAttributeLabel'](_0x1987e4,_0x4acab9){this['_attributeLabels']['set'](_0x1987e4,_0x4acab9);}['getItemLabel'](_0x1698c1,_0x32ddca=0x1){let _0x4cb7d1;for(const _0x4155ed of this['_itemLabelsCallbacks'])if(_0x4155ed['matchingCallback'](_0x1698c1)){_0x4cb7d1=_0x4155ed['label'];break;}return _0x4cb7d1||(_0x4cb7d1=this['_itemLabels']['get'](_0x1698c1['name'])),_0x4cb7d1?_0x4cb7d1(_0x32ddca):0x1!==_0x32ddca?_0x32ddca+'\x20'+_0x1698c1['name']+'s':''+_0x1698c1['name'];}['_addDescriptionItems'](_0x5d34e5,_0x16fa2c){const _0xb3ad93=_0x16fa2c['getFirstRange']()['getWalker'](),_0x25e816='insertion'==_0x16fa2c['type']?'add':'remove';for(const _0x334668 of _0xb3ad93){const _0x11f064=_0x334668['item'],_0x41a7fd=_0x5d34e5[_0x5d34e5['length']-0x1];if(_0x11f064['is']('$textProxy'))_0x41a7fd&&_0x41a7fd['type']['indexOf']('Container')>-0x1&&_0x5d34e5['pop'](),_0x41a7fd&&'text'==_0x41a7fd['type']?_0x41a7fd[_0x25e816]+=_0x11f064['data']:_0x5d34e5['push']({'type':'text','add':'add'==_0x25e816?_0x11f064['data']:'','remove':'remove'==_0x25e816?_0x11f064['data']:''});else{if(this['_schema']['isObject'](_0x11f064)){const _0x126650=_0x11f064;if(_0x41a7fd&&_0x41a7fd['type']['indexOf']('Container')>-0x1&&_0x5d34e5['pop'](),'elementEnd'==_0x334668['type'])continue;_0x41a7fd&&_0x41a7fd['type']==_0x25e816+'Object'&&_0x41a7fd['element']['name']==_0x126650['name']?_0x41a7fd['quantity']++:_0x5d34e5['push']({'type':_0x25e816+'Object','element':_0x126650,'quantity':0x1}),_0xb3ad93['skip'](_0x361c24=>!('elementEnd'==_0x361c24['type']&&_0x361c24['item']==_0x11f064));}else{if(this['_schema']['checkChild'](_0x11f064,'$text')||_0x11f064['is']('element','softBreak')){const _0x396a6b=_0x11f064;if('add'==_0x25e816&&'elementStart'==_0x334668['type']||'remove'==_0x25e816&&'elementEnd'==_0x334668['type'])continue;if(_0x41a7fd&&-0x1==_0x41a7fd['type']['indexOf']('Container')){'text'==_0x41a7fd['type']&&(_0x41a7fd[_0x25e816]+='\x0a');continue;}let _0x56a504;if(_0x56a504='add'==_0x25e816?_0x396a6b['nextSibling']&&!this['_schema']['isObject'](_0x396a6b['nextSibling'])?_0x396a6b['nextSibling']:null:_0x396a6b['previousSibling']&&!this['_schema']['isObject'](_0x396a6b['previousSibling'])?_0x396a6b['previousSibling']:null,_0x396a6b['isEmpty']||_0x56a504&&_0x56a504['isEmpty']){const _0x6337c6=_0x56a504&&_0x56a504['isEmpty']?_0x56a504:_0x396a6b;_0x41a7fd&&_0x41a7fd['type']==_0x25e816+'EmptyContainer'&&_0x41a7fd['element']['name']==_0x6337c6['name']?_0x41a7fd['quantity']++:_0x5d34e5['push']({'type':_0x25e816+'EmptyContainer','element':_0x6337c6,'quantity':0x1});}else _0x5d34e5['push']({'type':_0x25e816+'Container','element':_0x396a6b});}}}}}['_resolveDescriptionItems'](_0x49f77b){const _0x7622e0=this['_locale'],_0x5a4ed2=[],_0x29c6cc=[],_0x23652e=[];for(const _0x4aae4c of _0x49f77b)switch(_0x4aae4c['type']){case'text':if(_0x4aae4c['add']=_0x4aae4c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4aae4c['remove']=_0x4aae4c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4aae4c['add']&&''!=_0x4aae4c['remove']){_0x5a4ed2['push']({'type':'replace','content':o(_0x7622e0,'REPLACE_TEXT',['\x22'+_0x4aae4c['remove']+'\x22','\x22'+_0x4aae4c['add']+'\x22'])});continue;}if(null!=_0x4aae4c['add']['match'](/^ +$/)){_0x5a4ed2['push']({'type':'insertion','content':o(_0x7622e0,'*Insert:*\x20%0',o(_0x7622e0,'ELEMENT_SPACE',_0x4aae4c['add']['length']))});continue;}if(null!=_0x4aae4c['remove']['match'](/^ +$/)){_0x5a4ed2['push']({'type':'deletion','content':o(_0x7622e0,'*Remove:*\x20%0',o(_0x7622e0,'ELEMENT_SPACE',_0x4aae4c['remove']['length']))});continue;}if(''!=_0x4aae4c['add']){_0x5a4ed2['push']({'type':'insertion','content':o(_0x7622e0,'*Insert:*\x20%0','\x22'+_0x4aae4c['add']+'\x22')});continue;}_0x5a4ed2['push']({'type':'deletion','content':o(_0x7622e0,'*Remove:*\x20%0','\x22'+_0x4aae4c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5a4ed2['push']({'type':'insertion','content':o(_0x7622e0,'*Insert:*\x20%0',this['getItemLabel'](_0x4aae4c['element'],_0x4aae4c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5a4ed2['push']({'type':'deletion','content':o(_0x7622e0,'*Remove:*\x20%0',this['getItemLabel'](_0x4aae4c['element'],_0x4aae4c['quantity']))});continue;case'addContainer':_0x5a4ed2['push']({'type':'insertion','content':o(_0x7622e0,'*Split:*\x20%0',this['getItemLabel'](_0x4aae4c['element'],_0x4aae4c['quantity']))});continue;case'removeContainer':_0x5a4ed2['push']({'type':'deletion','content':o(_0x7622e0,'*Merge:*\x20%0',this['getItemLabel'](_0x4aae4c['element'],_0x4aae4c['quantity']))});continue;case'addFormat':_0x29c6cc['push'](_0x4aae4c['key']);continue;case'removeFormat':_0x23652e['push'](_0x4aae4c['key']);continue;default:_0x5a4ed2['push'](_0x4aae4c);}if(_0x29c6cc['length']){const _0x4051a8=_0x29c6cc['map'](_0x3a3d74=>this['_attributeLabels']['has'](_0x3a3d74)?this['_attributeLabels']['get'](_0x3a3d74):_0x3a3d74)['join'](',\x20');_0x5a4ed2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4051a8)});}if(_0x23652e['length']){const _0x211f1a=_0x23652e['map'](_0x26a40c=>this['_attributeLabels']['has'](_0x26a40c)?this['_attributeLabels']['get'](_0x26a40c):_0x26a40c)['join'](',\x20');_0x5a4ed2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x211f1a)});}return _0x5a4ed2;}['_handleCustomCallbackDescription'](_0x9c1472){for(const _0x285890 of this['_customCallbacks']){const _0x3442ee=_0x285890(_0x9c1472);if(_0x3442ee&&'type'in _0x3442ee)return _0x3442ee;}}['_handleAttributeSuggestionDescription'](_0x1da3be,_0x779a3){const _0x15d179=_0x779a3['data'],_0x4df2ed=void 0x0===_0x15d179['newValue']?'removeFormat':'addFormat';_0x1da3be['push']({'type':_0x4df2ed,'key':_0x15d179['key']});}['_handleRenameSuggestionDescription'](_0x5ddbe2,_0x7bc929){_0x5ddbe2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x7bc929['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xde8b4c,_0x128e9c,_0x27c5f1){if(this['_addDescriptionItems'](_0xde8b4c,_0x128e9c),_0x27c5f1&&_0x27c5f1['getFirstRange']()&&!_0x128e9c['getFirstRange']()['end']['isEqual'](_0x27c5f1['getFirstRange']()['start'])){const _0x5c03bf=_0xde8b4c[_0xde8b4c['length']-0x1],_0x3ae92c='insertion'==_0x128e9c['type']?'add':'remove';_0x5c03bf&&'text'==_0x5c03bf['type']&&(_0x5c03bf[_0x3ae92c]+='\x0a');}}}class U extends _0x411e20{['afterInit'](){const _0x40a665=this['editor'],_0x26f5d3=_0x40a665['plugins']['get']('TrackChangesEditing');_0x40a665['commands']['get']('showAIAssistant')&&_0x26f5d3['enableCommand']('showAIAssistant');}}class V extends _0x411e20{['afterInit'](){const _0x350450=this['editor'],_0x5270e3=_0x350450['locale'];if(!_0x350450['plugins']['has']('AlignmentEditing'))return;const _0x345895=_0x350450['plugins']['get']('TrackChangesEditing');_0x345895['enableDefaultAttributesIntegration']('alignment'),_0x345895['registerBlockAttribute']('alignment'),_0x345895['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5270e3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12ecea=this['editor'],_0x2d1fc6=_0x12ecea['locale'];_0x12ecea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x270dc2=>{if('formatBlock'!=_0x270dc2['type'])return;const {data:_0x2e1114}=_0x270dc2;if(_0x2e1114&&'alignment'==_0x2e1114['commandName']){const _0x1edfa7=_0x2e1114['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2d1fc6,'*Format:*\x20%0',function(_0x494d05){switch(_0x494d05){case'left':return o(_0x2d1fc6,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2d1fc6,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2d1fc6,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2d1fc6,'FORMAT_JUSTIFY_TEXT');}}(_0x1edfa7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x411e20{['afterInit'](){const _0x560cd9=this['editor'],_0x1da455=_0x560cd9['plugins']['get']('TrackChangesEditing'),_0x205f41=_0x560cd9['locale'];for(const _0x1974e8 of ti){if(!_0x560cd9['plugins']['has'](_0x1974e8))continue;const _0x18166e=_0x1974e8['slice'](0x0,-0x7)['toLowerCase'](),_0x65bdbd='FORMAT_'+_0x18166e['toUpperCase']();_0x1da455['enableDefaultAttributesIntegration'](_0x18166e),_0x1da455['registerInlineAttribute'](_0x18166e),_0x1da455['descriptionFactory']['registerAttributeLabel'](_0x18166e,o(_0x205f41,_0x65bdbd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19b60b=this['editor'],_0x27c284=_0x19b60b['locale'],_0x5e75fc=_0x19b60b['plugins']['get']('TrackChangesEditing');function _0x559f77(_0x214dc7,_0x4ed697){_0x5e75fc['descriptionFactory']['registerDescriptionCallback'](_0x46cc86=>{if('formatInline'!=_0x46cc86['type'])return;const {data:_0x6f0af6}=_0x46cc86;return _0x6f0af6&&_0x6f0af6['commandName']===_0x214dc7?_0x6f0af6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27c284,'*Format:*\x20%0',_0x4ed697)}:{'type':'format','content':o(_0x27c284,'*Remove\x20format:*\x20%0',_0x4ed697)}:void 0x0;});}_0x559f77('bold',o(_0x27c284,'FORMAT_BOLD')),_0x559f77('italic',o(_0x27c284,'FORMAT_ITALIC')),_0x559f77('underline',o(_0x27c284,'FORMAT_UNDERLINE')),_0x559f77('code',o(_0x27c284,'FORMAT_CODE')),_0x559f77('strikethrough',o(_0x27c284,'FORMAT_STRIKETHROUGH')),_0x559f77('subscript',o(_0x27c284,'FORMAT_SUBSCRIPT')),_0x559f77('superscript',o(_0x27c284,'FORMAT_SUPERSCRIPT'));}}class F extends _0x411e20{['afterInit'](){const _0x5e0e7e=this['editor'],_0xd0fdc=_0x5e0e7e['locale'];if(!_0x5e0e7e['plugins']['has']('BlockQuoteEditing'))return;const _0x39f712=_0x5e0e7e['plugins']['get']('TrackChangesEditing'),_0x40b17e=this['editor']['commands']['get']('blockQuote');_0x39f712['enableCommand']('blockQuote',(_0x3689b1,_0x1ac387={})=>{const _0x3c9e3a=this['editor']['model']['document']['selection'],_0xe6a724=_0x1ac387&&void 0x0!==_0x1ac387['forceValue']?_0x1ac387['forceValue']:!_0x40b17e['value'];let _0x45fa35=[];if(_0xe6a724){const _0x4fb729=Array['from'](_0x3c9e3a['getSelectedBlocks']())['filter'](_0x2994a7=>oo(_0x2994a7)||function(_0x42ca0a,_0x3175a3){const _0x3a9846=_0x3175a3['checkChild'](_0x42ca0a['parent'],'blockQuote'),_0x8e724e=_0x3175a3['checkChild'](['$root','blockQuote'],_0x42ca0a);return _0x3a9846&&_0x8e724e;}(_0x2994a7,this['editor']['model']['schema']));_0x45fa35=to(_0x4fb729,_0x5e0e7e['model']);}else{const _0x55d65e=Array['from'](_0x3c9e3a['getSelectedBlocks']())['filter'](_0x2a0fd5=>oo(_0x2a0fd5));_0x45fa35=to(_0x55d65e,_0x5e0e7e['model']);}_0x5e0e7e['model']['change'](()=>{for(const _0x11fb7d of _0x45fa35)_0x39f712['markBlockFormat'](_0x11fb7d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xe6a724}]});});}),_0x39f712['descriptionFactory']['registerDescriptionCallback'](_0xa33245=>{const {data:_0x1c4249}=_0xa33245;if(_0x1c4249&&'blockQuote'==_0x1c4249['commandName']){const _0x333a18=o(_0xd0fdc,'ELEMENT_BLOCK_QUOTE');return _0x1c4249['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd0fdc,'*Set\x20format:*\x20%0',_0x333a18)}:{'type':'format','content':o(_0xd0fdc,'*Remove\x20format:*\x20%0',_0x333a18)};}});}}function oo(_0x33291f){return'blockQuote'==_0x33291f['parent']['name'];}class L extends _0x411e20{['afterInit'](){const _0x16105c=this['editor'],_0x3147f2=_0x16105c['locale'],_0x13c7d1=_0x16105c['plugins']['get']('TrackChangesEditing');_0x16105c['plugins']['has']('BookmarkEditing')&&(_0x13c7d1['enableCommand']('insertBookmark'),_0x13c7d1['enableDefaultAttributesIntegration']('updateBookmark'),_0x13c7d1['registerBlockAttribute']('bookmarkId'),_0x13c7d1['descriptionFactory']['registerDescriptionCallback'](_0x286aad=>{if('insertion'!=_0x286aad['type']&&'deletion'!=_0x286aad['type']&&'attribute'!=_0x286aad['type'])return;const _0x4dbef7=_0x286aad['getContainedElement']();if(null==_0x4dbef7)return;if(!_0x4dbef7['is']('element','bookmark'))return;const _0xfb326d=_0x4dbef7['getAttribute']('bookmarkId');if('insertion'==_0x286aad['type'])return{'type':'insertion','content':o(_0x3147f2,'*Insert:*\x20%0','\x22'+_0xfb326d+'\x22\x20'+o(_0x3147f2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x286aad['type'])return{'type':'deletion','content':o(_0x3147f2,'*Remove:*\x20%0','\x22'+_0xfb326d+'\x22\x20'+o(_0x3147f2,'ELEMENT_BOOKMARK'))};const {data:_0x490f69}=_0x286aad;if(!_0x490f69||'bookmarkId'!=_0x490f69['key'])return;return{'type':'format','content':o(_0x3147f2,'*Set\x20bookmark:*\x20%0','\x22'+_0x490f69['newValue']+'\x22')};}));}}class J extends _0x411e20{['afterInit'](){const _0x16ab3f=this['editor'];_0x16ab3f['plugins']['has']('CaseChange')&&(_0x16ab3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x16ab3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x16ab3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x411e20{['afterInit'](){const _0x20bcf4=this['editor'];_0x20bcf4['commands']['get']('ckbox')&&_0x20bcf4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x411e20{['afterInit'](){const _0x56ffeb=this['editor'];if(!_0x56ffeb['plugins']['has']('CodeBlock'))return;const _0x593f52=_0x56ffeb['plugins']['get']('TrackChangesEditing'),_0x51b0d1=_0x56ffeb['locale'],_0x436c72=_0x56ffeb['config']['get']('codeBlock')['languages'],_0x1f0d31=_0x56ffeb['commands']['get']('codeBlock');_0x593f52['enableCommand']('indentCodeBlock'),_0x593f52['enableCommand']('outdentCodeBlock'),_0x593f52['enableCommand']('codeBlock',(_0x295d8c,_0x370776={})=>{const _0x21e7f1=_0x56ffeb['model'],_0x510177=_0x56ffeb['model']['document']['selection'],_0x24bf17=_0x370776&&void 0x0!==_0x370776['forceValue']?_0x370776['forceValue']:!_0x1f0d31['value'];let _0x5e2dfa;_0x370776['language']||(_0x370776['language']=_0x436c72[0x0]['language']),_0x5e2dfa=_0x24bf17?Array['from'](_0x510177['getSelectedBlocks']())['filter'](_0x34ae82=>eo(_0x34ae82)||function(_0x35faa4,_0x1ca0b0){if(_0x35faa4['is']('rootElement')||_0x1ca0b0['isLimit'](_0x35faa4))return!0x1;return _0x1ca0b0['checkChild'](_0x35faa4['parent'],'codeBlock');}(_0x34ae82,_0x21e7f1['schema'])):Array['from'](_0x510177['getSelectedBlocks']())['filter'](_0x1e747a=>eo(_0x1e747a));const _0x138ceb=to(_0x5e2dfa,_0x21e7f1);_0x21e7f1['change'](()=>{for(const _0x5763e3 of _0x138ceb)_0x593f52['markBlockFormat'](_0x5763e3,{'commandName':'codeBlock','commandParams':[{..._0x370776,'forceValue':_0x24bf17}],'formatGroupId':'blockName'});});}),(_0x593f52['descriptionFactory']['registerElementLabel']('codeBlock',_0x30ea9d=>o(_0x51b0d1,'ELEMENT_CODE_BLOCK',_0x30ea9d)),_0x593f52['descriptionFactory']['registerDescriptionCallback'](_0x2e98e5=>{if('formatBlock'!=_0x2e98e5['type'])return;const _0x25d2d8=_0x51b0d1['t'],{data:_0x3e5f95}=_0x2e98e5;if(!_0x3e5f95||'codeBlock'!=_0x3e5f95['commandName'])return;const _0x181d26=_0x3e5f95['commandParams'][0x0]['language'],_0x1351eb=_0x25d2d8(_0x436c72['find'](_0x2bb598=>_0x2bb598['language']===_0x181d26)['label'])['toLowerCase']();return _0x3e5f95['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51b0d1,'*Set\x20format:*\x20%0',o(_0x51b0d1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1351eb+')')}:{'type':'format','content':o(_0x51b0d1,'*Remove\x20format:*\x20%0',o(_0x51b0d1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x23a78c){return'codeBlock'==_0x23a78c['name'];}class z extends _0x411e20{['afterInit'](){const _0x2da343=this['editor'];if(!_0x2da343['plugins']['has']('CommentsEditing'))return;_0x2da343['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x428998,_0x268b6e,_0x471e9b){const _0x1446ee=[];for(const _0x53ce9b of _0x268b6e['getItems']())_0x53ce9b['hasAttribute'](_0x428998)&&_0x1446ee['push'](_0x471e9b['createRangeOn'](_0x53ce9b));return _0x1446ee;}function De(_0x190f19,_0x120e02,{showActiveMarker:_0x3179a0=!0x0}={}){const _0x32baa2=_0x190f19['plugins']['get']('TrackChangesEditing');return(_0x5423d0,_0x5a41d0,_0x48bb53)=>{if(!_0x48bb53['consumable']['test'](_0x5a41d0['markerRange'],_0x5423d0['name']))return;const _0x26fecd=_0x5a41d0['markerRange']['getWalker'](),_0x2a2bd9=_0x5a41d0['markerRange']['start'],_0x576786=_0x190f19['model']['schema'];let _0x504235=null,_0xbd0f3d=null,_0xb3da84=!0x1,_0x40186f=!0x1;for(const _0x45abe6 of _0x26fecd){const _0x1d9406=_0x45abe6['item'];_0xb3da84=_0xb3da84||_0x576786['isContent'](_0x1d9406);const _0x30015a=_0x48bb53['mapper']['toViewElement'](_0x1d9406);if(_0x30015a&&_0x30015a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45abe6['type']&&(_0x576786['isBlock'](_0x1d9406)&&!_0x576786['isLimit'](_0x1d9406)&&(_0x1d9406['nextSibling']||_0x2a2bd9['isAtEnd']?_0x504235&&_0x504235['parent']==_0x1d9406||(_0x504235=_0x1d9406,_0xb69009(_0x45abe6['previousPosition']),_0x40186f=!0x0):_0xbd0f3d=_0xbd0f3d||_0x45abe6['previousPosition']));}function _0xb69009(_0x5e045d){const {authorId:_0x1e0647}=_0x32baa2['_splitMarkerName'](_0x5a41d0['markerName']),_0x347dea=_0x48bb53['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x120e02,'data-author-id':_0x1e0647}),_0x437dcc=_0x48bb53['mapper']['toViewPosition'](_0x5e045d);_0x3179a0&&_0x32baa2['activeMarkers']['includes'](_0x5a41d0['markerName'])&&_0x48bb53['writer']['addClass']('ck-suggestion-marker--active',_0x347dea),_0x48bb53['writer']['insert'](_0x437dcc,_0x347dea),_0x48bb53['mapper']['bindElementToMarker'](_0x347dea,_0x5a41d0['markerName']);}_0xb3da84||_0x40186f||!_0xbd0f3d||_0xb69009(_0xbd0f3d);};}class K extends _0x411e20{static get['requires'](){return[_0x14057f];}['init'](){const _0x44b3b6=this['editor'],_0x47f199=_0x44b3b6['plugins']['get']('TrackChangesEditing');_0x47f199['enableCommand']('delete');const _0x56e307=_0x44b3b6['commands']['get']('deleteForward');_0x47f199['enableCommand']('deleteForward',(_0x25fa8d,_0x3c2f1f={})=>{const _0x4e9a8e=_0x44b3b6['model']['createSelection'](_0x44b3b6['model']['document']['selection']);_0x4e9a8e['isCollapsed']&&_0x44b3b6['model']['modifySelection'](_0x4e9a8e,{'direction':'forward','unit':_0x3c2f1f['unit']});const _0x37240e=_0x4e9a8e['getFirstRange'](),_0x568d88=_0x158b09['fromRange'](_0x37240e);let _0x24c979;_0x25fa8d(_0x3c2f1f),_0x24c979='$graveyard'==_0x568d88['root']['rootName']?_0x44b3b6['model']['createRange'](_0x37240e['start']):_0x44b3b6['model']['createRange'](_0x568d88['start'],_0x568d88['end']),_0x568d88['detach'](),_0x44b3b6['model']['enqueueChange'](_0x56e307['buffer']['batch'],_0x54cd56=>{_0x56e307['buffer']['lock'](),_0x54cd56['setSelection'](_0x54cd56['createRange'](_0x24c979['end'])),_0x56e307['buffer']['unlock']();});}),_0x44b3b6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x44b3b6,'merge'),{'priority':'high'}),_0x44b3b6['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x55948b,_0x3d3f13,_0x293afa)=>{_0x293afa['options']['showSuggestionHighlights']&&De(_0x44b3b6,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x55948b,_0x3d3f13,_0x293afa);},{'priority':'high'}),_0x44b3b6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xb86dde,_0x11a81f,_0x4cbf24)=>{const _0x279eba=_0x4cbf24['mapper']['markerNameToElements'](_0x11a81f['markerName']);if(_0x279eba){for(const _0x1041fd of _0x279eba)_0x1041fd['is']('uiElement')&&(_0x4cbf24['mapper']['unbindElementFromMarkerName'](_0x1041fd,_0x11a81f['markerName']),_0x4cbf24['writer']['remove'](_0x1041fd));}},{'priority':'high'});}}class W extends _0x411e20{['afterInit'](){const _0x48af62=this['editor'];if(!_0x48af62['plugins']['has']('ListEditing'))return;const _0x5b4c62=_0x48af62['locale'],_0x57ee67=_0x48af62['plugins']['get']('TrackChangesEditing'),_0x3e2de8=_0x48af62['plugins']['has']('TodoListEditing'),_0x316ae5=!!_0x48af62['config']['get']('list.multiBlock');function _0x2e110b(_0x2d810c){return{'type':'format','content':''+o(_0x5b4c62,'*Set\x20format:*\x20%0',_0x2d810c)};}function _0x58c4b4(_0x35877a){return{'type':'format','content':''+o(_0x5b4c62,'*Remove\x20format:*\x20%0',_0x35877a)};}_0x57ee67['enableDefaultAttributesIntegration']('numberedList'),_0x57ee67['enableDefaultAttributesIntegration']('bulletedList'),_0x57ee67['enableDefaultAttributesIntegration']('customNumberedList'),_0x57ee67['enableDefaultAttributesIntegration']('customBulletedList'),_0x57ee67['enableDefaultAttributesIntegration']('indentList'),_0x57ee67['enableDefaultAttributesIntegration']('outdentList'),_0x57ee67['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x57ee67['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x57ee67['registerBlockAttribute']('listItemId'),_0x57ee67['registerBlockAttribute']('listType'),_0x57ee67['registerBlockAttribute']('listIndent'),_0x316ae5&&(_0x57ee67['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x57ee67['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3e2de8&&(_0x57ee67['enableDefaultAttributesIntegration']('todoList'),_0x57ee67['enableDefaultAttributesIntegration']('checkTodoList'),_0x57ee67['registerBlockAttribute']('todoListChecked'),_0x57ee67['descriptionFactory']['registerDescriptionCallback'](_0x2d269d=>{const {data:_0x25b74f}=_0x2d269d;if(_0x25b74f&&'todoListChecked'==_0x25b74f['key'])return{'type':'format','content':_0x25b74f['newValue']?o(_0x5b4c62,'*Check\x20item*'):o(_0x5b4c62,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4b8b53=>{if(_0x4b8b53['batch']['isUndo'])return!0x1;let _0x4cd90b=!0x1;const _0x51a97d=_0x57ee67['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3229b5=>'todoListChecked'===_0x57ee67['_getAttributeKey'](_0x3229b5));for(const _0x1ec277 of _0x51a97d){'todo'!=_0x1ec277['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x57ee67['_findSuggestions'](_0x1ec277['getFirstRange'](),'attribute')['find'](_0x5e44cc=>'listType'===_0x57ee67['_getAttributeKey'](_0x5e44cc['suggestion']))||(_0x4b8b53['removeMarker'](_0x1ec277['getFirstMarker']()),_0x4cd90b=!0x0));}return _0x4cd90b;})),_0x57ee67['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5b4c62,'FORMAT_INDENT'));const _0x4ff80a={'type':'format','content':''};_0x57ee67['descriptionFactory']['registerDescriptionCallback'](_0x8f143e=>{const {data:_0x1bb4e6}=_0x8f143e;if(!_0x1bb4e6||'listType'!=_0x1bb4e6['key'])return;let _0x2928c4=_0x8f143e['head'];for(;_0x2928c4;){if(_0x2928c4['data']&&(('listStyle'==_0x2928c4['data']['key']||'listMarkerStyle'==_0x2928c4['data']['key'])&&(_0x2928c4['data']['newValue']&&'default'!=_0x2928c4['data']['newValue']||'default'!=_0x2928c4['data']['oldValue']&&!_0x1bb4e6['newValue'])||!_0x316ae5&&_0x2928c4['data']['key']==m))return _0x4ff80a;_0x2928c4=_0x2928c4['next'];}if(null==_0x1bb4e6['newValue'])switch(_0x1bb4e6['oldValue']){case'bulleted':return _0x58c4b4(o(_0x5b4c62,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58c4b4(o(_0x5b4c62,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58c4b4(o(_0x5b4c62,'ELEMENT_TODO_LIST'));}switch(_0x1bb4e6['newValue']){case'bulleted':return _0x2e110b(o(_0x5b4c62,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e110b(o(_0x5b4c62,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e110b(o(_0x5b4c62,'ELEMENT_TODO_LIST'));}}),_0x57ee67['descriptionFactory']['registerDescriptionCallback'](_0x3f17d5=>{const {data:_0x1c96a9}=_0x3f17d5;if(_0x1c96a9&&'listIndent'==_0x1c96a9['key'])return null==_0x1c96a9['newValue']||null==_0x1c96a9['oldValue']&&0x0==_0x1c96a9['newValue']?_0x4ff80a:void 0x0;}),_0x57ee67['descriptionFactory']['registerDescriptionCallback'](_0x21bf88=>{if('attribute'!=_0x21bf88['type'])return;const {data:_0x20158}=_0x21bf88;if(!_0x20158||'listItemId'!=_0x20158['key'])return;const _0x34515f=Te(_0x21bf88);return'newValue'==_0x34515f?{'type':'format','content':o(_0x5b4c62,'*Merge:*\x20list\x20item')}:'oldValue'==_0x34515f?{'type':'format','content':o(_0x5b4c62,'*Split:*\x20list\x20item')}:_0x4ff80a;}),_0x48af62['model']['document']['registerPostFixer'](_0x9c0e11=>this['listItemIdFixer'](_0x9c0e11)),_0x48af62['model']['document']['registerPostFixer'](_0xb08c72=>this['noTrackChangesFixer'](_0xb08c72)),_0x48af62['model']['document']['on']('change:data',(_0x5da1db,_0x250bab)=>{if(_0x250bab['isUndo']||!_0x250bab['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3a4ad3){if(_0x3a4ad3['batch']['isUndo']||!_0x3a4ad3['batch']['isLocal'])return!0x1;let _0x2be893=!0x1;const _0x56ce71=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x994362=>_0x994362['data']&&'listItemId'==_0x994362['data']['key'])['filter'](_0x120160=>_0x120160['data']['newValue']&&_0x120160['data']['oldValue']);for(const _0x38ea36 of _0x56ce71)Te(_0x38ea36)||(_0x3a4ad3['removeMarker'](_0x38ea36['getFirstMarker']()),_0x2be893=!0x0);return _0x2be893;}['noTrackChangesFixer'](_0x5edfb6){if(_0x5edfb6['batch']['isUndo']||!_0x5edfb6['batch']['isLocal'])return!0x1;const _0x1e285f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1e285f['trackChangesCommand']['value'])return!0x1;let _0x5a5b56=!0x1;const _0x386348=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x518921=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xd71c52=>'attribute'==_0xd71c52['type'])['filter'](_0xc0477e=>_0x386348['includes'](_0xc0477e['attributeKey']));if(0x0==_0x518921['length'])return _0x5a5b56;for(const _0x57b595 of _0x518921){const _0x1ecce0=_0x1e285f['_findSuggestions'](_0x57b595['range'],'attribute')['filter'](_0x22f299=>!_0x22f299['meta']['isNextTo'])['map'](_0x461e10=>_0x461e10['suggestion'])['filter'](_0x331d7b=>{const _0x368ce1=_0x1e285f['_getAttributeKey'](_0x331d7b);return _0x386348['includes'](_0x368ce1);});if(_0x1ecce0['length']){for(const _0x53886 of _0x1ecce0)_0x5edfb6['removeMarker'](_0x53886['getFirstMarker']());_0x5a5b56=!0x0;}}return _0x5a5b56;}['assureChains'](){const _0x3e219c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x103f4e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xf39987;const _0x5a9670=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bc3a8=>{if(_0x1bc3a8['data']['oldRange']||!_0x1bc3a8['data']['newRange'])return null;if(!_0x1bc3a8['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x184e65}=_0x3e219c['_splitMarkerName'](_0x1bc3a8['name']);if(!_0x3e219c['hasSuggestion'](_0x184e65))return null;const _0x586b21=_0x3e219c['getSuggestion'](_0x184e65);return _0x103f4e['includes'](_0x586b21['data']['key']);})['map'](_0xcea39c=>{const {id:_0x45b939}=_0x3e219c['_splitMarkerName'](_0xcea39c['name']),_0x6644f8=_0x3e219c['getSuggestion'](_0x45b939);return _0xf39987=_0x6644f8['attributes']['groupId'],_0x6644f8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5a9670['size'])return;const _0x2c576e=_0x3e219c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e1745=>'attribute'==_0x5e1745['type']&&_0x5e1745['data']&&_0x103f4e['includes'](_0x5e1745['data']['key'])&&_0x5e1745['attributes']['groupId']!=_0xf39987)['map'](_0x795bf3=>({'listItem':_0x795bf3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x795bf3['attributes']['groupId']})),_0x332556=new Set();for(const {groupId:_0x1deb4f,listItem:_0x282ce7}of _0x2c576e)_0x5a9670['has'](_0x282ce7)&&_0x332556['add'](_0x1deb4f);for(const _0x5798ee of _0x3e219c['getSuggestions']())_0x332556['has'](_0x5798ee['attributes']['groupId'])&&_0x5798ee['setAttribute']('groupId',_0xf39987);}['_supportLegacySuggestions'](){const _0x9e43ee=this['editor'],_0x5523f5=_0x9e43ee['locale'],_0x21c4d4=_0x9e43ee['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x21c4d4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1e5bf0,_0x876c09){const _0x456187=[];for(let _0x796f81 of _0x1e5bf0)_0x796f81['start']['nodeAfter']===_0x796f81['end']['parent']&&(_0x796f81=_0x9e43ee['model']['createRange'](_0x9e43ee['model']['createPositionAt'](_0x796f81['start']['nodeAfter'],0x0))),_0x456187['push'](_0x796f81);_0x9e43ee['model']['change'](_0x452c2a=>{const _0xe9b2f8=_0x9e43ee['model']['document']['selection'],_0x2a7c87=Array['from'](_0xe9b2f8['getRanges']())['map'](_0x29c771=>_0x158b09['fromRange'](_0x29c771));_0x452c2a['setSelection'](_0x456187),_0x9e43ee['commands']['get'](_0x876c09['commandName'])['refresh'](),_0x876c09['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x9e43ee['execute'](_0x876c09['commandName'],..._0x876c09['commandParams']),_0x452c2a['setSelection'](_0x2a7c87);for(const _0x76e7b4 of _0x2a7c87)_0x76e7b4['detach']();});}),_0x21c4d4['descriptionFactory']['registerElementLabel'](function(_0x1642a1){const _0x2fc53f=!_0x9e43ee['model']['schema']['isObject'](_0x1642a1),_0x17e824=_0x1642a1['previousSibling'],_0x3595ab=_0x1642a1['nextSibling'],_0x42e991=_0x1642a1['getAttribute']('listItemId'),_0x57b457=!_0x17e824||_0x17e824['getAttribute']('listItemId')!==_0x42e991,_0x446ebf=!_0x3595ab||_0x3595ab['getAttribute']('listItemId')!==_0x42e991;return _0x2fc53f&&Boolean(_0x42e991)&&_0x57b457&&_0x446ebf;},_0x41b02d=>o(_0x5523f5,'ELEMENT_LIST_ITEM',_0x41b02d));}['_registerLegacyDescription'](){const _0x18b029=this['editor'],_0x1c75ae=_0x18b029['locale'];function _0x495542(_0x3afa1d){const _0x1ed872=_0x18b029['commands']['get']('bulletedList')['value'],_0x3f3659=_0x18b029['commands']['get']('numberedList')['value'];return'numberedList'===_0x3afa1d?_0x1ed872:_0x3f3659;}_0x18b029['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x54090f){if('formatBlock'!=_0x54090f['type'])return;const {data:_0x42b932}=_0x54090f;if(!_0x42b932)return;let _0x39254c,_0x4d175b,_0x1f0e22,_0x32bd3b;switch(_0x42b932['commandName']){case'bulletedList':_0x1f0e22=_0x42b932['commandParams'][0x0]['forceValue'],_0x32bd3b=_0x495542(_0x42b932['commandName']),_0x39254c=_0x1f0e22?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32bd3b&&_0x18b029['config']['get']('list.multiBlock')||(_0x39254c='*Change\x20to:*\x20%0'),_0x4d175b={'type':'format','content':o(_0x1c75ae,_0x39254c,o(_0x1c75ae,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1f0e22=_0x42b932['commandParams'][0x0]['forceValue'],_0x32bd3b=_0x495542(_0x42b932['commandName']),_0x39254c=_0x1f0e22?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32bd3b&&_0x18b029['config']['get']('list.multiBlock')||(_0x39254c='*Change\x20to:*\x20%0'),_0x4d175b={'type':'format','content':o(_0x1c75ae,_0x39254c,o(_0x1c75ae,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x39254c='*Indent:*\x20%0',_0x4d175b={'type':'format','content':o(_0x1c75ae,_0x39254c,o(_0x1c75ae,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x39254c=function(_0x4787bc){const _0x26e50b=_0x4787bc['getFirstRange']();let _0x52eb4a=_0x26e50b['start']['nodeAfter'];for(;_0x52eb4a&&_0x26e50b['containsItem'](_0x52eb4a);){if(_0x52eb4a['getAttribute']('listIndent')>0x0)return!0x1;_0x52eb4a=_0x52eb4a['nextSibling'];}return!0x0;}(_0x54090f)?o(_0x1c75ae,'*Format:*\x20remove\x20from\x20%0',o(_0x1c75ae,function(_0x5e2caf){return'ELEMENT_'+_0x5e2caf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x54090f))):o(_0x1c75ae,'*Outdent:*\x20%0',o(_0x1c75ae,'ELEMENT_LIST_ITEM')),_0x4d175b={'type':'format','content':_0x39254c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x42b932['multipleBlocks']&&(_0x39254c='*Merge:*\x20%0',_0x4d175b={'type':'deletion','content':o(_0x1c75ae,_0x39254c,o(_0x1c75ae,'ELEMENT_LIST_ITEM'))});}return _0x4d175b;});}}function Te(_0x54d1a0){let _0x35c527=_0x54d1a0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x35c527;){const _0x5461eb=_0x35c527['getAttribute']('listItemId');if(!_0x5461eb)return!0x1;if(_0x5461eb==_0x54d1a0['data']['newValue'])return'newValue';if(_0x5461eb==_0x54d1a0['data']['oldValue'])return'oldValue';_0x35c527=_0x35c527['previousSibling'];}return!0x1;}class Se extends _0x411e20{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x28de38=this['editor']['config']['get']('list.properties'),_0x5f1bcc=this['editor']['plugins']['get']('TrackChangesEditing');_0x28de38['styles']&&(_0x5f1bcc['enableDefaultAttributesIntegration']('listStyle'),_0x5f1bcc['registerBlockAttribute']('listStyle')),_0x28de38['reversed']&&(_0x5f1bcc['enableDefaultAttributesIntegration']('listReversed'),_0x5f1bcc['registerBlockAttribute']('listReversed')),_0x28de38['startIndex']&&(_0x5f1bcc['enableDefaultAttributesIntegration']('listStart'),_0x5f1bcc['registerBlockAttribute']('listStart'));const _0x209ac6={'type':'format','content':''};_0x5f1bcc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5b06ba=this['editor']['locale'];_0x5f1bcc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5b06ba,'FORMAT_LIST_REVERSED')),_0x5f1bcc['descriptionFactory']['registerDescriptionCallback'](_0x15267a=>{const {data:_0x28df2b}=_0x15267a;if(_0x28df2b&&'listReversed'==_0x28df2b['key'])return null==_0x28df2b['newValue']||0x0==_0x28df2b['newValue']&&null==_0x28df2b['oldValue']?_0x209ac6:void 0x0;}),_0x5f1bcc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5b06ba,'FORMAT_LIST_START')),_0x5f1bcc['descriptionFactory']['registerDescriptionCallback'](_0x49b6e1=>{const {data:_0x5c2f79}=_0x49b6e1;if(_0x5c2f79&&'listStart'==_0x5c2f79['key'])return null==_0x5c2f79['newValue']||0x1==_0x5c2f79['newValue']&&null==_0x5c2f79['oldValue']?_0x209ac6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x551531=>{if(_0x551531['batch']['isUndo'])return!0x1;let _0x26fff6=!0x1;const _0x41e4a6=_0x5f1bcc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c8f04=>{const _0x1893cc=_0x5f1bcc['_getAttributeKey'](_0x1c8f04);return'listStart'==_0x1893cc||'listReversed'==_0x1893cc;});for(const _0x467fdc of _0x41e4a6){const _0x5b83f3=_0x467fdc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5b83f3||'customNumbered'==_0x5b83f3)continue;_0x5f1bcc['_findSuggestions'](_0x467fdc['getFirstRange'](),'attribute')['find'](_0x3c3be8=>'listType'==_0x5f1bcc['_getAttributeKey'](_0x3c3be8['suggestion']))||(_0x551531['removeMarker'](_0x467fdc['getFirstMarker']()),_0x26fff6=!0x0);}return _0x26fff6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x328eec){const _0x5b32bf=this['editor']['locale'],{data:_0x6fe210}=_0x328eec,_0x56f8eb={'type':'format','content':''};if(!_0x6fe210||'listStyle'!=_0x6fe210['key'])return;if(!_0x6fe210['oldValue'])return'default'==_0x6fe210['newValue']?_0x56f8eb:{'type':'format','content':''+o(_0x5b32bf,'*Set\x20format:*\x20%0',o(_0x5b32bf,this['_getTranslationKeyForListStyle'](_0x6fe210['newValue'])))};if(!_0x6fe210['newValue']){if('default'==_0x6fe210['oldValue'])return _0x56f8eb;let _0x4b92d9=_0x328eec['head'];for(;_0x4b92d9;){if(_0x4b92d9['data']&&'listType'==_0x4b92d9['data']['key']&&_0x4b92d9['data']['newValue'])return _0x56f8eb;_0x4b92d9=_0x4b92d9['next'];}return{'type':'format','content':''+o(_0x5b32bf,'*Remove\x20format:*\x20%0',o(_0x5b32bf,this['_getTranslationKeyForListStyle'](_0x6fe210['oldValue'])))};}if('default'!=_0x6fe210['newValue'])return{'type':'format','content':''+o(_0x5b32bf,'*Set\x20format:*\x20%0',o(_0x5b32bf,this['_getTranslationKeyForListStyle'](_0x6fe210['newValue'])))};let _0x4dea20=_0x328eec['head'];for(;_0x4dea20;){if(_0x4dea20['data']&&'listType'==_0x4dea20['data']['key']&&_0x4dea20['data']['newValue']&&_0x4dea20['data']['oldValue'])return _0x56f8eb;_0x4dea20=_0x4dea20['next'];}return{'type':'format','content':o(_0x5b32bf,'*Set\x20format:*\x20%0',o(_0x5b32bf,'ELEMENT_'+_0x328eec['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x18a596=this['editor'],_0x4bf339=_0x18a596['locale'];_0x18a596['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e3a64=>{if('formatBlock'!=_0x4e3a64['type'])return;const {data:_0x49ae12}=_0x4e3a64;if(!_0x49ae12)return;let _0x44b4d8,_0x1ff046;switch(_0x49ae12['commandName']){case'listStyle':_0x44b4d8='*Change\x20to:*\x20%0',_0x1ff046={'type':'format','content':o(_0x4bf339,_0x44b4d8,o(_0x4bf339,this['_getTranslationKeyForListStyle'](_0x49ae12['commandParams'][0x0]['type'])))};break;case'listReversed':_0x44b4d8=_0x49ae12['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ff046={'type':'format','content':o(_0x4bf339,_0x44b4d8)};break;case'listStart':_0x44b4d8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ff046={'type':'format','content':o(_0x4bf339,_0x44b4d8,_0x49ae12['commandParams'][0x0]['startIndex'])};}return _0x1ff046;});}['_getTranslationKeyForListStyle'](_0x548f29){return'ELEMENT_'+function(_0x2bea60){if(_e['includes'](_0x2bea60))return'bulleted';if(Re['includes'](_0x2bea60))return'numbered';return null;}(_0x548f29)['toUpperCase']()+'_LIST_'+_0x548f29['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x411e20{['afterInit'](){const _0x3c5a15=this['editor'];_0x3c5a15['commands']['get']('emoji')&&_0x3c5a15['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x411e20{static get['requires'](){return[_0x10051f];}['init'](){const _0x544cd3=this['editor'],_0x57de8b=_0x544cd3['plugins']['get']('TrackChangesEditing'),_0xe40b16=_0x544cd3['commands']['get']('enter');_0x57de8b['enableCommand']('enter',()=>{_0x544cd3['model']['change'](_0x105c24=>{const _0x34b6a7=_0x544cd3['model']['document']['selection'],_0x575aa0=_0x34b6a7['getFirstPosition'](),_0x1308bd=_0x158b09['fromRange'](_0x34b6a7['getFirstRange']());if(_0xe40b16['enterBlock'](_0x105c24)){const _0x2d8945=_0x544cd3['model']['createPositionAt'](_0x575aa0['parent']['nextSibling'],0x0),_0xc24d29=_0x105c24['createRange'](_0x575aa0,_0x2d8945);_0x57de8b['markInsertion'](_0xc24d29);}else _0x105c24['setSelection'](_0x105c24['createRange'](_0x1308bd['end']));_0x1308bd['detach'](),_0xe40b16['fire']('afterExecute',{'writer':_0x105c24});});}),_0x544cd3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x544cd3,'split'),{'priority':'high'}),_0x544cd3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x51f7dd,_0x1b33c3,_0x2e631d)=>{const _0x456bf0=_0x2e631d['mapper']['markerNameToElements'](_0x1b33c3['markerName']);if(_0x456bf0){for(const _0x49345d of _0x456bf0)_0x49345d['hasClass']('ck-suggestion-marker-split')&&(_0x2e631d['mapper']['unbindElementFromMarkerName'](_0x49345d,_0x1b33c3['markerName']),_0x2e631d['writer']['remove'](_0x49345d));}},{'priority':'high'}),_0x544cd3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2be3d5,_0x40cc0f,_0x86bc75)=>{_0x86bc75['options']['showSuggestionHighlights']&&De(_0x544cd3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2be3d5,_0x40cc0f,_0x86bc75);},{'priority':'high'});}}class Z extends _0x411e20{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x119e15=this['editor']['plugins']['get']('TrackChangesEditing');_0x119e15['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x119e15['enableCommand']('findNext'),_0x119e15['enableCommand']('findPrevious'),_0x119e15['enableCommand']('replace'),_0x119e15['enableCommand']('replaceAll');}['handleFindCommand'](_0x5c2e50,_0x5af014,_0x1b40a4={}){const _0x531645=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5c2e50(_0x326d5a=>{let _0x1eac4e=('string'==typeof _0x5af014?_0x531645['findByTextCallback'](_0x5af014,_0x1b40a4):_0x5af014)(_0x326d5a);Array['isArray'](_0x1eac4e)&&(_0x1eac4e={'results':_0x1eac4e,'searchText':'string'==typeof _0x5af014?_0x5af014:''});const _0x56e281=_0x1eac4e['results']['filter'](_0x931cfc=>!0x1===this['_isInDeletionRange'](_0x931cfc,_0x326d5a['item']));return{..._0x1eac4e,'results':_0x56e281};},_0x1b40a4);}['_isInDeletionRange'](_0x175146,_0x3aa530){const _0x2b3a58=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3aa530,_0x175146['start']),this['editor']['model']['createPositionAt'](_0x3aa530,_0x175146['end']));for(const _0x298a4c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2b3a58['getIntersection'](_0x298a4c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x411e20{['afterInit'](){const _0x57a705=this['editor']['locale'],_0x4629ed=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5184e7,commandName:_0x3b1e7c}of ro)this['editor']['plugins']['has'](_0x5184e7)&&(_0x4629ed['enableDefaultAttributesIntegration'](_0x3b1e7c),_0x4629ed['registerInlineAttribute'](_0x3b1e7c));_0x4629ed['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x57a705,'FORMAT_FONT_SIZE')),_0x4629ed['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x57a705,'FORMAT_FONT_FAMILY')),_0x4629ed['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x57a705,'FORMAT_FONT_COLOR')),_0x4629ed['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x57a705,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35ee13=this['editor'],_0x389af4=_0x35ee13['locale'];_0x35ee13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2da95c=>{const _0x229dad=_0x389af4['t'];if('formatInline'!=_0x2da95c['type'])return;const {data:_0x4027a6}=_0x2da95c;if(null!=_0x4027a6){if('fontSize'==_0x4027a6['commandName']){const _0x18c983=_0x4027a6['commandParams'][0x0]['value'];if(_0x18c983){const _0x302980=_0x229dad(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x380364=>_0x380364['model']==_0x18c983)['title'])['toLowerCase']();return{'type':'format','content':o(_0x389af4,'*Set\x20font\x20size:*\x20%0',_0x302980)};}return{'type':'format','content':o(_0x389af4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4027a6['commandName']){const _0x47635b=_0x4027a6['commandParams'][0x0]['value'];return _0x47635b?{'type':'format','content':o(_0x389af4,'*Set\x20font\x20family:*\x20%0',_0x47635b)}:{'type':'format','content':o(_0x389af4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4027a6['commandName']){const _0x42eaab=_0x4027a6['commandParams'][0x0]['value'];if(_0x42eaab){const _0x2e173d=_0x572918(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3acaf5=>_0x3acaf5['model']==_0x42eaab);let _0x1b2b1d=_0x42eaab,_0x2024f0='';return _0x2e173d&&(_0x1b2b1d=_0x2e173d['label'],_0x2024f0=_0x229dad(_0x1b2b1d)['toLowerCase']()),{'type':'format','content':o(_0x389af4,'*Set\x20font\x20color:*\x20%0',_0x2024f0)['trim'](),'color':{'value':_0x42eaab,'title':_0x2024f0||_0x1b2b1d}};}return{'type':'format','content':o(_0x389af4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4027a6['commandName']){const _0xcfc98a=_0x4027a6['commandParams'][0x0]['value'];if(_0xcfc98a){const _0xbc3162=_0x572918(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x399012=>_0x399012['model']==_0xcfc98a);let _0x4f16c3=_0xcfc98a,_0x54310e='';return _0xbc3162&&(_0x4f16c3=_0xbc3162['label'],_0x54310e=_0x229dad(_0x4f16c3)['toLowerCase']()),{'type':'format','content':o(_0x389af4,'*Set\x20font\x20background\x20color:*\x20%0',_0x54310e)['trim'](),'color':{'value':_0xcfc98a,'title':_0x54310e||_0x4f16c3}};}return{'type':'format','content':o(_0x389af4,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x411e20{['afterInit'](){const _0x1ed8d4=this['editor'],_0x2e0f22=_0x1ed8d4['plugins']['get']('TrackChangesEditing'),_0xbd73c6=_0x1ed8d4['commands']['get']('copyFormat'),_0x4e83b5=_0x1ed8d4['commands']['get']('pasteFormat');_0xbd73c6&&_0x4e83b5&&(_0x2e0f22['enableDefaultAttributesIntegration']('pasteFormat'),_0x2e0f22['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x529ce3=this['editor'],_0x1ce988=_0x529ce3['locale'];_0x529ce3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x332ace=>{if('formatBlock'!=_0x332ace['type']&&'formatInline'!=_0x332ace['type'])return;const {data:_0x50242b}=_0x332ace;if(_0x50242b&&'pasteFormat'===_0x50242b['commandName']){const _0x32c54e=[],_0x52f88c=_0x50242b['commandParams'][0x0];for(const [_0x29a951,_0x36d8dd]of Object['entries'](_0x52f88c))_0x32c54e['push'](so(_0x529ce3,_0x29a951,_0x36d8dd));return _0x32c54e['length']?{'type':'format','content':o(_0x1ce988,'*Set\x20format\x20to:*\x20%0',_0x32c54e['join'](',\x20'))}:{'type':'format','content':o(_0x1ce988,'*Remove\x20all\x20formatting*')};}});}}function so(_0x451522,_0x45bd29,_0x36a7ee){const _0x12e550=_0x451522['locale']['t'],_0x3a2590=_0x45bd29['split'](/(?=[A-Z])/)['join']('\x20'),_0x22f0a2=_0x12e550(_0x3a2590['charAt'](0x0)['toUpperCase']()+_0x3a2590['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x36a7ee)return _0x22f0a2;if('fontColor'===_0x45bd29||'fontBackgroundColor'===_0x45bd29){const _0x25bd9e=_0x572918(_0x451522['config']['get']('fontColor.colors'))['find'](_0xf38001=>_0xf38001['model']==_0x36a7ee);return _0x22f0a2+'\x20('+(_0x25bd9e?_0x12e550(_0x25bd9e['label'])['toLowerCase']():_0x36a7ee)+')';}if('fontSize'===_0x45bd29&&isNaN(parseFloat(_0x36a7ee))){const _0x50388d=_0x451522['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x451522['config']['get']('fontSize.options'))['find'](_0x5e6a64=>_0x5e6a64['model']==_0x36a7ee);return _0x22f0a2+'\x20('+(_0x50388d?_0x12e550(_0x50388d['title'])['toLowerCase']():_0x36a7ee)+')';}return _0x22f0a2+'\x20('+_0x36a7ee+')';}class it extends _0x411e20{['_headingOptions'];['afterInit'](){const _0x41eefc=this['editor'];if(!_0x41eefc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x41eefc['config']['get']('heading.options');const _0x41a570=_0x41eefc['locale'],_0x4ff016=_0x41eefc['plugins']['get']('TrackChangesEditing');_0x4ff016['enableDefaultAttributesIntegration']('heading');for(const _0x40ad00 of this['_headingOptions'])'paragraph'!=_0x40ad00['model']&&_0x4ff016['descriptionFactory']['registerElementLabel'](_0x40ad00['model'],_0x2319fc=>{const _0x5b537d=this['_getHeadingLevel'](_0x40ad00['model']);return null!==_0x5b537d?_0x408f41(_0x2319fc,_0x5b537d):_0x3e1884(_0x2319fc,_0x40ad00['title']);});function _0x408f41(_0x379edd,_0x1ca094){return o(_0x41a570,'ELEMENT_HEADING',[_0x379edd,_0x1ca094]);}function _0x3e1884(_0x405848,_0x4b0c20){return o(_0x41a570,'ELEMENT_HEADING_CUSTOM',[_0x405848,_0x4b0c20]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35acfb=this['editor'],_0x1553fe=_0x35acfb['locale'];function _0x40b553(_0x2c20d2,_0x3741df){return o(_0x1553fe,'ELEMENT_HEADING_CUSTOM',[_0x2c20d2,_0x3741df]);}_0x35acfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e6b5a=>{if('formatBlock'!=_0x1e6b5a['type'])return;const {data:_0x9d0a88}=_0x1e6b5a;if(_0x9d0a88&&'heading'==_0x9d0a88['commandName']){const _0x5bf216=_0x9d0a88['commandParams'][0x0]['value'],_0x1b1e8b=this['_getHeadingLevel'](_0x5bf216);if(null!==_0x1b1e8b)return{'type':'format','content':o(_0x1553fe,'*Change\x20to:*\x20%0',(_0x1a318f=0x1,_0xcde3f7=_0x1b1e8b,o(_0x1553fe,'ELEMENT_HEADING',[_0x1a318f,_0xcde3f7])))};const _0x42f8df=this['_headingOptions']['find'](_0x4dfa14=>_0x4dfa14['model']===_0x5bf216)['title'];return{'type':'format','content':o(_0x1553fe,'*Change\x20to:*\x20%0',_0x40b553(0x1,_0x42f8df))};}var _0x1a318f,_0xcde3f7;});}['_getHeadingLevel'](_0x2c28f0){const _0x8763d=_0x2c28f0['match'](/^heading(\d+)/);if(_0x8763d)return _0x8763d[0x1];const _0xc6c228=this['_headingOptions']?.['find'](_0x520f69=>_0x520f69['model']==_0x2c28f0);if(_0xc6c228&&_0xc6c228['view']){const _0x388d1b=_0xc6c228['view'],_0x1a34c7=(_0x388d1b['name']??_0x388d1b)['match'](/^h(\d+)/);if(_0x1a34c7)return _0x1a34c7[0x1];}return null;}}class et extends _0x411e20{['afterInit'](){const _0x1269f1=this['editor'];if(!_0x1269f1['plugins']['has']('HighlightEditing'))return;const _0x4feb4f=_0x1269f1['plugins']['get']('TrackChangesEditing'),_0x1b9be9=_0x1269f1['locale'];_0x4feb4f['enableDefaultAttributesIntegration']('highlight'),_0x4feb4f['registerInlineAttribute']('highlight'),_0x4feb4f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b9be9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f08f0=this['editor'],_0x246c3c=_0x3f08f0['locale'];_0x3f08f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x206827=>{if('formatInline'!=_0x206827['type'])return;const {data:_0x2296d1}=_0x206827;if(_0x2296d1&&'highlight'==_0x2296d1['commandName']){const _0x3475a1=_0x246c3c['t'],_0xcb1fb3=_0x2296d1['commandParams'][0x0]['value'];if(_0xcb1fb3){const _0x179afb=_0x3f08f0['config']['get']('highlight.options')['find'](_0x36403e=>_0x36403e['model']==_0xcb1fb3),_0x48b826=_0x3475a1(_0x179afb['title'])['toLowerCase']();return{'type':'format','content':o(_0x246c3c,'*Set\x20highlight:*\x20%0',_0x48b826),'color':{'value':_0x179afb['color'],'title':_0x179afb['title']}};}return{'type':'format','content':o(_0x246c3c,'*Remove\x20highlight*',o(_0x246c3c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x411e20{['afterInit'](){const _0x4f4970=this['editor'];if(!_0x4f4970['plugins']['has']('HorizontalLineEditing'))return;_0x4f4970['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x255352=_0x4f4970['plugins']['get']('TrackChangesEditing'),_0x5c898b=_0x4f4970['locale'];_0x255352['descriptionFactory']['registerElementLabel']('horizontalLine',_0x46ee2d=>o(_0x5c898b,'ELEMENT_HORIZONTAL_LINE',_0x46ee2d)),_0x4f4970['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x922ce4,{writer:_0x5465dc,options:_0x231993})=>{if(!_0x231993['showSuggestionHighlights'])return null;const _0x4a3988=_0x5465dc['createContainerElement']('div'),_0x384916=_0x5465dc['createEmptyElement']('hr');return _0x5465dc['addClass']('ck-horizontal-line',_0x4a3988),_0x5465dc['insert'](_0x5465dc['createPositionAt'](_0x4a3988,0x0),_0x384916),_0x4a3988;},'converterPriority':'high'});}}class ot extends _0x411e20{['afterInit'](){const _0x2e9fbd=this['editor'];if(!_0x2e9fbd['plugins']['has']('HtmlEmbed'))return;const _0xe1dc08=_0x2e9fbd['plugins']['get']('TrackChangesEditing'),_0x4e92d0=_0x2e9fbd['locale'];_0xe1dc08['descriptionFactory']['registerElementLabel']('rawHtml',_0x361b3d=>o(_0x4e92d0,'ELEMENT_HTML_EMBED',_0x361b3d)),_0xe1dc08['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe1dc08['registerBlockAttribute']('value'),_0xe1dc08['descriptionFactory']['registerDescriptionCallback'](_0x2572c5=>{if('attribute'!=_0x2572c5['type'])return;const {data:_0x39a9db}=_0x2572c5;if(_0x39a9db&&'value'==_0x39a9db['key']&&_0x2572c5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x32ee3f=o(_0x4e92d0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4e92d0,'*Change\x20%0\x20content*',_0x32ee3f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41bd4d=this['editor'],_0x4f3460=_0x41bd4d['locale'];_0x41bd4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31da21=>{if('formatBlock'!=_0x31da21['type'])return;const {data:_0xe4b8d1}=_0x31da21;if(_0xe4b8d1&&'htmlEmbed'==_0xe4b8d1['commandName']){const _0x441bde=o(_0x4f3460,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4f3460,'*Change\x20%0\x20content*',_0x441bde)};}});}}class rt extends _0x411e20{['afterInit'](){const _0x725f20=this['editor'];if(!_0x725f20['plugins']['has']('ImageEditing'))return;const _0x53398a=_0x725f20['plugins']['get']('TrackChangesEditing'),_0x43d0bc=_0x725f20['plugins']['get']('ImageUtils'),_0x302562=_0x725f20['locale'];_0x53398a['enableCommand']('insertImage'),_0x53398a['descriptionFactory']['registerElementLabel']('imageBlock',_0x31d00b=>o(_0x302562,'ELEMENT_IMAGE',_0x31d00b)),_0x53398a['descriptionFactory']['registerElementLabel']('imageInline',_0x3a1769=>o(_0x302562,'ELEMENT_INLINE_IMAGE',_0x3a1769)),_0x53398a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x302562,'ELEMENT_CAPTION')),_0x725f20['plugins']['has']('ImageUploadEditing')&&_0x53398a['enableCommand']('uploadImage'),_0x725f20['plugins']['has']('ImageBlockEditing')&&_0x725f20['plugins']['has']('ImageInlineEditing')&&(_0x53398a['enableCommand']('imageTypeInline',(_0x540a8b,_0x53cf2c)=>{const _0x4ca0f4=_0x43d0bc['getClosestSelectedImageElement'](_0x725f20['model']['document']['selection']);_0x725f20['model']['change'](()=>{_0x53398a['markBlockFormat'](_0x4ca0f4,{'commandName':'imageTypeInline','commandParams':[_0x53cf2c]},[],'convertBlockImageToInline');});}),_0x53398a['enableCommand']('imageTypeBlock',(_0x144316,_0x37860c)=>{_0x725f20['model']['change'](_0x10969c=>{let _0x39f0cc=_0x43d0bc['getClosestSelectedImageElement'](_0x725f20['model']['document']['selection']),_0x5398d6=_0x10969c['createRangeOn'](_0x39f0cc);const _0xce9fdf=_0x4fcfec['fromPosition'](_0x5398d6['start'],'toPrevious'),_0x503d23=_0x4fcfec['fromPosition'](_0x5398d6['end'],'toNext');_0x53398a['forceDefaultExecution'](()=>_0x144316(_0x37860c)),_0x39f0cc=_0x43d0bc['getClosestSelectedImageElement'](_0x725f20['model']['document']['selection']),_0x5398d6=_0x10969c['createRangeOn'](_0x39f0cc);const _0x15f10d=_0x10969c['createRange'](_0xce9fdf,_0x503d23);_0xce9fdf['detach'](),_0x503d23['detach'](),_0x53398a['markBlockFormat'](_0x39f0cc,{'commandName':'imageTypeInline','commandParams':[_0x37860c]},[],'convertInlineImageToBlock'),_0x15f10d['start']['isBefore'](_0x5398d6['start'])&&_0x53398a['markInsertion'](_0x10969c['createRange'](_0x15f10d['start'],_0x5398d6['start']),'convertInlineImageToBlock'),_0x5398d6['end']['isBefore'](_0x15f10d['end'])&&_0x53398a['markInsertion'](_0x10969c['createRange'](_0x5398d6['end'],_0x15f10d['end']),'convertInlineImageToBlock');});}),_0x53398a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x53398a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x53398a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x53398a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x53398a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x53398a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2b10ab])=>{const _0x3c0c5a=_0x53398a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5e1a03=_0x2b10ab['start'],_0x2e70fb=_0x2b10ab['end'];const _0x20143f=_0x725f20['model']['schema']['getNearestSelectionRange'](_0x5e1a03,'backward'),_0x11c6ba=_0x725f20['model']['schema']['getNearestSelectionRange'](_0x2e70fb,'forward');_0x20143f['isCollapsed']&&(_0x5e1a03=_0x20143f['start']),_0x11c6ba['isCollapsed']&&(_0x2e70fb=_0x11c6ba['end']),_0x3c0c5a([_0x725f20['model']['createRange'](_0x5e1a03,_0x2e70fb)]);}),_0x53398a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xbedff9),_0x53398a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xbedff9)),_0x725f20['plugins']['has']('ImageCaptionEditing')&&(_0x53398a['enableCommand']('toggleImageCaption',(_0x3e0259,_0x336c5c)=>{const _0x4a7aab=_0x725f20['plugins']['get']('ImageCaptionUtils');let _0x557d13=_0x43d0bc['getClosestSelectedImageElement'](_0x725f20['model']['document']['selection']),_0x596fc2=_0x4a7aab['getCaptionFromImageModelElement'](_0x557d13);_0x725f20['model']['change'](()=>{if(_0x596fc2)return void _0x53398a['markDeletion'](_0x725f20['model']['createRangeOn'](_0x596fc2));const _0x480cac=_0x43d0bc['isBlockImage'](_0x557d13);_0x3e0259(_0x336c5c),_0x557d13=_0x43d0bc['getClosestSelectedImageElement'](_0x725f20['model']['document']['selection']),_0x596fc2=_0x4a7aab['getCaptionFromImageModelElement'](_0x557d13),_0x53398a['markInsertion'](_0x725f20['model']['createRangeOn'](_0x596fc2),_0x480cac?null:'imageCaption');});}),_0x53398a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xbedff9));const _0x568d66=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x293958(_0x7018ce,_0x5e894e){const _0x48c97e=_0x568d66['findIndex'](({type:_0x36f180,subType:_0x4b9c62})=>_0x7018ce['type']==_0x36f180&&_0x7018ce['subType']==_0x4b9c62),_0x3979f5=_0x568d66['findIndex'](({type:_0x42a42e,subType:_0x5c518c})=>_0x5e894e['type']==_0x42a42e&&_0x5e894e['subType']==_0x5c518c);if(_0x48c97e<0x0||_0x3979f5<0x0)return!0x1;const _0x3f487e=_0x7018ce['getFirstRange'](),_0x3eaaa8=_0x5e894e['getFirstRange']();if((0x0==_0x48c97e||0x1==_0x48c97e)&&0x2==_0x3979f5&&_0x3f487e['isIntersecting'](_0x3eaaa8))return!0x0;if(0x2==_0x48c97e&&0x3==_0x3979f5){const _0x502e74=_0x53398a['_findSuggestions'](_0x3f487e,'insertion')['filter'](({suggestion:_0x1386a7,meta:_0x120368})=>_0x120368['isOwn']&&'convertInlineImageToBlock'==_0x1386a7['subType']);if(_0x502e74['length']>0x1&&_0x3eaaa8['end']['isEqual'](_0x3f487e['start']))return!0x0;if(0x1==_0x502e74['length']&&(_0x3f487e['start']['isEqual'](_0x3eaaa8['end'])||_0x3f487e['end']['isEqual'](_0x3eaaa8['start'])))return!0x0;}if(0x3==_0x48c97e&&0x3==_0x3979f5&&_0x3f487e['start']['isBefore'](_0x3eaaa8['start'])){const _0x2719f6=_0x3f487e['end']['nodeAfter'],_0x10ea5b=_0x3eaaa8['start']['nodeBefore'];return _0x43d0bc['isBlockImage'](_0x2719f6)&&_0x2719f6===_0x10ea5b;}return!0x1;}function _0xbedff9(_0x5e8be4,_0x5df91e){return _0x293958(_0x5e8be4,_0x5df91e)?[_0x5e8be4,_0x5df91e]:_0x293958(_0x5df91e,_0x5e8be4)?[_0x5df91e,_0x5e8be4]:null;}_0x725f20['plugins']['has']('ImageResize')&&(_0x53398a['enableDefaultAttributesIntegration']('resizeImage'),_0x53398a['registerBlockAttribute']('resizedWidth'),_0x53398a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x302562,'FORMAT_IMAGE_SIZE'))),_0x725f20['plugins']['has']('ImageTextAlternativeEditing')&&(_0x53398a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x53398a['registerBlockAttribute']('alt')),_0x725f20['plugins']['has']('PictureEditing')&&(_0x53398a['registerBlockAttribute']('sources'),_0x53398a['descriptionFactory']['registerDescriptionCallback'](_0x3e27d9=>{if('attribute'!=_0x3e27d9['type'])return;const {data:_0x2ca73e}=_0x3e27d9;return _0x2ca73e&&'sources'==_0x2ca73e['key']?{'type':'format','content':''}:void 0x0;})),_0x725f20['plugins']['has']('ImageSizeAttributes')&&(_0x53398a['registerBlockAttribute']('width'),_0x53398a['registerBlockAttribute']('height'),_0x53398a['descriptionFactory']['registerDescriptionCallback'](_0x520595=>{if('attribute'!=_0x520595['type'])return;const {data:_0x511d92}=_0x520595;return!_0x511d92||'width'!=_0x511d92['key']&&'height'!=_0x511d92['key']?void 0x0:{'type':'format','content':''};})),_0x53398a['descriptionFactory']['registerDescriptionCallback'](_0x48b9b=>{if(!!_0x568d66['find'](({type:_0x17c0af,subType:_0x3c635f})=>_0x48b9b['type']==_0x17c0af&&_0x48b9b['subType']==_0x3c635f))return _0x48b9b['previous']?{}:void 0x0;}),_0x53398a['descriptionFactory']['registerDescriptionCallback'](_0x5a34d1=>{if('insertion'==_0x5a34d1['type']||'deletion'==_0x5a34d1['type']){const _0x343624=_0x5a34d1['getContainedElement']();if(_0x343624&&_0x343624['is']('element','caption'))return{'type':'insertion'==_0x5a34d1['type']?'addObject':'removeObject','element':_0x343624,'quantity':0x1};}}),_0x53398a['descriptionFactory']['registerDescriptionCallback'](_0x18d5e0=>'formatBlock'==_0x18d5e0['type']&&'convertInlineImageToBlock'==_0x18d5e0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18d5e0['type']&&'convertBlockImageToInline'==_0x18d5e0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x53398a['descriptionFactory']['registerDescriptionCallback'](_0x29d8a1=>{if('attribute'!=_0x29d8a1['type'])return;const {data:_0xce1f5e}=_0x29d8a1;if(!_0xce1f5e||'alt'!=_0xce1f5e['key'])return;const _0x57d2b2=_0xce1f5e['newValue'];return _0x57d2b2?{'type':'format','content':o(_0x302562,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x57d2b2+'\x22')}:{'type':'format','content':o(_0x302562,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a9a8e=this['editor'],_0x239173=_0x5a9a8e['locale'];_0x5a9a8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55bcea=>{if('formatBlock'!=_0x55bcea['type']&&'formatInline'!=_0x55bcea['type'])return;const {data:_0x3d429b}=_0x55bcea;if(_0x3d429b){if('imageTextAlternative'==_0x3d429b['commandName']){const _0x30764c=_0x3d429b['commandParams'][0x0]['newValue'];return _0x30764c?{'type':'format','content':o(_0x239173,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30764c+'\x22')}:{'type':'format','content':o(_0x239173,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d429b['commandName']){const _0x1a2d0a=_0x3d429b['commandParams'][0x0]['width'];return _0x1a2d0a?{'type':'format','content':o(_0x239173,'*Set\x20image\x20width:*\x20%0',_0x1a2d0a)}:{'type':'format','content':o(_0x239173,'*Reset\x20image\x20width*')};}}});}}class at extends _0x411e20{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x114cbf=this['editor']['locale'],_0x3bdb31=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bdb31['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3bdb31['registerBlockAttribute']('src'),_0x3bdb31['descriptionFactory']['registerDescriptionCallback'](_0x285da0=>{if('attribute'!=_0x285da0['type'])return;const {data:_0x34c0f9}=_0x285da0;return _0x34c0f9&&'src'==_0x34c0f9['key']?_0x34c0f9['newValue']&&_0x34c0f9['oldValue']?{'type':'format','content':o(_0x114cbf,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f9849=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f9849['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f9849['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f9849['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f9849['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45d6f7=this['editor'],_0x59dab0=_0x45d6f7['locale'];_0x45d6f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13b39c=>{if('formatBlock'!=_0x13b39c['type']&&'formatInline'!=_0x13b39c['type'])return;const {data:_0x174468}=_0x13b39c;if(!_0x174468||'replaceImageSource'!=_0x174468['commandName'])return;return{'type':'format','content':o(_0x59dab0,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x411e20{['afterInit'](){const _0x2fbc51=this['editor'];if(!_0x2fbc51['plugins']['has']('ImageStyleEditing'))return;const _0x4fbe56=_0x2fbc51['plugins']['get']('TrackChangesEditing'),_0x3c6679=_0x2fbc51['plugins']['get']('ImageUtils'),_0x267889={};_0x4fbe56['enableCommand']('imageStyle',(_0x4d1a68,_0x231260)=>{const _0x219a57=_0x2fbc51['plugins']['get']('Users')['me'],_0x3fadab=_0x2fbc51['commands']['get']('imageStyle');let _0xf99f87=_0x3c6679['getClosestSelectedImageElement'](_0x2fbc51['model']['document']['selection']),_0x82e2a6=_0x2fbc51['model']['createRangeOn'](_0xf99f87),_0x4afae7=_0x3fadab['value'];if(_0x4afae7==_0x231260['value'])return;const _0x2b5ba8={'commandName':'imageStyle','commandParams':[_0x231260],'formatGroupId':_0x4e0f2a()};_0x2fbc51['model']['change'](()=>{if(_0x4fbe56['getSuggestions']()['filter'](_0x2b979c=>_0x2b979c['isInContent']&&_0x219a57==_0x2b979c['author']&&('formatBlock'==_0x2b979c['type']||'formatInline'==_0x2b979c['type'])&&('imageStylePreApply'==_0x2b979c['subType']||'imageStylePostApply'==_0x2b979c['subType'])&&_0x2b979c['getFirstRange']()['isEqual'](_0x82e2a6))['forEach'](_0xef915d=>_0x4fbe56['discardSuggestion'](_0xef915d['head'])),_0xf99f87=_0x3c6679['getClosestSelectedImageElement'](_0x2fbc51['model']['document']['selection']),_0x82e2a6=_0x2fbc51['model']['createRangeOn'](_0xf99f87),_0x3fadab['refresh'](),_0x2fbc51['commands']['get']('imageTypeInline')['refresh'](),_0x2fbc51['commands']['get']('imageTypeBlock')['refresh'](),_0x4afae7=_0x3fadab['value'],_0x4afae7!=_0x231260['value'])return _0x3c6679['isInlineImage'](_0xf99f87)&&_0x3fadab['shouldConvertImageType'](_0x231260['value'],_0xf99f87)?(_0x4d1a68({..._0x231260,'setImageSizes':!0x1}),_0xf99f87=_0x3c6679['getClosestSelectedImageElement'](_0x2fbc51['model']['document']['selection']),void _0x4fbe56['markBlockFormat'](_0xf99f87,{..._0x2b5ba8,'commandReversedParams':[{'value':_0x4afae7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3c6679['isBlockImage'](_0xf99f87)?_0x4fbe56['markBlockFormat'](_0xf99f87,_0x2b5ba8,[],'imageStylePostApply'):_0x4fbe56['markInlineFormat'](_0x82e2a6,_0x2b5ba8,'imageStylePostApply'));});});for(const _0x345ffb of _0x2fbc51['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x267889[_0x345ffb['name']]=_0x345ffb['title']['toLowerCase']();_0x4fbe56['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4fbe56['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4fbe56['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4fbe56['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2d8dfe])=>{_0x3c6679['setImageNaturalSizeAttributes'](_0x2d8dfe['getContainedElement']());}),_0x4fbe56['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x36a960,_0x521315)=>{_0x4fbe56['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x36a960,{'commandName':_0x521315['commandName'],'commandParams':_0x521315['commandReversedParams']});}),_0x4fbe56['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4340e1,_0x103b34){if(_0x2a4379(_0x4340e1,_0x103b34))return[_0x4340e1,_0x103b34];if(_0x2a4379(_0x103b34,_0x4340e1))return[_0x103b34,_0x4340e1];return null;});const _0x5d6ed5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2a4379(_0x1d3d04,_0x4abeed){const _0x20486e=_0x5d6ed5['findIndex'](({type:_0x139a24,subType:_0x40c49e})=>_0x1d3d04['type']==_0x139a24&&_0x1d3d04['subType']==_0x40c49e),_0x212d89=_0x5d6ed5['findIndex'](({type:_0x410ff1,subType:_0x3baf8d})=>_0x4abeed['type']==_0x410ff1&&_0x4abeed['subType']==_0x3baf8d);if(_0x20486e<0x0||_0x212d89<0x0)return!0x1;const _0x440045=_0x1d3d04['getFirstRange'](),_0x17145d=_0x4abeed['getFirstRange']();if((0x0==_0x20486e||0x1==_0x20486e)&&0x2==_0x212d89&&_0x440045['isIntersecting'](_0x17145d))return!0x0;if(0x2==_0x20486e&&0x3==_0x212d89){const _0x5eae3f=_0x4fbe56['_findSuggestions'](_0x440045,'insertion')['filter'](({suggestion:_0x77429b,meta:_0x598bf8})=>_0x598bf8['isOwn']&&'convertInlineImageToBlock'==_0x77429b['subType']);if(_0x5eae3f['length']>0x1&&_0x17145d['end']['isEqual'](_0x440045['start']))return!0x0;if(0x1==_0x5eae3f['length']&&(_0x440045['start']['isEqual'](_0x17145d['end'])||_0x440045['end']['isEqual'](_0x17145d['start'])))return!0x0;}if(0x3==_0x20486e&&0x3==_0x212d89&&_0x440045['start']['isBefore'](_0x17145d['start'])){const _0x11b3b3=_0x440045['end']['nodeAfter'],_0x4493d4=_0x17145d['start']['nodeBefore'];return _0x3c6679['isBlockImage'](_0x11b3b3)&&_0x11b3b3===_0x4493d4;}return!0x1;}_0x2fbc51['model']['document']['registerPostFixer'](()=>{let _0x9b379d=!0x1;const _0x3b2a7e=Array['from'](_0x2fbc51['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x533e0f,data:_0x28e0aa}of _0x3b2a7e){const {group:_0x1222b1,type:_0x193e16,subType:_0x53b731,id:_0x371978}=_0x4fbe56['_splitMarkerName'](_0x533e0f);if('suggestion'==_0x1222b1&&_0x4fbe56['hasSuggestion'](_0x371978)){if('formatBlock'==_0x193e16&&('imageStylePreApply'==_0x53b731||'imageStylePostApply'==_0x53b731)){const _0x205a7b=_0x4fbe56['getSuggestion'](_0x371978);if(_0x28e0aa['newRange']){const _0x4a227d=_0x205a7b['getFirstRange']()['getContainedElement']();if(_0x3c6679['isBlockImage'](_0x4a227d))continue;_0x4fbe56['discardSuggestion'](_0x205a7b),_0x9b379d=!0x0;}}if('insertion'==_0x193e16&&'imageCaption'==_0x53b731&&!_0x28e0aa['newRange']){const _0x2f5f45=_0x4fbe56['getSuggestion'](_0x371978);_0x2f5f45['next']&&_0x2f5f45['next']['isInContent']&&(_0x4fbe56['discardSuggestion'](_0x2f5f45['next']),_0x9b379d=!0x0);}}}return _0x9b379d;}),this['_registerLegacyDescription'](_0x267889);}['_registerLegacyDescription'](_0x26ba21){const _0x54ab48=this['editor'],_0x44f2ad=_0x54ab48['locale'];_0x54ab48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48e5bf=>{if('formatBlock'!=_0x48e5bf['type']&&'formatInline'!=_0x48e5bf['type'])return;const {data:_0x320a82}=_0x48e5bf;if(!_0x320a82||'imageStyle'!=_0x320a82['commandName'])return;const _0x7c5c89=_0x320a82['commandParams'][0x0]['value'];return _0x41abfc('side'===_0x7c5c89?o(_0x44f2ad,'FORMAT_SIDE_IMAGE'):_0x26ba21[_0x7c5c89]||_0x7c5c89);function _0x41abfc(_0x2980f9){return{'type':'format','content':o(_0x44f2ad,'*Format:*\x20%0',_0x2980f9)};}});}}class ut extends _0x411e20{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x439c3c){super(_0x439c3c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x363f99=this['editor'],_0x5b67a0=_0x363f99['commands']['get']('importWord'),_0x65996e=_0x363f99['commands']['get']('trackChanges');_0x5b67a0&&(_0x5b67a0['on']('execute',(_0x2f6a94,[,_0x1422ef])=>{this['_trackChangesValueDuringImport']=_0x65996e['value'],_0x1422ef['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b67a0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b67a0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x65996e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x363f99['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x36bd79,_0x571dea){const {suggestions:_0x46abcc}=_0x571dea,_0x18b872=this['editor']['commands']['get']('trackChanges'),_0x47bee6=_0x18b872['value'];this['_trackChangesValueDuringImport']!==_0x47bee6&&(_0x18b872['execute'](),this['_trackChangesExecuted']=!0x0),_0x46abcc&&_0x46abcc['forEach'](({id:_0x435d92,type:_0x8bf28b,author:_0x2f41d1,created_at:_0x5bbe49})=>{const _0xbe359e={'id':_0x435d92,'type':_0x8bf28b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2f41d1,'createdAt':_0x5bbe49?new Date(_0x5bbe49):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xbe359e);});}}class ft extends _0x411e20{['afterInit'](){const _0x2ece1b=this['editor'],_0x1676e0=_0x2ece1b['plugins']['get']('TrackChangesEditing');if(_0x2ece1b['plugins']['has']('IndentEditing')&&(_0x1676e0['enableCommand']('indent'),_0x1676e0['enableCommand']('outdent')),_0x2ece1b['plugins']['has']('IndentBlock')){for(const _0x513a60 of['indentBlock','outdentBlock'])_0x1676e0['enableDefaultAttributesIntegration'](_0x513a60);}const _0x34f5eb=_0x2ece1b['locale'];_0x1676e0['registerBlockAttribute']('blockIndent'),_0x1676e0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x34f5eb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x561162=this['editor'],_0x247b3e=_0x561162['locale'],_0x469b05=_0x561162['plugins']['get']('TrackChangesEditing');_0x469b05['descriptionFactory']['registerDescriptionCallback'](_0x2a8344=>{if('formatBlock'!=_0x2a8344['type'])return;const {data:_0x255476}=_0x2a8344;if(!_0x255476)return;if('indentBlock'!=_0x255476['commandName']&&'outdentBlock'!=_0x255476['commandName'])return;const _0x4ad88f=_0x2a8344['getItems']()[0x0],_0x833961=_0x469b05['descriptionFactory']['getItemLabel'](_0x4ad88f);return'indentBlock'==_0x255476['commandName']?{'type':'format','content':o(_0x247b3e,'*Indent:*\x20%0',_0x833961)}:'outdentBlock'==_0x255476['commandName']?{'type':'format','content':o(_0x247b3e,'*Outdent:*\x20%0',_0x833961)}:void 0x0;});}}class ht extends _0x411e20{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x411e20{['afterInit'](){const _0x2cc5ed=this['editor'];if(!_0x2cc5ed['plugins']['has']('LinkEditing'))return;const _0xbf2bbc=_0x2cc5ed['plugins']['get']('TrackChangesEditing'),_0x2997c6=_0x2cc5ed['commands']['get']('link');_0xbf2bbc['enableDefaultAttributesIntegration']('link'),_0xbf2bbc['enableDefaultAttributesIntegration']('unlink'),_0xbf2bbc['registerInlineAttribute']('linkHref');for(const _0x1b3644 of _0x2997c6['manualDecorators'])_0xbf2bbc['registerInlineAttribute'](_0x1b3644['id']),_0xbf2bbc['descriptionFactory']['registerAttributeLabel'](_0x1b3644['id'],'link\x20('+_0x1b3644['label']['toLowerCase']()+')');_0xbf2bbc['descriptionFactory']['registerDescriptionCallback'](_0xf183ce=>{if('attribute'!=_0xf183ce['type'])return;const {data:_0x1a4b92}=_0xf183ce;if(!_0x1a4b92||'linkHref'!=_0x1a4b92['key'])return;const _0x1f4221=_0x1a4b92['newValue'],_0x242d2c=_0x2cc5ed['locale'];return{'type':'format','content':null==_0x1f4221?o(_0x242d2c,'*Remove\x20link*'):o(_0x242d2c,'*Set\x20link:*\x20%0','\x22'+_0x1f4221+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x120a1b=this['editor'],_0xb20703=_0x120a1b['locale'];_0x120a1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x76ccd5=>{if('formatInline'!=_0x76ccd5['type'])return;const {data:_0x2d05b8}=_0x76ccd5;if(_0x2d05b8){if('link'==_0x2d05b8['commandName']){const _0x52f7fd=_0x2d05b8['commandParams'][0x0];return{'type':'format','content':o(_0xb20703,'*Set\x20link:*\x20%0','\x22'+_0x52f7fd+'\x22')};}return'unlink'==_0x2d05b8['commandName']?{'type':'format','content':o(_0xb20703,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x411e20{['afterInit'](){const _0x151ee5=this['editor'],_0x2af2af=_0x151ee5['locale'];if(!_0x151ee5['plugins']['has']('LegacyListEditing'))return;const _0x2f5193=_0x151ee5['plugins']['get']('TrackChangesEditing'),_0x24661e=_0x151ee5['plugins']['has']('LegacyTodoListEditing');function _0x5d62b7(_0x509fce){return()=>{const _0x5a689a=_0x151ee5['model']['document']['selection'],_0x4c8344=_0x151ee5['commands']['get'](_0x509fce);if(_0x4c8344['value'])return void _0x151ee5['execute']('paragraph',{});const _0x1ea446=_0x509fce['slice'](0x0,-0x4),_0x540e4d=function(_0x33cbcc,_0x1fc6a4,_0x4ae875){let _0x19f275=Array['from'](_0x33cbcc)['filter'](_0xe6935b=>function(_0x45f78a,_0x5a1d1e){return _0x5a1d1e['checkChild'](_0x45f78a['parent'],'listItem')&&!_0x5a1d1e['isObject'](_0x45f78a);}(_0xe6935b,_0x4ae875));_0x19f275=_0x19f275['filter'](_0x123c14=>!_0x123c14['is']('element','listItem')||_0x123c14['getAttribute']('listType')!=_0x1fc6a4);const _0xd53ebe=new Set();for(const _0x3a0b30 of _0x19f275)_0x3a0b30['is']('element','listItem')?_0xd53ebe['add'](Le(_0x3a0b30)):_0xd53ebe['add'](_0x3a0b30);return Array['from'](_0xd53ebe);}(_0x5a689a['getSelectedBlocks'](),_0x1ea446,_0x151ee5['model']['schema']);_0x151ee5['model']['change'](()=>{for(const _0xcd31ad of _0x540e4d)_0x2f5193['markBlockFormat'](_0xcd31ad,{'commandName':_0x509fce,'commandParams':[{'forceValue':!_0x4c8344['value']}],'formatGroupId':'blockName'},Ee(_0xcd31ad));});};}function _0x540a08(_0x4cb11c){return()=>{const _0x2b8a7f=function(_0x563336){let _0x1ddcc8=Array['from'](_0x563336);const _0x13fb64=_0x1ddcc8['findIndex'](_0x3aca28=>'listItem'!=_0x3aca28['name']);return _0x13fb64>-0x1&&(_0x1ddcc8=_0x1ddcc8['slice'](0x0,_0x13fb64)),_0x1ddcc8;}(_0x151ee5['model']['document']['selection']['getSelectedBlocks']()),_0x4421dc=_0x151ee5['model']['createRange'](_0x151ee5['model']['createPositionAt'](_0x2b8a7f[0x0],'before'),_0x151ee5['model']['createPositionAt'](_0x2b8a7f[_0x2b8a7f['length']-0x1],'end'));_0x151ee5['model']['change'](()=>{_0x2f5193['markBlockFormat'](_0x4421dc,{'commandName':_0x4cb11c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x45ba4a){const _0x5d5e05=new Set();for(const _0x46a457 of _0x45ba4a){let _0x5450ef=_0x46a457['nextSibling'];for(;_0x5450ef&&_0x5450ef['getAttribute']('listIndent')>_0x46a457['getAttribute']('listIndent');)_0x5d5e05['add'](_0x5450ef),_0x5450ef=_0x5450ef['nextSibling'];}return Array['from'](_0x5d5e05);}(_0x2b8a7f));});};}_0x2f5193['enableCommand']('numberedList',_0x5d62b7('numberedList')),_0x2f5193['enableCommand']('bulletedList',_0x5d62b7('bulletedList')),_0x24661e&&_0x2f5193['enableCommand']('todoList',_0x5d62b7('todoList')),_0x2f5193['enableCommand']('indentList',_0x540a08('indentList')),_0x2f5193['enableCommand']('outdentList',_0x540a08('outdentList')),_0x24661e&&_0x2f5193['enableCommand']('checkTodoList',()=>{const _0x5de477=_0x151ee5['commands']['get']('checkTodoList'),_0x402186=Array['from'](_0x5de477['_selectedElements']);_0x402186['filter'](_0x2430de=>_0x2430de['getAttribute']('todoListChecked')!=_0x5de477['value']),_0x151ee5['model']['change'](()=>{for(const _0x24fa40 of _0x402186)_0x2f5193['markBlockFormat'](_0x24fa40,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5de477['value']}]});});}),_0x2f5193['descriptionFactory']['registerElementLabel']('listItem',_0x5c63ef=>o(_0x2af2af,'ELEMENT_LIST_ITEM',_0x5c63ef)),_0x2f5193['descriptionFactory']['registerDescriptionCallback'](_0x335518=>{if('formatBlock'!=_0x335518['type']&&'formatInline'!=_0x335518['type'])return;const {data:_0x2cd364}=_0x335518;if(_0x2cd364){if('numberedList'==_0x2cd364['commandName']||'bulletedList'==_0x2cd364['commandName']||'todoList'==_0x2cd364['commandName'])switch(_0x2cd364['commandName']['replace']('List','')){case'bulleted':return _0x5ae4d5(o(_0x2af2af,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ae4d5(o(_0x2af2af,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ae4d5(o(_0x2af2af,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2cd364['commandName'])return{'type':'format','content':o(_0x2af2af,'*Indent:*\x20%0',o(_0x2af2af,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2cd364['commandName'])return{'type':'format','content':o(_0x2af2af,'*Outdent:*\x20%0',o(_0x2af2af,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2cd364['commandName'])return _0x2cd364['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2af2af,'*Check\x20item*')}:{'type':'format','content':o(_0x2af2af,'*Uncheck\x20item*')};}function _0x5ae4d5(_0x56854c){return{'type':'format','content':o(_0x2af2af,'*Change\x20to:*\x20%0',_0x56854c)};}});}}function Le(_0x24b92e){const _0x4c7852=_0x24b92e['getAttribute']('listIndent');if(0x0==_0x4c7852)return _0x24b92e;let _0x3c79f7=_0x24b92e;for(;_0x24b92e['previousSibling']&&_0x24b92e['previousSibling']['is']('element','listItem');){const _0x4c1017=_0x24b92e['previousSibling']['getAttribute']('listIndent');if(_0x4c1017==_0x4c7852)_0x3c79f7=_0x24b92e['previousSibling'];else{if(_0x4c1017<_0x4c7852)break;}_0x24b92e=_0x24b92e['previousSibling'];}return _0x3c79f7;}function Ee(_0xc486b5){const _0x4a0a41=[];if(_0xc486b5['is']('element','listItem')&&_0xc486b5['getAttribute']('listIndent')>0x0){let _0x39fa7e=_0xc486b5['nextSibling'];for(;_0x39fa7e&&'listItem'==_0x39fa7e['name']&&_0x39fa7e['getAttribute']('listIndent')==_0xc486b5['getAttribute']('listIndent');)_0x4a0a41['push'](_0x39fa7e),_0x39fa7e=_0x39fa7e['nextSibling'];}return _0x4a0a41;}class Q extends _0x411e20{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4e498c=this['editor']['config']['get']('list.properties'),_0x2a1863=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e498c['styles']&&_0x2a1863['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4e498c['reversed']&&_0x2a1863['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4e498c['startIndex']&&_0x2a1863['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2a1863['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x17751a,_0x3720dd={}){const _0x4eba98=this['editor']['plugins']['get']('TrackChangesEditing'),_0x547361=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4eba98['markMultiRangeBlockFormat'](_0x547361,{'commandName':'listStyle','commandParams':[{'type':_0x3720dd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb6b283,_0x2d9a3d={}){const _0x5957c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x374499=this['_getSuggestionBlocks'](_0xa8f33e=>_0xa8f33e['is']('element','listItem')&&'numbered'===_0xa8f33e['getAttribute']('listType'));if(_0x374499['length']<0x1)return;const _0x155538=_0x374499['map'](_0x4c5a46=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c5a46,'before'),this['editor']['model']['createPositionAt'](_0x4c5a46,0x0)));this['editor']['model']['change'](()=>{_0x5957c1['markMultiRangeBlockFormat'](_0x155538,{'commandName':'listReversed','commandParams':[{'reversed':_0x2d9a3d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x126df8,_0x37b13f={}){const _0x28c496=this['editor']['plugins']['get']('TrackChangesEditing'),_0x189ef8=this['_getSuggestionBlocks'](_0x4b9afd=>_0x4b9afd['is']('element','listItem')&&'numbered'===_0x4b9afd['getAttribute']('listType'));if(_0x189ef8['length']<0x1)return;const _0x15740f=_0x189ef8['map'](_0x2ccb90=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ccb90,'before'),this['editor']['model']['createPositionAt'](_0x2ccb90,0x0)));this['editor']['model']['change'](()=>{_0x28c496['markMultiRangeBlockFormat'](_0x15740f,{'commandName':'listStart','commandParams':[{'startIndex':_0x37b13f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2fa8e7){if('formatBlock'!=_0x2fa8e7['type']&&'formatInline'!=_0x2fa8e7['type'])return;const _0xfb452c=this['editor']['locale'],{data:_0x63d4a7}=_0x2fa8e7;if(!_0x63d4a7)return;let _0x293896,_0x2733fc;switch(_0x63d4a7['commandName']){case'listStyle':_0x293896='*Change\x20to:*\x20%0',_0x2733fc={'type':'format','content':o(_0xfb452c,_0x293896,o(_0xfb452c,this['_getTranslationKeyForListStyle'](_0x63d4a7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x293896=_0x63d4a7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2733fc={'type':'format','content':o(_0xfb452c,_0x293896)};break;case'listStart':_0x293896='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2733fc={'type':'format','content':o(_0xfb452c,_0x293896,_0x63d4a7['commandParams'][0x0]['startIndex'])};}return _0x2733fc;}['_getSuggestionBlocksForListStyle'](){const _0x324c8f=this['editor']['plugins']['get']('LegacyListUtils');let _0x1a569c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1a569c[0x0]?.['is']('element','listItem')&&_0x1a569c['unshift'](..._0x324c8f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1a569c[_0x1a569c['length']-0x1]?.['is']('element','listItem')&&_0x1a569c['push'](..._0x324c8f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1a569c=[...new Set(_0x1a569c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1a569c=_0x1a569c['filter'](_0x371094=>_0x371094['is']('element','listItem'))),_0x1a569c;}['_getSuggestionBlocks'](_0x4565e6){const _0x5dfa4a=this['editor']['plugins']['get']('LegacyListUtils');let _0x12200c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4565e6)['map'](_0x1fafb6=>{const _0x29e3d5=this['editor']['model']['createPositionAt'](_0x1fafb6,0x0);return[..._0x5dfa4a['getSiblingNodes'](_0x29e3d5,'backward'),..._0x5dfa4a['getSiblingNodes'](_0x29e3d5,'forward')];})['flat']();return _0x12200c=[...new Set(_0x12200c)],_0x12200c;}['_getTranslationKeyForListStyle'](_0x5c27f2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5c27f2)||'default')['toUpperCase']()+'_LIST_'+_0x5c27f2['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x411e20{['afterInit'](){const _0x21b109=this['editor'];if(!_0x21b109['plugins']['has']('MediaEmbedEditing'))return;const _0x3e2ad9=_0x21b109['plugins']['get']('TrackChangesEditing'),_0x5c3d59=_0x21b109['locale'];_0x3e2ad9['enableCommand']('mediaEmbed'),_0x3e2ad9['descriptionFactory']['registerElementLabel']('media',_0x51d274=>o(_0x5c3d59,'ELEMENT_MEDIA',_0x51d274)),_0x21b109['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x224246,{writer:_0x21790c,options:_0x5123f3})=>{if(_0x5123f3['showSuggestionHighlights'])return _0x21790c['createEmptyElement']('div');},'converterPriority':'high'}),_0x21b109['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ca0e0,_0x2a998f,_0x528254)=>{_0x528254['options']['showSuggestionHighlights']&&_0x3ca0e0['stop']();},{'priority':'high'});}}class pt extends _0x411e20{['afterInit'](){const _0x57bfd8=this['editor'];_0x57bfd8['plugins']['has']('MentionEditing')&&_0x57bfd8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x411e20{['afterInit'](){const _0x1b6c7b=this['editor'];if(!_0x1b6c7b['plugins']['has']('MergeFieldsEditing'))return;const _0x56d261=_0x1b6c7b['plugins']['get']('TrackChangesEditing'),_0x5940e0=_0x1b6c7b['locale'];_0x56d261['enableCommand']('insertMergeField'),_0x56d261['enableCommand']('insertMergeFieldBlock'),_0x56d261['enableCommand']('insertMergeFieldImage'),_0x56d261['descriptionFactory']['registerElementLabel']('mergeField',_0x3784c0=>o(_0x5940e0,'ELEMENT_MERGE_FIELD',_0x3784c0)),_0x56d261['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4a03de=>o(_0x5940e0,'ELEMENT_MERGE_FIELD',_0x4a03de)),_0x56d261['descriptionFactory']['registerDescriptionCallback'](_0x34b9dc=>{if('insertion'!=_0x34b9dc['type']&&'deletion'!=_0x34b9dc['type'])return;const _0x12e770=_0x34b9dc['getContainedElement']();if(null==_0x12e770)return;const _0x4f73e6=_0x1b6c7b['plugins']['get']('MergeFieldsEditing');let _0x1d763d;switch(_0x4f73e6['getMergeFieldType'](_0x12e770)){case null:return;case'image':{const _0x36a4ab=_0x4f73e6['unwrapAffixes'](_0x12e770['getAttribute']('src'));_0x1d763d=_0x4f73e6['getLabel'](_0x36a4ab)||_0x36a4ab;break;}default:{const _0x9a0c4c=_0x12e770['getAttribute']('id');_0x1d763d=_0x4f73e6['getLabel'](_0x9a0c4c)||_0x9a0c4c;break;}}return'insertion'==_0x34b9dc['type']?{'type':'insertion','content':o(_0x5940e0,'*Insert:*\x20%0','\x22'+_0x1d763d+'\x22\x20'+o(_0x5940e0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5940e0,'*Remove:*\x20%0','\x22'+_0x1d763d+'\x22\x20'+o(_0x5940e0,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x411e20{['afterInit'](){const _0x2964bd=this['editor'],_0x267402=_0x2964bd['plugins']['get']('TrackChangesEditing');_0x2964bd['plugins']['has']('MultiLevelList')&&(_0x267402['enableDefaultAttributesIntegration']('multiLevelList'),_0x267402['registerBlockAttribute']('listMarkerStyle'),_0x267402['descriptionFactory']['registerDescriptionCallback'](_0x4e8730=>this['handleDescriptions'](_0x4e8730)));}['handleDescriptions'](_0x2f5b08){const _0x4a6eaa=this['editor']['locale'],{data:_0x3507fe}=_0x2f5b08,_0x448790={'type':'format','content':''};if(_0x3507fe&&'listMarkerStyle'==_0x3507fe['key']){if(!_0x3507fe['oldValue'])return{'type':'format','content':o(_0x4a6eaa,'*Set\x20format:*\x20%0',o(_0x4a6eaa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3507fe['newValue']+')'};if(!_0x3507fe['newValue']){let _0x3b05b6=_0x2f5b08['head'];for(;_0x3b05b6;){if(_0x3b05b6['data']&&'listType'==_0x3b05b6['data']['key']&&_0x3b05b6['data']['newValue'])return _0x448790;_0x3b05b6=_0x3b05b6['next'];}return{'type':'format','content':o(_0x4a6eaa,'*Remove\x20format:*\x20%0',o(_0x4a6eaa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3507fe['oldValue']+')'};}}}}class bt extends _0x411e20{['afterInit'](){const _0x33eb4a=this['editor'];if(!_0x33eb4a['plugins']['has']('PageBreakEditing'))return;_0x33eb4a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x253c35=_0x33eb4a['plugins']['get']('TrackChangesEditing'),_0x2b42fd=_0x33eb4a['locale'];_0x253c35['descriptionFactory']['registerElementLabel']('pageBreak',_0x274220=>o(_0x2b42fd,'ELEMENT_PAGE_BREAK',_0x274220));}}class yt extends _0x411e20{['afterInit'](){const _0x353bc1=this['editor'];if(!_0x353bc1['plugins']['has']('Paragraph'))return;const _0x48246c=_0x353bc1['locale'],_0x22263e=_0x353bc1['plugins']['get']('TrackChangesEditing');_0x22263e['descriptionFactory']['registerElementLabel']('paragraph',_0x9a1a3e=>o(_0x48246c,'ELEMENT_PARAGRAPH',_0x9a1a3e)),_0x22263e['enableDefaultAttributesIntegration']('paragraph'),_0x22263e['enableCommand']('insertParagraph'),_0x353bc1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x353bc1),{'priority':'highest'}),_0x353bc1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1cd8f4,_0x25b163,_0x82a044)=>{_0x82a044['options']['showSuggestionHighlights']&&nr(_0x353bc1,{'showActiveMarker':!0x1})(_0x1cd8f4,_0x25b163,_0x82a044);},{'priority':'highest'});const _0x26c6c0=_0x22263e['descriptionFactory'];_0x26c6c0['registerDescriptionCallback'](_0x21c123=>{if('insertion'!==_0x21c123['type'])return;const {start:_0x42a9bf,end:_0x748ee0}=_0x21c123['getFirstRange']();if(!_0x42a9bf['isTouching'](_0x748ee0)||!_0x42a9bf['nodeAfter'])return;const _0x1152d3=_0x353bc1['model']['schema'],_0x2c4544=_0x42a9bf['nodeAfter'];return _0x1152d3['isBlock'](_0x2c4544)&&!_0x1152d3['isLimit'](_0x2c4544)&&_0x1152d3['checkChild'](_0x2c4544,'$text')?{'type':'insertion','content':o(_0x48246c,'*Insert:*\x20%0',_0x26c6c0['getItemLabel'](_0x2c4544,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x272d14=this['editor'],_0x3b2945=_0x272d14['locale'];_0x272d14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x328fb6=>{if('formatBlock'!=_0x328fb6['type'])return;const {data:_0x558761}=_0x328fb6;return _0x558761&&'paragraph'==_0x558761['commandName']?{'type':'format','content':o(_0x3b2945,'*Change\x20to:*\x20%0',o(_0x3b2945,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x40e8f0,{showActiveMarker:_0x935676=!0x0}={}){return(_0xc21d9d,_0x1a4342,_0x86f8e7)=>{const _0x3087b4=_0x40e8f0['plugins']['get']('TrackChangesEditing'),_0x1a99e2=_0x1a4342['markerRange']['start'],_0x3c0e0a=_0x1a4342['markerRange']['end'],_0x1c80a2=_0x40e8f0['model']['schema'];if(!_0x1a99e2['isTouching'](_0x3c0e0a)||!_0x1a99e2['nodeAfter'])return;const _0x1e14da=_0x1a99e2['nodeAfter'];if(_0x1c80a2['isBlock'](_0x1e14da)&&!_0x1c80a2['isLimit'](_0x1e14da)&&_0x1c80a2['checkChild'](_0x1e14da,'$text')){if(!_0x86f8e7['consumable']['consume'](_0x1a4342['markerRange'],_0xc21d9d['name']))return;const {authorId:_0x4e341e}=_0x3087b4['_splitMarkerName'](_0x1a4342['markerName']),_0x557147=_0x86f8e7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4e341e}),_0x53f1a3=_0x86f8e7['mapper']['toViewPosition'](_0x3c0e0a);_0x935676&&_0x3087b4['activeMarkers']['includes'](_0x1a4342['markerName'])&&_0x86f8e7['writer']['addClass']('ck-suggestion-marker--active',_0x557147),_0x86f8e7['writer']['insert'](_0x53f1a3,_0x557147),_0x86f8e7['mapper']['bindElementToMarker'](_0x557147,_0x1a4342['markerName']);}};}class jt extends _0x411e20{['afterInit'](){const _0x48da57=this['editor'];_0x48da57['commands']['get']('replaceSource')&&_0x48da57['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x411e20{['afterInit'](){const _0x5ece2d=this['editor'];if(!_0x5ece2d['plugins']['has']('RemoveFormatEditing'))return;_0x5ece2d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfd1c9b=this['editor'];_0xfd1c9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2437b3=>{if('formatBlock'!=_0x2437b3['type']&&'formatInline'!=_0x2437b3['type'])return;const {data:_0x4ce44d}=_0x2437b3;return _0x4ce44d&&'removeFormat'==_0x4ce44d['commandName']?{'type':'format','content':o(_0xfd1c9b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x411e20{['afterInit'](){const _0x24ef8d=this['editor'];if(!_0x24ef8d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x218f43=_0x24ef8d['plugins']['get']('TrackChangesEditing');_0x218f43['enableCommand']('goToPreviousRestrictedEditingException'),_0x218f43['enableCommand']('goToNextRestrictedEditingException');const _0x1d31b3=_0x24ef8d['plugins']['get']('RestrictedEditingModeEditing');_0x1d31b3['enableCommand']('trackChanges'),_0x1d31b3['enableCommand']('acceptSuggestion'),_0x1d31b3['enableCommand']('discardSuggestion'),_0x1d31b3['enableCommand']('acceptAllSuggestions'),_0x1d31b3['enableCommand']('discardAllSuggestions'),_0x1d31b3['enableCommand']('acceptSelectedSuggestions'),_0x1d31b3['enableCommand']('discardSelectedSuggestions');}}class It extends _0x411e20{static get['requires'](){return[_0x50b546];}['init'](){const _0x1ae76e=this['editor'],_0x53b26b=_0x1ae76e['plugins']['get']('TrackChangesEditing');_0x53b26b['enableCommand']('shiftEnter'),_0x1ae76e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1ae76e),{'priority':'high'}),_0x1ae76e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1ae76e),{'priority':'high'}),_0x1ae76e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x77e789,_0x7edb86,_0x48f145)=>{_0x48f145['options']['showSuggestionHighlights']&&je(_0x1ae76e,{'showActiveMarker':!0x1})(_0x77e789,_0x7edb86,_0x48f145);}),_0x53b26b['descriptionFactory']['registerElementLabel']('softBreak',_0x2fa1aa=>o(_0x1ae76e['locale'],'ELEMENT_LINE_BREAK',_0x2fa1aa));}}function je(_0x206da2,{showActiveMarker:_0x1819ed=!0x0}={}){return(_0x56e102,_0x396203,_0x271866)=>{const _0x2a4743=_0x206da2['plugins']['get']('TrackChangesEditing');if(!_0x271866['consumable']['test'](_0x396203['markerRange'],_0x56e102['name']))return;const _0x26dd60=_0x206da2['model'];for(const _0x22a8fe of _0x396203['markerRange']['getItems']()){if(!_0x22a8fe['is']('element','softBreak'))continue;const _0x42268f='deletion'==_0x396203['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1eacd2}=_0x2a4743['_splitMarkerName'](_0x396203['markerName']),_0x1e640c=_0x271866['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42268f,'data-author-id':_0x1eacd2}),_0x5a2853=_0x271866['mapper']['toViewPosition'](_0x26dd60['createPositionBefore'](_0x22a8fe));_0x1819ed&&_0x2a4743['activeMarkers']['includes'](_0x396203['markerName'])&&_0x271866['writer']['addClass']('ck-suggestion-marker--active',_0x1e640c),_0x271866['writer']['insert'](_0x5a2853,_0x1e640c),_0x271866['mapper']['bindElementToMarker'](_0x1e640c,_0x396203['markerName']);}};}class vt extends _0x411e20{['afterInit'](){const _0x163fe0=this['editor'],_0x28d2ef=_0x163fe0['model'],_0x1b493b=_0x163fe0['locale'];if(!_0x163fe0['plugins']['has']('StandardEditingModeEditing'))return;const _0x2cf0bc=_0x163fe0['plugins']['get']('TrackChangesEditing'),_0x5284d9='restrictedEditingException',_0x11ce66=_0x163fe0['commands']['get'](_0x5284d9);_0x2cf0bc['enableCommand'](_0x5284d9,(_0x9a6fa4,_0x4ed06e={})=>{const _0x4cd4e8=_0x28d2ef['document']['selection'];if(_0x4cd4e8['isCollapsed'])return void _0x9a6fa4(_0x4ed06e);const _0x375c9e=void 0x0!==_0x4ed06e['forceValue']?_0x4ed06e['forceValue']:!_0x11ce66['value'];_0x28d2ef['change'](()=>{const _0x2fa28a=Array['from'](_0x4cd4e8['getRanges']());for(const _0x265320 of _0x2fa28a){const _0x50213b=_0x375c9e?[_0x265320]:io(_0x5284d9,_0x265320,_0x28d2ef);for(const _0x250ac7 of _0x50213b)_0x2cf0bc['markInlineFormat'](_0x250ac7,{'commandName':_0x5284d9,'commandParams':[{'forceValue':_0x375c9e}]});}});}),_0x2cf0bc['descriptionFactory']['registerDescriptionCallback'](_0x692c4e=>{if('formatBlock'!=_0x692c4e['type']&&'formatInline'!=_0x692c4e['type'])return;const {data:_0x1dcf2b}=_0x692c4e;return _0x1dcf2b&&_0x1dcf2b['commandName']==_0x5284d9?_0x1dcf2b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b493b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1b493b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x411e20{['afterInit'](){const _0x16f1d6=this['editor'];if(!_0x16f1d6['plugins']['has']('Style')||!_0x16f1d6['plugins']['has']('DataSchema'))return;const _0xb78295=_0x16f1d6['plugins']['get']('TrackChangesEditing'),_0x1f6f3a=_0x16f1d6['locale'],_0x116774=_0x16f1d6['config']['get']('style')||{},_0x41e084=_0x16f1d6['plugins']['get']('GeneralHtmlSupport'),_0x4c8264=_0x16f1d6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x16f1d6['plugins']['get']('DataSchema'),_0x116774['definitions']);_0xb78295['enableDefaultAttributesIntegration']('style');const _0x4da2a2=new Set();for(const _0x33d9b6 of _0x4c8264['block']){const _0x8c61b7=_0x41e084['getGhsAttributeNameForElement'](_0x33d9b6['element']);_0x4da2a2['add'](_0x8c61b7);}const _0x54b66b=new Set();for(const _0x9477eb of _0x4c8264['inline']){const _0x1dcf83=_0x41e084['getGhsAttributeNameForElement'](_0x9477eb['element']);_0x54b66b['add'](_0x1dcf83);for(const _0x416c39 of _0x9477eb['ghsAttributes'])_0x54b66b['add'](_0x416c39);}for(const _0x5c0f41 of _0x4da2a2)_0xb78295['registerBlockAttribute'](_0x5c0f41),_0xb78295['descriptionFactory']['registerAttributeLabel'](_0x5c0f41,o(_0x1f6f3a,'FORMAT_STYLE'));for(const _0x16874e of _0x54b66b)_0xb78295['registerInlineAttribute'](_0x16874e),_0xb78295['descriptionFactory']['registerAttributeLabel'](_0x16874e,o(_0x1f6f3a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46e76f=this['editor'],_0x14cc2e=_0x46e76f['locale'];_0x46e76f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9d5a1e=>{if('formatBlock'!=_0x9d5a1e['type']&&'formatInline'!=_0x9d5a1e['type'])return;const {data:_0x21d6d7}=_0x9d5a1e;return _0x21d6d7&&'style'===_0x21d6d7['commandName']?_0x21d6d7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14cc2e,'*Set\x20format:*\x20%0',_0x21d6d7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x14cc2e,'*Remove\x20format:*\x20%0',_0x21d6d7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x411e20{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1bb3dc){super(_0x1bb3dc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x41e034=this['editor'],_0x92b5c7=_0x41e034['model']['document']['selection'];if(!_0x41e034['plugins']['has']('TableEditing'))return;const _0x3cec91=_0x41e034['locale'],_0x3de173=_0x41e034['plugins']['get']('TrackChangesEditing'),_0xdee593=_0x41e034['plugins']['get']('TableUtils');_0x3de173['descriptionFactory']['registerElementLabel']('table',_0x92689d=>o(_0x3cec91,'ELEMENT_TABLE',_0x92689d)),this['_setupColumnsRowsFixing'](),_0x3de173['enableCommand']('insertTable'),_0x3de173['enableCommand']('selectTableRow'),_0x3de173['enableCommand']('selectTableColumn');for(const _0x4bbc08 of['insertTableRowAbove','insertTableRowBelow']){const _0x36ad1d=_0x41e034['commands']['get'](_0x4bbc08);_0x3de173['enableCommand'](_0x4bbc08,_0x40c79d=>{_0x41e034['model']['change'](_0x450df3=>{_0x40c79d();const _0x526f03='above'===_0x36ad1d['order'],_0x5adf55=_0xdee593['getSelectionAffectedTableCells'](_0x92b5c7),_0x15f446=_0xdee593['getRowIndexes'](_0x5adf55),_0x5c54b6=_0x526f03?_0x15f446['first']-0x1:_0x15f446['last']+0x1,_0x3ed779=_0x5adf55[0x0]['findAncestor']('table'),_0x28f529=_0xdee593['createTableWalker'](_0x3ed779,{'startRow':_0x5c54b6,'endRow':_0x5c54b6}),_0x1bf3da=Array['from'](_0x28f529)['map'](_0x23eb9d=>_0x450df3['createRangeOn'](_0x23eb9d['cell']));_0x3de173['markMultiRangeInsertion'](_0x1bf3da,'tableRow');});});}for(const _0x39288c of['insertTableColumnLeft','insertTableColumnRight']){const _0x2c2f1b=_0x41e034['commands']['get'](_0x39288c);_0x3de173['enableCommand'](_0x39288c,_0x5c3610=>{_0x41e034['model']['change'](_0x74fbc6=>{_0x5c3610();const _0x4cc2f3='left'===_0x2c2f1b['order'],_0x1226b3=_0xdee593['getSelectionAffectedTableCells'](_0x92b5c7),_0x144e51=_0xdee593['getColumnIndexes'](_0x1226b3),_0x34c2a7=_0x4cc2f3?_0x144e51['first']-0x1:_0x144e51['last']+0x1,_0x4e766d=_0x1226b3[0x0]['findAncestor']('table'),_0x5cc010=_0xdee593['createTableWalker'](_0x4e766d,{'startRow':0x0,'column':_0x34c2a7,'includeAllSlots':!0x1}),_0x520659=Array['from'](_0x5cc010)['map'](_0x48aaaa=>_0x74fbc6['createRangeOn'](_0x48aaaa['cell']));_0x3de173['markMultiRangeInsertion'](_0x520659,'tableColumn');});});}for(const _0x4da31e of['removeTableRow','removeTableColumn']){const _0x161405=_0x4da31e['substr'](0xb),_0x3d8e97=_0x161405['toLowerCase'](),_0xf5f884=_0x3d8e97['substr'](0x0,0x3)+'span',_0x3e0418='table'+_0x161405,_0x234723='min'+_0x161405,_0x4db946='max'+_0x161405;_0x3de173['enableCommand'](_0x4da31e,()=>{_0x41e034['model']['change'](_0x41ed53=>{const _0x55f3a1=_0xdee593['getSelectionAffectedTableCells'](_0x92b5c7),_0x320b05=_0x55f3a1[0x0]['findAncestor']('table');let _0x53d627;if('removeTableRow'==_0x4da31e){const _0x313f5c=_0xdee593['getRowIndexes'](_0x55f3a1);_0x53d627={'startRow':_0x313f5c['first'],'endRow':_0x313f5c['last'],'includeAllSlots':!0x0};}else{const _0x2a6208=_0xdee593['getColumnIndexes'](_0x55f3a1);_0x53d627={'startColumn':_0x2a6208['first'],'endColumn':_0x2a6208['last'],'includeAllSlots':!0x0};}const _0x39fc10=_0xdee593['createTableWalker'](_0x320b05,_0x53d627),_0x473450=Array['from'](_0x39fc10)['map'](({cell:_0x121a5c})=>_0x121a5c),_0x2001db=Ne(_0x473450['filter'](_0x304a75=>_0x304a75['hasAttribute'](_0xf5f884))),_0x5db542=Ne(_0x473450['filter'](_0x355fc6=>!_0x355fc6['hasAttribute'](_0xf5f884)))['map'](_0x3fd5f8=>_0x41ed53['createRangeOn'](_0x3fd5f8)),_0x419735=_0x3de173['markMultiRangeDeletion'](_0x5db542,_0x3e0418);if(_0x419735&&('tableRow'==_0x419735['subType']||'tableColumn'==_0x419735['subType'])){const _0x41a876=this['_getSuggestionCoords'](_0x419735);for(const _0xfd0a12 of _0x2001db){const _0x3077ec=_0x41ed53['createRangeOn'](_0xfd0a12),_0x111a3c=_0xdee593['getCellLocation'](_0xfd0a12),_0x4a20bd=_0xfd0a12['getAttribute'](_0xf5f884)-0x1,_0x85db28=_0x41a876[_0x234723],_0x597d98=_0x41a876[_0x4db946];_0x85db28<=_0x111a3c[_0x3d8e97]&&_0x111a3c[_0x3d8e97]+_0x4a20bd<=_0x597d98&&_0x419735['addRange'](_0x3077ec);}}});});}function _0x5dbac1(_0x15d6a2){const _0x519716=Array['from'](_0x92b5c7['getRanges']())['map'](_0x2aa90c=>_0x158b09['fromRange'](_0x2aa90c));_0x41e034['model']['change'](_0x1c2490=>{const _0x5d6730=_0x1c2490['batch'];_0x15d6a2=_0x15d6a2['filter'](_0x1ff0b4=>'$graveyard'!=_0x1ff0b4['root']['rootName']),_0x1c2490['setSelection'](_0x15d6a2),_0x41e034['commands']['get']('removeTableRow')['refresh'](),_0x41e034['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41e034['model']['enqueueChange'](()=>{_0x41e034['model']['enqueueChange'](_0x5d6730,_0x2fd4e7=>{const _0x241ff3=_0x519716['filter'](_0xac3de1=>'$graveyard'!=_0xac3de1['root']['rootName']);_0x241ff3['length']>0x0&&_0x2fd4e7['setSelection'](_0x241ff3);for(const _0x2c103d of _0x519716)_0x2c103d['detach']();});});});}function _0xe94571(_0x17d8a3){_0x41e034['model']['change'](_0xee0099=>{const _0x111474=Array['from'](_0x92b5c7['getRanges']())['map'](_0x415969=>_0x158b09['fromRange'](_0x415969)),_0x22b7dc=[];for(const _0x1721b9 of _0x17d8a3)for(const _0x43331b of _0x1721b9['getItems']({'shallow':!0x0}))_0x22b7dc['push'](_0x43331b);for(const _0x5caa60 of _0x22b7dc)'$graveyard'!=_0x5caa60['root']['rootName']&&(_0xee0099['setSelection'](_0xee0099['createPositionAt'](_0x5caa60,0x0)),_0x41e034['commands']['get']('removeTableColumn')['refresh'](),_0x41e034['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x25b2b1=_0x111474['filter'](_0x3ebdff=>'$graveyard'!=_0x3ebdff['root']['rootName']);_0x25b2b1['length']>0x0&&_0xee0099['setSelection'](_0x25b2b1);for(const _0x51a343 of _0x111474)_0x51a343['detach']();});}function _0x4e549f(_0x1915c1,_0x33eb97){return _0x33eb97['every'](_0x26d407=>_0x1915c1['some'](_0xc8095d=>_0xc8095d['end']['isEqual'](_0x26d407['start'])||_0x26d407['end']['isEqual'](_0xc8095d['start'])));}function _0x33c62d(_0x418d1e,_0x201203){return!_0x418d1e['some'](_0xfc94ff=>_0x201203['some'](_0x419c52=>_0xfc94ff['isIntersecting'](_0x419c52)))&&_0x418d1e['some'](_0x391898=>_0x201203['some'](_0x3febbf=>_0x391898['end']['isTouching'](_0x3febbf['start'])));}_0x41e034['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d719b,_0x166b30,_0x186f07)=>{if(!_0x186f07['options']['showSuggestionHighlights'])return;const _0x2c8ed2=_0x166b30['item'];if(!_0x2c8ed2)return;const _0x1c99d3=_0x186f07['mapper']['toViewElement'](_0x2c8ed2);function _0x14b523(_0x23d3a1){return Array['isArray'](_0x23d3a1)?_0x23d3a1:[_0x23d3a1];}_0x1c99d3&&'tableCell'===_0x2c8ed2['name']&&_0x24bd08(_0x1c99d3,_0x186f07['writer'],(_0x3c6ab0,_0x258267,_0x25adce)=>_0x25adce['addClass'](_0x14b523(_0x258267['classes']),_0x3c6ab0),(_0x22f347,_0x5dc3aa,_0x50aeaf)=>_0x50aeaf['removeClass'](_0x14b523(_0x5dc3aa['classes']),_0x22f347));},{'priority':'highest'}),_0x3de173['descriptionFactory']['registerDescriptionCallback'](_0x3616c3=>{if('insertion'!=_0x3616c3['type']&&'deletion'!=_0x3616c3['type'])return;const _0x217fcc=_0x3616c3['getContainedElement']();if(null!=_0x217fcc&&_0x217fcc['is']('element','table')){if('insertion'==_0x3616c3['type']){const _0xe422c4=_0x3616c3['getItems']()['filter'](_0x25569e=>_0x25569e['is']('$textProxy'))['map'](_0x69f963=>_0x69f963['data']);if(_0xe422c4['length'])return{'type':'insertion','content':o(_0x3cec91,'*Insert:*\x20%0',o(_0x3cec91,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe422c4['join']('\x20')+'\x22'))};}if('deletion'==_0x3616c3['type']){const _0x2eb507=_0x3616c3['getItems']()['filter'](_0x7a1431=>_0x7a1431['is']('$textProxy'))['map'](_0x1e6ba5=>_0x1e6ba5['data']);if(_0x2eb507['length'])return{'type':'deletion','content':o(_0x3cec91,'*Remove:*\x20%0',o(_0x3cec91,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2eb507['join']('\x20')+'\x22'))};}}}),_0x3de173['descriptionFactory']['registerDescriptionCallback'](_0xe26ad2=>{if('tableRow'==_0xe26ad2['subType']){const _0xcbe784=_0xe26ad2['getItems']()['filter'](_0x47cd1c=>_0x47cd1c['is']('$textProxy'))['map'](_0x2d15b8=>_0x2d15b8['data']),_0x2407a4=this['_getSuggestionCoords'](_0xe26ad2),_0x4e1c24=_0x2407a4['maxRow']-_0x2407a4['minRow']+0x1;if('insertion'==_0xe26ad2['type'])return _0xcbe784['length']?{'type':'insertion','content':o(_0x3cec91,'*Insert:*\x20%0',o(_0x3cec91,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e1c24,'\x22'+_0xcbe784['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cec91,'*Insert:*\x20%0',o(_0x3cec91,'ELEMENT_TABLE_ROW',_0x4e1c24))};if('deletion'==_0xe26ad2['type'])return _0xcbe784['length']?{'type':'deletion','content':o(_0x3cec91,'*Remove:*\x20%0',o(_0x3cec91,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e1c24,'\x22'+_0xcbe784['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cec91,'*Remove:*\x20%0',o(_0x3cec91,'ELEMENT_TABLE_ROW',_0x4e1c24))};}if('tableColumn'==_0xe26ad2['subType']){const _0x1babb0=_0xe26ad2['getItems']()['filter'](_0x56419f=>_0x56419f['is']('$textProxy'))['map'](_0x10866e=>_0x10866e['data']),_0x4add8b=this['_getSuggestionCoords'](_0xe26ad2),_0x13660c=_0x4add8b['maxColumn']-_0x4add8b['minColumn']+0x1;if('insertion'==_0xe26ad2['type'])return _0x1babb0['length']?{'type':'insertion','content':o(_0x3cec91,'*Insert:*\x20%0',o(_0x3cec91,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13660c,'\x22'+_0x1babb0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cec91,'*Insert:*\x20%0',o(_0x3cec91,'ELEMENT_TABLE_COLUMN',_0x13660c))};if('deletion'==_0xe26ad2['type'])return _0x1babb0['length']?{'type':'deletion','content':o(_0x3cec91,'*Remove:*\x20%0',o(_0x3cec91,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13660c,'\x22'+_0x1babb0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cec91,'*Remove:*\x20%0',o(_0x3cec91,'ELEMENT_TABLE_COLUMN',_0x13660c))};}}),_0x3de173['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5dbac1),_0x3de173['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5dbac1),_0x3de173['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xe94571),_0x3de173['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xe94571),_0x3de173['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e549f),_0x3de173['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e549f),_0x3de173['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x33c62d),_0x3de173['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x33c62d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x641630=this['editor'],_0x1e029a=_0x641630['model']['document']['selection'];return(_0x1ac998,_0x19f160)=>{_0x641630['model']['change'](_0x4aabf8=>{const {commandName:_0x5b7551,commandParams:_0x106dd3}=_0x19f160;let _0x2f9a2c=_0x1ac998[0x0]['end']['nodeBefore'];_0x106dd3&&_0x106dd3[0x0]&&!0x1===_0x106dd3[0x0]['forceValue']&&(_0x2f9a2c=_0x1ac998[0x0]['start']['nodeAfter']);const _0x34a18c=_0x4aabf8['createRangeIn'](_0x2f9a2c);if('$graveyard'==_0x34a18c['root']['rootName'])return;const _0x356f46=Array['from'](_0x1e029a['getRanges']())['map'](_0xd88e9c=>_0x158b09['fromRange'](_0xd88e9c));_0x4aabf8['setSelection'](_0x34a18c),_0x641630['commands']['get'](_0x5b7551)['refresh'](),_0x106dd3['push']({'forceDefaultExecution':!0x0}),_0x641630['execute'](_0x5b7551,..._0x106dd3);const _0x518d3c=_0x356f46['filter'](_0x13f385=>'$graveyard'!=_0x13f385['root']['rootName']);_0x518d3c['length']>0x0&&_0x4aabf8['setSelection'](_0x518d3c);for(const _0x3b53ef of _0x356f46)_0x3b53ef['detach']();});};}['_getCoordsForCells'](_0x42c542){const _0x535a3d=this['editor']['plugins']['get']('TableUtils');let _0x40e8f9=Number['MAX_SAFE_INTEGER'],_0x3a3834=Number['MIN_SAFE_INTEGER'],_0x54385c=Number['MAX_SAFE_INTEGER'],_0x4ccb1d=Number['MIN_SAFE_INTEGER'];for(const _0x4efab7 of _0x42c542){if('$graveyard'==_0x4efab7['root']['rootName'])continue;const {row:_0x2afbba,column:_0x4b4cac}=_0x535a3d['getCellLocation'](_0x4efab7),_0x27454d=_0x4efab7['hasAttribute']('rowspan')?_0x4efab7['getAttribute']('rowspan')-0x1:0x0,_0x24a8ef=_0x4efab7['hasAttribute']('colspan')?_0x4efab7['getAttribute']('colspan')-0x1:0x0;_0x40e8f9=_0x2afbba<_0x40e8f9?_0x2afbba:_0x40e8f9,_0x3a3834=_0x2afbba+_0x27454d>_0x3a3834?_0x2afbba+_0x27454d:_0x3a3834,_0x54385c=_0x4b4cac<_0x54385c?_0x4b4cac:_0x54385c,_0x4ccb1d=_0x4b4cac+_0x24a8ef>_0x4ccb1d?_0x4b4cac+_0x24a8ef:_0x4ccb1d;}return{'minRow':_0x40e8f9,'maxRow':_0x3a3834,'minColumn':_0x54385c,'maxColumn':_0x4ccb1d};}['_setupColumnsRowsFixing'](){const _0x4df1b0=this['editor'],_0x37aba5=_0x4df1b0['plugins']['get']('TrackChangesEditing'),_0x3083f3=_0x4df1b0['plugins']['get']('TableUtils');_0x4df1b0['model']['document']['on']('change:data',()=>{const _0x3750ed=Array['from'](_0x4df1b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40b5e7,data:_0x1ebe5f}of _0x3750ed){const {group:_0x484b7a,id:_0x6d6d5a,subType:_0x18c5eb}=_0x37aba5['_splitMarkerName'](_0x40b5e7);if('suggestion'!=_0x484b7a)continue;if(null!=_0x1ebe5f['oldRange'])continue;const _0x46861e=_0x37aba5['getSuggestion'](_0x6d6d5a);this['_tablePostFixingSubtypes']['includes'](_0x18c5eb)&&this['_tableSuggestions']['add'](_0x46861e);}},{'priority':'low'});const _0x3dd4c9=(_0x58d05a,_0x3eb9b7)=>{let _0x14fde9=!0x1;const _0x1afaa1=_0x3eb9b7['createRangeOn'](_0x58d05a),_0x593134=_0x58d05a['findAncestor']('table'),_0x46c93e=_0x3083f3['getCellLocation'](_0x58d05a);for(const _0x1cb162 of this['_tableSuggestions']){const _0x5f1242=_0x1cb162['subType'],_0x17d52f=_0x5f1242['startsWith']('tablePaste'),_0x222b36=_0x5f1242['substr'](_0x17d52f?0xa:0x5),_0x344cf6=_0x222b36['toLowerCase'](),_0x1239e0=_0x344cf6['substr'](0x0,0x3)+'span',_0x4285db='min'+_0x222b36,_0x18792f='max'+_0x222b36;if(!_0x1cb162['isInContent'])continue;if(_0x593134!=_0x1cb162['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1cb162['isIntersectingWithRange'](_0x1afaa1))continue;const _0x18bfb9=_0x58d05a['hasAttribute'](_0x1239e0)?_0x58d05a['getAttribute'](_0x1239e0)-0x1:0x0,_0x36843f=this['_getSuggestionCoords'](_0x1cb162),_0x3854d1=_0x36843f[_0x4285db],_0x53e4ce=_0x36843f[_0x18792f];_0x3854d1<=_0x46c93e[_0x344cf6]&&_0x46c93e[_0x344cf6]+_0x18bfb9<=_0x53e4ce&&(_0x1cb162['addRange'](_0x1afaa1),_0x14fde9=!0x0);}return _0x14fde9;};_0x4df1b0['model']['document']['registerPostFixer'](_0x4b6f82=>{let _0xac9336=!0x1;for(const _0x2f028a of _0x4df1b0['model']['document']['differ']['getChanges']())if('insert'==_0x2f028a['type']){if('tableRow'==_0x2f028a['name']){for(const _0x5a4684 of _0x2f028a['position']['nodeAfter']['getChildren']())_0xac9336=_0xac9336||_0x3dd4c9(_0x5a4684,_0x4b6f82);}else'tableCell'==_0x2f028a['name']&&(_0xac9336=_0xac9336||_0x3dd4c9(_0x2f028a['position']['nodeAfter'],_0x4b6f82));}return _0xac9336;});}['_getSuggestionCoords'](_0x2775fe){return this['_getCoordsForCells'](_0x2775fe['getRanges']()['map'](_0x4748b1=>_0x4748b1['start']['nodeAfter']));}}function Ne(_0x5f73c){return Array['from'](new Set(_0x5f73c)['values']());}class Nt extends _0x411e20{static get['requires'](){return[Ct];}['afterInit'](){const _0x3deb37=this['editor'],_0x42c886=_0x3deb37['model']['document']['selection'],_0x337771=_0x3deb37['locale'];if(!_0x3deb37['plugins']['has']('TableEditing'))return;const _0x171d98=_0x3deb37['plugins']['get']('TrackChangesEditing'),_0x448632=_0x3deb37['plugins']['get']('TableUtils'),_0x308eca=_0x3deb37['plugins']['get'](Ct);_0x308eca['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x171d98['enableCommand']('mergeTableCells',()=>{const _0x26eb61=_0x448632['getSelectionAffectedTableCells'](_0x3deb37['model']['document']['selection']);_0x3deb37['model']['change'](()=>{_0x171d98['markMultiRangeBlockFormat'](_0x26eb61,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3deb37['commands']['get']('mergeTableCells')['on']('execute',(_0x498eb9,_0xb747bf)=>{_0x3deb37['commands']['get']('trackChanges')['value']&&(_0xb747bf['length']>0x0&&_0xb747bf[_0xb747bf['length']-0x1]&&_0xb747bf[_0xb747bf['length']-0x1]['forceDefaultExecution']||_0x171d98['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x498eb9['stop']());},{'priority':'highest'});for(const _0x31d8e5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x46f5ea=_0x3deb37['commands']['get'](_0x31d8e5);_0x171d98['enableCommand'](_0x31d8e5,()=>{const _0x376825=_0x3deb37['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2a01fa=>_0x2a01fa['is']('element','tableCell')),_0x5b2d1c=_0x46f5ea['value'];_0x3deb37['model']['change'](()=>{_0x171d98['markMultiRangeBlockFormat']([_0x376825,_0x5b2d1c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x59c5ec of['splitTableCellVertically','splitTableCellHorizontally']){const _0x556915=_0x3deb37['commands']['get'](_0x59c5ec);_0x171d98['enableCommand'](_0x59c5ec,()=>{const _0x9859cc=_0x448632['getSelectionAffectedTableCells'](_0x3deb37['model']['document']['selection'])[0x0],_0x85adde=_0x9859cc['findAncestor']('table'),{column:_0x1fcbe0,row:_0x2cd1ff}=_0x448632['getCellLocation'](_0x9859cc);let _0x45a071=[];if('horizontally'==_0x556915['direction']){const _0x38f2cc=_0x448632['createTableWalker'](_0x85adde,{'startRow':_0x2cd1ff,'endRow':_0x2cd1ff,'includeAllSlots':!0x0});_0x45a071=Array['from'](_0x38f2cc)['map'](_0x4a1da4=>_0x4a1da4['cell']);}else{const _0x465f4e=_0x448632['createTableWalker'](_0x85adde,{'column':_0x1fcbe0,'includeAllSlots':!0x0});_0x45a071=Array['from'](_0x465f4e)['map'](_0x1184ac=>_0x1184ac['cell']);}_0x3deb37['model']['change'](_0x3a801a=>{_0x171d98['markBlockFormat'](_0x3a801a['createRangeOn'](_0x9859cc),{'commandName':_0x59c5ec,'commandParams':[]},_0x45a071,_0x59c5ec);});});}_0x171d98['descriptionFactory']['registerDescriptionCallback'](_0x528b0a=>{if('formatBlock'!=_0x528b0a['type']&&'formatInline'!=_0x528b0a['type'])return;const {data:_0x12510c}=_0x528b0a;return _0x12510c&&'mergeTableCells'==_0x12510c['commandName']?{'type':'format','content':o(_0x337771,'*Merge\x20cells*')}:void 0x0;}),_0x171d98['descriptionFactory']['registerDescriptionCallback'](_0x15484c=>{if('formatBlock'!=_0x15484c['type']&&'formatInline'!=_0x15484c['type'])return;const {data:_0x3cbd1b}=_0x15484c;return _0x3cbd1b?'splitTableCellVertically'==_0x3cbd1b['commandName']?{'type':'format','content':o(_0x337771,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3cbd1b['commandName']?{'type':'format','content':o(_0x337771,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xa4dfa0=_0x308eca['_acceptFormatSuggestionCallbackFactory']();for(const _0x2adfd4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x171d98['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2adfd4,'accept',_0xa4dfa0);for(const _0x585fc5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x171d98['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x585fc5,'accept',_0xa4dfa0);_0x171d98['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17b31a=>{_0x3deb37['model']['change'](_0x2552f9=>{const _0x585de4=Array['from'](_0x42c886['getRanges']())['map'](_0x19924b=>_0x158b09['fromRange'](_0x19924b));_0x2552f9['setSelection'](_0x17b31a),_0x3deb37['commands']['get']('mergeTableCells')['refresh'](),_0x3deb37['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x542d09=_0x585de4['filter'](_0x49b291=>'$graveyard'!=_0x49b291['root']['rootName']);_0x542d09['length']>0x0&&_0x2552f9['setSelection'](_0x542d09);for(const _0x544890 of _0x585de4)_0x544890['detach']();});});for(const _0x1c958e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xfc68ce=_0x3deb37['commands']['get'](_0x1c958e);_0xfc68ce['on']('set:isEnabled',(_0xec6bd0,_0x2bf345,_0x5ae1f4)=>{if(_0x5ae1f4){const _0x1cb6e1=_0x3deb37['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x177deb=>_0x177deb['is']('element','tableCell'));this['_areMergableCells'](_0xfc68ce['value'],_0x1cb6e1)||(_0xec6bd0['return']=!0x1,_0xec6bd0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2e30f9=this['editor']['commands']['get']('mergeTableCells'),_0x22dd7b=this['editor']['plugins']['get']('TableUtils');if(!_0x2e30f9['isEnabled'])return!0x1;const _0xcda91c=_0x22dd7b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2a7b95 of _0xcda91c)for(const _0x1daeaa of _0xcda91c)if(_0x2a7b95!=_0x1daeaa&&!this['_areMergableCells'](_0x2a7b95,_0x1daeaa))return!0x1;return!0x0;}['_areMergableCells'](_0x160543,_0x24f43e){const _0xa1121d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c9e95=this['editor']['model']['createRangeOn'](_0x160543),_0x104031=this['editor']['model']['createRangeOn'](_0x24f43e),_0x33f577=new Set(),_0x314602=new Set();for(const _0xc1efa3 of _0xa1121d['getSuggestions']())if(('insertion'==_0xc1efa3['type']||'deletion'==_0xc1efa3['type']||'mergeTableCells'==_0xc1efa3['subType'])&&_0xc1efa3['isInContent']){for(const _0x2a9fc4 of _0xc1efa3['getRanges']())_0x2a9fc4['containsRange'](_0x3c9e95,!0x0)&&_0x33f577['add'](_0xc1efa3['type']+':'+_0xc1efa3['author']['id']),_0x2a9fc4['containsRange'](_0x104031,!0x0)&&_0x314602['add'](_0xc1efa3['type']+':'+_0xc1efa3['author']['id']);}if(_0x33f577['size']!=_0x314602['size'])return!0x1;for(const _0x2051a6 of _0x33f577)if(!_0x314602['has'](_0x2051a6))return!0x1;return!0x0;}}class Dt extends _0x411e20{static get['requires'](){return[Ct];}['afterInit'](){const _0x903d85=this['editor'];if(!_0x903d85['plugins']['has']('TableEditing'))return;const _0x4b1e96=_0x903d85['locale'],_0x56b056=_0x903d85['plugins']['get']('TrackChangesEditing');_0x56b056['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x56b056['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x56b056['registerBlockAttribute']('headingRows'),_0x56b056['registerBlockAttribute']('headingColumns'),_0x56b056['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4b1e96,'FORMAT_HEADER_ROW')),_0x56b056['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4b1e96,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54d120=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e5b23=this['editor']['plugins']['get']('TableUtils'),_0x166ea8=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x48fb85({showActiveMarker:_0x3a1243=!0x0,setDataAttribute:_0x2ffbff=!0x0}={}){return(_0x53631c,_0x2f93dd,_0x2b2f5a)=>{const {type:_0x237b49,id:_0x9dbb23}=_0x54d120['_splitMarkerName'](_0x2f93dd['markerName']),_0x2fdf28=_0x54d120['getSuggestion'](_0x9dbb23),_0x4c31a3=_0x2fdf28['data'];if('formatBlock'!=_0x2fdf28['type']||!_0x4c31a3||'setTableColumnHeader'!=_0x4c31a3['commandName'])return;if(_0x2f93dd['item'])return void _0x53631c['stop']();if(!_0x2b2f5a['consumable']['consume'](_0x2f93dd['markerRange'],_0x53631c['name']))return;const _0x2ef63a=_0x2f93dd['markerRange']['start']['nodeAfter'],_0x321208=_0x2f93dd['markerRange']['end']['nodeBefore'],_0x4e95f0=_0x2ef63a['parent']['parent'],{column:_0x1db394}=_0x1e5b23['getCellLocation'](_0x2ef63a),{column:_0x1de0dc}=_0x1e5b23['getCellLocation'](_0x321208);for(let _0x1e3db3=_0x1db394;_0x1e3db3<=_0x1de0dc;_0x1e3db3++){const _0x594d5e=_0x1e5b23['createTableWalker'](_0x4e95f0,{'column':_0x1e3db3,'includeAllSlots':!0x1});for(const _0x31386c of _0x594d5e){const _0x583819=_0x31386c['cell'],_0x23f101=_0x2b2f5a['mapper']['toViewElement'](_0x583819);_0x2b2f5a['writer']['addClass']('ck-suggestion-marker-'+_0x237b49,_0x23f101),_0x2ffbff&&_0x2b2f5a['writer']['setAttribute']('data-suggestion',_0x9dbb23,_0x23f101),_0x2b2f5a['mapper']['bindElementToMarker'](_0x23f101,_0x2f93dd['markerName']),_0x3a1243&&(_0x54d120['activeMarkers']['includes'](_0x2f93dd['markerName'])?_0x2b2f5a['writer']['addClass']('ck-suggestion-marker--active',_0x23f101):_0x2b2f5a['writer']['removeClass']('ck-suggestion-marker--active',_0x23f101));}}};}_0x54d120['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x166ea8),_0x54d120['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x166ea8),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x48fb85(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e4c0d,_0x5c950c,_0x356a11)=>{_0x356a11['options']['showSuggestionHighlights']&&_0x48fb85({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5e4c0d,_0x5c950c,_0x356a11);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x101e0a,_0x26a34d,_0x572e0b)=>{const {type:_0xb88bb,id:_0x532c1d}=_0x54d120['_splitMarkerName'](_0x26a34d['markerName']),_0x5242f3=_0x54d120['getSuggestion'](_0x532c1d),_0x128ca2=_0x5242f3['data'];if('formatBlock'!=_0x5242f3['type']||!_0x128ca2||'setTableColumnHeader'!=_0x128ca2['commandName'])return;const _0xd85558=_0x572e0b['mapper']['markerNameToElements'](_0x26a34d['markerName']);if(_0xd85558){for(const _0x5988d1 of _0xd85558)_0x572e0b['writer']['removeClass']('ck-suggestion-marker-'+_0xb88bb,_0x5988d1),_0x572e0b['writer']['removeClass']('ck-suggestion-marker--active',_0x5988d1),_0x572e0b['writer']['removeAttribute']('data-suggestion',_0x5988d1),_0x572e0b['mapper']['unbindElementFromMarkerName'](_0x5988d1,_0x26a34d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bae4c=this['editor'],_0x6c0729=_0x5bae4c['locale'];function _0x2f39df(_0x13aac6){return{'type':'format','content':o(_0x6c0729,'*Format:*\x20%0',_0x13aac6)};}_0x5bae4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2486f6=>{if('formatBlock'!=_0x2486f6['type'])return;const {data:_0x15c3c5}=_0x2486f6;if(_0x15c3c5){if('setTableRowHeader'==_0x15c3c5['commandName']){const _0xc8da8b=_0x15c3c5['commandParams'][0x0]['forceValue'];return _0x2f39df(o(_0x6c0729,_0xc8da8b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x15c3c5['commandName']){const _0x31d065=_0x15c3c5['commandParams'][0x0]['forceValue'];return _0x2f39df(o(_0x6c0729,_0x31d065?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x33f883=>[_0x33f883,null]));class Mt extends _0x411e20{static get['requires'](){return[Ct];}['afterInit'](){const _0x1452ab=this['editor'];if(!_0x1452ab['plugins']['has']('TableClipboard'))return;const _0x4dd21c=_0x1452ab['plugins']['get']('TrackChangesEditing'),_0x1a9cb6=_0x1452ab['plugins']['get']('TableUtils'),_0x3a171d=_0x1452ab['plugins']['get'](Ct),_0x23394a=_0x1452ab['plugins']['get']('TableClipboard');_0x3a171d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1452ab['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1452ab['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x11dccb=null;_0x1452ab['model']['on']('insertContent',(_0x4697ad,_0x150413)=>{const [_0x47466d,_0x20e852]=_0x150413,_0x246bff=_0x150413[_0x150413['length']-0x1];_0x246bff&&_0x246bff['forceDefaultExecution']||_0x4dd21c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2a768a,_0x3153ea,_0x2ab89d,_0x154838,_0x1a2a53){if(_0x3153ea&&!_0x3153ea['is']('documentSelection'))return!0x1;const _0x5bbca7=_0x1a2a53['getTableIfOnlyTableInContent'](_0x2a768a,_0x2ab89d);if(!_0x5bbca7||!Ue(_0x5bbca7,void 0x0,_0x154838))return!0x1;const _0x4a1f47=_0x154838['getSelectionAffectedTableCells'](_0x2ab89d['document']['selection']);if(!_0x4a1f47['length'])return!0x1;const _0x1ce776=_0x4a1f47[0x0]['findAncestor']('table'),_0x1e9543=_0x154838['getRowIndexes'](_0x4a1f47),_0x10a8ae=_0x154838['getColumnIndexes'](_0x4a1f47),_0x1dbab0={'startRow':_0x1e9543['first'],'endRow':_0x1e9543['last'],'startColumn':_0x10a8ae['first'],'endColumn':_0x10a8ae['last']};return 0x1==_0x4a1f47['length']&&(_0x1dbab0['endRow']+=_0x154838['getRows'](_0x5bbca7)-0x1,_0x1dbab0['endColumn']+=_0x154838['getColumns'](_0x5bbca7)-0x1),Ue(_0x1ce776,_0x1dbab0,_0x154838);}(_0x47466d,_0x20e852,_0x1452ab['model'],_0x1a9cb6,_0x23394a)&&(_0x4697ad['stop'](),_0x11dccb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1452ab['model']['change'](()=>{_0x1452ab['model']['insertContent'](_0x150413[0x0],_0x150413[0x1],_0x150413[0x2],{'forceDefaultExecution':!0x0});const _0x32e66f=_0x4e0f2a(),{rowInsertionRanges:_0x4b9d1d,columnInsertionRanges:_0x48340b,insertionRanges:_0x293b4e,deletionRanges:_0x50f84f,cells:_0x4be77d}=_0x11dccb;_0x4b9d1d['length']&&_0x4dd21c['markMultiRangeInsertion'](_0x4b9d1d,'tablePasteRow',{'tablePasteChainId':_0x32e66f}),_0x48340b['length']&&_0x4dd21c['markMultiRangeInsertion'](_0x48340b,'tablePasteColumn',{'tablePasteChainId':_0x32e66f}),_0x293b4e['length']&&(_0x4dd21c['markMultiRangeInsertion'](_0x293b4e,'tablePaste',{'tablePasteChainId':_0x32e66f,'skipNestingCheck':!0x0}),_0x293b4e['forEach'](_0x40f931=>_0x40f931['detach']?.())),_0x50f84f['length']&&(_0x4dd21c['markMultiRangeDeletion'](_0x50f84f,'tablePaste',{'tablePasteChainId':_0x32e66f,'skipNestingCheck':!0x0}),_0x50f84f['forEach'](_0x520717=>_0x520717['detach']?.()));const _0x16f8b8=_0x4dd21c['markMultiRangeBlockFormat'](_0x4be77d['map'](({element:_0x57d6a7})=>_0x57d6a7),{'formatGroupId':_0x4e0f2a()},[],'tablePasteCell',{'tablePasteChainId':_0x32e66f});if(_0x16f8b8){const _0x1e7a1c=_0x16f8b8['getMarkers'](),_0x80ec25=[];for(const {element:_0x114dff,attributes:_0x567caf}of _0x4be77d){if(!_0x567caf)continue;const _0x26be48=_0x1452ab['model']['createRangeOn'](_0x114dff),_0x5659a2=_0x1e7a1c['find'](_0xafb1aa=>_0xafb1aa['getRange']()['isEqual'](_0x26be48));_0x5659a2&&_0x80ec25['push']([_0x5659a2['name'],_0x567caf]);}_0x80ec25['length']&&_0x16f8b8['setAttribute']('markerAttributes',Object['fromEntries'](_0x80ec25));}_0x11dccb=null;}));},{'priority':_0x1ed091['high']+0xa}),_0x1452ab['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ead80,_0x461174)=>{const [_0x5c7eda,_0x5451cf,,_0x222ac5]=_0x461174;if(!_0x11dccb)return;_0x2ead80['stop']();const _0x4f76b8=_0x5c7eda['cell'],_0x4e076d=_0x5451cf,_0x46fe83=Oe(_0x4f76b8),_0x4be381=Oe(_0x4e076d);_0x2ead80['return']=_0x4f76b8;let _0x5a5b59=null,_0xc67bba=null;if(_0x4be381||_0x46fe83){if(_0x46fe83&&!_0x4be381){_0x222ac5['remove'](_0x4f76b8['getChild'](0x0));for(const _0x4268f4 of Array['from'](_0x4e076d['getChildren']()))_0x222ac5['insert'](_0x4268f4,_0x4f76b8,'end');const _0x294843=_0x11dccb['rowInsertionIndexes']['includes'](_0x5c7eda['row']),_0xef3e37=_0x11dccb['columnInsertionIndexes']['includes'](_0x5c7eda['column']);_0x294843||_0xef3e37||(_0x5a5b59=_0x158b09['fromRange'](_0x222ac5['createRangeIn'](_0x4f76b8)));}else _0x4be381&&!_0x46fe83&&(_0xc67bba=_0x222ac5['createRangeIn'](_0x4f76b8));}else{const _0x18e2dd=_0x222ac5['createElement']('tableCellSuggestion'),_0xf6f8a5=_0x222ac5['createElement']('tableCellSuggestion');_0x222ac5['wrap'](_0x222ac5['createRangeIn'](_0x4f76b8),_0xf6f8a5),_0x222ac5['insert'](_0x18e2dd,_0x4f76b8,0x0);for(const _0x81b0bc of Array['from'](_0x4e076d['getChildren']()))_0x222ac5['insert'](_0x81b0bc,_0x18e2dd,'end');_0x5a5b59=_0x158b09['fromRange'](_0x222ac5['createRangeOn'](_0x18e2dd)),_0xc67bba=_0x158b09['fromRange'](_0x222ac5['createRangeOn'](_0xf6f8a5));}const _0x59d727=Array['from'](_0x4e076d['getAttributes']())['filter'](([_0x501b22])=>Be['includes'](_0x501b22));_0x11dccb['cells']['push']({'element':_0x4f76b8,'attributes':_0x59d727['length']?Object['fromEntries'](_0x59d727):null}),_0x5a5b59&&_0x11dccb['insertionRanges']['push'](_0x5a5b59),_0xc67bba&&_0x11dccb['deletionRanges']['push'](_0xc67bba);},{'priority':'high'}),_0x1a9cb6['on']('insertColumns',(_0x2d9924,_0x84a18e)=>{const [_0x1498e5,_0x7d16ea={}]=_0x84a18e;if(!_0x11dccb)return;const _0x9f881d=_0x7d16ea['at']||0x0,_0x199957=_0x7d16ea['columns']||0x1;_0x11dccb['columnInsertionIndexes']=new Array(_0x199957)['fill'](_0x9f881d)['map']((_0x554d32,_0x207a3f)=>_0x554d32+_0x207a3f);for(const {cell:_0x3a48ba}of _0x1a9cb6['createTableWalker'](_0x1498e5,{'startColumn':_0x9f881d,'endColumn':_0x9f881d+_0x199957-0x1}))_0x11dccb['columnInsertionRanges']['push'](_0x1452ab['model']['createRangeOn'](_0x3a48ba));},{'priority':'low'}),_0x1a9cb6['on']('insertRows',(_0x2cea78,_0x5b8ca8)=>{const [_0x226287,_0x4926b5={}]=_0x5b8ca8;if(!_0x11dccb)return;const _0x1e3fd9=_0x4926b5['at']||0x0,_0x23e59a=_0x4926b5['rows']||0x1;_0x11dccb['rowInsertionIndexes']=new Array(_0x23e59a)['fill'](_0x1e3fd9)['map']((_0x229bb4,_0x135847)=>_0x229bb4+_0x135847);for(const {cell:_0xee32a2}of _0x1a9cb6['createTableWalker'](_0x226287,{'startRow':_0x1e3fd9,'endRow':_0x1e3fd9+_0x23e59a-0x1}))_0x11dccb['rowInsertionRanges']['push'](_0x1452ab['model']['createRangeOn'](_0xee32a2));},{'priority':'low'}),_0x4dd21c['descriptionFactory']['registerDescriptionCallback'](_0x2759ba=>{if(_0x2759ba['subType']&&_0x2759ba['subType']['startsWith']('tablePaste'))return _0x2759ba['previous']?{}:{'type':'insertion','content':o(_0x1452ab['locale'],'*Replace\x20table\x20cells*')};});const _0x15d822=()=>!0x1;for(const _0x4ecdd9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4dd21c['_suggestionFactory']['registerCustomCallback']('insertion',_0x4ecdd9,'join',_0x15d822),_0x4dd21c['_suggestionFactory']['registerCustomCallback']('deletion',_0x4ecdd9,'join',_0x15d822),_0x4dd21c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ecdd9,'join',_0x15d822);_0x4dd21c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x15d822),_0x4dd21c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2c80c3,_0x2d78c4,_0x1f42b6)=>{const _0x3ffe25=_0x2c80c3['map'](_0x37e30d=>_0x37e30d['getContainedElement']())['filter'](_0x3d638c=>_0x3d638c),_0x551a5f=new Map(_0x3ffe25['map'](_0x5be541=>[_0x5be541,null]));if(_0x11dccb){for(const {element:_0x22dae9,attributes:_0x430f90}of _0x11dccb['cells'])_0x430f90&&_0x551a5f['set'](_0x22dae9,_0x430f90);}else{if(_0x1f42b6&&_0x1f42b6['markerAttributes'])for(const [_0x3ced20,_0x59498d]of Object['entries'](_0x1f42b6['markerAttributes'])){const _0x851d2b=_0x1452ab['model']['markers']['get'](_0x3ced20),_0x568455=_0x851d2b?_0x851d2b['getRange']()['getContainedElement']():null;_0x568455&&_0x551a5f['set'](_0x568455,_0x59498d);}}_0x1452ab['model']['change'](_0x54310c=>{for(const [_0x3e20f1,_0x295581]of _0x551a5f)_0x54310c['setAttributes']({...xe,..._0x295581},_0x3e20f1);});});const _0x551489=(_0x4ab786,_0x3718af)=>{_0x4dd21c['_suggestionFactory']['registerCustomCallback'](_0x4ab786,'tablePaste',_0x3718af,(_0x11db80,_0x7a40fc,_0xc3dd09)=>{_0x1452ab['model']['change'](_0x324e2e=>{const _0x2a015e=[];for(const _0x33ed7e of _0x11db80){const _0x14de8c=_0x33ed7e['start']['nodeAfter'];_0x14de8c['is']('element','tableCellSuggestion')&&_0x2a015e['push'](_0x14de8c);}_0x4dd21c['_suggestionFactory']['getSuggestionCallback'](_0x4ab786,null,_0x3718af)(_0x11db80,_0x7a40fc,_0xc3dd09);for(const _0x5a82ba of _0x2a015e)'$graveyard'!=_0x5a82ba['root']['rootName']&&_0x324e2e['unwrap'](_0x5a82ba);});});};_0x551489('insertion','accept'),_0x551489('insertion','discard'),_0x551489('deletion','accept'),_0x551489('deletion','discard'),_0x4dd21c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x92c21c=>{const _0x1d0eb9=_0x92c21c['map'](_0x4d9f3f=>_0x4d9f3f['getContainedElement']()),_0x9b1bc6=_0x1d0eb9[0x0]['findAncestor']('table'),{minRow:_0x23ba7f,maxRow:_0xa710b6}=_0x3a171d['_getCoordsForCells'](_0x1d0eb9);_0x1a9cb6['removeRows'](_0x9b1bc6,{'at':_0x23ba7f,'rows':_0xa710b6-_0x23ba7f+0x1});}),_0x4dd21c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x21d21a=>{const _0x50cf57=_0x21d21a['map'](_0x257371=>_0x257371['getContainedElement']()),_0x398b15=_0x50cf57[0x0]['findAncestor']('table'),{minColumn:_0x586484,maxColumn:_0x298230}=_0x3a171d['_getCoordsForCells'](_0x50cf57);_0x1a9cb6['removeColumns'](_0x398b15,{'at':_0x586484,'columns':_0x298230-_0x586484+0x1});});const _0x102d0c=(_0x1af953,_0x5aaa2d)=>{if(!_0x5aaa2d['subType']||!_0x5aaa2d['subType']['startsWith']('tablePaste'))return;const _0xad91c0=_0x5aaa2d['attributes']['tablePasteChainId'],_0x20c532=_0x4dd21c['getSuggestions']()['filter'](_0x2e5723=>_0x2e5723['isInContent']&&_0x2e5723['attributes']&&_0x2e5723['attributes']['tablePasteChainId']==_0xad91c0);_0x20c532['length']&&_0x5aaa2d['getAllAdjacentSuggestions']()['length']!=_0x20c532['length']&&_0x20c532['reduce']((_0x1c6eab,_0x4e1b72)=>(_0x1c6eab['next']=_0x4e1b72,_0x4e1b72['previous']=_0x1c6eab,_0x4e1b72));};function _0x357b08(_0x5a78b5,_0x852b56=!0x0){const {id:_0x17c777,authorId:_0x4ec6f3}=_0x4dd21c['_splitMarkerName'](_0x5a78b5['markerName']),_0x46bc9c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3757e3=_0x4dd21c['activeMarkers']['includes'](_0x5a78b5['markerName']);return _0x3757e3&&_0x46bc9c['push']('ck-suggestion-marker--active'),{'classes':_0x46bc9c,'attributes':{'data-suggestion':_0x17c777,'data-author-id':_0x4ec6f3},'priority':_0x3757e3&&_0x852b56?0xbc2:0xbb8};}_0x4dd21c['on']('suggestionLoaded',_0x102d0c,{'priority':'high'}),_0x4dd21c['on']('suggestionUnloaded',_0x102d0c,{'priority':'high'}),_0x1452ab['model']['document']['registerPostFixer'](()=>{let _0xc60e7a=!0x1;const _0x2d74a2=Array['from'](_0x1452ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x494cd3,data:_0x5aaea4}of _0x2d74a2){const {group:_0x2d2b10,type:_0x503a4d,id:_0x477aa1}=_0x4dd21c['_splitMarkerName'](_0x494cd3);if('suggestion'!=_0x2d2b10||'deletion'!=_0x503a4d||_0x5aaea4['oldRange'])continue;if(!_0x4dd21c['hasSuggestion'](_0x477aa1))continue;const _0x3f13b7=_0x4dd21c['getSuggestion'](_0x477aa1)['getRanges'](),_0x2a425e=_0x1452ab['plugins']['get']('Users')['me'];for(const _0x360f44 of _0x4dd21c['getSuggestions']()){if(!_0x360f44['isInContent']||_0x360f44['author']!=_0x2a425e)continue;if('formatBlock'!=_0x360f44['type']||'tablePasteCell'!=_0x360f44['subType'])continue;if(_0x360f44['getRanges']()['every'](_0x1efa29=>_0x3f13b7['some'](_0x5e8bc6=>_0x5e8bc6['containsRange'](_0x1efa29,!0x0)))){for(const _0x52561e of _0x360f44['getAllAdjacentSuggestions']())_0x52561e['isInContent']&&(_0x52561e['discard'](),_0xc60e7a=!0x0);}}}return _0xc60e7a;}),_0x1452ab['model']['document']['registerPostFixer'](_0x4c60ca=>{const _0x36ebc7=_0x1452ab['commands']['get']('redo');if(!_0x36ebc7||!_0x36ebc7['_createdBatches']['has'](_0x4c60ca['batch']))return!0x1;let _0x3dfb82=!0x1;const _0x57af59=_0x1452ab['plugins']['get']('Users')['me'],_0x180af5=_0x1452ab['model']['document']['differ']['getChanges'](),_0x3f7717=Array['from'](_0x1452ab['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x48cbd2,data:_0xbdb72e})=>{const {group:_0x1ddab5,subType:_0x309ee3,authorId:_0x42507d}=_0x4dd21c['_splitMarkerName'](_0x48cbd2);return'suggestion'==_0x1ddab5&&'tablePaste'==_0x309ee3&&_0x42507d==_0x57af59['id']&&!_0xbdb72e['oldRange'];});for(const _0x19701c of _0x180af5){if('insert'!=_0x19701c['type']||'tableCellSuggestion'!=_0x19701c['name']||0x1!=_0x19701c['length'])continue;const _0x311e45=_0x4c60ca['createRange'](_0x19701c['position'],_0x19701c['position']['getShiftedBy'](0x1));if(!_0x3f7717['find'](({data:_0xddaf2f})=>_0xddaf2f['newRange']['isEqual'](_0x311e45))){for(const {name:_0x108ffb,data:_0x7cdfbd}of _0x3f7717)if(_0x311e45['containsRange'](_0x7cdfbd['newRange'])){_0x4c60ca['updateMarker'](_0x108ffb,{'range':_0x311e45}),_0x3dfb82=!0x0;break;}}}return _0x3dfb82;}),_0x1452ab['model']['document']['registerPostFixer'](_0x3746bc=>{let _0x4ba547=!0x1;const _0x15cffc=_0x1452ab['plugins']['get']('Users')['me'],_0x12dda5=_0x4dd21c['getSuggestions']()['filter'](_0x548519=>_0x548519['isInContent']&&_0x548519['author']==_0x15cffc),_0xec48c7=new Set(),_0x1d10c=new Set();for(const _0x328fe5 of _0x12dda5)if('tablePaste'==_0x328fe5['subType'])for(const _0x44f47d of _0x328fe5['getMarkers']()){const _0x36862f=_0x44f47d['getRange']()['getContainedElement']();if(_0x36862f){if(_0x36862f['is']('element','tableCellSuggestion')&&Oe(_0x36862f)){_0x328fe5['removeMarker'](_0x44f47d['name']),_0xec48c7['add'](_0x36862f),_0x4ba547=!0x0;const _0x5a7846=_0x36862f['nextSibling'],_0x3d2bde=_0x36862f['previousSibling'],_0x50e595=_0x5a7846&&_0x5a7846['is']('element','tableCellSuggestion'),_0x4807c7=_0x3d2bde&&_0x3d2bde['is']('element','tableCellSuggestion');_0x50e595&&!_0xec48c7['has'](_0x5a7846)&&_0x1d10c['add'](_0x5a7846),_0x4807c7&&!_0xec48c7['has'](_0x3d2bde)&&_0x1d10c['add'](_0x3d2bde);}else _0x36862f['is']('element','paragraph')&&_0x36862f['isEmpty']&&(_0x328fe5['removeMarker'](_0x44f47d['name']),_0x4ba547=!0x0);}}else{if('tablePasteCell'==_0x328fe5['subType']){if(!_0x328fe5['attributes']||!_0x328fe5['attributes']['tablePasteChainId'])continue;const _0x204513=_0x328fe5['attributes']['markerAttributes'];if(_0x204513&&Object['keys'](_0x204513)['length'])continue;const _0x7e4d6=_0x328fe5['attributes']['tablePasteChainId'];let _0xdc5910=!0x0,_0x206127=!0x0;for(const _0x5d1ddd of _0x12dda5)if(_0x5d1ddd['subType']&&_0x5d1ddd['subType']['startsWith']('tablePaste')){if(!_0x5d1ddd['attributes']['tablePasteChainId']){_0x206127=!0x1;break;}if(_0x5d1ddd['id']!=_0x328fe5['id']&&_0x5d1ddd['attributes']['tablePasteChainId']==_0x7e4d6){_0xdc5910=!0x1;break;}}_0x206127&&_0xdc5910&&(_0x328fe5['removeMarkers'](),_0x4ba547=!0x0);}}for(const _0x5f4c69 of _0xec48c7)_0x3746bc['remove'](_0x5f4c69);for(const _0x21e6cd of _0x1d10c)_0x3746bc['unwrap'](_0x21e6cd);return _0x4ba547;}),_0x1452ab['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x474f16=>_0x357b08(_0x474f16),'converterPriority':'high'}),_0x1452ab['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5ef8b6,_0x3fc91d)=>_0x3fc91d['options']['showSuggestionHighlights']?_0x357b08(_0x5ef8b6,!0x1):null,'converterPriority':'high'});const _0x3b8cb8=_0x1452ab['editing']['view'];this['listenTo'](_0x3b8cb8['document'],'clipboardOutput',(_0x36372f,_0x5f83dd)=>{const _0x47d256=[];for(const _0x39aeab of _0x3b8cb8['createRangeIn'](_0x5f83dd['content'])['getItems']())_0x39aeab['is']('element','suggestion-td')&&_0x47d256['push'](_0x39aeab);_0x3b8cb8['change'](_0x2d27b7=>{for(const _0x26bab3 of _0x47d256)_0x2d27b7['move'](_0x2d27b7['createRangeIn'](_0x26bab3),_0x2d27b7['createPositionBefore'](_0x26bab3)),_0x2d27b7['remove'](_0x26bab3);});});}}function Oe(_0x30ffd){if(_0x30ffd['isEmpty'])return!0x0;const _0x489a4f=_0x30ffd['getChild'](0x0);return _0x489a4f['is']('element','paragraph')&&_0x489a4f['isEmpty'];}function Ue(_0x392d37,_0x46d3f2={},_0x1179ad){for(const {isAnchor:_0x184e78,cellHeight:_0x2fa3c9,cellWidth:_0x95dd2}of _0x1179ad['createTableWalker'](_0x392d37,{'includeAllSlots':!0x0,..._0x46d3f2}))if(!_0x184e78||0x1!=_0x2fa3c9||0x1!=_0x95dd2)return!0x1;return!0x0;}class $t extends _0x411e20{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3c16fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c16fb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3c16fb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3c16fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c16fb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3c16fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3c16fb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x36f1b3,_0x2c16f8){const _0x1be83f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d7c59=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x142807=_0x2c16f8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4b2f51=_0x1d7c59['getColumnGroupElement'](_0x142807);let _0x3900d4=_0x4b2f51?_0x1d7c59['getTableColumnsWidths'](_0x4b2f51):null,_0x2b0804=_0x142807['getAttribute']('tableWidth')||null;const _0x3ad460=_0x2c16f8['tableWidth']||_0x2b0804,_0x1260a4=_0x2c16f8['columnWidths']||_0x3900d4,_0x5ace67=this['editor']['plugins']['get']('Users')['me'];for(const _0x434fa1 of _0x1be83f['getSuggestions']()){const _0x402666=_0x434fa1['getContainedElement']();if('resizeTable'===_0x434fa1['subType']&&_0x402666===_0x142807){_0x434fa1['author']!==_0x5ace67&&_0x434fa1['discard']();const _0x2cbb0f=_0x434fa1['data']['commandParams'];_0x2b0804=_0x2cbb0f[0x0]['tableWidth'],_0x3900d4=_0x2cbb0f[0x0]['columnWidths'];break;}}_0x36f1b3({'table':_0x142807,'tableWidth':_0x3ad460,'columnWidths':_0x1260a4}),_0x1be83f['markBlockFormat'](_0x142807,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2b0804,'columnWidths':_0x3900d4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x8ec40a){if('formatBlock'!=_0x8ec40a['type']&&'formatInline'!=_0x8ec40a['type'])return;const {data:_0x1f8ef5}=_0x8ec40a;if(_0x1f8ef5&&'resizeTable'===_0x1f8ef5['formatGroupId']){const _0x4c3c4d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4c3c4d)};}}}class Bt extends _0x411e20{['afterInit'](){const _0x5c8849=this['editor'];_0x5c8849['plugins']['has']('Template')&&_0x5c8849['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x411e20{['afterInit'](){const _0x4ad5a3=this['editor'];if(!_0x4ad5a3['commands']['get']('insertTableOfContents'))return;_0x4ad5a3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3afeec=_0x4ad5a3['plugins']['get']('TrackChangesEditing'),_0x5c6d83=_0x4ad5a3['locale'];_0x3afeec['descriptionFactory']['registerElementLabel']('tableOfContents',_0x475233=>o(_0x5c6d83,'ELEMENT_TABLE_OF_CONTENTS',_0x475233));}}class Rt extends _0x411e20{['afterInit'](){const _0x1fc93a=this['editor'];if(!_0x1fc93a['plugins']['has']('Title'))return;const _0x3acea1=_0x1fc93a['plugins']['get']('TrackChangesEditing');_0x3acea1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1fc93a['locale'],'ELEMENT_TITLE')),_0x1fc93a['model']['document']['registerPostFixer'](_0x1ed414=>{let _0x41b3c7=!0x1;const _0x3571ba=Array['from'](_0x1fc93a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59f20e,data:_0x511825}of _0x3571ba){const {group:_0x226528}=_0x3acea1['_splitMarkerName'](_0x59f20e);if('suggestion'!==_0x226528||!_0x511825['newRange'])continue;const _0x2dff74=_0x511825['newRange'],_0x361cbb=_0x2dff74['end']['nodeBefore'];if(!_0x361cbb||!_0x361cbb['is']('element','title-content'))continue;if(!_0x2dff74['start']['isTouching'](_0x2dff74['end']))continue;const _0x21f9f0=_0x1fc93a['model']['schema']['getNearestSelectionRange'](_0x2dff74['end'],'forward');if(_0x21f9f0&&_0x21f9f0['isCollapsed']){const _0x6c1d4b=_0x1ed414['createRange'](_0x2dff74['start'],_0x21f9f0['start']);_0x6c1d4b['isEqual'](_0x2dff74)||(_0x1ed414['updateMarker'](_0x59f20e,{'range':_0x6c1d4b}),_0x41b3c7=!0x0);}_0x41b3c7||(_0x1ed414['removeMarker'](_0x59f20e),_0x41b3c7=!0x0);}return _0x41b3c7;});}}class Tt extends _0x411e20{['afterInit'](){const _0x15ce8d=this['editor'],_0x213ee6=_0x15ce8d['plugins']['get']('TrackChangesEditing');_0x15ce8d['plugins']['has']('Uploadcare')&&(_0x213ee6['enableCommand']('uploadcare'),_0x15ce8d['plugins']['has']('UploadcareImageEdit')&&(_0x213ee6['enableCommand']('uploadcareImageEdit'),_0x213ee6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x213ee6['registerBlockAttribute']('uploadcareImageId'),_0x213ee6['descriptionFactory']['registerDescriptionCallback'](_0x10fb16=>{if('attribute'!=_0x10fb16['type'])return;const {data:_0x128b07}=_0x10fb16;return _0x128b07&&'uploadcareImageId'==_0x128b07['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x411e20{['afterInit'](){const _0x274ae1=this['editor'],_0x331b0f=_0x274ae1['plugins']['get']('TrackChangesEditing');_0x274ae1['plugins']['has']('UndoEditing')&&(_0x331b0f['enableCommand']('undo'),_0x331b0f['enableCommand']('redo'));}}class Et extends _0x411e20{static get['requires'](){return[Ct];}['afterInit'](){const _0x32bf57=this['editor'];if(!_0x32bf57['plugins']['has']('TableCaptionEditing'))return;_0x32bf57['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x411e20{['tableProperties'];['tableCellProperties'];constructor(_0x1b4099){super(_0x1b4099),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 _0x1f2080=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x434795 of this['tableProperties'])_0x1f2080['enableCommand'](_0x434795,(_0x3a62d6,_0x545442)=>{const _0x3c5a91=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x434795,[_0x3c5a91],this['tableProperties'],'tableProperties',_0x3a62d6,_0x545442);});_0x1f2080['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f2080['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f2080['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5c2cc6,_0x454da5)=>this['handleDiscardAction'](this['tableProperties'],_0x5c2cc6,_0x454da5)),_0x1f2080['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x228815 of this['tableCellProperties'])_0x1f2080['enableCommand'](_0x228815,(_0x13104a,_0x174c39)=>{const _0x48d142=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x228815,_0x48d142,this['tableCellProperties'],'tableCellProperties',_0x13104a,_0x174c39);});_0x1f2080['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f2080['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f2080['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x425f58,_0x1973e4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x425f58,_0x1973e4)),_0x1f2080['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f2080['descriptionFactory']['registerDescriptionCallback'](_0x229552=>this['handleSuggestionDescription'](_0x229552));}['_handlePropertyChange'](_0xaeb917,_0x139a6a,_0x5951da,_0x4a2a03,_0x58cad5,_0x3ba184){const _0x5c0ae9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ba184['batch'],()=>{for(const _0x57affb of _0x139a6a){if(this['_getSuggestion'](_0x57affb,_0x4a2a03))_0x58cad5(_0x3ba184);else{const _0x66f7e6={};for(const _0x1dedc2 of _0x5951da){const _0x3ec57b=_0x57affb['getAttribute'](_0x1dedc2);void 0x0!==_0x3ec57b&&(_0x66f7e6[_0x1dedc2]=_0x3ec57b);}_0x58cad5(_0x3ba184),_0x5c0ae9['markBlockFormat'](_0x57affb,{'commandParams':[_0x66f7e6]},[],_0x4a2a03);}}});}['handleDiscardAction'](_0x514e67,_0x2a4630,_0xdac558){const _0x58f7b9=_0x2a4630[0x0]['start']['nodeAfter'],_0x4a361e=_0xdac558['commandParams'][0x0];this['editor']['model']['change'](_0x4b446b=>{for(const _0x2ae0b4 of _0x514e67)void 0x0!==_0x4a361e[_0x2ae0b4]?_0x4b446b['setAttribute'](_0x2ae0b4,_0x4a361e[_0x2ae0b4],_0x58f7b9):_0x4b446b['removeAttribute'](_0x2ae0b4,_0x58f7b9);});}['handleSuggestionDescription'](_0x5854d9){if(_0x5854d9['data'])switch(_0x5854d9['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'](_0x1a319d,_0xcd9f6c){const _0x4fae28=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xa587c0 of _0x4fae28['getSuggestions']({'skipNotAttached':!0x0})){const _0x32ec16=_0xa587c0['getContainedElement']();if(_0xa587c0['subType']===_0xcd9f6c&&_0x32ec16===_0x1a319d)return _0xa587c0;}return null;}}const m='$elementName';class p extends _0x411e20{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1ce417,_0xb8fbda,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x584939){super(_0x584939),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x118226,_0xdf6295,_0x161905,_0x207eb6)=>{this['_model']['change'](()=>{for(const _0x8bdf4 of[..._0x207eb6,..._0x161905])this['_model']['markers']['has'](_0x8bdf4)&&_0x584939['editing']['reconvertMarker'](_0x8bdf4);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x584939['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(),_0x584939['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x584939['config']['get']('trackChanges.trackFormatChanges'),_0x584939['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x584939['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x584939,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x508279=this['editor'],_0x1e1655=(_0xc0e1cc,_0x466714)=>{if('attribute'!=_0xc0e1cc)return'ck-suggestion-marker-'+_0xc0e1cc;const _0xa3a544=_0x466714['split']('|')[0x0];return this['_isBlockAttribute'](_0xa3a544)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x508279['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x555b53=>{const {id:_0x2bcc62,authorId:_0x1600ca,type:_0x113da3,subType:_0xa25d9f}=this['_splitMarkerName'](_0x555b53['markerName']),_0x2303d4=['ck-suggestion-marker',_0x1e1655(_0x113da3,_0xa25d9f)];let _0x49f303=0xbb8;return this['activeMarkers']['includes'](_0x555b53['markerName'])&&(_0x2303d4['push']('ck-suggestion-marker--active'),_0x49f303=0xbc2),'deletion'==_0x113da3&&(_0x49f303+=0x5),{'classes':_0x2303d4,'attributes':{'data-suggestion':_0x2bcc62,'data-author-id':_0x1600ca},'priority':_0x49f303};}}),_0x508279['conversion']['for']('dataDowncast')['add'](_0xe7d515=>{_0xe7d515['on']('addMarker:suggestion',(_0x447bf9,_0x3fd0b4,_0x320859)=>{if(!_0x320859['options']['showSuggestionHighlights'])return;const _0x54ccbc=_0x3fd0b4['item'];if(!_0x54ccbc)return;const _0x3c0a1f=_0x320859['mapper']['toViewElement'](_0x54ccbc);_0x508279['model']['schema']['isObject'](_0x54ccbc)&&_0x3c0a1f&&!_0x3c0a1f['getCustomProperty']('widget')&&_0x3c0a1f['is']('containerElement')&&_0x36a35d(_0x3c0a1f,_0x320859['writer']);},{'priority':'high'});}),_0x508279['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x13c880,_0x2597c3)=>{if(!_0x2597c3['options']['showSuggestionHighlights'])return null;const {type:_0x1a54bb,subType:_0x5f2b02}=this['_splitMarkerName'](_0x13c880['markerName']);return{'classes':['ck-suggestion-marker',_0x1e1655(_0x1a54bb,_0x5f2b02)],'priority':0xbb8};}});const _0x1de7dd=({showActiveMarkers:_0x40fc9e=!0x0,isAttributeSuggestion:_0x2dad3b=!0x1}={})=>(_0x3e915d,_0x5d58dc,_0x177ba7)=>{if(!_0x5d58dc['item'])return;const {id:_0x4c12ce,authorId:_0x3c6413}=this['_splitMarkerName'](_0x5d58dc['markerName']);if(_0x2dad3b){const _0x2f42a4=this['_suggestions']['get'](_0x4c12ce),_0x224c6a=this['_getAttributeKey'](_0x2f42a4);if(!this['_isBlockAttribute'](_0x224c6a))return;}if(_0x5d58dc['item']['is']('selection'))return void _0x177ba7['consumable']['consume'](_0x5d58dc['item'],_0x3e915d['name']);const _0x4e1ce5=_0x177ba7['mapper']['toViewElement'](_0x5d58dc['item']);if(_0x5d58dc['item']['is']('element')&&_0x508279['model']['schema']['isBlock'](_0x5d58dc['item'])&&!_0x4e1ce5['getCustomProperty']('addHighlight')){_0x177ba7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4e1ce5),_0x177ba7['writer']['setAttribute']('data-suggestion',_0x4c12ce,_0x4e1ce5),_0x177ba7['writer']['setAttribute']('data-author-id',_0x3c6413,_0x4e1ce5),_0x177ba7['mapper']['bindElementToMarker'](_0x4e1ce5,_0x5d58dc['markerName']),_0x40fc9e&&(this['activeMarkers']['includes'](_0x5d58dc['markerName'])?_0x177ba7['writer']['addClass']('ck-suggestion-marker--active',_0x4e1ce5):_0x177ba7['writer']['removeClass']('ck-suggestion-marker--active',_0x4e1ce5));for(const _0xce39a2 of _0x508279['model']['createRangeIn'](_0x5d58dc['item'])['getItems']())_0x177ba7['consumable']['consume'](_0xce39a2,_0x3e915d['name']);_0x177ba7['consumable']['consume'](_0x5d58dc['item'],_0x3e915d['name']);}};_0x508279['conversion']['for']('dataDowncast')['add'](_0x1c9f3d=>{_0x1c9f3d['on']('addMarker:suggestion:formatBlock',(_0x641ce5,_0xcb87cd,_0x17233b)=>{_0x17233b['options']['showSuggestionHighlights']&&_0x1de7dd({'showActiveMarkers':!0x1})(_0x641ce5,_0xcb87cd,_0x17233b);},{'priority':'highest'});}),_0x508279['conversion']['for']('dataDowncast')['add'](_0x525d39=>{_0x525d39['on']('addMarker:suggestion:attribute',(_0xcf91fb,_0x3a2d74,_0x291553)=>{_0x291553['options']['showSuggestionHighlights']&&_0x1de7dd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xcf91fb,_0x3a2d74,_0x291553);},{'priority':'highest'});}),_0x508279['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3e27d0,_0x468db1)=>_0x468db1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3e27d0['substr'](0xb)}}),_0x508279['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5bf46f,{writer:_0x1178af})=>{let _0x1b8b1e='suggestion:'+_0x5bf46f['getAttribute']('suggestion-type')+':'+_0x5bf46f['getAttribute']('id');return _0x5bf46f['getAttribute']('marker-count')&&(_0x1b8b1e+=':'+_0x5bf46f['getAttribute']('marker-count')),_0x1178af['createElement']('$marker',{'data-name':_0x1b8b1e});}}),_0x508279['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x508279['conversion']['for']('editingDowncast')['add'](_0x2f22f2=>{_0x2f22f2['on']('addMarker:suggestion:formatBlock',_0x1de7dd(),{'priority':'high'});}),_0x508279['conversion']['for']('editingDowncast')['add'](_0x23805c=>{_0x23805c['on']('addMarker:suggestion:attribute',_0x1de7dd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x508279['conversion']['for']('editingDowncast')['add'](_0x43d8c3=>{_0x43d8c3['on']('removeMarker:suggestion:formatBlock',(_0x59642e,_0x3a5b58,_0x46d431)=>{const _0x4e0387=_0x46d431['mapper']['markerNameToElements'](_0x3a5b58['markerName']);if(_0x4e0387){for(const _0x23fc2b of _0x4e0387)_0x23fc2b['getCustomProperty']('addHighlight')||(_0x46d431['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x23fc2b),_0x46d431['writer']['removeAttribute']('data-suggestion',_0x23fc2b),_0x46d431['writer']['removeAttribute']('data-author-id',_0x23fc2b),_0x46d431['mapper']['unbindElementFromMarkerName'](_0x23fc2b,_0x3a5b58['markerName']));}},{'priority':'high'});}),_0x508279['conversion']['for']('editingDowncast')['add'](_0x3e9b70=>{_0x3e9b70['on']('removeMarker:suggestion:attribute',(_0x12354c,_0x2ef8bc,_0x4ee0c3)=>{const _0x4ce0c2=_0x4ee0c3['mapper']['markerNameToElements'](_0x2ef8bc['markerName']);if(!_0x4ce0c2)return;const {id:_0x19516e}=this['_splitMarkerName'](_0x2ef8bc['markerName']),_0x4fe845=this['_suggestions']['get'](_0x19516e),_0x33fcb4=this['_getAttributeKey'](_0x4fe845);if(this['_isBlockAttribute'](_0x33fcb4)){for(const _0x549479 of _0x4ce0c2)_0x549479['getCustomProperty']('addHighlight')||(_0x4ee0c3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x549479),_0x4ee0c3['writer']['removeAttribute']('data-suggestion',_0x549479),_0x4ee0c3['writer']['removeAttribute']('data-author-id',_0x549479),_0x4ee0c3['mapper']['unbindElementFromMarkerName'](_0x549479,_0x2ef8bc['markerName']));}},{'priority':'high'});}),_0x508279['model']['document']['registerPostFixer'](_0xd63fac=>{let _0x4b6de0=!0x1;const _0x282377=Array['from'](_0x508279['model']['document']['differ']['getChangedMarkers']()),_0x20ace8=new Set();for(const {name:_0x5041a8,data:_0x323299}of _0x282377){const {group:_0x9d0f03,type:_0x2c2c45,subType:_0x3f6e27,id:_0x364eee}=this['_splitMarkerName'](_0x5041a8);if('suggestion'!==_0x9d0f03)continue;const _0x2ddff2=this['_suggestions']['get'](_0x364eee);if(null!=_0x323299['newRange']){'formatInline'==_0x2c2c45&&(_0x4b6de0=_0x4b6de0||Lt(_0x323299['newRange'],_0x5041a8,_0xd63fac,_0x508279['model']['schema']));const _0x4993f4='attribute'==_0x2c2c45&&this['_isBlockAttribute'](_0x3f6e27['split']('|')[0x0]);if(_0x323299['newRange']['isCollapsed']||'$graveyard'==_0x323299['newRange']['root']['rootName']||'formatBlock'==_0x2c2c45&&!Ht(_0x323299['newRange'])||_0x4993f4&&!Ht(_0x323299['newRange'])||'deletion'==_0x2c2c45&&!(!Ft(_0x564f02=_0x323299['newRange'])&&!function(_0xa92f59){return _0xa92f59['start']['parent']==_0xa92f59['end']['nodeBefore']&&_0xa92f59['start']['isAtEnd'];}(_0x564f02)))_0xd63fac['removeMarker'](_0x5041a8),_0x4b6de0=!0x0;else{if(!_0x2ddff2||!_0x2ddff2['isInContent'])continue;if(_0x323299['newRange']&&_0x323299['oldRange']&&_0x323299['newRange']['isEqual'](_0x323299['oldRange']))continue;_0x20ace8['add'](_0x2ddff2);}}}var _0x564f02;return _0x20ace8['size']>0x0&&(_0x4b6de0=!!this['_joinWithAdjacentSuggestions'](_0x20ace8)||_0x4b6de0),_0x4b6de0;}),_0x508279['model']['document']['registerPostFixer'](_0x4f0301=>{let _0x331335=!0x1;for(const _0x24c2eb of _0x508279['model']['document']['differ']['getChanges']())if('insert'==_0x24c2eb['type'])for(const _0x27b88d of this['_suggestions']['values']()){if(_0x27b88d['isMultiRange']||!_0x27b88d['isInContent'])continue;const _0x4a6fab='formatBlock'==_0x27b88d['type'],_0x34452a=this['_getAttributeKey'](_0x27b88d),_0x456c06=_0x34452a&&this['_isBlockAttribute'](_0x34452a);if(!_0x4a6fab&&!_0x456c06)continue;const _0xcf01bb=_0x27b88d['getFirstRange']();if(_0xcf01bb['start']['parent']!=_0xcf01bb['end']['parent']&&!_0xcf01bb['end']['isAtEnd']){const _0x5bce4c=_0x508279['model']['createPositionAt'](_0xcf01bb['start']['nodeAfter'],'end'),_0x31bd14=_0x508279['model']['createRange'](_0xcf01bb['start'],_0x5bce4c);_0x4f0301['updateMarker'](_0x27b88d['getFirstMarker'](),{'range':_0x31bd14}),_0x331335=!0x0;}}return _0x331335;}),_0x508279['model']['document']['registerPostFixer'](_0x51f1f1=>this['_processAttributeChanges'](_0x51f1f1)),_0x508279['model']['document']['registerPostFixer'](_0x47fc2f=>!_0x47fc2f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x47fc2f)),_0x508279['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x508279['model']['document']['on']('change:data',(_0x4ade7b,_0x5cd26d)=>{if(!_0x5cd26d['isLocal']||_0x5cd26d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xac2db2=_0x508279['model']['document']['differ']['getChanges']();if(0x0==_0xac2db2['length'])return;const _0x190ec9=[],_0x2b7179=_0xac2db2['filter'](_0x3d7eb5=>'attribute'==_0x3d7eb5['type']),_0x51c496=_0xac2db2['filter'](_0x10cce7=>'insert'==_0x10cce7['type']&&'$text'!=_0x10cce7['name']);for(const _0x2616fd of _0x2b7179)this['_isRegisteredAttribute'](_0x2616fd['attributeKey'])&&_0x190ec9['push']({'key':_0x2616fd['attributeKey'],'newValue':_0x2616fd['attributeNewValue'],'oldValue':_0x2616fd['attributeOldValue'],'range':qt(_0x2616fd['range'],_0x508279['model'])});for(const _0x29971c of _0x51c496){if('rename'!=_0x29971c['action']&&'refresh'!=_0x29971c['action'])continue;const _0x5803ee=zt(_0x29971c['position']['nodeAfter'],_0x508279['model']),_0x122b9d=_0x29971c['before'];'rename'==_0x29971c['action']&&_0x190ec9['push']({'key':m,'newValue':_0x29971c['name'],'oldValue':_0x122b9d['name'],'range':_0x5803ee});for(const [_0x4689e5,_0x22132a]of _0x122b9d['attributes']){if(!this['_isRegisteredAttribute'](_0x4689e5))continue;const _0x5417a5=_0x29971c['attributes']['get'](_0x4689e5);_0x22132a!==_0x5417a5&&_0x190ec9['push']({'key':_0x4689e5,'newValue':_0x5417a5,'oldValue':_0x22132a,'range':_0x5803ee});}for(const [_0x18f1a8,_0x151ed6]of _0x29971c['attributes'])this['_isRegisteredAttribute'](_0x18f1a8)&&(_0x122b9d['attributes']['has'](_0x18f1a8)||_0x190ec9['push']({'key':_0x18f1a8,'newValue':_0x151ed6,'oldValue':null,'range':_0x5803ee}));}0x0!=_0x190ec9['length']&&_0x508279['model']['enqueueChange'](_0x5cd26d,_0x1ae725=>{const _0x47cc39=_0x4e0f2a();for(const {range:_0x40debb,key:_0x418b20,oldValue:_0x435426,newValue:_0x57328b}of _0x190ec9)this['markAttributeChange'](_0x40debb,_0x418b20,_0x435426,_0x57328b,{'groupId':_0x47cc39});this['_reduceExistingSuggestions'](_0x1ae725,_0x190ec9);});},{'priority':'lowest'}),_0x508279['model']['markers']['on']('update:suggestion',(_0x439183,_0x25a5a8,_0x558c75)=>{if(null==_0x558c75){const {id:_0x3e2174}=this['_splitMarkerName'](_0x25a5a8['name']),_0x2521c3=this['_suggestions']['get'](_0x3e2174);_0x2521c3&&_0x2521c3['addMarkerName'](_0x25a5a8['name']);}}),_0x508279['model']['document']['on']('change:data',()=>{const _0x59bdd0=Array['from'](_0x508279['model']['document']['differ']['getChangedMarkers']())['filter'](_0x48090f=>'suggestion'===this['_splitMarkerName'](_0x48090f['name'])['group']);if(0x0===_0x59bdd0['length'])return;_0x59bdd0['sort']((_0x4fafd8,_0x1887c8)=>{const _0x52ed67=_0x4fafd8['data']['oldRange'],_0x3fe9b8=_0x1887c8['data']['oldRange'];return null===_0x52ed67&&null===_0x3fe9b8?0x0:null===_0x52ed67&&null!==_0x3fe9b8?-0x1:null!==_0x52ed67&&null===_0x3fe9b8?0x1:_0x52ed67['start']['isBefore'](_0x3fe9b8['start'])?-0x1:0x1;});const _0x3f0af6=new Set(),_0x41b6bd=new Set();for(const {name:_0x4ceafa,data:_0x1385ec}of _0x59bdd0){const {id:_0x3a93fa}=this['_splitMarkerName'](_0x4ceafa);if(null===_0x1385ec['oldRange']){const _0x448f82=this['_handleNewSuggestionMarker'](_0x4ceafa);_0x41b6bd['add'](_0x448f82);}else{const _0x3b1bf7=this['_suggestions']['get'](_0x3a93fa);null!==_0x1385ec['newRange']||_0x3b1bf7['isInContent']?(_0x3f0af6['add'](_0x3b1bf7['head']),_0x41b6bd['add'](_0x3b1bf7)):this['_removeSuggestion'](_0x3b1bf7);}}_0x41b6bd['size']>0x0&&this['_refreshSuggestionsChain'](_0x41b6bd);for(const _0x1f579c of _0x3f0af6)this['fire']('suggestionChanged',_0x1f579c);}),_0x508279['model']['on']('applyOperation',(_0x32a758,_0x129261)=>{const _0x2c94d3=_0x129261[0x0];if(!this['_suggestions']['size'])return;if(!_0x2c94d3['isDocumentOperation'])return;if(_0x2c94d3['batch']['isUndo']||!_0x2c94d3['batch']['isLocal'])return;let _0x588ae4,_0x47eecc;switch(_0x2c94d3['type']){case'insert':_0x588ae4=_0x508279['model']['createPositionAt'](_0x2c94d3['position']),_0x47eecc=_0x588ae4['getShiftedBy'](_0x2c94d3['howMany']);break;case'split':_0x588ae4=_0x508279['model']['createPositionAt'](_0x2c94d3['splitPosition']),_0x47eecc=_0x508279['model']['createPositionAt'](_0x2c94d3['moveTargetPosition']);break;case'move':_0x588ae4=_0x508279['model']['createPositionAt'](_0x2c94d3['targetPosition']),_0x47eecc=_0x588ae4['getShiftedBy'](_0x2c94d3['howMany']);break;default:return;}const _0x4b90ec=_0x508279['model']['createRange'](_0x588ae4,_0x47eecc);_0x508279['model']['change'](()=>{for(const {suggestion:_0x9a54ab,meta:_0x5a8bd3}of this['_findSuggestions'](_0x4b90ec)){if(_0x9a54ab['isMultiRange'])continue;if('formatInline'==_0x9a54ab['type'])continue;const _0x219431=this['_getAttributeKey'](_0x9a54ab);if(_0x219431&&this['_isBlockAttribute'](_0x219431)&&'split'!=_0x2c94d3['type'])continue;const _0x3bdf7f=_0x9a54ab['data']&&_0x9a54ab['data']['multipleBlocks'];('formatBlock'!=_0x9a54ab['type']||'split'==_0x2c94d3['type']&&!_0x3bdf7f)&&(_0x5a8bd3['containsRangeInObject']||'insertion'==_0x9a54ab['type']&&_0x5a8bd3['isOwn']||_0x9a54ab['getFirstRange']()['containsRange'](_0x4b90ec)&&this['_breakSuggestionMarker'](_0x9a54ab,_0x588ae4,_0x47eecc));}});},{'priority':'lowest'}),_0x508279['model']['on']('deleteContent',(_0x13fcb2,_0x3300b8)=>{const _0xbbf7f2=_0x3300b8[0x0],_0x321c27=_0x3300b8[0x1];if(_0x321c27&&_0x321c27['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xbbf7f2['isCollapsed'])return;const _0x1afcea=_0x508279['model']['schema'],{start:_0x412c2d,end:_0x312f8e}=_0xbbf7f2['getFirstRange'](),_0x4b0811=_0x412c2d['nodeAfter']&&_0x1afcea['isLimit'](_0x412c2d['nodeAfter'])?null:_0x1afcea['getNearestSelectionRange'](_0x412c2d,'forward'),_0x57ff22=_0x312f8e['nodeBefore']&&_0x1afcea['isLimit'](_0x312f8e['nodeBefore'])?null:_0x1afcea['getNearestSelectionRange'](_0x312f8e,'backward'),_0x83d495=_0x508279['model']['createRange'](_0x4b0811?_0x4b0811['start']:_0x412c2d,_0x57ff22?_0x57ff22['end']:_0x312f8e);_0x508279['model']['change'](_0x28be72=>{this['markDeletion'](_0x83d495);const _0x36fee0=_0x508279['model']['schema']['getNearestSelectionRange'](_0x83d495['start']);_0xbbf7f2['is']('documentSelection')?_0x28be72['setSelection'](_0x36fee0):_0xbbf7f2['setTo'](_0x36fee0);}),_0x13fcb2['stop']();},{'priority':_0x1ed091['normal']+0xa}),_0x508279['model']['on']('insertContent',(_0x40e941,_0x31aac0)=>{const _0x77d423=_0x31aac0[_0x31aac0['length']-0x1];_0x77d423&&_0x77d423['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x508279['model']['change'](()=>{let _0x3efdba=_0x508279['model']['insertContent'](_0x31aac0[0x0],_0x31aac0[0x1],_0x31aac0[0x2],{'forceDefaultExecution':!0x0});if(!_0x3efdba)return;_0x40e941['return']=_0x3efdba['clone']();const _0x333b40=_0x3efdba['end']['nodeBefore'],_0x233261=_0x508279['model']['schema'];_0x333b40&&_0x233261['isBlock'](_0x333b40)&&!_0x233261['isObject'](_0x333b40)&&(_0x3efdba=_0x508279['model']['createRange'](_0x3efdba['start'],_0x508279['model']['createPositionAt'](_0x333b40,'end'))),this['markInsertion'](_0x3efdba);}),_0x40e941['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x57b088=new O(_0x508279,this['_suggestions']);_0x508279['commands']['add']('acceptSuggestion',_0x57b088),this['enableCommand']('acceptSuggestion');const _0x4bcb16=new R(_0x508279,this['_suggestions']);_0x508279['commands']['add']('discardSuggestion',_0x4bcb16),this['enableCommand']('discardSuggestion'),_0x508279['commands']['add']('acceptAllSuggestions',new x(_0x508279,_0x57b088,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x508279['commands']['add']('discardAllSuggestions',new x(_0x508279,_0x4bcb16,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x508279['commands']['add']('acceptSelectedSuggestions',new E(_0x508279,_0x57b088,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x508279['commands']['add']('discardSelectedSuggestions',new E(_0x508279,_0x4bcb16,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x458399=_0x508279['plugins']['get']('CommentsRepository');this['listenTo'](_0x458399,'addComment',(_0x2da94b,{threadId:_0x512e4b})=>{const _0xd1aec=this['_suggestions']['get'](_0x512e4b);_0xd1aec&&_0xd1aec['commentThread']&&0x1===_0xd1aec['commentThread']['length']&&this['_updateSuggestionData'](_0x512e4b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x458399,'removeComment',(_0x146f83,{threadId:_0x24b666})=>{const _0x2515fa=this['_suggestions']['get'](_0x24b666);_0x2515fa&&_0x2515fa['commentThread']&&!_0x2515fa['commentThread']['length']&&this['_updateSuggestionData'](_0x24b666,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2b84e9){const _0x1bbe74=_0x540288([0x37,0x34,0x76,0x53,0x5a,0x55,0x63,0x56,0x65,0x31,0x54,0x51,0x78,0x4b,0x6f,0x39,0x77,0x6b,0x6e,0x79,0x72,0x7a,0x38,0x47,0x62,0x68,0x66,0x71,0x61,0x49,0x4c,0x46,0x48,0x59,0x52,0x50,0x4a,0x45,0x4e,0x44,0x33,0x6a,0x57,0x42,0x4f,0x69,0x67,0x4d,0x73,0x41,0x32,0x75,0x6c,0x64,0x6d,0x70,0x58,0x36,0x35,0x30,0x74,0x43]),_0x3a7562=0x1d379bd,_0x4c4efb=0x1d42735^_0x3a7562,_0xd7ed88=window[_0x540288([0x44,0x61,0x74,0x65])][_0x540288([0x6e,0x6f,0x77])](),_0x20ce96=_0x2b84e9[_0x540288([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5fdfdf=new window[(_0x540288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b4d7d=>{_0x20ce96[_0x540288([0x6f,0x6e,0x63,0x65])](_0x540288([0x72,0x65,0x61,0x64,0x79]),_0x5b4d7d);}),_0x53d191={[_0x540288([0x6b,0x74,0x79])]:_0x540288([0x45,0x43]),[_0x540288([0x75,0x73,0x65])]:_0x540288([0x73,0x69,0x67]),[_0x540288([0x63,0x72,0x76])]:_0x540288([0x50,0x2d,0x32,0x35,0x36]),[_0x540288([0x78])]:_0x540288([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]),[_0x540288([0x79])]:_0x540288([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]),[_0x540288([0x61,0x6c,0x67])]:_0x540288([0x45,0x53,0x32,0x35,0x36])},_0x51c8a8=_0x20ce96[_0x540288([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x540288([0x67,0x65,0x74])](_0x540288([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x514654(){let _0x25d903,_0x93a34b=null,_0x3cad2a=null;try{if(_0x51c8a8==_0x540288([0x47,0x50,0x4c]))return _0x540288([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x25d903=_0x395ff9(),!_0x25d903)return _0x540288([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x25d903[_0x540288([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3cad2a=_0x1e552b(_0x25d903[_0x540288([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x25d903[_0x540288([0x6a,0x74,0x69])])),await _0x17aee4()?_0x5df6d8()?_0x555477()?_0x540288([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e087b()?(_0x25d903[_0x540288([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x540288([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x93a34b=_0x56c092(_0x540288([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x25d903[_0x540288([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x540288([0x74,0x72,0x69,0x61,0x6c])&&(_0x93a34b=_0x56c092(_0x540288([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3609b7()):_0x540288([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x540288([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x540288([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xb178b4){return _0x540288([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x555477(){const _0x3951b2=[_0x540288([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x540288([0x74,0x72,0x69,0x61,0x6c])][_0x540288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25d903[_0x540288([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd7ed88/0x3e8:0xe10*_0x4c4efb;return _0x25d903[_0x540288([0x65,0x78,0x70])]<_0x3951b2;}function _0x5df6d8(){const _0x39b7e5=_0x25d903[_0x540288([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x39b7e5)return!0x1;if(_0x39b7e5[_0x540288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540288([0x2a])))return!0x0;if(_0x39b7e5[_0x540288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540288([0x54,0x43])))return!0x0;if(_0x39b7e5[_0x540288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540288([0x52,0x54,0x43]))){if(_0x523414())return!0x0;if(_0x40bc10()||_0x2be865())return!0x0;}return!0x1;}function _0x4e087b(){const _0x110697=_0x25d903[_0x540288([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x110697||0x0==_0x110697[_0x540288([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2177e8}=new URL(window[_0x540288([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x110697[_0x540288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2177e8))return!0x0;const _0x5c9869=_0x2177e8[_0x540288([0x73,0x70,0x6c,0x69,0x74])](_0x540288([0x2e]));return _0x110697[_0x540288([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x432020=>_0x432020[_0x540288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540288([0x2a])))[_0x540288([0x6d,0x61,0x70])](_0x1820f5=>_0x1820f5[_0x540288([0x73,0x70,0x6c,0x69,0x74])](_0x540288([0x2e])))[_0x540288([0x73,0x6f,0x6d,0x65])](_0x3ae7f1=>_0x5c9869[_0x540288([0x65,0x76,0x65,0x72,0x79])]((_0x12f77a,_0x314bb4)=>_0x3ae7f1[_0x314bb4]===_0x12f77a||_0x3ae7f1[_0x314bb4]===_0x540288([0x2a])));}function _0x3609b7(){return _0x93a34b&&_0x3cad2a?new window[(_0x540288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4006e5,_0x27973c)=>{_0x93a34b[_0x540288([0x74,0x68,0x65,0x6e])](_0x4006e5,_0x27973c),_0x3cad2a[_0x540288([0x74,0x68,0x65,0x6e])](_0x474e78=>{_0x474e78!=_0x540288([0x56,0x61,0x6c,0x69,0x64])&&_0x4006e5(_0x474e78);},_0x27973c);}):_0x93a34b||_0x3cad2a||_0x540288([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e552b(_0x5709bb,_0x3f3e6a){return new window[(_0x540288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x322c3a=>{if(_0x58737a())return _0x322c3a(_0x540288([0x56,0x61,0x6c,0x69,0x64]));_0x58a6d7(),_0x20ce96[_0x540288([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x540288([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e44bd=!0x1;const _0x450fe0=_0x4e0f2a();function _0x51e46f(_0x5dc4e9){return!!_0x5dc4e9&&(typeof _0x5dc4e9===_0x540288([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5dc4e9===_0x540288([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5dc4e9[_0x540288([0x74,0x68,0x65,0x6e])]===_0x540288([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5dc4e9[_0x540288([0x63,0x61,0x74,0x63,0x68])]===_0x540288([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59eb69(_0x44f961){_0x1f26a8(_0x44f961)[_0x540288([0x74,0x68,0x65,0x6e])](_0xd207f2=>{if(!_0xd207f2||_0xd207f2[_0x540288([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x540288([0x6f,0x6b]))return _0x540288([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24efaf(_0x17e798(_0x450fe0+_0x3f3e6a))!=_0xd207f2[_0x540288([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x540288([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x540288([0x56,0x61,0x6c,0x69,0x64]);})[_0x540288([0x74,0x68,0x65,0x6e])](_0x35ae24=>(_0x2bbc70(),_0x35ae24),()=>{const _0xf6eb8e=_0x4b9472();return null==_0xf6eb8e?(_0x2bbc70(),_0x540288([0x56,0x61,0x6c,0x69,0x64])):_0x540288(_0xd7ed88-_0xf6eb8e>(0x25dffdbd^_0x3a7562)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x540288([0x74,0x68,0x65,0x6e])](_0x322c3a)[_0x540288([0x63,0x61,0x74,0x63,0x68])](()=>{_0x322c3a(_0x540288([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39f2cb=0x1e5973d^_0x3a7562;function _0x2bbc70(){const _0x411073=_0x540288([0x6c,0x6c,0x63,0x74,0x2d])+_0x24efaf(_0x17e798(_0x5709bb)),_0x4a682c=_0x17ca39(_0x24efaf(window[_0x540288([0x4d,0x61,0x74,0x68])][_0x540288([0x63,0x65,0x69,0x6c])](_0xd7ed88/_0x39f2cb)));window[_0x540288([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x540288([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x411073,_0x4a682c);}function _0x4b9472(){const _0x210251=_0x540288([0x6c,0x6c,0x63,0x74,0x2d])+_0x24efaf(_0x17e798(_0x5709bb)),_0x53a7e6=window[_0x540288([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x540288([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x210251);return _0x53a7e6?window[_0x540288([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17ca39(_0x53a7e6),0x10)*_0x39f2cb:null;}function _0x1f26a8(_0x4910cf){return new window[(_0x540288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x444ed6,_0x3a7c9d)=>{_0x4910cf[_0x540288([0x74,0x68,0x65,0x6e])](_0x444ed6,_0x3a7c9d),window[_0x540288([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a7c9d,0x1d2ad7d^_0x3a7562);});}}_0x20ce96[_0x540288([0x6f,0x6e])](_0x540288([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1593cc,_0x4f8514)=>{if(_0x4f8514[0x0]!=_0x5709bb)return _0x322c3a(_0x540288([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f8514[0x1]={..._0x4f8514[0x1],[_0x540288([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x450fe0};},{[_0x540288([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x540288([0x68,0x69,0x67,0x68])}),_0x20ce96[_0x540288([0x6f,0x6e])](_0x540288([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5186aa=>{_0x51e46f(_0x5186aa[_0x540288([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e44bd=!0x0,_0x59eb69(_0x5186aa[_0x540288([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x540288([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x540288([0x6c,0x6f,0x77])}),_0x5fdfdf[_0x540288([0x74,0x68,0x65,0x6e])](()=>{_0x2e44bd||_0x322c3a(_0x540288([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58737a(){return _0x20ce96[_0x540288([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x540288([0x76,0x69,0x65,0x77])][_0x540288([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x540288([0x61,0x75,0x74,0x6f]);}function _0x58a6d7(){_0x20ce96[_0x540288([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x540288([0x76,0x69,0x65,0x77])][_0x540288([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x540288([0x61,0x75,0x74,0x6f]);}}function _0x56c092(_0x3a71bf){const _0xb42944=[new window[(_0x540288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46161b=>setTimeout(_0x46161b,0x1da4771^_0x3a7562)),_0x5fdfdf[_0x540288([0x74,0x68,0x65,0x6e])](()=>new window[(_0x540288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a9450=>{let _0x38dc9d=0x0;_0x20ce96[_0x540288([0x6d,0x6f,0x64,0x65,0x6c])][_0x540288([0x6f,0x6e])](_0x540288([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a0f52,_0xae047e)=>{_0xae047e[0x0][_0x540288([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38dc9d++,_0x38dc9d==(0x1d37845^_0x3a7562)&&(_0x5a9450(),_0x4a0f52[_0x540288([0x6f,0x66,0x66])]());});}))];return window[_0x540288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x540288([0x72,0x61,0x63,0x65])](_0xb42944)[_0x540288([0x74,0x68,0x65,0x6e])](()=>_0x3a71bf);}async function _0x254e24(){await _0x5fdfdf,_0x20ce96[_0x540288([0x6d,0x6f,0x64,0x65,0x6c])][_0x540288([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49748b,_0x20ce96[_0x540288([0x6d,0x6f,0x64,0x65,0x6c])][_0x540288([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49748b,_0x20ce96[_0x540288([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x540288([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x523414(){return _0x4279bf(_0x540288([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x335f89(_0x540288([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x540288([0x73,0x74,0x61,0x74,0x65])]==_0x540288([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x40bc10(){return _0x4279bf(_0x540288([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 _0x2be865(){return _0x4279bf(_0x540288([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x53c137(_0x21d543){const _0x34a04f=_0x38b8a5();_0x20ce96[_0x34a04f]=_0x540288([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21d543,_0x21d543!=_0x540288([0x56,0x61,0x6c,0x69,0x64])&&_0x254e24();}function _0x38b8a5(){const _0x5d34b1=window[_0x540288([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x540288([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x540288([0x6e,0x6f,0x77])]())[_0x540288([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x540288([0x2e]),'');let _0x5c7603=_0x540288([0x76]);for(let _0x184951=0x0;_0x184951<_0x5d34b1[_0x540288([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x184951+=0x2){let _0x50e523=window[_0x540288([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d34b1[_0x540288([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x184951,_0x184951+0x2));_0x50e523>=_0x1bbe74[_0x540288([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50e523-=_0x1bbe74[_0x540288([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c7603+=_0x1bbe74[_0x50e523];}return _0x5c7603;}function _0x395ff9(){const _0x357953=_0x51c8a8[_0x540288([0x73,0x70,0x6c,0x69,0x74])](_0x540288([0x2e]));if(0x3!=_0x357953[_0x540288([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59a3b1(_0x357953[0x1]);function _0x59a3b1(_0x5f577f){const _0x40720b=_0x24f4c5(_0x5f577f);return _0x40720b&&_0x22b531()?_0x40720b:null;function _0x22b531(){const _0xb980ff=_0x40720b[_0x540288([0x6a,0x74,0x69])],_0x54933a=window[_0x540288([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb980ff[_0x540288([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb980ff[_0x540288([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x73ba1b={..._0x40720b,[_0x540288([0x6a,0x74,0x69])]:_0xb980ff[_0x540288([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb980ff[_0x540288([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x73ba1b[_0x540288([0x76,0x63])],_0x17e798(_0x73ba1b)==_0x54933a;}}}async function _0x17aee4(){let _0x29a9d7=!0x0;try{const _0x63f231=_0x51c8a8[_0x540288([0x73,0x70,0x6c,0x69,0x74])](_0x540288([0x2e])),[_0x3b631e,_0x2c07d2,_0x1b8132]=_0x63f231;return _0x4a5f57(_0x3b631e),await _0x3cb03b(_0x3b631e,_0x2c07d2,_0x1b8132),_0x29a9d7;}catch(_0x1b82b0){return!0x1;}function _0x4a5f57(_0x20468e){const _0x18e3fb=_0x24f4c5(_0x20468e);_0x18e3fb&&_0x18e3fb[_0x540288([0x61,0x6c,0x67])]==_0x540288([0x45,0x53,0x32,0x35,0x36])||(_0x29a9d7=!0x1);}async function _0x3cb03b(_0x1a1d9b,_0x2ca99e,_0x456e89){const _0x12c2b1=window[_0x540288([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x540288([0x66,0x72,0x6f,0x6d])](_0x533420(_0x456e89),_0x5af56c=>_0x5af56c[_0x540288([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xec3e72=new window[(_0x540288([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x540288([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a1d9b+_0x540288([0x2e])+_0x2ca99e),_0x5f409d=window[_0x540288([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x540288([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5f409d)return;const _0x178366=await _0x5f409d[_0x540288([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x540288([0x6a,0x77,0x6b]),_0x53d191,{[_0x540288([0x6e,0x61,0x6d,0x65])]:_0x540288([0x45,0x43,0x44,0x53,0x41]),[_0x540288([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x540288([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x540288([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5f409d[_0x540288([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x540288([0x6e,0x61,0x6d,0x65])]:_0x540288([0x45,0x43,0x44,0x53,0x41]),[_0x540288([0x68,0x61,0x73,0x68])]:{[_0x540288([0x6e,0x61,0x6d,0x65])]:_0x540288([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x178366,_0x12c2b1,_0xec3e72)||(_0x29a9d7=!0x1);}}function _0x24f4c5(_0x332ede){return _0x332ede[_0x540288([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x540288([0x65,0x79]))?JSON[_0x540288([0x70,0x61,0x72,0x73,0x65])](_0x533420(_0x332ede)):null;}function _0x533420(_0x554374){return window[_0x540288([0x61,0x74,0x6f,0x62])](_0x554374[_0x540288([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x540288([0x2b]))[_0x540288([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x540288([0x2f])));}function _0x17e798(_0x5b679a){let _0x189331=0x1505;function _0x5af04c(_0x39b6dc){for(let _0x57efc9=0x0;_0x57efc9<_0x39b6dc[_0x540288([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57efc9++){const _0x1f4315=_0x39b6dc[_0x540288([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57efc9);_0x189331=(_0x189331<<0x5)+_0x189331+_0x1f4315,_0x189331&=_0x189331;}}function _0x5b809f(_0x5dec25){Array[_0x540288([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5dec25)?_0x5dec25[_0x540288([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b809f):_0x5dec25&&typeof _0x5dec25==_0x540288([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x540288([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5dec25)[_0x540288([0x73,0x6f,0x72,0x74])]()[_0x540288([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a481c,_0x35f079])=>{_0x5af04c(_0x2a481c),_0x5b809f(_0x35f079);}):_0x5af04c(window[_0x540288([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5dec25));}return _0x5b809f(_0x5b679a),_0x189331>>>0x0;}function _0x24efaf(_0x208af8){return _0x208af8[_0x540288([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x540288([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x540288([0x30]));}function _0x17ca39(_0x1ac023){return _0x1ac023[_0x540288([0x73,0x70,0x6c,0x69,0x74])]('')[_0x540288([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x540288([0x6a,0x6f,0x69,0x6e])]('');}function _0x4279bf(_0x3abf7f){return _0x20ce96[_0x540288([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x540288([0x68,0x61,0x73])](_0x3abf7f);}function _0x335f89(_0x1a0ff6){return _0x20ce96[_0x540288([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x540288([0x67,0x65,0x74])](_0x1a0ff6);}function _0x49748b(){}function _0x540288(_0x3e5252){return _0x3e5252['map'](_0x7abaf1=>String['fromCharCode'](_0x7abaf1))['join']('');}_0x53c137(await _0x514654());}(this);}set['adapter'](_0x2ac3fb){if(this['_adapter'])throw new _0x38b09e('track-changes-adapter-already-set',this);this['_adapter']=_0x2ac3fb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5dc349=!0x1,toJSON:_0x2c2407=!0x1}={}){const _0x435188=[];for(const _0x29efdd of this['_suggestions']['values']())_0x5dc349&&!_0x29efdd['isInContent']||_0x435188['push'](_0x29efdd);return _0x2c2407?_0x435188['map'](_0x4bf0c8=>_0x4bf0c8['toJSON']()):_0x435188;}['getSuggestion'](_0x1d9648){const _0x1f74fe=this['_suggestions']['get'](_0x1d9648);if(!_0x1f74fe)throw new _0x38b09e('track-changes-suggestion-not-found',this);return _0x1f74fe;}['hasSuggestion'](_0x9cebc){return this['_suggestions']['has'](_0x9cebc);}['addSuggestionData'](_0x1124cc){const {authorId:_0x3b75a3,id:_0x1550f3,attributes:_0x4f8dee}=_0x1124cc,[_0x11f0ef,_0x497b50]=_0x1124cc['type']['split'](':'),_0x4a1803=this['_suggestions']['get'](_0x1550f3)||this['_createSuggestion'](_0x11f0ef,_0x497b50,_0x1550f3,_0x3b75a3,_0x4f8dee);if(this['_addThreadToSuggestion'](_0x4a1803),this['_checkSuggestionCorrectness'](_0x4a1803,_0x11f0ef,_0x497b50||null,_0x3b75a3),_0x4a1803['createdAt']=_0x1124cc['createdAt'],_0x4a1803['_isDataLoaded']=!0x0,_0x4f8dee&&_0x4f8dee['@external']){const _0x22627d=_0x4f8dee['@external'],_0x358e3c=this['_getExternalAuthor'](_0x22627d['authorName']);_0x4a1803['authoredAt']=_0x22627d['createdAt'],_0x4a1803['author']=_0x358e3c,_0x4a1803['isExternal']=!0x0;}else _0x4a1803['authoredAt']=_0x1124cc['createdAt'];switch(_0x1124cc['data']&&(_0x4a1803['data']=_0x1124cc['data']),_0x1124cc['attributes']&&(_0x4a1803['attributes']=_0x1124cc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4a1803['_saved']=!0x0),this['_suggestionState']['get'](_0x4a1803)){case'notReady':this['_suggestionState']['set'](_0x4a1803,'dataReady');break;case'markerReady':_0x4a1803['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4a1803])),this['_refreshSuggestionsChain'](new Set([_0x4a1803])),this['_suggestionState']['set'](_0x4a1803,'ready'),this['fire']('suggestionLoaded',_0x4a1803)):this['_suggestionState']['set'](_0x4a1803,'removed');}return _0x4a1803;}['acceptSuggestion'](_0xf63b78){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a6c3a of _0xf63b78['getAllAdjacentSuggestions']())_0x2a6c3a['accept']();});});}['discardSuggestion'](_0x2610a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5775e7 of _0x2610a4['getAllAdjacentSuggestions']())_0x5775e7['discard']();});});}['enableCommand'](_0x252684,_0x3ddff8){const _0xc2c29d=this['editor']['commands']['get'](_0x252684);if(!_0xc2c29d)throw new _0x38b09e('track-changes-command-not-found',this,{'commandName':_0x252684});if(this['_enabledCommands']['has'](_0xc2c29d))throw new _0x38b09e('track-changes-enable-command-twice',this,{'commandName':_0x252684});this['_enabledCommands']['add'](_0xc2c29d),_0x3ddff8&&_0xc2c29d['on']('execute',(_0x360048,_0x3ac87d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3ac87d['length']>0x0&&_0x3ac87d[_0x3ac87d['length']-0x1]&&_0x3ac87d[_0x3ac87d['length']-0x1]['forceDefaultExecution']?_0x3ac87d['pop']():(_0x360048['return']=_0x3ddff8((..._0x2c49dd)=>_0xc2c29d['execute'](..._0x2c49dd,{'forceDefaultExecution':!0x0}),..._0x3ac87d),_0x360048['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2484c9){let _0x5ce757,_0x30c8f1;const _0x2f916a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5ce757=_0x2484c9();}catch(_0x2d4b78){_0x30c8f1=_0x2d4b78;}return _0x2f916a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x30c8f1&&_0x38b09e['rethrowUnexpectedError'](_0x30c8f1,this),_0x5ce757;}['markInsertion'](_0x154575,_0x17de55=null,_0x463f8e={}){if(_0x154575['isCollapsed'])return null;const _0x489ed4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3f97e5,meta:_0x8d9f99}of this['_findSuggestions'](_0x154575,'insertion'))if(_0x8d9f99['isOwn']){if(!_0x8d9f99['isNextTo']){if(_0x8d9f99['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3f97e5,_0x463f8e))continue;return _0x3f97e5;}if(Qt(_0x3f97e5,_0x463f8e))return _0x3f97e5;this['_breakSuggestionMarker'](_0x3f97e5,_0x154575['start'],_0x154575['end']);break;}if(_0x17de55==_0x3f97e5['subType']&&Qt(_0x3f97e5,_0x463f8e)){const _0x2216f3=_0x3f97e5['getFirstRange']();return _0x2216f3['start']['isEqual'](_0x154575['end'])?this['_setSuggestionRange'](_0x3f97e5,this['_model']['createRange'](_0x154575['start'],_0x2216f3['end'])):this['_setSuggestionRange'](_0x3f97e5,this['_model']['createRange'](_0x2216f3['start'],_0x154575['end'])),_0x3f97e5;}}const _0x3bf56b=_0x4e0f2a(),_0x226663=_0x489ed4['id'],_0x16a4c4=_0x17de55?'insertion:'+_0x17de55:'insertion',_0x1e7da9=this['_setSuggestionData']({'id':_0x3bf56b,'type':_0x16a4c4,'createdAt':new Date(),'authorId':_0x226663,'attributes':_0x463f8e});return this['_addSuggestionMarker'](_0x16a4c4,_0x3bf56b,_0x226663,_0x154575),_0x1e7da9;}['markMultiRangeInsertion'](_0x1aac03,_0x3c8a24='multi',_0x235683={}){const _0x4c8fd6=this['editor']['plugins']['get']('Users')['me'],_0x2f0146=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3c8a24,'join');for(const _0x1bf874 of this['getSuggestions']())if(_0x1bf874['author']['id']==_0x4c8fd6['id']&&'insertion'==_0x1bf874['type']&&_0x1bf874['subType']==_0x3c8a24&&Qt(_0x1bf874,_0x235683)&&(_0x2f0146(_0x1bf874['getRanges'](),_0x1aac03)||_0x2f0146(_0x1aac03,_0x1bf874['getRanges']()))){for(const _0x4ee4e6 of _0x1aac03)_0x1bf874['addRange'](_0x4ee4e6);return _0x1bf874;}for(const {suggestion:_0x16d65d,meta:_0x36ac01}of this['_findSuggestions'](_0x1aac03,'insertion')){if(!_0x36ac01['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x36ac01['containsRangeInObject'])continue;if(!Qt(_0x16d65d,_0x235683))continue;let _0xbc64bb=!0x0;for(const _0x10d1f4 of _0x16d65d['getRanges']())for(const _0x19b042 of _0x1aac03)if(!_0x10d1f4['containsRange'](_0x19b042)){_0xbc64bb=!0x1;break;}if(_0xbc64bb)return _0x16d65d;}const _0x3b5846=_0x4e0f2a(),_0x8e31b4=_0x4c8fd6['id'],_0x10aac1='insertion:'+_0x3c8a24,_0x3cd70b=this['_setSuggestionData']({'id':_0x3b5846,'type':_0x10aac1,'createdAt':new Date(),'authorId':_0x8e31b4,'attributes':_0x235683});for(const _0x54bde5 of _0x1aac03)this['_addSuggestionMarker'](_0x10aac1,_0x3b5846,_0x8e31b4,_0x54bde5,u['getMultiRangeId']());return _0x3cd70b;}['markInlineFormat'](_0x3c2aa7,_0x33d2f4,_0x2e4f3a=null,_0x1cea01={}){if(_0x2e4f3a=_0x2e4f3a||Jt(_0x33d2f4),_0x3c2aa7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x24965e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2e4f3a,'accept');return this['forceDefaultExecution'](()=>_0x24965e([_0x3c2aa7],_0x33d2f4,_0x1cea01)),null;}const _0x2d642c=this['editor']['plugins']['get']('Users')['me'],_0x46b524=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5454c7,meta:_0x5ee1e7}of this['_findSuggestions'](_0x3c2aa7,'insertion'))_0x5ee1e7['isOwn']&&!_0x5ee1e7['isInsideObject']&&_0x46b524['push'](..._0x5454c7['getRanges']());}const _0x26bdae=function(_0x182722,_0x3cde5b){const _0x1a24a6=[];for(const _0x475dbf of _0x3cde5b){const _0x444d60=_0x182722['getIntersection'](_0x475dbf);_0x444d60&&_0x1a24a6['push'](_0x444d60);}return _0x1a24a6;}(_0x3c2aa7,_0x46b524),_0x39b855=function(_0x5430a4,_0x1b4ab9){const _0x31fbc6=[_0x5430a4];for(const _0x5b01b8 of _0x1b4ab9){let _0x782b88=0x0;for(;_0x782b88<_0x31fbc6['length'];){const _0x2ab429=_0x31fbc6[_0x782b88]['getDifference'](_0x5b01b8);_0x31fbc6['splice'](_0x782b88,0x1,..._0x2ab429),_0x782b88+=_0x2ab429['length'];}}return _0x31fbc6;}(_0x3c2aa7,_0x46b524);_0x26bdae['length']&&this['_model']['change'](()=>{for(const _0x10a292 of _0x26bdae){const _0x456c75=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2e4f3a,'accept');this['forceDefaultExecution'](()=>_0x456c75([_0x10a292],_0x33d2f4,_0x1cea01));}});for(const _0xf9ecd of _0x39b855){let _0x3fcc89=null,_0x36fe8c=_0xf9ecd['start'],_0x3dde08=_0xf9ecd['end'];for(const {suggestion:_0x983284,meta:_0x2fad70}of this['_findSuggestions'](_0xf9ecd,'formatInline')){if(!_0x2fad70['isOwn'])continue;if(_0x983284['subType']!=_0x2e4f3a)continue;if(!Qt(_0x983284,_0x1cea01))continue;const _0x5a500a=_0x983284['getFirstRange']();if(_0x5a500a['containsRange'](_0xf9ecd,!0x0))return null;_0x36fe8c=_0x36fe8c['isBefore'](_0x5a500a['start'])?_0x36fe8c:_0x5a500a['start'],_0x3dde08=_0x3dde08['isAfter'](_0x5a500a['end'])?_0x3dde08:_0x5a500a['end'],_0x3fcc89?_0x5a500a['start']['isBefore'](_0x3fcc89['getFirstRange']()['start'])?(_0x3fcc89['removeMarkers'](),_0x3fcc89=_0x983284):_0x983284['removeMarkers']():_0x3fcc89=_0x983284;}const _0x14d4b5=this['_model']['createRange'](_0x36fe8c,_0x3dde08);if(_0x3fcc89)this['_setSuggestionRange'](_0x3fcc89,_0x14d4b5);else{const _0xf5c493=_0x4e0f2a(),_0x4661ec=_0x2d642c['id'];this['_setSuggestionData']({'id':_0xf5c493,'type':'formatInline:'+_0x2e4f3a,'data':_0x33d2f4,'createdAt':new Date(),'authorId':_0x4661ec,'attributes':_0x1cea01}),this['_addSuggestionMarker']('formatInline:'+_0x2e4f3a,_0xf5c493,_0x4661ec,_0x14d4b5);}}return null;}['markBlockFormat'](_0x2bd650,_0x5dfc8a,_0x42d06f=[],_0x5c9409=null,_0x467d83={}){_0x5dfc8a['formatGroupId']||(_0x5dfc8a['formatGroupId']=_0x5dfc8a['commandName']),_0x5dfc8a['multipleBlocks']=_0x2bd650['is']('range'),_0x5c9409=_0x5c9409||Jt(_0x5dfc8a);const _0x40cc9d=_0x42d06f['map'](_0x129dec=>zt(_0x129dec,this['_model'])),_0x1870df=_0x2bd650['is']('range')?_0x2bd650:zt(_0x2bd650,this['_model']);if('never'===this['_trackFormatChanges']){const _0xd58c73=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c9409,'accept');return this['forceDefaultExecution'](()=>_0xd58c73([_0x1870df],_0x5dfc8a,_0x467d83)),null;}_0x40cc9d['push'](_0x1870df);let _0x569c29=!0x0;for(const _0x3b7e72 of _0x40cc9d)if(!this['_rangeIsInLocalUserInsertion'](_0x3b7e72)){_0x569c29=!0x1;break;}if(_0x569c29&&'always'!==this['_trackFormatChanges']){const _0x450dfa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c9409,'accept');return this['forceDefaultExecution'](()=>_0x450dfa([_0x1870df],_0x5dfc8a,_0x467d83)),null;}let _0x4fdee4=null,_0x173523=_0x1870df['start'],_0x548468=_0x1870df['end'];for(const {suggestion:_0x433065,meta:_0xe15db4}of this['_findSuggestions'](_0x1870df,'formatBlock')){if(!_0xe15db4['isOwn'])continue;if(_0xe15db4['isNextTo']||_0xe15db4['containsRangeInObject']||_0xe15db4['isInsideObject'])continue;if(_0x433065['data']['formatGroupId']!=_0x5dfc8a['formatGroupId'])continue;if(!Qt(_0x433065,_0x467d83))continue;const _0x503137=_0x433065['getFirstRange']();if(_0x433065['subType']==_0x5c9409){if(_0x503137['containsRange'](_0x1870df,!0x0))return null;_0x173523=_0x173523['isBefore'](_0x503137['start'])?_0x173523:_0x503137['start'],_0x548468=_0x548468['isAfter'](_0x503137['end'])?_0x548468:_0x503137['end'],_0x4fdee4?_0x503137['start']['isBefore'](_0x4fdee4['getFirstRange']()['start'])?(_0x4fdee4['removeMarkers'](),_0x4fdee4=_0x433065):_0x433065['removeMarkers']():_0x4fdee4=_0x433065;}else{const _0x32c917=_0x1870df['getIntersection'](_0x503137);this['_cutOutSuggestionMarker'](_0x433065,_0x32c917);}}const _0x3b81d6=this['editor']['plugins']['get']('Users')['me'],_0x48d202=_0x4e0f2a(),_0xc83233=_0x3b81d6['id'];if(_0x4fdee4)return this['_setSuggestionRange'](_0x4fdee4,this['_model']['createRange'](_0x173523,_0x548468)),_0x4fdee4;{const _0xc4606d=this['_setSuggestionData']({'id':_0x48d202,'type':'formatBlock:'+_0x5c9409,'data':_0x5dfc8a,'createdAt':new Date(),'authorId':_0xc83233,'attributes':_0x467d83});return this['_addSuggestionMarker']('formatBlock:'+_0x5c9409,_0x48d202,_0xc83233,this['_model']['createRange'](_0x173523,_0x548468)),_0xc4606d;}}['markMultiRangeBlockFormat'](_0x430dcf,_0x53b547,_0x3e30e8=[],_0x434550=null,_0x278e44={}){_0x53b547['formatGroupId']||(_0x53b547['formatGroupId']=_0x53b547['commandName']);const _0xdea4ec=_0x430dcf[0x0];_0x53b547['multipleBlocks']=_0xdea4ec['is']('range'),_0x434550=_0x434550||Jt(_0x53b547);const _0x315c32=_0x3e30e8['map'](_0x2928bb=>zt(_0x2928bb,this['_model'])),_0x34eb70=_0xdea4ec['is']('range')?_0x430dcf:_0x430dcf['map'](_0x37041d=>zt(_0x37041d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x829e00=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x434550,'accept');return this['forceDefaultExecution'](()=>_0x829e00(_0x34eb70,_0x53b547,_0x278e44)),null;}_0x315c32['push'](..._0x34eb70);let _0x5b5adf=!0x0;for(const _0x43147c of _0x315c32)if(!this['_rangeIsInLocalUserInsertion'](_0x43147c)){_0x5b5adf=!0x1;break;}if(_0x5b5adf&&'always'!==this['_trackFormatChanges']){const _0x3d7029=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x434550,'accept');return this['forceDefaultExecution'](()=>_0x3d7029(_0x34eb70,_0x53b547,_0x278e44)),null;}const _0x240c08=this['editor']['plugins']['get']('Users')['me'];for(const _0x490c89 of this['getSuggestions']()){if(_0x490c89['author']['id']!=_0x240c08['id'])continue;if('formatBlock'!=_0x490c89['type']||_0x490c89['data']['formatGroupId']!=_0x53b547['formatGroupId'])continue;if(!Qt(_0x490c89,_0x278e44))continue;const _0x3d3aa5=_0x490c89['subType']==_0x434550;for(let _0x57fe4d=0x0;_0x57fe4d<_0x34eb70['length'];_0x57fe4d++){const _0x399280=_0x34eb70[_0x57fe4d];for(const _0x35cf99 of _0x490c89['getMarkers']()){const _0x83f80=_0x35cf99['getRange']();if(_0x399280['isEqual'](_0x83f80)){_0x3d3aa5?(_0x34eb70['splice'](_0x57fe4d,0x1),_0x57fe4d--):_0x490c89['removeMarker'](_0x35cf99['name']);break;}}}}if(0x0==_0x34eb70['length'])return null;const _0x3f4719=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x434550,'join');for(const _0x5d6934 of this['getSuggestions']())if(_0x5d6934['author']['id']==_0x240c08['id']&&'formatBlock'==_0x5d6934['type']&&_0x5d6934['data']['formatGroupId']==_0x53b547['formatGroupId']&&_0x5d6934['subType']==_0x434550&&Qt(_0x5d6934,_0x278e44)&&(_0x3f4719(_0x5d6934['getRanges'](),_0x34eb70)||_0x3f4719(_0x34eb70,_0x5d6934['getRanges']()))){for(const _0x59241a of _0x34eb70)_0x5d6934['addRange'](_0x59241a);return _0x5d6934;}const _0xe28052=_0x4e0f2a(),_0x6bc7a3=_0x240c08['id'],_0x5876ad='formatBlock:'+_0x434550,_0x1ee38e=this['_setSuggestionData']({'id':_0xe28052,'type':_0x5876ad,'data':_0x53b547,'createdAt':new Date(),'authorId':_0x6bc7a3,'attributes':_0x278e44});for(const _0x5601a1 of _0x34eb70)this['_addSuggestionMarker'](_0x5876ad,_0xe28052,_0x6bc7a3,_0x5601a1,u['getMultiRangeId']());return _0x1ee38e;}['markDeletion'](_0x3b67f3,_0x4297f7=null,_0x41bfc6={}){if(_0x3b67f3['isCollapsed'])return null;const _0x1d19fb=this['editor']['plugins']['get']('Users')['me'],_0x58e4b0=new _0x158b09(_0x3b67f3['start'],_0x3b67f3['end']);for(const {suggestion:_0x31ef83,meta:_0x4a5848}of this['_findSuggestions'](_0x58e4b0,'insertion'))if(_0x4a5848['isOwn']&&!_0x4a5848['isNextTo']){if(_0x31ef83['isMultiRange']){const _0x5f07f3=_0x31ef83['getRanges']()['filter'](_0x29ed22=>'$graveyard'!=_0x29ed22['root']['rootName']);_0x5f07f3['every'](_0x5dd5a1=>_0x58e4b0['containsRange'](_0x5dd5a1,!0x0))&&_0x31ef83['discard']();if(_0x5f07f3['some'](_0x56e4c0=>_0x56e4c0['containsRange'](_0x58e4b0,!0x0))){const _0x5c1680=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4297f7,'accept');return this['forceDefaultExecution'](()=>_0x5c1680([_0x58e4b0],null,_0x41bfc6)),null;}}else{const _0x1ac5b9=_0x58e4b0['getIntersection'](_0x31ef83['getFirstRange']());null!==_0x1ac5b9&&_0x31ef83['_onDiscard']([_0x1ac5b9],null,_0x41bfc6);}}if(_0x58e4b0['detach'](),_0x58e4b0['isCollapsed']||'$graveyard'==_0x58e4b0['root']['rootName'])return null;let _0x574bed=null,_0x939b15=_0x58e4b0['start'],_0x53ab9c=_0x58e4b0['end'];const _0x48411f=this['_findSuggestions'](_0x58e4b0,'deletion');for(const {suggestion:_0x4f3f10,meta:_0x4e9eef}of _0x48411f){const _0xe138bd=this['_model']['createRange'](_0x939b15,_0x53ab9c);if(_0x4e9eef['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4e9eef['containsRangeInObject']&&!_0x4e9eef['isInsideObject'])){if(_0x4f3f10['isMultiRange']){if(!Qt(_0x4f3f10,_0x41bfc6))continue;let _0x3c6da7=!0x0;for(const _0x141f5b of _0x4f3f10['getRanges']()){if(_0x141f5b['containsRange'](_0xe138bd,!0x0))return _0x4f3f10;_0xe138bd['containsRange'](_0x141f5b)||(_0x3c6da7=!0x1);}_0x3c6da7&&_0x4f3f10['discard']();}else{const _0x33ad1b=_0x4f3f10['getFirstRange']();if(_0x33ad1b['containsRange'](_0xe138bd,!0x0))return _0x4f3f10;if(!Qt(_0x4f3f10,_0x41bfc6)){_0xe138bd['containsRange'](_0x33ad1b)?_0x4f3f10['removeMarkers']():_0x33ad1b['containsPosition'](_0x939b15)?_0x939b15=_0x33ad1b['end']:_0x33ad1b['containsPosition'](_0x53ab9c)&&(_0x53ab9c=_0x33ad1b['start']);continue;}_0x939b15=_0x939b15['isBefore'](_0x33ad1b['start'])?_0x939b15:_0x33ad1b['start'],_0x53ab9c=_0x53ab9c['isAfter'](_0x33ad1b['end'])?_0x53ab9c:_0x33ad1b['end'],_0x41bfc6=Object['assign']({},_0x4f3f10['attributes']),_0x574bed?_0x33ad1b['start']['isBefore'](_0x574bed['getFirstRange']()['start'])?(_0x574bed['removeMarkers'](),_0x574bed=_0x4f3f10):_0x4f3f10['removeMarkers']():_0x574bed=_0x4f3f10;}}}if(_0x574bed)return this['_setSuggestionRange'](_0x574bed,this['_model']['createRange'](_0x939b15,_0x53ab9c)),_0x574bed;{const _0x4709bc=_0x4e0f2a(),_0x21cd59=this['_model']['createRange'](_0x939b15,_0x53ab9c),_0x262eff=_0x1d19fb['id'],_0x2e0b3d=_0x4297f7?'deletion:'+_0x4297f7:'deletion',_0x212ab8=this['_setSuggestionData']({'id':_0x4709bc,'type':_0x2e0b3d,'createdAt':new Date(),'authorId':_0x262eff,'attributes':_0x41bfc6});return this['_addSuggestionMarker'](_0x2e0b3d,_0x4709bc,_0x262eff,_0x21cd59),_0x212ab8;}}['markMultiRangeDeletion'](_0x101d99,_0x30faf5='multi',_0x1c9861={}){const _0x1969c2=this['editor']['plugins']['get']('Users')['me'],_0x10b52=_0x101d99['map'](_0x2a81cc=>new _0x158b09(_0x2a81cc['start'],_0x2a81cc['end'])),_0x59b6e9=new Set();for(const {suggestion:_0x4e90b2,meta:_0x3ded54}of this['_findSuggestions'](_0x10b52,'insertion'))_0x3ded54['isOwn']&&!_0x3ded54['isNextTo']&&_0x59b6e9['add'](_0x4e90b2);for(const _0x473a5e of _0x59b6e9)if(_0x473a5e['isMultiRange']){const _0x4708b1=_0x473a5e['getRanges']();(!_0x473a5e['attributes']||!_0x473a5e['attributes']['skipNestingCheck'])&&(_0x4708b1['every'](_0x1810fc=>_0x10b52['some'](_0x4246b7=>_0x4246b7['containsRange'](_0x1810fc,!0x0)))&&_0x473a5e['discard']());if(_0x10b52['every'](_0xea80e2=>_0x4708b1['some'](_0x2fb7c6=>_0x2fb7c6['containsRange'](_0xea80e2,!0x0)))){const _0x1ca9d8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30faf5,'accept');return this['forceDefaultExecution'](()=>_0x1ca9d8(_0x101d99,null,_0x1c9861)),null;}}else{const _0x3889cf=_0x473a5e['getFirstRange']();_0x10b52['some'](_0x482f45=>_0x482f45['containsRange'](_0x3889cf,!0x0))&&_0x473a5e['discard']();if(_0x10b52['every'](_0x2fe901=>_0x3889cf['containsRange'](_0x2fe901,!0x0))){const _0x1e37d0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30faf5,'accept');return this['forceDefaultExecution'](()=>_0x1e37d0(_0x10b52,null,_0x1c9861)),null;}}const _0x19dac3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30faf5,'join');let _0x35f8f8=null;for(const _0x5126a5 of this['getSuggestions']())if(_0x5126a5['author']['id']==_0x1969c2['id']&&_0x5126a5['isInContent']&&'deletion'==_0x5126a5['type']&&_0x5126a5['subType']==_0x30faf5&&Qt(_0x5126a5,_0x1c9861)&&(_0x19dac3(_0x5126a5['getRanges'](),_0x10b52)||_0x19dac3(_0x10b52,_0x5126a5['getRanges']()))){if(_0x35f8f8){if(_0x5126a5['commentThread']&&_0x5126a5['commentThread']['length'])continue;for(const _0x11b28a of _0x5126a5['getRanges']())_0x35f8f8['isIntersectingWithRange'](_0x11b28a)||_0x35f8f8['addRange'](_0x11b28a);_0x5126a5['removeMarkers']();}else{_0x35f8f8=_0x5126a5;for(const _0x4a102f of _0x10b52)_0x5126a5['isIntersectingWithRange'](_0x4a102f)||_0x5126a5['addRange'](_0x4a102f);}}if(_0x35f8f8)return _0x35f8f8;_0x59b6e9['clear']();for(const {suggestion:_0x5a75f1,meta:_0x1989e9}of this['_findSuggestions'](_0x10b52,'deletion'))_0x1989e9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1989e9['containsRangeInObject']&&!_0x1989e9['isInsideObject'])&&Qt(_0x5a75f1,_0x1c9861)&&_0x59b6e9['add'](_0x5a75f1);for(const _0x2bedee of _0x59b6e9){const _0x1ae15c=_0x2bedee['getRanges']();if(!_0x1c9861||!_0x1c9861['skipNestingCheck']){if(_0x10b52['every'](_0x2baa49=>_0x1ae15c['some'](_0x57908a=>_0x57908a['containsRange'](_0x2baa49,!0x0))))return _0x2bedee;}(!_0x2bedee['attributes']||!_0x2bedee['attributes']['skipNestingCheck'])&&(_0x1ae15c['every'](_0x54bf32=>_0x10b52['some'](_0x390492=>_0x390492['containsRange'](_0x54bf32,!0x0)))&&_0x2bedee['discard']());}const _0x2b27db=_0x4e0f2a(),_0x35bfe8=_0x1969c2['id'],_0x433b0b='deletion:'+_0x30faf5,_0x565d28=this['_setSuggestionData']({'id':_0x2b27db,'type':_0x433b0b,'createdAt':new Date(),'authorId':_0x35bfe8,'attributes':_0x1c9861});for(const _0x52b4fb of _0x10b52)_0x52b4fb['detach'](),_0x52b4fb['isCollapsed']||'$graveyard'==_0x52b4fb['root']['rootName']||this['_addSuggestionMarker'](_0x433b0b,_0x2b27db,_0x35bfe8,_0x52b4fb,u['getMultiRangeId']());return _0x565d28;}['markAttributeChange'](_0x8d1531,_0x358256,_0x4ffb78,_0x3c4cfd,_0x5b7064){if(_0x8d1531['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x297117=this['editor']['plugins']['get']('Users')['me']['id'],_0x330565=Array['from'](this['_suggestions']['values']())['filter'](_0x235c01=>'attribute'==_0x235c01['type']&&_0x235c01['data']['key']==_0x358256&&_0x235c01['isIntersectingWithRange'](_0x8d1531));if('default'===this['_trackFormatChanges']){const _0x39e254=this['_findSuggestions'](_0x8d1531,'insertion')['filter'](({meta:_0x2b5e76})=>_0x2b5e76['isOwn']&&!_0x2b5e76['isInsideObject']&&!_0x2b5e76['isNextTo'])['map'](({suggestion:_0x3176af})=>_0x3176af);_0x330565['unshift'](..._0x39e254);}const _0x5e9882=new Map([[_0x8d1531,_0x4ffb78]]);for(const _0x242eac of _0x330565){const _0x819b78='attribute'==_0x242eac['type']?_0x242eac['data']['oldValue']:void 0x0,_0x24e396=_0x242eac['getFirstRange'](),_0x119f0f=Array['from'](_0x5e9882['keys']())['find'](_0xcda61a=>_0xcda61a['isIntersecting'](_0x24e396));if(!_0x119f0f)continue;const _0x66e3a9=_0x119f0f['getDifference'](_0x24e396);this['_isBlockAttribute'](_0x358256)&&'insertion'==_0x242eac['type']&&0x0!=_0x66e3a9['length']||(_0x5e9882['delete'](_0x119f0f),_0x66e3a9['forEach'](_0x595dbb=>{_0x5e9882['set'](_0x595dbb,_0x4ffb78);}),'insertion'!=_0x242eac['type']&&_0x819b78!=_0x3c4cfd&&_0x5e9882['set'](_0x119f0f['getIntersection'](_0x24e396),_0x819b78));}const _0x2e6a06=[];for(const [_0x628cef,_0x3369d0]of _0x5e9882){const _0x548d84=_0x4e0f2a(),_0x46b7bc={'key':_0x358256,'oldValue':_0x3369d0,'newValue':_0x3c4cfd};_0x358256['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':_0x358256});const _0x1c64b6=('attribute:'+(_0x358256+'|'+Jt({'newValue':_0x3c4cfd})))['substring'](0x0,0x3c),_0x1cf691=this['_setSuggestionData']({'id':_0x548d84,'type':_0x1c64b6,'data':_0x46b7bc,'createdAt':new Date(),'authorId':_0x297117,'attributes':_0x5b7064});_0x2e6a06['push'](_0x1cf691),this['_addSuggestionMarker'](_0x1c64b6,_0x548d84,_0x297117,_0x628cef);}return _0x2e6a06;}['enableDefaultAttributesIntegration'](_0x5845b8){this['enableCommand'](_0x5845b8,(_0x19310c,..._0xcc23f0)=>{this['_recordAttributeChanges'](()=>{_0x19310c(..._0xcc23f0);});});}['registerBlockAttribute'](_0x5f096f){this['_blockAttributeKeys']['add'](_0x5f096f);}['registerInlineAttribute'](_0x327c67){this['_inlineAttributeKeys']['add'](_0x327c67);}['_getAttributeKey'](_0x4f768c){return'attribute'==_0x4f768c['type']?_0x4f768c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4c6291,_0x43912d){const _0x61bbf3=_0x4c6291['getFirstMarker']();this['_model']['change'](_0x309e0b=>{_0x309e0b['updateMarker'](_0x61bbf3,{'range':_0x43912d});});}['_addThreadToSuggestion'](_0x49f6a1){const _0x4d4e78=_0x49f6a1['id'],_0x3fdb93=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4d4e78)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3fdb93,'threadId':_0x4d4e78,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5e6751=this['_commentsRepository']['getCommentThread'](_0x4d4e78);_0x5e6751['unbind']('isRemovable'),_0x5e6751['isRemovable']=!0x1,_0x49f6a1['commentThread']=_0x5e6751;}['_checkSuggestionCorrectness'](_0x521a15,_0x943dea,_0x374918,_0x86a1ba){if(_0x521a15['type']!=_0x943dea||_0x521a15['subType']!=_0x374918||_0x521a15['creator']['id']!=_0x86a1ba)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x38b09e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x37a343,_0x22d07a){const _0x3fe3bb=_0x37a343['getFirstRange']();if(_0x22d07a['isEqual'](_0x3fe3bb))_0x37a343['removeMarkers']();else{if(_0x3fe3bb['containsRange'](_0x22d07a)){const _0x599f64=this['_model']['createPositionAt'](_0x22d07a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x37a343,this['_model']['createRange'](_0x3fe3bb['start'],_0x599f64));const _0x2185f4=_0x4e0f2a(),_0x3a1950=_0x37a343['creator']['id'],_0x4bda7b=_0x37a343['type']+':'+_0x37a343['subType'];this['_setSuggestionData']({'id':_0x2185f4,'type':_0x4bda7b,'createdAt':new Date(),'authorId':_0x3a1950,'data':_0x37a343['data'],'attributes':_0x37a343['attributes']});const _0x198c2d=this['_model']['createPositionAt'](_0x22d07a['end']['parent'],'after'),_0x2976a1=this['_model']['createRange'](_0x198c2d,_0x3fe3bb['end']);this['_addSuggestionMarker'](_0x4bda7b,_0x2185f4,_0x3a1950,_0x2976a1);}else{if(_0x3fe3bb['containsPosition'](_0x22d07a['start'])){const _0x393af6=this['_model']['createPositionAt'](_0x22d07a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x37a343,this['_model']['createRange'](_0x3fe3bb['start'],_0x393af6));}else{const _0x402ca3=this['_model']['createPositionAt'](_0x22d07a['end']['parent'],'after');this['_setSuggestionRange'](_0x37a343,this['_model']['createRange'](_0x402ca3,_0x3fe3bb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5c92c1){for(const {suggestion:_0x1db236,meta:_0x74760}of this['_findSuggestions'](_0x5c92c1,'insertion')){if(!_0x74760['isOwn'])continue;const _0x3d9d10=_0x1db236['getRanges']();for(const _0xf71e21 of _0x3d9d10)if(!_0x5c92c1['getDifference'](_0xf71e21)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x24d73b){const _0x2030ee=this['editor']['plugins']['get']('Users')['getUser'](_0x24d73b);if(!_0x2030ee)throw new _0x38b09e('track-changes-user-not-found',this);return _0x2030ee;}['_getExternalAuthor'](_0x42bd74){const _0x3bcb49=this['editor']['plugins']['get']('Users'),_0x4c37ea=_0x2a2b83('external:'+_0x42bd74),_0x3b6f11=_0x3bcb49['getUser'](_0x4c37ea);return _0x3b6f11||_0x3bcb49['addUser']({'id':_0x4c37ea,'name':_0x42bd74});}['_createSuggestion'](_0x2b5dd8,_0x1ad6a2,_0x8ac1ff,_0x110699,_0x571262){const _0x320bca=this['_getAuthorFromId'](_0x110699),_0x3b6092=this['_suggestionFactory']['buildSuggestion'](_0x2b5dd8,_0x1ad6a2,_0x8ac1ff,_0x320bca,_0x571262,_0x58e397=>{this['_updateSuggestionData'](_0x8ac1ff,{'attributes':_0x58e397});const _0x5c87e4=this['getSuggestion'](_0x8ac1ff);this['_joinWithAdjacentSuggestions'](new Set([_0x5c87e4])),this['_refreshSuggestionsChain'](new Set([_0x5c87e4]));});return this['listenTo'](_0x3b6092,'accept',()=>{this['_updateSuggestionData'](_0x8ac1ff,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3b6092,'discard',()=>{this['_updateSuggestionData'](_0x8ac1ff,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x8ac1ff,_0x3b6092),this['_suggestionState']['set'](_0x3b6092,'notReady'),_0x3b6092;}['_splitMarkerName'](_0x1215b5){const _0x1007dc=_0x1215b5['split'](':');return{'group':_0x1007dc[0x0],'type':_0x1007dc[0x1],'subType':_0x1007dc['length']>=0x5?_0x1007dc[0x2]:null,'id':_0x1007dc['length']<0x5?_0x1007dc[0x2]:_0x1007dc[0x3],'authorId':_0x1007dc['length']<0x5?_0x1007dc[0x3]:_0x1007dc[0x4],'markerCount':0x6==_0x1007dc['length']?_0x1007dc[0x5]:null};}['_breakSuggestionMarker'](_0x48cd5a,_0x37eff7,_0x212091){const _0x4e3426=_0x48cd5a['getFirstRange'](),_0x3dd9a8=_0x4e3426['start'],_0x1a8293=_0x4e3426['end'];this['_setSuggestionRange'](_0x48cd5a,this['_model']['createRange'](_0x3dd9a8,_0x37eff7));const _0x897e55=_0x4e0f2a(),_0x6aa9bb=_0x48cd5a['creator']['id'],_0xc92f6=_0x48cd5a['type']+(_0x48cd5a['subType']?':'+_0x48cd5a['subType']:'');this['_setSuggestionData']({'id':_0x897e55,'type':_0xc92f6,'createdAt':new Date(),'authorId':_0x6aa9bb,'originalSuggestionId':_0x48cd5a['id'],'attributes':_0x48cd5a['attributes'],'data':_0x48cd5a['data']});const _0x1e679c=this['_getAttributeKey'](_0x48cd5a);('formatBlock'==_0x48cd5a['type']||_0x1e679c&&this['_isBlockAttribute'](_0x1e679c))&&(_0x212091=this['_model']['createPositionBefore'](_0x212091['parent'])),this['_addSuggestionMarker'](_0xc92f6,_0x897e55,_0x6aa9bb,this['_model']['createRange'](_0x212091,_0x1a8293));}['_findSuggestions'](_0x2be089,_0x1b87a8=null){const _0x44749d=[],_0xb1e6c0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2be089)||(_0x2be089=[_0x2be089]);for(const _0x241996 of this['getSuggestions']()){if(!_0x241996['isInContent'])continue;if(_0x1b87a8&&_0x241996['type']!=_0x1b87a8)continue;let _0x485ca7=!0x1;for(const _0x23562c of _0x241996['getRanges']()){for(const _0x2bdaaa of _0x2be089){const _0x39c120=_0x2bdaaa['start']['isEqual'](_0x23562c['end'])||_0x2bdaaa['end']['isEqual'](_0x23562c['start']);if(_0x39c120||_0x2bdaaa['getIntersection'](_0x23562c)){const _0x2220bb=_0x2bdaaa['containsRange'](_0x23562c)&&Gt(this['_model']['schema'],_0x23562c['start'],_0x2bdaaa),_0x3f4894=_0x23562c['containsRange'](_0x2bdaaa)&&Gt(this['_model']['schema'],_0x2bdaaa['start'],_0x23562c);_0x44749d['push']({'suggestion':_0x241996,'meta':{'isOwn':_0xb1e6c0==_0x241996['author'],'isNextTo':_0x39c120,'isInsideObject':_0x2220bb,'containsRangeInObject':_0x3f4894}}),_0x485ca7=!0x0;break;}}if(_0x485ca7)break;}}return _0x44749d;}['_addSuggestionMarker'](_0x59cd11,_0x9c5261,_0x48cc4d,_0x4fffbd,_0x5af04a){this['_model']['change'](_0x5255d2=>{let _0x5ea838='suggestion:'+_0x59cd11+':'+_0x9c5261+':'+_0x48cc4d;_0x5af04a&&(_0x5ea838=_0x5ea838+':'+_0x5af04a),_0x5255d2['addMarker'](_0x5ea838,{'range':_0x4fffbd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x46c770){const _0x1b6f5c=_0x46c770['previous'],_0x4f9aaa=_0x46c770['next'];_0x46c770['previous']=null,_0x46c770['next']=null,null!=_0x1b6f5c&&_0x1b6f5c['next']==_0x46c770&&(_0x1b6f5c['next']=_0x4f9aaa),null!=_0x4f9aaa&&_0x4f9aaa['previous']==_0x46c770&&(_0x4f9aaa['previous']=_0x1b6f5c),'ready'==this['_suggestionState']['get'](_0x46c770)&&(this['_suggestionState']['set'](_0x46c770,'removed'),this['fire']('suggestionUnloaded',_0x46c770,_0x1b6f5c,_0x4f9aaa));}['_setSuggestionData'](_0x1a4fbe){const _0x34ec20=_0x1a4fbe['id'],_0x3f2bf3=this['addSuggestionData'](_0x1a4fbe);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x16aa46=this['editor']['plugins']['get']('PendingActions'),_0x1f05f0=_0x3f2bf3['hasComments'],_0x1c9949=_0x3f2bf3['subType']?_0x3f2bf3['type']+':'+_0x3f2bf3['subType']:_0x3f2bf3['type'],_0x2ea1be=this['editor']['locale'],_0x2beff5=_0x16aa46['add'](o(_0x2ea1be,'PENDING_ACTION_SUGGESTION')),_0x4c3888={'id':_0x34ec20,'type':_0x1c9949,'hasComments':_0x1f05f0,'data':_0x1a4fbe['data']||null,'originalSuggestionId':_0x1a4fbe['originalSuggestionId']||null,'attributes':_0x3f2bf3['attributes']};this['_adapter']['addSuggestion'](_0x4c3888)['then'](_0x34bc65=>{_0x3f2bf3['_saved']=!0x0,_0x16aa46['remove'](_0x2beff5),_0x34bc65&&_0x34bc65['createdAt']&&(this['_suggestions']['get'](_0x34ec20)['createdAt']=_0x34bc65['createdAt']);})['catch'](_0x51fc6e=>{throw _0x11eb24('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3f2bf3['discard']();}),_0x3f2bf3['stopListening'](),this['_suggestions']['delete'](_0x3f2bf3['id']),this['_suggestionState']['delete'](_0x3f2bf3),_0x51fc6e;});}return _0x3f2bf3;}['_isBlockAttribute'](_0x300de4){return this['_blockAttributeKeys']['has'](_0x300de4);}['_updateSuggestionData'](_0x465112,_0x7a3303){const _0x13c4b9=this['editor']['plugins']['get']('PendingActions'),_0x319971=this['getSuggestion'](_0x465112);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x319971['_saved']){const _0xb9ca65=_0x13c4b9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x465112,_0x7a3303)['then'](()=>{_0x13c4b9['remove'](_0xb9ca65);});}else _0x319971['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x465112,_0x7a3303);});}}['_getSuggestionData'](_0x565d9f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x38b09e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x565d9f);}['_handleNewSuggestionMarker'](_0x4339fa){const {id:_0xc11072,type:_0x442da5,subType:_0x486bde,authorId:_0x129db7}=this['_splitMarkerName'](_0x4339fa),_0x543762=this['_suggestions']['get'](_0xc11072)||this['_createSuggestion'](_0x442da5,_0x486bde,_0xc11072,_0x129db7,{});switch(this['_checkSuggestionCorrectness'](_0x543762,_0x442da5,_0x486bde,_0x129db7),this['_suggestionState']['get'](_0x543762)){case'notReady':this['_getSuggestionData'](_0xc11072)['then'](_0x6ad1ad=>{let _0x17781f=Promise['resolve']();_0x6ad1ad['hasComments']&&(_0x17781f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc11072})),_0x17781f['then'](()=>{this['addSuggestionData'](_0x6ad1ad)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x543762,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc11072,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x543762,'ready'),this['fire']('suggestionLoaded',_0x543762);break;case'ready':this['fire']('suggestionChanged',_0x543762);}return _0x543762['addMarkerName'](_0x4339fa),_0x543762;}['_refreshSuggestionsChain'](_0x53a171){const _0x4ff5b5=Array['from'](_0x53a171),_0x6211b6=_0x4ff5b5['filter'](_0x34fe83=>'attribute'==_0x34fe83['type']);this['_refreshAttributeSuggestionsChain'](_0x6211b6);const _0x2c1184=_0x4ff5b5['filter'](_0x21e1ed=>!_0x21e1ed['isMultiRange']&&'attribute'!=_0x21e1ed['type']),_0x2db201=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xaaea32=>!_0xaaea32['isMultiRange']&&'attribute'!=_0xaaea32['type']),_0x244664=_0x2db201['filter'](_0x334f10=>!_0x53a171['has'](_0x334f10)),_0xa2a544=new Map(_0x2db201['map'](_0x44b6c7=>[_0x44b6c7,this['_suggestionFactory']['getSuggestionCallback'](_0x44b6c7['type'],_0x44b6c7['subType'],'chain')])),_0x54574e=new Map(_0x2db201['map'](_0x212ed9=>[_0x212ed9,_0x212ed9['getFirstRange']()])),_0x30305f=new Set(),_0x5718ef=new Set();for(let _0x1fa42f=0x0;_0x1fa42f<_0x2c1184['length'];_0x1fa42f++)_0x2d1e7e(_0x2c1184[_0x1fa42f],_0x2c1184,_0x1fa42f+0x1);for(let _0x58ce70=0x0;_0x58ce70<_0x2c1184['length'];_0x58ce70++)_0x2d1e7e(_0x2c1184[_0x58ce70],_0x244664,0x0);const _0x3f404f=new Set();for(let _0x150a83=0x0;_0x150a83<_0x2c1184['length'];_0x150a83++){const _0x4450b6=_0x2c1184[_0x150a83];!_0x5718ef['has'](_0x4450b6)&&_0x4450b6['previous']&&(_0x3f404f['add'](_0x4450b6['previous']),_0x4450b6['previous']['next']===_0x4450b6&&(_0x4450b6['previous']['next']=null),_0x4450b6['previous']=null),!_0x30305f['has'](_0x4450b6)&&_0x4450b6['next']&&(_0x3f404f['add'](_0x4450b6['next']),_0x4450b6['next']['previous']===_0x4450b6&&(_0x4450b6['next']['previous']=null),_0x4450b6['next']=null);}function _0x2d1e7e(_0xe26458,_0x1a5e66,_0x3ad2b9){for(let _0x31ebc6=_0x3ad2b9;_0x31ebc6<_0x1a5e66['length'];_0x31ebc6++){const _0x3833b2=_0x2e01d8(_0xe26458,_0x1a5e66[_0x31ebc6]);_0x3833b2&&(_0x3833b2[0x0]['next']=_0x3833b2[0x1],_0x3833b2[0x1]['previous']=_0x3833b2[0x0],_0x30305f['add'](_0x3833b2[0x0]),_0x5718ef['add'](_0x3833b2[0x1]));}}function _0x2e01d8(_0x1108e9,_0x18005a){if(_0x1108e9['author']['id']!==_0x18005a['author']['id'])return null;const _0x325afe=_0xa2a544['get'](_0x1108e9)(_0x1108e9,_0x18005a,_0x54574e['get'](_0x1108e9),_0x54574e['get'](_0x18005a));if(!_0x325afe)return null;return _0xa2a544['get'](_0x18005a)(_0x1108e9,_0x18005a,_0x54574e['get'](_0x1108e9),_0x54574e['get'](_0x18005a))?_0x325afe[0x1]['commentThread']&&_0x325afe[0x1]['commentThread']['length']?null:_0x325afe:null;}_0x3f404f['size']&&this['_refreshSuggestionsChain'](_0x3f404f);}['_refreshAttributeSuggestionsChain'](_0x40f3fc){if(0x0==_0x40f3fc['length'])return;const _0x24979d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18bd17=>'attribute'==_0x18bd17['type']&&_0x18bd17['_isDataLoaded']),_0x3c42ec=[],_0x4b1485=new Map();for(const _0x1910d3 of _0x24979d){const _0xdd4eca=_0x2a2b83(_0x1910d3['attributes']);_0x4b1485['has'](_0xdd4eca)||(_0x4b1485['set'](_0xdd4eca,_0x3c42ec['length']),_0x3c42ec['push']([]));const _0x13b1e2=_0x4b1485['get'](_0xdd4eca);_0x3c42ec[_0x13b1e2]['push'](_0x1910d3);}!(function(){_0x3c42ec['sort']((_0x23c888,_0x44c9bf)=>{const _0xc14c98=_0x23c888[0x0]['createdAt'],_0x3cf35f=_0x44c9bf[0x0]['createdAt'];return _0xc14c98==_0x3cf35f?_0x23c888[0x0]['attributes']['groupId']<_0x44c9bf[0x0]['attributes']['groupId']?-0x1:0x1:_0xc14c98<_0x3cf35f?-0x1:0x1;});for(const _0x2beaab of _0x3c42ec)_0x2beaab['sort']((_0x130729,_0xa73312)=>_0x130729['id']<_0xa73312['id']?-0x1:0x1);}());for(let _0x389879=0x0;_0x389879<_0x3c42ec['length'];_0x389879++){if(0x0==_0x3c42ec[_0x389879]['length'])continue;const _0x520d2f=[];for(let _0x38fdca=_0x389879+0x1;_0x38fdca<_0x3c42ec['length'];_0x38fdca++)0x0!=_0x3c42ec[_0x38fdca]['length']&&_0xbcf968(_0x3c42ec[_0x389879],_0x3c42ec[_0x38fdca])&&_0x520d2f['push'](_0x38fdca);for(const _0x533e2a of _0x520d2f)_0x3c42ec[_0x389879]=_0x3c42ec[_0x389879]['concat'](_0x3c42ec[_0x533e2a]),_0x3c42ec[_0x533e2a]=[];}for(const _0x5bf272 of _0x3c42ec)for(let _0x335272=0x0;_0x335272<_0x5bf272['length'];_0x335272++){const _0x12e46e=_0x5bf272[_0x335272+0x1]||null;_0x5bf272[_0x335272]['next']!==_0x12e46e&&(_0x5bf272[_0x335272]['next']=_0x12e46e);}for(const _0x53f3bb of _0x3c42ec)for(let _0x242356=0x0;_0x242356<_0x53f3bb['length'];_0x242356++){const _0x554cd8=_0x53f3bb[_0x242356-0x1]||null;_0x53f3bb[_0x242356]['previous']!==_0x554cd8&&(_0x53f3bb[_0x242356]['previous']=_0x554cd8);}function _0xbcf968(_0x5e6bba,_0x1be2a9){if(_0x5e6bba[0x0]['attributes']['groupId']!==_0x1be2a9[0x0]['attributes']['groupId']&&_0x5e6bba[0x0]['author']!==_0x1be2a9[0x0]['author'])return!0x1;if(!function(_0x32c44c,_0x4d503a){if(!_0x32c44c['hasComments']&&!_0x4d503a['hasComments'])return!0x0;if(_0x32c44c['hasComments']&&_0x4d503a['hasComments'])return!0x1;if(_0x32c44c['hasComments']&&_0x4d503a['createdAt']<_0x32c44c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4d503a['hasComments']&&_0x32c44c['createdAt']<_0x4d503a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5e6bba[0x0],_0x1be2a9[0x0]))return!0x1;const _0x865968=Vt(_0x5e6bba[0x0]['attributes'],'groupId'),_0x3f1604=Vt(_0x1be2a9[0x0]['attributes'],'groupId');if(!_0x3a9f79(_0x865968,_0x3f1604))return!0x1;return!!_0x5e6bba['every'](_0x1a4390=>_0x1be2a9['some'](_0x2c0852=>_0x1a4390['getFirstRange']()['isEqual'](_0x2c0852['getFirstRange']())))&&_0x1be2a9['every'](_0x4dee0e=>_0x5e6bba['some'](_0x40205a=>_0x4dee0e['getFirstRange']()['isEqual'](_0x40205a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x32572c){const _0xe25224=Array['from'](_0x32572c),_0x18822f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x41f5a1=_0x18822f['filter'](_0x2925d1=>!_0x32572c['has'](_0x2925d1)),_0x3c3926=new Map(_0xe25224['map'](_0x57e09f=>[_0x57e09f,this['_suggestionFactory']['getSuggestionCallback'](_0x57e09f['type'],_0x57e09f['subType'],'join')])),_0x29693b=new Map(_0x18822f['map'](_0xccc898=>[_0xccc898,_0xccc898['getRanges']()]));for(let _0x377922=0x0;_0x377922<_0xe25224['length'];_0x377922++){if(_0x4e9c04(this,_0xe25224[_0x377922],_0xe25224,_0x377922+0x1))return!0x0;}for(let _0x4b9b15=0x0;_0x4b9b15<_0xe25224['length'];_0x4b9b15++){if(_0x4e9c04(this,_0xe25224[_0x4b9b15],_0x41f5a1,0x0))return!0x0;}return!0x1;function _0x4e9c04(_0x47c575,_0x1387e0,_0x27d018,_0x4077c5){for(let _0x2c3b39=_0x4077c5;_0x2c3b39<_0x27d018['length'];_0x2c3b39++){const _0x5479b1=_0x27d018[_0x2c3b39];if(_0x5479b1['type']!==_0x1387e0['type']||_0x5479b1['author']['id']!==_0x1387e0['author']['id']||_0x5479b1['subType']!==_0x1387e0['subType'])continue;if(!Wt(_0x1387e0,_0x5479b1))continue;if('attribute'==_0x1387e0['type']&&_0x1387e0['data']['oldValue']!=_0x5479b1['data']['oldValue'])continue;if('attribute'==_0x1387e0['type']&&_0x47c575['_isBlockAttribute'](_0x1387e0['data']['key']))continue;if('formatBlock'==_0x1387e0['type']){const _0x13c2a9=_0x47c575['editor']['model'],_0x4530eb=_0x1387e0['getContainedElement']();if(_0x4530eb&&(_0x13c2a9['schema']['isObject'](_0x4530eb)||_0x13c2a9['schema']['isLimit'](_0x4530eb)))continue;}const _0x1afbdb=_0x3c3926['get'](_0x1387e0),_0x1413a3=_0x29693b['get'](_0x1387e0),_0x248ed8=_0x29693b['get'](_0x5479b1),_0x2cf422=_0x1387e0['commentThread']&&_0x1387e0['commentThread']['length'],_0x1b1ce6=_0x5479b1['commentThread']&&_0x5479b1['commentThread']['length'];if(!_0x2cf422&&_0x1afbdb(_0x248ed8,_0x1413a3))return _0x47c575['_joinSuggestions'](_0x5479b1,_0x1387e0),_0x29693b['delete'](_0x1387e0),!0x0;if(!_0x1b1ce6&&_0x1afbdb(_0x1413a3,_0x248ed8))return _0x47c575['_joinSuggestions'](_0x1387e0,_0x5479b1),_0x29693b['delete'](_0x5479b1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x19a9b8,_0x2d3937){if(_0x19a9b8['isMultiRange']){for(const _0xbe74c7 of _0x2d3937['getRanges']())_0x19a9b8['addRange'](_0xbe74c7);}else{const _0x31199a=_0x2d3937['getFirstRange']()['end'];this['_setSuggestionRange'](_0x19a9b8,this['_model']['createRange'](_0x19a9b8['getFirstRange']()['start'],_0x31199a));}_0x2d3937['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2522fc,_0x15e7d8,_0x497188){const _0xc51961=_0x2522fc['startsWith']('format')||_0x2522fc['startsWith']('attribute')?'FORMATTING':_0x2522fc['toUpperCase']();return o(this['editor']['locale'],_0x15e7d8+'_'+_0xc51961+'_SUGGESTION_ANNOUNCEMENT',_0x497188);}['_initAriaMarkerChangeAnnouncements'](){const _0x3a46f4=this['editor'];if(!_0x3a46f4['ui'])return;const {ariaLiveAnnouncer:_0x2de45f}=_0x3a46f4['ui'];_0x50d520(this['_model'],({left:_0x156543,entered:_0x244cc5})=>{for(const _0x296296 of _0x156543){const {group:_0x3ea29a,type:_0x6f6d3d}=this['_splitMarkerName'](_0x296296['name']);if('suggestion'===_0x3ea29a){_0x2de45f['announce'](this['_getMarkerAnnouncementText'](_0x6f6d3d,'LEAVE'));break;}}for(const _0x2a119f of _0x244cc5){const {group:_0x33b437,type:_0x23d176}=this['_splitMarkerName'](_0x2a119f['name']);if('suggestion'===_0x33b437){_0x2de45f['announce'](this['_getMarkerAnnouncementText'](_0x23d176,'ENTER',_0x5d3128(_0x1182e4)));break;}}});}['_processAttributeChanges'](_0x18757c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5f52fe=this['editor'],_0x4471d5=_0x5f52fe['model']['document']['differ']['getChanges']();if(0x0==_0x4471d5['length'])return!0x1;const _0x1186ac=[],_0x2b9462=_0x4471d5['filter'](_0x1e4b75=>'attribute'==_0x1e4b75['type']),_0x5083fd=_0x4471d5['filter'](_0x5e205b=>'insert'==_0x5e205b['type']&&'$text'!=_0x5e205b['name']),_0x28f7d0=_0x4471d5['filter'](_0xc6fa0d=>'remove'==_0xc6fa0d['type']&&'$text'!=_0xc6fa0d['name']);for(const _0x3b5069 of _0x2b9462)_0x1186ac['push']({'key':_0x3b5069['attributeKey'],'newValue':_0x3b5069['attributeNewValue'],'oldValue':_0x3b5069['attributeOldValue'],'range':qt(_0x3b5069['range'],_0x5f52fe['model'])});for(const _0x44a246 of _0x5083fd){const _0x15fb60=_0x28f7d0['find'](_0x161936=>_0x161936['position']['isEqual'](_0x44a246['position']));_0x15fb60&&_0x1186ac['push']({'key':m,'newValue':_0x44a246['name'],'oldValue':_0x15fb60['name'],'range':_0x5f52fe['model']['createRangeOn'](_0x44a246['position']['nodeAfter'])});}return 0x0!=_0x1186ac['length']&&this['_reduceExistingSuggestions'](_0x18757c,_0x1186ac);}['_processAttributeSuggestions'](_0x4fee43){let _0x4a26c8=!0x1;const _0x368249=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ced4f=>_0x2ced4f['data']['newRange']&&_0x2ced4f['name']['startsWith']('suggestion:attribute:'));for(const _0x372ef7 of _0x368249){const {subType:_0x42a4d5,id:_0xb544e1}=this['_splitMarkerName'](_0x372ef7['name']),_0xeb2e14=_0x42a4d5['split']('|')[0x0];for(const _0x20dc0a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x20dc0a['id']!=_0xb544e1&&'attribute'==_0x20dc0a['type']&&_0x20dc0a['data']&&_0x20dc0a['data']['key']==_0xeb2e14&&_0x20dc0a['getFirstRange']()['isIntersecting'](_0x372ef7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x20dc0a,_0x372ef7['data']['newRange'],_0x4fee43),_0x4a26c8=!0x0);}return _0x4a26c8;}['_recordAttributeChanges'](_0x7cb475){this['_recordAttributeSuggestions']=!0x0,_0x7cb475();}['_isRegisteredAttribute'](_0x5c2b71){const _0xe80514=this['_isBlockAttribute'](_0x5c2b71),_0x169798=this['_inlineAttributeKeys']['has'](_0x5c2b71);return _0xe80514||_0x169798;}['_reduceExistingSuggestions'](_0x304789,_0x24672d){if(0x0==_0x24672d['length'])return!0x1;let _0x1a8319=!0x1;for(const _0x56ba50 of _0x24672d){const _0x542187=this['_findSuggestions'](_0x56ba50['range'],'attribute')['filter'](_0x82bc88=>!_0x82bc88['meta']['isNextTo'])['map'](_0x3cd0b0=>_0x3cd0b0['suggestion']),_0x5cb907=_0x2a2b83({'newValue':_0x56ba50['newValue']});_0x542187['filter'](_0x5c05a2=>{const [_0x46fe72,_0x508b10]=_0x5c05a2['subType']['split']('|');return _0x46fe72==_0x56ba50['key']&&_0x508b10!=_0x5cb907;})['forEach'](_0x51abd3=>{this['_reduceSuggestionAttributeRange'](_0x51abd3,_0x56ba50['range'],_0x304789),_0x1a8319=!0x0;});}return _0x1a8319;}['_reduceSuggestionAttributeRange'](_0x53fa6e,_0x3299a9,_0x5b61ef){const _0x1882c1=_0x53fa6e['getFirstRange']()['getDifference'](_0x3299a9);0x0!==_0x1882c1['length']?0x1!==_0x1882c1['length']?this['_breakSuggestionMarker'](_0x53fa6e,_0x3299a9['start'],_0x3299a9['end']):this['_setSuggestionRange'](_0x53fa6e,_0x1882c1[0x0]):_0x5b61ef['removeMarker'](_0x53fa6e['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x12cc14){this['_editor']=_0x12cc14,this['_model']=_0x12cc14['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x404852,_0x209b21,_0x143c62,_0x3327a7,_0x58e6ed,_0x20ae88){return new u(this['_model'],{'type':_0x404852,'subType':_0x209b21,'id':_0x143c62,'author':_0x3327a7,'creator':_0x3327a7,'attributes':_0x58e6ed,'onAttributesChange':_0x20ae88,'onAccept':(..._0x1cb897)=>this['getSuggestionCallback'](_0x404852,_0x209b21,'accept')(..._0x1cb897),'onDiscard':(..._0x18be86)=>this['getSuggestionCallback'](_0x404852,_0x209b21,'discard')(..._0x18be86)});}['registerCustomCallback'](_0x1bcf5c,_0x2c67b2,_0x3dce93,_0x36c889){const _0xedcfc=_0x1bcf5c+':'+_0x2c67b2+':'+_0x3dce93;this['_customCallbacks']['set'](_0xedcfc,_0x36c889);}['getSuggestionCallback'](_0x4df205,_0x474fe7,_0x564e37){const _0x5f5a43=_0x4df205+':'+_0x474fe7+':'+_0x564e37;return this['_customCallbacks']['get'](_0x5f5a43)||this['_defaultCallbacks']['get'](_0x4df205+':'+_0x564e37);}['_registerDefaultCallbacks'](){const _0x529a74=()=>!0x1,_0x357a0b=_0xb29423=>{_0xb29423['sort']((_0x3194a8,_0x3fab1a)=>_0x3194a8['start']['isBefore'](_0x3fab1a['start'])?0x1:-0x1),this['_model']['change'](_0x4071a0=>{for(const _0x42bfae of _0xb29423){let _0xc440f2;_0xc440f2=_0x42bfae['end']['isAtEnd']&&_0x42bfae['end']['parent']==_0x42bfae['start']['nodeAfter']?_0x4071a0['createSelection'](_0x42bfae['start']['nodeAfter'],'on'):_0x4071a0['createSelection'](_0x42bfae),this['_model']['deleteContent'](_0xc440f2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x6a26ba=(_0x7c7c46,_0x5275b4)=>{_0x5275b4&&this['_model']['change'](_0x4cd733=>{const {commandName:_0x582dad,commandParams:_0x552dec=[]}=_0x5275b4,_0x1dcea2=_0x7c7c46['map'](_0x432218=>(Ft(_0x432218)&&(_0x432218=this['_model']['createRange'](_0x432218['end'])),_0x432218))['filter'](_0x2d5196=>'$graveyard'!==_0x2d5196['root']['rootName']);if(_0x1dcea2['length']<0x1)return;const _0x4d6b39=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xddfbc=>_0x158b09['fromRange'](_0xddfbc));_0x4cd733['setSelection'](_0x1dcea2);for(const _0x1c08ef of this['_editor']['commands']['commands']())_0x1c08ef['refresh']();_0x552dec['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x582dad,..._0x552dec);const _0x2ed331=_0x4d6b39['filter'](_0x15ee7c=>'$graveyard'!=_0x15ee7c['root']['rootName']);_0x2ed331['length']>0x0&&_0x4cd733['setSelection'](_0x2ed331);for(const _0xb88845 of _0x4d6b39)_0xb88845['detach']();});},_0x5ca191=(_0x48419d,_0x23701d)=>0x1==_0x48419d['length']&&0x1==_0x23701d['length']&&_0x48419d[0x0]['end']['isEqual'](_0x23701d[0x0]['start']),_0x3def99=(_0x58bb94,_0x48d051,_0x15d15d,_0x499b4d)=>Kt(_0x58bb94,_0x48d051,_0x15d15d,_0x499b4d)?[_0x58bb94,_0x48d051]:Kt(_0x48d051,_0x58bb94,_0x499b4d,_0x15d15d)?[_0x48d051,_0x58bb94]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x529a74),this['_defaultCallbacks']['set']('insertion:discard',_0x357a0b),this['_defaultCallbacks']['set']('insertion:join',_0x5ca191),this['_defaultCallbacks']['set']('insertion:chain',_0x3def99),this['_defaultCallbacks']['set']('deletion:accept',_0x357a0b),this['_defaultCallbacks']['set']('deletion:discard',_0x529a74),this['_defaultCallbacks']['set']('deletion:join',_0x5ca191),this['_defaultCallbacks']['set']('deletion:chain',_0x3def99),this['_defaultCallbacks']['set']('formatInline:accept',_0x6a26ba),this['_defaultCallbacks']['set']('formatInline:discard',_0x529a74),this['_defaultCallbacks']['set']('formatInline:join',_0x5ca191),this['_defaultCallbacks']['set']('formatInline:chain',_0x529a74),this['_defaultCallbacks']['set']('formatBlock:accept',_0x6a26ba),this['_defaultCallbacks']['set']('formatBlock:discard',_0x529a74),this['_defaultCallbacks']['set']('formatBlock:join',_0x5ca191),this['_defaultCallbacks']['set']('formatBlock:chain',_0x529a74),this['_defaultCallbacks']['set']('attribute:accept',_0x529a74),this['_defaultCallbacks']['set']('attribute:discard',(_0x868d3,_0x335b4b)=>{if(!_0x335b4b)return;const _0x472bd4=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3ba26f=>{if(_0x335b4b['key']==m)for(const _0x534d58 of _0x868d3){const _0x6e985b=_0x534d58['start']['nodeAfter'],_0x5073c8=_0x335b4b['oldValue'];_0x3ba26f['rename'](_0x6e985b,_0x5073c8);}else{if(_0x472bd4['_isBlockAttribute'](_0x335b4b['key'])){for(const _0x50cfa2 of _0x868d3)void 0x0!==_0x335b4b['oldValue']?_0x3ba26f['setAttribute'](_0x335b4b['key'],_0x335b4b['oldValue'],_0x50cfa2['start']['nodeAfter']):_0x3ba26f['removeAttribute'](_0x335b4b['key'],_0x50cfa2['start']['nodeAfter']);}else{for(const _0x3870d0 of _0x868d3)_0x335b4b['oldValue']?_0x3ba26f['setAttribute'](_0x335b4b['key'],_0x335b4b['oldValue'],_0x3870d0):_0x3ba26f['removeAttribute'](_0x335b4b['key'],_0x3870d0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5ca191);}}function Gt(_0x3366f4,_0x56c7bb,_0xe62be){for(const _0x48f519 of _0x56c7bb['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x48f519['root']==_0x48f519)return!0x1;if(!_0xe62be['containsItem'](_0x48f519))return!0x1;if(_0x3366f4['isObject'](_0x48f519)||_0x3366f4['isLimit'](_0x48f519))return!0x0;}return!0x1;}function Ft(_0x5a3a82){return _0x5a3a82['end']['parent']==_0x5a3a82['start']['nodeAfter']&&_0x5a3a82['end']['isAtStart'];}function Lt(_0x555286,_0x7b00b1,_0x4af4bd,_0x3240af){const _0x113d40=_0x5df708=>!_0x5df708['item']['is']('$textProxy')&&!_0x3240af['isObject'](_0x5df708['item']),_0x59dd14=_0x555286['start']['getLastMatchingPosition'](_0x113d40),_0x158b78=_0x555286['end']['getLastMatchingPosition'](_0x113d40,{'direction':'backward'});return(!_0x555286['start']['isEqual'](_0x59dd14)||!_0x555286['end']['isEqual'](_0x158b78))&&(_0x59dd14['isBefore'](_0x158b78)?_0x4af4bd['updateMarker'](_0x7b00b1,{'range':_0x4af4bd['createRange'](_0x59dd14,_0x158b78)}):_0x4af4bd['removeMarker'](_0x7b00b1),!0x0);}function Jt(_0x275f5b){return _0x2a2b83(_0x275f5b);}function Ht(_0x395297){const _0x929da2=_0x395297['start']['nodeAfter'];return _0x929da2&&_0x929da2['is']('element');}function qt(_0x569ebd,_0xea42de){return null==_0x569ebd['end']['nodeBefore']&&_0x569ebd['end']['parent']==_0x569ebd['start']['nodeAfter']?zt(_0x569ebd['start']['nodeAfter'],_0xea42de):_0x569ebd;}function zt(_0x2a794a,_0x2a7bb4){const _0x7d781f=_0x2a7bb4['schema']['isObject'](_0x2a794a)||_0x2a7bb4['schema']['isSelectable'](_0x2a794a);return _0x2a7bb4['createRange'](_0x2a7bb4['createPositionAt'](_0x2a794a,'before'),_0x7d781f?_0x2a7bb4['createPositionAfter'](_0x2a794a):_0x2a7bb4['createPositionAt'](_0x2a794a,'end'));}function Kt(_0x3cf681,_0x4f6e73,_0x171dda,_0x3f6dbd){return!!Wt(_0x3cf681,_0x4f6e73)&&_0x171dda['end']['isEqual'](_0x3f6dbd['start']);}function Wt(_0x1a2b4e,_0x177dd3){if(!_0x1a2b4e['_isDataLoaded']||!_0x177dd3['_isDataLoaded'])return!0x1;const _0x308f79=new Set(Object['keys'](_0x1a2b4e['attributes'])),_0x5ce8de=new Set(Object['keys'](_0x177dd3['attributes']));if(_0x308f79['delete']('groupId'),_0x5ce8de['delete']('groupId'),0x0==_0x308f79['size']&&0x0==_0x5ce8de['size'])return!0x0;if(_0x308f79['size']!=_0x5ce8de['size'])return!0x1;const _0x546f6a={..._0x1a2b4e['attributes']},_0x30f393={..._0x177dd3['attributes']};return delete _0x546f6a['groupId'],delete _0x30f393['groupId'],JSON['stringify'](_0x546f6a)==JSON['stringify'](_0x30f393);}function Qt(_0xc92932,_0x1eb5c6){const _0x50df37=Xt(_0xc92932['attributes']),_0x46c14b=Xt(_0x1eb5c6);if(!_0xc92932['_isDataLoaded'])return!0x1;for(const _0x15bcf7 of Object['keys'](_0x46c14b))if(!_0x3a9f79(_0x50df37[_0x15bcf7],_0x46c14b[_0x15bcf7]))return!0x1;return!0x0;}function Xt(_0xad64d9){const _0x5e18d3=Object['assign']({},_0xad64d9);return delete _0x5e18d3['skipNestingCheck'],delete _0x5e18d3['tablePasteChainId'],_0x5e18d3;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1a5f8e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3412e3,_0x5e6589,_0x48aa6a,_0x5a96ac){super(),this['model']=_0x5e6589,this['view']=_0x48aa6a,this['commentThreadController']=_0x5a96ac,this['_editor']=_0x3412e3,this['_acceptCommand']=_0x3412e3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3412e3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1974a8,_0x28f8b9)=>_0x1974a8||_0x28f8b9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1d8b80=>_0x1d8b80&&this['_editor']['model']['canEditAt'](_0x5e6589['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x36ec89=>_0x36ec89&&this['_editor']['model']['canEditAt'](_0x5e6589['getRanges']())),this['_pendingAction']=null,_0x48aa6a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x48aa6a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x48aa6a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x48aa6a,'change:isDirty',()=>{_0x48aa6a['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 _0xa0e551=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa0e551);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x84666c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x59142c,_0x101c00,_0x3e1c93,_0x1b49e7){super(_0x59142c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x242bb5(_0x59142c,o(_0x59142c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x101c00['authoredAt']),this['bind']('authoredAt')['to'](_0x101c00),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',_0x101c00,'authoredAt',this,'descriptionParts',(_0x3c80f7,_0x350eaf,_0x52a6e6)=>{const _0x1bcb4e=_0x52a6e6['map'](_0x3afff9=>cs(_0x3afff9['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3c80f7-0x1,_0x101c00['author']['name'],_0x350eaf?_0x1b49e7['formatDateTime'](_0x350eaf):'',new DOMParser()['parseFromString'](_0x1bcb4e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1b62cc(),this['focusTracker']=new _0x268e10(),this['keystrokes']=new _0x21b194(),this['focusCycler']=new _0x236ba1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x14aa28=>_0x14aa28['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x101c00,this['_localUser']=_0x3e1c93,this['_config']=_0x1b49e7,_0x1b49e7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4c46c9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x49f34a}=this['_config'];this['commentsListView']=new _0x49f34a(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',_0x3b17ce=>_0x3b17ce+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1348a1,_0x5413c5)=>_0x1348a1||!!_0x5413c5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x61d7e6}=this['_config'],_0x48fcfe=new _0x61d7e6(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1dd2ca=_0x48fcfe['commentInputView'];return _0x48fcfe['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1dd2ca,'value',(_0x4d6643,_0x569bd0,_0x5b2531)=>!!_0x5b2531||_0x4d6643&&!_0x569bd0),_0x1dd2ca['on']('submit',(_0x11754f,_0x570dc0)=>{this['fire']('addComment',_0x570dc0),_0x1dd2ca['editor']['setData']('');}),_0x1dd2ca['on']('cancel',()=>this['focus']()),_0x1dd2ca['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x48fcfe;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x19a4a8,_0x54fb3b,_0x50055f,_0x468b9b){super(_0x19a4a8,_0x54fb3b,_0x50055f,_0x468b9b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x468153=>_0x468153&&_0x468153[0x0]?_0x468153[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x246e7b,_0x14a167)=>{let _0x395253='';for(const _0x451f42 of _0x246e7b)_0x395253+='<p>'+cs(_0x451f42['content'],_0x451f42['color'])+'</p>';return _0x14a167?_0x395253:_0x42eaa8(_0x395253,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x468b9b['SuggestionView'](_0x19a4a8,_0x54fb3b,{'formatDateTime':_0x468b9b['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 _0x52a5e2=this['bindTemplate'],_0x548c4e=[this['suggestionView']];return this['commentsListView']&&_0x548c4e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x548c4e['push'](this['commentThreadInputView']),_0x548c4e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x52a5e2['if']('isActive','ck-suggestion-wrapper--active'),_0x52a5e2['to']('type',_0x19364c=>'ck-suggestion-'+_0x19364c),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':_0x52a5e2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x548c4e};}['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 fe extends _0x84666c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa88fc1,_0x4e58f1,_0x180c68){super(_0xa88fc1),this['_model']=_0x4e58f1,this['_config']=_0x180c68,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4e58f1),this['acceptButton']=this['_createButton'](o(_0xa88fc1,'Accept\x20suggestion'),_0x3ef90d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa88fc1,'Discard\x20suggestion'),_0x3ef90d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x302986(_0xa88fc1,_0x4e58f1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1b62cc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x268e10(),this['keystrokes']=new _0x21b194(),this['focusCycler']=new _0x236ba1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f01c3=>_0x1f01c3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x506dec=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x506dec['innerHTML']=this['description'],this['on']('change:description',(_0x4d407f,_0x567fc6,_0x4a8933)=>{_0x506dec['innerHTML']=_0x4a8933;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2b2b73=this['bindTemplate'],_0x53119e=[{'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':_0x2b2b73['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b2b73['to']('authoredAt',_0x531bef=>this['_config']['formatDateTime'](_0x531bef))}]}]},{'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']&&_0x53119e['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':_0x53119e}]};}['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'](_0x14fa6a,_0x458590,_0x4f9ed3,_0x5a491b,_0x5909d5){const _0x7a908a=new _0x2e9976(this['locale']);return _0x7a908a['set']({'label':_0x14fa6a,'icon':_0x458590,'tooltip':!0x0,'tooltipPosition':_0x5909d5}),_0x7a908a['extendTemplate']({'attributes':{'class':_0x4f9ed3}}),_0x7a908a['on']('execute',()=>{this['fire'](_0x5a491b,this['_model']['id']);}),_0x7a908a;}['_setupKeyboardNavigation'](){const _0x2b77fe=this['element'];this['keystrokes']['listenTo'](_0x2b77fe);for(const _0x28f579 of this['focusables'])this['focusTracker']['add'](_0x28f579['element']),this['keystrokes']['listenTo'](_0x28f579['element']);this['keystrokes']['set']('enter',(_0x32c2e4,_0xc345ca)=>{_0x2b77fe===_0x32c2e4['target']&&(this['focusCycler']['focusFirst'](),_0xc345ca());}),this['keystrokes']['set']('esc',(_0x477bfd,_0x9640ff)=>{_0x2b77fe!==_0x477bfd['target']&&(this['focus'](),_0x9640ff());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x411e20{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1ce417,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56ac7b){super(_0x56ac7b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x58e355=this['editor']['config'];_0x58e355['define']('trackChanges.SuggestionThreadView',pe),_0x58e355['define']('trackChanges.SuggestionView',fe),_0x58e355['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x58e355['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x228bec,_0x2e30fd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5acac4,_0x582729]of this['_handleControllerBuffer']){const _0xe21e01=this['_suggestionToController']['has'](_0x5acac4);_0xe21e01||_0x582729?_0xe21e01&&_0x582729&&this['_destroyController'](_0x5acac4):this['_initializeController'](_0x5acac4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x228bec,_0x2e30fd);}['init'](){const _0x418b56=this['editor'],_0x5332b4=_0x418b56['plugins']['get']('TrackChangesEditing'),_0x10dcba=_0x418b56['plugins']['get']('Annotations'),_0x279602=_0x418b56['plugins']['get']('EditorAnnotations'),_0x4c6cf4=_0x418b56['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x279602['addSourceCollector'](()=>{const _0x47a0fa=[];for(const [_0x6002a3,_0x1ffa06]of Array['from'](this['_suggestionToController'])){const _0x5397de=_0x6002a3['getAllAdjacentSuggestions'](),_0xf68d43=[];for(const _0x8f68a2 of _0x5397de){if(!_0x8f68a2['isInContent'])continue;if(_0x8f68a2['isMultiRange']){_0xf68d43['push'](..._0x8f68a2['getRanges']());continue;}const _0x1dfe6b=_0x8f68a2['getFirstRange']();if(_0xf68d43['length']>0x0){const _0x3ccfc5=_0xf68d43[0x0]['getJoined'](_0x1dfe6b);if(_0x3ccfc5){_0xf68d43[0x0]=_0x3ccfc5;continue;}}_0xf68d43['push'](_0x1dfe6b);}_0x47a0fa['push']([_0x1ffa06['view'],_0xf68d43]);}return _0x47a0fa;}),this['listenTo'](_0x5332b4,'suggestionLoaded',(_0x4d212d,_0xb6bcd5)=>{this['listenTo'](_0xb6bcd5,'change:previous',(_0x43e5c2,_0x4dd577,_0x58a387,_0x176e9f)=>{_0xb6bcd5['isInContent']&&(null==_0x58a387?(this['_updateController'](_0x176e9f['head']),this['_handleSuggestionControllerDelayed'](_0xb6bcd5,!0x1)):(this['_updateController'](_0x58a387['head']),null==_0x176e9f&&this['_handleSuggestionControllerDelayed'](_0xb6bcd5,!0x0)));}),null!==_0xb6bcd5['previous']?this['_updateController'](_0xb6bcd5['head']):this['_handleSuggestionControllerDelayed'](_0xb6bcd5,!0x1);}),this['listenTo'](_0x5332b4,'suggestionUnloaded',(_0x132bd5,_0x1c09dc,_0x4e9670)=>{this['stopListening'](_0x1c09dc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1c09dc),this['_suggestionToController']['has'](_0x1c09dc)&&this['_destroyController'](_0x1c09dc),_0x4e9670&&this['_updateController'](_0x4e9670['head']);}),this['listenTo'](_0x5332b4,'suggestionChanged',(_0x2038cf,_0x46b36e)=>{this['_updateController'](_0x46b36e);}),this['listenTo'](_0x10dcba,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4c6cf4,'addComment',(_0x307ecb,{threadId:_0x424180,isFromAdapter:_0x22535b})=>{if(_0x22535b||!_0x5332b4['hasSuggestion'](_0x424180))return;const _0x14d250=_0x5332b4['getSuggestion'](_0x424180);this['_suggestionToController']['get'](_0x14d250)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x44a6de=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43fe7d;for(const _0x18bd31 in _0x44a6de){const _0x44b384=_0x18bd31,_0x12f0bc=_0x44a6de[_0x44b384];if('trackChangesLicenseKeyValid'==_0x12f0bc||'trackChangesLicenseKeyInvalid'==_0x12f0bc||'trackChangesLicenseKeyExpired'==_0x12f0bc||'trackChangesLicenseKeyDomainLimit'==_0x12f0bc||'trackChangesLicenseKeyNotAllowed'==_0x12f0bc||'trackChangesLicenseKeyEvaluationLimit'==_0x12f0bc||'trackChangesLicenseKeyTrialLimit'==_0x12f0bc||'trackChangesLicenseKeyUsageLimit'==_0x12f0bc){delete _0x44a6de[_0x44b384],_0x43fe7d=_0x12f0bc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x43fe7d&&_0x44a6de['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x43fe7d&&_0x44a6de['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x43fe7d&&_0x44a6de['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x43fe7d&&_0x44a6de['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x43fe7d&&_0x44a6de['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x43fe7d&&_0x44a6de['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x43fe7d&&_0x44a6de['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5c564a=this['editor']['plugins']['get']('Annotations'),_0x4354e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46ce54=Array['from'](_0x5c564a['activeAnnotations'],_0x2077ae=>_0x2077ae['innerView'])['filter'](_0x49e019=>this['_viewToController']['has'](_0x49e019)),_0x5457ea=[];for(const _0x5aa520 of _0x46ce54){const _0x3f4b9a=this['_viewToController']['get'](_0x5aa520)['model']['getAllAdjacentSuggestions']();_0x5457ea['push'](..._0x3f4b9a['reduce']((_0xfc9f1f,_0x2af828)=>[..._0xfc9f1f,..._0x2af828['getMarkerNames']()],[]));}_0x4354e4['activeMarkers']=_0x5457ea;}['_addUIComponentsToFactory'](){const _0x4eea3e=this['editor'],_0x191fae=_0x4eea3e['locale'],_0x38ecbd=o(_0x191fae,'Track\x20changes'),_0x1ae88c=new _0x384869([{'type':'switchbutton','model':new _0x31929e({'withText':!0x0,'isToggleable':!0x0,'label':_0x38ecbd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x31929e({'withText':!0x0,'label':o(_0x191fae,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31929e({'withText':!0x0,'label':o(_0x191fae,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31929e({'withText':!0x0,'label':o(_0x191fae,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31929e({'withText':!0x0,'label':o(_0x191fae,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4eea3e['plugins']['has']('TrackChangesPreview')&&_0x1ae88c['addMany']([{'type':'separator'},{'type':'button','model':new _0x31929e({'withText':!0x0,'label':o(_0x191fae,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x491d11 of _0x1ae88c)if(ke(_0x491d11)){const _0x28d87d=_0x4eea3e['commands']['get'](_0x491d11['model']['commandName']);_0x491d11['model']['bind']('isOn','isEnabled')['to'](_0x28d87d,'value','isEnabled');}_0x4eea3e['ui']['componentFactory']['add']('trackChanges',_0x58d6a1=>this['_createToolbarButton'](_0x58d6a1,_0x1ae88c,_0x38ecbd)),_0x4eea3e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3830bd=>this['_createMenuBarMenu'](_0x3830bd,_0x1ae88c,_0x38ecbd));}['_createToolbarButton'](_0x5c57ce,_0x354eb7,_0x591de3){const _0xfa39e7=_0x1ea104(_0x5c57ce,_0x22ff88),_0xfd6c41=this['editor']['commands']['get']('trackChanges');_0xfa39e7['buttonView']['set']({'tooltip':_0x591de3,'label':_0x591de3,'icon':we}),_0xfa39e7['buttonView']['bind']('isOn')['to'](_0xfd6c41,'value'),_0xfa39e7['buttonView']['on']('execute',()=>{_0xfd6c41['execute'](),this['editor']['editing']['view']['focus']();}),_0x22ef8e(_0xfa39e7,_0x354eb7,{'role':'menu'});const _0x16ed99=[];for(const _0x1df57d of _0x354eb7)ke(_0x1df57d)&&_0x16ed99['push'](this['editor']['commands']['get'](_0x1df57d['model']['commandName']));const _0x681296=_0xfa39e7['buttonView'];return _0x681296['actionView']['unbind']('isEnabled'),_0x681296['arrowView']['unbind']('isEnabled'),_0x681296['actionView']['bind']('isEnabled')['to'](_0xfd6c41,'isEnabled'),_0x681296['arrowView']['bind']('isEnabled')['toMany'](_0x16ed99,'isEnabled',(..._0x16727f)=>_0x16727f['some'](_0x1ddaef=>_0x1ddaef)),_0xfa39e7['on']('execute',_0x1bf4a6=>{this['editor']['execute'](_0x1bf4a6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xfa39e7;}['_createMenuBarMenu'](_0x109a21,_0x3362e1,_0x25a93c){const _0x1e448c=new _0xcd0ff(_0x109a21),_0x281184=this['editor']['commands']['get']('trackChanges');_0x1e448c['buttonView']['set']({'label':_0x25a93c,'icon':we});const _0x515753=new _0x446aee(_0x109a21);for(const _0x2c882e of _0x3362e1){if('separator'==_0x2c882e['type']){_0x515753['items']['add'](new _0x2d3f1f(_0x109a21));continue;}const _0x274ad6=new _0x446c81(_0x109a21,_0x1e448c),_0x33d2f3=new _0x4abd13(_0x109a21),_0x4bb6af=_0x2c882e['model'];_0x33d2f3['bind'](...Object['keys'](_0x4bb6af))['to'](_0x4bb6af),_0x33d2f3['delegate']('execute')['to'](_0x1e448c),_0x33d2f3['on']('execute',()=>{this['editor']['execute'](_0x4bb6af['commandName']),this['editor']['editing']['view']['focus']();}),_0x274ad6['children']['add'](_0x33d2f3),_0x515753['items']['add'](_0x274ad6);}return _0x1e448c['bind']('isEnabled')['to'](_0x281184,'isEnabled'),_0x1e448c['panelView']['children']['add'](_0x515753),_0x1e448c;}['_initializeController'](_0x4aeb3c){const _0xa80f48=this['editor'],_0x2bcf96=_0xa80f48['config'],_0x2c7727=_0xa80f48['plugins']['get']('Annotations'),_0xaa2120=_0xa80f48['plugins']['get']('CommentsRepository'),_0x44936d=_0xa80f48['plugins']['get']('EditorAnnotations'),_0x269ef3=_0xa80f48['plugins']['get'](_0x1ce417)['me'],_0x34c3e6=_0x2bcf96['get']('trackChanges')['SuggestionThreadView'],_0x4b085e=_0x2bcf96['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x50db8c,CommentThreadInputView:_0x2d8bbc}=_0xa80f48['plugins']['get']('CommentsUI');let _0x68054,_0x4a73ee,_0x2fa515;this['_annotationViews']['has'](_0x4aeb3c['id'])?(_0x4a73ee=this['_annotationViews']['get'](_0x4aeb3c['id']),_0x68054=_0x4a73ee['mainView']):(_0x68054=new _0x34c3e6(_0xa80f48['locale'],_0x4aeb3c,_0x269ef3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2bcf96['get']('comments.editorConfig'),'licenseKey':_0x2bcf96['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2bcf96['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2bcf96['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2bcf96['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x550d8e(_0x2bcf96['get']('locale')),'CommentView':_0x2bcf96['get']('comments')['CommentView'],'CommentsListView':_0x50db8c,'CommentThreadInputView':_0x2d8bbc,'SuggestionView':_0x4b085e}),_0x68054['suggestionView']['acceptButton']['on']('execute',()=>{_0xa80f48['editing']['view']['focus']();}),_0x68054['suggestionView']['discardButton']['on']('execute',()=>{_0xa80f48['editing']['view']['focus']();}),_0x4a73ee=_0x2c7727['createAnnotationView'](this['editor']['locale'],_0x68054),_0x4a73ee['bind']('isDirty')['to'](_0x68054,'isDirty'),_0x4a73ee['bind']('length')['to'](_0x68054),_0x4a73ee['bind']('type')['to'](_0x68054,'type',_0x44f946=>'suggestion-'+_0x44f946),_0x68054['on']('escape',()=>{_0x2fa515['fire']('escape');}),this['_annotationViews']['set'](_0x4aeb3c['id'],_0x4a73ee));const _0xc324b8=_0xaa2120['createCommentThreadController'](_0x4aeb3c['commentThread'],_0x68054),_0x18f391=new Ce(_0xa80f48,_0x4aeb3c,_0x68054,_0xc324b8),_0x480cca=_0x4aeb3c['getAllAdjacentSuggestions']()['filter'](_0x1dee5a=>_0x1dee5a['isInContent']);_0x68054['descriptionParts']=_0xa80f48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x480cca),this['_suggestionToController']['set'](_0x4aeb3c,_0x18f391),this['_viewToController']['set'](_0x68054,_0x18f391),_0x2fa515=_0x2c7727['createAnnotation']({'view':_0x4a73ee,'target':()=>{const _0x1e67a0=[],_0x1802e2=_0x4aeb3c['getAllAdjacentSuggestions']()['filter'](_0x45f789=>_0x45f789['isInContent']);for(const _0x47dee9 of _0x1802e2)_0x1e67a0['push'](..._0x47dee9['getMarkers']());return _0x37e183(_0xa80f48['editing'],_0x1e67a0);},'type':()=>'suggestion-'+_0x18f391['view']['type']}),_0xaa2120['_bindAnnotationToEditors'](_0x68054,_0x2fa515),_0x2c7727['add'](_0x2fa515),_0x44936d['registerAnnotation'](_0x2fa515);}['_destroyController'](_0x44533c){const _0x1ce097=this['editor']['plugins']['get']('CommentsRepository'),_0x25c84e=this['editor']['plugins']['get']('Annotations'),_0x1252f5=this['_suggestionToController']['get'](_0x44533c),_0x2e66d7=_0x1252f5['view'],_0x58c6a3=_0x25c84e['getByInnerView'](_0x2e66d7);_0x1ce097['_unbindEditors'](_0x2e66d7),_0x58c6a3&&_0x25c84e['remove'](_0x58c6a3),this['_suggestionToController']['delete'](_0x44533c),this['_viewToController']['delete'](_0x2e66d7),_0x1252f5['destroy']();}['_updateController'](_0x2a161e){if(!_0x2a161e['isInContent']||!this['_suggestionToController']['has'](_0x2a161e))return;const _0x5a987f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c7aba=this['_suggestionToController']['get'](_0x2a161e),_0x48184c=_0x2a161e['getAllAdjacentSuggestions']();_0x1c7aba['view']['descriptionParts']=_0x5a987f['descriptionFactory']['getDescriptions'](_0x48184c);}['destroy'](){for(const _0x1cdb46 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1cdb46);for(const _0x4bf709 of this['_annotationViews']['values']())_0x4bf709['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x37d15a){return'model'in _0x37d15a;}class k extends _0x411e20{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1ac91b){this['editor']['plugins']['get'](p)['adapter']=_0x1ac91b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x7de0be){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x7de0be);}['getSuggestions']({skipNotAttached:_0x101d3e=!0x1,toJSON:_0x469a43=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x101d3e,'toJSON':_0x469a43});}['getSuggestion'](_0x3d127c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3d127c);}}const w=['Pagination'];class T extends _0x411e20{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x84eb5b=this['editor'];if(_0x84eb5b['config']['define']('trackChangesData.editorCreator',_0x7daf7b=>{const _0xc47fd=_0x84eb5b['model']['document']['getRootNames']()['reduce']((_0x355687,_0x1924d9)=>(_0x355687[_0x1924d9]='',_0x355687),{});return _0x84eb5b['constructor']['create'](_0xc47fd,_0x7daf7b);}),'function'!=typeof _0x84eb5b['config']['get']('trackChangesData')['editorCreator'])throw new _0x38b09e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x58e510){return N(this['editor'],!0x0,_0x58e510);}['getDataWithDiscardedSuggestions'](_0x62afb3){return N(this['editor'],!0x1,_0x62afb3);}}class D extends _0x411e20{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d7bc2){function _0x587fc2(_0x117725){return _0x117725['map'](_0x447df2=>String['fromCharCode'](_0x447df2))['join']('');}super(_0x3d7bc2),this['result']='end',_0x3d7bc2[_0x587fc2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x587fc2([0x76,0x69,0x65,0x77])][_0x587fc2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x587fc2([0x61,0x75,0x74,0x6f]),_0x3d7bc2[_0x587fc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x587fc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x587fc2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x587fc2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x587fc2([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 Fe(_0x144f74){return void 0x0!==_0x144f74['getRootsAttributes'];}async function N(_0x228dc1,_0x108bf7,_0x3598a8){const _0x27f7b4=_0x504c6d(_0x228dc1,w);_0x27f7b4['plugins']['push'](p,D),_0x27f7b4['rootsAttributes']=Fe(_0x228dc1)?_0x228dc1['getRootsAttributes']():void 0x0;const _0x4db211=document['createDocumentFragment'](),_0x3c7540=_0x228dc1['config']['get']('trackChangesData')['editorCreator'],_0x19f316=await _0x3c7540(_0x27f7b4,()=>function(_0x25e440){const _0x5a31b4=document['createElement']('div');return _0x25e440['appendChild'](_0x5a31b4),_0x5a31b4;}(_0x4db211));!function(_0xaff579,_0x5cee48){const _0x4c0c5d=_0xaff579['model']['document']['getRootNames']()['reduce']((_0x24c33d,_0x34a283)=>(_0x24c33d[_0x34a283]=_0xaff579['data']['get']({'rootName':_0x34a283}),_0x24c33d),{}),_0x5c0aaa=_0xaff579['plugins']['get']('Users')['users']['map'](_0x5cd086=>({'id':_0x5cd086['id'],'name':_0x5cd086['name']})),_0x3dd17e=_0xaff579['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5f2358=_0xaff579['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19dda6=_0x5cee48['plugins']['get']('Users'),_0x1e424b=_0x5cee48['plugins']['get']('TrackChangesEditing'),_0xc2b767=_0x5cee48['plugins']['get']('CommentsRepository');for(const _0x847257 of _0xc2b767['getCommentThreads']())_0x847257['remove']();for(const _0x6a13e6 of _0x5c0aaa)_0x19dda6['getUser'](_0x6a13e6['id'])||_0x19dda6['addUser'](_0x6a13e6);_0x19dda6['me']||_0x19dda6['useAnonymousUser']();for(const _0x5988f8 of _0x5f2358)_0xc2b767['addCommentThread'](_0x5988f8);for(const _0x490657 of _0x3dd17e)_0x1e424b['addSuggestionData'](_0x490657);_0x5cee48['data']['set'](_0x4c0c5d);}(_0x228dc1,_0x19f316),_0x19f316['execute'](_0x108bf7?'acceptAllSuggestions':'discardAllSuggestions');const _0x11dbcb=Fe(_0x19f316)?_0x19f316['getFullData'](_0x3598a8):_0x19f316['data']['get'](_0x3598a8);return await _0x19f316['destroy'](),_0x11dbcb;}class Me extends _0x84666c{['options'];constructor(_0x5bae58,_0x496b99){super(_0x5bae58),this['options']=_0x496b99,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'](_0x54a4f0,_0x4e70be){if(!this['element'])return;const _0x555554=[];for(const [_0x1eb61c,_0x369800]of _0x54a4f0){const _0x1c359b=document['createElement']('div');_0x1c359b['setAttribute']('data-ck-root-name',_0x1eb61c),_0x1c359b['className']=_0x369800['classes']+'\x20ck-track-changes-preview__root-container',_0x1c359b['innerHTML']=_0x369800['content'],_0x555554['push'](_0x1c359b);}_0x4e70be(this['element'],_0x555554),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x3a7e33){super(_0x3a7e33),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x551577=this['editor'],_0x4576cc=_0x551577['locale'],_0x1bee11=_0x551577['plugins']['get']('Dialog');let _0xe7d739;const _0x9a6cae=function(_0x480835){const _0xdbb59f={};if('editables'in _0x480835['ui']['view']){for(const [_0x3d9e7e,_0x1dc550]of Object['entries'](_0x480835['ui']['view']['editables']))_0xdbb59f[_0x3d9e7e]=_0x1dc550['element'];}else _0xdbb59f[_0x480835['model']['document']['getRootNames']()[0x0]]=_0x480835['ui']['view']['editable']['element'];return _0xdbb59f;}(_0x551577),_0x2262aa=function(_0x538e51){let _0x4a8f0f=0x0;for(const _0x3986f4 of Object['values'](_0x538e51))_0x4a8f0f=Math['max'](_0x4a8f0f,_0x3986f4['getBoundingClientRect']()['width']);let _0x4b1c01=0x0;for(const _0x15c488 of Object['values'](_0x538e51))_0x4b1c01+=_0x15c488['getBoundingClientRect']()['height'];const _0x50d890=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x442255=Math['min'](_0x4b1c01,_0x50d890);return{'width':_0x4a8f0f,'height':_0x442255};}(_0x9a6cae);_0x1bee11['show']({'id':'finalContentPreview','title':o(_0x4576cc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4576cc,{'dialogRects':_0x2262aa}),'onHide':()=>{_0xe7d739['detachFromDom']();},'onShow':()=>{_0x551577['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x476399=>{const _0x5eef38=this['_standarizeRootsData'](_0x476399,_0x551577,_0x9a6cae);_0x1bee11['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5eef38,_0x551577['config']['get']('trackChanges.preview.renderFunction'));}),_0xe7d739=new _0x3d6fec(_0x4576cc,[_0x1bee11['view']]),_0xe7d739['attachToDom'](),_0xe7d739['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x551577['once']('destroy',()=>{_0xe7d739['detachFromDom']();});const _0x1025b1=_0x1bee11['view']['headerView']['class'];_0x1bee11['view']['headerView']['class']=_0x1025b1?_0x1025b1+'\x20ck-reset_all':'ck-reset_all',_0x1bee11['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1bee11['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x561a89=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x132135=_0x561a89['previewMode'],_0x5d582d={};if('$labels'===_0x132135){for(const _0x183d7b of _0x561a89['getMergeFieldsIds']())_0x5d582d[_0x183d7b]=_0x561a89['getLabel'](_0x183d7b)||_0x183d7b;}else{const _0x56b652='$defaultValues'===_0x132135?_0x561a89['getDefaultValues']():_0x561a89['getDataSetValues'](_0x132135,!0x0);for(const _0x8184d9 of Object['entries'](_0x56b652)){const [_0x38c7de,_0x257762]=_0x8184d9;_0x5d582d[_0x38c7de]=null!==_0x257762?_0x257762:_0x561a89['getLabel'](_0x38c7de)||_0x38c7de;}}return{'mergeFieldsData':_0x5d582d};}['_standarizeRootsData'](_0x20cb0e,_0x22de90,_0x3a68f1){let _0x4b9fe3;if('string'==typeof _0x20cb0e){const _0x4a5939=_0x22de90['model']['document']['getRootNames']()[0x0];_0x4b9fe3={[_0x4a5939]:_0x20cb0e};}else _0x4b9fe3=_0x20cb0e;const _0x158bc4=this['_fixMediaEmbeds'](_0x4b9fe3,_0x22de90),_0x52e355=function(_0x90a81a,_0x14955a){for(const [_0xcee485,_0x1df152]of _0x90a81a)_0x1df152['classes']=_0x14955a[_0xcee485]['classList']['value']['replace']('ck-focused','');return _0x90a81a;}(this['_sortRoots'](_0x22de90)['reduce']((_0x145b63,_0x13147c)=>(_0x145b63['push']([_0x13147c,{'content':_0x158bc4[_0x13147c],'classes':''}]),_0x145b63),[]),_0x3a68f1);return _0x52e355;}['_fixMediaEmbeds'](_0x1642d0,_0x491f87){if(!_0x491f87['plugins']['has']('MediaEmbedEditing'))return _0x1642d0;const _0x198ff0=_0x491f87['plugins']['get']('MediaEmbedEditing');for(const [_0x4bd321,_0x427641]of Object['entries'](_0x1642d0)){const _0x3fb6a0=document['createElement']('div');_0x3fb6a0['innerHTML']=_0x427641,(_0x3fb6a0['querySelectorAll']('figure.media')['forEach'](_0x580da8=>{const _0x1e36a5=_0x580da8['querySelector']('oembed');if(_0x1e36a5){const _0x209a8d=_0x1e36a5['getAttribute']('url');if(_0x209a8d){const _0x340c21=_0x198ff0['registry']['getMediaViewElement'](new _0x5907cc(_0x491f87['editing']['view']['document']),_0x209a8d,{'elementName':'','renderForEditingView':!0x0}),_0x4ffaff=document['createElement']('div');_0x4ffaff['classList']['add']('ck-media__wrapper'),_0x340c21['render'](_0x4ffaff,_0x491f87['editing']['view']['domConverter']),_0x1e36a5['replaceWith'](_0x4ffaff);}}}),_0x1642d0[_0x4bd321]=_0x3fb6a0['innerHTML']);}return _0x1642d0;}['_sortRoots'](_0x2c4e36){if(!function(_0x244f5a){return void 0x0!==_0x244f5a['getRootsAttributes'];}(_0x2c4e36))return _0x2c4e36['model']['document']['getRootNames']();const _0x127d95=[],_0x2c5ebc=new Map();for(const _0x204564 of _0x2c4e36['model']['document']['getRootNames']()){const _0x583f9d=_0x2c4e36['editing']['view']['getDomRoot'](_0x204564)['getClientRects']()['item'](0x0);_0x127d95['push'](_0x204564),_0x2c5ebc['set'](_0x204564,_0x583f9d);}return _0x127d95['sort']((_0x5df9e5,_0x7dc907)=>{const _0x4f0505=_0x2c5ebc['get'](_0x5df9e5),_0x52d54e=_0x2c5ebc['get'](_0x7dc907);return _0x4f0505['y']-_0x52d54e['y']||_0x4f0505['x']-_0x52d54e['x'];}),_0x127d95;}}class te extends _0x411e20{static get['requires'](){return[T,_0x470d35];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe3476f){super(_0xe3476f),_0xe3476f['commands']['add']('previewFinalContent',new re(this['editor'])),_0xe3476f['config']['define']('trackChanges.preview.renderFunction',(_0xffd874,_0x33bafe)=>{for(const _0x53475d of _0x33bafe)_0xffd874['appendChild'](_0x53475d);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Yt,Plugin as _0x6a3ec8,PendingActions as _0x5e80f0,icons as _0x4b24fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x523434,ObservableMixin as _0xba2e47,uid as _0xf0931c,priorities as _0x17a378,insertToPriorityArray as _0x3b03d5,logWarning as _0x15da72,getEnvKeystrokeText as _0x2a3ca7,FocusTracker as _0x4d988c,KeystrokeHandler as _0x1a7c71,Collection as _0x22187e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x365eb3,View as _0x2cfe10,ViewCollection as _0x464e6a,FocusCycler as _0x4f7572,ViewModel as _0x51bf2b,createDropdown as _0x386ba0,SplitButtonView as _0x52d343,addListToDropdown as _0x598724,MenuBarMenuView as _0x2a1817,MenuBarMenuListView as _0x7c5054,ListSeparatorView as _0x244709,MenuBarMenuListItemView as _0x9e551e,MenuBarMenuListItemButtonView as _0xce26ad,BodyCollection as _0x362513,Dialog as _0x7fa237}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4ea5c3,hashObject as _0xe0c89d,surroundingMarkersDetector as _0x141f07,FOCUS_ANNOTATION_KEYSTROKE as _0x53f401,AriaDescriptionView as _0x3ee2f0,setupThreadKeyboardNavigation as _0x1eca02,trimHtml as _0x50119c,UserView as _0x4d22d6,LateFocusButtonView as _0x2ece0f,getDateTimeFormatter as _0x1fd6c7,getAllMarkersDomElementsSorted as _0x43b79b,sanitizeEditorConfig as _0x37f847}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x150557,LiveRange as _0x36d42c,LivePosition as _0x556335,DowncastWriter as _0x15c496}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3c0e0b,toWidget as _0x244f86}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x579b60,set as _0x3321d9,isEqual as _0x549bfd,unset as _0x1c90b0,omit as Vt}from'lodash-es';import{Delete as _0x385f1d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xbcef9,ShiftEnter as _0x4e86be}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x140258,_0x18a03e){super(_0x140258),this['_enabledCommands']=_0x18a03e,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 _0x56dc7f of this['editor']['commands']['commands']())_0x56dc7f['affectsData']&&!this['_enabledCommands']['has'](_0x56dc7f)&&_0x56dc7f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3b2b1d of this['editor']['commands']['commands']())_0x3b2b1d['affectsData']&&!this['_enabledCommands']['has'](_0x3b2b1d)&&_0x3b2b1d['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0xbf8644,_0x3058af){super(_0xbf8644),this['_suggestions']=_0x3058af,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3bd280){const _0x6b8fe6=this['_suggestions']['get'](_0x3bd280);if(!_0x6b8fe6)throw new _0x523434('track-changes-accept-suggestion-not-found',this);const _0x4ca491=_0x6b8fe6['getRanges']();this['editor']['model']['canEditAt'](_0x4ca491)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x6b8fe6);}}class R extends Yt{['_suggestions'];constructor(_0x4b9b61,_0x3618fa){super(_0x4b9b61),this['_suggestions']=_0x3618fa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2843cf){const _0x50e758=this['_suggestions']['get'](_0x2843cf);if(!_0x50e758)throw new _0x523434('track-changes-discard-suggestion-not-found',this);const _0x306a2b=_0x50e758['getRanges']();this['editor']['model']['canEditAt'](_0x306a2b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x50e758);}}function cs(_0x152f5e,_0x1548d2){let _0x44cfc3='';return _0x44cfc3+=_0x152f5e['split']('*')['map']((_0x4444f3,_0x131006)=>_0x131006%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4444f3)+'</span>':nn(_0x4444f3))['join'](''),_0x1548d2&&(_0x44cfc3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1548d2['value']+'\x22\x20title=\x22'+_0x1548d2['title']+'\x22></span>'),_0x44cfc3;}function nn(_0x23d058){const _0x1ab35b=document['createElement']('span');return _0x1ab35b['innerText']=_0x23d058,_0x1ab35b['innerHTML'];}function Zt(_0x3b2663){return _0x3b2663['sort']((_0x1802e5,_0xc71b72)=>'deletion'==_0x1802e5['type']&&'deletion'!=_0xc71b72['type']?-0x1:'deletion'!=_0x1802e5['type']&&'deletion'==_0xc71b72['type']?0x1:0x0);}function to(_0x1f6911,_0x67858e){let _0x26ed74,_0xa7fab0=0x0;const _0x1ea575=[],_0x5995be=_0x67858e['schema'];for(;_0xa7fab0<_0x1f6911['length'];){const _0x393cd7=_0x1f6911[_0xa7fab0],_0x49227d=_0x1f6911[_0xa7fab0+0x1];_0x26ed74||(_0x26ed74=_0x67858e['createPositionBefore'](_0x393cd7)),on(_0x67858e,_0x393cd7,_0x49227d)||(_0x1ea575['push'](_0x67858e['createRange'](_0x26ed74,_0x5995be['isObject'](_0x393cd7)?_0x67858e['createPositionAfter'](_0x393cd7):_0x67858e['createPositionAt'](_0x393cd7,'end'))),_0x26ed74=null),_0xa7fab0++;}return _0x1ea575;}function on(_0x23d39e,_0x3091c4,_0x352c3a){if(!_0x352c3a)return!0x1;const _0x27c44d=_0x23d39e['createPositionAfter'](_0x3091c4),_0x226acb=_0x23d39e['createPositionBefore'](_0x352c3a);return _0x27c44d['isTouching'](_0x226acb);}function ts(_0x255602,_0x1749cc,_0x53f254){for(;_0x53f254['length'];){const _0x36e102=_0x53f254['splice'](0x0,0x64);_0x255602['change'](()=>{for(const _0x278ad7 of _0x36e102)_0x278ad7['isInContent']&&_0x1749cc['execute'](_0x278ad7['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x5028ba,_0x30bb69,_0x35807b){super(_0x5028ba),this['_command']=_0x30bb69,this['_suggestions']=_0x35807b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2218bc=Array['from'](this['_suggestions']['values']())['some'](_0x274a79=>_0x274a79['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2218bc;}['execute'](){const _0x28c20f=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x2ac299 of _0x28c20f){const _0x4cbdc8=_0x2ac299['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4cbdc8))return;}ts(this['editor']['model'],this['_command'],_0x28c20f);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x9ed3ab,_0x53ab9a,_0x442e35){super(_0x9ed3ab),this['_command']=_0x53ab9a,this['_suggestions']=_0x442e35,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x57c79f=this['editor']['model']['document']['selection'],_0x1a388e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x33f7a9,_0xbc03f7){const _0x143374=Array['from'](_0x33f7a9['getRanges']()),_0x44c112=new Set();for(const _0x3dcfd8 of _0xbc03f7)if(_0x3dcfd8['isInContent']){for(const _0xe61590 of _0x143374)for(const _0x1a0fb4 of _0x3dcfd8['getRanges']())(_0xe61590['isIntersecting'](_0x1a0fb4)||_0x33f7a9['isCollapsed']&&!_0x3dcfd8['isMultiRange']&&_0x3dcfd8['next']&&_0x1a0fb4['end']['isTouching'](_0xe61590['start']))&&_0x44c112['add'](_0x3dcfd8);}return _0x44c112;}(_0x57c79f,_0x1a388e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1e56a2=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x1f1356 of _0x1e56a2){const _0x19bcd2=_0x1f1356['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19bcd2))return;}ts(this['editor']['model'],this['_command'],_0x1e56a2);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xba2e47(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x195c08,_0x2a1366){super(),this['id']=_0x2a1366['id'],this['type']=_0x2a1366['type'],this['subType']=_0x2a1366['subType']||null,this['author']=_0x2a1366['author'],this['creator']=_0x2a1366['creator']||_0x2a1366['author'],this['isExternal']=Boolean(_0x2a1366['attributes']&&_0x2a1366['attributes']['@external']),this['data']=null,this['_model']=_0x195c08,this['_onAccept']=_0x2a1366['onAccept'],this['_onDiscard']=_0x2a1366['onDiscard'],this['_onAttributesChange']=_0x2a1366['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2a1366['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 _0x25bef6=this;for(;_0x25bef6['previous'];)_0x25bef6=_0x25bef6['previous'];return _0x25bef6;}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'](_0x2e31c0){this['_markerNames']['add'](_0x2e31c0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5cd25d=>this['_model']['markers']['get'](_0x5cd25d))['filter'](_0x49280a=>_0x49280a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3d5937=>{for(const _0x36b9f6 of this['getMarkers']())_0x3d5937['removeMarker'](_0x36b9f6);}),this['_markerNames']['clear']();}['removeMarker'](_0x9861f2){this['_model']['change'](_0x13e7cb=>{_0x13e7cb['removeMarker'](_0x9861f2);}),this['_markerNames']['delete'](_0x9861f2);}['addRange'](_0x3ca23c){const _0x12fc79='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x12fc79),this['_model']['change'](_0x2a5cf1=>{_0x2a5cf1['addMarker'](_0x12fc79,{'range':_0x3ca23c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1d07ab){for(const _0xd3fbab of this['getRanges']())if(_0xd3fbab['isIntersecting'](_0x1d07ab))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3eeb74=>_0x3eeb74['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19958e,_0x81c287)=>[..._0x19958e,..._0x81c287['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5338d7=this['getRanges']();if(0x1!=_0x5338d7['length'])return null;const _0x3d2473=_0x5338d7[0x0],_0x464663=_0x3d2473['start']['nodeAfter'],_0x516a1e=_0x3d2473['end']['nodeBefore'];return _0x464663 instanceof _0x150557?_0x464663!=_0x516a1e?null:_0x464663: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 _0x4911bb=[];let _0x3ac604=this['head'];for(;_0x3ac604;)_0x4911bb['push'](_0x3ac604),_0x3ac604=_0x3ac604['next'];return _0x4911bb;}['setAttribute'](_0x36880e,_0x1514d6){const _0x3ed23d=_0x579b60(this['attributes']);_0x3321d9(_0x3ed23d,_0x36880e,_0x1514d6),_0x549bfd(_0x3ed23d,this['attributes'])||(this['attributes']=_0x3ed23d,this['_onAttributesChange'](_0x3ed23d));}['removeAttribute'](_0x6615fa){const _0x726344=_0x579b60(this['attributes']);_0x1c90b0(_0x726344,_0x6615fa),_0x549bfd(_0x726344,this['attributes'])||(this['attributes']=_0x726344,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 _0xf0931c()['substr'](0x1,0x5);}}function o(_0x2c8d3c,_0x295215,_0x23da19){const _0x4e8a86=_0x2c8d3c['t'],t=_0x2c8d3c['t'];switch(_0x295215){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',_0x23da19);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x23da19);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x23da19);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x23da19);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x23da19);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',_0x23da19);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x23da19);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',_0x23da19);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x23da19);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x23da19);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x23da19);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x23da19);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x23da19);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x23da19);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x23da19);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x23da19);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x23da19);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x23da19);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x23da19);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x23da19);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x23da19);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x23da19);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x23da19);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x23da19);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'},_0x23da19);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x23da19);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x23da19);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x23da19);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x23da19);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x23da19);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'},_0x23da19);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x23da19);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x23da19);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x23da19);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x23da19);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'},_0x23da19);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x23da19);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'},_0x23da19);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'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'},_0x23da19);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x23da19);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'},_0x23da19);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x23da19);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'},_0x23da19);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x23da19);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x23da19);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'},_0x23da19);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x23da19);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 _0x4e8a86({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x23da19);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4e8a86({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x23da19);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x23da19);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'},_0x23da19);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'},_0x23da19);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'},_0x23da19);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x295215;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x248ccd,_0x1be53c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x248ccd,this['_locale']=_0x1be53c;}['getDescriptions'](_0x43dc39){const _0x3eaac8=[],_0x4ad165=new Set(),_0x2b807b=new Set();for(let _0x2edd1a=0x0;_0x2edd1a<_0x43dc39['length'];_0x2edd1a++){const _0x3cec69=_0x43dc39[_0x2edd1a];if(!_0x3cec69['isInContent'])continue;const _0x2f5d99=this['_handleCustomCallbackDescription'](_0x3cec69);if(_0x2f5d99){if(null!=_0x3cec69['subType']){if(_0x4ad165['has'](_0x3cec69['subType']))continue;_0x4ad165['add'](_0x3cec69['subType']);}_0x3eaac8['push'](_0x2f5d99);}else{if('attribute'!=_0x3cec69['type'])'insertion'!=_0x3cec69['type']&&'deletion'!=_0x3cec69['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3eaac8,_0x3cec69,_0x43dc39[_0x2edd1a+0x1]);else{const _0x2487f0=_0x3cec69['data']['key'];if(_0x2b807b['has'](_0x2487f0))continue;_0x2b807b['add'](_0x3cec69['data']['key']),_0x2487f0==m?this['_handleRenameSuggestionDescription'](_0x3eaac8,_0x3cec69):this['_handleAttributeSuggestionDescription'](_0x3eaac8,_0x3cec69);}}}return this['_resolveDescriptionItems'](_0x3eaac8);}['registerDescriptionCallback'](_0x5eab0b){this['_customCallbacks']['push'](_0x5eab0b);}['registerElementLabel'](_0x5a4eba,_0x533382,_0x1fc118=_0x17a378['normal']){'function'==typeof _0x5a4eba?_0x3b03d5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5a4eba,'label':_0x533382,'priority':_0x1fc118}):this['_itemLabels']['set'](_0x5a4eba,_0x533382);}['registerAttributeLabel'](_0x18840c,_0x28b018){this['_attributeLabels']['set'](_0x18840c,_0x28b018);}['getItemLabel'](_0x5cad44,_0x37d91c=0x1){let _0x563543;for(const _0x3f3c52 of this['_itemLabelsCallbacks'])if(_0x3f3c52['matchingCallback'](_0x5cad44)){_0x563543=_0x3f3c52['label'];break;}return _0x563543||(_0x563543=this['_itemLabels']['get'](_0x5cad44['name'])),_0x563543?_0x563543(_0x37d91c):0x1!==_0x37d91c?_0x37d91c+'\x20'+_0x5cad44['name']+'s':''+_0x5cad44['name'];}['_addDescriptionItems'](_0x54f313,_0x4a223b){const _0x139a95=_0x4a223b['getFirstRange']()['getWalker'](),_0x348dce='insertion'==_0x4a223b['type']?'add':'remove';for(const _0x240bd3 of _0x139a95){const _0xae77ae=_0x240bd3['item'],_0x12b0a1=_0x54f313[_0x54f313['length']-0x1];if(_0xae77ae['is']('$textProxy'))_0x12b0a1&&_0x12b0a1['type']['indexOf']('Container')>-0x1&&_0x54f313['pop'](),_0x12b0a1&&'text'==_0x12b0a1['type']?_0x12b0a1[_0x348dce]+=_0xae77ae['data']:_0x54f313['push']({'type':'text','add':'add'==_0x348dce?_0xae77ae['data']:'','remove':'remove'==_0x348dce?_0xae77ae['data']:''});else{if(this['_schema']['isObject'](_0xae77ae)){const _0x79e0f=_0xae77ae;if(_0x12b0a1&&_0x12b0a1['type']['indexOf']('Container')>-0x1&&_0x54f313['pop'](),'elementEnd'==_0x240bd3['type'])continue;_0x12b0a1&&_0x12b0a1['type']==_0x348dce+'Object'&&_0x12b0a1['element']['name']==_0x79e0f['name']?_0x12b0a1['quantity']++:_0x54f313['push']({'type':_0x348dce+'Object','element':_0x79e0f,'quantity':0x1}),_0x139a95['skip'](_0x2dac5c=>!('elementEnd'==_0x2dac5c['type']&&_0x2dac5c['item']==_0xae77ae));}else{if(this['_schema']['checkChild'](_0xae77ae,'$text')||_0xae77ae['is']('element','softBreak')){const _0x49a5cb=_0xae77ae;if('add'==_0x348dce&&'elementStart'==_0x240bd3['type']||'remove'==_0x348dce&&'elementEnd'==_0x240bd3['type'])continue;if(_0x12b0a1&&-0x1==_0x12b0a1['type']['indexOf']('Container')){'text'==_0x12b0a1['type']&&(_0x12b0a1[_0x348dce]+='\x0a');continue;}let _0x1bc701;if(_0x1bc701='add'==_0x348dce?_0x49a5cb['nextSibling']&&!this['_schema']['isObject'](_0x49a5cb['nextSibling'])?_0x49a5cb['nextSibling']:null:_0x49a5cb['previousSibling']&&!this['_schema']['isObject'](_0x49a5cb['previousSibling'])?_0x49a5cb['previousSibling']:null,_0x49a5cb['isEmpty']||_0x1bc701&&_0x1bc701['isEmpty']){const _0x507f6a=_0x1bc701&&_0x1bc701['isEmpty']?_0x1bc701:_0x49a5cb;_0x12b0a1&&_0x12b0a1['type']==_0x348dce+'EmptyContainer'&&_0x12b0a1['element']['name']==_0x507f6a['name']?_0x12b0a1['quantity']++:_0x54f313['push']({'type':_0x348dce+'EmptyContainer','element':_0x507f6a,'quantity':0x1});}else _0x54f313['push']({'type':_0x348dce+'Container','element':_0x49a5cb});}}}}}['_resolveDescriptionItems'](_0x2146ed){const _0x54410a=this['_locale'],_0xe73520=[],_0x3ff909=[],_0xf2b449=[];for(const _0x36abca of _0x2146ed)switch(_0x36abca['type']){case'text':if(_0x36abca['add']=_0x36abca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x36abca['remove']=_0x36abca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x36abca['add']&&''!=_0x36abca['remove']){_0xe73520['push']({'type':'replace','content':o(_0x54410a,'REPLACE_TEXT',['\x22'+_0x36abca['remove']+'\x22','\x22'+_0x36abca['add']+'\x22'])});continue;}if(null!=_0x36abca['add']['match'](/^ +$/)){_0xe73520['push']({'type':'insertion','content':o(_0x54410a,'*Insert:*\x20%0',o(_0x54410a,'ELEMENT_SPACE',_0x36abca['add']['length']))});continue;}if(null!=_0x36abca['remove']['match'](/^ +$/)){_0xe73520['push']({'type':'deletion','content':o(_0x54410a,'*Remove:*\x20%0',o(_0x54410a,'ELEMENT_SPACE',_0x36abca['remove']['length']))});continue;}if(''!=_0x36abca['add']){_0xe73520['push']({'type':'insertion','content':o(_0x54410a,'*Insert:*\x20%0','\x22'+_0x36abca['add']+'\x22')});continue;}_0xe73520['push']({'type':'deletion','content':o(_0x54410a,'*Remove:*\x20%0','\x22'+_0x36abca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xe73520['push']({'type':'insertion','content':o(_0x54410a,'*Insert:*\x20%0',this['getItemLabel'](_0x36abca['element'],_0x36abca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xe73520['push']({'type':'deletion','content':o(_0x54410a,'*Remove:*\x20%0',this['getItemLabel'](_0x36abca['element'],_0x36abca['quantity']))});continue;case'addContainer':_0xe73520['push']({'type':'insertion','content':o(_0x54410a,'*Split:*\x20%0',this['getItemLabel'](_0x36abca['element'],_0x36abca['quantity']))});continue;case'removeContainer':_0xe73520['push']({'type':'deletion','content':o(_0x54410a,'*Merge:*\x20%0',this['getItemLabel'](_0x36abca['element'],_0x36abca['quantity']))});continue;case'addFormat':_0x3ff909['push'](_0x36abca['key']);continue;case'removeFormat':_0xf2b449['push'](_0x36abca['key']);continue;default:_0xe73520['push'](_0x36abca);}if(_0x3ff909['length']){const _0x31d341=_0x3ff909['map'](_0xe22e0a=>this['_attributeLabels']['has'](_0xe22e0a)?this['_attributeLabels']['get'](_0xe22e0a):_0xe22e0a)['join'](',\x20');_0xe73520['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x31d341)});}if(_0xf2b449['length']){const _0x955f70=_0xf2b449['map'](_0x2397ea=>this['_attributeLabels']['has'](_0x2397ea)?this['_attributeLabels']['get'](_0x2397ea):_0x2397ea)['join'](',\x20');_0xe73520['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x955f70)});}return _0xe73520;}['_handleCustomCallbackDescription'](_0x21d064){for(const _0x9e6cda of this['_customCallbacks']){const _0x463eb7=_0x9e6cda(_0x21d064);if(_0x463eb7&&'type'in _0x463eb7)return _0x463eb7;}}['_handleAttributeSuggestionDescription'](_0x349355,_0x37f7d1){const _0x516730=_0x37f7d1['data'],_0x5a8d40=void 0x0===_0x516730['newValue']?'removeFormat':'addFormat';_0x349355['push']({'type':_0x5a8d40,'key':_0x516730['key']});}['_handleRenameSuggestionDescription'](_0x5477cb,_0x3f71e7){_0x5477cb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3f71e7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d7026,_0x4e0f63,_0x7662a3){if(this['_addDescriptionItems'](_0x1d7026,_0x4e0f63),_0x7662a3&&_0x7662a3['getFirstRange']()&&!_0x4e0f63['getFirstRange']()['end']['isEqual'](_0x7662a3['getFirstRange']()['start'])){const _0x3dbba8=_0x1d7026[_0x1d7026['length']-0x1],_0x5c967e='insertion'==_0x4e0f63['type']?'add':'remove';_0x3dbba8&&'text'==_0x3dbba8['type']&&(_0x3dbba8[_0x5c967e]+='\x0a');}}}class U extends _0x6a3ec8{['afterInit'](){const _0x8593a9=this['editor'],_0x4828cb=_0x8593a9['plugins']['get']('TrackChangesEditing');_0x8593a9['commands']['get']('showAIAssistant')&&_0x4828cb['enableCommand']('showAIAssistant');}}class V extends _0x6a3ec8{['afterInit'](){const _0x65927b=this['editor'],_0x25d7d9=_0x65927b['locale'];if(!_0x65927b['plugins']['has']('AlignmentEditing'))return;const _0x158eb5=_0x65927b['plugins']['get']('TrackChangesEditing');_0x158eb5['enableDefaultAttributesIntegration']('alignment'),_0x158eb5['registerBlockAttribute']('alignment'),_0x158eb5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x25d7d9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16d2bb=this['editor'],_0x5f4642=_0x16d2bb['locale'];_0x16d2bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe013b6=>{if('formatBlock'!=_0xe013b6['type'])return;const {data:_0x3ef47a}=_0xe013b6;if(_0x3ef47a&&'alignment'==_0x3ef47a['commandName']){const _0x2118dd=_0x3ef47a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5f4642,'*Format:*\x20%0',function(_0x5504f2){switch(_0x5504f2){case'left':return o(_0x5f4642,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5f4642,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5f4642,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5f4642,'FORMAT_JUSTIFY_TEXT');}}(_0x2118dd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x6a3ec8{['afterInit'](){const _0x338b0d=this['editor'],_0x37bc11=_0x338b0d['plugins']['get']('TrackChangesEditing'),_0x21bdac=_0x338b0d['locale'];for(const _0x14c1ab of ti){if(!_0x338b0d['plugins']['has'](_0x14c1ab))continue;const _0x549586=_0x14c1ab['slice'](0x0,-0x7)['toLowerCase'](),_0x4926b4='FORMAT_'+_0x549586['toUpperCase']();_0x37bc11['enableDefaultAttributesIntegration'](_0x549586),_0x37bc11['registerInlineAttribute'](_0x549586),_0x37bc11['descriptionFactory']['registerAttributeLabel'](_0x549586,o(_0x21bdac,_0x4926b4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x347e37=this['editor'],_0x473a38=_0x347e37['locale'],_0x10fe5a=_0x347e37['plugins']['get']('TrackChangesEditing');function _0x36001c(_0x63703d,_0x246397){_0x10fe5a['descriptionFactory']['registerDescriptionCallback'](_0x34bb14=>{if('formatInline'!=_0x34bb14['type'])return;const {data:_0x5d686e}=_0x34bb14;return _0x5d686e&&_0x5d686e['commandName']===_0x63703d?_0x5d686e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x473a38,'*Format:*\x20%0',_0x246397)}:{'type':'format','content':o(_0x473a38,'*Remove\x20format:*\x20%0',_0x246397)}:void 0x0;});}_0x36001c('bold',o(_0x473a38,'FORMAT_BOLD')),_0x36001c('italic',o(_0x473a38,'FORMAT_ITALIC')),_0x36001c('underline',o(_0x473a38,'FORMAT_UNDERLINE')),_0x36001c('code',o(_0x473a38,'FORMAT_CODE')),_0x36001c('strikethrough',o(_0x473a38,'FORMAT_STRIKETHROUGH')),_0x36001c('subscript',o(_0x473a38,'FORMAT_SUBSCRIPT')),_0x36001c('superscript',o(_0x473a38,'FORMAT_SUPERSCRIPT'));}}class F extends _0x6a3ec8{['afterInit'](){const _0x555e09=this['editor'],_0x21d0b7=_0x555e09['locale'];if(!_0x555e09['plugins']['has']('BlockQuoteEditing'))return;const _0x2e144d=_0x555e09['plugins']['get']('TrackChangesEditing'),_0x200b23=this['editor']['commands']['get']('blockQuote');_0x2e144d['enableCommand']('blockQuote',(_0x54c7ad,_0xb54a7c={})=>{const _0x29928f=this['editor']['model']['document']['selection'],_0x291cf6=_0xb54a7c&&void 0x0!==_0xb54a7c['forceValue']?_0xb54a7c['forceValue']:!_0x200b23['value'];let _0x19fa91=[];if(_0x291cf6){const _0x57c0c5=Array['from'](_0x29928f['getSelectedBlocks']())['filter'](_0x56cc87=>oo(_0x56cc87)||function(_0x3fbd13,_0x3d496f){const _0x53aac2=_0x3d496f['checkChild'](_0x3fbd13['parent'],'blockQuote'),_0x55e6d4=_0x3d496f['checkChild'](['$root','blockQuote'],_0x3fbd13);return _0x53aac2&&_0x55e6d4;}(_0x56cc87,this['editor']['model']['schema']));_0x19fa91=to(_0x57c0c5,_0x555e09['model']);}else{const _0x5c38f1=Array['from'](_0x29928f['getSelectedBlocks']())['filter'](_0x4f6e70=>oo(_0x4f6e70));_0x19fa91=to(_0x5c38f1,_0x555e09['model']);}_0x555e09['model']['change'](()=>{for(const _0x5d075b of _0x19fa91)_0x2e144d['markBlockFormat'](_0x5d075b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x291cf6}]});});}),_0x2e144d['descriptionFactory']['registerDescriptionCallback'](_0x37fde6=>{const {data:_0x159b35}=_0x37fde6;if(_0x159b35&&'blockQuote'==_0x159b35['commandName']){const _0x3929ad=o(_0x21d0b7,'ELEMENT_BLOCK_QUOTE');return _0x159b35['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x21d0b7,'*Set\x20format:*\x20%0',_0x3929ad)}:{'type':'format','content':o(_0x21d0b7,'*Remove\x20format:*\x20%0',_0x3929ad)};}});}}function oo(_0x53f43a){return'blockQuote'==_0x53f43a['parent']['name'];}class L extends _0x6a3ec8{['afterInit'](){const _0x25b8fc=this['editor'],_0x4f8ac0=_0x25b8fc['locale'],_0x1a91f6=_0x25b8fc['plugins']['get']('TrackChangesEditing');_0x25b8fc['plugins']['has']('BookmarkEditing')&&(_0x1a91f6['enableCommand']('insertBookmark'),_0x1a91f6['enableDefaultAttributesIntegration']('updateBookmark'),_0x1a91f6['registerBlockAttribute']('bookmarkId'),_0x1a91f6['descriptionFactory']['registerDescriptionCallback'](_0x2182ab=>{if('insertion'!=_0x2182ab['type']&&'deletion'!=_0x2182ab['type']&&'attribute'!=_0x2182ab['type'])return;const _0x461194=_0x2182ab['getContainedElement']();if(null==_0x461194)return;if(!_0x461194['is']('element','bookmark'))return;const _0x58759f=_0x461194['getAttribute']('bookmarkId');if('insertion'==_0x2182ab['type'])return{'type':'insertion','content':o(_0x4f8ac0,'*Insert:*\x20%0','\x22'+_0x58759f+'\x22\x20'+o(_0x4f8ac0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2182ab['type'])return{'type':'deletion','content':o(_0x4f8ac0,'*Remove:*\x20%0','\x22'+_0x58759f+'\x22\x20'+o(_0x4f8ac0,'ELEMENT_BOOKMARK'))};const {data:_0x1ca41b}=_0x2182ab;if(!_0x1ca41b||'bookmarkId'!=_0x1ca41b['key'])return;return{'type':'format','content':o(_0x4f8ac0,'*Set\x20bookmark:*\x20%0','\x22'+_0x1ca41b['newValue']+'\x22')};}));}}class J extends _0x6a3ec8{['afterInit'](){const _0x22928e=this['editor'];_0x22928e['plugins']['has']('CaseChange')&&(_0x22928e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x22928e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x22928e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x6a3ec8{['afterInit'](){const _0x63b0e8=this['editor'];_0x63b0e8['commands']['get']('ckbox')&&_0x63b0e8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x6a3ec8{['afterInit'](){const _0x432a33=this['editor'];if(!_0x432a33['plugins']['has']('CodeBlock'))return;const _0x4df4a7=_0x432a33['plugins']['get']('TrackChangesEditing'),_0x191820=_0x432a33['locale'],_0x55eb36=_0x432a33['config']['get']('codeBlock')['languages'],_0x4ec03a=_0x432a33['commands']['get']('codeBlock');_0x4df4a7['enableCommand']('indentCodeBlock'),_0x4df4a7['enableCommand']('outdentCodeBlock'),_0x4df4a7['enableCommand']('codeBlock',(_0x51af00,_0x4ef37d={})=>{const _0x4b3b71=_0x432a33['model'],_0x59d373=_0x432a33['model']['document']['selection'],_0x315b80=_0x4ef37d&&void 0x0!==_0x4ef37d['forceValue']?_0x4ef37d['forceValue']:!_0x4ec03a['value'];let _0x3d65d3;_0x4ef37d['language']||(_0x4ef37d['language']=_0x55eb36[0x0]['language']),_0x3d65d3=_0x315b80?Array['from'](_0x59d373['getSelectedBlocks']())['filter'](_0x3030ee=>eo(_0x3030ee)||function(_0x57e097,_0x311fe6){if(_0x57e097['is']('rootElement')||_0x311fe6['isLimit'](_0x57e097))return!0x1;return _0x311fe6['checkChild'](_0x57e097['parent'],'codeBlock');}(_0x3030ee,_0x4b3b71['schema'])):Array['from'](_0x59d373['getSelectedBlocks']())['filter'](_0x528823=>eo(_0x528823));const _0x17fd5c=to(_0x3d65d3,_0x4b3b71);_0x4b3b71['change'](()=>{for(const _0x27db95 of _0x17fd5c)_0x4df4a7['markBlockFormat'](_0x27db95,{'commandName':'codeBlock','commandParams':[{..._0x4ef37d,'forceValue':_0x315b80}],'formatGroupId':'blockName'});});}),(_0x4df4a7['descriptionFactory']['registerElementLabel']('codeBlock',_0x2657dd=>o(_0x191820,'ELEMENT_CODE_BLOCK',_0x2657dd)),_0x4df4a7['descriptionFactory']['registerDescriptionCallback'](_0x493609=>{if('formatBlock'!=_0x493609['type'])return;const _0x4a3102=_0x191820['t'],{data:_0x55327e}=_0x493609;if(!_0x55327e||'codeBlock'!=_0x55327e['commandName'])return;const _0x5100ab=_0x55327e['commandParams'][0x0]['language'],_0xe4bc57=_0x4a3102(_0x55eb36['find'](_0xe793cc=>_0xe793cc['language']===_0x5100ab)['label'])['toLowerCase']();return _0x55327e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x191820,'*Set\x20format:*\x20%0',o(_0x191820,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe4bc57+')')}:{'type':'format','content':o(_0x191820,'*Remove\x20format:*\x20%0',o(_0x191820,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5dec79){return'codeBlock'==_0x5dec79['name'];}class z extends _0x6a3ec8{['afterInit'](){const _0x55e76c=this['editor'];if(!_0x55e76c['plugins']['has']('CommentsEditing'))return;_0x55e76c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5b99ad,_0x460b5e,_0x266ad4){const _0x557ff8=[];for(const _0x4589bb of _0x460b5e['getItems']())_0x4589bb['hasAttribute'](_0x5b99ad)&&_0x557ff8['push'](_0x266ad4['createRangeOn'](_0x4589bb));return _0x557ff8;}function De(_0x1483c5,_0x364ac2,{showActiveMarker:_0x3b894a=!0x0}={}){const _0x5b58ee=_0x1483c5['plugins']['get']('TrackChangesEditing');return(_0x4f5884,_0x77309e,_0x220941)=>{if(!_0x220941['consumable']['test'](_0x77309e['markerRange'],_0x4f5884['name']))return;const _0x448931=_0x77309e['markerRange']['getWalker'](),_0x1ab7b3=_0x77309e['markerRange']['start'],_0x1013de=_0x1483c5['model']['schema'];let _0x5a352e=null,_0x560121=null,_0xf66e6a=!0x1,_0x3ea3da=!0x1;for(const _0x3233b5 of _0x448931){const _0x52e444=_0x3233b5['item'];_0xf66e6a=_0xf66e6a||_0x1013de['isContent'](_0x52e444);const _0x39e7b2=_0x220941['mapper']['toViewElement'](_0x52e444);if(_0x39e7b2&&_0x39e7b2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3233b5['type']&&(_0x1013de['isBlock'](_0x52e444)&&!_0x1013de['isLimit'](_0x52e444)&&(_0x52e444['nextSibling']||_0x1ab7b3['isAtEnd']?_0x5a352e&&_0x5a352e['parent']==_0x52e444||(_0x5a352e=_0x52e444,_0xeede08(_0x3233b5['previousPosition']),_0x3ea3da=!0x0):_0x560121=_0x560121||_0x3233b5['previousPosition']));}function _0xeede08(_0x1d28c2){const {authorId:_0x407d57}=_0x5b58ee['_splitMarkerName'](_0x77309e['markerName']),_0x47a254=_0x220941['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x364ac2,'data-author-id':_0x407d57}),_0x5dc759=_0x220941['mapper']['toViewPosition'](_0x1d28c2);_0x3b894a&&_0x5b58ee['activeMarkers']['includes'](_0x77309e['markerName'])&&_0x220941['writer']['addClass']('ck-suggestion-marker--active',_0x47a254),_0x220941['writer']['insert'](_0x5dc759,_0x47a254),_0x220941['mapper']['bindElementToMarker'](_0x47a254,_0x77309e['markerName']);}_0xf66e6a||_0x3ea3da||!_0x560121||_0xeede08(_0x560121);};}class K extends _0x6a3ec8{static get['requires'](){return[_0x385f1d];}['init'](){const _0x35b3c1=this['editor'],_0x185d76=_0x35b3c1['plugins']['get']('TrackChangesEditing');_0x185d76['enableCommand']('delete');const _0xd73530=_0x35b3c1['commands']['get']('deleteForward');_0x185d76['enableCommand']('deleteForward',(_0x5e32f1,_0x2116e7={})=>{const _0x12318e=_0x35b3c1['model']['createSelection'](_0x35b3c1['model']['document']['selection']);_0x12318e['isCollapsed']&&_0x35b3c1['model']['modifySelection'](_0x12318e,{'direction':'forward','unit':_0x2116e7['unit']});const _0x3c570d=_0x12318e['getFirstRange'](),_0x1875ae=_0x36d42c['fromRange'](_0x3c570d);let _0x22e385;_0x5e32f1(_0x2116e7),_0x22e385='$graveyard'==_0x1875ae['root']['rootName']?_0x35b3c1['model']['createRange'](_0x3c570d['start']):_0x35b3c1['model']['createRange'](_0x1875ae['start'],_0x1875ae['end']),_0x1875ae['detach'](),_0x35b3c1['model']['enqueueChange'](_0xd73530['buffer']['batch'],_0x460ab9=>{_0xd73530['buffer']['lock'](),_0x460ab9['setSelection'](_0x460ab9['createRange'](_0x22e385['end'])),_0xd73530['buffer']['unlock']();});}),_0x35b3c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x35b3c1,'merge'),{'priority':'high'}),_0x35b3c1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5186fc,_0x357b5d,_0x4eb571)=>{_0x4eb571['options']['showSuggestionHighlights']&&De(_0x35b3c1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5186fc,_0x357b5d,_0x4eb571);},{'priority':'high'}),_0x35b3c1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2d5759,_0x481832,_0x16c093)=>{const _0x35d6de=_0x16c093['mapper']['markerNameToElements'](_0x481832['markerName']);if(_0x35d6de){for(const _0x5d6ee0 of _0x35d6de)_0x5d6ee0['is']('uiElement')&&(_0x16c093['mapper']['unbindElementFromMarkerName'](_0x5d6ee0,_0x481832['markerName']),_0x16c093['writer']['remove'](_0x5d6ee0));}},{'priority':'high'});}}class W extends _0x6a3ec8{['afterInit'](){const _0xcfb7d7=this['editor'];if(!_0xcfb7d7['plugins']['has']('ListEditing'))return;const _0x25a208=_0xcfb7d7['locale'],_0x4bf489=_0xcfb7d7['plugins']['get']('TrackChangesEditing'),_0x306f64=_0xcfb7d7['plugins']['has']('TodoListEditing'),_0x2c92c6=!!_0xcfb7d7['config']['get']('list.multiBlock');function _0x2dfb12(_0x5e30ca){return{'type':'format','content':''+o(_0x25a208,'*Set\x20format:*\x20%0',_0x5e30ca)};}function _0x228097(_0x277da5){return{'type':'format','content':''+o(_0x25a208,'*Remove\x20format:*\x20%0',_0x277da5)};}_0x4bf489['enableDefaultAttributesIntegration']('numberedList'),_0x4bf489['enableDefaultAttributesIntegration']('bulletedList'),_0x4bf489['enableDefaultAttributesIntegration']('customNumberedList'),_0x4bf489['enableDefaultAttributesIntegration']('customBulletedList'),_0x4bf489['enableDefaultAttributesIntegration']('indentList'),_0x4bf489['enableDefaultAttributesIntegration']('outdentList'),_0x4bf489['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4bf489['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4bf489['registerBlockAttribute']('listItemId'),_0x4bf489['registerBlockAttribute']('listType'),_0x4bf489['registerBlockAttribute']('listIndent'),_0x2c92c6&&(_0x4bf489['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4bf489['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x306f64&&(_0x4bf489['enableDefaultAttributesIntegration']('todoList'),_0x4bf489['enableDefaultAttributesIntegration']('checkTodoList'),_0x4bf489['registerBlockAttribute']('todoListChecked'),_0x4bf489['descriptionFactory']['registerDescriptionCallback'](_0x63061d=>{const {data:_0x48d725}=_0x63061d;if(_0x48d725&&'todoListChecked'==_0x48d725['key'])return{'type':'format','content':_0x48d725['newValue']?o(_0x25a208,'*Check\x20item*'):o(_0x25a208,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3d25d6=>{if(_0x3d25d6['batch']['isUndo'])return!0x1;let _0x234bb4=!0x1;const _0x58f2e4=_0x4bf489['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x342572=>'todoListChecked'===_0x4bf489['_getAttributeKey'](_0x342572));for(const _0x501741 of _0x58f2e4){'todo'!=_0x501741['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4bf489['_findSuggestions'](_0x501741['getFirstRange'](),'attribute')['find'](_0x4b4a0b=>'listType'===_0x4bf489['_getAttributeKey'](_0x4b4a0b['suggestion']))||(_0x3d25d6['removeMarker'](_0x501741['getFirstMarker']()),_0x234bb4=!0x0));}return _0x234bb4;})),_0x4bf489['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x25a208,'FORMAT_INDENT'));const _0x594322={'type':'format','content':''};_0x4bf489['descriptionFactory']['registerDescriptionCallback'](_0x20e297=>{const {data:_0x480afd}=_0x20e297;if(!_0x480afd||'listType'!=_0x480afd['key'])return;let _0xb908f4=_0x20e297['head'];for(;_0xb908f4;){if(_0xb908f4['data']&&(('listStyle'==_0xb908f4['data']['key']||'listMarkerStyle'==_0xb908f4['data']['key'])&&(_0xb908f4['data']['newValue']&&'default'!=_0xb908f4['data']['newValue']||'default'!=_0xb908f4['data']['oldValue']&&!_0x480afd['newValue'])||!_0x2c92c6&&_0xb908f4['data']['key']==m))return _0x594322;_0xb908f4=_0xb908f4['next'];}if(null==_0x480afd['newValue'])switch(_0x480afd['oldValue']){case'bulleted':return _0x228097(o(_0x25a208,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x228097(o(_0x25a208,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x228097(o(_0x25a208,'ELEMENT_TODO_LIST'));}switch(_0x480afd['newValue']){case'bulleted':return _0x2dfb12(o(_0x25a208,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2dfb12(o(_0x25a208,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2dfb12(o(_0x25a208,'ELEMENT_TODO_LIST'));}}),_0x4bf489['descriptionFactory']['registerDescriptionCallback'](_0x1565e0=>{const {data:_0x3cce24}=_0x1565e0;if(_0x3cce24&&'listIndent'==_0x3cce24['key'])return null==_0x3cce24['newValue']||null==_0x3cce24['oldValue']&&0x0==_0x3cce24['newValue']?_0x594322:void 0x0;}),_0x4bf489['descriptionFactory']['registerDescriptionCallback'](_0x4fa463=>{if('attribute'!=_0x4fa463['type'])return;const {data:_0x2034f9}=_0x4fa463;if(!_0x2034f9||'listItemId'!=_0x2034f9['key'])return;const _0x752b4b=Te(_0x4fa463);return'newValue'==_0x752b4b?{'type':'format','content':o(_0x25a208,'*Merge:*\x20list\x20item')}:'oldValue'==_0x752b4b?{'type':'format','content':o(_0x25a208,'*Split:*\x20list\x20item')}:_0x594322;}),_0xcfb7d7['model']['document']['registerPostFixer'](_0x5c0292=>this['listItemIdFixer'](_0x5c0292)),_0xcfb7d7['model']['document']['registerPostFixer'](_0x139809=>this['noTrackChangesFixer'](_0x139809)),_0xcfb7d7['model']['document']['on']('change:data',(_0x7c1812,_0x3f0ad0)=>{if(_0x3f0ad0['isUndo']||!_0x3f0ad0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x135c11){if(_0x135c11['batch']['isUndo']||!_0x135c11['batch']['isLocal'])return!0x1;let _0x35c555=!0x1;const _0x16c1a7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23429f=>_0x23429f['data']&&'listItemId'==_0x23429f['data']['key'])['filter'](_0x36153a=>_0x36153a['data']['newValue']&&_0x36153a['data']['oldValue']);for(const _0x4cac65 of _0x16c1a7)Te(_0x4cac65)||(_0x135c11['removeMarker'](_0x4cac65['getFirstMarker']()),_0x35c555=!0x0);return _0x35c555;}['noTrackChangesFixer'](_0x376f30){if(_0x376f30['batch']['isUndo']||!_0x376f30['batch']['isLocal'])return!0x1;const _0x2733a4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2733a4['trackChangesCommand']['value'])return!0x1;let _0x2248cb=!0x1;const _0x6799d1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5d066d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xd8e8d0=>'attribute'==_0xd8e8d0['type'])['filter'](_0x58046f=>_0x6799d1['includes'](_0x58046f['attributeKey']));if(0x0==_0x5d066d['length'])return _0x2248cb;for(const _0x2f39e0 of _0x5d066d){const _0x4c2071=_0x2733a4['_findSuggestions'](_0x2f39e0['range'],'attribute')['filter'](_0x18aca2=>!_0x18aca2['meta']['isNextTo'])['map'](_0x4f583e=>_0x4f583e['suggestion'])['filter'](_0x2b50ef=>{const _0x308687=_0x2733a4['_getAttributeKey'](_0x2b50ef);return _0x6799d1['includes'](_0x308687);});if(_0x4c2071['length']){for(const _0x575671 of _0x4c2071)_0x376f30['removeMarker'](_0x575671['getFirstMarker']());_0x2248cb=!0x0;}}return _0x2248cb;}['assureChains'](){const _0x56ff01=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35a1a0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3b7377;const _0x5161df=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x935db5=>{if(_0x935db5['data']['oldRange']||!_0x935db5['data']['newRange'])return null;if(!_0x935db5['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xb67db3}=_0x56ff01['_splitMarkerName'](_0x935db5['name']);if(!_0x56ff01['hasSuggestion'](_0xb67db3))return null;const _0x1c99d4=_0x56ff01['getSuggestion'](_0xb67db3);return _0x35a1a0['includes'](_0x1c99d4['data']['key']);})['map'](_0x42d7c7=>{const {id:_0xc08d05}=_0x56ff01['_splitMarkerName'](_0x42d7c7['name']),_0x4326a3=_0x56ff01['getSuggestion'](_0xc08d05);return _0x3b7377=_0x4326a3['attributes']['groupId'],_0x4326a3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5161df['size'])return;const _0x5a7194=_0x56ff01['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x374e18=>'attribute'==_0x374e18['type']&&_0x374e18['data']&&_0x35a1a0['includes'](_0x374e18['data']['key'])&&_0x374e18['attributes']['groupId']!=_0x3b7377)['map'](_0x2f697c=>({'listItem':_0x2f697c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2f697c['attributes']['groupId']})),_0x8b63ea=new Set();for(const {groupId:_0x42d071,listItem:_0xf9f7b8}of _0x5a7194)_0x5161df['has'](_0xf9f7b8)&&_0x8b63ea['add'](_0x42d071);for(const _0x17eb78 of _0x56ff01['getSuggestions']())_0x8b63ea['has'](_0x17eb78['attributes']['groupId'])&&_0x17eb78['setAttribute']('groupId',_0x3b7377);}['_supportLegacySuggestions'](){const _0x9f92c1=this['editor'],_0x1b78d8=_0x9f92c1['locale'],_0x501e6c=_0x9f92c1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x501e6c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xff01b4,_0x33a81e){const _0x12f1f3=[];for(let _0x36206c of _0xff01b4)_0x36206c['start']['nodeAfter']===_0x36206c['end']['parent']&&(_0x36206c=_0x9f92c1['model']['createRange'](_0x9f92c1['model']['createPositionAt'](_0x36206c['start']['nodeAfter'],0x0))),_0x12f1f3['push'](_0x36206c);_0x9f92c1['model']['change'](_0x3cefc4=>{const _0x45a51f=_0x9f92c1['model']['document']['selection'],_0x22c5ff=Array['from'](_0x45a51f['getRanges']())['map'](_0x3e360f=>_0x36d42c['fromRange'](_0x3e360f));_0x3cefc4['setSelection'](_0x12f1f3),_0x9f92c1['commands']['get'](_0x33a81e['commandName'])['refresh'](),_0x33a81e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x9f92c1['execute'](_0x33a81e['commandName'],..._0x33a81e['commandParams']),_0x3cefc4['setSelection'](_0x22c5ff);for(const _0x5c90e5 of _0x22c5ff)_0x5c90e5['detach']();});}),_0x501e6c['descriptionFactory']['registerElementLabel'](function(_0x31513a){const _0x57ebc6=!_0x9f92c1['model']['schema']['isObject'](_0x31513a),_0x33d251=_0x31513a['previousSibling'],_0x152508=_0x31513a['nextSibling'],_0x265495=_0x31513a['getAttribute']('listItemId'),_0x49f893=!_0x33d251||_0x33d251['getAttribute']('listItemId')!==_0x265495,_0x30ef17=!_0x152508||_0x152508['getAttribute']('listItemId')!==_0x265495;return _0x57ebc6&&Boolean(_0x265495)&&_0x49f893&&_0x30ef17;},_0x55a998=>o(_0x1b78d8,'ELEMENT_LIST_ITEM',_0x55a998));}['_registerLegacyDescription'](){const _0x482893=this['editor'],_0x4a5040=_0x482893['locale'];function _0x5c2acd(_0x2f657d){const _0x3cb1c0=_0x482893['commands']['get']('bulletedList')['value'],_0xa77b7f=_0x482893['commands']['get']('numberedList')['value'];return'numberedList'===_0x2f657d?_0x3cb1c0:_0xa77b7f;}_0x482893['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x194fa9){if('formatBlock'!=_0x194fa9['type'])return;const {data:_0x4eae4c}=_0x194fa9;if(!_0x4eae4c)return;let _0x372fe0,_0x5928b3,_0x764118,_0x21320f;switch(_0x4eae4c['commandName']){case'bulletedList':_0x764118=_0x4eae4c['commandParams'][0x0]['forceValue'],_0x21320f=_0x5c2acd(_0x4eae4c['commandName']),_0x372fe0=_0x764118?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x21320f&&_0x482893['config']['get']('list.multiBlock')||(_0x372fe0='*Change\x20to:*\x20%0'),_0x5928b3={'type':'format','content':o(_0x4a5040,_0x372fe0,o(_0x4a5040,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x764118=_0x4eae4c['commandParams'][0x0]['forceValue'],_0x21320f=_0x5c2acd(_0x4eae4c['commandName']),_0x372fe0=_0x764118?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x21320f&&_0x482893['config']['get']('list.multiBlock')||(_0x372fe0='*Change\x20to:*\x20%0'),_0x5928b3={'type':'format','content':o(_0x4a5040,_0x372fe0,o(_0x4a5040,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x372fe0='*Indent:*\x20%0',_0x5928b3={'type':'format','content':o(_0x4a5040,_0x372fe0,o(_0x4a5040,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x372fe0=function(_0x3e606f){const _0x4d2d2c=_0x3e606f['getFirstRange']();let _0x4591cf=_0x4d2d2c['start']['nodeAfter'];for(;_0x4591cf&&_0x4d2d2c['containsItem'](_0x4591cf);){if(_0x4591cf['getAttribute']('listIndent')>0x0)return!0x1;_0x4591cf=_0x4591cf['nextSibling'];}return!0x0;}(_0x194fa9)?o(_0x4a5040,'*Format:*\x20remove\x20from\x20%0',o(_0x4a5040,function(_0x16eedd){return'ELEMENT_'+_0x16eedd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x194fa9))):o(_0x4a5040,'*Outdent:*\x20%0',o(_0x4a5040,'ELEMENT_LIST_ITEM')),_0x5928b3={'type':'format','content':_0x372fe0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4eae4c['multipleBlocks']&&(_0x372fe0='*Merge:*\x20%0',_0x5928b3={'type':'deletion','content':o(_0x4a5040,_0x372fe0,o(_0x4a5040,'ELEMENT_LIST_ITEM'))});}return _0x5928b3;});}}function Te(_0x5b6dfd){let _0x53acc6=_0x5b6dfd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x53acc6;){const _0xf6f21f=_0x53acc6['getAttribute']('listItemId');if(!_0xf6f21f)return!0x1;if(_0xf6f21f==_0x5b6dfd['data']['newValue'])return'newValue';if(_0xf6f21f==_0x5b6dfd['data']['oldValue'])return'oldValue';_0x53acc6=_0x53acc6['previousSibling'];}return!0x1;}class Se extends _0x6a3ec8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x39e322=this['editor']['config']['get']('list.properties'),_0x2e7cba=this['editor']['plugins']['get']('TrackChangesEditing');_0x39e322['styles']&&(_0x2e7cba['enableDefaultAttributesIntegration']('listStyle'),_0x2e7cba['registerBlockAttribute']('listStyle')),_0x39e322['reversed']&&(_0x2e7cba['enableDefaultAttributesIntegration']('listReversed'),_0x2e7cba['registerBlockAttribute']('listReversed')),_0x39e322['startIndex']&&(_0x2e7cba['enableDefaultAttributesIntegration']('listStart'),_0x2e7cba['registerBlockAttribute']('listStart'));const _0x35d6ba={'type':'format','content':''};_0x2e7cba['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b1b58=this['editor']['locale'];_0x2e7cba['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b1b58,'FORMAT_LIST_REVERSED')),_0x2e7cba['descriptionFactory']['registerDescriptionCallback'](_0x5386e9=>{const {data:_0x3b0687}=_0x5386e9;if(_0x3b0687&&'listReversed'==_0x3b0687['key'])return null==_0x3b0687['newValue']||0x0==_0x3b0687['newValue']&&null==_0x3b0687['oldValue']?_0x35d6ba:void 0x0;}),_0x2e7cba['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b1b58,'FORMAT_LIST_START')),_0x2e7cba['descriptionFactory']['registerDescriptionCallback'](_0x43fdfc=>{const {data:_0x38f78e}=_0x43fdfc;if(_0x38f78e&&'listStart'==_0x38f78e['key'])return null==_0x38f78e['newValue']||0x1==_0x38f78e['newValue']&&null==_0x38f78e['oldValue']?_0x35d6ba:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4edc8b=>{if(_0x4edc8b['batch']['isUndo'])return!0x1;let _0x4acbed=!0x1;const _0x9b5cdc=_0x2e7cba['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x564d35=>{const _0x58ccf8=_0x2e7cba['_getAttributeKey'](_0x564d35);return'listStart'==_0x58ccf8||'listReversed'==_0x58ccf8;});for(const _0x5f2e9f of _0x9b5cdc){const _0x2947d4=_0x5f2e9f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2947d4||'customNumbered'==_0x2947d4)continue;_0x2e7cba['_findSuggestions'](_0x5f2e9f['getFirstRange'](),'attribute')['find'](_0x472f87=>'listType'==_0x2e7cba['_getAttributeKey'](_0x472f87['suggestion']))||(_0x4edc8b['removeMarker'](_0x5f2e9f['getFirstMarker']()),_0x4acbed=!0x0);}return _0x4acbed;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5d9681){const _0x2ab7fa=this['editor']['locale'],{data:_0x202fdd}=_0x5d9681,_0x34c543={'type':'format','content':''};if(!_0x202fdd||'listStyle'!=_0x202fdd['key'])return;if(!_0x202fdd['oldValue'])return'default'==_0x202fdd['newValue']?_0x34c543:{'type':'format','content':''+o(_0x2ab7fa,'*Set\x20format:*\x20%0',o(_0x2ab7fa,this['_getTranslationKeyForListStyle'](_0x202fdd['newValue'])))};if(!_0x202fdd['newValue']){if('default'==_0x202fdd['oldValue'])return _0x34c543;let _0x493d81=_0x5d9681['head'];for(;_0x493d81;){if(_0x493d81['data']&&'listType'==_0x493d81['data']['key']&&_0x493d81['data']['newValue'])return _0x34c543;_0x493d81=_0x493d81['next'];}return{'type':'format','content':''+o(_0x2ab7fa,'*Remove\x20format:*\x20%0',o(_0x2ab7fa,this['_getTranslationKeyForListStyle'](_0x202fdd['oldValue'])))};}if('default'!=_0x202fdd['newValue'])return{'type':'format','content':''+o(_0x2ab7fa,'*Set\x20format:*\x20%0',o(_0x2ab7fa,this['_getTranslationKeyForListStyle'](_0x202fdd['newValue'])))};let _0x1bfd0b=_0x5d9681['head'];for(;_0x1bfd0b;){if(_0x1bfd0b['data']&&'listType'==_0x1bfd0b['data']['key']&&_0x1bfd0b['data']['newValue']&&_0x1bfd0b['data']['oldValue'])return _0x34c543;_0x1bfd0b=_0x1bfd0b['next'];}return{'type':'format','content':o(_0x2ab7fa,'*Set\x20format:*\x20%0',o(_0x2ab7fa,'ELEMENT_'+_0x5d9681['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x7094f8=this['editor'],_0x16f17a=_0x7094f8['locale'];_0x7094f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x258d10=>{if('formatBlock'!=_0x258d10['type'])return;const {data:_0x484e47}=_0x258d10;if(!_0x484e47)return;let _0x270991,_0x444d6d;switch(_0x484e47['commandName']){case'listStyle':_0x270991='*Change\x20to:*\x20%0',_0x444d6d={'type':'format','content':o(_0x16f17a,_0x270991,o(_0x16f17a,this['_getTranslationKeyForListStyle'](_0x484e47['commandParams'][0x0]['type'])))};break;case'listReversed':_0x270991=_0x484e47['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x444d6d={'type':'format','content':o(_0x16f17a,_0x270991)};break;case'listStart':_0x270991='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x444d6d={'type':'format','content':o(_0x16f17a,_0x270991,_0x484e47['commandParams'][0x0]['startIndex'])};}return _0x444d6d;});}['_getTranslationKeyForListStyle'](_0x5b79c2){return'ELEMENT_'+function(_0x4f8dfe){if(_e['includes'](_0x4f8dfe))return'bulleted';if(Re['includes'](_0x4f8dfe))return'numbered';return null;}(_0x5b79c2)['toUpperCase']()+'_LIST_'+_0x5b79c2['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x6a3ec8{['afterInit'](){const _0x46fc6f=this['editor'];_0x46fc6f['commands']['get']('emoji')&&_0x46fc6f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x6a3ec8{static get['requires'](){return[_0xbcef9];}['init'](){const _0x10b494=this['editor'],_0x30d303=_0x10b494['plugins']['get']('TrackChangesEditing'),_0x282497=_0x10b494['commands']['get']('enter');_0x30d303['enableCommand']('enter',()=>{_0x10b494['model']['change'](_0x58da24=>{const _0x4d6ce3=_0x10b494['model']['document']['selection'],_0x301330=_0x4d6ce3['getFirstPosition'](),_0x263ee5=_0x36d42c['fromRange'](_0x4d6ce3['getFirstRange']());if(_0x282497['enterBlock'](_0x58da24)){const _0x36f820=_0x10b494['model']['createPositionAt'](_0x301330['parent']['nextSibling'],0x0),_0x1e71a0=_0x58da24['createRange'](_0x301330,_0x36f820);_0x30d303['markInsertion'](_0x1e71a0);}else _0x58da24['setSelection'](_0x58da24['createRange'](_0x263ee5['end']));_0x263ee5['detach'](),_0x282497['fire']('afterExecute',{'writer':_0x58da24});});}),_0x10b494['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x10b494,'split'),{'priority':'high'}),_0x10b494['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x353ad5,_0x50bec6,_0x4af458)=>{const _0x541a67=_0x4af458['mapper']['markerNameToElements'](_0x50bec6['markerName']);if(_0x541a67){for(const _0x557fab of _0x541a67)_0x557fab['hasClass']('ck-suggestion-marker-split')&&(_0x4af458['mapper']['unbindElementFromMarkerName'](_0x557fab,_0x50bec6['markerName']),_0x4af458['writer']['remove'](_0x557fab));}},{'priority':'high'}),_0x10b494['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3718ac,_0x2173f0,_0x4ee916)=>{_0x4ee916['options']['showSuggestionHighlights']&&De(_0x10b494,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3718ac,_0x2173f0,_0x4ee916);},{'priority':'high'});}}class Z extends _0x6a3ec8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x247e4b=this['editor']['plugins']['get']('TrackChangesEditing');_0x247e4b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x247e4b['enableCommand']('findNext'),_0x247e4b['enableCommand']('findPrevious'),_0x247e4b['enableCommand']('replace'),_0x247e4b['enableCommand']('replaceAll');}['handleFindCommand'](_0x348a09,_0x2c0158,_0x219f9c={}){const _0x298536=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x348a09(_0x19a64b=>{let _0x4c549a=('string'==typeof _0x2c0158?_0x298536['findByTextCallback'](_0x2c0158,_0x219f9c):_0x2c0158)(_0x19a64b);Array['isArray'](_0x4c549a)&&(_0x4c549a={'results':_0x4c549a,'searchText':'string'==typeof _0x2c0158?_0x2c0158:''});const _0x5467c2=_0x4c549a['results']['filter'](_0x5c4de2=>!0x1===this['_isInDeletionRange'](_0x5c4de2,_0x19a64b['item']));return{..._0x4c549a,'results':_0x5467c2};},_0x219f9c);}['_isInDeletionRange'](_0x5567db,_0x3b2e0a){const _0x3963e6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b2e0a,_0x5567db['start']),this['editor']['model']['createPositionAt'](_0x3b2e0a,_0x5567db['end']));for(const _0x32a833 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3963e6['getIntersection'](_0x32a833['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x6a3ec8{['afterInit'](){const _0x21ff33=this['editor']['locale'],_0x160d07=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x435307,commandName:_0x151b05}of ro)this['editor']['plugins']['has'](_0x435307)&&(_0x160d07['enableDefaultAttributesIntegration'](_0x151b05),_0x160d07['registerInlineAttribute'](_0x151b05));_0x160d07['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x21ff33,'FORMAT_FONT_SIZE')),_0x160d07['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x21ff33,'FORMAT_FONT_FAMILY')),_0x160d07['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x21ff33,'FORMAT_FONT_COLOR')),_0x160d07['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x21ff33,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55c834=this['editor'],_0x382297=_0x55c834['locale'];_0x55c834['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c6175=>{const _0x5c58cd=_0x382297['t'];if('formatInline'!=_0x4c6175['type'])return;const {data:_0x387c92}=_0x4c6175;if(null!=_0x387c92){if('fontSize'==_0x387c92['commandName']){const _0x4b076b=_0x387c92['commandParams'][0x0]['value'];if(_0x4b076b){const _0x1e2d06=_0x5c58cd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f1eda=>_0x4f1eda['model']==_0x4b076b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x382297,'*Set\x20font\x20size:*\x20%0',_0x1e2d06)};}return{'type':'format','content':o(_0x382297,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x387c92['commandName']){const _0x103c65=_0x387c92['commandParams'][0x0]['value'];return _0x103c65?{'type':'format','content':o(_0x382297,'*Set\x20font\x20family:*\x20%0',_0x103c65)}:{'type':'format','content':o(_0x382297,'*Reset\x20font\x20family*')};}if('fontColor'==_0x387c92['commandName']){const _0x1928ee=_0x387c92['commandParams'][0x0]['value'];if(_0x1928ee){const _0x11b56b=_0x365eb3(this['editor']['config']['get']('fontColor.colors'))['find'](_0xab6b25=>_0xab6b25['model']==_0x1928ee);let _0x3eb4c6=_0x1928ee,_0xf3d7d1='';return _0x11b56b&&(_0x3eb4c6=_0x11b56b['label'],_0xf3d7d1=_0x5c58cd(_0x3eb4c6)['toLowerCase']()),{'type':'format','content':o(_0x382297,'*Set\x20font\x20color:*\x20%0',_0xf3d7d1)['trim'](),'color':{'value':_0x1928ee,'title':_0xf3d7d1||_0x3eb4c6}};}return{'type':'format','content':o(_0x382297,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x387c92['commandName']){const _0xe71f66=_0x387c92['commandParams'][0x0]['value'];if(_0xe71f66){const _0x6265a1=_0x365eb3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x449362=>_0x449362['model']==_0xe71f66);let _0x14335d=_0xe71f66,_0x633a65='';return _0x6265a1&&(_0x14335d=_0x6265a1['label'],_0x633a65=_0x5c58cd(_0x14335d)['toLowerCase']()),{'type':'format','content':o(_0x382297,'*Set\x20font\x20background\x20color:*\x20%0',_0x633a65)['trim'](),'color':{'value':_0xe71f66,'title':_0x633a65||_0x14335d}};}return{'type':'format','content':o(_0x382297,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x6a3ec8{['afterInit'](){const _0x328d8e=this['editor'],_0x1e383a=_0x328d8e['plugins']['get']('TrackChangesEditing'),_0x3e9fa4=_0x328d8e['commands']['get']('copyFormat'),_0x34d0b3=_0x328d8e['commands']['get']('pasteFormat');_0x3e9fa4&&_0x34d0b3&&(_0x1e383a['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e383a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x25ac36=this['editor'],_0x1aed42=_0x25ac36['locale'];_0x25ac36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa3b8f4=>{if('formatBlock'!=_0xa3b8f4['type']&&'formatInline'!=_0xa3b8f4['type'])return;const {data:_0x56aa46}=_0xa3b8f4;if(_0x56aa46&&'pasteFormat'===_0x56aa46['commandName']){const _0x137f15=[],_0x1186dd=_0x56aa46['commandParams'][0x0];for(const [_0x4dcd00,_0x5f0a57]of Object['entries'](_0x1186dd))_0x137f15['push'](so(_0x25ac36,_0x4dcd00,_0x5f0a57));return _0x137f15['length']?{'type':'format','content':o(_0x1aed42,'*Set\x20format\x20to:*\x20%0',_0x137f15['join'](',\x20'))}:{'type':'format','content':o(_0x1aed42,'*Remove\x20all\x20formatting*')};}});}}function so(_0x53734a,_0x2841f5,_0x1da499){const _0x3d6f41=_0x53734a['locale']['t'],_0x495078=_0x2841f5['split'](/(?=[A-Z])/)['join']('\x20'),_0x1debd8=_0x3d6f41(_0x495078['charAt'](0x0)['toUpperCase']()+_0x495078['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1da499)return _0x1debd8;if('fontColor'===_0x2841f5||'fontBackgroundColor'===_0x2841f5){const _0xf34f3f=_0x365eb3(_0x53734a['config']['get']('fontColor.colors'))['find'](_0x40422d=>_0x40422d['model']==_0x1da499);return _0x1debd8+'\x20('+(_0xf34f3f?_0x3d6f41(_0xf34f3f['label'])['toLowerCase']():_0x1da499)+')';}if('fontSize'===_0x2841f5&&isNaN(parseFloat(_0x1da499))){const _0x338108=_0x53734a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x53734a['config']['get']('fontSize.options'))['find'](_0x3cd0d0=>_0x3cd0d0['model']==_0x1da499);return _0x1debd8+'\x20('+(_0x338108?_0x3d6f41(_0x338108['title'])['toLowerCase']():_0x1da499)+')';}return _0x1debd8+'\x20('+_0x1da499+')';}class it extends _0x6a3ec8{['_headingOptions'];['afterInit'](){const _0x306bb0=this['editor'];if(!_0x306bb0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x306bb0['config']['get']('heading.options');const _0x55b655=_0x306bb0['locale'],_0x459b99=_0x306bb0['plugins']['get']('TrackChangesEditing');_0x459b99['enableDefaultAttributesIntegration']('heading');for(const _0x29eba3 of this['_headingOptions'])'paragraph'!=_0x29eba3['model']&&_0x459b99['descriptionFactory']['registerElementLabel'](_0x29eba3['model'],_0xfdd622=>{const _0x5e438e=this['_getHeadingLevel'](_0x29eba3['model']);return null!==_0x5e438e?_0x33eb67(_0xfdd622,_0x5e438e):_0x1f32cc(_0xfdd622,_0x29eba3['title']);});function _0x33eb67(_0xbe6943,_0x42320f){return o(_0x55b655,'ELEMENT_HEADING',[_0xbe6943,_0x42320f]);}function _0x1f32cc(_0x547fa0,_0x3e3ac5){return o(_0x55b655,'ELEMENT_HEADING_CUSTOM',[_0x547fa0,_0x3e3ac5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50977b=this['editor'],_0x53fc03=_0x50977b['locale'];function _0x1f63cd(_0x2b9dbb,_0x5bb316){return o(_0x53fc03,'ELEMENT_HEADING_CUSTOM',[_0x2b9dbb,_0x5bb316]);}_0x50977b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4982b5=>{if('formatBlock'!=_0x4982b5['type'])return;const {data:_0x471e6b}=_0x4982b5;if(_0x471e6b&&'heading'==_0x471e6b['commandName']){const _0x864217=_0x471e6b['commandParams'][0x0]['value'],_0x289ac3=this['_getHeadingLevel'](_0x864217);if(null!==_0x289ac3)return{'type':'format','content':o(_0x53fc03,'*Change\x20to:*\x20%0',(_0x45c376=0x1,_0x383b7e=_0x289ac3,o(_0x53fc03,'ELEMENT_HEADING',[_0x45c376,_0x383b7e])))};const _0x1fddff=this['_headingOptions']['find'](_0x4caba7=>_0x4caba7['model']===_0x864217)['title'];return{'type':'format','content':o(_0x53fc03,'*Change\x20to:*\x20%0',_0x1f63cd(0x1,_0x1fddff))};}var _0x45c376,_0x383b7e;});}['_getHeadingLevel'](_0x2ec966){const _0x41c253=_0x2ec966['match'](/^heading(\d+)/);if(_0x41c253)return _0x41c253[0x1];const _0x431e3f=this['_headingOptions']?.['find'](_0x3257fa=>_0x3257fa['model']==_0x2ec966);if(_0x431e3f&&_0x431e3f['view']){const _0x1942b2=_0x431e3f['view'],_0x58ce89=(_0x1942b2['name']??_0x1942b2)['match'](/^h(\d+)/);if(_0x58ce89)return _0x58ce89[0x1];}return null;}}class et extends _0x6a3ec8{['afterInit'](){const _0x2642c7=this['editor'];if(!_0x2642c7['plugins']['has']('HighlightEditing'))return;const _0x24ec05=_0x2642c7['plugins']['get']('TrackChangesEditing'),_0x2dc6c4=_0x2642c7['locale'];_0x24ec05['enableDefaultAttributesIntegration']('highlight'),_0x24ec05['registerInlineAttribute']('highlight'),_0x24ec05['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2dc6c4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x328dfd=this['editor'],_0x36c5d3=_0x328dfd['locale'];_0x328dfd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eb7e7=>{if('formatInline'!=_0x3eb7e7['type'])return;const {data:_0x5d9a71}=_0x3eb7e7;if(_0x5d9a71&&'highlight'==_0x5d9a71['commandName']){const _0x2af6f9=_0x36c5d3['t'],_0x39cf53=_0x5d9a71['commandParams'][0x0]['value'];if(_0x39cf53){const _0x3e7612=_0x328dfd['config']['get']('highlight.options')['find'](_0x4b3fe6=>_0x4b3fe6['model']==_0x39cf53),_0x270600=_0x2af6f9(_0x3e7612['title'])['toLowerCase']();return{'type':'format','content':o(_0x36c5d3,'*Set\x20highlight:*\x20%0',_0x270600),'color':{'value':_0x3e7612['color'],'title':_0x3e7612['title']}};}return{'type':'format','content':o(_0x36c5d3,'*Remove\x20highlight*',o(_0x36c5d3,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x6a3ec8{['afterInit'](){const _0x40ebd7=this['editor'];if(!_0x40ebd7['plugins']['has']('HorizontalLineEditing'))return;_0x40ebd7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x378783=_0x40ebd7['plugins']['get']('TrackChangesEditing'),_0x123d7a=_0x40ebd7['locale'];_0x378783['descriptionFactory']['registerElementLabel']('horizontalLine',_0x681d55=>o(_0x123d7a,'ELEMENT_HORIZONTAL_LINE',_0x681d55)),_0x40ebd7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x34b478,{writer:_0x492a19,options:_0x151696})=>{if(!_0x151696['showSuggestionHighlights'])return null;const _0x394778=_0x492a19['createContainerElement']('div'),_0x6adbfa=_0x492a19['createEmptyElement']('hr');return _0x492a19['addClass']('ck-horizontal-line',_0x394778),_0x492a19['insert'](_0x492a19['createPositionAt'](_0x394778,0x0),_0x6adbfa),_0x394778;},'converterPriority':'high'});}}class ot extends _0x6a3ec8{['afterInit'](){const _0x3b9994=this['editor'];if(!_0x3b9994['plugins']['has']('HtmlEmbed'))return;const _0x1934ed=_0x3b9994['plugins']['get']('TrackChangesEditing'),_0x11362c=_0x3b9994['locale'];_0x1934ed['descriptionFactory']['registerElementLabel']('rawHtml',_0x366686=>o(_0x11362c,'ELEMENT_HTML_EMBED',_0x366686)),_0x1934ed['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1934ed['registerBlockAttribute']('value'),_0x1934ed['descriptionFactory']['registerDescriptionCallback'](_0x1a6d35=>{if('attribute'!=_0x1a6d35['type'])return;const {data:_0x3cddc1}=_0x1a6d35;if(_0x3cddc1&&'value'==_0x3cddc1['key']&&_0x1a6d35['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x26c7a7=o(_0x11362c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x11362c,'*Change\x20%0\x20content*',_0x26c7a7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x431559=this['editor'],_0x3267b6=_0x431559['locale'];_0x431559['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x144383=>{if('formatBlock'!=_0x144383['type'])return;const {data:_0x21db93}=_0x144383;if(_0x21db93&&'htmlEmbed'==_0x21db93['commandName']){const _0x528209=o(_0x3267b6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3267b6,'*Change\x20%0\x20content*',_0x528209)};}});}}class rt extends _0x6a3ec8{['afterInit'](){const _0x303c22=this['editor'];if(!_0x303c22['plugins']['has']('ImageEditing'))return;const _0x412ae1=_0x303c22['plugins']['get']('TrackChangesEditing'),_0x2770e4=_0x303c22['plugins']['get']('ImageUtils'),_0x36afca=_0x303c22['locale'];_0x412ae1['enableCommand']('insertImage'),_0x412ae1['descriptionFactory']['registerElementLabel']('imageBlock',_0xf53eb9=>o(_0x36afca,'ELEMENT_IMAGE',_0xf53eb9)),_0x412ae1['descriptionFactory']['registerElementLabel']('imageInline',_0x40311f=>o(_0x36afca,'ELEMENT_INLINE_IMAGE',_0x40311f)),_0x412ae1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x36afca,'ELEMENT_CAPTION')),_0x303c22['plugins']['has']('ImageUploadEditing')&&_0x412ae1['enableCommand']('uploadImage'),_0x303c22['plugins']['has']('ImageBlockEditing')&&_0x303c22['plugins']['has']('ImageInlineEditing')&&(_0x412ae1['enableCommand']('imageTypeInline',(_0x92056d,_0xe1669f)=>{const _0x29306b=_0x2770e4['getClosestSelectedImageElement'](_0x303c22['model']['document']['selection']);_0x303c22['model']['change'](()=>{_0x412ae1['markBlockFormat'](_0x29306b,{'commandName':'imageTypeInline','commandParams':[_0xe1669f]},[],'convertBlockImageToInline');});}),_0x412ae1['enableCommand']('imageTypeBlock',(_0x3d441a,_0x177969)=>{_0x303c22['model']['change'](_0x8e8116=>{let _0x218989=_0x2770e4['getClosestSelectedImageElement'](_0x303c22['model']['document']['selection']),_0x412ee4=_0x8e8116['createRangeOn'](_0x218989);const _0x2d2204=_0x556335['fromPosition'](_0x412ee4['start'],'toPrevious'),_0x47b223=_0x556335['fromPosition'](_0x412ee4['end'],'toNext');_0x412ae1['forceDefaultExecution'](()=>_0x3d441a(_0x177969)),_0x218989=_0x2770e4['getClosestSelectedImageElement'](_0x303c22['model']['document']['selection']),_0x412ee4=_0x8e8116['createRangeOn'](_0x218989);const _0x93ff0f=_0x8e8116['createRange'](_0x2d2204,_0x47b223);_0x2d2204['detach'](),_0x47b223['detach'](),_0x412ae1['markBlockFormat'](_0x218989,{'commandName':'imageTypeInline','commandParams':[_0x177969]},[],'convertInlineImageToBlock'),_0x93ff0f['start']['isBefore'](_0x412ee4['start'])&&_0x412ae1['markInsertion'](_0x8e8116['createRange'](_0x93ff0f['start'],_0x412ee4['start']),'convertInlineImageToBlock'),_0x412ee4['end']['isBefore'](_0x93ff0f['end'])&&_0x412ae1['markInsertion'](_0x8e8116['createRange'](_0x412ee4['end'],_0x93ff0f['end']),'convertInlineImageToBlock');});}),_0x412ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x412ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x412ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x412ae1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x412ae1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x412ae1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x16ad0a])=>{const _0x208811=_0x412ae1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1a2b6f=_0x16ad0a['start'],_0x505055=_0x16ad0a['end'];const _0x30e3b9=_0x303c22['model']['schema']['getNearestSelectionRange'](_0x1a2b6f,'backward'),_0xc097e2=_0x303c22['model']['schema']['getNearestSelectionRange'](_0x505055,'forward');_0x30e3b9['isCollapsed']&&(_0x1a2b6f=_0x30e3b9['start']),_0xc097e2['isCollapsed']&&(_0x505055=_0xc097e2['end']),_0x208811([_0x303c22['model']['createRange'](_0x1a2b6f,_0x505055)]);}),_0x412ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4ed5fd),_0x412ae1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4ed5fd)),_0x303c22['plugins']['has']('ImageCaptionEditing')&&(_0x412ae1['enableCommand']('toggleImageCaption',(_0x1a319,_0x472b77)=>{const _0x19607a=_0x303c22['plugins']['get']('ImageCaptionUtils');let _0x3213b4=_0x2770e4['getClosestSelectedImageElement'](_0x303c22['model']['document']['selection']),_0x18f23a=_0x19607a['getCaptionFromImageModelElement'](_0x3213b4);_0x303c22['model']['change'](()=>{if(_0x18f23a)return void _0x412ae1['markDeletion'](_0x303c22['model']['createRangeOn'](_0x18f23a));const _0x3f64ae=_0x2770e4['isBlockImage'](_0x3213b4);_0x1a319(_0x472b77),_0x3213b4=_0x2770e4['getClosestSelectedImageElement'](_0x303c22['model']['document']['selection']),_0x18f23a=_0x19607a['getCaptionFromImageModelElement'](_0x3213b4),_0x412ae1['markInsertion'](_0x303c22['model']['createRangeOn'](_0x18f23a),_0x3f64ae?null:'imageCaption');});}),_0x412ae1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4ed5fd));const _0xba5b55=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ffd2a(_0x42e771,_0x522421){const _0x3eb9c3=_0xba5b55['findIndex'](({type:_0x2646b0,subType:_0x14a406})=>_0x42e771['type']==_0x2646b0&&_0x42e771['subType']==_0x14a406),_0x3ce92e=_0xba5b55['findIndex'](({type:_0x5c788f,subType:_0x43ef21})=>_0x522421['type']==_0x5c788f&&_0x522421['subType']==_0x43ef21);if(_0x3eb9c3<0x0||_0x3ce92e<0x0)return!0x1;const _0x4919ba=_0x42e771['getFirstRange'](),_0x8213c3=_0x522421['getFirstRange']();if((0x0==_0x3eb9c3||0x1==_0x3eb9c3)&&0x2==_0x3ce92e&&_0x4919ba['isIntersecting'](_0x8213c3))return!0x0;if(0x2==_0x3eb9c3&&0x3==_0x3ce92e){const _0x19f268=_0x412ae1['_findSuggestions'](_0x4919ba,'insertion')['filter'](({suggestion:_0x2ca23a,meta:_0x3891a4})=>_0x3891a4['isOwn']&&'convertInlineImageToBlock'==_0x2ca23a['subType']);if(_0x19f268['length']>0x1&&_0x8213c3['end']['isEqual'](_0x4919ba['start']))return!0x0;if(0x1==_0x19f268['length']&&(_0x4919ba['start']['isEqual'](_0x8213c3['end'])||_0x4919ba['end']['isEqual'](_0x8213c3['start'])))return!0x0;}if(0x3==_0x3eb9c3&&0x3==_0x3ce92e&&_0x4919ba['start']['isBefore'](_0x8213c3['start'])){const _0x5ef8a6=_0x4919ba['end']['nodeAfter'],_0x310007=_0x8213c3['start']['nodeBefore'];return _0x2770e4['isBlockImage'](_0x5ef8a6)&&_0x5ef8a6===_0x310007;}return!0x1;}function _0x4ed5fd(_0x231d2c,_0x101468){return _0x3ffd2a(_0x231d2c,_0x101468)?[_0x231d2c,_0x101468]:_0x3ffd2a(_0x101468,_0x231d2c)?[_0x101468,_0x231d2c]:null;}_0x303c22['plugins']['has']('ImageResize')&&(_0x412ae1['enableDefaultAttributesIntegration']('resizeImage'),_0x412ae1['registerBlockAttribute']('resizedWidth'),_0x412ae1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x36afca,'FORMAT_IMAGE_SIZE'))),_0x303c22['plugins']['has']('ImageTextAlternativeEditing')&&(_0x412ae1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x412ae1['registerBlockAttribute']('alt')),_0x303c22['plugins']['has']('PictureEditing')&&(_0x412ae1['registerBlockAttribute']('sources'),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x3e5d52=>{if('attribute'!=_0x3e5d52['type'])return;const {data:_0x13574c}=_0x3e5d52;return _0x13574c&&'sources'==_0x13574c['key']?{'type':'format','content':''}:void 0x0;})),_0x303c22['plugins']['has']('ImageSizeAttributes')&&(_0x412ae1['registerBlockAttribute']('width'),_0x412ae1['registerBlockAttribute']('height'),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x85f72=>{if('attribute'!=_0x85f72['type'])return;const {data:_0x1d4443}=_0x85f72;return!_0x1d4443||'width'!=_0x1d4443['key']&&'height'!=_0x1d4443['key']?void 0x0:{'type':'format','content':''};})),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x491d5a=>{if(!!_0xba5b55['find'](({type:_0x3bd4ed,subType:_0x4fecd2})=>_0x491d5a['type']==_0x3bd4ed&&_0x491d5a['subType']==_0x4fecd2))return _0x491d5a['previous']?{}:void 0x0;}),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x585515=>{if('insertion'==_0x585515['type']||'deletion'==_0x585515['type']){const _0x1461f0=_0x585515['getContainedElement']();if(_0x1461f0&&_0x1461f0['is']('element','caption'))return{'type':'insertion'==_0x585515['type']?'addObject':'removeObject','element':_0x1461f0,'quantity':0x1};}}),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x49eea6=>'formatBlock'==_0x49eea6['type']&&'convertInlineImageToBlock'==_0x49eea6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x49eea6['type']&&'convertBlockImageToInline'==_0x49eea6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x4b43bf=>{if('attribute'!=_0x4b43bf['type'])return;const {data:_0x5277c4}=_0x4b43bf;if(!_0x5277c4||'alt'!=_0x5277c4['key'])return;const _0x6abc98=_0x5277c4['newValue'];return _0x6abc98?{'type':'format','content':o(_0x36afca,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x6abc98+'\x22')}:{'type':'format','content':o(_0x36afca,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ac80=this['editor'],_0x21997f=_0x24ac80['locale'];_0x24ac80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56a406=>{if('formatBlock'!=_0x56a406['type']&&'formatInline'!=_0x56a406['type'])return;const {data:_0x3cdb1b}=_0x56a406;if(_0x3cdb1b){if('imageTextAlternative'==_0x3cdb1b['commandName']){const _0x29a7ef=_0x3cdb1b['commandParams'][0x0]['newValue'];return _0x29a7ef?{'type':'format','content':o(_0x21997f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29a7ef+'\x22')}:{'type':'format','content':o(_0x21997f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3cdb1b['commandName']){const _0x146553=_0x3cdb1b['commandParams'][0x0]['width'];return _0x146553?{'type':'format','content':o(_0x21997f,'*Set\x20image\x20width:*\x20%0',_0x146553)}:{'type':'format','content':o(_0x21997f,'*Reset\x20image\x20width*')};}}});}}class at extends _0x6a3ec8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x186ac6=this['editor']['locale'],_0x3e6160=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e6160['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3e6160['registerBlockAttribute']('src'),_0x3e6160['descriptionFactory']['registerDescriptionCallback'](_0x5c58a7=>{if('attribute'!=_0x5c58a7['type'])return;const {data:_0x2b5f12}=_0x5c58a7;return _0x2b5f12&&'src'==_0x2b5f12['key']?_0x2b5f12['newValue']&&_0x2b5f12['oldValue']?{'type':'format','content':o(_0x186ac6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2bcb2f=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bcb2f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2bcb2f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bcb2f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2bcb2f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ad3b1=this['editor'],_0x4899a7=_0x3ad3b1['locale'];_0x3ad3b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54aadb=>{if('formatBlock'!=_0x54aadb['type']&&'formatInline'!=_0x54aadb['type'])return;const {data:_0x6226e}=_0x54aadb;if(!_0x6226e||'replaceImageSource'!=_0x6226e['commandName'])return;return{'type':'format','content':o(_0x4899a7,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x6a3ec8{['afterInit'](){const _0x1df7bf=this['editor'];if(!_0x1df7bf['plugins']['has']('ImageStyleEditing'))return;const _0x43bfd8=_0x1df7bf['plugins']['get']('TrackChangesEditing'),_0x15e8aa=_0x1df7bf['plugins']['get']('ImageUtils'),_0x51a08b={};_0x43bfd8['enableCommand']('imageStyle',(_0x3429ad,_0x45a0f0)=>{const _0x342f50=_0x1df7bf['plugins']['get']('Users')['me'],_0x46ffd7=_0x1df7bf['commands']['get']('imageStyle');let _0x3e1910=_0x15e8aa['getClosestSelectedImageElement'](_0x1df7bf['model']['document']['selection']),_0x486d92=_0x1df7bf['model']['createRangeOn'](_0x3e1910),_0x369726=_0x46ffd7['value'];if(_0x369726==_0x45a0f0['value'])return;const _0x34c044={'commandName':'imageStyle','commandParams':[_0x45a0f0],'formatGroupId':_0xf0931c()};_0x1df7bf['model']['change'](()=>{if(_0x43bfd8['getSuggestions']()['filter'](_0x3b6494=>_0x3b6494['isInContent']&&_0x342f50==_0x3b6494['author']&&('formatBlock'==_0x3b6494['type']||'formatInline'==_0x3b6494['type'])&&('imageStylePreApply'==_0x3b6494['subType']||'imageStylePostApply'==_0x3b6494['subType'])&&_0x3b6494['getFirstRange']()['isEqual'](_0x486d92))['forEach'](_0x3c0e3e=>_0x43bfd8['discardSuggestion'](_0x3c0e3e['head'])),_0x3e1910=_0x15e8aa['getClosestSelectedImageElement'](_0x1df7bf['model']['document']['selection']),_0x486d92=_0x1df7bf['model']['createRangeOn'](_0x3e1910),_0x46ffd7['refresh'](),_0x1df7bf['commands']['get']('imageTypeInline')['refresh'](),_0x1df7bf['commands']['get']('imageTypeBlock')['refresh'](),_0x369726=_0x46ffd7['value'],_0x369726!=_0x45a0f0['value'])return _0x15e8aa['isInlineImage'](_0x3e1910)&&_0x46ffd7['shouldConvertImageType'](_0x45a0f0['value'],_0x3e1910)?(_0x3429ad({..._0x45a0f0,'setImageSizes':!0x1}),_0x3e1910=_0x15e8aa['getClosestSelectedImageElement'](_0x1df7bf['model']['document']['selection']),void _0x43bfd8['markBlockFormat'](_0x3e1910,{..._0x34c044,'commandReversedParams':[{'value':_0x369726||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x15e8aa['isBlockImage'](_0x3e1910)?_0x43bfd8['markBlockFormat'](_0x3e1910,_0x34c044,[],'imageStylePostApply'):_0x43bfd8['markInlineFormat'](_0x486d92,_0x34c044,'imageStylePostApply'));});});for(const _0x5d9069 of _0x1df7bf['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51a08b[_0x5d9069['name']]=_0x5d9069['title']['toLowerCase']();_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5798d7])=>{_0x15e8aa['setImageNaturalSizeAttributes'](_0x5798d7['getContainedElement']());}),_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4e4177,_0x49ac9e)=>{_0x43bfd8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4e4177,{'commandName':_0x49ac9e['commandName'],'commandParams':_0x49ac9e['commandReversedParams']});}),_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x24ce31,_0x182828){if(_0x51409b(_0x24ce31,_0x182828))return[_0x24ce31,_0x182828];if(_0x51409b(_0x182828,_0x24ce31))return[_0x182828,_0x24ce31];return null;});const _0x30773a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x51409b(_0x5d7e73,_0x3183ec){const _0x4c7e33=_0x30773a['findIndex'](({type:_0xa12509,subType:_0x19a33e})=>_0x5d7e73['type']==_0xa12509&&_0x5d7e73['subType']==_0x19a33e),_0x4dc7de=_0x30773a['findIndex'](({type:_0x122282,subType:_0x265924})=>_0x3183ec['type']==_0x122282&&_0x3183ec['subType']==_0x265924);if(_0x4c7e33<0x0||_0x4dc7de<0x0)return!0x1;const _0x1ee832=_0x5d7e73['getFirstRange'](),_0x5be5da=_0x3183ec['getFirstRange']();if((0x0==_0x4c7e33||0x1==_0x4c7e33)&&0x2==_0x4dc7de&&_0x1ee832['isIntersecting'](_0x5be5da))return!0x0;if(0x2==_0x4c7e33&&0x3==_0x4dc7de){const _0x3535ae=_0x43bfd8['_findSuggestions'](_0x1ee832,'insertion')['filter'](({suggestion:_0x4abf71,meta:_0xa5b1e1})=>_0xa5b1e1['isOwn']&&'convertInlineImageToBlock'==_0x4abf71['subType']);if(_0x3535ae['length']>0x1&&_0x5be5da['end']['isEqual'](_0x1ee832['start']))return!0x0;if(0x1==_0x3535ae['length']&&(_0x1ee832['start']['isEqual'](_0x5be5da['end'])||_0x1ee832['end']['isEqual'](_0x5be5da['start'])))return!0x0;}if(0x3==_0x4c7e33&&0x3==_0x4dc7de&&_0x1ee832['start']['isBefore'](_0x5be5da['start'])){const _0x37993f=_0x1ee832['end']['nodeAfter'],_0x5048a5=_0x5be5da['start']['nodeBefore'];return _0x15e8aa['isBlockImage'](_0x37993f)&&_0x37993f===_0x5048a5;}return!0x1;}_0x1df7bf['model']['document']['registerPostFixer'](()=>{let _0xffa33a=!0x1;const _0x2663c9=Array['from'](_0x1df7bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5aa40e,data:_0x1f64d6}of _0x2663c9){const {group:_0x408e02,type:_0x448c34,subType:_0x4a7a5a,id:_0x3d5d10}=_0x43bfd8['_splitMarkerName'](_0x5aa40e);if('suggestion'==_0x408e02&&_0x43bfd8['hasSuggestion'](_0x3d5d10)){if('formatBlock'==_0x448c34&&('imageStylePreApply'==_0x4a7a5a||'imageStylePostApply'==_0x4a7a5a)){const _0x800418=_0x43bfd8['getSuggestion'](_0x3d5d10);if(_0x1f64d6['newRange']){const _0x5344e7=_0x800418['getFirstRange']()['getContainedElement']();if(_0x15e8aa['isBlockImage'](_0x5344e7))continue;_0x43bfd8['discardSuggestion'](_0x800418),_0xffa33a=!0x0;}}if('insertion'==_0x448c34&&'imageCaption'==_0x4a7a5a&&!_0x1f64d6['newRange']){const _0x23cc19=_0x43bfd8['getSuggestion'](_0x3d5d10);_0x23cc19['next']&&_0x23cc19['next']['isInContent']&&(_0x43bfd8['discardSuggestion'](_0x23cc19['next']),_0xffa33a=!0x0);}}}return _0xffa33a;}),this['_registerLegacyDescription'](_0x51a08b);}['_registerLegacyDescription'](_0x4cec97){const _0x1e16de=this['editor'],_0x912b0b=_0x1e16de['locale'];_0x1e16de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16b11e=>{if('formatBlock'!=_0x16b11e['type']&&'formatInline'!=_0x16b11e['type'])return;const {data:_0x214670}=_0x16b11e;if(!_0x214670||'imageStyle'!=_0x214670['commandName'])return;const _0x10e795=_0x214670['commandParams'][0x0]['value'];return _0x69d83('side'===_0x10e795?o(_0x912b0b,'FORMAT_SIDE_IMAGE'):_0x4cec97[_0x10e795]||_0x10e795);function _0x69d83(_0x48614e){return{'type':'format','content':o(_0x912b0b,'*Format:*\x20%0',_0x48614e)};}});}}class ut extends _0x6a3ec8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x21bf2a){super(_0x21bf2a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2a0b60=this['editor'],_0x5d2c06=_0x2a0b60['commands']['get']('importWord'),_0x11866a=_0x2a0b60['commands']['get']('trackChanges');_0x5d2c06&&(_0x5d2c06['on']('execute',(_0xa93c51,[,_0x1693ea])=>{this['_trackChangesValueDuringImport']=_0x11866a['value'],_0x1693ea['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5d2c06,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5d2c06,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11866a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2a0b60['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x12ae55,_0x3c3f2f){const {suggestions:_0x56c9a9}=_0x3c3f2f,_0x59d931=this['editor']['commands']['get']('trackChanges'),_0x30eea9=_0x59d931['value'];this['_trackChangesValueDuringImport']!==_0x30eea9&&(_0x59d931['execute'](),this['_trackChangesExecuted']=!0x0),_0x56c9a9&&_0x56c9a9['forEach'](({id:_0x13bed0,type:_0x4ece83,author:_0x599a20,created_at:_0x46662c})=>{const _0x2fcf47={'id':_0x13bed0,'type':_0x4ece83,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x599a20,'createdAt':_0x46662c?new Date(_0x46662c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2fcf47);});}}class ft extends _0x6a3ec8{['afterInit'](){const _0xb436e9=this['editor'],_0x1b6738=_0xb436e9['plugins']['get']('TrackChangesEditing');if(_0xb436e9['plugins']['has']('IndentEditing')&&(_0x1b6738['enableCommand']('indent'),_0x1b6738['enableCommand']('outdent')),_0xb436e9['plugins']['has']('IndentBlock')){for(const _0x2a9268 of['indentBlock','outdentBlock'])_0x1b6738['enableDefaultAttributesIntegration'](_0x2a9268);}const _0x8c19f8=_0xb436e9['locale'];_0x1b6738['registerBlockAttribute']('blockIndent'),_0x1b6738['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x8c19f8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13f6dc=this['editor'],_0x1fa45f=_0x13f6dc['locale'],_0x4fd4d5=_0x13f6dc['plugins']['get']('TrackChangesEditing');_0x4fd4d5['descriptionFactory']['registerDescriptionCallback'](_0x4f796c=>{if('formatBlock'!=_0x4f796c['type'])return;const {data:_0x509e2c}=_0x4f796c;if(!_0x509e2c)return;if('indentBlock'!=_0x509e2c['commandName']&&'outdentBlock'!=_0x509e2c['commandName'])return;const _0x4aa1c5=_0x4f796c['getItems']()[0x0],_0x1aca2b=_0x4fd4d5['descriptionFactory']['getItemLabel'](_0x4aa1c5);return'indentBlock'==_0x509e2c['commandName']?{'type':'format','content':o(_0x1fa45f,'*Indent:*\x20%0',_0x1aca2b)}:'outdentBlock'==_0x509e2c['commandName']?{'type':'format','content':o(_0x1fa45f,'*Outdent:*\x20%0',_0x1aca2b)}:void 0x0;});}}class ht extends _0x6a3ec8{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x6a3ec8{['afterInit'](){const _0x44f030=this['editor'];if(!_0x44f030['plugins']['has']('LinkEditing'))return;const _0x492637=_0x44f030['plugins']['get']('TrackChangesEditing'),_0x3503ae=_0x44f030['commands']['get']('link');_0x492637['enableDefaultAttributesIntegration']('link'),_0x492637['enableDefaultAttributesIntegration']('unlink'),_0x492637['registerInlineAttribute']('linkHref');for(const _0x26b26b of _0x3503ae['manualDecorators'])_0x492637['registerInlineAttribute'](_0x26b26b['id']),_0x492637['descriptionFactory']['registerAttributeLabel'](_0x26b26b['id'],'link\x20('+_0x26b26b['label']['toLowerCase']()+')');_0x492637['descriptionFactory']['registerDescriptionCallback'](_0x44ebd1=>{if('attribute'!=_0x44ebd1['type'])return;const {data:_0x5a5747}=_0x44ebd1;if(!_0x5a5747||'linkHref'!=_0x5a5747['key'])return;const _0x16d4ce=_0x5a5747['newValue'],_0x1d8a7d=_0x44f030['locale'];return{'type':'format','content':null==_0x16d4ce?o(_0x1d8a7d,'*Remove\x20link*'):o(_0x1d8a7d,'*Set\x20link:*\x20%0','\x22'+_0x16d4ce+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39851d=this['editor'],_0x47a8f8=_0x39851d['locale'];_0x39851d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xba9951=>{if('formatInline'!=_0xba9951['type'])return;const {data:_0x2e6b0b}=_0xba9951;if(_0x2e6b0b){if('link'==_0x2e6b0b['commandName']){const _0x3880aa=_0x2e6b0b['commandParams'][0x0];return{'type':'format','content':o(_0x47a8f8,'*Set\x20link:*\x20%0','\x22'+_0x3880aa+'\x22')};}return'unlink'==_0x2e6b0b['commandName']?{'type':'format','content':o(_0x47a8f8,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x6a3ec8{['afterInit'](){const _0x5131b7=this['editor'],_0x17eb75=_0x5131b7['locale'];if(!_0x5131b7['plugins']['has']('LegacyListEditing'))return;const _0x328a06=_0x5131b7['plugins']['get']('TrackChangesEditing'),_0x5bce8e=_0x5131b7['plugins']['has']('LegacyTodoListEditing');function _0x197b46(_0x27f219){return()=>{const _0x242926=_0x5131b7['model']['document']['selection'],_0x34dc2=_0x5131b7['commands']['get'](_0x27f219);if(_0x34dc2['value'])return void _0x5131b7['execute']('paragraph',{});const _0x3cb7a7=_0x27f219['slice'](0x0,-0x4),_0x1a0049=function(_0x3ed188,_0x149f4b,_0x452997){let _0xdb8c74=Array['from'](_0x3ed188)['filter'](_0x268f40=>function(_0x1ac07b,_0x12aab0){return _0x12aab0['checkChild'](_0x1ac07b['parent'],'listItem')&&!_0x12aab0['isObject'](_0x1ac07b);}(_0x268f40,_0x452997));_0xdb8c74=_0xdb8c74['filter'](_0x89c9b0=>!_0x89c9b0['is']('element','listItem')||_0x89c9b0['getAttribute']('listType')!=_0x149f4b);const _0x25149c=new Set();for(const _0x4f8ed3 of _0xdb8c74)_0x4f8ed3['is']('element','listItem')?_0x25149c['add'](Le(_0x4f8ed3)):_0x25149c['add'](_0x4f8ed3);return Array['from'](_0x25149c);}(_0x242926['getSelectedBlocks'](),_0x3cb7a7,_0x5131b7['model']['schema']);_0x5131b7['model']['change'](()=>{for(const _0x2f4658 of _0x1a0049)_0x328a06['markBlockFormat'](_0x2f4658,{'commandName':_0x27f219,'commandParams':[{'forceValue':!_0x34dc2['value']}],'formatGroupId':'blockName'},Ee(_0x2f4658));});};}function _0x539561(_0x165423){return()=>{const _0x52bae0=function(_0x3f43e4){let _0x2a4197=Array['from'](_0x3f43e4);const _0x254232=_0x2a4197['findIndex'](_0x29eefd=>'listItem'!=_0x29eefd['name']);return _0x254232>-0x1&&(_0x2a4197=_0x2a4197['slice'](0x0,_0x254232)),_0x2a4197;}(_0x5131b7['model']['document']['selection']['getSelectedBlocks']()),_0x1e41a1=_0x5131b7['model']['createRange'](_0x5131b7['model']['createPositionAt'](_0x52bae0[0x0],'before'),_0x5131b7['model']['createPositionAt'](_0x52bae0[_0x52bae0['length']-0x1],'end'));_0x5131b7['model']['change'](()=>{_0x328a06['markBlockFormat'](_0x1e41a1,{'commandName':_0x165423,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3cd90d){const _0x434424=new Set();for(const _0x4c981f of _0x3cd90d){let _0x53fc4f=_0x4c981f['nextSibling'];for(;_0x53fc4f&&_0x53fc4f['getAttribute']('listIndent')>_0x4c981f['getAttribute']('listIndent');)_0x434424['add'](_0x53fc4f),_0x53fc4f=_0x53fc4f['nextSibling'];}return Array['from'](_0x434424);}(_0x52bae0));});};}_0x328a06['enableCommand']('numberedList',_0x197b46('numberedList')),_0x328a06['enableCommand']('bulletedList',_0x197b46('bulletedList')),_0x5bce8e&&_0x328a06['enableCommand']('todoList',_0x197b46('todoList')),_0x328a06['enableCommand']('indentList',_0x539561('indentList')),_0x328a06['enableCommand']('outdentList',_0x539561('outdentList')),_0x5bce8e&&_0x328a06['enableCommand']('checkTodoList',()=>{const _0x5b45a8=_0x5131b7['commands']['get']('checkTodoList'),_0x57746a=Array['from'](_0x5b45a8['_selectedElements']);_0x57746a['filter'](_0x225966=>_0x225966['getAttribute']('todoListChecked')!=_0x5b45a8['value']),_0x5131b7['model']['change'](()=>{for(const _0x36e10d of _0x57746a)_0x328a06['markBlockFormat'](_0x36e10d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5b45a8['value']}]});});}),_0x328a06['descriptionFactory']['registerElementLabel']('listItem',_0x2683d4=>o(_0x17eb75,'ELEMENT_LIST_ITEM',_0x2683d4)),_0x328a06['descriptionFactory']['registerDescriptionCallback'](_0x174300=>{if('formatBlock'!=_0x174300['type']&&'formatInline'!=_0x174300['type'])return;const {data:_0x51cadb}=_0x174300;if(_0x51cadb){if('numberedList'==_0x51cadb['commandName']||'bulletedList'==_0x51cadb['commandName']||'todoList'==_0x51cadb['commandName'])switch(_0x51cadb['commandName']['replace']('List','')){case'bulleted':return _0xb6398e(o(_0x17eb75,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb6398e(o(_0x17eb75,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb6398e(o(_0x17eb75,'ELEMENT_TODO_LIST'));}if('indentList'==_0x51cadb['commandName'])return{'type':'format','content':o(_0x17eb75,'*Indent:*\x20%0',o(_0x17eb75,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x51cadb['commandName'])return{'type':'format','content':o(_0x17eb75,'*Outdent:*\x20%0',o(_0x17eb75,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x51cadb['commandName'])return _0x51cadb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17eb75,'*Check\x20item*')}:{'type':'format','content':o(_0x17eb75,'*Uncheck\x20item*')};}function _0xb6398e(_0x251408){return{'type':'format','content':o(_0x17eb75,'*Change\x20to:*\x20%0',_0x251408)};}});}}function Le(_0xc46ba5){const _0x37d2f6=_0xc46ba5['getAttribute']('listIndent');if(0x0==_0x37d2f6)return _0xc46ba5;let _0x1ab8ee=_0xc46ba5;for(;_0xc46ba5['previousSibling']&&_0xc46ba5['previousSibling']['is']('element','listItem');){const _0x440374=_0xc46ba5['previousSibling']['getAttribute']('listIndent');if(_0x440374==_0x37d2f6)_0x1ab8ee=_0xc46ba5['previousSibling'];else{if(_0x440374<_0x37d2f6)break;}_0xc46ba5=_0xc46ba5['previousSibling'];}return _0x1ab8ee;}function Ee(_0x4f843d){const _0x52e26b=[];if(_0x4f843d['is']('element','listItem')&&_0x4f843d['getAttribute']('listIndent')>0x0){let _0x20feb5=_0x4f843d['nextSibling'];for(;_0x20feb5&&'listItem'==_0x20feb5['name']&&_0x20feb5['getAttribute']('listIndent')==_0x4f843d['getAttribute']('listIndent');)_0x52e26b['push'](_0x20feb5),_0x20feb5=_0x20feb5['nextSibling'];}return _0x52e26b;}class Q extends _0x6a3ec8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3ccd14=this['editor']['config']['get']('list.properties'),_0x48caef=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ccd14['styles']&&_0x48caef['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3ccd14['reversed']&&_0x48caef['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3ccd14['startIndex']&&_0x48caef['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x48caef['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x209b2c,_0x15c09f={}){const _0x57d899=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5efa01=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x57d899['markMultiRangeBlockFormat'](_0x5efa01,{'commandName':'listStyle','commandParams':[{'type':_0x15c09f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1cb74d,_0x4901ce={}){const _0x448808=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2772fb=this['_getSuggestionBlocks'](_0x23e144=>_0x23e144['is']('element','listItem')&&'numbered'===_0x23e144['getAttribute']('listType'));if(_0x2772fb['length']<0x1)return;const _0x5f5100=_0x2772fb['map'](_0x444bab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x444bab,'before'),this['editor']['model']['createPositionAt'](_0x444bab,0x0)));this['editor']['model']['change'](()=>{_0x448808['markMultiRangeBlockFormat'](_0x5f5100,{'commandName':'listReversed','commandParams':[{'reversed':_0x4901ce['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x49e6ac,_0x2c8980={}){const _0x4aa64e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b7fb2=this['_getSuggestionBlocks'](_0x340223=>_0x340223['is']('element','listItem')&&'numbered'===_0x340223['getAttribute']('listType'));if(_0x5b7fb2['length']<0x1)return;const _0xe8d647=_0x5b7fb2['map'](_0x5cd0c6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5cd0c6,'before'),this['editor']['model']['createPositionAt'](_0x5cd0c6,0x0)));this['editor']['model']['change'](()=>{_0x4aa64e['markMultiRangeBlockFormat'](_0xe8d647,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c8980['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x26f12d){if('formatBlock'!=_0x26f12d['type']&&'formatInline'!=_0x26f12d['type'])return;const _0xaf9119=this['editor']['locale'],{data:_0x1ead9a}=_0x26f12d;if(!_0x1ead9a)return;let _0x5a8d08,_0x541efd;switch(_0x1ead9a['commandName']){case'listStyle':_0x5a8d08='*Change\x20to:*\x20%0',_0x541efd={'type':'format','content':o(_0xaf9119,_0x5a8d08,o(_0xaf9119,this['_getTranslationKeyForListStyle'](_0x1ead9a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5a8d08=_0x1ead9a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x541efd={'type':'format','content':o(_0xaf9119,_0x5a8d08)};break;case'listStart':_0x5a8d08='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x541efd={'type':'format','content':o(_0xaf9119,_0x5a8d08,_0x1ead9a['commandParams'][0x0]['startIndex'])};}return _0x541efd;}['_getSuggestionBlocksForListStyle'](){const _0x5cbfc6=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c8c11=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3c8c11[0x0]?.['is']('element','listItem')&&_0x3c8c11['unshift'](..._0x5cbfc6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3c8c11[_0x3c8c11['length']-0x1]?.['is']('element','listItem')&&_0x3c8c11['push'](..._0x5cbfc6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3c8c11=[...new Set(_0x3c8c11)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3c8c11=_0x3c8c11['filter'](_0x1c75e6=>_0x1c75e6['is']('element','listItem'))),_0x3c8c11;}['_getSuggestionBlocks'](_0x110f50){const _0x2717a4=this['editor']['plugins']['get']('LegacyListUtils');let _0x3baaf9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x110f50)['map'](_0x1b36a4=>{const _0xc5df0=this['editor']['model']['createPositionAt'](_0x1b36a4,0x0);return[..._0x2717a4['getSiblingNodes'](_0xc5df0,'backward'),..._0x2717a4['getSiblingNodes'](_0xc5df0,'forward')];})['flat']();return _0x3baaf9=[...new Set(_0x3baaf9)],_0x3baaf9;}['_getTranslationKeyForListStyle'](_0x3fba00){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3fba00)||'default')['toUpperCase']()+'_LIST_'+_0x3fba00['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x6a3ec8{['afterInit'](){const _0x311fff=this['editor'];if(!_0x311fff['plugins']['has']('MediaEmbedEditing'))return;const _0x58b177=_0x311fff['plugins']['get']('TrackChangesEditing'),_0xf9fd57=_0x311fff['locale'];_0x58b177['enableCommand']('mediaEmbed'),_0x58b177['descriptionFactory']['registerElementLabel']('media',_0x2a1fdf=>o(_0xf9fd57,'ELEMENT_MEDIA',_0x2a1fdf)),_0x311fff['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x56b201,{writer:_0x553755,options:_0x4b82be})=>{if(_0x4b82be['showSuggestionHighlights'])return _0x553755['createEmptyElement']('div');},'converterPriority':'high'}),_0x311fff['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1553d5,_0x5c895f,_0x16d91e)=>{_0x16d91e['options']['showSuggestionHighlights']&&_0x1553d5['stop']();},{'priority':'high'});}}class pt extends _0x6a3ec8{['afterInit'](){const _0x4faeba=this['editor'];_0x4faeba['plugins']['has']('MentionEditing')&&_0x4faeba['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x6a3ec8{['afterInit'](){const _0x15fbc5=this['editor'];if(!_0x15fbc5['plugins']['has']('MergeFieldsEditing'))return;const _0x1b64e1=_0x15fbc5['plugins']['get']('TrackChangesEditing'),_0x3cb7d9=_0x15fbc5['locale'];_0x1b64e1['enableCommand']('insertMergeField'),_0x1b64e1['enableCommand']('insertMergeFieldBlock'),_0x1b64e1['enableCommand']('insertMergeFieldImage'),_0x1b64e1['descriptionFactory']['registerElementLabel']('mergeField',_0x5bf2c8=>o(_0x3cb7d9,'ELEMENT_MERGE_FIELD',_0x5bf2c8)),_0x1b64e1['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x41eac1=>o(_0x3cb7d9,'ELEMENT_MERGE_FIELD',_0x41eac1)),_0x1b64e1['descriptionFactory']['registerDescriptionCallback'](_0x4c090a=>{if('insertion'!=_0x4c090a['type']&&'deletion'!=_0x4c090a['type'])return;const _0x7c2e8f=_0x4c090a['getContainedElement']();if(null==_0x7c2e8f)return;const _0x474cbf=_0x15fbc5['plugins']['get']('MergeFieldsEditing');let _0xf9aae3;switch(_0x474cbf['getMergeFieldType'](_0x7c2e8f)){case null:return;case'image':{const _0x3396ce=_0x474cbf['unwrapAffixes'](_0x7c2e8f['getAttribute']('src'));_0xf9aae3=_0x474cbf['getLabel'](_0x3396ce)||_0x3396ce;break;}default:{const _0x382144=_0x7c2e8f['getAttribute']('id');_0xf9aae3=_0x474cbf['getLabel'](_0x382144)||_0x382144;break;}}return'insertion'==_0x4c090a['type']?{'type':'insertion','content':o(_0x3cb7d9,'*Insert:*\x20%0','\x22'+_0xf9aae3+'\x22\x20'+o(_0x3cb7d9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3cb7d9,'*Remove:*\x20%0','\x22'+_0xf9aae3+'\x22\x20'+o(_0x3cb7d9,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x6a3ec8{['afterInit'](){const _0x5d28fb=this['editor'],_0x58aade=_0x5d28fb['plugins']['get']('TrackChangesEditing');_0x5d28fb['plugins']['has']('MultiLevelList')&&(_0x58aade['enableDefaultAttributesIntegration']('multiLevelList'),_0x58aade['registerBlockAttribute']('listMarkerStyle'),_0x58aade['descriptionFactory']['registerDescriptionCallback'](_0xc049c7=>this['handleDescriptions'](_0xc049c7)));}['handleDescriptions'](_0x20ba74){const _0x126476=this['editor']['locale'],{data:_0x5ab89e}=_0x20ba74,_0x89ec9b={'type':'format','content':''};if(_0x5ab89e&&'listMarkerStyle'==_0x5ab89e['key']){if(!_0x5ab89e['oldValue'])return{'type':'format','content':o(_0x126476,'*Set\x20format:*\x20%0',o(_0x126476,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ab89e['newValue']+')'};if(!_0x5ab89e['newValue']){let _0x1a6f96=_0x20ba74['head'];for(;_0x1a6f96;){if(_0x1a6f96['data']&&'listType'==_0x1a6f96['data']['key']&&_0x1a6f96['data']['newValue'])return _0x89ec9b;_0x1a6f96=_0x1a6f96['next'];}return{'type':'format','content':o(_0x126476,'*Remove\x20format:*\x20%0',o(_0x126476,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ab89e['oldValue']+')'};}}}}class bt extends _0x6a3ec8{['afterInit'](){const _0x3dc83b=this['editor'];if(!_0x3dc83b['plugins']['has']('PageBreakEditing'))return;_0x3dc83b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1b6925=_0x3dc83b['plugins']['get']('TrackChangesEditing'),_0x38dfd8=_0x3dc83b['locale'];_0x1b6925['descriptionFactory']['registerElementLabel']('pageBreak',_0x2b27a9=>o(_0x38dfd8,'ELEMENT_PAGE_BREAK',_0x2b27a9));}}class yt extends _0x6a3ec8{['afterInit'](){const _0x33cfc2=this['editor'];if(!_0x33cfc2['plugins']['has']('Paragraph'))return;const _0x580a07=_0x33cfc2['locale'],_0x4d60b5=_0x33cfc2['plugins']['get']('TrackChangesEditing');_0x4d60b5['descriptionFactory']['registerElementLabel']('paragraph',_0x1477e6=>o(_0x580a07,'ELEMENT_PARAGRAPH',_0x1477e6)),_0x4d60b5['enableDefaultAttributesIntegration']('paragraph'),_0x4d60b5['enableCommand']('insertParagraph'),_0x33cfc2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x33cfc2),{'priority':'highest'}),_0x33cfc2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x110909,_0x304d86,_0x53bf9c)=>{_0x53bf9c['options']['showSuggestionHighlights']&&nr(_0x33cfc2,{'showActiveMarker':!0x1})(_0x110909,_0x304d86,_0x53bf9c);},{'priority':'highest'});const _0x550036=_0x4d60b5['descriptionFactory'];_0x550036['registerDescriptionCallback'](_0x799358=>{if('insertion'!==_0x799358['type'])return;const {start:_0x3a1b8a,end:_0x48bc39}=_0x799358['getFirstRange']();if(!_0x3a1b8a['isTouching'](_0x48bc39)||!_0x3a1b8a['nodeAfter'])return;const _0x4e4677=_0x33cfc2['model']['schema'],_0x216b6b=_0x3a1b8a['nodeAfter'];return _0x4e4677['isBlock'](_0x216b6b)&&!_0x4e4677['isLimit'](_0x216b6b)&&_0x4e4677['checkChild'](_0x216b6b,'$text')?{'type':'insertion','content':o(_0x580a07,'*Insert:*\x20%0',_0x550036['getItemLabel'](_0x216b6b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b7517=this['editor'],_0x415bb2=_0x3b7517['locale'];_0x3b7517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2296b9=>{if('formatBlock'!=_0x2296b9['type'])return;const {data:_0x312ced}=_0x2296b9;return _0x312ced&&'paragraph'==_0x312ced['commandName']?{'type':'format','content':o(_0x415bb2,'*Change\x20to:*\x20%0',o(_0x415bb2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3612e2,{showActiveMarker:_0xcd0df0=!0x0}={}){return(_0x26d78f,_0x494855,_0x281870)=>{const _0x5cc8a8=_0x3612e2['plugins']['get']('TrackChangesEditing'),_0x2a6bcd=_0x494855['markerRange']['start'],_0x475c51=_0x494855['markerRange']['end'],_0x3ef83d=_0x3612e2['model']['schema'];if(!_0x2a6bcd['isTouching'](_0x475c51)||!_0x2a6bcd['nodeAfter'])return;const _0x2c9406=_0x2a6bcd['nodeAfter'];if(_0x3ef83d['isBlock'](_0x2c9406)&&!_0x3ef83d['isLimit'](_0x2c9406)&&_0x3ef83d['checkChild'](_0x2c9406,'$text')){if(!_0x281870['consumable']['consume'](_0x494855['markerRange'],_0x26d78f['name']))return;const {authorId:_0x36d9c6}=_0x5cc8a8['_splitMarkerName'](_0x494855['markerName']),_0x14f810=_0x281870['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x36d9c6}),_0x515472=_0x281870['mapper']['toViewPosition'](_0x475c51);_0xcd0df0&&_0x5cc8a8['activeMarkers']['includes'](_0x494855['markerName'])&&_0x281870['writer']['addClass']('ck-suggestion-marker--active',_0x14f810),_0x281870['writer']['insert'](_0x515472,_0x14f810),_0x281870['mapper']['bindElementToMarker'](_0x14f810,_0x494855['markerName']);}};}class jt extends _0x6a3ec8{['afterInit'](){const _0x546721=this['editor'];_0x546721['commands']['get']('replaceSource')&&_0x546721['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x6a3ec8{['afterInit'](){const _0x120c47=this['editor'];if(!_0x120c47['plugins']['has']('RemoveFormatEditing'))return;_0x120c47['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ef00b=this['editor'];_0x4ef00b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1abcfe=>{if('formatBlock'!=_0x1abcfe['type']&&'formatInline'!=_0x1abcfe['type'])return;const {data:_0x84c5ef}=_0x1abcfe;return _0x84c5ef&&'removeFormat'==_0x84c5ef['commandName']?{'type':'format','content':o(_0x4ef00b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x6a3ec8{['afterInit'](){const _0x4f2b25=this['editor'];if(!_0x4f2b25['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x58c451=_0x4f2b25['plugins']['get']('TrackChangesEditing');_0x58c451['enableCommand']('goToPreviousRestrictedEditingException'),_0x58c451['enableCommand']('goToNextRestrictedEditingException');const _0x3e2cb4=_0x4f2b25['plugins']['get']('RestrictedEditingModeEditing');_0x3e2cb4['enableCommand']('trackChanges'),_0x3e2cb4['enableCommand']('acceptSuggestion'),_0x3e2cb4['enableCommand']('discardSuggestion'),_0x3e2cb4['enableCommand']('acceptAllSuggestions'),_0x3e2cb4['enableCommand']('discardAllSuggestions'),_0x3e2cb4['enableCommand']('acceptSelectedSuggestions'),_0x3e2cb4['enableCommand']('discardSelectedSuggestions');}}class It extends _0x6a3ec8{static get['requires'](){return[_0x4e86be];}['init'](){const _0x2409ce=this['editor'],_0x4eea57=_0x2409ce['plugins']['get']('TrackChangesEditing');_0x4eea57['enableCommand']('shiftEnter'),_0x2409ce['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2409ce),{'priority':'high'}),_0x2409ce['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2409ce),{'priority':'high'}),_0x2409ce['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55c786,_0x1921eb,_0x11a193)=>{_0x11a193['options']['showSuggestionHighlights']&&je(_0x2409ce,{'showActiveMarker':!0x1})(_0x55c786,_0x1921eb,_0x11a193);}),_0x4eea57['descriptionFactory']['registerElementLabel']('softBreak',_0x58e2d8=>o(_0x2409ce['locale'],'ELEMENT_LINE_BREAK',_0x58e2d8));}}function je(_0x2e0b1b,{showActiveMarker:_0x2e504a=!0x0}={}){return(_0x5b137c,_0xa9b8a2,_0x26f259)=>{const _0x647568=_0x2e0b1b['plugins']['get']('TrackChangesEditing');if(!_0x26f259['consumable']['test'](_0xa9b8a2['markerRange'],_0x5b137c['name']))return;const _0x285ccc=_0x2e0b1b['model'];for(const _0x48f70d of _0xa9b8a2['markerRange']['getItems']()){if(!_0x48f70d['is']('element','softBreak'))continue;const _0x12007a='deletion'==_0xa9b8a2['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x157abb}=_0x647568['_splitMarkerName'](_0xa9b8a2['markerName']),_0x45f572=_0x26f259['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12007a,'data-author-id':_0x157abb}),_0x222358=_0x26f259['mapper']['toViewPosition'](_0x285ccc['createPositionBefore'](_0x48f70d));_0x2e504a&&_0x647568['activeMarkers']['includes'](_0xa9b8a2['markerName'])&&_0x26f259['writer']['addClass']('ck-suggestion-marker--active',_0x45f572),_0x26f259['writer']['insert'](_0x222358,_0x45f572),_0x26f259['mapper']['bindElementToMarker'](_0x45f572,_0xa9b8a2['markerName']);}};}class vt extends _0x6a3ec8{['afterInit'](){const _0x2d972e=this['editor'],_0x1f9f97=_0x2d972e['model'],_0x3ba071=_0x2d972e['locale'];if(!_0x2d972e['plugins']['has']('StandardEditingModeEditing'))return;const _0x2a8a26=_0x2d972e['plugins']['get']('TrackChangesEditing'),_0x24bfc1='restrictedEditingException',_0x4cd30e=_0x2d972e['commands']['get'](_0x24bfc1);_0x2a8a26['enableCommand'](_0x24bfc1,(_0x5a4aa5,_0x1713b3={})=>{const _0xfcf839=_0x1f9f97['document']['selection'];if(_0xfcf839['isCollapsed'])return void _0x5a4aa5(_0x1713b3);const _0x20a780=void 0x0!==_0x1713b3['forceValue']?_0x1713b3['forceValue']:!_0x4cd30e['value'];_0x1f9f97['change'](()=>{const _0x21ca33=Array['from'](_0xfcf839['getRanges']());for(const _0x4a5017 of _0x21ca33){const _0x199b76=_0x20a780?[_0x4a5017]:io(_0x24bfc1,_0x4a5017,_0x1f9f97);for(const _0x391333 of _0x199b76)_0x2a8a26['markInlineFormat'](_0x391333,{'commandName':_0x24bfc1,'commandParams':[{'forceValue':_0x20a780}]});}});}),_0x2a8a26['descriptionFactory']['registerDescriptionCallback'](_0x47085c=>{if('formatBlock'!=_0x47085c['type']&&'formatInline'!=_0x47085c['type'])return;const {data:_0xb05f02}=_0x47085c;return _0xb05f02&&_0xb05f02['commandName']==_0x24bfc1?_0xb05f02['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ba071,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3ba071,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x6a3ec8{['afterInit'](){const _0x3f5841=this['editor'];if(!_0x3f5841['plugins']['has']('Style')||!_0x3f5841['plugins']['has']('DataSchema'))return;const _0x886af7=_0x3f5841['plugins']['get']('TrackChangesEditing'),_0xcfc697=_0x3f5841['locale'],_0x3d8e4b=_0x3f5841['config']['get']('style')||{},_0x319974=_0x3f5841['plugins']['get']('GeneralHtmlSupport'),_0x3e9447=_0x3f5841['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3f5841['plugins']['get']('DataSchema'),_0x3d8e4b['definitions']);_0x886af7['enableDefaultAttributesIntegration']('style');const _0x4653d9=new Set();for(const _0x576795 of _0x3e9447['block']){const _0x5b3b03=_0x319974['getGhsAttributeNameForElement'](_0x576795['element']);_0x4653d9['add'](_0x5b3b03);}const _0x1a5cd3=new Set();for(const _0x8cacda of _0x3e9447['inline']){const _0x3b8a31=_0x319974['getGhsAttributeNameForElement'](_0x8cacda['element']);_0x1a5cd3['add'](_0x3b8a31);for(const _0x2e8492 of _0x8cacda['ghsAttributes'])_0x1a5cd3['add'](_0x2e8492);}for(const _0x2c5421 of _0x4653d9)_0x886af7['registerBlockAttribute'](_0x2c5421),_0x886af7['descriptionFactory']['registerAttributeLabel'](_0x2c5421,o(_0xcfc697,'FORMAT_STYLE'));for(const _0x1ffe5b of _0x1a5cd3)_0x886af7['registerInlineAttribute'](_0x1ffe5b),_0x886af7['descriptionFactory']['registerAttributeLabel'](_0x1ffe5b,o(_0xcfc697,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32d372=this['editor'],_0xfee25c=_0x32d372['locale'];_0x32d372['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x310474=>{if('formatBlock'!=_0x310474['type']&&'formatInline'!=_0x310474['type'])return;const {data:_0x336c2e}=_0x310474;return _0x336c2e&&'style'===_0x336c2e['commandName']?_0x336c2e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfee25c,'*Set\x20format:*\x20%0',_0x336c2e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xfee25c,'*Remove\x20format:*\x20%0',_0x336c2e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x6a3ec8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x180ab2){super(_0x180ab2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x87b11c=this['editor'],_0x198ff8=_0x87b11c['model']['document']['selection'];if(!_0x87b11c['plugins']['has']('TableEditing'))return;const _0x2b0c09=_0x87b11c['locale'],_0xfdbfb5=_0x87b11c['plugins']['get']('TrackChangesEditing'),_0x1a0c52=_0x87b11c['plugins']['get']('TableUtils');_0xfdbfb5['descriptionFactory']['registerElementLabel']('table',_0x4b9f97=>o(_0x2b0c09,'ELEMENT_TABLE',_0x4b9f97)),this['_setupColumnsRowsFixing'](),_0xfdbfb5['enableCommand']('insertTable'),_0xfdbfb5['enableCommand']('selectTableRow'),_0xfdbfb5['enableCommand']('selectTableColumn');for(const _0x46019f of['insertTableRowAbove','insertTableRowBelow']){const _0x331696=_0x87b11c['commands']['get'](_0x46019f);_0xfdbfb5['enableCommand'](_0x46019f,_0x1c1237=>{_0x87b11c['model']['change'](_0x28336c=>{_0x1c1237();const _0x474c66='above'===_0x331696['order'],_0x38b212=_0x1a0c52['getSelectionAffectedTableCells'](_0x198ff8),_0x497c00=_0x1a0c52['getRowIndexes'](_0x38b212),_0x576175=_0x474c66?_0x497c00['first']-0x1:_0x497c00['last']+0x1,_0x4d206d=_0x38b212[0x0]['findAncestor']('table'),_0x190353=_0x1a0c52['createTableWalker'](_0x4d206d,{'startRow':_0x576175,'endRow':_0x576175}),_0x34fb79=Array['from'](_0x190353)['map'](_0x3078ee=>_0x28336c['createRangeOn'](_0x3078ee['cell']));_0xfdbfb5['markMultiRangeInsertion'](_0x34fb79,'tableRow');});});}for(const _0x26171c of['insertTableColumnLeft','insertTableColumnRight']){const _0x2febde=_0x87b11c['commands']['get'](_0x26171c);_0xfdbfb5['enableCommand'](_0x26171c,_0x2757ee=>{_0x87b11c['model']['change'](_0x387931=>{_0x2757ee();const _0x172500='left'===_0x2febde['order'],_0x46ad5b=_0x1a0c52['getSelectionAffectedTableCells'](_0x198ff8),_0x5f1070=_0x1a0c52['getColumnIndexes'](_0x46ad5b),_0x166eb4=_0x172500?_0x5f1070['first']-0x1:_0x5f1070['last']+0x1,_0x1cff27=_0x46ad5b[0x0]['findAncestor']('table'),_0x15d6b9=_0x1a0c52['createTableWalker'](_0x1cff27,{'startRow':0x0,'column':_0x166eb4,'includeAllSlots':!0x1}),_0x106b0b=Array['from'](_0x15d6b9)['map'](_0x38ced1=>_0x387931['createRangeOn'](_0x38ced1['cell']));_0xfdbfb5['markMultiRangeInsertion'](_0x106b0b,'tableColumn');});});}for(const _0x239260 of['removeTableRow','removeTableColumn']){const _0x4973bc=_0x239260['substr'](0xb),_0x2c04f7=_0x4973bc['toLowerCase'](),_0x5bfc57=_0x2c04f7['substr'](0x0,0x3)+'span',_0x1394cc='table'+_0x4973bc,_0x2db08f='min'+_0x4973bc,_0x24df6f='max'+_0x4973bc;_0xfdbfb5['enableCommand'](_0x239260,()=>{_0x87b11c['model']['change'](_0x35c90a=>{const _0x37ff2a=_0x1a0c52['getSelectionAffectedTableCells'](_0x198ff8),_0x1857ff=_0x37ff2a[0x0]['findAncestor']('table');let _0x6320f7;if('removeTableRow'==_0x239260){const _0x2bb8f2=_0x1a0c52['getRowIndexes'](_0x37ff2a);_0x6320f7={'startRow':_0x2bb8f2['first'],'endRow':_0x2bb8f2['last'],'includeAllSlots':!0x0};}else{const _0x337409=_0x1a0c52['getColumnIndexes'](_0x37ff2a);_0x6320f7={'startColumn':_0x337409['first'],'endColumn':_0x337409['last'],'includeAllSlots':!0x0};}const _0x4b7c24=_0x1a0c52['createTableWalker'](_0x1857ff,_0x6320f7),_0x4fc848=Array['from'](_0x4b7c24)['map'](({cell:_0xc23c71})=>_0xc23c71),_0x642e6e=Ne(_0x4fc848['filter'](_0x1ac0b0=>_0x1ac0b0['hasAttribute'](_0x5bfc57))),_0x57cc6d=Ne(_0x4fc848['filter'](_0x308982=>!_0x308982['hasAttribute'](_0x5bfc57)))['map'](_0x4b4882=>_0x35c90a['createRangeOn'](_0x4b4882)),_0x30516e=_0xfdbfb5['markMultiRangeDeletion'](_0x57cc6d,_0x1394cc);if(_0x30516e&&('tableRow'==_0x30516e['subType']||'tableColumn'==_0x30516e['subType'])){const _0x378658=this['_getSuggestionCoords'](_0x30516e);for(const _0x5b5329 of _0x642e6e){const _0x4dd838=_0x35c90a['createRangeOn'](_0x5b5329),_0x135665=_0x1a0c52['getCellLocation'](_0x5b5329),_0x5debf4=_0x5b5329['getAttribute'](_0x5bfc57)-0x1,_0x181921=_0x378658[_0x2db08f],_0x3fc559=_0x378658[_0x24df6f];_0x181921<=_0x135665[_0x2c04f7]&&_0x135665[_0x2c04f7]+_0x5debf4<=_0x3fc559&&_0x30516e['addRange'](_0x4dd838);}}});});}function _0x5c1044(_0x5a7f58){const _0x3e94a7=Array['from'](_0x198ff8['getRanges']())['map'](_0x178636=>_0x36d42c['fromRange'](_0x178636));_0x87b11c['model']['change'](_0x2084df=>{const _0x3ca5ad=_0x2084df['batch'];_0x5a7f58=_0x5a7f58['filter'](_0x2aa6d3=>'$graveyard'!=_0x2aa6d3['root']['rootName']),_0x2084df['setSelection'](_0x5a7f58),_0x87b11c['commands']['get']('removeTableRow')['refresh'](),_0x87b11c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x87b11c['model']['enqueueChange'](()=>{_0x87b11c['model']['enqueueChange'](_0x3ca5ad,_0x59896d=>{const _0x506705=_0x3e94a7['filter'](_0x522361=>'$graveyard'!=_0x522361['root']['rootName']);_0x506705['length']>0x0&&_0x59896d['setSelection'](_0x506705);for(const _0x2beaa1 of _0x3e94a7)_0x2beaa1['detach']();});});});}function _0x216146(_0x7bde66){_0x87b11c['model']['change'](_0x4dd250=>{const _0x467e2e=Array['from'](_0x198ff8['getRanges']())['map'](_0x55a789=>_0x36d42c['fromRange'](_0x55a789)),_0x25432b=[];for(const _0x1bdf9f of _0x7bde66)for(const _0xc50b79 of _0x1bdf9f['getItems']({'shallow':!0x0}))_0x25432b['push'](_0xc50b79);for(const _0x5f088a of _0x25432b)'$graveyard'!=_0x5f088a['root']['rootName']&&(_0x4dd250['setSelection'](_0x4dd250['createPositionAt'](_0x5f088a,0x0)),_0x87b11c['commands']['get']('removeTableColumn')['refresh'](),_0x87b11c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3d487b=_0x467e2e['filter'](_0x8499d0=>'$graveyard'!=_0x8499d0['root']['rootName']);_0x3d487b['length']>0x0&&_0x4dd250['setSelection'](_0x3d487b);for(const _0x1d7159 of _0x467e2e)_0x1d7159['detach']();});}function _0x27ffaa(_0x317cfd,_0x3bbd5c){return _0x3bbd5c['every'](_0xc2db80=>_0x317cfd['some'](_0x5d776e=>_0x5d776e['end']['isEqual'](_0xc2db80['start'])||_0xc2db80['end']['isEqual'](_0x5d776e['start'])));}function _0x39e95f(_0xfa8c77,_0x24ffc8){return!_0xfa8c77['some'](_0x551ae4=>_0x24ffc8['some'](_0x43f806=>_0x551ae4['isIntersecting'](_0x43f806)))&&_0xfa8c77['some'](_0x425805=>_0x24ffc8['some'](_0x26241d=>_0x425805['end']['isTouching'](_0x26241d['start'])));}_0x87b11c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ee29b,_0x158ebb,_0x6ff170)=>{if(!_0x6ff170['options']['showSuggestionHighlights'])return;const _0xba2bf5=_0x158ebb['item'];if(!_0xba2bf5)return;const _0x169cc1=_0x6ff170['mapper']['toViewElement'](_0xba2bf5);function _0x5d2cef(_0x35bb66){return Array['isArray'](_0x35bb66)?_0x35bb66:[_0x35bb66];}_0x169cc1&&'tableCell'===_0xba2bf5['name']&&_0x3c0e0b(_0x169cc1,_0x6ff170['writer'],(_0x1d156b,_0x1d7efa,_0x1505af)=>_0x1505af['addClass'](_0x5d2cef(_0x1d7efa['classes']),_0x1d156b),(_0xea3f35,_0x14e7a0,_0x814c9a)=>_0x814c9a['removeClass'](_0x5d2cef(_0x14e7a0['classes']),_0xea3f35));},{'priority':'highest'}),_0xfdbfb5['descriptionFactory']['registerDescriptionCallback'](_0x39f1b8=>{if('insertion'!=_0x39f1b8['type']&&'deletion'!=_0x39f1b8['type'])return;const _0x1d7428=_0x39f1b8['getContainedElement']();if(null!=_0x1d7428&&_0x1d7428['is']('element','table')){if('insertion'==_0x39f1b8['type']){const _0x5bb10d=_0x39f1b8['getItems']()['filter'](_0xa566a0=>_0xa566a0['is']('$textProxy'))['map'](_0x177c97=>_0x177c97['data']);if(_0x5bb10d['length'])return{'type':'insertion','content':o(_0x2b0c09,'*Insert:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5bb10d['join']('\x20')+'\x22'))};}if('deletion'==_0x39f1b8['type']){const _0x1288c8=_0x39f1b8['getItems']()['filter'](_0x21880d=>_0x21880d['is']('$textProxy'))['map'](_0x273aad=>_0x273aad['data']);if(_0x1288c8['length'])return{'type':'deletion','content':o(_0x2b0c09,'*Remove:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1288c8['join']('\x20')+'\x22'))};}}}),_0xfdbfb5['descriptionFactory']['registerDescriptionCallback'](_0x3c9ca9=>{if('tableRow'==_0x3c9ca9['subType']){const _0x1a8b05=_0x3c9ca9['getItems']()['filter'](_0x322f0d=>_0x322f0d['is']('$textProxy'))['map'](_0x3b6d3f=>_0x3b6d3f['data']),_0x54b11e=this['_getSuggestionCoords'](_0x3c9ca9),_0xeb2e0c=_0x54b11e['maxRow']-_0x54b11e['minRow']+0x1;if('insertion'==_0x3c9ca9['type'])return _0x1a8b05['length']?{'type':'insertion','content':o(_0x2b0c09,'*Insert:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xeb2e0c,'\x22'+_0x1a8b05['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b0c09,'*Insert:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_ROW',_0xeb2e0c))};if('deletion'==_0x3c9ca9['type'])return _0x1a8b05['length']?{'type':'deletion','content':o(_0x2b0c09,'*Remove:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xeb2e0c,'\x22'+_0x1a8b05['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b0c09,'*Remove:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_ROW',_0xeb2e0c))};}if('tableColumn'==_0x3c9ca9['subType']){const _0xdb3b77=_0x3c9ca9['getItems']()['filter'](_0x3fe431=>_0x3fe431['is']('$textProxy'))['map'](_0x927f22=>_0x927f22['data']),_0x2d06c3=this['_getSuggestionCoords'](_0x3c9ca9),_0x46e12f=_0x2d06c3['maxColumn']-_0x2d06c3['minColumn']+0x1;if('insertion'==_0x3c9ca9['type'])return _0xdb3b77['length']?{'type':'insertion','content':o(_0x2b0c09,'*Insert:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x46e12f,'\x22'+_0xdb3b77['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b0c09,'*Insert:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_COLUMN',_0x46e12f))};if('deletion'==_0x3c9ca9['type'])return _0xdb3b77['length']?{'type':'deletion','content':o(_0x2b0c09,'*Remove:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x46e12f,'\x22'+_0xdb3b77['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b0c09,'*Remove:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_COLUMN',_0x46e12f))};}}),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5c1044),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5c1044),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x216146),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x216146),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x27ffaa),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x27ffaa),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x39e95f),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x39e95f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c2abf=this['editor'],_0x3d1cdb=_0x5c2abf['model']['document']['selection'];return(_0x2eb432,_0x4bfecd)=>{_0x5c2abf['model']['change'](_0x390e60=>{const {commandName:_0x5ed305,commandParams:_0x16230c}=_0x4bfecd;let _0x4ff89f=_0x2eb432[0x0]['end']['nodeBefore'];_0x16230c&&_0x16230c[0x0]&&!0x1===_0x16230c[0x0]['forceValue']&&(_0x4ff89f=_0x2eb432[0x0]['start']['nodeAfter']);const _0x518621=_0x390e60['createRangeIn'](_0x4ff89f);if('$graveyard'==_0x518621['root']['rootName'])return;const _0x2cbe55=Array['from'](_0x3d1cdb['getRanges']())['map'](_0x2599ad=>_0x36d42c['fromRange'](_0x2599ad));_0x390e60['setSelection'](_0x518621),_0x5c2abf['commands']['get'](_0x5ed305)['refresh'](),_0x16230c['push']({'forceDefaultExecution':!0x0}),_0x5c2abf['execute'](_0x5ed305,..._0x16230c);const _0xbef972=_0x2cbe55['filter'](_0xbe867b=>'$graveyard'!=_0xbe867b['root']['rootName']);_0xbef972['length']>0x0&&_0x390e60['setSelection'](_0xbef972);for(const _0x41eea6 of _0x2cbe55)_0x41eea6['detach']();});};}['_getCoordsForCells'](_0x38a01b){const _0xe06bac=this['editor']['plugins']['get']('TableUtils');let _0x35ba57=Number['MAX_SAFE_INTEGER'],_0x45e685=Number['MIN_SAFE_INTEGER'],_0x38ba2f=Number['MAX_SAFE_INTEGER'],_0x5d96fe=Number['MIN_SAFE_INTEGER'];for(const _0x2fb20e of _0x38a01b){if('$graveyard'==_0x2fb20e['root']['rootName'])continue;const {row:_0x1f1c0f,column:_0x264c99}=_0xe06bac['getCellLocation'](_0x2fb20e),_0x4031b9=_0x2fb20e['hasAttribute']('rowspan')?_0x2fb20e['getAttribute']('rowspan')-0x1:0x0,_0x34524e=_0x2fb20e['hasAttribute']('colspan')?_0x2fb20e['getAttribute']('colspan')-0x1:0x0;_0x35ba57=_0x1f1c0f<_0x35ba57?_0x1f1c0f:_0x35ba57,_0x45e685=_0x1f1c0f+_0x4031b9>_0x45e685?_0x1f1c0f+_0x4031b9:_0x45e685,_0x38ba2f=_0x264c99<_0x38ba2f?_0x264c99:_0x38ba2f,_0x5d96fe=_0x264c99+_0x34524e>_0x5d96fe?_0x264c99+_0x34524e:_0x5d96fe;}return{'minRow':_0x35ba57,'maxRow':_0x45e685,'minColumn':_0x38ba2f,'maxColumn':_0x5d96fe};}['_setupColumnsRowsFixing'](){const _0x5feeec=this['editor'],_0x33d16c=_0x5feeec['plugins']['get']('TrackChangesEditing'),_0x54be35=_0x5feeec['plugins']['get']('TableUtils');_0x5feeec['model']['document']['on']('change:data',()=>{const _0x25e321=Array['from'](_0x5feeec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45fd6d,data:_0x459f8f}of _0x25e321){const {group:_0x4efd1b,id:_0x5d8c5c,subType:_0x1986ad}=_0x33d16c['_splitMarkerName'](_0x45fd6d);if('suggestion'!=_0x4efd1b)continue;if(null!=_0x459f8f['oldRange'])continue;const _0x11dd02=_0x33d16c['getSuggestion'](_0x5d8c5c);this['_tablePostFixingSubtypes']['includes'](_0x1986ad)&&this['_tableSuggestions']['add'](_0x11dd02);}},{'priority':'low'});const _0x282b46=(_0x15c46a,_0x4d55c6)=>{let _0x4078ae=!0x1;const _0x550d4a=_0x4d55c6['createRangeOn'](_0x15c46a),_0x2ef41f=_0x15c46a['findAncestor']('table'),_0x214d3c=_0x54be35['getCellLocation'](_0x15c46a);for(const _0x8408c1 of this['_tableSuggestions']){const _0x983f27=_0x8408c1['subType'],_0x5e8f79=_0x983f27['startsWith']('tablePaste'),_0x5c30cf=_0x983f27['substr'](_0x5e8f79?0xa:0x5),_0x17c54b=_0x5c30cf['toLowerCase'](),_0x12eda9=_0x17c54b['substr'](0x0,0x3)+'span',_0x4a8728='min'+_0x5c30cf,_0x47025b='max'+_0x5c30cf;if(!_0x8408c1['isInContent'])continue;if(_0x2ef41f!=_0x8408c1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x8408c1['isIntersectingWithRange'](_0x550d4a))continue;const _0x2a7dc9=_0x15c46a['hasAttribute'](_0x12eda9)?_0x15c46a['getAttribute'](_0x12eda9)-0x1:0x0,_0x3ae973=this['_getSuggestionCoords'](_0x8408c1),_0xce5872=_0x3ae973[_0x4a8728],_0x29658c=_0x3ae973[_0x47025b];_0xce5872<=_0x214d3c[_0x17c54b]&&_0x214d3c[_0x17c54b]+_0x2a7dc9<=_0x29658c&&(_0x8408c1['addRange'](_0x550d4a),_0x4078ae=!0x0);}return _0x4078ae;};_0x5feeec['model']['document']['registerPostFixer'](_0x33363e=>{let _0x33abcb=!0x1;for(const _0x5e080a of _0x5feeec['model']['document']['differ']['getChanges']())if('insert'==_0x5e080a['type']){if('tableRow'==_0x5e080a['name']){for(const _0x29f818 of _0x5e080a['position']['nodeAfter']['getChildren']())_0x33abcb=_0x33abcb||_0x282b46(_0x29f818,_0x33363e);}else'tableCell'==_0x5e080a['name']&&(_0x33abcb=_0x33abcb||_0x282b46(_0x5e080a['position']['nodeAfter'],_0x33363e));}return _0x33abcb;});}['_getSuggestionCoords'](_0x26f300){return this['_getCoordsForCells'](_0x26f300['getRanges']()['map'](_0x39fe47=>_0x39fe47['start']['nodeAfter']));}}function Ne(_0x2cfedf){return Array['from'](new Set(_0x2cfedf)['values']());}class Nt extends _0x6a3ec8{static get['requires'](){return[Ct];}['afterInit'](){const _0x424681=this['editor'],_0x42e3b3=_0x424681['model']['document']['selection'],_0x178f37=_0x424681['locale'];if(!_0x424681['plugins']['has']('TableEditing'))return;const _0x127019=_0x424681['plugins']['get']('TrackChangesEditing'),_0x339434=_0x424681['plugins']['get']('TableUtils'),_0x4f8fd0=_0x424681['plugins']['get'](Ct);_0x4f8fd0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x127019['enableCommand']('mergeTableCells',()=>{const _0x370b68=_0x339434['getSelectionAffectedTableCells'](_0x424681['model']['document']['selection']);_0x424681['model']['change'](()=>{_0x127019['markMultiRangeBlockFormat'](_0x370b68,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x424681['commands']['get']('mergeTableCells')['on']('execute',(_0x2ea33f,_0x4c5290)=>{_0x424681['commands']['get']('trackChanges')['value']&&(_0x4c5290['length']>0x0&&_0x4c5290[_0x4c5290['length']-0x1]&&_0x4c5290[_0x4c5290['length']-0x1]['forceDefaultExecution']||_0x127019['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2ea33f['stop']());},{'priority':'highest'});for(const _0x356681 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1eb4be=_0x424681['commands']['get'](_0x356681);_0x127019['enableCommand'](_0x356681,()=>{const _0x30d402=_0x424681['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c91da=>_0x3c91da['is']('element','tableCell')),_0x25258b=_0x1eb4be['value'];_0x424681['model']['change'](()=>{_0x127019['markMultiRangeBlockFormat']([_0x30d402,_0x25258b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x109cdf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x309e8f=_0x424681['commands']['get'](_0x109cdf);_0x127019['enableCommand'](_0x109cdf,()=>{const _0x2c8d52=_0x339434['getSelectionAffectedTableCells'](_0x424681['model']['document']['selection'])[0x0],_0xc5509e=_0x2c8d52['findAncestor']('table'),{column:_0x503d22,row:_0x18f143}=_0x339434['getCellLocation'](_0x2c8d52);let _0x3ac532=[];if('horizontally'==_0x309e8f['direction']){const _0x3bf739=_0x339434['createTableWalker'](_0xc5509e,{'startRow':_0x18f143,'endRow':_0x18f143,'includeAllSlots':!0x0});_0x3ac532=Array['from'](_0x3bf739)['map'](_0x2334d3=>_0x2334d3['cell']);}else{const _0x53b009=_0x339434['createTableWalker'](_0xc5509e,{'column':_0x503d22,'includeAllSlots':!0x0});_0x3ac532=Array['from'](_0x53b009)['map'](_0x4bd03e=>_0x4bd03e['cell']);}_0x424681['model']['change'](_0x106985=>{_0x127019['markBlockFormat'](_0x106985['createRangeOn'](_0x2c8d52),{'commandName':_0x109cdf,'commandParams':[]},_0x3ac532,_0x109cdf);});});}_0x127019['descriptionFactory']['registerDescriptionCallback'](_0x5af870=>{if('formatBlock'!=_0x5af870['type']&&'formatInline'!=_0x5af870['type'])return;const {data:_0x3e2774}=_0x5af870;return _0x3e2774&&'mergeTableCells'==_0x3e2774['commandName']?{'type':'format','content':o(_0x178f37,'*Merge\x20cells*')}:void 0x0;}),_0x127019['descriptionFactory']['registerDescriptionCallback'](_0x23ecda=>{if('formatBlock'!=_0x23ecda['type']&&'formatInline'!=_0x23ecda['type'])return;const {data:_0x34414f}=_0x23ecda;return _0x34414f?'splitTableCellVertically'==_0x34414f['commandName']?{'type':'format','content':o(_0x178f37,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x34414f['commandName']?{'type':'format','content':o(_0x178f37,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5def80=_0x4f8fd0['_acceptFormatSuggestionCallbackFactory']();for(const _0x4eb8a9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x127019['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4eb8a9,'accept',_0x5def80);for(const _0x5ea421 of['splitTableCellVertically','splitTableCellHorizontally'])_0x127019['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ea421,'accept',_0x5def80);_0x127019['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4a827b=>{_0x424681['model']['change'](_0xa5b786=>{const _0x4b1e33=Array['from'](_0x42e3b3['getRanges']())['map'](_0x4981bf=>_0x36d42c['fromRange'](_0x4981bf));_0xa5b786['setSelection'](_0x4a827b),_0x424681['commands']['get']('mergeTableCells')['refresh'](),_0x424681['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x768183=_0x4b1e33['filter'](_0x167899=>'$graveyard'!=_0x167899['root']['rootName']);_0x768183['length']>0x0&&_0xa5b786['setSelection'](_0x768183);for(const _0x4e7aaa of _0x4b1e33)_0x4e7aaa['detach']();});});for(const _0x2cc95e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a47a2=_0x424681['commands']['get'](_0x2cc95e);_0x2a47a2['on']('set:isEnabled',(_0x4e9c68,_0x1fdb55,_0x4ed913)=>{if(_0x4ed913){const _0x44b4e9=_0x424681['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5b6802=>_0x5b6802['is']('element','tableCell'));this['_areMergableCells'](_0x2a47a2['value'],_0x44b4e9)||(_0x4e9c68['return']=!0x1,_0x4e9c68['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25eb12=this['editor']['commands']['get']('mergeTableCells'),_0x2f633e=this['editor']['plugins']['get']('TableUtils');if(!_0x25eb12['isEnabled'])return!0x1;const _0x3815ef=_0x2f633e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d030a of _0x3815ef)for(const _0xad8dbb of _0x3815ef)if(_0x3d030a!=_0xad8dbb&&!this['_areMergableCells'](_0x3d030a,_0xad8dbb))return!0x1;return!0x0;}['_areMergableCells'](_0x4e5327,_0x23ce5f){const _0x10b2f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e402f=this['editor']['model']['createRangeOn'](_0x4e5327),_0x21ca07=this['editor']['model']['createRangeOn'](_0x23ce5f),_0x3349a1=new Set(),_0x25e447=new Set();for(const _0x3b4fef of _0x10b2f8['getSuggestions']())if(('insertion'==_0x3b4fef['type']||'deletion'==_0x3b4fef['type']||'mergeTableCells'==_0x3b4fef['subType'])&&_0x3b4fef['isInContent']){for(const _0x239cc3 of _0x3b4fef['getRanges']())_0x239cc3['containsRange'](_0x5e402f,!0x0)&&_0x3349a1['add'](_0x3b4fef['type']+':'+_0x3b4fef['author']['id']),_0x239cc3['containsRange'](_0x21ca07,!0x0)&&_0x25e447['add'](_0x3b4fef['type']+':'+_0x3b4fef['author']['id']);}if(_0x3349a1['size']!=_0x25e447['size'])return!0x1;for(const _0x494086 of _0x3349a1)if(!_0x25e447['has'](_0x494086))return!0x1;return!0x0;}}class Dt extends _0x6a3ec8{static get['requires'](){return[Ct];}['afterInit'](){const _0x14fe35=this['editor'];if(!_0x14fe35['plugins']['has']('TableEditing'))return;const _0x4c28c0=_0x14fe35['locale'],_0x17250d=_0x14fe35['plugins']['get']('TrackChangesEditing');_0x17250d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x17250d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x17250d['registerBlockAttribute']('headingRows'),_0x17250d['registerBlockAttribute']('headingColumns'),_0x17250d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c28c0,'FORMAT_HEADER_ROW')),_0x17250d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c28c0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ad9bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x783a30=this['editor']['plugins']['get']('TableUtils'),_0x435e1c=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3f07cd({showActiveMarker:_0x308bf7=!0x0,setDataAttribute:_0xdafb71=!0x0}={}){return(_0x59a14f,_0x2b0633,_0x514730)=>{const {type:_0x2164a4,id:_0x20cddd}=_0x3ad9bc['_splitMarkerName'](_0x2b0633['markerName']),_0x38ac3b=_0x3ad9bc['getSuggestion'](_0x20cddd),_0x346a8c=_0x38ac3b['data'];if('formatBlock'!=_0x38ac3b['type']||!_0x346a8c||'setTableColumnHeader'!=_0x346a8c['commandName'])return;if(_0x2b0633['item'])return void _0x59a14f['stop']();if(!_0x514730['consumable']['consume'](_0x2b0633['markerRange'],_0x59a14f['name']))return;const _0x43f6b5=_0x2b0633['markerRange']['start']['nodeAfter'],_0x1c0013=_0x2b0633['markerRange']['end']['nodeBefore'],_0x44346b=_0x43f6b5['parent']['parent'],{column:_0x316706}=_0x783a30['getCellLocation'](_0x43f6b5),{column:_0x5eb1c7}=_0x783a30['getCellLocation'](_0x1c0013);for(let _0x218809=_0x316706;_0x218809<=_0x5eb1c7;_0x218809++){const _0x2bedad=_0x783a30['createTableWalker'](_0x44346b,{'column':_0x218809,'includeAllSlots':!0x1});for(const _0x5c7f2b of _0x2bedad){const _0x5f93a4=_0x5c7f2b['cell'],_0x5f095a=_0x514730['mapper']['toViewElement'](_0x5f93a4);_0x514730['writer']['addClass']('ck-suggestion-marker-'+_0x2164a4,_0x5f095a),_0xdafb71&&_0x514730['writer']['setAttribute']('data-suggestion',_0x20cddd,_0x5f095a),_0x514730['mapper']['bindElementToMarker'](_0x5f095a,_0x2b0633['markerName']),_0x308bf7&&(_0x3ad9bc['activeMarkers']['includes'](_0x2b0633['markerName'])?_0x514730['writer']['addClass']('ck-suggestion-marker--active',_0x5f095a):_0x514730['writer']['removeClass']('ck-suggestion-marker--active',_0x5f095a));}}};}_0x3ad9bc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x435e1c),_0x3ad9bc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x435e1c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3f07cd(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21081d,_0xf2eeed,_0x57b97d)=>{_0x57b97d['options']['showSuggestionHighlights']&&_0x3f07cd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x21081d,_0xf2eeed,_0x57b97d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3403c0,_0x2ffd98,_0x258039)=>{const {type:_0x2b6196,id:_0x25058f}=_0x3ad9bc['_splitMarkerName'](_0x2ffd98['markerName']),_0x392d21=_0x3ad9bc['getSuggestion'](_0x25058f),_0x1723f9=_0x392d21['data'];if('formatBlock'!=_0x392d21['type']||!_0x1723f9||'setTableColumnHeader'!=_0x1723f9['commandName'])return;const _0x4a53ab=_0x258039['mapper']['markerNameToElements'](_0x2ffd98['markerName']);if(_0x4a53ab){for(const _0x49c56c of _0x4a53ab)_0x258039['writer']['removeClass']('ck-suggestion-marker-'+_0x2b6196,_0x49c56c),_0x258039['writer']['removeClass']('ck-suggestion-marker--active',_0x49c56c),_0x258039['writer']['removeAttribute']('data-suggestion',_0x49c56c),_0x258039['mapper']['unbindElementFromMarkerName'](_0x49c56c,_0x2ffd98['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4007b4=this['editor'],_0x53f04b=_0x4007b4['locale'];function _0x43fa0e(_0x549d8d){return{'type':'format','content':o(_0x53f04b,'*Format:*\x20%0',_0x549d8d)};}_0x4007b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24dd8e=>{if('formatBlock'!=_0x24dd8e['type'])return;const {data:_0x4099b4}=_0x24dd8e;if(_0x4099b4){if('setTableRowHeader'==_0x4099b4['commandName']){const _0x1de864=_0x4099b4['commandParams'][0x0]['forceValue'];return _0x43fa0e(o(_0x53f04b,_0x1de864?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4099b4['commandName']){const _0x4ab8f8=_0x4099b4['commandParams'][0x0]['forceValue'];return _0x43fa0e(o(_0x53f04b,_0x4ab8f8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3b7224=>[_0x3b7224,null]));class Mt extends _0x6a3ec8{static get['requires'](){return[Ct];}['afterInit'](){const _0x5f24e7=this['editor'];if(!_0x5f24e7['plugins']['has']('TableClipboard'))return;const _0x47ee45=_0x5f24e7['plugins']['get']('TrackChangesEditing'),_0x16d110=_0x5f24e7['plugins']['get']('TableUtils'),_0x5a6b30=_0x5f24e7['plugins']['get'](Ct),_0xb9aca5=_0x5f24e7['plugins']['get']('TableClipboard');_0x5a6b30['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5f24e7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5f24e7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4eee2e=null;_0x5f24e7['model']['on']('insertContent',(_0x190850,_0xe07110)=>{const [_0x5d7e2c,_0x3658af]=_0xe07110,_0xb4c335=_0xe07110[_0xe07110['length']-0x1];_0xb4c335&&_0xb4c335['forceDefaultExecution']||_0x47ee45['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1ecd3c,_0x45932d,_0x59ceac,_0x5263be,_0x260923){if(_0x45932d&&!_0x45932d['is']('documentSelection'))return!0x1;const _0x2f3b6c=_0x260923['getTableIfOnlyTableInContent'](_0x1ecd3c,_0x59ceac);if(!_0x2f3b6c||!Ue(_0x2f3b6c,void 0x0,_0x5263be))return!0x1;const _0x41a70d=_0x5263be['getSelectionAffectedTableCells'](_0x59ceac['document']['selection']);if(!_0x41a70d['length'])return!0x1;const _0x332dd3=_0x41a70d[0x0]['findAncestor']('table'),_0x497508=_0x5263be['getRowIndexes'](_0x41a70d),_0x1bc8f5=_0x5263be['getColumnIndexes'](_0x41a70d),_0x59cc36={'startRow':_0x497508['first'],'endRow':_0x497508['last'],'startColumn':_0x1bc8f5['first'],'endColumn':_0x1bc8f5['last']};return 0x1==_0x41a70d['length']&&(_0x59cc36['endRow']+=_0x5263be['getRows'](_0x2f3b6c)-0x1,_0x59cc36['endColumn']+=_0x5263be['getColumns'](_0x2f3b6c)-0x1),Ue(_0x332dd3,_0x59cc36,_0x5263be);}(_0x5d7e2c,_0x3658af,_0x5f24e7['model'],_0x16d110,_0xb9aca5)&&(_0x190850['stop'](),_0x4eee2e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f24e7['model']['change'](()=>{_0x5f24e7['model']['insertContent'](_0xe07110[0x0],_0xe07110[0x1],_0xe07110[0x2],{'forceDefaultExecution':!0x0});const _0x579ea5=_0xf0931c(),{rowInsertionRanges:_0x5de64f,columnInsertionRanges:_0x2f6524,insertionRanges:_0x2f3a03,deletionRanges:_0x132c6d,cells:_0x99cf4c}=_0x4eee2e;_0x5de64f['length']&&_0x47ee45['markMultiRangeInsertion'](_0x5de64f,'tablePasteRow',{'tablePasteChainId':_0x579ea5}),_0x2f6524['length']&&_0x47ee45['markMultiRangeInsertion'](_0x2f6524,'tablePasteColumn',{'tablePasteChainId':_0x579ea5}),_0x2f3a03['length']&&(_0x47ee45['markMultiRangeInsertion'](_0x2f3a03,'tablePaste',{'tablePasteChainId':_0x579ea5,'skipNestingCheck':!0x0}),_0x2f3a03['forEach'](_0x22f6c2=>_0x22f6c2['detach']?.())),_0x132c6d['length']&&(_0x47ee45['markMultiRangeDeletion'](_0x132c6d,'tablePaste',{'tablePasteChainId':_0x579ea5,'skipNestingCheck':!0x0}),_0x132c6d['forEach'](_0x420ee3=>_0x420ee3['detach']?.()));const _0x3645c6=_0x47ee45['markMultiRangeBlockFormat'](_0x99cf4c['map'](({element:_0xf08745})=>_0xf08745),{'formatGroupId':_0xf0931c()},[],'tablePasteCell',{'tablePasteChainId':_0x579ea5});if(_0x3645c6){const _0x145c63=_0x3645c6['getMarkers'](),_0x2a94e3=[];for(const {element:_0x166fec,attributes:_0x15f8e2}of _0x99cf4c){if(!_0x15f8e2)continue;const _0x15f84f=_0x5f24e7['model']['createRangeOn'](_0x166fec),_0x138702=_0x145c63['find'](_0x3496b2=>_0x3496b2['getRange']()['isEqual'](_0x15f84f));_0x138702&&_0x2a94e3['push']([_0x138702['name'],_0x15f8e2]);}_0x2a94e3['length']&&_0x3645c6['setAttribute']('markerAttributes',Object['fromEntries'](_0x2a94e3));}_0x4eee2e=null;}));},{'priority':_0x17a378['high']+0xa}),_0x5f24e7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ef650,_0x1cb3ad)=>{const [_0xf6a8a,_0x5a4f4e,,_0x2bd10f]=_0x1cb3ad;if(!_0x4eee2e)return;_0x2ef650['stop']();const _0x52de55=_0xf6a8a['cell'],_0x2462cc=_0x5a4f4e,_0x23bfd1=Oe(_0x52de55),_0x32aa27=Oe(_0x2462cc);_0x2ef650['return']=_0x52de55;let _0x33a51c=null,_0x48d45f=null;if(_0x32aa27||_0x23bfd1){if(_0x23bfd1&&!_0x32aa27){_0x2bd10f['remove'](_0x52de55['getChild'](0x0));for(const _0x5c3d57 of Array['from'](_0x2462cc['getChildren']()))_0x2bd10f['insert'](_0x5c3d57,_0x52de55,'end');const _0xe592d3=_0x4eee2e['rowInsertionIndexes']['includes'](_0xf6a8a['row']),_0x517108=_0x4eee2e['columnInsertionIndexes']['includes'](_0xf6a8a['column']);_0xe592d3||_0x517108||(_0x33a51c=_0x36d42c['fromRange'](_0x2bd10f['createRangeIn'](_0x52de55)));}else _0x32aa27&&!_0x23bfd1&&(_0x48d45f=_0x2bd10f['createRangeIn'](_0x52de55));}else{const _0x2261a8=_0x2bd10f['createElement']('tableCellSuggestion'),_0x51eda8=_0x2bd10f['createElement']('tableCellSuggestion');_0x2bd10f['wrap'](_0x2bd10f['createRangeIn'](_0x52de55),_0x51eda8),_0x2bd10f['insert'](_0x2261a8,_0x52de55,0x0);for(const _0x1f9fa7 of Array['from'](_0x2462cc['getChildren']()))_0x2bd10f['insert'](_0x1f9fa7,_0x2261a8,'end');_0x33a51c=_0x36d42c['fromRange'](_0x2bd10f['createRangeOn'](_0x2261a8)),_0x48d45f=_0x36d42c['fromRange'](_0x2bd10f['createRangeOn'](_0x51eda8));}const _0x4fc243=Array['from'](_0x2462cc['getAttributes']())['filter'](([_0xe39461])=>Be['includes'](_0xe39461));_0x4eee2e['cells']['push']({'element':_0x52de55,'attributes':_0x4fc243['length']?Object['fromEntries'](_0x4fc243):null}),_0x33a51c&&_0x4eee2e['insertionRanges']['push'](_0x33a51c),_0x48d45f&&_0x4eee2e['deletionRanges']['push'](_0x48d45f);},{'priority':'high'}),_0x16d110['on']('insertColumns',(_0x21006b,_0x55b07c)=>{const [_0x1367ab,_0x170995={}]=_0x55b07c;if(!_0x4eee2e)return;const _0x4181a9=_0x170995['at']||0x0,_0x398618=_0x170995['columns']||0x1;_0x4eee2e['columnInsertionIndexes']=new Array(_0x398618)['fill'](_0x4181a9)['map']((_0x3818a0,_0x6cb3b5)=>_0x3818a0+_0x6cb3b5);for(const {cell:_0x20a3a3}of _0x16d110['createTableWalker'](_0x1367ab,{'startColumn':_0x4181a9,'endColumn':_0x4181a9+_0x398618-0x1}))_0x4eee2e['columnInsertionRanges']['push'](_0x5f24e7['model']['createRangeOn'](_0x20a3a3));},{'priority':'low'}),_0x16d110['on']('insertRows',(_0x412f46,_0x2a4732)=>{const [_0x33d9fb,_0x34b29e={}]=_0x2a4732;if(!_0x4eee2e)return;const _0x52a01e=_0x34b29e['at']||0x0,_0x15823e=_0x34b29e['rows']||0x1;_0x4eee2e['rowInsertionIndexes']=new Array(_0x15823e)['fill'](_0x52a01e)['map']((_0x59b856,_0xdcaac3)=>_0x59b856+_0xdcaac3);for(const {cell:_0x34e475}of _0x16d110['createTableWalker'](_0x33d9fb,{'startRow':_0x52a01e,'endRow':_0x52a01e+_0x15823e-0x1}))_0x4eee2e['rowInsertionRanges']['push'](_0x5f24e7['model']['createRangeOn'](_0x34e475));},{'priority':'low'}),_0x47ee45['descriptionFactory']['registerDescriptionCallback'](_0x10acba=>{if(_0x10acba['subType']&&_0x10acba['subType']['startsWith']('tablePaste'))return _0x10acba['previous']?{}:{'type':'insertion','content':o(_0x5f24e7['locale'],'*Replace\x20table\x20cells*')};});const _0x22bc4c=()=>!0x1;for(const _0x6ec46b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47ee45['_suggestionFactory']['registerCustomCallback']('insertion',_0x6ec46b,'join',_0x22bc4c),_0x47ee45['_suggestionFactory']['registerCustomCallback']('deletion',_0x6ec46b,'join',_0x22bc4c),_0x47ee45['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6ec46b,'join',_0x22bc4c);_0x47ee45['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x22bc4c),_0x47ee45['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x21f306,_0x5163a7,_0x5b9b83)=>{const _0x2f4bdf=_0x21f306['map'](_0x44e4d7=>_0x44e4d7['getContainedElement']())['filter'](_0x5889a6=>_0x5889a6),_0x13a76e=new Map(_0x2f4bdf['map'](_0x56268b=>[_0x56268b,null]));if(_0x4eee2e){for(const {element:_0x1967c9,attributes:_0x1ca127}of _0x4eee2e['cells'])_0x1ca127&&_0x13a76e['set'](_0x1967c9,_0x1ca127);}else{if(_0x5b9b83&&_0x5b9b83['markerAttributes'])for(const [_0x135343,_0x575db6]of Object['entries'](_0x5b9b83['markerAttributes'])){const _0x31b9d3=_0x5f24e7['model']['markers']['get'](_0x135343),_0x3821bc=_0x31b9d3?_0x31b9d3['getRange']()['getContainedElement']():null;_0x3821bc&&_0x13a76e['set'](_0x3821bc,_0x575db6);}}_0x5f24e7['model']['change'](_0x59920c=>{for(const [_0x5a6587,_0x22af44]of _0x13a76e)_0x59920c['setAttributes']({...xe,..._0x22af44},_0x5a6587);});});const _0x66af91=(_0x457952,_0x26177c)=>{_0x47ee45['_suggestionFactory']['registerCustomCallback'](_0x457952,'tablePaste',_0x26177c,(_0x506dc0,_0x1878a5,_0x5b33a1)=>{_0x5f24e7['model']['change'](_0x2be44a=>{const _0x265afa=[];for(const _0x40d8c1 of _0x506dc0){const _0x89f69f=_0x40d8c1['start']['nodeAfter'];_0x89f69f['is']('element','tableCellSuggestion')&&_0x265afa['push'](_0x89f69f);}_0x47ee45['_suggestionFactory']['getSuggestionCallback'](_0x457952,null,_0x26177c)(_0x506dc0,_0x1878a5,_0x5b33a1);for(const _0x48876f of _0x265afa)'$graveyard'!=_0x48876f['root']['rootName']&&_0x2be44a['unwrap'](_0x48876f);});});};_0x66af91('insertion','accept'),_0x66af91('insertion','discard'),_0x66af91('deletion','accept'),_0x66af91('deletion','discard'),_0x47ee45['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3829f9=>{const _0x433fe8=_0x3829f9['map'](_0x43292c=>_0x43292c['getContainedElement']()),_0x112b5d=_0x433fe8[0x0]['findAncestor']('table'),{minRow:_0x3b511d,maxRow:_0x54cdb3}=_0x5a6b30['_getCoordsForCells'](_0x433fe8);_0x16d110['removeRows'](_0x112b5d,{'at':_0x3b511d,'rows':_0x54cdb3-_0x3b511d+0x1});}),_0x47ee45['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1d4f49=>{const _0x2efe78=_0x1d4f49['map'](_0x3a7aef=>_0x3a7aef['getContainedElement']()),_0x36d954=_0x2efe78[0x0]['findAncestor']('table'),{minColumn:_0x450d65,maxColumn:_0x44baa7}=_0x5a6b30['_getCoordsForCells'](_0x2efe78);_0x16d110['removeColumns'](_0x36d954,{'at':_0x450d65,'columns':_0x44baa7-_0x450d65+0x1});});const _0x44d2d5=(_0x34d78a,_0x2337d4)=>{if(!_0x2337d4['subType']||!_0x2337d4['subType']['startsWith']('tablePaste'))return;const _0x49a64b=_0x2337d4['attributes']['tablePasteChainId'],_0x5b9454=_0x47ee45['getSuggestions']()['filter'](_0x2c862f=>_0x2c862f['isInContent']&&_0x2c862f['attributes']&&_0x2c862f['attributes']['tablePasteChainId']==_0x49a64b);_0x5b9454['length']&&_0x2337d4['getAllAdjacentSuggestions']()['length']!=_0x5b9454['length']&&_0x5b9454['reduce']((_0x4b59b4,_0x1e3fb3)=>(_0x4b59b4['next']=_0x1e3fb3,_0x1e3fb3['previous']=_0x4b59b4,_0x1e3fb3));};function _0x263122(_0x3b38d9,_0x1cee09=!0x0){const {id:_0x55914b,authorId:_0x355e30}=_0x47ee45['_splitMarkerName'](_0x3b38d9['markerName']),_0x11f078=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x496d29=_0x47ee45['activeMarkers']['includes'](_0x3b38d9['markerName']);return _0x496d29&&_0x11f078['push']('ck-suggestion-marker--active'),{'classes':_0x11f078,'attributes':{'data-suggestion':_0x55914b,'data-author-id':_0x355e30},'priority':_0x496d29&&_0x1cee09?0xbc2:0xbb8};}_0x47ee45['on']('suggestionLoaded',_0x44d2d5,{'priority':'high'}),_0x47ee45['on']('suggestionUnloaded',_0x44d2d5,{'priority':'high'}),_0x5f24e7['model']['document']['registerPostFixer'](()=>{let _0x3879a3=!0x1;const _0x10543c=Array['from'](_0x5f24e7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21b09d,data:_0x588a12}of _0x10543c){const {group:_0x3f040b,type:_0x256588,id:_0x3b6ece}=_0x47ee45['_splitMarkerName'](_0x21b09d);if('suggestion'!=_0x3f040b||'deletion'!=_0x256588||_0x588a12['oldRange'])continue;if(!_0x47ee45['hasSuggestion'](_0x3b6ece))continue;const _0x4ab3f1=_0x47ee45['getSuggestion'](_0x3b6ece)['getRanges'](),_0x16d298=_0x5f24e7['plugins']['get']('Users')['me'];for(const _0x376bb6 of _0x47ee45['getSuggestions']()){if(!_0x376bb6['isInContent']||_0x376bb6['author']!=_0x16d298)continue;if('formatBlock'!=_0x376bb6['type']||'tablePasteCell'!=_0x376bb6['subType'])continue;if(_0x376bb6['getRanges']()['every'](_0x657d8e=>_0x4ab3f1['some'](_0x39ac9c=>_0x39ac9c['containsRange'](_0x657d8e,!0x0)))){for(const _0x416162 of _0x376bb6['getAllAdjacentSuggestions']())_0x416162['isInContent']&&(_0x416162['discard'](),_0x3879a3=!0x0);}}}return _0x3879a3;}),_0x5f24e7['model']['document']['registerPostFixer'](_0x4f08f4=>{const _0x4f6987=_0x5f24e7['commands']['get']('redo');if(!_0x4f6987||!_0x4f6987['_createdBatches']['has'](_0x4f08f4['batch']))return!0x1;let _0x381243=!0x1;const _0x4870e4=_0x5f24e7['plugins']['get']('Users')['me'],_0x14898a=_0x5f24e7['model']['document']['differ']['getChanges'](),_0xab6eed=Array['from'](_0x5f24e7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5576f7,data:_0x5a9db3})=>{const {group:_0x15de98,subType:_0x3446f0,authorId:_0x1a004f}=_0x47ee45['_splitMarkerName'](_0x5576f7);return'suggestion'==_0x15de98&&'tablePaste'==_0x3446f0&&_0x1a004f==_0x4870e4['id']&&!_0x5a9db3['oldRange'];});for(const _0x50171c of _0x14898a){if('insert'!=_0x50171c['type']||'tableCellSuggestion'!=_0x50171c['name']||0x1!=_0x50171c['length'])continue;const _0x342765=_0x4f08f4['createRange'](_0x50171c['position'],_0x50171c['position']['getShiftedBy'](0x1));if(!_0xab6eed['find'](({data:_0x1592d2})=>_0x1592d2['newRange']['isEqual'](_0x342765))){for(const {name:_0x2a5907,data:_0x195116}of _0xab6eed)if(_0x342765['containsRange'](_0x195116['newRange'])){_0x4f08f4['updateMarker'](_0x2a5907,{'range':_0x342765}),_0x381243=!0x0;break;}}}return _0x381243;}),_0x5f24e7['model']['document']['registerPostFixer'](_0x4e5ffd=>{let _0x1fc980=!0x1;const _0x5192c3=_0x5f24e7['plugins']['get']('Users')['me'],_0x31364f=_0x47ee45['getSuggestions']()['filter'](_0xa3a174=>_0xa3a174['isInContent']&&_0xa3a174['author']==_0x5192c3),_0xbc6ac1=new Set(),_0x42014a=new Set();for(const _0x341a30 of _0x31364f)if('tablePaste'==_0x341a30['subType'])for(const _0x25e113 of _0x341a30['getMarkers']()){const _0x8c2485=_0x25e113['getRange']()['getContainedElement']();if(_0x8c2485){if(_0x8c2485['is']('element','tableCellSuggestion')&&Oe(_0x8c2485)){_0x341a30['removeMarker'](_0x25e113['name']),_0xbc6ac1['add'](_0x8c2485),_0x1fc980=!0x0;const _0x21efa6=_0x8c2485['nextSibling'],_0x2d35c7=_0x8c2485['previousSibling'],_0x11cdce=_0x21efa6&&_0x21efa6['is']('element','tableCellSuggestion'),_0x465314=_0x2d35c7&&_0x2d35c7['is']('element','tableCellSuggestion');_0x11cdce&&!_0xbc6ac1['has'](_0x21efa6)&&_0x42014a['add'](_0x21efa6),_0x465314&&!_0xbc6ac1['has'](_0x2d35c7)&&_0x42014a['add'](_0x2d35c7);}else _0x8c2485['is']('element','paragraph')&&_0x8c2485['isEmpty']&&(_0x341a30['removeMarker'](_0x25e113['name']),_0x1fc980=!0x0);}}else{if('tablePasteCell'==_0x341a30['subType']){if(!_0x341a30['attributes']||!_0x341a30['attributes']['tablePasteChainId'])continue;const _0x585336=_0x341a30['attributes']['markerAttributes'];if(_0x585336&&Object['keys'](_0x585336)['length'])continue;const _0x5d5bd8=_0x341a30['attributes']['tablePasteChainId'];let _0x4cb913=!0x0,_0x1d5608=!0x0;for(const _0x57702d of _0x31364f)if(_0x57702d['subType']&&_0x57702d['subType']['startsWith']('tablePaste')){if(!_0x57702d['attributes']['tablePasteChainId']){_0x1d5608=!0x1;break;}if(_0x57702d['id']!=_0x341a30['id']&&_0x57702d['attributes']['tablePasteChainId']==_0x5d5bd8){_0x4cb913=!0x1;break;}}_0x1d5608&&_0x4cb913&&(_0x341a30['removeMarkers'](),_0x1fc980=!0x0);}}for(const _0x2925db of _0xbc6ac1)_0x4e5ffd['remove'](_0x2925db);for(const _0x2e3efb of _0x42014a)_0x4e5ffd['unwrap'](_0x2e3efb);return _0x1fc980;}),_0x5f24e7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x35a6ae=>_0x263122(_0x35a6ae),'converterPriority':'high'}),_0x5f24e7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x207cbf,_0x241433)=>_0x241433['options']['showSuggestionHighlights']?_0x263122(_0x207cbf,!0x1):null,'converterPriority':'high'});const _0x1b0774=_0x5f24e7['editing']['view'];this['listenTo'](_0x1b0774['document'],'clipboardOutput',(_0x82cae8,_0x490c45)=>{const _0x4a78fa=[];for(const _0x45a898 of _0x1b0774['createRangeIn'](_0x490c45['content'])['getItems']())_0x45a898['is']('element','suggestion-td')&&_0x4a78fa['push'](_0x45a898);_0x1b0774['change'](_0x2c5295=>{for(const _0x4bcb52 of _0x4a78fa)_0x2c5295['move'](_0x2c5295['createRangeIn'](_0x4bcb52),_0x2c5295['createPositionBefore'](_0x4bcb52)),_0x2c5295['remove'](_0x4bcb52);});});}}function Oe(_0x112a34){if(_0x112a34['isEmpty'])return!0x0;const _0x2d64af=_0x112a34['getChild'](0x0);return _0x2d64af['is']('element','paragraph')&&_0x2d64af['isEmpty'];}function Ue(_0x479e6d,_0xda95da={},_0x51523e){for(const {isAnchor:_0x3a4b58,cellHeight:_0xeb4758,cellWidth:_0x1b3b91}of _0x51523e['createTableWalker'](_0x479e6d,{'includeAllSlots':!0x0,..._0xda95da}))if(!_0x3a4b58||0x1!=_0xeb4758||0x1!=_0x1b3b91)return!0x1;return!0x0;}class $t extends _0x6a3ec8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1685db=this['editor']['plugins']['get']('TrackChangesEditing');_0x1685db['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1685db['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1685db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1685db['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1685db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1685db['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1e96b4,_0x1e1442){const _0x59c703=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4265db=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4e246b=_0x1e1442['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2d7905=_0x4265db['getColumnGroupElement'](_0x4e246b);let _0x529c5c=_0x2d7905?_0x4265db['getTableColumnsWidths'](_0x2d7905):null,_0x3b7a2f=_0x4e246b['getAttribute']('tableWidth')||null;const _0x1e5851=_0x1e1442['tableWidth']||_0x3b7a2f,_0xa4d661=_0x1e1442['columnWidths']||_0x529c5c,_0x3df300=this['editor']['plugins']['get']('Users')['me'];for(const _0x2e0b9c of _0x59c703['getSuggestions']()){const _0x2f7384=_0x2e0b9c['getContainedElement']();if('resizeTable'===_0x2e0b9c['subType']&&_0x2f7384===_0x4e246b){_0x2e0b9c['author']!==_0x3df300&&_0x2e0b9c['discard']();const _0x478294=_0x2e0b9c['data']['commandParams'];_0x3b7a2f=_0x478294[0x0]['tableWidth'],_0x529c5c=_0x478294[0x0]['columnWidths'];break;}}_0x1e96b4({'table':_0x4e246b,'tableWidth':_0x1e5851,'columnWidths':_0xa4d661}),_0x59c703['markBlockFormat'](_0x4e246b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3b7a2f,'columnWidths':_0x529c5c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x13692e){if('formatBlock'!=_0x13692e['type']&&'formatInline'!=_0x13692e['type'])return;const {data:_0x1aebcd}=_0x13692e;if(_0x1aebcd&&'resizeTable'===_0x1aebcd['formatGroupId']){const _0x301fe1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x301fe1)};}}}class Bt extends _0x6a3ec8{['afterInit'](){const _0x1cd59b=this['editor'];_0x1cd59b['plugins']['has']('Template')&&_0x1cd59b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x6a3ec8{['afterInit'](){const _0x6865a6=this['editor'];if(!_0x6865a6['commands']['get']('insertTableOfContents'))return;_0x6865a6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x46ce01=_0x6865a6['plugins']['get']('TrackChangesEditing'),_0x3278d6=_0x6865a6['locale'];_0x46ce01['descriptionFactory']['registerElementLabel']('tableOfContents',_0x24208d=>o(_0x3278d6,'ELEMENT_TABLE_OF_CONTENTS',_0x24208d));}}class Rt extends _0x6a3ec8{['afterInit'](){const _0x3fbce1=this['editor'];if(!_0x3fbce1['plugins']['has']('Title'))return;const _0xd5aaba=_0x3fbce1['plugins']['get']('TrackChangesEditing');_0xd5aaba['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3fbce1['locale'],'ELEMENT_TITLE')),_0x3fbce1['model']['document']['registerPostFixer'](_0x37d052=>{let _0x5eba0f=!0x1;const _0x2e35b5=Array['from'](_0x3fbce1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c3d38,data:_0x57b163}of _0x2e35b5){const {group:_0x4392ce}=_0xd5aaba['_splitMarkerName'](_0x2c3d38);if('suggestion'!==_0x4392ce||!_0x57b163['newRange'])continue;const _0x4f2cee=_0x57b163['newRange'],_0x4acb8c=_0x4f2cee['end']['nodeBefore'];if(!_0x4acb8c||!_0x4acb8c['is']('element','title-content'))continue;if(!_0x4f2cee['start']['isTouching'](_0x4f2cee['end']))continue;const _0x196c02=_0x3fbce1['model']['schema']['getNearestSelectionRange'](_0x4f2cee['end'],'forward');if(_0x196c02&&_0x196c02['isCollapsed']){const _0x569131=_0x37d052['createRange'](_0x4f2cee['start'],_0x196c02['start']);_0x569131['isEqual'](_0x4f2cee)||(_0x37d052['updateMarker'](_0x2c3d38,{'range':_0x569131}),_0x5eba0f=!0x0);}_0x5eba0f||(_0x37d052['removeMarker'](_0x2c3d38),_0x5eba0f=!0x0);}return _0x5eba0f;});}}class Tt extends _0x6a3ec8{['afterInit'](){const _0x47da51=this['editor'],_0xb54191=_0x47da51['plugins']['get']('TrackChangesEditing');_0x47da51['plugins']['has']('Uploadcare')&&(_0xb54191['enableCommand']('uploadcare'),_0x47da51['plugins']['has']('UploadcareImageEdit')&&(_0xb54191['enableCommand']('uploadcareImageEdit'),_0xb54191['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xb54191['registerBlockAttribute']('uploadcareImageId'),_0xb54191['descriptionFactory']['registerDescriptionCallback'](_0x14b071=>{if('attribute'!=_0x14b071['type'])return;const {data:_0x10d35e}=_0x14b071;return _0x10d35e&&'uploadcareImageId'==_0x10d35e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x6a3ec8{['afterInit'](){const _0x3dd09b=this['editor'],_0x4fe5bf=_0x3dd09b['plugins']['get']('TrackChangesEditing');_0x3dd09b['plugins']['has']('UndoEditing')&&(_0x4fe5bf['enableCommand']('undo'),_0x4fe5bf['enableCommand']('redo'));}}class Et extends _0x6a3ec8{static get['requires'](){return[Ct];}['afterInit'](){const _0x88659=this['editor'];if(!_0x88659['plugins']['has']('TableCaptionEditing'))return;_0x88659['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x6a3ec8{['tableProperties'];['tableCellProperties'];constructor(_0x531f44){super(_0x531f44),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 _0x4b6ca4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4aff9b of this['tableProperties'])_0x4b6ca4['enableCommand'](_0x4aff9b,(_0x4bf68d,_0x4756dc)=>{const _0x5c79e4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4aff9b,[_0x5c79e4],this['tableProperties'],'tableProperties',_0x4bf68d,_0x4756dc);});_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4b6ca4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2f2091,_0x2fb130)=>this['handleDiscardAction'](this['tableProperties'],_0x2f2091,_0x2fb130)),_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1ce384 of this['tableCellProperties'])_0x4b6ca4['enableCommand'](_0x1ce384,(_0x2771cb,_0x568b49)=>{const _0x1aa472=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1ce384,_0x1aa472,this['tableCellProperties'],'tableCellProperties',_0x2771cb,_0x568b49);});_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4b6ca4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3d4537,_0x14d3d2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3d4537,_0x14d3d2)),_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4b6ca4['descriptionFactory']['registerDescriptionCallback'](_0x3bae55=>this['handleSuggestionDescription'](_0x3bae55));}['_handlePropertyChange'](_0x45e4b5,_0x247dcd,_0x3eb547,_0x375ccc,_0x52e3d4,_0xe939df){const _0xc5b312=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xe939df['batch'],()=>{for(const _0x1a62e6 of _0x247dcd){if(this['_getSuggestion'](_0x1a62e6,_0x375ccc))_0x52e3d4(_0xe939df);else{const _0x26ec1a={};for(const _0x293628 of _0x3eb547){const _0x1ba69c=_0x1a62e6['getAttribute'](_0x293628);void 0x0!==_0x1ba69c&&(_0x26ec1a[_0x293628]=_0x1ba69c);}_0x52e3d4(_0xe939df),_0xc5b312['markBlockFormat'](_0x1a62e6,{'commandParams':[_0x26ec1a]},[],_0x375ccc);}}});}['handleDiscardAction'](_0x1f6444,_0x3750bd,_0x31ab02){const _0x4cf6e6=_0x3750bd[0x0]['start']['nodeAfter'],_0x21c482=_0x31ab02['commandParams'][0x0];this['editor']['model']['change'](_0x502224=>{for(const _0x34c5a1 of _0x1f6444)void 0x0!==_0x21c482[_0x34c5a1]?_0x502224['setAttribute'](_0x34c5a1,_0x21c482[_0x34c5a1],_0x4cf6e6):_0x502224['removeAttribute'](_0x34c5a1,_0x4cf6e6);});}['handleSuggestionDescription'](_0xaa507f){if(_0xaa507f['data'])switch(_0xaa507f['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'](_0x27eb17,_0x36cda0){const _0x229d24=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2d0add of _0x229d24['getSuggestions']({'skipNotAttached':!0x0})){const _0x34d9ed=_0x2d0add['getContainedElement']();if(_0x2d0add['subType']===_0x36cda0&&_0x34d9ed===_0x27eb17)return _0x2d0add;}return null;}}const m='$elementName';class p extends _0x6a3ec8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4ea5c3,_0x5e80f0,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x372fe4){super(_0x372fe4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xb89133,_0xc734d6,_0x4e6264,_0x3f1c27)=>{this['_model']['change'](()=>{for(const _0x19dbe0 of[..._0x3f1c27,..._0x4e6264])this['_model']['markers']['has'](_0x19dbe0)&&_0x372fe4['editing']['reconvertMarker'](_0x19dbe0);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x372fe4['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(),_0x372fe4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x372fe4['config']['get']('trackChanges.trackFormatChanges'),_0x372fe4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x372fe4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x372fe4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x41a5cf=this['editor'],_0xb3389=(_0x5283d1,_0x5d4a81)=>{if('attribute'!=_0x5283d1)return'ck-suggestion-marker-'+_0x5283d1;const _0x268583=_0x5d4a81['split']('|')[0x0];return this['_isBlockAttribute'](_0x268583)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x41a5cf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2617fb=>{const {id:_0x339a48,authorId:_0xf163e9,type:_0xc48d81,subType:_0x15e5ee}=this['_splitMarkerName'](_0x2617fb['markerName']),_0x4e7a04=['ck-suggestion-marker',_0xb3389(_0xc48d81,_0x15e5ee)];let _0x4162e5=0xbb8;return this['activeMarkers']['includes'](_0x2617fb['markerName'])&&(_0x4e7a04['push']('ck-suggestion-marker--active'),_0x4162e5=0xbc2),'deletion'==_0xc48d81&&(_0x4162e5+=0x5),{'classes':_0x4e7a04,'attributes':{'data-suggestion':_0x339a48,'data-author-id':_0xf163e9},'priority':_0x4162e5};}}),_0x41a5cf['conversion']['for']('dataDowncast')['add'](_0x3f2a59=>{_0x3f2a59['on']('addMarker:suggestion',(_0x421afe,_0x5db17b,_0x437ec8)=>{if(!_0x437ec8['options']['showSuggestionHighlights'])return;const _0x20a31c=_0x5db17b['item'];if(!_0x20a31c)return;const _0x50d32b=_0x437ec8['mapper']['toViewElement'](_0x20a31c);_0x41a5cf['model']['schema']['isObject'](_0x20a31c)&&_0x50d32b&&!_0x50d32b['getCustomProperty']('widget')&&_0x50d32b['is']('containerElement')&&_0x244f86(_0x50d32b,_0x437ec8['writer']);},{'priority':'high'});}),_0x41a5cf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x19d6b2,_0x419cad)=>{if(!_0x419cad['options']['showSuggestionHighlights'])return null;const {type:_0x487f9c,subType:_0x56f0fc}=this['_splitMarkerName'](_0x19d6b2['markerName']);return{'classes':['ck-suggestion-marker',_0xb3389(_0x487f9c,_0x56f0fc)],'priority':0xbb8};}});const _0x5db7f5=({showActiveMarkers:_0xbb5bc4=!0x0,isAttributeSuggestion:_0x581a6f=!0x1}={})=>(_0x5bf93d,_0x2b03e0,_0x57ec7a)=>{if(!_0x2b03e0['item'])return;const {id:_0x4f30ba,authorId:_0x3f8828}=this['_splitMarkerName'](_0x2b03e0['markerName']);if(_0x581a6f){const _0x21849b=this['_suggestions']['get'](_0x4f30ba),_0x5e92cc=this['_getAttributeKey'](_0x21849b);if(!this['_isBlockAttribute'](_0x5e92cc))return;}if(_0x2b03e0['item']['is']('selection'))return void _0x57ec7a['consumable']['consume'](_0x2b03e0['item'],_0x5bf93d['name']);const _0x368b26=_0x57ec7a['mapper']['toViewElement'](_0x2b03e0['item']);if(_0x2b03e0['item']['is']('element')&&_0x41a5cf['model']['schema']['isBlock'](_0x2b03e0['item'])&&!_0x368b26['getCustomProperty']('addHighlight')){_0x57ec7a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x368b26),_0x57ec7a['writer']['setAttribute']('data-suggestion',_0x4f30ba,_0x368b26),_0x57ec7a['writer']['setAttribute']('data-author-id',_0x3f8828,_0x368b26),_0x57ec7a['mapper']['bindElementToMarker'](_0x368b26,_0x2b03e0['markerName']),_0xbb5bc4&&(this['activeMarkers']['includes'](_0x2b03e0['markerName'])?_0x57ec7a['writer']['addClass']('ck-suggestion-marker--active',_0x368b26):_0x57ec7a['writer']['removeClass']('ck-suggestion-marker--active',_0x368b26));for(const _0x391dff of _0x41a5cf['model']['createRangeIn'](_0x2b03e0['item'])['getItems']())_0x57ec7a['consumable']['consume'](_0x391dff,_0x5bf93d['name']);_0x57ec7a['consumable']['consume'](_0x2b03e0['item'],_0x5bf93d['name']);}};_0x41a5cf['conversion']['for']('dataDowncast')['add'](_0x110b18=>{_0x110b18['on']('addMarker:suggestion:formatBlock',(_0x6c291,_0x4415ba,_0x1af2ac)=>{_0x1af2ac['options']['showSuggestionHighlights']&&_0x5db7f5({'showActiveMarkers':!0x1})(_0x6c291,_0x4415ba,_0x1af2ac);},{'priority':'highest'});}),_0x41a5cf['conversion']['for']('dataDowncast')['add'](_0x1b9f56=>{_0x1b9f56['on']('addMarker:suggestion:attribute',(_0x3097a7,_0x32801c,_0x1c6e47)=>{_0x1c6e47['options']['showSuggestionHighlights']&&_0x5db7f5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3097a7,_0x32801c,_0x1c6e47);},{'priority':'highest'});}),_0x41a5cf['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x13833e,_0x375e05)=>_0x375e05['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x13833e['substr'](0xb)}}),_0x41a5cf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4465df,{writer:_0x2bb462})=>{let _0x5eb547='suggestion:'+_0x4465df['getAttribute']('suggestion-type')+':'+_0x4465df['getAttribute']('id');return _0x4465df['getAttribute']('marker-count')&&(_0x5eb547+=':'+_0x4465df['getAttribute']('marker-count')),_0x2bb462['createElement']('$marker',{'data-name':_0x5eb547});}}),_0x41a5cf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x41a5cf['conversion']['for']('editingDowncast')['add'](_0x2aee5f=>{_0x2aee5f['on']('addMarker:suggestion:formatBlock',_0x5db7f5(),{'priority':'high'});}),_0x41a5cf['conversion']['for']('editingDowncast')['add'](_0x4e3ade=>{_0x4e3ade['on']('addMarker:suggestion:attribute',_0x5db7f5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x41a5cf['conversion']['for']('editingDowncast')['add'](_0x174f18=>{_0x174f18['on']('removeMarker:suggestion:formatBlock',(_0x16ddb5,_0x34e51f,_0x36784b)=>{const _0x41777a=_0x36784b['mapper']['markerNameToElements'](_0x34e51f['markerName']);if(_0x41777a){for(const _0x16d7ff of _0x41777a)_0x16d7ff['getCustomProperty']('addHighlight')||(_0x36784b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x16d7ff),_0x36784b['writer']['removeAttribute']('data-suggestion',_0x16d7ff),_0x36784b['writer']['removeAttribute']('data-author-id',_0x16d7ff),_0x36784b['mapper']['unbindElementFromMarkerName'](_0x16d7ff,_0x34e51f['markerName']));}},{'priority':'high'});}),_0x41a5cf['conversion']['for']('editingDowncast')['add'](_0x3b51d7=>{_0x3b51d7['on']('removeMarker:suggestion:attribute',(_0x3f3f09,_0x5907b3,_0x4afb22)=>{const _0x335f9d=_0x4afb22['mapper']['markerNameToElements'](_0x5907b3['markerName']);if(!_0x335f9d)return;const {id:_0x45856d}=this['_splitMarkerName'](_0x5907b3['markerName']),_0x9c7555=this['_suggestions']['get'](_0x45856d),_0x56030b=this['_getAttributeKey'](_0x9c7555);if(this['_isBlockAttribute'](_0x56030b)){for(const _0x2041c1 of _0x335f9d)_0x2041c1['getCustomProperty']('addHighlight')||(_0x4afb22['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2041c1),_0x4afb22['writer']['removeAttribute']('data-suggestion',_0x2041c1),_0x4afb22['writer']['removeAttribute']('data-author-id',_0x2041c1),_0x4afb22['mapper']['unbindElementFromMarkerName'](_0x2041c1,_0x5907b3['markerName']));}},{'priority':'high'});}),_0x41a5cf['model']['document']['registerPostFixer'](_0x2939c8=>{let _0x177b1b=!0x1;const _0x292dd3=Array['from'](_0x41a5cf['model']['document']['differ']['getChangedMarkers']()),_0x1e67e7=new Set();for(const {name:_0xdb215f,data:_0x2ef176}of _0x292dd3){const {group:_0x100a14,type:_0x1a366a,subType:_0x100f08,id:_0x362a5c}=this['_splitMarkerName'](_0xdb215f);if('suggestion'!==_0x100a14)continue;const _0x5f4133=this['_suggestions']['get'](_0x362a5c);if(null!=_0x2ef176['newRange']){'formatInline'==_0x1a366a&&(_0x177b1b=_0x177b1b||Lt(_0x2ef176['newRange'],_0xdb215f,_0x2939c8,_0x41a5cf['model']['schema']));const _0x38e675='attribute'==_0x1a366a&&this['_isBlockAttribute'](_0x100f08['split']('|')[0x0]);if(_0x2ef176['newRange']['isCollapsed']||'$graveyard'==_0x2ef176['newRange']['root']['rootName']||'formatBlock'==_0x1a366a&&!Ht(_0x2ef176['newRange'])||_0x38e675&&!Ht(_0x2ef176['newRange'])||'deletion'==_0x1a366a&&!(!Ft(_0x1a3124=_0x2ef176['newRange'])&&!function(_0x1c26c9){return _0x1c26c9['start']['parent']==_0x1c26c9['end']['nodeBefore']&&_0x1c26c9['start']['isAtEnd'];}(_0x1a3124)))_0x2939c8['removeMarker'](_0xdb215f),_0x177b1b=!0x0;else{if(!_0x5f4133||!_0x5f4133['isInContent'])continue;if(_0x2ef176['newRange']&&_0x2ef176['oldRange']&&_0x2ef176['newRange']['isEqual'](_0x2ef176['oldRange']))continue;_0x1e67e7['add'](_0x5f4133);}}}var _0x1a3124;return _0x1e67e7['size']>0x0&&(_0x177b1b=!!this['_joinWithAdjacentSuggestions'](_0x1e67e7)||_0x177b1b),_0x177b1b;}),_0x41a5cf['model']['document']['registerPostFixer'](_0x1e4b83=>{let _0xf03ef7=!0x1;for(const _0x1f2a40 of _0x41a5cf['model']['document']['differ']['getChanges']())if('insert'==_0x1f2a40['type'])for(const _0x902744 of this['_suggestions']['values']()){if(_0x902744['isMultiRange']||!_0x902744['isInContent'])continue;const _0x5f2658='formatBlock'==_0x902744['type'],_0x5f0529=this['_getAttributeKey'](_0x902744),_0xba3e67=_0x5f0529&&this['_isBlockAttribute'](_0x5f0529);if(!_0x5f2658&&!_0xba3e67)continue;const _0x1b11c3=_0x902744['getFirstRange']();if(_0x1b11c3['start']['parent']!=_0x1b11c3['end']['parent']&&!_0x1b11c3['end']['isAtEnd']){const _0x2509a2=_0x41a5cf['model']['createPositionAt'](_0x1b11c3['start']['nodeAfter'],'end'),_0xd3b8c5=_0x41a5cf['model']['createRange'](_0x1b11c3['start'],_0x2509a2);_0x1e4b83['updateMarker'](_0x902744['getFirstMarker'](),{'range':_0xd3b8c5}),_0xf03ef7=!0x0;}}return _0xf03ef7;}),_0x41a5cf['model']['document']['registerPostFixer'](_0x2c8cc1=>this['_processAttributeChanges'](_0x2c8cc1)),_0x41a5cf['model']['document']['registerPostFixer'](_0x20a97a=>!_0x20a97a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x20a97a)),_0x41a5cf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x41a5cf['model']['document']['on']('change:data',(_0x522170,_0x5821a6)=>{if(!_0x5821a6['isLocal']||_0x5821a6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1298d5=_0x41a5cf['model']['document']['differ']['getChanges']();if(0x0==_0x1298d5['length'])return;const _0x5ac6bd=[],_0x37a3c2=_0x1298d5['filter'](_0x9ef99=>'attribute'==_0x9ef99['type']),_0x3f6784=_0x1298d5['filter'](_0x2b309b=>'insert'==_0x2b309b['type']&&'$text'!=_0x2b309b['name']);for(const _0x774fb0 of _0x37a3c2)this['_isRegisteredAttribute'](_0x774fb0['attributeKey'])&&_0x5ac6bd['push']({'key':_0x774fb0['attributeKey'],'newValue':_0x774fb0['attributeNewValue'],'oldValue':_0x774fb0['attributeOldValue'],'range':qt(_0x774fb0['range'],_0x41a5cf['model'])});for(const _0xa5510a of _0x3f6784){if('rename'!=_0xa5510a['action']&&'refresh'!=_0xa5510a['action'])continue;const _0x56a362=zt(_0xa5510a['position']['nodeAfter'],_0x41a5cf['model']),_0x985b35=_0xa5510a['before'];'rename'==_0xa5510a['action']&&_0x5ac6bd['push']({'key':m,'newValue':_0xa5510a['name'],'oldValue':_0x985b35['name'],'range':_0x56a362});for(const [_0x567d00,_0x71133b]of _0x985b35['attributes']){if(!this['_isRegisteredAttribute'](_0x567d00))continue;const _0x544594=_0xa5510a['attributes']['get'](_0x567d00);_0x71133b!==_0x544594&&_0x5ac6bd['push']({'key':_0x567d00,'newValue':_0x544594,'oldValue':_0x71133b,'range':_0x56a362});}for(const [_0x122eec,_0x2f0ad8]of _0xa5510a['attributes'])this['_isRegisteredAttribute'](_0x122eec)&&(_0x985b35['attributes']['has'](_0x122eec)||_0x5ac6bd['push']({'key':_0x122eec,'newValue':_0x2f0ad8,'oldValue':null,'range':_0x56a362}));}0x0!=_0x5ac6bd['length']&&_0x41a5cf['model']['enqueueChange'](_0x5821a6,_0x55b0b5=>{const _0x3c10a7=_0xf0931c();for(const {range:_0x39f89e,key:_0x1751b0,oldValue:_0x389409,newValue:_0x14b277}of _0x5ac6bd)this['markAttributeChange'](_0x39f89e,_0x1751b0,_0x389409,_0x14b277,{'groupId':_0x3c10a7});this['_reduceExistingSuggestions'](_0x55b0b5,_0x5ac6bd);});},{'priority':'lowest'}),_0x41a5cf['model']['markers']['on']('update:suggestion',(_0x1c6852,_0x2be0b9,_0x812388)=>{if(null==_0x812388){const {id:_0x1f3e4f}=this['_splitMarkerName'](_0x2be0b9['name']),_0x380d48=this['_suggestions']['get'](_0x1f3e4f);_0x380d48&&_0x380d48['addMarkerName'](_0x2be0b9['name']);}}),_0x41a5cf['model']['document']['on']('change:data',()=>{const _0x39415c=Array['from'](_0x41a5cf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3abfab=>'suggestion'===this['_splitMarkerName'](_0x3abfab['name'])['group']);if(0x0===_0x39415c['length'])return;_0x39415c['sort']((_0x40bb16,_0x23549b)=>{const _0x357781=_0x40bb16['data']['oldRange'],_0x5169d6=_0x23549b['data']['oldRange'];return null===_0x357781&&null===_0x5169d6?0x0:null===_0x357781&&null!==_0x5169d6?-0x1:null!==_0x357781&&null===_0x5169d6?0x1:_0x357781['start']['isBefore'](_0x5169d6['start'])?-0x1:0x1;});const _0x3c78ed=new Set(),_0x1df3c0=new Set();for(const {name:_0x434531,data:_0x107ea5}of _0x39415c){const {id:_0x3d96eb}=this['_splitMarkerName'](_0x434531);if(null===_0x107ea5['oldRange']){const _0x471cae=this['_handleNewSuggestionMarker'](_0x434531);_0x1df3c0['add'](_0x471cae);}else{const _0x1331f2=this['_suggestions']['get'](_0x3d96eb);null!==_0x107ea5['newRange']||_0x1331f2['isInContent']?(_0x3c78ed['add'](_0x1331f2['head']),_0x1df3c0['add'](_0x1331f2)):this['_removeSuggestion'](_0x1331f2);}}_0x1df3c0['size']>0x0&&this['_refreshSuggestionsChain'](_0x1df3c0);for(const _0x47f59b of _0x3c78ed)this['fire']('suggestionChanged',_0x47f59b);}),_0x41a5cf['model']['on']('applyOperation',(_0x419717,_0x5cdae2)=>{const _0x1a1792=_0x5cdae2[0x0];if(!this['_suggestions']['size'])return;if(!_0x1a1792['isDocumentOperation'])return;if(_0x1a1792['batch']['isUndo']||!_0x1a1792['batch']['isLocal'])return;let _0x6094fe,_0x1af8a0;switch(_0x1a1792['type']){case'insert':_0x6094fe=_0x41a5cf['model']['createPositionAt'](_0x1a1792['position']),_0x1af8a0=_0x6094fe['getShiftedBy'](_0x1a1792['howMany']);break;case'split':_0x6094fe=_0x41a5cf['model']['createPositionAt'](_0x1a1792['splitPosition']),_0x1af8a0=_0x41a5cf['model']['createPositionAt'](_0x1a1792['moveTargetPosition']);break;case'move':_0x6094fe=_0x41a5cf['model']['createPositionAt'](_0x1a1792['targetPosition']),_0x1af8a0=_0x6094fe['getShiftedBy'](_0x1a1792['howMany']);break;default:return;}const _0x534fed=_0x41a5cf['model']['createRange'](_0x6094fe,_0x1af8a0);_0x41a5cf['model']['change'](()=>{for(const {suggestion:_0x6a787,meta:_0x1c84af}of this['_findSuggestions'](_0x534fed)){if(_0x6a787['isMultiRange'])continue;if('formatInline'==_0x6a787['type'])continue;const _0x503962=this['_getAttributeKey'](_0x6a787);if(_0x503962&&this['_isBlockAttribute'](_0x503962)&&'split'!=_0x1a1792['type'])continue;const _0x1c7788=_0x6a787['data']&&_0x6a787['data']['multipleBlocks'];('formatBlock'!=_0x6a787['type']||'split'==_0x1a1792['type']&&!_0x1c7788)&&(_0x1c84af['containsRangeInObject']||'insertion'==_0x6a787['type']&&_0x1c84af['isOwn']||_0x6a787['getFirstRange']()['containsRange'](_0x534fed)&&this['_breakSuggestionMarker'](_0x6a787,_0x6094fe,_0x1af8a0));}});},{'priority':'lowest'}),_0x41a5cf['model']['on']('deleteContent',(_0xf4fc69,_0x274725)=>{const _0x46a21b=_0x274725[0x0],_0x3ce806=_0x274725[0x1];if(_0x3ce806&&_0x3ce806['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x46a21b['isCollapsed'])return;const _0x404e54=_0x41a5cf['model']['schema'],{start:_0x1afea7,end:_0x388802}=_0x46a21b['getFirstRange'](),_0x452ccb=_0x1afea7['nodeAfter']&&_0x404e54['isLimit'](_0x1afea7['nodeAfter'])?null:_0x404e54['getNearestSelectionRange'](_0x1afea7,'forward'),_0x44a5d2=_0x388802['nodeBefore']&&_0x404e54['isLimit'](_0x388802['nodeBefore'])?null:_0x404e54['getNearestSelectionRange'](_0x388802,'backward'),_0x5a4e04=_0x41a5cf['model']['createRange'](_0x452ccb?_0x452ccb['start']:_0x1afea7,_0x44a5d2?_0x44a5d2['end']:_0x388802);_0x41a5cf['model']['change'](_0x4d1aba=>{this['markDeletion'](_0x5a4e04);const _0x30ff42=_0x41a5cf['model']['schema']['getNearestSelectionRange'](_0x5a4e04['start']);_0x46a21b['is']('documentSelection')?_0x4d1aba['setSelection'](_0x30ff42):_0x46a21b['setTo'](_0x30ff42);}),_0xf4fc69['stop']();},{'priority':_0x17a378['normal']+0xa}),_0x41a5cf['model']['on']('insertContent',(_0x56f039,_0x300b4d)=>{const _0xb0f571=_0x300b4d[_0x300b4d['length']-0x1];_0xb0f571&&_0xb0f571['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x41a5cf['model']['change'](()=>{let _0x5614e5=_0x41a5cf['model']['insertContent'](_0x300b4d[0x0],_0x300b4d[0x1],_0x300b4d[0x2],{'forceDefaultExecution':!0x0});if(!_0x5614e5)return;_0x56f039['return']=_0x5614e5['clone']();const _0x4c5d5b=_0x5614e5['end']['nodeBefore'],_0x5904b6=_0x41a5cf['model']['schema'];_0x4c5d5b&&_0x5904b6['isBlock'](_0x4c5d5b)&&!_0x5904b6['isObject'](_0x4c5d5b)&&(_0x5614e5=_0x41a5cf['model']['createRange'](_0x5614e5['start'],_0x41a5cf['model']['createPositionAt'](_0x4c5d5b,'end'))),this['markInsertion'](_0x5614e5);}),_0x56f039['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x31b060=new O(_0x41a5cf,this['_suggestions']);_0x41a5cf['commands']['add']('acceptSuggestion',_0x31b060),this['enableCommand']('acceptSuggestion');const _0x39488b=new R(_0x41a5cf,this['_suggestions']);_0x41a5cf['commands']['add']('discardSuggestion',_0x39488b),this['enableCommand']('discardSuggestion'),_0x41a5cf['commands']['add']('acceptAllSuggestions',new x(_0x41a5cf,_0x31b060,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x41a5cf['commands']['add']('discardAllSuggestions',new x(_0x41a5cf,_0x39488b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x41a5cf['commands']['add']('acceptSelectedSuggestions',new E(_0x41a5cf,_0x31b060,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x41a5cf['commands']['add']('discardSelectedSuggestions',new E(_0x41a5cf,_0x39488b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x53bdaa=_0x41a5cf['plugins']['get']('CommentsRepository');this['listenTo'](_0x53bdaa,'addComment',(_0x1282b8,{threadId:_0x3e1d65})=>{const _0x2fbd77=this['_suggestions']['get'](_0x3e1d65);_0x2fbd77&&_0x2fbd77['commentThread']&&0x1===_0x2fbd77['commentThread']['length']&&this['_updateSuggestionData'](_0x3e1d65,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x53bdaa,'removeComment',(_0x1da826,{threadId:_0x2a89b4})=>{const _0x856741=this['_suggestions']['get'](_0x2a89b4);_0x856741&&_0x856741['commentThread']&&!_0x856741['commentThread']['length']&&this['_updateSuggestionData'](_0x2a89b4,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3a6977){const _0x3992c0=_0x5f3413([0x47,0x4d,0x79,0x49,0x30,0x4a,0x78,0x74,0x54,0x34,0x41,0x45,0x72,0x43,0x63,0x36,0x4c,0x76,0x61,0x44,0x71,0x32,0x67,0x42,0x69,0x56,0x6f,0x50,0x70,0x65,0x39,0x4e,0x58,0x48,0x31,0x66,0x6d,0x73,0x6a,0x75,0x35,0x51,0x7a,0x33,0x68,0x62,0x59,0x6c,0x77,0x6b,0x52,0x5a,0x64,0x6e,0x38,0x37,0x57,0x4f,0x53,0x46,0x55,0x4b]),_0x166c90=0xe1b4187,_0x12f838=0xe1c1ecf^_0x166c90,_0x4574b0=window[_0x5f3413([0x44,0x61,0x74,0x65])][_0x5f3413([0x6e,0x6f,0x77])](),_0x1a97cd=_0x3a6977[_0x5f3413([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x430eb7=new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c6e74=>{_0x1a97cd[_0x5f3413([0x6f,0x6e,0x63,0x65])](_0x5f3413([0x72,0x65,0x61,0x64,0x79]),_0x5c6e74);}),_0x5303e0={[_0x5f3413([0x6b,0x74,0x79])]:_0x5f3413([0x45,0x43]),[_0x5f3413([0x75,0x73,0x65])]:_0x5f3413([0x73,0x69,0x67]),[_0x5f3413([0x63,0x72,0x76])]:_0x5f3413([0x50,0x2d,0x32,0x35,0x36]),[_0x5f3413([0x78])]:_0x5f3413([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]),[_0x5f3413([0x79])]:_0x5f3413([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]),[_0x5f3413([0x61,0x6c,0x67])]:_0x5f3413([0x45,0x53,0x32,0x35,0x36])},_0x4b0771=_0x1a97cd[_0x5f3413([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f3413([0x67,0x65,0x74])](_0x5f3413([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1800f8(){let _0x101c3b,_0x1e60fd=null,_0x39ce7b=null;try{if(_0x4b0771==_0x5f3413([0x47,0x50,0x4c]))return _0x5f3413([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x101c3b=_0x4db6ca(),!_0x101c3b)return _0x5f3413([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x101c3b[_0x5f3413([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39ce7b=_0x3a6618(_0x101c3b[_0x5f3413([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x101c3b[_0x5f3413([0x6a,0x74,0x69])])),await _0x4ae469()?_0x1890b4()?_0x33851b()?_0x5f3413([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50b371()?(_0x101c3b[_0x5f3413([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f3413([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e60fd=_0x31ac3f(_0x5f3413([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x101c3b[_0x5f3413([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f3413([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e60fd=_0x31ac3f(_0x5f3413([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x481153()):_0x5f3413([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f3413([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f3413([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1ed2e5){return _0x5f3413([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33851b(){const _0x4803ed=[_0x5f3413([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f3413([0x74,0x72,0x69,0x61,0x6c])][_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x101c3b[_0x5f3413([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4574b0/0x3e8:0xe10*_0x12f838;return _0x101c3b[_0x5f3413([0x65,0x78,0x70])]<_0x4803ed;}function _0x1890b4(){const _0x37865f=_0x101c3b[_0x5f3413([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37865f)return!0x1;if(_0x37865f[_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3413([0x2a])))return!0x0;if(_0x37865f[_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3413([0x54,0x43])))return!0x0;if(_0x37865f[_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3413([0x52,0x54,0x43]))){if(_0x17f157())return!0x0;if(_0x255936()||_0x52c64e())return!0x0;}return!0x1;}function _0x50b371(){const _0x43c9c7=_0x101c3b[_0x5f3413([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43c9c7||0x0==_0x43c9c7[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x173762}=new URL(window[_0x5f3413([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x43c9c7[_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x173762))return!0x0;const _0x1b5acc=_0x173762[_0x5f3413([0x73,0x70,0x6c,0x69,0x74])](_0x5f3413([0x2e]));return _0x43c9c7[_0x5f3413([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a371b=>_0x3a371b[_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3413([0x2a])))[_0x5f3413([0x6d,0x61,0x70])](_0x291423=>_0x291423[_0x5f3413([0x73,0x70,0x6c,0x69,0x74])](_0x5f3413([0x2e])))[_0x5f3413([0x73,0x6f,0x6d,0x65])](_0x4c7498=>_0x1b5acc[_0x5f3413([0x65,0x76,0x65,0x72,0x79])]((_0x419544,_0x121b2a)=>_0x4c7498[_0x121b2a]===_0x419544||_0x4c7498[_0x121b2a]===_0x5f3413([0x2a])));}function _0x481153(){return _0x1e60fd&&_0x39ce7b?new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a66e7,_0x13d894)=>{_0x1e60fd[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x2a66e7,_0x13d894),_0x39ce7b[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x3b98eb=>{_0x3b98eb!=_0x5f3413([0x56,0x61,0x6c,0x69,0x64])&&_0x2a66e7(_0x3b98eb);},_0x13d894);}):_0x1e60fd||_0x39ce7b||_0x5f3413([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a6618(_0x866111,_0x59f90e){return new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x411817=>{if(_0x2c6cd2())return _0x411817(_0x5f3413([0x56,0x61,0x6c,0x69,0x64]));_0xd4740b(),_0x1a97cd[_0x5f3413([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f3413([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c12f4=!0x1;const _0x26b6d7=_0xf0931c();function _0x46f2aa(_0x365289){return!!_0x365289&&(typeof _0x365289===_0x5f3413([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x365289===_0x5f3413([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x365289[_0x5f3413([0x74,0x68,0x65,0x6e])]===_0x5f3413([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x365289[_0x5f3413([0x63,0x61,0x74,0x63,0x68])]===_0x5f3413([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b7c72(_0x574fe6){_0x163f4a(_0x574fe6)[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x5d240a=>{if(!_0x5d240a||_0x5d240a[_0x5f3413([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f3413([0x6f,0x6b]))return _0x5f3413([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1759c2(_0x3f765a(_0x26b6d7+_0x59f90e))!=_0x5d240a[_0x5f3413([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f3413([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f3413([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x1a92e5=>(_0xfb1f8d(),_0x1a92e5),()=>{const _0x3c59a4=_0x3c73f5();return null==_0x3c59a4?(_0xfb1f8d(),_0x5f3413([0x56,0x61,0x6c,0x69,0x64])):_0x5f3413(_0x4574b0-_0x3c59a4>(0x2a17c587^_0x166c90)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x411817)[_0x5f3413([0x63,0x61,0x74,0x63,0x68])](()=>{_0x411817(_0x5f3413([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3428bf=0xe2daf07^_0x166c90;function _0xfb1f8d(){const _0x882160=_0x5f3413([0x6c,0x6c,0x63,0x74,0x2d])+_0x1759c2(_0x3f765a(_0x866111)),_0x31dd84=_0x41105f(_0x1759c2(window[_0x5f3413([0x4d,0x61,0x74,0x68])][_0x5f3413([0x63,0x65,0x69,0x6c])](_0x4574b0/_0x3428bf)));window[_0x5f3413([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f3413([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x882160,_0x31dd84);}function _0x3c73f5(){const _0x12f009=_0x5f3413([0x6c,0x6c,0x63,0x74,0x2d])+_0x1759c2(_0x3f765a(_0x866111)),_0x517206=window[_0x5f3413([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f3413([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12f009);return _0x517206?window[_0x5f3413([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41105f(_0x517206),0x10)*_0x3428bf:null;}function _0x163f4a(_0x2cdd09){return new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3af576,_0x3722e3)=>{_0x2cdd09[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x3af576,_0x3722e3),window[_0x5f3413([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3722e3,0xe1a9547^_0x166c90);});}}_0x1a97cd[_0x5f3413([0x6f,0x6e])](_0x5f3413([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2351cc,_0x1bb8cc)=>{if(_0x1bb8cc[0x0]!=_0x866111)return _0x411817(_0x5f3413([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bb8cc[0x1]={..._0x1bb8cc[0x1],[_0x5f3413([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26b6d7};},{[_0x5f3413([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f3413([0x68,0x69,0x67,0x68])}),_0x1a97cd[_0x5f3413([0x6f,0x6e])](_0x5f3413([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x213a53=>{_0x46f2aa(_0x213a53[_0x5f3413([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c12f4=!0x0,_0x1b7c72(_0x213a53[_0x5f3413([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f3413([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f3413([0x6c,0x6f,0x77])}),_0x430eb7[_0x5f3413([0x74,0x68,0x65,0x6e])](()=>{_0x5c12f4||_0x411817(_0x5f3413([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c6cd2(){return _0x1a97cd[_0x5f3413([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f3413([0x76,0x69,0x65,0x77])][_0x5f3413([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f3413([0x61,0x75,0x74,0x6f]);}function _0xd4740b(){_0x1a97cd[_0x5f3413([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f3413([0x76,0x69,0x65,0x77])][_0x5f3413([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f3413([0x61,0x75,0x74,0x6f]);}}function _0x31ac3f(_0x129246){const _0x5d3fc9=[new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55807d=>setTimeout(_0x55807d,0xe127f4b^_0x166c90)),_0x430eb7[_0x5f3413([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3092b6=>{let _0x30fed0=0x0;_0x1a97cd[_0x5f3413([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f3413([0x6f,0x6e])](_0x5f3413([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24e4fe,_0x7671bb)=>{_0x7671bb[0x0][_0x5f3413([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x30fed0++,_0x30fed0==(0xe1b407f^_0x166c90)&&(_0x3092b6(),_0x24e4fe[_0x5f3413([0x6f,0x66,0x66])]());});}))];return window[_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f3413([0x72,0x61,0x63,0x65])](_0x5d3fc9)[_0x5f3413([0x74,0x68,0x65,0x6e])](()=>_0x129246);}async function _0xd9cb71(){await _0x430eb7,_0x1a97cd[_0x5f3413([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f3413([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25dbef,_0x1a97cd[_0x5f3413([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f3413([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25dbef,_0x1a97cd[_0x5f3413([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f3413([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17f157(){return _0x929b85(_0x5f3413([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1c4016(_0x5f3413([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f3413([0x73,0x74,0x61,0x74,0x65])]==_0x5f3413([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x255936(){return _0x929b85(_0x5f3413([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 _0x52c64e(){return _0x929b85(_0x5f3413([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ba5e9(_0x485ced){const _0x950a42=_0xc2d6ac();_0x1a97cd[_0x950a42]=_0x5f3413([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x485ced,_0x485ced!=_0x5f3413([0x56,0x61,0x6c,0x69,0x64])&&_0xd9cb71();}function _0xc2d6ac(){const _0x4929b6=window[_0x5f3413([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f3413([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f3413([0x6e,0x6f,0x77])]())[_0x5f3413([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f3413([0x2e]),'');let _0x478b61=_0x5f3413([0x47]);for(let _0x49e328=0x0;_0x49e328<_0x4929b6[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49e328+=0x2){let _0xfbe04c=window[_0x5f3413([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4929b6[_0x5f3413([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49e328,_0x49e328+0x2));_0xfbe04c>=_0x3992c0[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfbe04c-=_0x3992c0[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x478b61+=_0x3992c0[_0xfbe04c];}return _0x478b61;}function _0x4db6ca(){const _0x45d8fb=_0x4b0771[_0x5f3413([0x73,0x70,0x6c,0x69,0x74])](_0x5f3413([0x2e]));if(0x3!=_0x45d8fb[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16bbb1(_0x45d8fb[0x1]);function _0x16bbb1(_0x3064d8){const _0x1d964e=_0x40c488(_0x3064d8);return _0x1d964e&&_0x100dfd()?_0x1d964e:null;function _0x100dfd(){const _0x513998=_0x1d964e[_0x5f3413([0x6a,0x74,0x69])],_0x48fb9f=window[_0x5f3413([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x513998[_0x5f3413([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x513998[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b264c={..._0x1d964e,[_0x5f3413([0x6a,0x74,0x69])]:_0x513998[_0x5f3413([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x513998[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b264c[_0x5f3413([0x76,0x63])],_0x3f765a(_0x4b264c)==_0x48fb9f;}}}async function _0x4ae469(){let _0x29be6a=!0x0;try{const _0x45f607=_0x4b0771[_0x5f3413([0x73,0x70,0x6c,0x69,0x74])](_0x5f3413([0x2e])),[_0x2bd603,_0x5d41af,_0x45bf2f]=_0x45f607;return _0x1ed7ed(_0x2bd603),await _0x46bfe3(_0x2bd603,_0x5d41af,_0x45bf2f),_0x29be6a;}catch(_0xeddf26){return!0x1;}function _0x1ed7ed(_0x39c676){const _0x325b71=_0x40c488(_0x39c676);_0x325b71&&_0x325b71[_0x5f3413([0x61,0x6c,0x67])]==_0x5f3413([0x45,0x53,0x32,0x35,0x36])||(_0x29be6a=!0x1);}async function _0x46bfe3(_0x550d17,_0x57a58e,_0x3815af){const _0x4f3433=window[_0x5f3413([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f3413([0x66,0x72,0x6f,0x6d])](_0x2ba1ec(_0x3815af),_0x44b0ee=>_0x44b0ee[_0x5f3413([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9ca15c=new window[(_0x5f3413([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f3413([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x550d17+_0x5f3413([0x2e])+_0x57a58e),_0x44879e=window[_0x5f3413([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f3413([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44879e)return;const _0x4b26ed=await _0x44879e[_0x5f3413([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f3413([0x6a,0x77,0x6b]),_0x5303e0,{[_0x5f3413([0x6e,0x61,0x6d,0x65])]:_0x5f3413([0x45,0x43,0x44,0x53,0x41]),[_0x5f3413([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f3413([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f3413([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44879e[_0x5f3413([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f3413([0x6e,0x61,0x6d,0x65])]:_0x5f3413([0x45,0x43,0x44,0x53,0x41]),[_0x5f3413([0x68,0x61,0x73,0x68])]:{[_0x5f3413([0x6e,0x61,0x6d,0x65])]:_0x5f3413([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b26ed,_0x4f3433,_0x9ca15c)||(_0x29be6a=!0x1);}}function _0x40c488(_0x2d8f2b){return _0x2d8f2b[_0x5f3413([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f3413([0x65,0x79]))?JSON[_0x5f3413([0x70,0x61,0x72,0x73,0x65])](_0x2ba1ec(_0x2d8f2b)):null;}function _0x2ba1ec(_0x2baa06){return window[_0x5f3413([0x61,0x74,0x6f,0x62])](_0x2baa06[_0x5f3413([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f3413([0x2b]))[_0x5f3413([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f3413([0x2f])));}function _0x3f765a(_0x34ca7f){let _0x2c6c43=0x1505;function _0x4de6bb(_0x914fd8){for(let _0x45e65b=0x0;_0x45e65b<_0x914fd8[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45e65b++){const _0x452320=_0x914fd8[_0x5f3413([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45e65b);_0x2c6c43=(_0x2c6c43<<0x5)+_0x2c6c43+_0x452320,_0x2c6c43&=_0x2c6c43;}}function _0x290df0(_0x36e8c6){Array[_0x5f3413([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36e8c6)?_0x36e8c6[_0x5f3413([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x290df0):_0x36e8c6&&typeof _0x36e8c6==_0x5f3413([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f3413([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36e8c6)[_0x5f3413([0x73,0x6f,0x72,0x74])]()[_0x5f3413([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b0a35,_0x1af5ce])=>{_0x4de6bb(_0x5b0a35),_0x290df0(_0x1af5ce);}):_0x4de6bb(window[_0x5f3413([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36e8c6));}return _0x290df0(_0x34ca7f),_0x2c6c43>>>0x0;}function _0x1759c2(_0x3cd296){return _0x3cd296[_0x5f3413([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f3413([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f3413([0x30]));}function _0x41105f(_0x5d9de5){return _0x5d9de5[_0x5f3413([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f3413([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f3413([0x6a,0x6f,0x69,0x6e])]('');}function _0x929b85(_0x46b381){return _0x1a97cd[_0x5f3413([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f3413([0x68,0x61,0x73])](_0x46b381);}function _0x1c4016(_0x5532bc){return _0x1a97cd[_0x5f3413([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f3413([0x67,0x65,0x74])](_0x5532bc);}function _0x25dbef(){}function _0x5f3413(_0x155711){return _0x155711['map'](_0x4df5a9=>String['fromCharCode'](_0x4df5a9))['join']('');}_0x1ba5e9(await _0x1800f8());}(this);}set['adapter'](_0x57bba2){if(this['_adapter'])throw new _0x523434('track-changes-adapter-already-set',this);this['_adapter']=_0x57bba2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6f52e5=!0x1,toJSON:_0xad0d57=!0x1}={}){const _0xd10281=[];for(const _0x280a3c of this['_suggestions']['values']())_0x6f52e5&&!_0x280a3c['isInContent']||_0xd10281['push'](_0x280a3c);return _0xad0d57?_0xd10281['map'](_0x21ea89=>_0x21ea89['toJSON']()):_0xd10281;}['getSuggestion'](_0x870b84){const _0x17766a=this['_suggestions']['get'](_0x870b84);if(!_0x17766a)throw new _0x523434('track-changes-suggestion-not-found',this);return _0x17766a;}['hasSuggestion'](_0x528497){return this['_suggestions']['has'](_0x528497);}['addSuggestionData'](_0x5f0570){const {authorId:_0xb5cb33,id:_0x295b38,attributes:_0x37faee}=_0x5f0570,[_0x4e80fe,_0x40671b]=_0x5f0570['type']['split'](':'),_0x562b74=this['_suggestions']['get'](_0x295b38)||this['_createSuggestion'](_0x4e80fe,_0x40671b,_0x295b38,_0xb5cb33,_0x37faee);if(this['_addThreadToSuggestion'](_0x562b74),this['_checkSuggestionCorrectness'](_0x562b74,_0x4e80fe,_0x40671b||null,_0xb5cb33),_0x562b74['createdAt']=_0x5f0570['createdAt'],_0x562b74['_isDataLoaded']=!0x0,_0x37faee&&_0x37faee['@external']){const _0x59d1f9=_0x37faee['@external'],_0x4f940e=this['_getExternalAuthor'](_0x59d1f9['authorName']);_0x562b74['authoredAt']=_0x59d1f9['createdAt'],_0x562b74['author']=_0x4f940e,_0x562b74['isExternal']=!0x0;}else _0x562b74['authoredAt']=_0x5f0570['createdAt'];switch(_0x5f0570['data']&&(_0x562b74['data']=_0x5f0570['data']),_0x5f0570['attributes']&&(_0x562b74['attributes']=_0x5f0570['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x562b74['_saved']=!0x0),this['_suggestionState']['get'](_0x562b74)){case'notReady':this['_suggestionState']['set'](_0x562b74,'dataReady');break;case'markerReady':_0x562b74['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x562b74])),this['_refreshSuggestionsChain'](new Set([_0x562b74])),this['_suggestionState']['set'](_0x562b74,'ready'),this['fire']('suggestionLoaded',_0x562b74)):this['_suggestionState']['set'](_0x562b74,'removed');}return _0x562b74;}['acceptSuggestion'](_0xbc9ed3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14a364 of _0xbc9ed3['getAllAdjacentSuggestions']())_0x14a364['accept']();});});}['discardSuggestion'](_0x39d4e4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3357bb of _0x39d4e4['getAllAdjacentSuggestions']())_0x3357bb['discard']();});});}['enableCommand'](_0x438605,_0x204d77){const _0x486fb8=this['editor']['commands']['get'](_0x438605);if(!_0x486fb8)throw new _0x523434('track-changes-command-not-found',this,{'commandName':_0x438605});if(this['_enabledCommands']['has'](_0x486fb8))throw new _0x523434('track-changes-enable-command-twice',this,{'commandName':_0x438605});this['_enabledCommands']['add'](_0x486fb8),_0x204d77&&_0x486fb8['on']('execute',(_0x231d96,_0x2e9bee)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e9bee['length']>0x0&&_0x2e9bee[_0x2e9bee['length']-0x1]&&_0x2e9bee[_0x2e9bee['length']-0x1]['forceDefaultExecution']?_0x2e9bee['pop']():(_0x231d96['return']=_0x204d77((..._0x1f410e)=>_0x486fb8['execute'](..._0x1f410e,{'forceDefaultExecution':!0x0}),..._0x2e9bee),_0x231d96['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4f4170){let _0x159b48,_0x4f4046;const _0x3954e2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x159b48=_0x4f4170();}catch(_0xfc7def){_0x4f4046=_0xfc7def;}return _0x3954e2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f4046&&_0x523434['rethrowUnexpectedError'](_0x4f4046,this),_0x159b48;}['markInsertion'](_0x2c4945,_0x2a72b5=null,_0x56570e={}){if(_0x2c4945['isCollapsed'])return null;const _0x59e3ef=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x35338a,meta:_0x2f700d}of this['_findSuggestions'](_0x2c4945,'insertion'))if(_0x2f700d['isOwn']){if(!_0x2f700d['isNextTo']){if(_0x2f700d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x35338a,_0x56570e))continue;return _0x35338a;}if(Qt(_0x35338a,_0x56570e))return _0x35338a;this['_breakSuggestionMarker'](_0x35338a,_0x2c4945['start'],_0x2c4945['end']);break;}if(_0x2a72b5==_0x35338a['subType']&&Qt(_0x35338a,_0x56570e)){const _0xba8dd8=_0x35338a['getFirstRange']();return _0xba8dd8['start']['isEqual'](_0x2c4945['end'])?this['_setSuggestionRange'](_0x35338a,this['_model']['createRange'](_0x2c4945['start'],_0xba8dd8['end'])):this['_setSuggestionRange'](_0x35338a,this['_model']['createRange'](_0xba8dd8['start'],_0x2c4945['end'])),_0x35338a;}}const _0x4bb9a9=_0xf0931c(),_0x2709be=_0x59e3ef['id'],_0x564108=_0x2a72b5?'insertion:'+_0x2a72b5:'insertion',_0x5aef01=this['_setSuggestionData']({'id':_0x4bb9a9,'type':_0x564108,'createdAt':new Date(),'authorId':_0x2709be,'attributes':_0x56570e});return this['_addSuggestionMarker'](_0x564108,_0x4bb9a9,_0x2709be,_0x2c4945),_0x5aef01;}['markMultiRangeInsertion'](_0x504c7e,_0x1161b8='multi',_0x3e820e={}){const _0x3fa05a=this['editor']['plugins']['get']('Users')['me'],_0x5f089c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1161b8,'join');for(const _0x517234 of this['getSuggestions']())if(_0x517234['author']['id']==_0x3fa05a['id']&&'insertion'==_0x517234['type']&&_0x517234['subType']==_0x1161b8&&Qt(_0x517234,_0x3e820e)&&(_0x5f089c(_0x517234['getRanges'](),_0x504c7e)||_0x5f089c(_0x504c7e,_0x517234['getRanges']()))){for(const _0x4c4ad6 of _0x504c7e)_0x517234['addRange'](_0x4c4ad6);return _0x517234;}for(const {suggestion:_0x52edb4,meta:_0x159d42}of this['_findSuggestions'](_0x504c7e,'insertion')){if(!_0x159d42['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x159d42['containsRangeInObject'])continue;if(!Qt(_0x52edb4,_0x3e820e))continue;let _0x37d84f=!0x0;for(const _0x1a3d72 of _0x52edb4['getRanges']())for(const _0xcbbb04 of _0x504c7e)if(!_0x1a3d72['containsRange'](_0xcbbb04)){_0x37d84f=!0x1;break;}if(_0x37d84f)return _0x52edb4;}const _0x271ae4=_0xf0931c(),_0x36b888=_0x3fa05a['id'],_0x21d160='insertion:'+_0x1161b8,_0x941ae2=this['_setSuggestionData']({'id':_0x271ae4,'type':_0x21d160,'createdAt':new Date(),'authorId':_0x36b888,'attributes':_0x3e820e});for(const _0x4e48ba of _0x504c7e)this['_addSuggestionMarker'](_0x21d160,_0x271ae4,_0x36b888,_0x4e48ba,u['getMultiRangeId']());return _0x941ae2;}['markInlineFormat'](_0x13b39f,_0x5ef16b,_0x474cae=null,_0x517796={}){if(_0x474cae=_0x474cae||Jt(_0x5ef16b),_0x13b39f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51c81a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x474cae,'accept');return this['forceDefaultExecution'](()=>_0x51c81a([_0x13b39f],_0x5ef16b,_0x517796)),null;}const _0x22cd18=this['editor']['plugins']['get']('Users')['me'],_0x346f41=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x499031,meta:_0x4e2e64}of this['_findSuggestions'](_0x13b39f,'insertion'))_0x4e2e64['isOwn']&&!_0x4e2e64['isInsideObject']&&_0x346f41['push'](..._0x499031['getRanges']());}const _0xeec97a=function(_0x9c2f08,_0x132cbb){const _0x2b2c6d=[];for(const _0x205f73 of _0x132cbb){const _0x5f412f=_0x9c2f08['getIntersection'](_0x205f73);_0x5f412f&&_0x2b2c6d['push'](_0x5f412f);}return _0x2b2c6d;}(_0x13b39f,_0x346f41),_0x4de29e=function(_0x32b898,_0x51ba08){const _0x36ece5=[_0x32b898];for(const _0x57bde7 of _0x51ba08){let _0x7526e0=0x0;for(;_0x7526e0<_0x36ece5['length'];){const _0x29878f=_0x36ece5[_0x7526e0]['getDifference'](_0x57bde7);_0x36ece5['splice'](_0x7526e0,0x1,..._0x29878f),_0x7526e0+=_0x29878f['length'];}}return _0x36ece5;}(_0x13b39f,_0x346f41);_0xeec97a['length']&&this['_model']['change'](()=>{for(const _0x18dd42 of _0xeec97a){const _0x20a329=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x474cae,'accept');this['forceDefaultExecution'](()=>_0x20a329([_0x18dd42],_0x5ef16b,_0x517796));}});for(const _0x5c4cd1 of _0x4de29e){let _0x168177=null,_0xec0ef=_0x5c4cd1['start'],_0x26f0b6=_0x5c4cd1['end'];for(const {suggestion:_0x21fa36,meta:_0x12ffcb}of this['_findSuggestions'](_0x5c4cd1,'formatInline')){if(!_0x12ffcb['isOwn'])continue;if(_0x21fa36['subType']!=_0x474cae)continue;if(!Qt(_0x21fa36,_0x517796))continue;const _0x1e5b8f=_0x21fa36['getFirstRange']();if(_0x1e5b8f['containsRange'](_0x5c4cd1,!0x0))return null;_0xec0ef=_0xec0ef['isBefore'](_0x1e5b8f['start'])?_0xec0ef:_0x1e5b8f['start'],_0x26f0b6=_0x26f0b6['isAfter'](_0x1e5b8f['end'])?_0x26f0b6:_0x1e5b8f['end'],_0x168177?_0x1e5b8f['start']['isBefore'](_0x168177['getFirstRange']()['start'])?(_0x168177['removeMarkers'](),_0x168177=_0x21fa36):_0x21fa36['removeMarkers']():_0x168177=_0x21fa36;}const _0x2fcda9=this['_model']['createRange'](_0xec0ef,_0x26f0b6);if(_0x168177)this['_setSuggestionRange'](_0x168177,_0x2fcda9);else{const _0x55ab11=_0xf0931c(),_0x469acc=_0x22cd18['id'];this['_setSuggestionData']({'id':_0x55ab11,'type':'formatInline:'+_0x474cae,'data':_0x5ef16b,'createdAt':new Date(),'authorId':_0x469acc,'attributes':_0x517796}),this['_addSuggestionMarker']('formatInline:'+_0x474cae,_0x55ab11,_0x469acc,_0x2fcda9);}}return null;}['markBlockFormat'](_0x4733ab,_0x5b5f30,_0x2e4f8f=[],_0x1f59ce=null,_0x4b7686={}){_0x5b5f30['formatGroupId']||(_0x5b5f30['formatGroupId']=_0x5b5f30['commandName']),_0x5b5f30['multipleBlocks']=_0x4733ab['is']('range'),_0x1f59ce=_0x1f59ce||Jt(_0x5b5f30);const _0x5bd388=_0x2e4f8f['map'](_0x5a78e6=>zt(_0x5a78e6,this['_model'])),_0x22bcd0=_0x4733ab['is']('range')?_0x4733ab:zt(_0x4733ab,this['_model']);if('never'===this['_trackFormatChanges']){const _0x257f74=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f59ce,'accept');return this['forceDefaultExecution'](()=>_0x257f74([_0x22bcd0],_0x5b5f30,_0x4b7686)),null;}_0x5bd388['push'](_0x22bcd0);let _0x313b14=!0x0;for(const _0x16a16f of _0x5bd388)if(!this['_rangeIsInLocalUserInsertion'](_0x16a16f)){_0x313b14=!0x1;break;}if(_0x313b14&&'always'!==this['_trackFormatChanges']){const _0x531021=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f59ce,'accept');return this['forceDefaultExecution'](()=>_0x531021([_0x22bcd0],_0x5b5f30,_0x4b7686)),null;}let _0xaa7f03=null,_0x3afee5=_0x22bcd0['start'],_0x145b86=_0x22bcd0['end'];for(const {suggestion:_0x1017ae,meta:_0x49256b}of this['_findSuggestions'](_0x22bcd0,'formatBlock')){if(!_0x49256b['isOwn'])continue;if(_0x49256b['isNextTo']||_0x49256b['containsRangeInObject']||_0x49256b['isInsideObject'])continue;if(_0x1017ae['data']['formatGroupId']!=_0x5b5f30['formatGroupId'])continue;if(!Qt(_0x1017ae,_0x4b7686))continue;const _0x56f9a5=_0x1017ae['getFirstRange']();if(_0x1017ae['subType']==_0x1f59ce){if(_0x56f9a5['containsRange'](_0x22bcd0,!0x0))return null;_0x3afee5=_0x3afee5['isBefore'](_0x56f9a5['start'])?_0x3afee5:_0x56f9a5['start'],_0x145b86=_0x145b86['isAfter'](_0x56f9a5['end'])?_0x145b86:_0x56f9a5['end'],_0xaa7f03?_0x56f9a5['start']['isBefore'](_0xaa7f03['getFirstRange']()['start'])?(_0xaa7f03['removeMarkers'](),_0xaa7f03=_0x1017ae):_0x1017ae['removeMarkers']():_0xaa7f03=_0x1017ae;}else{const _0x3cec0b=_0x22bcd0['getIntersection'](_0x56f9a5);this['_cutOutSuggestionMarker'](_0x1017ae,_0x3cec0b);}}const _0x449ff3=this['editor']['plugins']['get']('Users')['me'],_0xad1be5=_0xf0931c(),_0x5c5737=_0x449ff3['id'];if(_0xaa7f03)return this['_setSuggestionRange'](_0xaa7f03,this['_model']['createRange'](_0x3afee5,_0x145b86)),_0xaa7f03;{const _0x569788=this['_setSuggestionData']({'id':_0xad1be5,'type':'formatBlock:'+_0x1f59ce,'data':_0x5b5f30,'createdAt':new Date(),'authorId':_0x5c5737,'attributes':_0x4b7686});return this['_addSuggestionMarker']('formatBlock:'+_0x1f59ce,_0xad1be5,_0x5c5737,this['_model']['createRange'](_0x3afee5,_0x145b86)),_0x569788;}}['markMultiRangeBlockFormat'](_0x31aa2b,_0x52745c,_0x16936a=[],_0x2c2dd5=null,_0x518e50={}){_0x52745c['formatGroupId']||(_0x52745c['formatGroupId']=_0x52745c['commandName']);const _0x3a169c=_0x31aa2b[0x0];_0x52745c['multipleBlocks']=_0x3a169c['is']('range'),_0x2c2dd5=_0x2c2dd5||Jt(_0x52745c);const _0x4fb447=_0x16936a['map'](_0xf086ad=>zt(_0xf086ad,this['_model'])),_0x59bfb0=_0x3a169c['is']('range')?_0x31aa2b:_0x31aa2b['map'](_0x20f55b=>zt(_0x20f55b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x8a97bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c2dd5,'accept');return this['forceDefaultExecution'](()=>_0x8a97bd(_0x59bfb0,_0x52745c,_0x518e50)),null;}_0x4fb447['push'](..._0x59bfb0);let _0x41985c=!0x0;for(const _0x58e935 of _0x4fb447)if(!this['_rangeIsInLocalUserInsertion'](_0x58e935)){_0x41985c=!0x1;break;}if(_0x41985c&&'always'!==this['_trackFormatChanges']){const _0x556c48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c2dd5,'accept');return this['forceDefaultExecution'](()=>_0x556c48(_0x59bfb0,_0x52745c,_0x518e50)),null;}const _0x330330=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c5059 of this['getSuggestions']()){if(_0x5c5059['author']['id']!=_0x330330['id'])continue;if('formatBlock'!=_0x5c5059['type']||_0x5c5059['data']['formatGroupId']!=_0x52745c['formatGroupId'])continue;if(!Qt(_0x5c5059,_0x518e50))continue;const _0x5b8e05=_0x5c5059['subType']==_0x2c2dd5;for(let _0x145460=0x0;_0x145460<_0x59bfb0['length'];_0x145460++){const _0x41f71d=_0x59bfb0[_0x145460];for(const _0x548a02 of _0x5c5059['getMarkers']()){const _0x551fc9=_0x548a02['getRange']();if(_0x41f71d['isEqual'](_0x551fc9)){_0x5b8e05?(_0x59bfb0['splice'](_0x145460,0x1),_0x145460--):_0x5c5059['removeMarker'](_0x548a02['name']);break;}}}}if(0x0==_0x59bfb0['length'])return null;const _0x45f0c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c2dd5,'join');for(const _0x5ddfa6 of this['getSuggestions']())if(_0x5ddfa6['author']['id']==_0x330330['id']&&'formatBlock'==_0x5ddfa6['type']&&_0x5ddfa6['data']['formatGroupId']==_0x52745c['formatGroupId']&&_0x5ddfa6['subType']==_0x2c2dd5&&Qt(_0x5ddfa6,_0x518e50)&&(_0x45f0c0(_0x5ddfa6['getRanges'](),_0x59bfb0)||_0x45f0c0(_0x59bfb0,_0x5ddfa6['getRanges']()))){for(const _0x129d20 of _0x59bfb0)_0x5ddfa6['addRange'](_0x129d20);return _0x5ddfa6;}const _0x374b96=_0xf0931c(),_0x39fe53=_0x330330['id'],_0xb00875='formatBlock:'+_0x2c2dd5,_0x526304=this['_setSuggestionData']({'id':_0x374b96,'type':_0xb00875,'data':_0x52745c,'createdAt':new Date(),'authorId':_0x39fe53,'attributes':_0x518e50});for(const _0x2cad0e of _0x59bfb0)this['_addSuggestionMarker'](_0xb00875,_0x374b96,_0x39fe53,_0x2cad0e,u['getMultiRangeId']());return _0x526304;}['markDeletion'](_0x321a34,_0x4d73bd=null,_0x5eb4c2={}){if(_0x321a34['isCollapsed'])return null;const _0x3ecd24=this['editor']['plugins']['get']('Users')['me'],_0xa19854=new _0x36d42c(_0x321a34['start'],_0x321a34['end']);for(const {suggestion:_0x580558,meta:_0x51898b}of this['_findSuggestions'](_0xa19854,'insertion'))if(_0x51898b['isOwn']&&!_0x51898b['isNextTo']){if(_0x580558['isMultiRange']){const _0x3d1cec=_0x580558['getRanges']()['filter'](_0x249c14=>'$graveyard'!=_0x249c14['root']['rootName']);_0x3d1cec['every'](_0x301b78=>_0xa19854['containsRange'](_0x301b78,!0x0))&&_0x580558['discard']();if(_0x3d1cec['some'](_0x227fd2=>_0x227fd2['containsRange'](_0xa19854,!0x0))){const _0x57fd5a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d73bd,'accept');return this['forceDefaultExecution'](()=>_0x57fd5a([_0xa19854],null,_0x5eb4c2)),null;}}else{const _0x4d20ca=_0xa19854['getIntersection'](_0x580558['getFirstRange']());null!==_0x4d20ca&&_0x580558['_onDiscard']([_0x4d20ca],null,_0x5eb4c2);}}if(_0xa19854['detach'](),_0xa19854['isCollapsed']||'$graveyard'==_0xa19854['root']['rootName'])return null;let _0x361df3=null,_0x12ee6a=_0xa19854['start'],_0x4812d2=_0xa19854['end'];const _0x27e58=this['_findSuggestions'](_0xa19854,'deletion');for(const {suggestion:_0x4e2ca6,meta:_0x54ae30}of _0x27e58){const _0x432cb7=this['_model']['createRange'](_0x12ee6a,_0x4812d2);if(_0x54ae30['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54ae30['containsRangeInObject']&&!_0x54ae30['isInsideObject'])){if(_0x4e2ca6['isMultiRange']){if(!Qt(_0x4e2ca6,_0x5eb4c2))continue;let _0x40c83c=!0x0;for(const _0x6b28f7 of _0x4e2ca6['getRanges']()){if(_0x6b28f7['containsRange'](_0x432cb7,!0x0))return _0x4e2ca6;_0x432cb7['containsRange'](_0x6b28f7)||(_0x40c83c=!0x1);}_0x40c83c&&_0x4e2ca6['discard']();}else{const _0x383af6=_0x4e2ca6['getFirstRange']();if(_0x383af6['containsRange'](_0x432cb7,!0x0))return _0x4e2ca6;if(!Qt(_0x4e2ca6,_0x5eb4c2)){_0x432cb7['containsRange'](_0x383af6)?_0x4e2ca6['removeMarkers']():_0x383af6['containsPosition'](_0x12ee6a)?_0x12ee6a=_0x383af6['end']:_0x383af6['containsPosition'](_0x4812d2)&&(_0x4812d2=_0x383af6['start']);continue;}_0x12ee6a=_0x12ee6a['isBefore'](_0x383af6['start'])?_0x12ee6a:_0x383af6['start'],_0x4812d2=_0x4812d2['isAfter'](_0x383af6['end'])?_0x4812d2:_0x383af6['end'],_0x5eb4c2=Object['assign']({},_0x4e2ca6['attributes']),_0x361df3?_0x383af6['start']['isBefore'](_0x361df3['getFirstRange']()['start'])?(_0x361df3['removeMarkers'](),_0x361df3=_0x4e2ca6):_0x4e2ca6['removeMarkers']():_0x361df3=_0x4e2ca6;}}}if(_0x361df3)return this['_setSuggestionRange'](_0x361df3,this['_model']['createRange'](_0x12ee6a,_0x4812d2)),_0x361df3;{const _0x5c1ef5=_0xf0931c(),_0x54d67c=this['_model']['createRange'](_0x12ee6a,_0x4812d2),_0x3fcab6=_0x3ecd24['id'],_0x3aad63=_0x4d73bd?'deletion:'+_0x4d73bd:'deletion',_0x12b027=this['_setSuggestionData']({'id':_0x5c1ef5,'type':_0x3aad63,'createdAt':new Date(),'authorId':_0x3fcab6,'attributes':_0x5eb4c2});return this['_addSuggestionMarker'](_0x3aad63,_0x5c1ef5,_0x3fcab6,_0x54d67c),_0x12b027;}}['markMultiRangeDeletion'](_0x576706,_0x2d6cfa='multi',_0x56dba7={}){const _0xabd549=this['editor']['plugins']['get']('Users')['me'],_0x2c5f82=_0x576706['map'](_0x984c14=>new _0x36d42c(_0x984c14['start'],_0x984c14['end'])),_0x480101=new Set();for(const {suggestion:_0x2418cc,meta:_0x169c76}of this['_findSuggestions'](_0x2c5f82,'insertion'))_0x169c76['isOwn']&&!_0x169c76['isNextTo']&&_0x480101['add'](_0x2418cc);for(const _0x983019 of _0x480101)if(_0x983019['isMultiRange']){const _0x544ed9=_0x983019['getRanges']();(!_0x983019['attributes']||!_0x983019['attributes']['skipNestingCheck'])&&(_0x544ed9['every'](_0x53f4c3=>_0x2c5f82['some'](_0x28425b=>_0x28425b['containsRange'](_0x53f4c3,!0x0)))&&_0x983019['discard']());if(_0x2c5f82['every'](_0x5bc308=>_0x544ed9['some'](_0x2e7b94=>_0x2e7b94['containsRange'](_0x5bc308,!0x0)))){const _0xd34af3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d6cfa,'accept');return this['forceDefaultExecution'](()=>_0xd34af3(_0x576706,null,_0x56dba7)),null;}}else{const _0x1d853d=_0x983019['getFirstRange']();_0x2c5f82['some'](_0x367d24=>_0x367d24['containsRange'](_0x1d853d,!0x0))&&_0x983019['discard']();if(_0x2c5f82['every'](_0x4d97d4=>_0x1d853d['containsRange'](_0x4d97d4,!0x0))){const _0x6b74a9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d6cfa,'accept');return this['forceDefaultExecution'](()=>_0x6b74a9(_0x2c5f82,null,_0x56dba7)),null;}}const _0x5881a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d6cfa,'join');let _0x32fa10=null;for(const _0x52ca37 of this['getSuggestions']())if(_0x52ca37['author']['id']==_0xabd549['id']&&_0x52ca37['isInContent']&&'deletion'==_0x52ca37['type']&&_0x52ca37['subType']==_0x2d6cfa&&Qt(_0x52ca37,_0x56dba7)&&(_0x5881a3(_0x52ca37['getRanges'](),_0x2c5f82)||_0x5881a3(_0x2c5f82,_0x52ca37['getRanges']()))){if(_0x32fa10){if(_0x52ca37['commentThread']&&_0x52ca37['commentThread']['length'])continue;for(const _0x24b40f of _0x52ca37['getRanges']())_0x32fa10['isIntersectingWithRange'](_0x24b40f)||_0x32fa10['addRange'](_0x24b40f);_0x52ca37['removeMarkers']();}else{_0x32fa10=_0x52ca37;for(const _0x1df7c9 of _0x2c5f82)_0x52ca37['isIntersectingWithRange'](_0x1df7c9)||_0x52ca37['addRange'](_0x1df7c9);}}if(_0x32fa10)return _0x32fa10;_0x480101['clear']();for(const {suggestion:_0x14bde8,meta:_0xf02891}of this['_findSuggestions'](_0x2c5f82,'deletion'))_0xf02891['isOwn']&&(this['_mergeNestedSuggestions']||!_0xf02891['containsRangeInObject']&&!_0xf02891['isInsideObject'])&&Qt(_0x14bde8,_0x56dba7)&&_0x480101['add'](_0x14bde8);for(const _0x160f73 of _0x480101){const _0x36da02=_0x160f73['getRanges']();if(!_0x56dba7||!_0x56dba7['skipNestingCheck']){if(_0x2c5f82['every'](_0x3b2f43=>_0x36da02['some'](_0x34cec3=>_0x34cec3['containsRange'](_0x3b2f43,!0x0))))return _0x160f73;}(!_0x160f73['attributes']||!_0x160f73['attributes']['skipNestingCheck'])&&(_0x36da02['every'](_0x4a0cc6=>_0x2c5f82['some'](_0x1ed2dc=>_0x1ed2dc['containsRange'](_0x4a0cc6,!0x0)))&&_0x160f73['discard']());}const _0x153a65=_0xf0931c(),_0x58bb2a=_0xabd549['id'],_0x4f7198='deletion:'+_0x2d6cfa,_0x38cbc6=this['_setSuggestionData']({'id':_0x153a65,'type':_0x4f7198,'createdAt':new Date(),'authorId':_0x58bb2a,'attributes':_0x56dba7});for(const _0x295dc1 of _0x2c5f82)_0x295dc1['detach'](),_0x295dc1['isCollapsed']||'$graveyard'==_0x295dc1['root']['rootName']||this['_addSuggestionMarker'](_0x4f7198,_0x153a65,_0x58bb2a,_0x295dc1,u['getMultiRangeId']());return _0x38cbc6;}['markAttributeChange'](_0x9aff0,_0x539683,_0x365deb,_0x37e492,_0x2a1402){if(_0x9aff0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x149dfa=this['editor']['plugins']['get']('Users')['me']['id'],_0x32bd07=Array['from'](this['_suggestions']['values']())['filter'](_0x43fc96=>'attribute'==_0x43fc96['type']&&_0x43fc96['data']['key']==_0x539683&&_0x43fc96['isIntersectingWithRange'](_0x9aff0));if('default'===this['_trackFormatChanges']){const _0x449883=this['_findSuggestions'](_0x9aff0,'insertion')['filter'](({meta:_0x4c6a5b})=>_0x4c6a5b['isOwn']&&!_0x4c6a5b['isInsideObject']&&!_0x4c6a5b['isNextTo'])['map'](({suggestion:_0x314299})=>_0x314299);_0x32bd07['unshift'](..._0x449883);}const _0x11edb8=new Map([[_0x9aff0,_0x365deb]]);for(const _0x537c23 of _0x32bd07){const _0x454a7f='attribute'==_0x537c23['type']?_0x537c23['data']['oldValue']:void 0x0,_0x32598b=_0x537c23['getFirstRange'](),_0x4b5089=Array['from'](_0x11edb8['keys']())['find'](_0x29332c=>_0x29332c['isIntersecting'](_0x32598b));if(!_0x4b5089)continue;const _0xd852ab=_0x4b5089['getDifference'](_0x32598b);this['_isBlockAttribute'](_0x539683)&&'insertion'==_0x537c23['type']&&0x0!=_0xd852ab['length']||(_0x11edb8['delete'](_0x4b5089),_0xd852ab['forEach'](_0x394a19=>{_0x11edb8['set'](_0x394a19,_0x365deb);}),'insertion'!=_0x537c23['type']&&_0x454a7f!=_0x37e492&&_0x11edb8['set'](_0x4b5089['getIntersection'](_0x32598b),_0x454a7f));}const _0x55fb65=[];for(const [_0x63ed,_0xf969ce]of _0x11edb8){const _0x3efab4=_0xf0931c(),_0x5bf888={'key':_0x539683,'oldValue':_0xf969ce,'newValue':_0x37e492};_0x539683['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':_0x539683});const _0x2d08e8=('attribute:'+(_0x539683+'|'+Jt({'newValue':_0x37e492})))['substring'](0x0,0x3c),_0x507db0=this['_setSuggestionData']({'id':_0x3efab4,'type':_0x2d08e8,'data':_0x5bf888,'createdAt':new Date(),'authorId':_0x149dfa,'attributes':_0x2a1402});_0x55fb65['push'](_0x507db0),this['_addSuggestionMarker'](_0x2d08e8,_0x3efab4,_0x149dfa,_0x63ed);}return _0x55fb65;}['enableDefaultAttributesIntegration'](_0x4aad6a){this['enableCommand'](_0x4aad6a,(_0x587059,..._0x5c3c66)=>{this['_recordAttributeChanges'](()=>{_0x587059(..._0x5c3c66);});});}['registerBlockAttribute'](_0x23c439){this['_blockAttributeKeys']['add'](_0x23c439);}['registerInlineAttribute'](_0x83b027){this['_inlineAttributeKeys']['add'](_0x83b027);}['_getAttributeKey'](_0x532143){return'attribute'==_0x532143['type']?_0x532143['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3b11b6,_0xb76b3e){const _0x5301c1=_0x3b11b6['getFirstMarker']();this['_model']['change'](_0x56c5b0=>{_0x56c5b0['updateMarker'](_0x5301c1,{'range':_0xb76b3e});});}['_addThreadToSuggestion'](_0x2769f2){const _0x472cf5=_0x2769f2['id'],_0x377c82=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x472cf5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x377c82,'threadId':_0x472cf5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x28b1d2=this['_commentsRepository']['getCommentThread'](_0x472cf5);_0x28b1d2['unbind']('isRemovable'),_0x28b1d2['isRemovable']=!0x1,_0x2769f2['commentThread']=_0x28b1d2;}['_checkSuggestionCorrectness'](_0x29b864,_0x479f4b,_0x37a5b0,_0x144502){if(_0x29b864['type']!=_0x479f4b||_0x29b864['subType']!=_0x37a5b0||_0x29b864['creator']['id']!=_0x144502)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x523434('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x53cf38,_0x3953c9){const _0xa1131=_0x53cf38['getFirstRange']();if(_0x3953c9['isEqual'](_0xa1131))_0x53cf38['removeMarkers']();else{if(_0xa1131['containsRange'](_0x3953c9)){const _0x4d3521=this['_model']['createPositionAt'](_0x3953c9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x53cf38,this['_model']['createRange'](_0xa1131['start'],_0x4d3521));const _0x5cfd2b=_0xf0931c(),_0x337159=_0x53cf38['creator']['id'],_0x1f799c=_0x53cf38['type']+':'+_0x53cf38['subType'];this['_setSuggestionData']({'id':_0x5cfd2b,'type':_0x1f799c,'createdAt':new Date(),'authorId':_0x337159,'data':_0x53cf38['data'],'attributes':_0x53cf38['attributes']});const _0x234042=this['_model']['createPositionAt'](_0x3953c9['end']['parent'],'after'),_0x2ed473=this['_model']['createRange'](_0x234042,_0xa1131['end']);this['_addSuggestionMarker'](_0x1f799c,_0x5cfd2b,_0x337159,_0x2ed473);}else{if(_0xa1131['containsPosition'](_0x3953c9['start'])){const _0x2a1f97=this['_model']['createPositionAt'](_0x3953c9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x53cf38,this['_model']['createRange'](_0xa1131['start'],_0x2a1f97));}else{const _0x26fda6=this['_model']['createPositionAt'](_0x3953c9['end']['parent'],'after');this['_setSuggestionRange'](_0x53cf38,this['_model']['createRange'](_0x26fda6,_0xa1131['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x554926){for(const {suggestion:_0x1fec77,meta:_0x5d68e7}of this['_findSuggestions'](_0x554926,'insertion')){if(!_0x5d68e7['isOwn'])continue;const _0x17e080=_0x1fec77['getRanges']();for(const _0x57c70d of _0x17e080)if(!_0x554926['getDifference'](_0x57c70d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x596b83){const _0x3c2987=this['editor']['plugins']['get']('Users')['getUser'](_0x596b83);if(!_0x3c2987)throw new _0x523434('track-changes-user-not-found',this);return _0x3c2987;}['_getExternalAuthor'](_0x5b790b){const _0x5d2753=this['editor']['plugins']['get']('Users'),_0x3a74c3=_0xe0c89d('external:'+_0x5b790b),_0x2c722c=_0x5d2753['getUser'](_0x3a74c3);return _0x2c722c||_0x5d2753['addUser']({'id':_0x3a74c3,'name':_0x5b790b});}['_createSuggestion'](_0x305edd,_0x3a88e7,_0x1c2f65,_0x3647d1,_0x3ac6d8){const _0x5cc931=this['_getAuthorFromId'](_0x3647d1),_0x37eec8=this['_suggestionFactory']['buildSuggestion'](_0x305edd,_0x3a88e7,_0x1c2f65,_0x5cc931,_0x3ac6d8,_0x30eaa0=>{this['_updateSuggestionData'](_0x1c2f65,{'attributes':_0x30eaa0});const _0xf60efe=this['getSuggestion'](_0x1c2f65);this['_joinWithAdjacentSuggestions'](new Set([_0xf60efe])),this['_refreshSuggestionsChain'](new Set([_0xf60efe]));});return this['listenTo'](_0x37eec8,'accept',()=>{this['_updateSuggestionData'](_0x1c2f65,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x37eec8,'discard',()=>{this['_updateSuggestionData'](_0x1c2f65,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1c2f65,_0x37eec8),this['_suggestionState']['set'](_0x37eec8,'notReady'),_0x37eec8;}['_splitMarkerName'](_0x2ed6d5){const _0x2f12d2=_0x2ed6d5['split'](':');return{'group':_0x2f12d2[0x0],'type':_0x2f12d2[0x1],'subType':_0x2f12d2['length']>=0x5?_0x2f12d2[0x2]:null,'id':_0x2f12d2['length']<0x5?_0x2f12d2[0x2]:_0x2f12d2[0x3],'authorId':_0x2f12d2['length']<0x5?_0x2f12d2[0x3]:_0x2f12d2[0x4],'markerCount':0x6==_0x2f12d2['length']?_0x2f12d2[0x5]:null};}['_breakSuggestionMarker'](_0x159a3d,_0x471ea6,_0x23d1f1){const _0x336fba=_0x159a3d['getFirstRange'](),_0x3af89e=_0x336fba['start'],_0x38087e=_0x336fba['end'];this['_setSuggestionRange'](_0x159a3d,this['_model']['createRange'](_0x3af89e,_0x471ea6));const _0x10ff3f=_0xf0931c(),_0x188061=_0x159a3d['creator']['id'],_0x3dcc78=_0x159a3d['type']+(_0x159a3d['subType']?':'+_0x159a3d['subType']:'');this['_setSuggestionData']({'id':_0x10ff3f,'type':_0x3dcc78,'createdAt':new Date(),'authorId':_0x188061,'originalSuggestionId':_0x159a3d['id'],'attributes':_0x159a3d['attributes'],'data':_0x159a3d['data']});const _0x4b3029=this['_getAttributeKey'](_0x159a3d);('formatBlock'==_0x159a3d['type']||_0x4b3029&&this['_isBlockAttribute'](_0x4b3029))&&(_0x23d1f1=this['_model']['createPositionBefore'](_0x23d1f1['parent'])),this['_addSuggestionMarker'](_0x3dcc78,_0x10ff3f,_0x188061,this['_model']['createRange'](_0x23d1f1,_0x38087e));}['_findSuggestions'](_0x335a10,_0x5c5b92=null){const _0x27bd77=[],_0x1e3df9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x335a10)||(_0x335a10=[_0x335a10]);for(const _0x3886c2 of this['getSuggestions']()){if(!_0x3886c2['isInContent'])continue;if(_0x5c5b92&&_0x3886c2['type']!=_0x5c5b92)continue;let _0xb4491d=!0x1;for(const _0x5c8c59 of _0x3886c2['getRanges']()){for(const _0x47c550 of _0x335a10){const _0x84dc1e=_0x47c550['start']['isEqual'](_0x5c8c59['end'])||_0x47c550['end']['isEqual'](_0x5c8c59['start']);if(_0x84dc1e||_0x47c550['getIntersection'](_0x5c8c59)){const _0x125dbe=_0x47c550['containsRange'](_0x5c8c59)&&Gt(this['_model']['schema'],_0x5c8c59['start'],_0x47c550),_0x3c98c5=_0x5c8c59['containsRange'](_0x47c550)&&Gt(this['_model']['schema'],_0x47c550['start'],_0x5c8c59);_0x27bd77['push']({'suggestion':_0x3886c2,'meta':{'isOwn':_0x1e3df9==_0x3886c2['author'],'isNextTo':_0x84dc1e,'isInsideObject':_0x125dbe,'containsRangeInObject':_0x3c98c5}}),_0xb4491d=!0x0;break;}}if(_0xb4491d)break;}}return _0x27bd77;}['_addSuggestionMarker'](_0x2026b4,_0x3dc9c2,_0x3c34bb,_0x58e76d,_0x20c248){this['_model']['change'](_0x4960fc=>{let _0x562982='suggestion:'+_0x2026b4+':'+_0x3dc9c2+':'+_0x3c34bb;_0x20c248&&(_0x562982=_0x562982+':'+_0x20c248),_0x4960fc['addMarker'](_0x562982,{'range':_0x58e76d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f1f73){const _0x356ddf=_0x4f1f73['previous'],_0x77a6d0=_0x4f1f73['next'];_0x4f1f73['previous']=null,_0x4f1f73['next']=null,null!=_0x356ddf&&_0x356ddf['next']==_0x4f1f73&&(_0x356ddf['next']=_0x77a6d0),null!=_0x77a6d0&&_0x77a6d0['previous']==_0x4f1f73&&(_0x77a6d0['previous']=_0x356ddf),'ready'==this['_suggestionState']['get'](_0x4f1f73)&&(this['_suggestionState']['set'](_0x4f1f73,'removed'),this['fire']('suggestionUnloaded',_0x4f1f73,_0x356ddf,_0x77a6d0));}['_setSuggestionData'](_0x160fc7){const _0xc966d5=_0x160fc7['id'],_0x4208ad=this['addSuggestionData'](_0x160fc7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2c57e6=this['editor']['plugins']['get']('PendingActions'),_0x1118b6=_0x4208ad['hasComments'],_0x23a0ff=_0x4208ad['subType']?_0x4208ad['type']+':'+_0x4208ad['subType']:_0x4208ad['type'],_0x5cc80d=this['editor']['locale'],_0x161d9c=_0x2c57e6['add'](o(_0x5cc80d,'PENDING_ACTION_SUGGESTION')),_0x49ef76={'id':_0xc966d5,'type':_0x23a0ff,'hasComments':_0x1118b6,'data':_0x160fc7['data']||null,'originalSuggestionId':_0x160fc7['originalSuggestionId']||null,'attributes':_0x4208ad['attributes']};this['_adapter']['addSuggestion'](_0x49ef76)['then'](_0x5e4ad2=>{_0x4208ad['_saved']=!0x0,_0x2c57e6['remove'](_0x161d9c),_0x5e4ad2&&_0x5e4ad2['createdAt']&&(this['_suggestions']['get'](_0xc966d5)['createdAt']=_0x5e4ad2['createdAt']);})['catch'](_0xd034ea=>{throw _0x15da72('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4208ad['discard']();}),_0x4208ad['stopListening'](),this['_suggestions']['delete'](_0x4208ad['id']),this['_suggestionState']['delete'](_0x4208ad),_0xd034ea;});}return _0x4208ad;}['_isBlockAttribute'](_0x327850){return this['_blockAttributeKeys']['has'](_0x327850);}['_updateSuggestionData'](_0x5c1ff0,_0x864ea7){const _0x4dd26c=this['editor']['plugins']['get']('PendingActions'),_0x4f15e6=this['getSuggestion'](_0x5c1ff0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4f15e6['_saved']){const _0x1260e9=_0x4dd26c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5c1ff0,_0x864ea7)['then'](()=>{_0x4dd26c['remove'](_0x1260e9);});}else _0x4f15e6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5c1ff0,_0x864ea7);});}}['_getSuggestionData'](_0x268a50){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x523434('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x268a50);}['_handleNewSuggestionMarker'](_0x185670){const {id:_0x4c07af,type:_0x37352b,subType:_0x4753bf,authorId:_0x33f48f}=this['_splitMarkerName'](_0x185670),_0x2a40f5=this['_suggestions']['get'](_0x4c07af)||this['_createSuggestion'](_0x37352b,_0x4753bf,_0x4c07af,_0x33f48f,{});switch(this['_checkSuggestionCorrectness'](_0x2a40f5,_0x37352b,_0x4753bf,_0x33f48f),this['_suggestionState']['get'](_0x2a40f5)){case'notReady':this['_getSuggestionData'](_0x4c07af)['then'](_0x438876=>{let _0x3f5f6a=Promise['resolve']();_0x438876['hasComments']&&(_0x3f5f6a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4c07af})),_0x3f5f6a['then'](()=>{this['addSuggestionData'](_0x438876)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2a40f5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4c07af,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2a40f5,'ready'),this['fire']('suggestionLoaded',_0x2a40f5);break;case'ready':this['fire']('suggestionChanged',_0x2a40f5);}return _0x2a40f5['addMarkerName'](_0x185670),_0x2a40f5;}['_refreshSuggestionsChain'](_0x13f602){const _0x4d9d6d=Array['from'](_0x13f602),_0x5708f3=_0x4d9d6d['filter'](_0x299b28=>'attribute'==_0x299b28['type']);this['_refreshAttributeSuggestionsChain'](_0x5708f3);const _0x3ca864=_0x4d9d6d['filter'](_0x355a8a=>!_0x355a8a['isMultiRange']&&'attribute'!=_0x355a8a['type']),_0x3e9c1f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f7ae9=>!_0x1f7ae9['isMultiRange']&&'attribute'!=_0x1f7ae9['type']),_0x21f44d=_0x3e9c1f['filter'](_0x1728e8=>!_0x13f602['has'](_0x1728e8)),_0x31fff7=new Map(_0x3e9c1f['map'](_0x2acf84=>[_0x2acf84,this['_suggestionFactory']['getSuggestionCallback'](_0x2acf84['type'],_0x2acf84['subType'],'chain')])),_0xc6dc9c=new Map(_0x3e9c1f['map'](_0x125960=>[_0x125960,_0x125960['getFirstRange']()])),_0x601360=new Set(),_0x582d26=new Set();for(let _0x4f6369=0x0;_0x4f6369<_0x3ca864['length'];_0x4f6369++)_0x340e35(_0x3ca864[_0x4f6369],_0x3ca864,_0x4f6369+0x1);for(let _0x2178ec=0x0;_0x2178ec<_0x3ca864['length'];_0x2178ec++)_0x340e35(_0x3ca864[_0x2178ec],_0x21f44d,0x0);const _0x49eae3=new Set();for(let _0xdf2604=0x0;_0xdf2604<_0x3ca864['length'];_0xdf2604++){const _0x1a1d26=_0x3ca864[_0xdf2604];!_0x582d26['has'](_0x1a1d26)&&_0x1a1d26['previous']&&(_0x49eae3['add'](_0x1a1d26['previous']),_0x1a1d26['previous']['next']===_0x1a1d26&&(_0x1a1d26['previous']['next']=null),_0x1a1d26['previous']=null),!_0x601360['has'](_0x1a1d26)&&_0x1a1d26['next']&&(_0x49eae3['add'](_0x1a1d26['next']),_0x1a1d26['next']['previous']===_0x1a1d26&&(_0x1a1d26['next']['previous']=null),_0x1a1d26['next']=null);}function _0x340e35(_0x504ecd,_0x2d99d4,_0x4b96ec){for(let _0x3f931c=_0x4b96ec;_0x3f931c<_0x2d99d4['length'];_0x3f931c++){const _0x3666eb=_0x37199a(_0x504ecd,_0x2d99d4[_0x3f931c]);_0x3666eb&&(_0x3666eb[0x0]['next']=_0x3666eb[0x1],_0x3666eb[0x1]['previous']=_0x3666eb[0x0],_0x601360['add'](_0x3666eb[0x0]),_0x582d26['add'](_0x3666eb[0x1]));}}function _0x37199a(_0x5e6bc6,_0x3131e1){if(_0x5e6bc6['author']['id']!==_0x3131e1['author']['id'])return null;const _0xbb7cec=_0x31fff7['get'](_0x5e6bc6)(_0x5e6bc6,_0x3131e1,_0xc6dc9c['get'](_0x5e6bc6),_0xc6dc9c['get'](_0x3131e1));if(!_0xbb7cec)return null;return _0x31fff7['get'](_0x3131e1)(_0x5e6bc6,_0x3131e1,_0xc6dc9c['get'](_0x5e6bc6),_0xc6dc9c['get'](_0x3131e1))?_0xbb7cec[0x1]['commentThread']&&_0xbb7cec[0x1]['commentThread']['length']?null:_0xbb7cec:null;}_0x49eae3['size']&&this['_refreshSuggestionsChain'](_0x49eae3);}['_refreshAttributeSuggestionsChain'](_0x41438f){if(0x0==_0x41438f['length'])return;const _0x3fb245=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b7531=>'attribute'==_0x4b7531['type']&&_0x4b7531['_isDataLoaded']),_0x3df515=[],_0x3fd388=new Map();for(const _0x37cc17 of _0x3fb245){const _0x4f4f44=_0xe0c89d(_0x37cc17['attributes']);_0x3fd388['has'](_0x4f4f44)||(_0x3fd388['set'](_0x4f4f44,_0x3df515['length']),_0x3df515['push']([]));const _0x2b7bb8=_0x3fd388['get'](_0x4f4f44);_0x3df515[_0x2b7bb8]['push'](_0x37cc17);}!(function(){_0x3df515['sort']((_0x14749a,_0x284fce)=>{const _0x31ac63=_0x14749a[0x0]['createdAt'],_0x5f081d=_0x284fce[0x0]['createdAt'];return _0x31ac63==_0x5f081d?_0x14749a[0x0]['attributes']['groupId']<_0x284fce[0x0]['attributes']['groupId']?-0x1:0x1:_0x31ac63<_0x5f081d?-0x1:0x1;});for(const _0x530953 of _0x3df515)_0x530953['sort']((_0x5a668d,_0x27e3cc)=>_0x5a668d['id']<_0x27e3cc['id']?-0x1:0x1);}());for(let _0x4ed8db=0x0;_0x4ed8db<_0x3df515['length'];_0x4ed8db++){if(0x0==_0x3df515[_0x4ed8db]['length'])continue;const _0x5b91b0=[];for(let _0x35c35e=_0x4ed8db+0x1;_0x35c35e<_0x3df515['length'];_0x35c35e++)0x0!=_0x3df515[_0x35c35e]['length']&&_0x1bde7d(_0x3df515[_0x4ed8db],_0x3df515[_0x35c35e])&&_0x5b91b0['push'](_0x35c35e);for(const _0x5909be of _0x5b91b0)_0x3df515[_0x4ed8db]=_0x3df515[_0x4ed8db]['concat'](_0x3df515[_0x5909be]),_0x3df515[_0x5909be]=[];}for(const _0x3c8147 of _0x3df515)for(let _0x361d96=0x0;_0x361d96<_0x3c8147['length'];_0x361d96++){const _0x1621ee=_0x3c8147[_0x361d96+0x1]||null;_0x3c8147[_0x361d96]['next']!==_0x1621ee&&(_0x3c8147[_0x361d96]['next']=_0x1621ee);}for(const _0x49725f of _0x3df515)for(let _0x2ce49e=0x0;_0x2ce49e<_0x49725f['length'];_0x2ce49e++){const _0x47f941=_0x49725f[_0x2ce49e-0x1]||null;_0x49725f[_0x2ce49e]['previous']!==_0x47f941&&(_0x49725f[_0x2ce49e]['previous']=_0x47f941);}function _0x1bde7d(_0x23ddf4,_0x3a6e76){if(_0x23ddf4[0x0]['attributes']['groupId']!==_0x3a6e76[0x0]['attributes']['groupId']&&_0x23ddf4[0x0]['author']!==_0x3a6e76[0x0]['author'])return!0x1;if(!function(_0x507642,_0x3db867){if(!_0x507642['hasComments']&&!_0x3db867['hasComments'])return!0x0;if(_0x507642['hasComments']&&_0x3db867['hasComments'])return!0x1;if(_0x507642['hasComments']&&_0x3db867['createdAt']<_0x507642['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3db867['hasComments']&&_0x507642['createdAt']<_0x3db867['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x23ddf4[0x0],_0x3a6e76[0x0]))return!0x1;const _0xe93a76=Vt(_0x23ddf4[0x0]['attributes'],'groupId'),_0x2fa1c7=Vt(_0x3a6e76[0x0]['attributes'],'groupId');if(!_0x549bfd(_0xe93a76,_0x2fa1c7))return!0x1;return!!_0x23ddf4['every'](_0x2a42cd=>_0x3a6e76['some'](_0x5bb044=>_0x2a42cd['getFirstRange']()['isEqual'](_0x5bb044['getFirstRange']())))&&_0x3a6e76['every'](_0x46e8d8=>_0x23ddf4['some'](_0x1a8cdf=>_0x46e8d8['getFirstRange']()['isEqual'](_0x1a8cdf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x49af06){const _0x5dd002=Array['from'](_0x49af06),_0x259fbb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3c6944=_0x259fbb['filter'](_0x4548a7=>!_0x49af06['has'](_0x4548a7)),_0x1099fe=new Map(_0x5dd002['map'](_0x474b67=>[_0x474b67,this['_suggestionFactory']['getSuggestionCallback'](_0x474b67['type'],_0x474b67['subType'],'join')])),_0x40f764=new Map(_0x259fbb['map'](_0x45048f=>[_0x45048f,_0x45048f['getRanges']()]));for(let _0x13080d=0x0;_0x13080d<_0x5dd002['length'];_0x13080d++){if(_0x432728(this,_0x5dd002[_0x13080d],_0x5dd002,_0x13080d+0x1))return!0x0;}for(let _0x2a0b93=0x0;_0x2a0b93<_0x5dd002['length'];_0x2a0b93++){if(_0x432728(this,_0x5dd002[_0x2a0b93],_0x3c6944,0x0))return!0x0;}return!0x1;function _0x432728(_0x2385d5,_0x170148,_0x1f54dd,_0x25f33f){for(let _0x2ae8bc=_0x25f33f;_0x2ae8bc<_0x1f54dd['length'];_0x2ae8bc++){const _0x15a6a9=_0x1f54dd[_0x2ae8bc];if(_0x15a6a9['type']!==_0x170148['type']||_0x15a6a9['author']['id']!==_0x170148['author']['id']||_0x15a6a9['subType']!==_0x170148['subType'])continue;if(!Wt(_0x170148,_0x15a6a9))continue;if('attribute'==_0x170148['type']&&_0x170148['data']['oldValue']!=_0x15a6a9['data']['oldValue'])continue;if('attribute'==_0x170148['type']&&_0x2385d5['_isBlockAttribute'](_0x170148['data']['key']))continue;if('formatBlock'==_0x170148['type']){const _0x37702c=_0x2385d5['editor']['model'],_0x1d6cc9=_0x170148['getContainedElement']();if(_0x1d6cc9&&(_0x37702c['schema']['isObject'](_0x1d6cc9)||_0x37702c['schema']['isLimit'](_0x1d6cc9)))continue;}const _0x5b8d4e=_0x1099fe['get'](_0x170148),_0x483810=_0x40f764['get'](_0x170148),_0x3bbcb6=_0x40f764['get'](_0x15a6a9),_0x43a665=_0x170148['commentThread']&&_0x170148['commentThread']['length'],_0x322a17=_0x15a6a9['commentThread']&&_0x15a6a9['commentThread']['length'];if(!_0x43a665&&_0x5b8d4e(_0x3bbcb6,_0x483810))return _0x2385d5['_joinSuggestions'](_0x15a6a9,_0x170148),_0x40f764['delete'](_0x170148),!0x0;if(!_0x322a17&&_0x5b8d4e(_0x483810,_0x3bbcb6))return _0x2385d5['_joinSuggestions'](_0x170148,_0x15a6a9),_0x40f764['delete'](_0x15a6a9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2ba3d3,_0x2894ad){if(_0x2ba3d3['isMultiRange']){for(const _0x4a4d6f of _0x2894ad['getRanges']())_0x2ba3d3['addRange'](_0x4a4d6f);}else{const _0x51cabf=_0x2894ad['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2ba3d3,this['_model']['createRange'](_0x2ba3d3['getFirstRange']()['start'],_0x51cabf));}_0x2894ad['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1af1c1,_0x34dba4,_0x513064){const _0x18c622=_0x1af1c1['startsWith']('format')||_0x1af1c1['startsWith']('attribute')?'FORMATTING':_0x1af1c1['toUpperCase']();return o(this['editor']['locale'],_0x34dba4+'_'+_0x18c622+'_SUGGESTION_ANNOUNCEMENT',_0x513064);}['_initAriaMarkerChangeAnnouncements'](){const _0x1cd988=this['editor'];if(!_0x1cd988['ui'])return;const {ariaLiveAnnouncer:_0x2b79b0}=_0x1cd988['ui'];_0x141f07(this['_model'],({left:_0x3e08f3,entered:_0x4826d8})=>{for(const _0x521682 of _0x3e08f3){const {group:_0x353353,type:_0x2ac420}=this['_splitMarkerName'](_0x521682['name']);if('suggestion'===_0x353353){_0x2b79b0['announce'](this['_getMarkerAnnouncementText'](_0x2ac420,'LEAVE'));break;}}for(const _0x3566ab of _0x4826d8){const {group:_0x4cfccb,type:_0x20bcff}=this['_splitMarkerName'](_0x3566ab['name']);if('suggestion'===_0x4cfccb){_0x2b79b0['announce'](this['_getMarkerAnnouncementText'](_0x20bcff,'ENTER',_0x2a3ca7(_0x53f401)));break;}}});}['_processAttributeChanges'](_0x29963f){if(this['_recordAttributeSuggestions'])return!0x1;const _0xa55ef6=this['editor'],_0x54f290=_0xa55ef6['model']['document']['differ']['getChanges']();if(0x0==_0x54f290['length'])return!0x1;const _0x56e5a0=[],_0x2e4bfe=_0x54f290['filter'](_0x50592c=>'attribute'==_0x50592c['type']),_0x1038a5=_0x54f290['filter'](_0x3f835d=>'insert'==_0x3f835d['type']&&'$text'!=_0x3f835d['name']),_0x14ac2f=_0x54f290['filter'](_0x3486b9=>'remove'==_0x3486b9['type']&&'$text'!=_0x3486b9['name']);for(const _0x1e2d4c of _0x2e4bfe)_0x56e5a0['push']({'key':_0x1e2d4c['attributeKey'],'newValue':_0x1e2d4c['attributeNewValue'],'oldValue':_0x1e2d4c['attributeOldValue'],'range':qt(_0x1e2d4c['range'],_0xa55ef6['model'])});for(const _0x496499 of _0x1038a5){const _0x5ddfe3=_0x14ac2f['find'](_0x42748f=>_0x42748f['position']['isEqual'](_0x496499['position']));_0x5ddfe3&&_0x56e5a0['push']({'key':m,'newValue':_0x496499['name'],'oldValue':_0x5ddfe3['name'],'range':_0xa55ef6['model']['createRangeOn'](_0x496499['position']['nodeAfter'])});}return 0x0!=_0x56e5a0['length']&&this['_reduceExistingSuggestions'](_0x29963f,_0x56e5a0);}['_processAttributeSuggestions'](_0x13f7fb){let _0x1fdbc4=!0x1;const _0x5011e1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x618f4a=>_0x618f4a['data']['newRange']&&_0x618f4a['name']['startsWith']('suggestion:attribute:'));for(const _0x595560 of _0x5011e1){const {subType:_0x5ab1e1,id:_0x4a2dc1}=this['_splitMarkerName'](_0x595560['name']),_0x1bec80=_0x5ab1e1['split']('|')[0x0];for(const _0x3f7a95 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3f7a95['id']!=_0x4a2dc1&&'attribute'==_0x3f7a95['type']&&_0x3f7a95['data']&&_0x3f7a95['data']['key']==_0x1bec80&&_0x3f7a95['getFirstRange']()['isIntersecting'](_0x595560['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3f7a95,_0x595560['data']['newRange'],_0x13f7fb),_0x1fdbc4=!0x0);}return _0x1fdbc4;}['_recordAttributeChanges'](_0x6e189a){this['_recordAttributeSuggestions']=!0x0,_0x6e189a();}['_isRegisteredAttribute'](_0x512a4f){const _0x52ea88=this['_isBlockAttribute'](_0x512a4f),_0x37b873=this['_inlineAttributeKeys']['has'](_0x512a4f);return _0x52ea88||_0x37b873;}['_reduceExistingSuggestions'](_0x462993,_0x154b33){if(0x0==_0x154b33['length'])return!0x1;let _0x237bd6=!0x1;for(const _0x2b2ce4 of _0x154b33){const _0x27452b=this['_findSuggestions'](_0x2b2ce4['range'],'attribute')['filter'](_0x21f3c7=>!_0x21f3c7['meta']['isNextTo'])['map'](_0x1b3bb1=>_0x1b3bb1['suggestion']),_0x3f3a5a=_0xe0c89d({'newValue':_0x2b2ce4['newValue']});_0x27452b['filter'](_0x2719b6=>{const [_0x1d7d7c,_0x57ef21]=_0x2719b6['subType']['split']('|');return _0x1d7d7c==_0x2b2ce4['key']&&_0x57ef21!=_0x3f3a5a;})['forEach'](_0x5acfe9=>{this['_reduceSuggestionAttributeRange'](_0x5acfe9,_0x2b2ce4['range'],_0x462993),_0x237bd6=!0x0;});}return _0x237bd6;}['_reduceSuggestionAttributeRange'](_0x167ebe,_0x4f69bb,_0x102a1a){const _0x4104e8=_0x167ebe['getFirstRange']()['getDifference'](_0x4f69bb);0x0!==_0x4104e8['length']?0x1!==_0x4104e8['length']?this['_breakSuggestionMarker'](_0x167ebe,_0x4f69bb['start'],_0x4f69bb['end']):this['_setSuggestionRange'](_0x167ebe,_0x4104e8[0x0]):_0x102a1a['removeMarker'](_0x167ebe['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x273fbd){this['_editor']=_0x273fbd,this['_model']=_0x273fbd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3cf5b0,_0x2816ea,_0x3eb72d,_0x3656d4,_0x377e07,_0x51653a){return new u(this['_model'],{'type':_0x3cf5b0,'subType':_0x2816ea,'id':_0x3eb72d,'author':_0x3656d4,'creator':_0x3656d4,'attributes':_0x377e07,'onAttributesChange':_0x51653a,'onAccept':(..._0x32f4dd)=>this['getSuggestionCallback'](_0x3cf5b0,_0x2816ea,'accept')(..._0x32f4dd),'onDiscard':(..._0x1479be)=>this['getSuggestionCallback'](_0x3cf5b0,_0x2816ea,'discard')(..._0x1479be)});}['registerCustomCallback'](_0x2f1b32,_0x21b23e,_0x364cc5,_0x59abb1){const _0x4fe6f0=_0x2f1b32+':'+_0x21b23e+':'+_0x364cc5;this['_customCallbacks']['set'](_0x4fe6f0,_0x59abb1);}['getSuggestionCallback'](_0x2cfcbe,_0x343e1b,_0x40a5cd){const _0x1f364c=_0x2cfcbe+':'+_0x343e1b+':'+_0x40a5cd;return this['_customCallbacks']['get'](_0x1f364c)||this['_defaultCallbacks']['get'](_0x2cfcbe+':'+_0x40a5cd);}['_registerDefaultCallbacks'](){const _0x1be122=()=>!0x1,_0x35f3c9=_0xce46c5=>{_0xce46c5['sort']((_0x162eb0,_0x13a7d0)=>_0x162eb0['start']['isBefore'](_0x13a7d0['start'])?0x1:-0x1),this['_model']['change'](_0x31781f=>{for(const _0x29f841 of _0xce46c5){let _0x44b0b1;_0x44b0b1=_0x29f841['end']['isAtEnd']&&_0x29f841['end']['parent']==_0x29f841['start']['nodeAfter']?_0x31781f['createSelection'](_0x29f841['start']['nodeAfter'],'on'):_0x31781f['createSelection'](_0x29f841),this['_model']['deleteContent'](_0x44b0b1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf02895=(_0x2a42d1,_0x27cc78)=>{_0x27cc78&&this['_model']['change'](_0x294de0=>{const {commandName:_0x1aa812,commandParams:_0x4d341f=[]}=_0x27cc78,_0x37c2f7=_0x2a42d1['map'](_0x5d0bd2=>(Ft(_0x5d0bd2)&&(_0x5d0bd2=this['_model']['createRange'](_0x5d0bd2['end'])),_0x5d0bd2))['filter'](_0x3d95b4=>'$graveyard'!==_0x3d95b4['root']['rootName']);if(_0x37c2f7['length']<0x1)return;const _0x3de2ad=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5229b1=>_0x36d42c['fromRange'](_0x5229b1));_0x294de0['setSelection'](_0x37c2f7);for(const _0x51949d of this['_editor']['commands']['commands']())_0x51949d['refresh']();_0x4d341f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1aa812,..._0x4d341f);const _0x113790=_0x3de2ad['filter'](_0x9cbb65=>'$graveyard'!=_0x9cbb65['root']['rootName']);_0x113790['length']>0x0&&_0x294de0['setSelection'](_0x113790);for(const _0x55e4a9 of _0x3de2ad)_0x55e4a9['detach']();});},_0x285fa1=(_0x136835,_0x5ef3e3)=>0x1==_0x136835['length']&&0x1==_0x5ef3e3['length']&&_0x136835[0x0]['end']['isEqual'](_0x5ef3e3[0x0]['start']),_0x498a1a=(_0x1cb937,_0x33896b,_0x287941,_0x58abb7)=>Kt(_0x1cb937,_0x33896b,_0x287941,_0x58abb7)?[_0x1cb937,_0x33896b]:Kt(_0x33896b,_0x1cb937,_0x58abb7,_0x287941)?[_0x33896b,_0x1cb937]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1be122),this['_defaultCallbacks']['set']('insertion:discard',_0x35f3c9),this['_defaultCallbacks']['set']('insertion:join',_0x285fa1),this['_defaultCallbacks']['set']('insertion:chain',_0x498a1a),this['_defaultCallbacks']['set']('deletion:accept',_0x35f3c9),this['_defaultCallbacks']['set']('deletion:discard',_0x1be122),this['_defaultCallbacks']['set']('deletion:join',_0x285fa1),this['_defaultCallbacks']['set']('deletion:chain',_0x498a1a),this['_defaultCallbacks']['set']('formatInline:accept',_0xf02895),this['_defaultCallbacks']['set']('formatInline:discard',_0x1be122),this['_defaultCallbacks']['set']('formatInline:join',_0x285fa1),this['_defaultCallbacks']['set']('formatInline:chain',_0x1be122),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf02895),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1be122),this['_defaultCallbacks']['set']('formatBlock:join',_0x285fa1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1be122),this['_defaultCallbacks']['set']('attribute:accept',_0x1be122),this['_defaultCallbacks']['set']('attribute:discard',(_0x369e9a,_0x5a13e7)=>{if(!_0x5a13e7)return;const _0x3de74c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x48015e=>{if(_0x5a13e7['key']==m)for(const _0x41b569 of _0x369e9a){const _0x500012=_0x41b569['start']['nodeAfter'],_0x3c0c2a=_0x5a13e7['oldValue'];_0x48015e['rename'](_0x500012,_0x3c0c2a);}else{if(_0x3de74c['_isBlockAttribute'](_0x5a13e7['key'])){for(const _0x4f1d5c of _0x369e9a)void 0x0!==_0x5a13e7['oldValue']?_0x48015e['setAttribute'](_0x5a13e7['key'],_0x5a13e7['oldValue'],_0x4f1d5c['start']['nodeAfter']):_0x48015e['removeAttribute'](_0x5a13e7['key'],_0x4f1d5c['start']['nodeAfter']);}else{for(const _0x1a7e13 of _0x369e9a)_0x5a13e7['oldValue']?_0x48015e['setAttribute'](_0x5a13e7['key'],_0x5a13e7['oldValue'],_0x1a7e13):_0x48015e['removeAttribute'](_0x5a13e7['key'],_0x1a7e13);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x285fa1);}}function Gt(_0x4206db,_0x4f8aec,_0x4170b0){for(const _0x21cb24 of _0x4f8aec['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x21cb24['root']==_0x21cb24)return!0x1;if(!_0x4170b0['containsItem'](_0x21cb24))return!0x1;if(_0x4206db['isObject'](_0x21cb24)||_0x4206db['isLimit'](_0x21cb24))return!0x0;}return!0x1;}function Ft(_0x1ffb24){return _0x1ffb24['end']['parent']==_0x1ffb24['start']['nodeAfter']&&_0x1ffb24['end']['isAtStart'];}function Lt(_0x5e5b3e,_0x2ae94a,_0x16fec5,_0x169421){const _0x51555d=_0x294566=>!_0x294566['item']['is']('$textProxy')&&!_0x169421['isObject'](_0x294566['item']),_0x774518=_0x5e5b3e['start']['getLastMatchingPosition'](_0x51555d),_0x501f0a=_0x5e5b3e['end']['getLastMatchingPosition'](_0x51555d,{'direction':'backward'});return(!_0x5e5b3e['start']['isEqual'](_0x774518)||!_0x5e5b3e['end']['isEqual'](_0x501f0a))&&(_0x774518['isBefore'](_0x501f0a)?_0x16fec5['updateMarker'](_0x2ae94a,{'range':_0x16fec5['createRange'](_0x774518,_0x501f0a)}):_0x16fec5['removeMarker'](_0x2ae94a),!0x0);}function Jt(_0x1eacf1){return _0xe0c89d(_0x1eacf1);}function Ht(_0x7fe5cf){const _0x4013b5=_0x7fe5cf['start']['nodeAfter'];return _0x4013b5&&_0x4013b5['is']('element');}function qt(_0x53af40,_0x1e25dc){return null==_0x53af40['end']['nodeBefore']&&_0x53af40['end']['parent']==_0x53af40['start']['nodeAfter']?zt(_0x53af40['start']['nodeAfter'],_0x1e25dc):_0x53af40;}function zt(_0x12b4d7,_0x5745a4){const _0x335f8a=_0x5745a4['schema']['isObject'](_0x12b4d7)||_0x5745a4['schema']['isSelectable'](_0x12b4d7);return _0x5745a4['createRange'](_0x5745a4['createPositionAt'](_0x12b4d7,'before'),_0x335f8a?_0x5745a4['createPositionAfter'](_0x12b4d7):_0x5745a4['createPositionAt'](_0x12b4d7,'end'));}function Kt(_0x222258,_0x4c0433,_0x49346c,_0x2a4135){return!!Wt(_0x222258,_0x4c0433)&&_0x49346c['end']['isEqual'](_0x2a4135['start']);}function Wt(_0x584b29,_0x425c2d){if(!_0x584b29['_isDataLoaded']||!_0x425c2d['_isDataLoaded'])return!0x1;const _0xe2ddc=new Set(Object['keys'](_0x584b29['attributes'])),_0x1fd791=new Set(Object['keys'](_0x425c2d['attributes']));if(_0xe2ddc['delete']('groupId'),_0x1fd791['delete']('groupId'),0x0==_0xe2ddc['size']&&0x0==_0x1fd791['size'])return!0x0;if(_0xe2ddc['size']!=_0x1fd791['size'])return!0x1;const _0x191cf8={..._0x584b29['attributes']},_0x35d3d6={..._0x425c2d['attributes']};return delete _0x191cf8['groupId'],delete _0x35d3d6['groupId'],JSON['stringify'](_0x191cf8)==JSON['stringify'](_0x35d3d6);}function Qt(_0x2cf009,_0x3f4688){const _0xca7905=Xt(_0x2cf009['attributes']),_0xaa61bd=Xt(_0x3f4688);if(!_0x2cf009['_isDataLoaded'])return!0x1;for(const _0x52e13d of Object['keys'](_0xaa61bd))if(!_0x549bfd(_0xca7905[_0x52e13d],_0xaa61bd[_0x52e13d]))return!0x1;return!0x0;}function Xt(_0x20255f){const _0x47fe22=Object['assign']({},_0x20255f);return delete _0x47fe22['skipNestingCheck'],delete _0x47fe22['tablePasteChainId'],_0x47fe22;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xba2e47(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xc49476,_0x2fdf9e,_0x49e545,_0x16a5eb){super(),this['model']=_0x2fdf9e,this['view']=_0x49e545,this['commentThreadController']=_0x16a5eb,this['_editor']=_0xc49476,this['_acceptCommand']=_0xc49476['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xc49476['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2bc0ac,_0x4f7f16)=>_0x2bc0ac||_0x4f7f16),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x49a7aa=>_0x49a7aa&&this['_editor']['model']['canEditAt'](_0x2fdf9e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cc720=>_0x1cc720&&this['_editor']['model']['canEditAt'](_0x2fdf9e['getRanges']())),this['_pendingAction']=null,_0x49e545['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x49e545,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x49e545,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x49e545,'change:isDirty',()=>{_0x49e545['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 _0x35e5aa=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35e5aa);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x2cfe10{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5b28f9,_0x327ea6,_0x58a2d0,_0xe1e08){super(_0x5b28f9),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3ee2f0(_0x5b28f9,o(_0x5b28f9,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x327ea6['authoredAt']),this['bind']('authoredAt')['to'](_0x327ea6),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',_0x327ea6,'authoredAt',this,'descriptionParts',(_0x4b491f,_0x536d54,_0x22fd6e)=>{const _0x10b4ae=_0x22fd6e['map'](_0x52b974=>cs(_0x52b974['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4b491f-0x1,_0x327ea6['author']['name'],_0x536d54?_0xe1e08['formatDateTime'](_0x536d54):'',new DOMParser()['parseFromString'](_0x10b4ae,'text/html')['body']['textContent']]);}),this['focusables']=new _0x464e6a(),this['focusTracker']=new _0x4d988c(),this['keystrokes']=new _0x1a7c71(),this['focusCycler']=new _0x4f7572({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x322de3=>_0x322de3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x327ea6,this['_localUser']=_0x58a2d0,this['_config']=_0xe1e08,_0xe1e08['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1eca02(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3193b6}=this['_config'];this['commentsListView']=new _0x3193b6(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',_0x384293=>_0x384293+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3a8248,_0x249a44)=>_0x3a8248||!!_0x249a44);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x555325}=this['_config'],_0x22373a=new _0x555325(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x29fbc2=_0x22373a['commentInputView'];return _0x22373a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x29fbc2,'value',(_0x114a83,_0x5f5368,_0x3e08ea)=>!!_0x3e08ea||_0x114a83&&!_0x5f5368),_0x29fbc2['on']('submit',(_0x532664,_0x2bcc52)=>{this['fire']('addComment',_0x2bcc52),_0x29fbc2['editor']['setData']('');}),_0x29fbc2['on']('cancel',()=>this['focus']()),_0x29fbc2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x22373a;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x55abcf,_0x5915ff,_0x1b266d,_0x14545c){super(_0x55abcf,_0x5915ff,_0x1b266d,_0x14545c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x50d886=>_0x50d886&&_0x50d886[0x0]?_0x50d886[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x11c5eb,_0x59446c)=>{let _0x5a5a07='';for(const _0x4b0fb2 of _0x11c5eb)_0x5a5a07+='<p>'+cs(_0x4b0fb2['content'],_0x4b0fb2['color'])+'</p>';return _0x59446c?_0x5a5a07:_0x50119c(_0x5a5a07,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x14545c['SuggestionView'](_0x55abcf,_0x5915ff,{'formatDateTime':_0x14545c['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 _0x2f816f=this['bindTemplate'],_0x4233da=[this['suggestionView']];return this['commentsListView']&&_0x4233da['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4233da['push'](this['commentThreadInputView']),_0x4233da['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2f816f['if']('isActive','ck-suggestion-wrapper--active'),_0x2f816f['to']('type',_0x5c1d03=>'ck-suggestion-'+_0x5c1d03),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':_0x2f816f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4233da};}['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 fe extends _0x2cfe10{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4c4f05,_0x5a5216,_0x42870d){super(_0x4c4f05),this['_model']=_0x5a5216,this['_config']=_0x42870d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5a5216),this['acceptButton']=this['_createButton'](o(_0x4c4f05,'Accept\x20suggestion'),_0x4b24fb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4c4f05,'Discard\x20suggestion'),_0x4b24fb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4d22d6(_0x4c4f05,_0x5a5216['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x464e6a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d988c(),this['keystrokes']=new _0x1a7c71(),this['focusCycler']=new _0x4f7572({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c2ade=>_0x3c2ade['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2b0071=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2b0071['innerHTML']=this['description'],this['on']('change:description',(_0x4ba742,_0x149486,_0x19f306)=>{_0x2b0071['innerHTML']=_0x19f306;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4826d5=this['bindTemplate'],_0x56c9d1=[{'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':_0x4826d5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4826d5['to']('authoredAt',_0x597e9c=>this['_config']['formatDateTime'](_0x597e9c))}]}]},{'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']&&_0x56c9d1['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':_0x56c9d1}]};}['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'](_0xbebd10,_0x4bc193,_0x3376e0,_0x465985,_0x7a1d16){const _0x54c96f=new _0x2ece0f(this['locale']);return _0x54c96f['set']({'label':_0xbebd10,'icon':_0x4bc193,'tooltip':!0x0,'tooltipPosition':_0x7a1d16}),_0x54c96f['extendTemplate']({'attributes':{'class':_0x3376e0}}),_0x54c96f['on']('execute',()=>{this['fire'](_0x465985,this['_model']['id']);}),_0x54c96f;}['_setupKeyboardNavigation'](){const _0x137b37=this['element'];this['keystrokes']['listenTo'](_0x137b37);for(const _0xc2e8cd of this['focusables'])this['focusTracker']['add'](_0xc2e8cd['element']),this['keystrokes']['listenTo'](_0xc2e8cd['element']);this['keystrokes']['set']('enter',(_0x54275f,_0x3c0eba)=>{_0x137b37===_0x54275f['target']&&(this['focusCycler']['focusFirst'](),_0x3c0eba());}),this['keystrokes']['set']('esc',(_0xb1a8d8,_0x55ea97)=>{_0x137b37!==_0xb1a8d8['target']&&(this['focus'](),_0x55ea97());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x6a3ec8{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4ea5c3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12201e){super(_0x12201e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x57d9bb=this['editor']['config'];_0x57d9bb['define']('trackChanges.SuggestionThreadView',pe),_0x57d9bb['define']('trackChanges.SuggestionView',fe),_0x57d9bb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x57d9bb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3b04d1,_0x5eb2e4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44a94e,_0xc55256]of this['_handleControllerBuffer']){const _0x183ba0=this['_suggestionToController']['has'](_0x44a94e);_0x183ba0||_0xc55256?_0x183ba0&&_0xc55256&&this['_destroyController'](_0x44a94e):this['_initializeController'](_0x44a94e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3b04d1,_0x5eb2e4);}['init'](){const _0x3f4c99=this['editor'],_0x53b630=_0x3f4c99['plugins']['get']('TrackChangesEditing'),_0x2d8420=_0x3f4c99['plugins']['get']('Annotations'),_0x2d290a=_0x3f4c99['plugins']['get']('EditorAnnotations'),_0x2a5da8=_0x3f4c99['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2d290a['addSourceCollector'](()=>{const _0x49a0ad=[];for(const [_0x26da8a,_0x66adaf]of Array['from'](this['_suggestionToController'])){const _0x53961f=_0x26da8a['getAllAdjacentSuggestions'](),_0x431ec2=[];for(const _0x36718f of _0x53961f){if(!_0x36718f['isInContent'])continue;if(_0x36718f['isMultiRange']){_0x431ec2['push'](..._0x36718f['getRanges']());continue;}const _0x10a2c8=_0x36718f['getFirstRange']();if(_0x431ec2['length']>0x0){const _0x4afa97=_0x431ec2[0x0]['getJoined'](_0x10a2c8);if(_0x4afa97){_0x431ec2[0x0]=_0x4afa97;continue;}}_0x431ec2['push'](_0x10a2c8);}_0x49a0ad['push']([_0x66adaf['view'],_0x431ec2]);}return _0x49a0ad;}),this['listenTo'](_0x53b630,'suggestionLoaded',(_0x2ea7c2,_0x4ddd43)=>{this['listenTo'](_0x4ddd43,'change:previous',(_0x137e97,_0x275e67,_0x4bd375,_0x107544)=>{_0x4ddd43['isInContent']&&(null==_0x4bd375?(this['_updateController'](_0x107544['head']),this['_handleSuggestionControllerDelayed'](_0x4ddd43,!0x1)):(this['_updateController'](_0x4bd375['head']),null==_0x107544&&this['_handleSuggestionControllerDelayed'](_0x4ddd43,!0x0)));}),null!==_0x4ddd43['previous']?this['_updateController'](_0x4ddd43['head']):this['_handleSuggestionControllerDelayed'](_0x4ddd43,!0x1);}),this['listenTo'](_0x53b630,'suggestionUnloaded',(_0x3ff850,_0x1d581a,_0x57e5a8)=>{this['stopListening'](_0x1d581a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1d581a),this['_suggestionToController']['has'](_0x1d581a)&&this['_destroyController'](_0x1d581a),_0x57e5a8&&this['_updateController'](_0x57e5a8['head']);}),this['listenTo'](_0x53b630,'suggestionChanged',(_0x5f1f02,_0x8cb75f)=>{this['_updateController'](_0x8cb75f);}),this['listenTo'](_0x2d8420,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a5da8,'addComment',(_0x167294,{threadId:_0x56da0a,isFromAdapter:_0x89385d})=>{if(_0x89385d||!_0x53b630['hasSuggestion'](_0x56da0a))return;const _0x5731a0=_0x53b630['getSuggestion'](_0x56da0a);this['_suggestionToController']['get'](_0x5731a0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b5462=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13c6df;for(const _0xec5423 in _0x1b5462){const _0x101ca0=_0xec5423,_0xae2ebd=_0x1b5462[_0x101ca0];if('trackChangesLicenseKeyValid'==_0xae2ebd||'trackChangesLicenseKeyInvalid'==_0xae2ebd||'trackChangesLicenseKeyExpired'==_0xae2ebd||'trackChangesLicenseKeyDomainLimit'==_0xae2ebd||'trackChangesLicenseKeyNotAllowed'==_0xae2ebd||'trackChangesLicenseKeyEvaluationLimit'==_0xae2ebd||'trackChangesLicenseKeyTrialLimit'==_0xae2ebd||'trackChangesLicenseKeyUsageLimit'==_0xae2ebd){delete _0x1b5462[_0x101ca0],_0x13c6df=_0xae2ebd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x13c6df&&_0x1b5462['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x13c6df&&_0x1b5462['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x13c6df&&_0x1b5462['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x13c6df&&_0x1b5462['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x13c6df&&_0x1b5462['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x13c6df&&_0x1b5462['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x13c6df&&_0x1b5462['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x30fe04=this['editor']['plugins']['get']('Annotations'),_0x3e06ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ec25f=Array['from'](_0x30fe04['activeAnnotations'],_0x1e4b71=>_0x1e4b71['innerView'])['filter'](_0x51ede4=>this['_viewToController']['has'](_0x51ede4)),_0x44cf4e=[];for(const _0x7c74b2 of _0x2ec25f){const _0x5b9fd4=this['_viewToController']['get'](_0x7c74b2)['model']['getAllAdjacentSuggestions']();_0x44cf4e['push'](..._0x5b9fd4['reduce']((_0x4a91e5,_0x59a304)=>[..._0x4a91e5,..._0x59a304['getMarkerNames']()],[]));}_0x3e06ee['activeMarkers']=_0x44cf4e;}['_addUIComponentsToFactory'](){const _0x4ccb51=this['editor'],_0x438ae3=_0x4ccb51['locale'],_0x96dc20=o(_0x438ae3,'Track\x20changes'),_0xa4a6c3=new _0x22187e([{'type':'switchbutton','model':new _0x51bf2b({'withText':!0x0,'isToggleable':!0x0,'label':_0x96dc20,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x51bf2b({'withText':!0x0,'label':o(_0x438ae3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51bf2b({'withText':!0x0,'label':o(_0x438ae3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51bf2b({'withText':!0x0,'label':o(_0x438ae3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51bf2b({'withText':!0x0,'label':o(_0x438ae3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4ccb51['plugins']['has']('TrackChangesPreview')&&_0xa4a6c3['addMany']([{'type':'separator'},{'type':'button','model':new _0x51bf2b({'withText':!0x0,'label':o(_0x438ae3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2bdaba of _0xa4a6c3)if(ke(_0x2bdaba)){const _0x182087=_0x4ccb51['commands']['get'](_0x2bdaba['model']['commandName']);_0x2bdaba['model']['bind']('isOn','isEnabled')['to'](_0x182087,'value','isEnabled');}_0x4ccb51['ui']['componentFactory']['add']('trackChanges',_0x4d46e1=>this['_createToolbarButton'](_0x4d46e1,_0xa4a6c3,_0x96dc20)),_0x4ccb51['ui']['componentFactory']['add']('menuBar:trackChanges',_0xdfbd0=>this['_createMenuBarMenu'](_0xdfbd0,_0xa4a6c3,_0x96dc20));}['_createToolbarButton'](_0x19f5ae,_0x42a084,_0xf72d7b){const _0x38ce90=_0x386ba0(_0x19f5ae,_0x52d343),_0x10550e=this['editor']['commands']['get']('trackChanges');_0x38ce90['buttonView']['set']({'tooltip':_0xf72d7b,'label':_0xf72d7b,'icon':we}),_0x38ce90['buttonView']['bind']('isOn')['to'](_0x10550e,'value'),_0x38ce90['buttonView']['on']('execute',()=>{_0x10550e['execute'](),this['editor']['editing']['view']['focus']();}),_0x598724(_0x38ce90,_0x42a084,{'role':'menu'});const _0x11d47b=[];for(const _0x4c98f8 of _0x42a084)ke(_0x4c98f8)&&_0x11d47b['push'](this['editor']['commands']['get'](_0x4c98f8['model']['commandName']));const _0x5bc0e0=_0x38ce90['buttonView'];return _0x5bc0e0['actionView']['unbind']('isEnabled'),_0x5bc0e0['arrowView']['unbind']('isEnabled'),_0x5bc0e0['actionView']['bind']('isEnabled')['to'](_0x10550e,'isEnabled'),_0x5bc0e0['arrowView']['bind']('isEnabled')['toMany'](_0x11d47b,'isEnabled',(..._0x58c725)=>_0x58c725['some'](_0x3aee22=>_0x3aee22)),_0x38ce90['on']('execute',_0xe2d0f2=>{this['editor']['execute'](_0xe2d0f2['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x38ce90;}['_createMenuBarMenu'](_0x24ef0a,_0x2ae8ce,_0x100152){const _0xeb5833=new _0x2a1817(_0x24ef0a),_0x27b38a=this['editor']['commands']['get']('trackChanges');_0xeb5833['buttonView']['set']({'label':_0x100152,'icon':we});const _0x2fab96=new _0x7c5054(_0x24ef0a);for(const _0x55cc5b of _0x2ae8ce){if('separator'==_0x55cc5b['type']){_0x2fab96['items']['add'](new _0x244709(_0x24ef0a));continue;}const _0x420582=new _0x9e551e(_0x24ef0a,_0xeb5833),_0x187a9c=new _0xce26ad(_0x24ef0a),_0xebaea3=_0x55cc5b['model'];_0x187a9c['bind'](...Object['keys'](_0xebaea3))['to'](_0xebaea3),_0x187a9c['delegate']('execute')['to'](_0xeb5833),_0x187a9c['on']('execute',()=>{this['editor']['execute'](_0xebaea3['commandName']),this['editor']['editing']['view']['focus']();}),_0x420582['children']['add'](_0x187a9c),_0x2fab96['items']['add'](_0x420582);}return _0xeb5833['bind']('isEnabled')['to'](_0x27b38a,'isEnabled'),_0xeb5833['panelView']['children']['add'](_0x2fab96),_0xeb5833;}['_initializeController'](_0x20a6e1){const _0x19ca25=this['editor'],_0x428249=_0x19ca25['config'],_0x29914a=_0x19ca25['plugins']['get']('Annotations'),_0xa48f92=_0x19ca25['plugins']['get']('CommentsRepository'),_0x4e7e63=_0x19ca25['plugins']['get']('EditorAnnotations'),_0x4927cb=_0x19ca25['plugins']['get'](_0x4ea5c3)['me'],_0x4b2b6d=_0x428249['get']('trackChanges')['SuggestionThreadView'],_0x23af91=_0x428249['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x32e7b6,CommentThreadInputView:_0x332b1d}=_0x19ca25['plugins']['get']('CommentsUI');let _0x45eb44,_0x529375,_0x29aa75;this['_annotationViews']['has'](_0x20a6e1['id'])?(_0x529375=this['_annotationViews']['get'](_0x20a6e1['id']),_0x45eb44=_0x529375['mainView']):(_0x45eb44=new _0x4b2b6d(_0x19ca25['locale'],_0x20a6e1,_0x4927cb,{'disableComments':this['_disableComments'],'editorConfig':{..._0x428249['get']('comments.editorConfig'),'licenseKey':_0x428249['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x428249['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x428249['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x428249['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1fd6c7(_0x428249['get']('locale')),'CommentView':_0x428249['get']('comments')['CommentView'],'CommentsListView':_0x32e7b6,'CommentThreadInputView':_0x332b1d,'SuggestionView':_0x23af91}),_0x45eb44['suggestionView']['acceptButton']['on']('execute',()=>{_0x19ca25['editing']['view']['focus']();}),_0x45eb44['suggestionView']['discardButton']['on']('execute',()=>{_0x19ca25['editing']['view']['focus']();}),_0x529375=_0x29914a['createAnnotationView'](this['editor']['locale'],_0x45eb44),_0x529375['bind']('isDirty')['to'](_0x45eb44,'isDirty'),_0x529375['bind']('length')['to'](_0x45eb44),_0x529375['bind']('type')['to'](_0x45eb44,'type',_0x10c3c6=>'suggestion-'+_0x10c3c6),_0x45eb44['on']('escape',()=>{_0x29aa75['fire']('escape');}),this['_annotationViews']['set'](_0x20a6e1['id'],_0x529375));const _0x5606bc=_0xa48f92['createCommentThreadController'](_0x20a6e1['commentThread'],_0x45eb44),_0x198373=new Ce(_0x19ca25,_0x20a6e1,_0x45eb44,_0x5606bc),_0x5353ae=_0x20a6e1['getAllAdjacentSuggestions']()['filter'](_0x27237b=>_0x27237b['isInContent']);_0x45eb44['descriptionParts']=_0x19ca25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5353ae),this['_suggestionToController']['set'](_0x20a6e1,_0x198373),this['_viewToController']['set'](_0x45eb44,_0x198373),_0x29aa75=_0x29914a['createAnnotation']({'view':_0x529375,'target':()=>{const _0x170418=[],_0x3eddd9=_0x20a6e1['getAllAdjacentSuggestions']()['filter'](_0x219bfe=>_0x219bfe['isInContent']);for(const _0x4f91a4 of _0x3eddd9)_0x170418['push'](..._0x4f91a4['getMarkers']());return _0x43b79b(_0x19ca25['editing'],_0x170418);},'type':()=>'suggestion-'+_0x198373['view']['type']}),_0xa48f92['_bindAnnotationToEditors'](_0x45eb44,_0x29aa75),_0x29914a['add'](_0x29aa75),_0x4e7e63['registerAnnotation'](_0x29aa75);}['_destroyController'](_0x3cfe1a){const _0x10e875=this['editor']['plugins']['get']('CommentsRepository'),_0xbfab9d=this['editor']['plugins']['get']('Annotations'),_0x139583=this['_suggestionToController']['get'](_0x3cfe1a),_0x2098a6=_0x139583['view'],_0x277f8a=_0xbfab9d['getByInnerView'](_0x2098a6);_0x10e875['_unbindEditors'](_0x2098a6),_0x277f8a&&_0xbfab9d['remove'](_0x277f8a),this['_suggestionToController']['delete'](_0x3cfe1a),this['_viewToController']['delete'](_0x2098a6),_0x139583['destroy']();}['_updateController'](_0x3e7c24){if(!_0x3e7c24['isInContent']||!this['_suggestionToController']['has'](_0x3e7c24))return;const _0x253e24=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fbea1=this['_suggestionToController']['get'](_0x3e7c24),_0x369059=_0x3e7c24['getAllAdjacentSuggestions']();_0x2fbea1['view']['descriptionParts']=_0x253e24['descriptionFactory']['getDescriptions'](_0x369059);}['destroy'](){for(const _0x32814d of this['_suggestionToController']['keys']())this['_destroyController'](_0x32814d);for(const _0x162685 of this['_annotationViews']['values']())_0x162685['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x14bf9f){return'model'in _0x14bf9f;}class k extends _0x6a3ec8{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1c75a0){this['editor']['plugins']['get'](p)['adapter']=_0x1c75a0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x25fddb){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x25fddb);}['getSuggestions']({skipNotAttached:_0x23f282=!0x1,toJSON:_0x1c950e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x23f282,'toJSON':_0x1c950e});}['getSuggestion'](_0x7815a3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x7815a3);}}const w=['Pagination'];class T extends _0x6a3ec8{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ca398=this['editor'];if(_0x4ca398['config']['define']('trackChangesData.editorCreator',_0x475814=>{const _0x1a52c0=_0x4ca398['model']['document']['getRootNames']()['reduce']((_0x5473b1,_0x10ff36)=>(_0x5473b1[_0x10ff36]='',_0x5473b1),{});return _0x4ca398['constructor']['create'](_0x1a52c0,_0x475814);}),'function'!=typeof _0x4ca398['config']['get']('trackChangesData')['editorCreator'])throw new _0x523434('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1c145a){return N(this['editor'],!0x0,_0x1c145a);}['getDataWithDiscardedSuggestions'](_0x2421f3){return N(this['editor'],!0x1,_0x2421f3);}}class D extends _0x6a3ec8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d1197){function _0x2ab02d(_0xafc970){return _0xafc970['map'](_0x48e0a7=>String['fromCharCode'](_0x48e0a7))['join']('');}super(_0x4d1197),this['result']='end',_0x4d1197[_0x2ab02d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ab02d([0x76,0x69,0x65,0x77])][_0x2ab02d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ab02d([0x61,0x75,0x74,0x6f]),_0x4d1197[_0x2ab02d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2ab02d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ab02d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2ab02d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2ab02d([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 Fe(_0x4525ee){return void 0x0!==_0x4525ee['getRootsAttributes'];}async function N(_0x383687,_0x919490,_0x82213c){const _0x291bb5=_0x37f847(_0x383687,w);_0x291bb5['plugins']['push'](p,D),_0x291bb5['rootsAttributes']=Fe(_0x383687)?_0x383687['getRootsAttributes']():void 0x0;const _0x2dc4e0=document['createDocumentFragment'](),_0x17fb6f=_0x383687['config']['get']('trackChangesData')['editorCreator'],_0x3fc7b7=await _0x17fb6f(_0x291bb5,()=>function(_0x527af1){const _0x317511=document['createElement']('div');return _0x527af1['appendChild'](_0x317511),_0x317511;}(_0x2dc4e0));!function(_0x432b86,_0x57b2a7){const _0x45221d=_0x432b86['model']['document']['getRootNames']()['reduce']((_0x438c2e,_0x534d65)=>(_0x438c2e[_0x534d65]=_0x432b86['data']['get']({'rootName':_0x534d65}),_0x438c2e),{}),_0x5c8f1b=_0x432b86['plugins']['get']('Users')['users']['map'](_0x10548f=>({'id':_0x10548f['id'],'name':_0x10548f['name']})),_0x43b669=_0x432b86['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ea53a=_0x432b86['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3dfe52=_0x57b2a7['plugins']['get']('Users'),_0x1753c2=_0x57b2a7['plugins']['get']('TrackChangesEditing'),_0x150d45=_0x57b2a7['plugins']['get']('CommentsRepository');for(const _0x4d5bae of _0x150d45['getCommentThreads']())_0x4d5bae['remove']();for(const _0x382870 of _0x5c8f1b)_0x3dfe52['getUser'](_0x382870['id'])||_0x3dfe52['addUser'](_0x382870);_0x3dfe52['me']||_0x3dfe52['useAnonymousUser']();for(const _0x1a4794 of _0x1ea53a)_0x150d45['addCommentThread'](_0x1a4794);for(const _0x1c8461 of _0x43b669)_0x1753c2['addSuggestionData'](_0x1c8461);_0x57b2a7['data']['set'](_0x45221d);}(_0x383687,_0x3fc7b7),_0x3fc7b7['execute'](_0x919490?'acceptAllSuggestions':'discardAllSuggestions');const _0x52c9bc=Fe(_0x3fc7b7)?_0x3fc7b7['getFullData'](_0x82213c):_0x3fc7b7['data']['get'](_0x82213c);return await _0x3fc7b7['destroy'](),_0x52c9bc;}class Me extends _0x2cfe10{['options'];constructor(_0x208afb,_0x4fe72f){super(_0x208afb),this['options']=_0x4fe72f,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'](_0x5e5325,_0x59ab24){if(!this['element'])return;const _0x43f3b3=[];for(const [_0x565ea9,_0xba6a21]of _0x5e5325){const _0x10d7cc=document['createElement']('div');_0x10d7cc['setAttribute']('data-ck-root-name',_0x565ea9),_0x10d7cc['className']=_0xba6a21['classes']+'\x20ck-track-changes-preview__root-container',_0x10d7cc['innerHTML']=_0xba6a21['content'],_0x43f3b3['push'](_0x10d7cc);}_0x59ab24(this['element'],_0x43f3b3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x4aa979){super(_0x4aa979),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1d1418=this['editor'],_0x12fc17=_0x1d1418['locale'],_0x1bff61=_0x1d1418['plugins']['get']('Dialog');let _0x36e2df;const _0x4d80e9=function(_0x30a699){const _0x20183f={};if('editables'in _0x30a699['ui']['view']){for(const [_0x12e4f5,_0x3d4038]of Object['entries'](_0x30a699['ui']['view']['editables']))_0x20183f[_0x12e4f5]=_0x3d4038['element'];}else _0x20183f[_0x30a699['model']['document']['getRootNames']()[0x0]]=_0x30a699['ui']['view']['editable']['element'];return _0x20183f;}(_0x1d1418),_0x83ddd2=function(_0x20753f){let _0x1c4620=0x0;for(const _0x48f2e0 of Object['values'](_0x20753f))_0x1c4620=Math['max'](_0x1c4620,_0x48f2e0['getBoundingClientRect']()['width']);let _0x2985c8=0x0;for(const _0x1661bc of Object['values'](_0x20753f))_0x2985c8+=_0x1661bc['getBoundingClientRect']()['height'];const _0x7e5ffd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x351ff6=Math['min'](_0x2985c8,_0x7e5ffd);return{'width':_0x1c4620,'height':_0x351ff6};}(_0x4d80e9);_0x1bff61['show']({'id':'finalContentPreview','title':o(_0x12fc17,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x12fc17,{'dialogRects':_0x83ddd2}),'onHide':()=>{_0x36e2df['detachFromDom']();},'onShow':()=>{_0x1d1418['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x36549a=>{const _0x44eb4c=this['_standarizeRootsData'](_0x36549a,_0x1d1418,_0x4d80e9);_0x1bff61['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44eb4c,_0x1d1418['config']['get']('trackChanges.preview.renderFunction'));}),_0x36e2df=new _0x362513(_0x12fc17,[_0x1bff61['view']]),_0x36e2df['attachToDom'](),_0x36e2df['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1d1418['once']('destroy',()=>{_0x36e2df['detachFromDom']();});const _0x5bdbad=_0x1bff61['view']['headerView']['class'];_0x1bff61['view']['headerView']['class']=_0x5bdbad?_0x5bdbad+'\x20ck-reset_all':'ck-reset_all',_0x1bff61['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1bff61['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2a2411=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x87016d=_0x2a2411['previewMode'],_0x559247={};if('$labels'===_0x87016d){for(const _0x2ec4ee of _0x2a2411['getMergeFieldsIds']())_0x559247[_0x2ec4ee]=_0x2a2411['getLabel'](_0x2ec4ee)||_0x2ec4ee;}else{const _0x1828fe='$defaultValues'===_0x87016d?_0x2a2411['getDefaultValues']():_0x2a2411['getDataSetValues'](_0x87016d,!0x0);for(const _0x6c55e5 of Object['entries'](_0x1828fe)){const [_0x49a34b,_0x1c1236]=_0x6c55e5;_0x559247[_0x49a34b]=null!==_0x1c1236?_0x1c1236:_0x2a2411['getLabel'](_0x49a34b)||_0x49a34b;}}return{'mergeFieldsData':_0x559247};}['_standarizeRootsData'](_0x5267c3,_0xc85b4c,_0x35f351){let _0x8427db;if('string'==typeof _0x5267c3){const _0x4adca3=_0xc85b4c['model']['document']['getRootNames']()[0x0];_0x8427db={[_0x4adca3]:_0x5267c3};}else _0x8427db=_0x5267c3;const _0x3572a3=this['_fixMediaEmbeds'](_0x8427db,_0xc85b4c),_0x10cf9f=function(_0x239b73,_0x2b0482){for(const [_0x435484,_0x542c31]of _0x239b73)_0x542c31['classes']=_0x2b0482[_0x435484]['classList']['value']['replace']('ck-focused','');return _0x239b73;}(this['_sortRoots'](_0xc85b4c)['reduce']((_0x46c9fa,_0x4b91a1)=>(_0x46c9fa['push']([_0x4b91a1,{'content':_0x3572a3[_0x4b91a1],'classes':''}]),_0x46c9fa),[]),_0x35f351);return _0x10cf9f;}['_fixMediaEmbeds'](_0x1b74b4,_0x46ae55){if(!_0x46ae55['plugins']['has']('MediaEmbedEditing'))return _0x1b74b4;const _0x144b05=_0x46ae55['plugins']['get']('MediaEmbedEditing');for(const [_0x4a7cce,_0x2d1a7e]of Object['entries'](_0x1b74b4)){const _0x470bc3=document['createElement']('div');_0x470bc3['innerHTML']=_0x2d1a7e,(_0x470bc3['querySelectorAll']('figure.media')['forEach'](_0x8e68b8=>{const _0x131c0b=_0x8e68b8['querySelector']('oembed');if(_0x131c0b){const _0x281917=_0x131c0b['getAttribute']('url');if(_0x281917){const _0x250ca0=_0x144b05['registry']['getMediaViewElement'](new _0x15c496(_0x46ae55['editing']['view']['document']),_0x281917,{'elementName':'','renderForEditingView':!0x0}),_0x32e6e3=document['createElement']('div');_0x32e6e3['classList']['add']('ck-media__wrapper'),_0x250ca0['render'](_0x32e6e3,_0x46ae55['editing']['view']['domConverter']),_0x131c0b['replaceWith'](_0x32e6e3);}}}),_0x1b74b4[_0x4a7cce]=_0x470bc3['innerHTML']);}return _0x1b74b4;}['_sortRoots'](_0xb52f71){if(!function(_0x38244f){return void 0x0!==_0x38244f['getRootsAttributes'];}(_0xb52f71))return _0xb52f71['model']['document']['getRootNames']();const _0x54a9dd=[],_0x59d869=new Map();for(const _0x38f1bd of _0xb52f71['model']['document']['getRootNames']()){const _0x5c1c5c=_0xb52f71['editing']['view']['getDomRoot'](_0x38f1bd)['getClientRects']()['item'](0x0);_0x54a9dd['push'](_0x38f1bd),_0x59d869['set'](_0x38f1bd,_0x5c1c5c);}return _0x54a9dd['sort']((_0x520ae3,_0x5a5999)=>{const _0x513073=_0x59d869['get'](_0x520ae3),_0x308d77=_0x59d869['get'](_0x5a5999);return _0x513073['y']-_0x308d77['y']||_0x513073['x']-_0x308d77['x'];}),_0x54a9dd;}}class te extends _0x6a3ec8{static get['requires'](){return[T,_0x7fa237];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x164794){super(_0x164794),_0x164794['commands']['add']('previewFinalContent',new re(this['editor'])),_0x164794['config']['define']('trackChanges.preview.renderFunction',(_0x55f4a3,_0x393591)=>{for(const _0x2fffd1 of _0x393591)_0x55f4a3['appendChild'](_0x2fffd1);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|