@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230803.0 → 0.0.0-nightly-20230804.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 _0x268f=['isEqual','enableCommand','deleteContent','isIntersectingWithRange','group','change','track-changes-suggestion-data-mismatch','removeMarker','getWalker','deletion','getMarkers','isTouching','consume','track-changes-user-not-found','isAtEnd','_getExternalAuthor','getChanges','suggestionChanged','options','insertion','containsRangeInObject','author','addComment','subType','track-changes-adapter-already-set','_onDiscard','_defaultCallbacks','length','_trackFormatChanges','rootName','_suggestionFactory','addRange','rejected','authorName','_addSuggestionMarker','removeComment','low','_findSuggestions','formatInline:discard','getShiftedBy','_suggestions','acceptAllSuggestions','discard','formatInline:accept','_commentsRepository','_mergeNestedSuggestions','getChangedMarkers','hasCommentThread','join','oldRange','isAfter','commentThread','multipleBlocks','getRanges','high','stopListening','originalSuggestionId','deletion:chain','Users','_registerDefaultCallbacks','normal','_joinSuggestions','insertContent','createSelection','then','_getAuthorFromId','insertion:discard','fire','discardAllSuggestions','notReady','collaboration.channelId','execute','hasSuggestion','move','insertion:','deletion:discard','editor','external:','setAttribute','createPositionBefore','schema','nodeBefore','getRange','removeMarker:suggestion:formatBlock','selection','$graveyard','registerPostFixer','getAttribute','getLastMatchingPosition','nodeAfter','after','start','setSelection','fetchCommentThread','getAncestors','data-suggestion','createdAt','addClass','createPositionAfter','PendingActions','suggestion-type','authoredAt','rethrowUnexpectedError','isObject','CommentsRepository','enableReadOnlyMode','discardSuggestion','map','registerCustomCallback','dataDowncast','dataReady','formatBlock:discard','get','locale','some','hasComments','getFirstRange','init','createRange','createRangeIn','before','_suggestionState','isInsideObject','_cutOutSuggestionMarker','suggestionUnloaded','formatBlock','updateSuggestion','includes','createElement','toJSON','creator','size','_getSuggestionData','batch','widget','never','splice','isCollapsed','formatInline:chain','markerToHighlight','define','getAllAdjacentSuggestions','suggestion','moveTargetPosition','$textProxy','plugins','forceDefaultExecution','getFirstMarker','values','@external','formatBlock:join','ready','ck-suggestion-marker--active','removed','position','_enabledCommands','highest','markerToData','formatBlock:','add','commands','markers','mapper','formatBlock:chain','howMany','bindElementToMarker','isUndo','_addThreadToSuggestion','addHighlight','_customCallbacks','containsItem','markInsertion','dataToMarker','value','markDeletion','update:suggestion','document','parent','set','ck-suggestion-marker-','markerReady','isDocumentOperation','root','elementEnd','adapter','isExternal','enqueueChange','_handleNewSuggestionMarker','fromCharCode','getIntersection','_setSuggestionData','conversion','ck-suggestion-marker-formatBlock','addSuggestionData','ck-suggestion-marker','previous','isAtStart','remove','sort','splitPosition','type','isRemovable','next','_setSuggestionRange','addUser','from','removeMarkers','item','model','config','isLimit','markMultiRangeInsertion','upcast','split','editingDowncast','insertion:accept','setTo','every','_saved','getItems','accepted','chain','insertion:chain','applyOperation','range','documentSelection','formatGroupId','for','createPositionAt','_splitMarkerName','element','getNearestSelectionRange','_isForcedDefaultExecutionBlock','marker-count','catch','formatInline','getMultiRangeId','delete','showSuggestionHighlights','consumable','isNextTo','_removeSuggestion','_breakSuggestionMarker','insert','push','trackChanges.mergeNestedSuggestions','name','return','data','writer','listenTo','_adapter','getCustomProperty','isBlock','isOwn','markBlockFormat','_updateSuggestionData','addCommentThread','head','filter','formatBlock:accept','newRange','getSuggestion','isBefore','change:data','addSuggestion','skipNestingCheck','discardSelectedSuggestions','isInContent','default','suggestionLoaded','end','_createSuggestion','acceptSelectedSuggestions','stop','isMultiRange','trackChanges.trackFormatChanges','error-saving-suggestion-data-suggestion-discarded','differ','acceptSuggestion','trackChangesCommand','_model','accept','attributes','addMarker:suggestion:formatBlock','has','containsRange','backward','updateMarker','elementToElement','fromRange','detach','getSuggestions','always','suggestion:','multi','isLocal','buildSuggestion','formatInline:','_refreshSuggestionsChain','editing','activeMarkers','markerName','_descriptionFactory','trackChanges','getUser','getSuggestionCallback','deletion:','_checkSuggestionCorrectness','_joinWithAdjacentSuggestions'];(function(_0x1dc25b,_0x268f2e){const _0x4e9b2d=function(_0x3b805d){while(--_0x3b805d){_0x1dc25b['push'](_0x1dc25b['shift']());}};_0x4e9b2d(++_0x268f2e);}(_0x268f,0xe1));const _0x4e9b=function(_0x1dc25b,_0x268f2e){_0x1dc25b=_0x1dc25b-0x0;let _0x4e9b2d=_0x268f[_0x1dc25b];return _0x4e9b2d;};import{Plugin as _0x5cfeb3,PendingActions as _0x126477}from'ckeditor5/src/core';import{LiveRange as _0x5e3949}from'ckeditor5/src/engine';import{CKEditorError as _0x225a88,uid as _0x4fbab8,priorities as _0x18fc4d,logWarning as _0x37bdeb}from'ckeditor5/src/utils';import{toWidget as _0x2da679}from'ckeditor5/src/widget';import{Users as _0x350619,hashObject as _0x305c8b}from'ckeditor5-collaboration/src/collaboration-core';import _0x496b9b from'./commands/trackchangescommand';import _0x5a576d from'./commands/acceptsuggestioncommand';import _0x157d55 from'./commands/discardsuggestioncommand';import _0x4ad869 from'./commands/executeonallsuggestionscommand';import _0x341c88 from'./commands/executeonselectedsuggestionscommand';import _0x2b860e from'./suggestion';import _0x15b0ef from'./suggestiondescriptionfactory';import _0x4ad944 from'./integrations/alignment';import _0x575592 from'./integrations/basicstyles';import _0x347130 from'./integrations/blockquote';import _0x4ad339 from'./integrations/ckbox';import _0x40cf46 from'./integrations/codeblock';import _0x1cdd72 from'./integrations/comments';import _0x22b136 from'./integrations/deletecommand';import _0x5ef35d from'./integrations/documentlist';import _0x34beb1 from'./integrations/entercommand';import _0x586877 from'./integrations/findandreplace';import _0x4a030b from'./integrations/font';import _0x49627a from'./integrations/formatpainter';import _0x22e833 from'./integrations/heading';import _0x223046 from'./integrations/highlight';import _0x147d3f from'./integrations/horizontalline';import _0x56a0fc from'./integrations/htmlembed';import _0x565f20 from'./integrations/image';import _0x5e23fc from'./integrations/imagereplace';import _0x583d5e from'./integrations/importword';import _0x2412ab from'./integrations/indent';import _0x1a289e from'./integrations/inputcommand';import _0x184872 from'./integrations/link';import _0x1dff40 from'./integrations/list';import _0x31b5b2 from'./integrations/listproperties';import _0x47d4a7 from'./integrations/mediaembed';import _0x1b49cb from'./integrations/mention';import _0x58c3bb from'./integrations/pagebreak';import _0x21b8d9 from'./integrations/paragraph';import _0x268dd0 from'./integrations/removeformat';import _0x47dd82 from'./integrations/restrictededitingmode';import _0x49532e from'./integrations/shiftentercommand';import _0x5036f1 from'./integrations/standardeditingmode';import _0x425480 from'./integrations/style';import _0x58f85b from'./integrations/table';import _0x5d36aa from'./integrations/tablemergesplit';import _0x52ccb9 from'./integrations/tableheadings';import _0x3485df from'./integrations/tableclipboard';import _0x3e859a from'./integrations/tablecolumnresize';import _0x10bc77 from'./integrations/template';import _0x216b6b from'./integrations/tableofcontents';import _0x1e4ec3 from'./integrations/title';import _0x333a76 from'./integrations/undo';import{getTranslation as _0x2d35a6}from'./utils/common-translations';import _0x1fca42 from'./integrations/tablecaption';import _0x420746 from'./integrations/documentlistproperties';import _0x343e3c from'./integrations/tableproperties';export default class p extends _0x5cfeb3{static get['requires'](){return[_0x4e9b('0xbd'),_0x350619,_0x126477,_0x4ad944,_0x575592,_0x347130,_0x4ad339,_0x40cf46,_0x1cdd72,_0x22b136,_0x5ef35d,_0x420746,_0x34beb1,_0x586877,_0x4a030b,_0x49627a,_0x22e833,_0x223046,_0x147d3f,_0x56a0fc,_0x565f20,_0x5e23fc,_0x583d5e,_0x2412ab,_0x1a289e,_0x184872,_0x1dff40,_0x31b5b2,_0x47d4a7,_0x1b49cb,_0x58c3bb,_0x21b8d9,_0x268dd0,_0x47dd82,_0x49532e,_0x5036f1,_0x425480,_0x58f85b,_0x5d36aa,_0x52ccb9,_0x1fca42,_0x3485df,_0x3e859a,_0x216b6b,_0x343e3c,_0x10bc77,_0x1e4ec3,_0x333a76];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x4b3a0d){function _0x554931(_0x3ee72f){return _0x3ee72f[_0x4e9b('0xc0')](_0xb28f55=>String[_0x4e9b('0x111')](_0xb28f55))['join']('');}super(_0x4b3a0d),this['set'](_0x4e9b('0x4c'),[]),this['on']('change:activeMarkers',(_0x1d8c3a,_0x240b8c,_0x2d54c3,_0x58e9e1)=>{this[_0x4e9b('0x38')]['change'](()=>{for(const _0x14483a of[..._0x58e9e1,..._0x2d54c3])this[_0x4e9b('0x38')][_0x4e9b('0xf6')][_0x4e9b('0x3c')](_0x14483a)&&_0x4b3a0d[_0x4e9b('0x4b')]['reconvertMarker'](_0x14483a);});}),this[_0x4e9b('0x4e')]=new _0x15b0ef(this['editor'][_0x4e9b('0x125')]['schema'],this['editor'][_0x4e9b('0xc6')]),this[_0x4e9b('0x1a')]=null,this['_suggestionFactory']=new Dt(this[_0x4e9b('0xa1')]),this[_0x4e9b('0x7d')]=new Map(),this[_0x4e9b('0x81')]=_0x4b3a0d[_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0xbd')),this[_0x4e9b('0xf0')]=new Set(),this[_0x4e9b('0x38')]=this[_0x4e9b('0xa1')][_0x4e9b('0x125')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xe1')](_0x4e9b('0x33'),_0x4e9b('0x2c')),this[_0x4e9b('0x71')]=_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xc5')]('trackChanges.trackFormatChanges'),_0x4b3a0d['config']['define'](_0x4e9b('0x14'),!0x0),this['_mergeNestedSuggestions']=_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xc5')](_0x4e9b('0x14')),this['trackChangesCommand']=new _0x496b9b(_0x4b3a0d,this[_0x4e9b('0xf0')]),this[_0x554931([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x554931([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x36]);}[_0x4e9b('0xca')](){const _0x5aad04=this['editor'];_0x5aad04['conversion']['for'](_0x4e9b('0x12b'))[_0x4e9b('0xe0')]({'model':_0x4e9b('0xe3'),'view':_0x38b36c=>{const {id:_0x49f7a4,type:_0x2f2b48}=this[_0x4e9b('0x4')](_0x38b36c[_0x4e9b('0x4d')]),_0x46b85c=[_0x4e9b('0x117'),_0x4e9b('0x108')+_0x2f2b48];let _0x208465=0xbb8;return this[_0x4e9b('0x4c')][_0x4e9b('0xd4')](_0x38b36c['markerName'])&&(_0x46b85c[_0x4e9b('0x13')](_0x4e9b('0xed')),_0x208465=0xbc2),_0x4e9b('0x5e')==_0x2f2b48&&(_0x208465+=0x5),{'classes':_0x46b85c,'attributes':{'data-suggestion':_0x49f7a4},'priority':_0x208465};}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('dataDowncast')[_0x4e9b('0xf4')](_0x437bb8=>{_0x437bb8['on']('addMarker:suggestion',(_0x4382e0,_0x4742c,_0x442343)=>{if(!_0x442343[_0x4e9b('0x67')][_0x4e9b('0xd')])return;const _0x4ed09f=_0x4742c[_0x4e9b('0x124')];if(!_0x4ed09f)return;const _0x2029fd=_0x442343[_0x4e9b('0xf7')]['toViewElement'](_0x4ed09f);_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xa5')][_0x4e9b('0xbc')](_0x4ed09f)&&_0x2029fd&&!_0x2029fd[_0x4e9b('0x1b')](_0x4e9b('0xdb'))&&_0x2029fd['is']('containerElement')&&_0x2da679(_0x2029fd,_0x442343[_0x4e9b('0x18')]);},{'priority':_0x4e9b('0x8b')});}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0xc2'))[_0x4e9b('0xe0')]({'model':_0x4e9b('0xe3'),'view':(_0x4dbb63,_0x21cf31)=>{if(!_0x21cf31['options']['showSuggestionHighlights'])return null;const {type:_0x56e9b7}=this['_splitMarkerName'](_0x4dbb63[_0x4e9b('0x4d')]);return{'classes':[_0x4e9b('0x117'),_0x4e9b('0x108')+_0x56e9b7],'priority':0xbb8};}});const _0x41bbe3=({showActiveMarkers:_0x25f349=!0x0}={})=>(_0x36f8ba,_0xa8a740,_0x158218)=>{if(!_0xa8a740[_0x4e9b('0x124')])return;if(_0xa8a740[_0x4e9b('0x124')]['is'](_0x4e9b('0xa9')))return void _0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0xa8a740['item'],_0x36f8ba[_0x4e9b('0x15')]);const _0x1f4a32=_0x158218[_0x4e9b('0xf7')]['toViewElement'](_0xa8a740[_0x4e9b('0x124')]);if(!(_0xa8a740['item']['is'](_0x4e9b('0x5'))&&_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xa5')][_0x4e9b('0x1c')](_0xa8a740[_0x4e9b('0x124')])&&!_0x1f4a32[_0x4e9b('0x1b')]('addHighlight')))return;const {id:_0xf49efb}=this[_0x4e9b('0x4')](_0xa8a740[_0x4e9b('0x4d')]);_0x158218[_0x4e9b('0x18')]['addClass']([_0x4e9b('0x117'),_0x4e9b('0x115')],_0x1f4a32),_0x158218['writer'][_0x4e9b('0xa3')](_0x4e9b('0xb4'),_0xf49efb,_0x1f4a32),_0x158218[_0x4e9b('0xf7')][_0x4e9b('0xfa')](_0x1f4a32,_0xa8a740[_0x4e9b('0x4d')]),_0x25f349&&(this[_0x4e9b('0x4c')][_0x4e9b('0xd4')](_0xa8a740[_0x4e9b('0x4d')])?_0x158218[_0x4e9b('0x18')][_0x4e9b('0xb6')](_0x4e9b('0xed'),_0x1f4a32):_0x158218['writer']['removeClass']('ck-suggestion-marker--active',_0x1f4a32));for(const _0x49b0d8 of _0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcc')](_0xa8a740[_0x4e9b('0x124')])[_0x4e9b('0x130')]())_0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0x49b0d8,_0x36f8ba[_0x4e9b('0x15')]);_0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0xa8a740[_0x4e9b('0x124')],_0x36f8ba[_0x4e9b('0x15')]);};_0x5aad04[_0x4e9b('0x114')]['for']('dataDowncast')[_0x4e9b('0xf4')](_0x167f04=>{_0x167f04['on'](_0x4e9b('0x3b'),(_0x22b42f,_0x1a79bc,_0x15be90)=>{_0x15be90['options'][_0x4e9b('0xd')]&&_0x41bbe3({'showActiveMarkers':!0x1})(_0x22b42f,_0x1a79bc,_0x15be90);},{'priority':_0x4e9b('0xf1')});}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('dataDowncast')[_0x4e9b('0xf2')]({'model':'suggestion','view':(_0x499df8,_0xceb4cc)=>_0xceb4cc['options'][_0x4e9b('0xd')]?null:{'group':_0x4e9b('0xe3'),'name':_0x499df8['substr'](0xb)}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0x129'))[_0x4e9b('0x40')]({'view':{'name':_0x4e9b('0xe3'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4fda0c,{writer:_0x165fba})=>{let _0x5938b9=_0x4e9b('0x45')+_0x4fda0c['getAttribute'](_0x4e9b('0xb9'))+':'+_0x4fda0c[_0x4e9b('0xac')]('id');return _0x4fda0c['getAttribute'](_0x4e9b('0x8'))&&(_0x5938b9+=':'+_0x4fda0c['getAttribute'](_0x4e9b('0x8'))),_0x165fba[_0x4e9b('0xd5')]('$marker',{'data-name':_0x5938b9});}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('upcast')[_0x4e9b('0x101')]({'view':_0x4e9b('0xe3')}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0x12b'))['add'](_0x1b9677=>{_0x1b9677['on'](_0x4e9b('0x3b'),_0x41bbe3(),{'priority':_0x4e9b('0x8b')});}),_0x5aad04['conversion'][_0x4e9b('0x2')](_0x4e9b('0x12b'))['add'](_0x2fa0e9=>{_0x2fa0e9['on'](_0x4e9b('0xa8'),(_0xbbb234,_0x5d0f3a,_0x5623d1)=>{const _0xcd93a7=_0x5623d1['mapper']['markerNameToElements'](_0x5d0f3a[_0x4e9b('0x4d')]);if(_0xcd93a7)for(const _0x1e601d of _0xcd93a7)_0x1e601d[_0x4e9b('0x1b')](_0x4e9b('0xfd'))||(_0x5623d1[_0x4e9b('0x18')]['removeClass']([_0x4e9b('0x117'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e601d),_0x5623d1['writer']['removeAttribute'](_0x4e9b('0xb4'),_0x1e601d),_0x5623d1[_0x4e9b('0xf7')]['unbindElementFromMarkerName'](_0x1e601d,_0x5d0f3a['markerName']));},{'priority':_0x4e9b('0x8b')});}),_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')][_0x4e9b('0xab')](_0x4f430a=>{let _0x1e5ce7=!0x1;const _0x3b8db2=Array['from'](_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')]['differ'][_0x4e9b('0x83')]()),_0x5c594a=new Set();for(const {name:_0x43715c,data:_0x24f627}of _0x3b8db2){const {group:_0x345623,type:_0x5f5c92,id:_0x179a8c}=this['_splitMarkerName'](_0x43715c);if(_0x4e9b('0xe3')!==_0x345623)continue;const _0x28cc92=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x179a8c);if(null!=_0x24f627[_0x4e9b('0x24')]){'formatInline'==_0x5f5c92&&(_0x1e5ce7=_0x1e5ce7||Mt(_0x24f627['newRange'],_0x43715c,_0x4f430a,_0x5aad04['model']['schema']));if(_0x24f627[_0x4e9b('0x24')][_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x24f627[_0x4e9b('0x24')]['root']['rootName']||_0x4e9b('0xd2')==_0x5f5c92&&!Nt(_0x24f627[_0x4e9b('0x24')])||_0x4e9b('0x5e')==_0x5f5c92&&!(!_t(_0x5c61e4=_0x24f627[_0x4e9b('0x24')])&&!function(_0x508deb){return _0x508deb[_0x4e9b('0xb0')][_0x4e9b('0x106')]==_0x508deb[_0x4e9b('0x2e')][_0x4e9b('0xa6')]&&_0x508deb[_0x4e9b('0xb0')]['isAtEnd'];}(_0x5c61e4)))_0x4f430a['removeMarker'](_0x43715c),_0x1e5ce7=!0x0;else{if(!_0x28cc92||!_0x28cc92[_0x4e9b('0x2b')])continue;_0x5c594a[_0x4e9b('0xf4')](_0x28cc92);}}}var _0x5c61e4;return _0x5c594a[_0x4e9b('0xd8')]>0x0&&(_0x1e5ce7=!!this[_0x4e9b('0x54')](_0x5c594a)||_0x1e5ce7),_0x1e5ce7;}),_0x5aad04['model'][_0x4e9b('0x105')][_0x4e9b('0xab')](_0x200a51=>{let _0x14a215=!0x1;for(const _0x2fa598 of _0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')][_0x4e9b('0x35')][_0x4e9b('0x65')]()){if('insert'!=_0x2fa598[_0x4e9b('0x11d')])continue;const _0x491f42=_0x2fa598[_0x4e9b('0xef')][_0x4e9b('0x7c')](_0x2fa598[_0x4e9b('0x70')]);if(_0x491f42[_0x4e9b('0x63')])for(const _0x5b3a5d of this[_0x4e9b('0x7d')][_0x4e9b('0xe9')]()){if(_0x5b3a5d[_0x4e9b('0x32')]||!_0x5b3a5d[_0x4e9b('0x2b')])continue;if(_0x4e9b('0xd2')!=_0x5b3a5d['type'])continue;const _0x266b39=_0x5b3a5d[_0x4e9b('0xc9')]();if(_0x266b39[_0x4e9b('0xb0')][_0x4e9b('0x106')]!=_0x266b39[_0x4e9b('0x2e')][_0x4e9b('0x106')]&&_0x266b39['end'][_0x4e9b('0x55')](_0x2fa598[_0x4e9b('0xef')])){const _0x6fdcd8=_0x5aad04['model']['createRange'](_0x266b39[_0x4e9b('0xb0')],_0x491f42);_0x200a51['updateMarker'](_0x5b3a5d['getFirstMarker'](),{'range':_0x6fdcd8}),_0x14a215=!0x0;}}}return _0x14a215;}),_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xf6')]['on'](_0x4e9b('0x104'),(_0x35f7fe,_0x4eba93,_0x42b930)=>{if(null==_0x42b930){const {id:_0x14aa91}=this[_0x4e9b('0x4')](_0x4eba93[_0x4e9b('0x15')]),_0x548012=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x14aa91);_0x548012&&_0x548012['addMarkerName'](_0x4eba93[_0x4e9b('0x15')]);}}),_0x5aad04['model']['document']['on'](_0x4e9b('0x27'),()=>{const _0x1a98db=Array['from'](_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')]['differ'][_0x4e9b('0x83')]())[_0x4e9b('0x22')](_0x457300=>_0x4e9b('0xe3')===this[_0x4e9b('0x4')](_0x457300[_0x4e9b('0x15')])[_0x4e9b('0x59')]);if(0x0===_0x1a98db[_0x4e9b('0x70')])return;_0x1a98db[_0x4e9b('0x11b')]((_0x1ddaa4,_0x5b179c)=>{const _0x31e352=_0x1ddaa4[_0x4e9b('0x17')][_0x4e9b('0x86')],_0x27888c=_0x5b179c[_0x4e9b('0x17')]['oldRange'];return null===_0x31e352&&null===_0x27888c?0x0:null===_0x31e352&&null!==_0x27888c?-0x1:null!==_0x31e352&&null===_0x27888c?0x1:_0x31e352[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x27888c[_0x4e9b('0xb0')])?-0x1:0x1;});const _0x25a8b1=new Set(),_0x2597e2=new Set();for(const {name:_0x339e32,data:_0x22e148}of _0x1a98db){const {id:_0x356c63}=this[_0x4e9b('0x4')](_0x339e32);if(null===_0x22e148['oldRange']){const _0xa3cd88=this['_handleNewSuggestionMarker'](_0x339e32);_0x2597e2[_0x4e9b('0xf4')](_0xa3cd88);}else{const _0x53fd10=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x356c63);null!==_0x22e148['newRange']||_0x53fd10['isInContent']?(_0x25a8b1[_0x4e9b('0xf4')](_0x53fd10[_0x4e9b('0x21')]),_0x2597e2[_0x4e9b('0xf4')](_0x53fd10)):this['_removeSuggestion'](_0x53fd10);}}_0x2597e2['size']>0x0&&this[_0x4e9b('0x4a')](_0x2597e2);for(const _0x407bc0 of _0x25a8b1)this[_0x4e9b('0x98')](_0x4e9b('0x66'),_0x407bc0);}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x134'),(_0x19f019,_0xb2c9bb)=>{const _0xc43970=_0xb2c9bb[0x0];if(!this['_suggestions'][_0x4e9b('0xd8')])return;if(!_0xc43970[_0x4e9b('0x10a')])return;if(_0xc43970['batch'][_0x4e9b('0xfb')]||!_0xc43970[_0x4e9b('0xda')][_0x4e9b('0x47')])return;let _0x402e3f,_0x4a0d46;switch(_0xc43970[_0x4e9b('0x11d')]){case _0x4e9b('0x12'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0xef')]),_0x4a0d46=_0x402e3f['getShiftedBy'](_0xc43970[_0x4e9b('0xf9')]);break;case _0x4e9b('0x12a'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0x11c')]),_0x4a0d46=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0xe4')]);break;case _0x4e9b('0x9e'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970['targetPosition']),_0x4a0d46=_0x402e3f['getShiftedBy'](_0xc43970[_0x4e9b('0xf9')]);break;default:return;}const _0x1fc660=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcb')](_0x402e3f,_0x4a0d46);_0x5aad04['model'][_0x4e9b('0x5a')](()=>{for(const {suggestion:_0x3d4f48,meta:_0x9cdd05}of this[_0x4e9b('0x7a')](_0x1fc660)){if(_0x3d4f48[_0x4e9b('0x32')])continue;if(_0x4e9b('0xa')==_0x3d4f48[_0x4e9b('0x11d')])continue;const _0x294aa8=_0x3d4f48[_0x4e9b('0x17')]&&_0x3d4f48[_0x4e9b('0x17')]['multipleBlocks'];('formatBlock'!=_0x3d4f48['type']||'split'==_0xc43970['type']&&!_0x294aa8)&&(_0x9cdd05[_0x4e9b('0x69')]||_0x4e9b('0x68')==_0x3d4f48[_0x4e9b('0x11d')]&&_0x9cdd05[_0x4e9b('0x1d')]||_0x3d4f48[_0x4e9b('0xc9')]()[_0x4e9b('0x3d')](_0x1fc660)&&this[_0x4e9b('0x11')](_0x3d4f48,_0x402e3f,_0x4a0d46));}});},{'priority':'lowest'}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x57'),(_0x485eb4,_0x363520)=>{const _0x254d98=_0x363520[0x0],_0x9e18f=_0x363520[0x1];if(_0x9e18f&&_0x9e18f[_0x4e9b('0xe7')])return;if(this[_0x4e9b('0x7')])return;if(!this[_0x4e9b('0x37')][_0x4e9b('0x102')])return;if(_0x254d98[_0x4e9b('0xde')])return;const _0x29dc74=_0x5aad04[_0x4e9b('0x125')]['schema'],{start:_0x25d12f,end:_0x295a39}=_0x254d98[_0x4e9b('0xc9')](),_0x53ca46=_0x25d12f[_0x4e9b('0xae')]&&_0x29dc74[_0x4e9b('0x127')](_0x25d12f['nodeAfter'])?null:_0x29dc74[_0x4e9b('0x6')](_0x25d12f,'forward'),_0x40740b=_0x295a39['nodeBefore']&&_0x29dc74[_0x4e9b('0x127')](_0x295a39[_0x4e9b('0xa6')])?null:_0x29dc74[_0x4e9b('0x6')](_0x295a39,_0x4e9b('0x3e')),_0x430b8c=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcb')](_0x53ca46?_0x53ca46[_0x4e9b('0xb0')]:_0x25d12f,_0x40740b?_0x40740b[_0x4e9b('0x2e')]:_0x295a39);_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x5a')](_0x27f4d7=>{this[_0x4e9b('0x103')](_0x430b8c);const _0x247336=_0x5aad04['model'][_0x4e9b('0xa5')][_0x4e9b('0x6')](_0x430b8c[_0x4e9b('0xb0')]);_0x254d98['is'](_0x4e9b('0x0'))?_0x27f4d7[_0x4e9b('0xb1')](_0x247336):_0x254d98[_0x4e9b('0x12d')](_0x247336);}),_0x485eb4[_0x4e9b('0x31')]();},{'priority':_0x18fc4d[_0x4e9b('0x91')]+0xa}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x93'),(_0x50f56d,_0x5cfe28)=>{const _0x381d46=_0x5cfe28[_0x5cfe28[_0x4e9b('0x70')]-0x1];_0x381d46&&_0x381d46[_0x4e9b('0xe7')]||this['_isForcedDefaultExecutionBlock']||this[_0x4e9b('0x37')][_0x4e9b('0x102')]&&(_0x5aad04['model'][_0x4e9b('0x5a')](()=>{let _0x1a4ed6=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x93')](_0x5cfe28[0x0],_0x5cfe28[0x1],_0x5cfe28[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a4ed6)return;_0x50f56d[_0x4e9b('0x16')]=_0x1a4ed6['clone']();const _0x2147a8=_0x1a4ed6[_0x4e9b('0x2e')][_0x4e9b('0xa6')],_0x55b966=_0x5aad04['model'][_0x4e9b('0xa5')];_0x2147a8&&_0x55b966[_0x4e9b('0x1c')](_0x2147a8)&&!_0x55b966[_0x4e9b('0xbc')](_0x2147a8)&&(_0x1a4ed6=_0x5aad04['model'][_0x4e9b('0xcb')](_0x1a4ed6[_0x4e9b('0xb0')],_0x5aad04['model'][_0x4e9b('0x3')](_0x2147a8,_0x4e9b('0x2e')))),this[_0x4e9b('0x100')](_0x1a4ed6);}),_0x50f56d[_0x4e9b('0x31')]());},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0xa1')]['commands'][_0x4e9b('0xf4')](_0x4e9b('0x4f'),this['trackChangesCommand']),this[_0x4e9b('0x56')](_0x4e9b('0x4f'));const _0xb0a828=new _0x5a576d(_0x5aad04,this['_suggestions']);_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')](_0x4e9b('0x36'),_0xb0a828),this[_0x4e9b('0x56')](_0x4e9b('0x36'));const _0x58c22c=new _0x157d55(_0x5aad04,this[_0x4e9b('0x7d')]);_0x5aad04[_0x4e9b('0xf5')]['add'](_0x4e9b('0xbf'),_0x58c22c),this[_0x4e9b('0x56')](_0x4e9b('0xbf')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('acceptAllSuggestions',new _0x4ad869(_0x5aad04,_0xb0a828,this[_0x4e9b('0x7d')])),this[_0x4e9b('0x56')](_0x4e9b('0x7e')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')](_0x4e9b('0x99'),new _0x4ad869(_0x5aad04,_0x58c22c,this['_suggestions'])),this[_0x4e9b('0x56')](_0x4e9b('0x99')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('acceptSelectedSuggestions',new _0x341c88(_0x5aad04,_0xb0a828,this[_0x4e9b('0x7d')])),this['enableCommand'](_0x4e9b('0x30')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('discardSelectedSuggestions',new _0x341c88(_0x5aad04,_0x58c22c,this[_0x4e9b('0x7d')])),this[_0x4e9b('0x56')](_0x4e9b('0x2a'));const _0x553151=_0x5aad04[_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0xbd'));this[_0x4e9b('0x19')](_0x553151,_0x4e9b('0x6b'),(_0x4f55f6,{threadId:_0x18548e})=>{const _0x4e5f07=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x18548e);_0x4e5f07&&_0x4e5f07['commentThread']&&0x1===_0x4e5f07[_0x4e9b('0x88')][_0x4e9b('0x70')]&&this[_0x4e9b('0x1f')](_0x18548e,{'hasComments':!0x0});},{'priority':_0x4e9b('0x79')}),this[_0x4e9b('0x19')](_0x553151,_0x4e9b('0x78'),(_0x3cca38,{threadId:_0x21b7aa})=>{const _0x57a439=this['_suggestions'][_0x4e9b('0xc5')](_0x21b7aa);_0x57a439&&_0x57a439[_0x4e9b('0x88')]&&!_0x57a439['commentThread'][_0x4e9b('0x70')]&&this[_0x4e9b('0x1f')](_0x21b7aa,{'hasComments':!0x1});},{'priority':_0x4e9b('0x79')});}set[_0x4e9b('0x10d')](_0x43fca8){if(this[_0x4e9b('0x1a')])throw new _0x225a88(_0x4e9b('0x6d'),this);this[_0x4e9b('0x1a')]=_0x43fca8;}get[_0x4e9b('0x10d')](){return this[_0x4e9b('0x1a')];}['getSuggestions']({skipNotAttached:_0x486bb3=!0x1,toJSON:_0x2527da=!0x1}={}){const _0x4d167d=[];for(const _0x4f1d0f of this['_suggestions'][_0x4e9b('0xe9')]())_0x486bb3&&!_0x4f1d0f[_0x4e9b('0x2b')]||_0x4d167d['push'](_0x4f1d0f);return _0x2527da?_0x4d167d['map'](_0x4c4696=>_0x4c4696[_0x4e9b('0xd6')]()):_0x4d167d;}[_0x4e9b('0x25')](_0x410a4d){const _0x1befae=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x410a4d);if(!_0x1befae)throw new _0x225a88('track-changes-suggestion-not-found',this);return _0x1befae;}[_0x4e9b('0x9d')](_0x3f7d37){return this[_0x4e9b('0x7d')][_0x4e9b('0x3c')](_0x3f7d37);}[_0x4e9b('0x116')](_0xdfe2a7){const {authorId:_0x492807,id:_0x58b2e7,attributes:_0x491376}=_0xdfe2a7,[_0xd38913,_0x38d91b]=_0xdfe2a7['type'][_0x4e9b('0x12a')](':'),_0x47ac7e=this[_0x4e9b('0x7d')]['get'](_0x58b2e7)||this[_0x4e9b('0x2f')](_0xd38913,_0x38d91b,_0x58b2e7,_0x492807,_0x491376);if(this[_0x4e9b('0xfc')](_0x47ac7e),this['_checkSuggestionCorrectness'](_0x47ac7e,_0xd38913,_0x38d91b||null,_0x492807),_0x47ac7e[_0x4e9b('0xb5')]=_0xdfe2a7[_0x4e9b('0xb5')],_0x491376&&_0x491376[_0x4e9b('0xea')]){const _0x388cb1=_0x491376[_0x4e9b('0xea')],_0x92fb6=this['_getExternalAuthor'](_0x388cb1[_0x4e9b('0x76')]);_0x47ac7e['authoredAt']=_0x388cb1['createdAt'],_0x47ac7e[_0x4e9b('0x6a')]=_0x92fb6,_0x47ac7e[_0x4e9b('0x10e')]=!0x0;}else _0x47ac7e[_0x4e9b('0xba')]=_0xdfe2a7[_0x4e9b('0xb5')];switch(_0xdfe2a7['data']&&(_0x47ac7e[_0x4e9b('0x17')]=_0xdfe2a7[_0x4e9b('0x17')]),_0xdfe2a7[_0x4e9b('0x3a')]&&(_0x47ac7e[_0x4e9b('0x3a')]=_0xdfe2a7[_0x4e9b('0x3a')]),this[_0x4e9b('0x1a')]&&this[_0x4e9b('0x1a')][_0x4e9b('0x28')]||(_0x47ac7e[_0x4e9b('0x12f')]=!0x0),this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x47ac7e)){case _0x4e9b('0x9a'):this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xc3'));break;case _0x4e9b('0x109'):_0x47ac7e[_0x4e9b('0x2b')]?(this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xec')),this['fire']('suggestionLoaded',_0x47ac7e)):this['_suggestionState'][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xee'));}return _0x47ac7e;}[_0x4e9b('0x36')](_0x487b6c){this['forceDefaultExecution'](()=>{this[_0x4e9b('0xa1')][_0x4e9b('0x125')]['change'](()=>{for(const _0x2a3813 of _0x487b6c[_0x4e9b('0xe2')]())_0x2a3813[_0x4e9b('0x39')]();});});}[_0x4e9b('0xbf')](_0x3974ee){this[_0x4e9b('0xe7')](()=>{this[_0x4e9b('0xa1')][_0x4e9b('0x125')][_0x4e9b('0x5a')](()=>{for(const _0x4537a8 of _0x3974ee['getAllAdjacentSuggestions']())_0x4537a8[_0x4e9b('0x7f')]();});});}[_0x4e9b('0x56')](_0x55f8ee,_0x8a3aa){const _0x3cb0ed=this[_0x4e9b('0xa1')][_0x4e9b('0xf5')][_0x4e9b('0xc5')](_0x55f8ee);if(!_0x3cb0ed)throw new _0x225a88('track-changes-command-not-found',this,{'commandName':_0x55f8ee});this[_0x4e9b('0xf0')]['add'](_0x3cb0ed),_0x8a3aa&&_0x3cb0ed['on']('execute',(_0x506fc7,_0x353adb)=>{this[_0x4e9b('0x37')]['value']&&(this[_0x4e9b('0x7')]||_0x353adb[_0x4e9b('0x70')]>0x0&&_0x353adb[_0x353adb[_0x4e9b('0x70')]-0x1]&&_0x353adb[_0x353adb[_0x4e9b('0x70')]-0x1][_0x4e9b('0xe7')]||(_0x8a3aa((..._0x216cab)=>_0x3cb0ed['execute'](..._0x216cab,{'forceDefaultExecution':!0x0}),..._0x353adb),_0x506fc7[_0x4e9b('0x31')]()));},{'priority':_0x4e9b('0x8b')});}[_0x4e9b('0xe7')](_0xf9eb4a){let _0x1efedf,_0xfab974;const _0x517b54=this[_0x4e9b('0x7')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1efedf=_0xf9eb4a();}catch(_0x38578c){_0xfab974=_0x38578c;}return _0x517b54||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xfab974&&_0x225a88[_0x4e9b('0xbb')](_0xfab974,this),_0x1efedf;}['markInsertion'](_0x7f068e,_0x55df49=null,_0x2a4c4e={}){if(_0x7f068e[_0x4e9b('0xde')])return null;const _0x43d971=this['editor'][_0x4e9b('0xe6')]['get']('Users')['me'];for(const {suggestion:_0xe3b505,meta:_0xa7b208}of this[_0x4e9b('0x7a')](_0x7f068e,'insertion'))if(_0xa7b208[_0x4e9b('0x1d')]){if(!_0xa7b208[_0x4e9b('0xf')]){if(!this[_0x4e9b('0x82')]&&_0xa7b208[_0x4e9b('0x69')])continue;return _0xe3b505;}if(_0x55df49==_0xe3b505[_0x4e9b('0x6c')]){const _0x4aba4c=_0xe3b505['getFirstRange']();return _0x4aba4c[_0x4e9b('0xb0')][_0x4e9b('0x55')](_0x7f068e[_0x4e9b('0x2e')])?this[_0x4e9b('0x120')](_0xe3b505,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x7f068e['start'],_0x4aba4c['end'])):this[_0x4e9b('0x120')](_0xe3b505,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x4aba4c[_0x4e9b('0xb0')],_0x7f068e[_0x4e9b('0x2e')])),_0xe3b505;}}const _0x5765d0=_0x4fbab8(),_0x342cc4=_0x43d971['id'],_0xd3b589=_0x55df49?'insertion:'+_0x55df49:'insertion',_0x2dfd19=this[_0x4e9b('0x113')]({'id':_0x5765d0,'type':_0xd3b589,'createdAt':new Date(),'authorId':_0x342cc4,'attributes':_0x2a4c4e});return this[_0x4e9b('0x77')](_0xd3b589,_0x5765d0,_0x342cc4,_0x7f068e),_0x2dfd19;}[_0x4e9b('0x128')](_0x48f3c1,_0x304604=_0x4e9b('0x46'),_0x19e442={}){const _0x51bb81=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x5a6ffd=this['_suggestionFactory'][_0x4e9b('0x51')](_0x4e9b('0x68'),_0x304604,_0x4e9b('0x85'));for(const _0x44bb6d of this[_0x4e9b('0x43')]())if(_0x44bb6d[_0x4e9b('0x6a')]['id']==_0x51bb81['id']&&_0x4e9b('0x68')==_0x44bb6d['type']&&_0x44bb6d['subType']==_0x304604&&(_0x5a6ffd(_0x44bb6d[_0x4e9b('0x8a')](),_0x48f3c1)||_0x5a6ffd(_0x48f3c1,_0x44bb6d['getRanges']()))){for(const _0x39c1f1 of _0x48f3c1)_0x44bb6d[_0x4e9b('0x74')](_0x39c1f1);return _0x44bb6d;}if(this[_0x4e9b('0x82')])for(const _0x3d781e of _0x48f3c1)for(const {suggestion:_0x1d85bc,meta:_0xebc558}of this[_0x4e9b('0x7a')](_0x3d781e,_0x4e9b('0x68'))){if(!_0xebc558[_0x4e9b('0x1d')])continue;let _0x4fd5ef=!0x0;for(const _0x359cdc of _0x1d85bc[_0x4e9b('0x8a')]())for(const _0x542ff7 of _0x48f3c1)if(!_0x359cdc['containsRange'](_0x542ff7)){_0x4fd5ef=!0x1;break;}if(_0x4fd5ef)return _0x1d85bc;}const _0x96425c=_0x4fbab8(),_0x475090=_0x51bb81['id'],_0x5bac57=_0x4e9b('0x9f')+_0x304604,_0x2dfb48=this[_0x4e9b('0x113')]({'id':_0x96425c,'type':_0x5bac57,'createdAt':new Date(),'authorId':_0x475090,'attributes':_0x19e442});for(const _0x41964d of _0x48f3c1)this[_0x4e9b('0x77')](_0x5bac57,_0x96425c,_0x475090,_0x41964d,_0x2b860e[_0x4e9b('0xb')]());return _0x2dfb48;}['markInlineFormat'](_0x5b95aa,_0x5856a9,_0x35460b=null,_0x12d425={}){if(_0x35460b=_0x35460b||$t(_0x5856a9),_0x5b95aa['isCollapsed'])return null;if(_0x4e9b('0xdc')===this['_trackFormatChanges']){const _0x10d07d=this['_suggestionFactory']['getSuggestionCallback'](_0x4e9b('0xa'),_0x35460b,'accept');return this[_0x4e9b('0xe7')](()=>_0x10d07d([_0x5b95aa],_0x5856a9,_0x12d425)),null;}const _0xb70062=this['editor']['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x5e08c6=[];if('always'!==this[_0x4e9b('0x71')])for(const {suggestion:_0x1122ea,meta:_0x4e3a11}of this[_0x4e9b('0x7a')](_0x5b95aa,_0x4e9b('0x68')))_0x4e3a11[_0x4e9b('0x1d')]&&!_0x4e3a11[_0x4e9b('0xcf')]&&_0x5e08c6[_0x4e9b('0x13')](..._0x1122ea[_0x4e9b('0x8a')]());const _0x9ff8a1=function(_0x2a8792,_0x556094){const _0xbfe57e=[];for(const _0x38c9eb of _0x556094){const _0x3c55f7=_0x2a8792[_0x4e9b('0x112')](_0x38c9eb);_0x3c55f7&&_0xbfe57e[_0x4e9b('0x13')](_0x3c55f7);}return _0xbfe57e;}(_0x5b95aa,_0x5e08c6),_0x114b11=function(_0x2f8a8c,_0x56cc4f){const _0x512287=[_0x2f8a8c];for(const _0x150d98 of _0x56cc4f){let _0x2d5690=0x0;for(;_0x2d5690<_0x512287[_0x4e9b('0x70')];){const _0x5d6e7d=_0x512287[_0x2d5690]['getDifference'](_0x150d98);_0x512287[_0x4e9b('0xdd')](_0x2d5690,0x1,..._0x5d6e7d),_0x2d5690+=_0x5d6e7d['length'];}}return _0x512287;}(_0x5b95aa,_0x5e08c6);_0x9ff8a1[_0x4e9b('0x70')]&&this['_model'][_0x4e9b('0x5a')](()=>{for(const _0x5e6bf3 of _0x9ff8a1){const _0x4d296d=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xa'),_0x35460b,_0x4e9b('0x39'));this['forceDefaultExecution'](()=>_0x4d296d([_0x5e6bf3],_0x5856a9,_0x12d425));}});for(const _0x794ed4 of _0x114b11){let _0x521f1a=null,_0x50c0c9=_0x794ed4[_0x4e9b('0xb0')],_0x183fb0=_0x794ed4['end'];for(const {suggestion:_0x2af6ec,meta:_0x2c1f91}of this['_findSuggestions'](_0x794ed4,_0x4e9b('0xa'))){if(!_0x2c1f91['isOwn'])continue;if(_0x2af6ec['subType']!=_0x35460b)continue;const _0x142ba1=_0x2af6ec['getFirstRange']();if(_0x142ba1[_0x4e9b('0x3d')](_0x794ed4,!0x0))return null;_0x50c0c9=_0x50c0c9['isBefore'](_0x142ba1[_0x4e9b('0xb0')])?_0x50c0c9:_0x142ba1[_0x4e9b('0xb0')],_0x183fb0=_0x183fb0[_0x4e9b('0x87')](_0x142ba1[_0x4e9b('0x2e')])?_0x183fb0:_0x142ba1[_0x4e9b('0x2e')],_0x521f1a?_0x142ba1[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x521f1a[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')])?(_0x521f1a[_0x4e9b('0x123')](),_0x521f1a=_0x2af6ec):_0x2af6ec[_0x4e9b('0x123')]():_0x521f1a=_0x2af6ec;}const _0x3ced5e=this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x50c0c9,_0x183fb0);if(_0x521f1a)this[_0x4e9b('0x120')](_0x521f1a,_0x3ced5e);else{const _0x2a877a=_0x4fbab8(),_0x2e90db=_0xb70062['id'];this[_0x4e9b('0x113')]({'id':_0x2a877a,'type':_0x4e9b('0x49')+_0x35460b,'data':_0x5856a9,'createdAt':new Date(),'authorId':_0x2e90db,'attributes':_0x12d425}),this[_0x4e9b('0x77')](_0x4e9b('0x49')+_0x35460b,_0x2a877a,_0x2e90db,_0x3ced5e);}}return null;}[_0x4e9b('0x1e')](_0xdd5715,_0x56afd7,_0x30d2e8=[],_0x17d13a=null,_0xb5089d={}){_0x56afd7[_0x4e9b('0x1')]||(_0x56afd7[_0x4e9b('0x1')]=_0x56afd7['commandName']),_0x56afd7['multipleBlocks']=_0xdd5715['is'](_0x4e9b('0x135')),_0x17d13a=_0x17d13a||$t(_0x56afd7);const _0x5ad02f=_0x30d2e8[_0x4e9b('0xc0')](_0x93e532=>Rt(_0x93e532,this[_0x4e9b('0x38')])),_0x2d518b=_0xdd5715['is'](_0x4e9b('0x135'))?_0xdd5715:Rt(_0xdd5715,this[_0x4e9b('0x38')]);if(_0x4e9b('0xdc')===this[_0x4e9b('0x71')]){const _0x54cbdf=this['_suggestionFactory'][_0x4e9b('0x51')]('formatBlock',_0x17d13a,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x54cbdf([_0x2d518b],_0x56afd7,_0xb5089d)),null;}_0x5ad02f[_0x4e9b('0x13')](_0x2d518b);let _0x5c7518=!0x0;for(const _0x1be67e of _0x5ad02f)if(!this['_rangeIsInLocalUserInsertion'](_0x1be67e)){_0x5c7518=!0x1;break;}if(_0x5c7518&&_0x4e9b('0x44')!==this[_0x4e9b('0x71')]){const _0x520cff=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x17d13a,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x520cff([_0x2d518b],_0x56afd7,_0xb5089d)),null;}let _0x2d5fcc=null,_0x260daa=_0x2d518b['start'],_0x404b0c=_0x2d518b[_0x4e9b('0x2e')];for(const {suggestion:_0x193fad,meta:_0x99b6e2}of this['_findSuggestions'](_0x2d518b,_0x4e9b('0xd2'))){if(!_0x99b6e2[_0x4e9b('0x1d')]||_0x99b6e2[_0x4e9b('0xf')]||_0x99b6e2[_0x4e9b('0x69')]||_0x99b6e2[_0x4e9b('0xcf')])continue;if(_0x193fad[_0x4e9b('0x17')]['formatGroupId']!=_0x56afd7[_0x4e9b('0x1')])continue;const _0x39be02=_0x193fad['getFirstRange']();if(_0x193fad[_0x4e9b('0x6c')]==_0x17d13a){if(_0x39be02[_0x4e9b('0x3d')](_0x2d518b,!0x0))return null;_0x260daa=_0x260daa['isBefore'](_0x39be02[_0x4e9b('0xb0')])?_0x260daa:_0x39be02[_0x4e9b('0xb0')],_0x404b0c=_0x404b0c[_0x4e9b('0x87')](_0x39be02[_0x4e9b('0x2e')])?_0x404b0c:_0x39be02[_0x4e9b('0x2e')],_0x2d5fcc?_0x39be02['start'][_0x4e9b('0x26')](_0x2d5fcc[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')])?(_0x2d5fcc[_0x4e9b('0x123')](),_0x2d5fcc=_0x193fad):_0x193fad['removeMarkers']():_0x2d5fcc=_0x193fad;}else{const _0x451741=_0x2d518b[_0x4e9b('0x112')](_0x39be02);this[_0x4e9b('0xd0')](_0x193fad,_0x451741);}}const _0x565e5a=this[_0x4e9b('0xa1')]['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x3db704=_0x4fbab8(),_0x4f0ce5=_0x565e5a['id'];if(_0x2d5fcc)return this['_setSuggestionRange'](_0x2d5fcc,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x260daa,_0x404b0c)),_0x2d5fcc;{const _0x12af96=this[_0x4e9b('0x113')]({'id':_0x3db704,'type':'formatBlock:'+_0x17d13a,'data':_0x56afd7,'createdAt':new Date(),'authorId':_0x4f0ce5,'attributes':_0xb5089d});return this[_0x4e9b('0x77')](_0x4e9b('0xf3')+_0x17d13a,_0x3db704,_0x4f0ce5,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x260daa,_0x404b0c)),_0x12af96;}}['markMultiRangeBlockFormat'](_0x4ec7a1,_0x429fb8,_0x34d391=[],_0x4c71d7=null,_0x4729dc={}){_0x429fb8[_0x4e9b('0x1')]||(_0x429fb8[_0x4e9b('0x1')]=_0x429fb8['commandName']);const _0x1b692e=_0x4ec7a1[0x0];_0x429fb8[_0x4e9b('0x89')]=_0x1b692e['is'](_0x4e9b('0x135')),_0x4c71d7=_0x4c71d7||$t(_0x429fb8);const _0x596b98=_0x34d391[_0x4e9b('0xc0')](_0x122965=>Rt(_0x122965,this[_0x4e9b('0x38')])),_0x2c9b37=_0x1b692e['is'](_0x4e9b('0x135'))?_0x4ec7a1:_0x4ec7a1['map'](_0x17d5fb=>Rt(_0x17d5fb,this[_0x4e9b('0x38')]));if(_0x4e9b('0xdc')===this[_0x4e9b('0x71')]){const _0x14f55d=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x14f55d(_0x2c9b37,_0x429fb8,_0x4729dc)),null;}_0x596b98['push'](..._0x2c9b37);let _0x20b6cc=!0x0;for(const _0x42401c of _0x596b98)if(!this['_rangeIsInLocalUserInsertion'](_0x42401c)){_0x20b6cc=!0x1;break;}if(_0x20b6cc&&_0x4e9b('0x44')!==this['_trackFormatChanges']){const _0x2b2243=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,'accept');return this[_0x4e9b('0xe7')](()=>_0x2b2243(_0x2c9b37,_0x429fb8,_0x4729dc)),null;}const _0x44461e=this['editor'][_0x4e9b('0xe6')]['get'](_0x4e9b('0x8f'))['me'];for(const _0xd8b49e of this[_0x4e9b('0x43')]()){if(_0xd8b49e[_0x4e9b('0x6a')]['id']!=_0x44461e['id'])continue;if('formatBlock'!=_0xd8b49e[_0x4e9b('0x11d')]||_0xd8b49e['data'][_0x4e9b('0x1')]!=_0x429fb8[_0x4e9b('0x1')])continue;const _0x37ee4d=_0xd8b49e['subType']==_0x4c71d7;for(let _0x36a1d2=0x0;_0x36a1d2<_0x2c9b37['length'];_0x36a1d2++){const _0x39f300=_0x2c9b37[_0x36a1d2];for(const _0x1917ca of _0xd8b49e[_0x4e9b('0x5f')]()){const _0x2fbf83=_0x1917ca[_0x4e9b('0xa7')]();if(_0x39f300[_0x4e9b('0x55')](_0x2fbf83)){_0x37ee4d?(_0x2c9b37['splice'](_0x36a1d2,0x1),_0x36a1d2--):_0xd8b49e[_0x4e9b('0x5c')](_0x1917ca[_0x4e9b('0x15')]);break;}}}}if(0x0==_0x2c9b37['length'])return null;const _0x32c307=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,'join');for(const _0x4c0eb3 of this[_0x4e9b('0x43')]())if(_0x4c0eb3[_0x4e9b('0x6a')]['id']==_0x44461e['id']&&_0x4e9b('0xd2')==_0x4c0eb3[_0x4e9b('0x11d')]&&_0x4c0eb3['data'][_0x4e9b('0x1')]==_0x429fb8['formatGroupId']&&_0x4c0eb3[_0x4e9b('0x6c')]==_0x4c71d7&&(_0x32c307(_0x4c0eb3['getRanges'](),_0x2c9b37)||_0x32c307(_0x2c9b37,_0x4c0eb3[_0x4e9b('0x8a')]()))){for(const _0x33c7b1 of _0x2c9b37)_0x4c0eb3[_0x4e9b('0x74')](_0x33c7b1);return _0x4c0eb3;}const _0x4f7f2b=_0x4fbab8(),_0x8646ba=_0x44461e['id'],_0x326d59=_0x4e9b('0xf3')+_0x4c71d7,_0x2e6a10=this[_0x4e9b('0x113')]({'id':_0x4f7f2b,'type':_0x326d59,'data':_0x429fb8,'createdAt':new Date(),'authorId':_0x8646ba,'attributes':_0x4729dc});for(const _0x40f4ed of _0x2c9b37)this[_0x4e9b('0x77')](_0x326d59,_0x4f7f2b,_0x8646ba,_0x40f4ed,_0x2b860e[_0x4e9b('0xb')]());return _0x2e6a10;}['markDeletion'](_0x29120c,_0x26440d=null,_0x3a805d={}){if(_0x29120c['isCollapsed'])return null;const _0x266caa=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x262543=new _0x5e3949(_0x29120c[_0x4e9b('0xb0')],_0x29120c[_0x4e9b('0x2e')]);for(const {suggestion:_0x425a72,meta:_0x4cb168}of this[_0x4e9b('0x7a')](_0x262543,_0x4e9b('0x68')))if(_0x4cb168[_0x4e9b('0x1d')]&&!_0x4cb168[_0x4e9b('0xf')]){if(_0x425a72[_0x4e9b('0x32')]){const _0x2776df=_0x425a72['getRanges']()[_0x4e9b('0x22')](_0x18be0a=>_0x4e9b('0xaa')!=_0x18be0a['root'][_0x4e9b('0x72')]);_0x2776df[_0x4e9b('0x12e')](_0x4fdbc7=>_0x262543[_0x4e9b('0x3d')](_0x4fdbc7,!0x0))&&_0x425a72[_0x4e9b('0x7f')]();if(_0x2776df['some'](_0x3c26d8=>_0x3c26d8[_0x4e9b('0x3d')](_0x262543,!0x0))){const _0x1a17fd=this[_0x4e9b('0x73')]['getSuggestionCallback'](_0x4e9b('0x5e'),_0x26440d,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x1a17fd([_0x262543],null,_0x3a805d)),null;}}else{const _0x1856bf=_0x262543['getIntersection'](_0x425a72[_0x4e9b('0xc9')]());null!==_0x1856bf&&_0x425a72[_0x4e9b('0x6e')]([_0x1856bf],null,_0x3a805d);}}if(_0x262543[_0x4e9b('0x42')](),_0x262543[_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x262543[_0x4e9b('0x10b')][_0x4e9b('0x72')])return null;let _0x227e75=null,_0x50fa48=_0x262543[_0x4e9b('0xb0')],_0x5216be=_0x262543['end'];for(const {suggestion:_0x20aa58,meta:_0x1b8698}of this[_0x4e9b('0x7a')](_0x262543,_0x4e9b('0x5e')))if(_0x1b8698['isOwn']){if(_0x20aa58[_0x4e9b('0x32')]&&this[_0x4e9b('0x82')]){let _0x29791e=!0x0;for(const _0x2d3c19 of _0x20aa58[_0x4e9b('0x8a')]()){if(_0x2d3c19[_0x4e9b('0x3d')](_0x262543,!0x0))return _0x20aa58;_0x262543['containsRange'](_0x2d3c19)||(_0x29791e=!0x1);}_0x29791e&&_0x20aa58['discard']();}else{const _0x353421=_0x20aa58['getFirstRange']();if(_0x353421[_0x4e9b('0x3d')](_0x262543,!0x0)){if(!this[_0x4e9b('0x82')]&&_0x1b8698[_0x4e9b('0x69')])continue;return _0x20aa58;}_0x50fa48=_0x50fa48['isBefore'](_0x353421['start'])?_0x50fa48:_0x353421['start'],_0x5216be=_0x5216be[_0x4e9b('0x87')](_0x353421[_0x4e9b('0x2e')])?_0x5216be:_0x353421[_0x4e9b('0x2e')],_0x227e75?_0x353421['start'][_0x4e9b('0x26')](_0x227e75['getFirstRange']()[_0x4e9b('0xb0')])?(_0x227e75[_0x4e9b('0x123')](),_0x227e75=_0x20aa58):_0x20aa58[_0x4e9b('0x123')]():_0x227e75=_0x20aa58;}}if(_0x227e75)return this[_0x4e9b('0x120')](_0x227e75,this[_0x4e9b('0x38')]['createRange'](_0x50fa48,_0x5216be)),_0x227e75;{const _0x4e6b05=_0x4fbab8(),_0x5e5386=this['_model'][_0x4e9b('0xcb')](_0x50fa48,_0x5216be),_0x32e8de=_0x266caa['id'],_0x6893dc=_0x26440d?_0x4e9b('0x52')+_0x26440d:'deletion',_0x4b6076=this[_0x4e9b('0x113')]({'id':_0x4e6b05,'type':_0x6893dc,'createdAt':new Date(),'authorId':_0x32e8de,'attributes':_0x3a805d});return this[_0x4e9b('0x77')](_0x6893dc,_0x4e6b05,_0x32e8de,_0x5e5386),_0x4b6076;}}['markMultiRangeDeletion'](_0x4f965c,_0x5cdbc7=_0x4e9b('0x46'),_0x1a8700={}){const _0x201387=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0xc2b319=_0x4f965c[_0x4e9b('0xc0')](_0x363854=>new _0x5e3949(_0x363854[_0x4e9b('0xb0')],_0x363854[_0x4e9b('0x2e')])),_0x322c1d=new Set();for(const _0x5130f3 of _0xc2b319)for(const {suggestion:_0xce186a,meta:_0x127c94}of this[_0x4e9b('0x7a')](_0x5130f3,'insertion'))_0x127c94[_0x4e9b('0x1d')]&&!_0x127c94[_0x4e9b('0xf')]&&_0x322c1d['add'](_0xce186a);for(const _0x6b8c12 of _0x322c1d)if(_0x6b8c12['isMultiRange']){const _0x2acf67=_0x6b8c12[_0x4e9b('0x8a')]();(!_0x6b8c12[_0x4e9b('0x3a')]||!_0x6b8c12['attributes'][_0x4e9b('0x29')])&&(_0x2acf67[_0x4e9b('0x12e')](_0x9ec8a9=>_0xc2b319[_0x4e9b('0xc7')](_0x612352=>_0x612352[_0x4e9b('0x3d')](_0x9ec8a9,!0x0)))&&_0x6b8c12[_0x4e9b('0x7f')]());if(_0xc2b319[_0x4e9b('0x12e')](_0x5656df=>_0x2acf67[_0x4e9b('0xc7')](_0x4f8cd7=>_0x4f8cd7[_0x4e9b('0x3d')](_0x5656df,!0x0)))){const _0x45928f=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0x5e'),_0x5cdbc7,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x45928f(_0x4f965c,null,_0x1a8700)),null;}}else{const _0x2ac3bc=_0x6b8c12[_0x4e9b('0xc9')]();_0xc2b319[_0x4e9b('0xc7')](_0x17c044=>_0x17c044[_0x4e9b('0x3d')](_0x2ac3bc,!0x0))&&_0x6b8c12[_0x4e9b('0x7f')]();if(_0xc2b319[_0x4e9b('0x12e')](_0x47d945=>_0x2ac3bc[_0x4e9b('0x3d')](_0x47d945,!0x0))){const _0xb15a06=this[_0x4e9b('0x73')]['getSuggestionCallback'](_0x4e9b('0x5e'),_0x5cdbc7,_0x4e9b('0x39'));return this['forceDefaultExecution'](()=>_0xb15a06(_0xc2b319,null,_0x1a8700)),null;}}const _0x51935c=this[_0x4e9b('0x73')]['getSuggestionCallback']('deletion',_0x5cdbc7,_0x4e9b('0x85'));let _0x4914e1=null;for(const _0x9598a6 of this[_0x4e9b('0x43')]())if(_0x9598a6[_0x4e9b('0x6a')]['id']==_0x201387['id']&&_0x9598a6['isInContent']&&_0x4e9b('0x5e')==_0x9598a6['type']&&_0x9598a6['subType']==_0x5cdbc7&&(_0x51935c(_0x9598a6[_0x4e9b('0x8a')](),_0xc2b319)||_0x51935c(_0xc2b319,_0x9598a6[_0x4e9b('0x8a')]()))){if(_0x4914e1){if(_0x9598a6['commentThread']&&_0x9598a6[_0x4e9b('0x88')][_0x4e9b('0x70')])continue;for(const _0x14be2c of _0x9598a6['getRanges']())_0x4914e1[_0x4e9b('0x58')](_0x14be2c)||_0x4914e1['addRange'](_0x14be2c);_0x9598a6['removeMarkers']();}else{_0x4914e1=_0x9598a6;for(const _0x4e9968 of _0xc2b319)_0x9598a6['isIntersectingWithRange'](_0x4e9968)||_0x9598a6[_0x4e9b('0x74')](_0x4e9968);}}if(_0x4914e1)return _0x4914e1;_0x322c1d['clear']();for(const _0x2d27d0 of _0xc2b319)for(const {suggestion:_0x51f347,meta:_0x28ab84}of this[_0x4e9b('0x7a')](_0x2d27d0,'deletion'))_0x28ab84[_0x4e9b('0x1d')]&&_0x322c1d[_0x4e9b('0xf4')](_0x51f347);for(const _0xe1a0a8 of _0x322c1d){const _0x59f901=_0xe1a0a8[_0x4e9b('0x8a')]();if(!_0x1a8700||!_0x1a8700[_0x4e9b('0x29')]){if(_0xc2b319[_0x4e9b('0x12e')](_0x1febbc=>_0x59f901[_0x4e9b('0xc7')](_0x303e30=>_0x303e30[_0x4e9b('0x3d')](_0x1febbc,!0x0))))return _0xe1a0a8;}(!_0xe1a0a8[_0x4e9b('0x3a')]||!_0xe1a0a8[_0x4e9b('0x3a')]['skipNestingCheck'])&&(_0x59f901[_0x4e9b('0x12e')](_0x1ade87=>_0xc2b319[_0x4e9b('0xc7')](_0x49e6dd=>_0x49e6dd[_0x4e9b('0x3d')](_0x1ade87,!0x0)))&&_0xe1a0a8['discard']());}const _0x256af3=_0x4fbab8(),_0x418e1a=_0x201387['id'],_0x554499=_0x4e9b('0x52')+_0x5cdbc7,_0x62171=this[_0x4e9b('0x113')]({'id':_0x256af3,'type':_0x554499,'createdAt':new Date(),'authorId':_0x418e1a,'attributes':_0x1a8700});for(const _0x3ee350 of _0xc2b319)_0x3ee350[_0x4e9b('0x42')](),_0x3ee350[_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x3ee350[_0x4e9b('0x10b')]['rootName']||this[_0x4e9b('0x77')](_0x554499,_0x256af3,_0x418e1a,_0x3ee350,_0x2b860e['getMultiRangeId']());return _0x62171;}['_setSuggestionRange'](_0x474348,_0x5c5b59){const _0x156175=_0x474348[_0x4e9b('0xe8')]();this[_0x4e9b('0x38')][_0x4e9b('0x5a')](_0x48318f=>{_0x48318f[_0x4e9b('0x3f')](_0x156175,{'range':_0x5c5b59});});}[_0x4e9b('0xfc')](_0x3ffddd){const _0x114da3=_0x3ffddd['id'],_0x1e100b=this[_0x4e9b('0xa1')]['config'][_0x4e9b('0xc5')](_0x4e9b('0x9b'));this[_0x4e9b('0x81')][_0x4e9b('0x84')](_0x114da3)||this[_0x4e9b('0x81')][_0x4e9b('0x20')]({'channelId':_0x1e100b,'threadId':_0x114da3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f3f03=this['_commentsRepository']['getCommentThread'](_0x114da3);_0x3f3f03['unbind'](_0x4e9b('0x11e')),_0x3f3f03[_0x4e9b('0x11e')]=!0x1,_0x3ffddd[_0x4e9b('0x88')]=_0x3f3f03;}[_0x4e9b('0x53')](_0x1aa0a5,_0x44b085,_0x238fe4,_0x4c376f){if(_0x1aa0a5[_0x4e9b('0x11d')]!=_0x44b085||_0x1aa0a5[_0x4e9b('0x6c')]!=_0x238fe4||_0x1aa0a5[_0x4e9b('0xd7')]['id']!=_0x4c376f)throw this['editor'][_0x4e9b('0xbe')](_0x4e9b('0x5b')),new _0x225a88('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3dc53b,_0xaaf60f){const _0x181472=_0x3dc53b[_0x4e9b('0xc9')]();if(_0xaaf60f['isEqual'](_0x181472))_0x3dc53b[_0x4e9b('0x123')]();else{if(_0x181472[_0x4e9b('0x3d')](_0xaaf60f)){const _0x31aa58=this[_0x4e9b('0x38')]['createPositionAt'](_0xaaf60f['start'][_0x4e9b('0xa6')],_0x4e9b('0x2e'));this['_setSuggestionRange'](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x181472[_0x4e9b('0xb0')],_0x31aa58));const _0x4bc7df=_0x4fbab8(),_0x37bf22=_0x3dc53b['creator']['id'],_0x657888=_0x3dc53b[_0x4e9b('0x11d')]+':'+_0x3dc53b['subType'];this[_0x4e9b('0x113')]({'id':_0x4bc7df,'type':_0x657888,'createdAt':new Date(),'authorId':_0x37bf22,'data':_0x3dc53b[_0x4e9b('0x17')],'attributes':_0x3dc53b[_0x4e9b('0x3a')]});const _0x398fce=this[_0x4e9b('0x38')]['createPositionAt'](_0xaaf60f[_0x4e9b('0x2e')][_0x4e9b('0x106')],_0x4e9b('0xaf')),_0x1ea48d=this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x398fce,_0x181472['end']);this[_0x4e9b('0x77')](_0x657888,_0x4bc7df,_0x37bf22,_0x1ea48d);}else{if(_0x181472['containsPosition'](_0xaaf60f[_0x4e9b('0xb0')])){const _0x3535f5=this['_model']['createPositionAt'](_0xaaf60f[_0x4e9b('0xb0')][_0x4e9b('0xa6')],'end');this[_0x4e9b('0x120')](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x181472[_0x4e9b('0xb0')],_0x3535f5));}else{const _0x4915d8=this['_model']['createPositionAt'](_0xaaf60f[_0x4e9b('0x2e')]['parent'],'after');this[_0x4e9b('0x120')](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x4915d8,_0x181472[_0x4e9b('0x2e')]));}}}}['_rangeIsInLocalUserInsertion'](_0x4ad2c0){for(const {suggestion:_0x11dd87,meta:_0x19b45b}of this[_0x4e9b('0x7a')](_0x4ad2c0,_0x4e9b('0x68'))){if(!_0x19b45b[_0x4e9b('0x1d')])continue;const _0x2e22fc=_0x11dd87[_0x4e9b('0x8a')]();for(const _0x45795e of _0x2e22fc)if(!_0x4ad2c0['getDifference'](_0x45795e)[_0x4e9b('0x70')])return!0x0;}return!0x1;}[_0x4e9b('0x96')](_0x4cac67){const _0xfc2335=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['getUser'](_0x4cac67);if(!_0xfc2335)throw new _0x225a88(_0x4e9b('0x62'),this);return _0xfc2335;}[_0x4e9b('0x64')](_0x31fab1){const _0xe442d4=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f')),_0x5817bb=_0x305c8b(_0x4e9b('0xa2')+_0x31fab1),_0x34b1da=_0xe442d4[_0x4e9b('0x50')](_0x5817bb);return _0x34b1da||_0xe442d4[_0x4e9b('0x121')]({'id':_0x5817bb,'name':_0x31fab1});}['_createSuggestion'](_0xb2f8db,_0x3eef38,_0x18d80a,_0xc57ed1,_0x250532){const _0x347069=this[_0x4e9b('0x96')](_0xc57ed1),_0x30defd=this[_0x4e9b('0x73')][_0x4e9b('0x48')](_0xb2f8db,_0x3eef38,_0x18d80a,_0x347069,_0x250532,_0xbf9535=>this[_0x4e9b('0x1f')](_0x18d80a,{'attributes':_0xbf9535}));return this['listenTo'](_0x30defd,_0x4e9b('0x39'),()=>{this[_0x4e9b('0x1f')](_0x18d80a,{'state':_0x4e9b('0x131')});},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0x19')](_0x30defd,_0x4e9b('0x7f'),()=>{this[_0x4e9b('0x1f')](_0x18d80a,{'state':_0x4e9b('0x75')});},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0x7d')][_0x4e9b('0x107')](_0x18d80a,_0x30defd),this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x30defd,'notReady'),_0x30defd;}[_0x4e9b('0x4')](_0x2d2d4b){const _0x244ccc=_0x2d2d4b[_0x4e9b('0x12a')](':');return{'group':_0x244ccc[0x0],'type':_0x244ccc[0x1],'subType':_0x244ccc['length']>=0x5?_0x244ccc[0x2]:null,'id':_0x244ccc[_0x4e9b('0x70')]<0x5?_0x244ccc[0x2]:_0x244ccc[0x3],'authorId':_0x244ccc[_0x4e9b('0x70')]<0x5?_0x244ccc[0x3]:_0x244ccc[0x4],'markerCount':0x6==_0x244ccc['length']?_0x244ccc[0x5]:null};}[_0x4e9b('0x11')](_0x165fee,_0x2e5bc9,_0x7d0dee){const _0x231239=_0x165fee[_0x4e9b('0xc9')](),_0x2d6432=_0x231239[_0x4e9b('0xb0')],_0x4605dd=_0x231239[_0x4e9b('0x2e')];this[_0x4e9b('0x120')](_0x165fee,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x2d6432,_0x2e5bc9));const _0x1d39be=_0x4fbab8(),_0x41a91a=_0x165fee[_0x4e9b('0xd7')]['id'],_0x33805e=_0x165fee[_0x4e9b('0x11d')]+(_0x165fee['subType']?':'+_0x165fee[_0x4e9b('0x6c')]:'');this['_setSuggestionData']({'id':_0x1d39be,'type':_0x33805e,'createdAt':new Date(),'authorId':_0x41a91a,'originalSuggestionId':_0x165fee['id'],'attributes':_0x165fee['attributes'],'data':_0x165fee['data']}),_0x4e9b('0xd2')==_0x165fee[_0x4e9b('0x11d')]&&(_0x7d0dee=this['_model'][_0x4e9b('0xa4')](_0x7d0dee[_0x4e9b('0x106')])),this['_addSuggestionMarker'](_0x33805e,_0x1d39be,_0x41a91a,this['_model'][_0x4e9b('0xcb')](_0x7d0dee,_0x4605dd));}[_0x4e9b('0x7a')](_0x491783,_0x2e451e=null){const _0x577e63=[],_0x1b0770=this[_0x4e9b('0x38')]['schema'],_0x551735=this[_0x4e9b('0xa1')]['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'];for(const _0xeae648 of this[_0x4e9b('0x43')]())if(_0xeae648['isInContent']&&(!_0x2e451e||_0xeae648[_0x4e9b('0x11d')]==_0x2e451e))for(const _0x340c8c of _0xeae648['getRanges']()){const _0x1a95ed=_0x491783[_0x4e9b('0xb0')][_0x4e9b('0x55')](_0x340c8c['end'])||_0x491783[_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x340c8c['start']);if(_0x1a95ed||_0x491783[_0x4e9b('0x112')](_0x340c8c)){const _0x5079f4=_0x491783['containsRange'](_0x340c8c)&&Bt(_0x1b0770,_0x340c8c[_0x4e9b('0xb0')],_0x491783),_0x422a8c=_0x340c8c[_0x4e9b('0x3d')](_0x491783)&&Bt(_0x1b0770,_0x491783['start'],_0x340c8c);_0x577e63[_0x4e9b('0x13')]({'suggestion':_0xeae648,'meta':{'isOwn':_0x551735==_0xeae648[_0x4e9b('0x6a')],'isNextTo':_0x1a95ed,'isInsideObject':_0x5079f4,'containsRangeInObject':_0x422a8c}});break;}}return _0x577e63;}[_0x4e9b('0x77')](_0x497840,_0x5d15de,_0x29a935,_0x5166cd,_0xbd9318){this[_0x4e9b('0x38')][_0x4e9b('0x5a')](_0x4a84a3=>{let _0x52bc20=_0x4e9b('0x45')+_0x497840+':'+_0x5d15de+':'+_0x29a935;_0xbd9318&&(_0x52bc20=_0x52bc20+':'+_0xbd9318),_0x4a84a3['addMarker'](_0x52bc20,{'range':_0x5166cd,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4e9b('0x10')](_0x85229f){const _0x507a8f=_0x85229f['previous'],_0x414d6e=_0x85229f['next'];_0x85229f['previous']=null,null!=_0x507a8f&&(_0x507a8f['next']=null),_0x85229f[_0x4e9b('0x11f')]=null,null!=_0x414d6e&&(_0x414d6e[_0x4e9b('0x118')]=null),_0x4e9b('0xec')==this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x85229f)&&(this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x85229f,_0x4e9b('0xee')),this['fire'](_0x4e9b('0xd1'),_0x85229f,_0x507a8f,_0x414d6e));}[_0x4e9b('0x113')](_0x157a14){const _0x583620=_0x157a14['id'],_0x1ab97f=this[_0x4e9b('0x116')](_0x157a14);if(this[_0x4e9b('0x1a')]&&this['_adapter']['addSuggestion']){const _0x4c4612=this['editor'][_0x4e9b('0xe6')]['get'](_0x4e9b('0xb8')),_0x204cec=_0x1ab97f[_0x4e9b('0xc8')],_0x3d84b3=_0x1ab97f['subType']?_0x1ab97f[_0x4e9b('0x11d')]+':'+_0x1ab97f[_0x4e9b('0x6c')]:_0x1ab97f[_0x4e9b('0x11d')],_0x2fce71=this[_0x4e9b('0xa1')]['locale'],_0x32ee8f=_0x4c4612[_0x4e9b('0xf4')](_0x2d35a6(_0x2fce71,'PENDING_ACTION_SUGGESTION')),_0x2b7b03={'id':_0x583620,'type':_0x3d84b3,'hasComments':_0x204cec,'data':_0x157a14[_0x4e9b('0x17')]||null,'originalSuggestionId':_0x157a14[_0x4e9b('0x8d')]||null,'attributes':_0x1ab97f[_0x4e9b('0x3a')]};this[_0x4e9b('0x1a')][_0x4e9b('0x28')](_0x2b7b03)[_0x4e9b('0x95')](_0x331e4f=>{_0x1ab97f['_saved']=!0x0,_0x4c4612[_0x4e9b('0x11a')](_0x32ee8f),_0x331e4f&&_0x331e4f['createdAt']&&(this['_suggestions']['get'](_0x583620)[_0x4e9b('0xb5')]=_0x331e4f[_0x4e9b('0xb5')]);})[_0x4e9b('0x9')](_0x246e95=>{throw _0x37bdeb(_0x4e9b('0x34')),this[_0x4e9b('0xa1')][_0x4e9b('0x125')][_0x4e9b('0x10f')]({'isUndoable':!0x1},()=>{_0x1ab97f['discard']();}),_0x1ab97f[_0x4e9b('0x8c')](),this[_0x4e9b('0x7d')][_0x4e9b('0xc')](_0x1ab97f['id']),this[_0x4e9b('0xce')][_0x4e9b('0xc')](_0x1ab97f),_0x246e95;});}return _0x1ab97f;}[_0x4e9b('0x1f')](_0x2a278c,_0x9007ce){const _0x54646e=this['editor']['plugins'][_0x4e9b('0xc5')]('PendingActions'),_0x2d8396=this[_0x4e9b('0x25')](_0x2a278c);if(this[_0x4e9b('0x1a')]&&this[_0x4e9b('0x1a')][_0x4e9b('0xd3')]){if(_0x2d8396[_0x4e9b('0x12f')]){const _0x3e087f=_0x54646e[_0x4e9b('0xf4')](_0x2d35a6(this['editor'][_0x4e9b('0xc6')],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x4e9b('0xd3')](_0x2a278c,_0x9007ce)['then'](()=>{_0x54646e[_0x4e9b('0x11a')](_0x3e087f);});}else _0x2d8396['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2a278c,_0x9007ce);});}}['_getSuggestionData'](_0x4a7df6){if(!this[_0x4e9b('0x1a')]||!this[_0x4e9b('0x1a')][_0x4e9b('0x25')])throw new _0x225a88('track-changes-adapter-missing-getsuggestion',this);return this[_0x4e9b('0x1a')][_0x4e9b('0x25')](_0x4a7df6);}[_0x4e9b('0x110')](_0x1f3a3){const {id:_0x4f35c6,type:_0x4a4d5a,subType:_0x5e3d60,authorId:_0x81b782}=this[_0x4e9b('0x4')](_0x1f3a3),_0x486764=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x4f35c6)||this[_0x4e9b('0x2f')](_0x4a4d5a,_0x5e3d60,_0x4f35c6,_0x81b782,{});switch(this[_0x4e9b('0x53')](_0x486764,_0x4a4d5a,_0x5e3d60,_0x81b782),this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x486764)){case _0x4e9b('0x9a'):this[_0x4e9b('0xd9')](_0x4f35c6)['then'](_0x2caa61=>{let _0x5094cb=Promise['resolve']();_0x2caa61[_0x4e9b('0xc8')]&&(_0x5094cb=this[_0x4e9b('0x81')][_0x4e9b('0xb2')]({'channelId':this[_0x4e9b('0xa1')][_0x4e9b('0x126')][_0x4e9b('0xc5')](_0x4e9b('0x9b')),'threadId':_0x4f35c6})),_0x5094cb[_0x4e9b('0x95')](()=>{this[_0x4e9b('0x116')](_0x2caa61)['_saved']=!0x0;});}),this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x486764,_0x4e9b('0x109'));break;case _0x4e9b('0xee'):this[_0x4e9b('0x1f')](_0x4f35c6,{'state':'open'});case'dataReady':this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x486764,_0x4e9b('0xec')),this['fire'](_0x4e9b('0x2d'),_0x486764);break;case _0x4e9b('0xec'):this[_0x4e9b('0x98')](_0x4e9b('0x66'),_0x486764);}return _0x486764['addMarkerName'](_0x1f3a3),_0x486764;}[_0x4e9b('0x4a')](_0x2fa343){const _0x4dad43=Array[_0x4e9b('0x122')](_0x2fa343)[_0x4e9b('0x22')](_0x457ee8=>!_0x457ee8['isMultiRange']),_0x1241bf=this[_0x4e9b('0x43')]({'skipNotAttached':!0x0})['filter'](_0x259d33=>!_0x259d33[_0x4e9b('0x32')]),_0x493cee=_0x1241bf['filter'](_0x155be0=>!_0x2fa343[_0x4e9b('0x3c')](_0x155be0)),_0x16500b=new Map(_0x1241bf[_0x4e9b('0xc0')](_0x4470c2=>[_0x4470c2,this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4470c2[_0x4e9b('0x11d')],_0x4470c2['subType'],_0x4e9b('0x132'))])),_0x574336=new Map(_0x1241bf[_0x4e9b('0xc0')](_0x3642f0=>[_0x3642f0,_0x3642f0[_0x4e9b('0xc9')]()])),_0x17f643=new Set(),_0x45525e=new Set();for(let _0x30b661=0x0;_0x30b661<_0x4dad43[_0x4e9b('0x70')];_0x30b661++)_0x3b01fb(_0x4dad43[_0x30b661],_0x4dad43,_0x30b661+0x1);for(let _0x31445a=0x0;_0x31445a<_0x4dad43[_0x4e9b('0x70')];_0x31445a++)_0x3b01fb(_0x4dad43[_0x31445a],_0x493cee,0x0);for(let _0xfa21ee=0x0;_0xfa21ee<_0x4dad43[_0x4e9b('0x70')];_0xfa21ee++){const _0x486c9d=_0x4dad43[_0xfa21ee];!_0x45525e[_0x4e9b('0x3c')](_0x486c9d)&&_0x486c9d[_0x4e9b('0x118')]&&(_0x486c9d[_0x4e9b('0x118')][_0x4e9b('0x11f')]===_0x486c9d&&(_0x486c9d['previous'][_0x4e9b('0x11f')]=null),_0x486c9d['previous']=null),!_0x17f643[_0x4e9b('0x3c')](_0x486c9d)&&_0x486c9d[_0x4e9b('0x11f')]&&(_0x486c9d[_0x4e9b('0x11f')][_0x4e9b('0x118')]===_0x486c9d&&(_0x486c9d[_0x4e9b('0x11f')][_0x4e9b('0x118')]=null),_0x486c9d['next']=null);}function _0x3b01fb(_0x11b680,_0x35d6df,_0x1393b1){for(let _0x94fd22=_0x1393b1;_0x94fd22<_0x35d6df[_0x4e9b('0x70')];_0x94fd22++){const _0xd67301=_0x2f24ae(_0x11b680,_0x35d6df[_0x94fd22]);_0xd67301&&(_0xd67301[0x0][_0x4e9b('0x11f')]=_0xd67301[0x1],_0xd67301[0x1][_0x4e9b('0x118')]=_0xd67301[0x0],_0x17f643[_0x4e9b('0xf4')](_0xd67301[0x0]),_0x45525e[_0x4e9b('0xf4')](_0xd67301[0x1]));}}function _0x2f24ae(_0x2076ce,_0x4a5c2a){if(_0x2076ce[_0x4e9b('0x6a')]['id']!==_0x4a5c2a[_0x4e9b('0x6a')]['id'])return null;const _0x1ecfc0=_0x16500b[_0x4e9b('0xc5')](_0x2076ce)(_0x2076ce,_0x4a5c2a,_0x574336[_0x4e9b('0xc5')](_0x2076ce),_0x574336[_0x4e9b('0xc5')](_0x4a5c2a));if(!_0x1ecfc0)return null;return _0x16500b[_0x4e9b('0xc5')](_0x4a5c2a)(_0x2076ce,_0x4a5c2a,_0x574336[_0x4e9b('0xc5')](_0x2076ce),_0x574336[_0x4e9b('0xc5')](_0x4a5c2a))?_0x1ecfc0[0x1]['commentThread']&&_0x1ecfc0[0x1][_0x4e9b('0x88')][_0x4e9b('0x70')]?null:_0x1ecfc0:null;}}[_0x4e9b('0x54')](_0x28ad50){const _0x33cd05=Array[_0x4e9b('0x122')](_0x28ad50),_0x59469f=this[_0x4e9b('0x43')]({'skipNotAttached':!0x0}),_0x5ca9b2=_0x59469f[_0x4e9b('0x22')](_0x170300=>!_0x28ad50['has'](_0x170300)),_0x271f49=new Map(_0x33cd05[_0x4e9b('0xc0')](_0x446b06=>[_0x446b06,this['_suggestionFactory'][_0x4e9b('0x51')](_0x446b06[_0x4e9b('0x11d')],_0x446b06[_0x4e9b('0x6c')],'join')])),_0x35eecc=new Map(_0x59469f[_0x4e9b('0xc0')](_0x39c205=>[_0x39c205,_0x39c205[_0x4e9b('0x8a')]()]));for(let _0x302c65=0x0;_0x302c65<_0x33cd05[_0x4e9b('0x70')];_0x302c65++){if(_0x37ffb8(this,_0x33cd05[_0x302c65],_0x33cd05,_0x302c65+0x1))return!0x0;}for(let _0x1e17b6=0x0;_0x1e17b6<_0x33cd05[_0x4e9b('0x70')];_0x1e17b6++){if(_0x37ffb8(this,_0x33cd05[_0x1e17b6],_0x5ca9b2,0x0))return!0x0;}return!0x1;function _0x37ffb8(_0x4da458,_0x4fd019,_0x5d9b91,_0x188893){for(let _0x5d8df2=_0x188893;_0x5d8df2<_0x5d9b91[_0x4e9b('0x70')];_0x5d8df2++){const _0x123806=_0x5d9b91[_0x5d8df2];if(_0x123806[_0x4e9b('0x11d')]!==_0x4fd019['type']||_0x123806[_0x4e9b('0x6a')]['id']!==_0x4fd019['author']['id']||_0x123806[_0x4e9b('0x6c')]!==_0x4fd019[_0x4e9b('0x6c')])continue;const _0x290208=_0x271f49['get'](_0x4fd019),_0x54b416=_0x35eecc[_0x4e9b('0xc5')](_0x4fd019),_0x17930f=_0x35eecc['get'](_0x123806),_0x587600=_0x4fd019[_0x4e9b('0x88')]&&_0x4fd019[_0x4e9b('0x88')][_0x4e9b('0x70')],_0x4394ff=_0x123806[_0x4e9b('0x88')]&&_0x123806['commentThread']['length'];if(!_0x587600&&_0x290208(_0x17930f,_0x54b416))return _0x4da458[_0x4e9b('0x92')](_0x123806,_0x4fd019),_0x35eecc[_0x4e9b('0xc')](_0x4fd019),!0x0;if(!_0x4394ff&&_0x290208(_0x54b416,_0x17930f))return _0x4da458[_0x4e9b('0x92')](_0x4fd019,_0x123806),_0x35eecc[_0x4e9b('0xc')](_0x123806),!0x0;}return!0x1;}}[_0x4e9b('0x92')](_0x5e415b,_0x3f9cd4){if(_0x5e415b['isMultiRange'])for(const _0x22bb6a of _0x3f9cd4[_0x4e9b('0x8a')]())_0x5e415b[_0x4e9b('0x74')](_0x22bb6a);else{const _0x43a930=_0x3f9cd4['getFirstRange']()[_0x4e9b('0x2e')];this[_0x4e9b('0x120')](_0x5e415b,this['_model']['createRange'](_0x5e415b[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')],_0x43a930));}_0x3f9cd4[_0x4e9b('0x123')]();}}class Dt{constructor(_0x25a74d){this['_editor']=_0x25a74d,this[_0x4e9b('0x38')]=_0x25a74d['model'],this[_0x4e9b('0xfe')]=new Map(),this[_0x4e9b('0x6f')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4e9b('0x48')](_0xe5b9d8,_0x58c4e6,_0x60d45d,_0x49e70c,_0x461649,_0x1add7e){return new _0x2b860e(this['_model'],{'type':_0xe5b9d8,'subType':_0x58c4e6,'id':_0x60d45d,'author':_0x49e70c,'creator':_0x49e70c,'attributes':_0x461649,'onAttributesChange':_0x1add7e,'onAccept':(..._0x140edb)=>this[_0x4e9b('0x51')](_0xe5b9d8,_0x58c4e6,_0x4e9b('0x39'))(..._0x140edb),'onDiscard':(..._0x47bdf6)=>this[_0x4e9b('0x51')](_0xe5b9d8,_0x58c4e6,_0x4e9b('0x7f'))(..._0x47bdf6)});}[_0x4e9b('0xc1')](_0x105a08,_0x2754ab,_0x20b50d,_0x55c3ac){const _0x577ab7=_0x105a08+':'+_0x2754ab+':'+_0x20b50d;this['_customCallbacks'][_0x4e9b('0x107')](_0x577ab7,_0x55c3ac);}[_0x4e9b('0x51')](_0x1249f9,_0x307b29,_0x5576ab){const _0x5bb705=_0x1249f9+':'+_0x307b29+':'+_0x5576ab;return this['_customCallbacks']['get'](_0x5bb705)||this['_defaultCallbacks'][_0x4e9b('0xc5')](_0x1249f9+':'+_0x5576ab);}[_0x4e9b('0x90')](){const _0x11b67a=()=>{},_0x2679e7=_0x22f951=>{_0x22f951['sort']((_0x324a48,_0x24adee)=>_0x324a48[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x24adee[_0x4e9b('0xb0')])?0x1:-0x1),this['_model'][_0x4e9b('0x5a')](_0x19e62c=>{for(const _0x5290be of _0x22f951){let _0x4d9af0;_0x4d9af0=_0x5290be['end'][_0x4e9b('0x63')]&&_0x5290be[_0x4e9b('0x2e')][_0x4e9b('0x106')]==_0x5290be[_0x4e9b('0xb0')][_0x4e9b('0xae')]?_0x19e62c[_0x4e9b('0x94')](_0x5290be[_0x4e9b('0xb0')][_0x4e9b('0xae')],'on'):_0x19e62c[_0x4e9b('0x94')](_0x5290be),this[_0x4e9b('0x38')][_0x4e9b('0x57')](_0x4d9af0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2b50cc=(_0x4749fa,_0x262d09)=>{this['_model'][_0x4e9b('0x5a')](_0x3b9f3a=>{const {commandName:_0x2c6982,commandParams:_0x43966c=[]}=_0x262d09,_0x91383a=_0x4749fa[_0x4e9b('0xc0')](_0x5a3f35=>(_t(_0x5a3f35)&&(_0x5a3f35=this['_model'][_0x4e9b('0xcb')](_0x5a3f35[_0x4e9b('0x2e')])),_0x5a3f35))[_0x4e9b('0x22')](_0x459e2d=>_0x4e9b('0xaa')!==_0x459e2d['root']['rootName']);if(_0x91383a['length']<0x1)return;const _0x1f94b9=Array['from'](this[_0x4e9b('0x38')]['document'][_0x4e9b('0xa9')][_0x4e9b('0x8a')]())[_0x4e9b('0xc0')](_0x32662d=>_0x5e3949[_0x4e9b('0x41')](_0x32662d));_0x3b9f3a[_0x4e9b('0xb1')](_0x91383a);for(const _0x3f14a9 of this['_editor'][_0x4e9b('0xf5')]['commands']())_0x3f14a9['refresh']();_0x43966c[_0x4e9b('0x13')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4e9b('0x9c')](_0x2c6982,..._0x43966c);const _0x9f5973=_0x1f94b9[_0x4e9b('0x22')](_0x1f03f8=>'$graveyard'!=_0x1f03f8[_0x4e9b('0x10b')][_0x4e9b('0x72')]);_0x9f5973[_0x4e9b('0x70')]>0x0&&_0x3b9f3a[_0x4e9b('0xb1')](_0x9f5973);for(const _0x38ad78 of _0x1f94b9)_0x38ad78['detach']();});},_0x676c69=(_0x5a0bd6,_0x3ad73f)=>0x1==_0x5a0bd6[_0x4e9b('0x70')]&&0x1==_0x3ad73f[_0x4e9b('0x70')]&&_0x5a0bd6[0x0][_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x3ad73f[0x0][_0x4e9b('0xb0')]),_0xe0c28e=(_0x5c7170,_0x2b1e14,_0x978bee,_0xfa6355)=>xt(_0x5c7170,_0x2b1e14,_0x978bee,_0xfa6355,this[_0x4e9b('0x38')])?[_0x5c7170,_0x2b1e14]:xt(_0x2b1e14,_0x5c7170,_0xfa6355,_0x978bee,this[_0x4e9b('0x38')])?[_0x2b1e14,_0x5c7170]:null;this['_defaultCallbacks'][_0x4e9b('0x107')](_0x4e9b('0x12c'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x97'),_0x2679e7),this[_0x4e9b('0x6f')]['set']('insertion:join',_0x676c69),this[_0x4e9b('0x6f')]['set'](_0x4e9b('0x133'),_0xe0c28e),this[_0x4e9b('0x6f')][_0x4e9b('0x107')]('deletion:accept',_0x2679e7),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xa0'),_0x11b67a),this[_0x4e9b('0x6f')]['set']('deletion:join',_0x676c69),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x8e'),_0xe0c28e),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x80'),_0x2b50cc),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x7b'),_0x11b67a),this[_0x4e9b('0x6f')]['set']('formatInline:join',_0x676c69),this[_0x4e9b('0x6f')]['set'](_0x4e9b('0xdf'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x23'),_0x2b50cc),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xc4'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xeb'),_0x676c69),this['_defaultCallbacks'][_0x4e9b('0x107')](_0x4e9b('0xf8'),_0x11b67a);}}function Bt(_0x59bed9,_0x26624f,_0x19b72c){for(const _0x5096c5 of _0x26624f[_0x4e9b('0x106')][_0x4e9b('0xb3')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5096c5[_0x4e9b('0x10b')]==_0x5096c5)return!0x1;if(!_0x19b72c[_0x4e9b('0xff')](_0x5096c5))return!0x1;if(_0x59bed9['isObject'](_0x5096c5)||_0x59bed9['isLimit'](_0x5096c5))return!0x0;}return!0x1;}function _t(_0x169317){return _0x169317['end'][_0x4e9b('0x106')]==_0x169317['start'][_0x4e9b('0xae')]&&_0x169317[_0x4e9b('0x2e')][_0x4e9b('0x119')];}function Mt(_0xfba5b4,_0x83e4a6,_0x1e1ee1,_0x24cd97){const _0x3967e6=_0x29a649=>!_0x29a649['item']['is'](_0x4e9b('0xe5'))&&!_0x24cd97[_0x4e9b('0xbc')](_0x29a649[_0x4e9b('0x124')]),_0x58ab26=_0xfba5b4[_0x4e9b('0xb0')][_0x4e9b('0xad')](_0x3967e6),_0x158298=_0xfba5b4['end'][_0x4e9b('0xad')](_0x3967e6,{'direction':_0x4e9b('0x3e')});return(!_0xfba5b4['start'][_0x4e9b('0x55')](_0x58ab26)||!_0xfba5b4['end'][_0x4e9b('0x55')](_0x158298))&&(_0x58ab26['isBefore'](_0x158298)?_0x1e1ee1[_0x4e9b('0x3f')](_0x83e4a6,{'range':_0x1e1ee1['createRange'](_0x58ab26,_0x158298)}):_0x1e1ee1[_0x4e9b('0x5c')](_0x83e4a6),!0x0);}function $t(_0x40b196){return _0x305c8b(_0x40b196);}function Nt(_0x23b705){const _0x4e7dd9=_0x23b705[_0x4e9b('0xb0')][_0x4e9b('0xae')];return _0x4e7dd9&&_0x4e7dd9['is'](_0x4e9b('0x5'));}function Rt(_0x233f96,_0x5f3e9b){const _0x5ab231=_0x5f3e9b[_0x4e9b('0xa5')]['isObject'](_0x233f96)||_0x5f3e9b[_0x4e9b('0xa5')]['isSelectable'](_0x233f96);return _0x5f3e9b[_0x4e9b('0xcb')](_0x5f3e9b[_0x4e9b('0x3')](_0x233f96,_0x4e9b('0xcd')),_0x5ab231?_0x5f3e9b[_0x4e9b('0xb7')](_0x233f96):_0x5f3e9b[_0x4e9b('0x3')](_0x233f96,_0x4e9b('0x2e')));}function xt(_0x415dc4,_0xf96d60,_0x501e2a,_0x142d9b,_0xe3a3ff){if(_0x501e2a[_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x142d9b[_0x4e9b('0xb0')]))return!0x0;if(_0x415dc4['type']!=_0xf96d60['type'])return!0x1;if(!_0x501e2a['end'][_0x4e9b('0x60')](_0x142d9b[_0x4e9b('0xb0')]))return!0x1;const _0xc6677=_0xe3a3ff[_0x4e9b('0xcb')](_0x501e2a[_0x4e9b('0x2e')],_0x142d9b[_0x4e9b('0xb0')])[_0x4e9b('0x5d')]();for(const _0x5bc801 of _0xc6677)if(['elementStart',_0x4e9b('0x10c')][_0x4e9b('0xd4')](_0x5bc801['type'])&&_0xe3a3ff[_0x4e9b('0xa5')]['isLimit'](_0x5bc801[_0x4e9b('0x124')]))return!0x1;return!0x0;}
23
+ const _0x2463=['detach','_descriptionFactory','dataReady','addHighlight','getFirstRange','newRange','consumable','options','attributes','originalSuggestionId','reconvertMarker','createPositionAfter','selection','has','isOwn','resolve','markerToHighlight','dataToMarker','rethrowUnexpectedError','requires','_checkSuggestionCorrectness','isTouching','every','TrackChangesEditing','markInlineFormat','discardSelectedSuggestions','markerToData','_suggestions','markMultiRangeInsertion','isInContent','toViewElement','formatBlock:accept','adapter','trackChanges.trackFormatChanges','_getSuggestionData','commandName','PendingActions','getCustomProperty','conversion','buildSuggestion','forward','_addThreadToSuggestion','markers','author','_findSuggestions','getRange','nodeAfter','normal','createPositionAt','skipNestingCheck','isRemovable','_enabledCommands','addClass','suggestion:','remove','track-changes-user-not-found','never','removed','getAttribute','split','getChanges','plugins','acceptSuggestion','move','$textProxy','mapper','_createSuggestion','_handleNewSuggestionMarker','isLimit','_defaultCallbacks','createElement','addRange','insertion:','formatGroupId','some','insertContent','commentThread','howMany','splice','registerPostFixer','head','setSelection','lowest','editingDowncast','ck-suggestion-marker-formatBlock','low','targetPosition','markBlockFormat','oldRange','hasSuggestion','item','_registerDefaultCallbacks','size','formatBlock:','removeMarker','group','deleteContent','backward','_getAuthorFromId','isDocumentOperation','rejected','documentSelection','formatInline:discard','CommentsRepository','deletion:','getAncestors','formatInline:chain','filter','_editor','_addSuggestionMarker','_rangeIsInLocalUserInsertion','clear','_customCallbacks','formatBlock:chain','marker-count','multipleBlocks','hasComments','deletion:chain','trackChanges.mergeNestedSuggestions','getIntersection','_refreshSuggestionsChain','isLocal','PENDING_ACTION_SUGGESTION','activeMarkers','init','insertion:join','previous','update:suggestion','high','insert','isEqual','markerName','model','deletion:accept','acceptSelectedSuggestions','containsPosition','enableCommand','map','batch','elementStart','addSuggestionData','getMultiRangeId','getChangedMarkers','trackChangesCommand','data-suggestion','next','_breakSuggestionMarker','highest','createRange','getCommentThread','for','writer','catch','getWalker','ready','open','deletion','containsRangeInObject','getMarkers','sort','isSelectable','end','track-changes-adapter-missing-getsuggestion','markInsertion','position','isMultiRange','getUser','formatBlock:join','_setSuggestionData','refresh','formatInline:accept','join','createSelection','editor','isNextTo','removeMarker:suggestion:formatBlock','_saved','bindElementToMarker','track-changes-suggestion-data-mismatch','unbind','error-saving-suggestion-data-suggestion-discarded','isExternal','add','unbindElementFromMarkerName','name','external:','isObject','getSuggestions','commands','suggestion-type','isUndo','multi','change:_saved','insertion','listenTo','notReady','getDifference','before','deletion:discard','editing','length','isBefore','subType','ck-suggestion-marker--active','dataDowncast','toJSON','splitPosition','fromRange','nodeBefore','isInsideObject','data','fromCharCode','_suggestionFactory','_getExternalAuthor','_adapter','fire','createPositionBefore','value','containsItem','getAllAdjacentSuggestions','markDeletion','values','enableReadOnlyMode','removeMarkers','push','trackChanges','after','getSuggestionCallback','isCollapsed','set','getLastMatchingPosition','parent','addCommentThread','_isForcedDefaultExecutionBlock','_onDiscard','forceDefaultExecution','_trackFormatChanges','always','creator','suggestion','_commentsRepository','updateMarker','containsRange','accept','get','Users','fetchCommentThread','createdAt','moveTargetPosition','isBlock','markMultiRangeDeletion','addMarker:suggestion:formatBlock','formatBlock:discard','execute','_model','applyOperation','consume','addMarker:suggestion','_removeSuggestion','formatBlock','_suggestionState','getShiftedBy','removeComment','stopListening','_cutOutSuggestionMarker','ck-suggestion-marker','range','start','schema','track-changes-adapter-already-set','from','ck-suggestion-marker-','type','createRangeIn','_setSuggestionRange','suggestionLoaded','_updateSuggestionData','markerReady','change','setAttribute','acceptAllSuggestions','isAtEnd','isAtStart','return','markMultiRangeBlockFormat','removeAttribute','element','config','hasCommentThread','document','isAfter','track-changes-suggestion-not-found','delete','enqueueChange','$graveyard','root','change:data','chain','getSuggestion','pluginName','discardSuggestion','isIntersectingWithRange','addComment','_splitMarkerName','locale','getItems','stop','discard','rootName','showSuggestionHighlights','then','_joinWithAdjacentSuggestions','insertion:accept','differ','includes','_joinSuggestions','getNearestSelectionRange','clone','$marker','elementEnd','track-changes-command-not-found','getRanges','insertion:discard','formatInline','getFirstMarker','containerElement','_mergeNestedSuggestions','removeClass'];(function(_0x43aa44,_0x2463c8){const _0x5da699=function(_0x43b16a){while(--_0x43b16a){_0x43aa44['push'](_0x43aa44['shift']());}};_0x5da699(++_0x2463c8);}(_0x2463,0x180));const _0x5da6=function(_0x43aa44,_0x2463c8){_0x43aa44=_0x43aa44-0x0;let _0x5da699=_0x2463[_0x43aa44];return _0x5da699;};import{Plugin as _0x3127e4,PendingActions as _0xaee28d}from'ckeditor5/src/core';import{LiveRange as _0xf16d0d}from'ckeditor5/src/engine';import{CKEditorError as _0x149698,uid as _0xbfca54,priorities as _0x1d14aa,logWarning as _0x2dac97}from'ckeditor5/src/utils';import{toWidget as _0x43ddf2}from'ckeditor5/src/widget';import{Users as _0x5e877b,hashObject as _0x65e117}from'ckeditor5-collaboration/src/collaboration-core';import _0x17cc61 from'./commands/trackchangescommand';import _0x5c4707 from'./commands/acceptsuggestioncommand';import _0x55c805 from'./commands/discardsuggestioncommand';import _0x1b4b9e from'./commands/executeonallsuggestionscommand';import _0x105944 from'./commands/executeonselectedsuggestionscommand';import _0x1cc1e4 from'./suggestion';import _0x1ee7df from'./suggestiondescriptionfactory';import _0x722224 from'./integrations/alignment';import _0x5e035b from'./integrations/basicstyles';import _0xaf6ca6 from'./integrations/blockquote';import _0xb554da from'./integrations/ckbox';import _0x51a939 from'./integrations/codeblock';import _0x82c636 from'./integrations/comments';import _0x439990 from'./integrations/deletecommand';import _0x31bc1d from'./integrations/documentlist';import _0x42f599 from'./integrations/entercommand';import _0x3fd124 from'./integrations/findandreplace';import _0x12843b from'./integrations/font';import _0x5f44a6 from'./integrations/formatpainter';import _0x29c936 from'./integrations/heading';import _0x5b0e3d from'./integrations/highlight';import _0x5cf90d from'./integrations/horizontalline';import _0x537a97 from'./integrations/htmlembed';import _0x36ac45 from'./integrations/image';import _0x50ecd9 from'./integrations/imagereplace';import _0x30f1b9 from'./integrations/importword';import _0xce945 from'./integrations/indent';import _0x2f8e4d from'./integrations/inputcommand';import _0x3ca7ea from'./integrations/link';import _0x2fcf5e from'./integrations/list';import _0x2deb9e from'./integrations/listproperties';import _0x1448f5 from'./integrations/mediaembed';import _0x37a91f from'./integrations/mention';import _0x2af4a3 from'./integrations/pagebreak';import _0x370ad5 from'./integrations/paragraph';import _0x1fa7b9 from'./integrations/removeformat';import _0x4ecabc from'./integrations/restrictededitingmode';import _0x3f01af from'./integrations/shiftentercommand';import _0x2f92f2 from'./integrations/standardeditingmode';import _0x2d60ee from'./integrations/style';import _0x326a8 from'./integrations/table';import _0x12b501 from'./integrations/tablemergesplit';import _0x4aae39 from'./integrations/tableheadings';import _0x313b5c from'./integrations/tableclipboard';import _0x89d37d from'./integrations/tablecolumnresize';import _0x11213d from'./integrations/template';import _0x6a59b8 from'./integrations/tableofcontents';import _0x117fcb from'./integrations/title';import _0xc8ff14 from'./integrations/undo';import{getTranslation as _0xf5e24f}from'./utils/common-translations';import _0x46a626 from'./integrations/tablecaption';import _0x4d5443 from'./integrations/documentlistproperties';import _0x16318d from'./integrations/tableproperties';export default class p extends _0x3127e4{static get[_0x5da6('0x123')](){return['CommentsRepository',_0x5e877b,_0xaee28d,_0x722224,_0x5e035b,_0xaf6ca6,_0xb554da,_0x51a939,_0x82c636,_0x439990,_0x31bc1d,_0x4d5443,_0x42f599,_0x3fd124,_0x12843b,_0x5f44a6,_0x29c936,_0x5b0e3d,_0x5cf90d,_0x537a97,_0x36ac45,_0x50ecd9,_0x30f1b9,_0xce945,_0x2f8e4d,_0x3ca7ea,_0x2fcf5e,_0x2deb9e,_0x1448f5,_0x37a91f,_0x2af4a3,_0x370ad5,_0x1fa7b9,_0x4ecabc,_0x3f01af,_0x2f92f2,_0x2d60ee,_0x326a8,_0x12b501,_0x4aae39,_0x46a626,_0x313b5c,_0x89d37d,_0x6a59b8,_0x16318d,_0x11213d,_0x117fcb,_0xc8ff14];}static get[_0x5da6('0xf3')](){return _0x5da6('0x127');}constructor(_0x1b48a6){function _0x5442c7(_0x1237d0){return _0x1237d0[_0x5da6('0x51')](_0x23c268=>String[_0x5da6('0x9b')](_0x23c268))[_0x5da6('0x73')]('');}super(_0x1b48a6),this[_0x5da6('0xad')](_0x5da6('0x43'),[]),this['on']('change:activeMarkers',(_0x4a8ecf,_0x50d4bf,_0x5d6da6,_0x1dbc6f)=>{this[_0x5da6('0xc6')][_0x5da6('0xde')](()=>{for(const _0x3f39b2 of[..._0x1dbc6f,..._0x5d6da6])this[_0x5da6('0xc6')]['markers']['has'](_0x3f39b2)&&_0x1b48a6[_0x5da6('0x8f')][_0x5da6('0x11a')](_0x3f39b2);});}),this[_0x5da6('0x111')]=new _0x1ee7df(this[_0x5da6('0x75')]['model']['schema'],this[_0x5da6('0x75')][_0x5da6('0xf8')]),this['_adapter']=null,this[_0x5da6('0x9c')]=new Dt(this[_0x5da6('0x75')]),this[_0x5da6('0x12b')]=new Map(),this['_commentsRepository']=_0x1b48a6['plugins'][_0x5da6('0xbc')](_0x5da6('0x2f')),this[_0x5da6('0x143')]=new Set(),this[_0x5da6('0xc6')]=this[_0x5da6('0x75')]['model'],this[_0x5da6('0xcc')]=new WeakMap(),this[_0x5da6('0xb1')]=!0x1,_0x1b48a6[_0x5da6('0xe7')]['define'](_0x5da6('0x131'),'default'),this[_0x5da6('0xb4')]=_0x1b48a6[_0x5da6('0xe7')][_0x5da6('0xbc')](_0x5da6('0x131')),_0x1b48a6[_0x5da6('0xe7')]['define'](_0x5da6('0x3e'),!0x0),this['_mergeNestedSuggestions']=_0x1b48a6[_0x5da6('0xe7')][_0x5da6('0xbc')](_0x5da6('0x3e')),this[_0x5da6('0x57')]=new _0x17cc61(_0x1b48a6,this['_enabledCommands']),this[_0x5442c7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5442c7([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x38]);}[_0x5da6('0x44')](){const _0x1cd4fc=this['editor'];_0x1cd4fc[_0x5da6('0x136')][_0x5da6('0x5e')]('editingDowncast')[_0x5da6('0x120')]({'model':_0x5da6('0xb7'),'view':_0x1f35bd=>{const {id:_0x13e3b5,type:_0x58146f}=this[_0x5da6('0xf7')](_0x1f35bd[_0x5da6('0x4b')]),_0x5e7986=[_0x5da6('0xd1'),_0x5da6('0xd7')+_0x58146f];let _0x293513=0xbb8;return this['activeMarkers']['includes'](_0x1f35bd['markerName'])&&(_0x5e7986['push'](_0x5da6('0x93')),_0x293513=0xbc2),_0x5da6('0x64')==_0x58146f&&(_0x293513+=0x5),{'classes':_0x5e7986,'attributes':{'data-suggestion':_0x13e3b5},'priority':_0x293513};}}),_0x1cd4fc[_0x5da6('0x136')][_0x5da6('0x5e')]('dataDowncast')[_0x5da6('0x7e')](_0x102143=>{_0x102143['on'](_0x5da6('0xc9'),(_0x2c3119,_0x145138,_0x7b355d)=>{if(!_0x7b355d[_0x5da6('0x117')][_0x5da6('0xfd')])return;const _0x220042=_0x145138[_0x5da6('0x22')];if(!_0x220042)return;const _0x4a85ee=_0x7b355d[_0x5da6('0x9')]['toViewElement'](_0x220042);_0x1cd4fc['model'][_0x5da6('0xd4')][_0x5da6('0x82')](_0x220042)&&_0x4a85ee&&!_0x4a85ee[_0x5da6('0x135')]('widget')&&_0x4a85ee['is'](_0x5da6('0x10d'))&&_0x43ddf2(_0x4a85ee,_0x7b355d[_0x5da6('0x5f')]);},{'priority':_0x5da6('0x48')});}),_0x1cd4fc['conversion'][_0x5da6('0x5e')](_0x5da6('0x94'))['markerToHighlight']({'model':_0x5da6('0xb7'),'view':(_0x348685,_0xa54c22)=>{if(!_0xa54c22[_0x5da6('0x117')]['showSuggestionHighlights'])return null;const {type:_0x38b2bc}=this[_0x5da6('0xf7')](_0x348685[_0x5da6('0x4b')]);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x38b2bc],'priority':0xbb8};}});const _0x33833e=({showActiveMarkers:_0x8e197=!0x0}={})=>(_0x24d57a,_0x3276d6,_0x1f6be7)=>{if(!_0x3276d6[_0x5da6('0x22')])return;if(_0x3276d6['item']['is'](_0x5da6('0x11c')))return void _0x1f6be7['consumable'][_0x5da6('0xc8')](_0x3276d6[_0x5da6('0x22')],_0x24d57a[_0x5da6('0x80')]);const _0x14d176=_0x1f6be7['mapper'][_0x5da6('0x12e')](_0x3276d6[_0x5da6('0x22')]);if(!(_0x3276d6[_0x5da6('0x22')]['is']('element')&&_0x1cd4fc[_0x5da6('0x4c')]['schema'][_0x5da6('0xc1')](_0x3276d6['item'])&&!_0x14d176[_0x5da6('0x135')](_0x5da6('0x113'))))return;const {id:_0x185f51}=this['_splitMarkerName'](_0x3276d6['markerName']);_0x1f6be7[_0x5da6('0x5f')][_0x5da6('0x144')]([_0x5da6('0xd1'),_0x5da6('0x1c')],_0x14d176),_0x1f6be7[_0x5da6('0x5f')][_0x5da6('0xdf')]('data-suggestion',_0x185f51,_0x14d176),_0x1f6be7[_0x5da6('0x9')][_0x5da6('0x79')](_0x14d176,_0x3276d6[_0x5da6('0x4b')]),_0x8e197&&(this['activeMarkers'][_0x5da6('0x102')](_0x3276d6[_0x5da6('0x4b')])?_0x1f6be7[_0x5da6('0x5f')][_0x5da6('0x144')](_0x5da6('0x93'),_0x14d176):_0x1f6be7[_0x5da6('0x5f')][_0x5da6('0x10f')](_0x5da6('0x93'),_0x14d176));for(const _0xc0bd51 of _0x1cd4fc['model'][_0x5da6('0xd9')](_0x3276d6[_0x5da6('0x22')])[_0x5da6('0xf9')]())_0x1f6be7[_0x5da6('0x116')][_0x5da6('0xc8')](_0xc0bd51,_0x24d57a[_0x5da6('0x80')]);_0x1f6be7[_0x5da6('0x116')]['consume'](_0x3276d6[_0x5da6('0x22')],_0x24d57a[_0x5da6('0x80')]);};_0x1cd4fc[_0x5da6('0x136')][_0x5da6('0x5e')](_0x5da6('0x94'))[_0x5da6('0x7e')](_0x5001d0=>{_0x5001d0['on'](_0x5da6('0xc3'),(_0xb87df6,_0x2a9fa3,_0x2d2587)=>{_0x2d2587['options']['showSuggestionHighlights']&&_0x33833e({'showActiveMarkers':!0x1})(_0xb87df6,_0x2a9fa3,_0x2d2587);},{'priority':_0x5da6('0x5b')});}),_0x1cd4fc[_0x5da6('0x136')][_0x5da6('0x5e')](_0x5da6('0x94'))[_0x5da6('0x12a')]({'model':_0x5da6('0xb7'),'view':(_0x518929,_0x85bef8)=>_0x85bef8[_0x5da6('0x117')][_0x5da6('0xfd')]?null:{'group':_0x5da6('0xb7'),'name':_0x518929['substr'](0xb)}}),_0x1cd4fc[_0x5da6('0x136')]['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1b6cfb,{writer:_0x1e14fd})=>{let _0x147866=_0x5da6('0x145')+_0x1b6cfb[_0x5da6('0x2')](_0x5da6('0x85'))+':'+_0x1b6cfb[_0x5da6('0x2')]('id');return _0x1b6cfb[_0x5da6('0x2')](_0x5da6('0x3a'))&&(_0x147866+=':'+_0x1b6cfb[_0x5da6('0x2')](_0x5da6('0x3a'))),_0x1e14fd[_0x5da6('0xe')](_0x5da6('0x106'),{'data-name':_0x147866});}}),_0x1cd4fc[_0x5da6('0x136')]['for']('upcast')[_0x5da6('0x121')]({'view':_0x5da6('0xb7')}),_0x1cd4fc[_0x5da6('0x136')][_0x5da6('0x5e')](_0x5da6('0x1b'))[_0x5da6('0x7e')](_0x3a7124=>{_0x3a7124['on'](_0x5da6('0xc3'),_0x33833e(),{'priority':'high'});}),_0x1cd4fc[_0x5da6('0x136')]['for'](_0x5da6('0x1b'))['add'](_0xb41a66=>{_0xb41a66['on'](_0x5da6('0x77'),(_0x3dc673,_0x25c38f,_0x104978)=>{const _0x47e4b3=_0x104978[_0x5da6('0x9')]['markerNameToElements'](_0x25c38f['markerName']);if(_0x47e4b3)for(const _0x39eec9 of _0x47e4b3)_0x39eec9[_0x5da6('0x135')](_0x5da6('0x113'))||(_0x104978[_0x5da6('0x5f')][_0x5da6('0x10f')]([_0x5da6('0xd1'),_0x5da6('0x1c'),'ck-suggestion-marker--active'],_0x39eec9),_0x104978[_0x5da6('0x5f')][_0x5da6('0xe5')](_0x5da6('0x58'),_0x39eec9),_0x104978[_0x5da6('0x9')][_0x5da6('0x7f')](_0x39eec9,_0x25c38f[_0x5da6('0x4b')]));},{'priority':_0x5da6('0x48')});}),_0x1cd4fc['model'][_0x5da6('0xe9')]['registerPostFixer'](_0x158cb9=>{let _0x1db8e9=!0x1;const _0x58b49a=Array[_0x5da6('0xd6')](_0x1cd4fc[_0x5da6('0x4c')][_0x5da6('0xe9')]['differ'][_0x5da6('0x56')]()),_0x5071f6=new Set();for(const {name:_0x4b1b95,data:_0x3a0d2d}of _0x58b49a){const {group:_0x16088c,type:_0x7f2a10,id:_0x2cc8f0}=this[_0x5da6('0xf7')](_0x4b1b95);if(_0x5da6('0xb7')!==_0x16088c)continue;const _0x52bd7a=this[_0x5da6('0x12b')]['get'](_0x2cc8f0);if(null!=_0x3a0d2d['newRange']){_0x5da6('0x10b')==_0x7f2a10&&(_0x1db8e9=_0x1db8e9||Mt(_0x3a0d2d['newRange'],_0x4b1b95,_0x158cb9,_0x1cd4fc[_0x5da6('0x4c')]['schema']));if(_0x3a0d2d['newRange'][_0x5da6('0xac')]||_0x5da6('0xee')==_0x3a0d2d[_0x5da6('0x115')][_0x5da6('0xef')][_0x5da6('0xfc')]||_0x5da6('0xcb')==_0x7f2a10&&!Nt(_0x3a0d2d[_0x5da6('0x115')])||_0x5da6('0x64')==_0x7f2a10&&!(!_t(_0x475876=_0x3a0d2d[_0x5da6('0x115')])&&!function(_0x2c6214){return _0x2c6214[_0x5da6('0xd3')][_0x5da6('0xaf')]==_0x2c6214['end'][_0x5da6('0x98')]&&_0x2c6214[_0x5da6('0xd3')][_0x5da6('0xe1')];}(_0x475876)))_0x158cb9[_0x5da6('0x26')](_0x4b1b95),_0x1db8e9=!0x0;else{if(!_0x52bd7a||!_0x52bd7a[_0x5da6('0x12d')])continue;_0x5071f6[_0x5da6('0x7e')](_0x52bd7a);}}}var _0x475876;return _0x5071f6['size']>0x0&&(_0x1db8e9=!!this[_0x5da6('0xff')](_0x5071f6)||_0x1db8e9),_0x1db8e9;}),_0x1cd4fc[_0x5da6('0x4c')]['document'][_0x5da6('0x17')](_0x19fa7c=>{let _0x3767eb=!0x1;for(const _0x5d86e6 of _0x1cd4fc[_0x5da6('0x4c')]['document'][_0x5da6('0x101')][_0x5da6('0x4')]()){if(_0x5da6('0x49')!=_0x5d86e6['type'])continue;const _0xa822b1=_0x5d86e6['position']['getShiftedBy'](_0x5d86e6['length']);if(_0xa822b1[_0x5da6('0xe1')])for(const _0x127953 of this[_0x5da6('0x12b')][_0x5da6('0xa5')]()){if(_0x127953['isMultiRange']||!_0x127953[_0x5da6('0x12d')])continue;if(_0x5da6('0xcb')!=_0x127953['type'])continue;const _0x46014f=_0x127953[_0x5da6('0x114')]();if(_0x46014f[_0x5da6('0xd3')][_0x5da6('0xaf')]!=_0x46014f[_0x5da6('0x69')]['parent']&&_0x46014f['end'][_0x5da6('0x4a')](_0x5d86e6[_0x5da6('0x6c')])){const _0x32e277=_0x1cd4fc[_0x5da6('0x4c')][_0x5da6('0x5c')](_0x46014f['start'],_0xa822b1);_0x19fa7c[_0x5da6('0xb9')](_0x127953['getFirstMarker'](),{'range':_0x32e277}),_0x3767eb=!0x0;}}}return _0x3767eb;}),_0x1cd4fc['model'][_0x5da6('0x13a')]['on'](_0x5da6('0x47'),(_0x43a5c5,_0x1d65dc,_0x33c47e)=>{if(null==_0x33c47e){const {id:_0x56428e}=this[_0x5da6('0xf7')](_0x1d65dc[_0x5da6('0x80')]),_0x293956=this[_0x5da6('0x12b')][_0x5da6('0xbc')](_0x56428e);_0x293956&&_0x293956['addMarkerName'](_0x1d65dc[_0x5da6('0x80')]);}}),_0x1cd4fc[_0x5da6('0x4c')][_0x5da6('0xe9')]['on'](_0x5da6('0xf0'),()=>{const _0x11fcd7=Array[_0x5da6('0xd6')](_0x1cd4fc['model'][_0x5da6('0xe9')][_0x5da6('0x101')][_0x5da6('0x56')]())[_0x5da6('0x33')](_0x543f60=>_0x5da6('0xb7')===this[_0x5da6('0xf7')](_0x543f60[_0x5da6('0x80')])[_0x5da6('0x27')]);if(0x0===_0x11fcd7[_0x5da6('0x90')])return;_0x11fcd7[_0x5da6('0x67')]((_0x957597,_0x252011)=>{const _0x15a2d7=_0x957597[_0x5da6('0x9a')][_0x5da6('0x20')],_0x51fbc5=_0x252011['data']['oldRange'];return null===_0x15a2d7&&null===_0x51fbc5?0x0:null===_0x15a2d7&&null!==_0x51fbc5?-0x1:null!==_0x15a2d7&&null===_0x51fbc5?0x1:_0x15a2d7['start'][_0x5da6('0x91')](_0x51fbc5[_0x5da6('0xd3')])?-0x1:0x1;});const _0x2f7a4e=new Set(),_0x528d59=new Set();for(const {name:_0x5056f6,data:_0x53152c}of _0x11fcd7){const {id:_0x48b72a}=this[_0x5da6('0xf7')](_0x5056f6);if(null===_0x53152c[_0x5da6('0x20')]){const _0x26fb6f=this[_0x5da6('0xb')](_0x5056f6);_0x528d59[_0x5da6('0x7e')](_0x26fb6f);}else{const _0x9e0a0a=this[_0x5da6('0x12b')][_0x5da6('0xbc')](_0x48b72a);null!==_0x53152c[_0x5da6('0x115')]||_0x9e0a0a[_0x5da6('0x12d')]?(_0x2f7a4e['add'](_0x9e0a0a[_0x5da6('0x18')]),_0x528d59[_0x5da6('0x7e')](_0x9e0a0a)):this[_0x5da6('0xca')](_0x9e0a0a);}}_0x528d59[_0x5da6('0x24')]>0x0&&this[_0x5da6('0x40')](_0x528d59);for(const _0x4f9f31 of _0x2f7a4e)this[_0x5da6('0x9f')]('suggestionChanged',_0x4f9f31);}),_0x1cd4fc[_0x5da6('0x4c')]['on'](_0x5da6('0xc7'),(_0x33ffe5,_0x2436c6)=>{const _0x59c897=_0x2436c6[0x0];if(!this[_0x5da6('0x12b')]['size'])return;if(!_0x59c897[_0x5da6('0x2b')])return;if(_0x59c897['batch'][_0x5da6('0x86')]||!_0x59c897[_0x5da6('0x52')][_0x5da6('0x41')])return;let _0x2163f8,_0x52b053;switch(_0x59c897['type']){case _0x5da6('0x49'):_0x2163f8=_0x1cd4fc['model'][_0x5da6('0x140')](_0x59c897['position']),_0x52b053=_0x2163f8[_0x5da6('0xcd')](_0x59c897[_0x5da6('0x15')]);break;case _0x5da6('0x3'):_0x2163f8=_0x1cd4fc['model'][_0x5da6('0x140')](_0x59c897[_0x5da6('0x96')]),_0x52b053=_0x1cd4fc['model'][_0x5da6('0x140')](_0x59c897[_0x5da6('0xc0')]);break;case _0x5da6('0x7'):_0x2163f8=_0x1cd4fc[_0x5da6('0x4c')]['createPositionAt'](_0x59c897[_0x5da6('0x1e')]),_0x52b053=_0x2163f8[_0x5da6('0xcd')](_0x59c897[_0x5da6('0x15')]);break;default:return;}const _0x2e66bf=_0x1cd4fc[_0x5da6('0x4c')][_0x5da6('0x5c')](_0x2163f8,_0x52b053);_0x1cd4fc[_0x5da6('0x4c')][_0x5da6('0xde')](()=>{for(const {suggestion:_0x4da4df,meta:_0x50e7a5}of this[_0x5da6('0x13c')](_0x2e66bf)){if(_0x4da4df[_0x5da6('0x6d')])continue;if(_0x5da6('0x10b')==_0x4da4df[_0x5da6('0xd8')])continue;const _0x54f86a=_0x4da4df['data']&&_0x4da4df['data'][_0x5da6('0x3b')];(_0x5da6('0xcb')!=_0x4da4df['type']||_0x5da6('0x3')==_0x59c897[_0x5da6('0xd8')]&&!_0x54f86a)&&(_0x50e7a5['containsRangeInObject']||_0x5da6('0x89')==_0x4da4df[_0x5da6('0xd8')]&&_0x50e7a5[_0x5da6('0x11e')]||_0x4da4df[_0x5da6('0x114')]()[_0x5da6('0xba')](_0x2e66bf)&&this['_breakSuggestionMarker'](_0x4da4df,_0x2163f8,_0x52b053));}});},{'priority':_0x5da6('0x1a')}),_0x1cd4fc[_0x5da6('0x4c')]['on'](_0x5da6('0x28'),(_0x1be8ef,_0x408ff3)=>{const _0x4de76d=_0x408ff3[0x0],_0x3a51a1=_0x408ff3[0x1];if(_0x3a51a1&&_0x3a51a1[_0x5da6('0xb3')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5da6('0x57')]['value'])return;if(_0x4de76d['isCollapsed'])return;const _0x5ab17f=_0x1cd4fc[_0x5da6('0x4c')][_0x5da6('0xd4')],{start:_0x1584c6,end:_0x2ad75f}=_0x4de76d[_0x5da6('0x114')](),_0x9bcce5=_0x1584c6['nodeAfter']&&_0x5ab17f[_0x5da6('0xc')](_0x1584c6[_0x5da6('0x13e')])?null:_0x5ab17f[_0x5da6('0x104')](_0x1584c6,_0x5da6('0x138')),_0x4bf565=_0x2ad75f['nodeBefore']&&_0x5ab17f[_0x5da6('0xc')](_0x2ad75f[_0x5da6('0x98')])?null:_0x5ab17f[_0x5da6('0x104')](_0x2ad75f,'backward'),_0x17ce38=_0x1cd4fc[_0x5da6('0x4c')][_0x5da6('0x5c')](_0x9bcce5?_0x9bcce5[_0x5da6('0xd3')]:_0x1584c6,_0x4bf565?_0x4bf565[_0x5da6('0x69')]:_0x2ad75f);_0x1cd4fc[_0x5da6('0x4c')][_0x5da6('0xde')](_0x4d03e9=>{this[_0x5da6('0xa4')](_0x17ce38);const _0x2936ab=_0x1cd4fc['model'][_0x5da6('0xd4')][_0x5da6('0x104')](_0x17ce38[_0x5da6('0xd3')]);_0x4de76d['is'](_0x5da6('0x2d'))?_0x4d03e9['setSelection'](_0x2936ab):_0x4de76d['setTo'](_0x2936ab);}),_0x1be8ef[_0x5da6('0xfa')]();},{'priority':_0x1d14aa[_0x5da6('0x13f')]+0xa}),_0x1cd4fc[_0x5da6('0x4c')]['on'](_0x5da6('0x13'),(_0x2ba360,_0x371eed)=>{const _0x3be31b=_0x371eed[_0x371eed['length']-0x1];_0x3be31b&&_0x3be31b[_0x5da6('0xb3')]||this['_isForcedDefaultExecutionBlock']||this[_0x5da6('0x57')]['value']&&(_0x1cd4fc[_0x5da6('0x4c')]['change'](()=>{let _0x2ae780=_0x1cd4fc['model']['insertContent'](_0x371eed[0x0],_0x371eed[0x1],_0x371eed[0x2],{'forceDefaultExecution':!0x0});if(!_0x2ae780)return;_0x2ba360[_0x5da6('0xe3')]=_0x2ae780[_0x5da6('0x105')]();const _0x444076=_0x2ae780[_0x5da6('0x69')][_0x5da6('0x98')],_0x502a96=_0x1cd4fc['model'][_0x5da6('0xd4')];_0x444076&&_0x502a96['isBlock'](_0x444076)&&!_0x502a96['isObject'](_0x444076)&&(_0x2ae780=_0x1cd4fc['model']['createRange'](_0x2ae780['start'],_0x1cd4fc[_0x5da6('0x4c')][_0x5da6('0x140')](_0x444076,_0x5da6('0x69')))),this[_0x5da6('0x6b')](_0x2ae780);}),_0x2ba360[_0x5da6('0xfa')]());},{'priority':_0x5da6('0x48')}),this['editor'][_0x5da6('0x84')]['add'](_0x5da6('0xa9'),this[_0x5da6('0x57')]),this['enableCommand']('trackChanges');const _0x1e79ec=new _0x5c4707(_0x1cd4fc,this[_0x5da6('0x12b')]);_0x1cd4fc[_0x5da6('0x84')][_0x5da6('0x7e')](_0x5da6('0x6'),_0x1e79ec),this[_0x5da6('0x50')](_0x5da6('0x6'));const _0x5414df=new _0x55c805(_0x1cd4fc,this[_0x5da6('0x12b')]);_0x1cd4fc[_0x5da6('0x84')][_0x5da6('0x7e')](_0x5da6('0xf4'),_0x5414df),this[_0x5da6('0x50')]('discardSuggestion'),_0x1cd4fc[_0x5da6('0x84')]['add']('acceptAllSuggestions',new _0x1b4b9e(_0x1cd4fc,_0x1e79ec,this[_0x5da6('0x12b')])),this[_0x5da6('0x50')](_0x5da6('0xe0')),_0x1cd4fc[_0x5da6('0x84')]['add']('discardAllSuggestions',new _0x1b4b9e(_0x1cd4fc,_0x5414df,this[_0x5da6('0x12b')])),this[_0x5da6('0x50')]('discardAllSuggestions'),_0x1cd4fc[_0x5da6('0x84')][_0x5da6('0x7e')](_0x5da6('0x4e'),new _0x105944(_0x1cd4fc,_0x1e79ec,this[_0x5da6('0x12b')])),this[_0x5da6('0x50')](_0x5da6('0x4e')),_0x1cd4fc[_0x5da6('0x84')][_0x5da6('0x7e')](_0x5da6('0x129'),new _0x105944(_0x1cd4fc,_0x5414df,this[_0x5da6('0x12b')])),this['enableCommand']('discardSelectedSuggestions');const _0x5decbd=_0x1cd4fc['plugins'][_0x5da6('0xbc')](_0x5da6('0x2f'));this['listenTo'](_0x5decbd,_0x5da6('0xf6'),(_0x6fac9,{threadId:_0x28a4d9})=>{const _0x1715a9=this[_0x5da6('0x12b')][_0x5da6('0xbc')](_0x28a4d9);_0x1715a9&&_0x1715a9[_0x5da6('0x14')]&&0x1===_0x1715a9[_0x5da6('0x14')][_0x5da6('0x90')]&&this[_0x5da6('0xdc')](_0x28a4d9,{'hasComments':!0x0});},{'priority':_0x5da6('0x1d')}),this[_0x5da6('0x8a')](_0x5decbd,_0x5da6('0xce'),(_0x9e045e,{threadId:_0x102f3})=>{const _0x3e7bb9=this[_0x5da6('0x12b')][_0x5da6('0xbc')](_0x102f3);_0x3e7bb9&&_0x3e7bb9['commentThread']&&!_0x3e7bb9['commentThread'][_0x5da6('0x90')]&&this['_updateSuggestionData'](_0x102f3,{'hasComments':!0x1});},{'priority':_0x5da6('0x1d')});}set[_0x5da6('0x130')](_0x206151){if(this['_adapter'])throw new _0x149698(_0x5da6('0xd5'),this);this[_0x5da6('0x9e')]=_0x206151;}get[_0x5da6('0x130')](){return this[_0x5da6('0x9e')];}['getSuggestions']({skipNotAttached:_0x254fb3=!0x1,toJSON:_0x2307ce=!0x1}={}){const _0x3e6f9d=[];for(const _0x2800e2 of this['_suggestions']['values']())_0x254fb3&&!_0x2800e2[_0x5da6('0x12d')]||_0x3e6f9d[_0x5da6('0xa8')](_0x2800e2);return _0x2307ce?_0x3e6f9d[_0x5da6('0x51')](_0x1bfd44=>_0x1bfd44[_0x5da6('0x95')]()):_0x3e6f9d;}[_0x5da6('0xf2')](_0x49994d){const _0x372d16=this[_0x5da6('0x12b')]['get'](_0x49994d);if(!_0x372d16)throw new _0x149698(_0x5da6('0xeb'),this);return _0x372d16;}[_0x5da6('0x21')](_0x467749){return this[_0x5da6('0x12b')][_0x5da6('0x11d')](_0x467749);}[_0x5da6('0x54')](_0x165b0d){const {authorId:_0x3b9820,id:_0x46844c,attributes:_0x32379d}=_0x165b0d,[_0x319f3b,_0x3e631d]=_0x165b0d['type']['split'](':'),_0x240ff1=this['_suggestions'][_0x5da6('0xbc')](_0x46844c)||this[_0x5da6('0xa')](_0x319f3b,_0x3e631d,_0x46844c,_0x3b9820,_0x32379d);if(this[_0x5da6('0x139')](_0x240ff1),this[_0x5da6('0x124')](_0x240ff1,_0x319f3b,_0x3e631d||null,_0x3b9820),_0x240ff1[_0x5da6('0xbf')]=_0x165b0d[_0x5da6('0xbf')],_0x32379d&&_0x32379d['@external']){const _0x129af5=_0x32379d['@external'],_0x245cdb=this['_getExternalAuthor'](_0x129af5['authorName']);_0x240ff1['authoredAt']=_0x129af5[_0x5da6('0xbf')],_0x240ff1[_0x5da6('0x13b')]=_0x245cdb,_0x240ff1[_0x5da6('0x7d')]=!0x0;}else _0x240ff1['authoredAt']=_0x165b0d[_0x5da6('0xbf')];switch(_0x165b0d[_0x5da6('0x9a')]&&(_0x240ff1[_0x5da6('0x9a')]=_0x165b0d[_0x5da6('0x9a')]),_0x165b0d[_0x5da6('0x118')]&&(_0x240ff1[_0x5da6('0x118')]=_0x165b0d['attributes']),this[_0x5da6('0x9e')]&&this[_0x5da6('0x9e')]['addSuggestion']||(_0x240ff1[_0x5da6('0x78')]=!0x0),this['_suggestionState'][_0x5da6('0xbc')](_0x240ff1)){case _0x5da6('0x8b'):this[_0x5da6('0xcc')][_0x5da6('0xad')](_0x240ff1,'dataReady');break;case _0x5da6('0xdd'):_0x240ff1[_0x5da6('0x12d')]?(this[_0x5da6('0xcc')][_0x5da6('0xad')](_0x240ff1,_0x5da6('0x62')),this['fire'](_0x5da6('0xdb'),_0x240ff1)):this[_0x5da6('0xcc')]['set'](_0x240ff1,_0x5da6('0x1'));}return _0x240ff1;}[_0x5da6('0x6')](_0x5ce386){this[_0x5da6('0xb3')](()=>{this[_0x5da6('0x75')][_0x5da6('0x4c')][_0x5da6('0xde')](()=>{for(const _0x2557d7 of _0x5ce386[_0x5da6('0xa3')]())_0x2557d7[_0x5da6('0xbb')]();});});}[_0x5da6('0xf4')](_0x569ba1){this[_0x5da6('0xb3')](()=>{this[_0x5da6('0x75')]['model'][_0x5da6('0xde')](()=>{for(const _0x1e40e3 of _0x569ba1[_0x5da6('0xa3')]())_0x1e40e3[_0x5da6('0xfb')]();});});}[_0x5da6('0x50')](_0x3b8524,_0x36cef8){const _0x2cafd2=this[_0x5da6('0x75')][_0x5da6('0x84')]['get'](_0x3b8524);if(!_0x2cafd2)throw new _0x149698(_0x5da6('0x108'),this,{'commandName':_0x3b8524});this[_0x5da6('0x143')][_0x5da6('0x7e')](_0x2cafd2),_0x36cef8&&_0x2cafd2['on'](_0x5da6('0xc5'),(_0x48a015,_0x1ce510)=>{this['trackChangesCommand'][_0x5da6('0xa1')]&&(this[_0x5da6('0xb1')]||_0x1ce510[_0x5da6('0x90')]>0x0&&_0x1ce510[_0x1ce510['length']-0x1]&&_0x1ce510[_0x1ce510[_0x5da6('0x90')]-0x1]['forceDefaultExecution']||(_0x36cef8((..._0x54b806)=>_0x2cafd2['execute'](..._0x54b806,{'forceDefaultExecution':!0x0}),..._0x1ce510),_0x48a015['stop']()));},{'priority':_0x5da6('0x48')});}['forceDefaultExecution'](_0x1784e9){let _0xb3b688,_0x532f46;const _0x344eaa=this['_isForcedDefaultExecutionBlock'];this[_0x5da6('0xb1')]=!0x0;try{_0xb3b688=_0x1784e9();}catch(_0x12e14a){_0x532f46=_0x12e14a;}return _0x344eaa||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x532f46&&_0x149698[_0x5da6('0x122')](_0x532f46,this),_0xb3b688;}[_0x5da6('0x6b')](_0x5eeaa2,_0xf5fd90=null,_0x353dcf={}){if(_0x5eeaa2[_0x5da6('0xac')])return null;const _0x45aad9=this[_0x5da6('0x75')][_0x5da6('0x5')]['get'](_0x5da6('0xbd'))['me'];for(const {suggestion:_0x41cff4,meta:_0x17cac9}of this[_0x5da6('0x13c')](_0x5eeaa2,'insertion'))if(_0x17cac9[_0x5da6('0x11e')]){if(!_0x17cac9[_0x5da6('0x76')]){if(!this['_mergeNestedSuggestions']&&_0x17cac9['containsRangeInObject'])continue;return _0x41cff4;}if(_0xf5fd90==_0x41cff4[_0x5da6('0x92')]){const _0xa7c8c8=_0x41cff4[_0x5da6('0x114')]();return _0xa7c8c8[_0x5da6('0xd3')][_0x5da6('0x4a')](_0x5eeaa2[_0x5da6('0x69')])?this[_0x5da6('0xda')](_0x41cff4,this[_0x5da6('0xc6')][_0x5da6('0x5c')](_0x5eeaa2['start'],_0xa7c8c8[_0x5da6('0x69')])):this[_0x5da6('0xda')](_0x41cff4,this[_0x5da6('0xc6')]['createRange'](_0xa7c8c8[_0x5da6('0xd3')],_0x5eeaa2[_0x5da6('0x69')])),_0x41cff4;}}const _0x47b857=_0xbfca54(),_0x5bfbfe=_0x45aad9['id'],_0x317188=_0xf5fd90?_0x5da6('0x10')+_0xf5fd90:_0x5da6('0x89'),_0x265d0e=this[_0x5da6('0x70')]({'id':_0x47b857,'type':_0x317188,'createdAt':new Date(),'authorId':_0x5bfbfe,'attributes':_0x353dcf});return this[_0x5da6('0x35')](_0x317188,_0x47b857,_0x5bfbfe,_0x5eeaa2),_0x265d0e;}[_0x5da6('0x12c')](_0x42dd75,_0x2b6b11='multi',_0x2bd625={}){const _0x4b1025=this[_0x5da6('0x75')][_0x5da6('0x5')]['get'](_0x5da6('0xbd'))['me'],_0x1bbd3f=this[_0x5da6('0x9c')]['getSuggestionCallback'](_0x5da6('0x89'),_0x2b6b11,_0x5da6('0x73'));for(const _0x5d3e7b of this[_0x5da6('0x83')]())if(_0x5d3e7b[_0x5da6('0x13b')]['id']==_0x4b1025['id']&&'insertion'==_0x5d3e7b['type']&&_0x5d3e7b[_0x5da6('0x92')]==_0x2b6b11&&(_0x1bbd3f(_0x5d3e7b[_0x5da6('0x109')](),_0x42dd75)||_0x1bbd3f(_0x42dd75,_0x5d3e7b[_0x5da6('0x109')]()))){for(const _0xbca677 of _0x42dd75)_0x5d3e7b[_0x5da6('0xf')](_0xbca677);return _0x5d3e7b;}if(this['_mergeNestedSuggestions'])for(const _0x1611fd of _0x42dd75)for(const {suggestion:_0xf2a8eb,meta:_0x575a8f}of this[_0x5da6('0x13c')](_0x1611fd,_0x5da6('0x89'))){if(!_0x575a8f[_0x5da6('0x11e')])continue;let _0x3129f5=!0x0;for(const _0x187f50 of _0xf2a8eb[_0x5da6('0x109')]())for(const _0x1b42d4 of _0x42dd75)if(!_0x187f50[_0x5da6('0xba')](_0x1b42d4)){_0x3129f5=!0x1;break;}if(_0x3129f5)return _0xf2a8eb;}const _0x30ad6a=_0xbfca54(),_0x2d805b=_0x4b1025['id'],_0x513dd4=_0x5da6('0x10')+_0x2b6b11,_0x12c28c=this[_0x5da6('0x70')]({'id':_0x30ad6a,'type':_0x513dd4,'createdAt':new Date(),'authorId':_0x2d805b,'attributes':_0x2bd625});for(const _0x24e8ad of _0x42dd75)this[_0x5da6('0x35')](_0x513dd4,_0x30ad6a,_0x2d805b,_0x24e8ad,_0x1cc1e4[_0x5da6('0x55')]());return _0x12c28c;}[_0x5da6('0x128')](_0x4ca6e7,_0xff8e66,_0x521ad0=null,_0x58ae50={}){if(_0x521ad0=_0x521ad0||$t(_0xff8e66),_0x4ca6e7[_0x5da6('0xac')])return null;if('never'===this[_0x5da6('0xb4')]){const _0x5b21f3=this['_suggestionFactory'][_0x5da6('0xab')](_0x5da6('0x10b'),_0x521ad0,_0x5da6('0xbb'));return this[_0x5da6('0xb3')](()=>_0x5b21f3([_0x4ca6e7],_0xff8e66,_0x58ae50)),null;}const _0x1e50b6=this[_0x5da6('0x75')][_0x5da6('0x5')][_0x5da6('0xbc')]('Users')['me'],_0xc0ec05=[];if(_0x5da6('0xb5')!==this['_trackFormatChanges'])for(const {suggestion:_0x37e8c9,meta:_0x46ef15}of this[_0x5da6('0x13c')](_0x4ca6e7,_0x5da6('0x89')))_0x46ef15[_0x5da6('0x11e')]&&!_0x46ef15['isInsideObject']&&_0xc0ec05[_0x5da6('0xa8')](..._0x37e8c9[_0x5da6('0x109')]());const _0x2cbea8=function(_0x4023e1,_0x5db395){const _0x14a66e=[];for(const _0x1c2592 of _0x5db395){const _0x65aea5=_0x4023e1['getIntersection'](_0x1c2592);_0x65aea5&&_0x14a66e[_0x5da6('0xa8')](_0x65aea5);}return _0x14a66e;}(_0x4ca6e7,_0xc0ec05),_0x28a006=function(_0x5d7292,_0x1c2d3c){const _0x37eed6=[_0x5d7292];for(const _0x1338c1 of _0x1c2d3c){let _0x401109=0x0;for(;_0x401109<_0x37eed6[_0x5da6('0x90')];){const _0x39e13c=_0x37eed6[_0x401109][_0x5da6('0x8c')](_0x1338c1);_0x37eed6[_0x5da6('0x16')](_0x401109,0x1,..._0x39e13c),_0x401109+=_0x39e13c[_0x5da6('0x90')];}}return _0x37eed6;}(_0x4ca6e7,_0xc0ec05);_0x2cbea8['length']&&this[_0x5da6('0xc6')][_0x5da6('0xde')](()=>{for(const _0x757868 of _0x2cbea8){const _0x2bcb29=this['_suggestionFactory'][_0x5da6('0xab')](_0x5da6('0x10b'),_0x521ad0,_0x5da6('0xbb'));this[_0x5da6('0xb3')](()=>_0x2bcb29([_0x757868],_0xff8e66,_0x58ae50));}});for(const _0x50c27c of _0x28a006){let _0x40e6a5=null,_0x2c488f=_0x50c27c[_0x5da6('0xd3')],_0x2a6695=_0x50c27c[_0x5da6('0x69')];for(const {suggestion:_0x4ae871,meta:_0x596af3}of this['_findSuggestions'](_0x50c27c,_0x5da6('0x10b'))){if(!_0x596af3[_0x5da6('0x11e')])continue;if(_0x4ae871[_0x5da6('0x92')]!=_0x521ad0)continue;const _0x3c1ee5=_0x4ae871[_0x5da6('0x114')]();if(_0x3c1ee5['containsRange'](_0x50c27c,!0x0))return null;_0x2c488f=_0x2c488f['isBefore'](_0x3c1ee5[_0x5da6('0xd3')])?_0x2c488f:_0x3c1ee5[_0x5da6('0xd3')],_0x2a6695=_0x2a6695[_0x5da6('0xea')](_0x3c1ee5[_0x5da6('0x69')])?_0x2a6695:_0x3c1ee5[_0x5da6('0x69')],_0x40e6a5?_0x3c1ee5[_0x5da6('0xd3')]['isBefore'](_0x40e6a5[_0x5da6('0x114')]()['start'])?(_0x40e6a5['removeMarkers'](),_0x40e6a5=_0x4ae871):_0x4ae871[_0x5da6('0xa7')]():_0x40e6a5=_0x4ae871;}const _0x13fc4d=this[_0x5da6('0xc6')][_0x5da6('0x5c')](_0x2c488f,_0x2a6695);if(_0x40e6a5)this['_setSuggestionRange'](_0x40e6a5,_0x13fc4d);else{const _0x4ed89f=_0xbfca54(),_0x46485e=_0x1e50b6['id'];this[_0x5da6('0x70')]({'id':_0x4ed89f,'type':'formatInline:'+_0x521ad0,'data':_0xff8e66,'createdAt':new Date(),'authorId':_0x46485e,'attributes':_0x58ae50}),this[_0x5da6('0x35')]('formatInline:'+_0x521ad0,_0x4ed89f,_0x46485e,_0x13fc4d);}}return null;}[_0x5da6('0x1f')](_0x2b2ce0,_0x483bd0,_0x5baa50=[],_0x1745bb=null,_0x55e9e6={}){_0x483bd0[_0x5da6('0x11')]||(_0x483bd0[_0x5da6('0x11')]=_0x483bd0[_0x5da6('0x133')]),_0x483bd0[_0x5da6('0x3b')]=_0x2b2ce0['is'](_0x5da6('0xd2')),_0x1745bb=_0x1745bb||$t(_0x483bd0);const _0x12a9cc=_0x5baa50[_0x5da6('0x51')](_0x15e7fc=>Rt(_0x15e7fc,this[_0x5da6('0xc6')])),_0x90950a=_0x2b2ce0['is']('range')?_0x2b2ce0:Rt(_0x2b2ce0,this[_0x5da6('0xc6')]);if(_0x5da6('0x0')===this[_0x5da6('0xb4')]){const _0x15ce8b=this[_0x5da6('0x9c')]['getSuggestionCallback'](_0x5da6('0xcb'),_0x1745bb,_0x5da6('0xbb'));return this[_0x5da6('0xb3')](()=>_0x15ce8b([_0x90950a],_0x483bd0,_0x55e9e6)),null;}_0x12a9cc[_0x5da6('0xa8')](_0x90950a);let _0x229b5e=!0x0;for(const _0x13871f of _0x12a9cc)if(!this[_0x5da6('0x36')](_0x13871f)){_0x229b5e=!0x1;break;}if(_0x229b5e&&_0x5da6('0xb5')!==this[_0x5da6('0xb4')]){const _0x19d02a=this[_0x5da6('0x9c')]['getSuggestionCallback'](_0x5da6('0xcb'),_0x1745bb,_0x5da6('0xbb'));return this[_0x5da6('0xb3')](()=>_0x19d02a([_0x90950a],_0x483bd0,_0x55e9e6)),null;}let _0x3233f6=null,_0x5166c9=_0x90950a['start'],_0x39d3f8=_0x90950a['end'];for(const {suggestion:_0x447bd0,meta:_0x2fc6cc}of this[_0x5da6('0x13c')](_0x90950a,_0x5da6('0xcb'))){if(!_0x2fc6cc['isOwn']||_0x2fc6cc[_0x5da6('0x76')]||_0x2fc6cc[_0x5da6('0x65')]||_0x2fc6cc[_0x5da6('0x99')])continue;if(_0x447bd0[_0x5da6('0x9a')][_0x5da6('0x11')]!=_0x483bd0[_0x5da6('0x11')])continue;const _0xb4d0af=_0x447bd0['getFirstRange']();if(_0x447bd0[_0x5da6('0x92')]==_0x1745bb){if(_0xb4d0af[_0x5da6('0xba')](_0x90950a,!0x0))return null;_0x5166c9=_0x5166c9[_0x5da6('0x91')](_0xb4d0af[_0x5da6('0xd3')])?_0x5166c9:_0xb4d0af[_0x5da6('0xd3')],_0x39d3f8=_0x39d3f8[_0x5da6('0xea')](_0xb4d0af[_0x5da6('0x69')])?_0x39d3f8:_0xb4d0af[_0x5da6('0x69')],_0x3233f6?_0xb4d0af['start'][_0x5da6('0x91')](_0x3233f6[_0x5da6('0x114')]()[_0x5da6('0xd3')])?(_0x3233f6['removeMarkers'](),_0x3233f6=_0x447bd0):_0x447bd0[_0x5da6('0xa7')]():_0x3233f6=_0x447bd0;}else{const _0x50bf2f=_0x90950a[_0x5da6('0x3f')](_0xb4d0af);this[_0x5da6('0xd0')](_0x447bd0,_0x50bf2f);}}const _0x467756=this[_0x5da6('0x75')]['plugins']['get']('Users')['me'],_0x21529f=_0xbfca54(),_0xd43721=_0x467756['id'];if(_0x3233f6)return this[_0x5da6('0xda')](_0x3233f6,this[_0x5da6('0xc6')]['createRange'](_0x5166c9,_0x39d3f8)),_0x3233f6;{const _0x2b88ea=this[_0x5da6('0x70')]({'id':_0x21529f,'type':_0x5da6('0x25')+_0x1745bb,'data':_0x483bd0,'createdAt':new Date(),'authorId':_0xd43721,'attributes':_0x55e9e6});return this[_0x5da6('0x35')](_0x5da6('0x25')+_0x1745bb,_0x21529f,_0xd43721,this[_0x5da6('0xc6')][_0x5da6('0x5c')](_0x5166c9,_0x39d3f8)),_0x2b88ea;}}[_0x5da6('0xe4')](_0x8774dd,_0x4aaac8,_0x412a86=[],_0x14eb9f=null,_0x2331f8={}){_0x4aaac8[_0x5da6('0x11')]||(_0x4aaac8['formatGroupId']=_0x4aaac8[_0x5da6('0x133')]);const _0x53aa22=_0x8774dd[0x0];_0x4aaac8[_0x5da6('0x3b')]=_0x53aa22['is'](_0x5da6('0xd2')),_0x14eb9f=_0x14eb9f||$t(_0x4aaac8);const _0x541a9c=_0x412a86[_0x5da6('0x51')](_0x4ca672=>Rt(_0x4ca672,this[_0x5da6('0xc6')])),_0x20e8b0=_0x53aa22['is'](_0x5da6('0xd2'))?_0x8774dd:_0x8774dd[_0x5da6('0x51')](_0x3be0ab=>Rt(_0x3be0ab,this[_0x5da6('0xc6')]));if(_0x5da6('0x0')===this[_0x5da6('0xb4')]){const _0x83f83f=this[_0x5da6('0x9c')][_0x5da6('0xab')](_0x5da6('0xcb'),_0x14eb9f,_0x5da6('0xbb'));return this['forceDefaultExecution'](()=>_0x83f83f(_0x20e8b0,_0x4aaac8,_0x2331f8)),null;}_0x541a9c[_0x5da6('0xa8')](..._0x20e8b0);let _0xeafa41=!0x0;for(const _0x4aede2 of _0x541a9c)if(!this[_0x5da6('0x36')](_0x4aede2)){_0xeafa41=!0x1;break;}if(_0xeafa41&&_0x5da6('0xb5')!==this[_0x5da6('0xb4')]){const _0x4a866a=this[_0x5da6('0x9c')][_0x5da6('0xab')]('formatBlock',_0x14eb9f,_0x5da6('0xbb'));return this[_0x5da6('0xb3')](()=>_0x4a866a(_0x20e8b0,_0x4aaac8,_0x2331f8)),null;}const _0x57b1be=this[_0x5da6('0x75')][_0x5da6('0x5')][_0x5da6('0xbc')](_0x5da6('0xbd'))['me'];for(const _0x5718fa of this[_0x5da6('0x83')]()){if(_0x5718fa[_0x5da6('0x13b')]['id']!=_0x57b1be['id'])continue;if('formatBlock'!=_0x5718fa[_0x5da6('0xd8')]||_0x5718fa[_0x5da6('0x9a')]['formatGroupId']!=_0x4aaac8[_0x5da6('0x11')])continue;const _0x1dc835=_0x5718fa[_0x5da6('0x92')]==_0x14eb9f;for(let _0x401402=0x0;_0x401402<_0x20e8b0[_0x5da6('0x90')];_0x401402++){const _0x170ec4=_0x20e8b0[_0x401402];for(const _0x38dea9 of _0x5718fa[_0x5da6('0x66')]()){const _0x42d2e4=_0x38dea9[_0x5da6('0x13d')]();if(_0x170ec4[_0x5da6('0x4a')](_0x42d2e4)){_0x1dc835?(_0x20e8b0[_0x5da6('0x16')](_0x401402,0x1),_0x401402--):_0x5718fa[_0x5da6('0x26')](_0x38dea9[_0x5da6('0x80')]);break;}}}}if(0x0==_0x20e8b0[_0x5da6('0x90')])return null;const _0x3746ee=this['_suggestionFactory'][_0x5da6('0xab')](_0x5da6('0xcb'),_0x14eb9f,_0x5da6('0x73'));for(const _0xdcbda7 of this['getSuggestions']())if(_0xdcbda7[_0x5da6('0x13b')]['id']==_0x57b1be['id']&&'formatBlock'==_0xdcbda7['type']&&_0xdcbda7[_0x5da6('0x9a')][_0x5da6('0x11')]==_0x4aaac8[_0x5da6('0x11')]&&_0xdcbda7['subType']==_0x14eb9f&&(_0x3746ee(_0xdcbda7[_0x5da6('0x109')](),_0x20e8b0)||_0x3746ee(_0x20e8b0,_0xdcbda7[_0x5da6('0x109')]()))){for(const _0x56b5fc of _0x20e8b0)_0xdcbda7[_0x5da6('0xf')](_0x56b5fc);return _0xdcbda7;}const _0x3a665d=_0xbfca54(),_0x49a0af=_0x57b1be['id'],_0x15ad6b='formatBlock:'+_0x14eb9f,_0x2bf542=this['_setSuggestionData']({'id':_0x3a665d,'type':_0x15ad6b,'data':_0x4aaac8,'createdAt':new Date(),'authorId':_0x49a0af,'attributes':_0x2331f8});for(const _0x36bbd2 of _0x20e8b0)this[_0x5da6('0x35')](_0x15ad6b,_0x3a665d,_0x49a0af,_0x36bbd2,_0x1cc1e4['getMultiRangeId']());return _0x2bf542;}[_0x5da6('0xa4')](_0x55b8ba,_0x1d699d=null,_0x2f8286={}){if(_0x55b8ba[_0x5da6('0xac')])return null;const _0xbec752=this[_0x5da6('0x75')]['plugins'][_0x5da6('0xbc')]('Users')['me'],_0x2d1149=new _0xf16d0d(_0x55b8ba[_0x5da6('0xd3')],_0x55b8ba['end']);for(const {suggestion:_0x406969,meta:_0x392560}of this[_0x5da6('0x13c')](_0x2d1149,_0x5da6('0x89')))if(_0x392560[_0x5da6('0x11e')]&&!_0x392560[_0x5da6('0x76')]){if(_0x406969[_0x5da6('0x6d')]){const _0x594bd1=_0x406969[_0x5da6('0x109')]()[_0x5da6('0x33')](_0x6de158=>_0x5da6('0xee')!=_0x6de158[_0x5da6('0xef')][_0x5da6('0xfc')]);_0x594bd1[_0x5da6('0x126')](_0x1a98e8=>_0x2d1149[_0x5da6('0xba')](_0x1a98e8,!0x0))&&_0x406969[_0x5da6('0xfb')]();if(_0x594bd1[_0x5da6('0x12')](_0x1809ec=>_0x1809ec[_0x5da6('0xba')](_0x2d1149,!0x0))){const _0x18916a=this[_0x5da6('0x9c')][_0x5da6('0xab')]('deletion',_0x1d699d,_0x5da6('0xbb'));return this[_0x5da6('0xb3')](()=>_0x18916a([_0x2d1149],null,_0x2f8286)),null;}}else{const _0x2b48a9=_0x2d1149[_0x5da6('0x3f')](_0x406969[_0x5da6('0x114')]());null!==_0x2b48a9&&_0x406969[_0x5da6('0xb2')]([_0x2b48a9],null,_0x2f8286);}}if(_0x2d1149[_0x5da6('0x110')](),_0x2d1149[_0x5da6('0xac')]||_0x5da6('0xee')==_0x2d1149[_0x5da6('0xef')][_0x5da6('0xfc')])return null;let _0x1d9f4a=null,_0x3b1803=_0x2d1149[_0x5da6('0xd3')],_0x2564ee=_0x2d1149[_0x5da6('0x69')];for(const {suggestion:_0x36ef43,meta:_0x2aefb9}of this[_0x5da6('0x13c')](_0x2d1149,_0x5da6('0x64')))if(_0x2aefb9[_0x5da6('0x11e')]){if(_0x36ef43[_0x5da6('0x6d')]&&this[_0x5da6('0x10e')]){let _0x218205=!0x0;for(const _0x402ffc of _0x36ef43[_0x5da6('0x109')]()){if(_0x402ffc[_0x5da6('0xba')](_0x2d1149,!0x0))return _0x36ef43;_0x2d1149[_0x5da6('0xba')](_0x402ffc)||(_0x218205=!0x1);}_0x218205&&_0x36ef43['discard']();}else{const _0x5c9019=_0x36ef43[_0x5da6('0x114')]();if(_0x5c9019[_0x5da6('0xba')](_0x2d1149,!0x0)){if(!this[_0x5da6('0x10e')]&&_0x2aefb9[_0x5da6('0x65')])continue;return _0x36ef43;}_0x3b1803=_0x3b1803['isBefore'](_0x5c9019[_0x5da6('0xd3')])?_0x3b1803:_0x5c9019[_0x5da6('0xd3')],_0x2564ee=_0x2564ee[_0x5da6('0xea')](_0x5c9019[_0x5da6('0x69')])?_0x2564ee:_0x5c9019[_0x5da6('0x69')],_0x1d9f4a?_0x5c9019[_0x5da6('0xd3')][_0x5da6('0x91')](_0x1d9f4a[_0x5da6('0x114')]()[_0x5da6('0xd3')])?(_0x1d9f4a['removeMarkers'](),_0x1d9f4a=_0x36ef43):_0x36ef43[_0x5da6('0xa7')]():_0x1d9f4a=_0x36ef43;}}if(_0x1d9f4a)return this['_setSuggestionRange'](_0x1d9f4a,this[_0x5da6('0xc6')][_0x5da6('0x5c')](_0x3b1803,_0x2564ee)),_0x1d9f4a;{const _0x14125d=_0xbfca54(),_0x47c589=this['_model'][_0x5da6('0x5c')](_0x3b1803,_0x2564ee),_0x17e053=_0xbec752['id'],_0x3f0683=_0x1d699d?_0x5da6('0x30')+_0x1d699d:'deletion',_0x4ff040=this[_0x5da6('0x70')]({'id':_0x14125d,'type':_0x3f0683,'createdAt':new Date(),'authorId':_0x17e053,'attributes':_0x2f8286});return this['_addSuggestionMarker'](_0x3f0683,_0x14125d,_0x17e053,_0x47c589),_0x4ff040;}}[_0x5da6('0xc2')](_0x126906,_0x2053e6=_0x5da6('0x87'),_0x4bfb9f={}){const _0x14388c=this[_0x5da6('0x75')][_0x5da6('0x5')]['get'](_0x5da6('0xbd'))['me'],_0x41d351=_0x126906[_0x5da6('0x51')](_0x50d3f6=>new _0xf16d0d(_0x50d3f6[_0x5da6('0xd3')],_0x50d3f6[_0x5da6('0x69')])),_0x16a05f=new Set();for(const _0x3dcc1e of _0x41d351)for(const {suggestion:_0x4361ac,meta:_0x1676d6}of this[_0x5da6('0x13c')](_0x3dcc1e,_0x5da6('0x89')))_0x1676d6[_0x5da6('0x11e')]&&!_0x1676d6[_0x5da6('0x76')]&&_0x16a05f['add'](_0x4361ac);for(const _0xc929ea of _0x16a05f)if(_0xc929ea[_0x5da6('0x6d')]){const _0x1fe03a=_0xc929ea[_0x5da6('0x109')]();(!_0xc929ea[_0x5da6('0x118')]||!_0xc929ea['attributes'][_0x5da6('0x141')])&&(_0x1fe03a[_0x5da6('0x126')](_0x4f98ee=>_0x41d351['some'](_0x49fdbe=>_0x49fdbe['containsRange'](_0x4f98ee,!0x0)))&&_0xc929ea[_0x5da6('0xfb')]());if(_0x41d351[_0x5da6('0x126')](_0x40ee31=>_0x1fe03a[_0x5da6('0x12')](_0x1c89b6=>_0x1c89b6[_0x5da6('0xba')](_0x40ee31,!0x0)))){const _0x2d1a40=this[_0x5da6('0x9c')][_0x5da6('0xab')]('deletion',_0x2053e6,_0x5da6('0xbb'));return this['forceDefaultExecution'](()=>_0x2d1a40(_0x126906,null,_0x4bfb9f)),null;}}else{const _0x2f800b=_0xc929ea[_0x5da6('0x114')]();_0x41d351[_0x5da6('0x12')](_0x4b8257=>_0x4b8257[_0x5da6('0xba')](_0x2f800b,!0x0))&&_0xc929ea[_0x5da6('0xfb')]();if(_0x41d351[_0x5da6('0x126')](_0x56dec5=>_0x2f800b['containsRange'](_0x56dec5,!0x0))){const _0x38ba79=this[_0x5da6('0x9c')][_0x5da6('0xab')]('deletion',_0x2053e6,_0x5da6('0xbb'));return this['forceDefaultExecution'](()=>_0x38ba79(_0x41d351,null,_0x4bfb9f)),null;}}const _0x520362=this[_0x5da6('0x9c')][_0x5da6('0xab')](_0x5da6('0x64'),_0x2053e6,'join');let _0x5749ea=null;for(const _0x56f222 of this['getSuggestions']())if(_0x56f222[_0x5da6('0x13b')]['id']==_0x14388c['id']&&_0x56f222[_0x5da6('0x12d')]&&'deletion'==_0x56f222['type']&&_0x56f222[_0x5da6('0x92')]==_0x2053e6&&(_0x520362(_0x56f222[_0x5da6('0x109')](),_0x41d351)||_0x520362(_0x41d351,_0x56f222['getRanges']()))){if(_0x5749ea){if(_0x56f222[_0x5da6('0x14')]&&_0x56f222[_0x5da6('0x14')][_0x5da6('0x90')])continue;for(const _0x210a0a of _0x56f222[_0x5da6('0x109')]())_0x5749ea[_0x5da6('0xf5')](_0x210a0a)||_0x5749ea[_0x5da6('0xf')](_0x210a0a);_0x56f222[_0x5da6('0xa7')]();}else{_0x5749ea=_0x56f222;for(const _0x5746c2 of _0x41d351)_0x56f222[_0x5da6('0xf5')](_0x5746c2)||_0x56f222['addRange'](_0x5746c2);}}if(_0x5749ea)return _0x5749ea;_0x16a05f[_0x5da6('0x37')]();for(const _0x5bb346 of _0x41d351)for(const {suggestion:_0x5b78cf,meta:_0x2844a4}of this[_0x5da6('0x13c')](_0x5bb346,_0x5da6('0x64')))_0x2844a4[_0x5da6('0x11e')]&&_0x16a05f[_0x5da6('0x7e')](_0x5b78cf);for(const _0xf21704 of _0x16a05f){const _0x5e2fd4=_0xf21704[_0x5da6('0x109')]();if(!_0x4bfb9f||!_0x4bfb9f['skipNestingCheck']){if(_0x41d351['every'](_0x1459f0=>_0x5e2fd4[_0x5da6('0x12')](_0x3b0ac8=>_0x3b0ac8[_0x5da6('0xba')](_0x1459f0,!0x0))))return _0xf21704;}(!_0xf21704[_0x5da6('0x118')]||!_0xf21704['attributes'][_0x5da6('0x141')])&&(_0x5e2fd4['every'](_0xea310b=>_0x41d351[_0x5da6('0x12')](_0x18164a=>_0x18164a[_0x5da6('0xba')](_0xea310b,!0x0)))&&_0xf21704[_0x5da6('0xfb')]());}const _0x477c5b=_0xbfca54(),_0x119fed=_0x14388c['id'],_0x3261b5=_0x5da6('0x30')+_0x2053e6,_0x15b27a=this[_0x5da6('0x70')]({'id':_0x477c5b,'type':_0x3261b5,'createdAt':new Date(),'authorId':_0x119fed,'attributes':_0x4bfb9f});for(const _0x5a7632 of _0x41d351)_0x5a7632[_0x5da6('0x110')](),_0x5a7632[_0x5da6('0xac')]||_0x5da6('0xee')==_0x5a7632[_0x5da6('0xef')][_0x5da6('0xfc')]||this[_0x5da6('0x35')](_0x3261b5,_0x477c5b,_0x119fed,_0x5a7632,_0x1cc1e4[_0x5da6('0x55')]());return _0x15b27a;}[_0x5da6('0xda')](_0x469771,_0x4acd99){const _0x372815=_0x469771[_0x5da6('0x10c')]();this[_0x5da6('0xc6')][_0x5da6('0xde')](_0x19ae04=>{_0x19ae04[_0x5da6('0xb9')](_0x372815,{'range':_0x4acd99});});}[_0x5da6('0x139')](_0x1085b4){const _0x2a32b1=_0x1085b4['id'],_0x37adc6=this[_0x5da6('0x75')][_0x5da6('0xe7')][_0x5da6('0xbc')]('collaboration.channelId');this[_0x5da6('0xb8')][_0x5da6('0xe8')](_0x2a32b1)||this['_commentsRepository'][_0x5da6('0xb0')]({'channelId':_0x37adc6,'threadId':_0x2a32b1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x37f30c=this[_0x5da6('0xb8')][_0x5da6('0x5d')](_0x2a32b1);_0x37f30c[_0x5da6('0x7b')]('isRemovable'),_0x37f30c[_0x5da6('0x142')]=!0x1,_0x1085b4[_0x5da6('0x14')]=_0x37f30c;}['_checkSuggestionCorrectness'](_0x5cff28,_0x1e8674,_0x50577b,_0x20280a){if(_0x5cff28['type']!=_0x1e8674||_0x5cff28['subType']!=_0x50577b||_0x5cff28['creator']['id']!=_0x20280a)throw this['editor'][_0x5da6('0xa6')](_0x5da6('0x7a')),new _0x149698('track-changes-suggestion-data-mismatch',this);}[_0x5da6('0xd0')](_0x5e0d85,_0x305331){const _0x11a9d9=_0x5e0d85[_0x5da6('0x114')]();if(_0x305331[_0x5da6('0x4a')](_0x11a9d9))_0x5e0d85[_0x5da6('0xa7')]();else{if(_0x11a9d9[_0x5da6('0xba')](_0x305331)){const _0x48e6f4=this[_0x5da6('0xc6')][_0x5da6('0x140')](_0x305331[_0x5da6('0xd3')][_0x5da6('0x98')],_0x5da6('0x69'));this['_setSuggestionRange'](_0x5e0d85,this[_0x5da6('0xc6')][_0x5da6('0x5c')](_0x11a9d9[_0x5da6('0xd3')],_0x48e6f4));const _0x121633=_0xbfca54(),_0x13d1e5=_0x5e0d85[_0x5da6('0xb6')]['id'],_0x2a6eec=_0x5e0d85[_0x5da6('0xd8')]+':'+_0x5e0d85[_0x5da6('0x92')];this['_setSuggestionData']({'id':_0x121633,'type':_0x2a6eec,'createdAt':new Date(),'authorId':_0x13d1e5,'data':_0x5e0d85[_0x5da6('0x9a')],'attributes':_0x5e0d85[_0x5da6('0x118')]});const _0x4b4051=this['_model']['createPositionAt'](_0x305331[_0x5da6('0x69')][_0x5da6('0xaf')],_0x5da6('0xaa')),_0x3154ba=this[_0x5da6('0xc6')][_0x5da6('0x5c')](_0x4b4051,_0x11a9d9[_0x5da6('0x69')]);this['_addSuggestionMarker'](_0x2a6eec,_0x121633,_0x13d1e5,_0x3154ba);}else{if(_0x11a9d9[_0x5da6('0x4f')](_0x305331[_0x5da6('0xd3')])){const _0x2d3dff=this[_0x5da6('0xc6')][_0x5da6('0x140')](_0x305331[_0x5da6('0xd3')][_0x5da6('0x98')],_0x5da6('0x69'));this['_setSuggestionRange'](_0x5e0d85,this[_0x5da6('0xc6')]['createRange'](_0x11a9d9[_0x5da6('0xd3')],_0x2d3dff));}else{const _0xdc2837=this[_0x5da6('0xc6')][_0x5da6('0x140')](_0x305331[_0x5da6('0x69')][_0x5da6('0xaf')],_0x5da6('0xaa'));this[_0x5da6('0xda')](_0x5e0d85,this['_model']['createRange'](_0xdc2837,_0x11a9d9[_0x5da6('0x69')]));}}}}['_rangeIsInLocalUserInsertion'](_0x4a254a){for(const {suggestion:_0x5bd19d,meta:_0xec03c}of this[_0x5da6('0x13c')](_0x4a254a,_0x5da6('0x89'))){if(!_0xec03c['isOwn'])continue;const _0x71bd47=_0x5bd19d['getRanges']();for(const _0x212be8 of _0x71bd47)if(!_0x4a254a[_0x5da6('0x8c')](_0x212be8)[_0x5da6('0x90')])return!0x0;}return!0x1;}[_0x5da6('0x2a')](_0x8e93f7){const _0x2a9d2c=this[_0x5da6('0x75')][_0x5da6('0x5')][_0x5da6('0xbc')](_0x5da6('0xbd'))[_0x5da6('0x6e')](_0x8e93f7);if(!_0x2a9d2c)throw new _0x149698(_0x5da6('0x147'),this);return _0x2a9d2c;}[_0x5da6('0x9d')](_0xe01b41){const _0x347a1d=this[_0x5da6('0x75')][_0x5da6('0x5')][_0x5da6('0xbc')](_0x5da6('0xbd')),_0x28172b=_0x65e117(_0x5da6('0x81')+_0xe01b41),_0x3f7e6c=_0x347a1d[_0x5da6('0x6e')](_0x28172b);return _0x3f7e6c||_0x347a1d['addUser']({'id':_0x28172b,'name':_0xe01b41});}[_0x5da6('0xa')](_0x64bf0c,_0xce7f35,_0x1f570d,_0x5d10c5,_0x3d16d6){const _0x4a04e2=this[_0x5da6('0x2a')](_0x5d10c5),_0x383921=this[_0x5da6('0x9c')][_0x5da6('0x137')](_0x64bf0c,_0xce7f35,_0x1f570d,_0x4a04e2,_0x3d16d6,_0x3a05b7=>this[_0x5da6('0xdc')](_0x1f570d,{'attributes':_0x3a05b7}));return this[_0x5da6('0x8a')](_0x383921,'accept',()=>{this[_0x5da6('0xdc')](_0x1f570d,{'state':'accepted'});},{'priority':_0x5da6('0x48')}),this[_0x5da6('0x8a')](_0x383921,_0x5da6('0xfb'),()=>{this[_0x5da6('0xdc')](_0x1f570d,{'state':_0x5da6('0x2c')});},{'priority':_0x5da6('0x48')}),this['_suggestions'][_0x5da6('0xad')](_0x1f570d,_0x383921),this[_0x5da6('0xcc')][_0x5da6('0xad')](_0x383921,_0x5da6('0x8b')),_0x383921;}['_splitMarkerName'](_0x3ab9b1){const _0x58e589=_0x3ab9b1[_0x5da6('0x3')](':');return{'group':_0x58e589[0x0],'type':_0x58e589[0x1],'subType':_0x58e589[_0x5da6('0x90')]>=0x5?_0x58e589[0x2]:null,'id':_0x58e589[_0x5da6('0x90')]<0x5?_0x58e589[0x2]:_0x58e589[0x3],'authorId':_0x58e589[_0x5da6('0x90')]<0x5?_0x58e589[0x3]:_0x58e589[0x4],'markerCount':0x6==_0x58e589[_0x5da6('0x90')]?_0x58e589[0x5]:null};}[_0x5da6('0x5a')](_0x424809,_0x802da8,_0x524eee){const _0x5aeafb=_0x424809['getFirstRange'](),_0xb7df1=_0x5aeafb['start'],_0x26ec4c=_0x5aeafb[_0x5da6('0x69')];this[_0x5da6('0xda')](_0x424809,this['_model']['createRange'](_0xb7df1,_0x802da8));const _0x1cefa6=_0xbfca54(),_0x20e689=_0x424809['creator']['id'],_0x514dcd=_0x424809['type']+(_0x424809[_0x5da6('0x92')]?':'+_0x424809[_0x5da6('0x92')]:'');this[_0x5da6('0x70')]({'id':_0x1cefa6,'type':_0x514dcd,'createdAt':new Date(),'authorId':_0x20e689,'originalSuggestionId':_0x424809['id'],'attributes':_0x424809['attributes'],'data':_0x424809['data']}),_0x5da6('0xcb')==_0x424809['type']&&(_0x524eee=this[_0x5da6('0xc6')][_0x5da6('0xa0')](_0x524eee[_0x5da6('0xaf')])),this[_0x5da6('0x35')](_0x514dcd,_0x1cefa6,_0x20e689,this[_0x5da6('0xc6')][_0x5da6('0x5c')](_0x524eee,_0x26ec4c));}[_0x5da6('0x13c')](_0xe204a9,_0x444b49=null){const _0x4d1af4=[],_0x4aba4e=this['_model'][_0x5da6('0xd4')],_0xaaeb4e=this[_0x5da6('0x75')][_0x5da6('0x5')][_0x5da6('0xbc')](_0x5da6('0xbd'))['me'];for(const _0xe91285 of this[_0x5da6('0x83')]())if(_0xe91285[_0x5da6('0x12d')]&&(!_0x444b49||_0xe91285[_0x5da6('0xd8')]==_0x444b49))for(const _0x3d5ad0 of _0xe91285[_0x5da6('0x109')]()){const _0x4b60bb=_0xe204a9[_0x5da6('0xd3')][_0x5da6('0x4a')](_0x3d5ad0[_0x5da6('0x69')])||_0xe204a9[_0x5da6('0x69')][_0x5da6('0x4a')](_0x3d5ad0[_0x5da6('0xd3')]);if(_0x4b60bb||_0xe204a9[_0x5da6('0x3f')](_0x3d5ad0)){const _0x52c66b=_0xe204a9[_0x5da6('0xba')](_0x3d5ad0)&&Bt(_0x4aba4e,_0x3d5ad0[_0x5da6('0xd3')],_0xe204a9),_0x4d56fa=_0x3d5ad0[_0x5da6('0xba')](_0xe204a9)&&Bt(_0x4aba4e,_0xe204a9[_0x5da6('0xd3')],_0x3d5ad0);_0x4d1af4[_0x5da6('0xa8')]({'suggestion':_0xe91285,'meta':{'isOwn':_0xaaeb4e==_0xe91285[_0x5da6('0x13b')],'isNextTo':_0x4b60bb,'isInsideObject':_0x52c66b,'containsRangeInObject':_0x4d56fa}});break;}}return _0x4d1af4;}[_0x5da6('0x35')](_0x2791f5,_0x2e13fb,_0x409a37,_0x5a6ea2,_0x428cae){this['_model'][_0x5da6('0xde')](_0x2684ad=>{let _0x38fba6=_0x5da6('0x145')+_0x2791f5+':'+_0x2e13fb+':'+_0x409a37;_0x428cae&&(_0x38fba6=_0x38fba6+':'+_0x428cae),_0x2684ad['addMarker'](_0x38fba6,{'range':_0x5a6ea2,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5da6('0xca')](_0x2b6f8a){const _0x5b4c29=_0x2b6f8a[_0x5da6('0x46')],_0x3cb49f=_0x2b6f8a[_0x5da6('0x59')];_0x2b6f8a['previous']=null,null!=_0x5b4c29&&(_0x5b4c29[_0x5da6('0x59')]=null),_0x2b6f8a[_0x5da6('0x59')]=null,null!=_0x3cb49f&&(_0x3cb49f['previous']=null),_0x5da6('0x62')==this[_0x5da6('0xcc')]['get'](_0x2b6f8a)&&(this[_0x5da6('0xcc')][_0x5da6('0xad')](_0x2b6f8a,_0x5da6('0x1')),this[_0x5da6('0x9f')]('suggestionUnloaded',_0x2b6f8a,_0x5b4c29,_0x3cb49f));}[_0x5da6('0x70')](_0x405301){const _0x474d2e=_0x405301['id'],_0x3cd7d2=this['addSuggestionData'](_0x405301);if(this[_0x5da6('0x9e')]&&this[_0x5da6('0x9e')]['addSuggestion']){const _0x3bb213=this[_0x5da6('0x75')][_0x5da6('0x5')][_0x5da6('0xbc')](_0x5da6('0x134')),_0x5385f7=_0x3cd7d2['hasComments'],_0x49e93d=_0x3cd7d2[_0x5da6('0x92')]?_0x3cd7d2['type']+':'+_0x3cd7d2['subType']:_0x3cd7d2['type'],_0x131e90=this['editor'][_0x5da6('0xf8')],_0x409c64=_0x3bb213[_0x5da6('0x7e')](_0xf5e24f(_0x131e90,_0x5da6('0x42'))),_0x387032={'id':_0x474d2e,'type':_0x49e93d,'hasComments':_0x5385f7,'data':_0x405301[_0x5da6('0x9a')]||null,'originalSuggestionId':_0x405301[_0x5da6('0x119')]||null,'attributes':_0x3cd7d2[_0x5da6('0x118')]};this[_0x5da6('0x9e')]['addSuggestion'](_0x387032)['then'](_0x10e610=>{_0x3cd7d2['_saved']=!0x0,_0x3bb213[_0x5da6('0x146')](_0x409c64),_0x10e610&&_0x10e610[_0x5da6('0xbf')]&&(this[_0x5da6('0x12b')]['get'](_0x474d2e)[_0x5da6('0xbf')]=_0x10e610[_0x5da6('0xbf')]);})[_0x5da6('0x60')](_0x358cca=>{throw _0x2dac97(_0x5da6('0x7c')),this[_0x5da6('0x75')]['model'][_0x5da6('0xed')]({'isUndoable':!0x1},()=>{_0x3cd7d2[_0x5da6('0xfb')]();}),_0x3cd7d2[_0x5da6('0xcf')](),this[_0x5da6('0x12b')][_0x5da6('0xec')](_0x3cd7d2['id']),this[_0x5da6('0xcc')][_0x5da6('0xec')](_0x3cd7d2),_0x358cca;});}return _0x3cd7d2;}[_0x5da6('0xdc')](_0x7690f8,_0x22b505){const _0x485864=this['editor']['plugins'][_0x5da6('0xbc')](_0x5da6('0x134')),_0x4490d2=this[_0x5da6('0xf2')](_0x7690f8);if(this[_0x5da6('0x9e')]&&this[_0x5da6('0x9e')]['updateSuggestion']){if(_0x4490d2['_saved']){const _0x190eec=_0x485864['add'](_0xf5e24f(this[_0x5da6('0x75')][_0x5da6('0xf8')],_0x5da6('0x42')));this[_0x5da6('0x9e')]['updateSuggestion'](_0x7690f8,_0x22b505)[_0x5da6('0xfe')](()=>{_0x485864[_0x5da6('0x146')](_0x190eec);});}else _0x4490d2['on'](_0x5da6('0x88'),()=>{this[_0x5da6('0xdc')](_0x7690f8,_0x22b505);});}}[_0x5da6('0x132')](_0x4a9d4f){if(!this[_0x5da6('0x9e')]||!this[_0x5da6('0x9e')][_0x5da6('0xf2')])throw new _0x149698(_0x5da6('0x6a'),this);return this['_adapter'][_0x5da6('0xf2')](_0x4a9d4f);}[_0x5da6('0xb')](_0x234217){const {id:_0x40e237,type:_0x5a6c0c,subType:_0x20a357,authorId:_0x2d3a36}=this['_splitMarkerName'](_0x234217),_0x1b52fe=this[_0x5da6('0x12b')]['get'](_0x40e237)||this[_0x5da6('0xa')](_0x5a6c0c,_0x20a357,_0x40e237,_0x2d3a36,{});switch(this[_0x5da6('0x124')](_0x1b52fe,_0x5a6c0c,_0x20a357,_0x2d3a36),this[_0x5da6('0xcc')][_0x5da6('0xbc')](_0x1b52fe)){case _0x5da6('0x8b'):this[_0x5da6('0x132')](_0x40e237)[_0x5da6('0xfe')](_0x7ab4a9=>{let _0x18b84b=Promise[_0x5da6('0x11f')]();_0x7ab4a9[_0x5da6('0x3c')]&&(_0x18b84b=this['_commentsRepository'][_0x5da6('0xbe')]({'channelId':this[_0x5da6('0x75')][_0x5da6('0xe7')][_0x5da6('0xbc')]('collaboration.channelId'),'threadId':_0x40e237})),_0x18b84b['then'](()=>{this[_0x5da6('0x54')](_0x7ab4a9)[_0x5da6('0x78')]=!0x0;});}),this['_suggestionState'][_0x5da6('0xad')](_0x1b52fe,_0x5da6('0xdd'));break;case _0x5da6('0x1'):this[_0x5da6('0xdc')](_0x40e237,{'state':_0x5da6('0x63')});case _0x5da6('0x112'):this['_suggestionState'][_0x5da6('0xad')](_0x1b52fe,_0x5da6('0x62')),this[_0x5da6('0x9f')](_0x5da6('0xdb'),_0x1b52fe);break;case _0x5da6('0x62'):this[_0x5da6('0x9f')]('suggestionChanged',_0x1b52fe);}return _0x1b52fe['addMarkerName'](_0x234217),_0x1b52fe;}[_0x5da6('0x40')](_0x570d2d){const _0x5225b1=Array['from'](_0x570d2d)[_0x5da6('0x33')](_0x5c4025=>!_0x5c4025[_0x5da6('0x6d')]),_0x5dead7=this[_0x5da6('0x83')]({'skipNotAttached':!0x0})['filter'](_0x420685=>!_0x420685[_0x5da6('0x6d')]),_0x10bbef=_0x5dead7['filter'](_0x44a3e0=>!_0x570d2d['has'](_0x44a3e0)),_0x3cbeec=new Map(_0x5dead7[_0x5da6('0x51')](_0x4ddf4d=>[_0x4ddf4d,this['_suggestionFactory'][_0x5da6('0xab')](_0x4ddf4d[_0x5da6('0xd8')],_0x4ddf4d[_0x5da6('0x92')],_0x5da6('0xf1'))])),_0x35abc5=new Map(_0x5dead7[_0x5da6('0x51')](_0x2e0206=>[_0x2e0206,_0x2e0206[_0x5da6('0x114')]()])),_0x27c203=new Set(),_0x5279bd=new Set();for(let _0x27cbfb=0x0;_0x27cbfb<_0x5225b1[_0x5da6('0x90')];_0x27cbfb++)_0x374aca(_0x5225b1[_0x27cbfb],_0x5225b1,_0x27cbfb+0x1);for(let _0x3cee51=0x0;_0x3cee51<_0x5225b1[_0x5da6('0x90')];_0x3cee51++)_0x374aca(_0x5225b1[_0x3cee51],_0x10bbef,0x0);for(let _0x436263=0x0;_0x436263<_0x5225b1['length'];_0x436263++){const _0x58f54b=_0x5225b1[_0x436263];!_0x5279bd[_0x5da6('0x11d')](_0x58f54b)&&_0x58f54b['previous']&&(_0x58f54b[_0x5da6('0x46')][_0x5da6('0x59')]===_0x58f54b&&(_0x58f54b[_0x5da6('0x46')][_0x5da6('0x59')]=null),_0x58f54b[_0x5da6('0x46')]=null),!_0x27c203[_0x5da6('0x11d')](_0x58f54b)&&_0x58f54b['next']&&(_0x58f54b[_0x5da6('0x59')]['previous']===_0x58f54b&&(_0x58f54b[_0x5da6('0x59')][_0x5da6('0x46')]=null),_0x58f54b[_0x5da6('0x59')]=null);}function _0x374aca(_0x36c51a,_0x39cbd9,_0x55216b){for(let _0x3a61c5=_0x55216b;_0x3a61c5<_0x39cbd9[_0x5da6('0x90')];_0x3a61c5++){const _0x14a21d=_0x419601(_0x36c51a,_0x39cbd9[_0x3a61c5]);_0x14a21d&&(_0x14a21d[0x0][_0x5da6('0x59')]=_0x14a21d[0x1],_0x14a21d[0x1][_0x5da6('0x46')]=_0x14a21d[0x0],_0x27c203['add'](_0x14a21d[0x0]),_0x5279bd[_0x5da6('0x7e')](_0x14a21d[0x1]));}}function _0x419601(_0x3fbdcc,_0x35220d){if(_0x3fbdcc[_0x5da6('0x13b')]['id']!==_0x35220d[_0x5da6('0x13b')]['id'])return null;const _0x590b36=_0x3cbeec[_0x5da6('0xbc')](_0x3fbdcc)(_0x3fbdcc,_0x35220d,_0x35abc5['get'](_0x3fbdcc),_0x35abc5[_0x5da6('0xbc')](_0x35220d));if(!_0x590b36)return null;return _0x3cbeec[_0x5da6('0xbc')](_0x35220d)(_0x3fbdcc,_0x35220d,_0x35abc5[_0x5da6('0xbc')](_0x3fbdcc),_0x35abc5[_0x5da6('0xbc')](_0x35220d))?_0x590b36[0x1][_0x5da6('0x14')]&&_0x590b36[0x1]['commentThread'][_0x5da6('0x90')]?null:_0x590b36:null;}}[_0x5da6('0xff')](_0x5b6901){const _0x32ed42=Array['from'](_0x5b6901),_0x1f1a39=this[_0x5da6('0x83')]({'skipNotAttached':!0x0}),_0x12279f=_0x1f1a39['filter'](_0x37f68b=>!_0x5b6901[_0x5da6('0x11d')](_0x37f68b)),_0x61adb=new Map(_0x32ed42[_0x5da6('0x51')](_0x3fa284=>[_0x3fa284,this[_0x5da6('0x9c')][_0x5da6('0xab')](_0x3fa284[_0x5da6('0xd8')],_0x3fa284[_0x5da6('0x92')],_0x5da6('0x73'))])),_0x3ebedf=new Map(_0x1f1a39['map'](_0x346fe0=>[_0x346fe0,_0x346fe0[_0x5da6('0x109')]()]));for(let _0x284c02=0x0;_0x284c02<_0x32ed42[_0x5da6('0x90')];_0x284c02++){if(_0x17422b(this,_0x32ed42[_0x284c02],_0x32ed42,_0x284c02+0x1))return!0x0;}for(let _0x25f29b=0x0;_0x25f29b<_0x32ed42[_0x5da6('0x90')];_0x25f29b++){if(_0x17422b(this,_0x32ed42[_0x25f29b],_0x12279f,0x0))return!0x0;}return!0x1;function _0x17422b(_0x2e7401,_0x365bd0,_0x1e26bb,_0x1055e6){for(let _0x1e5528=_0x1055e6;_0x1e5528<_0x1e26bb[_0x5da6('0x90')];_0x1e5528++){const _0x58ddd6=_0x1e26bb[_0x1e5528];if(_0x58ddd6['type']!==_0x365bd0[_0x5da6('0xd8')]||_0x58ddd6[_0x5da6('0x13b')]['id']!==_0x365bd0[_0x5da6('0x13b')]['id']||_0x58ddd6[_0x5da6('0x92')]!==_0x365bd0[_0x5da6('0x92')])continue;const _0x3cc583=_0x61adb[_0x5da6('0xbc')](_0x365bd0),_0x5de4d7=_0x3ebedf[_0x5da6('0xbc')](_0x365bd0),_0x24c2b4=_0x3ebedf[_0x5da6('0xbc')](_0x58ddd6),_0x450be2=_0x365bd0['commentThread']&&_0x365bd0[_0x5da6('0x14')][_0x5da6('0x90')],_0x80165a=_0x58ddd6[_0x5da6('0x14')]&&_0x58ddd6[_0x5da6('0x14')][_0x5da6('0x90')];if(!_0x450be2&&_0x3cc583(_0x24c2b4,_0x5de4d7))return _0x2e7401[_0x5da6('0x103')](_0x58ddd6,_0x365bd0),_0x3ebedf[_0x5da6('0xec')](_0x365bd0),!0x0;if(!_0x80165a&&_0x3cc583(_0x5de4d7,_0x24c2b4))return _0x2e7401['_joinSuggestions'](_0x365bd0,_0x58ddd6),_0x3ebedf['delete'](_0x58ddd6),!0x0;}return!0x1;}}[_0x5da6('0x103')](_0x3769c2,_0x151b04){if(_0x3769c2[_0x5da6('0x6d')])for(const _0x19af43 of _0x151b04[_0x5da6('0x109')]())_0x3769c2[_0x5da6('0xf')](_0x19af43);else{const _0x34f615=_0x151b04[_0x5da6('0x114')]()[_0x5da6('0x69')];this[_0x5da6('0xda')](_0x3769c2,this[_0x5da6('0xc6')][_0x5da6('0x5c')](_0x3769c2[_0x5da6('0x114')]()[_0x5da6('0xd3')],_0x34f615));}_0x151b04[_0x5da6('0xa7')]();}}class Dt{constructor(_0x19b8b8){this[_0x5da6('0x34')]=_0x19b8b8,this[_0x5da6('0xc6')]=_0x19b8b8[_0x5da6('0x4c')],this[_0x5da6('0x38')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x5da6('0x23')]();}[_0x5da6('0x137')](_0x45e7e5,_0x3373e8,_0x10bd2c,_0x442886,_0x1bbca8,_0x1a82d9){return new _0x1cc1e4(this['_model'],{'type':_0x45e7e5,'subType':_0x3373e8,'id':_0x10bd2c,'author':_0x442886,'creator':_0x442886,'attributes':_0x1bbca8,'onAttributesChange':_0x1a82d9,'onAccept':(..._0x5abcb9)=>this['getSuggestionCallback'](_0x45e7e5,_0x3373e8,'accept')(..._0x5abcb9),'onDiscard':(..._0x33e4fc)=>this[_0x5da6('0xab')](_0x45e7e5,_0x3373e8,_0x5da6('0xfb'))(..._0x33e4fc)});}['registerCustomCallback'](_0x5d02c2,_0x11741f,_0x3fc700,_0x1e1c4a){const _0x430ef3=_0x5d02c2+':'+_0x11741f+':'+_0x3fc700;this[_0x5da6('0x38')]['set'](_0x430ef3,_0x1e1c4a);}[_0x5da6('0xab')](_0x501e28,_0x1ed674,_0x40c232){const _0x2983b3=_0x501e28+':'+_0x1ed674+':'+_0x40c232;return this[_0x5da6('0x38')]['get'](_0x2983b3)||this[_0x5da6('0xd')]['get'](_0x501e28+':'+_0x40c232);}[_0x5da6('0x23')](){const _0x26377f=()=>{},_0x22b03a=_0x39376a=>{_0x39376a[_0x5da6('0x67')]((_0xe6b4dc,_0x29b327)=>_0xe6b4dc[_0x5da6('0xd3')][_0x5da6('0x91')](_0x29b327[_0x5da6('0xd3')])?0x1:-0x1),this[_0x5da6('0xc6')]['change'](_0x4c823f=>{for(const _0x56d874 of _0x39376a){let _0x58f280;_0x58f280=_0x56d874[_0x5da6('0x69')]['isAtEnd']&&_0x56d874[_0x5da6('0x69')][_0x5da6('0xaf')]==_0x56d874['start']['nodeAfter']?_0x4c823f[_0x5da6('0x74')](_0x56d874[_0x5da6('0xd3')][_0x5da6('0x13e')],'on'):_0x4c823f['createSelection'](_0x56d874),this[_0x5da6('0xc6')][_0x5da6('0x28')](_0x58f280,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1b0108=(_0x5ba412,_0x667bf2)=>{this[_0x5da6('0xc6')][_0x5da6('0xde')](_0x1b59d2=>{const {commandName:_0x2a6614,commandParams:_0x15c69a=[]}=_0x667bf2,_0x24a650=_0x5ba412[_0x5da6('0x51')](_0x525b73=>(_t(_0x525b73)&&(_0x525b73=this[_0x5da6('0xc6')][_0x5da6('0x5c')](_0x525b73[_0x5da6('0x69')])),_0x525b73))['filter'](_0x24417e=>_0x5da6('0xee')!==_0x24417e[_0x5da6('0xef')][_0x5da6('0xfc')]);if(_0x24a650['length']<0x1)return;const _0xd4b810=Array[_0x5da6('0xd6')](this[_0x5da6('0xc6')][_0x5da6('0xe9')][_0x5da6('0x11c')][_0x5da6('0x109')]())[_0x5da6('0x51')](_0x57f739=>_0xf16d0d[_0x5da6('0x97')](_0x57f739));_0x1b59d2[_0x5da6('0x19')](_0x24a650);for(const _0x549ca4 of this[_0x5da6('0x34')]['commands'][_0x5da6('0x84')]())_0x549ca4[_0x5da6('0x71')]();_0x15c69a[_0x5da6('0xa8')]({'forceDefaultExecution':!0x0}),this[_0x5da6('0x34')][_0x5da6('0xc5')](_0x2a6614,..._0x15c69a);const _0x1aa13a=_0xd4b810[_0x5da6('0x33')](_0x3af9b3=>_0x5da6('0xee')!=_0x3af9b3['root'][_0x5da6('0xfc')]);_0x1aa13a['length']>0x0&&_0x1b59d2[_0x5da6('0x19')](_0x1aa13a);for(const _0x2347a3 of _0xd4b810)_0x2347a3['detach']();});},_0x2c4d1c=(_0x22c89b,_0x1ce074)=>0x1==_0x22c89b['length']&&0x1==_0x1ce074['length']&&_0x22c89b[0x0]['end'][_0x5da6('0x4a')](_0x1ce074[0x0][_0x5da6('0xd3')]),_0x3e03f9=(_0x7cd7cb,_0x412a7d,_0x367675,_0x450e96)=>xt(_0x7cd7cb,_0x412a7d,_0x367675,_0x450e96,this[_0x5da6('0xc6')])?[_0x7cd7cb,_0x412a7d]:xt(_0x412a7d,_0x7cd7cb,_0x450e96,_0x367675,this[_0x5da6('0xc6')])?[_0x412a7d,_0x7cd7cb]:null;this['_defaultCallbacks']['set'](_0x5da6('0x100'),_0x26377f),this['_defaultCallbacks'][_0x5da6('0xad')](_0x5da6('0x10a'),_0x22b03a),this[_0x5da6('0xd')][_0x5da6('0xad')](_0x5da6('0x45'),_0x2c4d1c),this[_0x5da6('0xd')][_0x5da6('0xad')]('insertion:chain',_0x3e03f9),this[_0x5da6('0xd')][_0x5da6('0xad')](_0x5da6('0x4d'),_0x22b03a),this[_0x5da6('0xd')][_0x5da6('0xad')](_0x5da6('0x8e'),_0x26377f),this[_0x5da6('0xd')][_0x5da6('0xad')]('deletion:join',_0x2c4d1c),this[_0x5da6('0xd')][_0x5da6('0xad')](_0x5da6('0x3d'),_0x3e03f9),this['_defaultCallbacks'][_0x5da6('0xad')](_0x5da6('0x72'),_0x1b0108),this[_0x5da6('0xd')]['set'](_0x5da6('0x2e'),_0x26377f),this[_0x5da6('0xd')]['set']('formatInline:join',_0x2c4d1c),this[_0x5da6('0xd')][_0x5da6('0xad')](_0x5da6('0x32'),_0x26377f),this[_0x5da6('0xd')][_0x5da6('0xad')](_0x5da6('0x12f'),_0x1b0108),this[_0x5da6('0xd')][_0x5da6('0xad')](_0x5da6('0xc4'),_0x26377f),this[_0x5da6('0xd')][_0x5da6('0xad')](_0x5da6('0x6f'),_0x2c4d1c),this[_0x5da6('0xd')][_0x5da6('0xad')](_0x5da6('0x39'),_0x26377f);}}function Bt(_0x551a08,_0x17a97a,_0x9c9b84){for(const _0x4cb8e0 of _0x17a97a[_0x5da6('0xaf')][_0x5da6('0x31')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4cb8e0['root']==_0x4cb8e0)return!0x1;if(!_0x9c9b84[_0x5da6('0xa2')](_0x4cb8e0))return!0x1;if(_0x551a08[_0x5da6('0x82')](_0x4cb8e0)||_0x551a08[_0x5da6('0xc')](_0x4cb8e0))return!0x0;}return!0x1;}function _t(_0x275848){return _0x275848['end'][_0x5da6('0xaf')]==_0x275848[_0x5da6('0xd3')][_0x5da6('0x13e')]&&_0x275848[_0x5da6('0x69')][_0x5da6('0xe2')];}function Mt(_0x4e63be,_0x469112,_0x1718c1,_0x10b06d){const _0x1f9c22=_0x10129f=>!_0x10129f[_0x5da6('0x22')]['is'](_0x5da6('0x8'))&&!_0x10b06d['isObject'](_0x10129f[_0x5da6('0x22')]),_0x108752=_0x4e63be[_0x5da6('0xd3')][_0x5da6('0xae')](_0x1f9c22),_0x17f959=_0x4e63be[_0x5da6('0x69')][_0x5da6('0xae')](_0x1f9c22,{'direction':_0x5da6('0x29')});return(!_0x4e63be[_0x5da6('0xd3')]['isEqual'](_0x108752)||!_0x4e63be['end']['isEqual'](_0x17f959))&&(_0x108752['isBefore'](_0x17f959)?_0x1718c1[_0x5da6('0xb9')](_0x469112,{'range':_0x1718c1[_0x5da6('0x5c')](_0x108752,_0x17f959)}):_0x1718c1[_0x5da6('0x26')](_0x469112),!0x0);}function $t(_0x291492){return _0x65e117(_0x291492);}function Nt(_0x3e2487){const _0x529357=_0x3e2487[_0x5da6('0xd3')]['nodeAfter'];return _0x529357&&_0x529357['is'](_0x5da6('0xe6'));}function Rt(_0x5ad674,_0xe7295a){const _0x11f185=_0xe7295a[_0x5da6('0xd4')]['isObject'](_0x5ad674)||_0xe7295a[_0x5da6('0xd4')][_0x5da6('0x68')](_0x5ad674);return _0xe7295a['createRange'](_0xe7295a['createPositionAt'](_0x5ad674,_0x5da6('0x8d')),_0x11f185?_0xe7295a[_0x5da6('0x11b')](_0x5ad674):_0xe7295a[_0x5da6('0x140')](_0x5ad674,_0x5da6('0x69')));}function xt(_0x3e5e7b,_0x433544,_0x3fe271,_0x45edc8,_0x52826b){if(_0x3fe271[_0x5da6('0x69')]['isEqual'](_0x45edc8[_0x5da6('0xd3')]))return!0x0;if(_0x3e5e7b['type']!=_0x433544['type'])return!0x1;if(!_0x3fe271[_0x5da6('0x69')][_0x5da6('0x125')](_0x45edc8[_0x5da6('0xd3')]))return!0x1;const _0x14475f=_0x52826b['createRange'](_0x3fe271[_0x5da6('0x69')],_0x45edc8[_0x5da6('0xd3')])[_0x5da6('0x61')]();for(const _0x5bc0af of _0x14475f)if([_0x5da6('0x53'),_0x5da6('0x107')][_0x5da6('0x102')](_0x5bc0af[_0x5da6('0xd8')])&&_0x52826b[_0x5da6('0xd4')][_0x5da6('0xc')](_0x5bc0af[_0x5da6('0x22')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xefea=['separator','unbind','isInContent','execute','length','getByInnerView','_destroyController','createAnnotationView','_viewToController','trackChanges','size','getDescriptions','CommentsRepository','EditorAnnotations','commands','remove','discardButton','button','discardSelectedSuggestions','type','define','editing','suggestion-','getMarkerNames','Discard\x20all\x20suggestions','filter','change:activeAnnotations','mainView','_bindAnnotationToEditors','listenTo','acceptSelectedSuggestions','some','add','buttonView','set','TrackChangesUI','Discard\x20all\x20selected\x20suggestions','TrackChangesEditing','map','init','suggestionChanged','acceptAllSuggestions','destroy','comments.maxCommentsWhenCollapsed','_initializeController','innerView','comments.editorConfig','descriptionParts','head','commentThread','reduce','config','hasSuggestion','CommentView','has','suggestionLoaded','previous','focus','_disableComments','value','_refreshActiveMarkers','trackChanges.SuggestionThreadView','_updateController','comments','view','arrowView','plugins','bind','componentFactory','keys','_handleSuggestionControllerDelayed','pluginName','model','_descriptionFactory','activeMarkers','Annotations','getSuggestion','isOn','CommentsUI','isDirty','change:previous','SuggestionThreadView','from','addComment','addSourceCollector','editor','_handleControllerBuffer','_suggestionToController','_annotationViews','discardAllSuggestions','acceptButton','trackChanges.disableComments','getAllAdjacentSuggestions','delete','comments.maxCommentCharsWhenCollapsed','get','getFirstRange','getRanges','createCommentThreadController','actionView','isEnabled','switchbutton','push','activeAnnotations','refreshSelectedViews','Accept\x20all\x20selected\x20suggestions','locale','toMany','commandName'];(function(_0x2b159c,_0xefea5e){const _0x5ee5ed=function(_0x337632){while(--_0x337632){_0x2b159c['push'](_0x2b159c['shift']());}};_0x5ee5ed(++_0xefea5e);}(_0xefea,0x119));const _0x5ee5=function(_0x2b159c,_0xefea5e){_0x2b159c=_0x2b159c-0x0;let _0x5ee5ed=_0xefea[_0x2b159c];return _0x5ee5ed;};import{Plugin as _0x4a00b1}from'ckeditor5/src/core';import{Collection as _0xb0859c}from'ckeditor5/src/utils';import{Model as _0x35e809,SplitButtonView as _0x390442,createDropdown as _0x5ecbce,addListToDropdown as _0x38c074}from'ckeditor5/src/ui';import{Users as _0x368dc9,getDateTimeFormatter as _0x5785a0,getAllMarkersDomElementsSorted as _0x444aff}from'ckeditor5-collaboration/src/collaboration-core';import _0xc3ade1 from'./trackchangesediting';import _0x1d5b55 from'./ui/suggestioncontroller';import _0x310e7c from'./ui/view/suggestionthreadview';import{getTranslation as _0x4692cd}from'./utils/common-translations';import _0x4252f4 from'../theme/icons/track-changes.svg';export default class d extends _0x4a00b1{static get['requires'](){return[_0xc3ade1,_0x368dc9,'CommentsRepository',_0x5ee5('0xc'),_0x5ee5('0x3b')];}static get[_0x5ee5('0x8')](){return _0x5ee5('0x51');}constructor(_0x485eae){super(_0x485eae),this[_0x5ee5('0x18')]=new Map(),this[_0x5ee5('0x36')]=new Map(),this['_annotationViews']=new Map(),this[_0x5ee5('0x17')]=new Map();const _0x46af4e=this['editor'][_0x5ee5('0x61')];_0x46af4e[_0x5ee5('0x42')](_0x5ee5('0x6b'),_0x310e7c),_0x46af4e['define'](_0x5ee5('0x1c'),!0x1),this[_0x5ee5('0x68')]=_0x46af4e[_0x5ee5('0x20')]('trackChanges.disableComments');}[_0x5ee5('0x7')](_0x2387d8,_0x505cdb){0x0===this[_0x5ee5('0x17')][_0x5ee5('0x38')]&&setTimeout(()=>{for(const [_0x509ff1,_0x4f3783]of this[_0x5ee5('0x17')]){const _0x864d80=this['_suggestionToController']['has'](_0x509ff1);_0x864d80||_0x4f3783?_0x864d80&&_0x4f3783&&this[_0x5ee5('0x34')](_0x509ff1):this[_0x5ee5('0x5a')](_0x509ff1);}this['editor']['plugins']['get'](_0x5ee5('0x3b'))[_0x5ee5('0x29')](),this[_0x5ee5('0x6a')](),this[_0x5ee5('0x17')]['clear']();},0xa),this[_0x5ee5('0x17')][_0x5ee5('0x50')](_0x2387d8,_0x505cdb);}[_0x5ee5('0x55')](){const _0x4e6f4c=this['editor'],_0x24f54d=_0x4e6f4c['plugins'][_0x5ee5('0x20')]('TrackChangesEditing'),_0x12c695=_0x4e6f4c[_0x5ee5('0x3')]['get']('Annotations'),_0x4a277f=_0x4e6f4c[_0x5ee5('0x3')][_0x5ee5('0x20')]('EditorAnnotations'),_0x45697c=_0x4e6f4c[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x3a'));_0x4e6f4c['ui'][_0x5ee5('0x5')]['add']('trackChanges',_0x13bf5f=>this['_createUIButton'](_0x13bf5f)),_0x4a277f[_0x5ee5('0x15')](()=>{const _0x320c88=[];for(const [_0x3a765b,_0x33ec87]of Array[_0x5ee5('0x13')](this[_0x5ee5('0x18')])){const _0x346b39=_0x3a765b['getAllAdjacentSuggestions'](),_0x4d119e=[];for(const _0x44c8c9 of _0x346b39){if(!_0x44c8c9[_0x5ee5('0x30')])continue;if(_0x44c8c9['isMultiRange']){_0x4d119e[_0x5ee5('0x27')](..._0x44c8c9[_0x5ee5('0x22')]());continue;}const _0xb49f81=_0x44c8c9[_0x5ee5('0x21')]();if(_0x4d119e[_0x5ee5('0x32')]>0x0){const _0x56232c=_0x4d119e[0x0]['getJoined'](_0xb49f81);if(_0x56232c){_0x4d119e[0x0]=_0x56232c;continue;}}_0x4d119e['push'](_0xb49f81);}_0x320c88['push']([_0x33ec87[_0x5ee5('0x1')],_0x4d119e]);}return _0x320c88;}),this[_0x5ee5('0x4b')](_0x24f54d,_0x5ee5('0x65'),(_0x4e63a7,_0x11bf33)=>{this['listenTo'](_0x11bf33,_0x5ee5('0x11'),(_0x48ebb1,_0x35cf12,_0x3e0b83,_0x568eb4)=>{_0x11bf33['isInContent']&&(null==_0x3e0b83?(this['_updateController'](_0x568eb4[_0x5ee5('0x5e')]),this[_0x5ee5('0x7')](_0x11bf33,!0x1)):(this[_0x5ee5('0x6c')](_0x3e0b83[_0x5ee5('0x5e')]),this[_0x5ee5('0x7')](_0x11bf33,!0x0)));}),null===_0x11bf33[_0x5ee5('0x66')]?this[_0x5ee5('0x7')](_0x11bf33,!0x1):this[_0x5ee5('0x6c')](_0x11bf33[_0x5ee5('0x5e')]);}),this[_0x5ee5('0x4b')](_0x24f54d,'suggestionUnloaded',(_0x870f28,_0x27797b,_0x252b71)=>{this['stopListening'](_0x27797b,'change:previous'),this[_0x5ee5('0x17')][_0x5ee5('0x1e')](_0x27797b);const _0x2b4c85=_0x252b71?_0x252b71['head']:_0x27797b,_0x3e5920=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2b4c85);null!==_0x252b71&&this[_0x5ee5('0x6c')](_0x2b4c85),null===_0x252b71&&_0x3e5920&&this[_0x5ee5('0x34')](_0x27797b);}),this[_0x5ee5('0x4b')](_0x24f54d,_0x5ee5('0x56'),(_0x550b72,_0x3423e2)=>{this['_updateController'](_0x3423e2);}),this[_0x5ee5('0x4b')](_0x12c695,_0x5ee5('0x48'),()=>{this[_0x5ee5('0x6a')]();}),this[_0x5ee5('0x4b')](_0x45697c,_0x5ee5('0x14'),(_0x146596,{threadId:_0x46d6c8,isFromAdapter:_0xb08a27})=>{if(_0xb08a27||!_0x24f54d[_0x5ee5('0x62')](_0x46d6c8))return;const _0x2d8dcf=_0x24f54d[_0x5ee5('0xd')](_0x46d6c8);this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2d8dcf)[_0x5ee5('0x1')][_0x5ee5('0x67')]();},{'priority':'lowest'});}[_0x5ee5('0x6a')](){const _0x266067=this[_0x5ee5('0x16')][_0x5ee5('0x3')][_0x5ee5('0x20')]('Annotations'),_0x4ef8e0=this[_0x5ee5('0x16')]['plugins']['get'](_0x5ee5('0x53')),_0x5c0f51=Array['from'](_0x266067[_0x5ee5('0x28')],_0x4f7275=>_0x4f7275[_0x5ee5('0x5b')])[_0x5ee5('0x47')](_0x5344cf=>this[_0x5ee5('0x36')][_0x5ee5('0x64')](_0x5344cf)),_0x39e57c=[];for(const _0x507490 of _0x5c0f51){const _0x3af8f4=this[_0x5ee5('0x36')]['get'](_0x507490)[_0x5ee5('0x9')][_0x5ee5('0x1d')]();_0x39e57c[_0x5ee5('0x27')](..._0x3af8f4[_0x5ee5('0x60')]((_0x4043a9,_0x351244)=>[..._0x4043a9,..._0x351244[_0x5ee5('0x45')]()],[]));}_0x4ef8e0[_0x5ee5('0xb')]=_0x39e57c;}['_createUIButton'](_0x253fd7){const _0x471934=_0x5ecbce(_0x253fd7,_0x390442),_0x17ac0e=this[_0x5ee5('0x16')][_0x5ee5('0x3c')][_0x5ee5('0x20')]('trackChanges'),_0x428eb8=_0x4692cd(_0x253fd7,'Track\x20changes');_0x471934['buttonView']['set']({'tooltip':_0x428eb8,'label':_0x428eb8,'icon':_0x4252f4}),_0x471934[_0x5ee5('0x4f')][_0x5ee5('0x4')](_0x5ee5('0xe'))['to'](_0x17ac0e,_0x5ee5('0x69')),_0x471934[_0x5ee5('0x4f')]['on']('execute',()=>{_0x17ac0e[_0x5ee5('0x31')](),this[_0x5ee5('0x16')][_0x5ee5('0x43')][_0x5ee5('0x1')][_0x5ee5('0x67')]();});const _0x3cc075=new _0xb0859c(),_0x1dfc9b=[{'type':_0x5ee5('0x26'),'model':{'withText':!0x0,'label':_0x428eb8,'commandName':_0x5ee5('0x37')}},{'type':_0x5ee5('0x2e')},{'type':_0x5ee5('0x3f'),'model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,'Accept\x20all\x20suggestions'),'commandName':_0x5ee5('0x57')}},{'type':'button','model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x2a')),'commandName':_0x5ee5('0x4c')}},{'type':'button','model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x46')),'commandName':_0x5ee5('0x1a')}},{'type':_0x5ee5('0x3f'),'model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x52')),'commandName':_0x5ee5('0x40')}}];for(const _0x1ee228 of _0x1dfc9b){let _0x2cb19d={'type':_0x5ee5('0x2e')};if(_0x1ee228['model']){const _0x55925a=new _0x35e809(_0x1ee228[_0x5ee5('0x9')]),_0x334427=this['editor'][_0x5ee5('0x3c')][_0x5ee5('0x20')](_0x55925a[_0x5ee5('0x2d')]);_0x55925a[_0x5ee5('0x4')](_0x5ee5('0xe'),_0x5ee5('0x25'))['to'](_0x334427,_0x5ee5('0x69'),_0x5ee5('0x25')),_0x2cb19d={'type':_0x1ee228['type'],'model':_0x55925a};}_0x3cc075[_0x5ee5('0x4e')](_0x2cb19d);}_0x38c074(_0x471934,_0x3cc075);const _0x4dc0f9=_0x1dfc9b[_0x5ee5('0x47')](_0x32077d=>null!=_0x32077d['model'])[_0x5ee5('0x54')](_0x2931f6=>this[_0x5ee5('0x16')][_0x5ee5('0x3c')]['get'](_0x2931f6[_0x5ee5('0x9')]['commandName'])),_0x29e2e9=_0x471934[_0x5ee5('0x4f')];return _0x29e2e9[_0x5ee5('0x24')][_0x5ee5('0x2f')](_0x5ee5('0x25')),_0x29e2e9['arrowView']['unbind'](_0x5ee5('0x25')),_0x29e2e9[_0x5ee5('0x24')][_0x5ee5('0x4')](_0x5ee5('0x25'))['to'](_0x17ac0e,_0x5ee5('0x25')),_0x29e2e9[_0x5ee5('0x2')][_0x5ee5('0x4')](_0x5ee5('0x25'))[_0x5ee5('0x2c')](_0x4dc0f9,_0x5ee5('0x25'),(..._0x3570a4)=>_0x3570a4[_0x5ee5('0x4d')](_0x3c5022=>_0x3c5022)),_0x471934['on']('execute',_0x68c00a=>{this[_0x5ee5('0x16')][_0x5ee5('0x31')](_0x68c00a['source']['commandName']),this[_0x5ee5('0x16')]['editing'][_0x5ee5('0x1')][_0x5ee5('0x67')]();}),_0x471934;}[_0x5ee5('0x5a')](_0x4edd9d){const _0xee818d=this['editor'],_0x334d01=_0xee818d[_0x5ee5('0x61')],_0x5d5a4e=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xc')),_0xf0eec9=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x3a')),_0x264889=_0xee818d['plugins']['get'](_0x5ee5('0x3b')),_0x27cbb8=_0xee818d[_0x5ee5('0x3')]['get'](_0x368dc9)['me'],_0x22b969=_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x37'))[_0x5ee5('0x12')],{CommentsListView:_0x505f6a,CommentThreadInputView:_0x296bbb}=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xf'));let _0x188b11,_0x16a607;this['_annotationViews'][_0x5ee5('0x64')](_0x4edd9d['id'])?(_0x16a607=this[_0x5ee5('0x19')][_0x5ee5('0x20')](_0x4edd9d['id']),_0x188b11=_0x16a607[_0x5ee5('0x49')]):(_0x188b11=new _0x22b969(_0xee818d['locale'],_0x4edd9d,_0x27cbb8,{'disableComments':this[_0x5ee5('0x68')],'editorConfig':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x5c')),'maxCommentsWhenCollapsed':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x59')),'maxThreadTotalWeight':_0x334d01[_0x5ee5('0x20')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x1f')),'formatDateTime':_0x5785a0(_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x2b'))),'CommentView':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x0'))[_0x5ee5('0x63')],'CommentsListView':_0x505f6a,'CommentThreadInputView':_0x296bbb}),_0x188b11[_0x5ee5('0x1b')]['on'](_0x5ee5('0x31'),()=>{_0xee818d[_0x5ee5('0x43')]['view'][_0x5ee5('0x67')]();}),_0x188b11[_0x5ee5('0x3e')]['on']('execute',()=>{_0xee818d[_0x5ee5('0x43')]['view'][_0x5ee5('0x67')]();}),_0x16a607=_0x5d5a4e[_0x5ee5('0x35')](this['editor'][_0x5ee5('0x2b')],_0x188b11),_0x16a607['bind'](_0x5ee5('0x10'))['to'](_0x188b11,_0x5ee5('0x10')),_0x16a607[_0x5ee5('0x4')](_0x5ee5('0x32'))['to'](_0x188b11),_0x16a607[_0x5ee5('0x4')](_0x5ee5('0x41'))['to'](_0x188b11,_0x5ee5('0x41'),_0x2dc0aa=>'suggestion-'+_0x2dc0aa),this[_0x5ee5('0x19')][_0x5ee5('0x50')](_0x4edd9d['id'],_0x16a607));const _0x37e70f=_0xf0eec9[_0x5ee5('0x23')](_0x4edd9d[_0x5ee5('0x5f')],_0x188b11),_0x58f1a6=new _0x1d5b55(_0xee818d,_0x4edd9d,_0x188b11,_0x37e70f),_0x355140=_0x4edd9d[_0x5ee5('0x1d')]()[_0x5ee5('0x47')](_0x472375=>_0x472375[_0x5ee5('0x30')]);_0x188b11['descriptionParts']=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x53'))[_0x5ee5('0xa')]['getDescriptions'](_0x355140),this[_0x5ee5('0x18')][_0x5ee5('0x50')](_0x4edd9d,_0x58f1a6),this[_0x5ee5('0x36')][_0x5ee5('0x50')](_0x188b11,_0x58f1a6);const _0x53bdd4=_0x5d5a4e['createAnnotation']({'view':_0x16a607,'target':()=>{const _0x2adbb8=[],_0x310a92=_0x4edd9d[_0x5ee5('0x1d')]()[_0x5ee5('0x47')](_0x593142=>_0x593142[_0x5ee5('0x30')]);for(const _0x3b53a2 of _0x310a92)_0x2adbb8[_0x5ee5('0x27')](..._0x3b53a2['getMarkers']());return _0x444aff(_0xee818d['editing'],_0x2adbb8);},'type':()=>_0x5ee5('0x44')+_0x58f1a6[_0x5ee5('0x1')][_0x5ee5('0x41')]});_0xf0eec9[_0x5ee5('0x4a')](_0x188b11,_0x53bdd4),_0x5d5a4e[_0x5ee5('0x4e')](_0x53bdd4),_0x264889['registerAnnotation'](_0x53bdd4);}[_0x5ee5('0x34')](_0x2c1523){const _0x5630b4=this['editor'][_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xc')),_0x535214=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2c1523),_0x529396=_0x535214['view'],_0x5499a7=_0x5630b4[_0x5ee5('0x33')](_0x529396);_0x5499a7&&_0x5630b4[_0x5ee5('0x3d')](_0x5499a7),this[_0x5ee5('0x18')]['delete'](_0x2c1523),this[_0x5ee5('0x36')][_0x5ee5('0x1e')](_0x529396),_0x535214[_0x5ee5('0x58')]();}[_0x5ee5('0x6c')](_0x148a38){if(!_0x148a38[_0x5ee5('0x30')]||!this[_0x5ee5('0x18')][_0x5ee5('0x64')](_0x148a38))return;const _0x4f4e70=this[_0x5ee5('0x16')][_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x53')),_0x2037b4=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x148a38),_0x2aca1b=_0x148a38['getAllAdjacentSuggestions']();_0x2037b4[_0x5ee5('0x1')][_0x5ee5('0x5d')]=_0x4f4e70[_0x5ee5('0xa')][_0x5ee5('0x39')](_0x2aca1b);}[_0x5ee5('0x58')](){for(const _0x103b51 of this['_suggestionToController'][_0x5ee5('0x6')]())this[_0x5ee5('0x34')](_0x103b51);for(const _0x40a70a of this[_0x5ee5('0x19')]['values']())_0x40a70a[_0x5ee5('0x49')][_0x5ee5('0x58')]();super[_0x5ee5('0x58')]();}}
23
+ const _0x4575=['actionView','bind','Discard\x20all\x20selected\x20suggestions','addComment','_updateController','size','define','registerAnnotation','acceptSelectedSuggestions','_handleControllerBuffer','execute','getAllAdjacentSuggestions','suggestionUnloaded','comments.editorConfig','Accept\x20all\x20selected\x20suggestions','has','_handleSuggestionControllerDelayed','filter','view','refreshSelectedViews','change:previous','add','_createUIButton','comments','length','plugins','isMultiRange','acceptAllSuggestions','comments.maxCommentsWhenCollapsed','getMarkers','Track\x20changes','locale','createAnnotation','button','commandName','_initializeController','trackChanges','_viewToController','separator','hasSuggestion','discardAllSuggestions','Discard\x20all\x20suggestions','head','suggestion-','_annotationViews','_refreshActiveMarkers','type','_bindAnnotationToEditors','remove','delete','isEnabled','getDescriptions','comments.maxThreadTotalWeight','previous','commands','arrowView','get','getByInnerView','trackChanges.disableComments','discardSelectedSuggestions','buttonView','unbind','activeMarkers','SuggestionThreadView','isOn','createAnnotationView','requires','editing','values','change:activeAnnotations','_suggestionToController','acceptButton','focus','keys','destroy','comments.maxCommentCharsWhenCollapsed','listenTo','CommentView','from','config','init','suggestionChanged','_disableComments','componentFactory','descriptionParts','EditorAnnotations','getJoined','map','mainView','_descriptionFactory','_destroyController','isDirty','commentThread','value','isInContent','Annotations','push','innerView','model','TrackChangesEditing','editor','CommentsRepository','suggestionLoaded','toMany','set','lowest'];(function(_0x3dc4d1,_0x4575e4){const _0x463e21=function(_0x109199){while(--_0x109199){_0x3dc4d1['push'](_0x3dc4d1['shift']());}};_0x463e21(++_0x4575e4);}(_0x4575,0x167));const _0x463e=function(_0x3dc4d1,_0x4575e4){_0x3dc4d1=_0x3dc4d1-0x0;let _0x463e21=_0x4575[_0x3dc4d1];return _0x463e21;};import{Plugin as _0x4b6067}from'ckeditor5/src/core';import{Collection as _0x10d34a}from'ckeditor5/src/utils';import{Model as _0x4b7a3e,SplitButtonView as _0x151a5b,createDropdown as _0x23690a,addListToDropdown as _0x1091b9}from'ckeditor5/src/ui';import{Users as _0x17caf3,getDateTimeFormatter as _0x528ffd,getAllMarkersDomElementsSorted as _0x14865e}from'ckeditor5-collaboration/src/collaboration-core';import _0x181d28 from'./trackchangesediting';import _0x567582 from'./ui/suggestioncontroller';import _0xbd104e from'./ui/view/suggestionthreadview';import{getTranslation as _0x5006f8}from'./utils/common-translations';import _0x3c7567 from'../theme/icons/track-changes.svg';export default class d extends _0x4b6067{static get[_0x463e('0x19')](){return[_0x181d28,_0x17caf3,_0x463e('0x3c'),_0x463e('0x36'),_0x463e('0x2c')];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1fa7f0){super(_0x1fa7f0),this[_0x463e('0x1d')]=new Map(),this[_0x463e('0x66')]=new Map(),this['_annotationViews']=new Map(),this[_0x463e('0x4a')]=new Map();const _0x196166=this[_0x463e('0x3b')][_0x463e('0x26')];_0x196166[_0x463e('0x47')]('trackChanges.SuggestionThreadView',_0xbd104e),_0x196166['define'](_0x463e('0x11'),!0x1),this[_0x463e('0x29')]=_0x196166[_0x463e('0xf')](_0x463e('0x11'));}['_handleSuggestionControllerDelayed'](_0x162023,_0x5c1ffd){0x0===this[_0x463e('0x4a')][_0x463e('0x46')]&&setTimeout(()=>{for(const [_0x5c83d7,_0x4c8e0e]of this[_0x463e('0x4a')]){const _0x299d08=this[_0x463e('0x1d')]['has'](_0x5c83d7);_0x299d08||_0x4c8e0e?_0x299d08&&_0x4c8e0e&&this['_destroyController'](_0x5c83d7):this[_0x463e('0x64')](_0x5c83d7);}this['editor'][_0x463e('0x5a')]['get'](_0x463e('0x2c'))[_0x463e('0x54')](),this[_0x463e('0x4')](),this[_0x463e('0x4a')]['clear']();},0xa),this['_handleControllerBuffer'][_0x463e('0x3f')](_0x162023,_0x5c1ffd);}[_0x463e('0x27')](){const _0x49630e=this[_0x463e('0x3b')],_0x33459a=_0x49630e[_0x463e('0x5a')][_0x463e('0xf')](_0x463e('0x3a')),_0x104b15=_0x49630e[_0x463e('0x5a')][_0x463e('0xf')](_0x463e('0x36')),_0x168e65=_0x49630e[_0x463e('0x5a')][_0x463e('0xf')](_0x463e('0x2c')),_0x2829f4=_0x49630e[_0x463e('0x5a')]['get'](_0x463e('0x3c'));_0x49630e['ui'][_0x463e('0x2a')][_0x463e('0x56')]('trackChanges',_0x1a3038=>this[_0x463e('0x57')](_0x1a3038)),_0x168e65['addSourceCollector'](()=>{const _0x394534=[];for(const [_0x3d4105,_0x430a07]of Array[_0x463e('0x25')](this['_suggestionToController'])){const _0x2e7fa9=_0x3d4105[_0x463e('0x4c')](),_0x4d71a4=[];for(const _0x30c7a7 of _0x2e7fa9){if(!_0x30c7a7['isInContent'])continue;if(_0x30c7a7[_0x463e('0x5b')]){_0x4d71a4[_0x463e('0x37')](..._0x30c7a7['getRanges']());continue;}const _0x2acb7f=_0x30c7a7['getFirstRange']();if(_0x4d71a4[_0x463e('0x59')]>0x0){const _0x393150=_0x4d71a4[0x0][_0x463e('0x2d')](_0x2acb7f);if(_0x393150){_0x4d71a4[0x0]=_0x393150;continue;}}_0x4d71a4[_0x463e('0x37')](_0x2acb7f);}_0x394534[_0x463e('0x37')]([_0x430a07['view'],_0x4d71a4]);}return _0x394534;}),this[_0x463e('0x23')](_0x33459a,_0x463e('0x3d'),(_0x9b9c86,_0x21081e)=>{this[_0x463e('0x23')](_0x21081e,_0x463e('0x55'),(_0x1c1168,_0x1f89c7,_0xd43746,_0x4c3624)=>{_0x21081e['isInContent']&&(null==_0xd43746?(this[_0x463e('0x45')](_0x4c3624[_0x463e('0x1')]),this['_handleSuggestionControllerDelayed'](_0x21081e,!0x1)):(this[_0x463e('0x45')](_0xd43746[_0x463e('0x1')]),this['_handleSuggestionControllerDelayed'](_0x21081e,!0x0)));}),null===_0x21081e[_0x463e('0xc')]?this[_0x463e('0x51')](_0x21081e,!0x1):this[_0x463e('0x45')](_0x21081e['head']);}),this[_0x463e('0x23')](_0x33459a,_0x463e('0x4d'),(_0x6ef67e,_0x518cc1,_0x48aad7)=>{this['stopListening'](_0x518cc1,_0x463e('0x55')),this['_handleControllerBuffer'][_0x463e('0x8')](_0x518cc1);const _0x5efcf1=_0x48aad7?_0x48aad7[_0x463e('0x1')]:_0x518cc1,_0x199fcc=this[_0x463e('0x1d')][_0x463e('0xf')](_0x5efcf1);null!==_0x48aad7&&this[_0x463e('0x45')](_0x5efcf1),null===_0x48aad7&&_0x199fcc&&this[_0x463e('0x31')](_0x518cc1);}),this[_0x463e('0x23')](_0x33459a,_0x463e('0x28'),(_0x2ac8ff,_0xb4064b)=>{this['_updateController'](_0xb4064b);}),this['listenTo'](_0x104b15,_0x463e('0x1c'),()=>{this[_0x463e('0x4')]();}),this[_0x463e('0x23')](_0x2829f4,_0x463e('0x44'),(_0x44a1c1,{threadId:_0x1ae22b,isFromAdapter:_0xff727e})=>{if(_0xff727e||!_0x33459a[_0x463e('0x68')](_0x1ae22b))return;const _0xab7b4c=_0x33459a['getSuggestion'](_0x1ae22b);this['_suggestionToController'][_0x463e('0xf')](_0xab7b4c)[_0x463e('0x53')][_0x463e('0x1f')]();},{'priority':_0x463e('0x40')});}['_refreshActiveMarkers'](){const _0x139316=this[_0x463e('0x3b')][_0x463e('0x5a')][_0x463e('0xf')](_0x463e('0x36')),_0x30d5df=this['editor'][_0x463e('0x5a')][_0x463e('0xf')](_0x463e('0x3a')),_0x213fb5=Array['from'](_0x139316['activeAnnotations'],_0x49faf5=>_0x49faf5[_0x463e('0x38')])[_0x463e('0x52')](_0x1a3725=>this[_0x463e('0x66')][_0x463e('0x50')](_0x1a3725)),_0x480a2f=[];for(const _0x4c3088 of _0x213fb5){const _0x199f50=this[_0x463e('0x66')][_0x463e('0xf')](_0x4c3088)['model']['getAllAdjacentSuggestions']();_0x480a2f[_0x463e('0x37')](..._0x199f50['reduce']((_0x585473,_0x3eb248)=>[..._0x585473,..._0x3eb248['getMarkerNames']()],[]));}_0x30d5df[_0x463e('0x15')]=_0x480a2f;}[_0x463e('0x57')](_0x543d0d){const _0x2c8b4e=_0x23690a(_0x543d0d,_0x151a5b),_0x28f5f4=this[_0x463e('0x3b')][_0x463e('0xd')][_0x463e('0xf')]('trackChanges'),_0x29d812=_0x5006f8(_0x543d0d,_0x463e('0x5f'));_0x2c8b4e[_0x463e('0x13')]['set']({'tooltip':_0x29d812,'label':_0x29d812,'icon':_0x3c7567}),_0x2c8b4e[_0x463e('0x13')][_0x463e('0x42')](_0x463e('0x17'))['to'](_0x28f5f4,_0x463e('0x34')),_0x2c8b4e[_0x463e('0x13')]['on'](_0x463e('0x4b'),()=>{_0x28f5f4[_0x463e('0x4b')](),this[_0x463e('0x3b')]['editing'][_0x463e('0x53')][_0x463e('0x1f')]();});const _0x250f98=new _0x10d34a(),_0x1225d6=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x29d812,'commandName':'trackChanges'}},{'type':'separator'},{'type':_0x463e('0x62'),'model':{'withText':!0x0,'label':_0x5006f8(_0x543d0d,'Accept\x20all\x20suggestions'),'commandName':_0x463e('0x5c')}},{'type':'button','model':{'withText':!0x0,'label':_0x5006f8(_0x543d0d,_0x463e('0x4f')),'commandName':_0x463e('0x49')}},{'type':_0x463e('0x62'),'model':{'withText':!0x0,'label':_0x5006f8(_0x543d0d,_0x463e('0x0')),'commandName':_0x463e('0x69')}},{'type':_0x463e('0x62'),'model':{'withText':!0x0,'label':_0x5006f8(_0x543d0d,_0x463e('0x43')),'commandName':_0x463e('0x12')}}];for(const _0x40109f of _0x1225d6){let _0x3a5e9a={'type':_0x463e('0x67')};if(_0x40109f[_0x463e('0x39')]){const _0x4c4bd7=new _0x4b7a3e(_0x40109f['model']),_0x531348=this[_0x463e('0x3b')][_0x463e('0xd')][_0x463e('0xf')](_0x4c4bd7[_0x463e('0x63')]);_0x4c4bd7[_0x463e('0x42')](_0x463e('0x17'),_0x463e('0x9'))['to'](_0x531348,_0x463e('0x34'),_0x463e('0x9')),_0x3a5e9a={'type':_0x40109f['type'],'model':_0x4c4bd7};}_0x250f98[_0x463e('0x56')](_0x3a5e9a);}_0x1091b9(_0x2c8b4e,_0x250f98);const _0x422a43=_0x1225d6[_0x463e('0x52')](_0x91dfed=>null!=_0x91dfed[_0x463e('0x39')])[_0x463e('0x2e')](_0x2e3edf=>this['editor'][_0x463e('0xd')][_0x463e('0xf')](_0x2e3edf['model']['commandName'])),_0x199f0c=_0x2c8b4e[_0x463e('0x13')];return _0x199f0c[_0x463e('0x41')][_0x463e('0x14')](_0x463e('0x9')),_0x199f0c[_0x463e('0xe')][_0x463e('0x14')](_0x463e('0x9')),_0x199f0c['actionView'][_0x463e('0x42')]('isEnabled')['to'](_0x28f5f4,_0x463e('0x9')),_0x199f0c[_0x463e('0xe')][_0x463e('0x42')](_0x463e('0x9'))[_0x463e('0x3e')](_0x422a43,_0x463e('0x9'),(..._0x2ad6b9)=>_0x2ad6b9['some'](_0x594242=>_0x594242)),_0x2c8b4e['on'](_0x463e('0x4b'),_0x154bee=>{this[_0x463e('0x3b')][_0x463e('0x4b')](_0x154bee['source'][_0x463e('0x63')]),this[_0x463e('0x3b')][_0x463e('0x1a')][_0x463e('0x53')]['focus']();}),_0x2c8b4e;}[_0x463e('0x64')](_0x511a41){const _0x1f29f1=this[_0x463e('0x3b')],_0x36dd1e=_0x1f29f1[_0x463e('0x26')],_0x45dde2=_0x1f29f1[_0x463e('0x5a')][_0x463e('0xf')](_0x463e('0x36')),_0x214a4d=_0x1f29f1['plugins'][_0x463e('0xf')](_0x463e('0x3c')),_0xbe010b=_0x1f29f1[_0x463e('0x5a')][_0x463e('0xf')](_0x463e('0x2c')),_0x18701f=_0x1f29f1['plugins']['get'](_0x17caf3)['me'],_0x2b17cd=_0x36dd1e['get'](_0x463e('0x65'))[_0x463e('0x16')],{CommentsListView:_0x5befa9,CommentThreadInputView:_0x189c83}=_0x1f29f1['plugins'][_0x463e('0xf')]('CommentsUI');let _0x5eb2b1,_0x5bdf05;this[_0x463e('0x3')][_0x463e('0x50')](_0x511a41['id'])?(_0x5bdf05=this[_0x463e('0x3')]['get'](_0x511a41['id']),_0x5eb2b1=_0x5bdf05[_0x463e('0x2f')]):(_0x5eb2b1=new _0x2b17cd(_0x1f29f1[_0x463e('0x60')],_0x511a41,_0x18701f,{'disableComments':this['_disableComments'],'editorConfig':_0x36dd1e[_0x463e('0xf')](_0x463e('0x4e')),'maxCommentsWhenCollapsed':_0x36dd1e[_0x463e('0xf')](_0x463e('0x5d')),'maxThreadTotalWeight':_0x36dd1e['get'](_0x463e('0xb')),'maxCommentCharsWhenCollapsed':_0x36dd1e['get'](_0x463e('0x22')),'formatDateTime':_0x528ffd(_0x36dd1e[_0x463e('0xf')](_0x463e('0x60'))),'CommentView':_0x36dd1e[_0x463e('0xf')](_0x463e('0x58'))[_0x463e('0x24')],'CommentsListView':_0x5befa9,'CommentThreadInputView':_0x189c83}),_0x5eb2b1[_0x463e('0x1e')]['on'](_0x463e('0x4b'),()=>{_0x1f29f1[_0x463e('0x1a')]['view'][_0x463e('0x1f')]();}),_0x5eb2b1['discardButton']['on'](_0x463e('0x4b'),()=>{_0x1f29f1[_0x463e('0x1a')][_0x463e('0x53')][_0x463e('0x1f')]();}),_0x5bdf05=_0x45dde2[_0x463e('0x18')](this[_0x463e('0x3b')]['locale'],_0x5eb2b1),_0x5bdf05[_0x463e('0x42')](_0x463e('0x32'))['to'](_0x5eb2b1,_0x463e('0x32')),_0x5bdf05[_0x463e('0x42')]('length')['to'](_0x5eb2b1),_0x5bdf05[_0x463e('0x42')]('type')['to'](_0x5eb2b1,_0x463e('0x5'),_0x4094f3=>_0x463e('0x2')+_0x4094f3),this[_0x463e('0x3')]['set'](_0x511a41['id'],_0x5bdf05));const _0x205cf1=_0x214a4d['createCommentThreadController'](_0x511a41[_0x463e('0x33')],_0x5eb2b1),_0x503c0e=new _0x567582(_0x1f29f1,_0x511a41,_0x5eb2b1,_0x205cf1),_0x46b21d=_0x511a41['getAllAdjacentSuggestions']()[_0x463e('0x52')](_0x318092=>_0x318092[_0x463e('0x35')]);_0x5eb2b1[_0x463e('0x2b')]=_0x1f29f1[_0x463e('0x5a')][_0x463e('0xf')](_0x463e('0x3a'))['_descriptionFactory']['getDescriptions'](_0x46b21d),this[_0x463e('0x1d')][_0x463e('0x3f')](_0x511a41,_0x503c0e),this['_viewToController']['set'](_0x5eb2b1,_0x503c0e);const _0x3ebae2=_0x45dde2[_0x463e('0x61')]({'view':_0x5bdf05,'target':()=>{const _0x253419=[],_0x3da089=_0x511a41[_0x463e('0x4c')]()[_0x463e('0x52')](_0x216a14=>_0x216a14['isInContent']);for(const _0xee6d8f of _0x3da089)_0x253419[_0x463e('0x37')](..._0xee6d8f[_0x463e('0x5e')]());return _0x14865e(_0x1f29f1[_0x463e('0x1a')],_0x253419);},'type':()=>'suggestion-'+_0x503c0e['view'][_0x463e('0x5')]});_0x214a4d[_0x463e('0x6')](_0x5eb2b1,_0x3ebae2),_0x45dde2[_0x463e('0x56')](_0x3ebae2),_0xbe010b[_0x463e('0x48')](_0x3ebae2);}['_destroyController'](_0xdc1e3f){const _0x3ea828=this[_0x463e('0x3b')][_0x463e('0x5a')]['get'](_0x463e('0x36')),_0x110615=this[_0x463e('0x1d')]['get'](_0xdc1e3f),_0x3ab043=_0x110615[_0x463e('0x53')],_0x6b5e9f=_0x3ea828[_0x463e('0x10')](_0x3ab043);_0x6b5e9f&&_0x3ea828[_0x463e('0x7')](_0x6b5e9f),this['_suggestionToController']['delete'](_0xdc1e3f),this['_viewToController'][_0x463e('0x8')](_0x3ab043),_0x110615['destroy']();}[_0x463e('0x45')](_0x55432f){if(!_0x55432f['isInContent']||!this['_suggestionToController'][_0x463e('0x50')](_0x55432f))return;const _0x470a6b=this['editor'][_0x463e('0x5a')]['get'](_0x463e('0x3a')),_0x3c5d65=this[_0x463e('0x1d')]['get'](_0x55432f),_0x388949=_0x55432f[_0x463e('0x4c')]();_0x3c5d65[_0x463e('0x53')][_0x463e('0x2b')]=_0x470a6b[_0x463e('0x30')][_0x463e('0xa')](_0x388949);}[_0x463e('0x21')](){for(const _0x28d263 of this[_0x463e('0x1d')][_0x463e('0x20')]())this['_destroyController'](_0x28d263);for(const _0x4283d3 of this[_0x463e('0x3')][_0x463e('0x1b')]())_0x4283d3[_0x463e('0x2f')][_0x463e('0x21')]();super[_0x463e('0x21')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28d1=['PENDING_ACTION_SUGGESTION','model','canDiscard','commentThreadController','view','canEditAt','isEnabled','change:isDirty','unbind','_discardCommand','execute','_removePendingAction','canAccept','_acceptCommand','add','_editor','get','PendingActions','discardSuggestion','listenTo','stopListening','locale','getRanges','isDirty','_pendingAction','acceptSuggestion','commands','_setPendingAction','bind'];(function(_0x1dbe32,_0x28d106){const _0x1110a9=function(_0x15d43d){while(--_0x15d43d){_0x1dbe32['push'](_0x1dbe32['shift']());}};_0x1110a9(++_0x28d106);}(_0x28d1,0xe1));const _0x1110=function(_0x1dbe32,_0x28d106){_0x1dbe32=_0x1dbe32-0x0;let _0x1110a9=_0x28d1[_0x1dbe32];return _0x1110a9;};import{ObservableMixin as _0x1e83a5}from'ckeditor5/src/utils';import{getTranslation as _0xa628f9}from'../utils/common-translations';export default class qt extends _0x1e83a5(){constructor(_0x3677df,_0x142716,_0x431e71,_0x4297c1){super(),this[_0x1110('0x8')]=_0x142716,this['view']=_0x431e71,this[_0x1110('0xa')]=_0x4297c1,this[_0x1110('0x16')]=_0x3677df,this[_0x1110('0x14')]=_0x3677df[_0x1110('0x4')]['get'](_0x1110('0x3')),this[_0x1110('0x10')]=_0x3677df[_0x1110('0x4')][_0x1110('0x17')](_0x1110('0x19')),this[_0x1110('0xb')][_0x1110('0x6')](_0x1110('0xd'))['to'](this[_0x1110('0x14')],this['_discardCommand'],(_0x2079bf,_0x43d39d)=>_0x2079bf||_0x43d39d),this[_0x1110('0xb')][_0x1110('0x6')](_0x1110('0x13'))['to'](this[_0x1110('0x14')],_0x1110('0xd'),_0x511d7d=>_0x511d7d&&this[_0x1110('0x16')][_0x1110('0x8')]['canEditAt'](_0x142716[_0x1110('0x0')]())),this[_0x1110('0xb')][_0x1110('0x6')]('canDiscard')['to'](this[_0x1110('0x10')],_0x1110('0xd'),_0x3e7b25=>_0x3e7b25&&this['_editor'][_0x1110('0x8')][_0x1110('0xc')](_0x142716[_0x1110('0x0')]())),this[_0x1110('0x2')]=null,_0x431e71[_0x1110('0x1')]&&this[_0x1110('0x5')](),this[_0x1110('0x1a')](_0x431e71,_0x1110('0x3'),()=>this['acceptSuggestion']()),this[_0x1110('0x1a')](_0x431e71,_0x1110('0x19'),()=>this[_0x1110('0x19')]()),this[_0x1110('0x1a')](_0x431e71,_0x1110('0xe'),()=>{_0x431e71[_0x1110('0x1')]?this[_0x1110('0x5')]():this[_0x1110('0x12')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0x1110('0x11')](this[_0x1110('0x8')]['id']);}[_0x1110('0x19')](){this['_discardCommand']['execute'](this[_0x1110('0x8')]['id']);}['destroy'](){this[_0x1110('0xb')][_0x1110('0xf')](_0x1110('0xd')),this[_0x1110('0xb')][_0x1110('0xf')](_0x1110('0x13')),this[_0x1110('0xb')]['unbind'](_0x1110('0x9')),this[_0x1110('0x1b')](),this[_0x1110('0xa')]['destroy'](),this[_0x1110('0x2')]&&this[_0x1110('0x12')]();}[_0x1110('0x5')](){const _0x520cdd=_0xa628f9(this[_0x1110('0x16')][_0x1110('0x1c')],_0x1110('0x7'));this['_pendingAction']=this[_0x1110('0x16')]['plugins'][_0x1110('0x17')](_0x1110('0x18'))[_0x1110('0x15')](_0x520cdd);}[_0x1110('0x12')](){null!==this[_0x1110('0x2')]&&this['_editor']['plugins'][_0x1110('0x17')]('PendingActions')['remove'](this[_0x1110('0x2')]),this[_0x1110('0x2')]=null;}}
23
+ const _0x778c=['acceptSuggestion','plugins','_discardCommand','model','getRanges','get','canDiscard','PENDING_ACTION_SUGGESTION','view','isEnabled','_setPendingAction','discardSuggestion','PendingActions','locale','canEditAt','destroy','unbind','change:isDirty','commands','canAccept','commentThreadController','listenTo','_removePendingAction','bind','execute','stopListening','_editor','_acceptCommand','isDirty','add','_pendingAction'];(function(_0x200e56,_0x778c15){const _0x10c7d2=function(_0x343ce4){while(--_0x343ce4){_0x200e56['push'](_0x200e56['shift']());}};_0x10c7d2(++_0x778c15);}(_0x778c,0xea));const _0x10c7=function(_0x200e56,_0x778c15){_0x200e56=_0x200e56-0x0;let _0x10c7d2=_0x778c[_0x200e56];return _0x10c7d2;};import{ObservableMixin as _0x1d61e6}from'ckeditor5/src/utils';import{getTranslation as _0x481cb9}from'../utils/common-translations';export default class qt extends _0x1d61e6(){constructor(_0x2cc051,_0x399811,_0x34c28a,_0x19060d){super(),this[_0x10c7('0x11')]=_0x399811,this[_0x10c7('0x16')]=_0x34c28a,this['commentThreadController']=_0x19060d,this['_editor']=_0x2cc051,this[_0x10c7('0xa')]=_0x2cc051[_0x10c7('0x1')][_0x10c7('0x13')](_0x10c7('0xe')),this[_0x10c7('0x10')]=_0x2cc051[_0x10c7('0x1')]['get']('discardSuggestion'),this[_0x10c7('0x16')][_0x10c7('0x6')](_0x10c7('0x17'))['to'](this[_0x10c7('0xa')],this['_discardCommand'],(_0x1940b4,_0x38d041)=>_0x1940b4||_0x38d041),this[_0x10c7('0x16')][_0x10c7('0x6')](_0x10c7('0x2'))['to'](this[_0x10c7('0xa')],_0x10c7('0x17'),_0x315f23=>_0x315f23&&this[_0x10c7('0x9')][_0x10c7('0x11')][_0x10c7('0x1c')](_0x399811[_0x10c7('0x12')]())),this[_0x10c7('0x16')][_0x10c7('0x6')]('canDiscard')['to'](this[_0x10c7('0x10')],'isEnabled',_0x53ddeb=>_0x53ddeb&&this[_0x10c7('0x9')][_0x10c7('0x11')][_0x10c7('0x1c')](_0x399811[_0x10c7('0x12')]())),this[_0x10c7('0xd')]=null,_0x34c28a[_0x10c7('0xb')]&&this[_0x10c7('0x18')](),this['listenTo'](_0x34c28a,_0x10c7('0xe'),()=>this['acceptSuggestion']()),this['listenTo'](_0x34c28a,_0x10c7('0x19'),()=>this[_0x10c7('0x19')]()),this[_0x10c7('0x4')](_0x34c28a,_0x10c7('0x0'),()=>{_0x34c28a[_0x10c7('0xb')]?this[_0x10c7('0x18')]():this['_removePendingAction']();});}[_0x10c7('0xe')](){this['_acceptCommand'][_0x10c7('0x7')](this['model']['id']);}['discardSuggestion'](){this[_0x10c7('0x10')]['execute'](this['model']['id']);}['destroy'](){this[_0x10c7('0x16')][_0x10c7('0x1e')](_0x10c7('0x17')),this[_0x10c7('0x16')][_0x10c7('0x1e')](_0x10c7('0x2')),this[_0x10c7('0x16')][_0x10c7('0x1e')](_0x10c7('0x14')),this[_0x10c7('0x8')](),this[_0x10c7('0x3')][_0x10c7('0x1d')](),this[_0x10c7('0xd')]&&this[_0x10c7('0x5')]();}[_0x10c7('0x18')](){const _0x348a3c=_0x481cb9(this[_0x10c7('0x9')][_0x10c7('0x1b')],_0x10c7('0x15'));this['_pendingAction']=this['_editor'][_0x10c7('0xf')][_0x10c7('0x13')](_0x10c7('0x1a'))[_0x10c7('0xc')](_0x348a3c);}['_removePendingAction'](){null!==this[_0x10c7('0xd')]&&this[_0x10c7('0x9')][_0x10c7('0xf')][_0x10c7('0x13')](_0x10c7('0x1a'))['remove'](this[_0x10c7('0xd')]),this[_0x10c7('0xd')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xec28=['CommentView','locale','delegate','bind','submit','showInput','commentsListView','_createCommentThreadInputView','descriptionParts','_createCommentViews','_model','cancel','editor','focus','_config','isReadOnly','authoredAt','destroy','updateComment','disabledSubmit','value','length','commentInputView','canDiscard','isDirty','commentThreadInputView','disableComments','removeComment','_localUser','isEnabled','set','commentThread','isActive'];(function(_0x67ed73,_0xec287){const _0x47cb72=function(_0x5c55ef){while(--_0x5c55ef){_0x67ed73['push'](_0x67ed73['shift']());}};_0x47cb72(++_0xec287);}(_0xec28,0x7f));const _0x47cb=function(_0x67ed73,_0xec287){_0x67ed73=_0x67ed73-0x0;let _0x47cb72=_0xec28[_0x67ed73];return _0x47cb72;};import{View as _0x2cb4ee}from'ckeditor5/src/ui';export default class ii extends _0x2cb4ee{constructor(_0x27b450,_0x312019,_0x51b249,_0x188471){super(_0x27b450),this[_0x47cb('0xb')]=null,this[_0x47cb('0x1e')]=null,this[_0x47cb('0x2')](_0x47cb('0x4'),!0x1),this[_0x47cb('0x2')]('authoredAt',_0x312019[_0x47cb('0x15')]),this[_0x47cb('0x8')](_0x47cb('0x15'))['to'](_0x312019),this['set'](_0x47cb('0xd'),[]),this[_0x47cb('0x2')](_0x47cb('0x1d'),!0x1),this['set'](_0x47cb('0x1'),!0x1),this[_0x47cb('0x2')]('canAccept',!0x1),this[_0x47cb('0x2')](_0x47cb('0x1c'),!0x1),this['_model']=_0x312019,this[_0x47cb('0x0')]=_0x51b249,this[_0x47cb('0x13')]=_0x188471,_0x188471[_0x47cb('0x1f')]?this['set'](_0x47cb('0x1a'),0x1):this[_0x47cb('0xe')]();}[_0x47cb('0x12')](){this['element'][_0x47cb('0x12')]();}[_0x47cb('0x16')](){this[_0x47cb('0xb')]&&this[_0x47cb('0xb')]['destroy'](),this[_0x47cb('0x1e')]&&this[_0x47cb('0x1e')]['destroy'](),super['destroy']();}[_0x47cb('0xe')](){const {CommentsListView:_0x5e6531}=this[_0x47cb('0x13')];this['commentsListView']=new _0x5e6531(this[_0x47cb('0x6')],this[_0x47cb('0xf')][_0x47cb('0x3')],Object['assign']({'CommentView':this[_0x47cb('0x13')][_0x47cb('0x5')]},this['_config'])),this[_0x47cb('0xb')][_0x47cb('0x7')](_0x47cb('0x20'))['to'](this),this[_0x47cb('0xb')][_0x47cb('0x7')](_0x47cb('0x17'))['to'](this),this[_0x47cb('0xb')][_0x47cb('0x8')]('isActive')['to'](this),this['set'](_0x47cb('0x1a'),this[_0x47cb('0xb')]['length']+0x1),this[_0x47cb('0x8')]('length')['to'](this[_0x47cb('0xb')],'length',_0x270d1b=>_0x270d1b+0x1),this[_0x47cb('0x1e')]=this['_createCommentThreadInputView'](),this['on'](_0x47cb('0x20'),()=>this[_0x47cb('0x12')]()),this['bind'](_0x47cb('0x1d'))['to'](this[_0x47cb('0xb')],'hasDirtyComment',this[_0x47cb('0x1e')][_0x47cb('0x1b')],_0x47cb('0x19'),(_0x44fc12,_0x42c176)=>_0x44fc12||!!_0x42c176);}[_0x47cb('0xc')](){const {CommentThreadInputView:_0x4eb5c6}=this['_config'],_0x3f5085=new _0x4eb5c6(this['locale'],this[_0x47cb('0x0')],this['_config']['editorConfig']),_0x5af6fc=_0x3f5085[_0x47cb('0x1b')];return _0x3f5085[_0x47cb('0x8')](_0x47cb('0xa'))['to'](this,_0x47cb('0x4'),this[_0x47cb('0xf')][_0x47cb('0x3')],'isReadOnly',_0x5af6fc,_0x47cb('0x19'),(_0x3c3ef2,_0x3f13c5,_0x23d4a1)=>!!_0x23d4a1||_0x3c3ef2&&!_0x3f13c5),_0x5af6fc['on'](_0x47cb('0x9'),(_0x50f34c,_0x5d31fc)=>{this['fire']('addComment',_0x5d31fc),_0x5af6fc[_0x47cb('0x11')]['setData']('');}),_0x5af6fc['on'](_0x47cb('0x10'),()=>this['focus']()),_0x5af6fc['bind'](_0x47cb('0x18'))['to'](this[_0x47cb('0xf')][_0x47cb('0x3')],_0x47cb('0x14')),_0x3f5085;}}
23
+ const _0x21b6=['isDirty','disableComments','isActive','_model','descriptionParts','commentInputView','submit','CommentView','_config','bind','canDiscard','_createCommentThreadInputView','length','assign','disabledSubmit','commentThread','authoredAt','commentThreadInputView','editorConfig','editor','value','canAccept','locale','_localUser','focus','isReadOnly','_createCommentViews','updateComment','showInput','commentsListView','destroy','set','delegate','removeComment'];(function(_0x139ee2,_0x21b648){const _0x284997=function(_0x3f8039){while(--_0x3f8039){_0x139ee2['push'](_0x139ee2['shift']());}};_0x284997(++_0x21b648);}(_0x21b6,0xb6));const _0x2849=function(_0x139ee2,_0x21b648){_0x139ee2=_0x139ee2-0x0;let _0x284997=_0x21b6[_0x139ee2];return _0x284997;};import{View as _0xbc0723}from'ckeditor5/src/ui';export default class ii extends _0xbc0723{constructor(_0x3c29d6,_0x5a2354,_0x596ff9,_0x208cd6){super(_0x3c29d6),this[_0x2849('0x11')]=null,this[_0x2849('0x5')]=null,this[_0x2849('0x13')](_0x2849('0x18'),!0x1),this[_0x2849('0x13')]('authoredAt',_0x5a2354[_0x2849('0x4')]),this[_0x2849('0x1f')]('authoredAt')['to'](_0x5a2354),this[_0x2849('0x13')](_0x2849('0x1a'),[]),this[_0x2849('0x13')](_0x2849('0x16'),!0x1),this[_0x2849('0x13')]('isEnabled',!0x1),this[_0x2849('0x13')](_0x2849('0x9'),!0x1),this[_0x2849('0x13')](_0x2849('0x20'),!0x1),this['_model']=_0x5a2354,this[_0x2849('0xb')]=_0x596ff9,this[_0x2849('0x1e')]=_0x208cd6,_0x208cd6[_0x2849('0x17')]?this[_0x2849('0x13')]('length',0x1):this[_0x2849('0xe')]();}[_0x2849('0xc')](){this['element'][_0x2849('0xc')]();}[_0x2849('0x12')](){this[_0x2849('0x11')]&&this['commentsListView'][_0x2849('0x12')](),this[_0x2849('0x5')]&&this[_0x2849('0x5')][_0x2849('0x12')](),super[_0x2849('0x12')]();}[_0x2849('0xe')](){const {CommentsListView:_0x2c06e3}=this[_0x2849('0x1e')];this[_0x2849('0x11')]=new _0x2c06e3(this[_0x2849('0xa')],this[_0x2849('0x19')][_0x2849('0x3')],Object[_0x2849('0x1')]({'CommentView':this[_0x2849('0x1e')][_0x2849('0x1d')]},this[_0x2849('0x1e')])),this['commentsListView']['delegate']('removeComment')['to'](this),this[_0x2849('0x11')][_0x2849('0x14')](_0x2849('0xf'))['to'](this),this['commentsListView'][_0x2849('0x1f')](_0x2849('0x18'))['to'](this),this['set'](_0x2849('0x0'),this[_0x2849('0x11')]['length']+0x1),this[_0x2849('0x1f')](_0x2849('0x0'))['to'](this[_0x2849('0x11')],'length',_0x2633b3=>_0x2633b3+0x1),this[_0x2849('0x5')]=this[_0x2849('0x21')](),this['on'](_0x2849('0x15'),()=>this[_0x2849('0xc')]()),this[_0x2849('0x1f')](_0x2849('0x16'))['to'](this[_0x2849('0x11')],'hasDirtyComment',this['commentThreadInputView'][_0x2849('0x1b')],_0x2849('0x8'),(_0x89f0aa,_0x12ea32)=>_0x89f0aa||!!_0x12ea32);}[_0x2849('0x21')](){const {CommentThreadInputView:_0x5bac9b}=this[_0x2849('0x1e')],_0x22eb65=new _0x5bac9b(this[_0x2849('0xa')],this[_0x2849('0xb')],this['_config'][_0x2849('0x6')]),_0x1b118e=_0x22eb65['commentInputView'];return _0x22eb65['bind'](_0x2849('0x10'))['to'](this,_0x2849('0x18'),this['_model'][_0x2849('0x3')],_0x2849('0xd'),_0x1b118e,_0x2849('0x8'),(_0x211bd5,_0x661b62,_0x4ec73a)=>!!_0x4ec73a||_0x211bd5&&!_0x661b62),_0x1b118e['on'](_0x2849('0x1c'),(_0x304431,_0x14892b)=>{this['fire']('addComment',_0x14892b),_0x1b118e[_0x2849('0x7')]['setData']('');}),_0x1b118e['on']('cancel',()=>this[_0x2849('0xc')]()),_0x1b118e[_0x2849('0x1f')](_0x2849('0x2'))['to'](this[_0x2849('0x19')][_0x2849('0x3')],_0x2849('0xd')),_0x22eb65;}}