@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230725.0 → 0.0.0-nightly-20230726.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 (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  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.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18cf=['addMarker:suggestion:formatBlock','selection','isInsideObject','subType','$textProxy','data-suggestion','addSuggestionData','acceptSuggestion','_addSuggestionMarker','delete','forward','data','length','getShiftedBy','filter','name','getMarkers','values','insertContent','containsPosition','suggestionChanged','plugins','_editor','always','dataToMarker','ck-suggestion-marker-formatBlock','_updateSuggestionData','skipNestingCheck','commandName','deletion','_registerDefaultCallbacks','creator','external:','getSuggestionCallback','_saved','_mergeNestedSuggestions','detach','listenTo','addClass','upcast','change:data','fire','schema','containsItem','define','_defaultCallbacks','hasComments','addSuggestion','$graveyard','isLimit','formatInline:join','_getAuthorFromId','discardSuggestion','conversion','createPositionAfter','removeClass','removeMarker','_customCallbacks','authoredAt','sort','Users','join','multi','enableReadOnlyMode','batch','isObject','commentThread','_suggestionState','markMultiRangeBlockFormat','every','_removeSuggestion','model','suggestion-type','type','deletion:','createdAt','addMarker','config','position','isOwn','_breakSuggestionMarker','writer','insertion:accept','value','_setSuggestionData','isAfter','_checkSuggestionCorrectness','formatBlock:','lowest','oldRange','accepted','addRange','setSelection','suggestion:','originalSuggestionId','addHighlight','accept','fetchCommentThread','ck-suggestion-marker','isRemovable','fromRange','commands','documentSelection','setTo','discardSelectedSuggestions','createRangeIn','newRange','_setSuggestionRange','isMultiRange','_addThreadToSuggestion','markDeletion','dataReady','item','elementEnd','@external','author','_enabledCommands','change:activeMarkers','splice','then','deletion:accept','markerReady','isBlock','_joinWithAdjacentSuggestions','forceDefaultExecution','getItems','toJSON','formatInline:chain','low','discard','differ','deletion:discard','nodeAfter','editingDowncast','insertion:','_createSuggestion','root','getChangedMarkers','_model','markerToHighlight','size','remove','editor','_cutOutSuggestionMarker','ck-suggestion-marker--active','collaboration.channelId','notReady','highest','getNearestSelectionRange','_adapter','formatBlock:join','registerCustomCallback','dataDowncast','markInlineFormat','registerPostFixer','removeMarkers','add','substr','fromCharCode','set','isAtEnd','_findSuggestions','trackChanges.mergeNestedSuggestions','has','createPositionAt','group','PENDING_ACTION_SUGGESTION','isExternal','insert','removed','track-changes-suggestion-not-found','targetPosition','suggestionLoaded','insertion:chain','getDifference','_refreshSuggestionsChain','updateMarker','isNextTo','suggestionUnloaded','getIntersection','moveTargetPosition','isUndo','parent','end','formatBlock:chain','_trackFormatChanges','push','_rangeIsInLocalUserInsertion','getFirstMarker','getChanges','consume','enqueueChange','update:suggestion','from','getSuggestion','refresh','getRanges','addComment','init','isEqual','removeMarker:suggestion:formatBlock','isTouching','mapper','_suggestionFactory','multipleBlocks','backward','addMarkerName','hasSuggestion','formatBlock','formatBlock:accept','consumable','howMany','insertion:discard','after','trackChanges.trackFormatChanges','never','track-changes-command-not-found','_getExternalAuthor','isIntersectingWithRange','isLocal','trackChanges','containerElement','getSuggestions','markers','document','rootName','enableCommand','chain','createSelection','catch','discardAllSuggestions','acceptAllSuggestions','formatInline:','execute','createRange','containsRangeInObject','map','rejected','stop','hasCommentThread','nodeBefore','get','_isForcedDefaultExecutionBlock','trackChangesCommand','range','_getSuggestionData','options','track-changes-suggestion-data-mismatch','_onDiscard','getRange','_splitMarkerName','clear','next','PendingActions','formatInline:discard','containsRange','insertion','return','high','marker-count','getAttribute','getMultiRangeId','change','isBefore','isInContent','_commentsRepository','split','track-changes-adapter-already-set','default','requires','TrackChangesEditing','createElement','start','element','isDocumentOperation','ck-suggestion-marker-','elementStart','getCommentThread','addUser','addMarker:suggestion','previous','CommentsRepository','ready','includes','getAllAdjacentSuggestions','formatInline:accept','getFirstRange','markerName','_suggestions','showSuggestionHighlights','getAncestors','updateSuggestion','attributes','acceptSelectedSuggestions','toViewElement','formatGroupId','isCollapsed','$marker','markMultiRangeInsertion','_joinSuggestions','formatInline','deletion:chain','track-changes-user-not-found','suggestion','some','for','authorName','activeMarkers','locale','getUser','removeAttribute','bindElementToMarker','change:_saved'];(function(_0x11b36e,_0x18cfc8){const _0x3ffe2b=function(_0x118b97){while(--_0x118b97){_0x11b36e['push'](_0x11b36e['shift']());}};_0x3ffe2b(++_0x18cfc8);}(_0x18cf,0xae));const _0x3ffe=function(_0x11b36e,_0x18cfc8){_0x11b36e=_0x11b36e-0x0;let _0x3ffe2b=_0x18cf[_0x11b36e];return _0x3ffe2b;};import{Plugin as _0x1c3905,PendingActions as _0x2201d8}from'ckeditor5/src/core';import{LiveRange as _0x2a7d37}from'ckeditor5/src/engine';import{CKEditorError as _0x37a43b,uid as _0x3a1dd6,priorities as _0x39ca25,logWarning as _0x3d2ca4}from'ckeditor5/src/utils';import{toWidget as _0xcd7f04}from'ckeditor5/src/widget';import{Users as _0x3fe405,hashObject as _0x56ef00}from'ckeditor5-collaboration/src/collaboration-core';import _0x55cdc0 from'./commands/trackchangescommand';import _0x216fc3 from'./commands/acceptsuggestioncommand';import _0x12920a from'./commands/discardsuggestioncommand';import _0x2892b6 from'./commands/executeonallsuggestionscommand';import _0x3f5cb8 from'./commands/executeonselectedsuggestionscommand';import _0x5dd847 from'./suggestion';import _0x547b5c from'./suggestiondescriptionfactory';import _0x3b86b1 from'./integrations/alignment';import _0x39e887 from'./integrations/basicstyles';import _0x1657d7 from'./integrations/blockquote';import _0x212c2b from'./integrations/ckbox';import _0x1ded42 from'./integrations/codeblock';import _0x176bae from'./integrations/comments';import _0x561b8f from'./integrations/deletecommand';import _0x279e24 from'./integrations/documentlist';import _0x2b57aa from'./integrations/entercommand';import _0x6558e from'./integrations/findandreplace';import _0x34db2b from'./integrations/font';import _0x381856 from'./integrations/formatpainter';import _0x3ef23f from'./integrations/heading';import _0x560c1a from'./integrations/highlight';import _0x21eacb from'./integrations/horizontalline';import _0x53412d from'./integrations/htmlembed';import _0x599b4c from'./integrations/image';import _0x552ce3 from'./integrations/imagereplace';import _0x237581 from'./integrations/importword';import _0x150838 from'./integrations/indent';import _0x41cd65 from'./integrations/inputcommand';import _0x32f146 from'./integrations/link';import _0x2c8a1a from'./integrations/list';import _0x7a8538 from'./integrations/listproperties';import _0x8816b7 from'./integrations/mediaembed';import _0x5a1340 from'./integrations/mention';import _0x409189 from'./integrations/pagebreak';import _0x361501 from'./integrations/paragraph';import _0x2345a5 from'./integrations/removeformat';import _0x362bbc from'./integrations/restrictededitingmode';import _0x1383b1 from'./integrations/shiftentercommand';import _0x401a61 from'./integrations/standardeditingmode';import _0x1db17f from'./integrations/style';import _0x1eefca from'./integrations/table';import _0x45b15d from'./integrations/tablemergesplit';import _0x388447 from'./integrations/tableheadings';import _0x379b05 from'./integrations/tableclipboard';import _0xca3534 from'./integrations/tablecolumnresize';import _0x36d4c2 from'./integrations/template';import _0x4a7291 from'./integrations/tableofcontents';import _0x286fbd from'./integrations/title';import _0x2a245e from'./integrations/undo';import{getTranslation as _0x34e506}from'./utils/common-translations';import _0x1d8b1f from'./integrations/tablecaption';import _0x1f3f43 from'./integrations/documentlistproperties';import _0xcf2f83 from'./integrations/tableproperties';export default class p extends _0x1c3905{static get[_0x3ffe('0x5f')](){return['CommentsRepository',_0x3fe405,_0x2201d8,_0x3b86b1,_0x39e887,_0x1657d7,_0x212c2b,_0x1ded42,_0x176bae,_0x561b8f,_0x279e24,_0x1f3f43,_0x2b57aa,_0x6558e,_0x34db2b,_0x381856,_0x3ef23f,_0x560c1a,_0x21eacb,_0x53412d,_0x599b4c,_0x552ce3,_0x237581,_0x150838,_0x41cd65,_0x32f146,_0x2c8a1a,_0x7a8538,_0x8816b7,_0x5a1340,_0x409189,_0x361501,_0x2345a5,_0x362bbc,_0x1383b1,_0x401a61,_0x1db17f,_0x1eefca,_0x45b15d,_0x388447,_0x1d8b1f,_0x379b05,_0xca3534,_0x4a7291,_0xcf2f83,_0x36d4c2,_0x286fbd,_0x2a245e];}static get['pluginName'](){return _0x3ffe('0x60');}constructor(_0x1cac92){function _0x2b3d68(_0xdd53d7){return _0xdd53d7[_0x3ffe('0x3e')](_0x2d0d0f=>String[_0x3ffe('0x129')](_0x2d0d0f))[_0x3ffe('0xc8')]('');}super(_0x1cac92),this[_0x3ffe('0x12a')](_0x3ffe('0x85'),[]),this['on'](_0x3ffe('0x100'),(_0x10ed88,_0x1a0009,_0x33d72e,_0x582bee)=>{this[_0x3ffe('0x115')]['change'](()=>{for(const _0xfbf8be of[..._0x582bee,..._0x33d72e])this[_0x3ffe('0x115')]['markers'][_0x3ffe('0x12e')](_0xfbf8be)&&_0x1cac92['editing']['reconvertMarker'](_0xfbf8be);});}),this['_descriptionFactory']=new _0x547b5c(this[_0x3ffe('0x119')][_0x3ffe('0xd2')][_0x3ffe('0xb5')],this[_0x3ffe('0x119')]['locale']),this[_0x3ffe('0x120')]=null,this[_0x3ffe('0x1d')]=new Dt(this[_0x3ffe('0x119')]),this[_0x3ffe('0x72')]=new Map(),this[_0x3ffe('0x5b')]=_0x1cac92['plugins'][_0x3ffe('0x43')]('CommentsRepository'),this[_0x3ffe('0xff')]=new Set(),this[_0x3ffe('0x115')]=this[_0x3ffe('0x119')][_0x3ffe('0xd2')],this[_0x3ffe('0xce')]=new WeakMap(),this[_0x3ffe('0x44')]=!0x1,_0x1cac92['config'][_0x3ffe('0xb7')](_0x3ffe('0x28'),_0x3ffe('0x5e')),this[_0x3ffe('0xb')]=_0x1cac92['config']['get'](_0x3ffe('0x28')),_0x1cac92[_0x3ffe('0xd8')][_0x3ffe('0xb7')](_0x3ffe('0x12d'),!0x0),this['_mergeNestedSuggestions']=_0x1cac92[_0x3ffe('0xd8')][_0x3ffe('0x43')](_0x3ffe('0x12d')),this[_0x3ffe('0x45')]=new _0x55cdc0(_0x1cac92,this[_0x3ffe('0xff')]),this[_0x2b3d68([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2b3d68([0x34,0x30,0x34,0x36,0x31,0x34,0x35,0x30]);}[_0x3ffe('0x18')](){const _0x41ed79=this[_0x3ffe('0x119')];_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0x110'))['markerToHighlight']({'model':_0x3ffe('0x81'),'view':_0xd1559c=>{const {id:_0x427629,type:_0x4afe94}=this[_0x3ffe('0x4c')](_0xd1559c[_0x3ffe('0x71')]),_0x4f1b3e=['ck-suggestion-marker',_0x3ffe('0x65')+_0x4afe94];let _0x5b0270=0xbb8;return this['activeMarkers'][_0x3ffe('0x6d')](_0xd1559c[_0x3ffe('0x71')])&&(_0x4f1b3e[_0x3ffe('0xc')](_0x3ffe('0x11b')),_0x5b0270=0xbc2),_0x3ffe('0xa8')==_0x4afe94&&(_0x5b0270+=0x5),{'classes':_0x4f1b3e,'attributes':{'data-suggestion':_0x427629},'priority':_0x5b0270};}}),_0x41ed79['conversion']['for'](_0x3ffe('0x123'))[_0x3ffe('0x127')](_0x309b28=>{_0x309b28['on'](_0x3ffe('0x69'),(_0x59deca,_0x2f353b,_0x114592)=>{if(!_0x114592[_0x3ffe('0x48')]['showSuggestionHighlights'])return;const _0x42aa98=_0x2f353b['item'];if(!_0x42aa98)return;const _0x511f03=_0x114592['mapper'][_0x3ffe('0x78')](_0x42aa98);_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0xb5')][_0x3ffe('0xcc')](_0x42aa98)&&_0x511f03&&!_0x511f03['getCustomProperty']('widget')&&_0x511f03['is'](_0x3ffe('0x2f'))&&_0xcd7f04(_0x511f03,_0x114592[_0x3ffe('0xdc')]);},{'priority':_0x3ffe('0x54')});}),_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0x123'))[_0x3ffe('0x116')]({'model':_0x3ffe('0x81'),'view':(_0x563bdc,_0x1e264b)=>{if(!_0x1e264b['options'][_0x3ffe('0x73')])return null;const {type:_0x77dafa}=this['_splitMarkerName'](_0x563bdc[_0x3ffe('0x71')]);return{'classes':['ck-suggestion-marker',_0x3ffe('0x65')+_0x77dafa],'priority':0xbb8};}});const _0x4e858e=({showActiveMarkers:_0x4f46b8=!0x0}={})=>(_0x582e39,_0xb44aa9,_0x2008b2)=>{if(!_0xb44aa9['item'])return;if(_0xb44aa9[_0x3ffe('0xfb')]['is'](_0x3ffe('0x8c')))return void _0x2008b2[_0x3ffe('0x24')][_0x3ffe('0x10')](_0xb44aa9[_0x3ffe('0xfb')],_0x582e39[_0x3ffe('0x9a')]);const _0x3c99b5=_0x2008b2[_0x3ffe('0x1c')][_0x3ffe('0x78')](_0xb44aa9['item']);if(!(_0xb44aa9['item']['is'](_0x3ffe('0x63'))&&_0x41ed79['model']['schema'][_0x3ffe('0x105')](_0xb44aa9['item'])&&!_0x3c99b5['getCustomProperty'](_0x3ffe('0xea'))))return;const {id:_0x2ec355}=this[_0x3ffe('0x4c')](_0xb44aa9[_0x3ffe('0x71')]);_0x2008b2['writer']['addClass']([_0x3ffe('0xed'),_0x3ffe('0xa4')],_0x3c99b5),_0x2008b2[_0x3ffe('0xdc')]['setAttribute'](_0x3ffe('0x90'),_0x2ec355,_0x3c99b5),_0x2008b2[_0x3ffe('0x1c')][_0x3ffe('0x89')](_0x3c99b5,_0xb44aa9['markerName']),_0x4f46b8&&(this[_0x3ffe('0x85')][_0x3ffe('0x6d')](_0xb44aa9[_0x3ffe('0x71')])?_0x2008b2[_0x3ffe('0xdc')][_0x3ffe('0xb1')](_0x3ffe('0x11b'),_0x3c99b5):_0x2008b2[_0x3ffe('0xdc')][_0x3ffe('0xc2')](_0x3ffe('0x11b'),_0x3c99b5));for(const _0x4b6c86 of _0x41ed79['model'][_0x3ffe('0xf4')](_0xb44aa9[_0x3ffe('0xfb')])[_0x3ffe('0x108')]())_0x2008b2[_0x3ffe('0x24')][_0x3ffe('0x10')](_0x4b6c86,_0x582e39[_0x3ffe('0x9a')]);_0x2008b2[_0x3ffe('0x24')][_0x3ffe('0x10')](_0xb44aa9[_0x3ffe('0xfb')],_0x582e39[_0x3ffe('0x9a')]);};_0x41ed79[_0x3ffe('0xc0')]['for']('dataDowncast')[_0x3ffe('0x127')](_0x52c29a=>{_0x52c29a['on']('addMarker:suggestion:formatBlock',(_0x1a157f,_0x383027,_0x35e5b8)=>{_0x35e5b8['options'][_0x3ffe('0x73')]&&_0x4e858e({'showActiveMarkers':!0x1})(_0x1a157f,_0x383027,_0x35e5b8);},{'priority':_0x3ffe('0x11e')});}),_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0x123'))['markerToData']({'model':_0x3ffe('0x81'),'view':(_0x3c2f52,_0x39008c)=>_0x39008c[_0x3ffe('0x48')][_0x3ffe('0x73')]?null:{'group':_0x3ffe('0x81'),'name':_0x3c2f52[_0x3ffe('0x128')](0xb)}}),_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0xb2'))['elementToElement']({'view':{'name':_0x3ffe('0x81'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5befae,{writer:_0x584a44})=>{let _0x3ad7a9=_0x3ffe('0xe8')+_0x5befae[_0x3ffe('0x56')](_0x3ffe('0xd3'))+':'+_0x5befae[_0x3ffe('0x56')]('id');return _0x5befae[_0x3ffe('0x56')](_0x3ffe('0x55'))&&(_0x3ad7a9+=':'+_0x5befae['getAttribute'](_0x3ffe('0x55'))),_0x584a44[_0x3ffe('0x61')](_0x3ffe('0x7b'),{'data-name':_0x3ad7a9});}}),_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0xb2'))[_0x3ffe('0xa3')]({'view':'suggestion'}),_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0x110'))[_0x3ffe('0x127')](_0x55a147=>{_0x55a147['on'](_0x3ffe('0x8b'),_0x4e858e(),{'priority':'high'});}),_0x41ed79[_0x3ffe('0xc0')]['for'](_0x3ffe('0x110'))['add'](_0x39d796=>{_0x39d796['on'](_0x3ffe('0x1a'),(_0x27c740,_0x3f9510,_0x196fb7)=>{const _0x1581ee=_0x196fb7[_0x3ffe('0x1c')]['markerNameToElements'](_0x3f9510[_0x3ffe('0x71')]);if(_0x1581ee)for(const _0x2ae357 of _0x1581ee)_0x2ae357['getCustomProperty'](_0x3ffe('0xea'))||(_0x196fb7[_0x3ffe('0xdc')][_0x3ffe('0xc2')]([_0x3ffe('0xed'),_0x3ffe('0xa4'),_0x3ffe('0x11b')],_0x2ae357),_0x196fb7[_0x3ffe('0xdc')][_0x3ffe('0x88')](_0x3ffe('0x90'),_0x2ae357),_0x196fb7[_0x3ffe('0x1c')]['unbindElementFromMarkerName'](_0x2ae357,_0x3f9510[_0x3ffe('0x71')]));},{'priority':_0x3ffe('0x54')});}),_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x32')]['registerPostFixer'](_0x30f52d=>{let _0x150520=!0x1;const _0x1fc72b=Array['from'](_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x32')]['differ'][_0x3ffe('0x114')]()),_0x4d05e1=new Set();for(const {name:_0x441e84,data:_0x4f7c3a}of _0x1fc72b){const {group:_0x39d63d,type:_0x4177f4,id:_0x5e2fc8}=this[_0x3ffe('0x4c')](_0x441e84);if(_0x3ffe('0x81')!==_0x39d63d)continue;const _0x1d1fef=this['_suggestions'][_0x3ffe('0x43')](_0x5e2fc8);if(null!=_0x4f7c3a[_0x3ffe('0xf5')]){_0x3ffe('0x7e')==_0x4177f4&&(_0x150520=_0x150520||Mt(_0x4f7c3a['newRange'],_0x441e84,_0x30f52d,_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0xb5')]));if(_0x4f7c3a[_0x3ffe('0xf5')][_0x3ffe('0x7a')]||_0x3ffe('0xbb')==_0x4f7c3a[_0x3ffe('0xf5')]['root'][_0x3ffe('0x33')]||_0x3ffe('0x22')==_0x4177f4&&!Nt(_0x4f7c3a[_0x3ffe('0xf5')])||_0x3ffe('0xa8')==_0x4177f4&&!(!_t(_0x1fe840=_0x4f7c3a[_0x3ffe('0xf5')])&&!function(_0x8a10af){return _0x8a10af[_0x3ffe('0x62')]['parent']==_0x8a10af['end'][_0x3ffe('0x42')]&&_0x8a10af[_0x3ffe('0x62')][_0x3ffe('0x12b')];}(_0x1fe840)))_0x30f52d[_0x3ffe('0xc3')](_0x441e84),_0x150520=!0x0;else{if(!_0x1d1fef||!_0x1d1fef[_0x3ffe('0x5a')])continue;_0x4d05e1['add'](_0x1d1fef);}}}var _0x1fe840;return _0x4d05e1['size']>0x0&&(_0x150520=!!this['_joinWithAdjacentSuggestions'](_0x4d05e1)||_0x150520),_0x150520;}),_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x32')][_0x3ffe('0x125')](_0x51e36a=>{let _0x24f1c5=!0x1;for(const _0x37c835 of _0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x32')][_0x3ffe('0x10d')][_0x3ffe('0xf')]()){if(_0x3ffe('0x133')!=_0x37c835[_0x3ffe('0xd4')])continue;const _0x41fcf8=_0x37c835['position'][_0x3ffe('0x98')](_0x37c835['length']);if(_0x41fcf8[_0x3ffe('0x12b')])for(const _0x253cd8 of this[_0x3ffe('0x72')]['values']()){if(_0x253cd8['isMultiRange']||!_0x253cd8['isInContent'])continue;if(_0x3ffe('0x22')!=_0x253cd8[_0x3ffe('0xd4')])continue;const _0x2593a6=_0x253cd8[_0x3ffe('0x70')]();if(_0x2593a6[_0x3ffe('0x62')][_0x3ffe('0x8')]!=_0x2593a6['end'][_0x3ffe('0x8')]&&_0x2593a6[_0x3ffe('0x9')][_0x3ffe('0x19')](_0x37c835['position'])){const _0x9a3a37=_0x41ed79[_0x3ffe('0xd2')]['createRange'](_0x2593a6[_0x3ffe('0x62')],_0x41fcf8);_0x51e36a[_0x3ffe('0x2')](_0x253cd8[_0x3ffe('0xe')](),{'range':_0x9a3a37}),_0x24f1c5=!0x0;}}}return _0x24f1c5;}),_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x31')]['on'](_0x3ffe('0x12'),(_0x25871e,_0x3a607b,_0x14d12c)=>{if(null==_0x14d12c){const {id:_0x5729eb}=this[_0x3ffe('0x4c')](_0x3a607b[_0x3ffe('0x9a')]),_0xa8866b=this['_suggestions'][_0x3ffe('0x43')](_0x5729eb);_0xa8866b&&_0xa8866b[_0x3ffe('0x20')](_0x3a607b['name']);}}),_0x41ed79['model'][_0x3ffe('0x32')]['on'](_0x3ffe('0xb3'),()=>{const _0x42429a=Array[_0x3ffe('0x13')](_0x41ed79[_0x3ffe('0xd2')]['document'][_0x3ffe('0x10d')][_0x3ffe('0x114')]())[_0x3ffe('0x99')](_0x587c8c=>_0x3ffe('0x81')===this[_0x3ffe('0x4c')](_0x587c8c[_0x3ffe('0x9a')])[_0x3ffe('0x130')]);if(0x0===_0x42429a[_0x3ffe('0x97')])return;_0x42429a[_0x3ffe('0xc6')]((_0x1c907e,_0x14bd4d)=>{const _0xdeda2f=_0x1c907e[_0x3ffe('0x96')]['oldRange'],_0x3111f6=_0x14bd4d[_0x3ffe('0x96')][_0x3ffe('0xe4')];return null===_0xdeda2f&&null===_0x3111f6?0x0:null===_0xdeda2f&&null!==_0x3111f6?-0x1:null!==_0xdeda2f&&null===_0x3111f6?0x1:_0xdeda2f[_0x3ffe('0x62')][_0x3ffe('0x59')](_0x3111f6[_0x3ffe('0x62')])?-0x1:0x1;});const _0x37b2b1=new Set(),_0x44822d=new Set();for(const {name:_0x537000,data:_0x511800}of _0x42429a){const {id:_0x2ba919}=this['_splitMarkerName'](_0x537000);if(null===_0x511800[_0x3ffe('0xe4')]){const _0xde054d=this['_handleNewSuggestionMarker'](_0x537000);_0x44822d[_0x3ffe('0x127')](_0xde054d);}else{const _0x192189=this[_0x3ffe('0x72')][_0x3ffe('0x43')](_0x2ba919);null!==_0x511800[_0x3ffe('0xf5')]||_0x192189[_0x3ffe('0x5a')]?(_0x37b2b1['add'](_0x192189['head']),_0x44822d[_0x3ffe('0x127')](_0x192189)):this[_0x3ffe('0xd1')](_0x192189);}}_0x44822d[_0x3ffe('0x117')]>0x0&&this[_0x3ffe('0x1')](_0x44822d);for(const _0x8ee8d2 of _0x37b2b1)this[_0x3ffe('0xb4')](_0x3ffe('0x9f'),_0x8ee8d2);}),_0x41ed79['model']['on']('applyOperation',(_0x1fee63,_0x12ee36)=>{const _0x4ffc88=_0x12ee36[0x0];if(!this[_0x3ffe('0x72')][_0x3ffe('0x117')])return;if(!_0x4ffc88[_0x3ffe('0x64')])return;if(_0x4ffc88[_0x3ffe('0xcb')][_0x3ffe('0x7')]||!_0x4ffc88[_0x3ffe('0xcb')][_0x3ffe('0x2d')])return;let _0x506964,_0x5317c7;switch(_0x4ffc88[_0x3ffe('0xd4')]){case _0x3ffe('0x133'):_0x506964=_0x41ed79[_0x3ffe('0xd2')]['createPositionAt'](_0x4ffc88[_0x3ffe('0xd9')]),_0x5317c7=_0x506964[_0x3ffe('0x98')](_0x4ffc88[_0x3ffe('0x25')]);break;case _0x3ffe('0x5c'):_0x506964=_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x12f')](_0x4ffc88['splitPosition']),_0x5317c7=_0x41ed79[_0x3ffe('0xd2')]['createPositionAt'](_0x4ffc88[_0x3ffe('0x6')]);break;case'move':_0x506964=_0x41ed79['model']['createPositionAt'](_0x4ffc88[_0x3ffe('0x136')]),_0x5317c7=_0x506964[_0x3ffe('0x98')](_0x4ffc88['howMany']);break;default:return;}const _0x59ca5f=_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x3c')](_0x506964,_0x5317c7);_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x58')](()=>{for(const {suggestion:_0x577018,meta:_0x833f46}of this[_0x3ffe('0x12c')](_0x59ca5f)){if(_0x577018[_0x3ffe('0xf7')])continue;if(_0x3ffe('0x7e')==_0x577018[_0x3ffe('0xd4')])continue;const _0x20a197=_0x577018[_0x3ffe('0x96')]&&_0x577018[_0x3ffe('0x96')][_0x3ffe('0x1e')];(_0x3ffe('0x22')!=_0x577018[_0x3ffe('0xd4')]||_0x3ffe('0x5c')==_0x4ffc88[_0x3ffe('0xd4')]&&!_0x20a197)&&(_0x833f46[_0x3ffe('0x3d')]||_0x3ffe('0x52')==_0x577018[_0x3ffe('0xd4')]&&_0x833f46[_0x3ffe('0xda')]||_0x577018[_0x3ffe('0x70')]()[_0x3ffe('0x51')](_0x59ca5f)&&this['_breakSuggestionMarker'](_0x577018,_0x506964,_0x5317c7));}});},{'priority':_0x3ffe('0xe3')}),_0x41ed79[_0x3ffe('0xd2')]['on']('deleteContent',(_0x35f15e,_0x49cad8)=>{const _0x1db778=_0x49cad8[0x0],_0x53d8f5=_0x49cad8[0x1];if(_0x53d8f5&&_0x53d8f5[_0x3ffe('0x107')])return;if(this[_0x3ffe('0x44')])return;if(!this[_0x3ffe('0x45')]['value'])return;if(_0x1db778[_0x3ffe('0x7a')])return;const _0x370d70=_0x41ed79['model'][_0x3ffe('0xb5')],{start:_0x1ad092,end:_0x567c69}=_0x1db778[_0x3ffe('0x70')](),_0x4fa254=_0x1ad092[_0x3ffe('0x10f')]&&_0x370d70[_0x3ffe('0xbc')](_0x1ad092[_0x3ffe('0x10f')])?null:_0x370d70['getNearestSelectionRange'](_0x1ad092,_0x3ffe('0x95')),_0x1118e9=_0x567c69[_0x3ffe('0x42')]&&_0x370d70['isLimit'](_0x567c69[_0x3ffe('0x42')])?null:_0x370d70[_0x3ffe('0x11f')](_0x567c69,_0x3ffe('0x1f')),_0x274fb0=_0x41ed79['model'][_0x3ffe('0x3c')](_0x4fa254?_0x4fa254[_0x3ffe('0x62')]:_0x1ad092,_0x1118e9?_0x1118e9['end']:_0x567c69);_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x58')](_0x354382=>{this['markDeletion'](_0x274fb0);const _0x12ddf9=_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0xb5')][_0x3ffe('0x11f')](_0x274fb0[_0x3ffe('0x62')]);_0x1db778['is'](_0x3ffe('0xf1'))?_0x354382[_0x3ffe('0xe7')](_0x12ddf9):_0x1db778[_0x3ffe('0xf2')](_0x12ddf9);}),_0x35f15e[_0x3ffe('0x40')]();},{'priority':_0x39ca25['normal']+0xa}),_0x41ed79[_0x3ffe('0xd2')]['on'](_0x3ffe('0x9d'),(_0x3b633b,_0x361454)=>{const _0x550e99=_0x361454[_0x361454[_0x3ffe('0x97')]-0x1];_0x550e99&&_0x550e99[_0x3ffe('0x107')]||this[_0x3ffe('0x44')]||this[_0x3ffe('0x45')][_0x3ffe('0xde')]&&(_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x58')](()=>{let _0x43236f=_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x9d')](_0x361454[0x0],_0x361454[0x1],_0x361454[0x2],{'forceDefaultExecution':!0x0});if(!_0x43236f)return;_0x3b633b[_0x3ffe('0x53')]=_0x43236f['clone']();const _0x4bb99c=_0x43236f[_0x3ffe('0x9')][_0x3ffe('0x42')],_0x4de3c1=_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0xb5')];_0x4bb99c&&_0x4de3c1[_0x3ffe('0x105')](_0x4bb99c)&&!_0x4de3c1[_0x3ffe('0xcc')](_0x4bb99c)&&(_0x43236f=_0x41ed79[_0x3ffe('0xd2')]['createRange'](_0x43236f[_0x3ffe('0x62')],_0x41ed79[_0x3ffe('0xd2')]['createPositionAt'](_0x4bb99c,_0x3ffe('0x9')))),this['markInsertion'](_0x43236f);}),_0x3b633b[_0x3ffe('0x40')]());},{'priority':'high'}),this[_0x3ffe('0x119')]['commands'][_0x3ffe('0x127')](_0x3ffe('0x2e'),this[_0x3ffe('0x45')]),this['enableCommand'](_0x3ffe('0x2e'));const _0x233916=new _0x216fc3(_0x41ed79,this['_suggestions']);_0x41ed79['commands'][_0x3ffe('0x127')](_0x3ffe('0x92'),_0x233916),this[_0x3ffe('0x34')](_0x3ffe('0x92'));const _0x43a95a=new _0x12920a(_0x41ed79,this[_0x3ffe('0x72')]);_0x41ed79[_0x3ffe('0xf0')][_0x3ffe('0x127')](_0x3ffe('0xbf'),_0x43a95a),this[_0x3ffe('0x34')]('discardSuggestion'),_0x41ed79[_0x3ffe('0xf0')][_0x3ffe('0x127')](_0x3ffe('0x39'),new _0x2892b6(_0x41ed79,_0x233916,this[_0x3ffe('0x72')])),this['enableCommand'](_0x3ffe('0x39')),_0x41ed79['commands'][_0x3ffe('0x127')](_0x3ffe('0x38'),new _0x2892b6(_0x41ed79,_0x43a95a,this[_0x3ffe('0x72')])),this[_0x3ffe('0x34')]('discardAllSuggestions'),_0x41ed79[_0x3ffe('0xf0')]['add'](_0x3ffe('0x77'),new _0x3f5cb8(_0x41ed79,_0x233916,this[_0x3ffe('0x72')])),this[_0x3ffe('0x34')](_0x3ffe('0x77')),_0x41ed79[_0x3ffe('0xf0')]['add']('discardSelectedSuggestions',new _0x3f5cb8(_0x41ed79,_0x43a95a,this[_0x3ffe('0x72')])),this['enableCommand'](_0x3ffe('0xf3'));const _0x3e979c=_0x41ed79[_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0x6b'));this[_0x3ffe('0xb0')](_0x3e979c,_0x3ffe('0x17'),(_0x365412,{threadId:_0x233cea})=>{const _0x50d71a=this[_0x3ffe('0x72')][_0x3ffe('0x43')](_0x233cea);_0x50d71a&&_0x50d71a[_0x3ffe('0xcd')]&&0x1===_0x50d71a[_0x3ffe('0xcd')][_0x3ffe('0x97')]&&this[_0x3ffe('0xa5')](_0x233cea,{'hasComments':!0x0});},{'priority':_0x3ffe('0x10b')}),this[_0x3ffe('0xb0')](_0x3e979c,'removeComment',(_0x5d5dd1,{threadId:_0x4d2c6b})=>{const _0x18f1d9=this[_0x3ffe('0x72')][_0x3ffe('0x43')](_0x4d2c6b);_0x18f1d9&&_0x18f1d9[_0x3ffe('0xcd')]&&!_0x18f1d9[_0x3ffe('0xcd')]['length']&&this[_0x3ffe('0xa5')](_0x4d2c6b,{'hasComments':!0x1});},{'priority':_0x3ffe('0x10b')});}set['adapter'](_0x44bf0e){if(this[_0x3ffe('0x120')])throw new _0x37a43b(_0x3ffe('0x5d'),this);this[_0x3ffe('0x120')]=_0x44bf0e;}get['adapter'](){return this['_adapter'];}[_0x3ffe('0x30')]({skipNotAttached:_0x48025a=!0x1,toJSON:_0x26d24c=!0x1}={}){const _0x2908ec=[];for(const _0x2baa2a of this[_0x3ffe('0x72')][_0x3ffe('0x9c')]())_0x48025a&&!_0x2baa2a[_0x3ffe('0x5a')]||_0x2908ec[_0x3ffe('0xc')](_0x2baa2a);return _0x26d24c?_0x2908ec['map'](_0x30d3d9=>_0x30d3d9[_0x3ffe('0x109')]()):_0x2908ec;}[_0x3ffe('0x14')](_0x37b0be){const _0x560310=this[_0x3ffe('0x72')]['get'](_0x37b0be);if(!_0x560310)throw new _0x37a43b(_0x3ffe('0x135'),this);return _0x560310;}[_0x3ffe('0x21')](_0x1c35cd){return this[_0x3ffe('0x72')]['has'](_0x1c35cd);}[_0x3ffe('0x91')](_0x470084){const {authorId:_0x52573a,id:_0x472f2b,attributes:_0x16f6fa}=_0x470084,[_0x11aae3,_0x1b05c7]=_0x470084[_0x3ffe('0xd4')][_0x3ffe('0x5c')](':'),_0x44f2be=this['_suggestions']['get'](_0x472f2b)||this[_0x3ffe('0x112')](_0x11aae3,_0x1b05c7,_0x472f2b,_0x52573a,_0x16f6fa);if(this[_0x3ffe('0xf8')](_0x44f2be),this[_0x3ffe('0xe1')](_0x44f2be,_0x11aae3,_0x1b05c7||null,_0x52573a),_0x44f2be[_0x3ffe('0xd6')]=_0x470084[_0x3ffe('0xd6')],_0x16f6fa&&_0x16f6fa[_0x3ffe('0xfd')]){const _0x5e884a=_0x16f6fa[_0x3ffe('0xfd')],_0x3139e2=this[_0x3ffe('0x2b')](_0x5e884a[_0x3ffe('0x84')]);_0x44f2be[_0x3ffe('0xc5')]=_0x5e884a[_0x3ffe('0xd6')],_0x44f2be[_0x3ffe('0xfe')]=_0x3139e2,_0x44f2be[_0x3ffe('0x132')]=!0x0;}else _0x44f2be[_0x3ffe('0xc5')]=_0x470084[_0x3ffe('0xd6')];switch(_0x470084[_0x3ffe('0x96')]&&(_0x44f2be['data']=_0x470084['data']),_0x470084[_0x3ffe('0x76')]&&(_0x44f2be[_0x3ffe('0x76')]=_0x470084[_0x3ffe('0x76')]),this[_0x3ffe('0x120')]&&this[_0x3ffe('0x120')][_0x3ffe('0xba')]||(_0x44f2be[_0x3ffe('0xad')]=!0x0),this[_0x3ffe('0xce')][_0x3ffe('0x43')](_0x44f2be)){case _0x3ffe('0x11d'):this[_0x3ffe('0xce')][_0x3ffe('0x12a')](_0x44f2be,'dataReady');break;case _0x3ffe('0x104'):_0x44f2be[_0x3ffe('0x5a')]?(this[_0x3ffe('0xce')][_0x3ffe('0x12a')](_0x44f2be,_0x3ffe('0x6c')),this[_0x3ffe('0xb4')]('suggestionLoaded',_0x44f2be)):this['_suggestionState']['set'](_0x44f2be,_0x3ffe('0x134'));}return _0x44f2be;}[_0x3ffe('0x92')](_0x4b0785){this[_0x3ffe('0x107')](()=>{this['editor'][_0x3ffe('0xd2')][_0x3ffe('0x58')](()=>{for(const _0x1fde88 of _0x4b0785[_0x3ffe('0x6e')]())_0x1fde88['accept']();});});}[_0x3ffe('0xbf')](_0x5a426a){this['forceDefaultExecution'](()=>{this[_0x3ffe('0x119')][_0x3ffe('0xd2')][_0x3ffe('0x58')](()=>{for(const _0x32a605 of _0x5a426a[_0x3ffe('0x6e')]())_0x32a605['discard']();});});}[_0x3ffe('0x34')](_0x1d5d1b,_0x5c7d54){const _0x2d16c2=this['editor'][_0x3ffe('0xf0')][_0x3ffe('0x43')](_0x1d5d1b);if(!_0x2d16c2)throw new _0x37a43b(_0x3ffe('0x2a'),this,{'commandName':_0x1d5d1b});this[_0x3ffe('0xff')]['add'](_0x2d16c2),_0x5c7d54&&_0x2d16c2['on'](_0x3ffe('0x3b'),(_0x35a0cd,_0xc2c01)=>{this['trackChangesCommand'][_0x3ffe('0xde')]&&(this[_0x3ffe('0x44')]||_0xc2c01['length']>0x0&&_0xc2c01[_0xc2c01[_0x3ffe('0x97')]-0x1]&&_0xc2c01[_0xc2c01[_0x3ffe('0x97')]-0x1]['forceDefaultExecution']||(_0x5c7d54((..._0xe5d5fb)=>_0x2d16c2[_0x3ffe('0x3b')](..._0xe5d5fb,{'forceDefaultExecution':!0x0}),..._0xc2c01),_0x35a0cd[_0x3ffe('0x40')]()));},{'priority':_0x3ffe('0x54')});}[_0x3ffe('0x107')](_0x169a52){let _0x3cb340,_0x123349;const _0x1dcf2f=this[_0x3ffe('0x44')];this[_0x3ffe('0x44')]=!0x0;try{_0x3cb340=_0x169a52();}catch(_0x1ef9bf){_0x123349=_0x1ef9bf;}return _0x1dcf2f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x123349&&_0x37a43b['rethrowUnexpectedError'](_0x123349,this),_0x3cb340;}['markInsertion'](_0x4238c6,_0x222bf8=null,_0x4248f7={}){if(_0x4238c6[_0x3ffe('0x7a')])return null;const _0x17d413=this[_0x3ffe('0x119')][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'];for(const {suggestion:_0x3e68a8,meta:_0x1c58c7}of this[_0x3ffe('0x12c')](_0x4238c6,_0x3ffe('0x52')))if(_0x1c58c7[_0x3ffe('0xda')]){if(!_0x1c58c7['isNextTo']){if(!this[_0x3ffe('0xae')]&&_0x1c58c7[_0x3ffe('0x3d')])continue;return _0x3e68a8;}if(_0x222bf8==_0x3e68a8['subType']){const _0x26ca76=_0x3e68a8[_0x3ffe('0x70')]();return _0x26ca76['start']['isEqual'](_0x4238c6[_0x3ffe('0x9')])?this['_setSuggestionRange'](_0x3e68a8,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x4238c6[_0x3ffe('0x62')],_0x26ca76[_0x3ffe('0x9')])):this[_0x3ffe('0xf6')](_0x3e68a8,this['_model'][_0x3ffe('0x3c')](_0x26ca76[_0x3ffe('0x62')],_0x4238c6[_0x3ffe('0x9')])),_0x3e68a8;}}const _0x24f41e=_0x3a1dd6(),_0x300f69=_0x17d413['id'],_0x4fe603=_0x222bf8?_0x3ffe('0x111')+_0x222bf8:'insertion',_0x29fcf3=this[_0x3ffe('0xdf')]({'id':_0x24f41e,'type':_0x4fe603,'createdAt':new Date(),'authorId':_0x300f69,'attributes':_0x4248f7});return this[_0x3ffe('0x93')](_0x4fe603,_0x24f41e,_0x300f69,_0x4238c6),_0x29fcf3;}[_0x3ffe('0x7c')](_0x4ce8f0,_0x5550c7='multi',_0x43d522={}){const _0x1f10cb=this['editor'][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'],_0x25063a=this['_suggestionFactory'][_0x3ffe('0xac')](_0x3ffe('0x52'),_0x5550c7,_0x3ffe('0xc8'));for(const _0x15bff4 of this[_0x3ffe('0x30')]())if(_0x15bff4[_0x3ffe('0xfe')]['id']==_0x1f10cb['id']&&_0x3ffe('0x52')==_0x15bff4[_0x3ffe('0xd4')]&&_0x15bff4[_0x3ffe('0x8e')]==_0x5550c7&&(_0x25063a(_0x15bff4[_0x3ffe('0x16')](),_0x4ce8f0)||_0x25063a(_0x4ce8f0,_0x15bff4[_0x3ffe('0x16')]()))){for(const _0x52df03 of _0x4ce8f0)_0x15bff4[_0x3ffe('0xe6')](_0x52df03);return _0x15bff4;}if(this[_0x3ffe('0xae')])for(const _0x13a295 of _0x4ce8f0)for(const {suggestion:_0x2d863b,meta:_0x3ecffe}of this[_0x3ffe('0x12c')](_0x13a295,_0x3ffe('0x52'))){if(!_0x3ecffe[_0x3ffe('0xda')])continue;let _0x19d7ca=!0x0;for(const _0x41e857 of _0x2d863b[_0x3ffe('0x16')]())for(const _0x276ce3 of _0x4ce8f0)if(!_0x41e857[_0x3ffe('0x51')](_0x276ce3)){_0x19d7ca=!0x1;break;}if(_0x19d7ca)return _0x2d863b;}const _0x4bb53b=_0x3a1dd6(),_0x33c0e6=_0x1f10cb['id'],_0x5eabef=_0x3ffe('0x111')+_0x5550c7,_0x3c2403=this['_setSuggestionData']({'id':_0x4bb53b,'type':_0x5eabef,'createdAt':new Date(),'authorId':_0x33c0e6,'attributes':_0x43d522});for(const _0x14e53e of _0x4ce8f0)this[_0x3ffe('0x93')](_0x5eabef,_0x4bb53b,_0x33c0e6,_0x14e53e,_0x5dd847[_0x3ffe('0x57')]());return _0x3c2403;}[_0x3ffe('0x124')](_0x53e1f8,_0x48eaed,_0xe5a466=null,_0xef3eb2={}){if(_0xe5a466=_0xe5a466||$t(_0x48eaed),_0x53e1f8[_0x3ffe('0x7a')])return null;if(_0x3ffe('0x29')===this[_0x3ffe('0xb')]){const _0x4b2e0a=this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0x3ffe('0x7e'),_0xe5a466,_0x3ffe('0xeb'));return this['forceDefaultExecution'](()=>_0x4b2e0a([_0x53e1f8],_0x48eaed,_0xef3eb2)),null;}const _0x5bbe75=this[_0x3ffe('0x119')][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'],_0x2a87a0=[];if(_0x3ffe('0xa2')!==this[_0x3ffe('0xb')])for(const {suggestion:_0x26550b,meta:_0x10670e}of this['_findSuggestions'](_0x53e1f8,_0x3ffe('0x52')))_0x10670e[_0x3ffe('0xda')]&&!_0x10670e['isInsideObject']&&_0x2a87a0[_0x3ffe('0xc')](..._0x26550b[_0x3ffe('0x16')]());const _0x3f521f=function(_0x33c6b3,_0x2af523){const _0x7895b6=[];for(const _0x4d9bd9 of _0x2af523){const _0x353e72=_0x33c6b3['getIntersection'](_0x4d9bd9);_0x353e72&&_0x7895b6[_0x3ffe('0xc')](_0x353e72);}return _0x7895b6;}(_0x53e1f8,_0x2a87a0),_0x600250=function(_0x561e1d,_0x3a92bf){const _0x5dfc3b=[_0x561e1d];for(const _0x3ec168 of _0x3a92bf){let _0x29c17a=0x0;for(;_0x29c17a<_0x5dfc3b[_0x3ffe('0x97')];){const _0x40a9e5=_0x5dfc3b[_0x29c17a][_0x3ffe('0x0')](_0x3ec168);_0x5dfc3b[_0x3ffe('0x101')](_0x29c17a,0x1,..._0x40a9e5),_0x29c17a+=_0x40a9e5[_0x3ffe('0x97')];}}return _0x5dfc3b;}(_0x53e1f8,_0x2a87a0);_0x3f521f[_0x3ffe('0x97')]&&this[_0x3ffe('0x115')][_0x3ffe('0x58')](()=>{for(const _0x335fb9 of _0x3f521f){const _0x31db77=this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0x3ffe('0x7e'),_0xe5a466,_0x3ffe('0xeb'));this[_0x3ffe('0x107')](()=>_0x31db77([_0x335fb9],_0x48eaed,_0xef3eb2));}});for(const _0x37f208 of _0x600250){let _0x58eff8=null,_0x2bd37b=_0x37f208['start'],_0x4c0d31=_0x37f208[_0x3ffe('0x9')];for(const {suggestion:_0x23f6de,meta:_0x3f124c}of this[_0x3ffe('0x12c')](_0x37f208,_0x3ffe('0x7e'))){if(!_0x3f124c[_0x3ffe('0xda')])continue;if(_0x23f6de[_0x3ffe('0x8e')]!=_0xe5a466)continue;const _0x50042d=_0x23f6de[_0x3ffe('0x70')]();if(_0x50042d[_0x3ffe('0x51')](_0x37f208,!0x0))return null;_0x2bd37b=_0x2bd37b[_0x3ffe('0x59')](_0x50042d[_0x3ffe('0x62')])?_0x2bd37b:_0x50042d[_0x3ffe('0x62')],_0x4c0d31=_0x4c0d31[_0x3ffe('0xe0')](_0x50042d[_0x3ffe('0x9')])?_0x4c0d31:_0x50042d['end'],_0x58eff8?_0x50042d[_0x3ffe('0x62')]['isBefore'](_0x58eff8['getFirstRange']()[_0x3ffe('0x62')])?(_0x58eff8['removeMarkers'](),_0x58eff8=_0x23f6de):_0x23f6de[_0x3ffe('0x126')]():_0x58eff8=_0x23f6de;}const _0x4d6245=this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x2bd37b,_0x4c0d31);if(_0x58eff8)this['_setSuggestionRange'](_0x58eff8,_0x4d6245);else{const _0x26ef27=_0x3a1dd6(),_0x57ec56=_0x5bbe75['id'];this['_setSuggestionData']({'id':_0x26ef27,'type':_0x3ffe('0x3a')+_0xe5a466,'data':_0x48eaed,'createdAt':new Date(),'authorId':_0x57ec56,'attributes':_0xef3eb2}),this[_0x3ffe('0x93')](_0x3ffe('0x3a')+_0xe5a466,_0x26ef27,_0x57ec56,_0x4d6245);}}return null;}['markBlockFormat'](_0x5ce431,_0x55dee0,_0x5ec108=[],_0x728d52=null,_0x16be80={}){_0x55dee0['formatGroupId']||(_0x55dee0['formatGroupId']=_0x55dee0[_0x3ffe('0xa7')]),_0x55dee0[_0x3ffe('0x1e')]=_0x5ce431['is']('range'),_0x728d52=_0x728d52||$t(_0x55dee0);const _0x5da4df=_0x5ec108[_0x3ffe('0x3e')](_0x32c790=>Rt(_0x32c790,this[_0x3ffe('0x115')])),_0x55cafa=_0x5ce431['is']('range')?_0x5ce431:Rt(_0x5ce431,this[_0x3ffe('0x115')]);if(_0x3ffe('0x29')===this[_0x3ffe('0xb')]){const _0x1510c5=this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0x3ffe('0x22'),_0x728d52,'accept');return this[_0x3ffe('0x107')](()=>_0x1510c5([_0x55cafa],_0x55dee0,_0x16be80)),null;}_0x5da4df[_0x3ffe('0xc')](_0x55cafa);let _0x405d30=!0x0;for(const _0x5d9e7b of _0x5da4df)if(!this[_0x3ffe('0xd')](_0x5d9e7b)){_0x405d30=!0x1;break;}if(_0x405d30&&_0x3ffe('0xa2')!==this[_0x3ffe('0xb')]){const _0x14205b=this[_0x3ffe('0x1d')][_0x3ffe('0xac')]('formatBlock',_0x728d52,_0x3ffe('0xeb'));return this[_0x3ffe('0x107')](()=>_0x14205b([_0x55cafa],_0x55dee0,_0x16be80)),null;}let _0x53f3e1=null,_0x185aac=_0x55cafa[_0x3ffe('0x62')],_0x5e3b07=_0x55cafa[_0x3ffe('0x9')];for(const {suggestion:_0x54bc66,meta:_0x435677}of this[_0x3ffe('0x12c')](_0x55cafa,'formatBlock')){if(!_0x435677[_0x3ffe('0xda')]||_0x435677[_0x3ffe('0x3')]||_0x435677[_0x3ffe('0x3d')]||_0x435677[_0x3ffe('0x8d')])continue;if(_0x54bc66[_0x3ffe('0x96')][_0x3ffe('0x79')]!=_0x55dee0['formatGroupId'])continue;const _0x4319c4=_0x54bc66['getFirstRange']();if(_0x54bc66['subType']==_0x728d52){if(_0x4319c4[_0x3ffe('0x51')](_0x55cafa,!0x0))return null;_0x185aac=_0x185aac[_0x3ffe('0x59')](_0x4319c4[_0x3ffe('0x62')])?_0x185aac:_0x4319c4[_0x3ffe('0x62')],_0x5e3b07=_0x5e3b07[_0x3ffe('0xe0')](_0x4319c4[_0x3ffe('0x9')])?_0x5e3b07:_0x4319c4['end'],_0x53f3e1?_0x4319c4['start'][_0x3ffe('0x59')](_0x53f3e1[_0x3ffe('0x70')]()[_0x3ffe('0x62')])?(_0x53f3e1[_0x3ffe('0x126')](),_0x53f3e1=_0x54bc66):_0x54bc66[_0x3ffe('0x126')]():_0x53f3e1=_0x54bc66;}else{const _0x346d55=_0x55cafa['getIntersection'](_0x4319c4);this['_cutOutSuggestionMarker'](_0x54bc66,_0x346d55);}}const _0x1fdd64=this['editor'][_0x3ffe('0xa0')][_0x3ffe('0x43')]('Users')['me'],_0x473222=_0x3a1dd6(),_0x5a4d5d=_0x1fdd64['id'];if(_0x53f3e1)return this['_setSuggestionRange'](_0x53f3e1,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x185aac,_0x5e3b07)),_0x53f3e1;{const _0x36b0f4=this['_setSuggestionData']({'id':_0x473222,'type':_0x3ffe('0xe2')+_0x728d52,'data':_0x55dee0,'createdAt':new Date(),'authorId':_0x5a4d5d,'attributes':_0x16be80});return this['_addSuggestionMarker'](_0x3ffe('0xe2')+_0x728d52,_0x473222,_0x5a4d5d,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x185aac,_0x5e3b07)),_0x36b0f4;}}[_0x3ffe('0xcf')](_0x510267,_0x1586c9,_0x4fd92b=[],_0x3d4cd4=null,_0x405482={}){_0x1586c9[_0x3ffe('0x79')]||(_0x1586c9[_0x3ffe('0x79')]=_0x1586c9[_0x3ffe('0xa7')]);const _0x5d870b=_0x510267[0x0];_0x1586c9['multipleBlocks']=_0x5d870b['is'](_0x3ffe('0x46')),_0x3d4cd4=_0x3d4cd4||$t(_0x1586c9);const _0x2fbca3=_0x4fd92b[_0x3ffe('0x3e')](_0x47fcb6=>Rt(_0x47fcb6,this[_0x3ffe('0x115')])),_0xb9153f=_0x5d870b['is'](_0x3ffe('0x46'))?_0x510267:_0x510267[_0x3ffe('0x3e')](_0x52439f=>Rt(_0x52439f,this[_0x3ffe('0x115')]));if(_0x3ffe('0x29')===this[_0x3ffe('0xb')]){const _0x7c0d46=this['_suggestionFactory']['getSuggestionCallback'](_0x3ffe('0x22'),_0x3d4cd4,_0x3ffe('0xeb'));return this['forceDefaultExecution'](()=>_0x7c0d46(_0xb9153f,_0x1586c9,_0x405482)),null;}_0x2fbca3[_0x3ffe('0xc')](..._0xb9153f);let _0x1f5aa3=!0x0;for(const _0x519922 of _0x2fbca3)if(!this[_0x3ffe('0xd')](_0x519922)){_0x1f5aa3=!0x1;break;}if(_0x1f5aa3&&_0x3ffe('0xa2')!==this['_trackFormatChanges']){const _0x8987d0=this[_0x3ffe('0x1d')][_0x3ffe('0xac')]('formatBlock',_0x3d4cd4,_0x3ffe('0xeb'));return this[_0x3ffe('0x107')](()=>_0x8987d0(_0xb9153f,_0x1586c9,_0x405482)),null;}const _0x6888f1=this['editor']['plugins'][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'];for(const _0x205763 of this['getSuggestions']()){if(_0x205763[_0x3ffe('0xfe')]['id']!=_0x6888f1['id'])continue;if('formatBlock'!=_0x205763[_0x3ffe('0xd4')]||_0x205763[_0x3ffe('0x96')][_0x3ffe('0x79')]!=_0x1586c9[_0x3ffe('0x79')])continue;const _0x8a11ef=_0x205763[_0x3ffe('0x8e')]==_0x3d4cd4;for(let _0x64f8d2=0x0;_0x64f8d2<_0xb9153f[_0x3ffe('0x97')];_0x64f8d2++){const _0x20f5e0=_0xb9153f[_0x64f8d2];for(const _0x54baf6 of _0x205763[_0x3ffe('0x9b')]()){const _0x2b5f5b=_0x54baf6[_0x3ffe('0x4b')]();if(_0x20f5e0['isEqual'](_0x2b5f5b)){_0x8a11ef?(_0xb9153f['splice'](_0x64f8d2,0x1),_0x64f8d2--):_0x205763['removeMarker'](_0x54baf6[_0x3ffe('0x9a')]);break;}}}}if(0x0==_0xb9153f[_0x3ffe('0x97')])return null;const _0x3e3c06=this[_0x3ffe('0x1d')][_0x3ffe('0xac')]('formatBlock',_0x3d4cd4,'join');for(const _0x5ce9c1 of this[_0x3ffe('0x30')]())if(_0x5ce9c1[_0x3ffe('0xfe')]['id']==_0x6888f1['id']&&_0x3ffe('0x22')==_0x5ce9c1[_0x3ffe('0xd4')]&&_0x5ce9c1[_0x3ffe('0x96')][_0x3ffe('0x79')]==_0x1586c9[_0x3ffe('0x79')]&&_0x5ce9c1[_0x3ffe('0x8e')]==_0x3d4cd4&&(_0x3e3c06(_0x5ce9c1[_0x3ffe('0x16')](),_0xb9153f)||_0x3e3c06(_0xb9153f,_0x5ce9c1[_0x3ffe('0x16')]()))){for(const _0x21e589 of _0xb9153f)_0x5ce9c1['addRange'](_0x21e589);return _0x5ce9c1;}const _0x10df83=_0x3a1dd6(),_0x46ad7b=_0x6888f1['id'],_0x4c6568=_0x3ffe('0xe2')+_0x3d4cd4,_0x555a4b=this[_0x3ffe('0xdf')]({'id':_0x10df83,'type':_0x4c6568,'data':_0x1586c9,'createdAt':new Date(),'authorId':_0x46ad7b,'attributes':_0x405482});for(const _0xfcb27b of _0xb9153f)this[_0x3ffe('0x93')](_0x4c6568,_0x10df83,_0x46ad7b,_0xfcb27b,_0x5dd847['getMultiRangeId']());return _0x555a4b;}[_0x3ffe('0xf9')](_0x3d5fa9,_0xbbe07b=null,_0x676a04={}){if(_0x3d5fa9[_0x3ffe('0x7a')])return null;const _0x497972=this[_0x3ffe('0x119')]['plugins'][_0x3ffe('0x43')]('Users')['me'],_0x2f0169=new _0x2a7d37(_0x3d5fa9['start'],_0x3d5fa9[_0x3ffe('0x9')]);for(const {suggestion:_0x72efa6,meta:_0x54bf56}of this[_0x3ffe('0x12c')](_0x2f0169,_0x3ffe('0x52')))if(_0x54bf56[_0x3ffe('0xda')]&&!_0x54bf56[_0x3ffe('0x3')]){if(_0x72efa6[_0x3ffe('0xf7')]){const _0x435691=_0x72efa6[_0x3ffe('0x16')]()[_0x3ffe('0x99')](_0x544158=>_0x3ffe('0xbb')!=_0x544158['root']['rootName']);_0x435691[_0x3ffe('0xd0')](_0x208ede=>_0x2f0169[_0x3ffe('0x51')](_0x208ede,!0x0))&&_0x72efa6[_0x3ffe('0x10c')]();if(_0x435691[_0x3ffe('0x82')](_0x56d026=>_0x56d026[_0x3ffe('0x51')](_0x2f0169,!0x0))){const _0x3d987d=this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0x3ffe('0xa8'),_0xbbe07b,_0x3ffe('0xeb'));return this[_0x3ffe('0x107')](()=>_0x3d987d([_0x2f0169],null,_0x676a04)),null;}}else{const _0x39c912=_0x2f0169[_0x3ffe('0x5')](_0x72efa6[_0x3ffe('0x70')]());null!==_0x39c912&&_0x72efa6[_0x3ffe('0x4a')]([_0x39c912],null,_0x676a04);}}if(_0x2f0169[_0x3ffe('0xaf')](),_0x2f0169['isCollapsed']||'$graveyard'==_0x2f0169[_0x3ffe('0x113')][_0x3ffe('0x33')])return null;let _0x1c9777=null,_0x1ab0e7=_0x2f0169[_0x3ffe('0x62')],_0x24483b=_0x2f0169[_0x3ffe('0x9')];for(const {suggestion:_0xdcbb61,meta:_0x5c6442}of this['_findSuggestions'](_0x2f0169,_0x3ffe('0xa8')))if(_0x5c6442[_0x3ffe('0xda')]){if(_0xdcbb61['isMultiRange']&&this[_0x3ffe('0xae')]){let _0x4777bf=!0x0;for(const _0x37be49 of _0xdcbb61['getRanges']()){if(_0x37be49[_0x3ffe('0x51')](_0x2f0169,!0x0))return _0xdcbb61;_0x2f0169['containsRange'](_0x37be49)||(_0x4777bf=!0x1);}_0x4777bf&&_0xdcbb61[_0x3ffe('0x10c')]();}else{const _0x33e657=_0xdcbb61[_0x3ffe('0x70')]();if(_0x33e657[_0x3ffe('0x51')](_0x2f0169,!0x0)){if(!this[_0x3ffe('0xae')]&&_0x5c6442[_0x3ffe('0x3d')])continue;return _0xdcbb61;}_0x1ab0e7=_0x1ab0e7[_0x3ffe('0x59')](_0x33e657[_0x3ffe('0x62')])?_0x1ab0e7:_0x33e657[_0x3ffe('0x62')],_0x24483b=_0x24483b[_0x3ffe('0xe0')](_0x33e657[_0x3ffe('0x9')])?_0x24483b:_0x33e657['end'],_0x1c9777?_0x33e657[_0x3ffe('0x62')]['isBefore'](_0x1c9777[_0x3ffe('0x70')]()['start'])?(_0x1c9777[_0x3ffe('0x126')](),_0x1c9777=_0xdcbb61):_0xdcbb61['removeMarkers']():_0x1c9777=_0xdcbb61;}}if(_0x1c9777)return this['_setSuggestionRange'](_0x1c9777,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x1ab0e7,_0x24483b)),_0x1c9777;{const _0x49d3d2=_0x3a1dd6(),_0x58626e=this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x1ab0e7,_0x24483b),_0x4ea5b8=_0x497972['id'],_0x1895bd=_0xbbe07b?_0x3ffe('0xd5')+_0xbbe07b:_0x3ffe('0xa8'),_0x22c6a0=this[_0x3ffe('0xdf')]({'id':_0x49d3d2,'type':_0x1895bd,'createdAt':new Date(),'authorId':_0x4ea5b8,'attributes':_0x676a04});return this[_0x3ffe('0x93')](_0x1895bd,_0x49d3d2,_0x4ea5b8,_0x58626e),_0x22c6a0;}}['markMultiRangeDeletion'](_0x2fc496,_0x4d7b6d=_0x3ffe('0xc9'),_0x394495={}){const _0x13a3af=this[_0x3ffe('0x119')][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'],_0x537127=_0x2fc496[_0x3ffe('0x3e')](_0x45cf99=>new _0x2a7d37(_0x45cf99['start'],_0x45cf99[_0x3ffe('0x9')])),_0x317c52=new Set();for(const _0xab0ba5 of _0x537127)for(const {suggestion:_0x285d68,meta:_0x30f5d4}of this[_0x3ffe('0x12c')](_0xab0ba5,_0x3ffe('0x52')))_0x30f5d4['isOwn']&&!_0x30f5d4[_0x3ffe('0x3')]&&_0x317c52[_0x3ffe('0x127')](_0x285d68);for(const _0x1a0e1e of _0x317c52)if(_0x1a0e1e[_0x3ffe('0xf7')]){const _0x47ddaa=_0x1a0e1e[_0x3ffe('0x16')]();(!_0x1a0e1e[_0x3ffe('0x76')]||!_0x1a0e1e['attributes']['skipNestingCheck'])&&(_0x47ddaa[_0x3ffe('0xd0')](_0xcde0d=>_0x537127['some'](_0x349c68=>_0x349c68['containsRange'](_0xcde0d,!0x0)))&&_0x1a0e1e[_0x3ffe('0x10c')]());if(_0x537127[_0x3ffe('0xd0')](_0x480d9d=>_0x47ddaa['some'](_0x136326=>_0x136326[_0x3ffe('0x51')](_0x480d9d,!0x0)))){const _0x1bed05=this['_suggestionFactory'][_0x3ffe('0xac')](_0x3ffe('0xa8'),_0x4d7b6d,_0x3ffe('0xeb'));return this['forceDefaultExecution'](()=>_0x1bed05(_0x2fc496,null,_0x394495)),null;}}else{const _0x1a4263=_0x1a0e1e[_0x3ffe('0x70')]();_0x537127['some'](_0x5906b4=>_0x5906b4[_0x3ffe('0x51')](_0x1a4263,!0x0))&&_0x1a0e1e[_0x3ffe('0x10c')]();if(_0x537127[_0x3ffe('0xd0')](_0x5cc71c=>_0x1a4263[_0x3ffe('0x51')](_0x5cc71c,!0x0))){const _0x3d7071=this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0x3ffe('0xa8'),_0x4d7b6d,_0x3ffe('0xeb'));return this['forceDefaultExecution'](()=>_0x3d7071(_0x537127,null,_0x394495)),null;}}const _0x354d60=this[_0x3ffe('0x1d')][_0x3ffe('0xac')]('deletion',_0x4d7b6d,'join');let _0x266056=null;for(const _0x2d2065 of this[_0x3ffe('0x30')]())if(_0x2d2065[_0x3ffe('0xfe')]['id']==_0x13a3af['id']&&_0x2d2065['isInContent']&&_0x3ffe('0xa8')==_0x2d2065['type']&&_0x2d2065[_0x3ffe('0x8e')]==_0x4d7b6d&&(_0x354d60(_0x2d2065['getRanges'](),_0x537127)||_0x354d60(_0x537127,_0x2d2065[_0x3ffe('0x16')]()))){if(_0x266056){if(_0x2d2065[_0x3ffe('0xcd')]&&_0x2d2065[_0x3ffe('0xcd')][_0x3ffe('0x97')])continue;for(const _0x58f6ac of _0x2d2065[_0x3ffe('0x16')]())_0x266056[_0x3ffe('0x2c')](_0x58f6ac)||_0x266056[_0x3ffe('0xe6')](_0x58f6ac);_0x2d2065[_0x3ffe('0x126')]();}else{_0x266056=_0x2d2065;for(const _0x3681fa of _0x537127)_0x2d2065[_0x3ffe('0x2c')](_0x3681fa)||_0x2d2065[_0x3ffe('0xe6')](_0x3681fa);}}if(_0x266056)return _0x266056;_0x317c52[_0x3ffe('0x4d')]();for(const _0x1ae67d of _0x537127)for(const {suggestion:_0x261e1b,meta:_0x19bf70}of this[_0x3ffe('0x12c')](_0x1ae67d,_0x3ffe('0xa8')))_0x19bf70[_0x3ffe('0xda')]&&_0x317c52[_0x3ffe('0x127')](_0x261e1b);for(const _0x51cd51 of _0x317c52){const _0x2e3e44=_0x51cd51[_0x3ffe('0x16')]();if(!_0x394495||!_0x394495[_0x3ffe('0xa6')]){if(_0x537127[_0x3ffe('0xd0')](_0x4fbd76=>_0x2e3e44[_0x3ffe('0x82')](_0x228205=>_0x228205[_0x3ffe('0x51')](_0x4fbd76,!0x0))))return _0x51cd51;}(!_0x51cd51[_0x3ffe('0x76')]||!_0x51cd51[_0x3ffe('0x76')]['skipNestingCheck'])&&(_0x2e3e44['every'](_0x499d66=>_0x537127[_0x3ffe('0x82')](_0x476a5a=>_0x476a5a[_0x3ffe('0x51')](_0x499d66,!0x0)))&&_0x51cd51['discard']());}const _0x25b4a1=_0x3a1dd6(),_0x2526e8=_0x13a3af['id'],_0x1b5edc='deletion:'+_0x4d7b6d,_0x5449ba=this[_0x3ffe('0xdf')]({'id':_0x25b4a1,'type':_0x1b5edc,'createdAt':new Date(),'authorId':_0x2526e8,'attributes':_0x394495});for(const _0x597d3b of _0x537127)_0x597d3b[_0x3ffe('0xaf')](),_0x597d3b[_0x3ffe('0x7a')]||'$graveyard'==_0x597d3b[_0x3ffe('0x113')][_0x3ffe('0x33')]||this[_0x3ffe('0x93')](_0x1b5edc,_0x25b4a1,_0x2526e8,_0x597d3b,_0x5dd847[_0x3ffe('0x57')]());return _0x5449ba;}[_0x3ffe('0xf6')](_0x212866,_0x1945ef){const _0x5e860e=_0x212866[_0x3ffe('0xe')]();this[_0x3ffe('0x115')][_0x3ffe('0x58')](_0x3d39b2=>{_0x3d39b2[_0x3ffe('0x2')](_0x5e860e,{'range':_0x1945ef});});}[_0x3ffe('0xf8')](_0x56810c){const _0x3a6160=_0x56810c['id'],_0x4d3e7c=this[_0x3ffe('0x119')]['config'][_0x3ffe('0x43')](_0x3ffe('0x11c'));this[_0x3ffe('0x5b')][_0x3ffe('0x41')](_0x3a6160)||this[_0x3ffe('0x5b')]['addCommentThread']({'channelId':_0x4d3e7c,'threadId':_0x3a6160,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xdb65e0=this[_0x3ffe('0x5b')][_0x3ffe('0x67')](_0x3a6160);_0xdb65e0['unbind'](_0x3ffe('0xee')),_0xdb65e0[_0x3ffe('0xee')]=!0x1,_0x56810c[_0x3ffe('0xcd')]=_0xdb65e0;}[_0x3ffe('0xe1')](_0x1e1f92,_0x1f6ad1,_0x2db023,_0x2b4a4d){if(_0x1e1f92['type']!=_0x1f6ad1||_0x1e1f92[_0x3ffe('0x8e')]!=_0x2db023||_0x1e1f92[_0x3ffe('0xaa')]['id']!=_0x2b4a4d)throw this['editor'][_0x3ffe('0xca')](_0x3ffe('0x49')),new _0x37a43b(_0x3ffe('0x49'),this);}[_0x3ffe('0x11a')](_0x24afa0,_0x71eba1){const _0x54ac01=_0x24afa0[_0x3ffe('0x70')]();if(_0x71eba1[_0x3ffe('0x19')](_0x54ac01))_0x24afa0['removeMarkers']();else{if(_0x54ac01[_0x3ffe('0x51')](_0x71eba1)){const _0xa17a1=this['_model'][_0x3ffe('0x12f')](_0x71eba1[_0x3ffe('0x62')][_0x3ffe('0x42')],'end');this[_0x3ffe('0xf6')](_0x24afa0,this[_0x3ffe('0x115')]['createRange'](_0x54ac01['start'],_0xa17a1));const _0x265416=_0x3a1dd6(),_0x5227d6=_0x24afa0[_0x3ffe('0xaa')]['id'],_0x395224=_0x24afa0[_0x3ffe('0xd4')]+':'+_0x24afa0[_0x3ffe('0x8e')];this[_0x3ffe('0xdf')]({'id':_0x265416,'type':_0x395224,'createdAt':new Date(),'authorId':_0x5227d6,'data':_0x24afa0[_0x3ffe('0x96')],'attributes':_0x24afa0[_0x3ffe('0x76')]});const _0x4da968=this[_0x3ffe('0x115')]['createPositionAt'](_0x71eba1['end'][_0x3ffe('0x8')],_0x3ffe('0x27')),_0x4103cf=this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x4da968,_0x54ac01['end']);this[_0x3ffe('0x93')](_0x395224,_0x265416,_0x5227d6,_0x4103cf);}else{if(_0x54ac01[_0x3ffe('0x9e')](_0x71eba1[_0x3ffe('0x62')])){const _0x28acc0=this[_0x3ffe('0x115')][_0x3ffe('0x12f')](_0x71eba1[_0x3ffe('0x62')][_0x3ffe('0x42')],'end');this[_0x3ffe('0xf6')](_0x24afa0,this['_model']['createRange'](_0x54ac01[_0x3ffe('0x62')],_0x28acc0));}else{const _0x54c46d=this[_0x3ffe('0x115')]['createPositionAt'](_0x71eba1['end']['parent'],_0x3ffe('0x27'));this['_setSuggestionRange'](_0x24afa0,this[_0x3ffe('0x115')]['createRange'](_0x54c46d,_0x54ac01[_0x3ffe('0x9')]));}}}}[_0x3ffe('0xd')](_0x990059){for(const {suggestion:_0x518c1b,meta:_0x3fdf28}of this['_findSuggestions'](_0x990059,'insertion')){if(!_0x3fdf28[_0x3ffe('0xda')])continue;const _0x294382=_0x518c1b[_0x3ffe('0x16')]();for(const _0x508aa1 of _0x294382)if(!_0x990059['getDifference'](_0x508aa1)[_0x3ffe('0x97')])return!0x0;}return!0x1;}[_0x3ffe('0xbe')](_0x525347){const _0x6a15c6=this[_0x3ffe('0x119')]['plugins']['get'](_0x3ffe('0xc7'))[_0x3ffe('0x87')](_0x525347);if(!_0x6a15c6)throw new _0x37a43b(_0x3ffe('0x80'),this);return _0x6a15c6;}[_0x3ffe('0x2b')](_0x1aa5e9){const _0x3c8bcd=this[_0x3ffe('0x119')][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7')),_0x4000b0=_0x56ef00(_0x3ffe('0xab')+_0x1aa5e9),_0x55eadc=_0x3c8bcd[_0x3ffe('0x87')](_0x4000b0);return _0x55eadc||_0x3c8bcd[_0x3ffe('0x68')]({'id':_0x4000b0,'name':_0x1aa5e9});}[_0x3ffe('0x112')](_0x33efa4,_0x280ec9,_0x1a5dc7,_0x3fd152,_0xcb1b75){const _0x55dd74=this[_0x3ffe('0xbe')](_0x3fd152),_0x5846d6=this[_0x3ffe('0x1d')]['buildSuggestion'](_0x33efa4,_0x280ec9,_0x1a5dc7,_0x55dd74,_0xcb1b75,_0x2111d1=>this[_0x3ffe('0xa5')](_0x1a5dc7,{'attributes':_0x2111d1}));return this['listenTo'](_0x5846d6,_0x3ffe('0xeb'),()=>{this['_updateSuggestionData'](_0x1a5dc7,{'state':_0x3ffe('0xe5')});},{'priority':_0x3ffe('0x54')}),this[_0x3ffe('0xb0')](_0x5846d6,'discard',()=>{this[_0x3ffe('0xa5')](_0x1a5dc7,{'state':_0x3ffe('0x3f')});},{'priority':_0x3ffe('0x54')}),this[_0x3ffe('0x72')][_0x3ffe('0x12a')](_0x1a5dc7,_0x5846d6),this['_suggestionState']['set'](_0x5846d6,_0x3ffe('0x11d')),_0x5846d6;}[_0x3ffe('0x4c')](_0x1070bb){const _0x2448e4=_0x1070bb[_0x3ffe('0x5c')](':');return{'group':_0x2448e4[0x0],'type':_0x2448e4[0x1],'subType':_0x2448e4[_0x3ffe('0x97')]>=0x5?_0x2448e4[0x2]:null,'id':_0x2448e4[_0x3ffe('0x97')]<0x5?_0x2448e4[0x2]:_0x2448e4[0x3],'authorId':_0x2448e4['length']<0x5?_0x2448e4[0x3]:_0x2448e4[0x4],'markerCount':0x6==_0x2448e4[_0x3ffe('0x97')]?_0x2448e4[0x5]:null};}[_0x3ffe('0xdb')](_0x722a34,_0x314d3d,_0x1f2d8b){const _0x5d6e0c=_0x722a34[_0x3ffe('0x70')](),_0x4f6137=_0x5d6e0c[_0x3ffe('0x62')],_0xa17232=_0x5d6e0c[_0x3ffe('0x9')];this[_0x3ffe('0xf6')](_0x722a34,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x4f6137,_0x314d3d));const _0x5c57df=_0x3a1dd6(),_0x30e3a2=_0x722a34['creator']['id'],_0x5375f0=_0x722a34[_0x3ffe('0xd4')]+(_0x722a34[_0x3ffe('0x8e')]?':'+_0x722a34['subType']:'');this[_0x3ffe('0xdf')]({'id':_0x5c57df,'type':_0x5375f0,'createdAt':new Date(),'authorId':_0x30e3a2,'originalSuggestionId':_0x722a34['id'],'attributes':_0x722a34[_0x3ffe('0x76')],'data':_0x722a34[_0x3ffe('0x96')]}),_0x3ffe('0x22')==_0x722a34[_0x3ffe('0xd4')]&&(_0x1f2d8b=this[_0x3ffe('0x115')]['createPositionBefore'](_0x1f2d8b[_0x3ffe('0x8')])),this[_0x3ffe('0x93')](_0x5375f0,_0x5c57df,_0x30e3a2,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x1f2d8b,_0xa17232));}[_0x3ffe('0x12c')](_0xbb3341,_0x54447a=null){const _0x1b63dc=[],_0x183e80=this[_0x3ffe('0x115')][_0x3ffe('0xb5')],_0x4b9b9c=this['editor'][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'];for(const _0x4099e3 of this['getSuggestions']())if(_0x4099e3['isInContent']&&(!_0x54447a||_0x4099e3[_0x3ffe('0xd4')]==_0x54447a))for(const _0x461bca of _0x4099e3[_0x3ffe('0x16')]()){const _0x227b6c=_0xbb3341['start'][_0x3ffe('0x19')](_0x461bca[_0x3ffe('0x9')])||_0xbb3341[_0x3ffe('0x9')]['isEqual'](_0x461bca['start']);if(_0x227b6c||_0xbb3341[_0x3ffe('0x5')](_0x461bca)){const _0x21269b=_0xbb3341[_0x3ffe('0x51')](_0x461bca)&&Bt(_0x183e80,_0x461bca[_0x3ffe('0x62')],_0xbb3341),_0x104786=_0x461bca[_0x3ffe('0x51')](_0xbb3341)&&Bt(_0x183e80,_0xbb3341['start'],_0x461bca);_0x1b63dc[_0x3ffe('0xc')]({'suggestion':_0x4099e3,'meta':{'isOwn':_0x4b9b9c==_0x4099e3[_0x3ffe('0xfe')],'isNextTo':_0x227b6c,'isInsideObject':_0x21269b,'containsRangeInObject':_0x104786}});break;}}return _0x1b63dc;}['_addSuggestionMarker'](_0x13d151,_0x60f370,_0x151640,_0x33f330,_0xd81f9b){this['_model'][_0x3ffe('0x58')](_0x3f604a=>{let _0x4464d3=_0x3ffe('0xe8')+_0x13d151+':'+_0x60f370+':'+_0x151640;_0xd81f9b&&(_0x4464d3=_0x4464d3+':'+_0xd81f9b),_0x3f604a[_0x3ffe('0xd7')](_0x4464d3,{'range':_0x33f330,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3ffe('0xd1')](_0x2f4be8){const _0x1b934f=_0x2f4be8[_0x3ffe('0x6a')],_0x3a1298=_0x2f4be8[_0x3ffe('0x4e')];_0x2f4be8[_0x3ffe('0x6a')]=null,null!=_0x1b934f&&(_0x1b934f[_0x3ffe('0x4e')]=null),_0x2f4be8['next']=null,null!=_0x3a1298&&(_0x3a1298[_0x3ffe('0x6a')]=null),'ready'==this[_0x3ffe('0xce')]['get'](_0x2f4be8)&&(this[_0x3ffe('0xce')][_0x3ffe('0x12a')](_0x2f4be8,_0x3ffe('0x134')),this[_0x3ffe('0xb4')](_0x3ffe('0x4'),_0x2f4be8,_0x1b934f,_0x3a1298));}[_0x3ffe('0xdf')](_0x1e4c13){const _0x161365=_0x1e4c13['id'],_0x1e49a1=this[_0x3ffe('0x91')](_0x1e4c13);if(this['_adapter']&&this[_0x3ffe('0x120')][_0x3ffe('0xba')]){const _0x1e7c8b=this[_0x3ffe('0x119')]['plugins'][_0x3ffe('0x43')](_0x3ffe('0x4f')),_0x10a00b=_0x1e49a1['hasComments'],_0x400933=_0x1e49a1[_0x3ffe('0x8e')]?_0x1e49a1[_0x3ffe('0xd4')]+':'+_0x1e49a1[_0x3ffe('0x8e')]:_0x1e49a1['type'],_0x1efba6=this[_0x3ffe('0x119')][_0x3ffe('0x86')],_0x204d5a=_0x1e7c8b[_0x3ffe('0x127')](_0x34e506(_0x1efba6,_0x3ffe('0x131'))),_0x2ab233={'id':_0x161365,'type':_0x400933,'hasComments':_0x10a00b,'data':_0x1e4c13[_0x3ffe('0x96')]||null,'originalSuggestionId':_0x1e4c13[_0x3ffe('0xe9')]||null,'attributes':_0x1e49a1['attributes']};this[_0x3ffe('0x120')][_0x3ffe('0xba')](_0x2ab233)['then'](_0x42cd27=>{_0x1e49a1['_saved']=!0x0,_0x1e7c8b[_0x3ffe('0x118')](_0x204d5a),_0x42cd27&&_0x42cd27[_0x3ffe('0xd6')]&&(this[_0x3ffe('0x72')][_0x3ffe('0x43')](_0x161365)[_0x3ffe('0xd6')]=_0x42cd27['createdAt']);})[_0x3ffe('0x37')](_0x393c29=>{throw _0x3d2ca4('error-saving-suggestion-data-suggestion-discarded'),this[_0x3ffe('0x119')]['model'][_0x3ffe('0x11')]({'isUndoable':!0x1},()=>{_0x1e49a1['discard']();}),_0x1e49a1['stopListening'](),this[_0x3ffe('0x72')][_0x3ffe('0x94')](_0x1e49a1['id']),this[_0x3ffe('0xce')][_0x3ffe('0x94')](_0x1e49a1),_0x393c29;});}return _0x1e49a1;}['_updateSuggestionData'](_0x13baad,_0xbec283){const _0x2c1bf1=this['editor']['plugins']['get'](_0x3ffe('0x4f')),_0x44cb4c=this[_0x3ffe('0x14')](_0x13baad);if(this[_0x3ffe('0x120')]&&this[_0x3ffe('0x120')][_0x3ffe('0x75')]){if(_0x44cb4c[_0x3ffe('0xad')]){const _0x39da6c=_0x2c1bf1[_0x3ffe('0x127')](_0x34e506(this[_0x3ffe('0x119')]['locale'],_0x3ffe('0x131')));this[_0x3ffe('0x120')]['updateSuggestion'](_0x13baad,_0xbec283)[_0x3ffe('0x102')](()=>{_0x2c1bf1[_0x3ffe('0x118')](_0x39da6c);});}else _0x44cb4c['on'](_0x3ffe('0x8a'),()=>{this[_0x3ffe('0xa5')](_0x13baad,_0xbec283);});}}[_0x3ffe('0x47')](_0x44102d){if(!this[_0x3ffe('0x120')]||!this[_0x3ffe('0x120')][_0x3ffe('0x14')])throw new _0x37a43b('track-changes-adapter-missing-getsuggestion',this);return this[_0x3ffe('0x120')]['getSuggestion'](_0x44102d);}['_handleNewSuggestionMarker'](_0x51d13f){const {id:_0x49d567,type:_0x5823be,subType:_0x12e58c,authorId:_0x3346d4}=this[_0x3ffe('0x4c')](_0x51d13f),_0x2736ff=this[_0x3ffe('0x72')][_0x3ffe('0x43')](_0x49d567)||this[_0x3ffe('0x112')](_0x5823be,_0x12e58c,_0x49d567,_0x3346d4,{});switch(this[_0x3ffe('0xe1')](_0x2736ff,_0x5823be,_0x12e58c,_0x3346d4),this[_0x3ffe('0xce')][_0x3ffe('0x43')](_0x2736ff)){case'notReady':this[_0x3ffe('0x47')](_0x49d567)['then'](_0x5c1485=>{let _0x420b7e=Promise['resolve']();_0x5c1485[_0x3ffe('0xb9')]&&(_0x420b7e=this[_0x3ffe('0x5b')][_0x3ffe('0xec')]({'channelId':this['editor'][_0x3ffe('0xd8')][_0x3ffe('0x43')]('collaboration.channelId'),'threadId':_0x49d567})),_0x420b7e['then'](()=>{this['addSuggestionData'](_0x5c1485)[_0x3ffe('0xad')]=!0x0;});}),this['_suggestionState'][_0x3ffe('0x12a')](_0x2736ff,_0x3ffe('0x104'));break;case _0x3ffe('0x134'):this[_0x3ffe('0xa5')](_0x49d567,{'state':'open'});case _0x3ffe('0xfa'):this[_0x3ffe('0xce')][_0x3ffe('0x12a')](_0x2736ff,_0x3ffe('0x6c')),this[_0x3ffe('0xb4')](_0x3ffe('0x137'),_0x2736ff);break;case _0x3ffe('0x6c'):this['fire'](_0x3ffe('0x9f'),_0x2736ff);}return _0x2736ff[_0x3ffe('0x20')](_0x51d13f),_0x2736ff;}['_refreshSuggestionsChain'](_0x469b0d){const _0x116181=Array[_0x3ffe('0x13')](_0x469b0d)[_0x3ffe('0x99')](_0x2d81c6=>!_0x2d81c6[_0x3ffe('0xf7')]),_0x25682f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x139d6d=>!_0x139d6d[_0x3ffe('0xf7')]),_0x4aef36=_0x25682f[_0x3ffe('0x99')](_0x36c6f2=>!_0x469b0d[_0x3ffe('0x12e')](_0x36c6f2)),_0x310f12=new Map(_0x25682f[_0x3ffe('0x3e')](_0xdbcc82=>[_0xdbcc82,this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0xdbcc82['type'],_0xdbcc82['subType'],_0x3ffe('0x35'))])),_0x123ae7=new Map(_0x25682f[_0x3ffe('0x3e')](_0x4fe362=>[_0x4fe362,_0x4fe362[_0x3ffe('0x70')]()])),_0x2343f7=new Set(),_0x316d42=new Set();for(let _0x411733=0x0;_0x411733<_0x116181['length'];_0x411733++)_0xd2a2cc(_0x116181[_0x411733],_0x116181,_0x411733+0x1);for(let _0x819fa9=0x0;_0x819fa9<_0x116181['length'];_0x819fa9++)_0xd2a2cc(_0x116181[_0x819fa9],_0x4aef36,0x0);for(let _0x4db932=0x0;_0x4db932<_0x116181[_0x3ffe('0x97')];_0x4db932++){const _0x169984=_0x116181[_0x4db932];!_0x316d42['has'](_0x169984)&&_0x169984[_0x3ffe('0x6a')]&&(_0x169984[_0x3ffe('0x6a')][_0x3ffe('0x4e')]===_0x169984&&(_0x169984['previous'][_0x3ffe('0x4e')]=null),_0x169984['previous']=null),!_0x2343f7[_0x3ffe('0x12e')](_0x169984)&&_0x169984[_0x3ffe('0x4e')]&&(_0x169984[_0x3ffe('0x4e')]['previous']===_0x169984&&(_0x169984[_0x3ffe('0x4e')][_0x3ffe('0x6a')]=null),_0x169984[_0x3ffe('0x4e')]=null);}function _0xd2a2cc(_0x587c12,_0x3ff766,_0x3fa9de){for(let _0x487c4a=_0x3fa9de;_0x487c4a<_0x3ff766['length'];_0x487c4a++){const _0x40e953=_0x3dee1d(_0x587c12,_0x3ff766[_0x487c4a]);_0x40e953&&(_0x40e953[0x0][_0x3ffe('0x4e')]=_0x40e953[0x1],_0x40e953[0x1]['previous']=_0x40e953[0x0],_0x2343f7[_0x3ffe('0x127')](_0x40e953[0x0]),_0x316d42[_0x3ffe('0x127')](_0x40e953[0x1]));}}function _0x3dee1d(_0x39f968,_0x9acfb8){if(_0x39f968[_0x3ffe('0xfe')]['id']!==_0x9acfb8[_0x3ffe('0xfe')]['id'])return null;const _0x3be2f0=_0x310f12['get'](_0x39f968)(_0x39f968,_0x9acfb8,_0x123ae7['get'](_0x39f968),_0x123ae7[_0x3ffe('0x43')](_0x9acfb8));if(!_0x3be2f0)return null;return _0x310f12[_0x3ffe('0x43')](_0x9acfb8)(_0x39f968,_0x9acfb8,_0x123ae7['get'](_0x39f968),_0x123ae7[_0x3ffe('0x43')](_0x9acfb8))?_0x3be2f0[0x1][_0x3ffe('0xcd')]&&_0x3be2f0[0x1][_0x3ffe('0xcd')][_0x3ffe('0x97')]?null:_0x3be2f0:null;}}[_0x3ffe('0x106')](_0x296deb){const _0x23ddd0=Array['from'](_0x296deb),_0x134785=this[_0x3ffe('0x30')]({'skipNotAttached':!0x0}),_0x2bd0af=_0x134785['filter'](_0x20f334=>!_0x296deb[_0x3ffe('0x12e')](_0x20f334)),_0xcdc094=new Map(_0x23ddd0[_0x3ffe('0x3e')](_0x1b8719=>[_0x1b8719,this[_0x3ffe('0x1d')]['getSuggestionCallback'](_0x1b8719[_0x3ffe('0xd4')],_0x1b8719[_0x3ffe('0x8e')],_0x3ffe('0xc8'))])),_0x178f1b=new Map(_0x134785[_0x3ffe('0x3e')](_0x17f2a4=>[_0x17f2a4,_0x17f2a4[_0x3ffe('0x16')]()]));for(let _0x745a90=0x0;_0x745a90<_0x23ddd0['length'];_0x745a90++){if(_0x40afa9(this,_0x23ddd0[_0x745a90],_0x23ddd0,_0x745a90+0x1))return!0x0;}for(let _0x5a7aad=0x0;_0x5a7aad<_0x23ddd0[_0x3ffe('0x97')];_0x5a7aad++){if(_0x40afa9(this,_0x23ddd0[_0x5a7aad],_0x2bd0af,0x0))return!0x0;}return!0x1;function _0x40afa9(_0x3f3d23,_0x252263,_0x3ee6c7,_0x4330fd){for(let _0x5d7398=_0x4330fd;_0x5d7398<_0x3ee6c7[_0x3ffe('0x97')];_0x5d7398++){const _0x463b5e=_0x3ee6c7[_0x5d7398];if(_0x463b5e[_0x3ffe('0xd4')]!==_0x252263[_0x3ffe('0xd4')]||_0x463b5e[_0x3ffe('0xfe')]['id']!==_0x252263['author']['id']||_0x463b5e['subType']!==_0x252263[_0x3ffe('0x8e')])continue;const _0x5166b9=_0xcdc094['get'](_0x252263),_0x369a9f=_0x178f1b[_0x3ffe('0x43')](_0x252263),_0x18ea78=_0x178f1b['get'](_0x463b5e),_0xa9750c=_0x252263[_0x3ffe('0xcd')]&&_0x252263[_0x3ffe('0xcd')]['length'],_0x4df74f=_0x463b5e['commentThread']&&_0x463b5e[_0x3ffe('0xcd')][_0x3ffe('0x97')];if(!_0xa9750c&&_0x5166b9(_0x18ea78,_0x369a9f))return _0x3f3d23[_0x3ffe('0x7d')](_0x463b5e,_0x252263),_0x178f1b[_0x3ffe('0x94')](_0x252263),!0x0;if(!_0x4df74f&&_0x5166b9(_0x369a9f,_0x18ea78))return _0x3f3d23[_0x3ffe('0x7d')](_0x252263,_0x463b5e),_0x178f1b[_0x3ffe('0x94')](_0x463b5e),!0x0;}return!0x1;}}[_0x3ffe('0x7d')](_0xe34ac,_0xb91545){if(_0xe34ac[_0x3ffe('0xf7')])for(const _0x468b38 of _0xb91545['getRanges']())_0xe34ac['addRange'](_0x468b38);else{const _0x5111b8=_0xb91545['getFirstRange']()[_0x3ffe('0x9')];this[_0x3ffe('0xf6')](_0xe34ac,this['_model']['createRange'](_0xe34ac['getFirstRange']()['start'],_0x5111b8));}_0xb91545[_0x3ffe('0x126')]();}}class Dt{constructor(_0x180b5c){this[_0x3ffe('0xa1')]=_0x180b5c,this['_model']=_0x180b5c['model'],this[_0x3ffe('0xc4')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x3ffe('0xa9')]();}['buildSuggestion'](_0x28d909,_0x228353,_0x3f309f,_0x487ce0,_0x5ee557,_0x3edb3c){return new _0x5dd847(this['_model'],{'type':_0x28d909,'subType':_0x228353,'id':_0x3f309f,'author':_0x487ce0,'creator':_0x487ce0,'attributes':_0x5ee557,'onAttributesChange':_0x3edb3c,'onAccept':(..._0x39ea6e)=>this[_0x3ffe('0xac')](_0x28d909,_0x228353,_0x3ffe('0xeb'))(..._0x39ea6e),'onDiscard':(..._0x1ed2e2)=>this['getSuggestionCallback'](_0x28d909,_0x228353,_0x3ffe('0x10c'))(..._0x1ed2e2)});}[_0x3ffe('0x122')](_0x5541e9,_0x36b192,_0x4bfd6b,_0x185181){const _0x371690=_0x5541e9+':'+_0x36b192+':'+_0x4bfd6b;this[_0x3ffe('0xc4')][_0x3ffe('0x12a')](_0x371690,_0x185181);}[_0x3ffe('0xac')](_0x1de212,_0x37ce2e,_0x16d260){const _0x321a2b=_0x1de212+':'+_0x37ce2e+':'+_0x16d260;return this[_0x3ffe('0xc4')]['get'](_0x321a2b)||this['_defaultCallbacks'][_0x3ffe('0x43')](_0x1de212+':'+_0x16d260);}[_0x3ffe('0xa9')](){const _0x45c8ac=()=>{},_0x1ce29a=_0x1b505a=>{_0x1b505a[_0x3ffe('0xc6')]((_0x1e38c7,_0x65f4a2)=>_0x1e38c7[_0x3ffe('0x62')]['isBefore'](_0x65f4a2[_0x3ffe('0x62')])?0x1:-0x1),this[_0x3ffe('0x115')][_0x3ffe('0x58')](_0x4dd55f=>{for(const _0x41cb86 of _0x1b505a){let _0x1a2fd7;_0x1a2fd7=_0x41cb86[_0x3ffe('0x9')][_0x3ffe('0x12b')]&&_0x41cb86['end'][_0x3ffe('0x8')]==_0x41cb86[_0x3ffe('0x62')][_0x3ffe('0x10f')]?_0x4dd55f['createSelection'](_0x41cb86[_0x3ffe('0x62')][_0x3ffe('0x10f')],'on'):_0x4dd55f[_0x3ffe('0x36')](_0x41cb86),this[_0x3ffe('0x115')]['deleteContent'](_0x1a2fd7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3e74d9=(_0x1a3a72,_0x12601)=>{this['_model']['change'](_0x3339e1=>{const {commandName:_0x44eb51,commandParams:_0x18c37c=[]}=_0x12601,_0x9299e5=_0x1a3a72[_0x3ffe('0x3e')](_0x4c3e06=>(_t(_0x4c3e06)&&(_0x4c3e06=this[_0x3ffe('0x115')]['createRange'](_0x4c3e06[_0x3ffe('0x9')])),_0x4c3e06))[_0x3ffe('0x99')](_0x5b9c7f=>_0x3ffe('0xbb')!==_0x5b9c7f[_0x3ffe('0x113')][_0x3ffe('0x33')]);if(_0x9299e5[_0x3ffe('0x97')]<0x1)return;const _0x41514f=Array[_0x3ffe('0x13')](this[_0x3ffe('0x115')][_0x3ffe('0x32')][_0x3ffe('0x8c')][_0x3ffe('0x16')]())[_0x3ffe('0x3e')](_0x2762f1=>_0x2a7d37[_0x3ffe('0xef')](_0x2762f1));_0x3339e1[_0x3ffe('0xe7')](_0x9299e5);for(const _0xb41e6b of this[_0x3ffe('0xa1')][_0x3ffe('0xf0')][_0x3ffe('0xf0')]())_0xb41e6b[_0x3ffe('0x15')]();_0x18c37c[_0x3ffe('0xc')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x3ffe('0x3b')](_0x44eb51,..._0x18c37c);const _0x15d5c0=_0x41514f['filter'](_0x5ac104=>_0x3ffe('0xbb')!=_0x5ac104[_0x3ffe('0x113')]['rootName']);_0x15d5c0[_0x3ffe('0x97')]>0x0&&_0x3339e1['setSelection'](_0x15d5c0);for(const _0x3e057f of _0x41514f)_0x3e057f[_0x3ffe('0xaf')]();});},_0x222b67=(_0x40f0cf,_0xfce462)=>0x1==_0x40f0cf[_0x3ffe('0x97')]&&0x1==_0xfce462[_0x3ffe('0x97')]&&_0x40f0cf[0x0][_0x3ffe('0x9')][_0x3ffe('0x19')](_0xfce462[0x0][_0x3ffe('0x62')]),_0x2556ff=(_0x97e2c4,_0x4bbcd1,_0x1e2e88,_0x3641c)=>xt(_0x97e2c4,_0x4bbcd1,_0x1e2e88,_0x3641c,this[_0x3ffe('0x115')])?[_0x97e2c4,_0x4bbcd1]:xt(_0x4bbcd1,_0x97e2c4,_0x3641c,_0x1e2e88,this['_model'])?[_0x4bbcd1,_0x97e2c4]:null;this['_defaultCallbacks']['set'](_0x3ffe('0xdd'),_0x45c8ac),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0x26'),_0x1ce29a),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')]('insertion:join',_0x222b67),this[_0x3ffe('0xb8')]['set'](_0x3ffe('0x138'),_0x2556ff),this['_defaultCallbacks']['set'](_0x3ffe('0x103'),_0x1ce29a),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0x10e'),_0x45c8ac),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')]('deletion:join',_0x222b67),this['_defaultCallbacks']['set'](_0x3ffe('0x7f'),_0x2556ff),this['_defaultCallbacks'][_0x3ffe('0x12a')](_0x3ffe('0x6f'),_0x3e74d9),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0x50'),_0x45c8ac),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0xbd'),_0x222b67),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0x10a'),_0x45c8ac),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0x23'),_0x3e74d9),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')]('formatBlock:discard',_0x45c8ac),this['_defaultCallbacks'][_0x3ffe('0x12a')](_0x3ffe('0x121'),_0x222b67),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0xa'),_0x45c8ac);}}function Bt(_0x58e26e,_0x549688,_0x3a7748){for(const _0x5a7616 of _0x549688['parent'][_0x3ffe('0x74')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5a7616[_0x3ffe('0x113')]==_0x5a7616)return!0x1;if(!_0x3a7748[_0x3ffe('0xb6')](_0x5a7616))return!0x1;if(_0x58e26e[_0x3ffe('0xcc')](_0x5a7616)||_0x58e26e['isLimit'](_0x5a7616))return!0x0;}return!0x1;}function _t(_0x3c8db9){return _0x3c8db9[_0x3ffe('0x9')][_0x3ffe('0x8')]==_0x3c8db9[_0x3ffe('0x62')][_0x3ffe('0x10f')]&&_0x3c8db9[_0x3ffe('0x9')]['isAtStart'];}function Mt(_0x180bb6,_0x55366e,_0x20d403,_0x4f3f66){const _0x2e134c=_0x2f9bc2=>!_0x2f9bc2[_0x3ffe('0xfb')]['is'](_0x3ffe('0x8f'))&&!_0x4f3f66['isObject'](_0x2f9bc2[_0x3ffe('0xfb')]),_0x43863b=_0x180bb6['start']['getLastMatchingPosition'](_0x2e134c),_0x5dc9ca=_0x180bb6['end']['getLastMatchingPosition'](_0x2e134c,{'direction':_0x3ffe('0x1f')});return(!_0x180bb6['start'][_0x3ffe('0x19')](_0x43863b)||!_0x180bb6[_0x3ffe('0x9')][_0x3ffe('0x19')](_0x5dc9ca))&&(_0x43863b[_0x3ffe('0x59')](_0x5dc9ca)?_0x20d403[_0x3ffe('0x2')](_0x55366e,{'range':_0x20d403[_0x3ffe('0x3c')](_0x43863b,_0x5dc9ca)}):_0x20d403['removeMarker'](_0x55366e),!0x0);}function $t(_0x48e281){return _0x56ef00(_0x48e281);}function Nt(_0x335dd2){const _0x5bd6ba=_0x335dd2[_0x3ffe('0x62')][_0x3ffe('0x10f')];return _0x5bd6ba&&_0x5bd6ba['is']('element');}function Rt(_0x1daef1,_0x535cc4){const _0x1e0d4a=_0x535cc4[_0x3ffe('0xb5')][_0x3ffe('0xcc')](_0x1daef1)||_0x535cc4[_0x3ffe('0xb5')]['isSelectable'](_0x1daef1);return _0x535cc4['createRange'](_0x535cc4[_0x3ffe('0x12f')](_0x1daef1,'before'),_0x1e0d4a?_0x535cc4[_0x3ffe('0xc1')](_0x1daef1):_0x535cc4['createPositionAt'](_0x1daef1,_0x3ffe('0x9')));}function xt(_0x5a520e,_0x3681bb,_0x38ee3e,_0x15f5cb,_0x14581b){if(_0x38ee3e['end'][_0x3ffe('0x19')](_0x15f5cb[_0x3ffe('0x62')]))return!0x0;if(_0x5a520e[_0x3ffe('0xd4')]!=_0x3681bb[_0x3ffe('0xd4')])return!0x1;if(!_0x38ee3e[_0x3ffe('0x9')][_0x3ffe('0x1b')](_0x15f5cb[_0x3ffe('0x62')]))return!0x1;const _0x2df109=_0x14581b[_0x3ffe('0x3c')](_0x38ee3e[_0x3ffe('0x9')],_0x15f5cb[_0x3ffe('0x62')])['getWalker']();for(const _0x1c1eeb of _0x2df109)if([_0x3ffe('0x66'),_0x3ffe('0xfc')][_0x3ffe('0x6d')](_0x1c1eeb[_0x3ffe('0xd4')])&&_0x14581b['schema']['isLimit'](_0x1c1eeb[_0x3ffe('0xfb')]))return!0x1;return!0x0;}
23
+ const _0x2e6c=['moveTargetPosition','_addSuggestionMarker','low','plugins','_saved','@external','markerToData','notReady','next','activeMarkers','_createSuggestion','formatInline:accept','conversion','root','enableCommand','return','forceDefaultExecution','get','getAllAdjacentSuggestions','addClass','ck-suggestion-marker-formatBlock','createRange','trackChanges.trackFormatChanges','from','markers','_setSuggestionRange','init','elementStart','createRangeIn','discardSelectedSuggestions','options','_editor','unbindElementFromMarkerName','differ','insertion:join','getWalker','value','previous','nodeAfter','_setSuggestionData','dataToMarker','_suggestionFactory','CommentsRepository','pluginName','consume','dataReady','discardAllSuggestions','getMarkers','formatBlock:chain','isRemovable','type','define','insert','getLastMatchingPosition','open','ck-suggestion-marker--active','model','splitPosition','targetPosition','creator','removeMarker','change:data','forward','insertion','_refreshSuggestionsChain','_enabledCommands','rootName','split','getNearestSelectionRange','clone','suggestion','getRanges','stopListening','Users','values','includes','track-changes-command-not-found','formatGroupId','after','some','isInContent','requires','mapper','acceptSuggestion','suggestionLoaded','editing','formatInline','_descriptionFactory','join','addSuggestion','createSelection','insertion:','discard','elementToElement','commentThread','markDeletion','subType','lowest','getSuggestionCallback','containerElement','high','isMultiRange','elementEnd','howMany','trackChangesCommand','move','getSuggestion','isSelectable','head','rejected','isLimit','formatBlock:discard','$graveyard','change','normal','isLocal','hasComments','removeMarkers','editingDowncast','isInsideObject','documentSelection','isCollapsed','getCustomProperty','deletion:chain','accept','commands','track-changes-suggestion-data-mismatch','isAtStart','name','markerToHighlight','showSuggestionHighlights','element','addMarker:suggestion:formatBlock','insertContent','markMultiRangeInsertion','isBefore','editor','newRange','deletion:join','parent','isTouching','markMultiRangeDeletion','isAfter','error-saving-suggestion-data-suggestion-discarded','change:activeMarkers','updateMarker','track-changes-suggestion-not-found','_adapter','update:suggestion','backward','attributes','bindElementToMarker','commandName','getFirstRange','deleteContent','markBlockFormat','writer','filter','_handleNewSuggestionMarker','stop','getAncestors','getAttribute','_model','length','markInlineFormat','hasCommentThread','fromRange','trackChanges','getSuggestions','insertion:discard','originalSuggestionId','execute','applyOperation','end','_removeSuggestion','_splitMarkerName','nodeBefore','_joinWithAdjacentSuggestions','suggestionChanged','formatInline:','_customCallbacks','setSelection','multipleBlocks','_rangeIsInLocalUserInsertion','isEqual','set','acceptAllSuggestions','unbind','resolve','then','listenTo','before','deletion:accept','createdAt','isNextTo','_trackFormatChanges','data-suggestion','updateSuggestion','registerCustomCallback','add','marker-count','getChangedMarkers','range','getDifference','ck-suggestion-marker','formatBlock:','ck-suggestion-marker-','_checkSuggestionCorrectness','suggestionUnloaded','_getAuthorFromId','change:_saved','_suggestions','push','authorName','ready','hasSuggestion','getMultiRangeId','markMultiRangeBlockFormat','_registerDefaultCallbacks','suggestion:','getUser','containsItem','isDocumentOperation','createPositionAfter','_getExternalAuthor','createPositionAt','collaboration.channelId','data','config','default','getCommentThread','getRange','setAttribute','PENDING_ACTION_SUGGESTION','removeMarker:suggestion:formatBlock','_joinSuggestions','authoredAt','_addThreadToSuggestion','remove','addRange','for','fire','schema','highest','discardSuggestion','substr','suggestion-type','rethrowUnexpectedError','skipNestingCheck','addMarker:suggestion','chain','addHighlight','PendingActions','_commentsRepository','document','getChanges','selection','addSuggestionData','map','isIntersectingWithRange','$textProxy','formatInline:chain','isOwn','isUndo','batch','deletion:','getShiftedBy','acceptSelectedSuggestions','trackChanges.mergeNestedSuggestions','isAtEnd','reconvertMarker','registerPostFixer','_mergeNestedSuggestions','never','accepted','_defaultCallbacks','every','multi','fetchCommentThread','deletion:discard','createElement','removeComment','formatBlock:join','_breakSuggestionMarker','_updateSuggestionData','addMarkerName','delete','always','item','_findSuggestions','position','_cutOutSuggestionMarker','oldRange','upcast','markerReady','markerName','getFirstMarker','removed','track-changes-adapter-missing-getsuggestion','size','isBlock','author','adapter','formatBlock','_isForcedDefaultExecutionBlock','isExternal','setTo','_suggestionState','locale','clear','createPositionBefore','containsRangeInObject','catch','consumable','enqueueChange','detach','start','containsRange','getItems','deletion','getIntersection','has','formatInline:join','dataDowncast','toViewElement','isObject','removeAttribute','removeClass'];(function(_0x763a24,_0x2e6c64){const _0x5ea34d=function(_0x1c0285){while(--_0x1c0285){_0x763a24['push'](_0x763a24['shift']());}};_0x5ea34d(++_0x2e6c64);}(_0x2e6c,0x83));const _0x5ea3=function(_0x763a24,_0x2e6c64){_0x763a24=_0x763a24-0x0;let _0x5ea34d=_0x2e6c[_0x763a24];return _0x5ea34d;};import{Plugin as _0x2c8d8d,PendingActions as _0x176903}from'ckeditor5/src/core';import{LiveRange as _0x94a9b8}from'ckeditor5/src/engine';import{CKEditorError as _0x11521c,uid as _0x23e49d,priorities as _0x446ba2,logWarning as _0xc0592b}from'ckeditor5/src/utils';import{toWidget as _0x20e97c}from'ckeditor5/src/widget';import{Users as _0x5c89e0,hashObject as _0xc64a53}from'ckeditor5-collaboration/src/collaboration-core';import _0x52867c from'./commands/trackchangescommand';import _0x105a55 from'./commands/acceptsuggestioncommand';import _0x53a616 from'./commands/discardsuggestioncommand';import _0x21e829 from'./commands/executeonallsuggestionscommand';import _0xe0b38c from'./commands/executeonselectedsuggestionscommand';import _0x38f5db from'./suggestion';import _0xed4810 from'./suggestiondescriptionfactory';import _0x2a60ea from'./integrations/alignment';import _0x457e2f from'./integrations/basicstyles';import _0xd70fc1 from'./integrations/blockquote';import _0x39eadc from'./integrations/ckbox';import _0x180486 from'./integrations/codeblock';import _0x2ead45 from'./integrations/comments';import _0x36a439 from'./integrations/deletecommand';import _0x1577b9 from'./integrations/documentlist';import _0x11d39a from'./integrations/entercommand';import _0x3a0362 from'./integrations/findandreplace';import _0x624c0c from'./integrations/font';import _0x3d444e from'./integrations/formatpainter';import _0x416f2a from'./integrations/heading';import _0x56e4c3 from'./integrations/highlight';import _0x28ccab from'./integrations/horizontalline';import _0xe5c848 from'./integrations/htmlembed';import _0x2b0089 from'./integrations/image';import _0x566e9a from'./integrations/imagereplace';import _0x51254e from'./integrations/importword';import _0x206896 from'./integrations/indent';import _0x3fe6a6 from'./integrations/inputcommand';import _0x302399 from'./integrations/link';import _0x236854 from'./integrations/list';import _0x4aef8e from'./integrations/listproperties';import _0x506d18 from'./integrations/mediaembed';import _0x13542e from'./integrations/mention';import _0x4d2938 from'./integrations/pagebreak';import _0x21f8a5 from'./integrations/paragraph';import _0x4e20ca from'./integrations/removeformat';import _0x5c41ff from'./integrations/restrictededitingmode';import _0x332259 from'./integrations/shiftentercommand';import _0x248f01 from'./integrations/standardeditingmode';import _0x4c0a83 from'./integrations/style';import _0x328328 from'./integrations/table';import _0x41efd2 from'./integrations/tablemergesplit';import _0x40113c from'./integrations/tableheadings';import _0xdcb5b7 from'./integrations/tableclipboard';import _0x2a49c9 from'./integrations/tablecolumnresize';import _0x3102bf from'./integrations/template';import _0x10eaad from'./integrations/tableofcontents';import _0x10c5ea from'./integrations/title';import _0x40b6c3 from'./integrations/undo';import{getTranslation as _0xca3d38}from'./utils/common-translations';import _0x13b8d5 from'./integrations/tablecaption';import _0x43bd16 from'./integrations/documentlistproperties';import _0x5247f6 from'./integrations/tableproperties';export default class p extends _0x2c8d8d{static get[_0x5ea3('0x116')](){return[_0x5ea3('0xef'),_0x5c89e0,_0x176903,_0x2a60ea,_0x457e2f,_0xd70fc1,_0x39eadc,_0x180486,_0x2ead45,_0x36a439,_0x1577b9,_0x43bd16,_0x11d39a,_0x3a0362,_0x624c0c,_0x3d444e,_0x416f2a,_0x56e4c3,_0x28ccab,_0xe5c848,_0x2b0089,_0x566e9a,_0x51254e,_0x206896,_0x3fe6a6,_0x302399,_0x236854,_0x4aef8e,_0x506d18,_0x13542e,_0x4d2938,_0x21f8a5,_0x4e20ca,_0x5c41ff,_0x332259,_0x248f01,_0x4c0a83,_0x328328,_0x41efd2,_0x40113c,_0x13b8d5,_0xdcb5b7,_0x2a49c9,_0x10eaad,_0x5247f6,_0x3102bf,_0x10c5ea,_0x40b6c3];}static get[_0x5ea3('0xf0')](){return'TrackChangesEditing';}constructor(_0x4f7461){function _0x4cd393(_0x2420e8){return _0x2420e8[_0x5ea3('0x7f')](_0x30732a=>String['fromCharCode'](_0x30732a))['join']('');}super(_0x4f7461),this['set'](_0x5ea3('0xce'),[]),this['on'](_0x5ea3('0xd'),(_0x497f6c,_0x48e2f2,_0xadaff1,_0x1642d4)=>{this['_model']['change'](()=>{for(const _0x448f30 of[..._0x1642d4,..._0xadaff1])this[_0x5ea3('0x1f')][_0x5ea3('0xdd')][_0x5ea3('0xbe')](_0x448f30)&&_0x4f7461[_0x5ea3('0x11a')][_0x5ea3('0x8b')](_0x448f30);});}),this[_0x5ea3('0x11c')]=new _0xed4810(this[_0x5ea3('0x5')][_0x5ea3('0xfd')]['schema'],this[_0x5ea3('0x5')][_0x5ea3('0xb1')]),this[_0x5ea3('0x10')]=null,this[_0x5ea3('0xee')]=new Dt(this[_0x5ea3('0x5')]),this[_0x5ea3('0x50')]=new Map(),this[_0x5ea3('0x7a')]=_0x4f7461[_0x5ea3('0xc8')][_0x5ea3('0xd6')]('CommentsRepository'),this['_enabledCommands']=new Set(),this[_0x5ea3('0x1f')]=this[_0x5ea3('0x5')][_0x5ea3('0xfd')],this[_0x5ea3('0xb0')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4f7461['config'][_0x5ea3('0xf8')](_0x5ea3('0xdb'),_0x5ea3('0x62')),this[_0x5ea3('0x40')]=_0x4f7461['config']['get'](_0x5ea3('0xdb')),_0x4f7461['config']['define'](_0x5ea3('0x89'),!0x0),this['_mergeNestedSuggestions']=_0x4f7461[_0x5ea3('0x61')][_0x5ea3('0xd6')]('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _0x52867c(_0x4f7461,this[_0x5ea3('0x106')]),this[_0x4cd393([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4cd393([0x34,0x30,0x34,0x36,0x31,0x34,0x35,0x32]);}[_0x5ea3('0xdf')](){const _0x3396f2=this[_0x5ea3('0x5')];_0x3396f2[_0x5ea3('0xd1')]['for'](_0x5ea3('0x13b'))[_0x5ea3('0x146')]({'model':_0x5ea3('0x10b'),'view':_0x4e5536=>{const {id:_0x2f1a89,type:_0x35e03f}=this['_splitMarkerName'](_0x4e5536[_0x5ea3('0xa4')]),_0x56f621=['ck-suggestion-marker','ck-suggestion-marker-'+_0x35e03f];let _0x5d6cc6=0xbb8;return this[_0x5ea3('0xce')][_0x5ea3('0x110')](_0x4e5536[_0x5ea3('0xa4')])&&(_0x56f621[_0x5ea3('0x51')](_0x5ea3('0xfc')),_0x5d6cc6=0xbc2),_0x5ea3('0xbc')==_0x35e03f&&(_0x5d6cc6+=0x5),{'classes':_0x56f621,'attributes':{'data-suggestion':_0x2f1a89},'priority':_0x5d6cc6};}}),_0x3396f2[_0x5ea3('0xd1')][_0x5ea3('0x6d')]('dataDowncast')[_0x5ea3('0x44')](_0x2d49bc=>{_0x2d49bc['on'](_0x5ea3('0x76'),(_0x245633,_0x367297,_0x38dd7d)=>{if(!_0x38dd7d['options'][_0x5ea3('0x147')])return;const _0x2b9b72=_0x367297[_0x5ea3('0x9d')];if(!_0x2b9b72)return;const _0x5bf713=_0x38dd7d['mapper'][_0x5ea3('0xc1')](_0x2b9b72);_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0x6f')][_0x5ea3('0xc2')](_0x2b9b72)&&_0x5bf713&&!_0x5bf713[_0x5ea3('0x13f')]('widget')&&_0x5bf713['is'](_0x5ea3('0x128'))&&_0x20e97c(_0x5bf713,_0x38dd7d[_0x5ea3('0x19')]);},{'priority':_0x5ea3('0x129')});}),_0x3396f2['conversion'][_0x5ea3('0x6d')]('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4105a9,_0x5f095a)=>{if(!_0x5f095a[_0x5ea3('0xe3')][_0x5ea3('0x147')])return null;const {type:_0x2be90d}=this[_0x5ea3('0x2c')](_0x4105a9[_0x5ea3('0xa4')]);return{'classes':['ck-suggestion-marker',_0x5ea3('0x4b')+_0x2be90d],'priority':0xbb8};}});const _0x19f938=({showActiveMarkers:_0x1ec603=!0x0}={})=>(_0x22a0b6,_0x220375,_0x4eb9dc)=>{if(!_0x220375['item'])return;if(_0x220375[_0x5ea3('0x9d')]['is'](_0x5ea3('0x7d')))return void _0x4eb9dc[_0x5ea3('0xb6')][_0x5ea3('0xf1')](_0x220375[_0x5ea3('0x9d')],_0x22a0b6[_0x5ea3('0x145')]);const _0x4c94f7=_0x4eb9dc[_0x5ea3('0x117')][_0x5ea3('0xc1')](_0x220375['item']);if(!(_0x220375[_0x5ea3('0x9d')]['is'](_0x5ea3('0x0'))&&_0x3396f2['model'][_0x5ea3('0x6f')][_0x5ea3('0xa9')](_0x220375[_0x5ea3('0x9d')])&&!_0x4c94f7['getCustomProperty'](_0x5ea3('0x78'))))return;const {id:_0x16495d}=this[_0x5ea3('0x2c')](_0x220375[_0x5ea3('0xa4')]);_0x4eb9dc[_0x5ea3('0x19')][_0x5ea3('0xd8')]([_0x5ea3('0x49'),_0x5ea3('0xd9')],_0x4c94f7),_0x4eb9dc[_0x5ea3('0x19')][_0x5ea3('0x65')](_0x5ea3('0x41'),_0x16495d,_0x4c94f7),_0x4eb9dc[_0x5ea3('0x117')][_0x5ea3('0x14')](_0x4c94f7,_0x220375[_0x5ea3('0xa4')]),_0x1ec603&&(this[_0x5ea3('0xce')]['includes'](_0x220375[_0x5ea3('0xa4')])?_0x4eb9dc[_0x5ea3('0x19')][_0x5ea3('0xd8')](_0x5ea3('0xfc'),_0x4c94f7):_0x4eb9dc[_0x5ea3('0x19')][_0x5ea3('0xc4')](_0x5ea3('0xfc'),_0x4c94f7));for(const _0x585368 of _0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0xe1')](_0x220375['item'])[_0x5ea3('0xbb')]())_0x4eb9dc[_0x5ea3('0xb6')][_0x5ea3('0xf1')](_0x585368,_0x22a0b6[_0x5ea3('0x145')]);_0x4eb9dc[_0x5ea3('0xb6')][_0x5ea3('0xf1')](_0x220375['item'],_0x22a0b6['name']);};_0x3396f2[_0x5ea3('0xd1')][_0x5ea3('0x6d')](_0x5ea3('0xc0'))['add'](_0x325a56=>{_0x325a56['on'](_0x5ea3('0x1'),(_0x256327,_0x4dd1fd,_0x492db4)=>{_0x492db4[_0x5ea3('0xe3')][_0x5ea3('0x147')]&&_0x19f938({'showActiveMarkers':!0x1})(_0x256327,_0x4dd1fd,_0x492db4);},{'priority':_0x5ea3('0x70')});}),_0x3396f2[_0x5ea3('0xd1')][_0x5ea3('0x6d')](_0x5ea3('0xc0'))[_0x5ea3('0xcb')]({'model':_0x5ea3('0x10b'),'view':(_0x229f60,_0x49d037)=>_0x49d037[_0x5ea3('0xe3')][_0x5ea3('0x147')]?null:{'group':_0x5ea3('0x10b'),'name':_0x229f60[_0x5ea3('0x72')](0xb)}}),_0x3396f2['conversion']['for'](_0x5ea3('0xa2'))[_0x5ea3('0x122')]({'view':{'name':_0x5ea3('0x10b'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x46743a,{writer:_0x286522})=>{let _0x33ec93=_0x5ea3('0x58')+_0x46743a[_0x5ea3('0x1e')](_0x5ea3('0x73'))+':'+_0x46743a[_0x5ea3('0x1e')]('id');return _0x46743a[_0x5ea3('0x1e')](_0x5ea3('0x45'))&&(_0x33ec93+=':'+_0x46743a[_0x5ea3('0x1e')](_0x5ea3('0x45'))),_0x286522[_0x5ea3('0x95')]('$marker',{'data-name':_0x33ec93});}}),_0x3396f2[_0x5ea3('0xd1')][_0x5ea3('0x6d')](_0x5ea3('0xa2'))[_0x5ea3('0xed')]({'view':_0x5ea3('0x10b')}),_0x3396f2[_0x5ea3('0xd1')][_0x5ea3('0x6d')]('editingDowncast')[_0x5ea3('0x44')](_0x344c92=>{_0x344c92['on'](_0x5ea3('0x1'),_0x19f938(),{'priority':_0x5ea3('0x129')});}),_0x3396f2[_0x5ea3('0xd1')][_0x5ea3('0x6d')](_0x5ea3('0x13b'))[_0x5ea3('0x44')](_0x5943c7=>{_0x5943c7['on'](_0x5ea3('0x67'),(_0x116532,_0x3e13a2,_0xe8c848)=>{const _0x2ce253=_0xe8c848['mapper']['markerNameToElements'](_0x3e13a2[_0x5ea3('0xa4')]);if(_0x2ce253)for(const _0x48264d of _0x2ce253)_0x48264d['getCustomProperty']('addHighlight')||(_0xe8c848[_0x5ea3('0x19')]['removeClass']([_0x5ea3('0x49'),_0x5ea3('0xd9'),_0x5ea3('0xfc')],_0x48264d),_0xe8c848[_0x5ea3('0x19')][_0x5ea3('0xc3')](_0x5ea3('0x41'),_0x48264d),_0xe8c848[_0x5ea3('0x117')][_0x5ea3('0xe5')](_0x48264d,_0x3e13a2['markerName']));},{'priority':_0x5ea3('0x129')});}),_0x3396f2['model']['document']['registerPostFixer'](_0x515e0d=>{let _0x4d2aa7=!0x1;const _0x4a6deb=Array['from'](_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0x7b')][_0x5ea3('0xe6')][_0x5ea3('0x46')]()),_0x7d338e=new Set();for(const {name:_0x1263a6,data:_0x12e3d3}of _0x4a6deb){const {group:_0x15c230,type:_0x4ff349,id:_0x4edb81}=this[_0x5ea3('0x2c')](_0x1263a6);if('suggestion'!==_0x15c230)continue;const _0x30ffbc=this[_0x5ea3('0x50')][_0x5ea3('0xd6')](_0x4edb81);if(null!=_0x12e3d3['newRange']){_0x5ea3('0x11b')==_0x4ff349&&(_0x4d2aa7=_0x4d2aa7||Mt(_0x12e3d3['newRange'],_0x1263a6,_0x515e0d,_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0x6f')]));if(_0x12e3d3[_0x5ea3('0x6')][_0x5ea3('0x13e')]||'$graveyard'==_0x12e3d3[_0x5ea3('0x6')][_0x5ea3('0xd2')][_0x5ea3('0x107')]||_0x5ea3('0xac')==_0x4ff349&&!Nt(_0x12e3d3[_0x5ea3('0x6')])||_0x5ea3('0xbc')==_0x4ff349&&!(!_t(_0x460bf9=_0x12e3d3[_0x5ea3('0x6')])&&!function(_0x99bf0e){return _0x99bf0e[_0x5ea3('0xb9')][_0x5ea3('0x8')]==_0x99bf0e[_0x5ea3('0x2a')][_0x5ea3('0x2d')]&&_0x99bf0e[_0x5ea3('0xb9')][_0x5ea3('0x8a')];}(_0x460bf9)))_0x515e0d[_0x5ea3('0x101')](_0x1263a6),_0x4d2aa7=!0x0;else{if(!_0x30ffbc||!_0x30ffbc['isInContent'])continue;_0x7d338e[_0x5ea3('0x44')](_0x30ffbc);}}}var _0x460bf9;return _0x7d338e[_0x5ea3('0xa8')]>0x0&&(_0x4d2aa7=!!this[_0x5ea3('0x2e')](_0x7d338e)||_0x4d2aa7),_0x4d2aa7;}),_0x3396f2['model'][_0x5ea3('0x7b')][_0x5ea3('0x8c')](_0x2290bd=>{let _0x100a50=!0x1;for(const _0x517027 of _0x3396f2['model'][_0x5ea3('0x7b')]['differ'][_0x5ea3('0x7c')]()){if(_0x5ea3('0xf9')!=_0x517027[_0x5ea3('0xf7')])continue;const _0x1fe66e=_0x517027[_0x5ea3('0x9f')][_0x5ea3('0x87')](_0x517027[_0x5ea3('0x20')]);if(_0x1fe66e['isAtEnd'])for(const _0x1c0b9c of this[_0x5ea3('0x50')]['values']()){if(_0x1c0b9c['isMultiRange']||!_0x1c0b9c[_0x5ea3('0x115')])continue;if(_0x5ea3('0xac')!=_0x1c0b9c[_0x5ea3('0xf7')])continue;const _0x176804=_0x1c0b9c['getFirstRange']();if(_0x176804[_0x5ea3('0xb9')]['parent']!=_0x176804[_0x5ea3('0x2a')][_0x5ea3('0x8')]&&_0x176804[_0x5ea3('0x2a')][_0x5ea3('0x35')](_0x517027['position'])){const _0x47dfbe=_0x3396f2['model']['createRange'](_0x176804[_0x5ea3('0xb9')],_0x1fe66e);_0x2290bd[_0x5ea3('0xe')](_0x1c0b9c[_0x5ea3('0xa5')](),{'range':_0x47dfbe}),_0x100a50=!0x0;}}}return _0x100a50;}),_0x3396f2[_0x5ea3('0xfd')]['markers']['on'](_0x5ea3('0x11'),(_0x2b6446,_0x30ed25,_0x580ed9)=>{if(null==_0x580ed9){const {id:_0x2796b4}=this[_0x5ea3('0x2c')](_0x30ed25[_0x5ea3('0x145')]),_0x401a7c=this[_0x5ea3('0x50')][_0x5ea3('0xd6')](_0x2796b4);_0x401a7c&&_0x401a7c['addMarkerName'](_0x30ed25['name']);}}),_0x3396f2['model'][_0x5ea3('0x7b')]['on'](_0x5ea3('0x102'),()=>{const _0x35b179=Array[_0x5ea3('0xdc')](_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0x7b')][_0x5ea3('0xe6')][_0x5ea3('0x46')]())[_0x5ea3('0x1a')](_0x64a07b=>'suggestion'===this['_splitMarkerName'](_0x64a07b['name'])['group']);if(0x0===_0x35b179[_0x5ea3('0x20')])return;_0x35b179['sort']((_0x43a1c9,_0x328165)=>{const _0x1ada5e=_0x43a1c9[_0x5ea3('0x60')][_0x5ea3('0xa1')],_0x2d9d4f=_0x328165[_0x5ea3('0x60')][_0x5ea3('0xa1')];return null===_0x1ada5e&&null===_0x2d9d4f?0x0:null===_0x1ada5e&&null!==_0x2d9d4f?-0x1:null!==_0x1ada5e&&null===_0x2d9d4f?0x1:_0x1ada5e['start'][_0x5ea3('0x4')](_0x2d9d4f['start'])?-0x1:0x1;});const _0x37712e=new Set(),_0x3cc0cc=new Set();for(const {name:_0x2ed26d,data:_0xfdf214}of _0x35b179){const {id:_0x3e5d1e}=this[_0x5ea3('0x2c')](_0x2ed26d);if(null===_0xfdf214['oldRange']){const _0x468787=this[_0x5ea3('0x1b')](_0x2ed26d);_0x3cc0cc[_0x5ea3('0x44')](_0x468787);}else{const _0x2780eb=this['_suggestions'][_0x5ea3('0xd6')](_0x3e5d1e);null!==_0xfdf214['newRange']||_0x2780eb['isInContent']?(_0x37712e[_0x5ea3('0x44')](_0x2780eb[_0x5ea3('0x131')]),_0x3cc0cc['add'](_0x2780eb)):this[_0x5ea3('0x2b')](_0x2780eb);}}_0x3cc0cc[_0x5ea3('0xa8')]>0x0&&this['_refreshSuggestionsChain'](_0x3cc0cc);for(const _0xd1bbd0 of _0x37712e)this[_0x5ea3('0x6e')]('suggestionChanged',_0xd1bbd0);}),_0x3396f2['model']['on'](_0x5ea3('0x29'),(_0x567573,_0x27846f)=>{const _0x65e620=_0x27846f[0x0];if(!this[_0x5ea3('0x50')][_0x5ea3('0xa8')])return;if(!_0x65e620[_0x5ea3('0x5b')])return;if(_0x65e620[_0x5ea3('0x85')][_0x5ea3('0x84')]||!_0x65e620['batch'][_0x5ea3('0x138')])return;let _0x2ecadb,_0x30d1c2;switch(_0x65e620[_0x5ea3('0xf7')]){case'insert':_0x2ecadb=_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0x5e')](_0x65e620[_0x5ea3('0x9f')]),_0x30d1c2=_0x2ecadb['getShiftedBy'](_0x65e620[_0x5ea3('0x12c')]);break;case _0x5ea3('0x108'):_0x2ecadb=_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0x5e')](_0x65e620[_0x5ea3('0xfe')]),_0x30d1c2=_0x3396f2['model']['createPositionAt'](_0x65e620[_0x5ea3('0xc5')]);break;case _0x5ea3('0x12e'):_0x2ecadb=_0x3396f2[_0x5ea3('0xfd')]['createPositionAt'](_0x65e620[_0x5ea3('0xff')]),_0x30d1c2=_0x2ecadb[_0x5ea3('0x87')](_0x65e620[_0x5ea3('0x12c')]);break;default:return;}const _0x355b63=_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0xda')](_0x2ecadb,_0x30d1c2);_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0x136')](()=>{for(const {suggestion:_0x4a909e,meta:_0x339902}of this['_findSuggestions'](_0x355b63)){if(_0x4a909e[_0x5ea3('0x12a')])continue;if('formatInline'==_0x4a909e[_0x5ea3('0xf7')])continue;const _0x5aa9c6=_0x4a909e[_0x5ea3('0x60')]&&_0x4a909e[_0x5ea3('0x60')][_0x5ea3('0x33')];(_0x5ea3('0xac')!=_0x4a909e[_0x5ea3('0xf7')]||_0x5ea3('0x108')==_0x65e620[_0x5ea3('0xf7')]&&!_0x5aa9c6)&&(_0x339902[_0x5ea3('0xb4')]||_0x5ea3('0x104')==_0x4a909e['type']&&_0x339902[_0x5ea3('0x83')]||_0x4a909e[_0x5ea3('0x16')]()[_0x5ea3('0xba')](_0x355b63)&&this[_0x5ea3('0x98')](_0x4a909e,_0x2ecadb,_0x30d1c2));}});},{'priority':_0x5ea3('0x126')}),_0x3396f2[_0x5ea3('0xfd')]['on']('deleteContent',(_0xd0de50,_0x22b7ab)=>{const _0x2e2af0=_0x22b7ab[0x0],_0x46fb9b=_0x22b7ab[0x1];if(_0x46fb9b&&_0x46fb9b[_0x5ea3('0xd5')])return;if(this[_0x5ea3('0xad')])return;if(!this[_0x5ea3('0x12d')][_0x5ea3('0xe9')])return;if(_0x2e2af0[_0x5ea3('0x13e')])return;const _0x4d4d53=_0x3396f2['model']['schema'],{start:_0x544591,end:_0xc06308}=_0x2e2af0[_0x5ea3('0x16')](),_0x720f9e=_0x544591[_0x5ea3('0xeb')]&&_0x4d4d53['isLimit'](_0x544591[_0x5ea3('0xeb')])?null:_0x4d4d53[_0x5ea3('0x109')](_0x544591,_0x5ea3('0x103')),_0x56438e=_0xc06308[_0x5ea3('0x2d')]&&_0x4d4d53[_0x5ea3('0x133')](_0xc06308[_0x5ea3('0x2d')])?null:_0x4d4d53['getNearestSelectionRange'](_0xc06308,_0x5ea3('0x12')),_0x492c2=_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0xda')](_0x720f9e?_0x720f9e[_0x5ea3('0xb9')]:_0x544591,_0x56438e?_0x56438e['end']:_0xc06308);_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0x136')](_0x1b313f=>{this[_0x5ea3('0x124')](_0x492c2);const _0x5927df=_0x3396f2['model'][_0x5ea3('0x6f')]['getNearestSelectionRange'](_0x492c2[_0x5ea3('0xb9')]);_0x2e2af0['is'](_0x5ea3('0x13d'))?_0x1b313f[_0x5ea3('0x32')](_0x5927df):_0x2e2af0[_0x5ea3('0xaf')](_0x5927df);}),_0xd0de50[_0x5ea3('0x1c')]();},{'priority':_0x446ba2[_0x5ea3('0x137')]+0xa}),_0x3396f2[_0x5ea3('0xfd')]['on'](_0x5ea3('0x2'),(_0x381968,_0x2ee8cf)=>{const _0x506a16=_0x2ee8cf[_0x2ee8cf['length']-0x1];_0x506a16&&_0x506a16[_0x5ea3('0xd5')]||this[_0x5ea3('0xad')]||this[_0x5ea3('0x12d')][_0x5ea3('0xe9')]&&(_0x3396f2[_0x5ea3('0xfd')][_0x5ea3('0x136')](()=>{let _0x3946b5=_0x3396f2['model'][_0x5ea3('0x2')](_0x2ee8cf[0x0],_0x2ee8cf[0x1],_0x2ee8cf[0x2],{'forceDefaultExecution':!0x0});if(!_0x3946b5)return;_0x381968[_0x5ea3('0xd4')]=_0x3946b5[_0x5ea3('0x10a')]();const _0x540a26=_0x3946b5['end']['nodeBefore'],_0x3422fd=_0x3396f2['model'][_0x5ea3('0x6f')];_0x540a26&&_0x3422fd[_0x5ea3('0xa9')](_0x540a26)&&!_0x3422fd[_0x5ea3('0xc2')](_0x540a26)&&(_0x3946b5=_0x3396f2['model'][_0x5ea3('0xda')](_0x3946b5[_0x5ea3('0xb9')],_0x3396f2[_0x5ea3('0xfd')]['createPositionAt'](_0x540a26,_0x5ea3('0x2a')))),this['markInsertion'](_0x3946b5);}),_0x381968[_0x5ea3('0x1c')]());},{'priority':_0x5ea3('0x129')}),this['editor'][_0x5ea3('0x142')]['add'](_0x5ea3('0x24'),this[_0x5ea3('0x12d')]),this['enableCommand']('trackChanges');const _0x5f379e=new _0x105a55(_0x3396f2,this[_0x5ea3('0x50')]);_0x3396f2[_0x5ea3('0x142')][_0x5ea3('0x44')](_0x5ea3('0x118'),_0x5f379e),this[_0x5ea3('0xd3')](_0x5ea3('0x118'));const _0x276bca=new _0x53a616(_0x3396f2,this[_0x5ea3('0x50')]);_0x3396f2[_0x5ea3('0x142')][_0x5ea3('0x44')](_0x5ea3('0x71'),_0x276bca),this['enableCommand'](_0x5ea3('0x71')),_0x3396f2[_0x5ea3('0x142')]['add'](_0x5ea3('0x37'),new _0x21e829(_0x3396f2,_0x5f379e,this[_0x5ea3('0x50')])),this['enableCommand'](_0x5ea3('0x37')),_0x3396f2[_0x5ea3('0x142')]['add'](_0x5ea3('0xf3'),new _0x21e829(_0x3396f2,_0x276bca,this[_0x5ea3('0x50')])),this[_0x5ea3('0xd3')](_0x5ea3('0xf3')),_0x3396f2[_0x5ea3('0x142')][_0x5ea3('0x44')](_0x5ea3('0x88'),new _0xe0b38c(_0x3396f2,_0x5f379e,this[_0x5ea3('0x50')])),this[_0x5ea3('0xd3')](_0x5ea3('0x88')),_0x3396f2[_0x5ea3('0x142')][_0x5ea3('0x44')](_0x5ea3('0xe2'),new _0xe0b38c(_0x3396f2,_0x276bca,this[_0x5ea3('0x50')])),this[_0x5ea3('0xd3')]('discardSelectedSuggestions');const _0x143d7b=_0x3396f2[_0x5ea3('0xc8')]['get'](_0x5ea3('0xef'));this[_0x5ea3('0x3b')](_0x143d7b,'addComment',(_0x376606,{threadId:_0x1e276f})=>{const _0x2927b4=this['_suggestions']['get'](_0x1e276f);_0x2927b4&&_0x2927b4[_0x5ea3('0x123')]&&0x1===_0x2927b4['commentThread']['length']&&this[_0x5ea3('0x99')](_0x1e276f,{'hasComments':!0x0});},{'priority':_0x5ea3('0xc7')}),this[_0x5ea3('0x3b')](_0x143d7b,_0x5ea3('0x96'),(_0x2aadf2,{threadId:_0x4827e0})=>{const _0x29a922=this[_0x5ea3('0x50')][_0x5ea3('0xd6')](_0x4827e0);_0x29a922&&_0x29a922[_0x5ea3('0x123')]&&!_0x29a922[_0x5ea3('0x123')][_0x5ea3('0x20')]&&this[_0x5ea3('0x99')](_0x4827e0,{'hasComments':!0x1});},{'priority':_0x5ea3('0xc7')});}set[_0x5ea3('0xab')](_0xcc1aaa){if(this[_0x5ea3('0x10')])throw new _0x11521c('track-changes-adapter-already-set',this);this[_0x5ea3('0x10')]=_0xcc1aaa;}get['adapter'](){return this[_0x5ea3('0x10')];}[_0x5ea3('0x25')]({skipNotAttached:_0x25ff54=!0x1,toJSON:_0x3f985a=!0x1}={}){const _0x5d8b85=[];for(const _0x4c8da0 of this[_0x5ea3('0x50')][_0x5ea3('0x10f')]())_0x25ff54&&!_0x4c8da0['isInContent']||_0x5d8b85[_0x5ea3('0x51')](_0x4c8da0);return _0x3f985a?_0x5d8b85['map'](_0x2f33ce=>_0x2f33ce['toJSON']()):_0x5d8b85;}['getSuggestion'](_0x23b485){const _0x1030ba=this['_suggestions']['get'](_0x23b485);if(!_0x1030ba)throw new _0x11521c(_0x5ea3('0xf'),this);return _0x1030ba;}[_0x5ea3('0x54')](_0x41045a){return this['_suggestions'][_0x5ea3('0xbe')](_0x41045a);}[_0x5ea3('0x7e')](_0x59518e){const {authorId:_0xf7ce07,id:_0x201474,attributes:_0x44391f}=_0x59518e,[_0xe7bd33,_0x41727e]=_0x59518e[_0x5ea3('0xf7')][_0x5ea3('0x108')](':'),_0xa58c81=this[_0x5ea3('0x50')][_0x5ea3('0xd6')](_0x201474)||this[_0x5ea3('0xcf')](_0xe7bd33,_0x41727e,_0x201474,_0xf7ce07,_0x44391f);if(this[_0x5ea3('0x6a')](_0xa58c81),this['_checkSuggestionCorrectness'](_0xa58c81,_0xe7bd33,_0x41727e||null,_0xf7ce07),_0xa58c81[_0x5ea3('0x3e')]=_0x59518e[_0x5ea3('0x3e')],_0x44391f&&_0x44391f[_0x5ea3('0xca')]){const _0x1d59e4=_0x44391f[_0x5ea3('0xca')],_0x15c3a9=this[_0x5ea3('0x5d')](_0x1d59e4[_0x5ea3('0x52')]);_0xa58c81[_0x5ea3('0x69')]=_0x1d59e4[_0x5ea3('0x3e')],_0xa58c81['author']=_0x15c3a9,_0xa58c81[_0x5ea3('0xae')]=!0x0;}else _0xa58c81['authoredAt']=_0x59518e[_0x5ea3('0x3e')];switch(_0x59518e[_0x5ea3('0x60')]&&(_0xa58c81[_0x5ea3('0x60')]=_0x59518e['data']),_0x59518e[_0x5ea3('0x13')]&&(_0xa58c81[_0x5ea3('0x13')]=_0x59518e[_0x5ea3('0x13')]),this[_0x5ea3('0x10')]&&this['_adapter'][_0x5ea3('0x11e')]||(_0xa58c81['_saved']=!0x0),this[_0x5ea3('0xb0')][_0x5ea3('0xd6')](_0xa58c81)){case _0x5ea3('0xcc'):this[_0x5ea3('0xb0')][_0x5ea3('0x36')](_0xa58c81,_0x5ea3('0xf2'));break;case _0x5ea3('0xa3'):_0xa58c81[_0x5ea3('0x115')]?(this[_0x5ea3('0xb0')]['set'](_0xa58c81,_0x5ea3('0x53')),this[_0x5ea3('0x6e')](_0x5ea3('0x119'),_0xa58c81)):this[_0x5ea3('0xb0')][_0x5ea3('0x36')](_0xa58c81,_0x5ea3('0xa6'));}return _0xa58c81;}[_0x5ea3('0x118')](_0x1769a2){this[_0x5ea3('0xd5')](()=>{this['editor']['model']['change'](()=>{for(const _0x2a2ef2 of _0x1769a2[_0x5ea3('0xd7')]())_0x2a2ef2[_0x5ea3('0x141')]();});});}['discardSuggestion'](_0x4bf525){this[_0x5ea3('0xd5')](()=>{this['editor']['model'][_0x5ea3('0x136')](()=>{for(const _0x27f164 of _0x4bf525[_0x5ea3('0xd7')]())_0x27f164[_0x5ea3('0x121')]();});});}[_0x5ea3('0xd3')](_0x1cc6f9,_0x1ca940){const _0x26475e=this[_0x5ea3('0x5')][_0x5ea3('0x142')][_0x5ea3('0xd6')](_0x1cc6f9);if(!_0x26475e)throw new _0x11521c(_0x5ea3('0x111'),this,{'commandName':_0x1cc6f9});this[_0x5ea3('0x106')]['add'](_0x26475e),_0x1ca940&&_0x26475e['on'](_0x5ea3('0x28'),(_0x2979ab,_0x15cd58)=>{this['trackChangesCommand'][_0x5ea3('0xe9')]&&(this[_0x5ea3('0xad')]||_0x15cd58[_0x5ea3('0x20')]>0x0&&_0x15cd58[_0x15cd58['length']-0x1]&&_0x15cd58[_0x15cd58[_0x5ea3('0x20')]-0x1][_0x5ea3('0xd5')]||(_0x1ca940((..._0x2bf4fa)=>_0x26475e[_0x5ea3('0x28')](..._0x2bf4fa,{'forceDefaultExecution':!0x0}),..._0x15cd58),_0x2979ab['stop']()));},{'priority':_0x5ea3('0x129')});}[_0x5ea3('0xd5')](_0x4166c9){let _0x2ee7cd,_0x5a44e5;const _0x5b2926=this[_0x5ea3('0xad')];this[_0x5ea3('0xad')]=!0x0;try{_0x2ee7cd=_0x4166c9();}catch(_0x386a73){_0x5a44e5=_0x386a73;}return _0x5b2926||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5a44e5&&_0x11521c[_0x5ea3('0x74')](_0x5a44e5,this),_0x2ee7cd;}['markInsertion'](_0x33a034,_0x4edb57=null,_0x5a9b75={}){if(_0x33a034[_0x5ea3('0x13e')])return null;const _0x19464d=this[_0x5ea3('0x5')]['plugins'][_0x5ea3('0xd6')](_0x5ea3('0x10e'))['me'];for(const {suggestion:_0x241d88,meta:_0x3222bc}of this['_findSuggestions'](_0x33a034,_0x5ea3('0x104')))if(_0x3222bc[_0x5ea3('0x83')]){if(!_0x3222bc[_0x5ea3('0x3f')]){if(!this[_0x5ea3('0x8d')]&&_0x3222bc[_0x5ea3('0xb4')])continue;return _0x241d88;}if(_0x4edb57==_0x241d88[_0x5ea3('0x125')]){const _0x1ccc5f=_0x241d88[_0x5ea3('0x16')]();return _0x1ccc5f[_0x5ea3('0xb9')][_0x5ea3('0x35')](_0x33a034[_0x5ea3('0x2a')])?this[_0x5ea3('0xde')](_0x241d88,this[_0x5ea3('0x1f')][_0x5ea3('0xda')](_0x33a034[_0x5ea3('0xb9')],_0x1ccc5f[_0x5ea3('0x2a')])):this['_setSuggestionRange'](_0x241d88,this[_0x5ea3('0x1f')][_0x5ea3('0xda')](_0x1ccc5f[_0x5ea3('0xb9')],_0x33a034['end'])),_0x241d88;}}const _0x99f7ec=_0x23e49d(),_0x5baf68=_0x19464d['id'],_0x7d3d75=_0x4edb57?_0x5ea3('0x120')+_0x4edb57:'insertion',_0x11225c=this[_0x5ea3('0xec')]({'id':_0x99f7ec,'type':_0x7d3d75,'createdAt':new Date(),'authorId':_0x5baf68,'attributes':_0x5a9b75});return this[_0x5ea3('0xc6')](_0x7d3d75,_0x99f7ec,_0x5baf68,_0x33a034),_0x11225c;}[_0x5ea3('0x3')](_0x235828,_0x4cd456='multi',_0x2eb972={}){const _0x33dae6=this[_0x5ea3('0x5')][_0x5ea3('0xc8')][_0x5ea3('0xd6')]('Users')['me'],_0x48f71b=this[_0x5ea3('0xee')]['getSuggestionCallback']('insertion',_0x4cd456,_0x5ea3('0x11d'));for(const _0x28e449 of this['getSuggestions']())if(_0x28e449[_0x5ea3('0xaa')]['id']==_0x33dae6['id']&&_0x5ea3('0x104')==_0x28e449[_0x5ea3('0xf7')]&&_0x28e449[_0x5ea3('0x125')]==_0x4cd456&&(_0x48f71b(_0x28e449[_0x5ea3('0x10c')](),_0x235828)||_0x48f71b(_0x235828,_0x28e449[_0x5ea3('0x10c')]()))){for(const _0x136bdd of _0x235828)_0x28e449[_0x5ea3('0x6c')](_0x136bdd);return _0x28e449;}if(this[_0x5ea3('0x8d')])for(const _0x258b28 of _0x235828)for(const {suggestion:_0x4c35ed,meta:_0x5e883d}of this[_0x5ea3('0x9e')](_0x258b28,_0x5ea3('0x104'))){if(!_0x5e883d[_0x5ea3('0x83')])continue;let _0x343b03=!0x0;for(const _0x51a65d of _0x4c35ed[_0x5ea3('0x10c')]())for(const _0x5ed4ff of _0x235828)if(!_0x51a65d[_0x5ea3('0xba')](_0x5ed4ff)){_0x343b03=!0x1;break;}if(_0x343b03)return _0x4c35ed;}const _0x1ba933=_0x23e49d(),_0x4edbe5=_0x33dae6['id'],_0x91054=_0x5ea3('0x120')+_0x4cd456,_0x1a4557=this['_setSuggestionData']({'id':_0x1ba933,'type':_0x91054,'createdAt':new Date(),'authorId':_0x4edbe5,'attributes':_0x2eb972});for(const _0x35ccc2 of _0x235828)this['_addSuggestionMarker'](_0x91054,_0x1ba933,_0x4edbe5,_0x35ccc2,_0x38f5db['getMultiRangeId']());return _0x1a4557;}[_0x5ea3('0x21')](_0x528412,_0x4e7451,_0x460f50=null,_0x2b4558={}){if(_0x460f50=_0x460f50||$t(_0x4e7451),_0x528412['isCollapsed'])return null;if(_0x5ea3('0x8e')===this[_0x5ea3('0x40')]){const _0x1265e0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460f50,_0x5ea3('0x141'));return this[_0x5ea3('0xd5')](()=>_0x1265e0([_0x528412],_0x4e7451,_0x2b4558)),null;}const _0x5d5f3c=this[_0x5ea3('0x5')][_0x5ea3('0xc8')]['get'](_0x5ea3('0x10e'))['me'],_0x4604b4=[];if('always'!==this[_0x5ea3('0x40')])for(const {suggestion:_0x144b12,meta:_0x2f889f}of this[_0x5ea3('0x9e')](_0x528412,_0x5ea3('0x104')))_0x2f889f[_0x5ea3('0x83')]&&!_0x2f889f[_0x5ea3('0x13c')]&&_0x4604b4[_0x5ea3('0x51')](..._0x144b12[_0x5ea3('0x10c')]());const _0xeb7e13=function(_0x2ca3e4,_0x239a7a){const _0x1048c1=[];for(const _0x3c2a52 of _0x239a7a){const _0x317a6a=_0x2ca3e4['getIntersection'](_0x3c2a52);_0x317a6a&&_0x1048c1[_0x5ea3('0x51')](_0x317a6a);}return _0x1048c1;}(_0x528412,_0x4604b4),_0x1b0e09=function(_0x2b9c99,_0x467fbf){const _0x3f111a=[_0x2b9c99];for(const _0x3e983c of _0x467fbf){let _0x23813e=0x0;for(;_0x23813e<_0x3f111a[_0x5ea3('0x20')];){const _0x5668c9=_0x3f111a[_0x23813e]['getDifference'](_0x3e983c);_0x3f111a['splice'](_0x23813e,0x1,..._0x5668c9),_0x23813e+=_0x5668c9[_0x5ea3('0x20')];}}return _0x3f111a;}(_0x528412,_0x4604b4);_0xeb7e13[_0x5ea3('0x20')]&&this['_model'][_0x5ea3('0x136')](()=>{for(const _0x1be716 of _0xeb7e13){const _0x2bb46e=this['_suggestionFactory'][_0x5ea3('0x127')]('formatInline',_0x460f50,_0x5ea3('0x141'));this[_0x5ea3('0xd5')](()=>_0x2bb46e([_0x1be716],_0x4e7451,_0x2b4558));}});for(const _0x274b3c of _0x1b0e09){let _0x7cabf1=null,_0x56597b=_0x274b3c[_0x5ea3('0xb9')],_0x64e0ed=_0x274b3c[_0x5ea3('0x2a')];for(const {suggestion:_0x3ea62d,meta:_0x4bf427}of this[_0x5ea3('0x9e')](_0x274b3c,_0x5ea3('0x11b'))){if(!_0x4bf427[_0x5ea3('0x83')])continue;if(_0x3ea62d[_0x5ea3('0x125')]!=_0x460f50)continue;const _0x44d3cc=_0x3ea62d[_0x5ea3('0x16')]();if(_0x44d3cc[_0x5ea3('0xba')](_0x274b3c,!0x0))return null;_0x56597b=_0x56597b[_0x5ea3('0x4')](_0x44d3cc[_0x5ea3('0xb9')])?_0x56597b:_0x44d3cc[_0x5ea3('0xb9')],_0x64e0ed=_0x64e0ed[_0x5ea3('0xb')](_0x44d3cc['end'])?_0x64e0ed:_0x44d3cc['end'],_0x7cabf1?_0x44d3cc[_0x5ea3('0xb9')][_0x5ea3('0x4')](_0x7cabf1[_0x5ea3('0x16')]()[_0x5ea3('0xb9')])?(_0x7cabf1[_0x5ea3('0x13a')](),_0x7cabf1=_0x3ea62d):_0x3ea62d['removeMarkers']():_0x7cabf1=_0x3ea62d;}const _0x25bd89=this[_0x5ea3('0x1f')]['createRange'](_0x56597b,_0x64e0ed);if(_0x7cabf1)this[_0x5ea3('0xde')](_0x7cabf1,_0x25bd89);else{const _0x14938a=_0x23e49d(),_0x11094b=_0x5d5f3c['id'];this[_0x5ea3('0xec')]({'id':_0x14938a,'type':_0x5ea3('0x30')+_0x460f50,'data':_0x4e7451,'createdAt':new Date(),'authorId':_0x11094b,'attributes':_0x2b4558}),this[_0x5ea3('0xc6')](_0x5ea3('0x30')+_0x460f50,_0x14938a,_0x11094b,_0x25bd89);}}return null;}[_0x5ea3('0x18')](_0x4222bd,_0x395c06,_0x793f65=[],_0x2c9506=null,_0x5a206c={}){_0x395c06[_0x5ea3('0x112')]||(_0x395c06['formatGroupId']=_0x395c06['commandName']),_0x395c06[_0x5ea3('0x33')]=_0x4222bd['is']('range'),_0x2c9506=_0x2c9506||$t(_0x395c06);const _0x43b85e=_0x793f65[_0x5ea3('0x7f')](_0x42d247=>Rt(_0x42d247,this[_0x5ea3('0x1f')])),_0x109da8=_0x4222bd['is'](_0x5ea3('0x47'))?_0x4222bd:Rt(_0x4222bd,this[_0x5ea3('0x1f')]);if(_0x5ea3('0x8e')===this['_trackFormatChanges']){const _0x567be4=this[_0x5ea3('0xee')][_0x5ea3('0x127')](_0x5ea3('0xac'),_0x2c9506,_0x5ea3('0x141'));return this['forceDefaultExecution'](()=>_0x567be4([_0x109da8],_0x395c06,_0x5a206c)),null;}_0x43b85e[_0x5ea3('0x51')](_0x109da8);let _0x17112f=!0x0;for(const _0x1aaf74 of _0x43b85e)if(!this['_rangeIsInLocalUserInsertion'](_0x1aaf74)){_0x17112f=!0x1;break;}if(_0x17112f&&_0x5ea3('0x9c')!==this['_trackFormatChanges']){const _0x505441=this['_suggestionFactory'][_0x5ea3('0x127')]('formatBlock',_0x2c9506,_0x5ea3('0x141'));return this['forceDefaultExecution'](()=>_0x505441([_0x109da8],_0x395c06,_0x5a206c)),null;}let _0x4f5cfa=null,_0xc81932=_0x109da8['start'],_0x4c8d80=_0x109da8[_0x5ea3('0x2a')];for(const {suggestion:_0x14214b,meta:_0x43ad13}of this['_findSuggestions'](_0x109da8,_0x5ea3('0xac'))){if(!_0x43ad13[_0x5ea3('0x83')]||_0x43ad13[_0x5ea3('0x3f')]||_0x43ad13[_0x5ea3('0xb4')]||_0x43ad13[_0x5ea3('0x13c')])continue;if(_0x14214b['data'][_0x5ea3('0x112')]!=_0x395c06['formatGroupId'])continue;const _0x356d8d=_0x14214b['getFirstRange']();if(_0x14214b[_0x5ea3('0x125')]==_0x2c9506){if(_0x356d8d['containsRange'](_0x109da8,!0x0))return null;_0xc81932=_0xc81932[_0x5ea3('0x4')](_0x356d8d[_0x5ea3('0xb9')])?_0xc81932:_0x356d8d[_0x5ea3('0xb9')],_0x4c8d80=_0x4c8d80[_0x5ea3('0xb')](_0x356d8d['end'])?_0x4c8d80:_0x356d8d[_0x5ea3('0x2a')],_0x4f5cfa?_0x356d8d[_0x5ea3('0xb9')][_0x5ea3('0x4')](_0x4f5cfa['getFirstRange']()[_0x5ea3('0xb9')])?(_0x4f5cfa[_0x5ea3('0x13a')](),_0x4f5cfa=_0x14214b):_0x14214b[_0x5ea3('0x13a')]():_0x4f5cfa=_0x14214b;}else{const _0x3d93b8=_0x109da8[_0x5ea3('0xbd')](_0x356d8d);this[_0x5ea3('0xa0')](_0x14214b,_0x3d93b8);}}const _0x3f3dbe=this[_0x5ea3('0x5')][_0x5ea3('0xc8')][_0x5ea3('0xd6')](_0x5ea3('0x10e'))['me'],_0x39c85b=_0x23e49d(),_0x446aff=_0x3f3dbe['id'];if(_0x4f5cfa)return this[_0x5ea3('0xde')](_0x4f5cfa,this[_0x5ea3('0x1f')][_0x5ea3('0xda')](_0xc81932,_0x4c8d80)),_0x4f5cfa;{const _0xea0e16=this[_0x5ea3('0xec')]({'id':_0x39c85b,'type':'formatBlock:'+_0x2c9506,'data':_0x395c06,'createdAt':new Date(),'authorId':_0x446aff,'attributes':_0x5a206c});return this[_0x5ea3('0xc6')](_0x5ea3('0x4a')+_0x2c9506,_0x39c85b,_0x446aff,this[_0x5ea3('0x1f')][_0x5ea3('0xda')](_0xc81932,_0x4c8d80)),_0xea0e16;}}[_0x5ea3('0x56')](_0xd02d09,_0x5ab0cd,_0x10dd98=[],_0x467158=null,_0x1510a7={}){_0x5ab0cd[_0x5ea3('0x112')]||(_0x5ab0cd[_0x5ea3('0x112')]=_0x5ab0cd[_0x5ea3('0x15')]);const _0x20faa1=_0xd02d09[0x0];_0x5ab0cd[_0x5ea3('0x33')]=_0x20faa1['is']('range'),_0x467158=_0x467158||$t(_0x5ab0cd);const _0x70d708=_0x10dd98['map'](_0x5777ab=>Rt(_0x5777ab,this[_0x5ea3('0x1f')])),_0x4e358b=_0x20faa1['is'](_0x5ea3('0x47'))?_0xd02d09:_0xd02d09[_0x5ea3('0x7f')](_0x534937=>Rt(_0x534937,this['_model']));if('never'===this[_0x5ea3('0x40')]){const _0x33c320=this[_0x5ea3('0xee')][_0x5ea3('0x127')](_0x5ea3('0xac'),_0x467158,_0x5ea3('0x141'));return this[_0x5ea3('0xd5')](()=>_0x33c320(_0x4e358b,_0x5ab0cd,_0x1510a7)),null;}_0x70d708['push'](..._0x4e358b);let _0x6afb51=!0x0;for(const _0x109dab of _0x70d708)if(!this[_0x5ea3('0x34')](_0x109dab)){_0x6afb51=!0x1;break;}if(_0x6afb51&&_0x5ea3('0x9c')!==this[_0x5ea3('0x40')]){const _0x41828e=this[_0x5ea3('0xee')]['getSuggestionCallback'](_0x5ea3('0xac'),_0x467158,_0x5ea3('0x141'));return this[_0x5ea3('0xd5')](()=>_0x41828e(_0x4e358b,_0x5ab0cd,_0x1510a7)),null;}const _0x188ab7=this[_0x5ea3('0x5')][_0x5ea3('0xc8')][_0x5ea3('0xd6')](_0x5ea3('0x10e'))['me'];for(const _0x7d9567 of this[_0x5ea3('0x25')]()){if(_0x7d9567['author']['id']!=_0x188ab7['id'])continue;if('formatBlock'!=_0x7d9567[_0x5ea3('0xf7')]||_0x7d9567['data'][_0x5ea3('0x112')]!=_0x5ab0cd[_0x5ea3('0x112')])continue;const _0x1ea5aa=_0x7d9567['subType']==_0x467158;for(let _0x5cddac=0x0;_0x5cddac<_0x4e358b[_0x5ea3('0x20')];_0x5cddac++){const _0x2db252=_0x4e358b[_0x5cddac];for(const _0x650a65 of _0x7d9567[_0x5ea3('0xf4')]()){const _0x399659=_0x650a65[_0x5ea3('0x64')]();if(_0x2db252[_0x5ea3('0x35')](_0x399659)){_0x1ea5aa?(_0x4e358b['splice'](_0x5cddac,0x1),_0x5cddac--):_0x7d9567[_0x5ea3('0x101')](_0x650a65['name']);break;}}}}if(0x0==_0x4e358b[_0x5ea3('0x20')])return null;const _0x8f4741=this[_0x5ea3('0xee')][_0x5ea3('0x127')](_0x5ea3('0xac'),_0x467158,_0x5ea3('0x11d'));for(const _0x108ae6 of this[_0x5ea3('0x25')]())if(_0x108ae6[_0x5ea3('0xaa')]['id']==_0x188ab7['id']&&_0x5ea3('0xac')==_0x108ae6[_0x5ea3('0xf7')]&&_0x108ae6[_0x5ea3('0x60')][_0x5ea3('0x112')]==_0x5ab0cd[_0x5ea3('0x112')]&&_0x108ae6[_0x5ea3('0x125')]==_0x467158&&(_0x8f4741(_0x108ae6[_0x5ea3('0x10c')](),_0x4e358b)||_0x8f4741(_0x4e358b,_0x108ae6[_0x5ea3('0x10c')]()))){for(const _0xed87ae of _0x4e358b)_0x108ae6[_0x5ea3('0x6c')](_0xed87ae);return _0x108ae6;}const _0x2e271e=_0x23e49d(),_0x44ec93=_0x188ab7['id'],_0x503329=_0x5ea3('0x4a')+_0x467158,_0xb94a65=this[_0x5ea3('0xec')]({'id':_0x2e271e,'type':_0x503329,'data':_0x5ab0cd,'createdAt':new Date(),'authorId':_0x44ec93,'attributes':_0x1510a7});for(const _0x531d1b of _0x4e358b)this[_0x5ea3('0xc6')](_0x503329,_0x2e271e,_0x44ec93,_0x531d1b,_0x38f5db[_0x5ea3('0x55')]());return _0xb94a65;}['markDeletion'](_0x32c024,_0x1d85b5=null,_0x59617d={}){if(_0x32c024[_0x5ea3('0x13e')])return null;const _0x2bf7e1=this['editor'][_0x5ea3('0xc8')][_0x5ea3('0xd6')]('Users')['me'],_0x14899d=new _0x94a9b8(_0x32c024['start'],_0x32c024[_0x5ea3('0x2a')]);for(const {suggestion:_0x819d3c,meta:_0xd238a7}of this[_0x5ea3('0x9e')](_0x14899d,_0x5ea3('0x104')))if(_0xd238a7[_0x5ea3('0x83')]&&!_0xd238a7[_0x5ea3('0x3f')]){if(_0x819d3c[_0x5ea3('0x12a')]){const _0x5314a0=_0x819d3c[_0x5ea3('0x10c')]()[_0x5ea3('0x1a')](_0x14df78=>'$graveyard'!=_0x14df78[_0x5ea3('0xd2')][_0x5ea3('0x107')]);_0x5314a0[_0x5ea3('0x91')](_0xd3898c=>_0x14899d[_0x5ea3('0xba')](_0xd3898c,!0x0))&&_0x819d3c[_0x5ea3('0x121')]();if(_0x5314a0['some'](_0x4d1379=>_0x4d1379[_0x5ea3('0xba')](_0x14899d,!0x0))){const _0x179590=this[_0x5ea3('0xee')][_0x5ea3('0x127')]('deletion',_0x1d85b5,_0x5ea3('0x141'));return this[_0x5ea3('0xd5')](()=>_0x179590([_0x14899d],null,_0x59617d)),null;}}else{const _0x511ac2=_0x14899d['getIntersection'](_0x819d3c['getFirstRange']());null!==_0x511ac2&&_0x819d3c['_onDiscard']([_0x511ac2],null,_0x59617d);}}if(_0x14899d[_0x5ea3('0xb8')](),_0x14899d[_0x5ea3('0x13e')]||'$graveyard'==_0x14899d[_0x5ea3('0xd2')]['rootName'])return null;let _0x3a5760=null,_0x1b07cb=_0x14899d[_0x5ea3('0xb9')],_0x5e1e52=_0x14899d[_0x5ea3('0x2a')];for(const {suggestion:_0x3607cd,meta:_0x209c2b}of this['_findSuggestions'](_0x14899d,_0x5ea3('0xbc')))if(_0x209c2b[_0x5ea3('0x83')]){if(_0x3607cd['isMultiRange']&&this[_0x5ea3('0x8d')]){let _0x1f6d22=!0x0;for(const _0x1e6c6f of _0x3607cd[_0x5ea3('0x10c')]()){if(_0x1e6c6f[_0x5ea3('0xba')](_0x14899d,!0x0))return _0x3607cd;_0x14899d[_0x5ea3('0xba')](_0x1e6c6f)||(_0x1f6d22=!0x1);}_0x1f6d22&&_0x3607cd['discard']();}else{const _0x298e5f=_0x3607cd[_0x5ea3('0x16')]();if(_0x298e5f[_0x5ea3('0xba')](_0x14899d,!0x0)){if(!this[_0x5ea3('0x8d')]&&_0x209c2b['containsRangeInObject'])continue;return _0x3607cd;}_0x1b07cb=_0x1b07cb[_0x5ea3('0x4')](_0x298e5f[_0x5ea3('0xb9')])?_0x1b07cb:_0x298e5f[_0x5ea3('0xb9')],_0x5e1e52=_0x5e1e52[_0x5ea3('0xb')](_0x298e5f[_0x5ea3('0x2a')])?_0x5e1e52:_0x298e5f[_0x5ea3('0x2a')],_0x3a5760?_0x298e5f[_0x5ea3('0xb9')][_0x5ea3('0x4')](_0x3a5760[_0x5ea3('0x16')]()[_0x5ea3('0xb9')])?(_0x3a5760[_0x5ea3('0x13a')](),_0x3a5760=_0x3607cd):_0x3607cd[_0x5ea3('0x13a')]():_0x3a5760=_0x3607cd;}}if(_0x3a5760)return this[_0x5ea3('0xde')](_0x3a5760,this[_0x5ea3('0x1f')][_0x5ea3('0xda')](_0x1b07cb,_0x5e1e52)),_0x3a5760;{const _0x197458=_0x23e49d(),_0x2dd9ab=this['_model'][_0x5ea3('0xda')](_0x1b07cb,_0x5e1e52),_0x525712=_0x2bf7e1['id'],_0x4cc2ea=_0x1d85b5?_0x5ea3('0x86')+_0x1d85b5:_0x5ea3('0xbc'),_0x5b1e52=this['_setSuggestionData']({'id':_0x197458,'type':_0x4cc2ea,'createdAt':new Date(),'authorId':_0x525712,'attributes':_0x59617d});return this[_0x5ea3('0xc6')](_0x4cc2ea,_0x197458,_0x525712,_0x2dd9ab),_0x5b1e52;}}[_0x5ea3('0xa')](_0x158b91,_0x327c62=_0x5ea3('0x92'),_0x1444f1={}){const _0x2e8014=this[_0x5ea3('0x5')][_0x5ea3('0xc8')][_0x5ea3('0xd6')](_0x5ea3('0x10e'))['me'],_0x338e77=_0x158b91[_0x5ea3('0x7f')](_0x183142=>new _0x94a9b8(_0x183142[_0x5ea3('0xb9')],_0x183142['end'])),_0xc3724c=new Set();for(const _0x3d10b7 of _0x338e77)for(const {suggestion:_0x466544,meta:_0xcb907e}of this['_findSuggestions'](_0x3d10b7,'insertion'))_0xcb907e['isOwn']&&!_0xcb907e['isNextTo']&&_0xc3724c[_0x5ea3('0x44')](_0x466544);for(const _0x12a578 of _0xc3724c)if(_0x12a578[_0x5ea3('0x12a')]){const _0x191e69=_0x12a578[_0x5ea3('0x10c')]();(!_0x12a578[_0x5ea3('0x13')]||!_0x12a578[_0x5ea3('0x13')]['skipNestingCheck'])&&(_0x191e69[_0x5ea3('0x91')](_0x5a78c3=>_0x338e77[_0x5ea3('0x114')](_0xcd9eda=>_0xcd9eda['containsRange'](_0x5a78c3,!0x0)))&&_0x12a578['discard']());if(_0x338e77[_0x5ea3('0x91')](_0xab8968=>_0x191e69[_0x5ea3('0x114')](_0xafad13=>_0xafad13['containsRange'](_0xab8968,!0x0)))){const _0x46c666=this[_0x5ea3('0xee')][_0x5ea3('0x127')]('deletion',_0x327c62,_0x5ea3('0x141'));return this['forceDefaultExecution'](()=>_0x46c666(_0x158b91,null,_0x1444f1)),null;}}else{const _0x339ede=_0x12a578['getFirstRange']();_0x338e77[_0x5ea3('0x114')](_0x4c0a57=>_0x4c0a57[_0x5ea3('0xba')](_0x339ede,!0x0))&&_0x12a578[_0x5ea3('0x121')]();if(_0x338e77[_0x5ea3('0x91')](_0x146792=>_0x339ede[_0x5ea3('0xba')](_0x146792,!0x0))){const _0x19196b=this[_0x5ea3('0xee')][_0x5ea3('0x127')](_0x5ea3('0xbc'),_0x327c62,'accept');return this[_0x5ea3('0xd5')](()=>_0x19196b(_0x338e77,null,_0x1444f1)),null;}}const _0x469e80=this[_0x5ea3('0xee')]['getSuggestionCallback']('deletion',_0x327c62,'join');let _0x3fbf19=null;for(const _0x3415f5 of this['getSuggestions']())if(_0x3415f5[_0x5ea3('0xaa')]['id']==_0x2e8014['id']&&_0x3415f5['isInContent']&&_0x5ea3('0xbc')==_0x3415f5['type']&&_0x3415f5[_0x5ea3('0x125')]==_0x327c62&&(_0x469e80(_0x3415f5[_0x5ea3('0x10c')](),_0x338e77)||_0x469e80(_0x338e77,_0x3415f5['getRanges']()))){if(_0x3fbf19){if(_0x3415f5[_0x5ea3('0x123')]&&_0x3415f5[_0x5ea3('0x123')][_0x5ea3('0x20')])continue;for(const _0x15bc93 of _0x3415f5[_0x5ea3('0x10c')]())_0x3fbf19['isIntersectingWithRange'](_0x15bc93)||_0x3fbf19['addRange'](_0x15bc93);_0x3415f5[_0x5ea3('0x13a')]();}else{_0x3fbf19=_0x3415f5;for(const _0x17eeff of _0x338e77)_0x3415f5[_0x5ea3('0x80')](_0x17eeff)||_0x3415f5[_0x5ea3('0x6c')](_0x17eeff);}}if(_0x3fbf19)return _0x3fbf19;_0xc3724c[_0x5ea3('0xb2')]();for(const _0x4f5ee0 of _0x338e77)for(const {suggestion:_0x26ba5e,meta:_0x267ac3}of this[_0x5ea3('0x9e')](_0x4f5ee0,_0x5ea3('0xbc')))_0x267ac3[_0x5ea3('0x83')]&&_0xc3724c[_0x5ea3('0x44')](_0x26ba5e);for(const _0x24dd84 of _0xc3724c){const _0x41baa4=_0x24dd84[_0x5ea3('0x10c')]();if(!_0x1444f1||!_0x1444f1['skipNestingCheck']){if(_0x338e77[_0x5ea3('0x91')](_0x28c387=>_0x41baa4[_0x5ea3('0x114')](_0x1de669=>_0x1de669[_0x5ea3('0xba')](_0x28c387,!0x0))))return _0x24dd84;}(!_0x24dd84[_0x5ea3('0x13')]||!_0x24dd84[_0x5ea3('0x13')][_0x5ea3('0x75')])&&(_0x41baa4[_0x5ea3('0x91')](_0x3220d6=>_0x338e77[_0x5ea3('0x114')](_0x11da6b=>_0x11da6b[_0x5ea3('0xba')](_0x3220d6,!0x0)))&&_0x24dd84[_0x5ea3('0x121')]());}const _0x3c6fe9=_0x23e49d(),_0xfa87de=_0x2e8014['id'],_0x534d7b='deletion:'+_0x327c62,_0x1575ef=this['_setSuggestionData']({'id':_0x3c6fe9,'type':_0x534d7b,'createdAt':new Date(),'authorId':_0xfa87de,'attributes':_0x1444f1});for(const _0x4e172c of _0x338e77)_0x4e172c['detach'](),_0x4e172c['isCollapsed']||_0x5ea3('0x135')==_0x4e172c[_0x5ea3('0xd2')][_0x5ea3('0x107')]||this[_0x5ea3('0xc6')](_0x534d7b,_0x3c6fe9,_0xfa87de,_0x4e172c,_0x38f5db[_0x5ea3('0x55')]());return _0x1575ef;}[_0x5ea3('0xde')](_0x14ad85,_0xc28697){const _0x47b811=_0x14ad85[_0x5ea3('0xa5')]();this['_model'][_0x5ea3('0x136')](_0x1c9df9=>{_0x1c9df9[_0x5ea3('0xe')](_0x47b811,{'range':_0xc28697});});}[_0x5ea3('0x6a')](_0x28ba75){const _0x50fd67=_0x28ba75['id'],_0xac707b=this['editor']['config']['get']('collaboration.channelId');this[_0x5ea3('0x7a')][_0x5ea3('0x22')](_0x50fd67)||this[_0x5ea3('0x7a')]['addCommentThread']({'channelId':_0xac707b,'threadId':_0x50fd67,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xe8e9ec=this[_0x5ea3('0x7a')][_0x5ea3('0x63')](_0x50fd67);_0xe8e9ec[_0x5ea3('0x38')](_0x5ea3('0xf6')),_0xe8e9ec[_0x5ea3('0xf6')]=!0x1,_0x28ba75[_0x5ea3('0x123')]=_0xe8e9ec;}[_0x5ea3('0x4c')](_0x3fd49b,_0x18b519,_0x334b52,_0x5b2a6d){if(_0x3fd49b[_0x5ea3('0xf7')]!=_0x18b519||_0x3fd49b[_0x5ea3('0x125')]!=_0x334b52||_0x3fd49b['creator']['id']!=_0x5b2a6d)throw this[_0x5ea3('0x5')]['enableReadOnlyMode'](_0x5ea3('0x143')),new _0x11521c(_0x5ea3('0x143'),this);}[_0x5ea3('0xa0')](_0x350b55,_0x38e6af){const _0x399fb1=_0x350b55[_0x5ea3('0x16')]();if(_0x38e6af[_0x5ea3('0x35')](_0x399fb1))_0x350b55['removeMarkers']();else{if(_0x399fb1['containsRange'](_0x38e6af)){const _0x96f067=this[_0x5ea3('0x1f')][_0x5ea3('0x5e')](_0x38e6af[_0x5ea3('0xb9')][_0x5ea3('0x2d')],_0x5ea3('0x2a'));this[_0x5ea3('0xde')](_0x350b55,this['_model'][_0x5ea3('0xda')](_0x399fb1[_0x5ea3('0xb9')],_0x96f067));const _0x15fbfc=_0x23e49d(),_0x320787=_0x350b55[_0x5ea3('0x100')]['id'],_0x460c59=_0x350b55[_0x5ea3('0xf7')]+':'+_0x350b55[_0x5ea3('0x125')];this[_0x5ea3('0xec')]({'id':_0x15fbfc,'type':_0x460c59,'createdAt':new Date(),'authorId':_0x320787,'data':_0x350b55[_0x5ea3('0x60')],'attributes':_0x350b55[_0x5ea3('0x13')]});const _0x11a0d0=this[_0x5ea3('0x1f')][_0x5ea3('0x5e')](_0x38e6af[_0x5ea3('0x2a')][_0x5ea3('0x8')],_0x5ea3('0x113')),_0x3dd372=this[_0x5ea3('0x1f')][_0x5ea3('0xda')](_0x11a0d0,_0x399fb1[_0x5ea3('0x2a')]);this[_0x5ea3('0xc6')](_0x460c59,_0x15fbfc,_0x320787,_0x3dd372);}else{if(_0x399fb1['containsPosition'](_0x38e6af[_0x5ea3('0xb9')])){const _0x4a8d48=this[_0x5ea3('0x1f')][_0x5ea3('0x5e')](_0x38e6af['start']['nodeBefore'],_0x5ea3('0x2a'));this['_setSuggestionRange'](_0x350b55,this[_0x5ea3('0x1f')]['createRange'](_0x399fb1['start'],_0x4a8d48));}else{const _0x563def=this[_0x5ea3('0x1f')][_0x5ea3('0x5e')](_0x38e6af[_0x5ea3('0x2a')][_0x5ea3('0x8')],'after');this[_0x5ea3('0xde')](_0x350b55,this[_0x5ea3('0x1f')][_0x5ea3('0xda')](_0x563def,_0x399fb1['end']));}}}}[_0x5ea3('0x34')](_0x1b3150){for(const {suggestion:_0x341a96,meta:_0x380783}of this['_findSuggestions'](_0x1b3150,_0x5ea3('0x104'))){if(!_0x380783[_0x5ea3('0x83')])continue;const _0x4d5183=_0x341a96[_0x5ea3('0x10c')]();for(const _0x502a7b of _0x4d5183)if(!_0x1b3150[_0x5ea3('0x48')](_0x502a7b)[_0x5ea3('0x20')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x245014){const _0x2d2bc3=this[_0x5ea3('0x5')]['plugins'][_0x5ea3('0xd6')](_0x5ea3('0x10e'))['getUser'](_0x245014);if(!_0x2d2bc3)throw new _0x11521c('track-changes-user-not-found',this);return _0x2d2bc3;}[_0x5ea3('0x5d')](_0x246727){const _0x5d2328=this[_0x5ea3('0x5')]['plugins'][_0x5ea3('0xd6')](_0x5ea3('0x10e')),_0xb63f72=_0xc64a53('external:'+_0x246727),_0x146a91=_0x5d2328[_0x5ea3('0x59')](_0xb63f72);return _0x146a91||_0x5d2328['addUser']({'id':_0xb63f72,'name':_0x246727});}[_0x5ea3('0xcf')](_0x1fd906,_0x1d3830,_0x5d5fd6,_0x289218,_0xb1c760){const _0x2fedf7=this[_0x5ea3('0x4e')](_0x289218),_0x1bdef9=this[_0x5ea3('0xee')]['buildSuggestion'](_0x1fd906,_0x1d3830,_0x5d5fd6,_0x2fedf7,_0xb1c760,_0x3fdd68=>this[_0x5ea3('0x99')](_0x5d5fd6,{'attributes':_0x3fdd68}));return this[_0x5ea3('0x3b')](_0x1bdef9,'accept',()=>{this['_updateSuggestionData'](_0x5d5fd6,{'state':_0x5ea3('0x8f')});},{'priority':_0x5ea3('0x129')}),this['listenTo'](_0x1bdef9,_0x5ea3('0x121'),()=>{this['_updateSuggestionData'](_0x5d5fd6,{'state':_0x5ea3('0x132')});},{'priority':_0x5ea3('0x129')}),this['_suggestions'][_0x5ea3('0x36')](_0x5d5fd6,_0x1bdef9),this['_suggestionState'][_0x5ea3('0x36')](_0x1bdef9,_0x5ea3('0xcc')),_0x1bdef9;}['_splitMarkerName'](_0xe57b9d){const _0x344e64=_0xe57b9d[_0x5ea3('0x108')](':');return{'group':_0x344e64[0x0],'type':_0x344e64[0x1],'subType':_0x344e64[_0x5ea3('0x20')]>=0x5?_0x344e64[0x2]:null,'id':_0x344e64[_0x5ea3('0x20')]<0x5?_0x344e64[0x2]:_0x344e64[0x3],'authorId':_0x344e64[_0x5ea3('0x20')]<0x5?_0x344e64[0x3]:_0x344e64[0x4],'markerCount':0x6==_0x344e64['length']?_0x344e64[0x5]:null};}['_breakSuggestionMarker'](_0xe7a06d,_0x11846a,_0x29c4f9){const _0x52dd84=_0xe7a06d['getFirstRange'](),_0x258f0a=_0x52dd84[_0x5ea3('0xb9')],_0x26848=_0x52dd84[_0x5ea3('0x2a')];this['_setSuggestionRange'](_0xe7a06d,this[_0x5ea3('0x1f')][_0x5ea3('0xda')](_0x258f0a,_0x11846a));const _0x3d1558=_0x23e49d(),_0x1145bb=_0xe7a06d[_0x5ea3('0x100')]['id'],_0x32f93a=_0xe7a06d[_0x5ea3('0xf7')]+(_0xe7a06d[_0x5ea3('0x125')]?':'+_0xe7a06d[_0x5ea3('0x125')]:'');this['_setSuggestionData']({'id':_0x3d1558,'type':_0x32f93a,'createdAt':new Date(),'authorId':_0x1145bb,'originalSuggestionId':_0xe7a06d['id'],'attributes':_0xe7a06d['attributes'],'data':_0xe7a06d[_0x5ea3('0x60')]}),_0x5ea3('0xac')==_0xe7a06d[_0x5ea3('0xf7')]&&(_0x29c4f9=this['_model'][_0x5ea3('0xb3')](_0x29c4f9[_0x5ea3('0x8')])),this[_0x5ea3('0xc6')](_0x32f93a,_0x3d1558,_0x1145bb,this[_0x5ea3('0x1f')][_0x5ea3('0xda')](_0x29c4f9,_0x26848));}['_findSuggestions'](_0x293bba,_0x4c2bd5=null){const _0x22ae96=[],_0x871adf=this['_model'][_0x5ea3('0x6f')],_0x4e51a0=this['editor'][_0x5ea3('0xc8')][_0x5ea3('0xd6')](_0x5ea3('0x10e'))['me'];for(const _0xefc28f of this[_0x5ea3('0x25')]())if(_0xefc28f[_0x5ea3('0x115')]&&(!_0x4c2bd5||_0xefc28f[_0x5ea3('0xf7')]==_0x4c2bd5))for(const _0x426246 of _0xefc28f[_0x5ea3('0x10c')]()){const _0x1275a9=_0x293bba[_0x5ea3('0xb9')][_0x5ea3('0x35')](_0x426246['end'])||_0x293bba[_0x5ea3('0x2a')][_0x5ea3('0x35')](_0x426246[_0x5ea3('0xb9')]);if(_0x1275a9||_0x293bba[_0x5ea3('0xbd')](_0x426246)){const _0x519973=_0x293bba['containsRange'](_0x426246)&&Bt(_0x871adf,_0x426246[_0x5ea3('0xb9')],_0x293bba),_0x4d315f=_0x426246[_0x5ea3('0xba')](_0x293bba)&&Bt(_0x871adf,_0x293bba['start'],_0x426246);_0x22ae96['push']({'suggestion':_0xefc28f,'meta':{'isOwn':_0x4e51a0==_0xefc28f['author'],'isNextTo':_0x1275a9,'isInsideObject':_0x519973,'containsRangeInObject':_0x4d315f}});break;}}return _0x22ae96;}['_addSuggestionMarker'](_0x3b3155,_0x4687ab,_0x2b0c29,_0x5a33f4,_0x19a3dc){this[_0x5ea3('0x1f')][_0x5ea3('0x136')](_0x185ea3=>{let _0x4e1c33='suggestion:'+_0x3b3155+':'+_0x4687ab+':'+_0x2b0c29;_0x19a3dc&&(_0x4e1c33=_0x4e1c33+':'+_0x19a3dc),_0x185ea3['addMarker'](_0x4e1c33,{'range':_0x5a33f4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5ea3('0x2b')](_0x2be5ff){const _0x489511=_0x2be5ff[_0x5ea3('0xea')],_0x1f5e81=_0x2be5ff['next'];_0x2be5ff['previous']=null,null!=_0x489511&&(_0x489511[_0x5ea3('0xcd')]=null),_0x2be5ff[_0x5ea3('0xcd')]=null,null!=_0x1f5e81&&(_0x1f5e81[_0x5ea3('0xea')]=null),_0x5ea3('0x53')==this['_suggestionState'][_0x5ea3('0xd6')](_0x2be5ff)&&(this[_0x5ea3('0xb0')][_0x5ea3('0x36')](_0x2be5ff,_0x5ea3('0xa6')),this[_0x5ea3('0x6e')](_0x5ea3('0x4d'),_0x2be5ff,_0x489511,_0x1f5e81));}['_setSuggestionData'](_0x383730){const _0x3b4806=_0x383730['id'],_0x26f441=this[_0x5ea3('0x7e')](_0x383730);if(this['_adapter']&&this[_0x5ea3('0x10')]['addSuggestion']){const _0x2935a1=this[_0x5ea3('0x5')][_0x5ea3('0xc8')][_0x5ea3('0xd6')](_0x5ea3('0x79')),_0x4c2cb8=_0x26f441[_0x5ea3('0x139')],_0x20242d=_0x26f441[_0x5ea3('0x125')]?_0x26f441[_0x5ea3('0xf7')]+':'+_0x26f441[_0x5ea3('0x125')]:_0x26f441['type'],_0x55958e=this['editor']['locale'],_0x61aed0=_0x2935a1['add'](_0xca3d38(_0x55958e,_0x5ea3('0x66'))),_0x4fb965={'id':_0x3b4806,'type':_0x20242d,'hasComments':_0x4c2cb8,'data':_0x383730[_0x5ea3('0x60')]||null,'originalSuggestionId':_0x383730[_0x5ea3('0x27')]||null,'attributes':_0x26f441['attributes']};this[_0x5ea3('0x10')]['addSuggestion'](_0x4fb965)['then'](_0x5d9261=>{_0x26f441[_0x5ea3('0xc9')]=!0x0,_0x2935a1[_0x5ea3('0x6b')](_0x61aed0),_0x5d9261&&_0x5d9261[_0x5ea3('0x3e')]&&(this[_0x5ea3('0x50')][_0x5ea3('0xd6')](_0x3b4806)[_0x5ea3('0x3e')]=_0x5d9261['createdAt']);})[_0x5ea3('0xb5')](_0x540082=>{throw _0xc0592b(_0x5ea3('0xc')),this[_0x5ea3('0x5')][_0x5ea3('0xfd')][_0x5ea3('0xb7')]({'isUndoable':!0x1},()=>{_0x26f441[_0x5ea3('0x121')]();}),_0x26f441[_0x5ea3('0x10d')](),this[_0x5ea3('0x50')][_0x5ea3('0x9b')](_0x26f441['id']),this[_0x5ea3('0xb0')][_0x5ea3('0x9b')](_0x26f441),_0x540082;});}return _0x26f441;}['_updateSuggestionData'](_0x1646d6,_0x5d5a9e){const _0x1caac6=this[_0x5ea3('0x5')][_0x5ea3('0xc8')]['get'](_0x5ea3('0x79')),_0x54361e=this[_0x5ea3('0x12f')](_0x1646d6);if(this['_adapter']&&this[_0x5ea3('0x10')]['updateSuggestion']){if(_0x54361e[_0x5ea3('0xc9')]){const _0x32d51b=_0x1caac6['add'](_0xca3d38(this[_0x5ea3('0x5')]['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x5ea3('0x42')](_0x1646d6,_0x5d5a9e)[_0x5ea3('0x3a')](()=>{_0x1caac6['remove'](_0x32d51b);});}else _0x54361e['on'](_0x5ea3('0x4f'),()=>{this['_updateSuggestionData'](_0x1646d6,_0x5d5a9e);});}}['_getSuggestionData'](_0x31d2a1){if(!this[_0x5ea3('0x10')]||!this[_0x5ea3('0x10')]['getSuggestion'])throw new _0x11521c(_0x5ea3('0xa7'),this);return this['_adapter']['getSuggestion'](_0x31d2a1);}['_handleNewSuggestionMarker'](_0x3bf0e8){const {id:_0x56068b,type:_0x1285fe,subType:_0x4fd50d,authorId:_0x183ce2}=this[_0x5ea3('0x2c')](_0x3bf0e8),_0x501140=this[_0x5ea3('0x50')][_0x5ea3('0xd6')](_0x56068b)||this['_createSuggestion'](_0x1285fe,_0x4fd50d,_0x56068b,_0x183ce2,{});switch(this[_0x5ea3('0x4c')](_0x501140,_0x1285fe,_0x4fd50d,_0x183ce2),this[_0x5ea3('0xb0')][_0x5ea3('0xd6')](_0x501140)){case'notReady':this['_getSuggestionData'](_0x56068b)[_0x5ea3('0x3a')](_0x2fc3f5=>{let _0x3d2a6d=Promise[_0x5ea3('0x39')]();_0x2fc3f5[_0x5ea3('0x139')]&&(_0x3d2a6d=this[_0x5ea3('0x7a')][_0x5ea3('0x93')]({'channelId':this['editor'][_0x5ea3('0x61')][_0x5ea3('0xd6')](_0x5ea3('0x5f')),'threadId':_0x56068b})),_0x3d2a6d[_0x5ea3('0x3a')](()=>{this[_0x5ea3('0x7e')](_0x2fc3f5)[_0x5ea3('0xc9')]=!0x0;});}),this[_0x5ea3('0xb0')][_0x5ea3('0x36')](_0x501140,_0x5ea3('0xa3'));break;case _0x5ea3('0xa6'):this[_0x5ea3('0x99')](_0x56068b,{'state':_0x5ea3('0xfb')});case _0x5ea3('0xf2'):this['_suggestionState'][_0x5ea3('0x36')](_0x501140,_0x5ea3('0x53')),this[_0x5ea3('0x6e')](_0x5ea3('0x119'),_0x501140);break;case _0x5ea3('0x53'):this[_0x5ea3('0x6e')](_0x5ea3('0x2f'),_0x501140);}return _0x501140[_0x5ea3('0x9a')](_0x3bf0e8),_0x501140;}[_0x5ea3('0x105')](_0x4dd857){const _0x3bacb8=Array[_0x5ea3('0xdc')](_0x4dd857)[_0x5ea3('0x1a')](_0x30f50a=>!_0x30f50a['isMultiRange']),_0x800e36=this[_0x5ea3('0x25')]({'skipNotAttached':!0x0})[_0x5ea3('0x1a')](_0x20235e=>!_0x20235e[_0x5ea3('0x12a')]),_0x1afc43=_0x800e36[_0x5ea3('0x1a')](_0x2dc8fd=>!_0x4dd857[_0x5ea3('0xbe')](_0x2dc8fd)),_0x2ecfaa=new Map(_0x800e36['map'](_0x40ada7=>[_0x40ada7,this[_0x5ea3('0xee')][_0x5ea3('0x127')](_0x40ada7[_0x5ea3('0xf7')],_0x40ada7[_0x5ea3('0x125')],_0x5ea3('0x77'))])),_0x5d742a=new Map(_0x800e36[_0x5ea3('0x7f')](_0x116311=>[_0x116311,_0x116311[_0x5ea3('0x16')]()])),_0x64e989=new Set(),_0x40d755=new Set();for(let _0xad8a59=0x0;_0xad8a59<_0x3bacb8['length'];_0xad8a59++)_0x10247f(_0x3bacb8[_0xad8a59],_0x3bacb8,_0xad8a59+0x1);for(let _0x254b21=0x0;_0x254b21<_0x3bacb8[_0x5ea3('0x20')];_0x254b21++)_0x10247f(_0x3bacb8[_0x254b21],_0x1afc43,0x0);for(let _0x2cdea6=0x0;_0x2cdea6<_0x3bacb8['length'];_0x2cdea6++){const _0x917d49=_0x3bacb8[_0x2cdea6];!_0x40d755[_0x5ea3('0xbe')](_0x917d49)&&_0x917d49[_0x5ea3('0xea')]&&(_0x917d49[_0x5ea3('0xea')][_0x5ea3('0xcd')]===_0x917d49&&(_0x917d49[_0x5ea3('0xea')]['next']=null),_0x917d49[_0x5ea3('0xea')]=null),!_0x64e989[_0x5ea3('0xbe')](_0x917d49)&&_0x917d49[_0x5ea3('0xcd')]&&(_0x917d49[_0x5ea3('0xcd')][_0x5ea3('0xea')]===_0x917d49&&(_0x917d49[_0x5ea3('0xcd')][_0x5ea3('0xea')]=null),_0x917d49[_0x5ea3('0xcd')]=null);}function _0x10247f(_0xfff542,_0x50702e,_0xa76aed){for(let _0x2a9725=_0xa76aed;_0x2a9725<_0x50702e['length'];_0x2a9725++){const _0x1ce9b8=_0x58602f(_0xfff542,_0x50702e[_0x2a9725]);_0x1ce9b8&&(_0x1ce9b8[0x0][_0x5ea3('0xcd')]=_0x1ce9b8[0x1],_0x1ce9b8[0x1][_0x5ea3('0xea')]=_0x1ce9b8[0x0],_0x64e989[_0x5ea3('0x44')](_0x1ce9b8[0x0]),_0x40d755[_0x5ea3('0x44')](_0x1ce9b8[0x1]));}}function _0x58602f(_0x50df35,_0x4e8148){if(_0x50df35['author']['id']!==_0x4e8148[_0x5ea3('0xaa')]['id'])return null;const _0x236c42=_0x2ecfaa[_0x5ea3('0xd6')](_0x50df35)(_0x50df35,_0x4e8148,_0x5d742a[_0x5ea3('0xd6')](_0x50df35),_0x5d742a[_0x5ea3('0xd6')](_0x4e8148));if(!_0x236c42)return null;return _0x2ecfaa['get'](_0x4e8148)(_0x50df35,_0x4e8148,_0x5d742a['get'](_0x50df35),_0x5d742a[_0x5ea3('0xd6')](_0x4e8148))?_0x236c42[0x1][_0x5ea3('0x123')]&&_0x236c42[0x1][_0x5ea3('0x123')][_0x5ea3('0x20')]?null:_0x236c42:null;}}[_0x5ea3('0x2e')](_0x5d7c11){const _0x3e8987=Array[_0x5ea3('0xdc')](_0x5d7c11),_0x2a2f28=this[_0x5ea3('0x25')]({'skipNotAttached':!0x0}),_0x3f7794=_0x2a2f28[_0x5ea3('0x1a')](_0x3f4753=>!_0x5d7c11[_0x5ea3('0xbe')](_0x3f4753)),_0x5255af=new Map(_0x3e8987[_0x5ea3('0x7f')](_0x5a10b5=>[_0x5a10b5,this[_0x5ea3('0xee')][_0x5ea3('0x127')](_0x5a10b5[_0x5ea3('0xf7')],_0x5a10b5[_0x5ea3('0x125')],_0x5ea3('0x11d'))])),_0x4f796a=new Map(_0x2a2f28[_0x5ea3('0x7f')](_0x27e1b7=>[_0x27e1b7,_0x27e1b7[_0x5ea3('0x10c')]()]));for(let _0x3029b9=0x0;_0x3029b9<_0x3e8987[_0x5ea3('0x20')];_0x3029b9++){if(_0x4e08f2(this,_0x3e8987[_0x3029b9],_0x3e8987,_0x3029b9+0x1))return!0x0;}for(let _0x258d0f=0x0;_0x258d0f<_0x3e8987['length'];_0x258d0f++){if(_0x4e08f2(this,_0x3e8987[_0x258d0f],_0x3f7794,0x0))return!0x0;}return!0x1;function _0x4e08f2(_0x11b929,_0x6c9699,_0x100951,_0x3bd0fb){for(let _0x49699d=_0x3bd0fb;_0x49699d<_0x100951['length'];_0x49699d++){const _0xcb6f30=_0x100951[_0x49699d];if(_0xcb6f30['type']!==_0x6c9699['type']||_0xcb6f30['author']['id']!==_0x6c9699['author']['id']||_0xcb6f30[_0x5ea3('0x125')]!==_0x6c9699[_0x5ea3('0x125')])continue;const _0x172758=_0x5255af[_0x5ea3('0xd6')](_0x6c9699),_0x237eee=_0x4f796a[_0x5ea3('0xd6')](_0x6c9699),_0x419441=_0x4f796a[_0x5ea3('0xd6')](_0xcb6f30),_0x4ba9b9=_0x6c9699[_0x5ea3('0x123')]&&_0x6c9699[_0x5ea3('0x123')][_0x5ea3('0x20')],_0x9759a8=_0xcb6f30['commentThread']&&_0xcb6f30[_0x5ea3('0x123')]['length'];if(!_0x4ba9b9&&_0x172758(_0x419441,_0x237eee))return _0x11b929[_0x5ea3('0x68')](_0xcb6f30,_0x6c9699),_0x4f796a[_0x5ea3('0x9b')](_0x6c9699),!0x0;if(!_0x9759a8&&_0x172758(_0x237eee,_0x419441))return _0x11b929[_0x5ea3('0x68')](_0x6c9699,_0xcb6f30),_0x4f796a[_0x5ea3('0x9b')](_0xcb6f30),!0x0;}return!0x1;}}[_0x5ea3('0x68')](_0xf9bf32,_0x5c2d8a){if(_0xf9bf32[_0x5ea3('0x12a')])for(const _0x6b7761 of _0x5c2d8a['getRanges']())_0xf9bf32[_0x5ea3('0x6c')](_0x6b7761);else{const _0x68049b=_0x5c2d8a[_0x5ea3('0x16')]()[_0x5ea3('0x2a')];this[_0x5ea3('0xde')](_0xf9bf32,this['_model']['createRange'](_0xf9bf32[_0x5ea3('0x16')]()[_0x5ea3('0xb9')],_0x68049b));}_0x5c2d8a[_0x5ea3('0x13a')]();}}class Dt{constructor(_0x25e45f){this[_0x5ea3('0xe4')]=_0x25e45f,this['_model']=_0x25e45f[_0x5ea3('0xfd')],this[_0x5ea3('0x31')]=new Map(),this[_0x5ea3('0x90')]=new Map(),this[_0x5ea3('0x57')]();}['buildSuggestion'](_0x5b70ab,_0x2edc0c,_0x24e087,_0x2bf36d,_0x29a84a,_0x4812ee){return new _0x38f5db(this[_0x5ea3('0x1f')],{'type':_0x5b70ab,'subType':_0x2edc0c,'id':_0x24e087,'author':_0x2bf36d,'creator':_0x2bf36d,'attributes':_0x29a84a,'onAttributesChange':_0x4812ee,'onAccept':(..._0x3047f2)=>this[_0x5ea3('0x127')](_0x5b70ab,_0x2edc0c,_0x5ea3('0x141'))(..._0x3047f2),'onDiscard':(..._0x3c1a32)=>this[_0x5ea3('0x127')](_0x5b70ab,_0x2edc0c,'discard')(..._0x3c1a32)});}[_0x5ea3('0x43')](_0x2a150b,_0x53d5df,_0x4780e2,_0x292762){const _0x43e40b=_0x2a150b+':'+_0x53d5df+':'+_0x4780e2;this[_0x5ea3('0x31')]['set'](_0x43e40b,_0x292762);}[_0x5ea3('0x127')](_0x130432,_0x5c7a98,_0x4c26fa){const _0x2ccba0=_0x130432+':'+_0x5c7a98+':'+_0x4c26fa;return this[_0x5ea3('0x31')][_0x5ea3('0xd6')](_0x2ccba0)||this['_defaultCallbacks'][_0x5ea3('0xd6')](_0x130432+':'+_0x4c26fa);}['_registerDefaultCallbacks'](){const _0x567003=()=>{},_0x3a89c0=_0x41d436=>{_0x41d436['sort']((_0x7b7d16,_0x339469)=>_0x7b7d16['start']['isBefore'](_0x339469[_0x5ea3('0xb9')])?0x1:-0x1),this['_model'][_0x5ea3('0x136')](_0x5bb189=>{for(const _0x1f1c23 of _0x41d436){let _0x278739;_0x278739=_0x1f1c23[_0x5ea3('0x2a')]['isAtEnd']&&_0x1f1c23[_0x5ea3('0x2a')][_0x5ea3('0x8')]==_0x1f1c23[_0x5ea3('0xb9')]['nodeAfter']?_0x5bb189[_0x5ea3('0x11f')](_0x1f1c23[_0x5ea3('0xb9')][_0x5ea3('0xeb')],'on'):_0x5bb189[_0x5ea3('0x11f')](_0x1f1c23),this[_0x5ea3('0x1f')][_0x5ea3('0x17')](_0x278739,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5a7919=(_0x32e3b3,_0x3644c9)=>{this[_0x5ea3('0x1f')]['change'](_0x5e95e5=>{const {commandName:_0x52fb52,commandParams:_0x26fc9b=[]}=_0x3644c9,_0x21eac6=_0x32e3b3[_0x5ea3('0x7f')](_0x15566b=>(_t(_0x15566b)&&(_0x15566b=this[_0x5ea3('0x1f')][_0x5ea3('0xda')](_0x15566b[_0x5ea3('0x2a')])),_0x15566b))[_0x5ea3('0x1a')](_0x492839=>_0x5ea3('0x135')!==_0x492839[_0x5ea3('0xd2')]['rootName']);if(_0x21eac6[_0x5ea3('0x20')]<0x1)return;const _0x2dc7b0=Array[_0x5ea3('0xdc')](this[_0x5ea3('0x1f')]['document'][_0x5ea3('0x7d')]['getRanges']())[_0x5ea3('0x7f')](_0x4da12b=>_0x94a9b8[_0x5ea3('0x23')](_0x4da12b));_0x5e95e5[_0x5ea3('0x32')](_0x21eac6);for(const _0x2f9321 of this[_0x5ea3('0xe4')]['commands'][_0x5ea3('0x142')]())_0x2f9321['refresh']();_0x26fc9b[_0x5ea3('0x51')]({'forceDefaultExecution':!0x0}),this[_0x5ea3('0xe4')]['execute'](_0x52fb52,..._0x26fc9b);const _0xb32461=_0x2dc7b0[_0x5ea3('0x1a')](_0x2a04e1=>_0x5ea3('0x135')!=_0x2a04e1[_0x5ea3('0xd2')]['rootName']);_0xb32461['length']>0x0&&_0x5e95e5[_0x5ea3('0x32')](_0xb32461);for(const _0x10b776 of _0x2dc7b0)_0x10b776[_0x5ea3('0xb8')]();});},_0x1422f9=(_0x918567,_0x14932c)=>0x1==_0x918567[_0x5ea3('0x20')]&&0x1==_0x14932c['length']&&_0x918567[0x0][_0x5ea3('0x2a')][_0x5ea3('0x35')](_0x14932c[0x0][_0x5ea3('0xb9')]),_0x13ae5b=(_0xbbedd5,_0x22ec45,_0x580cee,_0x50b2ef)=>xt(_0xbbedd5,_0x22ec45,_0x580cee,_0x50b2ef,this[_0x5ea3('0x1f')])?[_0xbbedd5,_0x22ec45]:xt(_0x22ec45,_0xbbedd5,_0x50b2ef,_0x580cee,this['_model'])?[_0x22ec45,_0xbbedd5]:null;this[_0x5ea3('0x90')]['set']('insertion:accept',_0x567003),this[_0x5ea3('0x90')]['set'](_0x5ea3('0x26'),_0x3a89c0),this[_0x5ea3('0x90')][_0x5ea3('0x36')](_0x5ea3('0xe7'),_0x1422f9),this[_0x5ea3('0x90')][_0x5ea3('0x36')]('insertion:chain',_0x13ae5b),this['_defaultCallbacks'][_0x5ea3('0x36')](_0x5ea3('0x3d'),_0x3a89c0),this[_0x5ea3('0x90')][_0x5ea3('0x36')](_0x5ea3('0x94'),_0x567003),this[_0x5ea3('0x90')][_0x5ea3('0x36')](_0x5ea3('0x7'),_0x1422f9),this[_0x5ea3('0x90')]['set'](_0x5ea3('0x140'),_0x13ae5b),this[_0x5ea3('0x90')]['set'](_0x5ea3('0xd0'),_0x5a7919),this[_0x5ea3('0x90')][_0x5ea3('0x36')]('formatInline:discard',_0x567003),this['_defaultCallbacks'][_0x5ea3('0x36')](_0x5ea3('0xbf'),_0x1422f9),this[_0x5ea3('0x90')][_0x5ea3('0x36')](_0x5ea3('0x82'),_0x567003),this['_defaultCallbacks'][_0x5ea3('0x36')]('formatBlock:accept',_0x5a7919),this[_0x5ea3('0x90')][_0x5ea3('0x36')](_0x5ea3('0x134'),_0x567003),this[_0x5ea3('0x90')]['set'](_0x5ea3('0x97'),_0x1422f9),this[_0x5ea3('0x90')]['set'](_0x5ea3('0xf5'),_0x567003);}}function Bt(_0x4dd2b5,_0x2b7d21,_0x2220ca){for(const _0x3f632e of _0x2b7d21['parent'][_0x5ea3('0x1d')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3f632e[_0x5ea3('0xd2')]==_0x3f632e)return!0x1;if(!_0x2220ca[_0x5ea3('0x5a')](_0x3f632e))return!0x1;if(_0x4dd2b5[_0x5ea3('0xc2')](_0x3f632e)||_0x4dd2b5[_0x5ea3('0x133')](_0x3f632e))return!0x0;}return!0x1;}function _t(_0x443614){return _0x443614['end'][_0x5ea3('0x8')]==_0x443614[_0x5ea3('0xb9')][_0x5ea3('0xeb')]&&_0x443614['end'][_0x5ea3('0x144')];}function Mt(_0x52f8e0,_0x4157a8,_0x2bcb2c,_0x374455){const _0x306517=_0x2a3ff0=>!_0x2a3ff0['item']['is'](_0x5ea3('0x81'))&&!_0x374455[_0x5ea3('0xc2')](_0x2a3ff0['item']),_0x41570f=_0x52f8e0[_0x5ea3('0xb9')][_0x5ea3('0xfa')](_0x306517),_0x1268f3=_0x52f8e0['end'][_0x5ea3('0xfa')](_0x306517,{'direction':_0x5ea3('0x12')});return(!_0x52f8e0[_0x5ea3('0xb9')][_0x5ea3('0x35')](_0x41570f)||!_0x52f8e0[_0x5ea3('0x2a')][_0x5ea3('0x35')](_0x1268f3))&&(_0x41570f[_0x5ea3('0x4')](_0x1268f3)?_0x2bcb2c[_0x5ea3('0xe')](_0x4157a8,{'range':_0x2bcb2c[_0x5ea3('0xda')](_0x41570f,_0x1268f3)}):_0x2bcb2c[_0x5ea3('0x101')](_0x4157a8),!0x0);}function $t(_0xeb48ba){return _0xc64a53(_0xeb48ba);}function Nt(_0x124a6b){const _0x880c0f=_0x124a6b['start']['nodeAfter'];return _0x880c0f&&_0x880c0f['is']('element');}function Rt(_0xa99f65,_0x48d4f7){const _0x2475f5=_0x48d4f7['schema'][_0x5ea3('0xc2')](_0xa99f65)||_0x48d4f7['schema'][_0x5ea3('0x130')](_0xa99f65);return _0x48d4f7[_0x5ea3('0xda')](_0x48d4f7[_0x5ea3('0x5e')](_0xa99f65,_0x5ea3('0x3c')),_0x2475f5?_0x48d4f7[_0x5ea3('0x5c')](_0xa99f65):_0x48d4f7[_0x5ea3('0x5e')](_0xa99f65,_0x5ea3('0x2a')));}function xt(_0x3e55f9,_0x39ac24,_0x1bb4a3,_0x349248,_0x405f32){if(_0x1bb4a3[_0x5ea3('0x2a')][_0x5ea3('0x35')](_0x349248[_0x5ea3('0xb9')]))return!0x0;if(_0x3e55f9[_0x5ea3('0xf7')]!=_0x39ac24[_0x5ea3('0xf7')])return!0x1;if(!_0x1bb4a3['end'][_0x5ea3('0x9')](_0x349248[_0x5ea3('0xb9')]))return!0x1;const _0x486ad2=_0x405f32['createRange'](_0x1bb4a3[_0x5ea3('0x2a')],_0x349248[_0x5ea3('0xb9')])[_0x5ea3('0xe8')]();for(const _0x1cd857 of _0x486ad2)if([_0x5ea3('0xe0'),_0x5ea3('0x12b')][_0x5ea3('0x110')](_0x1cd857[_0x5ea3('0xf7')])&&_0x405f32[_0x5ea3('0x6f')][_0x5ea3('0x133')](_0x1cd857[_0x5ea3('0x9d')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41ae=['value','editor','filter','_destroyController','reduce','_handleControllerBuffer','bind','head','acceptAllSuggestions','Annotations','_viewToController','trackChanges','listenTo','componentFactory','buttonView','focus','discardSelectedSuggestions','TrackChangesUI','suggestionUnloaded','CommentsRepository','Discard\x20all\x20suggestions','suggestionChanged','descriptionParts','createAnnotationView','delete','EditorAnnotations','activeAnnotations','_updateController','set','type','createCommentThreadController','comments.maxCommentsWhenCollapsed','view','destroy','map','clear','discardButton','execute','some','isEnabled','getSuggestion','mainView','isMultiRange','actionView','values','getMarkers','_descriptionFactory','commandName','_initializeController','_refreshActiveMarkers','SuggestionThreadView','commentThread','keys','_suggestionToController','registerAnnotation','getAllAdjacentSuggestions','change:activeAnnotations','push','TrackChangesEditing','button','Track\x20changes','lowest','suggestionLoaded','unbind','source','editing','plugins','getDescriptions','separator','CommentView','define','get','isDirty','pluginName','isInContent','discardAllSuggestions','addSourceCollector','switchbutton','_annotationViews','_handleSuggestionControllerDelayed','comments.editorConfig','length','getRanges','toMany','has','add','config','comments.maxThreadTotalWeight','suggestion-','isOn','acceptButton','CommentsUI','trackChanges.disableComments','commands','Accept\x20all\x20suggestions','innerView','arrowView','previous','change:previous','stopListening','activeMarkers','Discard\x20all\x20selected\x20suggestions','remove','locale','Accept\x20all\x20selected\x20suggestions','model'];(function(_0x167264,_0x41ae7a){const _0x165de8=function(_0x3fc6f0){while(--_0x3fc6f0){_0x167264['push'](_0x167264['shift']());}};_0x165de8(++_0x41ae7a);}(_0x41ae,0xc2));const _0x165d=function(_0x167264,_0x41ae7a){_0x167264=_0x167264-0x0;let _0x165de8=_0x41ae[_0x167264];return _0x165de8;};import{Plugin as _0x59ee3a}from'ckeditor5/src/core';import{Collection as _0x40137f}from'ckeditor5/src/utils';import{Model as _0x45336b,SplitButtonView as _0x1f7ed2,createDropdown as _0x58339c,addListToDropdown as _0x483ae3}from'ckeditor5/src/ui';import{Users as _0x4bc01b,getDateTimeFormatter as _0x43624b,getAllMarkersDomElementsSorted as _0x386b9b}from'ckeditor5-collaboration/src/collaboration-core';import _0x33868e from'./trackchangesediting';import _0x5bd343 from'./ui/suggestioncontroller';import _0x589f92 from'./ui/view/suggestionthreadview';import{getTranslation as _0x4035de}from'./utils/common-translations';import _0x19688f from'../theme/icons/track-changes.svg';export default class d extends _0x59ee3a{static get['requires'](){return[_0x33868e,_0x4bc01b,'CommentsRepository',_0x165d('0x1b'),_0x165d('0x2b')];}static get[_0x165d('0x5b')](){return _0x165d('0x23');}constructor(_0x11b04e){super(_0x11b04e),this[_0x165d('0x47')]=new Map(),this[_0x165d('0x1c')]=new Map(),this[_0x165d('0x60')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x1df469=this[_0x165d('0x13')][_0x165d('0x68')];_0x1df469[_0x165d('0x58')]('trackChanges.SuggestionThreadView',_0x589f92),_0x1df469[_0x165d('0x58')](_0x165d('0x4'),!0x1),this['_disableComments']=_0x1df469[_0x165d('0x59')](_0x165d('0x4'));}[_0x165d('0x61')](_0xea1ced,_0x214e5e){0x0===this[_0x165d('0x17')]['size']&&setTimeout(()=>{for(const [_0x573bb3,_0x187d48]of this[_0x165d('0x17')]){const _0x486e8e=this[_0x165d('0x47')]['has'](_0x573bb3);_0x486e8e||_0x187d48?_0x486e8e&&_0x187d48&&this[_0x165d('0x15')](_0x573bb3):this[_0x165d('0x42')](_0x573bb3);}this[_0x165d('0x13')][_0x165d('0x54')][_0x165d('0x59')](_0x165d('0x2b'))['refreshSelectedViews'](),this[_0x165d('0x43')](),this[_0x165d('0x17')][_0x165d('0x35')]();},0xa),this['_handleControllerBuffer'][_0x165d('0x2e')](_0xea1ced,_0x214e5e);}['init'](){const _0xc12883=this[_0x165d('0x13')],_0x5d29b4=_0xc12883[_0x165d('0x54')][_0x165d('0x59')](_0x165d('0x4c')),_0x409510=_0xc12883[_0x165d('0x54')]['get'](_0x165d('0x1b')),_0x3119ad=_0xc12883['plugins'][_0x165d('0x59')](_0x165d('0x2b')),_0xb932cc=_0xc12883[_0x165d('0x54')][_0x165d('0x59')]('CommentsRepository');_0xc12883['ui'][_0x165d('0x1f')][_0x165d('0x67')](_0x165d('0x1d'),_0x2057eb=>this['_createUIButton'](_0x2057eb)),_0x3119ad[_0x165d('0x5e')](()=>{const _0x3af6d7=[];for(const [_0x398782,_0x298f92]of Array['from'](this['_suggestionToController'])){const _0x509d1c=_0x398782[_0x165d('0x49')](),_0x40c8d7=[];for(const _0x36f913 of _0x509d1c){if(!_0x36f913['isInContent'])continue;if(_0x36f913[_0x165d('0x3c')]){_0x40c8d7[_0x165d('0x4b')](..._0x36f913[_0x165d('0x64')]());continue;}const _0x3b9115=_0x36f913['getFirstRange']();if(_0x40c8d7[_0x165d('0x63')]>0x0){const _0x5338ea=_0x40c8d7[0x0]['getJoined'](_0x3b9115);if(_0x5338ea){_0x40c8d7[0x0]=_0x5338ea;continue;}}_0x40c8d7['push'](_0x3b9115);}_0x3af6d7[_0x165d('0x4b')]([_0x298f92[_0x165d('0x32')],_0x40c8d7]);}return _0x3af6d7;}),this[_0x165d('0x1e')](_0x5d29b4,_0x165d('0x50'),(_0x5f1150,_0x25d9f2)=>{this['listenTo'](_0x25d9f2,_0x165d('0xa'),(_0x14500e,_0x3a769b,_0x42694e,_0x428fd0)=>{_0x25d9f2['isInContent']&&(null==_0x42694e?(this[_0x165d('0x2d')](_0x428fd0['head']),this[_0x165d('0x61')](_0x25d9f2,!0x1)):(this[_0x165d('0x2d')](_0x42694e[_0x165d('0x19')]),this[_0x165d('0x61')](_0x25d9f2,!0x0)));}),null===_0x25d9f2[_0x165d('0x9')]?this['_handleSuggestionControllerDelayed'](_0x25d9f2,!0x1):this[_0x165d('0x2d')](_0x25d9f2[_0x165d('0x19')]);}),this[_0x165d('0x1e')](_0x5d29b4,_0x165d('0x24'),(_0x585830,_0x52ee91,_0x1da41e)=>{this[_0x165d('0xb')](_0x52ee91,_0x165d('0xa')),this[_0x165d('0x17')][_0x165d('0x2a')](_0x52ee91);const _0x11e22c=_0x1da41e?_0x1da41e['head']:_0x52ee91,_0x1d5bea=this[_0x165d('0x47')][_0x165d('0x59')](_0x11e22c);null!==_0x1da41e&&this['_updateController'](_0x11e22c),null===_0x1da41e&&_0x1d5bea&&this[_0x165d('0x15')](_0x52ee91);}),this[_0x165d('0x1e')](_0x5d29b4,_0x165d('0x27'),(_0x5158fa,_0x28fca1)=>{this['_updateController'](_0x28fca1);}),this[_0x165d('0x1e')](_0x409510,_0x165d('0x4a'),()=>{this['_refreshActiveMarkers']();}),this[_0x165d('0x1e')](_0xb932cc,'addComment',(_0x215ab6,{threadId:_0x49b0ad,isFromAdapter:_0xf27a47})=>{if(_0xf27a47||!_0x5d29b4['hasSuggestion'](_0x49b0ad))return;const _0x1c60b5=_0x5d29b4[_0x165d('0x3a')](_0x49b0ad);this[_0x165d('0x47')][_0x165d('0x59')](_0x1c60b5)[_0x165d('0x32')][_0x165d('0x21')]();},{'priority':_0x165d('0x4f')});}[_0x165d('0x43')](){const _0x2a88d7=this[_0x165d('0x13')][_0x165d('0x54')][_0x165d('0x59')](_0x165d('0x1b')),_0x137a81=this['editor']['plugins'][_0x165d('0x59')](_0x165d('0x4c')),_0x4bafb0=Array['from'](_0x2a88d7[_0x165d('0x2c')],_0x40c2f2=>_0x40c2f2[_0x165d('0x7')])['filter'](_0x23b458=>this[_0x165d('0x1c')][_0x165d('0x66')](_0x23b458)),_0x53265f=[];for(const _0x52c572 of _0x4bafb0){const _0x538cb2=this[_0x165d('0x1c')]['get'](_0x52c572)[_0x165d('0x11')][_0x165d('0x49')]();_0x53265f[_0x165d('0x4b')](..._0x538cb2[_0x165d('0x16')]((_0x3ed5cc,_0x55beb7)=>[..._0x3ed5cc,..._0x55beb7['getMarkerNames']()],[]));}_0x137a81[_0x165d('0xc')]=_0x53265f;}['_createUIButton'](_0xbe75de){const _0x22fbb5=_0x58339c(_0xbe75de,_0x1f7ed2),_0x9bb3a9=this[_0x165d('0x13')][_0x165d('0x5')][_0x165d('0x59')]('trackChanges'),_0x4586bb=_0x4035de(_0xbe75de,_0x165d('0x4e'));_0x22fbb5[_0x165d('0x20')][_0x165d('0x2e')]({'tooltip':_0x4586bb,'label':_0x4586bb,'icon':_0x19688f}),_0x22fbb5[_0x165d('0x20')][_0x165d('0x18')](_0x165d('0x1'))['to'](_0x9bb3a9,_0x165d('0x12')),_0x22fbb5[_0x165d('0x20')]['on'](_0x165d('0x37'),()=>{_0x9bb3a9[_0x165d('0x37')](),this[_0x165d('0x13')][_0x165d('0x53')]['view'][_0x165d('0x21')]();});const _0x503769=new _0x40137f(),_0x37fea8=[{'type':_0x165d('0x5f'),'model':{'withText':!0x0,'label':_0x4586bb,'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x4035de(_0xbe75de,_0x165d('0x6')),'commandName':_0x165d('0x1a')}},{'type':_0x165d('0x4d'),'model':{'withText':!0x0,'label':_0x4035de(_0xbe75de,_0x165d('0x10')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x165d('0x4d'),'model':{'withText':!0x0,'label':_0x4035de(_0xbe75de,_0x165d('0x26')),'commandName':_0x165d('0x5d')}},{'type':_0x165d('0x4d'),'model':{'withText':!0x0,'label':_0x4035de(_0xbe75de,_0x165d('0xd')),'commandName':_0x165d('0x22')}}];for(const _0x396cca of _0x37fea8){let _0x564211={'type':_0x165d('0x56')};if(_0x396cca[_0x165d('0x11')]){const _0xb8e751=new _0x45336b(_0x396cca['model']),_0x3ea106=this[_0x165d('0x13')][_0x165d('0x5')][_0x165d('0x59')](_0xb8e751[_0x165d('0x41')]);_0xb8e751['bind'](_0x165d('0x1'),_0x165d('0x39'))['to'](_0x3ea106,_0x165d('0x12'),_0x165d('0x39')),_0x564211={'type':_0x396cca[_0x165d('0x2f')],'model':_0xb8e751};}_0x503769['add'](_0x564211);}_0x483ae3(_0x22fbb5,_0x503769);const _0x430d9e=_0x37fea8[_0x165d('0x14')](_0x26e233=>null!=_0x26e233['model'])[_0x165d('0x34')](_0x3fd8b6=>this[_0x165d('0x13')]['commands']['get'](_0x3fd8b6['model'][_0x165d('0x41')])),_0x503c6b=_0x22fbb5[_0x165d('0x20')];return _0x503c6b[_0x165d('0x3d')][_0x165d('0x51')]('isEnabled'),_0x503c6b[_0x165d('0x8')][_0x165d('0x51')]('isEnabled'),_0x503c6b[_0x165d('0x3d')]['bind'](_0x165d('0x39'))['to'](_0x9bb3a9,_0x165d('0x39')),_0x503c6b[_0x165d('0x8')][_0x165d('0x18')](_0x165d('0x39'))[_0x165d('0x65')](_0x430d9e,_0x165d('0x39'),(..._0x5ba628)=>_0x5ba628[_0x165d('0x38')](_0x2cec88=>_0x2cec88)),_0x22fbb5['on'](_0x165d('0x37'),_0x27ff5a=>{this[_0x165d('0x13')][_0x165d('0x37')](_0x27ff5a[_0x165d('0x52')][_0x165d('0x41')]),this[_0x165d('0x13')][_0x165d('0x53')][_0x165d('0x32')]['focus']();}),_0x22fbb5;}[_0x165d('0x42')](_0x2744fe){const _0x48d3ae=this[_0x165d('0x13')],_0xe112a6=_0x48d3ae[_0x165d('0x68')],_0x3062ab=_0x48d3ae[_0x165d('0x54')]['get']('Annotations'),_0x430d12=_0x48d3ae[_0x165d('0x54')]['get'](_0x165d('0x25')),_0x1a3f7d=_0x48d3ae[_0x165d('0x54')][_0x165d('0x59')]('EditorAnnotations'),_0x1b7b7f=_0x48d3ae[_0x165d('0x54')]['get'](_0x4bc01b)['me'],_0x527b60=_0xe112a6[_0x165d('0x59')](_0x165d('0x1d'))[_0x165d('0x44')],{CommentsListView:_0x157adb,CommentThreadInputView:_0x50053f}=_0x48d3ae['plugins'][_0x165d('0x59')](_0x165d('0x3'));let _0x39e0f5,_0x39225d;this[_0x165d('0x60')][_0x165d('0x66')](_0x2744fe['id'])?(_0x39225d=this[_0x165d('0x60')][_0x165d('0x59')](_0x2744fe['id']),_0x39e0f5=_0x39225d[_0x165d('0x3b')]):(_0x39e0f5=new _0x527b60(_0x48d3ae['locale'],_0x2744fe,_0x1b7b7f,{'disableComments':this['_disableComments'],'editorConfig':_0xe112a6['get'](_0x165d('0x62')),'maxCommentsWhenCollapsed':_0xe112a6[_0x165d('0x59')](_0x165d('0x31')),'maxThreadTotalWeight':_0xe112a6[_0x165d('0x59')](_0x165d('0x69')),'maxCommentCharsWhenCollapsed':_0xe112a6[_0x165d('0x59')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x43624b(_0xe112a6[_0x165d('0x59')](_0x165d('0xf'))),'CommentView':_0xe112a6[_0x165d('0x59')]('comments')[_0x165d('0x57')],'CommentsListView':_0x157adb,'CommentThreadInputView':_0x50053f}),_0x39e0f5[_0x165d('0x2')]['on'](_0x165d('0x37'),()=>{_0x48d3ae['editing'][_0x165d('0x32')][_0x165d('0x21')]();}),_0x39e0f5[_0x165d('0x36')]['on']('execute',()=>{_0x48d3ae[_0x165d('0x53')][_0x165d('0x32')]['focus']();}),_0x39225d=_0x3062ab[_0x165d('0x29')](this[_0x165d('0x13')][_0x165d('0xf')],_0x39e0f5),_0x39225d[_0x165d('0x18')](_0x165d('0x5a'))['to'](_0x39e0f5,_0x165d('0x5a')),_0x39225d[_0x165d('0x18')](_0x165d('0x63'))['to'](_0x39e0f5),_0x39225d[_0x165d('0x18')](_0x165d('0x2f'))['to'](_0x39e0f5,_0x165d('0x2f'),_0x280c26=>_0x165d('0x0')+_0x280c26),this[_0x165d('0x60')]['set'](_0x2744fe['id'],_0x39225d));const _0x48f641=_0x430d12[_0x165d('0x30')](_0x2744fe[_0x165d('0x45')],_0x39e0f5),_0x18eae0=new _0x5bd343(_0x48d3ae,_0x2744fe,_0x39e0f5,_0x48f641),_0x56c4e1=_0x2744fe[_0x165d('0x49')]()['filter'](_0x1fb89d=>_0x1fb89d[_0x165d('0x5c')]);_0x39e0f5[_0x165d('0x28')]=_0x48d3ae[_0x165d('0x54')]['get'](_0x165d('0x4c'))[_0x165d('0x40')][_0x165d('0x55')](_0x56c4e1),this[_0x165d('0x47')][_0x165d('0x2e')](_0x2744fe,_0x18eae0),this[_0x165d('0x1c')][_0x165d('0x2e')](_0x39e0f5,_0x18eae0);const _0x167c66=_0x3062ab['createAnnotation']({'view':_0x39225d,'target':()=>{const _0x1d2d4a=[],_0x2b93e1=_0x2744fe[_0x165d('0x49')]()[_0x165d('0x14')](_0xa0868d=>_0xa0868d['isInContent']);for(const _0x25ccda of _0x2b93e1)_0x1d2d4a['push'](..._0x25ccda[_0x165d('0x3f')]());return _0x386b9b(_0x48d3ae['editing'],_0x1d2d4a);},'type':()=>_0x165d('0x0')+_0x18eae0[_0x165d('0x32')][_0x165d('0x2f')]});_0x3062ab[_0x165d('0x67')](_0x167c66),_0x1a3f7d[_0x165d('0x48')](_0x167c66);}[_0x165d('0x15')](_0x2b7e0d){const _0x32bf94=this[_0x165d('0x13')]['plugins'][_0x165d('0x59')](_0x165d('0x1b')),_0x2440eb=this[_0x165d('0x47')][_0x165d('0x59')](_0x2b7e0d),_0x31962f=_0x2440eb[_0x165d('0x32')],_0x2f921c=_0x32bf94['getByInnerView'](_0x31962f);_0x2f921c&&_0x32bf94[_0x165d('0xe')](_0x2f921c),this['_suggestionToController'][_0x165d('0x2a')](_0x2b7e0d),this[_0x165d('0x1c')][_0x165d('0x2a')](_0x31962f),_0x2440eb[_0x165d('0x33')]();}[_0x165d('0x2d')](_0x28ea06){if(!_0x28ea06['isInContent']||!this[_0x165d('0x47')][_0x165d('0x66')](_0x28ea06))return;const _0x353185=this[_0x165d('0x13')]['plugins']['get']('TrackChangesEditing'),_0x9a8747=this['_suggestionToController'][_0x165d('0x59')](_0x28ea06),_0x4bdb7f=_0x28ea06['getAllAdjacentSuggestions']();_0x9a8747[_0x165d('0x32')][_0x165d('0x28')]=_0x353185[_0x165d('0x40')][_0x165d('0x55')](_0x4bdb7f);}[_0x165d('0x33')](){for(const _0x1e19c1 of this[_0x165d('0x47')][_0x165d('0x46')]())this['_destroyController'](_0x1e19c1);for(const _0x158ee4 of this[_0x165d('0x60')][_0x165d('0x3e')]())_0x158ee4[_0x165d('0x3b')]['destroy']();super[_0x165d('0x33')]();}}
23
+ const _0x1fae=['Accept\x20all\x20suggestions','addSourceCollector','focus','config','createAnnotation','CommentsRepository','keys','pluginName','button','stopListening','_destroyController','type','switchbutton','delete','_suggestionToController','filter','comments.editorConfig','unbind','registerAnnotation','isEnabled','remove','acceptButton','execute','acceptAllSuggestions','hasSuggestion','getMarkers','suggestionLoaded','Annotations','has','change:activeAnnotations','SuggestionThreadView','activeAnnotations','add','map','Track\x20changes','_initializeController','getFirstRange','head','trackChanges.SuggestionThreadView','_disableComments','set','Discard\x20all\x20selected\x20suggestions','getJoined','value','buttonView','comments.maxCommentsWhenCollapsed','isInContent','comments.maxCommentCharsWhenCollapsed','_annotationViews','size','requires','isMultiRange','getAllAdjacentSuggestions','commandName','editing','change:previous','editor','listenTo','arrowView','CommentView','bind','actionView','trackChanges','_handleSuggestionControllerDelayed','plugins','clear','getRanges','createCommentThreadController','previous','source','get','createAnnotationView','mainView','Accept\x20all\x20selected\x20suggestions','_createUIButton','view','push','values','discardAllSuggestions','CommentsUI','_descriptionFactory','Discard\x20all\x20suggestions','descriptionParts','length','model','suggestion-','getMarkerNames','isOn','discardSelectedSuggestions','suggestionChanged','componentFactory','getDescriptions','activeMarkers','locale','comments.maxThreadTotalWeight','destroy','TrackChangesUI','getSuggestion','commands','from','innerView','toMany','_handleControllerBuffer','_viewToController','isDirty','lowest','commentThread','refreshSelectedViews','TrackChangesEditing','suggestionUnloaded','define','getByInnerView','separator','_updateController','_refreshActiveMarkers','trackChanges.disableComments','EditorAnnotations'];(function(_0x527d77,_0x1faeed){const _0x335847=function(_0x2173f9){while(--_0x2173f9){_0x527d77['push'](_0x527d77['shift']());}};_0x335847(++_0x1faeed);}(_0x1fae,0x1be));const _0x3358=function(_0x527d77,_0x1faeed){_0x527d77=_0x527d77-0x0;let _0x335847=_0x1fae[_0x527d77];return _0x335847;};import{Plugin as _0x192d35}from'ckeditor5/src/core';import{Collection as _0x45d7e4}from'ckeditor5/src/utils';import{Model as _0x23fe49,SplitButtonView as _0x323a7e,createDropdown as _0x3cfe03,addListToDropdown as _0x224ed2}from'ckeditor5/src/ui';import{Users as _0x124d6f,getDateTimeFormatter as _0x33cf73,getAllMarkersDomElementsSorted as _0x3458d0}from'ckeditor5-collaboration/src/collaboration-core';import _0x2822a9 from'./trackchangesediting';import _0x12074c from'./ui/suggestioncontroller';import _0x5f6f38 from'./ui/view/suggestionthreadview';import{getTranslation as _0x2784e2}from'./utils/common-translations';import _0x4aab4c from'../theme/icons/track-changes.svg';export default class d extends _0x192d35{static get[_0x3358('0x48')](){return[_0x2822a9,_0x124d6f,'CommentsRepository',_0x3358('0x31'),'EditorAnnotations'];}static get[_0x3358('0x1d')](){return _0x3358('0x1');}constructor(_0x518c5f){super(_0x518c5f),this['_suggestionToController']=new Map(),this[_0x3358('0x8')]=new Map(),this[_0x3358('0x46')]=new Map(),this[_0x3358('0x7')]=new Map();const _0x573622=this[_0x3358('0x4e')][_0x3358('0x19')];_0x573622[_0x3358('0xf')](_0x3358('0x3c'),_0x5f6f38),_0x573622[_0x3358('0xf')](_0x3358('0x14'),!0x1),this[_0x3358('0x3d')]=_0x573622[_0x3358('0x5c')](_0x3358('0x14'));}[_0x3358('0x55')](_0x5d4809,_0x5ab4fb){0x0===this['_handleControllerBuffer'][_0x3358('0x47')]&&setTimeout(()=>{for(const [_0x32cda0,_0x34bdee]of this[_0x3358('0x7')]){const _0x49392c=this[_0x3358('0x24')]['has'](_0x32cda0);_0x49392c||_0x34bdee?_0x49392c&&_0x34bdee&&this['_destroyController'](_0x32cda0):this[_0x3358('0x39')](_0x32cda0);}this[_0x3358('0x4e')][_0x3358('0x56')]['get']('EditorAnnotations')[_0x3358('0xc')](),this[_0x3358('0x13')](),this[_0x3358('0x7')][_0x3358('0x57')]();},0xa),this[_0x3358('0x7')]['set'](_0x5d4809,_0x5ab4fb);}['init'](){const _0x5d61a1=this['editor'],_0x5eee80=_0x5d61a1['plugins'][_0x3358('0x5c')](_0x3358('0xd')),_0x2859cf=_0x5d61a1[_0x3358('0x56')][_0x3358('0x5c')](_0x3358('0x31')),_0x2188f7=_0x5d61a1[_0x3358('0x56')]['get'](_0x3358('0x15')),_0x1cb1cb=_0x5d61a1['plugins'][_0x3358('0x5c')](_0x3358('0x1b'));_0x5d61a1['ui'][_0x3358('0x70')]['add']('trackChanges',_0x49e095=>this[_0x3358('0x60')](_0x49e095)),_0x2188f7[_0x3358('0x17')](()=>{const _0x3ed009=[];for(const [_0x3023a4,_0x4fa430]of Array[_0x3358('0x4')](this[_0x3358('0x24')])){const _0x8e35fd=_0x3023a4[_0x3358('0x4a')](),_0x484c22=[];for(const _0x2adf6c of _0x8e35fd){if(!_0x2adf6c[_0x3358('0x44')])continue;if(_0x2adf6c[_0x3358('0x49')]){_0x484c22[_0x3358('0x62')](..._0x2adf6c[_0x3358('0x58')]());continue;}const _0x30af2e=_0x2adf6c[_0x3358('0x3a')]();if(_0x484c22[_0x3358('0x69')]>0x0){const _0x52d2d3=_0x484c22[0x0][_0x3358('0x40')](_0x30af2e);if(_0x52d2d3){_0x484c22[0x0]=_0x52d2d3;continue;}}_0x484c22[_0x3358('0x62')](_0x30af2e);}_0x3ed009[_0x3358('0x62')]([_0x4fa430['view'],_0x484c22]);}return _0x3ed009;}),this[_0x3358('0x4f')](_0x5eee80,_0x3358('0x30'),(_0x396fd3,_0x5334a3)=>{this['listenTo'](_0x5334a3,_0x3358('0x4d'),(_0x140c09,_0x2d2444,_0x5ce4d5,_0x5c612b)=>{_0x5334a3[_0x3358('0x44')]&&(null==_0x5ce4d5?(this[_0x3358('0x12')](_0x5c612b[_0x3358('0x3b')]),this[_0x3358('0x55')](_0x5334a3,!0x1)):(this['_updateController'](_0x5ce4d5[_0x3358('0x3b')]),this[_0x3358('0x55')](_0x5334a3,!0x0)));}),null===_0x5334a3[_0x3358('0x5a')]?this['_handleSuggestionControllerDelayed'](_0x5334a3,!0x1):this['_updateController'](_0x5334a3[_0x3358('0x3b')]);}),this[_0x3358('0x4f')](_0x5eee80,_0x3358('0xe'),(_0xa0a8f8,_0x3572dd,_0x38fbac)=>{this[_0x3358('0x1f')](_0x3572dd,_0x3358('0x4d')),this[_0x3358('0x7')][_0x3358('0x23')](_0x3572dd);const _0x32091d=_0x38fbac?_0x38fbac[_0x3358('0x3b')]:_0x3572dd,_0x29ddb5=this[_0x3358('0x24')][_0x3358('0x5c')](_0x32091d);null!==_0x38fbac&&this['_updateController'](_0x32091d),null===_0x38fbac&&_0x29ddb5&&this[_0x3358('0x20')](_0x3572dd);}),this[_0x3358('0x4f')](_0x5eee80,_0x3358('0x6f'),(_0x111241,_0x4da24a)=>{this[_0x3358('0x12')](_0x4da24a);}),this[_0x3358('0x4f')](_0x2859cf,_0x3358('0x33'),()=>{this['_refreshActiveMarkers']();}),this[_0x3358('0x4f')](_0x1cb1cb,'addComment',(_0x5b5205,{threadId:_0x2f7012,isFromAdapter:_0x25609a})=>{if(_0x25609a||!_0x5eee80[_0x3358('0x2e')](_0x2f7012))return;const _0x370cbe=_0x5eee80[_0x3358('0x2')](_0x2f7012);this['_suggestionToController'][_0x3358('0x5c')](_0x370cbe)[_0x3358('0x61')][_0x3358('0x18')]();},{'priority':_0x3358('0xa')});}[_0x3358('0x13')](){const _0x1b7ae0=this[_0x3358('0x4e')]['plugins'][_0x3358('0x5c')](_0x3358('0x31')),_0x4b221b=this['editor'][_0x3358('0x56')][_0x3358('0x5c')]('TrackChangesEditing'),_0x333763=Array[_0x3358('0x4')](_0x1b7ae0[_0x3358('0x35')],_0x31088f=>_0x31088f[_0x3358('0x5')])[_0x3358('0x25')](_0x5b1a0f=>this[_0x3358('0x8')]['has'](_0x5b1a0f)),_0x229b66=[];for(const _0x7d14b4 of _0x333763){const _0x1632b1=this[_0x3358('0x8')][_0x3358('0x5c')](_0x7d14b4)[_0x3358('0x6a')][_0x3358('0x4a')]();_0x229b66[_0x3358('0x62')](..._0x1632b1['reduce']((_0x42195a,_0x16c592)=>[..._0x42195a,..._0x16c592[_0x3358('0x6c')]()],[]));}_0x4b221b[_0x3358('0x72')]=_0x229b66;}[_0x3358('0x60')](_0x3b8f5b){const _0xac3909=_0x3cfe03(_0x3b8f5b,_0x323a7e),_0x4051b2=this['editor'][_0x3358('0x3')][_0x3358('0x5c')]('trackChanges'),_0x3283bf=_0x2784e2(_0x3b8f5b,_0x3358('0x38'));_0xac3909['buttonView'][_0x3358('0x3e')]({'tooltip':_0x3283bf,'label':_0x3283bf,'icon':_0x4aab4c}),_0xac3909[_0x3358('0x42')][_0x3358('0x52')](_0x3358('0x6d'))['to'](_0x4051b2,_0x3358('0x41')),_0xac3909['buttonView']['on'](_0x3358('0x2c'),()=>{_0x4051b2[_0x3358('0x2c')](),this[_0x3358('0x4e')][_0x3358('0x4c')][_0x3358('0x61')]['focus']();});const _0x3fbbf7=new _0x45d7e4(),_0x107372=[{'type':_0x3358('0x22'),'model':{'withText':!0x0,'label':_0x3283bf,'commandName':'trackChanges'}},{'type':_0x3358('0x11')},{'type':_0x3358('0x1e'),'model':{'withText':!0x0,'label':_0x2784e2(_0x3b8f5b,_0x3358('0x16')),'commandName':_0x3358('0x2d')}},{'type':_0x3358('0x1e'),'model':{'withText':!0x0,'label':_0x2784e2(_0x3b8f5b,_0x3358('0x5f')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x3358('0x1e'),'model':{'withText':!0x0,'label':_0x2784e2(_0x3b8f5b,_0x3358('0x67')),'commandName':_0x3358('0x64')}},{'type':_0x3358('0x1e'),'model':{'withText':!0x0,'label':_0x2784e2(_0x3b8f5b,_0x3358('0x3f')),'commandName':_0x3358('0x6e')}}];for(const _0x133d33 of _0x107372){let _0x577c1b={'type':'separator'};if(_0x133d33[_0x3358('0x6a')]){const _0x4f5a40=new _0x23fe49(_0x133d33[_0x3358('0x6a')]),_0x2eeb52=this['editor'][_0x3358('0x3')]['get'](_0x4f5a40[_0x3358('0x4b')]);_0x4f5a40[_0x3358('0x52')](_0x3358('0x6d'),'isEnabled')['to'](_0x2eeb52,_0x3358('0x41'),'isEnabled'),_0x577c1b={'type':_0x133d33[_0x3358('0x21')],'model':_0x4f5a40};}_0x3fbbf7[_0x3358('0x36')](_0x577c1b);}_0x224ed2(_0xac3909,_0x3fbbf7);const _0x54ddf0=_0x107372[_0x3358('0x25')](_0x755208=>null!=_0x755208[_0x3358('0x6a')])[_0x3358('0x37')](_0x44cacd=>this[_0x3358('0x4e')][_0x3358('0x3')]['get'](_0x44cacd[_0x3358('0x6a')][_0x3358('0x4b')])),_0x4f473a=_0xac3909[_0x3358('0x42')];return _0x4f473a[_0x3358('0x53')][_0x3358('0x27')](_0x3358('0x29')),_0x4f473a[_0x3358('0x50')][_0x3358('0x27')](_0x3358('0x29')),_0x4f473a['actionView'][_0x3358('0x52')](_0x3358('0x29'))['to'](_0x4051b2,'isEnabled'),_0x4f473a[_0x3358('0x50')]['bind'](_0x3358('0x29'))[_0x3358('0x6')](_0x54ddf0,_0x3358('0x29'),(..._0x121464)=>_0x121464['some'](_0x4de1c7=>_0x4de1c7)),_0xac3909['on'](_0x3358('0x2c'),_0x1b1cda=>{this[_0x3358('0x4e')][_0x3358('0x2c')](_0x1b1cda[_0x3358('0x5b')][_0x3358('0x4b')]),this['editor'][_0x3358('0x4c')][_0x3358('0x61')][_0x3358('0x18')]();}),_0xac3909;}[_0x3358('0x39')](_0x4fea83){const _0x29d757=this[_0x3358('0x4e')],_0x491229=_0x29d757[_0x3358('0x19')],_0x3f44a3=_0x29d757[_0x3358('0x56')][_0x3358('0x5c')](_0x3358('0x31')),_0x1d1f34=_0x29d757['plugins'][_0x3358('0x5c')](_0x3358('0x1b')),_0x1f813d=_0x29d757[_0x3358('0x56')][_0x3358('0x5c')](_0x3358('0x15')),_0x2500b6=_0x29d757['plugins']['get'](_0x124d6f)['me'],_0x21b7ff=_0x491229[_0x3358('0x5c')](_0x3358('0x54'))[_0x3358('0x34')],{CommentsListView:_0x5cdd37,CommentThreadInputView:_0x33e633}=_0x29d757[_0x3358('0x56')][_0x3358('0x5c')](_0x3358('0x65'));let _0x19614b,_0x52e7e3;this[_0x3358('0x46')][_0x3358('0x32')](_0x4fea83['id'])?(_0x52e7e3=this[_0x3358('0x46')][_0x3358('0x5c')](_0x4fea83['id']),_0x19614b=_0x52e7e3['mainView']):(_0x19614b=new _0x21b7ff(_0x29d757['locale'],_0x4fea83,_0x2500b6,{'disableComments':this[_0x3358('0x3d')],'editorConfig':_0x491229[_0x3358('0x5c')](_0x3358('0x26')),'maxCommentsWhenCollapsed':_0x491229[_0x3358('0x5c')](_0x3358('0x43')),'maxThreadTotalWeight':_0x491229['get'](_0x3358('0x74')),'maxCommentCharsWhenCollapsed':_0x491229[_0x3358('0x5c')](_0x3358('0x45')),'formatDateTime':_0x33cf73(_0x491229[_0x3358('0x5c')](_0x3358('0x73'))),'CommentView':_0x491229[_0x3358('0x5c')]('comments')[_0x3358('0x51')],'CommentsListView':_0x5cdd37,'CommentThreadInputView':_0x33e633}),_0x19614b[_0x3358('0x2b')]['on']('execute',()=>{_0x29d757['editing'][_0x3358('0x61')]['focus']();}),_0x19614b['discardButton']['on'](_0x3358('0x2c'),()=>{_0x29d757[_0x3358('0x4c')]['view']['focus']();}),_0x52e7e3=_0x3f44a3[_0x3358('0x5d')](this['editor'][_0x3358('0x73')],_0x19614b),_0x52e7e3[_0x3358('0x52')](_0x3358('0x9'))['to'](_0x19614b,'isDirty'),_0x52e7e3[_0x3358('0x52')](_0x3358('0x69'))['to'](_0x19614b),_0x52e7e3[_0x3358('0x52')](_0x3358('0x21'))['to'](_0x19614b,_0x3358('0x21'),_0x5567d0=>_0x3358('0x6b')+_0x5567d0),this['_annotationViews'][_0x3358('0x3e')](_0x4fea83['id'],_0x52e7e3));const _0x21b905=_0x1d1f34[_0x3358('0x59')](_0x4fea83[_0x3358('0xb')],_0x19614b),_0x16f507=new _0x12074c(_0x29d757,_0x4fea83,_0x19614b,_0x21b905),_0x5983bc=_0x4fea83['getAllAdjacentSuggestions']()['filter'](_0x2e6d4b=>_0x2e6d4b['isInContent']);_0x19614b['descriptionParts']=_0x29d757['plugins']['get']('TrackChangesEditing')[_0x3358('0x66')]['getDescriptions'](_0x5983bc),this[_0x3358('0x24')][_0x3358('0x3e')](_0x4fea83,_0x16f507),this['_viewToController']['set'](_0x19614b,_0x16f507);const _0x3cc496=_0x3f44a3[_0x3358('0x1a')]({'view':_0x52e7e3,'target':()=>{const _0x5e5ce2=[],_0x30b8b8=_0x4fea83['getAllAdjacentSuggestions']()[_0x3358('0x25')](_0x2d0e62=>_0x2d0e62['isInContent']);for(const _0x5ad6c2 of _0x30b8b8)_0x5e5ce2[_0x3358('0x62')](..._0x5ad6c2[_0x3358('0x2f')]());return _0x3458d0(_0x29d757[_0x3358('0x4c')],_0x5e5ce2);},'type':()=>_0x3358('0x6b')+_0x16f507[_0x3358('0x61')]['type']});_0x3f44a3[_0x3358('0x36')](_0x3cc496),_0x1f813d[_0x3358('0x28')](_0x3cc496);}['_destroyController'](_0x13a363){const _0x4901e5=this[_0x3358('0x4e')][_0x3358('0x56')][_0x3358('0x5c')]('Annotations'),_0x7faecf=this['_suggestionToController'][_0x3358('0x5c')](_0x13a363),_0x5a89d4=_0x7faecf['view'],_0x5b5c19=_0x4901e5[_0x3358('0x10')](_0x5a89d4);_0x5b5c19&&_0x4901e5[_0x3358('0x2a')](_0x5b5c19),this[_0x3358('0x24')][_0x3358('0x23')](_0x13a363),this[_0x3358('0x8')][_0x3358('0x23')](_0x5a89d4),_0x7faecf[_0x3358('0x0')]();}[_0x3358('0x12')](_0xac16e){if(!_0xac16e[_0x3358('0x44')]||!this[_0x3358('0x24')][_0x3358('0x32')](_0xac16e))return;const _0x4617d1=this[_0x3358('0x4e')][_0x3358('0x56')][_0x3358('0x5c')](_0x3358('0xd')),_0xb95c3=this['_suggestionToController'][_0x3358('0x5c')](_0xac16e),_0x1cd940=_0xac16e[_0x3358('0x4a')]();_0xb95c3[_0x3358('0x61')][_0x3358('0x68')]=_0x4617d1[_0x3358('0x66')][_0x3358('0x71')](_0x1cd940);}['destroy'](){for(const _0x39c5e8 of this[_0x3358('0x24')][_0x3358('0x1c')]())this[_0x3358('0x20')](_0x39c5e8);for(const _0x320d42 of this['_annotationViews'][_0x3358('0x63')]())_0x320d42[_0x3358('0x5e')][_0x3358('0x0')]();super[_0x3358('0x0')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1de1=['locale','canDiscard','destroy','_setPendingAction','remove','PendingActions','isDirty','PENDING_ACTION_SUGGESTION','commands','get','change:isDirty','_editor','plugins','add','canEditAt','isEnabled','view','commentThreadController','execute','model','unbind','listenTo','_removePendingAction','bind','_pendingAction','discardSuggestion','getRanges','_discardCommand','canAccept','acceptSuggestion','_acceptCommand'];(function(_0x5a4913,_0x1de17a){const _0x1a422f=function(_0x5ae8c3){while(--_0x5ae8c3){_0x5a4913['push'](_0x5a4913['shift']());}};_0x1a422f(++_0x1de17a);}(_0x1de1,0x1df));const _0x1a42=function(_0x5a4913,_0x1de17a){_0x5a4913=_0x5a4913-0x0;let _0x1a422f=_0x1de1[_0x5a4913];return _0x1a422f;};import{ObservableMixin as _0x1f4373}from'ckeditor5/src/utils';import{getTranslation as _0x1a446a}from'../utils/common-translations';export default class qt extends _0x1f4373(){constructor(_0x37d43a,_0x5de483,_0x942491,_0x1c3ea2){super(),this[_0x1a42('0x5')]=_0x5de483,this[_0x1a42('0x2')]=_0x942491,this[_0x1a42('0x3')]=_0x1c3ea2,this[_0x1a42('0x1c')]=_0x37d43a,this['_acceptCommand']=_0x37d43a[_0x1a42('0x19')][_0x1a42('0x1a')](_0x1a42('0xf')),this[_0x1a42('0xd')]=_0x37d43a[_0x1a42('0x19')][_0x1a42('0x1a')](_0x1a42('0xb')),this['view'][_0x1a42('0x9')](_0x1a42('0x1'))['to'](this['_acceptCommand'],this[_0x1a42('0xd')],(_0x213dca,_0x520e3b)=>_0x213dca||_0x520e3b),this[_0x1a42('0x2')][_0x1a42('0x9')](_0x1a42('0xe'))['to'](this[_0x1a42('0x10')],_0x1a42('0x1'),_0x15f244=>_0x15f244&&this[_0x1a42('0x1c')][_0x1a42('0x5')][_0x1a42('0x0')](_0x5de483[_0x1a42('0xc')]())),this[_0x1a42('0x2')][_0x1a42('0x9')]('canDiscard')['to'](this['_discardCommand'],_0x1a42('0x1'),_0x386f1e=>_0x386f1e&&this['_editor']['model'][_0x1a42('0x0')](_0x5de483['getRanges']())),this[_0x1a42('0xa')]=null,_0x942491[_0x1a42('0x17')]&&this[_0x1a42('0x14')](),this[_0x1a42('0x7')](_0x942491,_0x1a42('0xf'),()=>this[_0x1a42('0xf')]()),this[_0x1a42('0x7')](_0x942491,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x942491,_0x1a42('0x1b'),()=>{_0x942491['isDirty']?this[_0x1a42('0x14')]():this['_removePendingAction']();});}[_0x1a42('0xf')](){this[_0x1a42('0x10')][_0x1a42('0x4')](this['model']['id']);}[_0x1a42('0xb')](){this[_0x1a42('0xd')][_0x1a42('0x4')](this[_0x1a42('0x5')]['id']);}[_0x1a42('0x13')](){this[_0x1a42('0x2')][_0x1a42('0x6')](_0x1a42('0x1')),this['view'][_0x1a42('0x6')](_0x1a42('0xe')),this[_0x1a42('0x2')]['unbind'](_0x1a42('0x12')),this['stopListening'](),this['commentThreadController'][_0x1a42('0x13')](),this[_0x1a42('0xa')]&&this[_0x1a42('0x8')]();}['_setPendingAction'](){const _0x577ac9=_0x1a446a(this[_0x1a42('0x1c')][_0x1a42('0x11')],_0x1a42('0x18'));this['_pendingAction']=this[_0x1a42('0x1c')][_0x1a42('0x1d')][_0x1a42('0x1a')](_0x1a42('0x16'))[_0x1a42('0x1e')](_0x577ac9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor'][_0x1a42('0x1d')][_0x1a42('0x1a')](_0x1a42('0x16'))[_0x1a42('0x15')](this[_0x1a42('0xa')]),this[_0x1a42('0xa')]=null;}}
23
+ const _0x97d3=['execute','model','_discardCommand','PendingActions','discardSuggestion','canDiscard','destroy','commentThreadController','_acceptCommand','plugins','remove','_pendingAction','canEditAt','_setPendingAction','isEnabled','stopListening','locale','PENDING_ACTION_SUGGESTION','commands','acceptSuggestion','_editor','isDirty','view','_removePendingAction','listenTo','unbind','add','getRanges','get','bind'];(function(_0x4a1bd1,_0x97d3fa){const _0x549447=function(_0x4e466e){while(--_0x4e466e){_0x4a1bd1['push'](_0x4a1bd1['shift']());}};_0x549447(++_0x97d3fa);}(_0x97d3,0x19b));const _0x5494=function(_0x4a1bd1,_0x97d3fa){_0x4a1bd1=_0x4a1bd1-0x0;let _0x549447=_0x97d3[_0x4a1bd1];return _0x549447;};import{ObservableMixin as _0x2fc5f8}from'ckeditor5/src/utils';import{getTranslation as _0x3ebc14}from'../utils/common-translations';export default class qt extends _0x2fc5f8(){constructor(_0x90d2eb,_0xea9abe,_0x34b3be,_0x218f25){super(),this[_0x5494('0xa')]=_0xea9abe,this[_0x5494('0x1')]=_0x34b3be,this[_0x5494('0x10')]=_0x218f25,this['_editor']=_0x90d2eb,this[_0x5494('0x11')]=_0x90d2eb[_0x5494('0x1b')][_0x5494('0x7')]('acceptSuggestion'),this[_0x5494('0xb')]=_0x90d2eb['commands'][_0x5494('0x7')]('discardSuggestion'),this['view'][_0x5494('0x8')](_0x5494('0x17'))['to'](this[_0x5494('0x11')],this[_0x5494('0xb')],(_0x1d80d7,_0x292e84)=>_0x1d80d7||_0x292e84),this[_0x5494('0x1')][_0x5494('0x8')]('canAccept')['to'](this[_0x5494('0x11')],_0x5494('0x17'),_0x2c1b8b=>_0x2c1b8b&&this['_editor'][_0x5494('0xa')][_0x5494('0x15')](_0xea9abe[_0x5494('0x6')]())),this[_0x5494('0x1')][_0x5494('0x8')](_0x5494('0xe'))['to'](this[_0x5494('0xb')],_0x5494('0x17'),_0x16ea5e=>_0x16ea5e&&this[_0x5494('0x1d')]['model'][_0x5494('0x15')](_0xea9abe[_0x5494('0x6')]())),this[_0x5494('0x14')]=null,_0x34b3be[_0x5494('0x0')]&&this[_0x5494('0x16')](),this[_0x5494('0x3')](_0x34b3be,_0x5494('0x1c'),()=>this[_0x5494('0x1c')]()),this[_0x5494('0x3')](_0x34b3be,_0x5494('0xd'),()=>this[_0x5494('0xd')]()),this[_0x5494('0x3')](_0x34b3be,'change:isDirty',()=>{_0x34b3be[_0x5494('0x0')]?this[_0x5494('0x16')]():this[_0x5494('0x2')]();});}[_0x5494('0x1c')](){this['_acceptCommand'][_0x5494('0x9')](this[_0x5494('0xa')]['id']);}[_0x5494('0xd')](){this[_0x5494('0xb')]['execute'](this[_0x5494('0xa')]['id']);}[_0x5494('0xf')](){this['view']['unbind'](_0x5494('0x17')),this[_0x5494('0x1')][_0x5494('0x4')]('canAccept'),this['view'][_0x5494('0x4')](_0x5494('0xe')),this[_0x5494('0x18')](),this[_0x5494('0x10')][_0x5494('0xf')](),this['_pendingAction']&&this[_0x5494('0x2')]();}[_0x5494('0x16')](){const _0x4ca05d=_0x3ebc14(this[_0x5494('0x1d')][_0x5494('0x19')],_0x5494('0x1a'));this[_0x5494('0x14')]=this[_0x5494('0x1d')]['plugins'][_0x5494('0x7')](_0x5494('0xc'))[_0x5494('0x5')](_0x4ca05d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor'][_0x5494('0x12')][_0x5494('0x7')](_0x5494('0xc'))[_0x5494('0x13')](this['_pendingAction']),this[_0x5494('0x14')]=null;}}