@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241213.0 → 0.0.0-nightly-20241215.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 +10 -10
- 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/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/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/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/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/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/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 Qt,Plugin as
|
|
24
|
-
_0x15f7d8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x359793,_0x2fbd36){super(),this['id']=_0x2fbd36['id'],this['type']=_0x2fbd36['type'],this['subType']=_0x2fbd36['subType']||null,this['author']=_0x2fbd36['author'],this['creator']=_0x2fbd36['creator']||_0x2fbd36['author'],this['isExternal']=Boolean(_0x2fbd36['attributes']&&_0x2fbd36['attributes']['@external']),this['data']=null,this['_model']=_0x359793,this['_onAccept']=_0x2fbd36['onAccept'],this['_onDiscard']=_0x2fbd36['onDiscard'],this['_onAttributesChange']=_0x2fbd36['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2fbd36['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 _0x5cf5e6=this;for(;_0x5cf5e6['previous'];)_0x5cf5e6=_0x5cf5e6['previous'];return _0x5cf5e6;}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'](_0x3e9432){this['_markerNames']['add'](_0x3e9432);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3e6037=>this['_model']['markers']['get'](_0x3e6037))['filter'](_0x4257b3=>_0x4257b3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x21fc6e=>{for(const _0x3a1a7c of this['getMarkers']())_0x21fc6e['removeMarker'](_0x3a1a7c);}),this['_markerNames']['clear']();}['removeMarker'](_0x4b1dc8){this['_model']['change'](_0x2bbbb3=>{_0x2bbbb3['removeMarker'](_0x4b1dc8);}),this['_markerNames']['delete'](_0x4b1dc8);}['addRange'](_0x2ce873){const _0x5ed0de='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5ed0de),this['_model']['change'](_0x3db14e=>{_0x3db14e['addMarker'](_0x5ed0de,{'range':_0x2ce873,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3ffd22){for(const _0x46b68f of this['getRanges']())if(_0x46b68f['isIntersecting'](_0x3ffd22))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1f7d21=>_0x1f7d21['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4df5e1,_0x38d0f9)=>[..._0x4df5e1,..._0x38d0f9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x510db3=this['getRanges']();if(0x1!=_0x510db3['length'])return null;const _0x41190e=_0x510db3[0x0],_0x26be44=_0x41190e['start']['nodeAfter'],_0x24ef38=_0x41190e['end']['nodeBefore'];return _0x26be44 instanceof _0x325fb1?_0x26be44!=_0x24ef38?null:_0x26be44: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 _0x4f3f03=[];let _0x1bd4ee=this['head'];for(;_0x1bd4ee;)_0x4f3f03['push'](_0x1bd4ee),_0x1bd4ee=_0x1bd4ee['next'];return _0x4f3f03;}['setAttribute'](_0xee0416,_0x2b0aa2){const _0x46b462=_0x13a4fa(this['attributes']);_0x34ded2(_0x46b462,_0xee0416,_0x2b0aa2),_0x1b3678(_0x46b462,this['attributes'])||(this['attributes']=_0x46b462,this['_onAttributesChange'](_0x46b462));}['removeAttribute'](_0x217df9){const _0x10d6ee=_0x13a4fa(this['attributes']);_0x528ffd(_0x10d6ee,_0x217df9),_0x1b3678(_0x10d6ee,this['attributes'])||(this['attributes']=_0x10d6ee,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 _0x2b70c4()['substr'](0x1,0x5);}}function o(_0x4a7bd2,_0x8f8396,_0x25a36a){const _0x59134c=_0x4a7bd2['t'],t=_0x4a7bd2['t'];switch(_0x8f8396){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'*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',_0x25a36a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x25a36a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x25a36a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x25a36a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x25a36a);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',_0x25a36a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x25a36a);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x25a36a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x25a36a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x25a36a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x25a36a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x25a36a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x25a36a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x25a36a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x25a36a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x25a36a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x25a36a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x25a36a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x25a36a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x25a36a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x25a36a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x25a36a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x25a36a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x25a36a);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'},_0x25a36a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x25a36a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x25a36a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x25a36a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x25a36a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x25a36a);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'},_0x25a36a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x25a36a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x25a36a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x25a36a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x25a36a);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'},_0x25a36a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x25a36a);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'},_0x25a36a);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'},_0x25a36a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x25a36a);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'},_0x25a36a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x25a36a);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'},_0x25a36a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x25a36a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x25a36a);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'},_0x25a36a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x25a36a);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 _0x59134c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x25a36a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x59134c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x25a36a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x25a36a);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'},_0x25a36a);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'},_0x25a36a);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'},_0x25a36a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x8f8396;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x59f1f8,_0x5c1ef2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x59f1f8,this['_locale']=_0x5c1ef2;}['getDescriptions'](_0x1310c1){const _0x52d995=[],_0x49ce35=new Set(),_0x42207a=new Set();for(let _0x1c3b59=0x0;_0x1c3b59<_0x1310c1['length'];_0x1c3b59++){const _0x3a677e=_0x1310c1[_0x1c3b59];if(!_0x3a677e['isInContent'])continue;const _0x37f7a8=this['_handleCustomCallbackDescription'](_0x3a677e);if(_0x37f7a8){if(null!=_0x3a677e['subType']){if(_0x49ce35['has'](_0x3a677e['subType']))continue;_0x49ce35['add'](_0x3a677e['subType']);}_0x52d995['push'](_0x37f7a8);}else{if('attribute'!=_0x3a677e['type'])'insertion'!=_0x3a677e['type']&&'deletion'!=_0x3a677e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x52d995,_0x3a677e,_0x1310c1[_0x1c3b59+0x1]);else{const _0x213096=_0x3a677e['data']['key'];if(_0x42207a['has'](_0x213096))continue;_0x42207a['add'](_0x3a677e['data']['key']),_0x213096==m?this['_handleRenameSuggestionDescription'](_0x52d995,_0x3a677e):this['_handleAttributeSuggestionDescription'](_0x52d995,_0x3a677e);}}}return this['_resolveDescriptionItems'](_0x52d995);}['registerDescriptionCallback'](_0x5718b9){this['_customCallbacks']['push'](_0x5718b9);}['registerElementLabel'](_0x40a352,_0x247e98,_0x3a2a35=_0x2d7443['normal']){'function'==typeof _0x40a352?_0x2b7ba9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x40a352,'label':_0x247e98,'priority':_0x3a2a35}):this['_itemLabels']['set'](_0x40a352,_0x247e98);}['registerAttributeLabel'](_0x51dd05,_0x3dd3ca){this['_attributeLabels']['set'](_0x51dd05,_0x3dd3ca);}['getItemLabel'](_0x3c50e1,_0x383755=0x1){let _0x41da54;for(const _0x5e2cef of this['_itemLabelsCallbacks'])if(_0x5e2cef['matchingCallback'](_0x3c50e1)){_0x41da54=_0x5e2cef['label'];break;}return _0x41da54||(_0x41da54=this['_itemLabels']['get'](_0x3c50e1['name'])),_0x41da54?_0x41da54(_0x383755):0x1!==_0x383755?_0x383755+'\x20'+_0x3c50e1['name']+'s':''+_0x3c50e1['name'];}['_addDescriptionItems'](_0x1b1e19,_0x5b8814){const _0x4bda92=_0x5b8814['getFirstRange']()['getWalker'](),_0x586b49='insertion'==_0x5b8814['type']?'add':'remove';for(const _0x443f9c of _0x4bda92){const _0x332e33=_0x443f9c['item'],_0x4fd54c=_0x1b1e19[_0x1b1e19['length']-0x1];if(_0x332e33['is']('$textProxy'))_0x4fd54c&&_0x4fd54c['type']['indexOf']('Container')>-0x1&&_0x1b1e19['pop'](),_0x4fd54c&&'text'==_0x4fd54c['type']?_0x4fd54c[_0x586b49]+=_0x332e33['data']:_0x1b1e19['push']({'type':'text','add':'add'==_0x586b49?_0x332e33['data']:'','remove':'remove'==_0x586b49?_0x332e33['data']:''});else{if(this['_schema']['isObject'](_0x332e33)){const _0x335cb5=_0x332e33;if(_0x4fd54c&&_0x4fd54c['type']['indexOf']('Container')>-0x1&&_0x1b1e19['pop'](),'elementEnd'==_0x443f9c['type'])continue;_0x4fd54c&&_0x4fd54c['type']==_0x586b49+'Object'&&_0x4fd54c['element']['name']==_0x335cb5['name']?_0x4fd54c['quantity']++:_0x1b1e19['push']({'type':_0x586b49+'Object','element':_0x335cb5,'quantity':0x1}),_0x4bda92['skip'](_0x19e99c=>!('elementEnd'==_0x19e99c['type']&&_0x19e99c['item']==_0x332e33));}else{if(this['_schema']['checkChild'](_0x332e33,'$text')||_0x332e33['is']('element','softBreak')){const _0x47567a=_0x332e33;if('add'==_0x586b49&&'elementStart'==_0x443f9c['type']||'remove'==_0x586b49&&'elementEnd'==_0x443f9c['type'])continue;if(_0x4fd54c&&-0x1==_0x4fd54c['type']['indexOf']('Container')){'text'==_0x4fd54c['type']&&(_0x4fd54c[_0x586b49]+='\x0a');continue;}let _0x5193f5;if(_0x5193f5='add'==_0x586b49?_0x47567a['nextSibling']&&!this['_schema']['isObject'](_0x47567a['nextSibling'])?_0x47567a['nextSibling']:null:_0x47567a['previousSibling']&&!this['_schema']['isObject'](_0x47567a['previousSibling'])?_0x47567a['previousSibling']:null,_0x47567a['isEmpty']||_0x5193f5&&_0x5193f5['isEmpty']){const _0x4fae59=_0x5193f5&&_0x5193f5['isEmpty']?_0x5193f5:_0x47567a;_0x4fd54c&&_0x4fd54c['type']==_0x586b49+'EmptyContainer'&&_0x4fd54c['element']['name']==_0x4fae59['name']?_0x4fd54c['quantity']++:_0x1b1e19['push']({'type':_0x586b49+'EmptyContainer','element':_0x4fae59,'quantity':0x1});}else _0x1b1e19['push']({'type':_0x586b49+'Container','element':_0x47567a});}}}}}['_resolveDescriptionItems'](_0x2b8eaa){const _0x38e903=this['_locale'],_0x2a7d42=[],_0x2f6e6c=[],_0x5e86e7=[];for(const _0x5e8d87 of _0x2b8eaa)switch(_0x5e8d87['type']){case'text':if(_0x5e8d87['add']=_0x5e8d87['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5e8d87['remove']=_0x5e8d87['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5e8d87['add']&&''!=_0x5e8d87['remove']){_0x2a7d42['push']({'type':'replace','content':o(_0x38e903,'REPLACE_TEXT',['\x22'+_0x5e8d87['remove']+'\x22','\x22'+_0x5e8d87['add']+'\x22'])});continue;}if(null!=_0x5e8d87['add']['match'](/^ +$/)){_0x2a7d42['push']({'type':'insertion','content':o(_0x38e903,'*Insert:*\x20%0',o(_0x38e903,'ELEMENT_SPACE',_0x5e8d87['add']['length']))});continue;}if(null!=_0x5e8d87['remove']['match'](/^ +$/)){_0x2a7d42['push']({'type':'deletion','content':o(_0x38e903,'*Remove:*\x20%0',o(_0x38e903,'ELEMENT_SPACE',_0x5e8d87['remove']['length']))});continue;}if(''!=_0x5e8d87['add']){_0x2a7d42['push']({'type':'insertion','content':o(_0x38e903,'*Insert:*\x20%0','\x22'+_0x5e8d87['add']+'\x22')});continue;}_0x2a7d42['push']({'type':'deletion','content':o(_0x38e903,'*Remove:*\x20%0','\x22'+_0x5e8d87['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2a7d42['push']({'type':'insertion','content':o(_0x38e903,'*Insert:*\x20%0',this['getItemLabel'](_0x5e8d87['element'],_0x5e8d87['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2a7d42['push']({'type':'deletion','content':o(_0x38e903,'*Remove:*\x20%0',this['getItemLabel'](_0x5e8d87['element'],_0x5e8d87['quantity']))});continue;case'addContainer':_0x2a7d42['push']({'type':'insertion','content':o(_0x38e903,'*Split:*\x20%0',this['getItemLabel'](_0x5e8d87['element'],_0x5e8d87['quantity']))});continue;case'removeContainer':_0x2a7d42['push']({'type':'deletion','content':o(_0x38e903,'*Merge:*\x20%0',this['getItemLabel'](_0x5e8d87['element'],_0x5e8d87['quantity']))});continue;case'addFormat':_0x2f6e6c['push'](_0x5e8d87['key']);continue;case'removeFormat':_0x5e86e7['push'](_0x5e8d87['key']);continue;default:_0x2a7d42['push'](_0x5e8d87);}if(_0x2f6e6c['length']){const _0xcb7a54=_0x2f6e6c['map'](_0x157628=>this['_attributeLabels']['has'](_0x157628)?this['_attributeLabels']['get'](_0x157628):_0x157628)['join'](',\x20');_0x2a7d42['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xcb7a54)});}if(_0x5e86e7['length']){const _0x221585=_0x5e86e7['map'](_0x444cb7=>this['_attributeLabels']['has'](_0x444cb7)?this['_attributeLabels']['get'](_0x444cb7):_0x444cb7)['join'](',\x20');_0x2a7d42['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x221585)});}return _0x2a7d42;}['_handleCustomCallbackDescription'](_0x1f2bef){for(const _0x1a04de of this['_customCallbacks']){const _0x3ea379=_0x1a04de(_0x1f2bef);if(_0x3ea379&&'type'in _0x3ea379)return _0x3ea379;}}['_handleAttributeSuggestionDescription'](_0x132399,_0x2ed03f){const _0xcb92ab=_0x2ed03f['data'],_0x188ad8=void 0x0===_0xcb92ab['newValue']?'removeFormat':'addFormat';_0x132399['push']({'type':_0x188ad8,'key':_0xcb92ab['key']});}['_handleRenameSuggestionDescription'](_0x1ea4cd,_0x1b9b61){_0x1ea4cd['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1b9b61['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5e4017,_0x2543a9,_0x576dd8){if(this['_addDescriptionItems'](_0x5e4017,_0x2543a9),_0x576dd8&&_0x576dd8['getFirstRange']()&&!_0x2543a9['getFirstRange']()['end']['isEqual'](_0x576dd8['getFirstRange']()['start'])){const _0x30ec4f=_0x5e4017[_0x5e4017['length']-0x1],_0x438255='insertion'==_0x2543a9['type']?'add':'remove';_0x30ec4f&&'text'==_0x30ec4f['type']&&(_0x30ec4f[_0x438255]+='\x0a');}}}class U extends _0xd3eebf{['afterInit'](){const _0x529ecd=this['editor'],_0x5b3b68=_0x529ecd['plugins']['get']('TrackChangesEditing');_0x529ecd['commands']['get']('showAIAssistant')&&_0x5b3b68['enableCommand']('showAIAssistant');}}class V extends _0xd3eebf{['afterInit'](){const _0x3284ae=this['editor'],_0x2100ee=_0x3284ae['locale'];if(!_0x3284ae['plugins']['has']('AlignmentEditing'))return;const _0x1a43fd=_0x3284ae['plugins']['get']('TrackChangesEditing');_0x1a43fd['enableDefaultAttributesIntegration']('alignment'),_0x1a43fd['registerBlockAttribute']('alignment'),_0x1a43fd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2100ee,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505fe4=this['editor'],_0x3de126=_0x505fe4['locale'];_0x505fe4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32e39e=>{if('formatBlock'!=_0x32e39e['type'])return;const {data:_0x317ec2}=_0x32e39e;if(_0x317ec2&&'alignment'==_0x317ec2['commandName']){const _0x364fe3=_0x317ec2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3de126,'*Format:*\x20%0',function(_0x3b77fb){switch(_0x3b77fb){case'left':return o(_0x3de126,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3de126,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3de126,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3de126,'FORMAT_JUSTIFY_TEXT');}}(_0x364fe3))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xd3eebf{['afterInit'](){const _0x5520a7=this['editor'],_0x706de0=_0x5520a7['plugins']['get']('TrackChangesEditing'),_0xb5c13b=_0x5520a7['locale'];for(const _0x1352d1 of Zt){if(!_0x5520a7['plugins']['has'](_0x1352d1))continue;const _0x1f7c4e=_0x1352d1['slice'](0x0,-0x7)['toLowerCase'](),_0x50f22c='FORMAT_'+_0x1f7c4e['toUpperCase']();_0x706de0['enableDefaultAttributesIntegration'](_0x1f7c4e),_0x706de0['registerInlineAttribute'](_0x1f7c4e),_0x706de0['descriptionFactory']['registerAttributeLabel'](_0x1f7c4e,o(_0xb5c13b,_0x50f22c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b6eec=this['editor'],_0x32d6fe=_0x3b6eec['locale'],_0xef28ec=_0x3b6eec['plugins']['get']('TrackChangesEditing');function _0x23b7c8(_0xc07f4b,_0x380793){_0xef28ec['descriptionFactory']['registerDescriptionCallback'](_0x32e573=>{if('formatInline'!=_0x32e573['type'])return;const {data:_0x176d0f}=_0x32e573;return _0x176d0f&&_0x176d0f['commandName']===_0xc07f4b?_0x176d0f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32d6fe,'*Format:*\x20%0',_0x380793)}:{'type':'format','content':o(_0x32d6fe,'*Remove\x20format:*\x20%0',_0x380793)}:void 0x0;});}_0x23b7c8('bold',o(_0x32d6fe,'FORMAT_BOLD')),_0x23b7c8('italic',o(_0x32d6fe,'FORMAT_ITALIC')),_0x23b7c8('underline',o(_0x32d6fe,'FORMAT_UNDERLINE')),_0x23b7c8('code',o(_0x32d6fe,'FORMAT_CODE')),_0x23b7c8('strikethrough',o(_0x32d6fe,'FORMAT_STRIKETHROUGH')),_0x23b7c8('subscript',o(_0x32d6fe,'FORMAT_SUBSCRIPT')),_0x23b7c8('superscript',o(_0x32d6fe,'FORMAT_SUPERSCRIPT'));}}class F extends _0xd3eebf{['afterInit'](){const _0x1ce186=this['editor'],_0x37aa45=_0x1ce186['locale'];if(!_0x1ce186['plugins']['has']('BlockQuoteEditing'))return;const _0x402a19=_0x1ce186['plugins']['get']('TrackChangesEditing'),_0x409fec=this['editor']['commands']['get']('blockQuote');_0x402a19['enableCommand']('blockQuote',(_0x529686,_0x17add5={})=>{const _0x3c1d72=this['editor']['model']['document']['selection'],_0x525dc2=_0x17add5&&void 0x0!==_0x17add5['forceValue']?_0x17add5['forceValue']:!_0x409fec['value'];let _0x1c4fec=[];if(_0x525dc2){const _0xcf7b2d=Array['from'](_0x3c1d72['getSelectedBlocks']())['filter'](_0x11e91d=>oo(_0x11e91d)||function(_0x3b18ab,_0x3e6c39){const _0x1b5b55=_0x3e6c39['checkChild'](_0x3b18ab['parent'],'blockQuote'),_0x2712c7=_0x3e6c39['checkChild'](['$root','blockQuote'],_0x3b18ab);return _0x1b5b55&&_0x2712c7;}(_0x11e91d,this['editor']['model']['schema']));_0x1c4fec=to(_0xcf7b2d,_0x1ce186['model']);}else{const _0x33b5d7=Array['from'](_0x3c1d72['getSelectedBlocks']())['filter'](_0x28c90d=>oo(_0x28c90d));_0x1c4fec=to(_0x33b5d7,_0x1ce186['model']);}_0x1ce186['model']['change'](()=>{for(const _0x257bb5 of _0x1c4fec)_0x402a19['markBlockFormat'](_0x257bb5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x525dc2}]});});}),_0x402a19['descriptionFactory']['registerDescriptionCallback'](_0xb33fe1=>{const {data:_0xcfe75}=_0xb33fe1;if(_0xcfe75&&'blockQuote'==_0xcfe75['commandName']){const _0x13f41d=o(_0x37aa45,'ELEMENT_BLOCK_QUOTE');return _0xcfe75['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37aa45,'*Set\x20format:*\x20%0',_0x13f41d)}:{'type':'format','content':o(_0x37aa45,'*Remove\x20format:*\x20%0',_0x13f41d)};}});}}function oo(_0x5eabdb){return'blockQuote'==_0x5eabdb['parent']['name'];}class L extends _0xd3eebf{['afterInit'](){const _0x357a1d=this['editor'],_0x3254b9=_0x357a1d['locale'],_0x16703c=_0x357a1d['plugins']['get']('TrackChangesEditing');_0x357a1d['plugins']['has']('BookmarkEditing')&&(_0x16703c['enableCommand']('insertBookmark'),_0x16703c['enableDefaultAttributesIntegration']('updateBookmark'),_0x16703c['registerBlockAttribute']('bookmarkId'),_0x16703c['descriptionFactory']['registerDescriptionCallback'](_0x8ba7c0=>{if('insertion'!=_0x8ba7c0['type']&&'deletion'!=_0x8ba7c0['type']&&'attribute'!=_0x8ba7c0['type'])return;const _0x333991=_0x8ba7c0['getContainedElement']();if(null==_0x333991)return;if(!_0x333991['is']('element','bookmark'))return;const _0x2d40fc=_0x333991['getAttribute']('bookmarkId');if('insertion'==_0x8ba7c0['type'])return{'type':'insertion','content':o(_0x3254b9,'*Insert:*\x20%0','\x22'+_0x2d40fc+'\x22\x20'+o(_0x3254b9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x8ba7c0['type'])return{'type':'deletion','content':o(_0x3254b9,'*Remove:*\x20%0','\x22'+_0x2d40fc+'\x22\x20'+o(_0x3254b9,'ELEMENT_BOOKMARK'))};const {data:_0xa1d0d7}=_0x8ba7c0;if(!_0xa1d0d7||'bookmarkId'!=_0xa1d0d7['key'])return;return{'type':'format','content':o(_0x3254b9,'*Set\x20bookmark:*\x20%0','\x22'+_0xa1d0d7['newValue']+'\x22')};}));}}class J extends _0xd3eebf{['afterInit'](){const _0x57af83=this['editor'];_0x57af83['plugins']['has']('CaseChange')&&(_0x57af83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x57af83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x57af83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xd3eebf{['afterInit'](){const _0x1f509b=this['editor'];_0x1f509b['commands']['get']('ckbox')&&_0x1f509b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0xd3eebf{['afterInit'](){const _0x553b29=this['editor'];if(!_0x553b29['plugins']['has']('CodeBlock'))return;const _0x1ab936=_0x553b29['plugins']['get']('TrackChangesEditing'),_0x109516=_0x553b29['locale'],_0x2cab7e=_0x553b29['config']['get']('codeBlock')['languages'],_0x20edba=_0x553b29['commands']['get']('codeBlock');_0x1ab936['enableCommand']('indentCodeBlock'),_0x1ab936['enableCommand']('outdentCodeBlock'),_0x1ab936['enableCommand']('codeBlock',(_0x1c5017,_0x463bea={})=>{const _0x22df40=_0x553b29['model'],_0x58349d=_0x553b29['model']['document']['selection'],_0x12a937=_0x463bea&&void 0x0!==_0x463bea['forceValue']?_0x463bea['forceValue']:!_0x20edba['value'];let _0x27b284;_0x463bea['language']||(_0x463bea['language']=_0x2cab7e[0x0]['language']),_0x27b284=_0x12a937?Array['from'](_0x58349d['getSelectedBlocks']())['filter'](_0x587690=>eo(_0x587690)||function(_0x573f5e,_0x1e769e){if(_0x573f5e['is']('rootElement')||_0x1e769e['isLimit'](_0x573f5e))return!0x1;return _0x1e769e['checkChild'](_0x573f5e['parent'],'codeBlock');}(_0x587690,_0x22df40['schema'])):Array['from'](_0x58349d['getSelectedBlocks']())['filter'](_0xc7a3ae=>eo(_0xc7a3ae));const _0x5d7bc6=to(_0x27b284,_0x22df40);_0x22df40['change'](()=>{for(const _0xf33fe2 of _0x5d7bc6)_0x1ab936['markBlockFormat'](_0xf33fe2,{'commandName':'codeBlock','commandParams':[{..._0x463bea,'forceValue':_0x12a937}],'formatGroupId':'blockName'});});}),(_0x1ab936['descriptionFactory']['registerElementLabel']('codeBlock',_0xee3ea0=>o(_0x109516,'ELEMENT_CODE_BLOCK',_0xee3ea0)),_0x1ab936['descriptionFactory']['registerDescriptionCallback'](_0x3aeca5=>{if('formatBlock'!=_0x3aeca5['type'])return;const _0x28afdc=_0x109516['t'],{data:_0x22fa23}=_0x3aeca5;if(!_0x22fa23||'codeBlock'!=_0x22fa23['commandName'])return;const _0x357d9a=_0x22fa23['commandParams'][0x0]['language'],_0x2b9b03=_0x28afdc(_0x2cab7e['find'](_0x28072f=>_0x28072f['language']===_0x357d9a)['label'])['toLowerCase']();return _0x22fa23['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x109516,'*Set\x20format:*\x20%0',o(_0x109516,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2b9b03+')')}:{'type':'format','content':o(_0x109516,'*Remove\x20format:*\x20%0',o(_0x109516,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1e5b3b){return'codeBlock'==_0x1e5b3b['name'];}class z extends _0xd3eebf{['afterInit'](){const _0x522e10=this['editor'];if(!_0x522e10['plugins']['has']('CommentsEditing'))return;_0x522e10['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1f67b2,_0x441301,_0x33bba4){const _0x5ae07a=[];for(const _0x176ce2 of _0x441301['getItems']())_0x176ce2['hasAttribute'](_0x1f67b2)&&_0x5ae07a['push'](_0x33bba4['createRangeOn'](_0x176ce2));return _0x5ae07a;}function Ne(_0x33b6ce,_0x4ffe70,{showActiveMarker:_0x140e66=!0x0}={}){const _0x2c7102=_0x33b6ce['plugins']['get']('TrackChangesEditing');return(_0x24f53b,_0x2d692d,_0x2b503a)=>{if(!_0x2b503a['consumable']['test'](_0x2d692d['markerRange'],_0x24f53b['name']))return;const _0x5ed471=_0x2d692d['markerRange']['getWalker'](),_0x7dd28c=_0x2d692d['markerRange']['start'],_0x312e63=_0x33b6ce['model']['schema'];let _0x37e686=null,_0x4da9a5=null,_0x3c9b29=!0x1,_0x1175c3=!0x1;for(const _0x15488 of _0x5ed471){const _0x515df7=_0x15488['item'];_0x3c9b29=_0x3c9b29||_0x312e63['isContent'](_0x515df7);const _0x223240=_0x2b503a['mapper']['toViewElement'](_0x515df7);if(_0x223240&&_0x223240['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x15488['type']&&(_0x312e63['isBlock'](_0x515df7)&&!_0x312e63['isLimit'](_0x515df7)&&(_0x515df7['nextSibling']||_0x7dd28c['isAtEnd']?_0x37e686&&_0x37e686['parent']==_0x515df7||(_0x37e686=_0x515df7,_0x168ad5(_0x15488['previousPosition']),_0x1175c3=!0x0):_0x4da9a5=_0x4da9a5||_0x15488['previousPosition']));}function _0x168ad5(_0x1ae025){const {authorId:_0x89ff9c}=_0x2c7102['_splitMarkerName'](_0x2d692d['markerName']),_0x48f5eb=_0x2b503a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ffe70,'data-author-id':_0x89ff9c}),_0x714252=_0x2b503a['mapper']['toViewPosition'](_0x1ae025);_0x140e66&&_0x2c7102['activeMarkers']['includes'](_0x2d692d['markerName'])&&_0x2b503a['writer']['addClass']('ck-suggestion-marker--active',_0x48f5eb),_0x2b503a['writer']['insert'](_0x714252,_0x48f5eb),_0x2b503a['mapper']['bindElementToMarker'](_0x48f5eb,_0x2d692d['markerName']);}_0x3c9b29||_0x1175c3||!_0x4da9a5||_0x168ad5(_0x4da9a5);};}class K extends _0xd3eebf{static get['requires'](){return[_0x17c3c9];}['init'](){const _0x3fe6be=this['editor'],_0x113704=_0x3fe6be['plugins']['get']('TrackChangesEditing');_0x113704['enableCommand']('delete');const _0x31474c=_0x3fe6be['commands']['get']('deleteForward');_0x113704['enableCommand']('deleteForward',(_0x4bb716,_0x4affda={})=>{const _0x148904=_0x3fe6be['model']['createSelection'](_0x3fe6be['model']['document']['selection']);_0x148904['isCollapsed']&&_0x3fe6be['model']['modifySelection'](_0x148904,{'direction':'forward','unit':_0x4affda['unit']});const _0x2f88e4=_0x148904['getFirstRange'](),_0x278765=_0x2bc62b['fromRange'](_0x2f88e4);let _0x4fc8cf;_0x4bb716(_0x4affda),_0x4fc8cf='$graveyard'==_0x278765['root']['rootName']?_0x3fe6be['model']['createRange'](_0x2f88e4['start']):_0x3fe6be['model']['createRange'](_0x278765['start'],_0x278765['end']),_0x278765['detach'](),_0x3fe6be['model']['enqueueChange'](_0x31474c['buffer']['batch'],_0x34f7ef=>{_0x31474c['buffer']['lock'](),_0x34f7ef['setSelection'](_0x34f7ef['createRange'](_0x4fc8cf['end'])),_0x31474c['buffer']['unlock']();});}),_0x3fe6be['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x3fe6be,'merge'),{'priority':'high'}),_0x3fe6be['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5bee7d,_0x1db8dd,_0x485755)=>{_0x485755['options']['showSuggestionHighlights']&&Ne(_0x3fe6be,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5bee7d,_0x1db8dd,_0x485755);},{'priority':'high'}),_0x3fe6be['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x33f033,_0x77fbe3,_0x3c8689)=>{const _0x21eae3=_0x3c8689['mapper']['markerNameToElements'](_0x77fbe3['markerName']);if(_0x21eae3){for(const _0x221c47 of _0x21eae3)_0x221c47['is']('uiElement')&&(_0x3c8689['mapper']['unbindElementFromMarkerName'](_0x221c47,_0x77fbe3['markerName']),_0x3c8689['writer']['remove'](_0x221c47));}},{'priority':'high'});}}class W extends _0xd3eebf{['afterInit'](){const _0x569dd8=this['editor'];if(!_0x569dd8['plugins']['has']('ListEditing'))return;const _0x2b3dc6=_0x569dd8['locale'],_0x269f0d=_0x569dd8['plugins']['get']('TrackChangesEditing'),_0x3a59ad=_0x569dd8['plugins']['has']('TodoListEditing'),_0x2def9f=!!_0x569dd8['config']['get']('list.multiBlock');function _0x3b6015(_0x290f35){return{'type':'format','content':''+o(_0x2b3dc6,'*Set\x20format:*\x20%0',_0x290f35)};}function _0x1cb5e7(_0x30e72b){return{'type':'format','content':''+o(_0x2b3dc6,'*Remove\x20format:*\x20%0',_0x30e72b)};}_0x269f0d['enableDefaultAttributesIntegration']('numberedList'),_0x269f0d['enableDefaultAttributesIntegration']('bulletedList'),_0x269f0d['enableDefaultAttributesIntegration']('customNumberedList'),_0x269f0d['enableDefaultAttributesIntegration']('customBulletedList'),_0x269f0d['enableDefaultAttributesIntegration']('indentList'),_0x269f0d['enableDefaultAttributesIntegration']('outdentList'),_0x269f0d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x269f0d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x269f0d['registerBlockAttribute']('listItemId'),_0x269f0d['registerBlockAttribute']('listType'),_0x269f0d['registerBlockAttribute']('listIndent'),_0x2def9f&&(_0x269f0d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x269f0d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3a59ad&&(_0x269f0d['enableDefaultAttributesIntegration']('todoList'),_0x269f0d['enableDefaultAttributesIntegration']('checkTodoList'),_0x269f0d['registerBlockAttribute']('todoListChecked'),_0x269f0d['descriptionFactory']['registerDescriptionCallback'](_0x5370a5=>{const {data:_0x4e9fcd}=_0x5370a5;if(_0x4e9fcd&&'todoListChecked'==_0x4e9fcd['key'])return{'type':'format','content':_0x4e9fcd['newValue']?o(_0x2b3dc6,'*Check\x20item*'):o(_0x2b3dc6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2157c7=>{if(_0x2157c7['batch']['isUndo'])return!0x1;let _0xd40a97=!0x1;const _0x997101=_0x269f0d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x159feb=>'todoListChecked'===_0x269f0d['_getAttributeKey'](_0x159feb));for(const _0x3cf47d of _0x997101){'todo'!=_0x3cf47d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x269f0d['_findSuggestions'](_0x3cf47d['getFirstRange'](),'attribute')['find'](_0x58b572=>'listType'===_0x269f0d['_getAttributeKey'](_0x58b572['suggestion']))||(_0x2157c7['removeMarker'](_0x3cf47d['getFirstMarker']()),_0xd40a97=!0x0));}return _0xd40a97;})),_0x269f0d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2b3dc6,'FORMAT_INDENT'));const _0x10a9dd={'type':'format','content':''};_0x269f0d['descriptionFactory']['registerDescriptionCallback'](_0x37f2b4=>{const {data:_0x3e9fb5}=_0x37f2b4;if(!_0x3e9fb5||'listType'!=_0x3e9fb5['key'])return;let _0x4c3943=_0x37f2b4['head'];for(;_0x4c3943;){if(_0x4c3943['data']&&(('listStyle'==_0x4c3943['data']['key']||'listMarkerStyle'==_0x4c3943['data']['key'])&&(_0x4c3943['data']['newValue']&&'default'!=_0x4c3943['data']['newValue']||'default'!=_0x4c3943['data']['oldValue']&&!_0x3e9fb5['newValue'])||!_0x2def9f&&_0x4c3943['data']['key']==m))return _0x10a9dd;_0x4c3943=_0x4c3943['next'];}if(null==_0x3e9fb5['newValue'])switch(_0x3e9fb5['oldValue']){case'bulleted':return _0x1cb5e7(o(_0x2b3dc6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cb5e7(o(_0x2b3dc6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cb5e7(o(_0x2b3dc6,'ELEMENT_TODO_LIST'));}switch(_0x3e9fb5['newValue']){case'bulleted':return _0x3b6015(o(_0x2b3dc6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b6015(o(_0x2b3dc6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b6015(o(_0x2b3dc6,'ELEMENT_TODO_LIST'));}}),_0x269f0d['descriptionFactory']['registerDescriptionCallback'](_0x5cd42f=>{const {data:_0x4b43ee}=_0x5cd42f;if(_0x4b43ee&&'listIndent'==_0x4b43ee['key'])return null==_0x4b43ee['newValue']||null==_0x4b43ee['oldValue']&&0x0==_0x4b43ee['newValue']?_0x10a9dd:void 0x0;}),_0x269f0d['descriptionFactory']['registerDescriptionCallback'](_0x2ea79b=>{if('attribute'!=_0x2ea79b['type'])return;const {data:_0x362d10}=_0x2ea79b;if(!_0x362d10||'listItemId'!=_0x362d10['key'])return;const _0x80c1be=Te(_0x2ea79b);return'newValue'==_0x80c1be?{'type':'format','content':o(_0x2b3dc6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x80c1be?{'type':'format','content':o(_0x2b3dc6,'*Split:*\x20list\x20item')}:_0x10a9dd;}),_0x569dd8['model']['document']['registerPostFixer'](_0x189e7b=>this['listItemIdFixer'](_0x189e7b)),_0x569dd8['model']['document']['registerPostFixer'](_0x33104f=>this['noTrackChangesFixer'](_0x33104f)),_0x569dd8['model']['document']['on']('change:data',(_0x49eed0,_0xf0df5c)=>{if(_0xf0df5c['isUndo']||!_0xf0df5c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2b5231){if(_0x2b5231['batch']['isUndo']||!_0x2b5231['batch']['isLocal'])return!0x1;let _0x58de56=!0x1;const _0x505cfd=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3095ef=>_0x3095ef['data']&&'listItemId'==_0x3095ef['data']['key'])['filter'](_0x8c9105=>_0x8c9105['data']['newValue']&&_0x8c9105['data']['oldValue']);for(const _0x414aa4 of _0x505cfd)Te(_0x414aa4)||(_0x2b5231['removeMarker'](_0x414aa4['getFirstMarker']()),_0x58de56=!0x0);return _0x58de56;}['noTrackChangesFixer'](_0x3e891b){if(_0x3e891b['batch']['isUndo']||!_0x3e891b['batch']['isLocal'])return!0x1;const _0x469f2f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x469f2f['trackChangesCommand']['value'])return!0x1;let _0x4ca685=!0x1;const _0x434d10=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x533eb8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x37de3e=>'attribute'==_0x37de3e['type'])['filter'](_0x37d6ef=>_0x434d10['includes'](_0x37d6ef['attributeKey']));if(0x0==_0x533eb8['length'])return _0x4ca685;for(const _0x3e78dd of _0x533eb8){const _0x32077b=_0x469f2f['_findSuggestions'](_0x3e78dd['range'],'attribute')['filter'](_0x2ab1b4=>!_0x2ab1b4['meta']['isNextTo'])['map'](_0x196ebd=>_0x196ebd['suggestion'])['filter'](_0x362c51=>{const _0x33f9e9=_0x469f2f['_getAttributeKey'](_0x362c51);return _0x434d10['includes'](_0x33f9e9);});if(_0x32077b['length']){for(const _0x2835fd of _0x32077b)_0x3e891b['removeMarker'](_0x2835fd['getFirstMarker']());_0x4ca685=!0x0;}}return _0x4ca685;}['assureChains'](){const _0x1365af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1114ab=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x944398;const _0x4e1aa6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x24872c=>{if(_0x24872c['data']['oldRange']||!_0x24872c['data']['newRange'])return null;if(!_0x24872c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x37e184}=_0x1365af['_splitMarkerName'](_0x24872c['name']);if(!_0x1365af['hasSuggestion'](_0x37e184))return null;const _0x11e821=_0x1365af['getSuggestion'](_0x37e184);return _0x1114ab['includes'](_0x11e821['data']['key']);})['map'](_0x2db113=>{const {id:_0x545437}=_0x1365af['_splitMarkerName'](_0x2db113['name']),_0xc7e7c2=_0x1365af['getSuggestion'](_0x545437);return _0x944398=_0xc7e7c2['attributes']['groupId'],_0xc7e7c2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4e1aa6['size'])return;const _0x27c867=_0x1365af['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a4f40=>'attribute'==_0x5a4f40['type']&&_0x5a4f40['data']&&_0x1114ab['includes'](_0x5a4f40['data']['key'])&&_0x5a4f40['attributes']['groupId']!=_0x944398)['map'](_0xd20876=>({'listItem':_0xd20876['getFirstRange']()['start']['nodeAfter'],'groupId':_0xd20876['attributes']['groupId']})),_0xba7f1f=new Set();for(const {groupId:_0x5d0c10,listItem:_0x3fac1e}of _0x27c867)_0x4e1aa6['has'](_0x3fac1e)&&_0xba7f1f['add'](_0x5d0c10);for(const _0x2a2294 of _0x1365af['getSuggestions']())_0xba7f1f['has'](_0x2a2294['attributes']['groupId'])&&_0x2a2294['setAttribute']('groupId',_0x944398);}['_supportLegacySuggestions'](){const _0x428e1e=this['editor'],_0x37aa8e=_0x428e1e['locale'],_0xbdb3ce=_0x428e1e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xbdb3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x564a4d,_0x1210bf){const _0x4daa04=[];for(let _0x4652f6 of _0x564a4d)_0x4652f6['start']['nodeAfter']===_0x4652f6['end']['parent']&&(_0x4652f6=_0x428e1e['model']['createRange'](_0x428e1e['model']['createPositionAt'](_0x4652f6['start']['nodeAfter'],0x0))),_0x4daa04['push'](_0x4652f6);_0x428e1e['model']['change'](_0x4241dc=>{const _0x4a4a8d=_0x428e1e['model']['document']['selection'],_0x103b77=Array['from'](_0x4a4a8d['getRanges']())['map'](_0x7e888a=>_0x2bc62b['fromRange'](_0x7e888a));_0x4241dc['setSelection'](_0x4daa04),_0x428e1e['commands']['get'](_0x1210bf['commandName'])['refresh'](),_0x1210bf['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x428e1e['execute'](_0x1210bf['commandName'],..._0x1210bf['commandParams']),_0x4241dc['setSelection'](_0x103b77);for(const _0x23b244 of _0x103b77)_0x23b244['detach']();});}),_0xbdb3ce['descriptionFactory']['registerElementLabel'](function(_0x1b07d3){const _0x21f83c=!_0x428e1e['model']['schema']['isObject'](_0x1b07d3),_0x789ca4=_0x1b07d3['previousSibling'],_0x53177e=_0x1b07d3['nextSibling'],_0x41301a=_0x1b07d3['getAttribute']('listItemId'),_0x15c05a=!_0x789ca4||_0x789ca4['getAttribute']('listItemId')!==_0x41301a,_0x5adddd=!_0x53177e||_0x53177e['getAttribute']('listItemId')!==_0x41301a;return _0x21f83c&&Boolean(_0x41301a)&&_0x15c05a&&_0x5adddd;},_0x7869d9=>o(_0x37aa8e,'ELEMENT_LIST_ITEM',_0x7869d9));}['_registerLegacyDescription'](){const _0x2b54a7=this['editor'],_0x2fdd94=_0x2b54a7['locale'];function _0xfa6221(_0x108966){const _0x9c37a8=_0x2b54a7['commands']['get']('bulletedList')['value'],_0x1fe54b=_0x2b54a7['commands']['get']('numberedList')['value'];return'numberedList'===_0x108966?_0x9c37a8:_0x1fe54b;}_0x2b54a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x33344f){if('formatBlock'!=_0x33344f['type'])return;const {data:_0x39710f}=_0x33344f;if(!_0x39710f)return;let _0x5cfd8f,_0x1ae38c,_0x41d4bf,_0x5b7c3f;switch(_0x39710f['commandName']){case'bulletedList':_0x41d4bf=_0x39710f['commandParams'][0x0]['forceValue'],_0x5b7c3f=_0xfa6221(_0x39710f['commandName']),_0x5cfd8f=_0x41d4bf?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5b7c3f&&_0x2b54a7['config']['get']('list.multiBlock')||(_0x5cfd8f='*Change\x20to:*\x20%0'),_0x1ae38c={'type':'format','content':o(_0x2fdd94,_0x5cfd8f,o(_0x2fdd94,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x41d4bf=_0x39710f['commandParams'][0x0]['forceValue'],_0x5b7c3f=_0xfa6221(_0x39710f['commandName']),_0x5cfd8f=_0x41d4bf?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5b7c3f&&_0x2b54a7['config']['get']('list.multiBlock')||(_0x5cfd8f='*Change\x20to:*\x20%0'),_0x1ae38c={'type':'format','content':o(_0x2fdd94,_0x5cfd8f,o(_0x2fdd94,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5cfd8f='*Indent:*\x20%0',_0x1ae38c={'type':'format','content':o(_0x2fdd94,_0x5cfd8f,o(_0x2fdd94,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5cfd8f=function(_0x89823d){const _0x3a5b0d=_0x89823d['getFirstRange']();let _0xf39def=_0x3a5b0d['start']['nodeAfter'];for(;_0xf39def&&_0x3a5b0d['containsItem'](_0xf39def);){if(_0xf39def['getAttribute']('listIndent')>0x0)return!0x1;_0xf39def=_0xf39def['nextSibling'];}return!0x0;}(_0x33344f)?o(_0x2fdd94,'*Format:*\x20remove\x20from\x20%0',o(_0x2fdd94,function(_0x5f3d23){return'ELEMENT_'+_0x5f3d23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x33344f))):o(_0x2fdd94,'*Outdent:*\x20%0',o(_0x2fdd94,'ELEMENT_LIST_ITEM')),_0x1ae38c={'type':'format','content':_0x5cfd8f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x39710f['multipleBlocks']&&(_0x5cfd8f='*Merge:*\x20%0',_0x1ae38c={'type':'deletion','content':o(_0x2fdd94,_0x5cfd8f,o(_0x2fdd94,'ELEMENT_LIST_ITEM'))});}return _0x1ae38c;});}}function Te(_0x4ab349){let _0x40d1c9=_0x4ab349['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40d1c9;){const _0x3b5872=_0x40d1c9['getAttribute']('listItemId');if(!_0x3b5872)return!0x1;if(_0x3b5872==_0x4ab349['data']['newValue'])return'newValue';if(_0x3b5872==_0x4ab349['data']['oldValue'])return'oldValue';_0x40d1c9=_0x40d1c9['previousSibling'];}return!0x1;}class ye extends _0xd3eebf{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x529354=this['editor']['config']['get']('list.properties'),_0x147580=this['editor']['plugins']['get']('TrackChangesEditing');_0x529354['styles']&&(_0x147580['enableDefaultAttributesIntegration']('listStyle'),_0x147580['registerBlockAttribute']('listStyle')),_0x529354['reversed']&&(_0x147580['enableDefaultAttributesIntegration']('listReversed'),_0x147580['registerBlockAttribute']('listReversed')),_0x529354['startIndex']&&(_0x147580['enableDefaultAttributesIntegration']('listStart'),_0x147580['registerBlockAttribute']('listStart'));const _0x30cffd={'type':'format','content':''};_0x147580['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x58a135=this['editor']['locale'];_0x147580['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x58a135,'FORMAT_LIST_REVERSED')),_0x147580['descriptionFactory']['registerDescriptionCallback'](_0x1c1022=>{const {data:_0x22e9bc}=_0x1c1022;if(_0x22e9bc&&'listReversed'==_0x22e9bc['key'])return null==_0x22e9bc['newValue']||0x0==_0x22e9bc['newValue']&&null==_0x22e9bc['oldValue']?_0x30cffd:void 0x0;}),_0x147580['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x58a135,'FORMAT_LIST_START')),_0x147580['descriptionFactory']['registerDescriptionCallback'](_0x401696=>{const {data:_0x3843b5}=_0x401696;if(_0x3843b5&&'listStart'==_0x3843b5['key'])return null==_0x3843b5['newValue']||0x1==_0x3843b5['newValue']&&null==_0x3843b5['oldValue']?_0x30cffd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5861cc=>{if(_0x5861cc['batch']['isUndo'])return!0x1;let _0x3cb494=!0x1;const _0xba7eb9=_0x147580['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f4861=>{const _0x3b0579=_0x147580['_getAttributeKey'](_0x3f4861);return'listStart'==_0x3b0579||'listReversed'==_0x3b0579;});for(const _0x4fea15 of _0xba7eb9){const _0x8248b6=_0x4fea15['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x8248b6||'customNumbered'==_0x8248b6)continue;_0x147580['_findSuggestions'](_0x4fea15['getFirstRange'](),'attribute')['find'](_0x26e353=>'listType'==_0x147580['_getAttributeKey'](_0x26e353['suggestion']))||(_0x5861cc['removeMarker'](_0x4fea15['getFirstMarker']()),_0x3cb494=!0x0);}return _0x3cb494;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x22cae9){const _0x3d92f3=this['editor']['locale'],{data:_0x1fb0d1}=_0x22cae9,_0x1e80dd={'type':'format','content':''};if(!_0x1fb0d1||'listStyle'!=_0x1fb0d1['key'])return;if(!_0x1fb0d1['oldValue'])return'default'==_0x1fb0d1['newValue']?_0x1e80dd:{'type':'format','content':''+o(_0x3d92f3,'*Set\x20format:*\x20%0',o(_0x3d92f3,this['_getTranslationKeyForListStyle'](_0x1fb0d1['newValue'])))};if(!_0x1fb0d1['newValue']){if('default'==_0x1fb0d1['oldValue'])return _0x1e80dd;let _0x126261=_0x22cae9['head'];for(;_0x126261;){if(_0x126261['data']&&'listType'==_0x126261['data']['key']&&_0x126261['data']['newValue'])return _0x1e80dd;_0x126261=_0x126261['next'];}return{'type':'format','content':''+o(_0x3d92f3,'*Remove\x20format:*\x20%0',o(_0x3d92f3,this['_getTranslationKeyForListStyle'](_0x1fb0d1['oldValue'])))};}if('default'!=_0x1fb0d1['newValue'])return{'type':'format','content':''+o(_0x3d92f3,'*Set\x20format:*\x20%0',o(_0x3d92f3,this['_getTranslationKeyForListStyle'](_0x1fb0d1['newValue'])))};let _0xae6272=_0x22cae9['head'];for(;_0xae6272;){if(_0xae6272['data']&&'listType'==_0xae6272['data']['key']&&_0xae6272['data']['newValue']&&_0xae6272['data']['oldValue'])return _0x1e80dd;_0xae6272=_0xae6272['next'];}return{'type':'format','content':o(_0x3d92f3,'*Set\x20format:*\x20%0',o(_0x3d92f3,'ELEMENT_'+_0x22cae9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x347081=this['editor'],_0x31e919=_0x347081['locale'];_0x347081['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1892=>{if('formatBlock'!=_0x3d1892['type'])return;const {data:_0xff4ba0}=_0x3d1892;if(!_0xff4ba0)return;let _0x14758d,_0x3a2e82;switch(_0xff4ba0['commandName']){case'listStyle':_0x14758d='*Change\x20to:*\x20%0',_0x3a2e82={'type':'format','content':o(_0x31e919,_0x14758d,o(_0x31e919,this['_getTranslationKeyForListStyle'](_0xff4ba0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14758d=_0xff4ba0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a2e82={'type':'format','content':o(_0x31e919,_0x14758d)};break;case'listStart':_0x14758d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a2e82={'type':'format','content':o(_0x31e919,_0x14758d,_0xff4ba0['commandParams'][0x0]['startIndex'])};}return _0x3a2e82;});}['_getTranslationKeyForListStyle'](_0x7565c3){return'ELEMENT_'+function(_0x521cf5){if(Se['includes'](_0x521cf5))return'bulleted';if(_e['includes'](_0x521cf5))return'numbered';return null;}(_0x7565c3)['toUpperCase']()+'_LIST_'+_0x7565c3['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xd3eebf{static get['requires'](){return[_0x3d14b1];}['init'](){const _0x3187ac=this['editor'],_0x36194d=_0x3187ac['plugins']['get']('TrackChangesEditing'),_0x199d6e=_0x3187ac['commands']['get']('enter');_0x36194d['enableCommand']('enter',()=>{_0x3187ac['model']['change'](_0xa609eb=>{const _0x120497=_0x3187ac['model']['document']['selection'],_0x3ac0a6=_0x120497['getFirstPosition'](),_0x2d0866=_0x2bc62b['fromRange'](_0x120497['getFirstRange']());if(_0x199d6e['enterBlock'](_0xa609eb)){const _0x184927=_0x3187ac['model']['createPositionAt'](_0x3ac0a6['parent']['nextSibling'],0x0),_0x139293=_0xa609eb['createRange'](_0x3ac0a6,_0x184927);_0x36194d['markInsertion'](_0x139293);}else _0xa609eb['setSelection'](_0xa609eb['createRange'](_0x2d0866['end']));_0x2d0866['detach'](),_0x199d6e['fire']('afterExecute',{'writer':_0xa609eb});});}),_0x3187ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x3187ac,'split'),{'priority':'high'}),_0x3187ac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xf8f83b,_0x539ddb,_0x4b8306)=>{const _0x5a4264=_0x4b8306['mapper']['markerNameToElements'](_0x539ddb['markerName']);if(_0x5a4264){for(const _0x2a3c3a of _0x5a4264)_0x2a3c3a['hasClass']('ck-suggestion-marker-split')&&(_0x4b8306['mapper']['unbindElementFromMarkerName'](_0x2a3c3a,_0x539ddb['markerName']),_0x4b8306['writer']['remove'](_0x2a3c3a));}},{'priority':'high'}),_0x3187ac['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5dc9d7,_0x2c31a8,_0x72476e)=>{_0x72476e['options']['showSuggestionHighlights']&&Ne(_0x3187ac,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5dc9d7,_0x2c31a8,_0x72476e);},{'priority':'high'});}}class Y extends _0xd3eebf{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1ae324=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ae324['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1ae324['enableCommand']('findNext'),_0x1ae324['enableCommand']('findPrevious'),_0x1ae324['enableCommand']('replace'),_0x1ae324['enableCommand']('replaceAll');}['handleFindCommand'](_0x1d0ce0,_0x5c4d66,_0x27cfb1={}){const _0x3017f7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1d0ce0(_0x1bc553=>{let _0x1622a3=('string'==typeof _0x5c4d66?_0x3017f7['findByTextCallback'](_0x5c4d66,_0x27cfb1):_0x5c4d66)(_0x1bc553);Array['isArray'](_0x1622a3)&&(_0x1622a3={'results':_0x1622a3,'searchText':'string'==typeof _0x5c4d66?_0x5c4d66:''});const _0x732908=_0x1622a3['results']['filter'](_0x55d9e3=>!0x1===this['_isInDeletionRange'](_0x55d9e3,_0x1bc553['item']));return{..._0x1622a3,'results':_0x732908};},_0x27cfb1);}['_isInDeletionRange'](_0x5bfbb5,_0x3162c6){const _0x50a326=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3162c6,_0x5bfbb5['start']),this['editor']['model']['createPositionAt'](_0x3162c6,_0x5bfbb5['end']));for(const _0x2595a6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x50a326['getIntersection'](_0x2595a6['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0xd3eebf{['afterInit'](){const _0x51306c=this['editor']['locale'],_0x40c55b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1d96f3,commandName:_0x2b6a49}of ro)this['editor']['plugins']['has'](_0x1d96f3)&&(_0x40c55b['enableDefaultAttributesIntegration'](_0x2b6a49),_0x40c55b['registerInlineAttribute'](_0x2b6a49));_0x40c55b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x51306c,'FORMAT_FONT_SIZE')),_0x40c55b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x51306c,'FORMAT_FONT_FAMILY')),_0x40c55b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x51306c,'FORMAT_FONT_COLOR')),_0x40c55b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x51306c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b5e5a=this['editor'],_0x145551=_0x3b5e5a['locale'];_0x3b5e5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x490bc7=>{const _0x31028d=_0x145551['t'];if('formatInline'!=_0x490bc7['type'])return;const {data:_0x4ceea6}=_0x490bc7;if(null!=_0x4ceea6){if('fontSize'==_0x4ceea6['commandName']){const _0x75332d=_0x4ceea6['commandParams'][0x0]['value'];if(_0x75332d){const _0x27f1be=_0x31028d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x52c340=>_0x52c340['model']==_0x75332d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x145551,'*Set\x20font\x20size:*\x20%0',_0x27f1be)};}return{'type':'format','content':o(_0x145551,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4ceea6['commandName']){const _0x392468=_0x4ceea6['commandParams'][0x0]['value'];return _0x392468?{'type':'format','content':o(_0x145551,'*Set\x20font\x20family:*\x20%0',_0x392468)}:{'type':'format','content':o(_0x145551,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4ceea6['commandName']){const _0x969cf0=_0x4ceea6['commandParams'][0x0]['value'];if(_0x969cf0){const _0x4dfb37=_0x55e7ee(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5768a2=>_0x5768a2['model']==_0x969cf0);let _0x37eefd=_0x969cf0,_0x32e587='';return _0x4dfb37&&(_0x37eefd=_0x4dfb37['label'],_0x32e587=_0x31028d(_0x37eefd)['toLowerCase']()),{'type':'format','content':o(_0x145551,'*Set\x20font\x20color:*\x20%0',_0x32e587)['trim'](),'color':{'value':_0x969cf0,'title':_0x32e587||_0x37eefd}};}return{'type':'format','content':o(_0x145551,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4ceea6['commandName']){const _0x392b87=_0x4ceea6['commandParams'][0x0]['value'];if(_0x392b87){const _0x492271=_0x55e7ee(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5580e2=>_0x5580e2['model']==_0x392b87);let _0x2a5769=_0x392b87,_0x3dde87='';return _0x492271&&(_0x2a5769=_0x492271['label'],_0x3dde87=_0x31028d(_0x2a5769)['toLowerCase']()),{'type':'format','content':o(_0x145551,'*Set\x20font\x20background\x20color:*\x20%0',_0x3dde87)['trim'](),'color':{'value':_0x392b87,'title':_0x3dde87||_0x2a5769}};}return{'type':'format','content':o(_0x145551,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0xd3eebf{['afterInit'](){const _0x3c01c2=this['editor'],_0x28d498=_0x3c01c2['plugins']['get']('TrackChangesEditing'),_0xcf06d0=_0x3c01c2['commands']['get']('copyFormat'),_0x259717=_0x3c01c2['commands']['get']('pasteFormat');_0xcf06d0&&_0x259717&&(_0x28d498['enableDefaultAttributesIntegration']('pasteFormat'),_0x28d498['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5b4b2e=this['editor'],_0x32651b=_0x5b4b2e['locale'];_0x5b4b2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aa5ca=>{if('formatBlock'!=_0x1aa5ca['type']&&'formatInline'!=_0x1aa5ca['type'])return;const {data:_0x3a519e}=_0x1aa5ca;if(_0x3a519e&&'pasteFormat'===_0x3a519e['commandName']){const _0x26bfcf=[],_0x228b0e=_0x3a519e['commandParams'][0x0];for(const [_0x82ff74,_0x102a86]of Object['entries'](_0x228b0e))_0x26bfcf['push'](so(_0x5b4b2e,_0x82ff74,_0x102a86));return _0x26bfcf['length']?{'type':'format','content':o(_0x32651b,'*Set\x20format\x20to:*\x20%0',_0x26bfcf['join'](',\x20'))}:{'type':'format','content':o(_0x32651b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5593c9,_0x2ca9c8,_0x471bfa){const _0x7d34b=_0x5593c9['locale']['t'],_0x591507=_0x2ca9c8['split'](/(?=[A-Z])/)['join']('\x20'),_0x51cada=_0x7d34b(_0x591507['charAt'](0x0)['toUpperCase']()+_0x591507['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x471bfa)return _0x51cada;if('fontColor'===_0x2ca9c8||'fontBackgroundColor'===_0x2ca9c8){const _0x1317b3=_0x55e7ee(_0x5593c9['config']['get']('fontColor.colors'))['find'](_0xbbf004=>_0xbbf004['model']==_0x471bfa);return _0x51cada+'\x20('+(_0x1317b3?_0x7d34b(_0x1317b3['label'])['toLowerCase']():_0x471bfa)+')';}if('fontSize'===_0x2ca9c8&&isNaN(parseFloat(_0x471bfa))){const _0x3fe6d1=_0x5593c9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5593c9['config']['get']('fontSize.options'))['find'](_0x373bbe=>_0x373bbe['model']==_0x471bfa);return _0x51cada+'\x20('+(_0x3fe6d1?_0x7d34b(_0x3fe6d1['title'])['toLowerCase']():_0x471bfa)+')';}return _0x51cada+'\x20('+_0x471bfa+')';}class nt extends _0xd3eebf{['_headingOptions'];['afterInit'](){const _0x136592=this['editor'];if(!_0x136592['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x136592['config']['get']('heading.options');const _0x4cf460=_0x136592['locale'],_0x1a541b=_0x136592['plugins']['get']('TrackChangesEditing');_0x1a541b['enableDefaultAttributesIntegration']('heading');for(const _0x361d84 of this['_headingOptions'])'paragraph'!=_0x361d84['model']&&_0x1a541b['descriptionFactory']['registerElementLabel'](_0x361d84['model'],_0x44cba2=>{const _0x297ee8=this['_getHeadingLevel'](_0x361d84['model']);return null!==_0x297ee8?_0x20bd8a(_0x44cba2,_0x297ee8):_0x281fd3(_0x44cba2,_0x361d84['title']);});function _0x20bd8a(_0xb47215,_0x33fa43){return o(_0x4cf460,'ELEMENT_HEADING',[_0xb47215,_0x33fa43]);}function _0x281fd3(_0x4d392b,_0x151009){return o(_0x4cf460,'ELEMENT_HEADING_CUSTOM',[_0x4d392b,_0x151009]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a96fd=this['editor'],_0x5c6d44=_0x4a96fd['locale'];function _0x3e72e6(_0x370718,_0xac14d6){return o(_0x5c6d44,'ELEMENT_HEADING_CUSTOM',[_0x370718,_0xac14d6]);}_0x4a96fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c5a65=>{if('formatBlock'!=_0x5c5a65['type'])return;const {data:_0x3109cc}=_0x5c5a65;if(_0x3109cc&&'heading'==_0x3109cc['commandName']){const _0x1b5251=_0x3109cc['commandParams'][0x0]['value'],_0x56f94f=this['_getHeadingLevel'](_0x1b5251);if(null!==_0x56f94f)return{'type':'format','content':o(_0x5c6d44,'*Change\x20to:*\x20%0',(_0x2dae2e=0x1,_0xb6b665=_0x56f94f,o(_0x5c6d44,'ELEMENT_HEADING',[_0x2dae2e,_0xb6b665])))};const _0x5db2f1=this['_headingOptions']['find'](_0x3fb2f6=>_0x3fb2f6['model']===_0x1b5251)['title'];return{'type':'format','content':o(_0x5c6d44,'*Change\x20to:*\x20%0',_0x3e72e6(0x1,_0x5db2f1))};}var _0x2dae2e,_0xb6b665;});}['_getHeadingLevel'](_0x3af48d){const _0x15d074=_0x3af48d['match'](/^heading(\d+)/);if(_0x15d074)return _0x15d074[0x1];const _0x5b5d21=this['_headingOptions']?.['find'](_0x596ea1=>_0x596ea1['model']==_0x3af48d);if(_0x5b5d21&&_0x5b5d21['view']){const _0x55a585=_0x5b5d21['view'],_0x232a68=(_0x55a585['name']??_0x55a585)['match'](/^h(\d+)/);if(_0x232a68)return _0x232a68[0x1];}return null;}}class it extends _0xd3eebf{['afterInit'](){const _0x4efb2c=this['editor'];if(!_0x4efb2c['plugins']['has']('HighlightEditing'))return;const _0x33e268=_0x4efb2c['plugins']['get']('TrackChangesEditing'),_0x1f18c4=_0x4efb2c['locale'];_0x33e268['enableDefaultAttributesIntegration']('highlight'),_0x33e268['registerInlineAttribute']('highlight'),_0x33e268['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1f18c4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x545590=this['editor'],_0x2bafdb=_0x545590['locale'];_0x545590['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c3abd=>{if('formatInline'!=_0x4c3abd['type'])return;const {data:_0x29c447}=_0x4c3abd;if(_0x29c447&&'highlight'==_0x29c447['commandName']){const _0x3da874=_0x2bafdb['t'],_0x49fb17=_0x29c447['commandParams'][0x0]['value'];if(_0x49fb17){const _0x3d5828=_0x545590['config']['get']('highlight.options')['find'](_0x1c0626=>_0x1c0626['model']==_0x49fb17),_0x4108f8=_0x3da874(_0x3d5828['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bafdb,'*Set\x20highlight:*\x20%0',_0x4108f8),'color':{'value':_0x3d5828['color'],'title':_0x3d5828['title']}};}return{'type':'format','content':o(_0x2bafdb,'*Remove\x20highlight*',o(_0x2bafdb,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0xd3eebf{['afterInit'](){const _0x5e57ae=this['editor'];if(!_0x5e57ae['plugins']['has']('HorizontalLineEditing'))return;_0x5e57ae['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x17304b=_0x5e57ae['plugins']['get']('TrackChangesEditing'),_0x107279=_0x5e57ae['locale'];_0x17304b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x45aa4c=>o(_0x107279,'ELEMENT_HORIZONTAL_LINE',_0x45aa4c)),_0x5e57ae['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x64d240,{writer:_0x2cce31,options:_0x28baf6})=>{if(!_0x28baf6['showSuggestionHighlights'])return null;const _0x39e09b=_0x2cce31['createContainerElement']('div'),_0x38df39=_0x2cce31['createEmptyElement']('hr');return _0x2cce31['addClass']('ck-horizontal-line',_0x39e09b),_0x2cce31['insert'](_0x2cce31['createPositionAt'](_0x39e09b,0x0),_0x38df39),_0x39e09b;},'converterPriority':'high'});}}class st extends _0xd3eebf{['afterInit'](){const _0xecb39e=this['editor'];if(!_0xecb39e['plugins']['has']('HtmlEmbed'))return;const _0x4aebcc=_0xecb39e['plugins']['get']('TrackChangesEditing'),_0x2d043d=_0xecb39e['locale'];_0x4aebcc['descriptionFactory']['registerElementLabel']('rawHtml',_0x459933=>o(_0x2d043d,'ELEMENT_HTML_EMBED',_0x459933)),_0x4aebcc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4aebcc['registerBlockAttribute']('value'),_0x4aebcc['descriptionFactory']['registerDescriptionCallback'](_0x2033b7=>{if('attribute'!=_0x2033b7['type'])return;const {data:_0x5261ae}=_0x2033b7;if(_0x5261ae&&'value'==_0x5261ae['key']&&_0x2033b7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5d1286=o(_0x2d043d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d043d,'*Change\x20%0\x20content*',_0x5d1286)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e29a5=this['editor'],_0x534e56=_0x2e29a5['locale'];_0x2e29a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25f46a=>{if('formatBlock'!=_0x25f46a['type'])return;const {data:_0x49ecc5}=_0x25f46a;if(_0x49ecc5&&'htmlEmbed'==_0x49ecc5['commandName']){const _0x41853c=o(_0x534e56,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x534e56,'*Change\x20%0\x20content*',_0x41853c)};}});}}class ot extends _0xd3eebf{['afterInit'](){const _0x6a3993=this['editor'];if(!_0x6a3993['plugins']['has']('ImageEditing'))return;const _0x3a75dc=_0x6a3993['plugins']['get']('TrackChangesEditing'),_0x7bc7f9=_0x6a3993['plugins']['get']('ImageUtils'),_0x5a1be5=_0x6a3993['locale'];_0x3a75dc['enableCommand']('insertImage'),_0x3a75dc['descriptionFactory']['registerElementLabel']('imageBlock',_0x26ce04=>o(_0x5a1be5,'ELEMENT_IMAGE',_0x26ce04)),_0x3a75dc['descriptionFactory']['registerElementLabel']('imageInline',_0x2ef5e0=>o(_0x5a1be5,'ELEMENT_INLINE_IMAGE',_0x2ef5e0)),_0x3a75dc['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5a1be5,'ELEMENT_CAPTION')),_0x6a3993['plugins']['has']('ImageUploadEditing')&&_0x3a75dc['enableCommand']('uploadImage'),_0x6a3993['plugins']['has']('ImageBlockEditing')&&_0x6a3993['plugins']['has']('ImageInlineEditing')&&(_0x3a75dc['enableCommand']('imageTypeInline',(_0x2f23a7,_0x5a9ffc)=>{const _0x5ea386=_0x7bc7f9['getClosestSelectedImageElement'](_0x6a3993['model']['document']['selection']);_0x6a3993['model']['change'](()=>{_0x3a75dc['markBlockFormat'](_0x5ea386,{'commandName':'imageTypeInline','commandParams':[_0x5a9ffc]},[],'convertBlockImageToInline');});}),_0x3a75dc['enableCommand']('imageTypeBlock',(_0xa284d6,_0x25f45b)=>{_0x6a3993['model']['change'](_0x3cd8ab=>{let _0x3ddcee=_0x7bc7f9['getClosestSelectedImageElement'](_0x6a3993['model']['document']['selection']),_0x464dcc=_0x3cd8ab['createRangeOn'](_0x3ddcee);const _0x1afe1d=_0x512bd2['fromPosition'](_0x464dcc['start'],'toPrevious'),_0x5c0e08=_0x512bd2['fromPosition'](_0x464dcc['end'],'toNext');_0x3a75dc['forceDefaultExecution'](()=>_0xa284d6(_0x25f45b)),_0x3ddcee=_0x7bc7f9['getClosestSelectedImageElement'](_0x6a3993['model']['document']['selection']),_0x464dcc=_0x3cd8ab['createRangeOn'](_0x3ddcee);const _0x3837ed=_0x3cd8ab['createRange'](_0x1afe1d,_0x5c0e08);_0x1afe1d['detach'](),_0x5c0e08['detach'](),_0x3a75dc['markBlockFormat'](_0x3ddcee,{'commandName':'imageTypeInline','commandParams':[_0x25f45b]},[],'convertInlineImageToBlock'),_0x3837ed['start']['isBefore'](_0x464dcc['start'])&&_0x3a75dc['markInsertion'](_0x3cd8ab['createRange'](_0x3837ed['start'],_0x464dcc['start']),'convertInlineImageToBlock'),_0x464dcc['end']['isBefore'](_0x3837ed['end'])&&_0x3a75dc['markInsertion'](_0x3cd8ab['createRange'](_0x464dcc['end'],_0x3837ed['end']),'convertInlineImageToBlock');});}),_0x3a75dc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3a75dc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3a75dc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3a75dc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3a75dc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3a75dc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2726a3])=>{const _0x2911b3=_0x3a75dc['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x25a429=_0x2726a3['start'],_0x2f4f8d=_0x2726a3['end'];const _0x391aae=_0x6a3993['model']['schema']['getNearestSelectionRange'](_0x25a429,'backward'),_0x331d52=_0x6a3993['model']['schema']['getNearestSelectionRange'](_0x2f4f8d,'forward');_0x391aae['isCollapsed']&&(_0x25a429=_0x391aae['start']),_0x331d52['isCollapsed']&&(_0x2f4f8d=_0x331d52['end']),_0x2911b3([_0x6a3993['model']['createRange'](_0x25a429,_0x2f4f8d)]);}),_0x3a75dc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x576c14),_0x3a75dc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x576c14)),_0x6a3993['plugins']['has']('ImageCaptionEditing')&&(_0x3a75dc['enableCommand']('toggleImageCaption',(_0x5b3c9f,_0x2184eb)=>{const _0x5baadd=_0x6a3993['plugins']['get']('ImageCaptionUtils');let _0x4f23f8=_0x7bc7f9['getClosestSelectedImageElement'](_0x6a3993['model']['document']['selection']),_0x40c209=_0x5baadd['getCaptionFromImageModelElement'](_0x4f23f8);_0x6a3993['model']['change'](()=>{if(_0x40c209)return void _0x3a75dc['markDeletion'](_0x6a3993['model']['createRangeOn'](_0x40c209));const _0x84dbec=_0x7bc7f9['isBlockImage'](_0x4f23f8);_0x5b3c9f(_0x2184eb),_0x4f23f8=_0x7bc7f9['getClosestSelectedImageElement'](_0x6a3993['model']['document']['selection']),_0x40c209=_0x5baadd['getCaptionFromImageModelElement'](_0x4f23f8),_0x3a75dc['markInsertion'](_0x6a3993['model']['createRangeOn'](_0x40c209),_0x84dbec?null:'imageCaption');});}),_0x3a75dc['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x576c14));const _0x4579d9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47fa0f(_0x551e30,_0xbb7ca8){const _0x6655e3=_0x4579d9['findIndex'](({type:_0x164580,subType:_0x38b51f})=>_0x551e30['type']==_0x164580&&_0x551e30['subType']==_0x38b51f),_0x109ae9=_0x4579d9['findIndex'](({type:_0x3c4d0e,subType:_0x4410f0})=>_0xbb7ca8['type']==_0x3c4d0e&&_0xbb7ca8['subType']==_0x4410f0);if(_0x6655e3<0x0||_0x109ae9<0x0)return!0x1;const _0xa4e218=_0x551e30['getFirstRange'](),_0x35d28f=_0xbb7ca8['getFirstRange']();if((0x0==_0x6655e3||0x1==_0x6655e3)&&0x2==_0x109ae9&&_0xa4e218['isIntersecting'](_0x35d28f))return!0x0;if(0x2==_0x6655e3&&0x3==_0x109ae9){const _0xc88ec7=_0x3a75dc['_findSuggestions'](_0xa4e218,'insertion')['filter'](({suggestion:_0x53eac4,meta:_0x56399c})=>_0x56399c['isOwn']&&'convertInlineImageToBlock'==_0x53eac4['subType']);if(_0xc88ec7['length']>0x1&&_0x35d28f['end']['isEqual'](_0xa4e218['start']))return!0x0;if(0x1==_0xc88ec7['length']&&(_0xa4e218['start']['isEqual'](_0x35d28f['end'])||_0xa4e218['end']['isEqual'](_0x35d28f['start'])))return!0x0;}if(0x3==_0x6655e3&&0x3==_0x109ae9&&_0xa4e218['start']['isBefore'](_0x35d28f['start'])){const _0x45558a=_0xa4e218['end']['nodeAfter'],_0xa832ff=_0x35d28f['start']['nodeBefore'];return _0x7bc7f9['isBlockImage'](_0x45558a)&&_0x45558a===_0xa832ff;}return!0x1;}function _0x576c14(_0xa9dafc,_0x6ae5c6){return _0x47fa0f(_0xa9dafc,_0x6ae5c6)?[_0xa9dafc,_0x6ae5c6]:_0x47fa0f(_0x6ae5c6,_0xa9dafc)?[_0x6ae5c6,_0xa9dafc]:null;}_0x6a3993['plugins']['has']('ImageResize')&&(_0x3a75dc['enableDefaultAttributesIntegration']('resizeImage'),_0x3a75dc['registerBlockAttribute']('resizedWidth'),_0x3a75dc['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5a1be5,'FORMAT_IMAGE_SIZE'))),_0x6a3993['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3a75dc['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3a75dc['registerBlockAttribute']('alt')),_0x3a75dc['descriptionFactory']['registerDescriptionCallback'](_0x417be8=>{if(!!_0x4579d9['find'](({type:_0x1263ff,subType:_0x5cd856})=>_0x417be8['type']==_0x1263ff&&_0x417be8['subType']==_0x5cd856))return _0x417be8['previous']?{}:void 0x0;}),_0x3a75dc['descriptionFactory']['registerDescriptionCallback'](_0x145dc1=>{if('insertion'==_0x145dc1['type']||'deletion'==_0x145dc1['type']){const _0x487535=_0x145dc1['getContainedElement']();if(_0x487535&&_0x487535['is']('element','caption'))return{'type':'insertion'==_0x145dc1['type']?'addObject':'removeObject','element':_0x487535,'quantity':0x1};}}),_0x3a75dc['descriptionFactory']['registerDescriptionCallback'](_0x4bae87=>'formatBlock'==_0x4bae87['type']&&'convertInlineImageToBlock'==_0x4bae87['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4bae87['type']&&'convertBlockImageToInline'==_0x4bae87['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3a75dc['descriptionFactory']['registerDescriptionCallback'](_0x10dbe4=>{if('attribute'!=_0x10dbe4['type'])return;const {data:_0x42154d}=_0x10dbe4;if(!_0x42154d||'alt'!=_0x42154d['key'])return;const _0x34a4cf=_0x42154d['newValue'];return _0x34a4cf?{'type':'format','content':o(_0x5a1be5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34a4cf+'\x22')}:{'type':'format','content':o(_0x5a1be5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19ecf4=this['editor'],_0x35170a=_0x19ecf4['locale'];_0x19ecf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfd85a1=>{if('formatBlock'!=_0xfd85a1['type']&&'formatInline'!=_0xfd85a1['type'])return;const {data:_0x37b92a}=_0xfd85a1;if(_0x37b92a){if('imageTextAlternative'==_0x37b92a['commandName']){const _0x45e448=_0x37b92a['commandParams'][0x0]['newValue'];return _0x45e448?{'type':'format','content':o(_0x35170a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x45e448+'\x22')}:{'type':'format','content':o(_0x35170a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x37b92a['commandName']){const _0x5e6575=_0x37b92a['commandParams'][0x0]['width'];return _0x5e6575?{'type':'format','content':o(_0x35170a,'*Set\x20image\x20width:*\x20%0',_0x5e6575)}:{'type':'format','content':o(_0x35170a,'*Reset\x20image\x20width*')};}}});}}class rt extends _0xd3eebf{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x101d82=this['editor']['locale'],_0x5dc614=this['editor']['plugins']['get']('TrackChangesEditing');_0x5dc614['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5dc614['registerBlockAttribute']('src'),_0x5dc614['descriptionFactory']['registerDescriptionCallback'](_0x5da9ac=>{if('attribute'!=_0x5da9ac['type'])return;const {data:_0x569a0e}=_0x5da9ac;return _0x569a0e&&'src'==_0x569a0e['key']?_0x569a0e['newValue']&&_0x569a0e['oldValue']?{'type':'format','content':o(_0x101d82,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3dbb30=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dbb30['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3dbb30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3dbb30['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3dbb30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1382dc=this['editor'],_0x45735c=_0x1382dc['locale'];_0x1382dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f14a6=>{if('formatBlock'!=_0x2f14a6['type']&&'formatInline'!=_0x2f14a6['type'])return;const {data:_0x3e933b}=_0x2f14a6;if(!_0x3e933b||'replaceImageSource'!=_0x3e933b['commandName'])return;return{'type':'format','content':o(_0x45735c,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0xd3eebf{['afterInit'](){const _0xa809aa=this['editor'];if(!_0xa809aa['plugins']['has']('ImageStyleEditing'))return;const _0x1daac0=_0xa809aa['plugins']['get']('TrackChangesEditing'),_0x4026e9=_0xa809aa['plugins']['get']('ImageUtils'),_0x4d7f00={};_0x1daac0['enableCommand']('imageStyle',(_0x45f510,_0x34e24b)=>{const _0x16cbaa=_0xa809aa['plugins']['get']('Users')['me'],_0xbd7b58=_0xa809aa['commands']['get']('imageStyle');let _0x5df92e=_0x4026e9['getClosestSelectedImageElement'](_0xa809aa['model']['document']['selection']),_0x586c3a=_0xa809aa['model']['createRangeOn'](_0x5df92e),_0x2ef57f=_0xbd7b58['value'];if(_0x2ef57f==_0x34e24b['value'])return;const _0x153174={'commandName':'imageStyle','commandParams':[_0x34e24b],'formatGroupId':_0x2b70c4()};_0xa809aa['model']['change'](()=>{if(_0x1daac0['getSuggestions']()['filter'](_0x30387d=>_0x30387d['isInContent']&&_0x16cbaa==_0x30387d['author']&&('formatBlock'==_0x30387d['type']||'formatInline'==_0x30387d['type'])&&('imageStylePreApply'==_0x30387d['subType']||'imageStylePostApply'==_0x30387d['subType'])&&_0x30387d['getFirstRange']()['isEqual'](_0x586c3a))['forEach'](_0x591048=>_0x1daac0['discardSuggestion'](_0x591048['head'])),_0x5df92e=_0x4026e9['getClosestSelectedImageElement'](_0xa809aa['model']['document']['selection']),_0x586c3a=_0xa809aa['model']['createRangeOn'](_0x5df92e),_0xbd7b58['refresh'](),_0xa809aa['commands']['get']('imageTypeInline')['refresh'](),_0xa809aa['commands']['get']('imageTypeBlock')['refresh'](),_0x2ef57f=_0xbd7b58['value'],_0x2ef57f!=_0x34e24b['value'])return _0x4026e9['isInlineImage'](_0x5df92e)&&_0xbd7b58['shouldConvertImageType'](_0x34e24b['value'],_0x5df92e)?(_0x45f510({..._0x34e24b,'setImageSizes':!0x1}),_0x5df92e=_0x4026e9['getClosestSelectedImageElement'](_0xa809aa['model']['document']['selection']),void _0x1daac0['markBlockFormat'](_0x5df92e,{..._0x153174,'commandReversedParams':[{'value':_0x2ef57f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4026e9['isBlockImage'](_0x5df92e)?_0x1daac0['markBlockFormat'](_0x5df92e,_0x153174,[],'imageStylePostApply'):_0x1daac0['markInlineFormat'](_0x586c3a,_0x153174,'imageStylePostApply'));});});for(const _0x10db60 of _0xa809aa['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4d7f00[_0x10db60['name']]=_0x10db60['title']['toLowerCase']();_0x1daac0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1daac0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1daac0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1daac0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x244556])=>{_0x4026e9['setImageNaturalSizeAttributes'](_0x244556['getContainedElement']());}),_0x1daac0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x13e25b,_0x5bf6af)=>{_0x1daac0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x13e25b,{'commandName':_0x5bf6af['commandName'],'commandParams':_0x5bf6af['commandReversedParams']});}),_0x1daac0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5db63f,_0x54fa6d){if(_0x110da2(_0x5db63f,_0x54fa6d))return[_0x5db63f,_0x54fa6d];if(_0x110da2(_0x54fa6d,_0x5db63f))return[_0x54fa6d,_0x5db63f];return null;});const _0x2e587d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x110da2(_0x534e42,_0x2e2211){const _0x3ee3b4=_0x2e587d['findIndex'](({type:_0x48f72b,subType:_0x5359ca})=>_0x534e42['type']==_0x48f72b&&_0x534e42['subType']==_0x5359ca),_0x40aaca=_0x2e587d['findIndex'](({type:_0x38c9ef,subType:_0x254386})=>_0x2e2211['type']==_0x38c9ef&&_0x2e2211['subType']==_0x254386);if(_0x3ee3b4<0x0||_0x40aaca<0x0)return!0x1;const _0x5a0d03=_0x534e42['getFirstRange'](),_0x140bf1=_0x2e2211['getFirstRange']();if((0x0==_0x3ee3b4||0x1==_0x3ee3b4)&&0x2==_0x40aaca&&_0x5a0d03['isIntersecting'](_0x140bf1))return!0x0;if(0x2==_0x3ee3b4&&0x3==_0x40aaca){const _0x35fed5=_0x1daac0['_findSuggestions'](_0x5a0d03,'insertion')['filter'](({suggestion:_0x583203,meta:_0x4b7a90})=>_0x4b7a90['isOwn']&&'convertInlineImageToBlock'==_0x583203['subType']);if(_0x35fed5['length']>0x1&&_0x140bf1['end']['isEqual'](_0x5a0d03['start']))return!0x0;if(0x1==_0x35fed5['length']&&(_0x5a0d03['start']['isEqual'](_0x140bf1['end'])||_0x5a0d03['end']['isEqual'](_0x140bf1['start'])))return!0x0;}if(0x3==_0x3ee3b4&&0x3==_0x40aaca&&_0x5a0d03['start']['isBefore'](_0x140bf1['start'])){const _0x4381a2=_0x5a0d03['end']['nodeAfter'],_0x70fe08=_0x140bf1['start']['nodeBefore'];return _0x4026e9['isBlockImage'](_0x4381a2)&&_0x4381a2===_0x70fe08;}return!0x1;}_0xa809aa['model']['document']['registerPostFixer'](()=>{let _0x7d27cb=!0x1;const _0x4dc5d4=Array['from'](_0xa809aa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5aec8c,data:_0x232401}of _0x4dc5d4){const {group:_0x8de832,type:_0x281b06,subType:_0x7a2697,id:_0x25b5cc}=_0x1daac0['_splitMarkerName'](_0x5aec8c);if('suggestion'==_0x8de832&&_0x1daac0['hasSuggestion'](_0x25b5cc)){if('formatBlock'==_0x281b06&&('imageStylePreApply'==_0x7a2697||'imageStylePostApply'==_0x7a2697)){const _0xccaa63=_0x1daac0['getSuggestion'](_0x25b5cc);if(_0x232401['newRange']){const _0x3dc9cc=_0xccaa63['getFirstRange']()['getContainedElement']();if(_0x4026e9['isBlockImage'](_0x3dc9cc))continue;_0x1daac0['discardSuggestion'](_0xccaa63),_0x7d27cb=!0x0;}}if('insertion'==_0x281b06&&'imageCaption'==_0x7a2697&&!_0x232401['newRange']){const _0x1d6ce3=_0x1daac0['getSuggestion'](_0x25b5cc);_0x1d6ce3['next']&&_0x1d6ce3['next']['isInContent']&&(_0x1daac0['discardSuggestion'](_0x1d6ce3['next']),_0x7d27cb=!0x0);}}}return _0x7d27cb;}),this['_registerLegacyDescription'](_0x4d7f00);}['_registerLegacyDescription'](_0x40d5fb){const _0x5551f3=this['editor'],_0xaa4b27=_0x5551f3['locale'];_0x5551f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x229bde=>{if('formatBlock'!=_0x229bde['type']&&'formatInline'!=_0x229bde['type'])return;const {data:_0x44bbff}=_0x229bde;if(!_0x44bbff||'imageStyle'!=_0x44bbff['commandName'])return;const _0x36a842=_0x44bbff['commandParams'][0x0]['value'];return _0x4af232('side'===_0x36a842?o(_0xaa4b27,'FORMAT_SIDE_IMAGE'):_0x40d5fb[_0x36a842]||_0x36a842);function _0x4af232(_0x178626){return{'type':'format','content':o(_0xaa4b27,'*Format:*\x20%0',_0x178626)};}});}}class ct extends _0xd3eebf{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x385cc8){super(_0x385cc8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2914f5=this['editor'],_0x5d2121=_0x2914f5['commands']['get']('importWord'),_0x321afe=_0x2914f5['commands']['get']('trackChanges');_0x5d2121&&(_0x5d2121['on']('execute',(_0x1cc712,[,_0x459147])=>{this['_trackChangesValueDuringImport']=_0x321afe['value'],_0x459147['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5d2121,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5d2121,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x321afe['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2914f5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x55c438,_0x410660){const {suggestions:_0x2c9e3a}=_0x410660,_0x4c0ea7=this['editor']['commands']['get']('trackChanges'),_0x37d33=_0x4c0ea7['value'];this['_trackChangesValueDuringImport']!==_0x37d33&&(_0x4c0ea7['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c9e3a&&_0x2c9e3a['forEach'](({id:_0x40199d,type:_0xf97442,author:_0xf3dd09,created_at:_0x46066d})=>{const _0x202962={'id':_0x40199d,'type':_0xf97442,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xf3dd09,'createdAt':_0x46066d?new Date(_0x46066d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x202962);});}}class ut extends _0xd3eebf{['afterInit'](){const _0x47ab13=this['editor'],_0x24cb6a=_0x47ab13['plugins']['get']('TrackChangesEditing');if(_0x47ab13['plugins']['has']('IndentEditing')&&(_0x24cb6a['enableCommand']('indent'),_0x24cb6a['enableCommand']('outdent')),_0x47ab13['plugins']['has']('IndentBlock')){for(const _0x481b2e of['indentBlock','outdentBlock'])_0x24cb6a['enableDefaultAttributesIntegration'](_0x481b2e);}const _0x540bee=_0x47ab13['locale'];_0x24cb6a['registerBlockAttribute']('blockIndent'),_0x24cb6a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x540bee,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7abb41=this['editor'],_0x21583c=_0x7abb41['locale'],_0x40c753=_0x7abb41['plugins']['get']('TrackChangesEditing');_0x40c753['descriptionFactory']['registerDescriptionCallback'](_0x3d5193=>{if('formatBlock'!=_0x3d5193['type'])return;const {data:_0x467e7c}=_0x3d5193;if(!_0x467e7c)return;if('indentBlock'!=_0x467e7c['commandName']&&'outdentBlock'!=_0x467e7c['commandName'])return;const _0x2e85bb=_0x3d5193['getItems']()[0x0],_0x18eab6=_0x40c753['descriptionFactory']['getItemLabel'](_0x2e85bb);return'indentBlock'==_0x467e7c['commandName']?{'type':'format','content':o(_0x21583c,'*Indent:*\x20%0',_0x18eab6)}:'outdentBlock'==_0x467e7c['commandName']?{'type':'format','content':o(_0x21583c,'*Outdent:*\x20%0',_0x18eab6)}:void 0x0;});}}class ft extends _0xd3eebf{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0xd3eebf{['afterInit'](){const _0x568ae4=this['editor'];if(!_0x568ae4['plugins']['has']('LinkEditing'))return;const _0x46aa2d=_0x568ae4['plugins']['get']('TrackChangesEditing'),_0x4ebc6f=_0x568ae4['commands']['get']('link');_0x46aa2d['enableDefaultAttributesIntegration']('link'),_0x46aa2d['enableDefaultAttributesIntegration']('unlink'),_0x46aa2d['registerInlineAttribute']('linkHref');for(const _0x266a52 of _0x4ebc6f['manualDecorators'])_0x46aa2d['registerInlineAttribute'](_0x266a52['id']),_0x46aa2d['descriptionFactory']['registerAttributeLabel'](_0x266a52['id'],'link\x20('+_0x266a52['label']['toLowerCase']()+')');_0x46aa2d['descriptionFactory']['registerDescriptionCallback'](_0x78a6b7=>{if('attribute'!=_0x78a6b7['type'])return;const {data:_0x1bd24f}=_0x78a6b7;if(!_0x1bd24f||'linkHref'!=_0x1bd24f['key'])return;const _0xb11d2b=_0x1bd24f['newValue'],_0x466a17=_0x568ae4['locale'];return{'type':'format','content':null==_0xb11d2b?o(_0x466a17,'*Remove\x20link*'):o(_0x466a17,'*Set\x20link:*\x20%0','\x22'+_0xb11d2b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2228d6=this['editor'],_0x4e43bf=_0x2228d6['locale'];_0x2228d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a177f=>{if('formatInline'!=_0x4a177f['type'])return;const {data:_0x1500db}=_0x4a177f;if(_0x1500db){if('link'==_0x1500db['commandName']){const _0x3a4868=_0x1500db['commandParams'][0x0];return{'type':'format','content':o(_0x4e43bf,'*Set\x20link:*\x20%0','\x22'+_0x3a4868+'\x22')};}return'unlink'==_0x1500db['commandName']?{'type':'format','content':o(_0x4e43bf,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0xd3eebf{['afterInit'](){const _0x53049d=this['editor'],_0x414f41=_0x53049d['locale'];if(!_0x53049d['plugins']['has']('LegacyListEditing'))return;const _0xa24a9e=_0x53049d['plugins']['get']('TrackChangesEditing'),_0x170972=_0x53049d['plugins']['has']('LegacyTodoListEditing');function _0x29d117(_0x4d7d9e){return()=>{const _0x4ef5e1=_0x53049d['model']['document']['selection'],_0x38c6f1=_0x53049d['commands']['get'](_0x4d7d9e);if(_0x38c6f1['value'])return void _0x53049d['execute']('paragraph',{});const _0x45ffd3=_0x4d7d9e['slice'](0x0,-0x4),_0xde40fa=function(_0x10d75d,_0xb8cf05,_0xd6c7d1){let _0x4afd0b=Array['from'](_0x10d75d)['filter'](_0x5fa4fd=>function(_0x369de2,_0x5acd1f){return _0x5acd1f['checkChild'](_0x369de2['parent'],'listItem')&&!_0x5acd1f['isObject'](_0x369de2);}(_0x5fa4fd,_0xd6c7d1));_0x4afd0b=_0x4afd0b['filter'](_0x390a3b=>!_0x390a3b['is']('element','listItem')||_0x390a3b['getAttribute']('listType')!=_0xb8cf05);const _0x3e62ca=new Set();for(const _0x2a13b0 of _0x4afd0b)_0x2a13b0['is']('element','listItem')?_0x3e62ca['add'](Le(_0x2a13b0)):_0x3e62ca['add'](_0x2a13b0);return Array['from'](_0x3e62ca);}(_0x4ef5e1['getSelectedBlocks'](),_0x45ffd3,_0x53049d['model']['schema']);_0x53049d['model']['change'](()=>{for(const _0x4be2a1 of _0xde40fa)_0xa24a9e['markBlockFormat'](_0x4be2a1,{'commandName':_0x4d7d9e,'commandParams':[{'forceValue':!_0x38c6f1['value']}],'formatGroupId':'blockName'},Ee(_0x4be2a1));});};}function _0x16b46a(_0xf03e5){return()=>{const _0x4bea08=function(_0x5e5061){let _0x56d000=Array['from'](_0x5e5061);const _0x4e3264=_0x56d000['findIndex'](_0x51b08d=>'listItem'!=_0x51b08d['name']);return _0x4e3264>-0x1&&(_0x56d000=_0x56d000['slice'](0x0,_0x4e3264)),_0x56d000;}(_0x53049d['model']['document']['selection']['getSelectedBlocks']()),_0x233bd3=_0x53049d['model']['createRange'](_0x53049d['model']['createPositionAt'](_0x4bea08[0x0],'before'),_0x53049d['model']['createPositionAt'](_0x4bea08[_0x4bea08['length']-0x1],'end'));_0x53049d['model']['change'](()=>{_0xa24a9e['markBlockFormat'](_0x233bd3,{'commandName':_0xf03e5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5b8516){const _0x157cb8=new Set();for(const _0x5e9386 of _0x5b8516){let _0x5be81b=_0x5e9386['nextSibling'];for(;_0x5be81b&&_0x5be81b['getAttribute']('listIndent')>_0x5e9386['getAttribute']('listIndent');)_0x157cb8['add'](_0x5be81b),_0x5be81b=_0x5be81b['nextSibling'];}return Array['from'](_0x157cb8);}(_0x4bea08));});};}_0xa24a9e['enableCommand']('numberedList',_0x29d117('numberedList')),_0xa24a9e['enableCommand']('bulletedList',_0x29d117('bulletedList')),_0x170972&&_0xa24a9e['enableCommand']('todoList',_0x29d117('todoList')),_0xa24a9e['enableCommand']('indentList',_0x16b46a('indentList')),_0xa24a9e['enableCommand']('outdentList',_0x16b46a('outdentList')),_0x170972&&_0xa24a9e['enableCommand']('checkTodoList',()=>{const _0x1652c4=_0x53049d['commands']['get']('checkTodoList'),_0x195dde=Array['from'](_0x1652c4['_selectedElements']);_0x195dde['filter'](_0x1a6df2=>_0x1a6df2['getAttribute']('todoListChecked')!=_0x1652c4['value']),_0x53049d['model']['change'](()=>{for(const _0x16183f of _0x195dde)_0xa24a9e['markBlockFormat'](_0x16183f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1652c4['value']}]});});}),_0xa24a9e['descriptionFactory']['registerElementLabel']('listItem',_0x2dee86=>o(_0x414f41,'ELEMENT_LIST_ITEM',_0x2dee86)),_0xa24a9e['descriptionFactory']['registerDescriptionCallback'](_0x5337b8=>{if('formatBlock'!=_0x5337b8['type']&&'formatInline'!=_0x5337b8['type'])return;const {data:_0x28f7f7}=_0x5337b8;if(_0x28f7f7){if('numberedList'==_0x28f7f7['commandName']||'bulletedList'==_0x28f7f7['commandName']||'todoList'==_0x28f7f7['commandName'])switch(_0x28f7f7['commandName']['replace']('List','')){case'bulleted':return _0x3b5305(o(_0x414f41,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b5305(o(_0x414f41,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b5305(o(_0x414f41,'ELEMENT_TODO_LIST'));}if('indentList'==_0x28f7f7['commandName'])return{'type':'format','content':o(_0x414f41,'*Indent:*\x20%0',o(_0x414f41,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x28f7f7['commandName'])return{'type':'format','content':o(_0x414f41,'*Outdent:*\x20%0',o(_0x414f41,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x28f7f7['commandName'])return _0x28f7f7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x414f41,'*Check\x20item*')}:{'type':'format','content':o(_0x414f41,'*Uncheck\x20item*')};}function _0x3b5305(_0x6c7b38){return{'type':'format','content':o(_0x414f41,'*Change\x20to:*\x20%0',_0x6c7b38)};}});}}function Le(_0x2612ba){const _0xafac74=_0x2612ba['getAttribute']('listIndent');if(0x0==_0xafac74)return _0x2612ba;let _0x21de1b=_0x2612ba;for(;_0x2612ba['previousSibling']&&_0x2612ba['previousSibling']['is']('element','listItem');){const _0x2707ad=_0x2612ba['previousSibling']['getAttribute']('listIndent');if(_0x2707ad==_0xafac74)_0x21de1b=_0x2612ba['previousSibling'];else{if(_0x2707ad<_0xafac74)break;}_0x2612ba=_0x2612ba['previousSibling'];}return _0x21de1b;}function Ee(_0x84aa5b){const _0x1eaf66=[];if(_0x84aa5b['is']('element','listItem')&&_0x84aa5b['getAttribute']('listIndent')>0x0){let _0x17ed02=_0x84aa5b['nextSibling'];for(;_0x17ed02&&'listItem'==_0x17ed02['name']&&_0x17ed02['getAttribute']('listIndent')==_0x84aa5b['getAttribute']('listIndent');)_0x1eaf66['push'](_0x17ed02),_0x17ed02=_0x17ed02['nextSibling'];}return _0x1eaf66;}class Q extends _0xd3eebf{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x330a95=this['editor']['config']['get']('list.properties'),_0x586d4c=this['editor']['plugins']['get']('TrackChangesEditing');_0x330a95['styles']&&_0x586d4c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x330a95['reversed']&&_0x586d4c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x330a95['startIndex']&&_0x586d4c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x586d4c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x380a04,_0x4c923d={}){const _0xa23ccc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55d569=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xa23ccc['markMultiRangeBlockFormat'](_0x55d569,{'commandName':'listStyle','commandParams':[{'type':_0x4c923d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x43526c,_0x1e3906={}){const _0x5989ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44c67f=this['_getSuggestionBlocks'](_0x4db61c=>_0x4db61c['is']('element','listItem')&&'numbered'===_0x4db61c['getAttribute']('listType'));if(_0x44c67f['length']<0x1)return;const _0x33b40e=_0x44c67f['map'](_0x4836f8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4836f8,'before'),this['editor']['model']['createPositionAt'](_0x4836f8,0x0)));this['editor']['model']['change'](()=>{_0x5989ff['markMultiRangeBlockFormat'](_0x33b40e,{'commandName':'listReversed','commandParams':[{'reversed':_0x1e3906['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x73cf6,_0x5f284a={}){const _0x116516=this['editor']['plugins']['get']('TrackChangesEditing'),_0x278625=this['_getSuggestionBlocks'](_0x167e4b=>_0x167e4b['is']('element','listItem')&&'numbered'===_0x167e4b['getAttribute']('listType'));if(_0x278625['length']<0x1)return;const _0x3da113=_0x278625['map'](_0x115a07=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x115a07,'before'),this['editor']['model']['createPositionAt'](_0x115a07,0x0)));this['editor']['model']['change'](()=>{_0x116516['markMultiRangeBlockFormat'](_0x3da113,{'commandName':'listStart','commandParams':[{'startIndex':_0x5f284a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5d80ac){if('formatBlock'!=_0x5d80ac['type']&&'formatInline'!=_0x5d80ac['type'])return;const _0x36925e=this['editor']['locale'],{data:_0x385149}=_0x5d80ac;if(!_0x385149)return;let _0x3deecc,_0x3fa3de;switch(_0x385149['commandName']){case'listStyle':_0x3deecc='*Change\x20to:*\x20%0',_0x3fa3de={'type':'format','content':o(_0x36925e,_0x3deecc,o(_0x36925e,this['_getTranslationKeyForListStyle'](_0x385149['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3deecc=_0x385149['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3fa3de={'type':'format','content':o(_0x36925e,_0x3deecc)};break;case'listStart':_0x3deecc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fa3de={'type':'format','content':o(_0x36925e,_0x3deecc,_0x385149['commandParams'][0x0]['startIndex'])};}return _0x3fa3de;}['_getSuggestionBlocksForListStyle'](){const _0x13344c=this['editor']['plugins']['get']('LegacyListUtils');let _0x1bd436=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1bd436[0x0]?.['is']('element','listItem')&&_0x1bd436['unshift'](..._0x13344c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1bd436[_0x1bd436['length']-0x1]?.['is']('element','listItem')&&_0x1bd436['push'](..._0x13344c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1bd436=[...new Set(_0x1bd436)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1bd436=_0x1bd436['filter'](_0x1b2571=>_0x1b2571['is']('element','listItem'))),_0x1bd436;}['_getSuggestionBlocks'](_0x25e254){const _0x1504a7=this['editor']['plugins']['get']('LegacyListUtils');let _0x51916f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x25e254)['map'](_0x34472f=>{const _0x562aff=this['editor']['model']['createPositionAt'](_0x34472f,0x0);return[..._0x1504a7['getSiblingNodes'](_0x562aff,'backward'),..._0x1504a7['getSiblingNodes'](_0x562aff,'forward')];})['flat']();return _0x51916f=[...new Set(_0x51916f)],_0x51916f;}['_getTranslationKeyForListStyle'](_0x195b1c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x195b1c)||'default')['toUpperCase']()+'_LIST_'+_0x195b1c['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xd3eebf{['afterInit'](){const _0x53411d=this['editor'];if(!_0x53411d['plugins']['has']('MediaEmbedEditing'))return;const _0x5771b8=_0x53411d['plugins']['get']('TrackChangesEditing'),_0x31a763=_0x53411d['locale'];_0x5771b8['enableCommand']('mediaEmbed'),_0x5771b8['descriptionFactory']['registerElementLabel']('media',_0x1e9928=>o(_0x31a763,'ELEMENT_MEDIA',_0x1e9928)),_0x53411d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x421931,{writer:_0x8f1b94,options:_0x218aa1})=>{if(_0x218aa1['showSuggestionHighlights'])return _0x8f1b94['createEmptyElement']('div');},'converterPriority':'high'}),_0x53411d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x37bec7,_0x26c182,_0x2c2fa4)=>{_0x2c2fa4['options']['showSuggestionHighlights']&&_0x37bec7['stop']();},{'priority':'high'});}}class mt extends _0xd3eebf{['afterInit'](){const _0x1d644d=this['editor'];_0x1d644d['plugins']['has']('MentionEditing')&&_0x1d644d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0xd3eebf{['afterInit'](){const _0x4db5f2=this['editor'];if(!_0x4db5f2['plugins']['has']('MergeFieldsEditing'))return;_0x4db5f2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x4db5f2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x407d48=_0x4db5f2['plugins']['get']('TrackChangesEditing'),_0x284957=_0x4db5f2['locale'];_0x407d48['descriptionFactory']['registerElementLabel']('mergeField',_0x5ba9cf=>o(_0x284957,'ELEMENT_MERGE_FIELD',_0x5ba9cf)),_0x407d48['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xa320ef=>o(_0x284957,'ELEMENT_MERGE_FIELD',_0xa320ef)),_0x407d48['descriptionFactory']['registerDescriptionCallback'](_0x502c15=>{if('insertion'!=_0x502c15['type']&&'deletion'!=_0x502c15['type'])return;const _0x472c49=_0x502c15['getContainedElement']();if(null==_0x472c49)return;if(!_0x472c49['is']('element','mergeField')&&!_0x472c49['is']('element','mergeFieldBlock'))return;const _0x1cdfc3=_0x4db5f2['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x472c49['getAttribute']('id'));return'insertion'==_0x502c15['type']?{'type':'insertion','content':o(_0x284957,'*Insert:*\x20%0','\x22'+_0x1cdfc3+'\x22\x20'+o(_0x284957,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x284957,'*Remove:*\x20%0','\x22'+_0x1cdfc3+'\x22\x20'+o(_0x284957,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0xd3eebf{['afterInit'](){const _0x56d3d4=this['editor'],_0x32f272=_0x56d3d4['plugins']['get']('TrackChangesEditing');_0x56d3d4['plugins']['has']('MultiLevelList')&&(_0x32f272['enableDefaultAttributesIntegration']('multiLevelList'),_0x32f272['registerBlockAttribute']('listMarkerStyle'),_0x32f272['descriptionFactory']['registerDescriptionCallback'](_0x3141e7=>this['handleDescriptions'](_0x3141e7)));}['handleDescriptions'](_0x2db31e){const _0x52bfd8=this['editor']['locale'],{data:_0x10cb6b}=_0x2db31e,_0x21e81e={'type':'format','content':''};if(_0x10cb6b&&'listMarkerStyle'==_0x10cb6b['key']){if(!_0x10cb6b['oldValue'])return{'type':'format','content':o(_0x52bfd8,'*Set\x20format:*\x20%0',o(_0x52bfd8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x10cb6b['newValue']+')'};if(!_0x10cb6b['newValue']){let _0x64e4c3=_0x2db31e['head'];for(;_0x64e4c3;){if(_0x64e4c3['data']&&'listType'==_0x64e4c3['data']['key']&&_0x64e4c3['data']['newValue'])return _0x21e81e;_0x64e4c3=_0x64e4c3['next'];}return{'type':'format','content':o(_0x52bfd8,'*Remove\x20format:*\x20%0',o(_0x52bfd8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x10cb6b['oldValue']+')'};}}}}class kt extends _0xd3eebf{['afterInit'](){const _0x1ddb8c=this['editor'];if(!_0x1ddb8c['plugins']['has']('PageBreakEditing'))return;_0x1ddb8c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3e556d=_0x1ddb8c['plugins']['get']('TrackChangesEditing'),_0x3035e3=_0x1ddb8c['locale'];_0x3e556d['descriptionFactory']['registerElementLabel']('pageBreak',_0x319b36=>o(_0x3035e3,'ELEMENT_PAGE_BREAK',_0x319b36));}}class bt extends _0xd3eebf{['afterInit'](){const _0x6752c8=this['editor'];if(!_0x6752c8['plugins']['has']('Paragraph'))return;const _0xd67954=_0x6752c8['locale'],_0x498046=_0x6752c8['plugins']['get']('TrackChangesEditing');_0x498046['descriptionFactory']['registerElementLabel']('paragraph',_0x59d202=>o(_0xd67954,'ELEMENT_PARAGRAPH',_0x59d202)),_0x498046['enableDefaultAttributesIntegration']('paragraph'),_0x498046['enableCommand']('insertParagraph'),_0x6752c8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x6752c8),{'priority':'highest'}),_0x6752c8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x39deb0,_0x36e574,_0x2df13e)=>{_0x2df13e['options']['showSuggestionHighlights']&&nr(_0x6752c8,{'showActiveMarker':!0x1})(_0x39deb0,_0x36e574,_0x2df13e);},{'priority':'highest'});const _0x4c8139=_0x498046['descriptionFactory'];_0x4c8139['registerDescriptionCallback'](_0x154b9d=>{if('insertion'!==_0x154b9d['type'])return;const {start:_0x301925,end:_0x5ba4bd}=_0x154b9d['getFirstRange']();if(!_0x301925['isTouching'](_0x5ba4bd)||!_0x301925['nodeAfter'])return;const _0x15aa2c=_0x6752c8['model']['schema'],_0x146785=_0x301925['nodeAfter'];return _0x15aa2c['isBlock'](_0x146785)&&!_0x15aa2c['isLimit'](_0x146785)&&_0x15aa2c['checkChild'](_0x146785,'$text')?{'type':'insertion','content':o(_0xd67954,'*Insert:*\x20%0',_0x4c8139['getItemLabel'](_0x146785,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x432775=this['editor'],_0xe352a6=_0x432775['locale'];_0x432775['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a9da4=>{if('formatBlock'!=_0x2a9da4['type'])return;const {data:_0x4253ee}=_0x2a9da4;return _0x4253ee&&'paragraph'==_0x4253ee['commandName']?{'type':'format','content':o(_0xe352a6,'*Change\x20to:*\x20%0',o(_0xe352a6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x59463a,{showActiveMarker:_0x5696ec=!0x0}={}){return(_0x35257e,_0xf75403,_0x20eb69)=>{const _0x3cdf37=_0x59463a['plugins']['get']('TrackChangesEditing'),_0x4b4ba5=_0xf75403['markerRange']['start'],_0x3b1b20=_0xf75403['markerRange']['end'],_0x504f29=_0x59463a['model']['schema'];if(!_0x4b4ba5['isTouching'](_0x3b1b20)||!_0x4b4ba5['nodeAfter'])return;const _0x1386cf=_0x4b4ba5['nodeAfter'];if(_0x504f29['isBlock'](_0x1386cf)&&!_0x504f29['isLimit'](_0x1386cf)&&_0x504f29['checkChild'](_0x1386cf,'$text')){if(!_0x20eb69['consumable']['consume'](_0xf75403['markerRange'],_0x35257e['name']))return;const {authorId:_0xfe62a1}=_0x3cdf37['_splitMarkerName'](_0xf75403['markerName']),_0x308291=_0x20eb69['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xfe62a1}),_0x310f2f=_0x20eb69['mapper']['toViewPosition'](_0x3b1b20);_0x5696ec&&_0x3cdf37['activeMarkers']['includes'](_0xf75403['markerName'])&&_0x20eb69['writer']['addClass']('ck-suggestion-marker--active',_0x308291),_0x20eb69['writer']['insert'](_0x310f2f,_0x308291),_0x20eb69['mapper']['bindElementToMarker'](_0x308291,_0xf75403['markerName']);}};}class yt extends _0xd3eebf{['afterInit'](){const _0x2a38b5=this['editor'];if(!_0x2a38b5['plugins']['has']('RemoveFormatEditing'))return;_0x2a38b5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15a9e6=this['editor'];_0x15a9e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x223466=>{if('formatBlock'!=_0x223466['type']&&'formatInline'!=_0x223466['type'])return;const {data:_0x18bdbf}=_0x223466;return _0x18bdbf&&'removeFormat'==_0x18bdbf['commandName']?{'type':'format','content':o(_0x15a9e6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0xd3eebf{['afterInit'](){const _0x1f2271=this['editor'];if(!_0x1f2271['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5418a7=_0x1f2271['plugins']['get']('TrackChangesEditing');_0x5418a7['enableCommand']('goToPreviousRestrictedEditingException'),_0x5418a7['enableCommand']('goToNextRestrictedEditingException');const _0x1df469=_0x1f2271['plugins']['get']('RestrictedEditingModeEditing');_0x1df469['enableCommand']('trackChanges'),_0x1df469['enableCommand']('acceptSuggestion'),_0x1df469['enableCommand']('discardSuggestion'),_0x1df469['enableCommand']('acceptAllSuggestions'),_0x1df469['enableCommand']('discardAllSuggestions'),_0x1df469['enableCommand']('acceptSelectedSuggestions'),_0x1df469['enableCommand']('discardSelectedSuggestions');}}class St extends _0xd3eebf{static get['requires'](){return[_0x49ee9b];}['init'](){const _0xef7617=this['editor'],_0x5ef2b1=_0xef7617['plugins']['get']('TrackChangesEditing');_0x5ef2b1['enableCommand']('shiftEnter'),_0xef7617['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0xef7617),{'priority':'high'}),_0xef7617['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0xef7617),{'priority':'high'}),_0xef7617['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x454791,_0x3671cb,_0x8617aa)=>{_0x8617aa['options']['showSuggestionHighlights']&&ke(_0xef7617,{'showActiveMarker':!0x1})(_0x454791,_0x3671cb,_0x8617aa);}),_0x5ef2b1['descriptionFactory']['registerElementLabel']('softBreak',_0x5a53fd=>o(_0xef7617['locale'],'ELEMENT_LINE_BREAK',_0x5a53fd));}}function ke(_0x337e2a,{showActiveMarker:_0x393e14=!0x0}={}){return(_0xbaca90,_0x56df83,_0x1b2f55)=>{const _0x40fdf0=_0x337e2a['plugins']['get']('TrackChangesEditing');if(!_0x1b2f55['consumable']['test'](_0x56df83['markerRange'],_0xbaca90['name']))return;const _0x4905f3=_0x337e2a['model'];for(const _0x297cd5 of _0x56df83['markerRange']['getItems']()){if(!_0x297cd5['is']('element','softBreak'))continue;const _0xf09139='deletion'==_0x56df83['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3b74d9}=_0x40fdf0['_splitMarkerName'](_0x56df83['markerName']),_0x56dbe9=_0x1b2f55['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf09139,'data-author-id':_0x3b74d9}),_0x355eb2=_0x1b2f55['mapper']['toViewPosition'](_0x4905f3['createPositionBefore'](_0x297cd5));_0x393e14&&_0x40fdf0['activeMarkers']['includes'](_0x56df83['markerName'])&&_0x1b2f55['writer']['addClass']('ck-suggestion-marker--active',_0x56dbe9),_0x1b2f55['writer']['insert'](_0x355eb2,_0x56dbe9),_0x1b2f55['mapper']['bindElementToMarker'](_0x56dbe9,_0x56df83['markerName']);}};}class At extends _0xd3eebf{['afterInit'](){const _0x35a12b=this['editor'],_0x1e8bc3=_0x35a12b['model'],_0x44d499=_0x35a12b['locale'];if(!_0x35a12b['plugins']['has']('StandardEditingModeEditing'))return;const _0x12d3fb=_0x35a12b['plugins']['get']('TrackChangesEditing'),_0x27aff0='restrictedEditingException',_0x3132b7=_0x35a12b['commands']['get'](_0x27aff0);_0x12d3fb['enableCommand'](_0x27aff0,(_0x281b86,_0x2047ed={})=>{const _0x118645=_0x1e8bc3['document']['selection'];if(_0x118645['isCollapsed'])return void _0x281b86(_0x2047ed);const _0x10a696=void 0x0!==_0x2047ed['forceValue']?_0x2047ed['forceValue']:!_0x3132b7['value'];_0x1e8bc3['change'](()=>{const _0x5cf72e=Array['from'](_0x118645['getRanges']());for(const _0x23076e of _0x5cf72e){const _0x4b91e4=_0x10a696?[_0x23076e]:io(_0x27aff0,_0x23076e,_0x1e8bc3);for(const _0x464886 of _0x4b91e4)_0x12d3fb['markInlineFormat'](_0x464886,{'commandName':_0x27aff0,'commandParams':[{'forceValue':_0x10a696}]});}});}),_0x12d3fb['descriptionFactory']['registerDescriptionCallback'](_0x1eeb5f=>{if('formatBlock'!=_0x1eeb5f['type']&&'formatInline'!=_0x1eeb5f['type'])return;const {data:_0xc175ef}=_0x1eeb5f;return _0xc175ef&&_0xc175ef['commandName']==_0x27aff0?_0xc175ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44d499,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x44d499,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xd3eebf{['afterInit'](){const _0x8ce1c0=this['editor'];if(!_0x8ce1c0['plugins']['has']('Style')||!_0x8ce1c0['plugins']['has']('DataSchema'))return;const _0x3747a0=_0x8ce1c0['plugins']['get']('TrackChangesEditing'),_0x8c819d=_0x8ce1c0['locale'],_0x4c767a=_0x8ce1c0['config']['get']('style')||{},_0xffbf4c=_0x8ce1c0['plugins']['get']('GeneralHtmlSupport'),_0x209768=_0x8ce1c0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x8ce1c0['plugins']['get']('DataSchema'),_0x4c767a['definitions']);_0x3747a0['enableDefaultAttributesIntegration']('style');const _0x1ec455=new Set();for(const _0x27ee26 of _0x209768['block']){const _0x40d295=_0xffbf4c['getGhsAttributeNameForElement'](_0x27ee26['element']);_0x1ec455['add'](_0x40d295);}const _0x5a3d74=new Set();for(const _0x5e951b of _0x209768['inline']){const _0x20da25=_0xffbf4c['getGhsAttributeNameForElement'](_0x5e951b['element']);_0x5a3d74['add'](_0x20da25);for(const _0x100e42 of _0x5e951b['ghsAttributes'])_0x5a3d74['add'](_0x100e42);}for(const _0xfffb23 of _0x1ec455)_0x3747a0['registerBlockAttribute'](_0xfffb23),_0x3747a0['descriptionFactory']['registerAttributeLabel'](_0xfffb23,o(_0x8c819d,'FORMAT_STYLE'));for(const _0x4443dd of _0x5a3d74)_0x3747a0['registerInlineAttribute'](_0x4443dd),_0x3747a0['descriptionFactory']['registerAttributeLabel'](_0x4443dd,o(_0x8c819d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x508a81=this['editor'],_0x318b5b=_0x508a81['locale'];_0x508a81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12f395=>{if('formatBlock'!=_0x12f395['type']&&'formatInline'!=_0x12f395['type'])return;const {data:_0x1a8d23}=_0x12f395;return _0x1a8d23&&'style'===_0x1a8d23['commandName']?_0x1a8d23['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x318b5b,'*Set\x20format:*\x20%0',_0x1a8d23['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x318b5b,'*Remove\x20format:*\x20%0',_0x1a8d23['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0xd3eebf{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x105a01){super(_0x105a01),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xfcf4ea=this['editor'],_0x22ddb6=_0xfcf4ea['model']['document']['selection'];if(!_0xfcf4ea['plugins']['has']('TableEditing'))return;const _0x37bcf7=_0xfcf4ea['locale'],_0x4d7793=_0xfcf4ea['plugins']['get']('TrackChangesEditing'),_0x3175de=_0xfcf4ea['plugins']['get']('TableUtils');_0x4d7793['descriptionFactory']['registerElementLabel']('table',_0x1bfca7=>o(_0x37bcf7,'ELEMENT_TABLE',_0x1bfca7)),this['_setupColumnsRowsFixing'](),_0x4d7793['enableCommand']('insertTable'),_0x4d7793['enableCommand']('selectTableRow'),_0x4d7793['enableCommand']('selectTableColumn');for(const _0x315c61 of['insertTableRowAbove','insertTableRowBelow']){const _0x95add1=_0xfcf4ea['commands']['get'](_0x315c61);_0x4d7793['enableCommand'](_0x315c61,_0x29acb6=>{_0xfcf4ea['model']['change'](_0x1f7763=>{_0x29acb6();const _0x46f98a='above'===_0x95add1['order'],_0xa6c85c=_0x3175de['getSelectionAffectedTableCells'](_0x22ddb6),_0x204378=_0x3175de['getRowIndexes'](_0xa6c85c),_0xdae58d=_0x46f98a?_0x204378['first']-0x1:_0x204378['last']+0x1,_0x28320e=_0xa6c85c[0x0]['findAncestor']('table'),_0x5e4bdf=_0x3175de['createTableWalker'](_0x28320e,{'startRow':_0xdae58d,'endRow':_0xdae58d}),_0x39f8f2=Array['from'](_0x5e4bdf)['map'](_0x59fd8d=>_0x1f7763['createRangeOn'](_0x59fd8d['cell']));_0x4d7793['markMultiRangeInsertion'](_0x39f8f2,'tableRow');});});}for(const _0x5234e9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x17e0a7=_0xfcf4ea['commands']['get'](_0x5234e9);_0x4d7793['enableCommand'](_0x5234e9,_0x7ff416=>{_0xfcf4ea['model']['change'](_0x5e37c4=>{_0x7ff416();const _0x257a2d='left'===_0x17e0a7['order'],_0x1c0e29=_0x3175de['getSelectionAffectedTableCells'](_0x22ddb6),_0x57cf87=_0x3175de['getColumnIndexes'](_0x1c0e29),_0x1f1d10=_0x257a2d?_0x57cf87['first']-0x1:_0x57cf87['last']+0x1,_0x411fe3=_0x1c0e29[0x0]['findAncestor']('table'),_0x302a4b=_0x3175de['createTableWalker'](_0x411fe3,{'startRow':0x0,'column':_0x1f1d10,'includeAllSlots':!0x1}),_0xb250b3=Array['from'](_0x302a4b)['map'](_0x243d69=>_0x5e37c4['createRangeOn'](_0x243d69['cell']));_0x4d7793['markMultiRangeInsertion'](_0xb250b3,'tableColumn');});});}for(const _0x16fbd9 of['removeTableRow','removeTableColumn']){const _0x4c1d32=_0x16fbd9['substr'](0xb),_0x33058a=_0x4c1d32['toLowerCase'](),_0x18f6dd=_0x33058a['substr'](0x0,0x3)+'span',_0x29f22f='table'+_0x4c1d32,_0x5279e2='min'+_0x4c1d32,_0x42b431='max'+_0x4c1d32;_0x4d7793['enableCommand'](_0x16fbd9,()=>{_0xfcf4ea['model']['change'](_0x355297=>{const _0x4c3adc=_0x3175de['getSelectionAffectedTableCells'](_0x22ddb6),_0x33554b=_0x4c3adc[0x0]['findAncestor']('table');let _0x53f0ec;if('removeTableRow'==_0x16fbd9){const _0x46959f=_0x3175de['getRowIndexes'](_0x4c3adc);_0x53f0ec={'startRow':_0x46959f['first'],'endRow':_0x46959f['last'],'includeAllSlots':!0x0};}else{const _0x2769a7=_0x3175de['getColumnIndexes'](_0x4c3adc);_0x53f0ec={'startColumn':_0x2769a7['first'],'endColumn':_0x2769a7['last'],'includeAllSlots':!0x0};}const _0x1e1cf9=_0x3175de['createTableWalker'](_0x33554b,_0x53f0ec),_0x431ae9=Array['from'](_0x1e1cf9)['map'](({cell:_0x19b651})=>_0x19b651),_0xa60cc5=Re(_0x431ae9['filter'](_0x5b81d3=>_0x5b81d3['hasAttribute'](_0x18f6dd))),_0x19705e=Re(_0x431ae9['filter'](_0xfa86fb=>!_0xfa86fb['hasAttribute'](_0x18f6dd)))['map'](_0x502a4a=>_0x355297['createRangeOn'](_0x502a4a)),_0x5620e4=_0x4d7793['markMultiRangeDeletion'](_0x19705e,_0x29f22f);if(_0x5620e4&&('tableRow'==_0x5620e4['subType']||'tableColumn'==_0x5620e4['subType'])){const _0x1ba1c8=this['_getSuggestionCoords'](_0x5620e4);for(const _0x5766a2 of _0xa60cc5){const _0x249e4d=_0x355297['createRangeOn'](_0x5766a2),_0x6a290e=_0x3175de['getCellLocation'](_0x5766a2),_0x6f374e=_0x5766a2['getAttribute'](_0x18f6dd)-0x1,_0x2bb3f6=_0x1ba1c8[_0x5279e2],_0x3ce69a=_0x1ba1c8[_0x42b431];_0x2bb3f6<=_0x6a290e[_0x33058a]&&_0x6a290e[_0x33058a]+_0x6f374e<=_0x3ce69a&&_0x5620e4['addRange'](_0x249e4d);}}});});}function _0x102f53(_0x5093df){const _0x1e7f7d=Array['from'](_0x22ddb6['getRanges']())['map'](_0x5a3a95=>_0x2bc62b['fromRange'](_0x5a3a95));_0xfcf4ea['model']['change'](_0x37de7b=>{const _0x3bd22d=_0x37de7b['batch'];_0x5093df=_0x5093df['filter'](_0xad1568=>'$graveyard'!=_0xad1568['root']['rootName']),_0x37de7b['setSelection'](_0x5093df),_0xfcf4ea['commands']['get']('removeTableRow')['refresh'](),_0xfcf4ea['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xfcf4ea['model']['enqueueChange'](()=>{_0xfcf4ea['model']['enqueueChange'](_0x3bd22d,_0x3d68bc=>{const _0x1cebb4=_0x1e7f7d['filter'](_0x5f4e5f=>'$graveyard'!=_0x5f4e5f['root']['rootName']);_0x1cebb4['length']>0x0&&_0x3d68bc['setSelection'](_0x1cebb4);for(const _0x196836 of _0x1e7f7d)_0x196836['detach']();});});});}function _0x5d2a02(_0x4759cb){_0xfcf4ea['model']['change'](_0x4be0ec=>{const _0x50dacc=Array['from'](_0x22ddb6['getRanges']())['map'](_0x3ac73c=>_0x2bc62b['fromRange'](_0x3ac73c)),_0x577f99=[];for(const _0x31ccc5 of _0x4759cb)for(const _0xc32bc6 of _0x31ccc5['getItems']({'shallow':!0x0}))_0x577f99['push'](_0xc32bc6);for(const _0x393eb6 of _0x577f99)'$graveyard'!=_0x393eb6['root']['rootName']&&(_0x4be0ec['setSelection'](_0x4be0ec['createPositionAt'](_0x393eb6,0x0)),_0xfcf4ea['commands']['get']('removeTableColumn')['refresh'](),_0xfcf4ea['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4e4b27=_0x50dacc['filter'](_0x15e4d0=>'$graveyard'!=_0x15e4d0['root']['rootName']);_0x4e4b27['length']>0x0&&_0x4be0ec['setSelection'](_0x4e4b27);for(const _0x3e82ca of _0x50dacc)_0x3e82ca['detach']();});}function _0x2344e2(_0x32eb30,_0x416e48){return _0x416e48['every'](_0x1bd11f=>_0x32eb30['some'](_0x3cd170=>_0x3cd170['end']['isEqual'](_0x1bd11f['start'])||_0x1bd11f['end']['isEqual'](_0x3cd170['start'])));}function _0x10df26(_0x5ce657,_0x32e3bf){return!_0x5ce657['some'](_0x439827=>_0x32e3bf['some'](_0x3c6ac2=>_0x439827['isIntersecting'](_0x3c6ac2)))&&_0x5ce657['some'](_0x337a27=>_0x32e3bf['some'](_0x5ed890=>_0x337a27['end']['isTouching'](_0x5ed890['start'])));}_0xfcf4ea['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6174a5,_0x22ef30,_0x3d409f)=>{if(!_0x3d409f['options']['showSuggestionHighlights'])return;const _0x4382b5=_0x22ef30['item'];if(!_0x4382b5)return;const _0x5881c6=_0x3d409f['mapper']['toViewElement'](_0x4382b5);function _0x3cae47(_0x13f02c){return Array['isArray'](_0x13f02c)?_0x13f02c:[_0x13f02c];}_0x5881c6&&'tableCell'===_0x4382b5['name']&&_0x3f057f(_0x5881c6,_0x3d409f['writer'],(_0x33d5e8,_0x42a04f,_0x18d45d)=>_0x18d45d['addClass'](_0x3cae47(_0x42a04f['classes']),_0x33d5e8),(_0xa04d1f,_0x3a2037,_0x38a5a9)=>_0x38a5a9['removeClass'](_0x3cae47(_0x3a2037['classes']),_0xa04d1f));},{'priority':'highest'}),_0x4d7793['descriptionFactory']['registerDescriptionCallback'](_0x3df756=>{if('insertion'!=_0x3df756['type']&&'deletion'!=_0x3df756['type'])return;const _0x550d97=_0x3df756['getContainedElement']();if(null!=_0x550d97&&_0x550d97['is']('element','table')){if('insertion'==_0x3df756['type']){const _0x3e2095=_0x3df756['getItems']()['filter'](_0x28dc24=>_0x28dc24['is']('$textProxy'))['map'](_0x3f06bc=>_0x3f06bc['data']);if(_0x3e2095['length'])return{'type':'insertion','content':o(_0x37bcf7,'*Insert:*\x20%0',o(_0x37bcf7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e2095['join']('\x20')+'\x22'))};}if('deletion'==_0x3df756['type']){const _0x382b64=_0x3df756['getItems']()['filter'](_0x3565c4=>_0x3565c4['is']('$textProxy'))['map'](_0x46fcf4=>_0x46fcf4['data']);if(_0x382b64['length'])return{'type':'deletion','content':o(_0x37bcf7,'*Remove:*\x20%0',o(_0x37bcf7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x382b64['join']('\x20')+'\x22'))};}}}),_0x4d7793['descriptionFactory']['registerDescriptionCallback'](_0x438211=>{if('tableRow'==_0x438211['subType']){const _0x8e6413=_0x438211['getItems']()['filter'](_0xbed3e6=>_0xbed3e6['is']('$textProxy'))['map'](_0x17c953=>_0x17c953['data']),_0x2cce56=this['_getSuggestionCoords'](_0x438211),_0x31c702=_0x2cce56['maxRow']-_0x2cce56['minRow']+0x1;if('insertion'==_0x438211['type'])return _0x8e6413['length']?{'type':'insertion','content':o(_0x37bcf7,'*Insert:*\x20%0',o(_0x37bcf7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31c702,'\x22'+_0x8e6413['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37bcf7,'*Insert:*\x20%0',o(_0x37bcf7,'ELEMENT_TABLE_ROW',_0x31c702))};if('deletion'==_0x438211['type'])return _0x8e6413['length']?{'type':'deletion','content':o(_0x37bcf7,'*Remove:*\x20%0',o(_0x37bcf7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31c702,'\x22'+_0x8e6413['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37bcf7,'*Remove:*\x20%0',o(_0x37bcf7,'ELEMENT_TABLE_ROW',_0x31c702))};}if('tableColumn'==_0x438211['subType']){const _0x596a28=_0x438211['getItems']()['filter'](_0xd9c4e0=>_0xd9c4e0['is']('$textProxy'))['map'](_0x3e82d4=>_0x3e82d4['data']),_0x1e36db=this['_getSuggestionCoords'](_0x438211),_0x152548=_0x1e36db['maxColumn']-_0x1e36db['minColumn']+0x1;if('insertion'==_0x438211['type'])return _0x596a28['length']?{'type':'insertion','content':o(_0x37bcf7,'*Insert:*\x20%0',o(_0x37bcf7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x152548,'\x22'+_0x596a28['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37bcf7,'*Insert:*\x20%0',o(_0x37bcf7,'ELEMENT_TABLE_COLUMN',_0x152548))};if('deletion'==_0x438211['type'])return _0x596a28['length']?{'type':'deletion','content':o(_0x37bcf7,'*Remove:*\x20%0',o(_0x37bcf7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x152548,'\x22'+_0x596a28['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37bcf7,'*Remove:*\x20%0',o(_0x37bcf7,'ELEMENT_TABLE_COLUMN',_0x152548))};}}),_0x4d7793['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x102f53),_0x4d7793['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x102f53),_0x4d7793['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5d2a02),_0x4d7793['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5d2a02),_0x4d7793['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2344e2),_0x4d7793['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2344e2),_0x4d7793['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x10df26),_0x4d7793['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x10df26);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1a4b78=this['editor'],_0x38f698=_0x1a4b78['model']['document']['selection'];return(_0x35ed06,_0x25675f)=>{_0x1a4b78['model']['change'](_0x3cd6f=>{const {commandName:_0x225380,commandParams:_0x28335d}=_0x25675f;let _0x24ae65=_0x35ed06[0x0]['end']['nodeBefore'];_0x28335d&&_0x28335d[0x0]&&!0x1===_0x28335d[0x0]['forceValue']&&(_0x24ae65=_0x35ed06[0x0]['start']['nodeAfter']);const _0x4ec05c=_0x3cd6f['createRangeIn'](_0x24ae65);if('$graveyard'==_0x4ec05c['root']['rootName'])return;const _0x351468=Array['from'](_0x38f698['getRanges']())['map'](_0x4daee9=>_0x2bc62b['fromRange'](_0x4daee9));_0x3cd6f['setSelection'](_0x4ec05c),_0x1a4b78['commands']['get'](_0x225380)['refresh'](),_0x28335d['push']({'forceDefaultExecution':!0x0}),_0x1a4b78['execute'](_0x225380,..._0x28335d);const _0x5b9b08=_0x351468['filter'](_0x3bab80=>'$graveyard'!=_0x3bab80['root']['rootName']);_0x5b9b08['length']>0x0&&_0x3cd6f['setSelection'](_0x5b9b08);for(const _0x1fdee0 of _0x351468)_0x1fdee0['detach']();});};}['_getCoordsForCells'](_0x14da9a){const _0x16ba20=this['editor']['plugins']['get']('TableUtils');let _0x12966c=Number['MAX_SAFE_INTEGER'],_0x4363ca=Number['MIN_SAFE_INTEGER'],_0x20517b=Number['MAX_SAFE_INTEGER'],_0x4634d6=Number['MIN_SAFE_INTEGER'];for(const _0x264185 of _0x14da9a){if('$graveyard'==_0x264185['root']['rootName'])continue;const {row:_0x456416,column:_0x51fa37}=_0x16ba20['getCellLocation'](_0x264185),_0x20e149=_0x264185['hasAttribute']('rowspan')?_0x264185['getAttribute']('rowspan')-0x1:0x0,_0x447e44=_0x264185['hasAttribute']('colspan')?_0x264185['getAttribute']('colspan')-0x1:0x0;_0x12966c=_0x456416<_0x12966c?_0x456416:_0x12966c,_0x4363ca=_0x456416+_0x20e149>_0x4363ca?_0x456416+_0x20e149:_0x4363ca,_0x20517b=_0x51fa37<_0x20517b?_0x51fa37:_0x20517b,_0x4634d6=_0x51fa37+_0x447e44>_0x4634d6?_0x51fa37+_0x447e44:_0x4634d6;}return{'minRow':_0x12966c,'maxRow':_0x4363ca,'minColumn':_0x20517b,'maxColumn':_0x4634d6};}['_setupColumnsRowsFixing'](){const _0x4cc07e=this['editor'],_0x58074c=_0x4cc07e['plugins']['get']('TrackChangesEditing'),_0x2c6c3f=_0x4cc07e['plugins']['get']('TableUtils');_0x4cc07e['model']['document']['on']('change:data',()=>{const _0x1e3bef=Array['from'](_0x4cc07e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e1149,data:_0x55c9b0}of _0x1e3bef){const {group:_0x450bb7,id:_0x402f00,subType:_0x2a235b}=_0x58074c['_splitMarkerName'](_0x2e1149);if('suggestion'!=_0x450bb7)continue;if(null!=_0x55c9b0['oldRange'])continue;const _0x1fb07a=_0x58074c['getSuggestion'](_0x402f00);this['_tablePostFixingSubtypes']['includes'](_0x2a235b)&&this['_tableSuggestions']['add'](_0x1fb07a);}},{'priority':'low'});const _0x405c50=(_0x2d86a9,_0xb45df7)=>{let _0x39df23=!0x1;const _0x4addda=_0xb45df7['createRangeOn'](_0x2d86a9),_0x1a8c24=_0x2d86a9['findAncestor']('table'),_0x1a470a=_0x2c6c3f['getCellLocation'](_0x2d86a9);for(const _0x36e071 of this['_tableSuggestions']){const _0x5b375c=_0x36e071['subType'],_0x4966a7=_0x5b375c['startsWith']('tablePaste'),_0x13d5ae=_0x5b375c['substr'](_0x4966a7?0xa:0x5),_0x58620c=_0x13d5ae['toLowerCase'](),_0x28b3e2=_0x58620c['substr'](0x0,0x3)+'span',_0x15d996='min'+_0x13d5ae,_0x5b9ba5='max'+_0x13d5ae;if(!_0x36e071['isInContent'])continue;if(_0x1a8c24!=_0x36e071['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x36e071['isIntersectingWithRange'](_0x4addda))continue;const _0x114486=_0x2d86a9['hasAttribute'](_0x28b3e2)?_0x2d86a9['getAttribute'](_0x28b3e2)-0x1:0x0,_0x56f000=this['_getSuggestionCoords'](_0x36e071),_0x9fe27f=_0x56f000[_0x15d996],_0x417800=_0x56f000[_0x5b9ba5];_0x9fe27f<=_0x1a470a[_0x58620c]&&_0x1a470a[_0x58620c]+_0x114486<=_0x417800&&(_0x36e071['addRange'](_0x4addda),_0x39df23=!0x0);}return _0x39df23;};_0x4cc07e['model']['document']['registerPostFixer'](_0x47a426=>{let _0x3f9714=!0x1;for(const _0x36c48f of _0x4cc07e['model']['document']['differ']['getChanges']())if('insert'==_0x36c48f['type']){if('tableRow'==_0x36c48f['name']){for(const _0x3dd107 of _0x36c48f['position']['nodeAfter']['getChildren']())_0x3f9714=_0x3f9714||_0x405c50(_0x3dd107,_0x47a426);}else'tableCell'==_0x36c48f['name']&&(_0x3f9714=_0x3f9714||_0x405c50(_0x36c48f['position']['nodeAfter'],_0x47a426));}return _0x3f9714;});}['_getSuggestionCoords'](_0x41e136){return this['_getCoordsForCells'](_0x41e136['getRanges']()['map'](_0xd9af83=>_0xd9af83['start']['nodeAfter']));}}function Re(_0x27a448){return Array['from'](new Set(_0x27a448)['values']());}class _t extends _0xd3eebf{static get['requires'](){return[vt];}['afterInit'](){const _0xafd3c0=this['editor'],_0x4e1f2a=_0xafd3c0['model']['document']['selection'],_0x1a0a47=_0xafd3c0['locale'];if(!_0xafd3c0['plugins']['has']('TableEditing'))return;const _0x5fb201=_0xafd3c0['plugins']['get']('TrackChangesEditing'),_0x174c15=_0xafd3c0['plugins']['get']('TableUtils'),_0x1efca0=_0xafd3c0['plugins']['get'](vt);_0x1efca0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5fb201['enableCommand']('mergeTableCells',()=>{const _0x159010=_0x174c15['getSelectionAffectedTableCells'](_0xafd3c0['model']['document']['selection']);_0xafd3c0['model']['change'](()=>{_0x5fb201['markMultiRangeBlockFormat'](_0x159010,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xafd3c0['commands']['get']('mergeTableCells')['on']('execute',(_0x377e4f,_0x43d2e9)=>{_0xafd3c0['commands']['get']('trackChanges')['value']&&(_0x43d2e9['length']>0x0&&_0x43d2e9[_0x43d2e9['length']-0x1]&&_0x43d2e9[_0x43d2e9['length']-0x1]['forceDefaultExecution']||_0x5fb201['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x377e4f['stop']());},{'priority':'highest'});for(const _0x2d7eea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x899ac5=_0xafd3c0['commands']['get'](_0x2d7eea);_0x5fb201['enableCommand'](_0x2d7eea,()=>{const _0x5619a2=_0xafd3c0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x486d32=>_0x486d32['is']('element','tableCell')),_0x44dc09=_0x899ac5['value'];_0xafd3c0['model']['change'](()=>{_0x5fb201['markMultiRangeBlockFormat']([_0x5619a2,_0x44dc09],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x58c948 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x37cec2=_0xafd3c0['commands']['get'](_0x58c948);_0x5fb201['enableCommand'](_0x58c948,()=>{const _0x27b9e1=_0x174c15['getSelectionAffectedTableCells'](_0xafd3c0['model']['document']['selection'])[0x0],_0x3b6748=_0x27b9e1['findAncestor']('table'),{column:_0x3db87f,row:_0x1682fa}=_0x174c15['getCellLocation'](_0x27b9e1);let _0x2b3f73=[];if('horizontally'==_0x37cec2['direction']){const _0x267551=_0x174c15['createTableWalker'](_0x3b6748,{'startRow':_0x1682fa,'endRow':_0x1682fa,'includeAllSlots':!0x0});_0x2b3f73=Array['from'](_0x267551)['map'](_0x1093f6=>_0x1093f6['cell']);}else{const _0x170391=_0x174c15['createTableWalker'](_0x3b6748,{'column':_0x3db87f,'includeAllSlots':!0x0});_0x2b3f73=Array['from'](_0x170391)['map'](_0x95bcb0=>_0x95bcb0['cell']);}_0xafd3c0['model']['change'](_0x18c228=>{_0x5fb201['markBlockFormat'](_0x18c228['createRangeOn'](_0x27b9e1),{'commandName':_0x58c948,'commandParams':[]},_0x2b3f73,_0x58c948);});});}_0x5fb201['descriptionFactory']['registerDescriptionCallback'](_0x23f85b=>{if('formatBlock'!=_0x23f85b['type']&&'formatInline'!=_0x23f85b['type'])return;const {data:_0x9bf842}=_0x23f85b;return _0x9bf842&&'mergeTableCells'==_0x9bf842['commandName']?{'type':'format','content':o(_0x1a0a47,'*Merge\x20cells*')}:void 0x0;}),_0x5fb201['descriptionFactory']['registerDescriptionCallback'](_0x3ca1aa=>{if('formatBlock'!=_0x3ca1aa['type']&&'formatInline'!=_0x3ca1aa['type'])return;const {data:_0x5db080}=_0x3ca1aa;return _0x5db080?'splitTableCellVertically'==_0x5db080['commandName']?{'type':'format','content':o(_0x1a0a47,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5db080['commandName']?{'type':'format','content':o(_0x1a0a47,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4fc35f=_0x1efca0['_acceptFormatSuggestionCallbackFactory']();for(const _0x24bbc6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5fb201['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x24bbc6,'accept',_0x4fc35f);for(const _0x4aac15 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5fb201['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4aac15,'accept',_0x4fc35f);_0x5fb201['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4b8769=>{_0xafd3c0['model']['change'](_0x2ab7f4=>{const _0x1006a1=Array['from'](_0x4e1f2a['getRanges']())['map'](_0x85a6dd=>_0x2bc62b['fromRange'](_0x85a6dd));_0x2ab7f4['setSelection'](_0x4b8769),_0xafd3c0['commands']['get']('mergeTableCells')['refresh'](),_0xafd3c0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x287fc4=_0x1006a1['filter'](_0x4b061d=>'$graveyard'!=_0x4b061d['root']['rootName']);_0x287fc4['length']>0x0&&_0x2ab7f4['setSelection'](_0x287fc4);for(const _0x1d2df9 of _0x1006a1)_0x1d2df9['detach']();});});for(const _0x11549c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4d1325=_0xafd3c0['commands']['get'](_0x11549c);_0x4d1325['on']('set:isEnabled',(_0x416ebb,_0x5d08ea,_0x58d8ad)=>{if(_0x58d8ad){const _0x6b3487=_0xafd3c0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1836c7=>_0x1836c7['is']('element','tableCell'));this['_areMergableCells'](_0x4d1325['value'],_0x6b3487)||(_0x416ebb['return']=!0x1,_0x416ebb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5de2ad=this['editor']['commands']['get']('mergeTableCells'),_0x47bc90=this['editor']['plugins']['get']('TableUtils');if(!_0x5de2ad['isEnabled'])return!0x1;const _0x39f2df=_0x47bc90['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x51fc6a of _0x39f2df)for(const _0xe02d5f of _0x39f2df)if(_0x51fc6a!=_0xe02d5f&&!this['_areMergableCells'](_0x51fc6a,_0xe02d5f))return!0x1;return!0x0;}['_areMergableCells'](_0x1fc127,_0x48bca1){const _0x39c9c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xaba7cf=this['editor']['model']['createRangeOn'](_0x1fc127),_0x3cbf55=this['editor']['model']['createRangeOn'](_0x48bca1),_0x44550c=new Set(),_0x258696=new Set();for(const _0x217404 of _0x39c9c9['getSuggestions']())if(('insertion'==_0x217404['type']||'deletion'==_0x217404['type']||'mergeTableCells'==_0x217404['subType'])&&_0x217404['isInContent']){for(const _0x26dc84 of _0x217404['getRanges']())_0x26dc84['containsRange'](_0xaba7cf,!0x0)&&_0x44550c['add'](_0x217404['type']+':'+_0x217404['author']['id']),_0x26dc84['containsRange'](_0x3cbf55,!0x0)&&_0x258696['add'](_0x217404['type']+':'+_0x217404['author']['id']);}if(_0x44550c['size']!=_0x258696['size'])return!0x1;for(const _0x330b5d of _0x44550c)if(!_0x258696['has'](_0x330b5d))return!0x1;return!0x0;}}class Ct extends _0xd3eebf{static get['requires'](){return[vt];}['afterInit'](){const _0x302836=this['editor'];if(!_0x302836['plugins']['has']('TableEditing'))return;const _0xadad2b=_0x302836['locale'],_0x231b59=_0x302836['plugins']['get']('TrackChangesEditing');_0x231b59['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x231b59['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x231b59['registerBlockAttribute']('headingRows'),_0x231b59['registerBlockAttribute']('headingColumns'),_0x231b59['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xadad2b,'FORMAT_HEADER_ROW')),_0x231b59['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xadad2b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e5337=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59c1b4=this['editor']['plugins']['get']('TableUtils'),_0x1233a6=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x6b6d85({showActiveMarker:_0x26f9e6=!0x0,setDataAttribute:_0x4f852f=!0x0}={}){return(_0x10f87f,_0x5b5cce,_0x17e1d8)=>{const {type:_0x3a6b61,id:_0xad3cb3}=_0x3e5337['_splitMarkerName'](_0x5b5cce['markerName']),_0x3f68cf=_0x3e5337['getSuggestion'](_0xad3cb3),_0x5e50a7=_0x3f68cf['data'];if('formatBlock'!=_0x3f68cf['type']||!_0x5e50a7||'setTableColumnHeader'!=_0x5e50a7['commandName'])return;if(_0x5b5cce['item'])return void _0x10f87f['stop']();if(!_0x17e1d8['consumable']['consume'](_0x5b5cce['markerRange'],_0x10f87f['name']))return;const _0x3ef5ff=_0x5b5cce['markerRange']['start']['nodeAfter'],_0x3e1e59=_0x5b5cce['markerRange']['end']['nodeBefore'],_0x59ea80=_0x3ef5ff['parent']['parent'],{column:_0x37ef1c}=_0x59c1b4['getCellLocation'](_0x3ef5ff),{column:_0x32312b}=_0x59c1b4['getCellLocation'](_0x3e1e59);for(let _0x4f9ce7=_0x37ef1c;_0x4f9ce7<=_0x32312b;_0x4f9ce7++){const _0x20262a=_0x59c1b4['createTableWalker'](_0x59ea80,{'column':_0x4f9ce7,'includeAllSlots':!0x1});for(const _0x6ccd12 of _0x20262a){const _0x3196f7=_0x6ccd12['cell'],_0x5ca5d7=_0x17e1d8['mapper']['toViewElement'](_0x3196f7);_0x17e1d8['writer']['addClass']('ck-suggestion-marker-'+_0x3a6b61,_0x5ca5d7),_0x4f852f&&_0x17e1d8['writer']['setAttribute']('data-suggestion',_0xad3cb3,_0x5ca5d7),_0x17e1d8['mapper']['bindElementToMarker'](_0x5ca5d7,_0x5b5cce['markerName']),_0x26f9e6&&(_0x3e5337['activeMarkers']['includes'](_0x5b5cce['markerName'])?_0x17e1d8['writer']['addClass']('ck-suggestion-marker--active',_0x5ca5d7):_0x17e1d8['writer']['removeClass']('ck-suggestion-marker--active',_0x5ca5d7));}}};}_0x3e5337['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1233a6),_0x3e5337['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1233a6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x6b6d85(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25b0e1,_0x13af9b,_0x298088)=>{_0x298088['options']['showSuggestionHighlights']&&_0x6b6d85({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x25b0e1,_0x13af9b,_0x298088);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1a7f1e,_0x137258,_0x5949c7)=>{const {type:_0xe825f8,id:_0x7ae9e}=_0x3e5337['_splitMarkerName'](_0x137258['markerName']),_0x362e40=_0x3e5337['getSuggestion'](_0x7ae9e),_0x3de9ec=_0x362e40['data'];if('formatBlock'!=_0x362e40['type']||!_0x3de9ec||'setTableColumnHeader'!=_0x3de9ec['commandName'])return;const _0x5b160b=_0x5949c7['mapper']['markerNameToElements'](_0x137258['markerName']);if(_0x5b160b){for(const _0x5bb6aa of _0x5b160b)_0x5949c7['writer']['removeClass']('ck-suggestion-marker-'+_0xe825f8,_0x5bb6aa),_0x5949c7['writer']['removeClass']('ck-suggestion-marker--active',_0x5bb6aa),_0x5949c7['writer']['removeAttribute']('data-suggestion',_0x5bb6aa),_0x5949c7['mapper']['unbindElementFromMarkerName'](_0x5bb6aa,_0x137258['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d696=this['editor'],_0x286163=_0x13d696['locale'];function _0x581be1(_0x5104df){return{'type':'format','content':o(_0x286163,'*Format:*\x20%0',_0x5104df)};}_0x13d696['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15d652=>{if('formatBlock'!=_0x15d652['type'])return;const {data:_0x15526c}=_0x15d652;if(_0x15526c){if('setTableRowHeader'==_0x15526c['commandName']){const _0x1f4966=_0x15526c['commandParams'][0x0]['forceValue'];return _0x581be1(o(_0x286163,_0x1f4966?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x15526c['commandName']){const _0x47248a=_0x15526c['commandParams'][0x0]['forceValue'];return _0x581be1(o(_0x286163,_0x47248a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x151bb7=>[_0x151bb7,null]));class Nt extends _0xd3eebf{static get['requires'](){return[vt];}['afterInit'](){const _0x3a5646=this['editor'];if(!_0x3a5646['plugins']['has']('TableClipboard'))return;const _0x4a237f=_0x3a5646['plugins']['get']('TrackChangesEditing'),_0x55e51f=_0x3a5646['plugins']['get']('TableUtils'),_0xf05fb9=_0x3a5646['plugins']['get'](vt),_0x3d772d=_0x3a5646['plugins']['get']('TableClipboard');_0xf05fb9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3a5646['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3a5646['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x48b138=null;_0x3a5646['model']['on']('insertContent',(_0x2312b1,_0x30b4f6)=>{const [_0x23dd4f,_0x402b9b]=_0x30b4f6,_0x47f1b7=_0x30b4f6[_0x30b4f6['length']-0x1];_0x47f1b7&&_0x47f1b7['forceDefaultExecution']||_0x4a237f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x108b54,_0x52a395,_0x348b6a,_0x487601,_0x496e41){if(_0x52a395&&!_0x52a395['is']('documentSelection'))return!0x1;const _0x204aa7=_0x496e41['getTableIfOnlyTableInContent'](_0x108b54,_0x348b6a);if(!_0x204aa7||!Ae(_0x204aa7,void 0x0,_0x487601))return!0x1;const _0x466d42=_0x487601['getSelectionAffectedTableCells'](_0x348b6a['document']['selection']);if(!_0x466d42['length'])return!0x1;const _0x26f3e7=_0x466d42[0x0]['findAncestor']('table'),_0x4c4938=_0x487601['getRowIndexes'](_0x466d42),_0x421f75=_0x487601['getColumnIndexes'](_0x466d42),_0x11d97d={'startRow':_0x4c4938['first'],'endRow':_0x4c4938['last'],'startColumn':_0x421f75['first'],'endColumn':_0x421f75['last']};return 0x1==_0x466d42['length']&&(_0x11d97d['endRow']+=_0x487601['getRows'](_0x204aa7)-0x1,_0x11d97d['endColumn']+=_0x487601['getColumns'](_0x204aa7)-0x1),Ae(_0x26f3e7,_0x11d97d,_0x487601);}(_0x23dd4f,_0x402b9b,_0x3a5646['model'],_0x55e51f,_0x3d772d)&&(_0x2312b1['stop'](),_0x48b138={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3a5646['model']['change'](()=>{_0x3a5646['model']['insertContent'](_0x30b4f6[0x0],_0x30b4f6[0x1],_0x30b4f6[0x2],{'forceDefaultExecution':!0x0});const _0xf9dba3=_0x2b70c4(),{rowInsertionRanges:_0x39f020,columnInsertionRanges:_0x369e5c,insertionRanges:_0x416987,deletionRanges:_0x228a47,cells:_0x38f0ac}=_0x48b138;_0x39f020['length']&&_0x4a237f['markMultiRangeInsertion'](_0x39f020,'tablePasteRow',{'tablePasteChainId':_0xf9dba3}),_0x369e5c['length']&&_0x4a237f['markMultiRangeInsertion'](_0x369e5c,'tablePasteColumn',{'tablePasteChainId':_0xf9dba3}),_0x416987['length']&&(_0x4a237f['markMultiRangeInsertion'](_0x416987,'tablePaste',{'tablePasteChainId':_0xf9dba3,'skipNestingCheck':!0x0}),_0x416987['forEach'](_0x1d8d4=>_0x1d8d4['detach']?.())),_0x228a47['length']&&(_0x4a237f['markMultiRangeDeletion'](_0x228a47,'tablePaste',{'tablePasteChainId':_0xf9dba3,'skipNestingCheck':!0x0}),_0x228a47['forEach'](_0x31f564=>_0x31f564['detach']?.()));const _0x44f186=_0x4a237f['markMultiRangeBlockFormat'](_0x38f0ac['map'](({element:_0x348c9e})=>_0x348c9e),{'formatGroupId':_0x2b70c4()},[],'tablePasteCell',{'tablePasteChainId':_0xf9dba3});if(_0x44f186){const _0x3dd7ce=_0x44f186['getMarkers'](),_0x57bc3b=[];for(const {element:_0x31ae20,attributes:_0x4c3837}of _0x38f0ac){if(!_0x4c3837)continue;const _0xc46bb5=_0x3a5646['model']['createRangeOn'](_0x31ae20),_0x3c7a4a=_0x3dd7ce['find'](_0xc06e40=>_0xc06e40['getRange']()['isEqual'](_0xc46bb5));_0x3c7a4a&&_0x57bc3b['push']([_0x3c7a4a['name'],_0x4c3837]);}_0x57bc3b['length']&&_0x44f186['setAttribute']('markerAttributes',Object['fromEntries'](_0x57bc3b));}_0x48b138=null;}));},{'priority':_0x2d7443['high']+0xa}),_0x3a5646['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2feb5d,_0x42dcc0)=>{const [_0x2c9c41,_0x30f063,,_0x93c296]=_0x42dcc0;if(!_0x48b138)return;_0x2feb5d['stop']();const _0x5bcf39=_0x2c9c41['cell'],_0x43ede1=_0x30f063,_0x49c9f1=je(_0x5bcf39),_0x4a81c6=je(_0x43ede1);_0x2feb5d['return']=_0x5bcf39;let _0x2c66b2=null,_0x194423=null;if(_0x4a81c6||_0x49c9f1){if(_0x49c9f1&&!_0x4a81c6){_0x93c296['remove'](_0x5bcf39['getChild'](0x0));for(const _0x4c4159 of Array['from'](_0x43ede1['getChildren']()))_0x93c296['insert'](_0x4c4159,_0x5bcf39,'end');const _0x2850e8=_0x48b138['rowInsertionIndexes']['includes'](_0x2c9c41['row']),_0xd24748=_0x48b138['columnInsertionIndexes']['includes'](_0x2c9c41['column']);_0x2850e8||_0xd24748||(_0x2c66b2=_0x2bc62b['fromRange'](_0x93c296['createRangeIn'](_0x5bcf39)));}else _0x4a81c6&&!_0x49c9f1&&(_0x194423=_0x93c296['createRangeIn'](_0x5bcf39));}else{const _0x42531d=_0x93c296['createElement']('tableCellSuggestion'),_0xd6a4d8=_0x93c296['createElement']('tableCellSuggestion');_0x93c296['wrap'](_0x93c296['createRangeIn'](_0x5bcf39),_0xd6a4d8),_0x93c296['insert'](_0x42531d,_0x5bcf39,0x0);for(const _0x563fad of Array['from'](_0x43ede1['getChildren']()))_0x93c296['insert'](_0x563fad,_0x42531d,'end');_0x2c66b2=_0x2bc62b['fromRange'](_0x93c296['createRangeOn'](_0x42531d)),_0x194423=_0x2bc62b['fromRange'](_0x93c296['createRangeOn'](_0xd6a4d8));}const _0x3e63b9=Array['from'](_0x43ede1['getAttributes']())['filter'](([_0x29d4a2])=>we['includes'](_0x29d4a2));_0x48b138['cells']['push']({'element':_0x5bcf39,'attributes':_0x3e63b9['length']?Object['fromEntries'](_0x3e63b9):null}),_0x2c66b2&&_0x48b138['insertionRanges']['push'](_0x2c66b2),_0x194423&&_0x48b138['deletionRanges']['push'](_0x194423);},{'priority':'high'}),_0x55e51f['on']('insertColumns',(_0x2967d1,_0x2ecaa7)=>{const [_0x4e12a7,_0x4b03d4={}]=_0x2ecaa7;if(!_0x48b138)return;const _0x48c643=_0x4b03d4['at']||0x0,_0x364cda=_0x4b03d4['columns']||0x1;_0x48b138['columnInsertionIndexes']=new Array(_0x364cda)['fill'](_0x48c643)['map']((_0x14c815,_0x69065f)=>_0x14c815+_0x69065f);for(const {cell:_0x33bcc6}of _0x55e51f['createTableWalker'](_0x4e12a7,{'startColumn':_0x48c643,'endColumn':_0x48c643+_0x364cda-0x1}))_0x48b138['columnInsertionRanges']['push'](_0x3a5646['model']['createRangeOn'](_0x33bcc6));},{'priority':'low'}),_0x55e51f['on']('insertRows',(_0x5e7e2c,_0x32ea77)=>{const [_0x1d0a14,_0x2a28ed={}]=_0x32ea77;if(!_0x48b138)return;const _0x7e198=_0x2a28ed['at']||0x0,_0x21f5da=_0x2a28ed['rows']||0x1;_0x48b138['rowInsertionIndexes']=new Array(_0x21f5da)['fill'](_0x7e198)['map']((_0x5653ae,_0x31317f)=>_0x5653ae+_0x31317f);for(const {cell:_0x3ea4f8}of _0x55e51f['createTableWalker'](_0x1d0a14,{'startRow':_0x7e198,'endRow':_0x7e198+_0x21f5da-0x1}))_0x48b138['rowInsertionRanges']['push'](_0x3a5646['model']['createRangeOn'](_0x3ea4f8));},{'priority':'low'}),_0x4a237f['descriptionFactory']['registerDescriptionCallback'](_0xa52ec=>{if(_0xa52ec['subType']&&_0xa52ec['subType']['startsWith']('tablePaste'))return _0xa52ec['previous']?{}:{'type':'insertion','content':o(_0x3a5646['locale'],'*Replace\x20table\x20cells*')};});const _0x237608=()=>!0x1;for(const _0x1a5d33 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4a237f['_suggestionFactory']['registerCustomCallback']('insertion',_0x1a5d33,'join',_0x237608),_0x4a237f['_suggestionFactory']['registerCustomCallback']('deletion',_0x1a5d33,'join',_0x237608),_0x4a237f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a5d33,'join',_0x237608);_0x4a237f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x237608),_0x4a237f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x573821,_0x5361a3,_0x163d3f)=>{const _0x2d09b3=_0x573821['map'](_0xc10e4f=>_0xc10e4f['getContainedElement']())['filter'](_0x1e7ffe=>_0x1e7ffe),_0x44c889=new Map(_0x2d09b3['map'](_0x554a77=>[_0x554a77,null]));if(_0x48b138){for(const {element:_0x2d50a8,attributes:_0x4f56a5}of _0x48b138['cells'])_0x4f56a5&&_0x44c889['set'](_0x2d50a8,_0x4f56a5);}else{if(_0x163d3f&&_0x163d3f['markerAttributes'])for(const [_0x328941,_0x5d65ed]of Object['entries'](_0x163d3f['markerAttributes'])){const _0x7d716b=_0x3a5646['model']['markers']['get'](_0x328941),_0x39b895=_0x7d716b?_0x7d716b['getRange']()['getContainedElement']():null;_0x39b895&&_0x44c889['set'](_0x39b895,_0x5d65ed);}}_0x3a5646['model']['change'](_0x1e4865=>{for(const [_0xdc1127,_0x489de4]of _0x44c889)_0x1e4865['setAttributes']({...ve,..._0x489de4},_0xdc1127);});});const _0x252707=(_0x33eb99,_0x46f362)=>{_0x4a237f['_suggestionFactory']['registerCustomCallback'](_0x33eb99,'tablePaste',_0x46f362,(_0x10e044,_0x1c7ea2,_0x56644a)=>{_0x3a5646['model']['change'](_0x195f9e=>{const _0x78bd11=[];for(const _0x10dcc3 of _0x10e044){const _0x31d136=_0x10dcc3['start']['nodeAfter'];_0x31d136['is']('element','tableCellSuggestion')&&_0x78bd11['push'](_0x31d136);}_0x4a237f['_suggestionFactory']['getSuggestionCallback'](_0x33eb99,null,_0x46f362)(_0x10e044,_0x1c7ea2,_0x56644a);for(const _0x4e2581 of _0x78bd11)'$graveyard'!=_0x4e2581['root']['rootName']&&_0x195f9e['unwrap'](_0x4e2581);});});};_0x252707('insertion','accept'),_0x252707('insertion','discard'),_0x252707('deletion','accept'),_0x252707('deletion','discard'),_0x4a237f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3aa6ff=>{const _0x4c38fe=_0x3aa6ff['map'](_0x5aa11b=>_0x5aa11b['getContainedElement']()),_0xd0e537=_0x4c38fe[0x0]['findAncestor']('table'),{minRow:_0x5c7293,maxRow:_0x3c0802}=_0xf05fb9['_getCoordsForCells'](_0x4c38fe);_0x55e51f['removeRows'](_0xd0e537,{'at':_0x5c7293,'rows':_0x3c0802-_0x5c7293+0x1});}),_0x4a237f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x21e17d=>{const _0x10aed5=_0x21e17d['map'](_0x306125=>_0x306125['getContainedElement']()),_0x592614=_0x10aed5[0x0]['findAncestor']('table'),{minColumn:_0x27144f,maxColumn:_0x42bed5}=_0xf05fb9['_getCoordsForCells'](_0x10aed5);_0x55e51f['removeColumns'](_0x592614,{'at':_0x27144f,'columns':_0x42bed5-_0x27144f+0x1});});const _0x567b0e=(_0x4d6b95,_0x158f8b)=>{if(!_0x158f8b['subType']||!_0x158f8b['subType']['startsWith']('tablePaste'))return;const _0x50e809=_0x158f8b['attributes']['tablePasteChainId'],_0x5853b5=_0x4a237f['getSuggestions']()['filter'](_0x44386c=>_0x44386c['isInContent']&&_0x44386c['attributes']&&_0x44386c['attributes']['tablePasteChainId']==_0x50e809);_0x5853b5['length']&&_0x158f8b['getAllAdjacentSuggestions']()['length']!=_0x5853b5['length']&&_0x5853b5['reduce']((_0x35c17f,_0x230e98)=>(_0x35c17f['next']=_0x230e98,_0x230e98['previous']=_0x35c17f,_0x230e98));};function _0x507e27(_0x5bb821,_0x5a5f9f=!0x0){const {id:_0x117085,authorId:_0x212216}=_0x4a237f['_splitMarkerName'](_0x5bb821['markerName']),_0x19879a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2de119=_0x4a237f['activeMarkers']['includes'](_0x5bb821['markerName']);return _0x2de119&&_0x19879a['push']('ck-suggestion-marker--active'),{'classes':_0x19879a,'attributes':{'data-suggestion':_0x117085,'data-author-id':_0x212216},'priority':_0x2de119&&_0x5a5f9f?0xbc2:0xbb8};}_0x4a237f['on']('suggestionLoaded',_0x567b0e,{'priority':'high'}),_0x4a237f['on']('suggestionUnloaded',_0x567b0e,{'priority':'high'}),_0x3a5646['model']['document']['registerPostFixer'](()=>{let _0x216ac8=!0x1;const _0x5d6550=Array['from'](_0x3a5646['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19d8c0,data:_0x1f0349}of _0x5d6550){const {group:_0x55f2a6,type:_0x4df95d,id:_0x53aaf2}=_0x4a237f['_splitMarkerName'](_0x19d8c0);if('suggestion'!=_0x55f2a6||'deletion'!=_0x4df95d||_0x1f0349['oldRange'])continue;if(!_0x4a237f['hasSuggestion'](_0x53aaf2))continue;const _0x3824d4=_0x4a237f['getSuggestion'](_0x53aaf2)['getRanges'](),_0x2b26d0=_0x3a5646['plugins']['get']('Users')['me'];for(const _0x2ba149 of _0x4a237f['getSuggestions']()){if(!_0x2ba149['isInContent']||_0x2ba149['author']!=_0x2b26d0)continue;if('formatBlock'!=_0x2ba149['type']||'tablePasteCell'!=_0x2ba149['subType'])continue;if(_0x2ba149['getRanges']()['every'](_0x149576=>_0x3824d4['some'](_0x16f6f9=>_0x16f6f9['containsRange'](_0x149576,!0x0)))){for(const _0x1435c5 of _0x2ba149['getAllAdjacentSuggestions']())_0x1435c5['isInContent']&&(_0x1435c5['discard'](),_0x216ac8=!0x0);}}}return _0x216ac8;}),_0x3a5646['model']['document']['registerPostFixer'](_0x1ad5bf=>{const _0x3e5708=_0x3a5646['commands']['get']('redo');if(!_0x3e5708||!_0x3e5708['_createdBatches']['has'](_0x1ad5bf['batch']))return!0x1;let _0x437560=!0x1;const _0x265fbe=_0x3a5646['plugins']['get']('Users')['me'],_0x5a1c7e=_0x3a5646['model']['document']['differ']['getChanges'](),_0x4f57b8=Array['from'](_0x3a5646['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x7fca3b,data:_0x2dca30})=>{const {group:_0x4867c1,subType:_0x3922a2,authorId:_0x1ee9ef}=_0x4a237f['_splitMarkerName'](_0x7fca3b);return'suggestion'==_0x4867c1&&'tablePaste'==_0x3922a2&&_0x1ee9ef==_0x265fbe['id']&&!_0x2dca30['oldRange'];});for(const _0x3553b9 of _0x5a1c7e){if('insert'!=_0x3553b9['type']||'tableCellSuggestion'!=_0x3553b9['name']||0x1!=_0x3553b9['length'])continue;const _0x249ac5=_0x1ad5bf['createRange'](_0x3553b9['position'],_0x3553b9['position']['getShiftedBy'](0x1));if(!_0x4f57b8['find'](({data:_0x56eed2})=>_0x56eed2['newRange']['isEqual'](_0x249ac5))){for(const {name:_0x30b0ae,data:_0x5b02dc}of _0x4f57b8)if(_0x249ac5['containsRange'](_0x5b02dc['newRange'])){_0x1ad5bf['updateMarker'](_0x30b0ae,{'range':_0x249ac5}),_0x437560=!0x0;break;}}}return _0x437560;}),_0x3a5646['model']['document']['registerPostFixer'](_0x339c11=>{let _0x346ae2=!0x1;const _0x4d35c8=_0x3a5646['plugins']['get']('Users')['me'],_0x5e168d=_0x4a237f['getSuggestions']()['filter'](_0x29cb70=>_0x29cb70['isInContent']&&_0x29cb70['author']==_0x4d35c8),_0x195e9d=new Set(),_0x24c5f2=new Set();for(const _0x3ecf68 of _0x5e168d)if('tablePaste'==_0x3ecf68['subType'])for(const _0x58430f of _0x3ecf68['getMarkers']()){const _0xe60be2=_0x58430f['getRange']()['getContainedElement']();if(_0xe60be2){if(_0xe60be2['is']('element','tableCellSuggestion')&&je(_0xe60be2)){_0x3ecf68['removeMarker'](_0x58430f['name']),_0x195e9d['add'](_0xe60be2),_0x346ae2=!0x0;const _0x4cdb92=_0xe60be2['nextSibling'],_0x46f683=_0xe60be2['previousSibling'],_0x41a711=_0x4cdb92&&_0x4cdb92['is']('element','tableCellSuggestion'),_0x40a2ac=_0x46f683&&_0x46f683['is']('element','tableCellSuggestion');_0x41a711&&!_0x195e9d['has'](_0x4cdb92)&&_0x24c5f2['add'](_0x4cdb92),_0x40a2ac&&!_0x195e9d['has'](_0x46f683)&&_0x24c5f2['add'](_0x46f683);}else _0xe60be2['is']('element','paragraph')&&_0xe60be2['isEmpty']&&(_0x3ecf68['removeMarker'](_0x58430f['name']),_0x346ae2=!0x0);}}else{if('tablePasteCell'==_0x3ecf68['subType']){if(!_0x3ecf68['attributes']||!_0x3ecf68['attributes']['tablePasteChainId'])continue;const _0x40d0ed=_0x3ecf68['attributes']['markerAttributes'];if(_0x40d0ed&&Object['keys'](_0x40d0ed)['length'])continue;const _0x1e104c=_0x3ecf68['attributes']['tablePasteChainId'];let _0x16c813=!0x0,_0x378bec=!0x0;for(const _0x36aa5e of _0x5e168d)if(_0x36aa5e['subType']&&_0x36aa5e['subType']['startsWith']('tablePaste')){if(!_0x36aa5e['attributes']['tablePasteChainId']){_0x378bec=!0x1;break;}if(_0x36aa5e['id']!=_0x3ecf68['id']&&_0x36aa5e['attributes']['tablePasteChainId']==_0x1e104c){_0x16c813=!0x1;break;}}_0x378bec&&_0x16c813&&(_0x3ecf68['removeMarkers'](),_0x346ae2=!0x0);}}for(const _0x4d160f of _0x195e9d)_0x339c11['remove'](_0x4d160f);for(const _0x3f7676 of _0x24c5f2)_0x339c11['unwrap'](_0x3f7676);return _0x346ae2;}),_0x3a5646['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4c3d5a=>_0x507e27(_0x4c3d5a),'converterPriority':'high'}),_0x3a5646['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xff883e,_0xd0ca9e)=>_0xd0ca9e['options']['showSuggestionHighlights']?_0x507e27(_0xff883e,!0x1):null,'converterPriority':'high'});const _0x44f8e5=_0x3a5646['editing']['view'];this['listenTo'](_0x44f8e5['document'],'clipboardOutput',(_0x55b6ee,_0x53be35)=>{const _0x55e98a=[];for(const _0x1d00f8 of _0x44f8e5['createRangeIn'](_0x53be35['content'])['getItems']())_0x1d00f8['is']('element','suggestion-td')&&_0x55e98a['push'](_0x1d00f8);_0x44f8e5['change'](_0x490da9=>{for(const _0x22762e of _0x55e98a)_0x490da9['move'](_0x490da9['createRangeIn'](_0x22762e),_0x490da9['createPositionBefore'](_0x22762e)),_0x490da9['remove'](_0x22762e);});});}}function je(_0x55974c){if(_0x55974c['isEmpty'])return!0x0;const _0x48a65b=_0x55974c['getChild'](0x0);return _0x48a65b['is']('element','paragraph')&&_0x48a65b['isEmpty'];}function Ae(_0x25c189,_0x11c763={},_0x470d8b){for(const {isAnchor:_0x4a34c7,cellHeight:_0x4cf28,cellWidth:_0x100dcf}of _0x470d8b['createTableWalker'](_0x25c189,{'includeAllSlots':!0x0,..._0x11c763}))if(!_0x4a34c7||0x1!=_0x4cf28||0x1!=_0x100dcf)return!0x1;return!0x0;}class Dt extends _0xd3eebf{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2456db=this['editor']['plugins']['get']('TrackChangesEditing');_0x2456db['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2456db['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2456db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2456db['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2456db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2456db['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x409b10,_0x1e58cc){const _0x553fc6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4adeef=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x35ac76=_0x1e58cc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x333df5=_0x4adeef['getColumnGroupElement'](_0x35ac76);let _0x5442ee=_0x333df5?_0x4adeef['getTableColumnsWidths'](_0x333df5):null,_0x1dbf6c=_0x35ac76['getAttribute']('tableWidth')||null;const _0xf78340=_0x1e58cc['tableWidth']||_0x1dbf6c,_0x29a79e=_0x1e58cc['columnWidths']||_0x5442ee,_0x24fe2e=this['editor']['plugins']['get']('Users')['me'];for(const _0x350f6c of _0x553fc6['getSuggestions']()){const _0x514aa3=_0x350f6c['getContainedElement']();if('resizeTable'===_0x350f6c['subType']&&_0x514aa3===_0x35ac76){_0x350f6c['author']!==_0x24fe2e&&_0x350f6c['discard']();const _0x471010=_0x350f6c['data']['commandParams'];_0x1dbf6c=_0x471010[0x0]['tableWidth'],_0x5442ee=_0x471010[0x0]['columnWidths'];break;}}_0x409b10({'table':_0x35ac76,'tableWidth':_0xf78340,'columnWidths':_0x29a79e}),_0x553fc6['markBlockFormat'](_0x35ac76,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1dbf6c,'columnWidths':_0x5442ee}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x37f100){if('formatBlock'!=_0x37f100['type']&&'formatInline'!=_0x37f100['type'])return;const {data:_0x307f2d}=_0x37f100;if(_0x307f2d&&'resizeTable'===_0x307f2d['formatGroupId']){const _0x5abeb4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5abeb4)};}}}class Mt extends _0xd3eebf{['afterInit'](){const _0x4d6c5e=this['editor'];_0x4d6c5e['plugins']['has']('Template')&&_0x4d6c5e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xd3eebf{['afterInit'](){const _0x4d0690=this['editor'];if(!_0x4d0690['commands']['get']('insertTableOfContents'))return;_0x4d0690['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x490bb7=_0x4d0690['plugins']['get']('TrackChangesEditing'),_0x149b57=_0x4d0690['locale'];_0x490bb7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x22f292=>o(_0x149b57,'ELEMENT_TABLE_OF_CONTENTS',_0x22f292));}}class Bt extends _0xd3eebf{['afterInit'](){const _0x40817f=this['editor'];if(!_0x40817f['plugins']['has']('Title'))return;const _0x28687b=_0x40817f['plugins']['get']('TrackChangesEditing');_0x28687b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x40817f['locale'],'ELEMENT_TITLE')),_0x40817f['model']['document']['registerPostFixer'](_0x284c7b=>{let _0x25e4e2=!0x1;const _0x45e1f2=Array['from'](_0x40817f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f943e,data:_0x44edac}of _0x45e1f2){const {group:_0x21b6c4}=_0x28687b['_splitMarkerName'](_0x3f943e);if('suggestion'!==_0x21b6c4||!_0x44edac['newRange'])continue;const _0x10e8df=_0x44edac['newRange'],_0x4fe22c=_0x10e8df['end']['nodeBefore'];if(!_0x4fe22c||!_0x4fe22c['is']('element','title-content'))continue;if(!_0x10e8df['start']['isTouching'](_0x10e8df['end']))continue;const _0x5b2452=_0x40817f['model']['schema']['getNearestSelectionRange'](_0x10e8df['end'],'forward');if(_0x5b2452&&_0x5b2452['isCollapsed']){const _0x4e0bc7=_0x284c7b['createRange'](_0x10e8df['start'],_0x5b2452['start']);_0x4e0bc7['isEqual'](_0x10e8df)||(_0x284c7b['updateMarker'](_0x3f943e,{'range':_0x4e0bc7}),_0x25e4e2=!0x0);}_0x25e4e2||(_0x284c7b['removeMarker'](_0x3f943e),_0x25e4e2=!0x0);}return _0x25e4e2;});}}class Ot extends _0xd3eebf{['afterInit'](){const _0x4958d3=this['editor'],_0x43e6aa=_0x4958d3['plugins']['get']('TrackChangesEditing');_0x4958d3['plugins']['has']('UndoEditing')&&(_0x43e6aa['enableCommand']('undo'),_0x43e6aa['enableCommand']('redo'));}}class Rt extends _0xd3eebf{static get['requires'](){return[vt];}['afterInit'](){const _0xf2e362=this['editor'];if(!_0xf2e362['plugins']['has']('TableCaptionEditing'))return;_0xf2e362['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0xd3eebf{['tableProperties'];['tableCellProperties'];constructor(_0xafa5b6){super(_0xafa5b6),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 _0x573840=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x528288 of this['tableProperties'])_0x573840['enableCommand'](_0x528288,(_0x162768,_0x36b5da)=>{const _0x32b5f8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x528288,[_0x32b5f8],this['tableProperties'],'tableProperties',_0x162768,_0x36b5da);});_0x573840['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x573840['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x573840['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2cab72,_0x1d4c9d)=>this['handleDiscardAction'](this['tableProperties'],_0x2cab72,_0x1d4c9d)),_0x573840['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x20e295 of this['tableCellProperties'])_0x573840['enableCommand'](_0x20e295,(_0x115911,_0x29f2b0)=>{const _0x15a6fd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x20e295,_0x15a6fd,this['tableCellProperties'],'tableCellProperties',_0x115911,_0x29f2b0);});_0x573840['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x573840['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x573840['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1b2db2,_0x5ada49)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1b2db2,_0x5ada49)),_0x573840['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x573840['descriptionFactory']['registerDescriptionCallback'](_0x17d700=>this['handleSuggestionDescription'](_0x17d700));}['_handlePropertyChange'](_0x323bca,_0x577152,_0x4bc713,_0x5efc48,_0x210f78,_0x3867f5){const _0x4d1833=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3867f5['batch'],()=>{for(const _0x1dddce of _0x577152){if(this['_getSuggestion'](_0x1dddce,_0x5efc48))_0x210f78(_0x3867f5);else{const _0x37b344={};for(const _0x5ccbef of _0x4bc713){const _0x3559bb=_0x1dddce['getAttribute'](_0x5ccbef);void 0x0!==_0x3559bb&&(_0x37b344[_0x5ccbef]=_0x3559bb);}_0x210f78(_0x3867f5),_0x4d1833['markBlockFormat'](_0x1dddce,{'commandParams':[_0x37b344]},[],_0x5efc48);}}});}['handleDiscardAction'](_0x505778,_0x5edd67,_0x4a4e3c){const _0x119c41=_0x5edd67[0x0]['start']['nodeAfter'],_0x377029=_0x4a4e3c['commandParams'][0x0];this['editor']['model']['change'](_0x1a93f8=>{for(const _0x295cab of _0x505778)void 0x0!==_0x377029[_0x295cab]?_0x1a93f8['setAttribute'](_0x295cab,_0x377029[_0x295cab],_0x119c41):_0x1a93f8['removeAttribute'](_0x295cab,_0x119c41);});}['handleSuggestionDescription'](_0x5a4b40){if(_0x5a4b40['data'])switch(_0x5a4b40['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'](_0x548617,_0x373c44){const _0x2b2612=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d9cac of _0x2b2612['getSuggestions']({'skipNotAttached':!0x0})){const _0x35b356=_0x3d9cac['getContainedElement']();if(_0x3d9cac['subType']===_0x373c44&&_0x35b356===_0x548617)return _0x3d9cac;}return null;}}const m='$elementName';class p extends _0xd3eebf{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x33503a,_0x4677ea,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8c5c65){super(_0x8c5c65),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4a1cdd,_0xf8e4c6,_0x16af27,_0x66f218)=>{this['_model']['change'](()=>{for(const _0x3de6a6 of[..._0x66f218,..._0x16af27])this['_model']['markers']['has'](_0x3de6a6)&&_0x8c5c65['editing']['reconvertMarker'](_0x3de6a6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x8c5c65['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(),_0x8c5c65['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x8c5c65['config']['get']('trackChanges.trackFormatChanges'),_0x8c5c65['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x8c5c65['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x8c5c65,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x39cbb6=this['editor'],_0x3bc720=(_0xe6fc69,_0x238384)=>{if('attribute'!=_0xe6fc69)return'ck-suggestion-marker-'+_0xe6fc69;const _0x535c5b=_0x238384['split']('|')[0x0];return this['_isBlockAttribute'](_0x535c5b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x39cbb6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2ee0bf=>{const {id:_0x1061d3,authorId:_0xe39f3d,type:_0x5aabc8,subType:_0x31a998}=this['_splitMarkerName'](_0x2ee0bf['markerName']),_0x5c2b7a=['ck-suggestion-marker',_0x3bc720(_0x5aabc8,_0x31a998)];let _0x16c64d=0xbb8;return this['activeMarkers']['includes'](_0x2ee0bf['markerName'])&&(_0x5c2b7a['push']('ck-suggestion-marker--active'),_0x16c64d=0xbc2),'deletion'==_0x5aabc8&&(_0x16c64d+=0x5),{'classes':_0x5c2b7a,'attributes':{'data-suggestion':_0x1061d3,'data-author-id':_0xe39f3d},'priority':_0x16c64d};}}),_0x39cbb6['conversion']['for']('dataDowncast')['add'](_0x501595=>{_0x501595['on']('addMarker:suggestion',(_0x9a2b4e,_0x1c4609,_0xf0b140)=>{if(!_0xf0b140['options']['showSuggestionHighlights'])return;const _0x58207b=_0x1c4609['item'];if(!_0x58207b)return;const _0x2415e9=_0xf0b140['mapper']['toViewElement'](_0x58207b);_0x39cbb6['model']['schema']['isObject'](_0x58207b)&&_0x2415e9&&!_0x2415e9['getCustomProperty']('widget')&&_0x2415e9['is']('containerElement')&&_0x504f18(_0x2415e9,_0xf0b140['writer']);},{'priority':'high'});}),_0x39cbb6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x10a9f7,_0x52e76e)=>{if(!_0x52e76e['options']['showSuggestionHighlights'])return null;const {type:_0x5f4589,subType:_0x3f33c7}=this['_splitMarkerName'](_0x10a9f7['markerName']);return{'classes':['ck-suggestion-marker',_0x3bc720(_0x5f4589,_0x3f33c7)],'priority':0xbb8};}});const _0x5c4c61=({showActiveMarkers:_0x9bed32=!0x0,isAttributeSuggestion:_0x226087=!0x1}={})=>(_0x23f5dd,_0x56027a,_0x5221a2)=>{if(!_0x56027a['item'])return;const {id:_0x1a6a1f,authorId:_0x143a2f}=this['_splitMarkerName'](_0x56027a['markerName']);if(_0x226087){const _0xf2f449=this['_suggestions']['get'](_0x1a6a1f),_0x4ef9ac=this['_getAttributeKey'](_0xf2f449);if(!this['_isBlockAttribute'](_0x4ef9ac))return;}if(_0x56027a['item']['is']('selection'))return void _0x5221a2['consumable']['consume'](_0x56027a['item'],_0x23f5dd['name']);const _0x7358cf=_0x5221a2['mapper']['toViewElement'](_0x56027a['item']);if(_0x56027a['item']['is']('element')&&_0x39cbb6['model']['schema']['isBlock'](_0x56027a['item'])&&!_0x7358cf['getCustomProperty']('addHighlight')){_0x5221a2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x7358cf),_0x5221a2['writer']['setAttribute']('data-suggestion',_0x1a6a1f,_0x7358cf),_0x5221a2['writer']['setAttribute']('data-author-id',_0x143a2f,_0x7358cf),_0x5221a2['mapper']['bindElementToMarker'](_0x7358cf,_0x56027a['markerName']),_0x9bed32&&(this['activeMarkers']['includes'](_0x56027a['markerName'])?_0x5221a2['writer']['addClass']('ck-suggestion-marker--active',_0x7358cf):_0x5221a2['writer']['removeClass']('ck-suggestion-marker--active',_0x7358cf));for(const _0xd90e3 of _0x39cbb6['model']['createRangeIn'](_0x56027a['item'])['getItems']())_0x5221a2['consumable']['consume'](_0xd90e3,_0x23f5dd['name']);_0x5221a2['consumable']['consume'](_0x56027a['item'],_0x23f5dd['name']);}};_0x39cbb6['conversion']['for']('dataDowncast')['add'](_0x364b46=>{_0x364b46['on']('addMarker:suggestion:formatBlock',(_0xcd3ab0,_0x3a9e0a,_0x1ceb8c)=>{_0x1ceb8c['options']['showSuggestionHighlights']&&_0x5c4c61({'showActiveMarkers':!0x1})(_0xcd3ab0,_0x3a9e0a,_0x1ceb8c);},{'priority':'highest'});}),_0x39cbb6['conversion']['for']('dataDowncast')['add'](_0x51554e=>{_0x51554e['on']('addMarker:suggestion:attribute',(_0x35dcc2,_0x556084,_0x4dfe9f)=>{_0x4dfe9f['options']['showSuggestionHighlights']&&_0x5c4c61({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x35dcc2,_0x556084,_0x4dfe9f);},{'priority':'highest'});}),_0x39cbb6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x9f9c6c,_0x367ac6)=>_0x367ac6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x9f9c6c['substr'](0xb)}}),_0x39cbb6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e63e,{writer:_0x173181})=>{let _0x590480='suggestion:'+_0x4e63e['getAttribute']('suggestion-type')+':'+_0x4e63e['getAttribute']('id');return _0x4e63e['getAttribute']('marker-count')&&(_0x590480+=':'+_0x4e63e['getAttribute']('marker-count')),_0x173181['createElement']('$marker',{'data-name':_0x590480});}}),_0x39cbb6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x39cbb6['conversion']['for']('editingDowncast')['add'](_0x54b77f=>{_0x54b77f['on']('addMarker:suggestion:formatBlock',_0x5c4c61(),{'priority':'high'});}),_0x39cbb6['conversion']['for']('editingDowncast')['add'](_0x5a6fd4=>{_0x5a6fd4['on']('addMarker:suggestion:attribute',_0x5c4c61({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x39cbb6['conversion']['for']('editingDowncast')['add'](_0xda10de=>{_0xda10de['on']('removeMarker:suggestion:formatBlock',(_0x1b1bca,_0x56428e,_0x2d53ed)=>{const _0x1bbffc=_0x2d53ed['mapper']['markerNameToElements'](_0x56428e['markerName']);if(_0x1bbffc){for(const _0x292e2a of _0x1bbffc)_0x292e2a['getCustomProperty']('addHighlight')||(_0x2d53ed['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x292e2a),_0x2d53ed['writer']['removeAttribute']('data-suggestion',_0x292e2a),_0x2d53ed['writer']['removeAttribute']('data-author-id',_0x292e2a),_0x2d53ed['mapper']['unbindElementFromMarkerName'](_0x292e2a,_0x56428e['markerName']));}},{'priority':'high'});}),_0x39cbb6['conversion']['for']('editingDowncast')['add'](_0x4656a1=>{_0x4656a1['on']('removeMarker:suggestion:attribute',(_0x7cd8cc,_0x3e9ef1,_0x377add)=>{const _0x21cc84=_0x377add['mapper']['markerNameToElements'](_0x3e9ef1['markerName']);if(!_0x21cc84)return;const {id:_0x657ea4}=this['_splitMarkerName'](_0x3e9ef1['markerName']),_0x12cd35=this['_suggestions']['get'](_0x657ea4),_0x354bae=this['_getAttributeKey'](_0x12cd35);if(this['_isBlockAttribute'](_0x354bae)){for(const _0x5da039 of _0x21cc84)_0x5da039['getCustomProperty']('addHighlight')||(_0x377add['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5da039),_0x377add['writer']['removeAttribute']('data-suggestion',_0x5da039),_0x377add['writer']['removeAttribute']('data-author-id',_0x5da039),_0x377add['mapper']['unbindElementFromMarkerName'](_0x5da039,_0x3e9ef1['markerName']));}},{'priority':'high'});}),_0x39cbb6['model']['document']['registerPostFixer'](_0x44486d=>{let _0x3ba73c=!0x1;const _0x2c5640=Array['from'](_0x39cbb6['model']['document']['differ']['getChangedMarkers']()),_0x2450bb=new Set();for(const {name:_0x3d6df8,data:_0x1515f1}of _0x2c5640){const {group:_0x2edae4,type:_0x29afa2,subType:_0x409941,id:_0x3f1121}=this['_splitMarkerName'](_0x3d6df8);if('suggestion'!==_0x2edae4)continue;const _0x38c66a=this['_suggestions']['get'](_0x3f1121);if(null!=_0x1515f1['newRange']){'formatInline'==_0x29afa2&&(_0x3ba73c=_0x3ba73c||Pt(_0x1515f1['newRange'],_0x3d6df8,_0x44486d,_0x39cbb6['model']['schema']));const _0x2bc2f3='attribute'==_0x29afa2&&this['_isBlockAttribute'](_0x409941['split']('|')[0x0]);if(_0x1515f1['newRange']['isCollapsed']||'$graveyard'==_0x1515f1['newRange']['root']['rootName']||'formatBlock'==_0x29afa2&&!Ft(_0x1515f1['newRange'])||_0x2bc2f3&&!Ft(_0x1515f1['newRange'])||'deletion'==_0x29afa2&&!(!Vt(_0x2b26a3=_0x1515f1['newRange'])&&!function(_0x4e47cb){return _0x4e47cb['start']['parent']==_0x4e47cb['end']['nodeBefore']&&_0x4e47cb['start']['isAtEnd'];}(_0x2b26a3)))_0x44486d['removeMarker'](_0x3d6df8),_0x3ba73c=!0x0;else{if(!_0x38c66a||!_0x38c66a['isInContent'])continue;if(_0x1515f1['newRange']&&_0x1515f1['oldRange']&&_0x1515f1['newRange']['isEqual'](_0x1515f1['oldRange']))continue;_0x2450bb['add'](_0x38c66a);}}}var _0x2b26a3;return _0x2450bb['size']>0x0&&(_0x3ba73c=!!this['_joinWithAdjacentSuggestions'](_0x2450bb)||_0x3ba73c),_0x3ba73c;}),_0x39cbb6['model']['document']['registerPostFixer'](_0x46cc98=>{let _0x29a205=!0x1;for(const _0x18a324 of _0x39cbb6['model']['document']['differ']['getChanges']())if('insert'==_0x18a324['type'])for(const _0x190f36 of this['_suggestions']['values']()){if(_0x190f36['isMultiRange']||!_0x190f36['isInContent'])continue;const _0x1fc7be='formatBlock'==_0x190f36['type'],_0x433544=this['_getAttributeKey'](_0x190f36),_0x59009a=_0x433544&&this['_isBlockAttribute'](_0x433544);if(!_0x1fc7be&&!_0x59009a)continue;const _0x57be4d=_0x190f36['getFirstRange']();if(_0x57be4d['start']['parent']!=_0x57be4d['end']['parent']&&!_0x57be4d['end']['isAtEnd']){const _0x49d5f9=_0x39cbb6['model']['createPositionAt'](_0x57be4d['start']['nodeAfter'],'end'),_0x1a895c=_0x39cbb6['model']['createRange'](_0x57be4d['start'],_0x49d5f9);_0x46cc98['updateMarker'](_0x190f36['getFirstMarker'](),{'range':_0x1a895c}),_0x29a205=!0x0;}}return _0x29a205;}),_0x39cbb6['model']['document']['registerPostFixer'](_0xecf41a=>this['_processAttributeChanges'](_0xecf41a)),_0x39cbb6['model']['document']['registerPostFixer'](_0x472d62=>!_0x472d62['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x472d62)),_0x39cbb6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x39cbb6['model']['document']['on']('change:data',(_0x4af716,_0x2c0f2a)=>{if(!_0x2c0f2a['isLocal']||_0x2c0f2a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1fd1fa=_0x39cbb6['model']['document']['differ']['getChanges']();if(0x0==_0x1fd1fa['length'])return;const _0x290fee=[],_0x3bcbbb=_0x1fd1fa['filter'](_0x50ae6e=>'attribute'==_0x50ae6e['type']),_0x55c208=_0x1fd1fa['filter'](_0x2710e8=>'insert'==_0x2710e8['type']&&'$text'!=_0x2710e8['name']);for(const _0x43868b of _0x3bcbbb)this['_isRegisteredAttribute'](_0x43868b['attributeKey'])&&_0x290fee['push']({'key':_0x43868b['attributeKey'],'newValue':_0x43868b['attributeNewValue'],'oldValue':_0x43868b['attributeOldValue'],'range':Lt(_0x43868b['range'],_0x39cbb6['model'])});for(const _0x311d70 of _0x55c208){if('rename'!=_0x311d70['action']&&'refresh'!=_0x311d70['action'])continue;const _0x4b3601=Jt(_0x311d70['position']['nodeAfter'],_0x39cbb6['model']),_0x236322=_0x311d70['before'];'rename'==_0x311d70['action']&&_0x290fee['push']({'key':m,'newValue':_0x311d70['name'],'oldValue':_0x236322['name'],'range':_0x4b3601});for(const [_0x1c2bf5,_0x5a9e44]of _0x236322['attributes']){if(!this['_isRegisteredAttribute'](_0x1c2bf5))continue;const _0xe30cf=_0x311d70['attributes']['get'](_0x1c2bf5);_0x5a9e44!==_0xe30cf&&_0x290fee['push']({'key':_0x1c2bf5,'newValue':_0xe30cf,'oldValue':_0x5a9e44,'range':_0x4b3601});}for(const [_0xef0acf,_0x3bde87]of _0x311d70['attributes'])this['_isRegisteredAttribute'](_0xef0acf)&&(_0x236322['attributes']['has'](_0xef0acf)||_0x290fee['push']({'key':_0xef0acf,'newValue':_0x3bde87,'oldValue':null,'range':_0x4b3601}));}0x0!=_0x290fee['length']&&_0x39cbb6['model']['enqueueChange'](_0x2c0f2a,_0x2f0fad=>{const _0x3a947e=_0x2b70c4();for(const {range:_0x41c07b,key:_0x180091,oldValue:_0x1827be,newValue:_0x1ccab6}of _0x290fee)this['markAttributeChange'](_0x41c07b,_0x180091,_0x1827be,_0x1ccab6,{'groupId':_0x3a947e});this['_reduceExistingSuggestions'](_0x2f0fad,_0x290fee);});},{'priority':'lowest'}),_0x39cbb6['model']['markers']['on']('update:suggestion',(_0x8c7d58,_0x4918fe,_0x23b822)=>{if(null==_0x23b822){const {id:_0x5beaee}=this['_splitMarkerName'](_0x4918fe['name']),_0x1af7d1=this['_suggestions']['get'](_0x5beaee);_0x1af7d1&&_0x1af7d1['addMarkerName'](_0x4918fe['name']);}}),_0x39cbb6['model']['document']['on']('change:data',()=>{const _0x390108=Array['from'](_0x39cbb6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1af95d=>'suggestion'===this['_splitMarkerName'](_0x1af95d['name'])['group']);if(0x0===_0x390108['length'])return;_0x390108['sort']((_0x32f81a,_0x33c219)=>{const _0x30e6ad=_0x32f81a['data']['oldRange'],_0x261901=_0x33c219['data']['oldRange'];return null===_0x30e6ad&&null===_0x261901?0x0:null===_0x30e6ad&&null!==_0x261901?-0x1:null!==_0x30e6ad&&null===_0x261901?0x1:_0x30e6ad['start']['isBefore'](_0x261901['start'])?-0x1:0x1;});const _0x56e217=new Set(),_0x3dede0=new Set();for(const {name:_0x443a60,data:_0x4a00dd}of _0x390108){const {id:_0x51fbf2}=this['_splitMarkerName'](_0x443a60);if(null===_0x4a00dd['oldRange']){const _0x533ce7=this['_handleNewSuggestionMarker'](_0x443a60);_0x3dede0['add'](_0x533ce7);}else{const _0x49b87a=this['_suggestions']['get'](_0x51fbf2);null!==_0x4a00dd['newRange']||_0x49b87a['isInContent']?(_0x56e217['add'](_0x49b87a['head']),_0x3dede0['add'](_0x49b87a)):this['_removeSuggestion'](_0x49b87a);}}_0x3dede0['size']>0x0&&this['_refreshSuggestionsChain'](_0x3dede0);for(const _0x24b97a of _0x56e217)this['fire']('suggestionChanged',_0x24b97a);}),_0x39cbb6['model']['on']('applyOperation',(_0x147323,_0x202412)=>{const _0x2a7b47=_0x202412[0x0];if(!this['_suggestions']['size'])return;if(!_0x2a7b47['isDocumentOperation'])return;if(_0x2a7b47['batch']['isUndo']||!_0x2a7b47['batch']['isLocal'])return;let _0x21bca3,_0x13cc09;switch(_0x2a7b47['type']){case'insert':_0x21bca3=_0x39cbb6['model']['createPositionAt'](_0x2a7b47['position']),_0x13cc09=_0x21bca3['getShiftedBy'](_0x2a7b47['howMany']);break;case'split':_0x21bca3=_0x39cbb6['model']['createPositionAt'](_0x2a7b47['splitPosition']),_0x13cc09=_0x39cbb6['model']['createPositionAt'](_0x2a7b47['moveTargetPosition']);break;case'move':_0x21bca3=_0x39cbb6['model']['createPositionAt'](_0x2a7b47['targetPosition']),_0x13cc09=_0x21bca3['getShiftedBy'](_0x2a7b47['howMany']);break;default:return;}const _0x4b9736=_0x39cbb6['model']['createRange'](_0x21bca3,_0x13cc09);_0x39cbb6['model']['change'](()=>{for(const {suggestion:_0x54720c,meta:_0x2d2d13}of this['_findSuggestions'](_0x4b9736)){if(_0x54720c['isMultiRange'])continue;if('formatInline'==_0x54720c['type'])continue;const _0x304eb8=this['_getAttributeKey'](_0x54720c);if(_0x304eb8&&this['_isBlockAttribute'](_0x304eb8)&&'split'!=_0x2a7b47['type'])continue;const _0xd7c4d0=_0x54720c['data']&&_0x54720c['data']['multipleBlocks'];('formatBlock'!=_0x54720c['type']||'split'==_0x2a7b47['type']&&!_0xd7c4d0)&&(_0x2d2d13['containsRangeInObject']||'insertion'==_0x54720c['type']&&_0x2d2d13['isOwn']||_0x54720c['getFirstRange']()['containsRange'](_0x4b9736)&&this['_breakSuggestionMarker'](_0x54720c,_0x21bca3,_0x13cc09));}});},{'priority':'lowest'}),_0x39cbb6['model']['on']('deleteContent',(_0x583716,_0x43c5eb)=>{const _0x5505bb=_0x43c5eb[0x0],_0x1912d7=_0x43c5eb[0x1];if(_0x1912d7&&_0x1912d7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5505bb['isCollapsed'])return;const _0x5989a7=_0x39cbb6['model']['schema'],{start:_0x31891a,end:_0x4dabd5}=_0x5505bb['getFirstRange'](),_0x18fea6=_0x31891a['nodeAfter']&&_0x5989a7['isLimit'](_0x31891a['nodeAfter'])?null:_0x5989a7['getNearestSelectionRange'](_0x31891a,'forward'),_0x80c84a=_0x4dabd5['nodeBefore']&&_0x5989a7['isLimit'](_0x4dabd5['nodeBefore'])?null:_0x5989a7['getNearestSelectionRange'](_0x4dabd5,'backward'),_0xbc5535=_0x39cbb6['model']['createRange'](_0x18fea6?_0x18fea6['start']:_0x31891a,_0x80c84a?_0x80c84a['end']:_0x4dabd5);_0x39cbb6['model']['change'](_0x29e021=>{this['markDeletion'](_0xbc5535);const _0x538c52=_0x39cbb6['model']['schema']['getNearestSelectionRange'](_0xbc5535['start']);_0x5505bb['is']('documentSelection')?_0x29e021['setSelection'](_0x538c52):_0x5505bb['setTo'](_0x538c52);}),_0x583716['stop']();},{'priority':_0x2d7443['normal']+0xa}),_0x39cbb6['model']['on']('insertContent',(_0x35c4f8,_0xd75948)=>{const _0x3fd80b=_0xd75948[_0xd75948['length']-0x1];_0x3fd80b&&_0x3fd80b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x39cbb6['model']['change'](()=>{let _0x3a5972=_0x39cbb6['model']['insertContent'](_0xd75948[0x0],_0xd75948[0x1],_0xd75948[0x2],{'forceDefaultExecution':!0x0});if(!_0x3a5972)return;_0x35c4f8['return']=_0x3a5972['clone']();const _0x540517=_0x3a5972['end']['nodeBefore'],_0x21316b=_0x39cbb6['model']['schema'];_0x540517&&_0x21316b['isBlock'](_0x540517)&&!_0x21316b['isObject'](_0x540517)&&(_0x3a5972=_0x39cbb6['model']['createRange'](_0x3a5972['start'],_0x39cbb6['model']['createPositionAt'](_0x540517,'end'))),this['markInsertion'](_0x3a5972);}),_0x35c4f8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2ff025=new O(_0x39cbb6,this['_suggestions']);_0x39cbb6['commands']['add']('acceptSuggestion',_0x2ff025),this['enableCommand']('acceptSuggestion');const _0xd884b0=new R(_0x39cbb6,this['_suggestions']);_0x39cbb6['commands']['add']('discardSuggestion',_0xd884b0),this['enableCommand']('discardSuggestion'),_0x39cbb6['commands']['add']('acceptAllSuggestions',new x(_0x39cbb6,_0x2ff025,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x39cbb6['commands']['add']('discardAllSuggestions',new x(_0x39cbb6,_0xd884b0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x39cbb6['commands']['add']('acceptSelectedSuggestions',new E(_0x39cbb6,_0x2ff025,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x39cbb6['commands']['add']('discardSelectedSuggestions',new E(_0x39cbb6,_0xd884b0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x219402=_0x39cbb6['plugins']['get']('CommentsRepository');this['listenTo'](_0x219402,'addComment',(_0x725ce9,{threadId:_0x51164a})=>{const _0x2e117c=this['_suggestions']['get'](_0x51164a);_0x2e117c&&_0x2e117c['commentThread']&&0x1===_0x2e117c['commentThread']['length']&&this['_updateSuggestionData'](_0x51164a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x219402,'removeComment',(_0x460774,{threadId:_0x5865f8})=>{const _0x498feb=this['_suggestions']['get'](_0x5865f8);_0x498feb&&_0x498feb['commentThread']&&!_0x498feb['commentThread']['length']&&this['_updateSuggestionData'](_0x5865f8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1f96b4){const _0x5dd471=_0x3e2716([0x6b,0x4c,0x34,0x56,0x53,0x6c,0x57,0x45,0x4d,0x44,0x63,0x54,0x58,0x7a,0x77,0x5a,0x41,0x35,0x64,0x76,0x4e,0x6a,0x61,0x31,0x50,0x46,0x51,0x65,0x39,0x30,0x42,0x55,0x4a,0x67,0x33,0x62,0x74,0x4b,0x72,0x79,0x52,0x38,0x6f,0x32,0x59,0x6d,0x69,0x43,0x75,0x78,0x47,0x4f,0x68,0x73,0x36,0x70,0x6e,0x37,0x66,0x49,0x71,0x48]),_0x3215b5=0x43052d8c,_0xe4d0dc=0x4302741c^_0x3215b5,_0x2c8363=window[_0x3e2716([0x44,0x61,0x74,0x65])][_0x3e2716([0x6e,0x6f,0x77])](),_0x514c08=_0x1f96b4[_0x3e2716([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ebc1b=new window[(_0x3e2716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d1a8=>{_0x514c08[_0x3e2716([0x6f,0x6e,0x63,0x65])](_0x3e2716([0x72,0x65,0x61,0x64,0x79]),_0x29d1a8);}),_0xf3ef34={[_0x3e2716([0x6b,0x74,0x79])]:_0x3e2716([0x45,0x43]),[_0x3e2716([0x75,0x73,0x65])]:_0x3e2716([0x73,0x69,0x67]),[_0x3e2716([0x63,0x72,0x76])]:_0x3e2716([0x50,0x2d,0x32,0x35,0x36]),[_0x3e2716([0x78])]:_0x3e2716([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]),[_0x3e2716([0x79])]:_0x3e2716([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]),[_0x3e2716([0x61,0x6c,0x67])]:_0x3e2716([0x45,0x53,0x32,0x35,0x36])},_0x4364a8=_0x514c08[_0x3e2716([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e2716([0x67,0x65,0x74])](_0x3e2716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2987c1(){let _0x28020e,_0x4fd38a=null,_0x4b78cc=null;try{if(_0x4364a8==_0x3e2716([0x47,0x50,0x4c]))return _0x3e2716([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28020e=_0x45ee05(),!_0x28020e)return _0x3e2716([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28020e[_0x3e2716([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b78cc=_0x22cbb4(_0x28020e[_0x3e2716([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28020e[_0x3e2716([0x6a,0x74,0x69])])),await _0x5bb401()?_0x3a301a()?_0x20d176()?_0x3e2716([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32f98c()?(_0x28020e[_0x3e2716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e2716([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fd38a=_0x1608d2(_0x3e2716([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28020e[_0x3e2716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e2716([0x74,0x72,0x69,0x61,0x6c])&&(_0x4fd38a=_0x1608d2(_0x3e2716([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x28020e[_0x3e2716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e2716([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4fd38a=_0x1608d2(_0x3e2716([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x279de9()):_0x3e2716([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e2716([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e2716([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4fca8a){return _0x3e2716([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20d176(){const _0x47f61d=[_0x3e2716([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e2716([0x74,0x72,0x69,0x61,0x6c])][_0x3e2716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28020e[_0x3e2716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c8363/0x3e8:0xe10*_0xe4d0dc;return _0x28020e[_0x3e2716([0x65,0x78,0x70])]<_0x47f61d;}function _0x3a301a(){const _0x4b02de=_0x28020e[_0x3e2716([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4b02de)return!0x1;if(_0x4b02de[_0x3e2716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e2716([0x2a])))return!0x0;if(_0x4b02de[_0x3e2716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e2716([0x54,0x43])))return!0x0;if(_0x4b02de[_0x3e2716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e2716([0x52,0x54,0x43]))){if(_0x4e7b36())return!0x0;if(_0x38eefc()||_0xa1e7fe())return!0x0;}return!0x1;}function _0x32f98c(){const _0x5138f8=_0x28020e[_0x3e2716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5138f8||0x0==_0x5138f8[_0x3e2716([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45d950}=new URL(window[_0x3e2716([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5138f8[_0x3e2716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d950))return!0x0;const _0x17e1b8=_0x45d950[_0x3e2716([0x73,0x70,0x6c,0x69,0x74])](_0x3e2716([0x2e]));return _0x5138f8[_0x3e2716([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2327bf=>_0x2327bf[_0x3e2716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e2716([0x2a])))[_0x3e2716([0x6d,0x61,0x70])](_0x2e17eb=>_0x2e17eb[_0x3e2716([0x73,0x70,0x6c,0x69,0x74])](_0x3e2716([0x2e])))[_0x3e2716([0x73,0x6f,0x6d,0x65])](_0x549778=>_0x17e1b8[_0x3e2716([0x65,0x76,0x65,0x72,0x79])]((_0x58db6e,_0x3b6895)=>_0x549778[_0x3b6895]===_0x58db6e||_0x549778[_0x3b6895]===_0x3e2716([0x2a])));}function _0x279de9(){return _0x4fd38a&&_0x4b78cc?new window[(_0x3e2716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x240580,_0x550dc0)=>{_0x4fd38a[_0x3e2716([0x74,0x68,0x65,0x6e])](_0x240580,_0x550dc0),_0x4b78cc[_0x3e2716([0x74,0x68,0x65,0x6e])](_0x11e475=>{_0x11e475!=_0x3e2716([0x56,0x61,0x6c,0x69,0x64])&&_0x240580(_0x11e475);},_0x550dc0);}):_0x4fd38a||_0x4b78cc||_0x3e2716([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22cbb4(_0x3dde40,_0x97cd81){return new window[(_0x3e2716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6a5e=>{if(_0x3a339b())return _0x4e6a5e(_0x3e2716([0x56,0x61,0x6c,0x69,0x64]));_0x3ba4da(),_0x514c08[_0x3e2716([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e2716([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17ebfc=!0x1;const _0x15f85d=_0x2b70c4();function _0x9877fb(_0x4b71cd){return!!_0x4b71cd&&(typeof _0x4b71cd===_0x3e2716([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b71cd===_0x3e2716([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b71cd[_0x3e2716([0x74,0x68,0x65,0x6e])]===_0x3e2716([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b71cd[_0x3e2716([0x63,0x61,0x74,0x63,0x68])]===_0x3e2716([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x357c66(_0x2589d9){_0x1e325e(_0x2589d9)[_0x3e2716([0x74,0x68,0x65,0x6e])](_0x573e57=>{if(!_0x573e57||_0x573e57[_0x3e2716([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e2716([0x6f,0x6b]))return _0x3e2716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x33961c(_0x1ee967(_0x15f85d+_0x97cd81))!=_0x573e57[_0x3e2716([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e2716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e2716([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e2716([0x74,0x68,0x65,0x6e])](_0x276760=>(_0x5344ab(),_0x276760),()=>{const _0x37983e=_0x438dd9();return null==_0x37983e?(_0x5344ab(),_0x3e2716([0x56,0x61,0x6c,0x69,0x64])):_0x3e2716(_0x2c8363-_0x37983e>(0x6709a98c^_0x3215b5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e2716([0x74,0x68,0x65,0x6e])](_0x4e6a5e)[_0x3e2716([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e6a5e(_0x3e2716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18e88c=0x4333c30c^_0x3215b5;function _0x5344ab(){const _0x5cd068=_0x3e2716([0x6c,0x6c,0x63,0x74,0x2d])+_0x33961c(_0x1ee967(_0x3dde40)),_0x5a6b3a=_0x39929c(_0x33961c(window[_0x3e2716([0x4d,0x61,0x74,0x68])][_0x3e2716([0x63,0x65,0x69,0x6c])](_0x2c8363/_0x18e88c)));window[_0x3e2716([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e2716([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cd068,_0x5a6b3a);}function _0x438dd9(){const _0x421041=_0x3e2716([0x6c,0x6c,0x63,0x74,0x2d])+_0x33961c(_0x1ee967(_0x3dde40)),_0x27b9ec=window[_0x3e2716([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e2716([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x421041);return _0x27b9ec?window[_0x3e2716([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39929c(_0x27b9ec),0x10)*_0x18e88c:null;}function _0x1e325e(_0x7d3c57){return new window[(_0x3e2716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30564f,_0x5a49e7)=>{_0x7d3c57[_0x3e2716([0x74,0x68,0x65,0x6e])](_0x30564f,_0x5a49e7),window[_0x3e2716([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a49e7,0x4304f94c^_0x3215b5);});}}_0x514c08[_0x3e2716([0x6f,0x6e])](_0x3e2716([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e6ca2,_0x22c625)=>{if(_0x22c625[0x0]!=_0x3dde40)return _0x4e6a5e(_0x3e2716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22c625[0x1]={..._0x22c625[0x1],[_0x3e2716([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15f85d};},{[_0x3e2716([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e2716([0x68,0x69,0x67,0x68])}),_0x514c08[_0x3e2716([0x6f,0x6e])](_0x3e2716([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a5c61=>{_0x9877fb(_0x1a5c61[_0x3e2716([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17ebfc=!0x0,_0x357c66(_0x1a5c61[_0x3e2716([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e2716([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e2716([0x6c,0x6f,0x77])}),_0x2ebc1b[_0x3e2716([0x74,0x68,0x65,0x6e])](()=>{_0x17ebfc||_0x4e6a5e(_0x3e2716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a339b(){return _0x514c08[_0x3e2716([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e2716([0x76,0x69,0x65,0x77])][_0x3e2716([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e2716([0x61,0x75,0x74,0x6f]);}function _0x3ba4da(){_0x514c08[_0x3e2716([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e2716([0x76,0x69,0x65,0x77])][_0x3e2716([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e2716([0x61,0x75,0x74,0x6f]);}}function _0x1608d2(_0x8b9a5a){const _0x730d33=[new window[(_0x3e2716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x440c43=>setTimeout(_0x440c43,0x430c1340^_0x3215b5)),_0x2ebc1b[_0x3e2716([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e2716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cb48a=>{let _0x105eb1=0x0;_0x514c08[_0x3e2716([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e2716([0x6f,0x6e])](_0x3e2716([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x27cbd5,_0x30d846)=>{_0x30d846[0x0][_0x3e2716([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x105eb1++,_0x105eb1==(0x43052c74^_0x3215b5)&&(_0x3cb48a(),_0x27cbd5[_0x3e2716([0x6f,0x66,0x66])]());});}))];return window[_0x3e2716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e2716([0x72,0x61,0x63,0x65])](_0x730d33)[_0x3e2716([0x74,0x68,0x65,0x6e])](()=>_0x8b9a5a);}async function _0xdfe13a(){await _0x2ebc1b,_0x514c08[_0x3e2716([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e2716([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36c137,_0x514c08[_0x3e2716([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e2716([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36c137,_0x514c08[_0x3e2716([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e2716([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e7b36(){return _0x5079ec(_0x3e2716([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x512d13(_0x3e2716([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3e2716([0x73,0x74,0x61,0x74,0x65])]==_0x3e2716([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x38eefc(){return _0x5079ec(_0x3e2716([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 _0xa1e7fe(){return _0x5079ec(_0x3e2716([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x327c1a(_0x5079cf){const _0x38c374=_0xd3e1c7();_0x514c08[_0x38c374]=_0x3e2716([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5079cf,_0x5079cf!=_0x3e2716([0x56,0x61,0x6c,0x69,0x64])&&_0xdfe13a();}function _0xd3e1c7(){const _0x439c8d=window[_0x3e2716([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e2716([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e2716([0x6e,0x6f,0x77])]())[_0x3e2716([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e2716([0x2e]),'');let _0x23f41a=_0x3e2716([0x6b]);for(let _0x4f341b=0x0;_0x4f341b<_0x439c8d[_0x3e2716([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f341b+=0x2){let _0x111895=window[_0x3e2716([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x439c8d[_0x3e2716([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f341b,_0x4f341b+0x2));_0x111895>=_0x5dd471[_0x3e2716([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x111895-=_0x5dd471[_0x3e2716([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23f41a+=_0x5dd471[_0x111895];}return _0x23f41a;}function _0x45ee05(){const _0x3bdfa2=_0x4364a8[_0x3e2716([0x73,0x70,0x6c,0x69,0x74])](_0x3e2716([0x2e]));if(0x3!=_0x3bdfa2[_0x3e2716([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x369fe9(_0x3bdfa2[0x1]);function _0x369fe9(_0x128ffa){const _0x1290b3=_0x440f69(_0x128ffa);return _0x1290b3&&_0xc753c9()?_0x1290b3:null;function _0xc753c9(){const _0x36e1b7=_0x1290b3[_0x3e2716([0x6a,0x74,0x69])],_0x35b8d3=window[_0x3e2716([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36e1b7[_0x3e2716([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36e1b7[_0x3e2716([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e2c40={..._0x1290b3,[_0x3e2716([0x6a,0x74,0x69])]:_0x36e1b7[_0x3e2716([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x36e1b7[_0x3e2716([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e2c40[_0x3e2716([0x76,0x63])],_0x1ee967(_0x2e2c40)==_0x35b8d3;}}}async function _0x5bb401(){let _0x269372=!0x0;try{const _0x41cb66=_0x4364a8[_0x3e2716([0x73,0x70,0x6c,0x69,0x74])](_0x3e2716([0x2e])),[_0x245f82,_0x59a127,_0x2448f5]=_0x41cb66;return _0x1594aa(_0x245f82),await _0x407347(_0x245f82,_0x59a127,_0x2448f5),_0x269372;}catch(_0x3b70fd){return!0x1;}function _0x1594aa(_0x53aaca){const _0x1683cf=_0x440f69(_0x53aaca);_0x1683cf&&_0x1683cf[_0x3e2716([0x61,0x6c,0x67])]==_0x3e2716([0x45,0x53,0x32,0x35,0x36])||(_0x269372=!0x1);}async function _0x407347(_0x3f8cf5,_0x6ac3b2,_0xbd962b){const _0x25099f=window[_0x3e2716([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e2716([0x66,0x72,0x6f,0x6d])](_0x3cbd6f(_0xbd962b),_0x44d0bb=>_0x44d0bb[_0x3e2716([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44a348=new window[(_0x3e2716([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e2716([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f8cf5+_0x3e2716([0x2e])+_0x6ac3b2),_0x30b89e=window[_0x3e2716([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e2716([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30b89e)return;const _0x173ddf=await _0x30b89e[_0x3e2716([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e2716([0x6a,0x77,0x6b]),_0xf3ef34,{[_0x3e2716([0x6e,0x61,0x6d,0x65])]:_0x3e2716([0x45,0x43,0x44,0x53,0x41]),[_0x3e2716([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e2716([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e2716([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30b89e[_0x3e2716([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e2716([0x6e,0x61,0x6d,0x65])]:_0x3e2716([0x45,0x43,0x44,0x53,0x41]),[_0x3e2716([0x68,0x61,0x73,0x68])]:{[_0x3e2716([0x6e,0x61,0x6d,0x65])]:_0x3e2716([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x173ddf,_0x25099f,_0x44a348)||(_0x269372=!0x1);}}function _0x440f69(_0x194944){return _0x194944[_0x3e2716([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e2716([0x65,0x79]))?JSON[_0x3e2716([0x70,0x61,0x72,0x73,0x65])](_0x3cbd6f(_0x194944)):null;}function _0x3cbd6f(_0x4c1ff6){return window[_0x3e2716([0x61,0x74,0x6f,0x62])](_0x4c1ff6[_0x3e2716([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e2716([0x2b]))[_0x3e2716([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e2716([0x2f])));}function _0x1ee967(_0x189d00){let _0x46a32c=0x1505;function _0x4ade56(_0x364b03){for(let _0xf643a9=0x0;_0xf643a9<_0x364b03[_0x3e2716([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf643a9++){const _0x5cc037=_0x364b03[_0x3e2716([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf643a9);_0x46a32c=(_0x46a32c<<0x5)+_0x46a32c+_0x5cc037,_0x46a32c&=_0x46a32c;}}function _0xb7ea05(_0x310080){Array[_0x3e2716([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x310080)?_0x310080[_0x3e2716([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xb7ea05):_0x310080&&typeof _0x310080==_0x3e2716([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e2716([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x310080)[_0x3e2716([0x73,0x6f,0x72,0x74])]()[_0x3e2716([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x391b0f,_0x3c3934])=>{_0x4ade56(_0x391b0f),_0xb7ea05(_0x3c3934);}):_0x4ade56(window[_0x3e2716([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x310080));}return _0xb7ea05(_0x189d00),_0x46a32c>>>0x0;}function _0x33961c(_0x22a663){return _0x22a663[_0x3e2716([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e2716([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e2716([0x30]));}function _0x39929c(_0x322db7){return _0x322db7[_0x3e2716([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e2716([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e2716([0x6a,0x6f,0x69,0x6e])]('');}function _0x5079ec(_0xbc3bd0){return _0x514c08[_0x3e2716([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e2716([0x68,0x61,0x73])](_0xbc3bd0);}function _0x512d13(_0x5ba14d){return _0x514c08[_0x3e2716([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e2716([0x67,0x65,0x74])](_0x5ba14d);}function _0x36c137(){}function _0x3e2716(_0x308e9b){return _0x308e9b['map'](_0x21913c=>String['fromCharCode'](_0x21913c))['join']('');}_0x327c1a(await _0x2987c1());}(this);}set['adapter'](_0x56e723){if(this['_adapter'])throw new _0x1bad0a('track-changes-adapter-already-set',this);this['_adapter']=_0x56e723;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x125ce0=!0x1,toJSON:_0x36d553=!0x1}={}){const _0x3ad1df=[];for(const _0x161a49 of this['_suggestions']['values']())_0x125ce0&&!_0x161a49['isInContent']||_0x3ad1df['push'](_0x161a49);return _0x36d553?_0x3ad1df['map'](_0x4d44d1=>_0x4d44d1['toJSON']()):_0x3ad1df;}['getSuggestion'](_0xb081ea){const _0x3b37c1=this['_suggestions']['get'](_0xb081ea);if(!_0x3b37c1)throw new _0x1bad0a('track-changes-suggestion-not-found',this);return _0x3b37c1;}['hasSuggestion'](_0x2b3940){return this['_suggestions']['has'](_0x2b3940);}['addSuggestionData'](_0x506cf6){const {authorId:_0x16e479,id:_0x1ef4d5,attributes:_0x2af382}=_0x506cf6,[_0x5cd3a1,_0x31460d]=_0x506cf6['type']['split'](':'),_0x599e6c=this['_suggestions']['get'](_0x1ef4d5)||this['_createSuggestion'](_0x5cd3a1,_0x31460d,_0x1ef4d5,_0x16e479,_0x2af382);if(this['_addThreadToSuggestion'](_0x599e6c),this['_checkSuggestionCorrectness'](_0x599e6c,_0x5cd3a1,_0x31460d||null,_0x16e479),_0x599e6c['createdAt']=_0x506cf6['createdAt'],_0x599e6c['_isDataLoaded']=!0x0,_0x2af382&&_0x2af382['@external']){const _0x1785eb=_0x2af382['@external'],_0x4cfe84=this['_getExternalAuthor'](_0x1785eb['authorName']);_0x599e6c['authoredAt']=_0x1785eb['createdAt'],_0x599e6c['author']=_0x4cfe84,_0x599e6c['isExternal']=!0x0;}else _0x599e6c['authoredAt']=_0x506cf6['createdAt'];switch(_0x506cf6['data']&&(_0x599e6c['data']=_0x506cf6['data']),_0x506cf6['attributes']&&(_0x599e6c['attributes']=_0x506cf6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x599e6c['_saved']=!0x0),this['_suggestionState']['get'](_0x599e6c)){case'notReady':this['_suggestionState']['set'](_0x599e6c,'dataReady');break;case'markerReady':_0x599e6c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x599e6c])),this['_refreshSuggestionsChain'](new Set([_0x599e6c])),this['_suggestionState']['set'](_0x599e6c,'ready'),this['fire']('suggestionLoaded',_0x599e6c)):this['_suggestionState']['set'](_0x599e6c,'removed');}return _0x599e6c;}['acceptSuggestion'](_0x4cf9df){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x11c832 of _0x4cf9df['getAllAdjacentSuggestions']())_0x11c832['accept']();});});}['discardSuggestion'](_0x5a3945){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x262009 of _0x5a3945['getAllAdjacentSuggestions']())_0x262009['discard']();});});}['enableCommand'](_0x5c47e5,_0x5ab2d7){const _0x3160fb=this['editor']['commands']['get'](_0x5c47e5);if(!_0x3160fb)throw new _0x1bad0a('track-changes-command-not-found',this,{'commandName':_0x5c47e5});if(this['_enabledCommands']['has'](_0x3160fb))throw new _0x1bad0a('track-changes-enable-command-twice',this,{'commandName':_0x5c47e5});this['_enabledCommands']['add'](_0x3160fb),_0x5ab2d7&&_0x3160fb['on']('execute',(_0x34f04c,_0x127889)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x127889['length']>0x0&&_0x127889[_0x127889['length']-0x1]&&_0x127889[_0x127889['length']-0x1]['forceDefaultExecution']?_0x127889['pop']():(_0x34f04c['return']=_0x5ab2d7((..._0x53e50b)=>_0x3160fb['execute'](..._0x53e50b,{'forceDefaultExecution':!0x0}),..._0x127889),_0x34f04c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x27114a){let _0xaa54cd,_0x3378ff;const _0x5450e8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xaa54cd=_0x27114a();}catch(_0x511684){_0x3378ff=_0x511684;}return _0x5450e8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3378ff&&_0x1bad0a['rethrowUnexpectedError'](_0x3378ff,this),_0xaa54cd;}['markInsertion'](_0x4c572b,_0xda9cdb=null,_0x2893f7={}){if(_0x4c572b['isCollapsed'])return null;const _0x209f74=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1af946,meta:_0x432367}of this['_findSuggestions'](_0x4c572b,'insertion'))if(_0x432367['isOwn']){if(!_0x432367['isNextTo']){if(_0x432367['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x1af946,_0x2893f7))continue;return _0x1af946;}if(zt(_0x1af946,_0x2893f7))return _0x1af946;this['_breakSuggestionMarker'](_0x1af946,_0x4c572b['start'],_0x4c572b['end']);break;}if(_0xda9cdb==_0x1af946['subType']&&zt(_0x1af946,_0x2893f7)){const _0xa0ba9b=_0x1af946['getFirstRange']();return _0xa0ba9b['start']['isEqual'](_0x4c572b['end'])?this['_setSuggestionRange'](_0x1af946,this['_model']['createRange'](_0x4c572b['start'],_0xa0ba9b['end'])):this['_setSuggestionRange'](_0x1af946,this['_model']['createRange'](_0xa0ba9b['start'],_0x4c572b['end'])),_0x1af946;}}const _0x4517c8=_0x2b70c4(),_0x5bf890=_0x209f74['id'],_0x3b2126=_0xda9cdb?'insertion:'+_0xda9cdb:'insertion',_0xe651b6=this['_setSuggestionData']({'id':_0x4517c8,'type':_0x3b2126,'createdAt':new Date(),'authorId':_0x5bf890,'attributes':_0x2893f7});return this['_addSuggestionMarker'](_0x3b2126,_0x4517c8,_0x5bf890,_0x4c572b),_0xe651b6;}['markMultiRangeInsertion'](_0x4b4e11,_0x960ffb='multi',_0x12cbdd={}){const _0xd8ed90=this['editor']['plugins']['get']('Users')['me'],_0x578d25=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x960ffb,'join');for(const _0x58a9e9 of this['getSuggestions']())if(_0x58a9e9['author']['id']==_0xd8ed90['id']&&'insertion'==_0x58a9e9['type']&&_0x58a9e9['subType']==_0x960ffb&&zt(_0x58a9e9,_0x12cbdd)&&(_0x578d25(_0x58a9e9['getRanges'](),_0x4b4e11)||_0x578d25(_0x4b4e11,_0x58a9e9['getRanges']()))){for(const _0x43f160 of _0x4b4e11)_0x58a9e9['addRange'](_0x43f160);return _0x58a9e9;}for(const {suggestion:_0x214b78,meta:_0x2cdf89}of this['_findSuggestions'](_0x4b4e11,'insertion')){if(!_0x2cdf89['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2cdf89['containsRangeInObject'])continue;if(!zt(_0x214b78,_0x12cbdd))continue;let _0x2bd94f=!0x0;for(const _0x158bd5 of _0x214b78['getRanges']())for(const _0x582445 of _0x4b4e11)if(!_0x158bd5['containsRange'](_0x582445)){_0x2bd94f=!0x1;break;}if(_0x2bd94f)return _0x214b78;}const _0x45fa95=_0x2b70c4(),_0x2d6175=_0xd8ed90['id'],_0x4bf4f8='insertion:'+_0x960ffb,_0x3aca32=this['_setSuggestionData']({'id':_0x45fa95,'type':_0x4bf4f8,'createdAt':new Date(),'authorId':_0x2d6175,'attributes':_0x12cbdd});for(const _0x45979b of _0x4b4e11)this['_addSuggestionMarker'](_0x4bf4f8,_0x45fa95,_0x2d6175,_0x45979b,u['getMultiRangeId']());return _0x3aca32;}['markInlineFormat'](_0x50c088,_0x49fa04,_0xe23be3=null,_0x548f1b={}){if(_0xe23be3=_0xe23be3||Gt(_0x49fa04),_0x50c088['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x13025d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe23be3,'accept');return this['forceDefaultExecution'](()=>_0x13025d([_0x50c088],_0x49fa04,_0x548f1b)),null;}const _0x1625e9=this['editor']['plugins']['get']('Users')['me'],_0x3e2cb1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3493e7,meta:_0x1a8672}of this['_findSuggestions'](_0x50c088,'insertion'))_0x1a8672['isOwn']&&!_0x1a8672['isInsideObject']&&_0x3e2cb1['push'](..._0x3493e7['getRanges']());}const _0x4e333f=function(_0x1d03ed,_0xc5ecc6){const _0x472da3=[];for(const _0x47e2bb of _0xc5ecc6){const _0x2a409c=_0x1d03ed['getIntersection'](_0x47e2bb);_0x2a409c&&_0x472da3['push'](_0x2a409c);}return _0x472da3;}(_0x50c088,_0x3e2cb1),_0x5e5885=function(_0x2ec74e,_0x8120fd){const _0x4df2d9=[_0x2ec74e];for(const _0x54bd16 of _0x8120fd){let _0x168b13=0x0;for(;_0x168b13<_0x4df2d9['length'];){const _0x6fa1db=_0x4df2d9[_0x168b13]['getDifference'](_0x54bd16);_0x4df2d9['splice'](_0x168b13,0x1,..._0x6fa1db),_0x168b13+=_0x6fa1db['length'];}}return _0x4df2d9;}(_0x50c088,_0x3e2cb1);_0x4e333f['length']&&this['_model']['change'](()=>{for(const _0x4d0358 of _0x4e333f){const _0xa2a938=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe23be3,'accept');this['forceDefaultExecution'](()=>_0xa2a938([_0x4d0358],_0x49fa04,_0x548f1b));}});for(const _0x3ada3c of _0x5e5885){let _0x30cb5f=null,_0x550cce=_0x3ada3c['start'],_0x4586ac=_0x3ada3c['end'];for(const {suggestion:_0x17dcd7,meta:_0x4a2132}of this['_findSuggestions'](_0x3ada3c,'formatInline')){if(!_0x4a2132['isOwn'])continue;if(_0x17dcd7['subType']!=_0xe23be3)continue;if(!zt(_0x17dcd7,_0x548f1b))continue;const _0x5d119c=_0x17dcd7['getFirstRange']();if(_0x5d119c['containsRange'](_0x3ada3c,!0x0))return null;_0x550cce=_0x550cce['isBefore'](_0x5d119c['start'])?_0x550cce:_0x5d119c['start'],_0x4586ac=_0x4586ac['isAfter'](_0x5d119c['end'])?_0x4586ac:_0x5d119c['end'],_0x30cb5f?_0x5d119c['start']['isBefore'](_0x30cb5f['getFirstRange']()['start'])?(_0x30cb5f['removeMarkers'](),_0x30cb5f=_0x17dcd7):_0x17dcd7['removeMarkers']():_0x30cb5f=_0x17dcd7;}const _0x216857=this['_model']['createRange'](_0x550cce,_0x4586ac);if(_0x30cb5f)this['_setSuggestionRange'](_0x30cb5f,_0x216857);else{const _0x1fb997=_0x2b70c4(),_0x475fad=_0x1625e9['id'];this['_setSuggestionData']({'id':_0x1fb997,'type':'formatInline:'+_0xe23be3,'data':_0x49fa04,'createdAt':new Date(),'authorId':_0x475fad,'attributes':_0x548f1b}),this['_addSuggestionMarker']('formatInline:'+_0xe23be3,_0x1fb997,_0x475fad,_0x216857);}}return null;}['markBlockFormat'](_0x127c2b,_0x4a7a5c,_0x4add98=[],_0x35044d=null,_0x38bfe8={}){_0x4a7a5c['formatGroupId']||(_0x4a7a5c['formatGroupId']=_0x4a7a5c['commandName']),_0x4a7a5c['multipleBlocks']=_0x127c2b['is']('range'),_0x35044d=_0x35044d||Gt(_0x4a7a5c);const _0x465765=_0x4add98['map'](_0x1a45f5=>Jt(_0x1a45f5,this['_model'])),_0x53d094=_0x127c2b['is']('range')?_0x127c2b:Jt(_0x127c2b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2c36e8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35044d,'accept');return this['forceDefaultExecution'](()=>_0x2c36e8([_0x53d094],_0x4a7a5c,_0x38bfe8)),null;}_0x465765['push'](_0x53d094);let _0x4e3bbc=!0x0;for(const _0x8815a4 of _0x465765)if(!this['_rangeIsInLocalUserInsertion'](_0x8815a4)){_0x4e3bbc=!0x1;break;}if(_0x4e3bbc&&'always'!==this['_trackFormatChanges']){const _0x43744e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35044d,'accept');return this['forceDefaultExecution'](()=>_0x43744e([_0x53d094],_0x4a7a5c,_0x38bfe8)),null;}let _0x4a733f=null,_0x50a293=_0x53d094['start'],_0x2b50f5=_0x53d094['end'];for(const {suggestion:_0x52f6fe,meta:_0x98843e}of this['_findSuggestions'](_0x53d094,'formatBlock')){if(!_0x98843e['isOwn'])continue;if(_0x98843e['isNextTo']||_0x98843e['containsRangeInObject']||_0x98843e['isInsideObject'])continue;if(_0x52f6fe['data']['formatGroupId']!=_0x4a7a5c['formatGroupId'])continue;if(!zt(_0x52f6fe,_0x38bfe8))continue;const _0x4caedc=_0x52f6fe['getFirstRange']();if(_0x52f6fe['subType']==_0x35044d){if(_0x4caedc['containsRange'](_0x53d094,!0x0))return null;_0x50a293=_0x50a293['isBefore'](_0x4caedc['start'])?_0x50a293:_0x4caedc['start'],_0x2b50f5=_0x2b50f5['isAfter'](_0x4caedc['end'])?_0x2b50f5:_0x4caedc['end'],_0x4a733f?_0x4caedc['start']['isBefore'](_0x4a733f['getFirstRange']()['start'])?(_0x4a733f['removeMarkers'](),_0x4a733f=_0x52f6fe):_0x52f6fe['removeMarkers']():_0x4a733f=_0x52f6fe;}else{const _0x2cdd8f=_0x53d094['getIntersection'](_0x4caedc);this['_cutOutSuggestionMarker'](_0x52f6fe,_0x2cdd8f);}}const _0x5ce249=this['editor']['plugins']['get']('Users')['me'],_0x22a758=_0x2b70c4(),_0x2ceeea=_0x5ce249['id'];if(_0x4a733f)return this['_setSuggestionRange'](_0x4a733f,this['_model']['createRange'](_0x50a293,_0x2b50f5)),_0x4a733f;{const _0x7a1a17=this['_setSuggestionData']({'id':_0x22a758,'type':'formatBlock:'+_0x35044d,'data':_0x4a7a5c,'createdAt':new Date(),'authorId':_0x2ceeea,'attributes':_0x38bfe8});return this['_addSuggestionMarker']('formatBlock:'+_0x35044d,_0x22a758,_0x2ceeea,this['_model']['createRange'](_0x50a293,_0x2b50f5)),_0x7a1a17;}}['markMultiRangeBlockFormat'](_0x5999fd,_0x2139e3,_0x3f59b9=[],_0x461d96=null,_0x40a6b3={}){_0x2139e3['formatGroupId']||(_0x2139e3['formatGroupId']=_0x2139e3['commandName']);const _0x675e71=_0x5999fd[0x0];_0x2139e3['multipleBlocks']=_0x675e71['is']('range'),_0x461d96=_0x461d96||Gt(_0x2139e3);const _0x2a1d2d=_0x3f59b9['map'](_0x34a9c7=>Jt(_0x34a9c7,this['_model'])),_0x10dd36=_0x675e71['is']('range')?_0x5999fd:_0x5999fd['map'](_0x440017=>Jt(_0x440017,this['_model']));if('never'===this['_trackFormatChanges']){const _0x315287=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x461d96,'accept');return this['forceDefaultExecution'](()=>_0x315287(_0x10dd36,_0x2139e3,_0x40a6b3)),null;}_0x2a1d2d['push'](..._0x10dd36);let _0x3619e0=!0x0;for(const _0x39c420 of _0x2a1d2d)if(!this['_rangeIsInLocalUserInsertion'](_0x39c420)){_0x3619e0=!0x1;break;}if(_0x3619e0&&'always'!==this['_trackFormatChanges']){const _0x5c611e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x461d96,'accept');return this['forceDefaultExecution'](()=>_0x5c611e(_0x10dd36,_0x2139e3,_0x40a6b3)),null;}const _0x26afd4=this['editor']['plugins']['get']('Users')['me'];for(const _0x168e38 of this['getSuggestions']()){if(_0x168e38['author']['id']!=_0x26afd4['id'])continue;if('formatBlock'!=_0x168e38['type']||_0x168e38['data']['formatGroupId']!=_0x2139e3['formatGroupId'])continue;if(!zt(_0x168e38,_0x40a6b3))continue;const _0x383518=_0x168e38['subType']==_0x461d96;for(let _0x45bd4a=0x0;_0x45bd4a<_0x10dd36['length'];_0x45bd4a++){const _0x5caa12=_0x10dd36[_0x45bd4a];for(const _0x447ddb of _0x168e38['getMarkers']()){const _0x3381c8=_0x447ddb['getRange']();if(_0x5caa12['isEqual'](_0x3381c8)){_0x383518?(_0x10dd36['splice'](_0x45bd4a,0x1),_0x45bd4a--):_0x168e38['removeMarker'](_0x447ddb['name']);break;}}}}if(0x0==_0x10dd36['length'])return null;const _0xd66b0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x461d96,'join');for(const _0xe87570 of this['getSuggestions']())if(_0xe87570['author']['id']==_0x26afd4['id']&&'formatBlock'==_0xe87570['type']&&_0xe87570['data']['formatGroupId']==_0x2139e3['formatGroupId']&&_0xe87570['subType']==_0x461d96&&zt(_0xe87570,_0x40a6b3)&&(_0xd66b0a(_0xe87570['getRanges'](),_0x10dd36)||_0xd66b0a(_0x10dd36,_0xe87570['getRanges']()))){for(const _0x38d8dc of _0x10dd36)_0xe87570['addRange'](_0x38d8dc);return _0xe87570;}const _0x34c938=_0x2b70c4(),_0xd87dd7=_0x26afd4['id'],_0x321a9c='formatBlock:'+_0x461d96,_0x155dfd=this['_setSuggestionData']({'id':_0x34c938,'type':_0x321a9c,'data':_0x2139e3,'createdAt':new Date(),'authorId':_0xd87dd7,'attributes':_0x40a6b3});for(const _0x1e77c0 of _0x10dd36)this['_addSuggestionMarker'](_0x321a9c,_0x34c938,_0xd87dd7,_0x1e77c0,u['getMultiRangeId']());return _0x155dfd;}['markDeletion'](_0x527d4f,_0x5057dd=null,_0x36948a={}){if(_0x527d4f['isCollapsed'])return null;const _0x78982f=this['editor']['plugins']['get']('Users')['me'],_0x2b48c8=new _0x2bc62b(_0x527d4f['start'],_0x527d4f['end']);for(const {suggestion:_0x51146a,meta:_0x4a1342}of this['_findSuggestions'](_0x2b48c8,'insertion'))if(_0x4a1342['isOwn']&&!_0x4a1342['isNextTo']){if(_0x51146a['isMultiRange']){const _0x1a93f5=_0x51146a['getRanges']()['filter'](_0x436d81=>'$graveyard'!=_0x436d81['root']['rootName']);_0x1a93f5['every'](_0x1c0f31=>_0x2b48c8['containsRange'](_0x1c0f31,!0x0))&&_0x51146a['discard']();if(_0x1a93f5['some'](_0x17afd9=>_0x17afd9['containsRange'](_0x2b48c8,!0x0))){const _0x23d314=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5057dd,'accept');return this['forceDefaultExecution'](()=>_0x23d314([_0x2b48c8],null,_0x36948a)),null;}}else{const _0x5a093b=_0x2b48c8['getIntersection'](_0x51146a['getFirstRange']());null!==_0x5a093b&&_0x51146a['_onDiscard']([_0x5a093b],null,_0x36948a);}}if(_0x2b48c8['detach'](),_0x2b48c8['isCollapsed']||'$graveyard'==_0x2b48c8['root']['rootName'])return null;let _0x436e6f=null,_0x7700b7=_0x2b48c8['start'],_0x41b94b=_0x2b48c8['end'];const _0x48364f=this['_findSuggestions'](_0x2b48c8,'deletion');for(const {suggestion:_0x1e94fa,meta:_0x3f51bb}of _0x48364f){const _0x2b7122=this['_model']['createRange'](_0x7700b7,_0x41b94b);if(_0x3f51bb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f51bb['containsRangeInObject']&&!_0x3f51bb['isInsideObject'])){if(_0x1e94fa['isMultiRange']){if(!zt(_0x1e94fa,_0x36948a))continue;let _0x3b8489=!0x0;for(const _0xbc25ea of _0x1e94fa['getRanges']()){if(_0xbc25ea['containsRange'](_0x2b7122,!0x0))return _0x1e94fa;_0x2b7122['containsRange'](_0xbc25ea)||(_0x3b8489=!0x1);}_0x3b8489&&_0x1e94fa['discard']();}else{const _0x4c61d6=_0x1e94fa['getFirstRange']();if(_0x4c61d6['containsRange'](_0x2b7122,!0x0))return _0x1e94fa;if(!zt(_0x1e94fa,_0x36948a)){_0x2b7122['containsRange'](_0x4c61d6)?_0x1e94fa['removeMarkers']():_0x4c61d6['containsPosition'](_0x7700b7)?_0x7700b7=_0x4c61d6['end']:_0x4c61d6['containsPosition'](_0x41b94b)&&(_0x41b94b=_0x4c61d6['start']);continue;}_0x7700b7=_0x7700b7['isBefore'](_0x4c61d6['start'])?_0x7700b7:_0x4c61d6['start'],_0x41b94b=_0x41b94b['isAfter'](_0x4c61d6['end'])?_0x41b94b:_0x4c61d6['end'],_0x36948a=Object['assign']({},_0x1e94fa['attributes']),_0x436e6f?_0x4c61d6['start']['isBefore'](_0x436e6f['getFirstRange']()['start'])?(_0x436e6f['removeMarkers'](),_0x436e6f=_0x1e94fa):_0x1e94fa['removeMarkers']():_0x436e6f=_0x1e94fa;}}}if(_0x436e6f)return this['_setSuggestionRange'](_0x436e6f,this['_model']['createRange'](_0x7700b7,_0x41b94b)),_0x436e6f;{const _0x1d3f79=_0x2b70c4(),_0x3b08d8=this['_model']['createRange'](_0x7700b7,_0x41b94b),_0x75047b=_0x78982f['id'],_0x1dc79b=_0x5057dd?'deletion:'+_0x5057dd:'deletion',_0x334c01=this['_setSuggestionData']({'id':_0x1d3f79,'type':_0x1dc79b,'createdAt':new Date(),'authorId':_0x75047b,'attributes':_0x36948a});return this['_addSuggestionMarker'](_0x1dc79b,_0x1d3f79,_0x75047b,_0x3b08d8),_0x334c01;}}['markMultiRangeDeletion'](_0x106268,_0x788196='multi',_0x37a958={}){const _0x5b0dca=this['editor']['plugins']['get']('Users')['me'],_0x1ea937=_0x106268['map'](_0x55ae9d=>new _0x2bc62b(_0x55ae9d['start'],_0x55ae9d['end'])),_0x20718a=new Set();for(const {suggestion:_0x1e9492,meta:_0x4c360f}of this['_findSuggestions'](_0x1ea937,'insertion'))_0x4c360f['isOwn']&&!_0x4c360f['isNextTo']&&_0x20718a['add'](_0x1e9492);for(const _0x48cc0e of _0x20718a)if(_0x48cc0e['isMultiRange']){const _0x1521fd=_0x48cc0e['getRanges']();(!_0x48cc0e['attributes']||!_0x48cc0e['attributes']['skipNestingCheck'])&&(_0x1521fd['every'](_0x4b1511=>_0x1ea937['some'](_0x360c0a=>_0x360c0a['containsRange'](_0x4b1511,!0x0)))&&_0x48cc0e['discard']());if(_0x1ea937['every'](_0x5bce1f=>_0x1521fd['some'](_0xbd7934=>_0xbd7934['containsRange'](_0x5bce1f,!0x0)))){const _0x5c4bde=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x788196,'accept');return this['forceDefaultExecution'](()=>_0x5c4bde(_0x106268,null,_0x37a958)),null;}}else{const _0xf87a36=_0x48cc0e['getFirstRange']();_0x1ea937['some'](_0x153936=>_0x153936['containsRange'](_0xf87a36,!0x0))&&_0x48cc0e['discard']();if(_0x1ea937['every'](_0x3d3521=>_0xf87a36['containsRange'](_0x3d3521,!0x0))){const _0x37932f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x788196,'accept');return this['forceDefaultExecution'](()=>_0x37932f(_0x1ea937,null,_0x37a958)),null;}}const _0x32ca50=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x788196,'join');let _0x502a72=null;for(const _0x5aa109 of this['getSuggestions']())if(_0x5aa109['author']['id']==_0x5b0dca['id']&&_0x5aa109['isInContent']&&'deletion'==_0x5aa109['type']&&_0x5aa109['subType']==_0x788196&&zt(_0x5aa109,_0x37a958)&&(_0x32ca50(_0x5aa109['getRanges'](),_0x1ea937)||_0x32ca50(_0x1ea937,_0x5aa109['getRanges']()))){if(_0x502a72){if(_0x5aa109['commentThread']&&_0x5aa109['commentThread']['length'])continue;for(const _0x1b2c5e of _0x5aa109['getRanges']())_0x502a72['isIntersectingWithRange'](_0x1b2c5e)||_0x502a72['addRange'](_0x1b2c5e);_0x5aa109['removeMarkers']();}else{_0x502a72=_0x5aa109;for(const _0x5bd80b of _0x1ea937)_0x5aa109['isIntersectingWithRange'](_0x5bd80b)||_0x5aa109['addRange'](_0x5bd80b);}}if(_0x502a72)return _0x502a72;_0x20718a['clear']();for(const {suggestion:_0x44a91d,meta:_0x4dab05}of this['_findSuggestions'](_0x1ea937,'deletion'))_0x4dab05['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4dab05['containsRangeInObject']&&!_0x4dab05['isInsideObject'])&&zt(_0x44a91d,_0x37a958)&&_0x20718a['add'](_0x44a91d);for(const _0x5b4b49 of _0x20718a){const _0x5eabb4=_0x5b4b49['getRanges']();if(!_0x37a958||!_0x37a958['skipNestingCheck']){if(_0x1ea937['every'](_0x7818b2=>_0x5eabb4['some'](_0x30c035=>_0x30c035['containsRange'](_0x7818b2,!0x0))))return _0x5b4b49;}(!_0x5b4b49['attributes']||!_0x5b4b49['attributes']['skipNestingCheck'])&&(_0x5eabb4['every'](_0x44ec9c=>_0x1ea937['some'](_0x57dc0c=>_0x57dc0c['containsRange'](_0x44ec9c,!0x0)))&&_0x5b4b49['discard']());}const _0x4d7f29=_0x2b70c4(),_0x3e5b53=_0x5b0dca['id'],_0x1fd99e='deletion:'+_0x788196,_0x1e339a=this['_setSuggestionData']({'id':_0x4d7f29,'type':_0x1fd99e,'createdAt':new Date(),'authorId':_0x3e5b53,'attributes':_0x37a958});for(const _0x5ae00e of _0x1ea937)_0x5ae00e['detach'](),_0x5ae00e['isCollapsed']||'$graveyard'==_0x5ae00e['root']['rootName']||this['_addSuggestionMarker'](_0x1fd99e,_0x4d7f29,_0x3e5b53,_0x5ae00e,u['getMultiRangeId']());return _0x1e339a;}['markAttributeChange'](_0x73b39a,_0x383503,_0x23335f,_0x577ab6,_0x24c5d5){if(_0x73b39a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3aa2cd=this['editor']['plugins']['get']('Users')['me']['id'],_0x545968=Array['from'](this['_suggestions']['values']())['filter'](_0x1e0927=>'attribute'==_0x1e0927['type']&&_0x1e0927['data']['key']==_0x383503&&_0x1e0927['isIntersectingWithRange'](_0x73b39a));if('default'===this['_trackFormatChanges']){const _0x20c0c0=this['_findSuggestions'](_0x73b39a,'insertion')['filter'](({meta:_0x1eb6fe})=>_0x1eb6fe['isOwn']&&!_0x1eb6fe['isInsideObject']&&!_0x1eb6fe['isNextTo'])['map'](({suggestion:_0x5c49f8})=>_0x5c49f8);_0x545968['unshift'](..._0x20c0c0);}const _0x1c93ec=new Map([[_0x73b39a,_0x23335f]]);for(const _0x459420 of _0x545968){const _0x5c3879='attribute'==_0x459420['type']?_0x459420['data']['oldValue']:void 0x0,_0x31fb59=_0x459420['getFirstRange'](),_0x135383=Array['from'](_0x1c93ec['keys']())['find'](_0x5de7fe=>_0x5de7fe['isIntersecting'](_0x31fb59));if(!_0x135383)continue;const _0x5a6775=_0x135383['getDifference'](_0x31fb59);this['_isBlockAttribute'](_0x383503)&&'insertion'==_0x459420['type']&&0x0!=_0x5a6775['length']||(_0x1c93ec['delete'](_0x135383),_0x5a6775['forEach'](_0x3cf27c=>{_0x1c93ec['set'](_0x3cf27c,_0x23335f);}),'insertion'!=_0x459420['type']&&_0x5c3879!=_0x577ab6&&_0x1c93ec['set'](_0x135383['getIntersection'](_0x31fb59),_0x5c3879));}const _0x2c800c=[];for(const [_0x1e3c13,_0x15e2ac]of _0x1c93ec){const _0x3c44d3=_0x2b70c4(),_0x3d4cfc={'key':_0x383503,'oldValue':_0x15e2ac,'newValue':_0x577ab6};_0x383503['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':_0x383503});const _0x140deb=('attribute:'+(_0x383503+'|'+Gt({'newValue':_0x577ab6})))['substring'](0x0,0x3c),_0x5be955=this['_setSuggestionData']({'id':_0x3c44d3,'type':_0x140deb,'data':_0x3d4cfc,'createdAt':new Date(),'authorId':_0x3aa2cd,'attributes':_0x24c5d5});_0x2c800c['push'](_0x5be955),this['_addSuggestionMarker'](_0x140deb,_0x3c44d3,_0x3aa2cd,_0x1e3c13);}return _0x2c800c;}['enableDefaultAttributesIntegration'](_0x307fde){this['enableCommand'](_0x307fde,(_0x3bd736,..._0xd12bc7)=>{this['_recordAttributeChanges'](()=>{_0x3bd736(..._0xd12bc7);});});}['registerBlockAttribute'](_0x4ca717){this['_blockAttributeKeys']['add'](_0x4ca717);}['registerInlineAttribute'](_0x569983){this['_inlineAttributeKeys']['add'](_0x569983);}['_getAttributeKey'](_0x318234){return'attribute'==_0x318234['type']?_0x318234['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x156bf7,_0x45d3d4){const _0x555e1f=_0x156bf7['getFirstMarker']();this['_model']['change'](_0x219255=>{_0x219255['updateMarker'](_0x555e1f,{'range':_0x45d3d4});});}['_addThreadToSuggestion'](_0x47f6ae){const _0x338f40=_0x47f6ae['id'],_0x1f4a99=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x338f40)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1f4a99,'threadId':_0x338f40,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e5830=this['_commentsRepository']['getCommentThread'](_0x338f40);_0x4e5830['unbind']('isRemovable'),_0x4e5830['isRemovable']=!0x1,_0x47f6ae['commentThread']=_0x4e5830;}['_checkSuggestionCorrectness'](_0x304430,_0xc76e35,_0x38544f,_0xd8ea86){if(_0x304430['type']!=_0xc76e35||_0x304430['subType']!=_0x38544f||_0x304430['creator']['id']!=_0xd8ea86)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1bad0a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4bf3be,_0x1105af){const _0x5ce5c7=_0x4bf3be['getFirstRange']();if(_0x1105af['isEqual'](_0x5ce5c7))_0x4bf3be['removeMarkers']();else{if(_0x5ce5c7['containsRange'](_0x1105af)){const _0x126f1a=this['_model']['createPositionAt'](_0x1105af['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4bf3be,this['_model']['createRange'](_0x5ce5c7['start'],_0x126f1a));const _0x315e8=_0x2b70c4(),_0x8ca366=_0x4bf3be['creator']['id'],_0x11aa26=_0x4bf3be['type']+':'+_0x4bf3be['subType'];this['_setSuggestionData']({'id':_0x315e8,'type':_0x11aa26,'createdAt':new Date(),'authorId':_0x8ca366,'data':_0x4bf3be['data'],'attributes':_0x4bf3be['attributes']});const _0x4f2837=this['_model']['createPositionAt'](_0x1105af['end']['parent'],'after'),_0x7616b8=this['_model']['createRange'](_0x4f2837,_0x5ce5c7['end']);this['_addSuggestionMarker'](_0x11aa26,_0x315e8,_0x8ca366,_0x7616b8);}else{if(_0x5ce5c7['containsPosition'](_0x1105af['start'])){const _0x194be1=this['_model']['createPositionAt'](_0x1105af['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4bf3be,this['_model']['createRange'](_0x5ce5c7['start'],_0x194be1));}else{const _0xe98f3d=this['_model']['createPositionAt'](_0x1105af['end']['parent'],'after');this['_setSuggestionRange'](_0x4bf3be,this['_model']['createRange'](_0xe98f3d,_0x5ce5c7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x992e16){for(const {suggestion:_0x3641e1,meta:_0x29a250}of this['_findSuggestions'](_0x992e16,'insertion')){if(!_0x29a250['isOwn'])continue;const _0x1a0d74=_0x3641e1['getRanges']();for(const _0xd576f of _0x1a0d74)if(!_0x992e16['getDifference'](_0xd576f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3585c9){const _0x2d3b83=this['editor']['plugins']['get']('Users')['getUser'](_0x3585c9);if(!_0x2d3b83)throw new _0x1bad0a('track-changes-user-not-found',this);return _0x2d3b83;}['_getExternalAuthor'](_0xf30543){const _0x5f5993=this['editor']['plugins']['get']('Users'),_0x230969=_0x8d5dfc('external:'+_0xf30543),_0x30eaa0=_0x5f5993['getUser'](_0x230969);return _0x30eaa0||_0x5f5993['addUser']({'id':_0x230969,'name':_0xf30543});}['_createSuggestion'](_0x4dc344,_0x16900a,_0x5c20df,_0x1eff56,_0x3528ec){const _0x215567=this['_getAuthorFromId'](_0x1eff56),_0x293b37=this['_suggestionFactory']['buildSuggestion'](_0x4dc344,_0x16900a,_0x5c20df,_0x215567,_0x3528ec,_0x1a4fab=>{this['_updateSuggestionData'](_0x5c20df,{'attributes':_0x1a4fab});const _0x5eab0b=this['getSuggestion'](_0x5c20df);this['_joinWithAdjacentSuggestions'](new Set([_0x5eab0b])),this['_refreshSuggestionsChain'](new Set([_0x5eab0b]));});return this['listenTo'](_0x293b37,'accept',()=>{this['_updateSuggestionData'](_0x5c20df,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x293b37,'discard',()=>{this['_updateSuggestionData'](_0x5c20df,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5c20df,_0x293b37),this['_suggestionState']['set'](_0x293b37,'notReady'),_0x293b37;}['_splitMarkerName'](_0x38345d){const _0x82dbc6=_0x38345d['split'](':');return{'group':_0x82dbc6[0x0],'type':_0x82dbc6[0x1],'subType':_0x82dbc6['length']>=0x5?_0x82dbc6[0x2]:null,'id':_0x82dbc6['length']<0x5?_0x82dbc6[0x2]:_0x82dbc6[0x3],'authorId':_0x82dbc6['length']<0x5?_0x82dbc6[0x3]:_0x82dbc6[0x4],'markerCount':0x6==_0x82dbc6['length']?_0x82dbc6[0x5]:null};}['_breakSuggestionMarker'](_0x428197,_0x5ec35c,_0x2ae8d7){const _0x3e454e=_0x428197['getFirstRange'](),_0xaf4f6f=_0x3e454e['start'],_0x28107f=_0x3e454e['end'];this['_setSuggestionRange'](_0x428197,this['_model']['createRange'](_0xaf4f6f,_0x5ec35c));const _0x11e5ca=_0x2b70c4(),_0xc391de=_0x428197['creator']['id'],_0x43025c=_0x428197['type']+(_0x428197['subType']?':'+_0x428197['subType']:'');this['_setSuggestionData']({'id':_0x11e5ca,'type':_0x43025c,'createdAt':new Date(),'authorId':_0xc391de,'originalSuggestionId':_0x428197['id'],'attributes':_0x428197['attributes'],'data':_0x428197['data']});const _0x4d982b=this['_getAttributeKey'](_0x428197);('formatBlock'==_0x428197['type']||_0x4d982b&&this['_isBlockAttribute'](_0x4d982b))&&(_0x2ae8d7=this['_model']['createPositionBefore'](_0x2ae8d7['parent'])),this['_addSuggestionMarker'](_0x43025c,_0x11e5ca,_0xc391de,this['_model']['createRange'](_0x2ae8d7,_0x28107f));}['_findSuggestions'](_0x28be9a,_0x5eec4a=null){const _0x29dd71=[],_0x378456=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x28be9a)||(_0x28be9a=[_0x28be9a]);for(const _0x2deb51 of this['getSuggestions']()){if(!_0x2deb51['isInContent'])continue;if(_0x5eec4a&&_0x2deb51['type']!=_0x5eec4a)continue;let _0x455161=!0x1;for(const _0x222d9b of _0x2deb51['getRanges']()){for(const _0x543518 of _0x28be9a){const _0x19ff94=_0x543518['start']['isEqual'](_0x222d9b['end'])||_0x543518['end']['isEqual'](_0x222d9b['start']);if(_0x19ff94||_0x543518['getIntersection'](_0x222d9b)){const _0x3cee10=_0x543518['containsRange'](_0x222d9b)&&Ut(this['_model']['schema'],_0x222d9b['start'],_0x543518),_0x6212db=_0x222d9b['containsRange'](_0x543518)&&Ut(this['_model']['schema'],_0x543518['start'],_0x222d9b);_0x29dd71['push']({'suggestion':_0x2deb51,'meta':{'isOwn':_0x378456==_0x2deb51['author'],'isNextTo':_0x19ff94,'isInsideObject':_0x3cee10,'containsRangeInObject':_0x6212db}}),_0x455161=!0x0;break;}}if(_0x455161)break;}}return _0x29dd71;}['_addSuggestionMarker'](_0x1a5c87,_0x336668,_0x5b446f,_0x27b1d7,_0x4d2372){this['_model']['change'](_0x802f03=>{let _0x3b9a09='suggestion:'+_0x1a5c87+':'+_0x336668+':'+_0x5b446f;_0x4d2372&&(_0x3b9a09=_0x3b9a09+':'+_0x4d2372),_0x802f03['addMarker'](_0x3b9a09,{'range':_0x27b1d7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x131bb6){const _0x474f94=_0x131bb6['previous'],_0x361a85=_0x131bb6['next'];_0x131bb6['previous']=null,_0x131bb6['next']=null,null!=_0x474f94&&_0x474f94['next']==_0x131bb6&&(_0x474f94['next']=_0x361a85),null!=_0x361a85&&_0x361a85['previous']==_0x131bb6&&(_0x361a85['previous']=_0x474f94),'ready'==this['_suggestionState']['get'](_0x131bb6)&&(this['_suggestionState']['set'](_0x131bb6,'removed'),this['fire']('suggestionUnloaded',_0x131bb6,_0x474f94,_0x361a85));}['_setSuggestionData'](_0x201daa){const _0x5a405f=_0x201daa['id'],_0x6e732a=this['addSuggestionData'](_0x201daa);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x51a8ff=this['editor']['plugins']['get']('PendingActions'),_0x27606e=_0x6e732a['hasComments'],_0x3746fc=_0x6e732a['subType']?_0x6e732a['type']+':'+_0x6e732a['subType']:_0x6e732a['type'],_0x15bc24=this['editor']['locale'],_0x2b18f5=_0x51a8ff['add'](o(_0x15bc24,'PENDING_ACTION_SUGGESTION')),_0x535b91={'id':_0x5a405f,'type':_0x3746fc,'hasComments':_0x27606e,'data':_0x201daa['data']||null,'originalSuggestionId':_0x201daa['originalSuggestionId']||null,'attributes':_0x6e732a['attributes']};this['_adapter']['addSuggestion'](_0x535b91)['then'](_0x3bbe83=>{_0x6e732a['_saved']=!0x0,_0x51a8ff['remove'](_0x2b18f5),_0x3bbe83&&_0x3bbe83['createdAt']&&(this['_suggestions']['get'](_0x5a405f)['createdAt']=_0x3bbe83['createdAt']);})['catch'](_0xdd87ec=>{throw _0x33a95e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x6e732a['discard']();}),_0x6e732a['stopListening'](),this['_suggestions']['delete'](_0x6e732a['id']),this['_suggestionState']['delete'](_0x6e732a),_0xdd87ec;});}return _0x6e732a;}['_isBlockAttribute'](_0x440f74){return this['_blockAttributeKeys']['has'](_0x440f74);}['_updateSuggestionData'](_0x41ad47,_0x59d795){const _0xa6d129=this['editor']['plugins']['get']('PendingActions'),_0x4b5fb7=this['getSuggestion'](_0x41ad47);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4b5fb7['_saved']){const _0x1b2ab0=_0xa6d129['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x41ad47,_0x59d795)['then'](()=>{_0xa6d129['remove'](_0x1b2ab0);});}else _0x4b5fb7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x41ad47,_0x59d795);});}}['_getSuggestionData'](_0x4ee049){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1bad0a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4ee049);}['_handleNewSuggestionMarker'](_0xb7b98f){const {id:_0x4a1301,type:_0x2d075b,subType:_0xf3caff,authorId:_0x4210ce}=this['_splitMarkerName'](_0xb7b98f),_0x392e66=this['_suggestions']['get'](_0x4a1301)||this['_createSuggestion'](_0x2d075b,_0xf3caff,_0x4a1301,_0x4210ce,{});switch(this['_checkSuggestionCorrectness'](_0x392e66,_0x2d075b,_0xf3caff,_0x4210ce),this['_suggestionState']['get'](_0x392e66)){case'notReady':this['_getSuggestionData'](_0x4a1301)['then'](_0x40af22=>{let _0x1c8153=Promise['resolve']();_0x40af22['hasComments']&&(_0x1c8153=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4a1301})),_0x1c8153['then'](()=>{this['addSuggestionData'](_0x40af22)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x392e66,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4a1301,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x392e66,'ready'),this['fire']('suggestionLoaded',_0x392e66);break;case'ready':this['fire']('suggestionChanged',_0x392e66);}return _0x392e66['addMarkerName'](_0xb7b98f),_0x392e66;}['_refreshSuggestionsChain'](_0x31d85c){const _0x270649=Array['from'](_0x31d85c),_0x5d6a5d=_0x270649['filter'](_0x347749=>'attribute'==_0x347749['type']);this['_refreshAttributeSuggestionsChain'](_0x5d6a5d);const _0x2417af=_0x270649['filter'](_0x405a46=>!_0x405a46['isMultiRange']&&'attribute'!=_0x405a46['type']),_0x43188=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x408560=>!_0x408560['isMultiRange']&&'attribute'!=_0x408560['type']),_0x44eb27=_0x43188['filter'](_0x4e16ad=>!_0x31d85c['has'](_0x4e16ad)),_0x81b4be=new Map(_0x43188['map'](_0x485915=>[_0x485915,this['_suggestionFactory']['getSuggestionCallback'](_0x485915['type'],_0x485915['subType'],'chain')])),_0x540d72=new Map(_0x43188['map'](_0x5857a6=>[_0x5857a6,_0x5857a6['getFirstRange']()])),_0x5f3712=new Set(),_0x521337=new Set();for(let _0x555aee=0x0;_0x555aee<_0x2417af['length'];_0x555aee++)_0x2aef52(_0x2417af[_0x555aee],_0x2417af,_0x555aee+0x1);for(let _0x55501d=0x0;_0x55501d<_0x2417af['length'];_0x55501d++)_0x2aef52(_0x2417af[_0x55501d],_0x44eb27,0x0);const _0x1a740b=new Set();for(let _0x57fa31=0x0;_0x57fa31<_0x2417af['length'];_0x57fa31++){const _0x4ccb66=_0x2417af[_0x57fa31];!_0x521337['has'](_0x4ccb66)&&_0x4ccb66['previous']&&(_0x1a740b['add'](_0x4ccb66['previous']),_0x4ccb66['previous']['next']===_0x4ccb66&&(_0x4ccb66['previous']['next']=null),_0x4ccb66['previous']=null),!_0x5f3712['has'](_0x4ccb66)&&_0x4ccb66['next']&&(_0x1a740b['add'](_0x4ccb66['next']),_0x4ccb66['next']['previous']===_0x4ccb66&&(_0x4ccb66['next']['previous']=null),_0x4ccb66['next']=null);}function _0x2aef52(_0x12202d,_0x15c7dd,_0x7c2a65){for(let _0x141f4b=_0x7c2a65;_0x141f4b<_0x15c7dd['length'];_0x141f4b++){const _0x18fa2e=_0x10db12(_0x12202d,_0x15c7dd[_0x141f4b]);_0x18fa2e&&(_0x18fa2e[0x0]['next']=_0x18fa2e[0x1],_0x18fa2e[0x1]['previous']=_0x18fa2e[0x0],_0x5f3712['add'](_0x18fa2e[0x0]),_0x521337['add'](_0x18fa2e[0x1]));}}function _0x10db12(_0x122080,_0x32261c){if(_0x122080['author']['id']!==_0x32261c['author']['id'])return null;const _0x5e114d=_0x81b4be['get'](_0x122080)(_0x122080,_0x32261c,_0x540d72['get'](_0x122080),_0x540d72['get'](_0x32261c));if(!_0x5e114d)return null;return _0x81b4be['get'](_0x32261c)(_0x122080,_0x32261c,_0x540d72['get'](_0x122080),_0x540d72['get'](_0x32261c))?_0x5e114d[0x1]['commentThread']&&_0x5e114d[0x1]['commentThread']['length']?null:_0x5e114d:null;}_0x1a740b['size']&&this['_refreshSuggestionsChain'](_0x1a740b);}['_refreshAttributeSuggestionsChain'](_0x4b90a1){if(0x0==_0x4b90a1['length'])return;const _0x5ec393=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd7ceb1=>'attribute'==_0xd7ceb1['type']&&_0xd7ceb1['_isDataLoaded']),_0x432468=[],_0x5bafaa=new Map();for(const _0x5d3996 of _0x5ec393){const _0x1dce6c=_0x8d5dfc(_0x5d3996['attributes']);_0x5bafaa['has'](_0x1dce6c)||(_0x5bafaa['set'](_0x1dce6c,_0x432468['length']),_0x432468['push']([]));const _0x3cc6c=_0x5bafaa['get'](_0x1dce6c);_0x432468[_0x3cc6c]['push'](_0x5d3996);}!(function(){_0x432468['sort']((_0x500065,_0x34f26c)=>{const _0x35003d=_0x500065[0x0]['createdAt'],_0x5700d9=_0x34f26c[0x0]['createdAt'];return _0x35003d==_0x5700d9?_0x500065[0x0]['attributes']['groupId']<_0x34f26c[0x0]['attributes']['groupId']?-0x1:0x1:_0x35003d<_0x5700d9?-0x1:0x1;});for(const _0x5c5381 of _0x432468)_0x5c5381['sort']((_0x1225c8,_0x5efb21)=>_0x1225c8['id']<_0x5efb21['id']?-0x1:0x1);}());for(let _0xbaa7b9=0x0;_0xbaa7b9<_0x432468['length'];_0xbaa7b9++){if(0x0==_0x432468[_0xbaa7b9]['length'])continue;const _0xf2f50a=[];for(let _0xd802c8=_0xbaa7b9+0x1;_0xd802c8<_0x432468['length'];_0xd802c8++)0x0!=_0x432468[_0xd802c8]['length']&&_0x3dc7a0(_0x432468[_0xbaa7b9],_0x432468[_0xd802c8])&&_0xf2f50a['push'](_0xd802c8);for(const _0x5aeac7 of _0xf2f50a)_0x432468[_0xbaa7b9]=_0x432468[_0xbaa7b9]['concat'](_0x432468[_0x5aeac7]),_0x432468[_0x5aeac7]=[];}for(const _0x1f3211 of _0x432468)for(let _0x3514be=0x0;_0x3514be<_0x1f3211['length'];_0x3514be++){const _0x1247fd=_0x1f3211[_0x3514be+0x1]||null;_0x1f3211[_0x3514be]['next']!==_0x1247fd&&(_0x1f3211[_0x3514be]['next']=_0x1247fd);}for(const _0x41b15a of _0x432468)for(let _0x31ec0b=0x0;_0x31ec0b<_0x41b15a['length'];_0x31ec0b++){const _0x227b9b=_0x41b15a[_0x31ec0b-0x1]||null;_0x41b15a[_0x31ec0b]['previous']!==_0x227b9b&&(_0x41b15a[_0x31ec0b]['previous']=_0x227b9b);}function _0x3dc7a0(_0x2425a3,_0x398c86){if(_0x2425a3[0x0]['attributes']['groupId']!==_0x398c86[0x0]['attributes']['groupId']&&_0x2425a3[0x0]['author']!==_0x398c86[0x0]['author'])return!0x1;if(!function(_0xa36c90,_0x41a288){if(!_0xa36c90['hasComments']&&!_0x41a288['hasComments'])return!0x0;if(_0xa36c90['hasComments']&&_0x41a288['hasComments'])return!0x1;if(_0xa36c90['hasComments']&&_0x41a288['createdAt']<_0xa36c90['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x41a288['hasComments']&&_0xa36c90['createdAt']<_0x41a288['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2425a3[0x0],_0x398c86[0x0]))return!0x1;const _0x1df767=xt(_0x2425a3[0x0]['attributes'],'groupId'),_0x500a30=xt(_0x398c86[0x0]['attributes'],'groupId');if(!_0x1b3678(_0x1df767,_0x500a30))return!0x1;return!!_0x2425a3['every'](_0x4b48bd=>_0x398c86['some'](_0x1a6cc4=>_0x4b48bd['getFirstRange']()['isEqual'](_0x1a6cc4['getFirstRange']())))&&_0x398c86['every'](_0x18a71c=>_0x2425a3['some'](_0x51cee1=>_0x18a71c['getFirstRange']()['isEqual'](_0x51cee1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2c4450){const _0x2e6de1=Array['from'](_0x2c4450),_0x2290f8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x59ed3b=_0x2290f8['filter'](_0x261c84=>!_0x2c4450['has'](_0x261c84)),_0x235ae0=new Map(_0x2e6de1['map'](_0x5372c2=>[_0x5372c2,this['_suggestionFactory']['getSuggestionCallback'](_0x5372c2['type'],_0x5372c2['subType'],'join')])),_0x9e3963=new Map(_0x2290f8['map'](_0x24067b=>[_0x24067b,_0x24067b['getRanges']()]));for(let _0x2f65b8=0x0;_0x2f65b8<_0x2e6de1['length'];_0x2f65b8++){if(_0x2e9207(this,_0x2e6de1[_0x2f65b8],_0x2e6de1,_0x2f65b8+0x1))return!0x0;}for(let _0x502605=0x0;_0x502605<_0x2e6de1['length'];_0x502605++){if(_0x2e9207(this,_0x2e6de1[_0x502605],_0x59ed3b,0x0))return!0x0;}return!0x1;function _0x2e9207(_0x228f0b,_0x53e5dd,_0x5bb490,_0x446884){for(let _0x2ee5e6=_0x446884;_0x2ee5e6<_0x5bb490['length'];_0x2ee5e6++){const _0x21ade6=_0x5bb490[_0x2ee5e6];if(_0x21ade6['type']!==_0x53e5dd['type']||_0x21ade6['author']['id']!==_0x53e5dd['author']['id']||_0x21ade6['subType']!==_0x53e5dd['subType'])continue;if(!qt(_0x53e5dd,_0x21ade6))continue;if('attribute'==_0x53e5dd['type']&&_0x53e5dd['data']['oldValue']!=_0x21ade6['data']['oldValue'])continue;if('attribute'==_0x53e5dd['type']&&_0x228f0b['_isBlockAttribute'](_0x53e5dd['data']['key']))continue;if('formatBlock'==_0x53e5dd['type']){const _0x45fc47=_0x228f0b['editor']['model'],_0x1bbede=_0x53e5dd['getContainedElement']();if(_0x1bbede&&(_0x45fc47['schema']['isObject'](_0x1bbede)||_0x45fc47['schema']['isLimit'](_0x1bbede)))continue;}const _0x3f3a0a=_0x235ae0['get'](_0x53e5dd),_0x1a3794=_0x9e3963['get'](_0x53e5dd),_0x5e4a53=_0x9e3963['get'](_0x21ade6),_0x5deaff=_0x53e5dd['commentThread']&&_0x53e5dd['commentThread']['length'],_0x62be3=_0x21ade6['commentThread']&&_0x21ade6['commentThread']['length'];if(!_0x5deaff&&_0x3f3a0a(_0x5e4a53,_0x1a3794))return _0x228f0b['_joinSuggestions'](_0x21ade6,_0x53e5dd),_0x9e3963['delete'](_0x53e5dd),!0x0;if(!_0x62be3&&_0x3f3a0a(_0x1a3794,_0x5e4a53))return _0x228f0b['_joinSuggestions'](_0x53e5dd,_0x21ade6),_0x9e3963['delete'](_0x21ade6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1dcf95,_0x4d202e){if(_0x1dcf95['isMultiRange']){for(const _0x1cb07c of _0x4d202e['getRanges']())_0x1dcf95['addRange'](_0x1cb07c);}else{const _0x395347=_0x4d202e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1dcf95,this['_model']['createRange'](_0x1dcf95['getFirstRange']()['start'],_0x395347));}_0x4d202e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x472546,_0xe673fa,_0x21b956){const _0x38d369=_0x472546['startsWith']('format')||_0x472546['startsWith']('attribute')?'FORMATTING':_0x472546['toUpperCase']();return o(this['editor']['locale'],_0xe673fa+'_'+_0x38d369+'_SUGGESTION_ANNOUNCEMENT',_0x21b956);}['_initAriaMarkerChangeAnnouncements'](){const _0xc57e23=this['editor'];if(!_0xc57e23['ui'])return;const {ariaLiveAnnouncer:_0x3c30f9}=_0xc57e23['ui'];_0x3afbb0(this['_model'],({left:_0x755a19,entered:_0x41002a})=>{for(const _0x16210c of _0x755a19){const {group:_0x4f6487,type:_0x2ab190}=this['_splitMarkerName'](_0x16210c['name']);if('suggestion'===_0x4f6487){_0x3c30f9['announce'](this['_getMarkerAnnouncementText'](_0x2ab190,'LEAVE'));break;}}for(const _0x24ec53 of _0x41002a){const {group:_0x4144e6,type:_0x599e38}=this['_splitMarkerName'](_0x24ec53['name']);if('suggestion'===_0x4144e6){_0x3c30f9['announce'](this['_getMarkerAnnouncementText'](_0x599e38,'ENTER',_0x25a6f5(_0x5bec8d)));break;}}});}['_processAttributeChanges'](_0x1d33f3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x28c71c=this['editor'],_0x1ec0bb=_0x28c71c['model']['document']['differ']['getChanges']();if(0x0==_0x1ec0bb['length'])return!0x1;const _0x419a8f=[],_0x1f67cb=_0x1ec0bb['filter'](_0x3c79c6=>'attribute'==_0x3c79c6['type']),_0x450816=_0x1ec0bb['filter'](_0x42f130=>'insert'==_0x42f130['type']&&'$text'!=_0x42f130['name']),_0x547c9e=_0x1ec0bb['filter'](_0x58c99c=>'remove'==_0x58c99c['type']&&'$text'!=_0x58c99c['name']);for(const _0x1986ef of _0x1f67cb)_0x419a8f['push']({'key':_0x1986ef['attributeKey'],'newValue':_0x1986ef['attributeNewValue'],'oldValue':_0x1986ef['attributeOldValue'],'range':Lt(_0x1986ef['range'],_0x28c71c['model'])});for(const _0x1e3751 of _0x450816){const _0x4b3e7d=_0x547c9e['find'](_0x4c5a01=>_0x4c5a01['position']['isEqual'](_0x1e3751['position']));_0x4b3e7d&&_0x419a8f['push']({'key':m,'newValue':_0x1e3751['name'],'oldValue':_0x4b3e7d['name'],'range':_0x28c71c['model']['createRangeOn'](_0x1e3751['position']['nodeAfter'])});}return 0x0!=_0x419a8f['length']&&this['_reduceExistingSuggestions'](_0x1d33f3,_0x419a8f);}['_processAttributeSuggestions'](_0x43510e){let _0x4e4ea7=!0x1;const _0x3c80f1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2df3c1=>_0x2df3c1['data']['newRange']&&_0x2df3c1['name']['startsWith']('suggestion:attribute:'));for(const _0x598e8a of _0x3c80f1){const {subType:_0x329083,id:_0x17c945}=this['_splitMarkerName'](_0x598e8a['name']),_0x3493ad=_0x329083['split']('|')[0x0];for(const _0xc767a0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xc767a0['id']!=_0x17c945&&'attribute'==_0xc767a0['type']&&_0xc767a0['data']&&_0xc767a0['data']['key']==_0x3493ad&&_0xc767a0['getFirstRange']()['isIntersecting'](_0x598e8a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xc767a0,_0x598e8a['data']['newRange'],_0x43510e),_0x4e4ea7=!0x0);}return _0x4e4ea7;}['_recordAttributeChanges'](_0x363480){this['_recordAttributeSuggestions']=!0x0,_0x363480();}['_isRegisteredAttribute'](_0x10e4b6){const _0x1f589e=this['_isBlockAttribute'](_0x10e4b6),_0x4070ea=this['_inlineAttributeKeys']['has'](_0x10e4b6);return _0x1f589e||_0x4070ea;}['_reduceExistingSuggestions'](_0x2427e9,_0x10e826){if(0x0==_0x10e826['length'])return!0x1;let _0x44922e=!0x1;for(const _0x3ad16e of _0x10e826){const _0x2af38a=this['_findSuggestions'](_0x3ad16e['range'],'attribute')['filter'](_0x558e54=>!_0x558e54['meta']['isNextTo'])['map'](_0xfe9bce=>_0xfe9bce['suggestion']),_0x19e9c3=_0x8d5dfc({'newValue':_0x3ad16e['newValue']});_0x2af38a['filter'](_0xd7364e=>{const [_0x272d7e,_0x26c528]=_0xd7364e['subType']['split']('|');return _0x272d7e==_0x3ad16e['key']&&_0x26c528!=_0x19e9c3;})['forEach'](_0x30050b=>{this['_reduceSuggestionAttributeRange'](_0x30050b,_0x3ad16e['range'],_0x2427e9),_0x44922e=!0x0;});}return _0x44922e;}['_reduceSuggestionAttributeRange'](_0x1124b3,_0x4dbcb6,_0x55a7a1){const _0x34978b=_0x1124b3['getFirstRange']()['getDifference'](_0x4dbcb6);0x0!==_0x34978b['length']?0x1!==_0x34978b['length']?this['_breakSuggestionMarker'](_0x1124b3,_0x4dbcb6['start'],_0x4dbcb6['end']):this['_setSuggestionRange'](_0x1124b3,_0x34978b[0x0]):_0x55a7a1['removeMarker'](_0x1124b3['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x41414f){this['_editor']=_0x41414f,this['_model']=_0x41414f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57f366,_0xd327ac,_0x6489cb,_0x49ee66,_0x153cd7,_0x29a315){return new u(this['_model'],{'type':_0x57f366,'subType':_0xd327ac,'id':_0x6489cb,'author':_0x49ee66,'creator':_0x49ee66,'attributes':_0x153cd7,'onAttributesChange':_0x29a315,'onAccept':(..._0x471a34)=>this['getSuggestionCallback'](_0x57f366,_0xd327ac,'accept')(..._0x471a34),'onDiscard':(..._0x55e3ba)=>this['getSuggestionCallback'](_0x57f366,_0xd327ac,'discard')(..._0x55e3ba)});}['registerCustomCallback'](_0x5bd4bd,_0x2ab522,_0x3ccf4f,_0x4b7d5e){const _0x37c8d9=_0x5bd4bd+':'+_0x2ab522+':'+_0x3ccf4f;this['_customCallbacks']['set'](_0x37c8d9,_0x4b7d5e);}['getSuggestionCallback'](_0x24285e,_0x2cff6d,_0x476be6){const _0x3e4ec3=_0x24285e+':'+_0x2cff6d+':'+_0x476be6;return this['_customCallbacks']['get'](_0x3e4ec3)||this['_defaultCallbacks']['get'](_0x24285e+':'+_0x476be6);}['_registerDefaultCallbacks'](){const _0x2e38c3=()=>!0x1,_0x11661c=_0x634f4c=>{_0x634f4c['sort']((_0x36d845,_0x5dc2fa)=>_0x36d845['start']['isBefore'](_0x5dc2fa['start'])?0x1:-0x1),this['_model']['change'](_0x104c4e=>{for(const _0x30abad of _0x634f4c){let _0xc179dd;_0xc179dd=_0x30abad['end']['isAtEnd']&&_0x30abad['end']['parent']==_0x30abad['start']['nodeAfter']?_0x104c4e['createSelection'](_0x30abad['start']['nodeAfter'],'on'):_0x104c4e['createSelection'](_0x30abad),this['_model']['deleteContent'](_0xc179dd,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x102d16=(_0xbed0c4,_0x3c0c66)=>{_0x3c0c66&&this['_model']['change'](_0x326981=>{const {commandName:_0x38ec7b,commandParams:_0x2266a4=[]}=_0x3c0c66,_0x1b1899=_0xbed0c4['map'](_0x357ad7=>(Vt(_0x357ad7)&&(_0x357ad7=this['_model']['createRange'](_0x357ad7['end'])),_0x357ad7))['filter'](_0x41ec0a=>'$graveyard'!==_0x41ec0a['root']['rootName']);if(_0x1b1899['length']<0x1)return;const _0x16b41a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x198087=>_0x2bc62b['fromRange'](_0x198087));_0x326981['setSelection'](_0x1b1899);for(const _0x4f6d35 of this['_editor']['commands']['commands']())_0x4f6d35['refresh']();_0x2266a4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x38ec7b,..._0x2266a4);const _0x2f6f04=_0x16b41a['filter'](_0x4a5233=>'$graveyard'!=_0x4a5233['root']['rootName']);_0x2f6f04['length']>0x0&&_0x326981['setSelection'](_0x2f6f04);for(const _0x1a436b of _0x16b41a)_0x1a436b['detach']();});},_0x4b7741=(_0xefd94a,_0x3159bd)=>0x1==_0xefd94a['length']&&0x1==_0x3159bd['length']&&_0xefd94a[0x0]['end']['isEqual'](_0x3159bd[0x0]['start']),_0x29355d=(_0xea28c9,_0x7d374a,_0x384f96,_0x5ab683)=>Ht(_0xea28c9,_0x7d374a,_0x384f96,_0x5ab683)?[_0xea28c9,_0x7d374a]:Ht(_0x7d374a,_0xea28c9,_0x5ab683,_0x384f96)?[_0x7d374a,_0xea28c9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2e38c3),this['_defaultCallbacks']['set']('insertion:discard',_0x11661c),this['_defaultCallbacks']['set']('insertion:join',_0x4b7741),this['_defaultCallbacks']['set']('insertion:chain',_0x29355d),this['_defaultCallbacks']['set']('deletion:accept',_0x11661c),this['_defaultCallbacks']['set']('deletion:discard',_0x2e38c3),this['_defaultCallbacks']['set']('deletion:join',_0x4b7741),this['_defaultCallbacks']['set']('deletion:chain',_0x29355d),this['_defaultCallbacks']['set']('formatInline:accept',_0x102d16),this['_defaultCallbacks']['set']('formatInline:discard',_0x2e38c3),this['_defaultCallbacks']['set']('formatInline:join',_0x4b7741),this['_defaultCallbacks']['set']('formatInline:chain',_0x2e38c3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x102d16),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2e38c3),this['_defaultCallbacks']['set']('formatBlock:join',_0x4b7741),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2e38c3),this['_defaultCallbacks']['set']('attribute:accept',_0x2e38c3),this['_defaultCallbacks']['set']('attribute:discard',(_0x36cc8a,_0x2fa23d)=>{if(!_0x2fa23d)return;const _0x4404d9=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1540e5=>{if(_0x2fa23d['key']==m)for(const _0xc75107 of _0x36cc8a){const _0x34c5a2=_0xc75107['start']['nodeAfter'],_0x32bae3=_0x2fa23d['oldValue'];_0x1540e5['rename'](_0x34c5a2,_0x32bae3);}else{if(_0x4404d9['_isBlockAttribute'](_0x2fa23d['key'])){for(const _0x424206 of _0x36cc8a)void 0x0!==_0x2fa23d['oldValue']?_0x1540e5['setAttribute'](_0x2fa23d['key'],_0x2fa23d['oldValue'],_0x424206['start']['nodeAfter']):_0x1540e5['removeAttribute'](_0x2fa23d['key'],_0x424206['start']['nodeAfter']);}else{for(const _0x2f2949 of _0x36cc8a)_0x2fa23d['oldValue']?_0x1540e5['setAttribute'](_0x2fa23d['key'],_0x2fa23d['oldValue'],_0x2f2949):_0x1540e5['removeAttribute'](_0x2fa23d['key'],_0x2f2949);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4b7741);}}function Ut(_0x5902b6,_0x5dd97c,_0x5e72e1){for(const _0x306143 of _0x5dd97c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x306143['root']==_0x306143)return!0x1;if(!_0x5e72e1['containsItem'](_0x306143))return!0x1;if(_0x5902b6['isObject'](_0x306143)||_0x5902b6['isLimit'](_0x306143))return!0x0;}return!0x1;}function Vt(_0x5b8ad1){return _0x5b8ad1['end']['parent']==_0x5b8ad1['start']['nodeAfter']&&_0x5b8ad1['end']['isAtStart'];}function Pt(_0x37331f,_0x149167,_0x3d2a58,_0x38fee3){const _0x20b29d=_0x5cd833=>!_0x5cd833['item']['is']('$textProxy')&&!_0x38fee3['isObject'](_0x5cd833['item']),_0x375c86=_0x37331f['start']['getLastMatchingPosition'](_0x20b29d),_0x4ef930=_0x37331f['end']['getLastMatchingPosition'](_0x20b29d,{'direction':'backward'});return(!_0x37331f['start']['isEqual'](_0x375c86)||!_0x37331f['end']['isEqual'](_0x4ef930))&&(_0x375c86['isBefore'](_0x4ef930)?_0x3d2a58['updateMarker'](_0x149167,{'range':_0x3d2a58['createRange'](_0x375c86,_0x4ef930)}):_0x3d2a58['removeMarker'](_0x149167),!0x0);}function Gt(_0x55bfa4){return _0x8d5dfc(_0x55bfa4);}function Ft(_0x25b1e1){const _0x17e367=_0x25b1e1['start']['nodeAfter'];return _0x17e367&&_0x17e367['is']('element');}function Lt(_0x1ba57a,_0x34ea21){return null==_0x1ba57a['end']['nodeBefore']&&_0x1ba57a['end']['parent']==_0x1ba57a['start']['nodeAfter']?Jt(_0x1ba57a['start']['nodeAfter'],_0x34ea21):_0x1ba57a;}function Jt(_0x469368,_0x17cc4b){const _0x366039=_0x17cc4b['schema']['isObject'](_0x469368)||_0x17cc4b['schema']['isSelectable'](_0x469368);return _0x17cc4b['createRange'](_0x17cc4b['createPositionAt'](_0x469368,'before'),_0x366039?_0x17cc4b['createPositionAfter'](_0x469368):_0x17cc4b['createPositionAt'](_0x469368,'end'));}function Ht(_0x1024e1,_0x35e137,_0x224553,_0x12a379){return!!qt(_0x1024e1,_0x35e137)&&_0x224553['end']['isEqual'](_0x12a379['start']);}function qt(_0x486cb4,_0x5b61c5){if(!_0x486cb4['_isDataLoaded']||!_0x5b61c5['_isDataLoaded'])return!0x1;const _0x82c9a=new Set(Object['keys'](_0x486cb4['attributes'])),_0x5a082b=new Set(Object['keys'](_0x5b61c5['attributes']));if(_0x82c9a['delete']('groupId'),_0x5a082b['delete']('groupId'),0x0==_0x82c9a['size']&&0x0==_0x5a082b['size'])return!0x0;if(_0x82c9a['size']!=_0x5a082b['size'])return!0x1;const _0xab9da7={..._0x486cb4['attributes']},_0x7a8f8f={..._0x5b61c5['attributes']};return delete _0xab9da7['groupId'],delete _0x7a8f8f['groupId'],JSON['stringify'](_0xab9da7)==JSON['stringify'](_0x7a8f8f);}function zt(_0x5bd19f,_0x5193c6){const _0x2126fc=Kt(_0x5bd19f['attributes']),_0x218cf0=Kt(_0x5193c6);if(!_0x5bd19f['_isDataLoaded'])return!0x1;for(const _0x286ced of Object['keys'](_0x218cf0))if(!_0x1b3678(_0x2126fc[_0x286ced],_0x218cf0[_0x286ced]))return!0x1;return!0x0;}function Kt(_0x8cd15a){const _0x47bbd1=Object['assign']({},_0x8cd15a);return delete _0x47bbd1['skipNestingCheck'],delete _0x47bbd1['tablePasteChainId'],_0x47bbd1;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x15f7d8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x114c6c,_0x5e9ff3,_0x1f075b,_0x19df52){super(),this['model']=_0x5e9ff3,this['view']=_0x1f075b,this['commentThreadController']=_0x19df52,this['_editor']=_0x114c6c,this['_acceptCommand']=_0x114c6c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x114c6c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x315385,_0x2eb756)=>_0x315385||_0x2eb756),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x263f06=>_0x263f06&&this['_editor']['model']['canEditAt'](_0x5e9ff3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3781a5=>_0x3781a5&&this['_editor']['model']['canEditAt'](_0x5e9ff3['getRanges']())),this['_pendingAction']=null,_0x1f075b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1f075b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1f075b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1f075b,'change:isDirty',()=>{_0x1f075b['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 _0x279240=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x279240);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x11c55e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2984b2,_0x51aa6a,_0x18014b,_0x32b1ab){super(_0x2984b2),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x123ace(_0x2984b2,o(_0x2984b2,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51aa6a['authoredAt']),this['bind']('authoredAt')['to'](_0x51aa6a),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',_0x51aa6a,'authoredAt',this,'descriptionParts',(_0x2f017c,_0xc70d4f,_0x433d81)=>{const _0x104dd5=_0x433d81['map'](_0x15969e=>ns(_0x15969e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2f017c-0x1,_0x51aa6a['author']['name'],_0xc70d4f?_0x32b1ab['formatDateTime'](_0xc70d4f):'',new DOMParser()['parseFromString'](_0x104dd5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x142d3c(),this['focusTracker']=new _0x3660f5(),this['keystrokes']=new _0x68c4f4(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5247cc=>_0x5247cc['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51aa6a,this['_localUser']=_0x18014b,this['_config']=_0x32b1ab,_0x32b1ab['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x50b2d3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1cc606}=this['_config'];this['commentsListView']=new _0x1cc606(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',_0x36013a=>_0x36013a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4bf9b9,_0xcb01fd)=>_0x4bf9b9||!!_0xcb01fd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x411cc6}=this['_config'],_0x186760=new _0x411cc6(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x23a69f=_0x186760['commentInputView'];return _0x186760['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x23a69f,'value',(_0x114abe,_0x545747,_0x17dfc8)=>!!_0x17dfc8||_0x114abe&&!_0x545747),_0x23a69f['on']('submit',(_0x3545ea,_0x2115bf)=>{this['fire']('addComment',_0x2115bf),_0x23a69f['editor']['setData']('');}),_0x23a69f['on']('cancel',()=>this['focus']()),_0x23a69f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x186760;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0xf46570,_0x505c91,_0x5d1237,_0x2a2d24){super(_0xf46570,_0x505c91,_0x5d1237,_0x2a2d24),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x912a69=>_0x912a69&&_0x912a69[0x0]?_0x912a69[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x69fc8a,_0x80653c)=>{let _0x40d9b2='';for(const _0x5ab2f4 of _0x69fc8a)_0x40d9b2+='<p>'+ns(_0x5ab2f4['content'],_0x5ab2f4['color'])+'</p>';return _0x80653c?_0x40d9b2:ti(_0x40d9b2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2a2d24['SuggestionView'](_0xf46570,_0x505c91,{'formatDateTime':_0x2a2d24['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 _0x4d27cb=this['bindTemplate'],_0x39656f=[this['suggestionView']];return this['commentsListView']&&_0x39656f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x39656f['push'](this['commentThreadInputView']),_0x39656f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d27cb['if']('isActive','ck-suggestion-wrapper--active'),_0x4d27cb['to']('type',_0x1dc1e5=>'ck-suggestion-'+_0x1dc1e5),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':_0x4d27cb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x39656f};}['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 ue extends _0x11c55e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x403c72,_0x14ac7d,_0x3e2020){super(_0x403c72),this['_model']=_0x14ac7d,this['_config']=_0x3e2020,this['set']('description',''),this['bind']('authoredAt')['to'](_0x14ac7d),this['acceptButton']=this['_createButton'](o(_0x403c72,'Accept\x20suggestion'),_0x13eb7a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x403c72,'Discard\x20suggestion'),_0x13eb7a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x56679d(_0x403c72,_0x14ac7d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x142d3c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3660f5(),this['keystrokes']=new _0x68c4f4(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1623bf=>_0x1623bf['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xddc4a4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xddc4a4['innerHTML']=this['description'],this['on']('change:description',(_0x597178,_0xfdb879,_0x5a954a)=>{_0xddc4a4['innerHTML']=_0x5a954a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4a01e6=this['bindTemplate'],_0xc61d32=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x4a01e6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4a01e6['to']('authoredAt',_0x1b8422=>this['_config']['formatDateTime'](_0x1b8422))}]}]},{'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']&&_0xc61d32['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':_0xc61d32}]};}['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'](_0xa903e0,_0x2330d9,_0x5f4919,_0x36df11,_0x247fc1){const _0x54cdc4=new _0x10e942(this['locale']);return _0x54cdc4['set']({'label':_0xa903e0,'icon':_0x2330d9,'tooltip':!0x0,'tooltipPosition':_0x247fc1}),_0x54cdc4['extendTemplate']({'attributes':{'class':_0x5f4919}}),_0x54cdc4['on']('execute',()=>{this['fire'](_0x36df11,this['_model']['id']);}),_0x54cdc4;}['_setupKeyboardNavigation'](){const _0x5450a1=this['element'];this['keystrokes']['listenTo'](_0x5450a1);for(const _0x50eeb9 of this['focusables'])this['focusTracker']['add'](_0x50eeb9['element']),this['keystrokes']['listenTo'](_0x50eeb9['element']);this['keystrokes']['set']('enter',(_0x3058d4,_0x7b3b61)=>{_0x5450a1===_0x3058d4['target']&&(this['focusCycler']['focusFirst'](),_0x7b3b61());}),this['keystrokes']['set']('esc',(_0x2b210b,_0x8d9ff4)=>{_0x5450a1!==_0x2b210b['target']&&(this['focus'](),_0x8d9ff4());});}}var Ce='<!--\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-2024,\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 _0xd3eebf{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x33503a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35ee85){super(_0x35ee85),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xfd3192=this['editor']['config'];_0xfd3192['define']('trackChanges.SuggestionThreadView',de),_0xfd3192['define']('trackChanges.SuggestionView',ue),_0xfd3192['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xfd3192['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1c5b66,_0x28c788){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x159098,_0x2cd5f0]of this['_handleControllerBuffer']){const _0x548d1b=this['_suggestionToController']['has'](_0x159098);_0x548d1b||_0x2cd5f0?_0x548d1b&&_0x2cd5f0&&this['_destroyController'](_0x159098):this['_initializeController'](_0x159098);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1c5b66,_0x28c788);}['init'](){const _0xad1f5d=this['editor'],_0x4ff047=_0xad1f5d['plugins']['get']('TrackChangesEditing'),_0x77050f=_0xad1f5d['plugins']['get']('Annotations'),_0x2c1b7f=_0xad1f5d['plugins']['get']('EditorAnnotations'),_0x1519e3=_0xad1f5d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2c1b7f['addSourceCollector'](()=>{const _0x677313=[];for(const [_0x51600f,_0x4c807f]of Array['from'](this['_suggestionToController'])){const _0x1764af=_0x51600f['getAllAdjacentSuggestions'](),_0x3f8086=[];for(const _0x3504e2 of _0x1764af){if(!_0x3504e2['isInContent'])continue;if(_0x3504e2['isMultiRange']){_0x3f8086['push'](..._0x3504e2['getRanges']());continue;}const _0x26f36b=_0x3504e2['getFirstRange']();if(_0x3f8086['length']>0x0){const _0x454d5a=_0x3f8086[0x0]['getJoined'](_0x26f36b);if(_0x454d5a){_0x3f8086[0x0]=_0x454d5a;continue;}}_0x3f8086['push'](_0x26f36b);}_0x677313['push']([_0x4c807f['view'],_0x3f8086]);}return _0x677313;}),this['listenTo'](_0x4ff047,'suggestionLoaded',(_0x293f55,_0x1c4e6d)=>{this['listenTo'](_0x1c4e6d,'change:previous',(_0x41fe40,_0x3ec2b6,_0x4a9a68,_0x161321)=>{_0x1c4e6d['isInContent']&&(null==_0x4a9a68?(this['_updateController'](_0x161321['head']),this['_handleSuggestionControllerDelayed'](_0x1c4e6d,!0x1)):(this['_updateController'](_0x4a9a68['head']),null==_0x161321&&this['_handleSuggestionControllerDelayed'](_0x1c4e6d,!0x0)));}),null!==_0x1c4e6d['previous']?this['_updateController'](_0x1c4e6d['head']):this['_handleSuggestionControllerDelayed'](_0x1c4e6d,!0x1);}),this['listenTo'](_0x4ff047,'suggestionUnloaded',(_0x5e7e10,_0xc141ff,_0x2a696c)=>{this['stopListening'](_0xc141ff,'change:previous'),this['_handleControllerBuffer']['delete'](_0xc141ff),this['_suggestionToController']['has'](_0xc141ff)&&this['_destroyController'](_0xc141ff),_0x2a696c&&this['_updateController'](_0x2a696c['head']);}),this['listenTo'](_0x4ff047,'suggestionChanged',(_0x3f1d4e,_0x52d08c)=>{this['_updateController'](_0x52d08c);}),this['listenTo'](_0x77050f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1519e3,'addComment',(_0x3c1fbc,{threadId:_0x162d66,isFromAdapter:_0x4af0f9})=>{if(_0x4af0f9||!_0x4ff047['hasSuggestion'](_0x162d66))return;const _0x1f7a70=_0x4ff047['getSuggestion'](_0x162d66);this['_suggestionToController']['get'](_0x1f7a70)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b4f78=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x300138;for(const _0x326214 in _0x3b4f78){const _0x1a6683=_0x326214,_0x314e90=_0x3b4f78[_0x1a6683];if('trackChangesLicenseKeyValid'==_0x314e90||'trackChangesLicenseKeyInvalid'==_0x314e90||'trackChangesLicenseKeyExpired'==_0x314e90||'trackChangesLicenseKeyDomainLimit'==_0x314e90||'trackChangesLicenseKeyNotAllowed'==_0x314e90||'trackChangesLicenseKeyEvaluationLimit'==_0x314e90||'trackChangesLicenseKeyTrialLimit'==_0x314e90||'trackChangesLicenseKeyDevelopmentLimit'==_0x314e90||'trackChangesLicenseKeyUsageLimit'==_0x314e90){delete _0x3b4f78[_0x1a6683],_0x300138=_0x314e90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x300138&&_0x3b4f78['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x300138&&_0x3b4f78['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x300138&&_0x3b4f78['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x300138&&_0x3b4f78['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x300138&&_0x3b4f78['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x300138&&_0x3b4f78['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x300138&&_0x3b4f78['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x300138&&_0x3b4f78['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x242ddc=this['editor']['plugins']['get']('Annotations'),_0x4df6a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x438c75=Array['from'](_0x242ddc['activeAnnotations'],_0x2096b4=>_0x2096b4['innerView'])['filter'](_0x459a4d=>this['_viewToController']['has'](_0x459a4d)),_0xcf49f3=[];for(const _0x1a8f56 of _0x438c75){const _0x747130=this['_viewToController']['get'](_0x1a8f56)['model']['getAllAdjacentSuggestions']();_0xcf49f3['push'](..._0x747130['reduce']((_0x5dd604,_0xa9219e)=>[..._0x5dd604,..._0xa9219e['getMarkerNames']()],[]));}_0x4df6a5['activeMarkers']=_0xcf49f3;}['_addUIComponentsToFactory'](){const _0x26ded4=this['editor'],_0x4da7e1=_0x26ded4['locale'],_0x57389f=o(_0x4da7e1,'Track\x20changes'),_0x396a52=new _0xf84870([{'type':'switchbutton','model':new _0x403c2e({'withText':!0x0,'isToggleable':!0x0,'label':_0x57389f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x403c2e({'withText':!0x0,'label':o(_0x4da7e1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x403c2e({'withText':!0x0,'label':o(_0x4da7e1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x403c2e({'withText':!0x0,'label':o(_0x4da7e1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x403c2e({'withText':!0x0,'label':o(_0x4da7e1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2d036a of _0x396a52)if(pe(_0x2d036a)){const _0x4ad430=_0x26ded4['commands']['get'](_0x2d036a['model']['commandName']);_0x2d036a['model']['bind']('isOn','isEnabled')['to'](_0x4ad430,'value','isEnabled');}_0x26ded4['ui']['componentFactory']['add']('trackChanges',_0x58af98=>this['_createToolbarButton'](_0x58af98,_0x396a52,_0x57389f)),_0x26ded4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d7441=>this['_createMenuBarMenu'](_0x2d7441,_0x396a52,_0x57389f));}['_createToolbarButton'](_0x3e611d,_0x32659e,_0x21f63d){const _0x3a3316=_0x6f8f9d(_0x3e611d,_0x6bed6),_0x49976f=this['editor']['commands']['get']('trackChanges');_0x3a3316['buttonView']['set']({'tooltip':_0x21f63d,'label':_0x21f63d,'icon':Ce}),_0x3a3316['buttonView']['bind']('isOn')['to'](_0x49976f,'value'),_0x3a3316['buttonView']['on']('execute',()=>{_0x49976f['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x3a3316,_0x32659e,{'role':'menu'});const _0xa70913=[];for(const _0x25622d of _0x32659e)pe(_0x25622d)&&_0xa70913['push'](this['editor']['commands']['get'](_0x25622d['model']['commandName']));const _0x388578=_0x3a3316['buttonView'];return _0x388578['actionView']['unbind']('isEnabled'),_0x388578['arrowView']['unbind']('isEnabled'),_0x388578['actionView']['bind']('isEnabled')['to'](_0x49976f,'isEnabled'),_0x388578['arrowView']['bind']('isEnabled')['toMany'](_0xa70913,'isEnabled',(..._0x54f339)=>_0x54f339['some'](_0x1eae5b=>_0x1eae5b)),_0x3a3316['on']('execute',_0x549120=>{this['editor']['execute'](_0x549120['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a3316;}['_createMenuBarMenu'](_0x328d43,_0x3cd261,_0x759ad1){const _0x52b097=new _0x159af8(_0x328d43),_0x325064=this['editor']['commands']['get']('trackChanges');_0x52b097['buttonView']['set']({'label':_0x759ad1,'icon':Ce});const _0x27f010=new _0x28ad39(_0x328d43);for(const _0x36ddba of _0x3cd261){if('separator'==_0x36ddba['type']){_0x27f010['items']['add'](new _0x327e2c(_0x328d43));continue;}const _0x39421f=new _0x182c9f(_0x328d43,_0x52b097),_0x50ea3c=new _0x487fc5(_0x328d43),_0x191adb=_0x36ddba['model'];_0x50ea3c['bind'](...Object['keys'](_0x191adb))['to'](_0x191adb),_0x50ea3c['delegate']('execute')['to'](_0x52b097),_0x50ea3c['on']('execute',()=>{this['editor']['execute'](_0x191adb['commandName']),this['editor']['editing']['view']['focus']();}),_0x39421f['children']['add'](_0x50ea3c),_0x27f010['items']['add'](_0x39421f);}return _0x52b097['bind']('isEnabled')['to'](_0x325064,'isEnabled'),_0x52b097['panelView']['children']['add'](_0x27f010),_0x52b097;}['_initializeController'](_0x1de4a8){const _0x4f23dc=this['editor'],_0x2daff3=_0x4f23dc['config'],_0x5173a9=_0x4f23dc['plugins']['get']('Annotations'),_0x3f855b=_0x4f23dc['plugins']['get']('CommentsRepository'),_0x359f1b=_0x4f23dc['plugins']['get']('EditorAnnotations'),_0x2321c5=_0x4f23dc['plugins']['get'](_0x33503a)['me'],_0x32d129=_0x2daff3['get']('trackChanges')['SuggestionThreadView'],_0x40a674=_0x2daff3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x555412,CommentThreadInputView:_0x32b511}=_0x4f23dc['plugins']['get']('CommentsUI');let _0x5f480a,_0x5c2b7b,_0x4d2f87;this['_annotationViews']['has'](_0x1de4a8['id'])?(_0x5c2b7b=this['_annotationViews']['get'](_0x1de4a8['id']),_0x5f480a=_0x5c2b7b['mainView']):(_0x5f480a=new _0x32d129(_0x4f23dc['locale'],_0x1de4a8,_0x2321c5,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2daff3['get']('comments.editorConfig'),'licenseKey':_0x2daff3['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2daff3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2daff3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2daff3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5f5912(_0x2daff3['get']('locale')),'CommentView':_0x2daff3['get']('comments')['CommentView'],'CommentsListView':_0x555412,'CommentThreadInputView':_0x32b511,'SuggestionView':_0x40a674}),_0x5f480a['suggestionView']['acceptButton']['on']('execute',()=>{_0x4f23dc['editing']['view']['focus']();}),_0x5f480a['suggestionView']['discardButton']['on']('execute',()=>{_0x4f23dc['editing']['view']['focus']();}),_0x5c2b7b=_0x5173a9['createAnnotationView'](this['editor']['locale'],_0x5f480a),_0x5c2b7b['bind']('isDirty')['to'](_0x5f480a,'isDirty'),_0x5c2b7b['bind']('length')['to'](_0x5f480a),_0x5c2b7b['bind']('type')['to'](_0x5f480a,'type',_0x5aa0f7=>'suggestion-'+_0x5aa0f7),_0x5f480a['on']('escape',()=>{_0x4d2f87['fire']('escape');}),this['_annotationViews']['set'](_0x1de4a8['id'],_0x5c2b7b));const _0x329ce5=_0x3f855b['createCommentThreadController'](_0x1de4a8['commentThread'],_0x5f480a),_0x53aced=new ge(_0x4f23dc,_0x1de4a8,_0x5f480a,_0x329ce5),_0x3f0f3a=_0x1de4a8['getAllAdjacentSuggestions']()['filter'](_0x2a6db5=>_0x2a6db5['isInContent']);_0x5f480a['descriptionParts']=_0x4f23dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3f0f3a),this['_suggestionToController']['set'](_0x1de4a8,_0x53aced),this['_viewToController']['set'](_0x5f480a,_0x53aced),_0x4d2f87=_0x5173a9['createAnnotation']({'view':_0x5c2b7b,'target':()=>{const _0x416368=[],_0x5daf9c=_0x1de4a8['getAllAdjacentSuggestions']()['filter'](_0x4431a4=>_0x4431a4['isInContent']);for(const _0xe3399c of _0x5daf9c)_0x416368['push'](..._0xe3399c['getMarkers']());return _0x2c3b30(_0x4f23dc['editing'],_0x416368);},'type':()=>'suggestion-'+_0x53aced['view']['type']}),_0x3f855b['_bindAnnotationToEditors'](_0x5f480a,_0x4d2f87),_0x5173a9['add'](_0x4d2f87),_0x359f1b['registerAnnotation'](_0x4d2f87);}['_destroyController'](_0xb41891){const _0x114b92=this['editor']['plugins']['get']('CommentsRepository'),_0x48c2af=this['editor']['plugins']['get']('Annotations'),_0x575f46=this['_suggestionToController']['get'](_0xb41891),_0x192076=_0x575f46['view'],_0x2d063c=_0x48c2af['getByInnerView'](_0x192076);_0x114b92['_unbindEditors'](_0x192076),_0x2d063c&&_0x48c2af['remove'](_0x2d063c),this['_suggestionToController']['delete'](_0xb41891),this['_viewToController']['delete'](_0x192076),_0x575f46['destroy']();}['_updateController'](_0x3d40dc){if(!_0x3d40dc['isInContent']||!this['_suggestionToController']['has'](_0x3d40dc))return;const _0x9e7340=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29ad86=this['_suggestionToController']['get'](_0x3d40dc),_0x2f65a2=_0x3d40dc['getAllAdjacentSuggestions']();_0x29ad86['view']['descriptionParts']=_0x9e7340['descriptionFactory']['getDescriptions'](_0x2f65a2);}['destroy'](){for(const _0x286b11 of this['_suggestionToController']['keys']())this['_destroyController'](_0x286b11);for(const _0x345e75 of this['_annotationViews']['values']())_0x345e75['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x2fcb2a){return'model'in _0x2fcb2a;}class k extends _0xd3eebf{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x43444c){this['editor']['plugins']['get'](p)['adapter']=_0x43444c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2e6261){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2e6261);}['getSuggestions']({skipNotAttached:_0x76ea87=!0x1,toJSON:_0x4a58f2=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x76ea87,'toJSON':_0x4a58f2});}['getSuggestion'](_0x262c1b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x262c1b);}}const w=['Pagination'];class T extends _0xd3eebf{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c589=this['editor'];if(_0x3c589['config']['define']('trackChangesData.editorCreator',_0x23e870=>{const _0x399e83=_0x3c589['model']['document']['getRootNames']()['reduce']((_0x2fe794,_0x401cef)=>(_0x2fe794[_0x401cef]='',_0x2fe794),{});return _0x3c589['constructor']['create'](_0x399e83,_0x23e870);}),'function'!=typeof _0x3c589['config']['get']('trackChangesData')['editorCreator'])throw new _0x1bad0a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a8c34){return N(this['editor'],!0x0,_0x3a8c34);}['getDataWithDiscardedSuggestions'](_0x24f459){return N(this['editor'],!0x1,_0x24f459);}}class D extends _0xd3eebf{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36220b){function _0x6fd45b(_0x262074){return _0x262074['map'](_0x52f5f2=>String['fromCharCode'](_0x52f5f2))['join']('');}super(_0x36220b),this['result']='end',_0x36220b[_0x6fd45b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6fd45b([0x76,0x69,0x65,0x77])][_0x6fd45b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6fd45b([0x61,0x75,0x74,0x6f]),_0x36220b[_0x6fd45b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x6fd45b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6fd45b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x6fd45b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x6fd45b([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 v(_0x1e2ccc){return void 0x0!==_0x1e2ccc['getRootsAttributes'];}async function N(_0x2c5e5c,_0x4dee32,_0x2d54d2){const _0x5b2dd0=_0x58f32d(_0x2c5e5c,w);_0x5b2dd0['plugins']['push'](p,D),_0x5b2dd0['rootsAttributes']=v(_0x2c5e5c)?_0x2c5e5c['getRootsAttributes']():void 0x0;const _0x8f980a=document['createDocumentFragment'](),_0x42e39a=_0x2c5e5c['config']['get']('trackChangesData')['editorCreator'],_0x1b02bb=await _0x42e39a(_0x5b2dd0,()=>function(_0x3ae970){const _0x5655a6=document['createElement']('div');return _0x3ae970['appendChild'](_0x5655a6),_0x5655a6;}(_0x8f980a));!function(_0x42ac64,_0x20ca20){const _0x476899=_0x42ac64['model']['document']['getRootNames']()['reduce']((_0x9a36e1,_0x5d21e3)=>(_0x9a36e1[_0x5d21e3]=_0x42ac64['data']['get']({'rootName':_0x5d21e3}),_0x9a36e1),{}),_0x3ea173=_0x42ac64['plugins']['get']('Users')['users']['map'](_0x28e2b0=>({'id':_0x28e2b0['id'],'name':_0x28e2b0['name']})),_0x42687a=_0x42ac64['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17451c=_0x42ac64['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4de090=_0x20ca20['plugins']['get']('Users'),_0x46b5b5=_0x20ca20['plugins']['get']('TrackChangesEditing'),_0x5d52ff=_0x20ca20['plugins']['get']('CommentsRepository');for(const _0x45baee of _0x5d52ff['getCommentThreads']())_0x45baee['remove']();for(const _0x25ed80 of _0x3ea173)_0x4de090['getUser'](_0x25ed80['id'])||_0x4de090['addUser'](_0x25ed80);_0x4de090['me']||_0x4de090['useAnonymousUser']();for(const _0x398635 of _0x17451c)_0x5d52ff['addCommentThread'](_0x398635);for(const _0x43b86c of _0x42687a)_0x46b5b5['addSuggestionData'](_0x43b86c);_0x20ca20['data']['set'](_0x476899);}(_0x2c5e5c,_0x1b02bb),_0x1b02bb['execute'](_0x4dee32?'acceptAllSuggestions':'discardAllSuggestions');const _0x123202=v(_0x1b02bb)?_0x1b02bb['getFullData'](_0x2d54d2):_0x1b02bb['data']['get'](_0x2d54d2);return await _0x1b02bb['destroy'](),_0x123202;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as Qt,Plugin as _0x20fd26,PendingActions as _0x515d30,icons as _0xb09a87}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x248d7e,ObservableMixin as _0x2f0fd0,uid as _0x4f08f2,insertToPriorityArray as _0x26c763,priorities as _0x2857cb,logWarning as _0x57683b,getEnvKeystrokeText as _0x292b79,FocusTracker as _0x2dd17b,KeystrokeHandler as _0x4dba44,Collection as _0x32d6fd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x581a6a,View as _0x31d06a,ViewCollection as _0x2686b8,FocusCycler as ts,ViewModel as _0x5c85b3,createDropdown as _0x5b00cd,SplitButtonView as _0x127b4c,addListToDropdown as te,MenuBarMenuView as _0x35d0fe,MenuBarMenuListView as _0x39ce3d,ListSeparatorView as _0x227d5e,MenuBarMenuListItemView as _0x131568,MenuBarMenuListItemButtonView as _0x34a57f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x314e7d,hashObject as _0x4d7158,surroundingMarkersDetector as _0x51770b,FOCUS_ANNOTATION_KEYSTROKE as _0x5ac976,AriaDescriptionView as _0x512818,setupThreadKeyboardNavigation as _0x2ebf2d,trimHtml as ti,UserView as _0xb4de14,LateFocusButtonView as _0x4359ea,getDateTimeFormatter as _0x22fe0a,getAllMarkersDomElementsSorted as _0x197d86,sanitizeEditorConfig as _0x47d743}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5cda16,LiveRange as _0x282df5,LivePosition as _0x5d6f47}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x397a9c,toWidget as _0xeddd32}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1bf547,set as _0x16bf7d,isEqual as _0x5c0d27,unset as _0x4efc1a,omit as xt}from'lodash-es';import{Delete as _0x2d73ae,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x332d24,ShiftEnter as _0x237087}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x26d54c,_0x5cfe44){super(_0x26d54c),this['_enabledCommands']=_0x5cfe44,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 _0x207da4 of this['editor']['commands']['commands']())_0x207da4['affectsData']&&!this['_enabledCommands']['has'](_0x207da4)&&_0x207da4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x15adad of this['editor']['commands']['commands']())_0x15adad['affectsData']&&!this['_enabledCommands']['has'](_0x15adad)&&_0x15adad['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x1e5dbe,_0x2730f4){super(_0x1e5dbe),this['_suggestions']=_0x2730f4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5a9b24){const _0xc0e8bc=this['_suggestions']['get'](_0x5a9b24);if(!_0xc0e8bc)throw new _0x248d7e('track-changes-accept-suggestion-not-found',this);const _0x11b7d6=_0xc0e8bc['getRanges']();this['editor']['model']['canEditAt'](_0x11b7d6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xc0e8bc);}}class R extends Qt{['_suggestions'];constructor(_0x20757d,_0x580382){super(_0x20757d),this['_suggestions']=_0x580382,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x58aa64){const _0x5ce221=this['_suggestions']['get'](_0x58aa64);if(!_0x5ce221)throw new _0x248d7e('track-changes-discard-suggestion-not-found',this);const _0x497299=_0x5ce221['getRanges']();this['editor']['model']['canEditAt'](_0x497299)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5ce221);}}function ns(_0x9af3e,_0x3d5942){let _0x3e6fd5='';return _0x3e6fd5+=_0x9af3e['split']('*')['map']((_0x36c9bc,_0x604532)=>_0x604532%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x36c9bc)+'</span>':nn(_0x36c9bc))['join'](''),_0x3d5942&&(_0x3e6fd5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3d5942['value']+'\x22\x20title=\x22'+_0x3d5942['title']+'\x22></span>'),_0x3e6fd5;}function nn(_0x157f2d){const _0x4b279e=document['createElement']('span');return _0x4b279e['innerText']=_0x157f2d,_0x4b279e['innerHTML'];}function Wt(_0x5eb8c4){return _0x5eb8c4['sort']((_0x23278e,_0x58232c)=>'deletion'==_0x23278e['type']&&'deletion'!=_0x58232c['type']?-0x1:'deletion'!=_0x23278e['type']&&'deletion'==_0x58232c['type']?0x1:0x0);}function to(_0x289b51,_0x1bf122){let _0x15ee9d,_0x775f5d=0x0;const _0x1c7162=[],_0x221201=_0x1bf122['schema'];for(;_0x775f5d<_0x289b51['length'];){const _0x44a32b=_0x289b51[_0x775f5d],_0x2a2b78=_0x289b51[_0x775f5d+0x1];_0x15ee9d||(_0x15ee9d=_0x1bf122['createPositionBefore'](_0x44a32b)),on(_0x1bf122,_0x44a32b,_0x2a2b78)||(_0x1c7162['push'](_0x1bf122['createRange'](_0x15ee9d,_0x221201['isObject'](_0x44a32b)?_0x1bf122['createPositionAfter'](_0x44a32b):_0x1bf122['createPositionAt'](_0x44a32b,'end'))),_0x15ee9d=null),_0x775f5d++;}return _0x1c7162;}function on(_0xd9d927,_0x11bbf6,_0x26d120){if(!_0x26d120)return!0x1;const _0x40588e=_0xd9d927['createPositionAfter'](_0x11bbf6),_0x14dddf=_0xd9d927['createPositionBefore'](_0x26d120);return _0x40588e['isTouching'](_0x14dddf);}function Xt(_0x1f671a,_0x20995e,_0x264b7b){for(;_0x264b7b['length'];){const _0x47ab3e=_0x264b7b['splice'](0x0,0x64);_0x1f671a['change'](()=>{for(const _0x309274 of _0x47ab3e)_0x309274['isInContent']&&_0x20995e['execute'](_0x309274['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x620a50,_0x571475,_0x358d93){super(_0x620a50),this['_command']=_0x571475,this['_suggestions']=_0x358d93,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x566a2a=Array['from'](this['_suggestions']['values']())['some'](_0x3ab636=>_0x3ab636['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x566a2a;}['execute'](){const _0x44648e=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x172805 of _0x44648e){const _0x17653f=_0x172805['getRanges']();if(!this['editor']['model']['canEditAt'](_0x17653f))return;}Xt(this['editor']['model'],this['_command'],_0x44648e);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2ad848,_0x50c559,_0x559034){super(_0x2ad848),this['_command']=_0x50c559,this['_suggestions']=_0x559034,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4cdda8=this['editor']['model']['document']['selection'],_0x431dbc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2f3cc1,_0x58d9cd){const _0x5969b3=Array['from'](_0x2f3cc1['getRanges']()),_0x1de167=new Set();for(const _0x10af89 of _0x58d9cd)if(_0x10af89['isInContent']){for(const _0x852018 of _0x5969b3)for(const _0x3de10d of _0x10af89['getRanges']())(_0x852018['isIntersecting'](_0x3de10d)||_0x2f3cc1['isCollapsed']&&!_0x10af89['isMultiRange']&&_0x10af89['next']&&_0x3de10d['end']['isTouching'](_0x852018['start']))&&_0x1de167['add'](_0x10af89);}return _0x1de167;}(_0x4cdda8,_0x431dbc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x530462=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x47eeaa of _0x530462){const _0x235135=_0x47eeaa['getRanges']();if(!this['editor']['model']['canEditAt'](_0x235135))return;}Xt(this['editor']['model'],this['_command'],_0x530462);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2f0fd0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x409d76,_0x2a74e8){super(),this['id']=_0x2a74e8['id'],this['type']=_0x2a74e8['type'],this['subType']=_0x2a74e8['subType']||null,this['author']=_0x2a74e8['author'],this['creator']=_0x2a74e8['creator']||_0x2a74e8['author'],this['isExternal']=Boolean(_0x2a74e8['attributes']&&_0x2a74e8['attributes']['@external']),this['data']=null,this['_model']=_0x409d76,this['_onAccept']=_0x2a74e8['onAccept'],this['_onDiscard']=_0x2a74e8['onDiscard'],this['_onAttributesChange']=_0x2a74e8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2a74e8['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 _0x422379=this;for(;_0x422379['previous'];)_0x422379=_0x422379['previous'];return _0x422379;}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'](_0x4cfce7){this['_markerNames']['add'](_0x4cfce7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2138c7=>this['_model']['markers']['get'](_0x2138c7))['filter'](_0x42b12e=>_0x42b12e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x16c555=>{for(const _0x101e66 of this['getMarkers']())_0x16c555['removeMarker'](_0x101e66);}),this['_markerNames']['clear']();}['removeMarker'](_0x94bc39){this['_model']['change'](_0x3d2c08=>{_0x3d2c08['removeMarker'](_0x94bc39);}),this['_markerNames']['delete'](_0x94bc39);}['addRange'](_0x113b3d){const _0x112671='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x112671),this['_model']['change'](_0x585054=>{_0x585054['addMarker'](_0x112671,{'range':_0x113b3d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3de87d){for(const _0x3913f6 of this['getRanges']())if(_0x3913f6['isIntersecting'](_0x3de87d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x207202=>_0x207202['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xba2c6b,_0x5631dd)=>[..._0xba2c6b,..._0x5631dd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1167e9=this['getRanges']();if(0x1!=_0x1167e9['length'])return null;const _0x418112=_0x1167e9[0x0],_0x3f5080=_0x418112['start']['nodeAfter'],_0x1b7606=_0x418112['end']['nodeBefore'];return _0x3f5080 instanceof _0x5cda16?_0x3f5080!=_0x1b7606?null:_0x3f5080: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 _0x34d8d6=[];let _0x41acb5=this['head'];for(;_0x41acb5;)_0x34d8d6['push'](_0x41acb5),_0x41acb5=_0x41acb5['next'];return _0x34d8d6;}['setAttribute'](_0x4dd4d6,_0x44e437){const _0x43335e=_0x1bf547(this['attributes']);_0x16bf7d(_0x43335e,_0x4dd4d6,_0x44e437),_0x5c0d27(_0x43335e,this['attributes'])||(this['attributes']=_0x43335e,this['_onAttributesChange'](_0x43335e));}['removeAttribute'](_0x24abe4){const _0x17df14=_0x1bf547(this['attributes']);_0x4efc1a(_0x17df14,_0x24abe4),_0x5c0d27(_0x17df14,this['attributes'])||(this['attributes']=_0x17df14,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 _0x4f08f2()['substr'](0x1,0x5);}}function o(_0x186ba3,_0x245277,_0x5ee3af){const _0x61472=_0x186ba3['t'],t=_0x186ba3['t'];switch(_0x245277){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'*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',_0x5ee3af);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5ee3af);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5ee3af);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5ee3af);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5ee3af);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',_0x5ee3af);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5ee3af);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x5ee3af);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5ee3af);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5ee3af);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5ee3af);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5ee3af);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5ee3af);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5ee3af);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5ee3af);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5ee3af);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5ee3af);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5ee3af);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5ee3af);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5ee3af);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5ee3af);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5ee3af);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5ee3af);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5ee3af);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'},_0x5ee3af);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5ee3af);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5ee3af);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5ee3af);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5ee3af);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5ee3af);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'},_0x5ee3af);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5ee3af);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5ee3af);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5ee3af);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5ee3af);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'},_0x5ee3af);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5ee3af);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'},_0x5ee3af);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'},_0x5ee3af);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5ee3af);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'},_0x5ee3af);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5ee3af);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'},_0x5ee3af);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5ee3af);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5ee3af);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'},_0x5ee3af);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5ee3af);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 _0x61472({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5ee3af);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x61472({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5ee3af);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5ee3af);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'},_0x5ee3af);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'},_0x5ee3af);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'},_0x5ee3af);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x245277;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1e497c,_0x1b7922){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1e497c,this['_locale']=_0x1b7922;}['getDescriptions'](_0x2b9a27){const _0x576b21=[],_0x3acd47=new Set(),_0x4820d8=new Set();for(let _0x37095b=0x0;_0x37095b<_0x2b9a27['length'];_0x37095b++){const _0x14ed3d=_0x2b9a27[_0x37095b];if(!_0x14ed3d['isInContent'])continue;const _0x247fb7=this['_handleCustomCallbackDescription'](_0x14ed3d);if(_0x247fb7){if(null!=_0x14ed3d['subType']){if(_0x3acd47['has'](_0x14ed3d['subType']))continue;_0x3acd47['add'](_0x14ed3d['subType']);}_0x576b21['push'](_0x247fb7);}else{if('attribute'!=_0x14ed3d['type'])'insertion'!=_0x14ed3d['type']&&'deletion'!=_0x14ed3d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x576b21,_0x14ed3d,_0x2b9a27[_0x37095b+0x1]);else{const _0x2b6e55=_0x14ed3d['data']['key'];if(_0x4820d8['has'](_0x2b6e55))continue;_0x4820d8['add'](_0x14ed3d['data']['key']),_0x2b6e55==m?this['_handleRenameSuggestionDescription'](_0x576b21,_0x14ed3d):this['_handleAttributeSuggestionDescription'](_0x576b21,_0x14ed3d);}}}return this['_resolveDescriptionItems'](_0x576b21);}['registerDescriptionCallback'](_0x4d19b7){this['_customCallbacks']['push'](_0x4d19b7);}['registerElementLabel'](_0x2b6e64,_0x566cf4,_0x5f1212=_0x2857cb['normal']){'function'==typeof _0x2b6e64?_0x26c763(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2b6e64,'label':_0x566cf4,'priority':_0x5f1212}):this['_itemLabels']['set'](_0x2b6e64,_0x566cf4);}['registerAttributeLabel'](_0x9d2962,_0x2d87a5){this['_attributeLabels']['set'](_0x9d2962,_0x2d87a5);}['getItemLabel'](_0x1d0fd2,_0x28cd41=0x1){let _0xf5a0c2;for(const _0x57da4c of this['_itemLabelsCallbacks'])if(_0x57da4c['matchingCallback'](_0x1d0fd2)){_0xf5a0c2=_0x57da4c['label'];break;}return _0xf5a0c2||(_0xf5a0c2=this['_itemLabels']['get'](_0x1d0fd2['name'])),_0xf5a0c2?_0xf5a0c2(_0x28cd41):0x1!==_0x28cd41?_0x28cd41+'\x20'+_0x1d0fd2['name']+'s':''+_0x1d0fd2['name'];}['_addDescriptionItems'](_0x236b76,_0x1ff498){const _0x2cdf95=_0x1ff498['getFirstRange']()['getWalker'](),_0xa18f08='insertion'==_0x1ff498['type']?'add':'remove';for(const _0x322f9c of _0x2cdf95){const _0xc93104=_0x322f9c['item'],_0x356359=_0x236b76[_0x236b76['length']-0x1];if(_0xc93104['is']('$textProxy'))_0x356359&&_0x356359['type']['indexOf']('Container')>-0x1&&_0x236b76['pop'](),_0x356359&&'text'==_0x356359['type']?_0x356359[_0xa18f08]+=_0xc93104['data']:_0x236b76['push']({'type':'text','add':'add'==_0xa18f08?_0xc93104['data']:'','remove':'remove'==_0xa18f08?_0xc93104['data']:''});else{if(this['_schema']['isObject'](_0xc93104)){const _0x3fc867=_0xc93104;if(_0x356359&&_0x356359['type']['indexOf']('Container')>-0x1&&_0x236b76['pop'](),'elementEnd'==_0x322f9c['type'])continue;_0x356359&&_0x356359['type']==_0xa18f08+'Object'&&_0x356359['element']['name']==_0x3fc867['name']?_0x356359['quantity']++:_0x236b76['push']({'type':_0xa18f08+'Object','element':_0x3fc867,'quantity':0x1}),_0x2cdf95['skip'](_0x509996=>!('elementEnd'==_0x509996['type']&&_0x509996['item']==_0xc93104));}else{if(this['_schema']['checkChild'](_0xc93104,'$text')||_0xc93104['is']('element','softBreak')){const _0x14662c=_0xc93104;if('add'==_0xa18f08&&'elementStart'==_0x322f9c['type']||'remove'==_0xa18f08&&'elementEnd'==_0x322f9c['type'])continue;if(_0x356359&&-0x1==_0x356359['type']['indexOf']('Container')){'text'==_0x356359['type']&&(_0x356359[_0xa18f08]+='\x0a');continue;}let _0x75dc2b;if(_0x75dc2b='add'==_0xa18f08?_0x14662c['nextSibling']&&!this['_schema']['isObject'](_0x14662c['nextSibling'])?_0x14662c['nextSibling']:null:_0x14662c['previousSibling']&&!this['_schema']['isObject'](_0x14662c['previousSibling'])?_0x14662c['previousSibling']:null,_0x14662c['isEmpty']||_0x75dc2b&&_0x75dc2b['isEmpty']){const _0x5d8dd=_0x75dc2b&&_0x75dc2b['isEmpty']?_0x75dc2b:_0x14662c;_0x356359&&_0x356359['type']==_0xa18f08+'EmptyContainer'&&_0x356359['element']['name']==_0x5d8dd['name']?_0x356359['quantity']++:_0x236b76['push']({'type':_0xa18f08+'EmptyContainer','element':_0x5d8dd,'quantity':0x1});}else _0x236b76['push']({'type':_0xa18f08+'Container','element':_0x14662c});}}}}}['_resolveDescriptionItems'](_0x48447a){const _0xf27c1b=this['_locale'],_0x289626=[],_0x360f82=[],_0x2dba10=[];for(const _0x41ddde of _0x48447a)switch(_0x41ddde['type']){case'text':if(_0x41ddde['add']=_0x41ddde['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x41ddde['remove']=_0x41ddde['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x41ddde['add']&&''!=_0x41ddde['remove']){_0x289626['push']({'type':'replace','content':o(_0xf27c1b,'REPLACE_TEXT',['\x22'+_0x41ddde['remove']+'\x22','\x22'+_0x41ddde['add']+'\x22'])});continue;}if(null!=_0x41ddde['add']['match'](/^ +$/)){_0x289626['push']({'type':'insertion','content':o(_0xf27c1b,'*Insert:*\x20%0',o(_0xf27c1b,'ELEMENT_SPACE',_0x41ddde['add']['length']))});continue;}if(null!=_0x41ddde['remove']['match'](/^ +$/)){_0x289626['push']({'type':'deletion','content':o(_0xf27c1b,'*Remove:*\x20%0',o(_0xf27c1b,'ELEMENT_SPACE',_0x41ddde['remove']['length']))});continue;}if(''!=_0x41ddde['add']){_0x289626['push']({'type':'insertion','content':o(_0xf27c1b,'*Insert:*\x20%0','\x22'+_0x41ddde['add']+'\x22')});continue;}_0x289626['push']({'type':'deletion','content':o(_0xf27c1b,'*Remove:*\x20%0','\x22'+_0x41ddde['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x289626['push']({'type':'insertion','content':o(_0xf27c1b,'*Insert:*\x20%0',this['getItemLabel'](_0x41ddde['element'],_0x41ddde['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x289626['push']({'type':'deletion','content':o(_0xf27c1b,'*Remove:*\x20%0',this['getItemLabel'](_0x41ddde['element'],_0x41ddde['quantity']))});continue;case'addContainer':_0x289626['push']({'type':'insertion','content':o(_0xf27c1b,'*Split:*\x20%0',this['getItemLabel'](_0x41ddde['element'],_0x41ddde['quantity']))});continue;case'removeContainer':_0x289626['push']({'type':'deletion','content':o(_0xf27c1b,'*Merge:*\x20%0',this['getItemLabel'](_0x41ddde['element'],_0x41ddde['quantity']))});continue;case'addFormat':_0x360f82['push'](_0x41ddde['key']);continue;case'removeFormat':_0x2dba10['push'](_0x41ddde['key']);continue;default:_0x289626['push'](_0x41ddde);}if(_0x360f82['length']){const _0x26cb4a=_0x360f82['map'](_0x1530b2=>this['_attributeLabels']['has'](_0x1530b2)?this['_attributeLabels']['get'](_0x1530b2):_0x1530b2)['join'](',\x20');_0x289626['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x26cb4a)});}if(_0x2dba10['length']){const _0x48cef4=_0x2dba10['map'](_0x241e7c=>this['_attributeLabels']['has'](_0x241e7c)?this['_attributeLabels']['get'](_0x241e7c):_0x241e7c)['join'](',\x20');_0x289626['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x48cef4)});}return _0x289626;}['_handleCustomCallbackDescription'](_0x919c72){for(const _0x507f02 of this['_customCallbacks']){const _0x17420a=_0x507f02(_0x919c72);if(_0x17420a&&'type'in _0x17420a)return _0x17420a;}}['_handleAttributeSuggestionDescription'](_0x493876,_0x57c8f9){const _0x439dca=_0x57c8f9['data'],_0x5a33d5=void 0x0===_0x439dca['newValue']?'removeFormat':'addFormat';_0x493876['push']({'type':_0x5a33d5,'key':_0x439dca['key']});}['_handleRenameSuggestionDescription'](_0x4504d8,_0x526a2f){_0x4504d8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x526a2f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4e025e,_0x2495fe,_0x2cd189){if(this['_addDescriptionItems'](_0x4e025e,_0x2495fe),_0x2cd189&&_0x2cd189['getFirstRange']()&&!_0x2495fe['getFirstRange']()['end']['isEqual'](_0x2cd189['getFirstRange']()['start'])){const _0x4aee83=_0x4e025e[_0x4e025e['length']-0x1],_0x1719ad='insertion'==_0x2495fe['type']?'add':'remove';_0x4aee83&&'text'==_0x4aee83['type']&&(_0x4aee83[_0x1719ad]+='\x0a');}}}class U extends _0x20fd26{['afterInit'](){const _0x153be3=this['editor'],_0x31b64a=_0x153be3['plugins']['get']('TrackChangesEditing');_0x153be3['commands']['get']('showAIAssistant')&&_0x31b64a['enableCommand']('showAIAssistant');}}class V extends _0x20fd26{['afterInit'](){const _0x52a82c=this['editor'],_0x1a30af=_0x52a82c['locale'];if(!_0x52a82c['plugins']['has']('AlignmentEditing'))return;const _0x35ecb8=_0x52a82c['plugins']['get']('TrackChangesEditing');_0x35ecb8['enableDefaultAttributesIntegration']('alignment'),_0x35ecb8['registerBlockAttribute']('alignment'),_0x35ecb8['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1a30af,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51049b=this['editor'],_0x45b6bb=_0x51049b['locale'];_0x51049b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15c2ca=>{if('formatBlock'!=_0x15c2ca['type'])return;const {data:_0x1b490b}=_0x15c2ca;if(_0x1b490b&&'alignment'==_0x1b490b['commandName']){const _0x126475=_0x1b490b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x45b6bb,'*Format:*\x20%0',function(_0x5e7783){switch(_0x5e7783){case'left':return o(_0x45b6bb,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x45b6bb,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x45b6bb,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x45b6bb,'FORMAT_JUSTIFY_TEXT');}}(_0x126475))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x20fd26{['afterInit'](){const _0x524d7b=this['editor'],_0xf68669=_0x524d7b['plugins']['get']('TrackChangesEditing'),_0xbba3d6=_0x524d7b['locale'];for(const _0x589e43 of Zt){if(!_0x524d7b['plugins']['has'](_0x589e43))continue;const _0xa33ba0=_0x589e43['slice'](0x0,-0x7)['toLowerCase'](),_0x34bcac='FORMAT_'+_0xa33ba0['toUpperCase']();_0xf68669['enableDefaultAttributesIntegration'](_0xa33ba0),_0xf68669['registerInlineAttribute'](_0xa33ba0),_0xf68669['descriptionFactory']['registerAttributeLabel'](_0xa33ba0,o(_0xbba3d6,_0x34bcac));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22ad9e=this['editor'],_0x2f41b2=_0x22ad9e['locale'],_0x330a08=_0x22ad9e['plugins']['get']('TrackChangesEditing');function _0x396ab0(_0x4b663f,_0x222467){_0x330a08['descriptionFactory']['registerDescriptionCallback'](_0x52dc77=>{if('formatInline'!=_0x52dc77['type'])return;const {data:_0x1ef11b}=_0x52dc77;return _0x1ef11b&&_0x1ef11b['commandName']===_0x4b663f?_0x1ef11b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f41b2,'*Format:*\x20%0',_0x222467)}:{'type':'format','content':o(_0x2f41b2,'*Remove\x20format:*\x20%0',_0x222467)}:void 0x0;});}_0x396ab0('bold',o(_0x2f41b2,'FORMAT_BOLD')),_0x396ab0('italic',o(_0x2f41b2,'FORMAT_ITALIC')),_0x396ab0('underline',o(_0x2f41b2,'FORMAT_UNDERLINE')),_0x396ab0('code',o(_0x2f41b2,'FORMAT_CODE')),_0x396ab0('strikethrough',o(_0x2f41b2,'FORMAT_STRIKETHROUGH')),_0x396ab0('subscript',o(_0x2f41b2,'FORMAT_SUBSCRIPT')),_0x396ab0('superscript',o(_0x2f41b2,'FORMAT_SUPERSCRIPT'));}}class F extends _0x20fd26{['afterInit'](){const _0x3cd7ef=this['editor'],_0x1e12f9=_0x3cd7ef['locale'];if(!_0x3cd7ef['plugins']['has']('BlockQuoteEditing'))return;const _0x3656c5=_0x3cd7ef['plugins']['get']('TrackChangesEditing'),_0x45d991=this['editor']['commands']['get']('blockQuote');_0x3656c5['enableCommand']('blockQuote',(_0xa0a6d9,_0x18cb83={})=>{const _0x2f3402=this['editor']['model']['document']['selection'],_0x3c8679=_0x18cb83&&void 0x0!==_0x18cb83['forceValue']?_0x18cb83['forceValue']:!_0x45d991['value'];let _0x251e09=[];if(_0x3c8679){const _0x138b28=Array['from'](_0x2f3402['getSelectedBlocks']())['filter'](_0x3f24ab=>oo(_0x3f24ab)||function(_0x8580ad,_0x413ec6){const _0x1691b5=_0x413ec6['checkChild'](_0x8580ad['parent'],'blockQuote'),_0x5b8453=_0x413ec6['checkChild'](['$root','blockQuote'],_0x8580ad);return _0x1691b5&&_0x5b8453;}(_0x3f24ab,this['editor']['model']['schema']));_0x251e09=to(_0x138b28,_0x3cd7ef['model']);}else{const _0x52ce3b=Array['from'](_0x2f3402['getSelectedBlocks']())['filter'](_0xf3a03c=>oo(_0xf3a03c));_0x251e09=to(_0x52ce3b,_0x3cd7ef['model']);}_0x3cd7ef['model']['change'](()=>{for(const _0x40f999 of _0x251e09)_0x3656c5['markBlockFormat'](_0x40f999,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3c8679}]});});}),_0x3656c5['descriptionFactory']['registerDescriptionCallback'](_0xaf694d=>{const {data:_0x347b8f}=_0xaf694d;if(_0x347b8f&&'blockQuote'==_0x347b8f['commandName']){const _0x488506=o(_0x1e12f9,'ELEMENT_BLOCK_QUOTE');return _0x347b8f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e12f9,'*Set\x20format:*\x20%0',_0x488506)}:{'type':'format','content':o(_0x1e12f9,'*Remove\x20format:*\x20%0',_0x488506)};}});}}function oo(_0xc991b4){return'blockQuote'==_0xc991b4['parent']['name'];}class L extends _0x20fd26{['afterInit'](){const _0x59bf14=this['editor'],_0x161b4a=_0x59bf14['locale'],_0x36607e=_0x59bf14['plugins']['get']('TrackChangesEditing');_0x59bf14['plugins']['has']('BookmarkEditing')&&(_0x36607e['enableCommand']('insertBookmark'),_0x36607e['enableDefaultAttributesIntegration']('updateBookmark'),_0x36607e['registerBlockAttribute']('bookmarkId'),_0x36607e['descriptionFactory']['registerDescriptionCallback'](_0x9bab70=>{if('insertion'!=_0x9bab70['type']&&'deletion'!=_0x9bab70['type']&&'attribute'!=_0x9bab70['type'])return;const _0x43f4ac=_0x9bab70['getContainedElement']();if(null==_0x43f4ac)return;if(!_0x43f4ac['is']('element','bookmark'))return;const _0x1dbcf2=_0x43f4ac['getAttribute']('bookmarkId');if('insertion'==_0x9bab70['type'])return{'type':'insertion','content':o(_0x161b4a,'*Insert:*\x20%0','\x22'+_0x1dbcf2+'\x22\x20'+o(_0x161b4a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x9bab70['type'])return{'type':'deletion','content':o(_0x161b4a,'*Remove:*\x20%0','\x22'+_0x1dbcf2+'\x22\x20'+o(_0x161b4a,'ELEMENT_BOOKMARK'))};const {data:_0x3ace96}=_0x9bab70;if(!_0x3ace96||'bookmarkId'!=_0x3ace96['key'])return;return{'type':'format','content':o(_0x161b4a,'*Set\x20bookmark:*\x20%0','\x22'+_0x3ace96['newValue']+'\x22')};}));}}class J extends _0x20fd26{['afterInit'](){const _0x400706=this['editor'];_0x400706['plugins']['has']('CaseChange')&&(_0x400706['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x400706['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x400706['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x20fd26{['afterInit'](){const _0x4c9b86=this['editor'];_0x4c9b86['commands']['get']('ckbox')&&_0x4c9b86['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x20fd26{['afterInit'](){const _0x6dcdbe=this['editor'];if(!_0x6dcdbe['plugins']['has']('CodeBlock'))return;const _0x400d9b=_0x6dcdbe['plugins']['get']('TrackChangesEditing'),_0x231429=_0x6dcdbe['locale'],_0x423087=_0x6dcdbe['config']['get']('codeBlock')['languages'],_0x2fbb41=_0x6dcdbe['commands']['get']('codeBlock');_0x400d9b['enableCommand']('indentCodeBlock'),_0x400d9b['enableCommand']('outdentCodeBlock'),_0x400d9b['enableCommand']('codeBlock',(_0x2a8887,_0xc01f49={})=>{const _0x5695ff=_0x6dcdbe['model'],_0x45736a=_0x6dcdbe['model']['document']['selection'],_0x26573c=_0xc01f49&&void 0x0!==_0xc01f49['forceValue']?_0xc01f49['forceValue']:!_0x2fbb41['value'];let _0x5db184;_0xc01f49['language']||(_0xc01f49['language']=_0x423087[0x0]['language']),_0x5db184=_0x26573c?Array['from'](_0x45736a['getSelectedBlocks']())['filter'](_0x52c7fa=>eo(_0x52c7fa)||function(_0x161e0b,_0x481654){if(_0x161e0b['is']('rootElement')||_0x481654['isLimit'](_0x161e0b))return!0x1;return _0x481654['checkChild'](_0x161e0b['parent'],'codeBlock');}(_0x52c7fa,_0x5695ff['schema'])):Array['from'](_0x45736a['getSelectedBlocks']())['filter'](_0x517324=>eo(_0x517324));const _0x36b167=to(_0x5db184,_0x5695ff);_0x5695ff['change'](()=>{for(const _0xa7a0a0 of _0x36b167)_0x400d9b['markBlockFormat'](_0xa7a0a0,{'commandName':'codeBlock','commandParams':[{..._0xc01f49,'forceValue':_0x26573c}],'formatGroupId':'blockName'});});}),(_0x400d9b['descriptionFactory']['registerElementLabel']('codeBlock',_0x26ee01=>o(_0x231429,'ELEMENT_CODE_BLOCK',_0x26ee01)),_0x400d9b['descriptionFactory']['registerDescriptionCallback'](_0x222ed6=>{if('formatBlock'!=_0x222ed6['type'])return;const _0x2e79ce=_0x231429['t'],{data:_0x7e6464}=_0x222ed6;if(!_0x7e6464||'codeBlock'!=_0x7e6464['commandName'])return;const _0x5ee601=_0x7e6464['commandParams'][0x0]['language'],_0x203d1f=_0x2e79ce(_0x423087['find'](_0x251cfe=>_0x251cfe['language']===_0x5ee601)['label'])['toLowerCase']();return _0x7e6464['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x231429,'*Set\x20format:*\x20%0',o(_0x231429,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x203d1f+')')}:{'type':'format','content':o(_0x231429,'*Remove\x20format:*\x20%0',o(_0x231429,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xe2cd6a){return'codeBlock'==_0xe2cd6a['name'];}class z extends _0x20fd26{['afterInit'](){const _0x19eeaf=this['editor'];if(!_0x19eeaf['plugins']['has']('CommentsEditing'))return;_0x19eeaf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x156ebf,_0x490a29,_0x2466ee){const _0x2b0982=[];for(const _0x17a972 of _0x490a29['getItems']())_0x17a972['hasAttribute'](_0x156ebf)&&_0x2b0982['push'](_0x2466ee['createRangeOn'](_0x17a972));return _0x2b0982;}function Ne(_0x15c5ce,_0x3c3ac0,{showActiveMarker:_0x10b886=!0x0}={}){const _0x43ee79=_0x15c5ce['plugins']['get']('TrackChangesEditing');return(_0x5b79a9,_0x2afab9,_0x4b21ab)=>{if(!_0x4b21ab['consumable']['test'](_0x2afab9['markerRange'],_0x5b79a9['name']))return;const _0x26fa60=_0x2afab9['markerRange']['getWalker'](),_0x2c31dd=_0x2afab9['markerRange']['start'],_0x28455c=_0x15c5ce['model']['schema'];let _0x45a3fa=null,_0x2e1cb8=null,_0x1fd6d8=!0x1,_0xf5dcdb=!0x1;for(const _0x41e52b of _0x26fa60){const _0x4875aa=_0x41e52b['item'];_0x1fd6d8=_0x1fd6d8||_0x28455c['isContent'](_0x4875aa);const _0x31bd6c=_0x4b21ab['mapper']['toViewElement'](_0x4875aa);if(_0x31bd6c&&_0x31bd6c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41e52b['type']&&(_0x28455c['isBlock'](_0x4875aa)&&!_0x28455c['isLimit'](_0x4875aa)&&(_0x4875aa['nextSibling']||_0x2c31dd['isAtEnd']?_0x45a3fa&&_0x45a3fa['parent']==_0x4875aa||(_0x45a3fa=_0x4875aa,_0x53797f(_0x41e52b['previousPosition']),_0xf5dcdb=!0x0):_0x2e1cb8=_0x2e1cb8||_0x41e52b['previousPosition']));}function _0x53797f(_0x2e91e9){const {authorId:_0x447c90}=_0x43ee79['_splitMarkerName'](_0x2afab9['markerName']),_0x22c1e0=_0x4b21ab['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c3ac0,'data-author-id':_0x447c90}),_0x38d279=_0x4b21ab['mapper']['toViewPosition'](_0x2e91e9);_0x10b886&&_0x43ee79['activeMarkers']['includes'](_0x2afab9['markerName'])&&_0x4b21ab['writer']['addClass']('ck-suggestion-marker--active',_0x22c1e0),_0x4b21ab['writer']['insert'](_0x38d279,_0x22c1e0),_0x4b21ab['mapper']['bindElementToMarker'](_0x22c1e0,_0x2afab9['markerName']);}_0x1fd6d8||_0xf5dcdb||!_0x2e1cb8||_0x53797f(_0x2e1cb8);};}class K extends _0x20fd26{static get['requires'](){return[_0x2d73ae];}['init'](){const _0x5c19d7=this['editor'],_0x8c2e0a=_0x5c19d7['plugins']['get']('TrackChangesEditing');_0x8c2e0a['enableCommand']('delete');const _0x4f77ab=_0x5c19d7['commands']['get']('deleteForward');_0x8c2e0a['enableCommand']('deleteForward',(_0x95630,_0x1df665={})=>{const _0x1bf8f6=_0x5c19d7['model']['createSelection'](_0x5c19d7['model']['document']['selection']);_0x1bf8f6['isCollapsed']&&_0x5c19d7['model']['modifySelection'](_0x1bf8f6,{'direction':'forward','unit':_0x1df665['unit']});const _0x38402d=_0x1bf8f6['getFirstRange'](),_0x17f2fd=_0x282df5['fromRange'](_0x38402d);let _0x2251ba;_0x95630(_0x1df665),_0x2251ba='$graveyard'==_0x17f2fd['root']['rootName']?_0x5c19d7['model']['createRange'](_0x38402d['start']):_0x5c19d7['model']['createRange'](_0x17f2fd['start'],_0x17f2fd['end']),_0x17f2fd['detach'](),_0x5c19d7['model']['enqueueChange'](_0x4f77ab['buffer']['batch'],_0x205bda=>{_0x4f77ab['buffer']['lock'](),_0x205bda['setSelection'](_0x205bda['createRange'](_0x2251ba['end'])),_0x4f77ab['buffer']['unlock']();});}),_0x5c19d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x5c19d7,'merge'),{'priority':'high'}),_0x5c19d7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5f20b5,_0x1d9656,_0x32ee31)=>{_0x32ee31['options']['showSuggestionHighlights']&&Ne(_0x5c19d7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5f20b5,_0x1d9656,_0x32ee31);},{'priority':'high'}),_0x5c19d7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x295b3f,_0x1c3754,_0x20b207)=>{const _0x25a187=_0x20b207['mapper']['markerNameToElements'](_0x1c3754['markerName']);if(_0x25a187){for(const _0x111a62 of _0x25a187)_0x111a62['is']('uiElement')&&(_0x20b207['mapper']['unbindElementFromMarkerName'](_0x111a62,_0x1c3754['markerName']),_0x20b207['writer']['remove'](_0x111a62));}},{'priority':'high'});}}class W extends _0x20fd26{['afterInit'](){const _0x2b13c3=this['editor'];if(!_0x2b13c3['plugins']['has']('ListEditing'))return;const _0x569a95=_0x2b13c3['locale'],_0x1ae5ad=_0x2b13c3['plugins']['get']('TrackChangesEditing'),_0x5e461d=_0x2b13c3['plugins']['has']('TodoListEditing'),_0x2c902a=!!_0x2b13c3['config']['get']('list.multiBlock');function _0x36077d(_0xadbb40){return{'type':'format','content':''+o(_0x569a95,'*Set\x20format:*\x20%0',_0xadbb40)};}function _0x8689df(_0x3050a5){return{'type':'format','content':''+o(_0x569a95,'*Remove\x20format:*\x20%0',_0x3050a5)};}_0x1ae5ad['enableDefaultAttributesIntegration']('numberedList'),_0x1ae5ad['enableDefaultAttributesIntegration']('bulletedList'),_0x1ae5ad['enableDefaultAttributesIntegration']('customNumberedList'),_0x1ae5ad['enableDefaultAttributesIntegration']('customBulletedList'),_0x1ae5ad['enableDefaultAttributesIntegration']('indentList'),_0x1ae5ad['enableDefaultAttributesIntegration']('outdentList'),_0x1ae5ad['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1ae5ad['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1ae5ad['registerBlockAttribute']('listItemId'),_0x1ae5ad['registerBlockAttribute']('listType'),_0x1ae5ad['registerBlockAttribute']('listIndent'),_0x2c902a&&(_0x1ae5ad['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1ae5ad['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5e461d&&(_0x1ae5ad['enableDefaultAttributesIntegration']('todoList'),_0x1ae5ad['enableDefaultAttributesIntegration']('checkTodoList'),_0x1ae5ad['registerBlockAttribute']('todoListChecked'),_0x1ae5ad['descriptionFactory']['registerDescriptionCallback'](_0x18dd41=>{const {data:_0xf9de0d}=_0x18dd41;if(_0xf9de0d&&'todoListChecked'==_0xf9de0d['key'])return{'type':'format','content':_0xf9de0d['newValue']?o(_0x569a95,'*Check\x20item*'):o(_0x569a95,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x25a4bf=>{if(_0x25a4bf['batch']['isUndo'])return!0x1;let _0x1b2cb0=!0x1;const _0x181500=_0x1ae5ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2853c3=>'todoListChecked'===_0x1ae5ad['_getAttributeKey'](_0x2853c3));for(const _0x4ac870 of _0x181500){'todo'!=_0x4ac870['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1ae5ad['_findSuggestions'](_0x4ac870['getFirstRange'](),'attribute')['find'](_0x3c85ca=>'listType'===_0x1ae5ad['_getAttributeKey'](_0x3c85ca['suggestion']))||(_0x25a4bf['removeMarker'](_0x4ac870['getFirstMarker']()),_0x1b2cb0=!0x0));}return _0x1b2cb0;})),_0x1ae5ad['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x569a95,'FORMAT_INDENT'));const _0x295073={'type':'format','content':''};_0x1ae5ad['descriptionFactory']['registerDescriptionCallback'](_0xdcae0a=>{const {data:_0x7a20c0}=_0xdcae0a;if(!_0x7a20c0||'listType'!=_0x7a20c0['key'])return;let _0x475143=_0xdcae0a['head'];for(;_0x475143;){if(_0x475143['data']&&(('listStyle'==_0x475143['data']['key']||'listMarkerStyle'==_0x475143['data']['key'])&&(_0x475143['data']['newValue']&&'default'!=_0x475143['data']['newValue']||'default'!=_0x475143['data']['oldValue']&&!_0x7a20c0['newValue'])||!_0x2c902a&&_0x475143['data']['key']==m))return _0x295073;_0x475143=_0x475143['next'];}if(null==_0x7a20c0['newValue'])switch(_0x7a20c0['oldValue']){case'bulleted':return _0x8689df(o(_0x569a95,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8689df(o(_0x569a95,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8689df(o(_0x569a95,'ELEMENT_TODO_LIST'));}switch(_0x7a20c0['newValue']){case'bulleted':return _0x36077d(o(_0x569a95,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36077d(o(_0x569a95,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36077d(o(_0x569a95,'ELEMENT_TODO_LIST'));}}),_0x1ae5ad['descriptionFactory']['registerDescriptionCallback'](_0x47f9ae=>{const {data:_0x4127cc}=_0x47f9ae;if(_0x4127cc&&'listIndent'==_0x4127cc['key'])return null==_0x4127cc['newValue']||null==_0x4127cc['oldValue']&&0x0==_0x4127cc['newValue']?_0x295073:void 0x0;}),_0x1ae5ad['descriptionFactory']['registerDescriptionCallback'](_0x2efcae=>{if('attribute'!=_0x2efcae['type'])return;const {data:_0x44a8b7}=_0x2efcae;if(!_0x44a8b7||'listItemId'!=_0x44a8b7['key'])return;const _0x21ad5c=Te(_0x2efcae);return'newValue'==_0x21ad5c?{'type':'format','content':o(_0x569a95,'*Merge:*\x20list\x20item')}:'oldValue'==_0x21ad5c?{'type':'format','content':o(_0x569a95,'*Split:*\x20list\x20item')}:_0x295073;}),_0x2b13c3['model']['document']['registerPostFixer'](_0x15a6a1=>this['listItemIdFixer'](_0x15a6a1)),_0x2b13c3['model']['document']['registerPostFixer'](_0x14d6d7=>this['noTrackChangesFixer'](_0x14d6d7)),_0x2b13c3['model']['document']['on']('change:data',(_0x598236,_0x3c611a)=>{if(_0x3c611a['isUndo']||!_0x3c611a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4fc802){if(_0x4fc802['batch']['isUndo']||!_0x4fc802['batch']['isLocal'])return!0x1;let _0x46bc81=!0x1;const _0x34f0fc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12b07f=>_0x12b07f['data']&&'listItemId'==_0x12b07f['data']['key'])['filter'](_0x2b86a5=>_0x2b86a5['data']['newValue']&&_0x2b86a5['data']['oldValue']);for(const _0x444473 of _0x34f0fc)Te(_0x444473)||(_0x4fc802['removeMarker'](_0x444473['getFirstMarker']()),_0x46bc81=!0x0);return _0x46bc81;}['noTrackChangesFixer'](_0x27f401){if(_0x27f401['batch']['isUndo']||!_0x27f401['batch']['isLocal'])return!0x1;const _0x14c49a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x14c49a['trackChangesCommand']['value'])return!0x1;let _0x1a1833=!0x1;const _0x5c0003=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x34e854=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4f3b12=>'attribute'==_0x4f3b12['type'])['filter'](_0x25680f=>_0x5c0003['includes'](_0x25680f['attributeKey']));if(0x0==_0x34e854['length'])return _0x1a1833;for(const _0x53cbb3 of _0x34e854){const _0x1521f9=_0x14c49a['_findSuggestions'](_0x53cbb3['range'],'attribute')['filter'](_0x341901=>!_0x341901['meta']['isNextTo'])['map'](_0xab767=>_0xab767['suggestion'])['filter'](_0x1bda97=>{const _0xee18e6=_0x14c49a['_getAttributeKey'](_0x1bda97);return _0x5c0003['includes'](_0xee18e6);});if(_0x1521f9['length']){for(const _0x309129 of _0x1521f9)_0x27f401['removeMarker'](_0x309129['getFirstMarker']());_0x1a1833=!0x0;}}return _0x1a1833;}['assureChains'](){const _0x509871=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e5e8f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2e0a5d;const _0x2a2746=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x45ae34=>{if(_0x45ae34['data']['oldRange']||!_0x45ae34['data']['newRange'])return null;if(!_0x45ae34['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5bbb23}=_0x509871['_splitMarkerName'](_0x45ae34['name']);if(!_0x509871['hasSuggestion'](_0x5bbb23))return null;const _0x53e0b6=_0x509871['getSuggestion'](_0x5bbb23);return _0x3e5e8f['includes'](_0x53e0b6['data']['key']);})['map'](_0x5d6baf=>{const {id:_0x3b49e3}=_0x509871['_splitMarkerName'](_0x5d6baf['name']),_0x566163=_0x509871['getSuggestion'](_0x3b49e3);return _0x2e0a5d=_0x566163['attributes']['groupId'],_0x566163['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a2746['size'])return;const _0x26b137=_0x509871['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3086fd=>'attribute'==_0x3086fd['type']&&_0x3086fd['data']&&_0x3e5e8f['includes'](_0x3086fd['data']['key'])&&_0x3086fd['attributes']['groupId']!=_0x2e0a5d)['map'](_0x1c290a=>({'listItem':_0x1c290a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1c290a['attributes']['groupId']})),_0x17b291=new Set();for(const {groupId:_0x446a5a,listItem:_0x49c293}of _0x26b137)_0x2a2746['has'](_0x49c293)&&_0x17b291['add'](_0x446a5a);for(const _0x10864b of _0x509871['getSuggestions']())_0x17b291['has'](_0x10864b['attributes']['groupId'])&&_0x10864b['setAttribute']('groupId',_0x2e0a5d);}['_supportLegacySuggestions'](){const _0x1be6d4=this['editor'],_0x541893=_0x1be6d4['locale'],_0x4e424b=_0x1be6d4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4e424b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2556a2,_0x1a0a01){const _0x245034=[];for(let _0x11d334 of _0x2556a2)_0x11d334['start']['nodeAfter']===_0x11d334['end']['parent']&&(_0x11d334=_0x1be6d4['model']['createRange'](_0x1be6d4['model']['createPositionAt'](_0x11d334['start']['nodeAfter'],0x0))),_0x245034['push'](_0x11d334);_0x1be6d4['model']['change'](_0x22c7ab=>{const _0x4b154d=_0x1be6d4['model']['document']['selection'],_0xb2c7a1=Array['from'](_0x4b154d['getRanges']())['map'](_0x3dc50a=>_0x282df5['fromRange'](_0x3dc50a));_0x22c7ab['setSelection'](_0x245034),_0x1be6d4['commands']['get'](_0x1a0a01['commandName'])['refresh'](),_0x1a0a01['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1be6d4['execute'](_0x1a0a01['commandName'],..._0x1a0a01['commandParams']),_0x22c7ab['setSelection'](_0xb2c7a1);for(const _0x34ab72 of _0xb2c7a1)_0x34ab72['detach']();});}),_0x4e424b['descriptionFactory']['registerElementLabel'](function(_0x33f873){const _0x3b7cf0=!_0x1be6d4['model']['schema']['isObject'](_0x33f873),_0x30a081=_0x33f873['previousSibling'],_0x561785=_0x33f873['nextSibling'],_0x43ab23=_0x33f873['getAttribute']('listItemId'),_0x567cb3=!_0x30a081||_0x30a081['getAttribute']('listItemId')!==_0x43ab23,_0x37e4ce=!_0x561785||_0x561785['getAttribute']('listItemId')!==_0x43ab23;return _0x3b7cf0&&Boolean(_0x43ab23)&&_0x567cb3&&_0x37e4ce;},_0x1d1549=>o(_0x541893,'ELEMENT_LIST_ITEM',_0x1d1549));}['_registerLegacyDescription'](){const _0x143aae=this['editor'],_0x1ae165=_0x143aae['locale'];function _0x39c4b7(_0x243e96){const _0x46eb1c=_0x143aae['commands']['get']('bulletedList')['value'],_0x193987=_0x143aae['commands']['get']('numberedList')['value'];return'numberedList'===_0x243e96?_0x46eb1c:_0x193987;}_0x143aae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x577a1f){if('formatBlock'!=_0x577a1f['type'])return;const {data:_0xe8bc3}=_0x577a1f;if(!_0xe8bc3)return;let _0xeedf6d,_0x185da2,_0x4421bc,_0x5a0d75;switch(_0xe8bc3['commandName']){case'bulletedList':_0x4421bc=_0xe8bc3['commandParams'][0x0]['forceValue'],_0x5a0d75=_0x39c4b7(_0xe8bc3['commandName']),_0xeedf6d=_0x4421bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5a0d75&&_0x143aae['config']['get']('list.multiBlock')||(_0xeedf6d='*Change\x20to:*\x20%0'),_0x185da2={'type':'format','content':o(_0x1ae165,_0xeedf6d,o(_0x1ae165,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4421bc=_0xe8bc3['commandParams'][0x0]['forceValue'],_0x5a0d75=_0x39c4b7(_0xe8bc3['commandName']),_0xeedf6d=_0x4421bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5a0d75&&_0x143aae['config']['get']('list.multiBlock')||(_0xeedf6d='*Change\x20to:*\x20%0'),_0x185da2={'type':'format','content':o(_0x1ae165,_0xeedf6d,o(_0x1ae165,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xeedf6d='*Indent:*\x20%0',_0x185da2={'type':'format','content':o(_0x1ae165,_0xeedf6d,o(_0x1ae165,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xeedf6d=function(_0x2e9498){const _0x2f9993=_0x2e9498['getFirstRange']();let _0x8bad5e=_0x2f9993['start']['nodeAfter'];for(;_0x8bad5e&&_0x2f9993['containsItem'](_0x8bad5e);){if(_0x8bad5e['getAttribute']('listIndent')>0x0)return!0x1;_0x8bad5e=_0x8bad5e['nextSibling'];}return!0x0;}(_0x577a1f)?o(_0x1ae165,'*Format:*\x20remove\x20from\x20%0',o(_0x1ae165,function(_0x388812){return'ELEMENT_'+_0x388812['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x577a1f))):o(_0x1ae165,'*Outdent:*\x20%0',o(_0x1ae165,'ELEMENT_LIST_ITEM')),_0x185da2={'type':'format','content':_0xeedf6d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xe8bc3['multipleBlocks']&&(_0xeedf6d='*Merge:*\x20%0',_0x185da2={'type':'deletion','content':o(_0x1ae165,_0xeedf6d,o(_0x1ae165,'ELEMENT_LIST_ITEM'))});}return _0x185da2;});}}function Te(_0x3ae782){let _0x5c51de=_0x3ae782['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5c51de;){const _0x376c43=_0x5c51de['getAttribute']('listItemId');if(!_0x376c43)return!0x1;if(_0x376c43==_0x3ae782['data']['newValue'])return'newValue';if(_0x376c43==_0x3ae782['data']['oldValue'])return'oldValue';_0x5c51de=_0x5c51de['previousSibling'];}return!0x1;}class ye extends _0x20fd26{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xa50bfd=this['editor']['config']['get']('list.properties'),_0xb61f6c=this['editor']['plugins']['get']('TrackChangesEditing');_0xa50bfd['styles']&&(_0xb61f6c['enableDefaultAttributesIntegration']('listStyle'),_0xb61f6c['registerBlockAttribute']('listStyle')),_0xa50bfd['reversed']&&(_0xb61f6c['enableDefaultAttributesIntegration']('listReversed'),_0xb61f6c['registerBlockAttribute']('listReversed')),_0xa50bfd['startIndex']&&(_0xb61f6c['enableDefaultAttributesIntegration']('listStart'),_0xb61f6c['registerBlockAttribute']('listStart'));const _0x31f7d5={'type':'format','content':''};_0xb61f6c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x540ae7=this['editor']['locale'];_0xb61f6c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x540ae7,'FORMAT_LIST_REVERSED')),_0xb61f6c['descriptionFactory']['registerDescriptionCallback'](_0x2cfcc7=>{const {data:_0x4a3681}=_0x2cfcc7;if(_0x4a3681&&'listReversed'==_0x4a3681['key'])return null==_0x4a3681['newValue']||0x0==_0x4a3681['newValue']&&null==_0x4a3681['oldValue']?_0x31f7d5:void 0x0;}),_0xb61f6c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x540ae7,'FORMAT_LIST_START')),_0xb61f6c['descriptionFactory']['registerDescriptionCallback'](_0xaaa5ac=>{const {data:_0x2471c8}=_0xaaa5ac;if(_0x2471c8&&'listStart'==_0x2471c8['key'])return null==_0x2471c8['newValue']||0x1==_0x2471c8['newValue']&&null==_0x2471c8['oldValue']?_0x31f7d5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x525732=>{if(_0x525732['batch']['isUndo'])return!0x1;let _0x20136d=!0x1;const _0x16e8e3=_0xb61f6c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d5c10=>{const _0x38a475=_0xb61f6c['_getAttributeKey'](_0x2d5c10);return'listStart'==_0x38a475||'listReversed'==_0x38a475;});for(const _0x2e1506 of _0x16e8e3){const _0x32711b=_0x2e1506['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x32711b||'customNumbered'==_0x32711b)continue;_0xb61f6c['_findSuggestions'](_0x2e1506['getFirstRange'](),'attribute')['find'](_0x5b392d=>'listType'==_0xb61f6c['_getAttributeKey'](_0x5b392d['suggestion']))||(_0x525732['removeMarker'](_0x2e1506['getFirstMarker']()),_0x20136d=!0x0);}return _0x20136d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xa0501f){const _0x54a6b0=this['editor']['locale'],{data:_0x3e86d8}=_0xa0501f,_0xb435f4={'type':'format','content':''};if(!_0x3e86d8||'listStyle'!=_0x3e86d8['key'])return;if(!_0x3e86d8['oldValue'])return'default'==_0x3e86d8['newValue']?_0xb435f4:{'type':'format','content':''+o(_0x54a6b0,'*Set\x20format:*\x20%0',o(_0x54a6b0,this['_getTranslationKeyForListStyle'](_0x3e86d8['newValue'])))};if(!_0x3e86d8['newValue']){if('default'==_0x3e86d8['oldValue'])return _0xb435f4;let _0x522b81=_0xa0501f['head'];for(;_0x522b81;){if(_0x522b81['data']&&'listType'==_0x522b81['data']['key']&&_0x522b81['data']['newValue'])return _0xb435f4;_0x522b81=_0x522b81['next'];}return{'type':'format','content':''+o(_0x54a6b0,'*Remove\x20format:*\x20%0',o(_0x54a6b0,this['_getTranslationKeyForListStyle'](_0x3e86d8['oldValue'])))};}if('default'!=_0x3e86d8['newValue'])return{'type':'format','content':''+o(_0x54a6b0,'*Set\x20format:*\x20%0',o(_0x54a6b0,this['_getTranslationKeyForListStyle'](_0x3e86d8['newValue'])))};let _0x104cba=_0xa0501f['head'];for(;_0x104cba;){if(_0x104cba['data']&&'listType'==_0x104cba['data']['key']&&_0x104cba['data']['newValue']&&_0x104cba['data']['oldValue'])return _0xb435f4;_0x104cba=_0x104cba['next'];}return{'type':'format','content':o(_0x54a6b0,'*Set\x20format:*\x20%0',o(_0x54a6b0,'ELEMENT_'+_0xa0501f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x277110=this['editor'],_0x5e51fb=_0x277110['locale'];_0x277110['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x111d54=>{if('formatBlock'!=_0x111d54['type'])return;const {data:_0x331f3d}=_0x111d54;if(!_0x331f3d)return;let _0x1e9627,_0x2ce469;switch(_0x331f3d['commandName']){case'listStyle':_0x1e9627='*Change\x20to:*\x20%0',_0x2ce469={'type':'format','content':o(_0x5e51fb,_0x1e9627,o(_0x5e51fb,this['_getTranslationKeyForListStyle'](_0x331f3d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1e9627=_0x331f3d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ce469={'type':'format','content':o(_0x5e51fb,_0x1e9627)};break;case'listStart':_0x1e9627='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ce469={'type':'format','content':o(_0x5e51fb,_0x1e9627,_0x331f3d['commandParams'][0x0]['startIndex'])};}return _0x2ce469;});}['_getTranslationKeyForListStyle'](_0x47ca00){return'ELEMENT_'+function(_0x6d3f77){if(Se['includes'](_0x6d3f77))return'bulleted';if(_e['includes'](_0x6d3f77))return'numbered';return null;}(_0x47ca00)['toUpperCase']()+'_LIST_'+_0x47ca00['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x20fd26{static get['requires'](){return[_0x332d24];}['init'](){const _0x26b244=this['editor'],_0x3c9374=_0x26b244['plugins']['get']('TrackChangesEditing'),_0x335fba=_0x26b244['commands']['get']('enter');_0x3c9374['enableCommand']('enter',()=>{_0x26b244['model']['change'](_0x15d51f=>{const _0x29ebae=_0x26b244['model']['document']['selection'],_0xf15e02=_0x29ebae['getFirstPosition'](),_0x38eafb=_0x282df5['fromRange'](_0x29ebae['getFirstRange']());if(_0x335fba['enterBlock'](_0x15d51f)){const _0x3bdf2d=_0x26b244['model']['createPositionAt'](_0xf15e02['parent']['nextSibling'],0x0),_0xf8f9e9=_0x15d51f['createRange'](_0xf15e02,_0x3bdf2d);_0x3c9374['markInsertion'](_0xf8f9e9);}else _0x15d51f['setSelection'](_0x15d51f['createRange'](_0x38eafb['end']));_0x38eafb['detach'](),_0x335fba['fire']('afterExecute',{'writer':_0x15d51f});});}),_0x26b244['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x26b244,'split'),{'priority':'high'}),_0x26b244['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x54277a,_0x710bc7,_0x133653)=>{const _0x24dd86=_0x133653['mapper']['markerNameToElements'](_0x710bc7['markerName']);if(_0x24dd86){for(const _0x5da5e9 of _0x24dd86)_0x5da5e9['hasClass']('ck-suggestion-marker-split')&&(_0x133653['mapper']['unbindElementFromMarkerName'](_0x5da5e9,_0x710bc7['markerName']),_0x133653['writer']['remove'](_0x5da5e9));}},{'priority':'high'}),_0x26b244['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f96e1,_0xae18a4,_0x2787af)=>{_0x2787af['options']['showSuggestionHighlights']&&Ne(_0x26b244,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3f96e1,_0xae18a4,_0x2787af);},{'priority':'high'});}}class Y extends _0x20fd26{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xc47c99=this['editor']['plugins']['get']('TrackChangesEditing');_0xc47c99['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xc47c99['enableCommand']('findNext'),_0xc47c99['enableCommand']('findPrevious'),_0xc47c99['enableCommand']('replace'),_0xc47c99['enableCommand']('replaceAll');}['handleFindCommand'](_0x4f3601,_0xafc28c,_0x318a16={}){const _0x246afc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4f3601(_0x5aacab=>{let _0xb2ea32=('string'==typeof _0xafc28c?_0x246afc['findByTextCallback'](_0xafc28c,_0x318a16):_0xafc28c)(_0x5aacab);Array['isArray'](_0xb2ea32)&&(_0xb2ea32={'results':_0xb2ea32,'searchText':'string'==typeof _0xafc28c?_0xafc28c:''});const _0x3f4563=_0xb2ea32['results']['filter'](_0x373300=>!0x1===this['_isInDeletionRange'](_0x373300,_0x5aacab['item']));return{..._0xb2ea32,'results':_0x3f4563};},_0x318a16);}['_isInDeletionRange'](_0x2a06aa,_0x8b185a){const _0x1d0c89=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8b185a,_0x2a06aa['start']),this['editor']['model']['createPositionAt'](_0x8b185a,_0x2a06aa['end']));for(const _0x3e57ed of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1d0c89['getIntersection'](_0x3e57ed['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x20fd26{['afterInit'](){const _0x53476f=this['editor']['locale'],_0x4c3f2e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4abc3d,commandName:_0x3f3d85}of ro)this['editor']['plugins']['has'](_0x4abc3d)&&(_0x4c3f2e['enableDefaultAttributesIntegration'](_0x3f3d85),_0x4c3f2e['registerInlineAttribute'](_0x3f3d85));_0x4c3f2e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x53476f,'FORMAT_FONT_SIZE')),_0x4c3f2e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x53476f,'FORMAT_FONT_FAMILY')),_0x4c3f2e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x53476f,'FORMAT_FONT_COLOR')),_0x4c3f2e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x53476f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a9ca0=this['editor'],_0x333ea8=_0x1a9ca0['locale'];_0x1a9ca0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1118ab=>{const _0x4a1d57=_0x333ea8['t'];if('formatInline'!=_0x1118ab['type'])return;const {data:_0x239d9e}=_0x1118ab;if(null!=_0x239d9e){if('fontSize'==_0x239d9e['commandName']){const _0x2d57ee=_0x239d9e['commandParams'][0x0]['value'];if(_0x2d57ee){const _0x545470=_0x4a1d57(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x46950c=>_0x46950c['model']==_0x2d57ee)['title'])['toLowerCase']();return{'type':'format','content':o(_0x333ea8,'*Set\x20font\x20size:*\x20%0',_0x545470)};}return{'type':'format','content':o(_0x333ea8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x239d9e['commandName']){const _0xa91648=_0x239d9e['commandParams'][0x0]['value'];return _0xa91648?{'type':'format','content':o(_0x333ea8,'*Set\x20font\x20family:*\x20%0',_0xa91648)}:{'type':'format','content':o(_0x333ea8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x239d9e['commandName']){const _0xff3c1d=_0x239d9e['commandParams'][0x0]['value'];if(_0xff3c1d){const _0x16776c=_0x581a6a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x48e605=>_0x48e605['model']==_0xff3c1d);let _0xf7a6f3=_0xff3c1d,_0x42841f='';return _0x16776c&&(_0xf7a6f3=_0x16776c['label'],_0x42841f=_0x4a1d57(_0xf7a6f3)['toLowerCase']()),{'type':'format','content':o(_0x333ea8,'*Set\x20font\x20color:*\x20%0',_0x42841f)['trim'](),'color':{'value':_0xff3c1d,'title':_0x42841f||_0xf7a6f3}};}return{'type':'format','content':o(_0x333ea8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x239d9e['commandName']){const _0x5dd141=_0x239d9e['commandParams'][0x0]['value'];if(_0x5dd141){const _0x324cad=_0x581a6a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3a7bfd=>_0x3a7bfd['model']==_0x5dd141);let _0x542e7f=_0x5dd141,_0x1db028='';return _0x324cad&&(_0x542e7f=_0x324cad['label'],_0x1db028=_0x4a1d57(_0x542e7f)['toLowerCase']()),{'type':'format','content':o(_0x333ea8,'*Set\x20font\x20background\x20color:*\x20%0',_0x1db028)['trim'](),'color':{'value':_0x5dd141,'title':_0x1db028||_0x542e7f}};}return{'type':'format','content':o(_0x333ea8,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x20fd26{['afterInit'](){const _0x41fcad=this['editor'],_0x1bcf60=_0x41fcad['plugins']['get']('TrackChangesEditing'),_0x1c239=_0x41fcad['commands']['get']('copyFormat'),_0x165fd3=_0x41fcad['commands']['get']('pasteFormat');_0x1c239&&_0x165fd3&&(_0x1bcf60['enableDefaultAttributesIntegration']('pasteFormat'),_0x1bcf60['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5ab32c=this['editor'],_0x49bf41=_0x5ab32c['locale'];_0x5ab32c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x555eff=>{if('formatBlock'!=_0x555eff['type']&&'formatInline'!=_0x555eff['type'])return;const {data:_0x140fa9}=_0x555eff;if(_0x140fa9&&'pasteFormat'===_0x140fa9['commandName']){const _0x511b81=[],_0x33e850=_0x140fa9['commandParams'][0x0];for(const [_0x3b2756,_0x1e118c]of Object['entries'](_0x33e850))_0x511b81['push'](so(_0x5ab32c,_0x3b2756,_0x1e118c));return _0x511b81['length']?{'type':'format','content':o(_0x49bf41,'*Set\x20format\x20to:*\x20%0',_0x511b81['join'](',\x20'))}:{'type':'format','content':o(_0x49bf41,'*Remove\x20all\x20formatting*')};}});}}function so(_0x383929,_0x3c8128,_0xb12cd8){const _0x4f4215=_0x383929['locale']['t'],_0x5ea98b=_0x3c8128['split'](/(?=[A-Z])/)['join']('\x20'),_0x2166cb=_0x4f4215(_0x5ea98b['charAt'](0x0)['toUpperCase']()+_0x5ea98b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xb12cd8)return _0x2166cb;if('fontColor'===_0x3c8128||'fontBackgroundColor'===_0x3c8128){const _0x3ade3f=_0x581a6a(_0x383929['config']['get']('fontColor.colors'))['find'](_0x3a0e0a=>_0x3a0e0a['model']==_0xb12cd8);return _0x2166cb+'\x20('+(_0x3ade3f?_0x4f4215(_0x3ade3f['label'])['toLowerCase']():_0xb12cd8)+')';}if('fontSize'===_0x3c8128&&isNaN(parseFloat(_0xb12cd8))){const _0x3462ba=_0x383929['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x383929['config']['get']('fontSize.options'))['find'](_0x220ac3=>_0x220ac3['model']==_0xb12cd8);return _0x2166cb+'\x20('+(_0x3462ba?_0x4f4215(_0x3462ba['title'])['toLowerCase']():_0xb12cd8)+')';}return _0x2166cb+'\x20('+_0xb12cd8+')';}class nt extends _0x20fd26{['_headingOptions'];['afterInit'](){const _0x20b928=this['editor'];if(!_0x20b928['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x20b928['config']['get']('heading.options');const _0x336eac=_0x20b928['locale'],_0x168c27=_0x20b928['plugins']['get']('TrackChangesEditing');_0x168c27['enableDefaultAttributesIntegration']('heading');for(const _0x259dea of this['_headingOptions'])'paragraph'!=_0x259dea['model']&&_0x168c27['descriptionFactory']['registerElementLabel'](_0x259dea['model'],_0x1d6f25=>{const _0x5689e0=this['_getHeadingLevel'](_0x259dea['model']);return null!==_0x5689e0?_0x30bf0b(_0x1d6f25,_0x5689e0):_0x503ee3(_0x1d6f25,_0x259dea['title']);});function _0x30bf0b(_0x52114e,_0x5de6da){return o(_0x336eac,'ELEMENT_HEADING',[_0x52114e,_0x5de6da]);}function _0x503ee3(_0x93b4f6,_0x59442b){return o(_0x336eac,'ELEMENT_HEADING_CUSTOM',[_0x93b4f6,_0x59442b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x378ecc=this['editor'],_0x52f40e=_0x378ecc['locale'];function _0x8e5294(_0x6ee89a,_0x2cacec){return o(_0x52f40e,'ELEMENT_HEADING_CUSTOM',[_0x6ee89a,_0x2cacec]);}_0x378ecc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x560219=>{if('formatBlock'!=_0x560219['type'])return;const {data:_0x272947}=_0x560219;if(_0x272947&&'heading'==_0x272947['commandName']){const _0x4a1c43=_0x272947['commandParams'][0x0]['value'],_0x3c1d42=this['_getHeadingLevel'](_0x4a1c43);if(null!==_0x3c1d42)return{'type':'format','content':o(_0x52f40e,'*Change\x20to:*\x20%0',(_0x38c3b1=0x1,_0x5c7863=_0x3c1d42,o(_0x52f40e,'ELEMENT_HEADING',[_0x38c3b1,_0x5c7863])))};const _0x428587=this['_headingOptions']['find'](_0x481ac0=>_0x481ac0['model']===_0x4a1c43)['title'];return{'type':'format','content':o(_0x52f40e,'*Change\x20to:*\x20%0',_0x8e5294(0x1,_0x428587))};}var _0x38c3b1,_0x5c7863;});}['_getHeadingLevel'](_0x39bbf1){const _0x4cade7=_0x39bbf1['match'](/^heading(\d+)/);if(_0x4cade7)return _0x4cade7[0x1];const _0x478132=this['_headingOptions']?.['find'](_0x5d3718=>_0x5d3718['model']==_0x39bbf1);if(_0x478132&&_0x478132['view']){const _0x198869=_0x478132['view'],_0x59f92e=(_0x198869['name']??_0x198869)['match'](/^h(\d+)/);if(_0x59f92e)return _0x59f92e[0x1];}return null;}}class it extends _0x20fd26{['afterInit'](){const _0x107c8f=this['editor'];if(!_0x107c8f['plugins']['has']('HighlightEditing'))return;const _0x1a5838=_0x107c8f['plugins']['get']('TrackChangesEditing'),_0x51bf6b=_0x107c8f['locale'];_0x1a5838['enableDefaultAttributesIntegration']('highlight'),_0x1a5838['registerInlineAttribute']('highlight'),_0x1a5838['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x51bf6b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x114cad=this['editor'],_0x37f16a=_0x114cad['locale'];_0x114cad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a70b8=>{if('formatInline'!=_0x3a70b8['type'])return;const {data:_0x1c2a15}=_0x3a70b8;if(_0x1c2a15&&'highlight'==_0x1c2a15['commandName']){const _0x4c8ab4=_0x37f16a['t'],_0x28ce96=_0x1c2a15['commandParams'][0x0]['value'];if(_0x28ce96){const _0x35bff9=_0x114cad['config']['get']('highlight.options')['find'](_0x2f8eeb=>_0x2f8eeb['model']==_0x28ce96),_0x43614d=_0x4c8ab4(_0x35bff9['title'])['toLowerCase']();return{'type':'format','content':o(_0x37f16a,'*Set\x20highlight:*\x20%0',_0x43614d),'color':{'value':_0x35bff9['color'],'title':_0x35bff9['title']}};}return{'type':'format','content':o(_0x37f16a,'*Remove\x20highlight*',o(_0x37f16a,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x20fd26{['afterInit'](){const _0x171965=this['editor'];if(!_0x171965['plugins']['has']('HorizontalLineEditing'))return;_0x171965['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x581c71=_0x171965['plugins']['get']('TrackChangesEditing'),_0x29bd59=_0x171965['locale'];_0x581c71['descriptionFactory']['registerElementLabel']('horizontalLine',_0x340f0d=>o(_0x29bd59,'ELEMENT_HORIZONTAL_LINE',_0x340f0d)),_0x171965['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4a3d50,{writer:_0x5aaf7c,options:_0x11d109})=>{if(!_0x11d109['showSuggestionHighlights'])return null;const _0x4f13ff=_0x5aaf7c['createContainerElement']('div'),_0x40fb4e=_0x5aaf7c['createEmptyElement']('hr');return _0x5aaf7c['addClass']('ck-horizontal-line',_0x4f13ff),_0x5aaf7c['insert'](_0x5aaf7c['createPositionAt'](_0x4f13ff,0x0),_0x40fb4e),_0x4f13ff;},'converterPriority':'high'});}}class st extends _0x20fd26{['afterInit'](){const _0x166379=this['editor'];if(!_0x166379['plugins']['has']('HtmlEmbed'))return;const _0x43bbe1=_0x166379['plugins']['get']('TrackChangesEditing'),_0x43ac13=_0x166379['locale'];_0x43bbe1['descriptionFactory']['registerElementLabel']('rawHtml',_0x2168b7=>o(_0x43ac13,'ELEMENT_HTML_EMBED',_0x2168b7)),_0x43bbe1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x43bbe1['registerBlockAttribute']('value'),_0x43bbe1['descriptionFactory']['registerDescriptionCallback'](_0x54ede3=>{if('attribute'!=_0x54ede3['type'])return;const {data:_0x95f5b6}=_0x54ede3;if(_0x95f5b6&&'value'==_0x95f5b6['key']&&_0x54ede3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x23ecd4=o(_0x43ac13,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x43ac13,'*Change\x20%0\x20content*',_0x23ecd4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3efdf8=this['editor'],_0x30e8eb=_0x3efdf8['locale'];_0x3efdf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f00ba=>{if('formatBlock'!=_0x5f00ba['type'])return;const {data:_0x424740}=_0x5f00ba;if(_0x424740&&'htmlEmbed'==_0x424740['commandName']){const _0x42c305=o(_0x30e8eb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x30e8eb,'*Change\x20%0\x20content*',_0x42c305)};}});}}class ot extends _0x20fd26{['afterInit'](){const _0xc24a17=this['editor'];if(!_0xc24a17['plugins']['has']('ImageEditing'))return;const _0x34c751=_0xc24a17['plugins']['get']('TrackChangesEditing'),_0x10c394=_0xc24a17['plugins']['get']('ImageUtils'),_0x48f73c=_0xc24a17['locale'];_0x34c751['enableCommand']('insertImage'),_0x34c751['descriptionFactory']['registerElementLabel']('imageBlock',_0x33f113=>o(_0x48f73c,'ELEMENT_IMAGE',_0x33f113)),_0x34c751['descriptionFactory']['registerElementLabel']('imageInline',_0x1a7c0c=>o(_0x48f73c,'ELEMENT_INLINE_IMAGE',_0x1a7c0c)),_0x34c751['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x48f73c,'ELEMENT_CAPTION')),_0xc24a17['plugins']['has']('ImageUploadEditing')&&_0x34c751['enableCommand']('uploadImage'),_0xc24a17['plugins']['has']('ImageBlockEditing')&&_0xc24a17['plugins']['has']('ImageInlineEditing')&&(_0x34c751['enableCommand']('imageTypeInline',(_0x42ec9a,_0x533ad8)=>{const _0x30deea=_0x10c394['getClosestSelectedImageElement'](_0xc24a17['model']['document']['selection']);_0xc24a17['model']['change'](()=>{_0x34c751['markBlockFormat'](_0x30deea,{'commandName':'imageTypeInline','commandParams':[_0x533ad8]},[],'convertBlockImageToInline');});}),_0x34c751['enableCommand']('imageTypeBlock',(_0x33545a,_0x40fdd3)=>{_0xc24a17['model']['change'](_0x4a7082=>{let _0x4300ec=_0x10c394['getClosestSelectedImageElement'](_0xc24a17['model']['document']['selection']),_0x3aec21=_0x4a7082['createRangeOn'](_0x4300ec);const _0xf0dbb8=_0x5d6f47['fromPosition'](_0x3aec21['start'],'toPrevious'),_0x492982=_0x5d6f47['fromPosition'](_0x3aec21['end'],'toNext');_0x34c751['forceDefaultExecution'](()=>_0x33545a(_0x40fdd3)),_0x4300ec=_0x10c394['getClosestSelectedImageElement'](_0xc24a17['model']['document']['selection']),_0x3aec21=_0x4a7082['createRangeOn'](_0x4300ec);const _0x115f10=_0x4a7082['createRange'](_0xf0dbb8,_0x492982);_0xf0dbb8['detach'](),_0x492982['detach'](),_0x34c751['markBlockFormat'](_0x4300ec,{'commandName':'imageTypeInline','commandParams':[_0x40fdd3]},[],'convertInlineImageToBlock'),_0x115f10['start']['isBefore'](_0x3aec21['start'])&&_0x34c751['markInsertion'](_0x4a7082['createRange'](_0x115f10['start'],_0x3aec21['start']),'convertInlineImageToBlock'),_0x3aec21['end']['isBefore'](_0x115f10['end'])&&_0x34c751['markInsertion'](_0x4a7082['createRange'](_0x3aec21['end'],_0x115f10['end']),'convertInlineImageToBlock');});}),_0x34c751['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x34c751['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x34c751['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x34c751['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x34c751['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x34c751['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4aaf56])=>{const _0x350262=_0x34c751['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4f43f6=_0x4aaf56['start'],_0x7282ad=_0x4aaf56['end'];const _0x262585=_0xc24a17['model']['schema']['getNearestSelectionRange'](_0x4f43f6,'backward'),_0x199fcd=_0xc24a17['model']['schema']['getNearestSelectionRange'](_0x7282ad,'forward');_0x262585['isCollapsed']&&(_0x4f43f6=_0x262585['start']),_0x199fcd['isCollapsed']&&(_0x7282ad=_0x199fcd['end']),_0x350262([_0xc24a17['model']['createRange'](_0x4f43f6,_0x7282ad)]);}),_0x34c751['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x30cb35),_0x34c751['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x30cb35)),_0xc24a17['plugins']['has']('ImageCaptionEditing')&&(_0x34c751['enableCommand']('toggleImageCaption',(_0x2e171d,_0x46f55c)=>{const _0x2c0da8=_0xc24a17['plugins']['get']('ImageCaptionUtils');let _0x53966f=_0x10c394['getClosestSelectedImageElement'](_0xc24a17['model']['document']['selection']),_0x2190c1=_0x2c0da8['getCaptionFromImageModelElement'](_0x53966f);_0xc24a17['model']['change'](()=>{if(_0x2190c1)return void _0x34c751['markDeletion'](_0xc24a17['model']['createRangeOn'](_0x2190c1));const _0x27a78f=_0x10c394['isBlockImage'](_0x53966f);_0x2e171d(_0x46f55c),_0x53966f=_0x10c394['getClosestSelectedImageElement'](_0xc24a17['model']['document']['selection']),_0x2190c1=_0x2c0da8['getCaptionFromImageModelElement'](_0x53966f),_0x34c751['markInsertion'](_0xc24a17['model']['createRangeOn'](_0x2190c1),_0x27a78f?null:'imageCaption');});}),_0x34c751['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x30cb35));const _0x2e12c5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2c95ce(_0x547984,_0x380a1c){const _0x21cf8e=_0x2e12c5['findIndex'](({type:_0x36ca9e,subType:_0xda0f35})=>_0x547984['type']==_0x36ca9e&&_0x547984['subType']==_0xda0f35),_0x544f7d=_0x2e12c5['findIndex'](({type:_0x3a246e,subType:_0x5a3f30})=>_0x380a1c['type']==_0x3a246e&&_0x380a1c['subType']==_0x5a3f30);if(_0x21cf8e<0x0||_0x544f7d<0x0)return!0x1;const _0x317fb4=_0x547984['getFirstRange'](),_0x50596d=_0x380a1c['getFirstRange']();if((0x0==_0x21cf8e||0x1==_0x21cf8e)&&0x2==_0x544f7d&&_0x317fb4['isIntersecting'](_0x50596d))return!0x0;if(0x2==_0x21cf8e&&0x3==_0x544f7d){const _0x3985a6=_0x34c751['_findSuggestions'](_0x317fb4,'insertion')['filter'](({suggestion:_0x44deb1,meta:_0x547177})=>_0x547177['isOwn']&&'convertInlineImageToBlock'==_0x44deb1['subType']);if(_0x3985a6['length']>0x1&&_0x50596d['end']['isEqual'](_0x317fb4['start']))return!0x0;if(0x1==_0x3985a6['length']&&(_0x317fb4['start']['isEqual'](_0x50596d['end'])||_0x317fb4['end']['isEqual'](_0x50596d['start'])))return!0x0;}if(0x3==_0x21cf8e&&0x3==_0x544f7d&&_0x317fb4['start']['isBefore'](_0x50596d['start'])){const _0x2d9e2e=_0x317fb4['end']['nodeAfter'],_0x219656=_0x50596d['start']['nodeBefore'];return _0x10c394['isBlockImage'](_0x2d9e2e)&&_0x2d9e2e===_0x219656;}return!0x1;}function _0x30cb35(_0x5ace2e,_0x12273b){return _0x2c95ce(_0x5ace2e,_0x12273b)?[_0x5ace2e,_0x12273b]:_0x2c95ce(_0x12273b,_0x5ace2e)?[_0x12273b,_0x5ace2e]:null;}_0xc24a17['plugins']['has']('ImageResize')&&(_0x34c751['enableDefaultAttributesIntegration']('resizeImage'),_0x34c751['registerBlockAttribute']('resizedWidth'),_0x34c751['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x48f73c,'FORMAT_IMAGE_SIZE'))),_0xc24a17['plugins']['has']('ImageTextAlternativeEditing')&&(_0x34c751['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x34c751['registerBlockAttribute']('alt')),_0x34c751['descriptionFactory']['registerDescriptionCallback'](_0x1b61fa=>{if(!!_0x2e12c5['find'](({type:_0x32593c,subType:_0x372637})=>_0x1b61fa['type']==_0x32593c&&_0x1b61fa['subType']==_0x372637))return _0x1b61fa['previous']?{}:void 0x0;}),_0x34c751['descriptionFactory']['registerDescriptionCallback'](_0x19ee6b=>{if('insertion'==_0x19ee6b['type']||'deletion'==_0x19ee6b['type']){const _0x22b248=_0x19ee6b['getContainedElement']();if(_0x22b248&&_0x22b248['is']('element','caption'))return{'type':'insertion'==_0x19ee6b['type']?'addObject':'removeObject','element':_0x22b248,'quantity':0x1};}}),_0x34c751['descriptionFactory']['registerDescriptionCallback'](_0x3df728=>'formatBlock'==_0x3df728['type']&&'convertInlineImageToBlock'==_0x3df728['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3df728['type']&&'convertBlockImageToInline'==_0x3df728['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x34c751['descriptionFactory']['registerDescriptionCallback'](_0x3ab0c6=>{if('attribute'!=_0x3ab0c6['type'])return;const {data:_0x34ef37}=_0x3ab0c6;if(!_0x34ef37||'alt'!=_0x34ef37['key'])return;const _0x55c067=_0x34ef37['newValue'];return _0x55c067?{'type':'format','content':o(_0x48f73c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55c067+'\x22')}:{'type':'format','content':o(_0x48f73c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6e34fa=this['editor'],_0x15eb8a=_0x6e34fa['locale'];_0x6e34fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49299c=>{if('formatBlock'!=_0x49299c['type']&&'formatInline'!=_0x49299c['type'])return;const {data:_0xe3f377}=_0x49299c;if(_0xe3f377){if('imageTextAlternative'==_0xe3f377['commandName']){const _0x32deb5=_0xe3f377['commandParams'][0x0]['newValue'];return _0x32deb5?{'type':'format','content':o(_0x15eb8a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x32deb5+'\x22')}:{'type':'format','content':o(_0x15eb8a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe3f377['commandName']){const _0x24be94=_0xe3f377['commandParams'][0x0]['width'];return _0x24be94?{'type':'format','content':o(_0x15eb8a,'*Set\x20image\x20width:*\x20%0',_0x24be94)}:{'type':'format','content':o(_0x15eb8a,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x20fd26{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3af76d=this['editor']['locale'],_0x2cda93=this['editor']['plugins']['get']('TrackChangesEditing');_0x2cda93['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2cda93['registerBlockAttribute']('src'),_0x2cda93['descriptionFactory']['registerDescriptionCallback'](_0x469828=>{if('attribute'!=_0x469828['type'])return;const {data:_0x26097d}=_0x469828;return _0x26097d&&'src'==_0x26097d['key']?_0x26097d['newValue']&&_0x26097d['oldValue']?{'type':'format','content':o(_0x3af76d,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5673a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5673a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5673a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5673a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5673a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b5b0d=this['editor'],_0x2940e4=_0x2b5b0d['locale'];_0x2b5b0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ee24a=>{if('formatBlock'!=_0x4ee24a['type']&&'formatInline'!=_0x4ee24a['type'])return;const {data:_0x6b89dd}=_0x4ee24a;if(!_0x6b89dd||'replaceImageSource'!=_0x6b89dd['commandName'])return;return{'type':'format','content':o(_0x2940e4,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x20fd26{['afterInit'](){const _0x554a4f=this['editor'];if(!_0x554a4f['plugins']['has']('ImageStyleEditing'))return;const _0x713e0=_0x554a4f['plugins']['get']('TrackChangesEditing'),_0x34b39a=_0x554a4f['plugins']['get']('ImageUtils'),_0x234c0d={};_0x713e0['enableCommand']('imageStyle',(_0x582a3b,_0x4c6961)=>{const _0x455eed=_0x554a4f['plugins']['get']('Users')['me'],_0x4b765e=_0x554a4f['commands']['get']('imageStyle');let _0x2ee772=_0x34b39a['getClosestSelectedImageElement'](_0x554a4f['model']['document']['selection']),_0x2b6060=_0x554a4f['model']['createRangeOn'](_0x2ee772),_0x3b5676=_0x4b765e['value'];if(_0x3b5676==_0x4c6961['value'])return;const _0x3d3e7a={'commandName':'imageStyle','commandParams':[_0x4c6961],'formatGroupId':_0x4f08f2()};_0x554a4f['model']['change'](()=>{if(_0x713e0['getSuggestions']()['filter'](_0x539f38=>_0x539f38['isInContent']&&_0x455eed==_0x539f38['author']&&('formatBlock'==_0x539f38['type']||'formatInline'==_0x539f38['type'])&&('imageStylePreApply'==_0x539f38['subType']||'imageStylePostApply'==_0x539f38['subType'])&&_0x539f38['getFirstRange']()['isEqual'](_0x2b6060))['forEach'](_0x2a27fc=>_0x713e0['discardSuggestion'](_0x2a27fc['head'])),_0x2ee772=_0x34b39a['getClosestSelectedImageElement'](_0x554a4f['model']['document']['selection']),_0x2b6060=_0x554a4f['model']['createRangeOn'](_0x2ee772),_0x4b765e['refresh'](),_0x554a4f['commands']['get']('imageTypeInline')['refresh'](),_0x554a4f['commands']['get']('imageTypeBlock')['refresh'](),_0x3b5676=_0x4b765e['value'],_0x3b5676!=_0x4c6961['value'])return _0x34b39a['isInlineImage'](_0x2ee772)&&_0x4b765e['shouldConvertImageType'](_0x4c6961['value'],_0x2ee772)?(_0x582a3b({..._0x4c6961,'setImageSizes':!0x1}),_0x2ee772=_0x34b39a['getClosestSelectedImageElement'](_0x554a4f['model']['document']['selection']),void _0x713e0['markBlockFormat'](_0x2ee772,{..._0x3d3e7a,'commandReversedParams':[{'value':_0x3b5676||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x34b39a['isBlockImage'](_0x2ee772)?_0x713e0['markBlockFormat'](_0x2ee772,_0x3d3e7a,[],'imageStylePostApply'):_0x713e0['markInlineFormat'](_0x2b6060,_0x3d3e7a,'imageStylePostApply'));});});for(const _0x165f5a of _0x554a4f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x234c0d[_0x165f5a['name']]=_0x165f5a['title']['toLowerCase']();_0x713e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x713e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x713e0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x713e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x47de24])=>{_0x34b39a['setImageNaturalSizeAttributes'](_0x47de24['getContainedElement']());}),_0x713e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x135dbc,_0x4396ee)=>{_0x713e0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x135dbc,{'commandName':_0x4396ee['commandName'],'commandParams':_0x4396ee['commandReversedParams']});}),_0x713e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1f9ca9,_0x384ffc){if(_0x592309(_0x1f9ca9,_0x384ffc))return[_0x1f9ca9,_0x384ffc];if(_0x592309(_0x384ffc,_0x1f9ca9))return[_0x384ffc,_0x1f9ca9];return null;});const _0xc4d8d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x592309(_0x5e7655,_0x5d6556){const _0x4c53cc=_0xc4d8d['findIndex'](({type:_0xa3fe00,subType:_0x3e6a40})=>_0x5e7655['type']==_0xa3fe00&&_0x5e7655['subType']==_0x3e6a40),_0x54135f=_0xc4d8d['findIndex'](({type:_0x1fc148,subType:_0x2feef8})=>_0x5d6556['type']==_0x1fc148&&_0x5d6556['subType']==_0x2feef8);if(_0x4c53cc<0x0||_0x54135f<0x0)return!0x1;const _0x5aba68=_0x5e7655['getFirstRange'](),_0x2e942b=_0x5d6556['getFirstRange']();if((0x0==_0x4c53cc||0x1==_0x4c53cc)&&0x2==_0x54135f&&_0x5aba68['isIntersecting'](_0x2e942b))return!0x0;if(0x2==_0x4c53cc&&0x3==_0x54135f){const _0x47def7=_0x713e0['_findSuggestions'](_0x5aba68,'insertion')['filter'](({suggestion:_0x189f17,meta:_0x312379})=>_0x312379['isOwn']&&'convertInlineImageToBlock'==_0x189f17['subType']);if(_0x47def7['length']>0x1&&_0x2e942b['end']['isEqual'](_0x5aba68['start']))return!0x0;if(0x1==_0x47def7['length']&&(_0x5aba68['start']['isEqual'](_0x2e942b['end'])||_0x5aba68['end']['isEqual'](_0x2e942b['start'])))return!0x0;}if(0x3==_0x4c53cc&&0x3==_0x54135f&&_0x5aba68['start']['isBefore'](_0x2e942b['start'])){const _0x4a07e9=_0x5aba68['end']['nodeAfter'],_0x19c426=_0x2e942b['start']['nodeBefore'];return _0x34b39a['isBlockImage'](_0x4a07e9)&&_0x4a07e9===_0x19c426;}return!0x1;}_0x554a4f['model']['document']['registerPostFixer'](()=>{let _0x5d3cd8=!0x1;const _0x2d46fc=Array['from'](_0x554a4f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x400235,data:_0x53ccb4}of _0x2d46fc){const {group:_0x1de72c,type:_0x361f36,subType:_0x12d36f,id:_0x41d9b3}=_0x713e0['_splitMarkerName'](_0x400235);if('suggestion'==_0x1de72c&&_0x713e0['hasSuggestion'](_0x41d9b3)){if('formatBlock'==_0x361f36&&('imageStylePreApply'==_0x12d36f||'imageStylePostApply'==_0x12d36f)){const _0x2550fd=_0x713e0['getSuggestion'](_0x41d9b3);if(_0x53ccb4['newRange']){const _0x489d68=_0x2550fd['getFirstRange']()['getContainedElement']();if(_0x34b39a['isBlockImage'](_0x489d68))continue;_0x713e0['discardSuggestion'](_0x2550fd),_0x5d3cd8=!0x0;}}if('insertion'==_0x361f36&&'imageCaption'==_0x12d36f&&!_0x53ccb4['newRange']){const _0x12b824=_0x713e0['getSuggestion'](_0x41d9b3);_0x12b824['next']&&_0x12b824['next']['isInContent']&&(_0x713e0['discardSuggestion'](_0x12b824['next']),_0x5d3cd8=!0x0);}}}return _0x5d3cd8;}),this['_registerLegacyDescription'](_0x234c0d);}['_registerLegacyDescription'](_0x244c5a){const _0x58d9f6=this['editor'],_0x593174=_0x58d9f6['locale'];_0x58d9f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2823c8=>{if('formatBlock'!=_0x2823c8['type']&&'formatInline'!=_0x2823c8['type'])return;const {data:_0x2b219e}=_0x2823c8;if(!_0x2b219e||'imageStyle'!=_0x2b219e['commandName'])return;const _0x49f129=_0x2b219e['commandParams'][0x0]['value'];return _0x284bdd('side'===_0x49f129?o(_0x593174,'FORMAT_SIDE_IMAGE'):_0x244c5a[_0x49f129]||_0x49f129);function _0x284bdd(_0x310b5b){return{'type':'format','content':o(_0x593174,'*Format:*\x20%0',_0x310b5b)};}});}}class ct extends _0x20fd26{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3bb4cd){super(_0x3bb4cd),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x48fb9c=this['editor'],_0x1bb5a6=_0x48fb9c['commands']['get']('importWord'),_0x45a18e=_0x48fb9c['commands']['get']('trackChanges');_0x1bb5a6&&(_0x1bb5a6['on']('execute',(_0x57f286,[,_0x7e902c])=>{this['_trackChangesValueDuringImport']=_0x45a18e['value'],_0x7e902c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1bb5a6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1bb5a6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x45a18e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x48fb9c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5d7fc4,_0x5e125f){const {suggestions:_0x2b4196}=_0x5e125f,_0xa670c2=this['editor']['commands']['get']('trackChanges'),_0x1ea0de=_0xa670c2['value'];this['_trackChangesValueDuringImport']!==_0x1ea0de&&(_0xa670c2['execute'](),this['_trackChangesExecuted']=!0x0),_0x2b4196&&_0x2b4196['forEach'](({id:_0x467906,type:_0x5cf695,author:_0x12599f,created_at:_0x2e3adf})=>{const _0xd0b96c={'id':_0x467906,'type':_0x5cf695,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x12599f,'createdAt':_0x2e3adf?new Date(_0x2e3adf):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xd0b96c);});}}class ut extends _0x20fd26{['afterInit'](){const _0x25a6e5=this['editor'],_0x5957bb=_0x25a6e5['plugins']['get']('TrackChangesEditing');if(_0x25a6e5['plugins']['has']('IndentEditing')&&(_0x5957bb['enableCommand']('indent'),_0x5957bb['enableCommand']('outdent')),_0x25a6e5['plugins']['has']('IndentBlock')){for(const _0x575a8c of['indentBlock','outdentBlock'])_0x5957bb['enableDefaultAttributesIntegration'](_0x575a8c);}const _0xfbe4a6=_0x25a6e5['locale'];_0x5957bb['registerBlockAttribute']('blockIndent'),_0x5957bb['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xfbe4a6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1337cd=this['editor'],_0x3c9adf=_0x1337cd['locale'],_0x3b4e13=_0x1337cd['plugins']['get']('TrackChangesEditing');_0x3b4e13['descriptionFactory']['registerDescriptionCallback'](_0x1cf517=>{if('formatBlock'!=_0x1cf517['type'])return;const {data:_0x244680}=_0x1cf517;if(!_0x244680)return;if('indentBlock'!=_0x244680['commandName']&&'outdentBlock'!=_0x244680['commandName'])return;const _0x3c88dc=_0x1cf517['getItems']()[0x0],_0x437aca=_0x3b4e13['descriptionFactory']['getItemLabel'](_0x3c88dc);return'indentBlock'==_0x244680['commandName']?{'type':'format','content':o(_0x3c9adf,'*Indent:*\x20%0',_0x437aca)}:'outdentBlock'==_0x244680['commandName']?{'type':'format','content':o(_0x3c9adf,'*Outdent:*\x20%0',_0x437aca)}:void 0x0;});}}class ft extends _0x20fd26{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x20fd26{['afterInit'](){const _0xd8ec6d=this['editor'];if(!_0xd8ec6d['plugins']['has']('LinkEditing'))return;const _0x5453b5=_0xd8ec6d['plugins']['get']('TrackChangesEditing'),_0x473089=_0xd8ec6d['commands']['get']('link');_0x5453b5['enableDefaultAttributesIntegration']('link'),_0x5453b5['enableDefaultAttributesIntegration']('unlink'),_0x5453b5['registerInlineAttribute']('linkHref');for(const _0x43ced2 of _0x473089['manualDecorators'])_0x5453b5['registerInlineAttribute'](_0x43ced2['id']),_0x5453b5['descriptionFactory']['registerAttributeLabel'](_0x43ced2['id'],'link\x20('+_0x43ced2['label']['toLowerCase']()+')');_0x5453b5['descriptionFactory']['registerDescriptionCallback'](_0x4016e6=>{if('attribute'!=_0x4016e6['type'])return;const {data:_0x3de974}=_0x4016e6;if(!_0x3de974||'linkHref'!=_0x3de974['key'])return;const _0x30b208=_0x3de974['newValue'],_0x1afc25=_0xd8ec6d['locale'];return{'type':'format','content':null==_0x30b208?o(_0x1afc25,'*Remove\x20link*'):o(_0x1afc25,'*Set\x20link:*\x20%0','\x22'+_0x30b208+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x594deb=this['editor'],_0x1145f4=_0x594deb['locale'];_0x594deb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c14dd=>{if('formatInline'!=_0x2c14dd['type'])return;const {data:_0x4c01a2}=_0x2c14dd;if(_0x4c01a2){if('link'==_0x4c01a2['commandName']){const _0x1df20f=_0x4c01a2['commandParams'][0x0];return{'type':'format','content':o(_0x1145f4,'*Set\x20link:*\x20%0','\x22'+_0x1df20f+'\x22')};}return'unlink'==_0x4c01a2['commandName']?{'type':'format','content':o(_0x1145f4,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x20fd26{['afterInit'](){const _0x589b9f=this['editor'],_0x5cf7eb=_0x589b9f['locale'];if(!_0x589b9f['plugins']['has']('LegacyListEditing'))return;const _0x1d8418=_0x589b9f['plugins']['get']('TrackChangesEditing'),_0x419da1=_0x589b9f['plugins']['has']('LegacyTodoListEditing');function _0x53ed44(_0x29b7eb){return()=>{const _0x5c275f=_0x589b9f['model']['document']['selection'],_0x48b094=_0x589b9f['commands']['get'](_0x29b7eb);if(_0x48b094['value'])return void _0x589b9f['execute']('paragraph',{});const _0x1249c5=_0x29b7eb['slice'](0x0,-0x4),_0x31004b=function(_0x5dda4b,_0x34be78,_0x3a083c){let _0x10aa59=Array['from'](_0x5dda4b)['filter'](_0x301e42=>function(_0x355317,_0x5f4265){return _0x5f4265['checkChild'](_0x355317['parent'],'listItem')&&!_0x5f4265['isObject'](_0x355317);}(_0x301e42,_0x3a083c));_0x10aa59=_0x10aa59['filter'](_0x542941=>!_0x542941['is']('element','listItem')||_0x542941['getAttribute']('listType')!=_0x34be78);const _0x532441=new Set();for(const _0x5cfc62 of _0x10aa59)_0x5cfc62['is']('element','listItem')?_0x532441['add'](Le(_0x5cfc62)):_0x532441['add'](_0x5cfc62);return Array['from'](_0x532441);}(_0x5c275f['getSelectedBlocks'](),_0x1249c5,_0x589b9f['model']['schema']);_0x589b9f['model']['change'](()=>{for(const _0x3d43a3 of _0x31004b)_0x1d8418['markBlockFormat'](_0x3d43a3,{'commandName':_0x29b7eb,'commandParams':[{'forceValue':!_0x48b094['value']}],'formatGroupId':'blockName'},Ee(_0x3d43a3));});};}function _0x3e1632(_0x1af9ba){return()=>{const _0x2cbfcb=function(_0x1695a7){let _0x6d157f=Array['from'](_0x1695a7);const _0x5d7eb0=_0x6d157f['findIndex'](_0x63a099=>'listItem'!=_0x63a099['name']);return _0x5d7eb0>-0x1&&(_0x6d157f=_0x6d157f['slice'](0x0,_0x5d7eb0)),_0x6d157f;}(_0x589b9f['model']['document']['selection']['getSelectedBlocks']()),_0x1ba745=_0x589b9f['model']['createRange'](_0x589b9f['model']['createPositionAt'](_0x2cbfcb[0x0],'before'),_0x589b9f['model']['createPositionAt'](_0x2cbfcb[_0x2cbfcb['length']-0x1],'end'));_0x589b9f['model']['change'](()=>{_0x1d8418['markBlockFormat'](_0x1ba745,{'commandName':_0x1af9ba,'commandParams':[],'formatGroupId':'listIndent'},function(_0xeafb06){const _0x558ee8=new Set();for(const _0x53cccd of _0xeafb06){let _0x2930c1=_0x53cccd['nextSibling'];for(;_0x2930c1&&_0x2930c1['getAttribute']('listIndent')>_0x53cccd['getAttribute']('listIndent');)_0x558ee8['add'](_0x2930c1),_0x2930c1=_0x2930c1['nextSibling'];}return Array['from'](_0x558ee8);}(_0x2cbfcb));});};}_0x1d8418['enableCommand']('numberedList',_0x53ed44('numberedList')),_0x1d8418['enableCommand']('bulletedList',_0x53ed44('bulletedList')),_0x419da1&&_0x1d8418['enableCommand']('todoList',_0x53ed44('todoList')),_0x1d8418['enableCommand']('indentList',_0x3e1632('indentList')),_0x1d8418['enableCommand']('outdentList',_0x3e1632('outdentList')),_0x419da1&&_0x1d8418['enableCommand']('checkTodoList',()=>{const _0x135344=_0x589b9f['commands']['get']('checkTodoList'),_0x551ad2=Array['from'](_0x135344['_selectedElements']);_0x551ad2['filter'](_0x222243=>_0x222243['getAttribute']('todoListChecked')!=_0x135344['value']),_0x589b9f['model']['change'](()=>{for(const _0x557259 of _0x551ad2)_0x1d8418['markBlockFormat'](_0x557259,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x135344['value']}]});});}),_0x1d8418['descriptionFactory']['registerElementLabel']('listItem',_0xd4ed66=>o(_0x5cf7eb,'ELEMENT_LIST_ITEM',_0xd4ed66)),_0x1d8418['descriptionFactory']['registerDescriptionCallback'](_0x512db9=>{if('formatBlock'!=_0x512db9['type']&&'formatInline'!=_0x512db9['type'])return;const {data:_0x3d279a}=_0x512db9;if(_0x3d279a){if('numberedList'==_0x3d279a['commandName']||'bulletedList'==_0x3d279a['commandName']||'todoList'==_0x3d279a['commandName'])switch(_0x3d279a['commandName']['replace']('List','')){case'bulleted':return _0x5ac444(o(_0x5cf7eb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ac444(o(_0x5cf7eb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ac444(o(_0x5cf7eb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3d279a['commandName'])return{'type':'format','content':o(_0x5cf7eb,'*Indent:*\x20%0',o(_0x5cf7eb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3d279a['commandName'])return{'type':'format','content':o(_0x5cf7eb,'*Outdent:*\x20%0',o(_0x5cf7eb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3d279a['commandName'])return _0x3d279a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cf7eb,'*Check\x20item*')}:{'type':'format','content':o(_0x5cf7eb,'*Uncheck\x20item*')};}function _0x5ac444(_0x331297){return{'type':'format','content':o(_0x5cf7eb,'*Change\x20to:*\x20%0',_0x331297)};}});}}function Le(_0x3c5d56){const _0x3a790a=_0x3c5d56['getAttribute']('listIndent');if(0x0==_0x3a790a)return _0x3c5d56;let _0x398826=_0x3c5d56;for(;_0x3c5d56['previousSibling']&&_0x3c5d56['previousSibling']['is']('element','listItem');){const _0x303ff7=_0x3c5d56['previousSibling']['getAttribute']('listIndent');if(_0x303ff7==_0x3a790a)_0x398826=_0x3c5d56['previousSibling'];else{if(_0x303ff7<_0x3a790a)break;}_0x3c5d56=_0x3c5d56['previousSibling'];}return _0x398826;}function Ee(_0x2c19c4){const _0x31dd99=[];if(_0x2c19c4['is']('element','listItem')&&_0x2c19c4['getAttribute']('listIndent')>0x0){let _0x467277=_0x2c19c4['nextSibling'];for(;_0x467277&&'listItem'==_0x467277['name']&&_0x467277['getAttribute']('listIndent')==_0x2c19c4['getAttribute']('listIndent');)_0x31dd99['push'](_0x467277),_0x467277=_0x467277['nextSibling'];}return _0x31dd99;}class Q extends _0x20fd26{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xcaeb28=this['editor']['config']['get']('list.properties'),_0x50bc1e=this['editor']['plugins']['get']('TrackChangesEditing');_0xcaeb28['styles']&&_0x50bc1e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xcaeb28['reversed']&&_0x50bc1e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xcaeb28['startIndex']&&_0x50bc1e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x50bc1e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xbce609,_0xe9acaa={}){const _0x46beed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x413bf6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x46beed['markMultiRangeBlockFormat'](_0x413bf6,{'commandName':'listStyle','commandParams':[{'type':_0xe9acaa['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x341916,_0x4c9fb2={}){const _0x4a9ca1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11418b=this['_getSuggestionBlocks'](_0x4b4a32=>_0x4b4a32['is']('element','listItem')&&'numbered'===_0x4b4a32['getAttribute']('listType'));if(_0x11418b['length']<0x1)return;const _0x51f2bd=_0x11418b['map'](_0x32d34b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32d34b,'before'),this['editor']['model']['createPositionAt'](_0x32d34b,0x0)));this['editor']['model']['change'](()=>{_0x4a9ca1['markMultiRangeBlockFormat'](_0x51f2bd,{'commandName':'listReversed','commandParams':[{'reversed':_0x4c9fb2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x14f904,_0x19923e={}){const _0x5409d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x322717=this['_getSuggestionBlocks'](_0x3a0b27=>_0x3a0b27['is']('element','listItem')&&'numbered'===_0x3a0b27['getAttribute']('listType'));if(_0x322717['length']<0x1)return;const _0x44809c=_0x322717['map'](_0x207ce6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x207ce6,'before'),this['editor']['model']['createPositionAt'](_0x207ce6,0x0)));this['editor']['model']['change'](()=>{_0x5409d1['markMultiRangeBlockFormat'](_0x44809c,{'commandName':'listStart','commandParams':[{'startIndex':_0x19923e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x214ed2){if('formatBlock'!=_0x214ed2['type']&&'formatInline'!=_0x214ed2['type'])return;const _0xc1619c=this['editor']['locale'],{data:_0x52023b}=_0x214ed2;if(!_0x52023b)return;let _0x5c94c2,_0x23fdff;switch(_0x52023b['commandName']){case'listStyle':_0x5c94c2='*Change\x20to:*\x20%0',_0x23fdff={'type':'format','content':o(_0xc1619c,_0x5c94c2,o(_0xc1619c,this['_getTranslationKeyForListStyle'](_0x52023b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5c94c2=_0x52023b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23fdff={'type':'format','content':o(_0xc1619c,_0x5c94c2)};break;case'listStart':_0x5c94c2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23fdff={'type':'format','content':o(_0xc1619c,_0x5c94c2,_0x52023b['commandParams'][0x0]['startIndex'])};}return _0x23fdff;}['_getSuggestionBlocksForListStyle'](){const _0x3c9cbc=this['editor']['plugins']['get']('LegacyListUtils');let _0x20e413=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x20e413[0x0]?.['is']('element','listItem')&&_0x20e413['unshift'](..._0x3c9cbc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x20e413[_0x20e413['length']-0x1]?.['is']('element','listItem')&&_0x20e413['push'](..._0x3c9cbc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x20e413=[...new Set(_0x20e413)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x20e413=_0x20e413['filter'](_0x510be2=>_0x510be2['is']('element','listItem'))),_0x20e413;}['_getSuggestionBlocks'](_0x388b82){const _0x4ddd17=this['editor']['plugins']['get']('LegacyListUtils');let _0x5ebcb4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x388b82)['map'](_0x334a76=>{const _0x577ae3=this['editor']['model']['createPositionAt'](_0x334a76,0x0);return[..._0x4ddd17['getSiblingNodes'](_0x577ae3,'backward'),..._0x4ddd17['getSiblingNodes'](_0x577ae3,'forward')];})['flat']();return _0x5ebcb4=[...new Set(_0x5ebcb4)],_0x5ebcb4;}['_getTranslationKeyForListStyle'](_0x57905f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x57905f)||'default')['toUpperCase']()+'_LIST_'+_0x57905f['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x20fd26{['afterInit'](){const _0x368558=this['editor'];if(!_0x368558['plugins']['has']('MediaEmbedEditing'))return;const _0xfea266=_0x368558['plugins']['get']('TrackChangesEditing'),_0x1e6dd5=_0x368558['locale'];_0xfea266['enableCommand']('mediaEmbed'),_0xfea266['descriptionFactory']['registerElementLabel']('media',_0xb734db=>o(_0x1e6dd5,'ELEMENT_MEDIA',_0xb734db)),_0x368558['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4ff31c,{writer:_0x57c746,options:_0x66c4bf})=>{if(_0x66c4bf['showSuggestionHighlights'])return _0x57c746['createEmptyElement']('div');},'converterPriority':'high'}),_0x368558['data']['downcastDispatcher']['on']('attribute:url:media',(_0x44e909,_0x2ca44,_0x315189)=>{_0x315189['options']['showSuggestionHighlights']&&_0x44e909['stop']();},{'priority':'high'});}}class mt extends _0x20fd26{['afterInit'](){const _0x1a7456=this['editor'];_0x1a7456['plugins']['has']('MentionEditing')&&_0x1a7456['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x20fd26{['afterInit'](){const _0x333947=this['editor'];if(!_0x333947['plugins']['has']('MergeFieldsEditing'))return;_0x333947['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x333947['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2fbae9=_0x333947['plugins']['get']('TrackChangesEditing'),_0x12af00=_0x333947['locale'];_0x2fbae9['descriptionFactory']['registerElementLabel']('mergeField',_0x13f03a=>o(_0x12af00,'ELEMENT_MERGE_FIELD',_0x13f03a)),_0x2fbae9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5bb8f0=>o(_0x12af00,'ELEMENT_MERGE_FIELD',_0x5bb8f0)),_0x2fbae9['descriptionFactory']['registerDescriptionCallback'](_0x1e01d0=>{if('insertion'!=_0x1e01d0['type']&&'deletion'!=_0x1e01d0['type'])return;const _0x2c411c=_0x1e01d0['getContainedElement']();if(null==_0x2c411c)return;if(!_0x2c411c['is']('element','mergeField')&&!_0x2c411c['is']('element','mergeFieldBlock'))return;const _0x50e31a=_0x333947['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x2c411c['getAttribute']('id'));return'insertion'==_0x1e01d0['type']?{'type':'insertion','content':o(_0x12af00,'*Insert:*\x20%0','\x22'+_0x50e31a+'\x22\x20'+o(_0x12af00,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x12af00,'*Remove:*\x20%0','\x22'+_0x50e31a+'\x22\x20'+o(_0x12af00,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x20fd26{['afterInit'](){const _0x5c122f=this['editor'],_0x270d8f=_0x5c122f['plugins']['get']('TrackChangesEditing');_0x5c122f['plugins']['has']('MultiLevelList')&&(_0x270d8f['enableDefaultAttributesIntegration']('multiLevelList'),_0x270d8f['registerBlockAttribute']('listMarkerStyle'),_0x270d8f['descriptionFactory']['registerDescriptionCallback'](_0x4b0ba3=>this['handleDescriptions'](_0x4b0ba3)));}['handleDescriptions'](_0x181d81){const _0x549d61=this['editor']['locale'],{data:_0x301c8b}=_0x181d81,_0x5a3276={'type':'format','content':''};if(_0x301c8b&&'listMarkerStyle'==_0x301c8b['key']){if(!_0x301c8b['oldValue'])return{'type':'format','content':o(_0x549d61,'*Set\x20format:*\x20%0',o(_0x549d61,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x301c8b['newValue']+')'};if(!_0x301c8b['newValue']){let _0x61e745=_0x181d81['head'];for(;_0x61e745;){if(_0x61e745['data']&&'listType'==_0x61e745['data']['key']&&_0x61e745['data']['newValue'])return _0x5a3276;_0x61e745=_0x61e745['next'];}return{'type':'format','content':o(_0x549d61,'*Remove\x20format:*\x20%0',o(_0x549d61,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x301c8b['oldValue']+')'};}}}}class kt extends _0x20fd26{['afterInit'](){const _0x593cbe=this['editor'];if(!_0x593cbe['plugins']['has']('PageBreakEditing'))return;_0x593cbe['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4e6e46=_0x593cbe['plugins']['get']('TrackChangesEditing'),_0x2e2b23=_0x593cbe['locale'];_0x4e6e46['descriptionFactory']['registerElementLabel']('pageBreak',_0xee9c1=>o(_0x2e2b23,'ELEMENT_PAGE_BREAK',_0xee9c1));}}class bt extends _0x20fd26{['afterInit'](){const _0x25552a=this['editor'];if(!_0x25552a['plugins']['has']('Paragraph'))return;const _0x40324e=_0x25552a['locale'],_0x1ccad6=_0x25552a['plugins']['get']('TrackChangesEditing');_0x1ccad6['descriptionFactory']['registerElementLabel']('paragraph',_0x860bc5=>o(_0x40324e,'ELEMENT_PARAGRAPH',_0x860bc5)),_0x1ccad6['enableDefaultAttributesIntegration']('paragraph'),_0x1ccad6['enableCommand']('insertParagraph'),_0x25552a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x25552a),{'priority':'highest'}),_0x25552a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3cacee,_0x461363,_0x1037ed)=>{_0x1037ed['options']['showSuggestionHighlights']&&nr(_0x25552a,{'showActiveMarker':!0x1})(_0x3cacee,_0x461363,_0x1037ed);},{'priority':'highest'});const _0x4432d9=_0x1ccad6['descriptionFactory'];_0x4432d9['registerDescriptionCallback'](_0x2f5b1a=>{if('insertion'!==_0x2f5b1a['type'])return;const {start:_0x28491b,end:_0x3f69a8}=_0x2f5b1a['getFirstRange']();if(!_0x28491b['isTouching'](_0x3f69a8)||!_0x28491b['nodeAfter'])return;const _0x2a3f5f=_0x25552a['model']['schema'],_0x289f06=_0x28491b['nodeAfter'];return _0x2a3f5f['isBlock'](_0x289f06)&&!_0x2a3f5f['isLimit'](_0x289f06)&&_0x2a3f5f['checkChild'](_0x289f06,'$text')?{'type':'insertion','content':o(_0x40324e,'*Insert:*\x20%0',_0x4432d9['getItemLabel'](_0x289f06,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x265ff3=this['editor'],_0x5196cd=_0x265ff3['locale'];_0x265ff3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2759fc=>{if('formatBlock'!=_0x2759fc['type'])return;const {data:_0x438d6d}=_0x2759fc;return _0x438d6d&&'paragraph'==_0x438d6d['commandName']?{'type':'format','content':o(_0x5196cd,'*Change\x20to:*\x20%0',o(_0x5196cd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xc515b9,{showActiveMarker:_0xf46ece=!0x0}={}){return(_0x1c994e,_0x5b5d9a,_0x2e79c8)=>{const _0xcab645=_0xc515b9['plugins']['get']('TrackChangesEditing'),_0x2a69e3=_0x5b5d9a['markerRange']['start'],_0x33ca46=_0x5b5d9a['markerRange']['end'],_0x425081=_0xc515b9['model']['schema'];if(!_0x2a69e3['isTouching'](_0x33ca46)||!_0x2a69e3['nodeAfter'])return;const _0x316d3c=_0x2a69e3['nodeAfter'];if(_0x425081['isBlock'](_0x316d3c)&&!_0x425081['isLimit'](_0x316d3c)&&_0x425081['checkChild'](_0x316d3c,'$text')){if(!_0x2e79c8['consumable']['consume'](_0x5b5d9a['markerRange'],_0x1c994e['name']))return;const {authorId:_0x909a80}=_0xcab645['_splitMarkerName'](_0x5b5d9a['markerName']),_0xde612a=_0x2e79c8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x909a80}),_0x3fa058=_0x2e79c8['mapper']['toViewPosition'](_0x33ca46);_0xf46ece&&_0xcab645['activeMarkers']['includes'](_0x5b5d9a['markerName'])&&_0x2e79c8['writer']['addClass']('ck-suggestion-marker--active',_0xde612a),_0x2e79c8['writer']['insert'](_0x3fa058,_0xde612a),_0x2e79c8['mapper']['bindElementToMarker'](_0xde612a,_0x5b5d9a['markerName']);}};}class yt extends _0x20fd26{['afterInit'](){const _0x404285=this['editor'];if(!_0x404285['plugins']['has']('RemoveFormatEditing'))return;_0x404285['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x298988=this['editor'];_0x298988['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bfaa7=>{if('formatBlock'!=_0x3bfaa7['type']&&'formatInline'!=_0x3bfaa7['type'])return;const {data:_0x5098d8}=_0x3bfaa7;return _0x5098d8&&'removeFormat'==_0x5098d8['commandName']?{'type':'format','content':o(_0x298988['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x20fd26{['afterInit'](){const _0x528372=this['editor'];if(!_0x528372['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x23a268=_0x528372['plugins']['get']('TrackChangesEditing');_0x23a268['enableCommand']('goToPreviousRestrictedEditingException'),_0x23a268['enableCommand']('goToNextRestrictedEditingException');const _0x40e83e=_0x528372['plugins']['get']('RestrictedEditingModeEditing');_0x40e83e['enableCommand']('trackChanges'),_0x40e83e['enableCommand']('acceptSuggestion'),_0x40e83e['enableCommand']('discardSuggestion'),_0x40e83e['enableCommand']('acceptAllSuggestions'),_0x40e83e['enableCommand']('discardAllSuggestions'),_0x40e83e['enableCommand']('acceptSelectedSuggestions'),_0x40e83e['enableCommand']('discardSelectedSuggestions');}}class St extends _0x20fd26{static get['requires'](){return[_0x237087];}['init'](){const _0x2e37b0=this['editor'],_0x54e9a=_0x2e37b0['plugins']['get']('TrackChangesEditing');_0x54e9a['enableCommand']('shiftEnter'),_0x2e37b0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x2e37b0),{'priority':'high'}),_0x2e37b0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x2e37b0),{'priority':'high'}),_0x2e37b0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x14d52c,_0x238a29,_0x27c665)=>{_0x27c665['options']['showSuggestionHighlights']&&ke(_0x2e37b0,{'showActiveMarker':!0x1})(_0x14d52c,_0x238a29,_0x27c665);}),_0x54e9a['descriptionFactory']['registerElementLabel']('softBreak',_0x75989f=>o(_0x2e37b0['locale'],'ELEMENT_LINE_BREAK',_0x75989f));}}function ke(_0x55e6fa,{showActiveMarker:_0x557d4e=!0x0}={}){return(_0xed897,_0x5684f8,_0x20fff8)=>{const _0x56e43f=_0x55e6fa['plugins']['get']('TrackChangesEditing');if(!_0x20fff8['consumable']['test'](_0x5684f8['markerRange'],_0xed897['name']))return;const _0x342622=_0x55e6fa['model'];for(const _0x51fff4 of _0x5684f8['markerRange']['getItems']()){if(!_0x51fff4['is']('element','softBreak'))continue;const _0x5b9c17='deletion'==_0x5684f8['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4aae40}=_0x56e43f['_splitMarkerName'](_0x5684f8['markerName']),_0x4d8adb=_0x20fff8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b9c17,'data-author-id':_0x4aae40}),_0x3158f2=_0x20fff8['mapper']['toViewPosition'](_0x342622['createPositionBefore'](_0x51fff4));_0x557d4e&&_0x56e43f['activeMarkers']['includes'](_0x5684f8['markerName'])&&_0x20fff8['writer']['addClass']('ck-suggestion-marker--active',_0x4d8adb),_0x20fff8['writer']['insert'](_0x3158f2,_0x4d8adb),_0x20fff8['mapper']['bindElementToMarker'](_0x4d8adb,_0x5684f8['markerName']);}};}class At extends _0x20fd26{['afterInit'](){const _0x270cb9=this['editor'],_0xc9da3e=_0x270cb9['model'],_0x17ca83=_0x270cb9['locale'];if(!_0x270cb9['plugins']['has']('StandardEditingModeEditing'))return;const _0x439cb5=_0x270cb9['plugins']['get']('TrackChangesEditing'),_0x2734a9='restrictedEditingException',_0x2d06fb=_0x270cb9['commands']['get'](_0x2734a9);_0x439cb5['enableCommand'](_0x2734a9,(_0x4f869a,_0x125b45={})=>{const _0x24753b=_0xc9da3e['document']['selection'];if(_0x24753b['isCollapsed'])return void _0x4f869a(_0x125b45);const _0x52ba3e=void 0x0!==_0x125b45['forceValue']?_0x125b45['forceValue']:!_0x2d06fb['value'];_0xc9da3e['change'](()=>{const _0x217251=Array['from'](_0x24753b['getRanges']());for(const _0x214221 of _0x217251){const _0x590966=_0x52ba3e?[_0x214221]:io(_0x2734a9,_0x214221,_0xc9da3e);for(const _0xb20b04 of _0x590966)_0x439cb5['markInlineFormat'](_0xb20b04,{'commandName':_0x2734a9,'commandParams':[{'forceValue':_0x52ba3e}]});}});}),_0x439cb5['descriptionFactory']['registerDescriptionCallback'](_0x51a992=>{if('formatBlock'!=_0x51a992['type']&&'formatInline'!=_0x51a992['type'])return;const {data:_0x594ffa}=_0x51a992;return _0x594ffa&&_0x594ffa['commandName']==_0x2734a9?_0x594ffa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17ca83,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x17ca83,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x20fd26{['afterInit'](){const _0x572ea4=this['editor'];if(!_0x572ea4['plugins']['has']('Style')||!_0x572ea4['plugins']['has']('DataSchema'))return;const _0x2f3b45=_0x572ea4['plugins']['get']('TrackChangesEditing'),_0x1cba4c=_0x572ea4['locale'],_0x39fd4f=_0x572ea4['config']['get']('style')||{},_0x3a353a=_0x572ea4['plugins']['get']('GeneralHtmlSupport'),_0x49b897=_0x572ea4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x572ea4['plugins']['get']('DataSchema'),_0x39fd4f['definitions']);_0x2f3b45['enableDefaultAttributesIntegration']('style');const _0x525202=new Set();for(const _0x169a4e of _0x49b897['block']){const _0x19055e=_0x3a353a['getGhsAttributeNameForElement'](_0x169a4e['element']);_0x525202['add'](_0x19055e);}const _0x32b731=new Set();for(const _0x1da7df of _0x49b897['inline']){const _0x3ea41b=_0x3a353a['getGhsAttributeNameForElement'](_0x1da7df['element']);_0x32b731['add'](_0x3ea41b);for(const _0x1abc7d of _0x1da7df['ghsAttributes'])_0x32b731['add'](_0x1abc7d);}for(const _0x302ec5 of _0x525202)_0x2f3b45['registerBlockAttribute'](_0x302ec5),_0x2f3b45['descriptionFactory']['registerAttributeLabel'](_0x302ec5,o(_0x1cba4c,'FORMAT_STYLE'));for(const _0x26dc33 of _0x32b731)_0x2f3b45['registerInlineAttribute'](_0x26dc33),_0x2f3b45['descriptionFactory']['registerAttributeLabel'](_0x26dc33,o(_0x1cba4c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x409d1a=this['editor'],_0x54c4d9=_0x409d1a['locale'];_0x409d1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e883a=>{if('formatBlock'!=_0x2e883a['type']&&'formatInline'!=_0x2e883a['type'])return;const {data:_0x455bf3}=_0x2e883a;return _0x455bf3&&'style'===_0x455bf3['commandName']?_0x455bf3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54c4d9,'*Set\x20format:*\x20%0',_0x455bf3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x54c4d9,'*Remove\x20format:*\x20%0',_0x455bf3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x20fd26{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1f4fdf){super(_0x1f4fdf),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x51337f=this['editor'],_0x3e47f0=_0x51337f['model']['document']['selection'];if(!_0x51337f['plugins']['has']('TableEditing'))return;const _0x1e5cc7=_0x51337f['locale'],_0x898846=_0x51337f['plugins']['get']('TrackChangesEditing'),_0x27e98c=_0x51337f['plugins']['get']('TableUtils');_0x898846['descriptionFactory']['registerElementLabel']('table',_0x558689=>o(_0x1e5cc7,'ELEMENT_TABLE',_0x558689)),this['_setupColumnsRowsFixing'](),_0x898846['enableCommand']('insertTable'),_0x898846['enableCommand']('selectTableRow'),_0x898846['enableCommand']('selectTableColumn');for(const _0x16437e of['insertTableRowAbove','insertTableRowBelow']){const _0x1e8db7=_0x51337f['commands']['get'](_0x16437e);_0x898846['enableCommand'](_0x16437e,_0x1d269b=>{_0x51337f['model']['change'](_0x533be8=>{_0x1d269b();const _0x5c12a3='above'===_0x1e8db7['order'],_0x6db6cb=_0x27e98c['getSelectionAffectedTableCells'](_0x3e47f0),_0x3f2b4c=_0x27e98c['getRowIndexes'](_0x6db6cb),_0x127c26=_0x5c12a3?_0x3f2b4c['first']-0x1:_0x3f2b4c['last']+0x1,_0x31d691=_0x6db6cb[0x0]['findAncestor']('table'),_0x5d14ba=_0x27e98c['createTableWalker'](_0x31d691,{'startRow':_0x127c26,'endRow':_0x127c26}),_0x2add5c=Array['from'](_0x5d14ba)['map'](_0xef26a3=>_0x533be8['createRangeOn'](_0xef26a3['cell']));_0x898846['markMultiRangeInsertion'](_0x2add5c,'tableRow');});});}for(const _0x2f1b52 of['insertTableColumnLeft','insertTableColumnRight']){const _0x320374=_0x51337f['commands']['get'](_0x2f1b52);_0x898846['enableCommand'](_0x2f1b52,_0x274252=>{_0x51337f['model']['change'](_0x46e9be=>{_0x274252();const _0x336f59='left'===_0x320374['order'],_0x3d2c4b=_0x27e98c['getSelectionAffectedTableCells'](_0x3e47f0),_0xd06888=_0x27e98c['getColumnIndexes'](_0x3d2c4b),_0x301b21=_0x336f59?_0xd06888['first']-0x1:_0xd06888['last']+0x1,_0x440260=_0x3d2c4b[0x0]['findAncestor']('table'),_0x5d92c7=_0x27e98c['createTableWalker'](_0x440260,{'startRow':0x0,'column':_0x301b21,'includeAllSlots':!0x1}),_0x90ae54=Array['from'](_0x5d92c7)['map'](_0x4cf7b1=>_0x46e9be['createRangeOn'](_0x4cf7b1['cell']));_0x898846['markMultiRangeInsertion'](_0x90ae54,'tableColumn');});});}for(const _0x5f3a84 of['removeTableRow','removeTableColumn']){const _0x5f2a19=_0x5f3a84['substr'](0xb),_0x205462=_0x5f2a19['toLowerCase'](),_0x33cf0a=_0x205462['substr'](0x0,0x3)+'span',_0x366fbd='table'+_0x5f2a19,_0xb4d032='min'+_0x5f2a19,_0x548c13='max'+_0x5f2a19;_0x898846['enableCommand'](_0x5f3a84,()=>{_0x51337f['model']['change'](_0x12d89a=>{const _0x448c8a=_0x27e98c['getSelectionAffectedTableCells'](_0x3e47f0),_0x5e86d1=_0x448c8a[0x0]['findAncestor']('table');let _0x24fa70;if('removeTableRow'==_0x5f3a84){const _0x131db1=_0x27e98c['getRowIndexes'](_0x448c8a);_0x24fa70={'startRow':_0x131db1['first'],'endRow':_0x131db1['last'],'includeAllSlots':!0x0};}else{const _0x50849e=_0x27e98c['getColumnIndexes'](_0x448c8a);_0x24fa70={'startColumn':_0x50849e['first'],'endColumn':_0x50849e['last'],'includeAllSlots':!0x0};}const _0x199c31=_0x27e98c['createTableWalker'](_0x5e86d1,_0x24fa70),_0x3a7832=Array['from'](_0x199c31)['map'](({cell:_0x524f85})=>_0x524f85),_0x34c183=Re(_0x3a7832['filter'](_0x1c571c=>_0x1c571c['hasAttribute'](_0x33cf0a))),_0x3adf23=Re(_0x3a7832['filter'](_0x503c0e=>!_0x503c0e['hasAttribute'](_0x33cf0a)))['map'](_0x5712b4=>_0x12d89a['createRangeOn'](_0x5712b4)),_0x136e3c=_0x898846['markMultiRangeDeletion'](_0x3adf23,_0x366fbd);if(_0x136e3c&&('tableRow'==_0x136e3c['subType']||'tableColumn'==_0x136e3c['subType'])){const _0x5f4f8e=this['_getSuggestionCoords'](_0x136e3c);for(const _0x985aba of _0x34c183){const _0x5b6636=_0x12d89a['createRangeOn'](_0x985aba),_0x126428=_0x27e98c['getCellLocation'](_0x985aba),_0x3b95eb=_0x985aba['getAttribute'](_0x33cf0a)-0x1,_0xeb6c31=_0x5f4f8e[_0xb4d032],_0x32dfaa=_0x5f4f8e[_0x548c13];_0xeb6c31<=_0x126428[_0x205462]&&_0x126428[_0x205462]+_0x3b95eb<=_0x32dfaa&&_0x136e3c['addRange'](_0x5b6636);}}});});}function _0x161985(_0x114f88){const _0x3fe448=Array['from'](_0x3e47f0['getRanges']())['map'](_0x559020=>_0x282df5['fromRange'](_0x559020));_0x51337f['model']['change'](_0x7b063f=>{const _0x3c4142=_0x7b063f['batch'];_0x114f88=_0x114f88['filter'](_0x1d1e6c=>'$graveyard'!=_0x1d1e6c['root']['rootName']),_0x7b063f['setSelection'](_0x114f88),_0x51337f['commands']['get']('removeTableRow')['refresh'](),_0x51337f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x51337f['model']['enqueueChange'](()=>{_0x51337f['model']['enqueueChange'](_0x3c4142,_0x5346e9=>{const _0x15be57=_0x3fe448['filter'](_0x56fa0c=>'$graveyard'!=_0x56fa0c['root']['rootName']);_0x15be57['length']>0x0&&_0x5346e9['setSelection'](_0x15be57);for(const _0x1bccca of _0x3fe448)_0x1bccca['detach']();});});});}function _0x3fa218(_0x28cc16){_0x51337f['model']['change'](_0x3678dc=>{const _0x32e9c0=Array['from'](_0x3e47f0['getRanges']())['map'](_0x53f8db=>_0x282df5['fromRange'](_0x53f8db)),_0x1e6309=[];for(const _0x296435 of _0x28cc16)for(const _0x592d92 of _0x296435['getItems']({'shallow':!0x0}))_0x1e6309['push'](_0x592d92);for(const _0x586494 of _0x1e6309)'$graveyard'!=_0x586494['root']['rootName']&&(_0x3678dc['setSelection'](_0x3678dc['createPositionAt'](_0x586494,0x0)),_0x51337f['commands']['get']('removeTableColumn')['refresh'](),_0x51337f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x48c9b3=_0x32e9c0['filter'](_0x438360=>'$graveyard'!=_0x438360['root']['rootName']);_0x48c9b3['length']>0x0&&_0x3678dc['setSelection'](_0x48c9b3);for(const _0x4b334b of _0x32e9c0)_0x4b334b['detach']();});}function _0x2bd79(_0x34ce96,_0x780888){return _0x780888['every'](_0x4c97a8=>_0x34ce96['some'](_0xb5f633=>_0xb5f633['end']['isEqual'](_0x4c97a8['start'])||_0x4c97a8['end']['isEqual'](_0xb5f633['start'])));}function _0x445b19(_0x4bd098,_0x3e6120){return!_0x4bd098['some'](_0x37caff=>_0x3e6120['some'](_0x2021bd=>_0x37caff['isIntersecting'](_0x2021bd)))&&_0x4bd098['some'](_0x17c21b=>_0x3e6120['some'](_0x405301=>_0x17c21b['end']['isTouching'](_0x405301['start'])));}_0x51337f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x447174,_0x32da97,_0x21d27f)=>{if(!_0x21d27f['options']['showSuggestionHighlights'])return;const _0x120a91=_0x32da97['item'];if(!_0x120a91)return;const _0x5f0ecd=_0x21d27f['mapper']['toViewElement'](_0x120a91);function _0x29dd1a(_0x5bf8c6){return Array['isArray'](_0x5bf8c6)?_0x5bf8c6:[_0x5bf8c6];}_0x5f0ecd&&'tableCell'===_0x120a91['name']&&_0x397a9c(_0x5f0ecd,_0x21d27f['writer'],(_0x571753,_0x5aeeac,_0x21c321)=>_0x21c321['addClass'](_0x29dd1a(_0x5aeeac['classes']),_0x571753),(_0x3b9bbf,_0x56faef,_0x7c10a0)=>_0x7c10a0['removeClass'](_0x29dd1a(_0x56faef['classes']),_0x3b9bbf));},{'priority':'highest'}),_0x898846['descriptionFactory']['registerDescriptionCallback'](_0x227da2=>{if('insertion'!=_0x227da2['type']&&'deletion'!=_0x227da2['type'])return;const _0xcda8cd=_0x227da2['getContainedElement']();if(null!=_0xcda8cd&&_0xcda8cd['is']('element','table')){if('insertion'==_0x227da2['type']){const _0xc71445=_0x227da2['getItems']()['filter'](_0xd6a1bd=>_0xd6a1bd['is']('$textProxy'))['map'](_0x2af909=>_0x2af909['data']);if(_0xc71445['length'])return{'type':'insertion','content':o(_0x1e5cc7,'*Insert:*\x20%0',o(_0x1e5cc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc71445['join']('\x20')+'\x22'))};}if('deletion'==_0x227da2['type']){const _0x421a00=_0x227da2['getItems']()['filter'](_0x2671ff=>_0x2671ff['is']('$textProxy'))['map'](_0x531669=>_0x531669['data']);if(_0x421a00['length'])return{'type':'deletion','content':o(_0x1e5cc7,'*Remove:*\x20%0',o(_0x1e5cc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x421a00['join']('\x20')+'\x22'))};}}}),_0x898846['descriptionFactory']['registerDescriptionCallback'](_0x43711f=>{if('tableRow'==_0x43711f['subType']){const _0x2f27a6=_0x43711f['getItems']()['filter'](_0x54cc04=>_0x54cc04['is']('$textProxy'))['map'](_0x5f0ac4=>_0x5f0ac4['data']),_0x370810=this['_getSuggestionCoords'](_0x43711f),_0x2f7312=_0x370810['maxRow']-_0x370810['minRow']+0x1;if('insertion'==_0x43711f['type'])return _0x2f27a6['length']?{'type':'insertion','content':o(_0x1e5cc7,'*Insert:*\x20%0',o(_0x1e5cc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f7312,'\x22'+_0x2f27a6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e5cc7,'*Insert:*\x20%0',o(_0x1e5cc7,'ELEMENT_TABLE_ROW',_0x2f7312))};if('deletion'==_0x43711f['type'])return _0x2f27a6['length']?{'type':'deletion','content':o(_0x1e5cc7,'*Remove:*\x20%0',o(_0x1e5cc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f7312,'\x22'+_0x2f27a6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e5cc7,'*Remove:*\x20%0',o(_0x1e5cc7,'ELEMENT_TABLE_ROW',_0x2f7312))};}if('tableColumn'==_0x43711f['subType']){const _0x214b0b=_0x43711f['getItems']()['filter'](_0x245e48=>_0x245e48['is']('$textProxy'))['map'](_0x599115=>_0x599115['data']),_0x1eb06b=this['_getSuggestionCoords'](_0x43711f),_0x225b37=_0x1eb06b['maxColumn']-_0x1eb06b['minColumn']+0x1;if('insertion'==_0x43711f['type'])return _0x214b0b['length']?{'type':'insertion','content':o(_0x1e5cc7,'*Insert:*\x20%0',o(_0x1e5cc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x225b37,'\x22'+_0x214b0b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e5cc7,'*Insert:*\x20%0',o(_0x1e5cc7,'ELEMENT_TABLE_COLUMN',_0x225b37))};if('deletion'==_0x43711f['type'])return _0x214b0b['length']?{'type':'deletion','content':o(_0x1e5cc7,'*Remove:*\x20%0',o(_0x1e5cc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x225b37,'\x22'+_0x214b0b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e5cc7,'*Remove:*\x20%0',o(_0x1e5cc7,'ELEMENT_TABLE_COLUMN',_0x225b37))};}}),_0x898846['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x161985),_0x898846['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x161985),_0x898846['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3fa218),_0x898846['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3fa218),_0x898846['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2bd79),_0x898846['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2bd79),_0x898846['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x445b19),_0x898846['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x445b19);}['_acceptFormatSuggestionCallbackFactory'](){const _0x350111=this['editor'],_0x3a2e99=_0x350111['model']['document']['selection'];return(_0x2947ca,_0x5c853f)=>{_0x350111['model']['change'](_0x5b4c07=>{const {commandName:_0x4164e5,commandParams:_0x2a5f79}=_0x5c853f;let _0x7ddd07=_0x2947ca[0x0]['end']['nodeBefore'];_0x2a5f79&&_0x2a5f79[0x0]&&!0x1===_0x2a5f79[0x0]['forceValue']&&(_0x7ddd07=_0x2947ca[0x0]['start']['nodeAfter']);const _0x332e22=_0x5b4c07['createRangeIn'](_0x7ddd07);if('$graveyard'==_0x332e22['root']['rootName'])return;const _0x185e9f=Array['from'](_0x3a2e99['getRanges']())['map'](_0x321c87=>_0x282df5['fromRange'](_0x321c87));_0x5b4c07['setSelection'](_0x332e22),_0x350111['commands']['get'](_0x4164e5)['refresh'](),_0x2a5f79['push']({'forceDefaultExecution':!0x0}),_0x350111['execute'](_0x4164e5,..._0x2a5f79);const _0x140625=_0x185e9f['filter'](_0x46b8ad=>'$graveyard'!=_0x46b8ad['root']['rootName']);_0x140625['length']>0x0&&_0x5b4c07['setSelection'](_0x140625);for(const _0x47610c of _0x185e9f)_0x47610c['detach']();});};}['_getCoordsForCells'](_0xf388c){const _0x6c6389=this['editor']['plugins']['get']('TableUtils');let _0x4d038d=Number['MAX_SAFE_INTEGER'],_0x258dfd=Number['MIN_SAFE_INTEGER'],_0xd9523c=Number['MAX_SAFE_INTEGER'],_0x5d7d8e=Number['MIN_SAFE_INTEGER'];for(const _0x28f61b of _0xf388c){if('$graveyard'==_0x28f61b['root']['rootName'])continue;const {row:_0x3941ac,column:_0x26b731}=_0x6c6389['getCellLocation'](_0x28f61b),_0x5c2fbd=_0x28f61b['hasAttribute']('rowspan')?_0x28f61b['getAttribute']('rowspan')-0x1:0x0,_0x2ea46e=_0x28f61b['hasAttribute']('colspan')?_0x28f61b['getAttribute']('colspan')-0x1:0x0;_0x4d038d=_0x3941ac<_0x4d038d?_0x3941ac:_0x4d038d,_0x258dfd=_0x3941ac+_0x5c2fbd>_0x258dfd?_0x3941ac+_0x5c2fbd:_0x258dfd,_0xd9523c=_0x26b731<_0xd9523c?_0x26b731:_0xd9523c,_0x5d7d8e=_0x26b731+_0x2ea46e>_0x5d7d8e?_0x26b731+_0x2ea46e:_0x5d7d8e;}return{'minRow':_0x4d038d,'maxRow':_0x258dfd,'minColumn':_0xd9523c,'maxColumn':_0x5d7d8e};}['_setupColumnsRowsFixing'](){const _0xec5de5=this['editor'],_0x1146c2=_0xec5de5['plugins']['get']('TrackChangesEditing'),_0x435057=_0xec5de5['plugins']['get']('TableUtils');_0xec5de5['model']['document']['on']('change:data',()=>{const _0x2e475b=Array['from'](_0xec5de5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2cc562,data:_0x46d58e}of _0x2e475b){const {group:_0x571310,id:_0x37a451,subType:_0x349cc6}=_0x1146c2['_splitMarkerName'](_0x2cc562);if('suggestion'!=_0x571310)continue;if(null!=_0x46d58e['oldRange'])continue;const _0x1693ce=_0x1146c2['getSuggestion'](_0x37a451);this['_tablePostFixingSubtypes']['includes'](_0x349cc6)&&this['_tableSuggestions']['add'](_0x1693ce);}},{'priority':'low'});const _0x41ec60=(_0x277a2f,_0x1e9378)=>{let _0x52ef5d=!0x1;const _0x450d48=_0x1e9378['createRangeOn'](_0x277a2f),_0x24fdba=_0x277a2f['findAncestor']('table'),_0x4d0bcc=_0x435057['getCellLocation'](_0x277a2f);for(const _0xe65778 of this['_tableSuggestions']){const _0xbad6bf=_0xe65778['subType'],_0x37ca79=_0xbad6bf['startsWith']('tablePaste'),_0x302ecb=_0xbad6bf['substr'](_0x37ca79?0xa:0x5),_0x2de440=_0x302ecb['toLowerCase'](),_0x330909=_0x2de440['substr'](0x0,0x3)+'span',_0x5c812b='min'+_0x302ecb,_0x51117b='max'+_0x302ecb;if(!_0xe65778['isInContent'])continue;if(_0x24fdba!=_0xe65778['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xe65778['isIntersectingWithRange'](_0x450d48))continue;const _0x9655c3=_0x277a2f['hasAttribute'](_0x330909)?_0x277a2f['getAttribute'](_0x330909)-0x1:0x0,_0x147fe3=this['_getSuggestionCoords'](_0xe65778),_0x3189ea=_0x147fe3[_0x5c812b],_0x4b9e24=_0x147fe3[_0x51117b];_0x3189ea<=_0x4d0bcc[_0x2de440]&&_0x4d0bcc[_0x2de440]+_0x9655c3<=_0x4b9e24&&(_0xe65778['addRange'](_0x450d48),_0x52ef5d=!0x0);}return _0x52ef5d;};_0xec5de5['model']['document']['registerPostFixer'](_0x3ef27d=>{let _0x30a2a1=!0x1;for(const _0x1aa9dd of _0xec5de5['model']['document']['differ']['getChanges']())if('insert'==_0x1aa9dd['type']){if('tableRow'==_0x1aa9dd['name']){for(const _0x167783 of _0x1aa9dd['position']['nodeAfter']['getChildren']())_0x30a2a1=_0x30a2a1||_0x41ec60(_0x167783,_0x3ef27d);}else'tableCell'==_0x1aa9dd['name']&&(_0x30a2a1=_0x30a2a1||_0x41ec60(_0x1aa9dd['position']['nodeAfter'],_0x3ef27d));}return _0x30a2a1;});}['_getSuggestionCoords'](_0x2bd3b1){return this['_getCoordsForCells'](_0x2bd3b1['getRanges']()['map'](_0x4fa75c=>_0x4fa75c['start']['nodeAfter']));}}function Re(_0x4e80d4){return Array['from'](new Set(_0x4e80d4)['values']());}class _t extends _0x20fd26{static get['requires'](){return[vt];}['afterInit'](){const _0x83dc0f=this['editor'],_0x24fdb3=_0x83dc0f['model']['document']['selection'],_0x5ae638=_0x83dc0f['locale'];if(!_0x83dc0f['plugins']['has']('TableEditing'))return;const _0x5a87bd=_0x83dc0f['plugins']['get']('TrackChangesEditing'),_0xbcda7a=_0x83dc0f['plugins']['get']('TableUtils'),_0x24a7a7=_0x83dc0f['plugins']['get'](vt);_0x24a7a7['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5a87bd['enableCommand']('mergeTableCells',()=>{const _0x10a667=_0xbcda7a['getSelectionAffectedTableCells'](_0x83dc0f['model']['document']['selection']);_0x83dc0f['model']['change'](()=>{_0x5a87bd['markMultiRangeBlockFormat'](_0x10a667,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x83dc0f['commands']['get']('mergeTableCells')['on']('execute',(_0x380e5e,_0x3283c9)=>{_0x83dc0f['commands']['get']('trackChanges')['value']&&(_0x3283c9['length']>0x0&&_0x3283c9[_0x3283c9['length']-0x1]&&_0x3283c9[_0x3283c9['length']-0x1]['forceDefaultExecution']||_0x5a87bd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x380e5e['stop']());},{'priority':'highest'});for(const _0x459688 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5e1512=_0x83dc0f['commands']['get'](_0x459688);_0x5a87bd['enableCommand'](_0x459688,()=>{const _0x2b2840=_0x83dc0f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f526b=>_0x1f526b['is']('element','tableCell')),_0x5eb1e7=_0x5e1512['value'];_0x83dc0f['model']['change'](()=>{_0x5a87bd['markMultiRangeBlockFormat']([_0x2b2840,_0x5eb1e7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2c83d3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x73a4b4=_0x83dc0f['commands']['get'](_0x2c83d3);_0x5a87bd['enableCommand'](_0x2c83d3,()=>{const _0x25b1ff=_0xbcda7a['getSelectionAffectedTableCells'](_0x83dc0f['model']['document']['selection'])[0x0],_0x42c835=_0x25b1ff['findAncestor']('table'),{column:_0x40a435,row:_0x53a47d}=_0xbcda7a['getCellLocation'](_0x25b1ff);let _0x1f436b=[];if('horizontally'==_0x73a4b4['direction']){const _0x5c670d=_0xbcda7a['createTableWalker'](_0x42c835,{'startRow':_0x53a47d,'endRow':_0x53a47d,'includeAllSlots':!0x0});_0x1f436b=Array['from'](_0x5c670d)['map'](_0x204e96=>_0x204e96['cell']);}else{const _0x2c8e79=_0xbcda7a['createTableWalker'](_0x42c835,{'column':_0x40a435,'includeAllSlots':!0x0});_0x1f436b=Array['from'](_0x2c8e79)['map'](_0x26df13=>_0x26df13['cell']);}_0x83dc0f['model']['change'](_0x2ba738=>{_0x5a87bd['markBlockFormat'](_0x2ba738['createRangeOn'](_0x25b1ff),{'commandName':_0x2c83d3,'commandParams':[]},_0x1f436b,_0x2c83d3);});});}_0x5a87bd['descriptionFactory']['registerDescriptionCallback'](_0x574041=>{if('formatBlock'!=_0x574041['type']&&'formatInline'!=_0x574041['type'])return;const {data:_0x353609}=_0x574041;return _0x353609&&'mergeTableCells'==_0x353609['commandName']?{'type':'format','content':o(_0x5ae638,'*Merge\x20cells*')}:void 0x0;}),_0x5a87bd['descriptionFactory']['registerDescriptionCallback'](_0x54f319=>{if('formatBlock'!=_0x54f319['type']&&'formatInline'!=_0x54f319['type'])return;const {data:_0xa22a7f}=_0x54f319;return _0xa22a7f?'splitTableCellVertically'==_0xa22a7f['commandName']?{'type':'format','content':o(_0x5ae638,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xa22a7f['commandName']?{'type':'format','content':o(_0x5ae638,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x240bbd=_0x24a7a7['_acceptFormatSuggestionCallbackFactory']();for(const _0x53cd46 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5a87bd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53cd46,'accept',_0x240bbd);for(const _0x30347c of['splitTableCellVertically','splitTableCellHorizontally'])_0x5a87bd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30347c,'accept',_0x240bbd);_0x5a87bd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1876a1=>{_0x83dc0f['model']['change'](_0x5175b5=>{const _0xb5ba4c=Array['from'](_0x24fdb3['getRanges']())['map'](_0x70e712=>_0x282df5['fromRange'](_0x70e712));_0x5175b5['setSelection'](_0x1876a1),_0x83dc0f['commands']['get']('mergeTableCells')['refresh'](),_0x83dc0f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2c0c85=_0xb5ba4c['filter'](_0x11083d=>'$graveyard'!=_0x11083d['root']['rootName']);_0x2c0c85['length']>0x0&&_0x5175b5['setSelection'](_0x2c0c85);for(const _0x357564 of _0xb5ba4c)_0x357564['detach']();});});for(const _0x155e35 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x12cfdd=_0x83dc0f['commands']['get'](_0x155e35);_0x12cfdd['on']('set:isEnabled',(_0x1a65b4,_0x36f310,_0x1da9b5)=>{if(_0x1da9b5){const _0x232eb6=_0x83dc0f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a1ad2=>_0x4a1ad2['is']('element','tableCell'));this['_areMergableCells'](_0x12cfdd['value'],_0x232eb6)||(_0x1a65b4['return']=!0x1,_0x1a65b4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x59500b=this['editor']['commands']['get']('mergeTableCells'),_0x5d1264=this['editor']['plugins']['get']('TableUtils');if(!_0x59500b['isEnabled'])return!0x1;const _0x580673=_0x5d1264['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2143fb of _0x580673)for(const _0x5e6f2c of _0x580673)if(_0x2143fb!=_0x5e6f2c&&!this['_areMergableCells'](_0x2143fb,_0x5e6f2c))return!0x1;return!0x0;}['_areMergableCells'](_0x49b9b1,_0x309458){const _0x59ce65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x117d68=this['editor']['model']['createRangeOn'](_0x49b9b1),_0x5d91ee=this['editor']['model']['createRangeOn'](_0x309458),_0x49f918=new Set(),_0x4885ed=new Set();for(const _0x10385e of _0x59ce65['getSuggestions']())if(('insertion'==_0x10385e['type']||'deletion'==_0x10385e['type']||'mergeTableCells'==_0x10385e['subType'])&&_0x10385e['isInContent']){for(const _0x2eea6b of _0x10385e['getRanges']())_0x2eea6b['containsRange'](_0x117d68,!0x0)&&_0x49f918['add'](_0x10385e['type']+':'+_0x10385e['author']['id']),_0x2eea6b['containsRange'](_0x5d91ee,!0x0)&&_0x4885ed['add'](_0x10385e['type']+':'+_0x10385e['author']['id']);}if(_0x49f918['size']!=_0x4885ed['size'])return!0x1;for(const _0x33d64f of _0x49f918)if(!_0x4885ed['has'](_0x33d64f))return!0x1;return!0x0;}}class Ct extends _0x20fd26{static get['requires'](){return[vt];}['afterInit'](){const _0x19d725=this['editor'];if(!_0x19d725['plugins']['has']('TableEditing'))return;const _0x180f7c=_0x19d725['locale'],_0x49d493=_0x19d725['plugins']['get']('TrackChangesEditing');_0x49d493['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x49d493['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x49d493['registerBlockAttribute']('headingRows'),_0x49d493['registerBlockAttribute']('headingColumns'),_0x49d493['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x180f7c,'FORMAT_HEADER_ROW')),_0x49d493['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x180f7c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3a6de3=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcf2b9a=this['editor']['plugins']['get']('TableUtils'),_0x175166=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x5740c4({showActiveMarker:_0x4f912c=!0x0,setDataAttribute:_0x2854e0=!0x0}={}){return(_0x3eb194,_0x1c03f3,_0x2b7e4b)=>{const {type:_0x4faa76,id:_0x2c9994}=_0x3a6de3['_splitMarkerName'](_0x1c03f3['markerName']),_0x57f6bc=_0x3a6de3['getSuggestion'](_0x2c9994),_0x4132ad=_0x57f6bc['data'];if('formatBlock'!=_0x57f6bc['type']||!_0x4132ad||'setTableColumnHeader'!=_0x4132ad['commandName'])return;if(_0x1c03f3['item'])return void _0x3eb194['stop']();if(!_0x2b7e4b['consumable']['consume'](_0x1c03f3['markerRange'],_0x3eb194['name']))return;const _0x1e9a5f=_0x1c03f3['markerRange']['start']['nodeAfter'],_0x337339=_0x1c03f3['markerRange']['end']['nodeBefore'],_0x1e4824=_0x1e9a5f['parent']['parent'],{column:_0x4c86c2}=_0xcf2b9a['getCellLocation'](_0x1e9a5f),{column:_0x5a1788}=_0xcf2b9a['getCellLocation'](_0x337339);for(let _0x34f5af=_0x4c86c2;_0x34f5af<=_0x5a1788;_0x34f5af++){const _0x3503ca=_0xcf2b9a['createTableWalker'](_0x1e4824,{'column':_0x34f5af,'includeAllSlots':!0x1});for(const _0x6b3d81 of _0x3503ca){const _0x45ca24=_0x6b3d81['cell'],_0x2ed691=_0x2b7e4b['mapper']['toViewElement'](_0x45ca24);_0x2b7e4b['writer']['addClass']('ck-suggestion-marker-'+_0x4faa76,_0x2ed691),_0x2854e0&&_0x2b7e4b['writer']['setAttribute']('data-suggestion',_0x2c9994,_0x2ed691),_0x2b7e4b['mapper']['bindElementToMarker'](_0x2ed691,_0x1c03f3['markerName']),_0x4f912c&&(_0x3a6de3['activeMarkers']['includes'](_0x1c03f3['markerName'])?_0x2b7e4b['writer']['addClass']('ck-suggestion-marker--active',_0x2ed691):_0x2b7e4b['writer']['removeClass']('ck-suggestion-marker--active',_0x2ed691));}}};}_0x3a6de3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x175166),_0x3a6de3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x175166),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5740c4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1fe746,_0x59a093,_0x37daf1)=>{_0x37daf1['options']['showSuggestionHighlights']&&_0x5740c4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1fe746,_0x59a093,_0x37daf1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x37019f,_0x4cce08,_0x462448)=>{const {type:_0x80ae8c,id:_0x1d166e}=_0x3a6de3['_splitMarkerName'](_0x4cce08['markerName']),_0x2718a2=_0x3a6de3['getSuggestion'](_0x1d166e),_0x41030e=_0x2718a2['data'];if('formatBlock'!=_0x2718a2['type']||!_0x41030e||'setTableColumnHeader'!=_0x41030e['commandName'])return;const _0x5a3ffe=_0x462448['mapper']['markerNameToElements'](_0x4cce08['markerName']);if(_0x5a3ffe){for(const _0x5ba259 of _0x5a3ffe)_0x462448['writer']['removeClass']('ck-suggestion-marker-'+_0x80ae8c,_0x5ba259),_0x462448['writer']['removeClass']('ck-suggestion-marker--active',_0x5ba259),_0x462448['writer']['removeAttribute']('data-suggestion',_0x5ba259),_0x462448['mapper']['unbindElementFromMarkerName'](_0x5ba259,_0x4cce08['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ba13=this['editor'],_0x468cae=_0x50ba13['locale'];function _0x779aad(_0x35a220){return{'type':'format','content':o(_0x468cae,'*Format:*\x20%0',_0x35a220)};}_0x50ba13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f788=>{if('formatBlock'!=_0x38f788['type'])return;const {data:_0x27b98e}=_0x38f788;if(_0x27b98e){if('setTableRowHeader'==_0x27b98e['commandName']){const _0x259484=_0x27b98e['commandParams'][0x0]['forceValue'];return _0x779aad(o(_0x468cae,_0x259484?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x27b98e['commandName']){const _0x2f36f6=_0x27b98e['commandParams'][0x0]['forceValue'];return _0x779aad(o(_0x468cae,_0x2f36f6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0xb54c1f=>[_0xb54c1f,null]));class Nt extends _0x20fd26{static get['requires'](){return[vt];}['afterInit'](){const _0x2f1070=this['editor'];if(!_0x2f1070['plugins']['has']('TableClipboard'))return;const _0x392124=_0x2f1070['plugins']['get']('TrackChangesEditing'),_0x44f18f=_0x2f1070['plugins']['get']('TableUtils'),_0x32cb3e=_0x2f1070['plugins']['get'](vt),_0x2af3ac=_0x2f1070['plugins']['get']('TableClipboard');_0x32cb3e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2f1070['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2f1070['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x31480b=null;_0x2f1070['model']['on']('insertContent',(_0x262ff3,_0x2b7e99)=>{const [_0x35b657,_0x21c123]=_0x2b7e99,_0x47552b=_0x2b7e99[_0x2b7e99['length']-0x1];_0x47552b&&_0x47552b['forceDefaultExecution']||_0x392124['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5b32bd,_0x59f828,_0x35825a,_0x19413e,_0x1b80f5){if(_0x59f828&&!_0x59f828['is']('documentSelection'))return!0x1;const _0x16f4e7=_0x1b80f5['getTableIfOnlyTableInContent'](_0x5b32bd,_0x35825a);if(!_0x16f4e7||!Ae(_0x16f4e7,void 0x0,_0x19413e))return!0x1;const _0x5e07ae=_0x19413e['getSelectionAffectedTableCells'](_0x35825a['document']['selection']);if(!_0x5e07ae['length'])return!0x1;const _0x1a9648=_0x5e07ae[0x0]['findAncestor']('table'),_0x11e9a3=_0x19413e['getRowIndexes'](_0x5e07ae),_0x45d953=_0x19413e['getColumnIndexes'](_0x5e07ae),_0x51cff0={'startRow':_0x11e9a3['first'],'endRow':_0x11e9a3['last'],'startColumn':_0x45d953['first'],'endColumn':_0x45d953['last']};return 0x1==_0x5e07ae['length']&&(_0x51cff0['endRow']+=_0x19413e['getRows'](_0x16f4e7)-0x1,_0x51cff0['endColumn']+=_0x19413e['getColumns'](_0x16f4e7)-0x1),Ae(_0x1a9648,_0x51cff0,_0x19413e);}(_0x35b657,_0x21c123,_0x2f1070['model'],_0x44f18f,_0x2af3ac)&&(_0x262ff3['stop'](),_0x31480b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2f1070['model']['change'](()=>{_0x2f1070['model']['insertContent'](_0x2b7e99[0x0],_0x2b7e99[0x1],_0x2b7e99[0x2],{'forceDefaultExecution':!0x0});const _0x549341=_0x4f08f2(),{rowInsertionRanges:_0xf4fd73,columnInsertionRanges:_0x3248df,insertionRanges:_0x2e12fa,deletionRanges:_0x75cb6f,cells:_0x3239ad}=_0x31480b;_0xf4fd73['length']&&_0x392124['markMultiRangeInsertion'](_0xf4fd73,'tablePasteRow',{'tablePasteChainId':_0x549341}),_0x3248df['length']&&_0x392124['markMultiRangeInsertion'](_0x3248df,'tablePasteColumn',{'tablePasteChainId':_0x549341}),_0x2e12fa['length']&&(_0x392124['markMultiRangeInsertion'](_0x2e12fa,'tablePaste',{'tablePasteChainId':_0x549341,'skipNestingCheck':!0x0}),_0x2e12fa['forEach'](_0x4aa378=>_0x4aa378['detach']?.())),_0x75cb6f['length']&&(_0x392124['markMultiRangeDeletion'](_0x75cb6f,'tablePaste',{'tablePasteChainId':_0x549341,'skipNestingCheck':!0x0}),_0x75cb6f['forEach'](_0x596d9a=>_0x596d9a['detach']?.()));const _0x1b208f=_0x392124['markMultiRangeBlockFormat'](_0x3239ad['map'](({element:_0x154387})=>_0x154387),{'formatGroupId':_0x4f08f2()},[],'tablePasteCell',{'tablePasteChainId':_0x549341});if(_0x1b208f){const _0x28f8c8=_0x1b208f['getMarkers'](),_0x1e2ef0=[];for(const {element:_0x45ec45,attributes:_0x4c6da2}of _0x3239ad){if(!_0x4c6da2)continue;const _0x2d0793=_0x2f1070['model']['createRangeOn'](_0x45ec45),_0x2e2aa3=_0x28f8c8['find'](_0x58db6a=>_0x58db6a['getRange']()['isEqual'](_0x2d0793));_0x2e2aa3&&_0x1e2ef0['push']([_0x2e2aa3['name'],_0x4c6da2]);}_0x1e2ef0['length']&&_0x1b208f['setAttribute']('markerAttributes',Object['fromEntries'](_0x1e2ef0));}_0x31480b=null;}));},{'priority':_0x2857cb['high']+0xa}),_0x2f1070['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2c030c,_0x1d6dc2)=>{const [_0x1745b4,_0x845d11,,_0x43d3a7]=_0x1d6dc2;if(!_0x31480b)return;_0x2c030c['stop']();const _0x409661=_0x1745b4['cell'],_0x40bcfb=_0x845d11,_0x644ebf=je(_0x409661),_0x491aa7=je(_0x40bcfb);_0x2c030c['return']=_0x409661;let _0x454f4e=null,_0x1e55f7=null;if(_0x491aa7||_0x644ebf){if(_0x644ebf&&!_0x491aa7){_0x43d3a7['remove'](_0x409661['getChild'](0x0));for(const _0x5442c4 of Array['from'](_0x40bcfb['getChildren']()))_0x43d3a7['insert'](_0x5442c4,_0x409661,'end');const _0x502f85=_0x31480b['rowInsertionIndexes']['includes'](_0x1745b4['row']),_0x4d96be=_0x31480b['columnInsertionIndexes']['includes'](_0x1745b4['column']);_0x502f85||_0x4d96be||(_0x454f4e=_0x282df5['fromRange'](_0x43d3a7['createRangeIn'](_0x409661)));}else _0x491aa7&&!_0x644ebf&&(_0x1e55f7=_0x43d3a7['createRangeIn'](_0x409661));}else{const _0xaddd7a=_0x43d3a7['createElement']('tableCellSuggestion'),_0x40c140=_0x43d3a7['createElement']('tableCellSuggestion');_0x43d3a7['wrap'](_0x43d3a7['createRangeIn'](_0x409661),_0x40c140),_0x43d3a7['insert'](_0xaddd7a,_0x409661,0x0);for(const _0x3c0d4c of Array['from'](_0x40bcfb['getChildren']()))_0x43d3a7['insert'](_0x3c0d4c,_0xaddd7a,'end');_0x454f4e=_0x282df5['fromRange'](_0x43d3a7['createRangeOn'](_0xaddd7a)),_0x1e55f7=_0x282df5['fromRange'](_0x43d3a7['createRangeOn'](_0x40c140));}const _0x96b4e7=Array['from'](_0x40bcfb['getAttributes']())['filter'](([_0x2ada72])=>we['includes'](_0x2ada72));_0x31480b['cells']['push']({'element':_0x409661,'attributes':_0x96b4e7['length']?Object['fromEntries'](_0x96b4e7):null}),_0x454f4e&&_0x31480b['insertionRanges']['push'](_0x454f4e),_0x1e55f7&&_0x31480b['deletionRanges']['push'](_0x1e55f7);},{'priority':'high'}),_0x44f18f['on']('insertColumns',(_0x10b61b,_0x47a247)=>{const [_0x24a8d9,_0x1e69a1={}]=_0x47a247;if(!_0x31480b)return;const _0x2b84ba=_0x1e69a1['at']||0x0,_0x35eccd=_0x1e69a1['columns']||0x1;_0x31480b['columnInsertionIndexes']=new Array(_0x35eccd)['fill'](_0x2b84ba)['map']((_0x59b3ed,_0x132ddf)=>_0x59b3ed+_0x132ddf);for(const {cell:_0x121a23}of _0x44f18f['createTableWalker'](_0x24a8d9,{'startColumn':_0x2b84ba,'endColumn':_0x2b84ba+_0x35eccd-0x1}))_0x31480b['columnInsertionRanges']['push'](_0x2f1070['model']['createRangeOn'](_0x121a23));},{'priority':'low'}),_0x44f18f['on']('insertRows',(_0x2c36f8,_0x425280)=>{const [_0x5846da,_0x10edfe={}]=_0x425280;if(!_0x31480b)return;const _0x3af268=_0x10edfe['at']||0x0,_0x226f17=_0x10edfe['rows']||0x1;_0x31480b['rowInsertionIndexes']=new Array(_0x226f17)['fill'](_0x3af268)['map']((_0x35a866,_0x1cdda3)=>_0x35a866+_0x1cdda3);for(const {cell:_0x186a49}of _0x44f18f['createTableWalker'](_0x5846da,{'startRow':_0x3af268,'endRow':_0x3af268+_0x226f17-0x1}))_0x31480b['rowInsertionRanges']['push'](_0x2f1070['model']['createRangeOn'](_0x186a49));},{'priority':'low'}),_0x392124['descriptionFactory']['registerDescriptionCallback'](_0x3bef9c=>{if(_0x3bef9c['subType']&&_0x3bef9c['subType']['startsWith']('tablePaste'))return _0x3bef9c['previous']?{}:{'type':'insertion','content':o(_0x2f1070['locale'],'*Replace\x20table\x20cells*')};});const _0x13ec5d=()=>!0x1;for(const _0x3fa405 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x392124['_suggestionFactory']['registerCustomCallback']('insertion',_0x3fa405,'join',_0x13ec5d),_0x392124['_suggestionFactory']['registerCustomCallback']('deletion',_0x3fa405,'join',_0x13ec5d),_0x392124['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3fa405,'join',_0x13ec5d);_0x392124['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x13ec5d),_0x392124['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x38eb39,_0x4efaae,_0x3f41f8)=>{const _0x286043=_0x38eb39['map'](_0xc4fe4d=>_0xc4fe4d['getContainedElement']())['filter'](_0x41bd45=>_0x41bd45),_0x33fae5=new Map(_0x286043['map'](_0x55a7d1=>[_0x55a7d1,null]));if(_0x31480b){for(const {element:_0x4e8736,attributes:_0x1fab24}of _0x31480b['cells'])_0x1fab24&&_0x33fae5['set'](_0x4e8736,_0x1fab24);}else{if(_0x3f41f8&&_0x3f41f8['markerAttributes'])for(const [_0x44a628,_0x3f6237]of Object['entries'](_0x3f41f8['markerAttributes'])){const _0xc0dd30=_0x2f1070['model']['markers']['get'](_0x44a628),_0x101c6e=_0xc0dd30?_0xc0dd30['getRange']()['getContainedElement']():null;_0x101c6e&&_0x33fae5['set'](_0x101c6e,_0x3f6237);}}_0x2f1070['model']['change'](_0x2044fb=>{for(const [_0x206506,_0x20ace7]of _0x33fae5)_0x2044fb['setAttributes']({...ve,..._0x20ace7},_0x206506);});});const _0x179c9c=(_0x321deb,_0x47c49c)=>{_0x392124['_suggestionFactory']['registerCustomCallback'](_0x321deb,'tablePaste',_0x47c49c,(_0x58fa98,_0x4258f9,_0x4b3f09)=>{_0x2f1070['model']['change'](_0x5640b1=>{const _0x574d99=[];for(const _0x351a87 of _0x58fa98){const _0x5e91ed=_0x351a87['start']['nodeAfter'];_0x5e91ed['is']('element','tableCellSuggestion')&&_0x574d99['push'](_0x5e91ed);}_0x392124['_suggestionFactory']['getSuggestionCallback'](_0x321deb,null,_0x47c49c)(_0x58fa98,_0x4258f9,_0x4b3f09);for(const _0x511f99 of _0x574d99)'$graveyard'!=_0x511f99['root']['rootName']&&_0x5640b1['unwrap'](_0x511f99);});});};_0x179c9c('insertion','accept'),_0x179c9c('insertion','discard'),_0x179c9c('deletion','accept'),_0x179c9c('deletion','discard'),_0x392124['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5c8dcd=>{const _0xfc7121=_0x5c8dcd['map'](_0x3ecfc5=>_0x3ecfc5['getContainedElement']()),_0x47555e=_0xfc7121[0x0]['findAncestor']('table'),{minRow:_0x16dde9,maxRow:_0x1167cf}=_0x32cb3e['_getCoordsForCells'](_0xfc7121);_0x44f18f['removeRows'](_0x47555e,{'at':_0x16dde9,'rows':_0x1167cf-_0x16dde9+0x1});}),_0x392124['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xc2486a=>{const _0x4cf5df=_0xc2486a['map'](_0x1da8b3=>_0x1da8b3['getContainedElement']()),_0x2a9434=_0x4cf5df[0x0]['findAncestor']('table'),{minColumn:_0x52d4dd,maxColumn:_0x33330f}=_0x32cb3e['_getCoordsForCells'](_0x4cf5df);_0x44f18f['removeColumns'](_0x2a9434,{'at':_0x52d4dd,'columns':_0x33330f-_0x52d4dd+0x1});});const _0x3f431f=(_0x1074a7,_0xff461e)=>{if(!_0xff461e['subType']||!_0xff461e['subType']['startsWith']('tablePaste'))return;const _0xa6c8d1=_0xff461e['attributes']['tablePasteChainId'],_0xa2f986=_0x392124['getSuggestions']()['filter'](_0x1c1e0f=>_0x1c1e0f['isInContent']&&_0x1c1e0f['attributes']&&_0x1c1e0f['attributes']['tablePasteChainId']==_0xa6c8d1);_0xa2f986['length']&&_0xff461e['getAllAdjacentSuggestions']()['length']!=_0xa2f986['length']&&_0xa2f986['reduce']((_0x502a95,_0x55f329)=>(_0x502a95['next']=_0x55f329,_0x55f329['previous']=_0x502a95,_0x55f329));};function _0x2a2371(_0x84a4a9,_0x125fac=!0x0){const {id:_0x41d442,authorId:_0x39fe62}=_0x392124['_splitMarkerName'](_0x84a4a9['markerName']),_0x267169=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2169e0=_0x392124['activeMarkers']['includes'](_0x84a4a9['markerName']);return _0x2169e0&&_0x267169['push']('ck-suggestion-marker--active'),{'classes':_0x267169,'attributes':{'data-suggestion':_0x41d442,'data-author-id':_0x39fe62},'priority':_0x2169e0&&_0x125fac?0xbc2:0xbb8};}_0x392124['on']('suggestionLoaded',_0x3f431f,{'priority':'high'}),_0x392124['on']('suggestionUnloaded',_0x3f431f,{'priority':'high'}),_0x2f1070['model']['document']['registerPostFixer'](()=>{let _0x4c552e=!0x1;const _0x2861dd=Array['from'](_0x2f1070['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xec32fa,data:_0x2115a2}of _0x2861dd){const {group:_0x3227d0,type:_0xd69103,id:_0xbe2561}=_0x392124['_splitMarkerName'](_0xec32fa);if('suggestion'!=_0x3227d0||'deletion'!=_0xd69103||_0x2115a2['oldRange'])continue;if(!_0x392124['hasSuggestion'](_0xbe2561))continue;const _0x45a9ce=_0x392124['getSuggestion'](_0xbe2561)['getRanges'](),_0x1376f7=_0x2f1070['plugins']['get']('Users')['me'];for(const _0x77e20a of _0x392124['getSuggestions']()){if(!_0x77e20a['isInContent']||_0x77e20a['author']!=_0x1376f7)continue;if('formatBlock'!=_0x77e20a['type']||'tablePasteCell'!=_0x77e20a['subType'])continue;if(_0x77e20a['getRanges']()['every'](_0x5a1bae=>_0x45a9ce['some'](_0x48b9d6=>_0x48b9d6['containsRange'](_0x5a1bae,!0x0)))){for(const _0x3d7856 of _0x77e20a['getAllAdjacentSuggestions']())_0x3d7856['isInContent']&&(_0x3d7856['discard'](),_0x4c552e=!0x0);}}}return _0x4c552e;}),_0x2f1070['model']['document']['registerPostFixer'](_0x1477a0=>{const _0x30e4d6=_0x2f1070['commands']['get']('redo');if(!_0x30e4d6||!_0x30e4d6['_createdBatches']['has'](_0x1477a0['batch']))return!0x1;let _0xd7982c=!0x1;const _0x1283a5=_0x2f1070['plugins']['get']('Users')['me'],_0x25d1f2=_0x2f1070['model']['document']['differ']['getChanges'](),_0x73e566=Array['from'](_0x2f1070['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xb791fa,data:_0x3a8bb6})=>{const {group:_0xc0b5bf,subType:_0x474184,authorId:_0x218577}=_0x392124['_splitMarkerName'](_0xb791fa);return'suggestion'==_0xc0b5bf&&'tablePaste'==_0x474184&&_0x218577==_0x1283a5['id']&&!_0x3a8bb6['oldRange'];});for(const _0x259e05 of _0x25d1f2){if('insert'!=_0x259e05['type']||'tableCellSuggestion'!=_0x259e05['name']||0x1!=_0x259e05['length'])continue;const _0x676694=_0x1477a0['createRange'](_0x259e05['position'],_0x259e05['position']['getShiftedBy'](0x1));if(!_0x73e566['find'](({data:_0x37ce91})=>_0x37ce91['newRange']['isEqual'](_0x676694))){for(const {name:_0x147306,data:_0x3b931c}of _0x73e566)if(_0x676694['containsRange'](_0x3b931c['newRange'])){_0x1477a0['updateMarker'](_0x147306,{'range':_0x676694}),_0xd7982c=!0x0;break;}}}return _0xd7982c;}),_0x2f1070['model']['document']['registerPostFixer'](_0x793624=>{let _0x400c0c=!0x1;const _0x568cd6=_0x2f1070['plugins']['get']('Users')['me'],_0x15a41a=_0x392124['getSuggestions']()['filter'](_0x31e7a2=>_0x31e7a2['isInContent']&&_0x31e7a2['author']==_0x568cd6),_0x5f2043=new Set(),_0x5414e9=new Set();for(const _0x1facd9 of _0x15a41a)if('tablePaste'==_0x1facd9['subType'])for(const _0x5ea9c2 of _0x1facd9['getMarkers']()){const _0x4b6892=_0x5ea9c2['getRange']()['getContainedElement']();if(_0x4b6892){if(_0x4b6892['is']('element','tableCellSuggestion')&&je(_0x4b6892)){_0x1facd9['removeMarker'](_0x5ea9c2['name']),_0x5f2043['add'](_0x4b6892),_0x400c0c=!0x0;const _0x174bd4=_0x4b6892['nextSibling'],_0x378cca=_0x4b6892['previousSibling'],_0x5b6964=_0x174bd4&&_0x174bd4['is']('element','tableCellSuggestion'),_0x2ea670=_0x378cca&&_0x378cca['is']('element','tableCellSuggestion');_0x5b6964&&!_0x5f2043['has'](_0x174bd4)&&_0x5414e9['add'](_0x174bd4),_0x2ea670&&!_0x5f2043['has'](_0x378cca)&&_0x5414e9['add'](_0x378cca);}else _0x4b6892['is']('element','paragraph')&&_0x4b6892['isEmpty']&&(_0x1facd9['removeMarker'](_0x5ea9c2['name']),_0x400c0c=!0x0);}}else{if('tablePasteCell'==_0x1facd9['subType']){if(!_0x1facd9['attributes']||!_0x1facd9['attributes']['tablePasteChainId'])continue;const _0xa2929=_0x1facd9['attributes']['markerAttributes'];if(_0xa2929&&Object['keys'](_0xa2929)['length'])continue;const _0x2b9827=_0x1facd9['attributes']['tablePasteChainId'];let _0x4df1fa=!0x0,_0x41e8b7=!0x0;for(const _0x348375 of _0x15a41a)if(_0x348375['subType']&&_0x348375['subType']['startsWith']('tablePaste')){if(!_0x348375['attributes']['tablePasteChainId']){_0x41e8b7=!0x1;break;}if(_0x348375['id']!=_0x1facd9['id']&&_0x348375['attributes']['tablePasteChainId']==_0x2b9827){_0x4df1fa=!0x1;break;}}_0x41e8b7&&_0x4df1fa&&(_0x1facd9['removeMarkers'](),_0x400c0c=!0x0);}}for(const _0x5a25d3 of _0x5f2043)_0x793624['remove'](_0x5a25d3);for(const _0x495ca0 of _0x5414e9)_0x793624['unwrap'](_0x495ca0);return _0x400c0c;}),_0x2f1070['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4df34d=>_0x2a2371(_0x4df34d),'converterPriority':'high'}),_0x2f1070['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b42c1,_0x448c10)=>_0x448c10['options']['showSuggestionHighlights']?_0x2a2371(_0x3b42c1,!0x1):null,'converterPriority':'high'});const _0x4c52ce=_0x2f1070['editing']['view'];this['listenTo'](_0x4c52ce['document'],'clipboardOutput',(_0x1b3656,_0x279be7)=>{const _0x3e29b7=[];for(const _0x8e7f19 of _0x4c52ce['createRangeIn'](_0x279be7['content'])['getItems']())_0x8e7f19['is']('element','suggestion-td')&&_0x3e29b7['push'](_0x8e7f19);_0x4c52ce['change'](_0x4753dd=>{for(const _0x348515 of _0x3e29b7)_0x4753dd['move'](_0x4753dd['createRangeIn'](_0x348515),_0x4753dd['createPositionBefore'](_0x348515)),_0x4753dd['remove'](_0x348515);});});}}function je(_0x3c7596){if(_0x3c7596['isEmpty'])return!0x0;const _0x359c94=_0x3c7596['getChild'](0x0);return _0x359c94['is']('element','paragraph')&&_0x359c94['isEmpty'];}function Ae(_0x300bde,_0x16c415={},_0x3a1eb1){for(const {isAnchor:_0x4b1eb9,cellHeight:_0x6d4b3c,cellWidth:_0x14696a}of _0x3a1eb1['createTableWalker'](_0x300bde,{'includeAllSlots':!0x0,..._0x16c415}))if(!_0x4b1eb9||0x1!=_0x6d4b3c||0x1!=_0x14696a)return!0x1;return!0x0;}class Dt extends _0x20fd26{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x239070=this['editor']['plugins']['get']('TrackChangesEditing');_0x239070['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x239070['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x239070['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x239070['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x239070['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x239070['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x400aa6,_0x4ce948){const _0x58c74e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f39f1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2de68e=_0x4ce948['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4c54e7=_0x5f39f1['getColumnGroupElement'](_0x2de68e);let _0x130eff=_0x4c54e7?_0x5f39f1['getTableColumnsWidths'](_0x4c54e7):null,_0x48250c=_0x2de68e['getAttribute']('tableWidth')||null;const _0x42ed58=_0x4ce948['tableWidth']||_0x48250c,_0xe3a346=_0x4ce948['columnWidths']||_0x130eff,_0x3d092f=this['editor']['plugins']['get']('Users')['me'];for(const _0x5ddda4 of _0x58c74e['getSuggestions']()){const _0x3a8724=_0x5ddda4['getContainedElement']();if('resizeTable'===_0x5ddda4['subType']&&_0x3a8724===_0x2de68e){_0x5ddda4['author']!==_0x3d092f&&_0x5ddda4['discard']();const _0x5cc8b8=_0x5ddda4['data']['commandParams'];_0x48250c=_0x5cc8b8[0x0]['tableWidth'],_0x130eff=_0x5cc8b8[0x0]['columnWidths'];break;}}_0x400aa6({'table':_0x2de68e,'tableWidth':_0x42ed58,'columnWidths':_0xe3a346}),_0x58c74e['markBlockFormat'](_0x2de68e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x48250c,'columnWidths':_0x130eff}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x21eb00){if('formatBlock'!=_0x21eb00['type']&&'formatInline'!=_0x21eb00['type'])return;const {data:_0x51d853}=_0x21eb00;if(_0x51d853&&'resizeTable'===_0x51d853['formatGroupId']){const _0x354b93='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x354b93)};}}}class Mt extends _0x20fd26{['afterInit'](){const _0x2ad15a=this['editor'];_0x2ad15a['plugins']['has']('Template')&&_0x2ad15a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x20fd26{['afterInit'](){const _0x2974e3=this['editor'];if(!_0x2974e3['commands']['get']('insertTableOfContents'))return;_0x2974e3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x589219=_0x2974e3['plugins']['get']('TrackChangesEditing'),_0x24fd2d=_0x2974e3['locale'];_0x589219['descriptionFactory']['registerElementLabel']('tableOfContents',_0x9c1e0=>o(_0x24fd2d,'ELEMENT_TABLE_OF_CONTENTS',_0x9c1e0));}}class Bt extends _0x20fd26{['afterInit'](){const _0x3b964c=this['editor'];if(!_0x3b964c['plugins']['has']('Title'))return;const _0x1e1e7a=_0x3b964c['plugins']['get']('TrackChangesEditing');_0x1e1e7a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3b964c['locale'],'ELEMENT_TITLE')),_0x3b964c['model']['document']['registerPostFixer'](_0xdaeb0a=>{let _0x486768=!0x1;const _0x54ceec=Array['from'](_0x3b964c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43108f,data:_0x2290f1}of _0x54ceec){const {group:_0x1133f0}=_0x1e1e7a['_splitMarkerName'](_0x43108f);if('suggestion'!==_0x1133f0||!_0x2290f1['newRange'])continue;const _0x181763=_0x2290f1['newRange'],_0x10f002=_0x181763['end']['nodeBefore'];if(!_0x10f002||!_0x10f002['is']('element','title-content'))continue;if(!_0x181763['start']['isTouching'](_0x181763['end']))continue;const _0x4051bb=_0x3b964c['model']['schema']['getNearestSelectionRange'](_0x181763['end'],'forward');if(_0x4051bb&&_0x4051bb['isCollapsed']){const _0x532ba3=_0xdaeb0a['createRange'](_0x181763['start'],_0x4051bb['start']);_0x532ba3['isEqual'](_0x181763)||(_0xdaeb0a['updateMarker'](_0x43108f,{'range':_0x532ba3}),_0x486768=!0x0);}_0x486768||(_0xdaeb0a['removeMarker'](_0x43108f),_0x486768=!0x0);}return _0x486768;});}}class Ot extends _0x20fd26{['afterInit'](){const _0x4e1eab=this['editor'],_0x147916=_0x4e1eab['plugins']['get']('TrackChangesEditing');_0x4e1eab['plugins']['has']('UndoEditing')&&(_0x147916['enableCommand']('undo'),_0x147916['enableCommand']('redo'));}}class Rt extends _0x20fd26{static get['requires'](){return[vt];}['afterInit'](){const _0x335087=this['editor'];if(!_0x335087['plugins']['has']('TableCaptionEditing'))return;_0x335087['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x20fd26{['tableProperties'];['tableCellProperties'];constructor(_0x5cb41f){super(_0x5cb41f),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 _0x5cf953=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x577ce2 of this['tableProperties'])_0x5cf953['enableCommand'](_0x577ce2,(_0x58bcbc,_0x556a01)=>{const _0x17fc34=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x577ce2,[_0x17fc34],this['tableProperties'],'tableProperties',_0x58bcbc,_0x556a01);});_0x5cf953['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5cf953['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cf953['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4b21bf,_0x52473f)=>this['handleDiscardAction'](this['tableProperties'],_0x4b21bf,_0x52473f)),_0x5cf953['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x31c066 of this['tableCellProperties'])_0x5cf953['enableCommand'](_0x31c066,(_0x2596ce,_0x2cb520)=>{const _0x43658f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x31c066,_0x43658f,this['tableCellProperties'],'tableCellProperties',_0x2596ce,_0x2cb520);});_0x5cf953['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5cf953['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cf953['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x16beeb,_0x5ddaa4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x16beeb,_0x5ddaa4)),_0x5cf953['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5cf953['descriptionFactory']['registerDescriptionCallback'](_0x15a4d8=>this['handleSuggestionDescription'](_0x15a4d8));}['_handlePropertyChange'](_0x167ee8,_0x5ad069,_0x41e559,_0x13b3a2,_0x55eee9,_0xd33327){const _0x545d91=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xd33327['batch'],()=>{for(const _0x1ae58e of _0x5ad069){if(this['_getSuggestion'](_0x1ae58e,_0x13b3a2))_0x55eee9(_0xd33327);else{const _0x3563ca={};for(const _0x1307af of _0x41e559){const _0x4c475b=_0x1ae58e['getAttribute'](_0x1307af);void 0x0!==_0x4c475b&&(_0x3563ca[_0x1307af]=_0x4c475b);}_0x55eee9(_0xd33327),_0x545d91['markBlockFormat'](_0x1ae58e,{'commandParams':[_0x3563ca]},[],_0x13b3a2);}}});}['handleDiscardAction'](_0x4be552,_0x5eccf1,_0x6e80e5){const _0x4f6ac0=_0x5eccf1[0x0]['start']['nodeAfter'],_0x3e55d7=_0x6e80e5['commandParams'][0x0];this['editor']['model']['change'](_0x45e5fa=>{for(const _0x34d78e of _0x4be552)void 0x0!==_0x3e55d7[_0x34d78e]?_0x45e5fa['setAttribute'](_0x34d78e,_0x3e55d7[_0x34d78e],_0x4f6ac0):_0x45e5fa['removeAttribute'](_0x34d78e,_0x4f6ac0);});}['handleSuggestionDescription'](_0x1ee17d){if(_0x1ee17d['data'])switch(_0x1ee17d['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'](_0x1da252,_0x254766){const _0x1b8d47=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x37dd53 of _0x1b8d47['getSuggestions']({'skipNotAttached':!0x0})){const _0x26c07e=_0x37dd53['getContainedElement']();if(_0x37dd53['subType']===_0x254766&&_0x26c07e===_0x1da252)return _0x37dd53;}return null;}}const m='$elementName';class p extends _0x20fd26{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x314e7d,_0x515d30,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34f907){super(_0x34f907),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x31a734,_0x426c35,_0x339a51,_0x265ea9)=>{this['_model']['change'](()=>{for(const _0x11c1ee of[..._0x265ea9,..._0x339a51])this['_model']['markers']['has'](_0x11c1ee)&&_0x34f907['editing']['reconvertMarker'](_0x11c1ee);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x34f907['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(),_0x34f907['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x34f907['config']['get']('trackChanges.trackFormatChanges'),_0x34f907['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x34f907['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x34f907,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x33fb49=this['editor'],_0x2d83b4=(_0x4a2af7,_0x2d26ec)=>{if('attribute'!=_0x4a2af7)return'ck-suggestion-marker-'+_0x4a2af7;const _0x5f2376=_0x2d26ec['split']('|')[0x0];return this['_isBlockAttribute'](_0x5f2376)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x33fb49['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x482ae1=>{const {id:_0x43b983,authorId:_0x30b140,type:_0x4e8853,subType:_0xe23115}=this['_splitMarkerName'](_0x482ae1['markerName']),_0x1ceb63=['ck-suggestion-marker',_0x2d83b4(_0x4e8853,_0xe23115)];let _0x2a230b=0xbb8;return this['activeMarkers']['includes'](_0x482ae1['markerName'])&&(_0x1ceb63['push']('ck-suggestion-marker--active'),_0x2a230b=0xbc2),'deletion'==_0x4e8853&&(_0x2a230b+=0x5),{'classes':_0x1ceb63,'attributes':{'data-suggestion':_0x43b983,'data-author-id':_0x30b140},'priority':_0x2a230b};}}),_0x33fb49['conversion']['for']('dataDowncast')['add'](_0x1faa7d=>{_0x1faa7d['on']('addMarker:suggestion',(_0x7e36fd,_0x3dd97b,_0x3bc389)=>{if(!_0x3bc389['options']['showSuggestionHighlights'])return;const _0x239e3c=_0x3dd97b['item'];if(!_0x239e3c)return;const _0x2a1220=_0x3bc389['mapper']['toViewElement'](_0x239e3c);_0x33fb49['model']['schema']['isObject'](_0x239e3c)&&_0x2a1220&&!_0x2a1220['getCustomProperty']('widget')&&_0x2a1220['is']('containerElement')&&_0xeddd32(_0x2a1220,_0x3bc389['writer']);},{'priority':'high'});}),_0x33fb49['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2c5666,_0x37c971)=>{if(!_0x37c971['options']['showSuggestionHighlights'])return null;const {type:_0x5b565f,subType:_0x52969c}=this['_splitMarkerName'](_0x2c5666['markerName']);return{'classes':['ck-suggestion-marker',_0x2d83b4(_0x5b565f,_0x52969c)],'priority':0xbb8};}});const _0x783a43=({showActiveMarkers:_0x56d417=!0x0,isAttributeSuggestion:_0x5efd34=!0x1}={})=>(_0x2f5f95,_0x12f0f1,_0x3fc419)=>{if(!_0x12f0f1['item'])return;const {id:_0x4defdb,authorId:_0x31962b}=this['_splitMarkerName'](_0x12f0f1['markerName']);if(_0x5efd34){const _0x9b1e5=this['_suggestions']['get'](_0x4defdb),_0x2ccbf8=this['_getAttributeKey'](_0x9b1e5);if(!this['_isBlockAttribute'](_0x2ccbf8))return;}if(_0x12f0f1['item']['is']('selection'))return void _0x3fc419['consumable']['consume'](_0x12f0f1['item'],_0x2f5f95['name']);const _0x469d71=_0x3fc419['mapper']['toViewElement'](_0x12f0f1['item']);if(_0x12f0f1['item']['is']('element')&&_0x33fb49['model']['schema']['isBlock'](_0x12f0f1['item'])&&!_0x469d71['getCustomProperty']('addHighlight')){_0x3fc419['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x469d71),_0x3fc419['writer']['setAttribute']('data-suggestion',_0x4defdb,_0x469d71),_0x3fc419['writer']['setAttribute']('data-author-id',_0x31962b,_0x469d71),_0x3fc419['mapper']['bindElementToMarker'](_0x469d71,_0x12f0f1['markerName']),_0x56d417&&(this['activeMarkers']['includes'](_0x12f0f1['markerName'])?_0x3fc419['writer']['addClass']('ck-suggestion-marker--active',_0x469d71):_0x3fc419['writer']['removeClass']('ck-suggestion-marker--active',_0x469d71));for(const _0x42f6b6 of _0x33fb49['model']['createRangeIn'](_0x12f0f1['item'])['getItems']())_0x3fc419['consumable']['consume'](_0x42f6b6,_0x2f5f95['name']);_0x3fc419['consumable']['consume'](_0x12f0f1['item'],_0x2f5f95['name']);}};_0x33fb49['conversion']['for']('dataDowncast')['add'](_0x4a3da2=>{_0x4a3da2['on']('addMarker:suggestion:formatBlock',(_0x5a6b6e,_0xf4a658,_0x5a8c85)=>{_0x5a8c85['options']['showSuggestionHighlights']&&_0x783a43({'showActiveMarkers':!0x1})(_0x5a6b6e,_0xf4a658,_0x5a8c85);},{'priority':'highest'});}),_0x33fb49['conversion']['for']('dataDowncast')['add'](_0xf190f7=>{_0xf190f7['on']('addMarker:suggestion:attribute',(_0x5abe0c,_0x272017,_0x458ded)=>{_0x458ded['options']['showSuggestionHighlights']&&_0x783a43({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5abe0c,_0x272017,_0x458ded);},{'priority':'highest'});}),_0x33fb49['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x51aa96,_0x34eac5)=>_0x34eac5['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x51aa96['substr'](0xb)}}),_0x33fb49['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x377d76,{writer:_0x988502})=>{let _0x2d844d='suggestion:'+_0x377d76['getAttribute']('suggestion-type')+':'+_0x377d76['getAttribute']('id');return _0x377d76['getAttribute']('marker-count')&&(_0x2d844d+=':'+_0x377d76['getAttribute']('marker-count')),_0x988502['createElement']('$marker',{'data-name':_0x2d844d});}}),_0x33fb49['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33fb49['conversion']['for']('editingDowncast')['add'](_0x2cf696=>{_0x2cf696['on']('addMarker:suggestion:formatBlock',_0x783a43(),{'priority':'high'});}),_0x33fb49['conversion']['for']('editingDowncast')['add'](_0x1769a9=>{_0x1769a9['on']('addMarker:suggestion:attribute',_0x783a43({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x33fb49['conversion']['for']('editingDowncast')['add'](_0x3e7eb7=>{_0x3e7eb7['on']('removeMarker:suggestion:formatBlock',(_0x24c61e,_0x287f4e,_0x18a332)=>{const _0x4c7aaf=_0x18a332['mapper']['markerNameToElements'](_0x287f4e['markerName']);if(_0x4c7aaf){for(const _0xeef23f of _0x4c7aaf)_0xeef23f['getCustomProperty']('addHighlight')||(_0x18a332['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xeef23f),_0x18a332['writer']['removeAttribute']('data-suggestion',_0xeef23f),_0x18a332['writer']['removeAttribute']('data-author-id',_0xeef23f),_0x18a332['mapper']['unbindElementFromMarkerName'](_0xeef23f,_0x287f4e['markerName']));}},{'priority':'high'});}),_0x33fb49['conversion']['for']('editingDowncast')['add'](_0x5c57b9=>{_0x5c57b9['on']('removeMarker:suggestion:attribute',(_0x8c7568,_0x1b3f87,_0x3e313c)=>{const _0x2cfb4e=_0x3e313c['mapper']['markerNameToElements'](_0x1b3f87['markerName']);if(!_0x2cfb4e)return;const {id:_0x35b5d7}=this['_splitMarkerName'](_0x1b3f87['markerName']),_0x134b1a=this['_suggestions']['get'](_0x35b5d7),_0x5575ce=this['_getAttributeKey'](_0x134b1a);if(this['_isBlockAttribute'](_0x5575ce)){for(const _0x142cae of _0x2cfb4e)_0x142cae['getCustomProperty']('addHighlight')||(_0x3e313c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x142cae),_0x3e313c['writer']['removeAttribute']('data-suggestion',_0x142cae),_0x3e313c['writer']['removeAttribute']('data-author-id',_0x142cae),_0x3e313c['mapper']['unbindElementFromMarkerName'](_0x142cae,_0x1b3f87['markerName']));}},{'priority':'high'});}),_0x33fb49['model']['document']['registerPostFixer'](_0x5f14bc=>{let _0x3c514c=!0x1;const _0x20ebcc=Array['from'](_0x33fb49['model']['document']['differ']['getChangedMarkers']()),_0x29c70d=new Set();for(const {name:_0x49e86e,data:_0x2441fa}of _0x20ebcc){const {group:_0x4dfc41,type:_0x4b712,subType:_0x307044,id:_0x2a73fe}=this['_splitMarkerName'](_0x49e86e);if('suggestion'!==_0x4dfc41)continue;const _0x507183=this['_suggestions']['get'](_0x2a73fe);if(null!=_0x2441fa['newRange']){'formatInline'==_0x4b712&&(_0x3c514c=_0x3c514c||Pt(_0x2441fa['newRange'],_0x49e86e,_0x5f14bc,_0x33fb49['model']['schema']));const _0x768cd4='attribute'==_0x4b712&&this['_isBlockAttribute'](_0x307044['split']('|')[0x0]);if(_0x2441fa['newRange']['isCollapsed']||'$graveyard'==_0x2441fa['newRange']['root']['rootName']||'formatBlock'==_0x4b712&&!Ft(_0x2441fa['newRange'])||_0x768cd4&&!Ft(_0x2441fa['newRange'])||'deletion'==_0x4b712&&!(!Vt(_0x276291=_0x2441fa['newRange'])&&!function(_0x22fd7c){return _0x22fd7c['start']['parent']==_0x22fd7c['end']['nodeBefore']&&_0x22fd7c['start']['isAtEnd'];}(_0x276291)))_0x5f14bc['removeMarker'](_0x49e86e),_0x3c514c=!0x0;else{if(!_0x507183||!_0x507183['isInContent'])continue;if(_0x2441fa['newRange']&&_0x2441fa['oldRange']&&_0x2441fa['newRange']['isEqual'](_0x2441fa['oldRange']))continue;_0x29c70d['add'](_0x507183);}}}var _0x276291;return _0x29c70d['size']>0x0&&(_0x3c514c=!!this['_joinWithAdjacentSuggestions'](_0x29c70d)||_0x3c514c),_0x3c514c;}),_0x33fb49['model']['document']['registerPostFixer'](_0x8e8712=>{let _0x52b505=!0x1;for(const _0x5401c2 of _0x33fb49['model']['document']['differ']['getChanges']())if('insert'==_0x5401c2['type'])for(const _0x58bf11 of this['_suggestions']['values']()){if(_0x58bf11['isMultiRange']||!_0x58bf11['isInContent'])continue;const _0x155ca9='formatBlock'==_0x58bf11['type'],_0x46625f=this['_getAttributeKey'](_0x58bf11),_0xb11be2=_0x46625f&&this['_isBlockAttribute'](_0x46625f);if(!_0x155ca9&&!_0xb11be2)continue;const _0x5b738f=_0x58bf11['getFirstRange']();if(_0x5b738f['start']['parent']!=_0x5b738f['end']['parent']&&!_0x5b738f['end']['isAtEnd']){const _0x5b8936=_0x33fb49['model']['createPositionAt'](_0x5b738f['start']['nodeAfter'],'end'),_0x4f7d6c=_0x33fb49['model']['createRange'](_0x5b738f['start'],_0x5b8936);_0x8e8712['updateMarker'](_0x58bf11['getFirstMarker'](),{'range':_0x4f7d6c}),_0x52b505=!0x0;}}return _0x52b505;}),_0x33fb49['model']['document']['registerPostFixer'](_0x510b3c=>this['_processAttributeChanges'](_0x510b3c)),_0x33fb49['model']['document']['registerPostFixer'](_0x42808e=>!_0x42808e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x42808e)),_0x33fb49['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33fb49['model']['document']['on']('change:data',(_0x250807,_0x4dd829)=>{if(!_0x4dd829['isLocal']||_0x4dd829['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4dafc1=_0x33fb49['model']['document']['differ']['getChanges']();if(0x0==_0x4dafc1['length'])return;const _0x336e24=[],_0x5a59e6=_0x4dafc1['filter'](_0x129ee4=>'attribute'==_0x129ee4['type']),_0x13d3e0=_0x4dafc1['filter'](_0x519955=>'insert'==_0x519955['type']&&'$text'!=_0x519955['name']);for(const _0x53f48f of _0x5a59e6)this['_isRegisteredAttribute'](_0x53f48f['attributeKey'])&&_0x336e24['push']({'key':_0x53f48f['attributeKey'],'newValue':_0x53f48f['attributeNewValue'],'oldValue':_0x53f48f['attributeOldValue'],'range':Lt(_0x53f48f['range'],_0x33fb49['model'])});for(const _0x5e3c27 of _0x13d3e0){if('rename'!=_0x5e3c27['action']&&'refresh'!=_0x5e3c27['action'])continue;const _0x5eb6cf=Jt(_0x5e3c27['position']['nodeAfter'],_0x33fb49['model']),_0x23903d=_0x5e3c27['before'];'rename'==_0x5e3c27['action']&&_0x336e24['push']({'key':m,'newValue':_0x5e3c27['name'],'oldValue':_0x23903d['name'],'range':_0x5eb6cf});for(const [_0x509cf0,_0x62cf47]of _0x23903d['attributes']){if(!this['_isRegisteredAttribute'](_0x509cf0))continue;const _0x2415f8=_0x5e3c27['attributes']['get'](_0x509cf0);_0x62cf47!==_0x2415f8&&_0x336e24['push']({'key':_0x509cf0,'newValue':_0x2415f8,'oldValue':_0x62cf47,'range':_0x5eb6cf});}for(const [_0x2a9ff5,_0x14b1a0]of _0x5e3c27['attributes'])this['_isRegisteredAttribute'](_0x2a9ff5)&&(_0x23903d['attributes']['has'](_0x2a9ff5)||_0x336e24['push']({'key':_0x2a9ff5,'newValue':_0x14b1a0,'oldValue':null,'range':_0x5eb6cf}));}0x0!=_0x336e24['length']&&_0x33fb49['model']['enqueueChange'](_0x4dd829,_0x35ebc5=>{const _0x353092=_0x4f08f2();for(const {range:_0x23c2ad,key:_0x353f51,oldValue:_0x3adba9,newValue:_0x316c9c}of _0x336e24)this['markAttributeChange'](_0x23c2ad,_0x353f51,_0x3adba9,_0x316c9c,{'groupId':_0x353092});this['_reduceExistingSuggestions'](_0x35ebc5,_0x336e24);});},{'priority':'lowest'}),_0x33fb49['model']['markers']['on']('update:suggestion',(_0x292601,_0x26b365,_0x525fd8)=>{if(null==_0x525fd8){const {id:_0x5bc327}=this['_splitMarkerName'](_0x26b365['name']),_0x2d1cfd=this['_suggestions']['get'](_0x5bc327);_0x2d1cfd&&_0x2d1cfd['addMarkerName'](_0x26b365['name']);}}),_0x33fb49['model']['document']['on']('change:data',()=>{const _0x1702f6=Array['from'](_0x33fb49['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3506b2=>'suggestion'===this['_splitMarkerName'](_0x3506b2['name'])['group']);if(0x0===_0x1702f6['length'])return;_0x1702f6['sort']((_0xf7bfbb,_0x4970e1)=>{const _0x450c82=_0xf7bfbb['data']['oldRange'],_0x1a0059=_0x4970e1['data']['oldRange'];return null===_0x450c82&&null===_0x1a0059?0x0:null===_0x450c82&&null!==_0x1a0059?-0x1:null!==_0x450c82&&null===_0x1a0059?0x1:_0x450c82['start']['isBefore'](_0x1a0059['start'])?-0x1:0x1;});const _0xec437e=new Set(),_0x5d9e52=new Set();for(const {name:_0xb80356,data:_0x8dd3ea}of _0x1702f6){const {id:_0x8568f8}=this['_splitMarkerName'](_0xb80356);if(null===_0x8dd3ea['oldRange']){const _0x296798=this['_handleNewSuggestionMarker'](_0xb80356);_0x5d9e52['add'](_0x296798);}else{const _0x42f715=this['_suggestions']['get'](_0x8568f8);null!==_0x8dd3ea['newRange']||_0x42f715['isInContent']?(_0xec437e['add'](_0x42f715['head']),_0x5d9e52['add'](_0x42f715)):this['_removeSuggestion'](_0x42f715);}}_0x5d9e52['size']>0x0&&this['_refreshSuggestionsChain'](_0x5d9e52);for(const _0x5b3bb7 of _0xec437e)this['fire']('suggestionChanged',_0x5b3bb7);}),_0x33fb49['model']['on']('applyOperation',(_0xbadecb,_0x5ee1de)=>{const _0xfb075e=_0x5ee1de[0x0];if(!this['_suggestions']['size'])return;if(!_0xfb075e['isDocumentOperation'])return;if(_0xfb075e['batch']['isUndo']||!_0xfb075e['batch']['isLocal'])return;let _0x3ecd13,_0xe59a1e;switch(_0xfb075e['type']){case'insert':_0x3ecd13=_0x33fb49['model']['createPositionAt'](_0xfb075e['position']),_0xe59a1e=_0x3ecd13['getShiftedBy'](_0xfb075e['howMany']);break;case'split':_0x3ecd13=_0x33fb49['model']['createPositionAt'](_0xfb075e['splitPosition']),_0xe59a1e=_0x33fb49['model']['createPositionAt'](_0xfb075e['moveTargetPosition']);break;case'move':_0x3ecd13=_0x33fb49['model']['createPositionAt'](_0xfb075e['targetPosition']),_0xe59a1e=_0x3ecd13['getShiftedBy'](_0xfb075e['howMany']);break;default:return;}const _0x4d5941=_0x33fb49['model']['createRange'](_0x3ecd13,_0xe59a1e);_0x33fb49['model']['change'](()=>{for(const {suggestion:_0x3ca9ac,meta:_0x5e0a33}of this['_findSuggestions'](_0x4d5941)){if(_0x3ca9ac['isMultiRange'])continue;if('formatInline'==_0x3ca9ac['type'])continue;const _0x28b97e=this['_getAttributeKey'](_0x3ca9ac);if(_0x28b97e&&this['_isBlockAttribute'](_0x28b97e)&&'split'!=_0xfb075e['type'])continue;const _0x783ebb=_0x3ca9ac['data']&&_0x3ca9ac['data']['multipleBlocks'];('formatBlock'!=_0x3ca9ac['type']||'split'==_0xfb075e['type']&&!_0x783ebb)&&(_0x5e0a33['containsRangeInObject']||'insertion'==_0x3ca9ac['type']&&_0x5e0a33['isOwn']||_0x3ca9ac['getFirstRange']()['containsRange'](_0x4d5941)&&this['_breakSuggestionMarker'](_0x3ca9ac,_0x3ecd13,_0xe59a1e));}});},{'priority':'lowest'}),_0x33fb49['model']['on']('deleteContent',(_0x32a387,_0x245e57)=>{const _0x3095d4=_0x245e57[0x0],_0x3b88e9=_0x245e57[0x1];if(_0x3b88e9&&_0x3b88e9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3095d4['isCollapsed'])return;const _0x219ce0=_0x33fb49['model']['schema'],{start:_0x6f70f4,end:_0x11fd1c}=_0x3095d4['getFirstRange'](),_0x55766b=_0x6f70f4['nodeAfter']&&_0x219ce0['isLimit'](_0x6f70f4['nodeAfter'])?null:_0x219ce0['getNearestSelectionRange'](_0x6f70f4,'forward'),_0x3c52e9=_0x11fd1c['nodeBefore']&&_0x219ce0['isLimit'](_0x11fd1c['nodeBefore'])?null:_0x219ce0['getNearestSelectionRange'](_0x11fd1c,'backward'),_0x53a012=_0x33fb49['model']['createRange'](_0x55766b?_0x55766b['start']:_0x6f70f4,_0x3c52e9?_0x3c52e9['end']:_0x11fd1c);_0x33fb49['model']['change'](_0x207346=>{this['markDeletion'](_0x53a012);const _0x577acc=_0x33fb49['model']['schema']['getNearestSelectionRange'](_0x53a012['start']);_0x3095d4['is']('documentSelection')?_0x207346['setSelection'](_0x577acc):_0x3095d4['setTo'](_0x577acc);}),_0x32a387['stop']();},{'priority':_0x2857cb['normal']+0xa}),_0x33fb49['model']['on']('insertContent',(_0x5a10ed,_0x46c7ab)=>{const _0x4eea36=_0x46c7ab[_0x46c7ab['length']-0x1];_0x4eea36&&_0x4eea36['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33fb49['model']['change'](()=>{let _0x3583c7=_0x33fb49['model']['insertContent'](_0x46c7ab[0x0],_0x46c7ab[0x1],_0x46c7ab[0x2],{'forceDefaultExecution':!0x0});if(!_0x3583c7)return;_0x5a10ed['return']=_0x3583c7['clone']();const _0x860dfb=_0x3583c7['end']['nodeBefore'],_0x46a3b1=_0x33fb49['model']['schema'];_0x860dfb&&_0x46a3b1['isBlock'](_0x860dfb)&&!_0x46a3b1['isObject'](_0x860dfb)&&(_0x3583c7=_0x33fb49['model']['createRange'](_0x3583c7['start'],_0x33fb49['model']['createPositionAt'](_0x860dfb,'end'))),this['markInsertion'](_0x3583c7);}),_0x5a10ed['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x56b5b7=new O(_0x33fb49,this['_suggestions']);_0x33fb49['commands']['add']('acceptSuggestion',_0x56b5b7),this['enableCommand']('acceptSuggestion');const _0x1ab879=new R(_0x33fb49,this['_suggestions']);_0x33fb49['commands']['add']('discardSuggestion',_0x1ab879),this['enableCommand']('discardSuggestion'),_0x33fb49['commands']['add']('acceptAllSuggestions',new x(_0x33fb49,_0x56b5b7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33fb49['commands']['add']('discardAllSuggestions',new x(_0x33fb49,_0x1ab879,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33fb49['commands']['add']('acceptSelectedSuggestions',new E(_0x33fb49,_0x56b5b7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33fb49['commands']['add']('discardSelectedSuggestions',new E(_0x33fb49,_0x1ab879,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4dc335=_0x33fb49['plugins']['get']('CommentsRepository');this['listenTo'](_0x4dc335,'addComment',(_0x4c0c47,{threadId:_0x174732})=>{const _0x556527=this['_suggestions']['get'](_0x174732);_0x556527&&_0x556527['commentThread']&&0x1===_0x556527['commentThread']['length']&&this['_updateSuggestionData'](_0x174732,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4dc335,'removeComment',(_0xb8a9ca,{threadId:_0x3ace84})=>{const _0x14ffbd=this['_suggestions']['get'](_0x3ace84);_0x14ffbd&&_0x14ffbd['commentThread']&&!_0x14ffbd['commentThread']['length']&&this['_updateSuggestionData'](_0x3ace84,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x36e550){const _0x3f5d43=_0x192de2([0x5a,0x4b,0x65,0x6f,0x31,0x47,0x42,0x30,0x69,0x51,0x63,0x73,0x7a,0x6c,0x6e,0x36,0x39,0x64,0x78,0x79,0x75,0x44,0x46,0x58,0x68,0x71,0x34,0x32,0x56,0x54,0x59,0x45,0x4d,0x6b,0x4a,0x77,0x66,0x52,0x62,0x49,0x6d,0x4f,0x4c,0x72,0x74,0x57,0x76,0x4e,0x50,0x37,0x6a,0x53,0x41,0x55,0x35,0x67,0x43,0x61,0x70,0x48,0x38,0x33]),_0x230a70=0xb852d78,_0x244c9e=0xb8274b8^_0x230a70,_0x45e7f7=window[_0x192de2([0x44,0x61,0x74,0x65])][_0x192de2([0x6e,0x6f,0x77])](),_0x2e3f55=_0x36e550[_0x192de2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38330f=new window[(_0x192de2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ce39=>{_0x2e3f55[_0x192de2([0x6f,0x6e,0x63,0x65])](_0x192de2([0x72,0x65,0x61,0x64,0x79]),_0x57ce39);}),_0x45f0d={[_0x192de2([0x6b,0x74,0x79])]:_0x192de2([0x45,0x43]),[_0x192de2([0x75,0x73,0x65])]:_0x192de2([0x73,0x69,0x67]),[_0x192de2([0x63,0x72,0x76])]:_0x192de2([0x50,0x2d,0x32,0x35,0x36]),[_0x192de2([0x78])]:_0x192de2([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]),[_0x192de2([0x79])]:_0x192de2([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]),[_0x192de2([0x61,0x6c,0x67])]:_0x192de2([0x45,0x53,0x32,0x35,0x36])},_0x40e087=_0x2e3f55[_0x192de2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x192de2([0x67,0x65,0x74])](_0x192de2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a32e7(){let _0xf4d96f,_0x8ebb3e=null,_0x2ccb33=null;try{if(_0x40e087==_0x192de2([0x47,0x50,0x4c]))return _0x192de2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf4d96f=_0x5c9382(),!_0xf4d96f)return _0x192de2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf4d96f[_0x192de2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ccb33=_0x45ee60(_0xf4d96f[_0x192de2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf4d96f[_0x192de2([0x6a,0x74,0x69])])),await _0x1d40ec()?_0x476ca6()?_0x3550df()?_0x192de2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d868f()?(_0xf4d96f[_0x192de2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x192de2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x8ebb3e=_0xe0f14f(_0x192de2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf4d96f[_0x192de2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x192de2([0x74,0x72,0x69,0x61,0x6c])&&(_0x8ebb3e=_0xe0f14f(_0x192de2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xf4d96f[_0x192de2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x192de2([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x8ebb3e=_0xe0f14f(_0x192de2([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x520955()):_0x192de2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x192de2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x192de2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1200b0){return _0x192de2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3550df(){const _0x48ee40=[_0x192de2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x192de2([0x74,0x72,0x69,0x61,0x6c])][_0x192de2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf4d96f[_0x192de2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45e7f7/0x3e8:0xe10*_0x244c9e;return _0xf4d96f[_0x192de2([0x65,0x78,0x70])]<_0x48ee40;}function _0x476ca6(){const _0x1164bf=_0xf4d96f[_0x192de2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1164bf)return!0x1;if(_0x1164bf[_0x192de2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x192de2([0x2a])))return!0x0;if(_0x1164bf[_0x192de2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x192de2([0x54,0x43])))return!0x0;if(_0x1164bf[_0x192de2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x192de2([0x52,0x54,0x43]))){if(_0x35fab3())return!0x0;if(_0x33d2fc()||_0x166715())return!0x0;}return!0x1;}function _0x1d868f(){const _0x24497c=_0xf4d96f[_0x192de2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24497c||0x0==_0x24497c[_0x192de2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x76a320}=new URL(window[_0x192de2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24497c[_0x192de2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76a320))return!0x0;const _0x4519cc=_0x76a320[_0x192de2([0x73,0x70,0x6c,0x69,0x74])](_0x192de2([0x2e]));return _0x24497c[_0x192de2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x494451=>_0x494451[_0x192de2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x192de2([0x2a])))[_0x192de2([0x6d,0x61,0x70])](_0x3a70d7=>_0x3a70d7[_0x192de2([0x73,0x70,0x6c,0x69,0x74])](_0x192de2([0x2e])))[_0x192de2([0x73,0x6f,0x6d,0x65])](_0x1b6b3f=>_0x4519cc[_0x192de2([0x65,0x76,0x65,0x72,0x79])]((_0x2dc2b8,_0x10550c)=>_0x1b6b3f[_0x10550c]===_0x2dc2b8||_0x1b6b3f[_0x10550c]===_0x192de2([0x2a])));}function _0x520955(){return _0x8ebb3e&&_0x2ccb33?new window[(_0x192de2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x548fee,_0x10eae7)=>{_0x8ebb3e[_0x192de2([0x74,0x68,0x65,0x6e])](_0x548fee,_0x10eae7),_0x2ccb33[_0x192de2([0x74,0x68,0x65,0x6e])](_0x377382=>{_0x377382!=_0x192de2([0x56,0x61,0x6c,0x69,0x64])&&_0x548fee(_0x377382);},_0x10eae7);}):_0x8ebb3e||_0x2ccb33||_0x192de2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x45ee60(_0x4522b0,_0x476304){return new window[(_0x192de2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2be659=>{if(_0xf8781a())return _0x2be659(_0x192de2([0x56,0x61,0x6c,0x69,0x64]));_0x481a05(),_0x2e3f55[_0x192de2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x192de2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3911fd=!0x1;const _0x41948e=_0x4f08f2();function _0x2f9725(_0x55dc00){return!!_0x55dc00&&(typeof _0x55dc00===_0x192de2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55dc00===_0x192de2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55dc00[_0x192de2([0x74,0x68,0x65,0x6e])]===_0x192de2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55dc00[_0x192de2([0x63,0x61,0x74,0x63,0x68])]===_0x192de2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48c5a4(_0x9333db){_0x4d0ad0(_0x9333db)[_0x192de2([0x74,0x68,0x65,0x6e])](_0xc48540=>{if(!_0xc48540||_0xc48540[_0x192de2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x192de2([0x6f,0x6b]))return _0x192de2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2efc32(_0x2818ab(_0x41948e+_0x476304))!=_0xc48540[_0x192de2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x192de2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x192de2([0x56,0x61,0x6c,0x69,0x64]);})[_0x192de2([0x74,0x68,0x65,0x6e])](_0x5f214f=>(_0x51776d(),_0x5f214f),()=>{const _0x190952=_0x2d2b84();return null==_0x190952?(_0x51776d(),_0x192de2([0x56,0x61,0x6c,0x69,0x64])):_0x192de2(_0x45e7f7-_0x190952>(0x2f89a978^_0x230a70)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x192de2([0x74,0x68,0x65,0x6e])](_0x2be659)[_0x192de2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2be659(_0x192de2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x415e9f=0xbb3c3f8^_0x230a70;function _0x51776d(){const _0x499002=_0x192de2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2efc32(_0x2818ab(_0x4522b0)),_0x2b70ac=_0x40c5e6(_0x2efc32(window[_0x192de2([0x4d,0x61,0x74,0x68])][_0x192de2([0x63,0x65,0x69,0x6c])](_0x45e7f7/_0x415e9f)));window[_0x192de2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x192de2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x499002,_0x2b70ac);}function _0x2d2b84(){const _0x4ebc58=_0x192de2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2efc32(_0x2818ab(_0x4522b0)),_0x545695=window[_0x192de2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x192de2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ebc58);return _0x545695?window[_0x192de2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40c5e6(_0x545695),0x10)*_0x415e9f:null;}function _0x4d0ad0(_0x10016a){return new window[(_0x192de2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d2e22,_0xeb063a)=>{_0x10016a[_0x192de2([0x74,0x68,0x65,0x6e])](_0x1d2e22,_0xeb063a),window[_0x192de2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xeb063a,0xb84f9b8^_0x230a70);});}}_0x2e3f55[_0x192de2([0x6f,0x6e])](_0x192de2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c8f5c,_0x1ed41b)=>{if(_0x1ed41b[0x0]!=_0x4522b0)return _0x2be659(_0x192de2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ed41b[0x1]={..._0x1ed41b[0x1],[_0x192de2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41948e};},{[_0x192de2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x192de2([0x68,0x69,0x67,0x68])}),_0x2e3f55[_0x192de2([0x6f,0x6e])](_0x192de2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x93ce84=>{_0x2f9725(_0x93ce84[_0x192de2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3911fd=!0x0,_0x48c5a4(_0x93ce84[_0x192de2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x192de2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x192de2([0x6c,0x6f,0x77])}),_0x38330f[_0x192de2([0x74,0x68,0x65,0x6e])](()=>{_0x3911fd||_0x2be659(_0x192de2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf8781a(){return _0x2e3f55[_0x192de2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x192de2([0x76,0x69,0x65,0x77])][_0x192de2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x192de2([0x61,0x75,0x74,0x6f]);}function _0x481a05(){_0x2e3f55[_0x192de2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x192de2([0x76,0x69,0x65,0x77])][_0x192de2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x192de2([0x61,0x75,0x74,0x6f]);}}function _0xe0f14f(_0x38b868){const _0x213eeb=[new window[(_0x192de2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fd0e1=>setTimeout(_0x3fd0e1,0xb8c13b4^_0x230a70)),_0x38330f[_0x192de2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x192de2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f446c=>{let _0x5e645c=0x0;_0x2e3f55[_0x192de2([0x6d,0x6f,0x64,0x65,0x6c])][_0x192de2([0x6f,0x6e])](_0x192de2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x469804,_0x8ac021)=>{_0x8ac021[0x0][_0x192de2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e645c++,_0x5e645c==(0xb852c80^_0x230a70)&&(_0x5f446c(),_0x469804[_0x192de2([0x6f,0x66,0x66])]());});}))];return window[_0x192de2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x192de2([0x72,0x61,0x63,0x65])](_0x213eeb)[_0x192de2([0x74,0x68,0x65,0x6e])](()=>_0x38b868);}async function _0x1eaa05(){await _0x38330f,_0x2e3f55[_0x192de2([0x6d,0x6f,0x64,0x65,0x6c])][_0x192de2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x594a2c,_0x2e3f55[_0x192de2([0x6d,0x6f,0x64,0x65,0x6c])][_0x192de2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x594a2c,_0x2e3f55[_0x192de2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x192de2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35fab3(){return _0x222e04(_0x192de2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4768d9(_0x192de2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x192de2([0x73,0x74,0x61,0x74,0x65])]==_0x192de2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x33d2fc(){return _0x222e04(_0x192de2([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 _0x166715(){return _0x222e04(_0x192de2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2462ec(_0x27de3f){const _0x4f7cdd=_0x19f2ac();_0x2e3f55[_0x4f7cdd]=_0x192de2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27de3f,_0x27de3f!=_0x192de2([0x56,0x61,0x6c,0x69,0x64])&&_0x1eaa05();}function _0x19f2ac(){const _0x2c518b=window[_0x192de2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x192de2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x192de2([0x6e,0x6f,0x77])]())[_0x192de2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x192de2([0x2e]),'');let _0xdfa640=_0x192de2([0x5a]);for(let _0x15d3ea=0x0;_0x15d3ea<_0x2c518b[_0x192de2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15d3ea+=0x2){let _0x488f76=window[_0x192de2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c518b[_0x192de2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15d3ea,_0x15d3ea+0x2));_0x488f76>=_0x3f5d43[_0x192de2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x488f76-=_0x3f5d43[_0x192de2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdfa640+=_0x3f5d43[_0x488f76];}return _0xdfa640;}function _0x5c9382(){const _0x279619=_0x40e087[_0x192de2([0x73,0x70,0x6c,0x69,0x74])](_0x192de2([0x2e]));if(0x3!=_0x279619[_0x192de2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1391e5(_0x279619[0x1]);function _0x1391e5(_0x110ec0){const _0x10e124=_0x260be9(_0x110ec0);return _0x10e124&&_0x31e57f()?_0x10e124:null;function _0x31e57f(){const _0x39bdbb=_0x10e124[_0x192de2([0x6a,0x74,0x69])],_0x5f48f7=window[_0x192de2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39bdbb[_0x192de2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39bdbb[_0x192de2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3babe3={..._0x10e124,[_0x192de2([0x6a,0x74,0x69])]:_0x39bdbb[_0x192de2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39bdbb[_0x192de2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3babe3[_0x192de2([0x76,0x63])],_0x2818ab(_0x3babe3)==_0x5f48f7;}}}async function _0x1d40ec(){let _0x3ebfbd=!0x0;try{const _0x5303bb=_0x40e087[_0x192de2([0x73,0x70,0x6c,0x69,0x74])](_0x192de2([0x2e])),[_0xc829a1,_0x50d4f5,_0x575ed5]=_0x5303bb;return _0x4bb9d5(_0xc829a1),await _0x274fb4(_0xc829a1,_0x50d4f5,_0x575ed5),_0x3ebfbd;}catch(_0x5f9b1a){return!0x1;}function _0x4bb9d5(_0x2ed4a6){const _0x3bcde3=_0x260be9(_0x2ed4a6);_0x3bcde3&&_0x3bcde3[_0x192de2([0x61,0x6c,0x67])]==_0x192de2([0x45,0x53,0x32,0x35,0x36])||(_0x3ebfbd=!0x1);}async function _0x274fb4(_0x5cc87b,_0x84d53,_0x5066ef){const _0x59841b=window[_0x192de2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x192de2([0x66,0x72,0x6f,0x6d])](_0x1f1d69(_0x5066ef),_0x159e53=>_0x159e53[_0x192de2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18f72a=new window[(_0x192de2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x192de2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5cc87b+_0x192de2([0x2e])+_0x84d53),_0x2baeb2=window[_0x192de2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x192de2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2baeb2)return;const _0x3c146b=await _0x2baeb2[_0x192de2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x192de2([0x6a,0x77,0x6b]),_0x45f0d,{[_0x192de2([0x6e,0x61,0x6d,0x65])]:_0x192de2([0x45,0x43,0x44,0x53,0x41]),[_0x192de2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x192de2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x192de2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2baeb2[_0x192de2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x192de2([0x6e,0x61,0x6d,0x65])]:_0x192de2([0x45,0x43,0x44,0x53,0x41]),[_0x192de2([0x68,0x61,0x73,0x68])]:{[_0x192de2([0x6e,0x61,0x6d,0x65])]:_0x192de2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c146b,_0x59841b,_0x18f72a)||(_0x3ebfbd=!0x1);}}function _0x260be9(_0x4822af){return _0x4822af[_0x192de2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x192de2([0x65,0x79]))?JSON[_0x192de2([0x70,0x61,0x72,0x73,0x65])](_0x1f1d69(_0x4822af)):null;}function _0x1f1d69(_0x242d54){return window[_0x192de2([0x61,0x74,0x6f,0x62])](_0x242d54[_0x192de2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x192de2([0x2b]))[_0x192de2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x192de2([0x2f])));}function _0x2818ab(_0x5dec0c){let _0x4b3627=0x1505;function _0x263fc2(_0x5ab0aa){for(let _0x2252c2=0x0;_0x2252c2<_0x5ab0aa[_0x192de2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2252c2++){const _0x3766c0=_0x5ab0aa[_0x192de2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2252c2);_0x4b3627=(_0x4b3627<<0x5)+_0x4b3627+_0x3766c0,_0x4b3627&=_0x4b3627;}}function _0xa21c58(_0x335da5){Array[_0x192de2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x335da5)?_0x335da5[_0x192de2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa21c58):_0x335da5&&typeof _0x335da5==_0x192de2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x192de2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x335da5)[_0x192de2([0x73,0x6f,0x72,0x74])]()[_0x192de2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11ec22,_0x55a0e9])=>{_0x263fc2(_0x11ec22),_0xa21c58(_0x55a0e9);}):_0x263fc2(window[_0x192de2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x335da5));}return _0xa21c58(_0x5dec0c),_0x4b3627>>>0x0;}function _0x2efc32(_0x11e4ac){return _0x11e4ac[_0x192de2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x192de2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x192de2([0x30]));}function _0x40c5e6(_0x27e66f){return _0x27e66f[_0x192de2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x192de2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x192de2([0x6a,0x6f,0x69,0x6e])]('');}function _0x222e04(_0x2592d3){return _0x2e3f55[_0x192de2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x192de2([0x68,0x61,0x73])](_0x2592d3);}function _0x4768d9(_0x56edab){return _0x2e3f55[_0x192de2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x192de2([0x67,0x65,0x74])](_0x56edab);}function _0x594a2c(){}function _0x192de2(_0x18ab04){return _0x18ab04['map'](_0x2d4c80=>String['fromCharCode'](_0x2d4c80))['join']('');}_0x2462ec(await _0x1a32e7());}(this);}set['adapter'](_0x11cc2c){if(this['_adapter'])throw new _0x248d7e('track-changes-adapter-already-set',this);this['_adapter']=_0x11cc2c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2a33fe=!0x1,toJSON:_0x4d66b7=!0x1}={}){const _0xcd296d=[];for(const _0x3d9a6a of this['_suggestions']['values']())_0x2a33fe&&!_0x3d9a6a['isInContent']||_0xcd296d['push'](_0x3d9a6a);return _0x4d66b7?_0xcd296d['map'](_0x106254=>_0x106254['toJSON']()):_0xcd296d;}['getSuggestion'](_0x145312){const _0x5aeed4=this['_suggestions']['get'](_0x145312);if(!_0x5aeed4)throw new _0x248d7e('track-changes-suggestion-not-found',this);return _0x5aeed4;}['hasSuggestion'](_0x3d99b4){return this['_suggestions']['has'](_0x3d99b4);}['addSuggestionData'](_0x2670a0){const {authorId:_0x28ae91,id:_0x4c33fe,attributes:_0x369aec}=_0x2670a0,[_0x1faecc,_0x3e1ea2]=_0x2670a0['type']['split'](':'),_0x5a498e=this['_suggestions']['get'](_0x4c33fe)||this['_createSuggestion'](_0x1faecc,_0x3e1ea2,_0x4c33fe,_0x28ae91,_0x369aec);if(this['_addThreadToSuggestion'](_0x5a498e),this['_checkSuggestionCorrectness'](_0x5a498e,_0x1faecc,_0x3e1ea2||null,_0x28ae91),_0x5a498e['createdAt']=_0x2670a0['createdAt'],_0x5a498e['_isDataLoaded']=!0x0,_0x369aec&&_0x369aec['@external']){const _0x1ef02f=_0x369aec['@external'],_0x2db47b=this['_getExternalAuthor'](_0x1ef02f['authorName']);_0x5a498e['authoredAt']=_0x1ef02f['createdAt'],_0x5a498e['author']=_0x2db47b,_0x5a498e['isExternal']=!0x0;}else _0x5a498e['authoredAt']=_0x2670a0['createdAt'];switch(_0x2670a0['data']&&(_0x5a498e['data']=_0x2670a0['data']),_0x2670a0['attributes']&&(_0x5a498e['attributes']=_0x2670a0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5a498e['_saved']=!0x0),this['_suggestionState']['get'](_0x5a498e)){case'notReady':this['_suggestionState']['set'](_0x5a498e,'dataReady');break;case'markerReady':_0x5a498e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5a498e])),this['_refreshSuggestionsChain'](new Set([_0x5a498e])),this['_suggestionState']['set'](_0x5a498e,'ready'),this['fire']('suggestionLoaded',_0x5a498e)):this['_suggestionState']['set'](_0x5a498e,'removed');}return _0x5a498e;}['acceptSuggestion'](_0x119aad){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5f5335 of _0x119aad['getAllAdjacentSuggestions']())_0x5f5335['accept']();});});}['discardSuggestion'](_0x6e7b12){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e5246 of _0x6e7b12['getAllAdjacentSuggestions']())_0x3e5246['discard']();});});}['enableCommand'](_0x57db4b,_0x2e682e){const _0x178816=this['editor']['commands']['get'](_0x57db4b);if(!_0x178816)throw new _0x248d7e('track-changes-command-not-found',this,{'commandName':_0x57db4b});if(this['_enabledCommands']['has'](_0x178816))throw new _0x248d7e('track-changes-enable-command-twice',this,{'commandName':_0x57db4b});this['_enabledCommands']['add'](_0x178816),_0x2e682e&&_0x178816['on']('execute',(_0x429fae,_0x1e2d8f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1e2d8f['length']>0x0&&_0x1e2d8f[_0x1e2d8f['length']-0x1]&&_0x1e2d8f[_0x1e2d8f['length']-0x1]['forceDefaultExecution']?_0x1e2d8f['pop']():(_0x429fae['return']=_0x2e682e((..._0x2b4672)=>_0x178816['execute'](..._0x2b4672,{'forceDefaultExecution':!0x0}),..._0x1e2d8f),_0x429fae['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x529a1c){let _0x8507a8,_0x45e6e1;const _0x1ff319=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x8507a8=_0x529a1c();}catch(_0x319a50){_0x45e6e1=_0x319a50;}return _0x1ff319||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x45e6e1&&_0x248d7e['rethrowUnexpectedError'](_0x45e6e1,this),_0x8507a8;}['markInsertion'](_0x1055e2,_0x131e16=null,_0x3fe183={}){if(_0x1055e2['isCollapsed'])return null;const _0x514053=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x12ef3a,meta:_0x3fb299}of this['_findSuggestions'](_0x1055e2,'insertion'))if(_0x3fb299['isOwn']){if(!_0x3fb299['isNextTo']){if(_0x3fb299['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x12ef3a,_0x3fe183))continue;return _0x12ef3a;}if(zt(_0x12ef3a,_0x3fe183))return _0x12ef3a;this['_breakSuggestionMarker'](_0x12ef3a,_0x1055e2['start'],_0x1055e2['end']);break;}if(_0x131e16==_0x12ef3a['subType']&&zt(_0x12ef3a,_0x3fe183)){const _0x32d44f=_0x12ef3a['getFirstRange']();return _0x32d44f['start']['isEqual'](_0x1055e2['end'])?this['_setSuggestionRange'](_0x12ef3a,this['_model']['createRange'](_0x1055e2['start'],_0x32d44f['end'])):this['_setSuggestionRange'](_0x12ef3a,this['_model']['createRange'](_0x32d44f['start'],_0x1055e2['end'])),_0x12ef3a;}}const _0x1f55cb=_0x4f08f2(),_0x2e6c2f=_0x514053['id'],_0x5902bb=_0x131e16?'insertion:'+_0x131e16:'insertion',_0x2309ac=this['_setSuggestionData']({'id':_0x1f55cb,'type':_0x5902bb,'createdAt':new Date(),'authorId':_0x2e6c2f,'attributes':_0x3fe183});return this['_addSuggestionMarker'](_0x5902bb,_0x1f55cb,_0x2e6c2f,_0x1055e2),_0x2309ac;}['markMultiRangeInsertion'](_0x8f4e19,_0x5ea14e='multi',_0x130532={}){const _0xe510b6=this['editor']['plugins']['get']('Users')['me'],_0x2dd2c3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5ea14e,'join');for(const _0x219399 of this['getSuggestions']())if(_0x219399['author']['id']==_0xe510b6['id']&&'insertion'==_0x219399['type']&&_0x219399['subType']==_0x5ea14e&&zt(_0x219399,_0x130532)&&(_0x2dd2c3(_0x219399['getRanges'](),_0x8f4e19)||_0x2dd2c3(_0x8f4e19,_0x219399['getRanges']()))){for(const _0x3a5728 of _0x8f4e19)_0x219399['addRange'](_0x3a5728);return _0x219399;}for(const {suggestion:_0x16b204,meta:_0x1592aa}of this['_findSuggestions'](_0x8f4e19,'insertion')){if(!_0x1592aa['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1592aa['containsRangeInObject'])continue;if(!zt(_0x16b204,_0x130532))continue;let _0x556cdb=!0x0;for(const _0x1e003a of _0x16b204['getRanges']())for(const _0xab4b78 of _0x8f4e19)if(!_0x1e003a['containsRange'](_0xab4b78)){_0x556cdb=!0x1;break;}if(_0x556cdb)return _0x16b204;}const _0x22a45c=_0x4f08f2(),_0x258378=_0xe510b6['id'],_0x54cf5d='insertion:'+_0x5ea14e,_0x2f4000=this['_setSuggestionData']({'id':_0x22a45c,'type':_0x54cf5d,'createdAt':new Date(),'authorId':_0x258378,'attributes':_0x130532});for(const _0x3797e1 of _0x8f4e19)this['_addSuggestionMarker'](_0x54cf5d,_0x22a45c,_0x258378,_0x3797e1,u['getMultiRangeId']());return _0x2f4000;}['markInlineFormat'](_0x2f7e66,_0x3f87d2,_0x207391=null,_0x21e52c={}){if(_0x207391=_0x207391||Gt(_0x3f87d2),_0x2f7e66['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x419499=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x207391,'accept');return this['forceDefaultExecution'](()=>_0x419499([_0x2f7e66],_0x3f87d2,_0x21e52c)),null;}const _0x5120e3=this['editor']['plugins']['get']('Users')['me'],_0x4bfea7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4fdb8a,meta:_0x3ed8d3}of this['_findSuggestions'](_0x2f7e66,'insertion'))_0x3ed8d3['isOwn']&&!_0x3ed8d3['isInsideObject']&&_0x4bfea7['push'](..._0x4fdb8a['getRanges']());}const _0x309119=function(_0x2bd5d0,_0x3bea19){const _0xf6c9a0=[];for(const _0x138ff9 of _0x3bea19){const _0x571e1c=_0x2bd5d0['getIntersection'](_0x138ff9);_0x571e1c&&_0xf6c9a0['push'](_0x571e1c);}return _0xf6c9a0;}(_0x2f7e66,_0x4bfea7),_0x122f7b=function(_0x31eee6,_0x51c8d2){const _0x1b493f=[_0x31eee6];for(const _0x8a0429 of _0x51c8d2){let _0x3cd43a=0x0;for(;_0x3cd43a<_0x1b493f['length'];){const _0x226331=_0x1b493f[_0x3cd43a]['getDifference'](_0x8a0429);_0x1b493f['splice'](_0x3cd43a,0x1,..._0x226331),_0x3cd43a+=_0x226331['length'];}}return _0x1b493f;}(_0x2f7e66,_0x4bfea7);_0x309119['length']&&this['_model']['change'](()=>{for(const _0x4043b2 of _0x309119){const _0x5506e0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x207391,'accept');this['forceDefaultExecution'](()=>_0x5506e0([_0x4043b2],_0x3f87d2,_0x21e52c));}});for(const _0x5489e4 of _0x122f7b){let _0x16fe1d=null,_0x1c1ec5=_0x5489e4['start'],_0x1aff43=_0x5489e4['end'];for(const {suggestion:_0x51bb5e,meta:_0x595201}of this['_findSuggestions'](_0x5489e4,'formatInline')){if(!_0x595201['isOwn'])continue;if(_0x51bb5e['subType']!=_0x207391)continue;if(!zt(_0x51bb5e,_0x21e52c))continue;const _0x3b8851=_0x51bb5e['getFirstRange']();if(_0x3b8851['containsRange'](_0x5489e4,!0x0))return null;_0x1c1ec5=_0x1c1ec5['isBefore'](_0x3b8851['start'])?_0x1c1ec5:_0x3b8851['start'],_0x1aff43=_0x1aff43['isAfter'](_0x3b8851['end'])?_0x1aff43:_0x3b8851['end'],_0x16fe1d?_0x3b8851['start']['isBefore'](_0x16fe1d['getFirstRange']()['start'])?(_0x16fe1d['removeMarkers'](),_0x16fe1d=_0x51bb5e):_0x51bb5e['removeMarkers']():_0x16fe1d=_0x51bb5e;}const _0x3f1519=this['_model']['createRange'](_0x1c1ec5,_0x1aff43);if(_0x16fe1d)this['_setSuggestionRange'](_0x16fe1d,_0x3f1519);else{const _0x595c38=_0x4f08f2(),_0x116079=_0x5120e3['id'];this['_setSuggestionData']({'id':_0x595c38,'type':'formatInline:'+_0x207391,'data':_0x3f87d2,'createdAt':new Date(),'authorId':_0x116079,'attributes':_0x21e52c}),this['_addSuggestionMarker']('formatInline:'+_0x207391,_0x595c38,_0x116079,_0x3f1519);}}return null;}['markBlockFormat'](_0x454f96,_0x53131c,_0x50e353=[],_0x4c75d8=null,_0x1437b2={}){_0x53131c['formatGroupId']||(_0x53131c['formatGroupId']=_0x53131c['commandName']),_0x53131c['multipleBlocks']=_0x454f96['is']('range'),_0x4c75d8=_0x4c75d8||Gt(_0x53131c);const _0x78ba96=_0x50e353['map'](_0x22c539=>Jt(_0x22c539,this['_model'])),_0x401490=_0x454f96['is']('range')?_0x454f96:Jt(_0x454f96,this['_model']);if('never'===this['_trackFormatChanges']){const _0x240e0b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c75d8,'accept');return this['forceDefaultExecution'](()=>_0x240e0b([_0x401490],_0x53131c,_0x1437b2)),null;}_0x78ba96['push'](_0x401490);let _0x50e3b2=!0x0;for(const _0x5bf613 of _0x78ba96)if(!this['_rangeIsInLocalUserInsertion'](_0x5bf613)){_0x50e3b2=!0x1;break;}if(_0x50e3b2&&'always'!==this['_trackFormatChanges']){const _0x4c43ae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c75d8,'accept');return this['forceDefaultExecution'](()=>_0x4c43ae([_0x401490],_0x53131c,_0x1437b2)),null;}let _0x3a37d5=null,_0x5bb782=_0x401490['start'],_0x3e50ec=_0x401490['end'];for(const {suggestion:_0x104843,meta:_0x4e22f4}of this['_findSuggestions'](_0x401490,'formatBlock')){if(!_0x4e22f4['isOwn'])continue;if(_0x4e22f4['isNextTo']||_0x4e22f4['containsRangeInObject']||_0x4e22f4['isInsideObject'])continue;if(_0x104843['data']['formatGroupId']!=_0x53131c['formatGroupId'])continue;if(!zt(_0x104843,_0x1437b2))continue;const _0x52e65f=_0x104843['getFirstRange']();if(_0x104843['subType']==_0x4c75d8){if(_0x52e65f['containsRange'](_0x401490,!0x0))return null;_0x5bb782=_0x5bb782['isBefore'](_0x52e65f['start'])?_0x5bb782:_0x52e65f['start'],_0x3e50ec=_0x3e50ec['isAfter'](_0x52e65f['end'])?_0x3e50ec:_0x52e65f['end'],_0x3a37d5?_0x52e65f['start']['isBefore'](_0x3a37d5['getFirstRange']()['start'])?(_0x3a37d5['removeMarkers'](),_0x3a37d5=_0x104843):_0x104843['removeMarkers']():_0x3a37d5=_0x104843;}else{const _0x11edd3=_0x401490['getIntersection'](_0x52e65f);this['_cutOutSuggestionMarker'](_0x104843,_0x11edd3);}}const _0x19b0cb=this['editor']['plugins']['get']('Users')['me'],_0x4267e2=_0x4f08f2(),_0x283021=_0x19b0cb['id'];if(_0x3a37d5)return this['_setSuggestionRange'](_0x3a37d5,this['_model']['createRange'](_0x5bb782,_0x3e50ec)),_0x3a37d5;{const _0x40a350=this['_setSuggestionData']({'id':_0x4267e2,'type':'formatBlock:'+_0x4c75d8,'data':_0x53131c,'createdAt':new Date(),'authorId':_0x283021,'attributes':_0x1437b2});return this['_addSuggestionMarker']('formatBlock:'+_0x4c75d8,_0x4267e2,_0x283021,this['_model']['createRange'](_0x5bb782,_0x3e50ec)),_0x40a350;}}['markMultiRangeBlockFormat'](_0x4c9c3b,_0xd50dc7,_0x820b8f=[],_0x1b49a3=null,_0x5e835f={}){_0xd50dc7['formatGroupId']||(_0xd50dc7['formatGroupId']=_0xd50dc7['commandName']);const _0x22c172=_0x4c9c3b[0x0];_0xd50dc7['multipleBlocks']=_0x22c172['is']('range'),_0x1b49a3=_0x1b49a3||Gt(_0xd50dc7);const _0x4f5d6f=_0x820b8f['map'](_0x584a7e=>Jt(_0x584a7e,this['_model'])),_0x4e8b0d=_0x22c172['is']('range')?_0x4c9c3b:_0x4c9c3b['map'](_0x3aa7fc=>Jt(_0x3aa7fc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x37cb2b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b49a3,'accept');return this['forceDefaultExecution'](()=>_0x37cb2b(_0x4e8b0d,_0xd50dc7,_0x5e835f)),null;}_0x4f5d6f['push'](..._0x4e8b0d);let _0x17f5b5=!0x0;for(const _0x46b4d6 of _0x4f5d6f)if(!this['_rangeIsInLocalUserInsertion'](_0x46b4d6)){_0x17f5b5=!0x1;break;}if(_0x17f5b5&&'always'!==this['_trackFormatChanges']){const _0x47bad6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b49a3,'accept');return this['forceDefaultExecution'](()=>_0x47bad6(_0x4e8b0d,_0xd50dc7,_0x5e835f)),null;}const _0x282d1c=this['editor']['plugins']['get']('Users')['me'];for(const _0x1b36c9 of this['getSuggestions']()){if(_0x1b36c9['author']['id']!=_0x282d1c['id'])continue;if('formatBlock'!=_0x1b36c9['type']||_0x1b36c9['data']['formatGroupId']!=_0xd50dc7['formatGroupId'])continue;if(!zt(_0x1b36c9,_0x5e835f))continue;const _0xbf4933=_0x1b36c9['subType']==_0x1b49a3;for(let _0x462f35=0x0;_0x462f35<_0x4e8b0d['length'];_0x462f35++){const _0x5155d7=_0x4e8b0d[_0x462f35];for(const _0xbe8339 of _0x1b36c9['getMarkers']()){const _0x16405f=_0xbe8339['getRange']();if(_0x5155d7['isEqual'](_0x16405f)){_0xbf4933?(_0x4e8b0d['splice'](_0x462f35,0x1),_0x462f35--):_0x1b36c9['removeMarker'](_0xbe8339['name']);break;}}}}if(0x0==_0x4e8b0d['length'])return null;const _0x575b0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b49a3,'join');for(const _0x4f3fa7 of this['getSuggestions']())if(_0x4f3fa7['author']['id']==_0x282d1c['id']&&'formatBlock'==_0x4f3fa7['type']&&_0x4f3fa7['data']['formatGroupId']==_0xd50dc7['formatGroupId']&&_0x4f3fa7['subType']==_0x1b49a3&&zt(_0x4f3fa7,_0x5e835f)&&(_0x575b0a(_0x4f3fa7['getRanges'](),_0x4e8b0d)||_0x575b0a(_0x4e8b0d,_0x4f3fa7['getRanges']()))){for(const _0x155830 of _0x4e8b0d)_0x4f3fa7['addRange'](_0x155830);return _0x4f3fa7;}const _0x124392=_0x4f08f2(),_0x16b141=_0x282d1c['id'],_0x46e39b='formatBlock:'+_0x1b49a3,_0x5a2f97=this['_setSuggestionData']({'id':_0x124392,'type':_0x46e39b,'data':_0xd50dc7,'createdAt':new Date(),'authorId':_0x16b141,'attributes':_0x5e835f});for(const _0x10cc6e of _0x4e8b0d)this['_addSuggestionMarker'](_0x46e39b,_0x124392,_0x16b141,_0x10cc6e,u['getMultiRangeId']());return _0x5a2f97;}['markDeletion'](_0x51fbc6,_0x186690=null,_0x5a3c9e={}){if(_0x51fbc6['isCollapsed'])return null;const _0x25ec3a=this['editor']['plugins']['get']('Users')['me'],_0x577753=new _0x282df5(_0x51fbc6['start'],_0x51fbc6['end']);for(const {suggestion:_0x239a0f,meta:_0x478dde}of this['_findSuggestions'](_0x577753,'insertion'))if(_0x478dde['isOwn']&&!_0x478dde['isNextTo']){if(_0x239a0f['isMultiRange']){const _0x2e5100=_0x239a0f['getRanges']()['filter'](_0x5a455d=>'$graveyard'!=_0x5a455d['root']['rootName']);_0x2e5100['every'](_0x5a3577=>_0x577753['containsRange'](_0x5a3577,!0x0))&&_0x239a0f['discard']();if(_0x2e5100['some'](_0x135dd5=>_0x135dd5['containsRange'](_0x577753,!0x0))){const _0x38d19e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x186690,'accept');return this['forceDefaultExecution'](()=>_0x38d19e([_0x577753],null,_0x5a3c9e)),null;}}else{const _0x15f90d=_0x577753['getIntersection'](_0x239a0f['getFirstRange']());null!==_0x15f90d&&_0x239a0f['_onDiscard']([_0x15f90d],null,_0x5a3c9e);}}if(_0x577753['detach'](),_0x577753['isCollapsed']||'$graveyard'==_0x577753['root']['rootName'])return null;let _0xfa3083=null,_0x23af0e=_0x577753['start'],_0x102389=_0x577753['end'];const _0x316e21=this['_findSuggestions'](_0x577753,'deletion');for(const {suggestion:_0x4df5bc,meta:_0x5cdd3d}of _0x316e21){const _0x1b4152=this['_model']['createRange'](_0x23af0e,_0x102389);if(_0x5cdd3d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5cdd3d['containsRangeInObject']&&!_0x5cdd3d['isInsideObject'])){if(_0x4df5bc['isMultiRange']){if(!zt(_0x4df5bc,_0x5a3c9e))continue;let _0x49cfdc=!0x0;for(const _0x5eb249 of _0x4df5bc['getRanges']()){if(_0x5eb249['containsRange'](_0x1b4152,!0x0))return _0x4df5bc;_0x1b4152['containsRange'](_0x5eb249)||(_0x49cfdc=!0x1);}_0x49cfdc&&_0x4df5bc['discard']();}else{const _0x5444c8=_0x4df5bc['getFirstRange']();if(_0x5444c8['containsRange'](_0x1b4152,!0x0))return _0x4df5bc;if(!zt(_0x4df5bc,_0x5a3c9e)){_0x1b4152['containsRange'](_0x5444c8)?_0x4df5bc['removeMarkers']():_0x5444c8['containsPosition'](_0x23af0e)?_0x23af0e=_0x5444c8['end']:_0x5444c8['containsPosition'](_0x102389)&&(_0x102389=_0x5444c8['start']);continue;}_0x23af0e=_0x23af0e['isBefore'](_0x5444c8['start'])?_0x23af0e:_0x5444c8['start'],_0x102389=_0x102389['isAfter'](_0x5444c8['end'])?_0x102389:_0x5444c8['end'],_0x5a3c9e=Object['assign']({},_0x4df5bc['attributes']),_0xfa3083?_0x5444c8['start']['isBefore'](_0xfa3083['getFirstRange']()['start'])?(_0xfa3083['removeMarkers'](),_0xfa3083=_0x4df5bc):_0x4df5bc['removeMarkers']():_0xfa3083=_0x4df5bc;}}}if(_0xfa3083)return this['_setSuggestionRange'](_0xfa3083,this['_model']['createRange'](_0x23af0e,_0x102389)),_0xfa3083;{const _0x5500ac=_0x4f08f2(),_0x2cd462=this['_model']['createRange'](_0x23af0e,_0x102389),_0x40eb92=_0x25ec3a['id'],_0x224cc7=_0x186690?'deletion:'+_0x186690:'deletion',_0x5919eb=this['_setSuggestionData']({'id':_0x5500ac,'type':_0x224cc7,'createdAt':new Date(),'authorId':_0x40eb92,'attributes':_0x5a3c9e});return this['_addSuggestionMarker'](_0x224cc7,_0x5500ac,_0x40eb92,_0x2cd462),_0x5919eb;}}['markMultiRangeDeletion'](_0x50b8d1,_0x147be0='multi',_0x18aaa2={}){const _0xda90c=this['editor']['plugins']['get']('Users')['me'],_0x195dd5=_0x50b8d1['map'](_0x296562=>new _0x282df5(_0x296562['start'],_0x296562['end'])),_0x5d4c5d=new Set();for(const {suggestion:_0x55a3e9,meta:_0x334ea8}of this['_findSuggestions'](_0x195dd5,'insertion'))_0x334ea8['isOwn']&&!_0x334ea8['isNextTo']&&_0x5d4c5d['add'](_0x55a3e9);for(const _0x424adb of _0x5d4c5d)if(_0x424adb['isMultiRange']){const _0x2a6ce2=_0x424adb['getRanges']();(!_0x424adb['attributes']||!_0x424adb['attributes']['skipNestingCheck'])&&(_0x2a6ce2['every'](_0x5d4475=>_0x195dd5['some'](_0x48dd24=>_0x48dd24['containsRange'](_0x5d4475,!0x0)))&&_0x424adb['discard']());if(_0x195dd5['every'](_0x3ad16e=>_0x2a6ce2['some'](_0x32a11b=>_0x32a11b['containsRange'](_0x3ad16e,!0x0)))){const _0x447bc6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x147be0,'accept');return this['forceDefaultExecution'](()=>_0x447bc6(_0x50b8d1,null,_0x18aaa2)),null;}}else{const _0x33c02e=_0x424adb['getFirstRange']();_0x195dd5['some'](_0x2e7439=>_0x2e7439['containsRange'](_0x33c02e,!0x0))&&_0x424adb['discard']();if(_0x195dd5['every'](_0x12f519=>_0x33c02e['containsRange'](_0x12f519,!0x0))){const _0x249ccc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x147be0,'accept');return this['forceDefaultExecution'](()=>_0x249ccc(_0x195dd5,null,_0x18aaa2)),null;}}const _0x1d1499=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x147be0,'join');let _0xa2f2c1=null;for(const _0x4fdd23 of this['getSuggestions']())if(_0x4fdd23['author']['id']==_0xda90c['id']&&_0x4fdd23['isInContent']&&'deletion'==_0x4fdd23['type']&&_0x4fdd23['subType']==_0x147be0&&zt(_0x4fdd23,_0x18aaa2)&&(_0x1d1499(_0x4fdd23['getRanges'](),_0x195dd5)||_0x1d1499(_0x195dd5,_0x4fdd23['getRanges']()))){if(_0xa2f2c1){if(_0x4fdd23['commentThread']&&_0x4fdd23['commentThread']['length'])continue;for(const _0x413686 of _0x4fdd23['getRanges']())_0xa2f2c1['isIntersectingWithRange'](_0x413686)||_0xa2f2c1['addRange'](_0x413686);_0x4fdd23['removeMarkers']();}else{_0xa2f2c1=_0x4fdd23;for(const _0x68f7ea of _0x195dd5)_0x4fdd23['isIntersectingWithRange'](_0x68f7ea)||_0x4fdd23['addRange'](_0x68f7ea);}}if(_0xa2f2c1)return _0xa2f2c1;_0x5d4c5d['clear']();for(const {suggestion:_0x540f26,meta:_0x5b7096}of this['_findSuggestions'](_0x195dd5,'deletion'))_0x5b7096['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b7096['containsRangeInObject']&&!_0x5b7096['isInsideObject'])&&zt(_0x540f26,_0x18aaa2)&&_0x5d4c5d['add'](_0x540f26);for(const _0x53df7a of _0x5d4c5d){const _0xe31310=_0x53df7a['getRanges']();if(!_0x18aaa2||!_0x18aaa2['skipNestingCheck']){if(_0x195dd5['every'](_0x229ec8=>_0xe31310['some'](_0x3922f9=>_0x3922f9['containsRange'](_0x229ec8,!0x0))))return _0x53df7a;}(!_0x53df7a['attributes']||!_0x53df7a['attributes']['skipNestingCheck'])&&(_0xe31310['every'](_0x7a6065=>_0x195dd5['some'](_0xbbab36=>_0xbbab36['containsRange'](_0x7a6065,!0x0)))&&_0x53df7a['discard']());}const _0x495801=_0x4f08f2(),_0x3047ef=_0xda90c['id'],_0x2c719b='deletion:'+_0x147be0,_0x4c488a=this['_setSuggestionData']({'id':_0x495801,'type':_0x2c719b,'createdAt':new Date(),'authorId':_0x3047ef,'attributes':_0x18aaa2});for(const _0xdb6cef of _0x195dd5)_0xdb6cef['detach'](),_0xdb6cef['isCollapsed']||'$graveyard'==_0xdb6cef['root']['rootName']||this['_addSuggestionMarker'](_0x2c719b,_0x495801,_0x3047ef,_0xdb6cef,u['getMultiRangeId']());return _0x4c488a;}['markAttributeChange'](_0x4725df,_0x309441,_0x467f2e,_0x6df2dc,_0x68568e){if(_0x4725df['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5b8cba=this['editor']['plugins']['get']('Users')['me']['id'],_0x3dd2cb=Array['from'](this['_suggestions']['values']())['filter'](_0x2e2ae2=>'attribute'==_0x2e2ae2['type']&&_0x2e2ae2['data']['key']==_0x309441&&_0x2e2ae2['isIntersectingWithRange'](_0x4725df));if('default'===this['_trackFormatChanges']){const _0x5f5292=this['_findSuggestions'](_0x4725df,'insertion')['filter'](({meta:_0x62ae5})=>_0x62ae5['isOwn']&&!_0x62ae5['isInsideObject']&&!_0x62ae5['isNextTo'])['map'](({suggestion:_0x39d713})=>_0x39d713);_0x3dd2cb['unshift'](..._0x5f5292);}const _0x5da3dc=new Map([[_0x4725df,_0x467f2e]]);for(const _0x5c0bb5 of _0x3dd2cb){const _0x556843='attribute'==_0x5c0bb5['type']?_0x5c0bb5['data']['oldValue']:void 0x0,_0x5ccd21=_0x5c0bb5['getFirstRange'](),_0x2cd7d6=Array['from'](_0x5da3dc['keys']())['find'](_0x2d9b08=>_0x2d9b08['isIntersecting'](_0x5ccd21));if(!_0x2cd7d6)continue;const _0x4362ed=_0x2cd7d6['getDifference'](_0x5ccd21);this['_isBlockAttribute'](_0x309441)&&'insertion'==_0x5c0bb5['type']&&0x0!=_0x4362ed['length']||(_0x5da3dc['delete'](_0x2cd7d6),_0x4362ed['forEach'](_0x2de86f=>{_0x5da3dc['set'](_0x2de86f,_0x467f2e);}),'insertion'!=_0x5c0bb5['type']&&_0x556843!=_0x6df2dc&&_0x5da3dc['set'](_0x2cd7d6['getIntersection'](_0x5ccd21),_0x556843));}const _0x57ca5a=[];for(const [_0x37b556,_0x557b87]of _0x5da3dc){const _0x23f2f2=_0x4f08f2(),_0x474d9b={'key':_0x309441,'oldValue':_0x557b87,'newValue':_0x6df2dc};_0x309441['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':_0x309441});const _0x1fe9e1=('attribute:'+(_0x309441+'|'+Gt({'newValue':_0x6df2dc})))['substring'](0x0,0x3c),_0x3eb1b1=this['_setSuggestionData']({'id':_0x23f2f2,'type':_0x1fe9e1,'data':_0x474d9b,'createdAt':new Date(),'authorId':_0x5b8cba,'attributes':_0x68568e});_0x57ca5a['push'](_0x3eb1b1),this['_addSuggestionMarker'](_0x1fe9e1,_0x23f2f2,_0x5b8cba,_0x37b556);}return _0x57ca5a;}['enableDefaultAttributesIntegration'](_0x3337e7){this['enableCommand'](_0x3337e7,(_0x13bed4,..._0x37db3f)=>{this['_recordAttributeChanges'](()=>{_0x13bed4(..._0x37db3f);});});}['registerBlockAttribute'](_0x9511ea){this['_blockAttributeKeys']['add'](_0x9511ea);}['registerInlineAttribute'](_0x2a71f2){this['_inlineAttributeKeys']['add'](_0x2a71f2);}['_getAttributeKey'](_0x142e04){return'attribute'==_0x142e04['type']?_0x142e04['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3cd68a,_0x1058bf){const _0x7cf957=_0x3cd68a['getFirstMarker']();this['_model']['change'](_0x33e4f6=>{_0x33e4f6['updateMarker'](_0x7cf957,{'range':_0x1058bf});});}['_addThreadToSuggestion'](_0x2aa5a8){const _0xda3cad=_0x2aa5a8['id'],_0x4720e1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xda3cad)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4720e1,'threadId':_0xda3cad,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x32a69e=this['_commentsRepository']['getCommentThread'](_0xda3cad);_0x32a69e['unbind']('isRemovable'),_0x32a69e['isRemovable']=!0x1,_0x2aa5a8['commentThread']=_0x32a69e;}['_checkSuggestionCorrectness'](_0x43c913,_0x2442f1,_0xebf6ba,_0x308587){if(_0x43c913['type']!=_0x2442f1||_0x43c913['subType']!=_0xebf6ba||_0x43c913['creator']['id']!=_0x308587)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x248d7e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5acd16,_0x45dbce){const _0x2cf31d=_0x5acd16['getFirstRange']();if(_0x45dbce['isEqual'](_0x2cf31d))_0x5acd16['removeMarkers']();else{if(_0x2cf31d['containsRange'](_0x45dbce)){const _0x380c67=this['_model']['createPositionAt'](_0x45dbce['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5acd16,this['_model']['createRange'](_0x2cf31d['start'],_0x380c67));const _0x8cdd01=_0x4f08f2(),_0x597beb=_0x5acd16['creator']['id'],_0x654698=_0x5acd16['type']+':'+_0x5acd16['subType'];this['_setSuggestionData']({'id':_0x8cdd01,'type':_0x654698,'createdAt':new Date(),'authorId':_0x597beb,'data':_0x5acd16['data'],'attributes':_0x5acd16['attributes']});const _0x2b2357=this['_model']['createPositionAt'](_0x45dbce['end']['parent'],'after'),_0x3081e0=this['_model']['createRange'](_0x2b2357,_0x2cf31d['end']);this['_addSuggestionMarker'](_0x654698,_0x8cdd01,_0x597beb,_0x3081e0);}else{if(_0x2cf31d['containsPosition'](_0x45dbce['start'])){const _0x1ca742=this['_model']['createPositionAt'](_0x45dbce['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5acd16,this['_model']['createRange'](_0x2cf31d['start'],_0x1ca742));}else{const _0x5b72e3=this['_model']['createPositionAt'](_0x45dbce['end']['parent'],'after');this['_setSuggestionRange'](_0x5acd16,this['_model']['createRange'](_0x5b72e3,_0x2cf31d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x135266){for(const {suggestion:_0x29f1fa,meta:_0x48e565}of this['_findSuggestions'](_0x135266,'insertion')){if(!_0x48e565['isOwn'])continue;const _0x493e54=_0x29f1fa['getRanges']();for(const _0x3b8df3 of _0x493e54)if(!_0x135266['getDifference'](_0x3b8df3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x592b84){const _0x541322=this['editor']['plugins']['get']('Users')['getUser'](_0x592b84);if(!_0x541322)throw new _0x248d7e('track-changes-user-not-found',this);return _0x541322;}['_getExternalAuthor'](_0x2c76b0){const _0x509cbb=this['editor']['plugins']['get']('Users'),_0x3a665e=_0x4d7158('external:'+_0x2c76b0),_0x2050b1=_0x509cbb['getUser'](_0x3a665e);return _0x2050b1||_0x509cbb['addUser']({'id':_0x3a665e,'name':_0x2c76b0});}['_createSuggestion'](_0x220150,_0x2899c7,_0x51ebd7,_0x4af324,_0x46ab1d){const _0x218d88=this['_getAuthorFromId'](_0x4af324),_0x17e485=this['_suggestionFactory']['buildSuggestion'](_0x220150,_0x2899c7,_0x51ebd7,_0x218d88,_0x46ab1d,_0x2e067a=>{this['_updateSuggestionData'](_0x51ebd7,{'attributes':_0x2e067a});const _0x334a54=this['getSuggestion'](_0x51ebd7);this['_joinWithAdjacentSuggestions'](new Set([_0x334a54])),this['_refreshSuggestionsChain'](new Set([_0x334a54]));});return this['listenTo'](_0x17e485,'accept',()=>{this['_updateSuggestionData'](_0x51ebd7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x17e485,'discard',()=>{this['_updateSuggestionData'](_0x51ebd7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x51ebd7,_0x17e485),this['_suggestionState']['set'](_0x17e485,'notReady'),_0x17e485;}['_splitMarkerName'](_0x5aa80e){const _0x22af07=_0x5aa80e['split'](':');return{'group':_0x22af07[0x0],'type':_0x22af07[0x1],'subType':_0x22af07['length']>=0x5?_0x22af07[0x2]:null,'id':_0x22af07['length']<0x5?_0x22af07[0x2]:_0x22af07[0x3],'authorId':_0x22af07['length']<0x5?_0x22af07[0x3]:_0x22af07[0x4],'markerCount':0x6==_0x22af07['length']?_0x22af07[0x5]:null};}['_breakSuggestionMarker'](_0x23ac59,_0x10d849,_0x3f221f){const _0x390710=_0x23ac59['getFirstRange'](),_0x29f323=_0x390710['start'],_0x3c638d=_0x390710['end'];this['_setSuggestionRange'](_0x23ac59,this['_model']['createRange'](_0x29f323,_0x10d849));const _0x59fc49=_0x4f08f2(),_0x55d608=_0x23ac59['creator']['id'],_0x1313d5=_0x23ac59['type']+(_0x23ac59['subType']?':'+_0x23ac59['subType']:'');this['_setSuggestionData']({'id':_0x59fc49,'type':_0x1313d5,'createdAt':new Date(),'authorId':_0x55d608,'originalSuggestionId':_0x23ac59['id'],'attributes':_0x23ac59['attributes'],'data':_0x23ac59['data']});const _0x1472d0=this['_getAttributeKey'](_0x23ac59);('formatBlock'==_0x23ac59['type']||_0x1472d0&&this['_isBlockAttribute'](_0x1472d0))&&(_0x3f221f=this['_model']['createPositionBefore'](_0x3f221f['parent'])),this['_addSuggestionMarker'](_0x1313d5,_0x59fc49,_0x55d608,this['_model']['createRange'](_0x3f221f,_0x3c638d));}['_findSuggestions'](_0x2edec6,_0x524d28=null){const _0x5a8960=[],_0x2150b6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2edec6)||(_0x2edec6=[_0x2edec6]);for(const _0x10a69c of this['getSuggestions']()){if(!_0x10a69c['isInContent'])continue;if(_0x524d28&&_0x10a69c['type']!=_0x524d28)continue;let _0x4e8039=!0x1;for(const _0x4829c9 of _0x10a69c['getRanges']()){for(const _0x840b50 of _0x2edec6){const _0x7eddf3=_0x840b50['start']['isEqual'](_0x4829c9['end'])||_0x840b50['end']['isEqual'](_0x4829c9['start']);if(_0x7eddf3||_0x840b50['getIntersection'](_0x4829c9)){const _0x29822d=_0x840b50['containsRange'](_0x4829c9)&&Ut(this['_model']['schema'],_0x4829c9['start'],_0x840b50),_0x11b2da=_0x4829c9['containsRange'](_0x840b50)&&Ut(this['_model']['schema'],_0x840b50['start'],_0x4829c9);_0x5a8960['push']({'suggestion':_0x10a69c,'meta':{'isOwn':_0x2150b6==_0x10a69c['author'],'isNextTo':_0x7eddf3,'isInsideObject':_0x29822d,'containsRangeInObject':_0x11b2da}}),_0x4e8039=!0x0;break;}}if(_0x4e8039)break;}}return _0x5a8960;}['_addSuggestionMarker'](_0x509707,_0x5eb1ff,_0xb193e,_0x341ed5,_0x3f4b84){this['_model']['change'](_0x59e3dc=>{let _0x187404='suggestion:'+_0x509707+':'+_0x5eb1ff+':'+_0xb193e;_0x3f4b84&&(_0x187404=_0x187404+':'+_0x3f4b84),_0x59e3dc['addMarker'](_0x187404,{'range':_0x341ed5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3a2e44){const _0x5ccb59=_0x3a2e44['previous'],_0xde530d=_0x3a2e44['next'];_0x3a2e44['previous']=null,_0x3a2e44['next']=null,null!=_0x5ccb59&&_0x5ccb59['next']==_0x3a2e44&&(_0x5ccb59['next']=_0xde530d),null!=_0xde530d&&_0xde530d['previous']==_0x3a2e44&&(_0xde530d['previous']=_0x5ccb59),'ready'==this['_suggestionState']['get'](_0x3a2e44)&&(this['_suggestionState']['set'](_0x3a2e44,'removed'),this['fire']('suggestionUnloaded',_0x3a2e44,_0x5ccb59,_0xde530d));}['_setSuggestionData'](_0x6891c6){const _0x28288e=_0x6891c6['id'],_0x5e41a3=this['addSuggestionData'](_0x6891c6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3be77a=this['editor']['plugins']['get']('PendingActions'),_0x395ecb=_0x5e41a3['hasComments'],_0x1e8358=_0x5e41a3['subType']?_0x5e41a3['type']+':'+_0x5e41a3['subType']:_0x5e41a3['type'],_0x18c316=this['editor']['locale'],_0x1d94f0=_0x3be77a['add'](o(_0x18c316,'PENDING_ACTION_SUGGESTION')),_0x4da0bb={'id':_0x28288e,'type':_0x1e8358,'hasComments':_0x395ecb,'data':_0x6891c6['data']||null,'originalSuggestionId':_0x6891c6['originalSuggestionId']||null,'attributes':_0x5e41a3['attributes']};this['_adapter']['addSuggestion'](_0x4da0bb)['then'](_0x40f51c=>{_0x5e41a3['_saved']=!0x0,_0x3be77a['remove'](_0x1d94f0),_0x40f51c&&_0x40f51c['createdAt']&&(this['_suggestions']['get'](_0x28288e)['createdAt']=_0x40f51c['createdAt']);})['catch'](_0x247477=>{throw _0x57683b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5e41a3['discard']();}),_0x5e41a3['stopListening'](),this['_suggestions']['delete'](_0x5e41a3['id']),this['_suggestionState']['delete'](_0x5e41a3),_0x247477;});}return _0x5e41a3;}['_isBlockAttribute'](_0xb35801){return this['_blockAttributeKeys']['has'](_0xb35801);}['_updateSuggestionData'](_0x5c69cf,_0x2c718a){const _0x2befc3=this['editor']['plugins']['get']('PendingActions'),_0x39a267=this['getSuggestion'](_0x5c69cf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x39a267['_saved']){const _0x3b33cb=_0x2befc3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5c69cf,_0x2c718a)['then'](()=>{_0x2befc3['remove'](_0x3b33cb);});}else _0x39a267['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5c69cf,_0x2c718a);});}}['_getSuggestionData'](_0x5e8ac8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x248d7e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5e8ac8);}['_handleNewSuggestionMarker'](_0x4fe840){const {id:_0x2668b6,type:_0x4fc0e8,subType:_0x3c4f22,authorId:_0x50d41d}=this['_splitMarkerName'](_0x4fe840),_0x5ae04d=this['_suggestions']['get'](_0x2668b6)||this['_createSuggestion'](_0x4fc0e8,_0x3c4f22,_0x2668b6,_0x50d41d,{});switch(this['_checkSuggestionCorrectness'](_0x5ae04d,_0x4fc0e8,_0x3c4f22,_0x50d41d),this['_suggestionState']['get'](_0x5ae04d)){case'notReady':this['_getSuggestionData'](_0x2668b6)['then'](_0x38782f=>{let _0x78832e=Promise['resolve']();_0x38782f['hasComments']&&(_0x78832e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2668b6})),_0x78832e['then'](()=>{this['addSuggestionData'](_0x38782f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5ae04d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2668b6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5ae04d,'ready'),this['fire']('suggestionLoaded',_0x5ae04d);break;case'ready':this['fire']('suggestionChanged',_0x5ae04d);}return _0x5ae04d['addMarkerName'](_0x4fe840),_0x5ae04d;}['_refreshSuggestionsChain'](_0x5431e5){const _0x4ae77c=Array['from'](_0x5431e5),_0x27705a=_0x4ae77c['filter'](_0x56bdb3=>'attribute'==_0x56bdb3['type']);this['_refreshAttributeSuggestionsChain'](_0x27705a);const _0xcddae8=_0x4ae77c['filter'](_0x2c795e=>!_0x2c795e['isMultiRange']&&'attribute'!=_0x2c795e['type']),_0x1f6333=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ab8f1=>!_0x2ab8f1['isMultiRange']&&'attribute'!=_0x2ab8f1['type']),_0x505817=_0x1f6333['filter'](_0xc68fe8=>!_0x5431e5['has'](_0xc68fe8)),_0x136ef1=new Map(_0x1f6333['map'](_0x4c631a=>[_0x4c631a,this['_suggestionFactory']['getSuggestionCallback'](_0x4c631a['type'],_0x4c631a['subType'],'chain')])),_0x471277=new Map(_0x1f6333['map'](_0x4e15f1=>[_0x4e15f1,_0x4e15f1['getFirstRange']()])),_0x38f85d=new Set(),_0x39f1b1=new Set();for(let _0x42ecdf=0x0;_0x42ecdf<_0xcddae8['length'];_0x42ecdf++)_0x18da58(_0xcddae8[_0x42ecdf],_0xcddae8,_0x42ecdf+0x1);for(let _0x1d386a=0x0;_0x1d386a<_0xcddae8['length'];_0x1d386a++)_0x18da58(_0xcddae8[_0x1d386a],_0x505817,0x0);const _0x412c28=new Set();for(let _0x2bd6dc=0x0;_0x2bd6dc<_0xcddae8['length'];_0x2bd6dc++){const _0x50fc64=_0xcddae8[_0x2bd6dc];!_0x39f1b1['has'](_0x50fc64)&&_0x50fc64['previous']&&(_0x412c28['add'](_0x50fc64['previous']),_0x50fc64['previous']['next']===_0x50fc64&&(_0x50fc64['previous']['next']=null),_0x50fc64['previous']=null),!_0x38f85d['has'](_0x50fc64)&&_0x50fc64['next']&&(_0x412c28['add'](_0x50fc64['next']),_0x50fc64['next']['previous']===_0x50fc64&&(_0x50fc64['next']['previous']=null),_0x50fc64['next']=null);}function _0x18da58(_0x28dd95,_0x3dcacd,_0x217c47){for(let _0x1d09b6=_0x217c47;_0x1d09b6<_0x3dcacd['length'];_0x1d09b6++){const _0x2efca6=_0x455d09(_0x28dd95,_0x3dcacd[_0x1d09b6]);_0x2efca6&&(_0x2efca6[0x0]['next']=_0x2efca6[0x1],_0x2efca6[0x1]['previous']=_0x2efca6[0x0],_0x38f85d['add'](_0x2efca6[0x0]),_0x39f1b1['add'](_0x2efca6[0x1]));}}function _0x455d09(_0x181914,_0x3ed657){if(_0x181914['author']['id']!==_0x3ed657['author']['id'])return null;const _0x2c9f21=_0x136ef1['get'](_0x181914)(_0x181914,_0x3ed657,_0x471277['get'](_0x181914),_0x471277['get'](_0x3ed657));if(!_0x2c9f21)return null;return _0x136ef1['get'](_0x3ed657)(_0x181914,_0x3ed657,_0x471277['get'](_0x181914),_0x471277['get'](_0x3ed657))?_0x2c9f21[0x1]['commentThread']&&_0x2c9f21[0x1]['commentThread']['length']?null:_0x2c9f21:null;}_0x412c28['size']&&this['_refreshSuggestionsChain'](_0x412c28);}['_refreshAttributeSuggestionsChain'](_0xa42a56){if(0x0==_0xa42a56['length'])return;const _0x5d5a4e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26cea8=>'attribute'==_0x26cea8['type']&&_0x26cea8['_isDataLoaded']),_0x4bc68a=[],_0xf5401b=new Map();for(const _0x377aae of _0x5d5a4e){const _0x26097c=_0x4d7158(_0x377aae['attributes']);_0xf5401b['has'](_0x26097c)||(_0xf5401b['set'](_0x26097c,_0x4bc68a['length']),_0x4bc68a['push']([]));const _0x581bbd=_0xf5401b['get'](_0x26097c);_0x4bc68a[_0x581bbd]['push'](_0x377aae);}!(function(){_0x4bc68a['sort']((_0x3ee917,_0x1783cc)=>{const _0x76fe4a=_0x3ee917[0x0]['createdAt'],_0x161768=_0x1783cc[0x0]['createdAt'];return _0x76fe4a==_0x161768?_0x3ee917[0x0]['attributes']['groupId']<_0x1783cc[0x0]['attributes']['groupId']?-0x1:0x1:_0x76fe4a<_0x161768?-0x1:0x1;});for(const _0x4e1fb0 of _0x4bc68a)_0x4e1fb0['sort']((_0x41cd68,_0x279e01)=>_0x41cd68['id']<_0x279e01['id']?-0x1:0x1);}());for(let _0x1ac01f=0x0;_0x1ac01f<_0x4bc68a['length'];_0x1ac01f++){if(0x0==_0x4bc68a[_0x1ac01f]['length'])continue;const _0x30abb1=[];for(let _0x919388=_0x1ac01f+0x1;_0x919388<_0x4bc68a['length'];_0x919388++)0x0!=_0x4bc68a[_0x919388]['length']&&_0x285844(_0x4bc68a[_0x1ac01f],_0x4bc68a[_0x919388])&&_0x30abb1['push'](_0x919388);for(const _0x32d579 of _0x30abb1)_0x4bc68a[_0x1ac01f]=_0x4bc68a[_0x1ac01f]['concat'](_0x4bc68a[_0x32d579]),_0x4bc68a[_0x32d579]=[];}for(const _0x35091b of _0x4bc68a)for(let _0x50f434=0x0;_0x50f434<_0x35091b['length'];_0x50f434++){const _0x39cc9d=_0x35091b[_0x50f434+0x1]||null;_0x35091b[_0x50f434]['next']!==_0x39cc9d&&(_0x35091b[_0x50f434]['next']=_0x39cc9d);}for(const _0x9a0613 of _0x4bc68a)for(let _0x517515=0x0;_0x517515<_0x9a0613['length'];_0x517515++){const _0x9530d0=_0x9a0613[_0x517515-0x1]||null;_0x9a0613[_0x517515]['previous']!==_0x9530d0&&(_0x9a0613[_0x517515]['previous']=_0x9530d0);}function _0x285844(_0x4fca39,_0x190cf6){if(_0x4fca39[0x0]['attributes']['groupId']!==_0x190cf6[0x0]['attributes']['groupId']&&_0x4fca39[0x0]['author']!==_0x190cf6[0x0]['author'])return!0x1;if(!function(_0x3e9f5f,_0x44ca69){if(!_0x3e9f5f['hasComments']&&!_0x44ca69['hasComments'])return!0x0;if(_0x3e9f5f['hasComments']&&_0x44ca69['hasComments'])return!0x1;if(_0x3e9f5f['hasComments']&&_0x44ca69['createdAt']<_0x3e9f5f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x44ca69['hasComments']&&_0x3e9f5f['createdAt']<_0x44ca69['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4fca39[0x0],_0x190cf6[0x0]))return!0x1;const _0x20734e=xt(_0x4fca39[0x0]['attributes'],'groupId'),_0x1cc43f=xt(_0x190cf6[0x0]['attributes'],'groupId');if(!_0x5c0d27(_0x20734e,_0x1cc43f))return!0x1;return!!_0x4fca39['every'](_0xfeafe4=>_0x190cf6['some'](_0x579dfa=>_0xfeafe4['getFirstRange']()['isEqual'](_0x579dfa['getFirstRange']())))&&_0x190cf6['every'](_0x4ef93b=>_0x4fca39['some'](_0x473526=>_0x4ef93b['getFirstRange']()['isEqual'](_0x473526['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d1d74){const _0x369231=Array['from'](_0x4d1d74),_0xdf42f1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x50e9d8=_0xdf42f1['filter'](_0x57d7ff=>!_0x4d1d74['has'](_0x57d7ff)),_0x28a5cd=new Map(_0x369231['map'](_0x239384=>[_0x239384,this['_suggestionFactory']['getSuggestionCallback'](_0x239384['type'],_0x239384['subType'],'join')])),_0x28508b=new Map(_0xdf42f1['map'](_0x4e21d9=>[_0x4e21d9,_0x4e21d9['getRanges']()]));for(let _0x82b74e=0x0;_0x82b74e<_0x369231['length'];_0x82b74e++){if(_0x5d85af(this,_0x369231[_0x82b74e],_0x369231,_0x82b74e+0x1))return!0x0;}for(let _0x302abb=0x0;_0x302abb<_0x369231['length'];_0x302abb++){if(_0x5d85af(this,_0x369231[_0x302abb],_0x50e9d8,0x0))return!0x0;}return!0x1;function _0x5d85af(_0xa3d617,_0xdb016c,_0x1f7873,_0x12ce88){for(let _0x507eb7=_0x12ce88;_0x507eb7<_0x1f7873['length'];_0x507eb7++){const _0x29c120=_0x1f7873[_0x507eb7];if(_0x29c120['type']!==_0xdb016c['type']||_0x29c120['author']['id']!==_0xdb016c['author']['id']||_0x29c120['subType']!==_0xdb016c['subType'])continue;if(!qt(_0xdb016c,_0x29c120))continue;if('attribute'==_0xdb016c['type']&&_0xdb016c['data']['oldValue']!=_0x29c120['data']['oldValue'])continue;if('attribute'==_0xdb016c['type']&&_0xa3d617['_isBlockAttribute'](_0xdb016c['data']['key']))continue;if('formatBlock'==_0xdb016c['type']){const _0xdbe9e5=_0xa3d617['editor']['model'],_0x4faec2=_0xdb016c['getContainedElement']();if(_0x4faec2&&(_0xdbe9e5['schema']['isObject'](_0x4faec2)||_0xdbe9e5['schema']['isLimit'](_0x4faec2)))continue;}const _0x5afb74=_0x28a5cd['get'](_0xdb016c),_0x2a6eac=_0x28508b['get'](_0xdb016c),_0x28df4c=_0x28508b['get'](_0x29c120),_0x4a9d2b=_0xdb016c['commentThread']&&_0xdb016c['commentThread']['length'],_0x5e54f9=_0x29c120['commentThread']&&_0x29c120['commentThread']['length'];if(!_0x4a9d2b&&_0x5afb74(_0x28df4c,_0x2a6eac))return _0xa3d617['_joinSuggestions'](_0x29c120,_0xdb016c),_0x28508b['delete'](_0xdb016c),!0x0;if(!_0x5e54f9&&_0x5afb74(_0x2a6eac,_0x28df4c))return _0xa3d617['_joinSuggestions'](_0xdb016c,_0x29c120),_0x28508b['delete'](_0x29c120),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5dbc89,_0x5d5ed4){if(_0x5dbc89['isMultiRange']){for(const _0x436fdd of _0x5d5ed4['getRanges']())_0x5dbc89['addRange'](_0x436fdd);}else{const _0x4085be=_0x5d5ed4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5dbc89,this['_model']['createRange'](_0x5dbc89['getFirstRange']()['start'],_0x4085be));}_0x5d5ed4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x249327,_0x4a50ed,_0x2c29f0){const _0x48c505=_0x249327['startsWith']('format')||_0x249327['startsWith']('attribute')?'FORMATTING':_0x249327['toUpperCase']();return o(this['editor']['locale'],_0x4a50ed+'_'+_0x48c505+'_SUGGESTION_ANNOUNCEMENT',_0x2c29f0);}['_initAriaMarkerChangeAnnouncements'](){const _0x127259=this['editor'];if(!_0x127259['ui'])return;const {ariaLiveAnnouncer:_0x285c20}=_0x127259['ui'];_0x51770b(this['_model'],({left:_0x4a7d05,entered:_0xe0effe})=>{for(const _0x1b54a5 of _0x4a7d05){const {group:_0x55a554,type:_0x31672f}=this['_splitMarkerName'](_0x1b54a5['name']);if('suggestion'===_0x55a554){_0x285c20['announce'](this['_getMarkerAnnouncementText'](_0x31672f,'LEAVE'));break;}}for(const _0x4efcf7 of _0xe0effe){const {group:_0x1f365d,type:_0x37358f}=this['_splitMarkerName'](_0x4efcf7['name']);if('suggestion'===_0x1f365d){_0x285c20['announce'](this['_getMarkerAnnouncementText'](_0x37358f,'ENTER',_0x292b79(_0x5ac976)));break;}}});}['_processAttributeChanges'](_0x51ebbc){if(this['_recordAttributeSuggestions'])return!0x1;const _0x10e564=this['editor'],_0x1806ff=_0x10e564['model']['document']['differ']['getChanges']();if(0x0==_0x1806ff['length'])return!0x1;const _0x38f54e=[],_0x372556=_0x1806ff['filter'](_0x38842a=>'attribute'==_0x38842a['type']),_0x16c69e=_0x1806ff['filter'](_0x52f63f=>'insert'==_0x52f63f['type']&&'$text'!=_0x52f63f['name']),_0x493535=_0x1806ff['filter'](_0x180f60=>'remove'==_0x180f60['type']&&'$text'!=_0x180f60['name']);for(const _0x36ca01 of _0x372556)_0x38f54e['push']({'key':_0x36ca01['attributeKey'],'newValue':_0x36ca01['attributeNewValue'],'oldValue':_0x36ca01['attributeOldValue'],'range':Lt(_0x36ca01['range'],_0x10e564['model'])});for(const _0x22f478 of _0x16c69e){const _0x22a5ff=_0x493535['find'](_0x177dd0=>_0x177dd0['position']['isEqual'](_0x22f478['position']));_0x22a5ff&&_0x38f54e['push']({'key':m,'newValue':_0x22f478['name'],'oldValue':_0x22a5ff['name'],'range':_0x10e564['model']['createRangeOn'](_0x22f478['position']['nodeAfter'])});}return 0x0!=_0x38f54e['length']&&this['_reduceExistingSuggestions'](_0x51ebbc,_0x38f54e);}['_processAttributeSuggestions'](_0x14001d){let _0x514363=!0x1;const _0x591228=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x44863d=>_0x44863d['data']['newRange']&&_0x44863d['name']['startsWith']('suggestion:attribute:'));for(const _0x36e478 of _0x591228){const {subType:_0x57cbec,id:_0x3d1747}=this['_splitMarkerName'](_0x36e478['name']),_0x41ba29=_0x57cbec['split']('|')[0x0];for(const _0xe0883d of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe0883d['id']!=_0x3d1747&&'attribute'==_0xe0883d['type']&&_0xe0883d['data']&&_0xe0883d['data']['key']==_0x41ba29&&_0xe0883d['getFirstRange']()['isIntersecting'](_0x36e478['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe0883d,_0x36e478['data']['newRange'],_0x14001d),_0x514363=!0x0);}return _0x514363;}['_recordAttributeChanges'](_0x32639f){this['_recordAttributeSuggestions']=!0x0,_0x32639f();}['_isRegisteredAttribute'](_0xfed0b5){const _0x2545dd=this['_isBlockAttribute'](_0xfed0b5),_0xc386cc=this['_inlineAttributeKeys']['has'](_0xfed0b5);return _0x2545dd||_0xc386cc;}['_reduceExistingSuggestions'](_0xe66cd5,_0x339820){if(0x0==_0x339820['length'])return!0x1;let _0x5296fb=!0x1;for(const _0x4e6d94 of _0x339820){const _0x3f5a47=this['_findSuggestions'](_0x4e6d94['range'],'attribute')['filter'](_0x474f9a=>!_0x474f9a['meta']['isNextTo'])['map'](_0x1a6237=>_0x1a6237['suggestion']),_0x31abf4=_0x4d7158({'newValue':_0x4e6d94['newValue']});_0x3f5a47['filter'](_0x30d181=>{const [_0x5dfb48,_0x2cea92]=_0x30d181['subType']['split']('|');return _0x5dfb48==_0x4e6d94['key']&&_0x2cea92!=_0x31abf4;})['forEach'](_0x1d4a91=>{this['_reduceSuggestionAttributeRange'](_0x1d4a91,_0x4e6d94['range'],_0xe66cd5),_0x5296fb=!0x0;});}return _0x5296fb;}['_reduceSuggestionAttributeRange'](_0x4e360b,_0xf068ad,_0x2af30c){const _0x501d7c=_0x4e360b['getFirstRange']()['getDifference'](_0xf068ad);0x0!==_0x501d7c['length']?0x1!==_0x501d7c['length']?this['_breakSuggestionMarker'](_0x4e360b,_0xf068ad['start'],_0xf068ad['end']):this['_setSuggestionRange'](_0x4e360b,_0x501d7c[0x0]):_0x2af30c['removeMarker'](_0x4e360b['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2a2b47){this['_editor']=_0x2a2b47,this['_model']=_0x2a2b47['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3cc985,_0x3791bb,_0x52b9c8,_0x323b95,_0x56e105,_0x24bead){return new u(this['_model'],{'type':_0x3cc985,'subType':_0x3791bb,'id':_0x52b9c8,'author':_0x323b95,'creator':_0x323b95,'attributes':_0x56e105,'onAttributesChange':_0x24bead,'onAccept':(..._0x104d41)=>this['getSuggestionCallback'](_0x3cc985,_0x3791bb,'accept')(..._0x104d41),'onDiscard':(..._0x40fc1d)=>this['getSuggestionCallback'](_0x3cc985,_0x3791bb,'discard')(..._0x40fc1d)});}['registerCustomCallback'](_0xd8a224,_0x49e9e3,_0x31db95,_0x30b274){const _0x2893b3=_0xd8a224+':'+_0x49e9e3+':'+_0x31db95;this['_customCallbacks']['set'](_0x2893b3,_0x30b274);}['getSuggestionCallback'](_0x149b92,_0x1ea938,_0x21b479){const _0x30bc1d=_0x149b92+':'+_0x1ea938+':'+_0x21b479;return this['_customCallbacks']['get'](_0x30bc1d)||this['_defaultCallbacks']['get'](_0x149b92+':'+_0x21b479);}['_registerDefaultCallbacks'](){const _0x40bfe6=()=>!0x1,_0x1e080c=_0x4e9df1=>{_0x4e9df1['sort']((_0x5a236d,_0x31435c)=>_0x5a236d['start']['isBefore'](_0x31435c['start'])?0x1:-0x1),this['_model']['change'](_0x229d44=>{for(const _0x1f9f3e of _0x4e9df1){let _0x48eb27;_0x48eb27=_0x1f9f3e['end']['isAtEnd']&&_0x1f9f3e['end']['parent']==_0x1f9f3e['start']['nodeAfter']?_0x229d44['createSelection'](_0x1f9f3e['start']['nodeAfter'],'on'):_0x229d44['createSelection'](_0x1f9f3e),this['_model']['deleteContent'](_0x48eb27,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2eccd5=(_0x5c9563,_0x44aff9)=>{_0x44aff9&&this['_model']['change'](_0x25d330=>{const {commandName:_0x258a71,commandParams:_0x3bb402=[]}=_0x44aff9,_0x3f9b58=_0x5c9563['map'](_0x285eb5=>(Vt(_0x285eb5)&&(_0x285eb5=this['_model']['createRange'](_0x285eb5['end'])),_0x285eb5))['filter'](_0x1fd5fd=>'$graveyard'!==_0x1fd5fd['root']['rootName']);if(_0x3f9b58['length']<0x1)return;const _0x5c9b4e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x147f9c=>_0x282df5['fromRange'](_0x147f9c));_0x25d330['setSelection'](_0x3f9b58);for(const _0x5eb014 of this['_editor']['commands']['commands']())_0x5eb014['refresh']();_0x3bb402['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x258a71,..._0x3bb402);const _0x36d7f5=_0x5c9b4e['filter'](_0x57fdb4=>'$graveyard'!=_0x57fdb4['root']['rootName']);_0x36d7f5['length']>0x0&&_0x25d330['setSelection'](_0x36d7f5);for(const _0x4aea48 of _0x5c9b4e)_0x4aea48['detach']();});},_0x35259c=(_0x26e566,_0x17d804)=>0x1==_0x26e566['length']&&0x1==_0x17d804['length']&&_0x26e566[0x0]['end']['isEqual'](_0x17d804[0x0]['start']),_0x1f6b76=(_0x5be945,_0x1b7f74,_0x25b75f,_0x58dd7e)=>Ht(_0x5be945,_0x1b7f74,_0x25b75f,_0x58dd7e)?[_0x5be945,_0x1b7f74]:Ht(_0x1b7f74,_0x5be945,_0x58dd7e,_0x25b75f)?[_0x1b7f74,_0x5be945]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x40bfe6),this['_defaultCallbacks']['set']('insertion:discard',_0x1e080c),this['_defaultCallbacks']['set']('insertion:join',_0x35259c),this['_defaultCallbacks']['set']('insertion:chain',_0x1f6b76),this['_defaultCallbacks']['set']('deletion:accept',_0x1e080c),this['_defaultCallbacks']['set']('deletion:discard',_0x40bfe6),this['_defaultCallbacks']['set']('deletion:join',_0x35259c),this['_defaultCallbacks']['set']('deletion:chain',_0x1f6b76),this['_defaultCallbacks']['set']('formatInline:accept',_0x2eccd5),this['_defaultCallbacks']['set']('formatInline:discard',_0x40bfe6),this['_defaultCallbacks']['set']('formatInline:join',_0x35259c),this['_defaultCallbacks']['set']('formatInline:chain',_0x40bfe6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2eccd5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x40bfe6),this['_defaultCallbacks']['set']('formatBlock:join',_0x35259c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x40bfe6),this['_defaultCallbacks']['set']('attribute:accept',_0x40bfe6),this['_defaultCallbacks']['set']('attribute:discard',(_0x1f2a03,_0x3c8389)=>{if(!_0x3c8389)return;const _0x22acae=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x855ce4=>{if(_0x3c8389['key']==m)for(const _0x2e304f of _0x1f2a03){const _0x12168e=_0x2e304f['start']['nodeAfter'],_0x3586f3=_0x3c8389['oldValue'];_0x855ce4['rename'](_0x12168e,_0x3586f3);}else{if(_0x22acae['_isBlockAttribute'](_0x3c8389['key'])){for(const _0x39c088 of _0x1f2a03)void 0x0!==_0x3c8389['oldValue']?_0x855ce4['setAttribute'](_0x3c8389['key'],_0x3c8389['oldValue'],_0x39c088['start']['nodeAfter']):_0x855ce4['removeAttribute'](_0x3c8389['key'],_0x39c088['start']['nodeAfter']);}else{for(const _0x455643 of _0x1f2a03)_0x3c8389['oldValue']?_0x855ce4['setAttribute'](_0x3c8389['key'],_0x3c8389['oldValue'],_0x455643):_0x855ce4['removeAttribute'](_0x3c8389['key'],_0x455643);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x35259c);}}function Ut(_0x1aa9ac,_0x5289dd,_0x5e6102){for(const _0x20ef6e of _0x5289dd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x20ef6e['root']==_0x20ef6e)return!0x1;if(!_0x5e6102['containsItem'](_0x20ef6e))return!0x1;if(_0x1aa9ac['isObject'](_0x20ef6e)||_0x1aa9ac['isLimit'](_0x20ef6e))return!0x0;}return!0x1;}function Vt(_0x4a83a7){return _0x4a83a7['end']['parent']==_0x4a83a7['start']['nodeAfter']&&_0x4a83a7['end']['isAtStart'];}function Pt(_0x57f816,_0x50dbc5,_0x3c0097,_0x2c45ae){const _0x3a074d=_0x223099=>!_0x223099['item']['is']('$textProxy')&&!_0x2c45ae['isObject'](_0x223099['item']),_0x3fa8c6=_0x57f816['start']['getLastMatchingPosition'](_0x3a074d),_0x3514ef=_0x57f816['end']['getLastMatchingPosition'](_0x3a074d,{'direction':'backward'});return(!_0x57f816['start']['isEqual'](_0x3fa8c6)||!_0x57f816['end']['isEqual'](_0x3514ef))&&(_0x3fa8c6['isBefore'](_0x3514ef)?_0x3c0097['updateMarker'](_0x50dbc5,{'range':_0x3c0097['createRange'](_0x3fa8c6,_0x3514ef)}):_0x3c0097['removeMarker'](_0x50dbc5),!0x0);}function Gt(_0x3cdee1){return _0x4d7158(_0x3cdee1);}function Ft(_0x1cf2db){const _0xc3a5df=_0x1cf2db['start']['nodeAfter'];return _0xc3a5df&&_0xc3a5df['is']('element');}function Lt(_0x479ac8,_0x3a3229){return null==_0x479ac8['end']['nodeBefore']&&_0x479ac8['end']['parent']==_0x479ac8['start']['nodeAfter']?Jt(_0x479ac8['start']['nodeAfter'],_0x3a3229):_0x479ac8;}function Jt(_0x5233a6,_0x171b00){const _0x4bec63=_0x171b00['schema']['isObject'](_0x5233a6)||_0x171b00['schema']['isSelectable'](_0x5233a6);return _0x171b00['createRange'](_0x171b00['createPositionAt'](_0x5233a6,'before'),_0x4bec63?_0x171b00['createPositionAfter'](_0x5233a6):_0x171b00['createPositionAt'](_0x5233a6,'end'));}function Ht(_0x25a7e2,_0x5d5a7c,_0x428db6,_0x67daa0){return!!qt(_0x25a7e2,_0x5d5a7c)&&_0x428db6['end']['isEqual'](_0x67daa0['start']);}function qt(_0x984dc2,_0x43368b){if(!_0x984dc2['_isDataLoaded']||!_0x43368b['_isDataLoaded'])return!0x1;const _0xf0855f=new Set(Object['keys'](_0x984dc2['attributes'])),_0x2e58e4=new Set(Object['keys'](_0x43368b['attributes']));if(_0xf0855f['delete']('groupId'),_0x2e58e4['delete']('groupId'),0x0==_0xf0855f['size']&&0x0==_0x2e58e4['size'])return!0x0;if(_0xf0855f['size']!=_0x2e58e4['size'])return!0x1;const _0x318def={..._0x984dc2['attributes']},_0x1339f4={..._0x43368b['attributes']};return delete _0x318def['groupId'],delete _0x1339f4['groupId'],JSON['stringify'](_0x318def)==JSON['stringify'](_0x1339f4);}function zt(_0xefd3d7,_0x2114f7){const _0x2c6e0b=Kt(_0xefd3d7['attributes']),_0x282983=Kt(_0x2114f7);if(!_0xefd3d7['_isDataLoaded'])return!0x1;for(const _0x57b3de of Object['keys'](_0x282983))if(!_0x5c0d27(_0x2c6e0b[_0x57b3de],_0x282983[_0x57b3de]))return!0x1;return!0x0;}function Kt(_0xbb1c9a){const _0x17010d=Object['assign']({},_0xbb1c9a);return delete _0x17010d['skipNestingCheck'],delete _0x17010d['tablePasteChainId'],_0x17010d;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2f0fd0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40975d,_0x9adb93,_0x10f4a1,_0x577fdb){super(),this['model']=_0x9adb93,this['view']=_0x10f4a1,this['commentThreadController']=_0x577fdb,this['_editor']=_0x40975d,this['_acceptCommand']=_0x40975d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40975d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5cc1be,_0x5256b4)=>_0x5cc1be||_0x5256b4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xfba0e6=>_0xfba0e6&&this['_editor']['model']['canEditAt'](_0x9adb93['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e6d75=>_0x4e6d75&&this['_editor']['model']['canEditAt'](_0x9adb93['getRanges']())),this['_pendingAction']=null,_0x10f4a1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x10f4a1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x10f4a1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x10f4a1,'change:isDirty',()=>{_0x10f4a1['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 _0x56b20c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x56b20c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x31d06a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x96425b,_0x38ba92,_0x27a0ef,_0x3276aa){super(_0x96425b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x512818(_0x96425b,o(_0x96425b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x38ba92['authoredAt']),this['bind']('authoredAt')['to'](_0x38ba92),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',_0x38ba92,'authoredAt',this,'descriptionParts',(_0xd0d63c,_0x21440b,_0x4b97ed)=>{const _0x2881f7=_0x4b97ed['map'](_0x16c665=>ns(_0x16c665['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xd0d63c-0x1,_0x38ba92['author']['name'],_0x21440b?_0x3276aa['formatDateTime'](_0x21440b):'',new DOMParser()['parseFromString'](_0x2881f7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2686b8(),this['focusTracker']=new _0x2dd17b(),this['keystrokes']=new _0x4dba44(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1179d7=>_0x1179d7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x38ba92,this['_localUser']=_0x27a0ef,this['_config']=_0x3276aa,_0x3276aa['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2ebf2d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2612a8}=this['_config'];this['commentsListView']=new _0x2612a8(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',_0x3c0f3f=>_0x3c0f3f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x20ca31,_0x16beb3)=>_0x20ca31||!!_0x16beb3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x28ffe7}=this['_config'],_0x43b65d=new _0x28ffe7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4223c8=_0x43b65d['commentInputView'];return _0x43b65d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4223c8,'value',(_0x2cd08e,_0x39fa25,_0x46776e)=>!!_0x46776e||_0x2cd08e&&!_0x39fa25),_0x4223c8['on']('submit',(_0x134f16,_0x113e0c)=>{this['fire']('addComment',_0x113e0c),_0x4223c8['editor']['setData']('');}),_0x4223c8['on']('cancel',()=>this['focus']()),_0x4223c8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x43b65d;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3a720d,_0x399ef2,_0xbac199,_0x217ccc){super(_0x3a720d,_0x399ef2,_0xbac199,_0x217ccc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x30569b=>_0x30569b&&_0x30569b[0x0]?_0x30569b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3e37ea,_0x45194d)=>{let _0x3ad33f='';for(const _0x37221d of _0x3e37ea)_0x3ad33f+='<p>'+ns(_0x37221d['content'],_0x37221d['color'])+'</p>';return _0x45194d?_0x3ad33f:ti(_0x3ad33f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x217ccc['SuggestionView'](_0x3a720d,_0x399ef2,{'formatDateTime':_0x217ccc['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 _0x28b3e4=this['bindTemplate'],_0x5b7369=[this['suggestionView']];return this['commentsListView']&&_0x5b7369['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5b7369['push'](this['commentThreadInputView']),_0x5b7369['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x28b3e4['if']('isActive','ck-suggestion-wrapper--active'),_0x28b3e4['to']('type',_0x5a2d91=>'ck-suggestion-'+_0x5a2d91),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':_0x28b3e4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5b7369};}['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 ue extends _0x31d06a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x9c8a11,_0x2949cb,_0x746c69){super(_0x9c8a11),this['_model']=_0x2949cb,this['_config']=_0x746c69,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2949cb),this['acceptButton']=this['_createButton'](o(_0x9c8a11,'Accept\x20suggestion'),_0xb09a87['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x9c8a11,'Discard\x20suggestion'),_0xb09a87['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xb4de14(_0x9c8a11,_0x2949cb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2686b8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2dd17b(),this['keystrokes']=new _0x4dba44(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4fd508=>_0x4fd508['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5ad8b0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5ad8b0['innerHTML']=this['description'],this['on']('change:description',(_0x2a6faa,_0x4d7f81,_0x3b0c01)=>{_0x5ad8b0['innerHTML']=_0x3b0c01;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x544191=this['bindTemplate'],_0x1fc666=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x544191['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x544191['to']('authoredAt',_0x4914a7=>this['_config']['formatDateTime'](_0x4914a7))}]}]},{'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']&&_0x1fc666['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':_0x1fc666}]};}['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'](_0x23bc61,_0x2011c4,_0x74b924,_0x25a4c1,_0x43f8c3){const _0x56337d=new _0x4359ea(this['locale']);return _0x56337d['set']({'label':_0x23bc61,'icon':_0x2011c4,'tooltip':!0x0,'tooltipPosition':_0x43f8c3}),_0x56337d['extendTemplate']({'attributes':{'class':_0x74b924}}),_0x56337d['on']('execute',()=>{this['fire'](_0x25a4c1,this['_model']['id']);}),_0x56337d;}['_setupKeyboardNavigation'](){const _0xd6c7ff=this['element'];this['keystrokes']['listenTo'](_0xd6c7ff);for(const _0x56f479 of this['focusables'])this['focusTracker']['add'](_0x56f479['element']),this['keystrokes']['listenTo'](_0x56f479['element']);this['keystrokes']['set']('enter',(_0x5ab1aa,_0x48a250)=>{_0xd6c7ff===_0x5ab1aa['target']&&(this['focusCycler']['focusFirst'](),_0x48a250());}),this['keystrokes']['set']('esc',(_0x28e97a,_0x4f20f2)=>{_0xd6c7ff!==_0x28e97a['target']&&(this['focus'](),_0x4f20f2());});}}var Ce='<!--\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-2024,\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 _0x20fd26{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x314e7d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31c968){super(_0x31c968),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x323e0b=this['editor']['config'];_0x323e0b['define']('trackChanges.SuggestionThreadView',de),_0x323e0b['define']('trackChanges.SuggestionView',ue),_0x323e0b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x323e0b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xd8c4c5,_0x187f5a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x365078,_0x23d912]of this['_handleControllerBuffer']){const _0x52d08f=this['_suggestionToController']['has'](_0x365078);_0x52d08f||_0x23d912?_0x52d08f&&_0x23d912&&this['_destroyController'](_0x365078):this['_initializeController'](_0x365078);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xd8c4c5,_0x187f5a);}['init'](){const _0x47532a=this['editor'],_0x1b0a51=_0x47532a['plugins']['get']('TrackChangesEditing'),_0x1d2409=_0x47532a['plugins']['get']('Annotations'),_0xe50a67=_0x47532a['plugins']['get']('EditorAnnotations'),_0x4760c4=_0x47532a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xe50a67['addSourceCollector'](()=>{const _0x43163f=[];for(const [_0x357b4d,_0x4b2fbc]of Array['from'](this['_suggestionToController'])){const _0x51601d=_0x357b4d['getAllAdjacentSuggestions'](),_0x3d594b=[];for(const _0x4b4097 of _0x51601d){if(!_0x4b4097['isInContent'])continue;if(_0x4b4097['isMultiRange']){_0x3d594b['push'](..._0x4b4097['getRanges']());continue;}const _0x375081=_0x4b4097['getFirstRange']();if(_0x3d594b['length']>0x0){const _0x3646c9=_0x3d594b[0x0]['getJoined'](_0x375081);if(_0x3646c9){_0x3d594b[0x0]=_0x3646c9;continue;}}_0x3d594b['push'](_0x375081);}_0x43163f['push']([_0x4b2fbc['view'],_0x3d594b]);}return _0x43163f;}),this['listenTo'](_0x1b0a51,'suggestionLoaded',(_0x23cfa0,_0x57e46d)=>{this['listenTo'](_0x57e46d,'change:previous',(_0x25577d,_0xc6b1c7,_0x1cf56a,_0x31c369)=>{_0x57e46d['isInContent']&&(null==_0x1cf56a?(this['_updateController'](_0x31c369['head']),this['_handleSuggestionControllerDelayed'](_0x57e46d,!0x1)):(this['_updateController'](_0x1cf56a['head']),null==_0x31c369&&this['_handleSuggestionControllerDelayed'](_0x57e46d,!0x0)));}),null!==_0x57e46d['previous']?this['_updateController'](_0x57e46d['head']):this['_handleSuggestionControllerDelayed'](_0x57e46d,!0x1);}),this['listenTo'](_0x1b0a51,'suggestionUnloaded',(_0x187fb3,_0x536b28,_0x405296)=>{this['stopListening'](_0x536b28,'change:previous'),this['_handleControllerBuffer']['delete'](_0x536b28),this['_suggestionToController']['has'](_0x536b28)&&this['_destroyController'](_0x536b28),_0x405296&&this['_updateController'](_0x405296['head']);}),this['listenTo'](_0x1b0a51,'suggestionChanged',(_0x4819a9,_0x5cad6c)=>{this['_updateController'](_0x5cad6c);}),this['listenTo'](_0x1d2409,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4760c4,'addComment',(_0x31ab4e,{threadId:_0x4e37f3,isFromAdapter:_0x10ac5f})=>{if(_0x10ac5f||!_0x1b0a51['hasSuggestion'](_0x4e37f3))return;const _0x3f6260=_0x1b0a51['getSuggestion'](_0x4e37f3);this['_suggestionToController']['get'](_0x3f6260)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d9240=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x302a81;for(const _0x94bd50 in _0x2d9240){const _0x249733=_0x94bd50,_0x2e67c5=_0x2d9240[_0x249733];if('trackChangesLicenseKeyValid'==_0x2e67c5||'trackChangesLicenseKeyInvalid'==_0x2e67c5||'trackChangesLicenseKeyExpired'==_0x2e67c5||'trackChangesLicenseKeyDomainLimit'==_0x2e67c5||'trackChangesLicenseKeyNotAllowed'==_0x2e67c5||'trackChangesLicenseKeyEvaluationLimit'==_0x2e67c5||'trackChangesLicenseKeyTrialLimit'==_0x2e67c5||'trackChangesLicenseKeyDevelopmentLimit'==_0x2e67c5||'trackChangesLicenseKeyUsageLimit'==_0x2e67c5){delete _0x2d9240[_0x249733],_0x302a81=_0x2e67c5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x302a81&&_0x2d9240['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x302a81&&_0x2d9240['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x302a81&&_0x2d9240['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x302a81&&_0x2d9240['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x302a81&&_0x2d9240['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x302a81&&_0x2d9240['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x302a81&&_0x2d9240['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x302a81&&_0x2d9240['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1ac185=this['editor']['plugins']['get']('Annotations'),_0xe1d313=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d99eb=Array['from'](_0x1ac185['activeAnnotations'],_0x26ab21=>_0x26ab21['innerView'])['filter'](_0x3162d6=>this['_viewToController']['has'](_0x3162d6)),_0x594c8d=[];for(const _0x12e7c9 of _0x1d99eb){const _0x28211f=this['_viewToController']['get'](_0x12e7c9)['model']['getAllAdjacentSuggestions']();_0x594c8d['push'](..._0x28211f['reduce']((_0x405040,_0x20f345)=>[..._0x405040,..._0x20f345['getMarkerNames']()],[]));}_0xe1d313['activeMarkers']=_0x594c8d;}['_addUIComponentsToFactory'](){const _0x16e646=this['editor'],_0x244739=_0x16e646['locale'],_0x10ad85=o(_0x244739,'Track\x20changes'),_0x1703fc=new _0x32d6fd([{'type':'switchbutton','model':new _0x5c85b3({'withText':!0x0,'isToggleable':!0x0,'label':_0x10ad85,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5c85b3({'withText':!0x0,'label':o(_0x244739,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c85b3({'withText':!0x0,'label':o(_0x244739,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c85b3({'withText':!0x0,'label':o(_0x244739,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c85b3({'withText':!0x0,'label':o(_0x244739,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5e2f8d of _0x1703fc)if(pe(_0x5e2f8d)){const _0x578a1f=_0x16e646['commands']['get'](_0x5e2f8d['model']['commandName']);_0x5e2f8d['model']['bind']('isOn','isEnabled')['to'](_0x578a1f,'value','isEnabled');}_0x16e646['ui']['componentFactory']['add']('trackChanges',_0x2bf501=>this['_createToolbarButton'](_0x2bf501,_0x1703fc,_0x10ad85)),_0x16e646['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1c657c=>this['_createMenuBarMenu'](_0x1c657c,_0x1703fc,_0x10ad85));}['_createToolbarButton'](_0x20a20d,_0x4eb5cf,_0x1c0d0d){const _0x57abef=_0x5b00cd(_0x20a20d,_0x127b4c),_0x5d15d4=this['editor']['commands']['get']('trackChanges');_0x57abef['buttonView']['set']({'tooltip':_0x1c0d0d,'label':_0x1c0d0d,'icon':Ce}),_0x57abef['buttonView']['bind']('isOn')['to'](_0x5d15d4,'value'),_0x57abef['buttonView']['on']('execute',()=>{_0x5d15d4['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x57abef,_0x4eb5cf,{'role':'menu'});const _0x411787=[];for(const _0x3b8745 of _0x4eb5cf)pe(_0x3b8745)&&_0x411787['push'](this['editor']['commands']['get'](_0x3b8745['model']['commandName']));const _0x1aec54=_0x57abef['buttonView'];return _0x1aec54['actionView']['unbind']('isEnabled'),_0x1aec54['arrowView']['unbind']('isEnabled'),_0x1aec54['actionView']['bind']('isEnabled')['to'](_0x5d15d4,'isEnabled'),_0x1aec54['arrowView']['bind']('isEnabled')['toMany'](_0x411787,'isEnabled',(..._0x57763a)=>_0x57763a['some'](_0x94e61c=>_0x94e61c)),_0x57abef['on']('execute',_0xa87be9=>{this['editor']['execute'](_0xa87be9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x57abef;}['_createMenuBarMenu'](_0x454967,_0x270099,_0x1ce4d2){const _0x362ac7=new _0x35d0fe(_0x454967),_0x281dc8=this['editor']['commands']['get']('trackChanges');_0x362ac7['buttonView']['set']({'label':_0x1ce4d2,'icon':Ce});const _0x1b2d74=new _0x39ce3d(_0x454967);for(const _0x408e16 of _0x270099){if('separator'==_0x408e16['type']){_0x1b2d74['items']['add'](new _0x227d5e(_0x454967));continue;}const _0x1b0adf=new _0x131568(_0x454967,_0x362ac7),_0x36a6a8=new _0x34a57f(_0x454967),_0x591834=_0x408e16['model'];_0x36a6a8['bind'](...Object['keys'](_0x591834))['to'](_0x591834),_0x36a6a8['delegate']('execute')['to'](_0x362ac7),_0x36a6a8['on']('execute',()=>{this['editor']['execute'](_0x591834['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b0adf['children']['add'](_0x36a6a8),_0x1b2d74['items']['add'](_0x1b0adf);}return _0x362ac7['bind']('isEnabled')['to'](_0x281dc8,'isEnabled'),_0x362ac7['panelView']['children']['add'](_0x1b2d74),_0x362ac7;}['_initializeController'](_0x5a364a){const _0x5026ca=this['editor'],_0x9ae959=_0x5026ca['config'],_0x1bd114=_0x5026ca['plugins']['get']('Annotations'),_0x5b8b13=_0x5026ca['plugins']['get']('CommentsRepository'),_0xf0c73=_0x5026ca['plugins']['get']('EditorAnnotations'),_0x1f14d=_0x5026ca['plugins']['get'](_0x314e7d)['me'],_0x43ca22=_0x9ae959['get']('trackChanges')['SuggestionThreadView'],_0x16011a=_0x9ae959['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x8eaed,CommentThreadInputView:_0x49cdbc}=_0x5026ca['plugins']['get']('CommentsUI');let _0x207c36,_0x29b21c,_0xeb839d;this['_annotationViews']['has'](_0x5a364a['id'])?(_0x29b21c=this['_annotationViews']['get'](_0x5a364a['id']),_0x207c36=_0x29b21c['mainView']):(_0x207c36=new _0x43ca22(_0x5026ca['locale'],_0x5a364a,_0x1f14d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x9ae959['get']('comments.editorConfig'),'licenseKey':_0x9ae959['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x9ae959['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9ae959['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x9ae959['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22fe0a(_0x9ae959['get']('locale')),'CommentView':_0x9ae959['get']('comments')['CommentView'],'CommentsListView':_0x8eaed,'CommentThreadInputView':_0x49cdbc,'SuggestionView':_0x16011a}),_0x207c36['suggestionView']['acceptButton']['on']('execute',()=>{_0x5026ca['editing']['view']['focus']();}),_0x207c36['suggestionView']['discardButton']['on']('execute',()=>{_0x5026ca['editing']['view']['focus']();}),_0x29b21c=_0x1bd114['createAnnotationView'](this['editor']['locale'],_0x207c36),_0x29b21c['bind']('isDirty')['to'](_0x207c36,'isDirty'),_0x29b21c['bind']('length')['to'](_0x207c36),_0x29b21c['bind']('type')['to'](_0x207c36,'type',_0x297993=>'suggestion-'+_0x297993),_0x207c36['on']('escape',()=>{_0xeb839d['fire']('escape');}),this['_annotationViews']['set'](_0x5a364a['id'],_0x29b21c));const _0x225f40=_0x5b8b13['createCommentThreadController'](_0x5a364a['commentThread'],_0x207c36),_0x2c4d23=new ge(_0x5026ca,_0x5a364a,_0x207c36,_0x225f40),_0x48126b=_0x5a364a['getAllAdjacentSuggestions']()['filter'](_0x54fe7e=>_0x54fe7e['isInContent']);_0x207c36['descriptionParts']=_0x5026ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x48126b),this['_suggestionToController']['set'](_0x5a364a,_0x2c4d23),this['_viewToController']['set'](_0x207c36,_0x2c4d23),_0xeb839d=_0x1bd114['createAnnotation']({'view':_0x29b21c,'target':()=>{const _0x5533d6=[],_0x51800b=_0x5a364a['getAllAdjacentSuggestions']()['filter'](_0x2d3157=>_0x2d3157['isInContent']);for(const _0x2f7522 of _0x51800b)_0x5533d6['push'](..._0x2f7522['getMarkers']());return _0x197d86(_0x5026ca['editing'],_0x5533d6);},'type':()=>'suggestion-'+_0x2c4d23['view']['type']}),_0x5b8b13['_bindAnnotationToEditors'](_0x207c36,_0xeb839d),_0x1bd114['add'](_0xeb839d),_0xf0c73['registerAnnotation'](_0xeb839d);}['_destroyController'](_0x2012d0){const _0x4d1c87=this['editor']['plugins']['get']('CommentsRepository'),_0x7aff7c=this['editor']['plugins']['get']('Annotations'),_0xa6fa34=this['_suggestionToController']['get'](_0x2012d0),_0xf6b76=_0xa6fa34['view'],_0xcecb2d=_0x7aff7c['getByInnerView'](_0xf6b76);_0x4d1c87['_unbindEditors'](_0xf6b76),_0xcecb2d&&_0x7aff7c['remove'](_0xcecb2d),this['_suggestionToController']['delete'](_0x2012d0),this['_viewToController']['delete'](_0xf6b76),_0xa6fa34['destroy']();}['_updateController'](_0x4af977){if(!_0x4af977['isInContent']||!this['_suggestionToController']['has'](_0x4af977))return;const _0x51ea51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1850e7=this['_suggestionToController']['get'](_0x4af977),_0x4bbfbe=_0x4af977['getAllAdjacentSuggestions']();_0x1850e7['view']['descriptionParts']=_0x51ea51['descriptionFactory']['getDescriptions'](_0x4bbfbe);}['destroy'](){for(const _0x412af1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x412af1);for(const _0x525e98 of this['_annotationViews']['values']())_0x525e98['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x877225){return'model'in _0x877225;}class k extends _0x20fd26{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x33176d){this['editor']['plugins']['get'](p)['adapter']=_0x33176d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x30f82a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x30f82a);}['getSuggestions']({skipNotAttached:_0x270ce7=!0x1,toJSON:_0x16f368=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x270ce7,'toJSON':_0x16f368});}['getSuggestion'](_0x9904cc){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x9904cc);}}const w=['Pagination'];class T extends _0x20fd26{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x244583=this['editor'];if(_0x244583['config']['define']('trackChangesData.editorCreator',_0x59d60a=>{const _0x573d35=_0x244583['model']['document']['getRootNames']()['reduce']((_0x68016,_0x43091c)=>(_0x68016[_0x43091c]='',_0x68016),{});return _0x244583['constructor']['create'](_0x573d35,_0x59d60a);}),'function'!=typeof _0x244583['config']['get']('trackChangesData')['editorCreator'])throw new _0x248d7e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x360eb1){return N(this['editor'],!0x0,_0x360eb1);}['getDataWithDiscardedSuggestions'](_0x29eb9d){return N(this['editor'],!0x1,_0x29eb9d);}}class D extends _0x20fd26{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47bd58){function _0x20f1d7(_0x167505){return _0x167505['map'](_0x4caefd=>String['fromCharCode'](_0x4caefd))['join']('');}super(_0x47bd58),this['result']='end',_0x47bd58[_0x20f1d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20f1d7([0x76,0x69,0x65,0x77])][_0x20f1d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20f1d7([0x61,0x75,0x74,0x6f]),_0x47bd58[_0x20f1d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20f1d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20f1d7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20f1d7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20f1d7([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 v(_0x9440b8){return void 0x0!==_0x9440b8['getRootsAttributes'];}async function N(_0x545140,_0x6d81b4,_0x559eab){const _0x24b7a5=_0x47d743(_0x545140,w);_0x24b7a5['plugins']['push'](p,D),_0x24b7a5['rootsAttributes']=v(_0x545140)?_0x545140['getRootsAttributes']():void 0x0;const _0x21cc6b=document['createDocumentFragment'](),_0x261099=_0x545140['config']['get']('trackChangesData')['editorCreator'],_0xec1edc=await _0x261099(_0x24b7a5,()=>function(_0x24f13b){const _0x3ab055=document['createElement']('div');return _0x24f13b['appendChild'](_0x3ab055),_0x3ab055;}(_0x21cc6b));!function(_0x2c5496,_0x1ae2fc){const _0x55e71e=_0x2c5496['model']['document']['getRootNames']()['reduce']((_0x19b2ae,_0xb74037)=>(_0x19b2ae[_0xb74037]=_0x2c5496['data']['get']({'rootName':_0xb74037}),_0x19b2ae),{}),_0x64a948=_0x2c5496['plugins']['get']('Users')['users']['map'](_0x36768f=>({'id':_0x36768f['id'],'name':_0x36768f['name']})),_0x2d8b78=_0x2c5496['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4559c=_0x2c5496['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x38781b=_0x1ae2fc['plugins']['get']('Users'),_0x139fc2=_0x1ae2fc['plugins']['get']('TrackChangesEditing'),_0x21401a=_0x1ae2fc['plugins']['get']('CommentsRepository');for(const _0x29658f of _0x21401a['getCommentThreads']())_0x29658f['remove']();for(const _0xe5b924 of _0x64a948)_0x38781b['getUser'](_0xe5b924['id'])||_0x38781b['addUser'](_0xe5b924);_0x38781b['me']||_0x38781b['useAnonymousUser']();for(const _0x25245f of _0x4559c)_0x21401a['addCommentThread'](_0x25245f);for(const _0x50d152 of _0x2d8b78)_0x139fc2['addSuggestionData'](_0x50d152);_0x1ae2fc['data']['set'](_0x55e71e);}(_0x545140,_0xec1edc),_0xec1edc['execute'](_0x6d81b4?'acceptAllSuggestions':'discardAllSuggestions');const _0x3e1291=v(_0xec1edc)?_0xec1edc['getFullData'](_0x559eab):_0xec1edc['data']['get'](_0x559eab);return await _0xec1edc['destroy'](),_0x3e1291;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|