@ckeditor/ckeditor5-track-changes 35.2.0 → 35.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +4 -4
  3. package/src/commands/acceptallsuggestionscommand.js +1 -1
  4. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardallsuggestionscommand.js +1 -1
  7. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.js +1 -1
  9. package/src/commands/trackchangescommand.js +1 -1
  10. package/src/integrations/alignment.js +1 -1
  11. package/src/integrations/basicstyles.js +1 -1
  12. package/src/integrations/blockquote.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/font.js +1 -1
  19. package/src/integrations/heading.js +1 -1
  20. package/src/integrations/highlight.js +1 -1
  21. package/src/integrations/horizontalline.js +1 -1
  22. package/src/integrations/htmlembed.js +1 -1
  23. package/src/integrations/image.js +1 -1
  24. package/src/integrations/importword.js +1 -1
  25. package/src/integrations/indent.js +1 -1
  26. package/src/integrations/inputcommand.js +1 -1
  27. package/src/integrations/link.js +1 -1
  28. package/src/integrations/list.js +1 -1
  29. package/src/integrations/mediaembed.js +1 -1
  30. package/src/integrations/mention.js +1 -1
  31. package/src/integrations/pagebreak.js +1 -1
  32. package/src/integrations/paragraph.js +1 -1
  33. package/src/integrations/removeformat.js +1 -1
  34. package/src/integrations/restrictededitingmode.js +1 -1
  35. package/src/integrations/shiftentercommand.js +1 -1
  36. package/src/integrations/standardeditingmode.js +1 -1
  37. package/src/integrations/style.js +1 -1
  38. package/src/integrations/table.js +1 -1
  39. package/src/integrations/tableclipboard.js +1 -1
  40. package/src/integrations/tableheadings.js +1 -1
  41. package/src/integrations/tablemergesplit.js +1 -1
  42. package/src/integrations/title.js +1 -1
  43. package/src/integrations/undo.js +1 -1
  44. package/src/integrations/utils.js +1 -1
  45. package/src/suggestion.js +1 -1
  46. package/src/suggestiondescriptionfactory.js +1 -1
  47. package/src/trackchanges.js +1 -1
  48. package/src/trackchangesdata.js +1 -1
  49. package/src/trackchangesediting.js +1 -1
  50. package/src/trackchangesui.js +1 -1
  51. package/src/ui/suggestioncontroller.js +1 -1
  52. package/src/ui/view/basesuggestionthreadview.js +1 -1
  53. package/src/ui/view/suggestionthreadview.js +1 -1
  54. package/src/utils/common-translations.js +1 -1
  55. package/src/utils/getrangesofblockgroups.js +1 -1
  56. package/src/utils/getselectedsuggestions.js +1 -1
  57. package/src/utils/hashobject.js +1 -1
  58. package/src/utils/normalizedescription.js +1 -1
  59. package/src/utils/sortsuggestions.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27d3=['chain','filter','formatInline:','lowest','remove','originalSuggestionId','multipleBlocks','_handleNewSuggestionMarker','getNearestSelectionRange','isLimit','CommentsRepository','setSelection','isAfter','enableCommand','ck-suggestion-marker-formatBlock','parent','return','_registerDefaultCallbacks','containsRange','error-saving-suggestion-data-suggestion-discarded','root','after','createRange','clear','next','_breakSuggestionMarker','element','formatBlock:join','collaboration.channelId','isIntersectingWithRange','applyOperation','push','range','markerToHighlight','isInContent','isCollapsed','accept','_removeSuggestion','suggestionChanged','isDocumentOperation','some','discardAllSuggestions','_splitMarkerName','isEqual','model','insertion:chain','formatBlock:discard','_getSuggestionData','getSuggestion','deletion:chain','isBefore','_joinWithAdjacentSuggestions','createdAt','markMultiRangeInsertion','requires','elementToElement','_model','rethrowUnexpectedError','isLocal','head','execute','PENDING_ACTION_SUGGESTION','TrackChangesEditing','isInsideObject','track-changes-adapter-missing-getsuggestion','locale','getFirstMarker','start','acceptSelectedSuggestions','trackChanges','addCommentThread','formatBlock','_getAuthorFromId','isAtEnd','hasComments','containsPosition','_suggestionFactory','formatBlock:chain','editor','_commentsRepository','getRanges','getShiftedBy','multi','acceptSuggestion','editing','_findSuggestions','set','_customCallbacks','_cutOutSuggestionMarker','before','rejected','backward','skipNestingCheck','ck-suggestion-marker','previous','Users','commentThread','adapter','formatInline:accept','markerToData','plugins','newRange','map','hasCommentThread','refresh','_isForcedDefaultExecutionBlock','ck-suggestion-marker-','deletion','authorName','removeComment','removeAttribute','detach','getCommentThread','markerReady','addUser','end','_saved','dataReady','high','size','_checkSuggestionCorrectness','documentSelection','addSuggestion','batch','isRemovable','getUser','splitPosition','ready','enableReadOnlyMode','change:_saved','item','unbindElementFromMarkerName','rootName','formatGroupId','schema','acceptAllSuggestions','deleteContent','getSuggestions','mapper','commands','isNextTo','showSuggestionHighlights','containerElement','add','markInsertion','activeMarkers','_addSuggestionMarker','catch','_refreshSuggestionsChain','getItems','isTouching','suggestion','name','fromCharCode','addClass','join','_enabledCommands','trackChangesCommand','_onDiscard','forceDefaultExecution','conversion','insertion:','isOwn','fire','config','formatInline:join','hasSuggestion','_createSuggestion','getIntersection','getAllAdjacentSuggestions','commandName','init','fromRange','nodeBefore','_updateSuggestionData','updateSuggestion','fetchCommentThread','getAttribute','_descriptionFactory','getAncestors','options','_editor','from','removeMarkers','formatInline','elementEnd','moveTargetPosition','markerNameToElements','forward','getDifference','attributes','low','markers','data-suggestion','containsRangeInObject','upcast','isAtStart','markBlockFormat','editingDowncast','change:data','formatInline:discard','split','substr','subType','addSuggestionData','createElement','setAttribute','author','$graveyard','sort','elementStart','every','suggestion-type','dataToMarker','data','getMarkers','get','registerPostFixer','change:activeMarkers','addMarkerName','pluginName','formatBlock:','includes','notReady','length','stop','widget','markInlineFormat','type','nodeAfter','track-changes-suggestion-not-found','discardSelectedSuggestions','deletion:','splice','registerCustomCallback','values','position','normal','for','insertContent','addHighlight','insertion:discard','then','setTo','delete','addMarker','_setSuggestionData','markerName','differ','consume','change','document','createSelection','_joinSuggestions','isMultiRange','_adapter','containsItem','isBlock','deletion:discard','selection','createRangeIn','insertion','highest','track-changes-suggestion-data-mismatch','targetPosition','isObject','markMultiRangeBlockFormat','toViewElement','_defaultCallbacks','markDeletion','_addThreadToSuggestion','howMany','enqueueChange','has','_getExternalAuthor','discard','getCustomProperty','consumable','@external','removeMarker:suggestion:formatBlock','_rangeIsInLocalUserInsertion','buildSuggestion','getFirstRange','getWalker','unbind','reconvertMarker','_suggestions','writer','dataDowncast','removed','value','suggestionLoaded','ck-suggestion-marker--active','insertion:accept','listenTo','removeClass','updateMarker','addMarker:suggestion:formatBlock','_setSuggestionRange','createPositionAt','_suggestionState','getChanges','addRange','suggestion:','external:','insert','PendingActions','getSuggestionCallback','getChangedMarkers','bindElementToMarker','getLastMatchingPosition','marker-count','removeMarker','open','update:suggestion','addComment','getMultiRangeId','discardSuggestion','oldRange','suggestionUnloaded'];(function(_0x20e75d,_0x27d356){const _0x1f8f98=function(_0x460088){while(--_0x460088){_0x20e75d['push'](_0x20e75d['shift']());}};_0x1f8f98(++_0x27d356);}(_0x27d3,0xee));const _0x1f8f=function(_0x20e75d,_0x27d356){_0x20e75d=_0x20e75d-0x0;let _0x1f8f98=_0x27d3[_0x20e75d];return _0x1f8f98;};import{Plugin as _0x2e95e9,PendingActions as _0x125075}from'ckeditor5/src/core';import{LiveRange as _0x1a80a0}from'ckeditor5/src/engine';import{CKEditorError as _0x3b3b32,uid as _0x20487a,priorities as _0x5af24d,EmitterMixin as _0x58572d,mix as _0x44f73f,logWarning as _0x318706}from'ckeditor5/src/utils';import{toWidget as _0x54a300}from'ckeditor5/src/widget';import{Users as _0x28e86c}from'ckeditor5-collaboration/src/collaboration-core';import _0x4c2396 from'./commands/trackchangescommand';import _0x6ab048 from'./commands/acceptsuggestioncommand';import _0x4e4195 from'./commands/discardsuggestioncommand';import _0x38327e from'./commands/acceptallsuggestionscommand';import _0x1be7be from'./commands/acceptselectedsuggestionscommand';import _0x41b80b from'./commands/discardallsuggestionscommand';import _0xf9d859 from'./commands/discardselectedsuggestionscommand';import _0x291614 from'./suggestion';import _0x435985 from'./suggestiondescriptionfactory';import _0x10829 from'./integrations/alignment';import _0x364d9e from'./integrations/basicstyles';import _0x5bab61 from'./integrations/blockquote';import _0x1a8777 from'./integrations/ckbox';import _0x18441d from'./integrations/codeblock';import _0x105ba9 from'./integrations/comments';import _0x435d7f from'./integrations/deletecommand';import _0xcd43e4 from'./integrations/entercommand';import _0x3d1132 from'./integrations/font';import _0x3c8a6e from'./integrations/heading';import _0x1f483c from'./integrations/highlight';import _0x51b93b from'./integrations/horizontalline';import _0x3bec06 from'./integrations/htmlembed';import _0x26f252 from'./integrations/image';import _0xb00ad6 from'./integrations/importword';import _0x5e03e8 from'./integrations/indent';import _0x484acc from'./integrations/inputcommand';import _0x4982c7 from'./integrations/link';import _0x4b86c5 from'./integrations/list';import _0x47880d from'./integrations/mediaembed';import _0x2fa020 from'./integrations/mention';import _0x1eb12a from'./integrations/pagebreak';import _0x41bdd5 from'./integrations/paragraph';import _0x28bd2e from'./integrations/removeformat';import _0x1479ad from'./integrations/restrictededitingmode';import _0x528738 from'./integrations/shiftentercommand';import _0x451363 from'./integrations/standardeditingmode';import _0x161c8a from'./integrations/style';import _0x2e83cf from'./integrations/table';import _0x4fa987 from'./integrations/tablemergesplit';import _0x57518c from'./integrations/tableheadings';import _0x4d4492 from'./integrations/tableclipboard';import _0x291dc0 from'./integrations/title';import _0x4984c4 from'./integrations/undo';import _0x5e1503 from'./utils/hashobject.js';import{getTranslation as _0xb5e306}from'./utils/common-translations';export default class d extends _0x2e95e9{static get[_0x1f8f('0x88')](){return[_0x1f8f('0x5c'),_0x28e86c,_0x125075,_0x10829,_0x364d9e,_0x5bab61,_0x1a8777,_0x18441d,_0x105ba9,_0x435d7f,_0xcd43e4,_0x3d1132,_0x3c8a6e,_0x1f483c,_0x51b93b,_0x3bec06,_0x26f252,_0xb00ad6,_0x5e03e8,_0x484acc,_0x4982c7,_0x4b86c5,_0x47880d,_0x2fa020,_0x1eb12a,_0x41bdd5,_0x28bd2e,_0x1479ad,_0x528738,_0x451363,_0x161c8a,_0x2e83cf,_0x4fa987,_0x57518c,_0x4d4492,_0x291dc0,_0x4984c4];}static get[_0x1f8f('0x12e')](){return _0x1f8f('0x90');}constructor(_0x62ba4b){function _0x218605(_0x182b8c){return _0x182b8c[_0x1f8f('0xb8')](_0x3a59c0=>String[_0x1f8f('0xeb')](_0x3a59c0))[_0x1f8f('0xed')]('');}super(_0x62ba4b),this[_0x1f8f('0xa8')](_0x1f8f('0xe3'),[]),this['on'](_0x1f8f('0x12c'),(_0x1e2e6d,_0x456166,_0x26fa63,_0x3476f1)=>{this['_model'][_0x1f8f('0xc')](()=>{for(const _0x4db50c of[..._0x3476f1,..._0x26fa63])this[_0x1f8f('0x8a')][_0x1f8f('0x112')]['has'](_0x4db50c)&&_0x62ba4b[_0x1f8f('0xa6')][_0x1f8f('0x2f')](_0x4db50c);});}),this[_0x1f8f('0x104')]=new _0x435985(this[_0x1f8f('0xa0')][_0x1f8f('0x7e')][_0x1f8f('0xd8')],this[_0x1f8f('0xa0')][_0x1f8f('0x93')]),this[_0x1f8f('0x11')]=null,this[_0x1f8f('0x9e')]=new wt(this[_0x1f8f('0xa0')]),this[_0x1f8f('0x30')]=new Map(),this[_0x1f8f('0xa1')]=_0x62ba4b[_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0x5c')),this['_enabledCommands']=new Set(),this['_model']=this[_0x1f8f('0xa0')][_0x1f8f('0x7e')],this['_suggestionState']=new WeakMap(),this[_0x1f8f('0xbb')]=!0x1,this[_0x218605([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x218605([0x34,0x30,0x34,0x34,0x32,0x30,0x31,0x30]);}[_0x1f8f('0xfd')](){const _0x2b488c=this[_0x1f8f('0xa0')];_0x2b488c[_0x1f8f('0xf2')][_0x1f8f('0x0')](_0x1f8f('0x118'))[_0x1f8f('0x73')]({'model':_0x1f8f('0xe9'),'view':_0x931cc5=>{const {id:_0x52fa5e,type:_0x41aab8}=this[_0x1f8f('0x7c')](_0x931cc5[_0x1f8f('0x9')]),_0x479445=[_0x1f8f('0xaf'),_0x1f8f('0xbc')+_0x41aab8];let _0x350ccb=0xbb8;return this[_0x1f8f('0xe3')][_0x1f8f('0x130')](_0x931cc5[_0x1f8f('0x9')])&&(_0x479445[_0x1f8f('0x71')]('ck-suggestion-marker--active'),_0x350ccb=0xbc2),_0x1f8f('0xbd')==_0x41aab8&&(_0x350ccb+=0x5),{'classes':_0x479445,'attributes':{'data-suggestion':_0x52fa5e},'priority':_0x350ccb};}}),_0x2b488c[_0x1f8f('0xf2')][_0x1f8f('0x0')]('dataDowncast')['add'](_0x39b7bc=>{_0x39b7bc['on']('addMarker:suggestion',(_0x6522d,_0x43d5c7,_0x416ee2)=>{if(!_0x416ee2[_0x1f8f('0x106')][_0x1f8f('0xdf')])return;const _0x44704e=_0x43d5c7['item'];if(!_0x44704e)return;const _0x12baaa=_0x416ee2[_0x1f8f('0xdc')][_0x1f8f('0x1d')](_0x44704e);_0x2b488c['model'][_0x1f8f('0xd8')]['isObject'](_0x44704e)&&_0x12baaa&&!_0x12baaa[_0x1f8f('0x26')](_0x1f8f('0x134'))&&_0x12baaa['is'](_0x1f8f('0xe0'))&&_0x54a300(_0x12baaa,_0x416ee2[_0x1f8f('0x31')]);},{'priority':_0x1f8f('0xc8')});}),_0x2b488c[_0x1f8f('0xf2')][_0x1f8f('0x0')](_0x1f8f('0x32'))['markerToHighlight']({'model':_0x1f8f('0xe9'),'view':(_0x345fc4,_0x21e8ed)=>{if(!_0x21e8ed[_0x1f8f('0x106')]['showSuggestionHighlights'])return null;const {type:_0x3321b3}=this[_0x1f8f('0x7c')](_0x345fc4[_0x1f8f('0x9')]);return{'classes':[_0x1f8f('0xaf'),_0x1f8f('0xbc')+_0x3321b3],'priority':0xbb8};}});const _0x26b406=({showActiveMarkers:_0x2d46c8=!0x0}={})=>(_0x503754,_0x1ccba9,_0x3db7cf)=>{if(!_0x1ccba9['item'])return;if(_0x1ccba9[_0x1f8f('0xd4')]['is'](_0x1f8f('0x15')))return void _0x3db7cf[_0x1f8f('0x27')][_0x1f8f('0xb')](_0x1ccba9[_0x1f8f('0xd4')],_0x503754[_0x1f8f('0xea')]);const _0x49e81f=_0x3db7cf[_0x1f8f('0xdc')][_0x1f8f('0x1d')](_0x1ccba9[_0x1f8f('0xd4')]);if(!(_0x1ccba9[_0x1f8f('0xd4')]['is'](_0x1f8f('0x6c'))&&_0x2b488c[_0x1f8f('0x7e')]['schema'][_0x1f8f('0x13')](_0x1ccba9['item'])&&!_0x49e81f['getCustomProperty'](_0x1f8f('0x2'))))return;const {id:_0x4fffdc}=this[_0x1f8f('0x7c')](_0x1ccba9['markerName']);_0x3db7cf[_0x1f8f('0x31')][_0x1f8f('0xec')]([_0x1f8f('0xaf'),_0x1f8f('0x60')],_0x49e81f),_0x3db7cf[_0x1f8f('0x31')][_0x1f8f('0x120')](_0x1f8f('0x113'),_0x4fffdc,_0x49e81f),_0x3db7cf[_0x1f8f('0xdc')][_0x1f8f('0x47')](_0x49e81f,_0x1ccba9[_0x1f8f('0x9')]),_0x2d46c8&&(this[_0x1f8f('0xe3')][_0x1f8f('0x130')](_0x1ccba9['markerName'])?_0x3db7cf['writer'][_0x1f8f('0xec')](_0x1f8f('0x36'),_0x49e81f):_0x3db7cf[_0x1f8f('0x31')][_0x1f8f('0x39')](_0x1f8f('0x36'),_0x49e81f));for(const _0x1f27af of _0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x16')](_0x1ccba9[_0x1f8f('0xd4')])[_0x1f8f('0xe7')]())_0x3db7cf[_0x1f8f('0x27')][_0x1f8f('0xb')](_0x1f27af,_0x503754[_0x1f8f('0xea')]);_0x3db7cf[_0x1f8f('0x27')][_0x1f8f('0xb')](_0x1ccba9['item'],_0x503754['name']);};_0x2b488c[_0x1f8f('0xf2')]['for'](_0x1f8f('0x32'))[_0x1f8f('0xe1')](_0x105af9=>{_0x105af9['on'](_0x1f8f('0x3b'),(_0x2c5667,_0x3d04da,_0x1ba6ba)=>{_0x1ba6ba[_0x1f8f('0x106')][_0x1f8f('0xdf')]&&_0x26b406({'showActiveMarkers':!0x1})(_0x2c5667,_0x3d04da,_0x1ba6ba);},{'priority':_0x1f8f('0x18')});}),_0x2b488c[_0x1f8f('0xf2')]['for']('dataDowncast')[_0x1f8f('0xb5')]({'model':_0x1f8f('0xe9'),'view':(_0x1705cc,_0x2d2096)=>_0x2d2096[_0x1f8f('0x106')][_0x1f8f('0xdf')]?null:{'group':'suggestion','name':_0x1705cc[_0x1f8f('0x11c')](_0x1f8f('0xe9')[_0x1f8f('0x132')]+0x1)}}),_0x2b488c['conversion'][_0x1f8f('0x0')](_0x1f8f('0x115'))[_0x1f8f('0x89')]({'view':{'name':_0x1f8f('0xe9'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x446374,{writer:_0x5a168a})=>{let _0x5713bd='suggestion:'+_0x446374['getAttribute'](_0x1f8f('0x126'))+':'+_0x446374[_0x1f8f('0x103')]('id');return _0x446374['getAttribute'](_0x1f8f('0x49'))&&(_0x5713bd+=':'+_0x446374[_0x1f8f('0x103')](_0x1f8f('0x49'))),_0x5a168a[_0x1f8f('0x11f')]('$marker',{'data-name':_0x5713bd});}}),_0x2b488c[_0x1f8f('0xf2')][_0x1f8f('0x0')](_0x1f8f('0x115'))[_0x1f8f('0x127')]({'view':_0x1f8f('0xe9')}),_0x2b488c[_0x1f8f('0xf2')]['for']('editingDowncast')[_0x1f8f('0xe1')](_0x1724fe=>{_0x1724fe['on'](_0x1f8f('0x3b'),_0x26b406(),{'priority':_0x1f8f('0xc8')});}),_0x2b488c[_0x1f8f('0xf2')]['for'](_0x1f8f('0x118'))[_0x1f8f('0xe1')](_0x461baf=>{_0x461baf['on'](_0x1f8f('0x29'),(_0x488f7f,_0x3ea4ce,_0x3931fa)=>{const _0x348fbd=_0x3931fa[_0x1f8f('0xdc')][_0x1f8f('0x10d')](_0x3ea4ce[_0x1f8f('0x9')]);if(_0x348fbd)for(const _0x39f979 of _0x348fbd)_0x39f979[_0x1f8f('0x26')]('addHighlight')||(_0x3931fa[_0x1f8f('0x31')][_0x1f8f('0x39')]([_0x1f8f('0xaf'),_0x1f8f('0x60'),_0x1f8f('0x36')],_0x39f979),_0x3931fa[_0x1f8f('0x31')][_0x1f8f('0xc0')](_0x1f8f('0x113'),_0x39f979),_0x3931fa[_0x1f8f('0xdc')][_0x1f8f('0xd5')](_0x39f979,_0x3ea4ce[_0x1f8f('0x9')]));},{'priority':_0x1f8f('0xc8')});}),_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd')][_0x1f8f('0x12b')](_0xd94c26=>{let _0x5d29cb=!0x1;const _0x5dda76=Array[_0x1f8f('0x108')](_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd')][_0x1f8f('0xa')][_0x1f8f('0x46')]()),_0x5521c1=new Set();for(const {name:_0x23158b,data:_0x28b366}of _0x5dda76){const {group:_0x1b5c5c,type:_0x5b6001,id:_0x31b5eb}=this[_0x1f8f('0x7c')](_0x23158b);if(_0x1f8f('0xe9')!==_0x1b5c5c)continue;const _0x8cf64=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x31b5eb);if(null!=_0x28b366[_0x1f8f('0xb7')]){'formatInline'==_0x5b6001&&(_0x5d29cb=_0x5d29cb||St(_0x28b366[_0x1f8f('0xb7')],_0x23158b,_0xd94c26,_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd8')]));if(_0x28b366['newRange'][_0x1f8f('0x75')]||'$graveyard'==_0x28b366[_0x1f8f('0xb7')]['root'][_0x1f8f('0xd6')]||'formatBlock'==_0x5b6001&&!vt(_0x28b366[_0x1f8f('0xb7')])||_0x1f8f('0xbd')==_0x5b6001&&!(!bt(_0x48584a=_0x28b366[_0x1f8f('0xb7')])&&!function(_0x23d0dc){return _0x23d0dc[_0x1f8f('0x95')][_0x1f8f('0x61')]==_0x23d0dc[_0x1f8f('0xc5')]['nodeBefore']&&_0x23d0dc[_0x1f8f('0x95')][_0x1f8f('0x9b')];}(_0x48584a)))_0xd94c26['removeMarker'](_0x23158b),_0x5d29cb=!0x0;else{if(!_0x8cf64||!_0x8cf64[_0x1f8f('0x74')])continue;_0x5521c1[_0x1f8f('0xe1')](_0x8cf64);}}}var _0x48584a;return _0x5521c1[_0x1f8f('0xc9')]>0x0&&(_0x5d29cb=!!this[_0x1f8f('0x85')](_0x5521c1)||_0x5d29cb),_0x5d29cb;}),_0x2b488c['model'][_0x1f8f('0xd')][_0x1f8f('0x12b')](_0x27e50f=>{let _0x449407=!0x1;for(const _0x1d3aff of _0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd')][_0x1f8f('0xa')][_0x1f8f('0x3f')]()){if(_0x1f8f('0x43')!=_0x1d3aff[_0x1f8f('0x136')])continue;const _0x111bc0=_0x1d3aff['position'][_0x1f8f('0xa3')](_0x1d3aff['length']);if(_0x111bc0[_0x1f8f('0x9b')])for(const _0x39f69a of this[_0x1f8f('0x30')][_0x1f8f('0x13d')]()){if(_0x39f69a[_0x1f8f('0x10')]||!_0x39f69a[_0x1f8f('0x74')])continue;if(_0x1f8f('0x99')!=_0x39f69a['type'])continue;const _0x291251=_0x39f69a[_0x1f8f('0x2c')]();if(_0x291251['start'][_0x1f8f('0x61')]!=_0x291251[_0x1f8f('0xc5')]['parent']&&_0x291251[_0x1f8f('0xc5')][_0x1f8f('0x7d')](_0x1d3aff['position'])){const _0x1a3740=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x68')](_0x291251['start'],_0x111bc0);_0x27e50f[_0x1f8f('0x3a')](_0x39f69a[_0x1f8f('0x94')](),{'range':_0x1a3740}),_0x449407=!0x0;}}}return _0x449407;}),_0x2b488c['model']['markers']['on'](_0x1f8f('0x4c'),(_0x538b88,_0x5991ee,_0x5a3cef)=>{if(null==_0x5a3cef){const {id:_0xd3024e}=this['_splitMarkerName'](_0x5991ee[_0x1f8f('0xea')]),_0x3f099a=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0xd3024e);_0x3f099a&&_0x3f099a[_0x1f8f('0x12d')](_0x5991ee[_0x1f8f('0xea')]);}}),_0x2b488c['model']['document']['on'](_0x1f8f('0x119'),()=>{const _0x3ae84e=Array[_0x1f8f('0x108')](_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd')]['differ']['getChangedMarkers']())['filter'](_0xf13df8=>'suggestion'===this['_splitMarkerName'](_0xf13df8[_0x1f8f('0xea')])['group']);if(0x0===_0x3ae84e[_0x1f8f('0x132')])return;_0x3ae84e[_0x1f8f('0x123')]((_0x18411e,_0x1c2b5a)=>{const _0x4b5bf8=_0x18411e[_0x1f8f('0x128')][_0x1f8f('0x50')],_0x46bdfd=_0x1c2b5a[_0x1f8f('0x128')][_0x1f8f('0x50')];return null===_0x4b5bf8&&null===_0x46bdfd?0x0:null===_0x4b5bf8&&null!==_0x46bdfd?-0x1:null!==_0x4b5bf8&&null===_0x46bdfd?0x1:_0x4b5bf8[_0x1f8f('0x95')][_0x1f8f('0x84')](_0x46bdfd[_0x1f8f('0x95')])?-0x1:0x1;});const _0x591989=new Set(),_0x3da230=new Set();for(const {name:_0x18180e,data:_0x4dba68}of _0x3ae84e){const {id:_0x41dc5f}=this['_splitMarkerName'](_0x18180e);if(null===_0x4dba68[_0x1f8f('0x50')]){const _0x48e0fb=this[_0x1f8f('0x59')](_0x18180e);_0x3da230[_0x1f8f('0xe1')](_0x48e0fb);}else{const _0x302778=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x41dc5f);null!==_0x4dba68[_0x1f8f('0xb7')]||_0x302778[_0x1f8f('0x74')]?(_0x591989[_0x1f8f('0xe1')](_0x302778[_0x1f8f('0x8d')]),_0x3da230[_0x1f8f('0xe1')](_0x302778)):this[_0x1f8f('0x77')](_0x302778);}}_0x3da230['size']>0x0&&this[_0x1f8f('0xe6')](_0x3da230);for(const _0x562b86 of _0x591989)this[_0x1f8f('0xf5')](_0x1f8f('0x78'),_0x562b86);}),_0x2b488c[_0x1f8f('0x7e')]['on'](_0x1f8f('0x70'),(_0x3a461a,_0x5498a4)=>{const _0x36ad5f=_0x5498a4[0x0];if(!this[_0x1f8f('0x30')][_0x1f8f('0xc9')])return;if(!_0x36ad5f[_0x1f8f('0x79')])return;if(_0x36ad5f[_0x1f8f('0xcd')]['isUndo']||!_0x36ad5f[_0x1f8f('0xcd')][_0x1f8f('0x8c')])return;let _0x17971f,_0xac1779;switch(_0x36ad5f[_0x1f8f('0x136')]){case _0x1f8f('0x43'):_0x17971f=_0x2b488c[_0x1f8f('0x7e')]['createPositionAt'](_0x36ad5f[_0x1f8f('0x13e')]),_0xac1779=_0x17971f['getShiftedBy'](_0x36ad5f['howMany']);break;case _0x1f8f('0x11b'):_0x17971f=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x3d')](_0x36ad5f[_0x1f8f('0xd0')]),_0xac1779=_0x2b488c['model'][_0x1f8f('0x3d')](_0x36ad5f[_0x1f8f('0x10c')]);break;case'move':_0x17971f=_0x2b488c[_0x1f8f('0x7e')]['createPositionAt'](_0x36ad5f[_0x1f8f('0x1a')]),_0xac1779=_0x17971f[_0x1f8f('0xa3')](_0x36ad5f[_0x1f8f('0x21')]);break;default:return;}const _0x2099b3=_0x2b488c[_0x1f8f('0x7e')]['createRange'](_0x17971f,_0xac1779);_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xc')](()=>{for(const {suggestion:_0x233e81,meta:_0x52dae8}of this[_0x1f8f('0xa7')](_0x2099b3)){if(_0x233e81[_0x1f8f('0x10')])continue;if(_0x1f8f('0x10a')==_0x233e81[_0x1f8f('0x136')])continue;const _0x52c8bf=_0x233e81[_0x1f8f('0x128')]&&_0x233e81[_0x1f8f('0x128')][_0x1f8f('0x58')];(_0x1f8f('0x99')!=_0x233e81['type']||_0x1f8f('0x11b')==_0x36ad5f['type']&&!_0x52c8bf)&&(_0x52dae8[_0x1f8f('0x114')]||_0x1f8f('0x17')==_0x233e81[_0x1f8f('0x136')]&&_0x52dae8['isOwn']||_0x233e81[_0x1f8f('0x2c')]()[_0x1f8f('0x64')](_0x2099b3)&&this[_0x1f8f('0x6b')](_0x233e81,_0x17971f,_0xac1779));}});},{'priority':_0x1f8f('0x55')}),_0x2b488c[_0x1f8f('0x7e')]['on'](_0x1f8f('0xda'),(_0x20f973,_0x17b044)=>{const _0x479900=_0x17b044[0x0],_0xfa6544=_0x17b044[0x1];if(_0xfa6544&&_0xfa6544[_0x1f8f('0xf1')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x1f8f('0xef')][_0x1f8f('0x34')])return;if(_0x479900[_0x1f8f('0x75')])return;const _0x157b9e=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd8')],{start:_0x2f6ebe,end:_0x3ceac7}=_0x479900[_0x1f8f('0x2c')](),_0x5d11fc=_0x2f6ebe['nodeAfter']&&_0x157b9e['isObject'](_0x2f6ebe[_0x1f8f('0x137')])?null:_0x157b9e[_0x1f8f('0x5a')](_0x2f6ebe,_0x1f8f('0x10e')),_0x3c1bab=_0x3ceac7[_0x1f8f('0xff')]&&_0x157b9e[_0x1f8f('0x1b')](_0x3ceac7['nodeBefore'])?null:_0x157b9e[_0x1f8f('0x5a')](_0x3ceac7,'backward'),_0x15b924=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x68')](_0x5d11fc?_0x5d11fc[_0x1f8f('0x95')]:_0x2f6ebe,_0x3c1bab?_0x3c1bab[_0x1f8f('0xc5')]:_0x3ceac7);_0x2b488c['model'][_0x1f8f('0xc')](_0x3074cf=>{this[_0x1f8f('0x1f')](_0x15b924);const _0x3e3b52=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd8')][_0x1f8f('0x5a')](_0x15b924[_0x1f8f('0x95')]);_0x479900['is'](_0x1f8f('0xcb'))?_0x3074cf['setSelection'](_0x3e3b52):_0x479900[_0x1f8f('0x5')](_0x3e3b52);}),_0x20f973[_0x1f8f('0x133')]();},{'priority':_0x5af24d[_0x1f8f('0x13f')]+0xa}),_0x2b488c['model']['on'](_0x1f8f('0x1'),(_0x133a5f,_0x2a0952)=>{const _0x2254b3=_0x2a0952[_0x2a0952[_0x1f8f('0x132')]-0x1];_0x2254b3&&_0x2254b3[_0x1f8f('0xf1')]||this[_0x1f8f('0xbb')]||this[_0x1f8f('0xef')][_0x1f8f('0x34')]&&(_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xc')](()=>{let _0x1131d7=_0x2b488c['model'][_0x1f8f('0x1')](_0x2a0952[0x0],_0x2a0952[0x1],_0x2a0952[0x2],_0x2a0952[0x3],{'forceDefaultExecution':!0x0});if(!_0x1131d7)return;_0x133a5f[_0x1f8f('0x62')]=_0x1131d7['clone']();const _0x374962=_0x1131d7['end'][_0x1f8f('0xff')],_0x21cfd3=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd8')];_0x374962&&_0x21cfd3[_0x1f8f('0x13')](_0x374962)&&!_0x21cfd3[_0x1f8f('0x1b')](_0x374962)&&(_0x1131d7=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x68')](_0x1131d7[_0x1f8f('0x95')],_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x3d')](_0x374962,'end'))),this['markInsertion'](_0x1131d7);}),_0x133a5f[_0x1f8f('0x133')]());},{'priority':'high'}),this[_0x1f8f('0xef')]=new _0x4c2396(_0x2b488c,this[_0x1f8f('0xee')]),this[_0x1f8f('0xa0')][_0x1f8f('0xdd')]['add'](_0x1f8f('0x97'),this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2d51b3=new _0x6ab048(_0x2b488c,this[_0x1f8f('0x30')]);_0x2b488c[_0x1f8f('0xdd')]['add'](_0x1f8f('0xa5'),_0x2d51b3),this[_0x1f8f('0x5f')]('acceptSuggestion');const _0xb175b5=new _0x4e4195(_0x2b488c,this['_suggestions']);_0x2b488c[_0x1f8f('0xdd')][_0x1f8f('0xe1')](_0x1f8f('0x4f'),_0xb175b5),this[_0x1f8f('0x5f')](_0x1f8f('0x4f')),_0x2b488c[_0x1f8f('0xdd')]['add'](_0x1f8f('0xd9'),new _0x38327e(_0x2b488c,_0x2d51b3,this[_0x1f8f('0x30')])),this['enableCommand'](_0x1f8f('0xd9')),_0x2b488c['commands']['add'](_0x1f8f('0x7b'),new _0x41b80b(_0x2b488c,_0xb175b5,this[_0x1f8f('0x30')])),this[_0x1f8f('0x5f')]('discardAllSuggestions'),_0x2b488c[_0x1f8f('0xdd')][_0x1f8f('0xe1')](_0x1f8f('0x96'),new _0x1be7be(_0x2b488c,_0x2d51b3,this[_0x1f8f('0x30')])),this[_0x1f8f('0x5f')](_0x1f8f('0x96')),_0x2b488c[_0x1f8f('0xdd')][_0x1f8f('0xe1')](_0x1f8f('0x139'),new _0xf9d859(_0x2b488c,_0xb175b5,this['_suggestions'])),this[_0x1f8f('0x5f')](_0x1f8f('0x139'));const _0x311912=_0x2b488c[_0x1f8f('0xb6')]['get'](_0x1f8f('0x5c'));this[_0x1f8f('0x38')](_0x311912,_0x1f8f('0x4d'),(_0x137223,{threadId:_0x113323})=>{const _0x4a9b27=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x113323);_0x4a9b27&&_0x4a9b27['commentThread']&&0x1===_0x4a9b27[_0x1f8f('0xb2')][_0x1f8f('0x132')]&&this['_updateSuggestionData'](_0x113323,{'hasComments':!0x0});},{'priority':_0x1f8f('0x111')}),this[_0x1f8f('0x38')](_0x311912,_0x1f8f('0xbf'),(_0x2916de,{threadId:_0x25d75f})=>{const _0x50dac1=this['_suggestions'][_0x1f8f('0x12a')](_0x25d75f);_0x50dac1&&_0x50dac1[_0x1f8f('0xb2')]&&!_0x50dac1['commentThread'][_0x1f8f('0x132')]&&this[_0x1f8f('0x100')](_0x25d75f,{'hasComments':!0x1});},{'priority':_0x1f8f('0x111')});}set[_0x1f8f('0xb3')](_0x48dd7c){if(this[_0x1f8f('0x11')])throw new _0x3b3b32('track-changes-adapter-already-set',this);this[_0x1f8f('0x11')]=_0x48dd7c;}get[_0x1f8f('0xb3')](){return this[_0x1f8f('0x11')];}[_0x1f8f('0xdb')]({skipNotAttached:_0x10609f=!0x1,toJSON:_0x25fa41=!0x1}={}){const _0x4f0785=[];for(const _0x19b112 of this['_suggestions']['values']())_0x10609f&&!_0x19b112['isInContent']||_0x4f0785[_0x1f8f('0x71')](_0x19b112);return _0x25fa41?_0x4f0785['map'](_0x583824=>_0x583824['toJSON']()):_0x4f0785;}['getSuggestion'](_0x396011){const _0x1163ac=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x396011);if(!_0x1163ac)throw new _0x3b3b32(_0x1f8f('0x138'),this);return _0x1163ac;}[_0x1f8f('0xf8')](_0x3379fe){return this['_suggestions']['has'](_0x3379fe);}[_0x1f8f('0x11e')](_0x4d0b2b){const {id:_0x5d3463,authorId:_0x5eb968,attributes:_0x183e40}=_0x4d0b2b,[_0x1e3a33,_0x5a44b6]=_0x4d0b2b[_0x1f8f('0x136')]['split'](':'),_0x4bac6a=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x5d3463)||this[_0x1f8f('0xf9')](_0x1e3a33,_0x5a44b6,_0x5d3463,_0x5eb968,_0x183e40);switch(this['_addThreadToSuggestion'](_0x4bac6a),this[_0x1f8f('0xca')](_0x4bac6a,_0x1e3a33,_0x5a44b6||null,_0x5eb968),_0x4bac6a[_0x1f8f('0x86')]=_0x4d0b2b['createdAt'],_0x4d0b2b['data']&&(_0x4bac6a['data']=_0x4d0b2b[_0x1f8f('0x128')]),_0x4d0b2b[_0x1f8f('0x110')]&&(_0x4bac6a[_0x1f8f('0x110')]=_0x4d0b2b[_0x1f8f('0x110')]),this[_0x1f8f('0x11')]&&this[_0x1f8f('0x11')]['addSuggestion']||(_0x4bac6a[_0x1f8f('0xc6')]=!0x0),this[_0x1f8f('0x3e')][_0x1f8f('0x12a')](_0x4bac6a)){case _0x1f8f('0x131'):this[_0x1f8f('0x3e')]['set'](_0x4bac6a,_0x1f8f('0xc7'));break;case _0x1f8f('0xc3'):_0x4bac6a['isInContent']?(this[_0x1f8f('0x3e')][_0x1f8f('0xa8')](_0x4bac6a,_0x1f8f('0xd1')),this[_0x1f8f('0xf5')](_0x1f8f('0x35'),_0x4bac6a)):this[_0x1f8f('0x3e')][_0x1f8f('0xa8')](_0x4bac6a,_0x1f8f('0x33'));}return _0x4bac6a;}[_0x1f8f('0xa5')](_0x3bf823){this['forceDefaultExecution'](()=>{this[_0x1f8f('0xa0')][_0x1f8f('0x7e')][_0x1f8f('0xc')](()=>{for(const _0x9453c6 of _0x3bf823[_0x1f8f('0xfb')]())_0x9453c6[_0x1f8f('0x76')]();});});}[_0x1f8f('0x4f')](_0x174edd){this[_0x1f8f('0xf1')](()=>{this[_0x1f8f('0xa0')][_0x1f8f('0x7e')][_0x1f8f('0xc')](()=>{for(const _0x3ad1a4 of _0x174edd[_0x1f8f('0xfb')]())_0x3ad1a4[_0x1f8f('0x25')]();});});}[_0x1f8f('0x5f')](_0x406033,_0x29fedc){const _0x169408=this[_0x1f8f('0xa0')][_0x1f8f('0xdd')][_0x1f8f('0x12a')](_0x406033);if(!_0x169408)throw new _0x3b3b32('track-changes-command-not-found',this,{'commandName':_0x406033});this[_0x1f8f('0xee')][_0x1f8f('0xe1')](_0x169408),_0x29fedc&&_0x169408['on'](_0x1f8f('0x8e'),(_0x51a802,_0x2a256b)=>{this['trackChangesCommand']['value']&&(this[_0x1f8f('0xbb')]||_0x2a256b[_0x1f8f('0x132')]>0x0&&_0x2a256b[_0x2a256b[_0x1f8f('0x132')]-0x1]&&_0x2a256b[_0x2a256b[_0x1f8f('0x132')]-0x1]['forceDefaultExecution']||(_0x29fedc((..._0x3057d1)=>_0x169408[_0x1f8f('0x8e')](..._0x3057d1,{'forceDefaultExecution':!0x0}),..._0x2a256b),_0x51a802[_0x1f8f('0x133')]()));},{'priority':_0x1f8f('0xc8')});}[_0x1f8f('0xf1')](_0x3feb6a){let _0x1e041b,_0xed0d39;const _0x2132c6=this[_0x1f8f('0xbb')];this[_0x1f8f('0xbb')]=!0x0;try{_0x1e041b=_0x3feb6a();}catch(_0x5e3288){_0xed0d39=_0x5e3288;}return _0x2132c6||(this[_0x1f8f('0xbb')]=!0x1),_0xed0d39&&_0x3b3b32[_0x1f8f('0x8b')](_0xed0d39,this),_0x1e041b;}[_0x1f8f('0xe2')](_0x1d8d2d,_0x1a2108=null,_0x2ee890={}){if(_0x1d8d2d[_0x1f8f('0x75')])return null;const _0x51756e=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'];for(const {suggestion:_0x109b70,meta:_0x29a2db}of this[_0x1f8f('0xa7')](_0x1d8d2d,'insertion'))if(_0x29a2db[_0x1f8f('0xf4')]){if(!_0x29a2db['isNextTo'])return _0x109b70;if(_0x1a2108==_0x109b70[_0x1f8f('0x11d')]){const _0x1783d9=_0x109b70[_0x1f8f('0x2c')]();return _0x1783d9[_0x1f8f('0x95')][_0x1f8f('0x7d')](_0x1d8d2d[_0x1f8f('0xc5')])?this[_0x1f8f('0x3c')](_0x109b70,this[_0x1f8f('0x8a')]['createRange'](_0x1d8d2d[_0x1f8f('0x95')],_0x1783d9['end'])):this[_0x1f8f('0x3c')](_0x109b70,this['_model'][_0x1f8f('0x68')](_0x1783d9[_0x1f8f('0x95')],_0x1d8d2d[_0x1f8f('0xc5')])),_0x109b70;}}const _0x482b75=_0x20487a(),_0x54f018=_0x51756e['id'],_0x40d1a2=_0x1a2108?_0x1f8f('0xf3')+_0x1a2108:_0x1f8f('0x17'),_0x3656ee=this[_0x1f8f('0x8')]({'id':_0x482b75,'type':_0x40d1a2,'createdAt':new Date(),'authorId':_0x54f018,'attributes':_0x2ee890});return this[_0x1f8f('0xe4')](_0x40d1a2,_0x482b75,_0x54f018,_0x1d8d2d),_0x3656ee;}[_0x1f8f('0x87')](_0xde547b,_0x52b268='multi',_0x44e951={}){const _0x304651=this['editor'][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'],_0x378629=this['_suggestionFactory']['getSuggestionCallback'](_0x1f8f('0x17'),_0x52b268,'join');for(const _0x12a4d5 of this[_0x1f8f('0xdb')]())if(_0x12a4d5[_0x1f8f('0x121')]['id']==_0x304651['id']&&'insertion'==_0x12a4d5[_0x1f8f('0x136')]&&_0x12a4d5[_0x1f8f('0x11d')]==_0x52b268&&(_0x378629(_0x12a4d5['getRanges'](),_0xde547b)||_0x378629(_0xde547b,_0x12a4d5['getRanges']()))){for(const _0xae2a1d of _0xde547b)_0x12a4d5[_0x1f8f('0x40')](_0xae2a1d);return _0x12a4d5;}for(const _0xd2cf44 of _0xde547b)for(const {suggestion:_0xc6ad88,meta:_0xbd102b}of this[_0x1f8f('0xa7')](_0xd2cf44,'insertion')){if(!_0xbd102b[_0x1f8f('0xf4')])continue;let _0x435aa8=!0x0;for(const _0x1210bf of _0xc6ad88[_0x1f8f('0xa2')]())for(const _0x78ccfb of _0xde547b)if(!_0x1210bf[_0x1f8f('0x64')](_0x78ccfb)){_0x435aa8=!0x1;break;}if(_0x435aa8)return _0xc6ad88;}const _0x9cbf41=_0x20487a(),_0x569def=_0x304651['id'],_0xddf6ef='insertion:'+_0x52b268,_0x2230f6=this[_0x1f8f('0x8')]({'id':_0x9cbf41,'type':_0xddf6ef,'createdAt':new Date(),'authorId':_0x569def,'attributes':_0x44e951});for(const _0xf7d2e5 of _0xde547b)this[_0x1f8f('0xe4')](_0xddf6ef,_0x9cbf41,_0x569def,_0xf7d2e5,_0x291614[_0x1f8f('0x4e')]());return _0x2230f6;}[_0x1f8f('0x135')](_0x165526,_0x498ab9,_0x352e80=null,_0x106621={}){if(_0x352e80=_0x352e80||It(_0x498ab9),_0x165526[_0x1f8f('0x75')])return;const _0x19287d=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'],_0x5bef18=[];for(const {suggestion:_0x4acb38,meta:_0x28fd25}of this[_0x1f8f('0xa7')](_0x165526,_0x1f8f('0x17')))_0x28fd25[_0x1f8f('0xf4')]&&!_0x28fd25[_0x1f8f('0x91')]&&_0x5bef18[_0x1f8f('0x71')](..._0x4acb38[_0x1f8f('0xa2')]());const _0x3d5ee3=function(_0x4f522a,_0x1d0b16){const _0x4a477b=[];for(const _0x4257fd of _0x1d0b16){const _0x1c01c4=_0x4f522a[_0x1f8f('0xfa')](_0x4257fd);_0x1c01c4&&_0x4a477b['push'](_0x1c01c4);}return _0x4a477b;}(_0x165526,_0x5bef18),_0x2dcb47=function(_0x5dc2b1,_0x521d44){const _0x2c2f2e=[_0x5dc2b1];for(const _0xeecd1d of _0x521d44){let _0x46654f=0x0;for(;_0x46654f<_0x2c2f2e[_0x1f8f('0x132')];){const _0x17dd71=_0x2c2f2e[_0x46654f][_0x1f8f('0x10f')](_0xeecd1d);_0x2c2f2e[_0x1f8f('0x13b')](_0x46654f,0x1,..._0x17dd71),_0x46654f+=_0x17dd71[_0x1f8f('0x132')];}}return _0x2c2f2e;}(_0x165526,_0x5bef18);_0x3d5ee3[_0x1f8f('0x132')]&&this[_0x1f8f('0x8a')][_0x1f8f('0xc')](()=>{for(const _0x124c63 of _0x3d5ee3){const _0x51af26=this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x1f8f('0x10a'),_0x352e80,_0x1f8f('0x76'));this[_0x1f8f('0xf1')](()=>_0x51af26([_0x124c63],_0x498ab9,_0x106621));}});for(const _0xda3761 of _0x2dcb47){let _0x29d0c3=null,_0x3604b3=_0xda3761[_0x1f8f('0x95')],_0x1f7dd1=_0xda3761[_0x1f8f('0xc5')];for(const {suggestion:_0x3ba809,meta:_0x188748}of this[_0x1f8f('0xa7')](_0xda3761,_0x1f8f('0x10a'))){if(!_0x188748[_0x1f8f('0xf4')])continue;if(_0x3ba809[_0x1f8f('0x11d')]!=_0x352e80)continue;const _0x909a4a=_0x3ba809['getFirstRange']();if(_0x909a4a['containsRange'](_0xda3761,!0x0))return;_0x3604b3=_0x3604b3[_0x1f8f('0x84')](_0x909a4a[_0x1f8f('0x95')])?_0x3604b3:_0x909a4a[_0x1f8f('0x95')],_0x1f7dd1=_0x1f7dd1[_0x1f8f('0x5e')](_0x909a4a[_0x1f8f('0xc5')])?_0x1f7dd1:_0x909a4a['end'],_0x29d0c3?_0x909a4a[_0x1f8f('0x95')][_0x1f8f('0x84')](_0x29d0c3[_0x1f8f('0x2c')]()[_0x1f8f('0x95')])?(_0x29d0c3[_0x1f8f('0x109')](),_0x29d0c3=_0x3ba809):_0x3ba809['removeMarkers']():_0x29d0c3=_0x3ba809;}const _0x1f82f3=this['_model'][_0x1f8f('0x68')](_0x3604b3,_0x1f7dd1);if(_0x29d0c3)this[_0x1f8f('0x3c')](_0x29d0c3,_0x1f82f3);else{const _0x12e318=_0x20487a(),_0x5a8452=_0x19287d['id'];this[_0x1f8f('0x8')]({'id':_0x12e318,'type':_0x1f8f('0x54')+_0x352e80,'data':_0x498ab9,'createdAt':new Date(),'authorId':_0x5a8452,'attributes':_0x106621}),this[_0x1f8f('0xe4')]('formatInline:'+_0x352e80,_0x12e318,_0x5a8452,_0x1f82f3);}}}[_0x1f8f('0x117')](_0x3dfb4c,_0x63fd3e,_0x3aab54=[],_0x4ec41c=null,_0x55e6e9={}){_0x63fd3e['formatGroupId']||(_0x63fd3e[_0x1f8f('0xd7')]=_0x63fd3e['commandName']),_0x63fd3e[_0x1f8f('0x58')]=_0x3dfb4c['is']('range'),_0x4ec41c=_0x4ec41c||It(_0x63fd3e);const _0x3e13ff=_0x3aab54[_0x1f8f('0xb8')](_0x253b24=>At(_0x253b24,this[_0x1f8f('0x8a')])),_0x3e77a6=_0x3dfb4c['is'](_0x1f8f('0x72'))?_0x3dfb4c:At(_0x3dfb4c,this[_0x1f8f('0x8a')]);_0x3e13ff[_0x1f8f('0x71')](_0x3e77a6);let _0x1c35c2=!0x0;for(const _0x1db920 of _0x3e13ff)if(!this[_0x1f8f('0x2a')](_0x1db920)){_0x1c35c2=!0x1;break;}if(_0x1c35c2){const _0x58e696=this[_0x1f8f('0x9e')]['getSuggestionCallback'](_0x1f8f('0x99'),_0x4ec41c,_0x1f8f('0x76'));return void this[_0x1f8f('0xf1')](()=>_0x58e696([_0x3e77a6],_0x63fd3e,_0x55e6e9));}let _0xcacefa=null,_0x4aab5f=_0x3e77a6['start'],_0x544ddc=_0x3e77a6[_0x1f8f('0xc5')];for(const {suggestion:_0x2f4253,meta:_0x50e672}of this[_0x1f8f('0xa7')](_0x3e77a6,'formatBlock')){if(!_0x50e672['isOwn']||_0x50e672['isNextTo']||_0x50e672[_0x1f8f('0x114')]||_0x50e672[_0x1f8f('0x91')])continue;if(_0x2f4253[_0x1f8f('0x128')][_0x1f8f('0xd7')]!=_0x63fd3e[_0x1f8f('0xd7')])continue;const _0x3e95fc=_0x2f4253[_0x1f8f('0x2c')]();if(_0x2f4253['subType']==_0x4ec41c){if(_0x3e95fc[_0x1f8f('0x64')](_0x3e77a6,!0x0))return;_0x4aab5f=_0x4aab5f['isBefore'](_0x3e95fc[_0x1f8f('0x95')])?_0x4aab5f:_0x3e95fc[_0x1f8f('0x95')],_0x544ddc=_0x544ddc['isAfter'](_0x3e95fc[_0x1f8f('0xc5')])?_0x544ddc:_0x3e95fc['end'],_0xcacefa?_0x3e95fc['start'][_0x1f8f('0x84')](_0xcacefa[_0x1f8f('0x2c')]()[_0x1f8f('0x95')])?(_0xcacefa[_0x1f8f('0x109')](),_0xcacefa=_0x2f4253):_0x2f4253[_0x1f8f('0x109')]():_0xcacefa=_0x2f4253;}else{const _0x4235ec=_0x3e77a6['getIntersection'](_0x3e95fc);this[_0x1f8f('0xaa')](_0x2f4253,_0x4235ec);}}const _0xaa6b92=this['editor']['plugins'][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'],_0x502cb8=_0x20487a(),_0x2b4e99=_0xaa6b92['id'];_0xcacefa?this[_0x1f8f('0x3c')](_0xcacefa,this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x4aab5f,_0x544ddc)):(this[_0x1f8f('0x8')]({'id':_0x502cb8,'type':'formatBlock:'+_0x4ec41c,'data':_0x63fd3e,'createdAt':new Date(),'authorId':_0x2b4e99,'attributes':_0x55e6e9}),this[_0x1f8f('0xe4')](_0x1f8f('0x12f')+_0x4ec41c,_0x502cb8,_0x2b4e99,this['_model'][_0x1f8f('0x68')](_0x4aab5f,_0x544ddc)));}[_0x1f8f('0x1c')](_0x534298,_0x653436,_0x546fe1=[],_0x2e59a5=null,_0x343ee5={}){_0x653436[_0x1f8f('0xd7')]||(_0x653436[_0x1f8f('0xd7')]=_0x653436[_0x1f8f('0xfc')]),_0x653436[_0x1f8f('0x58')]=!0x1,_0x2e59a5=_0x2e59a5||It(_0x653436);const _0x4b88b2=_0x546fe1[_0x1f8f('0xb8')](_0x161e13=>At(_0x161e13,this[_0x1f8f('0x8a')])),_0x4d95a4=_0x534298[_0x1f8f('0xb8')](_0x14c1ec=>At(_0x14c1ec,this['_model']));_0x4b88b2[_0x1f8f('0x71')](..._0x4d95a4);let _0x4f2f71=!0x0;for(const _0x2666bc of _0x4b88b2)if(!this[_0x1f8f('0x2a')](_0x2666bc)){_0x4f2f71=!0x1;break;}if(_0x4f2f71){const _0x340553=this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x1f8f('0x99'),_0x2e59a5,_0x1f8f('0x76'));return void this[_0x1f8f('0xf1')](()=>_0x340553(_0x4d95a4,_0x653436,_0x343ee5));}const _0x1c3b7c=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'];for(const _0x5b23fc of this[_0x1f8f('0xdb')]()){if(_0x5b23fc['author']['id']!=_0x1c3b7c['id'])continue;if('formatBlock'!=_0x5b23fc[_0x1f8f('0x136')]||_0x5b23fc['data']['formatGroupId']!=_0x653436[_0x1f8f('0xd7')])continue;const _0x5935c5=_0x5b23fc[_0x1f8f('0x11d')]==_0x2e59a5;for(let _0x101259=0x0;_0x101259<_0x4d95a4[_0x1f8f('0x132')];_0x101259++){const _0x3e1127=_0x4d95a4[_0x101259];for(const _0x4f6708 of _0x5b23fc[_0x1f8f('0x129')]()){const _0x265c99=_0x4f6708['getRange']();if(_0x3e1127['isEqual'](_0x265c99)){_0x5935c5?(_0x4d95a4[_0x1f8f('0x13b')](_0x101259,0x1),_0x101259--):_0x5b23fc[_0x1f8f('0x4a')](_0x4f6708['name']);break;}}}}if(0x0==_0x4d95a4[_0x1f8f('0x132')])return;const _0x3e32bb=this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x1f8f('0x99'),_0x2e59a5,_0x1f8f('0xed'));for(const _0x4ce407 of this[_0x1f8f('0xdb')]())if(_0x4ce407[_0x1f8f('0x121')]['id']==_0x1c3b7c['id']&&_0x1f8f('0x99')==_0x4ce407[_0x1f8f('0x136')]&&_0x4ce407[_0x1f8f('0x128')][_0x1f8f('0xd7')]==_0x653436[_0x1f8f('0xd7')]&&_0x4ce407[_0x1f8f('0x11d')]==_0x2e59a5&&(_0x3e32bb(_0x4ce407[_0x1f8f('0xa2')](),_0x4d95a4)||_0x3e32bb(_0x4d95a4,_0x4ce407[_0x1f8f('0xa2')]()))){for(const _0x16f5f0 of _0x4d95a4)_0x4ce407['addRange'](_0x16f5f0);return _0x4ce407;}const _0x5e1c73=_0x20487a(),_0x4bcbb4=_0x1c3b7c['id'],_0x5818a1=_0x1f8f('0x12f')+_0x2e59a5,_0x576baf=this[_0x1f8f('0x8')]({'id':_0x5e1c73,'type':_0x5818a1,'data':_0x653436,'createdAt':new Date(),'authorId':_0x4bcbb4,'attributes':_0x343ee5});for(const _0x55f2fd of _0x4d95a4)this[_0x1f8f('0xe4')](_0x5818a1,_0x5e1c73,_0x4bcbb4,_0x55f2fd,_0x291614[_0x1f8f('0x4e')]());return _0x576baf;}[_0x1f8f('0x1f')](_0x11a396,_0x14440c=null,_0x117334={}){if(_0x11a396['isCollapsed'])return null;const _0x542a44=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')]('Users')['me'],_0x2b7b57=new _0x1a80a0(_0x11a396[_0x1f8f('0x95')],_0x11a396[_0x1f8f('0xc5')]);for(const {suggestion:_0x418c22,meta:_0x4e5bc6}of this[_0x1f8f('0xa7')](_0x2b7b57,_0x1f8f('0x17')))if(_0x4e5bc6[_0x1f8f('0xf4')]&&!_0x4e5bc6[_0x1f8f('0xde')]){if(_0x418c22[_0x1f8f('0x10')]){const _0xe4813d=_0x418c22[_0x1f8f('0xa2')]()[_0x1f8f('0x53')](_0x1a4baa=>_0x1f8f('0x122')!=_0x1a4baa[_0x1f8f('0x66')][_0x1f8f('0xd6')]);_0xe4813d[_0x1f8f('0x125')](_0x2bceee=>_0x2b7b57[_0x1f8f('0x64')](_0x2bceee,!0x0))&&_0x418c22[_0x1f8f('0x25')]();if(_0xe4813d[_0x1f8f('0x7a')](_0x179a5e=>_0x179a5e[_0x1f8f('0x64')](_0x2b7b57,!0x0))){const _0xcb783f=this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x1f8f('0xbd'),_0x14440c,'accept');return this[_0x1f8f('0xf1')](()=>_0xcb783f([_0x2b7b57],null,_0x117334)),null;}}else{const _0xcef938=_0x2b7b57[_0x1f8f('0xfa')](_0x418c22[_0x1f8f('0x2c')]());_0x418c22[_0x1f8f('0xf0')]([_0xcef938],null,_0x117334);}}if(_0x2b7b57[_0x1f8f('0xc1')](),_0x2b7b57[_0x1f8f('0x75')]||_0x1f8f('0x122')==_0x2b7b57[_0x1f8f('0x66')]['rootName'])return null;let _0x11d4a9=null,_0x21718d=_0x2b7b57[_0x1f8f('0x95')],_0x3aed4a=_0x2b7b57[_0x1f8f('0xc5')];for(const {suggestion:_0x1c35a1,meta:_0x1941e0}of this[_0x1f8f('0xa7')](_0x2b7b57,_0x1f8f('0xbd')))if(_0x1941e0[_0x1f8f('0xf4')]){if(_0x1c35a1['isMultiRange']){let _0x51b937=!0x0;for(const _0x509c81 of _0x1c35a1[_0x1f8f('0xa2')]()){if(_0x509c81[_0x1f8f('0x64')](_0x2b7b57,!0x0))return _0x1c35a1;_0x2b7b57[_0x1f8f('0x64')](_0x509c81)||(_0x51b937=!0x1);}_0x51b937&&_0x1c35a1[_0x1f8f('0x25')]();}else{const _0x1383a7=_0x1c35a1[_0x1f8f('0x2c')]();if(_0x1383a7['containsRange'](_0x2b7b57,!0x0))return _0x1c35a1;_0x21718d=_0x21718d['isBefore'](_0x1383a7[_0x1f8f('0x95')])?_0x21718d:_0x1383a7[_0x1f8f('0x95')],_0x3aed4a=_0x3aed4a[_0x1f8f('0x5e')](_0x1383a7[_0x1f8f('0xc5')])?_0x3aed4a:_0x1383a7[_0x1f8f('0xc5')],_0x11d4a9?_0x1383a7[_0x1f8f('0x95')]['isBefore'](_0x11d4a9[_0x1f8f('0x2c')]()['start'])?(_0x11d4a9[_0x1f8f('0x109')](),_0x11d4a9=_0x1c35a1):_0x1c35a1[_0x1f8f('0x109')]():_0x11d4a9=_0x1c35a1;}}if(_0x11d4a9)return this['_setSuggestionRange'](_0x11d4a9,this['_model'][_0x1f8f('0x68')](_0x21718d,_0x3aed4a)),_0x11d4a9;{const _0x565afb=_0x20487a(),_0x2e2998=this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x21718d,_0x3aed4a),_0x244815=_0x542a44['id'],_0x2e551b=_0x14440c?_0x1f8f('0x13a')+_0x14440c:_0x1f8f('0xbd'),_0x5b466b=this[_0x1f8f('0x8')]({'id':_0x565afb,'type':_0x2e551b,'createdAt':new Date(),'authorId':_0x244815,'attributes':_0x117334});return this[_0x1f8f('0xe4')](_0x2e551b,_0x565afb,_0x244815,_0x2e2998),_0x5b466b;}}['markMultiRangeDeletion'](_0x20dea7,_0x56b42b=_0x1f8f('0xa4'),_0x3deb9e={}){const _0x3bbb79=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'],_0x3d7cb9=_0x20dea7[_0x1f8f('0xb8')](_0x355a19=>new _0x1a80a0(_0x355a19['start'],_0x355a19[_0x1f8f('0xc5')])),_0x42de1c=new Set();for(const _0x2adb32 of _0x3d7cb9)for(const {suggestion:_0x5456ee,meta:_0x2a7a5a}of this[_0x1f8f('0xa7')](_0x2adb32,_0x1f8f('0x17')))_0x2a7a5a[_0x1f8f('0xf4')]&&!_0x2a7a5a[_0x1f8f('0xde')]&&_0x42de1c[_0x1f8f('0xe1')](_0x5456ee);for(const _0x108ddb of _0x42de1c)if(_0x108ddb[_0x1f8f('0x10')]){const _0x4b375f=_0x108ddb['getRanges']();(!_0x108ddb[_0x1f8f('0x110')]||!_0x108ddb[_0x1f8f('0x110')]['skipNestingCheck'])&&(_0x4b375f[_0x1f8f('0x125')](_0x1c422f=>_0x3d7cb9[_0x1f8f('0x7a')](_0x2a663d=>_0x2a663d['containsRange'](_0x1c422f,!0x0)))&&_0x108ddb[_0x1f8f('0x25')]());if(_0x3d7cb9[_0x1f8f('0x125')](_0x57a761=>_0x4b375f[_0x1f8f('0x7a')](_0x2721ea=>_0x2721ea[_0x1f8f('0x64')](_0x57a761,!0x0)))){const _0x448313=this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x1f8f('0xbd'),_0x56b42b,_0x1f8f('0x76'));return this['forceDefaultExecution'](()=>_0x448313(_0x20dea7,null,_0x3deb9e)),null;}}else{const _0x3d3390=_0x108ddb['getFirstRange']();_0x3d7cb9[_0x1f8f('0x7a')](_0x472ed6=>_0x472ed6[_0x1f8f('0x64')](_0x3d3390,!0x0))&&_0x108ddb[_0x1f8f('0x25')]();if(_0x3d7cb9[_0x1f8f('0x125')](_0x27a782=>_0x3d3390['containsRange'](_0x27a782,!0x0))){const _0x33c65d=this['_suggestionFactory'][_0x1f8f('0x45')]('deletion',_0x56b42b,_0x1f8f('0x76'));return this[_0x1f8f('0xf1')](()=>_0x33c65d(_0x3d7cb9,null,_0x3deb9e)),null;}}const _0x4c8d3b=this['_suggestionFactory'][_0x1f8f('0x45')](_0x1f8f('0xbd'),_0x56b42b,_0x1f8f('0xed'));let _0x5330d3=null;for(const _0x18f3ad of this['getSuggestions']())if(_0x18f3ad[_0x1f8f('0x121')]['id']==_0x3bbb79['id']&&_0x18f3ad['isInContent']&&'deletion'==_0x18f3ad[_0x1f8f('0x136')]&&_0x18f3ad[_0x1f8f('0x11d')]==_0x56b42b&&(_0x4c8d3b(_0x18f3ad['getRanges'](),_0x3d7cb9)||_0x4c8d3b(_0x3d7cb9,_0x18f3ad[_0x1f8f('0xa2')]()))){if(_0x5330d3){if(_0x18f3ad['commentThread']&&_0x18f3ad['commentThread'][_0x1f8f('0x132')])continue;for(const _0x340451 of _0x18f3ad[_0x1f8f('0xa2')]())_0x5330d3['isIntersectingWithRange'](_0x340451)||_0x5330d3[_0x1f8f('0x40')](_0x340451);_0x18f3ad[_0x1f8f('0x109')]();}else{_0x5330d3=_0x18f3ad;for(const _0x3dff03 of _0x3d7cb9)_0x18f3ad[_0x1f8f('0x6f')](_0x3dff03)||_0x18f3ad[_0x1f8f('0x40')](_0x3dff03);}}if(_0x5330d3)return _0x5330d3;_0x42de1c[_0x1f8f('0x69')]();for(const _0x28a837 of _0x3d7cb9)for(const {suggestion:_0xb98275,meta:_0x50d1fb}of this[_0x1f8f('0xa7')](_0x28a837,'deletion'))_0x50d1fb[_0x1f8f('0xf4')]&&_0x42de1c[_0x1f8f('0xe1')](_0xb98275);for(const _0x25ccc4 of _0x42de1c){const _0x5e9b9e=_0x25ccc4[_0x1f8f('0xa2')]();if(!_0x3deb9e||!_0x3deb9e[_0x1f8f('0xae')]){if(_0x3d7cb9[_0x1f8f('0x125')](_0x58a9c8=>_0x5e9b9e[_0x1f8f('0x7a')](_0x511d14=>_0x511d14['containsRange'](_0x58a9c8,!0x0))))return _0x25ccc4;}(!_0x25ccc4['attributes']||!_0x25ccc4[_0x1f8f('0x110')][_0x1f8f('0xae')])&&(_0x5e9b9e[_0x1f8f('0x125')](_0x1b2dbc=>_0x3d7cb9['some'](_0x231d5f=>_0x231d5f[_0x1f8f('0x64')](_0x1b2dbc,!0x0)))&&_0x25ccc4['discard']());}const _0x445a96=_0x20487a(),_0x3a8b82=_0x3bbb79['id'],_0x2b1d80=_0x1f8f('0x13a')+_0x56b42b,_0x19a67b=this[_0x1f8f('0x8')]({'id':_0x445a96,'type':_0x2b1d80,'createdAt':new Date(),'authorId':_0x3a8b82,'attributes':_0x3deb9e});for(const _0x21f347 of _0x3d7cb9)_0x21f347[_0x1f8f('0xc1')](),_0x21f347['isCollapsed']||_0x1f8f('0x122')==_0x21f347[_0x1f8f('0x66')][_0x1f8f('0xd6')]||this[_0x1f8f('0xe4')](_0x2b1d80,_0x445a96,_0x3a8b82,_0x21f347,_0x291614[_0x1f8f('0x4e')]());return _0x19a67b;}[_0x1f8f('0x3c')](_0x3d65a6,_0x29ed0d){const _0x49e357=_0x3d65a6[_0x1f8f('0x94')]();this[_0x1f8f('0x8a')][_0x1f8f('0xc')](_0x3288ce=>{_0x3288ce[_0x1f8f('0x3a')](_0x49e357,{'range':_0x29ed0d});});}[_0x1f8f('0x20')](_0x17f0f5){const _0x40f8b9=_0x17f0f5['id'],_0x55d9f7=this[_0x1f8f('0xa0')]['config'][_0x1f8f('0x12a')](_0x1f8f('0x6e'));this[_0x1f8f('0xa1')][_0x1f8f('0xb9')](_0x40f8b9)||this[_0x1f8f('0xa1')][_0x1f8f('0x98')]({'channelId':_0x55d9f7,'threadId':_0x40f8b9});const _0x2017f6=this['_commentsRepository'][_0x1f8f('0xc2')](_0x40f8b9);_0x2017f6[_0x1f8f('0x2e')]('isRemovable'),_0x2017f6[_0x1f8f('0xce')]=!0x1,_0x17f0f5[_0x1f8f('0xb2')]=_0x2017f6;}[_0x1f8f('0xca')](_0x28f157,_0xc95aba,_0x6f3389,_0x4e4a5e){if(_0x28f157[_0x1f8f('0x136')]!=_0xc95aba||_0x28f157[_0x1f8f('0x11d')]!=_0x6f3389||_0x28f157[_0x1f8f('0x121')]['id']!=_0x4e4a5e)throw this[_0x1f8f('0xa0')][_0x1f8f('0xd2')](_0x1f8f('0x19')),new _0x3b3b32(_0x1f8f('0x19'),this);}[_0x1f8f('0xaa')](_0x58212b,_0x18ba1b){const _0x157dd8=_0x58212b['getFirstRange']();if(_0x18ba1b[_0x1f8f('0x7d')](_0x157dd8))_0x58212b[_0x1f8f('0x109')]();else{if(_0x157dd8[_0x1f8f('0x64')](_0x18ba1b)){const _0x19027e=this[_0x1f8f('0x8a')]['createPositionAt'](_0x18ba1b[_0x1f8f('0x95')][_0x1f8f('0xff')],_0x1f8f('0xc5'));this[_0x1f8f('0x3c')](_0x58212b,this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x157dd8[_0x1f8f('0x95')],_0x19027e));const _0x33c9f2=_0x20487a(),_0x126bc2=_0x58212b['author']['id'],_0x20cd8f=_0x58212b['type']+':'+_0x58212b[_0x1f8f('0x11d')];this[_0x1f8f('0x8')]({'id':_0x33c9f2,'type':_0x20cd8f,'createdAt':new Date(),'authorId':_0x126bc2,'data':_0x58212b[_0x1f8f('0x128')],'attributes':_0x58212b[_0x1f8f('0x110')]});const _0x1fc253=this[_0x1f8f('0x8a')][_0x1f8f('0x3d')](_0x18ba1b[_0x1f8f('0xc5')]['parent'],_0x1f8f('0x67')),_0x17dbc2=this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x1fc253,_0x157dd8['end']);this[_0x1f8f('0xe4')](_0x20cd8f,_0x33c9f2,_0x126bc2,_0x17dbc2);}else{if(_0x157dd8[_0x1f8f('0x9d')](_0x18ba1b[_0x1f8f('0x95')])){const _0x58ff91=this[_0x1f8f('0x8a')][_0x1f8f('0x3d')](_0x18ba1b[_0x1f8f('0x95')]['nodeBefore'],_0x1f8f('0xc5'));this[_0x1f8f('0x3c')](_0x58212b,this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x157dd8[_0x1f8f('0x95')],_0x58ff91));}else{const _0x549b9b=this[_0x1f8f('0x8a')][_0x1f8f('0x3d')](_0x18ba1b[_0x1f8f('0xc5')]['parent'],'after');this['_setSuggestionRange'](_0x58212b,this['_model'][_0x1f8f('0x68')](_0x549b9b,_0x157dd8[_0x1f8f('0xc5')]));}}}}[_0x1f8f('0x2a')](_0x2b576a){for(const {suggestion:_0x3603ec,meta:_0x42738d}of this[_0x1f8f('0xa7')](_0x2b576a,'insertion')){if(!_0x42738d[_0x1f8f('0xf4')])continue;const _0x51279e=_0x3603ec[_0x1f8f('0xa2')]();for(const _0x5f5c6f of _0x51279e)if(!_0x2b576a[_0x1f8f('0x10f')](_0x5f5c6f)['length'])return!0x0;}return!0x1;}[_0x1f8f('0x9a')](_0x5bba27){const _0x159345=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))[_0x1f8f('0xcf')](_0x5bba27);if(!_0x159345)throw new _0x3b3b32('track-changes-user-not-found',this);return _0x159345;}[_0x1f8f('0x24')](_0x59db81){const _0x2b6353=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')]['get'](_0x1f8f('0xb1')),_0x41b3b8=_0x1f8f('0x42')+_0x59db81,_0x5ecc6c=_0x2b6353[_0x1f8f('0xcf')](_0x41b3b8);return _0x5ecc6c||_0x2b6353[_0x1f8f('0xc4')]({'id':_0x41b3b8,'name':_0x59db81});}[_0x1f8f('0xf9')](_0x1b4547,_0x449495,_0x13c97e,_0x209da0,_0x23568f){const _0x3edae9=this[_0x1f8f('0x9a')](_0x209da0);let _0x265f11=null;_0x23568f&&_0x23568f[_0x1f8f('0x28')]&&(_0x265f11=this[_0x1f8f('0x24')](_0x23568f[_0x1f8f('0x28')][_0x1f8f('0xbe')]));const _0x20e59b=this[_0x1f8f('0x9e')][_0x1f8f('0x2b')](_0x1b4547,_0x449495,_0x13c97e,_0x3edae9,_0x265f11,_0x458a0d=>this['_updateSuggestionData'](_0x13c97e,{'attributes':_0x458a0d}));return this['listenTo'](_0x20e59b,_0x1f8f('0x76'),()=>{this[_0x1f8f('0x100')](_0x13c97e,{'state':'accepted'});},{'priority':_0x1f8f('0xc8')}),this['listenTo'](_0x20e59b,_0x1f8f('0x25'),()=>{this[_0x1f8f('0x100')](_0x13c97e,{'state':_0x1f8f('0xac')});},{'priority':'high'}),this[_0x1f8f('0x30')]['set'](_0x13c97e,_0x20e59b),this[_0x1f8f('0x3e')][_0x1f8f('0xa8')](_0x20e59b,_0x1f8f('0x131')),_0x20e59b;}[_0x1f8f('0x7c')](_0x4ff0bf){const _0x578c28=_0x4ff0bf[_0x1f8f('0x11b')](':');return{'group':_0x578c28[0x0],'type':_0x578c28[0x1],'subType':_0x578c28[_0x1f8f('0x132')]>=0x5?_0x578c28[0x2]:null,'id':_0x578c28['length']<0x5?_0x578c28[0x2]:_0x578c28[0x3],'authorId':_0x578c28[_0x1f8f('0x132')]<0x5?_0x578c28[0x3]:_0x578c28[0x4],'markerCount':0x6==_0x578c28['length']?_0x578c28[0x5]:null};}[_0x1f8f('0x6b')](_0x4ab150,_0x49bb9f,_0x12c45b){const _0x3e549d=_0x4ab150[_0x1f8f('0x2c')](),_0x9e1a3a=_0x3e549d[_0x1f8f('0x95')],_0x28ef48=_0x3e549d[_0x1f8f('0xc5')];this[_0x1f8f('0x3c')](_0x4ab150,this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x9e1a3a,_0x49bb9f));const _0x5dcc1e=_0x20487a(),_0x396259=_0x4ab150['author']['id'],_0x36fae6=_0x4ab150['type']+(_0x4ab150[_0x1f8f('0x11d')]?':'+_0x4ab150[_0x1f8f('0x11d')]:'');this['_setSuggestionData']({'id':_0x5dcc1e,'type':_0x36fae6,'createdAt':new Date(),'authorId':_0x396259,'originalSuggestionId':_0x4ab150['id'],'data':_0x4ab150[_0x1f8f('0x128')]}),_0x1f8f('0x99')==_0x4ab150[_0x1f8f('0x136')]&&(_0x12c45b=this['_model']['createPositionBefore'](_0x12c45b[_0x1f8f('0x61')])),this[_0x1f8f('0xe4')](_0x36fae6,_0x5dcc1e,_0x396259,this['_model']['createRange'](_0x12c45b,_0x28ef48));}[_0x1f8f('0xa7')](_0x37df41,_0x1f0eac=null){const _0x114dee=[],_0x91bd45=this[_0x1f8f('0x8a')][_0x1f8f('0xd8')],_0xde5a2e=this[_0x1f8f('0xa0')]['plugins']['get'](_0x1f8f('0xb1'))['me'];for(const _0x50963f of this[_0x1f8f('0xdb')]())if(_0x50963f[_0x1f8f('0x74')]&&(!_0x1f0eac||_0x50963f['type']==_0x1f0eac))for(const _0x5f5283 of _0x50963f[_0x1f8f('0xa2')]()){const _0x366ef7=_0x37df41['start'][_0x1f8f('0x7d')](_0x5f5283[_0x1f8f('0xc5')])||_0x37df41['end'][_0x1f8f('0x7d')](_0x5f5283[_0x1f8f('0x95')]);if(_0x366ef7||_0x37df41[_0x1f8f('0xfa')](_0x5f5283)){const _0x1a030=_0x37df41[_0x1f8f('0x64')](_0x5f5283)&&yt(_0x91bd45,_0x5f5283[_0x1f8f('0x95')],_0x37df41),_0x1cff61=_0x5f5283[_0x1f8f('0x64')](_0x37df41)&&yt(_0x91bd45,_0x37df41[_0x1f8f('0x95')],_0x5f5283);_0x114dee[_0x1f8f('0x71')]({'suggestion':_0x50963f,'meta':{'isOwn':_0xde5a2e==_0x50963f[_0x1f8f('0x121')],'isNextTo':_0x366ef7,'isInsideObject':_0x1a030,'containsRangeInObject':_0x1cff61}});break;}}return _0x114dee;}[_0x1f8f('0xe4')](_0x1463ce,_0x5ceea8,_0x31b012,_0x5c346f,_0x2347bf=null){this[_0x1f8f('0x8a')]['change'](_0x30ac47=>{let _0x1ef6d7=_0x1f8f('0x41')+_0x1463ce+':'+_0x5ceea8+':'+_0x31b012;_0x2347bf&&(_0x1ef6d7=_0x1ef6d7+':'+_0x2347bf),_0x30ac47[_0x1f8f('0x7')](_0x1ef6d7,{'range':_0x5c346f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1f8f('0x77')](_0x5c94e6){const _0x20e70f=_0x5c94e6[_0x1f8f('0xb0')],_0xd22940=_0x5c94e6[_0x1f8f('0x6a')];_0x5c94e6[_0x1f8f('0xb0')]=null,null!=_0x20e70f&&(_0x20e70f[_0x1f8f('0x6a')]=null),_0x5c94e6[_0x1f8f('0x6a')]=null,null!=_0xd22940&&(_0xd22940[_0x1f8f('0xb0')]=null),_0x1f8f('0xd1')==this[_0x1f8f('0x3e')][_0x1f8f('0x12a')](_0x5c94e6)&&(this[_0x1f8f('0x3e')][_0x1f8f('0xa8')](_0x5c94e6,_0x1f8f('0x33')),this['fire'](_0x1f8f('0x51'),_0x5c94e6,_0x20e70f,_0xd22940));}[_0x1f8f('0x8')](_0x4e5535){const _0x522f2d=_0x4e5535['id'],_0x42178f=this[_0x1f8f('0x11e')](_0x4e5535);if(this[_0x1f8f('0x11')]&&this['_adapter'][_0x1f8f('0xcc')]){const _0x5e6dbf=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0x44')),_0x440501=_0x42178f[_0x1f8f('0x9c')],_0x598508=_0x42178f[_0x1f8f('0x11d')]?_0x42178f['type']+':'+_0x42178f[_0x1f8f('0x11d')]:_0x42178f[_0x1f8f('0x136')],_0x50dc44=this[_0x1f8f('0xa0')][_0x1f8f('0x93')],_0x4d7084=_0x5e6dbf['add'](_0xb5e306(_0x50dc44,_0x1f8f('0x8f'))),_0x5b9f39={'id':_0x522f2d,'type':_0x598508,'hasComments':_0x440501,'data':_0x4e5535[_0x1f8f('0x128')]||null,'originalSuggestionId':_0x4e5535[_0x1f8f('0x57')]||null,'attributes':_0x42178f[_0x1f8f('0x110')]};this['_adapter']['addSuggestion'](_0x5b9f39)[_0x1f8f('0x4')](_0x397ee6=>{_0x42178f[_0x1f8f('0xc6')]=!0x0,_0x5e6dbf[_0x1f8f('0x56')](_0x4d7084),_0x397ee6&&_0x397ee6[_0x1f8f('0x86')]&&(this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x522f2d)[_0x1f8f('0x86')]=_0x397ee6['createdAt']);})[_0x1f8f('0xe5')](_0x33aa91=>{throw _0x318706(_0x1f8f('0x65')),this[_0x1f8f('0xa0')][_0x1f8f('0x7e')][_0x1f8f('0x22')]({'isUndoable':!0x1},()=>{_0x42178f[_0x1f8f('0x25')]();}),_0x42178f['stopListening'](),this[_0x1f8f('0x30')]['delete'](_0x42178f['id']),this[_0x1f8f('0x3e')][_0x1f8f('0x6')](_0x42178f),_0x33aa91;});}return _0x42178f;}[_0x1f8f('0x100')](_0x5b44a8,_0x5a7cf5){const _0x132bd0=this['editor'][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0x44')),_0x1b673b=this[_0x1f8f('0x30')]['get'](_0x5b44a8);if(this[_0x1f8f('0x11')]&&this[_0x1f8f('0x11')][_0x1f8f('0x101')]){if(_0x1b673b[_0x1f8f('0xc6')]){const _0x6570f1=_0x132bd0['add'](_0xb5e306(this[_0x1f8f('0xa0')][_0x1f8f('0x93')],'PENDING_ACTION_SUGGESTION'));this[_0x1f8f('0x11')]['updateSuggestion'](_0x5b44a8,_0x5a7cf5)['then'](()=>{_0x132bd0[_0x1f8f('0x56')](_0x6570f1);});}else _0x1b673b['on'](_0x1f8f('0xd3'),()=>{this[_0x1f8f('0x100')](_0x5b44a8,_0x5a7cf5);});}}['_getSuggestionData'](_0x512723){if(!this['_adapter']||!this[_0x1f8f('0x11')][_0x1f8f('0x82')])throw new _0x3b3b32(_0x1f8f('0x92'),this);return this[_0x1f8f('0x11')]['getSuggestion'](_0x512723);}[_0x1f8f('0x59')](_0x11283d){const {id:_0x50c597,type:_0x148bf0,subType:_0x1255fb,authorId:_0x1e5c31}=this[_0x1f8f('0x7c')](_0x11283d),_0x214ad6=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x50c597)||this[_0x1f8f('0xf9')](_0x148bf0,_0x1255fb,_0x50c597,_0x1e5c31);switch(this[_0x1f8f('0xca')](_0x214ad6,_0x148bf0,_0x1255fb,_0x1e5c31),this['_suggestionState'][_0x1f8f('0x12a')](_0x214ad6)){case'notReady':this[_0x1f8f('0x81')](_0x50c597)[_0x1f8f('0x4')](_0x18e9f8=>{let _0x567e8e=Promise['resolve']();_0x18e9f8['hasComments']&&(_0x567e8e=this[_0x1f8f('0xa1')][_0x1f8f('0x102')]({'channelId':this[_0x1f8f('0xa0')][_0x1f8f('0xf6')][_0x1f8f('0x12a')](_0x1f8f('0x6e')),'threadId':_0x50c597})),_0x567e8e['then'](()=>{this[_0x1f8f('0x11e')](_0x18e9f8)[_0x1f8f('0xc6')]=!0x0;});}),this['_suggestionState'][_0x1f8f('0xa8')](_0x214ad6,_0x1f8f('0xc3'));break;case _0x1f8f('0x33'):this[_0x1f8f('0x100')](_0x50c597,{'state':_0x1f8f('0x4b')});case _0x1f8f('0xc7'):this[_0x1f8f('0x3e')][_0x1f8f('0xa8')](_0x214ad6,_0x1f8f('0xd1')),this[_0x1f8f('0xf5')](_0x1f8f('0x35'),_0x214ad6);break;case'ready':this[_0x1f8f('0xf5')](_0x1f8f('0x78'),_0x214ad6);}return _0x214ad6['addMarkerName'](_0x11283d),_0x214ad6;}[_0x1f8f('0xe6')](_0xcb8cd2){const _0x58c181=Array[_0x1f8f('0x108')](_0xcb8cd2)['filter'](_0x3ef1a6=>!_0x3ef1a6[_0x1f8f('0x10')]),_0x21f934=this['getSuggestions']({'skipNotAttached':!0x0})[_0x1f8f('0x53')](_0x258ecd=>!_0x258ecd[_0x1f8f('0x10')]),_0x153737=_0x21f934[_0x1f8f('0x53')](_0x1f4da9=>!_0xcb8cd2[_0x1f8f('0x23')](_0x1f4da9)),_0x3d4b77=new Map(_0x21f934[_0x1f8f('0xb8')](_0x485599=>[_0x485599,this[_0x1f8f('0x9e')]['getSuggestionCallback'](_0x485599[_0x1f8f('0x136')],_0x485599[_0x1f8f('0x11d')],_0x1f8f('0x52'))])),_0x24a17c=new Map(_0x21f934['map'](_0x151550=>[_0x151550,_0x151550[_0x1f8f('0x2c')]()])),_0x43e868=new Set(),_0x3e589d=new Set();for(let _0x1c4fad=0x0;_0x1c4fad<_0x58c181['length'];_0x1c4fad++)_0x36fdaa(_0x58c181[_0x1c4fad],_0x58c181,_0x1c4fad+0x1);for(let _0x29893b=0x0;_0x29893b<_0x58c181[_0x1f8f('0x132')];_0x29893b++)_0x36fdaa(_0x58c181[_0x29893b],_0x153737,0x0);for(let _0x94f3cf=0x0;_0x94f3cf<_0x58c181['length'];_0x94f3cf++){const _0x4a7088=_0x58c181[_0x94f3cf];!_0x3e589d[_0x1f8f('0x23')](_0x4a7088)&&_0x4a7088[_0x1f8f('0xb0')]&&(_0x4a7088[_0x1f8f('0xb0')][_0x1f8f('0x6a')]===_0x4a7088&&(_0x4a7088['previous']['next']=null),_0x4a7088[_0x1f8f('0xb0')]=null),!_0x43e868[_0x1f8f('0x23')](_0x4a7088)&&_0x4a7088[_0x1f8f('0x6a')]&&(_0x4a7088[_0x1f8f('0x6a')][_0x1f8f('0xb0')]===_0x4a7088&&(_0x4a7088[_0x1f8f('0x6a')]['previous']=null),_0x4a7088[_0x1f8f('0x6a')]=null);}function _0x36fdaa(_0x5c8595,_0x43e496,_0x628b4b){for(let _0x2c72ba=_0x628b4b;_0x2c72ba<_0x43e496[_0x1f8f('0x132')];_0x2c72ba++){const _0x3c229e=_0x190858(_0x5c8595,_0x43e496[_0x2c72ba]);_0x3c229e&&(_0x3c229e[0x0]['next']=_0x3c229e[0x1],_0x3c229e[0x1][_0x1f8f('0xb0')]=_0x3c229e[0x0],_0x43e868[_0x1f8f('0xe1')](_0x3c229e[0x0]),_0x3e589d['add'](_0x3c229e[0x1]));}}function _0x190858(_0x4150df,_0x328537){if(_0x4150df[_0x1f8f('0x121')]['id']!==_0x328537[_0x1f8f('0x121')]['id'])return null;const _0x4544fc=_0x3d4b77[_0x1f8f('0x12a')](_0x4150df)(_0x4150df,_0x328537,_0x24a17c[_0x1f8f('0x12a')](_0x4150df),_0x24a17c['get'](_0x328537));if(!_0x4544fc)return null;return _0x3d4b77['get'](_0x328537)(_0x4150df,_0x328537,_0x24a17c[_0x1f8f('0x12a')](_0x4150df),_0x24a17c[_0x1f8f('0x12a')](_0x328537))?_0x4544fc[0x1][_0x1f8f('0xb2')]&&_0x4544fc[0x1]['commentThread'][_0x1f8f('0x132')]?null:_0x4544fc:null;}}[_0x1f8f('0x85')](_0x450714){const _0x3afbce=Array[_0x1f8f('0x108')](_0x450714),_0x58c327=this[_0x1f8f('0xdb')]({'skipNotAttached':!0x0}),_0x3b0b9e=_0x58c327[_0x1f8f('0x53')](_0x5da815=>!_0x450714[_0x1f8f('0x23')](_0x5da815)),_0x32a3f0=new Map(_0x3afbce['map'](_0x51744c=>[_0x51744c,this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x51744c[_0x1f8f('0x136')],_0x51744c[_0x1f8f('0x11d')],_0x1f8f('0xed'))])),_0x509c5e=new Map(_0x58c327[_0x1f8f('0xb8')](_0xcd25a9=>[_0xcd25a9,_0xcd25a9['getRanges']()]));for(let _0x119559=0x0;_0x119559<_0x3afbce['length'];_0x119559++){if(_0x1ab435(this,_0x3afbce[_0x119559],_0x3afbce,_0x119559+0x1))return!0x0;}for(let _0xcc8058=0x0;_0xcc8058<_0x3afbce[_0x1f8f('0x132')];_0xcc8058++){if(_0x1ab435(this,_0x3afbce[_0xcc8058],_0x3b0b9e,0x0))return!0x0;}return!0x1;function _0x1ab435(_0x179827,_0x4658b9,_0xf41ef5,_0x418b49){for(let _0x217a95=_0x418b49;_0x217a95<_0xf41ef5[_0x1f8f('0x132')];_0x217a95++){const _0x220900=_0xf41ef5[_0x217a95];if(_0x220900[_0x1f8f('0x136')]!==_0x4658b9[_0x1f8f('0x136')]||_0x220900[_0x1f8f('0x121')]['id']!==_0x4658b9['author']['id']||_0x220900[_0x1f8f('0x11d')]!==_0x4658b9[_0x1f8f('0x11d')])continue;const _0x21cb17=_0x32a3f0[_0x1f8f('0x12a')](_0x4658b9),_0x40617b=_0x509c5e['get'](_0x4658b9),_0x3f28f8=_0x509c5e['get'](_0x220900),_0x575b8a=_0x4658b9[_0x1f8f('0xb2')]&&_0x4658b9[_0x1f8f('0xb2')]['length'],_0x327a72=_0x220900[_0x1f8f('0xb2')]&&_0x220900[_0x1f8f('0xb2')][_0x1f8f('0x132')];if(!_0x575b8a&&_0x21cb17(_0x3f28f8,_0x40617b))return _0x179827[_0x1f8f('0xf')](_0x220900,_0x4658b9),_0x509c5e['delete'](_0x4658b9),!0x0;if(!_0x327a72&&_0x21cb17(_0x40617b,_0x3f28f8))return _0x179827[_0x1f8f('0xf')](_0x4658b9,_0x220900),_0x509c5e[_0x1f8f('0x6')](_0x220900),!0x0;}return!0x1;}}[_0x1f8f('0xf')](_0x487b08,_0x445956){if(_0x487b08['isMultiRange'])for(const _0x187c15 of _0x445956[_0x1f8f('0xa2')]())_0x487b08['addRange'](_0x187c15);else{const _0x53a87b=_0x445956[_0x1f8f('0x2c')]()['end'];this[_0x1f8f('0x3c')](_0x487b08,this['_model'][_0x1f8f('0x68')](_0x487b08[_0x1f8f('0x2c')]()[_0x1f8f('0x95')],_0x53a87b));}_0x445956['removeMarkers']();}}_0x44f73f(d,_0x58572d);class wt{constructor(_0x2cd12e){this[_0x1f8f('0x107')]=_0x2cd12e,this[_0x1f8f('0x8a')]=_0x2cd12e[_0x1f8f('0x7e')],this['_customCallbacks']=new Map(),this[_0x1f8f('0x1e')]=new Map(),this[_0x1f8f('0x63')]();}[_0x1f8f('0x2b')](_0x427a42,_0x388d17,_0x19ba6d,_0x5167ea,_0x1e8a4c,_0x54688c){return new _0x291614(this['_model'],{'type':_0x427a42,'subType':_0x388d17,'id':_0x19ba6d,'author':_0x5167ea,'externalAuthor':_0x1e8a4c,'onAttributesChange':_0x54688c,'onAccept':(..._0xd7dc21)=>this[_0x1f8f('0x45')](_0x427a42,_0x388d17,_0x1f8f('0x76'))(..._0xd7dc21),'onDiscard':(..._0x27b19a)=>this[_0x1f8f('0x45')](_0x427a42,_0x388d17,_0x1f8f('0x25'))(..._0x27b19a)});}[_0x1f8f('0x13c')](_0x42b32f,_0x3f6991,_0x527f65,_0x38dfd3){const _0x355cb0=_0x42b32f+':'+_0x3f6991+':'+_0x527f65;this[_0x1f8f('0xa9')][_0x1f8f('0xa8')](_0x355cb0,_0x38dfd3);}['getSuggestionCallback'](_0xd7a31a,_0x44ba28,_0x4fdd35){const _0x2e18e8=_0xd7a31a+':'+_0x44ba28+':'+_0x4fdd35;return this[_0x1f8f('0xa9')]['get'](_0x2e18e8)||this['_defaultCallbacks'][_0x1f8f('0x12a')](_0xd7a31a+':'+_0x4fdd35);}['_registerDefaultCallbacks'](){const _0x229443=()=>{},_0x2307d7=_0x3326c6=>{_0x3326c6[_0x1f8f('0x123')]((_0xc0f6b1,_0x18182e)=>_0xc0f6b1[_0x1f8f('0x95')]['isBefore'](_0x18182e[_0x1f8f('0x95')])?0x1:-0x1),this['_model']['change'](_0x20b3d5=>{for(const _0x30ad9a of _0x3326c6){let _0x10b52f;_0x10b52f=_0x30ad9a[_0x1f8f('0xc5')][_0x1f8f('0x9b')]&&_0x30ad9a[_0x1f8f('0xc5')][_0x1f8f('0x61')]==_0x30ad9a['start'][_0x1f8f('0x137')]?_0x20b3d5[_0x1f8f('0xe')](_0x30ad9a['start'][_0x1f8f('0x137')],'on'):_0x20b3d5['createSelection'](_0x30ad9a),this[_0x1f8f('0x8a')][_0x1f8f('0xda')](_0x10b52f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5c68cb=(_0x527c35,_0x1401dc)=>{this['_model']['change'](_0x51e6fd=>{const {commandName:_0x62e55a,commandParams:_0x20de38=[]}=_0x1401dc,_0x1cbd7d=_0x527c35[0x0];if(_0x1f8f('0x122')==_0x1cbd7d[_0x1f8f('0x66')][_0x1f8f('0xd6')])return;const _0x3587c8=Array['from'](this[_0x1f8f('0x8a')]['document'][_0x1f8f('0x15')][_0x1f8f('0xa2')]())[_0x1f8f('0xb8')](_0x243953=>_0x1a80a0[_0x1f8f('0xfe')](_0x243953));bt(_0x1cbd7d)?_0x51e6fd[_0x1f8f('0x5d')](this['_model'][_0x1f8f('0x68')](_0x1cbd7d[_0x1f8f('0xc5')])):_0x51e6fd['setSelection'](_0x1cbd7d);for(const _0xca02e2 of this['_editor'][_0x1f8f('0xdd')][_0x1f8f('0xdd')]())_0xca02e2[_0x1f8f('0xba')]();_0x20de38[_0x1f8f('0x71')]({'forceDefaultExecution':!0x0}),this[_0x1f8f('0x107')][_0x1f8f('0x8e')](_0x62e55a,..._0x20de38);const _0x259ac4=_0x3587c8[_0x1f8f('0x53')](_0x23c0eb=>_0x1f8f('0x122')!=_0x23c0eb[_0x1f8f('0x66')][_0x1f8f('0xd6')]);_0x259ac4[_0x1f8f('0x132')]>0x0&&_0x51e6fd[_0x1f8f('0x5d')](_0x259ac4);for(const _0x4d96bc of _0x3587c8)_0x4d96bc[_0x1f8f('0xc1')]();});},_0x2bd66d=(_0x3a0d98,_0x40a650)=>0x1==_0x3a0d98[_0x1f8f('0x132')]&&0x1==_0x40a650[_0x1f8f('0x132')]&&_0x3a0d98[0x0][_0x1f8f('0xc5')][_0x1f8f('0x7d')](_0x40a650[0x0]['start']),_0x56f1f9=(_0x53a16b,_0x486f0d,_0xc4ffd2,_0x41f39a)=>Dt(_0x53a16b,_0x486f0d,_0xc4ffd2,_0x41f39a,this[_0x1f8f('0x8a')])?[_0x53a16b,_0x486f0d]:Dt(_0x486f0d,_0x53a16b,_0x41f39a,_0xc4ffd2,this[_0x1f8f('0x8a')])?[_0x486f0d,_0x53a16b]:null;this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x37'),_0x229443),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x3'),_0x2307d7),this[_0x1f8f('0x1e')]['set']('insertion:join',_0x2bd66d),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x7f'),_0x56f1f9),this[_0x1f8f('0x1e')]['set']('deletion:accept',_0x2307d7),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x14'),_0x229443),this['_defaultCallbacks'][_0x1f8f('0xa8')]('deletion:join',_0x2bd66d),this['_defaultCallbacks'][_0x1f8f('0xa8')](_0x1f8f('0x83'),_0x56f1f9),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0xb4'),_0x5c68cb),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x11a'),_0x229443),this['_defaultCallbacks'][_0x1f8f('0xa8')](_0x1f8f('0xf7'),_0x2bd66d),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')]('formatInline:chain',_0x229443),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c68cb),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x80'),_0x229443),this[_0x1f8f('0x1e')]['set'](_0x1f8f('0x6d'),_0x2bd66d),this[_0x1f8f('0x1e')]['set'](_0x1f8f('0x9f'),_0x229443);}}function yt(_0x28f40c,_0xfa5bb9,_0x10563c){for(const _0x3fe3bc of _0xfa5bb9[_0x1f8f('0x61')][_0x1f8f('0x105')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3fe3bc[_0x1f8f('0x66')]==_0x3fe3bc)return!0x1;if(!_0x10563c[_0x1f8f('0x12')](_0x3fe3bc))return!0x1;if(_0x28f40c[_0x1f8f('0x1b')](_0x3fe3bc)||_0x28f40c[_0x1f8f('0x5b')](_0x3fe3bc))return!0x0;}}function bt(_0x8a9eda){return _0x8a9eda[_0x1f8f('0xc5')][_0x1f8f('0x61')]==_0x8a9eda[_0x1f8f('0x95')][_0x1f8f('0x137')]&&_0x8a9eda[_0x1f8f('0xc5')][_0x1f8f('0x116')];}function St(_0x31ebc7,_0x29ec38,_0x518ae4,_0x305709){const _0x231cbe=_0x42171a=>!_0x42171a[_0x1f8f('0xd4')]['is']('textProxy')&&!_0x305709[_0x1f8f('0x1b')](_0x42171a[_0x1f8f('0xd4')]),_0x30eb30=_0x31ebc7['start'][_0x1f8f('0x48')](_0x231cbe),_0x162ea0=_0x31ebc7['end'][_0x1f8f('0x48')](_0x231cbe,{'direction':_0x1f8f('0xad')});return(!_0x31ebc7[_0x1f8f('0x95')][_0x1f8f('0x7d')](_0x30eb30)||!_0x31ebc7[_0x1f8f('0xc5')]['isEqual'](_0x162ea0))&&(_0x30eb30[_0x1f8f('0x84')](_0x162ea0)?_0x518ae4['updateMarker'](_0x29ec38,{'range':_0x518ae4['createRange'](_0x30eb30,_0x162ea0)}):_0x518ae4[_0x1f8f('0x4a')](_0x29ec38),!0x0);}function It(_0x319f92){return _0x5e1503(_0x319f92);}function vt(_0x401b15){const _0x10f897=_0x401b15[_0x1f8f('0x95')][_0x1f8f('0x137')];return _0x10f897&&_0x10f897['is'](_0x1f8f('0x6c'));}function At(_0x47dcde,_0x5b6862){const _0x4da93d=_0x5b6862[_0x1f8f('0xd8')][_0x1f8f('0x1b')](_0x47dcde)||_0x5b6862[_0x1f8f('0xd8')]['isSelectable'](_0x47dcde);return _0x5b6862[_0x1f8f('0x68')](_0x5b6862['createPositionAt'](_0x47dcde,_0x1f8f('0xab')),_0x4da93d?_0x5b6862['createPositionAfter'](_0x47dcde):_0x5b6862['createPositionAt'](_0x47dcde,_0x1f8f('0xc5')));}function Dt(_0xe20413,_0x4adf61,_0x16ea22,_0x36fc0a,_0x3dc8eb){if(_0x16ea22[_0x1f8f('0xc5')][_0x1f8f('0x7d')](_0x36fc0a[_0x1f8f('0x95')]))return!0x0;if(_0xe20413[_0x1f8f('0x136')]!=_0x4adf61[_0x1f8f('0x136')])return!0x1;if(!_0x16ea22[_0x1f8f('0xc5')][_0x1f8f('0xe8')](_0x36fc0a[_0x1f8f('0x95')]))return!0x1;const _0x41d498=_0x3dc8eb['createRange'](_0x16ea22[_0x1f8f('0xc5')],_0x36fc0a[_0x1f8f('0x95')])[_0x1f8f('0x2d')]();for(const _0x3a5bbf of _0x41d498)if([_0x1f8f('0x124'),_0x1f8f('0x10b')]['includes'](_0x3a5bbf[_0x1f8f('0x136')])&&_0x3dc8eb[_0x1f8f('0xd8')][_0x1f8f('0x5b')](_0x3a5bbf[_0x1f8f('0xd4')]))return!0x1;return!0x0;}
