@ckeditor/ckeditor5-track-changes 38.0.1 → 38.1.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.
Files changed (79) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +10 -8
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.d.ts +3 -2
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.d.ts +3 -2
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.d.ts +3 -2
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.d.ts +3 -2
  43. package/src/integrations/shiftentercommand.js +1 -1
  44. package/src/integrations/standardeditingmode.js +1 -1
  45. package/src/integrations/style.js +1 -1
  46. package/src/integrations/table.js +1 -1
  47. package/src/integrations/tablecaption.d.ts +3 -2
  48. package/src/integrations/tablecaption.js +1 -1
  49. package/src/integrations/tableclipboard.d.ts +3 -2
  50. package/src/integrations/tableclipboard.js +1 -1
  51. package/src/integrations/tablecolumnresize.js +1 -1
  52. package/src/integrations/tableheadings.d.ts +3 -2
  53. package/src/integrations/tableheadings.js +1 -1
  54. package/src/integrations/tablemergesplit.d.ts +3 -2
  55. package/src/integrations/tablemergesplit.js +1 -1
  56. package/src/integrations/tableofcontents.js +1 -1
  57. package/src/integrations/tableproperties.d.ts +1 -1
  58. package/src/integrations/tableproperties.js +1 -1
  59. package/src/integrations/template.js +1 -1
  60. package/src/integrations/title.js +1 -1
  61. package/src/integrations/undo.js +1 -1
  62. package/src/integrations/utils.js +1 -1
  63. package/src/suggestion.d.ts +1 -1
  64. package/src/suggestion.js +1 -1
  65. package/src/suggestiondescriptionfactory.js +1 -1
  66. package/src/trackchanges.d.ts +5 -5
  67. package/src/trackchanges.js +1 -1
  68. package/src/trackchangesdata.d.ts +4 -5
  69. package/src/trackchangesdata.js +1 -1
  70. package/src/trackchangesediting.d.ts +49 -5
  71. package/src/trackchangesediting.js +1 -1
  72. package/src/trackchangesui.d.ts +5 -5
  73. package/src/trackchangesui.js +1 -1
  74. package/src/ui/suggestioncontroller.js +1 -1
  75. package/src/ui/view/basesuggestionthreadview.js +1 -1
  76. package/src/ui/view/suggestionthreadview.d.ts +0 -2
  77. package/src/ui/view/suggestionthreadview.js +1 -1
  78. package/src/utils/common-translations.js +1 -1
  79. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53be=['discardAllSuggestions','authorName','sort','addSuggestionData','_getSuggestionData','buildSuggestion','setAttribute','never','createRangeIn','getAncestors','track-changes-command-not-found','creator','fromCharCode','insertion:','originalSuggestionId','commands','isDocumentOperation','ck-suggestion-marker--active','deletion:chain','ready','getShiftedBy','createPositionAfter','addComment','getSuggestion','map','getCommentThread','markers','track-changes-adapter-missing-getsuggestion','dataReady','open','moveTargetPosition','markerReady','addHighlight','formatInline:','addMarker','requires','_suggestionFactory','init','enableCommand','markInsertion','activeMarkers','isOwn','enqueueChange','data-suggestion','getIntersection','updateMarker','isLimit','getWalker','insertion','dataDowncast','nodeBefore','consumable','after','_enabledCommands','isCollapsed','createPositionAt','markerName','splice','isIntersectingWithRange','push','_removeSuggestion','elementEnd','next','schema','subType','_findSuggestions','_suggestionState','_suggestions','targetPosition','formatBlock:','join','set','skipNestingCheck','_mergeNestedSuggestions','addUser','deleteContent','split','_setSuggestionData','author','markerNameToElements','fromRange','isNextTo','deletion:join','createPositionBefore','applyOperation','suggestionChanged','TrackChangesEditing','splitPosition','isBlock','discardSuggestion','fire','removeComment','data','removeMarker:suggestion:formatBlock','_handleNewSuggestionMarker','removed','formatBlock:chain','update:suggestion','insertion:discard','getItems','formatBlock:accept','formatBlock:join','suggestion','authoredAt','change:_saved','editingDowncast','isSelectable','discard','item','batch','formatBlock','isBefore','end','previous','every','_commentsRepository','removeClass','head','stop','pluginName','PENDING_ACTION_SUGGESTION','document','addMarkerName','start','ck-suggestion-marker-','dataToMarker','acceptSelectedSuggestions','isUndo','move','_model','hasSuggestion','createRange','setTo','_addSuggestionMarker','isLocal','_onDiscard','markMultiRangeDeletion','accepted','getMultiRangeId','deletion:accept','Users','markerToHighlight','insertion:chain','includes','hasComments','trackChanges','insertContent','getCustomProperty','insertion:accept','plugins','trackChanges.trackFormatChanges','default','isRemovable','resolve','trackChanges.mergeNestedSuggestions','normal','reconvertMarker','from','updateSuggestion','group','then','selection','differ','change:data','_setSuggestionRange','isMultiRange','rootName','writer','isAfter','createdAt','showSuggestionHighlights','formatInline','insertion:join','multi','_trackFormatChanges','_checkSuggestionCorrectness','PendingActions','value','suggestionLoaded','addSuggestion','newRange','filter','addRange','toViewElement','getSuggestions','commandName','markMultiRangeBlockFormat','backward','editor','values','removeMarker','getRanges','high','formatGroupId','options','type','rejected','setSelection','get','_saved','track-changes-suggestion-not-found','chain','$graveyard','change:activeMarkers','getAttribute','isInsideObject','_isForcedDefaultExecutionBlock','remove','collaboration.channelId','CommentsRepository','catch','createSelection','formatInline:join','getLastMatchingPosition','bindElementToMarker','insert','formatInline:chain','createElement','isExternal','getSuggestionCallback','getFirstRange','getAllAdjacentSuggestions','getRange','isAtStart','size','delete','some','adapter','name','upcast','getNearestSelectionRange','element','_refreshSuggestionsChain','_getAuthorFromId','getFirstMarker','range','@external','getChanges','multipleBlocks','isAtEnd','for','_customCallbacks','nodeAfter','conversion','_splitMarkerName','position','unbindElementFromMarkerName','forward','hasCommentThread','registerPostFixer','acceptSuggestion','_registerDefaultCallbacks','stopListening','execute','trackChangesCommand','discardSelectedSuggestions','_defaultCallbacks','has','substr','containerElement','length','clone','fetchCommentThread','locale','forceDefaultExecution','getMarkers','enableReadOnlyMode','listenTo','oldRange','containsRangeInObject','ck-suggestion-marker','always','formatBlock:discard','markInlineFormat','$textProxy','change','root','_adapter','track-changes-user-not-found','removeMarkers','deletion','_getExternalAuthor','getUser','howMany','notReady','marker-count','parent','_editor','deletion:','clear','config','lowest','addMarker:suggestion:formatBlock','low','containsItem','_cutOutSuggestionMarker','mapper','getChangedMarkers','widget','containsPosition','consume','detach','isInContent','isObject','commentThread','_addThreadToSuggestion','_joinWithAdjacentSuggestions','_updateSuggestionData','getDifference','accept','return','containsRange','_joinSuggestions','markMultiRangeInsertion','isEqual','add','suggestion:','_rangeIsInLocalUserInsertion','removeAttribute','markerToData','addMarker:suggestion','external:','model','attributes'];(function(_0x59eef6,_0x53be2b){const _0x3fa20f=function(_0xba7626){while(--_0xba7626){_0x59eef6['push'](_0x59eef6['shift']());}};_0x3fa20f(++_0x53be2b);}(_0x53be,0x1de));const _0x3fa2=function(_0x59eef6,_0x53be2b){_0x59eef6=_0x59eef6-0x0;let _0x3fa20f=_0x53be[_0x59eef6];return _0x3fa20f;};import{Plugin as _0x25603d,PendingActions as _0x2eb2c6}from'ckeditor5/src/core';import{LiveRange as _0x526301}from'ckeditor5/src/engine';import{CKEditorError as _0xfcec74,uid as _0x33d3f5,priorities as _0x51a381,logWarning as _0xb801fd}from'ckeditor5/src/utils';import{toWidget as _0x185c41}from'ckeditor5/src/widget';import{Users as _0x53aedd,hashObject as _0x1ebb43}from'ckeditor5-collaboration/src/collaboration-core';import _0x3dac2b from'./commands/trackchangescommand';import _0x142e54 from'./commands/acceptsuggestioncommand';import _0x246e5f from'./commands/discardsuggestioncommand';import _0x433d0f from'./commands/executeonallsuggestionscommand';import _0x2cd40b from'./commands/executeonselectedsuggestionscommand';import _0x4a4cae from'./suggestion';import _0x3a5787 from'./suggestiondescriptionfactory';import _0xeacd7c from'./integrations/alignment';import _0x5e3c3e from'./integrations/basicstyles';import _0x47877a from'./integrations/blockquote';import _0x57cb6d from'./integrations/ckbox';import _0xf666ec from'./integrations/codeblock';import _0x5d84c2 from'./integrations/comments';import _0xda6404 from'./integrations/deletecommand';import _0x10c7f1 from'./integrations/documentlist';import _0x30e1aa from'./integrations/entercommand';import _0xe8af2c from'./integrations/findandreplace';import _0x262bd5 from'./integrations/font';import _0x3a5b51 from'./integrations/formatpainter';import _0x266b71 from'./integrations/heading';import _0x577a4b from'./integrations/highlight';import _0x1bc1ed from'./integrations/horizontalline';import _0xff8fec from'./integrations/htmlembed';import _0xa06a7 from'./integrations/image';import _0x711b6b from'./integrations/imagereplace';import _0x342f8c from'./integrations/importword';import _0x214644 from'./integrations/indent';import _0x4fba3d from'./integrations/inputcommand';import _0x48ae9f from'./integrations/link';import _0x25753d from'./integrations/list';import _0x1da5cc from'./integrations/listproperties';import _0x29d6f3 from'./integrations/mediaembed';import _0x4ddc61 from'./integrations/mention';import _0x5cbb2c from'./integrations/pagebreak';import _0x1ddebc from'./integrations/paragraph';import _0x53dc95 from'./integrations/removeformat';import _0x3e23bc from'./integrations/restrictededitingmode';import _0x157e3e from'./integrations/shiftentercommand';import _0x566384 from'./integrations/standardeditingmode';import _0x126898 from'./integrations/style';import _0x47cf9f from'./integrations/table';import _0x31b417 from'./integrations/tablemergesplit';import _0x15b334 from'./integrations/tableheadings';import _0x51e29f from'./integrations/tableclipboard';import _0xcdbb3f from'./integrations/tablecolumnresize';import _0x1cf907 from'./integrations/template';import _0x1d62a9 from'./integrations/tableofcontents';import _0x3d8525 from'./integrations/title';import _0x5778ad from'./integrations/undo';import{getTranslation as _0x10d468}from'./utils/common-translations';import _0x2903dc from'./integrations/tablecaption';import _0x3e2fad from'./integrations/documentlistproperties';import _0x513f64 from'./integrations/tableproperties';export default class p extends _0x25603d{static get[_0x3fa2('0xcd')](){return[_0x3fa2('0x37'),_0x53aedd,_0x2eb2c6,_0xeacd7c,_0x5e3c3e,_0x47877a,_0x57cb6d,_0xf666ec,_0x5d84c2,_0xda6404,_0x10c7f1,_0x3e2fad,_0x30e1aa,_0xe8af2c,_0x262bd5,_0x3a5b51,_0x266b71,_0x577a4b,_0x1bc1ed,_0xff8fec,_0xa06a7,_0x711b6b,_0x342f8c,_0x214644,_0x4fba3d,_0x48ae9f,_0x25753d,_0x1da5cc,_0x29d6f3,_0x4ddc61,_0x5cbb2c,_0x1ddebc,_0x53dc95,_0x3e23bc,_0x157e3e,_0x566384,_0x126898,_0x47cf9f,_0x31b417,_0x15b334,_0x2903dc,_0x51e29f,_0xcdbb3f,_0x1d62a9,_0x513f64,_0x1cf907,_0x3d8525,_0x5778ad];}static get[_0x3fa2('0x121')](){return _0x3fa2('0x100');}constructor(_0x452075){function _0x30a00c(_0x5369e9){return _0x5369e9['map'](_0xfa8903=>String[_0x3fa2('0xb6')](_0xfa8903))['join']('');}super(_0x452075),this[_0x3fa2('0xf1')]('activeMarkers',[]),this['on'](_0x3fa2('0x31'),(_0x55c431,_0x5d4a2b,_0x486ef9,_0x4435ab)=>{this[_0x3fa2('0x12b')]['change'](()=>{for(const _0x193c70 of[..._0x4435ab,..._0x486ef9])this[_0x3fa2('0x12b')][_0x3fa2('0xc4')][_0x3fa2('0x67')](_0x193c70)&&_0x452075['editing'][_0x3fa2('0x2')](_0x193c70);});}),this['_descriptionFactory']=new _0x3a5787(this[_0x3fa2('0x22')][_0x3fa2('0xa8')][_0x3fa2('0xe9')],this[_0x3fa2('0x22')]['locale']),this[_0x3fa2('0x7b')]=null,this[_0x3fa2('0xce')]=new Dt(this['editor']),this[_0x3fa2('0xed')]=new Map(),this['_commentsRepository']=_0x452075['plugins'][_0x3fa2('0x2c')]('CommentsRepository'),this[_0x3fa2('0xdf')]=new Set(),this[_0x3fa2('0x12b')]=this[_0x3fa2('0x22')][_0x3fa2('0xa8')],this[_0x3fa2('0xec')]=new WeakMap(),this[_0x3fa2('0x34')]=!0x1,_0x452075[_0x3fa2('0x88')]['define'](_0x3fa2('0x140'),_0x3fa2('0x141')),this['_trackFormatChanges']=_0x452075[_0x3fa2('0x88')]['get']('trackChanges.trackFormatChanges'),_0x452075[_0x3fa2('0x88')]['define'](_0x3fa2('0x0'),!0x0),this[_0x3fa2('0xf3')]=_0x452075[_0x3fa2('0x88')][_0x3fa2('0x2c')]('trackChanges.mergeNestedSuggestions'),this[_0x3fa2('0x64')]=new _0x3dac2b(_0x452075,this[_0x3fa2('0xdf')]),this[_0x30a00c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x30a00c([0x34,0x30,0x34,0x36,0x31,0x30,0x34,0x36]);}[_0x3fa2('0xcf')](){const _0x3133ac=this[_0x3fa2('0x22')];_0x3133ac['conversion'][_0x3fa2('0x56')](_0x3fa2('0x113'))[_0x3fa2('0x137')]({'model':_0x3fa2('0x110'),'view':_0x38103a=>{const {id:_0x2d1c9b,type:_0x54bac8}=this[_0x3fa2('0x5a')](_0x38103a[_0x3fa2('0xe2')]),_0x3d62ad=[_0x3fa2('0x74'),_0x3fa2('0x126')+_0x54bac8];let _0xe381be=0xbb8;return this[_0x3fa2('0xd2')]['includes'](_0x38103a[_0x3fa2('0xe2')])&&(_0x3d62ad['push']('ck-suggestion-marker--active'),_0xe381be=0xbc2),_0x3fa2('0x7e')==_0x54bac8&&(_0xe381be+=0x5),{'classes':_0x3d62ad,'attributes':{'data-suggestion':_0x2d1c9b},'priority':_0xe381be};}}),_0x3133ac['conversion'][_0x3fa2('0x56')](_0x3fa2('0xdb'))[_0x3fa2('0xa1')](_0x44c2a3=>{_0x44c2a3['on'](_0x3fa2('0xa6'),(_0x1676a7,_0x4f0097,_0x3c5417)=>{if(!_0x3c5417[_0x3fa2('0x28')][_0x3fa2('0x10')])return;const _0x2c9fc8=_0x4f0097[_0x3fa2('0x116')];if(!_0x2c9fc8)return;const _0x58c6f2=_0x3c5417[_0x3fa2('0x8e')][_0x3fa2('0x1d')](_0x2c9fc8);_0x3133ac['model'][_0x3fa2('0xe9')][_0x3fa2('0x95')](_0x2c9fc8)&&_0x58c6f2&&!_0x58c6f2['getCustomProperty'](_0x3fa2('0x90'))&&_0x58c6f2['is'](_0x3fa2('0x69'))&&_0x185c41(_0x58c6f2,_0x3c5417[_0x3fa2('0xd')]);},{'priority':_0x3fa2('0x26')});}),_0x3133ac[_0x3fa2('0x59')][_0x3fa2('0x56')](_0x3fa2('0xdb'))['markerToHighlight']({'model':'suggestion','view':(_0x7d13a9,_0x143009)=>{if(!_0x143009[_0x3fa2('0x28')][_0x3fa2('0x10')])return null;const {type:_0x4308bf}=this[_0x3fa2('0x5a')](_0x7d13a9[_0x3fa2('0xe2')]);return{'classes':[_0x3fa2('0x74'),_0x3fa2('0x126')+_0x4308bf],'priority':0xbb8};}});const _0x1a4840=({showActiveMarkers:_0x442dcc=!0x0}={})=>(_0x2427c6,_0x279b7e,_0x56b96e)=>{if(!_0x279b7e['item'])return;if(_0x279b7e[_0x3fa2('0x116')]['is'](_0x3fa2('0x7')))return void _0x56b96e[_0x3fa2('0xdd')][_0x3fa2('0x92')](_0x279b7e[_0x3fa2('0x116')],_0x2427c6['name']);const _0x2ded0e=_0x56b96e[_0x3fa2('0x8e')][_0x3fa2('0x1d')](_0x279b7e['item']);if(!(_0x279b7e[_0x3fa2('0x116')]['is'](_0x3fa2('0x4d'))&&_0x3133ac['model'][_0x3fa2('0xe9')][_0x3fa2('0x102')](_0x279b7e['item'])&&!_0x2ded0e[_0x3fa2('0x13d')](_0x3fa2('0xca'))))return;const {id:_0x3b7e38}=this[_0x3fa2('0x5a')](_0x279b7e['markerName']);_0x56b96e['writer']['addClass']([_0x3fa2('0x74'),'ck-suggestion-marker-formatBlock'],_0x2ded0e),_0x56b96e[_0x3fa2('0xd')][_0x3fa2('0xb0')](_0x3fa2('0xd5'),_0x3b7e38,_0x2ded0e),_0x56b96e[_0x3fa2('0x8e')][_0x3fa2('0x3c')](_0x2ded0e,_0x279b7e['markerName']),_0x442dcc&&(this['activeMarkers'][_0x3fa2('0x139')](_0x279b7e[_0x3fa2('0xe2')])?_0x56b96e[_0x3fa2('0xd')]['addClass']('ck-suggestion-marker--active',_0x2ded0e):_0x56b96e[_0x3fa2('0xd')][_0x3fa2('0x11e')]('ck-suggestion-marker--active',_0x2ded0e));for(const _0x1c1f8a of _0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xb2')](_0x279b7e[_0x3fa2('0x116')])[_0x3fa2('0x10d')]())_0x56b96e['consumable']['consume'](_0x1c1f8a,_0x2427c6['name']);_0x56b96e[_0x3fa2('0xdd')][_0x3fa2('0x92')](_0x279b7e[_0x3fa2('0x116')],_0x2427c6[_0x3fa2('0x4a')]);};_0x3133ac[_0x3fa2('0x59')][_0x3fa2('0x56')](_0x3fa2('0xdb'))[_0x3fa2('0xa1')](_0x2d5725=>{_0x2d5725['on']('addMarker:suggestion:formatBlock',(_0x39b614,_0x3f15b3,_0x26cc7e)=>{_0x26cc7e[_0x3fa2('0x28')][_0x3fa2('0x10')]&&_0x1a4840({'showActiveMarkers':!0x1})(_0x39b614,_0x3f15b3,_0x26cc7e);},{'priority':'highest'});}),_0x3133ac[_0x3fa2('0x59')][_0x3fa2('0x56')](_0x3fa2('0xdb'))[_0x3fa2('0xa5')]({'model':'suggestion','view':(_0x11048a,_0x41133a)=>_0x41133a['options']['showSuggestionHighlights']?null:{'group':_0x3fa2('0x110'),'name':_0x11048a[_0x3fa2('0x68')](0xb)}}),_0x3133ac[_0x3fa2('0x59')][_0x3fa2('0x56')](_0x3fa2('0x4b'))['elementToElement']({'view':{'name':_0x3fa2('0x110'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x25892f,{writer:_0x2082d1})=>{let _0x17db02=_0x3fa2('0xa2')+_0x25892f['getAttribute']('suggestion-type')+':'+_0x25892f[_0x3fa2('0x32')]('id');return _0x25892f[_0x3fa2('0x32')](_0x3fa2('0x83'))&&(_0x17db02+=':'+_0x25892f[_0x3fa2('0x32')](_0x3fa2('0x83'))),_0x2082d1[_0x3fa2('0x3f')]('$marker',{'data-name':_0x17db02});}}),_0x3133ac[_0x3fa2('0x59')]['for']('upcast')[_0x3fa2('0x127')]({'view':_0x3fa2('0x110')}),_0x3133ac[_0x3fa2('0x59')][_0x3fa2('0x56')](_0x3fa2('0x113'))[_0x3fa2('0xa1')](_0x477bfd=>{_0x477bfd['on'](_0x3fa2('0x8a'),_0x1a4840(),{'priority':_0x3fa2('0x26')});}),_0x3133ac['conversion'][_0x3fa2('0x56')](_0x3fa2('0x113'))[_0x3fa2('0xa1')](_0x55f391=>{_0x55f391['on'](_0x3fa2('0x107'),(_0x4765a7,_0x213e2d,_0x1be8b3)=>{const _0x426390=_0x1be8b3[_0x3fa2('0x8e')][_0x3fa2('0xf9')](_0x213e2d['markerName']);if(_0x426390)for(const _0x2e7c33 of _0x426390)_0x2e7c33[_0x3fa2('0x13d')](_0x3fa2('0xca'))||(_0x1be8b3[_0x3fa2('0xd')][_0x3fa2('0x11e')]([_0x3fa2('0x74'),'ck-suggestion-marker-formatBlock',_0x3fa2('0xbb')],_0x2e7c33),_0x1be8b3['writer'][_0x3fa2('0xa4')]('data-suggestion',_0x2e7c33),_0x1be8b3[_0x3fa2('0x8e')][_0x3fa2('0x5c')](_0x2e7c33,_0x213e2d['markerName']));},{'priority':'high'});}),_0x3133ac['model']['document']['registerPostFixer'](_0x252a57=>{let _0x36ba6b=!0x1;const _0x4eefc4=Array[_0x3fa2('0x3')](_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x123')][_0x3fa2('0x8')]['getChangedMarkers']()),_0x1110fa=new Set();for(const {name:_0x2ec627,data:_0x354cda}of _0x4eefc4){const {group:_0x382276,type:_0x14a881,id:_0x41cf06}=this[_0x3fa2('0x5a')](_0x2ec627);if('suggestion'!==_0x382276)continue;const _0x6fa0d9=this[_0x3fa2('0xed')][_0x3fa2('0x2c')](_0x41cf06);if(null!=_0x354cda[_0x3fa2('0x1a')]){_0x3fa2('0x11')==_0x14a881&&(_0x36ba6b=_0x36ba6b||Mt(_0x354cda[_0x3fa2('0x1a')],_0x2ec627,_0x252a57,_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe9')]));if(_0x354cda[_0x3fa2('0x1a')][_0x3fa2('0xe0')]||'$graveyard'==_0x354cda['newRange']['root'][_0x3fa2('0xc')]||_0x3fa2('0x118')==_0x14a881&&!Nt(_0x354cda[_0x3fa2('0x1a')])||_0x3fa2('0x7e')==_0x14a881&&!(!_t(_0xb74a84=_0x354cda[_0x3fa2('0x1a')])&&!function(_0x25e755){return _0x25e755['start']['parent']==_0x25e755[_0x3fa2('0x11a')][_0x3fa2('0xdc')]&&_0x25e755[_0x3fa2('0x125')][_0x3fa2('0x55')];}(_0xb74a84)))_0x252a57[_0x3fa2('0x24')](_0x2ec627),_0x36ba6b=!0x0;else{if(!_0x6fa0d9||!_0x6fa0d9['isInContent'])continue;_0x1110fa['add'](_0x6fa0d9);}}}var _0xb74a84;return _0x1110fa['size']>0x0&&(_0x36ba6b=!!this[_0x3fa2('0x98')](_0x1110fa)||_0x36ba6b),_0x36ba6b;}),_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x123')][_0x3fa2('0x5f')](_0x1f20f9=>{let _0x1d07c0=!0x1;for(const _0x3f1da6 of _0x3133ac[_0x3fa2('0xa8')]['document'][_0x3fa2('0x8')][_0x3fa2('0x53')]()){if(_0x3fa2('0x3d')!=_0x3f1da6[_0x3fa2('0x29')])continue;const _0x2050d8=_0x3f1da6['position'][_0x3fa2('0xbe')](_0x3f1da6[_0x3fa2('0x6a')]);if(_0x2050d8['isAtEnd'])for(const _0x457f89 of this[_0x3fa2('0xed')][_0x3fa2('0x23')]()){if(_0x457f89['isMultiRange']||!_0x457f89[_0x3fa2('0x94')])continue;if(_0x3fa2('0x118')!=_0x457f89[_0x3fa2('0x29')])continue;const _0x5ae6b9=_0x457f89[_0x3fa2('0x42')]();if(_0x5ae6b9[_0x3fa2('0x125')][_0x3fa2('0x84')]!=_0x5ae6b9[_0x3fa2('0x11a')]['parent']&&_0x5ae6b9[_0x3fa2('0x11a')][_0x3fa2('0xa0')](_0x3f1da6[_0x3fa2('0x5b')])){const _0x5491eb=_0x3133ac['model'][_0x3fa2('0x12d')](_0x5ae6b9[_0x3fa2('0x125')],_0x2050d8);_0x1f20f9[_0x3fa2('0xd7')](_0x457f89['getFirstMarker'](),{'range':_0x5491eb}),_0x1d07c0=!0x0;}}}return _0x1d07c0;}),_0x3133ac['model'][_0x3fa2('0xc4')]['on'](_0x3fa2('0x10b'),(_0x12d9a9,_0x304220,_0x56632f)=>{if(null==_0x56632f){const {id:_0x1086c9}=this[_0x3fa2('0x5a')](_0x304220[_0x3fa2('0x4a')]),_0x280539=this['_suggestions']['get'](_0x1086c9);_0x280539&&_0x280539[_0x3fa2('0x124')](_0x304220['name']);}}),_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x123')]['on'](_0x3fa2('0x9'),()=>{const _0x5012dc=Array[_0x3fa2('0x3')](_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x123')][_0x3fa2('0x8')][_0x3fa2('0x8f')]())[_0x3fa2('0x1b')](_0x5ed53c=>_0x3fa2('0x110')===this[_0x3fa2('0x5a')](_0x5ed53c[_0x3fa2('0x4a')])[_0x3fa2('0x5')]);if(0x0===_0x5012dc['length'])return;_0x5012dc[_0x3fa2('0xac')]((_0x12ae30,_0x14176f)=>{const _0x1be6a4=_0x12ae30[_0x3fa2('0x106')]['oldRange'],_0x190fc3=_0x14176f[_0x3fa2('0x106')][_0x3fa2('0x72')];return null===_0x1be6a4&&null===_0x190fc3?0x0:null===_0x1be6a4&&null!==_0x190fc3?-0x1:null!==_0x1be6a4&&null===_0x190fc3?0x1:_0x1be6a4[_0x3fa2('0x125')][_0x3fa2('0x119')](_0x190fc3[_0x3fa2('0x125')])?-0x1:0x1;});const _0x12c157=new Set(),_0x3d81a8=new Set();for(const {name:_0xe9435,data:_0x8f9471}of _0x5012dc){const {id:_0x471705}=this['_splitMarkerName'](_0xe9435);if(null===_0x8f9471[_0x3fa2('0x72')]){const _0x402d5f=this[_0x3fa2('0x108')](_0xe9435);_0x3d81a8['add'](_0x402d5f);}else{const _0x307db5=this[_0x3fa2('0xed')][_0x3fa2('0x2c')](_0x471705);null!==_0x8f9471[_0x3fa2('0x1a')]||_0x307db5[_0x3fa2('0x94')]?(_0x12c157[_0x3fa2('0xa1')](_0x307db5[_0x3fa2('0x11f')]),_0x3d81a8['add'](_0x307db5)):this[_0x3fa2('0xe6')](_0x307db5);}}_0x3d81a8[_0x3fa2('0x46')]>0x0&&this[_0x3fa2('0x4e')](_0x3d81a8);for(const _0x1e64f1 of _0x12c157)this[_0x3fa2('0x104')]('suggestionChanged',_0x1e64f1);}),_0x3133ac['model']['on'](_0x3fa2('0xfe'),(_0x219daa,_0x1ab19d)=>{const _0x267fa5=_0x1ab19d[0x0];if(!this['_suggestions'][_0x3fa2('0x46')])return;if(!_0x267fa5[_0x3fa2('0xba')])return;if(_0x267fa5[_0x3fa2('0x117')][_0x3fa2('0x129')]||!_0x267fa5[_0x3fa2('0x117')][_0x3fa2('0x130')])return;let _0x1f9f29,_0x38c623;switch(_0x267fa5['type']){case'insert':_0x1f9f29=_0x3133ac[_0x3fa2('0xa8')]['createPositionAt'](_0x267fa5[_0x3fa2('0x5b')]),_0x38c623=_0x1f9f29[_0x3fa2('0xbe')](_0x267fa5[_0x3fa2('0x81')]);break;case _0x3fa2('0xf6'):_0x1f9f29=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe1')](_0x267fa5[_0x3fa2('0x101')]),_0x38c623=_0x3133ac['model']['createPositionAt'](_0x267fa5[_0x3fa2('0xc8')]);break;case _0x3fa2('0x12a'):_0x1f9f29=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe1')](_0x267fa5[_0x3fa2('0xee')]),_0x38c623=_0x1f9f29[_0x3fa2('0xbe')](_0x267fa5[_0x3fa2('0x81')]);break;default:return;}const _0xe84ab7=_0x3133ac['model'][_0x3fa2('0x12d')](_0x1f9f29,_0x38c623);_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x79')](()=>{for(const {suggestion:_0x1e2852,meta:_0x5a2048}of this[_0x3fa2('0xeb')](_0xe84ab7)){if(_0x1e2852[_0x3fa2('0xb')])continue;if(_0x3fa2('0x11')==_0x1e2852[_0x3fa2('0x29')])continue;const _0x11bd63=_0x1e2852[_0x3fa2('0x106')]&&_0x1e2852[_0x3fa2('0x106')][_0x3fa2('0x54')];('formatBlock'!=_0x1e2852[_0x3fa2('0x29')]||'split'==_0x267fa5[_0x3fa2('0x29')]&&!_0x11bd63)&&(_0x5a2048[_0x3fa2('0x73')]||_0x3fa2('0xda')==_0x1e2852[_0x3fa2('0x29')]&&_0x5a2048['isOwn']||_0x1e2852[_0x3fa2('0x42')]()[_0x3fa2('0x9d')](_0xe84ab7)&&this['_breakSuggestionMarker'](_0x1e2852,_0x1f9f29,_0x38c623));}});},{'priority':_0x3fa2('0x89')}),_0x3133ac[_0x3fa2('0xa8')]['on'](_0x3fa2('0xf5'),(_0x2cea39,_0x1bd5e8)=>{const _0x33dc0f=_0x1bd5e8[0x0],_0x5c28ec=_0x1bd5e8[0x1];if(_0x5c28ec&&_0x5c28ec[_0x3fa2('0x6e')])return;if(this[_0x3fa2('0x34')])return;if(!this['trackChangesCommand'][_0x3fa2('0x17')])return;if(_0x33dc0f[_0x3fa2('0xe0')])return;const _0x3e2ad0=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe9')],{start:_0x3ced8a,end:_0x1d5f94}=_0x33dc0f[_0x3fa2('0x42')](),_0x1878ba=_0x3ced8a[_0x3fa2('0x58')]&&_0x3e2ad0[_0x3fa2('0xd8')](_0x3ced8a[_0x3fa2('0x58')])?null:_0x3e2ad0[_0x3fa2('0x4c')](_0x3ced8a,_0x3fa2('0x5d')),_0x373481=_0x1d5f94[_0x3fa2('0xdc')]&&_0x3e2ad0[_0x3fa2('0xd8')](_0x1d5f94[_0x3fa2('0xdc')])?null:_0x3e2ad0[_0x3fa2('0x4c')](_0x1d5f94,_0x3fa2('0x21')),_0x3e14cf=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x12d')](_0x1878ba?_0x1878ba[_0x3fa2('0x125')]:_0x3ced8a,_0x373481?_0x373481[_0x3fa2('0x11a')]:_0x1d5f94);_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x79')](_0x2f9988=>{this['markDeletion'](_0x3e14cf);const _0x575872=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe9')][_0x3fa2('0x4c')](_0x3e14cf['start']);_0x33dc0f['is']('documentSelection')?_0x2f9988[_0x3fa2('0x2b')](_0x575872):_0x33dc0f[_0x3fa2('0x12e')](_0x575872);}),_0x2cea39[_0x3fa2('0x120')]();},{'priority':_0x51a381[_0x3fa2('0x1')]+0xa}),_0x3133ac[_0x3fa2('0xa8')]['on'](_0x3fa2('0x13c'),(_0x278c2b,_0x2d9f8a)=>{const _0x56ab7e=_0x2d9f8a[_0x2d9f8a[_0x3fa2('0x6a')]-0x1];_0x56ab7e&&_0x56ab7e[_0x3fa2('0x6e')]||this[_0x3fa2('0x34')]||this['trackChangesCommand'][_0x3fa2('0x17')]&&(_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x79')](()=>{let _0x2a1715=_0x3133ac[_0x3fa2('0xa8')]['insertContent'](_0x2d9f8a[0x0],_0x2d9f8a[0x1],_0x2d9f8a[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a1715)return;_0x278c2b[_0x3fa2('0x9c')]=_0x2a1715[_0x3fa2('0x6b')]();const _0x57d4a1=_0x2a1715['end'][_0x3fa2('0xdc')],_0x1c1a52=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe9')];_0x57d4a1&&_0x1c1a52[_0x3fa2('0x102')](_0x57d4a1)&&!_0x1c1a52['isObject'](_0x57d4a1)&&(_0x2a1715=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x12d')](_0x2a1715['start'],_0x3133ac[_0x3fa2('0xa8')]['createPositionAt'](_0x57d4a1,_0x3fa2('0x11a')))),this[_0x3fa2('0xd1')](_0x2a1715);}),_0x278c2b[_0x3fa2('0x120')]());},{'priority':_0x3fa2('0x26')}),this['editor'][_0x3fa2('0xb9')][_0x3fa2('0xa1')](_0x3fa2('0x13b'),this[_0x3fa2('0x64')]),this[_0x3fa2('0xd0')](_0x3fa2('0x13b'));const _0x252c83=new _0x142e54(_0x3133ac,this[_0x3fa2('0xed')]);_0x3133ac[_0x3fa2('0xb9')][_0x3fa2('0xa1')](_0x3fa2('0x60'),_0x252c83),this[_0x3fa2('0xd0')](_0x3fa2('0x60'));const _0x22c3df=new _0x246e5f(_0x3133ac,this[_0x3fa2('0xed')]);_0x3133ac[_0x3fa2('0xb9')]['add'](_0x3fa2('0x103'),_0x22c3df),this['enableCommand']('discardSuggestion'),_0x3133ac[_0x3fa2('0xb9')][_0x3fa2('0xa1')]('acceptAllSuggestions',new _0x433d0f(_0x3133ac,_0x252c83,this[_0x3fa2('0xed')])),this[_0x3fa2('0xd0')]('acceptAllSuggestions'),_0x3133ac[_0x3fa2('0xb9')][_0x3fa2('0xa1')](_0x3fa2('0xaa'),new _0x433d0f(_0x3133ac,_0x22c3df,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3133ac[_0x3fa2('0xb9')][_0x3fa2('0xa1')](_0x3fa2('0x128'),new _0x2cd40b(_0x3133ac,_0x252c83,this[_0x3fa2('0xed')])),this[_0x3fa2('0xd0')]('acceptSelectedSuggestions'),_0x3133ac[_0x3fa2('0xb9')][_0x3fa2('0xa1')]('discardSelectedSuggestions',new _0x2cd40b(_0x3133ac,_0x22c3df,this['_suggestions'])),this[_0x3fa2('0xd0')](_0x3fa2('0x65'));const _0x3ea108=_0x3133ac['plugins'][_0x3fa2('0x2c')]('CommentsRepository');this['listenTo'](_0x3ea108,_0x3fa2('0xc0'),(_0x314d33,{threadId:_0x3bff21})=>{const _0x50fa4f=this[_0x3fa2('0xed')][_0x3fa2('0x2c')](_0x3bff21);_0x50fa4f&&_0x50fa4f[_0x3fa2('0x96')]&&0x1===_0x50fa4f[_0x3fa2('0x96')][_0x3fa2('0x6a')]&&this[_0x3fa2('0x99')](_0x3bff21,{'hasComments':!0x0});},{'priority':_0x3fa2('0x8b')}),this[_0x3fa2('0x71')](_0x3ea108,_0x3fa2('0x105'),(_0x56061b,{threadId:_0x4cf218})=>{const _0x22a889=this[_0x3fa2('0xed')][_0x3fa2('0x2c')](_0x4cf218);_0x22a889&&_0x22a889[_0x3fa2('0x96')]&&!_0x22a889['commentThread'][_0x3fa2('0x6a')]&&this[_0x3fa2('0x99')](_0x4cf218,{'hasComments':!0x1});},{'priority':_0x3fa2('0x8b')});}set[_0x3fa2('0x49')](_0x4d080a){if(this[_0x3fa2('0x7b')])throw new _0xfcec74('track-changes-adapter-already-set',this);this[_0x3fa2('0x7b')]=_0x4d080a;}get[_0x3fa2('0x49')](){return this[_0x3fa2('0x7b')];}[_0x3fa2('0x1e')]({skipNotAttached:_0x2981ea=!0x1,toJSON:_0x5ed630=!0x1}={}){const _0xbcc119=[];for(const _0x1ec939 of this['_suggestions'][_0x3fa2('0x23')]())_0x2981ea&&!_0x1ec939[_0x3fa2('0x94')]||_0xbcc119['push'](_0x1ec939);return _0x5ed630?_0xbcc119[_0x3fa2('0xc2')](_0x5ea78c=>_0x5ea78c['toJSON']()):_0xbcc119;}[_0x3fa2('0xc1')](_0x83d80b){const _0x1360b1=this['_suggestions'][_0x3fa2('0x2c')](_0x83d80b);if(!_0x1360b1)throw new _0xfcec74(_0x3fa2('0x2e'),this);return _0x1360b1;}[_0x3fa2('0x12c')](_0x1e31ef){return this[_0x3fa2('0xed')][_0x3fa2('0x67')](_0x1e31ef);}[_0x3fa2('0xad')](_0x21112f){const {authorId:_0x4cab7b,id:_0x1d999e,attributes:_0x5375e8}=_0x21112f,[_0x37e627,_0x15743d]=_0x21112f[_0x3fa2('0x29')]['split'](':'),_0x49deed=this[_0x3fa2('0xed')]['get'](_0x1d999e)||this['_createSuggestion'](_0x37e627,_0x15743d,_0x1d999e,_0x4cab7b,_0x5375e8);if(this[_0x3fa2('0x97')](_0x49deed),this['_checkSuggestionCorrectness'](_0x49deed,_0x37e627,_0x15743d||null,_0x4cab7b),_0x49deed['createdAt']=_0x21112f[_0x3fa2('0xf')],_0x5375e8&&_0x5375e8[_0x3fa2('0x52')]){const _0x2b5480=_0x5375e8[_0x3fa2('0x52')],_0x43184d=this[_0x3fa2('0x7f')](_0x2b5480[_0x3fa2('0xab')]);_0x49deed['authoredAt']=_0x2b5480[_0x3fa2('0xf')],_0x49deed['author']=_0x43184d,_0x49deed[_0x3fa2('0x40')]=!0x0;}else _0x49deed[_0x3fa2('0x111')]=_0x21112f[_0x3fa2('0xf')];switch(_0x21112f['data']&&(_0x49deed[_0x3fa2('0x106')]=_0x21112f[_0x3fa2('0x106')]),_0x21112f[_0x3fa2('0xa9')]&&(_0x49deed[_0x3fa2('0xa9')]=_0x21112f['attributes']),this[_0x3fa2('0x7b')]&&this['_adapter']['addSuggestion']||(_0x49deed[_0x3fa2('0x2d')]=!0x0),this['_suggestionState'][_0x3fa2('0x2c')](_0x49deed)){case _0x3fa2('0x82'):this[_0x3fa2('0xec')]['set'](_0x49deed,'dataReady');break;case _0x3fa2('0xc9'):_0x49deed['isInContent']?(this[_0x3fa2('0xec')]['set'](_0x49deed,_0x3fa2('0xbd')),this['fire']('suggestionLoaded',_0x49deed)):this[_0x3fa2('0xec')][_0x3fa2('0xf1')](_0x49deed,_0x3fa2('0x109'));}return _0x49deed;}['acceptSuggestion'](_0x11bf5a){this[_0x3fa2('0x6e')](()=>{this[_0x3fa2('0x22')]['model'][_0x3fa2('0x79')](()=>{for(const _0x4598c0 of _0x11bf5a[_0x3fa2('0x43')]())_0x4598c0[_0x3fa2('0x9b')]();});});}[_0x3fa2('0x103')](_0x14bee4){this[_0x3fa2('0x6e')](()=>{this[_0x3fa2('0x22')][_0x3fa2('0xa8')]['change'](()=>{for(const _0xd28564 of _0x14bee4[_0x3fa2('0x43')]())_0xd28564[_0x3fa2('0x115')]();});});}[_0x3fa2('0xd0')](_0x5cac05,_0x2f5731){const _0x636b78=this[_0x3fa2('0x22')][_0x3fa2('0xb9')][_0x3fa2('0x2c')](_0x5cac05);if(!_0x636b78)throw new _0xfcec74(_0x3fa2('0xb4'),this,{'commandName':_0x5cac05});this[_0x3fa2('0xdf')]['add'](_0x636b78),_0x2f5731&&_0x636b78['on']('execute',(_0x5815c5,_0x2d7b82)=>{this[_0x3fa2('0x64')]['value']&&(this['_isForcedDefaultExecutionBlock']||_0x2d7b82[_0x3fa2('0x6a')]>0x0&&_0x2d7b82[_0x2d7b82[_0x3fa2('0x6a')]-0x1]&&_0x2d7b82[_0x2d7b82[_0x3fa2('0x6a')]-0x1][_0x3fa2('0x6e')]||(_0x2f5731((..._0x2399d7)=>_0x636b78[_0x3fa2('0x63')](..._0x2399d7,{'forceDefaultExecution':!0x0}),..._0x2d7b82),_0x5815c5[_0x3fa2('0x120')]()));},{'priority':'high'});}[_0x3fa2('0x6e')](_0x5f4857){let _0xcc0478,_0x4b0b7d;const _0x2e6a21=this[_0x3fa2('0x34')];this[_0x3fa2('0x34')]=!0x0;try{_0xcc0478=_0x5f4857();}catch(_0x3a2bc4){_0x4b0b7d=_0x3a2bc4;}return _0x2e6a21||(this[_0x3fa2('0x34')]=!0x1),_0x4b0b7d&&_0xfcec74['rethrowUnexpectedError'](_0x4b0b7d,this),_0xcc0478;}[_0x3fa2('0xd1')](_0xcb9ff2,_0x4895c3=null,_0x5841f5={}){if(_0xcb9ff2['isCollapsed'])return null;const _0x4e3c6f=this['editor']['plugins'][_0x3fa2('0x2c')](_0x3fa2('0x136'))['me'];for(const {suggestion:_0x41fa8b,meta:_0x3048a0}of this[_0x3fa2('0xeb')](_0xcb9ff2,'insertion'))if(_0x3048a0['isOwn']){if(!_0x3048a0['isNextTo']){if(!this[_0x3fa2('0xf3')]&&_0x3048a0[_0x3fa2('0x73')])continue;return _0x41fa8b;}if(_0x4895c3==_0x41fa8b[_0x3fa2('0xea')]){const _0x5e3405=_0x41fa8b['getFirstRange']();return _0x5e3405[_0x3fa2('0x125')][_0x3fa2('0xa0')](_0xcb9ff2['end'])?this[_0x3fa2('0xa')](_0x41fa8b,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0xcb9ff2[_0x3fa2('0x125')],_0x5e3405[_0x3fa2('0x11a')])):this[_0x3fa2('0xa')](_0x41fa8b,this['_model']['createRange'](_0x5e3405[_0x3fa2('0x125')],_0xcb9ff2[_0x3fa2('0x11a')])),_0x41fa8b;}}const _0x50f69d=_0x33d3f5(),_0x454c2d=_0x4e3c6f['id'],_0x13bb33=_0x4895c3?'insertion:'+_0x4895c3:_0x3fa2('0xda'),_0x363424=this[_0x3fa2('0xf7')]({'id':_0x50f69d,'type':_0x13bb33,'createdAt':new Date(),'authorId':_0x454c2d,'attributes':_0x5841f5});return this[_0x3fa2('0x12f')](_0x13bb33,_0x50f69d,_0x454c2d,_0xcb9ff2),_0x363424;}[_0x3fa2('0x9f')](_0x431bb7,_0x88def4=_0x3fa2('0x13'),_0x508801={}){const _0x343d0a=this[_0x3fa2('0x22')][_0x3fa2('0x13f')]['get'](_0x3fa2('0x136'))['me'],_0x5b98b0=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0xda'),_0x88def4,_0x3fa2('0xf0'));for(const _0x3cbd12 of this[_0x3fa2('0x1e')]())if(_0x3cbd12[_0x3fa2('0xf8')]['id']==_0x343d0a['id']&&_0x3fa2('0xda')==_0x3cbd12['type']&&_0x3cbd12['subType']==_0x88def4&&(_0x5b98b0(_0x3cbd12[_0x3fa2('0x25')](),_0x431bb7)||_0x5b98b0(_0x431bb7,_0x3cbd12['getRanges']()))){for(const _0x54475d of _0x431bb7)_0x3cbd12[_0x3fa2('0x1c')](_0x54475d);return _0x3cbd12;}if(this[_0x3fa2('0xf3')])for(const _0x1fc2c9 of _0x431bb7)for(const {suggestion:_0x4a9eff,meta:_0x109410}of this[_0x3fa2('0xeb')](_0x1fc2c9,_0x3fa2('0xda'))){if(!_0x109410['isOwn'])continue;let _0x5d533d=!0x0;for(const _0x9cf126 of _0x4a9eff[_0x3fa2('0x25')]())for(const _0x197c36 of _0x431bb7)if(!_0x9cf126[_0x3fa2('0x9d')](_0x197c36)){_0x5d533d=!0x1;break;}if(_0x5d533d)return _0x4a9eff;}const _0x17d96f=_0x33d3f5(),_0x3646d7=_0x343d0a['id'],_0x4bd275=_0x3fa2('0xb7')+_0x88def4,_0x3176ff=this['_setSuggestionData']({'id':_0x17d96f,'type':_0x4bd275,'createdAt':new Date(),'authorId':_0x3646d7,'attributes':_0x508801});for(const _0x3eb288 of _0x431bb7)this[_0x3fa2('0x12f')](_0x4bd275,_0x17d96f,_0x3646d7,_0x3eb288,_0x4a4cae[_0x3fa2('0x134')]());return _0x3176ff;}[_0x3fa2('0x77')](_0xbaedbd,_0x4d4d7c,_0x12fff6=null,_0x14d3b9={}){if(_0x12fff6=_0x12fff6||$t(_0x4d4d7c),_0xbaedbd[_0x3fa2('0xe0')])return null;if(_0x3fa2('0xb1')===this[_0x3fa2('0x14')]){const _0x56f3a8=this[_0x3fa2('0xce')]['getSuggestionCallback'](_0x3fa2('0x11'),_0x12fff6,_0x3fa2('0x9b'));return this[_0x3fa2('0x6e')](()=>_0x56f3a8([_0xbaedbd],_0x4d4d7c,_0x14d3b9)),null;}const _0x59fdae=this['editor'][_0x3fa2('0x13f')][_0x3fa2('0x2c')]('Users')['me'],_0x30557c=[];if(_0x3fa2('0x75')!==this[_0x3fa2('0x14')])for(const {suggestion:_0x2e39ab,meta:_0x1d2273}of this[_0x3fa2('0xeb')](_0xbaedbd,'insertion'))_0x1d2273[_0x3fa2('0xd3')]&&!_0x1d2273['isInsideObject']&&_0x30557c['push'](..._0x2e39ab[_0x3fa2('0x25')]());const _0x2511bc=function(_0x4c56f8,_0x149f58){const _0x2309b6=[];for(const _0x35aabc of _0x149f58){const _0x14773c=_0x4c56f8[_0x3fa2('0xd6')](_0x35aabc);_0x14773c&&_0x2309b6[_0x3fa2('0xe5')](_0x14773c);}return _0x2309b6;}(_0xbaedbd,_0x30557c),_0x483161=function(_0x161ab2,_0xf63b0c){const _0x105735=[_0x161ab2];for(const _0x369f8c of _0xf63b0c){let _0x5587dc=0x0;for(;_0x5587dc<_0x105735[_0x3fa2('0x6a')];){const _0x36da40=_0x105735[_0x5587dc][_0x3fa2('0x9a')](_0x369f8c);_0x105735[_0x3fa2('0xe3')](_0x5587dc,0x1,..._0x36da40),_0x5587dc+=_0x36da40[_0x3fa2('0x6a')];}}return _0x105735;}(_0xbaedbd,_0x30557c);_0x2511bc['length']&&this[_0x3fa2('0x12b')]['change'](()=>{for(const _0x7786be of _0x2511bc){const _0x4575e5=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0x11'),_0x12fff6,_0x3fa2('0x9b'));this[_0x3fa2('0x6e')](()=>_0x4575e5([_0x7786be],_0x4d4d7c,_0x14d3b9));}});for(const _0xc1385f of _0x483161){let _0x42e0f7=null,_0x3d6521=_0xc1385f[_0x3fa2('0x125')],_0x4c074e=_0xc1385f[_0x3fa2('0x11a')];for(const {suggestion:_0x2ae98a,meta:_0xf22044}of this[_0x3fa2('0xeb')](_0xc1385f,'formatInline')){if(!_0xf22044[_0x3fa2('0xd3')])continue;if(_0x2ae98a[_0x3fa2('0xea')]!=_0x12fff6)continue;const _0x2c42c7=_0x2ae98a[_0x3fa2('0x42')]();if(_0x2c42c7[_0x3fa2('0x9d')](_0xc1385f,!0x0))return null;_0x3d6521=_0x3d6521[_0x3fa2('0x119')](_0x2c42c7[_0x3fa2('0x125')])?_0x3d6521:_0x2c42c7[_0x3fa2('0x125')],_0x4c074e=_0x4c074e[_0x3fa2('0xe')](_0x2c42c7[_0x3fa2('0x11a')])?_0x4c074e:_0x2c42c7[_0x3fa2('0x11a')],_0x42e0f7?_0x2c42c7[_0x3fa2('0x125')]['isBefore'](_0x42e0f7[_0x3fa2('0x42')]()[_0x3fa2('0x125')])?(_0x42e0f7['removeMarkers'](),_0x42e0f7=_0x2ae98a):_0x2ae98a[_0x3fa2('0x7d')]():_0x42e0f7=_0x2ae98a;}const _0x412e4d=this[_0x3fa2('0x12b')]['createRange'](_0x3d6521,_0x4c074e);if(_0x42e0f7)this['_setSuggestionRange'](_0x42e0f7,_0x412e4d);else{const _0x3b5e4e=_0x33d3f5(),_0x134dba=_0x59fdae['id'];this[_0x3fa2('0xf7')]({'id':_0x3b5e4e,'type':_0x3fa2('0xcb')+_0x12fff6,'data':_0x4d4d7c,'createdAt':new Date(),'authorId':_0x134dba,'attributes':_0x14d3b9}),this[_0x3fa2('0x12f')]('formatInline:'+_0x12fff6,_0x3b5e4e,_0x134dba,_0x412e4d);}}return null;}['markBlockFormat'](_0x48080a,_0x2a5778,_0x6a38a4=[],_0x2317b4=null,_0x4384a4={}){_0x2a5778[_0x3fa2('0x27')]||(_0x2a5778[_0x3fa2('0x27')]=_0x2a5778[_0x3fa2('0x1f')]),_0x2a5778[_0x3fa2('0x54')]=_0x48080a['is']('range'),_0x2317b4=_0x2317b4||$t(_0x2a5778);const _0x3b0265=_0x6a38a4['map'](_0x256d09=>Rt(_0x256d09,this['_model'])),_0x18d261=_0x48080a['is'](_0x3fa2('0x51'))?_0x48080a:Rt(_0x48080a,this['_model']);if(_0x3fa2('0xb1')===this[_0x3fa2('0x14')]){const _0x124f70=this[_0x3fa2('0xce')][_0x3fa2('0x41')]('formatBlock',_0x2317b4,'accept');return this[_0x3fa2('0x6e')](()=>_0x124f70([_0x18d261],_0x2a5778,_0x4384a4)),null;}_0x3b0265[_0x3fa2('0xe5')](_0x18d261);let _0x56282b=!0x0;for(const _0x58a8a3 of _0x3b0265)if(!this[_0x3fa2('0xa3')](_0x58a8a3)){_0x56282b=!0x1;break;}if(_0x56282b&&_0x3fa2('0x75')!==this[_0x3fa2('0x14')]){const _0x2de188=this['_suggestionFactory']['getSuggestionCallback'](_0x3fa2('0x118'),_0x2317b4,'accept');return this[_0x3fa2('0x6e')](()=>_0x2de188([_0x18d261],_0x2a5778,_0x4384a4)),null;}let _0x8736fb=null,_0x1ebe10=_0x18d261[_0x3fa2('0x125')],_0x486320=_0x18d261[_0x3fa2('0x11a')];for(const {suggestion:_0x6d5277,meta:_0x35dd40}of this[_0x3fa2('0xeb')](_0x18d261,_0x3fa2('0x118'))){if(!_0x35dd40[_0x3fa2('0xd3')]||_0x35dd40['isNextTo']||_0x35dd40[_0x3fa2('0x73')]||_0x35dd40[_0x3fa2('0x33')])continue;if(_0x6d5277[_0x3fa2('0x106')][_0x3fa2('0x27')]!=_0x2a5778['formatGroupId'])continue;const _0xfb1ca3=_0x6d5277['getFirstRange']();if(_0x6d5277[_0x3fa2('0xea')]==_0x2317b4){if(_0xfb1ca3[_0x3fa2('0x9d')](_0x18d261,!0x0))return null;_0x1ebe10=_0x1ebe10[_0x3fa2('0x119')](_0xfb1ca3[_0x3fa2('0x125')])?_0x1ebe10:_0xfb1ca3[_0x3fa2('0x125')],_0x486320=_0x486320['isAfter'](_0xfb1ca3[_0x3fa2('0x11a')])?_0x486320:_0xfb1ca3[_0x3fa2('0x11a')],_0x8736fb?_0xfb1ca3['start'][_0x3fa2('0x119')](_0x8736fb[_0x3fa2('0x42')]()[_0x3fa2('0x125')])?(_0x8736fb['removeMarkers'](),_0x8736fb=_0x6d5277):_0x6d5277['removeMarkers']():_0x8736fb=_0x6d5277;}else{const _0x535891=_0x18d261[_0x3fa2('0xd6')](_0xfb1ca3);this[_0x3fa2('0x8d')](_0x6d5277,_0x535891);}}const _0x109718=this[_0x3fa2('0x22')][_0x3fa2('0x13f')][_0x3fa2('0x2c')](_0x3fa2('0x136'))['me'],_0x357608=_0x33d3f5(),_0x23527e=_0x109718['id'];if(_0x8736fb)return this['_setSuggestionRange'](_0x8736fb,this[_0x3fa2('0x12b')]['createRange'](_0x1ebe10,_0x486320)),_0x8736fb;{const _0x3a5c64=this[_0x3fa2('0xf7')]({'id':_0x357608,'type':_0x3fa2('0xef')+_0x2317b4,'data':_0x2a5778,'createdAt':new Date(),'authorId':_0x23527e,'attributes':_0x4384a4});return this['_addSuggestionMarker'](_0x3fa2('0xef')+_0x2317b4,_0x357608,_0x23527e,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x1ebe10,_0x486320)),_0x3a5c64;}}[_0x3fa2('0x20')](_0x4486d1,_0x27b46a,_0x47efa9=[],_0x12f7bb=null,_0x36492e={}){_0x27b46a[_0x3fa2('0x27')]||(_0x27b46a[_0x3fa2('0x27')]=_0x27b46a[_0x3fa2('0x1f')]);const _0x1bc5b5=_0x4486d1[0x0];_0x27b46a[_0x3fa2('0x54')]=_0x1bc5b5['is'](_0x3fa2('0x51')),_0x12f7bb=_0x12f7bb||$t(_0x27b46a);const _0x30bb3e=_0x47efa9[_0x3fa2('0xc2')](_0x2a6f2b=>Rt(_0x2a6f2b,this[_0x3fa2('0x12b')])),_0x576867=_0x1bc5b5['is']('range')?_0x4486d1:_0x4486d1[_0x3fa2('0xc2')](_0x29dc82=>Rt(_0x29dc82,this[_0x3fa2('0x12b')]));if('never'===this[_0x3fa2('0x14')]){const _0x5dce0d=this['_suggestionFactory'][_0x3fa2('0x41')](_0x3fa2('0x118'),_0x12f7bb,_0x3fa2('0x9b'));return this[_0x3fa2('0x6e')](()=>_0x5dce0d(_0x576867,_0x27b46a,_0x36492e)),null;}_0x30bb3e[_0x3fa2('0xe5')](..._0x576867);let _0x3db09a=!0x0;for(const _0x36e6b1 of _0x30bb3e)if(!this[_0x3fa2('0xa3')](_0x36e6b1)){_0x3db09a=!0x1;break;}if(_0x3db09a&&_0x3fa2('0x75')!==this[_0x3fa2('0x14')]){const _0x4b6b67=this[_0x3fa2('0xce')][_0x3fa2('0x41')]('formatBlock',_0x12f7bb,_0x3fa2('0x9b'));return this[_0x3fa2('0x6e')](()=>_0x4b6b67(_0x576867,_0x27b46a,_0x36492e)),null;}const _0x51a0e2=this[_0x3fa2('0x22')][_0x3fa2('0x13f')][_0x3fa2('0x2c')]('Users')['me'];for(const _0xd61ae8 of this[_0x3fa2('0x1e')]()){if(_0xd61ae8[_0x3fa2('0xf8')]['id']!=_0x51a0e2['id'])continue;if(_0x3fa2('0x118')!=_0xd61ae8[_0x3fa2('0x29')]||_0xd61ae8[_0x3fa2('0x106')][_0x3fa2('0x27')]!=_0x27b46a[_0x3fa2('0x27')])continue;const _0x39506e=_0xd61ae8['subType']==_0x12f7bb;for(let _0x57ad5b=0x0;_0x57ad5b<_0x576867[_0x3fa2('0x6a')];_0x57ad5b++){const _0x3264ea=_0x576867[_0x57ad5b];for(const _0x3412e3 of _0xd61ae8[_0x3fa2('0x6f')]()){const _0x456f9b=_0x3412e3[_0x3fa2('0x44')]();if(_0x3264ea['isEqual'](_0x456f9b)){_0x39506e?(_0x576867[_0x3fa2('0xe3')](_0x57ad5b,0x1),_0x57ad5b--):_0xd61ae8[_0x3fa2('0x24')](_0x3412e3[_0x3fa2('0x4a')]);break;}}}}if(0x0==_0x576867[_0x3fa2('0x6a')])return null;const _0x319990=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0x118'),_0x12f7bb,'join');for(const _0x130631 of this[_0x3fa2('0x1e')]())if(_0x130631[_0x3fa2('0xf8')]['id']==_0x51a0e2['id']&&_0x3fa2('0x118')==_0x130631[_0x3fa2('0x29')]&&_0x130631[_0x3fa2('0x106')][_0x3fa2('0x27')]==_0x27b46a[_0x3fa2('0x27')]&&_0x130631['subType']==_0x12f7bb&&(_0x319990(_0x130631[_0x3fa2('0x25')](),_0x576867)||_0x319990(_0x576867,_0x130631[_0x3fa2('0x25')]()))){for(const _0x372de4 of _0x576867)_0x130631[_0x3fa2('0x1c')](_0x372de4);return _0x130631;}const _0x1b30dd=_0x33d3f5(),_0x5bf1c3=_0x51a0e2['id'],_0x59e4ea=_0x3fa2('0xef')+_0x12f7bb,_0x32dc92=this[_0x3fa2('0xf7')]({'id':_0x1b30dd,'type':_0x59e4ea,'data':_0x27b46a,'createdAt':new Date(),'authorId':_0x5bf1c3,'attributes':_0x36492e});for(const _0x4ef352 of _0x576867)this['_addSuggestionMarker'](_0x59e4ea,_0x1b30dd,_0x5bf1c3,_0x4ef352,_0x4a4cae[_0x3fa2('0x134')]());return _0x32dc92;}['markDeletion'](_0x519b7c,_0x4762a1=null,_0xad1bce={}){if(_0x519b7c[_0x3fa2('0xe0')])return null;const _0x5805b0=this[_0x3fa2('0x22')]['plugins'][_0x3fa2('0x2c')](_0x3fa2('0x136'))['me'],_0x1f875c=new _0x526301(_0x519b7c['start'],_0x519b7c['end']);for(const {suggestion:_0x2e1f97,meta:_0x3b942c}of this[_0x3fa2('0xeb')](_0x1f875c,_0x3fa2('0xda')))if(_0x3b942c['isOwn']&&!_0x3b942c[_0x3fa2('0xfb')]){if(_0x2e1f97['isMultiRange']){const _0xe7cbf9=_0x2e1f97[_0x3fa2('0x25')]()['filter'](_0x1f4f1f=>_0x3fa2('0x30')!=_0x1f4f1f[_0x3fa2('0x7a')][_0x3fa2('0xc')]);_0xe7cbf9[_0x3fa2('0x11c')](_0x1f665e=>_0x1f875c[_0x3fa2('0x9d')](_0x1f665e,!0x0))&&_0x2e1f97[_0x3fa2('0x115')]();if(_0xe7cbf9[_0x3fa2('0x48')](_0x18b6b0=>_0x18b6b0[_0x3fa2('0x9d')](_0x1f875c,!0x0))){const _0x1dd19b=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0x7e'),_0x4762a1,_0x3fa2('0x9b'));return this[_0x3fa2('0x6e')](()=>_0x1dd19b([_0x1f875c],null,_0xad1bce)),null;}}else{const _0x14fc9b=_0x1f875c[_0x3fa2('0xd6')](_0x2e1f97[_0x3fa2('0x42')]());null!==_0x14fc9b&&_0x2e1f97[_0x3fa2('0x131')]([_0x14fc9b],null,_0xad1bce);}}if(_0x1f875c[_0x3fa2('0x93')](),_0x1f875c[_0x3fa2('0xe0')]||_0x3fa2('0x30')==_0x1f875c[_0x3fa2('0x7a')]['rootName'])return null;let _0x2eed7c=null,_0x33bc03=_0x1f875c[_0x3fa2('0x125')],_0x24ef86=_0x1f875c[_0x3fa2('0x11a')];for(const {suggestion:_0x10f31b,meta:_0x1dc3d4}of this['_findSuggestions'](_0x1f875c,_0x3fa2('0x7e')))if(_0x1dc3d4['isOwn']){if(_0x10f31b[_0x3fa2('0xb')]&&this[_0x3fa2('0xf3')]){let _0x13ef6c=!0x0;for(const _0x58c819 of _0x10f31b[_0x3fa2('0x25')]()){if(_0x58c819[_0x3fa2('0x9d')](_0x1f875c,!0x0))return _0x10f31b;_0x1f875c['containsRange'](_0x58c819)||(_0x13ef6c=!0x1);}_0x13ef6c&&_0x10f31b[_0x3fa2('0x115')]();}else{const _0xf2128b=_0x10f31b[_0x3fa2('0x42')]();if(_0xf2128b[_0x3fa2('0x9d')](_0x1f875c,!0x0)){if(!this[_0x3fa2('0xf3')]&&_0x1dc3d4[_0x3fa2('0x73')])continue;return _0x10f31b;}_0x33bc03=_0x33bc03['isBefore'](_0xf2128b['start'])?_0x33bc03:_0xf2128b['start'],_0x24ef86=_0x24ef86['isAfter'](_0xf2128b[_0x3fa2('0x11a')])?_0x24ef86:_0xf2128b[_0x3fa2('0x11a')],_0x2eed7c?_0xf2128b[_0x3fa2('0x125')][_0x3fa2('0x119')](_0x2eed7c['getFirstRange']()[_0x3fa2('0x125')])?(_0x2eed7c[_0x3fa2('0x7d')](),_0x2eed7c=_0x10f31b):_0x10f31b[_0x3fa2('0x7d')]():_0x2eed7c=_0x10f31b;}}if(_0x2eed7c)return this[_0x3fa2('0xa')](_0x2eed7c,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x33bc03,_0x24ef86)),_0x2eed7c;{const _0xe425ef=_0x33d3f5(),_0x5a334a=this[_0x3fa2('0x12b')]['createRange'](_0x33bc03,_0x24ef86),_0x31b598=_0x5805b0['id'],_0x440273=_0x4762a1?_0x3fa2('0x86')+_0x4762a1:_0x3fa2('0x7e'),_0x2a1387=this[_0x3fa2('0xf7')]({'id':_0xe425ef,'type':_0x440273,'createdAt':new Date(),'authorId':_0x31b598,'attributes':_0xad1bce});return this[_0x3fa2('0x12f')](_0x440273,_0xe425ef,_0x31b598,_0x5a334a),_0x2a1387;}}[_0x3fa2('0x132')](_0x35425c,_0x3a7e20=_0x3fa2('0x13'),_0x3f5413={}){const _0x4e745b=this[_0x3fa2('0x22')]['plugins'][_0x3fa2('0x2c')](_0x3fa2('0x136'))['me'],_0x59b044=_0x35425c['map'](_0x59f549=>new _0x526301(_0x59f549['start'],_0x59f549[_0x3fa2('0x11a')])),_0x450c99=new Set();for(const _0x5a9f85 of _0x59b044)for(const {suggestion:_0x34203e,meta:_0x1f4751}of this[_0x3fa2('0xeb')](_0x5a9f85,_0x3fa2('0xda')))_0x1f4751[_0x3fa2('0xd3')]&&!_0x1f4751[_0x3fa2('0xfb')]&&_0x450c99[_0x3fa2('0xa1')](_0x34203e);for(const _0x17e9b2 of _0x450c99)if(_0x17e9b2[_0x3fa2('0xb')]){const _0x3cc73d=_0x17e9b2[_0x3fa2('0x25')]();(!_0x17e9b2['attributes']||!_0x17e9b2[_0x3fa2('0xa9')]['skipNestingCheck'])&&(_0x3cc73d[_0x3fa2('0x11c')](_0x45ab8b=>_0x59b044[_0x3fa2('0x48')](_0x3d8611=>_0x3d8611[_0x3fa2('0x9d')](_0x45ab8b,!0x0)))&&_0x17e9b2['discard']());if(_0x59b044[_0x3fa2('0x11c')](_0x264808=>_0x3cc73d[_0x3fa2('0x48')](_0x5012c9=>_0x5012c9[_0x3fa2('0x9d')](_0x264808,!0x0)))){const _0x5ef05e=this[_0x3fa2('0xce')]['getSuggestionCallback'](_0x3fa2('0x7e'),_0x3a7e20,'accept');return this[_0x3fa2('0x6e')](()=>_0x5ef05e(_0x35425c,null,_0x3f5413)),null;}}else{const _0x2bff74=_0x17e9b2[_0x3fa2('0x42')]();_0x59b044['some'](_0x5f5745=>_0x5f5745[_0x3fa2('0x9d')](_0x2bff74,!0x0))&&_0x17e9b2['discard']();if(_0x59b044[_0x3fa2('0x11c')](_0x10fcbb=>_0x2bff74[_0x3fa2('0x9d')](_0x10fcbb,!0x0))){const _0x5773ad=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0x7e'),_0x3a7e20,_0x3fa2('0x9b'));return this[_0x3fa2('0x6e')](()=>_0x5773ad(_0x59b044,null,_0x3f5413)),null;}}const _0x51aa58=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0x7e'),_0x3a7e20,_0x3fa2('0xf0'));let _0x22641b=null;for(const _0x1485d3 of this[_0x3fa2('0x1e')]())if(_0x1485d3[_0x3fa2('0xf8')]['id']==_0x4e745b['id']&&_0x1485d3[_0x3fa2('0x94')]&&_0x3fa2('0x7e')==_0x1485d3[_0x3fa2('0x29')]&&_0x1485d3[_0x3fa2('0xea')]==_0x3a7e20&&(_0x51aa58(_0x1485d3[_0x3fa2('0x25')](),_0x59b044)||_0x51aa58(_0x59b044,_0x1485d3[_0x3fa2('0x25')]()))){if(_0x22641b){if(_0x1485d3[_0x3fa2('0x96')]&&_0x1485d3['commentThread']['length'])continue;for(const _0x247aa9 of _0x1485d3[_0x3fa2('0x25')]())_0x22641b[_0x3fa2('0xe4')](_0x247aa9)||_0x22641b['addRange'](_0x247aa9);_0x1485d3['removeMarkers']();}else{_0x22641b=_0x1485d3;for(const _0x1830c0 of _0x59b044)_0x1485d3[_0x3fa2('0xe4')](_0x1830c0)||_0x1485d3['addRange'](_0x1830c0);}}if(_0x22641b)return _0x22641b;_0x450c99[_0x3fa2('0x87')]();for(const _0x24408a of _0x59b044)for(const {suggestion:_0xf40bab,meta:_0x5333d2}of this[_0x3fa2('0xeb')](_0x24408a,'deletion'))_0x5333d2[_0x3fa2('0xd3')]&&_0x450c99['add'](_0xf40bab);for(const _0x37de7b of _0x450c99){const _0x1e2949=_0x37de7b['getRanges']();if(!_0x3f5413||!_0x3f5413['skipNestingCheck']){if(_0x59b044[_0x3fa2('0x11c')](_0xde52ab=>_0x1e2949[_0x3fa2('0x48')](_0x2c53b1=>_0x2c53b1[_0x3fa2('0x9d')](_0xde52ab,!0x0))))return _0x37de7b;}(!_0x37de7b[_0x3fa2('0xa9')]||!_0x37de7b[_0x3fa2('0xa9')][_0x3fa2('0xf2')])&&(_0x1e2949[_0x3fa2('0x11c')](_0x4deb32=>_0x59b044[_0x3fa2('0x48')](_0x2e0a63=>_0x2e0a63[_0x3fa2('0x9d')](_0x4deb32,!0x0)))&&_0x37de7b[_0x3fa2('0x115')]());}const _0x2d11f3=_0x33d3f5(),_0x1e94b3=_0x4e745b['id'],_0x285189='deletion:'+_0x3a7e20,_0xb95378=this[_0x3fa2('0xf7')]({'id':_0x2d11f3,'type':_0x285189,'createdAt':new Date(),'authorId':_0x1e94b3,'attributes':_0x3f5413});for(const _0x3a9f73 of _0x59b044)_0x3a9f73[_0x3fa2('0x93')](),_0x3a9f73[_0x3fa2('0xe0')]||_0x3fa2('0x30')==_0x3a9f73[_0x3fa2('0x7a')][_0x3fa2('0xc')]||this[_0x3fa2('0x12f')](_0x285189,_0x2d11f3,_0x1e94b3,_0x3a9f73,_0x4a4cae[_0x3fa2('0x134')]());return _0xb95378;}[_0x3fa2('0xa')](_0x46838c,_0x4bedad){const _0x140b59=_0x46838c[_0x3fa2('0x50')]();this[_0x3fa2('0x12b')][_0x3fa2('0x79')](_0x3688e4=>{_0x3688e4[_0x3fa2('0xd7')](_0x140b59,{'range':_0x4bedad});});}['_addThreadToSuggestion'](_0x52ea34){const _0x29355b=_0x52ea34['id'],_0x1cfcd0=this['editor'][_0x3fa2('0x88')]['get'](_0x3fa2('0x36'));this[_0x3fa2('0x11d')][_0x3fa2('0x5e')](_0x29355b)||this[_0x3fa2('0x11d')]['addCommentThread']({'channelId':_0x1cfcd0,'threadId':_0x29355b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x18a2f5=this[_0x3fa2('0x11d')][_0x3fa2('0xc3')](_0x29355b);_0x18a2f5['unbind'](_0x3fa2('0x142')),_0x18a2f5['isRemovable']=!0x1,_0x52ea34[_0x3fa2('0x96')]=_0x18a2f5;}[_0x3fa2('0x15')](_0x41310e,_0x35a964,_0x3a9a63,_0x5e1618){if(_0x41310e[_0x3fa2('0x29')]!=_0x35a964||_0x41310e[_0x3fa2('0xea')]!=_0x3a9a63||_0x41310e[_0x3fa2('0xb5')]['id']!=_0x5e1618)throw this[_0x3fa2('0x22')][_0x3fa2('0x70')]('track-changes-suggestion-data-mismatch'),new _0xfcec74('track-changes-suggestion-data-mismatch',this);}[_0x3fa2('0x8d')](_0x199581,_0x2bde51){const _0x341947=_0x199581['getFirstRange']();if(_0x2bde51['isEqual'](_0x341947))_0x199581[_0x3fa2('0x7d')]();else{if(_0x341947[_0x3fa2('0x9d')](_0x2bde51)){const _0x4ac40e=this['_model'][_0x3fa2('0xe1')](_0x2bde51[_0x3fa2('0x125')]['nodeBefore'],'end');this['_setSuggestionRange'](_0x199581,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x341947[_0x3fa2('0x125')],_0x4ac40e));const _0x1321ab=_0x33d3f5(),_0x1fa38c=_0x199581['creator']['id'],_0x1374d0=_0x199581[_0x3fa2('0x29')]+':'+_0x199581['subType'];this[_0x3fa2('0xf7')]({'id':_0x1321ab,'type':_0x1374d0,'createdAt':new Date(),'authorId':_0x1fa38c,'data':_0x199581[_0x3fa2('0x106')],'attributes':_0x199581['attributes']});const _0x1baa00=this[_0x3fa2('0x12b')][_0x3fa2('0xe1')](_0x2bde51['end'][_0x3fa2('0x84')],_0x3fa2('0xde')),_0x343b00=this[_0x3fa2('0x12b')]['createRange'](_0x1baa00,_0x341947[_0x3fa2('0x11a')]);this[_0x3fa2('0x12f')](_0x1374d0,_0x1321ab,_0x1fa38c,_0x343b00);}else{if(_0x341947[_0x3fa2('0x91')](_0x2bde51[_0x3fa2('0x125')])){const _0x3d13e9=this[_0x3fa2('0x12b')][_0x3fa2('0xe1')](_0x2bde51['start']['nodeBefore'],_0x3fa2('0x11a'));this[_0x3fa2('0xa')](_0x199581,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x341947[_0x3fa2('0x125')],_0x3d13e9));}else{const _0x5acda8=this[_0x3fa2('0x12b')]['createPositionAt'](_0x2bde51[_0x3fa2('0x11a')][_0x3fa2('0x84')],'after');this['_setSuggestionRange'](_0x199581,this[_0x3fa2('0x12b')]['createRange'](_0x5acda8,_0x341947[_0x3fa2('0x11a')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2066b4){for(const {suggestion:_0x4df3b2,meta:_0x472c9a}of this[_0x3fa2('0xeb')](_0x2066b4,_0x3fa2('0xda'))){if(!_0x472c9a['isOwn'])continue;const _0x47e057=_0x4df3b2[_0x3fa2('0x25')]();for(const _0x16407a of _0x47e057)if(!_0x2066b4[_0x3fa2('0x9a')](_0x16407a)[_0x3fa2('0x6a')])return!0x0;}return!0x1;}[_0x3fa2('0x4f')](_0x8e9b7d){const _0x23677d=this[_0x3fa2('0x22')][_0x3fa2('0x13f')][_0x3fa2('0x2c')](_0x3fa2('0x136'))[_0x3fa2('0x80')](_0x8e9b7d);if(!_0x23677d)throw new _0xfcec74(_0x3fa2('0x7c'),this);return _0x23677d;}[_0x3fa2('0x7f')](_0xf65df8){const _0x271d16=this[_0x3fa2('0x22')][_0x3fa2('0x13f')][_0x3fa2('0x2c')](_0x3fa2('0x136')),_0x1e3591=_0x1ebb43(_0x3fa2('0xa7')+_0xf65df8),_0x89d179=_0x271d16[_0x3fa2('0x80')](_0x1e3591);return _0x89d179||_0x271d16[_0x3fa2('0xf4')]({'id':_0x1e3591,'name':_0xf65df8});}['_createSuggestion'](_0x25666b,_0x249ea5,_0x55d568,_0xcdd294,_0x2c74f4){const _0x3686d3=this[_0x3fa2('0x4f')](_0xcdd294),_0x32684f=this[_0x3fa2('0xce')][_0x3fa2('0xaf')](_0x25666b,_0x249ea5,_0x55d568,_0x3686d3,_0x2c74f4,_0x5843ca=>this[_0x3fa2('0x99')](_0x55d568,{'attributes':_0x5843ca}));return this[_0x3fa2('0x71')](_0x32684f,_0x3fa2('0x9b'),()=>{this[_0x3fa2('0x99')](_0x55d568,{'state':_0x3fa2('0x133')});},{'priority':'high'}),this[_0x3fa2('0x71')](_0x32684f,_0x3fa2('0x115'),()=>{this[_0x3fa2('0x99')](_0x55d568,{'state':_0x3fa2('0x2a')});},{'priority':_0x3fa2('0x26')}),this[_0x3fa2('0xed')][_0x3fa2('0xf1')](_0x55d568,_0x32684f),this[_0x3fa2('0xec')]['set'](_0x32684f,_0x3fa2('0x82')),_0x32684f;}[_0x3fa2('0x5a')](_0x3f36c5){const _0x113dd3=_0x3f36c5[_0x3fa2('0xf6')](':');return{'group':_0x113dd3[0x0],'type':_0x113dd3[0x1],'subType':_0x113dd3[_0x3fa2('0x6a')]>=0x5?_0x113dd3[0x2]:null,'id':_0x113dd3['length']<0x5?_0x113dd3[0x2]:_0x113dd3[0x3],'authorId':_0x113dd3[_0x3fa2('0x6a')]<0x5?_0x113dd3[0x3]:_0x113dd3[0x4],'markerCount':0x6==_0x113dd3[_0x3fa2('0x6a')]?_0x113dd3[0x5]:null};}['_breakSuggestionMarker'](_0x5e788c,_0x1eda9b,_0x57b846){const _0x1104f0=_0x5e788c['getFirstRange'](),_0x1e0217=_0x1104f0[_0x3fa2('0x125')],_0x4b640f=_0x1104f0[_0x3fa2('0x11a')];this[_0x3fa2('0xa')](_0x5e788c,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x1e0217,_0x1eda9b));const _0x6625da=_0x33d3f5(),_0x3a63e9=_0x5e788c[_0x3fa2('0xb5')]['id'],_0x45d75d=_0x5e788c[_0x3fa2('0x29')]+(_0x5e788c[_0x3fa2('0xea')]?':'+_0x5e788c['subType']:'');this[_0x3fa2('0xf7')]({'id':_0x6625da,'type':_0x45d75d,'createdAt':new Date(),'authorId':_0x3a63e9,'originalSuggestionId':_0x5e788c['id'],'attributes':_0x5e788c[_0x3fa2('0xa9')],'data':_0x5e788c[_0x3fa2('0x106')]}),_0x3fa2('0x118')==_0x5e788c[_0x3fa2('0x29')]&&(_0x57b846=this[_0x3fa2('0x12b')][_0x3fa2('0xfd')](_0x57b846['parent'])),this[_0x3fa2('0x12f')](_0x45d75d,_0x6625da,_0x3a63e9,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x57b846,_0x4b640f));}[_0x3fa2('0xeb')](_0x546541,_0xa323dd=null){const _0x10dbec=[],_0x33131=this[_0x3fa2('0x12b')]['schema'],_0x1ae30c=this['editor'][_0x3fa2('0x13f')]['get']('Users')['me'];for(const _0x32bb46 of this[_0x3fa2('0x1e')]())if(_0x32bb46[_0x3fa2('0x94')]&&(!_0xa323dd||_0x32bb46['type']==_0xa323dd))for(const _0x596d1d of _0x32bb46[_0x3fa2('0x25')]()){const _0x574938=_0x546541[_0x3fa2('0x125')]['isEqual'](_0x596d1d[_0x3fa2('0x11a')])||_0x546541[_0x3fa2('0x11a')][_0x3fa2('0xa0')](_0x596d1d['start']);if(_0x574938||_0x546541[_0x3fa2('0xd6')](_0x596d1d)){const _0x493722=_0x546541[_0x3fa2('0x9d')](_0x596d1d)&&Bt(_0x33131,_0x596d1d[_0x3fa2('0x125')],_0x546541),_0x442cbf=_0x596d1d['containsRange'](_0x546541)&&Bt(_0x33131,_0x546541[_0x3fa2('0x125')],_0x596d1d);_0x10dbec[_0x3fa2('0xe5')]({'suggestion':_0x32bb46,'meta':{'isOwn':_0x1ae30c==_0x32bb46[_0x3fa2('0xf8')],'isNextTo':_0x574938,'isInsideObject':_0x493722,'containsRangeInObject':_0x442cbf}});break;}}return _0x10dbec;}[_0x3fa2('0x12f')](_0x2d20d5,_0xb0e15f,_0x282806,_0xd1f230,_0xc52e93){this['_model'][_0x3fa2('0x79')](_0x57a20c=>{let _0x4d2016=_0x3fa2('0xa2')+_0x2d20d5+':'+_0xb0e15f+':'+_0x282806;_0xc52e93&&(_0x4d2016=_0x4d2016+':'+_0xc52e93),_0x57a20c[_0x3fa2('0xcc')](_0x4d2016,{'range':_0xd1f230,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3273ab){const _0x262a38=_0x3273ab['previous'],_0x4ffe77=_0x3273ab[_0x3fa2('0xe8')];_0x3273ab[_0x3fa2('0x11b')]=null,null!=_0x262a38&&(_0x262a38[_0x3fa2('0xe8')]=null),_0x3273ab[_0x3fa2('0xe8')]=null,null!=_0x4ffe77&&(_0x4ffe77[_0x3fa2('0x11b')]=null),_0x3fa2('0xbd')==this['_suggestionState'][_0x3fa2('0x2c')](_0x3273ab)&&(this[_0x3fa2('0xec')][_0x3fa2('0xf1')](_0x3273ab,_0x3fa2('0x109')),this['fire']('suggestionUnloaded',_0x3273ab,_0x262a38,_0x4ffe77));}[_0x3fa2('0xf7')](_0x55e951){const _0x56d4fc=_0x55e951['id'],_0x172a12=this['addSuggestionData'](_0x55e951);if(this['_adapter']&&this[_0x3fa2('0x7b')]['addSuggestion']){const _0x2bd79f=this[_0x3fa2('0x22')]['plugins'][_0x3fa2('0x2c')]('PendingActions'),_0x5827d2=_0x172a12['hasComments'],_0x2a4392=_0x172a12[_0x3fa2('0xea')]?_0x172a12[_0x3fa2('0x29')]+':'+_0x172a12['subType']:_0x172a12['type'],_0x439284=this['editor'][_0x3fa2('0x6d')],_0x48050f=_0x2bd79f[_0x3fa2('0xa1')](_0x10d468(_0x439284,_0x3fa2('0x122'))),_0xa37a48={'id':_0x56d4fc,'type':_0x2a4392,'hasComments':_0x5827d2,'data':_0x55e951[_0x3fa2('0x106')]||null,'originalSuggestionId':_0x55e951[_0x3fa2('0xb8')]||null,'attributes':_0x172a12[_0x3fa2('0xa9')]};this[_0x3fa2('0x7b')][_0x3fa2('0x19')](_0xa37a48)['then'](_0x275c42=>{_0x172a12[_0x3fa2('0x2d')]=!0x0,_0x2bd79f[_0x3fa2('0x35')](_0x48050f),_0x275c42&&_0x275c42[_0x3fa2('0xf')]&&(this[_0x3fa2('0xed')][_0x3fa2('0x2c')](_0x56d4fc)[_0x3fa2('0xf')]=_0x275c42[_0x3fa2('0xf')]);})[_0x3fa2('0x38')](_0xcf6f2e=>{throw _0xb801fd('error-saving-suggestion-data-suggestion-discarded'),this[_0x3fa2('0x22')][_0x3fa2('0xa8')][_0x3fa2('0xd4')]({'isUndoable':!0x1},()=>{_0x172a12['discard']();}),_0x172a12[_0x3fa2('0x62')](),this[_0x3fa2('0xed')]['delete'](_0x172a12['id']),this[_0x3fa2('0xec')][_0x3fa2('0x47')](_0x172a12),_0xcf6f2e;});}return _0x172a12;}[_0x3fa2('0x99')](_0x3146bc,_0x51df08){const _0x44c52b=this[_0x3fa2('0x22')]['plugins'][_0x3fa2('0x2c')](_0x3fa2('0x16')),_0x33da6a=this[_0x3fa2('0xc1')](_0x3146bc);if(this[_0x3fa2('0x7b')]&&this[_0x3fa2('0x7b')]['updateSuggestion']){if(_0x33da6a[_0x3fa2('0x2d')]){const _0x1d2556=_0x44c52b[_0x3fa2('0xa1')](_0x10d468(this[_0x3fa2('0x22')][_0x3fa2('0x6d')],'PENDING_ACTION_SUGGESTION'));this[_0x3fa2('0x7b')][_0x3fa2('0x4')](_0x3146bc,_0x51df08)['then'](()=>{_0x44c52b[_0x3fa2('0x35')](_0x1d2556);});}else _0x33da6a['on'](_0x3fa2('0x112'),()=>{this['_updateSuggestionData'](_0x3146bc,_0x51df08);});}}[_0x3fa2('0xae')](_0x489fb6){if(!this[_0x3fa2('0x7b')]||!this['_adapter']['getSuggestion'])throw new _0xfcec74(_0x3fa2('0xc5'),this);return this['_adapter'][_0x3fa2('0xc1')](_0x489fb6);}[_0x3fa2('0x108')](_0x3e5c85){const {id:_0x4c12d,type:_0x5986b7,subType:_0x5cc01a,authorId:_0x3a4d4b}=this[_0x3fa2('0x5a')](_0x3e5c85),_0x3416e3=this['_suggestions'][_0x3fa2('0x2c')](_0x4c12d)||this['_createSuggestion'](_0x5986b7,_0x5cc01a,_0x4c12d,_0x3a4d4b,{});switch(this[_0x3fa2('0x15')](_0x3416e3,_0x5986b7,_0x5cc01a,_0x3a4d4b),this[_0x3fa2('0xec')]['get'](_0x3416e3)){case _0x3fa2('0x82'):this[_0x3fa2('0xae')](_0x4c12d)[_0x3fa2('0x6')](_0x3087a2=>{let _0x3c379e=Promise[_0x3fa2('0x143')]();_0x3087a2[_0x3fa2('0x13a')]&&(_0x3c379e=this[_0x3fa2('0x11d')][_0x3fa2('0x6c')]({'channelId':this['editor'][_0x3fa2('0x88')]['get'](_0x3fa2('0x36')),'threadId':_0x4c12d})),_0x3c379e['then'](()=>{this[_0x3fa2('0xad')](_0x3087a2)[_0x3fa2('0x2d')]=!0x0;});}),this[_0x3fa2('0xec')][_0x3fa2('0xf1')](_0x3416e3,_0x3fa2('0xc9'));break;case _0x3fa2('0x109'):this[_0x3fa2('0x99')](_0x4c12d,{'state':_0x3fa2('0xc7')});case _0x3fa2('0xc6'):this[_0x3fa2('0xec')][_0x3fa2('0xf1')](_0x3416e3,'ready'),this[_0x3fa2('0x104')](_0x3fa2('0x18'),_0x3416e3);break;case _0x3fa2('0xbd'):this[_0x3fa2('0x104')](_0x3fa2('0xff'),_0x3416e3);}return _0x3416e3[_0x3fa2('0x124')](_0x3e5c85),_0x3416e3;}[_0x3fa2('0x4e')](_0x20df01){const _0x48da87=Array[_0x3fa2('0x3')](_0x20df01)[_0x3fa2('0x1b')](_0x2bfe17=>!_0x2bfe17['isMultiRange']),_0x25d8ca=this[_0x3fa2('0x1e')]({'skipNotAttached':!0x0})['filter'](_0xc7c411=>!_0xc7c411['isMultiRange']),_0x178af5=_0x25d8ca[_0x3fa2('0x1b')](_0x50d2d8=>!_0x20df01[_0x3fa2('0x67')](_0x50d2d8)),_0x3b75bb=new Map(_0x25d8ca[_0x3fa2('0xc2')](_0x2204b4=>[_0x2204b4,this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x2204b4['type'],_0x2204b4[_0x3fa2('0xea')],_0x3fa2('0x2f'))])),_0x5263dc=new Map(_0x25d8ca[_0x3fa2('0xc2')](_0x504314=>[_0x504314,_0x504314[_0x3fa2('0x42')]()])),_0x4d7d07=new Set(),_0x2283b5=new Set();for(let _0x212374=0x0;_0x212374<_0x48da87[_0x3fa2('0x6a')];_0x212374++)_0x2a6e56(_0x48da87[_0x212374],_0x48da87,_0x212374+0x1);for(let _0x520075=0x0;_0x520075<_0x48da87[_0x3fa2('0x6a')];_0x520075++)_0x2a6e56(_0x48da87[_0x520075],_0x178af5,0x0);for(let _0x5b1bd3=0x0;_0x5b1bd3<_0x48da87[_0x3fa2('0x6a')];_0x5b1bd3++){const _0x109038=_0x48da87[_0x5b1bd3];!_0x2283b5['has'](_0x109038)&&_0x109038['previous']&&(_0x109038[_0x3fa2('0x11b')][_0x3fa2('0xe8')]===_0x109038&&(_0x109038['previous']['next']=null),_0x109038['previous']=null),!_0x4d7d07[_0x3fa2('0x67')](_0x109038)&&_0x109038['next']&&(_0x109038[_0x3fa2('0xe8')][_0x3fa2('0x11b')]===_0x109038&&(_0x109038['next'][_0x3fa2('0x11b')]=null),_0x109038[_0x3fa2('0xe8')]=null);}function _0x2a6e56(_0x48fe8a,_0x3b215a,_0x283bfe){for(let _0x4f96f4=_0x283bfe;_0x4f96f4<_0x3b215a[_0x3fa2('0x6a')];_0x4f96f4++){const _0x10780c=_0x3e42ef(_0x48fe8a,_0x3b215a[_0x4f96f4]);_0x10780c&&(_0x10780c[0x0][_0x3fa2('0xe8')]=_0x10780c[0x1],_0x10780c[0x1]['previous']=_0x10780c[0x0],_0x4d7d07['add'](_0x10780c[0x0]),_0x2283b5[_0x3fa2('0xa1')](_0x10780c[0x1]));}}function _0x3e42ef(_0x6d3312,_0x520fbf){if(_0x6d3312[_0x3fa2('0xf8')]['id']!==_0x520fbf[_0x3fa2('0xf8')]['id'])return null;const _0xfdb277=_0x3b75bb[_0x3fa2('0x2c')](_0x6d3312)(_0x6d3312,_0x520fbf,_0x5263dc[_0x3fa2('0x2c')](_0x6d3312),_0x5263dc[_0x3fa2('0x2c')](_0x520fbf));if(!_0xfdb277)return null;return _0x3b75bb['get'](_0x520fbf)(_0x6d3312,_0x520fbf,_0x5263dc[_0x3fa2('0x2c')](_0x6d3312),_0x5263dc[_0x3fa2('0x2c')](_0x520fbf))?_0xfdb277[0x1][_0x3fa2('0x96')]&&_0xfdb277[0x1]['commentThread'][_0x3fa2('0x6a')]?null:_0xfdb277:null;}}[_0x3fa2('0x98')](_0x2411f4){const _0x399f71=Array[_0x3fa2('0x3')](_0x2411f4),_0x25b47a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x303e89=_0x25b47a['filter'](_0x302cdf=>!_0x2411f4['has'](_0x302cdf)),_0x1fdf2d=new Map(_0x399f71[_0x3fa2('0xc2')](_0x2fbcd9=>[_0x2fbcd9,this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x2fbcd9['type'],_0x2fbcd9['subType'],_0x3fa2('0xf0'))])),_0x75d49=new Map(_0x25b47a[_0x3fa2('0xc2')](_0x47a9c6=>[_0x47a9c6,_0x47a9c6['getRanges']()]));for(let _0x5253f0=0x0;_0x5253f0<_0x399f71[_0x3fa2('0x6a')];_0x5253f0++){if(_0x3009f1(this,_0x399f71[_0x5253f0],_0x399f71,_0x5253f0+0x1))return!0x0;}for(let _0x55f701=0x0;_0x55f701<_0x399f71[_0x3fa2('0x6a')];_0x55f701++){if(_0x3009f1(this,_0x399f71[_0x55f701],_0x303e89,0x0))return!0x0;}return!0x1;function _0x3009f1(_0x12a746,_0x277332,_0x30adbd,_0x50951f){for(let _0x5a2f33=_0x50951f;_0x5a2f33<_0x30adbd['length'];_0x5a2f33++){const _0x1c421b=_0x30adbd[_0x5a2f33];if(_0x1c421b[_0x3fa2('0x29')]!==_0x277332['type']||_0x1c421b[_0x3fa2('0xf8')]['id']!==_0x277332[_0x3fa2('0xf8')]['id']||_0x1c421b[_0x3fa2('0xea')]!==_0x277332[_0x3fa2('0xea')])continue;const _0x1588b8=_0x1fdf2d['get'](_0x277332),_0x582fc7=_0x75d49[_0x3fa2('0x2c')](_0x277332),_0xd8d649=_0x75d49[_0x3fa2('0x2c')](_0x1c421b),_0x47d00b=_0x277332[_0x3fa2('0x96')]&&_0x277332[_0x3fa2('0x96')][_0x3fa2('0x6a')],_0x1350b8=_0x1c421b[_0x3fa2('0x96')]&&_0x1c421b[_0x3fa2('0x96')][_0x3fa2('0x6a')];if(!_0x47d00b&&_0x1588b8(_0xd8d649,_0x582fc7))return _0x12a746[_0x3fa2('0x9e')](_0x1c421b,_0x277332),_0x75d49[_0x3fa2('0x47')](_0x277332),!0x0;if(!_0x1350b8&&_0x1588b8(_0x582fc7,_0xd8d649))return _0x12a746[_0x3fa2('0x9e')](_0x277332,_0x1c421b),_0x75d49[_0x3fa2('0x47')](_0x1c421b),!0x0;}return!0x1;}}[_0x3fa2('0x9e')](_0x3e375b,_0x4066f0){if(_0x3e375b[_0x3fa2('0xb')])for(const _0x316eeb of _0x4066f0[_0x3fa2('0x25')]())_0x3e375b['addRange'](_0x316eeb);else{const _0x124b48=_0x4066f0[_0x3fa2('0x42')]()[_0x3fa2('0x11a')];this['_setSuggestionRange'](_0x3e375b,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x3e375b[_0x3fa2('0x42')]()[_0x3fa2('0x125')],_0x124b48));}_0x4066f0['removeMarkers']();}}class Dt{constructor(_0x8aef8a){this[_0x3fa2('0x85')]=_0x8aef8a,this[_0x3fa2('0x12b')]=_0x8aef8a[_0x3fa2('0xa8')],this[_0x3fa2('0x57')]=new Map(),this[_0x3fa2('0x66')]=new Map(),this[_0x3fa2('0x61')]();}['buildSuggestion'](_0x5c49fa,_0x36737a,_0x4186f0,_0x553235,_0x2fd392,_0x465405){return new _0x4a4cae(this['_model'],{'type':_0x5c49fa,'subType':_0x36737a,'id':_0x4186f0,'author':_0x553235,'creator':_0x553235,'attributes':_0x2fd392,'onAttributesChange':_0x465405,'onAccept':(..._0x2c2450)=>this[_0x3fa2('0x41')](_0x5c49fa,_0x36737a,'accept')(..._0x2c2450),'onDiscard':(..._0xc8ac2)=>this[_0x3fa2('0x41')](_0x5c49fa,_0x36737a,'discard')(..._0xc8ac2)});}['registerCustomCallback'](_0x17b548,_0xb53e19,_0x573e9b,_0x4f64f7){const _0x3247db=_0x17b548+':'+_0xb53e19+':'+_0x573e9b;this['_customCallbacks'][_0x3fa2('0xf1')](_0x3247db,_0x4f64f7);}['getSuggestionCallback'](_0x5a4e6d,_0x1fef5c,_0x2aad2a){const _0x3f12e4=_0x5a4e6d+':'+_0x1fef5c+':'+_0x2aad2a;return this[_0x3fa2('0x57')][_0x3fa2('0x2c')](_0x3f12e4)||this[_0x3fa2('0x66')][_0x3fa2('0x2c')](_0x5a4e6d+':'+_0x2aad2a);}[_0x3fa2('0x61')](){const _0x197aca=()=>{},_0x7e5b1=_0x388d7e=>{_0x388d7e[_0x3fa2('0xac')]((_0x17c582,_0x11834e)=>_0x17c582['start'][_0x3fa2('0x119')](_0x11834e['start'])?0x1:-0x1),this[_0x3fa2('0x12b')][_0x3fa2('0x79')](_0x4feb4e=>{for(const _0xdcabde of _0x388d7e){let _0x49d58c;_0x49d58c=_0xdcabde['end'][_0x3fa2('0x55')]&&_0xdcabde[_0x3fa2('0x11a')][_0x3fa2('0x84')]==_0xdcabde[_0x3fa2('0x125')][_0x3fa2('0x58')]?_0x4feb4e[_0x3fa2('0x39')](_0xdcabde['start'][_0x3fa2('0x58')],'on'):_0x4feb4e['createSelection'](_0xdcabde),this[_0x3fa2('0x12b')]['deleteContent'](_0x49d58c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x12c377=(_0x2adb6e,_0x1678c8)=>{this['_model'][_0x3fa2('0x79')](_0x4b3812=>{const {commandName:_0x2f25ec,commandParams:_0x1f1162=[]}=_0x1678c8,_0x9b03c4=_0x2adb6e[_0x3fa2('0xc2')](_0x1a29a2=>(_t(_0x1a29a2)&&(_0x1a29a2=this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x1a29a2[_0x3fa2('0x11a')])),_0x1a29a2))[_0x3fa2('0x1b')](_0x42b16e=>'$graveyard'!==_0x42b16e['root'][_0x3fa2('0xc')]);if(_0x9b03c4[_0x3fa2('0x6a')]<0x1)return;const _0x5a414d=Array[_0x3fa2('0x3')](this[_0x3fa2('0x12b')][_0x3fa2('0x123')][_0x3fa2('0x7')]['getRanges']())[_0x3fa2('0xc2')](_0x1e010c=>_0x526301[_0x3fa2('0xfa')](_0x1e010c));_0x4b3812[_0x3fa2('0x2b')](_0x9b03c4);for(const _0x433042 of this['_editor'][_0x3fa2('0xb9')][_0x3fa2('0xb9')]())_0x433042['refresh']();_0x1f1162[_0x3fa2('0xe5')]({'forceDefaultExecution':!0x0}),this[_0x3fa2('0x85')][_0x3fa2('0x63')](_0x2f25ec,..._0x1f1162);const _0x2221d4=_0x5a414d[_0x3fa2('0x1b')](_0x1e8675=>'$graveyard'!=_0x1e8675[_0x3fa2('0x7a')][_0x3fa2('0xc')]);_0x2221d4['length']>0x0&&_0x4b3812[_0x3fa2('0x2b')](_0x2221d4);for(const _0x110190 of _0x5a414d)_0x110190[_0x3fa2('0x93')]();});},_0x6fdf84=(_0x309a8b,_0x9c387c)=>0x1==_0x309a8b[_0x3fa2('0x6a')]&&0x1==_0x9c387c[_0x3fa2('0x6a')]&&_0x309a8b[0x0][_0x3fa2('0x11a')][_0x3fa2('0xa0')](_0x9c387c[0x0]['start']),_0x2dbc7c=(_0x125232,_0x48932d,_0x126db0,_0x4e7244)=>xt(_0x125232,_0x48932d,_0x126db0,_0x4e7244,this[_0x3fa2('0x12b')])?[_0x125232,_0x48932d]:xt(_0x48932d,_0x125232,_0x4e7244,_0x126db0,this[_0x3fa2('0x12b')])?[_0x48932d,_0x125232]:null;this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x13e'),_0x197aca),this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x10c'),_0x7e5b1),this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x12'),_0x6fdf84),this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x138'),_0x2dbc7c),this['_defaultCallbacks'][_0x3fa2('0xf1')](_0x3fa2('0x135'),_0x7e5b1),this['_defaultCallbacks']['set']('deletion:discard',_0x197aca),this[_0x3fa2('0x66')]['set'](_0x3fa2('0xfc'),_0x6fdf84),this['_defaultCallbacks']['set'](_0x3fa2('0xbc'),_0x2dbc7c),this['_defaultCallbacks'][_0x3fa2('0xf1')]('formatInline:accept',_0x12c377),this[_0x3fa2('0x66')]['set']('formatInline:discard',_0x197aca),this['_defaultCallbacks'][_0x3fa2('0xf1')](_0x3fa2('0x3a'),_0x6fdf84),this[_0x3fa2('0x66')]['set'](_0x3fa2('0x3e'),_0x197aca),this[_0x3fa2('0x66')]['set'](_0x3fa2('0x10e'),_0x12c377),this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x76'),_0x197aca),this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x10f'),_0x6fdf84),this['_defaultCallbacks'][_0x3fa2('0xf1')](_0x3fa2('0x10a'),_0x197aca);}}function Bt(_0x527e96,_0x5b81df,_0x210c0f){for(const _0x42e92d of _0x5b81df[_0x3fa2('0x84')][_0x3fa2('0xb3')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x42e92d['root']==_0x42e92d)return!0x1;if(!_0x210c0f[_0x3fa2('0x8c')](_0x42e92d))return!0x1;if(_0x527e96[_0x3fa2('0x95')](_0x42e92d)||_0x527e96[_0x3fa2('0xd8')](_0x42e92d))return!0x0;}return!0x1;}function _t(_0x374220){return _0x374220['end']['parent']==_0x374220[_0x3fa2('0x125')]['nodeAfter']&&_0x374220[_0x3fa2('0x11a')][_0x3fa2('0x45')];}function Mt(_0x20d9b8,_0x345266,_0x44c51f,_0xb23147){const _0x15e779=_0x1ab404=>!_0x1ab404[_0x3fa2('0x116')]['is'](_0x3fa2('0x78'))&&!_0xb23147[_0x3fa2('0x95')](_0x1ab404['item']),_0x573e88=_0x20d9b8['start'][_0x3fa2('0x3b')](_0x15e779),_0x1e215a=_0x20d9b8[_0x3fa2('0x11a')][_0x3fa2('0x3b')](_0x15e779,{'direction':'backward'});return(!_0x20d9b8[_0x3fa2('0x125')][_0x3fa2('0xa0')](_0x573e88)||!_0x20d9b8['end'][_0x3fa2('0xa0')](_0x1e215a))&&(_0x573e88[_0x3fa2('0x119')](_0x1e215a)?_0x44c51f[_0x3fa2('0xd7')](_0x345266,{'range':_0x44c51f[_0x3fa2('0x12d')](_0x573e88,_0x1e215a)}):_0x44c51f[_0x3fa2('0x24')](_0x345266),!0x0);}function $t(_0x526761){return _0x1ebb43(_0x526761);}function Nt(_0x171588){const _0x2bbda3=_0x171588[_0x3fa2('0x125')][_0x3fa2('0x58')];return _0x2bbda3&&_0x2bbda3['is'](_0x3fa2('0x4d'));}function Rt(_0x5eef7e,_0x50819f){const _0x386d7a=_0x50819f[_0x3fa2('0xe9')][_0x3fa2('0x95')](_0x5eef7e)||_0x50819f[_0x3fa2('0xe9')][_0x3fa2('0x114')](_0x5eef7e);return _0x50819f['createRange'](_0x50819f[_0x3fa2('0xe1')](_0x5eef7e,'before'),_0x386d7a?_0x50819f[_0x3fa2('0xbf')](_0x5eef7e):_0x50819f[_0x3fa2('0xe1')](_0x5eef7e,_0x3fa2('0x11a')));}function xt(_0x156d17,_0x29c807,_0x319fe0,_0x490dbe,_0x59f7a8){if(_0x319fe0[_0x3fa2('0x11a')]['isEqual'](_0x490dbe['start']))return!0x0;if(_0x156d17['type']!=_0x29c807[_0x3fa2('0x29')])return!0x1;if(!_0x319fe0[_0x3fa2('0x11a')]['isTouching'](_0x490dbe[_0x3fa2('0x125')]))return!0x1;const _0xba0714=_0x59f7a8[_0x3fa2('0x12d')](_0x319fe0[_0x3fa2('0x11a')],_0x490dbe[_0x3fa2('0x125')])[_0x3fa2('0xd9')]();for(const _0x2c324e of _0xba0714)if(['elementStart',_0x3fa2('0xe7')][_0x3fa2('0x139')](_0x2c324e['type'])&&_0x59f7a8[_0x3fa2('0xe9')][_0x3fa2('0xd8')](_0x2c324e[_0x3fa2('0x116')]))return!0x1;return!0x0;}
23
+ const _0x2ba6=['setTo','getDifference','low','skipNestingCheck','_suggestions','accepted','markBlockFormat','_registerDefaultCallbacks','_addSuggestionMarker','head','addMarker:suggestion','init','removeMarker','requires','$textProxy','updateSuggestion','containsPosition','insertion','_findSuggestions','editingDowncast','getShiftedBy','acceptAllSuggestions','isIntersectingWithRange','subType','isInsideObject','_customCallbacks','lowest','differ','move','bindElementToMarker','add','getSuggestionCallback','_suggestionFactory','nodeBefore','_joinSuggestions','dataDowncast','registerPostFixer','insertContent','getItems','addHighlight','insertion:chain','batch','isAtEnd','markDeletion','forceDefaultExecution','config','targetPosition','highest','removeMarkers','discard','isUndo','discardSuggestion','parent','range','_updateSuggestionData','element','isBefore','insertion:','activeMarkers','high','backward','newRange','upcast','$marker','suggestionChanged','always','value','dataToMarker','registerCustomCallback','split','plugins','isAtStart','after','commands','deleteContent','addUser','_suggestionState','pluginName','ck-suggestion-marker--active','Users','conversion','values','commentThread','markerToData','createPositionAt','rejected','getSuggestion','splice','_adapter','name','elementToElement','getAttribute','getIntersection','update:suggestion','getRanges','type','formatInline:','consume','from','markMultiRangeBlockFormat','track-changes-adapter-missing-getsuggestion','showSuggestionHighlights','external:','fetchCommentThread','suggestion','clear','hasComments','_splitMarkerName','change:_saved','authorName','markMultiRangeDeletion','end','adapter','fire','push','getFirstRange','_enabledCommands','creator','isAfter','size','commandName','getChangedMarkers','never','addClass','isInContent','sort','default','insertion:join','formatInline:accept','then','refresh','isCollapsed','markerToHighlight','moveTargetPosition','deletion:chain','insert','data','_setSuggestionData','consumable','author','createSelection','setAttribute','TrackChangesEditing','_checkSuggestionCorrectness','_refreshSuggestionsChain','markers','documentSelection','formatInline:join','return','multi','formatBlock','_defaultCallbacks','includes','isMultiRange','PendingActions','getCustomProperty','elementStart','map','formatBlock:join','splitPosition','addSuggestionData','document','filter','_isForcedDefaultExecutionBlock','removeComment','suggestionLoaded','stop','addMarker:suggestion:formatBlock','previous','markMultiRangeInsertion','get','markerReady','createRangeIn','removeAttribute','formatInline:discard','isOwn','createPositionBefore','has','for','enableCommand','addCommentThread','reconvertMarker','join','root','getMarkers','start','discardAllSuggestions','delete','multipleBlocks','editing','writer','ready','deletion:','_onDiscard','group','CommentsRepository','getNearestSelectionRange','trackChanges.trackFormatChanges','getMultiRangeId','isTouching','formatInline:chain','suggestion:','isNextTo','getWalker','getCommentThread','item','containsItem','listenTo','_cutOutSuggestionMarker','editor','formatBlock:discard','_mergeNestedSuggestions','createdAt','fromRange','_breakSuggestionMarker','_rangeIsInLocalUserInsertion','_handleNewSuggestionMarker','acceptSelectedSuggestions','_setSuggestionRange','isObject','execute','ck-suggestion-marker','trackChangesCommand','accept','_commentsRepository','data-suggestion','isRemovable','getSuggestions','nodeAfter','formatBlock:','track-changes-suggestion-data-mismatch','_getSuggestionData','next','markInsertion','_getAuthorFromId','createElement','PENDING_ACTION_SUGGESTION','buildSuggestion','every','remove','_editor','locale','position','notReady','before','trackChanges.mergeNestedSuggestions','setSelection','dataReady','authoredAt','getUser','hasCommentThread','_model','@external','detach','formatInline','forward','isBlock','applyOperation','formatBlock:accept','containsRange','unbindElementFromMarkerName','containsRangeInObject','_createSuggestion','getRange','createPositionAfter','_getExternalAuthor','enableReadOnlyMode','formatBlock:chain','catch','isEqual','deletion','length','track-changes-suggestion-not-found','_removeSuggestion','unbind','widget','marker-count','collaboration.channelId','resolve','removed','addRange','set','attributes','rootName','change','addMarkerName','createRange','updateMarker','containerElement','track-changes-adapter-already-set','isSelectable','rethrowUnexpectedError','mapper','change:data','isLimit','schema','_saved','$graveyard','toJSON','oldRange','selection','acceptSuggestion','getLastMatchingPosition','addComment','ck-suggestion-marker-formatBlock','markerName','_trackFormatChanges','some','getAncestors','track-changes-command-not-found','model','clone','options','ck-suggestion-marker-','addSuggestion','getAllAdjacentSuggestions','formatGroupId','discardSelectedSuggestions','markInlineFormat','suggestion-type','change:activeMarkers','define','removeMarker:suggestion:formatBlock'];(function(_0x4e7252,_0x2ba628){const _0x433496=function(_0x4beb11){while(--_0x4beb11){_0x4e7252['push'](_0x4e7252['shift']());}};_0x433496(++_0x2ba628);}(_0x2ba6,0x1ad));const _0x4334=function(_0x4e7252,_0x2ba628){_0x4e7252=_0x4e7252-0x0;let _0x433496=_0x2ba6[_0x4e7252];return _0x433496;};import{Plugin as _0x579e0a,PendingActions as _0x425ba1}from'ckeditor5/src/core';import{LiveRange as _0x3a048e}from'ckeditor5/src/engine';import{CKEditorError as _0x2bebbb,uid as _0x2a71e3,priorities as _0x58b8c3,logWarning as _0xd617ef}from'ckeditor5/src/utils';import{toWidget as _0x35c619}from'ckeditor5/src/widget';import{Users as _0x4a2cb5,hashObject as _0x3178f7}from'ckeditor5-collaboration/src/collaboration-core';import _0x10f0a9 from'./commands/trackchangescommand';import _0x4c9071 from'./commands/acceptsuggestioncommand';import _0x14c7a9 from'./commands/discardsuggestioncommand';import _0x36657a from'./commands/executeonallsuggestionscommand';import _0xb61c34 from'./commands/executeonselectedsuggestionscommand';import _0x23eeb3 from'./suggestion';import _0x35b89f from'./suggestiondescriptionfactory';import _0x3ef619 from'./integrations/alignment';import _0x4e33a4 from'./integrations/basicstyles';import _0x1f0207 from'./integrations/blockquote';import _0x2db750 from'./integrations/ckbox';import _0x491f31 from'./integrations/codeblock';import _0x400338 from'./integrations/comments';import _0x3d5adf from'./integrations/deletecommand';import _0x331587 from'./integrations/documentlist';import _0x45c9c3 from'./integrations/entercommand';import _0x33577e from'./integrations/findandreplace';import _0x5496a9 from'./integrations/font';import _0xb62f16 from'./integrations/formatpainter';import _0xef8bf5 from'./integrations/heading';import _0x390b27 from'./integrations/highlight';import _0x4adb21 from'./integrations/horizontalline';import _0x529cb9 from'./integrations/htmlembed';import _0x2d772e from'./integrations/image';import _0x2a1c21 from'./integrations/imagereplace';import _0x3ada24 from'./integrations/importword';import _0x5e58a9 from'./integrations/indent';import _0x39eb5d from'./integrations/inputcommand';import _0x591853 from'./integrations/link';import _0x2afe1c from'./integrations/list';import _0x2435ac from'./integrations/listproperties';import _0x555f31 from'./integrations/mediaembed';import _0x5e3702 from'./integrations/mention';import _0x28d5a4 from'./integrations/pagebreak';import _0x3ce906 from'./integrations/paragraph';import _0x569904 from'./integrations/removeformat';import _0x3d9d53 from'./integrations/restrictededitingmode';import _0xa912ae from'./integrations/shiftentercommand';import _0xd275e3 from'./integrations/standardeditingmode';import _0x50ca60 from'./integrations/style';import _0x27a51b from'./integrations/table';import _0x251e5d from'./integrations/tablemergesplit';import _0x45ee68 from'./integrations/tableheadings';import _0x44c801 from'./integrations/tableclipboard';import _0x1a8919 from'./integrations/tablecolumnresize';import _0x461d67 from'./integrations/template';import _0x56794e from'./integrations/tableofcontents';import _0x46ca23 from'./integrations/title';import _0x491205 from'./integrations/undo';import{getTranslation as _0x25dfb2}from'./utils/common-translations';import _0x2837e9 from'./integrations/tablecaption';import _0x1e283e from'./integrations/documentlistproperties';import _0x56c499 from'./integrations/tableproperties';export default class p extends _0x579e0a{static get[_0x4334('0xe6')](){return[_0x4334('0x59'),_0x4a2cb5,_0x425ba1,_0x3ef619,_0x4e33a4,_0x1f0207,_0x2db750,_0x491f31,_0x400338,_0x3d5adf,_0x331587,_0x1e283e,_0x45c9c3,_0x33577e,_0x5496a9,_0xb62f16,_0xef8bf5,_0x390b27,_0x4adb21,_0x529cb9,_0x2d772e,_0x2a1c21,_0x3ada24,_0x5e58a9,_0x39eb5d,_0x591853,_0x2afe1c,_0x2435ac,_0x555f31,_0x5e3702,_0x28d5a4,_0x3ce906,_0x569904,_0x3d9d53,_0xa912ae,_0xd275e3,_0x50ca60,_0x27a51b,_0x251e5d,_0x45ee68,_0x2837e9,_0x44c801,_0x1a8919,_0x56794e,_0x56c499,_0x461d67,_0x46ca23,_0x491205];}static get[_0x4334('0x126')](){return _0x4334('0x24');}constructor(_0x1c8b11){function _0x4257bf(_0x3f41b0){return _0x3f41b0['map'](_0x11a9ea=>String['fromCharCode'](_0x11a9ea))[_0x4334('0x4c')]('');}super(_0x1c8b11),this['set'](_0x4334('0x113'),[]),this['on'](_0x4334('0xd6'),(_0xc6cb6c,_0x27fd2b,_0x1f0edf,_0x40b03b)=>{this['_model'][_0x4334('0xb2')](()=>{for(const _0x1004a3 of[..._0x40b03b,..._0x1f0edf])this['_model'][_0x4334('0x27')]['has'](_0x1004a3)&&_0x1c8b11[_0x4334('0x53')][_0x4334('0x4b')](_0x1004a3);});}),this['_descriptionFactory']=new _0x35b89f(this[_0x4334('0x67')][_0x4334('0xcc')][_0x4334('0xbd')],this[_0x4334('0x67')][_0x4334('0x87')]),this[_0x4334('0x131')]=null,this['_suggestionFactory']=new Dt(this['editor']),this['_suggestions']=new Map(),this[_0x4334('0x76')]=_0x1c8b11[_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x59')),this[_0x4334('0xa')]=new Set(),this[_0x4334('0x91')]=this[_0x4334('0x67')][_0x4334('0xcc')],this['_suggestionState']=new WeakMap(),this[_0x4334('0x39')]=!0x1,_0x1c8b11[_0x4334('0x106')][_0x4334('0xd7')](_0x4334('0x5b'),_0x4334('0x14')),this[_0x4334('0xc8')]=_0x1c8b11[_0x4334('0x106')][_0x4334('0x40')](_0x4334('0x5b')),_0x1c8b11['config']['define'](_0x4334('0x8b'),!0x0),this[_0x4334('0x69')]=_0x1c8b11[_0x4334('0x106')][_0x4334('0x40')](_0x4334('0x8b')),this[_0x4334('0x74')]=new _0x10f0a9(_0x1c8b11,this[_0x4334('0xa')]),this[_0x4257bf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4257bf([0x34,0x30,0x34,0x36,0x31,0x32,0x35,0x36]);}[_0x4334('0xe4')](){const _0x289305=this['editor'];_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0xec'))[_0x4334('0x1a')]({'model':'suggestion','view':_0x23a932=>{const {id:_0x300089,type:_0x378542}=this[_0x4334('0x1')](_0x23a932[_0x4334('0xc7')]),_0x28fc20=[_0x4334('0x73'),'ck-suggestion-marker-'+_0x378542];let _0x192ede=0xbb8;return this[_0x4334('0x113')][_0x4334('0x2e')](_0x23a932[_0x4334('0xc7')])&&(_0x28fc20['push'](_0x4334('0x127')),_0x192ede=0xbc2),'deletion'==_0x378542&&(_0x192ede+=0x5),{'classes':_0x28fc20,'attributes':{'data-suggestion':_0x300089},'priority':_0x192ede};}}),_0x289305['conversion'][_0x4334('0x48')](_0x4334('0xfc'))[_0x4334('0xf7')](_0x9e028d=>{_0x9e028d['on'](_0x4334('0xe3'),(_0x41eebb,_0x1a328f,_0x4142e)=>{if(!_0x4142e['options'][_0x4334('0x13e')])return;const _0x2398e4=_0x1a328f[_0x4334('0x63')];if(!_0x2398e4)return;const _0x2fdf3c=_0x4142e[_0x4334('0xba')]['toViewElement'](_0x2398e4);_0x289305[_0x4334('0xcc')]['schema'][_0x4334('0x71')](_0x2398e4)&&_0x2fdf3c&&!_0x2fdf3c[_0x4334('0x31')](_0x4334('0xa9'))&&_0x2fdf3c['is'](_0x4334('0xb6'))&&_0x35c619(_0x2fdf3c,_0x4142e['writer']);},{'priority':_0x4334('0x114')});}),_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0xfc'))[_0x4334('0x1a')]({'model':_0x4334('0x141'),'view':(_0x1a4ef1,_0x1935a9)=>{if(!_0x1935a9[_0x4334('0xce')][_0x4334('0x13e')])return null;const {type:_0x1129f7}=this[_0x4334('0x1')](_0x1a4ef1[_0x4334('0xc7')]);return{'classes':['ck-suggestion-marker',_0x4334('0xcf')+_0x1129f7],'priority':0xbb8};}});const _0x23da5e=({showActiveMarkers:_0x24407f=!0x0}={})=>(_0x55bdfa,_0x2593a8,_0x30201a)=>{if(!_0x2593a8['item'])return;if(_0x2593a8[_0x4334('0x63')]['is'](_0x4334('0xc2')))return void _0x30201a[_0x4334('0x20')][_0x4334('0x13a')](_0x2593a8[_0x4334('0x63')],_0x55bdfa[_0x4334('0x132')]);const _0x37002a=_0x30201a[_0x4334('0xba')]['toViewElement'](_0x2593a8[_0x4334('0x63')]);if(!(_0x2593a8[_0x4334('0x63')]['is'](_0x4334('0x110'))&&_0x289305['model']['schema'][_0x4334('0x96')](_0x2593a8['item'])&&!_0x37002a[_0x4334('0x31')](_0x4334('0x100'))))return;const {id:_0x4baade}=this[_0x4334('0x1')](_0x2593a8[_0x4334('0xc7')]);_0x30201a[_0x4334('0x54')][_0x4334('0x11')](['ck-suggestion-marker',_0x4334('0xc6')],_0x37002a),_0x30201a[_0x4334('0x54')][_0x4334('0x23')](_0x4334('0x77'),_0x4baade,_0x37002a),_0x30201a['mapper'][_0x4334('0xf6')](_0x37002a,_0x2593a8['markerName']),_0x24407f&&(this[_0x4334('0x113')][_0x4334('0x2e')](_0x2593a8[_0x4334('0xc7')])?_0x30201a['writer']['addClass'](_0x4334('0x127'),_0x37002a):_0x30201a[_0x4334('0x54')]['removeClass'](_0x4334('0x127'),_0x37002a));for(const _0x188a24 of _0x289305[_0x4334('0xcc')][_0x4334('0x42')](_0x2593a8['item'])[_0x4334('0xff')]())_0x30201a[_0x4334('0x20')]['consume'](_0x188a24,_0x55bdfa['name']);_0x30201a['consumable']['consume'](_0x2593a8[_0x4334('0x63')],_0x55bdfa[_0x4334('0x132')]);};_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0xfc'))[_0x4334('0xf7')](_0x13c63d=>{_0x13c63d['on'](_0x4334('0x3d'),(_0x206690,_0x166085,_0x64ea7a)=>{_0x64ea7a['options'][_0x4334('0x13e')]&&_0x23da5e({'showActiveMarkers':!0x1})(_0x206690,_0x166085,_0x64ea7a);},{'priority':_0x4334('0x108')});}),_0x289305['conversion'][_0x4334('0x48')]('dataDowncast')[_0x4334('0x12c')]({'model':_0x4334('0x141'),'view':(_0x463c11,_0x5c1d4c)=>_0x5c1d4c[_0x4334('0xce')][_0x4334('0x13e')]?null:{'group':'suggestion','name':_0x463c11['substr'](0xb)}}),_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0x117'))[_0x4334('0x133')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x40bfa4,{writer:_0x2d6c23})=>{let _0x30563c=_0x4334('0x5f')+_0x40bfa4['getAttribute'](_0x4334('0xd5'))+':'+_0x40bfa4['getAttribute']('id');return _0x40bfa4['getAttribute'](_0x4334('0xaa'))&&(_0x30563c+=':'+_0x40bfa4[_0x4334('0x134')]('marker-count')),_0x2d6c23[_0x4334('0x81')](_0x4334('0x118'),{'data-name':_0x30563c});}}),_0x289305[_0x4334('0x129')][_0x4334('0x48')]('upcast')[_0x4334('0x11c')]({'view':_0x4334('0x141')}),_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0xec'))['add'](_0x79c743=>{_0x79c743['on'](_0x4334('0x3d'),_0x23da5e(),{'priority':_0x4334('0x114')});}),_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0xec'))[_0x4334('0xf7')](_0x283a7f=>{_0x283a7f['on'](_0x4334('0xd8'),(_0x43e806,_0x4997c5,_0x8c3ef0)=>{const _0x4ed804=_0x8c3ef0[_0x4334('0xba')]['markerNameToElements'](_0x4997c5[_0x4334('0xc7')]);if(_0x4ed804)for(const _0x187698 of _0x4ed804)_0x187698[_0x4334('0x31')](_0x4334('0x100'))||(_0x8c3ef0[_0x4334('0x54')]['removeClass']([_0x4334('0x73'),'ck-suggestion-marker-formatBlock',_0x4334('0x127')],_0x187698),_0x8c3ef0[_0x4334('0x54')][_0x4334('0x43')](_0x4334('0x77'),_0x187698),_0x8c3ef0['mapper'][_0x4334('0x9a')](_0x187698,_0x4997c5[_0x4334('0xc7')]));},{'priority':'high'});}),_0x289305[_0x4334('0xcc')][_0x4334('0x37')][_0x4334('0xfd')](_0x2fd5be=>{let _0x456989=!0x1;const _0x5133d9=Array['from'](_0x289305[_0x4334('0xcc')][_0x4334('0x37')][_0x4334('0xf4')][_0x4334('0xf')]()),_0x43ef5d=new Set();for(const {name:_0x1a3af6,data:_0x2a9371}of _0x5133d9){const {group:_0x5cb786,type:_0x349d34,id:_0x26deec}=this[_0x4334('0x1')](_0x1a3af6);if(_0x4334('0x141')!==_0x5cb786)continue;const _0x1e333a=this[_0x4334('0xdd')]['get'](_0x26deec);if(null!=_0x2a9371['newRange']){'formatInline'==_0x349d34&&(_0x456989=_0x456989||Mt(_0x2a9371[_0x4334('0x116')],_0x1a3af6,_0x2fd5be,_0x289305[_0x4334('0xcc')][_0x4334('0xbd')]));if(_0x2a9371[_0x4334('0x116')][_0x4334('0x19')]||_0x4334('0xbf')==_0x2a9371[_0x4334('0x116')][_0x4334('0x4d')][_0x4334('0xb1')]||_0x4334('0x2c')==_0x349d34&&!Nt(_0x2a9371[_0x4334('0x116')])||'deletion'==_0x349d34&&!(!_t(_0x170e2d=_0x2a9371[_0x4334('0x116')])&&!function(_0xb9a35d){return _0xb9a35d[_0x4334('0x4f')][_0x4334('0x10d')]==_0xb9a35d[_0x4334('0x5')][_0x4334('0xfa')]&&_0xb9a35d[_0x4334('0x4f')][_0x4334('0x103')];}(_0x170e2d)))_0x2fd5be[_0x4334('0xe5')](_0x1a3af6),_0x456989=!0x0;else{if(!_0x1e333a||!_0x1e333a[_0x4334('0x12')])continue;_0x43ef5d[_0x4334('0xf7')](_0x1e333a);}}}var _0x170e2d;return _0x43ef5d[_0x4334('0xd')]>0x0&&(_0x456989=!!this['_joinWithAdjacentSuggestions'](_0x43ef5d)||_0x456989),_0x456989;}),_0x289305[_0x4334('0xcc')][_0x4334('0x37')]['registerPostFixer'](_0xdec9ed=>{let _0x4d1473=!0x1;for(const _0x4bd345 of _0x289305[_0x4334('0xcc')][_0x4334('0x37')][_0x4334('0xf4')]['getChanges']()){if(_0x4334('0x1d')!=_0x4bd345[_0x4334('0x138')])continue;const _0x5ca25f=_0x4bd345[_0x4334('0x88')]['getShiftedBy'](_0x4bd345[_0x4334('0xa5')]);if(_0x5ca25f[_0x4334('0x103')])for(const _0x58c109 of this['_suggestions'][_0x4334('0x12a')]()){if(_0x58c109[_0x4334('0x2f')]||!_0x58c109[_0x4334('0x12')])continue;if(_0x4334('0x2c')!=_0x58c109['type'])continue;const _0x6de9f7=_0x58c109[_0x4334('0x9')]();if(_0x6de9f7['start'][_0x4334('0x10d')]!=_0x6de9f7['end']['parent']&&_0x6de9f7[_0x4334('0x5')]['isEqual'](_0x4bd345['position'])){const _0x4b814e=_0x289305[_0x4334('0xcc')]['createRange'](_0x6de9f7[_0x4334('0x4f')],_0x5ca25f);_0xdec9ed[_0x4334('0xb5')](_0x58c109['getFirstMarker'](),{'range':_0x4b814e}),_0x4d1473=!0x0;}}}return _0x4d1473;}),_0x289305[_0x4334('0xcc')][_0x4334('0x27')]['on'](_0x4334('0x136'),(_0x405d18,_0x50a46b,_0x1414dd)=>{if(null==_0x1414dd){const {id:_0x15a3b7}=this[_0x4334('0x1')](_0x50a46b[_0x4334('0x132')]),_0x1892cf=this[_0x4334('0xdd')][_0x4334('0x40')](_0x15a3b7);_0x1892cf&&_0x1892cf[_0x4334('0xb3')](_0x50a46b[_0x4334('0x132')]);}}),_0x289305[_0x4334('0xcc')]['document']['on'](_0x4334('0xbb'),()=>{const _0x4c0bef=Array['from'](_0x289305['model'][_0x4334('0x37')][_0x4334('0xf4')]['getChangedMarkers']())[_0x4334('0x38')](_0x29baee=>_0x4334('0x141')===this[_0x4334('0x1')](_0x29baee[_0x4334('0x132')])[_0x4334('0x58')]);if(0x0===_0x4c0bef[_0x4334('0xa5')])return;_0x4c0bef[_0x4334('0x13')]((_0x22bcd9,_0x234be9)=>{const _0x57de09=_0x22bcd9[_0x4334('0x1e')]['oldRange'],_0x2bcb4c=_0x234be9[_0x4334('0x1e')]['oldRange'];return null===_0x57de09&&null===_0x2bcb4c?0x0:null===_0x57de09&&null!==_0x2bcb4c?-0x1:null!==_0x57de09&&null===_0x2bcb4c?0x1:_0x57de09[_0x4334('0x4f')][_0x4334('0x111')](_0x2bcb4c[_0x4334('0x4f')])?-0x1:0x1;});const _0x3316bc=new Set(),_0x2fdccb=new Set();for(const {name:_0x53e1a8,data:_0xf5bd93}of _0x4c0bef){const {id:_0x49ddd5}=this['_splitMarkerName'](_0x53e1a8);if(null===_0xf5bd93[_0x4334('0xc1')]){const _0x49bb99=this['_handleNewSuggestionMarker'](_0x53e1a8);_0x2fdccb[_0x4334('0xf7')](_0x49bb99);}else{const _0x2c5563=this[_0x4334('0xdd')][_0x4334('0x40')](_0x49ddd5);null!==_0xf5bd93[_0x4334('0x116')]||_0x2c5563[_0x4334('0x12')]?(_0x3316bc[_0x4334('0xf7')](_0x2c5563[_0x4334('0xe2')]),_0x2fdccb['add'](_0x2c5563)):this[_0x4334('0xa7')](_0x2c5563);}}_0x2fdccb[_0x4334('0xd')]>0x0&&this[_0x4334('0x26')](_0x2fdccb);for(const _0x20b2ef of _0x3316bc)this[_0x4334('0x7')](_0x4334('0x119'),_0x20b2ef);}),_0x289305[_0x4334('0xcc')]['on'](_0x4334('0x97'),(_0x34dda2,_0x329c64)=>{const _0x47692d=_0x329c64[0x0];if(!this['_suggestions'][_0x4334('0xd')])return;if(!_0x47692d['isDocumentOperation'])return;if(_0x47692d['batch'][_0x4334('0x10b')]||!_0x47692d[_0x4334('0x102')]['isLocal'])return;let _0x85fd5f,_0x2923fe;switch(_0x47692d[_0x4334('0x138')]){case'insert':_0x85fd5f=_0x289305[_0x4334('0xcc')][_0x4334('0x12d')](_0x47692d[_0x4334('0x88')]),_0x2923fe=_0x85fd5f[_0x4334('0xed')](_0x47692d['howMany']);break;case'split':_0x85fd5f=_0x289305[_0x4334('0xcc')][_0x4334('0x12d')](_0x47692d[_0x4334('0x35')]),_0x2923fe=_0x289305['model'][_0x4334('0x12d')](_0x47692d[_0x4334('0x1b')]);break;case _0x4334('0xf5'):_0x85fd5f=_0x289305[_0x4334('0xcc')][_0x4334('0x12d')](_0x47692d[_0x4334('0x107')]),_0x2923fe=_0x85fd5f['getShiftedBy'](_0x47692d['howMany']);break;default:return;}const _0x58d298=_0x289305[_0x4334('0xcc')][_0x4334('0xb4')](_0x85fd5f,_0x2923fe);_0x289305[_0x4334('0xcc')]['change'](()=>{for(const {suggestion:_0x2c4434,meta:_0x2d517e}of this[_0x4334('0xeb')](_0x58d298)){if(_0x2c4434[_0x4334('0x2f')])continue;if('formatInline'==_0x2c4434[_0x4334('0x138')])continue;const _0x5a84c5=_0x2c4434[_0x4334('0x1e')]&&_0x2c4434['data'][_0x4334('0x52')];(_0x4334('0x2c')!=_0x2c4434['type']||_0x4334('0x11e')==_0x47692d['type']&&!_0x5a84c5)&&(_0x2d517e['containsRangeInObject']||_0x4334('0xea')==_0x2c4434[_0x4334('0x138')]&&_0x2d517e[_0x4334('0x45')]||_0x2c4434[_0x4334('0x9')]()[_0x4334('0x99')](_0x58d298)&&this[_0x4334('0x6c')](_0x2c4434,_0x85fd5f,_0x2923fe));}});},{'priority':_0x4334('0xf3')}),_0x289305[_0x4334('0xcc')]['on'](_0x4334('0x123'),(_0x9181d7,_0x1195b2)=>{const _0x3839fb=_0x1195b2[0x0],_0x456b00=_0x1195b2[0x1];if(_0x456b00&&_0x456b00['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x4334('0x74')][_0x4334('0x11b')])return;if(_0x3839fb['isCollapsed'])return;const _0x1c920f=_0x289305[_0x4334('0xcc')]['schema'],{start:_0x418d39,end:_0x55e9ee}=_0x3839fb[_0x4334('0x9')](),_0x4c3e76=_0x418d39[_0x4334('0x7a')]&&_0x1c920f[_0x4334('0xbc')](_0x418d39['nodeAfter'])?null:_0x1c920f[_0x4334('0x5a')](_0x418d39,_0x4334('0x95')),_0x57c980=_0x55e9ee[_0x4334('0xfa')]&&_0x1c920f[_0x4334('0xbc')](_0x55e9ee[_0x4334('0xfa')])?null:_0x1c920f[_0x4334('0x5a')](_0x55e9ee,_0x4334('0x115')),_0x3af73e=_0x289305[_0x4334('0xcc')]['createRange'](_0x4c3e76?_0x4c3e76[_0x4334('0x4f')]:_0x418d39,_0x57c980?_0x57c980['end']:_0x55e9ee);_0x289305[_0x4334('0xcc')][_0x4334('0xb2')](_0x21bc75=>{this['markDeletion'](_0x3af73e);const _0xb3ba37=_0x289305[_0x4334('0xcc')][_0x4334('0xbd')][_0x4334('0x5a')](_0x3af73e['start']);_0x3839fb['is'](_0x4334('0x28'))?_0x21bc75[_0x4334('0x8c')](_0xb3ba37):_0x3839fb[_0x4334('0xd9')](_0xb3ba37);}),_0x9181d7['stop']();},{'priority':_0x58b8c3['normal']+0xa}),_0x289305[_0x4334('0xcc')]['on'](_0x4334('0xfe'),(_0x128d9d,_0x4cc0fd)=>{const _0x3dd3ed=_0x4cc0fd[_0x4cc0fd[_0x4334('0xa5')]-0x1];_0x3dd3ed&&_0x3dd3ed['forceDefaultExecution']||this[_0x4334('0x39')]||this[_0x4334('0x74')][_0x4334('0x11b')]&&(_0x289305['model'][_0x4334('0xb2')](()=>{let _0x7b4dcc=_0x289305[_0x4334('0xcc')][_0x4334('0xfe')](_0x4cc0fd[0x0],_0x4cc0fd[0x1],_0x4cc0fd[0x2],{'forceDefaultExecution':!0x0});if(!_0x7b4dcc)return;_0x128d9d[_0x4334('0x2a')]=_0x7b4dcc[_0x4334('0xcd')]();const _0x1153d9=_0x7b4dcc[_0x4334('0x5')]['nodeBefore'],_0xdc70e4=_0x289305[_0x4334('0xcc')][_0x4334('0xbd')];_0x1153d9&&_0xdc70e4[_0x4334('0x96')](_0x1153d9)&&!_0xdc70e4[_0x4334('0x71')](_0x1153d9)&&(_0x7b4dcc=_0x289305['model'][_0x4334('0xb4')](_0x7b4dcc[_0x4334('0x4f')],_0x289305[_0x4334('0xcc')][_0x4334('0x12d')](_0x1153d9,_0x4334('0x5')))),this[_0x4334('0x7f')](_0x7b4dcc);}),_0x128d9d[_0x4334('0x3c')]());},{'priority':_0x4334('0x114')}),this[_0x4334('0x67')][_0x4334('0x122')]['add']('trackChanges',this[_0x4334('0x74')]),this[_0x4334('0x49')]('trackChanges');const _0x2ee2f7=new _0x4c9071(_0x289305,this[_0x4334('0xdd')]);_0x289305['commands'][_0x4334('0xf7')](_0x4334('0xc3'),_0x2ee2f7),this['enableCommand'](_0x4334('0xc3'));const _0x25efe9=new _0x14c7a9(_0x289305,this[_0x4334('0xdd')]);_0x289305['commands'][_0x4334('0xf7')](_0x4334('0x10c'),_0x25efe9),this['enableCommand'](_0x4334('0x10c')),_0x289305['commands']['add'](_0x4334('0xee'),new _0x36657a(_0x289305,_0x2ee2f7,this[_0x4334('0xdd')])),this['enableCommand'](_0x4334('0xee')),_0x289305[_0x4334('0x122')][_0x4334('0xf7')](_0x4334('0x50'),new _0x36657a(_0x289305,_0x25efe9,this[_0x4334('0xdd')])),this['enableCommand'](_0x4334('0x50')),_0x289305[_0x4334('0x122')][_0x4334('0xf7')](_0x4334('0x6f'),new _0xb61c34(_0x289305,_0x2ee2f7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x289305[_0x4334('0x122')][_0x4334('0xf7')](_0x4334('0xd3'),new _0xb61c34(_0x289305,_0x25efe9,this['_suggestions'])),this[_0x4334('0x49')]('discardSelectedSuggestions');const _0x354187=_0x289305[_0x4334('0x11f')]['get']('CommentsRepository');this[_0x4334('0x65')](_0x354187,_0x4334('0xc5'),(_0x3f8bdd,{threadId:_0x35a212})=>{const _0x580114=this[_0x4334('0xdd')][_0x4334('0x40')](_0x35a212);_0x580114&&_0x580114[_0x4334('0x12b')]&&0x1===_0x580114[_0x4334('0x12b')][_0x4334('0xa5')]&&this[_0x4334('0x10f')](_0x35a212,{'hasComments':!0x0});},{'priority':_0x4334('0xdb')}),this['listenTo'](_0x354187,_0x4334('0x3a'),(_0x35dfe6,{threadId:_0x3f3f45})=>{const _0x42de2b=this[_0x4334('0xdd')][_0x4334('0x40')](_0x3f3f45);_0x42de2b&&_0x42de2b['commentThread']&&!_0x42de2b[_0x4334('0x12b')]['length']&&this['_updateSuggestionData'](_0x3f3f45,{'hasComments':!0x1});},{'priority':_0x4334('0xdb')});}set['adapter'](_0x229089){if(this[_0x4334('0x131')])throw new _0x2bebbb(_0x4334('0xb7'),this);this[_0x4334('0x131')]=_0x229089;}get[_0x4334('0x6')](){return this[_0x4334('0x131')];}[_0x4334('0x79')]({skipNotAttached:_0xa87e4b=!0x1,toJSON:_0x2e5c38=!0x1}={}){const _0x32bf60=[];for(const _0x5f0dd3 of this[_0x4334('0xdd')][_0x4334('0x12a')]())_0xa87e4b&&!_0x5f0dd3[_0x4334('0x12')]||_0x32bf60['push'](_0x5f0dd3);return _0x2e5c38?_0x32bf60[_0x4334('0x33')](_0xe0cd56=>_0xe0cd56[_0x4334('0xc0')]()):_0x32bf60;}[_0x4334('0x12f')](_0x4fd7ec){const _0x1c5565=this['_suggestions'][_0x4334('0x40')](_0x4fd7ec);if(!_0x1c5565)throw new _0x2bebbb(_0x4334('0xa6'),this);return _0x1c5565;}['hasSuggestion'](_0x1b9b6f){return this['_suggestions'][_0x4334('0x47')](_0x1b9b6f);}[_0x4334('0x36')](_0x342006){const {authorId:_0x414251,id:_0x555d00,attributes:_0x2b2114}=_0x342006,[_0x5613a0,_0x469396]=_0x342006['type']['split'](':'),_0x3a75c1=this[_0x4334('0xdd')][_0x4334('0x40')](_0x555d00)||this[_0x4334('0x9c')](_0x5613a0,_0x469396,_0x555d00,_0x414251,_0x2b2114);if(this['_addThreadToSuggestion'](_0x3a75c1),this[_0x4334('0x25')](_0x3a75c1,_0x5613a0,_0x469396||null,_0x414251),_0x3a75c1[_0x4334('0x6a')]=_0x342006[_0x4334('0x6a')],_0x2b2114&&_0x2b2114[_0x4334('0x92')]){const _0x1c4bf8=_0x2b2114[_0x4334('0x92')],_0x1a1ac6=this[_0x4334('0x9f')](_0x1c4bf8[_0x4334('0x3')]);_0x3a75c1[_0x4334('0x8e')]=_0x1c4bf8[_0x4334('0x6a')],_0x3a75c1[_0x4334('0x21')]=_0x1a1ac6,_0x3a75c1['isExternal']=!0x0;}else _0x3a75c1[_0x4334('0x8e')]=_0x342006[_0x4334('0x6a')];switch(_0x342006[_0x4334('0x1e')]&&(_0x3a75c1[_0x4334('0x1e')]=_0x342006[_0x4334('0x1e')]),_0x342006['attributes']&&(_0x3a75c1[_0x4334('0xb0')]=_0x342006[_0x4334('0xb0')]),this[_0x4334('0x131')]&&this[_0x4334('0x131')]['addSuggestion']||(_0x3a75c1[_0x4334('0xbe')]=!0x0),this[_0x4334('0x125')][_0x4334('0x40')](_0x3a75c1)){case _0x4334('0x89'):this[_0x4334('0x125')]['set'](_0x3a75c1,_0x4334('0x8d'));break;case _0x4334('0x41'):_0x3a75c1[_0x4334('0x12')]?(this[_0x4334('0x125')][_0x4334('0xaf')](_0x3a75c1,_0x4334('0x55')),this['fire'](_0x4334('0x3b'),_0x3a75c1)):this[_0x4334('0x125')][_0x4334('0xaf')](_0x3a75c1,_0x4334('0xad'));}return _0x3a75c1;}[_0x4334('0xc3')](_0x53e2ed){this[_0x4334('0x105')](()=>{this[_0x4334('0x67')][_0x4334('0xcc')][_0x4334('0xb2')](()=>{for(const _0x492f5a of _0x53e2ed[_0x4334('0xd1')]())_0x492f5a[_0x4334('0x75')]();});});}[_0x4334('0x10c')](_0x41b774){this[_0x4334('0x105')](()=>{this[_0x4334('0x67')][_0x4334('0xcc')]['change'](()=>{for(const _0x1aa584 of _0x41b774[_0x4334('0xd1')]())_0x1aa584['discard']();});});}['enableCommand'](_0xdcf972,_0x4f02c6){const _0x3de7b1=this[_0x4334('0x67')][_0x4334('0x122')][_0x4334('0x40')](_0xdcf972);if(!_0x3de7b1)throw new _0x2bebbb(_0x4334('0xcb'),this,{'commandName':_0xdcf972});this[_0x4334('0xa')]['add'](_0x3de7b1),_0x4f02c6&&_0x3de7b1['on'](_0x4334('0x72'),(_0x460303,_0x1ab7d0)=>{this[_0x4334('0x74')][_0x4334('0x11b')]&&(this[_0x4334('0x39')]||_0x1ab7d0[_0x4334('0xa5')]>0x0&&_0x1ab7d0[_0x1ab7d0[_0x4334('0xa5')]-0x1]&&_0x1ab7d0[_0x1ab7d0[_0x4334('0xa5')]-0x1][_0x4334('0x105')]||(_0x4f02c6((..._0x3d583a)=>_0x3de7b1['execute'](..._0x3d583a,{'forceDefaultExecution':!0x0}),..._0x1ab7d0),_0x460303[_0x4334('0x3c')]()));},{'priority':_0x4334('0x114')});}[_0x4334('0x105')](_0x54eeb5){let _0x436847,_0x16775e;const _0x3cd942=this['_isForcedDefaultExecutionBlock'];this[_0x4334('0x39')]=!0x0;try{_0x436847=_0x54eeb5();}catch(_0x17257b){_0x16775e=_0x17257b;}return _0x3cd942||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x16775e&&_0x2bebbb[_0x4334('0xb9')](_0x16775e,this),_0x436847;}[_0x4334('0x7f')](_0x14e939,_0x106535=null,_0x375902={}){if(_0x14e939[_0x4334('0x19')])return null;const _0x5acf68=this[_0x4334('0x67')][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x128'))['me'];for(const {suggestion:_0x4fefe4,meta:_0x4bbbd6}of this[_0x4334('0xeb')](_0x14e939,_0x4334('0xea')))if(_0x4bbbd6['isOwn']){if(!_0x4bbbd6[_0x4334('0x60')]){if(!this[_0x4334('0x69')]&&_0x4bbbd6['containsRangeInObject'])continue;return _0x4fefe4;}if(_0x106535==_0x4fefe4[_0x4334('0xf0')]){const _0x5c61e4=_0x4fefe4[_0x4334('0x9')]();return _0x5c61e4[_0x4334('0x4f')]['isEqual'](_0x14e939[_0x4334('0x5')])?this['_setSuggestionRange'](_0x4fefe4,this[_0x4334('0x91')][_0x4334('0xb4')](_0x14e939[_0x4334('0x4f')],_0x5c61e4[_0x4334('0x5')])):this[_0x4334('0x70')](_0x4fefe4,this[_0x4334('0x91')][_0x4334('0xb4')](_0x5c61e4[_0x4334('0x4f')],_0x14e939[_0x4334('0x5')])),_0x4fefe4;}}const _0x79beb6=_0x2a71e3(),_0x18b762=_0x5acf68['id'],_0x28059b=_0x106535?_0x4334('0x112')+_0x106535:_0x4334('0xea'),_0xb20ae0=this[_0x4334('0x1f')]({'id':_0x79beb6,'type':_0x28059b,'createdAt':new Date(),'authorId':_0x18b762,'attributes':_0x375902});return this[_0x4334('0xe1')](_0x28059b,_0x79beb6,_0x18b762,_0x14e939),_0xb20ae0;}[_0x4334('0x3f')](_0x7013e7,_0x5f1a9d=_0x4334('0x2b'),_0xd7e434={}){const _0x364d43=this[_0x4334('0x67')]['plugins']['get'](_0x4334('0x128'))['me'],_0x29e1e2=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0xea'),_0x5f1a9d,_0x4334('0x4c'));for(const _0x5f598b of this['getSuggestions']())if(_0x5f598b['author']['id']==_0x364d43['id']&&_0x4334('0xea')==_0x5f598b[_0x4334('0x138')]&&_0x5f598b[_0x4334('0xf0')]==_0x5f1a9d&&(_0x29e1e2(_0x5f598b['getRanges'](),_0x7013e7)||_0x29e1e2(_0x7013e7,_0x5f598b[_0x4334('0x137')]()))){for(const _0x545399 of _0x7013e7)_0x5f598b[_0x4334('0xae')](_0x545399);return _0x5f598b;}if(this[_0x4334('0x69')])for(const _0x5c87cb of _0x7013e7)for(const {suggestion:_0x2c056b,meta:_0x502ad1}of this[_0x4334('0xeb')](_0x5c87cb,_0x4334('0xea'))){if(!_0x502ad1['isOwn'])continue;let _0x151e4a=!0x0;for(const _0x416c35 of _0x2c056b[_0x4334('0x137')]())for(const _0x3cab1f of _0x7013e7)if(!_0x416c35[_0x4334('0x99')](_0x3cab1f)){_0x151e4a=!0x1;break;}if(_0x151e4a)return _0x2c056b;}const _0x5096a2=_0x2a71e3(),_0x30c062=_0x364d43['id'],_0x260d01='insertion:'+_0x5f1a9d,_0x3c0d2d=this[_0x4334('0x1f')]({'id':_0x5096a2,'type':_0x260d01,'createdAt':new Date(),'authorId':_0x30c062,'attributes':_0xd7e434});for(const _0x47167d of _0x7013e7)this[_0x4334('0xe1')](_0x260d01,_0x5096a2,_0x30c062,_0x47167d,_0x23eeb3[_0x4334('0x5c')]());return _0x3c0d2d;}[_0x4334('0xd4')](_0x4d5260,_0x3f8d20,_0x4ed2d0=null,_0x4fbe27={}){if(_0x4ed2d0=_0x4ed2d0||$t(_0x3f8d20),_0x4d5260[_0x4334('0x19')])return null;if(_0x4334('0x10')===this['_trackFormatChanges']){const _0x7e14a5=this['_suggestionFactory'][_0x4334('0xf8')](_0x4334('0x94'),_0x4ed2d0,_0x4334('0x75'));return this[_0x4334('0x105')](()=>_0x7e14a5([_0x4d5260],_0x3f8d20,_0x4fbe27)),null;}const _0xd2d3da=this[_0x4334('0x67')][_0x4334('0x11f')][_0x4334('0x40')]('Users')['me'],_0x29f84b=[];if(_0x4334('0x11a')!==this[_0x4334('0xc8')])for(const {suggestion:_0x491406,meta:_0x13b7ec}of this[_0x4334('0xeb')](_0x4d5260,_0x4334('0xea')))_0x13b7ec['isOwn']&&!_0x13b7ec[_0x4334('0xf1')]&&_0x29f84b['push'](..._0x491406[_0x4334('0x137')]());const _0x4a0ab9=function(_0x43a348,_0x47e3c7){const _0x19cf75=[];for(const _0x1e1e08 of _0x47e3c7){const _0x1987bf=_0x43a348[_0x4334('0x135')](_0x1e1e08);_0x1987bf&&_0x19cf75[_0x4334('0x8')](_0x1987bf);}return _0x19cf75;}(_0x4d5260,_0x29f84b),_0x11213d=function(_0x2e71b7,_0x12b53c){const _0x4e2c97=[_0x2e71b7];for(const _0x20792b of _0x12b53c){let _0x2556d2=0x0;for(;_0x2556d2<_0x4e2c97['length'];){const _0x37b9ce=_0x4e2c97[_0x2556d2][_0x4334('0xda')](_0x20792b);_0x4e2c97[_0x4334('0x130')](_0x2556d2,0x1,..._0x37b9ce),_0x2556d2+=_0x37b9ce[_0x4334('0xa5')];}}return _0x4e2c97;}(_0x4d5260,_0x29f84b);_0x4a0ab9[_0x4334('0xa5')]&&this['_model'][_0x4334('0xb2')](()=>{for(const _0x26d1cd of _0x4a0ab9){const _0x31460c=this['_suggestionFactory'][_0x4334('0xf8')]('formatInline',_0x4ed2d0,'accept');this[_0x4334('0x105')](()=>_0x31460c([_0x26d1cd],_0x3f8d20,_0x4fbe27));}});for(const _0x50ee33 of _0x11213d){let _0x39108b=null,_0x4bc5cb=_0x50ee33[_0x4334('0x4f')],_0x59777d=_0x50ee33['end'];for(const {suggestion:_0x46205a,meta:_0x2d59b5}of this[_0x4334('0xeb')](_0x50ee33,_0x4334('0x94'))){if(!_0x2d59b5['isOwn'])continue;if(_0x46205a['subType']!=_0x4ed2d0)continue;const _0x1b19ff=_0x46205a['getFirstRange']();if(_0x1b19ff[_0x4334('0x99')](_0x50ee33,!0x0))return null;_0x4bc5cb=_0x4bc5cb[_0x4334('0x111')](_0x1b19ff['start'])?_0x4bc5cb:_0x1b19ff[_0x4334('0x4f')],_0x59777d=_0x59777d[_0x4334('0xc')](_0x1b19ff[_0x4334('0x5')])?_0x59777d:_0x1b19ff[_0x4334('0x5')],_0x39108b?_0x1b19ff[_0x4334('0x4f')]['isBefore'](_0x39108b['getFirstRange']()['start'])?(_0x39108b[_0x4334('0x109')](),_0x39108b=_0x46205a):_0x46205a['removeMarkers']():_0x39108b=_0x46205a;}const _0x6e5d12=this[_0x4334('0x91')][_0x4334('0xb4')](_0x4bc5cb,_0x59777d);if(_0x39108b)this[_0x4334('0x70')](_0x39108b,_0x6e5d12);else{const _0x31db98=_0x2a71e3(),_0x1bc1ec=_0xd2d3da['id'];this[_0x4334('0x1f')]({'id':_0x31db98,'type':_0x4334('0x139')+_0x4ed2d0,'data':_0x3f8d20,'createdAt':new Date(),'authorId':_0x1bc1ec,'attributes':_0x4fbe27}),this['_addSuggestionMarker']('formatInline:'+_0x4ed2d0,_0x31db98,_0x1bc1ec,_0x6e5d12);}}return null;}[_0x4334('0xdf')](_0x3f1d6a,_0x4c9f41,_0x2a7c60=[],_0x3e546e=null,_0x2b1e99={}){_0x4c9f41[_0x4334('0xd2')]||(_0x4c9f41[_0x4334('0xd2')]=_0x4c9f41[_0x4334('0xe')]),_0x4c9f41[_0x4334('0x52')]=_0x3f1d6a['is'](_0x4334('0x10e')),_0x3e546e=_0x3e546e||$t(_0x4c9f41);const _0x86a1ff=_0x2a7c60[_0x4334('0x33')](_0x9ce68e=>Rt(_0x9ce68e,this[_0x4334('0x91')])),_0x583d3b=_0x3f1d6a['is'](_0x4334('0x10e'))?_0x3f1d6a:Rt(_0x3f1d6a,this[_0x4334('0x91')]);if(_0x4334('0x10')===this[_0x4334('0xc8')]){const _0xbec942=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0x2c'),_0x3e546e,'accept');return this[_0x4334('0x105')](()=>_0xbec942([_0x583d3b],_0x4c9f41,_0x2b1e99)),null;}_0x86a1ff[_0x4334('0x8')](_0x583d3b);let _0x27010d=!0x0;for(const _0x5f38b9 of _0x86a1ff)if(!this[_0x4334('0x6d')](_0x5f38b9)){_0x27010d=!0x1;break;}if(_0x27010d&&_0x4334('0x11a')!==this[_0x4334('0xc8')]){const _0x5144b0=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0x2c'),_0x3e546e,_0x4334('0x75'));return this[_0x4334('0x105')](()=>_0x5144b0([_0x583d3b],_0x4c9f41,_0x2b1e99)),null;}let _0x540f53=null,_0x10809b=_0x583d3b[_0x4334('0x4f')],_0x3b6aa6=_0x583d3b['end'];for(const {suggestion:_0x337e98,meta:_0x382e1a}of this[_0x4334('0xeb')](_0x583d3b,_0x4334('0x2c'))){if(!_0x382e1a['isOwn']||_0x382e1a[_0x4334('0x60')]||_0x382e1a[_0x4334('0x9b')]||_0x382e1a[_0x4334('0xf1')])continue;if(_0x337e98[_0x4334('0x1e')]['formatGroupId']!=_0x4c9f41['formatGroupId'])continue;const _0x13b4e0=_0x337e98[_0x4334('0x9')]();if(_0x337e98[_0x4334('0xf0')]==_0x3e546e){if(_0x13b4e0[_0x4334('0x99')](_0x583d3b,!0x0))return null;_0x10809b=_0x10809b['isBefore'](_0x13b4e0[_0x4334('0x4f')])?_0x10809b:_0x13b4e0[_0x4334('0x4f')],_0x3b6aa6=_0x3b6aa6['isAfter'](_0x13b4e0[_0x4334('0x5')])?_0x3b6aa6:_0x13b4e0[_0x4334('0x5')],_0x540f53?_0x13b4e0[_0x4334('0x4f')][_0x4334('0x111')](_0x540f53[_0x4334('0x9')]()[_0x4334('0x4f')])?(_0x540f53[_0x4334('0x109')](),_0x540f53=_0x337e98):_0x337e98[_0x4334('0x109')]():_0x540f53=_0x337e98;}else{const _0x2166db=_0x583d3b['getIntersection'](_0x13b4e0);this['_cutOutSuggestionMarker'](_0x337e98,_0x2166db);}}const _0x4c86a9=this['editor'][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x128'))['me'],_0x5213e4=_0x2a71e3(),_0x37617f=_0x4c86a9['id'];if(_0x540f53)return this['_setSuggestionRange'](_0x540f53,this[_0x4334('0x91')]['createRange'](_0x10809b,_0x3b6aa6)),_0x540f53;{const _0x117251=this['_setSuggestionData']({'id':_0x5213e4,'type':'formatBlock:'+_0x3e546e,'data':_0x4c9f41,'createdAt':new Date(),'authorId':_0x37617f,'attributes':_0x2b1e99});return this['_addSuggestionMarker']('formatBlock:'+_0x3e546e,_0x5213e4,_0x37617f,this['_model'][_0x4334('0xb4')](_0x10809b,_0x3b6aa6)),_0x117251;}}[_0x4334('0x13c')](_0x1c7646,_0x2bd7a6,_0x364bc9=[],_0x4d11a6=null,_0x3ab353={}){_0x2bd7a6[_0x4334('0xd2')]||(_0x2bd7a6['formatGroupId']=_0x2bd7a6[_0x4334('0xe')]);const _0x33ca3c=_0x1c7646[0x0];_0x2bd7a6[_0x4334('0x52')]=_0x33ca3c['is']('range'),_0x4d11a6=_0x4d11a6||$t(_0x2bd7a6);const _0x3d6352=_0x364bc9[_0x4334('0x33')](_0x5db76d=>Rt(_0x5db76d,this[_0x4334('0x91')])),_0x4a61eb=_0x33ca3c['is'](_0x4334('0x10e'))?_0x1c7646:_0x1c7646[_0x4334('0x33')](_0x4d8c0c=>Rt(_0x4d8c0c,this[_0x4334('0x91')]));if(_0x4334('0x10')===this[_0x4334('0xc8')]){const _0x43b3c1=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0x2c'),_0x4d11a6,'accept');return this['forceDefaultExecution'](()=>_0x43b3c1(_0x4a61eb,_0x2bd7a6,_0x3ab353)),null;}_0x3d6352['push'](..._0x4a61eb);let _0x34ac45=!0x0;for(const _0xb98f93 of _0x3d6352)if(!this['_rangeIsInLocalUserInsertion'](_0xb98f93)){_0x34ac45=!0x1;break;}if(_0x34ac45&&_0x4334('0x11a')!==this['_trackFormatChanges']){const _0x221dfd=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0x2c'),_0x4d11a6,_0x4334('0x75'));return this[_0x4334('0x105')](()=>_0x221dfd(_0x4a61eb,_0x2bd7a6,_0x3ab353)),null;}const _0x2f1080=this[_0x4334('0x67')][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x128'))['me'];for(const _0x5ba8d7 of this[_0x4334('0x79')]()){if(_0x5ba8d7[_0x4334('0x21')]['id']!=_0x2f1080['id'])continue;if(_0x4334('0x2c')!=_0x5ba8d7['type']||_0x5ba8d7['data'][_0x4334('0xd2')]!=_0x2bd7a6[_0x4334('0xd2')])continue;const _0x396f3d=_0x5ba8d7[_0x4334('0xf0')]==_0x4d11a6;for(let _0x4162e5=0x0;_0x4162e5<_0x4a61eb[_0x4334('0xa5')];_0x4162e5++){const _0x1c6eb1=_0x4a61eb[_0x4162e5];for(const _0x2c83ab of _0x5ba8d7[_0x4334('0x4e')]()){const _0x7a3221=_0x2c83ab[_0x4334('0x9d')]();if(_0x1c6eb1[_0x4334('0xa3')](_0x7a3221)){_0x396f3d?(_0x4a61eb[_0x4334('0x130')](_0x4162e5,0x1),_0x4162e5--):_0x5ba8d7[_0x4334('0xe5')](_0x2c83ab[_0x4334('0x132')]);break;}}}}if(0x0==_0x4a61eb[_0x4334('0xa5')])return null;const _0x127153=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0x2c'),_0x4d11a6,_0x4334('0x4c'));for(const _0x1c34d7 of this[_0x4334('0x79')]())if(_0x1c34d7[_0x4334('0x21')]['id']==_0x2f1080['id']&&_0x4334('0x2c')==_0x1c34d7[_0x4334('0x138')]&&_0x1c34d7[_0x4334('0x1e')][_0x4334('0xd2')]==_0x2bd7a6[_0x4334('0xd2')]&&_0x1c34d7['subType']==_0x4d11a6&&(_0x127153(_0x1c34d7[_0x4334('0x137')](),_0x4a61eb)||_0x127153(_0x4a61eb,_0x1c34d7[_0x4334('0x137')]()))){for(const _0x3c8264 of _0x4a61eb)_0x1c34d7['addRange'](_0x3c8264);return _0x1c34d7;}const _0x427618=_0x2a71e3(),_0x496cbb=_0x2f1080['id'],_0x1d6199=_0x4334('0x7b')+_0x4d11a6,_0x40236d=this[_0x4334('0x1f')]({'id':_0x427618,'type':_0x1d6199,'data':_0x2bd7a6,'createdAt':new Date(),'authorId':_0x496cbb,'attributes':_0x3ab353});for(const _0x499b53 of _0x4a61eb)this[_0x4334('0xe1')](_0x1d6199,_0x427618,_0x496cbb,_0x499b53,_0x23eeb3[_0x4334('0x5c')]());return _0x40236d;}[_0x4334('0x104')](_0x248770,_0x5552c0=null,_0x38e62b={}){if(_0x248770[_0x4334('0x19')])return null;const _0x31e240=this['editor'][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x128'))['me'],_0x2c45db=new _0x3a048e(_0x248770['start'],_0x248770[_0x4334('0x5')]);for(const {suggestion:_0x582431,meta:_0x2c4720}of this[_0x4334('0xeb')](_0x2c45db,_0x4334('0xea')))if(_0x2c4720[_0x4334('0x45')]&&!_0x2c4720['isNextTo']){if(_0x582431[_0x4334('0x2f')]){const _0x2dac1b=_0x582431[_0x4334('0x137')]()['filter'](_0x4401a6=>_0x4334('0xbf')!=_0x4401a6[_0x4334('0x4d')][_0x4334('0xb1')]);_0x2dac1b[_0x4334('0x84')](_0x5afa4d=>_0x2c45db[_0x4334('0x99')](_0x5afa4d,!0x0))&&_0x582431['discard']();if(_0x2dac1b['some'](_0x443fbe=>_0x443fbe[_0x4334('0x99')](_0x2c45db,!0x0))){const _0x18bcc5=this[_0x4334('0xf9')][_0x4334('0xf8')]('deletion',_0x5552c0,_0x4334('0x75'));return this[_0x4334('0x105')](()=>_0x18bcc5([_0x2c45db],null,_0x38e62b)),null;}}else{const _0xf7a338=_0x2c45db['getIntersection'](_0x582431['getFirstRange']());null!==_0xf7a338&&_0x582431[_0x4334('0x57')]([_0xf7a338],null,_0x38e62b);}}if(_0x2c45db[_0x4334('0x93')](),_0x2c45db['isCollapsed']||_0x4334('0xbf')==_0x2c45db['root'][_0x4334('0xb1')])return null;let _0x10b514=null,_0x26602f=_0x2c45db[_0x4334('0x4f')],_0x38e8ad=_0x2c45db['end'];for(const {suggestion:_0x4b54a2,meta:_0x502836}of this[_0x4334('0xeb')](_0x2c45db,_0x4334('0xa4')))if(_0x502836['isOwn']){if(_0x4b54a2[_0x4334('0x2f')]&&this[_0x4334('0x69')]){let _0x25d272=!0x0;for(const _0x4317ed of _0x4b54a2[_0x4334('0x137')]()){if(_0x4317ed[_0x4334('0x99')](_0x2c45db,!0x0))return _0x4b54a2;_0x2c45db['containsRange'](_0x4317ed)||(_0x25d272=!0x1);}_0x25d272&&_0x4b54a2[_0x4334('0x10a')]();}else{const _0x51cd3f=_0x4b54a2['getFirstRange']();if(_0x51cd3f[_0x4334('0x99')](_0x2c45db,!0x0)){if(!this[_0x4334('0x69')]&&_0x502836[_0x4334('0x9b')])continue;return _0x4b54a2;}_0x26602f=_0x26602f[_0x4334('0x111')](_0x51cd3f[_0x4334('0x4f')])?_0x26602f:_0x51cd3f[_0x4334('0x4f')],_0x38e8ad=_0x38e8ad[_0x4334('0xc')](_0x51cd3f[_0x4334('0x5')])?_0x38e8ad:_0x51cd3f[_0x4334('0x5')],_0x10b514?_0x51cd3f[_0x4334('0x4f')]['isBefore'](_0x10b514['getFirstRange']()[_0x4334('0x4f')])?(_0x10b514[_0x4334('0x109')](),_0x10b514=_0x4b54a2):_0x4b54a2[_0x4334('0x109')]():_0x10b514=_0x4b54a2;}}if(_0x10b514)return this[_0x4334('0x70')](_0x10b514,this['_model'][_0x4334('0xb4')](_0x26602f,_0x38e8ad)),_0x10b514;{const _0x5a2f0f=_0x2a71e3(),_0x11615d=this['_model'][_0x4334('0xb4')](_0x26602f,_0x38e8ad),_0x2a80bb=_0x31e240['id'],_0x2af2c6=_0x5552c0?_0x4334('0x56')+_0x5552c0:_0x4334('0xa4'),_0x1991bb=this['_setSuggestionData']({'id':_0x5a2f0f,'type':_0x2af2c6,'createdAt':new Date(),'authorId':_0x2a80bb,'attributes':_0x38e62b});return this[_0x4334('0xe1')](_0x2af2c6,_0x5a2f0f,_0x2a80bb,_0x11615d),_0x1991bb;}}[_0x4334('0x4')](_0x51e990,_0x5e60e0=_0x4334('0x2b'),_0x228947={}){const _0x59cfa=this[_0x4334('0x67')][_0x4334('0x11f')]['get']('Users')['me'],_0x4d7286=_0x51e990[_0x4334('0x33')](_0x207de1=>new _0x3a048e(_0x207de1['start'],_0x207de1[_0x4334('0x5')])),_0x1b7c32=new Set();for(const _0x335212 of _0x4d7286)for(const {suggestion:_0x3311b3,meta:_0x234679}of this[_0x4334('0xeb')](_0x335212,_0x4334('0xea')))_0x234679[_0x4334('0x45')]&&!_0x234679['isNextTo']&&_0x1b7c32[_0x4334('0xf7')](_0x3311b3);for(const _0x21193e of _0x1b7c32)if(_0x21193e[_0x4334('0x2f')]){const _0x19d204=_0x21193e['getRanges']();(!_0x21193e[_0x4334('0xb0')]||!_0x21193e['attributes'][_0x4334('0xdc')])&&(_0x19d204[_0x4334('0x84')](_0x4de640=>_0x4d7286['some'](_0x2caf6b=>_0x2caf6b[_0x4334('0x99')](_0x4de640,!0x0)))&&_0x21193e[_0x4334('0x10a')]());if(_0x4d7286[_0x4334('0x84')](_0x49d1f7=>_0x19d204[_0x4334('0xc9')](_0xffa3b9=>_0xffa3b9[_0x4334('0x99')](_0x49d1f7,!0x0)))){const _0x4221a2=this[_0x4334('0xf9')][_0x4334('0xf8')]('deletion',_0x5e60e0,'accept');return this[_0x4334('0x105')](()=>_0x4221a2(_0x51e990,null,_0x228947)),null;}}else{const _0x42af43=_0x21193e['getFirstRange']();_0x4d7286[_0x4334('0xc9')](_0x7ed4dd=>_0x7ed4dd[_0x4334('0x99')](_0x42af43,!0x0))&&_0x21193e[_0x4334('0x10a')]();if(_0x4d7286[_0x4334('0x84')](_0x1ed223=>_0x42af43[_0x4334('0x99')](_0x1ed223,!0x0))){const _0x4e63ab=this[_0x4334('0xf9')]['getSuggestionCallback'](_0x4334('0xa4'),_0x5e60e0,'accept');return this[_0x4334('0x105')](()=>_0x4e63ab(_0x4d7286,null,_0x228947)),null;}}const _0x311d36=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0xa4'),_0x5e60e0,_0x4334('0x4c'));let _0x44125e=null;for(const _0x419974 of this['getSuggestions']())if(_0x419974[_0x4334('0x21')]['id']==_0x59cfa['id']&&_0x419974[_0x4334('0x12')]&&'deletion'==_0x419974[_0x4334('0x138')]&&_0x419974[_0x4334('0xf0')]==_0x5e60e0&&(_0x311d36(_0x419974[_0x4334('0x137')](),_0x4d7286)||_0x311d36(_0x4d7286,_0x419974[_0x4334('0x137')]()))){if(_0x44125e){if(_0x419974[_0x4334('0x12b')]&&_0x419974[_0x4334('0x12b')][_0x4334('0xa5')])continue;for(const _0x152b68 of _0x419974['getRanges']())_0x44125e[_0x4334('0xef')](_0x152b68)||_0x44125e[_0x4334('0xae')](_0x152b68);_0x419974['removeMarkers']();}else{_0x44125e=_0x419974;for(const _0x34cfe2 of _0x4d7286)_0x419974[_0x4334('0xef')](_0x34cfe2)||_0x419974[_0x4334('0xae')](_0x34cfe2);}}if(_0x44125e)return _0x44125e;_0x1b7c32[_0x4334('0x142')]();for(const _0x4c356c of _0x4d7286)for(const {suggestion:_0x20be96,meta:_0x46ad11}of this[_0x4334('0xeb')](_0x4c356c,_0x4334('0xa4')))_0x46ad11[_0x4334('0x45')]&&_0x1b7c32['add'](_0x20be96);for(const _0x48bd94 of _0x1b7c32){const _0x460f0f=_0x48bd94[_0x4334('0x137')]();if(!_0x228947||!_0x228947[_0x4334('0xdc')]){if(_0x4d7286[_0x4334('0x84')](_0x2e6758=>_0x460f0f[_0x4334('0xc9')](_0x3a87f1=>_0x3a87f1[_0x4334('0x99')](_0x2e6758,!0x0))))return _0x48bd94;}(!_0x48bd94[_0x4334('0xb0')]||!_0x48bd94[_0x4334('0xb0')][_0x4334('0xdc')])&&(_0x460f0f[_0x4334('0x84')](_0x571c77=>_0x4d7286['some'](_0x2fe1d4=>_0x2fe1d4['containsRange'](_0x571c77,!0x0)))&&_0x48bd94['discard']());}const _0x59f582=_0x2a71e3(),_0x3120ce=_0x59cfa['id'],_0x50705c=_0x4334('0x56')+_0x5e60e0,_0x3e55f8=this[_0x4334('0x1f')]({'id':_0x59f582,'type':_0x50705c,'createdAt':new Date(),'authorId':_0x3120ce,'attributes':_0x228947});for(const _0xe2766 of _0x4d7286)_0xe2766[_0x4334('0x93')](),_0xe2766[_0x4334('0x19')]||_0x4334('0xbf')==_0xe2766['root']['rootName']||this[_0x4334('0xe1')](_0x50705c,_0x59f582,_0x3120ce,_0xe2766,_0x23eeb3[_0x4334('0x5c')]());return _0x3e55f8;}['_setSuggestionRange'](_0x294e98,_0x20bc8b){const _0x201b93=_0x294e98['getFirstMarker']();this[_0x4334('0x91')][_0x4334('0xb2')](_0x2ec405=>{_0x2ec405[_0x4334('0xb5')](_0x201b93,{'range':_0x20bc8b});});}['_addThreadToSuggestion'](_0x540a81){const _0x515efb=_0x540a81['id'],_0x10671f=this['editor'][_0x4334('0x106')][_0x4334('0x40')](_0x4334('0xab'));this['_commentsRepository'][_0x4334('0x90')](_0x515efb)||this[_0x4334('0x76')][_0x4334('0x4a')]({'channelId':_0x10671f,'threadId':_0x515efb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e9e35=this[_0x4334('0x76')][_0x4334('0x62')](_0x515efb);_0x1e9e35[_0x4334('0xa8')](_0x4334('0x78')),_0x1e9e35[_0x4334('0x78')]=!0x1,_0x540a81[_0x4334('0x12b')]=_0x1e9e35;}[_0x4334('0x25')](_0x53ce29,_0x39b146,_0x230236,_0x1de721){if(_0x53ce29[_0x4334('0x138')]!=_0x39b146||_0x53ce29[_0x4334('0xf0')]!=_0x230236||_0x53ce29['creator']['id']!=_0x1de721)throw this['editor'][_0x4334('0xa0')](_0x4334('0x7c')),new _0x2bebbb('track-changes-suggestion-data-mismatch',this);}[_0x4334('0x66')](_0xded1d9,_0x182033){const _0x2f0293=_0xded1d9[_0x4334('0x9')]();if(_0x182033[_0x4334('0xa3')](_0x2f0293))_0xded1d9[_0x4334('0x109')]();else{if(_0x2f0293[_0x4334('0x99')](_0x182033)){const _0x3228cc=this[_0x4334('0x91')][_0x4334('0x12d')](_0x182033[_0x4334('0x4f')]['nodeBefore'],_0x4334('0x5'));this[_0x4334('0x70')](_0xded1d9,this['_model'][_0x4334('0xb4')](_0x2f0293['start'],_0x3228cc));const _0x3981c9=_0x2a71e3(),_0x43e408=_0xded1d9[_0x4334('0xb')]['id'],_0x2ac98d=_0xded1d9[_0x4334('0x138')]+':'+_0xded1d9[_0x4334('0xf0')];this['_setSuggestionData']({'id':_0x3981c9,'type':_0x2ac98d,'createdAt':new Date(),'authorId':_0x43e408,'data':_0xded1d9[_0x4334('0x1e')],'attributes':_0xded1d9['attributes']});const _0x1d3c32=this[_0x4334('0x91')][_0x4334('0x12d')](_0x182033['end'][_0x4334('0x10d')],_0x4334('0x121')),_0x20500d=this[_0x4334('0x91')]['createRange'](_0x1d3c32,_0x2f0293[_0x4334('0x5')]);this['_addSuggestionMarker'](_0x2ac98d,_0x3981c9,_0x43e408,_0x20500d);}else{if(_0x2f0293[_0x4334('0xe9')](_0x182033[_0x4334('0x4f')])){const _0xd20b92=this[_0x4334('0x91')][_0x4334('0x12d')](_0x182033['start'][_0x4334('0xfa')],_0x4334('0x5'));this[_0x4334('0x70')](_0xded1d9,this[_0x4334('0x91')][_0x4334('0xb4')](_0x2f0293['start'],_0xd20b92));}else{const _0x52179c=this[_0x4334('0x91')][_0x4334('0x12d')](_0x182033[_0x4334('0x5')][_0x4334('0x10d')],_0x4334('0x121'));this[_0x4334('0x70')](_0xded1d9,this[_0x4334('0x91')]['createRange'](_0x52179c,_0x2f0293['end']));}}}}[_0x4334('0x6d')](_0x54257f){for(const {suggestion:_0x3c724f,meta:_0x1fc914}of this['_findSuggestions'](_0x54257f,_0x4334('0xea'))){if(!_0x1fc914[_0x4334('0x45')])continue;const _0x30d2b8=_0x3c724f[_0x4334('0x137')]();for(const _0x40e74f of _0x30d2b8)if(!_0x54257f['getDifference'](_0x40e74f)[_0x4334('0xa5')])return!0x0;}return!0x1;}[_0x4334('0x80')](_0x3a0ce2){const _0x391926=this[_0x4334('0x67')][_0x4334('0x11f')]['get'](_0x4334('0x128'))[_0x4334('0x8f')](_0x3a0ce2);if(!_0x391926)throw new _0x2bebbb('track-changes-user-not-found',this);return _0x391926;}[_0x4334('0x9f')](_0x2ae2aa){const _0x1fe8a3=this['editor'][_0x4334('0x11f')][_0x4334('0x40')]('Users'),_0x1a4459=_0x3178f7(_0x4334('0x13f')+_0x2ae2aa),_0x5664d7=_0x1fe8a3['getUser'](_0x1a4459);return _0x5664d7||_0x1fe8a3[_0x4334('0x124')]({'id':_0x1a4459,'name':_0x2ae2aa});}['_createSuggestion'](_0x295218,_0x18477b,_0x42cbb7,_0x2834dc,_0x2a114e){const _0x10de85=this[_0x4334('0x80')](_0x2834dc),_0x6774df=this[_0x4334('0xf9')][_0x4334('0x83')](_0x295218,_0x18477b,_0x42cbb7,_0x10de85,_0x2a114e,_0x17dbc7=>this[_0x4334('0x10f')](_0x42cbb7,{'attributes':_0x17dbc7}));return this[_0x4334('0x65')](_0x6774df,_0x4334('0x75'),()=>{this['_updateSuggestionData'](_0x42cbb7,{'state':_0x4334('0xde')});},{'priority':_0x4334('0x114')}),this[_0x4334('0x65')](_0x6774df,_0x4334('0x10a'),()=>{this[_0x4334('0x10f')](_0x42cbb7,{'state':_0x4334('0x12e')});},{'priority':'high'}),this[_0x4334('0xdd')][_0x4334('0xaf')](_0x42cbb7,_0x6774df),this[_0x4334('0x125')][_0x4334('0xaf')](_0x6774df,'notReady'),_0x6774df;}[_0x4334('0x1')](_0x3bdd8b){const _0x729840=_0x3bdd8b['split'](':');return{'group':_0x729840[0x0],'type':_0x729840[0x1],'subType':_0x729840['length']>=0x5?_0x729840[0x2]:null,'id':_0x729840[_0x4334('0xa5')]<0x5?_0x729840[0x2]:_0x729840[0x3],'authorId':_0x729840['length']<0x5?_0x729840[0x3]:_0x729840[0x4],'markerCount':0x6==_0x729840['length']?_0x729840[0x5]:null};}[_0x4334('0x6c')](_0x3fa9a1,_0x7a2187,_0x45efc4){const _0x58d5f0=_0x3fa9a1['getFirstRange'](),_0x361540=_0x58d5f0[_0x4334('0x4f')],_0x47d125=_0x58d5f0['end'];this[_0x4334('0x70')](_0x3fa9a1,this[_0x4334('0x91')]['createRange'](_0x361540,_0x7a2187));const _0x3c7c56=_0x2a71e3(),_0x5e7c8c=_0x3fa9a1[_0x4334('0xb')]['id'],_0x4c2a29=_0x3fa9a1['type']+(_0x3fa9a1[_0x4334('0xf0')]?':'+_0x3fa9a1[_0x4334('0xf0')]:'');this[_0x4334('0x1f')]({'id':_0x3c7c56,'type':_0x4c2a29,'createdAt':new Date(),'authorId':_0x5e7c8c,'originalSuggestionId':_0x3fa9a1['id'],'attributes':_0x3fa9a1['attributes'],'data':_0x3fa9a1[_0x4334('0x1e')]}),_0x4334('0x2c')==_0x3fa9a1[_0x4334('0x138')]&&(_0x45efc4=this['_model'][_0x4334('0x46')](_0x45efc4[_0x4334('0x10d')])),this['_addSuggestionMarker'](_0x4c2a29,_0x3c7c56,_0x5e7c8c,this[_0x4334('0x91')][_0x4334('0xb4')](_0x45efc4,_0x47d125));}[_0x4334('0xeb')](_0x5a953a,_0x1416ef=null){const _0x11dd1d=[],_0x1a7eef=this['_model'][_0x4334('0xbd')],_0x3257c5=this['editor'][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x128'))['me'];for(const _0x3bf367 of this[_0x4334('0x79')]())if(_0x3bf367[_0x4334('0x12')]&&(!_0x1416ef||_0x3bf367[_0x4334('0x138')]==_0x1416ef))for(const _0x4d1f69 of _0x3bf367[_0x4334('0x137')]()){const _0x4018cc=_0x5a953a[_0x4334('0x4f')]['isEqual'](_0x4d1f69[_0x4334('0x5')])||_0x5a953a[_0x4334('0x5')][_0x4334('0xa3')](_0x4d1f69['start']);if(_0x4018cc||_0x5a953a['getIntersection'](_0x4d1f69)){const _0x1fc392=_0x5a953a[_0x4334('0x99')](_0x4d1f69)&&Bt(_0x1a7eef,_0x4d1f69[_0x4334('0x4f')],_0x5a953a),_0x2c009d=_0x4d1f69['containsRange'](_0x5a953a)&&Bt(_0x1a7eef,_0x5a953a[_0x4334('0x4f')],_0x4d1f69);_0x11dd1d[_0x4334('0x8')]({'suggestion':_0x3bf367,'meta':{'isOwn':_0x3257c5==_0x3bf367[_0x4334('0x21')],'isNextTo':_0x4018cc,'isInsideObject':_0x1fc392,'containsRangeInObject':_0x2c009d}});break;}}return _0x11dd1d;}['_addSuggestionMarker'](_0x3729c6,_0x4ce5ae,_0x12bb09,_0x57b0bf,_0x36d87b){this['_model'][_0x4334('0xb2')](_0x1b5cf2=>{let _0x520dc2='suggestion:'+_0x3729c6+':'+_0x4ce5ae+':'+_0x12bb09;_0x36d87b&&(_0x520dc2=_0x520dc2+':'+_0x36d87b),_0x1b5cf2['addMarker'](_0x520dc2,{'range':_0x57b0bf,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4334('0xa7')](_0x124da1){const _0x27f5de=_0x124da1['previous'],_0x198a08=_0x124da1[_0x4334('0x7e')];_0x124da1[_0x4334('0x3e')]=null,null!=_0x27f5de&&(_0x27f5de[_0x4334('0x7e')]=null),_0x124da1[_0x4334('0x7e')]=null,null!=_0x198a08&&(_0x198a08[_0x4334('0x3e')]=null),'ready'==this[_0x4334('0x125')][_0x4334('0x40')](_0x124da1)&&(this[_0x4334('0x125')][_0x4334('0xaf')](_0x124da1,'removed'),this[_0x4334('0x7')]('suggestionUnloaded',_0x124da1,_0x27f5de,_0x198a08));}[_0x4334('0x1f')](_0xfa6633){const _0x5a5593=_0xfa6633['id'],_0x5d7cc1=this[_0x4334('0x36')](_0xfa6633);if(this[_0x4334('0x131')]&&this[_0x4334('0x131')]['addSuggestion']){const _0x2e239f=this['editor']['plugins']['get'](_0x4334('0x30')),_0x1e6dbd=_0x5d7cc1['hasComments'],_0x3a0f2d=_0x5d7cc1[_0x4334('0xf0')]?_0x5d7cc1[_0x4334('0x138')]+':'+_0x5d7cc1[_0x4334('0xf0')]:_0x5d7cc1[_0x4334('0x138')],_0x44f81e=this[_0x4334('0x67')]['locale'],_0x6fff85=_0x2e239f[_0x4334('0xf7')](_0x25dfb2(_0x44f81e,_0x4334('0x82'))),_0x4265ee={'id':_0x5a5593,'type':_0x3a0f2d,'hasComments':_0x1e6dbd,'data':_0xfa6633['data']||null,'originalSuggestionId':_0xfa6633['originalSuggestionId']||null,'attributes':_0x5d7cc1[_0x4334('0xb0')]};this[_0x4334('0x131')][_0x4334('0xd0')](_0x4265ee)[_0x4334('0x17')](_0x143962=>{_0x5d7cc1['_saved']=!0x0,_0x2e239f[_0x4334('0x85')](_0x6fff85),_0x143962&&_0x143962['createdAt']&&(this[_0x4334('0xdd')][_0x4334('0x40')](_0x5a5593)['createdAt']=_0x143962['createdAt']);})[_0x4334('0xa2')](_0x56ef83=>{throw _0xd617ef('error-saving-suggestion-data-suggestion-discarded'),this[_0x4334('0x67')][_0x4334('0xcc')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x5d7cc1[_0x4334('0x10a')]();}),_0x5d7cc1['stopListening'](),this[_0x4334('0xdd')]['delete'](_0x5d7cc1['id']),this['_suggestionState'][_0x4334('0x51')](_0x5d7cc1),_0x56ef83;});}return _0x5d7cc1;}['_updateSuggestionData'](_0x40f661,_0x5fd0c){const _0x53f874=this['editor'][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x30')),_0x1d1d69=this[_0x4334('0x12f')](_0x40f661);if(this[_0x4334('0x131')]&&this[_0x4334('0x131')][_0x4334('0xe8')]){if(_0x1d1d69[_0x4334('0xbe')]){const _0x376c34=_0x53f874['add'](_0x25dfb2(this['editor']['locale'],_0x4334('0x82')));this[_0x4334('0x131')][_0x4334('0xe8')](_0x40f661,_0x5fd0c)[_0x4334('0x17')](()=>{_0x53f874[_0x4334('0x85')](_0x376c34);});}else _0x1d1d69['on'](_0x4334('0x2'),()=>{this[_0x4334('0x10f')](_0x40f661,_0x5fd0c);});}}[_0x4334('0x7d')](_0x1ea8b7){if(!this[_0x4334('0x131')]||!this[_0x4334('0x131')][_0x4334('0x12f')])throw new _0x2bebbb(_0x4334('0x13d'),this);return this[_0x4334('0x131')][_0x4334('0x12f')](_0x1ea8b7);}[_0x4334('0x6e')](_0x17591f){const {id:_0x1a3020,type:_0x36e983,subType:_0x58400a,authorId:_0x426c8a}=this['_splitMarkerName'](_0x17591f),_0x4e1dba=this[_0x4334('0xdd')][_0x4334('0x40')](_0x1a3020)||this[_0x4334('0x9c')](_0x36e983,_0x58400a,_0x1a3020,_0x426c8a,{});switch(this[_0x4334('0x25')](_0x4e1dba,_0x36e983,_0x58400a,_0x426c8a),this[_0x4334('0x125')]['get'](_0x4e1dba)){case _0x4334('0x89'):this[_0x4334('0x7d')](_0x1a3020)[_0x4334('0x17')](_0x36c791=>{let _0xa11b29=Promise[_0x4334('0xac')]();_0x36c791[_0x4334('0x0')]&&(_0xa11b29=this[_0x4334('0x76')][_0x4334('0x140')]({'channelId':this[_0x4334('0x67')][_0x4334('0x106')]['get'](_0x4334('0xab')),'threadId':_0x1a3020})),_0xa11b29['then'](()=>{this[_0x4334('0x36')](_0x36c791)[_0x4334('0xbe')]=!0x0;});}),this[_0x4334('0x125')]['set'](_0x4e1dba,_0x4334('0x41'));break;case _0x4334('0xad'):this[_0x4334('0x10f')](_0x1a3020,{'state':'open'});case'dataReady':this['_suggestionState'][_0x4334('0xaf')](_0x4e1dba,_0x4334('0x55')),this['fire'](_0x4334('0x3b'),_0x4e1dba);break;case'ready':this[_0x4334('0x7')](_0x4334('0x119'),_0x4e1dba);}return _0x4e1dba[_0x4334('0xb3')](_0x17591f),_0x4e1dba;}['_refreshSuggestionsChain'](_0x212165){const _0x45cb8a=Array[_0x4334('0x13b')](_0x212165)[_0x4334('0x38')](_0x1af4db=>!_0x1af4db[_0x4334('0x2f')]),_0x12c5df=this[_0x4334('0x79')]({'skipNotAttached':!0x0})['filter'](_0x4f5d58=>!_0x4f5d58[_0x4334('0x2f')]),_0x1aa98c=_0x12c5df[_0x4334('0x38')](_0x500de6=>!_0x212165[_0x4334('0x47')](_0x500de6)),_0x31f5f6=new Map(_0x12c5df[_0x4334('0x33')](_0x3730be=>[_0x3730be,this[_0x4334('0xf9')]['getSuggestionCallback'](_0x3730be[_0x4334('0x138')],_0x3730be['subType'],'chain')])),_0x20ac30=new Map(_0x12c5df[_0x4334('0x33')](_0x479a38=>[_0x479a38,_0x479a38[_0x4334('0x9')]()])),_0x3ec574=new Set(),_0x454a1b=new Set();for(let _0x1de614=0x0;_0x1de614<_0x45cb8a[_0x4334('0xa5')];_0x1de614++)_0x4b9f4a(_0x45cb8a[_0x1de614],_0x45cb8a,_0x1de614+0x1);for(let _0x3df244=0x0;_0x3df244<_0x45cb8a['length'];_0x3df244++)_0x4b9f4a(_0x45cb8a[_0x3df244],_0x1aa98c,0x0);for(let _0x1a78fc=0x0;_0x1a78fc<_0x45cb8a[_0x4334('0xa5')];_0x1a78fc++){const _0x546b66=_0x45cb8a[_0x1a78fc];!_0x454a1b[_0x4334('0x47')](_0x546b66)&&_0x546b66[_0x4334('0x3e')]&&(_0x546b66[_0x4334('0x3e')][_0x4334('0x7e')]===_0x546b66&&(_0x546b66[_0x4334('0x3e')][_0x4334('0x7e')]=null),_0x546b66[_0x4334('0x3e')]=null),!_0x3ec574[_0x4334('0x47')](_0x546b66)&&_0x546b66[_0x4334('0x7e')]&&(_0x546b66[_0x4334('0x7e')][_0x4334('0x3e')]===_0x546b66&&(_0x546b66['next'][_0x4334('0x3e')]=null),_0x546b66[_0x4334('0x7e')]=null);}function _0x4b9f4a(_0x4cf886,_0x4f955b,_0x266117){for(let _0x5d7a32=_0x266117;_0x5d7a32<_0x4f955b[_0x4334('0xa5')];_0x5d7a32++){const _0x138f46=_0x2e1b2f(_0x4cf886,_0x4f955b[_0x5d7a32]);_0x138f46&&(_0x138f46[0x0]['next']=_0x138f46[0x1],_0x138f46[0x1][_0x4334('0x3e')]=_0x138f46[0x0],_0x3ec574['add'](_0x138f46[0x0]),_0x454a1b[_0x4334('0xf7')](_0x138f46[0x1]));}}function _0x2e1b2f(_0x4cd5ad,_0x2f2e72){if(_0x4cd5ad['author']['id']!==_0x2f2e72[_0x4334('0x21')]['id'])return null;const _0x29adea=_0x31f5f6[_0x4334('0x40')](_0x4cd5ad)(_0x4cd5ad,_0x2f2e72,_0x20ac30[_0x4334('0x40')](_0x4cd5ad),_0x20ac30[_0x4334('0x40')](_0x2f2e72));if(!_0x29adea)return null;return _0x31f5f6[_0x4334('0x40')](_0x2f2e72)(_0x4cd5ad,_0x2f2e72,_0x20ac30[_0x4334('0x40')](_0x4cd5ad),_0x20ac30['get'](_0x2f2e72))?_0x29adea[0x1]['commentThread']&&_0x29adea[0x1][_0x4334('0x12b')]['length']?null:_0x29adea:null;}}['_joinWithAdjacentSuggestions'](_0x278908){const _0xdfa905=Array['from'](_0x278908),_0x59dffb=this[_0x4334('0x79')]({'skipNotAttached':!0x0}),_0x3b8394=_0x59dffb['filter'](_0x336de9=>!_0x278908['has'](_0x336de9)),_0x1a6bdd=new Map(_0xdfa905[_0x4334('0x33')](_0x49617d=>[_0x49617d,this[_0x4334('0xf9')][_0x4334('0xf8')](_0x49617d[_0x4334('0x138')],_0x49617d[_0x4334('0xf0')],_0x4334('0x4c'))])),_0x322c50=new Map(_0x59dffb[_0x4334('0x33')](_0x5c000c=>[_0x5c000c,_0x5c000c['getRanges']()]));for(let _0x4f2c5d=0x0;_0x4f2c5d<_0xdfa905[_0x4334('0xa5')];_0x4f2c5d++){if(_0x1ff16a(this,_0xdfa905[_0x4f2c5d],_0xdfa905,_0x4f2c5d+0x1))return!0x0;}for(let _0x4b7213=0x0;_0x4b7213<_0xdfa905[_0x4334('0xa5')];_0x4b7213++){if(_0x1ff16a(this,_0xdfa905[_0x4b7213],_0x3b8394,0x0))return!0x0;}return!0x1;function _0x1ff16a(_0x11738e,_0x490f02,_0x289dc3,_0x4a2244){for(let _0x430254=_0x4a2244;_0x430254<_0x289dc3[_0x4334('0xa5')];_0x430254++){const _0x506922=_0x289dc3[_0x430254];if(_0x506922[_0x4334('0x138')]!==_0x490f02['type']||_0x506922[_0x4334('0x21')]['id']!==_0x490f02[_0x4334('0x21')]['id']||_0x506922[_0x4334('0xf0')]!==_0x490f02['subType'])continue;const _0x2b6b2a=_0x1a6bdd['get'](_0x490f02),_0x1dd399=_0x322c50['get'](_0x490f02),_0x49d384=_0x322c50['get'](_0x506922),_0x6634f0=_0x490f02['commentThread']&&_0x490f02[_0x4334('0x12b')][_0x4334('0xa5')],_0x71f563=_0x506922['commentThread']&&_0x506922[_0x4334('0x12b')]['length'];if(!_0x6634f0&&_0x2b6b2a(_0x49d384,_0x1dd399))return _0x11738e[_0x4334('0xfb')](_0x506922,_0x490f02),_0x322c50[_0x4334('0x51')](_0x490f02),!0x0;if(!_0x71f563&&_0x2b6b2a(_0x1dd399,_0x49d384))return _0x11738e[_0x4334('0xfb')](_0x490f02,_0x506922),_0x322c50[_0x4334('0x51')](_0x506922),!0x0;}return!0x1;}}[_0x4334('0xfb')](_0x46d10e,_0x1a4cc2){if(_0x46d10e[_0x4334('0x2f')])for(const _0x4cc7eb of _0x1a4cc2[_0x4334('0x137')]())_0x46d10e[_0x4334('0xae')](_0x4cc7eb);else{const _0x480243=_0x1a4cc2['getFirstRange']()['end'];this[_0x4334('0x70')](_0x46d10e,this[_0x4334('0x91')][_0x4334('0xb4')](_0x46d10e[_0x4334('0x9')]()[_0x4334('0x4f')],_0x480243));}_0x1a4cc2[_0x4334('0x109')]();}}class Dt{constructor(_0x41eff6){this[_0x4334('0x86')]=_0x41eff6,this[_0x4334('0x91')]=_0x41eff6[_0x4334('0xcc')],this[_0x4334('0xf2')]=new Map(),this[_0x4334('0x2d')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4334('0x83')](_0x190f69,_0x3d2cc6,_0x1b9d72,_0x75aaf8,_0x2309ba,_0x4defb8){return new _0x23eeb3(this[_0x4334('0x91')],{'type':_0x190f69,'subType':_0x3d2cc6,'id':_0x1b9d72,'author':_0x75aaf8,'creator':_0x75aaf8,'attributes':_0x2309ba,'onAttributesChange':_0x4defb8,'onAccept':(..._0x951a66)=>this[_0x4334('0xf8')](_0x190f69,_0x3d2cc6,_0x4334('0x75'))(..._0x951a66),'onDiscard':(..._0x4a2434)=>this['getSuggestionCallback'](_0x190f69,_0x3d2cc6,_0x4334('0x10a'))(..._0x4a2434)});}[_0x4334('0x11d')](_0x50acbb,_0x3f5a47,_0x594ed5,_0x13b8ec){const _0x206a23=_0x50acbb+':'+_0x3f5a47+':'+_0x594ed5;this[_0x4334('0xf2')][_0x4334('0xaf')](_0x206a23,_0x13b8ec);}[_0x4334('0xf8')](_0x514de0,_0x5eaa33,_0x2f3aa6){const _0x4893cc=_0x514de0+':'+_0x5eaa33+':'+_0x2f3aa6;return this[_0x4334('0xf2')][_0x4334('0x40')](_0x4893cc)||this['_defaultCallbacks'][_0x4334('0x40')](_0x514de0+':'+_0x2f3aa6);}[_0x4334('0xe0')](){const _0x51b724=()=>{},_0x4039a1=_0x3b9a95=>{_0x3b9a95[_0x4334('0x13')]((_0xadb915,_0x8260f5)=>_0xadb915[_0x4334('0x4f')][_0x4334('0x111')](_0x8260f5[_0x4334('0x4f')])?0x1:-0x1),this[_0x4334('0x91')][_0x4334('0xb2')](_0x5ca35c=>{for(const _0x39e7a7 of _0x3b9a95){let _0x4a2027;_0x4a2027=_0x39e7a7[_0x4334('0x5')][_0x4334('0x103')]&&_0x39e7a7[_0x4334('0x5')][_0x4334('0x10d')]==_0x39e7a7[_0x4334('0x4f')][_0x4334('0x7a')]?_0x5ca35c[_0x4334('0x22')](_0x39e7a7[_0x4334('0x4f')][_0x4334('0x7a')],'on'):_0x5ca35c[_0x4334('0x22')](_0x39e7a7),this[_0x4334('0x91')][_0x4334('0x123')](_0x4a2027,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1947a7=(_0x25f6f0,_0x1bb855)=>{this['_model'][_0x4334('0xb2')](_0xa44c1d=>{const {commandName:_0xdd71fa,commandParams:_0x255d50=[]}=_0x1bb855,_0x217e02=_0x25f6f0[_0x4334('0x33')](_0x7bc81e=>(_t(_0x7bc81e)&&(_0x7bc81e=this[_0x4334('0x91')]['createRange'](_0x7bc81e['end'])),_0x7bc81e))['filter'](_0x5eea58=>'$graveyard'!==_0x5eea58['root'][_0x4334('0xb1')]);if(_0x217e02[_0x4334('0xa5')]<0x1)return;const _0x511189=Array['from'](this['_model'][_0x4334('0x37')][_0x4334('0xc2')][_0x4334('0x137')]())[_0x4334('0x33')](_0xcd062e=>_0x3a048e[_0x4334('0x6b')](_0xcd062e));_0xa44c1d[_0x4334('0x8c')](_0x217e02);for(const _0x2f15d8 of this[_0x4334('0x86')][_0x4334('0x122')][_0x4334('0x122')]())_0x2f15d8[_0x4334('0x18')]();_0x255d50['push']({'forceDefaultExecution':!0x0}),this[_0x4334('0x86')][_0x4334('0x72')](_0xdd71fa,..._0x255d50);const _0x52d254=_0x511189[_0x4334('0x38')](_0x3afb70=>'$graveyard'!=_0x3afb70[_0x4334('0x4d')]['rootName']);_0x52d254['length']>0x0&&_0xa44c1d[_0x4334('0x8c')](_0x52d254);for(const _0x1d94f3 of _0x511189)_0x1d94f3[_0x4334('0x93')]();});},_0x369601=(_0x16d920,_0x4a8426)=>0x1==_0x16d920[_0x4334('0xa5')]&&0x1==_0x4a8426[_0x4334('0xa5')]&&_0x16d920[0x0][_0x4334('0x5')]['isEqual'](_0x4a8426[0x0][_0x4334('0x4f')]),_0x3de8e7=(_0x587efc,_0x3607f7,_0x25ecac,_0x7003e2)=>xt(_0x587efc,_0x3607f7,_0x25ecac,_0x7003e2,this[_0x4334('0x91')])?[_0x587efc,_0x3607f7]:xt(_0x3607f7,_0x587efc,_0x7003e2,_0x25ecac,this['_model'])?[_0x3607f7,_0x587efc]:null;this[_0x4334('0x2d')]['set']('insertion:accept',_0x51b724),this[_0x4334('0x2d')][_0x4334('0xaf')]('insertion:discard',_0x4039a1),this[_0x4334('0x2d')][_0x4334('0xaf')](_0x4334('0x15'),_0x369601),this['_defaultCallbacks']['set'](_0x4334('0x101'),_0x3de8e7),this[_0x4334('0x2d')][_0x4334('0xaf')]('deletion:accept',_0x4039a1),this['_defaultCallbacks'][_0x4334('0xaf')]('deletion:discard',_0x51b724),this[_0x4334('0x2d')]['set']('deletion:join',_0x369601),this[_0x4334('0x2d')][_0x4334('0xaf')](_0x4334('0x1c'),_0x3de8e7),this['_defaultCallbacks']['set'](_0x4334('0x16'),_0x1947a7),this['_defaultCallbacks']['set'](_0x4334('0x44'),_0x51b724),this[_0x4334('0x2d')]['set'](_0x4334('0x29'),_0x369601),this[_0x4334('0x2d')][_0x4334('0xaf')](_0x4334('0x5e'),_0x51b724),this[_0x4334('0x2d')][_0x4334('0xaf')](_0x4334('0x98'),_0x1947a7),this['_defaultCallbacks'][_0x4334('0xaf')](_0x4334('0x68'),_0x51b724),this[_0x4334('0x2d')]['set'](_0x4334('0x34'),_0x369601),this[_0x4334('0x2d')][_0x4334('0xaf')](_0x4334('0xa1'),_0x51b724);}}function Bt(_0x490ec2,_0x3030d3,_0x29b83f){for(const _0x22e37b of _0x3030d3['parent'][_0x4334('0xca')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x22e37b['root']==_0x22e37b)return!0x1;if(!_0x29b83f[_0x4334('0x64')](_0x22e37b))return!0x1;if(_0x490ec2[_0x4334('0x71')](_0x22e37b)||_0x490ec2[_0x4334('0xbc')](_0x22e37b))return!0x0;}return!0x1;}function _t(_0x35f46d){return _0x35f46d[_0x4334('0x5')][_0x4334('0x10d')]==_0x35f46d[_0x4334('0x4f')][_0x4334('0x7a')]&&_0x35f46d['end'][_0x4334('0x120')];}function Mt(_0x4aab97,_0x269b22,_0x54b3dc,_0x313140){const _0x36d86b=_0x43f17e=>!_0x43f17e[_0x4334('0x63')]['is'](_0x4334('0xe7'))&&!_0x313140[_0x4334('0x71')](_0x43f17e[_0x4334('0x63')]),_0xcaac14=_0x4aab97[_0x4334('0x4f')][_0x4334('0xc4')](_0x36d86b),_0x2ec63b=_0x4aab97[_0x4334('0x5')]['getLastMatchingPosition'](_0x36d86b,{'direction':_0x4334('0x115')});return(!_0x4aab97['start'][_0x4334('0xa3')](_0xcaac14)||!_0x4aab97[_0x4334('0x5')]['isEqual'](_0x2ec63b))&&(_0xcaac14[_0x4334('0x111')](_0x2ec63b)?_0x54b3dc[_0x4334('0xb5')](_0x269b22,{'range':_0x54b3dc[_0x4334('0xb4')](_0xcaac14,_0x2ec63b)}):_0x54b3dc[_0x4334('0xe5')](_0x269b22),!0x0);}function $t(_0x1ff5c9){return _0x3178f7(_0x1ff5c9);}function Nt(_0xc3934c){const _0x4b9821=_0xc3934c[_0x4334('0x4f')][_0x4334('0x7a')];return _0x4b9821&&_0x4b9821['is'](_0x4334('0x110'));}function Rt(_0x231e42,_0x2c9777){const _0xb0ef68=_0x2c9777['schema'][_0x4334('0x71')](_0x231e42)||_0x2c9777['schema'][_0x4334('0xb8')](_0x231e42);return _0x2c9777['createRange'](_0x2c9777[_0x4334('0x12d')](_0x231e42,_0x4334('0x8a')),_0xb0ef68?_0x2c9777[_0x4334('0x9e')](_0x231e42):_0x2c9777['createPositionAt'](_0x231e42,_0x4334('0x5')));}function xt(_0x1538c3,_0x54b021,_0x246889,_0x3e46bb,_0x7049a9){if(_0x246889['end'][_0x4334('0xa3')](_0x3e46bb[_0x4334('0x4f')]))return!0x0;if(_0x1538c3[_0x4334('0x138')]!=_0x54b021[_0x4334('0x138')])return!0x1;if(!_0x246889[_0x4334('0x5')][_0x4334('0x5d')](_0x3e46bb[_0x4334('0x4f')]))return!0x1;const _0xeb20fc=_0x7049a9['createRange'](_0x246889[_0x4334('0x5')],_0x3e46bb[_0x4334('0x4f')])[_0x4334('0x61')]();for(const _0x4f28f1 of _0xeb20fc)if([_0x4334('0x32'),'elementEnd'][_0x4334('0x2e')](_0x4f28f1[_0x4334('0x138')])&&_0x7049a9['schema'][_0x4334('0xbc')](_0x4f28f1['item']))return!0x1;return!0x0;}
@@ -1,24 +1,24 @@
1
1
  /**
2
2
  * @module track-changes/trackchangesui
3
3
  */
4
- import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
5
+ import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
6
+ import TrackChangesEditing from './trackchangesediting';
5
7
  /**
6
8
  * Provides UI for track changes plugin.
7
9
  *
8
10
  * This plugin displays {@link module:track-changes/suggestion~Suggestion suggestions} as a
9
11
  * {@link module:comments/annotations/annotations~Annotations}.
10
- *
11
- * @extends module:core/plugin~Plugin
12
12
  */
13
13
  export default class TrackChangesUI extends Plugin {
14
14
  /**
15
15
  * @inheritDoc
16
16
  */
17
- static get requires(): PluginDependencies;
17
+ static get requires(): readonly [typeof TrackChangesEditing, typeof Users, "CommentsRepository", "Annotations", "EditorAnnotations"];
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
21
- static get pluginName(): 'TrackChangesUI';
21
+ static get pluginName(): "TrackChangesUI";
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bc5=['comments.editorConfig','remove','previous','editing','head','suggestionChanged','comments.maxThreadTotalWeight','push','_destroyController','discardButton','_initializeController','keys','change:activeAnnotations','refreshSelectedViews','hasSuggestion','get','model','arrowView','CommentsUI','filter','getDescriptions','_disableComments','clear','actionView','getMarkers','comments.maxCommentCharsWhenCollapsed','createCommentThreadController','stopListening','isDirty','Discard\x20all\x20suggestions','mainView','button','buttonView','plugins','TrackChangesEditing','_createUIButton','source','_suggestionToController','requires','change:previous','execute','suggestion-','toMany','getJoined','acceptSelectedSuggestions','_refreshActiveMarkers','values','CommentView','commandName','discardAllSuggestions','view','EditorAnnotations','commands','listenTo','value','trackChanges','CommentsRepository','_handleSuggestionControllerDelayed','reduce','comments','isOn','destroy','descriptionParts','isMultiRange','Accept\x20all\x20selected\x20suggestions','isInContent','comments.maxCommentsWhenCollapsed','addSourceCollector','commentThread','bind','Annotations','TrackChangesUI','editor','createAnnotationView','Discard\x20all\x20selected\x20suggestions','innerView','createAnnotation','separator','add','_handleControllerBuffer','size','getRanges','delete','length','_viewToController','trackChanges.disableComments','trackChanges.SuggestionThreadView','type','map','focus','activeMarkers','locale','addComment','_descriptionFactory','_annotationViews','has','suggestionLoaded','lowest','Accept\x20all\x20suggestions','set','some','getSuggestion','config','isEnabled','getAllAdjacentSuggestions','_updateController','from','suggestionUnloaded'];(function(_0x437999,_0x5bc5d7){const _0x14ef3d=function(_0x131e54){while(--_0x131e54){_0x437999['push'](_0x437999['shift']());}};_0x14ef3d(++_0x5bc5d7);}(_0x5bc5,0x17f));const _0x14ef=function(_0x437999,_0x5bc5d7){_0x437999=_0x437999-0x0;let _0x14ef3d=_0x5bc5[_0x437999];return _0x14ef3d;};import{Plugin as _0x463b65}from'ckeditor5/src/core';import{Collection as _0x46b417}from'ckeditor5/src/utils';import{Model as _0x53783c,SplitButtonView as _0x3c3c15,createDropdown as _0x1db81f,addListToDropdown as _0x546c65}from'ckeditor5/src/ui';import{Users as _0x54908e,getDateTimeFormatter as _0xbf3300,getAllMarkersDomElementsSorted as _0x48a108}from'ckeditor5-collaboration/src/collaboration-core';import _0x530faf from'./trackchangesediting';import _0xd7b3bc from'./ui/suggestioncontroller';import _0x13e39a from'./ui/view/suggestionthreadview';import{getTranslation as _0x4e8de6}from'./utils/common-translations';import _0xc94d3b from'../theme/icons/track-changes.svg';export default class d extends _0x463b65{static get[_0x14ef('0x57')](){return[_0x530faf,_0x54908e,'CommentsRepository',_0x14ef('0xb'),'EditorAnnotations'];}static get['pluginName'](){return _0x14ef('0xc');}constructor(_0xe4d773){super(_0xe4d773),this['_suggestionToController']=new Map(),this[_0x14ef('0x19')]=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f5e4b=this['editor'][_0x14ef('0x2b')];_0x1f5e4b['define'](_0x14ef('0x1b'),_0x13e39a),_0x1f5e4b['define'](_0x14ef('0x1a'),!0x1),this[_0x14ef('0x46')]=_0x1f5e4b[_0x14ef('0x40')](_0x14ef('0x1a'));}[_0x14ef('0x6a')](_0x1d103e,_0x3cdddc){0x0===this['_handleControllerBuffer'][_0x14ef('0x15')]&&setTimeout(()=>{for(const [_0x3ec971,_0x2f97ed]of this[_0x14ef('0x14')]){const _0x2bc5ea=this[_0x14ef('0x56')][_0x14ef('0x24')](_0x3ec971);_0x2bc5ea||_0x2f97ed?_0x2bc5ea&&_0x2f97ed&&this[_0x14ef('0x39')](_0x3ec971):this[_0x14ef('0x3b')](_0x3ec971);}this[_0x14ef('0xd')][_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x64'))[_0x14ef('0x3e')](),this['_refreshActiveMarkers'](),this[_0x14ef('0x14')][_0x14ef('0x47')]();},0xa),this[_0x14ef('0x14')][_0x14ef('0x28')](_0x1d103e,_0x3cdddc);}['init'](){const _0x15f2ba=this[_0x14ef('0xd')],_0x4a29d2=_0x15f2ba[_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x53')),_0x5418ee=_0x15f2ba['plugins'][_0x14ef('0x40')](_0x14ef('0xb')),_0x267c4a=_0x15f2ba[_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x64')),_0x348abd=_0x15f2ba[_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x69'));_0x15f2ba['ui']['componentFactory'][_0x14ef('0x13')](_0x14ef('0x68'),_0x3a42a0=>this[_0x14ef('0x54')](_0x3a42a0)),_0x267c4a[_0x14ef('0x8')](()=>{const _0x5106af=[];for(const [_0x530e4e,_0x15d17f]of Array[_0x14ef('0x2f')](this[_0x14ef('0x56')])){const _0x60ec90=_0x530e4e[_0x14ef('0x2d')](),_0xbfaf20=[];for(const _0x46f2db of _0x60ec90){if(!_0x46f2db[_0x14ef('0x6')])continue;if(_0x46f2db[_0x14ef('0x4')]){_0xbfaf20[_0x14ef('0x38')](..._0x46f2db[_0x14ef('0x16')]());continue;}const _0x15f8a2=_0x46f2db['getFirstRange']();if(_0xbfaf20[_0x14ef('0x18')]>0x0){const _0x50ea9b=_0xbfaf20[0x0][_0x14ef('0x5c')](_0x15f8a2);if(_0x50ea9b){_0xbfaf20[0x0]=_0x50ea9b;continue;}}_0xbfaf20['push'](_0x15f8a2);}_0x5106af[_0x14ef('0x38')]([_0x15d17f['view'],_0xbfaf20]);}return _0x5106af;}),this[_0x14ef('0x66')](_0x4a29d2,_0x14ef('0x25'),(_0x2a4a8,_0x370cf7)=>{this['listenTo'](_0x370cf7,_0x14ef('0x58'),(_0x4c4a61,_0x298085,_0x47ee1e,_0x4b0b96)=>{_0x370cf7[_0x14ef('0x6')]&&(null==_0x47ee1e?(this['_updateController'](_0x4b0b96[_0x14ef('0x35')]),this[_0x14ef('0x6a')](_0x370cf7,!0x1)):(this[_0x14ef('0x2e')](_0x47ee1e['head']),this[_0x14ef('0x6a')](_0x370cf7,!0x0)));}),null===_0x370cf7[_0x14ef('0x33')]?this[_0x14ef('0x6a')](_0x370cf7,!0x1):this[_0x14ef('0x2e')](_0x370cf7[_0x14ef('0x35')]);}),this['listenTo'](_0x4a29d2,_0x14ef('0x30'),(_0x56a3d2,_0x17c4cc,_0x4c2687)=>{this[_0x14ef('0x4c')](_0x17c4cc,_0x14ef('0x58')),this[_0x14ef('0x14')][_0x14ef('0x17')](_0x17c4cc);const _0x53fbbc=_0x4c2687?_0x4c2687[_0x14ef('0x35')]:_0x17c4cc,_0x56e54f=this['_suggestionToController'][_0x14ef('0x40')](_0x53fbbc);null!==_0x4c2687&&this[_0x14ef('0x2e')](_0x53fbbc),null===_0x4c2687&&_0x56e54f&&this[_0x14ef('0x39')](_0x17c4cc);}),this[_0x14ef('0x66')](_0x4a29d2,_0x14ef('0x36'),(_0x5d4576,_0x114004)=>{this['_updateController'](_0x114004);}),this[_0x14ef('0x66')](_0x5418ee,_0x14ef('0x3d'),()=>{this[_0x14ef('0x5e')]();}),this[_0x14ef('0x66')](_0x348abd,_0x14ef('0x21'),(_0xcac8da,{threadId:_0x4c78d7,isFromAdapter:_0x1f2418})=>{if(_0x1f2418||!_0x4a29d2[_0x14ef('0x3f')](_0x4c78d7))return;const _0x414159=_0x4a29d2[_0x14ef('0x2a')](_0x4c78d7);this[_0x14ef('0x56')]['get'](_0x414159)[_0x14ef('0x63')][_0x14ef('0x1e')]();},{'priority':_0x14ef('0x26')});}[_0x14ef('0x5e')](){const _0x2a6a6a=this['editor']['plugins'][_0x14ef('0x40')]('Annotations'),_0x5e86c6=this[_0x14ef('0xd')][_0x14ef('0x52')]['get']('TrackChangesEditing'),_0x1c85cf=Array[_0x14ef('0x2f')](_0x2a6a6a['activeAnnotations'],_0x2a6c13=>_0x2a6c13[_0x14ef('0x10')])['filter'](_0x3144b7=>this[_0x14ef('0x19')][_0x14ef('0x24')](_0x3144b7)),_0x3cf5e9=[];for(const _0xf79774 of _0x1c85cf){const _0xb956ce=this[_0x14ef('0x19')][_0x14ef('0x40')](_0xf79774)[_0x14ef('0x41')]['getAllAdjacentSuggestions']();_0x3cf5e9['push'](..._0xb956ce[_0x14ef('0x6b')]((_0x4e1ac6,_0x3a4352)=>[..._0x4e1ac6,..._0x3a4352['getMarkerNames']()],[]));}_0x5e86c6[_0x14ef('0x1f')]=_0x3cf5e9;}[_0x14ef('0x54')](_0x6d12e8){const _0x248f16=_0x1db81f(_0x6d12e8,_0x3c3c15),_0x4a13b1=this[_0x14ef('0xd')]['commands'][_0x14ef('0x40')](_0x14ef('0x68')),_0x534184=_0x4e8de6(_0x6d12e8,'Track\x20changes');_0x248f16['buttonView']['set']({'tooltip':_0x534184,'label':_0x534184,'icon':_0xc94d3b}),_0x248f16[_0x14ef('0x51')]['bind']('isOn')['to'](_0x4a13b1,'value'),_0x248f16[_0x14ef('0x51')]['on']('execute',()=>{_0x4a13b1['execute'](),this[_0x14ef('0xd')][_0x14ef('0x34')][_0x14ef('0x63')][_0x14ef('0x1e')]();});const _0x43ca94=new _0x46b417(),_0x40c26c=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x534184,'commandName':_0x14ef('0x68')}},{'type':_0x14ef('0x12')},{'type':'button','model':{'withText':!0x0,'label':_0x4e8de6(_0x6d12e8,_0x14ef('0x27')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x4e8de6(_0x6d12e8,_0x14ef('0x5')),'commandName':_0x14ef('0x5d')}},{'type':_0x14ef('0x50'),'model':{'withText':!0x0,'label':_0x4e8de6(_0x6d12e8,_0x14ef('0x4e')),'commandName':_0x14ef('0x62')}},{'type':'button','model':{'withText':!0x0,'label':_0x4e8de6(_0x6d12e8,_0x14ef('0xf')),'commandName':'discardSelectedSuggestions'}}];for(const _0x9b500b of _0x40c26c){let _0x28dcfa={'type':_0x14ef('0x12')};if(_0x9b500b[_0x14ef('0x41')]){const _0x5c43fc=new _0x53783c(_0x9b500b[_0x14ef('0x41')]),_0x7b74b2=this['editor'][_0x14ef('0x65')][_0x14ef('0x40')](_0x5c43fc[_0x14ef('0x61')]);_0x5c43fc['bind'](_0x14ef('0x1'),_0x14ef('0x2c'))['to'](_0x7b74b2,_0x14ef('0x67'),'isEnabled'),_0x28dcfa={'type':_0x9b500b['type'],'model':_0x5c43fc};}_0x43ca94[_0x14ef('0x13')](_0x28dcfa);}_0x546c65(_0x248f16,_0x43ca94);const _0x5b8123=_0x40c26c[_0x14ef('0x44')](_0x2949ea=>null!=_0x2949ea[_0x14ef('0x41')])[_0x14ef('0x1d')](_0x4078ca=>this[_0x14ef('0xd')][_0x14ef('0x65')][_0x14ef('0x40')](_0x4078ca[_0x14ef('0x41')][_0x14ef('0x61')])),_0xe7fe60=_0x248f16[_0x14ef('0x51')];return _0xe7fe60[_0x14ef('0x48')]['unbind']('isEnabled'),_0xe7fe60['arrowView']['unbind'](_0x14ef('0x2c')),_0xe7fe60[_0x14ef('0x48')][_0x14ef('0xa')](_0x14ef('0x2c'))['to'](_0x4a13b1,'isEnabled'),_0xe7fe60[_0x14ef('0x42')]['bind'](_0x14ef('0x2c'))[_0x14ef('0x5b')](_0x5b8123,_0x14ef('0x2c'),(..._0x28793e)=>_0x28793e[_0x14ef('0x29')](_0x2230eb=>_0x2230eb)),_0x248f16['on'](_0x14ef('0x59'),_0x65ebe4=>{this['editor']['execute'](_0x65ebe4[_0x14ef('0x55')][_0x14ef('0x61')]),this[_0x14ef('0xd')][_0x14ef('0x34')]['view'][_0x14ef('0x1e')]();}),_0x248f16;}[_0x14ef('0x3b')](_0xd74f02){const _0x2b0e24=this['editor'],_0x4603d3=_0x2b0e24['config'],_0x3fcc07=_0x2b0e24[_0x14ef('0x52')]['get'](_0x14ef('0xb')),_0x4dcadd=_0x2b0e24[_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x69')),_0x58747d=_0x2b0e24[_0x14ef('0x52')][_0x14ef('0x40')]('EditorAnnotations'),_0x152775=_0x2b0e24['plugins']['get'](_0x54908e)['me'],_0x10e31b=_0x4603d3[_0x14ef('0x40')]('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1f8e32,CommentThreadInputView:_0x10c80b}=_0x2b0e24['plugins'][_0x14ef('0x40')](_0x14ef('0x43'));let _0x1add89,_0x46775c;this[_0x14ef('0x23')][_0x14ef('0x24')](_0xd74f02['id'])?(_0x46775c=this[_0x14ef('0x23')][_0x14ef('0x40')](_0xd74f02['id']),_0x1add89=_0x46775c[_0x14ef('0x4f')]):(_0x1add89=new _0x10e31b(_0x2b0e24[_0x14ef('0x20')],_0xd74f02,_0x152775,{'disableComments':this[_0x14ef('0x46')],'editorConfig':_0x4603d3[_0x14ef('0x40')](_0x14ef('0x31')),'maxCommentsWhenCollapsed':_0x4603d3[_0x14ef('0x40')](_0x14ef('0x7')),'maxThreadTotalWeight':_0x4603d3[_0x14ef('0x40')](_0x14ef('0x37')),'maxCommentCharsWhenCollapsed':_0x4603d3[_0x14ef('0x40')](_0x14ef('0x4a')),'formatDateTime':_0xbf3300(_0x4603d3[_0x14ef('0x40')](_0x14ef('0x20'))),'CommentView':_0x4603d3[_0x14ef('0x40')](_0x14ef('0x0'))[_0x14ef('0x60')],'CommentsListView':_0x1f8e32,'CommentThreadInputView':_0x10c80b}),_0x1add89['acceptButton']['on'](_0x14ef('0x59'),()=>{_0x2b0e24['editing'][_0x14ef('0x63')][_0x14ef('0x1e')]();}),_0x1add89[_0x14ef('0x3a')]['on']('execute',()=>{_0x2b0e24['editing'][_0x14ef('0x63')]['focus']();}),_0x46775c=_0x3fcc07[_0x14ef('0xe')](this[_0x14ef('0xd')][_0x14ef('0x20')],_0x1add89),_0x46775c[_0x14ef('0xa')](_0x14ef('0x4d'))['to'](_0x1add89,_0x14ef('0x4d')),_0x46775c[_0x14ef('0xa')]('length')['to'](_0x1add89),_0x46775c[_0x14ef('0xa')](_0x14ef('0x1c'))['to'](_0x1add89,'type',_0x3b37ae=>'suggestion-'+_0x3b37ae),this[_0x14ef('0x23')][_0x14ef('0x28')](_0xd74f02['id'],_0x46775c));const _0x41fe1e=_0x4dcadd[_0x14ef('0x4b')](_0xd74f02[_0x14ef('0x9')],_0x1add89),_0x47d72f=new _0xd7b3bc(_0x2b0e24,_0xd74f02,_0x1add89,_0x41fe1e),_0x31eb4f=_0xd74f02[_0x14ef('0x2d')]()['filter'](_0x24a00f=>_0x24a00f[_0x14ef('0x6')]);_0x1add89[_0x14ef('0x3')]=_0x2b0e24[_0x14ef('0x52')]['get'](_0x14ef('0x53'))[_0x14ef('0x22')]['getDescriptions'](_0x31eb4f),this['_suggestionToController'][_0x14ef('0x28')](_0xd74f02,_0x47d72f),this['_viewToController'][_0x14ef('0x28')](_0x1add89,_0x47d72f);const _0x1f0037=_0x3fcc07[_0x14ef('0x11')]({'view':_0x46775c,'target':()=>{const _0x9d8ebf=[],_0x2d6a5f=_0xd74f02[_0x14ef('0x2d')]()['filter'](_0x54d6f1=>_0x54d6f1[_0x14ef('0x6')]);for(const _0x5d1df4 of _0x2d6a5f)_0x9d8ebf[_0x14ef('0x38')](..._0x5d1df4[_0x14ef('0x49')]());return _0x48a108(_0x2b0e24['editing'],_0x9d8ebf);},'type':()=>_0x14ef('0x5a')+_0x47d72f[_0x14ef('0x63')]['type']});_0x3fcc07['add'](_0x1f0037),_0x58747d['registerAnnotation'](_0x1f0037);}[_0x14ef('0x39')](_0x3caffc){const _0x3d5b1c=this['editor']['plugins'][_0x14ef('0x40')](_0x14ef('0xb')),_0x2aebb2=this[_0x14ef('0x56')][_0x14ef('0x40')](_0x3caffc),_0x83c4f6=_0x2aebb2[_0x14ef('0x63')],_0x30e6ba=_0x3d5b1c['getByInnerView'](_0x83c4f6);_0x30e6ba&&_0x3d5b1c[_0x14ef('0x32')](_0x30e6ba),this['_suggestionToController'][_0x14ef('0x17')](_0x3caffc),this[_0x14ef('0x19')][_0x14ef('0x17')](_0x83c4f6),_0x2aebb2[_0x14ef('0x2')]();}[_0x14ef('0x2e')](_0x38729e){if(!_0x38729e['isInContent']||!this[_0x14ef('0x56')][_0x14ef('0x24')](_0x38729e))return;const _0x3fdf33=this[_0x14ef('0xd')][_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x53')),_0x4aa070=this[_0x14ef('0x56')][_0x14ef('0x40')](_0x38729e),_0xc2e09d=_0x38729e['getAllAdjacentSuggestions']();_0x4aa070[_0x14ef('0x63')][_0x14ef('0x3')]=_0x3fdf33[_0x14ef('0x22')][_0x14ef('0x45')](_0xc2e09d);}[_0x14ef('0x2')](){for(const _0x3aa0c7 of this[_0x14ef('0x56')][_0x14ef('0x3c')]())this[_0x14ef('0x39')](_0x3aa0c7);for(const _0x4b06da of this['_annotationViews'][_0x14ef('0x5f')]())_0x4b06da['mainView']['destroy']();super['destroy']();}}
23
+ const _0x3082=['set','comments','comments.maxCommentsWhenCollapsed','suggestionChanged','getJoined','plugins','some','suggestion-','length','execute','SuggestionThreadView','_updateController','buttonView','isInContent','add','getMarkerNames','acceptAllSuggestions','Accept\x20all\x20selected\x20suggestions','activeMarkers','Discard\x20all\x20selected\x20suggestions','focus','createAnnotationView','comments.maxThreadTotalWeight','bind','config','delete','activeAnnotations','trackChanges.SuggestionThreadView','TrackChangesEditing','value','editing','Annotations','values','unbind','Track\x20changes','getSuggestion','Accept\x20all\x20suggestions','_annotationViews','isOn','comments.maxCommentCharsWhenCollapsed','_disableComments','_initializeController','pluginName','reduce','actionView','commands','getRanges','createCommentThreadController','acceptButton','CommentsRepository','comments.editorConfig','descriptionParts','registerAnnotation','get','separator','push','init','previous','lowest','hasSuggestion','createAnnotation','commentThread','suggestionLoaded','stopListening','refreshSelectedViews','commandName','map','has','listenTo','_suggestionToController','model','view','trackChanges.disableComments','_descriptionFactory','_handleSuggestionControllerDelayed','_createUIButton','size','editor','mainView','isEnabled','addComment','getDescriptions','destroy','_viewToController','locale','change:activeAnnotations','head','EditorAnnotations','innerView','getFirstRange','addSourceCollector','_destroyController','type','from','_refreshActiveMarkers','acceptSelectedSuggestions','getByInnerView','source','getAllAdjacentSuggestions','define','componentFactory','discardSelectedSuggestions','requires','trackChanges','_handleControllerBuffer','button'];(function(_0x4394d9,_0x3082f2){const _0xcf6415=function(_0x4f65c5){while(--_0x4f65c5){_0x4394d9['push'](_0x4394d9['shift']());}};_0xcf6415(++_0x3082f2);}(_0x3082,0x180));const _0xcf64=function(_0x4394d9,_0x3082f2){_0x4394d9=_0x4394d9-0x0;let _0xcf6415=_0x3082[_0x4394d9];return _0xcf6415;};import{Plugin as _0x35268d}from'ckeditor5/src/core';import{Collection as _0x26b6df}from'ckeditor5/src/utils';import{Model as _0x48fe95,SplitButtonView as _0x54a039,createDropdown as _0x2abc4a,addListToDropdown as _0x4080d2}from'ckeditor5/src/ui';import{Users as _0x723bc9,getDateTimeFormatter as _0x43d90e,getAllMarkersDomElementsSorted as _0x353f2c}from'ckeditor5-collaboration/src/collaboration-core';import _0x592358 from'./trackchangesediting';import _0x2d7a56 from'./ui/suggestioncontroller';import _0x577750 from'./ui/view/suggestionthreadview';import{getTranslation as _0xf9ab62}from'./utils/common-translations';import _0x2e5fe3 from'../theme/icons/track-changes.svg';export default class d extends _0x35268d{static get[_0xcf64('0x24')](){return[_0x592358,_0x723bc9,'CommentsRepository',_0xcf64('0x47'),_0xcf64('0x15')];}static get[_0xcf64('0x52')](){return'TrackChangesUI';}constructor(_0x75ae0e){super(_0x75ae0e),this[_0xcf64('0x3')]=new Map(),this[_0xcf64('0x11')]=new Map(),this[_0xcf64('0x4d')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x31c623=this[_0xcf64('0xb')][_0xcf64('0x40')];_0x31c623[_0xcf64('0x21')](_0xcf64('0x43'),_0x577750),_0x31c623[_0xcf64('0x21')](_0xcf64('0x6'),!0x1),this[_0xcf64('0x50')]=_0x31c623['get'](_0xcf64('0x6'));}[_0xcf64('0x8')](_0x3731a1,_0x2b8938){0x0===this[_0xcf64('0x26')][_0xcf64('0xa')]&&setTimeout(()=>{for(const [_0x5db034,_0x235ba2]of this[_0xcf64('0x26')]){const _0x38edc1=this[_0xcf64('0x3')][_0xcf64('0x1')](_0x5db034);_0x38edc1||_0x235ba2?_0x38edc1&&_0x235ba2&&this[_0xcf64('0x19')](_0x5db034):this['_initializeController'](_0x5db034);}this['editor']['plugins'][_0xcf64('0x5d')](_0xcf64('0x15'))[_0xcf64('0x68')](),this['_refreshActiveMarkers'](),this[_0xcf64('0x26')]['clear']();},0xa),this[_0xcf64('0x26')][_0xcf64('0x28')](_0x3731a1,_0x2b8938);}[_0xcf64('0x60')](){const _0x50d708=this['editor'],_0x53ea5f=_0x50d708[_0xcf64('0x2d')]['get']('TrackChangesEditing'),_0x3015e3=_0x50d708[_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x47')),_0x28b2aa=_0x50d708[_0xcf64('0x2d')][_0xcf64('0x5d')]('EditorAnnotations'),_0x47371a=_0x50d708[_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x59'));_0x50d708['ui'][_0xcf64('0x22')][_0xcf64('0x36')](_0xcf64('0x25'),_0x4b0692=>this[_0xcf64('0x9')](_0x4b0692)),_0x28b2aa[_0xcf64('0x18')](()=>{const _0x335801=[];for(const [_0x5ce288,_0x54d5b0]of Array[_0xcf64('0x1b')](this[_0xcf64('0x3')])){const _0x22c5b8=_0x5ce288[_0xcf64('0x20')](),_0x4e8235=[];for(const _0x52b1c7 of _0x22c5b8){if(!_0x52b1c7['isInContent'])continue;if(_0x52b1c7['isMultiRange']){_0x4e8235['push'](..._0x52b1c7[_0xcf64('0x56')]());continue;}const _0x3ce8b4=_0x52b1c7[_0xcf64('0x17')]();if(_0x4e8235['length']>0x0){const _0x214aea=_0x4e8235[0x0][_0xcf64('0x2c')](_0x3ce8b4);if(_0x214aea){_0x4e8235[0x0]=_0x214aea;continue;}}_0x4e8235['push'](_0x3ce8b4);}_0x335801[_0xcf64('0x5f')]([_0x54d5b0['view'],_0x4e8235]);}return _0x335801;}),this[_0xcf64('0x2')](_0x53ea5f,_0xcf64('0x66'),(_0x15c5eb,_0x40610f)=>{this['listenTo'](_0x40610f,'change:previous',(_0x263a45,_0x13ecf6,_0x5d3371,_0x5ce5e4)=>{_0x40610f[_0xcf64('0x35')]&&(null==_0x5d3371?(this[_0xcf64('0x33')](_0x5ce5e4[_0xcf64('0x14')]),this[_0xcf64('0x8')](_0x40610f,!0x1)):(this[_0xcf64('0x33')](_0x5d3371[_0xcf64('0x14')]),this[_0xcf64('0x8')](_0x40610f,!0x0)));}),null===_0x40610f[_0xcf64('0x61')]?this[_0xcf64('0x8')](_0x40610f,!0x1):this['_updateController'](_0x40610f[_0xcf64('0x14')]);}),this[_0xcf64('0x2')](_0x53ea5f,'suggestionUnloaded',(_0xe92cb4,_0xce144b,_0xe5fb49)=>{this[_0xcf64('0x67')](_0xce144b,'change:previous'),this[_0xcf64('0x26')][_0xcf64('0x41')](_0xce144b);const _0x38ffce=_0xe5fb49?_0xe5fb49['head']:_0xce144b,_0x16c09a=this['_suggestionToController'][_0xcf64('0x5d')](_0x38ffce);null!==_0xe5fb49&&this['_updateController'](_0x38ffce),null===_0xe5fb49&&_0x16c09a&&this['_destroyController'](_0xce144b);}),this[_0xcf64('0x2')](_0x53ea5f,_0xcf64('0x2b'),(_0xba7116,_0x43cd0c)=>{this[_0xcf64('0x33')](_0x43cd0c);}),this[_0xcf64('0x2')](_0x3015e3,_0xcf64('0x13'),()=>{this[_0xcf64('0x1c')]();}),this[_0xcf64('0x2')](_0x47371a,_0xcf64('0xe'),(_0x27cc15,{threadId:_0x24098c,isFromAdapter:_0x3c434c})=>{if(_0x3c434c||!_0x53ea5f[_0xcf64('0x63')](_0x24098c))return;const _0x3c5318=_0x53ea5f[_0xcf64('0x4b')](_0x24098c);this[_0xcf64('0x3')][_0xcf64('0x5d')](_0x3c5318)['view'][_0xcf64('0x3c')]();},{'priority':_0xcf64('0x62')});}[_0xcf64('0x1c')](){const _0x6164fc=this[_0xcf64('0xb')][_0xcf64('0x2d')]['get'](_0xcf64('0x47')),_0x42d4b4=this[_0xcf64('0xb')][_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x44')),_0x2ccc72=Array[_0xcf64('0x1b')](_0x6164fc[_0xcf64('0x42')],_0x3e223e=>_0x3e223e[_0xcf64('0x16')])['filter'](_0x5c7163=>this[_0xcf64('0x11')][_0xcf64('0x1')](_0x5c7163)),_0x2b2d5f=[];for(const _0x1d054b of _0x2ccc72){const _0x251409=this[_0xcf64('0x11')][_0xcf64('0x5d')](_0x1d054b)[_0xcf64('0x4')][_0xcf64('0x20')]();_0x2b2d5f[_0xcf64('0x5f')](..._0x251409[_0xcf64('0x53')]((_0x311c71,_0x6f8d6e)=>[..._0x311c71,..._0x6f8d6e[_0xcf64('0x37')]()],[]));}_0x42d4b4[_0xcf64('0x3a')]=_0x2b2d5f;}['_createUIButton'](_0x3ba660){const _0x1490d1=_0x2abc4a(_0x3ba660,_0x54a039),_0x2b1768=this[_0xcf64('0xb')][_0xcf64('0x55')][_0xcf64('0x5d')]('trackChanges'),_0x40256d=_0xf9ab62(_0x3ba660,_0xcf64('0x4a'));_0x1490d1['buttonView'][_0xcf64('0x28')]({'tooltip':_0x40256d,'label':_0x40256d,'icon':_0x2e5fe3}),_0x1490d1['buttonView'][_0xcf64('0x3f')](_0xcf64('0x4e'))['to'](_0x2b1768,_0xcf64('0x45')),_0x1490d1[_0xcf64('0x34')]['on'](_0xcf64('0x31'),()=>{_0x2b1768[_0xcf64('0x31')](),this['editor'][_0xcf64('0x46')][_0xcf64('0x5')][_0xcf64('0x3c')]();});const _0x27a2bf=new _0x26b6df(),_0x22e8ae=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x40256d,'commandName':_0xcf64('0x25')}},{'type':_0xcf64('0x5e')},{'type':_0xcf64('0x27'),'model':{'withText':!0x0,'label':_0xf9ab62(_0x3ba660,_0xcf64('0x4c')),'commandName':_0xcf64('0x38')}},{'type':'button','model':{'withText':!0x0,'label':_0xf9ab62(_0x3ba660,_0xcf64('0x39')),'commandName':_0xcf64('0x1d')}},{'type':'button','model':{'withText':!0x0,'label':_0xf9ab62(_0x3ba660,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':_0xcf64('0x27'),'model':{'withText':!0x0,'label':_0xf9ab62(_0x3ba660,_0xcf64('0x3b')),'commandName':_0xcf64('0x23')}}];for(const _0x184618 of _0x22e8ae){let _0x2e924d={'type':'separator'};if(_0x184618[_0xcf64('0x4')]){const _0x564189=new _0x48fe95(_0x184618['model']),_0x41edeb=this['editor'][_0xcf64('0x55')]['get'](_0x564189['commandName']);_0x564189[_0xcf64('0x3f')](_0xcf64('0x4e'),_0xcf64('0xd'))['to'](_0x41edeb,_0xcf64('0x45'),_0xcf64('0xd')),_0x2e924d={'type':_0x184618[_0xcf64('0x1a')],'model':_0x564189};}_0x27a2bf['add'](_0x2e924d);}_0x4080d2(_0x1490d1,_0x27a2bf);const _0x5cd1f9=_0x22e8ae['filter'](_0x7f5d09=>null!=_0x7f5d09[_0xcf64('0x4')])[_0xcf64('0x0')](_0x5dfbee=>this[_0xcf64('0xb')]['commands']['get'](_0x5dfbee[_0xcf64('0x4')][_0xcf64('0x69')])),_0x155490=_0x1490d1[_0xcf64('0x34')];return _0x155490[_0xcf64('0x54')][_0xcf64('0x49')](_0xcf64('0xd')),_0x155490['arrowView'][_0xcf64('0x49')](_0xcf64('0xd')),_0x155490[_0xcf64('0x54')][_0xcf64('0x3f')]('isEnabled')['to'](_0x2b1768,_0xcf64('0xd')),_0x155490['arrowView'][_0xcf64('0x3f')]('isEnabled')['toMany'](_0x5cd1f9,_0xcf64('0xd'),(..._0x188dee)=>_0x188dee[_0xcf64('0x2e')](_0x31ad64=>_0x31ad64)),_0x1490d1['on'](_0xcf64('0x31'),_0xdb7141=>{this[_0xcf64('0xb')][_0xcf64('0x31')](_0xdb7141[_0xcf64('0x1f')]['commandName']),this[_0xcf64('0xb')][_0xcf64('0x46')][_0xcf64('0x5')][_0xcf64('0x3c')]();}),_0x1490d1;}[_0xcf64('0x51')](_0x1debd8){const _0x25f081=this[_0xcf64('0xb')],_0x390b0a=_0x25f081[_0xcf64('0x40')],_0x4b7a54=_0x25f081[_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x47')),_0x165283=_0x25f081[_0xcf64('0x2d')][_0xcf64('0x5d')]('CommentsRepository'),_0x801b05=_0x25f081['plugins'][_0xcf64('0x5d')](_0xcf64('0x15')),_0x20899c=_0x25f081[_0xcf64('0x2d')][_0xcf64('0x5d')](_0x723bc9)['me'],_0x4daa6e=_0x390b0a[_0xcf64('0x5d')](_0xcf64('0x25'))[_0xcf64('0x32')],{CommentsListView:_0x3403c8,CommentThreadInputView:_0x3b212b}=_0x25f081[_0xcf64('0x2d')][_0xcf64('0x5d')]('CommentsUI');let _0x2cceee,_0x1deeb1;this[_0xcf64('0x4d')]['has'](_0x1debd8['id'])?(_0x1deeb1=this[_0xcf64('0x4d')]['get'](_0x1debd8['id']),_0x2cceee=_0x1deeb1[_0xcf64('0xc')]):(_0x2cceee=new _0x4daa6e(_0x25f081['locale'],_0x1debd8,_0x20899c,{'disableComments':this['_disableComments'],'editorConfig':_0x390b0a[_0xcf64('0x5d')](_0xcf64('0x5a')),'maxCommentsWhenCollapsed':_0x390b0a['get'](_0xcf64('0x2a')),'maxThreadTotalWeight':_0x390b0a['get'](_0xcf64('0x3e')),'maxCommentCharsWhenCollapsed':_0x390b0a[_0xcf64('0x5d')](_0xcf64('0x4f')),'formatDateTime':_0x43d90e(_0x390b0a[_0xcf64('0x5d')]('locale')),'CommentView':_0x390b0a[_0xcf64('0x5d')](_0xcf64('0x29'))['CommentView'],'CommentsListView':_0x3403c8,'CommentThreadInputView':_0x3b212b}),_0x2cceee[_0xcf64('0x58')]['on'](_0xcf64('0x31'),()=>{_0x25f081[_0xcf64('0x46')][_0xcf64('0x5')][_0xcf64('0x3c')]();}),_0x2cceee['discardButton']['on'](_0xcf64('0x31'),()=>{_0x25f081[_0xcf64('0x46')][_0xcf64('0x5')][_0xcf64('0x3c')]();}),_0x1deeb1=_0x4b7a54[_0xcf64('0x3d')](this[_0xcf64('0xb')][_0xcf64('0x12')],_0x2cceee),_0x1deeb1[_0xcf64('0x3f')]('isDirty')['to'](_0x2cceee,'isDirty'),_0x1deeb1[_0xcf64('0x3f')](_0xcf64('0x30'))['to'](_0x2cceee),_0x1deeb1[_0xcf64('0x3f')](_0xcf64('0x1a'))['to'](_0x2cceee,_0xcf64('0x1a'),_0x4c1c82=>_0xcf64('0x2f')+_0x4c1c82),this['_annotationViews'][_0xcf64('0x28')](_0x1debd8['id'],_0x1deeb1));const _0x24891a=_0x165283[_0xcf64('0x57')](_0x1debd8[_0xcf64('0x65')],_0x2cceee),_0xec9adb=new _0x2d7a56(_0x25f081,_0x1debd8,_0x2cceee,_0x24891a),_0x405e0e=_0x1debd8[_0xcf64('0x20')]()['filter'](_0xd2b9ea=>_0xd2b9ea[_0xcf64('0x35')]);_0x2cceee[_0xcf64('0x5b')]=_0x25f081['plugins']['get'](_0xcf64('0x44'))[_0xcf64('0x7')][_0xcf64('0xf')](_0x405e0e),this[_0xcf64('0x3')]['set'](_0x1debd8,_0xec9adb),this['_viewToController'][_0xcf64('0x28')](_0x2cceee,_0xec9adb);const _0x3c19e0=_0x4b7a54[_0xcf64('0x64')]({'view':_0x1deeb1,'target':()=>{const _0xf6445=[],_0x123346=_0x1debd8['getAllAdjacentSuggestions']()['filter'](_0x279a0e=>_0x279a0e[_0xcf64('0x35')]);for(const _0x4e78dd of _0x123346)_0xf6445['push'](..._0x4e78dd['getMarkers']());return _0x353f2c(_0x25f081[_0xcf64('0x46')],_0xf6445);},'type':()=>'suggestion-'+_0xec9adb[_0xcf64('0x5')]['type']});_0x4b7a54[_0xcf64('0x36')](_0x3c19e0),_0x801b05[_0xcf64('0x5c')](_0x3c19e0);}['_destroyController'](_0x41c1e4){const _0x2cd65f=this[_0xcf64('0xb')][_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x47')),_0x281853=this[_0xcf64('0x3')]['get'](_0x41c1e4),_0x38e903=_0x281853[_0xcf64('0x5')],_0x21e5e2=_0x2cd65f[_0xcf64('0x1e')](_0x38e903);_0x21e5e2&&_0x2cd65f['remove'](_0x21e5e2),this[_0xcf64('0x3')][_0xcf64('0x41')](_0x41c1e4),this[_0xcf64('0x11')][_0xcf64('0x41')](_0x38e903),_0x281853[_0xcf64('0x10')]();}[_0xcf64('0x33')](_0x438bd4){if(!_0x438bd4['isInContent']||!this['_suggestionToController'][_0xcf64('0x1')](_0x438bd4))return;const _0x51175b=this[_0xcf64('0xb')][_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x44')),_0x4e5baa=this[_0xcf64('0x3')]['get'](_0x438bd4),_0x312462=_0x438bd4[_0xcf64('0x20')]();_0x4e5baa[_0xcf64('0x5')]['descriptionParts']=_0x51175b[_0xcf64('0x7')][_0xcf64('0xf')](_0x312462);}[_0xcf64('0x10')](){for(const _0x39d09c of this[_0xcf64('0x3')]['keys']())this[_0xcf64('0x19')](_0x39d09c);for(const _0x172a28 of this[_0xcf64('0x4d')][_0xcf64('0x48')]())_0x172a28[_0xcf64('0xc')][_0xcf64('0x10')]();super[_0xcf64('0x10')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x206e=['canDiscard','_removePendingAction','commentThreadController','canAccept','add','get','_setPendingAction','change:isDirty','_editor','unbind','remove','canEditAt','_discardCommand','stopListening','_acceptCommand','locale','PENDING_ACTION_SUGGESTION','PendingActions','plugins','bind','isDirty','discardSuggestion','isEnabled','_pendingAction','execute','listenTo','commands','view','destroy','acceptSuggestion','model'];(function(_0x322f83,_0x206e7e){const _0x5e41cd=function(_0x557060){while(--_0x557060){_0x322f83['push'](_0x322f83['shift']());}};_0x5e41cd(++_0x206e7e);}(_0x206e,0x137));const _0x5e41=function(_0x322f83,_0x206e7e){_0x322f83=_0x322f83-0x0;let _0x5e41cd=_0x206e[_0x322f83];return _0x5e41cd;};import{ObservableMixin as _0xf71d0f}from'ckeditor5/src/utils';import{getTranslation as _0x240373}from'../utils/common-translations';export default class qt extends _0xf71d0f(){constructor(_0x373fcf,_0x140264,_0x45ad8c,_0x1484b0){super(),this[_0x5e41('0x1d')]=_0x140264,this[_0x5e41('0x1a')]=_0x45ad8c,this['commentThreadController']=_0x1484b0,this[_0x5e41('0x7')]=_0x373fcf,this['_acceptCommand']=_0x373fcf['commands'][_0x5e41('0x4')](_0x5e41('0x1c')),this[_0x5e41('0xb')]=_0x373fcf[_0x5e41('0x19')][_0x5e41('0x4')](_0x5e41('0x14')),this['view'][_0x5e41('0x12')](_0x5e41('0x15'))['to'](this[_0x5e41('0xd')],this['_discardCommand'],(_0x4e7064,_0x27b1c6)=>_0x4e7064||_0x27b1c6),this['view'][_0x5e41('0x12')]('canAccept')['to'](this[_0x5e41('0xd')],'isEnabled',_0x1e8945=>_0x1e8945&&this[_0x5e41('0x7')][_0x5e41('0x1d')][_0x5e41('0xa')](_0x140264['getRanges']())),this['view'][_0x5e41('0x12')](_0x5e41('0x1e'))['to'](this[_0x5e41('0xb')],_0x5e41('0x15'),_0x4c1cbf=>_0x4c1cbf&&this[_0x5e41('0x7')]['model']['canEditAt'](_0x140264['getRanges']())),this[_0x5e41('0x16')]=null,_0x45ad8c[_0x5e41('0x13')]&&this['_setPendingAction'](),this[_0x5e41('0x18')](_0x45ad8c,_0x5e41('0x1c'),()=>this['acceptSuggestion']()),this['listenTo'](_0x45ad8c,_0x5e41('0x14'),()=>this[_0x5e41('0x14')]()),this[_0x5e41('0x18')](_0x45ad8c,_0x5e41('0x6'),()=>{_0x45ad8c[_0x5e41('0x13')]?this['_setPendingAction']():this[_0x5e41('0x0')]();});}[_0x5e41('0x1c')](){this['_acceptCommand'][_0x5e41('0x17')](this[_0x5e41('0x1d')]['id']);}[_0x5e41('0x14')](){this[_0x5e41('0xb')][_0x5e41('0x17')](this[_0x5e41('0x1d')]['id']);}[_0x5e41('0x1b')](){this[_0x5e41('0x1a')][_0x5e41('0x8')](_0x5e41('0x15')),this['view']['unbind'](_0x5e41('0x2')),this['view']['unbind']('canDiscard'),this[_0x5e41('0xc')](),this[_0x5e41('0x1')][_0x5e41('0x1b')](),this['_pendingAction']&&this['_removePendingAction']();}[_0x5e41('0x5')](){const _0x4c2a4d=_0x240373(this[_0x5e41('0x7')][_0x5e41('0xe')],_0x5e41('0xf'));this[_0x5e41('0x16')]=this['_editor'][_0x5e41('0x11')][_0x5e41('0x4')](_0x5e41('0x10'))[_0x5e41('0x3')](_0x4c2a4d);}[_0x5e41('0x0')](){null!==this[_0x5e41('0x16')]&&this[_0x5e41('0x7')][_0x5e41('0x11')][_0x5e41('0x4')](_0x5e41('0x10'))[_0x5e41('0x9')](this[_0x5e41('0x16')]),this[_0x5e41('0x16')]=null;}}
23
+ const _0x5621=['commands','acceptSuggestion','_pendingAction','getRanges','isDirty','execute','PENDING_ACTION_SUGGESTION','bind','PendingActions','get','canDiscard','view','canEditAt','commentThreadController','listenTo','remove','add','destroy','discardSuggestion','unbind','model','isEnabled','_setPendingAction','_discardCommand','_editor','change:isDirty','canAccept','locale','_removePendingAction','plugins','_acceptCommand'];(function(_0x5938bc,_0x56219f){const _0x4826a5=function(_0x340e91){while(--_0x340e91){_0x5938bc['push'](_0x5938bc['shift']());}};_0x4826a5(++_0x56219f);}(_0x5621,0x1db));const _0x4826=function(_0x5938bc,_0x56219f){_0x5938bc=_0x5938bc-0x0;let _0x4826a5=_0x5621[_0x5938bc];return _0x4826a5;};import{ObservableMixin as _0x58337f}from'ckeditor5/src/utils';import{getTranslation as _0x80bf19}from'../utils/common-translations';export default class qt extends _0x58337f(){constructor(_0x5aedaa,_0x45b682,_0x3715ed,_0x441c2c){super(),this[_0x4826('0xa')]=_0x45b682,this[_0x4826('0x1')]=_0x3715ed,this['commentThreadController']=_0x441c2c,this[_0x4826('0xe')]=_0x5aedaa,this[_0x4826('0x14')]=_0x5aedaa[_0x4826('0x15')][_0x4826('0x1e')](_0x4826('0x16')),this[_0x4826('0xd')]=_0x5aedaa[_0x4826('0x15')][_0x4826('0x1e')](_0x4826('0x8')),this[_0x4826('0x1')][_0x4826('0x1c')](_0x4826('0xb'))['to'](this[_0x4826('0x14')],this['_discardCommand'],(_0x3530c4,_0x3dc3cd)=>_0x3530c4||_0x3dc3cd),this[_0x4826('0x1')][_0x4826('0x1c')](_0x4826('0x10'))['to'](this[_0x4826('0x14')],_0x4826('0xb'),_0x17484c=>_0x17484c&&this[_0x4826('0xe')][_0x4826('0xa')][_0x4826('0x2')](_0x45b682[_0x4826('0x18')]())),this[_0x4826('0x1')]['bind'](_0x4826('0x0'))['to'](this[_0x4826('0xd')],'isEnabled',_0x4a805c=>_0x4a805c&&this['_editor'][_0x4826('0xa')][_0x4826('0x2')](_0x45b682['getRanges']())),this[_0x4826('0x17')]=null,_0x3715ed[_0x4826('0x19')]&&this[_0x4826('0xc')](),this['listenTo'](_0x3715ed,_0x4826('0x16'),()=>this[_0x4826('0x16')]()),this[_0x4826('0x4')](_0x3715ed,'discardSuggestion',()=>this[_0x4826('0x8')]()),this[_0x4826('0x4')](_0x3715ed,_0x4826('0xf'),()=>{_0x3715ed['isDirty']?this[_0x4826('0xc')]():this[_0x4826('0x12')]();});}[_0x4826('0x16')](){this[_0x4826('0x14')][_0x4826('0x1a')](this[_0x4826('0xa')]['id']);}[_0x4826('0x8')](){this['_discardCommand'][_0x4826('0x1a')](this[_0x4826('0xa')]['id']);}[_0x4826('0x7')](){this[_0x4826('0x1')][_0x4826('0x9')]('isEnabled'),this['view'][_0x4826('0x9')]('canAccept'),this[_0x4826('0x1')][_0x4826('0x9')]('canDiscard'),this['stopListening'](),this[_0x4826('0x3')][_0x4826('0x7')](),this[_0x4826('0x17')]&&this[_0x4826('0x12')]();}[_0x4826('0xc')](){const _0x34f13e=_0x80bf19(this[_0x4826('0xe')][_0x4826('0x11')],_0x4826('0x1b'));this[_0x4826('0x17')]=this[_0x4826('0xe')][_0x4826('0x13')][_0x4826('0x1e')](_0x4826('0x1d'))[_0x4826('0x6')](_0x34f13e);}[_0x4826('0x12')](){null!==this[_0x4826('0x17')]&&this['_editor'][_0x4826('0x13')][_0x4826('0x1e')](_0x4826('0x1d'))[_0x4826('0x5')](this['_pendingAction']),this[_0x4826('0x17')]=null;}}