@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230825.0 → 0.0.0-nightly-20230827.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e2f=['formatInline:discard','end','registerPostFixer','registerCustomCallback','suggestion','includes','_addSuggestionMarker','from','setTo','formatInline:join','previous','getDifference','before','removeAttribute','dataDowncast','elementStart','trackChangesCommand','_suggestionState','marker-count','plugins','sort','nodeBefore','addHighlight','isMultiRange','isLimit','insertion:accept','track-changes-user-not-found','define','never','split','_enabledCommands','removeComment','createdAt','mapper','_updateSuggestionData','element','ck-suggestion-marker','consume','track-changes-suggestion-not-found','_getSuggestionData','commandName','containsPosition','model','addClass','markMultiRangeBlockFormat','reconvertMarker','deletion:','value','toViewElement','originalSuggestionId','multipleBlocks','getCustomProperty','getAttribute','markDeletion','markerReady','updateMarker','addSuggestionData','formatInline:','conversion','isNextTo','_onDiscard','deleteContent','rejected','type','acceptSelectedSuggestions','containsRangeInObject','substr','_suggestionFactory','TrackChangesEditing','item','getItems','getMultiRangeId','default','formatInline:chain','removeClass','_trackFormatChanges','authorName','insertion:join','_adapter','enableReadOnlyMode','clear','fromCharCode','containerElement','createPositionBefore','enableCommand','author','getSuggestionCallback','discard','update:suggestion','$marker','elementEnd','rootName','getUser','bindElementToMarker','removeMarker','size','markerNameToElements','rethrowUnexpectedError','insertContent','formatInline:accept','insertion','fire','markBlockFormat','discardSuggestion','elementToElement','remove','suggestion-type','createRangeIn','_splitMarkerName','move','formatBlock:','_rangeIsInLocalUserInsertion','hasComments','newRange','push','containsRange','formatInline','_defaultCallbacks','some','data-suggestion','acceptAllSuggestions','addComment','isBefore','_setSuggestionData','isAfter','_refreshSuggestionsChain','options','createSelection','data','position','editingDowncast','open','addMarkerName','_handleNewSuggestionMarker','next','$textProxy','isDocumentOperation','deletion:accept','get','trackChanges','containsItem','fromRange','authoredAt','PendingActions','subType','dataToMarker','_joinWithAdjacentSuggestions','_saved','insert','addRange','hasCommentThread','formatBlock:discard','isSelectable','filter','editor','commentThread','markerToHighlight','createPositionAfter','trackChanges.trackFormatChanges','_cutOutSuggestionMarker','isObject','requires','notReady','markInsertion','execute','start','refresh','every','formatBlock','markMultiRangeDeletion','parent','getRanges','adapter','change','getFirstMarker','_customCallbacks','discardAllSuggestions','getCommentThread','nodeAfter','map','deletion:join','collaboration.channelId','suggestionUnloaded','getChanges','fetchCommentThread','createPositionAt','attributes','creator','_joinSuggestions','suggestionLoaded','addMarker:suggestion:formatBlock','has','removeMarker:suggestion:formatBlock','schema','PENDING_ACTION_SUGGESTION','getFirstRange','locale','editing','setSelection','_checkSuggestionCorrectness','ck-suggestion-marker-formatBlock','low','after','acceptSuggestion','isRemovable','isCollapsed','_registerDefaultCallbacks','join','getAllAdjacentSuggestions','forceDefaultExecution','howMany','suggestion:','getChangedMarkers','getMarkers','lowest','add','name','multi','backward','documentSelection','for','isIntersectingWithRange','track-changes-suggestion-data-mismatch','isEqual','upcast','document','addMarker','_mergeNestedSuggestions','applyOperation','high','deletion','length','getNearestSelectionRange','activeMarkers','consumable','_editor','ck-suggestion-marker-','suggestionChanged','delete','values','root','commands','accept','CommentsRepository','oldRange','_breakSuggestionMarker','_getAuthorFromId','_createSuggestion','setAttribute','highest','listenTo','config','then','set','buildSuggestion','updateSuggestion','resolve','external:','@external','formatBlock:accept','addCommentThread','Users','batch','getAncestors','removed','_commentsRepository','range','head','getShiftedBy','isAtEnd','addSuggestion','markers','$graveyard','insertion:','return','createRange','accepted','_suggestions','splitPosition','isOwn','stop','_isForcedDefaultExecutionBlock','dataReady','splice','isAtStart','init','ck-suggestion-marker--active','removeMarkers','showSuggestionHighlights','getSuggestion','_findSuggestions','getIntersection','toJSON','markerToData','deletion:discard','trackChanges.mergeNestedSuggestions','_removeSuggestion','writer','_setSuggestionRange','catch','skipNestingCheck','isInsideObject','isInContent','getLastMatchingPosition','widget','always','chain','markerName','_model','detach','isExternal','_getExternalAuthor','formatBlock:join','insertion:chain','ready','_addThreadToSuggestion','getSuggestions','insertion:discard','change:_saved','formatGroupId','differ'];(function(_0x1a7eff,_0x1e2f19){const _0x39bfe3=function(_0x1b19d8){while(--_0x1b19d8){_0x1a7eff['push'](_0x1a7eff['shift']());}};_0x39bfe3(++_0x1e2f19);}(_0x1e2f,0xd3));const _0x39bf=function(_0x1a7eff,_0x1e2f19){_0x1a7eff=_0x1a7eff-0x0;let _0x39bfe3=_0x1e2f[_0x1a7eff];return _0x39bfe3;};import{Plugin as _0x396b44,PendingActions as _0x1b6dd7}from'ckeditor5/src/core';import{LiveRange as _0x3524fe}from'ckeditor5/src/engine';import{CKEditorError as _0x417acb,uid as _0x3c0474,priorities as _0x414f91,logWarning as _0xd3afea}from'ckeditor5/src/utils';import{toWidget as _0x339949}from'ckeditor5/src/widget';import{Users as _0x1c8b4a,hashObject as _0x225d1f}from'ckeditor5-collaboration/src/collaboration-core';import _0x52b082 from'./commands/trackchangescommand';import _0x49f0e9 from'./commands/acceptsuggestioncommand';import _0x5d44fc from'./commands/discardsuggestioncommand';import _0xfd427e from'./commands/executeonallsuggestionscommand';import _0x2d8332 from'./commands/executeonselectedsuggestionscommand';import _0x287a7f from'./suggestion';import _0x4ed220 from'./suggestiondescriptionfactory';import _0x5927b3 from'./integrations/alignment';import _0x205f1b from'./integrations/basicstyles';import _0x2f208e from'./integrations/blockquote';import _0x34c41f from'./integrations/ckbox';import _0x9df967 from'./integrations/codeblock';import _0x37e3ab from'./integrations/comments';import _0x299036 from'./integrations/deletecommand';import _0x301f0c from'./integrations/documentlist';import _0x226d76 from'./integrations/entercommand';import _0x3da3e1 from'./integrations/findandreplace';import _0x2a9792 from'./integrations/font';import _0x56973b from'./integrations/formatpainter';import _0x4dad8c from'./integrations/heading';import _0x4e0a35 from'./integrations/highlight';import _0x3c5317 from'./integrations/horizontalline';import _0x4f3cf2 from'./integrations/htmlembed';import _0x49b748 from'./integrations/image';import _0x2bc9ca from'./integrations/imagereplace';import _0x2047e0 from'./integrations/importword';import _0x130e92 from'./integrations/indent';import _0x3c2607 from'./integrations/inputcommand';import _0x4006bb from'./integrations/link';import _0x59eb00 from'./integrations/list';import _0x488f7c from'./integrations/listproperties';import _0x4104a1 from'./integrations/mediaembed';import _0x5d6c5b from'./integrations/mention';import _0x1af2d9 from'./integrations/pagebreak';import _0x17509e from'./integrations/paragraph';import _0x239d83 from'./integrations/removeformat';import _0x572f9a from'./integrations/restrictededitingmode';import _0x5c54cf from'./integrations/shiftentercommand';import _0x346cea from'./integrations/standardeditingmode';import _0x3d6fa8 from'./integrations/style';import _0x172d0d from'./integrations/table';import _0xcca38d from'./integrations/tablemergesplit';import _0x26ebaa from'./integrations/tableheadings';import _0x5e4afe from'./integrations/tableclipboard';import _0x50655f from'./integrations/tablecolumnresize';import _0x21e367 from'./integrations/template';import _0x1ad717 from'./integrations/tableofcontents';import _0x5f06e8 from'./integrations/title';import _0xb7298d from'./integrations/undo';import{getTranslation as _0x3ef531}from'./utils/common-translations';import _0x152544 from'./integrations/tablecaption';import _0x149acf from'./integrations/documentlistproperties';import _0x474ec2 from'./integrations/tableproperties';export default class p extends _0x396b44{static get[_0x39bf('0x10f')](){return[_0x39bf('0x20'),_0x1c8b4a,_0x1b6dd7,_0x5927b3,_0x205f1b,_0x2f208e,_0x34c41f,_0x9df967,_0x37e3ab,_0x299036,_0x301f0c,_0x149acf,_0x226d76,_0x3da3e1,_0x2a9792,_0x56973b,_0x4dad8c,_0x4e0a35,_0x3c5317,_0x4f3cf2,_0x49b748,_0x2bc9ca,_0x2047e0,_0x130e92,_0x3c2607,_0x4006bb,_0x59eb00,_0x488f7c,_0x4104a1,_0x5d6c5b,_0x1af2d9,_0x17509e,_0x239d83,_0x572f9a,_0x5c54cf,_0x346cea,_0x3d6fa8,_0x172d0d,_0xcca38d,_0x26ebaa,_0x152544,_0x5e4afe,_0x50655f,_0x1ad717,_0x474ec2,_0x21e367,_0x5f06e8,_0xb7298d];}static get['pluginName'](){return _0x39bf('0xb2');}constructor(_0x6b86bf){function _0x22fa09(_0x3d8a73){return _0x3d8a73[_0x39bf('0x121')](_0x392306=>String[_0x39bf('0xbf')](_0x392306))[_0x39bf('0x13d')]('');}super(_0x6b86bf),this[_0x39bf('0x2a')](_0x39bf('0x16'),[]),this['on']('change:activeMarkers',(_0xb83866,_0x1954aa,_0x4593dc,_0x3fe321)=>{this[_0x39bf('0x61')][_0x39bf('0x11b')](()=>{for(const _0x228899 of[..._0x3fe321,..._0x4593dc])this[_0x39bf('0x61')][_0x39bf('0x3c')][_0x39bf('0x12d')](_0x228899)&&_0x6b86bf[_0x39bf('0x133')][_0x39bf('0x9b')](_0x228899);});}),this['_descriptionFactory']=new _0x4ed220(this[_0x39bf('0x108')]['model'][_0x39bf('0x12f')],this[_0x39bf('0x108')][_0x39bf('0x132')]),this[_0x39bf('0xbc')]=null,this['_suggestionFactory']=new Dt(this['editor']),this[_0x39bf('0x42')]=new Map(),this[_0x39bf('0x36')]=_0x6b86bf[_0x39bf('0x81')][_0x39bf('0xf8')]('CommentsRepository'),this[_0x39bf('0x8c')]=new Set(),this[_0x39bf('0x61')]=this['editor'][_0x39bf('0x98')],this[_0x39bf('0x7f')]=new WeakMap(),this[_0x39bf('0x46')]=!0x1,_0x6b86bf['config'][_0x39bf('0x89')](_0x39bf('0x10c'),_0x39bf('0xb6')),this[_0x39bf('0xb9')]=_0x6b86bf['config']['get'](_0x39bf('0x10c')),_0x6b86bf[_0x39bf('0x28')][_0x39bf('0x89')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x39bf('0x10')]=_0x6b86bf['config'][_0x39bf('0xf8')](_0x39bf('0x54')),this[_0x39bf('0x7e')]=new _0x52b082(_0x6b86bf,this['_enabledCommands']),this[_0x22fa09([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x22fa09([0x34,0x30,0x34,0x36,0x31,0x36,0x35,0x30]);}[_0x39bf('0x4a')](){const _0xcfc59=this[_0x39bf('0x108')];_0xcfc59[_0x39bf('0xa8')][_0x39bf('0x9')]('editingDowncast')[_0x39bf('0x10a')]({'model':_0x39bf('0x72'),'view':_0x41360d=>{const {id:_0x4a42dc,type:_0x1b0de7}=this[_0x39bf('0xda')](_0x41360d[_0x39bf('0x60')]),_0x4d0d25=[_0x39bf('0x92'),_0x39bf('0x19')+_0x1b0de7];let _0x4a6673=0xbb8;return this['activeMarkers'][_0x39bf('0x73')](_0x41360d[_0x39bf('0x60')])&&(_0x4d0d25[_0x39bf('0xe0')](_0x39bf('0x4b')),_0x4a6673=0xbc2),'deletion'==_0x1b0de7&&(_0x4a6673+=0x5),{'classes':_0x4d0d25,'attributes':{'data-suggestion':_0x4a42dc},'priority':_0x4a6673};}}),_0xcfc59[_0x39bf('0xa8')]['for'](_0x39bf('0x7c'))[_0x39bf('0x4')](_0x303ffc=>{_0x303ffc['on']('addMarker:suggestion',(_0x1d9d55,_0x4aea97,_0x1b8a10)=>{if(!_0x1b8a10[_0x39bf('0xec')][_0x39bf('0x4d')])return;const _0x21579a=_0x4aea97['item'];if(!_0x21579a)return;const _0x496ba3=_0x1b8a10[_0x39bf('0x8f')][_0x39bf('0x9e')](_0x21579a);_0xcfc59['model'][_0x39bf('0x12f')]['isObject'](_0x21579a)&&_0x496ba3&&!_0x496ba3[_0x39bf('0xa1')](_0x39bf('0x5d'))&&_0x496ba3['is'](_0x39bf('0xc0'))&&_0x339949(_0x496ba3,_0x1b8a10['writer']);},{'priority':_0x39bf('0x12')});}),_0xcfc59[_0x39bf('0xa8')]['for'](_0x39bf('0x7c'))[_0x39bf('0x10a')]({'model':_0x39bf('0x72'),'view':(_0xf46e7a,_0x36b859)=>{if(!_0x36b859['options'][_0x39bf('0x4d')])return null;const {type:_0x1cfd7f}=this[_0x39bf('0xda')](_0xf46e7a[_0x39bf('0x60')]);return{'classes':[_0x39bf('0x92'),'ck-suggestion-marker-'+_0x1cfd7f],'priority':0xbb8};}});const _0x8fc631=({showActiveMarkers:_0xba5280=!0x0}={})=>(_0x3b3a1b,_0x39b44c,_0x26f8c0)=>{if(!_0x39b44c[_0x39bf('0xb3')])return;if(_0x39b44c[_0x39bf('0xb3')]['is']('selection'))return void _0x26f8c0[_0x39bf('0x17')][_0x39bf('0x93')](_0x39b44c[_0x39bf('0xb3')],_0x3b3a1b[_0x39bf('0x5')]);const _0x25ffb1=_0x26f8c0[_0x39bf('0x8f')][_0x39bf('0x9e')](_0x39b44c[_0x39bf('0xb3')]);if(!(_0x39b44c[_0x39bf('0xb3')]['is']('element')&&_0xcfc59[_0x39bf('0x98')][_0x39bf('0x12f')]['isBlock'](_0x39b44c['item'])&&!_0x25ffb1[_0x39bf('0xa1')]('addHighlight')))return;const {id:_0x75f7e1}=this[_0x39bf('0xda')](_0x39b44c[_0x39bf('0x60')]);_0x26f8c0[_0x39bf('0x56')][_0x39bf('0x99')]([_0x39bf('0x92'),'ck-suggestion-marker-formatBlock'],_0x25ffb1),_0x26f8c0[_0x39bf('0x56')][_0x39bf('0x25')](_0x39bf('0xe5'),_0x75f7e1,_0x25ffb1),_0x26f8c0[_0x39bf('0x8f')][_0x39bf('0xcb')](_0x25ffb1,_0x39b44c['markerName']),_0xba5280&&(this['activeMarkers'][_0x39bf('0x73')](_0x39b44c['markerName'])?_0x26f8c0[_0x39bf('0x56')][_0x39bf('0x99')](_0x39bf('0x4b'),_0x25ffb1):_0x26f8c0[_0x39bf('0x56')][_0x39bf('0xb8')](_0x39bf('0x4b'),_0x25ffb1));for(const _0x6824b4 of _0xcfc59[_0x39bf('0x98')][_0x39bf('0xd9')](_0x39b44c['item'])[_0x39bf('0xb4')]())_0x26f8c0['consumable'][_0x39bf('0x93')](_0x6824b4,_0x3b3a1b[_0x39bf('0x5')]);_0x26f8c0[_0x39bf('0x17')][_0x39bf('0x93')](_0x39b44c[_0x39bf('0xb3')],_0x3b3a1b[_0x39bf('0x5')]);};_0xcfc59[_0x39bf('0xa8')][_0x39bf('0x9')](_0x39bf('0x7c'))[_0x39bf('0x4')](_0x2533df=>{_0x2533df['on'](_0x39bf('0x12c'),(_0x22f451,_0x4ab6d5,_0x5cfb78)=>{_0x5cfb78[_0x39bf('0xec')][_0x39bf('0x4d')]&&_0x8fc631({'showActiveMarkers':!0x1})(_0x22f451,_0x4ab6d5,_0x5cfb78);},{'priority':_0x39bf('0x26')});}),_0xcfc59['conversion']['for'](_0x39bf('0x7c'))[_0x39bf('0x52')]({'model':_0x39bf('0x72'),'view':(_0x5c48d0,_0x368bf6)=>_0x368bf6[_0x39bf('0xec')][_0x39bf('0x4d')]?null:{'group':'suggestion','name':_0x5c48d0[_0x39bf('0xb0')](0xb)}}),_0xcfc59['conversion']['for'](_0x39bf('0xd'))[_0x39bf('0xd6')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x85c485,{writer:_0x3ce64d})=>{let _0x1ed48e=_0x39bf('0x0')+_0x85c485[_0x39bf('0xa2')](_0x39bf('0xd8'))+':'+_0x85c485[_0x39bf('0xa2')]('id');return _0x85c485[_0x39bf('0xa2')](_0x39bf('0x80'))&&(_0x1ed48e+=':'+_0x85c485[_0x39bf('0xa2')](_0x39bf('0x80'))),_0x3ce64d['createElement'](_0x39bf('0xc7'),{'data-name':_0x1ed48e});}}),_0xcfc59['conversion'][_0x39bf('0x9')](_0x39bf('0xd'))[_0x39bf('0xff')]({'view':_0x39bf('0x72')}),_0xcfc59[_0x39bf('0xa8')][_0x39bf('0x9')](_0x39bf('0xf0'))[_0x39bf('0x4')](_0x1706d4=>{_0x1706d4['on']('addMarker:suggestion:formatBlock',_0x8fc631(),{'priority':_0x39bf('0x12')});}),_0xcfc59[_0x39bf('0xa8')]['for'](_0x39bf('0xf0'))[_0x39bf('0x4')](_0x48cd2b=>{_0x48cd2b['on'](_0x39bf('0x12e'),(_0x2d398f,_0x22ee0c,_0x586d70)=>{const _0x55e0d0=_0x586d70[_0x39bf('0x8f')][_0x39bf('0xce')](_0x22ee0c[_0x39bf('0x60')]);if(_0x55e0d0)for(const _0x4c6b69 of _0x55e0d0)_0x4c6b69['getCustomProperty'](_0x39bf('0x84'))||(_0x586d70[_0x39bf('0x56')][_0x39bf('0xb8')](['ck-suggestion-marker',_0x39bf('0x136'),_0x39bf('0x4b')],_0x4c6b69),_0x586d70[_0x39bf('0x56')][_0x39bf('0x7b')](_0x39bf('0xe5'),_0x4c6b69),_0x586d70['mapper']['unbindElementFromMarkerName'](_0x4c6b69,_0x22ee0c[_0x39bf('0x60')]));},{'priority':_0x39bf('0x12')});}),_0xcfc59[_0x39bf('0x98')][_0x39bf('0xe')][_0x39bf('0x70')](_0x3bf84a=>{let _0x232e31=!0x1;const _0x1c5cc9=Array['from'](_0xcfc59[_0x39bf('0x98')]['document']['differ'][_0x39bf('0x1')]()),_0x9b9f3b=new Set();for(const {name:_0x246ffb,data:_0x3d88e1}of _0x1c5cc9){const {group:_0x2d7ebb,type:_0xdfc098,id:_0x5c0f4c}=this[_0x39bf('0xda')](_0x246ffb);if(_0x39bf('0x72')!==_0x2d7ebb)continue;const _0x33874e=this[_0x39bf('0x42')][_0x39bf('0xf8')](_0x5c0f4c);if(null!=_0x3d88e1['newRange']){_0x39bf('0xe2')==_0xdfc098&&(_0x232e31=_0x232e31||Mt(_0x3d88e1['newRange'],_0x246ffb,_0x3bf84a,_0xcfc59['model'][_0x39bf('0x12f')]));if(_0x3d88e1['newRange'][_0x39bf('0x13b')]||_0x39bf('0x3d')==_0x3d88e1['newRange'][_0x39bf('0x1d')][_0x39bf('0xc9')]||_0x39bf('0x116')==_0xdfc098&&!Nt(_0x3d88e1[_0x39bf('0xdf')])||_0x39bf('0x13')==_0xdfc098&&!(!_t(_0x4d955f=_0x3d88e1[_0x39bf('0xdf')])&&!function(_0x1a6fb7){return _0x1a6fb7['start'][_0x39bf('0x118')]==_0x1a6fb7[_0x39bf('0x6f')][_0x39bf('0x83')]&&_0x1a6fb7[_0x39bf('0x113')][_0x39bf('0x3a')];}(_0x4d955f)))_0x3bf84a[_0x39bf('0xcc')](_0x246ffb),_0x232e31=!0x0;else{if(!_0x33874e||!_0x33874e[_0x39bf('0x5b')])continue;_0x9b9f3b[_0x39bf('0x4')](_0x33874e);}}}var _0x4d955f;return _0x9b9f3b['size']>0x0&&(_0x232e31=!!this[_0x39bf('0x100')](_0x9b9f3b)||_0x232e31),_0x232e31;}),_0xcfc59['model'][_0x39bf('0xe')][_0x39bf('0x70')](_0x1d2056=>{let _0x4e671a=!0x1;for(const _0x20744e of _0xcfc59[_0x39bf('0x98')][_0x39bf('0xe')][_0x39bf('0x6d')][_0x39bf('0x125')]()){if(_0x39bf('0x102')!=_0x20744e[_0x39bf('0xad')])continue;const _0x286a5e=_0x20744e[_0x39bf('0xef')][_0x39bf('0x39')](_0x20744e[_0x39bf('0x14')]);if(_0x286a5e[_0x39bf('0x3a')])for(const _0x115cf7 of this[_0x39bf('0x42')][_0x39bf('0x1c')]()){if(_0x115cf7[_0x39bf('0x85')]||!_0x115cf7['isInContent'])continue;if(_0x39bf('0x116')!=_0x115cf7[_0x39bf('0xad')])continue;const _0x49d390=_0x115cf7[_0x39bf('0x131')]();if(_0x49d390[_0x39bf('0x113')][_0x39bf('0x118')]!=_0x49d390['end']['parent']&&_0x49d390[_0x39bf('0x6f')][_0x39bf('0xc')](_0x20744e[_0x39bf('0xef')])){const _0x11426f=_0xcfc59[_0x39bf('0x98')]['createRange'](_0x49d390['start'],_0x286a5e);_0x1d2056[_0x39bf('0xa5')](_0x115cf7[_0x39bf('0x11c')](),{'range':_0x11426f}),_0x4e671a=!0x0;}}}return _0x4e671a;}),_0xcfc59[_0x39bf('0x98')][_0x39bf('0x3c')]['on'](_0x39bf('0xc6'),(_0x4b9144,_0x2fb7e8,_0xe50f66)=>{if(null==_0xe50f66){const {id:_0x232d0e}=this[_0x39bf('0xda')](_0x2fb7e8[_0x39bf('0x5')]),_0x441ba8=this['_suggestions'][_0x39bf('0xf8')](_0x232d0e);_0x441ba8&&_0x441ba8[_0x39bf('0xf2')](_0x2fb7e8['name']);}}),_0xcfc59[_0x39bf('0x98')][_0x39bf('0xe')]['on']('change:data',()=>{const _0x57921c=Array[_0x39bf('0x75')](_0xcfc59['model'][_0x39bf('0xe')]['differ']['getChangedMarkers']())['filter'](_0x4d1071=>'suggestion'===this['_splitMarkerName'](_0x4d1071[_0x39bf('0x5')])['group']);if(0x0===_0x57921c['length'])return;_0x57921c[_0x39bf('0x82')]((_0x360f12,_0x1cac0d)=>{const _0x38d2e8=_0x360f12['data'][_0x39bf('0x21')],_0x76a38b=_0x1cac0d[_0x39bf('0xee')][_0x39bf('0x21')];return null===_0x38d2e8&&null===_0x76a38b?0x0:null===_0x38d2e8&&null!==_0x76a38b?-0x1:null!==_0x38d2e8&&null===_0x76a38b?0x1:_0x38d2e8['start'][_0x39bf('0xe8')](_0x76a38b[_0x39bf('0x113')])?-0x1:0x1;});const _0x365f1d=new Set(),_0x553604=new Set();for(const {name:_0x2066b9,data:_0x5e6154}of _0x57921c){const {id:_0x11c64d}=this[_0x39bf('0xda')](_0x2066b9);if(null===_0x5e6154[_0x39bf('0x21')]){const _0x5aa390=this[_0x39bf('0xf3')](_0x2066b9);_0x553604[_0x39bf('0x4')](_0x5aa390);}else{const _0x235239=this[_0x39bf('0x42')][_0x39bf('0xf8')](_0x11c64d);null!==_0x5e6154[_0x39bf('0xdf')]||_0x235239[_0x39bf('0x5b')]?(_0x365f1d[_0x39bf('0x4')](_0x235239[_0x39bf('0x38')]),_0x553604[_0x39bf('0x4')](_0x235239)):this[_0x39bf('0x55')](_0x235239);}}_0x553604[_0x39bf('0xcd')]>0x0&&this[_0x39bf('0xeb')](_0x553604);for(const _0x190f08 of _0x365f1d)this['fire'](_0x39bf('0x1a'),_0x190f08);}),_0xcfc59[_0x39bf('0x98')]['on'](_0x39bf('0x11'),(_0x36a7fe,_0x4233fe)=>{const _0x2aeb60=_0x4233fe[0x0];if(!this[_0x39bf('0x42')][_0x39bf('0xcd')])return;if(!_0x2aeb60[_0x39bf('0xf6')])return;if(_0x2aeb60['batch']['isUndo']||!_0x2aeb60[_0x39bf('0x33')]['isLocal'])return;let _0x59ec22,_0x197288;switch(_0x2aeb60[_0x39bf('0xad')]){case'insert':_0x59ec22=_0xcfc59[_0x39bf('0x98')][_0x39bf('0x127')](_0x2aeb60[_0x39bf('0xef')]),_0x197288=_0x59ec22[_0x39bf('0x39')](_0x2aeb60[_0x39bf('0x140')]);break;case _0x39bf('0x8b'):_0x59ec22=_0xcfc59[_0x39bf('0x98')][_0x39bf('0x127')](_0x2aeb60[_0x39bf('0x43')]),_0x197288=_0xcfc59['model'][_0x39bf('0x127')](_0x2aeb60['moveTargetPosition']);break;case _0x39bf('0xdb'):_0x59ec22=_0xcfc59[_0x39bf('0x98')][_0x39bf('0x127')](_0x2aeb60['targetPosition']),_0x197288=_0x59ec22[_0x39bf('0x39')](_0x2aeb60[_0x39bf('0x140')]);break;default:return;}const _0x1a0a26=_0xcfc59[_0x39bf('0x98')][_0x39bf('0x40')](_0x59ec22,_0x197288);_0xcfc59[_0x39bf('0x98')][_0x39bf('0x11b')](()=>{for(const {suggestion:_0x4cdd1b,meta:_0x5320b9}of this[_0x39bf('0x4f')](_0x1a0a26)){if(_0x4cdd1b['isMultiRange'])continue;if(_0x39bf('0xe2')==_0x4cdd1b['type'])continue;const _0x2068f0=_0x4cdd1b['data']&&_0x4cdd1b[_0x39bf('0xee')][_0x39bf('0xa0')];(_0x39bf('0x116')!=_0x4cdd1b[_0x39bf('0xad')]||'split'==_0x2aeb60[_0x39bf('0xad')]&&!_0x2068f0)&&(_0x5320b9[_0x39bf('0xaf')]||'insertion'==_0x4cdd1b[_0x39bf('0xad')]&&_0x5320b9[_0x39bf('0x44')]||_0x4cdd1b[_0x39bf('0x131')]()['containsRange'](_0x1a0a26)&&this['_breakSuggestionMarker'](_0x4cdd1b,_0x59ec22,_0x197288));}});},{'priority':_0x39bf('0x3')}),_0xcfc59[_0x39bf('0x98')]['on']('deleteContent',(_0x35f740,_0x96f150)=>{const _0x226ca8=_0x96f150[0x0],_0x24a2c9=_0x96f150[0x1];if(_0x24a2c9&&_0x24a2c9[_0x39bf('0x13f')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x39bf('0x7e')][_0x39bf('0x9d')])return;if(_0x226ca8[_0x39bf('0x13b')])return;const _0x16e10e=_0xcfc59[_0x39bf('0x98')][_0x39bf('0x12f')],{start:_0x22804d,end:_0x279a25}=_0x226ca8[_0x39bf('0x131')](),_0x300829=_0x22804d[_0x39bf('0x120')]&&_0x16e10e['isLimit'](_0x22804d[_0x39bf('0x120')])?null:_0x16e10e[_0x39bf('0x15')](_0x22804d,'forward'),_0x5c8202=_0x279a25[_0x39bf('0x83')]&&_0x16e10e[_0x39bf('0x86')](_0x279a25[_0x39bf('0x83')])?null:_0x16e10e[_0x39bf('0x15')](_0x279a25,_0x39bf('0x7')),_0x584c3f=_0xcfc59[_0x39bf('0x98')]['createRange'](_0x300829?_0x300829[_0x39bf('0x113')]:_0x22804d,_0x5c8202?_0x5c8202['end']:_0x279a25);_0xcfc59[_0x39bf('0x98')][_0x39bf('0x11b')](_0x5303bc=>{this[_0x39bf('0xa3')](_0x584c3f);const _0x274c66=_0xcfc59[_0x39bf('0x98')]['schema']['getNearestSelectionRange'](_0x584c3f[_0x39bf('0x113')]);_0x226ca8['is'](_0x39bf('0x8'))?_0x5303bc[_0x39bf('0x134')](_0x274c66):_0x226ca8[_0x39bf('0x76')](_0x274c66);}),_0x35f740['stop']();},{'priority':_0x414f91['normal']+0xa}),_0xcfc59[_0x39bf('0x98')]['on']('insertContent',(_0x42c302,_0x334bb8)=>{const _0x5d33bd=_0x334bb8[_0x334bb8[_0x39bf('0x14')]-0x1];_0x5d33bd&&_0x5d33bd[_0x39bf('0x13f')]||this[_0x39bf('0x46')]||this[_0x39bf('0x7e')][_0x39bf('0x9d')]&&(_0xcfc59['model'][_0x39bf('0x11b')](()=>{let _0x336153=_0xcfc59[_0x39bf('0x98')][_0x39bf('0xd0')](_0x334bb8[0x0],_0x334bb8[0x1],_0x334bb8[0x2],{'forceDefaultExecution':!0x0});if(!_0x336153)return;_0x42c302[_0x39bf('0x3f')]=_0x336153['clone']();const _0xe245f8=_0x336153[_0x39bf('0x6f')][_0x39bf('0x83')],_0x4eb6c4=_0xcfc59['model'][_0x39bf('0x12f')];_0xe245f8&&_0x4eb6c4['isBlock'](_0xe245f8)&&!_0x4eb6c4[_0x39bf('0x10e')](_0xe245f8)&&(_0x336153=_0xcfc59['model'][_0x39bf('0x40')](_0x336153[_0x39bf('0x113')],_0xcfc59[_0x39bf('0x98')][_0x39bf('0x127')](_0xe245f8,_0x39bf('0x6f')))),this[_0x39bf('0x111')](_0x336153);}),_0x42c302[_0x39bf('0x45')]());},{'priority':_0x39bf('0x12')}),this[_0x39bf('0x108')]['commands']['add'](_0x39bf('0xf9'),this[_0x39bf('0x7e')]),this[_0x39bf('0xc2')]('trackChanges');const _0x4a47b2=new _0x49f0e9(_0xcfc59,this[_0x39bf('0x42')]);_0xcfc59[_0x39bf('0x1e')][_0x39bf('0x4')](_0x39bf('0x139'),_0x4a47b2),this[_0x39bf('0xc2')](_0x39bf('0x139'));const _0x7b663a=new _0x5d44fc(_0xcfc59,this[_0x39bf('0x42')]);_0xcfc59[_0x39bf('0x1e')]['add'](_0x39bf('0xd5'),_0x7b663a),this[_0x39bf('0xc2')](_0x39bf('0xd5')),_0xcfc59[_0x39bf('0x1e')][_0x39bf('0x4')](_0x39bf('0xe6'),new _0xfd427e(_0xcfc59,_0x4a47b2,this[_0x39bf('0x42')])),this[_0x39bf('0xc2')](_0x39bf('0xe6')),_0xcfc59[_0x39bf('0x1e')][_0x39bf('0x4')]('discardAllSuggestions',new _0xfd427e(_0xcfc59,_0x7b663a,this['_suggestions'])),this[_0x39bf('0xc2')](_0x39bf('0x11e')),_0xcfc59[_0x39bf('0x1e')]['add'](_0x39bf('0xae'),new _0x2d8332(_0xcfc59,_0x4a47b2,this[_0x39bf('0x42')])),this[_0x39bf('0xc2')](_0x39bf('0xae')),_0xcfc59[_0x39bf('0x1e')][_0x39bf('0x4')]('discardSelectedSuggestions',new _0x2d8332(_0xcfc59,_0x7b663a,this[_0x39bf('0x42')])),this['enableCommand']('discardSelectedSuggestions');const _0x1f1cd2=_0xcfc59[_0x39bf('0x81')]['get'](_0x39bf('0x20'));this[_0x39bf('0x27')](_0x1f1cd2,_0x39bf('0xe7'),(_0x2c4726,{threadId:_0x33a1ff})=>{const _0x53963b=this[_0x39bf('0x42')][_0x39bf('0xf8')](_0x33a1ff);_0x53963b&&_0x53963b[_0x39bf('0x109')]&&0x1===_0x53963b[_0x39bf('0x109')][_0x39bf('0x14')]&&this['_updateSuggestionData'](_0x33a1ff,{'hasComments':!0x0});},{'priority':_0x39bf('0x137')}),this[_0x39bf('0x27')](_0x1f1cd2,_0x39bf('0x8d'),(_0x2f581b,{threadId:_0x2f6a02})=>{const _0x2ab913=this[_0x39bf('0x42')][_0x39bf('0xf8')](_0x2f6a02);_0x2ab913&&_0x2ab913[_0x39bf('0x109')]&&!_0x2ab913['commentThread'][_0x39bf('0x14')]&&this['_updateSuggestionData'](_0x2f6a02,{'hasComments':!0x1});},{'priority':_0x39bf('0x137')});}set[_0x39bf('0x11a')](_0x18768b){if(this[_0x39bf('0xbc')])throw new _0x417acb('track-changes-adapter-already-set',this);this[_0x39bf('0xbc')]=_0x18768b;}get['adapter'](){return this[_0x39bf('0xbc')];}[_0x39bf('0x69')]({skipNotAttached:_0x594919=!0x1,toJSON:_0x3b996e=!0x1}={}){const _0x54e1a7=[];for(const _0x1338e1 of this[_0x39bf('0x42')][_0x39bf('0x1c')]())_0x594919&&!_0x1338e1[_0x39bf('0x5b')]||_0x54e1a7[_0x39bf('0xe0')](_0x1338e1);return _0x3b996e?_0x54e1a7[_0x39bf('0x121')](_0x1da5c9=>_0x1da5c9[_0x39bf('0x51')]()):_0x54e1a7;}[_0x39bf('0x4e')](_0x50fa4f){const _0x2e2c85=this[_0x39bf('0x42')][_0x39bf('0xf8')](_0x50fa4f);if(!_0x2e2c85)throw new _0x417acb(_0x39bf('0x94'),this);return _0x2e2c85;}['hasSuggestion'](_0x3a2feb){return this[_0x39bf('0x42')][_0x39bf('0x12d')](_0x3a2feb);}['addSuggestionData'](_0x72b12d){const {authorId:_0x5af888,id:_0x19d3f0,attributes:_0x4a7a4d}=_0x72b12d,[_0x5a93e3,_0x4b6fc9]=_0x72b12d['type'][_0x39bf('0x8b')](':'),_0x350cc4=this[_0x39bf('0x42')][_0x39bf('0xf8')](_0x19d3f0)||this[_0x39bf('0x24')](_0x5a93e3,_0x4b6fc9,_0x19d3f0,_0x5af888,_0x4a7a4d);if(this[_0x39bf('0x68')](_0x350cc4),this['_checkSuggestionCorrectness'](_0x350cc4,_0x5a93e3,_0x4b6fc9||null,_0x5af888),_0x350cc4[_0x39bf('0x8e')]=_0x72b12d['createdAt'],_0x4a7a4d&&_0x4a7a4d['@external']){const _0x58929f=_0x4a7a4d[_0x39bf('0x2f')],_0x54452e=this[_0x39bf('0x64')](_0x58929f[_0x39bf('0xba')]);_0x350cc4[_0x39bf('0xfc')]=_0x58929f[_0x39bf('0x8e')],_0x350cc4[_0x39bf('0xc3')]=_0x54452e,_0x350cc4[_0x39bf('0x63')]=!0x0;}else _0x350cc4[_0x39bf('0xfc')]=_0x72b12d[_0x39bf('0x8e')];switch(_0x72b12d[_0x39bf('0xee')]&&(_0x350cc4[_0x39bf('0xee')]=_0x72b12d[_0x39bf('0xee')]),_0x72b12d[_0x39bf('0x128')]&&(_0x350cc4[_0x39bf('0x128')]=_0x72b12d[_0x39bf('0x128')]),this[_0x39bf('0xbc')]&&this[_0x39bf('0xbc')]['addSuggestion']||(_0x350cc4[_0x39bf('0x101')]=!0x0),this['_suggestionState'][_0x39bf('0xf8')](_0x350cc4)){case _0x39bf('0x110'):this[_0x39bf('0x7f')][_0x39bf('0x2a')](_0x350cc4,_0x39bf('0x47'));break;case _0x39bf('0xa4'):_0x350cc4[_0x39bf('0x5b')]?(this['_suggestionState'][_0x39bf('0x2a')](_0x350cc4,_0x39bf('0x67')),this[_0x39bf('0xd3')](_0x39bf('0x12b'),_0x350cc4)):this[_0x39bf('0x7f')]['set'](_0x350cc4,'removed');}return _0x350cc4;}[_0x39bf('0x139')](_0x3335ed){this[_0x39bf('0x13f')](()=>{this[_0x39bf('0x108')][_0x39bf('0x98')][_0x39bf('0x11b')](()=>{for(const _0x432529 of _0x3335ed[_0x39bf('0x13e')]())_0x432529[_0x39bf('0x1f')]();});});}[_0x39bf('0xd5')](_0x3def86){this[_0x39bf('0x13f')](()=>{this['editor'][_0x39bf('0x98')][_0x39bf('0x11b')](()=>{for(const _0x5c78d4 of _0x3def86[_0x39bf('0x13e')]())_0x5c78d4[_0x39bf('0xc5')]();});});}[_0x39bf('0xc2')](_0x16b4f7,_0xe70492){const _0x55425f=this[_0x39bf('0x108')][_0x39bf('0x1e')][_0x39bf('0xf8')](_0x16b4f7);if(!_0x55425f)throw new _0x417acb('track-changes-command-not-found',this,{'commandName':_0x16b4f7});this[_0x39bf('0x8c')]['add'](_0x55425f),_0xe70492&&_0x55425f['on'](_0x39bf('0x112'),(_0x34a957,_0x4a563e)=>{this[_0x39bf('0x7e')][_0x39bf('0x9d')]&&(this['_isForcedDefaultExecutionBlock']||_0x4a563e['length']>0x0&&_0x4a563e[_0x4a563e[_0x39bf('0x14')]-0x1]&&_0x4a563e[_0x4a563e[_0x39bf('0x14')]-0x1][_0x39bf('0x13f')]||(_0xe70492((..._0xe69016)=>_0x55425f['execute'](..._0xe69016,{'forceDefaultExecution':!0x0}),..._0x4a563e),_0x34a957['stop']()));},{'priority':_0x39bf('0x12')});}['forceDefaultExecution'](_0x590bb4){let _0x10dc0e,_0x3f1272;const _0x87f77b=this[_0x39bf('0x46')];this[_0x39bf('0x46')]=!0x0;try{_0x10dc0e=_0x590bb4();}catch(_0x3e2c3b){_0x3f1272=_0x3e2c3b;}return _0x87f77b||(this[_0x39bf('0x46')]=!0x1),_0x3f1272&&_0x417acb[_0x39bf('0xcf')](_0x3f1272,this),_0x10dc0e;}[_0x39bf('0x111')](_0x55d6d4,_0x2dfcb4=null,_0x588510={}){if(_0x55d6d4['isCollapsed'])return null;const _0x536c49=this[_0x39bf('0x108')]['plugins'][_0x39bf('0xf8')]('Users')['me'];for(const {suggestion:_0x15aadd,meta:_0x1773c8}of this[_0x39bf('0x4f')](_0x55d6d4,'insertion'))if(_0x1773c8[_0x39bf('0x44')]){if(!_0x1773c8[_0x39bf('0xa9')]){if(!this['_mergeNestedSuggestions']&&_0x1773c8[_0x39bf('0xaf')])continue;return _0x15aadd;}if(_0x2dfcb4==_0x15aadd[_0x39bf('0xfe')]){const _0x2a387f=_0x15aadd['getFirstRange']();return _0x2a387f[_0x39bf('0x113')][_0x39bf('0xc')](_0x55d6d4[_0x39bf('0x6f')])?this[_0x39bf('0x57')](_0x15aadd,this[_0x39bf('0x61')][_0x39bf('0x40')](_0x55d6d4[_0x39bf('0x113')],_0x2a387f[_0x39bf('0x6f')])):this[_0x39bf('0x57')](_0x15aadd,this[_0x39bf('0x61')]['createRange'](_0x2a387f[_0x39bf('0x113')],_0x55d6d4[_0x39bf('0x6f')])),_0x15aadd;}}const _0x55ac06=_0x3c0474(),_0x16fb2d=_0x536c49['id'],_0x201cc4=_0x2dfcb4?_0x39bf('0x3e')+_0x2dfcb4:'insertion',_0x1a2e7b=this[_0x39bf('0xe9')]({'id':_0x55ac06,'type':_0x201cc4,'createdAt':new Date(),'authorId':_0x16fb2d,'attributes':_0x588510});return this[_0x39bf('0x74')](_0x201cc4,_0x55ac06,_0x16fb2d,_0x55d6d4),_0x1a2e7b;}['markMultiRangeInsertion'](_0x538f2d,_0x3d4945=_0x39bf('0x6'),_0x3fb02d={}){const _0xe1b238=this[_0x39bf('0x108')][_0x39bf('0x81')][_0x39bf('0xf8')](_0x39bf('0x32'))['me'],_0x2f9d7d=this['_suggestionFactory'][_0x39bf('0xc4')](_0x39bf('0xd2'),_0x3d4945,'join');for(const _0x2e1064 of this[_0x39bf('0x69')]())if(_0x2e1064[_0x39bf('0xc3')]['id']==_0xe1b238['id']&&_0x39bf('0xd2')==_0x2e1064['type']&&_0x2e1064[_0x39bf('0xfe')]==_0x3d4945&&(_0x2f9d7d(_0x2e1064[_0x39bf('0x119')](),_0x538f2d)||_0x2f9d7d(_0x538f2d,_0x2e1064[_0x39bf('0x119')]()))){for(const _0x12f09c of _0x538f2d)_0x2e1064[_0x39bf('0x103')](_0x12f09c);return _0x2e1064;}if(this[_0x39bf('0x10')])for(const _0x2cf58d of _0x538f2d)for(const {suggestion:_0x1f1926,meta:_0x4c7ae5}of this[_0x39bf('0x4f')](_0x2cf58d,_0x39bf('0xd2'))){if(!_0x4c7ae5['isOwn'])continue;let _0x5adb83=!0x0;for(const _0x238c4 of _0x1f1926['getRanges']())for(const _0x50d678 of _0x538f2d)if(!_0x238c4[_0x39bf('0xe1')](_0x50d678)){_0x5adb83=!0x1;break;}if(_0x5adb83)return _0x1f1926;}const _0x1cc0fc=_0x3c0474(),_0x45eaf1=_0xe1b238['id'],_0xa7694f=_0x39bf('0x3e')+_0x3d4945,_0x20892f=this[_0x39bf('0xe9')]({'id':_0x1cc0fc,'type':_0xa7694f,'createdAt':new Date(),'authorId':_0x45eaf1,'attributes':_0x3fb02d});for(const _0x3685a9 of _0x538f2d)this[_0x39bf('0x74')](_0xa7694f,_0x1cc0fc,_0x45eaf1,_0x3685a9,_0x287a7f[_0x39bf('0xb5')]());return _0x20892f;}['markInlineFormat'](_0xefc682,_0x5b343c,_0x832a32=null,_0x263b41={}){if(_0x832a32=_0x832a32||$t(_0x5b343c),_0xefc682[_0x39bf('0x13b')])return null;if(_0x39bf('0x8a')===this[_0x39bf('0xb9')]){const _0x5ed759=this['_suggestionFactory'][_0x39bf('0xc4')](_0x39bf('0xe2'),_0x832a32,_0x39bf('0x1f'));return this[_0x39bf('0x13f')](()=>_0x5ed759([_0xefc682],_0x5b343c,_0x263b41)),null;}const _0x23b7e7=this[_0x39bf('0x108')][_0x39bf('0x81')]['get']('Users')['me'],_0x4cc536=[];if('always'!==this[_0x39bf('0xb9')])for(const {suggestion:_0x48a206,meta:_0x46aa79}of this[_0x39bf('0x4f')](_0xefc682,_0x39bf('0xd2')))_0x46aa79[_0x39bf('0x44')]&&!_0x46aa79[_0x39bf('0x5a')]&&_0x4cc536['push'](..._0x48a206[_0x39bf('0x119')]());const _0x3b259f=function(_0xcca1e0,_0x45eaa0){const _0x1c7ba8=[];for(const _0x49699e of _0x45eaa0){const _0x4c0f85=_0xcca1e0[_0x39bf('0x50')](_0x49699e);_0x4c0f85&&_0x1c7ba8[_0x39bf('0xe0')](_0x4c0f85);}return _0x1c7ba8;}(_0xefc682,_0x4cc536),_0x1dd5e2=function(_0x4a6565,_0x2cb201){const _0xc44d97=[_0x4a6565];for(const _0x1986b3 of _0x2cb201){let _0x314fbf=0x0;for(;_0x314fbf<_0xc44d97[_0x39bf('0x14')];){const _0x1bab77=_0xc44d97[_0x314fbf][_0x39bf('0x79')](_0x1986b3);_0xc44d97[_0x39bf('0x48')](_0x314fbf,0x1,..._0x1bab77),_0x314fbf+=_0x1bab77[_0x39bf('0x14')];}}return _0xc44d97;}(_0xefc682,_0x4cc536);_0x3b259f[_0x39bf('0x14')]&&this['_model'][_0x39bf('0x11b')](()=>{for(const _0x3185d9 of _0x3b259f){const _0x310a37=this[_0x39bf('0xb1')][_0x39bf('0xc4')](_0x39bf('0xe2'),_0x832a32,_0x39bf('0x1f'));this[_0x39bf('0x13f')](()=>_0x310a37([_0x3185d9],_0x5b343c,_0x263b41));}});for(const _0x44d598 of _0x1dd5e2){let _0x216b19=null,_0x59af01=_0x44d598['start'],_0x1ca63a=_0x44d598['end'];for(const {suggestion:_0x2fa2c6,meta:_0x438e7b}of this[_0x39bf('0x4f')](_0x44d598,'formatInline')){if(!_0x438e7b[_0x39bf('0x44')])continue;if(_0x2fa2c6[_0x39bf('0xfe')]!=_0x832a32)continue;const _0x2d13e6=_0x2fa2c6[_0x39bf('0x131')]();if(_0x2d13e6['containsRange'](_0x44d598,!0x0))return null;_0x59af01=_0x59af01[_0x39bf('0xe8')](_0x2d13e6[_0x39bf('0x113')])?_0x59af01:_0x2d13e6['start'],_0x1ca63a=_0x1ca63a[_0x39bf('0xea')](_0x2d13e6[_0x39bf('0x6f')])?_0x1ca63a:_0x2d13e6['end'],_0x216b19?_0x2d13e6['start'][_0x39bf('0xe8')](_0x216b19[_0x39bf('0x131')]()[_0x39bf('0x113')])?(_0x216b19[_0x39bf('0x4c')](),_0x216b19=_0x2fa2c6):_0x2fa2c6[_0x39bf('0x4c')]():_0x216b19=_0x2fa2c6;}const _0x2256b4=this['_model'][_0x39bf('0x40')](_0x59af01,_0x1ca63a);if(_0x216b19)this['_setSuggestionRange'](_0x216b19,_0x2256b4);else{const _0x2321fe=_0x3c0474(),_0x41a0cc=_0x23b7e7['id'];this[_0x39bf('0xe9')]({'id':_0x2321fe,'type':_0x39bf('0xa7')+_0x832a32,'data':_0x5b343c,'createdAt':new Date(),'authorId':_0x41a0cc,'attributes':_0x263b41}),this[_0x39bf('0x74')]('formatInline:'+_0x832a32,_0x2321fe,_0x41a0cc,_0x2256b4);}}return null;}[_0x39bf('0xd4')](_0x102452,_0x21c86f,_0x4f3b53=[],_0x2be622=null,_0x19bfcc={}){_0x21c86f[_0x39bf('0x6c')]||(_0x21c86f[_0x39bf('0x6c')]=_0x21c86f[_0x39bf('0x96')]),_0x21c86f[_0x39bf('0xa0')]=_0x102452['is'](_0x39bf('0x37')),_0x2be622=_0x2be622||$t(_0x21c86f);const _0x55a965=_0x4f3b53[_0x39bf('0x121')](_0xb8f6f6=>Rt(_0xb8f6f6,this[_0x39bf('0x61')])),_0x468bb9=_0x102452['is'](_0x39bf('0x37'))?_0x102452:Rt(_0x102452,this[_0x39bf('0x61')]);if('never'===this[_0x39bf('0xb9')]){const _0x40fecb=this['_suggestionFactory'][_0x39bf('0xc4')](_0x39bf('0x116'),_0x2be622,'accept');return this['forceDefaultExecution'](()=>_0x40fecb([_0x468bb9],_0x21c86f,_0x19bfcc)),null;}_0x55a965[_0x39bf('0xe0')](_0x468bb9);let _0x2d91c4=!0x0;for(const _0x3edc40 of _0x55a965)if(!this['_rangeIsInLocalUserInsertion'](_0x3edc40)){_0x2d91c4=!0x1;break;}if(_0x2d91c4&&'always'!==this[_0x39bf('0xb9')]){const _0x7daa60=this[_0x39bf('0xb1')][_0x39bf('0xc4')](_0x39bf('0x116'),_0x2be622,_0x39bf('0x1f'));return this['forceDefaultExecution'](()=>_0x7daa60([_0x468bb9],_0x21c86f,_0x19bfcc)),null;}let _0xc3a3e3=null,_0x4fd96f=_0x468bb9[_0x39bf('0x113')],_0x2c61d7=_0x468bb9[_0x39bf('0x6f')];for(const {suggestion:_0x2d936e,meta:_0x487096}of this['_findSuggestions'](_0x468bb9,_0x39bf('0x116'))){if(!_0x487096[_0x39bf('0x44')]||_0x487096[_0x39bf('0xa9')]||_0x487096[_0x39bf('0xaf')]||_0x487096[_0x39bf('0x5a')])continue;if(_0x2d936e[_0x39bf('0xee')]['formatGroupId']!=_0x21c86f[_0x39bf('0x6c')])continue;const _0x54642c=_0x2d936e[_0x39bf('0x131')]();if(_0x2d936e[_0x39bf('0xfe')]==_0x2be622){if(_0x54642c[_0x39bf('0xe1')](_0x468bb9,!0x0))return null;_0x4fd96f=_0x4fd96f['isBefore'](_0x54642c[_0x39bf('0x113')])?_0x4fd96f:_0x54642c[_0x39bf('0x113')],_0x2c61d7=_0x2c61d7[_0x39bf('0xea')](_0x54642c['end'])?_0x2c61d7:_0x54642c[_0x39bf('0x6f')],_0xc3a3e3?_0x54642c[_0x39bf('0x113')][_0x39bf('0xe8')](_0xc3a3e3['getFirstRange']()[_0x39bf('0x113')])?(_0xc3a3e3['removeMarkers'](),_0xc3a3e3=_0x2d936e):_0x2d936e[_0x39bf('0x4c')]():_0xc3a3e3=_0x2d936e;}else{const _0x41dd2a=_0x468bb9['getIntersection'](_0x54642c);this[_0x39bf('0x10d')](_0x2d936e,_0x41dd2a);}}const _0x86fe95=this[_0x39bf('0x108')][_0x39bf('0x81')][_0x39bf('0xf8')](_0x39bf('0x32'))['me'],_0x200ba5=_0x3c0474(),_0x53a51b=_0x86fe95['id'];if(_0xc3a3e3)return this[_0x39bf('0x57')](_0xc3a3e3,this['_model'][_0x39bf('0x40')](_0x4fd96f,_0x2c61d7)),_0xc3a3e3;{const _0x45a314=this[_0x39bf('0xe9')]({'id':_0x200ba5,'type':_0x39bf('0xdc')+_0x2be622,'data':_0x21c86f,'createdAt':new Date(),'authorId':_0x53a51b,'attributes':_0x19bfcc});return this[_0x39bf('0x74')](_0x39bf('0xdc')+_0x2be622,_0x200ba5,_0x53a51b,this['_model'][_0x39bf('0x40')](_0x4fd96f,_0x2c61d7)),_0x45a314;}}[_0x39bf('0x9a')](_0x928edd,_0x55d463,_0x39ba9d=[],_0x42f2f9=null,_0x2a06d9={}){_0x55d463['formatGroupId']||(_0x55d463['formatGroupId']=_0x55d463[_0x39bf('0x96')]);const _0xf8f11b=_0x928edd[0x0];_0x55d463[_0x39bf('0xa0')]=_0xf8f11b['is'](_0x39bf('0x37')),_0x42f2f9=_0x42f2f9||$t(_0x55d463);const _0x12d3a1=_0x39ba9d[_0x39bf('0x121')](_0x3a12ea=>Rt(_0x3a12ea,this[_0x39bf('0x61')])),_0x5e3251=_0xf8f11b['is']('range')?_0x928edd:_0x928edd[_0x39bf('0x121')](_0x1a01ee=>Rt(_0x1a01ee,this['_model']));if(_0x39bf('0x8a')===this[_0x39bf('0xb9')]){const _0x5f0777=this['_suggestionFactory'][_0x39bf('0xc4')]('formatBlock',_0x42f2f9,_0x39bf('0x1f'));return this[_0x39bf('0x13f')](()=>_0x5f0777(_0x5e3251,_0x55d463,_0x2a06d9)),null;}_0x12d3a1['push'](..._0x5e3251);let _0x205641=!0x0;for(const _0x2bd36b of _0x12d3a1)if(!this['_rangeIsInLocalUserInsertion'](_0x2bd36b)){_0x205641=!0x1;break;}if(_0x205641&&_0x39bf('0x5e')!==this[_0x39bf('0xb9')]){const _0x43ddab=this[_0x39bf('0xb1')][_0x39bf('0xc4')]('formatBlock',_0x42f2f9,_0x39bf('0x1f'));return this[_0x39bf('0x13f')](()=>_0x43ddab(_0x5e3251,_0x55d463,_0x2a06d9)),null;}const _0x3c81a4=this['editor'][_0x39bf('0x81')][_0x39bf('0xf8')](_0x39bf('0x32'))['me'];for(const _0x19bafe of this['getSuggestions']()){if(_0x19bafe[_0x39bf('0xc3')]['id']!=_0x3c81a4['id'])continue;if(_0x39bf('0x116')!=_0x19bafe[_0x39bf('0xad')]||_0x19bafe[_0x39bf('0xee')][_0x39bf('0x6c')]!=_0x55d463[_0x39bf('0x6c')])continue;const _0x38d1c4=_0x19bafe['subType']==_0x42f2f9;for(let _0x58779e=0x0;_0x58779e<_0x5e3251[_0x39bf('0x14')];_0x58779e++){const _0x338ea2=_0x5e3251[_0x58779e];for(const _0x275873 of _0x19bafe[_0x39bf('0x2')]()){const _0xb5de22=_0x275873['getRange']();if(_0x338ea2[_0x39bf('0xc')](_0xb5de22)){_0x38d1c4?(_0x5e3251['splice'](_0x58779e,0x1),_0x58779e--):_0x19bafe[_0x39bf('0xcc')](_0x275873[_0x39bf('0x5')]);break;}}}}if(0x0==_0x5e3251['length'])return null;const _0x39b2ac=this[_0x39bf('0xb1')][_0x39bf('0xc4')](_0x39bf('0x116'),_0x42f2f9,_0x39bf('0x13d'));for(const _0x39a7c3 of this['getSuggestions']())if(_0x39a7c3['author']['id']==_0x3c81a4['id']&&_0x39bf('0x116')==_0x39a7c3[_0x39bf('0xad')]&&_0x39a7c3[_0x39bf('0xee')][_0x39bf('0x6c')]==_0x55d463['formatGroupId']&&_0x39a7c3[_0x39bf('0xfe')]==_0x42f2f9&&(_0x39b2ac(_0x39a7c3[_0x39bf('0x119')](),_0x5e3251)||_0x39b2ac(_0x5e3251,_0x39a7c3[_0x39bf('0x119')]()))){for(const _0x4897ec of _0x5e3251)_0x39a7c3[_0x39bf('0x103')](_0x4897ec);return _0x39a7c3;}const _0x41bad9=_0x3c0474(),_0x3dcbd0=_0x3c81a4['id'],_0x23caf2='formatBlock:'+_0x42f2f9,_0x5c95c3=this['_setSuggestionData']({'id':_0x41bad9,'type':_0x23caf2,'data':_0x55d463,'createdAt':new Date(),'authorId':_0x3dcbd0,'attributes':_0x2a06d9});for(const _0x5192fb of _0x5e3251)this['_addSuggestionMarker'](_0x23caf2,_0x41bad9,_0x3dcbd0,_0x5192fb,_0x287a7f[_0x39bf('0xb5')]());return _0x5c95c3;}['markDeletion'](_0x18975a,_0x2ed419=null,_0x24f4e6={}){if(_0x18975a[_0x39bf('0x13b')])return null;const _0x37b8bd=this[_0x39bf('0x108')]['plugins'][_0x39bf('0xf8')](_0x39bf('0x32'))['me'],_0x54c395=new _0x3524fe(_0x18975a[_0x39bf('0x113')],_0x18975a['end']);for(const {suggestion:_0x3fd236,meta:_0x11ecbf}of this[_0x39bf('0x4f')](_0x54c395,_0x39bf('0xd2')))if(_0x11ecbf[_0x39bf('0x44')]&&!_0x11ecbf[_0x39bf('0xa9')]){if(_0x3fd236['isMultiRange']){const _0x43d819=_0x3fd236['getRanges']()['filter'](_0x4c10d0=>_0x39bf('0x3d')!=_0x4c10d0[_0x39bf('0x1d')][_0x39bf('0xc9')]);_0x43d819[_0x39bf('0x115')](_0x20b8c3=>_0x54c395[_0x39bf('0xe1')](_0x20b8c3,!0x0))&&_0x3fd236[_0x39bf('0xc5')]();if(_0x43d819[_0x39bf('0xe4')](_0x52db33=>_0x52db33[_0x39bf('0xe1')](_0x54c395,!0x0))){const _0x155115=this['_suggestionFactory'][_0x39bf('0xc4')](_0x39bf('0x13'),_0x2ed419,_0x39bf('0x1f'));return this[_0x39bf('0x13f')](()=>_0x155115([_0x54c395],null,_0x24f4e6)),null;}}else{const _0x5c56f3=_0x54c395[_0x39bf('0x50')](_0x3fd236[_0x39bf('0x131')]());null!==_0x5c56f3&&_0x3fd236[_0x39bf('0xaa')]([_0x5c56f3],null,_0x24f4e6);}}if(_0x54c395['detach'](),_0x54c395['isCollapsed']||_0x39bf('0x3d')==_0x54c395[_0x39bf('0x1d')]['rootName'])return null;let _0x45c45e=null,_0x5dae1e=_0x54c395[_0x39bf('0x113')],_0xe3fc00=_0x54c395[_0x39bf('0x6f')];for(const {suggestion:_0x13b736,meta:_0x35e372}of this[_0x39bf('0x4f')](_0x54c395,_0x39bf('0x13')))if(_0x35e372[_0x39bf('0x44')]){if(_0x13b736[_0x39bf('0x85')]&&this['_mergeNestedSuggestions']){let _0x3eca99=!0x0;for(const _0x347be7 of _0x13b736[_0x39bf('0x119')]()){if(_0x347be7[_0x39bf('0xe1')](_0x54c395,!0x0))return _0x13b736;_0x54c395[_0x39bf('0xe1')](_0x347be7)||(_0x3eca99=!0x1);}_0x3eca99&&_0x13b736[_0x39bf('0xc5')]();}else{const _0x268673=_0x13b736[_0x39bf('0x131')]();if(_0x268673[_0x39bf('0xe1')](_0x54c395,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x35e372[_0x39bf('0xaf')])continue;return _0x13b736;}_0x5dae1e=_0x5dae1e['isBefore'](_0x268673[_0x39bf('0x113')])?_0x5dae1e:_0x268673['start'],_0xe3fc00=_0xe3fc00[_0x39bf('0xea')](_0x268673[_0x39bf('0x6f')])?_0xe3fc00:_0x268673['end'],_0x45c45e?_0x268673[_0x39bf('0x113')][_0x39bf('0xe8')](_0x45c45e[_0x39bf('0x131')]()[_0x39bf('0x113')])?(_0x45c45e[_0x39bf('0x4c')](),_0x45c45e=_0x13b736):_0x13b736['removeMarkers']():_0x45c45e=_0x13b736;}}if(_0x45c45e)return this[_0x39bf('0x57')](_0x45c45e,this[_0x39bf('0x61')][_0x39bf('0x40')](_0x5dae1e,_0xe3fc00)),_0x45c45e;{const _0x56fdf2=_0x3c0474(),_0x4266bb=this[_0x39bf('0x61')][_0x39bf('0x40')](_0x5dae1e,_0xe3fc00),_0xa30515=_0x37b8bd['id'],_0x162142=_0x2ed419?'deletion:'+_0x2ed419:_0x39bf('0x13'),_0x434d5b=this['_setSuggestionData']({'id':_0x56fdf2,'type':_0x162142,'createdAt':new Date(),'authorId':_0xa30515,'attributes':_0x24f4e6});return this[_0x39bf('0x74')](_0x162142,_0x56fdf2,_0xa30515,_0x4266bb),_0x434d5b;}}[_0x39bf('0x117')](_0x1bf82e,_0x35fb1d=_0x39bf('0x6'),_0x5ef8af={}){const _0x2cd6c9=this[_0x39bf('0x108')][_0x39bf('0x81')][_0x39bf('0xf8')](_0x39bf('0x32'))['me'],_0x2affa3=_0x1bf82e[_0x39bf('0x121')](_0x1c53c7=>new _0x3524fe(_0x1c53c7[_0x39bf('0x113')],_0x1c53c7[_0x39bf('0x6f')])),_0x43bedb=new Set();for(const _0x108fa8 of _0x2affa3)for(const {suggestion:_0x479f0a,meta:_0x1e720b}of this[_0x39bf('0x4f')](_0x108fa8,_0x39bf('0xd2')))_0x1e720b[_0x39bf('0x44')]&&!_0x1e720b['isNextTo']&&_0x43bedb[_0x39bf('0x4')](_0x479f0a);for(const _0x432cf0 of _0x43bedb)if(_0x432cf0[_0x39bf('0x85')]){const _0x12660e=_0x432cf0[_0x39bf('0x119')]();(!_0x432cf0[_0x39bf('0x128')]||!_0x432cf0['attributes'][_0x39bf('0x59')])&&(_0x12660e[_0x39bf('0x115')](_0x28271a=>_0x2affa3[_0x39bf('0xe4')](_0x279af1=>_0x279af1['containsRange'](_0x28271a,!0x0)))&&_0x432cf0[_0x39bf('0xc5')]());if(_0x2affa3['every'](_0x82f305=>_0x12660e[_0x39bf('0xe4')](_0x5deba2=>_0x5deba2[_0x39bf('0xe1')](_0x82f305,!0x0)))){const _0x38ba2d=this[_0x39bf('0xb1')][_0x39bf('0xc4')](_0x39bf('0x13'),_0x35fb1d,_0x39bf('0x1f'));return this[_0x39bf('0x13f')](()=>_0x38ba2d(_0x1bf82e,null,_0x5ef8af)),null;}}else{const _0xe6dd73=_0x432cf0['getFirstRange']();_0x2affa3[_0x39bf('0xe4')](_0x34c549=>_0x34c549[_0x39bf('0xe1')](_0xe6dd73,!0x0))&&_0x432cf0['discard']();if(_0x2affa3[_0x39bf('0x115')](_0x9c5afa=>_0xe6dd73['containsRange'](_0x9c5afa,!0x0))){const _0x1be39d=this[_0x39bf('0xb1')][_0x39bf('0xc4')]('deletion',_0x35fb1d,_0x39bf('0x1f'));return this['forceDefaultExecution'](()=>_0x1be39d(_0x2affa3,null,_0x5ef8af)),null;}}const _0x187fb7=this[_0x39bf('0xb1')][_0x39bf('0xc4')](_0x39bf('0x13'),_0x35fb1d,_0x39bf('0x13d'));let _0x252901=null;for(const _0x35df92 of this[_0x39bf('0x69')]())if(_0x35df92['author']['id']==_0x2cd6c9['id']&&_0x35df92['isInContent']&&'deletion'==_0x35df92[_0x39bf('0xad')]&&_0x35df92[_0x39bf('0xfe')]==_0x35fb1d&&(_0x187fb7(_0x35df92[_0x39bf('0x119')](),_0x2affa3)||_0x187fb7(_0x2affa3,_0x35df92['getRanges']()))){if(_0x252901){if(_0x35df92[_0x39bf('0x109')]&&_0x35df92[_0x39bf('0x109')][_0x39bf('0x14')])continue;for(const _0x310913 of _0x35df92['getRanges']())_0x252901[_0x39bf('0xa')](_0x310913)||_0x252901[_0x39bf('0x103')](_0x310913);_0x35df92[_0x39bf('0x4c')]();}else{_0x252901=_0x35df92;for(const _0x56df84 of _0x2affa3)_0x35df92[_0x39bf('0xa')](_0x56df84)||_0x35df92[_0x39bf('0x103')](_0x56df84);}}if(_0x252901)return _0x252901;_0x43bedb[_0x39bf('0xbe')]();for(const _0x3d8953 of _0x2affa3)for(const {suggestion:_0x77b62,meta:_0x122741}of this['_findSuggestions'](_0x3d8953,_0x39bf('0x13')))_0x122741[_0x39bf('0x44')]&&_0x43bedb[_0x39bf('0x4')](_0x77b62);for(const _0x386ec7 of _0x43bedb){const _0x145ae8=_0x386ec7[_0x39bf('0x119')]();if(!_0x5ef8af||!_0x5ef8af[_0x39bf('0x59')]){if(_0x2affa3[_0x39bf('0x115')](_0x36f621=>_0x145ae8[_0x39bf('0xe4')](_0x528895=>_0x528895[_0x39bf('0xe1')](_0x36f621,!0x0))))return _0x386ec7;}(!_0x386ec7[_0x39bf('0x128')]||!_0x386ec7[_0x39bf('0x128')][_0x39bf('0x59')])&&(_0x145ae8[_0x39bf('0x115')](_0x44e6d9=>_0x2affa3[_0x39bf('0xe4')](_0x47e745=>_0x47e745[_0x39bf('0xe1')](_0x44e6d9,!0x0)))&&_0x386ec7[_0x39bf('0xc5')]());}const _0x553b36=_0x3c0474(),_0x3a93ec=_0x2cd6c9['id'],_0x27c0e1=_0x39bf('0x9c')+_0x35fb1d,_0x25e206=this[_0x39bf('0xe9')]({'id':_0x553b36,'type':_0x27c0e1,'createdAt':new Date(),'authorId':_0x3a93ec,'attributes':_0x5ef8af});for(const _0x4da9c7 of _0x2affa3)_0x4da9c7[_0x39bf('0x62')](),_0x4da9c7[_0x39bf('0x13b')]||_0x39bf('0x3d')==_0x4da9c7['root'][_0x39bf('0xc9')]||this[_0x39bf('0x74')](_0x27c0e1,_0x553b36,_0x3a93ec,_0x4da9c7,_0x287a7f[_0x39bf('0xb5')]());return _0x25e206;}[_0x39bf('0x57')](_0x4c0627,_0x4dde2a){const _0x289091=_0x4c0627['getFirstMarker']();this[_0x39bf('0x61')][_0x39bf('0x11b')](_0x410ae5=>{_0x410ae5[_0x39bf('0xa5')](_0x289091,{'range':_0x4dde2a});});}[_0x39bf('0x68')](_0x4e45f5){const _0x2918b3=_0x4e45f5['id'],_0x43bc95=this[_0x39bf('0x108')]['config'][_0x39bf('0xf8')](_0x39bf('0x123'));this[_0x39bf('0x36')][_0x39bf('0x104')](_0x2918b3)||this[_0x39bf('0x36')][_0x39bf('0x31')]({'channelId':_0x43bc95,'threadId':_0x2918b3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x144ce0=this[_0x39bf('0x36')][_0x39bf('0x11f')](_0x2918b3);_0x144ce0['unbind'](_0x39bf('0x13a')),_0x144ce0[_0x39bf('0x13a')]=!0x1,_0x4e45f5[_0x39bf('0x109')]=_0x144ce0;}[_0x39bf('0x135')](_0x15c30f,_0x2ab3cc,_0x1a3b88,_0x59710f){if(_0x15c30f[_0x39bf('0xad')]!=_0x2ab3cc||_0x15c30f[_0x39bf('0xfe')]!=_0x1a3b88||_0x15c30f[_0x39bf('0x129')]['id']!=_0x59710f)throw this['editor'][_0x39bf('0xbd')](_0x39bf('0xb')),new _0x417acb(_0x39bf('0xb'),this);}[_0x39bf('0x10d')](_0x3c196c,_0x77775c){const _0x513653=_0x3c196c[_0x39bf('0x131')]();if(_0x77775c['isEqual'](_0x513653))_0x3c196c[_0x39bf('0x4c')]();else{if(_0x513653[_0x39bf('0xe1')](_0x77775c)){const _0x2f6f38=this[_0x39bf('0x61')]['createPositionAt'](_0x77775c[_0x39bf('0x113')][_0x39bf('0x83')],_0x39bf('0x6f'));this['_setSuggestionRange'](_0x3c196c,this[_0x39bf('0x61')][_0x39bf('0x40')](_0x513653[_0x39bf('0x113')],_0x2f6f38));const _0x45ed60=_0x3c0474(),_0xaf4f5a=_0x3c196c['creator']['id'],_0x129b90=_0x3c196c[_0x39bf('0xad')]+':'+_0x3c196c[_0x39bf('0xfe')];this[_0x39bf('0xe9')]({'id':_0x45ed60,'type':_0x129b90,'createdAt':new Date(),'authorId':_0xaf4f5a,'data':_0x3c196c['data'],'attributes':_0x3c196c[_0x39bf('0x128')]});const _0x2efd6a=this[_0x39bf('0x61')][_0x39bf('0x127')](_0x77775c['end'][_0x39bf('0x118')],'after'),_0x9717f1=this[_0x39bf('0x61')][_0x39bf('0x40')](_0x2efd6a,_0x513653[_0x39bf('0x6f')]);this[_0x39bf('0x74')](_0x129b90,_0x45ed60,_0xaf4f5a,_0x9717f1);}else{if(_0x513653[_0x39bf('0x97')](_0x77775c['start'])){const _0x4d0753=this[_0x39bf('0x61')][_0x39bf('0x127')](_0x77775c[_0x39bf('0x113')][_0x39bf('0x83')],_0x39bf('0x6f'));this['_setSuggestionRange'](_0x3c196c,this[_0x39bf('0x61')][_0x39bf('0x40')](_0x513653[_0x39bf('0x113')],_0x4d0753));}else{const _0x504437=this['_model'][_0x39bf('0x127')](_0x77775c[_0x39bf('0x6f')][_0x39bf('0x118')],_0x39bf('0x138'));this[_0x39bf('0x57')](_0x3c196c,this[_0x39bf('0x61')][_0x39bf('0x40')](_0x504437,_0x513653[_0x39bf('0x6f')]));}}}}[_0x39bf('0xdd')](_0x1a03cb){for(const {suggestion:_0x22a727,meta:_0x4042da}of this[_0x39bf('0x4f')](_0x1a03cb,'insertion')){if(!_0x4042da['isOwn'])continue;const _0x26a9ac=_0x22a727[_0x39bf('0x119')]();for(const _0xa67708 of _0x26a9ac)if(!_0x1a03cb[_0x39bf('0x79')](_0xa67708)[_0x39bf('0x14')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d0d9e){const _0x3ae8d5=this[_0x39bf('0x108')]['plugins'][_0x39bf('0xf8')](_0x39bf('0x32'))[_0x39bf('0xca')](_0x1d0d9e);if(!_0x3ae8d5)throw new _0x417acb(_0x39bf('0x88'),this);return _0x3ae8d5;}[_0x39bf('0x64')](_0xa4cd66){const _0x1f0b1f=this[_0x39bf('0x108')][_0x39bf('0x81')][_0x39bf('0xf8')]('Users'),_0x25bd41=_0x225d1f(_0x39bf('0x2e')+_0xa4cd66),_0x1e68c6=_0x1f0b1f[_0x39bf('0xca')](_0x25bd41);return _0x1e68c6||_0x1f0b1f['addUser']({'id':_0x25bd41,'name':_0xa4cd66});}['_createSuggestion'](_0x2ca9a8,_0x25acfa,_0xa5454,_0x4e107b,_0x4b36cd){const _0x39c0a4=this[_0x39bf('0x23')](_0x4e107b),_0xe46cbc=this[_0x39bf('0xb1')][_0x39bf('0x2b')](_0x2ca9a8,_0x25acfa,_0xa5454,_0x39c0a4,_0x4b36cd,_0x5af087=>this[_0x39bf('0x90')](_0xa5454,{'attributes':_0x5af087}));return this[_0x39bf('0x27')](_0xe46cbc,_0x39bf('0x1f'),()=>{this[_0x39bf('0x90')](_0xa5454,{'state':_0x39bf('0x41')});},{'priority':'high'}),this[_0x39bf('0x27')](_0xe46cbc,_0x39bf('0xc5'),()=>{this[_0x39bf('0x90')](_0xa5454,{'state':_0x39bf('0xac')});},{'priority':_0x39bf('0x12')}),this['_suggestions'][_0x39bf('0x2a')](_0xa5454,_0xe46cbc),this[_0x39bf('0x7f')][_0x39bf('0x2a')](_0xe46cbc,_0x39bf('0x110')),_0xe46cbc;}[_0x39bf('0xda')](_0x3143d0){const _0x17b98c=_0x3143d0[_0x39bf('0x8b')](':');return{'group':_0x17b98c[0x0],'type':_0x17b98c[0x1],'subType':_0x17b98c[_0x39bf('0x14')]>=0x5?_0x17b98c[0x2]:null,'id':_0x17b98c[_0x39bf('0x14')]<0x5?_0x17b98c[0x2]:_0x17b98c[0x3],'authorId':_0x17b98c['length']<0x5?_0x17b98c[0x3]:_0x17b98c[0x4],'markerCount':0x6==_0x17b98c['length']?_0x17b98c[0x5]:null};}[_0x39bf('0x22')](_0x20dcf1,_0x4e76bd,_0x1cbd57){const _0x84c6e4=_0x20dcf1[_0x39bf('0x131')](),_0xf0b537=_0x84c6e4[_0x39bf('0x113')],_0x35b76f=_0x84c6e4[_0x39bf('0x6f')];this[_0x39bf('0x57')](_0x20dcf1,this[_0x39bf('0x61')][_0x39bf('0x40')](_0xf0b537,_0x4e76bd));const _0x310afa=_0x3c0474(),_0x407ec7=_0x20dcf1[_0x39bf('0x129')]['id'],_0x308230=_0x20dcf1[_0x39bf('0xad')]+(_0x20dcf1['subType']?':'+_0x20dcf1[_0x39bf('0xfe')]:'');this[_0x39bf('0xe9')]({'id':_0x310afa,'type':_0x308230,'createdAt':new Date(),'authorId':_0x407ec7,'originalSuggestionId':_0x20dcf1['id'],'attributes':_0x20dcf1[_0x39bf('0x128')],'data':_0x20dcf1[_0x39bf('0xee')]}),'formatBlock'==_0x20dcf1[_0x39bf('0xad')]&&(_0x1cbd57=this['_model'][_0x39bf('0xc1')](_0x1cbd57['parent'])),this['_addSuggestionMarker'](_0x308230,_0x310afa,_0x407ec7,this[_0x39bf('0x61')]['createRange'](_0x1cbd57,_0x35b76f));}[_0x39bf('0x4f')](_0x350f2f,_0xed233a=null){const _0x395c4c=[],_0x5c3da4=this[_0x39bf('0x61')][_0x39bf('0x12f')],_0x1cb858=this[_0x39bf('0x108')][_0x39bf('0x81')][_0x39bf('0xf8')]('Users')['me'];for(const _0x4058ee of this['getSuggestions']())if(_0x4058ee['isInContent']&&(!_0xed233a||_0x4058ee[_0x39bf('0xad')]==_0xed233a))for(const _0x25f42a of _0x4058ee['getRanges']()){const _0xfbe1b0=_0x350f2f[_0x39bf('0x113')][_0x39bf('0xc')](_0x25f42a[_0x39bf('0x6f')])||_0x350f2f[_0x39bf('0x6f')][_0x39bf('0xc')](_0x25f42a[_0x39bf('0x113')]);if(_0xfbe1b0||_0x350f2f[_0x39bf('0x50')](_0x25f42a)){const _0x1c081e=_0x350f2f[_0x39bf('0xe1')](_0x25f42a)&&Bt(_0x5c3da4,_0x25f42a['start'],_0x350f2f),_0x4c6d12=_0x25f42a[_0x39bf('0xe1')](_0x350f2f)&&Bt(_0x5c3da4,_0x350f2f[_0x39bf('0x113')],_0x25f42a);_0x395c4c[_0x39bf('0xe0')]({'suggestion':_0x4058ee,'meta':{'isOwn':_0x1cb858==_0x4058ee['author'],'isNextTo':_0xfbe1b0,'isInsideObject':_0x1c081e,'containsRangeInObject':_0x4c6d12}});break;}}return _0x395c4c;}[_0x39bf('0x74')](_0x25e727,_0x514052,_0x4208f6,_0xd0de5c,_0x4675d4){this[_0x39bf('0x61')][_0x39bf('0x11b')](_0x4f4d3a=>{let _0x597526='suggestion:'+_0x25e727+':'+_0x514052+':'+_0x4208f6;_0x4675d4&&(_0x597526=_0x597526+':'+_0x4675d4),_0x4f4d3a[_0x39bf('0xf')](_0x597526,{'range':_0xd0de5c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x39bf('0x55')](_0x215680){const _0x9ed05d=_0x215680['previous'],_0x2d2b00=_0x215680[_0x39bf('0xf4')];_0x215680[_0x39bf('0x78')]=null,null!=_0x9ed05d&&(_0x9ed05d['next']=null),_0x215680['next']=null,null!=_0x2d2b00&&(_0x2d2b00[_0x39bf('0x78')]=null),_0x39bf('0x67')==this['_suggestionState']['get'](_0x215680)&&(this[_0x39bf('0x7f')]['set'](_0x215680,'removed'),this[_0x39bf('0xd3')](_0x39bf('0x124'),_0x215680,_0x9ed05d,_0x2d2b00));}['_setSuggestionData'](_0x49c0c0){const _0x3f5ecb=_0x49c0c0['id'],_0x5e67aa=this[_0x39bf('0xa6')](_0x49c0c0);if(this[_0x39bf('0xbc')]&&this[_0x39bf('0xbc')][_0x39bf('0x3b')]){const _0x32ff3b=this['editor'][_0x39bf('0x81')][_0x39bf('0xf8')](_0x39bf('0xfd')),_0x192617=_0x5e67aa[_0x39bf('0xde')],_0x133944=_0x5e67aa[_0x39bf('0xfe')]?_0x5e67aa[_0x39bf('0xad')]+':'+_0x5e67aa['subType']:_0x5e67aa[_0x39bf('0xad')],_0x1ad8c3=this[_0x39bf('0x108')][_0x39bf('0x132')],_0xedbd04=_0x32ff3b[_0x39bf('0x4')](_0x3ef531(_0x1ad8c3,_0x39bf('0x130'))),_0x4ec6db={'id':_0x3f5ecb,'type':_0x133944,'hasComments':_0x192617,'data':_0x49c0c0[_0x39bf('0xee')]||null,'originalSuggestionId':_0x49c0c0[_0x39bf('0x9f')]||null,'attributes':_0x5e67aa[_0x39bf('0x128')]};this[_0x39bf('0xbc')][_0x39bf('0x3b')](_0x4ec6db)['then'](_0x15a733=>{_0x5e67aa[_0x39bf('0x101')]=!0x0,_0x32ff3b[_0x39bf('0xd7')](_0xedbd04),_0x15a733&&_0x15a733[_0x39bf('0x8e')]&&(this['_suggestions'][_0x39bf('0xf8')](_0x3f5ecb)[_0x39bf('0x8e')]=_0x15a733[_0x39bf('0x8e')]);})[_0x39bf('0x58')](_0x9fed4b=>{throw _0xd3afea('error-saving-suggestion-data-suggestion-discarded'),this[_0x39bf('0x108')][_0x39bf('0x98')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x5e67aa['discard']();}),_0x5e67aa['stopListening'](),this['_suggestions'][_0x39bf('0x1b')](_0x5e67aa['id']),this['_suggestionState'][_0x39bf('0x1b')](_0x5e67aa),_0x9fed4b;});}return _0x5e67aa;}[_0x39bf('0x90')](_0xf8507a,_0x1fe137){const _0x2348f3=this[_0x39bf('0x108')][_0x39bf('0x81')][_0x39bf('0xf8')](_0x39bf('0xfd')),_0x32771e=this[_0x39bf('0x4e')](_0xf8507a);if(this['_adapter']&&this[_0x39bf('0xbc')][_0x39bf('0x2c')]){if(_0x32771e[_0x39bf('0x101')]){const _0x297284=_0x2348f3[_0x39bf('0x4')](_0x3ef531(this[_0x39bf('0x108')]['locale'],_0x39bf('0x130')));this['_adapter'][_0x39bf('0x2c')](_0xf8507a,_0x1fe137)[_0x39bf('0x29')](()=>{_0x2348f3[_0x39bf('0xd7')](_0x297284);});}else _0x32771e['on'](_0x39bf('0x6b'),()=>{this[_0x39bf('0x90')](_0xf8507a,_0x1fe137);});}}['_getSuggestionData'](_0x408a87){if(!this['_adapter']||!this[_0x39bf('0xbc')][_0x39bf('0x4e')])throw new _0x417acb('track-changes-adapter-missing-getsuggestion',this);return this[_0x39bf('0xbc')]['getSuggestion'](_0x408a87);}[_0x39bf('0xf3')](_0x12c812){const {id:_0x2f33ae,type:_0x5b5ccc,subType:_0x32ef01,authorId:_0x2b9367}=this['_splitMarkerName'](_0x12c812),_0x211968=this[_0x39bf('0x42')]['get'](_0x2f33ae)||this[_0x39bf('0x24')](_0x5b5ccc,_0x32ef01,_0x2f33ae,_0x2b9367,{});switch(this[_0x39bf('0x135')](_0x211968,_0x5b5ccc,_0x32ef01,_0x2b9367),this[_0x39bf('0x7f')]['get'](_0x211968)){case'notReady':this[_0x39bf('0x95')](_0x2f33ae)['then'](_0x274653=>{let _0xe129da=Promise[_0x39bf('0x2d')]();_0x274653[_0x39bf('0xde')]&&(_0xe129da=this[_0x39bf('0x36')][_0x39bf('0x126')]({'channelId':this[_0x39bf('0x108')][_0x39bf('0x28')][_0x39bf('0xf8')](_0x39bf('0x123')),'threadId':_0x2f33ae})),_0xe129da[_0x39bf('0x29')](()=>{this['addSuggestionData'](_0x274653)[_0x39bf('0x101')]=!0x0;});}),this[_0x39bf('0x7f')][_0x39bf('0x2a')](_0x211968,_0x39bf('0xa4'));break;case _0x39bf('0x35'):this[_0x39bf('0x90')](_0x2f33ae,{'state':_0x39bf('0xf1')});case _0x39bf('0x47'):this[_0x39bf('0x7f')][_0x39bf('0x2a')](_0x211968,'ready'),this['fire']('suggestionLoaded',_0x211968);break;case'ready':this[_0x39bf('0xd3')](_0x39bf('0x1a'),_0x211968);}return _0x211968['addMarkerName'](_0x12c812),_0x211968;}[_0x39bf('0xeb')](_0x5205d7){const _0xaf57ff=Array[_0x39bf('0x75')](_0x5205d7)['filter'](_0x5606f5=>!_0x5606f5[_0x39bf('0x85')]),_0x4eb191=this[_0x39bf('0x69')]({'skipNotAttached':!0x0})[_0x39bf('0x107')](_0x55c78d=>!_0x55c78d[_0x39bf('0x85')]),_0x3f8a33=_0x4eb191['filter'](_0x44638c=>!_0x5205d7[_0x39bf('0x12d')](_0x44638c)),_0x506412=new Map(_0x4eb191[_0x39bf('0x121')](_0x141fd8=>[_0x141fd8,this[_0x39bf('0xb1')][_0x39bf('0xc4')](_0x141fd8[_0x39bf('0xad')],_0x141fd8[_0x39bf('0xfe')],_0x39bf('0x5f'))])),_0x1a9deb=new Map(_0x4eb191[_0x39bf('0x121')](_0x3f3692=>[_0x3f3692,_0x3f3692[_0x39bf('0x131')]()])),_0x5c499e=new Set(),_0x47754e=new Set();for(let _0x178950=0x0;_0x178950<_0xaf57ff[_0x39bf('0x14')];_0x178950++)_0x15735f(_0xaf57ff[_0x178950],_0xaf57ff,_0x178950+0x1);for(let _0x3937d3=0x0;_0x3937d3<_0xaf57ff['length'];_0x3937d3++)_0x15735f(_0xaf57ff[_0x3937d3],_0x3f8a33,0x0);for(let _0x34f8d2=0x0;_0x34f8d2<_0xaf57ff[_0x39bf('0x14')];_0x34f8d2++){const _0x4b1c8a=_0xaf57ff[_0x34f8d2];!_0x47754e[_0x39bf('0x12d')](_0x4b1c8a)&&_0x4b1c8a[_0x39bf('0x78')]&&(_0x4b1c8a[_0x39bf('0x78')][_0x39bf('0xf4')]===_0x4b1c8a&&(_0x4b1c8a[_0x39bf('0x78')]['next']=null),_0x4b1c8a['previous']=null),!_0x5c499e['has'](_0x4b1c8a)&&_0x4b1c8a[_0x39bf('0xf4')]&&(_0x4b1c8a[_0x39bf('0xf4')][_0x39bf('0x78')]===_0x4b1c8a&&(_0x4b1c8a[_0x39bf('0xf4')][_0x39bf('0x78')]=null),_0x4b1c8a[_0x39bf('0xf4')]=null);}function _0x15735f(_0x37c102,_0x4cad19,_0x1ae245){for(let _0x54e61d=_0x1ae245;_0x54e61d<_0x4cad19[_0x39bf('0x14')];_0x54e61d++){const _0x1b6bc5=_0x2a2b8c(_0x37c102,_0x4cad19[_0x54e61d]);_0x1b6bc5&&(_0x1b6bc5[0x0][_0x39bf('0xf4')]=_0x1b6bc5[0x1],_0x1b6bc5[0x1]['previous']=_0x1b6bc5[0x0],_0x5c499e[_0x39bf('0x4')](_0x1b6bc5[0x0]),_0x47754e[_0x39bf('0x4')](_0x1b6bc5[0x1]));}}function _0x2a2b8c(_0x56e844,_0x3afd53){if(_0x56e844[_0x39bf('0xc3')]['id']!==_0x3afd53[_0x39bf('0xc3')]['id'])return null;const _0xa3d6dc=_0x506412[_0x39bf('0xf8')](_0x56e844)(_0x56e844,_0x3afd53,_0x1a9deb[_0x39bf('0xf8')](_0x56e844),_0x1a9deb[_0x39bf('0xf8')](_0x3afd53));if(!_0xa3d6dc)return null;return _0x506412[_0x39bf('0xf8')](_0x3afd53)(_0x56e844,_0x3afd53,_0x1a9deb[_0x39bf('0xf8')](_0x56e844),_0x1a9deb[_0x39bf('0xf8')](_0x3afd53))?_0xa3d6dc[0x1][_0x39bf('0x109')]&&_0xa3d6dc[0x1][_0x39bf('0x109')][_0x39bf('0x14')]?null:_0xa3d6dc:null;}}[_0x39bf('0x100')](_0x5819d9){const _0x12cb94=Array[_0x39bf('0x75')](_0x5819d9),_0x1a09f1=this[_0x39bf('0x69')]({'skipNotAttached':!0x0}),_0x7ae34a=_0x1a09f1[_0x39bf('0x107')](_0x22bdea=>!_0x5819d9[_0x39bf('0x12d')](_0x22bdea)),_0x841088=new Map(_0x12cb94[_0x39bf('0x121')](_0x527e78=>[_0x527e78,this[_0x39bf('0xb1')]['getSuggestionCallback'](_0x527e78[_0x39bf('0xad')],_0x527e78['subType'],'join')])),_0x2176ae=new Map(_0x1a09f1['map'](_0x525e6a=>[_0x525e6a,_0x525e6a[_0x39bf('0x119')]()]));for(let _0x1ea273=0x0;_0x1ea273<_0x12cb94['length'];_0x1ea273++){if(_0x16b759(this,_0x12cb94[_0x1ea273],_0x12cb94,_0x1ea273+0x1))return!0x0;}for(let _0x2f8096=0x0;_0x2f8096<_0x12cb94['length'];_0x2f8096++){if(_0x16b759(this,_0x12cb94[_0x2f8096],_0x7ae34a,0x0))return!0x0;}return!0x1;function _0x16b759(_0x32cd8a,_0xb0799f,_0x4061e3,_0x3ab0be){for(let _0x94adad=_0x3ab0be;_0x94adad<_0x4061e3['length'];_0x94adad++){const _0x1c182f=_0x4061e3[_0x94adad];if(_0x1c182f[_0x39bf('0xad')]!==_0xb0799f[_0x39bf('0xad')]||_0x1c182f[_0x39bf('0xc3')]['id']!==_0xb0799f[_0x39bf('0xc3')]['id']||_0x1c182f['subType']!==_0xb0799f[_0x39bf('0xfe')])continue;const _0x4508fb=_0x841088[_0x39bf('0xf8')](_0xb0799f),_0x34474a=_0x2176ae['get'](_0xb0799f),_0x1f95e3=_0x2176ae[_0x39bf('0xf8')](_0x1c182f),_0x5d3d15=_0xb0799f['commentThread']&&_0xb0799f[_0x39bf('0x109')]['length'],_0x4b44b8=_0x1c182f[_0x39bf('0x109')]&&_0x1c182f[_0x39bf('0x109')]['length'];if(!_0x5d3d15&&_0x4508fb(_0x1f95e3,_0x34474a))return _0x32cd8a[_0x39bf('0x12a')](_0x1c182f,_0xb0799f),_0x2176ae[_0x39bf('0x1b')](_0xb0799f),!0x0;if(!_0x4b44b8&&_0x4508fb(_0x34474a,_0x1f95e3))return _0x32cd8a['_joinSuggestions'](_0xb0799f,_0x1c182f),_0x2176ae[_0x39bf('0x1b')](_0x1c182f),!0x0;}return!0x1;}}[_0x39bf('0x12a')](_0x2c40b2,_0x42711d){if(_0x2c40b2[_0x39bf('0x85')])for(const _0x4a9eb5 of _0x42711d['getRanges']())_0x2c40b2['addRange'](_0x4a9eb5);else{const _0x1a0544=_0x42711d[_0x39bf('0x131')]()['end'];this[_0x39bf('0x57')](_0x2c40b2,this[_0x39bf('0x61')]['createRange'](_0x2c40b2[_0x39bf('0x131')]()[_0x39bf('0x113')],_0x1a0544));}_0x42711d[_0x39bf('0x4c')]();}}class Dt{constructor(_0x100272){this[_0x39bf('0x18')]=_0x100272,this[_0x39bf('0x61')]=_0x100272[_0x39bf('0x98')],this[_0x39bf('0x11d')]=new Map(),this[_0x39bf('0xe3')]=new Map(),this[_0x39bf('0x13c')]();}[_0x39bf('0x2b')](_0x116243,_0xff5368,_0x4ad866,_0x363181,_0x4e1c57,_0x28b5c9){return new _0x287a7f(this['_model'],{'type':_0x116243,'subType':_0xff5368,'id':_0x4ad866,'author':_0x363181,'creator':_0x363181,'attributes':_0x4e1c57,'onAttributesChange':_0x28b5c9,'onAccept':(..._0x1ab19c)=>this[_0x39bf('0xc4')](_0x116243,_0xff5368,_0x39bf('0x1f'))(..._0x1ab19c),'onDiscard':(..._0x2ebd55)=>this['getSuggestionCallback'](_0x116243,_0xff5368,_0x39bf('0xc5'))(..._0x2ebd55)});}[_0x39bf('0x71')](_0x384fb1,_0x16f425,_0x4020a1,_0x12b20b){const _0x1a0c95=_0x384fb1+':'+_0x16f425+':'+_0x4020a1;this[_0x39bf('0x11d')]['set'](_0x1a0c95,_0x12b20b);}[_0x39bf('0xc4')](_0x12a8d8,_0x25a1bd,_0x15e650){const _0x5744e5=_0x12a8d8+':'+_0x25a1bd+':'+_0x15e650;return this[_0x39bf('0x11d')][_0x39bf('0xf8')](_0x5744e5)||this['_defaultCallbacks'][_0x39bf('0xf8')](_0x12a8d8+':'+_0x15e650);}[_0x39bf('0x13c')](){const _0x322412=()=>{},_0x770417=_0x1978cb=>{_0x1978cb['sort']((_0x3f084f,_0x558588)=>_0x3f084f[_0x39bf('0x113')][_0x39bf('0xe8')](_0x558588['start'])?0x1:-0x1),this[_0x39bf('0x61')]['change'](_0x422662=>{for(const _0x5d2882 of _0x1978cb){let _0x13a51a;_0x13a51a=_0x5d2882['end'][_0x39bf('0x3a')]&&_0x5d2882['end'][_0x39bf('0x118')]==_0x5d2882[_0x39bf('0x113')][_0x39bf('0x120')]?_0x422662[_0x39bf('0xed')](_0x5d2882['start'][_0x39bf('0x120')],'on'):_0x422662[_0x39bf('0xed')](_0x5d2882),this['_model'][_0x39bf('0xab')](_0x13a51a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x70009=(_0x3e2dd3,_0x38638d)=>{this['_model'][_0x39bf('0x11b')](_0x415105=>{const {commandName:_0x3ef666,commandParams:_0x540563=[]}=_0x38638d,_0x1a8594=_0x3e2dd3[_0x39bf('0x121')](_0x1f9e82=>(_t(_0x1f9e82)&&(_0x1f9e82=this[_0x39bf('0x61')][_0x39bf('0x40')](_0x1f9e82[_0x39bf('0x6f')])),_0x1f9e82))[_0x39bf('0x107')](_0x255a11=>_0x39bf('0x3d')!==_0x255a11[_0x39bf('0x1d')][_0x39bf('0xc9')]);if(_0x1a8594['length']<0x1)return;const _0x16611e=Array[_0x39bf('0x75')](this[_0x39bf('0x61')]['document']['selection'][_0x39bf('0x119')]())[_0x39bf('0x121')](_0x21d0c6=>_0x3524fe[_0x39bf('0xfb')](_0x21d0c6));_0x415105['setSelection'](_0x1a8594);for(const _0xe3b879 of this['_editor'][_0x39bf('0x1e')][_0x39bf('0x1e')]())_0xe3b879[_0x39bf('0x114')]();_0x540563[_0x39bf('0xe0')]({'forceDefaultExecution':!0x0}),this[_0x39bf('0x18')][_0x39bf('0x112')](_0x3ef666,..._0x540563);const _0x11c740=_0x16611e['filter'](_0x24fbf1=>_0x39bf('0x3d')!=_0x24fbf1['root']['rootName']);_0x11c740[_0x39bf('0x14')]>0x0&&_0x415105['setSelection'](_0x11c740);for(const _0x247496 of _0x16611e)_0x247496[_0x39bf('0x62')]();});},_0x276cd2=(_0xc6e36f,_0x23240f)=>0x1==_0xc6e36f[_0x39bf('0x14')]&&0x1==_0x23240f[_0x39bf('0x14')]&&_0xc6e36f[0x0][_0x39bf('0x6f')][_0x39bf('0xc')](_0x23240f[0x0][_0x39bf('0x113')]),_0xd17e44=(_0x2c0b95,_0x442ba1,_0x2431c0,_0x512942)=>xt(_0x2c0b95,_0x442ba1,_0x2431c0,_0x512942,this[_0x39bf('0x61')])?[_0x2c0b95,_0x442ba1]:xt(_0x442ba1,_0x2c0b95,_0x512942,_0x2431c0,this[_0x39bf('0x61')])?[_0x442ba1,_0x2c0b95]:null;this[_0x39bf('0xe3')][_0x39bf('0x2a')](_0x39bf('0x87'),_0x322412),this[_0x39bf('0xe3')][_0x39bf('0x2a')](_0x39bf('0x6a'),_0x770417),this[_0x39bf('0xe3')][_0x39bf('0x2a')](_0x39bf('0xbb'),_0x276cd2),this[_0x39bf('0xe3')][_0x39bf('0x2a')](_0x39bf('0x66'),_0xd17e44),this[_0x39bf('0xe3')]['set'](_0x39bf('0xf7'),_0x770417),this['_defaultCallbacks'][_0x39bf('0x2a')](_0x39bf('0x53'),_0x322412),this['_defaultCallbacks']['set'](_0x39bf('0x122'),_0x276cd2),this[_0x39bf('0xe3')][_0x39bf('0x2a')]('deletion:chain',_0xd17e44),this['_defaultCallbacks'][_0x39bf('0x2a')](_0x39bf('0xd1'),_0x70009),this[_0x39bf('0xe3')]['set'](_0x39bf('0x6e'),_0x322412),this['_defaultCallbacks'][_0x39bf('0x2a')](_0x39bf('0x77'),_0x276cd2),this[_0x39bf('0xe3')]['set'](_0x39bf('0xb7'),_0x322412),this[_0x39bf('0xe3')]['set'](_0x39bf('0x30'),_0x70009),this[_0x39bf('0xe3')][_0x39bf('0x2a')](_0x39bf('0x105'),_0x322412),this['_defaultCallbacks']['set'](_0x39bf('0x65'),_0x276cd2),this[_0x39bf('0xe3')][_0x39bf('0x2a')]('formatBlock:chain',_0x322412);}}function Bt(_0x3ce51e,_0x565dca,_0x5e5315){for(const _0x2660e2 of _0x565dca[_0x39bf('0x118')][_0x39bf('0x34')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2660e2[_0x39bf('0x1d')]==_0x2660e2)return!0x1;if(!_0x5e5315[_0x39bf('0xfa')](_0x2660e2))return!0x1;if(_0x3ce51e[_0x39bf('0x10e')](_0x2660e2)||_0x3ce51e[_0x39bf('0x86')](_0x2660e2))return!0x0;}return!0x1;}function _t(_0x52c68e){return _0x52c68e[_0x39bf('0x6f')][_0x39bf('0x118')]==_0x52c68e['start'][_0x39bf('0x120')]&&_0x52c68e[_0x39bf('0x6f')][_0x39bf('0x49')];}function Mt(_0x34201c,_0x2e4f72,_0x566627,_0x4ca289){const _0x1af70b=_0x131926=>!_0x131926[_0x39bf('0xb3')]['is'](_0x39bf('0xf5'))&&!_0x4ca289[_0x39bf('0x10e')](_0x131926[_0x39bf('0xb3')]),_0x1becfa=_0x34201c[_0x39bf('0x113')]['getLastMatchingPosition'](_0x1af70b),_0x430a46=_0x34201c[_0x39bf('0x6f')][_0x39bf('0x5c')](_0x1af70b,{'direction':_0x39bf('0x7')});return(!_0x34201c[_0x39bf('0x113')][_0x39bf('0xc')](_0x1becfa)||!_0x34201c[_0x39bf('0x6f')][_0x39bf('0xc')](_0x430a46))&&(_0x1becfa[_0x39bf('0xe8')](_0x430a46)?_0x566627[_0x39bf('0xa5')](_0x2e4f72,{'range':_0x566627[_0x39bf('0x40')](_0x1becfa,_0x430a46)}):_0x566627[_0x39bf('0xcc')](_0x2e4f72),!0x0);}function $t(_0x1b3bb5){return _0x225d1f(_0x1b3bb5);}function Nt(_0x5ebacb){const _0x3fd1b3=_0x5ebacb[_0x39bf('0x113')][_0x39bf('0x120')];return _0x3fd1b3&&_0x3fd1b3['is'](_0x39bf('0x91'));}function Rt(_0x3a542d,_0x3d3766){const _0x3245b8=_0x3d3766['schema'][_0x39bf('0x10e')](_0x3a542d)||_0x3d3766['schema'][_0x39bf('0x106')](_0x3a542d);return _0x3d3766[_0x39bf('0x40')](_0x3d3766['createPositionAt'](_0x3a542d,_0x39bf('0x7a')),_0x3245b8?_0x3d3766[_0x39bf('0x10b')](_0x3a542d):_0x3d3766['createPositionAt'](_0x3a542d,_0x39bf('0x6f')));}function xt(_0x521e32,_0x434a6c,_0x1ff0cc,_0x26c1d9,_0x1d456b){if(_0x1ff0cc[_0x39bf('0x6f')][_0x39bf('0xc')](_0x26c1d9[_0x39bf('0x113')]))return!0x0;if(_0x521e32[_0x39bf('0xad')]!=_0x434a6c[_0x39bf('0xad')])return!0x1;if(!_0x1ff0cc['end']['isTouching'](_0x26c1d9[_0x39bf('0x113')]))return!0x1;const _0x32311e=_0x1d456b[_0x39bf('0x40')](_0x1ff0cc[_0x39bf('0x6f')],_0x26c1d9[_0x39bf('0x113')])['getWalker']();for(const _0x529bfd of _0x32311e)if([_0x39bf('0x7d'),_0x39bf('0xc8')][_0x39bf('0x73')](_0x529bfd[_0x39bf('0xad')])&&_0x1d456b['schema'][_0x39bf('0x86')](_0x529bfd[_0x39bf('0xb3')]))return!0x1;return!0x0;}
23
+ const _0x4edf=['getAllAdjacentSuggestions','updateSuggestion','CommentsRepository','_findSuggestions','markerToHighlight','backward','markMultiRangeBlockFormat','set','getAncestors','group','formatInline:','Users','insertion:join','fire','commands','next','conversion','insertion:discard','nodeBefore','mapper','dataReady','insertion:accept','change:_saved','split','subType','containerElement','data-suggestion','trackChanges.trackFormatChanges','removeMarkers','activeMarkers','getRanges','acceptAllSuggestions','stop','chain','for','isInContent','_model','_refreshSuggestionsChain','suggestionChanged','getMarkers','getShiftedBy','unbind','getItems','never','creator','insertion','deletion:','consume','ready','isTouching','document','_splitMarkerName','_enabledCommands','start','track-changes-user-not-found','stopListening','_getSuggestionData','formatInline','addUser','buildSuggestion','getMultiRangeId','catch','default','name','containsRangeInObject','documentSelection','_isForcedDefaultExecutionBlock','markMultiRangeDeletion','value','applyOperation','markerReady','getWalker','join','schema','markerToData','getIntersection','getSuggestionCallback','markerName','PENDING_ACTION_SUGGESTION','moveTargetPosition','adapter','deletion:discard','range','removeClass','newRange','sort','containsRange','upcast','has','addClass','_saved','options','elementToElement','_createSuggestion','editing','addMarker:suggestion','TrackChangesEditing','markDeletion','deleteContent','formatBlock:chain','multipleBlocks','addMarker','formatInline:join','high','type','_customCallbacks','always','deletion:join','createdAt','isNextTo','includes','change:data','isMultiRange','size','deletion','low','ck-suggestion-marker-','addMarker:suggestion:formatBlock','createRange','author','getFirstRange','rootName','@external','_suggestionState','dataToMarker','formatBlock:accept','root','_descriptionFactory','PendingActions','commentThread','formatBlock:discard','addSuggestionData','getChangedMarkers','isOwn','createElement','isSelectable','originalSuggestionId','suggestion:','markMultiRangeInsertion','getUser','substr','getNearestSelectionRange','track-changes-adapter-missing-getsuggestion','accept','toViewElement','reconvertMarker','unbindElementFromMarkerName','createRangeIn','config','insertion:','insert','init','isLimit','removeMarker','removeComment','notReady','selection','isBlock','enableCommand','splice','dataDowncast','locale','track-changes-suggestion-not-found','createPositionBefore','normal','discard','data','$graveyard','add','previous','item','highest','discardSelectedSuggestions','external:','fromRange','differ','skipNestingCheck','createSelection','nodeAfter','isIntersectingWithRange','acceptSelectedSuggestions','after','model','_removeSuggestion','trackChangesCommand','change','_editor','isExternal','listenTo','getChanges','_rangeIsInLocalUserInsertion','getLastMatchingPosition','containsPosition','values','isBefore','_joinSuggestions','editingDowncast','registerPostFixer','delete','some','then','targetPosition','isEqual','_checkSuggestionCorrectness','filter','addComment','editor','markInsertion','isInsideObject','removeAttribute','_getExternalAuthor','createPositionAt','get','formatGroupId','isCollapsed','addMarkerName','ck-suggestion-marker--active','position','suggestionUnloaded','_registerDefaultCallbacks','_adapter','execute','formatBlock','deletion:accept','_addThreadToSuggestion','ck-suggestion-marker-formatBlock','plugins','fetchCommentThread','enqueueChange','suggestion','isRemovable','before','end','multi','head','bindElementToMarker','detach','isLocal','_breakSuggestionMarker','_mergeNestedSuggestions','return','showSuggestionHighlights','getDifference','parent','isUndo','hasCommentThread','define','track-changes-adapter-already-set','forceDefaultExecution','requires','_suggestions','addCommentThread','_setSuggestionRange','_joinWithAdjacentSuggestions','_updateSuggestionData','updateMarker','collaboration.channelId','getSuggestions','_suggestionFactory','toJSON','acceptSuggestion','formatBlock:join','from','push','discardSuggestion','update:suggestion','_cutOutSuggestionMarker','setSelection','addRange','getCustomProperty','forward','formatBlock:','_trackFormatChanges','pluginName','getFirstMarker','isAtEnd','authoredAt','_getAuthorFromId','trackChanges','_commentsRepository','getSuggestion','getAttribute','marker-count','ck-suggestion-marker','trackChanges.mergeNestedSuggestions','_defaultCallbacks','registerCustomCallback','hasComments','markBlockFormat','_handleNewSuggestionMarker','_setSuggestionData','markers','writer','hasSuggestion','suggestionLoaded','move','isAfter','getRange','howMany','track-changes-suggestion-data-mismatch','setAttribute','element','attributes','formatInline:chain','map','getCommentThread','length','consumable','_addSuggestionMarker','removed','elementStart','insertContent','commandName','addHighlight','every','addSuggestion','open','splitPosition','remove','isObject'];(function(_0x2c4b48,_0x4edf1e){const _0x90f5f8=function(_0x2d4ffc){while(--_0x2d4ffc){_0x2c4b48['push'](_0x2c4b48['shift']());}};_0x90f5f8(++_0x4edf1e);}(_0x4edf,0x11e));const _0x90f5=function(_0x2c4b48,_0x4edf1e){_0x2c4b48=_0x2c4b48-0x0;let _0x90f5f8=_0x4edf[_0x2c4b48];return _0x90f5f8;};import{Plugin as _0x18e92b,PendingActions as _0x30f394}from'ckeditor5/src/core';import{LiveRange as _0x1bb84e}from'ckeditor5/src/engine';import{CKEditorError as _0x2719f8,uid as _0x4c2669,priorities as _0x4da110,logWarning as _0x3cb7c3}from'ckeditor5/src/utils';import{toWidget as _0x51d751}from'ckeditor5/src/widget';import{Users as _0x235fe0,hashObject as _0x1db92d}from'ckeditor5-collaboration/src/collaboration-core';import _0xf624f4 from'./commands/trackchangescommand';import _0x47ff04 from'./commands/acceptsuggestioncommand';import _0xf961ee from'./commands/discardsuggestioncommand';import _0x45267e from'./commands/executeonallsuggestionscommand';import _0x4fe056 from'./commands/executeonselectedsuggestionscommand';import _0x1600fa from'./suggestion';import _0x563414 from'./suggestiondescriptionfactory';import _0x2e39f4 from'./integrations/alignment';import _0x315ff0 from'./integrations/basicstyles';import _0x3f04b1 from'./integrations/blockquote';import _0x3c302f from'./integrations/ckbox';import _0x5d34f6 from'./integrations/codeblock';import _0x591e22 from'./integrations/comments';import _0x5d28f1 from'./integrations/deletecommand';import _0x112e62 from'./integrations/documentlist';import _0x1a5bdd from'./integrations/entercommand';import _0x3482c9 from'./integrations/findandreplace';import _0x3ee5e0 from'./integrations/font';import _0x1f8d6d from'./integrations/formatpainter';import _0x58b8bc from'./integrations/heading';import _0xcda1b7 from'./integrations/highlight';import _0x4ed8a1 from'./integrations/horizontalline';import _0x2bd5e7 from'./integrations/htmlembed';import _0x3131a1 from'./integrations/image';import _0x43d3af from'./integrations/imagereplace';import _0x2a0583 from'./integrations/importword';import _0x3b3886 from'./integrations/indent';import _0x7b92dd from'./integrations/inputcommand';import _0x389f9f from'./integrations/link';import _0x7ee307 from'./integrations/list';import _0x3bceea from'./integrations/listproperties';import _0x579247 from'./integrations/mediaembed';import _0x418491 from'./integrations/mention';import _0x4d0c0f from'./integrations/pagebreak';import _0x271eb2 from'./integrations/paragraph';import _0x5993f1 from'./integrations/removeformat';import _0xfe14dd from'./integrations/restrictededitingmode';import _0x5099bf from'./integrations/shiftentercommand';import _0x10886c from'./integrations/standardeditingmode';import _0x3793c3 from'./integrations/style';import _0x165ae0 from'./integrations/table';import _0x171622 from'./integrations/tablemergesplit';import _0x227338 from'./integrations/tableheadings';import _0x1aeb8c from'./integrations/tableclipboard';import _0x5c8715 from'./integrations/tablecolumnresize';import _0x295988 from'./integrations/template';import _0x4ee9cc from'./integrations/tableofcontents';import _0x1ac9d1 from'./integrations/title';import _0x307f67 from'./integrations/undo';import{getTranslation as _0x3485ff}from'./utils/common-translations';import _0x15a84a from'./integrations/tablecaption';import _0x297711 from'./integrations/documentlistproperties';import _0x1239e7 from'./integrations/tableproperties';export default class p extends _0x18e92b{static get[_0x90f5('0x11b')](){return[_0x90f5('0x24'),_0x235fe0,_0x30f394,_0x2e39f4,_0x315ff0,_0x3f04b1,_0x3c302f,_0x5d34f6,_0x591e22,_0x5d28f1,_0x112e62,_0x297711,_0x1a5bdd,_0x3482c9,_0x3ee5e0,_0x1f8d6d,_0x58b8bc,_0xcda1b7,_0x4ed8a1,_0x2bd5e7,_0x3131a1,_0x43d3af,_0x2a0583,_0x3b3886,_0x7b92dd,_0x389f9f,_0x7ee307,_0x3bceea,_0x579247,_0x418491,_0x4d0c0f,_0x271eb2,_0x5993f1,_0xfe14dd,_0x5099bf,_0x10886c,_0x3793c3,_0x165ae0,_0x171622,_0x227338,_0x15a84a,_0x1aeb8c,_0x5c8715,_0x4ee9cc,_0x1239e7,_0x295988,_0x1ac9d1,_0x307f67];}static get[_0x90f5('0x133')](){return _0x90f5('0x82');}constructor(_0x34f824){function _0x16c92f(_0x347d15){return _0x347d15[_0x90f5('0x12')](_0x45ee3c=>String['fromCharCode'](_0x45ee3c))[_0x90f5('0x6a')]('');}super(_0x34f824),this['set'](_0x90f5('0x3f'),[]),this['on']('change:activeMarkers',(_0x7bc162,_0x30e4ec,_0x29799d,_0x11ef02)=>{this[_0x90f5('0x46')]['change'](()=>{for(const _0x557961 of[..._0x11ef02,..._0x29799d])this['_model'][_0x90f5('0x5')]['has'](_0x557961)&&_0x34f824[_0x90f5('0x80')][_0x90f5('0xb3')](_0x557961);});}),this[_0x90f5('0xa1')]=new _0x563414(this[_0x90f5('0xf0')][_0x90f5('0xd8')][_0x90f5('0x6b')],this[_0x90f5('0xf0')][_0x90f5('0xc3')]),this['_adapter']=null,this[_0x90f5('0x124')]=new Dt(this[_0x90f5('0xf0')]),this['_suggestions']=new Map(),this[_0x90f5('0x139')]=_0x34f824[_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x24')),this[_0x90f5('0x56')]=new Set(),this[_0x90f5('0x46')]=this[_0x90f5('0xf0')][_0x90f5('0xd8')],this['_suggestionState']=new WeakMap(),this[_0x90f5('0x64')]=!0x1,_0x34f824['config']['define'](_0x90f5('0x3d'),_0x90f5('0x60')),this[_0x90f5('0x132')]=_0x34f824[_0x90f5('0xb6')][_0x90f5('0xf6')]('trackChanges.trackFormatChanges'),_0x34f824[_0x90f5('0xb6')][_0x90f5('0x118')](_0x90f5('0x13e'),!0x0),this[_0x90f5('0x111')]=_0x34f824['config'][_0x90f5('0xf6')](_0x90f5('0x13e')),this['trackChangesCommand']=new _0xf624f4(_0x34f824,this[_0x90f5('0x56')]),this[_0x16c92f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x16c92f([0x34,0x30,0x34,0x36,0x31,0x36,0x35,0x34]);}[_0x90f5('0xb9')](){const _0x5be522=this[_0x90f5('0xf0')];_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xe6'))[_0x90f5('0x26')]({'model':'suggestion','view':_0x4f4340=>{const {id:_0x279b2b,type:_0x42310b}=this[_0x90f5('0x55')](_0x4f4340[_0x90f5('0x6f')]),_0x1b81da=[_0x90f5('0x13d'),_0x90f5('0x96')+_0x42310b];let _0x582035=0xbb8;return this[_0x90f5('0x3f')][_0x90f5('0x90')](_0x4f4340['markerName'])&&(_0x1b81da['push'](_0x90f5('0xfa')),_0x582035=0xbc2),_0x90f5('0x94')==_0x42310b&&(_0x582035+=0x5),{'classes':_0x1b81da,'attributes':{'data-suggestion':_0x279b2b},'priority':_0x582035};}}),_0x5be522['conversion'][_0x90f5('0x44')](_0x90f5('0xc2'))[_0x90f5('0xca')](_0x4fa6fd=>{_0x4fa6fd['on'](_0x90f5('0x81'),(_0x52d5d3,_0x55fa08,_0x4f1109)=>{if(!_0x4f1109[_0x90f5('0x7d')]['showSuggestionHighlights'])return;const _0x3221f9=_0x55fa08[_0x90f5('0xcc')];if(!_0x3221f9)return;const _0x1b4c69=_0x4f1109[_0x90f5('0x35')][_0x90f5('0xb2')](_0x3221f9);_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')][_0x90f5('0x21')](_0x3221f9)&&_0x1b4c69&&!_0x1b4c69['getCustomProperty']('widget')&&_0x1b4c69['is'](_0x90f5('0x3b'))&&_0x51d751(_0x1b4c69,_0x4f1109[_0x90f5('0x6')]);},{'priority':'high'});}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xc2'))['markerToHighlight']({'model':_0x90f5('0x107'),'view':(_0x306905,_0x10f510)=>{if(!_0x10f510[_0x90f5('0x7d')][_0x90f5('0x113')])return null;const {type:_0x29a26f}=this['_splitMarkerName'](_0x306905['markerName']);return{'classes':[_0x90f5('0x13d'),_0x90f5('0x96')+_0x29a26f],'priority':0xbb8};}});const _0x1b24a5=({showActiveMarkers:_0x216e75=!0x0}={})=>(_0x37928b,_0x477b24,_0x36f076)=>{if(!_0x477b24[_0x90f5('0xcc')])return;if(_0x477b24[_0x90f5('0xcc')]['is'](_0x90f5('0xbe')))return void _0x36f076['consumable'][_0x90f5('0x51')](_0x477b24['item'],_0x37928b[_0x90f5('0x61')]);const _0x4b55f8=_0x36f076[_0x90f5('0x35')][_0x90f5('0xb2')](_0x477b24[_0x90f5('0xcc')]);if(!(_0x477b24['item']['is']('element')&&_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')]['isBlock'](_0x477b24['item'])&&!_0x4b55f8['getCustomProperty']('addHighlight')))return;const {id:_0x560642}=this[_0x90f5('0x55')](_0x477b24[_0x90f5('0x6f')]);_0x36f076[_0x90f5('0x6')][_0x90f5('0x7b')](['ck-suggestion-marker',_0x90f5('0x103')],_0x4b55f8),_0x36f076[_0x90f5('0x6')][_0x90f5('0xe')](_0x90f5('0x3c'),_0x560642,_0x4b55f8),_0x36f076['mapper'][_0x90f5('0x10d')](_0x4b55f8,_0x477b24[_0x90f5('0x6f')]),_0x216e75&&(this[_0x90f5('0x3f')][_0x90f5('0x90')](_0x477b24['markerName'])?_0x36f076[_0x90f5('0x6')][_0x90f5('0x7b')](_0x90f5('0xfa'),_0x4b55f8):_0x36f076[_0x90f5('0x6')]['removeClass'](_0x90f5('0xfa'),_0x4b55f8));for(const _0x4eb4ec of _0x5be522[_0x90f5('0xd8')][_0x90f5('0xb5')](_0x477b24['item'])[_0x90f5('0x4c')]())_0x36f076[_0x90f5('0x15')]['consume'](_0x4eb4ec,_0x37928b[_0x90f5('0x61')]);_0x36f076[_0x90f5('0x15')][_0x90f5('0x51')](_0x477b24['item'],_0x37928b[_0x90f5('0x61')]);};_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xc2'))['add'](_0x34ce7d=>{_0x34ce7d['on'](_0x90f5('0x97'),(_0x4702d,_0x91e004,_0x13f5be)=>{_0x13f5be[_0x90f5('0x7d')][_0x90f5('0x113')]&&_0x1b24a5({'showActiveMarkers':!0x1})(_0x4702d,_0x91e004,_0x13f5be);},{'priority':_0x90f5('0xcd')});}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')]('dataDowncast')[_0x90f5('0x6c')]({'model':_0x90f5('0x107'),'view':(_0x27456f,_0x443813)=>_0x443813[_0x90f5('0x7d')][_0x90f5('0x113')]?null:{'group':'suggestion','name':_0x27456f[_0x90f5('0xae')](0xb)}}),_0x5be522['conversion'][_0x90f5('0x44')](_0x90f5('0x79'))[_0x90f5('0x7e')]({'view':{'name':_0x90f5('0x107'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x324bb0,{writer:_0x165376})=>{let _0x3c5a15=_0x90f5('0xab')+_0x324bb0[_0x90f5('0x13b')]('suggestion-type')+':'+_0x324bb0['getAttribute']('id');return _0x324bb0[_0x90f5('0x13b')](_0x90f5('0x13c'))&&(_0x3c5a15+=':'+_0x324bb0[_0x90f5('0x13b')](_0x90f5('0x13c'))),_0x165376[_0x90f5('0xa8')]('$marker',{'data-name':_0x3c5a15});}}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0x79'))[_0x90f5('0x9e')]({'view':'suggestion'}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xe6'))[_0x90f5('0xca')](_0x8fa72d=>{_0x8fa72d['on'](_0x90f5('0x97'),_0x1b24a5(),{'priority':'high'});}),_0x5be522[_0x90f5('0x32')]['for'](_0x90f5('0xe6'))[_0x90f5('0xca')](_0x16c551=>{_0x16c551['on']('removeMarker:suggestion:formatBlock',(_0x19b4d7,_0x4fd612,_0x31a0e7)=>{const _0xd7114c=_0x31a0e7[_0x90f5('0x35')]['markerNameToElements'](_0x4fd612[_0x90f5('0x6f')]);if(_0xd7114c)for(const _0x398562 of _0xd7114c)_0x398562[_0x90f5('0x12f')](_0x90f5('0x1b'))||(_0x31a0e7[_0x90f5('0x6')][_0x90f5('0x75')]([_0x90f5('0x13d'),_0x90f5('0x103'),_0x90f5('0xfa')],_0x398562),_0x31a0e7['writer'][_0x90f5('0xf3')]('data-suggestion',_0x398562),_0x31a0e7['mapper'][_0x90f5('0xb4')](_0x398562,_0x4fd612[_0x90f5('0x6f')]));},{'priority':'high'});}),_0x5be522['model'][_0x90f5('0x54')]['registerPostFixer'](_0x599f38=>{let _0x20ec5f=!0x1;const _0x4a343e=Array[_0x90f5('0x128')](_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xd1')][_0x90f5('0xa6')]()),_0x253364=new Set();for(const {name:_0x26c958,data:_0x27ca40}of _0x4a343e){const {group:_0x2a04fb,type:_0x2068ad,id:_0x21a7bf}=this[_0x90f5('0x55')](_0x26c958);if(_0x90f5('0x107')!==_0x2a04fb)continue;const _0x2abd4f=this[_0x90f5('0x11c')]['get'](_0x21a7bf);if(null!=_0x27ca40['newRange']){'formatInline'==_0x2068ad&&(_0x20ec5f=_0x20ec5f||Mt(_0x27ca40[_0x90f5('0x76')],_0x26c958,_0x599f38,_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')]));if(_0x27ca40['newRange'][_0x90f5('0xf8')]||'$graveyard'==_0x27ca40['newRange'][_0x90f5('0xa0')][_0x90f5('0x9b')]||_0x90f5('0x100')==_0x2068ad&&!Nt(_0x27ca40['newRange'])||_0x90f5('0x94')==_0x2068ad&&!(!_t(_0x22a875=_0x27ca40[_0x90f5('0x76')])&&!function(_0x57c300){return _0x57c300[_0x90f5('0x57')]['parent']==_0x57c300['end']['nodeBefore']&&_0x57c300[_0x90f5('0x57')][_0x90f5('0x135')];}(_0x22a875)))_0x599f38[_0x90f5('0xbb')](_0x26c958),_0x20ec5f=!0x0;else{if(!_0x2abd4f||!_0x2abd4f['isInContent'])continue;_0x253364[_0x90f5('0xca')](_0x2abd4f);}}}var _0x22a875;return _0x253364['size']>0x0&&(_0x20ec5f=!!this[_0x90f5('0x11f')](_0x253364)||_0x20ec5f),_0x20ec5f;}),_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xe7')](_0x1ae68a=>{let _0x5144a3=!0x1;for(const _0x43e549 of _0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xd1')][_0x90f5('0xdf')]()){if(_0x90f5('0xb8')!=_0x43e549[_0x90f5('0x8a')])continue;const _0x4c957f=_0x43e549[_0x90f5('0xfb')]['getShiftedBy'](_0x43e549[_0x90f5('0x14')]);if(_0x4c957f[_0x90f5('0x135')])for(const _0x47c513 of this['_suggestions'][_0x90f5('0xe3')]()){if(_0x47c513[_0x90f5('0x92')]||!_0x47c513['isInContent'])continue;if(_0x90f5('0x100')!=_0x47c513['type'])continue;const _0x31bdca=_0x47c513[_0x90f5('0x9a')]();if(_0x31bdca[_0x90f5('0x57')][_0x90f5('0x115')]!=_0x31bdca[_0x90f5('0x10a')][_0x90f5('0x115')]&&_0x31bdca[_0x90f5('0x10a')][_0x90f5('0xec')](_0x43e549[_0x90f5('0xfb')])){const _0x18c0a2=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x98')](_0x31bdca[_0x90f5('0x57')],_0x4c957f);_0x1ae68a[_0x90f5('0x121')](_0x47c513[_0x90f5('0x134')](),{'range':_0x18c0a2}),_0x5144a3=!0x0;}}}return _0x5144a3;}),_0x5be522[_0x90f5('0xd8')][_0x90f5('0x5')]['on'](_0x90f5('0x12b'),(_0x1e64fd,_0x111058,_0x3e6fcd)=>{if(null==_0x3e6fcd){const {id:_0x586fe2}=this[_0x90f5('0x55')](_0x111058['name']),_0x1a1647=this['_suggestions']['get'](_0x586fe2);_0x1a1647&&_0x1a1647['addMarkerName'](_0x111058[_0x90f5('0x61')]);}}),_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')]['on'](_0x90f5('0x91'),()=>{const _0x2938a3=Array[_0x90f5('0x128')](_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xd1')]['getChangedMarkers']())[_0x90f5('0xee')](_0x3dcb87=>_0x90f5('0x107')===this['_splitMarkerName'](_0x3dcb87['name'])[_0x90f5('0x2b')]);if(0x0===_0x2938a3['length'])return;_0x2938a3[_0x90f5('0x77')]((_0x5d5335,_0x3ab1a5)=>{const _0x141fb1=_0x5d5335[_0x90f5('0xc8')]['oldRange'],_0x22dedd=_0x3ab1a5[_0x90f5('0xc8')]['oldRange'];return null===_0x141fb1&&null===_0x22dedd?0x0:null===_0x141fb1&&null!==_0x22dedd?-0x1:null!==_0x141fb1&&null===_0x22dedd?0x1:_0x141fb1['start']['isBefore'](_0x22dedd[_0x90f5('0x57')])?-0x1:0x1;});const _0x1ae664=new Set(),_0x5dd479=new Set();for(const {name:_0x1dba5f,data:_0x15af71}of _0x2938a3){const {id:_0x26fa96}=this[_0x90f5('0x55')](_0x1dba5f);if(null===_0x15af71['oldRange']){const _0x3c637d=this[_0x90f5('0x3')](_0x1dba5f);_0x5dd479[_0x90f5('0xca')](_0x3c637d);}else{const _0x504a3=this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x26fa96);null!==_0x15af71[_0x90f5('0x76')]||_0x504a3[_0x90f5('0x45')]?(_0x1ae664[_0x90f5('0xca')](_0x504a3[_0x90f5('0x10c')]),_0x5dd479[_0x90f5('0xca')](_0x504a3)):this[_0x90f5('0xd9')](_0x504a3);}}_0x5dd479[_0x90f5('0x93')]>0x0&&this[_0x90f5('0x47')](_0x5dd479);for(const _0x360ec3 of _0x1ae664)this[_0x90f5('0x2f')](_0x90f5('0x48'),_0x360ec3);}),_0x5be522[_0x90f5('0xd8')]['on'](_0x90f5('0x67'),(_0xadd0a8,_0x529552)=>{const _0x2c6cc4=_0x529552[0x0];if(!this[_0x90f5('0x11c')][_0x90f5('0x93')])return;if(!_0x2c6cc4['isDocumentOperation'])return;if(_0x2c6cc4['batch'][_0x90f5('0x116')]||!_0x2c6cc4['batch'][_0x90f5('0x10f')])return;let _0x5646f5,_0x330874;switch(_0x2c6cc4['type']){case'insert':_0x5646f5=_0x5be522['model'][_0x90f5('0xf5')](_0x2c6cc4['position']),_0x330874=_0x5646f5[_0x90f5('0x4a')](_0x2c6cc4[_0x90f5('0xc')]);break;case _0x90f5('0x39'):_0x5646f5=_0x5be522[_0x90f5('0xd8')]['createPositionAt'](_0x2c6cc4[_0x90f5('0x1f')]),_0x330874=_0x5be522[_0x90f5('0xd8')][_0x90f5('0xf5')](_0x2c6cc4[_0x90f5('0x71')]);break;case _0x90f5('0x9'):_0x5646f5=_0x5be522[_0x90f5('0xd8')][_0x90f5('0xf5')](_0x2c6cc4[_0x90f5('0xeb')]),_0x330874=_0x5646f5[_0x90f5('0x4a')](_0x2c6cc4['howMany']);break;default:return;}const _0x280a94=_0x5be522['model']['createRange'](_0x5646f5,_0x330874);_0x5be522[_0x90f5('0xd8')][_0x90f5('0xdb')](()=>{for(const {suggestion:_0x29ffc1,meta:_0x215278}of this['_findSuggestions'](_0x280a94)){if(_0x29ffc1[_0x90f5('0x92')])continue;if(_0x90f5('0x5b')==_0x29ffc1['type'])continue;const _0x37db7e=_0x29ffc1[_0x90f5('0xc8')]&&_0x29ffc1[_0x90f5('0xc8')][_0x90f5('0x86')];(_0x90f5('0x100')!=_0x29ffc1[_0x90f5('0x8a')]||'split'==_0x2c6cc4['type']&&!_0x37db7e)&&(_0x215278[_0x90f5('0x62')]||_0x90f5('0x4f')==_0x29ffc1[_0x90f5('0x8a')]&&_0x215278[_0x90f5('0xa7')]||_0x29ffc1[_0x90f5('0x9a')]()['containsRange'](_0x280a94)&&this['_breakSuggestionMarker'](_0x29ffc1,_0x5646f5,_0x330874));}});},{'priority':'lowest'}),_0x5be522[_0x90f5('0xd8')]['on'](_0x90f5('0x84'),(_0x57b6cc,_0xb2ecd8)=>{const _0x2e902b=_0xb2ecd8[0x0],_0x4d3d41=_0xb2ecd8[0x1];if(_0x4d3d41&&_0x4d3d41['forceDefaultExecution'])return;if(this[_0x90f5('0x64')])return;if(!this[_0x90f5('0xda')][_0x90f5('0x66')])return;if(_0x2e902b[_0x90f5('0xf8')])return;const _0x1939c7=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')],{start:_0x1a7d4e,end:_0x4b1884}=_0x2e902b[_0x90f5('0x9a')](),_0x18f983=_0x1a7d4e['nodeAfter']&&_0x1939c7[_0x90f5('0xba')](_0x1a7d4e['nodeAfter'])?null:_0x1939c7[_0x90f5('0xaf')](_0x1a7d4e,_0x90f5('0x130')),_0x153d0c=_0x4b1884[_0x90f5('0x34')]&&_0x1939c7[_0x90f5('0xba')](_0x4b1884[_0x90f5('0x34')])?null:_0x1939c7[_0x90f5('0xaf')](_0x4b1884,_0x90f5('0x27')),_0x54b76b=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x98')](_0x18f983?_0x18f983[_0x90f5('0x57')]:_0x1a7d4e,_0x153d0c?_0x153d0c[_0x90f5('0x10a')]:_0x4b1884);_0x5be522[_0x90f5('0xd8')]['change'](_0x348766=>{this[_0x90f5('0x83')](_0x54b76b);const _0x18ac25=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')][_0x90f5('0xaf')](_0x54b76b['start']);_0x2e902b['is'](_0x90f5('0x63'))?_0x348766[_0x90f5('0x12d')](_0x18ac25):_0x2e902b['setTo'](_0x18ac25);}),_0x57b6cc[_0x90f5('0x42')]();},{'priority':_0x4da110[_0x90f5('0xc6')]+0xa}),_0x5be522['model']['on']('insertContent',(_0x2410e8,_0x44b1e8)=>{const _0x3356cb=_0x44b1e8[_0x44b1e8[_0x90f5('0x14')]-0x1];_0x3356cb&&_0x3356cb[_0x90f5('0x11a')]||this['_isForcedDefaultExecutionBlock']||this[_0x90f5('0xda')][_0x90f5('0x66')]&&(_0x5be522[_0x90f5('0xd8')][_0x90f5('0xdb')](()=>{let _0x5edcc8=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x19')](_0x44b1e8[0x0],_0x44b1e8[0x1],_0x44b1e8[0x2],{'forceDefaultExecution':!0x0});if(!_0x5edcc8)return;_0x2410e8[_0x90f5('0x112')]=_0x5edcc8['clone']();const _0x27e122=_0x5edcc8['end'][_0x90f5('0x34')],_0x5dcba7=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')];_0x27e122&&_0x5dcba7[_0x90f5('0xbf')](_0x27e122)&&!_0x5dcba7['isObject'](_0x27e122)&&(_0x5edcc8=_0x5be522['model'][_0x90f5('0x98')](_0x5edcc8[_0x90f5('0x57')],_0x5be522[_0x90f5('0xd8')][_0x90f5('0xf5')](_0x27e122,_0x90f5('0x10a')))),this[_0x90f5('0xf1')](_0x5edcc8);}),_0x2410e8[_0x90f5('0x42')]());},{'priority':'high'}),this[_0x90f5('0xf0')][_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0x138'),this[_0x90f5('0xda')]),this[_0x90f5('0xc0')](_0x90f5('0x138'));const _0x41a626=new _0x47ff04(_0x5be522,this[_0x90f5('0x11c')]);_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0x126'),_0x41a626),this[_0x90f5('0xc0')]('acceptSuggestion');const _0x3531aa=new _0xf961ee(_0x5be522,this[_0x90f5('0x11c')]);_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')]('discardSuggestion',_0x3531aa),this[_0x90f5('0xc0')](_0x90f5('0x12a')),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')]('acceptAllSuggestions',new _0x45267e(_0x5be522,_0x41a626,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')](_0x90f5('0x41')),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')]('discardAllSuggestions',new _0x45267e(_0x5be522,_0x3531aa,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')]('discardAllSuggestions'),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0xd6'),new _0x4fe056(_0x5be522,_0x41a626,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')](_0x90f5('0xd6')),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0xce'),new _0x4fe056(_0x5be522,_0x3531aa,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')]('discardSelectedSuggestions');const _0x2b568f=_0x5be522[_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x24'));this['listenTo'](_0x2b568f,_0x90f5('0xef'),(_0x2f3040,{threadId:_0x4cb645})=>{const _0x31678e=this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x4cb645);_0x31678e&&_0x31678e[_0x90f5('0xa3')]&&0x1===_0x31678e[_0x90f5('0xa3')]['length']&&this[_0x90f5('0x120')](_0x4cb645,{'hasComments':!0x0});},{'priority':_0x90f5('0x95')}),this[_0x90f5('0xde')](_0x2b568f,_0x90f5('0xbc'),(_0x1e9856,{threadId:_0x1f88f0})=>{const _0x2904bb=this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x1f88f0);_0x2904bb&&_0x2904bb[_0x90f5('0xa3')]&&!_0x2904bb[_0x90f5('0xa3')][_0x90f5('0x14')]&&this[_0x90f5('0x120')](_0x1f88f0,{'hasComments':!0x1});},{'priority':_0x90f5('0x95')});}set[_0x90f5('0x72')](_0x3a6d08){if(this['_adapter'])throw new _0x2719f8(_0x90f5('0x119'),this);this['_adapter']=_0x3a6d08;}get[_0x90f5('0x72')](){return this[_0x90f5('0xfe')];}['getSuggestions']({skipNotAttached:_0x24a556=!0x1,toJSON:_0x1e327a=!0x1}={}){const _0x59ff64=[];for(const _0xd3810b of this[_0x90f5('0x11c')]['values']())_0x24a556&&!_0xd3810b[_0x90f5('0x45')]||_0x59ff64[_0x90f5('0x129')](_0xd3810b);return _0x1e327a?_0x59ff64[_0x90f5('0x12')](_0x192d0c=>_0x192d0c[_0x90f5('0x125')]()):_0x59ff64;}[_0x90f5('0x13a')](_0x501c27){const _0x30172f=this['_suggestions'][_0x90f5('0xf6')](_0x501c27);if(!_0x30172f)throw new _0x2719f8(_0x90f5('0xc4'),this);return _0x30172f;}[_0x90f5('0x7')](_0x1d7dfe){return this['_suggestions'][_0x90f5('0x7a')](_0x1d7dfe);}['addSuggestionData'](_0x21208e){const {authorId:_0x58cdfc,id:_0x3332ce,attributes:_0x31482e}=_0x21208e,[_0x43284e,_0x1ac5b2]=_0x21208e[_0x90f5('0x8a')][_0x90f5('0x39')](':'),_0xf1149f=this[_0x90f5('0x11c')]['get'](_0x3332ce)||this[_0x90f5('0x7f')](_0x43284e,_0x1ac5b2,_0x3332ce,_0x58cdfc,_0x31482e);if(this[_0x90f5('0x102')](_0xf1149f),this[_0x90f5('0xed')](_0xf1149f,_0x43284e,_0x1ac5b2||null,_0x58cdfc),_0xf1149f['createdAt']=_0x21208e['createdAt'],_0x31482e&&_0x31482e['@external']){const _0x383a84=_0x31482e[_0x90f5('0x9c')],_0x37d94d=this[_0x90f5('0xf4')](_0x383a84['authorName']);_0xf1149f[_0x90f5('0x136')]=_0x383a84[_0x90f5('0x8e')],_0xf1149f['author']=_0x37d94d,_0xf1149f[_0x90f5('0xdd')]=!0x0;}else _0xf1149f[_0x90f5('0x136')]=_0x21208e[_0x90f5('0x8e')];switch(_0x21208e[_0x90f5('0xc8')]&&(_0xf1149f[_0x90f5('0xc8')]=_0x21208e[_0x90f5('0xc8')]),_0x21208e[_0x90f5('0x10')]&&(_0xf1149f['attributes']=_0x21208e[_0x90f5('0x10')]),this[_0x90f5('0xfe')]&&this[_0x90f5('0xfe')]['addSuggestion']||(_0xf1149f[_0x90f5('0x7c')]=!0x0),this[_0x90f5('0x9d')][_0x90f5('0xf6')](_0xf1149f)){case'notReady':this[_0x90f5('0x9d')]['set'](_0xf1149f,_0x90f5('0x36'));break;case _0x90f5('0x68'):_0xf1149f[_0x90f5('0x45')]?(this['_suggestionState'][_0x90f5('0x29')](_0xf1149f,_0x90f5('0x52')),this[_0x90f5('0x2f')](_0x90f5('0x8'),_0xf1149f)):this[_0x90f5('0x9d')][_0x90f5('0x29')](_0xf1149f,'removed');}return _0xf1149f;}[_0x90f5('0x126')](_0xaee483){this[_0x90f5('0x11a')](()=>{this[_0x90f5('0xf0')][_0x90f5('0xd8')][_0x90f5('0xdb')](()=>{for(const _0x29345d of _0xaee483[_0x90f5('0x22')]())_0x29345d['accept']();});});}[_0x90f5('0x12a')](_0x3cbfc4){this[_0x90f5('0x11a')](()=>{this[_0x90f5('0xf0')]['model'][_0x90f5('0xdb')](()=>{for(const _0x3d7df2 of _0x3cbfc4[_0x90f5('0x22')]())_0x3d7df2[_0x90f5('0xc7')]();});});}[_0x90f5('0xc0')](_0x55840e,_0x119b2c){const _0x54db49=this[_0x90f5('0xf0')][_0x90f5('0x30')]['get'](_0x55840e);if(!_0x54db49)throw new _0x2719f8('track-changes-command-not-found',this,{'commandName':_0x55840e});this['_enabledCommands'][_0x90f5('0xca')](_0x54db49),_0x119b2c&&_0x54db49['on'](_0x90f5('0xff'),(_0x554af5,_0x4d7b7f)=>{this[_0x90f5('0xda')][_0x90f5('0x66')]&&(this[_0x90f5('0x64')]||_0x4d7b7f[_0x90f5('0x14')]>0x0&&_0x4d7b7f[_0x4d7b7f[_0x90f5('0x14')]-0x1]&&_0x4d7b7f[_0x4d7b7f[_0x90f5('0x14')]-0x1][_0x90f5('0x11a')]||(_0x119b2c((..._0x3cec76)=>_0x54db49[_0x90f5('0xff')](..._0x3cec76,{'forceDefaultExecution':!0x0}),..._0x4d7b7f),_0x554af5[_0x90f5('0x42')]()));},{'priority':_0x90f5('0x89')});}[_0x90f5('0x11a')](_0x10a2d3){let _0x4d208d,_0xcad224;const _0x56db93=this[_0x90f5('0x64')];this[_0x90f5('0x64')]=!0x0;try{_0x4d208d=_0x10a2d3();}catch(_0x208c4d){_0xcad224=_0x208c4d;}return _0x56db93||(this[_0x90f5('0x64')]=!0x1),_0xcad224&&_0x2719f8['rethrowUnexpectedError'](_0xcad224,this),_0x4d208d;}['markInsertion'](_0x5282e7,_0xcb2273=null,_0x177619={}){if(_0x5282e7['isCollapsed'])return null;const _0xb9174c=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'];for(const {suggestion:_0x24d2cf,meta:_0x377605}of this[_0x90f5('0x25')](_0x5282e7,_0x90f5('0x4f')))if(_0x377605[_0x90f5('0xa7')]){if(!_0x377605[_0x90f5('0x8f')]){if(!this[_0x90f5('0x111')]&&_0x377605['containsRangeInObject'])continue;return _0x24d2cf;}if(_0xcb2273==_0x24d2cf[_0x90f5('0x3a')]){const _0x3ed23e=_0x24d2cf[_0x90f5('0x9a')]();return _0x3ed23e[_0x90f5('0x57')][_0x90f5('0xec')](_0x5282e7['end'])?this[_0x90f5('0x11e')](_0x24d2cf,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x5282e7['start'],_0x3ed23e[_0x90f5('0x10a')])):this[_0x90f5('0x11e')](_0x24d2cf,this['_model'][_0x90f5('0x98')](_0x3ed23e[_0x90f5('0x57')],_0x5282e7[_0x90f5('0x10a')])),_0x24d2cf;}}const _0x42c979=_0x4c2669(),_0xf09b16=_0xb9174c['id'],_0x1a6535=_0xcb2273?_0x90f5('0xb7')+_0xcb2273:_0x90f5('0x4f'),_0x2635b4=this['_setSuggestionData']({'id':_0x42c979,'type':_0x1a6535,'createdAt':new Date(),'authorId':_0xf09b16,'attributes':_0x177619});return this[_0x90f5('0x16')](_0x1a6535,_0x42c979,_0xf09b16,_0x5282e7),_0x2635b4;}[_0x90f5('0xac')](_0x28cb14,_0x4459f3='multi',_0x27b696={}){const _0x140a91=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0x1db2e8=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x4f'),_0x4459f3,_0x90f5('0x6a'));for(const _0x6ddb7c of this[_0x90f5('0x123')]())if(_0x6ddb7c[_0x90f5('0x99')]['id']==_0x140a91['id']&&_0x90f5('0x4f')==_0x6ddb7c[_0x90f5('0x8a')]&&_0x6ddb7c[_0x90f5('0x3a')]==_0x4459f3&&(_0x1db2e8(_0x6ddb7c[_0x90f5('0x40')](),_0x28cb14)||_0x1db2e8(_0x28cb14,_0x6ddb7c[_0x90f5('0x40')]()))){for(const _0x43375b of _0x28cb14)_0x6ddb7c[_0x90f5('0x12e')](_0x43375b);return _0x6ddb7c;}if(this['_mergeNestedSuggestions'])for(const _0x3ee394 of _0x28cb14)for(const {suggestion:_0x447288,meta:_0x49aa86}of this[_0x90f5('0x25')](_0x3ee394,'insertion')){if(!_0x49aa86[_0x90f5('0xa7')])continue;let _0x3cc15d=!0x0;for(const _0x2a94c6 of _0x447288[_0x90f5('0x40')]())for(const _0x5c8be6 of _0x28cb14)if(!_0x2a94c6[_0x90f5('0x78')](_0x5c8be6)){_0x3cc15d=!0x1;break;}if(_0x3cc15d)return _0x447288;}const _0x31164f=_0x4c2669(),_0x26a797=_0x140a91['id'],_0x1a17a3=_0x90f5('0xb7')+_0x4459f3,_0x293795=this[_0x90f5('0x4')]({'id':_0x31164f,'type':_0x1a17a3,'createdAt':new Date(),'authorId':_0x26a797,'attributes':_0x27b696});for(const _0x11e00b of _0x28cb14)this[_0x90f5('0x16')](_0x1a17a3,_0x31164f,_0x26a797,_0x11e00b,_0x1600fa[_0x90f5('0x5e')]());return _0x293795;}['markInlineFormat'](_0x3b6abd,_0x40dc78,_0x53e0d0=null,_0x44027b={}){if(_0x53e0d0=_0x53e0d0||$t(_0x40dc78),_0x3b6abd[_0x90f5('0xf8')])return null;if(_0x90f5('0x4d')===this['_trackFormatChanges']){const _0x7019ef=this[_0x90f5('0x124')][_0x90f5('0x6e')]('formatInline',_0x53e0d0,_0x90f5('0xb1'));return this['forceDefaultExecution'](()=>_0x7019ef([_0x3b6abd],_0x40dc78,_0x44027b)),null;}const _0x4ced05=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0x24d497=[];if(_0x90f5('0x8c')!==this[_0x90f5('0x132')])for(const {suggestion:_0x141022,meta:_0x291281}of this[_0x90f5('0x25')](_0x3b6abd,_0x90f5('0x4f')))_0x291281[_0x90f5('0xa7')]&&!_0x291281[_0x90f5('0xf2')]&&_0x24d497[_0x90f5('0x129')](..._0x141022[_0x90f5('0x40')]());const _0x2431f6=function(_0x45f67b,_0x4d6d80){const _0x5a3ebb=[];for(const _0x280d5e of _0x4d6d80){const _0x103810=_0x45f67b[_0x90f5('0x6d')](_0x280d5e);_0x103810&&_0x5a3ebb[_0x90f5('0x129')](_0x103810);}return _0x5a3ebb;}(_0x3b6abd,_0x24d497),_0x63b616=function(_0x5a63da,_0x381b56){const _0x2566e9=[_0x5a63da];for(const _0x5c9166 of _0x381b56){let _0x234466=0x0;for(;_0x234466<_0x2566e9['length'];){const _0x1206db=_0x2566e9[_0x234466][_0x90f5('0x114')](_0x5c9166);_0x2566e9[_0x90f5('0xc1')](_0x234466,0x1,..._0x1206db),_0x234466+=_0x1206db[_0x90f5('0x14')];}}return _0x2566e9;}(_0x3b6abd,_0x24d497);_0x2431f6['length']&&this[_0x90f5('0x46')][_0x90f5('0xdb')](()=>{for(const _0x535611 of _0x2431f6){const _0x3281fb=this[_0x90f5('0x124')]['getSuggestionCallback'](_0x90f5('0x5b'),_0x53e0d0,_0x90f5('0xb1'));this['forceDefaultExecution'](()=>_0x3281fb([_0x535611],_0x40dc78,_0x44027b));}});for(const _0x3fff84 of _0x63b616){let _0x31b2f9=null,_0x7d94de=_0x3fff84[_0x90f5('0x57')],_0x2881e9=_0x3fff84[_0x90f5('0x10a')];for(const {suggestion:_0x30b937,meta:_0x1e9d14}of this['_findSuggestions'](_0x3fff84,_0x90f5('0x5b'))){if(!_0x1e9d14[_0x90f5('0xa7')])continue;if(_0x30b937['subType']!=_0x53e0d0)continue;const _0x344590=_0x30b937['getFirstRange']();if(_0x344590[_0x90f5('0x78')](_0x3fff84,!0x0))return null;_0x7d94de=_0x7d94de[_0x90f5('0xe4')](_0x344590[_0x90f5('0x57')])?_0x7d94de:_0x344590[_0x90f5('0x57')],_0x2881e9=_0x2881e9[_0x90f5('0xa')](_0x344590['end'])?_0x2881e9:_0x344590[_0x90f5('0x10a')],_0x31b2f9?_0x344590[_0x90f5('0x57')][_0x90f5('0xe4')](_0x31b2f9['getFirstRange']()[_0x90f5('0x57')])?(_0x31b2f9[_0x90f5('0x3e')](),_0x31b2f9=_0x30b937):_0x30b937[_0x90f5('0x3e')]():_0x31b2f9=_0x30b937;}const _0x23476f=this['_model'][_0x90f5('0x98')](_0x7d94de,_0x2881e9);if(_0x31b2f9)this[_0x90f5('0x11e')](_0x31b2f9,_0x23476f);else{const _0x62339a=_0x4c2669(),_0x43f270=_0x4ced05['id'];this[_0x90f5('0x4')]({'id':_0x62339a,'type':_0x90f5('0x2c')+_0x53e0d0,'data':_0x40dc78,'createdAt':new Date(),'authorId':_0x43f270,'attributes':_0x44027b}),this[_0x90f5('0x16')]('formatInline:'+_0x53e0d0,_0x62339a,_0x43f270,_0x23476f);}}return null;}[_0x90f5('0x2')](_0x1070ac,_0x8114b,_0x316017=[],_0x5808b5=null,_0x109a6d={}){_0x8114b[_0x90f5('0xf7')]||(_0x8114b[_0x90f5('0xf7')]=_0x8114b[_0x90f5('0x1a')]),_0x8114b[_0x90f5('0x86')]=_0x1070ac['is'](_0x90f5('0x74')),_0x5808b5=_0x5808b5||$t(_0x8114b);const _0x4e5fb8=_0x316017[_0x90f5('0x12')](_0x22280a=>Rt(_0x22280a,this[_0x90f5('0x46')])),_0x5d69e4=_0x1070ac['is']('range')?_0x1070ac:Rt(_0x1070ac,this[_0x90f5('0x46')]);if('never'===this[_0x90f5('0x132')]){const _0x5497e7=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x100'),_0x5808b5,_0x90f5('0xb1'));return this[_0x90f5('0x11a')](()=>_0x5497e7([_0x5d69e4],_0x8114b,_0x109a6d)),null;}_0x4e5fb8[_0x90f5('0x129')](_0x5d69e4);let _0x2e77ba=!0x0;for(const _0x505040 of _0x4e5fb8)if(!this[_0x90f5('0xe0')](_0x505040)){_0x2e77ba=!0x1;break;}if(_0x2e77ba&&_0x90f5('0x8c')!==this[_0x90f5('0x132')]){const _0x49543f=this['_suggestionFactory'][_0x90f5('0x6e')]('formatBlock',_0x5808b5,_0x90f5('0xb1'));return this[_0x90f5('0x11a')](()=>_0x49543f([_0x5d69e4],_0x8114b,_0x109a6d)),null;}let _0x141403=null,_0x431f52=_0x5d69e4[_0x90f5('0x57')],_0x2bf14c=_0x5d69e4[_0x90f5('0x10a')];for(const {suggestion:_0x4a1fea,meta:_0x29e453}of this['_findSuggestions'](_0x5d69e4,_0x90f5('0x100'))){if(!_0x29e453[_0x90f5('0xa7')]||_0x29e453[_0x90f5('0x8f')]||_0x29e453['containsRangeInObject']||_0x29e453[_0x90f5('0xf2')])continue;if(_0x4a1fea['data'][_0x90f5('0xf7')]!=_0x8114b[_0x90f5('0xf7')])continue;const _0x9f1673=_0x4a1fea['getFirstRange']();if(_0x4a1fea['subType']==_0x5808b5){if(_0x9f1673[_0x90f5('0x78')](_0x5d69e4,!0x0))return null;_0x431f52=_0x431f52[_0x90f5('0xe4')](_0x9f1673['start'])?_0x431f52:_0x9f1673[_0x90f5('0x57')],_0x2bf14c=_0x2bf14c['isAfter'](_0x9f1673['end'])?_0x2bf14c:_0x9f1673[_0x90f5('0x10a')],_0x141403?_0x9f1673['start']['isBefore'](_0x141403['getFirstRange']()[_0x90f5('0x57')])?(_0x141403[_0x90f5('0x3e')](),_0x141403=_0x4a1fea):_0x4a1fea[_0x90f5('0x3e')]():_0x141403=_0x4a1fea;}else{const _0x42ca11=_0x5d69e4['getIntersection'](_0x9f1673);this[_0x90f5('0x12c')](_0x4a1fea,_0x42ca11);}}const _0x337a00=this[_0x90f5('0xf0')]['plugins']['get'](_0x90f5('0x2d'))['me'],_0x28bfcf=_0x4c2669(),_0x14f7db=_0x337a00['id'];if(_0x141403)return this[_0x90f5('0x11e')](_0x141403,this['_model'][_0x90f5('0x98')](_0x431f52,_0x2bf14c)),_0x141403;{const _0x19c6ce=this[_0x90f5('0x4')]({'id':_0x28bfcf,'type':_0x90f5('0x131')+_0x5808b5,'data':_0x8114b,'createdAt':new Date(),'authorId':_0x14f7db,'attributes':_0x109a6d});return this[_0x90f5('0x16')](_0x90f5('0x131')+_0x5808b5,_0x28bfcf,_0x14f7db,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x431f52,_0x2bf14c)),_0x19c6ce;}}[_0x90f5('0x28')](_0x4640e2,_0x4df877,_0x2addb6=[],_0x1f13c6=null,_0x360200={}){_0x4df877['formatGroupId']||(_0x4df877['formatGroupId']=_0x4df877[_0x90f5('0x1a')]);const _0x285c30=_0x4640e2[0x0];_0x4df877[_0x90f5('0x86')]=_0x285c30['is'](_0x90f5('0x74')),_0x1f13c6=_0x1f13c6||$t(_0x4df877);const _0x578f40=_0x2addb6[_0x90f5('0x12')](_0x352f36=>Rt(_0x352f36,this[_0x90f5('0x46')])),_0x346bb0=_0x285c30['is'](_0x90f5('0x74'))?_0x4640e2:_0x4640e2[_0x90f5('0x12')](_0x21f500=>Rt(_0x21f500,this[_0x90f5('0x46')]));if(_0x90f5('0x4d')===this[_0x90f5('0x132')]){const _0x56fd63=this['_suggestionFactory'][_0x90f5('0x6e')](_0x90f5('0x100'),_0x1f13c6,_0x90f5('0xb1'));return this[_0x90f5('0x11a')](()=>_0x56fd63(_0x346bb0,_0x4df877,_0x360200)),null;}_0x578f40[_0x90f5('0x129')](..._0x346bb0);let _0xf59097=!0x0;for(const _0x26e3e1 of _0x578f40)if(!this[_0x90f5('0xe0')](_0x26e3e1)){_0xf59097=!0x1;break;}if(_0xf59097&&_0x90f5('0x8c')!==this[_0x90f5('0x132')]){const _0x4b4d03=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x100'),_0x1f13c6,_0x90f5('0xb1'));return this['forceDefaultExecution'](()=>_0x4b4d03(_0x346bb0,_0x4df877,_0x360200)),null;}const _0x34a637=this['editor'][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'];for(const _0x4dca5e of this['getSuggestions']()){if(_0x4dca5e[_0x90f5('0x99')]['id']!=_0x34a637['id'])continue;if('formatBlock'!=_0x4dca5e[_0x90f5('0x8a')]||_0x4dca5e['data']['formatGroupId']!=_0x4df877['formatGroupId'])continue;const _0x5cbbba=_0x4dca5e[_0x90f5('0x3a')]==_0x1f13c6;for(let _0x3fdf28=0x0;_0x3fdf28<_0x346bb0[_0x90f5('0x14')];_0x3fdf28++){const _0x2b6309=_0x346bb0[_0x3fdf28];for(const _0x2595fe of _0x4dca5e[_0x90f5('0x49')]()){const _0x3bb97a=_0x2595fe[_0x90f5('0xb')]();if(_0x2b6309['isEqual'](_0x3bb97a)){_0x5cbbba?(_0x346bb0[_0x90f5('0xc1')](_0x3fdf28,0x1),_0x3fdf28--):_0x4dca5e[_0x90f5('0xbb')](_0x2595fe[_0x90f5('0x61')]);break;}}}}if(0x0==_0x346bb0['length'])return null;const _0x2bb898=this['_suggestionFactory'][_0x90f5('0x6e')](_0x90f5('0x100'),_0x1f13c6,_0x90f5('0x6a'));for(const _0x2cfb38 of this[_0x90f5('0x123')]())if(_0x2cfb38['author']['id']==_0x34a637['id']&&_0x90f5('0x100')==_0x2cfb38[_0x90f5('0x8a')]&&_0x2cfb38[_0x90f5('0xc8')][_0x90f5('0xf7')]==_0x4df877['formatGroupId']&&_0x2cfb38[_0x90f5('0x3a')]==_0x1f13c6&&(_0x2bb898(_0x2cfb38['getRanges'](),_0x346bb0)||_0x2bb898(_0x346bb0,_0x2cfb38[_0x90f5('0x40')]()))){for(const _0x523a85 of _0x346bb0)_0x2cfb38[_0x90f5('0x12e')](_0x523a85);return _0x2cfb38;}const _0xd77436=_0x4c2669(),_0x25c99a=_0x34a637['id'],_0x7d60c6=_0x90f5('0x131')+_0x1f13c6,_0x348a24=this[_0x90f5('0x4')]({'id':_0xd77436,'type':_0x7d60c6,'data':_0x4df877,'createdAt':new Date(),'authorId':_0x25c99a,'attributes':_0x360200});for(const _0x445a08 of _0x346bb0)this[_0x90f5('0x16')](_0x7d60c6,_0xd77436,_0x25c99a,_0x445a08,_0x1600fa[_0x90f5('0x5e')]());return _0x348a24;}[_0x90f5('0x83')](_0x7a2746,_0x12a3ff=null,_0x3dda72={}){if(_0x7a2746[_0x90f5('0xf8')])return null;const _0x21d3dd=this[_0x90f5('0xf0')]['plugins'][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0xd0dd7=new _0x1bb84e(_0x7a2746[_0x90f5('0x57')],_0x7a2746[_0x90f5('0x10a')]);for(const {suggestion:_0x41517a,meta:_0x1fa13f}of this['_findSuggestions'](_0xd0dd7,_0x90f5('0x4f')))if(_0x1fa13f[_0x90f5('0xa7')]&&!_0x1fa13f[_0x90f5('0x8f')]){if(_0x41517a[_0x90f5('0x92')]){const _0x307af3=_0x41517a['getRanges']()[_0x90f5('0xee')](_0x55d863=>_0x90f5('0xc9')!=_0x55d863[_0x90f5('0xa0')][_0x90f5('0x9b')]);_0x307af3[_0x90f5('0x1c')](_0x12d1e4=>_0xd0dd7[_0x90f5('0x78')](_0x12d1e4,!0x0))&&_0x41517a[_0x90f5('0xc7')]();if(_0x307af3[_0x90f5('0xe9')](_0x387093=>_0x387093['containsRange'](_0xd0dd7,!0x0))){const _0x47e99b=this[_0x90f5('0x124')]['getSuggestionCallback'](_0x90f5('0x94'),_0x12a3ff,'accept');return this[_0x90f5('0x11a')](()=>_0x47e99b([_0xd0dd7],null,_0x3dda72)),null;}}else{const _0x3c1af9=_0xd0dd7[_0x90f5('0x6d')](_0x41517a[_0x90f5('0x9a')]());null!==_0x3c1af9&&_0x41517a['_onDiscard']([_0x3c1af9],null,_0x3dda72);}}if(_0xd0dd7['detach'](),_0xd0dd7[_0x90f5('0xf8')]||_0x90f5('0xc9')==_0xd0dd7[_0x90f5('0xa0')][_0x90f5('0x9b')])return null;let _0x459d63=null,_0xaf974d=_0xd0dd7[_0x90f5('0x57')],_0x492003=_0xd0dd7['end'];for(const {suggestion:_0x176f30,meta:_0x1e7023}of this[_0x90f5('0x25')](_0xd0dd7,_0x90f5('0x94')))if(_0x1e7023['isOwn']){if(_0x176f30[_0x90f5('0x92')]&&this[_0x90f5('0x111')]){let _0x583e92=!0x0;for(const _0x11c2db of _0x176f30[_0x90f5('0x40')]()){if(_0x11c2db[_0x90f5('0x78')](_0xd0dd7,!0x0))return _0x176f30;_0xd0dd7[_0x90f5('0x78')](_0x11c2db)||(_0x583e92=!0x1);}_0x583e92&&_0x176f30[_0x90f5('0xc7')]();}else{const _0x4f1195=_0x176f30[_0x90f5('0x9a')]();if(_0x4f1195[_0x90f5('0x78')](_0xd0dd7,!0x0)){if(!this[_0x90f5('0x111')]&&_0x1e7023[_0x90f5('0x62')])continue;return _0x176f30;}_0xaf974d=_0xaf974d[_0x90f5('0xe4')](_0x4f1195['start'])?_0xaf974d:_0x4f1195[_0x90f5('0x57')],_0x492003=_0x492003[_0x90f5('0xa')](_0x4f1195[_0x90f5('0x10a')])?_0x492003:_0x4f1195['end'],_0x459d63?_0x4f1195['start']['isBefore'](_0x459d63[_0x90f5('0x9a')]()[_0x90f5('0x57')])?(_0x459d63[_0x90f5('0x3e')](),_0x459d63=_0x176f30):_0x176f30[_0x90f5('0x3e')]():_0x459d63=_0x176f30;}}if(_0x459d63)return this[_0x90f5('0x11e')](_0x459d63,this[_0x90f5('0x46')][_0x90f5('0x98')](_0xaf974d,_0x492003)),_0x459d63;{const _0x327e95=_0x4c2669(),_0x48ce13=this[_0x90f5('0x46')]['createRange'](_0xaf974d,_0x492003),_0x294fa7=_0x21d3dd['id'],_0x1cbf21=_0x12a3ff?_0x90f5('0x50')+_0x12a3ff:_0x90f5('0x94'),_0x31b396=this[_0x90f5('0x4')]({'id':_0x327e95,'type':_0x1cbf21,'createdAt':new Date(),'authorId':_0x294fa7,'attributes':_0x3dda72});return this[_0x90f5('0x16')](_0x1cbf21,_0x327e95,_0x294fa7,_0x48ce13),_0x31b396;}}[_0x90f5('0x65')](_0x20c509,_0x37b907=_0x90f5('0x10b'),_0x253fea={}){const _0x4a0530=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0x37bf53=_0x20c509[_0x90f5('0x12')](_0x4648ac=>new _0x1bb84e(_0x4648ac[_0x90f5('0x57')],_0x4648ac[_0x90f5('0x10a')])),_0x38e127=new Set();for(const _0xf2bdda of _0x37bf53)for(const {suggestion:_0x4964b0,meta:_0x34eaa9}of this[_0x90f5('0x25')](_0xf2bdda,'insertion'))_0x34eaa9[_0x90f5('0xa7')]&&!_0x34eaa9[_0x90f5('0x8f')]&&_0x38e127[_0x90f5('0xca')](_0x4964b0);for(const _0x581c76 of _0x38e127)if(_0x581c76[_0x90f5('0x92')]){const _0x4f6926=_0x581c76[_0x90f5('0x40')]();(!_0x581c76[_0x90f5('0x10')]||!_0x581c76['attributes'][_0x90f5('0xd2')])&&(_0x4f6926[_0x90f5('0x1c')](_0x1ba5c8=>_0x37bf53['some'](_0x5a1cb3=>_0x5a1cb3['containsRange'](_0x1ba5c8,!0x0)))&&_0x581c76[_0x90f5('0xc7')]());if(_0x37bf53[_0x90f5('0x1c')](_0x4ac5de=>_0x4f6926[_0x90f5('0xe9')](_0x494ae7=>_0x494ae7[_0x90f5('0x78')](_0x4ac5de,!0x0)))){const _0x5a0c11=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x94'),_0x37b907,'accept');return this['forceDefaultExecution'](()=>_0x5a0c11(_0x20c509,null,_0x253fea)),null;}}else{const _0x2bbca0=_0x581c76[_0x90f5('0x9a')]();_0x37bf53[_0x90f5('0xe9')](_0x4a4aa9=>_0x4a4aa9[_0x90f5('0x78')](_0x2bbca0,!0x0))&&_0x581c76[_0x90f5('0xc7')]();if(_0x37bf53[_0x90f5('0x1c')](_0x244e2b=>_0x2bbca0[_0x90f5('0x78')](_0x244e2b,!0x0))){const _0x483b74=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x94'),_0x37b907,_0x90f5('0xb1'));return this['forceDefaultExecution'](()=>_0x483b74(_0x37bf53,null,_0x253fea)),null;}}const _0x23d726=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x94'),_0x37b907,'join');let _0x2546ed=null;for(const _0x4f5ee5 of this[_0x90f5('0x123')]())if(_0x4f5ee5['author']['id']==_0x4a0530['id']&&_0x4f5ee5[_0x90f5('0x45')]&&'deletion'==_0x4f5ee5[_0x90f5('0x8a')]&&_0x4f5ee5['subType']==_0x37b907&&(_0x23d726(_0x4f5ee5['getRanges'](),_0x37bf53)||_0x23d726(_0x37bf53,_0x4f5ee5[_0x90f5('0x40')]()))){if(_0x2546ed){if(_0x4f5ee5[_0x90f5('0xa3')]&&_0x4f5ee5[_0x90f5('0xa3')]['length'])continue;for(const _0x3108aa of _0x4f5ee5[_0x90f5('0x40')]())_0x2546ed[_0x90f5('0xd5')](_0x3108aa)||_0x2546ed[_0x90f5('0x12e')](_0x3108aa);_0x4f5ee5[_0x90f5('0x3e')]();}else{_0x2546ed=_0x4f5ee5;for(const _0x36f445 of _0x37bf53)_0x4f5ee5[_0x90f5('0xd5')](_0x36f445)||_0x4f5ee5[_0x90f5('0x12e')](_0x36f445);}}if(_0x2546ed)return _0x2546ed;_0x38e127['clear']();for(const _0x28c641 of _0x37bf53)for(const {suggestion:_0x3a0613,meta:_0x3de4d2}of this['_findSuggestions'](_0x28c641,_0x90f5('0x94')))_0x3de4d2[_0x90f5('0xa7')]&&_0x38e127['add'](_0x3a0613);for(const _0x4ebc3d of _0x38e127){const _0x200c6f=_0x4ebc3d[_0x90f5('0x40')]();if(!_0x253fea||!_0x253fea[_0x90f5('0xd2')]){if(_0x37bf53[_0x90f5('0x1c')](_0x46d3ca=>_0x200c6f[_0x90f5('0xe9')](_0x4a81de=>_0x4a81de['containsRange'](_0x46d3ca,!0x0))))return _0x4ebc3d;}(!_0x4ebc3d[_0x90f5('0x10')]||!_0x4ebc3d[_0x90f5('0x10')][_0x90f5('0xd2')])&&(_0x200c6f['every'](_0x5c6b2a=>_0x37bf53[_0x90f5('0xe9')](_0x2c208a=>_0x2c208a[_0x90f5('0x78')](_0x5c6b2a,!0x0)))&&_0x4ebc3d[_0x90f5('0xc7')]());}const _0x5ca645=_0x4c2669(),_0x260386=_0x4a0530['id'],_0x48cbf5=_0x90f5('0x50')+_0x37b907,_0x6bcbdb=this[_0x90f5('0x4')]({'id':_0x5ca645,'type':_0x48cbf5,'createdAt':new Date(),'authorId':_0x260386,'attributes':_0x253fea});for(const _0x403b15 of _0x37bf53)_0x403b15[_0x90f5('0x10e')](),_0x403b15[_0x90f5('0xf8')]||_0x90f5('0xc9')==_0x403b15[_0x90f5('0xa0')][_0x90f5('0x9b')]||this[_0x90f5('0x16')](_0x48cbf5,_0x5ca645,_0x260386,_0x403b15,_0x1600fa[_0x90f5('0x5e')]());return _0x6bcbdb;}[_0x90f5('0x11e')](_0x1c4e47,_0x357a45){const _0xd2ce03=_0x1c4e47[_0x90f5('0x134')]();this[_0x90f5('0x46')][_0x90f5('0xdb')](_0x293e9d=>{_0x293e9d[_0x90f5('0x121')](_0xd2ce03,{'range':_0x357a45});});}[_0x90f5('0x102')](_0x2e6930){const _0x5b5e5=_0x2e6930['id'],_0x5ef03a=this[_0x90f5('0xf0')][_0x90f5('0xb6')][_0x90f5('0xf6')](_0x90f5('0x122'));this['_commentsRepository'][_0x90f5('0x117')](_0x5b5e5)||this['_commentsRepository'][_0x90f5('0x11d')]({'channelId':_0x5ef03a,'threadId':_0x5b5e5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cadd6=this[_0x90f5('0x139')][_0x90f5('0x13')](_0x5b5e5);_0x1cadd6[_0x90f5('0x4b')]('isRemovable'),_0x1cadd6[_0x90f5('0x108')]=!0x1,_0x2e6930[_0x90f5('0xa3')]=_0x1cadd6;}[_0x90f5('0xed')](_0xf5d35c,_0x43642c,_0xecd80b,_0x449b87){if(_0xf5d35c['type']!=_0x43642c||_0xf5d35c[_0x90f5('0x3a')]!=_0xecd80b||_0xf5d35c[_0x90f5('0x4e')]['id']!=_0x449b87)throw this[_0x90f5('0xf0')]['enableReadOnlyMode'](_0x90f5('0xd')),new _0x2719f8(_0x90f5('0xd'),this);}[_0x90f5('0x12c')](_0x29965e,_0x13241f){const _0x4d44c2=_0x29965e[_0x90f5('0x9a')]();if(_0x13241f[_0x90f5('0xec')](_0x4d44c2))_0x29965e['removeMarkers']();else{if(_0x4d44c2['containsRange'](_0x13241f)){const _0xf2828b=this[_0x90f5('0x46')][_0x90f5('0xf5')](_0x13241f[_0x90f5('0x57')][_0x90f5('0x34')],_0x90f5('0x10a'));this[_0x90f5('0x11e')](_0x29965e,this['_model'][_0x90f5('0x98')](_0x4d44c2[_0x90f5('0x57')],_0xf2828b));const _0x1ecd37=_0x4c2669(),_0x920af1=_0x29965e['creator']['id'],_0x2fab8c=_0x29965e[_0x90f5('0x8a')]+':'+_0x29965e[_0x90f5('0x3a')];this['_setSuggestionData']({'id':_0x1ecd37,'type':_0x2fab8c,'createdAt':new Date(),'authorId':_0x920af1,'data':_0x29965e[_0x90f5('0xc8')],'attributes':_0x29965e[_0x90f5('0x10')]});const _0xb2a237=this[_0x90f5('0x46')]['createPositionAt'](_0x13241f[_0x90f5('0x10a')][_0x90f5('0x115')],_0x90f5('0xd7')),_0x1f8afd=this[_0x90f5('0x46')][_0x90f5('0x98')](_0xb2a237,_0x4d44c2[_0x90f5('0x10a')]);this['_addSuggestionMarker'](_0x2fab8c,_0x1ecd37,_0x920af1,_0x1f8afd);}else{if(_0x4d44c2[_0x90f5('0xe2')](_0x13241f['start'])){const _0x143aa8=this[_0x90f5('0x46')][_0x90f5('0xf5')](_0x13241f[_0x90f5('0x57')][_0x90f5('0x34')],'end');this[_0x90f5('0x11e')](_0x29965e,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x4d44c2[_0x90f5('0x57')],_0x143aa8));}else{const _0x4b2525=this[_0x90f5('0x46')][_0x90f5('0xf5')](_0x13241f[_0x90f5('0x10a')][_0x90f5('0x115')],_0x90f5('0xd7'));this[_0x90f5('0x11e')](_0x29965e,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x4b2525,_0x4d44c2[_0x90f5('0x10a')]));}}}}['_rangeIsInLocalUserInsertion'](_0x3870ab){for(const {suggestion:_0x1555f5,meta:_0x479434}of this[_0x90f5('0x25')](_0x3870ab,_0x90f5('0x4f'))){if(!_0x479434[_0x90f5('0xa7')])continue;const _0x446d0e=_0x1555f5[_0x90f5('0x40')]();for(const _0x10a282 of _0x446d0e)if(!_0x3870ab[_0x90f5('0x114')](_0x10a282)[_0x90f5('0x14')])return!0x0;}return!0x1;}[_0x90f5('0x137')](_0x348469){const _0x1c7564=this[_0x90f5('0xf0')][_0x90f5('0x104')]['get'](_0x90f5('0x2d'))[_0x90f5('0xad')](_0x348469);if(!_0x1c7564)throw new _0x2719f8(_0x90f5('0x58'),this);return _0x1c7564;}[_0x90f5('0xf4')](_0x549bc5){const _0x22ee39=this['editor'][_0x90f5('0x104')]['get'](_0x90f5('0x2d')),_0x13cd05=_0x1db92d(_0x90f5('0xcf')+_0x549bc5),_0x2d94ac=_0x22ee39['getUser'](_0x13cd05);return _0x2d94ac||_0x22ee39[_0x90f5('0x5c')]({'id':_0x13cd05,'name':_0x549bc5});}[_0x90f5('0x7f')](_0x23edb9,_0x4abbd4,_0x5d273e,_0x21f57e,_0x4af571){const _0x5ea82d=this[_0x90f5('0x137')](_0x21f57e),_0x1229ec=this[_0x90f5('0x124')][_0x90f5('0x5d')](_0x23edb9,_0x4abbd4,_0x5d273e,_0x5ea82d,_0x4af571,_0x3585a4=>this[_0x90f5('0x120')](_0x5d273e,{'attributes':_0x3585a4}));return this[_0x90f5('0xde')](_0x1229ec,_0x90f5('0xb1'),()=>{this[_0x90f5('0x120')](_0x5d273e,{'state':'accepted'});},{'priority':'high'}),this[_0x90f5('0xde')](_0x1229ec,_0x90f5('0xc7'),()=>{this[_0x90f5('0x120')](_0x5d273e,{'state':'rejected'});},{'priority':_0x90f5('0x89')}),this[_0x90f5('0x11c')][_0x90f5('0x29')](_0x5d273e,_0x1229ec),this[_0x90f5('0x9d')][_0x90f5('0x29')](_0x1229ec,_0x90f5('0xbd')),_0x1229ec;}[_0x90f5('0x55')](_0x578311){const _0x345034=_0x578311[_0x90f5('0x39')](':');return{'group':_0x345034[0x0],'type':_0x345034[0x1],'subType':_0x345034[_0x90f5('0x14')]>=0x5?_0x345034[0x2]:null,'id':_0x345034[_0x90f5('0x14')]<0x5?_0x345034[0x2]:_0x345034[0x3],'authorId':_0x345034[_0x90f5('0x14')]<0x5?_0x345034[0x3]:_0x345034[0x4],'markerCount':0x6==_0x345034[_0x90f5('0x14')]?_0x345034[0x5]:null};}[_0x90f5('0x110')](_0x5eabd6,_0x2bac49,_0x552a5e){const _0x4c0161=_0x5eabd6['getFirstRange'](),_0xb6d74d=_0x4c0161[_0x90f5('0x57')],_0x4cca4a=_0x4c0161[_0x90f5('0x10a')];this[_0x90f5('0x11e')](_0x5eabd6,this[_0x90f5('0x46')][_0x90f5('0x98')](_0xb6d74d,_0x2bac49));const _0x1766ee=_0x4c2669(),_0x5cce90=_0x5eabd6[_0x90f5('0x4e')]['id'],_0x1d231c=_0x5eabd6[_0x90f5('0x8a')]+(_0x5eabd6['subType']?':'+_0x5eabd6['subType']:'');this[_0x90f5('0x4')]({'id':_0x1766ee,'type':_0x1d231c,'createdAt':new Date(),'authorId':_0x5cce90,'originalSuggestionId':_0x5eabd6['id'],'attributes':_0x5eabd6[_0x90f5('0x10')],'data':_0x5eabd6[_0x90f5('0xc8')]}),_0x90f5('0x100')==_0x5eabd6[_0x90f5('0x8a')]&&(_0x552a5e=this[_0x90f5('0x46')][_0x90f5('0xc5')](_0x552a5e['parent'])),this[_0x90f5('0x16')](_0x1d231c,_0x1766ee,_0x5cce90,this[_0x90f5('0x46')]['createRange'](_0x552a5e,_0x4cca4a));}[_0x90f5('0x25')](_0x58b543,_0x56d15a=null){const _0x16605e=[],_0x9425b1=this[_0x90f5('0x46')][_0x90f5('0x6b')],_0x59564c=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'];for(const _0xabc02b of this[_0x90f5('0x123')]())if(_0xabc02b[_0x90f5('0x45')]&&(!_0x56d15a||_0xabc02b[_0x90f5('0x8a')]==_0x56d15a))for(const _0x351ce0 of _0xabc02b['getRanges']()){const _0x3a22b4=_0x58b543['start'][_0x90f5('0xec')](_0x351ce0[_0x90f5('0x10a')])||_0x58b543[_0x90f5('0x10a')][_0x90f5('0xec')](_0x351ce0[_0x90f5('0x57')]);if(_0x3a22b4||_0x58b543['getIntersection'](_0x351ce0)){const _0x2e73ec=_0x58b543[_0x90f5('0x78')](_0x351ce0)&&Bt(_0x9425b1,_0x351ce0['start'],_0x58b543),_0x5d93bd=_0x351ce0[_0x90f5('0x78')](_0x58b543)&&Bt(_0x9425b1,_0x58b543[_0x90f5('0x57')],_0x351ce0);_0x16605e['push']({'suggestion':_0xabc02b,'meta':{'isOwn':_0x59564c==_0xabc02b[_0x90f5('0x99')],'isNextTo':_0x3a22b4,'isInsideObject':_0x2e73ec,'containsRangeInObject':_0x5d93bd}});break;}}return _0x16605e;}[_0x90f5('0x16')](_0x53007f,_0x9cdc4d,_0x2ad285,_0x4489a,_0xa58f75){this[_0x90f5('0x46')]['change'](_0x391cb3=>{let _0x64cc6a=_0x90f5('0xab')+_0x53007f+':'+_0x9cdc4d+':'+_0x2ad285;_0xa58f75&&(_0x64cc6a=_0x64cc6a+':'+_0xa58f75),_0x391cb3[_0x90f5('0x87')](_0x64cc6a,{'range':_0x4489a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x90f5('0xd9')](_0x2e000d){const _0x65b22c=_0x2e000d[_0x90f5('0xcb')],_0x1590e4=_0x2e000d[_0x90f5('0x31')];_0x2e000d[_0x90f5('0xcb')]=null,null!=_0x65b22c&&(_0x65b22c[_0x90f5('0x31')]=null),_0x2e000d[_0x90f5('0x31')]=null,null!=_0x1590e4&&(_0x1590e4['previous']=null),_0x90f5('0x52')==this['_suggestionState'][_0x90f5('0xf6')](_0x2e000d)&&(this[_0x90f5('0x9d')]['set'](_0x2e000d,_0x90f5('0x17')),this[_0x90f5('0x2f')](_0x90f5('0xfc'),_0x2e000d,_0x65b22c,_0x1590e4));}[_0x90f5('0x4')](_0x202568){const _0x3de681=_0x202568['id'],_0x2c70c9=this[_0x90f5('0xa5')](_0x202568);if(this[_0x90f5('0xfe')]&&this['_adapter']['addSuggestion']){const _0x42452c=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0xa2')),_0x4dd0e5=_0x2c70c9[_0x90f5('0x1')],_0x43a7ac=_0x2c70c9[_0x90f5('0x3a')]?_0x2c70c9[_0x90f5('0x8a')]+':'+_0x2c70c9[_0x90f5('0x3a')]:_0x2c70c9['type'],_0x2e625b=this[_0x90f5('0xf0')][_0x90f5('0xc3')],_0x1b1122=_0x42452c[_0x90f5('0xca')](_0x3485ff(_0x2e625b,'PENDING_ACTION_SUGGESTION')),_0x494125={'id':_0x3de681,'type':_0x43a7ac,'hasComments':_0x4dd0e5,'data':_0x202568['data']||null,'originalSuggestionId':_0x202568[_0x90f5('0xaa')]||null,'attributes':_0x2c70c9[_0x90f5('0x10')]};this[_0x90f5('0xfe')][_0x90f5('0x1d')](_0x494125)[_0x90f5('0xea')](_0x583cde=>{_0x2c70c9[_0x90f5('0x7c')]=!0x0,_0x42452c[_0x90f5('0x20')](_0x1b1122),_0x583cde&&_0x583cde[_0x90f5('0x8e')]&&(this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x3de681)['createdAt']=_0x583cde[_0x90f5('0x8e')]);})[_0x90f5('0x5f')](_0x3c41c9=>{throw _0x3cb7c3('error-saving-suggestion-data-suggestion-discarded'),this[_0x90f5('0xf0')][_0x90f5('0xd8')][_0x90f5('0x106')]({'isUndoable':!0x1},()=>{_0x2c70c9['discard']();}),_0x2c70c9[_0x90f5('0x59')](),this[_0x90f5('0x11c')]['delete'](_0x2c70c9['id']),this['_suggestionState'][_0x90f5('0xe8')](_0x2c70c9),_0x3c41c9;});}return _0x2c70c9;}['_updateSuggestionData'](_0x24b40f,_0x3db856){const _0x209c2c=this[_0x90f5('0xf0')]['plugins'][_0x90f5('0xf6')](_0x90f5('0xa2')),_0x312e52=this[_0x90f5('0x13a')](_0x24b40f);if(this[_0x90f5('0xfe')]&&this[_0x90f5('0xfe')][_0x90f5('0x23')]){if(_0x312e52[_0x90f5('0x7c')]){const _0x405b8b=_0x209c2c['add'](_0x3485ff(this['editor'][_0x90f5('0xc3')],_0x90f5('0x70')));this['_adapter'][_0x90f5('0x23')](_0x24b40f,_0x3db856)['then'](()=>{_0x209c2c[_0x90f5('0x20')](_0x405b8b);});}else _0x312e52['on'](_0x90f5('0x38'),()=>{this[_0x90f5('0x120')](_0x24b40f,_0x3db856);});}}[_0x90f5('0x5a')](_0x452b56){if(!this[_0x90f5('0xfe')]||!this[_0x90f5('0xfe')][_0x90f5('0x13a')])throw new _0x2719f8(_0x90f5('0xb0'),this);return this[_0x90f5('0xfe')]['getSuggestion'](_0x452b56);}[_0x90f5('0x3')](_0x1a0190){const {id:_0xfb3cee,type:_0x3cabb5,subType:_0x3088d3,authorId:_0x15585f}=this[_0x90f5('0x55')](_0x1a0190),_0x41dde6=this[_0x90f5('0x11c')]['get'](_0xfb3cee)||this['_createSuggestion'](_0x3cabb5,_0x3088d3,_0xfb3cee,_0x15585f,{});switch(this['_checkSuggestionCorrectness'](_0x41dde6,_0x3cabb5,_0x3088d3,_0x15585f),this[_0x90f5('0x9d')][_0x90f5('0xf6')](_0x41dde6)){case _0x90f5('0xbd'):this[_0x90f5('0x5a')](_0xfb3cee)[_0x90f5('0xea')](_0x501a56=>{let _0x34f04f=Promise['resolve']();_0x501a56[_0x90f5('0x1')]&&(_0x34f04f=this[_0x90f5('0x139')][_0x90f5('0x105')]({'channelId':this[_0x90f5('0xf0')]['config'][_0x90f5('0xf6')](_0x90f5('0x122')),'threadId':_0xfb3cee})),_0x34f04f[_0x90f5('0xea')](()=>{this['addSuggestionData'](_0x501a56)[_0x90f5('0x7c')]=!0x0;});}),this[_0x90f5('0x9d')][_0x90f5('0x29')](_0x41dde6,_0x90f5('0x68'));break;case _0x90f5('0x17'):this[_0x90f5('0x120')](_0xfb3cee,{'state':_0x90f5('0x1e')});case _0x90f5('0x36'):this[_0x90f5('0x9d')][_0x90f5('0x29')](_0x41dde6,_0x90f5('0x52')),this[_0x90f5('0x2f')]('suggestionLoaded',_0x41dde6);break;case _0x90f5('0x52'):this[_0x90f5('0x2f')](_0x90f5('0x48'),_0x41dde6);}return _0x41dde6[_0x90f5('0xf9')](_0x1a0190),_0x41dde6;}[_0x90f5('0x47')](_0x2ff6ae){const _0x1764fb=Array[_0x90f5('0x128')](_0x2ff6ae)[_0x90f5('0xee')](_0x3346f9=>!_0x3346f9[_0x90f5('0x92')]),_0x1c4cfb=this[_0x90f5('0x123')]({'skipNotAttached':!0x0})['filter'](_0x44b5d4=>!_0x44b5d4[_0x90f5('0x92')]),_0x361c3b=_0x1c4cfb['filter'](_0x32ed99=>!_0x2ff6ae['has'](_0x32ed99)),_0xc2e786=new Map(_0x1c4cfb[_0x90f5('0x12')](_0x2f5473=>[_0x2f5473,this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x2f5473[_0x90f5('0x8a')],_0x2f5473[_0x90f5('0x3a')],_0x90f5('0x43'))])),_0x2ad398=new Map(_0x1c4cfb[_0x90f5('0x12')](_0x3fac64=>[_0x3fac64,_0x3fac64[_0x90f5('0x9a')]()])),_0x47e4dd=new Set(),_0x261bd2=new Set();for(let _0x23e1e7=0x0;_0x23e1e7<_0x1764fb[_0x90f5('0x14')];_0x23e1e7++)_0x7be526(_0x1764fb[_0x23e1e7],_0x1764fb,_0x23e1e7+0x1);for(let _0x12735b=0x0;_0x12735b<_0x1764fb['length'];_0x12735b++)_0x7be526(_0x1764fb[_0x12735b],_0x361c3b,0x0);for(let _0x553299=0x0;_0x553299<_0x1764fb[_0x90f5('0x14')];_0x553299++){const _0x1716e=_0x1764fb[_0x553299];!_0x261bd2[_0x90f5('0x7a')](_0x1716e)&&_0x1716e['previous']&&(_0x1716e[_0x90f5('0xcb')][_0x90f5('0x31')]===_0x1716e&&(_0x1716e[_0x90f5('0xcb')][_0x90f5('0x31')]=null),_0x1716e[_0x90f5('0xcb')]=null),!_0x47e4dd['has'](_0x1716e)&&_0x1716e[_0x90f5('0x31')]&&(_0x1716e[_0x90f5('0x31')][_0x90f5('0xcb')]===_0x1716e&&(_0x1716e[_0x90f5('0x31')][_0x90f5('0xcb')]=null),_0x1716e['next']=null);}function _0x7be526(_0x112b71,_0x3eb390,_0x14be6a){for(let _0x358750=_0x14be6a;_0x358750<_0x3eb390[_0x90f5('0x14')];_0x358750++){const _0x4de3e3=_0x1f3d74(_0x112b71,_0x3eb390[_0x358750]);_0x4de3e3&&(_0x4de3e3[0x0][_0x90f5('0x31')]=_0x4de3e3[0x1],_0x4de3e3[0x1]['previous']=_0x4de3e3[0x0],_0x47e4dd[_0x90f5('0xca')](_0x4de3e3[0x0]),_0x261bd2[_0x90f5('0xca')](_0x4de3e3[0x1]));}}function _0x1f3d74(_0x3330fb,_0x357bac){if(_0x3330fb[_0x90f5('0x99')]['id']!==_0x357bac['author']['id'])return null;const _0x172130=_0xc2e786[_0x90f5('0xf6')](_0x3330fb)(_0x3330fb,_0x357bac,_0x2ad398[_0x90f5('0xf6')](_0x3330fb),_0x2ad398[_0x90f5('0xf6')](_0x357bac));if(!_0x172130)return null;return _0xc2e786['get'](_0x357bac)(_0x3330fb,_0x357bac,_0x2ad398['get'](_0x3330fb),_0x2ad398[_0x90f5('0xf6')](_0x357bac))?_0x172130[0x1][_0x90f5('0xa3')]&&_0x172130[0x1][_0x90f5('0xa3')]['length']?null:_0x172130:null;}}[_0x90f5('0x11f')](_0x33bfca){const _0x10b23c=Array[_0x90f5('0x128')](_0x33bfca),_0x2200f1=this[_0x90f5('0x123')]({'skipNotAttached':!0x0}),_0x8120a3=_0x2200f1['filter'](_0xb7d38a=>!_0x33bfca[_0x90f5('0x7a')](_0xb7d38a)),_0x2277d8=new Map(_0x10b23c[_0x90f5('0x12')](_0x315e3b=>[_0x315e3b,this['_suggestionFactory'][_0x90f5('0x6e')](_0x315e3b[_0x90f5('0x8a')],_0x315e3b[_0x90f5('0x3a')],_0x90f5('0x6a'))])),_0xcd0d8c=new Map(_0x2200f1[_0x90f5('0x12')](_0x4e21e1=>[_0x4e21e1,_0x4e21e1[_0x90f5('0x40')]()]));for(let _0x586fc9=0x0;_0x586fc9<_0x10b23c['length'];_0x586fc9++){if(_0x4609f8(this,_0x10b23c[_0x586fc9],_0x10b23c,_0x586fc9+0x1))return!0x0;}for(let _0x4ce348=0x0;_0x4ce348<_0x10b23c[_0x90f5('0x14')];_0x4ce348++){if(_0x4609f8(this,_0x10b23c[_0x4ce348],_0x8120a3,0x0))return!0x0;}return!0x1;function _0x4609f8(_0x12bb9c,_0x4b8abf,_0x967e5c,_0x1e60e3){for(let _0x11b944=_0x1e60e3;_0x11b944<_0x967e5c['length'];_0x11b944++){const _0x4866fc=_0x967e5c[_0x11b944];if(_0x4866fc[_0x90f5('0x8a')]!==_0x4b8abf[_0x90f5('0x8a')]||_0x4866fc[_0x90f5('0x99')]['id']!==_0x4b8abf['author']['id']||_0x4866fc['subType']!==_0x4b8abf['subType'])continue;const _0x4a3d9f=_0x2277d8['get'](_0x4b8abf),_0x5a5dbd=_0xcd0d8c[_0x90f5('0xf6')](_0x4b8abf),_0x54d642=_0xcd0d8c[_0x90f5('0xf6')](_0x4866fc),_0x21665c=_0x4b8abf['commentThread']&&_0x4b8abf['commentThread'][_0x90f5('0x14')],_0x318334=_0x4866fc[_0x90f5('0xa3')]&&_0x4866fc['commentThread'][_0x90f5('0x14')];if(!_0x21665c&&_0x4a3d9f(_0x54d642,_0x5a5dbd))return _0x12bb9c[_0x90f5('0xe5')](_0x4866fc,_0x4b8abf),_0xcd0d8c[_0x90f5('0xe8')](_0x4b8abf),!0x0;if(!_0x318334&&_0x4a3d9f(_0x5a5dbd,_0x54d642))return _0x12bb9c[_0x90f5('0xe5')](_0x4b8abf,_0x4866fc),_0xcd0d8c['delete'](_0x4866fc),!0x0;}return!0x1;}}[_0x90f5('0xe5')](_0x46fc78,_0x5087c6){if(_0x46fc78[_0x90f5('0x92')])for(const _0x52c428 of _0x5087c6[_0x90f5('0x40')]())_0x46fc78[_0x90f5('0x12e')](_0x52c428);else{const _0x4dde6c=_0x5087c6[_0x90f5('0x9a')]()[_0x90f5('0x10a')];this[_0x90f5('0x11e')](_0x46fc78,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x46fc78[_0x90f5('0x9a')]()[_0x90f5('0x57')],_0x4dde6c));}_0x5087c6[_0x90f5('0x3e')]();}}class Dt{constructor(_0x3e261a){this[_0x90f5('0xdc')]=_0x3e261a,this[_0x90f5('0x46')]=_0x3e261a[_0x90f5('0xd8')],this[_0x90f5('0x8b')]=new Map(),this[_0x90f5('0x13f')]=new Map(),this[_0x90f5('0xfd')]();}['buildSuggestion'](_0x4e2a18,_0x5b313d,_0xdd1cf9,_0x1b8ee5,_0x247243,_0x2e0da4){return new _0x1600fa(this[_0x90f5('0x46')],{'type':_0x4e2a18,'subType':_0x5b313d,'id':_0xdd1cf9,'author':_0x1b8ee5,'creator':_0x1b8ee5,'attributes':_0x247243,'onAttributesChange':_0x2e0da4,'onAccept':(..._0x28a5ff)=>this[_0x90f5('0x6e')](_0x4e2a18,_0x5b313d,'accept')(..._0x28a5ff),'onDiscard':(..._0x22bd6d)=>this[_0x90f5('0x6e')](_0x4e2a18,_0x5b313d,_0x90f5('0xc7'))(..._0x22bd6d)});}[_0x90f5('0x0')](_0x5d41f4,_0x5668ff,_0x207b95,_0x19d309){const _0xf117e1=_0x5d41f4+':'+_0x5668ff+':'+_0x207b95;this[_0x90f5('0x8b')][_0x90f5('0x29')](_0xf117e1,_0x19d309);}['getSuggestionCallback'](_0x2d4ccc,_0x2520a5,_0x53f103){const _0x3694c1=_0x2d4ccc+':'+_0x2520a5+':'+_0x53f103;return this[_0x90f5('0x8b')]['get'](_0x3694c1)||this['_defaultCallbacks'][_0x90f5('0xf6')](_0x2d4ccc+':'+_0x53f103);}[_0x90f5('0xfd')](){const _0x4575d9=()=>{},_0x3cd589=_0x4511cc=>{_0x4511cc[_0x90f5('0x77')]((_0x515a6a,_0x3454b5)=>_0x515a6a[_0x90f5('0x57')][_0x90f5('0xe4')](_0x3454b5[_0x90f5('0x57')])?0x1:-0x1),this[_0x90f5('0x46')][_0x90f5('0xdb')](_0x27db17=>{for(const _0xa0ee13 of _0x4511cc){let _0x1f31d2;_0x1f31d2=_0xa0ee13['end'][_0x90f5('0x135')]&&_0xa0ee13['end']['parent']==_0xa0ee13[_0x90f5('0x57')]['nodeAfter']?_0x27db17['createSelection'](_0xa0ee13[_0x90f5('0x57')]['nodeAfter'],'on'):_0x27db17[_0x90f5('0xd3')](_0xa0ee13),this[_0x90f5('0x46')][_0x90f5('0x84')](_0x1f31d2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x31162a=(_0x16cc7f,_0x4298fa)=>{this[_0x90f5('0x46')][_0x90f5('0xdb')](_0x39a1cc=>{const {commandName:_0x5530a7,commandParams:_0x5cf8e9=[]}=_0x4298fa,_0x1e8569=_0x16cc7f[_0x90f5('0x12')](_0x4dff00=>(_t(_0x4dff00)&&(_0x4dff00=this[_0x90f5('0x46')][_0x90f5('0x98')](_0x4dff00[_0x90f5('0x10a')])),_0x4dff00))[_0x90f5('0xee')](_0x23e5f9=>'$graveyard'!==_0x23e5f9[_0x90f5('0xa0')][_0x90f5('0x9b')]);if(_0x1e8569[_0x90f5('0x14')]<0x1)return;const _0x147189=Array[_0x90f5('0x128')](this[_0x90f5('0x46')][_0x90f5('0x54')][_0x90f5('0xbe')]['getRanges']())[_0x90f5('0x12')](_0x56943d=>_0x1bb84e[_0x90f5('0xd0')](_0x56943d));_0x39a1cc[_0x90f5('0x12d')](_0x1e8569);for(const _0x8fd6ef of this['_editor'][_0x90f5('0x30')][_0x90f5('0x30')]())_0x8fd6ef['refresh']();_0x5cf8e9[_0x90f5('0x129')]({'forceDefaultExecution':!0x0}),this[_0x90f5('0xdc')]['execute'](_0x5530a7,..._0x5cf8e9);const _0x277d5a=_0x147189['filter'](_0x1381e5=>_0x90f5('0xc9')!=_0x1381e5['root'][_0x90f5('0x9b')]);_0x277d5a[_0x90f5('0x14')]>0x0&&_0x39a1cc[_0x90f5('0x12d')](_0x277d5a);for(const _0x5333ba of _0x147189)_0x5333ba['detach']();});},_0xc1d288=(_0xe03e8d,_0x3a0f5e)=>0x1==_0xe03e8d[_0x90f5('0x14')]&&0x1==_0x3a0f5e['length']&&_0xe03e8d[0x0]['end']['isEqual'](_0x3a0f5e[0x0][_0x90f5('0x57')]),_0x1ec71b=(_0x1409e6,_0x4ff085,_0x200ff7,_0x15a99d)=>xt(_0x1409e6,_0x4ff085,_0x200ff7,_0x15a99d,this[_0x90f5('0x46')])?[_0x1409e6,_0x4ff085]:xt(_0x4ff085,_0x1409e6,_0x15a99d,_0x200ff7,this[_0x90f5('0x46')])?[_0x4ff085,_0x1409e6]:null;this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x37'),_0x4575d9),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x33'),_0x3cd589),this['_defaultCallbacks'][_0x90f5('0x29')](_0x90f5('0x2e'),_0xc1d288),this['_defaultCallbacks'][_0x90f5('0x29')]('insertion:chain',_0x1ec71b),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x101'),_0x3cd589),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x73'),_0x4575d9),this['_defaultCallbacks'][_0x90f5('0x29')](_0x90f5('0x8d'),_0xc1d288),this['_defaultCallbacks'][_0x90f5('0x29')]('deletion:chain',_0x1ec71b),this[_0x90f5('0x13f')][_0x90f5('0x29')]('formatInline:accept',_0x31162a),this['_defaultCallbacks'][_0x90f5('0x29')]('formatInline:discard',_0x4575d9),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x88'),_0xc1d288),this['_defaultCallbacks'][_0x90f5('0x29')](_0x90f5('0x11'),_0x4575d9),this[_0x90f5('0x13f')]['set'](_0x90f5('0x9f'),_0x31162a),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0xa4'),_0x4575d9),this[_0x90f5('0x13f')]['set'](_0x90f5('0x127'),_0xc1d288),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x85'),_0x4575d9);}}function Bt(_0x3d6326,_0x36cd1c,_0x51526f){for(const _0x16c6a4 of _0x36cd1c[_0x90f5('0x115')][_0x90f5('0x2a')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x16c6a4[_0x90f5('0xa0')]==_0x16c6a4)return!0x1;if(!_0x51526f['containsItem'](_0x16c6a4))return!0x1;if(_0x3d6326[_0x90f5('0x21')](_0x16c6a4)||_0x3d6326[_0x90f5('0xba')](_0x16c6a4))return!0x0;}return!0x1;}function _t(_0x2ab04f){return _0x2ab04f[_0x90f5('0x10a')][_0x90f5('0x115')]==_0x2ab04f['start']['nodeAfter']&&_0x2ab04f[_0x90f5('0x10a')]['isAtStart'];}function Mt(_0x444d5e,_0x5ab1c7,_0x14ef7d,_0x1d7533){const _0x2084e1=_0x15fec1=>!_0x15fec1[_0x90f5('0xcc')]['is']('$textProxy')&&!_0x1d7533[_0x90f5('0x21')](_0x15fec1[_0x90f5('0xcc')]),_0x49e63a=_0x444d5e[_0x90f5('0x57')][_0x90f5('0xe1')](_0x2084e1),_0x2a5dfb=_0x444d5e[_0x90f5('0x10a')][_0x90f5('0xe1')](_0x2084e1,{'direction':_0x90f5('0x27')});return(!_0x444d5e['start'][_0x90f5('0xec')](_0x49e63a)||!_0x444d5e[_0x90f5('0x10a')][_0x90f5('0xec')](_0x2a5dfb))&&(_0x49e63a['isBefore'](_0x2a5dfb)?_0x14ef7d['updateMarker'](_0x5ab1c7,{'range':_0x14ef7d[_0x90f5('0x98')](_0x49e63a,_0x2a5dfb)}):_0x14ef7d[_0x90f5('0xbb')](_0x5ab1c7),!0x0);}function $t(_0x2300a6){return _0x1db92d(_0x2300a6);}function Nt(_0x192be0){const _0x1d91f2=_0x192be0[_0x90f5('0x57')][_0x90f5('0xd4')];return _0x1d91f2&&_0x1d91f2['is'](_0x90f5('0xf'));}function Rt(_0x5a9eb3,_0xd8a3f9){const _0x2e9e7e=_0xd8a3f9[_0x90f5('0x6b')]['isObject'](_0x5a9eb3)||_0xd8a3f9[_0x90f5('0x6b')][_0x90f5('0xa9')](_0x5a9eb3);return _0xd8a3f9[_0x90f5('0x98')](_0xd8a3f9[_0x90f5('0xf5')](_0x5a9eb3,_0x90f5('0x109')),_0x2e9e7e?_0xd8a3f9['createPositionAfter'](_0x5a9eb3):_0xd8a3f9[_0x90f5('0xf5')](_0x5a9eb3,_0x90f5('0x10a')));}function xt(_0x531f57,_0x195460,_0x5d6f89,_0x541859,_0x999caf){if(_0x5d6f89[_0x90f5('0x10a')][_0x90f5('0xec')](_0x541859['start']))return!0x0;if(_0x531f57[_0x90f5('0x8a')]!=_0x195460[_0x90f5('0x8a')])return!0x1;if(!_0x5d6f89['end'][_0x90f5('0x53')](_0x541859[_0x90f5('0x57')]))return!0x1;const _0x1f93aa=_0x999caf[_0x90f5('0x98')](_0x5d6f89['end'],_0x541859[_0x90f5('0x57')])[_0x90f5('0x69')]();for(const _0x1082bd of _0x1f93aa)if([_0x90f5('0x18'),'elementEnd'][_0x90f5('0x90')](_0x1082bd['type'])&&_0x999caf[_0x90f5('0x6b')][_0x90f5('0xba')](_0x1082bd['item']))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fe0=['_updateController','getJoined','change:previous','listenTo','value','delete','addComment','isInContent','has','registerAnnotation','unbind','descriptionParts','editing','refreshSelectedViews','commentThread','focus','comments.maxThreadTotalWeight','_descriptionFactory','size','comments.editorConfig','activeAnnotations','view','getAllAdjacentSuggestions','CommentView','config','commandName','separator','_createUIButton','_handleSuggestionControllerDelayed','CommentsRepository','comments.maxCommentCharsWhenCollapsed','isOn','stopListening','_initializeController','acceptButton','Accept\x20all\x20selected\x20suggestions','type','EditorAnnotations','createAnnotationView','change:activeAnnotations','mainView','activeMarkers','buttonView','TrackChangesUI','commands','getDescriptions','plugins','length','bind','_annotationViews','previous','button','_destroyController','lowest','get','clear','init','keys','_handleControllerBuffer','Discard\x20all\x20selected\x20suggestions','_refreshActiveMarkers','Annotations','getSuggestion','add','trackChanges','getFirstRange','_suggestionToController','acceptSelectedSuggestions','discardAllSuggestions','acceptAllSuggestions','getMarkers','discardSelectedSuggestions','source','set','filter','createAnnotation','arrowView','values','addSourceCollector','isMultiRange','_disableComments','getByInnerView','define','TrackChangesEditing','SuggestionThreadView','from','head','isDirty','getMarkerNames','Track\x20changes','_bindAnnotationToEditors','toMany','isEnabled','actionView','requires','createCommentThreadController','hasSuggestion','destroy','reduce','some','execute','model','trackChanges.disableComments','push','suggestion-','switchbutton','_viewToController','editor','locale'];(function(_0x127ca5,_0x3fe0ea){const _0x5a748b=function(_0x16f05a){while(--_0x16f05a){_0x127ca5['push'](_0x127ca5['shift']());}};_0x5a748b(++_0x3fe0ea);}(_0x3fe0,0xb1));const _0x5a74=function(_0x127ca5,_0x3fe0ea){_0x127ca5=_0x127ca5-0x0;let _0x5a748b=_0x3fe0[_0x127ca5];return _0x5a748b;};import{Plugin as _0x58354b}from'ckeditor5/src/core';import{Collection as _0x1e8c5e}from'ckeditor5/src/utils';import{Model as _0x2968ac,SplitButtonView as _0x4249a0,createDropdown as _0x172fec,addListToDropdown as _0x485b8f}from'ckeditor5/src/ui';import{Users as _0x1f64de,getDateTimeFormatter as _0x681da,getAllMarkersDomElementsSorted as _0x24eb31}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e289e from'./trackchangesediting';import _0x3d7b38 from'./ui/suggestioncontroller';import _0x251b56 from'./ui/view/suggestionthreadview';import{getTranslation as _0x422b61}from'./utils/common-translations';import _0x523d23 from'../theme/icons/track-changes.svg';export default class d extends _0x58354b{static get[_0x5a74('0x1a')](){return[_0x5e289e,_0x1f64de,_0x5a74('0x46'),'Annotations',_0x5a74('0x4e')];}static get['pluginName'](){return _0x5a74('0x54');}constructor(_0x4ad859){super(_0x4ad859),this['_suggestionToController']=new Map(),this[_0x5a74('0x26')]=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5f20b4=this[_0x5a74('0x27')][_0x5a74('0x41')];_0x5f20b4[_0x5a74('0xe')]('trackChanges.SuggestionThreadView',_0x251b56),_0x5f20b4[_0x5a74('0xe')](_0x5a74('0x22'),!0x1),this[_0x5a74('0xc')]=_0x5f20b4[_0x5a74('0x5f')]('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x50ce52,_0x23b463){0x0===this[_0x5a74('0x63')][_0x5a74('0x3b')]&&setTimeout(()=>{for(const [_0x847e30,_0x901270]of this[_0x5a74('0x63')]){const _0x477fb1=this[_0x5a74('0x6b')]['has'](_0x847e30);_0x477fb1||_0x901270?_0x477fb1&&_0x901270&&this[_0x5a74('0x5d')](_0x847e30):this[_0x5a74('0x4a')](_0x847e30);}this[_0x5a74('0x27')][_0x5a74('0x57')][_0x5a74('0x5f')](_0x5a74('0x4e'))[_0x5a74('0x36')](),this['_refreshActiveMarkers'](),this[_0x5a74('0x63')][_0x5a74('0x60')]();},0xa),this[_0x5a74('0x63')][_0x5a74('0x5')](_0x50ce52,_0x23b463);}[_0x5a74('0x61')](){const _0x48d44b=this[_0x5a74('0x27')],_0x5097ac=_0x48d44b[_0x5a74('0x57')]['get'](_0x5a74('0xf')),_0x5c79ef=_0x48d44b[_0x5a74('0x57')][_0x5a74('0x5f')](_0x5a74('0x66')),_0xca5c85=_0x48d44b[_0x5a74('0x57')][_0x5a74('0x5f')](_0x5a74('0x4e')),_0x4c28bc=_0x48d44b[_0x5a74('0x57')][_0x5a74('0x5f')](_0x5a74('0x46'));_0x48d44b['ui']['componentFactory'][_0x5a74('0x68')](_0x5a74('0x69'),_0x193c60=>this[_0x5a74('0x44')](_0x193c60)),_0xca5c85[_0x5a74('0xa')](()=>{const _0x493675=[];for(const [_0xa92fa1,_0x462ec8]of Array[_0x5a74('0x11')](this[_0x5a74('0x6b')])){const _0x2a0cf7=_0xa92fa1[_0x5a74('0x3f')](),_0x47212e=[];for(const _0x30ef45 of _0x2a0cf7){if(!_0x30ef45[_0x5a74('0x30')])continue;if(_0x30ef45[_0x5a74('0xb')]){_0x47212e['push'](..._0x30ef45['getRanges']());continue;}const _0x19b8dd=_0x30ef45[_0x5a74('0x6a')]();if(_0x47212e[_0x5a74('0x58')]>0x0){const _0x152857=_0x47212e[0x0][_0x5a74('0x2a')](_0x19b8dd);if(_0x152857){_0x47212e[0x0]=_0x152857;continue;}}_0x47212e[_0x5a74('0x23')](_0x19b8dd);}_0x493675['push']([_0x462ec8[_0x5a74('0x3e')],_0x47212e]);}return _0x493675;}),this[_0x5a74('0x2c')](_0x5097ac,'suggestionLoaded',(_0x1cd51e,_0x538bad)=>{this[_0x5a74('0x2c')](_0x538bad,_0x5a74('0x2b'),(_0x426b53,_0x5132cf,_0x44e6b3,_0x3dea45)=>{_0x538bad[_0x5a74('0x30')]&&(null==_0x44e6b3?(this[_0x5a74('0x29')](_0x3dea45['head']),this[_0x5a74('0x45')](_0x538bad,!0x1)):(this[_0x5a74('0x29')](_0x44e6b3[_0x5a74('0x12')]),this['_handleSuggestionControllerDelayed'](_0x538bad,!0x0)));}),null===_0x538bad[_0x5a74('0x5b')]?this['_handleSuggestionControllerDelayed'](_0x538bad,!0x1):this[_0x5a74('0x29')](_0x538bad['head']);}),this[_0x5a74('0x2c')](_0x5097ac,'suggestionUnloaded',(_0x5940c3,_0x5df10a,_0x49cdf2)=>{this[_0x5a74('0x49')](_0x5df10a,_0x5a74('0x2b')),this[_0x5a74('0x63')][_0x5a74('0x2e')](_0x5df10a);const _0xe0cc5f=_0x49cdf2?_0x49cdf2[_0x5a74('0x12')]:_0x5df10a,_0x24301e=this[_0x5a74('0x6b')][_0x5a74('0x5f')](_0xe0cc5f);null!==_0x49cdf2&&this[_0x5a74('0x29')](_0xe0cc5f),null===_0x49cdf2&&_0x24301e&&this[_0x5a74('0x5d')](_0x5df10a);}),this[_0x5a74('0x2c')](_0x5097ac,'suggestionChanged',(_0x223e56,_0x54ba1b)=>{this[_0x5a74('0x29')](_0x54ba1b);}),this[_0x5a74('0x2c')](_0x5c79ef,_0x5a74('0x50'),()=>{this[_0x5a74('0x65')]();}),this[_0x5a74('0x2c')](_0x4c28bc,_0x5a74('0x2f'),(_0x1acfd4,{threadId:_0x5ca29a,isFromAdapter:_0x547765})=>{if(_0x547765||!_0x5097ac[_0x5a74('0x1c')](_0x5ca29a))return;const _0x375266=_0x5097ac[_0x5a74('0x67')](_0x5ca29a);this[_0x5a74('0x6b')][_0x5a74('0x5f')](_0x375266)['view'][_0x5a74('0x38')]();},{'priority':_0x5a74('0x5e')});}[_0x5a74('0x65')](){const _0x2425b6=this[_0x5a74('0x27')][_0x5a74('0x57')][_0x5a74('0x5f')]('Annotations'),_0x4bfa1c=this[_0x5a74('0x27')][_0x5a74('0x57')][_0x5a74('0x5f')](_0x5a74('0xf')),_0x3a5b97=Array[_0x5a74('0x11')](_0x2425b6[_0x5a74('0x3d')],_0x562a9a=>_0x562a9a['innerView'])[_0x5a74('0x6')](_0x4f7f27=>this[_0x5a74('0x26')][_0x5a74('0x31')](_0x4f7f27)),_0x20584b=[];for(const _0x2737e5 of _0x3a5b97){const _0x279cd6=this[_0x5a74('0x26')][_0x5a74('0x5f')](_0x2737e5)['model'][_0x5a74('0x3f')]();_0x20584b['push'](..._0x279cd6[_0x5a74('0x1e')]((_0x5a8abb,_0x53608d)=>[..._0x5a8abb,..._0x53608d[_0x5a74('0x14')]()],[]));}_0x4bfa1c[_0x5a74('0x52')]=_0x20584b;}[_0x5a74('0x44')](_0x10d378){const _0x5a3fdb=_0x172fec(_0x10d378,_0x4249a0),_0x379b8a=this[_0x5a74('0x27')]['commands'][_0x5a74('0x5f')](_0x5a74('0x69')),_0x36b4cc=_0x422b61(_0x10d378,_0x5a74('0x15'));_0x5a3fdb[_0x5a74('0x53')]['set']({'tooltip':_0x36b4cc,'label':_0x36b4cc,'icon':_0x523d23}),_0x5a3fdb['buttonView']['bind'](_0x5a74('0x48'))['to'](_0x379b8a,_0x5a74('0x2d')),_0x5a3fdb['buttonView']['on'](_0x5a74('0x20'),()=>{_0x379b8a['execute'](),this['editor'][_0x5a74('0x35')]['view']['focus']();});const _0x7f1334=new _0x1e8c5e(),_0x3c2da6=[{'type':_0x5a74('0x25'),'model':{'withText':!0x0,'label':_0x36b4cc,'commandName':'trackChanges'}},{'type':'separator'},{'type':_0x5a74('0x5c'),'model':{'withText':!0x0,'label':_0x422b61(_0x10d378,'Accept\x20all\x20suggestions'),'commandName':_0x5a74('0x1')}},{'type':'button','model':{'withText':!0x0,'label':_0x422b61(_0x10d378,_0x5a74('0x4c')),'commandName':_0x5a74('0x6c')}},{'type':_0x5a74('0x5c'),'model':{'withText':!0x0,'label':_0x422b61(_0x10d378,'Discard\x20all\x20suggestions'),'commandName':_0x5a74('0x0')}},{'type':_0x5a74('0x5c'),'model':{'withText':!0x0,'label':_0x422b61(_0x10d378,_0x5a74('0x64')),'commandName':_0x5a74('0x3')}}];for(const _0x797662 of _0x3c2da6){let _0x4392da={'type':_0x5a74('0x43')};if(_0x797662['model']){const _0x3406b7=new _0x2968ac(_0x797662[_0x5a74('0x21')]),_0x375958=this[_0x5a74('0x27')][_0x5a74('0x55')]['get'](_0x3406b7[_0x5a74('0x42')]);_0x3406b7['bind'](_0x5a74('0x48'),'isEnabled')['to'](_0x375958,'value',_0x5a74('0x18')),_0x4392da={'type':_0x797662[_0x5a74('0x4d')],'model':_0x3406b7};}_0x7f1334[_0x5a74('0x68')](_0x4392da);}_0x485b8f(_0x5a3fdb,_0x7f1334);const _0x5d2200=_0x3c2da6[_0x5a74('0x6')](_0xcb79b9=>null!=_0xcb79b9['model'])['map'](_0x15fa2e=>this[_0x5a74('0x27')][_0x5a74('0x55')]['get'](_0x15fa2e[_0x5a74('0x21')][_0x5a74('0x42')])),_0x32f9f7=_0x5a3fdb[_0x5a74('0x53')];return _0x32f9f7['actionView'][_0x5a74('0x33')]('isEnabled'),_0x32f9f7[_0x5a74('0x8')][_0x5a74('0x33')](_0x5a74('0x18')),_0x32f9f7[_0x5a74('0x19')][_0x5a74('0x59')](_0x5a74('0x18'))['to'](_0x379b8a,_0x5a74('0x18')),_0x32f9f7[_0x5a74('0x8')][_0x5a74('0x59')](_0x5a74('0x18'))[_0x5a74('0x17')](_0x5d2200,_0x5a74('0x18'),(..._0x404d58)=>_0x404d58[_0x5a74('0x1f')](_0x38f8c0=>_0x38f8c0)),_0x5a3fdb['on']('execute',_0x20be49=>{this['editor'][_0x5a74('0x20')](_0x20be49[_0x5a74('0x4')][_0x5a74('0x42')]),this['editor'][_0x5a74('0x35')][_0x5a74('0x3e')][_0x5a74('0x38')]();}),_0x5a3fdb;}[_0x5a74('0x4a')](_0x45b0fc){const _0x42d464=this[_0x5a74('0x27')],_0x1ad852=_0x42d464[_0x5a74('0x41')],_0x24019b=_0x42d464[_0x5a74('0x57')]['get'](_0x5a74('0x66')),_0x575ada=_0x42d464[_0x5a74('0x57')][_0x5a74('0x5f')](_0x5a74('0x46')),_0x369f9a=_0x42d464[_0x5a74('0x57')][_0x5a74('0x5f')](_0x5a74('0x4e')),_0x551a1d=_0x42d464['plugins']['get'](_0x1f64de)['me'],_0x87a908=_0x1ad852['get'](_0x5a74('0x69'))[_0x5a74('0x10')],{CommentsListView:_0x2cee1b,CommentThreadInputView:_0x3effe8}=_0x42d464[_0x5a74('0x57')][_0x5a74('0x5f')]('CommentsUI');let _0xb70ec5,_0x35d07b;this[_0x5a74('0x5a')][_0x5a74('0x31')](_0x45b0fc['id'])?(_0x35d07b=this[_0x5a74('0x5a')]['get'](_0x45b0fc['id']),_0xb70ec5=_0x35d07b['mainView']):(_0xb70ec5=new _0x87a908(_0x42d464[_0x5a74('0x28')],_0x45b0fc,_0x551a1d,{'disableComments':this[_0x5a74('0xc')],'editorConfig':_0x1ad852[_0x5a74('0x5f')](_0x5a74('0x3c')),'maxCommentsWhenCollapsed':_0x1ad852[_0x5a74('0x5f')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1ad852[_0x5a74('0x5f')](_0x5a74('0x39')),'maxCommentCharsWhenCollapsed':_0x1ad852[_0x5a74('0x5f')](_0x5a74('0x47')),'formatDateTime':_0x681da(_0x1ad852[_0x5a74('0x5f')](_0x5a74('0x28'))),'CommentView':_0x1ad852[_0x5a74('0x5f')]('comments')[_0x5a74('0x40')],'CommentsListView':_0x2cee1b,'CommentThreadInputView':_0x3effe8}),_0xb70ec5[_0x5a74('0x4b')]['on']('execute',()=>{_0x42d464['editing'][_0x5a74('0x3e')]['focus']();}),_0xb70ec5['discardButton']['on']('execute',()=>{_0x42d464[_0x5a74('0x35')][_0x5a74('0x3e')][_0x5a74('0x38')]();}),_0x35d07b=_0x24019b[_0x5a74('0x4f')](this['editor'][_0x5a74('0x28')],_0xb70ec5),_0x35d07b['bind'](_0x5a74('0x13'))['to'](_0xb70ec5,_0x5a74('0x13')),_0x35d07b[_0x5a74('0x59')]('length')['to'](_0xb70ec5),_0x35d07b[_0x5a74('0x59')](_0x5a74('0x4d'))['to'](_0xb70ec5,_0x5a74('0x4d'),_0x557fd1=>_0x5a74('0x24')+_0x557fd1),this[_0x5a74('0x5a')][_0x5a74('0x5')](_0x45b0fc['id'],_0x35d07b));const _0x38354b=_0x575ada[_0x5a74('0x1b')](_0x45b0fc[_0x5a74('0x37')],_0xb70ec5),_0x1b5498=new _0x3d7b38(_0x42d464,_0x45b0fc,_0xb70ec5,_0x38354b),_0x30b707=_0x45b0fc[_0x5a74('0x3f')]()['filter'](_0x1146f0=>_0x1146f0['isInContent']);_0xb70ec5[_0x5a74('0x34')]=_0x42d464[_0x5a74('0x57')][_0x5a74('0x5f')](_0x5a74('0xf'))[_0x5a74('0x3a')][_0x5a74('0x56')](_0x30b707),this[_0x5a74('0x6b')]['set'](_0x45b0fc,_0x1b5498),this[_0x5a74('0x26')][_0x5a74('0x5')](_0xb70ec5,_0x1b5498);const _0x11380f=_0x24019b[_0x5a74('0x7')]({'view':_0x35d07b,'target':()=>{const _0x1d4457=[],_0x50ea8c=_0x45b0fc[_0x5a74('0x3f')]()[_0x5a74('0x6')](_0x353aaf=>_0x353aaf[_0x5a74('0x30')]);for(const _0x1133ac of _0x50ea8c)_0x1d4457[_0x5a74('0x23')](..._0x1133ac[_0x5a74('0x2')]());return _0x24eb31(_0x42d464[_0x5a74('0x35')],_0x1d4457);},'type':()=>_0x5a74('0x24')+_0x1b5498['view'][_0x5a74('0x4d')]});_0x575ada[_0x5a74('0x16')](_0xb70ec5,_0x11380f),_0x24019b[_0x5a74('0x68')](_0x11380f),_0x369f9a[_0x5a74('0x32')](_0x11380f);}[_0x5a74('0x5d')](_0x3c48d0){const _0x7c10cd=this[_0x5a74('0x27')][_0x5a74('0x57')][_0x5a74('0x5f')](_0x5a74('0x66')),_0x599976=this[_0x5a74('0x6b')][_0x5a74('0x5f')](_0x3c48d0),_0x26ca51=_0x599976[_0x5a74('0x3e')],_0x31a13c=_0x7c10cd[_0x5a74('0xd')](_0x26ca51);_0x31a13c&&_0x7c10cd['remove'](_0x31a13c),this[_0x5a74('0x6b')][_0x5a74('0x2e')](_0x3c48d0),this['_viewToController']['delete'](_0x26ca51),_0x599976[_0x5a74('0x1d')]();}[_0x5a74('0x29')](_0x6ccb94){if(!_0x6ccb94[_0x5a74('0x30')]||!this['_suggestionToController'][_0x5a74('0x31')](_0x6ccb94))return;const _0x432ced=this[_0x5a74('0x27')]['plugins'][_0x5a74('0x5f')]('TrackChangesEditing'),_0x238b98=this[_0x5a74('0x6b')][_0x5a74('0x5f')](_0x6ccb94),_0xdf41dd=_0x6ccb94[_0x5a74('0x3f')]();_0x238b98['view'][_0x5a74('0x34')]=_0x432ced[_0x5a74('0x3a')]['getDescriptions'](_0xdf41dd);}[_0x5a74('0x1d')](){for(const _0x5c29ca of this['_suggestionToController'][_0x5a74('0x62')]())this['_destroyController'](_0x5c29ca);for(const _0x3e5e54 of this[_0x5a74('0x5a')][_0x5a74('0x9')]())_0x3e5e54[_0x5a74('0x51')][_0x5a74('0x1d')]();super[_0x5a74('0x1d')]();}}
23
+ const _0x5adc=['_destroyController','from','_refreshActiveMarkers','comments.maxThreadTotalWeight','value','acceptButton','componentFactory','clear','arrowView','acceptSelectedSuggestions','createCommentThreadController','CommentsRepository','Track\x20changes','map','suggestionUnloaded','_handleSuggestionControllerDelayed','plugins','_descriptionFactory','activeMarkers','registerAnnotation','suggestionChanged','Annotations','delete','CommentsUI','addSourceCollector','Accept\x20all\x20suggestions','filter','values','previous','commands','activeAnnotations','refreshSelectedViews','hasSuggestion','destroy','trackChanges','_suggestionToController','_viewToController','requires','length','head','isInContent','comments.maxCommentsWhenCollapsed','get','mainView','discardAllSuggestions','_updateController','separator','editor','keys','model','type','has','unbind','set','_initializeController','isOn','descriptionParts','source','discardSelectedSuggestions','size','define','createAnnotationView','isDirty','getJoined','buttonView','discardButton','view','comments.maxCommentCharsWhenCollapsed','change:previous','actionView','reduce','push','config','isEnabled','_disableComments','focus','commandName','getDescriptions','Discard\x20all\x20selected\x20suggestions','_annotationViews','SuggestionThreadView','switchbutton','suggestion-','getMarkers','_createUIButton','trackChanges.disableComments','listenTo','trackChanges.SuggestionThreadView','button','locale','Accept\x20all\x20selected\x20suggestions','add','remove','bind','_handleControllerBuffer','getByInnerView','_bindAnnotationToEditors','Discard\x20all\x20suggestions','EditorAnnotations','isMultiRange','getAllAdjacentSuggestions','editing','TrackChangesEditing','execute'];(function(_0x1d5200,_0x5adcdf){const _0x340342=function(_0x5005e4){while(--_0x5005e4){_0x1d5200['push'](_0x1d5200['shift']());}};_0x340342(++_0x5adcdf);}(_0x5adc,0x6b));const _0x3403=function(_0x1d5200,_0x5adcdf){_0x1d5200=_0x1d5200-0x0;let _0x340342=_0x5adc[_0x1d5200];return _0x340342;};import{Plugin as _0x45eda9}from'ckeditor5/src/core';import{Collection as _0x4ce46f}from'ckeditor5/src/utils';import{Model as _0x1307b7,SplitButtonView as _0x4e0227,createDropdown as _0x4df4b7,addListToDropdown as _0x497d52}from'ckeditor5/src/ui';import{Users as _0x32ec2d,getDateTimeFormatter as _0x23a44b,getAllMarkersDomElementsSorted as _0x47bb35}from'ckeditor5-collaboration/src/collaboration-core';import _0x103adb from'./trackchangesediting';import _0x2d06c2 from'./ui/suggestioncontroller';import _0x2de3b5 from'./ui/view/suggestionthreadview';import{getTranslation as _0xac2841}from'./utils/common-translations';import _0x4969d2 from'../theme/icons/track-changes.svg';export default class d extends _0x45eda9{static get[_0x3403('0x22')](){return[_0x103adb,_0x32ec2d,_0x3403('0x8'),_0x3403('0x12'),'EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4c91f4){super(_0x4c91f4),this[_0x3403('0x20')]=new Map(),this[_0x3403('0x21')]=new Map(),this[_0x3403('0x4c')]=new Map(),this[_0x3403('0x5b')]=new Map();const _0x137dec=this[_0x3403('0x2c')][_0x3403('0x45')];_0x137dec[_0x3403('0x39')](_0x3403('0x54'),_0x2de3b5),_0x137dec[_0x3403('0x39')](_0x3403('0x52'),!0x1),this[_0x3403('0x47')]=_0x137dec['get'](_0x3403('0x52'));}[_0x3403('0xc')](_0x519d52,_0x8fa657){0x0===this[_0x3403('0x5b')][_0x3403('0x38')]&&setTimeout(()=>{for(const [_0x579bd5,_0x2db64d]of this[_0x3403('0x5b')]){const _0x1b83ce=this[_0x3403('0x20')][_0x3403('0x30')](_0x579bd5);_0x1b83ce||_0x2db64d?_0x1b83ce&&_0x2db64d&&this[_0x3403('0x65')](_0x579bd5):this[_0x3403('0x33')](_0x579bd5);}this[_0x3403('0x2c')][_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x5f'))[_0x3403('0x1c')](),this['_refreshActiveMarkers'](),this[_0x3403('0x5b')][_0x3403('0x4')]();},0xa),this[_0x3403('0x5b')][_0x3403('0x32')](_0x519d52,_0x8fa657);}['init'](){const _0x18a4e5=this[_0x3403('0x2c')],_0x21b258=_0x18a4e5['plugins']['get'](_0x3403('0x63')),_0x27b120=_0x18a4e5[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x12')),_0x514be6=_0x18a4e5[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x5f')),_0x3572e1=_0x18a4e5[_0x3403('0xd')][_0x3403('0x27')]('CommentsRepository');_0x18a4e5['ui'][_0x3403('0x3')]['add']('trackChanges',_0x36e22b=>this[_0x3403('0x51')](_0x36e22b)),_0x514be6[_0x3403('0x15')](()=>{const _0x53be01=[];for(const [_0x308d6a,_0x5c96de]of Array['from'](this['_suggestionToController'])){const _0x1dfb32=_0x308d6a[_0x3403('0x61')](),_0x5bb333=[];for(const _0xa5084d of _0x1dfb32){if(!_0xa5084d[_0x3403('0x25')])continue;if(_0xa5084d[_0x3403('0x60')]){_0x5bb333[_0x3403('0x44')](..._0xa5084d['getRanges']());continue;}const _0x399550=_0xa5084d['getFirstRange']();if(_0x5bb333[_0x3403('0x23')]>0x0){const _0x46da85=_0x5bb333[0x0][_0x3403('0x3c')](_0x399550);if(_0x46da85){_0x5bb333[0x0]=_0x46da85;continue;}}_0x5bb333[_0x3403('0x44')](_0x399550);}_0x53be01['push']([_0x5c96de[_0x3403('0x3f')],_0x5bb333]);}return _0x53be01;}),this[_0x3403('0x53')](_0x21b258,'suggestionLoaded',(_0x3817a9,_0x2331fc)=>{this['listenTo'](_0x2331fc,'change:previous',(_0x5d82fb,_0x57050a,_0x291beb,_0x310204)=>{_0x2331fc['isInContent']&&(null==_0x291beb?(this[_0x3403('0x2a')](_0x310204['head']),this['_handleSuggestionControllerDelayed'](_0x2331fc,!0x1)):(this[_0x3403('0x2a')](_0x291beb[_0x3403('0x24')]),this[_0x3403('0xc')](_0x2331fc,!0x0)));}),null===_0x2331fc[_0x3403('0x19')]?this[_0x3403('0xc')](_0x2331fc,!0x1):this[_0x3403('0x2a')](_0x2331fc[_0x3403('0x24')]);}),this[_0x3403('0x53')](_0x21b258,_0x3403('0xb'),(_0x14fe16,_0x50cb9e,_0x18a5e5)=>{this['stopListening'](_0x50cb9e,_0x3403('0x41')),this[_0x3403('0x5b')][_0x3403('0x13')](_0x50cb9e);const _0x242c44=_0x18a5e5?_0x18a5e5[_0x3403('0x24')]:_0x50cb9e,_0x4e0e65=this[_0x3403('0x20')]['get'](_0x242c44);null!==_0x18a5e5&&this[_0x3403('0x2a')](_0x242c44),null===_0x18a5e5&&_0x4e0e65&&this['_destroyController'](_0x50cb9e);}),this[_0x3403('0x53')](_0x21b258,_0x3403('0x11'),(_0x30b3f8,_0x460f94)=>{this[_0x3403('0x2a')](_0x460f94);}),this[_0x3403('0x53')](_0x27b120,'change:activeAnnotations',()=>{this[_0x3403('0x67')]();}),this[_0x3403('0x53')](_0x3572e1,'addComment',(_0xcbb552,{threadId:_0x2cbb77,isFromAdapter:_0x102f44})=>{if(_0x102f44||!_0x21b258[_0x3403('0x1d')](_0x2cbb77))return;const _0x239fff=_0x21b258['getSuggestion'](_0x2cbb77);this[_0x3403('0x20')][_0x3403('0x27')](_0x239fff)[_0x3403('0x3f')][_0x3403('0x48')]();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x7699b8=this[_0x3403('0x2c')]['plugins'][_0x3403('0x27')](_0x3403('0x12')),_0x3f4307=this['editor'][_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x63')),_0x455089=Array[_0x3403('0x66')](_0x7699b8[_0x3403('0x1b')],_0x19beff=>_0x19beff['innerView'])['filter'](_0x4555f6=>this[_0x3403('0x21')][_0x3403('0x30')](_0x4555f6)),_0x5b5952=[];for(const _0x4fc67e of _0x455089){const _0x21e23a=this[_0x3403('0x21')][_0x3403('0x27')](_0x4fc67e)[_0x3403('0x2e')]['getAllAdjacentSuggestions']();_0x5b5952[_0x3403('0x44')](..._0x21e23a[_0x3403('0x43')]((_0x11ca52,_0x1b7801)=>[..._0x11ca52,..._0x1b7801['getMarkerNames']()],[]));}_0x3f4307[_0x3403('0xf')]=_0x5b5952;}[_0x3403('0x51')](_0x5ab647){const _0x55a99d=_0x4df4b7(_0x5ab647,_0x4e0227),_0x9ac0a3=this[_0x3403('0x2c')][_0x3403('0x1a')][_0x3403('0x27')](_0x3403('0x1f')),_0x515e75=_0xac2841(_0x5ab647,_0x3403('0x9'));_0x55a99d['buttonView'][_0x3403('0x32')]({'tooltip':_0x515e75,'label':_0x515e75,'icon':_0x4969d2}),_0x55a99d['buttonView'][_0x3403('0x5a')](_0x3403('0x34'))['to'](_0x9ac0a3,_0x3403('0x1')),_0x55a99d[_0x3403('0x3d')]['on'](_0x3403('0x64'),()=>{_0x9ac0a3[_0x3403('0x64')](),this[_0x3403('0x2c')][_0x3403('0x62')][_0x3403('0x3f')][_0x3403('0x48')]();});const _0x4537c0=new _0x4ce46f(),_0x52fac5=[{'type':_0x3403('0x4e'),'model':{'withText':!0x0,'label':_0x515e75,'commandName':_0x3403('0x1f')}},{'type':_0x3403('0x2b')},{'type':_0x3403('0x55'),'model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x16')),'commandName':'acceptAllSuggestions'}},{'type':_0x3403('0x55'),'model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x57')),'commandName':_0x3403('0x6')}},{'type':_0x3403('0x55'),'model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x5e')),'commandName':_0x3403('0x29')}},{'type':'button','model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x4b')),'commandName':_0x3403('0x37')}}];for(const _0x329ad7 of _0x52fac5){let _0x2e6c46={'type':_0x3403('0x2b')};if(_0x329ad7[_0x3403('0x2e')]){const _0x1a2674=new _0x1307b7(_0x329ad7[_0x3403('0x2e')]),_0x19e671=this['editor'][_0x3403('0x1a')][_0x3403('0x27')](_0x1a2674[_0x3403('0x49')]);_0x1a2674['bind'](_0x3403('0x34'),_0x3403('0x46'))['to'](_0x19e671,_0x3403('0x1'),_0x3403('0x46')),_0x2e6c46={'type':_0x329ad7[_0x3403('0x2f')],'model':_0x1a2674};}_0x4537c0[_0x3403('0x58')](_0x2e6c46);}_0x497d52(_0x55a99d,_0x4537c0);const _0x197410=_0x52fac5[_0x3403('0x17')](_0x4d3c6b=>null!=_0x4d3c6b['model'])[_0x3403('0xa')](_0x40b512=>this[_0x3403('0x2c')][_0x3403('0x1a')]['get'](_0x40b512['model'][_0x3403('0x49')])),_0x3fdb73=_0x55a99d[_0x3403('0x3d')];return _0x3fdb73[_0x3403('0x42')][_0x3403('0x31')](_0x3403('0x46')),_0x3fdb73[_0x3403('0x5')][_0x3403('0x31')](_0x3403('0x46')),_0x3fdb73[_0x3403('0x42')][_0x3403('0x5a')](_0x3403('0x46'))['to'](_0x9ac0a3,_0x3403('0x46')),_0x3fdb73[_0x3403('0x5')][_0x3403('0x5a')](_0x3403('0x46'))['toMany'](_0x197410,_0x3403('0x46'),(..._0x920b6a)=>_0x920b6a['some'](_0x2cd0ad=>_0x2cd0ad)),_0x55a99d['on']('execute',_0x688d03=>{this[_0x3403('0x2c')]['execute'](_0x688d03[_0x3403('0x36')][_0x3403('0x49')]),this[_0x3403('0x2c')]['editing']['view']['focus']();}),_0x55a99d;}['_initializeController'](_0x21106a){const _0x397904=this[_0x3403('0x2c')],_0x3565fb=_0x397904[_0x3403('0x45')],_0x26dc59=_0x397904[_0x3403('0xd')][_0x3403('0x27')]('Annotations'),_0x309dfa=_0x397904['plugins'][_0x3403('0x27')](_0x3403('0x8')),_0x249636=_0x397904[_0x3403('0xd')][_0x3403('0x27')]('EditorAnnotations'),_0x12d30b=_0x397904[_0x3403('0xd')]['get'](_0x32ec2d)['me'],_0x37db38=_0x3565fb[_0x3403('0x27')](_0x3403('0x1f'))[_0x3403('0x4d')],{CommentsListView:_0xa6acc4,CommentThreadInputView:_0x5efd2f}=_0x397904[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x14'));let _0x11f054,_0x3821e3;this[_0x3403('0x4c')][_0x3403('0x30')](_0x21106a['id'])?(_0x3821e3=this[_0x3403('0x4c')][_0x3403('0x27')](_0x21106a['id']),_0x11f054=_0x3821e3[_0x3403('0x28')]):(_0x11f054=new _0x37db38(_0x397904[_0x3403('0x56')],_0x21106a,_0x12d30b,{'disableComments':this[_0x3403('0x47')],'editorConfig':_0x3565fb['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3565fb[_0x3403('0x27')](_0x3403('0x26')),'maxThreadTotalWeight':_0x3565fb[_0x3403('0x27')](_0x3403('0x0')),'maxCommentCharsWhenCollapsed':_0x3565fb['get'](_0x3403('0x40')),'formatDateTime':_0x23a44b(_0x3565fb[_0x3403('0x27')](_0x3403('0x56'))),'CommentView':_0x3565fb[_0x3403('0x27')]('comments')['CommentView'],'CommentsListView':_0xa6acc4,'CommentThreadInputView':_0x5efd2f}),_0x11f054[_0x3403('0x2')]['on']('execute',()=>{_0x397904[_0x3403('0x62')][_0x3403('0x3f')][_0x3403('0x48')]();}),_0x11f054[_0x3403('0x3e')]['on'](_0x3403('0x64'),()=>{_0x397904[_0x3403('0x62')]['view'][_0x3403('0x48')]();}),_0x3821e3=_0x26dc59[_0x3403('0x3a')](this[_0x3403('0x2c')][_0x3403('0x56')],_0x11f054),_0x3821e3[_0x3403('0x5a')](_0x3403('0x3b'))['to'](_0x11f054,_0x3403('0x3b')),_0x3821e3['bind'](_0x3403('0x23'))['to'](_0x11f054),_0x3821e3[_0x3403('0x5a')](_0x3403('0x2f'))['to'](_0x11f054,_0x3403('0x2f'),_0x98f3fe=>_0x3403('0x4f')+_0x98f3fe),this[_0x3403('0x4c')][_0x3403('0x32')](_0x21106a['id'],_0x3821e3));const _0x441117=_0x309dfa[_0x3403('0x7')](_0x21106a['commentThread'],_0x11f054),_0x22f0fe=new _0x2d06c2(_0x397904,_0x21106a,_0x11f054,_0x441117),_0x4e0139=_0x21106a['getAllAdjacentSuggestions']()[_0x3403('0x17')](_0x19f067=>_0x19f067[_0x3403('0x25')]);_0x11f054[_0x3403('0x35')]=_0x397904[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x63'))['_descriptionFactory'][_0x3403('0x4a')](_0x4e0139),this[_0x3403('0x20')]['set'](_0x21106a,_0x22f0fe),this['_viewToController']['set'](_0x11f054,_0x22f0fe);const _0x43611b=_0x26dc59['createAnnotation']({'view':_0x3821e3,'target':()=>{const _0x116101=[],_0x58265f=_0x21106a[_0x3403('0x61')]()[_0x3403('0x17')](_0x2b4cf2=>_0x2b4cf2['isInContent']);for(const _0x1faa86 of _0x58265f)_0x116101[_0x3403('0x44')](..._0x1faa86[_0x3403('0x50')]());return _0x47bb35(_0x397904[_0x3403('0x62')],_0x116101);},'type':()=>_0x3403('0x4f')+_0x22f0fe['view'][_0x3403('0x2f')]});_0x309dfa[_0x3403('0x5d')](_0x11f054,_0x43611b),_0x26dc59[_0x3403('0x58')](_0x43611b),_0x249636[_0x3403('0x10')](_0x43611b);}[_0x3403('0x65')](_0x7cb7a){const _0x3bc065=this[_0x3403('0x2c')]['plugins'][_0x3403('0x27')](_0x3403('0x12')),_0x1efa2c=this[_0x3403('0x20')][_0x3403('0x27')](_0x7cb7a),_0x532128=_0x1efa2c[_0x3403('0x3f')],_0x28165=_0x3bc065[_0x3403('0x5c')](_0x532128);_0x28165&&_0x3bc065[_0x3403('0x59')](_0x28165),this[_0x3403('0x20')]['delete'](_0x7cb7a),this['_viewToController'][_0x3403('0x13')](_0x532128),_0x1efa2c[_0x3403('0x1e')]();}[_0x3403('0x2a')](_0x4645c1){if(!_0x4645c1[_0x3403('0x25')]||!this[_0x3403('0x20')][_0x3403('0x30')](_0x4645c1))return;const _0x176bf5=this[_0x3403('0x2c')][_0x3403('0xd')]['get'](_0x3403('0x63')),_0x3ecb19=this[_0x3403('0x20')][_0x3403('0x27')](_0x4645c1),_0x5497f6=_0x4645c1[_0x3403('0x61')]();_0x3ecb19['view']['descriptionParts']=_0x176bf5[_0x3403('0xe')][_0x3403('0x4a')](_0x5497f6);}['destroy'](){for(const _0x19d990 of this[_0x3403('0x20')][_0x3403('0x2d')]())this[_0x3403('0x65')](_0x19d990);for(const _0x896d39 of this[_0x3403('0x4c')][_0x3403('0x18')]())_0x896d39[_0x3403('0x28')][_0x3403('0x1e')]();super[_0x3403('0x1e')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc1e5=['plugins','view','locale','PendingActions','unbind','commands','destroy','remove','_pendingAction','_acceptCommand','_setPendingAction','add','commentThreadController','discardSuggestion','model','canAccept','acceptSuggestion','isDirty','isEnabled','get','_discardCommand','execute','_editor','getRanges','_removePendingAction','canDiscard','change:isDirty','canEditAt','listenTo','bind'];(function(_0x4f0079,_0xc1e526){const _0x1fb25e=function(_0x58f1da){while(--_0x58f1da){_0x4f0079['push'](_0x4f0079['shift']());}};_0x1fb25e(++_0xc1e526);}(_0xc1e5,0x1b0));const _0x1fb2=function(_0x4f0079,_0xc1e526){_0x4f0079=_0x4f0079-0x0;let _0x1fb25e=_0xc1e5[_0x4f0079];return _0x1fb25e;};import{ObservableMixin as _0x570eb7}from'ckeditor5/src/utils';import{getTranslation as _0x32dbad}from'../utils/common-translations';export default class qt extends _0x570eb7(){constructor(_0x237e86,_0x1306b2,_0x2bd53c,_0x8f9dcb){super(),this['model']=_0x1306b2,this[_0x1fb2('0x13')]=_0x2bd53c,this[_0x1fb2('0x0')]=_0x8f9dcb,this[_0x1fb2('0xa')]=_0x237e86,this['_acceptCommand']=_0x237e86[_0x1fb2('0x17')][_0x1fb2('0x7')]('acceptSuggestion'),this[_0x1fb2('0x8')]=_0x237e86[_0x1fb2('0x17')][_0x1fb2('0x7')](_0x1fb2('0x1')),this[_0x1fb2('0x13')][_0x1fb2('0x11')](_0x1fb2('0x6'))['to'](this[_0x1fb2('0x1b')],this[_0x1fb2('0x8')],(_0x298344,_0x16e673)=>_0x298344||_0x16e673),this[_0x1fb2('0x13')]['bind'](_0x1fb2('0x3'))['to'](this[_0x1fb2('0x1b')],_0x1fb2('0x6'),_0x1026c3=>_0x1026c3&&this[_0x1fb2('0xa')][_0x1fb2('0x2')]['canEditAt'](_0x1306b2[_0x1fb2('0xb')]())),this[_0x1fb2('0x13')][_0x1fb2('0x11')]('canDiscard')['to'](this[_0x1fb2('0x8')],_0x1fb2('0x6'),_0x4b0dba=>_0x4b0dba&&this['_editor'][_0x1fb2('0x2')][_0x1fb2('0xf')](_0x1306b2['getRanges']())),this[_0x1fb2('0x1a')]=null,_0x2bd53c[_0x1fb2('0x5')]&&this[_0x1fb2('0x1c')](),this[_0x1fb2('0x10')](_0x2bd53c,_0x1fb2('0x4'),()=>this[_0x1fb2('0x4')]()),this[_0x1fb2('0x10')](_0x2bd53c,_0x1fb2('0x1'),()=>this[_0x1fb2('0x1')]()),this['listenTo'](_0x2bd53c,_0x1fb2('0xe'),()=>{_0x2bd53c[_0x1fb2('0x5')]?this[_0x1fb2('0x1c')]():this[_0x1fb2('0xc')]();});}[_0x1fb2('0x4')](){this[_0x1fb2('0x1b')][_0x1fb2('0x9')](this[_0x1fb2('0x2')]['id']);}[_0x1fb2('0x1')](){this[_0x1fb2('0x8')][_0x1fb2('0x9')](this[_0x1fb2('0x2')]['id']);}[_0x1fb2('0x18')](){this[_0x1fb2('0x13')][_0x1fb2('0x16')](_0x1fb2('0x6')),this['view'][_0x1fb2('0x16')]('canAccept'),this['view'][_0x1fb2('0x16')](_0x1fb2('0xd')),this['stopListening'](),this['commentThreadController'][_0x1fb2('0x18')](),this['_pendingAction']&&this[_0x1fb2('0xc')]();}[_0x1fb2('0x1c')](){const _0x3dbe58=_0x32dbad(this['_editor'][_0x1fb2('0x14')],'PENDING_ACTION_SUGGESTION');this[_0x1fb2('0x1a')]=this['_editor']['plugins'][_0x1fb2('0x7')](_0x1fb2('0x15'))[_0x1fb2('0x1d')](_0x3dbe58);}['_removePendingAction'](){null!==this[_0x1fb2('0x1a')]&&this[_0x1fb2('0xa')][_0x1fb2('0x12')][_0x1fb2('0x7')](_0x1fb2('0x15'))[_0x1fb2('0x19')](this['_pendingAction']),this[_0x1fb2('0x1a')]=null;}}
23
+ const _0x1e99=['getRanges','acceptSuggestion','_pendingAction','PENDING_ACTION_SUGGESTION','_removePendingAction','isEnabled','canDiscard','unbind','commentThreadController','locale','add','_acceptCommand','discardSuggestion','execute','_discardCommand','commands','destroy','model','canAccept','get','canEditAt','plugins','view','_editor','_setPendingAction','isDirty','listenTo','PendingActions','bind'];(function(_0x1a3cdf,_0x1e9920){const _0x11651e=function(_0x523105){while(--_0x523105){_0x1a3cdf['push'](_0x1a3cdf['shift']());}};_0x11651e(++_0x1e9920);}(_0x1e99,0xd2));const _0x1165=function(_0x1a3cdf,_0x1e9920){_0x1a3cdf=_0x1a3cdf-0x0;let _0x11651e=_0x1e99[_0x1a3cdf];return _0x11651e;};import{ObservableMixin as _0x286cb9}from'ckeditor5/src/utils';import{getTranslation as _0x4e8f9c}from'../utils/common-translations';export default class qt extends _0x286cb9(){constructor(_0x2622a4,_0x51deab,_0x541e80,_0x4e1e75){super(),this[_0x1165('0xa')]=_0x51deab,this[_0x1165('0xf')]=_0x541e80,this[_0x1165('0x1')]=_0x4e1e75,this[_0x1165('0x10')]=_0x2622a4,this['_acceptCommand']=_0x2622a4[_0x1165('0x8')][_0x1165('0xc')]('acceptSuggestion'),this['_discardCommand']=_0x2622a4['commands']['get']('discardSuggestion'),this[_0x1165('0xf')]['bind'](_0x1165('0x1b'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x146ff4,_0x224664)=>_0x146ff4||_0x224664),this[_0x1165('0xf')][_0x1165('0x15')]('canAccept')['to'](this['_acceptCommand'],_0x1165('0x1b'),_0x5057c2=>_0x5057c2&&this[_0x1165('0x10')]['model'][_0x1165('0xd')](_0x51deab[_0x1165('0x16')]())),this['view'][_0x1165('0x15')](_0x1165('0x1c'))['to'](this['_discardCommand'],_0x1165('0x1b'),_0x96ede=>_0x96ede&&this[_0x1165('0x10')]['model']['canEditAt'](_0x51deab[_0x1165('0x16')]())),this[_0x1165('0x18')]=null,_0x541e80[_0x1165('0x12')]&&this[_0x1165('0x11')](),this[_0x1165('0x13')](_0x541e80,_0x1165('0x17'),()=>this[_0x1165('0x17')]()),this[_0x1165('0x13')](_0x541e80,_0x1165('0x5'),()=>this[_0x1165('0x5')]()),this[_0x1165('0x13')](_0x541e80,'change:isDirty',()=>{_0x541e80[_0x1165('0x12')]?this[_0x1165('0x11')]():this['_removePendingAction']();});}[_0x1165('0x17')](){this[_0x1165('0x4')][_0x1165('0x6')](this[_0x1165('0xa')]['id']);}[_0x1165('0x5')](){this[_0x1165('0x7')][_0x1165('0x6')](this[_0x1165('0xa')]['id']);}[_0x1165('0x9')](){this['view'][_0x1165('0x0')]('isEnabled'),this[_0x1165('0xf')][_0x1165('0x0')](_0x1165('0xb')),this['view'][_0x1165('0x0')](_0x1165('0x1c')),this['stopListening'](),this[_0x1165('0x1')]['destroy'](),this[_0x1165('0x18')]&&this[_0x1165('0x1a')]();}['_setPendingAction'](){const _0x185b13=_0x4e8f9c(this[_0x1165('0x10')][_0x1165('0x2')],_0x1165('0x19'));this[_0x1165('0x18')]=this[_0x1165('0x10')]['plugins'][_0x1165('0xc')](_0x1165('0x14'))[_0x1165('0x3')](_0x185b13);}['_removePendingAction'](){null!==this[_0x1165('0x18')]&&this[_0x1165('0x10')][_0x1165('0xe')]['get'](_0x1165('0x14'))['remove'](this[_0x1165('0x18')]),this['_pendingAction']=null;}}