23
+ const _0x1476=['_getExternalAuthor','start','_cutOutSuggestionMarker','_addThreadToSuggestion','getWalker','move','_defaultCallbacks','resolve','getLastMatchingPosition','formatBlock:chain','track-changes-command-not-found','insertion:discard','for','from','addMarker','_joinSuggestions','addHighlight','_adapter','showSuggestionHighlights','splice','conversion','addClass','mapper','setTo','markMultiRangeInsertion','element','suggestion','formatBlock:discard','addUser','length','name','clear','containerElement','markDeletion','removeComment','catch','commands','remove','_findSuggestions','_registerDefaultCallbacks','_addSuggestionMarker','formatBlock','accept','batch','fire','rethrowUnexpectedError','@external','listenTo','high','getMultiRangeId','highest','map','insertion:','oldRange','updateMarker','acceptAllSuggestions','ready','isRemovable','writer','isMultiRange','dataDowncast','$graveyard','PENDING_ACTION_SUGGESTION','options','suggestionUnloaded','rejected','deletion:join','deleteContent','attributes','change:data','addComment','formatInline:','plugins','getSuggestionCallback','data','add','formatInline:chain','createPositionBefore','open','buildSuggestion','elementToElement','upcast','getShiftedBy','formatInline:discard','discardAllSuggestions','backward','_isForcedDefaultExecutionBlock','getRanges','createdAt','formatBlock:accept','getAttribute','suggestionChanged','range','getUser','acceptSuggestion','then','set','editor','_commentsRepository','markers','_suggestions','isAtEnd','removeMarker','refresh','model','hasSuggestion','activeMarkers','Users','fromCharCode','hasComments','selection','_editor','_enabledCommands','adapter','isInContent','createPositionAt','type','detach','_updateSuggestionData','elementStart','removed','forceDefaultExecution','insertContent','sort','commentThread','ck-suggestion-marker','fetchCommentThread','isNextTo','isEqual','getSuggestions','_splitMarkerName','originalSuggestionId','notReady','CommentsRepository','splitPosition','subType','dataToMarker','differ','enqueueChange','formatInline','hasCommentThread','marker-count','consumable','_getSuggestionData','unbind','_setSuggestionData','every','forward','chain','newRange','containsRangeInObject','isSelectable','author','getItems','group','skipNestingCheck','has','removeMarker:suggestion:formatBlock','insertion','previous','isTouching','includes','error-saving-suggestion-data-suggestion-discarded','_customCallbacks','getAllAdjacentSuggestions','addMarkerName','markMultiRangeBlockFormat','enableCommand','locale','execute','isLimit','getDifference','removeAttribute','_descriptionFactory','updateSuggestion','stopListening','deletion:','multipleBlocks','_setSuggestionRange','multi','createRangeIn','track-changes-suggestion-data-mismatch','markBlockFormat','setSelection','init','fromRange','ck-suggestion-marker-','discardSuggestion','isInsideObject','markerToHighlight','containsPosition','markerReady','toViewElement','isAtStart','getRange','_handleNewSuggestionMarker','createRange','accepted','authorName','isBefore','getFirstRange','nodeAfter','_checkSuggestionCorrectness','addMarker:suggestion:formatBlock','addMarker:suggestion','registerCustomCallback','targetPosition','_suggestionState','stop','return','getSuggestion','document','registerPostFixer','getAncestors','isIntersectingWithRange','size','some','consume','deletion:discard','_suggestionFactory','parent','nodeBefore','_joinWithAdjacentSuggestions','dataReady','bindElementToMarker','PendingActions','data-suggestion','suggestionLoaded','addCommentThread','deletion:chain','isOwn','markInlineFormat','insertion:chain','markerToData','isUndo','formatBlock:join','formatGroupId','formatInline:join','values','setAttribute','_model','isCollapsed','change','_saved','ck-suggestion-marker--active','createSelection','isObject','ck-suggestion-marker-formatBlock','insertion:accept','delete','getChangedMarkers','root','addSuggestion','isAfter','schema','clone','filter','markInsertion','trackChangesCommand','trackChanges','join','markerName','substr','markMultiRangeDeletion','isDocumentOperation','editingDowncast','split','suggestion:','getIntersection','before','createElement','push','acceptSelectedSuggestions','insertion:join','isBlock','deletion:accept','addSuggestionData','discard','item','getCustomProperty','howMany','TrackChangesEditing','discardSelectedSuggestions','get','change:_saved','deletion','_refreshSuggestionsChain','track-changes-user-not-found','_rangeIsInLocalUserInsertion','after','getNearestSelectionRange','end','removeMarkers','commandName','rootName','next','getFirstMarker','insert','config','formatInline:accept','addRange','containsRange','_getAuthorFromId','removeClass'];(function(_0x78654a,_0x147612){const _0x255144=function(_0x26a04f){while(--_0x26a04f){_0x78654a['push'](_0x78654a['shift']());}};_0x255144(++_0x147612);}(_0x1476,0x83));const _0x2551=function(_0x78654a,_0x147612){_0x78654a=_0x78654a-0x0;let _0x255144=_0x1476[_0x78654a];return _0x255144;};import{Plugin as _0x35a535,PendingActions as _0x3a1a3d}from'ckeditor5/src/core';import{LiveRange as _0x59087f}from'ckeditor5/src/engine';import{CKEditorError as _0x1d0d3c,uid as _0x8909f2,priorities as _0x39766d,EmitterMixin as _0x4c0cfe,mix as _0x306206,logWarning as _0x863670}from'ckeditor5/src/utils';import{toWidget as _0x1d8a83}from'ckeditor5/src/widget';import{Users as _0x4a3172}from'ckeditor5-collaboration/src/collaboration-core';import _0x13a8b0 from'./commands/trackchangescommand';import _0x35323c from'./commands/acceptsuggestioncommand';import _0x4d777c from'./commands/discardsuggestioncommand';import _0x5cd782 from'./commands/acceptallsuggestionscommand';import _0x360557 from'./commands/acceptselectedsuggestionscommand';import _0x5acbbe from'./commands/discardallsuggestionscommand';import _0xbd7e9c from'./commands/discardselectedsuggestionscommand';import _0x2600ac from'./suggestion';import _0x32ad79 from'./suggestiondescriptionfactory';import _0x4a7120 from'./integrations/alignment';import _0x10a708 from'./integrations/basicstyles';import _0x2f1a23 from'./integrations/blockquote';import _0x7af8a4 from'./integrations/ckbox';import _0x1f21a9 from'./integrations/codeblock';import _0x320eb9 from'./integrations/comments';import _0xba6841 from'./integrations/deletecommand';import _0x237f2e from'./integrations/entercommand';import _0x4fcda5 from'./integrations/font';import _0x30bcc7 from'./integrations/heading';import _0x38e119 from'./integrations/highlight';import _0x84c390 from'./integrations/horizontalline';import _0x1dfb85 from'./integrations/htmlembed';import _0x9fc0b5 from'./integrations/image';import _0x532b86 from'./integrations/importword';import _0x902bd3 from'./integrations/indent';import _0x3061a1 from'./integrations/inputcommand';import _0x485ca2 from'./integrations/link';import _0x5bc3c6 from'./integrations/list';import _0x1e8b49 from'./integrations/mediaembed';import _0xacca4b from'./integrations/mention';import _0x306227 from'./integrations/pagebreak';import _0x3be5a9 from'./integrations/paragraph';import _0x8d7899 from'./integrations/removeformat';import _0x121575 from'./integrations/restrictededitingmode';import _0x3b4520 from'./integrations/shiftentercommand';import _0x26d63f from'./integrations/standardeditingmode';import _0x47dfa2 from'./integrations/style';import _0x511831 from'./integrations/table';import _0x1830eb from'./integrations/tablemergesplit';import _0x1d9070 from'./integrations/tableheadings';import _0x2d146a from'./integrations/tableclipboard';import _0x21a3d5 from'./integrations/title';import _0x51a7e5 from'./integrations/undo';import _0x3bfa65 from'./utils/hashobject.js';import{getTranslation as _0x49a8a7}from'./utils/common-translations';export default class d extends _0x35a535{static get['requires'](){return[_0x2551('0x2'),_0x4a3172,_0x3a1a3d,_0x4a7120,_0x10a708,_0x2f1a23,_0x7af8a4,_0x1f21a9,_0x320eb9,_0xba6841,_0x237f2e,_0x4fcda5,_0x30bcc7,_0x38e119,_0x84c390,_0x1dfb85,_0x9fc0b5,_0x532b86,_0x902bd3,_0x3061a1,_0x485ca2,_0x5bc3c6,_0x1e8b49,_0xacca4b,_0x306227,_0x3be5a9,_0x8d7899,_0x121575,_0x3b4520,_0x26d63f,_0x47dfa2,_0x511831,_0x1830eb,_0x1d9070,_0x2d146a,_0x21a3d5,_0x51a7e5];}static get['pluginName'](){return _0x2551('0x96');}constructor(_0x23f957){function _0x322b81(_0x21ce85){return _0x21ce85[_0x2551('0xe0')](_0x11e3cf=>String[_0x2551('0x119')](_0x11e3cf))[_0x2551('0x81')]('');}super(_0x23f957),this[_0x2551('0x10d')](_0x2551('0x117'),[]),this['on']('change:activeMarkers',(_0x10cf9d,_0x299dd2,_0x3e1f55,_0xa094f4)=>{this['_model']['change'](()=>{for(const _0x15fa8c of[..._0xa094f4,..._0x3e1f55])this['_model'][_0x2551('0x110')]['has'](_0x15fa8c)&&_0x23f957['editing']['reconvertMarker'](_0x15fa8c);});}),this[_0x2551('0x2a')]=new _0x32ad79(this[_0x2551('0x10e')][_0x2551('0x115')]['schema'],this[_0x2551('0x10e')][_0x2551('0x25')]),this['_adapter']=null,this['_suggestionFactory']=new wt(this['editor']),this[_0x2551('0x111')]=new Map(),this[_0x2551('0x10f')]=_0x23f957['plugins'][_0x2551('0x98')](_0x2551('0x2')),this['_enabledCommands']=new Set(),this['_model']=this[_0x2551('0x10e')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2551('0x103')]=!0x1,this[_0x322b81([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x322b81([0x34,0x30,0x34,0x34,0x32,0x30,0x32,0x32]);}[_0x2551('0x35')](){const _0x19217e=this['editor'];_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0x86'))[_0x2551('0x3a')]({'model':_0x2551('0xc7'),'view':_0x47c46c=>{const {id:_0x1922a8,type:_0x383a67}=this['_splitMarkerName'](_0x47c46c['markerName']),_0x53972d=[_0x2551('0x12a'),'ck-suggestion-marker-'+_0x383a67];let _0x583c92=0xbb8;return this[_0x2551('0x117')]['includes'](_0x47c46c[_0x2551('0x82')])&&(_0x53972d[_0x2551('0x8c')](_0x2551('0x71')),_0x583c92=0xbc2),_0x2551('0x9a')==_0x383a67&&(_0x583c92+=0x5),{'classes':_0x53972d,'attributes':{'data-suggestion':_0x1922a8},'priority':_0x583c92};}}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0xf8')](_0x22b16f=>{_0x22b16f['on'](_0x2551('0x49'),(_0x2d8425,_0x1b4eab,_0x4a632a)=>{if(!_0x4a632a[_0x2551('0xec')][_0x2551('0xbf')])return;const _0x21d97b=_0x1b4eab['item'];if(!_0x21d97b)return;const _0x32dba9=_0x4a632a[_0x2551('0xc3')][_0x2551('0x3d')](_0x21d97b);_0x19217e[_0x2551('0x115')]['schema']['isObject'](_0x21d97b)&&_0x32dba9&&!_0x32dba9[_0x2551('0x94')]('widget')&&_0x32dba9['is'](_0x2551('0xcd'))&&_0x1d8a83(_0x32dba9,_0x4a632a['writer']);},{'priority':_0x2551('0xdd')});}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0x3a')]({'model':_0x2551('0xc7'),'view':(_0xa0dc01,_0x590430)=>{if(!_0x590430[_0x2551('0xec')]['showSuggestionHighlights'])return null;const {type:_0x25b669}=this[_0x2551('0x12f')](_0xa0dc01[_0x2551('0x82')]);return{'classes':['ck-suggestion-marker',_0x2551('0x37')+_0x25b669],'priority':0xbb8};}});const _0xbf5ffe=({showActiveMarkers:_0x14b7fa=!0x0}={})=>(_0x15720f,_0x41cd5d,_0x5e0434)=>{if(!_0x41cd5d[_0x2551('0x93')])return;if(_0x41cd5d[_0x2551('0x93')]['is'](_0x2551('0x11b')))return void _0x5e0434[_0x2551('0xb')][_0x2551('0x56')](_0x41cd5d[_0x2551('0x93')],_0x15720f[_0x2551('0xcb')]);const _0x54d7e3=_0x5e0434[_0x2551('0xc3')][_0x2551('0x3d')](_0x41cd5d[_0x2551('0x93')]);if(!(_0x41cd5d['item']['is']('element')&&_0x19217e[_0x2551('0x115')]['schema'][_0x2551('0x8f')](_0x41cd5d[_0x2551('0x93')])&&!_0x54d7e3['getCustomProperty'](_0x2551('0xbd'))))return;const {id:_0xb8e6f8}=this[_0x2551('0x12f')](_0x41cd5d['markerName']);_0x5e0434['writer'][_0x2551('0xc2')]([_0x2551('0x12a'),_0x2551('0x74')],_0x54d7e3),_0x5e0434[_0x2551('0xe7')][_0x2551('0x6c')]('data-suggestion',_0xb8e6f8,_0x54d7e3),_0x5e0434[_0x2551('0xc3')][_0x2551('0x5d')](_0x54d7e3,_0x41cd5d['markerName']),_0x14b7fa&&(this[_0x2551('0x117')]['includes'](_0x41cd5d[_0x2551('0x82')])?_0x5e0434['writer'][_0x2551('0xc2')](_0x2551('0x71'),_0x54d7e3):_0x5e0434[_0x2551('0xe7')][_0x2551('0xac')](_0x2551('0x71'),_0x54d7e3));for(const _0x2b5fe5 of _0x19217e[_0x2551('0x115')][_0x2551('0x31')](_0x41cd5d['item'])[_0x2551('0x16')]())_0x5e0434[_0x2551('0xb')]['consume'](_0x2b5fe5,_0x15720f[_0x2551('0xcb')]);_0x5e0434['consumable'][_0x2551('0x56')](_0x41cd5d['item'],_0x15720f['name']);};_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0xf8')](_0x2893b7=>{_0x2893b7['on'](_0x2551('0x48'),(_0x35a5e7,_0x5895f5,_0x2d4f20)=>{_0x2d4f20['options']['showSuggestionHighlights']&&_0xbf5ffe({'showActiveMarkers':!0x1})(_0x35a5e7,_0x5895f5,_0x2d4f20);},{'priority':_0x2551('0xdf')});}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0x66')]({'model':_0x2551('0xc7'),'view':(_0x4c6d68,_0x32837d)=>_0x32837d[_0x2551('0xec')][_0x2551('0xbf')]?null:{'group':_0x2551('0xc7'),'name':_0x4c6d68[_0x2551('0x83')](_0x2551('0xc7')[_0x2551('0xca')]+0x1)}}),_0x19217e['conversion'][_0x2551('0xb9')](_0x2551('0xfe'))[_0x2551('0xfd')]({'view':{'name':'suggestion','attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x38526f,{writer:_0x48116e})=>{let _0x541084=_0x2551('0x88')+_0x38526f[_0x2551('0x107')]('suggestion-type')+':'+_0x38526f['getAttribute']('id');return _0x38526f[_0x2551('0x107')](_0x2551('0xa'))&&(_0x541084+=':'+_0x38526f['getAttribute'](_0x2551('0xa'))),_0x48116e[_0x2551('0x8b')]('$marker',{'data-name':_0x541084});}}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xfe'))[_0x2551('0x5')]({'view':_0x2551('0xc7')}),_0x19217e['conversion'][_0x2551('0xb9')](_0x2551('0x86'))['add'](_0x3d07c5=>{_0x3d07c5['on'](_0x2551('0x48'),_0xbf5ffe(),{'priority':_0x2551('0xdd')});}),_0x19217e['conversion'][_0x2551('0xb9')](_0x2551('0x86'))[_0x2551('0xf8')](_0x8e4c8=>{_0x8e4c8['on'](_0x2551('0x1a'),(_0x23f2c4,_0x1536e6,_0x2b96e5)=>{const _0x2f61ab=_0x2b96e5[_0x2551('0xc3')]['markerNameToElements'](_0x1536e6[_0x2551('0x82')]);if(_0x2f61ab)for(const _0x10a486 of _0x2f61ab)_0x10a486['getCustomProperty'](_0x2551('0xbd'))||(_0x2b96e5[_0x2551('0xe7')]['removeClass']([_0x2551('0x12a'),_0x2551('0x74'),_0x2551('0x71')],_0x10a486),_0x2b96e5['writer'][_0x2551('0x29')](_0x2551('0x5f'),_0x10a486),_0x2b96e5[_0x2551('0xc3')]['unbindElementFromMarkerName'](_0x10a486,_0x1536e6[_0x2551('0x82')]));},{'priority':_0x2551('0xdd')});}),_0x19217e[_0x2551('0x115')]['document'][_0x2551('0x51')](_0x15fc46=>{let _0x4273e4=!0x1;const _0x2aa9bc=Array['from'](_0x19217e[_0x2551('0x115')][_0x2551('0x50')][_0x2551('0x6')][_0x2551('0x77')]()),_0x3fb7fc=new Set();for(const {name:_0x5250d3,data:_0xfddd8b}of _0x2aa9bc){const {group:_0x59882f,type:_0x40cf3e,id:_0x2d3329}=this['_splitMarkerName'](_0x5250d3);if(_0x2551('0xc7')!==_0x59882f)continue;const _0x3cf1ba=this['_suggestions'][_0x2551('0x98')](_0x2d3329);if(null!=_0xfddd8b[_0x2551('0x12')]){_0x2551('0x8')==_0x40cf3e&&(_0x4273e4=_0x4273e4||St(_0xfddd8b[_0x2551('0x12')],_0x5250d3,_0x15fc46,_0x19217e[_0x2551('0x115')]['schema']));if(_0xfddd8b[_0x2551('0x12')][_0x2551('0x6e')]||_0x2551('0xea')==_0xfddd8b['newRange']['root']['rootName']||'formatBlock'==_0x40cf3e&&!vt(_0xfddd8b['newRange'])||_0x2551('0x9a')==_0x40cf3e&&!(!bt(_0x5497b1=_0xfddd8b[_0x2551('0x12')])&&!function(_0x188f22){return _0x188f22[_0x2551('0xae')][_0x2551('0x59')]==_0x188f22[_0x2551('0xa0')][_0x2551('0x5a')]&&_0x188f22[_0x2551('0xae')][_0x2551('0x112')];}(_0x5497b1)))_0x15fc46[_0x2551('0x113')](_0x5250d3),_0x4273e4=!0x0;else{if(!_0x3cf1ba||!_0x3cf1ba[_0x2551('0x11f')])continue;_0x3fb7fc['add'](_0x3cf1ba);}}}var _0x5497b1;return _0x3fb7fc[_0x2551('0x54')]>0x0&&(_0x4273e4=!!this['_joinWithAdjacentSuggestions'](_0x3fb7fc)||_0x4273e4),_0x4273e4;}),_0x19217e[_0x2551('0x115')][_0x2551('0x50')]['registerPostFixer'](_0x4c1db4=>{let _0x1b2a9f=!0x1;for(const _0x3043c5 of _0x19217e['model'][_0x2551('0x50')][_0x2551('0x6')]['getChanges']()){if(_0x2551('0xa6')!=_0x3043c5[_0x2551('0x121')])continue;const _0x23b9b4=_0x3043c5['position'][_0x2551('0xff')](_0x3043c5[_0x2551('0xca')]);if(_0x23b9b4[_0x2551('0x112')])for(const _0x41604b of this[_0x2551('0x111')][_0x2551('0x6b')]()){if(_0x41604b[_0x2551('0xe8')]||!_0x41604b['isInContent'])continue;if(_0x2551('0xd6')!=_0x41604b['type'])continue;const _0x4eec16=_0x41604b[_0x2551('0x45')]();if(_0x4eec16[_0x2551('0xae')][_0x2551('0x59')]!=_0x4eec16[_0x2551('0xa0')][_0x2551('0x59')]&&_0x4eec16[_0x2551('0xa0')][_0x2551('0x12d')](_0x3043c5['position'])){const _0x4718c8=_0x19217e[_0x2551('0x115')]['createRange'](_0x4eec16[_0x2551('0xae')],_0x23b9b4);_0x4c1db4[_0x2551('0xe3')](_0x41604b[_0x2551('0xa5')](),{'range':_0x4718c8}),_0x1b2a9f=!0x0;}}}return _0x1b2a9f;}),_0x19217e[_0x2551('0x115')][_0x2551('0x110')]['on']('update:suggestion',(_0x16cecf,_0x568641,_0x1b8f8d)=>{if(null==_0x1b8f8d){const {id:_0x3640a5}=this[_0x2551('0x12f')](_0x568641['name']),_0x3ca59b=this[_0x2551('0x111')][_0x2551('0x98')](_0x3640a5);_0x3ca59b&&_0x3ca59b[_0x2551('0x22')](_0x568641[_0x2551('0xcb')]);}}),_0x19217e[_0x2551('0x115')][_0x2551('0x50')]['on'](_0x2551('0xf2'),()=>{const _0x3c7bb4=Array['from'](_0x19217e[_0x2551('0x115')][_0x2551('0x50')][_0x2551('0x6')][_0x2551('0x77')]())[_0x2551('0x7d')](_0x410af5=>_0x2551('0xc7')===this[_0x2551('0x12f')](_0x410af5[_0x2551('0xcb')])[_0x2551('0x17')]);if(0x0===_0x3c7bb4[_0x2551('0xca')])return;_0x3c7bb4[_0x2551('0x128')]((_0x1f6caf,_0x282bf4)=>{const _0x9bdcea=_0x1f6caf[_0x2551('0xf7')][_0x2551('0xe2')],_0x2e7295=_0x282bf4[_0x2551('0xf7')]['oldRange'];return null===_0x9bdcea&&null===_0x2e7295?0x0:null===_0x9bdcea&&null!==_0x2e7295?-0x1:null!==_0x9bdcea&&null===_0x2e7295?0x1:_0x9bdcea[_0x2551('0xae')][_0x2551('0x44')](_0x2e7295[_0x2551('0xae')])?-0x1:0x1;});const _0x448e0b=new Set(),_0x356f2b=new Set();for(const {name:_0x3dfc86,data:_0x451360}of _0x3c7bb4){const {id:_0x89ecb7}=this['_splitMarkerName'](_0x3dfc86);if(null===_0x451360[_0x2551('0xe2')]){const _0x3f51c6=this[_0x2551('0x40')](_0x3dfc86);_0x356f2b[_0x2551('0xf8')](_0x3f51c6);}else{const _0x314f23=this['_suggestions'][_0x2551('0x98')](_0x89ecb7);null!==_0x451360[_0x2551('0x12')]||_0x314f23[_0x2551('0x11f')]?(_0x448e0b[_0x2551('0xf8')](_0x314f23['head']),_0x356f2b[_0x2551('0xf8')](_0x314f23)):this['_removeSuggestion'](_0x314f23);}}_0x356f2b['size']>0x0&&this['_refreshSuggestionsChain'](_0x356f2b);for(const _0x185703 of _0x448e0b)this[_0x2551('0xd9')](_0x2551('0x108'),_0x185703);}),_0x19217e[_0x2551('0x115')]['on']('applyOperation',(_0x1a0066,_0x3aacad)=>{const _0x1b000e=_0x3aacad[0x0];if(!this[_0x2551('0x111')][_0x2551('0x54')])return;if(!_0x1b000e[_0x2551('0x85')])return;if(_0x1b000e['batch'][_0x2551('0x67')]||!_0x1b000e[_0x2551('0xd8')]['isLocal'])return;let _0x1bd134,_0x50bc4a;switch(_0x1b000e[_0x2551('0x121')]){case _0x2551('0xa6'):_0x1bd134=_0x19217e[_0x2551('0x115')][_0x2551('0x120')](_0x1b000e['position']),_0x50bc4a=_0x1bd134[_0x2551('0xff')](_0x1b000e['howMany']);break;case'split':_0x1bd134=_0x19217e['model'][_0x2551('0x120')](_0x1b000e[_0x2551('0x3')]),_0x50bc4a=_0x19217e['model'][_0x2551('0x120')](_0x1b000e['moveTargetPosition']);break;case _0x2551('0xb2'):_0x1bd134=_0x19217e['model'][_0x2551('0x120')](_0x1b000e[_0x2551('0x4b')]),_0x50bc4a=_0x1bd134[_0x2551('0xff')](_0x1b000e[_0x2551('0x95')]);break;default:return;}const _0x57c890=_0x19217e['model']['createRange'](_0x1bd134,_0x50bc4a);_0x19217e[_0x2551('0x115')][_0x2551('0x6f')](()=>{for(const {suggestion:_0x4a4bf6,meta:_0x3deb9a}of this[_0x2551('0xd3')](_0x57c890)){if(_0x4a4bf6[_0x2551('0xe8')])continue;if('formatInline'==_0x4a4bf6[_0x2551('0x121')])continue;const _0x42bc67=_0x4a4bf6[_0x2551('0xf7')]&&_0x4a4bf6[_0x2551('0xf7')][_0x2551('0x2e')];(_0x2551('0xd6')!=_0x4a4bf6[_0x2551('0x121')]||_0x2551('0x87')==_0x1b000e[_0x2551('0x121')]&&!_0x42bc67)&&(_0x3deb9a[_0x2551('0x13')]||_0x2551('0x1b')==_0x4a4bf6[_0x2551('0x121')]&&_0x3deb9a['isOwn']||_0x4a4bf6[_0x2551('0x45')]()[_0x2551('0xaa')](_0x57c890)&&this['_breakSuggestionMarker'](_0x4a4bf6,_0x1bd134,_0x50bc4a));}});},{'priority':'lowest'}),_0x19217e[_0x2551('0x115')]['on'](_0x2551('0xf0'),(_0x499139,_0x164433)=>{const _0x50df4=_0x164433[0x0],_0x4f49b9=_0x164433[0x1];if(_0x4f49b9&&_0x4f49b9['forceDefaultExecution'])return;if(this[_0x2551('0x103')])return;if(!this[_0x2551('0x7f')]['value'])return;if(_0x50df4['isCollapsed'])return;const _0x212693=_0x19217e[_0x2551('0x115')][_0x2551('0x7b')],{start:_0x272438,end:_0x229694}=_0x50df4[_0x2551('0x45')](),_0x3c5978=_0x272438['nodeAfter']&&_0x212693[_0x2551('0x73')](_0x272438['nodeAfter'])?null:_0x212693[_0x2551('0x9f')](_0x272438,_0x2551('0x10')),_0x195032=_0x229694[_0x2551('0x5a')]&&_0x212693[_0x2551('0x73')](_0x229694[_0x2551('0x5a')])?null:_0x212693['getNearestSelectionRange'](_0x229694,_0x2551('0x102')),_0x8e0d65=_0x19217e[_0x2551('0x115')]['createRange'](_0x3c5978?_0x3c5978['start']:_0x272438,_0x195032?_0x195032['end']:_0x229694);_0x19217e['model'][_0x2551('0x6f')](_0x2215a7=>{this[_0x2551('0xce')](_0x8e0d65);const _0x1b73c6=_0x19217e[_0x2551('0x115')]['schema'][_0x2551('0x9f')](_0x8e0d65[_0x2551('0xae')]);_0x50df4['is']('documentSelection')?_0x2215a7['setSelection'](_0x1b73c6):_0x50df4[_0x2551('0xc4')](_0x1b73c6);}),_0x499139[_0x2551('0x4d')]();},{'priority':_0x39766d['normal']+0xa}),_0x19217e[_0x2551('0x115')]['on'](_0x2551('0x127'),(_0x3c65ba,_0x1fc4c1)=>{const _0x565d5e=_0x1fc4c1[_0x1fc4c1['length']-0x1];_0x565d5e&&_0x565d5e[_0x2551('0x126')]||this[_0x2551('0x103')]||this[_0x2551('0x7f')]['value']&&(_0x19217e[_0x2551('0x115')][_0x2551('0x6f')](()=>{let _0x1421fe=_0x19217e[_0x2551('0x115')][_0x2551('0x127')](_0x1fc4c1[0x0],_0x1fc4c1[0x1],_0x1fc4c1[0x2],_0x1fc4c1[0x3],{'forceDefaultExecution':!0x0});if(!_0x1421fe)return;_0x3c65ba[_0x2551('0x4e')]=_0x1421fe[_0x2551('0x7c')]();const _0x1c4fbc=_0x1421fe[_0x2551('0xa0')][_0x2551('0x5a')],_0xe3c7cd=_0x19217e['model']['schema'];_0x1c4fbc&&_0xe3c7cd['isBlock'](_0x1c4fbc)&&!_0xe3c7cd[_0x2551('0x73')](_0x1c4fbc)&&(_0x1421fe=_0x19217e['model'][_0x2551('0x41')](_0x1421fe[_0x2551('0xae')],_0x19217e[_0x2551('0x115')][_0x2551('0x120')](_0x1c4fbc,'end'))),this[_0x2551('0x7e')](_0x1421fe);}),_0x3c65ba[_0x2551('0x4d')]());},{'priority':_0x2551('0xdd')}),this[_0x2551('0x7f')]=new _0x13a8b0(_0x19217e,this['_enabledCommands']),this[_0x2551('0x10e')]['commands'][_0x2551('0xf8')](_0x2551('0x80'),this['trackChangesCommand']),this[_0x2551('0x24')](_0x2551('0x80'));const _0x5d599d=new _0x35323c(_0x19217e,this['_suggestions']);_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0x10b'),_0x5d599d),this[_0x2551('0x24')](_0x2551('0x10b'));const _0x3db3f8=new _0x4d777c(_0x19217e,this[_0x2551('0x111')]);_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0x38'),_0x3db3f8),this['enableCommand'](_0x2551('0x38')),_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0xe4'),new _0x5cd782(_0x19217e,_0x5d599d,this[_0x2551('0x111')])),this[_0x2551('0x24')](_0x2551('0xe4')),_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0x101'),new _0x5acbbe(_0x19217e,_0x3db3f8,this[_0x2551('0x111')])),this[_0x2551('0x24')]('discardAllSuggestions'),_0x19217e['commands'][_0x2551('0xf8')](_0x2551('0x8d'),new _0x360557(_0x19217e,_0x5d599d,this[_0x2551('0x111')])),this['enableCommand'](_0x2551('0x8d')),_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')]('discardSelectedSuggestions',new _0xbd7e9c(_0x19217e,_0x3db3f8,this[_0x2551('0x111')])),this[_0x2551('0x24')](_0x2551('0x97'));const _0x5c0023=_0x19217e[_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x2'));this['listenTo'](_0x5c0023,_0x2551('0xf3'),(_0x21a5a5,{threadId:_0x458a0c})=>{const _0x27072c=this[_0x2551('0x111')]['get'](_0x458a0c);_0x27072c&&_0x27072c[_0x2551('0x129')]&&0x1===_0x27072c[_0x2551('0x129')]['length']&&this['_updateSuggestionData'](_0x458a0c,{'hasComments':!0x0});},{'priority':'low'}),this[_0x2551('0xdc')](_0x5c0023,_0x2551('0xcf'),(_0x1e426d,{threadId:_0x1954c7})=>{const _0x565c1c=this['_suggestions'][_0x2551('0x98')](_0x1954c7);_0x565c1c&&_0x565c1c['commentThread']&&!_0x565c1c[_0x2551('0x129')][_0x2551('0xca')]&&this[_0x2551('0x123')](_0x1954c7,{'hasComments':!0x1});},{'priority':'low'});}set[_0x2551('0x11e')](_0x20d1a6){if(this[_0x2551('0xbe')])throw new _0x1d0d3c('track-changes-adapter-already-set',this);this[_0x2551('0xbe')]=_0x20d1a6;}get[_0x2551('0x11e')](){return this[_0x2551('0xbe')];}[_0x2551('0x12e')]({skipNotAttached:_0x34d91=!0x1,toJSON:_0x4a1e4f=!0x1}={}){const _0x59c3df=[];for(const _0x12b6e3 of this['_suggestions'][_0x2551('0x6b')]())_0x34d91&&!_0x12b6e3['isInContent']||_0x59c3df[_0x2551('0x8c')](_0x12b6e3);return _0x4a1e4f?_0x59c3df[_0x2551('0xe0')](_0x120613=>_0x120613['toJSON']()):_0x59c3df;}[_0x2551('0x4f')](_0x2df7ad){const _0x3b63d3=this[_0x2551('0x111')][_0x2551('0x98')](_0x2df7ad);if(!_0x3b63d3)throw new _0x1d0d3c('track-changes-suggestion-not-found',this);return _0x3b63d3;}[_0x2551('0x116')](_0x3221fc){return this['_suggestions'][_0x2551('0x19')](_0x3221fc);}['addSuggestionData'](_0x4a50e7){const {id:_0x481c95,authorId:_0x4633c0,attributes:_0x37a4e0}=_0x4a50e7,[_0x2045c4,_0x42cb22]=_0x4a50e7[_0x2551('0x121')][_0x2551('0x87')](':'),_0x59915a=this[_0x2551('0x111')][_0x2551('0x98')](_0x481c95)||this['_createSuggestion'](_0x2045c4,_0x42cb22,_0x481c95,_0x4633c0,_0x37a4e0);switch(this[_0x2551('0xb0')](_0x59915a),this[_0x2551('0x47')](_0x59915a,_0x2045c4,_0x42cb22||null,_0x4633c0),_0x59915a[_0x2551('0x105')]=_0x4a50e7['createdAt'],_0x4a50e7['data']&&(_0x59915a[_0x2551('0xf7')]=_0x4a50e7[_0x2551('0xf7')]),_0x4a50e7[_0x2551('0xf1')]&&(_0x59915a[_0x2551('0xf1')]=_0x4a50e7[_0x2551('0xf1')]),this[_0x2551('0xbe')]&&this[_0x2551('0xbe')][_0x2551('0x79')]||(_0x59915a[_0x2551('0x70')]=!0x0),this[_0x2551('0x4c')]['get'](_0x59915a)){case'notReady':this['_suggestionState'][_0x2551('0x10d')](_0x59915a,_0x2551('0x5c'));break;case _0x2551('0x3c'):_0x59915a[_0x2551('0x11f')]?(this[_0x2551('0x4c')][_0x2551('0x10d')](_0x59915a,'ready'),this[_0x2551('0xd9')](_0x2551('0x60'),_0x59915a)):this['_suggestionState'][_0x2551('0x10d')](_0x59915a,_0x2551('0x125'));}return _0x59915a;}[_0x2551('0x10b')](_0x41465c){this[_0x2551('0x126')](()=>{this['editor'][_0x2551('0x115')][_0x2551('0x6f')](()=>{for(const _0x1cfc75 of _0x41465c[_0x2551('0x21')]())_0x1cfc75[_0x2551('0xd7')]();});});}[_0x2551('0x38')](_0x2d7dd6){this[_0x2551('0x126')](()=>{this[_0x2551('0x10e')][_0x2551('0x115')][_0x2551('0x6f')](()=>{for(const _0x1199de of _0x2d7dd6[_0x2551('0x21')]())_0x1199de[_0x2551('0x92')]();});});}[_0x2551('0x24')](_0x32cfc5,_0x3d369d){const _0x52cf05=this[_0x2551('0x10e')][_0x2551('0xd1')][_0x2551('0x98')](_0x32cfc5);if(!_0x52cf05)throw new _0x1d0d3c(_0x2551('0xb7'),this,{'commandName':_0x32cfc5});this[_0x2551('0x11d')][_0x2551('0xf8')](_0x52cf05),_0x3d369d&&_0x52cf05['on'](_0x2551('0x26'),(_0x163fbe,_0x4df595)=>{this[_0x2551('0x7f')]['value']&&(this[_0x2551('0x103')]||_0x4df595[_0x2551('0xca')]>0x0&&_0x4df595[_0x4df595['length']-0x1]&&_0x4df595[_0x4df595['length']-0x1][_0x2551('0x126')]||(_0x3d369d((..._0x2d8210)=>_0x52cf05[_0x2551('0x26')](..._0x2d8210,{'forceDefaultExecution':!0x0}),..._0x4df595),_0x163fbe[_0x2551('0x4d')]()));},{'priority':_0x2551('0xdd')});}[_0x2551('0x126')](_0x2b0e72){let _0x26d93a,_0x415835;const _0x522d2f=this[_0x2551('0x103')];this[_0x2551('0x103')]=!0x0;try{_0x26d93a=_0x2b0e72();}catch(_0x5a2f1f){_0x415835=_0x5a2f1f;}return _0x522d2f||(this[_0x2551('0x103')]=!0x1),_0x415835&&_0x1d0d3c[_0x2551('0xda')](_0x415835,this),_0x26d93a;}[_0x2551('0x7e')](_0x16df3b,_0x38d4bd=null,_0xb0bccb={}){if(_0x16df3b['isCollapsed'])return null;const _0x2e0534=this[_0x2551('0x10e')]['plugins']['get']('Users')['me'];for(const {suggestion:_0x5e90ef,meta:_0x4cb365}of this['_findSuggestions'](_0x16df3b,_0x2551('0x1b')))if(_0x4cb365['isOwn']){if(!_0x4cb365[_0x2551('0x12c')])return _0x5e90ef;if(_0x38d4bd==_0x5e90ef['subType']){const _0x74419f=_0x5e90ef[_0x2551('0x45')]();return _0x74419f[_0x2551('0xae')][_0x2551('0x12d')](_0x16df3b[_0x2551('0xa0')])?this[_0x2551('0x2f')](_0x5e90ef,this[_0x2551('0x6d')][_0x2551('0x41')](_0x16df3b[_0x2551('0xae')],_0x74419f[_0x2551('0xa0')])):this['_setSuggestionRange'](_0x5e90ef,this[_0x2551('0x6d')][_0x2551('0x41')](_0x74419f[_0x2551('0xae')],_0x16df3b[_0x2551('0xa0')])),_0x5e90ef;}}const _0x2a3902=_0x8909f2(),_0x12dc0d=_0x2e0534['id'],_0xe972b2=_0x38d4bd?'insertion:'+_0x38d4bd:'insertion',_0x2b50a8=this[_0x2551('0xe')]({'id':_0x2a3902,'type':_0xe972b2,'createdAt':new Date(),'authorId':_0x12dc0d,'attributes':_0xb0bccb});return this['_addSuggestionMarker'](_0xe972b2,_0x2a3902,_0x12dc0d,_0x16df3b),_0x2b50a8;}[_0x2551('0xc5')](_0x33adce,_0x23476f=_0x2551('0x30'),_0x3e17a8={}){const _0x3e0692=this[_0x2551('0x10e')][_0x2551('0xf5')]['get'](_0x2551('0x118'))['me'],_0x3d0a00=this['_suggestionFactory'][_0x2551('0xf6')](_0x2551('0x1b'),_0x23476f,_0x2551('0x81'));for(const _0x3934ac of this[_0x2551('0x12e')]())if(_0x3934ac[_0x2551('0x15')]['id']==_0x3e0692['id']&&_0x2551('0x1b')==_0x3934ac['type']&&_0x3934ac[_0x2551('0x4')]==_0x23476f&&(_0x3d0a00(_0x3934ac[_0x2551('0x104')](),_0x33adce)||_0x3d0a00(_0x33adce,_0x3934ac[_0x2551('0x104')]()))){for(const _0x2f8dbc of _0x33adce)_0x3934ac[_0x2551('0xa9')](_0x2f8dbc);return _0x3934ac;}for(const _0x407765 of _0x33adce)for(const {suggestion:_0xa10a6,meta:_0x514332}of this[_0x2551('0xd3')](_0x407765,_0x2551('0x1b'))){if(!_0x514332[_0x2551('0x63')])continue;let _0x1f89f0=!0x0;for(const _0x403739 of _0xa10a6[_0x2551('0x104')]())for(const _0x17cb35 of _0x33adce)if(!_0x403739[_0x2551('0xaa')](_0x17cb35)){_0x1f89f0=!0x1;break;}if(_0x1f89f0)return _0xa10a6;}const _0x4aebbc=_0x8909f2(),_0x178e90=_0x3e0692['id'],_0x364049=_0x2551('0xe1')+_0x23476f,_0x3605fd=this[_0x2551('0xe')]({'id':_0x4aebbc,'type':_0x364049,'createdAt':new Date(),'authorId':_0x178e90,'attributes':_0x3e17a8});for(const _0x2f56b9 of _0x33adce)this[_0x2551('0xd5')](_0x364049,_0x4aebbc,_0x178e90,_0x2f56b9,_0x2600ac[_0x2551('0xde')]());return _0x3605fd;}[_0x2551('0x64')](_0x5f5b54,_0xb9dfa9,_0x635033=null,_0x33aced={}){if(_0x635033=_0x635033||It(_0xb9dfa9),_0x5f5b54['isCollapsed'])return;const _0x1c2e60=this['editor'][_0x2551('0xf5')][_0x2551('0x98')]('Users')['me'],_0x2dae68=[];for(const {suggestion:_0x2a6e00,meta:_0x3a920a}of this[_0x2551('0xd3')](_0x5f5b54,_0x2551('0x1b')))_0x3a920a[_0x2551('0x63')]&&!_0x3a920a[_0x2551('0x39')]&&_0x2dae68['push'](..._0x2a6e00[_0x2551('0x104')]());const _0x46fdc9=function(_0x328fed,_0x5cb6c9){const _0x2aa472=[];for(const _0x3f04ec of _0x5cb6c9){const _0x330221=_0x328fed[_0x2551('0x89')](_0x3f04ec);_0x330221&&_0x2aa472[_0x2551('0x8c')](_0x330221);}return _0x2aa472;}(_0x5f5b54,_0x2dae68),_0x37a126=function(_0x2ba601,_0x771488){const _0x5ccbe9=[_0x2ba601];for(const _0x27ad43 of _0x771488){let _0x3f649e=0x0;for(;_0x3f649e<_0x5ccbe9[_0x2551('0xca')];){const _0x1f6241=_0x5ccbe9[_0x3f649e][_0x2551('0x28')](_0x27ad43);_0x5ccbe9[_0x2551('0xc0')](_0x3f649e,0x1,..._0x1f6241),_0x3f649e+=_0x1f6241['length'];}}return _0x5ccbe9;}(_0x5f5b54,_0x2dae68);_0x46fdc9[_0x2551('0xca')]&&this[_0x2551('0x6d')][_0x2551('0x6f')](()=>{for(const _0x4ef36b of _0x46fdc9){const _0x5beee2=this[_0x2551('0x58')][_0x2551('0xf6')]('formatInline',_0x635033,'accept');this[_0x2551('0x126')](()=>_0x5beee2([_0x4ef36b],_0xb9dfa9,_0x33aced));}});for(const _0x5cfdaf of _0x37a126){let _0x115376=null,_0x4201df=_0x5cfdaf['start'],_0x5d3b20=_0x5cfdaf[_0x2551('0xa0')];for(const {suggestion:_0x3bd626,meta:_0x1abba8}of this[_0x2551('0xd3')](_0x5cfdaf,_0x2551('0x8'))){if(!_0x1abba8['isOwn'])continue;if(_0x3bd626['subType']!=_0x635033)continue;const _0x50c24a=_0x3bd626[_0x2551('0x45')]();if(_0x50c24a[_0x2551('0xaa')](_0x5cfdaf,!0x0))return;_0x4201df=_0x4201df[_0x2551('0x44')](_0x50c24a[_0x2551('0xae')])?_0x4201df:_0x50c24a['start'],_0x5d3b20=_0x5d3b20[_0x2551('0x7a')](_0x50c24a['end'])?_0x5d3b20:_0x50c24a['end'],_0x115376?_0x50c24a[_0x2551('0xae')][_0x2551('0x44')](_0x115376[_0x2551('0x45')]()[_0x2551('0xae')])?(_0x115376[_0x2551('0xa1')](),_0x115376=_0x3bd626):_0x3bd626[_0x2551('0xa1')]():_0x115376=_0x3bd626;}const _0x24b0ca=this[_0x2551('0x6d')]['createRange'](_0x4201df,_0x5d3b20);if(_0x115376)this[_0x2551('0x2f')](_0x115376,_0x24b0ca);else{const _0x1bb94d=_0x8909f2(),_0x4d2d83=_0x1c2e60['id'];this['_setSuggestionData']({'id':_0x1bb94d,'type':'formatInline:'+_0x635033,'data':_0xb9dfa9,'createdAt':new Date(),'authorId':_0x4d2d83,'attributes':_0x33aced}),this[_0x2551('0xd5')](_0x2551('0xf4')+_0x635033,_0x1bb94d,_0x4d2d83,_0x24b0ca);}}}[_0x2551('0x33')](_0x163aa9,_0x33c42a,_0x17a96d=[],_0x3a97da=null,_0x1c3717={}){_0x33c42a['formatGroupId']||(_0x33c42a['formatGroupId']=_0x33c42a[_0x2551('0xa2')]),_0x33c42a[_0x2551('0x2e')]=_0x163aa9['is']('range'),_0x3a97da=_0x3a97da||It(_0x33c42a);const _0x3ce0da=_0x17a96d[_0x2551('0xe0')](_0x272b64=>At(_0x272b64,this['_model'])),_0x3dc2fe=_0x163aa9['is'](_0x2551('0x109'))?_0x163aa9:At(_0x163aa9,this[_0x2551('0x6d')]);_0x3ce0da[_0x2551('0x8c')](_0x3dc2fe);let _0x4b08c8=!0x0;for(const _0x7dec6b of _0x3ce0da)if(!this[_0x2551('0x9d')](_0x7dec6b)){_0x4b08c8=!0x1;break;}if(_0x4b08c8){const _0x5cea5e=this[_0x2551('0x58')]['getSuggestionCallback']('formatBlock',_0x3a97da,_0x2551('0xd7'));return void this[_0x2551('0x126')](()=>_0x5cea5e([_0x3dc2fe],_0x33c42a,_0x1c3717));}let _0x1c371d=null,_0xe57bcc=_0x3dc2fe['start'],_0x1e48ef=_0x3dc2fe['end'];for(const {suggestion:_0x49530b,meta:_0x4424aa}of this['_findSuggestions'](_0x3dc2fe,_0x2551('0xd6'))){if(!_0x4424aa['isOwn']||_0x4424aa[_0x2551('0x12c')]||_0x4424aa[_0x2551('0x13')]||_0x4424aa[_0x2551('0x39')])continue;if(_0x49530b[_0x2551('0xf7')]['formatGroupId']!=_0x33c42a[_0x2551('0x69')])continue;const _0x2a5cb8=_0x49530b[_0x2551('0x45')]();if(_0x49530b[_0x2551('0x4')]==_0x3a97da){if(_0x2a5cb8['containsRange'](_0x3dc2fe,!0x0))return;_0xe57bcc=_0xe57bcc[_0x2551('0x44')](_0x2a5cb8['start'])?_0xe57bcc:_0x2a5cb8[_0x2551('0xae')],_0x1e48ef=_0x1e48ef[_0x2551('0x7a')](_0x2a5cb8[_0x2551('0xa0')])?_0x1e48ef:_0x2a5cb8['end'],_0x1c371d?_0x2a5cb8[_0x2551('0xae')][_0x2551('0x44')](_0x1c371d[_0x2551('0x45')]()[_0x2551('0xae')])?(_0x1c371d[_0x2551('0xa1')](),_0x1c371d=_0x49530b):_0x49530b[_0x2551('0xa1')]():_0x1c371d=_0x49530b;}else{const _0x436200=_0x3dc2fe[_0x2551('0x89')](_0x2a5cb8);this[_0x2551('0xaf')](_0x49530b,_0x436200);}}const _0x26797f=this[_0x2551('0x10e')][_0x2551('0xf5')]['get'](_0x2551('0x118'))['me'],_0x2d735a=_0x8909f2(),_0x3c3550=_0x26797f['id'];_0x1c371d?this[_0x2551('0x2f')](_0x1c371d,this['_model']['createRange'](_0xe57bcc,_0x1e48ef)):(this['_setSuggestionData']({'id':_0x2d735a,'type':'formatBlock:'+_0x3a97da,'data':_0x33c42a,'createdAt':new Date(),'authorId':_0x3c3550,'attributes':_0x1c3717}),this[_0x2551('0xd5')]('formatBlock:'+_0x3a97da,_0x2d735a,_0x3c3550,this[_0x2551('0x6d')][_0x2551('0x41')](_0xe57bcc,_0x1e48ef)));}[_0x2551('0x23')](_0x76f3dd,_0x1d29ab,_0x43ef67=[],_0x482b72=null,_0x2258c5={}){_0x1d29ab[_0x2551('0x69')]||(_0x1d29ab[_0x2551('0x69')]=_0x1d29ab['commandName']),_0x1d29ab['multipleBlocks']=!0x1,_0x482b72=_0x482b72||It(_0x1d29ab);const _0x4c6673=_0x43ef67[_0x2551('0xe0')](_0x343065=>At(_0x343065,this[_0x2551('0x6d')])),_0x2d29e5=_0x76f3dd[_0x2551('0xe0')](_0x597d03=>At(_0x597d03,this[_0x2551('0x6d')]));_0x4c6673[_0x2551('0x8c')](..._0x2d29e5);let _0x10bfb9=!0x0;for(const _0x239ac3 of _0x4c6673)if(!this[_0x2551('0x9d')](_0x239ac3)){_0x10bfb9=!0x1;break;}if(_0x10bfb9){const _0x4b84d0=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0xd6'),_0x482b72,_0x2551('0xd7'));return void this['forceDefaultExecution'](()=>_0x4b84d0(_0x2d29e5,_0x1d29ab,_0x2258c5));}const _0xc75d47=this[_0x2551('0x10e')][_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x118'))['me'];for(const _0x1835c1 of this[_0x2551('0x12e')]()){if(_0x1835c1[_0x2551('0x15')]['id']!=_0xc75d47['id'])continue;if(_0x2551('0xd6')!=_0x1835c1['type']||_0x1835c1[_0x2551('0xf7')]['formatGroupId']!=_0x1d29ab[_0x2551('0x69')])continue;const _0x5f4ff3=_0x1835c1[_0x2551('0x4')]==_0x482b72;for(let _0x54cb61=0x0;_0x54cb61<_0x2d29e5[_0x2551('0xca')];_0x54cb61++){const _0x2784ed=_0x2d29e5[_0x54cb61];for(const _0x37be31 of _0x1835c1['getMarkers']()){const _0x253b8f=_0x37be31[_0x2551('0x3f')]();if(_0x2784ed[_0x2551('0x12d')](_0x253b8f)){_0x5f4ff3?(_0x2d29e5['splice'](_0x54cb61,0x1),_0x54cb61--):_0x1835c1['removeMarker'](_0x37be31['name']);break;}}}}if(0x0==_0x2d29e5[_0x2551('0xca')])return;const _0x393303=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0xd6'),_0x482b72,'join');for(const _0x56497e of this[_0x2551('0x12e')]())if(_0x56497e['author']['id']==_0xc75d47['id']&&'formatBlock'==_0x56497e['type']&&_0x56497e[_0x2551('0xf7')]['formatGroupId']==_0x1d29ab['formatGroupId']&&_0x56497e['subType']==_0x482b72&&(_0x393303(_0x56497e['getRanges'](),_0x2d29e5)||_0x393303(_0x2d29e5,_0x56497e[_0x2551('0x104')]()))){for(const _0x2018aa of _0x2d29e5)_0x56497e['addRange'](_0x2018aa);return _0x56497e;}const _0x27f8f8=_0x8909f2(),_0x4e345e=_0xc75d47['id'],_0x55cbca='formatBlock:'+_0x482b72,_0xa992eb=this[_0x2551('0xe')]({'id':_0x27f8f8,'type':_0x55cbca,'data':_0x1d29ab,'createdAt':new Date(),'authorId':_0x4e345e,'attributes':_0x2258c5});for(const _0x32eebc of _0x2d29e5)this[_0x2551('0xd5')](_0x55cbca,_0x27f8f8,_0x4e345e,_0x32eebc,_0x2600ac[_0x2551('0xde')]());return _0xa992eb;}['markDeletion'](_0x2acb51,_0x5f576f=null,_0x1f01fb={}){if(_0x2acb51[_0x2551('0x6e')])return null;const _0x8a1d19=this['editor'][_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x118'))['me'],_0x2cce6b=new _0x59087f(_0x2acb51['start'],_0x2acb51[_0x2551('0xa0')]);for(const {suggestion:_0x1feab5,meta:_0x469b4c}of this['_findSuggestions'](_0x2cce6b,_0x2551('0x1b')))if(_0x469b4c[_0x2551('0x63')]&&!_0x469b4c[_0x2551('0x12c')]){if(_0x1feab5[_0x2551('0xe8')]){const _0x32edba=_0x1feab5[_0x2551('0x104')]()[_0x2551('0x7d')](_0x38440b=>_0x2551('0xea')!=_0x38440b[_0x2551('0x78')]['rootName']);_0x32edba['every'](_0x21247b=>_0x2cce6b[_0x2551('0xaa')](_0x21247b,!0x0))&&_0x1feab5['discard']();if(_0x32edba[_0x2551('0x55')](_0x302218=>_0x302218[_0x2551('0xaa')](_0x2cce6b,!0x0))){const _0x5c6697=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0x9a'),_0x5f576f,'accept');return this[_0x2551('0x126')](()=>_0x5c6697([_0x2cce6b],null,_0x1f01fb)),null;}}else{const _0x2f9124=_0x2cce6b[_0x2551('0x89')](_0x1feab5['getFirstRange']());_0x1feab5['_onDiscard']([_0x2f9124],null,_0x1f01fb);}}if(_0x2cce6b[_0x2551('0x122')](),_0x2cce6b[_0x2551('0x6e')]||_0x2551('0xea')==_0x2cce6b[_0x2551('0x78')][_0x2551('0xa3')])return null;let _0xc78841=null,_0xfa7a96=_0x2cce6b['start'],_0xe06bf6=_0x2cce6b[_0x2551('0xa0')];for(const {suggestion:_0x4eebf9,meta:_0x471f0a}of this[_0x2551('0xd3')](_0x2cce6b,'deletion'))if(_0x471f0a[_0x2551('0x63')]){if(_0x4eebf9[_0x2551('0xe8')]){let _0x28dcff=!0x0;for(const _0x14739f of _0x4eebf9[_0x2551('0x104')]()){if(_0x14739f[_0x2551('0xaa')](_0x2cce6b,!0x0))return _0x4eebf9;_0x2cce6b[_0x2551('0xaa')](_0x14739f)||(_0x28dcff=!0x1);}_0x28dcff&&_0x4eebf9['discard']();}else{const _0x2b5d2a=_0x4eebf9['getFirstRange']();if(_0x2b5d2a[_0x2551('0xaa')](_0x2cce6b,!0x0))return _0x4eebf9;_0xfa7a96=_0xfa7a96['isBefore'](_0x2b5d2a[_0x2551('0xae')])?_0xfa7a96:_0x2b5d2a[_0x2551('0xae')],_0xe06bf6=_0xe06bf6[_0x2551('0x7a')](_0x2b5d2a['end'])?_0xe06bf6:_0x2b5d2a[_0x2551('0xa0')],_0xc78841?_0x2b5d2a[_0x2551('0xae')][_0x2551('0x44')](_0xc78841['getFirstRange']()[_0x2551('0xae')])?(_0xc78841['removeMarkers'](),_0xc78841=_0x4eebf9):_0x4eebf9[_0x2551('0xa1')]():_0xc78841=_0x4eebf9;}}if(_0xc78841)return this['_setSuggestionRange'](_0xc78841,this[_0x2551('0x6d')][_0x2551('0x41')](_0xfa7a96,_0xe06bf6)),_0xc78841;{const _0x2359a1=_0x8909f2(),_0x526b73=this[_0x2551('0x6d')][_0x2551('0x41')](_0xfa7a96,_0xe06bf6),_0x7738e5=_0x8a1d19['id'],_0x4fbf5d=_0x5f576f?_0x2551('0x2d')+_0x5f576f:_0x2551('0x9a'),_0x22157e=this['_setSuggestionData']({'id':_0x2359a1,'type':_0x4fbf5d,'createdAt':new Date(),'authorId':_0x7738e5,'attributes':_0x1f01fb});return this[_0x2551('0xd5')](_0x4fbf5d,_0x2359a1,_0x7738e5,_0x526b73),_0x22157e;}}[_0x2551('0x84')](_0x956b5a,_0x9b6725=_0x2551('0x30'),_0xbdbcf7={}){const _0x5582f3=this['editor'][_0x2551('0xf5')]['get'](_0x2551('0x118'))['me'],_0x3b0ec4=_0x956b5a[_0x2551('0xe0')](_0x1f7e61=>new _0x59087f(_0x1f7e61[_0x2551('0xae')],_0x1f7e61['end'])),_0xda35c5=new Set();for(const _0x4ce167 of _0x3b0ec4)for(const {suggestion:_0x32ae26,meta:_0x30a446}of this[_0x2551('0xd3')](_0x4ce167,'insertion'))_0x30a446[_0x2551('0x63')]&&!_0x30a446[_0x2551('0x12c')]&&_0xda35c5['add'](_0x32ae26);for(const _0x1e692d of _0xda35c5)if(_0x1e692d[_0x2551('0xe8')]){const _0x279eb4=_0x1e692d[_0x2551('0x104')]();(!_0x1e692d['attributes']||!_0x1e692d[_0x2551('0xf1')][_0x2551('0x18')])&&(_0x279eb4[_0x2551('0xf')](_0x49622b=>_0x3b0ec4[_0x2551('0x55')](_0x492ae6=>_0x492ae6[_0x2551('0xaa')](_0x49622b,!0x0)))&&_0x1e692d['discard']());if(_0x3b0ec4[_0x2551('0xf')](_0x570d83=>_0x279eb4['some'](_0x1e7c43=>_0x1e7c43[_0x2551('0xaa')](_0x570d83,!0x0)))){const _0x1291e6=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0x9a'),_0x9b6725,'accept');return this[_0x2551('0x126')](()=>_0x1291e6(_0x956b5a,null,_0xbdbcf7)),null;}}else{const _0x4218de=_0x1e692d[_0x2551('0x45')]();_0x3b0ec4['some'](_0x1fd120=>_0x1fd120[_0x2551('0xaa')](_0x4218de,!0x0))&&_0x1e692d[_0x2551('0x92')]();if(_0x3b0ec4[_0x2551('0xf')](_0x104560=>_0x4218de[_0x2551('0xaa')](_0x104560,!0x0))){const _0x186d72=this[_0x2551('0x58')]['getSuggestionCallback'](_0x2551('0x9a'),_0x9b6725,_0x2551('0xd7'));return this[_0x2551('0x126')](()=>_0x186d72(_0x3b0ec4,null,_0xbdbcf7)),null;}}const _0x4fe51d=this[_0x2551('0x58')]['getSuggestionCallback']('deletion',_0x9b6725,_0x2551('0x81'));let _0x30a934=null;for(const _0x1db21e of this[_0x2551('0x12e')]())if(_0x1db21e[_0x2551('0x15')]['id']==_0x5582f3['id']&&_0x1db21e[_0x2551('0x11f')]&&_0x2551('0x9a')==_0x1db21e['type']&&_0x1db21e['subType']==_0x9b6725&&(_0x4fe51d(_0x1db21e[_0x2551('0x104')](),_0x3b0ec4)||_0x4fe51d(_0x3b0ec4,_0x1db21e[_0x2551('0x104')]()))){if(_0x30a934){if(_0x1db21e[_0x2551('0x129')]&&_0x1db21e[_0x2551('0x129')][_0x2551('0xca')])continue;for(const _0x3658e0 of _0x1db21e[_0x2551('0x104')]())_0x30a934[_0x2551('0x53')](_0x3658e0)||_0x30a934[_0x2551('0xa9')](_0x3658e0);_0x1db21e['removeMarkers']();}else{_0x30a934=_0x1db21e;for(const _0x277f44 of _0x3b0ec4)_0x1db21e[_0x2551('0x53')](_0x277f44)||_0x1db21e['addRange'](_0x277f44);}}if(_0x30a934)return _0x30a934;_0xda35c5[_0x2551('0xcc')]();for(const _0x55b67d of _0x3b0ec4)for(const {suggestion:_0x5494f9,meta:_0x168e7f}of this[_0x2551('0xd3')](_0x55b67d,_0x2551('0x9a')))_0x168e7f[_0x2551('0x63')]&&_0xda35c5['add'](_0x5494f9);for(const _0x1e958f of _0xda35c5){const _0x2bfa6d=_0x1e958f['getRanges']();if(!_0xbdbcf7||!_0xbdbcf7[_0x2551('0x18')]){if(_0x3b0ec4['every'](_0x23e36b=>_0x2bfa6d[_0x2551('0x55')](_0x324453=>_0x324453[_0x2551('0xaa')](_0x23e36b,!0x0))))return _0x1e958f;}(!_0x1e958f[_0x2551('0xf1')]||!_0x1e958f[_0x2551('0xf1')][_0x2551('0x18')])&&(_0x2bfa6d[_0x2551('0xf')](_0x14216f=>_0x3b0ec4[_0x2551('0x55')](_0x4235f6=>_0x4235f6[_0x2551('0xaa')](_0x14216f,!0x0)))&&_0x1e958f[_0x2551('0x92')]());}const _0x480b5d=_0x8909f2(),_0xc53366=_0x5582f3['id'],_0x1ba60b=_0x2551('0x2d')+_0x9b6725,_0x32c848=this[_0x2551('0xe')]({'id':_0x480b5d,'type':_0x1ba60b,'createdAt':new Date(),'authorId':_0xc53366,'attributes':_0xbdbcf7});for(const _0x4b1d20 of _0x3b0ec4)_0x4b1d20['detach'](),_0x4b1d20[_0x2551('0x6e')]||_0x2551('0xea')==_0x4b1d20[_0x2551('0x78')][_0x2551('0xa3')]||this[_0x2551('0xd5')](_0x1ba60b,_0x480b5d,_0xc53366,_0x4b1d20,_0x2600ac[_0x2551('0xde')]());return _0x32c848;}['_setSuggestionRange'](_0x4d76e1,_0x458a1c){const _0x1e6be9=_0x4d76e1[_0x2551('0xa5')]();this[_0x2551('0x6d')][_0x2551('0x6f')](_0x1a23e6=>{_0x1a23e6[_0x2551('0xe3')](_0x1e6be9,{'range':_0x458a1c});});}['_addThreadToSuggestion'](_0x22e228){const _0x50123f=_0x22e228['id'],_0x5f18d7=this[_0x2551('0x10e')]['config'][_0x2551('0x98')]('collaboration.channelId');this[_0x2551('0x10f')][_0x2551('0x9')](_0x50123f)||this[_0x2551('0x10f')][_0x2551('0x61')]({'channelId':_0x5f18d7,'threadId':_0x50123f});const _0x3216e8=this[_0x2551('0x10f')]['getCommentThread'](_0x50123f);_0x3216e8[_0x2551('0xd')](_0x2551('0xe6')),_0x3216e8[_0x2551('0xe6')]=!0x1,_0x22e228[_0x2551('0x129')]=_0x3216e8;}[_0x2551('0x47')](_0x34e6ce,_0x3cfe6a,_0x4612de,_0x496faf){if(_0x34e6ce[_0x2551('0x121')]!=_0x3cfe6a||_0x34e6ce[_0x2551('0x4')]!=_0x4612de||_0x34e6ce['author']['id']!=_0x496faf)throw this['editor']['enableReadOnlyMode'](_0x2551('0x32')),new _0x1d0d3c(_0x2551('0x32'),this);}['_cutOutSuggestionMarker'](_0x5546b2,_0xb83957){const _0x571cb7=_0x5546b2[_0x2551('0x45')]();if(_0xb83957[_0x2551('0x12d')](_0x571cb7))_0x5546b2[_0x2551('0xa1')]();else{if(_0x571cb7['containsRange'](_0xb83957)){const _0x362bc3=this[_0x2551('0x6d')][_0x2551('0x120')](_0xb83957['start']['nodeBefore'],_0x2551('0xa0'));this['_setSuggestionRange'](_0x5546b2,this[_0x2551('0x6d')]['createRange'](_0x571cb7[_0x2551('0xae')],_0x362bc3));const _0x4cd8e3=_0x8909f2(),_0x897b7d=_0x5546b2['author']['id'],_0x2ddb6a=_0x5546b2[_0x2551('0x121')]+':'+_0x5546b2[_0x2551('0x4')];this['_setSuggestionData']({'id':_0x4cd8e3,'type':_0x2ddb6a,'createdAt':new Date(),'authorId':_0x897b7d,'data':_0x5546b2[_0x2551('0xf7')],'attributes':_0x5546b2[_0x2551('0xf1')]});const _0x217dd3=this[_0x2551('0x6d')][_0x2551('0x120')](_0xb83957[_0x2551('0xa0')]['parent'],_0x2551('0x9e')),_0x2c906d=this[_0x2551('0x6d')][_0x2551('0x41')](_0x217dd3,_0x571cb7[_0x2551('0xa0')]);this[_0x2551('0xd5')](_0x2ddb6a,_0x4cd8e3,_0x897b7d,_0x2c906d);}else{if(_0x571cb7[_0x2551('0x3b')](_0xb83957['start'])){const _0x2194df=this[_0x2551('0x6d')][_0x2551('0x120')](_0xb83957[_0x2551('0xae')][_0x2551('0x5a')],_0x2551('0xa0'));this[_0x2551('0x2f')](_0x5546b2,this['_model'][_0x2551('0x41')](_0x571cb7['start'],_0x2194df));}else{const _0x294442=this[_0x2551('0x6d')]['createPositionAt'](_0xb83957[_0x2551('0xa0')][_0x2551('0x59')],_0x2551('0x9e'));this[_0x2551('0x2f')](_0x5546b2,this[_0x2551('0x6d')][_0x2551('0x41')](_0x294442,_0x571cb7[_0x2551('0xa0')]));}}}}[_0x2551('0x9d')](_0x27c01f){for(const {suggestion:_0x3d45cc,meta:_0x3f80bb}of this['_findSuggestions'](_0x27c01f,_0x2551('0x1b'))){if(!_0x3f80bb[_0x2551('0x63')])continue;const _0x57cc42=_0x3d45cc['getRanges']();for(const _0x3e328d of _0x57cc42)if(!_0x27c01f['getDifference'](_0x3e328d)[_0x2551('0xca')])return!0x0;}return!0x1;}[_0x2551('0xab')](_0x106d64){const _0x2d5882=this['editor']['plugins'][_0x2551('0x98')](_0x2551('0x118'))['getUser'](_0x106d64);if(!_0x2d5882)throw new _0x1d0d3c(_0x2551('0x9c'),this);return _0x2d5882;}[_0x2551('0xad')](_0x38777e){const _0x594c8a=this[_0x2551('0x10e')][_0x2551('0xf5')][_0x2551('0x98')]('Users'),_0x15407b='external:'+_0x38777e,_0x4aebf6=_0x594c8a[_0x2551('0x10a')](_0x15407b);return _0x4aebf6||_0x594c8a[_0x2551('0xc9')]({'id':_0x15407b,'name':_0x38777e});}['_createSuggestion'](_0x36ee35,_0x5432b1,_0x1a000f,_0x18c6fd,_0x2bf8cd){const _0x17ef1c=this[_0x2551('0xab')](_0x18c6fd);let _0x17d383=null;_0x2bf8cd&&_0x2bf8cd[_0x2551('0xdb')]&&(_0x17d383=this[_0x2551('0xad')](_0x2bf8cd[_0x2551('0xdb')][_0x2551('0x43')]));const _0x1a5317=this[_0x2551('0x58')][_0x2551('0xfc')](_0x36ee35,_0x5432b1,_0x1a000f,_0x17ef1c,_0x17d383,_0xa47273=>this[_0x2551('0x123')](_0x1a000f,{'attributes':_0xa47273}));return this[_0x2551('0xdc')](_0x1a5317,_0x2551('0xd7'),()=>{this[_0x2551('0x123')](_0x1a000f,{'state':_0x2551('0x42')});},{'priority':'high'}),this[_0x2551('0xdc')](_0x1a5317,'discard',()=>{this['_updateSuggestionData'](_0x1a000f,{'state':_0x2551('0xee')});},{'priority':_0x2551('0xdd')}),this['_suggestions']['set'](_0x1a000f,_0x1a5317),this[_0x2551('0x4c')][_0x2551('0x10d')](_0x1a5317,_0x2551('0x1')),_0x1a5317;}[_0x2551('0x12f')](_0x1c62b8){const _0x54134f=_0x1c62b8[_0x2551('0x87')](':');return{'group':_0x54134f[0x0],'type':_0x54134f[0x1],'subType':_0x54134f[_0x2551('0xca')]>=0x5?_0x54134f[0x2]:null,'id':_0x54134f[_0x2551('0xca')]<0x5?_0x54134f[0x2]:_0x54134f[0x3],'authorId':_0x54134f[_0x2551('0xca')]<0x5?_0x54134f[0x3]:_0x54134f[0x4],'markerCount':0x6==_0x54134f[_0x2551('0xca')]?_0x54134f[0x5]:null};}['_breakSuggestionMarker'](_0x483522,_0x169d54,_0x5f18d4){const _0x14e87c=_0x483522[_0x2551('0x45')](),_0xc93b6b=_0x14e87c[_0x2551('0xae')],_0x5bbefd=_0x14e87c[_0x2551('0xa0')];this['_setSuggestionRange'](_0x483522,this[_0x2551('0x6d')][_0x2551('0x41')](_0xc93b6b,_0x169d54));const _0x447a73=_0x8909f2(),_0x8e9210=_0x483522[_0x2551('0x15')]['id'],_0x4c1455=_0x483522[_0x2551('0x121')]+(_0x483522['subType']?':'+_0x483522[_0x2551('0x4')]:'');this[_0x2551('0xe')]({'id':_0x447a73,'type':_0x4c1455,'createdAt':new Date(),'authorId':_0x8e9210,'originalSuggestionId':_0x483522['id'],'attributes':_0x483522[_0x2551('0xf1')],'data':_0x483522[_0x2551('0xf7')]}),_0x2551('0xd6')==_0x483522[_0x2551('0x121')]&&(_0x5f18d4=this['_model'][_0x2551('0xfa')](_0x5f18d4[_0x2551('0x59')])),this[_0x2551('0xd5')](_0x4c1455,_0x447a73,_0x8e9210,this['_model']['createRange'](_0x5f18d4,_0x5bbefd));}[_0x2551('0xd3')](_0x3270ed,_0x5a2293=null){const _0x1332e8=[],_0xe32798=this[_0x2551('0x6d')][_0x2551('0x7b')],_0x2ffabc=this['editor'][_0x2551('0xf5')][_0x2551('0x98')]('Users')['me'];for(const _0x421f2e of this[_0x2551('0x12e')]())if(_0x421f2e[_0x2551('0x11f')]&&(!_0x5a2293||_0x421f2e[_0x2551('0x121')]==_0x5a2293))for(const _0x2c59b2 of _0x421f2e[_0x2551('0x104')]()){const _0x18b3d5=_0x3270ed[_0x2551('0xae')][_0x2551('0x12d')](_0x2c59b2[_0x2551('0xa0')])||_0x3270ed['end']['isEqual'](_0x2c59b2[_0x2551('0xae')]);if(_0x18b3d5||_0x3270ed['getIntersection'](_0x2c59b2)){const _0x5b6dc1=_0x3270ed[_0x2551('0xaa')](_0x2c59b2)&&yt(_0xe32798,_0x2c59b2[_0x2551('0xae')],_0x3270ed),_0x5b4ef3=_0x2c59b2['containsRange'](_0x3270ed)&&yt(_0xe32798,_0x3270ed[_0x2551('0xae')],_0x2c59b2);_0x1332e8['push']({'suggestion':_0x421f2e,'meta':{'isOwn':_0x2ffabc==_0x421f2e[_0x2551('0x15')],'isNextTo':_0x18b3d5,'isInsideObject':_0x5b6dc1,'containsRangeInObject':_0x5b4ef3}});break;}}return _0x1332e8;}[_0x2551('0xd5')](_0x1d6ad3,_0x552340,_0x156634,_0x2ae2c1,_0x1fe644=null){this[_0x2551('0x6d')]['change'](_0x8b054c=>{let _0x4fe269=_0x2551('0x88')+_0x1d6ad3+':'+_0x552340+':'+_0x156634;_0x1fe644&&(_0x4fe269=_0x4fe269+':'+_0x1fe644),_0x8b054c[_0x2551('0xbb')](_0x4fe269,{'range':_0x2ae2c1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x119542){const _0x337344=_0x119542[_0x2551('0x1c')],_0x3e2cdc=_0x119542[_0x2551('0xa4')];_0x119542[_0x2551('0x1c')]=null,null!=_0x337344&&(_0x337344['next']=null),_0x119542['next']=null,null!=_0x3e2cdc&&(_0x3e2cdc[_0x2551('0x1c')]=null),_0x2551('0xe5')==this[_0x2551('0x4c')][_0x2551('0x98')](_0x119542)&&(this[_0x2551('0x4c')][_0x2551('0x10d')](_0x119542,_0x2551('0x125')),this[_0x2551('0xd9')](_0x2551('0xed'),_0x119542,_0x337344,_0x3e2cdc));}[_0x2551('0xe')](_0x3f6c3d){const _0x441acd=_0x3f6c3d['id'],_0x37cf9f=this['addSuggestionData'](_0x3f6c3d);if(this['_adapter']&&this[_0x2551('0xbe')][_0x2551('0x79')]){const _0x2664d7=this[_0x2551('0x10e')]['plugins'][_0x2551('0x98')]('PendingActions'),_0x2501c5=_0x37cf9f[_0x2551('0x11a')],_0x4a71af=_0x37cf9f[_0x2551('0x4')]?_0x37cf9f['type']+':'+_0x37cf9f[_0x2551('0x4')]:_0x37cf9f[_0x2551('0x121')],_0x1870d6=this[_0x2551('0x10e')]['locale'],_0x110e27=_0x2664d7[_0x2551('0xf8')](_0x49a8a7(_0x1870d6,_0x2551('0xeb'))),_0x3b188f={'id':_0x441acd,'type':_0x4a71af,'hasComments':_0x2501c5,'data':_0x3f6c3d[_0x2551('0xf7')]||null,'originalSuggestionId':_0x3f6c3d[_0x2551('0x0')]||null,'attributes':_0x37cf9f[_0x2551('0xf1')]};this[_0x2551('0xbe')][_0x2551('0x79')](_0x3b188f)[_0x2551('0x10c')](_0x268960=>{_0x37cf9f[_0x2551('0x70')]=!0x0,_0x2664d7[_0x2551('0xd2')](_0x110e27),_0x268960&&_0x268960[_0x2551('0x105')]&&(this[_0x2551('0x111')][_0x2551('0x98')](_0x441acd)[_0x2551('0x105')]=_0x268960[_0x2551('0x105')]);})[_0x2551('0xd0')](_0x575821=>{throw _0x863670(_0x2551('0x1f')),this[_0x2551('0x10e')][_0x2551('0x115')][_0x2551('0x7')]({'isUndoable':!0x1},()=>{_0x37cf9f[_0x2551('0x92')]();}),_0x37cf9f[_0x2551('0x2c')](),this[_0x2551('0x111')][_0x2551('0x76')](_0x37cf9f['id']),this['_suggestionState'][_0x2551('0x76')](_0x37cf9f),_0x575821;});}return _0x37cf9f;}[_0x2551('0x123')](_0x234dfb,_0x162d03){const _0x2c3006=this['editor'][_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x5e')),_0x3480b4=this[_0x2551('0x111')][_0x2551('0x98')](_0x234dfb);if(this['_adapter']&&this[_0x2551('0xbe')][_0x2551('0x2b')]){if(_0x3480b4[_0x2551('0x70')]){const _0xef7110=_0x2c3006[_0x2551('0xf8')](_0x49a8a7(this[_0x2551('0x10e')][_0x2551('0x25')],'PENDING_ACTION_SUGGESTION'));this[_0x2551('0xbe')][_0x2551('0x2b')](_0x234dfb,_0x162d03)['then'](()=>{_0x2c3006['remove'](_0xef7110);});}else _0x3480b4['on'](_0x2551('0x99'),()=>{this['_updateSuggestionData'](_0x234dfb,_0x162d03);});}}[_0x2551('0xc')](_0x18f4f0){if(!this[_0x2551('0xbe')]||!this[_0x2551('0xbe')][_0x2551('0x4f')])throw new _0x1d0d3c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x18f4f0);}[_0x2551('0x40')](_0xb01d0){const {id:_0x131e4d,type:_0x1a2b37,subType:_0x51edc9,authorId:_0x43719e}=this[_0x2551('0x12f')](_0xb01d0),_0x26cd4b=this[_0x2551('0x111')][_0x2551('0x98')](_0x131e4d)||this['_createSuggestion'](_0x1a2b37,_0x51edc9,_0x131e4d,_0x43719e);switch(this[_0x2551('0x47')](_0x26cd4b,_0x1a2b37,_0x51edc9,_0x43719e),this[_0x2551('0x4c')][_0x2551('0x98')](_0x26cd4b)){case _0x2551('0x1'):this[_0x2551('0xc')](_0x131e4d)[_0x2551('0x10c')](_0x10af95=>{let _0x2605af=Promise[_0x2551('0xb4')]();_0x10af95[_0x2551('0x11a')]&&(_0x2605af=this[_0x2551('0x10f')][_0x2551('0x12b')]({'channelId':this[_0x2551('0x10e')][_0x2551('0xa7')][_0x2551('0x98')]('collaboration.channelId'),'threadId':_0x131e4d})),_0x2605af[_0x2551('0x10c')](()=>{this[_0x2551('0x91')](_0x10af95)['_saved']=!0x0;});}),this['_suggestionState'][_0x2551('0x10d')](_0x26cd4b,_0x2551('0x3c'));break;case _0x2551('0x125'):this[_0x2551('0x123')](_0x131e4d,{'state':_0x2551('0xfb')});case _0x2551('0x5c'):this['_suggestionState'][_0x2551('0x10d')](_0x26cd4b,_0x2551('0xe5')),this[_0x2551('0xd9')](_0x2551('0x60'),_0x26cd4b);break;case'ready':this[_0x2551('0xd9')](_0x2551('0x108'),_0x26cd4b);}return _0x26cd4b['addMarkerName'](_0xb01d0),_0x26cd4b;}[_0x2551('0x9b')](_0x17ef8b){const _0x22aa20=Array['from'](_0x17ef8b)[_0x2551('0x7d')](_0xc266e=>!_0xc266e[_0x2551('0xe8')]),_0x35572f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6241=>!_0x6241[_0x2551('0xe8')]),_0x2f2b49=_0x35572f['filter'](_0x407c59=>!_0x17ef8b[_0x2551('0x19')](_0x407c59)),_0x58b137=new Map(_0x35572f['map'](_0x52457f=>[_0x52457f,this['_suggestionFactory']['getSuggestionCallback'](_0x52457f[_0x2551('0x121')],_0x52457f['subType'],_0x2551('0x11'))])),_0x456408=new Map(_0x35572f['map'](_0x21a9f1=>[_0x21a9f1,_0x21a9f1[_0x2551('0x45')]()])),_0x2a180d=new Set(),_0x54273d=new Set();for(let _0x58ba99=0x0;_0x58ba99<_0x22aa20[_0x2551('0xca')];_0x58ba99++)_0x4214d0(_0x22aa20[_0x58ba99],_0x22aa20,_0x58ba99+0x1);for(let _0xfbe597=0x0;_0xfbe597<_0x22aa20[_0x2551('0xca')];_0xfbe597++)_0x4214d0(_0x22aa20[_0xfbe597],_0x2f2b49,0x0);for(let _0x14c6d4=0x0;_0x14c6d4<_0x22aa20[_0x2551('0xca')];_0x14c6d4++){const _0x3d6ac9=_0x22aa20[_0x14c6d4];!_0x54273d[_0x2551('0x19')](_0x3d6ac9)&&_0x3d6ac9[_0x2551('0x1c')]&&(_0x3d6ac9[_0x2551('0x1c')]['next']===_0x3d6ac9&&(_0x3d6ac9[_0x2551('0x1c')][_0x2551('0xa4')]=null),_0x3d6ac9[_0x2551('0x1c')]=null),!_0x2a180d[_0x2551('0x19')](_0x3d6ac9)&&_0x3d6ac9[_0x2551('0xa4')]&&(_0x3d6ac9[_0x2551('0xa4')][_0x2551('0x1c')]===_0x3d6ac9&&(_0x3d6ac9[_0x2551('0xa4')][_0x2551('0x1c')]=null),_0x3d6ac9[_0x2551('0xa4')]=null);}function _0x4214d0(_0x159f08,_0x279616,_0x405d81){for(let _0x1464a1=_0x405d81;_0x1464a1<_0x279616[_0x2551('0xca')];_0x1464a1++){const _0x2d680a=_0x38bab0(_0x159f08,_0x279616[_0x1464a1]);_0x2d680a&&(_0x2d680a[0x0]['next']=_0x2d680a[0x1],_0x2d680a[0x1]['previous']=_0x2d680a[0x0],_0x2a180d[_0x2551('0xf8')](_0x2d680a[0x0]),_0x54273d[_0x2551('0xf8')](_0x2d680a[0x1]));}}function _0x38bab0(_0x2647b0,_0x5da3db){if(_0x2647b0[_0x2551('0x15')]['id']!==_0x5da3db['author']['id'])return null;const _0xde6740=_0x58b137[_0x2551('0x98')](_0x2647b0)(_0x2647b0,_0x5da3db,_0x456408[_0x2551('0x98')](_0x2647b0),_0x456408[_0x2551('0x98')](_0x5da3db));if(!_0xde6740)return null;return _0x58b137[_0x2551('0x98')](_0x5da3db)(_0x2647b0,_0x5da3db,_0x456408[_0x2551('0x98')](_0x2647b0),_0x456408[_0x2551('0x98')](_0x5da3db))?_0xde6740[0x1]['commentThread']&&_0xde6740[0x1][_0x2551('0x129')][_0x2551('0xca')]?null:_0xde6740:null;}}[_0x2551('0x5b')](_0x3f9b7a){const _0x133181=Array[_0x2551('0xba')](_0x3f9b7a),_0x497b81=this['getSuggestions']({'skipNotAttached':!0x0}),_0x273889=_0x497b81[_0x2551('0x7d')](_0x1becfd=>!_0x3f9b7a[_0x2551('0x19')](_0x1becfd)),_0x5460a4=new Map(_0x133181[_0x2551('0xe0')](_0x3255fe=>[_0x3255fe,this[_0x2551('0x58')][_0x2551('0xf6')](_0x3255fe[_0x2551('0x121')],_0x3255fe['subType'],_0x2551('0x81'))])),_0x27c17f=new Map(_0x497b81[_0x2551('0xe0')](_0x52e328=>[_0x52e328,_0x52e328['getRanges']()]));for(let _0xb187d7=0x0;_0xb187d7<_0x133181[_0x2551('0xca')];_0xb187d7++){if(_0x43e9c7(this,_0x133181[_0xb187d7],_0x133181,_0xb187d7+0x1))return!0x0;}for(let _0x8a1414=0x0;_0x8a1414<_0x133181['length'];_0x8a1414++){if(_0x43e9c7(this,_0x133181[_0x8a1414],_0x273889,0x0))return!0x0;}return!0x1;function _0x43e9c7(_0x44d3f3,_0x3470f9,_0x54d120,_0x2f44b3){for(let _0x406441=_0x2f44b3;_0x406441<_0x54d120[_0x2551('0xca')];_0x406441++){const _0x57140d=_0x54d120[_0x406441];if(_0x57140d[_0x2551('0x121')]!==_0x3470f9[_0x2551('0x121')]||_0x57140d[_0x2551('0x15')]['id']!==_0x3470f9['author']['id']||_0x57140d[_0x2551('0x4')]!==_0x3470f9[_0x2551('0x4')])continue;const _0x276357=_0x5460a4[_0x2551('0x98')](_0x3470f9),_0x3716c3=_0x27c17f[_0x2551('0x98')](_0x3470f9),_0x2500ae=_0x27c17f[_0x2551('0x98')](_0x57140d),_0x5af0db=_0x3470f9[_0x2551('0x129')]&&_0x3470f9[_0x2551('0x129')][_0x2551('0xca')],_0x490e46=_0x57140d['commentThread']&&_0x57140d[_0x2551('0x129')][_0x2551('0xca')];if(!_0x5af0db&&_0x276357(_0x2500ae,_0x3716c3))return _0x44d3f3[_0x2551('0xbc')](_0x57140d,_0x3470f9),_0x27c17f[_0x2551('0x76')](_0x3470f9),!0x0;if(!_0x490e46&&_0x276357(_0x3716c3,_0x2500ae))return _0x44d3f3[_0x2551('0xbc')](_0x3470f9,_0x57140d),_0x27c17f[_0x2551('0x76')](_0x57140d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4e1c4d,_0x22f40a){if(_0x4e1c4d[_0x2551('0xe8')])for(const _0x4a567a of _0x22f40a['getRanges']())_0x4e1c4d[_0x2551('0xa9')](_0x4a567a);else{const _0x19c6af=_0x22f40a[_0x2551('0x45')]()[_0x2551('0xa0')];this[_0x2551('0x2f')](_0x4e1c4d,this['_model'][_0x2551('0x41')](_0x4e1c4d['getFirstRange']()['start'],_0x19c6af));}_0x22f40a[_0x2551('0xa1')]();}}_0x306206(d,_0x4c0cfe);class wt{constructor(_0x398dcf){this[_0x2551('0x11c')]=_0x398dcf,this[_0x2551('0x6d')]=_0x398dcf[_0x2551('0x115')],this[_0x2551('0x20')]=new Map(),this[_0x2551('0xb3')]=new Map(),this[_0x2551('0xd4')]();}[_0x2551('0xfc')](_0x5f4ac5,_0x2afafc,_0x3e86d5,_0x37fe91,_0x522de1,_0x23047a){return new _0x2600ac(this['_model'],{'type':_0x5f4ac5,'subType':_0x2afafc,'id':_0x3e86d5,'author':_0x37fe91,'externalAuthor':_0x522de1,'onAttributesChange':_0x23047a,'onAccept':(..._0x2ff57a)=>this['getSuggestionCallback'](_0x5f4ac5,_0x2afafc,'accept')(..._0x2ff57a),'onDiscard':(..._0x5f4c6a)=>this[_0x2551('0xf6')](_0x5f4ac5,_0x2afafc,'discard')(..._0x5f4c6a)});}[_0x2551('0x4a')](_0x385803,_0x4b1070,_0x142bb0,_0x105a09){const _0x449258=_0x385803+':'+_0x4b1070+':'+_0x142bb0;this[_0x2551('0x20')][_0x2551('0x10d')](_0x449258,_0x105a09);}[_0x2551('0xf6')](_0x18fcfe,_0x47c3f7,_0x13c80f){const _0x1c1759=_0x18fcfe+':'+_0x47c3f7+':'+_0x13c80f;return this[_0x2551('0x20')][_0x2551('0x98')](_0x1c1759)||this[_0x2551('0xb3')][_0x2551('0x98')](_0x18fcfe+':'+_0x13c80f);}[_0x2551('0xd4')](){const _0x49b22e=()=>{},_0x463a92=_0x220d9d=>{_0x220d9d['sort']((_0x24b532,_0x42a9f9)=>_0x24b532['start'][_0x2551('0x44')](_0x42a9f9[_0x2551('0xae')])?0x1:-0x1),this[_0x2551('0x6d')][_0x2551('0x6f')](_0x229e20=>{for(const _0x558d92 of _0x220d9d){let _0x4e2828;_0x4e2828=_0x558d92[_0x2551('0xa0')][_0x2551('0x112')]&&_0x558d92[_0x2551('0xa0')][_0x2551('0x59')]==_0x558d92[_0x2551('0xae')]['nodeAfter']?_0x229e20[_0x2551('0x72')](_0x558d92[_0x2551('0xae')][_0x2551('0x46')],'on'):_0x229e20['createSelection'](_0x558d92),this[_0x2551('0x6d')]['deleteContent'](_0x4e2828,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x262191=(_0x5c6b22,_0x50b485)=>{this[_0x2551('0x6d')][_0x2551('0x6f')](_0x100cac=>{const {commandName:_0x5a2e5d,commandParams:_0x54b3d7=[]}=_0x50b485,_0x4391a2=_0x5c6b22[0x0];if(_0x2551('0xea')==_0x4391a2['root'][_0x2551('0xa3')])return;const _0xe3423e=Array[_0x2551('0xba')](this[_0x2551('0x6d')][_0x2551('0x50')][_0x2551('0x11b')][_0x2551('0x104')]())[_0x2551('0xe0')](_0x1c23aa=>_0x59087f[_0x2551('0x36')](_0x1c23aa));bt(_0x4391a2)?_0x100cac[_0x2551('0x34')](this[_0x2551('0x6d')][_0x2551('0x41')](_0x4391a2[_0x2551('0xa0')])):_0x100cac[_0x2551('0x34')](_0x4391a2);for(const _0x2888bc of this[_0x2551('0x11c')]['commands'][_0x2551('0xd1')]())_0x2888bc[_0x2551('0x114')]();_0x54b3d7['push']({'forceDefaultExecution':!0x0}),this[_0x2551('0x11c')][_0x2551('0x26')](_0x5a2e5d,..._0x54b3d7);const _0x545023=_0xe3423e['filter'](_0x4ad0bd=>_0x2551('0xea')!=_0x4ad0bd[_0x2551('0x78')][_0x2551('0xa3')]);_0x545023[_0x2551('0xca')]>0x0&&_0x100cac[_0x2551('0x34')](_0x545023);for(const _0x29ed41 of _0xe3423e)_0x29ed41[_0x2551('0x122')]();});},_0x1aaa9d=(_0xf9b59c,_0x2f829d)=>0x1==_0xf9b59c[_0x2551('0xca')]&&0x1==_0x2f829d['length']&&_0xf9b59c[0x0]['end']['isEqual'](_0x2f829d[0x0][_0x2551('0xae')]),_0x462c56=(_0x3a0b81,_0x32dd3d,_0x1a0f7b,_0x1c3af6)=>Dt(_0x3a0b81,_0x32dd3d,_0x1a0f7b,_0x1c3af6,this[_0x2551('0x6d')])?[_0x3a0b81,_0x32dd3d]:Dt(_0x32dd3d,_0x3a0b81,_0x1c3af6,_0x1a0f7b,this['_model'])?[_0x32dd3d,_0x3a0b81]:null;this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x75'),_0x49b22e),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xb8'),_0x463a92),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x8e'),_0x1aaa9d),this['_defaultCallbacks'][_0x2551('0x10d')](_0x2551('0x65'),_0x462c56),this['_defaultCallbacks']['set'](_0x2551('0x90'),_0x463a92),this['_defaultCallbacks'][_0x2551('0x10d')](_0x2551('0x57'),_0x49b22e),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xef'),_0x1aaa9d),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x62'),_0x462c56),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xa8'),_0x262191),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x100'),_0x49b22e),this[_0x2551('0xb3')]['set'](_0x2551('0x6a'),_0x1aaa9d),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xf9'),_0x49b22e),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x106'),_0x262191),this[_0x2551('0xb3')]['set'](_0x2551('0xc8'),_0x49b22e),this['_defaultCallbacks']['set'](_0x2551('0x68'),_0x1aaa9d),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xb6'),_0x49b22e);}}function yt(_0x2298ac,_0x3f97df,_0x17ff0e){for(const _0x3dc28d of _0x3f97df[_0x2551('0x59')][_0x2551('0x52')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3dc28d[_0x2551('0x78')]==_0x3dc28d)return!0x1;if(!_0x17ff0e['containsItem'](_0x3dc28d))return!0x1;if(_0x2298ac[_0x2551('0x73')](_0x3dc28d)||_0x2298ac[_0x2551('0x27')](_0x3dc28d))return!0x0;}}function bt(_0x5a2094){return _0x5a2094[_0x2551('0xa0')]['parent']==_0x5a2094['start'][_0x2551('0x46')]&&_0x5a2094[_0x2551('0xa0')][_0x2551('0x3e')];}function St(_0x3b6f85,_0x562a12,_0x498c0a,_0x3cf0d4){const _0x189390=_0x5f1960=>!_0x5f1960[_0x2551('0x93')]['is']('textProxy')&&!_0x3cf0d4[_0x2551('0x73')](_0x5f1960['item']),_0x4191fb=_0x3b6f85[_0x2551('0xae')][_0x2551('0xb5')](_0x189390),_0x5f0680=_0x3b6f85[_0x2551('0xa0')][_0x2551('0xb5')](_0x189390,{'direction':'backward'});return(!_0x3b6f85['start'][_0x2551('0x12d')](_0x4191fb)||!_0x3b6f85[_0x2551('0xa0')]['isEqual'](_0x5f0680))&&(_0x4191fb[_0x2551('0x44')](_0x5f0680)?_0x498c0a[_0x2551('0xe3')](_0x562a12,{'range':_0x498c0a[_0x2551('0x41')](_0x4191fb,_0x5f0680)}):_0x498c0a[_0x2551('0x113')](_0x562a12),!0x0);}function It(_0x92b765){return _0x3bfa65(_0x92b765);}function vt(_0x4841ae){const _0x4b3ad5=_0x4841ae[_0x2551('0xae')][_0x2551('0x46')];return _0x4b3ad5&&_0x4b3ad5['is'](_0x2551('0xc6'));}function At(_0x43c8c7,_0x3e5c2b){const _0x1f5f46=_0x3e5c2b[_0x2551('0x7b')][_0x2551('0x73')](_0x43c8c7)||_0x3e5c2b['schema'][_0x2551('0x14')](_0x43c8c7);return _0x3e5c2b[_0x2551('0x41')](_0x3e5c2b[_0x2551('0x120')](_0x43c8c7,_0x2551('0x8a')),_0x1f5f46?_0x3e5c2b['createPositionAfter'](_0x43c8c7):_0x3e5c2b[_0x2551('0x120')](_0x43c8c7,_0x2551('0xa0')));}function Dt(_0x2803dd,_0x44fb1b,_0x4b9f4b,_0x56b920,_0x369598){if(_0x4b9f4b[_0x2551('0xa0')]['isEqual'](_0x56b920['start']))return!0x0;if(_0x2803dd[_0x2551('0x121')]!=_0x44fb1b[_0x2551('0x121')])return!0x1;if(!_0x4b9f4b[_0x2551('0xa0')][_0x2551('0x1d')](_0x56b920['start']))return!0x1;const _0x359c45=_0x369598[_0x2551('0x41')](_0x4b9f4b[_0x2551('0xa0')],_0x56b920[_0x2551('0xae')])[_0x2551('0xb1')]();for(const _0x25753c of _0x359c45)if([_0x2551('0x124'),'elementEnd'][_0x2551('0x1e')](_0x25753c[_0x2551('0x121')])&&_0x369598[_0x2551('0x7b')]['isLimit'](_0x25753c[_0x2551('0x93')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x585a=['change:activeAnnotations','add','discardAllSuggestions','length','getContainedElement','componentFactory','comments','acceptSelectedSuggestions','commands','getAllAdjacentSuggestions','_descriptionFactory','Discard\x20all\x20suggestions','config','type','remove','commentThread','has','suggestionChanged','CommentsRepository','_viewToController','toMany','trackChanges.SuggestionThreadView','delete','unbind','push','SuggestionThreadView','_updateController','_disableComments','head','_handleControllerBuffer','isOn','buttonView','clear','getRange','addSourceCollector','Accept\x20all\x20selected\x20suggestions','Discard\x20all\x20selected\x20suggestions','bind','isDirty','_createUIButton','stopListening','filter','editor','descriptionParts','comments.maxCommentsWhenCollapsed','change:previous','execute','get','source','TrackChangesEditing','trackChanges.disableComments','suggestionLoaded','actionView','_handleSuggestionControllerDelayed','listenTo','isMultiRange','TrackChangesUI','some','requires','_destroyController','getDescriptions','acceptButton','locale','mapper','previous','EditorAnnotations','size','focus','PENDING_ACTION_SUGGESTION','button','suggestion-','view','activeMarkers','define','refreshSelectedViews','trackChanges','_suggestionToController','commandName','comments.maxThreadTotalWeight','PendingActions','model','keys','getFirstRange','switchbutton','getFirstMarker','discardSuggestion','acceptSuggestion','lowest','arrowView','pluginName','value','CommentsUI','change:isDirty','editing','isInContent','createAnnotation','plugins','toViewElement','createAnnotationView','isEnabled','set','map','Annotations','destroy','_initializeController'];(function(_0x36afd2,_0x585a9b){const _0x507aa8=function(_0x5a2d72){while(--_0x5a2d72){_0x36afd2['push'](_0x36afd2['shift']());}};_0x507aa8(++_0x585a9b);}(_0x585a,0x149));const _0x507a=function(_0x36afd2,_0x585a9b){_0x36afd2=_0x36afd2-0x0;let _0x507aa8=_0x585a[_0x36afd2];return _0x507aa8;};import{Plugin as _0x31946a}from'ckeditor5/src/core';import{Collection as _0x598a1f}from'ckeditor5/src/utils';import{Model as _0x46dadc,SplitButtonView as _0x43af35,createDropdown as _0xd5e7d2,addListToDropdown as _0x146751}from'ckeditor5/src/ui';import{Users as _0x5b158c,getDateTimeFormatter as _0x5204be,getMarkerDomElement as _0x3ece70}from'ckeditor5-collaboration/src/collaboration-core';import _0x1ac273 from'./trackchangesediting';import _0x2f365b from'./ui/suggestioncontroller';import _0x4e9069 from'./ui/view/suggestionthreadview';import{getTranslation as _0x217c13}from'./utils/common-translations';import _0x5efbef from'../theme/icons/track-changes.svg';export default class m extends _0x31946a{static get[_0x507a('0x2c')](){return[_0x1ac273,_0x5b158c,_0x507a('0x4'),'Annotations','EditorAnnotations'];}static get[_0x507a('0x4b')](){return _0x507a('0x2a');}constructor(_0xb520c){super(_0xb520c),this[_0x507a('0x3e')]=new Map(),this[_0x507a('0x5')]=new Map(),this[_0x507a('0xf')]=new Map();const _0x2582aa=this[_0x507a('0x1c')][_0x507a('0x67')];_0x2582aa['define'](_0x507a('0x7'),_0x4e9069),_0x2582aa[_0x507a('0x3b')]('trackChanges.disableComments',!0x1),this[_0x507a('0xd')]=_0x2582aa[_0x507a('0x21')](_0x507a('0x24'));}[_0x507a('0x27')](_0xef9400,_0x190940){0x0===this[_0x507a('0xf')][_0x507a('0x34')]&&setTimeout(()=>{for(const [_0x5948ee,_0x269527]of this['_handleControllerBuffer']){const _0xa646b1=this[_0x507a('0x3e')][_0x507a('0x2')](_0x5948ee);_0xa646b1||_0x269527?_0xa646b1&&_0x269527&&this[_0x507a('0x2d')](_0x5948ee):this[_0x507a('0x5a')](_0x5948ee);}this[_0x507a('0x1c')][_0x507a('0x52')][_0x507a('0x21')]('EditorAnnotations')[_0x507a('0x3c')](),this[_0x507a('0xf')][_0x507a('0x12')]();},0xa),this[_0x507a('0xf')]['set'](_0xef9400,_0x190940);}['init'](){const _0xb9c2f8=this[_0x507a('0x1c')],_0x592b9d=_0xb9c2f8[_0x507a('0x52')][_0x507a('0x21')](_0x1ac273),_0x378b6d=_0xb9c2f8[_0x507a('0x52')]['get']('Annotations'),_0x3d994b=_0xb9c2f8[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x33')),_0xd1a15f=_0xb9c2f8[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x4'));_0xb9c2f8['ui'][_0x507a('0x60')]['add']('trackChanges',_0x4ee3da=>this['_createUIButton'](_0x4ee3da)),_0x3d994b[_0x507a('0x14')](()=>{const _0x45c4d3=[];for(const [_0x43f785,_0x1877bc]of Array['from'](this[_0x507a('0x3e')])){const _0x53a6d1=_0x43f785[_0x507a('0x64')](),_0x4b0477=[];for(const _0x46f46b of _0x53a6d1){if(!_0x46f46b[_0x507a('0x50')])continue;if(_0x46f46b[_0x507a('0x29')]){_0x4b0477[_0x507a('0xa')](..._0x46f46b['getRanges']());continue;}const _0x445f4a=_0x46f46b[_0x507a('0x44')]();if(_0x4b0477[_0x507a('0x5e')]>0x0){const _0x3dbf96=_0x4b0477[0x0]['getJoined'](_0x445f4a);if(_0x3dbf96){_0x4b0477[0x0]=_0x3dbf96;continue;}}_0x4b0477[_0x507a('0xa')](_0x445f4a);}_0x45c4d3[_0x507a('0xa')]([_0x1877bc['view'],_0x4b0477]);}return _0x45c4d3;}),this['listenTo'](_0x592b9d,_0x507a('0x25'),(_0x555512,_0x8d97ef)=>{this['listenTo'](_0x8d97ef,_0x507a('0x1f'),(_0x3bce4e,_0x31a537,_0x1c9a07,_0x3be43b)=>{_0x8d97ef[_0x507a('0x50')]&&(null==_0x1c9a07?(this['_updateController'](_0x3be43b[_0x507a('0xe')]),this['_handleSuggestionControllerDelayed'](_0x8d97ef,!0x1)):(this[_0x507a('0xc')](_0x1c9a07[_0x507a('0xe')]),this['_handleSuggestionControllerDelayed'](_0x8d97ef,!0x0)));}),null===_0x8d97ef[_0x507a('0x32')]?this[_0x507a('0x27')](_0x8d97ef,!0x1):this[_0x507a('0xc')](_0x8d97ef[_0x507a('0xe')]);}),this[_0x507a('0x28')](_0x592b9d,'suggestionUnloaded',(_0x48d10e,_0x12206a,_0x1973b1)=>{this[_0x507a('0x1a')](_0x12206a,_0x507a('0x1f')),this['_handleControllerBuffer'][_0x507a('0x8')](_0x12206a);const _0x12855f=_0x1973b1?_0x1973b1[_0x507a('0xe')]:_0x12206a,_0x34ff69=this['_suggestionToController'][_0x507a('0x21')](_0x12855f);null!==_0x1973b1&&this['_updateController'](_0x12855f),null===_0x1973b1&&_0x34ff69&&this[_0x507a('0x2d')](_0x12206a);}),this[_0x507a('0x28')](_0x592b9d,_0x507a('0x3'),(_0x364a09,_0x2f83ca)=>{this[_0x507a('0xc')](_0x2f83ca);}),this['listenTo'](_0x378b6d,_0x507a('0x5b'),(_0x1b64ec,_0x246776,_0x1c6c07)=>{const _0x46be99=Array['from'](_0x1c6c07,_0x1a5417=>_0x1a5417['innerView'])[_0x507a('0x1b')](_0x2993de=>this[_0x507a('0x5')]['has'](_0x2993de)),_0x32fa72=[];for(const _0x355e3b of _0x46be99){const _0x41ce87=this['_viewToController'][_0x507a('0x21')](_0x355e3b)[_0x507a('0x42')][_0x507a('0x64')]();_0x32fa72[_0x507a('0xa')](..._0x41ce87['reduce']((_0x27e480,_0x38d782)=>[..._0x27e480,..._0x38d782['getMarkerNames']()],[]));}_0x592b9d[_0x507a('0x3a')]=_0x32fa72;}),this['listenTo'](_0xd1a15f,'addComment',(_0x2757c2,{threadId:_0x3d0927,isFromAdapter:_0x340d25})=>{if(_0x340d25||!_0x592b9d['hasSuggestion'](_0x3d0927))return;const _0x3b6fc8=_0x592b9d['getSuggestion'](_0x3d0927);this[_0x507a('0x3e')][_0x507a('0x21')](_0x3b6fc8)[_0x507a('0x39')][_0x507a('0x35')]();},{'priority':_0x507a('0x49')});}[_0x507a('0x19')](_0x4abeeb){const _0x46dc58=_0xd5e7d2(_0x4abeeb,_0x43af35),_0x2a0c7f=this['editor'][_0x507a('0x63')][_0x507a('0x21')](_0x507a('0x3d')),_0xa4ce24=_0x217c13(_0x4abeeb,'Track\x20changes');_0x46dc58[_0x507a('0x11')][_0x507a('0x56')]({'tooltip':_0xa4ce24,'label':_0xa4ce24,'icon':_0x5efbef}),_0x46dc58[_0x507a('0x11')][_0x507a('0x17')](_0x507a('0x10'))['to'](_0x2a0c7f,_0x507a('0x4c')),_0x46dc58['buttonView']['on'](_0x507a('0x20'),()=>{_0x2a0c7f['execute'](),this[_0x507a('0x1c')][_0x507a('0x4f')][_0x507a('0x39')][_0x507a('0x35')]();});const _0xb4152=new _0x598a1f(),_0x5b0d18=[{'type':_0x507a('0x45'),'model':{'withText':!0x0,'label':_0xa4ce24,'commandName':_0x507a('0x3d')}},{'type':'separator'},{'type':_0x507a('0x37'),'model':{'withText':!0x0,'label':_0x217c13(_0x4abeeb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x507a('0x37'),'model':{'withText':!0x0,'label':_0x217c13(_0x4abeeb,_0x507a('0x15')),'commandName':_0x507a('0x62')}},{'type':'button','model':{'withText':!0x0,'label':_0x217c13(_0x4abeeb,_0x507a('0x66')),'commandName':_0x507a('0x5d')}},{'type':_0x507a('0x37'),'model':{'withText':!0x0,'label':_0x217c13(_0x4abeeb,_0x507a('0x16')),'commandName':'discardSelectedSuggestions'}}];for(const _0x290597 of _0x5b0d18){const _0xa3ca51={'type':_0x290597[_0x507a('0x68')]};if(_0x290597['model']){const _0x1e8d06=new _0x46dadc(_0x290597[_0x507a('0x42')]),_0x1b883a=this['editor'][_0x507a('0x63')]['get'](_0x1e8d06['commandName']);_0x1e8d06[_0x507a('0x17')](_0x507a('0x10'),'isEnabled')['to'](_0x1b883a,'value',_0x507a('0x55')),_0xa3ca51[_0x507a('0x42')]=_0x1e8d06;}_0xb4152[_0x507a('0x5c')](_0xa3ca51);}_0x146751(_0x46dc58,_0xb4152);const _0x25260c=_0x5b0d18[_0x507a('0x1b')](_0xab18b8=>null!=_0xab18b8[_0x507a('0x42')])[_0x507a('0x57')](_0x2f803e=>this['editor'][_0x507a('0x63')][_0x507a('0x21')](_0x2f803e['model'][_0x507a('0x3f')]));return _0x46dc58[_0x507a('0x11')][_0x507a('0x26')][_0x507a('0x9')](_0x507a('0x55')),_0x46dc58[_0x507a('0x11')][_0x507a('0x4a')][_0x507a('0x9')](_0x507a('0x55')),_0x46dc58[_0x507a('0x11')][_0x507a('0x26')][_0x507a('0x17')](_0x507a('0x55'))['to'](_0x2a0c7f,_0x507a('0x55')),_0x46dc58[_0x507a('0x11')]['arrowView'][_0x507a('0x17')](_0x507a('0x55'))[_0x507a('0x6')](_0x25260c,'isEnabled',(..._0x518462)=>_0x518462[_0x507a('0x2b')](_0x3a5fed=>_0x3a5fed)),_0x46dc58['on'](_0x507a('0x20'),_0xb73df9=>{this[_0x507a('0x1c')][_0x507a('0x20')](_0xb73df9[_0x507a('0x22')][_0x507a('0x3f')]),this['editor'][_0x507a('0x4f')][_0x507a('0x39')]['focus']();}),_0x46dc58;}[_0x507a('0x5a')](_0x3b9e5e){const _0x4552cc=this[_0x507a('0x1c')],_0x5dcf69=_0x4552cc[_0x507a('0x67')],_0x4041f1=_0x4552cc[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x58')),_0x109bf0=_0x4552cc[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x4')),_0x23d2ce=_0x4552cc[_0x507a('0x52')]['get'](_0x507a('0x33')),_0x48e02f=_0x3b9e5e['getAllAdjacentSuggestions']()[_0x507a('0x1b')](_0x23318a=>_0x23318a[_0x507a('0x50')]),_0x341052=_0x4552cc[_0x507a('0x52')][_0x507a('0x21')](_0x5b158c)['me'],_0x25a0e6=_0x4552cc[_0x507a('0x63')]['get'](_0x507a('0x48')),_0x5882fe=_0x4552cc[_0x507a('0x63')][_0x507a('0x21')](_0x507a('0x47')),_0x4a3e9c=_0x5dcf69[_0x507a('0x21')](_0x507a('0x3d'))[_0x507a('0xb')],{CommentsListView:_0x31698d,CommentThreadInputView:_0x1b90f6}=_0x4552cc['plugins'][_0x507a('0x21')](_0x507a('0x4d')),_0x5b65da=new _0x4a3e9c(_0x4552cc['locale'],_0x3b9e5e,_0x341052,{'disableComments':this[_0x507a('0xd')],'editorConfig':_0x5dcf69['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5dcf69[_0x507a('0x21')](_0x507a('0x1e')),'maxThreadTotalWeight':_0x5dcf69['get'](_0x507a('0x40')),'maxCommentCharsWhenCollapsed':_0x5dcf69[_0x507a('0x21')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5204be(_0x5dcf69[_0x507a('0x21')](_0x507a('0x30'))),'CommentView':_0x5dcf69[_0x507a('0x21')](_0x507a('0x61'))['CommentView'],'CommentsListView':_0x31698d,'CommentThreadInputView':_0x1b90f6}),_0x2c16ec=_0x109bf0['createCommentThreadController'](_0x3b9e5e[_0x507a('0x1')],_0x5b65da),_0x2c8a29=new _0x2f365b(_0x3b9e5e,_0x5b65da,_0x25a0e6,_0x5882fe,_0x2c16ec);_0x5b65da[_0x507a('0x1d')]=_0x4552cc[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x23'))[_0x507a('0x65')]['getDescriptions'](_0x48e02f),this[_0x507a('0x3e')][_0x507a('0x56')](_0x3b9e5e,_0x2c8a29),this['_viewToController']['set'](_0x5b65da,_0x2c8a29);const _0x50f187=_0x4041f1[_0x507a('0x54')](this['editor'][_0x507a('0x30')],_0x5b65da);_0x50f187['bind'](_0x507a('0x18'))['to'](_0x5b65da,'isDirty'),_0x50f187[_0x507a('0x17')]('length')['to'](_0x5b65da),_0x50f187[_0x507a('0x17')](_0x507a('0x68'))['to'](_0x5b65da,'type',_0x1f06ad=>'suggestion-'+_0x1f06ad);const _0x110a2=_0x4041f1[_0x507a('0x51')]({'view':_0x50f187,'target':()=>{const _0x24cb8a=_0x48e02f[0x0][_0x507a('0x46')]();if(!_0x24cb8a)return null;const _0x40c0be=_0x24cb8a[_0x507a('0x13')]()[_0x507a('0x5f')]();return _0x40c0be&&!_0x4552cc[_0x507a('0x4f')][_0x507a('0x31')][_0x507a('0x53')](_0x40c0be)?null:_0x3ece70(_0x4552cc[_0x507a('0x4f')],_0x24cb8a)||null;},'type':()=>_0x507a('0x38')+_0x2c8a29[_0x507a('0x39')]['type']});_0x4041f1[_0x507a('0x5c')](_0x110a2),_0x23d2ce['registerAnnotation'](_0x110a2);const _0x180257=_0x4552cc[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x41'));let _0x294712;_0x5b65da['on'](_0x507a('0x4e'),(_0x54f047,_0x15dccd,_0x2706fa)=>{_0x2706fa?_0x294712=_0x180257[_0x507a('0x5c')](_0x217c13(this['editor'][_0x507a('0x30')],_0x507a('0x36'))):(_0x180257[_0x507a('0x0')](_0x294712),_0x294712=null);}),_0x5b65da[_0x507a('0x2f')]['on'](_0x507a('0x20'),()=>{_0x4552cc[_0x507a('0x4f')][_0x507a('0x39')][_0x507a('0x35')]();}),_0x5b65da['discardButton']['on'](_0x507a('0x20'),()=>{_0x4552cc[_0x507a('0x4f')][_0x507a('0x39')]['focus']();});}[_0x507a('0x2d')](_0x3c319f){const _0x598c75=this['editor'][_0x507a('0x52')]['get'](_0x507a('0x58')),_0x24a72a=this[_0x507a('0x3e')][_0x507a('0x21')](_0x3c319f),_0x1d4fd6=_0x24a72a[_0x507a('0x39')],_0x22dce0=_0x598c75['getByInnerView'](_0x1d4fd6);_0x22dce0&&_0x598c75['remove'](_0x22dce0),this[_0x507a('0x3e')][_0x507a('0x8')](_0x3c319f),this['_viewToController'][_0x507a('0x8')](_0x1d4fd6),_0x24a72a['destroy'](),_0x1d4fd6['destroy']();}['_updateController'](_0x2fec44){if(!_0x2fec44[_0x507a('0x50')]||!this[_0x507a('0x3e')][_0x507a('0x2')](_0x2fec44))return;const _0x3c6c6b=this[_0x507a('0x1c')][_0x507a('0x52')][_0x507a('0x21')]('TrackChangesEditing'),_0x3cf7c7=this[_0x507a('0x3e')][_0x507a('0x21')](_0x2fec44),_0x5d2203=_0x2fec44['getAllAdjacentSuggestions']();_0x3cf7c7['view'][_0x507a('0x1d')]=_0x3c6c6b[_0x507a('0x65')][_0x507a('0x2e')](_0x5d2203);}[_0x507a('0x59')](){super[_0x507a('0x59')]();for(const _0x4d764b of this['_suggestionToController'][_0x507a('0x43')]())this['_destroyController'](_0x4d764b);}}
23
+ const _0x26e6=['some','discardAllSuggestions','has','head','trackChanges','unbind','from','separator','button','isEnabled','_handleSuggestionControllerDelayed','define','innerView','Accept\x20all\x20suggestions','reduce','init','discardSuggestion','editor','clear','Track\x20changes','config','CommentsRepository','_handleControllerBuffer','getDescriptions','_suggestionToController','commandName','length','trackChanges.disableComments','mapper','_destroyController','delete','execute','_createUIButton','PENDING_ACTION_SUGGESTION','source','getAllAdjacentSuggestions','EditorAnnotations','discardButton','TrackChangesUI','_initializeController','toMany','get','componentFactory','isDirty','comments','refreshSelectedViews','SuggestionThreadView','focus','getContainedElement','getRange','arrowView','add','set','activeMarkers','Discard\x20all\x20selected\x20suggestions','requires','actionView','getJoined','TrackChangesEditing','view','model','_disableComments','change:isDirty','previous','getByInnerView','createAnnotationView','acceptAllSuggestions','commands','suggestion-','remove','suggestionUnloaded','_viewToController','buttonView','locale','comments.maxCommentsWhenCollapsed','hasSuggestion','switchbutton','suggestionChanged','isOn','destroy','Accept\x20all\x20selected\x20suggestions','change:previous','type','comments.maxThreadTotalWeight','listenTo','stopListening','suggestionLoaded','commentThread','comments.editorConfig','CommentsUI','PendingActions','trackChanges.SuggestionThreadView','acceptSelectedSuggestions','editing','Annotations','createAnnotation','getFirstMarker','toViewElement','Discard\x20all\x20suggestions','push','bind','addSourceCollector','pluginName','map','getMarkerNames','plugins','addComment','filter','size','_updateController','isInContent'];(function(_0x44658a,_0x26e692){const _0xf4a0e=function(_0x18403f){while(--_0x18403f){_0x44658a['push'](_0x44658a['shift']());}};_0xf4a0e(++_0x26e692);}(_0x26e6,0x183));const _0xf4a0=function(_0x44658a,_0x26e692){_0x44658a=_0x44658a-0x0;let _0xf4a0e=_0x26e6[_0x44658a];return _0xf4a0e;};import{Plugin as _0x614bca}from'ckeditor5/src/core';import{Collection as _0x8275fd}from'ckeditor5/src/utils';import{Model as _0xe41dd1,SplitButtonView as _0x4af1ae,createDropdown as _0x53e5ac,addListToDropdown as _0x3daa0e}from'ckeditor5/src/ui';import{Users as _0x3a1f36,getDateTimeFormatter as _0x352671,getMarkerDomElement as _0x59d6ac}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f0e29 from'./trackchangesediting';import _0x11997c from'./ui/suggestioncontroller';import _0x518ae2 from'./ui/view/suggestionthreadview';import{getTranslation as _0x558900}from'./utils/common-translations';import _0x4c66d0 from'../theme/icons/track-changes.svg';export default class m extends _0x614bca{static get[_0xf4a0('0x1')](){return[_0x2f0e29,_0x3a1f36,'CommentsRepository','Annotations',_0xf4a0('0x5d')];}static get[_0xf4a0('0x30')](){return _0xf4a0('0x5f');}constructor(_0x36f9e0){super(_0x36f9e0),this[_0xf4a0('0x51')]=new Map(),this[_0xf4a0('0x11')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x123a58=this[_0xf4a0('0x4a')][_0xf4a0('0x4d')];_0x123a58[_0xf4a0('0x44')](_0xf4a0('0x25'),_0x518ae2),_0x123a58[_0xf4a0('0x44')](_0xf4a0('0x54'),!0x1),this[_0xf4a0('0x7')]=_0x123a58[_0xf4a0('0x62')](_0xf4a0('0x54'));}[_0xf4a0('0x43')](_0x279e2d,_0x34de2e){0x0===this['_handleControllerBuffer'][_0xf4a0('0x36')]&&setTimeout(()=>{for(const [_0x5be56d,_0x349c03]of this[_0xf4a0('0x4f')]){const _0x15288d=this[_0xf4a0('0x51')][_0xf4a0('0x3b')](_0x5be56d);_0x15288d||_0x349c03?_0x15288d&&_0x349c03&&this[_0xf4a0('0x56')](_0x5be56d):this['_initializeController'](_0x5be56d);}this[_0xf4a0('0x4a')][_0xf4a0('0x33')]['get'](_0xf4a0('0x5d'))[_0xf4a0('0x66')](),this[_0xf4a0('0x4f')][_0xf4a0('0x4b')]();},0xa),this['_handleControllerBuffer'][_0xf4a0('0x6d')](_0x279e2d,_0x34de2e);}[_0xf4a0('0x48')](){const _0x5926d4=this[_0xf4a0('0x4a')],_0x10c862=_0x5926d4['plugins'][_0xf4a0('0x62')](_0x2f0e29),_0x20a6fe=_0x5926d4[_0xf4a0('0x33')]['get'](_0xf4a0('0x28')),_0x7afa75=_0x5926d4[_0xf4a0('0x33')]['get'](_0xf4a0('0x5d')),_0x4cbd83=_0x5926d4[_0xf4a0('0x33')]['get'](_0xf4a0('0x4e'));_0x5926d4['ui'][_0xf4a0('0x63')][_0xf4a0('0x6c')](_0xf4a0('0x3d'),_0x205193=>this['_createUIButton'](_0x205193)),_0x7afa75[_0xf4a0('0x2f')](()=>{const _0x41de66=[];for(const [_0x28b1d1,_0x48b31c]of Array[_0xf4a0('0x3f')](this[_0xf4a0('0x51')])){const _0x78ead2=_0x28b1d1['getAllAdjacentSuggestions'](),_0xd1ad7f=[];for(const _0x1c26ee of _0x78ead2){if(!_0x1c26ee[_0xf4a0('0x38')])continue;if(_0x1c26ee['isMultiRange']){_0xd1ad7f['push'](..._0x1c26ee['getRanges']());continue;}const _0x9d2bd8=_0x1c26ee['getFirstRange']();if(_0xd1ad7f[_0xf4a0('0x53')]>0x0){const _0x327846=_0xd1ad7f[0x0][_0xf4a0('0x3')](_0x9d2bd8);if(_0x327846){_0xd1ad7f[0x0]=_0x327846;continue;}}_0xd1ad7f['push'](_0x9d2bd8);}_0x41de66[_0xf4a0('0x2d')]([_0x48b31c['view'],_0xd1ad7f]);}return _0x41de66;}),this[_0xf4a0('0x1e')](_0x10c862,_0xf4a0('0x20'),(_0x4dcf20,_0x36081d)=>{this['listenTo'](_0x36081d,'change:previous',(_0xdab03f,_0x2257be,_0x46f89d,_0x4bf3bf)=>{_0x36081d['isInContent']&&(null==_0x46f89d?(this[_0xf4a0('0x37')](_0x4bf3bf[_0xf4a0('0x3c')]),this[_0xf4a0('0x43')](_0x36081d,!0x1)):(this[_0xf4a0('0x37')](_0x46f89d[_0xf4a0('0x3c')]),this[_0xf4a0('0x43')](_0x36081d,!0x0)));}),null===_0x36081d[_0xf4a0('0x9')]?this[_0xf4a0('0x43')](_0x36081d,!0x1):this[_0xf4a0('0x37')](_0x36081d[_0xf4a0('0x3c')]);}),this[_0xf4a0('0x1e')](_0x10c862,_0xf4a0('0x10'),(_0x4532cb,_0x429e95,_0x1ae809)=>{this[_0xf4a0('0x1f')](_0x429e95,_0xf4a0('0x1b')),this[_0xf4a0('0x4f')][_0xf4a0('0x57')](_0x429e95);const _0x307036=_0x1ae809?_0x1ae809[_0xf4a0('0x3c')]:_0x429e95,_0x564dc8=this['_suggestionToController']['get'](_0x307036);null!==_0x1ae809&&this[_0xf4a0('0x37')](_0x307036),null===_0x1ae809&&_0x564dc8&&this[_0xf4a0('0x56')](_0x429e95);}),this[_0xf4a0('0x1e')](_0x10c862,_0xf4a0('0x17'),(_0x40fe33,_0x29181c)=>{this[_0xf4a0('0x37')](_0x29181c);}),this['listenTo'](_0x20a6fe,'change:activeAnnotations',(_0x3b0fc1,_0x36297c,_0x444c89)=>{const _0x4d687e=Array[_0xf4a0('0x3f')](_0x444c89,_0x4a8a45=>_0x4a8a45[_0xf4a0('0x45')])[_0xf4a0('0x35')](_0x564124=>this['_viewToController'][_0xf4a0('0x3b')](_0x564124)),_0x9700e5=[];for(const _0x26cabb of _0x4d687e){const _0x49f20e=this[_0xf4a0('0x11')][_0xf4a0('0x62')](_0x26cabb)['model'][_0xf4a0('0x5c')]();_0x9700e5[_0xf4a0('0x2d')](..._0x49f20e[_0xf4a0('0x47')]((_0x1296d4,_0x5b1718)=>[..._0x1296d4,..._0x5b1718[_0xf4a0('0x32')]()],[]));}_0x10c862[_0xf4a0('0x6e')]=_0x9700e5;}),this[_0xf4a0('0x1e')](_0x4cbd83,_0xf4a0('0x34'),(_0x515cc3,{threadId:_0x27ff50,isFromAdapter:_0x22755a})=>{if(_0x22755a||!_0x10c862[_0xf4a0('0x15')](_0x27ff50))return;const _0x4fdd99=_0x10c862['getSuggestion'](_0x27ff50);this['_suggestionToController']['get'](_0x4fdd99)[_0xf4a0('0x5')][_0xf4a0('0x68')]();},{'priority':'lowest'});}[_0xf4a0('0x59')](_0x554051){const _0x3a6bd2=_0x53e5ac(_0x554051,_0x4af1ae),_0x16a8d9=this[_0xf4a0('0x4a')]['commands'][_0xf4a0('0x62')](_0xf4a0('0x3d')),_0xa57093=_0x558900(_0x554051,_0xf4a0('0x4c'));_0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x6d')]({'tooltip':_0xa57093,'label':_0xa57093,'icon':_0x4c66d0}),_0x3a6bd2['buttonView'][_0xf4a0('0x2e')]('isOn')['to'](_0x16a8d9,'value'),_0x3a6bd2[_0xf4a0('0x12')]['on'](_0xf4a0('0x58'),()=>{_0x16a8d9[_0xf4a0('0x58')](),this[_0xf4a0('0x4a')][_0xf4a0('0x27')]['view']['focus']();});const _0x5d8e48=new _0x8275fd(),_0x4224f4=[{'type':_0xf4a0('0x16'),'model':{'withText':!0x0,'label':_0xa57093,'commandName':_0xf4a0('0x3d')}},{'type':_0xf4a0('0x40')},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x46')),'commandName':_0xf4a0('0xc')}},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x1a')),'commandName':_0xf4a0('0x26')}},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x2c')),'commandName':_0xf4a0('0x3a')}},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x0')),'commandName':'discardSelectedSuggestions'}}];for(const _0x4852ec of _0x4224f4){const _0x309da6={'type':_0x4852ec[_0xf4a0('0x1c')]};if(_0x4852ec['model']){const _0x23ea47=new _0xe41dd1(_0x4852ec[_0xf4a0('0x6')]),_0x235396=this[_0xf4a0('0x4a')][_0xf4a0('0xd')][_0xf4a0('0x62')](_0x23ea47[_0xf4a0('0x52')]);_0x23ea47[_0xf4a0('0x2e')](_0xf4a0('0x18'),'isEnabled')['to'](_0x235396,'value',_0xf4a0('0x42')),_0x309da6['model']=_0x23ea47;}_0x5d8e48[_0xf4a0('0x6c')](_0x309da6);}_0x3daa0e(_0x3a6bd2,_0x5d8e48);const _0x294151=_0x4224f4[_0xf4a0('0x35')](_0x2dccc9=>null!=_0x2dccc9[_0xf4a0('0x6')])[_0xf4a0('0x31')](_0x546907=>this[_0xf4a0('0x4a')][_0xf4a0('0xd')]['get'](_0x546907[_0xf4a0('0x6')]['commandName']));return _0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x2')][_0xf4a0('0x3e')](_0xf4a0('0x42')),_0x3a6bd2['buttonView'][_0xf4a0('0x6b')][_0xf4a0('0x3e')](_0xf4a0('0x42')),_0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x2')][_0xf4a0('0x2e')](_0xf4a0('0x42'))['to'](_0x16a8d9,_0xf4a0('0x42')),_0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x6b')][_0xf4a0('0x2e')](_0xf4a0('0x42'))[_0xf4a0('0x61')](_0x294151,'isEnabled',(..._0x1d5782)=>_0x1d5782[_0xf4a0('0x39')](_0x3e9d95=>_0x3e9d95)),_0x3a6bd2['on'](_0xf4a0('0x58'),_0xc4655c=>{this[_0xf4a0('0x4a')]['execute'](_0xc4655c[_0xf4a0('0x5b')][_0xf4a0('0x52')]),this[_0xf4a0('0x4a')][_0xf4a0('0x27')][_0xf4a0('0x5')][_0xf4a0('0x68')]();}),_0x3a6bd2;}[_0xf4a0('0x60')](_0x10aff8){const _0x38f300=this[_0xf4a0('0x4a')],_0x2a471c=_0x38f300[_0xf4a0('0x4d')],_0x42b7a5=_0x38f300[_0xf4a0('0x33')][_0xf4a0('0x62')]('Annotations'),_0x32d81c=_0x38f300[_0xf4a0('0x33')]['get'](_0xf4a0('0x4e')),_0x2209b5=_0x38f300[_0xf4a0('0x33')][_0xf4a0('0x62')](_0xf4a0('0x5d')),_0x479108=_0x10aff8['getAllAdjacentSuggestions']()[_0xf4a0('0x35')](_0x527882=>_0x527882[_0xf4a0('0x38')]),_0x3a91fc=_0x38f300['plugins']['get'](_0x3a1f36)['me'],_0x3995c4=_0x38f300['commands']['get']('acceptSuggestion'),_0x5606b6=_0x38f300[_0xf4a0('0xd')]['get'](_0xf4a0('0x49')),_0x463cd3=_0x2a471c['get'](_0xf4a0('0x3d'))[_0xf4a0('0x67')],{CommentsListView:_0x45b8ba,CommentThreadInputView:_0x2290e6}=_0x38f300[_0xf4a0('0x33')]['get'](_0xf4a0('0x23')),_0x20e127=new _0x463cd3(_0x38f300[_0xf4a0('0x13')],_0x10aff8,_0x3a91fc,{'disableComments':this['_disableComments'],'editorConfig':_0x2a471c[_0xf4a0('0x62')](_0xf4a0('0x22')),'maxCommentsWhenCollapsed':_0x2a471c[_0xf4a0('0x62')](_0xf4a0('0x14')),'maxThreadTotalWeight':_0x2a471c['get'](_0xf4a0('0x1d')),'maxCommentCharsWhenCollapsed':_0x2a471c[_0xf4a0('0x62')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x352671(_0x2a471c[_0xf4a0('0x62')](_0xf4a0('0x13'))),'CommentView':_0x2a471c['get'](_0xf4a0('0x65'))['CommentView'],'CommentsListView':_0x45b8ba,'CommentThreadInputView':_0x2290e6}),_0x1e1fb9=_0x32d81c['createCommentThreadController'](_0x10aff8[_0xf4a0('0x21')],_0x20e127),_0x1213e2=new _0x11997c(_0x10aff8,_0x20e127,_0x3995c4,_0x5606b6,_0x1e1fb9);_0x20e127['descriptionParts']=_0x38f300[_0xf4a0('0x33')]['get']('TrackChangesEditing')['_descriptionFactory'][_0xf4a0('0x50')](_0x479108),this[_0xf4a0('0x51')][_0xf4a0('0x6d')](_0x10aff8,_0x1213e2),this['_viewToController'][_0xf4a0('0x6d')](_0x20e127,_0x1213e2);const _0x4d5a55=_0x42b7a5[_0xf4a0('0xb')](this[_0xf4a0('0x4a')]['locale'],_0x20e127);_0x4d5a55[_0xf4a0('0x2e')](_0xf4a0('0x64'))['to'](_0x20e127,_0xf4a0('0x64')),_0x4d5a55[_0xf4a0('0x2e')](_0xf4a0('0x53'))['to'](_0x20e127),_0x4d5a55[_0xf4a0('0x2e')]('type')['to'](_0x20e127,_0xf4a0('0x1c'),_0x969856=>'suggestion-'+_0x969856);const _0x59afe6=_0x42b7a5[_0xf4a0('0x29')]({'view':_0x4d5a55,'target':()=>{const _0x5353aa=_0x479108[0x0][_0xf4a0('0x2a')]();if(!_0x5353aa)return null;const _0x1d39d1=_0x5353aa[_0xf4a0('0x6a')]()[_0xf4a0('0x69')]();return _0x1d39d1&&!_0x38f300[_0xf4a0('0x27')][_0xf4a0('0x55')][_0xf4a0('0x2b')](_0x1d39d1)?null:_0x59d6ac(_0x38f300[_0xf4a0('0x27')],_0x5353aa)||null;},'type':()=>_0xf4a0('0xe')+_0x1213e2[_0xf4a0('0x5')][_0xf4a0('0x1c')]});_0x42b7a5[_0xf4a0('0x6c')](_0x59afe6),_0x2209b5['registerAnnotation'](_0x59afe6);const _0x5ecde7=_0x38f300[_0xf4a0('0x33')]['get'](_0xf4a0('0x24'));let _0x9de82;_0x20e127['on'](_0xf4a0('0x8'),(_0x1eb8de,_0x404b54,_0x431528)=>{_0x431528?_0x9de82=_0x5ecde7[_0xf4a0('0x6c')](_0x558900(this[_0xf4a0('0x4a')][_0xf4a0('0x13')],_0xf4a0('0x5a'))):(_0x5ecde7[_0xf4a0('0xf')](_0x9de82),_0x9de82=null);}),_0x20e127['acceptButton']['on']('execute',()=>{_0x38f300[_0xf4a0('0x27')][_0xf4a0('0x5')][_0xf4a0('0x68')]();}),_0x20e127[_0xf4a0('0x5e')]['on'](_0xf4a0('0x58'),()=>{_0x38f300[_0xf4a0('0x27')][_0xf4a0('0x5')][_0xf4a0('0x68')]();});}['_destroyController'](_0xa588c9){const _0x1b4dba=this[_0xf4a0('0x4a')][_0xf4a0('0x33')][_0xf4a0('0x62')](_0xf4a0('0x28')),_0x1f124a=this[_0xf4a0('0x51')][_0xf4a0('0x62')](_0xa588c9),_0xb2222e=_0x1f124a[_0xf4a0('0x5')],_0x40e690=_0x1b4dba[_0xf4a0('0xa')](_0xb2222e);_0x40e690&&_0x1b4dba[_0xf4a0('0xf')](_0x40e690),this[_0xf4a0('0x51')][_0xf4a0('0x57')](_0xa588c9),this[_0xf4a0('0x11')][_0xf4a0('0x57')](_0xb2222e),_0x1f124a['destroy'](),_0xb2222e[_0xf4a0('0x19')]();}[_0xf4a0('0x37')](_0x11c650){if(!_0x11c650[_0xf4a0('0x38')]||!this[_0xf4a0('0x51')][_0xf4a0('0x3b')](_0x11c650))return;const _0x1c0132=this[_0xf4a0('0x4a')][_0xf4a0('0x33')]['get'](_0xf4a0('0x4')),_0x5c7b06=this[_0xf4a0('0x51')][_0xf4a0('0x62')](_0x11c650),_0x43c5b8=_0x11c650[_0xf4a0('0x5c')]();_0x5c7b06['view']['descriptionParts']=_0x1c0132['_descriptionFactory'][_0xf4a0('0x50')](_0x43c5b8);}[_0xf4a0('0x19')](){super[_0xf4a0('0x19')]();for(const _0x21bfeb of this['_suggestionToController']['keys']())this[_0xf4a0('0x56')](_0x21bfeb);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x407a=['stopListening','unbind','view','isEnabled','bind','commentThreadController','discardSuggestion','_discardCommand','model','_acceptCommand','execute','acceptSuggestion'];(function(_0x254433,_0x407a99){var _0x5877e6=function(_0x851127){while(--_0x851127){_0x254433['push'](_0x254433['shift']());}};_0x5877e6(++_0x407a99);}(_0x407a,0x100));var _0x5877=function(_0x254433,_0x407a99){_0x254433=_0x254433-0x0;var _0x5877e6=_0x407a[_0x254433];return _0x5877e6;};import{ObservableMixin as _0x2e3c0e,mix as _0x14cd13}from'ckeditor5/src/utils';export default class Wt{constructor(_0xd3c6ce,_0x212f8a,_0x53ae96,_0x14fc4b,_0x1634d9){this[_0x5877('0x4')]=_0xd3c6ce,this[_0x5877('0xa')]=_0x212f8a,this[_0x5877('0x1')]=_0x1634d9,this[_0x5877('0x5')]=_0x53ae96,this[_0x5877('0x3')]=_0x14fc4b,this[_0x5877('0xa')][_0x5877('0x0')](_0x5877('0xb'))['to'](this['_acceptCommand']),this['listenTo'](_0x212f8a,_0x5877('0x7'),()=>this[_0x5877('0x7')]()),this['listenTo'](_0x212f8a,'discardSuggestion',()=>this[_0x5877('0x2')]());}[_0x5877('0x7')](){this[_0x5877('0x5')][_0x5877('0x6')](this[_0x5877('0x4')]['id']);}[_0x5877('0x2')](){this['_discardCommand'][_0x5877('0x6')](this[_0x5877('0x4')]['id']);}['destroy'](){this[_0x5877('0xa')][_0x5877('0x9')](_0x5877('0xb')),this[_0x5877('0x8')](),this['commentThreadController']['destroy']();}}_0x14cd13(Wt,_0x2e3c0e);
23
+ var _0x4e84=['acceptSuggestion','execute','stopListening','discardSuggestion','_discardCommand','commentThreadController','isEnabled','listenTo','unbind','model','view','bind','destroy','_acceptCommand'];(function(_0x4dfef7,_0x4e8438){var _0x95e724=function(_0xf7deb5){while(--_0xf7deb5){_0x4dfef7['push'](_0x4dfef7['shift']());}};_0x95e724(++_0x4e8438);}(_0x4e84,0x1ab));var _0x95e7=function(_0x4dfef7,_0x4e8438){_0x4dfef7=_0x4dfef7-0x0;var _0x95e724=_0x4e84[_0x4dfef7];return _0x95e724;};import{ObservableMixin as _0x1edca5,mix as _0x15f2ec}from'ckeditor5/src/utils';export default class Wt{constructor(_0x28312a,_0x1afb0e,_0x6e1cc8,_0x5d1760,_0x3dd8da){this[_0x95e7('0x2')]=_0x28312a,this[_0x95e7('0x3')]=_0x1afb0e,this[_0x95e7('0xc')]=_0x3dd8da,this[_0x95e7('0x6')]=_0x6e1cc8,this[_0x95e7('0xb')]=_0x5d1760,this['view'][_0x95e7('0x4')](_0x95e7('0xd'))['to'](this[_0x95e7('0x6')]),this['listenTo'](_0x1afb0e,'acceptSuggestion',()=>this[_0x95e7('0x7')]()),this[_0x95e7('0x0')](_0x1afb0e,_0x95e7('0xa'),()=>this[_0x95e7('0xa')]());}[_0x95e7('0x7')](){this[_0x95e7('0x6')][_0x95e7('0x8')](this[_0x95e7('0x2')]['id']);}[_0x95e7('0xa')](){this[_0x95e7('0xb')]['execute'](this[_0x95e7('0x2')]['id']);}[_0x95e7('0x5')](){this[_0x95e7('0x3')][_0x95e7('0x1')](_0x95e7('0xd')),this[_0x95e7('0x9')](),this[_0x95e7('0xc')][_0x95e7('0x5')]();}}_0x15f2ec(Wt,_0x1edca5);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4608=['set','editorConfig','setData','_createCommentThreadInputView','isReadOnly','createdAt','locale','bind','_model','updateComment','destroy','commentThread','commentsListView','disabledSubmit','CommentView','_localUser','value','assign','_config','commentThreadInputView','submit','hasDirtyComment','isDirty','addComment','commentInputView','_createCommentViews','focus','removeComment','length','isActive','delegate','isEnabled'];(function(_0x5e8cba,_0x460880){const _0xe609fd=function(_0x580801){while(--_0x580801){_0x5e8cba['push'](_0x5e8cba['shift']());}};_0xe609fd(++_0x460880);}(_0x4608,0x1f1));const _0xe609=function(_0x5e8cba,_0x460880){_0x5e8cba=_0x5e8cba-0x0;let _0xe609fd=_0x4608[_0x5e8cba];return _0xe609fd;};import{View as _0x5aa75c}from'ckeditor5/src/ui';export default class Kt extends _0x5aa75c{constructor(_0x3dbde4,_0x1522ac,_0x74bd76,_0x106e30){super(_0x3dbde4),this[_0xe609('0x1b')]=null,this[_0xe609('0x2')]=null,this['set'](_0xe609('0xc'),!0x1),this['set'](_0xe609('0x14'),_0x1522ac['createdAt']),this[_0xe609('0x16')](_0xe609('0x14'))['to'](_0x1522ac),this[_0xe609('0xf')]('descriptionParts',[]),this[_0xe609('0xf')](_0xe609('0x5'),!0x1),this[_0xe609('0xf')](_0xe609('0xe'),!0x1),this[_0xe609('0x17')]=_0x1522ac,this[_0xe609('0x1e')]=_0x74bd76,this[_0xe609('0x1')]=_0x106e30,_0x106e30['disableComments']?this[_0xe609('0xf')]('length',0x1):this['_createCommentViews']();}[_0xe609('0x9')](){this['element'][_0xe609('0x9')]();}[_0xe609('0x19')](){this[_0xe609('0x5')]=!0x1,this[_0xe609('0x1b')]&&this[_0xe609('0x1b')][_0xe609('0x19')](),this[_0xe609('0x2')]&&this[_0xe609('0x2')][_0xe609('0x19')](),super[_0xe609('0x19')]();}[_0xe609('0x8')](){const {CommentsListView:_0x45019a}=this[_0xe609('0x1')];this[_0xe609('0x1b')]=new _0x45019a(this[_0xe609('0x15')],this['_model']['commentThread'],Object[_0xe609('0x0')]({'CommentView':this[_0xe609('0x1')][_0xe609('0x1d')]},this['_config'])),this[_0xe609('0x1b')][_0xe609('0xd')](_0xe609('0xa'))['to'](this),this['commentsListView'][_0xe609('0xd')](_0xe609('0x18'))['to'](this),this['commentsListView'][_0xe609('0x16')](_0xe609('0xc'))['to'](this),this[_0xe609('0xf')](_0xe609('0xb'),this[_0xe609('0x1b')][_0xe609('0xb')]+0x1),this['bind'](_0xe609('0xb'))['to'](this[_0xe609('0x1b')],_0xe609('0xb'),_0x223dd3=>_0x223dd3+0x1),this[_0xe609('0x2')]=this[_0xe609('0x12')](),this['on'](_0xe609('0xa'),()=>this[_0xe609('0x9')]()),this[_0xe609('0x16')](_0xe609('0x5'))['to'](this['commentsListView'],_0xe609('0x4'),this['commentThreadInputView'][_0xe609('0x7')],'value',(_0x31f6a1,_0x43263c)=>_0x31f6a1||!!_0x43263c);}[_0xe609('0x12')](){const {CommentThreadInputView:_0x10bb07}=this[_0xe609('0x1')],_0x10382d=new _0x10bb07(this['locale'],this[_0xe609('0x1e')],this[_0xe609('0x1')][_0xe609('0x10')]),_0x4b5f56=_0x10382d[_0xe609('0x7')];return _0x10382d[_0xe609('0x16')]('showInput')['to'](this,_0xe609('0xc'),this[_0xe609('0x17')]['commentThread'],_0xe609('0x13'),_0x4b5f56,_0xe609('0x1f'),(_0x419c3f,_0x1e7a00,_0x26eab0)=>!!_0x26eab0||_0x419c3f&&!_0x1e7a00),_0x4b5f56['on'](_0xe609('0x3'),(_0x52a6ab,_0x21946f)=>{this['fire'](_0xe609('0x6'),_0x21946f),_0x4b5f56['editor'][_0xe609('0x11')]('');}),_0x4b5f56['on']('cancel',()=>this[_0xe609('0x9')]()),_0x4b5f56[_0xe609('0x16')](_0xe609('0x1c'))['to'](this[_0xe609('0x17')][_0xe609('0x1a')],'isReadOnly'),_0x10382d;}}
23
+ const _0x26fb=['fire','updateComment','destroy','_config','bind','removeComment','cancel','focus','assign','length','isEnabled','_localUser','hasDirtyComment','createdAt','isReadOnly','editor','set','descriptionParts','_model','commentsListView','setData','isActive','disableComments','isDirty','_createCommentThreadInputView','_createCommentViews','locale','value','commentThreadInputView','commentInputView','showInput','commentThread','addComment'];(function(_0x4996d6,_0x26fbb9){const _0x13deac=function(_0x58444d){while(--_0x58444d){_0x4996d6['push'](_0x4996d6['shift']());}};_0x13deac(++_0x26fbb9);}(_0x26fb,0x199));const _0x13de=function(_0x4996d6,_0x26fbb9){_0x4996d6=_0x4996d6-0x0;let _0x13deac=_0x26fb[_0x4996d6];return _0x13deac;};import{View as _0x5c968e}from'ckeditor5/src/ui';export default class Kt extends _0x5c968e{constructor(_0x2db331,_0x4caff0,_0x2b4853,_0x1b0375){super(_0x2db331),this[_0x13de('0x6')]=null,this[_0x13de('0xf')]=null,this['set'](_0x13de('0x8'),!0x1),this[_0x13de('0x3')]('createdAt',_0x4caff0[_0x13de('0x0')]),this['bind'](_0x13de('0x0'))['to'](_0x4caff0),this[_0x13de('0x3')](_0x13de('0x4'),[]),this[_0x13de('0x3')](_0x13de('0xa'),!0x1),this[_0x13de('0x3')](_0x13de('0x1e'),!0x1),this[_0x13de('0x5')]=_0x4caff0,this['_localUser']=_0x2b4853,this['_config']=_0x1b0375,_0x1b0375[_0x13de('0x9')]?this['set'](_0x13de('0x1d'),0x1):this[_0x13de('0xc')]();}[_0x13de('0x1b')](){this['element'][_0x13de('0x1b')]();}[_0x13de('0x16')](){this[_0x13de('0xa')]=!0x1,this[_0x13de('0x6')]&&this['commentsListView'][_0x13de('0x16')](),this['commentThreadInputView']&&this[_0x13de('0xf')][_0x13de('0x16')](),super[_0x13de('0x16')]();}[_0x13de('0xc')](){const {CommentsListView:_0x3aeae7}=this[_0x13de('0x17')];this[_0x13de('0x6')]=new _0x3aeae7(this[_0x13de('0xd')],this['_model'][_0x13de('0x12')],Object[_0x13de('0x1c')]({'CommentView':this[_0x13de('0x17')]['CommentView']},this[_0x13de('0x17')])),this[_0x13de('0x6')]['delegate'](_0x13de('0x19'))['to'](this),this[_0x13de('0x6')]['delegate'](_0x13de('0x15'))['to'](this),this[_0x13de('0x6')][_0x13de('0x18')](_0x13de('0x8'))['to'](this),this[_0x13de('0x3')](_0x13de('0x1d'),this[_0x13de('0x6')][_0x13de('0x1d')]+0x1),this['bind']('length')['to'](this['commentsListView'],_0x13de('0x1d'),_0x4fbb40=>_0x4fbb40+0x1),this[_0x13de('0xf')]=this[_0x13de('0xb')](),this['on']('removeComment',()=>this[_0x13de('0x1b')]()),this[_0x13de('0x18')](_0x13de('0xa'))['to'](this['commentsListView'],_0x13de('0x20'),this[_0x13de('0xf')][_0x13de('0x10')],_0x13de('0xe'),(_0x29300f,_0xe74feb)=>_0x29300f||!!_0xe74feb);}[_0x13de('0xb')](){const {CommentThreadInputView:_0x19ac84}=this['_config'],_0x510393=new _0x19ac84(this[_0x13de('0xd')],this[_0x13de('0x1f')],this[_0x13de('0x17')]['editorConfig']),_0x5d080b=_0x510393['commentInputView'];return _0x510393[_0x13de('0x18')](_0x13de('0x11'))['to'](this,_0x13de('0x8'),this[_0x13de('0x5')]['commentThread'],'isReadOnly',_0x5d080b,_0x13de('0xe'),(_0x55102b,_0x183566,_0x1330ae)=>!!_0x1330ae||_0x55102b&&!_0x183566),_0x5d080b['on']('submit',(_0x53eb87,_0x3a1f7c)=>{this[_0x13de('0x14')](_0x13de('0x13'),_0x3a1f7c),_0x5d080b[_0x13de('0x2')][_0x13de('0x7')]('');}),_0x5d080b['on'](_0x13de('0x1a'),()=>this[_0x13de('0x1b')]()),_0x5d080b[_0x13de('0x18')]('disabledSubmit')['to'](this['_model'][_0x13de('0x12')],_0x13de('0x1')),_0x510393;}}