@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231105.0 → 0.0.0-nightly-20231107.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) 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/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45f0=['showSuggestionHighlights','createRangeIn','assign','commentThread','unbind','skipNestingCheck','range','high','batch','type','ready','options','formatBlock:accept','move','track-changes-adapter-already-set','formatInline:chain','trackChangesCommand','isAfter','addSuggestion','_cutOutSuggestionMarker','removeMarker','discardAllSuggestions','getAncestors','_suggestionState','markers','_handleNewSuggestionMarker','removed','markBlockFormat','discardSuggestion','ck-suggestion-marker--active','markMultiRangeBlockFormat','isArray','isNextTo','change:_saved','bindElementToMarker','PendingActions','deletion:','locale','document','createSelection','deletion','@external','_joinWithAdjacentSuggestions','subType','isSelectable','isInContent','stop','_isDataLoaded','always','requires','isAtEnd','_createSuggestion','toJSON','init','getSuggestion','removeComment','markerReady','formatInline:join','newRange','track-changes-user-not-found','consumable','error-saving-suggestion-data-suggestion-discarded','track-changes-suggestion-data-mismatch','markDeletion','activeMarkers','value','fetchCommentThread','getFirstMarker','split','getCustomProperty','upcast','tablePasteChainId','sort','change:data','open','_setSuggestionData','never','differ','$graveyard','containsPosition','formatBlock:join','isBlock','formatInline:discard','isIntersectingWithRange','item','isAtStart','insertion:','splice','isBefore','createdAt','_addSuggestionMarker','conversion','rejected','formatGroupId','getAllAdjacentSuggestions','resolve','discardSelectedSuggestions','join','includes','elementStart','markInsertion','dataReady','removeMarker:suggestion:formatBlock','reconvertMarker','_refreshSuggestionsChain','every','change:activeMarkers','deletion:accept','_checkSuggestionCorrectness','map','highest','define','PENDING_ACTION_SUGGESTION','insertion','selection','_isForcedDefaultExecutionBlock','isRemovable','plugins','editing','editor','isExternal','updateMarker','has','after','oldRange','head','forward','_splitMarkerName','formatBlock:discard','authorName','_adapter','isOwn','getLastMatchingPosition','hasComments','addHighlight','getRanges','_findSuggestions','change','forceDefaultExecution','_mergeNestedSuggestions','_getExternalAuthor','before','nodeBefore','getMarkers','_rangeIsInLocalUserInsertion','lowest','clear','multipleBlocks','editingDowncast','buildSuggestion','formatBlock:','_editor','addUser','for','keys','getChanges','low','_breakSuggestionMarker','_updateSuggestionData','insertion:join','from','suggestionUnloaded','commands','widget','listenTo','removeMarkers','splitPosition','data','size','createPositionAt','getSuggestions','mapper','_getSuggestionData','add','deletion:join','ck-suggestion-marker-formatBlock','getUser','addSuggestionData','return','markerName','acceptSelectedSuggestions','addComment','refresh','registerCustomCallback','adapter','start','attributes','suggestionChanged','getMultiRangeId','isDocumentOperation','isLimit','createPositionAfter','fire','dataToMarker','formatBlock:chain','isLocal','removeAttribute','setSelection','_saved','_setSuggestionRange','containsItem','suggestion','ck-suggestion-marker','chain','_customCallbacks','originalSuggestionId','_addThreadToSuggestion','markerToData','insertion:accept','some','suggestion:','rootName','_commentsRepository','_model','getItems','_trackFormatChanges','nodeAfter','setTo','next','isCollapsed','discard','set','trackChanges.mergeNestedSuggestions','track-changes-adapter-missing-getsuggestion','getNearestSelectionRange','remove','getFirstRange','addMarkerName','_removeSuggestion','fromRange','position','normal','removeClass','howMany','schema','consume','getSuggestionCallback','addClass','update:suggestion','config','isUndo','getChangedMarkers','filter','addRange','toViewElement','setAttribute','isMultiRange','clone','root','isInsideObject','Users','_joinSuggestions','formatInline','name','model','collaboration.channelId','updateSuggestion','deletion:chain','getDifference','acceptSuggestion','insertion:discard','execute','documentSelection','markMultiRangeInsertion','element','addCommentThread','CommentsRepository','data-suggestion','then','length','formatBlock','hasSuggestion','addMarker:suggestion:formatBlock','isObject','detach','formatInline:accept','notReady','deleteContent','suggestionLoaded','authoredAt','writer','unbindElementFromMarkerName','end','$marker','acceptAllSuggestions','markerToHighlight','trackChanges.trackFormatChanges','containsRangeInObject','push','getIntersection','addMarker','pluginName','_descriptionFactory','insert','_enabledCommands','parent','containerElement','substr','formatInline:','registerPostFixer','createPositionBefore','_suggestionFactory','isTouching','createRange','multi','get','_suggestions','creator','getCommentThread','enableCommand','accept','trackChanges','containsRange','elementToElement','rethrowUnexpectedError','previous','isEqual','suggestion-type','_getAuthorFromId','_defaultCallbacks','group','insertContent','enqueueChange','author','getAttribute','backward','dataDowncast'];(function(_0x414e68,_0x45f0ff){const _0x42b22c=function(_0x5074cf){while(--_0x5074cf){_0x414e68['push'](_0x414e68['shift']());}};_0x42b22c(++_0x45f0ff);}(_0x45f0,0x176));const _0x42b2=function(_0x414e68,_0x45f0ff){_0x414e68=_0x414e68-0x0;let _0x42b22c=_0x45f0[_0x414e68];return _0x42b22c;};import{Plugin as _0x250fc1,PendingActions as _0x2efc12}from'ckeditor5/src/core';import{LiveRange as _0x48c2b6}from'ckeditor5/src/engine';import{CKEditorError as _0x81a6ba,uid as _0x1dc3be,priorities as _0x2939da,logWarning as _0x184e53}from'ckeditor5/src/utils';import{toWidget as _0x446fe9}from'ckeditor5/src/widget';import{Users as _0x1af5bb,hashObject as _0x9faea9}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a98c0 from'./commands/trackchangescommand';import _0x540c87 from'./commands/acceptsuggestioncommand';import _0x1ee56e from'./commands/discardsuggestioncommand';import _0x3cc3db from'./commands/executeonallsuggestionscommand';import _0x168013 from'./commands/executeonselectedsuggestionscommand';import _0x2918a7 from'./suggestion';import _0x4b1f95 from'./suggestiondescriptionfactory';import _0x2e1372 from'./integrations/aiassistant';import _0x48d18e from'./integrations/alignment';import _0x3bd666 from'./integrations/basicstyles';import _0x3241c6 from'./integrations/blockquote';import _0x532bf4 from'./integrations/ckbox';import _0x2231ac from'./integrations/codeblock';import _0x570b68 from'./integrations/comments';import _0x2f71c0 from'./integrations/deletecommand';import _0x1d518c from'./integrations/documentlist';import _0x41e031 from'./integrations/entercommand';import _0x1076ba from'./integrations/findandreplace';import _0x39edd0 from'./integrations/font';import _0x3ff39f from'./integrations/formatpainter';import _0x401cc4 from'./integrations/heading';import _0x4af0dc from'./integrations/highlight';import _0x1fd5a9 from'./integrations/horizontalline';import _0x969971 from'./integrations/htmlembed';import _0x48ad30 from'./integrations/image';import _0x1968a2 from'./integrations/imagereplace';import _0x276f93 from'./integrations/importword';import _0x150ca8 from'./integrations/indent';import _0x87be9d from'./integrations/inputcommand';import _0x16f279 from'./integrations/link';import _0x1821fc from'./integrations/list';import _0x4e6f14 from'./integrations/listproperties';import _0x4c5174 from'./integrations/mediaembed';import _0x532ef1 from'./integrations/mention';import _0x481438 from'./integrations/pagebreak';import _0x4b9f05 from'./integrations/paragraph';import _0x435917 from'./integrations/removeformat';import _0x4a5fe0 from'./integrations/restrictededitingmode';import _0x5b3f96 from'./integrations/shiftentercommand';import _0x5306f9 from'./integrations/standardeditingmode';import _0x481e6e from'./integrations/style';import _0x44decc from'./integrations/table';import _0x53fb84 from'./integrations/tablemergesplit';import _0x46433e from'./integrations/tableheadings';import _0x4cd816 from'./integrations/tableclipboard';import _0xdb972f from'./integrations/tablecolumnresize';import _0x57b951 from'./integrations/template';import _0x115f30 from'./integrations/tableofcontents';import _0x242a39 from'./integrations/title';import _0x525bf3 from'./integrations/undo';import{getTranslation as _0x1c3871}from'./utils/common-translations';import _0x259df1 from'./integrations/tablecaption';import _0x338b6e from'./integrations/documentlistproperties';import _0x19d17d from'./integrations/tableproperties';import{isEqual as _0x194041}from'lodash-es';export default class p extends _0x250fc1{static get[_0x42b2('0x2')](){return[_0x42b2('0xdb'),_0x1af5bb,_0x2efc12,_0x2e1372,_0x48d18e,_0x3bd666,_0x3241c6,_0x532bf4,_0x2231ac,_0x570b68,_0x2f71c0,_0x1d518c,_0x338b6e,_0x41e031,_0x1076ba,_0x39edd0,_0x3ff39f,_0x401cc4,_0x4af0dc,_0x1fd5a9,_0x969971,_0x48ad30,_0x1968a2,_0x276f93,_0x150ca8,_0x87be9d,_0x16f279,_0x1821fc,_0x4e6f14,_0x4c5174,_0x532ef1,_0x481438,_0x4b9f05,_0x435917,_0x4a5fe0,_0x5b3f96,_0x5306f9,_0x481e6e,_0x44decc,_0x53fb84,_0x46433e,_0x259df1,_0x4cd816,_0xdb972f,_0x115f30,_0x19d17d,_0x57b951,_0x242a39,_0x525bf3];}static get[_0x42b2('0xf4')](){return'TrackChangesEditing';}constructor(_0x3dd21b){function _0x4ea350(_0x257df4){return _0x257df4[_0x42b2('0x3e')](_0x5523fb=>String['fromCharCode'](_0x5523fb))[_0x42b2('0x32')]('');}super(_0x3dd21b),this[_0x42b2('0xae')](_0x42b2('0x11'),[]),this['on'](_0x42b2('0x3b'),(_0x44eb6d,_0x92088f,_0x7559d,_0xb7d0e0)=>{this['_model']['change'](()=>{for(const _0x3e7d9e of[..._0xb7d0e0,..._0x7559d])this[_0x42b2('0xa6')]['markers'][_0x42b2('0x4b')](_0x3e7d9e)&&_0x3dd21b[_0x42b2('0x47')][_0x42b2('0x38')](_0x3e7d9e);});}),this[_0x42b2('0xf5')]=new _0x4b1f95(this[_0x42b2('0x48')]['model'][_0x42b2('0xbb')],this[_0x42b2('0x48')][_0x42b2('0x13d')]),this[_0x42b2('0x53')]=null,this['_suggestionFactory']=new Bt(this[_0x42b2('0x48')]),this['_suggestions']=new Map(),this[_0x42b2('0xa5')]=_0x3dd21b[_0x42b2('0x46')]['get'](_0x42b2('0xdb')),this['_enabledCommands']=new Set(),this[_0x42b2('0xa6')]=this[_0x42b2('0x48')][_0x42b2('0xcf')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3dd21b[_0x42b2('0xc0')][_0x42b2('0x40')](_0x42b2('0xef'),'default'),this[_0x42b2('0xa8')]=_0x3dd21b['config']['get'](_0x42b2('0xef')),_0x3dd21b[_0x42b2('0xc0')][_0x42b2('0x40')](_0x42b2('0xaf'),!0x0),this[_0x42b2('0x5c')]=_0x3dd21b[_0x42b2('0xc0')][_0x42b2('0x102')]('trackChanges.mergeNestedSuggestions'),this[_0x42b2('0x128')]=new _0x3a98c0(_0x3dd21b,this[_0x42b2('0xf7')]),this[_0x4ea350([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4ea350([0x34,0x30,0x34,0x36,0x32,0x32,0x31,0x30]);}[_0x42b2('0x6')](){const _0x5203ce=this[_0x42b2('0x48')];_0x5203ce[_0x42b2('0x2c')][_0x42b2('0x6a')](_0x42b2('0x65'))[_0x42b2('0xee')]({'model':_0x42b2('0x9a'),'view':_0x585db5=>{const {id:_0x5bdae7,type:_0x33361}=this[_0x42b2('0x50')](_0x585db5[_0x42b2('0x84')]),_0x265645=[_0x42b2('0x9b'),'ck-suggestion-marker-'+_0x33361];let _0x159076=0xbb8;return this[_0x42b2('0x11')][_0x42b2('0x33')](_0x585db5['markerName'])&&(_0x265645[_0x42b2('0xf1')]('ck-suggestion-marker--active'),_0x159076=0xbc2),_0x42b2('0x140')==_0x33361&&(_0x159076+=0x5),{'classes':_0x265645,'attributes':{'data-suggestion':_0x5bdae7},'priority':_0x159076};}}),_0x5203ce[_0x42b2('0x2c')]['for'](_0x42b2('0x117'))[_0x42b2('0x7e')](_0x1b62b4=>{_0x1b62b4['on']('addMarker:suggestion',(_0x58cc69,_0xfb084e,_0x1f407c)=>{if(!_0x1f407c[_0x42b2('0x123')][_0x42b2('0x118')])return;const _0x4a7f97=_0xfb084e[_0x42b2('0x25')];if(!_0x4a7f97)return;const _0x53d11b=_0x1f407c[_0x42b2('0x7c')]['toViewElement'](_0x4a7f97);_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')][_0x42b2('0xe2')](_0x4a7f97)&&_0x53d11b&&!_0x53d11b[_0x42b2('0x16')](_0x42b2('0x74'))&&_0x53d11b['is'](_0x42b2('0xf9'))&&_0x446fe9(_0x53d11b,_0x1f407c[_0x42b2('0xe9')]);},{'priority':_0x42b2('0x11f')});}),_0x5203ce[_0x42b2('0x2c')]['for'](_0x42b2('0x117'))[_0x42b2('0xee')]({'model':_0x42b2('0x9a'),'view':(_0x16d608,_0x3a2429)=>{if(!_0x3a2429[_0x42b2('0x123')][_0x42b2('0x118')])return null;const {type:_0x17d152}=this[_0x42b2('0x50')](_0x16d608['markerName']);return{'classes':[_0x42b2('0x9b'),'ck-suggestion-marker-'+_0x17d152],'priority':0xbb8};}});const _0x2302ab=({showActiveMarkers:_0x1e63ac=!0x0}={})=>(_0xf40dc0,_0x3352f9,_0x19ec4e)=>{if(!_0x3352f9[_0x42b2('0x25')])return;if(_0x3352f9['item']['is']('selection'))return void _0x19ec4e[_0x42b2('0xd')][_0x42b2('0xbc')](_0x3352f9['item'],_0xf40dc0[_0x42b2('0xce')]);const _0xc9aa=_0x19ec4e[_0x42b2('0x7c')][_0x42b2('0xc5')](_0x3352f9[_0x42b2('0x25')]);if(!(_0x3352f9['item']['is']('element')&&_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')][_0x42b2('0x22')](_0x3352f9['item'])&&!_0xc9aa[_0x42b2('0x16')](_0x42b2('0x57'))))return;const {id:_0xbace4b}=this['_splitMarkerName'](_0x3352f9[_0x42b2('0x84')]);_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xbe')]([_0x42b2('0x9b'),_0x42b2('0x80')],_0xc9aa),_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xc6')](_0x42b2('0xdc'),_0xbace4b,_0xc9aa),_0x19ec4e[_0x42b2('0x7c')][_0x42b2('0x13a')](_0xc9aa,_0x3352f9['markerName']),_0x1e63ac&&(this[_0x42b2('0x11')][_0x42b2('0x33')](_0x3352f9[_0x42b2('0x84')])?_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xbe')]('ck-suggestion-marker--active',_0xc9aa):_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xb9')](_0x42b2('0x135'),_0xc9aa));for(const _0x54fb13 of _0x5203ce[_0x42b2('0xcf')][_0x42b2('0x119')](_0x3352f9[_0x42b2('0x25')])[_0x42b2('0xa7')]())_0x19ec4e['consumable'][_0x42b2('0xbc')](_0x54fb13,_0xf40dc0[_0x42b2('0xce')]);_0x19ec4e[_0x42b2('0xd')][_0x42b2('0xbc')](_0x3352f9[_0x42b2('0x25')],_0xf40dc0[_0x42b2('0xce')]);};_0x5203ce[_0x42b2('0x2c')]['for'](_0x42b2('0x117'))['add'](_0x5c055c=>{_0x5c055c['on']('addMarker:suggestion:formatBlock',(_0x43b7b4,_0xc14446,_0xacb565)=>{_0xacb565[_0x42b2('0x123')]['showSuggestionHighlights']&&_0x2302ab({'showActiveMarkers':!0x1})(_0x43b7b4,_0xc14446,_0xacb565);},{'priority':_0x42b2('0x3f')});}),_0x5203ce['conversion']['for'](_0x42b2('0x117'))[_0x42b2('0xa0')]({'model':_0x42b2('0x9a'),'view':(_0x4f04e8,_0x3c6c29)=>_0x3c6c29[_0x42b2('0x123')][_0x42b2('0x118')]?null:{'group':_0x42b2('0x9a'),'name':_0x4f04e8[_0x42b2('0xfa')](0xb)}}),_0x5203ce['conversion']['for'](_0x42b2('0x17'))[_0x42b2('0x10a')]({'view':{'name':_0x42b2('0x9a'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e71b3,{writer:_0x8d575b})=>{let _0x567dca=_0x42b2('0xa3')+_0x4e71b3[_0x42b2('0x115')](_0x42b2('0x10e'))+':'+_0x4e71b3[_0x42b2('0x115')]('id');return _0x4e71b3[_0x42b2('0x115')]('marker-count')&&(_0x567dca+=':'+_0x4e71b3['getAttribute']('marker-count')),_0x8d575b['createElement'](_0x42b2('0xec'),{'data-name':_0x567dca});}}),_0x5203ce[_0x42b2('0x2c')]['for']('upcast')[_0x42b2('0x92')]({'view':_0x42b2('0x9a')}),_0x5203ce[_0x42b2('0x2c')][_0x42b2('0x6a')](_0x42b2('0x65'))['add'](_0x1f30bd=>{_0x1f30bd['on'](_0x42b2('0xe1'),_0x2302ab(),{'priority':_0x42b2('0x11f')});}),_0x5203ce['conversion'][_0x42b2('0x6a')]('editingDowncast')[_0x42b2('0x7e')](_0x8afc7d=>{_0x8afc7d['on'](_0x42b2('0x37'),(_0x1afba9,_0x3ff033,_0x5da137)=>{const _0x536cb4=_0x5da137[_0x42b2('0x7c')]['markerNameToElements'](_0x3ff033[_0x42b2('0x84')]);if(_0x536cb4)for(const _0x45c856 of _0x536cb4)_0x45c856[_0x42b2('0x16')]('addHighlight')||(_0x5da137[_0x42b2('0xe9')]['removeClass']([_0x42b2('0x9b'),_0x42b2('0x80'),_0x42b2('0x135')],_0x45c856),_0x5da137[_0x42b2('0xe9')][_0x42b2('0x95')](_0x42b2('0xdc'),_0x45c856),_0x5da137[_0x42b2('0x7c')][_0x42b2('0xea')](_0x45c856,_0x3ff033['markerName']));},{'priority':_0x42b2('0x11f')});}),_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x13e')][_0x42b2('0xfc')](_0x2dda2b=>{let _0xea12b9=!0x1;const _0x345807=Array[_0x42b2('0x71')](_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x13e')][_0x42b2('0x1e')][_0x42b2('0xc2')]()),_0x2647d4=new Set();for(const {name:_0x55846a,data:_0x2e689a}of _0x345807){const {group:_0x31cd5a,type:_0x89bd06,id:_0x32879e}=this[_0x42b2('0x50')](_0x55846a);if('suggestion'!==_0x31cd5a)continue;const _0x5a559f=this[_0x42b2('0x103')][_0x42b2('0x102')](_0x32879e);if(null!=_0x2e689a[_0x42b2('0xb')]){'formatInline'==_0x89bd06&&(_0xea12b9=_0xea12b9||$t(_0x2e689a[_0x42b2('0xb')],_0x55846a,_0x2dda2b,_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')]));if(_0x2e689a[_0x42b2('0xb')][_0x42b2('0xac')]||_0x42b2('0x1f')==_0x2e689a['newRange'][_0x42b2('0xc9')][_0x42b2('0xa4')]||'formatBlock'==_0x89bd06&&!Rt(_0x2e689a['newRange'])||'deletion'==_0x89bd06&&!(!Mt(_0x5ee198=_0x2e689a['newRange'])&&!function(_0x13bca8){return _0x13bca8['start'][_0x42b2('0xf8')]==_0x13bca8[_0x42b2('0xeb')]['nodeBefore']&&_0x13bca8[_0x42b2('0x8a')]['isAtEnd'];}(_0x5ee198)))_0x2dda2b[_0x42b2('0x12c')](_0x55846a),_0xea12b9=!0x0;else{if(!_0x5a559f||!_0x5a559f[_0x42b2('0x145')])continue;_0x2647d4[_0x42b2('0x7e')](_0x5a559f);}}}var _0x5ee198;return _0x2647d4['size']>0x0&&(_0xea12b9=!!this[_0x42b2('0x142')](_0x2647d4)||_0xea12b9),_0xea12b9;}),_0x5203ce[_0x42b2('0xcf')]['document'][_0x42b2('0xfc')](_0x12a13=>{let _0x466dc0=!0x1;for(const _0x45d59f of _0x5203ce[_0x42b2('0xcf')][_0x42b2('0x13e')][_0x42b2('0x1e')][_0x42b2('0x6c')]()){if('insert'!=_0x45d59f['type'])continue;const _0x2f84a0=_0x45d59f[_0x42b2('0xb7')]['getShiftedBy'](_0x45d59f[_0x42b2('0xde')]);if(_0x2f84a0[_0x42b2('0x3')])for(const _0x17dd85 of this[_0x42b2('0x103')]['values']()){if(_0x17dd85['isMultiRange']||!_0x17dd85[_0x42b2('0x145')])continue;if(_0x42b2('0xdf')!=_0x17dd85[_0x42b2('0x121')])continue;const _0x14dc12=_0x17dd85['getFirstRange']();if(_0x14dc12[_0x42b2('0x8a')][_0x42b2('0xf8')]!=_0x14dc12[_0x42b2('0xeb')]['parent']&&_0x14dc12[_0x42b2('0xeb')][_0x42b2('0x10d')](_0x45d59f[_0x42b2('0xb7')])){const _0xdee991=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x100')](_0x14dc12[_0x42b2('0x8a')],_0x2f84a0);_0x12a13[_0x42b2('0x4a')](_0x17dd85[_0x42b2('0x14')](),{'range':_0xdee991}),_0x466dc0=!0x0;}}}return _0x466dc0;}),_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x130')]['on'](_0x42b2('0xbf'),(_0x51468e,_0x64f2ce,_0xa197be)=>{if(null==_0xa197be){const {id:_0x43bef1}=this[_0x42b2('0x50')](_0x64f2ce[_0x42b2('0xce')]),_0x2d9a35=this[_0x42b2('0x103')]['get'](_0x43bef1);_0x2d9a35&&_0x2d9a35[_0x42b2('0xb4')](_0x64f2ce[_0x42b2('0xce')]);}}),_0x5203ce['model'][_0x42b2('0x13e')]['on'](_0x42b2('0x1a'),()=>{const _0x4ef903=Array[_0x42b2('0x71')](_0x5203ce['model'][_0x42b2('0x13e')][_0x42b2('0x1e')]['getChangedMarkers']())['filter'](_0x23eca3=>'suggestion'===this['_splitMarkerName'](_0x23eca3[_0x42b2('0xce')])[_0x42b2('0x111')]);if(0x0===_0x4ef903['length'])return;_0x4ef903['sort']((_0x199f05,_0x376cc1)=>{const _0x141a24=_0x199f05[_0x42b2('0x78')][_0x42b2('0x4d')],_0x17748d=_0x376cc1[_0x42b2('0x78')][_0x42b2('0x4d')];return null===_0x141a24&&null===_0x17748d?0x0:null===_0x141a24&&null!==_0x17748d?-0x1:null!==_0x141a24&&null===_0x17748d?0x1:_0x141a24[_0x42b2('0x8a')]['isBefore'](_0x17748d[_0x42b2('0x8a')])?-0x1:0x1;});const _0x31a073=new Set(),_0x1de980=new Set();for(const {name:_0x4a0ebe,data:_0x36b190}of _0x4ef903){const {id:_0x5229b5}=this[_0x42b2('0x50')](_0x4a0ebe);if(null===_0x36b190[_0x42b2('0x4d')]){const _0xabad8d=this[_0x42b2('0x131')](_0x4a0ebe);_0x1de980[_0x42b2('0x7e')](_0xabad8d);}else{const _0x53834a=this['_suggestions'][_0x42b2('0x102')](_0x5229b5);null!==_0x36b190[_0x42b2('0xb')]||_0x53834a[_0x42b2('0x145')]?(_0x31a073['add'](_0x53834a[_0x42b2('0x4e')]),_0x1de980['add'](_0x53834a)):this['_removeSuggestion'](_0x53834a);}}_0x1de980[_0x42b2('0x79')]>0x0&&this[_0x42b2('0x39')](_0x1de980);for(const _0x3bb945 of _0x31a073)this['fire']('suggestionChanged',_0x3bb945);}),_0x5203ce[_0x42b2('0xcf')]['on']('applyOperation',(_0x27de24,_0x10e6b1)=>{const _0x29eb7d=_0x10e6b1[0x0];if(!this['_suggestions'][_0x42b2('0x79')])return;if(!_0x29eb7d[_0x42b2('0x8e')])return;if(_0x29eb7d[_0x42b2('0x120')][_0x42b2('0xc1')]||!_0x29eb7d[_0x42b2('0x120')][_0x42b2('0x94')])return;let _0x452aab,_0x4e9145;switch(_0x29eb7d[_0x42b2('0x121')]){case _0x42b2('0xf6'):_0x452aab=_0x5203ce['model'][_0x42b2('0x7a')](_0x29eb7d[_0x42b2('0xb7')]),_0x4e9145=_0x452aab['getShiftedBy'](_0x29eb7d['howMany']);break;case _0x42b2('0x15'):_0x452aab=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x7a')](_0x29eb7d[_0x42b2('0x77')]),_0x4e9145=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x7a')](_0x29eb7d['moveTargetPosition']);break;case _0x42b2('0x125'):_0x452aab=_0x5203ce[_0x42b2('0xcf')]['createPositionAt'](_0x29eb7d['targetPosition']),_0x4e9145=_0x452aab['getShiftedBy'](_0x29eb7d[_0x42b2('0xba')]);break;default:return;}const _0x4b7ee5=_0x5203ce['model'][_0x42b2('0x100')](_0x452aab,_0x4e9145);_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{for(const {suggestion:_0xac4613,meta:_0x151225}of this[_0x42b2('0x59')](_0x4b7ee5)){if(_0xac4613[_0x42b2('0xc7')])continue;if(_0x42b2('0xcd')==_0xac4613[_0x42b2('0x121')])continue;const _0x3417d9=_0xac4613[_0x42b2('0x78')]&&_0xac4613[_0x42b2('0x78')][_0x42b2('0x64')];('formatBlock'!=_0xac4613[_0x42b2('0x121')]||_0x42b2('0x15')==_0x29eb7d[_0x42b2('0x121')]&&!_0x3417d9)&&(_0x151225[_0x42b2('0xf0')]||_0x42b2('0x42')==_0xac4613[_0x42b2('0x121')]&&_0x151225[_0x42b2('0x54')]||_0xac4613[_0x42b2('0xb3')]()[_0x42b2('0x109')](_0x4b7ee5)&&this[_0x42b2('0x6e')](_0xac4613,_0x452aab,_0x4e9145));}});},{'priority':_0x42b2('0x62')}),_0x5203ce['model']['on'](_0x42b2('0xe6'),(_0x4b5efd,_0x1a217c)=>{const _0x59943a=_0x1a217c[0x0],_0xbfee08=_0x1a217c[0x1];if(_0xbfee08&&_0xbfee08[_0x42b2('0x5b')])return;if(this[_0x42b2('0x44')])return;if(!this[_0x42b2('0x128')]['value'])return;if(_0x59943a[_0x42b2('0xac')])return;const _0x50e67f=_0x5203ce['model']['schema'],{start:_0x9639b7,end:_0x233851}=_0x59943a['getFirstRange'](),_0x3cb27b=_0x9639b7[_0x42b2('0xa9')]&&_0x50e67f[_0x42b2('0x8f')](_0x9639b7[_0x42b2('0xa9')])?null:_0x50e67f[_0x42b2('0xb1')](_0x9639b7,_0x42b2('0x4f')),_0x5961d3=_0x233851[_0x42b2('0x5f')]&&_0x50e67f[_0x42b2('0x8f')](_0x233851['nodeBefore'])?null:_0x50e67f[_0x42b2('0xb1')](_0x233851,'backward'),_0x58bb5c=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x100')](_0x3cb27b?_0x3cb27b[_0x42b2('0x8a')]:_0x9639b7,_0x5961d3?_0x5961d3['end']:_0x233851);_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x5a')](_0x564ee6=>{this['markDeletion'](_0x58bb5c);const _0x1c53d0=_0x5203ce[_0x42b2('0xcf')]['schema'][_0x42b2('0xb1')](_0x58bb5c[_0x42b2('0x8a')]);_0x59943a['is'](_0x42b2('0xd7'))?_0x564ee6['setSelection'](_0x1c53d0):_0x59943a[_0x42b2('0xaa')](_0x1c53d0);}),_0x4b5efd[_0x42b2('0x146')]();},{'priority':_0x2939da[_0x42b2('0xb8')]+0xa}),_0x5203ce[_0x42b2('0xcf')]['on']('insertContent',(_0xae7c43,_0x21b166)=>{const _0x3c1e1b=_0x21b166[_0x21b166[_0x42b2('0xde')]-0x1];_0x3c1e1b&&_0x3c1e1b[_0x42b2('0x5b')]||this[_0x42b2('0x44')]||this[_0x42b2('0x128')][_0x42b2('0x12')]&&(_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{let _0x165986=_0x5203ce['model'][_0x42b2('0x112')](_0x21b166[0x0],_0x21b166[0x1],_0x21b166[0x2],{'forceDefaultExecution':!0x0});if(!_0x165986)return;_0xae7c43['return']=_0x165986[_0x42b2('0xc8')]();const _0x291015=_0x165986['end'][_0x42b2('0x5f')],_0x5df822=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')];_0x291015&&_0x5df822[_0x42b2('0x22')](_0x291015)&&!_0x5df822[_0x42b2('0xe2')](_0x291015)&&(_0x165986=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x100')](_0x165986[_0x42b2('0x8a')],_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x7a')](_0x291015,_0x42b2('0xeb')))),this['markInsertion'](_0x165986);}),_0xae7c43[_0x42b2('0x146')]());},{'priority':_0x42b2('0x11f')}),this[_0x42b2('0x48')]['commands'][_0x42b2('0x7e')](_0x42b2('0x108'),this['trackChangesCommand']),this[_0x42b2('0x106')](_0x42b2('0x108'));const _0x40684c=new _0x540c87(_0x5203ce,this['_suggestions']);_0x5203ce['commands'][_0x42b2('0x7e')](_0x42b2('0xd4'),_0x40684c),this[_0x42b2('0x106')]('acceptSuggestion');const _0x479497=new _0x1ee56e(_0x5203ce,this[_0x42b2('0x103')]);_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')]('discardSuggestion',_0x479497),this['enableCommand'](_0x42b2('0x134')),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')](_0x42b2('0xed'),new _0x3cc3db(_0x5203ce,_0x40684c,this[_0x42b2('0x103')])),this[_0x42b2('0x106')]('acceptAllSuggestions'),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')](_0x42b2('0x12d'),new _0x3cc3db(_0x5203ce,_0x479497,this[_0x42b2('0x103')])),this[_0x42b2('0x106')](_0x42b2('0x12d')),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')](_0x42b2('0x85'),new _0x168013(_0x5203ce,_0x40684c,this[_0x42b2('0x103')])),this[_0x42b2('0x106')](_0x42b2('0x85')),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')]('discardSelectedSuggestions',new _0x168013(_0x5203ce,_0x479497,this[_0x42b2('0x103')])),this[_0x42b2('0x106')](_0x42b2('0x31'));const _0x2b7a83=_0x5203ce[_0x42b2('0x46')]['get'](_0x42b2('0xdb'));this['listenTo'](_0x2b7a83,_0x42b2('0x86'),(_0x278ae4,{threadId:_0x32de01})=>{const _0x2a25f1=this['_suggestions']['get'](_0x32de01);_0x2a25f1&&_0x2a25f1[_0x42b2('0x11b')]&&0x1===_0x2a25f1['commentThread']['length']&&this['_updateSuggestionData'](_0x32de01,{'hasComments':!0x0});},{'priority':_0x42b2('0x6d')}),this[_0x42b2('0x75')](_0x2b7a83,_0x42b2('0x8'),(_0x5c7cd8,{threadId:_0x4f5fb7})=>{const _0x18f305=this['_suggestions'][_0x42b2('0x102')](_0x4f5fb7);_0x18f305&&_0x18f305[_0x42b2('0x11b')]&&!_0x18f305[_0x42b2('0x11b')]['length']&&this[_0x42b2('0x6f')](_0x4f5fb7,{'hasComments':!0x1});},{'priority':_0x42b2('0x6d')});}set[_0x42b2('0x89')](_0x1b4f3e){if(this[_0x42b2('0x53')])throw new _0x81a6ba(_0x42b2('0x126'),this);this[_0x42b2('0x53')]=_0x1b4f3e;}get[_0x42b2('0x89')](){return this[_0x42b2('0x53')];}[_0x42b2('0x7b')]({skipNotAttached:_0x22141c=!0x1,toJSON:_0x1b487=!0x1}={}){const _0x586235=[];for(const _0x1ea893 of this[_0x42b2('0x103')]['values']())_0x22141c&&!_0x1ea893['isInContent']||_0x586235[_0x42b2('0xf1')](_0x1ea893);return _0x1b487?_0x586235['map'](_0x3b49a9=>_0x3b49a9[_0x42b2('0x5')]()):_0x586235;}['getSuggestion'](_0x195273){const _0x5e02b7=this['_suggestions'][_0x42b2('0x102')](_0x195273);if(!_0x5e02b7)throw new _0x81a6ba('track-changes-suggestion-not-found',this);return _0x5e02b7;}[_0x42b2('0xe0')](_0x533989){return this[_0x42b2('0x103')][_0x42b2('0x4b')](_0x533989);}[_0x42b2('0x82')](_0x100e1d){const {authorId:_0x530c55,id:_0x136325,attributes:_0x11b8aa}=_0x100e1d,[_0x1d9707,_0x10937a]=_0x100e1d[_0x42b2('0x121')][_0x42b2('0x15')](':'),_0x2f8ca7=this['_suggestions'][_0x42b2('0x102')](_0x136325)||this['_createSuggestion'](_0x1d9707,_0x10937a,_0x136325,_0x530c55,_0x11b8aa);if(this[_0x42b2('0x9f')](_0x2f8ca7),this[_0x42b2('0x3d')](_0x2f8ca7,_0x1d9707,_0x10937a||null,_0x530c55),_0x2f8ca7[_0x42b2('0x2a')]=_0x100e1d[_0x42b2('0x2a')],_0x2f8ca7[_0x42b2('0x0')]=!0x0,_0x11b8aa&&_0x11b8aa['@external']){const _0x59bcbd=_0x11b8aa[_0x42b2('0x141')],_0x492bba=this[_0x42b2('0x5d')](_0x59bcbd[_0x42b2('0x52')]);_0x2f8ca7[_0x42b2('0xe8')]=_0x59bcbd[_0x42b2('0x2a')],_0x2f8ca7[_0x42b2('0x114')]=_0x492bba,_0x2f8ca7[_0x42b2('0x49')]=!0x0;}else _0x2f8ca7[_0x42b2('0xe8')]=_0x100e1d['createdAt'];switch(_0x100e1d[_0x42b2('0x78')]&&(_0x2f8ca7[_0x42b2('0x78')]=_0x100e1d[_0x42b2('0x78')]),_0x100e1d[_0x42b2('0x8b')]&&(_0x2f8ca7[_0x42b2('0x8b')]=_0x100e1d[_0x42b2('0x8b')]),this['_adapter']&&this[_0x42b2('0x53')]['addSuggestion']||(_0x2f8ca7[_0x42b2('0x97')]=!0x0),this[_0x42b2('0x12f')][_0x42b2('0x102')](_0x2f8ca7)){case'notReady':this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x2f8ca7,_0x42b2('0x36'));break;case _0x42b2('0x9'):_0x2f8ca7[_0x42b2('0x145')]?(this[_0x42b2('0x39')](new Set([_0x2f8ca7])),this[_0x42b2('0x142')](new Set([_0x2f8ca7])),this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x2f8ca7,_0x42b2('0x122')),this[_0x42b2('0x91')](_0x42b2('0xe7'),_0x2f8ca7)):this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x2f8ca7,_0x42b2('0x132'));}return _0x2f8ca7;}['acceptSuggestion'](_0x435023){this[_0x42b2('0x5b')](()=>{this[_0x42b2('0x48')][_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{for(const _0xaf7220 of _0x435023[_0x42b2('0x2f')]())_0xaf7220[_0x42b2('0x107')]();});});}[_0x42b2('0x134')](_0xe031df){this[_0x42b2('0x5b')](()=>{this[_0x42b2('0x48')][_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{for(const _0x38f8dc of _0xe031df[_0x42b2('0x2f')]())_0x38f8dc['discard']();});});}['enableCommand'](_0x3a00cb,_0x5073aa){const _0xaafae3=this[_0x42b2('0x48')][_0x42b2('0x73')][_0x42b2('0x102')](_0x3a00cb);if(!_0xaafae3)throw new _0x81a6ba('track-changes-command-not-found',this,{'commandName':_0x3a00cb});this[_0x42b2('0xf7')][_0x42b2('0x7e')](_0xaafae3),_0x5073aa&&_0xaafae3['on'](_0x42b2('0xd6'),(_0xb5a36,_0x6576c8)=>{this['trackChangesCommand'][_0x42b2('0x12')]&&(this[_0x42b2('0x44')]||_0x6576c8[_0x42b2('0xde')]>0x0&&_0x6576c8[_0x6576c8['length']-0x1]&&_0x6576c8[_0x6576c8['length']-0x1]['forceDefaultExecution']||(_0xb5a36[_0x42b2('0x83')]=_0x5073aa((..._0x1e0e4c)=>_0xaafae3[_0x42b2('0xd6')](..._0x1e0e4c,{'forceDefaultExecution':!0x0}),..._0x6576c8),_0xb5a36['stop']()));},{'priority':'high'});}[_0x42b2('0x5b')](_0x587728){let _0x21a037,_0x1690fe;const _0x2c47a3=this[_0x42b2('0x44')];this[_0x42b2('0x44')]=!0x0;try{_0x21a037=_0x587728();}catch(_0x191df2){_0x1690fe=_0x191df2;}return _0x2c47a3||(this[_0x42b2('0x44')]=!0x1),_0x1690fe&&_0x81a6ba[_0x42b2('0x10b')](_0x1690fe,this),_0x21a037;}[_0x42b2('0x35')](_0xb7897c,_0x54892d=null,_0x437f5e={}){if(_0xb7897c[_0x42b2('0xac')])return null;const _0x139d61=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')]('Users')['me'];for(const {suggestion:_0x148477,meta:_0x2242d5}of this['_findSuggestions'](_0xb7897c,'insertion'))if(_0x2242d5[_0x42b2('0x54')]){if(!_0x2242d5['isNextTo']){if(_0x2242d5[_0x42b2('0xf0')]){if(!this[_0x42b2('0x5c')]||!Ot(_0x148477,_0x437f5e))continue;return _0x148477;}if(Ot(_0x148477,_0x437f5e))return _0x148477;this['_breakSuggestionMarker'](_0x148477,_0xb7897c[_0x42b2('0x8a')],_0xb7897c[_0x42b2('0xeb')]);break;}if(_0x54892d==_0x148477[_0x42b2('0x143')]&&Ot(_0x148477,_0x437f5e)){const _0x3af0c2=_0x148477['getFirstRange']();return _0x3af0c2[_0x42b2('0x8a')]['isEqual'](_0xb7897c[_0x42b2('0xeb')])?this['_setSuggestionRange'](_0x148477,this['_model'][_0x42b2('0x100')](_0xb7897c['start'],_0x3af0c2[_0x42b2('0xeb')])):this[_0x42b2('0x98')](_0x148477,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x3af0c2[_0x42b2('0x8a')],_0xb7897c[_0x42b2('0xeb')])),_0x148477;}}const _0x1c194a=_0x1dc3be(),_0x5aa434=_0x139d61['id'],_0x5967b8=_0x54892d?_0x42b2('0x27')+_0x54892d:'insertion',_0x3d3c80=this[_0x42b2('0x1c')]({'id':_0x1c194a,'type':_0x5967b8,'createdAt':new Date(),'authorId':_0x5aa434,'attributes':_0x437f5e});return this[_0x42b2('0x2b')](_0x5967b8,_0x1c194a,_0x5aa434,_0xb7897c),_0x3d3c80;}[_0x42b2('0xd8')](_0x21d86f,_0x41728b=_0x42b2('0x101'),_0x494212={}){const _0x54da38=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x521fc=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0x42'),_0x41728b,_0x42b2('0x32'));for(const _0x1c3007 of this['getSuggestions']())if(_0x1c3007[_0x42b2('0x114')]['id']==_0x54da38['id']&&_0x42b2('0x42')==_0x1c3007[_0x42b2('0x121')]&&_0x1c3007['subType']==_0x41728b&&Ot(_0x1c3007,_0x494212)&&(_0x521fc(_0x1c3007[_0x42b2('0x58')](),_0x21d86f)||_0x521fc(_0x21d86f,_0x1c3007[_0x42b2('0x58')]()))){for(const _0x4d743b of _0x21d86f)_0x1c3007[_0x42b2('0xc4')](_0x4d743b);return _0x1c3007;}for(const {suggestion:_0x561fae,meta:_0xc83a95}of this[_0x42b2('0x59')](_0x21d86f,_0x42b2('0x42'))){if(!_0xc83a95[_0x42b2('0x54')])continue;if(!this[_0x42b2('0x5c')]&&_0xc83a95['containsRangeInObject'])continue;if(!Ot(_0x561fae,_0x494212))continue;let _0x5d2610=!0x0;for(const _0x5bc3a3 of _0x561fae['getRanges']())for(const _0x50dc35 of _0x21d86f)if(!_0x5bc3a3['containsRange'](_0x50dc35)){_0x5d2610=!0x1;break;}if(_0x5d2610)return _0x561fae;}const _0x3af176=_0x1dc3be(),_0x4111fa=_0x54da38['id'],_0x3223bb=_0x42b2('0x27')+_0x41728b,_0x17cff3=this[_0x42b2('0x1c')]({'id':_0x3af176,'type':_0x3223bb,'createdAt':new Date(),'authorId':_0x4111fa,'attributes':_0x494212});for(const _0x36639b of _0x21d86f)this[_0x42b2('0x2b')](_0x3223bb,_0x3af176,_0x4111fa,_0x36639b,_0x2918a7[_0x42b2('0x8d')]());return _0x17cff3;}['markInlineFormat'](_0xe99a88,_0x2dd38e,_0x2a91bc=null,_0x3c510d={}){if(_0x2a91bc=_0x2a91bc||Nt(_0x2dd38e),_0xe99a88['isCollapsed'])return null;if(_0x42b2('0x1d')===this[_0x42b2('0xa8')]){const _0x41c8c6=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xcd'),_0x2a91bc,_0x42b2('0x107'));return this['forceDefaultExecution'](()=>_0x41c8c6([_0xe99a88],_0x2dd38e,_0x3c510d)),null;}const _0x37f8b9=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x1d976a=[];if(_0x42b2('0x1')!==this[_0x42b2('0xa8')])for(const {suggestion:_0x51fcd8,meta:_0x58b36}of this[_0x42b2('0x59')](_0xe99a88,_0x42b2('0x42')))_0x58b36[_0x42b2('0x54')]&&!_0x58b36[_0x42b2('0xca')]&&_0x1d976a[_0x42b2('0xf1')](..._0x51fcd8['getRanges']());const _0x243480=function(_0x7a2040,_0x528719){const _0x5c666f=[];for(const _0x578fe4 of _0x528719){const _0x151f36=_0x7a2040['getIntersection'](_0x578fe4);_0x151f36&&_0x5c666f['push'](_0x151f36);}return _0x5c666f;}(_0xe99a88,_0x1d976a),_0x478d95=function(_0x8f08d3,_0x44a75b){const _0x33b4a3=[_0x8f08d3];for(const _0x4fb580 of _0x44a75b){let _0x2b7df7=0x0;for(;_0x2b7df7<_0x33b4a3['length'];){const _0x58f272=_0x33b4a3[_0x2b7df7]['getDifference'](_0x4fb580);_0x33b4a3[_0x42b2('0x28')](_0x2b7df7,0x1,..._0x58f272),_0x2b7df7+=_0x58f272['length'];}}return _0x33b4a3;}(_0xe99a88,_0x1d976a);_0x243480['length']&&this['_model'][_0x42b2('0x5a')](()=>{for(const _0x2f8354 of _0x243480){const _0x2927ec=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xcd'),_0x2a91bc,_0x42b2('0x107'));this[_0x42b2('0x5b')](()=>_0x2927ec([_0x2f8354],_0x2dd38e,_0x3c510d));}});for(const _0x29795c of _0x478d95){let _0x529ac3=null,_0x55f826=_0x29795c[_0x42b2('0x8a')],_0x3dc7d3=_0x29795c[_0x42b2('0xeb')];for(const {suggestion:_0x79e65,meta:_0x5ec6f1}of this[_0x42b2('0x59')](_0x29795c,_0x42b2('0xcd'))){if(!_0x5ec6f1[_0x42b2('0x54')])continue;if(_0x79e65[_0x42b2('0x143')]!=_0x2a91bc)continue;if(!Ot(_0x79e65,_0x3c510d))continue;const _0x14eff0=_0x79e65[_0x42b2('0xb3')]();if(_0x14eff0['containsRange'](_0x29795c,!0x0))return null;_0x55f826=_0x55f826[_0x42b2('0x29')](_0x14eff0[_0x42b2('0x8a')])?_0x55f826:_0x14eff0[_0x42b2('0x8a')],_0x3dc7d3=_0x3dc7d3[_0x42b2('0x129')](_0x14eff0[_0x42b2('0xeb')])?_0x3dc7d3:_0x14eff0[_0x42b2('0xeb')],_0x529ac3?_0x14eff0['start'][_0x42b2('0x29')](_0x529ac3['getFirstRange']()[_0x42b2('0x8a')])?(_0x529ac3[_0x42b2('0x76')](),_0x529ac3=_0x79e65):_0x79e65[_0x42b2('0x76')]():_0x529ac3=_0x79e65;}const _0x4daa9a=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x55f826,_0x3dc7d3);if(_0x529ac3)this[_0x42b2('0x98')](_0x529ac3,_0x4daa9a);else{const _0x31664b=_0x1dc3be(),_0x26c8df=_0x37f8b9['id'];this[_0x42b2('0x1c')]({'id':_0x31664b,'type':'formatInline:'+_0x2a91bc,'data':_0x2dd38e,'createdAt':new Date(),'authorId':_0x26c8df,'attributes':_0x3c510d}),this['_addSuggestionMarker'](_0x42b2('0xfb')+_0x2a91bc,_0x31664b,_0x26c8df,_0x4daa9a);}}return null;}[_0x42b2('0x133')](_0x17b224,_0x2fa5c1,_0x321b0d=[],_0x33fddf=null,_0x33dab2={}){_0x2fa5c1['formatGroupId']||(_0x2fa5c1[_0x42b2('0x2e')]=_0x2fa5c1['commandName']),_0x2fa5c1[_0x42b2('0x64')]=_0x17b224['is']('range'),_0x33fddf=_0x33fddf||Nt(_0x2fa5c1);const _0x460a54=_0x321b0d[_0x42b2('0x3e')](_0x3a1c3e=>jt(_0x3a1c3e,this[_0x42b2('0xa6')])),_0x53f801=_0x17b224['is']('range')?_0x17b224:jt(_0x17b224,this['_model']);if(_0x42b2('0x1d')===this[_0x42b2('0xa8')]){const _0x3f2799=this[_0x42b2('0xfe')][_0x42b2('0xbd')]('formatBlock',_0x33fddf,'accept');return this[_0x42b2('0x5b')](()=>_0x3f2799([_0x53f801],_0x2fa5c1,_0x33dab2)),null;}_0x460a54[_0x42b2('0xf1')](_0x53f801);let _0x29af99=!0x0;for(const _0x484e72 of _0x460a54)if(!this[_0x42b2('0x61')](_0x484e72)){_0x29af99=!0x1;break;}if(_0x29af99&&_0x42b2('0x1')!==this[_0x42b2('0xa8')]){const _0x451f83=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x33fddf,_0x42b2('0x107'));return this[_0x42b2('0x5b')](()=>_0x451f83([_0x53f801],_0x2fa5c1,_0x33dab2)),null;}let _0x184097=null,_0x2e0df1=_0x53f801[_0x42b2('0x8a')],_0x2d274=_0x53f801[_0x42b2('0xeb')];for(const {suggestion:_0x30441b,meta:_0xcee523}of this[_0x42b2('0x59')](_0x53f801,_0x42b2('0xdf'))){if(!_0xcee523['isOwn'])continue;if(_0xcee523[_0x42b2('0x138')]||_0xcee523[_0x42b2('0xf0')]||_0xcee523[_0x42b2('0xca')])continue;if(_0x30441b[_0x42b2('0x78')][_0x42b2('0x2e')]!=_0x2fa5c1['formatGroupId'])continue;if(!Ot(_0x30441b,_0x33dab2))continue;const _0x167742=_0x30441b[_0x42b2('0xb3')]();if(_0x30441b[_0x42b2('0x143')]==_0x33fddf){if(_0x167742[_0x42b2('0x109')](_0x53f801,!0x0))return null;_0x2e0df1=_0x2e0df1[_0x42b2('0x29')](_0x167742[_0x42b2('0x8a')])?_0x2e0df1:_0x167742['start'],_0x2d274=_0x2d274[_0x42b2('0x129')](_0x167742['end'])?_0x2d274:_0x167742[_0x42b2('0xeb')],_0x184097?_0x167742[_0x42b2('0x8a')][_0x42b2('0x29')](_0x184097[_0x42b2('0xb3')]()[_0x42b2('0x8a')])?(_0x184097[_0x42b2('0x76')](),_0x184097=_0x30441b):_0x30441b[_0x42b2('0x76')]():_0x184097=_0x30441b;}else{const _0x552cf9=_0x53f801[_0x42b2('0xf2')](_0x167742);this[_0x42b2('0x12b')](_0x30441b,_0x552cf9);}}const _0x17ff91=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x255797=_0x1dc3be(),_0x5a9fb4=_0x17ff91['id'];if(_0x184097)return this['_setSuggestionRange'](_0x184097,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x2e0df1,_0x2d274)),_0x184097;{const _0x4a6823=this[_0x42b2('0x1c')]({'id':_0x255797,'type':_0x42b2('0x67')+_0x33fddf,'data':_0x2fa5c1,'createdAt':new Date(),'authorId':_0x5a9fb4,'attributes':_0x33dab2});return this[_0x42b2('0x2b')]('formatBlock:'+_0x33fddf,_0x255797,_0x5a9fb4,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x2e0df1,_0x2d274)),_0x4a6823;}}[_0x42b2('0x136')](_0x50d7da,_0x3bd8a4,_0x26e997=[],_0x334249=null,_0x16e116={}){_0x3bd8a4[_0x42b2('0x2e')]||(_0x3bd8a4[_0x42b2('0x2e')]=_0x3bd8a4['commandName']);const _0x11dd62=_0x50d7da[0x0];_0x3bd8a4['multipleBlocks']=_0x11dd62['is'](_0x42b2('0x11e')),_0x334249=_0x334249||Nt(_0x3bd8a4);const _0x3673bc=_0x26e997[_0x42b2('0x3e')](_0xf3eb03=>jt(_0xf3eb03,this['_model'])),_0x365e80=_0x11dd62['is'](_0x42b2('0x11e'))?_0x50d7da:_0x50d7da['map'](_0x25c667=>jt(_0x25c667,this['_model']));if(_0x42b2('0x1d')===this['_trackFormatChanges']){const _0x1e97ef=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x334249,'accept');return this[_0x42b2('0x5b')](()=>_0x1e97ef(_0x365e80,_0x3bd8a4,_0x16e116)),null;}_0x3673bc['push'](..._0x365e80);let _0xf22277=!0x0;for(const _0x43028d of _0x3673bc)if(!this[_0x42b2('0x61')](_0x43028d)){_0xf22277=!0x1;break;}if(_0xf22277&&'always'!==this[_0x42b2('0xa8')]){const _0x412cec=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x334249,_0x42b2('0x107'));return this['forceDefaultExecution'](()=>_0x412cec(_0x365e80,_0x3bd8a4,_0x16e116)),null;}const _0x3b7a3d=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'];for(const _0x4f795a of this[_0x42b2('0x7b')]()){if(_0x4f795a[_0x42b2('0x114')]['id']!=_0x3b7a3d['id'])continue;if(_0x42b2('0xdf')!=_0x4f795a['type']||_0x4f795a['data'][_0x42b2('0x2e')]!=_0x3bd8a4['formatGroupId'])continue;if(!Ot(_0x4f795a,_0x16e116))continue;const _0x2ca33f=_0x4f795a[_0x42b2('0x143')]==_0x334249;for(let _0x832f18=0x0;_0x832f18<_0x365e80[_0x42b2('0xde')];_0x832f18++){const _0x559808=_0x365e80[_0x832f18];for(const _0x1e4590 of _0x4f795a[_0x42b2('0x60')]()){const _0x3ce9d8=_0x1e4590['getRange']();if(_0x559808['isEqual'](_0x3ce9d8)){_0x2ca33f?(_0x365e80[_0x42b2('0x28')](_0x832f18,0x1),_0x832f18--):_0x4f795a[_0x42b2('0x12c')](_0x1e4590[_0x42b2('0xce')]);break;}}}}if(0x0==_0x365e80[_0x42b2('0xde')])return null;const _0x448391=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x334249,_0x42b2('0x32'));for(const _0xb446cd of this['getSuggestions']())if(_0xb446cd['author']['id']==_0x3b7a3d['id']&&_0x42b2('0xdf')==_0xb446cd[_0x42b2('0x121')]&&_0xb446cd[_0x42b2('0x78')]['formatGroupId']==_0x3bd8a4['formatGroupId']&&_0xb446cd[_0x42b2('0x143')]==_0x334249&&Ot(_0xb446cd,_0x16e116)&&(_0x448391(_0xb446cd[_0x42b2('0x58')](),_0x365e80)||_0x448391(_0x365e80,_0xb446cd[_0x42b2('0x58')]()))){for(const _0x498c9b of _0x365e80)_0xb446cd[_0x42b2('0xc4')](_0x498c9b);return _0xb446cd;}const _0x443cf7=_0x1dc3be(),_0x5a9fbd=_0x3b7a3d['id'],_0x117093=_0x42b2('0x67')+_0x334249,_0x1dd7de=this[_0x42b2('0x1c')]({'id':_0x443cf7,'type':_0x117093,'data':_0x3bd8a4,'createdAt':new Date(),'authorId':_0x5a9fbd,'attributes':_0x16e116});for(const _0x5589a7 of _0x365e80)this[_0x42b2('0x2b')](_0x117093,_0x443cf7,_0x5a9fbd,_0x5589a7,_0x2918a7['getMultiRangeId']());return _0x1dd7de;}[_0x42b2('0x10')](_0x5ae3ce,_0x30e064=null,_0x61156e={}){if(_0x5ae3ce['isCollapsed'])return null;const _0x34ad38=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x5c7f31=new _0x48c2b6(_0x5ae3ce[_0x42b2('0x8a')],_0x5ae3ce[_0x42b2('0xeb')]);for(const {suggestion:_0x512fc9,meta:_0x4f6f24}of this[_0x42b2('0x59')](_0x5c7f31,_0x42b2('0x42')))if(_0x4f6f24[_0x42b2('0x54')]&&!_0x4f6f24[_0x42b2('0x138')]){if(_0x512fc9[_0x42b2('0xc7')]){const _0x26fb41=_0x512fc9['getRanges']()[_0x42b2('0xc3')](_0x3a9272=>'$graveyard'!=_0x3a9272['root'][_0x42b2('0xa4')]);_0x26fb41[_0x42b2('0x3a')](_0x3b582f=>_0x5c7f31[_0x42b2('0x109')](_0x3b582f,!0x0))&&_0x512fc9[_0x42b2('0xad')]();if(_0x26fb41[_0x42b2('0xa2')](_0x5eccad=>_0x5eccad[_0x42b2('0x109')](_0x5c7f31,!0x0))){const _0x55c8f8=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0x140'),_0x30e064,'accept');return this[_0x42b2('0x5b')](()=>_0x55c8f8([_0x5c7f31],null,_0x61156e)),null;}}else{const _0x5b6b0e=_0x5c7f31[_0x42b2('0xf2')](_0x512fc9[_0x42b2('0xb3')]());null!==_0x5b6b0e&&_0x512fc9['_onDiscard']([_0x5b6b0e],null,_0x61156e);}}if(_0x5c7f31[_0x42b2('0xe3')](),_0x5c7f31[_0x42b2('0xac')]||_0x42b2('0x1f')==_0x5c7f31[_0x42b2('0xc9')][_0x42b2('0xa4')])return null;let _0x410345=null,_0x4d8a06=_0x5c7f31[_0x42b2('0x8a')],_0x5acfaa=_0x5c7f31[_0x42b2('0xeb')];const _0x3b6059=this[_0x42b2('0x59')](_0x5c7f31,_0x42b2('0x140'));for(const {suggestion:_0x365cc3,meta:_0x5b6c5e}of _0x3b6059){const _0x336df4=this[_0x42b2('0xa6')]['createRange'](_0x4d8a06,_0x5acfaa);if(_0x5b6c5e[_0x42b2('0x54')]&&(this[_0x42b2('0x5c')]||!_0x5b6c5e[_0x42b2('0xf0')]&&!_0x5b6c5e[_0x42b2('0xca')])){if(_0x365cc3['isMultiRange']){if(!Ot(_0x365cc3,_0x61156e))continue;let _0x4f9cda=!0x0;for(const _0x271cb3 of _0x365cc3[_0x42b2('0x58')]()){if(_0x271cb3[_0x42b2('0x109')](_0x336df4,!0x0))return _0x365cc3;_0x336df4[_0x42b2('0x109')](_0x271cb3)||(_0x4f9cda=!0x1);}_0x4f9cda&&_0x365cc3[_0x42b2('0xad')]();}else{const _0x50381a=_0x365cc3['getFirstRange']();if(_0x50381a[_0x42b2('0x109')](_0x336df4,!0x0))return _0x365cc3;if(!Ot(_0x365cc3,_0x61156e)){_0x336df4[_0x42b2('0x109')](_0x50381a)?_0x365cc3['removeMarkers']():_0x50381a[_0x42b2('0x20')](_0x4d8a06)?_0x4d8a06=_0x50381a[_0x42b2('0xeb')]:_0x50381a[_0x42b2('0x20')](_0x5acfaa)&&(_0x5acfaa=_0x50381a[_0x42b2('0x8a')]);continue;}_0x4d8a06=_0x4d8a06[_0x42b2('0x29')](_0x50381a[_0x42b2('0x8a')])?_0x4d8a06:_0x50381a[_0x42b2('0x8a')],_0x5acfaa=_0x5acfaa[_0x42b2('0x129')](_0x50381a[_0x42b2('0xeb')])?_0x5acfaa:_0x50381a[_0x42b2('0xeb')],_0x61156e=Object[_0x42b2('0x11a')]({},_0x365cc3[_0x42b2('0x8b')]),_0x410345?_0x50381a[_0x42b2('0x8a')][_0x42b2('0x29')](_0x410345[_0x42b2('0xb3')]()[_0x42b2('0x8a')])?(_0x410345['removeMarkers'](),_0x410345=_0x365cc3):_0x365cc3[_0x42b2('0x76')]():_0x410345=_0x365cc3;}}}if(_0x410345)return this[_0x42b2('0x98')](_0x410345,this['_model'][_0x42b2('0x100')](_0x4d8a06,_0x5acfaa)),_0x410345;{const _0x5dfe88=_0x1dc3be(),_0x1eafbc=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x4d8a06,_0x5acfaa),_0x47d76f=_0x34ad38['id'],_0x257ad0=_0x30e064?_0x42b2('0x13c')+_0x30e064:_0x42b2('0x140'),_0x2207f7=this[_0x42b2('0x1c')]({'id':_0x5dfe88,'type':_0x257ad0,'createdAt':new Date(),'authorId':_0x47d76f,'attributes':_0x61156e});return this[_0x42b2('0x2b')](_0x257ad0,_0x5dfe88,_0x47d76f,_0x1eafbc),_0x2207f7;}}['markMultiRangeDeletion'](_0x527d81,_0x4a9004=_0x42b2('0x101'),_0x182b0a={}){const _0x225bc9=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')]('Users')['me'],_0x12e520=_0x527d81[_0x42b2('0x3e')](_0xdd7184=>new _0x48c2b6(_0xdd7184[_0x42b2('0x8a')],_0xdd7184['end'])),_0x179005=new Set();for(const {suggestion:_0x453a50,meta:_0x2b50af}of this[_0x42b2('0x59')](_0x12e520,_0x42b2('0x42')))_0x2b50af[_0x42b2('0x54')]&&!_0x2b50af[_0x42b2('0x138')]&&_0x179005[_0x42b2('0x7e')](_0x453a50);for(const _0x336453 of _0x179005)if(_0x336453[_0x42b2('0xc7')]){const _0x313fa8=_0x336453['getRanges']();(!_0x336453[_0x42b2('0x8b')]||!_0x336453[_0x42b2('0x8b')][_0x42b2('0x11d')])&&(_0x313fa8[_0x42b2('0x3a')](_0x3db20c=>_0x12e520[_0x42b2('0xa2')](_0x48d127=>_0x48d127[_0x42b2('0x109')](_0x3db20c,!0x0)))&&_0x336453[_0x42b2('0xad')]());if(_0x12e520[_0x42b2('0x3a')](_0x6e747a=>_0x313fa8['some'](_0x52e6b0=>_0x52e6b0[_0x42b2('0x109')](_0x6e747a,!0x0)))){const _0x4a4872=this['_suggestionFactory'][_0x42b2('0xbd')](_0x42b2('0x140'),_0x4a9004,_0x42b2('0x107'));return this['forceDefaultExecution'](()=>_0x4a4872(_0x527d81,null,_0x182b0a)),null;}}else{const _0x313661=_0x336453[_0x42b2('0xb3')]();_0x12e520[_0x42b2('0xa2')](_0x1515ad=>_0x1515ad[_0x42b2('0x109')](_0x313661,!0x0))&&_0x336453['discard']();if(_0x12e520[_0x42b2('0x3a')](_0x1ef4d7=>_0x313661[_0x42b2('0x109')](_0x1ef4d7,!0x0))){const _0x1e5758=this[_0x42b2('0xfe')][_0x42b2('0xbd')]('deletion',_0x4a9004,_0x42b2('0x107'));return this[_0x42b2('0x5b')](()=>_0x1e5758(_0x12e520,null,_0x182b0a)),null;}}const _0x4c175c=this[_0x42b2('0xfe')]['getSuggestionCallback'](_0x42b2('0x140'),_0x4a9004,'join');let _0x59cf2e=null;for(const _0x5dfb01 of this[_0x42b2('0x7b')]())if(_0x5dfb01[_0x42b2('0x114')]['id']==_0x225bc9['id']&&_0x5dfb01['isInContent']&&_0x42b2('0x140')==_0x5dfb01[_0x42b2('0x121')]&&_0x5dfb01[_0x42b2('0x143')]==_0x4a9004&&Ot(_0x5dfb01,_0x182b0a)&&(_0x4c175c(_0x5dfb01[_0x42b2('0x58')](),_0x12e520)||_0x4c175c(_0x12e520,_0x5dfb01[_0x42b2('0x58')]()))){if(_0x59cf2e){if(_0x5dfb01['commentThread']&&_0x5dfb01[_0x42b2('0x11b')]['length'])continue;for(const _0x57daf6 of _0x5dfb01[_0x42b2('0x58')]())_0x59cf2e[_0x42b2('0x24')](_0x57daf6)||_0x59cf2e[_0x42b2('0xc4')](_0x57daf6);_0x5dfb01[_0x42b2('0x76')]();}else{_0x59cf2e=_0x5dfb01;for(const _0x2049ba of _0x12e520)_0x5dfb01[_0x42b2('0x24')](_0x2049ba)||_0x5dfb01[_0x42b2('0xc4')](_0x2049ba);}}if(_0x59cf2e)return _0x59cf2e;_0x179005[_0x42b2('0x63')]();for(const {suggestion:_0x203864,meta:_0x5b90c5}of this[_0x42b2('0x59')](_0x12e520,_0x42b2('0x140')))_0x5b90c5[_0x42b2('0x54')]&&(this[_0x42b2('0x5c')]||!_0x5b90c5[_0x42b2('0xf0')]&&!_0x5b90c5['isInsideObject'])&&Ot(_0x203864,_0x182b0a)&&_0x179005[_0x42b2('0x7e')](_0x203864);for(const _0x193322 of _0x179005){const _0x349ab9=_0x193322[_0x42b2('0x58')]();if(!_0x182b0a||!_0x182b0a[_0x42b2('0x11d')]){if(_0x12e520[_0x42b2('0x3a')](_0x2eccef=>_0x349ab9[_0x42b2('0xa2')](_0x367ebb=>_0x367ebb[_0x42b2('0x109')](_0x2eccef,!0x0))))return _0x193322;}(!_0x193322[_0x42b2('0x8b')]||!_0x193322[_0x42b2('0x8b')][_0x42b2('0x11d')])&&(_0x349ab9[_0x42b2('0x3a')](_0x5ccd5b=>_0x12e520['some'](_0x270b89=>_0x270b89[_0x42b2('0x109')](_0x5ccd5b,!0x0)))&&_0x193322[_0x42b2('0xad')]());}const _0x152a29=_0x1dc3be(),_0x2cebff=_0x225bc9['id'],_0x1974dd=_0x42b2('0x13c')+_0x4a9004,_0x44f9a7=this[_0x42b2('0x1c')]({'id':_0x152a29,'type':_0x1974dd,'createdAt':new Date(),'authorId':_0x2cebff,'attributes':_0x182b0a});for(const _0x56d595 of _0x12e520)_0x56d595[_0x42b2('0xe3')](),_0x56d595[_0x42b2('0xac')]||_0x42b2('0x1f')==_0x56d595['root'][_0x42b2('0xa4')]||this['_addSuggestionMarker'](_0x1974dd,_0x152a29,_0x2cebff,_0x56d595,_0x2918a7[_0x42b2('0x8d')]());return _0x44f9a7;}[_0x42b2('0x98')](_0x446714,_0x23e175){const _0xd3d1ce=_0x446714['getFirstMarker']();this['_model'][_0x42b2('0x5a')](_0xc6443e=>{_0xc6443e[_0x42b2('0x4a')](_0xd3d1ce,{'range':_0x23e175});});}['_addThreadToSuggestion'](_0x460667){const _0x10fdce=_0x460667['id'],_0x490abe=this['editor'][_0x42b2('0xc0')]['get'](_0x42b2('0xd0'));this[_0x42b2('0xa5')]['hasCommentThread'](_0x10fdce)||this['_commentsRepository'][_0x42b2('0xda')]({'channelId':_0x490abe,'threadId':_0x10fdce,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbfdd70=this[_0x42b2('0xa5')][_0x42b2('0x105')](_0x10fdce);_0xbfdd70[_0x42b2('0x11c')](_0x42b2('0x45')),_0xbfdd70[_0x42b2('0x45')]=!0x1,_0x460667[_0x42b2('0x11b')]=_0xbfdd70;}[_0x42b2('0x3d')](_0x46cc96,_0x1b529e,_0xeca86f,_0x1e0f37){if(_0x46cc96[_0x42b2('0x121')]!=_0x1b529e||_0x46cc96[_0x42b2('0x143')]!=_0xeca86f||_0x46cc96[_0x42b2('0x104')]['id']!=_0x1e0f37)throw this['editor']['enableReadOnlyMode'](_0x42b2('0xf')),new _0x81a6ba(_0x42b2('0xf'),this);}[_0x42b2('0x12b')](_0x4bbaf4,_0x2beca2){const _0x48e9a3=_0x4bbaf4[_0x42b2('0xb3')]();if(_0x2beca2[_0x42b2('0x10d')](_0x48e9a3))_0x4bbaf4[_0x42b2('0x76')]();else{if(_0x48e9a3['containsRange'](_0x2beca2)){const _0x1947fc=this['_model'][_0x42b2('0x7a')](_0x2beca2['start'][_0x42b2('0x5f')],_0x42b2('0xeb'));this[_0x42b2('0x98')](_0x4bbaf4,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x48e9a3[_0x42b2('0x8a')],_0x1947fc));const _0x1f37df=_0x1dc3be(),_0x1b9f77=_0x4bbaf4[_0x42b2('0x104')]['id'],_0x756bd0=_0x4bbaf4['type']+':'+_0x4bbaf4[_0x42b2('0x143')];this[_0x42b2('0x1c')]({'id':_0x1f37df,'type':_0x756bd0,'createdAt':new Date(),'authorId':_0x1b9f77,'data':_0x4bbaf4[_0x42b2('0x78')],'attributes':_0x4bbaf4['attributes']});const _0x36fe0f=this[_0x42b2('0xa6')][_0x42b2('0x7a')](_0x2beca2[_0x42b2('0xeb')][_0x42b2('0xf8')],_0x42b2('0x4c')),_0x161a09=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x36fe0f,_0x48e9a3[_0x42b2('0xeb')]);this[_0x42b2('0x2b')](_0x756bd0,_0x1f37df,_0x1b9f77,_0x161a09);}else{if(_0x48e9a3[_0x42b2('0x20')](_0x2beca2['start'])){const _0xeee909=this[_0x42b2('0xa6')][_0x42b2('0x7a')](_0x2beca2[_0x42b2('0x8a')][_0x42b2('0x5f')],_0x42b2('0xeb'));this[_0x42b2('0x98')](_0x4bbaf4,this[_0x42b2('0xa6')]['createRange'](_0x48e9a3[_0x42b2('0x8a')],_0xeee909));}else{const _0x9de5ff=this[_0x42b2('0xa6')][_0x42b2('0x7a')](_0x2beca2[_0x42b2('0xeb')][_0x42b2('0xf8')],'after');this[_0x42b2('0x98')](_0x4bbaf4,this[_0x42b2('0xa6')]['createRange'](_0x9de5ff,_0x48e9a3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47f2e0){for(const {suggestion:_0x25a1e1,meta:_0x2b2e01}of this['_findSuggestions'](_0x47f2e0,'insertion')){if(!_0x2b2e01[_0x42b2('0x54')])continue;const _0x35d0fe=_0x25a1e1[_0x42b2('0x58')]();for(const _0x92fe31 of _0x35d0fe)if(!_0x47f2e0[_0x42b2('0xd3')](_0x92fe31)[_0x42b2('0xde')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3f2ac1){const _0x1ec059=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['getUser'](_0x3f2ac1);if(!_0x1ec059)throw new _0x81a6ba(_0x42b2('0xc'),this);return _0x1ec059;}['_getExternalAuthor'](_0x2d34e9){const _0xf80512=this['editor'][_0x42b2('0x46')]['get'](_0x42b2('0xcb')),_0x44520a=_0x9faea9('external:'+_0x2d34e9),_0x23f8b2=_0xf80512[_0x42b2('0x81')](_0x44520a);return _0x23f8b2||_0xf80512[_0x42b2('0x69')]({'id':_0x44520a,'name':_0x2d34e9});}['_createSuggestion'](_0x263976,_0x148775,_0x2dbdcb,_0x58cf9b,_0x338009){const _0x32498f=this[_0x42b2('0x10f')](_0x58cf9b),_0x166f72=this['_suggestionFactory'][_0x42b2('0x66')](_0x263976,_0x148775,_0x2dbdcb,_0x32498f,_0x338009,_0x4d267d=>this[_0x42b2('0x6f')](_0x2dbdcb,{'attributes':_0x4d267d}));return this[_0x42b2('0x75')](_0x166f72,_0x42b2('0x107'),()=>{this[_0x42b2('0x6f')](_0x2dbdcb,{'state':'accepted'});},{'priority':_0x42b2('0x11f')}),this[_0x42b2('0x75')](_0x166f72,'discard',()=>{this[_0x42b2('0x6f')](_0x2dbdcb,{'state':_0x42b2('0x2d')});},{'priority':'high'}),this[_0x42b2('0x103')][_0x42b2('0xae')](_0x2dbdcb,_0x166f72),this[_0x42b2('0x12f')]['set'](_0x166f72,_0x42b2('0xe5')),_0x166f72;}[_0x42b2('0x50')](_0x3f4b00){const _0x467ee5=_0x3f4b00[_0x42b2('0x15')](':');return{'group':_0x467ee5[0x0],'type':_0x467ee5[0x1],'subType':_0x467ee5[_0x42b2('0xde')]>=0x5?_0x467ee5[0x2]:null,'id':_0x467ee5['length']<0x5?_0x467ee5[0x2]:_0x467ee5[0x3],'authorId':_0x467ee5['length']<0x5?_0x467ee5[0x3]:_0x467ee5[0x4],'markerCount':0x6==_0x467ee5[_0x42b2('0xde')]?_0x467ee5[0x5]:null};}['_breakSuggestionMarker'](_0x1e63b5,_0x5c0bd5,_0x4b5dc3){const _0x4897e8=_0x1e63b5[_0x42b2('0xb3')](),_0x32044f=_0x4897e8[_0x42b2('0x8a')],_0x14efe8=_0x4897e8['end'];this[_0x42b2('0x98')](_0x1e63b5,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x32044f,_0x5c0bd5));const _0x16b46b=_0x1dc3be(),_0x5d3f16=_0x1e63b5[_0x42b2('0x104')]['id'],_0x1d3ab9=_0x1e63b5['type']+(_0x1e63b5[_0x42b2('0x143')]?':'+_0x1e63b5[_0x42b2('0x143')]:'');this['_setSuggestionData']({'id':_0x16b46b,'type':_0x1d3ab9,'createdAt':new Date(),'authorId':_0x5d3f16,'originalSuggestionId':_0x1e63b5['id'],'attributes':_0x1e63b5[_0x42b2('0x8b')],'data':_0x1e63b5[_0x42b2('0x78')]}),_0x42b2('0xdf')==_0x1e63b5[_0x42b2('0x121')]&&(_0x4b5dc3=this[_0x42b2('0xa6')][_0x42b2('0xfd')](_0x4b5dc3[_0x42b2('0xf8')])),this[_0x42b2('0x2b')](_0x1d3ab9,_0x16b46b,_0x5d3f16,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x4b5dc3,_0x14efe8));}[_0x42b2('0x59')](_0x27b0ce,_0x451a68=null){const _0x301b2d=[],_0x2ea551=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'];Array[_0x42b2('0x137')](_0x27b0ce)||(_0x27b0ce=[_0x27b0ce]);for(const _0x4c3237 of this[_0x42b2('0x7b')]()){if(!_0x4c3237[_0x42b2('0x145')])continue;if(_0x451a68&&_0x4c3237[_0x42b2('0x121')]!=_0x451a68)continue;let _0x5a9933=!0x1;for(const _0x5239ea of _0x4c3237[_0x42b2('0x58')]()){for(const _0x512b76 of _0x27b0ce){const _0x203fdf=_0x512b76['start'][_0x42b2('0x10d')](_0x5239ea['end'])||_0x512b76['end'][_0x42b2('0x10d')](_0x5239ea[_0x42b2('0x8a')]);if(_0x203fdf||_0x512b76[_0x42b2('0xf2')](_0x5239ea)){const _0x44b34d=_0x512b76[_0x42b2('0x109')](_0x5239ea)&&_t(this[_0x42b2('0xa6')][_0x42b2('0xbb')],_0x5239ea[_0x42b2('0x8a')],_0x512b76),_0x586efb=_0x5239ea[_0x42b2('0x109')](_0x512b76)&&_t(this[_0x42b2('0xa6')][_0x42b2('0xbb')],_0x512b76[_0x42b2('0x8a')],_0x5239ea);_0x301b2d[_0x42b2('0xf1')]({'suggestion':_0x4c3237,'meta':{'isOwn':_0x2ea551==_0x4c3237['author'],'isNextTo':_0x203fdf,'isInsideObject':_0x44b34d,'containsRangeInObject':_0x586efb}}),_0x5a9933=!0x0;break;}}if(_0x5a9933)break;}}return _0x301b2d;}[_0x42b2('0x2b')](_0x201140,_0x1effc4,_0x1506ae,_0x205ea0,_0xa119b3){this['_model'][_0x42b2('0x5a')](_0x254b22=>{let _0x15127c=_0x42b2('0xa3')+_0x201140+':'+_0x1effc4+':'+_0x1506ae;_0xa119b3&&(_0x15127c=_0x15127c+':'+_0xa119b3),_0x254b22[_0x42b2('0xf3')](_0x15127c,{'range':_0x205ea0,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x42b2('0xb5')](_0x1ab63b){const _0x21f7ab=_0x1ab63b['previous'],_0x1f7de7=_0x1ab63b[_0x42b2('0xab')];_0x1ab63b[_0x42b2('0x10c')]=null,null!=_0x21f7ab&&(_0x21f7ab[_0x42b2('0xab')]=null),_0x1ab63b[_0x42b2('0xab')]=null,null!=_0x1f7de7&&(_0x1f7de7[_0x42b2('0x10c')]=null),_0x42b2('0x122')==this[_0x42b2('0x12f')][_0x42b2('0x102')](_0x1ab63b)&&(this['_suggestionState'][_0x42b2('0xae')](_0x1ab63b,'removed'),this[_0x42b2('0x91')](_0x42b2('0x72'),_0x1ab63b,_0x21f7ab,_0x1f7de7));}[_0x42b2('0x1c')](_0x45db27){const _0x5f2570=_0x45db27['id'],_0x9e5612=this['addSuggestionData'](_0x45db27);if(this[_0x42b2('0x53')]&&this['_adapter'][_0x42b2('0x12a')]){const _0x55ea5=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0x13b')),_0x456dcb=_0x9e5612[_0x42b2('0x56')],_0x3426f5=_0x9e5612[_0x42b2('0x143')]?_0x9e5612[_0x42b2('0x121')]+':'+_0x9e5612[_0x42b2('0x143')]:_0x9e5612[_0x42b2('0x121')],_0x4925c8=this['editor'][_0x42b2('0x13d')],_0x25c979=_0x55ea5[_0x42b2('0x7e')](_0x1c3871(_0x4925c8,_0x42b2('0x41'))),_0x3db470={'id':_0x5f2570,'type':_0x3426f5,'hasComments':_0x456dcb,'data':_0x45db27[_0x42b2('0x78')]||null,'originalSuggestionId':_0x45db27[_0x42b2('0x9e')]||null,'attributes':_0x9e5612[_0x42b2('0x8b')]};this['_adapter'][_0x42b2('0x12a')](_0x3db470)[_0x42b2('0xdd')](_0x3f8157=>{_0x9e5612[_0x42b2('0x97')]=!0x0,_0x55ea5[_0x42b2('0xb2')](_0x25c979),_0x3f8157&&_0x3f8157['createdAt']&&(this[_0x42b2('0x103')][_0x42b2('0x102')](_0x5f2570)[_0x42b2('0x2a')]=_0x3f8157[_0x42b2('0x2a')]);})['catch'](_0x54d9c1=>{throw _0x184e53(_0x42b2('0xe')),this[_0x42b2('0x48')][_0x42b2('0xcf')][_0x42b2('0x113')]({'isUndoable':!0x1},()=>{_0x9e5612[_0x42b2('0xad')]();}),_0x9e5612['stopListening'](),this[_0x42b2('0x103')]['delete'](_0x9e5612['id']),this[_0x42b2('0x12f')]['delete'](_0x9e5612),_0x54d9c1;});}return _0x9e5612;}[_0x42b2('0x6f')](_0x3d2bea,_0x15084f){const _0x172a03=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0x13b')),_0x123d4=this[_0x42b2('0x7')](_0x3d2bea);if(this[_0x42b2('0x53')]&&this[_0x42b2('0x53')][_0x42b2('0xd1')]){if(_0x123d4[_0x42b2('0x97')]){const _0x21d798=_0x172a03[_0x42b2('0x7e')](_0x1c3871(this[_0x42b2('0x48')]['locale'],_0x42b2('0x41')));this['_adapter'][_0x42b2('0xd1')](_0x3d2bea,_0x15084f)[_0x42b2('0xdd')](()=>{_0x172a03[_0x42b2('0xb2')](_0x21d798);});}else _0x123d4['on'](_0x42b2('0x139'),()=>{this[_0x42b2('0x6f')](_0x3d2bea,_0x15084f);});}}[_0x42b2('0x7d')](_0x464f56){if(!this[_0x42b2('0x53')]||!this[_0x42b2('0x53')][_0x42b2('0x7')])throw new _0x81a6ba(_0x42b2('0xb0'),this);return this['_adapter'][_0x42b2('0x7')](_0x464f56);}[_0x42b2('0x131')](_0x5aa7f1){const {id:_0xc40f68,type:_0x5d5039,subType:_0xe79f01,authorId:_0x48632a}=this[_0x42b2('0x50')](_0x5aa7f1),_0x27a6f3=this[_0x42b2('0x103')][_0x42b2('0x102')](_0xc40f68)||this[_0x42b2('0x4')](_0x5d5039,_0xe79f01,_0xc40f68,_0x48632a,{});switch(this['_checkSuggestionCorrectness'](_0x27a6f3,_0x5d5039,_0xe79f01,_0x48632a),this['_suggestionState'][_0x42b2('0x102')](_0x27a6f3)){case _0x42b2('0xe5'):this[_0x42b2('0x7d')](_0xc40f68)[_0x42b2('0xdd')](_0x3761ce=>{let _0x4f634b=Promise[_0x42b2('0x30')]();_0x3761ce[_0x42b2('0x56')]&&(_0x4f634b=this[_0x42b2('0xa5')][_0x42b2('0x13')]({'channelId':this[_0x42b2('0x48')]['config'][_0x42b2('0x102')]('collaboration.channelId'),'threadId':_0xc40f68})),_0x4f634b[_0x42b2('0xdd')](()=>{this[_0x42b2('0x82')](_0x3761ce)[_0x42b2('0x97')]=!0x0;});}),this['_suggestionState'][_0x42b2('0xae')](_0x27a6f3,_0x42b2('0x9'));break;case _0x42b2('0x132'):this['_updateSuggestionData'](_0xc40f68,{'state':_0x42b2('0x1b')});case _0x42b2('0x36'):this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x27a6f3,_0x42b2('0x122')),this[_0x42b2('0x91')](_0x42b2('0xe7'),_0x27a6f3);break;case _0x42b2('0x122'):this[_0x42b2('0x91')](_0x42b2('0x8c'),_0x27a6f3);}return _0x27a6f3[_0x42b2('0xb4')](_0x5aa7f1),_0x27a6f3;}[_0x42b2('0x39')](_0x3e7d30){const _0x8a404e=Array[_0x42b2('0x71')](_0x3e7d30)[_0x42b2('0xc3')](_0x17cba1=>!_0x17cba1[_0x42b2('0xc7')]),_0xb6dd99=this[_0x42b2('0x7b')]({'skipNotAttached':!0x0})['filter'](_0x4de2fd=>!_0x4de2fd[_0x42b2('0xc7')]),_0x6fb8b0=_0xb6dd99[_0x42b2('0xc3')](_0x5075cc=>!_0x3e7d30[_0x42b2('0x4b')](_0x5075cc)),_0x1f7344=new Map(_0xb6dd99[_0x42b2('0x3e')](_0x176f06=>[_0x176f06,this['_suggestionFactory'][_0x42b2('0xbd')](_0x176f06[_0x42b2('0x121')],_0x176f06[_0x42b2('0x143')],_0x42b2('0x9c'))])),_0x3cd746=new Map(_0xb6dd99['map'](_0xca6489=>[_0xca6489,_0xca6489[_0x42b2('0xb3')]()])),_0x20124c=new Set(),_0x18c109=new Set();for(let _0x139e58=0x0;_0x139e58<_0x8a404e[_0x42b2('0xde')];_0x139e58++)_0x4e6c45(_0x8a404e[_0x139e58],_0x8a404e,_0x139e58+0x1);for(let _0x20cb77=0x0;_0x20cb77<_0x8a404e[_0x42b2('0xde')];_0x20cb77++)_0x4e6c45(_0x8a404e[_0x20cb77],_0x6fb8b0,0x0);for(let _0x1cb96e=0x0;_0x1cb96e<_0x8a404e[_0x42b2('0xde')];_0x1cb96e++){const _0x4a7085=_0x8a404e[_0x1cb96e];!_0x18c109[_0x42b2('0x4b')](_0x4a7085)&&_0x4a7085[_0x42b2('0x10c')]&&(_0x4a7085[_0x42b2('0x10c')][_0x42b2('0xab')]===_0x4a7085&&(_0x4a7085[_0x42b2('0x10c')]['next']=null),_0x4a7085['previous']=null),!_0x20124c['has'](_0x4a7085)&&_0x4a7085[_0x42b2('0xab')]&&(_0x4a7085[_0x42b2('0xab')][_0x42b2('0x10c')]===_0x4a7085&&(_0x4a7085['next']['previous']=null),_0x4a7085[_0x42b2('0xab')]=null);}function _0x4e6c45(_0x22dc18,_0x2f69ee,_0xed7ef2){for(let _0x469856=_0xed7ef2;_0x469856<_0x2f69ee[_0x42b2('0xde')];_0x469856++){const _0x27358f=_0x590b5c(_0x22dc18,_0x2f69ee[_0x469856]);_0x27358f&&(_0x27358f[0x0][_0x42b2('0xab')]=_0x27358f[0x1],_0x27358f[0x1][_0x42b2('0x10c')]=_0x27358f[0x0],_0x20124c['add'](_0x27358f[0x0]),_0x18c109[_0x42b2('0x7e')](_0x27358f[0x1]));}}function _0x590b5c(_0x1d2264,_0x1d07ac){if(_0x1d2264['author']['id']!==_0x1d07ac[_0x42b2('0x114')]['id'])return null;const _0x4524e8=_0x1f7344['get'](_0x1d2264)(_0x1d2264,_0x1d07ac,_0x3cd746[_0x42b2('0x102')](_0x1d2264),_0x3cd746[_0x42b2('0x102')](_0x1d07ac));if(!_0x4524e8)return null;return _0x1f7344['get'](_0x1d07ac)(_0x1d2264,_0x1d07ac,_0x3cd746[_0x42b2('0x102')](_0x1d2264),_0x3cd746[_0x42b2('0x102')](_0x1d07ac))?_0x4524e8[0x1][_0x42b2('0x11b')]&&_0x4524e8[0x1]['commentThread'][_0x42b2('0xde')]?null:_0x4524e8:null;}}[_0x42b2('0x142')](_0xf7e956){const _0x347356=Array[_0x42b2('0x71')](_0xf7e956),_0x4f9b56=this[_0x42b2('0x7b')]({'skipNotAttached':!0x0}),_0x22e194=_0x4f9b56['filter'](_0x349e43=>!_0xf7e956['has'](_0x349e43)),_0x3a1466=new Map(_0x347356['map'](_0x23736d=>[_0x23736d,this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x23736d['type'],_0x23736d[_0x42b2('0x143')],'join')])),_0x63f618=new Map(_0x4f9b56[_0x42b2('0x3e')](_0x18e073=>[_0x18e073,_0x18e073[_0x42b2('0x58')]()]));for(let _0x3f9301=0x0;_0x3f9301<_0x347356[_0x42b2('0xde')];_0x3f9301++){if(_0x3c516c(this,_0x347356[_0x3f9301],_0x347356,_0x3f9301+0x1))return!0x0;}for(let _0x5a6d48=0x0;_0x5a6d48<_0x347356[_0x42b2('0xde')];_0x5a6d48++){if(_0x3c516c(this,_0x347356[_0x5a6d48],_0x22e194,0x0))return!0x0;}return!0x1;function _0x3c516c(_0x347946,_0x1d9766,_0x18a85b,_0x390b32){for(let _0x8459a9=_0x390b32;_0x8459a9<_0x18a85b[_0x42b2('0xde')];_0x8459a9++){const _0xaa4715=_0x18a85b[_0x8459a9];if(_0xaa4715['type']!==_0x1d9766[_0x42b2('0x121')]||_0xaa4715[_0x42b2('0x114')]['id']!==_0x1d9766['author']['id']||_0xaa4715['subType']!==_0x1d9766['subType'])continue;if(!Ut(_0x1d9766,_0xaa4715))continue;const _0x4da150=_0x3a1466[_0x42b2('0x102')](_0x1d9766),_0x2e680b=_0x63f618[_0x42b2('0x102')](_0x1d9766),_0x37d4df=_0x63f618[_0x42b2('0x102')](_0xaa4715),_0x3ee0e7=_0x1d9766[_0x42b2('0x11b')]&&_0x1d9766[_0x42b2('0x11b')][_0x42b2('0xde')],_0x859f8=_0xaa4715[_0x42b2('0x11b')]&&_0xaa4715[_0x42b2('0x11b')]['length'];if(!_0x3ee0e7&&_0x4da150(_0x37d4df,_0x2e680b))return _0x347946[_0x42b2('0xcc')](_0xaa4715,_0x1d9766),_0x63f618['delete'](_0x1d9766),!0x0;if(!_0x859f8&&_0x4da150(_0x2e680b,_0x37d4df))return _0x347946[_0x42b2('0xcc')](_0x1d9766,_0xaa4715),_0x63f618['delete'](_0xaa4715),!0x0;}return!0x1;}}[_0x42b2('0xcc')](_0xf87f92,_0x382d2e){if(_0xf87f92['isMultiRange'])for(const _0x39a92d of _0x382d2e['getRanges']())_0xf87f92[_0x42b2('0xc4')](_0x39a92d);else{const _0x1515c0=_0x382d2e[_0x42b2('0xb3')]()[_0x42b2('0xeb')];this['_setSuggestionRange'](_0xf87f92,this['_model'][_0x42b2('0x100')](_0xf87f92['getFirstRange']()[_0x42b2('0x8a')],_0x1515c0));}_0x382d2e['removeMarkers']();}}class Bt{constructor(_0x1bcc79){this[_0x42b2('0x68')]=_0x1bcc79,this['_model']=_0x1bcc79[_0x42b2('0xcf')],this[_0x42b2('0x9d')]=new Map(),this[_0x42b2('0x110')]=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x541141,_0x133704,_0x39824a,_0x534b51,_0x1e7b61,_0x425df4){return new _0x2918a7(this[_0x42b2('0xa6')],{'type':_0x541141,'subType':_0x133704,'id':_0x39824a,'author':_0x534b51,'creator':_0x534b51,'attributes':_0x1e7b61,'onAttributesChange':_0x425df4,'onAccept':(..._0x56de70)=>this['getSuggestionCallback'](_0x541141,_0x133704,'accept')(..._0x56de70),'onDiscard':(..._0x19d0db)=>this[_0x42b2('0xbd')](_0x541141,_0x133704,_0x42b2('0xad'))(..._0x19d0db)});}[_0x42b2('0x88')](_0x281579,_0x5623f6,_0x2e0f03,_0x4b5e55){const _0x4d7caf=_0x281579+':'+_0x5623f6+':'+_0x2e0f03;this[_0x42b2('0x9d')][_0x42b2('0xae')](_0x4d7caf,_0x4b5e55);}['getSuggestionCallback'](_0x12f421,_0x5a259a,_0x53fd9a){const _0x59b83e=_0x12f421+':'+_0x5a259a+':'+_0x53fd9a;return this[_0x42b2('0x9d')][_0x42b2('0x102')](_0x59b83e)||this[_0x42b2('0x110')][_0x42b2('0x102')](_0x12f421+':'+_0x53fd9a);}['_registerDefaultCallbacks'](){const _0x109618=()=>!0x1,_0x8f3018=_0x442a49=>{_0x442a49[_0x42b2('0x19')]((_0x1efe5f,_0x3de8c8)=>_0x1efe5f[_0x42b2('0x8a')]['isBefore'](_0x3de8c8['start'])?0x1:-0x1),this[_0x42b2('0xa6')][_0x42b2('0x5a')](_0xdd4864=>{for(const _0x404460 of _0x442a49){let _0x52265c;_0x52265c=_0x404460[_0x42b2('0xeb')]['isAtEnd']&&_0x404460['end'][_0x42b2('0xf8')]==_0x404460[_0x42b2('0x8a')]['nodeAfter']?_0xdd4864['createSelection'](_0x404460['start'][_0x42b2('0xa9')],'on'):_0xdd4864[_0x42b2('0x13f')](_0x404460),this[_0x42b2('0xa6')][_0x42b2('0xe6')](_0x52265c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2bdc65=(_0x22019b,_0x881d0d)=>{this[_0x42b2('0xa6')][_0x42b2('0x5a')](_0x1666ec=>{const {commandName:_0x2b1133,commandParams:_0x21653b=[]}=_0x881d0d,_0x707757=_0x22019b['map'](_0x5b996f=>(Mt(_0x5b996f)&&(_0x5b996f=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x5b996f['end'])),_0x5b996f))[_0x42b2('0xc3')](_0x215a45=>_0x42b2('0x1f')!==_0x215a45['root'][_0x42b2('0xa4')]);if(_0x707757[_0x42b2('0xde')]<0x1)return;const _0x55ba2a=Array[_0x42b2('0x71')](this[_0x42b2('0xa6')]['document'][_0x42b2('0x43')][_0x42b2('0x58')]())[_0x42b2('0x3e')](_0x11ef8f=>_0x48c2b6[_0x42b2('0xb6')](_0x11ef8f));_0x1666ec[_0x42b2('0x96')](_0x707757);for(const _0x49d409 of this['_editor']['commands'][_0x42b2('0x73')]())_0x49d409[_0x42b2('0x87')]();_0x21653b[_0x42b2('0xf1')]({'forceDefaultExecution':!0x0}),this[_0x42b2('0x68')]['execute'](_0x2b1133,..._0x21653b);const _0x20ef8b=_0x55ba2a[_0x42b2('0xc3')](_0xc95ed8=>'$graveyard'!=_0xc95ed8['root'][_0x42b2('0xa4')]);_0x20ef8b[_0x42b2('0xde')]>0x0&&_0x1666ec[_0x42b2('0x96')](_0x20ef8b);for(const _0x229848 of _0x55ba2a)_0x229848['detach']();});},_0x20eee5=(_0xfdb3b0,_0x378cab)=>0x1==_0xfdb3b0[_0x42b2('0xde')]&&0x1==_0x378cab['length']&&_0xfdb3b0[0x0][_0x42b2('0xeb')]['isEqual'](_0x378cab[0x0][_0x42b2('0x8a')]),_0x512475=(_0x53c6f5,_0x325920,_0xf499ff,_0x3c9e1b)=>xt(_0x53c6f5,_0x325920,_0xf499ff,_0x3c9e1b,this[_0x42b2('0xa6')])?[_0x53c6f5,_0x325920]:xt(_0x325920,_0x53c6f5,_0x3c9e1b,_0xf499ff,this[_0x42b2('0xa6')])?[_0x325920,_0x53c6f5]:null;this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0xa1'),_0x109618),this['_defaultCallbacks']['set'](_0x42b2('0xd5'),_0x8f3018),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x70'),_0x20eee5),this[_0x42b2('0x110')][_0x42b2('0xae')]('insertion:chain',_0x512475),this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0x3c'),_0x8f3018),this[_0x42b2('0x110')][_0x42b2('0xae')]('deletion:discard',_0x109618),this[_0x42b2('0x110')]['set'](_0x42b2('0x7f'),_0x20eee5),this[_0x42b2('0x110')]['set'](_0x42b2('0xd2'),_0x512475),this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0xe4'),_0x2bdc65),this['_defaultCallbacks']['set'](_0x42b2('0x23'),_0x109618),this[_0x42b2('0x110')]['set'](_0x42b2('0xa'),_0x20eee5),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x127'),_0x109618),this[_0x42b2('0x110')]['set'](_0x42b2('0x124'),_0x2bdc65),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x51'),_0x109618),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x21'),_0x20eee5),this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0x93'),_0x109618);}}function _t(_0x16f857,_0x288d63,_0x256931){for(const _0x12ce6b of _0x288d63[_0x42b2('0xf8')][_0x42b2('0x12e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x12ce6b[_0x42b2('0xc9')]==_0x12ce6b)return!0x1;if(!_0x256931[_0x42b2('0x99')](_0x12ce6b))return!0x1;if(_0x16f857[_0x42b2('0xe2')](_0x12ce6b)||_0x16f857[_0x42b2('0x8f')](_0x12ce6b))return!0x0;}return!0x1;}function Mt(_0x5492cb){return _0x5492cb['end'][_0x42b2('0xf8')]==_0x5492cb[_0x42b2('0x8a')][_0x42b2('0xa9')]&&_0x5492cb[_0x42b2('0xeb')][_0x42b2('0x26')];}function $t(_0xf5d895,_0x447901,_0x481ab8,_0x13baa3){const _0x827f0e=_0x1bf32f=>!_0x1bf32f[_0x42b2('0x25')]['is']('$textProxy')&&!_0x13baa3['isObject'](_0x1bf32f[_0x42b2('0x25')]),_0x3e7552=_0xf5d895[_0x42b2('0x8a')][_0x42b2('0x55')](_0x827f0e),_0x1a4532=_0xf5d895[_0x42b2('0xeb')]['getLastMatchingPosition'](_0x827f0e,{'direction':_0x42b2('0x116')});return(!_0xf5d895[_0x42b2('0x8a')][_0x42b2('0x10d')](_0x3e7552)||!_0xf5d895[_0x42b2('0xeb')][_0x42b2('0x10d')](_0x1a4532))&&(_0x3e7552[_0x42b2('0x29')](_0x1a4532)?_0x481ab8[_0x42b2('0x4a')](_0x447901,{'range':_0x481ab8[_0x42b2('0x100')](_0x3e7552,_0x1a4532)}):_0x481ab8['removeMarker'](_0x447901),!0x0);}function Nt(_0x2dc325){return _0x9faea9(_0x2dc325);}function Rt(_0x66c8a4){const _0x508eba=_0x66c8a4[_0x42b2('0x8a')]['nodeAfter'];return _0x508eba&&_0x508eba['is'](_0x42b2('0xd9'));}function jt(_0x1d8ee0,_0x4fdaa1){const _0x2cf786=_0x4fdaa1[_0x42b2('0xbb')][_0x42b2('0xe2')](_0x1d8ee0)||_0x4fdaa1[_0x42b2('0xbb')][_0x42b2('0x144')](_0x1d8ee0);return _0x4fdaa1[_0x42b2('0x100')](_0x4fdaa1[_0x42b2('0x7a')](_0x1d8ee0,_0x42b2('0x5e')),_0x2cf786?_0x4fdaa1[_0x42b2('0x90')](_0x1d8ee0):_0x4fdaa1[_0x42b2('0x7a')](_0x1d8ee0,'end'));}function xt(_0x323798,_0x2c9ca3,_0x57aa8f,_0x49148a,_0x4d57b8){if(!Ut(_0x323798,_0x2c9ca3))return!0x1;if(_0x57aa8f['end'][_0x42b2('0x10d')](_0x49148a[_0x42b2('0x8a')]))return!0x0;if(_0x323798[_0x42b2('0x121')]!=_0x2c9ca3[_0x42b2('0x121')])return!0x1;if(!_0x57aa8f['end'][_0x42b2('0xff')](_0x49148a[_0x42b2('0x8a')]))return!0x1;const _0x5234b2=_0x4d57b8[_0x42b2('0x100')](_0x57aa8f[_0x42b2('0xeb')],_0x49148a['start'])['getWalker']();for(const _0x381a1f of _0x5234b2)if([_0x42b2('0x34'),'elementEnd']['includes'](_0x381a1f[_0x42b2('0x121')])&&_0x4d57b8[_0x42b2('0xbb')][_0x42b2('0x8f')](_0x381a1f[_0x42b2('0x25')]))return!0x1;return!0x0;}function Ut(_0x2af982,_0xa2d350){return!(!_0x2af982[_0x42b2('0x0')]||!_0xa2d350[_0x42b2('0x0')])&&_0x194041(_0x2af982[_0x42b2('0x8b')],_0xa2d350[_0x42b2('0x8b')]);}function Ot(_0x6ae8e,_0x2d1a66){const _0x3469d6=Et(_0x6ae8e[_0x42b2('0x8b')]),_0x39684d=Et(_0x2d1a66);if(!_0x6ae8e[_0x42b2('0x0')])return!0x1;for(const _0x4f77d2 of Object[_0x42b2('0x6b')](_0x39684d))if(!_0x194041(_0x3469d6[_0x4f77d2],_0x39684d[_0x4f77d2]))return!0x1;return!0x0;}function Et(_0xdb4a95){const _0x41b4b8=Object['assign']({},_0xdb4a95);return delete _0x41b4b8[_0x42b2('0x11d')],delete _0x41b4b8[_0x42b2('0x18')],_0x41b4b8;}
23
+ const _0x4f65=['trackChangesCommand','isDocumentOperation','getDifference','splice','default','trackChanges.trackFormatChanges','setSelection','getMarkers','unbind','_mergeNestedSuggestions','removed','element','getShiftedBy','change:activeMarkers','_commentsRepository','isLimit','isInContent','_suggestions','markerNameToElements','oldRange','_getExternalAuthor','getChanges','fromCharCode','removeClass','multipleBlocks','getRanges','removeMarkers','_setSuggestionRange','formatBlock:join','data-suggestion','hasSuggestion','formatInline','getAllAdjacentSuggestions','getUser','from','collaboration.channelId','clear','_model','suggestionLoaded','consumable','formatInline:','highest','suggestion-type','update:suggestion','isBefore','formatBlock','getIntersection','add','after','split','createRange','start','_handleNewSuggestionMarker','getMultiRangeId','isBlock','_findSuggestions','_updateSuggestionData','markers','subType','commandName','_getSuggestionData','fire','then','hasCommentThread','elementToElement','dataToMarker','chain','_defaultCallbacks','activeMarkers','filter','remove','_onDiscard','containsRangeInObject','discardAllSuggestions','deletion:','insertion:accept','accept','deletion:join','rethrowUnexpectedError','always','$graveyard','_enabledCommands','every','getSuggestions','discard','isAtEnd','$marker','_addThreadToSuggestion','isTouching','isArray','_refreshSuggestionsChain','buildSuggestion','assign','TrackChangesEditing','getRange','addMarkerName','values','commands','previous','reconvertMarker','isUndo','forceDefaultExecution','nodeBefore','insert','track-changes-user-not-found','selection','addHighlight','formatGroupId','creator','delete','formatInline:discard','updateSuggestion','map','getChangedMarkers','group','resolve','editingDowncast','_splitMarkerName','change:data','sort','editing','hasComments','document','markerName','getLastMatchingPosition','newRange','trackChanges.mergeNestedSuggestions','_createSuggestion','deletion:accept','options','root','createPositionBefore','config','enableReadOnlyMode','isRemovable','_getAuthorFromId','push','refresh','stop','discardSuggestion','isOwn','clone','getFirstMarker','name','getSuggestionCallback','isMultiRange','addSuggestionData','applyOperation','open','has','deletion:discard','elementEnd','deletion:chain','error-saving-suggestion-data-suggestion-discarded','deletion','ck-suggestion-marker--active','markDeletion','elementStart','isExternal','_joinWithAdjacentSuggestions','CommentsRepository','toViewElement','move','never','discardSelectedSuggestions','authorName','conversion','formatBlock:chain','consume','containsPosition','@external','_descriptionFactory','addUser','widget','high','addComment','addClass','authoredAt','nodeAfter','isSelectable','createPositionAt','isInsideObject','head','registerPostFixer','getAttribute','getCommentThread','$textProxy','containsRange','addMarker:suggestion','change','model','adapter','createRangeIn','Users','pluginName','_isForcedDefaultExecutionBlock','_removeSuggestion','rootName','normal','isObject','value','trackChanges','_suggestionState','isNextTo','ready','getNearestSelectionRange','insertion','ck-suggestion-marker','type','createPositionAfter','_suggestionFactory','howMany','editor','targetPosition','getAncestors','moveTargetPosition','before','addMarker:suggestion:formatBlock','addRange','getCustomProperty','PENDING_ACTION_SUGGESTION','skipNestingCheck','_cutOutSuggestionMarker','setAttribute','define','createSelection','parent','marker-count','getWalker','size','ck-suggestion-marker-formatBlock','data','next','updateMarker','ck-suggestion-marker-','mapper','external:','acceptSelectedSuggestions','item','addCommentThread','isAfter','get','bindElementToMarker','setTo','isCollapsed','acceptAllSuggestions','locale','dataDowncast','range','_trackFormatChanges','execute','suggestionChanged','removeMarker','insertion:chain','_isDataLoaded','_rangeIsInLocalUserInsertion','length','suggestion','enableCommand','enqueueChange','createdAt','author','acceptSuggestion','getSuggestion','addSuggestion','commentThread','init','notReady','formatBlock:','isEqual','join','containsItem','multi','some','removeAttribute','_addSuggestionMarker','includes','plugins','markInsertion','change:_saved','fetchCommentThread','attributes','schema','getItems','_joinSuggestions','PendingActions','writer','documentSelection','differ','_breakSuggestionMarker','upcast','set','detach','markBlockFormat','requires','_saved','forward','markerToData','markerToHighlight','_registerDefaultCallbacks','_customCallbacks','_editor','_checkSuggestionCorrectness','track-changes-suggestion-data-mismatch','_adapter','position','end','getFirstRange','dataReady','formatBlock:accept','batch','backward','markInlineFormat','listenTo','isIntersectingWithRange','_setSuggestionData','for','showSuggestionHighlights'];(function(_0xebb272,_0x4f656a){const _0x5e6a2e=function(_0x42e602){while(--_0x42e602){_0xebb272['push'](_0xebb272['shift']());}};_0x5e6a2e(++_0x4f656a);}(_0x4f65,0xa1));const _0x5e6a=function(_0xebb272,_0x4f656a){_0xebb272=_0xebb272-0x0;let _0x5e6a2e=_0x4f65[_0xebb272];return _0x5e6a2e;};import{Plugin as _0x40be21,PendingActions as _0x3f1c9b}from'ckeditor5/src/core';import{LiveRange as _0x14a52e}from'ckeditor5/src/engine';import{CKEditorError as _0x6a793a,uid as _0x260652,priorities as _0x23c666,logWarning as _0x5e52fa}from'ckeditor5/src/utils';import{toWidget as _0x39ba1b}from'ckeditor5/src/widget';import{Users as _0x5c4d5d,hashObject as _0xd4616e}from'ckeditor5-collaboration/src/collaboration-core';import _0x29ed9d from'./commands/trackchangescommand';import _0x33967c from'./commands/acceptsuggestioncommand';import _0x56c3b3 from'./commands/discardsuggestioncommand';import _0x4b9649 from'./commands/executeonallsuggestionscommand';import _0x5988ec from'./commands/executeonselectedsuggestionscommand';import _0x51161f from'./suggestion';import _0x527da4 from'./suggestiondescriptionfactory';import _0x2676a5 from'./integrations/aiassistant';import _0x1129a2 from'./integrations/alignment';import _0x578d4a from'./integrations/basicstyles';import _0x5cd697 from'./integrations/blockquote';import _0x30116a from'./integrations/ckbox';import _0x4c739d from'./integrations/codeblock';import _0x334a14 from'./integrations/comments';import _0x598801 from'./integrations/deletecommand';import _0x43382c from'./integrations/documentlist';import _0x2103da from'./integrations/entercommand';import _0x2b6b0a from'./integrations/findandreplace';import _0x307eff from'./integrations/font';import _0x37da1c from'./integrations/formatpainter';import _0x153d75 from'./integrations/heading';import _0x25af0f from'./integrations/highlight';import _0x46a331 from'./integrations/horizontalline';import _0xda4e26 from'./integrations/htmlembed';import _0x367ffb from'./integrations/image';import _0x29b5f5 from'./integrations/imagereplace';import _0x3713d8 from'./integrations/importword';import _0x6b3970 from'./integrations/indent';import _0x3f7d64 from'./integrations/inputcommand';import _0x735d2d from'./integrations/link';import _0x6a89cc from'./integrations/list';import _0x315551 from'./integrations/listproperties';import _0xc20e6d from'./integrations/mediaembed';import _0x3fe516 from'./integrations/mention';import _0x496795 from'./integrations/pagebreak';import _0x87179 from'./integrations/paragraph';import _0x217981 from'./integrations/removeformat';import _0x4ce3d8 from'./integrations/restrictededitingmode';import _0x4733c3 from'./integrations/shiftentercommand';import _0x27e8c1 from'./integrations/standardeditingmode';import _0x356a38 from'./integrations/style';import _0x573b67 from'./integrations/table';import _0x163b14 from'./integrations/tablemergesplit';import _0x322a68 from'./integrations/tableheadings';import _0x5e40b6 from'./integrations/tableclipboard';import _0x37c4fa from'./integrations/tablecolumnresize';import _0x5a0747 from'./integrations/template';import _0x48347b from'./integrations/tableofcontents';import _0x9ac38 from'./integrations/title';import _0x156b26 from'./integrations/undo';import{getTranslation as _0x3f2328}from'./utils/common-translations';import _0x4099d7 from'./integrations/tablecaption';import _0x563d10 from'./integrations/documentlistproperties';import _0x1f1662 from'./integrations/tableproperties';import{isEqual as _0x37cf62}from'lodash-es';export default class p extends _0x40be21{static get[_0x5e6a('0x85')](){return[_0x5e6a('0x13d'),_0x5c4d5d,_0x3f1c9b,_0x2676a5,_0x1129a2,_0x578d4a,_0x5cd697,_0x30116a,_0x4c739d,_0x334a14,_0x598801,_0x43382c,_0x563d10,_0x2103da,_0x2b6b0a,_0x307eff,_0x37da1c,_0x153d75,_0x25af0f,_0x46a331,_0xda4e26,_0x367ffb,_0x29b5f5,_0x3713d8,_0x6b3970,_0x3f7d64,_0x735d2d,_0x6a89cc,_0x315551,_0xc20e6d,_0x3fe516,_0x496795,_0x87179,_0x217981,_0x4ce3d8,_0x4733c3,_0x27e8c1,_0x356a38,_0x573b67,_0x163b14,_0x322a68,_0x4099d7,_0x5e40b6,_0x37c4fa,_0x48347b,_0x1f1662,_0x5a0747,_0x9ac38,_0x156b26];}static get[_0x5e6a('0x21')](){return _0x5e6a('0xfa');}constructor(_0x606d4){function _0x4a171a(_0x451712){return _0x451712[_0x5e6a('0x10d')](_0x2e0070=>String[_0x5e6a('0xb3')](_0x2e0070))[_0x5e6a('0x6d')]('');}super(_0x606d4),this[_0x5e6a('0x82')]('activeMarkers',[]),this['on'](_0x5e6a('0xaa'),(_0x61912c,_0x6bd364,_0x1aac3e,_0x121a32)=>{this[_0x5e6a('0xc2')][_0x5e6a('0x1c')](()=>{for(const _0x2d8683 of[..._0x121a32,..._0x1aac3e])this[_0x5e6a('0xc2')][_0x5e6a('0xd6')][_0x5e6a('0x132')](_0x2d8683)&&_0x606d4[_0x5e6a('0x115')][_0x5e6a('0x100')](_0x2d8683);});}),this[_0x5e6a('0xa')]=new _0x527da4(this[_0x5e6a('0x33')][_0x5e6a('0x1d')][_0x5e6a('0x79')],this[_0x5e6a('0x33')][_0x5e6a('0x55')]),this[_0x5e6a('0x8f')]=null,this[_0x5e6a('0x31')]=new Bt(this[_0x5e6a('0x33')]),this['_suggestions']=new Map(),this[_0x5e6a('0xab')]=_0x606d4[_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x13d')),this[_0x5e6a('0xee')]=new Set(),this[_0x5e6a('0xc2')]=this[_0x5e6a('0x33')][_0x5e6a('0x1d')],this[_0x5e6a('0x29')]=new WeakMap(),this[_0x5e6a('0x22')]=!0x1,_0x606d4[_0x5e6a('0x121')][_0x5e6a('0x3f')](_0x5e6a('0xa2'),_0x5e6a('0xa1')),this[_0x5e6a('0x58')]=_0x606d4[_0x5e6a('0x121')][_0x5e6a('0x50')]('trackChanges.trackFormatChanges'),_0x606d4['config'][_0x5e6a('0x3f')](_0x5e6a('0x11b'),!0x0),this[_0x5e6a('0xa6')]=_0x606d4[_0x5e6a('0x121')][_0x5e6a('0x50')](_0x5e6a('0x11b')),this['trackChangesCommand']=new _0x29ed9d(_0x606d4,this['_enabledCommands']),this[_0x4a171a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4a171a([0x34,0x30,0x34,0x36,0x32,0x32,0x31,0x34]);}[_0x5e6a('0x69')](){const _0x367a03=this[_0x5e6a('0x33')];_0x367a03[_0x5e6a('0x5')][_0x5e6a('0x9b')](_0x5e6a('0x111'))[_0x5e6a('0x89')]({'model':_0x5e6a('0x60'),'view':_0x13aa21=>{const {id:_0x5aca74,type:_0x32982c}=this[_0x5e6a('0x112')](_0x13aa21['markerName']),_0x117205=[_0x5e6a('0x2e'),_0x5e6a('0x49')+_0x32982c];let _0x4ba062=0xbb8;return this['activeMarkers'][_0x5e6a('0x73')](_0x13aa21[_0x5e6a('0x118')])&&(_0x117205[_0x5e6a('0x125')](_0x5e6a('0x138')),_0x4ba062=0xbc2),'deletion'==_0x32982c&&(_0x4ba062+=0x5),{'classes':_0x117205,'attributes':{'data-suggestion':_0x5aca74},'priority':_0x4ba062};}}),_0x367a03[_0x5e6a('0x5')]['for'](_0x5e6a('0x56'))['add'](_0x11c761=>{_0x11c761['on'](_0x5e6a('0x1b'),(_0x3b8440,_0x740aba,_0x2854d0)=>{if(!_0x2854d0[_0x5e6a('0x11e')][_0x5e6a('0x9c')])return;const _0xa94f3d=_0x740aba['item'];if(!_0xa94f3d)return;const _0x418b61=_0x2854d0['mapper'][_0x5e6a('0x0')](_0xa94f3d);_0x367a03[_0x5e6a('0x1d')]['schema'][_0x5e6a('0x26')](_0xa94f3d)&&_0x418b61&&!_0x418b61[_0x5e6a('0x3a')](_0x5e6a('0xc'))&&_0x418b61['is']('containerElement')&&_0x39ba1b(_0x418b61,_0x2854d0[_0x5e6a('0x7d')]);},{'priority':_0x5e6a('0xd')});}),_0x367a03[_0x5e6a('0x5')][_0x5e6a('0x9b')](_0x5e6a('0x56'))['markerToHighlight']({'model':_0x5e6a('0x60'),'view':(_0x30a49a,_0x68b3f3)=>{if(!_0x68b3f3[_0x5e6a('0x11e')]['showSuggestionHighlights'])return null;const {type:_0x2841d9}=this['_splitMarkerName'](_0x30a49a[_0x5e6a('0x118')]);return{'classes':[_0x5e6a('0x2e'),_0x5e6a('0x49')+_0x2841d9],'priority':0xbb8};}});const _0x19f96e=({showActiveMarkers:_0x23bfff=!0x0}={})=>(_0x4dc085,_0x1ffd65,_0x48a366)=>{if(!_0x1ffd65['item'])return;if(_0x1ffd65['item']['is'](_0x5e6a('0x106')))return void _0x48a366[_0x5e6a('0xc4')][_0x5e6a('0x7')](_0x1ffd65['item'],_0x4dc085[_0x5e6a('0x12c')]);const _0x34ec09=_0x48a366[_0x5e6a('0x4a')]['toViewElement'](_0x1ffd65[_0x5e6a('0x4d')]);if(!(_0x1ffd65[_0x5e6a('0x4d')]['is'](_0x5e6a('0xa8'))&&_0x367a03['model'][_0x5e6a('0x79')][_0x5e6a('0xd3')](_0x1ffd65['item'])&&!_0x34ec09[_0x5e6a('0x3a')](_0x5e6a('0x107'))))return;const {id:_0x526f08}=this[_0x5e6a('0x112')](_0x1ffd65[_0x5e6a('0x118')]);_0x48a366[_0x5e6a('0x7d')][_0x5e6a('0xf')]([_0x5e6a('0x2e'),_0x5e6a('0x45')],_0x34ec09),_0x48a366[_0x5e6a('0x7d')][_0x5e6a('0x3e')](_0x5e6a('0xba'),_0x526f08,_0x34ec09),_0x48a366[_0x5e6a('0x4a')][_0x5e6a('0x51')](_0x34ec09,_0x1ffd65[_0x5e6a('0x118')]),_0x23bfff&&(this[_0x5e6a('0xe1')]['includes'](_0x1ffd65[_0x5e6a('0x118')])?_0x48a366[_0x5e6a('0x7d')][_0x5e6a('0xf')]('ck-suggestion-marker--active',_0x34ec09):_0x48a366[_0x5e6a('0x7d')][_0x5e6a('0xb4')]('ck-suggestion-marker--active',_0x34ec09));for(const _0x533560 of _0x367a03['model'][_0x5e6a('0x1f')](_0x1ffd65[_0x5e6a('0x4d')])[_0x5e6a('0x7a')]())_0x48a366['consumable'][_0x5e6a('0x7')](_0x533560,_0x4dc085['name']);_0x48a366[_0x5e6a('0xc4')]['consume'](_0x1ffd65['item'],_0x4dc085['name']);};_0x367a03['conversion']['for']('dataDowncast')[_0x5e6a('0xcc')](_0x2c49f0=>{_0x2c49f0['on']('addMarker:suggestion:formatBlock',(_0x15e490,_0x46defd,_0x2dfd33)=>{_0x2dfd33[_0x5e6a('0x11e')]['showSuggestionHighlights']&&_0x19f96e({'showActiveMarkers':!0x1})(_0x15e490,_0x46defd,_0x2dfd33);},{'priority':_0x5e6a('0xc6')});}),_0x367a03[_0x5e6a('0x5')]['for']('dataDowncast')[_0x5e6a('0x88')]({'model':_0x5e6a('0x60'),'view':(_0x29ee55,_0x3351dc)=>_0x3351dc[_0x5e6a('0x11e')][_0x5e6a('0x9c')]?null:{'group':'suggestion','name':_0x29ee55['substr'](0xb)}}),_0x367a03[_0x5e6a('0x5')][_0x5e6a('0x9b')]('upcast')[_0x5e6a('0xdd')]({'view':{'name':_0x5e6a('0x60'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1d8141,{writer:_0x4a1ff2})=>{let _0x5c505b='suggestion:'+_0x1d8141[_0x5e6a('0x17')](_0x5e6a('0xc7'))+':'+_0x1d8141['getAttribute']('id');return _0x1d8141[_0x5e6a('0x17')](_0x5e6a('0x42'))&&(_0x5c505b+=':'+_0x1d8141[_0x5e6a('0x17')](_0x5e6a('0x42'))),_0x4a1ff2['createElement'](_0x5e6a('0xf3'),{'data-name':_0x5c505b});}}),_0x367a03[_0x5e6a('0x5')]['for'](_0x5e6a('0x81'))[_0x5e6a('0xde')]({'view':_0x5e6a('0x60')}),_0x367a03[_0x5e6a('0x5')]['for']('editingDowncast')['add'](_0x63dfa0=>{_0x63dfa0['on'](_0x5e6a('0x38'),_0x19f96e(),{'priority':_0x5e6a('0xd')});}),_0x367a03[_0x5e6a('0x5')][_0x5e6a('0x9b')](_0x5e6a('0x111'))[_0x5e6a('0xcc')](_0x5234b0=>{_0x5234b0['on']('removeMarker:suggestion:formatBlock',(_0x2f7e93,_0x43a19f,_0x3578ae)=>{const _0x2ac0d2=_0x3578ae[_0x5e6a('0x4a')][_0x5e6a('0xaf')](_0x43a19f[_0x5e6a('0x118')]);if(_0x2ac0d2)for(const _0x5a080f of _0x2ac0d2)_0x5a080f['getCustomProperty'](_0x5e6a('0x107'))||(_0x3578ae[_0x5e6a('0x7d')][_0x5e6a('0xb4')]([_0x5e6a('0x2e'),'ck-suggestion-marker-formatBlock',_0x5e6a('0x138')],_0x5a080f),_0x3578ae[_0x5e6a('0x7d')][_0x5e6a('0x71')](_0x5e6a('0xba'),_0x5a080f),_0x3578ae[_0x5e6a('0x4a')]['unbindElementFromMarkerName'](_0x5a080f,_0x43a19f[_0x5e6a('0x118')]));},{'priority':'high'});}),_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x117')][_0x5e6a('0x16')](_0x3ef285=>{let _0x40a97e=!0x1;const _0x58078b=Array[_0x5e6a('0xbf')](_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x117')][_0x5e6a('0x7f')]['getChangedMarkers']()),_0x1fe0c0=new Set();for(const {name:_0x3418ab,data:_0x3a71e9}of _0x58078b){const {group:_0x10d535,type:_0x41edcb,id:_0x7cb38e}=this[_0x5e6a('0x112')](_0x3418ab);if(_0x5e6a('0x60')!==_0x10d535)continue;const _0x1d3d17=this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0x7cb38e);if(null!=_0x3a71e9[_0x5e6a('0x11a')]){'formatInline'==_0x41edcb&&(_0x40a97e=_0x40a97e||$t(_0x3a71e9['newRange'],_0x3418ab,_0x3ef285,_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x79')]));if(_0x3a71e9['newRange'][_0x5e6a('0x53')]||_0x5e6a('0xed')==_0x3a71e9[_0x5e6a('0x11a')][_0x5e6a('0x11f')][_0x5e6a('0x24')]||_0x5e6a('0xca')==_0x41edcb&&!Rt(_0x3a71e9[_0x5e6a('0x11a')])||_0x5e6a('0x137')==_0x41edcb&&!(!Mt(_0x2114be=_0x3a71e9['newRange'])&&!function(_0x2e3615){return _0x2e3615[_0x5e6a('0xd0')][_0x5e6a('0x41')]==_0x2e3615[_0x5e6a('0x91')][_0x5e6a('0x103')]&&_0x2e3615['start'][_0x5e6a('0xf2')];}(_0x2114be)))_0x3ef285['removeMarker'](_0x3418ab),_0x40a97e=!0x0;else{if(!_0x1d3d17||!_0x1d3d17[_0x5e6a('0xad')])continue;_0x1fe0c0[_0x5e6a('0xcc')](_0x1d3d17);}}}var _0x2114be;return _0x1fe0c0[_0x5e6a('0x44')]>0x0&&(_0x40a97e=!!this[_0x5e6a('0x13c')](_0x1fe0c0)||_0x40a97e),_0x40a97e;}),_0x367a03[_0x5e6a('0x1d')]['document'][_0x5e6a('0x16')](_0x30f1b6=>{let _0x64c7ae=!0x1;for(const _0x46a3d8 of _0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x117')]['differ'][_0x5e6a('0xb2')]()){if(_0x5e6a('0x104')!=_0x46a3d8['type'])continue;const _0x51c49a=_0x46a3d8[_0x5e6a('0x90')][_0x5e6a('0xa9')](_0x46a3d8[_0x5e6a('0x5f')]);if(_0x51c49a[_0x5e6a('0xf2')])for(const _0x34dde6 of this['_suggestions'][_0x5e6a('0xfd')]()){if(_0x34dde6[_0x5e6a('0x12e')]||!_0x34dde6[_0x5e6a('0xad')])continue;if(_0x5e6a('0xca')!=_0x34dde6[_0x5e6a('0x2f')])continue;const _0x498b5b=_0x34dde6[_0x5e6a('0x92')]();if(_0x498b5b[_0x5e6a('0xd0')][_0x5e6a('0x41')]!=_0x498b5b[_0x5e6a('0x91')][_0x5e6a('0x41')]&&_0x498b5b[_0x5e6a('0x91')]['isEqual'](_0x46a3d8[_0x5e6a('0x90')])){const _0x581de7=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0xcf')](_0x498b5b['start'],_0x51c49a);_0x30f1b6[_0x5e6a('0x48')](_0x34dde6[_0x5e6a('0x12b')](),{'range':_0x581de7}),_0x64c7ae=!0x0;}}}return _0x64c7ae;}),_0x367a03['model'][_0x5e6a('0xd6')]['on'](_0x5e6a('0xc8'),(_0x569069,_0xd4746d,_0x1e7318)=>{if(null==_0x1e7318){const {id:_0x47580e}=this[_0x5e6a('0x112')](_0xd4746d[_0x5e6a('0x12c')]),_0x30a7a2=this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0x47580e);_0x30a7a2&&_0x30a7a2[_0x5e6a('0xfc')](_0xd4746d[_0x5e6a('0x12c')]);}}),_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x117')]['on'](_0x5e6a('0x113'),()=>{const _0xdcd0=Array[_0x5e6a('0xbf')](_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x117')]['differ'][_0x5e6a('0x10e')]())['filter'](_0x1e3d48=>_0x5e6a('0x60')===this['_splitMarkerName'](_0x1e3d48[_0x5e6a('0x12c')])[_0x5e6a('0x10f')]);if(0x0===_0xdcd0[_0x5e6a('0x5f')])return;_0xdcd0['sort']((_0xa11bfa,_0x2f1a36)=>{const _0x32ba4b=_0xa11bfa[_0x5e6a('0x46')][_0x5e6a('0xb0')],_0x4c2215=_0x2f1a36[_0x5e6a('0x46')][_0x5e6a('0xb0')];return null===_0x32ba4b&&null===_0x4c2215?0x0:null===_0x32ba4b&&null!==_0x4c2215?-0x1:null!==_0x32ba4b&&null===_0x4c2215?0x1:_0x32ba4b['start'][_0x5e6a('0xc9')](_0x4c2215['start'])?-0x1:0x1;});const _0x5ac15d=new Set(),_0x50092f=new Set();for(const {name:_0x7f54f8,data:_0x569df5}of _0xdcd0){const {id:_0x367db3}=this['_splitMarkerName'](_0x7f54f8);if(null===_0x569df5[_0x5e6a('0xb0')]){const _0x61f553=this['_handleNewSuggestionMarker'](_0x7f54f8);_0x50092f['add'](_0x61f553);}else{const _0x2a9aed=this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0x367db3);null!==_0x569df5[_0x5e6a('0x11a')]||_0x2a9aed[_0x5e6a('0xad')]?(_0x5ac15d['add'](_0x2a9aed[_0x5e6a('0x15')]),_0x50092f['add'](_0x2a9aed)):this[_0x5e6a('0x23')](_0x2a9aed);}}_0x50092f[_0x5e6a('0x44')]>0x0&&this[_0x5e6a('0xf7')](_0x50092f);for(const _0x1b6d20 of _0x5ac15d)this[_0x5e6a('0xda')](_0x5e6a('0x5a'),_0x1b6d20);}),_0x367a03[_0x5e6a('0x1d')]['on'](_0x5e6a('0x130'),(_0x2d13ff,_0x5523c5)=>{const _0x37cda2=_0x5523c5[0x0];if(!this['_suggestions'][_0x5e6a('0x44')])return;if(!_0x37cda2[_0x5e6a('0x9e')])return;if(_0x37cda2[_0x5e6a('0x95')][_0x5e6a('0x101')]||!_0x37cda2['batch']['isLocal'])return;let _0x294f1c,_0x305706;switch(_0x37cda2[_0x5e6a('0x2f')]){case'insert':_0x294f1c=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x13')](_0x37cda2[_0x5e6a('0x90')]),_0x305706=_0x294f1c['getShiftedBy'](_0x37cda2['howMany']);break;case _0x5e6a('0xce'):_0x294f1c=_0x367a03['model'][_0x5e6a('0x13')](_0x37cda2['splitPosition']),_0x305706=_0x367a03[_0x5e6a('0x1d')]['createPositionAt'](_0x37cda2[_0x5e6a('0x36')]);break;case _0x5e6a('0x1'):_0x294f1c=_0x367a03['model'][_0x5e6a('0x13')](_0x37cda2[_0x5e6a('0x34')]),_0x305706=_0x294f1c['getShiftedBy'](_0x37cda2[_0x5e6a('0x32')]);break;default:return;}const _0x54b62d=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0xcf')](_0x294f1c,_0x305706);_0x367a03['model'][_0x5e6a('0x1c')](()=>{for(const {suggestion:_0x4df1ce,meta:_0xbe6a2d}of this[_0x5e6a('0xd4')](_0x54b62d)){if(_0x4df1ce[_0x5e6a('0x12e')])continue;if(_0x5e6a('0xbc')==_0x4df1ce[_0x5e6a('0x2f')])continue;const _0x5c4a68=_0x4df1ce[_0x5e6a('0x46')]&&_0x4df1ce[_0x5e6a('0x46')][_0x5e6a('0xb5')];('formatBlock'!=_0x4df1ce[_0x5e6a('0x2f')]||_0x5e6a('0xce')==_0x37cda2[_0x5e6a('0x2f')]&&!_0x5c4a68)&&(_0xbe6a2d['containsRangeInObject']||_0x5e6a('0x2d')==_0x4df1ce[_0x5e6a('0x2f')]&&_0xbe6a2d[_0x5e6a('0x129')]||_0x4df1ce[_0x5e6a('0x92')]()[_0x5e6a('0x1a')](_0x54b62d)&&this[_0x5e6a('0x80')](_0x4df1ce,_0x294f1c,_0x305706));}});},{'priority':'lowest'}),_0x367a03['model']['on']('deleteContent',(_0x31a106,_0x253e0d)=>{const _0x4687e9=_0x253e0d[0x0],_0x232765=_0x253e0d[0x1];if(_0x232765&&_0x232765[_0x5e6a('0x102')])return;if(this[_0x5e6a('0x22')])return;if(!this[_0x5e6a('0x9d')][_0x5e6a('0x27')])return;if(_0x4687e9['isCollapsed'])return;const _0x368cd2=_0x367a03['model'][_0x5e6a('0x79')],{start:_0x514e8e,end:_0x28d098}=_0x4687e9[_0x5e6a('0x92')](),_0xdff1d1=_0x514e8e[_0x5e6a('0x11')]&&_0x368cd2[_0x5e6a('0xac')](_0x514e8e[_0x5e6a('0x11')])?null:_0x368cd2[_0x5e6a('0x2c')](_0x514e8e,_0x5e6a('0x87')),_0x504be4=_0x28d098['nodeBefore']&&_0x368cd2[_0x5e6a('0xac')](_0x28d098[_0x5e6a('0x103')])?null:_0x368cd2['getNearestSelectionRange'](_0x28d098,_0x5e6a('0x96')),_0x14ecab=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0xcf')](_0xdff1d1?_0xdff1d1[_0x5e6a('0xd0')]:_0x514e8e,_0x504be4?_0x504be4[_0x5e6a('0x91')]:_0x28d098);_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x1c')](_0x5d4758=>{this[_0x5e6a('0x139')](_0x14ecab);const _0x2da180=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x79')][_0x5e6a('0x2c')](_0x14ecab[_0x5e6a('0xd0')]);_0x4687e9['is'](_0x5e6a('0x7e'))?_0x5d4758['setSelection'](_0x2da180):_0x4687e9[_0x5e6a('0x52')](_0x2da180);}),_0x31a106[_0x5e6a('0x127')]();},{'priority':_0x23c666[_0x5e6a('0x25')]+0xa}),_0x367a03['model']['on']('insertContent',(_0x4b9973,_0x1fb452)=>{const _0x3cb72c=_0x1fb452[_0x1fb452[_0x5e6a('0x5f')]-0x1];_0x3cb72c&&_0x3cb72c[_0x5e6a('0x102')]||this[_0x5e6a('0x22')]||this[_0x5e6a('0x9d')]['value']&&(_0x367a03[_0x5e6a('0x1d')]['change'](()=>{let _0x25eecd=_0x367a03[_0x5e6a('0x1d')]['insertContent'](_0x1fb452[0x0],_0x1fb452[0x1],_0x1fb452[0x2],{'forceDefaultExecution':!0x0});if(!_0x25eecd)return;_0x4b9973['return']=_0x25eecd[_0x5e6a('0x12a')]();const _0x58718b=_0x25eecd[_0x5e6a('0x91')][_0x5e6a('0x103')],_0x44bb35=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x79')];_0x58718b&&_0x44bb35[_0x5e6a('0xd3')](_0x58718b)&&!_0x44bb35[_0x5e6a('0x26')](_0x58718b)&&(_0x25eecd=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0xcf')](_0x25eecd[_0x5e6a('0xd0')],_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x13')](_0x58718b,_0x5e6a('0x91')))),this['markInsertion'](_0x25eecd);}),_0x4b9973[_0x5e6a('0x127')]());},{'priority':_0x5e6a('0xd')}),this[_0x5e6a('0x33')][_0x5e6a('0xfe')][_0x5e6a('0xcc')](_0x5e6a('0x28'),this[_0x5e6a('0x9d')]),this[_0x5e6a('0x61')](_0x5e6a('0x28'));const _0x244e22=new _0x33967c(_0x367a03,this['_suggestions']);_0x367a03[_0x5e6a('0xfe')][_0x5e6a('0xcc')](_0x5e6a('0x65'),_0x244e22),this['enableCommand'](_0x5e6a('0x65'));const _0x449b05=new _0x56c3b3(_0x367a03,this[_0x5e6a('0xae')]);_0x367a03[_0x5e6a('0xfe')][_0x5e6a('0xcc')]('discardSuggestion',_0x449b05),this[_0x5e6a('0x61')]('discardSuggestion'),_0x367a03[_0x5e6a('0xfe')]['add'](_0x5e6a('0x54'),new _0x4b9649(_0x367a03,_0x244e22,this['_suggestions'])),this[_0x5e6a('0x61')](_0x5e6a('0x54')),_0x367a03[_0x5e6a('0xfe')][_0x5e6a('0xcc')](_0x5e6a('0xe6'),new _0x4b9649(_0x367a03,_0x449b05,this[_0x5e6a('0xae')])),this[_0x5e6a('0x61')](_0x5e6a('0xe6')),_0x367a03[_0x5e6a('0xfe')][_0x5e6a('0xcc')](_0x5e6a('0x4c'),new _0x5988ec(_0x367a03,_0x244e22,this[_0x5e6a('0xae')])),this[_0x5e6a('0x61')](_0x5e6a('0x4c')),_0x367a03['commands'][_0x5e6a('0xcc')](_0x5e6a('0x3'),new _0x5988ec(_0x367a03,_0x449b05,this[_0x5e6a('0xae')])),this[_0x5e6a('0x61')](_0x5e6a('0x3'));const _0x19f370=_0x367a03[_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x13d'));this[_0x5e6a('0x98')](_0x19f370,_0x5e6a('0xe'),(_0x125f95,{threadId:_0xf39712})=>{const _0x2ada33=this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0xf39712);_0x2ada33&&_0x2ada33[_0x5e6a('0x68')]&&0x1===_0x2ada33['commentThread'][_0x5e6a('0x5f')]&&this['_updateSuggestionData'](_0xf39712,{'hasComments':!0x0});},{'priority':'low'}),this[_0x5e6a('0x98')](_0x19f370,'removeComment',(_0x21eb80,{threadId:_0x5e2b65})=>{const _0x47510b=this[_0x5e6a('0xae')]['get'](_0x5e2b65);_0x47510b&&_0x47510b[_0x5e6a('0x68')]&&!_0x47510b[_0x5e6a('0x68')][_0x5e6a('0x5f')]&&this['_updateSuggestionData'](_0x5e2b65,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5e6a('0x1e')](_0x4b1c03){if(this['_adapter'])throw new _0x6a793a('track-changes-adapter-already-set',this);this[_0x5e6a('0x8f')]=_0x4b1c03;}get[_0x5e6a('0x1e')](){return this[_0x5e6a('0x8f')];}[_0x5e6a('0xf0')]({skipNotAttached:_0x2c7b27=!0x1,toJSON:_0x2ea813=!0x1}={}){const _0x21e5d8=[];for(const _0x82e14e of this['_suggestions'][_0x5e6a('0xfd')]())_0x2c7b27&&!_0x82e14e[_0x5e6a('0xad')]||_0x21e5d8[_0x5e6a('0x125')](_0x82e14e);return _0x2ea813?_0x21e5d8[_0x5e6a('0x10d')](_0x47e536=>_0x47e536['toJSON']()):_0x21e5d8;}[_0x5e6a('0x66')](_0x3faa93){const _0x11d577=this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0x3faa93);if(!_0x11d577)throw new _0x6a793a('track-changes-suggestion-not-found',this);return _0x11d577;}[_0x5e6a('0xbb')](_0x182a98){return this[_0x5e6a('0xae')][_0x5e6a('0x132')](_0x182a98);}[_0x5e6a('0x12f')](_0x49a374){const {authorId:_0x149a54,id:_0x28bc87,attributes:_0x52d20e}=_0x49a374,[_0x14e2ea,_0x16dfa4]=_0x49a374['type'][_0x5e6a('0xce')](':'),_0x3f1fff=this[_0x5e6a('0xae')]['get'](_0x28bc87)||this[_0x5e6a('0x11c')](_0x14e2ea,_0x16dfa4,_0x28bc87,_0x149a54,_0x52d20e);if(this['_addThreadToSuggestion'](_0x3f1fff),this[_0x5e6a('0x8d')](_0x3f1fff,_0x14e2ea,_0x16dfa4||null,_0x149a54),_0x3f1fff[_0x5e6a('0x63')]=_0x49a374[_0x5e6a('0x63')],_0x3f1fff[_0x5e6a('0x5d')]=!0x0,_0x52d20e&&_0x52d20e[_0x5e6a('0x9')]){const _0x52734d=_0x52d20e[_0x5e6a('0x9')],_0xd25b43=this['_getExternalAuthor'](_0x52734d[_0x5e6a('0x4')]);_0x3f1fff[_0x5e6a('0x10')]=_0x52734d[_0x5e6a('0x63')],_0x3f1fff[_0x5e6a('0x64')]=_0xd25b43,_0x3f1fff[_0x5e6a('0x13b')]=!0x0;}else _0x3f1fff[_0x5e6a('0x10')]=_0x49a374[_0x5e6a('0x63')];switch(_0x49a374['data']&&(_0x3f1fff[_0x5e6a('0x46')]=_0x49a374[_0x5e6a('0x46')]),_0x49a374[_0x5e6a('0x78')]&&(_0x3f1fff[_0x5e6a('0x78')]=_0x49a374['attributes']),this[_0x5e6a('0x8f')]&&this[_0x5e6a('0x8f')]['addSuggestion']||(_0x3f1fff[_0x5e6a('0x86')]=!0x0),this['_suggestionState'][_0x5e6a('0x50')](_0x3f1fff)){case _0x5e6a('0x6a'):this[_0x5e6a('0x29')]['set'](_0x3f1fff,_0x5e6a('0x93'));break;case'markerReady':_0x3f1fff[_0x5e6a('0xad')]?(this['_refreshSuggestionsChain'](new Set([_0x3f1fff])),this[_0x5e6a('0x13c')](new Set([_0x3f1fff])),this[_0x5e6a('0x29')][_0x5e6a('0x82')](_0x3f1fff,_0x5e6a('0x2b')),this[_0x5e6a('0xda')](_0x5e6a('0xc3'),_0x3f1fff)):this[_0x5e6a('0x29')][_0x5e6a('0x82')](_0x3f1fff,_0x5e6a('0xa7'));}return _0x3f1fff;}['acceptSuggestion'](_0x3ab5a2){this['forceDefaultExecution'](()=>{this[_0x5e6a('0x33')][_0x5e6a('0x1d')][_0x5e6a('0x1c')](()=>{for(const _0x2bc727 of _0x3ab5a2['getAllAdjacentSuggestions']())_0x2bc727['accept']();});});}[_0x5e6a('0x128')](_0x111b9f){this[_0x5e6a('0x102')](()=>{this[_0x5e6a('0x33')][_0x5e6a('0x1d')][_0x5e6a('0x1c')](()=>{for(const _0xea1fa5 of _0x111b9f[_0x5e6a('0xbd')]())_0xea1fa5[_0x5e6a('0xf1')]();});});}[_0x5e6a('0x61')](_0x3a5625,_0x3eab50){const _0x10ba57=this[_0x5e6a('0x33')]['commands'][_0x5e6a('0x50')](_0x3a5625);if(!_0x10ba57)throw new _0x6a793a('track-changes-command-not-found',this,{'commandName':_0x3a5625});this['_enabledCommands']['add'](_0x10ba57),_0x3eab50&&_0x10ba57['on'](_0x5e6a('0x59'),(_0x52dda3,_0x69b1df)=>{this[_0x5e6a('0x9d')][_0x5e6a('0x27')]&&(this[_0x5e6a('0x22')]||_0x69b1df[_0x5e6a('0x5f')]>0x0&&_0x69b1df[_0x69b1df[_0x5e6a('0x5f')]-0x1]&&_0x69b1df[_0x69b1df[_0x5e6a('0x5f')]-0x1][_0x5e6a('0x102')]||(_0x52dda3['return']=_0x3eab50((..._0x3efc39)=>_0x10ba57[_0x5e6a('0x59')](..._0x3efc39,{'forceDefaultExecution':!0x0}),..._0x69b1df),_0x52dda3[_0x5e6a('0x127')]()));},{'priority':_0x5e6a('0xd')});}[_0x5e6a('0x102')](_0x565054){let _0x3e1077,_0x4697a1;const _0x1410a2=this[_0x5e6a('0x22')];this[_0x5e6a('0x22')]=!0x0;try{_0x3e1077=_0x565054();}catch(_0x4477cd){_0x4697a1=_0x4477cd;}return _0x1410a2||(this[_0x5e6a('0x22')]=!0x1),_0x4697a1&&_0x6a793a[_0x5e6a('0xeb')](_0x4697a1,this),_0x3e1077;}[_0x5e6a('0x75')](_0x153969,_0x36e854=null,_0x4ef632={}){if(_0x153969['isCollapsed'])return null;const _0x16edd5=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')]('Users')['me'];for(const {suggestion:_0x1cb98e,meta:_0x196895}of this[_0x5e6a('0xd4')](_0x153969,'insertion'))if(_0x196895[_0x5e6a('0x129')]){if(!_0x196895[_0x5e6a('0x2a')]){if(_0x196895[_0x5e6a('0xe5')]){if(!this[_0x5e6a('0xa6')]||!Ot(_0x1cb98e,_0x4ef632))continue;return _0x1cb98e;}if(Ot(_0x1cb98e,_0x4ef632))return _0x1cb98e;this[_0x5e6a('0x80')](_0x1cb98e,_0x153969[_0x5e6a('0xd0')],_0x153969[_0x5e6a('0x91')]);break;}if(_0x36e854==_0x1cb98e[_0x5e6a('0xd7')]&&Ot(_0x1cb98e,_0x4ef632)){const _0x37ee82=_0x1cb98e[_0x5e6a('0x92')]();return _0x37ee82[_0x5e6a('0xd0')]['isEqual'](_0x153969[_0x5e6a('0x91')])?this['_setSuggestionRange'](_0x1cb98e,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x153969[_0x5e6a('0xd0')],_0x37ee82['end'])):this['_setSuggestionRange'](_0x1cb98e,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x37ee82[_0x5e6a('0xd0')],_0x153969[_0x5e6a('0x91')])),_0x1cb98e;}}const _0x5287a1=_0x260652(),_0x819da5=_0x16edd5['id'],_0x4cfcb1=_0x36e854?'insertion:'+_0x36e854:'insertion',_0x436a4f=this['_setSuggestionData']({'id':_0x5287a1,'type':_0x4cfcb1,'createdAt':new Date(),'authorId':_0x819da5,'attributes':_0x4ef632});return this[_0x5e6a('0x72')](_0x4cfcb1,_0x5287a1,_0x819da5,_0x153969),_0x436a4f;}['markMultiRangeInsertion'](_0xc68955,_0x5ad579=_0x5e6a('0x6f'),_0xa4292e={}){const _0xca2eae=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x20'))['me'],_0x1066a1=this[_0x5e6a('0x31')]['getSuggestionCallback']('insertion',_0x5ad579,_0x5e6a('0x6d'));for(const _0x275888 of this[_0x5e6a('0xf0')]())if(_0x275888['author']['id']==_0xca2eae['id']&&'insertion'==_0x275888['type']&&_0x275888['subType']==_0x5ad579&&Ot(_0x275888,_0xa4292e)&&(_0x1066a1(_0x275888['getRanges'](),_0xc68955)||_0x1066a1(_0xc68955,_0x275888[_0x5e6a('0xb6')]()))){for(const _0x39e0a9 of _0xc68955)_0x275888[_0x5e6a('0x39')](_0x39e0a9);return _0x275888;}for(const {suggestion:_0x47e199,meta:_0x3d8bf8}of this[_0x5e6a('0xd4')](_0xc68955,_0x5e6a('0x2d'))){if(!_0x3d8bf8[_0x5e6a('0x129')])continue;if(!this[_0x5e6a('0xa6')]&&_0x3d8bf8[_0x5e6a('0xe5')])continue;if(!Ot(_0x47e199,_0xa4292e))continue;let _0x4b5dd9=!0x0;for(const _0x479c85 of _0x47e199['getRanges']())for(const _0x11fc86 of _0xc68955)if(!_0x479c85[_0x5e6a('0x1a')](_0x11fc86)){_0x4b5dd9=!0x1;break;}if(_0x4b5dd9)return _0x47e199;}const _0x59868d=_0x260652(),_0x2c3eb6=_0xca2eae['id'],_0x486101='insertion:'+_0x5ad579,_0x1c5166=this[_0x5e6a('0x9a')]({'id':_0x59868d,'type':_0x486101,'createdAt':new Date(),'authorId':_0x2c3eb6,'attributes':_0xa4292e});for(const _0x3ba14b of _0xc68955)this[_0x5e6a('0x72')](_0x486101,_0x59868d,_0x2c3eb6,_0x3ba14b,_0x51161f[_0x5e6a('0xd2')]());return _0x1c5166;}[_0x5e6a('0x97')](_0x3eebe2,_0x2ae997,_0x1dd98f=null,_0x302f98={}){if(_0x1dd98f=_0x1dd98f||Nt(_0x2ae997),_0x3eebe2[_0x5e6a('0x53')])return null;if(_0x5e6a('0x2')===this[_0x5e6a('0x58')]){const _0x43a4e7=this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x5e6a('0xbc'),_0x1dd98f,_0x5e6a('0xe9'));return this[_0x5e6a('0x102')](()=>_0x43a4e7([_0x3eebe2],_0x2ae997,_0x302f98)),null;}const _0x114a6f=this[_0x5e6a('0x33')][_0x5e6a('0x74')]['get']('Users')['me'],_0x79138b=[];if(_0x5e6a('0xec')!==this['_trackFormatChanges'])for(const {suggestion:_0x29df29,meta:_0x18611b}of this[_0x5e6a('0xd4')](_0x3eebe2,_0x5e6a('0x2d')))_0x18611b[_0x5e6a('0x129')]&&!_0x18611b['isInsideObject']&&_0x79138b[_0x5e6a('0x125')](..._0x29df29[_0x5e6a('0xb6')]());const _0x390c95=function(_0x4b4439,_0x44be46){const _0x570ff2=[];for(const _0x2e1e05 of _0x44be46){const _0x49db1f=_0x4b4439[_0x5e6a('0xcb')](_0x2e1e05);_0x49db1f&&_0x570ff2[_0x5e6a('0x125')](_0x49db1f);}return _0x570ff2;}(_0x3eebe2,_0x79138b),_0x41b14f=function(_0x1688b0,_0x4152bf){const _0x39e557=[_0x1688b0];for(const _0x45ed1b of _0x4152bf){let _0x29cd03=0x0;for(;_0x29cd03<_0x39e557[_0x5e6a('0x5f')];){const _0x315f9c=_0x39e557[_0x29cd03][_0x5e6a('0x9f')](_0x45ed1b);_0x39e557[_0x5e6a('0xa0')](_0x29cd03,0x1,..._0x315f9c),_0x29cd03+=_0x315f9c['length'];}}return _0x39e557;}(_0x3eebe2,_0x79138b);_0x390c95[_0x5e6a('0x5f')]&&this[_0x5e6a('0xc2')][_0x5e6a('0x1c')](()=>{for(const _0x572f82 of _0x390c95){const _0x5414d7=this['_suggestionFactory'][_0x5e6a('0x12d')](_0x5e6a('0xbc'),_0x1dd98f,_0x5e6a('0xe9'));this['forceDefaultExecution'](()=>_0x5414d7([_0x572f82],_0x2ae997,_0x302f98));}});for(const _0x1ce035 of _0x41b14f){let _0x263908=null,_0x37cace=_0x1ce035[_0x5e6a('0xd0')],_0x44ca7a=_0x1ce035['end'];for(const {suggestion:_0x250d32,meta:_0x369ec3}of this['_findSuggestions'](_0x1ce035,_0x5e6a('0xbc'))){if(!_0x369ec3[_0x5e6a('0x129')])continue;if(_0x250d32[_0x5e6a('0xd7')]!=_0x1dd98f)continue;if(!Ot(_0x250d32,_0x302f98))continue;const _0x3f425a=_0x250d32[_0x5e6a('0x92')]();if(_0x3f425a[_0x5e6a('0x1a')](_0x1ce035,!0x0))return null;_0x37cace=_0x37cace[_0x5e6a('0xc9')](_0x3f425a[_0x5e6a('0xd0')])?_0x37cace:_0x3f425a[_0x5e6a('0xd0')],_0x44ca7a=_0x44ca7a[_0x5e6a('0x4f')](_0x3f425a[_0x5e6a('0x91')])?_0x44ca7a:_0x3f425a[_0x5e6a('0x91')],_0x263908?_0x3f425a[_0x5e6a('0xd0')][_0x5e6a('0xc9')](_0x263908[_0x5e6a('0x92')]()['start'])?(_0x263908[_0x5e6a('0xb7')](),_0x263908=_0x250d32):_0x250d32[_0x5e6a('0xb7')]():_0x263908=_0x250d32;}const _0x1a5b2e=this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x37cace,_0x44ca7a);if(_0x263908)this[_0x5e6a('0xb8')](_0x263908,_0x1a5b2e);else{const _0x3e78d1=_0x260652(),_0xab569d=_0x114a6f['id'];this['_setSuggestionData']({'id':_0x3e78d1,'type':'formatInline:'+_0x1dd98f,'data':_0x2ae997,'createdAt':new Date(),'authorId':_0xab569d,'attributes':_0x302f98}),this['_addSuggestionMarker'](_0x5e6a('0xc5')+_0x1dd98f,_0x3e78d1,_0xab569d,_0x1a5b2e);}}return null;}[_0x5e6a('0x84')](_0x178f25,_0x2696bb,_0x367cad=[],_0x1d35e8=null,_0x8b55cf={}){_0x2696bb[_0x5e6a('0x108')]||(_0x2696bb['formatGroupId']=_0x2696bb[_0x5e6a('0xd8')]),_0x2696bb[_0x5e6a('0xb5')]=_0x178f25['is'](_0x5e6a('0x57')),_0x1d35e8=_0x1d35e8||Nt(_0x2696bb);const _0x1c0480=_0x367cad[_0x5e6a('0x10d')](_0x7dc004=>jt(_0x7dc004,this[_0x5e6a('0xc2')])),_0x4cd739=_0x178f25['is'](_0x5e6a('0x57'))?_0x178f25:jt(_0x178f25,this[_0x5e6a('0xc2')]);if('never'===this['_trackFormatChanges']){const _0x56b924=this[_0x5e6a('0x31')]['getSuggestionCallback'](_0x5e6a('0xca'),_0x1d35e8,'accept');return this['forceDefaultExecution'](()=>_0x56b924([_0x4cd739],_0x2696bb,_0x8b55cf)),null;}_0x1c0480[_0x5e6a('0x125')](_0x4cd739);let _0x3038cb=!0x0;for(const _0x397c2c of _0x1c0480)if(!this[_0x5e6a('0x5e')](_0x397c2c)){_0x3038cb=!0x1;break;}if(_0x3038cb&&_0x5e6a('0xec')!==this['_trackFormatChanges']){const _0x1f10a4=this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x5e6a('0xca'),_0x1d35e8,'accept');return this[_0x5e6a('0x102')](()=>_0x1f10a4([_0x4cd739],_0x2696bb,_0x8b55cf)),null;}let _0x116244=null,_0x48c275=_0x4cd739[_0x5e6a('0xd0')],_0x441205=_0x4cd739[_0x5e6a('0x91')];for(const {suggestion:_0x2aac6a,meta:_0x2ca0e1}of this[_0x5e6a('0xd4')](_0x4cd739,_0x5e6a('0xca'))){if(!_0x2ca0e1[_0x5e6a('0x129')])continue;if(_0x2ca0e1['isNextTo']||_0x2ca0e1[_0x5e6a('0xe5')]||_0x2ca0e1[_0x5e6a('0x14')])continue;if(_0x2aac6a['data']['formatGroupId']!=_0x2696bb['formatGroupId'])continue;if(!Ot(_0x2aac6a,_0x8b55cf))continue;const _0x5af8f2=_0x2aac6a['getFirstRange']();if(_0x2aac6a[_0x5e6a('0xd7')]==_0x1d35e8){if(_0x5af8f2[_0x5e6a('0x1a')](_0x4cd739,!0x0))return null;_0x48c275=_0x48c275[_0x5e6a('0xc9')](_0x5af8f2['start'])?_0x48c275:_0x5af8f2['start'],_0x441205=_0x441205['isAfter'](_0x5af8f2[_0x5e6a('0x91')])?_0x441205:_0x5af8f2[_0x5e6a('0x91')],_0x116244?_0x5af8f2[_0x5e6a('0xd0')][_0x5e6a('0xc9')](_0x116244[_0x5e6a('0x92')]()[_0x5e6a('0xd0')])?(_0x116244[_0x5e6a('0xb7')](),_0x116244=_0x2aac6a):_0x2aac6a[_0x5e6a('0xb7')]():_0x116244=_0x2aac6a;}else{const _0x289998=_0x4cd739['getIntersection'](_0x5af8f2);this[_0x5e6a('0x3d')](_0x2aac6a,_0x289998);}}const _0xe9ee45=this[_0x5e6a('0x33')][_0x5e6a('0x74')]['get'](_0x5e6a('0x20'))['me'],_0xdfecdd=_0x260652(),_0x162779=_0xe9ee45['id'];if(_0x116244)return this['_setSuggestionRange'](_0x116244,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x48c275,_0x441205)),_0x116244;{const _0x569d8d=this[_0x5e6a('0x9a')]({'id':_0xdfecdd,'type':'formatBlock:'+_0x1d35e8,'data':_0x2696bb,'createdAt':new Date(),'authorId':_0x162779,'attributes':_0x8b55cf});return this[_0x5e6a('0x72')]('formatBlock:'+_0x1d35e8,_0xdfecdd,_0x162779,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x48c275,_0x441205)),_0x569d8d;}}['markMultiRangeBlockFormat'](_0x14723f,_0x238380,_0x549ed7=[],_0x58986b=null,_0x348ad9={}){_0x238380[_0x5e6a('0x108')]||(_0x238380[_0x5e6a('0x108')]=_0x238380[_0x5e6a('0xd8')]);const _0x17e995=_0x14723f[0x0];_0x238380['multipleBlocks']=_0x17e995['is']('range'),_0x58986b=_0x58986b||Nt(_0x238380);const _0x2e1eba=_0x549ed7[_0x5e6a('0x10d')](_0x116ac2=>jt(_0x116ac2,this['_model'])),_0x406de6=_0x17e995['is'](_0x5e6a('0x57'))?_0x14723f:_0x14723f[_0x5e6a('0x10d')](_0x5dca6c=>jt(_0x5dca6c,this[_0x5e6a('0xc2')]));if('never'===this[_0x5e6a('0x58')]){const _0x40c3fd=this[_0x5e6a('0x31')][_0x5e6a('0x12d')]('formatBlock',_0x58986b,_0x5e6a('0xe9'));return this[_0x5e6a('0x102')](()=>_0x40c3fd(_0x406de6,_0x238380,_0x348ad9)),null;}_0x2e1eba['push'](..._0x406de6);let _0x5d5cfc=!0x0;for(const _0x35fe07 of _0x2e1eba)if(!this['_rangeIsInLocalUserInsertion'](_0x35fe07)){_0x5d5cfc=!0x1;break;}if(_0x5d5cfc&&_0x5e6a('0xec')!==this[_0x5e6a('0x58')]){const _0x5f0ba6=this[_0x5e6a('0x31')]['getSuggestionCallback'](_0x5e6a('0xca'),_0x58986b,'accept');return this[_0x5e6a('0x102')](()=>_0x5f0ba6(_0x406de6,_0x238380,_0x348ad9)),null;}const _0x411aee=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x20'))['me'];for(const _0x2ab927 of this[_0x5e6a('0xf0')]()){if(_0x2ab927['author']['id']!=_0x411aee['id'])continue;if(_0x5e6a('0xca')!=_0x2ab927[_0x5e6a('0x2f')]||_0x2ab927[_0x5e6a('0x46')][_0x5e6a('0x108')]!=_0x238380[_0x5e6a('0x108')])continue;if(!Ot(_0x2ab927,_0x348ad9))continue;const _0x1c4871=_0x2ab927[_0x5e6a('0xd7')]==_0x58986b;for(let _0x54c8f0=0x0;_0x54c8f0<_0x406de6[_0x5e6a('0x5f')];_0x54c8f0++){const _0x390e03=_0x406de6[_0x54c8f0];for(const _0xb5101c of _0x2ab927[_0x5e6a('0xa4')]()){const _0x1752ef=_0xb5101c[_0x5e6a('0xfb')]();if(_0x390e03[_0x5e6a('0x6c')](_0x1752ef)){_0x1c4871?(_0x406de6[_0x5e6a('0xa0')](_0x54c8f0,0x1),_0x54c8f0--):_0x2ab927[_0x5e6a('0x5b')](_0xb5101c['name']);break;}}}}if(0x0==_0x406de6['length'])return null;const _0x32f126=this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x5e6a('0xca'),_0x58986b,_0x5e6a('0x6d'));for(const _0xdbd141 of this[_0x5e6a('0xf0')]())if(_0xdbd141[_0x5e6a('0x64')]['id']==_0x411aee['id']&&_0x5e6a('0xca')==_0xdbd141[_0x5e6a('0x2f')]&&_0xdbd141['data'][_0x5e6a('0x108')]==_0x238380['formatGroupId']&&_0xdbd141[_0x5e6a('0xd7')]==_0x58986b&&Ot(_0xdbd141,_0x348ad9)&&(_0x32f126(_0xdbd141[_0x5e6a('0xb6')](),_0x406de6)||_0x32f126(_0x406de6,_0xdbd141['getRanges']()))){for(const _0x1cc1c6 of _0x406de6)_0xdbd141[_0x5e6a('0x39')](_0x1cc1c6);return _0xdbd141;}const _0x36b1c9=_0x260652(),_0x1962f1=_0x411aee['id'],_0xaf520b=_0x5e6a('0x6b')+_0x58986b,_0x212b71=this['_setSuggestionData']({'id':_0x36b1c9,'type':_0xaf520b,'data':_0x238380,'createdAt':new Date(),'authorId':_0x1962f1,'attributes':_0x348ad9});for(const _0x4fb6e1 of _0x406de6)this[_0x5e6a('0x72')](_0xaf520b,_0x36b1c9,_0x1962f1,_0x4fb6e1,_0x51161f[_0x5e6a('0xd2')]());return _0x212b71;}[_0x5e6a('0x139')](_0x2d4fe2,_0x2507a0=null,_0x1e0ad7={}){if(_0x2d4fe2[_0x5e6a('0x53')])return null;const _0x132ad4=this[_0x5e6a('0x33')]['plugins'][_0x5e6a('0x50')]('Users')['me'],_0x153c00=new _0x14a52e(_0x2d4fe2[_0x5e6a('0xd0')],_0x2d4fe2[_0x5e6a('0x91')]);for(const {suggestion:_0x1f3f49,meta:_0x334779}of this[_0x5e6a('0xd4')](_0x153c00,_0x5e6a('0x2d')))if(_0x334779['isOwn']&&!_0x334779[_0x5e6a('0x2a')]){if(_0x1f3f49['isMultiRange']){const _0x3ca1e7=_0x1f3f49[_0x5e6a('0xb6')]()[_0x5e6a('0xe2')](_0x3244af=>_0x5e6a('0xed')!=_0x3244af[_0x5e6a('0x11f')]['rootName']);_0x3ca1e7[_0x5e6a('0xef')](_0x285d34=>_0x153c00[_0x5e6a('0x1a')](_0x285d34,!0x0))&&_0x1f3f49[_0x5e6a('0xf1')]();if(_0x3ca1e7['some'](_0x1c0382=>_0x1c0382[_0x5e6a('0x1a')](_0x153c00,!0x0))){const _0x4770cf=this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x5e6a('0x137'),_0x2507a0,_0x5e6a('0xe9'));return this[_0x5e6a('0x102')](()=>_0x4770cf([_0x153c00],null,_0x1e0ad7)),null;}}else{const _0x445ba7=_0x153c00[_0x5e6a('0xcb')](_0x1f3f49[_0x5e6a('0x92')]());null!==_0x445ba7&&_0x1f3f49[_0x5e6a('0xe4')]([_0x445ba7],null,_0x1e0ad7);}}if(_0x153c00[_0x5e6a('0x83')](),_0x153c00[_0x5e6a('0x53')]||_0x5e6a('0xed')==_0x153c00['root'][_0x5e6a('0x24')])return null;let _0x243041=null,_0x56e113=_0x153c00[_0x5e6a('0xd0')],_0x88a031=_0x153c00['end'];const _0x5a195f=this['_findSuggestions'](_0x153c00,_0x5e6a('0x137'));for(const {suggestion:_0x381b42,meta:_0x4d809c}of _0x5a195f){const _0x1098bb=this['_model'][_0x5e6a('0xcf')](_0x56e113,_0x88a031);if(_0x4d809c[_0x5e6a('0x129')]&&(this['_mergeNestedSuggestions']||!_0x4d809c['containsRangeInObject']&&!_0x4d809c['isInsideObject'])){if(_0x381b42[_0x5e6a('0x12e')]){if(!Ot(_0x381b42,_0x1e0ad7))continue;let _0x142dad=!0x0;for(const _0x331b4a of _0x381b42['getRanges']()){if(_0x331b4a[_0x5e6a('0x1a')](_0x1098bb,!0x0))return _0x381b42;_0x1098bb[_0x5e6a('0x1a')](_0x331b4a)||(_0x142dad=!0x1);}_0x142dad&&_0x381b42[_0x5e6a('0xf1')]();}else{const _0x415690=_0x381b42['getFirstRange']();if(_0x415690[_0x5e6a('0x1a')](_0x1098bb,!0x0))return _0x381b42;if(!Ot(_0x381b42,_0x1e0ad7)){_0x1098bb['containsRange'](_0x415690)?_0x381b42[_0x5e6a('0xb7')]():_0x415690[_0x5e6a('0x8')](_0x56e113)?_0x56e113=_0x415690[_0x5e6a('0x91')]:_0x415690[_0x5e6a('0x8')](_0x88a031)&&(_0x88a031=_0x415690[_0x5e6a('0xd0')]);continue;}_0x56e113=_0x56e113[_0x5e6a('0xc9')](_0x415690[_0x5e6a('0xd0')])?_0x56e113:_0x415690[_0x5e6a('0xd0')],_0x88a031=_0x88a031['isAfter'](_0x415690['end'])?_0x88a031:_0x415690['end'],_0x1e0ad7=Object[_0x5e6a('0xf9')]({},_0x381b42['attributes']),_0x243041?_0x415690[_0x5e6a('0xd0')][_0x5e6a('0xc9')](_0x243041[_0x5e6a('0x92')]()[_0x5e6a('0xd0')])?(_0x243041[_0x5e6a('0xb7')](),_0x243041=_0x381b42):_0x381b42['removeMarkers']():_0x243041=_0x381b42;}}}if(_0x243041)return this[_0x5e6a('0xb8')](_0x243041,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x56e113,_0x88a031)),_0x243041;{const _0xab7732=_0x260652(),_0x4f0906=this['_model'][_0x5e6a('0xcf')](_0x56e113,_0x88a031),_0x3838a8=_0x132ad4['id'],_0x19deb0=_0x2507a0?_0x5e6a('0xe7')+_0x2507a0:_0x5e6a('0x137'),_0x54280b=this['_setSuggestionData']({'id':_0xab7732,'type':_0x19deb0,'createdAt':new Date(),'authorId':_0x3838a8,'attributes':_0x1e0ad7});return this['_addSuggestionMarker'](_0x19deb0,_0xab7732,_0x3838a8,_0x4f0906),_0x54280b;}}['markMultiRangeDeletion'](_0x404e1c,_0x5323c5=_0x5e6a('0x6f'),_0x66416={}){const _0x44c72e=this[_0x5e6a('0x33')]['plugins']['get']('Users')['me'],_0x27fec6=_0x404e1c[_0x5e6a('0x10d')](_0x49e9bb=>new _0x14a52e(_0x49e9bb['start'],_0x49e9bb[_0x5e6a('0x91')])),_0x445c0b=new Set();for(const {suggestion:_0xc99009,meta:_0x376485}of this[_0x5e6a('0xd4')](_0x27fec6,_0x5e6a('0x2d')))_0x376485[_0x5e6a('0x129')]&&!_0x376485['isNextTo']&&_0x445c0b[_0x5e6a('0xcc')](_0xc99009);for(const _0x4a9a85 of _0x445c0b)if(_0x4a9a85[_0x5e6a('0x12e')]){const _0x30eacd=_0x4a9a85[_0x5e6a('0xb6')]();(!_0x4a9a85[_0x5e6a('0x78')]||!_0x4a9a85[_0x5e6a('0x78')][_0x5e6a('0x3c')])&&(_0x30eacd[_0x5e6a('0xef')](_0x51e148=>_0x27fec6[_0x5e6a('0x70')](_0x356e6c=>_0x356e6c[_0x5e6a('0x1a')](_0x51e148,!0x0)))&&_0x4a9a85[_0x5e6a('0xf1')]());if(_0x27fec6['every'](_0x1eeaf=>_0x30eacd[_0x5e6a('0x70')](_0x5c34ac=>_0x5c34ac['containsRange'](_0x1eeaf,!0x0)))){const _0x40c076=this[_0x5e6a('0x31')]['getSuggestionCallback']('deletion',_0x5323c5,_0x5e6a('0xe9'));return this['forceDefaultExecution'](()=>_0x40c076(_0x404e1c,null,_0x66416)),null;}}else{const _0x2796de=_0x4a9a85[_0x5e6a('0x92')]();_0x27fec6[_0x5e6a('0x70')](_0x23759f=>_0x23759f['containsRange'](_0x2796de,!0x0))&&_0x4a9a85['discard']();if(_0x27fec6[_0x5e6a('0xef')](_0x1cad21=>_0x2796de[_0x5e6a('0x1a')](_0x1cad21,!0x0))){const _0x3aebdf=this[_0x5e6a('0x31')]['getSuggestionCallback'](_0x5e6a('0x137'),_0x5323c5,_0x5e6a('0xe9'));return this[_0x5e6a('0x102')](()=>_0x3aebdf(_0x27fec6,null,_0x66416)),null;}}const _0xad7229=this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x5e6a('0x137'),_0x5323c5,_0x5e6a('0x6d'));let _0x485137=null;for(const _0x472d70 of this[_0x5e6a('0xf0')]())if(_0x472d70[_0x5e6a('0x64')]['id']==_0x44c72e['id']&&_0x472d70['isInContent']&&_0x5e6a('0x137')==_0x472d70['type']&&_0x472d70[_0x5e6a('0xd7')]==_0x5323c5&&Ot(_0x472d70,_0x66416)&&(_0xad7229(_0x472d70[_0x5e6a('0xb6')](),_0x27fec6)||_0xad7229(_0x27fec6,_0x472d70['getRanges']()))){if(_0x485137){if(_0x472d70[_0x5e6a('0x68')]&&_0x472d70[_0x5e6a('0x68')][_0x5e6a('0x5f')])continue;for(const _0x5c42e7 of _0x472d70[_0x5e6a('0xb6')]())_0x485137[_0x5e6a('0x99')](_0x5c42e7)||_0x485137['addRange'](_0x5c42e7);_0x472d70['removeMarkers']();}else{_0x485137=_0x472d70;for(const _0x17efa7 of _0x27fec6)_0x472d70[_0x5e6a('0x99')](_0x17efa7)||_0x472d70[_0x5e6a('0x39')](_0x17efa7);}}if(_0x485137)return _0x485137;_0x445c0b[_0x5e6a('0xc1')]();for(const {suggestion:_0x42e724,meta:_0x5a8833}of this[_0x5e6a('0xd4')](_0x27fec6,'deletion'))_0x5a8833[_0x5e6a('0x129')]&&(this[_0x5e6a('0xa6')]||!_0x5a8833[_0x5e6a('0xe5')]&&!_0x5a8833[_0x5e6a('0x14')])&&Ot(_0x42e724,_0x66416)&&_0x445c0b[_0x5e6a('0xcc')](_0x42e724);for(const _0x23d34c of _0x445c0b){const _0x9571f2=_0x23d34c[_0x5e6a('0xb6')]();if(!_0x66416||!_0x66416[_0x5e6a('0x3c')]){if(_0x27fec6[_0x5e6a('0xef')](_0x1a2af0=>_0x9571f2[_0x5e6a('0x70')](_0x12dd8b=>_0x12dd8b[_0x5e6a('0x1a')](_0x1a2af0,!0x0))))return _0x23d34c;}(!_0x23d34c[_0x5e6a('0x78')]||!_0x23d34c[_0x5e6a('0x78')][_0x5e6a('0x3c')])&&(_0x9571f2['every'](_0x410e04=>_0x27fec6[_0x5e6a('0x70')](_0x51b5b5=>_0x51b5b5['containsRange'](_0x410e04,!0x0)))&&_0x23d34c[_0x5e6a('0xf1')]());}const _0x2ebaf0=_0x260652(),_0x5d2440=_0x44c72e['id'],_0x287985=_0x5e6a('0xe7')+_0x5323c5,_0x569cae=this['_setSuggestionData']({'id':_0x2ebaf0,'type':_0x287985,'createdAt':new Date(),'authorId':_0x5d2440,'attributes':_0x66416});for(const _0xca5ab3 of _0x27fec6)_0xca5ab3[_0x5e6a('0x83')](),_0xca5ab3[_0x5e6a('0x53')]||_0x5e6a('0xed')==_0xca5ab3[_0x5e6a('0x11f')][_0x5e6a('0x24')]||this['_addSuggestionMarker'](_0x287985,_0x2ebaf0,_0x5d2440,_0xca5ab3,_0x51161f['getMultiRangeId']());return _0x569cae;}[_0x5e6a('0xb8')](_0x1c2fed,_0x116d9f){const _0x382a01=_0x1c2fed[_0x5e6a('0x12b')]();this['_model'][_0x5e6a('0x1c')](_0x4219f4=>{_0x4219f4['updateMarker'](_0x382a01,{'range':_0x116d9f});});}[_0x5e6a('0xf4')](_0x4cfc45){const _0x4c89d8=_0x4cfc45['id'],_0x345103=this[_0x5e6a('0x33')][_0x5e6a('0x121')][_0x5e6a('0x50')]('collaboration.channelId');this['_commentsRepository'][_0x5e6a('0xdc')](_0x4c89d8)||this[_0x5e6a('0xab')][_0x5e6a('0x4e')]({'channelId':_0x345103,'threadId':_0x4c89d8,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4457c1=this[_0x5e6a('0xab')][_0x5e6a('0x18')](_0x4c89d8);_0x4457c1[_0x5e6a('0xa5')](_0x5e6a('0x123')),_0x4457c1[_0x5e6a('0x123')]=!0x1,_0x4cfc45[_0x5e6a('0x68')]=_0x4457c1;}[_0x5e6a('0x8d')](_0xea1096,_0x403097,_0xd8729d,_0x1e2824){if(_0xea1096[_0x5e6a('0x2f')]!=_0x403097||_0xea1096[_0x5e6a('0xd7')]!=_0xd8729d||_0xea1096['creator']['id']!=_0x1e2824)throw this[_0x5e6a('0x33')][_0x5e6a('0x122')](_0x5e6a('0x8e')),new _0x6a793a(_0x5e6a('0x8e'),this);}[_0x5e6a('0x3d')](_0x465905,_0x10d6ee){const _0x30d31e=_0x465905[_0x5e6a('0x92')]();if(_0x10d6ee['isEqual'](_0x30d31e))_0x465905[_0x5e6a('0xb7')]();else{if(_0x30d31e[_0x5e6a('0x1a')](_0x10d6ee)){const _0x499bf6=this[_0x5e6a('0xc2')][_0x5e6a('0x13')](_0x10d6ee[_0x5e6a('0xd0')][_0x5e6a('0x103')],_0x5e6a('0x91'));this[_0x5e6a('0xb8')](_0x465905,this[_0x5e6a('0xc2')]['createRange'](_0x30d31e[_0x5e6a('0xd0')],_0x499bf6));const _0x23da17=_0x260652(),_0x2539e6=_0x465905[_0x5e6a('0x109')]['id'],_0x24e27b=_0x465905[_0x5e6a('0x2f')]+':'+_0x465905[_0x5e6a('0xd7')];this[_0x5e6a('0x9a')]({'id':_0x23da17,'type':_0x24e27b,'createdAt':new Date(),'authorId':_0x2539e6,'data':_0x465905[_0x5e6a('0x46')],'attributes':_0x465905[_0x5e6a('0x78')]});const _0x2cd922=this[_0x5e6a('0xc2')][_0x5e6a('0x13')](_0x10d6ee[_0x5e6a('0x91')][_0x5e6a('0x41')],_0x5e6a('0xcd')),_0x1aa0d0=this[_0x5e6a('0xc2')]['createRange'](_0x2cd922,_0x30d31e[_0x5e6a('0x91')]);this[_0x5e6a('0x72')](_0x24e27b,_0x23da17,_0x2539e6,_0x1aa0d0);}else{if(_0x30d31e['containsPosition'](_0x10d6ee[_0x5e6a('0xd0')])){const _0x1d6059=this[_0x5e6a('0xc2')][_0x5e6a('0x13')](_0x10d6ee[_0x5e6a('0xd0')][_0x5e6a('0x103')],_0x5e6a('0x91'));this[_0x5e6a('0xb8')](_0x465905,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x30d31e[_0x5e6a('0xd0')],_0x1d6059));}else{const _0x515c43=this[_0x5e6a('0xc2')][_0x5e6a('0x13')](_0x10d6ee[_0x5e6a('0x91')][_0x5e6a('0x41')],_0x5e6a('0xcd'));this['_setSuggestionRange'](_0x465905,this['_model'][_0x5e6a('0xcf')](_0x515c43,_0x30d31e[_0x5e6a('0x91')]));}}}}[_0x5e6a('0x5e')](_0x13d6d0){for(const {suggestion:_0xdab033,meta:_0x4a98f0}of this[_0x5e6a('0xd4')](_0x13d6d0,_0x5e6a('0x2d'))){if(!_0x4a98f0[_0x5e6a('0x129')])continue;const _0x570862=_0xdab033['getRanges']();for(const _0x30c28e of _0x570862)if(!_0x13d6d0[_0x5e6a('0x9f')](_0x30c28e)[_0x5e6a('0x5f')])return!0x0;}return!0x1;}[_0x5e6a('0x124')](_0x3025b0){const _0x2ec07e=this[_0x5e6a('0x33')]['plugins']['get'](_0x5e6a('0x20'))[_0x5e6a('0xbe')](_0x3025b0);if(!_0x2ec07e)throw new _0x6a793a(_0x5e6a('0x105'),this);return _0x2ec07e;}[_0x5e6a('0xb1')](_0xbad440){const _0x1ff1c6=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x20')),_0x28342a=_0xd4616e(_0x5e6a('0x4b')+_0xbad440),_0x3f1a42=_0x1ff1c6['getUser'](_0x28342a);return _0x3f1a42||_0x1ff1c6[_0x5e6a('0xb')]({'id':_0x28342a,'name':_0xbad440});}['_createSuggestion'](_0x13dbcf,_0x3224ff,_0x453de5,_0x398221,_0x1c3b9d){const _0x28af27=this[_0x5e6a('0x124')](_0x398221),_0x17fc4f=this[_0x5e6a('0x31')][_0x5e6a('0xf8')](_0x13dbcf,_0x3224ff,_0x453de5,_0x28af27,_0x1c3b9d,_0x23f77c=>this[_0x5e6a('0xd5')](_0x453de5,{'attributes':_0x23f77c}));return this['listenTo'](_0x17fc4f,_0x5e6a('0xe9'),()=>{this[_0x5e6a('0xd5')](_0x453de5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x17fc4f,_0x5e6a('0xf1'),()=>{this[_0x5e6a('0xd5')](_0x453de5,{'state':'rejected'});},{'priority':_0x5e6a('0xd')}),this[_0x5e6a('0xae')]['set'](_0x453de5,_0x17fc4f),this[_0x5e6a('0x29')][_0x5e6a('0x82')](_0x17fc4f,_0x5e6a('0x6a')),_0x17fc4f;}['_splitMarkerName'](_0x577b9b){const _0x40e1ce=_0x577b9b['split'](':');return{'group':_0x40e1ce[0x0],'type':_0x40e1ce[0x1],'subType':_0x40e1ce['length']>=0x5?_0x40e1ce[0x2]:null,'id':_0x40e1ce[_0x5e6a('0x5f')]<0x5?_0x40e1ce[0x2]:_0x40e1ce[0x3],'authorId':_0x40e1ce['length']<0x5?_0x40e1ce[0x3]:_0x40e1ce[0x4],'markerCount':0x6==_0x40e1ce[_0x5e6a('0x5f')]?_0x40e1ce[0x5]:null};}['_breakSuggestionMarker'](_0x5dd59f,_0x841064,_0xfe92fe){const _0x3c4585=_0x5dd59f[_0x5e6a('0x92')](),_0x4b9567=_0x3c4585[_0x5e6a('0xd0')],_0x15f573=_0x3c4585[_0x5e6a('0x91')];this[_0x5e6a('0xb8')](_0x5dd59f,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x4b9567,_0x841064));const _0x310a4e=_0x260652(),_0x4dd4f2=_0x5dd59f[_0x5e6a('0x109')]['id'],_0x28c7ad=_0x5dd59f['type']+(_0x5dd59f['subType']?':'+_0x5dd59f[_0x5e6a('0xd7')]:'');this['_setSuggestionData']({'id':_0x310a4e,'type':_0x28c7ad,'createdAt':new Date(),'authorId':_0x4dd4f2,'originalSuggestionId':_0x5dd59f['id'],'attributes':_0x5dd59f[_0x5e6a('0x78')],'data':_0x5dd59f[_0x5e6a('0x46')]}),'formatBlock'==_0x5dd59f[_0x5e6a('0x2f')]&&(_0xfe92fe=this[_0x5e6a('0xc2')][_0x5e6a('0x120')](_0xfe92fe[_0x5e6a('0x41')])),this['_addSuggestionMarker'](_0x28c7ad,_0x310a4e,_0x4dd4f2,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0xfe92fe,_0x15f573));}[_0x5e6a('0xd4')](_0x3356a9,_0x592942=null){const _0x1e6694=[],_0x3b2165=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')]('Users')['me'];Array[_0x5e6a('0xf6')](_0x3356a9)||(_0x3356a9=[_0x3356a9]);for(const _0x24c6ce of this[_0x5e6a('0xf0')]()){if(!_0x24c6ce['isInContent'])continue;if(_0x592942&&_0x24c6ce[_0x5e6a('0x2f')]!=_0x592942)continue;let _0x376613=!0x1;for(const _0x105d17 of _0x24c6ce[_0x5e6a('0xb6')]()){for(const _0x3f5d7b of _0x3356a9){const _0x4372e5=_0x3f5d7b[_0x5e6a('0xd0')][_0x5e6a('0x6c')](_0x105d17[_0x5e6a('0x91')])||_0x3f5d7b[_0x5e6a('0x91')][_0x5e6a('0x6c')](_0x105d17[_0x5e6a('0xd0')]);if(_0x4372e5||_0x3f5d7b[_0x5e6a('0xcb')](_0x105d17)){const _0x2125f0=_0x3f5d7b[_0x5e6a('0x1a')](_0x105d17)&&_t(this['_model']['schema'],_0x105d17['start'],_0x3f5d7b),_0x448b09=_0x105d17[_0x5e6a('0x1a')](_0x3f5d7b)&&_t(this[_0x5e6a('0xc2')][_0x5e6a('0x79')],_0x3f5d7b[_0x5e6a('0xd0')],_0x105d17);_0x1e6694[_0x5e6a('0x125')]({'suggestion':_0x24c6ce,'meta':{'isOwn':_0x3b2165==_0x24c6ce[_0x5e6a('0x64')],'isNextTo':_0x4372e5,'isInsideObject':_0x2125f0,'containsRangeInObject':_0x448b09}}),_0x376613=!0x0;break;}}if(_0x376613)break;}}return _0x1e6694;}['_addSuggestionMarker'](_0x384970,_0x3a95cd,_0x563e2e,_0x305826,_0x49719f){this['_model'][_0x5e6a('0x1c')](_0x284079=>{let _0x54a62d='suggestion:'+_0x384970+':'+_0x3a95cd+':'+_0x563e2e;_0x49719f&&(_0x54a62d=_0x54a62d+':'+_0x49719f),_0x284079['addMarker'](_0x54a62d,{'range':_0x305826,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x51fd86){const _0x52afd4=_0x51fd86[_0x5e6a('0xff')],_0x162f46=_0x51fd86[_0x5e6a('0x47')];_0x51fd86[_0x5e6a('0xff')]=null,null!=_0x52afd4&&(_0x52afd4[_0x5e6a('0x47')]=null),_0x51fd86[_0x5e6a('0x47')]=null,null!=_0x162f46&&(_0x162f46[_0x5e6a('0xff')]=null),_0x5e6a('0x2b')==this['_suggestionState']['get'](_0x51fd86)&&(this[_0x5e6a('0x29')][_0x5e6a('0x82')](_0x51fd86,_0x5e6a('0xa7')),this[_0x5e6a('0xda')]('suggestionUnloaded',_0x51fd86,_0x52afd4,_0x162f46));}[_0x5e6a('0x9a')](_0x400ba3){const _0x2d3760=_0x400ba3['id'],_0x359c95=this[_0x5e6a('0x12f')](_0x400ba3);if(this[_0x5e6a('0x8f')]&&this[_0x5e6a('0x8f')][_0x5e6a('0x67')]){const _0x746f2d=this['editor'][_0x5e6a('0x74')][_0x5e6a('0x50')]('PendingActions'),_0x1dbc5d=_0x359c95[_0x5e6a('0x116')],_0x3c0a8b=_0x359c95['subType']?_0x359c95[_0x5e6a('0x2f')]+':'+_0x359c95[_0x5e6a('0xd7')]:_0x359c95[_0x5e6a('0x2f')],_0x5f46a3=this[_0x5e6a('0x33')][_0x5e6a('0x55')],_0x2b95ff=_0x746f2d[_0x5e6a('0xcc')](_0x3f2328(_0x5f46a3,_0x5e6a('0x3b'))),_0x48a631={'id':_0x2d3760,'type':_0x3c0a8b,'hasComments':_0x1dbc5d,'data':_0x400ba3[_0x5e6a('0x46')]||null,'originalSuggestionId':_0x400ba3['originalSuggestionId']||null,'attributes':_0x359c95['attributes']};this[_0x5e6a('0x8f')][_0x5e6a('0x67')](_0x48a631)[_0x5e6a('0xdb')](_0x201456=>{_0x359c95[_0x5e6a('0x86')]=!0x0,_0x746f2d[_0x5e6a('0xe3')](_0x2b95ff),_0x201456&&_0x201456[_0x5e6a('0x63')]&&(this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0x2d3760)[_0x5e6a('0x63')]=_0x201456[_0x5e6a('0x63')]);})['catch'](_0x12c3df=>{throw _0x5e52fa(_0x5e6a('0x136')),this['editor'][_0x5e6a('0x1d')][_0x5e6a('0x62')]({'isUndoable':!0x1},()=>{_0x359c95['discard']();}),_0x359c95['stopListening'](),this[_0x5e6a('0xae')][_0x5e6a('0x10a')](_0x359c95['id']),this[_0x5e6a('0x29')][_0x5e6a('0x10a')](_0x359c95),_0x12c3df;});}return _0x359c95;}[_0x5e6a('0xd5')](_0x5c329b,_0x185d47){const _0x30f41d=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x7c')),_0x3a8e90=this['getSuggestion'](_0x5c329b);if(this[_0x5e6a('0x8f')]&&this[_0x5e6a('0x8f')]['updateSuggestion']){if(_0x3a8e90[_0x5e6a('0x86')]){const _0x4cc2b2=_0x30f41d[_0x5e6a('0xcc')](_0x3f2328(this[_0x5e6a('0x33')][_0x5e6a('0x55')],_0x5e6a('0x3b')));this[_0x5e6a('0x8f')][_0x5e6a('0x10c')](_0x5c329b,_0x185d47)['then'](()=>{_0x30f41d[_0x5e6a('0xe3')](_0x4cc2b2);});}else _0x3a8e90['on'](_0x5e6a('0x76'),()=>{this[_0x5e6a('0xd5')](_0x5c329b,_0x185d47);});}}[_0x5e6a('0xd9')](_0x3f6c86){if(!this[_0x5e6a('0x8f')]||!this[_0x5e6a('0x8f')][_0x5e6a('0x66')])throw new _0x6a793a('track-changes-adapter-missing-getsuggestion',this);return this[_0x5e6a('0x8f')]['getSuggestion'](_0x3f6c86);}[_0x5e6a('0xd1')](_0x496e2d){const {id:_0xfb215e,type:_0x32fcd1,subType:_0xc08e6d,authorId:_0x29a83a}=this[_0x5e6a('0x112')](_0x496e2d),_0x295a83=this['_suggestions'][_0x5e6a('0x50')](_0xfb215e)||this[_0x5e6a('0x11c')](_0x32fcd1,_0xc08e6d,_0xfb215e,_0x29a83a,{});switch(this['_checkSuggestionCorrectness'](_0x295a83,_0x32fcd1,_0xc08e6d,_0x29a83a),this[_0x5e6a('0x29')][_0x5e6a('0x50')](_0x295a83)){case _0x5e6a('0x6a'):this[_0x5e6a('0xd9')](_0xfb215e)[_0x5e6a('0xdb')](_0xde29b3=>{let _0x2f4684=Promise[_0x5e6a('0x110')]();_0xde29b3[_0x5e6a('0x116')]&&(_0x2f4684=this[_0x5e6a('0xab')][_0x5e6a('0x77')]({'channelId':this[_0x5e6a('0x33')][_0x5e6a('0x121')][_0x5e6a('0x50')](_0x5e6a('0xc0')),'threadId':_0xfb215e})),_0x2f4684[_0x5e6a('0xdb')](()=>{this[_0x5e6a('0x12f')](_0xde29b3)[_0x5e6a('0x86')]=!0x0;});}),this[_0x5e6a('0x29')][_0x5e6a('0x82')](_0x295a83,'markerReady');break;case _0x5e6a('0xa7'):this[_0x5e6a('0xd5')](_0xfb215e,{'state':_0x5e6a('0x131')});case _0x5e6a('0x93'):this[_0x5e6a('0x29')]['set'](_0x295a83,_0x5e6a('0x2b')),this[_0x5e6a('0xda')](_0x5e6a('0xc3'),_0x295a83);break;case _0x5e6a('0x2b'):this['fire'](_0x5e6a('0x5a'),_0x295a83);}return _0x295a83[_0x5e6a('0xfc')](_0x496e2d),_0x295a83;}[_0x5e6a('0xf7')](_0x4aa6cc){const _0x591463=Array[_0x5e6a('0xbf')](_0x4aa6cc)[_0x5e6a('0xe2')](_0x50d113=>!_0x50d113[_0x5e6a('0x12e')]),_0x52ccbc=this[_0x5e6a('0xf0')]({'skipNotAttached':!0x0})[_0x5e6a('0xe2')](_0x3dc2cb=>!_0x3dc2cb[_0x5e6a('0x12e')]),_0x5656fc=_0x52ccbc['filter'](_0x5e3b77=>!_0x4aa6cc[_0x5e6a('0x132')](_0x5e3b77)),_0x414643=new Map(_0x52ccbc[_0x5e6a('0x10d')](_0x543d0b=>[_0x543d0b,this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x543d0b[_0x5e6a('0x2f')],_0x543d0b['subType'],_0x5e6a('0xdf'))])),_0x46d86d=new Map(_0x52ccbc[_0x5e6a('0x10d')](_0x24f70c=>[_0x24f70c,_0x24f70c[_0x5e6a('0x92')]()])),_0x11123d=new Set(),_0xd26d42=new Set();for(let _0x2f6cc0=0x0;_0x2f6cc0<_0x591463[_0x5e6a('0x5f')];_0x2f6cc0++)_0x45b94f(_0x591463[_0x2f6cc0],_0x591463,_0x2f6cc0+0x1);for(let _0x1c400d=0x0;_0x1c400d<_0x591463[_0x5e6a('0x5f')];_0x1c400d++)_0x45b94f(_0x591463[_0x1c400d],_0x5656fc,0x0);for(let _0x5899be=0x0;_0x5899be<_0x591463['length'];_0x5899be++){const _0x44f20c=_0x591463[_0x5899be];!_0xd26d42['has'](_0x44f20c)&&_0x44f20c[_0x5e6a('0xff')]&&(_0x44f20c[_0x5e6a('0xff')][_0x5e6a('0x47')]===_0x44f20c&&(_0x44f20c['previous'][_0x5e6a('0x47')]=null),_0x44f20c[_0x5e6a('0xff')]=null),!_0x11123d[_0x5e6a('0x132')](_0x44f20c)&&_0x44f20c['next']&&(_0x44f20c[_0x5e6a('0x47')][_0x5e6a('0xff')]===_0x44f20c&&(_0x44f20c[_0x5e6a('0x47')][_0x5e6a('0xff')]=null),_0x44f20c[_0x5e6a('0x47')]=null);}function _0x45b94f(_0xae8b75,_0xc283f,_0x3d1e70){for(let _0x277637=_0x3d1e70;_0x277637<_0xc283f[_0x5e6a('0x5f')];_0x277637++){const _0x2635c5=_0x36d7fe(_0xae8b75,_0xc283f[_0x277637]);_0x2635c5&&(_0x2635c5[0x0][_0x5e6a('0x47')]=_0x2635c5[0x1],_0x2635c5[0x1][_0x5e6a('0xff')]=_0x2635c5[0x0],_0x11123d['add'](_0x2635c5[0x0]),_0xd26d42[_0x5e6a('0xcc')](_0x2635c5[0x1]));}}function _0x36d7fe(_0x2642bb,_0x29cd39){if(_0x2642bb[_0x5e6a('0x64')]['id']!==_0x29cd39[_0x5e6a('0x64')]['id'])return null;const _0x51e37d=_0x414643[_0x5e6a('0x50')](_0x2642bb)(_0x2642bb,_0x29cd39,_0x46d86d[_0x5e6a('0x50')](_0x2642bb),_0x46d86d[_0x5e6a('0x50')](_0x29cd39));if(!_0x51e37d)return null;return _0x414643['get'](_0x29cd39)(_0x2642bb,_0x29cd39,_0x46d86d[_0x5e6a('0x50')](_0x2642bb),_0x46d86d[_0x5e6a('0x50')](_0x29cd39))?_0x51e37d[0x1][_0x5e6a('0x68')]&&_0x51e37d[0x1][_0x5e6a('0x68')][_0x5e6a('0x5f')]?null:_0x51e37d:null;}}['_joinWithAdjacentSuggestions'](_0x1203c8){const _0x312609=Array['from'](_0x1203c8),_0x19a14e=this[_0x5e6a('0xf0')]({'skipNotAttached':!0x0}),_0x2c56fe=_0x19a14e[_0x5e6a('0xe2')](_0x75364f=>!_0x1203c8[_0x5e6a('0x132')](_0x75364f)),_0x58ecaa=new Map(_0x312609[_0x5e6a('0x10d')](_0x301135=>[_0x301135,this[_0x5e6a('0x31')]['getSuggestionCallback'](_0x301135[_0x5e6a('0x2f')],_0x301135[_0x5e6a('0xd7')],'join')])),_0x3c8489=new Map(_0x19a14e[_0x5e6a('0x10d')](_0x31fbbf=>[_0x31fbbf,_0x31fbbf[_0x5e6a('0xb6')]()]));for(let _0x455b60=0x0;_0x455b60<_0x312609[_0x5e6a('0x5f')];_0x455b60++){if(_0x2fe92f(this,_0x312609[_0x455b60],_0x312609,_0x455b60+0x1))return!0x0;}for(let _0x250cfe=0x0;_0x250cfe<_0x312609[_0x5e6a('0x5f')];_0x250cfe++){if(_0x2fe92f(this,_0x312609[_0x250cfe],_0x2c56fe,0x0))return!0x0;}return!0x1;function _0x2fe92f(_0x1bfd22,_0x441328,_0xa6452,_0x1a57b0){for(let _0x13eac4=_0x1a57b0;_0x13eac4<_0xa6452[_0x5e6a('0x5f')];_0x13eac4++){const _0x3923e3=_0xa6452[_0x13eac4];if(_0x3923e3[_0x5e6a('0x2f')]!==_0x441328[_0x5e6a('0x2f')]||_0x3923e3[_0x5e6a('0x64')]['id']!==_0x441328[_0x5e6a('0x64')]['id']||_0x3923e3['subType']!==_0x441328['subType'])continue;if(!Ut(_0x441328,_0x3923e3))continue;const _0x48412a=_0x58ecaa[_0x5e6a('0x50')](_0x441328),_0x1e2c89=_0x3c8489[_0x5e6a('0x50')](_0x441328),_0x41bbb9=_0x3c8489[_0x5e6a('0x50')](_0x3923e3),_0xa66223=_0x441328['commentThread']&&_0x441328['commentThread'][_0x5e6a('0x5f')],_0x7fc21b=_0x3923e3[_0x5e6a('0x68')]&&_0x3923e3[_0x5e6a('0x68')][_0x5e6a('0x5f')];if(!_0xa66223&&_0x48412a(_0x41bbb9,_0x1e2c89))return _0x1bfd22[_0x5e6a('0x7b')](_0x3923e3,_0x441328),_0x3c8489[_0x5e6a('0x10a')](_0x441328),!0x0;if(!_0x7fc21b&&_0x48412a(_0x1e2c89,_0x41bbb9))return _0x1bfd22[_0x5e6a('0x7b')](_0x441328,_0x3923e3),_0x3c8489['delete'](_0x3923e3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x33ae5a,_0x4d1dc8){if(_0x33ae5a[_0x5e6a('0x12e')])for(const _0x5c7739 of _0x4d1dc8[_0x5e6a('0xb6')]())_0x33ae5a[_0x5e6a('0x39')](_0x5c7739);else{const _0x294b9c=_0x4d1dc8['getFirstRange']()[_0x5e6a('0x91')];this['_setSuggestionRange'](_0x33ae5a,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x33ae5a[_0x5e6a('0x92')]()[_0x5e6a('0xd0')],_0x294b9c));}_0x4d1dc8[_0x5e6a('0xb7')]();}}class Bt{constructor(_0x41fa87){this[_0x5e6a('0x8c')]=_0x41fa87,this[_0x5e6a('0xc2')]=_0x41fa87[_0x5e6a('0x1d')],this[_0x5e6a('0x8b')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x5e6a('0x8a')]();}[_0x5e6a('0xf8')](_0x2d90c6,_0x378cf7,_0x4217d5,_0x53a14e,_0x5d247c,_0x2ff4e5){return new _0x51161f(this[_0x5e6a('0xc2')],{'type':_0x2d90c6,'subType':_0x378cf7,'id':_0x4217d5,'author':_0x53a14e,'creator':_0x53a14e,'attributes':_0x5d247c,'onAttributesChange':_0x2ff4e5,'onAccept':(..._0x1429b8)=>this[_0x5e6a('0x12d')](_0x2d90c6,_0x378cf7,'accept')(..._0x1429b8),'onDiscard':(..._0x35c032)=>this[_0x5e6a('0x12d')](_0x2d90c6,_0x378cf7,_0x5e6a('0xf1'))(..._0x35c032)});}['registerCustomCallback'](_0x1e6312,_0x5d2b43,_0x5e2d53,_0x3dc342){const _0x4c4ff1=_0x1e6312+':'+_0x5d2b43+':'+_0x5e2d53;this[_0x5e6a('0x8b')]['set'](_0x4c4ff1,_0x3dc342);}['getSuggestionCallback'](_0xcb5d2,_0x54f0de,_0xb618cd){const _0x42eb46=_0xcb5d2+':'+_0x54f0de+':'+_0xb618cd;return this[_0x5e6a('0x8b')][_0x5e6a('0x50')](_0x42eb46)||this[_0x5e6a('0xe0')][_0x5e6a('0x50')](_0xcb5d2+':'+_0xb618cd);}['_registerDefaultCallbacks'](){const _0x280c50=()=>!0x1,_0xec98e6=_0x877305=>{_0x877305[_0x5e6a('0x114')]((_0x38d322,_0x3b38fa)=>_0x38d322[_0x5e6a('0xd0')][_0x5e6a('0xc9')](_0x3b38fa['start'])?0x1:-0x1),this['_model'][_0x5e6a('0x1c')](_0x2b9096=>{for(const _0x2ef9ef of _0x877305){let _0x5c3356;_0x5c3356=_0x2ef9ef['end'][_0x5e6a('0xf2')]&&_0x2ef9ef[_0x5e6a('0x91')][_0x5e6a('0x41')]==_0x2ef9ef[_0x5e6a('0xd0')][_0x5e6a('0x11')]?_0x2b9096[_0x5e6a('0x40')](_0x2ef9ef[_0x5e6a('0xd0')][_0x5e6a('0x11')],'on'):_0x2b9096['createSelection'](_0x2ef9ef),this[_0x5e6a('0xc2')]['deleteContent'](_0x5c3356,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3639e7=(_0xdf7fb,_0x23518b)=>{this[_0x5e6a('0xc2')]['change'](_0x3daddd=>{const {commandName:_0x59ed8e,commandParams:_0x19e3a4=[]}=_0x23518b,_0x351062=_0xdf7fb[_0x5e6a('0x10d')](_0x57ad92=>(Mt(_0x57ad92)&&(_0x57ad92=this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x57ad92[_0x5e6a('0x91')])),_0x57ad92))[_0x5e6a('0xe2')](_0x4a3cf3=>_0x5e6a('0xed')!==_0x4a3cf3[_0x5e6a('0x11f')][_0x5e6a('0x24')]);if(_0x351062[_0x5e6a('0x5f')]<0x1)return;const _0x69b83c=Array['from'](this[_0x5e6a('0xc2')][_0x5e6a('0x117')][_0x5e6a('0x106')][_0x5e6a('0xb6')]())[_0x5e6a('0x10d')](_0x3b84ac=>_0x14a52e['fromRange'](_0x3b84ac));_0x3daddd['setSelection'](_0x351062);for(const _0x43ceac of this[_0x5e6a('0x8c')][_0x5e6a('0xfe')]['commands']())_0x43ceac[_0x5e6a('0x126')]();_0x19e3a4[_0x5e6a('0x125')]({'forceDefaultExecution':!0x0}),this[_0x5e6a('0x8c')][_0x5e6a('0x59')](_0x59ed8e,..._0x19e3a4);const _0xde6084=_0x69b83c[_0x5e6a('0xe2')](_0x59a26b=>_0x5e6a('0xed')!=_0x59a26b[_0x5e6a('0x11f')][_0x5e6a('0x24')]);_0xde6084[_0x5e6a('0x5f')]>0x0&&_0x3daddd[_0x5e6a('0xa3')](_0xde6084);for(const _0x5db717 of _0x69b83c)_0x5db717['detach']();});},_0x2b56ad=(_0x4e7bd2,_0x544785)=>0x1==_0x4e7bd2[_0x5e6a('0x5f')]&&0x1==_0x544785[_0x5e6a('0x5f')]&&_0x4e7bd2[0x0][_0x5e6a('0x91')][_0x5e6a('0x6c')](_0x544785[0x0][_0x5e6a('0xd0')]),_0x289421=(_0x235c63,_0x51e69f,_0x5b3ff0,_0x2fdd73)=>xt(_0x235c63,_0x51e69f,_0x5b3ff0,_0x2fdd73,this[_0x5e6a('0xc2')])?[_0x235c63,_0x51e69f]:xt(_0x51e69f,_0x235c63,_0x2fdd73,_0x5b3ff0,this[_0x5e6a('0xc2')])?[_0x51e69f,_0x235c63]:null;this[_0x5e6a('0xe0')][_0x5e6a('0x82')](_0x5e6a('0xe8'),_0x280c50),this[_0x5e6a('0xe0')][_0x5e6a('0x82')]('insertion:discard',_0xec98e6),this[_0x5e6a('0xe0')][_0x5e6a('0x82')]('insertion:join',_0x2b56ad),this[_0x5e6a('0xe0')]['set'](_0x5e6a('0x5c'),_0x289421),this['_defaultCallbacks']['set'](_0x5e6a('0x11d'),_0xec98e6),this[_0x5e6a('0xe0')][_0x5e6a('0x82')](_0x5e6a('0x133'),_0x280c50),this[_0x5e6a('0xe0')]['set'](_0x5e6a('0xea'),_0x2b56ad),this[_0x5e6a('0xe0')][_0x5e6a('0x82')](_0x5e6a('0x135'),_0x289421),this[_0x5e6a('0xe0')][_0x5e6a('0x82')]('formatInline:accept',_0x3639e7),this['_defaultCallbacks'][_0x5e6a('0x82')](_0x5e6a('0x10b'),_0x280c50),this[_0x5e6a('0xe0')][_0x5e6a('0x82')]('formatInline:join',_0x2b56ad),this[_0x5e6a('0xe0')][_0x5e6a('0x82')]('formatInline:chain',_0x280c50),this[_0x5e6a('0xe0')]['set'](_0x5e6a('0x94'),_0x3639e7),this[_0x5e6a('0xe0')]['set']('formatBlock:discard',_0x280c50),this[_0x5e6a('0xe0')][_0x5e6a('0x82')](_0x5e6a('0xb9'),_0x2b56ad),this[_0x5e6a('0xe0')][_0x5e6a('0x82')](_0x5e6a('0x6'),_0x280c50);}}function _t(_0x2089b7,_0x59bff7,_0x4559c6){for(const _0x300e4d of _0x59bff7[_0x5e6a('0x41')][_0x5e6a('0x35')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x300e4d['root']==_0x300e4d)return!0x1;if(!_0x4559c6[_0x5e6a('0x6e')](_0x300e4d))return!0x1;if(_0x2089b7[_0x5e6a('0x26')](_0x300e4d)||_0x2089b7[_0x5e6a('0xac')](_0x300e4d))return!0x0;}return!0x1;}function Mt(_0x2db69c){return _0x2db69c[_0x5e6a('0x91')]['parent']==_0x2db69c['start'][_0x5e6a('0x11')]&&_0x2db69c[_0x5e6a('0x91')]['isAtStart'];}function $t(_0xb907b9,_0x6400b4,_0x56db61,_0x5d016e){const _0x5e7176=_0x2a2087=>!_0x2a2087['item']['is'](_0x5e6a('0x19'))&&!_0x5d016e[_0x5e6a('0x26')](_0x2a2087[_0x5e6a('0x4d')]),_0x24a6ad=_0xb907b9[_0x5e6a('0xd0')]['getLastMatchingPosition'](_0x5e7176),_0x386f08=_0xb907b9[_0x5e6a('0x91')][_0x5e6a('0x119')](_0x5e7176,{'direction':'backward'});return(!_0xb907b9['start'][_0x5e6a('0x6c')](_0x24a6ad)||!_0xb907b9['end'][_0x5e6a('0x6c')](_0x386f08))&&(_0x24a6ad[_0x5e6a('0xc9')](_0x386f08)?_0x56db61[_0x5e6a('0x48')](_0x6400b4,{'range':_0x56db61[_0x5e6a('0xcf')](_0x24a6ad,_0x386f08)}):_0x56db61[_0x5e6a('0x5b')](_0x6400b4),!0x0);}function Nt(_0xb57b64){return _0xd4616e(_0xb57b64);}function Rt(_0x515d2a){const _0x52d674=_0x515d2a[_0x5e6a('0xd0')]['nodeAfter'];return _0x52d674&&_0x52d674['is'](_0x5e6a('0xa8'));}function jt(_0x533df3,_0x22b8dc){const _0x5762e3=_0x22b8dc[_0x5e6a('0x79')][_0x5e6a('0x26')](_0x533df3)||_0x22b8dc[_0x5e6a('0x79')][_0x5e6a('0x12')](_0x533df3);return _0x22b8dc['createRange'](_0x22b8dc[_0x5e6a('0x13')](_0x533df3,_0x5e6a('0x37')),_0x5762e3?_0x22b8dc[_0x5e6a('0x30')](_0x533df3):_0x22b8dc[_0x5e6a('0x13')](_0x533df3,_0x5e6a('0x91')));}function xt(_0x15eda5,_0x38e05d,_0x47b07a,_0x24e6c6,_0x5ecefd){if(!Ut(_0x15eda5,_0x38e05d))return!0x1;if(_0x47b07a[_0x5e6a('0x91')]['isEqual'](_0x24e6c6[_0x5e6a('0xd0')]))return!0x0;if(_0x15eda5[_0x5e6a('0x2f')]!=_0x38e05d[_0x5e6a('0x2f')])return!0x1;if(!_0x47b07a[_0x5e6a('0x91')][_0x5e6a('0xf5')](_0x24e6c6[_0x5e6a('0xd0')]))return!0x1;const _0x51ada1=_0x5ecefd[_0x5e6a('0xcf')](_0x47b07a['end'],_0x24e6c6['start'])[_0x5e6a('0x43')]();for(const _0xdbc866 of _0x51ada1)if([_0x5e6a('0x13a'),_0x5e6a('0x134')]['includes'](_0xdbc866[_0x5e6a('0x2f')])&&_0x5ecefd[_0x5e6a('0x79')][_0x5e6a('0xac')](_0xdbc866[_0x5e6a('0x4d')]))return!0x1;return!0x0;}function Ut(_0x40a92e,_0x557756){return!(!_0x40a92e[_0x5e6a('0x5d')]||!_0x557756[_0x5e6a('0x5d')])&&_0x37cf62(_0x40a92e['attributes'],_0x557756[_0x5e6a('0x78')]);}function Ot(_0x1555f0,_0x36257a){const _0x537153=Et(_0x1555f0['attributes']),_0x348065=Et(_0x36257a);if(!_0x1555f0[_0x5e6a('0x5d')])return!0x1;for(const _0x351777 of Object['keys'](_0x348065))if(!_0x37cf62(_0x537153[_0x351777],_0x348065[_0x351777]))return!0x1;return!0x0;}function Et(_0x45716c){const _0xfb9dda=Object['assign']({},_0x45716c);return delete _0xfb9dda[_0x5e6a('0x3c')],delete _0xfb9dda['tablePasteChainId'],_0xfb9dda;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37d6=['type','head','buttonView','separator','_viewToController','button','acceptSelectedSuggestions','isEnabled','_annotationViews','Annotations','isMultiRange','change:activeAnnotations','_updateController','suggestionChanged','some','from','createAnnotation','refreshSelectedViews','define','trackChanges','stopListening','editor','Discard\x20all\x20suggestions','previous','listenTo','_refreshActiveMarkers','trackChanges.SuggestionThreadView','EditorAnnotations','descriptionParts','getByInnerView','arrowView','Accept\x20all\x20suggestions','_destroyController','editing','comments.maxCommentsWhenCollapsed','commentThread','_initializeController','SuggestionThreadView','_handleControllerBuffer','bind','actionView','activeAnnotations','innerView','comments','set','isOn','createAnnotationView','_disableComments','getAllAdjacentSuggestions','push','componentFactory','commandName','value','Track\x20changes','addComment','locale','_handleSuggestionControllerDelayed','hasSuggestion','focus','suggestionLoaded','map','lowest','view','destroy','change:previous','Accept\x20all\x20selected\x20suggestions','suggestion-','discardSelectedSuggestions','acceptAllSuggestions','comments.maxThreadTotalWeight','createCommentThreadController','_bindAnnotationToEditors','suggestionUnloaded','clear','discardAllSuggestions','commands','reduce','filter','remove','getMarkerNames','_unbindEditors','CommentsUI','comments.editorConfig','isDirty','plugins','keys','_descriptionFactory','getJoined','_createUIButton','CommentsRepository','_suggestionToController','mainView','unbind','get','execute','addSourceCollector','CommentView','delete','has','init','length','add','getFirstRange','TrackChangesUI','TrackChangesEditing','getDescriptions','model','getSuggestion','isInContent'];(function(_0xafbc68,_0x37d600){const _0xa96bae=function(_0x29330d){while(--_0x29330d){_0xafbc68['push'](_0xafbc68['shift']());}};_0xa96bae(++_0x37d600);}(_0x37d6,0x92));const _0xa96b=function(_0xafbc68,_0x37d600){_0xafbc68=_0xafbc68-0x0;let _0xa96bae=_0x37d6[_0xafbc68];return _0xa96bae;};import{Plugin as _0x5a5201}from'ckeditor5/src/core';import{Collection as _0x516d6b}from'ckeditor5/src/utils';import{Model as _0x20d09c,SplitButtonView as _0x1dbb08,createDropdown as _0x5a4d7b,addListToDropdown as _0xeec309}from'ckeditor5/src/ui';import{Users as _0x21ee88,getDateTimeFormatter as _0x248e88,getAllMarkersDomElementsSorted as _0x51b260}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f42c8 from'./trackchangesediting';import _0x2a14b3 from'./ui/suggestioncontroller';import _0x196b5a from'./ui/view/suggestionthreadview';import{getTranslation as _0x175062}from'./utils/common-translations';import _0x43a935 from'../theme/icons/track-changes.svg';export default class d extends _0x5a5201{static get['requires'](){return[_0x2f42c8,_0x21ee88,_0xa96b('0x34'),_0xa96b('0x51'),_0xa96b('0x63')];}static get['pluginName'](){return _0xa96b('0x42');}constructor(_0x25e765){super(_0x25e765),this[_0xa96b('0x35')]=new Map(),this[_0xa96b('0x4c')]=new Map(),this[_0xa96b('0x50')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x185cd7=this['editor']['config'];_0x185cd7[_0xa96b('0x5a')](_0xa96b('0x62'),_0x196b5a),_0x185cd7[_0xa96b('0x5a')]('trackChanges.disableComments',!0x1),this['_disableComments']=_0x185cd7[_0xa96b('0x38')]('trackChanges.disableComments');}[_0xa96b('0x13')](_0x559aab,_0x490028){0x0===this[_0xa96b('0x1')]['size']&&setTimeout(()=>{for(const [_0x284ff2,_0x5ba82a]of this['_handleControllerBuffer']){const _0x1c65e8=this[_0xa96b('0x35')]['has'](_0x284ff2);_0x1c65e8||_0x5ba82a?_0x1c65e8&&_0x5ba82a&&this[_0xa96b('0x68')](_0x284ff2):this['_initializeController'](_0x284ff2);}this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63'))[_0xa96b('0x59')](),this[_0xa96b('0x61')](),this[_0xa96b('0x1')][_0xa96b('0x24')]();},0xa),this[_0xa96b('0x1')]['set'](_0x559aab,_0x490028);}[_0xa96b('0x3e')](){const _0x5eb1f1=this[_0xa96b('0x5d')],_0x34e6a4=_0x5eb1f1['plugins'][_0xa96b('0x38')](_0xa96b('0x43')),_0x4658c9=_0x5eb1f1[_0xa96b('0x2f')][_0xa96b('0x38')]('Annotations'),_0x2fbde3=_0x5eb1f1[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63')),_0x3595aa=_0x5eb1f1['plugins'][_0xa96b('0x38')]('CommentsRepository');_0x5eb1f1['ui'][_0xa96b('0xd')][_0xa96b('0x40')](_0xa96b('0x5b'),_0x13ae6e=>this[_0xa96b('0x33')](_0x13ae6e)),_0x2fbde3[_0xa96b('0x3a')](()=>{const _0xb338fa=[];for(const [_0x120bde,_0x5926ba]of Array[_0xa96b('0x57')](this[_0xa96b('0x35')])){const _0x474d50=_0x120bde[_0xa96b('0xb')](),_0x1e0447=[];for(const _0x3464fc of _0x474d50){if(!_0x3464fc[_0xa96b('0x47')])continue;if(_0x3464fc[_0xa96b('0x52')]){_0x1e0447['push'](..._0x3464fc['getRanges']());continue;}const _0x4fdc05=_0x3464fc[_0xa96b('0x41')]();if(_0x1e0447[_0xa96b('0x3f')]>0x0){const _0x4dd5eb=_0x1e0447[0x0][_0xa96b('0x32')](_0x4fdc05);if(_0x4dd5eb){_0x1e0447[0x0]=_0x4dd5eb;continue;}}_0x1e0447['push'](_0x4fdc05);}_0xb338fa[_0xa96b('0xc')]([_0x5926ba[_0xa96b('0x19')],_0x1e0447]);}return _0xb338fa;}),this['listenTo'](_0x34e6a4,_0xa96b('0x16'),(_0x573d91,_0x4cafc4)=>{this[_0xa96b('0x60')](_0x4cafc4,_0xa96b('0x1b'),(_0x40fe23,_0x2f20e1,_0x1ca593,_0xd2e45a)=>{_0x4cafc4[_0xa96b('0x47')]&&(null==_0x1ca593?(this[_0xa96b('0x54')](_0xd2e45a[_0xa96b('0x49')]),this['_handleSuggestionControllerDelayed'](_0x4cafc4,!0x1)):(this[_0xa96b('0x54')](_0x1ca593['head']),this[_0xa96b('0x13')](_0x4cafc4,!0x0)));}),null===_0x4cafc4[_0xa96b('0x5f')]?this['_handleSuggestionControllerDelayed'](_0x4cafc4,!0x1):this['_updateController'](_0x4cafc4[_0xa96b('0x49')]);}),this[_0xa96b('0x60')](_0x34e6a4,_0xa96b('0x23'),(_0x3de2cb,_0x2bc4c2,_0x7890a6)=>{this[_0xa96b('0x5c')](_0x2bc4c2,_0xa96b('0x1b')),this['_handleControllerBuffer'][_0xa96b('0x3c')](_0x2bc4c2);const _0x36dc26=_0x7890a6?_0x7890a6[_0xa96b('0x49')]:_0x2bc4c2,_0x190576=this['_suggestionToController'][_0xa96b('0x38')](_0x36dc26);null!==_0x7890a6&&this['_updateController'](_0x36dc26),null===_0x7890a6&&_0x190576&&this[_0xa96b('0x68')](_0x2bc4c2);}),this[_0xa96b('0x60')](_0x34e6a4,_0xa96b('0x55'),(_0x176ed7,_0xe46826)=>{this[_0xa96b('0x54')](_0xe46826);}),this[_0xa96b('0x60')](_0x4658c9,_0xa96b('0x53'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3595aa,_0xa96b('0x11'),(_0x3f1264,{threadId:_0x461c68,isFromAdapter:_0x5bc1b4})=>{if(_0x5bc1b4||!_0x34e6a4[_0xa96b('0x14')](_0x461c68))return;const _0x3dbeaf=_0x34e6a4[_0xa96b('0x46')](_0x461c68);this[_0xa96b('0x35')][_0xa96b('0x38')](_0x3dbeaf)[_0xa96b('0x19')][_0xa96b('0x15')]();},{'priority':_0xa96b('0x18')});}['_refreshActiveMarkers'](){const _0xbff0f9=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')]('Annotations'),_0x3dacd5=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')]('TrackChangesEditing'),_0x4ae98f=Array[_0xa96b('0x57')](_0xbff0f9[_0xa96b('0x4')],_0x29d89c=>_0x29d89c[_0xa96b('0x5')])[_0xa96b('0x28')](_0x11f828=>this[_0xa96b('0x4c')]['has'](_0x11f828)),_0x99248=[];for(const _0x1a1ad9 of _0x4ae98f){const _0x257bea=this[_0xa96b('0x4c')][_0xa96b('0x38')](_0x1a1ad9)[_0xa96b('0x45')][_0xa96b('0xb')]();_0x99248['push'](..._0x257bea[_0xa96b('0x27')]((_0x193cfc,_0x12b0d0)=>[..._0x193cfc,..._0x12b0d0[_0xa96b('0x2a')]()],[]));}_0x3dacd5['activeMarkers']=_0x99248;}['_createUIButton'](_0x3de84a){const _0x4919ea=_0x5a4d7b(_0x3de84a,_0x1dbb08),_0x18e909=this[_0xa96b('0x5d')][_0xa96b('0x26')]['get'](_0xa96b('0x5b')),_0x401176=_0x175062(_0x3de84a,_0xa96b('0x10'));_0x4919ea[_0xa96b('0x4a')][_0xa96b('0x7')]({'tooltip':_0x401176,'label':_0x401176,'icon':_0x43a935}),_0x4919ea[_0xa96b('0x4a')][_0xa96b('0x2')](_0xa96b('0x8'))['to'](_0x18e909,_0xa96b('0xf')),_0x4919ea[_0xa96b('0x4a')]['on']('execute',()=>{_0x18e909[_0xa96b('0x39')](),this[_0xa96b('0x5d')][_0xa96b('0x69')][_0xa96b('0x19')]['focus']();});const _0x5be39e=new _0x516d6b(),_0x346245=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x401176,'commandName':'trackChanges'}},{'type':_0xa96b('0x4b')},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x67')),'commandName':_0xa96b('0x1f')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x1c')),'commandName':_0xa96b('0x4e')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x5e')),'commandName':_0xa96b('0x25')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0xa96b('0x1e')}}];for(const _0x269c01 of _0x346245){let _0xd3b487={'type':_0xa96b('0x4b')};if(_0x269c01['model']){const _0x33c2d8=new _0x20d09c(_0x269c01[_0xa96b('0x45')]),_0x38ad0e=this['editor']['commands'][_0xa96b('0x38')](_0x33c2d8[_0xa96b('0xe')]);_0x33c2d8['bind']('isOn','isEnabled')['to'](_0x38ad0e,_0xa96b('0xf'),_0xa96b('0x4f')),_0xd3b487={'type':_0x269c01[_0xa96b('0x48')],'model':_0x33c2d8};}_0x5be39e[_0xa96b('0x40')](_0xd3b487);}_0xeec309(_0x4919ea,_0x5be39e);const _0x492e18=_0x346245['filter'](_0x452875=>null!=_0x452875['model'])[_0xa96b('0x17')](_0x2e7b4f=>this[_0xa96b('0x5d')][_0xa96b('0x26')][_0xa96b('0x38')](_0x2e7b4f['model']['commandName'])),_0x867004=_0x4919ea[_0xa96b('0x4a')];return _0x867004[_0xa96b('0x3')][_0xa96b('0x37')](_0xa96b('0x4f')),_0x867004['arrowView'][_0xa96b('0x37')]('isEnabled'),_0x867004[_0xa96b('0x3')][_0xa96b('0x2')](_0xa96b('0x4f'))['to'](_0x18e909,_0xa96b('0x4f')),_0x867004[_0xa96b('0x66')][_0xa96b('0x2')](_0xa96b('0x4f'))['toMany'](_0x492e18,_0xa96b('0x4f'),(..._0x32fe97)=>_0x32fe97[_0xa96b('0x56')](_0x4eda6a=>_0x4eda6a)),_0x4919ea['on'](_0xa96b('0x39'),_0x25b826=>{this[_0xa96b('0x5d')][_0xa96b('0x39')](_0x25b826['source'][_0xa96b('0xe')]),this['editor']['editing'][_0xa96b('0x19')][_0xa96b('0x15')]();}),_0x4919ea;}[_0xa96b('0x6c')](_0x286e1e){const _0x2b5554=this['editor'],_0x8a2ab8=_0x2b5554['config'],_0x410816=_0x2b5554[_0xa96b('0x2f')]['get'](_0xa96b('0x51')),_0x26ba5b=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x34')),_0x5b8ed0=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63')),_0x1117af=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0x21ee88)['me'],_0xd4fd3=_0x8a2ab8[_0xa96b('0x38')]('trackChanges')[_0xa96b('0x0')],{CommentsListView:_0x30d8ed,CommentThreadInputView:_0x2f079a}=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x2c'));let _0x3373ce,_0x413d96;this[_0xa96b('0x50')][_0xa96b('0x3d')](_0x286e1e['id'])?(_0x413d96=this[_0xa96b('0x50')][_0xa96b('0x38')](_0x286e1e['id']),_0x3373ce=_0x413d96[_0xa96b('0x36')]):(_0x3373ce=new _0xd4fd3(_0x2b5554['locale'],_0x286e1e,_0x1117af,{'disableComments':this[_0xa96b('0xa')],'editorConfig':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x2d')),'maxCommentsWhenCollapsed':_0x8a2ab8['get'](_0xa96b('0x6a')),'maxThreadTotalWeight':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x20')),'maxCommentCharsWhenCollapsed':_0x8a2ab8[_0xa96b('0x38')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x248e88(_0x8a2ab8[_0xa96b('0x38')]('locale')),'CommentView':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x6'))[_0xa96b('0x3b')],'CommentsListView':_0x30d8ed,'CommentThreadInputView':_0x2f079a}),_0x3373ce['acceptButton']['on'](_0xa96b('0x39'),()=>{_0x2b5554[_0xa96b('0x69')][_0xa96b('0x19')]['focus']();}),_0x3373ce['discardButton']['on']('execute',()=>{_0x2b5554[_0xa96b('0x69')][_0xa96b('0x19')]['focus']();}),_0x413d96=_0x410816[_0xa96b('0x9')](this[_0xa96b('0x5d')][_0xa96b('0x12')],_0x3373ce),_0x413d96[_0xa96b('0x2')]('isDirty')['to'](_0x3373ce,_0xa96b('0x2e')),_0x413d96[_0xa96b('0x2')](_0xa96b('0x3f'))['to'](_0x3373ce),_0x413d96[_0xa96b('0x2')](_0xa96b('0x48'))['to'](_0x3373ce,'type',_0x5e8d00=>'suggestion-'+_0x5e8d00),this[_0xa96b('0x50')][_0xa96b('0x7')](_0x286e1e['id'],_0x413d96));const _0x350af8=_0x26ba5b[_0xa96b('0x21')](_0x286e1e[_0xa96b('0x6b')],_0x3373ce),_0x52f445=new _0x2a14b3(_0x2b5554,_0x286e1e,_0x3373ce,_0x350af8),_0x10512d=_0x286e1e[_0xa96b('0xb')]()[_0xa96b('0x28')](_0xe6bc69=>_0xe6bc69[_0xa96b('0x47')]);_0x3373ce[_0xa96b('0x64')]=_0x2b5554['plugins'][_0xa96b('0x38')](_0xa96b('0x43'))[_0xa96b('0x31')][_0xa96b('0x44')](_0x10512d),this[_0xa96b('0x35')][_0xa96b('0x7')](_0x286e1e,_0x52f445),this[_0xa96b('0x4c')]['set'](_0x3373ce,_0x52f445);const _0x260532=_0x410816[_0xa96b('0x58')]({'view':_0x413d96,'target':()=>{const _0x433210=[],_0x3be3ec=_0x286e1e['getAllAdjacentSuggestions']()[_0xa96b('0x28')](_0x1d7982=>_0x1d7982['isInContent']);for(const _0x252d5c of _0x3be3ec)_0x433210[_0xa96b('0xc')](..._0x252d5c['getMarkers']());return _0x51b260(_0x2b5554['editing'],_0x433210);},'type':()=>_0xa96b('0x1d')+_0x52f445['view'][_0xa96b('0x48')]});_0x26ba5b[_0xa96b('0x22')](_0x3373ce,_0x260532),_0x410816[_0xa96b('0x40')](_0x260532),_0x5b8ed0['registerAnnotation'](_0x260532);}['_destroyController'](_0x9759c){const _0x97335a=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x34')),_0x3703fc=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x51')),_0xd9898=this[_0xa96b('0x35')]['get'](_0x9759c),_0x138fb0=_0xd9898[_0xa96b('0x19')],_0x4be608=_0x3703fc[_0xa96b('0x65')](_0x138fb0);_0x97335a[_0xa96b('0x2b')](_0x138fb0),_0x4be608&&_0x3703fc[_0xa96b('0x29')](_0x4be608),this['_suggestionToController'][_0xa96b('0x3c')](_0x9759c),this['_viewToController'][_0xa96b('0x3c')](_0x138fb0),_0xd9898['destroy']();}[_0xa96b('0x54')](_0x51119f){if(!_0x51119f[_0xa96b('0x47')]||!this[_0xa96b('0x35')][_0xa96b('0x3d')](_0x51119f))return;const _0x18a295=this['editor']['plugins'][_0xa96b('0x38')](_0xa96b('0x43')),_0x22a1bc=this[_0xa96b('0x35')]['get'](_0x51119f),_0x297ef8=_0x51119f[_0xa96b('0xb')]();_0x22a1bc[_0xa96b('0x19')][_0xa96b('0x64')]=_0x18a295[_0xa96b('0x31')][_0xa96b('0x44')](_0x297ef8);}[_0xa96b('0x1a')](){for(const _0x295e62 of this[_0xa96b('0x35')][_0xa96b('0x30')]())this['_destroyController'](_0x295e62);for(const _0x981537 of this[_0xa96b('0x50')]['values']())_0x981537['mainView']['destroy']();super[_0xa96b('0x1a')]();}}
23
+ const _0x29d2=['from','_createUIButton','_handleSuggestionControllerDelayed','commandName','filter','suggestionUnloaded','TrackChangesEditing','delete','getJoined','get','model','EditorAnnotations','isInContent','CommentsRepository','plugins','_updateController','head','stopListening','Annotations','mainView','Accept\x20all\x20selected\x20suggestions','some','createAnnotation','push','trackChanges.disableComments','_disableComments','_unbindEditors','requires','getAllAdjacentSuggestions','toMany','CommentsUI','_viewToController','arrowView','change:previous','discardButton','remove','_handleControllerBuffer','_destroyController','destroy','comments.maxThreadTotalWeight','button','buttonView','activeMarkers','isMultiRange','trackChanges','activeAnnotations','_descriptionFactory','CommentView','createCommentThreadController','discardSelectedSuggestions','getByInnerView','suggestionChanged','size','commands','execute','separator','addSourceCollector','getMarkerNames','getSuggestion','acceptAllSuggestions','isEnabled','createAnnotationView','comments','isOn','source','_annotationViews','length','view','type','keys','bind','innerView','value','discardAllSuggestions','values','init','Track\x20changes','set','isDirty','SuggestionThreadView','hasSuggestion','lowest','acceptButton','commentThread','registerAnnotation','_suggestionToController','clear','addComment','comments.maxCommentsWhenCollapsed','suggestionLoaded','editing','locale','acceptSelectedSuggestions','Discard\x20all\x20suggestions','trackChanges.SuggestionThreadView','define','has','getFirstRange','_bindAnnotationToEditors','refreshSelectedViews','_initializeController','actionView','add','focus','_refreshActiveMarkers','descriptionParts','listenTo','config','suggestion-','unbind','pluginName','editor'];(function(_0x1800b1,_0x29d248){const _0x2643e6=function(_0xaa3683){while(--_0xaa3683){_0x1800b1['push'](_0x1800b1['shift']());}};_0x2643e6(++_0x29d248);}(_0x29d2,0xc8));const _0x2643=function(_0x1800b1,_0x29d248){_0x1800b1=_0x1800b1-0x0;let _0x2643e6=_0x29d2[_0x1800b1];return _0x2643e6;};import{Plugin as _0x18ad5a}from'ckeditor5/src/core';import{Collection as _0x1ca296}from'ckeditor5/src/utils';import{Model as _0x68ac08,SplitButtonView as _0x520203,createDropdown as _0xd173e1,addListToDropdown as _0x248f9d}from'ckeditor5/src/ui';import{Users as _0x49f6d4,getDateTimeFormatter as _0x59d59f,getAllMarkersDomElementsSorted as _0x3b2bd5}from'ckeditor5-collaboration/src/collaboration-core';import _0x108011 from'./trackchangesediting';import _0xf5b911 from'./ui/suggestioncontroller';import _0x4b31db from'./ui/view/suggestionthreadview';import{getTranslation as _0x419242}from'./utils/common-translations';import _0x8470c5 from'../theme/icons/track-changes.svg';export default class d extends _0x18ad5a{static get[_0x2643('0x33')](){return[_0x108011,_0x49f6d4,_0x2643('0x25'),_0x2643('0x2a'),_0x2643('0x23')];}static get[_0x2643('0x16')](){return'TrackChangesUI';}constructor(_0x57aa19){super(_0x57aa19),this[_0x2643('0x6d')]=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x2643('0x3c')]=new Map();const _0x579321=this[_0x2643('0x17')][_0x2643('0x13')];_0x579321['define'](_0x2643('0x6'),_0x4b31db),_0x579321[_0x2643('0x7')](_0x2643('0x30'),!0x1),this[_0x2643('0x31')]=_0x579321['get'](_0x2643('0x30'));}[_0x2643('0x1a')](_0x51b9ad,_0x5e110f){0x0===this[_0x2643('0x3c')][_0x2643('0x4c')]&&setTimeout(()=>{for(const [_0x4ae804,_0x917f64]of this['_handleControllerBuffer']){const _0x4b04d8=this[_0x2643('0x6d')][_0x2643('0x8')](_0x4ae804);_0x4b04d8||_0x917f64?_0x4b04d8&&_0x917f64&&this[_0x2643('0x3d')](_0x4ae804):this['_initializeController'](_0x4ae804);}this['editor'][_0x2643('0x26')][_0x2643('0x21')]('EditorAnnotations')[_0x2643('0xb')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x2643('0x6e')]();},0xa),this['_handleControllerBuffer'][_0x2643('0x65')](_0x51b9ad,_0x5e110f);}[_0x2643('0x63')](){const _0x454386=this[_0x2643('0x17')],_0x1db3ea=_0x454386[_0x2643('0x26')]['get'](_0x2643('0x1e')),_0x38c439=_0x454386[_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x2a')),_0x437a0a=_0x454386[_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x23')),_0x2615ac=_0x454386['plugins'][_0x2643('0x21')](_0x2643('0x25'));_0x454386['ui']['componentFactory'][_0x2643('0xe')](_0x2643('0x44'),_0x58b597=>this[_0x2643('0x19')](_0x58b597)),_0x437a0a[_0x2643('0x50')](()=>{const _0x49b910=[];for(const [_0x459e94,_0x59c252]of Array[_0x2643('0x18')](this[_0x2643('0x6d')])){const _0x59dcb8=_0x459e94[_0x2643('0x34')](),_0x11fe1b=[];for(const _0x3c16ff of _0x59dcb8){if(!_0x3c16ff[_0x2643('0x24')])continue;if(_0x3c16ff[_0x2643('0x43')]){_0x11fe1b[_0x2643('0x2f')](..._0x3c16ff['getRanges']());continue;}const _0x1a1c20=_0x3c16ff[_0x2643('0x9')]();if(_0x11fe1b[_0x2643('0x5a')]>0x0){const _0x91f0d=_0x11fe1b[0x0][_0x2643('0x20')](_0x1a1c20);if(_0x91f0d){_0x11fe1b[0x0]=_0x91f0d;continue;}}_0x11fe1b[_0x2643('0x2f')](_0x1a1c20);}_0x49b910[_0x2643('0x2f')]([_0x59c252['view'],_0x11fe1b]);}return _0x49b910;}),this[_0x2643('0x12')](_0x1db3ea,_0x2643('0x1'),(_0x4501f2,_0x734e01)=>{this[_0x2643('0x12')](_0x734e01,_0x2643('0x39'),(_0x586b80,_0x46256c,_0x373ef3,_0x367959)=>{_0x734e01[_0x2643('0x24')]&&(null==_0x373ef3?(this[_0x2643('0x27')](_0x367959['head']),this[_0x2643('0x1a')](_0x734e01,!0x1)):(this[_0x2643('0x27')](_0x373ef3['head']),this['_handleSuggestionControllerDelayed'](_0x734e01,!0x0)));}),null===_0x734e01['previous']?this[_0x2643('0x1a')](_0x734e01,!0x1):this[_0x2643('0x27')](_0x734e01[_0x2643('0x28')]);}),this[_0x2643('0x12')](_0x1db3ea,_0x2643('0x1d'),(_0x10c605,_0x40e192,_0x2b96f4)=>{this[_0x2643('0x29')](_0x40e192,_0x2643('0x39')),this[_0x2643('0x3c')][_0x2643('0x1f')](_0x40e192);const _0x43eaef=_0x2b96f4?_0x2b96f4[_0x2643('0x28')]:_0x40e192,_0x575188=this[_0x2643('0x6d')]['get'](_0x43eaef);null!==_0x2b96f4&&this['_updateController'](_0x43eaef),null===_0x2b96f4&&_0x575188&&this['_destroyController'](_0x40e192);}),this[_0x2643('0x12')](_0x1db3ea,_0x2643('0x4b'),(_0x2bddb7,_0x2d653d)=>{this[_0x2643('0x27')](_0x2d653d);}),this[_0x2643('0x12')](_0x38c439,'change:activeAnnotations',()=>{this[_0x2643('0x10')]();}),this[_0x2643('0x12')](_0x2615ac,_0x2643('0x6f'),(_0x53e550,{threadId:_0x1937be,isFromAdapter:_0x20bfa0})=>{if(_0x20bfa0||!_0x1db3ea[_0x2643('0x68')](_0x1937be))return;const _0x8ca5cb=_0x1db3ea[_0x2643('0x52')](_0x1937be);this[_0x2643('0x6d')][_0x2643('0x21')](_0x8ca5cb)[_0x2643('0x5b')]['focus']();},{'priority':_0x2643('0x69')});}[_0x2643('0x10')](){const _0x23c9f7=this[_0x2643('0x17')][_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x2a')),_0x1d3d30=this['editor'][_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x1e')),_0x25fff9=Array[_0x2643('0x18')](_0x23c9f7[_0x2643('0x45')],_0x6caadf=>_0x6caadf[_0x2643('0x5f')])[_0x2643('0x1c')](_0x3a3a73=>this[_0x2643('0x37')][_0x2643('0x8')](_0x3a3a73)),_0x1c0603=[];for(const _0x698ffc of _0x25fff9){const _0x10c410=this[_0x2643('0x37')][_0x2643('0x21')](_0x698ffc)[_0x2643('0x22')][_0x2643('0x34')]();_0x1c0603[_0x2643('0x2f')](..._0x10c410['reduce']((_0x4d5b5c,_0x1b2c9f)=>[..._0x4d5b5c,..._0x1b2c9f[_0x2643('0x51')]()],[]));}_0x1d3d30[_0x2643('0x42')]=_0x1c0603;}[_0x2643('0x19')](_0x34932b){const _0xc8bab9=_0xd173e1(_0x34932b,_0x520203),_0x5ab783=this['editor'][_0x2643('0x4d')]['get'](_0x2643('0x44')),_0x14ed2a=_0x419242(_0x34932b,_0x2643('0x64'));_0xc8bab9[_0x2643('0x41')][_0x2643('0x65')]({'tooltip':_0x14ed2a,'label':_0x14ed2a,'icon':_0x8470c5}),_0xc8bab9['buttonView'][_0x2643('0x5e')]('isOn')['to'](_0x5ab783,'value'),_0xc8bab9['buttonView']['on']('execute',()=>{_0x5ab783[_0x2643('0x4e')](),this['editor'][_0x2643('0x2')][_0x2643('0x5b')]['focus']();});const _0x2c63c0=new _0x1ca296(),_0x126bd5=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x14ed2a,'commandName':_0x2643('0x44')}},{'type':_0x2643('0x4f')},{'type':_0x2643('0x40'),'model':{'withText':!0x0,'label':_0x419242(_0x34932b,'Accept\x20all\x20suggestions'),'commandName':_0x2643('0x53')}},{'type':_0x2643('0x40'),'model':{'withText':!0x0,'label':_0x419242(_0x34932b,_0x2643('0x2c')),'commandName':_0x2643('0x4')}},{'type':_0x2643('0x40'),'model':{'withText':!0x0,'label':_0x419242(_0x34932b,_0x2643('0x5')),'commandName':_0x2643('0x61')}},{'type':_0x2643('0x40'),'model':{'withText':!0x0,'label':_0x419242(_0x34932b,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x2643('0x49')}}];for(const _0xf61daf of _0x126bd5){let _0x479c9b={'type':_0x2643('0x4f')};if(_0xf61daf[_0x2643('0x22')]){const _0x1eb3c5=new _0x68ac08(_0xf61daf[_0x2643('0x22')]),_0x55800c=this[_0x2643('0x17')][_0x2643('0x4d')]['get'](_0x1eb3c5[_0x2643('0x1b')]);_0x1eb3c5[_0x2643('0x5e')](_0x2643('0x57'),_0x2643('0x54'))['to'](_0x55800c,_0x2643('0x60'),_0x2643('0x54')),_0x479c9b={'type':_0xf61daf['type'],'model':_0x1eb3c5};}_0x2c63c0['add'](_0x479c9b);}_0x248f9d(_0xc8bab9,_0x2c63c0);const _0x1ddc6f=_0x126bd5[_0x2643('0x1c')](_0x5d6705=>null!=_0x5d6705[_0x2643('0x22')])['map'](_0x5d0846=>this[_0x2643('0x17')]['commands'][_0x2643('0x21')](_0x5d0846['model'][_0x2643('0x1b')])),_0x55aa8b=_0xc8bab9[_0x2643('0x41')];return _0x55aa8b[_0x2643('0xd')]['unbind'](_0x2643('0x54')),_0x55aa8b[_0x2643('0x38')][_0x2643('0x15')](_0x2643('0x54')),_0x55aa8b[_0x2643('0xd')]['bind']('isEnabled')['to'](_0x5ab783,'isEnabled'),_0x55aa8b[_0x2643('0x38')]['bind'](_0x2643('0x54'))[_0x2643('0x35')](_0x1ddc6f,_0x2643('0x54'),(..._0x3ddafc)=>_0x3ddafc[_0x2643('0x2d')](_0x47846d=>_0x47846d)),_0xc8bab9['on'](_0x2643('0x4e'),_0x38b343=>{this['editor'][_0x2643('0x4e')](_0x38b343[_0x2643('0x58')][_0x2643('0x1b')]),this['editor']['editing'][_0x2643('0x5b')][_0x2643('0xf')]();}),_0xc8bab9;}[_0x2643('0xc')](_0xdf1c3e){const _0x4cca59=this['editor'],_0x33a975=_0x4cca59[_0x2643('0x13')],_0x56bb40=_0x4cca59['plugins'][_0x2643('0x21')](_0x2643('0x2a')),_0x1bd3b0=_0x4cca59[_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x25')),_0x31bbfa=_0x4cca59[_0x2643('0x26')]['get'](_0x2643('0x23')),_0x231d90=_0x4cca59['plugins'][_0x2643('0x21')](_0x49f6d4)['me'],_0x1025fe=_0x33a975[_0x2643('0x21')](_0x2643('0x44'))[_0x2643('0x67')],{CommentsListView:_0x542fe6,CommentThreadInputView:_0x4d4c05}=_0x4cca59[_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x36'));let _0x4d9932,_0x7074d4;this[_0x2643('0x59')][_0x2643('0x8')](_0xdf1c3e['id'])?(_0x7074d4=this[_0x2643('0x59')][_0x2643('0x21')](_0xdf1c3e['id']),_0x4d9932=_0x7074d4[_0x2643('0x2b')]):(_0x4d9932=new _0x1025fe(_0x4cca59[_0x2643('0x3')],_0xdf1c3e,_0x231d90,{'disableComments':this[_0x2643('0x31')],'editorConfig':_0x33a975[_0x2643('0x21')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x33a975['get'](_0x2643('0x0')),'maxThreadTotalWeight':_0x33a975[_0x2643('0x21')](_0x2643('0x3f')),'maxCommentCharsWhenCollapsed':_0x33a975[_0x2643('0x21')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59d59f(_0x33a975[_0x2643('0x21')](_0x2643('0x3'))),'CommentView':_0x33a975[_0x2643('0x21')](_0x2643('0x56'))[_0x2643('0x47')],'CommentsListView':_0x542fe6,'CommentThreadInputView':_0x4d4c05}),_0x4d9932[_0x2643('0x6a')]['on'](_0x2643('0x4e'),()=>{_0x4cca59['editing'][_0x2643('0x5b')][_0x2643('0xf')]();}),_0x4d9932[_0x2643('0x3a')]['on'](_0x2643('0x4e'),()=>{_0x4cca59[_0x2643('0x2')][_0x2643('0x5b')][_0x2643('0xf')]();}),_0x7074d4=_0x56bb40[_0x2643('0x55')](this[_0x2643('0x17')][_0x2643('0x3')],_0x4d9932),_0x7074d4[_0x2643('0x5e')](_0x2643('0x66'))['to'](_0x4d9932,_0x2643('0x66')),_0x7074d4['bind']('length')['to'](_0x4d9932),_0x7074d4['bind'](_0x2643('0x5c'))['to'](_0x4d9932,_0x2643('0x5c'),_0x16f6a7=>_0x2643('0x14')+_0x16f6a7),this[_0x2643('0x59')]['set'](_0xdf1c3e['id'],_0x7074d4));const _0x5e7b3a=_0x1bd3b0[_0x2643('0x48')](_0xdf1c3e[_0x2643('0x6b')],_0x4d9932),_0x2f9aa1=new _0xf5b911(_0x4cca59,_0xdf1c3e,_0x4d9932,_0x5e7b3a),_0x44d192=_0xdf1c3e['getAllAdjacentSuggestions']()[_0x2643('0x1c')](_0x4e4df8=>_0x4e4df8[_0x2643('0x24')]);_0x4d9932[_0x2643('0x11')]=_0x4cca59[_0x2643('0x26')]['get'](_0x2643('0x1e'))['_descriptionFactory']['getDescriptions'](_0x44d192),this['_suggestionToController']['set'](_0xdf1c3e,_0x2f9aa1),this[_0x2643('0x37')][_0x2643('0x65')](_0x4d9932,_0x2f9aa1);const _0xed772d=_0x56bb40[_0x2643('0x2e')]({'view':_0x7074d4,'target':()=>{const _0x2899b3=[],_0x1f8035=_0xdf1c3e[_0x2643('0x34')]()['filter'](_0x23761c=>_0x23761c['isInContent']);for(const _0x488056 of _0x1f8035)_0x2899b3['push'](..._0x488056['getMarkers']());return _0x3b2bd5(_0x4cca59[_0x2643('0x2')],_0x2899b3);},'type':()=>_0x2643('0x14')+_0x2f9aa1[_0x2643('0x5b')][_0x2643('0x5c')]});_0x1bd3b0[_0x2643('0xa')](_0x4d9932,_0xed772d),_0x56bb40[_0x2643('0xe')](_0xed772d),_0x31bbfa[_0x2643('0x6c')](_0xed772d);}[_0x2643('0x3d')](_0x2637c7){const _0x3ecd63=this[_0x2643('0x17')]['plugins'][_0x2643('0x21')](_0x2643('0x25')),_0x49960b=this[_0x2643('0x17')][_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x2a')),_0x24f3fb=this[_0x2643('0x6d')][_0x2643('0x21')](_0x2637c7),_0x4a757c=_0x24f3fb['view'],_0x131c3c=_0x49960b[_0x2643('0x4a')](_0x4a757c);_0x3ecd63[_0x2643('0x32')](_0x4a757c),_0x131c3c&&_0x49960b[_0x2643('0x3b')](_0x131c3c),this[_0x2643('0x6d')][_0x2643('0x1f')](_0x2637c7),this[_0x2643('0x37')][_0x2643('0x1f')](_0x4a757c),_0x24f3fb[_0x2643('0x3e')]();}[_0x2643('0x27')](_0x3b32c7){if(!_0x3b32c7[_0x2643('0x24')]||!this[_0x2643('0x6d')]['has'](_0x3b32c7))return;const _0x1c8ed9=this[_0x2643('0x17')][_0x2643('0x26')][_0x2643('0x21')]('TrackChangesEditing'),_0x1836f3=this['_suggestionToController']['get'](_0x3b32c7),_0x2663f0=_0x3b32c7['getAllAdjacentSuggestions']();_0x1836f3[_0x2643('0x5b')][_0x2643('0x11')]=_0x1c8ed9[_0x2643('0x46')]['getDescriptions'](_0x2663f0);}[_0x2643('0x3e')](){for(const _0xa4d5e1 of this[_0x2643('0x6d')][_0x2643('0x5d')]())this[_0x2643('0x3d')](_0xa4d5e1);for(const _0x519ac7 of this[_0x2643('0x59')][_0x2643('0x62')]())_0x519ac7[_0x2643('0x2b')][_0x2643('0x3e')]();super[_0x2643('0x3e')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4edb=['commentThreadController','listenTo','isEnabled','plugins','getRanges','execute','get','_acceptCommand','commands','model','stopListening','bind','_discardCommand','discardSuggestion','add','change:isDirty','_setPendingAction','canDiscard','acceptSuggestion','view','_removePendingAction','canAccept','_editor','PENDING_ACTION_SUGGESTION','_pendingAction','isDirty','PendingActions','canEditAt','unbind','destroy'];(function(_0x287669,_0x4edbff){const _0xd67789=function(_0x34e55d){while(--_0x34e55d){_0x287669['push'](_0x287669['shift']());}};_0xd67789(++_0x4edbff);}(_0x4edb,0x10e));const _0xd677=function(_0x287669,_0x4edbff){_0x287669=_0x287669-0x0;let _0xd67789=_0x4edb[_0x287669];return _0xd67789;};import{ObservableMixin as _0x15476d}from'ckeditor5/src/utils';import{getTranslation as _0x4cfe5d}from'../utils/common-translations';export default class Gt extends _0x15476d(){constructor(_0x137dfa,_0x2244af,_0x31fa3a,_0x376740){super(),this[_0xd677('0x9')]=_0x2244af,this[_0xd677('0x13')]=_0x31fa3a,this[_0xd677('0x0')]=_0x376740,this[_0xd677('0x16')]=_0x137dfa,this[_0xd677('0x7')]=_0x137dfa[_0xd677('0x8')][_0xd677('0x6')](_0xd677('0x12')),this[_0xd677('0xc')]=_0x137dfa[_0xd677('0x8')][_0xd677('0x6')](_0xd677('0xd')),this[_0xd677('0x13')][_0xd677('0xb')](_0xd677('0x2'))['to'](this['_acceptCommand'],this[_0xd677('0xc')],(_0x28a790,_0x1fe98f)=>_0x28a790||_0x1fe98f),this[_0xd677('0x13')][_0xd677('0xb')](_0xd677('0x15'))['to'](this[_0xd677('0x7')],_0xd677('0x2'),_0x285951=>_0x285951&&this[_0xd677('0x16')][_0xd677('0x9')]['canEditAt'](_0x2244af[_0xd677('0x4')]())),this[_0xd677('0x13')][_0xd677('0xb')]('canDiscard')['to'](this[_0xd677('0xc')],_0xd677('0x2'),_0x3d173b=>_0x3d173b&&this[_0xd677('0x16')][_0xd677('0x9')][_0xd677('0x1b')](_0x2244af[_0xd677('0x4')]())),this[_0xd677('0x18')]=null,_0x31fa3a['isDirty']&&this[_0xd677('0x10')](),this['listenTo'](_0x31fa3a,_0xd677('0x12'),()=>this[_0xd677('0x12')]()),this[_0xd677('0x1')](_0x31fa3a,_0xd677('0xd'),()=>this['discardSuggestion']()),this[_0xd677('0x1')](_0x31fa3a,_0xd677('0xf'),()=>{_0x31fa3a[_0xd677('0x19')]?this['_setPendingAction']():this[_0xd677('0x14')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0xd677('0x5')](this[_0xd677('0x9')]['id']);}[_0xd677('0xd')](){this[_0xd677('0xc')][_0xd677('0x5')](this[_0xd677('0x9')]['id']);}[_0xd677('0x1d')](){this[_0xd677('0x13')][_0xd677('0x1c')](_0xd677('0x2')),this[_0xd677('0x13')][_0xd677('0x1c')](_0xd677('0x15')),this['view'][_0xd677('0x1c')](_0xd677('0x11')),this[_0xd677('0xa')](),this[_0xd677('0x0')]['destroy'](),this['_pendingAction']&&this[_0xd677('0x14')]();}[_0xd677('0x10')](){const _0x23846f=_0x4cfe5d(this[_0xd677('0x16')]['locale'],_0xd677('0x17'));this[_0xd677('0x18')]=this[_0xd677('0x16')][_0xd677('0x3')][_0xd677('0x6')](_0xd677('0x1a'))[_0xd677('0xe')](_0x23846f);}[_0xd677('0x14')](){null!==this[_0xd677('0x18')]&&this[_0xd677('0x16')][_0xd677('0x3')][_0xd677('0x6')](_0xd677('0x1a'))['remove'](this[_0xd677('0x18')]),this[_0xd677('0x18')]=null;}}
23
+ const _0x2b62=['_setPendingAction','remove','change:isDirty','isEnabled','_editor','canDiscard','model','_pendingAction','_acceptCommand','unbind','stopListening','bind','execute','_discardCommand','view','PENDING_ACTION_SUGGESTION','_removePendingAction','commands','destroy','plugins','get','commentThreadController','canEditAt','PendingActions','acceptSuggestion','discardSuggestion','isDirty','getRanges','locale','listenTo'];(function(_0x4b022d,_0x2b62d7){const _0x4b5431=function(_0xe4f258){while(--_0xe4f258){_0x4b022d['push'](_0x4b022d['shift']());}};_0x4b5431(++_0x2b62d7);}(_0x2b62,0x19f));const _0x4b54=function(_0x4b022d,_0x2b62d7){_0x4b022d=_0x4b022d-0x0;let _0x4b5431=_0x2b62[_0x4b022d];return _0x4b5431;};import{ObservableMixin as _0x5243ab}from'ckeditor5/src/utils';import{getTranslation as _0x316439}from'../utils/common-translations';export default class Gt extends _0x5243ab(){constructor(_0xd8a1b3,_0x42064d,_0x469436,_0x2849d1){super(),this[_0x4b54('0xb')]=_0x42064d,this[_0x4b54('0x13')]=_0x469436,this[_0x4b54('0x1a')]=_0x2849d1,this[_0x4b54('0x9')]=_0xd8a1b3,this['_acceptCommand']=_0xd8a1b3['commands'][_0x4b54('0x19')](_0x4b54('0x1d')),this[_0x4b54('0x12')]=_0xd8a1b3[_0x4b54('0x16')]['get']('discardSuggestion'),this['view'][_0x4b54('0x10')]('isEnabled')['to'](this[_0x4b54('0xd')],this[_0x4b54('0x12')],(_0x2acc56,_0x4c5635)=>_0x2acc56||_0x4c5635),this[_0x4b54('0x13')]['bind']('canAccept')['to'](this['_acceptCommand'],_0x4b54('0x8'),_0x5878f1=>_0x5878f1&&this[_0x4b54('0x9')]['model'][_0x4b54('0x1b')](_0x42064d[_0x4b54('0x2')]())),this[_0x4b54('0x13')][_0x4b54('0x10')](_0x4b54('0xa'))['to'](this[_0x4b54('0x12')],_0x4b54('0x8'),_0xd96cab=>_0xd96cab&&this[_0x4b54('0x9')][_0x4b54('0xb')][_0x4b54('0x1b')](_0x42064d[_0x4b54('0x2')]())),this[_0x4b54('0xc')]=null,_0x469436['isDirty']&&this[_0x4b54('0x5')](),this[_0x4b54('0x4')](_0x469436,_0x4b54('0x1d'),()=>this[_0x4b54('0x1d')]()),this['listenTo'](_0x469436,'discardSuggestion',()=>this[_0x4b54('0x0')]()),this['listenTo'](_0x469436,_0x4b54('0x7'),()=>{_0x469436[_0x4b54('0x1')]?this[_0x4b54('0x5')]():this['_removePendingAction']();});}['acceptSuggestion'](){this[_0x4b54('0xd')][_0x4b54('0x11')](this['model']['id']);}[_0x4b54('0x0')](){this[_0x4b54('0x12')][_0x4b54('0x11')](this[_0x4b54('0xb')]['id']);}[_0x4b54('0x17')](){this[_0x4b54('0x13')][_0x4b54('0xe')](_0x4b54('0x8')),this[_0x4b54('0x13')]['unbind']('canAccept'),this[_0x4b54('0x13')]['unbind'](_0x4b54('0xa')),this[_0x4b54('0xf')](),this['commentThreadController']['destroy'](),this[_0x4b54('0xc')]&&this['_removePendingAction']();}[_0x4b54('0x5')](){const _0x29c267=_0x316439(this['_editor'][_0x4b54('0x3')],_0x4b54('0x14'));this[_0x4b54('0xc')]=this[_0x4b54('0x9')][_0x4b54('0x18')][_0x4b54('0x19')](_0x4b54('0x1c'))['add'](_0x29c267);}[_0x4b54('0x15')](){null!==this[_0x4b54('0xc')]&&this[_0x4b54('0x9')][_0x4b54('0x18')][_0x4b54('0x19')](_0x4b54('0x1c'))[_0x4b54('0x6')](this[_0x4b54('0xc')]),this[_0x4b54('0xc')]=null;}}