@ckeditor/ckeditor5-track-changes 38.0.0 → 38.0.1

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 _0x5e59=['_adapter','getFirstRange','pluginName','getRanges','getAllAdjacentSuggestions','stop','createElement','removeMarker','_trackFormatChanges','formatBlock:','insertion:join','_suggestions','suggestionUnloaded','_rangeIsInLocalUserInsertion','TrackChangesEditing','add','every','commentThread','originalSuggestionId','getDifference','hasSuggestion','previous','accept','formatBlock:join','getSuggestions','differ','markerName','config','writer','from','conversion','fromCharCode','split','_getSuggestionData','updateMarker','elementStart','markerReady','_customCallbacks','markers','PendingActions','values','suggestion','authorName','nodeAfter','for','_updateSuggestionData','getWalker','toViewElement','isObject','splice','activeMarkers','isIntersectingWithRange','root','track-changes-adapter-missing-getsuggestion','addSuggestionData','author','formatBlock:accept','creator','insert','locale','widget','formatBlock','formatInline:chain','insertion:discard','getFirstMarker','getMultiRangeId','deletion:discard','chain','createRange','addMarker:suggestion:formatBlock','change:_saved','_enabledCommands','showSuggestionHighlights','document','schema','getCustomProperty','addHighlight','trackChanges','isInContent','isRemovable','markerToHighlight','getIntersection','isBlock','next','lowest','accepted','_setSuggestionData','suggestionLoaded','setTo','bindElementToMarker','isLimit','_cutOutSuggestionMarker','Users','marker-count','isUndo','position','plugins','data','parent','some','mapper','get','nodeBefore','addComment','isAtEnd','element','formatInline:join','forward','trackChangesCommand','reconvertMarker','trackChanges.trackFormatChanges','markMultiRangeDeletion','registerPostFixer','_saved','init','highest','dataReady','enqueueChange','registerCustomCallback','isTouching','fire','ready','name','insertion:accept','isInsideObject','rootName','commandName','unbindElementFromMarkerName','formatBlock:discard','_getExternalAuthor','addCommentThread','adapter','return','_mergeNestedSuggestions','suggestionChanged','editing','markerToData','deletion:join','includes','rethrowUnexpectedError','containsRangeInObject','suggestion:','editor','markerNameToElements','discardSelectedSuggestions','createSelection','getSuggestion','removeAttribute','isAfter','batch','applyOperation','formatBlock:chain','deletion','_descriptionFactory','$graveyard','isDocumentOperation','_handleNewSuggestionMarker','addSuggestion','_model','markInsertion','enableReadOnlyMode','removed','discardSuggestion','splitPosition','join','execute','start','isSelectable','_commentsRepository','rejected','length','item','getCommentThread','attributes','buildSuggestion','external:','discardAllSuggestions','removeClass','deleteContent','set','removeMarker:suggestion:formatBlock','isNextTo','selection','data-suggestion','high','track-changes-suggestion-data-mismatch','removeMarkers','requires','getUser','low','isOwn','dataDowncast','_getAuthorFromId','_breakSuggestionMarker','editingDowncast','remove','change','map','insertContent','update:suggestion','elementToElement','addClass','setAttribute','deletion:','_registerDefaultCallbacks','addMarkerName','model','move','change:data','hasComments','_refreshSuggestionsChain','consumable','createRangeIn','size','markMultiRangeBlockFormat','insertion','multipleBlocks','getItems','always','oldRange','addUser','has','authoredAt','createPositionBefore','_splitMarkerName','_addSuggestionMarker','enableCommand','_checkSuggestionCorrectness','deletion:chain','ck-suggestion-marker','setSelection','getLastMatchingPosition','_joinWithAdjacentSuggestions','delete','_createSuggestion','track-changes-suggestion-not-found','change:activeMarkers','listenTo','@external','getSuggestionCallback','_isForcedDefaultExecutionBlock','subType','define','ck-suggestion-marker-','catch','default','_onDiscard','_suggestionState','skipNestingCheck','formatInline:discard','CommentsRepository','substr','ck-suggestion-marker-formatBlock','removeComment','end','_defaultCallbacks','acceptSelectedSuggestions','_editor','getChangedMarkers','after','acceptSuggestion','never','stopListening','formatInline:','options','sort','getNearestSelectionRange','type','newRange','isAtStart','addMarker:suggestion','formatInline','backward','insertion:chain','isBefore','_joinSuggestions','containsRange','insertion:','ck-suggestion-marker--active','_findSuggestions','_setSuggestionRange','moveTargetPosition','containerElement','acceptAllSuggestions','getAttribute','updateSuggestion','createdAt','containsPosition','formatGroupId','formatInline:accept','notReady','value','markBlockFormat','getAncestors','_addThreadToSuggestion','getShiftedBy','isEqual','_suggestionFactory','discard','collaboration.channelId','isCollapsed','filter','push','track-changes-user-not-found','createPositionAt','forceDefaultExecution','trackChanges.mergeNestedSuggestions','isMultiRange','addRange','consume','commands','range'];(function(_0x21a635,_0x5e59a5){const _0x230cb8=function(_0x2c344d){while(--_0x2c344d){_0x21a635['push'](_0x21a635['shift']());}};_0x230cb8(++_0x5e59a5);}(_0x5e59,0xf1));const _0x230c=function(_0x21a635,_0x5e59a5){_0x21a635=_0x21a635-0x0;let _0x230cb8=_0x5e59[_0x21a635];return _0x230cb8;};import{Plugin as _0x4061d3,PendingActions as _0x1ab065}from'ckeditor5/src/core';import{LiveRange as _0x526bfe}from'ckeditor5/src/engine';import{CKEditorError as _0x40e29f,uid as _0x4a6f2e,priorities as _0x34b2a8,logWarning as _0x3ba762}from'ckeditor5/src/utils';import{toWidget as _0x1f3c95}from'ckeditor5/src/widget';import{Users as _0x5052be,hashObject as _0x86ca02}from'ckeditor5-collaboration/src/collaboration-core';import _0x47cd0c from'./commands/trackchangescommand';import _0x6a78be from'./commands/acceptsuggestioncommand';import _0x3aa119 from'./commands/discardsuggestioncommand';import _0x3db442 from'./commands/executeonallsuggestionscommand';import _0x509559 from'./commands/executeonselectedsuggestionscommand';import _0x359907 from'./suggestion';import _0x3136ec from'./suggestiondescriptionfactory';import _0x2d4b02 from'./integrations/alignment';import _0x43605e from'./integrations/basicstyles';import _0x2c90c0 from'./integrations/blockquote';import _0x47339c from'./integrations/ckbox';import _0x1ac853 from'./integrations/codeblock';import _0x30680e from'./integrations/comments';import _0x1afd09 from'./integrations/deletecommand';import _0x364b32 from'./integrations/documentlist';import _0x21b6fc from'./integrations/entercommand';import _0x121a25 from'./integrations/findandreplace';import _0x3c0a05 from'./integrations/font';import _0x305764 from'./integrations/formatpainter';import _0x52052c from'./integrations/heading';import _0x8ab0c9 from'./integrations/highlight';import _0x5bac44 from'./integrations/horizontalline';import _0x1a855b from'./integrations/htmlembed';import _0x54a38a from'./integrations/image';import _0x114921 from'./integrations/imagereplace';import _0x44ef34 from'./integrations/importword';import _0x4be575 from'./integrations/indent';import _0x436d60 from'./integrations/inputcommand';import _0x522490 from'./integrations/link';import _0x23521b from'./integrations/list';import _0x4b8bd2 from'./integrations/listproperties';import _0x5666c3 from'./integrations/mediaembed';import _0x4155d4 from'./integrations/mention';import _0x280305 from'./integrations/pagebreak';import _0xf9e763 from'./integrations/paragraph';import _0x3cd1b0 from'./integrations/removeformat';import _0x16b7b3 from'./integrations/restrictededitingmode';import _0x412445 from'./integrations/shiftentercommand';import _0x5ca0d1 from'./integrations/standardeditingmode';import _0x59a53c from'./integrations/style';import _0x5d64aa from'./integrations/table';import _0x1106cf from'./integrations/tablemergesplit';import _0x655840 from'./integrations/tableheadings';import _0x3432e7 from'./integrations/tableclipboard';import _0x4616fd from'./integrations/tablecolumnresize';import _0x4530da from'./integrations/template';import _0x26fd93 from'./integrations/tableofcontents';import _0x1da71b from'./integrations/title';import _0x5530a7 from'./integrations/undo';import{getTranslation as _0x15ad70}from'./utils/common-translations';import _0x58ed20 from'./integrations/tablecaption';import _0x5d9338 from'./integrations/documentlistproperties';import _0x423198 from'./integrations/tableproperties';export default class p extends _0x4061d3{static get[_0x230c('0x102')](){return[_0x230c('0x9'),_0x5052be,_0x1ab065,_0x2d4b02,_0x43605e,_0x2c90c0,_0x47339c,_0x1ac853,_0x30680e,_0x1afd09,_0x364b32,_0x5d9338,_0x21b6fc,_0x121a25,_0x3c0a05,_0x305764,_0x52052c,_0x8ab0c9,_0x5bac44,_0x1a855b,_0x54a38a,_0x114921,_0x44ef34,_0x4be575,_0x436d60,_0x522490,_0x23521b,_0x4b8bd2,_0x5666c3,_0x4155d4,_0x280305,_0xf9e763,_0x3cd1b0,_0x16b7b3,_0x412445,_0x5ca0d1,_0x59a53c,_0x5d64aa,_0x1106cf,_0x655840,_0x58ed20,_0x3432e7,_0x4616fd,_0x26fd93,_0x423198,_0x4530da,_0x1da71b,_0x5530a7];}static get[_0x230c('0x49')](){return _0x230c('0x55');}constructor(_0x3d709e){function _0x5ba0b6(_0x472e79){return _0x472e79[_0x230c('0x10c')](_0x96e4e0=>String[_0x230c('0x66')](_0x96e4e0))[_0x230c('0xeb')]('');}super(_0x3d709e),this[_0x230c('0xfa')](_0x230c('0x79'),[]),this['on'](_0x230c('0x133'),(_0x6d33e6,_0x8d6971,_0x5899c7,_0x16964f)=>{this[_0x230c('0xe5')][_0x230c('0x10b')](()=>{for(const _0x315a89 of[..._0x16964f,..._0x5899c7])this[_0x230c('0xe5')][_0x230c('0x6d')][_0x230c('0x124')](_0x315a89)&&_0x3d709e[_0x230c('0xce')][_0x230c('0xb4')](_0x315a89);});}),this[_0x230c('0xe0')]=new _0x3136ec(this[_0x230c('0xd5')][_0x230c('0x115')][_0x230c('0x91')],this[_0x230c('0xd5')][_0x230c('0x82')]),this[_0x230c('0x47')]=null,this[_0x230c('0x38')]=new Dt(this[_0x230c('0xd5')]),this[_0x230c('0x52')]=new Map(),this[_0x230c('0xef')]=_0x3d709e[_0x230c('0xa7')]['get'](_0x230c('0x9')),this['_enabledCommands']=new Set(),this[_0x230c('0xe5')]=this[_0x230c('0xd5')][_0x230c('0x115')],this[_0x230c('0x6')]=new WeakMap(),this[_0x230c('0x137')]=!0x1,_0x3d709e[_0x230c('0x62')]['define']('trackChanges.trackFormatChanges',_0x230c('0x4')),this[_0x230c('0x4f')]=_0x3d709e[_0x230c('0x62')]['get'](_0x230c('0xb5')),_0x3d709e[_0x230c('0x62')][_0x230c('0x1')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x230c('0xcc')]=_0x3d709e[_0x230c('0x62')][_0x230c('0xac')](_0x230c('0x41')),this[_0x230c('0xb3')]=new _0x47cd0c(_0x3d709e,this[_0x230c('0x8e')]),this[_0x5ba0b6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5ba0b6([0x34,0x30,0x34,0x36,0x31,0x30,0x34,0x34]);}[_0x230c('0xb9')](){const _0x5b2d43=this[_0x230c('0xd5')];_0x5b2d43[_0x230c('0x65')]['for'](_0x230c('0x109'))[_0x230c('0x97')]({'model':_0x230c('0x70'),'view':_0x37dd49=>{const {id:_0x4dccf6,type:_0x1a86c7}=this[_0x230c('0x127')](_0x37dd49['markerName']),_0x8cb434=[_0x230c('0x12c'),_0x230c('0x2')+_0x1a86c7];let _0x7fdf6c=0xbb8;return this[_0x230c('0x79')][_0x230c('0xd1')](_0x37dd49[_0x230c('0x61')])&&(_0x8cb434[_0x230c('0x3d')](_0x230c('0x25')),_0x7fdf6c=0xbc2),'deletion'==_0x1a86c7&&(_0x7fdf6c+=0x5),{'classes':_0x8cb434,'attributes':{'data-suggestion':_0x4dccf6},'priority':_0x7fdf6c};}}),_0x5b2d43[_0x230c('0x65')][_0x230c('0x73')](_0x230c('0x106'))['add'](_0x38f30f=>{_0x38f30f['on'](_0x230c('0x1d'),(_0x20f9b3,_0x185c9c,_0x5f2960)=>{if(!_0x5f2960[_0x230c('0x17')][_0x230c('0x8f')])return;const _0x1a5316=_0x185c9c['item'];if(!_0x1a5316)return;const _0x522c1d=_0x5f2960[_0x230c('0xab')][_0x230c('0x76')](_0x1a5316);_0x5b2d43[_0x230c('0x115')][_0x230c('0x91')][_0x230c('0x77')](_0x1a5316)&&_0x522c1d&&!_0x522c1d[_0x230c('0x92')](_0x230c('0x83'))&&_0x522c1d['is'](_0x230c('0x29'))&&_0x1f3c95(_0x522c1d,_0x5f2960['writer']);},{'priority':_0x230c('0xff')});}),_0x5b2d43[_0x230c('0x65')]['for']('dataDowncast')['markerToHighlight']({'model':_0x230c('0x70'),'view':(_0x47ac40,_0x538a80)=>{if(!_0x538a80[_0x230c('0x17')][_0x230c('0x8f')])return null;const {type:_0x181f9f}=this[_0x230c('0x127')](_0x47ac40[_0x230c('0x61')]);return{'classes':['ck-suggestion-marker',_0x230c('0x2')+_0x181f9f],'priority':0xbb8};}});const _0x3171cf=({showActiveMarkers:_0x5727a3=!0x0}={})=>(_0x1e6b7b,_0xe5b6a5,_0x1b97ce)=>{if(!_0xe5b6a5['item'])return;if(_0xe5b6a5[_0x230c('0xf2')]['is'](_0x230c('0xfd')))return void _0x1b97ce[_0x230c('0x11a')][_0x230c('0x44')](_0xe5b6a5['item'],_0x1e6b7b[_0x230c('0xc1')]);const _0x1978ed=_0x1b97ce[_0x230c('0xab')]['toViewElement'](_0xe5b6a5[_0x230c('0xf2')]);if(!(_0xe5b6a5[_0x230c('0xf2')]['is'](_0x230c('0xb0'))&&_0x5b2d43['model'][_0x230c('0x91')]['isBlock'](_0xe5b6a5['item'])&&!_0x1978ed['getCustomProperty'](_0x230c('0x93'))))return;const {id:_0x43e326}=this[_0x230c('0x127')](_0xe5b6a5[_0x230c('0x61')]);_0x1b97ce[_0x230c('0x63')][_0x230c('0x110')](['ck-suggestion-marker',_0x230c('0xb')],_0x1978ed),_0x1b97ce[_0x230c('0x63')][_0x230c('0x111')](_0x230c('0xfe'),_0x43e326,_0x1978ed),_0x1b97ce[_0x230c('0xab')][_0x230c('0xa0')](_0x1978ed,_0xe5b6a5['markerName']),_0x5727a3&&(this[_0x230c('0x79')][_0x230c('0xd1')](_0xe5b6a5[_0x230c('0x61')])?_0x1b97ce[_0x230c('0x63')][_0x230c('0x110')](_0x230c('0x25'),_0x1978ed):_0x1b97ce[_0x230c('0x63')][_0x230c('0xf8')](_0x230c('0x25'),_0x1978ed));for(const _0x325ca9 of _0x5b2d43[_0x230c('0x115')][_0x230c('0x11b')](_0xe5b6a5['item'])[_0x230c('0x120')]())_0x1b97ce['consumable']['consume'](_0x325ca9,_0x1e6b7b[_0x230c('0xc1')]);_0x1b97ce[_0x230c('0x11a')][_0x230c('0x44')](_0xe5b6a5[_0x230c('0xf2')],_0x1e6b7b['name']);};_0x5b2d43[_0x230c('0x65')][_0x230c('0x73')](_0x230c('0x106'))[_0x230c('0x56')](_0x136b7b=>{_0x136b7b['on']('addMarker:suggestion:formatBlock',(_0x39eaed,_0x257ae8,_0x391b2d)=>{_0x391b2d[_0x230c('0x17')][_0x230c('0x8f')]&&_0x3171cf({'showActiveMarkers':!0x1})(_0x39eaed,_0x257ae8,_0x391b2d);},{'priority':_0x230c('0xba')});}),_0x5b2d43[_0x230c('0x65')]['for'](_0x230c('0x106'))[_0x230c('0xcf')]({'model':_0x230c('0x70'),'view':(_0x3a7aff,_0x1df721)=>_0x1df721[_0x230c('0x17')][_0x230c('0x8f')]?null:{'group':_0x230c('0x70'),'name':_0x3a7aff[_0x230c('0xa')](0xb)}}),_0x5b2d43[_0x230c('0x65')]['for']('upcast')[_0x230c('0x10f')]({'view':{'name':_0x230c('0x70'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e42ad,{writer:_0x24e2bb})=>{let _0x3617f0=_0x230c('0xd4')+_0x4e42ad[_0x230c('0x2b')]('suggestion-type')+':'+_0x4e42ad[_0x230c('0x2b')]('id');return _0x4e42ad[_0x230c('0x2b')](_0x230c('0xa4'))&&(_0x3617f0+=':'+_0x4e42ad[_0x230c('0x2b')]('marker-count')),_0x24e2bb[_0x230c('0x4d')]('$marker',{'data-name':_0x3617f0});}}),_0x5b2d43['conversion'][_0x230c('0x73')]('upcast')['dataToMarker']({'view':_0x230c('0x70')}),_0x5b2d43[_0x230c('0x65')][_0x230c('0x73')](_0x230c('0x109'))[_0x230c('0x56')](_0x113e77=>{_0x113e77['on'](_0x230c('0x8c'),_0x3171cf(),{'priority':_0x230c('0xff')});}),_0x5b2d43['conversion'][_0x230c('0x73')](_0x230c('0x109'))[_0x230c('0x56')](_0x1991c1=>{_0x1991c1['on'](_0x230c('0xfb'),(_0x271e21,_0x1dcb60,_0x52b42c)=>{const _0x1e745e=_0x52b42c['mapper'][_0x230c('0xd6')](_0x1dcb60['markerName']);if(_0x1e745e)for(const _0x27a02a of _0x1e745e)_0x27a02a[_0x230c('0x92')](_0x230c('0x93'))||(_0x52b42c[_0x230c('0x63')]['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x230c('0x25')],_0x27a02a),_0x52b42c[_0x230c('0x63')][_0x230c('0xda')](_0x230c('0xfe'),_0x27a02a),_0x52b42c[_0x230c('0xab')][_0x230c('0xc6')](_0x27a02a,_0x1dcb60[_0x230c('0x61')]));},{'priority':'high'});}),_0x5b2d43['model'][_0x230c('0x90')][_0x230c('0xb7')](_0x2cbd3b=>{let _0x18a569=!0x1;const _0x465285=Array['from'](_0x5b2d43['model']['document'][_0x230c('0x60')][_0x230c('0x11')]()),_0xfd96af=new Set();for(const {name:_0x2c1a80,data:_0x25eb20}of _0x465285){const {group:_0x411aae,type:_0x59cc9d,id:_0x32e83c}=this[_0x230c('0x127')](_0x2c1a80);if(_0x230c('0x70')!==_0x411aae)continue;const _0x186b8a=this['_suggestions'][_0x230c('0xac')](_0x32e83c);if(null!=_0x25eb20[_0x230c('0x1b')]){_0x230c('0x1e')==_0x59cc9d&&(_0x18a569=_0x18a569||Mt(_0x25eb20[_0x230c('0x1b')],_0x2c1a80,_0x2cbd3b,_0x5b2d43[_0x230c('0x115')][_0x230c('0x91')]));if(_0x25eb20['newRange'][_0x230c('0x3b')]||'$graveyard'==_0x25eb20[_0x230c('0x1b')][_0x230c('0x7b')]['rootName']||_0x230c('0x84')==_0x59cc9d&&!Nt(_0x25eb20[_0x230c('0x1b')])||_0x230c('0xdf')==_0x59cc9d&&!(!_t(_0x516da3=_0x25eb20[_0x230c('0x1b')])&&!function(_0x4faa7b){return _0x4faa7b[_0x230c('0xed')]['parent']==_0x4faa7b[_0x230c('0xd')][_0x230c('0xad')]&&_0x4faa7b[_0x230c('0xed')]['isAtEnd'];}(_0x516da3)))_0x2cbd3b[_0x230c('0x4e')](_0x2c1a80),_0x18a569=!0x0;else{if(!_0x186b8a||!_0x186b8a[_0x230c('0x95')])continue;_0xfd96af[_0x230c('0x56')](_0x186b8a);}}}var _0x516da3;return _0xfd96af[_0x230c('0x11c')]>0x0&&(_0x18a569=!!this['_joinWithAdjacentSuggestions'](_0xfd96af)||_0x18a569),_0x18a569;}),_0x5b2d43['model'][_0x230c('0x90')]['registerPostFixer'](_0x39a36b=>{let _0x1c1c7f=!0x1;for(const _0x21b6c0 of _0x5b2d43[_0x230c('0x115')][_0x230c('0x90')][_0x230c('0x60')]['getChanges']()){if(_0x230c('0x81')!=_0x21b6c0['type'])continue;const _0x1b22c2=_0x21b6c0[_0x230c('0xa6')]['getShiftedBy'](_0x21b6c0[_0x230c('0xf1')]);if(_0x1b22c2[_0x230c('0xaf')])for(const _0x166e7c of this['_suggestions'][_0x230c('0x6f')]()){if(_0x166e7c['isMultiRange']||!_0x166e7c[_0x230c('0x95')])continue;if(_0x230c('0x84')!=_0x166e7c[_0x230c('0x1a')])continue;const _0x182e35=_0x166e7c[_0x230c('0x48')]();if(_0x182e35[_0x230c('0xed')][_0x230c('0xa9')]!=_0x182e35['end']['parent']&&_0x182e35[_0x230c('0xd')][_0x230c('0x37')](_0x21b6c0[_0x230c('0xa6')])){const _0x4685b1=_0x5b2d43['model']['createRange'](_0x182e35[_0x230c('0xed')],_0x1b22c2);_0x39a36b['updateMarker'](_0x166e7c[_0x230c('0x87')](),{'range':_0x4685b1}),_0x1c1c7f=!0x0;}}}return _0x1c1c7f;}),_0x5b2d43[_0x230c('0x115')]['markers']['on'](_0x230c('0x10e'),(_0x24457a,_0x3305da,_0x47808c)=>{if(null==_0x47808c){const {id:_0x4707fc}=this[_0x230c('0x127')](_0x3305da[_0x230c('0xc1')]),_0x3e2186=this[_0x230c('0x52')][_0x230c('0xac')](_0x4707fc);_0x3e2186&&_0x3e2186[_0x230c('0x114')](_0x3305da['name']);}}),_0x5b2d43['model'][_0x230c('0x90')]['on'](_0x230c('0x117'),()=>{const _0x47d569=Array[_0x230c('0x64')](_0x5b2d43['model'][_0x230c('0x90')]['differ']['getChangedMarkers']())['filter'](_0x3eb099=>_0x230c('0x70')===this[_0x230c('0x127')](_0x3eb099['name'])['group']);if(0x0===_0x47d569[_0x230c('0xf1')])return;_0x47d569['sort']((_0x581180,_0x436136)=>{const _0x332fe1=_0x581180['data'][_0x230c('0x122')],_0x2efb6c=_0x436136[_0x230c('0xa8')][_0x230c('0x122')];return null===_0x332fe1&&null===_0x2efb6c?0x0:null===_0x332fe1&&null!==_0x2efb6c?-0x1:null!==_0x332fe1&&null===_0x2efb6c?0x1:_0x332fe1[_0x230c('0xed')][_0x230c('0x21')](_0x2efb6c[_0x230c('0xed')])?-0x1:0x1;});const _0x231c8c=new Set(),_0x5a8588=new Set();for(const {name:_0x586509,data:_0x46d4d9}of _0x47d569){const {id:_0x7d5399}=this[_0x230c('0x127')](_0x586509);if(null===_0x46d4d9[_0x230c('0x122')]){const _0x35f172=this['_handleNewSuggestionMarker'](_0x586509);_0x5a8588[_0x230c('0x56')](_0x35f172);}else{const _0x417126=this[_0x230c('0x52')][_0x230c('0xac')](_0x7d5399);null!==_0x46d4d9[_0x230c('0x1b')]||_0x417126[_0x230c('0x95')]?(_0x231c8c['add'](_0x417126['head']),_0x5a8588[_0x230c('0x56')](_0x417126)):this['_removeSuggestion'](_0x417126);}}_0x5a8588[_0x230c('0x11c')]>0x0&&this[_0x230c('0x119')](_0x5a8588);for(const _0x1af73f of _0x231c8c)this[_0x230c('0xbf')](_0x230c('0xcd'),_0x1af73f);}),_0x5b2d43[_0x230c('0x115')]['on'](_0x230c('0xdd'),(_0x1e37af,_0x36a52b)=>{const _0x210b3a=_0x36a52b[0x0];if(!this[_0x230c('0x52')][_0x230c('0x11c')])return;if(!_0x210b3a[_0x230c('0xe2')])return;if(_0x210b3a[_0x230c('0xdc')][_0x230c('0xa5')]||!_0x210b3a['batch']['isLocal'])return;let _0x568c85,_0x5bc3d9;switch(_0x210b3a[_0x230c('0x1a')]){case'insert':_0x568c85=_0x5b2d43[_0x230c('0x115')][_0x230c('0x3f')](_0x210b3a[_0x230c('0xa6')]),_0x5bc3d9=_0x568c85[_0x230c('0x36')](_0x210b3a['howMany']);break;case _0x230c('0x67'):_0x568c85=_0x5b2d43['model'][_0x230c('0x3f')](_0x210b3a[_0x230c('0xea')]),_0x5bc3d9=_0x5b2d43['model']['createPositionAt'](_0x210b3a[_0x230c('0x28')]);break;case _0x230c('0x116'):_0x568c85=_0x5b2d43[_0x230c('0x115')][_0x230c('0x3f')](_0x210b3a['targetPosition']),_0x5bc3d9=_0x568c85[_0x230c('0x36')](_0x210b3a['howMany']);break;default:return;}const _0x56dd81=_0x5b2d43[_0x230c('0x115')][_0x230c('0x8b')](_0x568c85,_0x5bc3d9);_0x5b2d43[_0x230c('0x115')][_0x230c('0x10b')](()=>{for(const {suggestion:_0x52d77,meta:_0x3bd24b}of this[_0x230c('0x26')](_0x56dd81)){if(_0x52d77['isMultiRange'])continue;if('formatInline'==_0x52d77[_0x230c('0x1a')])continue;const _0x14670f=_0x52d77['data']&&_0x52d77[_0x230c('0xa8')][_0x230c('0x11f')];(_0x230c('0x84')!=_0x52d77['type']||'split'==_0x210b3a[_0x230c('0x1a')]&&!_0x14670f)&&(_0x3bd24b[_0x230c('0xd3')]||'insertion'==_0x52d77[_0x230c('0x1a')]&&_0x3bd24b[_0x230c('0x105')]||_0x52d77[_0x230c('0x48')]()[_0x230c('0x23')](_0x56dd81)&&this[_0x230c('0x108')](_0x52d77,_0x568c85,_0x5bc3d9));}});},{'priority':_0x230c('0x9b')}),_0x5b2d43[_0x230c('0x115')]['on'](_0x230c('0xf9'),(_0x11b146,_0x57b7da)=>{const _0x374778=_0x57b7da[0x0],_0x1a9c02=_0x57b7da[0x1];if(_0x1a9c02&&_0x1a9c02[_0x230c('0x40')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x374778[_0x230c('0x3b')])return;const _0xfa3941=_0x5b2d43['model']['schema'],{start:_0x1e8349,end:_0x346317}=_0x374778[_0x230c('0x48')](),_0x152142=_0x1e8349[_0x230c('0x72')]&&_0xfa3941['isLimit'](_0x1e8349[_0x230c('0x72')])?null:_0xfa3941[_0x230c('0x19')](_0x1e8349,_0x230c('0xb2')),_0xba27ff=_0x346317['nodeBefore']&&_0xfa3941[_0x230c('0xa1')](_0x346317[_0x230c('0xad')])?null:_0xfa3941['getNearestSelectionRange'](_0x346317,'backward'),_0x409439=_0x5b2d43[_0x230c('0x115')][_0x230c('0x8b')](_0x152142?_0x152142[_0x230c('0xed')]:_0x1e8349,_0xba27ff?_0xba27ff['end']:_0x346317);_0x5b2d43[_0x230c('0x115')][_0x230c('0x10b')](_0x40f46e=>{this['markDeletion'](_0x409439);const _0x4feea5=_0x5b2d43[_0x230c('0x115')]['schema'][_0x230c('0x19')](_0x409439[_0x230c('0xed')]);_0x374778['is']('documentSelection')?_0x40f46e[_0x230c('0x12d')](_0x4feea5):_0x374778[_0x230c('0x9f')](_0x4feea5);}),_0x11b146[_0x230c('0x4c')]();},{'priority':_0x34b2a8['normal']+0xa}),_0x5b2d43[_0x230c('0x115')]['on'](_0x230c('0x10d'),(_0x4fdcb0,_0x4f22a0)=>{const _0x2507d3=_0x4f22a0[_0x4f22a0[_0x230c('0xf1')]-0x1];_0x2507d3&&_0x2507d3['forceDefaultExecution']||this[_0x230c('0x137')]||this[_0x230c('0xb3')][_0x230c('0x32')]&&(_0x5b2d43[_0x230c('0x115')][_0x230c('0x10b')](()=>{let _0x12a35d=_0x5b2d43[_0x230c('0x115')][_0x230c('0x10d')](_0x4f22a0[0x0],_0x4f22a0[0x1],_0x4f22a0[0x2],{'forceDefaultExecution':!0x0});if(!_0x12a35d)return;_0x4fdcb0[_0x230c('0xcb')]=_0x12a35d['clone']();const _0x5459ca=_0x12a35d[_0x230c('0xd')][_0x230c('0xad')],_0xc2f332=_0x5b2d43[_0x230c('0x115')][_0x230c('0x91')];_0x5459ca&&_0xc2f332[_0x230c('0x99')](_0x5459ca)&&!_0xc2f332[_0x230c('0x77')](_0x5459ca)&&(_0x12a35d=_0x5b2d43[_0x230c('0x115')][_0x230c('0x8b')](_0x12a35d[_0x230c('0xed')],_0x5b2d43[_0x230c('0x115')]['createPositionAt'](_0x5459ca,_0x230c('0xd')))),this['markInsertion'](_0x12a35d);}),_0x4fdcb0[_0x230c('0x4c')]());},{'priority':_0x230c('0xff')}),this[_0x230c('0xd5')][_0x230c('0x45')]['add']('trackChanges',this['trackChangesCommand']),this[_0x230c('0x129')](_0x230c('0x94'));const _0x2d8147=new _0x6a78be(_0x5b2d43,this[_0x230c('0x52')]);_0x5b2d43[_0x230c('0x45')][_0x230c('0x56')](_0x230c('0x13'),_0x2d8147),this[_0x230c('0x129')]('acceptSuggestion');const _0x48a46f=new _0x3aa119(_0x5b2d43,this['_suggestions']);_0x5b2d43[_0x230c('0x45')][_0x230c('0x56')]('discardSuggestion',_0x48a46f),this[_0x230c('0x129')](_0x230c('0xe9')),_0x5b2d43[_0x230c('0x45')][_0x230c('0x56')](_0x230c('0x2a'),new _0x3db442(_0x5b2d43,_0x2d8147,this[_0x230c('0x52')])),this['enableCommand'](_0x230c('0x2a')),_0x5b2d43['commands']['add'](_0x230c('0xf7'),new _0x3db442(_0x5b2d43,_0x48a46f,this['_suggestions'])),this[_0x230c('0x129')](_0x230c('0xf7')),_0x5b2d43[_0x230c('0x45')]['add'](_0x230c('0xf'),new _0x509559(_0x5b2d43,_0x2d8147,this[_0x230c('0x52')])),this['enableCommand']('acceptSelectedSuggestions'),_0x5b2d43[_0x230c('0x45')]['add'](_0x230c('0xd7'),new _0x509559(_0x5b2d43,_0x48a46f,this['_suggestions'])),this['enableCommand'](_0x230c('0xd7'));const _0x53567c=_0x5b2d43[_0x230c('0xa7')][_0x230c('0xac')]('CommentsRepository');this['listenTo'](_0x53567c,_0x230c('0xae'),(_0xe8193f,{threadId:_0x2d1b10})=>{const _0x3d29e9=this[_0x230c('0x52')][_0x230c('0xac')](_0x2d1b10);_0x3d29e9&&_0x3d29e9[_0x230c('0x58')]&&0x1===_0x3d29e9[_0x230c('0x58')]['length']&&this['_updateSuggestionData'](_0x2d1b10,{'hasComments':!0x0});},{'priority':'low'}),this[_0x230c('0x134')](_0x53567c,_0x230c('0xc'),(_0x12b4e4,{threadId:_0x4bc04b})=>{const _0x435c44=this['_suggestions'][_0x230c('0xac')](_0x4bc04b);_0x435c44&&_0x435c44[_0x230c('0x58')]&&!_0x435c44['commentThread'][_0x230c('0xf1')]&&this[_0x230c('0x74')](_0x4bc04b,{'hasComments':!0x1});},{'priority':_0x230c('0x104')});}set[_0x230c('0xca')](_0x26277b){if(this['_adapter'])throw new _0x40e29f('track-changes-adapter-already-set',this);this[_0x230c('0x47')]=_0x26277b;}get[_0x230c('0xca')](){return this[_0x230c('0x47')];}['getSuggestions']({skipNotAttached:_0x2866d3=!0x1,toJSON:_0x4e4989=!0x1}={}){const _0x1e7fab=[];for(const _0x4de20e of this[_0x230c('0x52')]['values']())_0x2866d3&&!_0x4de20e[_0x230c('0x95')]||_0x1e7fab[_0x230c('0x3d')](_0x4de20e);return _0x4e4989?_0x1e7fab[_0x230c('0x10c')](_0x2b5dbd=>_0x2b5dbd['toJSON']()):_0x1e7fab;}[_0x230c('0xd9')](_0x24975c){const _0x36493d=this[_0x230c('0x52')][_0x230c('0xac')](_0x24975c);if(!_0x36493d)throw new _0x40e29f(_0x230c('0x132'),this);return _0x36493d;}[_0x230c('0x5b')](_0x5f0e93){return this[_0x230c('0x52')][_0x230c('0x124')](_0x5f0e93);}[_0x230c('0x7d')](_0x35d6aa){const {authorId:_0x234729,id:_0x38bf76,attributes:_0x439b9c}=_0x35d6aa,[_0x5268e8,_0x1aaa15]=_0x35d6aa[_0x230c('0x1a')][_0x230c('0x67')](':'),_0x243e89=this[_0x230c('0x52')][_0x230c('0xac')](_0x38bf76)||this[_0x230c('0x131')](_0x5268e8,_0x1aaa15,_0x38bf76,_0x234729,_0x439b9c);if(this['_addThreadToSuggestion'](_0x243e89),this[_0x230c('0x12a')](_0x243e89,_0x5268e8,_0x1aaa15||null,_0x234729),_0x243e89['createdAt']=_0x35d6aa[_0x230c('0x2d')],_0x439b9c&&_0x439b9c[_0x230c('0x135')]){const _0x48e0ae=_0x439b9c[_0x230c('0x135')],_0x51b27d=this[_0x230c('0xc8')](_0x48e0ae[_0x230c('0x71')]);_0x243e89[_0x230c('0x125')]=_0x48e0ae['createdAt'],_0x243e89[_0x230c('0x7e')]=_0x51b27d,_0x243e89['isExternal']=!0x0;}else _0x243e89[_0x230c('0x125')]=_0x35d6aa[_0x230c('0x2d')];switch(_0x35d6aa[_0x230c('0xa8')]&&(_0x243e89[_0x230c('0xa8')]=_0x35d6aa[_0x230c('0xa8')]),_0x35d6aa[_0x230c('0xf4')]&&(_0x243e89[_0x230c('0xf4')]=_0x35d6aa[_0x230c('0xf4')]),this['_adapter']&&this[_0x230c('0x47')]['addSuggestion']||(_0x243e89[_0x230c('0xb8')]=!0x0),this['_suggestionState'][_0x230c('0xac')](_0x243e89)){case _0x230c('0x31'):this[_0x230c('0x6')][_0x230c('0xfa')](_0x243e89,_0x230c('0xbb'));break;case _0x230c('0x6b'):_0x243e89[_0x230c('0x95')]?(this[_0x230c('0x6')][_0x230c('0xfa')](_0x243e89,_0x230c('0xc0')),this['fire'](_0x230c('0x9e'),_0x243e89)):this[_0x230c('0x6')]['set'](_0x243e89,'removed');}return _0x243e89;}[_0x230c('0x13')](_0x48110f){this[_0x230c('0x40')](()=>{this[_0x230c('0xd5')][_0x230c('0x115')][_0x230c('0x10b')](()=>{for(const _0x5f0c60 of _0x48110f['getAllAdjacentSuggestions']())_0x5f0c60[_0x230c('0x5d')]();});});}[_0x230c('0xe9')](_0x469bef){this[_0x230c('0x40')](()=>{this[_0x230c('0xd5')][_0x230c('0x115')][_0x230c('0x10b')](()=>{for(const _0xdb00fb of _0x469bef[_0x230c('0x4b')]())_0xdb00fb[_0x230c('0x39')]();});});}[_0x230c('0x129')](_0x1fa672,_0x320423){const _0x1713ef=this['editor'][_0x230c('0x45')][_0x230c('0xac')](_0x1fa672);if(!_0x1713ef)throw new _0x40e29f('track-changes-command-not-found',this,{'commandName':_0x1fa672});this['_enabledCommands']['add'](_0x1713ef),_0x320423&&_0x1713ef['on']('execute',(_0xc439b4,_0xf77bf5)=>{this[_0x230c('0xb3')][_0x230c('0x32')]&&(this[_0x230c('0x137')]||_0xf77bf5[_0x230c('0xf1')]>0x0&&_0xf77bf5[_0xf77bf5['length']-0x1]&&_0xf77bf5[_0xf77bf5[_0x230c('0xf1')]-0x1][_0x230c('0x40')]||(_0x320423((..._0x547ad9)=>_0x1713ef[_0x230c('0xec')](..._0x547ad9,{'forceDefaultExecution':!0x0}),..._0xf77bf5),_0xc439b4[_0x230c('0x4c')]()));},{'priority':_0x230c('0xff')});}[_0x230c('0x40')](_0x47a6c8){let _0xcd9bb2,_0x4403e6;const _0x50ec46=this[_0x230c('0x137')];this[_0x230c('0x137')]=!0x0;try{_0xcd9bb2=_0x47a6c8();}catch(_0x313b0e){_0x4403e6=_0x313b0e;}return _0x50ec46||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4403e6&&_0x40e29f[_0x230c('0xd2')](_0x4403e6,this),_0xcd9bb2;}[_0x230c('0xe6')](_0xd292fc,_0x4f77be=null,_0x4f551c={}){if(_0xd292fc['isCollapsed'])return null;const _0x55de56=this['editor'][_0x230c('0xa7')]['get'](_0x230c('0xa3'))['me'];for(const {suggestion:_0x294cd5,meta:_0x40156b}of this[_0x230c('0x26')](_0xd292fc,'insertion'))if(_0x40156b['isOwn']){if(!_0x40156b[_0x230c('0xfc')]){if(!this['_mergeNestedSuggestions']&&_0x40156b['containsRangeInObject'])continue;return _0x294cd5;}if(_0x4f77be==_0x294cd5['subType']){const _0x25b4af=_0x294cd5['getFirstRange']();return _0x25b4af[_0x230c('0xed')][_0x230c('0x37')](_0xd292fc[_0x230c('0xd')])?this[_0x230c('0x27')](_0x294cd5,this['_model'][_0x230c('0x8b')](_0xd292fc[_0x230c('0xed')],_0x25b4af['end'])):this[_0x230c('0x27')](_0x294cd5,this[_0x230c('0xe5')]['createRange'](_0x25b4af[_0x230c('0xed')],_0xd292fc[_0x230c('0xd')])),_0x294cd5;}}const _0x26642d=_0x4a6f2e(),_0x362579=_0x55de56['id'],_0x576121=_0x4f77be?_0x230c('0x24')+_0x4f77be:_0x230c('0x11e'),_0x3c47c5=this[_0x230c('0x9d')]({'id':_0x26642d,'type':_0x576121,'createdAt':new Date(),'authorId':_0x362579,'attributes':_0x4f551c});return this[_0x230c('0x128')](_0x576121,_0x26642d,_0x362579,_0xd292fc),_0x3c47c5;}['markMultiRangeInsertion'](_0x1165e9,_0x39f015='multi',_0x41c4a3={}){const _0xef4409=this[_0x230c('0xd5')][_0x230c('0xa7')][_0x230c('0xac')](_0x230c('0xa3'))['me'],_0x3343d0=this['_suggestionFactory']['getSuggestionCallback'](_0x230c('0x11e'),_0x39f015,_0x230c('0xeb'));for(const _0xf2fa26 of this[_0x230c('0x5f')]())if(_0xf2fa26[_0x230c('0x7e')]['id']==_0xef4409['id']&&_0x230c('0x11e')==_0xf2fa26[_0x230c('0x1a')]&&_0xf2fa26[_0x230c('0x0')]==_0x39f015&&(_0x3343d0(_0xf2fa26[_0x230c('0x4a')](),_0x1165e9)||_0x3343d0(_0x1165e9,_0xf2fa26[_0x230c('0x4a')]()))){for(const _0x3e5489 of _0x1165e9)_0xf2fa26[_0x230c('0x43')](_0x3e5489);return _0xf2fa26;}if(this['_mergeNestedSuggestions'])for(const _0x3f779c of _0x1165e9)for(const {suggestion:_0x1f4ac9,meta:_0x3765b2}of this[_0x230c('0x26')](_0x3f779c,'insertion')){if(!_0x3765b2['isOwn'])continue;let _0x1be0ac=!0x0;for(const _0x2d4bbc of _0x1f4ac9[_0x230c('0x4a')]())for(const _0x2d165b of _0x1165e9)if(!_0x2d4bbc[_0x230c('0x23')](_0x2d165b)){_0x1be0ac=!0x1;break;}if(_0x1be0ac)return _0x1f4ac9;}const _0x357257=_0x4a6f2e(),_0x421adf=_0xef4409['id'],_0x3e7a9c=_0x230c('0x24')+_0x39f015,_0x5f8f4a=this['_setSuggestionData']({'id':_0x357257,'type':_0x3e7a9c,'createdAt':new Date(),'authorId':_0x421adf,'attributes':_0x41c4a3});for(const _0xe6bbd6 of _0x1165e9)this[_0x230c('0x128')](_0x3e7a9c,_0x357257,_0x421adf,_0xe6bbd6,_0x359907['getMultiRangeId']());return _0x5f8f4a;}['markInlineFormat'](_0x5fe785,_0x6ebfd4,_0x433cd4=null,_0x7373f2={}){if(_0x433cd4=_0x433cd4||$t(_0x6ebfd4),_0x5fe785['isCollapsed'])return null;if('never'===this[_0x230c('0x4f')]){const _0x541993=this[_0x230c('0x38')]['getSuggestionCallback']('formatInline',_0x433cd4,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x541993([_0x5fe785],_0x6ebfd4,_0x7373f2)),null;}const _0x238df3=this[_0x230c('0xd5')][_0x230c('0xa7')][_0x230c('0xac')]('Users')['me'],_0x402d3a=[];if(_0x230c('0x121')!==this['_trackFormatChanges'])for(const {suggestion:_0x11ed65,meta:_0x9277d2}of this[_0x230c('0x26')](_0x5fe785,_0x230c('0x11e')))_0x9277d2[_0x230c('0x105')]&&!_0x9277d2[_0x230c('0xc3')]&&_0x402d3a[_0x230c('0x3d')](..._0x11ed65[_0x230c('0x4a')]());const _0x2dc037=function(_0x52b56c,_0xf4e445){const _0x14a549=[];for(const _0x6ce8a0 of _0xf4e445){const _0x2a3665=_0x52b56c[_0x230c('0x98')](_0x6ce8a0);_0x2a3665&&_0x14a549['push'](_0x2a3665);}return _0x14a549;}(_0x5fe785,_0x402d3a),_0x4cc2de=function(_0x111aac,_0x2812e4){const _0x57b85d=[_0x111aac];for(const _0x5b6fe8 of _0x2812e4){let _0x1de484=0x0;for(;_0x1de484<_0x57b85d[_0x230c('0xf1')];){const _0x4ab908=_0x57b85d[_0x1de484][_0x230c('0x5a')](_0x5b6fe8);_0x57b85d[_0x230c('0x78')](_0x1de484,0x1,..._0x4ab908),_0x1de484+=_0x4ab908['length'];}}return _0x57b85d;}(_0x5fe785,_0x402d3a);_0x2dc037['length']&&this['_model']['change'](()=>{for(const _0x59faa4 of _0x2dc037){const _0x2d69b0=this[_0x230c('0x38')][_0x230c('0x136')]('formatInline',_0x433cd4,_0x230c('0x5d'));this[_0x230c('0x40')](()=>_0x2d69b0([_0x59faa4],_0x6ebfd4,_0x7373f2));}});for(const _0x4ddc05 of _0x4cc2de){let _0x1990d9=null,_0x4cb51a=_0x4ddc05[_0x230c('0xed')],_0x43970b=_0x4ddc05[_0x230c('0xd')];for(const {suggestion:_0xc427e2,meta:_0x14b365}of this['_findSuggestions'](_0x4ddc05,_0x230c('0x1e'))){if(!_0x14b365[_0x230c('0x105')])continue;if(_0xc427e2['subType']!=_0x433cd4)continue;const _0x253165=_0xc427e2[_0x230c('0x48')]();if(_0x253165['containsRange'](_0x4ddc05,!0x0))return null;_0x4cb51a=_0x4cb51a[_0x230c('0x21')](_0x253165[_0x230c('0xed')])?_0x4cb51a:_0x253165[_0x230c('0xed')],_0x43970b=_0x43970b[_0x230c('0xdb')](_0x253165[_0x230c('0xd')])?_0x43970b:_0x253165[_0x230c('0xd')],_0x1990d9?_0x253165[_0x230c('0xed')][_0x230c('0x21')](_0x1990d9[_0x230c('0x48')]()[_0x230c('0xed')])?(_0x1990d9['removeMarkers'](),_0x1990d9=_0xc427e2):_0xc427e2[_0x230c('0x101')]():_0x1990d9=_0xc427e2;}const _0x1c06a7=this[_0x230c('0xe5')][_0x230c('0x8b')](_0x4cb51a,_0x43970b);if(_0x1990d9)this[_0x230c('0x27')](_0x1990d9,_0x1c06a7);else{const _0x3ad773=_0x4a6f2e(),_0x496ccb=_0x238df3['id'];this[_0x230c('0x9d')]({'id':_0x3ad773,'type':_0x230c('0x16')+_0x433cd4,'data':_0x6ebfd4,'createdAt':new Date(),'authorId':_0x496ccb,'attributes':_0x7373f2}),this['_addSuggestionMarker'](_0x230c('0x16')+_0x433cd4,_0x3ad773,_0x496ccb,_0x1c06a7);}}return null;}[_0x230c('0x33')](_0x29ffdc,_0x364be9,_0x23bb7d=[],_0x20dfce=null,_0x48c1dc={}){_0x364be9[_0x230c('0x2f')]||(_0x364be9[_0x230c('0x2f')]=_0x364be9[_0x230c('0xc5')]),_0x364be9['multipleBlocks']=_0x29ffdc['is'](_0x230c('0x46')),_0x20dfce=_0x20dfce||$t(_0x364be9);const _0x4986ce=_0x23bb7d[_0x230c('0x10c')](_0xb96191=>Rt(_0xb96191,this[_0x230c('0xe5')])),_0x32a3b5=_0x29ffdc['is'](_0x230c('0x46'))?_0x29ffdc:Rt(_0x29ffdc,this[_0x230c('0xe5')]);if(_0x230c('0x14')===this[_0x230c('0x4f')]){const _0x1645f8=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0x84'),_0x20dfce,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x1645f8([_0x32a3b5],_0x364be9,_0x48c1dc)),null;}_0x4986ce[_0x230c('0x3d')](_0x32a3b5);let _0x3acce4=!0x0;for(const _0x421945 of _0x4986ce)if(!this[_0x230c('0x54')](_0x421945)){_0x3acce4=!0x1;break;}if(_0x3acce4&&_0x230c('0x121')!==this[_0x230c('0x4f')]){const _0x1ebd99=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0x84'),_0x20dfce,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x1ebd99([_0x32a3b5],_0x364be9,_0x48c1dc)),null;}let _0xbc9c2d=null,_0x1a48cf=_0x32a3b5[_0x230c('0xed')],_0x4f6886=_0x32a3b5['end'];for(const {suggestion:_0x1fe9af,meta:_0x5db2e2}of this[_0x230c('0x26')](_0x32a3b5,_0x230c('0x84'))){if(!_0x5db2e2[_0x230c('0x105')]||_0x5db2e2[_0x230c('0xfc')]||_0x5db2e2[_0x230c('0xd3')]||_0x5db2e2[_0x230c('0xc3')])continue;if(_0x1fe9af[_0x230c('0xa8')][_0x230c('0x2f')]!=_0x364be9[_0x230c('0x2f')])continue;const _0x1ab0e0=_0x1fe9af['getFirstRange']();if(_0x1fe9af[_0x230c('0x0')]==_0x20dfce){if(_0x1ab0e0[_0x230c('0x23')](_0x32a3b5,!0x0))return null;_0x1a48cf=_0x1a48cf['isBefore'](_0x1ab0e0[_0x230c('0xed')])?_0x1a48cf:_0x1ab0e0[_0x230c('0xed')],_0x4f6886=_0x4f6886[_0x230c('0xdb')](_0x1ab0e0[_0x230c('0xd')])?_0x4f6886:_0x1ab0e0[_0x230c('0xd')],_0xbc9c2d?_0x1ab0e0[_0x230c('0xed')]['isBefore'](_0xbc9c2d[_0x230c('0x48')]()['start'])?(_0xbc9c2d[_0x230c('0x101')](),_0xbc9c2d=_0x1fe9af):_0x1fe9af[_0x230c('0x101')]():_0xbc9c2d=_0x1fe9af;}else{const _0x133f5e=_0x32a3b5[_0x230c('0x98')](_0x1ab0e0);this['_cutOutSuggestionMarker'](_0x1fe9af,_0x133f5e);}}const _0x5f205b=this[_0x230c('0xd5')][_0x230c('0xa7')]['get']('Users')['me'],_0x2361d3=_0x4a6f2e(),_0x472d1f=_0x5f205b['id'];if(_0xbc9c2d)return this['_setSuggestionRange'](_0xbc9c2d,this[_0x230c('0xe5')][_0x230c('0x8b')](_0x1a48cf,_0x4f6886)),_0xbc9c2d;{const _0x5d1300=this[_0x230c('0x9d')]({'id':_0x2361d3,'type':'formatBlock:'+_0x20dfce,'data':_0x364be9,'createdAt':new Date(),'authorId':_0x472d1f,'attributes':_0x48c1dc});return this[_0x230c('0x128')](_0x230c('0x50')+_0x20dfce,_0x2361d3,_0x472d1f,this['_model'][_0x230c('0x8b')](_0x1a48cf,_0x4f6886)),_0x5d1300;}}[_0x230c('0x11d')](_0x1abdea,_0x4f9f7c,_0x4bc17f=[],_0x500230=null,_0x26e428={}){_0x4f9f7c[_0x230c('0x2f')]||(_0x4f9f7c[_0x230c('0x2f')]=_0x4f9f7c[_0x230c('0xc5')]);const _0x4aec0e=_0x1abdea[0x0];_0x4f9f7c[_0x230c('0x11f')]=_0x4aec0e['is'](_0x230c('0x46')),_0x500230=_0x500230||$t(_0x4f9f7c);const _0x5809d2=_0x4bc17f['map'](_0x407195=>Rt(_0x407195,this['_model'])),_0x4f09eb=_0x4aec0e['is'](_0x230c('0x46'))?_0x1abdea:_0x1abdea[_0x230c('0x10c')](_0x18c4cb=>Rt(_0x18c4cb,this[_0x230c('0xe5')]));if(_0x230c('0x14')===this[_0x230c('0x4f')]){const _0x1ea49d=this[_0x230c('0x38')][_0x230c('0x136')]('formatBlock',_0x500230,_0x230c('0x5d'));return this['forceDefaultExecution'](()=>_0x1ea49d(_0x4f09eb,_0x4f9f7c,_0x26e428)),null;}_0x5809d2[_0x230c('0x3d')](..._0x4f09eb);let _0x57315d=!0x0;for(const _0x29ec6c of _0x5809d2)if(!this['_rangeIsInLocalUserInsertion'](_0x29ec6c)){_0x57315d=!0x1;break;}if(_0x57315d&&_0x230c('0x121')!==this[_0x230c('0x4f')]){const _0x19d165=this[_0x230c('0x38')]['getSuggestionCallback'](_0x230c('0x84'),_0x500230,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x19d165(_0x4f09eb,_0x4f9f7c,_0x26e428)),null;}const _0x9cbb8f=this[_0x230c('0xd5')][_0x230c('0xa7')][_0x230c('0xac')](_0x230c('0xa3'))['me'];for(const _0x520684 of this[_0x230c('0x5f')]()){if(_0x520684['author']['id']!=_0x9cbb8f['id'])continue;if(_0x230c('0x84')!=_0x520684['type']||_0x520684['data']['formatGroupId']!=_0x4f9f7c[_0x230c('0x2f')])continue;const _0x37ccff=_0x520684[_0x230c('0x0')]==_0x500230;for(let _0x139255=0x0;_0x139255<_0x4f09eb[_0x230c('0xf1')];_0x139255++){const _0x3015ee=_0x4f09eb[_0x139255];for(const _0x4084ab of _0x520684['getMarkers']()){const _0x161a3e=_0x4084ab['getRange']();if(_0x3015ee[_0x230c('0x37')](_0x161a3e)){_0x37ccff?(_0x4f09eb[_0x230c('0x78')](_0x139255,0x1),_0x139255--):_0x520684[_0x230c('0x4e')](_0x4084ab[_0x230c('0xc1')]);break;}}}}if(0x0==_0x4f09eb[_0x230c('0xf1')])return null;const _0x14cb1b=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0x84'),_0x500230,_0x230c('0xeb'));for(const _0x145cd9 of this[_0x230c('0x5f')]())if(_0x145cd9[_0x230c('0x7e')]['id']==_0x9cbb8f['id']&&'formatBlock'==_0x145cd9[_0x230c('0x1a')]&&_0x145cd9[_0x230c('0xa8')]['formatGroupId']==_0x4f9f7c[_0x230c('0x2f')]&&_0x145cd9['subType']==_0x500230&&(_0x14cb1b(_0x145cd9[_0x230c('0x4a')](),_0x4f09eb)||_0x14cb1b(_0x4f09eb,_0x145cd9[_0x230c('0x4a')]()))){for(const _0x582966 of _0x4f09eb)_0x145cd9[_0x230c('0x43')](_0x582966);return _0x145cd9;}const _0x198a89=_0x4a6f2e(),_0x38255a=_0x9cbb8f['id'],_0x5a8e03=_0x230c('0x50')+_0x500230,_0x3bff00=this[_0x230c('0x9d')]({'id':_0x198a89,'type':_0x5a8e03,'data':_0x4f9f7c,'createdAt':new Date(),'authorId':_0x38255a,'attributes':_0x26e428});for(const _0x2aa6bc of _0x4f09eb)this['_addSuggestionMarker'](_0x5a8e03,_0x198a89,_0x38255a,_0x2aa6bc,_0x359907['getMultiRangeId']());return _0x3bff00;}['markDeletion'](_0x30640c,_0x4e801d=null,_0x236849={}){if(_0x30640c['isCollapsed'])return null;const _0x398f1f=this['editor'][_0x230c('0xa7')][_0x230c('0xac')](_0x230c('0xa3'))['me'],_0x30d619=new _0x526bfe(_0x30640c['start'],_0x30640c[_0x230c('0xd')]);for(const {suggestion:_0x194a77,meta:_0x31294a}of this[_0x230c('0x26')](_0x30d619,_0x230c('0x11e')))if(_0x31294a[_0x230c('0x105')]&&!_0x31294a['isNextTo']){if(_0x194a77[_0x230c('0x42')]){const _0x3e5be6=_0x194a77['getRanges']()[_0x230c('0x3c')](_0x3771ed=>'$graveyard'!=_0x3771ed[_0x230c('0x7b')][_0x230c('0xc4')]);_0x3e5be6['every'](_0x16a386=>_0x30d619[_0x230c('0x23')](_0x16a386,!0x0))&&_0x194a77[_0x230c('0x39')]();if(_0x3e5be6['some'](_0xc520f5=>_0xc520f5[_0x230c('0x23')](_0x30d619,!0x0))){const _0x2e9501=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0xdf'),_0x4e801d,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x2e9501([_0x30d619],null,_0x236849)),null;}}else{const _0x2c1047=_0x30d619[_0x230c('0x98')](_0x194a77[_0x230c('0x48')]());null!==_0x2c1047&&_0x194a77[_0x230c('0x5')]([_0x2c1047],null,_0x236849);}}if(_0x30d619['detach'](),_0x30d619[_0x230c('0x3b')]||_0x230c('0xe1')==_0x30d619[_0x230c('0x7b')]['rootName'])return null;let _0xb5c2f7=null,_0x2b80b4=_0x30d619[_0x230c('0xed')],_0x3c80f2=_0x30d619[_0x230c('0xd')];for(const {suggestion:_0x4a0236,meta:_0x2cd3d4}of this[_0x230c('0x26')](_0x30d619,'deletion'))if(_0x2cd3d4[_0x230c('0x105')]){if(_0x4a0236['isMultiRange']&&this[_0x230c('0xcc')]){let _0x1df326=!0x0;for(const _0x563f85 of _0x4a0236[_0x230c('0x4a')]()){if(_0x563f85[_0x230c('0x23')](_0x30d619,!0x0))return _0x4a0236;_0x30d619[_0x230c('0x23')](_0x563f85)||(_0x1df326=!0x1);}_0x1df326&&_0x4a0236['discard']();}else{const _0x13fadf=_0x4a0236['getFirstRange']();if(_0x13fadf[_0x230c('0x23')](_0x30d619,!0x0)){if(!this[_0x230c('0xcc')]&&_0x2cd3d4[_0x230c('0xd3')])continue;return _0x4a0236;}_0x2b80b4=_0x2b80b4[_0x230c('0x21')](_0x13fadf[_0x230c('0xed')])?_0x2b80b4:_0x13fadf[_0x230c('0xed')],_0x3c80f2=_0x3c80f2[_0x230c('0xdb')](_0x13fadf[_0x230c('0xd')])?_0x3c80f2:_0x13fadf[_0x230c('0xd')],_0xb5c2f7?_0x13fadf[_0x230c('0xed')][_0x230c('0x21')](_0xb5c2f7['getFirstRange']()[_0x230c('0xed')])?(_0xb5c2f7['removeMarkers'](),_0xb5c2f7=_0x4a0236):_0x4a0236['removeMarkers']():_0xb5c2f7=_0x4a0236;}}if(_0xb5c2f7)return this[_0x230c('0x27')](_0xb5c2f7,this[_0x230c('0xe5')][_0x230c('0x8b')](_0x2b80b4,_0x3c80f2)),_0xb5c2f7;{const _0x1895bc=_0x4a6f2e(),_0x153772=this[_0x230c('0xe5')][_0x230c('0x8b')](_0x2b80b4,_0x3c80f2),_0xd0d5ad=_0x398f1f['id'],_0x1717db=_0x4e801d?_0x230c('0x112')+_0x4e801d:_0x230c('0xdf'),_0x287b22=this[_0x230c('0x9d')]({'id':_0x1895bc,'type':_0x1717db,'createdAt':new Date(),'authorId':_0xd0d5ad,'attributes':_0x236849});return this['_addSuggestionMarker'](_0x1717db,_0x1895bc,_0xd0d5ad,_0x153772),_0x287b22;}}[_0x230c('0xb6')](_0x2d8990,_0x47d4db='multi',_0x2cefe3={}){const _0x12a63b=this[_0x230c('0xd5')][_0x230c('0xa7')][_0x230c('0xac')](_0x230c('0xa3'))['me'],_0x3965a9=_0x2d8990[_0x230c('0x10c')](_0x53dde0=>new _0x526bfe(_0x53dde0[_0x230c('0xed')],_0x53dde0[_0x230c('0xd')])),_0x4a8342=new Set();for(const _0x24b8ac of _0x3965a9)for(const {suggestion:_0x49348b,meta:_0x3029b3}of this[_0x230c('0x26')](_0x24b8ac,_0x230c('0x11e')))_0x3029b3[_0x230c('0x105')]&&!_0x3029b3[_0x230c('0xfc')]&&_0x4a8342[_0x230c('0x56')](_0x49348b);for(const _0x3b1825 of _0x4a8342)if(_0x3b1825['isMultiRange']){const _0x51567a=_0x3b1825[_0x230c('0x4a')]();(!_0x3b1825[_0x230c('0xf4')]||!_0x3b1825[_0x230c('0xf4')]['skipNestingCheck'])&&(_0x51567a['every'](_0xeb6b80=>_0x3965a9[_0x230c('0xaa')](_0x3d9dfa=>_0x3d9dfa['containsRange'](_0xeb6b80,!0x0)))&&_0x3b1825['discard']());if(_0x3965a9[_0x230c('0x57')](_0x7c4ca2=>_0x51567a[_0x230c('0xaa')](_0x22fc51=>_0x22fc51['containsRange'](_0x7c4ca2,!0x0)))){const _0x3011b8=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0xdf'),_0x47d4db,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x3011b8(_0x2d8990,null,_0x2cefe3)),null;}}else{const _0x2afe93=_0x3b1825[_0x230c('0x48')]();_0x3965a9['some'](_0x1398a3=>_0x1398a3[_0x230c('0x23')](_0x2afe93,!0x0))&&_0x3b1825[_0x230c('0x39')]();if(_0x3965a9[_0x230c('0x57')](_0x1d1c6e=>_0x2afe93[_0x230c('0x23')](_0x1d1c6e,!0x0))){const _0xf6d050=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0xdf'),_0x47d4db,'accept');return this[_0x230c('0x40')](()=>_0xf6d050(_0x3965a9,null,_0x2cefe3)),null;}}const _0x33b701=this[_0x230c('0x38')]['getSuggestionCallback'](_0x230c('0xdf'),_0x47d4db,_0x230c('0xeb'));let _0x4bfdfb=null;for(const _0x24626c of this[_0x230c('0x5f')]())if(_0x24626c[_0x230c('0x7e')]['id']==_0x12a63b['id']&&_0x24626c[_0x230c('0x95')]&&_0x230c('0xdf')==_0x24626c['type']&&_0x24626c[_0x230c('0x0')]==_0x47d4db&&(_0x33b701(_0x24626c['getRanges'](),_0x3965a9)||_0x33b701(_0x3965a9,_0x24626c[_0x230c('0x4a')]()))){if(_0x4bfdfb){if(_0x24626c[_0x230c('0x58')]&&_0x24626c[_0x230c('0x58')][_0x230c('0xf1')])continue;for(const _0x35a3f9 of _0x24626c[_0x230c('0x4a')]())_0x4bfdfb[_0x230c('0x7a')](_0x35a3f9)||_0x4bfdfb[_0x230c('0x43')](_0x35a3f9);_0x24626c[_0x230c('0x101')]();}else{_0x4bfdfb=_0x24626c;for(const _0x420e4a of _0x3965a9)_0x24626c[_0x230c('0x7a')](_0x420e4a)||_0x24626c[_0x230c('0x43')](_0x420e4a);}}if(_0x4bfdfb)return _0x4bfdfb;_0x4a8342['clear']();for(const _0x4f6d1a of _0x3965a9)for(const {suggestion:_0x4119b7,meta:_0x433b69}of this[_0x230c('0x26')](_0x4f6d1a,'deletion'))_0x433b69[_0x230c('0x105')]&&_0x4a8342['add'](_0x4119b7);for(const _0x5df14c of _0x4a8342){const _0x3bc648=_0x5df14c[_0x230c('0x4a')]();if(!_0x2cefe3||!_0x2cefe3[_0x230c('0x7')]){if(_0x3965a9[_0x230c('0x57')](_0x3be3c3=>_0x3bc648[_0x230c('0xaa')](_0x12e8bf=>_0x12e8bf[_0x230c('0x23')](_0x3be3c3,!0x0))))return _0x5df14c;}(!_0x5df14c[_0x230c('0xf4')]||!_0x5df14c[_0x230c('0xf4')]['skipNestingCheck'])&&(_0x3bc648[_0x230c('0x57')](_0xcfe8f4=>_0x3965a9[_0x230c('0xaa')](_0x2dba47=>_0x2dba47['containsRange'](_0xcfe8f4,!0x0)))&&_0x5df14c[_0x230c('0x39')]());}const _0x1a8895=_0x4a6f2e(),_0x23be1d=_0x12a63b['id'],_0x43d93a='deletion:'+_0x47d4db,_0x1b3e3a=this['_setSuggestionData']({'id':_0x1a8895,'type':_0x43d93a,'createdAt':new Date(),'authorId':_0x23be1d,'attributes':_0x2cefe3});for(const _0x514a51 of _0x3965a9)_0x514a51['detach'](),_0x514a51[_0x230c('0x3b')]||_0x230c('0xe1')==_0x514a51['root'][_0x230c('0xc4')]||this[_0x230c('0x128')](_0x43d93a,_0x1a8895,_0x23be1d,_0x514a51,_0x359907[_0x230c('0x88')]());return _0x1b3e3a;}[_0x230c('0x27')](_0x18a743,_0x2c21e3){const _0x4163f3=_0x18a743[_0x230c('0x87')]();this[_0x230c('0xe5')][_0x230c('0x10b')](_0x2c4e03=>{_0x2c4e03[_0x230c('0x69')](_0x4163f3,{'range':_0x2c21e3});});}[_0x230c('0x35')](_0x313844){const _0x28c12d=_0x313844['id'],_0x1e4123=this[_0x230c('0xd5')][_0x230c('0x62')][_0x230c('0xac')](_0x230c('0x3a'));this[_0x230c('0xef')]['hasCommentThread'](_0x28c12d)||this[_0x230c('0xef')][_0x230c('0xc9')]({'channelId':_0x1e4123,'threadId':_0x28c12d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x233191=this[_0x230c('0xef')][_0x230c('0xf3')](_0x28c12d);_0x233191['unbind'](_0x230c('0x96')),_0x233191[_0x230c('0x96')]=!0x1,_0x313844[_0x230c('0x58')]=_0x233191;}['_checkSuggestionCorrectness'](_0x4191cf,_0x2733ea,_0x1a202f,_0x5eaaeb){if(_0x4191cf[_0x230c('0x1a')]!=_0x2733ea||_0x4191cf[_0x230c('0x0')]!=_0x1a202f||_0x4191cf['creator']['id']!=_0x5eaaeb)throw this[_0x230c('0xd5')][_0x230c('0xe7')](_0x230c('0x100')),new _0x40e29f(_0x230c('0x100'),this);}[_0x230c('0xa2')](_0x108e82,_0x32a853){const _0x48cce8=_0x108e82['getFirstRange']();if(_0x32a853[_0x230c('0x37')](_0x48cce8))_0x108e82[_0x230c('0x101')]();else{if(_0x48cce8[_0x230c('0x23')](_0x32a853)){const _0x219ac6=this[_0x230c('0xe5')][_0x230c('0x3f')](_0x32a853[_0x230c('0xed')][_0x230c('0xad')],_0x230c('0xd'));this[_0x230c('0x27')](_0x108e82,this['_model']['createRange'](_0x48cce8['start'],_0x219ac6));const _0x3b8b76=_0x4a6f2e(),_0x5440dd=_0x108e82[_0x230c('0x80')]['id'],_0x1835fb=_0x108e82['type']+':'+_0x108e82[_0x230c('0x0')];this[_0x230c('0x9d')]({'id':_0x3b8b76,'type':_0x1835fb,'createdAt':new Date(),'authorId':_0x5440dd,'data':_0x108e82[_0x230c('0xa8')],'attributes':_0x108e82[_0x230c('0xf4')]});const _0xc7e6e1=this[_0x230c('0xe5')][_0x230c('0x3f')](_0x32a853[_0x230c('0xd')][_0x230c('0xa9')],_0x230c('0x12')),_0x4c1397=this['_model'][_0x230c('0x8b')](_0xc7e6e1,_0x48cce8[_0x230c('0xd')]);this['_addSuggestionMarker'](_0x1835fb,_0x3b8b76,_0x5440dd,_0x4c1397);}else{if(_0x48cce8[_0x230c('0x2e')](_0x32a853[_0x230c('0xed')])){const _0x438980=this[_0x230c('0xe5')][_0x230c('0x3f')](_0x32a853[_0x230c('0xed')]['nodeBefore'],'end');this[_0x230c('0x27')](_0x108e82,this[_0x230c('0xe5')][_0x230c('0x8b')](_0x48cce8[_0x230c('0xed')],_0x438980));}else{const _0x1f2789=this[_0x230c('0xe5')]['createPositionAt'](_0x32a853[_0x230c('0xd')]['parent'],_0x230c('0x12'));this[_0x230c('0x27')](_0x108e82,this[_0x230c('0xe5')][_0x230c('0x8b')](_0x1f2789,_0x48cce8[_0x230c('0xd')]));}}}}['_rangeIsInLocalUserInsertion'](_0x200e70){for(const {suggestion:_0x56cff7,meta:_0xbd5d5e}of this['_findSuggestions'](_0x200e70,_0x230c('0x11e'))){if(!_0xbd5d5e['isOwn'])continue;const _0x39f086=_0x56cff7[_0x230c('0x4a')]();for(const _0x4d6256 of _0x39f086)if(!_0x200e70['getDifference'](_0x4d6256)[_0x230c('0xf1')])return!0x0;}return!0x1;}[_0x230c('0x107')](_0x6452e9){const _0x3acc60=this[_0x230c('0xd5')][_0x230c('0xa7')]['get'](_0x230c('0xa3'))[_0x230c('0x103')](_0x6452e9);if(!_0x3acc60)throw new _0x40e29f(_0x230c('0x3e'),this);return _0x3acc60;}[_0x230c('0xc8')](_0x5156e6){const _0x2ae113=this[_0x230c('0xd5')]['plugins'][_0x230c('0xac')](_0x230c('0xa3')),_0x4f6d2e=_0x86ca02(_0x230c('0xf6')+_0x5156e6),_0x353a57=_0x2ae113[_0x230c('0x103')](_0x4f6d2e);return _0x353a57||_0x2ae113[_0x230c('0x123')]({'id':_0x4f6d2e,'name':_0x5156e6});}[_0x230c('0x131')](_0x41ef0,_0x1908b9,_0x21a66e,_0x1460d5,_0x5867c2){const _0x6532e7=this['_getAuthorFromId'](_0x1460d5),_0x40d2bd=this[_0x230c('0x38')][_0x230c('0xf5')](_0x41ef0,_0x1908b9,_0x21a66e,_0x6532e7,_0x5867c2,_0x44f959=>this['_updateSuggestionData'](_0x21a66e,{'attributes':_0x44f959}));return this[_0x230c('0x134')](_0x40d2bd,'accept',()=>{this[_0x230c('0x74')](_0x21a66e,{'state':_0x230c('0x9c')});},{'priority':_0x230c('0xff')}),this[_0x230c('0x134')](_0x40d2bd,_0x230c('0x39'),()=>{this[_0x230c('0x74')](_0x21a66e,{'state':_0x230c('0xf0')});},{'priority':_0x230c('0xff')}),this[_0x230c('0x52')]['set'](_0x21a66e,_0x40d2bd),this[_0x230c('0x6')]['set'](_0x40d2bd,'notReady'),_0x40d2bd;}[_0x230c('0x127')](_0x1f1686){const _0x47d19f=_0x1f1686['split'](':');return{'group':_0x47d19f[0x0],'type':_0x47d19f[0x1],'subType':_0x47d19f[_0x230c('0xf1')]>=0x5?_0x47d19f[0x2]:null,'id':_0x47d19f[_0x230c('0xf1')]<0x5?_0x47d19f[0x2]:_0x47d19f[0x3],'authorId':_0x47d19f[_0x230c('0xf1')]<0x5?_0x47d19f[0x3]:_0x47d19f[0x4],'markerCount':0x6==_0x47d19f[_0x230c('0xf1')]?_0x47d19f[0x5]:null};}['_breakSuggestionMarker'](_0x463b4b,_0xc77628,_0xfd44f2){const _0x260bf6=_0x463b4b['getFirstRange'](),_0x2cdaf8=_0x260bf6[_0x230c('0xed')],_0x53b09d=_0x260bf6['end'];this['_setSuggestionRange'](_0x463b4b,this['_model'][_0x230c('0x8b')](_0x2cdaf8,_0xc77628));const _0xda7e54=_0x4a6f2e(),_0x5d18ba=_0x463b4b[_0x230c('0x80')]['id'],_0x5caf13=_0x463b4b[_0x230c('0x1a')]+(_0x463b4b['subType']?':'+_0x463b4b[_0x230c('0x0')]:'');this['_setSuggestionData']({'id':_0xda7e54,'type':_0x5caf13,'createdAt':new Date(),'authorId':_0x5d18ba,'originalSuggestionId':_0x463b4b['id'],'attributes':_0x463b4b[_0x230c('0xf4')],'data':_0x463b4b[_0x230c('0xa8')]}),_0x230c('0x84')==_0x463b4b[_0x230c('0x1a')]&&(_0xfd44f2=this[_0x230c('0xe5')][_0x230c('0x126')](_0xfd44f2[_0x230c('0xa9')])),this[_0x230c('0x128')](_0x5caf13,_0xda7e54,_0x5d18ba,this['_model']['createRange'](_0xfd44f2,_0x53b09d));}[_0x230c('0x26')](_0x3703ed,_0x333653=null){const _0x11897d=[],_0x2771b7=this[_0x230c('0xe5')]['schema'],_0x25f212=this[_0x230c('0xd5')][_0x230c('0xa7')][_0x230c('0xac')](_0x230c('0xa3'))['me'];for(const _0x57ed4a of this[_0x230c('0x5f')]())if(_0x57ed4a[_0x230c('0x95')]&&(!_0x333653||_0x57ed4a['type']==_0x333653))for(const _0x2c11a3 of _0x57ed4a[_0x230c('0x4a')]()){const _0x254a62=_0x3703ed[_0x230c('0xed')][_0x230c('0x37')](_0x2c11a3[_0x230c('0xd')])||_0x3703ed[_0x230c('0xd')][_0x230c('0x37')](_0x2c11a3[_0x230c('0xed')]);if(_0x254a62||_0x3703ed[_0x230c('0x98')](_0x2c11a3)){const _0x366d31=_0x3703ed[_0x230c('0x23')](_0x2c11a3)&&Bt(_0x2771b7,_0x2c11a3['start'],_0x3703ed),_0x27e754=_0x2c11a3['containsRange'](_0x3703ed)&&Bt(_0x2771b7,_0x3703ed[_0x230c('0xed')],_0x2c11a3);_0x11897d[_0x230c('0x3d')]({'suggestion':_0x57ed4a,'meta':{'isOwn':_0x25f212==_0x57ed4a[_0x230c('0x7e')],'isNextTo':_0x254a62,'isInsideObject':_0x366d31,'containsRangeInObject':_0x27e754}});break;}}return _0x11897d;}[_0x230c('0x128')](_0x17bc60,_0x6e40e8,_0x593d98,_0x51ebd5,_0xbec0f7){this[_0x230c('0xe5')]['change'](_0x2bdf0d=>{let _0x404fc3='suggestion:'+_0x17bc60+':'+_0x6e40e8+':'+_0x593d98;_0xbec0f7&&(_0x404fc3=_0x404fc3+':'+_0xbec0f7),_0x2bdf0d['addMarker'](_0x404fc3,{'range':_0x51ebd5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x400057){const _0x56921b=_0x400057[_0x230c('0x5c')],_0x1ff439=_0x400057[_0x230c('0x9a')];_0x400057[_0x230c('0x5c')]=null,null!=_0x56921b&&(_0x56921b[_0x230c('0x9a')]=null),_0x400057[_0x230c('0x9a')]=null,null!=_0x1ff439&&(_0x1ff439[_0x230c('0x5c')]=null),_0x230c('0xc0')==this[_0x230c('0x6')][_0x230c('0xac')](_0x400057)&&(this['_suggestionState'][_0x230c('0xfa')](_0x400057,_0x230c('0xe8')),this['fire'](_0x230c('0x53'),_0x400057,_0x56921b,_0x1ff439));}[_0x230c('0x9d')](_0x578dc4){const _0x3f64aa=_0x578dc4['id'],_0x5a95a8=this[_0x230c('0x7d')](_0x578dc4);if(this[_0x230c('0x47')]&&this[_0x230c('0x47')]['addSuggestion']){const _0x31349d=this[_0x230c('0xd5')][_0x230c('0xa7')]['get'](_0x230c('0x6e')),_0x4eabd5=_0x5a95a8['hasComments'],_0x2bf682=_0x5a95a8[_0x230c('0x0')]?_0x5a95a8[_0x230c('0x1a')]+':'+_0x5a95a8[_0x230c('0x0')]:_0x5a95a8[_0x230c('0x1a')],_0x26e8e2=this[_0x230c('0xd5')][_0x230c('0x82')],_0xa9e1c6=_0x31349d[_0x230c('0x56')](_0x15ad70(_0x26e8e2,'PENDING_ACTION_SUGGESTION')),_0x2c4e72={'id':_0x3f64aa,'type':_0x2bf682,'hasComments':_0x4eabd5,'data':_0x578dc4[_0x230c('0xa8')]||null,'originalSuggestionId':_0x578dc4[_0x230c('0x59')]||null,'attributes':_0x5a95a8['attributes']};this[_0x230c('0x47')][_0x230c('0xe4')](_0x2c4e72)['then'](_0x80ee12=>{_0x5a95a8[_0x230c('0xb8')]=!0x0,_0x31349d['remove'](_0xa9e1c6),_0x80ee12&&_0x80ee12[_0x230c('0x2d')]&&(this[_0x230c('0x52')]['get'](_0x3f64aa)[_0x230c('0x2d')]=_0x80ee12[_0x230c('0x2d')]);})[_0x230c('0x3')](_0x5d13c6=>{throw _0x3ba762('error-saving-suggestion-data-suggestion-discarded'),this[_0x230c('0xd5')][_0x230c('0x115')][_0x230c('0xbc')]({'isUndoable':!0x1},()=>{_0x5a95a8['discard']();}),_0x5a95a8[_0x230c('0x15')](),this['_suggestions'][_0x230c('0x130')](_0x5a95a8['id']),this[_0x230c('0x6')][_0x230c('0x130')](_0x5a95a8),_0x5d13c6;});}return _0x5a95a8;}[_0x230c('0x74')](_0x1a6765,_0x4a7416){const _0x4b4c31=this[_0x230c('0xd5')]['plugins'][_0x230c('0xac')](_0x230c('0x6e')),_0x2cde69=this[_0x230c('0xd9')](_0x1a6765);if(this[_0x230c('0x47')]&&this[_0x230c('0x47')][_0x230c('0x2c')]){if(_0x2cde69[_0x230c('0xb8')]){const _0x18422a=_0x4b4c31['add'](_0x15ad70(this[_0x230c('0xd5')][_0x230c('0x82')],'PENDING_ACTION_SUGGESTION'));this[_0x230c('0x47')]['updateSuggestion'](_0x1a6765,_0x4a7416)['then'](()=>{_0x4b4c31[_0x230c('0x10a')](_0x18422a);});}else _0x2cde69['on'](_0x230c('0x8d'),()=>{this[_0x230c('0x74')](_0x1a6765,_0x4a7416);});}}[_0x230c('0x68')](_0x2bc018){if(!this[_0x230c('0x47')]||!this[_0x230c('0x47')][_0x230c('0xd9')])throw new _0x40e29f(_0x230c('0x7c'),this);return this['_adapter'][_0x230c('0xd9')](_0x2bc018);}[_0x230c('0xe3')](_0x565774){const {id:_0xe47eef,type:_0x42b2ed,subType:_0x167b9e,authorId:_0x2a4d45}=this[_0x230c('0x127')](_0x565774),_0x27e349=this['_suggestions']['get'](_0xe47eef)||this[_0x230c('0x131')](_0x42b2ed,_0x167b9e,_0xe47eef,_0x2a4d45,{});switch(this[_0x230c('0x12a')](_0x27e349,_0x42b2ed,_0x167b9e,_0x2a4d45),this[_0x230c('0x6')][_0x230c('0xac')](_0x27e349)){case _0x230c('0x31'):this[_0x230c('0x68')](_0xe47eef)['then'](_0x1e678f=>{let _0x2522ee=Promise['resolve']();_0x1e678f[_0x230c('0x118')]&&(_0x2522ee=this[_0x230c('0xef')]['fetchCommentThread']({'channelId':this[_0x230c('0xd5')][_0x230c('0x62')][_0x230c('0xac')](_0x230c('0x3a')),'threadId':_0xe47eef})),_0x2522ee['then'](()=>{this[_0x230c('0x7d')](_0x1e678f)[_0x230c('0xb8')]=!0x0;});}),this[_0x230c('0x6')]['set'](_0x27e349,_0x230c('0x6b'));break;case _0x230c('0xe8'):this[_0x230c('0x74')](_0xe47eef,{'state':'open'});case _0x230c('0xbb'):this[_0x230c('0x6')][_0x230c('0xfa')](_0x27e349,_0x230c('0xc0')),this[_0x230c('0xbf')](_0x230c('0x9e'),_0x27e349);break;case _0x230c('0xc0'):this[_0x230c('0xbf')]('suggestionChanged',_0x27e349);}return _0x27e349[_0x230c('0x114')](_0x565774),_0x27e349;}[_0x230c('0x119')](_0x1c6675){const _0x2922c4=Array[_0x230c('0x64')](_0x1c6675)['filter'](_0x59a78c=>!_0x59a78c[_0x230c('0x42')]),_0x5ad7ae=this[_0x230c('0x5f')]({'skipNotAttached':!0x0})[_0x230c('0x3c')](_0x2e8558=>!_0x2e8558[_0x230c('0x42')]),_0x28d317=_0x5ad7ae[_0x230c('0x3c')](_0x21bd2b=>!_0x1c6675['has'](_0x21bd2b)),_0x545dc7=new Map(_0x5ad7ae[_0x230c('0x10c')](_0xea60c2=>[_0xea60c2,this[_0x230c('0x38')][_0x230c('0x136')](_0xea60c2[_0x230c('0x1a')],_0xea60c2['subType'],_0x230c('0x8a'))])),_0x247e6e=new Map(_0x5ad7ae[_0x230c('0x10c')](_0x2d677c=>[_0x2d677c,_0x2d677c[_0x230c('0x48')]()])),_0x759bf4=new Set(),_0x49aa88=new Set();for(let _0x467a49=0x0;_0x467a49<_0x2922c4['length'];_0x467a49++)_0x591cc6(_0x2922c4[_0x467a49],_0x2922c4,_0x467a49+0x1);for(let _0x12217d=0x0;_0x12217d<_0x2922c4['length'];_0x12217d++)_0x591cc6(_0x2922c4[_0x12217d],_0x28d317,0x0);for(let _0x3af887=0x0;_0x3af887<_0x2922c4[_0x230c('0xf1')];_0x3af887++){const _0x905deb=_0x2922c4[_0x3af887];!_0x49aa88['has'](_0x905deb)&&_0x905deb[_0x230c('0x5c')]&&(_0x905deb['previous'][_0x230c('0x9a')]===_0x905deb&&(_0x905deb[_0x230c('0x5c')]['next']=null),_0x905deb[_0x230c('0x5c')]=null),!_0x759bf4['has'](_0x905deb)&&_0x905deb[_0x230c('0x9a')]&&(_0x905deb[_0x230c('0x9a')][_0x230c('0x5c')]===_0x905deb&&(_0x905deb[_0x230c('0x9a')]['previous']=null),_0x905deb[_0x230c('0x9a')]=null);}function _0x591cc6(_0x898657,_0x4e4663,_0x48112b){for(let _0x2e8c37=_0x48112b;_0x2e8c37<_0x4e4663[_0x230c('0xf1')];_0x2e8c37++){const _0x5371e7=_0x1f5dac(_0x898657,_0x4e4663[_0x2e8c37]);_0x5371e7&&(_0x5371e7[0x0]['next']=_0x5371e7[0x1],_0x5371e7[0x1][_0x230c('0x5c')]=_0x5371e7[0x0],_0x759bf4[_0x230c('0x56')](_0x5371e7[0x0]),_0x49aa88[_0x230c('0x56')](_0x5371e7[0x1]));}}function _0x1f5dac(_0x234c7d,_0x599ff5){if(_0x234c7d['author']['id']!==_0x599ff5[_0x230c('0x7e')]['id'])return null;const _0xaf793c=_0x545dc7[_0x230c('0xac')](_0x234c7d)(_0x234c7d,_0x599ff5,_0x247e6e[_0x230c('0xac')](_0x234c7d),_0x247e6e[_0x230c('0xac')](_0x599ff5));if(!_0xaf793c)return null;return _0x545dc7[_0x230c('0xac')](_0x599ff5)(_0x234c7d,_0x599ff5,_0x247e6e['get'](_0x234c7d),_0x247e6e['get'](_0x599ff5))?_0xaf793c[0x1]['commentThread']&&_0xaf793c[0x1]['commentThread']['length']?null:_0xaf793c:null;}}[_0x230c('0x12f')](_0x2686dd){const _0x300e88=Array[_0x230c('0x64')](_0x2686dd),_0x10b28b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5f3da7=_0x10b28b[_0x230c('0x3c')](_0x6ce6c5=>!_0x2686dd[_0x230c('0x124')](_0x6ce6c5)),_0x20675a=new Map(_0x300e88[_0x230c('0x10c')](_0x16395c=>[_0x16395c,this['_suggestionFactory'][_0x230c('0x136')](_0x16395c['type'],_0x16395c['subType'],_0x230c('0xeb'))])),_0x308cb5=new Map(_0x10b28b[_0x230c('0x10c')](_0x564a9c=>[_0x564a9c,_0x564a9c[_0x230c('0x4a')]()]));for(let _0x1d8785=0x0;_0x1d8785<_0x300e88[_0x230c('0xf1')];_0x1d8785++){if(_0x48611d(this,_0x300e88[_0x1d8785],_0x300e88,_0x1d8785+0x1))return!0x0;}for(let _0x4dfadf=0x0;_0x4dfadf<_0x300e88['length'];_0x4dfadf++){if(_0x48611d(this,_0x300e88[_0x4dfadf],_0x5f3da7,0x0))return!0x0;}return!0x1;function _0x48611d(_0x71e9bf,_0x48628f,_0x413700,_0x18d9d9){for(let _0x104d31=_0x18d9d9;_0x104d31<_0x413700[_0x230c('0xf1')];_0x104d31++){const _0x3d6ade=_0x413700[_0x104d31];if(_0x3d6ade[_0x230c('0x1a')]!==_0x48628f[_0x230c('0x1a')]||_0x3d6ade['author']['id']!==_0x48628f[_0x230c('0x7e')]['id']||_0x3d6ade[_0x230c('0x0')]!==_0x48628f[_0x230c('0x0')])continue;const _0x9a8874=_0x20675a[_0x230c('0xac')](_0x48628f),_0x2f1c0d=_0x308cb5[_0x230c('0xac')](_0x48628f),_0x43719d=_0x308cb5[_0x230c('0xac')](_0x3d6ade),_0x45b41b=_0x48628f[_0x230c('0x58')]&&_0x48628f[_0x230c('0x58')]['length'],_0x3f0be3=_0x3d6ade[_0x230c('0x58')]&&_0x3d6ade[_0x230c('0x58')][_0x230c('0xf1')];if(!_0x45b41b&&_0x9a8874(_0x43719d,_0x2f1c0d))return _0x71e9bf[_0x230c('0x22')](_0x3d6ade,_0x48628f),_0x308cb5[_0x230c('0x130')](_0x48628f),!0x0;if(!_0x3f0be3&&_0x9a8874(_0x2f1c0d,_0x43719d))return _0x71e9bf[_0x230c('0x22')](_0x48628f,_0x3d6ade),_0x308cb5[_0x230c('0x130')](_0x3d6ade),!0x0;}return!0x1;}}[_0x230c('0x22')](_0x215a2a,_0x27fc5e){if(_0x215a2a[_0x230c('0x42')])for(const _0x3e7fa1 of _0x27fc5e[_0x230c('0x4a')]())_0x215a2a[_0x230c('0x43')](_0x3e7fa1);else{const _0x36b8a1=_0x27fc5e[_0x230c('0x48')]()[_0x230c('0xd')];this[_0x230c('0x27')](_0x215a2a,this[_0x230c('0xe5')][_0x230c('0x8b')](_0x215a2a[_0x230c('0x48')]()[_0x230c('0xed')],_0x36b8a1));}_0x27fc5e[_0x230c('0x101')]();}}class Dt{constructor(_0x3aed8b){this[_0x230c('0x10')]=_0x3aed8b,this['_model']=_0x3aed8b[_0x230c('0x115')],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this[_0x230c('0x113')]();}[_0x230c('0xf5')](_0x5b67d8,_0x30cc20,_0x2d5a2c,_0x1f4874,_0x26edd5,_0x10fb88){return new _0x359907(this[_0x230c('0xe5')],{'type':_0x5b67d8,'subType':_0x30cc20,'id':_0x2d5a2c,'author':_0x1f4874,'creator':_0x1f4874,'attributes':_0x26edd5,'onAttributesChange':_0x10fb88,'onAccept':(..._0xc78e9d)=>this[_0x230c('0x136')](_0x5b67d8,_0x30cc20,'accept')(..._0xc78e9d),'onDiscard':(..._0x2c77c0)=>this[_0x230c('0x136')](_0x5b67d8,_0x30cc20,'discard')(..._0x2c77c0)});}[_0x230c('0xbd')](_0x2f8cd3,_0x2bab21,_0x39679e,_0x5280d5){const _0x1bc1ec=_0x2f8cd3+':'+_0x2bab21+':'+_0x39679e;this[_0x230c('0x6c')][_0x230c('0xfa')](_0x1bc1ec,_0x5280d5);}['getSuggestionCallback'](_0x5394fc,_0x10bfa1,_0x389d00){const _0x4dabd3=_0x5394fc+':'+_0x10bfa1+':'+_0x389d00;return this[_0x230c('0x6c')]['get'](_0x4dabd3)||this['_defaultCallbacks']['get'](_0x5394fc+':'+_0x389d00);}[_0x230c('0x113')](){const _0x4e42e5=()=>{},_0x3a7f10=_0x1335d6=>{_0x1335d6[_0x230c('0x18')]((_0x2a8c05,_0xfb7a10)=>_0x2a8c05[_0x230c('0xed')][_0x230c('0x21')](_0xfb7a10[_0x230c('0xed')])?0x1:-0x1),this[_0x230c('0xe5')][_0x230c('0x10b')](_0x5924e5=>{for(const _0xa34aaf of _0x1335d6){let _0x4d1200;_0x4d1200=_0xa34aaf['end'][_0x230c('0xaf')]&&_0xa34aaf['end'][_0x230c('0xa9')]==_0xa34aaf['start'][_0x230c('0x72')]?_0x5924e5['createSelection'](_0xa34aaf[_0x230c('0xed')][_0x230c('0x72')],'on'):_0x5924e5[_0x230c('0xd8')](_0xa34aaf),this['_model']['deleteContent'](_0x4d1200,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4dbcd6=(_0x1a1799,_0x29defb)=>{this[_0x230c('0xe5')]['change'](_0x3f05ac=>{const {commandName:_0x30f181,commandParams:_0x2662e1=[]}=_0x29defb,_0x2a1cb4=_0x1a1799[_0x230c('0x10c')](_0x2bb4db=>(_t(_0x2bb4db)&&(_0x2bb4db=this[_0x230c('0xe5')][_0x230c('0x8b')](_0x2bb4db[_0x230c('0xd')])),_0x2bb4db))[_0x230c('0x3c')](_0x4aafd0=>_0x230c('0xe1')!==_0x4aafd0['root'][_0x230c('0xc4')]);if(_0x2a1cb4[_0x230c('0xf1')]<0x1)return;const _0x5498fd=Array[_0x230c('0x64')](this[_0x230c('0xe5')]['document']['selection'][_0x230c('0x4a')]())[_0x230c('0x10c')](_0x1d3a36=>_0x526bfe['fromRange'](_0x1d3a36));_0x3f05ac[_0x230c('0x12d')](_0x2a1cb4);for(const _0x2396ab of this[_0x230c('0x10')][_0x230c('0x45')][_0x230c('0x45')]())_0x2396ab['refresh']();_0x2662e1[_0x230c('0x3d')]({'forceDefaultExecution':!0x0}),this[_0x230c('0x10')]['execute'](_0x30f181,..._0x2662e1);const _0xd9ab7b=_0x5498fd[_0x230c('0x3c')](_0x485881=>'$graveyard'!=_0x485881[_0x230c('0x7b')][_0x230c('0xc4')]);_0xd9ab7b[_0x230c('0xf1')]>0x0&&_0x3f05ac[_0x230c('0x12d')](_0xd9ab7b);for(const _0x4be120 of _0x5498fd)_0x4be120['detach']();});},_0x172dda=(_0x3f9d49,_0x291030)=>0x1==_0x3f9d49[_0x230c('0xf1')]&&0x1==_0x291030[_0x230c('0xf1')]&&_0x3f9d49[0x0][_0x230c('0xd')][_0x230c('0x37')](_0x291030[0x0]['start']),_0x345909=(_0x32b137,_0xc48d5e,_0x249c48,_0x236239)=>xt(_0x32b137,_0xc48d5e,_0x249c48,_0x236239,this[_0x230c('0xe5')])?[_0x32b137,_0xc48d5e]:xt(_0xc48d5e,_0x32b137,_0x236239,_0x249c48,this[_0x230c('0xe5')])?[_0xc48d5e,_0x32b137]:null;this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0xc2'),_0x4e42e5),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x86'),_0x3a7f10),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x51'),_0x172dda),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x20'),_0x345909),this[_0x230c('0xe')][_0x230c('0xfa')]('deletion:accept',_0x3a7f10),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x89'),_0x4e42e5),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0xd0'),_0x172dda),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x12b'),_0x345909),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x30'),_0x4dbcd6),this[_0x230c('0xe')]['set'](_0x230c('0x8'),_0x4e42e5),this['_defaultCallbacks'][_0x230c('0xfa')](_0x230c('0xb1'),_0x172dda),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x85'),_0x4e42e5),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x7f'),_0x4dbcd6),this[_0x230c('0xe')]['set'](_0x230c('0xc7'),_0x4e42e5),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x5e'),_0x172dda),this[_0x230c('0xe')]['set'](_0x230c('0xde'),_0x4e42e5);}}function Bt(_0x5c5d5c,_0x34bff3,_0x3a4933){for(const _0xf7ca1e of _0x34bff3[_0x230c('0xa9')][_0x230c('0x34')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xf7ca1e[_0x230c('0x7b')]==_0xf7ca1e)return!0x1;if(!_0x3a4933['containsItem'](_0xf7ca1e))return!0x1;if(_0x5c5d5c[_0x230c('0x77')](_0xf7ca1e)||_0x5c5d5c['isLimit'](_0xf7ca1e))return!0x0;}return!0x1;}function _t(_0x24a691){return _0x24a691[_0x230c('0xd')][_0x230c('0xa9')]==_0x24a691[_0x230c('0xed')][_0x230c('0x72')]&&_0x24a691[_0x230c('0xd')][_0x230c('0x1c')];}function Mt(_0x450906,_0x41a67c,_0x120a80,_0x1ddb9b){const _0x43027d=_0x5c9f7d=>!_0x5c9f7d[_0x230c('0xf2')]['is']('$textProxy')&&!_0x1ddb9b[_0x230c('0x77')](_0x5c9f7d[_0x230c('0xf2')]),_0x3669a5=_0x450906[_0x230c('0xed')][_0x230c('0x12e')](_0x43027d),_0x263b0c=_0x450906[_0x230c('0xd')]['getLastMatchingPosition'](_0x43027d,{'direction':_0x230c('0x1f')});return(!_0x450906['start'][_0x230c('0x37')](_0x3669a5)||!_0x450906[_0x230c('0xd')][_0x230c('0x37')](_0x263b0c))&&(_0x3669a5[_0x230c('0x21')](_0x263b0c)?_0x120a80[_0x230c('0x69')](_0x41a67c,{'range':_0x120a80['createRange'](_0x3669a5,_0x263b0c)}):_0x120a80[_0x230c('0x4e')](_0x41a67c),!0x0);}function $t(_0x38bca1){return _0x86ca02(_0x38bca1);}function Nt(_0xbc1e82){const _0x4a98b3=_0xbc1e82['start'][_0x230c('0x72')];return _0x4a98b3&&_0x4a98b3['is'](_0x230c('0xb0'));}function Rt(_0x3bb6cd,_0x722bf6){const _0x598154=_0x722bf6[_0x230c('0x91')][_0x230c('0x77')](_0x3bb6cd)||_0x722bf6[_0x230c('0x91')][_0x230c('0xee')](_0x3bb6cd);return _0x722bf6[_0x230c('0x8b')](_0x722bf6[_0x230c('0x3f')](_0x3bb6cd,'before'),_0x598154?_0x722bf6['createPositionAfter'](_0x3bb6cd):_0x722bf6[_0x230c('0x3f')](_0x3bb6cd,_0x230c('0xd')));}function xt(_0x198230,_0x3c3f3d,_0x112436,_0x4c43b2,_0x37f7ee){if(_0x112436[_0x230c('0xd')][_0x230c('0x37')](_0x4c43b2['start']))return!0x0;if(_0x198230['type']!=_0x3c3f3d[_0x230c('0x1a')])return!0x1;if(!_0x112436['end'][_0x230c('0xbe')](_0x4c43b2['start']))return!0x1;const _0x550453=_0x37f7ee[_0x230c('0x8b')](_0x112436['end'],_0x4c43b2[_0x230c('0xed')])[_0x230c('0x75')]();for(const _0xd63b85 of _0x550453)if([_0x230c('0x6a'),'elementEnd'][_0x230c('0xd1')](_0xd63b85[_0x230c('0x1a')])&&_0x37f7ee['schema'][_0x230c('0xa1')](_0xd63b85[_0x230c('0xf2')]))return!0x1;return!0x0;}
23
+ const _0x53be=['discardAllSuggestions','authorName','sort','addSuggestionData','_getSuggestionData','buildSuggestion','setAttribute','never','createRangeIn','getAncestors','track-changes-command-not-found','creator','fromCharCode','insertion:','originalSuggestionId','commands','isDocumentOperation','ck-suggestion-marker--active','deletion:chain','ready','getShiftedBy','createPositionAfter','addComment','getSuggestion','map','getCommentThread','markers','track-changes-adapter-missing-getsuggestion','dataReady','open','moveTargetPosition','markerReady','addHighlight','formatInline:','addMarker','requires','_suggestionFactory','init','enableCommand','markInsertion','activeMarkers','isOwn','enqueueChange','data-suggestion','getIntersection','updateMarker','isLimit','getWalker','insertion','dataDowncast','nodeBefore','consumable','after','_enabledCommands','isCollapsed','createPositionAt','markerName','splice','isIntersectingWithRange','push','_removeSuggestion','elementEnd','next','schema','subType','_findSuggestions','_suggestionState','_suggestions','targetPosition','formatBlock:','join','set','skipNestingCheck','_mergeNestedSuggestions','addUser','deleteContent','split','_setSuggestionData','author','markerNameToElements','fromRange','isNextTo','deletion:join','createPositionBefore','applyOperation','suggestionChanged','TrackChangesEditing','splitPosition','isBlock','discardSuggestion','fire','removeComment','data','removeMarker:suggestion:formatBlock','_handleNewSuggestionMarker','removed','formatBlock:chain','update:suggestion','insertion:discard','getItems','formatBlock:accept','formatBlock:join','suggestion','authoredAt','change:_saved','editingDowncast','isSelectable','discard','item','batch','formatBlock','isBefore','end','previous','every','_commentsRepository','removeClass','head','stop','pluginName','PENDING_ACTION_SUGGESTION','document','addMarkerName','start','ck-suggestion-marker-','dataToMarker','acceptSelectedSuggestions','isUndo','move','_model','hasSuggestion','createRange','setTo','_addSuggestionMarker','isLocal','_onDiscard','markMultiRangeDeletion','accepted','getMultiRangeId','deletion:accept','Users','markerToHighlight','insertion:chain','includes','hasComments','trackChanges','insertContent','getCustomProperty','insertion:accept','plugins','trackChanges.trackFormatChanges','default','isRemovable','resolve','trackChanges.mergeNestedSuggestions','normal','reconvertMarker','from','updateSuggestion','group','then','selection','differ','change:data','_setSuggestionRange','isMultiRange','rootName','writer','isAfter','createdAt','showSuggestionHighlights','formatInline','insertion:join','multi','_trackFormatChanges','_checkSuggestionCorrectness','PendingActions','value','suggestionLoaded','addSuggestion','newRange','filter','addRange','toViewElement','getSuggestions','commandName','markMultiRangeBlockFormat','backward','editor','values','removeMarker','getRanges','high','formatGroupId','options','type','rejected','setSelection','get','_saved','track-changes-suggestion-not-found','chain','$graveyard','change:activeMarkers','getAttribute','isInsideObject','_isForcedDefaultExecutionBlock','remove','collaboration.channelId','CommentsRepository','catch','createSelection','formatInline:join','getLastMatchingPosition','bindElementToMarker','insert','formatInline:chain','createElement','isExternal','getSuggestionCallback','getFirstRange','getAllAdjacentSuggestions','getRange','isAtStart','size','delete','some','adapter','name','upcast','getNearestSelectionRange','element','_refreshSuggestionsChain','_getAuthorFromId','getFirstMarker','range','@external','getChanges','multipleBlocks','isAtEnd','for','_customCallbacks','nodeAfter','conversion','_splitMarkerName','position','unbindElementFromMarkerName','forward','hasCommentThread','registerPostFixer','acceptSuggestion','_registerDefaultCallbacks','stopListening','execute','trackChangesCommand','discardSelectedSuggestions','_defaultCallbacks','has','substr','containerElement','length','clone','fetchCommentThread','locale','forceDefaultExecution','getMarkers','enableReadOnlyMode','listenTo','oldRange','containsRangeInObject','ck-suggestion-marker','always','formatBlock:discard','markInlineFormat','$textProxy','change','root','_adapter','track-changes-user-not-found','removeMarkers','deletion','_getExternalAuthor','getUser','howMany','notReady','marker-count','parent','_editor','deletion:','clear','config','lowest','addMarker:suggestion:formatBlock','low','containsItem','_cutOutSuggestionMarker','mapper','getChangedMarkers','widget','containsPosition','consume','detach','isInContent','isObject','commentThread','_addThreadToSuggestion','_joinWithAdjacentSuggestions','_updateSuggestionData','getDifference','accept','return','containsRange','_joinSuggestions','markMultiRangeInsertion','isEqual','add','suggestion:','_rangeIsInLocalUserInsertion','removeAttribute','markerToData','addMarker:suggestion','external:','model','attributes'];(function(_0x59eef6,_0x53be2b){const _0x3fa20f=function(_0xba7626){while(--_0xba7626){_0x59eef6['push'](_0x59eef6['shift']());}};_0x3fa20f(++_0x53be2b);}(_0x53be,0x1de));const _0x3fa2=function(_0x59eef6,_0x53be2b){_0x59eef6=_0x59eef6-0x0;let _0x3fa20f=_0x53be[_0x59eef6];return _0x3fa20f;};import{Plugin as _0x25603d,PendingActions as _0x2eb2c6}from'ckeditor5/src/core';import{LiveRange as _0x526301}from'ckeditor5/src/engine';import{CKEditorError as _0xfcec74,uid as _0x33d3f5,priorities as _0x51a381,logWarning as _0xb801fd}from'ckeditor5/src/utils';import{toWidget as _0x185c41}from'ckeditor5/src/widget';import{Users as _0x53aedd,hashObject as _0x1ebb43}from'ckeditor5-collaboration/src/collaboration-core';import _0x3dac2b from'./commands/trackchangescommand';import _0x142e54 from'./commands/acceptsuggestioncommand';import _0x246e5f from'./commands/discardsuggestioncommand';import _0x433d0f from'./commands/executeonallsuggestionscommand';import _0x2cd40b from'./commands/executeonselectedsuggestionscommand';import _0x4a4cae from'./suggestion';import _0x3a5787 from'./suggestiondescriptionfactory';import _0xeacd7c from'./integrations/alignment';import _0x5e3c3e from'./integrations/basicstyles';import _0x47877a from'./integrations/blockquote';import _0x57cb6d from'./integrations/ckbox';import _0xf666ec from'./integrations/codeblock';import _0x5d84c2 from'./integrations/comments';import _0xda6404 from'./integrations/deletecommand';import _0x10c7f1 from'./integrations/documentlist';import _0x30e1aa from'./integrations/entercommand';import _0xe8af2c from'./integrations/findandreplace';import _0x262bd5 from'./integrations/font';import _0x3a5b51 from'./integrations/formatpainter';import _0x266b71 from'./integrations/heading';import _0x577a4b from'./integrations/highlight';import _0x1bc1ed from'./integrations/horizontalline';import _0xff8fec from'./integrations/htmlembed';import _0xa06a7 from'./integrations/image';import _0x711b6b from'./integrations/imagereplace';import _0x342f8c from'./integrations/importword';import _0x214644 from'./integrations/indent';import _0x4fba3d from'./integrations/inputcommand';import _0x48ae9f from'./integrations/link';import _0x25753d from'./integrations/list';import _0x1da5cc from'./integrations/listproperties';import _0x29d6f3 from'./integrations/mediaembed';import _0x4ddc61 from'./integrations/mention';import _0x5cbb2c from'./integrations/pagebreak';import _0x1ddebc from'./integrations/paragraph';import _0x53dc95 from'./integrations/removeformat';import _0x3e23bc from'./integrations/restrictededitingmode';import _0x157e3e from'./integrations/shiftentercommand';import _0x566384 from'./integrations/standardeditingmode';import _0x126898 from'./integrations/style';import _0x47cf9f from'./integrations/table';import _0x31b417 from'./integrations/tablemergesplit';import _0x15b334 from'./integrations/tableheadings';import _0x51e29f from'./integrations/tableclipboard';import _0xcdbb3f from'./integrations/tablecolumnresize';import _0x1cf907 from'./integrations/template';import _0x1d62a9 from'./integrations/tableofcontents';import _0x3d8525 from'./integrations/title';import _0x5778ad from'./integrations/undo';import{getTranslation as _0x10d468}from'./utils/common-translations';import _0x2903dc from'./integrations/tablecaption';import _0x3e2fad from'./integrations/documentlistproperties';import _0x513f64 from'./integrations/tableproperties';export default class p extends _0x25603d{static get[_0x3fa2('0xcd')](){return[_0x3fa2('0x37'),_0x53aedd,_0x2eb2c6,_0xeacd7c,_0x5e3c3e,_0x47877a,_0x57cb6d,_0xf666ec,_0x5d84c2,_0xda6404,_0x10c7f1,_0x3e2fad,_0x30e1aa,_0xe8af2c,_0x262bd5,_0x3a5b51,_0x266b71,_0x577a4b,_0x1bc1ed,_0xff8fec,_0xa06a7,_0x711b6b,_0x342f8c,_0x214644,_0x4fba3d,_0x48ae9f,_0x25753d,_0x1da5cc,_0x29d6f3,_0x4ddc61,_0x5cbb2c,_0x1ddebc,_0x53dc95,_0x3e23bc,_0x157e3e,_0x566384,_0x126898,_0x47cf9f,_0x31b417,_0x15b334,_0x2903dc,_0x51e29f,_0xcdbb3f,_0x1d62a9,_0x513f64,_0x1cf907,_0x3d8525,_0x5778ad];}static get[_0x3fa2('0x121')](){return _0x3fa2('0x100');}constructor(_0x452075){function _0x30a00c(_0x5369e9){return _0x5369e9['map'](_0xfa8903=>String[_0x3fa2('0xb6')](_0xfa8903))['join']('');}super(_0x452075),this[_0x3fa2('0xf1')]('activeMarkers',[]),this['on'](_0x3fa2('0x31'),(_0x55c431,_0x5d4a2b,_0x486ef9,_0x4435ab)=>{this[_0x3fa2('0x12b')]['change'](()=>{for(const _0x193c70 of[..._0x4435ab,..._0x486ef9])this[_0x3fa2('0x12b')][_0x3fa2('0xc4')][_0x3fa2('0x67')](_0x193c70)&&_0x452075['editing'][_0x3fa2('0x2')](_0x193c70);});}),this['_descriptionFactory']=new _0x3a5787(this[_0x3fa2('0x22')][_0x3fa2('0xa8')][_0x3fa2('0xe9')],this[_0x3fa2('0x22')]['locale']),this[_0x3fa2('0x7b')]=null,this[_0x3fa2('0xce')]=new Dt(this['editor']),this[_0x3fa2('0xed')]=new Map(),this['_commentsRepository']=_0x452075['plugins'][_0x3fa2('0x2c')]('CommentsRepository'),this[_0x3fa2('0xdf')]=new Set(),this[_0x3fa2('0x12b')]=this[_0x3fa2('0x22')][_0x3fa2('0xa8')],this[_0x3fa2('0xec')]=new WeakMap(),this[_0x3fa2('0x34')]=!0x1,_0x452075[_0x3fa2('0x88')]['define'](_0x3fa2('0x140'),_0x3fa2('0x141')),this['_trackFormatChanges']=_0x452075[_0x3fa2('0x88')]['get']('trackChanges.trackFormatChanges'),_0x452075[_0x3fa2('0x88')]['define'](_0x3fa2('0x0'),!0x0),this[_0x3fa2('0xf3')]=_0x452075[_0x3fa2('0x88')][_0x3fa2('0x2c')]('trackChanges.mergeNestedSuggestions'),this[_0x3fa2('0x64')]=new _0x3dac2b(_0x452075,this[_0x3fa2('0xdf')]),this[_0x30a00c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x30a00c([0x34,0x30,0x34,0x36,0x31,0x30,0x34,0x36]);}[_0x3fa2('0xcf')](){const _0x3133ac=this[_0x3fa2('0x22')];_0x3133ac['conversion'][_0x3fa2('0x56')](_0x3fa2('0x113'))[_0x3fa2('0x137')]({'model':_0x3fa2('0x110'),'view':_0x38103a=>{const {id:_0x2d1c9b,type:_0x54bac8}=this[_0x3fa2('0x5a')](_0x38103a[_0x3fa2('0xe2')]),_0x3d62ad=[_0x3fa2('0x74'),_0x3fa2('0x126')+_0x54bac8];let _0xe381be=0xbb8;return this[_0x3fa2('0xd2')]['includes'](_0x38103a[_0x3fa2('0xe2')])&&(_0x3d62ad['push']('ck-suggestion-marker--active'),_0xe381be=0xbc2),_0x3fa2('0x7e')==_0x54bac8&&(_0xe381be+=0x5),{'classes':_0x3d62ad,'attributes':{'data-suggestion':_0x2d1c9b},'priority':_0xe381be};}}),_0x3133ac['conversion'][_0x3fa2('0x56')](_0x3fa2('0xdb'))[_0x3fa2('0xa1')](_0x44c2a3=>{_0x44c2a3['on'](_0x3fa2('0xa6'),(_0x1676a7,_0x4f0097,_0x3c5417)=>{if(!_0x3c5417[_0x3fa2('0x28')][_0x3fa2('0x10')])return;const _0x2c9fc8=_0x4f0097[_0x3fa2('0x116')];if(!_0x2c9fc8)return;const _0x58c6f2=_0x3c5417[_0x3fa2('0x8e')][_0x3fa2('0x1d')](_0x2c9fc8);_0x3133ac['model'][_0x3fa2('0xe9')][_0x3fa2('0x95')](_0x2c9fc8)&&_0x58c6f2&&!_0x58c6f2['getCustomProperty'](_0x3fa2('0x90'))&&_0x58c6f2['is'](_0x3fa2('0x69'))&&_0x185c41(_0x58c6f2,_0x3c5417[_0x3fa2('0xd')]);},{'priority':_0x3fa2('0x26')});}),_0x3133ac[_0x3fa2('0x59')][_0x3fa2('0x56')](_0x3fa2('0xdb'))['markerToHighlight']({'model':'suggestion','view':(_0x7d13a9,_0x143009)=>{if(!_0x143009[_0x3fa2('0x28')][_0x3fa2('0x10')])return null;const {type:_0x4308bf}=this[_0x3fa2('0x5a')](_0x7d13a9[_0x3fa2('0xe2')]);return{'classes':[_0x3fa2('0x74'),_0x3fa2('0x126')+_0x4308bf],'priority':0xbb8};}});const _0x1a4840=({showActiveMarkers:_0x442dcc=!0x0}={})=>(_0x2427c6,_0x279b7e,_0x56b96e)=>{if(!_0x279b7e['item'])return;if(_0x279b7e[_0x3fa2('0x116')]['is'](_0x3fa2('0x7')))return void _0x56b96e[_0x3fa2('0xdd')][_0x3fa2('0x92')](_0x279b7e[_0x3fa2('0x116')],_0x2427c6['name']);const _0x2ded0e=_0x56b96e[_0x3fa2('0x8e')][_0x3fa2('0x1d')](_0x279b7e['item']);if(!(_0x279b7e[_0x3fa2('0x116')]['is'](_0x3fa2('0x4d'))&&_0x3133ac['model'][_0x3fa2('0xe9')][_0x3fa2('0x102')](_0x279b7e['item'])&&!_0x2ded0e[_0x3fa2('0x13d')](_0x3fa2('0xca'))))return;const {id:_0x3b7e38}=this[_0x3fa2('0x5a')](_0x279b7e['markerName']);_0x56b96e['writer']['addClass']([_0x3fa2('0x74'),'ck-suggestion-marker-formatBlock'],_0x2ded0e),_0x56b96e[_0x3fa2('0xd')][_0x3fa2('0xb0')](_0x3fa2('0xd5'),_0x3b7e38,_0x2ded0e),_0x56b96e[_0x3fa2('0x8e')][_0x3fa2('0x3c')](_0x2ded0e,_0x279b7e['markerName']),_0x442dcc&&(this['activeMarkers'][_0x3fa2('0x139')](_0x279b7e[_0x3fa2('0xe2')])?_0x56b96e[_0x3fa2('0xd')]['addClass']('ck-suggestion-marker--active',_0x2ded0e):_0x56b96e[_0x3fa2('0xd')][_0x3fa2('0x11e')]('ck-suggestion-marker--active',_0x2ded0e));for(const _0x1c1f8a of _0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xb2')](_0x279b7e[_0x3fa2('0x116')])[_0x3fa2('0x10d')]())_0x56b96e['consumable']['consume'](_0x1c1f8a,_0x2427c6['name']);_0x56b96e[_0x3fa2('0xdd')][_0x3fa2('0x92')](_0x279b7e[_0x3fa2('0x116')],_0x2427c6[_0x3fa2('0x4a')]);};_0x3133ac[_0x3fa2('0x59')][_0x3fa2('0x56')](_0x3fa2('0xdb'))[_0x3fa2('0xa1')](_0x2d5725=>{_0x2d5725['on']('addMarker:suggestion:formatBlock',(_0x39b614,_0x3f15b3,_0x26cc7e)=>{_0x26cc7e[_0x3fa2('0x28')][_0x3fa2('0x10')]&&_0x1a4840({'showActiveMarkers':!0x1})(_0x39b614,_0x3f15b3,_0x26cc7e);},{'priority':'highest'});}),_0x3133ac[_0x3fa2('0x59')][_0x3fa2('0x56')](_0x3fa2('0xdb'))[_0x3fa2('0xa5')]({'model':'suggestion','view':(_0x11048a,_0x41133a)=>_0x41133a['options']['showSuggestionHighlights']?null:{'group':_0x3fa2('0x110'),'name':_0x11048a[_0x3fa2('0x68')](0xb)}}),_0x3133ac[_0x3fa2('0x59')][_0x3fa2('0x56')](_0x3fa2('0x4b'))['elementToElement']({'view':{'name':_0x3fa2('0x110'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x25892f,{writer:_0x2082d1})=>{let _0x17db02=_0x3fa2('0xa2')+_0x25892f['getAttribute']('suggestion-type')+':'+_0x25892f[_0x3fa2('0x32')]('id');return _0x25892f[_0x3fa2('0x32')](_0x3fa2('0x83'))&&(_0x17db02+=':'+_0x25892f[_0x3fa2('0x32')](_0x3fa2('0x83'))),_0x2082d1[_0x3fa2('0x3f')]('$marker',{'data-name':_0x17db02});}}),_0x3133ac[_0x3fa2('0x59')]['for']('upcast')[_0x3fa2('0x127')]({'view':_0x3fa2('0x110')}),_0x3133ac[_0x3fa2('0x59')][_0x3fa2('0x56')](_0x3fa2('0x113'))[_0x3fa2('0xa1')](_0x477bfd=>{_0x477bfd['on'](_0x3fa2('0x8a'),_0x1a4840(),{'priority':_0x3fa2('0x26')});}),_0x3133ac['conversion'][_0x3fa2('0x56')](_0x3fa2('0x113'))[_0x3fa2('0xa1')](_0x55f391=>{_0x55f391['on'](_0x3fa2('0x107'),(_0x4765a7,_0x213e2d,_0x1be8b3)=>{const _0x426390=_0x1be8b3[_0x3fa2('0x8e')][_0x3fa2('0xf9')](_0x213e2d['markerName']);if(_0x426390)for(const _0x2e7c33 of _0x426390)_0x2e7c33[_0x3fa2('0x13d')](_0x3fa2('0xca'))||(_0x1be8b3[_0x3fa2('0xd')][_0x3fa2('0x11e')]([_0x3fa2('0x74'),'ck-suggestion-marker-formatBlock',_0x3fa2('0xbb')],_0x2e7c33),_0x1be8b3['writer'][_0x3fa2('0xa4')]('data-suggestion',_0x2e7c33),_0x1be8b3[_0x3fa2('0x8e')][_0x3fa2('0x5c')](_0x2e7c33,_0x213e2d['markerName']));},{'priority':'high'});}),_0x3133ac['model']['document']['registerPostFixer'](_0x252a57=>{let _0x36ba6b=!0x1;const _0x4eefc4=Array[_0x3fa2('0x3')](_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x123')][_0x3fa2('0x8')]['getChangedMarkers']()),_0x1110fa=new Set();for(const {name:_0x2ec627,data:_0x354cda}of _0x4eefc4){const {group:_0x382276,type:_0x14a881,id:_0x41cf06}=this[_0x3fa2('0x5a')](_0x2ec627);if('suggestion'!==_0x382276)continue;const _0x6fa0d9=this[_0x3fa2('0xed')][_0x3fa2('0x2c')](_0x41cf06);if(null!=_0x354cda[_0x3fa2('0x1a')]){_0x3fa2('0x11')==_0x14a881&&(_0x36ba6b=_0x36ba6b||Mt(_0x354cda[_0x3fa2('0x1a')],_0x2ec627,_0x252a57,_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe9')]));if(_0x354cda[_0x3fa2('0x1a')][_0x3fa2('0xe0')]||'$graveyard'==_0x354cda['newRange']['root'][_0x3fa2('0xc')]||_0x3fa2('0x118')==_0x14a881&&!Nt(_0x354cda[_0x3fa2('0x1a')])||_0x3fa2('0x7e')==_0x14a881&&!(!_t(_0xb74a84=_0x354cda[_0x3fa2('0x1a')])&&!function(_0x25e755){return _0x25e755['start']['parent']==_0x25e755[_0x3fa2('0x11a')][_0x3fa2('0xdc')]&&_0x25e755[_0x3fa2('0x125')][_0x3fa2('0x55')];}(_0xb74a84)))_0x252a57[_0x3fa2('0x24')](_0x2ec627),_0x36ba6b=!0x0;else{if(!_0x6fa0d9||!_0x6fa0d9['isInContent'])continue;_0x1110fa['add'](_0x6fa0d9);}}}var _0xb74a84;return _0x1110fa['size']>0x0&&(_0x36ba6b=!!this[_0x3fa2('0x98')](_0x1110fa)||_0x36ba6b),_0x36ba6b;}),_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x123')][_0x3fa2('0x5f')](_0x1f20f9=>{let _0x1d07c0=!0x1;for(const _0x3f1da6 of _0x3133ac[_0x3fa2('0xa8')]['document'][_0x3fa2('0x8')][_0x3fa2('0x53')]()){if(_0x3fa2('0x3d')!=_0x3f1da6[_0x3fa2('0x29')])continue;const _0x2050d8=_0x3f1da6['position'][_0x3fa2('0xbe')](_0x3f1da6[_0x3fa2('0x6a')]);if(_0x2050d8['isAtEnd'])for(const _0x457f89 of this[_0x3fa2('0xed')][_0x3fa2('0x23')]()){if(_0x457f89['isMultiRange']||!_0x457f89[_0x3fa2('0x94')])continue;if(_0x3fa2('0x118')!=_0x457f89[_0x3fa2('0x29')])continue;const _0x5ae6b9=_0x457f89[_0x3fa2('0x42')]();if(_0x5ae6b9[_0x3fa2('0x125')][_0x3fa2('0x84')]!=_0x5ae6b9[_0x3fa2('0x11a')]['parent']&&_0x5ae6b9[_0x3fa2('0x11a')][_0x3fa2('0xa0')](_0x3f1da6[_0x3fa2('0x5b')])){const _0x5491eb=_0x3133ac['model'][_0x3fa2('0x12d')](_0x5ae6b9[_0x3fa2('0x125')],_0x2050d8);_0x1f20f9[_0x3fa2('0xd7')](_0x457f89['getFirstMarker'](),{'range':_0x5491eb}),_0x1d07c0=!0x0;}}}return _0x1d07c0;}),_0x3133ac['model'][_0x3fa2('0xc4')]['on'](_0x3fa2('0x10b'),(_0x12d9a9,_0x304220,_0x56632f)=>{if(null==_0x56632f){const {id:_0x1086c9}=this[_0x3fa2('0x5a')](_0x304220[_0x3fa2('0x4a')]),_0x280539=this['_suggestions']['get'](_0x1086c9);_0x280539&&_0x280539[_0x3fa2('0x124')](_0x304220['name']);}}),_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x123')]['on'](_0x3fa2('0x9'),()=>{const _0x5012dc=Array[_0x3fa2('0x3')](_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x123')][_0x3fa2('0x8')][_0x3fa2('0x8f')]())[_0x3fa2('0x1b')](_0x5ed53c=>_0x3fa2('0x110')===this[_0x3fa2('0x5a')](_0x5ed53c[_0x3fa2('0x4a')])[_0x3fa2('0x5')]);if(0x0===_0x5012dc['length'])return;_0x5012dc[_0x3fa2('0xac')]((_0x12ae30,_0x14176f)=>{const _0x1be6a4=_0x12ae30[_0x3fa2('0x106')]['oldRange'],_0x190fc3=_0x14176f[_0x3fa2('0x106')][_0x3fa2('0x72')];return null===_0x1be6a4&&null===_0x190fc3?0x0:null===_0x1be6a4&&null!==_0x190fc3?-0x1:null!==_0x1be6a4&&null===_0x190fc3?0x1:_0x1be6a4[_0x3fa2('0x125')][_0x3fa2('0x119')](_0x190fc3[_0x3fa2('0x125')])?-0x1:0x1;});const _0x12c157=new Set(),_0x3d81a8=new Set();for(const {name:_0xe9435,data:_0x8f9471}of _0x5012dc){const {id:_0x471705}=this['_splitMarkerName'](_0xe9435);if(null===_0x8f9471[_0x3fa2('0x72')]){const _0x402d5f=this[_0x3fa2('0x108')](_0xe9435);_0x3d81a8['add'](_0x402d5f);}else{const _0x307db5=this[_0x3fa2('0xed')][_0x3fa2('0x2c')](_0x471705);null!==_0x8f9471[_0x3fa2('0x1a')]||_0x307db5[_0x3fa2('0x94')]?(_0x12c157[_0x3fa2('0xa1')](_0x307db5[_0x3fa2('0x11f')]),_0x3d81a8['add'](_0x307db5)):this[_0x3fa2('0xe6')](_0x307db5);}}_0x3d81a8[_0x3fa2('0x46')]>0x0&&this[_0x3fa2('0x4e')](_0x3d81a8);for(const _0x1e64f1 of _0x12c157)this[_0x3fa2('0x104')]('suggestionChanged',_0x1e64f1);}),_0x3133ac['model']['on'](_0x3fa2('0xfe'),(_0x219daa,_0x1ab19d)=>{const _0x267fa5=_0x1ab19d[0x0];if(!this['_suggestions'][_0x3fa2('0x46')])return;if(!_0x267fa5[_0x3fa2('0xba')])return;if(_0x267fa5[_0x3fa2('0x117')][_0x3fa2('0x129')]||!_0x267fa5[_0x3fa2('0x117')][_0x3fa2('0x130')])return;let _0x1f9f29,_0x38c623;switch(_0x267fa5['type']){case'insert':_0x1f9f29=_0x3133ac[_0x3fa2('0xa8')]['createPositionAt'](_0x267fa5[_0x3fa2('0x5b')]),_0x38c623=_0x1f9f29[_0x3fa2('0xbe')](_0x267fa5[_0x3fa2('0x81')]);break;case _0x3fa2('0xf6'):_0x1f9f29=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe1')](_0x267fa5[_0x3fa2('0x101')]),_0x38c623=_0x3133ac['model']['createPositionAt'](_0x267fa5[_0x3fa2('0xc8')]);break;case _0x3fa2('0x12a'):_0x1f9f29=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe1')](_0x267fa5[_0x3fa2('0xee')]),_0x38c623=_0x1f9f29[_0x3fa2('0xbe')](_0x267fa5[_0x3fa2('0x81')]);break;default:return;}const _0xe84ab7=_0x3133ac['model'][_0x3fa2('0x12d')](_0x1f9f29,_0x38c623);_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x79')](()=>{for(const {suggestion:_0x1e2852,meta:_0x5a2048}of this[_0x3fa2('0xeb')](_0xe84ab7)){if(_0x1e2852[_0x3fa2('0xb')])continue;if(_0x3fa2('0x11')==_0x1e2852[_0x3fa2('0x29')])continue;const _0x11bd63=_0x1e2852[_0x3fa2('0x106')]&&_0x1e2852[_0x3fa2('0x106')][_0x3fa2('0x54')];('formatBlock'!=_0x1e2852[_0x3fa2('0x29')]||'split'==_0x267fa5[_0x3fa2('0x29')]&&!_0x11bd63)&&(_0x5a2048[_0x3fa2('0x73')]||_0x3fa2('0xda')==_0x1e2852[_0x3fa2('0x29')]&&_0x5a2048['isOwn']||_0x1e2852[_0x3fa2('0x42')]()[_0x3fa2('0x9d')](_0xe84ab7)&&this['_breakSuggestionMarker'](_0x1e2852,_0x1f9f29,_0x38c623));}});},{'priority':_0x3fa2('0x89')}),_0x3133ac[_0x3fa2('0xa8')]['on'](_0x3fa2('0xf5'),(_0x2cea39,_0x1bd5e8)=>{const _0x33dc0f=_0x1bd5e8[0x0],_0x5c28ec=_0x1bd5e8[0x1];if(_0x5c28ec&&_0x5c28ec[_0x3fa2('0x6e')])return;if(this[_0x3fa2('0x34')])return;if(!this['trackChangesCommand'][_0x3fa2('0x17')])return;if(_0x33dc0f[_0x3fa2('0xe0')])return;const _0x3e2ad0=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe9')],{start:_0x3ced8a,end:_0x1d5f94}=_0x33dc0f[_0x3fa2('0x42')](),_0x1878ba=_0x3ced8a[_0x3fa2('0x58')]&&_0x3e2ad0[_0x3fa2('0xd8')](_0x3ced8a[_0x3fa2('0x58')])?null:_0x3e2ad0[_0x3fa2('0x4c')](_0x3ced8a,_0x3fa2('0x5d')),_0x373481=_0x1d5f94[_0x3fa2('0xdc')]&&_0x3e2ad0[_0x3fa2('0xd8')](_0x1d5f94[_0x3fa2('0xdc')])?null:_0x3e2ad0[_0x3fa2('0x4c')](_0x1d5f94,_0x3fa2('0x21')),_0x3e14cf=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x12d')](_0x1878ba?_0x1878ba[_0x3fa2('0x125')]:_0x3ced8a,_0x373481?_0x373481[_0x3fa2('0x11a')]:_0x1d5f94);_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x79')](_0x2f9988=>{this['markDeletion'](_0x3e14cf);const _0x575872=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe9')][_0x3fa2('0x4c')](_0x3e14cf['start']);_0x33dc0f['is']('documentSelection')?_0x2f9988[_0x3fa2('0x2b')](_0x575872):_0x33dc0f[_0x3fa2('0x12e')](_0x575872);}),_0x2cea39[_0x3fa2('0x120')]();},{'priority':_0x51a381[_0x3fa2('0x1')]+0xa}),_0x3133ac[_0x3fa2('0xa8')]['on'](_0x3fa2('0x13c'),(_0x278c2b,_0x2d9f8a)=>{const _0x56ab7e=_0x2d9f8a[_0x2d9f8a[_0x3fa2('0x6a')]-0x1];_0x56ab7e&&_0x56ab7e[_0x3fa2('0x6e')]||this[_0x3fa2('0x34')]||this['trackChangesCommand'][_0x3fa2('0x17')]&&(_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x79')](()=>{let _0x2a1715=_0x3133ac[_0x3fa2('0xa8')]['insertContent'](_0x2d9f8a[0x0],_0x2d9f8a[0x1],_0x2d9f8a[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a1715)return;_0x278c2b[_0x3fa2('0x9c')]=_0x2a1715[_0x3fa2('0x6b')]();const _0x57d4a1=_0x2a1715['end'][_0x3fa2('0xdc')],_0x1c1a52=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0xe9')];_0x57d4a1&&_0x1c1a52[_0x3fa2('0x102')](_0x57d4a1)&&!_0x1c1a52['isObject'](_0x57d4a1)&&(_0x2a1715=_0x3133ac[_0x3fa2('0xa8')][_0x3fa2('0x12d')](_0x2a1715['start'],_0x3133ac[_0x3fa2('0xa8')]['createPositionAt'](_0x57d4a1,_0x3fa2('0x11a')))),this[_0x3fa2('0xd1')](_0x2a1715);}),_0x278c2b[_0x3fa2('0x120')]());},{'priority':_0x3fa2('0x26')}),this['editor'][_0x3fa2('0xb9')][_0x3fa2('0xa1')](_0x3fa2('0x13b'),this[_0x3fa2('0x64')]),this[_0x3fa2('0xd0')](_0x3fa2('0x13b'));const _0x252c83=new _0x142e54(_0x3133ac,this[_0x3fa2('0xed')]);_0x3133ac[_0x3fa2('0xb9')][_0x3fa2('0xa1')](_0x3fa2('0x60'),_0x252c83),this[_0x3fa2('0xd0')](_0x3fa2('0x60'));const _0x22c3df=new _0x246e5f(_0x3133ac,this[_0x3fa2('0xed')]);_0x3133ac[_0x3fa2('0xb9')]['add'](_0x3fa2('0x103'),_0x22c3df),this['enableCommand']('discardSuggestion'),_0x3133ac[_0x3fa2('0xb9')][_0x3fa2('0xa1')]('acceptAllSuggestions',new _0x433d0f(_0x3133ac,_0x252c83,this[_0x3fa2('0xed')])),this[_0x3fa2('0xd0')]('acceptAllSuggestions'),_0x3133ac[_0x3fa2('0xb9')][_0x3fa2('0xa1')](_0x3fa2('0xaa'),new _0x433d0f(_0x3133ac,_0x22c3df,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3133ac[_0x3fa2('0xb9')][_0x3fa2('0xa1')](_0x3fa2('0x128'),new _0x2cd40b(_0x3133ac,_0x252c83,this[_0x3fa2('0xed')])),this[_0x3fa2('0xd0')]('acceptSelectedSuggestions'),_0x3133ac[_0x3fa2('0xb9')][_0x3fa2('0xa1')]('discardSelectedSuggestions',new _0x2cd40b(_0x3133ac,_0x22c3df,this['_suggestions'])),this[_0x3fa2('0xd0')](_0x3fa2('0x65'));const _0x3ea108=_0x3133ac['plugins'][_0x3fa2('0x2c')]('CommentsRepository');this['listenTo'](_0x3ea108,_0x3fa2('0xc0'),(_0x314d33,{threadId:_0x3bff21})=>{const _0x50fa4f=this[_0x3fa2('0xed')][_0x3fa2('0x2c')](_0x3bff21);_0x50fa4f&&_0x50fa4f[_0x3fa2('0x96')]&&0x1===_0x50fa4f[_0x3fa2('0x96')][_0x3fa2('0x6a')]&&this[_0x3fa2('0x99')](_0x3bff21,{'hasComments':!0x0});},{'priority':_0x3fa2('0x8b')}),this[_0x3fa2('0x71')](_0x3ea108,_0x3fa2('0x105'),(_0x56061b,{threadId:_0x4cf218})=>{const _0x22a889=this[_0x3fa2('0xed')][_0x3fa2('0x2c')](_0x4cf218);_0x22a889&&_0x22a889[_0x3fa2('0x96')]&&!_0x22a889['commentThread'][_0x3fa2('0x6a')]&&this[_0x3fa2('0x99')](_0x4cf218,{'hasComments':!0x1});},{'priority':_0x3fa2('0x8b')});}set[_0x3fa2('0x49')](_0x4d080a){if(this[_0x3fa2('0x7b')])throw new _0xfcec74('track-changes-adapter-already-set',this);this[_0x3fa2('0x7b')]=_0x4d080a;}get[_0x3fa2('0x49')](){return this[_0x3fa2('0x7b')];}[_0x3fa2('0x1e')]({skipNotAttached:_0x2981ea=!0x1,toJSON:_0x5ed630=!0x1}={}){const _0xbcc119=[];for(const _0x1ec939 of this['_suggestions'][_0x3fa2('0x23')]())_0x2981ea&&!_0x1ec939[_0x3fa2('0x94')]||_0xbcc119['push'](_0x1ec939);return _0x5ed630?_0xbcc119[_0x3fa2('0xc2')](_0x5ea78c=>_0x5ea78c['toJSON']()):_0xbcc119;}[_0x3fa2('0xc1')](_0x83d80b){const _0x1360b1=this['_suggestions'][_0x3fa2('0x2c')](_0x83d80b);if(!_0x1360b1)throw new _0xfcec74(_0x3fa2('0x2e'),this);return _0x1360b1;}[_0x3fa2('0x12c')](_0x1e31ef){return this[_0x3fa2('0xed')][_0x3fa2('0x67')](_0x1e31ef);}[_0x3fa2('0xad')](_0x21112f){const {authorId:_0x4cab7b,id:_0x1d999e,attributes:_0x5375e8}=_0x21112f,[_0x37e627,_0x15743d]=_0x21112f[_0x3fa2('0x29')]['split'](':'),_0x49deed=this[_0x3fa2('0xed')]['get'](_0x1d999e)||this['_createSuggestion'](_0x37e627,_0x15743d,_0x1d999e,_0x4cab7b,_0x5375e8);if(this[_0x3fa2('0x97')](_0x49deed),this['_checkSuggestionCorrectness'](_0x49deed,_0x37e627,_0x15743d||null,_0x4cab7b),_0x49deed['createdAt']=_0x21112f[_0x3fa2('0xf')],_0x5375e8&&_0x5375e8[_0x3fa2('0x52')]){const _0x2b5480=_0x5375e8[_0x3fa2('0x52')],_0x43184d=this[_0x3fa2('0x7f')](_0x2b5480[_0x3fa2('0xab')]);_0x49deed['authoredAt']=_0x2b5480[_0x3fa2('0xf')],_0x49deed['author']=_0x43184d,_0x49deed[_0x3fa2('0x40')]=!0x0;}else _0x49deed[_0x3fa2('0x111')]=_0x21112f[_0x3fa2('0xf')];switch(_0x21112f['data']&&(_0x49deed[_0x3fa2('0x106')]=_0x21112f[_0x3fa2('0x106')]),_0x21112f[_0x3fa2('0xa9')]&&(_0x49deed[_0x3fa2('0xa9')]=_0x21112f['attributes']),this[_0x3fa2('0x7b')]&&this['_adapter']['addSuggestion']||(_0x49deed[_0x3fa2('0x2d')]=!0x0),this['_suggestionState'][_0x3fa2('0x2c')](_0x49deed)){case _0x3fa2('0x82'):this[_0x3fa2('0xec')]['set'](_0x49deed,'dataReady');break;case _0x3fa2('0xc9'):_0x49deed['isInContent']?(this[_0x3fa2('0xec')]['set'](_0x49deed,_0x3fa2('0xbd')),this['fire']('suggestionLoaded',_0x49deed)):this[_0x3fa2('0xec')][_0x3fa2('0xf1')](_0x49deed,_0x3fa2('0x109'));}return _0x49deed;}['acceptSuggestion'](_0x11bf5a){this[_0x3fa2('0x6e')](()=>{this[_0x3fa2('0x22')]['model'][_0x3fa2('0x79')](()=>{for(const _0x4598c0 of _0x11bf5a[_0x3fa2('0x43')]())_0x4598c0[_0x3fa2('0x9b')]();});});}[_0x3fa2('0x103')](_0x14bee4){this[_0x3fa2('0x6e')](()=>{this[_0x3fa2('0x22')][_0x3fa2('0xa8')]['change'](()=>{for(const _0xd28564 of _0x14bee4[_0x3fa2('0x43')]())_0xd28564[_0x3fa2('0x115')]();});});}[_0x3fa2('0xd0')](_0x5cac05,_0x2f5731){const _0x636b78=this[_0x3fa2('0x22')][_0x3fa2('0xb9')][_0x3fa2('0x2c')](_0x5cac05);if(!_0x636b78)throw new _0xfcec74(_0x3fa2('0xb4'),this,{'commandName':_0x5cac05});this[_0x3fa2('0xdf')]['add'](_0x636b78),_0x2f5731&&_0x636b78['on']('execute',(_0x5815c5,_0x2d7b82)=>{this[_0x3fa2('0x64')]['value']&&(this['_isForcedDefaultExecutionBlock']||_0x2d7b82[_0x3fa2('0x6a')]>0x0&&_0x2d7b82[_0x2d7b82[_0x3fa2('0x6a')]-0x1]&&_0x2d7b82[_0x2d7b82[_0x3fa2('0x6a')]-0x1][_0x3fa2('0x6e')]||(_0x2f5731((..._0x2399d7)=>_0x636b78[_0x3fa2('0x63')](..._0x2399d7,{'forceDefaultExecution':!0x0}),..._0x2d7b82),_0x5815c5[_0x3fa2('0x120')]()));},{'priority':'high'});}[_0x3fa2('0x6e')](_0x5f4857){let _0xcc0478,_0x4b0b7d;const _0x2e6a21=this[_0x3fa2('0x34')];this[_0x3fa2('0x34')]=!0x0;try{_0xcc0478=_0x5f4857();}catch(_0x3a2bc4){_0x4b0b7d=_0x3a2bc4;}return _0x2e6a21||(this[_0x3fa2('0x34')]=!0x1),_0x4b0b7d&&_0xfcec74['rethrowUnexpectedError'](_0x4b0b7d,this),_0xcc0478;}[_0x3fa2('0xd1')](_0xcb9ff2,_0x4895c3=null,_0x5841f5={}){if(_0xcb9ff2['isCollapsed'])return null;const _0x4e3c6f=this['editor']['plugins'][_0x3fa2('0x2c')](_0x3fa2('0x136'))['me'];for(const {suggestion:_0x41fa8b,meta:_0x3048a0}of this[_0x3fa2('0xeb')](_0xcb9ff2,'insertion'))if(_0x3048a0['isOwn']){if(!_0x3048a0['isNextTo']){if(!this[_0x3fa2('0xf3')]&&_0x3048a0[_0x3fa2('0x73')])continue;return _0x41fa8b;}if(_0x4895c3==_0x41fa8b[_0x3fa2('0xea')]){const _0x5e3405=_0x41fa8b['getFirstRange']();return _0x5e3405[_0x3fa2('0x125')][_0x3fa2('0xa0')](_0xcb9ff2['end'])?this[_0x3fa2('0xa')](_0x41fa8b,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0xcb9ff2[_0x3fa2('0x125')],_0x5e3405[_0x3fa2('0x11a')])):this[_0x3fa2('0xa')](_0x41fa8b,this['_model']['createRange'](_0x5e3405[_0x3fa2('0x125')],_0xcb9ff2[_0x3fa2('0x11a')])),_0x41fa8b;}}const _0x50f69d=_0x33d3f5(),_0x454c2d=_0x4e3c6f['id'],_0x13bb33=_0x4895c3?'insertion:'+_0x4895c3:_0x3fa2('0xda'),_0x363424=this[_0x3fa2('0xf7')]({'id':_0x50f69d,'type':_0x13bb33,'createdAt':new Date(),'authorId':_0x454c2d,'attributes':_0x5841f5});return this[_0x3fa2('0x12f')](_0x13bb33,_0x50f69d,_0x454c2d,_0xcb9ff2),_0x363424;}[_0x3fa2('0x9f')](_0x431bb7,_0x88def4=_0x3fa2('0x13'),_0x508801={}){const _0x343d0a=this[_0x3fa2('0x22')][_0x3fa2('0x13f')]['get'](_0x3fa2('0x136'))['me'],_0x5b98b0=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0xda'),_0x88def4,_0x3fa2('0xf0'));for(const _0x3cbd12 of this[_0x3fa2('0x1e')]())if(_0x3cbd12[_0x3fa2('0xf8')]['id']==_0x343d0a['id']&&_0x3fa2('0xda')==_0x3cbd12['type']&&_0x3cbd12['subType']==_0x88def4&&(_0x5b98b0(_0x3cbd12[_0x3fa2('0x25')](),_0x431bb7)||_0x5b98b0(_0x431bb7,_0x3cbd12['getRanges']()))){for(const _0x54475d of _0x431bb7)_0x3cbd12[_0x3fa2('0x1c')](_0x54475d);return _0x3cbd12;}if(this[_0x3fa2('0xf3')])for(const _0x1fc2c9 of _0x431bb7)for(const {suggestion:_0x4a9eff,meta:_0x109410}of this[_0x3fa2('0xeb')](_0x1fc2c9,_0x3fa2('0xda'))){if(!_0x109410['isOwn'])continue;let _0x5d533d=!0x0;for(const _0x9cf126 of _0x4a9eff[_0x3fa2('0x25')]())for(const _0x197c36 of _0x431bb7)if(!_0x9cf126[_0x3fa2('0x9d')](_0x197c36)){_0x5d533d=!0x1;break;}if(_0x5d533d)return _0x4a9eff;}const _0x17d96f=_0x33d3f5(),_0x3646d7=_0x343d0a['id'],_0x4bd275=_0x3fa2('0xb7')+_0x88def4,_0x3176ff=this['_setSuggestionData']({'id':_0x17d96f,'type':_0x4bd275,'createdAt':new Date(),'authorId':_0x3646d7,'attributes':_0x508801});for(const _0x3eb288 of _0x431bb7)this[_0x3fa2('0x12f')](_0x4bd275,_0x17d96f,_0x3646d7,_0x3eb288,_0x4a4cae[_0x3fa2('0x134')]());return _0x3176ff;}[_0x3fa2('0x77')](_0xbaedbd,_0x4d4d7c,_0x12fff6=null,_0x14d3b9={}){if(_0x12fff6=_0x12fff6||$t(_0x4d4d7c),_0xbaedbd[_0x3fa2('0xe0')])return null;if(_0x3fa2('0xb1')===this[_0x3fa2('0x14')]){const _0x56f3a8=this[_0x3fa2('0xce')]['getSuggestionCallback'](_0x3fa2('0x11'),_0x12fff6,_0x3fa2('0x9b'));return this[_0x3fa2('0x6e')](()=>_0x56f3a8([_0xbaedbd],_0x4d4d7c,_0x14d3b9)),null;}const _0x59fdae=this['editor'][_0x3fa2('0x13f')][_0x3fa2('0x2c')]('Users')['me'],_0x30557c=[];if(_0x3fa2('0x75')!==this[_0x3fa2('0x14')])for(const {suggestion:_0x2e39ab,meta:_0x1d2273}of this[_0x3fa2('0xeb')](_0xbaedbd,'insertion'))_0x1d2273[_0x3fa2('0xd3')]&&!_0x1d2273['isInsideObject']&&_0x30557c['push'](..._0x2e39ab[_0x3fa2('0x25')]());const _0x2511bc=function(_0x4c56f8,_0x149f58){const _0x2309b6=[];for(const _0x35aabc of _0x149f58){const _0x14773c=_0x4c56f8[_0x3fa2('0xd6')](_0x35aabc);_0x14773c&&_0x2309b6[_0x3fa2('0xe5')](_0x14773c);}return _0x2309b6;}(_0xbaedbd,_0x30557c),_0x483161=function(_0x161ab2,_0xf63b0c){const _0x105735=[_0x161ab2];for(const _0x369f8c of _0xf63b0c){let _0x5587dc=0x0;for(;_0x5587dc<_0x105735[_0x3fa2('0x6a')];){const _0x36da40=_0x105735[_0x5587dc][_0x3fa2('0x9a')](_0x369f8c);_0x105735[_0x3fa2('0xe3')](_0x5587dc,0x1,..._0x36da40),_0x5587dc+=_0x36da40[_0x3fa2('0x6a')];}}return _0x105735;}(_0xbaedbd,_0x30557c);_0x2511bc['length']&&this[_0x3fa2('0x12b')]['change'](()=>{for(const _0x7786be of _0x2511bc){const _0x4575e5=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0x11'),_0x12fff6,_0x3fa2('0x9b'));this[_0x3fa2('0x6e')](()=>_0x4575e5([_0x7786be],_0x4d4d7c,_0x14d3b9));}});for(const _0xc1385f of _0x483161){let _0x42e0f7=null,_0x3d6521=_0xc1385f[_0x3fa2('0x125')],_0x4c074e=_0xc1385f[_0x3fa2('0x11a')];for(const {suggestion:_0x2ae98a,meta:_0xf22044}of this[_0x3fa2('0xeb')](_0xc1385f,'formatInline')){if(!_0xf22044[_0x3fa2('0xd3')])continue;if(_0x2ae98a[_0x3fa2('0xea')]!=_0x12fff6)continue;const _0x2c42c7=_0x2ae98a[_0x3fa2('0x42')]();if(_0x2c42c7[_0x3fa2('0x9d')](_0xc1385f,!0x0))return null;_0x3d6521=_0x3d6521[_0x3fa2('0x119')](_0x2c42c7[_0x3fa2('0x125')])?_0x3d6521:_0x2c42c7[_0x3fa2('0x125')],_0x4c074e=_0x4c074e[_0x3fa2('0xe')](_0x2c42c7[_0x3fa2('0x11a')])?_0x4c074e:_0x2c42c7[_0x3fa2('0x11a')],_0x42e0f7?_0x2c42c7[_0x3fa2('0x125')]['isBefore'](_0x42e0f7[_0x3fa2('0x42')]()[_0x3fa2('0x125')])?(_0x42e0f7['removeMarkers'](),_0x42e0f7=_0x2ae98a):_0x2ae98a[_0x3fa2('0x7d')]():_0x42e0f7=_0x2ae98a;}const _0x412e4d=this[_0x3fa2('0x12b')]['createRange'](_0x3d6521,_0x4c074e);if(_0x42e0f7)this['_setSuggestionRange'](_0x42e0f7,_0x412e4d);else{const _0x3b5e4e=_0x33d3f5(),_0x134dba=_0x59fdae['id'];this[_0x3fa2('0xf7')]({'id':_0x3b5e4e,'type':_0x3fa2('0xcb')+_0x12fff6,'data':_0x4d4d7c,'createdAt':new Date(),'authorId':_0x134dba,'attributes':_0x14d3b9}),this[_0x3fa2('0x12f')]('formatInline:'+_0x12fff6,_0x3b5e4e,_0x134dba,_0x412e4d);}}return null;}['markBlockFormat'](_0x48080a,_0x2a5778,_0x6a38a4=[],_0x2317b4=null,_0x4384a4={}){_0x2a5778[_0x3fa2('0x27')]||(_0x2a5778[_0x3fa2('0x27')]=_0x2a5778[_0x3fa2('0x1f')]),_0x2a5778[_0x3fa2('0x54')]=_0x48080a['is']('range'),_0x2317b4=_0x2317b4||$t(_0x2a5778);const _0x3b0265=_0x6a38a4['map'](_0x256d09=>Rt(_0x256d09,this['_model'])),_0x18d261=_0x48080a['is'](_0x3fa2('0x51'))?_0x48080a:Rt(_0x48080a,this['_model']);if(_0x3fa2('0xb1')===this[_0x3fa2('0x14')]){const _0x124f70=this[_0x3fa2('0xce')][_0x3fa2('0x41')]('formatBlock',_0x2317b4,'accept');return this[_0x3fa2('0x6e')](()=>_0x124f70([_0x18d261],_0x2a5778,_0x4384a4)),null;}_0x3b0265[_0x3fa2('0xe5')](_0x18d261);let _0x56282b=!0x0;for(const _0x58a8a3 of _0x3b0265)if(!this[_0x3fa2('0xa3')](_0x58a8a3)){_0x56282b=!0x1;break;}if(_0x56282b&&_0x3fa2('0x75')!==this[_0x3fa2('0x14')]){const _0x2de188=this['_suggestionFactory']['getSuggestionCallback'](_0x3fa2('0x118'),_0x2317b4,'accept');return this[_0x3fa2('0x6e')](()=>_0x2de188([_0x18d261],_0x2a5778,_0x4384a4)),null;}let _0x8736fb=null,_0x1ebe10=_0x18d261[_0x3fa2('0x125')],_0x486320=_0x18d261[_0x3fa2('0x11a')];for(const {suggestion:_0x6d5277,meta:_0x35dd40}of this[_0x3fa2('0xeb')](_0x18d261,_0x3fa2('0x118'))){if(!_0x35dd40[_0x3fa2('0xd3')]||_0x35dd40['isNextTo']||_0x35dd40[_0x3fa2('0x73')]||_0x35dd40[_0x3fa2('0x33')])continue;if(_0x6d5277[_0x3fa2('0x106')][_0x3fa2('0x27')]!=_0x2a5778['formatGroupId'])continue;const _0xfb1ca3=_0x6d5277['getFirstRange']();if(_0x6d5277[_0x3fa2('0xea')]==_0x2317b4){if(_0xfb1ca3[_0x3fa2('0x9d')](_0x18d261,!0x0))return null;_0x1ebe10=_0x1ebe10[_0x3fa2('0x119')](_0xfb1ca3[_0x3fa2('0x125')])?_0x1ebe10:_0xfb1ca3[_0x3fa2('0x125')],_0x486320=_0x486320['isAfter'](_0xfb1ca3[_0x3fa2('0x11a')])?_0x486320:_0xfb1ca3[_0x3fa2('0x11a')],_0x8736fb?_0xfb1ca3['start'][_0x3fa2('0x119')](_0x8736fb[_0x3fa2('0x42')]()[_0x3fa2('0x125')])?(_0x8736fb['removeMarkers'](),_0x8736fb=_0x6d5277):_0x6d5277['removeMarkers']():_0x8736fb=_0x6d5277;}else{const _0x535891=_0x18d261[_0x3fa2('0xd6')](_0xfb1ca3);this[_0x3fa2('0x8d')](_0x6d5277,_0x535891);}}const _0x109718=this[_0x3fa2('0x22')][_0x3fa2('0x13f')][_0x3fa2('0x2c')](_0x3fa2('0x136'))['me'],_0x357608=_0x33d3f5(),_0x23527e=_0x109718['id'];if(_0x8736fb)return this['_setSuggestionRange'](_0x8736fb,this[_0x3fa2('0x12b')]['createRange'](_0x1ebe10,_0x486320)),_0x8736fb;{const _0x3a5c64=this[_0x3fa2('0xf7')]({'id':_0x357608,'type':_0x3fa2('0xef')+_0x2317b4,'data':_0x2a5778,'createdAt':new Date(),'authorId':_0x23527e,'attributes':_0x4384a4});return this['_addSuggestionMarker'](_0x3fa2('0xef')+_0x2317b4,_0x357608,_0x23527e,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x1ebe10,_0x486320)),_0x3a5c64;}}[_0x3fa2('0x20')](_0x4486d1,_0x27b46a,_0x47efa9=[],_0x12f7bb=null,_0x36492e={}){_0x27b46a[_0x3fa2('0x27')]||(_0x27b46a[_0x3fa2('0x27')]=_0x27b46a[_0x3fa2('0x1f')]);const _0x1bc5b5=_0x4486d1[0x0];_0x27b46a[_0x3fa2('0x54')]=_0x1bc5b5['is'](_0x3fa2('0x51')),_0x12f7bb=_0x12f7bb||$t(_0x27b46a);const _0x30bb3e=_0x47efa9[_0x3fa2('0xc2')](_0x2a6f2b=>Rt(_0x2a6f2b,this[_0x3fa2('0x12b')])),_0x576867=_0x1bc5b5['is']('range')?_0x4486d1:_0x4486d1[_0x3fa2('0xc2')](_0x29dc82=>Rt(_0x29dc82,this[_0x3fa2('0x12b')]));if('never'===this[_0x3fa2('0x14')]){const _0x5dce0d=this['_suggestionFactory'][_0x3fa2('0x41')](_0x3fa2('0x118'),_0x12f7bb,_0x3fa2('0x9b'));return this[_0x3fa2('0x6e')](()=>_0x5dce0d(_0x576867,_0x27b46a,_0x36492e)),null;}_0x30bb3e[_0x3fa2('0xe5')](..._0x576867);let _0x3db09a=!0x0;for(const _0x36e6b1 of _0x30bb3e)if(!this[_0x3fa2('0xa3')](_0x36e6b1)){_0x3db09a=!0x1;break;}if(_0x3db09a&&_0x3fa2('0x75')!==this[_0x3fa2('0x14')]){const _0x4b6b67=this[_0x3fa2('0xce')][_0x3fa2('0x41')]('formatBlock',_0x12f7bb,_0x3fa2('0x9b'));return this[_0x3fa2('0x6e')](()=>_0x4b6b67(_0x576867,_0x27b46a,_0x36492e)),null;}const _0x51a0e2=this[_0x3fa2('0x22')][_0x3fa2('0x13f')][_0x3fa2('0x2c')]('Users')['me'];for(const _0xd61ae8 of this[_0x3fa2('0x1e')]()){if(_0xd61ae8[_0x3fa2('0xf8')]['id']!=_0x51a0e2['id'])continue;if(_0x3fa2('0x118')!=_0xd61ae8[_0x3fa2('0x29')]||_0xd61ae8[_0x3fa2('0x106')][_0x3fa2('0x27')]!=_0x27b46a[_0x3fa2('0x27')])continue;const _0x39506e=_0xd61ae8['subType']==_0x12f7bb;for(let _0x57ad5b=0x0;_0x57ad5b<_0x576867[_0x3fa2('0x6a')];_0x57ad5b++){const _0x3264ea=_0x576867[_0x57ad5b];for(const _0x3412e3 of _0xd61ae8[_0x3fa2('0x6f')]()){const _0x456f9b=_0x3412e3[_0x3fa2('0x44')]();if(_0x3264ea['isEqual'](_0x456f9b)){_0x39506e?(_0x576867[_0x3fa2('0xe3')](_0x57ad5b,0x1),_0x57ad5b--):_0xd61ae8[_0x3fa2('0x24')](_0x3412e3[_0x3fa2('0x4a')]);break;}}}}if(0x0==_0x576867[_0x3fa2('0x6a')])return null;const _0x319990=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0x118'),_0x12f7bb,'join');for(const _0x130631 of this[_0x3fa2('0x1e')]())if(_0x130631[_0x3fa2('0xf8')]['id']==_0x51a0e2['id']&&_0x3fa2('0x118')==_0x130631[_0x3fa2('0x29')]&&_0x130631[_0x3fa2('0x106')][_0x3fa2('0x27')]==_0x27b46a[_0x3fa2('0x27')]&&_0x130631['subType']==_0x12f7bb&&(_0x319990(_0x130631[_0x3fa2('0x25')](),_0x576867)||_0x319990(_0x576867,_0x130631[_0x3fa2('0x25')]()))){for(const _0x372de4 of _0x576867)_0x130631[_0x3fa2('0x1c')](_0x372de4);return _0x130631;}const _0x1b30dd=_0x33d3f5(),_0x5bf1c3=_0x51a0e2['id'],_0x59e4ea=_0x3fa2('0xef')+_0x12f7bb,_0x32dc92=this[_0x3fa2('0xf7')]({'id':_0x1b30dd,'type':_0x59e4ea,'data':_0x27b46a,'createdAt':new Date(),'authorId':_0x5bf1c3,'attributes':_0x36492e});for(const _0x4ef352 of _0x576867)this['_addSuggestionMarker'](_0x59e4ea,_0x1b30dd,_0x5bf1c3,_0x4ef352,_0x4a4cae[_0x3fa2('0x134')]());return _0x32dc92;}['markDeletion'](_0x519b7c,_0x4762a1=null,_0xad1bce={}){if(_0x519b7c[_0x3fa2('0xe0')])return null;const _0x5805b0=this[_0x3fa2('0x22')]['plugins'][_0x3fa2('0x2c')](_0x3fa2('0x136'))['me'],_0x1f875c=new _0x526301(_0x519b7c['start'],_0x519b7c['end']);for(const {suggestion:_0x2e1f97,meta:_0x3b942c}of this[_0x3fa2('0xeb')](_0x1f875c,_0x3fa2('0xda')))if(_0x3b942c['isOwn']&&!_0x3b942c[_0x3fa2('0xfb')]){if(_0x2e1f97['isMultiRange']){const _0xe7cbf9=_0x2e1f97[_0x3fa2('0x25')]()['filter'](_0x1f4f1f=>_0x3fa2('0x30')!=_0x1f4f1f[_0x3fa2('0x7a')][_0x3fa2('0xc')]);_0xe7cbf9[_0x3fa2('0x11c')](_0x1f665e=>_0x1f875c[_0x3fa2('0x9d')](_0x1f665e,!0x0))&&_0x2e1f97[_0x3fa2('0x115')]();if(_0xe7cbf9[_0x3fa2('0x48')](_0x18b6b0=>_0x18b6b0[_0x3fa2('0x9d')](_0x1f875c,!0x0))){const _0x1dd19b=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0x7e'),_0x4762a1,_0x3fa2('0x9b'));return this[_0x3fa2('0x6e')](()=>_0x1dd19b([_0x1f875c],null,_0xad1bce)),null;}}else{const _0x14fc9b=_0x1f875c[_0x3fa2('0xd6')](_0x2e1f97[_0x3fa2('0x42')]());null!==_0x14fc9b&&_0x2e1f97[_0x3fa2('0x131')]([_0x14fc9b],null,_0xad1bce);}}if(_0x1f875c[_0x3fa2('0x93')](),_0x1f875c[_0x3fa2('0xe0')]||_0x3fa2('0x30')==_0x1f875c[_0x3fa2('0x7a')]['rootName'])return null;let _0x2eed7c=null,_0x33bc03=_0x1f875c[_0x3fa2('0x125')],_0x24ef86=_0x1f875c[_0x3fa2('0x11a')];for(const {suggestion:_0x10f31b,meta:_0x1dc3d4}of this['_findSuggestions'](_0x1f875c,_0x3fa2('0x7e')))if(_0x1dc3d4['isOwn']){if(_0x10f31b[_0x3fa2('0xb')]&&this[_0x3fa2('0xf3')]){let _0x13ef6c=!0x0;for(const _0x58c819 of _0x10f31b[_0x3fa2('0x25')]()){if(_0x58c819[_0x3fa2('0x9d')](_0x1f875c,!0x0))return _0x10f31b;_0x1f875c['containsRange'](_0x58c819)||(_0x13ef6c=!0x1);}_0x13ef6c&&_0x10f31b[_0x3fa2('0x115')]();}else{const _0xf2128b=_0x10f31b[_0x3fa2('0x42')]();if(_0xf2128b[_0x3fa2('0x9d')](_0x1f875c,!0x0)){if(!this[_0x3fa2('0xf3')]&&_0x1dc3d4[_0x3fa2('0x73')])continue;return _0x10f31b;}_0x33bc03=_0x33bc03['isBefore'](_0xf2128b['start'])?_0x33bc03:_0xf2128b['start'],_0x24ef86=_0x24ef86['isAfter'](_0xf2128b[_0x3fa2('0x11a')])?_0x24ef86:_0xf2128b[_0x3fa2('0x11a')],_0x2eed7c?_0xf2128b[_0x3fa2('0x125')][_0x3fa2('0x119')](_0x2eed7c['getFirstRange']()[_0x3fa2('0x125')])?(_0x2eed7c[_0x3fa2('0x7d')](),_0x2eed7c=_0x10f31b):_0x10f31b[_0x3fa2('0x7d')]():_0x2eed7c=_0x10f31b;}}if(_0x2eed7c)return this[_0x3fa2('0xa')](_0x2eed7c,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x33bc03,_0x24ef86)),_0x2eed7c;{const _0xe425ef=_0x33d3f5(),_0x5a334a=this[_0x3fa2('0x12b')]['createRange'](_0x33bc03,_0x24ef86),_0x31b598=_0x5805b0['id'],_0x440273=_0x4762a1?_0x3fa2('0x86')+_0x4762a1:_0x3fa2('0x7e'),_0x2a1387=this[_0x3fa2('0xf7')]({'id':_0xe425ef,'type':_0x440273,'createdAt':new Date(),'authorId':_0x31b598,'attributes':_0xad1bce});return this[_0x3fa2('0x12f')](_0x440273,_0xe425ef,_0x31b598,_0x5a334a),_0x2a1387;}}[_0x3fa2('0x132')](_0x35425c,_0x3a7e20=_0x3fa2('0x13'),_0x3f5413={}){const _0x4e745b=this[_0x3fa2('0x22')]['plugins'][_0x3fa2('0x2c')](_0x3fa2('0x136'))['me'],_0x59b044=_0x35425c['map'](_0x59f549=>new _0x526301(_0x59f549['start'],_0x59f549[_0x3fa2('0x11a')])),_0x450c99=new Set();for(const _0x5a9f85 of _0x59b044)for(const {suggestion:_0x34203e,meta:_0x1f4751}of this[_0x3fa2('0xeb')](_0x5a9f85,_0x3fa2('0xda')))_0x1f4751[_0x3fa2('0xd3')]&&!_0x1f4751[_0x3fa2('0xfb')]&&_0x450c99[_0x3fa2('0xa1')](_0x34203e);for(const _0x17e9b2 of _0x450c99)if(_0x17e9b2[_0x3fa2('0xb')]){const _0x3cc73d=_0x17e9b2[_0x3fa2('0x25')]();(!_0x17e9b2['attributes']||!_0x17e9b2[_0x3fa2('0xa9')]['skipNestingCheck'])&&(_0x3cc73d[_0x3fa2('0x11c')](_0x45ab8b=>_0x59b044[_0x3fa2('0x48')](_0x3d8611=>_0x3d8611[_0x3fa2('0x9d')](_0x45ab8b,!0x0)))&&_0x17e9b2['discard']());if(_0x59b044[_0x3fa2('0x11c')](_0x264808=>_0x3cc73d[_0x3fa2('0x48')](_0x5012c9=>_0x5012c9[_0x3fa2('0x9d')](_0x264808,!0x0)))){const _0x5ef05e=this[_0x3fa2('0xce')]['getSuggestionCallback'](_0x3fa2('0x7e'),_0x3a7e20,'accept');return this[_0x3fa2('0x6e')](()=>_0x5ef05e(_0x35425c,null,_0x3f5413)),null;}}else{const _0x2bff74=_0x17e9b2[_0x3fa2('0x42')]();_0x59b044['some'](_0x5f5745=>_0x5f5745[_0x3fa2('0x9d')](_0x2bff74,!0x0))&&_0x17e9b2['discard']();if(_0x59b044[_0x3fa2('0x11c')](_0x10fcbb=>_0x2bff74[_0x3fa2('0x9d')](_0x10fcbb,!0x0))){const _0x5773ad=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0x7e'),_0x3a7e20,_0x3fa2('0x9b'));return this[_0x3fa2('0x6e')](()=>_0x5773ad(_0x59b044,null,_0x3f5413)),null;}}const _0x51aa58=this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x3fa2('0x7e'),_0x3a7e20,_0x3fa2('0xf0'));let _0x22641b=null;for(const _0x1485d3 of this[_0x3fa2('0x1e')]())if(_0x1485d3[_0x3fa2('0xf8')]['id']==_0x4e745b['id']&&_0x1485d3[_0x3fa2('0x94')]&&_0x3fa2('0x7e')==_0x1485d3[_0x3fa2('0x29')]&&_0x1485d3[_0x3fa2('0xea')]==_0x3a7e20&&(_0x51aa58(_0x1485d3[_0x3fa2('0x25')](),_0x59b044)||_0x51aa58(_0x59b044,_0x1485d3[_0x3fa2('0x25')]()))){if(_0x22641b){if(_0x1485d3[_0x3fa2('0x96')]&&_0x1485d3['commentThread']['length'])continue;for(const _0x247aa9 of _0x1485d3[_0x3fa2('0x25')]())_0x22641b[_0x3fa2('0xe4')](_0x247aa9)||_0x22641b['addRange'](_0x247aa9);_0x1485d3['removeMarkers']();}else{_0x22641b=_0x1485d3;for(const _0x1830c0 of _0x59b044)_0x1485d3[_0x3fa2('0xe4')](_0x1830c0)||_0x1485d3['addRange'](_0x1830c0);}}if(_0x22641b)return _0x22641b;_0x450c99[_0x3fa2('0x87')]();for(const _0x24408a of _0x59b044)for(const {suggestion:_0xf40bab,meta:_0x5333d2}of this[_0x3fa2('0xeb')](_0x24408a,'deletion'))_0x5333d2[_0x3fa2('0xd3')]&&_0x450c99['add'](_0xf40bab);for(const _0x37de7b of _0x450c99){const _0x1e2949=_0x37de7b['getRanges']();if(!_0x3f5413||!_0x3f5413['skipNestingCheck']){if(_0x59b044[_0x3fa2('0x11c')](_0xde52ab=>_0x1e2949[_0x3fa2('0x48')](_0x2c53b1=>_0x2c53b1[_0x3fa2('0x9d')](_0xde52ab,!0x0))))return _0x37de7b;}(!_0x37de7b[_0x3fa2('0xa9')]||!_0x37de7b[_0x3fa2('0xa9')][_0x3fa2('0xf2')])&&(_0x1e2949[_0x3fa2('0x11c')](_0x4deb32=>_0x59b044[_0x3fa2('0x48')](_0x2e0a63=>_0x2e0a63[_0x3fa2('0x9d')](_0x4deb32,!0x0)))&&_0x37de7b[_0x3fa2('0x115')]());}const _0x2d11f3=_0x33d3f5(),_0x1e94b3=_0x4e745b['id'],_0x285189='deletion:'+_0x3a7e20,_0xb95378=this[_0x3fa2('0xf7')]({'id':_0x2d11f3,'type':_0x285189,'createdAt':new Date(),'authorId':_0x1e94b3,'attributes':_0x3f5413});for(const _0x3a9f73 of _0x59b044)_0x3a9f73[_0x3fa2('0x93')](),_0x3a9f73[_0x3fa2('0xe0')]||_0x3fa2('0x30')==_0x3a9f73[_0x3fa2('0x7a')][_0x3fa2('0xc')]||this[_0x3fa2('0x12f')](_0x285189,_0x2d11f3,_0x1e94b3,_0x3a9f73,_0x4a4cae[_0x3fa2('0x134')]());return _0xb95378;}[_0x3fa2('0xa')](_0x46838c,_0x4bedad){const _0x140b59=_0x46838c[_0x3fa2('0x50')]();this[_0x3fa2('0x12b')][_0x3fa2('0x79')](_0x3688e4=>{_0x3688e4[_0x3fa2('0xd7')](_0x140b59,{'range':_0x4bedad});});}['_addThreadToSuggestion'](_0x52ea34){const _0x29355b=_0x52ea34['id'],_0x1cfcd0=this['editor'][_0x3fa2('0x88')]['get'](_0x3fa2('0x36'));this[_0x3fa2('0x11d')][_0x3fa2('0x5e')](_0x29355b)||this[_0x3fa2('0x11d')]['addCommentThread']({'channelId':_0x1cfcd0,'threadId':_0x29355b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x18a2f5=this[_0x3fa2('0x11d')][_0x3fa2('0xc3')](_0x29355b);_0x18a2f5['unbind'](_0x3fa2('0x142')),_0x18a2f5['isRemovable']=!0x1,_0x52ea34[_0x3fa2('0x96')]=_0x18a2f5;}[_0x3fa2('0x15')](_0x41310e,_0x35a964,_0x3a9a63,_0x5e1618){if(_0x41310e[_0x3fa2('0x29')]!=_0x35a964||_0x41310e[_0x3fa2('0xea')]!=_0x3a9a63||_0x41310e[_0x3fa2('0xb5')]['id']!=_0x5e1618)throw this[_0x3fa2('0x22')][_0x3fa2('0x70')]('track-changes-suggestion-data-mismatch'),new _0xfcec74('track-changes-suggestion-data-mismatch',this);}[_0x3fa2('0x8d')](_0x199581,_0x2bde51){const _0x341947=_0x199581['getFirstRange']();if(_0x2bde51['isEqual'](_0x341947))_0x199581[_0x3fa2('0x7d')]();else{if(_0x341947[_0x3fa2('0x9d')](_0x2bde51)){const _0x4ac40e=this['_model'][_0x3fa2('0xe1')](_0x2bde51[_0x3fa2('0x125')]['nodeBefore'],'end');this['_setSuggestionRange'](_0x199581,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x341947[_0x3fa2('0x125')],_0x4ac40e));const _0x1321ab=_0x33d3f5(),_0x1fa38c=_0x199581['creator']['id'],_0x1374d0=_0x199581[_0x3fa2('0x29')]+':'+_0x199581['subType'];this[_0x3fa2('0xf7')]({'id':_0x1321ab,'type':_0x1374d0,'createdAt':new Date(),'authorId':_0x1fa38c,'data':_0x199581[_0x3fa2('0x106')],'attributes':_0x199581['attributes']});const _0x1baa00=this[_0x3fa2('0x12b')][_0x3fa2('0xe1')](_0x2bde51['end'][_0x3fa2('0x84')],_0x3fa2('0xde')),_0x343b00=this[_0x3fa2('0x12b')]['createRange'](_0x1baa00,_0x341947[_0x3fa2('0x11a')]);this[_0x3fa2('0x12f')](_0x1374d0,_0x1321ab,_0x1fa38c,_0x343b00);}else{if(_0x341947[_0x3fa2('0x91')](_0x2bde51[_0x3fa2('0x125')])){const _0x3d13e9=this[_0x3fa2('0x12b')][_0x3fa2('0xe1')](_0x2bde51['start']['nodeBefore'],_0x3fa2('0x11a'));this[_0x3fa2('0xa')](_0x199581,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x341947[_0x3fa2('0x125')],_0x3d13e9));}else{const _0x5acda8=this[_0x3fa2('0x12b')]['createPositionAt'](_0x2bde51[_0x3fa2('0x11a')][_0x3fa2('0x84')],'after');this['_setSuggestionRange'](_0x199581,this[_0x3fa2('0x12b')]['createRange'](_0x5acda8,_0x341947[_0x3fa2('0x11a')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2066b4){for(const {suggestion:_0x4df3b2,meta:_0x472c9a}of this[_0x3fa2('0xeb')](_0x2066b4,_0x3fa2('0xda'))){if(!_0x472c9a['isOwn'])continue;const _0x47e057=_0x4df3b2[_0x3fa2('0x25')]();for(const _0x16407a of _0x47e057)if(!_0x2066b4[_0x3fa2('0x9a')](_0x16407a)[_0x3fa2('0x6a')])return!0x0;}return!0x1;}[_0x3fa2('0x4f')](_0x8e9b7d){const _0x23677d=this[_0x3fa2('0x22')][_0x3fa2('0x13f')][_0x3fa2('0x2c')](_0x3fa2('0x136'))[_0x3fa2('0x80')](_0x8e9b7d);if(!_0x23677d)throw new _0xfcec74(_0x3fa2('0x7c'),this);return _0x23677d;}[_0x3fa2('0x7f')](_0xf65df8){const _0x271d16=this[_0x3fa2('0x22')][_0x3fa2('0x13f')][_0x3fa2('0x2c')](_0x3fa2('0x136')),_0x1e3591=_0x1ebb43(_0x3fa2('0xa7')+_0xf65df8),_0x89d179=_0x271d16[_0x3fa2('0x80')](_0x1e3591);return _0x89d179||_0x271d16[_0x3fa2('0xf4')]({'id':_0x1e3591,'name':_0xf65df8});}['_createSuggestion'](_0x25666b,_0x249ea5,_0x55d568,_0xcdd294,_0x2c74f4){const _0x3686d3=this[_0x3fa2('0x4f')](_0xcdd294),_0x32684f=this[_0x3fa2('0xce')][_0x3fa2('0xaf')](_0x25666b,_0x249ea5,_0x55d568,_0x3686d3,_0x2c74f4,_0x5843ca=>this[_0x3fa2('0x99')](_0x55d568,{'attributes':_0x5843ca}));return this[_0x3fa2('0x71')](_0x32684f,_0x3fa2('0x9b'),()=>{this[_0x3fa2('0x99')](_0x55d568,{'state':_0x3fa2('0x133')});},{'priority':'high'}),this[_0x3fa2('0x71')](_0x32684f,_0x3fa2('0x115'),()=>{this[_0x3fa2('0x99')](_0x55d568,{'state':_0x3fa2('0x2a')});},{'priority':_0x3fa2('0x26')}),this[_0x3fa2('0xed')][_0x3fa2('0xf1')](_0x55d568,_0x32684f),this[_0x3fa2('0xec')]['set'](_0x32684f,_0x3fa2('0x82')),_0x32684f;}[_0x3fa2('0x5a')](_0x3f36c5){const _0x113dd3=_0x3f36c5[_0x3fa2('0xf6')](':');return{'group':_0x113dd3[0x0],'type':_0x113dd3[0x1],'subType':_0x113dd3[_0x3fa2('0x6a')]>=0x5?_0x113dd3[0x2]:null,'id':_0x113dd3['length']<0x5?_0x113dd3[0x2]:_0x113dd3[0x3],'authorId':_0x113dd3[_0x3fa2('0x6a')]<0x5?_0x113dd3[0x3]:_0x113dd3[0x4],'markerCount':0x6==_0x113dd3[_0x3fa2('0x6a')]?_0x113dd3[0x5]:null};}['_breakSuggestionMarker'](_0x5e788c,_0x1eda9b,_0x57b846){const _0x1104f0=_0x5e788c['getFirstRange'](),_0x1e0217=_0x1104f0[_0x3fa2('0x125')],_0x4b640f=_0x1104f0[_0x3fa2('0x11a')];this[_0x3fa2('0xa')](_0x5e788c,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x1e0217,_0x1eda9b));const _0x6625da=_0x33d3f5(),_0x3a63e9=_0x5e788c[_0x3fa2('0xb5')]['id'],_0x45d75d=_0x5e788c[_0x3fa2('0x29')]+(_0x5e788c[_0x3fa2('0xea')]?':'+_0x5e788c['subType']:'');this[_0x3fa2('0xf7')]({'id':_0x6625da,'type':_0x45d75d,'createdAt':new Date(),'authorId':_0x3a63e9,'originalSuggestionId':_0x5e788c['id'],'attributes':_0x5e788c[_0x3fa2('0xa9')],'data':_0x5e788c[_0x3fa2('0x106')]}),_0x3fa2('0x118')==_0x5e788c[_0x3fa2('0x29')]&&(_0x57b846=this[_0x3fa2('0x12b')][_0x3fa2('0xfd')](_0x57b846['parent'])),this[_0x3fa2('0x12f')](_0x45d75d,_0x6625da,_0x3a63e9,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x57b846,_0x4b640f));}[_0x3fa2('0xeb')](_0x546541,_0xa323dd=null){const _0x10dbec=[],_0x33131=this[_0x3fa2('0x12b')]['schema'],_0x1ae30c=this['editor'][_0x3fa2('0x13f')]['get']('Users')['me'];for(const _0x32bb46 of this[_0x3fa2('0x1e')]())if(_0x32bb46[_0x3fa2('0x94')]&&(!_0xa323dd||_0x32bb46['type']==_0xa323dd))for(const _0x596d1d of _0x32bb46[_0x3fa2('0x25')]()){const _0x574938=_0x546541[_0x3fa2('0x125')]['isEqual'](_0x596d1d[_0x3fa2('0x11a')])||_0x546541[_0x3fa2('0x11a')][_0x3fa2('0xa0')](_0x596d1d['start']);if(_0x574938||_0x546541[_0x3fa2('0xd6')](_0x596d1d)){const _0x493722=_0x546541[_0x3fa2('0x9d')](_0x596d1d)&&Bt(_0x33131,_0x596d1d[_0x3fa2('0x125')],_0x546541),_0x442cbf=_0x596d1d['containsRange'](_0x546541)&&Bt(_0x33131,_0x546541[_0x3fa2('0x125')],_0x596d1d);_0x10dbec[_0x3fa2('0xe5')]({'suggestion':_0x32bb46,'meta':{'isOwn':_0x1ae30c==_0x32bb46[_0x3fa2('0xf8')],'isNextTo':_0x574938,'isInsideObject':_0x493722,'containsRangeInObject':_0x442cbf}});break;}}return _0x10dbec;}[_0x3fa2('0x12f')](_0x2d20d5,_0xb0e15f,_0x282806,_0xd1f230,_0xc52e93){this['_model'][_0x3fa2('0x79')](_0x57a20c=>{let _0x4d2016=_0x3fa2('0xa2')+_0x2d20d5+':'+_0xb0e15f+':'+_0x282806;_0xc52e93&&(_0x4d2016=_0x4d2016+':'+_0xc52e93),_0x57a20c[_0x3fa2('0xcc')](_0x4d2016,{'range':_0xd1f230,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3273ab){const _0x262a38=_0x3273ab['previous'],_0x4ffe77=_0x3273ab[_0x3fa2('0xe8')];_0x3273ab[_0x3fa2('0x11b')]=null,null!=_0x262a38&&(_0x262a38[_0x3fa2('0xe8')]=null),_0x3273ab[_0x3fa2('0xe8')]=null,null!=_0x4ffe77&&(_0x4ffe77[_0x3fa2('0x11b')]=null),_0x3fa2('0xbd')==this['_suggestionState'][_0x3fa2('0x2c')](_0x3273ab)&&(this[_0x3fa2('0xec')][_0x3fa2('0xf1')](_0x3273ab,_0x3fa2('0x109')),this['fire']('suggestionUnloaded',_0x3273ab,_0x262a38,_0x4ffe77));}[_0x3fa2('0xf7')](_0x55e951){const _0x56d4fc=_0x55e951['id'],_0x172a12=this['addSuggestionData'](_0x55e951);if(this['_adapter']&&this[_0x3fa2('0x7b')]['addSuggestion']){const _0x2bd79f=this[_0x3fa2('0x22')]['plugins'][_0x3fa2('0x2c')]('PendingActions'),_0x5827d2=_0x172a12['hasComments'],_0x2a4392=_0x172a12[_0x3fa2('0xea')]?_0x172a12[_0x3fa2('0x29')]+':'+_0x172a12['subType']:_0x172a12['type'],_0x439284=this['editor'][_0x3fa2('0x6d')],_0x48050f=_0x2bd79f[_0x3fa2('0xa1')](_0x10d468(_0x439284,_0x3fa2('0x122'))),_0xa37a48={'id':_0x56d4fc,'type':_0x2a4392,'hasComments':_0x5827d2,'data':_0x55e951[_0x3fa2('0x106')]||null,'originalSuggestionId':_0x55e951[_0x3fa2('0xb8')]||null,'attributes':_0x172a12[_0x3fa2('0xa9')]};this[_0x3fa2('0x7b')][_0x3fa2('0x19')](_0xa37a48)['then'](_0x275c42=>{_0x172a12[_0x3fa2('0x2d')]=!0x0,_0x2bd79f[_0x3fa2('0x35')](_0x48050f),_0x275c42&&_0x275c42[_0x3fa2('0xf')]&&(this[_0x3fa2('0xed')][_0x3fa2('0x2c')](_0x56d4fc)[_0x3fa2('0xf')]=_0x275c42[_0x3fa2('0xf')]);})[_0x3fa2('0x38')](_0xcf6f2e=>{throw _0xb801fd('error-saving-suggestion-data-suggestion-discarded'),this[_0x3fa2('0x22')][_0x3fa2('0xa8')][_0x3fa2('0xd4')]({'isUndoable':!0x1},()=>{_0x172a12['discard']();}),_0x172a12[_0x3fa2('0x62')](),this[_0x3fa2('0xed')]['delete'](_0x172a12['id']),this[_0x3fa2('0xec')][_0x3fa2('0x47')](_0x172a12),_0xcf6f2e;});}return _0x172a12;}[_0x3fa2('0x99')](_0x3146bc,_0x51df08){const _0x44c52b=this[_0x3fa2('0x22')]['plugins'][_0x3fa2('0x2c')](_0x3fa2('0x16')),_0x33da6a=this[_0x3fa2('0xc1')](_0x3146bc);if(this[_0x3fa2('0x7b')]&&this[_0x3fa2('0x7b')]['updateSuggestion']){if(_0x33da6a[_0x3fa2('0x2d')]){const _0x1d2556=_0x44c52b[_0x3fa2('0xa1')](_0x10d468(this[_0x3fa2('0x22')][_0x3fa2('0x6d')],'PENDING_ACTION_SUGGESTION'));this[_0x3fa2('0x7b')][_0x3fa2('0x4')](_0x3146bc,_0x51df08)['then'](()=>{_0x44c52b[_0x3fa2('0x35')](_0x1d2556);});}else _0x33da6a['on'](_0x3fa2('0x112'),()=>{this['_updateSuggestionData'](_0x3146bc,_0x51df08);});}}[_0x3fa2('0xae')](_0x489fb6){if(!this[_0x3fa2('0x7b')]||!this['_adapter']['getSuggestion'])throw new _0xfcec74(_0x3fa2('0xc5'),this);return this['_adapter'][_0x3fa2('0xc1')](_0x489fb6);}[_0x3fa2('0x108')](_0x3e5c85){const {id:_0x4c12d,type:_0x5986b7,subType:_0x5cc01a,authorId:_0x3a4d4b}=this[_0x3fa2('0x5a')](_0x3e5c85),_0x3416e3=this['_suggestions'][_0x3fa2('0x2c')](_0x4c12d)||this['_createSuggestion'](_0x5986b7,_0x5cc01a,_0x4c12d,_0x3a4d4b,{});switch(this[_0x3fa2('0x15')](_0x3416e3,_0x5986b7,_0x5cc01a,_0x3a4d4b),this[_0x3fa2('0xec')]['get'](_0x3416e3)){case _0x3fa2('0x82'):this[_0x3fa2('0xae')](_0x4c12d)[_0x3fa2('0x6')](_0x3087a2=>{let _0x3c379e=Promise[_0x3fa2('0x143')]();_0x3087a2[_0x3fa2('0x13a')]&&(_0x3c379e=this[_0x3fa2('0x11d')][_0x3fa2('0x6c')]({'channelId':this['editor'][_0x3fa2('0x88')]['get'](_0x3fa2('0x36')),'threadId':_0x4c12d})),_0x3c379e['then'](()=>{this[_0x3fa2('0xad')](_0x3087a2)[_0x3fa2('0x2d')]=!0x0;});}),this[_0x3fa2('0xec')][_0x3fa2('0xf1')](_0x3416e3,_0x3fa2('0xc9'));break;case _0x3fa2('0x109'):this[_0x3fa2('0x99')](_0x4c12d,{'state':_0x3fa2('0xc7')});case _0x3fa2('0xc6'):this[_0x3fa2('0xec')][_0x3fa2('0xf1')](_0x3416e3,'ready'),this[_0x3fa2('0x104')](_0x3fa2('0x18'),_0x3416e3);break;case _0x3fa2('0xbd'):this[_0x3fa2('0x104')](_0x3fa2('0xff'),_0x3416e3);}return _0x3416e3[_0x3fa2('0x124')](_0x3e5c85),_0x3416e3;}[_0x3fa2('0x4e')](_0x20df01){const _0x48da87=Array[_0x3fa2('0x3')](_0x20df01)[_0x3fa2('0x1b')](_0x2bfe17=>!_0x2bfe17['isMultiRange']),_0x25d8ca=this[_0x3fa2('0x1e')]({'skipNotAttached':!0x0})['filter'](_0xc7c411=>!_0xc7c411['isMultiRange']),_0x178af5=_0x25d8ca[_0x3fa2('0x1b')](_0x50d2d8=>!_0x20df01[_0x3fa2('0x67')](_0x50d2d8)),_0x3b75bb=new Map(_0x25d8ca[_0x3fa2('0xc2')](_0x2204b4=>[_0x2204b4,this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x2204b4['type'],_0x2204b4[_0x3fa2('0xea')],_0x3fa2('0x2f'))])),_0x5263dc=new Map(_0x25d8ca[_0x3fa2('0xc2')](_0x504314=>[_0x504314,_0x504314[_0x3fa2('0x42')]()])),_0x4d7d07=new Set(),_0x2283b5=new Set();for(let _0x212374=0x0;_0x212374<_0x48da87[_0x3fa2('0x6a')];_0x212374++)_0x2a6e56(_0x48da87[_0x212374],_0x48da87,_0x212374+0x1);for(let _0x520075=0x0;_0x520075<_0x48da87[_0x3fa2('0x6a')];_0x520075++)_0x2a6e56(_0x48da87[_0x520075],_0x178af5,0x0);for(let _0x5b1bd3=0x0;_0x5b1bd3<_0x48da87[_0x3fa2('0x6a')];_0x5b1bd3++){const _0x109038=_0x48da87[_0x5b1bd3];!_0x2283b5['has'](_0x109038)&&_0x109038['previous']&&(_0x109038[_0x3fa2('0x11b')][_0x3fa2('0xe8')]===_0x109038&&(_0x109038['previous']['next']=null),_0x109038['previous']=null),!_0x4d7d07[_0x3fa2('0x67')](_0x109038)&&_0x109038['next']&&(_0x109038[_0x3fa2('0xe8')][_0x3fa2('0x11b')]===_0x109038&&(_0x109038['next'][_0x3fa2('0x11b')]=null),_0x109038[_0x3fa2('0xe8')]=null);}function _0x2a6e56(_0x48fe8a,_0x3b215a,_0x283bfe){for(let _0x4f96f4=_0x283bfe;_0x4f96f4<_0x3b215a[_0x3fa2('0x6a')];_0x4f96f4++){const _0x10780c=_0x3e42ef(_0x48fe8a,_0x3b215a[_0x4f96f4]);_0x10780c&&(_0x10780c[0x0][_0x3fa2('0xe8')]=_0x10780c[0x1],_0x10780c[0x1]['previous']=_0x10780c[0x0],_0x4d7d07['add'](_0x10780c[0x0]),_0x2283b5[_0x3fa2('0xa1')](_0x10780c[0x1]));}}function _0x3e42ef(_0x6d3312,_0x520fbf){if(_0x6d3312[_0x3fa2('0xf8')]['id']!==_0x520fbf[_0x3fa2('0xf8')]['id'])return null;const _0xfdb277=_0x3b75bb[_0x3fa2('0x2c')](_0x6d3312)(_0x6d3312,_0x520fbf,_0x5263dc[_0x3fa2('0x2c')](_0x6d3312),_0x5263dc[_0x3fa2('0x2c')](_0x520fbf));if(!_0xfdb277)return null;return _0x3b75bb['get'](_0x520fbf)(_0x6d3312,_0x520fbf,_0x5263dc[_0x3fa2('0x2c')](_0x6d3312),_0x5263dc[_0x3fa2('0x2c')](_0x520fbf))?_0xfdb277[0x1][_0x3fa2('0x96')]&&_0xfdb277[0x1]['commentThread'][_0x3fa2('0x6a')]?null:_0xfdb277:null;}}[_0x3fa2('0x98')](_0x2411f4){const _0x399f71=Array[_0x3fa2('0x3')](_0x2411f4),_0x25b47a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x303e89=_0x25b47a['filter'](_0x302cdf=>!_0x2411f4['has'](_0x302cdf)),_0x1fdf2d=new Map(_0x399f71[_0x3fa2('0xc2')](_0x2fbcd9=>[_0x2fbcd9,this[_0x3fa2('0xce')][_0x3fa2('0x41')](_0x2fbcd9['type'],_0x2fbcd9['subType'],_0x3fa2('0xf0'))])),_0x75d49=new Map(_0x25b47a[_0x3fa2('0xc2')](_0x47a9c6=>[_0x47a9c6,_0x47a9c6['getRanges']()]));for(let _0x5253f0=0x0;_0x5253f0<_0x399f71[_0x3fa2('0x6a')];_0x5253f0++){if(_0x3009f1(this,_0x399f71[_0x5253f0],_0x399f71,_0x5253f0+0x1))return!0x0;}for(let _0x55f701=0x0;_0x55f701<_0x399f71[_0x3fa2('0x6a')];_0x55f701++){if(_0x3009f1(this,_0x399f71[_0x55f701],_0x303e89,0x0))return!0x0;}return!0x1;function _0x3009f1(_0x12a746,_0x277332,_0x30adbd,_0x50951f){for(let _0x5a2f33=_0x50951f;_0x5a2f33<_0x30adbd['length'];_0x5a2f33++){const _0x1c421b=_0x30adbd[_0x5a2f33];if(_0x1c421b[_0x3fa2('0x29')]!==_0x277332['type']||_0x1c421b[_0x3fa2('0xf8')]['id']!==_0x277332[_0x3fa2('0xf8')]['id']||_0x1c421b[_0x3fa2('0xea')]!==_0x277332[_0x3fa2('0xea')])continue;const _0x1588b8=_0x1fdf2d['get'](_0x277332),_0x582fc7=_0x75d49[_0x3fa2('0x2c')](_0x277332),_0xd8d649=_0x75d49[_0x3fa2('0x2c')](_0x1c421b),_0x47d00b=_0x277332[_0x3fa2('0x96')]&&_0x277332[_0x3fa2('0x96')][_0x3fa2('0x6a')],_0x1350b8=_0x1c421b[_0x3fa2('0x96')]&&_0x1c421b[_0x3fa2('0x96')][_0x3fa2('0x6a')];if(!_0x47d00b&&_0x1588b8(_0xd8d649,_0x582fc7))return _0x12a746[_0x3fa2('0x9e')](_0x1c421b,_0x277332),_0x75d49[_0x3fa2('0x47')](_0x277332),!0x0;if(!_0x1350b8&&_0x1588b8(_0x582fc7,_0xd8d649))return _0x12a746[_0x3fa2('0x9e')](_0x277332,_0x1c421b),_0x75d49[_0x3fa2('0x47')](_0x1c421b),!0x0;}return!0x1;}}[_0x3fa2('0x9e')](_0x3e375b,_0x4066f0){if(_0x3e375b[_0x3fa2('0xb')])for(const _0x316eeb of _0x4066f0[_0x3fa2('0x25')]())_0x3e375b['addRange'](_0x316eeb);else{const _0x124b48=_0x4066f0[_0x3fa2('0x42')]()[_0x3fa2('0x11a')];this['_setSuggestionRange'](_0x3e375b,this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x3e375b[_0x3fa2('0x42')]()[_0x3fa2('0x125')],_0x124b48));}_0x4066f0['removeMarkers']();}}class Dt{constructor(_0x8aef8a){this[_0x3fa2('0x85')]=_0x8aef8a,this[_0x3fa2('0x12b')]=_0x8aef8a[_0x3fa2('0xa8')],this[_0x3fa2('0x57')]=new Map(),this[_0x3fa2('0x66')]=new Map(),this[_0x3fa2('0x61')]();}['buildSuggestion'](_0x5c49fa,_0x36737a,_0x4186f0,_0x553235,_0x2fd392,_0x465405){return new _0x4a4cae(this['_model'],{'type':_0x5c49fa,'subType':_0x36737a,'id':_0x4186f0,'author':_0x553235,'creator':_0x553235,'attributes':_0x2fd392,'onAttributesChange':_0x465405,'onAccept':(..._0x2c2450)=>this[_0x3fa2('0x41')](_0x5c49fa,_0x36737a,'accept')(..._0x2c2450),'onDiscard':(..._0xc8ac2)=>this[_0x3fa2('0x41')](_0x5c49fa,_0x36737a,'discard')(..._0xc8ac2)});}['registerCustomCallback'](_0x17b548,_0xb53e19,_0x573e9b,_0x4f64f7){const _0x3247db=_0x17b548+':'+_0xb53e19+':'+_0x573e9b;this['_customCallbacks'][_0x3fa2('0xf1')](_0x3247db,_0x4f64f7);}['getSuggestionCallback'](_0x5a4e6d,_0x1fef5c,_0x2aad2a){const _0x3f12e4=_0x5a4e6d+':'+_0x1fef5c+':'+_0x2aad2a;return this[_0x3fa2('0x57')][_0x3fa2('0x2c')](_0x3f12e4)||this[_0x3fa2('0x66')][_0x3fa2('0x2c')](_0x5a4e6d+':'+_0x2aad2a);}[_0x3fa2('0x61')](){const _0x197aca=()=>{},_0x7e5b1=_0x388d7e=>{_0x388d7e[_0x3fa2('0xac')]((_0x17c582,_0x11834e)=>_0x17c582['start'][_0x3fa2('0x119')](_0x11834e['start'])?0x1:-0x1),this[_0x3fa2('0x12b')][_0x3fa2('0x79')](_0x4feb4e=>{for(const _0xdcabde of _0x388d7e){let _0x49d58c;_0x49d58c=_0xdcabde['end'][_0x3fa2('0x55')]&&_0xdcabde[_0x3fa2('0x11a')][_0x3fa2('0x84')]==_0xdcabde[_0x3fa2('0x125')][_0x3fa2('0x58')]?_0x4feb4e[_0x3fa2('0x39')](_0xdcabde['start'][_0x3fa2('0x58')],'on'):_0x4feb4e['createSelection'](_0xdcabde),this[_0x3fa2('0x12b')]['deleteContent'](_0x49d58c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x12c377=(_0x2adb6e,_0x1678c8)=>{this['_model'][_0x3fa2('0x79')](_0x4b3812=>{const {commandName:_0x2f25ec,commandParams:_0x1f1162=[]}=_0x1678c8,_0x9b03c4=_0x2adb6e[_0x3fa2('0xc2')](_0x1a29a2=>(_t(_0x1a29a2)&&(_0x1a29a2=this[_0x3fa2('0x12b')][_0x3fa2('0x12d')](_0x1a29a2[_0x3fa2('0x11a')])),_0x1a29a2))[_0x3fa2('0x1b')](_0x42b16e=>'$graveyard'!==_0x42b16e['root'][_0x3fa2('0xc')]);if(_0x9b03c4[_0x3fa2('0x6a')]<0x1)return;const _0x5a414d=Array[_0x3fa2('0x3')](this[_0x3fa2('0x12b')][_0x3fa2('0x123')][_0x3fa2('0x7')]['getRanges']())[_0x3fa2('0xc2')](_0x1e010c=>_0x526301[_0x3fa2('0xfa')](_0x1e010c));_0x4b3812[_0x3fa2('0x2b')](_0x9b03c4);for(const _0x433042 of this['_editor'][_0x3fa2('0xb9')][_0x3fa2('0xb9')]())_0x433042['refresh']();_0x1f1162[_0x3fa2('0xe5')]({'forceDefaultExecution':!0x0}),this[_0x3fa2('0x85')][_0x3fa2('0x63')](_0x2f25ec,..._0x1f1162);const _0x2221d4=_0x5a414d[_0x3fa2('0x1b')](_0x1e8675=>'$graveyard'!=_0x1e8675[_0x3fa2('0x7a')][_0x3fa2('0xc')]);_0x2221d4['length']>0x0&&_0x4b3812[_0x3fa2('0x2b')](_0x2221d4);for(const _0x110190 of _0x5a414d)_0x110190[_0x3fa2('0x93')]();});},_0x6fdf84=(_0x309a8b,_0x9c387c)=>0x1==_0x309a8b[_0x3fa2('0x6a')]&&0x1==_0x9c387c[_0x3fa2('0x6a')]&&_0x309a8b[0x0][_0x3fa2('0x11a')][_0x3fa2('0xa0')](_0x9c387c[0x0]['start']),_0x2dbc7c=(_0x125232,_0x48932d,_0x126db0,_0x4e7244)=>xt(_0x125232,_0x48932d,_0x126db0,_0x4e7244,this[_0x3fa2('0x12b')])?[_0x125232,_0x48932d]:xt(_0x48932d,_0x125232,_0x4e7244,_0x126db0,this[_0x3fa2('0x12b')])?[_0x48932d,_0x125232]:null;this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x13e'),_0x197aca),this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x10c'),_0x7e5b1),this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x12'),_0x6fdf84),this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x138'),_0x2dbc7c),this['_defaultCallbacks'][_0x3fa2('0xf1')](_0x3fa2('0x135'),_0x7e5b1),this['_defaultCallbacks']['set']('deletion:discard',_0x197aca),this[_0x3fa2('0x66')]['set'](_0x3fa2('0xfc'),_0x6fdf84),this['_defaultCallbacks']['set'](_0x3fa2('0xbc'),_0x2dbc7c),this['_defaultCallbacks'][_0x3fa2('0xf1')]('formatInline:accept',_0x12c377),this[_0x3fa2('0x66')]['set']('formatInline:discard',_0x197aca),this['_defaultCallbacks'][_0x3fa2('0xf1')](_0x3fa2('0x3a'),_0x6fdf84),this[_0x3fa2('0x66')]['set'](_0x3fa2('0x3e'),_0x197aca),this[_0x3fa2('0x66')]['set'](_0x3fa2('0x10e'),_0x12c377),this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x76'),_0x197aca),this[_0x3fa2('0x66')][_0x3fa2('0xf1')](_0x3fa2('0x10f'),_0x6fdf84),this['_defaultCallbacks'][_0x3fa2('0xf1')](_0x3fa2('0x10a'),_0x197aca);}}function Bt(_0x527e96,_0x5b81df,_0x210c0f){for(const _0x42e92d of _0x5b81df[_0x3fa2('0x84')][_0x3fa2('0xb3')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x42e92d['root']==_0x42e92d)return!0x1;if(!_0x210c0f[_0x3fa2('0x8c')](_0x42e92d))return!0x1;if(_0x527e96[_0x3fa2('0x95')](_0x42e92d)||_0x527e96[_0x3fa2('0xd8')](_0x42e92d))return!0x0;}return!0x1;}function _t(_0x374220){return _0x374220['end']['parent']==_0x374220[_0x3fa2('0x125')]['nodeAfter']&&_0x374220[_0x3fa2('0x11a')][_0x3fa2('0x45')];}function Mt(_0x20d9b8,_0x345266,_0x44c51f,_0xb23147){const _0x15e779=_0x1ab404=>!_0x1ab404[_0x3fa2('0x116')]['is'](_0x3fa2('0x78'))&&!_0xb23147[_0x3fa2('0x95')](_0x1ab404['item']),_0x573e88=_0x20d9b8['start'][_0x3fa2('0x3b')](_0x15e779),_0x1e215a=_0x20d9b8[_0x3fa2('0x11a')][_0x3fa2('0x3b')](_0x15e779,{'direction':'backward'});return(!_0x20d9b8[_0x3fa2('0x125')][_0x3fa2('0xa0')](_0x573e88)||!_0x20d9b8['end'][_0x3fa2('0xa0')](_0x1e215a))&&(_0x573e88[_0x3fa2('0x119')](_0x1e215a)?_0x44c51f[_0x3fa2('0xd7')](_0x345266,{'range':_0x44c51f[_0x3fa2('0x12d')](_0x573e88,_0x1e215a)}):_0x44c51f[_0x3fa2('0x24')](_0x345266),!0x0);}function $t(_0x526761){return _0x1ebb43(_0x526761);}function Nt(_0x171588){const _0x2bbda3=_0x171588[_0x3fa2('0x125')][_0x3fa2('0x58')];return _0x2bbda3&&_0x2bbda3['is'](_0x3fa2('0x4d'));}function Rt(_0x5eef7e,_0x50819f){const _0x386d7a=_0x50819f[_0x3fa2('0xe9')][_0x3fa2('0x95')](_0x5eef7e)||_0x50819f[_0x3fa2('0xe9')][_0x3fa2('0x114')](_0x5eef7e);return _0x50819f['createRange'](_0x50819f[_0x3fa2('0xe1')](_0x5eef7e,'before'),_0x386d7a?_0x50819f[_0x3fa2('0xbf')](_0x5eef7e):_0x50819f[_0x3fa2('0xe1')](_0x5eef7e,_0x3fa2('0x11a')));}function xt(_0x156d17,_0x29c807,_0x319fe0,_0x490dbe,_0x59f7a8){if(_0x319fe0[_0x3fa2('0x11a')]['isEqual'](_0x490dbe['start']))return!0x0;if(_0x156d17['type']!=_0x29c807[_0x3fa2('0x29')])return!0x1;if(!_0x319fe0[_0x3fa2('0x11a')]['isTouching'](_0x490dbe[_0x3fa2('0x125')]))return!0x1;const _0xba0714=_0x59f7a8[_0x3fa2('0x12d')](_0x319fe0[_0x3fa2('0x11a')],_0x490dbe[_0x3fa2('0x125')])[_0x3fa2('0xd9')]();for(const _0x2c324e of _0xba0714)if(['elementStart',_0x3fa2('0xe7')][_0x3fa2('0x139')](_0x2c324e['type'])&&_0x59f7a8[_0x3fa2('0xe9')][_0x3fa2('0xd8')](_0x2c324e[_0x3fa2('0x116')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2761=['stopListening','discardButton','isEnabled','comments.maxCommentsWhenCollapsed','config','previous','push','_updateController','getFirstRange','getAllAdjacentSuggestions','comments','length','_disableComments','CommentView','delete','set','button','execute','suggestionLoaded','hasSuggestion','commands','commandName','size','EditorAnnotations','init','get','model','remove','trackChanges','actionView','isInContent','plugins','getDescriptions','addSourceCollector','registerAnnotation','createCommentThreadController','discardAllSuggestions','createAnnotationView','isMultiRange','acceptAllSuggestions','reduce','_descriptionFactory','TrackChangesEditing','mainView','_destroyController','_refreshActiveMarkers','isDirty','editing','suggestionUnloaded','_handleControllerBuffer','unbind','type','listenTo','filter','some','lowest','Accept\x20all\x20selected\x20suggestions','CommentsRepository','Annotations','locale','view','editor','value','pluginName','bind','requires','head','_suggestionToController','_viewToController','switchbutton','getSuggestion','change:activeAnnotations','commentThread','arrowView','toMany','descriptionParts','comments.maxCommentCharsWhenCollapsed','trackChanges.disableComments','change:previous','_handleSuggestionControllerDelayed','add','_createUIButton','has','map','addComment','getJoined','_annotationViews','focus','Accept\x20all\x20suggestions','clear','TrackChangesUI','buttonView','refreshSelectedViews','_initializeController','from','suggestion-','source','isOn','values','comments.maxThreadTotalWeight','destroy','innerView','componentFactory','discardSelectedSuggestions','getMarkerNames','define'];(function(_0x5bda58,_0x2761e6){const _0x393673=function(_0x32d93c){while(--_0x32d93c){_0x5bda58['push'](_0x5bda58['shift']());}};_0x393673(++_0x2761e6);}(_0x2761,0x1e6));const _0x3936=function(_0x5bda58,_0x2761e6){_0x5bda58=_0x5bda58-0x0;let _0x393673=_0x2761[_0x5bda58];return _0x393673;};import{Plugin as _0x4dd960}from'ckeditor5/src/core';import{Collection as _0x4d2619}from'ckeditor5/src/utils';import{Model as _0x13a652,SplitButtonView as _0x2abe9e,createDropdown as _0x5744dc,addListToDropdown as _0x4e2ba4}from'ckeditor5/src/ui';import{Users as _0x15bfee,getDateTimeFormatter as _0x1ab487,getAllMarkersDomElementsSorted as _0x29874f}from'ckeditor5-collaboration/src/collaboration-core';import _0x42b51e from'./trackchangesediting';import _0x94ad27 from'./ui/suggestioncontroller';import _0x54aee4 from'./ui/view/suggestionthreadview';import{getTranslation as _0xfdcd67}from'./utils/common-translations';import _0x2ce502 from'../theme/icons/track-changes.svg';export default class d extends _0x4dd960{static get[_0x3936('0x3')](){return[_0x42b51e,_0x15bfee,_0x3936('0x65'),_0x3936('0x66'),_0x3936('0x43')];}static get[_0x3936('0x1')](){return _0x3936('0x1c');}constructor(_0x5055c8){super(_0x5055c8),this[_0x3936('0x5')]=new Map(),this[_0x3936('0x6')]=new Map(),this[_0x3936('0x18')]=new Map(),this[_0x3936('0x5d')]=new Map();const _0x42ce35=this[_0x3936('0x69')]['config'];_0x42ce35[_0x3936('0x2b')]('trackChanges.SuggestionThreadView',_0x54aee4),_0x42ce35[_0x3936('0x2b')]('trackChanges.disableComments',!0x1),this[_0x3936('0x38')]=_0x42ce35[_0x3936('0x45')](_0x3936('0xf'));}[_0x3936('0x11')](_0xe1d317,_0x3f29b3){0x0===this['_handleControllerBuffer'][_0x3936('0x42')]&&setTimeout(()=>{for(const [_0x39e8bd,_0x43a099]of this[_0x3936('0x5d')]){const _0x2a7516=this['_suggestionToController'][_0x3936('0x14')](_0x39e8bd);_0x2a7516||_0x43a099?_0x2a7516&&_0x43a099&&this['_destroyController'](_0x39e8bd):this['_initializeController'](_0x39e8bd);}this[_0x3936('0x69')][_0x3936('0x4b')][_0x3936('0x45')](_0x3936('0x43'))[_0x3936('0x1e')](),this[_0x3936('0x59')](),this[_0x3936('0x5d')][_0x3936('0x1b')]();},0xa),this[_0x3936('0x5d')][_0x3936('0x3b')](_0xe1d317,_0x3f29b3);}[_0x3936('0x44')](){const _0x350399=this[_0x3936('0x69')],_0x2be38e=_0x350399[_0x3936('0x4b')][_0x3936('0x45')](_0x3936('0x56')),_0x413564=_0x350399[_0x3936('0x4b')]['get'](_0x3936('0x66')),_0x303d67=_0x350399['plugins']['get'](_0x3936('0x43')),_0x5c3672=_0x350399[_0x3936('0x4b')][_0x3936('0x45')]('CommentsRepository');_0x350399['ui'][_0x3936('0x28')][_0x3936('0x12')](_0x3936('0x48'),_0x4d07da=>this['_createUIButton'](_0x4d07da)),_0x303d67[_0x3936('0x4d')](()=>{const _0x4c88cb=[];for(const [_0x5505cf,_0x123f89]of Array['from'](this[_0x3936('0x5')])){const _0x60205c=_0x5505cf[_0x3936('0x35')](),_0x4c5351=[];for(const _0x58d7d9 of _0x60205c){if(!_0x58d7d9[_0x3936('0x4a')])continue;if(_0x58d7d9[_0x3936('0x52')]){_0x4c5351['push'](..._0x58d7d9['getRanges']());continue;}const _0x237e50=_0x58d7d9[_0x3936('0x34')]();if(_0x4c5351[_0x3936('0x37')]>0x0){const _0x5b53d8=_0x4c5351[0x0][_0x3936('0x17')](_0x237e50);if(_0x5b53d8){_0x4c5351[0x0]=_0x5b53d8;continue;}}_0x4c5351[_0x3936('0x32')](_0x237e50);}_0x4c88cb[_0x3936('0x32')]([_0x123f89['view'],_0x4c5351]);}return _0x4c88cb;}),this[_0x3936('0x60')](_0x2be38e,_0x3936('0x3e'),(_0x545c55,_0xf27c21)=>{this[_0x3936('0x60')](_0xf27c21,_0x3936('0x10'),(_0x1e4c9d,_0x5384b5,_0x4dfa4f,_0x537631)=>{_0xf27c21['isInContent']&&(null==_0x4dfa4f?(this['_updateController'](_0x537631[_0x3936('0x4')]),this[_0x3936('0x11')](_0xf27c21,!0x1)):(this[_0x3936('0x33')](_0x4dfa4f[_0x3936('0x4')]),this[_0x3936('0x11')](_0xf27c21,!0x0)));}),null===_0xf27c21[_0x3936('0x31')]?this['_handleSuggestionControllerDelayed'](_0xf27c21,!0x1):this[_0x3936('0x33')](_0xf27c21['head']);}),this[_0x3936('0x60')](_0x2be38e,_0x3936('0x5c'),(_0x4fa73b,_0x9c2372,_0x1b6811)=>{this[_0x3936('0x2c')](_0x9c2372,'change:previous'),this['_handleControllerBuffer'][_0x3936('0x3a')](_0x9c2372);const _0x346289=_0x1b6811?_0x1b6811[_0x3936('0x4')]:_0x9c2372,_0x14924f=this[_0x3936('0x5')][_0x3936('0x45')](_0x346289);null!==_0x1b6811&&this[_0x3936('0x33')](_0x346289),null===_0x1b6811&&_0x14924f&&this[_0x3936('0x58')](_0x9c2372);}),this['listenTo'](_0x2be38e,'suggestionChanged',(_0x51256a,_0x9182f5)=>{this[_0x3936('0x33')](_0x9182f5);}),this[_0x3936('0x60')](_0x413564,_0x3936('0x9'),()=>{this[_0x3936('0x59')]();}),this[_0x3936('0x60')](_0x5c3672,_0x3936('0x16'),(_0x81cd36,{threadId:_0x2664cd,isFromAdapter:_0x27903d})=>{if(_0x27903d||!_0x2be38e[_0x3936('0x3f')](_0x2664cd))return;const _0x5b3e38=_0x2be38e[_0x3936('0x8')](_0x2664cd);this['_suggestionToController'][_0x3936('0x45')](_0x5b3e38)[_0x3936('0x68')][_0x3936('0x19')]();},{'priority':_0x3936('0x63')});}[_0x3936('0x59')](){const _0x1b7d39=this[_0x3936('0x69')][_0x3936('0x4b')][_0x3936('0x45')](_0x3936('0x66')),_0x54a329=this[_0x3936('0x69')][_0x3936('0x4b')][_0x3936('0x45')](_0x3936('0x56')),_0x132570=Array[_0x3936('0x20')](_0x1b7d39['activeAnnotations'],_0x2d5369=>_0x2d5369[_0x3936('0x27')])[_0x3936('0x61')](_0x1eb1b7=>this[_0x3936('0x6')]['has'](_0x1eb1b7)),_0x53b32e=[];for(const _0x1dc825 of _0x132570){const _0xc4c7aa=this[_0x3936('0x6')]['get'](_0x1dc825)[_0x3936('0x46')]['getAllAdjacentSuggestions']();_0x53b32e[_0x3936('0x32')](..._0xc4c7aa[_0x3936('0x54')]((_0x16eb1f,_0x5e2bf1)=>[..._0x16eb1f,..._0x5e2bf1[_0x3936('0x2a')]()],[]));}_0x54a329['activeMarkers']=_0x53b32e;}[_0x3936('0x13')](_0xbbd4b5){const _0x250a65=_0x5744dc(_0xbbd4b5,_0x2abe9e),_0x5db9c2=this[_0x3936('0x69')][_0x3936('0x40')][_0x3936('0x45')](_0x3936('0x48')),_0xb1fed3=_0xfdcd67(_0xbbd4b5,'Track\x20changes');_0x250a65[_0x3936('0x1d')]['set']({'tooltip':_0xb1fed3,'label':_0xb1fed3,'icon':_0x2ce502}),_0x250a65['buttonView']['bind'](_0x3936('0x23'))['to'](_0x5db9c2,_0x3936('0x0')),_0x250a65['buttonView']['on'](_0x3936('0x3d'),()=>{_0x5db9c2[_0x3936('0x3d')](),this[_0x3936('0x69')][_0x3936('0x5b')]['view'][_0x3936('0x19')]();});const _0x2653bb=new _0x4d2619(),_0x58cd29=[{'type':_0x3936('0x7'),'model':{'withText':!0x0,'label':_0xb1fed3,'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0xfdcd67(_0xbbd4b5,_0x3936('0x1a')),'commandName':_0x3936('0x53')}},{'type':'button','model':{'withText':!0x0,'label':_0xfdcd67(_0xbbd4b5,_0x3936('0x64')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0xfdcd67(_0xbbd4b5,'Discard\x20all\x20suggestions'),'commandName':_0x3936('0x50')}},{'type':_0x3936('0x3c'),'model':{'withText':!0x0,'label':_0xfdcd67(_0xbbd4b5,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3936('0x29')}}];for(const _0x2d779e of _0x58cd29){let _0x2f1d54={'type':'separator'};if(_0x2d779e[_0x3936('0x46')]){const _0x4131b5=new _0x13a652(_0x2d779e[_0x3936('0x46')]),_0x27c7e2=this['editor']['commands'][_0x3936('0x45')](_0x4131b5[_0x3936('0x41')]);_0x4131b5[_0x3936('0x2')](_0x3936('0x23'),_0x3936('0x2e'))['to'](_0x27c7e2,'value',_0x3936('0x2e')),_0x2f1d54={'type':_0x2d779e['type'],'model':_0x4131b5};}_0x2653bb['add'](_0x2f1d54);}_0x4e2ba4(_0x250a65,_0x2653bb);const _0x1f2937=_0x58cd29[_0x3936('0x61')](_0xecfc8f=>null!=_0xecfc8f[_0x3936('0x46')])[_0x3936('0x15')](_0x1a1a77=>this[_0x3936('0x69')][_0x3936('0x40')][_0x3936('0x45')](_0x1a1a77[_0x3936('0x46')][_0x3936('0x41')])),_0x1a01e0=_0x250a65[_0x3936('0x1d')];return _0x1a01e0[_0x3936('0x49')]['unbind'](_0x3936('0x2e')),_0x1a01e0[_0x3936('0xb')][_0x3936('0x5e')]('isEnabled'),_0x1a01e0['actionView'][_0x3936('0x2')](_0x3936('0x2e'))['to'](_0x5db9c2,'isEnabled'),_0x1a01e0['arrowView'][_0x3936('0x2')](_0x3936('0x2e'))[_0x3936('0xc')](_0x1f2937,'isEnabled',(..._0x231e67)=>_0x231e67[_0x3936('0x62')](_0x1f130d=>_0x1f130d)),_0x250a65['on']('execute',_0x3fa33b=>{this[_0x3936('0x69')][_0x3936('0x3d')](_0x3fa33b[_0x3936('0x22')][_0x3936('0x41')]),this[_0x3936('0x69')][_0x3936('0x5b')]['view'][_0x3936('0x19')]();}),_0x250a65;}[_0x3936('0x1f')](_0x3bb242){const _0x2f3e0b=this[_0x3936('0x69')],_0x5e0c0c=_0x2f3e0b[_0x3936('0x30')],_0xd9eb99=_0x2f3e0b['plugins'][_0x3936('0x45')]('Annotations'),_0x465dea=_0x2f3e0b[_0x3936('0x4b')][_0x3936('0x45')](_0x3936('0x65')),_0x4a02e1=_0x2f3e0b[_0x3936('0x4b')]['get'](_0x3936('0x43')),_0x3d868a=_0x2f3e0b[_0x3936('0x4b')][_0x3936('0x45')](_0x15bfee)['me'],_0x1165c7=_0x5e0c0c[_0x3936('0x45')](_0x3936('0x48'))['SuggestionThreadView'],{CommentsListView:_0x391f8f,CommentThreadInputView:_0xc6c9}=_0x2f3e0b[_0x3936('0x4b')][_0x3936('0x45')]('CommentsUI');let _0x414577,_0x215cc4;this['_annotationViews'][_0x3936('0x14')](_0x3bb242['id'])?(_0x215cc4=this['_annotationViews'][_0x3936('0x45')](_0x3bb242['id']),_0x414577=_0x215cc4[_0x3936('0x57')]):(_0x414577=new _0x1165c7(_0x2f3e0b['locale'],_0x3bb242,_0x3d868a,{'disableComments':this[_0x3936('0x38')],'editorConfig':_0x5e0c0c[_0x3936('0x45')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5e0c0c[_0x3936('0x45')](_0x3936('0x2f')),'maxThreadTotalWeight':_0x5e0c0c['get'](_0x3936('0x25')),'maxCommentCharsWhenCollapsed':_0x5e0c0c[_0x3936('0x45')](_0x3936('0xe')),'formatDateTime':_0x1ab487(_0x5e0c0c[_0x3936('0x45')](_0x3936('0x67'))),'CommentView':_0x5e0c0c[_0x3936('0x45')](_0x3936('0x36'))[_0x3936('0x39')],'CommentsListView':_0x391f8f,'CommentThreadInputView':_0xc6c9}),_0x414577['acceptButton']['on'](_0x3936('0x3d'),()=>{_0x2f3e0b[_0x3936('0x5b')][_0x3936('0x68')]['focus']();}),_0x414577[_0x3936('0x2d')]['on'](_0x3936('0x3d'),()=>{_0x2f3e0b[_0x3936('0x5b')][_0x3936('0x68')][_0x3936('0x19')]();}),_0x215cc4=_0xd9eb99[_0x3936('0x51')](this['editor']['locale'],_0x414577),_0x215cc4['bind'](_0x3936('0x5a'))['to'](_0x414577,_0x3936('0x5a')),_0x215cc4[_0x3936('0x2')](_0x3936('0x37'))['to'](_0x414577),_0x215cc4[_0x3936('0x2')](_0x3936('0x5f'))['to'](_0x414577,'type',_0x176a2f=>'suggestion-'+_0x176a2f),this[_0x3936('0x18')][_0x3936('0x3b')](_0x3bb242['id'],_0x215cc4));const _0x524b4d=_0x465dea[_0x3936('0x4f')](_0x3bb242[_0x3936('0xa')],_0x414577),_0x51abd8=new _0x94ad27(_0x2f3e0b,_0x3bb242,_0x414577,_0x524b4d),_0x446d39=_0x3bb242['getAllAdjacentSuggestions']()['filter'](_0x5469b1=>_0x5469b1[_0x3936('0x4a')]);_0x414577[_0x3936('0xd')]=_0x2f3e0b['plugins'][_0x3936('0x45')]('TrackChangesEditing')[_0x3936('0x55')]['getDescriptions'](_0x446d39),this[_0x3936('0x5')][_0x3936('0x3b')](_0x3bb242,_0x51abd8),this[_0x3936('0x6')][_0x3936('0x3b')](_0x414577,_0x51abd8);const _0x1e6de9=_0xd9eb99['createAnnotation']({'view':_0x215cc4,'target':()=>{const _0x4d6012=[],_0x163752=_0x3bb242[_0x3936('0x35')]()[_0x3936('0x61')](_0x4869d7=>_0x4869d7[_0x3936('0x4a')]);for(const _0x501da9 of _0x163752)_0x4d6012[_0x3936('0x32')](..._0x501da9['getMarkers']());return _0x29874f(_0x2f3e0b[_0x3936('0x5b')],_0x4d6012);},'type':()=>_0x3936('0x21')+_0x51abd8[_0x3936('0x68')]['type']});_0xd9eb99[_0x3936('0x12')](_0x1e6de9),_0x4a02e1[_0x3936('0x4e')](_0x1e6de9);}[_0x3936('0x58')](_0x14661b){const _0x33076d=this['editor'][_0x3936('0x4b')]['get'](_0x3936('0x66')),_0x45dd82=this[_0x3936('0x5')]['get'](_0x14661b),_0xe5b97a=_0x45dd82[_0x3936('0x68')],_0x5ce9d8=_0x33076d['getByInnerView'](_0xe5b97a);_0x5ce9d8&&_0x33076d[_0x3936('0x47')](_0x5ce9d8),this[_0x3936('0x5')][_0x3936('0x3a')](_0x14661b),this[_0x3936('0x6')][_0x3936('0x3a')](_0xe5b97a),_0x45dd82[_0x3936('0x26')]();}['_updateController'](_0x3442df){if(!_0x3442df[_0x3936('0x4a')]||!this['_suggestionToController'][_0x3936('0x14')](_0x3442df))return;const _0x49a208=this[_0x3936('0x69')][_0x3936('0x4b')]['get']('TrackChangesEditing'),_0x620c01=this[_0x3936('0x5')][_0x3936('0x45')](_0x3442df),_0x2e9f78=_0x3442df[_0x3936('0x35')]();_0x620c01[_0x3936('0x68')][_0x3936('0xd')]=_0x49a208[_0x3936('0x55')][_0x3936('0x4c')](_0x2e9f78);}[_0x3936('0x26')](){for(const _0x28323f of this[_0x3936('0x5')]['keys']())this[_0x3936('0x58')](_0x28323f);for(const _0x114674 of this[_0x3936('0x18')][_0x3936('0x24')]())_0x114674[_0x3936('0x57')]['destroy']();super['destroy']();}}
23
+ const _0x5bc5=['comments.editorConfig','remove','previous','editing','head','suggestionChanged','comments.maxThreadTotalWeight','push','_destroyController','discardButton','_initializeController','keys','change:activeAnnotations','refreshSelectedViews','hasSuggestion','get','model','arrowView','CommentsUI','filter','getDescriptions','_disableComments','clear','actionView','getMarkers','comments.maxCommentCharsWhenCollapsed','createCommentThreadController','stopListening','isDirty','Discard\x20all\x20suggestions','mainView','button','buttonView','plugins','TrackChangesEditing','_createUIButton','source','_suggestionToController','requires','change:previous','execute','suggestion-','toMany','getJoined','acceptSelectedSuggestions','_refreshActiveMarkers','values','CommentView','commandName','discardAllSuggestions','view','EditorAnnotations','commands','listenTo','value','trackChanges','CommentsRepository','_handleSuggestionControllerDelayed','reduce','comments','isOn','destroy','descriptionParts','isMultiRange','Accept\x20all\x20selected\x20suggestions','isInContent','comments.maxCommentsWhenCollapsed','addSourceCollector','commentThread','bind','Annotations','TrackChangesUI','editor','createAnnotationView','Discard\x20all\x20selected\x20suggestions','innerView','createAnnotation','separator','add','_handleControllerBuffer','size','getRanges','delete','length','_viewToController','trackChanges.disableComments','trackChanges.SuggestionThreadView','type','map','focus','activeMarkers','locale','addComment','_descriptionFactory','_annotationViews','has','suggestionLoaded','lowest','Accept\x20all\x20suggestions','set','some','getSuggestion','config','isEnabled','getAllAdjacentSuggestions','_updateController','from','suggestionUnloaded'];(function(_0x437999,_0x5bc5d7){const _0x14ef3d=function(_0x131e54){while(--_0x131e54){_0x437999['push'](_0x437999['shift']());}};_0x14ef3d(++_0x5bc5d7);}(_0x5bc5,0x17f));const _0x14ef=function(_0x437999,_0x5bc5d7){_0x437999=_0x437999-0x0;let _0x14ef3d=_0x5bc5[_0x437999];return _0x14ef3d;};import{Plugin as _0x463b65}from'ckeditor5/src/core';import{Collection as _0x46b417}from'ckeditor5/src/utils';import{Model as _0x53783c,SplitButtonView as _0x3c3c15,createDropdown as _0x1db81f,addListToDropdown as _0x546c65}from'ckeditor5/src/ui';import{Users as _0x54908e,getDateTimeFormatter as _0xbf3300,getAllMarkersDomElementsSorted as _0x48a108}from'ckeditor5-collaboration/src/collaboration-core';import _0x530faf from'./trackchangesediting';import _0xd7b3bc from'./ui/suggestioncontroller';import _0x13e39a from'./ui/view/suggestionthreadview';import{getTranslation as _0x4e8de6}from'./utils/common-translations';import _0xc94d3b from'../theme/icons/track-changes.svg';export default class d extends _0x463b65{static get[_0x14ef('0x57')](){return[_0x530faf,_0x54908e,'CommentsRepository',_0x14ef('0xb'),'EditorAnnotations'];}static get['pluginName'](){return _0x14ef('0xc');}constructor(_0xe4d773){super(_0xe4d773),this['_suggestionToController']=new Map(),this[_0x14ef('0x19')]=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f5e4b=this['editor'][_0x14ef('0x2b')];_0x1f5e4b['define'](_0x14ef('0x1b'),_0x13e39a),_0x1f5e4b['define'](_0x14ef('0x1a'),!0x1),this[_0x14ef('0x46')]=_0x1f5e4b[_0x14ef('0x40')](_0x14ef('0x1a'));}[_0x14ef('0x6a')](_0x1d103e,_0x3cdddc){0x0===this['_handleControllerBuffer'][_0x14ef('0x15')]&&setTimeout(()=>{for(const [_0x3ec971,_0x2f97ed]of this[_0x14ef('0x14')]){const _0x2bc5ea=this[_0x14ef('0x56')][_0x14ef('0x24')](_0x3ec971);_0x2bc5ea||_0x2f97ed?_0x2bc5ea&&_0x2f97ed&&this[_0x14ef('0x39')](_0x3ec971):this[_0x14ef('0x3b')](_0x3ec971);}this[_0x14ef('0xd')][_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x64'))[_0x14ef('0x3e')](),this['_refreshActiveMarkers'](),this[_0x14ef('0x14')][_0x14ef('0x47')]();},0xa),this[_0x14ef('0x14')][_0x14ef('0x28')](_0x1d103e,_0x3cdddc);}['init'](){const _0x15f2ba=this[_0x14ef('0xd')],_0x4a29d2=_0x15f2ba[_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x53')),_0x5418ee=_0x15f2ba['plugins'][_0x14ef('0x40')](_0x14ef('0xb')),_0x267c4a=_0x15f2ba[_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x64')),_0x348abd=_0x15f2ba[_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x69'));_0x15f2ba['ui']['componentFactory'][_0x14ef('0x13')](_0x14ef('0x68'),_0x3a42a0=>this[_0x14ef('0x54')](_0x3a42a0)),_0x267c4a[_0x14ef('0x8')](()=>{const _0x5106af=[];for(const [_0x530e4e,_0x15d17f]of Array[_0x14ef('0x2f')](this[_0x14ef('0x56')])){const _0x60ec90=_0x530e4e[_0x14ef('0x2d')](),_0xbfaf20=[];for(const _0x46f2db of _0x60ec90){if(!_0x46f2db[_0x14ef('0x6')])continue;if(_0x46f2db[_0x14ef('0x4')]){_0xbfaf20[_0x14ef('0x38')](..._0x46f2db[_0x14ef('0x16')]());continue;}const _0x15f8a2=_0x46f2db['getFirstRange']();if(_0xbfaf20[_0x14ef('0x18')]>0x0){const _0x50ea9b=_0xbfaf20[0x0][_0x14ef('0x5c')](_0x15f8a2);if(_0x50ea9b){_0xbfaf20[0x0]=_0x50ea9b;continue;}}_0xbfaf20['push'](_0x15f8a2);}_0x5106af[_0x14ef('0x38')]([_0x15d17f['view'],_0xbfaf20]);}return _0x5106af;}),this[_0x14ef('0x66')](_0x4a29d2,_0x14ef('0x25'),(_0x2a4a8,_0x370cf7)=>{this['listenTo'](_0x370cf7,_0x14ef('0x58'),(_0x4c4a61,_0x298085,_0x47ee1e,_0x4b0b96)=>{_0x370cf7[_0x14ef('0x6')]&&(null==_0x47ee1e?(this['_updateController'](_0x4b0b96[_0x14ef('0x35')]),this[_0x14ef('0x6a')](_0x370cf7,!0x1)):(this[_0x14ef('0x2e')](_0x47ee1e['head']),this[_0x14ef('0x6a')](_0x370cf7,!0x0)));}),null===_0x370cf7[_0x14ef('0x33')]?this[_0x14ef('0x6a')](_0x370cf7,!0x1):this[_0x14ef('0x2e')](_0x370cf7[_0x14ef('0x35')]);}),this['listenTo'](_0x4a29d2,_0x14ef('0x30'),(_0x56a3d2,_0x17c4cc,_0x4c2687)=>{this[_0x14ef('0x4c')](_0x17c4cc,_0x14ef('0x58')),this[_0x14ef('0x14')][_0x14ef('0x17')](_0x17c4cc);const _0x53fbbc=_0x4c2687?_0x4c2687[_0x14ef('0x35')]:_0x17c4cc,_0x56e54f=this['_suggestionToController'][_0x14ef('0x40')](_0x53fbbc);null!==_0x4c2687&&this[_0x14ef('0x2e')](_0x53fbbc),null===_0x4c2687&&_0x56e54f&&this[_0x14ef('0x39')](_0x17c4cc);}),this[_0x14ef('0x66')](_0x4a29d2,_0x14ef('0x36'),(_0x5d4576,_0x114004)=>{this['_updateController'](_0x114004);}),this[_0x14ef('0x66')](_0x5418ee,_0x14ef('0x3d'),()=>{this[_0x14ef('0x5e')]();}),this[_0x14ef('0x66')](_0x348abd,_0x14ef('0x21'),(_0xcac8da,{threadId:_0x4c78d7,isFromAdapter:_0x1f2418})=>{if(_0x1f2418||!_0x4a29d2[_0x14ef('0x3f')](_0x4c78d7))return;const _0x414159=_0x4a29d2[_0x14ef('0x2a')](_0x4c78d7);this[_0x14ef('0x56')]['get'](_0x414159)[_0x14ef('0x63')][_0x14ef('0x1e')]();},{'priority':_0x14ef('0x26')});}[_0x14ef('0x5e')](){const _0x2a6a6a=this['editor']['plugins'][_0x14ef('0x40')]('Annotations'),_0x5e86c6=this[_0x14ef('0xd')][_0x14ef('0x52')]['get']('TrackChangesEditing'),_0x1c85cf=Array[_0x14ef('0x2f')](_0x2a6a6a['activeAnnotations'],_0x2a6c13=>_0x2a6c13[_0x14ef('0x10')])['filter'](_0x3144b7=>this[_0x14ef('0x19')][_0x14ef('0x24')](_0x3144b7)),_0x3cf5e9=[];for(const _0xf79774 of _0x1c85cf){const _0xb956ce=this[_0x14ef('0x19')][_0x14ef('0x40')](_0xf79774)[_0x14ef('0x41')]['getAllAdjacentSuggestions']();_0x3cf5e9['push'](..._0xb956ce[_0x14ef('0x6b')]((_0x4e1ac6,_0x3a4352)=>[..._0x4e1ac6,..._0x3a4352['getMarkerNames']()],[]));}_0x5e86c6[_0x14ef('0x1f')]=_0x3cf5e9;}[_0x14ef('0x54')](_0x6d12e8){const _0x248f16=_0x1db81f(_0x6d12e8,_0x3c3c15),_0x4a13b1=this[_0x14ef('0xd')]['commands'][_0x14ef('0x40')](_0x14ef('0x68')),_0x534184=_0x4e8de6(_0x6d12e8,'Track\x20changes');_0x248f16['buttonView']['set']({'tooltip':_0x534184,'label':_0x534184,'icon':_0xc94d3b}),_0x248f16[_0x14ef('0x51')]['bind']('isOn')['to'](_0x4a13b1,'value'),_0x248f16[_0x14ef('0x51')]['on']('execute',()=>{_0x4a13b1['execute'](),this[_0x14ef('0xd')][_0x14ef('0x34')][_0x14ef('0x63')][_0x14ef('0x1e')]();});const _0x43ca94=new _0x46b417(),_0x40c26c=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x534184,'commandName':_0x14ef('0x68')}},{'type':_0x14ef('0x12')},{'type':'button','model':{'withText':!0x0,'label':_0x4e8de6(_0x6d12e8,_0x14ef('0x27')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x4e8de6(_0x6d12e8,_0x14ef('0x5')),'commandName':_0x14ef('0x5d')}},{'type':_0x14ef('0x50'),'model':{'withText':!0x0,'label':_0x4e8de6(_0x6d12e8,_0x14ef('0x4e')),'commandName':_0x14ef('0x62')}},{'type':'button','model':{'withText':!0x0,'label':_0x4e8de6(_0x6d12e8,_0x14ef('0xf')),'commandName':'discardSelectedSuggestions'}}];for(const _0x9b500b of _0x40c26c){let _0x28dcfa={'type':_0x14ef('0x12')};if(_0x9b500b[_0x14ef('0x41')]){const _0x5c43fc=new _0x53783c(_0x9b500b[_0x14ef('0x41')]),_0x7b74b2=this['editor'][_0x14ef('0x65')][_0x14ef('0x40')](_0x5c43fc[_0x14ef('0x61')]);_0x5c43fc['bind'](_0x14ef('0x1'),_0x14ef('0x2c'))['to'](_0x7b74b2,_0x14ef('0x67'),'isEnabled'),_0x28dcfa={'type':_0x9b500b['type'],'model':_0x5c43fc};}_0x43ca94[_0x14ef('0x13')](_0x28dcfa);}_0x546c65(_0x248f16,_0x43ca94);const _0x5b8123=_0x40c26c[_0x14ef('0x44')](_0x2949ea=>null!=_0x2949ea[_0x14ef('0x41')])[_0x14ef('0x1d')](_0x4078ca=>this[_0x14ef('0xd')][_0x14ef('0x65')][_0x14ef('0x40')](_0x4078ca[_0x14ef('0x41')][_0x14ef('0x61')])),_0xe7fe60=_0x248f16[_0x14ef('0x51')];return _0xe7fe60[_0x14ef('0x48')]['unbind']('isEnabled'),_0xe7fe60['arrowView']['unbind'](_0x14ef('0x2c')),_0xe7fe60[_0x14ef('0x48')][_0x14ef('0xa')](_0x14ef('0x2c'))['to'](_0x4a13b1,'isEnabled'),_0xe7fe60[_0x14ef('0x42')]['bind'](_0x14ef('0x2c'))[_0x14ef('0x5b')](_0x5b8123,_0x14ef('0x2c'),(..._0x28793e)=>_0x28793e[_0x14ef('0x29')](_0x2230eb=>_0x2230eb)),_0x248f16['on'](_0x14ef('0x59'),_0x65ebe4=>{this['editor']['execute'](_0x65ebe4[_0x14ef('0x55')][_0x14ef('0x61')]),this[_0x14ef('0xd')][_0x14ef('0x34')]['view'][_0x14ef('0x1e')]();}),_0x248f16;}[_0x14ef('0x3b')](_0xd74f02){const _0x2b0e24=this['editor'],_0x4603d3=_0x2b0e24['config'],_0x3fcc07=_0x2b0e24[_0x14ef('0x52')]['get'](_0x14ef('0xb')),_0x4dcadd=_0x2b0e24[_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x69')),_0x58747d=_0x2b0e24[_0x14ef('0x52')][_0x14ef('0x40')]('EditorAnnotations'),_0x152775=_0x2b0e24['plugins']['get'](_0x54908e)['me'],_0x10e31b=_0x4603d3[_0x14ef('0x40')]('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1f8e32,CommentThreadInputView:_0x10c80b}=_0x2b0e24['plugins'][_0x14ef('0x40')](_0x14ef('0x43'));let _0x1add89,_0x46775c;this[_0x14ef('0x23')][_0x14ef('0x24')](_0xd74f02['id'])?(_0x46775c=this[_0x14ef('0x23')][_0x14ef('0x40')](_0xd74f02['id']),_0x1add89=_0x46775c[_0x14ef('0x4f')]):(_0x1add89=new _0x10e31b(_0x2b0e24[_0x14ef('0x20')],_0xd74f02,_0x152775,{'disableComments':this[_0x14ef('0x46')],'editorConfig':_0x4603d3[_0x14ef('0x40')](_0x14ef('0x31')),'maxCommentsWhenCollapsed':_0x4603d3[_0x14ef('0x40')](_0x14ef('0x7')),'maxThreadTotalWeight':_0x4603d3[_0x14ef('0x40')](_0x14ef('0x37')),'maxCommentCharsWhenCollapsed':_0x4603d3[_0x14ef('0x40')](_0x14ef('0x4a')),'formatDateTime':_0xbf3300(_0x4603d3[_0x14ef('0x40')](_0x14ef('0x20'))),'CommentView':_0x4603d3[_0x14ef('0x40')](_0x14ef('0x0'))[_0x14ef('0x60')],'CommentsListView':_0x1f8e32,'CommentThreadInputView':_0x10c80b}),_0x1add89['acceptButton']['on'](_0x14ef('0x59'),()=>{_0x2b0e24['editing'][_0x14ef('0x63')][_0x14ef('0x1e')]();}),_0x1add89[_0x14ef('0x3a')]['on']('execute',()=>{_0x2b0e24['editing'][_0x14ef('0x63')]['focus']();}),_0x46775c=_0x3fcc07[_0x14ef('0xe')](this[_0x14ef('0xd')][_0x14ef('0x20')],_0x1add89),_0x46775c[_0x14ef('0xa')](_0x14ef('0x4d'))['to'](_0x1add89,_0x14ef('0x4d')),_0x46775c[_0x14ef('0xa')]('length')['to'](_0x1add89),_0x46775c[_0x14ef('0xa')](_0x14ef('0x1c'))['to'](_0x1add89,'type',_0x3b37ae=>'suggestion-'+_0x3b37ae),this[_0x14ef('0x23')][_0x14ef('0x28')](_0xd74f02['id'],_0x46775c));const _0x41fe1e=_0x4dcadd[_0x14ef('0x4b')](_0xd74f02[_0x14ef('0x9')],_0x1add89),_0x47d72f=new _0xd7b3bc(_0x2b0e24,_0xd74f02,_0x1add89,_0x41fe1e),_0x31eb4f=_0xd74f02[_0x14ef('0x2d')]()['filter'](_0x24a00f=>_0x24a00f[_0x14ef('0x6')]);_0x1add89[_0x14ef('0x3')]=_0x2b0e24[_0x14ef('0x52')]['get'](_0x14ef('0x53'))[_0x14ef('0x22')]['getDescriptions'](_0x31eb4f),this['_suggestionToController'][_0x14ef('0x28')](_0xd74f02,_0x47d72f),this['_viewToController'][_0x14ef('0x28')](_0x1add89,_0x47d72f);const _0x1f0037=_0x3fcc07[_0x14ef('0x11')]({'view':_0x46775c,'target':()=>{const _0x9d8ebf=[],_0x2d6a5f=_0xd74f02[_0x14ef('0x2d')]()['filter'](_0x54d6f1=>_0x54d6f1[_0x14ef('0x6')]);for(const _0x5d1df4 of _0x2d6a5f)_0x9d8ebf[_0x14ef('0x38')](..._0x5d1df4[_0x14ef('0x49')]());return _0x48a108(_0x2b0e24['editing'],_0x9d8ebf);},'type':()=>_0x14ef('0x5a')+_0x47d72f[_0x14ef('0x63')]['type']});_0x3fcc07['add'](_0x1f0037),_0x58747d['registerAnnotation'](_0x1f0037);}[_0x14ef('0x39')](_0x3caffc){const _0x3d5b1c=this['editor']['plugins'][_0x14ef('0x40')](_0x14ef('0xb')),_0x2aebb2=this[_0x14ef('0x56')][_0x14ef('0x40')](_0x3caffc),_0x83c4f6=_0x2aebb2[_0x14ef('0x63')],_0x30e6ba=_0x3d5b1c['getByInnerView'](_0x83c4f6);_0x30e6ba&&_0x3d5b1c[_0x14ef('0x32')](_0x30e6ba),this['_suggestionToController'][_0x14ef('0x17')](_0x3caffc),this[_0x14ef('0x19')][_0x14ef('0x17')](_0x83c4f6),_0x2aebb2[_0x14ef('0x2')]();}[_0x14ef('0x2e')](_0x38729e){if(!_0x38729e['isInContent']||!this[_0x14ef('0x56')][_0x14ef('0x24')](_0x38729e))return;const _0x3fdf33=this[_0x14ef('0xd')][_0x14ef('0x52')][_0x14ef('0x40')](_0x14ef('0x53')),_0x4aa070=this[_0x14ef('0x56')][_0x14ef('0x40')](_0x38729e),_0xc2e09d=_0x38729e['getAllAdjacentSuggestions']();_0x4aa070[_0x14ef('0x63')][_0x14ef('0x3')]=_0x3fdf33[_0x14ef('0x22')][_0x14ef('0x45')](_0xc2e09d);}[_0x14ef('0x2')](){for(const _0x3aa0c7 of this[_0x14ef('0x56')][_0x14ef('0x3c')]())this[_0x14ef('0x39')](_0x3aa0c7);for(const _0x4b06da of this['_annotationViews'][_0x14ef('0x5f')]())_0x4b06da['mainView']['destroy']();super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20c7=['bind','_acceptCommand','commentThreadController','locale','isEnabled','add','_removePendingAction','canEditAt','discardSuggestion','remove','getRanges','unbind','_setPendingAction','listenTo','model','acceptSuggestion','get','plugins','destroy','view','change:isDirty','_editor','canDiscard','commands','execute','_pendingAction','_discardCommand','canAccept'];(function(_0x2d80ca,_0x20c70d){const _0x58e522=function(_0x597286){while(--_0x597286){_0x2d80ca['push'](_0x2d80ca['shift']());}};_0x58e522(++_0x20c70d);}(_0x20c7,0x123));const _0x58e5=function(_0x2d80ca,_0x20c70d){_0x2d80ca=_0x2d80ca-0x0;let _0x58e522=_0x20c7[_0x2d80ca];return _0x58e522;};import{ObservableMixin as _0x1efebd}from'ckeditor5/src/utils';import{getTranslation as _0x209df0}from'../utils/common-translations';export default class qt extends _0x1efebd(){constructor(_0x2803c6,_0x15cfc4,_0x15c443,_0x35109b){super(),this[_0x58e5('0x3')]=_0x15cfc4,this[_0x58e5('0x8')]=_0x15c443,this[_0x58e5('0x13')]=_0x35109b,this[_0x58e5('0xa')]=_0x2803c6,this['_acceptCommand']=_0x2803c6[_0x58e5('0xc')][_0x58e5('0x5')](_0x58e5('0x4')),this[_0x58e5('0xf')]=_0x2803c6['commands'][_0x58e5('0x5')]('discardSuggestion'),this['view'][_0x58e5('0x11')](_0x58e5('0x15'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2665d5,_0x25fc23)=>_0x2665d5||_0x25fc23),this[_0x58e5('0x8')]['bind'](_0x58e5('0x10'))['to'](this[_0x58e5('0x12')],_0x58e5('0x15'),_0xc363b7=>_0xc363b7&&this[_0x58e5('0xa')][_0x58e5('0x3')]['canEditAt'](_0x15cfc4[_0x58e5('0x1b')]())),this[_0x58e5('0x8')][_0x58e5('0x11')](_0x58e5('0xb'))['to'](this[_0x58e5('0xf')],_0x58e5('0x15'),_0x5a02f8=>_0x5a02f8&&this[_0x58e5('0xa')][_0x58e5('0x3')][_0x58e5('0x18')](_0x15cfc4[_0x58e5('0x1b')]())),this['_pendingAction']=null,_0x15c443['isDirty']&&this[_0x58e5('0x1')](),this['listenTo'](_0x15c443,_0x58e5('0x4'),()=>this[_0x58e5('0x4')]()),this[_0x58e5('0x2')](_0x15c443,_0x58e5('0x19'),()=>this[_0x58e5('0x19')]()),this['listenTo'](_0x15c443,_0x58e5('0x9'),()=>{_0x15c443['isDirty']?this[_0x58e5('0x1')]():this[_0x58e5('0x17')]();});}[_0x58e5('0x4')](){this[_0x58e5('0x12')][_0x58e5('0xd')](this['model']['id']);}['discardSuggestion'](){this['_discardCommand'][_0x58e5('0xd')](this[_0x58e5('0x3')]['id']);}[_0x58e5('0x7')](){this[_0x58e5('0x8')][_0x58e5('0x0')](_0x58e5('0x15')),this[_0x58e5('0x8')][_0x58e5('0x0')]('canAccept'),this[_0x58e5('0x8')][_0x58e5('0x0')](_0x58e5('0xb')),this['stopListening'](),this[_0x58e5('0x13')][_0x58e5('0x7')](),this[_0x58e5('0xe')]&&this['_removePendingAction']();}[_0x58e5('0x1')](){const _0x30ceb2=_0x209df0(this[_0x58e5('0xa')][_0x58e5('0x14')],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this[_0x58e5('0xa')]['plugins'][_0x58e5('0x5')]('PendingActions')[_0x58e5('0x16')](_0x30ceb2);}[_0x58e5('0x17')](){null!==this[_0x58e5('0xe')]&&this[_0x58e5('0xa')][_0x58e5('0x6')]['get']('PendingActions')[_0x58e5('0x1a')](this[_0x58e5('0xe')]),this[_0x58e5('0xe')]=null;}}
23
+ const _0x206e=['canDiscard','_removePendingAction','commentThreadController','canAccept','add','get','_setPendingAction','change:isDirty','_editor','unbind','remove','canEditAt','_discardCommand','stopListening','_acceptCommand','locale','PENDING_ACTION_SUGGESTION','PendingActions','plugins','bind','isDirty','discardSuggestion','isEnabled','_pendingAction','execute','listenTo','commands','view','destroy','acceptSuggestion','model'];(function(_0x322f83,_0x206e7e){const _0x5e41cd=function(_0x557060){while(--_0x557060){_0x322f83['push'](_0x322f83['shift']());}};_0x5e41cd(++_0x206e7e);}(_0x206e,0x137));const _0x5e41=function(_0x322f83,_0x206e7e){_0x322f83=_0x322f83-0x0;let _0x5e41cd=_0x206e[_0x322f83];return _0x5e41cd;};import{ObservableMixin as _0xf71d0f}from'ckeditor5/src/utils';import{getTranslation as _0x240373}from'../utils/common-translations';export default class qt extends _0xf71d0f(){constructor(_0x373fcf,_0x140264,_0x45ad8c,_0x1484b0){super(),this[_0x5e41('0x1d')]=_0x140264,this[_0x5e41('0x1a')]=_0x45ad8c,this['commentThreadController']=_0x1484b0,this[_0x5e41('0x7')]=_0x373fcf,this['_acceptCommand']=_0x373fcf['commands'][_0x5e41('0x4')](_0x5e41('0x1c')),this[_0x5e41('0xb')]=_0x373fcf[_0x5e41('0x19')][_0x5e41('0x4')](_0x5e41('0x14')),this['view'][_0x5e41('0x12')](_0x5e41('0x15'))['to'](this[_0x5e41('0xd')],this['_discardCommand'],(_0x4e7064,_0x27b1c6)=>_0x4e7064||_0x27b1c6),this['view'][_0x5e41('0x12')]('canAccept')['to'](this[_0x5e41('0xd')],'isEnabled',_0x1e8945=>_0x1e8945&&this[_0x5e41('0x7')][_0x5e41('0x1d')][_0x5e41('0xa')](_0x140264['getRanges']())),this['view'][_0x5e41('0x12')](_0x5e41('0x1e'))['to'](this[_0x5e41('0xb')],_0x5e41('0x15'),_0x4c1cbf=>_0x4c1cbf&&this[_0x5e41('0x7')]['model']['canEditAt'](_0x140264['getRanges']())),this[_0x5e41('0x16')]=null,_0x45ad8c[_0x5e41('0x13')]&&this['_setPendingAction'](),this[_0x5e41('0x18')](_0x45ad8c,_0x5e41('0x1c'),()=>this['acceptSuggestion']()),this['listenTo'](_0x45ad8c,_0x5e41('0x14'),()=>this[_0x5e41('0x14')]()),this[_0x5e41('0x18')](_0x45ad8c,_0x5e41('0x6'),()=>{_0x45ad8c[_0x5e41('0x13')]?this['_setPendingAction']():this[_0x5e41('0x0')]();});}[_0x5e41('0x1c')](){this['_acceptCommand'][_0x5e41('0x17')](this[_0x5e41('0x1d')]['id']);}[_0x5e41('0x14')](){this[_0x5e41('0xb')][_0x5e41('0x17')](this[_0x5e41('0x1d')]['id']);}[_0x5e41('0x1b')](){this[_0x5e41('0x1a')][_0x5e41('0x8')](_0x5e41('0x15')),this['view']['unbind'](_0x5e41('0x2')),this['view']['unbind']('canDiscard'),this[_0x5e41('0xc')](),this[_0x5e41('0x1')][_0x5e41('0x1b')](),this['_pendingAction']&&this['_removePendingAction']();}[_0x5e41('0x5')](){const _0x4c2a4d=_0x240373(this[_0x5e41('0x7')][_0x5e41('0xe')],_0x5e41('0xf'));this[_0x5e41('0x16')]=this['_editor'][_0x5e41('0x11')][_0x5e41('0x4')](_0x5e41('0x10'))[_0x5e41('0x3')](_0x4c2a4d);}[_0x5e41('0x0')](){null!==this[_0x5e41('0x16')]&&this[_0x5e41('0x7')][_0x5e41('0x11')][_0x5e41('0x4')](_0x5e41('0x10'))[_0x5e41('0x9')](this[_0x5e41('0x16')]),this[_0x5e41('0x16')]=null;}}