@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230908.0 → 0.0.0-nightly-20230909.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d68=['isObject','getChanges','_adapter','isMultiRange','_enabledCommands','splitPosition','creator','previous','addUser','removed','removeMarker:suggestion:formatBlock','isAfter','_cutOutSuggestionMarker','elementEnd','_saved','_onDiscard','_joinSuggestions','isUndo','removeComment','deletion:','has','trackChanges.mergeNestedSuggestions','_defaultCallbacks','_registerDefaultCallbacks','change:data','howMany','data','originalSuggestionId','isCollapsed','push','formatInline:chain','updateSuggestion','registerPostFixer','createRange','formatInline:discard','getAllAdjacentSuggestions','item','isBefore','_handleNewSuggestionMarker','split','mapper','_addSuggestionMarker','showSuggestionHighlights','fromCharCode','suggestionLoaded','commands','size','getRanges','discardAllSuggestions','attributes','acceptSuggestion','isAtStart','elementToElement','ready','isIntersectingWithRange','formatInline','hasCommentThread','_removeSuggestion','getCustomProperty','getFirstRange','suggestionUnloaded','every','Users','activeMarkers','getItems','containsRange','getSuggestions','addClass','end','deletion:discard','normal','isDocumentOperation','formatBlock:accept','isLimit','update:suggestion','return','getUser','start','clear','registerCustomCallback','isNextTo','addMarkerName','substr','assign','formatInline:accept','parent','createPositionAfter','document','createdAt','author','conversion','clone','position','_updateSuggestionData','setSelection','backward','requires','isInsideObject','_getSuggestionData','hasSuggestion','getWalker','formatBlock','authoredAt','keys','getIntersection','data-suggestion','PENDING_ACTION_SUGGESTION','applyOperation','adapter','commentThread','createSelection','oldRange','delete','always','init','formatBlock:','editor','multi','_isForcedDefaultExecutionBlock','high','isAtEnd','@external','move','acceptSelectedSuggestions','error-saving-suggestion-data-suggestion-discarded','isExternal','_suggestionFactory','type','map','unbind','ck-suggestion-marker','nodeAfter','PendingActions','_commentsRepository','name','getAttribute','addSuggestionData','_setSuggestionData','plugins','before','trackChanges','model','highest','getSuggestionCallback','add','formatInline:join','_createSuggestion','enableCommand','containsItem','track-changes-adapter-already-set','config','getLastMatchingPosition','chain','default','addMarker:suggestion:formatBlock','toViewElement','batch','define','fire','set','updateMarker','join','pluginName','acceptAllSuggestions','insertion','markerReady','CommentsRepository','createRangeIn','get','isLocal','unbindElementFromMarkerName','accept','trackChangesCommand','enqueueChange','removeMarkers','addComment','removeClass','createPositionBefore','editing','toJSON','nodeBefore','getMultiRangeId','_isDataLoaded','discardSuggestion','then','never','getShiftedBy','widget','isInContent','_addThreadToSuggestion','external:','includes','isEqual','_getAuthorFromId','insertion:discard','rejected','some','$graveyard','after','deletion','track-changes-suggestion-not-found','$textProxy','deletion:accept','isRemovable','lowest','_model','insertion:accept','subType','schema','discardSelectedSuggestions','deletion:chain','detach','rootName','bindElementToMarker','fetchCommentThread','insert','value','range','filter','_checkSuggestionCorrectness','execute','fromRange','resolve','buildSuggestion','forceDefaultExecution','markInsertion','containsRangeInObject','addRange','dataDowncast','dataReady','trackChanges.trackFormatChanges','group','locale','setAttribute','values','_editor','_suggestionState','formatGroupId','discard','isArray','reconvertMarker','options','getNearestSelectionRange','getChangedMarkers','markerToHighlight','suggestion:','getMarkers','for','isOwn','track-changes-adapter-missing-getsuggestion','getDifference','_trackFormatChanges','consume','root','addSuggestion','forward','authorName','markerNameToElements','insertContent','markDeletion','next','getRange','formatBlock:chain','_rangeIsInLocalUserInsertion','markBlockFormat','editingDowncast','_customCallbacks','dataToMarker','notReady','_suggestions','differ','_mergeNestedSuggestions','remove','ck-suggestion-marker-formatBlock','markInlineFormat','track-changes-suggestion-data-mismatch','getSuggestion','marker-count','markerToData','newRange','createPositionAt','commandName','skipNestingCheck','TrackChangesEditing','createElement','change:_saved','moveTargetPosition','addHighlight','getAncestors','_findSuggestions','isBlock','_refreshSuggestionsChain','_breakSuggestionMarker','containerElement','containsPosition','consumable','change','ck-suggestion-marker--active','stop','hasComments','writer','listenTo','elementStart','addMarker','head','removeMarker','suggestion','markerName','getFirstMarker','_joinWithAdjacentSuggestions','formatBlock:discard','upcast','from','change:activeMarkers','_splitMarkerName','removeAttribute','length','formatInline:','insertion:','multipleBlocks','_setSuggestionRange','low'];(function(_0x509f57,_0x2d68ec){const _0x5663d5=function(_0x511d0c){while(--_0x511d0c){_0x509f57['push'](_0x509f57['shift']());}};_0x5663d5(++_0x2d68ec);}(_0x2d68,0x1b6));const _0x5663=function(_0x509f57,_0x2d68ec){_0x509f57=_0x509f57-0x0;let _0x5663d5=_0x2d68[_0x509f57];return _0x5663d5;};import{Plugin as _0x16ebc9,PendingActions as _0xde3cd1}from'ckeditor5/src/core';import{LiveRange as _0x21149e}from'ckeditor5/src/engine';import{CKEditorError as _0x464c58,uid as _0x38e0ed,priorities as _0x2e04e5,logWarning as _0x22fae2}from'ckeditor5/src/utils';import{toWidget as _0x8bc719}from'ckeditor5/src/widget';import{Users as _0x3b3bef,hashObject as _0x17dee1}from'ckeditor5-collaboration/src/collaboration-core';import _0x1ed372 from'./commands/trackchangescommand';import _0x1bc67b from'./commands/acceptsuggestioncommand';import _0x2dbde8 from'./commands/discardsuggestioncommand';import _0x374b1f from'./commands/executeonallsuggestionscommand';import _0xed453c from'./commands/executeonselectedsuggestionscommand';import _0x1b2caa from'./suggestion';import _0x2a7ab4 from'./suggestiondescriptionfactory';import _0x2be2da from'./integrations/alignment';import _0x33561e from'./integrations/basicstyles';import _0x3231f2 from'./integrations/blockquote';import _0x1b90be from'./integrations/ckbox';import _0x356c62 from'./integrations/codeblock';import _0x1127cf from'./integrations/comments';import _0x5942ef from'./integrations/deletecommand';import _0x27aa11 from'./integrations/documentlist';import _0x1ffcb3 from'./integrations/entercommand';import _0xab7ccd from'./integrations/findandreplace';import _0xd4daf5 from'./integrations/font';import _0x275f2e from'./integrations/formatpainter';import _0x12e22e from'./integrations/heading';import _0x5696e9 from'./integrations/highlight';import _0x1b9e73 from'./integrations/horizontalline';import _0x3b7b43 from'./integrations/htmlembed';import _0x423ca1 from'./integrations/image';import _0x15be78 from'./integrations/imagereplace';import _0x42789e from'./integrations/importword';import _0x5a4a90 from'./integrations/indent';import _0x405ac7 from'./integrations/inputcommand';import _0x4a5796 from'./integrations/link';import _0x1f48c5 from'./integrations/list';import _0x5215d9 from'./integrations/listproperties';import _0x3f6d06 from'./integrations/mediaembed';import _0x13b537 from'./integrations/mention';import _0x25c17e from'./integrations/pagebreak';import _0x2aa9fb from'./integrations/paragraph';import _0x3e0079 from'./integrations/removeformat';import _0x1a6035 from'./integrations/restrictededitingmode';import _0x4107de from'./integrations/shiftentercommand';import _0x2968e0 from'./integrations/standardeditingmode';import _0x3512eb from'./integrations/style';import _0x5bfa53 from'./integrations/table';import _0x3fd7d4 from'./integrations/tablemergesplit';import _0x4ccd1b from'./integrations/tableheadings';import _0x18fe2e from'./integrations/tableclipboard';import _0x218897 from'./integrations/tablecolumnresize';import _0x42d20b from'./integrations/template';import _0x11af3c from'./integrations/tableofcontents';import _0x35f81d from'./integrations/title';import _0x4aa537 from'./integrations/undo';import{getTranslation as _0x393f40}from'./utils/common-translations';import _0x4ca231 from'./integrations/tablecaption';import _0x320329 from'./integrations/documentlistproperties';import _0x24b51e from'./integrations/tableproperties';import{isEqual as _0x17381c}from'lodash-es';export default class p extends _0x16ebc9{static get[_0x5663('0x12e')](){return['CommentsRepository',_0x3b3bef,_0xde3cd1,_0x2be2da,_0x33561e,_0x3231f2,_0x1b90be,_0x356c62,_0x1127cf,_0x5942ef,_0x27aa11,_0x320329,_0x1ffcb3,_0xab7ccd,_0xd4daf5,_0x275f2e,_0x12e22e,_0x5696e9,_0x1b9e73,_0x3b7b43,_0x423ca1,_0x15be78,_0x42789e,_0x5a4a90,_0x405ac7,_0x4a5796,_0x1f48c5,_0x5215d9,_0x3f6d06,_0x13b537,_0x25c17e,_0x2aa9fb,_0x3e0079,_0x1a6035,_0x4107de,_0x2968e0,_0x3512eb,_0x5bfa53,_0x3fd7d4,_0x4ccd1b,_0x4ca231,_0x18fe2e,_0x218897,_0x11af3c,_0x24b51e,_0x42d20b,_0x35f81d,_0x4aa537];}static get[_0x5663('0x2e')](){return _0x5663('0xa7');}constructor(_0x2fb99f){function _0x438883(_0x548263){return _0x548263[_0x5663('0xc')](_0x4ed485=>String[_0x5663('0xf9')](_0x4ed485))[_0x5663('0x2d')]('');}super(_0x2fb99f),this[_0x5663('0x2b')](_0x5663('0x10d'),[]),this['on'](_0x5663('0xc5'),(_0x417ec3,_0x3fd6da,_0x1cc59b,_0x3d829a)=>{this[_0x5663('0x59')][_0x5663('0xb4')](()=>{for(const _0x226fc9 of[..._0x3d829a,..._0x1cc59b])this[_0x5663('0x59')]['markers'][_0x5663('0xe2')](_0x226fc9)&&_0x2fb99f[_0x5663('0x3e')][_0x5663('0x7c')](_0x226fc9);});}),this['_descriptionFactory']=new _0x2a7ab4(this['editor'][_0x5663('0x19')][_0x5663('0x5c')],this['editor'][_0x5663('0x74')]),this[_0x5663('0xd0')]=null,this[_0x5663('0xa')]=new Dt(this[_0x5663('0x0')]),this[_0x5663('0x99')]=new Map(),this[_0x5663('0x11')]=_0x2fb99f[_0x5663('0x16')][_0x5663('0x34')]('CommentsRepository'),this[_0x5663('0xd2')]=new Set(),this[_0x5663('0x59')]=this[_0x5663('0x0')][_0x5663('0x19')],this[_0x5663('0x78')]=new WeakMap(),this[_0x5663('0x2')]=!0x1,_0x2fb99f['config'][_0x5663('0x29')](_0x5663('0x72'),_0x5663('0x25')),this['_trackFormatChanges']=_0x2fb99f[_0x5663('0x22')][_0x5663('0x34')](_0x5663('0x72')),_0x2fb99f[_0x5663('0x22')][_0x5663('0x29')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x5663('0x9b')]=_0x2fb99f[_0x5663('0x22')][_0x5663('0x34')](_0x5663('0xe3')),this[_0x5663('0x38')]=new _0x1ed372(_0x2fb99f,this[_0x5663('0xd2')]),this[_0x438883([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x438883([0x34,0x30,0x34,0x36,0x31,0x38,0x31,0x36]);}[_0x5663('0x140')](){const _0x37a8de=this[_0x5663('0x0')];_0x37a8de[_0x5663('0x128')]['for'](_0x5663('0x95'))[_0x5663('0x80')]({'model':_0x5663('0xbe'),'view':_0x4bd03b=>{const {id:_0x202324,type:_0x3a4f93}=this[_0x5663('0xc6')](_0x4bd03b[_0x5663('0xbf')]),_0x1ca474=[_0x5663('0xe'),'ck-suggestion-marker-'+_0x3a4f93];let _0x17966b=0xbb8;return this[_0x5663('0x10d')][_0x5663('0x4b')](_0x4bd03b[_0x5663('0xbf')])&&(_0x1ca474['push'](_0x5663('0xb5')),_0x17966b=0xbc2),_0x5663('0x53')==_0x3a4f93&&(_0x17966b+=0x5),{'classes':_0x1ca474,'attributes':{'data-suggestion':_0x202324},'priority':_0x17966b};}}),_0x37a8de[_0x5663('0x128')][_0x5663('0x83')]('dataDowncast')['add'](_0x4bb2b3=>{_0x4bb2b3['on']('addMarker:suggestion',(_0x7f4068,_0x41c642,_0x69bbc5)=>{if(!_0x69bbc5['options'][_0x5663('0xf8')])return;const _0x2da85c=_0x41c642[_0x5663('0xf2')];if(!_0x2da85c)return;const _0x2b648d=_0x69bbc5[_0x5663('0xf6')][_0x5663('0x27')](_0x2da85c);_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')]['isObject'](_0x2da85c)&&_0x2b648d&&!_0x2b648d[_0x5663('0x108')](_0x5663('0x47'))&&_0x2b648d['is'](_0x5663('0xb1'))&&_0x8bc719(_0x2b648d,_0x69bbc5[_0x5663('0xb8')]);},{'priority':_0x5663('0x3')});}),_0x37a8de[_0x5663('0x128')][_0x5663('0x83')](_0x5663('0x70'))[_0x5663('0x80')]({'model':_0x5663('0xbe'),'view':(_0x2b9b8b,_0x1b0960)=>{if(!_0x1b0960[_0x5663('0x7d')][_0x5663('0xf8')])return null;const {type:_0x2c15d7}=this[_0x5663('0xc6')](_0x2b9b8b[_0x5663('0xbf')]);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x2c15d7],'priority':0xbb8};}});const _0x3e8306=({showActiveMarkers:_0x1627f1=!0x0}={})=>(_0x4eb63e,_0x120053,_0x1fb10f)=>{if(!_0x120053['item'])return;if(_0x120053[_0x5663('0xf2')]['is']('selection'))return void _0x1fb10f['consumable']['consume'](_0x120053['item'],_0x4eb63e[_0x5663('0x12')]);const _0x154951=_0x1fb10f[_0x5663('0xf6')][_0x5663('0x27')](_0x120053[_0x5663('0xf2')]);if(!(_0x120053['item']['is']('element')&&_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')][_0x5663('0xae')](_0x120053[_0x5663('0xf2')])&&!_0x154951[_0x5663('0x108')](_0x5663('0xab'))))return;const {id:_0x4983bf}=this[_0x5663('0xc6')](_0x120053['markerName']);_0x1fb10f[_0x5663('0xb8')]['addClass']([_0x5663('0xe'),_0x5663('0x9d')],_0x154951),_0x1fb10f[_0x5663('0xb8')][_0x5663('0x75')](_0x5663('0x137'),_0x4983bf,_0x154951),_0x1fb10f['mapper'][_0x5663('0x61')](_0x154951,_0x120053[_0x5663('0xbf')]),_0x1627f1&&(this[_0x5663('0x10d')][_0x5663('0x4b')](_0x120053[_0x5663('0xbf')])?_0x1fb10f[_0x5663('0xb8')][_0x5663('0x111')](_0x5663('0xb5'),_0x154951):_0x1fb10f['writer'][_0x5663('0x3c')]('ck-suggestion-marker--active',_0x154951));for(const _0x13673c of _0x37a8de[_0x5663('0x19')][_0x5663('0x33')](_0x120053[_0x5663('0xf2')])[_0x5663('0x10e')]())_0x1fb10f[_0x5663('0xb3')][_0x5663('0x88')](_0x13673c,_0x4eb63e[_0x5663('0x12')]);_0x1fb10f['consumable'][_0x5663('0x88')](_0x120053['item'],_0x4eb63e[_0x5663('0x12')]);};_0x37a8de['conversion'][_0x5663('0x83')](_0x5663('0x70'))[_0x5663('0x1c')](_0x591b51=>{_0x591b51['on'](_0x5663('0x26'),(_0x1b303c,_0x656285,_0x196df7)=>{_0x196df7[_0x5663('0x7d')][_0x5663('0xf8')]&&_0x3e8306({'showActiveMarkers':!0x1})(_0x1b303c,_0x656285,_0x196df7);},{'priority':_0x5663('0x1a')});}),_0x37a8de[_0x5663('0x128')][_0x5663('0x83')](_0x5663('0x70'))[_0x5663('0xa2')]({'model':'suggestion','view':(_0x75717a,_0x480428)=>_0x480428[_0x5663('0x7d')][_0x5663('0xf8')]?null:{'group':_0x5663('0xbe'),'name':_0x75717a[_0x5663('0x120')](0xb)}}),_0x37a8de[_0x5663('0x128')]['for'](_0x5663('0xc3'))[_0x5663('0x102')]({'view':{'name':_0x5663('0xbe'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2e3306,{writer:_0x319123})=>{let _0x23dc18='suggestion:'+_0x2e3306['getAttribute']('suggestion-type')+':'+_0x2e3306[_0x5663('0x13')]('id');return _0x2e3306['getAttribute'](_0x5663('0xa1'))&&(_0x23dc18+=':'+_0x2e3306[_0x5663('0x13')](_0x5663('0xa1'))),_0x319123[_0x5663('0xa8')]('$marker',{'data-name':_0x23dc18});}}),_0x37a8de[_0x5663('0x128')][_0x5663('0x83')](_0x5663('0xc3'))[_0x5663('0x97')]({'view':_0x5663('0xbe')}),_0x37a8de['conversion']['for'](_0x5663('0x95'))['add'](_0x579469=>{_0x579469['on'](_0x5663('0x26'),_0x3e8306(),{'priority':_0x5663('0x3')});}),_0x37a8de[_0x5663('0x128')]['for']('editingDowncast')['add'](_0x2c7168=>{_0x2c7168['on'](_0x5663('0xd8'),(_0x45f81d,_0xa60220,_0x198409)=>{const _0x35fa18=_0x198409[_0x5663('0xf6')][_0x5663('0x8d')](_0xa60220[_0x5663('0xbf')]);if(_0x35fa18)for(const _0x1e0769 of _0x35fa18)_0x1e0769[_0x5663('0x108')]('addHighlight')||(_0x198409[_0x5663('0xb8')][_0x5663('0x3c')]([_0x5663('0xe'),_0x5663('0x9d'),_0x5663('0xb5')],_0x1e0769),_0x198409[_0x5663('0xb8')][_0x5663('0xc7')](_0x5663('0x137'),_0x1e0769),_0x198409[_0x5663('0xf6')][_0x5663('0x36')](_0x1e0769,_0xa60220['markerName']));},{'priority':_0x5663('0x3')});}),_0x37a8de[_0x5663('0x19')][_0x5663('0x125')][_0x5663('0xee')](_0x2aa901=>{let _0x112279=!0x1;const _0x4b8027=Array[_0x5663('0xc4')](_0x37a8de['model']['document'][_0x5663('0x9a')][_0x5663('0x7f')]()),_0x5b1084=new Set();for(const {name:_0x14f2d2,data:_0x170a9d}of _0x4b8027){const {group:_0x201088,type:_0x2b8f67,id:_0x1fe9d3}=this['_splitMarkerName'](_0x14f2d2);if('suggestion'!==_0x201088)continue;const _0x5c1cd0=this['_suggestions'][_0x5663('0x34')](_0x1fe9d3);if(null!=_0x170a9d[_0x5663('0xa3')]){_0x5663('0x105')==_0x2b8f67&&(_0x112279=_0x112279||Mt(_0x170a9d[_0x5663('0xa3')],_0x14f2d2,_0x2aa901,_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')]));if(_0x170a9d['newRange'][_0x5663('0xea')]||_0x5663('0x51')==_0x170a9d[_0x5663('0xa3')][_0x5663('0x89')][_0x5663('0x60')]||_0x5663('0x133')==_0x2b8f67&&!Nt(_0x170a9d['newRange'])||_0x5663('0x53')==_0x2b8f67&&!(!_t(_0x4d18aa=_0x170a9d['newRange'])&&!function(_0x49494a){return _0x49494a[_0x5663('0x11b')][_0x5663('0x123')]==_0x49494a[_0x5663('0x112')][_0x5663('0x40')]&&_0x49494a[_0x5663('0x11b')][_0x5663('0x4')];}(_0x4d18aa)))_0x2aa901['removeMarker'](_0x14f2d2),_0x112279=!0x0;else{if(!_0x5c1cd0||!_0x5c1cd0[_0x5663('0x48')])continue;_0x5b1084['add'](_0x5c1cd0);}}}var _0x4d18aa;return _0x5b1084[_0x5663('0xfc')]>0x0&&(_0x112279=!!this['_joinWithAdjacentSuggestions'](_0x5b1084)||_0x112279),_0x112279;}),_0x37a8de[_0x5663('0x19')][_0x5663('0x125')]['registerPostFixer'](_0x46d114=>{let _0x5969b2=!0x1;for(const _0x1b6883 of _0x37a8de['model'][_0x5663('0x125')][_0x5663('0x9a')][_0x5663('0xcf')]()){if('insert'!=_0x1b6883[_0x5663('0xb')])continue;const _0x5a73ad=_0x1b6883[_0x5663('0x12a')][_0x5663('0x46')](_0x1b6883[_0x5663('0xc8')]);if(_0x5a73ad[_0x5663('0x4')])for(const _0x3cf417 of this[_0x5663('0x99')][_0x5663('0x76')]()){if(_0x3cf417[_0x5663('0xd1')]||!_0x3cf417[_0x5663('0x48')])continue;if(_0x5663('0x133')!=_0x3cf417[_0x5663('0xb')])continue;const _0x3db97b=_0x3cf417['getFirstRange']();if(_0x3db97b[_0x5663('0x11b')][_0x5663('0x123')]!=_0x3db97b[_0x5663('0x112')][_0x5663('0x123')]&&_0x3db97b[_0x5663('0x112')][_0x5663('0x4c')](_0x1b6883[_0x5663('0x12a')])){const _0x23d6d3=_0x37a8de[_0x5663('0x19')][_0x5663('0xef')](_0x3db97b[_0x5663('0x11b')],_0x5a73ad);_0x46d114[_0x5663('0x2c')](_0x3cf417[_0x5663('0xc0')](),{'range':_0x23d6d3}),_0x5969b2=!0x0;}}}return _0x5969b2;}),_0x37a8de[_0x5663('0x19')]['markers']['on'](_0x5663('0x118'),(_0x451d10,_0x5226d4,_0x4f8501)=>{if(null==_0x4f8501){const {id:_0x531013}=this[_0x5663('0xc6')](_0x5226d4['name']),_0x5cf426=this['_suggestions'][_0x5663('0x34')](_0x531013);_0x5cf426&&_0x5cf426[_0x5663('0x11f')](_0x5226d4[_0x5663('0x12')]);}}),_0x37a8de['model']['document']['on'](_0x5663('0xe6'),()=>{const _0x409307=Array['from'](_0x37a8de['model']['document']['differ'][_0x5663('0x7f')]())[_0x5663('0x66')](_0x48e44e=>'suggestion'===this[_0x5663('0xc6')](_0x48e44e[_0x5663('0x12')])[_0x5663('0x73')]);if(0x0===_0x409307[_0x5663('0xc8')])return;_0x409307['sort']((_0x300906,_0x1e91ed)=>{const _0x45aa0c=_0x300906[_0x5663('0xe8')][_0x5663('0x13d')],_0x303c6e=_0x1e91ed['data'][_0x5663('0x13d')];return null===_0x45aa0c&&null===_0x303c6e?0x0:null===_0x45aa0c&&null!==_0x303c6e?-0x1:null!==_0x45aa0c&&null===_0x303c6e?0x1:_0x45aa0c['start'][_0x5663('0xf3')](_0x303c6e[_0x5663('0x11b')])?-0x1:0x1;});const _0x5ed1b9=new Set(),_0x43044e=new Set();for(const {name:_0x568540,data:_0x22e61e}of _0x409307){const {id:_0x583de5}=this['_splitMarkerName'](_0x568540);if(null===_0x22e61e[_0x5663('0x13d')]){const _0x3c4edc=this[_0x5663('0xf4')](_0x568540);_0x43044e[_0x5663('0x1c')](_0x3c4edc);}else{const _0x7874b3=this[_0x5663('0x99')]['get'](_0x583de5);null!==_0x22e61e['newRange']||_0x7874b3[_0x5663('0x48')]?(_0x5ed1b9[_0x5663('0x1c')](_0x7874b3[_0x5663('0xbc')]),_0x43044e[_0x5663('0x1c')](_0x7874b3)):this[_0x5663('0x107')](_0x7874b3);}}_0x43044e[_0x5663('0xfc')]>0x0&&this[_0x5663('0xaf')](_0x43044e);for(const _0x141e13 of _0x5ed1b9)this['fire']('suggestionChanged',_0x141e13);}),_0x37a8de[_0x5663('0x19')]['on'](_0x5663('0x139'),(_0x5ae84b,_0x31dd9d)=>{const _0xb03563=_0x31dd9d[0x0];if(!this[_0x5663('0x99')][_0x5663('0xfc')])return;if(!_0xb03563[_0x5663('0x115')])return;if(_0xb03563[_0x5663('0x28')][_0x5663('0xdf')]||!_0xb03563[_0x5663('0x28')][_0x5663('0x35')])return;let _0x3e8a82,_0x466ecb;switch(_0xb03563[_0x5663('0xb')]){case _0x5663('0x63'):_0x3e8a82=_0x37a8de[_0x5663('0x19')][_0x5663('0xa4')](_0xb03563[_0x5663('0x12a')]),_0x466ecb=_0x3e8a82['getShiftedBy'](_0xb03563[_0x5663('0xe7')]);break;case'split':_0x3e8a82=_0x37a8de['model']['createPositionAt'](_0xb03563[_0x5663('0xd3')]),_0x466ecb=_0x37a8de[_0x5663('0x19')][_0x5663('0xa4')](_0xb03563[_0x5663('0xaa')]);break;case _0x5663('0x6'):_0x3e8a82=_0x37a8de[_0x5663('0x19')][_0x5663('0xa4')](_0xb03563['targetPosition']),_0x466ecb=_0x3e8a82['getShiftedBy'](_0xb03563[_0x5663('0xe7')]);break;default:return;}const _0x45fc3c=_0x37a8de['model'][_0x5663('0xef')](_0x3e8a82,_0x466ecb);_0x37a8de[_0x5663('0x19')][_0x5663('0xb4')](()=>{for(const {suggestion:_0x510d9a,meta:_0x43ab83}of this[_0x5663('0xad')](_0x45fc3c)){if(_0x510d9a['isMultiRange'])continue;if(_0x5663('0x105')==_0x510d9a['type'])continue;const _0x2ad306=_0x510d9a[_0x5663('0xe8')]&&_0x510d9a[_0x5663('0xe8')][_0x5663('0xcb')];('formatBlock'!=_0x510d9a[_0x5663('0xb')]||'split'==_0xb03563['type']&&!_0x2ad306)&&(_0x43ab83['containsRangeInObject']||_0x5663('0x30')==_0x510d9a['type']&&_0x43ab83[_0x5663('0x84')]||_0x510d9a[_0x5663('0x109')]()['containsRange'](_0x45fc3c)&&this[_0x5663('0xb0')](_0x510d9a,_0x3e8a82,_0x466ecb));}});},{'priority':_0x5663('0x58')}),_0x37a8de['model']['on']('deleteContent',(_0x40cf0b,_0xcf336e)=>{const _0x57b1c8=_0xcf336e[0x0],_0x5eddbf=_0xcf336e[0x1];if(_0x5eddbf&&_0x5eddbf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5663('0x38')][_0x5663('0x64')])return;if(_0x57b1c8[_0x5663('0xea')])return;const _0x256c0e=_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')],{start:_0x397921,end:_0x3c0797}=_0x57b1c8['getFirstRange'](),_0x22cc22=_0x397921[_0x5663('0xf')]&&_0x256c0e['isLimit'](_0x397921[_0x5663('0xf')])?null:_0x256c0e['getNearestSelectionRange'](_0x397921,_0x5663('0x8b')),_0x396ad3=_0x3c0797[_0x5663('0x40')]&&_0x256c0e[_0x5663('0x117')](_0x3c0797[_0x5663('0x40')])?null:_0x256c0e[_0x5663('0x7e')](_0x3c0797,_0x5663('0x12d')),_0x4033be=_0x37a8de[_0x5663('0x19')][_0x5663('0xef')](_0x22cc22?_0x22cc22[_0x5663('0x11b')]:_0x397921,_0x396ad3?_0x396ad3[_0x5663('0x112')]:_0x3c0797);_0x37a8de['model'][_0x5663('0xb4')](_0x161f87=>{this[_0x5663('0x8f')](_0x4033be);const _0x36905f=_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')][_0x5663('0x7e')](_0x4033be[_0x5663('0x11b')]);_0x57b1c8['is']('documentSelection')?_0x161f87[_0x5663('0x12c')](_0x36905f):_0x57b1c8['setTo'](_0x36905f);}),_0x40cf0b['stop']();},{'priority':_0x2e04e5[_0x5663('0x114')]+0xa}),_0x37a8de[_0x5663('0x19')]['on'](_0x5663('0x8e'),(_0x1d7b2d,_0x5c8c01)=>{const _0x2e2cd6=_0x5c8c01[_0x5c8c01['length']-0x1];_0x2e2cd6&&_0x2e2cd6[_0x5663('0x6c')]||this['_isForcedDefaultExecutionBlock']||this[_0x5663('0x38')][_0x5663('0x64')]&&(_0x37a8de[_0x5663('0x19')][_0x5663('0xb4')](()=>{let _0x307742=_0x37a8de['model'][_0x5663('0x8e')](_0x5c8c01[0x0],_0x5c8c01[0x1],_0x5c8c01[0x2],{'forceDefaultExecution':!0x0});if(!_0x307742)return;_0x1d7b2d[_0x5663('0x119')]=_0x307742[_0x5663('0x129')]();const _0x1f3113=_0x307742['end'][_0x5663('0x40')],_0xeec16f=_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')];_0x1f3113&&_0xeec16f[_0x5663('0xae')](_0x1f3113)&&!_0xeec16f[_0x5663('0xce')](_0x1f3113)&&(_0x307742=_0x37a8de[_0x5663('0x19')]['createRange'](_0x307742[_0x5663('0x11b')],_0x37a8de[_0x5663('0x19')][_0x5663('0xa4')](_0x1f3113,_0x5663('0x112')))),this[_0x5663('0x6d')](_0x307742);}),_0x1d7b2d[_0x5663('0xb6')]());},{'priority':_0x5663('0x3')}),this['editor'][_0x5663('0xfb')][_0x5663('0x1c')](_0x5663('0x18'),this[_0x5663('0x38')]),this[_0x5663('0x1f')](_0x5663('0x18'));const _0x1d50d2=new _0x1bc67b(_0x37a8de,this[_0x5663('0x99')]);_0x37a8de[_0x5663('0xfb')][_0x5663('0x1c')](_0x5663('0x100'),_0x1d50d2),this[_0x5663('0x1f')]('acceptSuggestion');const _0x23b576=new _0x2dbde8(_0x37a8de,this[_0x5663('0x99')]);_0x37a8de[_0x5663('0xfb')][_0x5663('0x1c')](_0x5663('0x43'),_0x23b576),this[_0x5663('0x1f')](_0x5663('0x43')),_0x37a8de[_0x5663('0xfb')][_0x5663('0x1c')]('acceptAllSuggestions',new _0x374b1f(_0x37a8de,_0x1d50d2,this[_0x5663('0x99')])),this['enableCommand'](_0x5663('0x2f')),_0x37a8de[_0x5663('0xfb')]['add'](_0x5663('0xfe'),new _0x374b1f(_0x37a8de,_0x23b576,this[_0x5663('0x99')])),this[_0x5663('0x1f')](_0x5663('0xfe')),_0x37a8de[_0x5663('0xfb')][_0x5663('0x1c')](_0x5663('0x7'),new _0xed453c(_0x37a8de,_0x1d50d2,this[_0x5663('0x99')])),this[_0x5663('0x1f')](_0x5663('0x7')),_0x37a8de[_0x5663('0xfb')][_0x5663('0x1c')](_0x5663('0x5d'),new _0xed453c(_0x37a8de,_0x23b576,this[_0x5663('0x99')])),this['enableCommand'](_0x5663('0x5d'));const _0x55b1ca=_0x37a8de['plugins'][_0x5663('0x34')](_0x5663('0x32'));this[_0x5663('0xb9')](_0x55b1ca,_0x5663('0x3b'),(_0x2a77de,{threadId:_0x539f0d})=>{const _0x4e96e1=this[_0x5663('0x99')][_0x5663('0x34')](_0x539f0d);_0x4e96e1&&_0x4e96e1['commentThread']&&0x1===_0x4e96e1[_0x5663('0x13b')][_0x5663('0xc8')]&&this[_0x5663('0x12b')](_0x539f0d,{'hasComments':!0x0});},{'priority':_0x5663('0xcd')}),this['listenTo'](_0x55b1ca,_0x5663('0xe0'),(_0x597a5f,{threadId:_0x527b86})=>{const _0x47eada=this[_0x5663('0x99')][_0x5663('0x34')](_0x527b86);_0x47eada&&_0x47eada[_0x5663('0x13b')]&&!_0x47eada[_0x5663('0x13b')]['length']&&this['_updateSuggestionData'](_0x527b86,{'hasComments':!0x1});},{'priority':_0x5663('0xcd')});}set[_0x5663('0x13a')](_0x2c0ea1){if(this['_adapter'])throw new _0x464c58(_0x5663('0x21'),this);this[_0x5663('0xd0')]=_0x2c0ea1;}get[_0x5663('0x13a')](){return this[_0x5663('0xd0')];}[_0x5663('0x110')]({skipNotAttached:_0xd1398f=!0x1,toJSON:_0x45b229=!0x1}={}){const _0x1a0315=[];for(const _0x2316d7 of this[_0x5663('0x99')][_0x5663('0x76')]())_0xd1398f&&!_0x2316d7[_0x5663('0x48')]||_0x1a0315[_0x5663('0xeb')](_0x2316d7);return _0x45b229?_0x1a0315['map'](_0x556e41=>_0x556e41[_0x5663('0x3f')]()):_0x1a0315;}[_0x5663('0xa0')](_0x1c7160){const _0x7e5b16=this[_0x5663('0x99')][_0x5663('0x34')](_0x1c7160);if(!_0x7e5b16)throw new _0x464c58(_0x5663('0x54'),this);return _0x7e5b16;}[_0x5663('0x131')](_0xb45522){return this['_suggestions'][_0x5663('0xe2')](_0xb45522);}[_0x5663('0x14')](_0x1edcc9){const {authorId:_0x27974c,id:_0x1c26d4,attributes:_0x4c1fde}=_0x1edcc9,[_0x4e499d,_0x350a7f]=_0x1edcc9['type'][_0x5663('0xf5')](':'),_0xf63d1b=this[_0x5663('0x99')][_0x5663('0x34')](_0x1c26d4)||this[_0x5663('0x1e')](_0x4e499d,_0x350a7f,_0x1c26d4,_0x27974c,_0x4c1fde);if(this[_0x5663('0x49')](_0xf63d1b),this[_0x5663('0x67')](_0xf63d1b,_0x4e499d,_0x350a7f||null,_0x27974c),_0xf63d1b['createdAt']=_0x1edcc9[_0x5663('0x126')],_0xf63d1b[_0x5663('0x42')]=!0x0,_0x4c1fde&&_0x4c1fde[_0x5663('0x5')]){const _0x2520c6=_0x4c1fde[_0x5663('0x5')],_0x20bfea=this['_getExternalAuthor'](_0x2520c6[_0x5663('0x8c')]);_0xf63d1b[_0x5663('0x134')]=_0x2520c6[_0x5663('0x126')],_0xf63d1b[_0x5663('0x127')]=_0x20bfea,_0xf63d1b[_0x5663('0x9')]=!0x0;}else _0xf63d1b[_0x5663('0x134')]=_0x1edcc9['createdAt'];switch(_0x1edcc9[_0x5663('0xe8')]&&(_0xf63d1b[_0x5663('0xe8')]=_0x1edcc9[_0x5663('0xe8')]),_0x1edcc9[_0x5663('0xff')]&&(_0xf63d1b[_0x5663('0xff')]=_0x1edcc9[_0x5663('0xff')]),this[_0x5663('0xd0')]&&this[_0x5663('0xd0')][_0x5663('0x8a')]||(_0xf63d1b[_0x5663('0xdc')]=!0x0),this[_0x5663('0x78')][_0x5663('0x34')](_0xf63d1b)){case'notReady':this[_0x5663('0x78')][_0x5663('0x2b')](_0xf63d1b,_0x5663('0x71'));break;case _0x5663('0x31'):_0xf63d1b[_0x5663('0x48')]?(this[_0x5663('0xaf')](new Set([_0xf63d1b])),this[_0x5663('0xc1')](new Set([_0xf63d1b])),this['_suggestionState']['set'](_0xf63d1b,_0x5663('0x103')),this[_0x5663('0x2a')](_0x5663('0xfa'),_0xf63d1b)):this[_0x5663('0x78')][_0x5663('0x2b')](_0xf63d1b,_0x5663('0xd7'));}return _0xf63d1b;}[_0x5663('0x100')](_0x3551f4){this['forceDefaultExecution'](()=>{this['editor'][_0x5663('0x19')]['change'](()=>{for(const _0x5f4aa8 of _0x3551f4[_0x5663('0xf1')]())_0x5f4aa8['accept']();});});}[_0x5663('0x43')](_0x37a784){this[_0x5663('0x6c')](()=>{this[_0x5663('0x0')]['model'][_0x5663('0xb4')](()=>{for(const _0x351136 of _0x37a784[_0x5663('0xf1')]())_0x351136[_0x5663('0x7a')]();});});}[_0x5663('0x1f')](_0x24d34a,_0x497f96){const _0x3dcf4a=this['editor'][_0x5663('0xfb')][_0x5663('0x34')](_0x24d34a);if(!_0x3dcf4a)throw new _0x464c58('track-changes-command-not-found',this,{'commandName':_0x24d34a});this[_0x5663('0xd2')][_0x5663('0x1c')](_0x3dcf4a),_0x497f96&&_0x3dcf4a['on'](_0x5663('0x68'),(_0x23a44c,_0x5db635)=>{this[_0x5663('0x38')][_0x5663('0x64')]&&(this[_0x5663('0x2')]||_0x5db635[_0x5663('0xc8')]>0x0&&_0x5db635[_0x5db635['length']-0x1]&&_0x5db635[_0x5db635[_0x5663('0xc8')]-0x1][_0x5663('0x6c')]||(_0x497f96((..._0x5cc9d6)=>_0x3dcf4a[_0x5663('0x68')](..._0x5cc9d6,{'forceDefaultExecution':!0x0}),..._0x5db635),_0x23a44c[_0x5663('0xb6')]()));},{'priority':_0x5663('0x3')});}[_0x5663('0x6c')](_0x1d8069){let _0x45adc1,_0x4e9385;const _0x49dd57=this[_0x5663('0x2')];this[_0x5663('0x2')]=!0x0;try{_0x45adc1=_0x1d8069();}catch(_0x280b60){_0x4e9385=_0x280b60;}return _0x49dd57||(this[_0x5663('0x2')]=!0x1),_0x4e9385&&_0x464c58['rethrowUnexpectedError'](_0x4e9385,this),_0x45adc1;}[_0x5663('0x6d')](_0x4a37e2,_0xb6a185=null,_0x548aca={}){if(_0x4a37e2[_0x5663('0xea')])return null;const _0x50c484=this[_0x5663('0x0')]['plugins']['get'](_0x5663('0x10c'))['me'];for(const {suggestion:_0x573606,meta:_0x3543cd}of this[_0x5663('0xad')](_0x4a37e2,_0x5663('0x30')))if(_0x3543cd[_0x5663('0x84')]){if(!_0x3543cd[_0x5663('0x11e')]){if(_0x3543cd[_0x5663('0x6e')]){if(!this[_0x5663('0x9b')]||!Ut(_0x573606,_0x548aca))continue;return _0x573606;}if(Ut(_0x573606,_0x548aca))return _0x573606;this[_0x5663('0xb0')](_0x573606,_0x4a37e2[_0x5663('0x11b')],_0x4a37e2[_0x5663('0x112')]);break;}if(_0xb6a185==_0x573606[_0x5663('0x5b')]&&Ut(_0x573606,_0x548aca)){const _0x2d310a=_0x573606['getFirstRange']();return _0x2d310a[_0x5663('0x11b')][_0x5663('0x4c')](_0x4a37e2[_0x5663('0x112')])?this[_0x5663('0xcc')](_0x573606,this['_model'][_0x5663('0xef')](_0x4a37e2['start'],_0x2d310a[_0x5663('0x112')])):this['_setSuggestionRange'](_0x573606,this[_0x5663('0x59')]['createRange'](_0x2d310a[_0x5663('0x11b')],_0x4a37e2[_0x5663('0x112')])),_0x573606;}}const _0xa42e32=_0x38e0ed(),_0x166786=_0x50c484['id'],_0x47aba8=_0xb6a185?_0x5663('0xca')+_0xb6a185:_0x5663('0x30'),_0x4bb977=this[_0x5663('0x15')]({'id':_0xa42e32,'type':_0x47aba8,'createdAt':new Date(),'authorId':_0x166786,'attributes':_0x548aca});return this['_addSuggestionMarker'](_0x47aba8,_0xa42e32,_0x166786,_0x4a37e2),_0x4bb977;}['markMultiRangeInsertion'](_0x331f65,_0x21f66e=_0x5663('0x1'),_0xf64cea={}){const _0xfb494a=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'],_0x129a58=this['_suggestionFactory'][_0x5663('0x1b')](_0x5663('0x30'),_0x21f66e,'join');for(const _0x21f5bb of this['getSuggestions']())if(_0x21f5bb['author']['id']==_0xfb494a['id']&&_0x5663('0x30')==_0x21f5bb[_0x5663('0xb')]&&_0x21f5bb['subType']==_0x21f66e&&Ut(_0x21f5bb,_0xf64cea)&&(_0x129a58(_0x21f5bb[_0x5663('0xfd')](),_0x331f65)||_0x129a58(_0x331f65,_0x21f5bb[_0x5663('0xfd')]()))){for(const _0xdbf7cf of _0x331f65)_0x21f5bb[_0x5663('0x6f')](_0xdbf7cf);return _0x21f5bb;}for(const {suggestion:_0x139e33,meta:_0x28536d}of this[_0x5663('0xad')](_0x331f65,_0x5663('0x30'))){if(!_0x28536d[_0x5663('0x84')])continue;if(!this[_0x5663('0x9b')]&&_0x28536d['containsRangeInObject'])continue;if(!Ut(_0x139e33,_0xf64cea))continue;let _0xa0ff6e=!0x0;for(const _0x2aee20 of _0x139e33['getRanges']())for(const _0x5e6996 of _0x331f65)if(!_0x2aee20[_0x5663('0x10f')](_0x5e6996)){_0xa0ff6e=!0x1;break;}if(_0xa0ff6e)return _0x139e33;}const _0x218624=_0x38e0ed(),_0xe8180a=_0xfb494a['id'],_0x383c90='insertion:'+_0x21f66e,_0x5f0941=this['_setSuggestionData']({'id':_0x218624,'type':_0x383c90,'createdAt':new Date(),'authorId':_0xe8180a,'attributes':_0xf64cea});for(const _0x2fd872 of _0x331f65)this[_0x5663('0xf7')](_0x383c90,_0x218624,_0xe8180a,_0x2fd872,_0x1b2caa[_0x5663('0x41')]());return _0x5f0941;}[_0x5663('0x9e')](_0x48f3d7,_0x2533f0,_0x1db261=null,_0x42bc33={}){if(_0x1db261=_0x1db261||$t(_0x2533f0),_0x48f3d7['isCollapsed'])return null;if(_0x5663('0x45')===this['_trackFormatChanges']){const _0x2266d2=this['_suggestionFactory'][_0x5663('0x1b')](_0x5663('0x105'),_0x1db261,_0x5663('0x37'));return this[_0x5663('0x6c')](()=>_0x2266d2([_0x48f3d7],_0x2533f0,_0x42bc33)),null;}const _0x253ec6=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'],_0x2789a5=[];if('always'!==this[_0x5663('0x87')])for(const {suggestion:_0x13b3a1,meta:_0x151636}of this[_0x5663('0xad')](_0x48f3d7,_0x5663('0x30')))_0x151636[_0x5663('0x84')]&&!_0x151636[_0x5663('0x12f')]&&_0x2789a5[_0x5663('0xeb')](..._0x13b3a1[_0x5663('0xfd')]());const _0x207ff0=function(_0xc48e73,_0x4cab33){const _0x44f1c0=[];for(const _0xe7050f of _0x4cab33){const _0x5ba716=_0xc48e73[_0x5663('0x136')](_0xe7050f);_0x5ba716&&_0x44f1c0['push'](_0x5ba716);}return _0x44f1c0;}(_0x48f3d7,_0x2789a5),_0x4b7e8b=function(_0x5d38f7,_0x1546f0){const _0x42f7a3=[_0x5d38f7];for(const _0x160773 of _0x1546f0){let _0x34e282=0x0;for(;_0x34e282<_0x42f7a3[_0x5663('0xc8')];){const _0x3705c6=_0x42f7a3[_0x34e282][_0x5663('0x86')](_0x160773);_0x42f7a3['splice'](_0x34e282,0x1,..._0x3705c6),_0x34e282+=_0x3705c6['length'];}}return _0x42f7a3;}(_0x48f3d7,_0x2789a5);_0x207ff0[_0x5663('0xc8')]&&this['_model'][_0x5663('0xb4')](()=>{for(const _0x34fdb9 of _0x207ff0){const _0x58dd02=this['_suggestionFactory']['getSuggestionCallback'](_0x5663('0x105'),_0x1db261,_0x5663('0x37'));this['forceDefaultExecution'](()=>_0x58dd02([_0x34fdb9],_0x2533f0,_0x42bc33));}});for(const _0x1f0959 of _0x4b7e8b){let _0x499fc3=null,_0x8ac50f=_0x1f0959[_0x5663('0x11b')],_0x2b5aef=_0x1f0959[_0x5663('0x112')];for(const {suggestion:_0xa39242,meta:_0x41fdf4}of this[_0x5663('0xad')](_0x1f0959,'formatInline')){if(!_0x41fdf4['isOwn'])continue;if(_0xa39242['subType']!=_0x1db261)continue;if(!Ut(_0xa39242,_0x42bc33))continue;const _0x51631b=_0xa39242[_0x5663('0x109')]();if(_0x51631b[_0x5663('0x10f')](_0x1f0959,!0x0))return null;_0x8ac50f=_0x8ac50f[_0x5663('0xf3')](_0x51631b[_0x5663('0x11b')])?_0x8ac50f:_0x51631b[_0x5663('0x11b')],_0x2b5aef=_0x2b5aef[_0x5663('0xd9')](_0x51631b[_0x5663('0x112')])?_0x2b5aef:_0x51631b[_0x5663('0x112')],_0x499fc3?_0x51631b[_0x5663('0x11b')][_0x5663('0xf3')](_0x499fc3[_0x5663('0x109')]()['start'])?(_0x499fc3[_0x5663('0x3a')](),_0x499fc3=_0xa39242):_0xa39242[_0x5663('0x3a')]():_0x499fc3=_0xa39242;}const _0x4e899e=this[_0x5663('0x59')][_0x5663('0xef')](_0x8ac50f,_0x2b5aef);if(_0x499fc3)this['_setSuggestionRange'](_0x499fc3,_0x4e899e);else{const _0x3a24b7=_0x38e0ed(),_0x3bee47=_0x253ec6['id'];this[_0x5663('0x15')]({'id':_0x3a24b7,'type':_0x5663('0xc9')+_0x1db261,'data':_0x2533f0,'createdAt':new Date(),'authorId':_0x3bee47,'attributes':_0x42bc33}),this[_0x5663('0xf7')](_0x5663('0xc9')+_0x1db261,_0x3a24b7,_0x3bee47,_0x4e899e);}}return null;}[_0x5663('0x94')](_0x1bd601,_0x4e3569,_0x47c264=[],_0x21b767=null,_0x56162f={}){_0x4e3569[_0x5663('0x79')]||(_0x4e3569['formatGroupId']=_0x4e3569[_0x5663('0xa5')]),_0x4e3569[_0x5663('0xcb')]=_0x1bd601['is'](_0x5663('0x65')),_0x21b767=_0x21b767||$t(_0x4e3569);const _0x500d93=_0x47c264[_0x5663('0xc')](_0x4f094a=>Rt(_0x4f094a,this['_model'])),_0x457392=_0x1bd601['is'](_0x5663('0x65'))?_0x1bd601:Rt(_0x1bd601,this[_0x5663('0x59')]);if(_0x5663('0x45')===this[_0x5663('0x87')]){const _0x273208=this[_0x5663('0xa')][_0x5663('0x1b')](_0x5663('0x133'),_0x21b767,_0x5663('0x37'));return this[_0x5663('0x6c')](()=>_0x273208([_0x457392],_0x4e3569,_0x56162f)),null;}_0x500d93[_0x5663('0xeb')](_0x457392);let _0x4e003d=!0x0;for(const _0x135491 of _0x500d93)if(!this['_rangeIsInLocalUserInsertion'](_0x135491)){_0x4e003d=!0x1;break;}if(_0x4e003d&&_0x5663('0x13f')!==this[_0x5663('0x87')]){const _0x2bee49=this[_0x5663('0xa')][_0x5663('0x1b')](_0x5663('0x133'),_0x21b767,_0x5663('0x37'));return this['forceDefaultExecution'](()=>_0x2bee49([_0x457392],_0x4e3569,_0x56162f)),null;}let _0x15257c=null,_0x5d99d0=_0x457392[_0x5663('0x11b')],_0x22bc07=_0x457392['end'];for(const {suggestion:_0x539fa2,meta:_0x5cd82a}of this[_0x5663('0xad')](_0x457392,_0x5663('0x133'))){if(!_0x5cd82a[_0x5663('0x84')])continue;if(_0x5cd82a[_0x5663('0x11e')]||_0x5cd82a['containsRangeInObject']||_0x5cd82a[_0x5663('0x12f')])continue;if(_0x539fa2[_0x5663('0xe8')][_0x5663('0x79')]!=_0x4e3569[_0x5663('0x79')])continue;if(!Ut(_0x539fa2,_0x56162f))continue;const _0x1a4525=_0x539fa2['getFirstRange']();if(_0x539fa2[_0x5663('0x5b')]==_0x21b767){if(_0x1a4525[_0x5663('0x10f')](_0x457392,!0x0))return null;_0x5d99d0=_0x5d99d0['isBefore'](_0x1a4525[_0x5663('0x11b')])?_0x5d99d0:_0x1a4525[_0x5663('0x11b')],_0x22bc07=_0x22bc07[_0x5663('0xd9')](_0x1a4525[_0x5663('0x112')])?_0x22bc07:_0x1a4525[_0x5663('0x112')],_0x15257c?_0x1a4525[_0x5663('0x11b')][_0x5663('0xf3')](_0x15257c[_0x5663('0x109')]()[_0x5663('0x11b')])?(_0x15257c[_0x5663('0x3a')](),_0x15257c=_0x539fa2):_0x539fa2[_0x5663('0x3a')]():_0x15257c=_0x539fa2;}else{const _0x4e3323=_0x457392['getIntersection'](_0x1a4525);this['_cutOutSuggestionMarker'](_0x539fa2,_0x4e3323);}}const _0x14a115=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'],_0x4d470b=_0x38e0ed(),_0xc705bc=_0x14a115['id'];if(_0x15257c)return this[_0x5663('0xcc')](_0x15257c,this['_model'][_0x5663('0xef')](_0x5d99d0,_0x22bc07)),_0x15257c;{const _0x2dc67e=this['_setSuggestionData']({'id':_0x4d470b,'type':_0x5663('0x141')+_0x21b767,'data':_0x4e3569,'createdAt':new Date(),'authorId':_0xc705bc,'attributes':_0x56162f});return this[_0x5663('0xf7')]('formatBlock:'+_0x21b767,_0x4d470b,_0xc705bc,this[_0x5663('0x59')][_0x5663('0xef')](_0x5d99d0,_0x22bc07)),_0x2dc67e;}}['markMultiRangeBlockFormat'](_0x487db2,_0xa2e377,_0x6e9308=[],_0x5a47b3=null,_0xc9bdb8={}){_0xa2e377['formatGroupId']||(_0xa2e377['formatGroupId']=_0xa2e377[_0x5663('0xa5')]);const _0x447761=_0x487db2[0x0];_0xa2e377[_0x5663('0xcb')]=_0x447761['is'](_0x5663('0x65')),_0x5a47b3=_0x5a47b3||$t(_0xa2e377);const _0x25ce8f=_0x6e9308['map'](_0x5720ad=>Rt(_0x5720ad,this[_0x5663('0x59')])),_0x16d716=_0x447761['is'](_0x5663('0x65'))?_0x487db2:_0x487db2[_0x5663('0xc')](_0x204b28=>Rt(_0x204b28,this[_0x5663('0x59')]));if(_0x5663('0x45')===this[_0x5663('0x87')]){const _0x3bb83c=this['_suggestionFactory']['getSuggestionCallback'](_0x5663('0x133'),_0x5a47b3,_0x5663('0x37'));return this[_0x5663('0x6c')](()=>_0x3bb83c(_0x16d716,_0xa2e377,_0xc9bdb8)),null;}_0x25ce8f[_0x5663('0xeb')](..._0x16d716);let _0x2b43c6=!0x0;for(const _0x3ec598 of _0x25ce8f)if(!this[_0x5663('0x93')](_0x3ec598)){_0x2b43c6=!0x1;break;}if(_0x2b43c6&&_0x5663('0x13f')!==this[_0x5663('0x87')]){const _0x19a432=this[_0x5663('0xa')]['getSuggestionCallback']('formatBlock',_0x5a47b3,_0x5663('0x37'));return this[_0x5663('0x6c')](()=>_0x19a432(_0x16d716,_0xa2e377,_0xc9bdb8)),null;}const _0x51b4d2=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'];for(const _0x1bb375 of this[_0x5663('0x110')]()){if(_0x1bb375['author']['id']!=_0x51b4d2['id'])continue;if('formatBlock'!=_0x1bb375[_0x5663('0xb')]||_0x1bb375[_0x5663('0xe8')]['formatGroupId']!=_0xa2e377['formatGroupId'])continue;if(!Ut(_0x1bb375,_0xc9bdb8))continue;const _0x579a4c=_0x1bb375[_0x5663('0x5b')]==_0x5a47b3;for(let _0x3bdc4=0x0;_0x3bdc4<_0x16d716[_0x5663('0xc8')];_0x3bdc4++){const _0x3ddf3d=_0x16d716[_0x3bdc4];for(const _0x33ae7e of _0x1bb375[_0x5663('0x82')]()){const _0x725b10=_0x33ae7e[_0x5663('0x91')]();if(_0x3ddf3d['isEqual'](_0x725b10)){_0x579a4c?(_0x16d716['splice'](_0x3bdc4,0x1),_0x3bdc4--):_0x1bb375[_0x5663('0xbd')](_0x33ae7e[_0x5663('0x12')]);break;}}}}if(0x0==_0x16d716[_0x5663('0xc8')])return null;const _0x441e71=this['_suggestionFactory'][_0x5663('0x1b')](_0x5663('0x133'),_0x5a47b3,_0x5663('0x2d'));for(const _0xde6cff of this[_0x5663('0x110')]())if(_0xde6cff['author']['id']==_0x51b4d2['id']&&_0x5663('0x133')==_0xde6cff['type']&&_0xde6cff['data'][_0x5663('0x79')]==_0xa2e377[_0x5663('0x79')]&&_0xde6cff[_0x5663('0x5b')]==_0x5a47b3&&Ut(_0xde6cff,_0xc9bdb8)&&(_0x441e71(_0xde6cff[_0x5663('0xfd')](),_0x16d716)||_0x441e71(_0x16d716,_0xde6cff[_0x5663('0xfd')]()))){for(const _0xa43c2e of _0x16d716)_0xde6cff[_0x5663('0x6f')](_0xa43c2e);return _0xde6cff;}const _0x341b0d=_0x38e0ed(),_0x29fb82=_0x51b4d2['id'],_0x4f1142=_0x5663('0x141')+_0x5a47b3,_0x46d957=this[_0x5663('0x15')]({'id':_0x341b0d,'type':_0x4f1142,'data':_0xa2e377,'createdAt':new Date(),'authorId':_0x29fb82,'attributes':_0xc9bdb8});for(const _0x37504d of _0x16d716)this[_0x5663('0xf7')](_0x4f1142,_0x341b0d,_0x29fb82,_0x37504d,_0x1b2caa[_0x5663('0x41')]());return _0x46d957;}[_0x5663('0x8f')](_0x4d11d8,_0x49f82a=null,_0x1d63a2={}){if(_0x4d11d8[_0x5663('0xea')])return null;const _0x492ba6=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'],_0xbc5597=new _0x21149e(_0x4d11d8['start'],_0x4d11d8[_0x5663('0x112')]);for(const {suggestion:_0x273352,meta:_0x413202}of this['_findSuggestions'](_0xbc5597,_0x5663('0x30')))if(_0x413202[_0x5663('0x84')]&&!_0x413202[_0x5663('0x11e')]){if(_0x273352[_0x5663('0xd1')]){const _0x2986b9=_0x273352[_0x5663('0xfd')]()[_0x5663('0x66')](_0x3ae22e=>_0x5663('0x51')!=_0x3ae22e[_0x5663('0x89')][_0x5663('0x60')]);_0x2986b9[_0x5663('0x10b')](_0x43aaac=>_0xbc5597[_0x5663('0x10f')](_0x43aaac,!0x0))&&_0x273352[_0x5663('0x7a')]();if(_0x2986b9[_0x5663('0x50')](_0x1eaa49=>_0x1eaa49[_0x5663('0x10f')](_0xbc5597,!0x0))){const _0x871e54=this[_0x5663('0xa')][_0x5663('0x1b')](_0x5663('0x53'),_0x49f82a,_0x5663('0x37'));return this[_0x5663('0x6c')](()=>_0x871e54([_0xbc5597],null,_0x1d63a2)),null;}}else{const _0x130fb5=_0xbc5597[_0x5663('0x136')](_0x273352['getFirstRange']());null!==_0x130fb5&&_0x273352[_0x5663('0xdd')]([_0x130fb5],null,_0x1d63a2);}}if(_0xbc5597[_0x5663('0x5f')](),_0xbc5597[_0x5663('0xea')]||_0x5663('0x51')==_0xbc5597[_0x5663('0x89')]['rootName'])return null;let _0x274983=null,_0x566813=_0xbc5597[_0x5663('0x11b')],_0x9d69eb=_0xbc5597['end'];const _0x5e8c75=this[_0x5663('0xad')](_0xbc5597,'deletion');for(const {suggestion:_0x17b6d7,meta:_0x5dba4f}of _0x5e8c75){const _0x236d7e=this[_0x5663('0x59')][_0x5663('0xef')](_0x566813,_0x9d69eb);if(_0x5dba4f[_0x5663('0x84')]&&(this[_0x5663('0x9b')]||!_0x5dba4f[_0x5663('0x6e')]&&!_0x5dba4f['isInsideObject'])){if(_0x17b6d7[_0x5663('0xd1')]){if(!Ut(_0x17b6d7,_0x1d63a2))continue;let _0x44f6bf=!0x0;for(const _0x21ff00 of _0x17b6d7[_0x5663('0xfd')]()){if(_0x21ff00[_0x5663('0x10f')](_0x236d7e,!0x0))return _0x17b6d7;_0x236d7e[_0x5663('0x10f')](_0x21ff00)||(_0x44f6bf=!0x1);}_0x44f6bf&&_0x17b6d7[_0x5663('0x7a')]();}else{const _0x4e5f2e=_0x17b6d7[_0x5663('0x109')]();if(_0x4e5f2e['containsRange'](_0x236d7e,!0x0))return _0x17b6d7;if(!Ut(_0x17b6d7,_0x1d63a2)){_0x236d7e[_0x5663('0x10f')](_0x4e5f2e)?_0x17b6d7['removeMarkers']():_0x4e5f2e['containsPosition'](_0x566813)?_0x566813=_0x4e5f2e['end']:_0x4e5f2e[_0x5663('0xb2')](_0x9d69eb)&&(_0x9d69eb=_0x4e5f2e[_0x5663('0x11b')]);continue;}_0x566813=_0x566813[_0x5663('0xf3')](_0x4e5f2e[_0x5663('0x11b')])?_0x566813:_0x4e5f2e[_0x5663('0x11b')],_0x9d69eb=_0x9d69eb[_0x5663('0xd9')](_0x4e5f2e['end'])?_0x9d69eb:_0x4e5f2e[_0x5663('0x112')],_0x1d63a2=Object[_0x5663('0x121')]({},_0x17b6d7[_0x5663('0xff')]),_0x274983?_0x4e5f2e[_0x5663('0x11b')]['isBefore'](_0x274983[_0x5663('0x109')]()[_0x5663('0x11b')])?(_0x274983[_0x5663('0x3a')](),_0x274983=_0x17b6d7):_0x17b6d7['removeMarkers']():_0x274983=_0x17b6d7;}}}if(_0x274983)return this[_0x5663('0xcc')](_0x274983,this[_0x5663('0x59')][_0x5663('0xef')](_0x566813,_0x9d69eb)),_0x274983;{const _0x1d3cf5=_0x38e0ed(),_0x1e6f21=this[_0x5663('0x59')]['createRange'](_0x566813,_0x9d69eb),_0x3ae7d0=_0x492ba6['id'],_0x5db8aa=_0x49f82a?_0x5663('0xe1')+_0x49f82a:_0x5663('0x53'),_0xcdd471=this[_0x5663('0x15')]({'id':_0x1d3cf5,'type':_0x5db8aa,'createdAt':new Date(),'authorId':_0x3ae7d0,'attributes':_0x1d63a2});return this[_0x5663('0xf7')](_0x5db8aa,_0x1d3cf5,_0x3ae7d0,_0x1e6f21),_0xcdd471;}}['markMultiRangeDeletion'](_0x3c62d5,_0x398f97='multi',_0x5b89f6={}){const _0x44b71c=this[_0x5663('0x0')]['plugins'][_0x5663('0x34')]('Users')['me'],_0x1999df=_0x3c62d5[_0x5663('0xc')](_0x262c8f=>new _0x21149e(_0x262c8f['start'],_0x262c8f['end'])),_0x3a92cf=new Set();for(const {suggestion:_0x43f3c3,meta:_0x9601cb}of this[_0x5663('0xad')](_0x1999df,'insertion'))_0x9601cb[_0x5663('0x84')]&&!_0x9601cb[_0x5663('0x11e')]&&_0x3a92cf[_0x5663('0x1c')](_0x43f3c3);for(const _0x180741 of _0x3a92cf)if(_0x180741[_0x5663('0xd1')]){const _0x27a4b3=_0x180741[_0x5663('0xfd')]();(!_0x180741[_0x5663('0xff')]||!_0x180741[_0x5663('0xff')]['skipNestingCheck'])&&(_0x27a4b3[_0x5663('0x10b')](_0xbcf9ad=>_0x1999df[_0x5663('0x50')](_0x112a36=>_0x112a36[_0x5663('0x10f')](_0xbcf9ad,!0x0)))&&_0x180741['discard']());if(_0x1999df['every'](_0x309d1=>_0x27a4b3[_0x5663('0x50')](_0x574b6a=>_0x574b6a[_0x5663('0x10f')](_0x309d1,!0x0)))){const _0x422e27=this[_0x5663('0xa')]['getSuggestionCallback'](_0x5663('0x53'),_0x398f97,_0x5663('0x37'));return this['forceDefaultExecution'](()=>_0x422e27(_0x3c62d5,null,_0x5b89f6)),null;}}else{const _0x4ca375=_0x180741['getFirstRange']();_0x1999df['some'](_0x39903f=>_0x39903f[_0x5663('0x10f')](_0x4ca375,!0x0))&&_0x180741['discard']();if(_0x1999df[_0x5663('0x10b')](_0x3de022=>_0x4ca375['containsRange'](_0x3de022,!0x0))){const _0x57938b=this[_0x5663('0xa')]['getSuggestionCallback'](_0x5663('0x53'),_0x398f97,_0x5663('0x37'));return this['forceDefaultExecution'](()=>_0x57938b(_0x1999df,null,_0x5b89f6)),null;}}const _0x29c957=this[_0x5663('0xa')][_0x5663('0x1b')](_0x5663('0x53'),_0x398f97,'join');let _0x1b114d=null;for(const _0x44c0c5 of this[_0x5663('0x110')]())if(_0x44c0c5[_0x5663('0x127')]['id']==_0x44b71c['id']&&_0x44c0c5[_0x5663('0x48')]&&_0x5663('0x53')==_0x44c0c5[_0x5663('0xb')]&&_0x44c0c5['subType']==_0x398f97&&Ut(_0x44c0c5,_0x5b89f6)&&(_0x29c957(_0x44c0c5[_0x5663('0xfd')](),_0x1999df)||_0x29c957(_0x1999df,_0x44c0c5[_0x5663('0xfd')]()))){if(_0x1b114d){if(_0x44c0c5[_0x5663('0x13b')]&&_0x44c0c5[_0x5663('0x13b')][_0x5663('0xc8')])continue;for(const _0xe8da97 of _0x44c0c5[_0x5663('0xfd')]())_0x1b114d[_0x5663('0x104')](_0xe8da97)||_0x1b114d['addRange'](_0xe8da97);_0x44c0c5[_0x5663('0x3a')]();}else{_0x1b114d=_0x44c0c5;for(const _0x261b33 of _0x1999df)_0x44c0c5[_0x5663('0x104')](_0x261b33)||_0x44c0c5[_0x5663('0x6f')](_0x261b33);}}if(_0x1b114d)return _0x1b114d;_0x3a92cf[_0x5663('0x11c')]();for(const {suggestion:_0x38f7c1,meta:_0x1168bd}of this[_0x5663('0xad')](_0x1999df,_0x5663('0x53')))_0x1168bd['isOwn']&&(this[_0x5663('0x9b')]||!_0x1168bd[_0x5663('0x6e')]&&!_0x1168bd[_0x5663('0x12f')])&&Ut(_0x38f7c1,_0x5b89f6)&&_0x3a92cf[_0x5663('0x1c')](_0x38f7c1);for(const _0x572baa of _0x3a92cf){const _0x3d7e3e=_0x572baa[_0x5663('0xfd')]();if(!_0x5b89f6||!_0x5b89f6[_0x5663('0xa6')]){if(_0x1999df[_0x5663('0x10b')](_0x14ac12=>_0x3d7e3e[_0x5663('0x50')](_0x56c57a=>_0x56c57a[_0x5663('0x10f')](_0x14ac12,!0x0))))return _0x572baa;}(!_0x572baa[_0x5663('0xff')]||!_0x572baa[_0x5663('0xff')]['skipNestingCheck'])&&(_0x3d7e3e[_0x5663('0x10b')](_0x727c60=>_0x1999df[_0x5663('0x50')](_0x5e2474=>_0x5e2474[_0x5663('0x10f')](_0x727c60,!0x0)))&&_0x572baa[_0x5663('0x7a')]());}const _0x38ef8d=_0x38e0ed(),_0x291372=_0x44b71c['id'],_0x5ec77e=_0x5663('0xe1')+_0x398f97,_0x35eb14=this[_0x5663('0x15')]({'id':_0x38ef8d,'type':_0x5ec77e,'createdAt':new Date(),'authorId':_0x291372,'attributes':_0x5b89f6});for(const _0x153353 of _0x1999df)_0x153353[_0x5663('0x5f')](),_0x153353['isCollapsed']||'$graveyard'==_0x153353[_0x5663('0x89')][_0x5663('0x60')]||this['_addSuggestionMarker'](_0x5ec77e,_0x38ef8d,_0x291372,_0x153353,_0x1b2caa['getMultiRangeId']());return _0x35eb14;}[_0x5663('0xcc')](_0x5bb782,_0x521e4b){const _0x5912e6=_0x5bb782[_0x5663('0xc0')]();this[_0x5663('0x59')]['change'](_0xe37d51=>{_0xe37d51[_0x5663('0x2c')](_0x5912e6,{'range':_0x521e4b});});}[_0x5663('0x49')](_0x3d0eb1){const _0x3ba79f=_0x3d0eb1['id'],_0x30b1e4=this[_0x5663('0x0')][_0x5663('0x22')][_0x5663('0x34')]('collaboration.channelId');this[_0x5663('0x11')][_0x5663('0x106')](_0x3ba79f)||this[_0x5663('0x11')]['addCommentThread']({'channelId':_0x30b1e4,'threadId':_0x3ba79f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x46436e=this[_0x5663('0x11')]['getCommentThread'](_0x3ba79f);_0x46436e[_0x5663('0xd')](_0x5663('0x57')),_0x46436e[_0x5663('0x57')]=!0x1,_0x3d0eb1[_0x5663('0x13b')]=_0x46436e;}[_0x5663('0x67')](_0x4039d0,_0x2017d5,_0x18c6e4,_0xe558cb){if(_0x4039d0[_0x5663('0xb')]!=_0x2017d5||_0x4039d0['subType']!=_0x18c6e4||_0x4039d0[_0x5663('0xd4')]['id']!=_0xe558cb)throw this[_0x5663('0x0')]['enableReadOnlyMode'](_0x5663('0x9f')),new _0x464c58(_0x5663('0x9f'),this);}[_0x5663('0xda')](_0x48c94e,_0x593198){const _0x30bd18=_0x48c94e[_0x5663('0x109')]();if(_0x593198['isEqual'](_0x30bd18))_0x48c94e[_0x5663('0x3a')]();else{if(_0x30bd18['containsRange'](_0x593198)){const _0x149b88=this[_0x5663('0x59')][_0x5663('0xa4')](_0x593198['start'][_0x5663('0x40')],'end');this['_setSuggestionRange'](_0x48c94e,this[_0x5663('0x59')][_0x5663('0xef')](_0x30bd18[_0x5663('0x11b')],_0x149b88));const _0x2a959b=_0x38e0ed(),_0x139f18=_0x48c94e[_0x5663('0xd4')]['id'],_0x364dfe=_0x48c94e[_0x5663('0xb')]+':'+_0x48c94e['subType'];this[_0x5663('0x15')]({'id':_0x2a959b,'type':_0x364dfe,'createdAt':new Date(),'authorId':_0x139f18,'data':_0x48c94e[_0x5663('0xe8')],'attributes':_0x48c94e['attributes']});const _0x27de0b=this[_0x5663('0x59')]['createPositionAt'](_0x593198['end']['parent'],_0x5663('0x52')),_0x1792bb=this['_model']['createRange'](_0x27de0b,_0x30bd18[_0x5663('0x112')]);this[_0x5663('0xf7')](_0x364dfe,_0x2a959b,_0x139f18,_0x1792bb);}else{if(_0x30bd18[_0x5663('0xb2')](_0x593198[_0x5663('0x11b')])){const _0x204942=this[_0x5663('0x59')][_0x5663('0xa4')](_0x593198[_0x5663('0x11b')][_0x5663('0x40')],_0x5663('0x112'));this[_0x5663('0xcc')](_0x48c94e,this[_0x5663('0x59')][_0x5663('0xef')](_0x30bd18[_0x5663('0x11b')],_0x204942));}else{const _0x58059b=this[_0x5663('0x59')]['createPositionAt'](_0x593198['end']['parent'],_0x5663('0x52'));this[_0x5663('0xcc')](_0x48c94e,this[_0x5663('0x59')]['createRange'](_0x58059b,_0x30bd18[_0x5663('0x112')]));}}}}['_rangeIsInLocalUserInsertion'](_0x133962){for(const {suggestion:_0xc70c48,meta:_0xa8304b}of this[_0x5663('0xad')](_0x133962,_0x5663('0x30'))){if(!_0xa8304b[_0x5663('0x84')])continue;const _0x1d8ae9=_0xc70c48[_0x5663('0xfd')]();for(const _0xf5f25e of _0x1d8ae9)if(!_0x133962[_0x5663('0x86')](_0xf5f25e)['length'])return!0x0;}return!0x1;}[_0x5663('0x4d')](_0x50112c){const _0x36a4c3=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['getUser'](_0x50112c);if(!_0x36a4c3)throw new _0x464c58('track-changes-user-not-found',this);return _0x36a4c3;}['_getExternalAuthor'](_0x1200fa){const _0x4459f9=this['editor']['plugins'][_0x5663('0x34')](_0x5663('0x10c')),_0xa01e5f=_0x17dee1(_0x5663('0x4a')+_0x1200fa),_0x23d909=_0x4459f9[_0x5663('0x11a')](_0xa01e5f);return _0x23d909||_0x4459f9[_0x5663('0xd6')]({'id':_0xa01e5f,'name':_0x1200fa});}[_0x5663('0x1e')](_0x240e70,_0xe35db1,_0x4a5e76,_0x4eb382,_0x69cb6e){const _0x3b21c3=this[_0x5663('0x4d')](_0x4eb382),_0x36e5eb=this[_0x5663('0xa')][_0x5663('0x6b')](_0x240e70,_0xe35db1,_0x4a5e76,_0x3b21c3,_0x69cb6e,_0x1a77bd=>this[_0x5663('0x12b')](_0x4a5e76,{'attributes':_0x1a77bd}));return this[_0x5663('0xb9')](_0x36e5eb,_0x5663('0x37'),()=>{this['_updateSuggestionData'](_0x4a5e76,{'state':'accepted'});},{'priority':_0x5663('0x3')}),this['listenTo'](_0x36e5eb,_0x5663('0x7a'),()=>{this[_0x5663('0x12b')](_0x4a5e76,{'state':_0x5663('0x4f')});},{'priority':'high'}),this[_0x5663('0x99')]['set'](_0x4a5e76,_0x36e5eb),this[_0x5663('0x78')][_0x5663('0x2b')](_0x36e5eb,_0x5663('0x98')),_0x36e5eb;}[_0x5663('0xc6')](_0x1e5fb2){const _0x379c37=_0x1e5fb2[_0x5663('0xf5')](':');return{'group':_0x379c37[0x0],'type':_0x379c37[0x1],'subType':_0x379c37['length']>=0x5?_0x379c37[0x2]:null,'id':_0x379c37[_0x5663('0xc8')]<0x5?_0x379c37[0x2]:_0x379c37[0x3],'authorId':_0x379c37[_0x5663('0xc8')]<0x5?_0x379c37[0x3]:_0x379c37[0x4],'markerCount':0x6==_0x379c37[_0x5663('0xc8')]?_0x379c37[0x5]:null};}[_0x5663('0xb0')](_0x3ca724,_0x3e9e64,_0x34e03f){const _0x4bc324=_0x3ca724[_0x5663('0x109')](),_0x5327fe=_0x4bc324[_0x5663('0x11b')],_0x27f627=_0x4bc324[_0x5663('0x112')];this['_setSuggestionRange'](_0x3ca724,this[_0x5663('0x59')][_0x5663('0xef')](_0x5327fe,_0x3e9e64));const _0x54f855=_0x38e0ed(),_0x8034a6=_0x3ca724['creator']['id'],_0x7db55=_0x3ca724['type']+(_0x3ca724['subType']?':'+_0x3ca724[_0x5663('0x5b')]:'');this['_setSuggestionData']({'id':_0x54f855,'type':_0x7db55,'createdAt':new Date(),'authorId':_0x8034a6,'originalSuggestionId':_0x3ca724['id'],'attributes':_0x3ca724['attributes'],'data':_0x3ca724['data']}),_0x5663('0x133')==_0x3ca724[_0x5663('0xb')]&&(_0x34e03f=this['_model'][_0x5663('0x3d')](_0x34e03f[_0x5663('0x123')])),this['_addSuggestionMarker'](_0x7db55,_0x54f855,_0x8034a6,this[_0x5663('0x59')][_0x5663('0xef')](_0x34e03f,_0x27f627));}[_0x5663('0xad')](_0x2e4a0f,_0x3a3c6f=null){const _0x21dd27=[],_0x582a53=this['editor'][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'];Array[_0x5663('0x7b')](_0x2e4a0f)||(_0x2e4a0f=[_0x2e4a0f]);for(const _0x427feb of this[_0x5663('0x110')]()){if(!_0x427feb['isInContent'])continue;if(_0x3a3c6f&&_0x427feb[_0x5663('0xb')]!=_0x3a3c6f)continue;let _0x44b150=!0x1;for(const _0x3e2995 of _0x427feb[_0x5663('0xfd')]()){for(const _0xfceb93 of _0x2e4a0f){const _0x375bb0=_0xfceb93['start'][_0x5663('0x4c')](_0x3e2995[_0x5663('0x112')])||_0xfceb93['end'][_0x5663('0x4c')](_0x3e2995[_0x5663('0x11b')]);if(_0x375bb0||_0xfceb93[_0x5663('0x136')](_0x3e2995)){const _0x8a6eb7=_0xfceb93[_0x5663('0x10f')](_0x3e2995)&&Bt(this[_0x5663('0x59')][_0x5663('0x5c')],_0x3e2995[_0x5663('0x11b')],_0xfceb93),_0x29aef1=_0x3e2995['containsRange'](_0xfceb93)&&Bt(this[_0x5663('0x59')][_0x5663('0x5c')],_0xfceb93['start'],_0x3e2995);_0x21dd27[_0x5663('0xeb')]({'suggestion':_0x427feb,'meta':{'isOwn':_0x582a53==_0x427feb[_0x5663('0x127')],'isNextTo':_0x375bb0,'isInsideObject':_0x8a6eb7,'containsRangeInObject':_0x29aef1}}),_0x44b150=!0x0;break;}}if(_0x44b150)break;}}return _0x21dd27;}[_0x5663('0xf7')](_0x371714,_0x41bdb0,_0xcfe7c8,_0x571cb1,_0x58b0ba){this['_model']['change'](_0x4fb5ea=>{let _0x50fc09=_0x5663('0x81')+_0x371714+':'+_0x41bdb0+':'+_0xcfe7c8;_0x58b0ba&&(_0x50fc09=_0x50fc09+':'+_0x58b0ba),_0x4fb5ea[_0x5663('0xbb')](_0x50fc09,{'range':_0x571cb1,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5663('0x107')](_0x1d6446){const _0x285ca0=_0x1d6446[_0x5663('0xd5')],_0x4d1acb=_0x1d6446[_0x5663('0x90')];_0x1d6446[_0x5663('0xd5')]=null,null!=_0x285ca0&&(_0x285ca0[_0x5663('0x90')]=null),_0x1d6446[_0x5663('0x90')]=null,null!=_0x4d1acb&&(_0x4d1acb[_0x5663('0xd5')]=null),_0x5663('0x103')==this[_0x5663('0x78')][_0x5663('0x34')](_0x1d6446)&&(this['_suggestionState'][_0x5663('0x2b')](_0x1d6446,_0x5663('0xd7')),this[_0x5663('0x2a')](_0x5663('0x10a'),_0x1d6446,_0x285ca0,_0x4d1acb));}[_0x5663('0x15')](_0x3ed9fe){const _0x4531c9=_0x3ed9fe['id'],_0x465a47=this[_0x5663('0x14')](_0x3ed9fe);if(this[_0x5663('0xd0')]&&this[_0x5663('0xd0')][_0x5663('0x8a')]){const _0xe73804=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10')),_0x257bcf=_0x465a47[_0x5663('0xb7')],_0x5ad64c=_0x465a47[_0x5663('0x5b')]?_0x465a47[_0x5663('0xb')]+':'+_0x465a47[_0x5663('0x5b')]:_0x465a47[_0x5663('0xb')],_0x2f3be4=this['editor']['locale'],_0x43e32c=_0xe73804[_0x5663('0x1c')](_0x393f40(_0x2f3be4,_0x5663('0x138'))),_0x2b3a4c={'id':_0x4531c9,'type':_0x5ad64c,'hasComments':_0x257bcf,'data':_0x3ed9fe[_0x5663('0xe8')]||null,'originalSuggestionId':_0x3ed9fe[_0x5663('0xe9')]||null,'attributes':_0x465a47[_0x5663('0xff')]};this['_adapter'][_0x5663('0x8a')](_0x2b3a4c)[_0x5663('0x44')](_0x49135c=>{_0x465a47[_0x5663('0xdc')]=!0x0,_0xe73804['remove'](_0x43e32c),_0x49135c&&_0x49135c['createdAt']&&(this[_0x5663('0x99')][_0x5663('0x34')](_0x4531c9)['createdAt']=_0x49135c[_0x5663('0x126')]);})['catch'](_0x3ea9d4=>{throw _0x22fae2(_0x5663('0x8')),this['editor']['model'][_0x5663('0x39')]({'isUndoable':!0x1},()=>{_0x465a47['discard']();}),_0x465a47['stopListening'](),this[_0x5663('0x99')][_0x5663('0x13e')](_0x465a47['id']),this[_0x5663('0x78')][_0x5663('0x13e')](_0x465a47),_0x3ea9d4;});}return _0x465a47;}[_0x5663('0x12b')](_0x3db7a6,_0x45eaf2){const _0x385223=this[_0x5663('0x0')]['plugins']['get']('PendingActions'),_0x36332b=this[_0x5663('0xa0')](_0x3db7a6);if(this[_0x5663('0xd0')]&&this['_adapter'][_0x5663('0xed')]){if(_0x36332b[_0x5663('0xdc')]){const _0x5198e1=_0x385223[_0x5663('0x1c')](_0x393f40(this[_0x5663('0x0')][_0x5663('0x74')],_0x5663('0x138')));this['_adapter'][_0x5663('0xed')](_0x3db7a6,_0x45eaf2)[_0x5663('0x44')](()=>{_0x385223[_0x5663('0x9c')](_0x5198e1);});}else _0x36332b['on'](_0x5663('0xa9'),()=>{this[_0x5663('0x12b')](_0x3db7a6,_0x45eaf2);});}}[_0x5663('0x130')](_0x2bb8ab){if(!this[_0x5663('0xd0')]||!this[_0x5663('0xd0')][_0x5663('0xa0')])throw new _0x464c58(_0x5663('0x85'),this);return this['_adapter']['getSuggestion'](_0x2bb8ab);}[_0x5663('0xf4')](_0x13760f){const {id:_0x4e443b,type:_0x11783c,subType:_0x4301ff,authorId:_0x4a5c29}=this[_0x5663('0xc6')](_0x13760f),_0x28b6e2=this[_0x5663('0x99')][_0x5663('0x34')](_0x4e443b)||this[_0x5663('0x1e')](_0x11783c,_0x4301ff,_0x4e443b,_0x4a5c29,{});switch(this[_0x5663('0x67')](_0x28b6e2,_0x11783c,_0x4301ff,_0x4a5c29),this[_0x5663('0x78')][_0x5663('0x34')](_0x28b6e2)){case _0x5663('0x98'):this[_0x5663('0x130')](_0x4e443b)[_0x5663('0x44')](_0x2fafe8=>{let _0x208dcd=Promise[_0x5663('0x6a')]();_0x2fafe8[_0x5663('0xb7')]&&(_0x208dcd=this[_0x5663('0x11')][_0x5663('0x62')]({'channelId':this[_0x5663('0x0')][_0x5663('0x22')]['get']('collaboration.channelId'),'threadId':_0x4e443b})),_0x208dcd[_0x5663('0x44')](()=>{this[_0x5663('0x14')](_0x2fafe8)['_saved']=!0x0;});}),this[_0x5663('0x78')][_0x5663('0x2b')](_0x28b6e2,_0x5663('0x31'));break;case _0x5663('0xd7'):this[_0x5663('0x12b')](_0x4e443b,{'state':'open'});case _0x5663('0x71'):this[_0x5663('0x78')]['set'](_0x28b6e2,'ready'),this[_0x5663('0x2a')]('suggestionLoaded',_0x28b6e2);break;case _0x5663('0x103'):this[_0x5663('0x2a')]('suggestionChanged',_0x28b6e2);}return _0x28b6e2[_0x5663('0x11f')](_0x13760f),_0x28b6e2;}[_0x5663('0xaf')](_0x3ee519){const _0x2fa3f3=Array[_0x5663('0xc4')](_0x3ee519)[_0x5663('0x66')](_0x30b542=>!_0x30b542[_0x5663('0xd1')]),_0x4a6b2f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cbb12=>!_0x1cbb12[_0x5663('0xd1')]),_0x2bb36c=_0x4a6b2f[_0x5663('0x66')](_0x1814a4=>!_0x3ee519[_0x5663('0xe2')](_0x1814a4)),_0x25640b=new Map(_0x4a6b2f[_0x5663('0xc')](_0x130269=>[_0x130269,this[_0x5663('0xa')][_0x5663('0x1b')](_0x130269[_0x5663('0xb')],_0x130269['subType'],_0x5663('0x24'))])),_0x205d37=new Map(_0x4a6b2f['map'](_0xa07ebd=>[_0xa07ebd,_0xa07ebd[_0x5663('0x109')]()])),_0x2c1dd1=new Set(),_0x45e3cb=new Set();for(let _0xeeb81e=0x0;_0xeeb81e<_0x2fa3f3[_0x5663('0xc8')];_0xeeb81e++)_0x45cf4b(_0x2fa3f3[_0xeeb81e],_0x2fa3f3,_0xeeb81e+0x1);for(let _0xc2d064=0x0;_0xc2d064<_0x2fa3f3[_0x5663('0xc8')];_0xc2d064++)_0x45cf4b(_0x2fa3f3[_0xc2d064],_0x2bb36c,0x0);for(let _0x69b78d=0x0;_0x69b78d<_0x2fa3f3['length'];_0x69b78d++){const _0xf99f02=_0x2fa3f3[_0x69b78d];!_0x45e3cb[_0x5663('0xe2')](_0xf99f02)&&_0xf99f02[_0x5663('0xd5')]&&(_0xf99f02[_0x5663('0xd5')][_0x5663('0x90')]===_0xf99f02&&(_0xf99f02[_0x5663('0xd5')][_0x5663('0x90')]=null),_0xf99f02[_0x5663('0xd5')]=null),!_0x2c1dd1[_0x5663('0xe2')](_0xf99f02)&&_0xf99f02[_0x5663('0x90')]&&(_0xf99f02[_0x5663('0x90')][_0x5663('0xd5')]===_0xf99f02&&(_0xf99f02[_0x5663('0x90')][_0x5663('0xd5')]=null),_0xf99f02[_0x5663('0x90')]=null);}function _0x45cf4b(_0x8aa944,_0x1cb5c2,_0x1f26b1){for(let _0x45a919=_0x1f26b1;_0x45a919<_0x1cb5c2[_0x5663('0xc8')];_0x45a919++){const _0x4a4ca7=_0x2bf2ca(_0x8aa944,_0x1cb5c2[_0x45a919]);_0x4a4ca7&&(_0x4a4ca7[0x0][_0x5663('0x90')]=_0x4a4ca7[0x1],_0x4a4ca7[0x1][_0x5663('0xd5')]=_0x4a4ca7[0x0],_0x2c1dd1['add'](_0x4a4ca7[0x0]),_0x45e3cb[_0x5663('0x1c')](_0x4a4ca7[0x1]));}}function _0x2bf2ca(_0x25b2b5,_0x4d06a3){if(_0x25b2b5[_0x5663('0x127')]['id']!==_0x4d06a3[_0x5663('0x127')]['id'])return null;const _0x37dd14=_0x25640b['get'](_0x25b2b5)(_0x25b2b5,_0x4d06a3,_0x205d37[_0x5663('0x34')](_0x25b2b5),_0x205d37[_0x5663('0x34')](_0x4d06a3));if(!_0x37dd14)return null;return _0x25640b['get'](_0x4d06a3)(_0x25b2b5,_0x4d06a3,_0x205d37[_0x5663('0x34')](_0x25b2b5),_0x205d37[_0x5663('0x34')](_0x4d06a3))?_0x37dd14[0x1][_0x5663('0x13b')]&&_0x37dd14[0x1][_0x5663('0x13b')][_0x5663('0xc8')]?null:_0x37dd14:null;}}[_0x5663('0xc1')](_0x552b02){const _0x5f322b=Array['from'](_0x552b02),_0x3a4269=this[_0x5663('0x110')]({'skipNotAttached':!0x0}),_0x5684b2=_0x3a4269[_0x5663('0x66')](_0x123ee2=>!_0x552b02[_0x5663('0xe2')](_0x123ee2)),_0x5bcbde=new Map(_0x5f322b[_0x5663('0xc')](_0x5b488b=>[_0x5b488b,this[_0x5663('0xa')][_0x5663('0x1b')](_0x5b488b[_0x5663('0xb')],_0x5b488b[_0x5663('0x5b')],_0x5663('0x2d'))])),_0x570ac1=new Map(_0x3a4269[_0x5663('0xc')](_0x276f1d=>[_0x276f1d,_0x276f1d[_0x5663('0xfd')]()]));for(let _0x1a37d2=0x0;_0x1a37d2<_0x5f322b[_0x5663('0xc8')];_0x1a37d2++){if(_0x46ba6a(this,_0x5f322b[_0x1a37d2],_0x5f322b,_0x1a37d2+0x1))return!0x0;}for(let _0x1f443a=0x0;_0x1f443a<_0x5f322b[_0x5663('0xc8')];_0x1f443a++){if(_0x46ba6a(this,_0x5f322b[_0x1f443a],_0x5684b2,0x0))return!0x0;}return!0x1;function _0x46ba6a(_0x4cfc9c,_0x209e24,_0x5c5324,_0x1a9293){for(let _0x3832ab=_0x1a9293;_0x3832ab<_0x5c5324[_0x5663('0xc8')];_0x3832ab++){const _0x1e670e=_0x5c5324[_0x3832ab];if(_0x1e670e['type']!==_0x209e24[_0x5663('0xb')]||_0x1e670e['author']['id']!==_0x209e24[_0x5663('0x127')]['id']||_0x1e670e[_0x5663('0x5b')]!==_0x209e24[_0x5663('0x5b')])continue;if(!xt(_0x209e24,_0x1e670e))continue;const _0x28fe79=_0x5bcbde['get'](_0x209e24),_0x192571=_0x570ac1[_0x5663('0x34')](_0x209e24),_0x301928=_0x570ac1[_0x5663('0x34')](_0x1e670e),_0x585bf4=_0x209e24['commentThread']&&_0x209e24[_0x5663('0x13b')][_0x5663('0xc8')],_0x1544cf=_0x1e670e['commentThread']&&_0x1e670e['commentThread'][_0x5663('0xc8')];if(!_0x585bf4&&_0x28fe79(_0x301928,_0x192571))return _0x4cfc9c[_0x5663('0xde')](_0x1e670e,_0x209e24),_0x570ac1[_0x5663('0x13e')](_0x209e24),!0x0;if(!_0x1544cf&&_0x28fe79(_0x192571,_0x301928))return _0x4cfc9c['_joinSuggestions'](_0x209e24,_0x1e670e),_0x570ac1[_0x5663('0x13e')](_0x1e670e),!0x0;}return!0x1;}}[_0x5663('0xde')](_0x246705,_0x1fb5dc){if(_0x246705[_0x5663('0xd1')])for(const _0x462368 of _0x1fb5dc['getRanges']())_0x246705['addRange'](_0x462368);else{const _0x4467ca=_0x1fb5dc[_0x5663('0x109')]()[_0x5663('0x112')];this[_0x5663('0xcc')](_0x246705,this['_model'][_0x5663('0xef')](_0x246705[_0x5663('0x109')]()[_0x5663('0x11b')],_0x4467ca));}_0x1fb5dc['removeMarkers']();}}class Dt{constructor(_0x34fec9){this[_0x5663('0x77')]=_0x34fec9,this[_0x5663('0x59')]=_0x34fec9[_0x5663('0x19')],this['_customCallbacks']=new Map(),this[_0x5663('0xe4')]=new Map(),this[_0x5663('0xe5')]();}[_0x5663('0x6b')](_0x22e482,_0x8d551,_0x10459a,_0x478c22,_0x4ef47e,_0x196545){return new _0x1b2caa(this['_model'],{'type':_0x22e482,'subType':_0x8d551,'id':_0x10459a,'author':_0x478c22,'creator':_0x478c22,'attributes':_0x4ef47e,'onAttributesChange':_0x196545,'onAccept':(..._0x53bb32)=>this['getSuggestionCallback'](_0x22e482,_0x8d551,'accept')(..._0x53bb32),'onDiscard':(..._0x5c3118)=>this['getSuggestionCallback'](_0x22e482,_0x8d551,'discard')(..._0x5c3118)});}[_0x5663('0x11d')](_0x52e962,_0x382f75,_0x2eeedb,_0x244bc8){const _0x217122=_0x52e962+':'+_0x382f75+':'+_0x2eeedb;this[_0x5663('0x96')]['set'](_0x217122,_0x244bc8);}[_0x5663('0x1b')](_0xe72264,_0x222e9a,_0x402a30){const _0x3a8214=_0xe72264+':'+_0x222e9a+':'+_0x402a30;return this[_0x5663('0x96')][_0x5663('0x34')](_0x3a8214)||this[_0x5663('0xe4')][_0x5663('0x34')](_0xe72264+':'+_0x402a30);}['_registerDefaultCallbacks'](){const _0x3e7048=()=>!0x1,_0x54b6ec=_0x261f57=>{_0x261f57['sort']((_0xe93021,_0x23fb35)=>_0xe93021['start'][_0x5663('0xf3')](_0x23fb35[_0x5663('0x11b')])?0x1:-0x1),this[_0x5663('0x59')][_0x5663('0xb4')](_0x3229e6=>{for(const _0x4b3314 of _0x261f57){let _0x50cf58;_0x50cf58=_0x4b3314[_0x5663('0x112')][_0x5663('0x4')]&&_0x4b3314[_0x5663('0x112')][_0x5663('0x123')]==_0x4b3314[_0x5663('0x11b')]['nodeAfter']?_0x3229e6[_0x5663('0x13c')](_0x4b3314[_0x5663('0x11b')][_0x5663('0xf')],'on'):_0x3229e6[_0x5663('0x13c')](_0x4b3314),this['_model']['deleteContent'](_0x50cf58,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3c4daf=(_0x5440ec,_0x4b7034)=>{this[_0x5663('0x59')][_0x5663('0xb4')](_0xe04bc2=>{const {commandName:_0x5b04fa,commandParams:_0x4ec099=[]}=_0x4b7034,_0x39f494=_0x5440ec[_0x5663('0xc')](_0x52bb76=>(_t(_0x52bb76)&&(_0x52bb76=this[_0x5663('0x59')][_0x5663('0xef')](_0x52bb76[_0x5663('0x112')])),_0x52bb76))[_0x5663('0x66')](_0x4390ef=>_0x5663('0x51')!==_0x4390ef[_0x5663('0x89')][_0x5663('0x60')]);if(_0x39f494[_0x5663('0xc8')]<0x1)return;const _0x3c100e=Array[_0x5663('0xc4')](this[_0x5663('0x59')][_0x5663('0x125')]['selection'][_0x5663('0xfd')]())[_0x5663('0xc')](_0x1ed1a1=>_0x21149e[_0x5663('0x69')](_0x1ed1a1));_0xe04bc2[_0x5663('0x12c')](_0x39f494);for(const _0x12f9cc of this[_0x5663('0x77')]['commands'][_0x5663('0xfb')]())_0x12f9cc['refresh']();_0x4ec099['push']({'forceDefaultExecution':!0x0}),this['_editor'][_0x5663('0x68')](_0x5b04fa,..._0x4ec099);const _0x1817c4=_0x3c100e[_0x5663('0x66')](_0x5a7082=>_0x5663('0x51')!=_0x5a7082['root']['rootName']);_0x1817c4[_0x5663('0xc8')]>0x0&&_0xe04bc2[_0x5663('0x12c')](_0x1817c4);for(const _0x8b279e of _0x3c100e)_0x8b279e[_0x5663('0x5f')]();});},_0x491987=(_0x4c5159,_0x508f15)=>0x1==_0x4c5159[_0x5663('0xc8')]&&0x1==_0x508f15['length']&&_0x4c5159[0x0][_0x5663('0x112')][_0x5663('0x4c')](_0x508f15[0x0]['start']),_0xbc431b=(_0x8101bb,_0x36aba5,_0x5b458c,_0x41c63b)=>jt(_0x8101bb,_0x36aba5,_0x5b458c,_0x41c63b,this[_0x5663('0x59')])?[_0x8101bb,_0x36aba5]:jt(_0x36aba5,_0x8101bb,_0x41c63b,_0x5b458c,this['_model'])?[_0x36aba5,_0x8101bb]:null;this[_0x5663('0xe4')]['set'](_0x5663('0x5a'),_0x3e7048),this['_defaultCallbacks'][_0x5663('0x2b')](_0x5663('0x4e'),_0x54b6ec),this[_0x5663('0xe4')][_0x5663('0x2b')]('insertion:join',_0x491987),this[_0x5663('0xe4')]['set']('insertion:chain',_0xbc431b),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0x56'),_0x54b6ec),this['_defaultCallbacks'][_0x5663('0x2b')](_0x5663('0x113'),_0x3e7048),this[_0x5663('0xe4')][_0x5663('0x2b')]('deletion:join',_0x491987),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0x5e'),_0xbc431b),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0x122'),_0x3c4daf),this['_defaultCallbacks'][_0x5663('0x2b')](_0x5663('0xf0'),_0x3e7048),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0x1d'),_0x491987),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0xec'),_0x3e7048),this['_defaultCallbacks'][_0x5663('0x2b')](_0x5663('0x116'),_0x3c4daf),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0xc2'),_0x3e7048),this[_0x5663('0xe4')][_0x5663('0x2b')]('formatBlock:join',_0x491987),this[_0x5663('0xe4')]['set'](_0x5663('0x92'),_0x3e7048);}}function Bt(_0x3720ee,_0x1b80f1,_0x32f426){for(const _0x8702e3 of _0x1b80f1[_0x5663('0x123')][_0x5663('0xac')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x8702e3[_0x5663('0x89')]==_0x8702e3)return!0x1;if(!_0x32f426[_0x5663('0x20')](_0x8702e3))return!0x1;if(_0x3720ee['isObject'](_0x8702e3)||_0x3720ee[_0x5663('0x117')](_0x8702e3))return!0x0;}return!0x1;}function _t(_0x37b48b){return _0x37b48b[_0x5663('0x112')][_0x5663('0x123')]==_0x37b48b['start'][_0x5663('0xf')]&&_0x37b48b['end'][_0x5663('0x101')];}function Mt(_0x3f800e,_0x479a19,_0x4020b,_0x450d11){const _0x419045=_0x169c10=>!_0x169c10[_0x5663('0xf2')]['is'](_0x5663('0x55'))&&!_0x450d11[_0x5663('0xce')](_0x169c10[_0x5663('0xf2')]),_0x2b5bd4=_0x3f800e[_0x5663('0x11b')][_0x5663('0x23')](_0x419045),_0x56cf1c=_0x3f800e[_0x5663('0x112')][_0x5663('0x23')](_0x419045,{'direction':'backward'});return(!_0x3f800e[_0x5663('0x11b')][_0x5663('0x4c')](_0x2b5bd4)||!_0x3f800e[_0x5663('0x112')][_0x5663('0x4c')](_0x56cf1c))&&(_0x2b5bd4[_0x5663('0xf3')](_0x56cf1c)?_0x4020b['updateMarker'](_0x479a19,{'range':_0x4020b[_0x5663('0xef')](_0x2b5bd4,_0x56cf1c)}):_0x4020b[_0x5663('0xbd')](_0x479a19),!0x0);}function $t(_0x40c85d){return _0x17dee1(_0x40c85d);}function Nt(_0x14cf2e){const _0x15bc34=_0x14cf2e[_0x5663('0x11b')][_0x5663('0xf')];return _0x15bc34&&_0x15bc34['is']('element');}function Rt(_0x169c2d,_0xb05741){const _0x3a6e75=_0xb05741[_0x5663('0x5c')][_0x5663('0xce')](_0x169c2d)||_0xb05741[_0x5663('0x5c')]['isSelectable'](_0x169c2d);return _0xb05741[_0x5663('0xef')](_0xb05741[_0x5663('0xa4')](_0x169c2d,_0x5663('0x17')),_0x3a6e75?_0xb05741[_0x5663('0x124')](_0x169c2d):_0xb05741[_0x5663('0xa4')](_0x169c2d,_0x5663('0x112')));}function jt(_0x55042a,_0x2293c1,_0x44ca78,_0x11350d,_0x48f59b){if(!xt(_0x55042a,_0x2293c1))return!0x1;if(_0x44ca78['end'][_0x5663('0x4c')](_0x11350d['start']))return!0x0;if(_0x55042a[_0x5663('0xb')]!=_0x2293c1['type'])return!0x1;if(!_0x44ca78['end']['isTouching'](_0x11350d[_0x5663('0x11b')]))return!0x1;const _0x2e4949=_0x48f59b[_0x5663('0xef')](_0x44ca78[_0x5663('0x112')],_0x11350d['start'])[_0x5663('0x132')]();for(const _0x25c197 of _0x2e4949)if([_0x5663('0xba'),_0x5663('0xdb')][_0x5663('0x4b')](_0x25c197['type'])&&_0x48f59b[_0x5663('0x5c')][_0x5663('0x117')](_0x25c197[_0x5663('0xf2')]))return!0x1;return!0x0;}function xt(_0x2d01f9,_0x4f4f26){return!(!_0x2d01f9['_isDataLoaded']||!_0x4f4f26[_0x5663('0x42')])&&_0x17381c(_0x2d01f9[_0x5663('0xff')],_0x4f4f26[_0x5663('0xff')]);}function Ut(_0x5c8445,_0xa3cb80){const _0xd3187f=Ot(_0x5c8445[_0x5663('0xff')]),_0x1d4ae4=Ot(_0xa3cb80);if(!_0x5c8445['_isDataLoaded'])return!0x1;for(const _0x5e1c6f of Object[_0x5663('0x135')](_0x1d4ae4))if(!_0x17381c(_0xd3187f[_0x5e1c6f],_0x1d4ae4[_0x5e1c6f]))return!0x1;return!0x0;}function Ot(_0xd19e37){const _0x3aee21=Object[_0x5663('0x121')]({},_0xd19e37);return delete _0x3aee21[_0x5663('0xa6')],delete _0x3aee21['tablePasteChainId'],_0x3aee21;}
23
+ const _0xdcc3=['isInsideObject','unbindElementFromMarkerName','formatInline','showSuggestionHighlights','authorName','define','markMultiRangeDeletion','plugins','split','set','_rangeIsInLocalUserInsertion','getSuggestion','mapper','error-saving-suggestion-data-suggestion-discarded','getLastMatchingPosition','CommentsRepository','_defaultCallbacks','markBlockFormat','always','moveTargetPosition','suggestionChanged','removeClass','unbind','_mergeNestedSuggestions','isDocumentOperation','open','createPositionAt','_isDataLoaded','range','nodeAfter','head','elementStart','_suggestionFactory','_enabledCommands','toJSON','for','bindElementToMarker','_removeSuggestion','removeMarker','getSuggestionCallback','_editor','isEqual','discardSuggestion','_setSuggestionData','formatBlock','_customCallbacks','schema','splitPosition','push','skipNestingCheck','resolve','suggestionUnloaded','documentSelection','_descriptionFactory','filter','ck-suggestion-marker-formatBlock','nodeBefore','elementToElement','containsRangeInObject','length','removeAttribute','trackChangesCommand','deletion:join','markerName','removeMarkers','formatInline:chain','isArray','discardAllSuggestions','fromRange','addClass','data','elementEnd','execute','addRange','createdAt','_addSuggestionMarker','_model','requires','accepted','markDeletion','enableReadOnlyMode','getShiftedBy','isBlock','formatBlock:','_joinSuggestions','locale','isAfter','multi','get','isIntersectingWithRange','_trackFormatChanges','removed','isSelectable','getItems','addMarkerName','markInsertion','next','addSuggestion','selection','default','isUndo','addUser','document','hasComments','_getAuthorFromId','updateMarker','multipleBlocks','adapter','config','insertion:join','isBefore','isNextTo','track-changes-user-not-found','size','splice','getIntersection','formatBlock:join','isExternal','consume','forward','@external','editor','isCollapsed','$graveyard','accept','root','isLimit','fetchCommentThread','isRemovable','insertContent','setSelection','highest','removeMarker:suggestion:formatBlock','dataDowncast','delete','acceptAllSuggestions','_adapter','stop','dataToMarker','formatGroupId','before','getNearestSelectionRange','parent','addMarker:suggestion','assign','editingDowncast','suggestionLoaded','marker-count','catch','pluginName','writer','formatInline:accept','insertion:chain','listenTo','commentThread','containerElement','removeComment','rootName','includes','chain','containsPosition','item','end','addMarker:suggestion:formatBlock','backward','track-changes-adapter-already-set','consumable','insert','_checkSuggestionCorrectness','trackChanges.mergeNestedSuggestions','getAllAdjacentSuggestions','_createSuggestion','ck-suggestion-marker-','isInContent','values','_findSuggestions','subType','formatInline:discard','sort','_updateSuggestionData','high','_handleNewSuggestionMarker','deletion:','createPositionAfter','change:activeMarkers','fire','low','clear','getUser','rethrowUnexpectedError','init','discardSelectedSuggestions','start','trackChanges','clone','registerPostFixer','containsRange','fromCharCode','suggestion-type','getWalker','getFirstMarker','data-suggestion','formatInline:join','dataReady','createPositionBefore','_setSuggestionRange','setTo','_getExternalAuthor','markInlineFormat','PendingActions','previous','tablePasteChainId','rejected','getFirstRange','change:data','_splitMarkerName','change','_isForcedDefaultExecutionBlock','ck-suggestion-marker','getMarkers','setAttribute','keys','from','_onDiscard','getChangedMarkers','refresh','deleteContent','getAttribute','widget','then','getCommentThread','acceptSuggestion','remove','authoredAt','has','name','detach','creator','addCommentThread','formatInline:','suggestion','getRanges','isObject','forceDefaultExecution','getCustomProperty','isAtEnd','value','acceptSelectedSuggestions','getDifference','return','change:_saved','model','track-changes-suggestion-not-found','_joinWithAdjacentSuggestions','isLocal','buildSuggestion','insertion','author','Users','hasCommentThread','isMultiRange','_refreshSuggestionsChain','enqueueChange','markers','_addThreadToSuggestion','_breakSuggestionMarker','never','join','suggestion:','batch','toViewElement','some','_suggestions','_saved','markerReady','formatBlock:chain','discard','createRange','newRange','TrackChangesEditing','_cutOutSuggestionMarker','originalSuggestionId','options','group','attributes','deletion','notReady','targetPosition','markMultiRangeBlockFormat','reconvertMarker','add','_suggestionState','addSuggestionData','updateSuggestion','markerToHighlight','ck-suggestion-marker--active','map','track-changes-adapter-missing-getsuggestion','commandName','conversion','addComment','trackChanges.trackFormatChanges','track-changes-suggestion-data-mismatch','getSuggestions','every','getMultiRangeId','oldRange','element','collaboration.channelId','type','insertion:accept','isOwn','insertion:','PENDING_ACTION_SUGGESTION','position','commands','_getSuggestionData','howMany','enableCommand','_commentsRepository','differ','isTouching'];(function(_0x55391f,_0xdcc330){const _0x416104=function(_0x2740f7){while(--_0x2740f7){_0x55391f['push'](_0x55391f['shift']());}};_0x416104(++_0xdcc330);}(_0xdcc3,0x1ca));const _0x4161=function(_0x55391f,_0xdcc330){_0x55391f=_0x55391f-0x0;let _0x416104=_0xdcc3[_0x55391f];return _0x416104;};import{Plugin as _0x20167f,PendingActions as _0x3d11aa}from'ckeditor5/src/core';import{LiveRange as _0x4ccb35}from'ckeditor5/src/engine';import{CKEditorError as _0x5390d2,uid as _0x49c084,priorities as _0x424fa5,logWarning as _0x49c023}from'ckeditor5/src/utils';import{toWidget as _0x2fe915}from'ckeditor5/src/widget';import{Users as _0x5fce97,hashObject as _0x83290}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d8012 from'./commands/trackchangescommand';import _0x104a5f from'./commands/acceptsuggestioncommand';import _0x4900c1 from'./commands/discardsuggestioncommand';import _0x1e0e73 from'./commands/executeonallsuggestionscommand';import _0x3fca38 from'./commands/executeonselectedsuggestionscommand';import _0x2170bb from'./suggestion';import _0x4cafc3 from'./suggestiondescriptionfactory';import _0x303041 from'./integrations/alignment';import _0x110021 from'./integrations/basicstyles';import _0x373cb5 from'./integrations/blockquote';import _0x58b447 from'./integrations/ckbox';import _0x4dc4ca from'./integrations/codeblock';import _0x57e912 from'./integrations/comments';import _0x3d84c4 from'./integrations/deletecommand';import _0x79e707 from'./integrations/documentlist';import _0x1d81c7 from'./integrations/entercommand';import _0x58f298 from'./integrations/findandreplace';import _0x518907 from'./integrations/font';import _0x58160a from'./integrations/formatpainter';import _0xd2c99f from'./integrations/heading';import _0x264ca0 from'./integrations/highlight';import _0x147423 from'./integrations/horizontalline';import _0xb3c3 from'./integrations/htmlembed';import _0x2a9952 from'./integrations/image';import _0x10084a from'./integrations/imagereplace';import _0x406938 from'./integrations/importword';import _0x17a5ee from'./integrations/indent';import _0x4d6db8 from'./integrations/inputcommand';import _0x4ae8ab from'./integrations/link';import _0x387b98 from'./integrations/list';import _0x114a07 from'./integrations/listproperties';import _0x417796 from'./integrations/mediaembed';import _0x57d13f from'./integrations/mention';import _0x36cb7f from'./integrations/pagebreak';import _0x527478 from'./integrations/paragraph';import _0x3b7baf from'./integrations/removeformat';import _0x4da776 from'./integrations/restrictededitingmode';import _0x5eed93 from'./integrations/shiftentercommand';import _0x25873a from'./integrations/standardeditingmode';import _0x235382 from'./integrations/style';import _0xd2b818 from'./integrations/table';import _0x3f3440 from'./integrations/tablemergesplit';import _0x554f64 from'./integrations/tableheadings';import _0x24eee0 from'./integrations/tableclipboard';import _0x12eeb1 from'./integrations/tablecolumnresize';import _0x50d505 from'./integrations/template';import _0x928ab5 from'./integrations/tableofcontents';import _0x5ed136 from'./integrations/title';import _0x59c567 from'./integrations/undo';import{getTranslation as _0x2b96c0}from'./utils/common-translations';import _0x48a813 from'./integrations/tablecaption';import _0x11fa43 from'./integrations/documentlistproperties';import _0x1d9118 from'./integrations/tableproperties';import{isEqual as _0xca6935}from'lodash-es';export default class p extends _0x20167f{static get[_0x4161('0x107')](){return['CommentsRepository',_0x5fce97,_0x3d11aa,_0x303041,_0x110021,_0x373cb5,_0x58b447,_0x4dc4ca,_0x57e912,_0x3d84c4,_0x79e707,_0x11fa43,_0x1d81c7,_0x58f298,_0x518907,_0x58160a,_0xd2c99f,_0x264ca0,_0x147423,_0xb3c3,_0x2a9952,_0x10084a,_0x406938,_0x17a5ee,_0x4d6db8,_0x4ae8ab,_0x387b98,_0x114a07,_0x417796,_0x57d13f,_0x36cb7f,_0x527478,_0x3b7baf,_0x4da776,_0x5eed93,_0x25873a,_0x235382,_0xd2b818,_0x3f3440,_0x554f64,_0x48a813,_0x24eee0,_0x12eeb1,_0x928ab5,_0x1d9118,_0x50d505,_0x5ed136,_0x59c567];}static get[_0x4161('0xd')](){return _0x4161('0x8f');}constructor(_0x54d978){function _0x3fc20a(_0x3303dd){return _0x3303dd['map'](_0xae212c=>String[_0x4161('0x3d')](_0xae212c))['join']('');}super(_0x54d978),this[_0x4161('0xc3')]('activeMarkers',[]),this['on'](_0x4161('0x30'),(_0x339cda,_0x5f16fa,_0xbdb84f,_0x28f960)=>{this[_0x4161('0x106')]['change'](()=>{for(const _0x18942b of[..._0x28f960,..._0xbdb84f])this[_0x4161('0x106')][_0x4161('0x7f')][_0x4161('0x62')](_0x18942b)&&_0x54d978['editing'][_0x4161('0x99')](_0x18942b);});}),this[_0x4161('0xef')]=new _0x4cafc3(this[_0x4161('0x133')][_0x4161('0x73')][_0x4161('0xe8')],this[_0x4161('0x133')][_0x4161('0x10f')]),this['_adapter']=null,this[_0x4161('0xda')]=new Dt(this['editor']),this[_0x4161('0x88')]=new Map(),this[_0x4161('0xb7')]=_0x54d978[_0x4161('0xc1')]['get'](_0x4161('0xc9')),this[_0x4161('0xdb')]=new Set(),this[_0x4161('0x106')]=this['editor'][_0x4161('0x73')],this[_0x4161('0x9b')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x54d978[_0x4161('0x126')][_0x4161('0xbf')](_0x4161('0xa5'),_0x4161('0x11d')),this[_0x4161('0x114')]=_0x54d978[_0x4161('0x126')][_0x4161('0x112')](_0x4161('0xa5')),_0x54d978[_0x4161('0x126')][_0x4161('0xbf')](_0x4161('0x21'),!0x0),this['_mergeNestedSuggestions']=_0x54d978[_0x4161('0x126')][_0x4161('0x112')](_0x4161('0x21')),this[_0x4161('0xf7')]=new _0x2d8012(_0x54d978,this[_0x4161('0xdb')]),this[_0x3fc20a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3fc20a([0x34,0x30,0x34,0x36,0x31,0x38,0x31,0x38]);}[_0x4161('0x36')](){const _0x419a95=this['editor'];_0x419a95['conversion'][_0x4161('0xdd')](_0x4161('0x9'))[_0x4161('0x9e')]({'model':_0x4161('0x68'),'view':_0x1e25d7=>{const {id:_0x6dc2e9,type:_0x44b6d7}=this[_0x4161('0x4f')](_0x1e25d7[_0x4161('0xf9')]),_0x5dc289=[_0x4161('0x52'),_0x4161('0x24')+_0x44b6d7];let _0x14b992=0xbb8;return this['activeMarkers'][_0x4161('0x16')](_0x1e25d7[_0x4161('0xf9')])&&(_0x5dc289[_0x4161('0xea')](_0x4161('0x9f')),_0x14b992=0xbc2),_0x4161('0x95')==_0x44b6d7&&(_0x14b992+=0x5),{'classes':_0x5dc289,'attributes':{'data-suggestion':_0x6dc2e9},'priority':_0x14b992};}}),_0x419a95['conversion'][_0x4161('0xdd')](_0x4161('0x13f'))[_0x4161('0x9a')](_0xa9b84a=>{_0xa9b84a['on'](_0x4161('0x7'),(_0x3b3f5b,_0x41f73e,_0x3f16a2)=>{if(!_0x3f16a2[_0x4161('0x92')][_0x4161('0xbd')])return;const _0x57aa6d=_0x41f73e[_0x4161('0x19')];if(!_0x57aa6d)return;const _0x451714=_0x3f16a2['mapper'][_0x4161('0x86')](_0x57aa6d);_0x419a95[_0x4161('0x73')][_0x4161('0xe8')][_0x4161('0x6a')](_0x57aa6d)&&_0x451714&&!_0x451714['getCustomProperty'](_0x4161('0x5c'))&&_0x451714['is'](_0x4161('0x13'))&&_0x2fe915(_0x451714,_0x3f16a2[_0x4161('0xe')]);},{'priority':_0x4161('0x2c')});}),_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')](_0x4161('0x13f'))[_0x4161('0x9e')]({'model':_0x4161('0x68'),'view':(_0x4253bc,_0xd1ebf8)=>{if(!_0xd1ebf8[_0x4161('0x92')][_0x4161('0xbd')])return null;const {type:_0x108fa6}=this[_0x4161('0x4f')](_0x4253bc['markerName']);return{'classes':[_0x4161('0x52'),_0x4161('0x24')+_0x108fa6],'priority':0xbb8};}});const _0x4aead5=({showActiveMarkers:_0x10f52a=!0x0}={})=>(_0x463f97,_0x3e9378,_0x47b195)=>{if(!_0x3e9378[_0x4161('0x19')])return;if(_0x3e9378[_0x4161('0x19')]['is']('selection'))return void _0x47b195[_0x4161('0x1e')][_0x4161('0x130')](_0x3e9378[_0x4161('0x19')],_0x463f97[_0x4161('0x63')]);const _0x492398=_0x47b195[_0x4161('0xc6')][_0x4161('0x86')](_0x3e9378[_0x4161('0x19')]);if(!(_0x3e9378[_0x4161('0x19')]['is'](_0x4161('0xab'))&&_0x419a95['model'][_0x4161('0xe8')][_0x4161('0x10c')](_0x3e9378[_0x4161('0x19')])&&!_0x492398['getCustomProperty']('addHighlight')))return;const {id:_0xb30354}=this[_0x4161('0x4f')](_0x3e9378[_0x4161('0xf9')]);_0x47b195[_0x4161('0xe')][_0x4161('0xff')]([_0x4161('0x52'),'ck-suggestion-marker-formatBlock'],_0x492398),_0x47b195[_0x4161('0xe')][_0x4161('0x54')]('data-suggestion',_0xb30354,_0x492398),_0x47b195[_0x4161('0xc6')][_0x4161('0xde')](_0x492398,_0x3e9378[_0x4161('0xf9')]),_0x10f52a&&(this['activeMarkers'][_0x4161('0x16')](_0x3e9378['markerName'])?_0x47b195[_0x4161('0xe')][_0x4161('0xff')]('ck-suggestion-marker--active',_0x492398):_0x47b195[_0x4161('0xe')]['removeClass'](_0x4161('0x9f'),_0x492398));for(const _0x512119 of _0x419a95[_0x4161('0x73')]['createRangeIn'](_0x3e9378[_0x4161('0x19')])[_0x4161('0x117')]())_0x47b195[_0x4161('0x1e')][_0x4161('0x130')](_0x512119,_0x463f97[_0x4161('0x63')]);_0x47b195['consumable'][_0x4161('0x130')](_0x3e9378['item'],_0x463f97[_0x4161('0x63')]);};_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')](_0x4161('0x13f'))['add'](_0x3e6a25=>{_0x3e6a25['on']('addMarker:suggestion:formatBlock',(_0x1e9a80,_0x68e4d2,_0x4c851a)=>{_0x4c851a[_0x4161('0x92')]['showSuggestionHighlights']&&_0x4aead5({'showActiveMarkers':!0x1})(_0x1e9a80,_0x68e4d2,_0x4c851a);},{'priority':_0x4161('0x13d')});}),_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')](_0x4161('0x13f'))['markerToData']({'model':_0x4161('0x68'),'view':(_0x2b7eb5,_0x30b1f6)=>_0x30b1f6[_0x4161('0x92')][_0x4161('0xbd')]?null:{'group':_0x4161('0x68'),'name':_0x2b7eb5['substr'](0xb)}}),_0x419a95['conversion']['for']('upcast')[_0x4161('0xf3')]({'view':{'name':_0x4161('0x68'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x29e30e,{writer:_0x14bf8d})=>{let _0x362dd1=_0x4161('0x84')+_0x29e30e[_0x4161('0x5b')](_0x4161('0x3e'))+':'+_0x29e30e[_0x4161('0x5b')]('id');return _0x29e30e[_0x4161('0x5b')](_0x4161('0xb'))&&(_0x362dd1+=':'+_0x29e30e[_0x4161('0x5b')](_0x4161('0xb'))),_0x14bf8d['createElement']('$marker',{'data-name':_0x362dd1});}}),_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')]('upcast')[_0x4161('0x2')]({'view':_0x4161('0x68')}),_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')]('editingDowncast')[_0x4161('0x9a')](_0x3166b4=>{_0x3166b4['on'](_0x4161('0x1b'),_0x4aead5(),{'priority':_0x4161('0x2c')});}),_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')]('editingDowncast')['add'](_0x1eb8a2=>{_0x1eb8a2['on'](_0x4161('0x13e'),(_0xd1cc11,_0x286dae,_0x2db1cf)=>{const _0x379f57=_0x2db1cf['mapper']['markerNameToElements'](_0x286dae[_0x4161('0xf9')]);if(_0x379f57)for(const _0x33f0e2 of _0x379f57)_0x33f0e2[_0x4161('0x6c')]('addHighlight')||(_0x2db1cf[_0x4161('0xe')][_0x4161('0xcf')]([_0x4161('0x52'),_0x4161('0xf1'),_0x4161('0x9f')],_0x33f0e2),_0x2db1cf['writer'][_0x4161('0xf6')](_0x4161('0x41'),_0x33f0e2),_0x2db1cf[_0x4161('0xc6')][_0x4161('0xbb')](_0x33f0e2,_0x286dae[_0x4161('0xf9')]));},{'priority':'high'});}),_0x419a95[_0x4161('0x73')][_0x4161('0x120')][_0x4161('0x3b')](_0x25b72e=>{let _0x1b465c=!0x1;const _0x108277=Array[_0x4161('0x56')](_0x419a95[_0x4161('0x73')][_0x4161('0x120')][_0x4161('0xb8')][_0x4161('0x58')]()),_0x2ae46d=new Set();for(const {name:_0x4c0787,data:_0x56ad65}of _0x108277){const {group:_0x513782,type:_0x450a08,id:_0x21cf2c}=this[_0x4161('0x4f')](_0x4c0787);if(_0x4161('0x68')!==_0x513782)continue;const _0x42ec1=this[_0x4161('0x88')][_0x4161('0x112')](_0x21cf2c);if(null!=_0x56ad65[_0x4161('0x8e')]){'formatInline'==_0x450a08&&(_0x1b465c=_0x1b465c||Mt(_0x56ad65[_0x4161('0x8e')],_0x4c0787,_0x25b72e,_0x419a95[_0x4161('0x73')]['schema']));if(_0x56ad65[_0x4161('0x8e')][_0x4161('0x134')]||'$graveyard'==_0x56ad65[_0x4161('0x8e')][_0x4161('0x137')]['rootName']||_0x4161('0xe6')==_0x450a08&&!Nt(_0x56ad65[_0x4161('0x8e')])||_0x4161('0x95')==_0x450a08&&!(!_t(_0x4b6c81=_0x56ad65[_0x4161('0x8e')])&&!function(_0x5d3915){return _0x5d3915[_0x4161('0x38')][_0x4161('0x6')]==_0x5d3915[_0x4161('0x1a')][_0x4161('0xf2')]&&_0x5d3915[_0x4161('0x38')][_0x4161('0x6d')];}(_0x4b6c81)))_0x25b72e[_0x4161('0xe0')](_0x4c0787),_0x1b465c=!0x0;else{if(!_0x42ec1||!_0x42ec1[_0x4161('0x25')])continue;_0x2ae46d[_0x4161('0x9a')](_0x42ec1);}}}var _0x4b6c81;return _0x2ae46d[_0x4161('0x12b')]>0x0&&(_0x1b465c=!!this[_0x4161('0x75')](_0x2ae46d)||_0x1b465c),_0x1b465c;}),_0x419a95[_0x4161('0x73')][_0x4161('0x120')][_0x4161('0x3b')](_0x1c9ea4=>{let _0x2ddefe=!0x1;for(const _0x4db4a4 of _0x419a95[_0x4161('0x73')]['document']['differ']['getChanges']()){if(_0x4161('0x1f')!=_0x4db4a4[_0x4161('0xad')])continue;const _0xc01740=_0x4db4a4[_0x4161('0xb2')][_0x4161('0x10b')](_0x4db4a4['length']);if(_0xc01740[_0x4161('0x6d')])for(const _0xa7aa4c of this[_0x4161('0x88')][_0x4161('0x26')]()){if(_0xa7aa4c[_0x4161('0x7c')]||!_0xa7aa4c[_0x4161('0x25')])continue;if(_0x4161('0xe6')!=_0xa7aa4c['type'])continue;const _0x5affe7=_0xa7aa4c[_0x4161('0x4d')]();if(_0x5affe7[_0x4161('0x38')]['parent']!=_0x5affe7[_0x4161('0x1a')][_0x4161('0x6')]&&_0x5affe7[_0x4161('0x1a')]['isEqual'](_0x4db4a4[_0x4161('0xb2')])){const _0x2386a9=_0x419a95['model'][_0x4161('0x8d')](_0x5affe7[_0x4161('0x38')],_0xc01740);_0x1c9ea4[_0x4161('0x123')](_0xa7aa4c[_0x4161('0x40')](),{'range':_0x2386a9}),_0x2ddefe=!0x0;}}}return _0x2ddefe;}),_0x419a95[_0x4161('0x73')]['markers']['on']('update:suggestion',(_0x5ec32f,_0x5a4f1b,_0x16db06)=>{if(null==_0x16db06){const {id:_0xa4074f}=this[_0x4161('0x4f')](_0x5a4f1b[_0x4161('0x63')]),_0x4e190f=this[_0x4161('0x88')][_0x4161('0x112')](_0xa4074f);_0x4e190f&&_0x4e190f[_0x4161('0x118')](_0x5a4f1b[_0x4161('0x63')]);}}),_0x419a95[_0x4161('0x73')]['document']['on'](_0x4161('0x4e'),()=>{const _0x2fc7a8=Array[_0x4161('0x56')](_0x419a95['model'][_0x4161('0x120')][_0x4161('0xb8')][_0x4161('0x58')]())[_0x4161('0xf0')](_0x4656b4=>_0x4161('0x68')===this[_0x4161('0x4f')](_0x4656b4[_0x4161('0x63')])[_0x4161('0x93')]);if(0x0===_0x2fc7a8[_0x4161('0xf5')])return;_0x2fc7a8['sort']((_0x1d703d,_0x59aafa)=>{const _0x5be2ac=_0x1d703d[_0x4161('0x100')][_0x4161('0xaa')],_0x42ad16=_0x59aafa[_0x4161('0x100')][_0x4161('0xaa')];return null===_0x5be2ac&&null===_0x42ad16?0x0:null===_0x5be2ac&&null!==_0x42ad16?-0x1:null!==_0x5be2ac&&null===_0x42ad16?0x1:_0x5be2ac[_0x4161('0x38')][_0x4161('0x128')](_0x42ad16['start'])?-0x1:0x1;});const _0x834438=new Set(),_0x2cf5b1=new Set();for(const {name:_0xd95382,data:_0x136c2e}of _0x2fc7a8){const {id:_0x22a2d8}=this[_0x4161('0x4f')](_0xd95382);if(null===_0x136c2e['oldRange']){const _0x421cdf=this[_0x4161('0x2d')](_0xd95382);_0x2cf5b1[_0x4161('0x9a')](_0x421cdf);}else{const _0x30c0fb=this[_0x4161('0x88')][_0x4161('0x112')](_0x22a2d8);null!==_0x136c2e[_0x4161('0x8e')]||_0x30c0fb['isInContent']?(_0x834438[_0x4161('0x9a')](_0x30c0fb[_0x4161('0xd8')]),_0x2cf5b1[_0x4161('0x9a')](_0x30c0fb)):this[_0x4161('0xdf')](_0x30c0fb);}}_0x2cf5b1[_0x4161('0x12b')]>0x0&&this[_0x4161('0x7d')](_0x2cf5b1);for(const _0xf2767 of _0x834438)this[_0x4161('0x31')](_0x4161('0xce'),_0xf2767);}),_0x419a95['model']['on']('applyOperation',(_0x558e20,_0x5ec7ab)=>{const _0x5eb3ce=_0x5ec7ab[0x0];if(!this['_suggestions'][_0x4161('0x12b')])return;if(!_0x5eb3ce[_0x4161('0xd2')])return;if(_0x5eb3ce[_0x4161('0x85')][_0x4161('0x11e')]||!_0x5eb3ce[_0x4161('0x85')][_0x4161('0x76')])return;let _0x10c520,_0x50dbda;switch(_0x5eb3ce[_0x4161('0xad')]){case _0x4161('0x1f'):_0x10c520=_0x419a95[_0x4161('0x73')]['createPositionAt'](_0x5eb3ce[_0x4161('0xb2')]),_0x50dbda=_0x10c520[_0x4161('0x10b')](_0x5eb3ce[_0x4161('0xb5')]);break;case _0x4161('0xc2'):_0x10c520=_0x419a95[_0x4161('0x73')][_0x4161('0xd4')](_0x5eb3ce[_0x4161('0xe9')]),_0x50dbda=_0x419a95['model']['createPositionAt'](_0x5eb3ce[_0x4161('0xcd')]);break;case'move':_0x10c520=_0x419a95['model']['createPositionAt'](_0x5eb3ce[_0x4161('0x97')]),_0x50dbda=_0x10c520[_0x4161('0x10b')](_0x5eb3ce[_0x4161('0xb5')]);break;default:return;}const _0xcad334=_0x419a95[_0x4161('0x73')][_0x4161('0x8d')](_0x10c520,_0x50dbda);_0x419a95[_0x4161('0x73')][_0x4161('0x50')](()=>{for(const {suggestion:_0x1eeb2d,meta:_0x4708d4}of this['_findSuggestions'](_0xcad334)){if(_0x1eeb2d[_0x4161('0x7c')])continue;if(_0x4161('0xbc')==_0x1eeb2d[_0x4161('0xad')])continue;const _0x312289=_0x1eeb2d['data']&&_0x1eeb2d[_0x4161('0x100')][_0x4161('0x124')];(_0x4161('0xe6')!=_0x1eeb2d[_0x4161('0xad')]||'split'==_0x5eb3ce[_0x4161('0xad')]&&!_0x312289)&&(_0x4708d4[_0x4161('0xf4')]||_0x4161('0x78')==_0x1eeb2d['type']&&_0x4708d4[_0x4161('0xaf')]||_0x1eeb2d[_0x4161('0x4d')]()['containsRange'](_0xcad334)&&this[_0x4161('0x81')](_0x1eeb2d,_0x10c520,_0x50dbda));}});},{'priority':'lowest'}),_0x419a95[_0x4161('0x73')]['on'](_0x4161('0x5a'),(_0x5eade6,_0x360ed4)=>{const _0x337c10=_0x360ed4[0x0],_0x3d2813=_0x360ed4[0x1];if(_0x3d2813&&_0x3d2813['forceDefaultExecution'])return;if(this[_0x4161('0x51')])return;if(!this[_0x4161('0xf7')][_0x4161('0x6e')])return;if(_0x337c10[_0x4161('0x134')])return;const _0x2fd49f=_0x419a95[_0x4161('0x73')][_0x4161('0xe8')],{start:_0x4b052b,end:_0x16e7f8}=_0x337c10[_0x4161('0x4d')](),_0x414bea=_0x4b052b['nodeAfter']&&_0x2fd49f[_0x4161('0x138')](_0x4b052b[_0x4161('0xd7')])?null:_0x2fd49f[_0x4161('0x5')](_0x4b052b,_0x4161('0x131')),_0x58bdad=_0x16e7f8['nodeBefore']&&_0x2fd49f[_0x4161('0x138')](_0x16e7f8[_0x4161('0xf2')])?null:_0x2fd49f['getNearestSelectionRange'](_0x16e7f8,_0x4161('0x1c')),_0x4465fe=_0x419a95['model'][_0x4161('0x8d')](_0x414bea?_0x414bea['start']:_0x4b052b,_0x58bdad?_0x58bdad[_0x4161('0x1a')]:_0x16e7f8);_0x419a95[_0x4161('0x73')][_0x4161('0x50')](_0x47ef33=>{this[_0x4161('0x109')](_0x4465fe);const _0x4d34b2=_0x419a95[_0x4161('0x73')]['schema'][_0x4161('0x5')](_0x4465fe[_0x4161('0x38')]);_0x337c10['is'](_0x4161('0xee'))?_0x47ef33[_0x4161('0x13c')](_0x4d34b2):_0x337c10[_0x4161('0x46')](_0x4d34b2);}),_0x5eade6[_0x4161('0x1')]();},{'priority':_0x424fa5['normal']+0xa}),_0x419a95[_0x4161('0x73')]['on'](_0x4161('0x13b'),(_0x52801f,_0x40e787)=>{const _0x2b0a70=_0x40e787[_0x40e787[_0x4161('0xf5')]-0x1];_0x2b0a70&&_0x2b0a70[_0x4161('0x6b')]||this[_0x4161('0x51')]||this[_0x4161('0xf7')]['value']&&(_0x419a95[_0x4161('0x73')][_0x4161('0x50')](()=>{let _0x445993=_0x419a95[_0x4161('0x73')][_0x4161('0x13b')](_0x40e787[0x0],_0x40e787[0x1],_0x40e787[0x2],{'forceDefaultExecution':!0x0});if(!_0x445993)return;_0x52801f[_0x4161('0x71')]=_0x445993[_0x4161('0x3a')]();const _0x5b7bae=_0x445993[_0x4161('0x1a')][_0x4161('0xf2')],_0xc4434a=_0x419a95['model'][_0x4161('0xe8')];_0x5b7bae&&_0xc4434a['isBlock'](_0x5b7bae)&&!_0xc4434a[_0x4161('0x6a')](_0x5b7bae)&&(_0x445993=_0x419a95[_0x4161('0x73')][_0x4161('0x8d')](_0x445993[_0x4161('0x38')],_0x419a95[_0x4161('0x73')][_0x4161('0xd4')](_0x5b7bae,_0x4161('0x1a')))),this[_0x4161('0x119')](_0x445993);}),_0x52801f[_0x4161('0x1')]());},{'priority':_0x4161('0x2c')}),this[_0x4161('0x133')][_0x4161('0xb3')][_0x4161('0x9a')](_0x4161('0x39'),this[_0x4161('0xf7')]),this[_0x4161('0xb6')](_0x4161('0x39'));const _0x4025b7=new _0x104a5f(_0x419a95,this[_0x4161('0x88')]);_0x419a95[_0x4161('0xb3')]['add'](_0x4161('0x5f'),_0x4025b7),this[_0x4161('0xb6')](_0x4161('0x5f'));const _0x29b5d0=new _0x4900c1(_0x419a95,this[_0x4161('0x88')]);_0x419a95[_0x4161('0xb3')][_0x4161('0x9a')](_0x4161('0xe4'),_0x29b5d0),this[_0x4161('0xb6')]('discardSuggestion'),_0x419a95[_0x4161('0xb3')][_0x4161('0x9a')](_0x4161('0x141'),new _0x1e0e73(_0x419a95,_0x4025b7,this[_0x4161('0x88')])),this[_0x4161('0xb6')](_0x4161('0x141')),_0x419a95['commands'][_0x4161('0x9a')](_0x4161('0xfd'),new _0x1e0e73(_0x419a95,_0x29b5d0,this[_0x4161('0x88')])),this['enableCommand'](_0x4161('0xfd')),_0x419a95['commands'][_0x4161('0x9a')](_0x4161('0x6f'),new _0x3fca38(_0x419a95,_0x4025b7,this[_0x4161('0x88')])),this[_0x4161('0xb6')](_0x4161('0x6f')),_0x419a95['commands'][_0x4161('0x9a')]('discardSelectedSuggestions',new _0x3fca38(_0x419a95,_0x29b5d0,this[_0x4161('0x88')])),this['enableCommand'](_0x4161('0x37'));const _0x511152=_0x419a95[_0x4161('0xc1')][_0x4161('0x112')](_0x4161('0xc9'));this[_0x4161('0x11')](_0x511152,_0x4161('0xa4'),(_0x2f85b2,{threadId:_0x11d70b})=>{const _0x545bb7=this[_0x4161('0x88')]['get'](_0x11d70b);_0x545bb7&&_0x545bb7[_0x4161('0x12')]&&0x1===_0x545bb7[_0x4161('0x12')][_0x4161('0xf5')]&&this[_0x4161('0x2b')](_0x11d70b,{'hasComments':!0x0});},{'priority':_0x4161('0x32')}),this[_0x4161('0x11')](_0x511152,_0x4161('0x14'),(_0x3e6bdb,{threadId:_0x360004})=>{const _0x4ee261=this[_0x4161('0x88')][_0x4161('0x112')](_0x360004);_0x4ee261&&_0x4ee261[_0x4161('0x12')]&&!_0x4ee261[_0x4161('0x12')][_0x4161('0xf5')]&&this[_0x4161('0x2b')](_0x360004,{'hasComments':!0x1});},{'priority':'low'});}set[_0x4161('0x125')](_0x397cf9){if(this[_0x4161('0x0')])throw new _0x5390d2(_0x4161('0x1d'),this);this[_0x4161('0x0')]=_0x397cf9;}get[_0x4161('0x125')](){return this[_0x4161('0x0')];}[_0x4161('0xa7')]({skipNotAttached:_0x292e95=!0x1,toJSON:_0x5b809a=!0x1}={}){const _0x3e984d=[];for(const _0x464210 of this['_suggestions'][_0x4161('0x26')]())_0x292e95&&!_0x464210['isInContent']||_0x3e984d[_0x4161('0xea')](_0x464210);return _0x5b809a?_0x3e984d['map'](_0x12a50b=>_0x12a50b[_0x4161('0xdc')]()):_0x3e984d;}[_0x4161('0xc5')](_0x1cfa65){const _0x366a92=this[_0x4161('0x88')]['get'](_0x1cfa65);if(!_0x366a92)throw new _0x5390d2(_0x4161('0x74'),this);return _0x366a92;}['hasSuggestion'](_0x4c89cb){return this[_0x4161('0x88')][_0x4161('0x62')](_0x4c89cb);}['addSuggestionData'](_0x3e083b){const {authorId:_0x205c37,id:_0x50abab,attributes:_0x3a181b}=_0x3e083b,[_0x5ab9d4,_0x84e118]=_0x3e083b[_0x4161('0xad')][_0x4161('0xc2')](':'),_0x163fae=this[_0x4161('0x88')][_0x4161('0x112')](_0x50abab)||this[_0x4161('0x23')](_0x5ab9d4,_0x84e118,_0x50abab,_0x205c37,_0x3a181b);if(this[_0x4161('0x80')](_0x163fae),this[_0x4161('0x20')](_0x163fae,_0x5ab9d4,_0x84e118||null,_0x205c37),_0x163fae[_0x4161('0x104')]=_0x3e083b[_0x4161('0x104')],_0x163fae[_0x4161('0xd5')]=!0x0,_0x3a181b&&_0x3a181b[_0x4161('0x132')]){const _0x47a435=_0x3a181b[_0x4161('0x132')],_0x5c113a=this[_0x4161('0x47')](_0x47a435[_0x4161('0xbe')]);_0x163fae[_0x4161('0x61')]=_0x47a435['createdAt'],_0x163fae[_0x4161('0x79')]=_0x5c113a,_0x163fae[_0x4161('0x12f')]=!0x0;}else _0x163fae[_0x4161('0x61')]=_0x3e083b['createdAt'];switch(_0x3e083b['data']&&(_0x163fae['data']=_0x3e083b[_0x4161('0x100')]),_0x3e083b['attributes']&&(_0x163fae['attributes']=_0x3e083b[_0x4161('0x94')]),this['_adapter']&&this[_0x4161('0x0')][_0x4161('0x11b')]||(_0x163fae[_0x4161('0x89')]=!0x0),this[_0x4161('0x9b')][_0x4161('0x112')](_0x163fae)){case'notReady':this[_0x4161('0x9b')][_0x4161('0xc3')](_0x163fae,_0x4161('0x43'));break;case'markerReady':_0x163fae[_0x4161('0x25')]?(this[_0x4161('0x7d')](new Set([_0x163fae])),this[_0x4161('0x75')](new Set([_0x163fae])),this[_0x4161('0x9b')][_0x4161('0xc3')](_0x163fae,'ready'),this[_0x4161('0x31')](_0x4161('0xa'),_0x163fae)):this['_suggestionState'][_0x4161('0xc3')](_0x163fae,_0x4161('0x115'));}return _0x163fae;}[_0x4161('0x5f')](_0x30eef4){this[_0x4161('0x6b')](()=>{this[_0x4161('0x133')]['model']['change'](()=>{for(const _0x28f1e7 of _0x30eef4['getAllAdjacentSuggestions']())_0x28f1e7[_0x4161('0x136')]();});});}[_0x4161('0xe4')](_0x1b98d7){this[_0x4161('0x6b')](()=>{this[_0x4161('0x133')][_0x4161('0x73')][_0x4161('0x50')](()=>{for(const _0x48d61b of _0x1b98d7[_0x4161('0x22')]())_0x48d61b[_0x4161('0x8c')]();});});}[_0x4161('0xb6')](_0x488ea6,_0xb5086){const _0x4fc1cf=this[_0x4161('0x133')]['commands']['get'](_0x488ea6);if(!_0x4fc1cf)throw new _0x5390d2('track-changes-command-not-found',this,{'commandName':_0x488ea6});this[_0x4161('0xdb')][_0x4161('0x9a')](_0x4fc1cf),_0xb5086&&_0x4fc1cf['on'](_0x4161('0x102'),(_0x4ca582,_0x1c5102)=>{this[_0x4161('0xf7')]['value']&&(this[_0x4161('0x51')]||_0x1c5102['length']>0x0&&_0x1c5102[_0x1c5102['length']-0x1]&&_0x1c5102[_0x1c5102[_0x4161('0xf5')]-0x1][_0x4161('0x6b')]||(_0xb5086((..._0x4fb796)=>_0x4fc1cf['execute'](..._0x4fb796,{'forceDefaultExecution':!0x0}),..._0x1c5102),_0x4ca582[_0x4161('0x1')]()));},{'priority':_0x4161('0x2c')});}[_0x4161('0x6b')](_0x22848f){let _0x3d093b,_0x3bcd34;const _0x4044c2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3d093b=_0x22848f();}catch(_0x49cbb8){_0x3bcd34=_0x49cbb8;}return _0x4044c2||(this[_0x4161('0x51')]=!0x1),_0x3bcd34&&_0x5390d2[_0x4161('0x35')](_0x3bcd34,this),_0x3d093b;}[_0x4161('0x119')](_0x3c3e29,_0x32827c=null,_0x133cd3={}){if(_0x3c3e29[_0x4161('0x134')])return null;const _0x3ed5f1=this['editor'][_0x4161('0xc1')]['get'](_0x4161('0x7a'))['me'];for(const {suggestion:_0x47d6b4,meta:_0xd2b2fa}of this['_findSuggestions'](_0x3c3e29,_0x4161('0x78')))if(_0xd2b2fa[_0x4161('0xaf')]){if(!_0xd2b2fa['isNextTo']){if(_0xd2b2fa['containsRangeInObject']){if(!this[_0x4161('0xd1')]||!Ut(_0x47d6b4,_0x133cd3))continue;return _0x47d6b4;}if(Ut(_0x47d6b4,_0x133cd3))return _0x47d6b4;this[_0x4161('0x81')](_0x47d6b4,_0x3c3e29[_0x4161('0x38')],_0x3c3e29[_0x4161('0x1a')]);break;}if(_0x32827c==_0x47d6b4['subType']&&Ut(_0x47d6b4,_0x133cd3)){const _0xbb046c=_0x47d6b4['getFirstRange']();return _0xbb046c[_0x4161('0x38')][_0x4161('0xe3')](_0x3c3e29['end'])?this[_0x4161('0x45')](_0x47d6b4,this[_0x4161('0x106')][_0x4161('0x8d')](_0x3c3e29[_0x4161('0x38')],_0xbb046c[_0x4161('0x1a')])):this['_setSuggestionRange'](_0x47d6b4,this[_0x4161('0x106')][_0x4161('0x8d')](_0xbb046c[_0x4161('0x38')],_0x3c3e29[_0x4161('0x1a')])),_0x47d6b4;}}const _0x48e6df=_0x49c084(),_0x23ca8c=_0x3ed5f1['id'],_0x287fb0=_0x32827c?_0x4161('0xb0')+_0x32827c:_0x4161('0x78'),_0x1a2b4d=this[_0x4161('0xe5')]({'id':_0x48e6df,'type':_0x287fb0,'createdAt':new Date(),'authorId':_0x23ca8c,'attributes':_0x133cd3});return this[_0x4161('0x105')](_0x287fb0,_0x48e6df,_0x23ca8c,_0x3c3e29),_0x1a2b4d;}['markMultiRangeInsertion'](_0x49f0ba,_0x533993=_0x4161('0x111'),_0x536a3c={}){const _0x4109d8=this[_0x4161('0x133')][_0x4161('0xc1')][_0x4161('0x112')]('Users')['me'],_0xd2bab0=this[_0x4161('0xda')]['getSuggestionCallback'](_0x4161('0x78'),_0x533993,_0x4161('0x83'));for(const _0x4f4bb8 of this[_0x4161('0xa7')]())if(_0x4f4bb8['author']['id']==_0x4109d8['id']&&_0x4161('0x78')==_0x4f4bb8['type']&&_0x4f4bb8[_0x4161('0x28')]==_0x533993&&Ut(_0x4f4bb8,_0x536a3c)&&(_0xd2bab0(_0x4f4bb8['getRanges'](),_0x49f0ba)||_0xd2bab0(_0x49f0ba,_0x4f4bb8[_0x4161('0x69')]()))){for(const _0x281b1f of _0x49f0ba)_0x4f4bb8['addRange'](_0x281b1f);return _0x4f4bb8;}for(const {suggestion:_0x4bb771,meta:_0x5dad0c}of this[_0x4161('0x27')](_0x49f0ba,'insertion')){if(!_0x5dad0c[_0x4161('0xaf')])continue;if(!this[_0x4161('0xd1')]&&_0x5dad0c[_0x4161('0xf4')])continue;if(!Ut(_0x4bb771,_0x536a3c))continue;let _0x4ee2ab=!0x0;for(const _0x5be489 of _0x4bb771[_0x4161('0x69')]())for(const _0x12ed4b of _0x49f0ba)if(!_0x5be489[_0x4161('0x3c')](_0x12ed4b)){_0x4ee2ab=!0x1;break;}if(_0x4ee2ab)return _0x4bb771;}const _0x5cc17e=_0x49c084(),_0x54e557=_0x4109d8['id'],_0x14408a=_0x4161('0xb0')+_0x533993,_0x4563fb=this[_0x4161('0xe5')]({'id':_0x5cc17e,'type':_0x14408a,'createdAt':new Date(),'authorId':_0x54e557,'attributes':_0x536a3c});for(const _0x46bff6 of _0x49f0ba)this[_0x4161('0x105')](_0x14408a,_0x5cc17e,_0x54e557,_0x46bff6,_0x2170bb[_0x4161('0xa9')]());return _0x4563fb;}[_0x4161('0x48')](_0x4b38eb,_0x132eab,_0x187965=null,_0x3a6bad={}){if(_0x187965=_0x187965||$t(_0x132eab),_0x4b38eb['isCollapsed'])return null;if(_0x4161('0x82')===this[_0x4161('0x114')]){const _0x173153=this[_0x4161('0xda')][_0x4161('0xe1')](_0x4161('0xbc'),_0x187965,_0x4161('0x136'));return this[_0x4161('0x6b')](()=>_0x173153([_0x4b38eb],_0x132eab,_0x3a6bad)),null;}const _0x3dd88b=this[_0x4161('0x133')][_0x4161('0xc1')]['get'](_0x4161('0x7a'))['me'],_0x5ba4c7=[];if(_0x4161('0xcc')!==this[_0x4161('0x114')])for(const {suggestion:_0x5d431a,meta:_0x3d8895}of this[_0x4161('0x27')](_0x4b38eb,_0x4161('0x78')))_0x3d8895[_0x4161('0xaf')]&&!_0x3d8895[_0x4161('0xba')]&&_0x5ba4c7[_0x4161('0xea')](..._0x5d431a[_0x4161('0x69')]());const _0x4453fc=function(_0x22aefd,_0x35b3c6){const _0x3dace6=[];for(const _0x37bc2d of _0x35b3c6){const _0xcecc32=_0x22aefd[_0x4161('0x12d')](_0x37bc2d);_0xcecc32&&_0x3dace6[_0x4161('0xea')](_0xcecc32);}return _0x3dace6;}(_0x4b38eb,_0x5ba4c7),_0x4f3773=function(_0x5eb514,_0x118648){const _0x2df66e=[_0x5eb514];for(const _0xb12ffb of _0x118648){let _0x82b358=0x0;for(;_0x82b358<_0x2df66e[_0x4161('0xf5')];){const _0x32b41c=_0x2df66e[_0x82b358][_0x4161('0x70')](_0xb12ffb);_0x2df66e[_0x4161('0x12c')](_0x82b358,0x1,..._0x32b41c),_0x82b358+=_0x32b41c[_0x4161('0xf5')];}}return _0x2df66e;}(_0x4b38eb,_0x5ba4c7);_0x4453fc['length']&&this['_model'][_0x4161('0x50')](()=>{for(const _0x1f9b6a of _0x4453fc){const _0x407d2d=this[_0x4161('0xda')]['getSuggestionCallback'](_0x4161('0xbc'),_0x187965,_0x4161('0x136'));this[_0x4161('0x6b')](()=>_0x407d2d([_0x1f9b6a],_0x132eab,_0x3a6bad));}});for(const _0x4c91f7 of _0x4f3773){let _0x96d60b=null,_0x1e8396=_0x4c91f7[_0x4161('0x38')],_0x3256b9=_0x4c91f7[_0x4161('0x1a')];for(const {suggestion:_0x2f7e0a,meta:_0xfc3276}of this[_0x4161('0x27')](_0x4c91f7,_0x4161('0xbc'))){if(!_0xfc3276[_0x4161('0xaf')])continue;if(_0x2f7e0a['subType']!=_0x187965)continue;if(!Ut(_0x2f7e0a,_0x3a6bad))continue;const _0x312079=_0x2f7e0a[_0x4161('0x4d')]();if(_0x312079[_0x4161('0x3c')](_0x4c91f7,!0x0))return null;_0x1e8396=_0x1e8396[_0x4161('0x128')](_0x312079['start'])?_0x1e8396:_0x312079[_0x4161('0x38')],_0x3256b9=_0x3256b9[_0x4161('0x110')](_0x312079[_0x4161('0x1a')])?_0x3256b9:_0x312079[_0x4161('0x1a')],_0x96d60b?_0x312079['start'][_0x4161('0x128')](_0x96d60b['getFirstRange']()[_0x4161('0x38')])?(_0x96d60b['removeMarkers'](),_0x96d60b=_0x2f7e0a):_0x2f7e0a['removeMarkers']():_0x96d60b=_0x2f7e0a;}const _0x7f4a36=this[_0x4161('0x106')][_0x4161('0x8d')](_0x1e8396,_0x3256b9);if(_0x96d60b)this['_setSuggestionRange'](_0x96d60b,_0x7f4a36);else{const _0x5bbc82=_0x49c084(),_0xacd9c6=_0x3dd88b['id'];this[_0x4161('0xe5')]({'id':_0x5bbc82,'type':_0x4161('0x67')+_0x187965,'data':_0x132eab,'createdAt':new Date(),'authorId':_0xacd9c6,'attributes':_0x3a6bad}),this['_addSuggestionMarker'](_0x4161('0x67')+_0x187965,_0x5bbc82,_0xacd9c6,_0x7f4a36);}}return null;}[_0x4161('0xcb')](_0x2ab161,_0x96c58a,_0xcb035a=[],_0x200e7b=null,_0x3cf420={}){_0x96c58a[_0x4161('0x3')]||(_0x96c58a[_0x4161('0x3')]=_0x96c58a['commandName']),_0x96c58a[_0x4161('0x124')]=_0x2ab161['is'](_0x4161('0xd6')),_0x200e7b=_0x200e7b||$t(_0x96c58a);const _0x56738e=_0xcb035a[_0x4161('0xa0')](_0x22bc9a=>Rt(_0x22bc9a,this[_0x4161('0x106')])),_0x42a014=_0x2ab161['is'](_0x4161('0xd6'))?_0x2ab161:Rt(_0x2ab161,this[_0x4161('0x106')]);if('never'===this[_0x4161('0x114')]){const _0x142f9d=this['_suggestionFactory'][_0x4161('0xe1')](_0x4161('0xe6'),_0x200e7b,_0x4161('0x136'));return this[_0x4161('0x6b')](()=>_0x142f9d([_0x42a014],_0x96c58a,_0x3cf420)),null;}_0x56738e['push'](_0x42a014);let _0x68054b=!0x0;for(const _0x21457f of _0x56738e)if(!this[_0x4161('0xc4')](_0x21457f)){_0x68054b=!0x1;break;}if(_0x68054b&&_0x4161('0xcc')!==this[_0x4161('0x114')]){const _0x2a8005=this[_0x4161('0xda')][_0x4161('0xe1')](_0x4161('0xe6'),_0x200e7b,_0x4161('0x136'));return this[_0x4161('0x6b')](()=>_0x2a8005([_0x42a014],_0x96c58a,_0x3cf420)),null;}let _0x34e529=null,_0x1102f1=_0x42a014[_0x4161('0x38')],_0x3accc3=_0x42a014['end'];for(const {suggestion:_0xb42178,meta:_0x2151d2}of this['_findSuggestions'](_0x42a014,_0x4161('0xe6'))){if(!_0x2151d2[_0x4161('0xaf')])continue;if(_0x2151d2[_0x4161('0x129')]||_0x2151d2[_0x4161('0xf4')]||_0x2151d2[_0x4161('0xba')])continue;if(_0xb42178[_0x4161('0x100')]['formatGroupId']!=_0x96c58a[_0x4161('0x3')])continue;if(!Ut(_0xb42178,_0x3cf420))continue;const _0x4aa311=_0xb42178['getFirstRange']();if(_0xb42178[_0x4161('0x28')]==_0x200e7b){if(_0x4aa311[_0x4161('0x3c')](_0x42a014,!0x0))return null;_0x1102f1=_0x1102f1['isBefore'](_0x4aa311[_0x4161('0x38')])?_0x1102f1:_0x4aa311[_0x4161('0x38')],_0x3accc3=_0x3accc3[_0x4161('0x110')](_0x4aa311[_0x4161('0x1a')])?_0x3accc3:_0x4aa311[_0x4161('0x1a')],_0x34e529?_0x4aa311[_0x4161('0x38')]['isBefore'](_0x34e529['getFirstRange']()[_0x4161('0x38')])?(_0x34e529['removeMarkers'](),_0x34e529=_0xb42178):_0xb42178['removeMarkers']():_0x34e529=_0xb42178;}else{const _0x58ffe6=_0x42a014[_0x4161('0x12d')](_0x4aa311);this[_0x4161('0x90')](_0xb42178,_0x58ffe6);}}const _0x412996=this['editor'][_0x4161('0xc1')][_0x4161('0x112')](_0x4161('0x7a'))['me'],_0x317740=_0x49c084(),_0x2f1a31=_0x412996['id'];if(_0x34e529)return this[_0x4161('0x45')](_0x34e529,this[_0x4161('0x106')]['createRange'](_0x1102f1,_0x3accc3)),_0x34e529;{const _0x2ee92e=this[_0x4161('0xe5')]({'id':_0x317740,'type':_0x4161('0x10d')+_0x200e7b,'data':_0x96c58a,'createdAt':new Date(),'authorId':_0x2f1a31,'attributes':_0x3cf420});return this['_addSuggestionMarker'](_0x4161('0x10d')+_0x200e7b,_0x317740,_0x2f1a31,this[_0x4161('0x106')][_0x4161('0x8d')](_0x1102f1,_0x3accc3)),_0x2ee92e;}}[_0x4161('0x98')](_0x3fafab,_0x3cd781,_0x5addf6=[],_0x32e14b=null,_0x153760={}){_0x3cd781[_0x4161('0x3')]||(_0x3cd781[_0x4161('0x3')]=_0x3cd781[_0x4161('0xa2')]);const _0x485f44=_0x3fafab[0x0];_0x3cd781[_0x4161('0x124')]=_0x485f44['is'](_0x4161('0xd6')),_0x32e14b=_0x32e14b||$t(_0x3cd781);const _0x5e68a8=_0x5addf6[_0x4161('0xa0')](_0x380903=>Rt(_0x380903,this[_0x4161('0x106')])),_0xd01eec=_0x485f44['is']('range')?_0x3fafab:_0x3fafab[_0x4161('0xa0')](_0x302ef0=>Rt(_0x302ef0,this['_model']));if('never'===this[_0x4161('0x114')]){const _0xb469aa=this[_0x4161('0xda')]['getSuggestionCallback'](_0x4161('0xe6'),_0x32e14b,_0x4161('0x136'));return this[_0x4161('0x6b')](()=>_0xb469aa(_0xd01eec,_0x3cd781,_0x153760)),null;}_0x5e68a8['push'](..._0xd01eec);let _0x541b62=!0x0;for(const _0x524625 of _0x5e68a8)if(!this[_0x4161('0xc4')](_0x524625)){_0x541b62=!0x1;break;}if(_0x541b62&&_0x4161('0xcc')!==this[_0x4161('0x114')]){const _0x4b4a98=this[_0x4161('0xda')][_0x4161('0xe1')]('formatBlock',_0x32e14b,'accept');return this[_0x4161('0x6b')](()=>_0x4b4a98(_0xd01eec,_0x3cd781,_0x153760)),null;}const _0x87a293=this[_0x4161('0x133')][_0x4161('0xc1')][_0x4161('0x112')]('Users')['me'];for(const _0x10578e of this[_0x4161('0xa7')]()){if(_0x10578e[_0x4161('0x79')]['id']!=_0x87a293['id'])continue;if(_0x4161('0xe6')!=_0x10578e[_0x4161('0xad')]||_0x10578e[_0x4161('0x100')][_0x4161('0x3')]!=_0x3cd781[_0x4161('0x3')])continue;if(!Ut(_0x10578e,_0x153760))continue;const _0x4bb5fd=_0x10578e[_0x4161('0x28')]==_0x32e14b;for(let _0x4a373c=0x0;_0x4a373c<_0xd01eec[_0x4161('0xf5')];_0x4a373c++){const _0x58aafc=_0xd01eec[_0x4a373c];for(const _0x4b3440 of _0x10578e[_0x4161('0x53')]()){const _0x48ef68=_0x4b3440['getRange']();if(_0x58aafc[_0x4161('0xe3')](_0x48ef68)){_0x4bb5fd?(_0xd01eec[_0x4161('0x12c')](_0x4a373c,0x1),_0x4a373c--):_0x10578e['removeMarker'](_0x4b3440[_0x4161('0x63')]);break;}}}}if(0x0==_0xd01eec[_0x4161('0xf5')])return null;const _0x1c87b0=this[_0x4161('0xda')][_0x4161('0xe1')](_0x4161('0xe6'),_0x32e14b,'join');for(const _0x507342 of this[_0x4161('0xa7')]())if(_0x507342[_0x4161('0x79')]['id']==_0x87a293['id']&&_0x4161('0xe6')==_0x507342[_0x4161('0xad')]&&_0x507342[_0x4161('0x100')]['formatGroupId']==_0x3cd781[_0x4161('0x3')]&&_0x507342['subType']==_0x32e14b&&Ut(_0x507342,_0x153760)&&(_0x1c87b0(_0x507342['getRanges'](),_0xd01eec)||_0x1c87b0(_0xd01eec,_0x507342[_0x4161('0x69')]()))){for(const _0x1c65ae of _0xd01eec)_0x507342[_0x4161('0x103')](_0x1c65ae);return _0x507342;}const _0xdf9ba2=_0x49c084(),_0x3804b3=_0x87a293['id'],_0x6ffbfb=_0x4161('0x10d')+_0x32e14b,_0x2b4aa8=this[_0x4161('0xe5')]({'id':_0xdf9ba2,'type':_0x6ffbfb,'data':_0x3cd781,'createdAt':new Date(),'authorId':_0x3804b3,'attributes':_0x153760});for(const _0x4270e9 of _0xd01eec)this[_0x4161('0x105')](_0x6ffbfb,_0xdf9ba2,_0x3804b3,_0x4270e9,_0x2170bb[_0x4161('0xa9')]());return _0x2b4aa8;}['markDeletion'](_0x1b7467,_0x2d6b10=null,_0x182859={}){if(_0x1b7467[_0x4161('0x134')])return null;const _0x500e11=this[_0x4161('0x133')]['plugins'][_0x4161('0x112')](_0x4161('0x7a'))['me'],_0x489bf0=new _0x4ccb35(_0x1b7467['start'],_0x1b7467['end']);for(const {suggestion:_0x263ac1,meta:_0x2e725e}of this[_0x4161('0x27')](_0x489bf0,_0x4161('0x78')))if(_0x2e725e[_0x4161('0xaf')]&&!_0x2e725e['isNextTo']){if(_0x263ac1['isMultiRange']){const _0x334ae0=_0x263ac1[_0x4161('0x69')]()[_0x4161('0xf0')](_0x59d604=>_0x4161('0x135')!=_0x59d604['root'][_0x4161('0x15')]);_0x334ae0['every'](_0x5d8997=>_0x489bf0[_0x4161('0x3c')](_0x5d8997,!0x0))&&_0x263ac1[_0x4161('0x8c')]();if(_0x334ae0[_0x4161('0x87')](_0x58829f=>_0x58829f['containsRange'](_0x489bf0,!0x0))){const _0x33905b=this['_suggestionFactory']['getSuggestionCallback'](_0x4161('0x95'),_0x2d6b10,'accept');return this[_0x4161('0x6b')](()=>_0x33905b([_0x489bf0],null,_0x182859)),null;}}else{const _0x5a4da3=_0x489bf0[_0x4161('0x12d')](_0x263ac1[_0x4161('0x4d')]());null!==_0x5a4da3&&_0x263ac1[_0x4161('0x57')]([_0x5a4da3],null,_0x182859);}}if(_0x489bf0[_0x4161('0x64')](),_0x489bf0[_0x4161('0x134')]||_0x4161('0x135')==_0x489bf0[_0x4161('0x137')][_0x4161('0x15')])return null;let _0xce28c5=null,_0x22ef88=_0x489bf0['start'],_0xa86ec1=_0x489bf0[_0x4161('0x1a')];const _0x294645=this[_0x4161('0x27')](_0x489bf0,_0x4161('0x95'));for(const {suggestion:_0x5696a2,meta:_0x2e44da}of _0x294645){const _0x47e4ce=this[_0x4161('0x106')][_0x4161('0x8d')](_0x22ef88,_0xa86ec1);if(_0x2e44da[_0x4161('0xaf')]&&(this[_0x4161('0xd1')]||!_0x2e44da[_0x4161('0xf4')]&&!_0x2e44da['isInsideObject'])){if(_0x5696a2[_0x4161('0x7c')]){if(!Ut(_0x5696a2,_0x182859))continue;let _0x26ba7a=!0x0;for(const _0x39b70c of _0x5696a2['getRanges']()){if(_0x39b70c[_0x4161('0x3c')](_0x47e4ce,!0x0))return _0x5696a2;_0x47e4ce[_0x4161('0x3c')](_0x39b70c)||(_0x26ba7a=!0x1);}_0x26ba7a&&_0x5696a2['discard']();}else{const _0x1c33b4=_0x5696a2['getFirstRange']();if(_0x1c33b4[_0x4161('0x3c')](_0x47e4ce,!0x0))return _0x5696a2;if(!Ut(_0x5696a2,_0x182859)){_0x47e4ce[_0x4161('0x3c')](_0x1c33b4)?_0x5696a2[_0x4161('0xfa')]():_0x1c33b4[_0x4161('0x18')](_0x22ef88)?_0x22ef88=_0x1c33b4[_0x4161('0x1a')]:_0x1c33b4[_0x4161('0x18')](_0xa86ec1)&&(_0xa86ec1=_0x1c33b4[_0x4161('0x38')]);continue;}_0x22ef88=_0x22ef88['isBefore'](_0x1c33b4[_0x4161('0x38')])?_0x22ef88:_0x1c33b4[_0x4161('0x38')],_0xa86ec1=_0xa86ec1[_0x4161('0x110')](_0x1c33b4[_0x4161('0x1a')])?_0xa86ec1:_0x1c33b4[_0x4161('0x1a')],_0x182859=Object[_0x4161('0x8')]({},_0x5696a2[_0x4161('0x94')]),_0xce28c5?_0x1c33b4[_0x4161('0x38')][_0x4161('0x128')](_0xce28c5[_0x4161('0x4d')]()['start'])?(_0xce28c5['removeMarkers'](),_0xce28c5=_0x5696a2):_0x5696a2[_0x4161('0xfa')]():_0xce28c5=_0x5696a2;}}}if(_0xce28c5)return this[_0x4161('0x45')](_0xce28c5,this[_0x4161('0x106')][_0x4161('0x8d')](_0x22ef88,_0xa86ec1)),_0xce28c5;{const _0x2920de=_0x49c084(),_0x80ebcf=this[_0x4161('0x106')]['createRange'](_0x22ef88,_0xa86ec1),_0x403956=_0x500e11['id'],_0xbd8e46=_0x2d6b10?'deletion:'+_0x2d6b10:_0x4161('0x95'),_0xc54fb2=this[_0x4161('0xe5')]({'id':_0x2920de,'type':_0xbd8e46,'createdAt':new Date(),'authorId':_0x403956,'attributes':_0x182859});return this[_0x4161('0x105')](_0xbd8e46,_0x2920de,_0x403956,_0x80ebcf),_0xc54fb2;}}[_0x4161('0xc0')](_0x365f5f,_0x526c24='multi',_0x10559a={}){const _0x2dda84=this[_0x4161('0x133')][_0x4161('0xc1')][_0x4161('0x112')](_0x4161('0x7a'))['me'],_0x29b5ac=_0x365f5f[_0x4161('0xa0')](_0x3570ad=>new _0x4ccb35(_0x3570ad[_0x4161('0x38')],_0x3570ad[_0x4161('0x1a')])),_0xb5c6c3=new Set();for(const {suggestion:_0x52f8b4,meta:_0x3a35fc}of this[_0x4161('0x27')](_0x29b5ac,_0x4161('0x78')))_0x3a35fc['isOwn']&&!_0x3a35fc[_0x4161('0x129')]&&_0xb5c6c3[_0x4161('0x9a')](_0x52f8b4);for(const _0x454063 of _0xb5c6c3)if(_0x454063[_0x4161('0x7c')]){const _0x517b7d=_0x454063[_0x4161('0x69')]();(!_0x454063['attributes']||!_0x454063['attributes'][_0x4161('0xeb')])&&(_0x517b7d['every'](_0x30b112=>_0x29b5ac[_0x4161('0x87')](_0x279821=>_0x279821[_0x4161('0x3c')](_0x30b112,!0x0)))&&_0x454063[_0x4161('0x8c')]());if(_0x29b5ac[_0x4161('0xa8')](_0x1174a6=>_0x517b7d[_0x4161('0x87')](_0xeb24f=>_0xeb24f[_0x4161('0x3c')](_0x1174a6,!0x0)))){const _0x340833=this['_suggestionFactory'][_0x4161('0xe1')](_0x4161('0x95'),_0x526c24,'accept');return this[_0x4161('0x6b')](()=>_0x340833(_0x365f5f,null,_0x10559a)),null;}}else{const _0x21cac8=_0x454063[_0x4161('0x4d')]();_0x29b5ac[_0x4161('0x87')](_0x2f64e2=>_0x2f64e2[_0x4161('0x3c')](_0x21cac8,!0x0))&&_0x454063['discard']();if(_0x29b5ac[_0x4161('0xa8')](_0x3b97c3=>_0x21cac8[_0x4161('0x3c')](_0x3b97c3,!0x0))){const _0x3d9ba2=this[_0x4161('0xda')][_0x4161('0xe1')]('deletion',_0x526c24,'accept');return this[_0x4161('0x6b')](()=>_0x3d9ba2(_0x29b5ac,null,_0x10559a)),null;}}const _0xf788a1=this[_0x4161('0xda')][_0x4161('0xe1')](_0x4161('0x95'),_0x526c24,_0x4161('0x83'));let _0x16da3c=null;for(const _0xeaf75f of this['getSuggestions']())if(_0xeaf75f['author']['id']==_0x2dda84['id']&&_0xeaf75f[_0x4161('0x25')]&&_0x4161('0x95')==_0xeaf75f['type']&&_0xeaf75f[_0x4161('0x28')]==_0x526c24&&Ut(_0xeaf75f,_0x10559a)&&(_0xf788a1(_0xeaf75f[_0x4161('0x69')](),_0x29b5ac)||_0xf788a1(_0x29b5ac,_0xeaf75f['getRanges']()))){if(_0x16da3c){if(_0xeaf75f[_0x4161('0x12')]&&_0xeaf75f[_0x4161('0x12')][_0x4161('0xf5')])continue;for(const _0x490342 of _0xeaf75f['getRanges']())_0x16da3c[_0x4161('0x113')](_0x490342)||_0x16da3c[_0x4161('0x103')](_0x490342);_0xeaf75f['removeMarkers']();}else{_0x16da3c=_0xeaf75f;for(const _0x2d447e of _0x29b5ac)_0xeaf75f[_0x4161('0x113')](_0x2d447e)||_0xeaf75f[_0x4161('0x103')](_0x2d447e);}}if(_0x16da3c)return _0x16da3c;_0xb5c6c3[_0x4161('0x33')]();for(const {suggestion:_0x3fd155,meta:_0x1a2228}of this[_0x4161('0x27')](_0x29b5ac,_0x4161('0x95')))_0x1a2228['isOwn']&&(this[_0x4161('0xd1')]||!_0x1a2228[_0x4161('0xf4')]&&!_0x1a2228[_0x4161('0xba')])&&Ut(_0x3fd155,_0x10559a)&&_0xb5c6c3['add'](_0x3fd155);for(const _0x561708 of _0xb5c6c3){const _0x1b0a61=_0x561708[_0x4161('0x69')]();if(!_0x10559a||!_0x10559a[_0x4161('0xeb')]){if(_0x29b5ac[_0x4161('0xa8')](_0x30e582=>_0x1b0a61[_0x4161('0x87')](_0x482de2=>_0x482de2['containsRange'](_0x30e582,!0x0))))return _0x561708;}(!_0x561708[_0x4161('0x94')]||!_0x561708[_0x4161('0x94')][_0x4161('0xeb')])&&(_0x1b0a61['every'](_0x107510=>_0x29b5ac[_0x4161('0x87')](_0x3d949b=>_0x3d949b[_0x4161('0x3c')](_0x107510,!0x0)))&&_0x561708[_0x4161('0x8c')]());}const _0x1e62b6=_0x49c084(),_0x44874f=_0x2dda84['id'],_0x25dcc7=_0x4161('0x2e')+_0x526c24,_0xab58f8=this['_setSuggestionData']({'id':_0x1e62b6,'type':_0x25dcc7,'createdAt':new Date(),'authorId':_0x44874f,'attributes':_0x10559a});for(const _0x1bd205 of _0x29b5ac)_0x1bd205[_0x4161('0x64')](),_0x1bd205[_0x4161('0x134')]||_0x4161('0x135')==_0x1bd205[_0x4161('0x137')][_0x4161('0x15')]||this[_0x4161('0x105')](_0x25dcc7,_0x1e62b6,_0x44874f,_0x1bd205,_0x2170bb[_0x4161('0xa9')]());return _0xab58f8;}[_0x4161('0x45')](_0x5b564d,_0xf4596a){const _0x5c2760=_0x5b564d[_0x4161('0x40')]();this[_0x4161('0x106')][_0x4161('0x50')](_0x374eb0=>{_0x374eb0[_0x4161('0x123')](_0x5c2760,{'range':_0xf4596a});});}[_0x4161('0x80')](_0x5b72a3){const _0x1f8c6a=_0x5b72a3['id'],_0x508832=this[_0x4161('0x133')]['config'][_0x4161('0x112')](_0x4161('0xac'));this[_0x4161('0xb7')][_0x4161('0x7b')](_0x1f8c6a)||this[_0x4161('0xb7')][_0x4161('0x66')]({'channelId':_0x508832,'threadId':_0x1f8c6a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x592564=this[_0x4161('0xb7')][_0x4161('0x5e')](_0x1f8c6a);_0x592564[_0x4161('0xd0')](_0x4161('0x13a')),_0x592564[_0x4161('0x13a')]=!0x1,_0x5b72a3['commentThread']=_0x592564;}[_0x4161('0x20')](_0x180738,_0x54b467,_0x3704e7,_0x1266a2){if(_0x180738['type']!=_0x54b467||_0x180738[_0x4161('0x28')]!=_0x3704e7||_0x180738[_0x4161('0x65')]['id']!=_0x1266a2)throw this[_0x4161('0x133')][_0x4161('0x10a')](_0x4161('0xa6')),new _0x5390d2('track-changes-suggestion-data-mismatch',this);}[_0x4161('0x90')](_0x309c1f,_0x5dfc78){const _0x7f31e0=_0x309c1f[_0x4161('0x4d')]();if(_0x5dfc78[_0x4161('0xe3')](_0x7f31e0))_0x309c1f[_0x4161('0xfa')]();else{if(_0x7f31e0[_0x4161('0x3c')](_0x5dfc78)){const _0x22be92=this['_model'][_0x4161('0xd4')](_0x5dfc78[_0x4161('0x38')][_0x4161('0xf2')],_0x4161('0x1a'));this[_0x4161('0x45')](_0x309c1f,this[_0x4161('0x106')]['createRange'](_0x7f31e0[_0x4161('0x38')],_0x22be92));const _0x34ad34=_0x49c084(),_0x5b7be4=_0x309c1f[_0x4161('0x65')]['id'],_0x444007=_0x309c1f[_0x4161('0xad')]+':'+_0x309c1f['subType'];this[_0x4161('0xe5')]({'id':_0x34ad34,'type':_0x444007,'createdAt':new Date(),'authorId':_0x5b7be4,'data':_0x309c1f[_0x4161('0x100')],'attributes':_0x309c1f[_0x4161('0x94')]});const _0x5c20e7=this[_0x4161('0x106')][_0x4161('0xd4')](_0x5dfc78[_0x4161('0x1a')][_0x4161('0x6')],'after'),_0x4f430e=this[_0x4161('0x106')][_0x4161('0x8d')](_0x5c20e7,_0x7f31e0['end']);this['_addSuggestionMarker'](_0x444007,_0x34ad34,_0x5b7be4,_0x4f430e);}else{if(_0x7f31e0['containsPosition'](_0x5dfc78[_0x4161('0x38')])){const _0x4e66f6=this[_0x4161('0x106')][_0x4161('0xd4')](_0x5dfc78[_0x4161('0x38')]['nodeBefore'],'end');this[_0x4161('0x45')](_0x309c1f,this['_model']['createRange'](_0x7f31e0['start'],_0x4e66f6));}else{const _0x5204aa=this[_0x4161('0x106')]['createPositionAt'](_0x5dfc78['end'][_0x4161('0x6')],'after');this['_setSuggestionRange'](_0x309c1f,this[_0x4161('0x106')][_0x4161('0x8d')](_0x5204aa,_0x7f31e0[_0x4161('0x1a')]));}}}}['_rangeIsInLocalUserInsertion'](_0x50fa25){for(const {suggestion:_0x5f1bba,meta:_0x368813}of this[_0x4161('0x27')](_0x50fa25,_0x4161('0x78'))){if(!_0x368813[_0x4161('0xaf')])continue;const _0x81bed6=_0x5f1bba['getRanges']();for(const _0x354451 of _0x81bed6)if(!_0x50fa25[_0x4161('0x70')](_0x354451)[_0x4161('0xf5')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x30b640){const _0xf8c3c6=this[_0x4161('0x133')][_0x4161('0xc1')]['get'](_0x4161('0x7a'))[_0x4161('0x34')](_0x30b640);if(!_0xf8c3c6)throw new _0x5390d2(_0x4161('0x12a'),this);return _0xf8c3c6;}[_0x4161('0x47')](_0x354e39){const _0x21864e=this['editor']['plugins'][_0x4161('0x112')](_0x4161('0x7a')),_0x142e64=_0x83290('external:'+_0x354e39),_0x2f1f2a=_0x21864e[_0x4161('0x34')](_0x142e64);return _0x2f1f2a||_0x21864e[_0x4161('0x11f')]({'id':_0x142e64,'name':_0x354e39});}[_0x4161('0x23')](_0x4c762f,_0x3d6331,_0xc16164,_0x31ada7,_0x241b97){const _0x15fc01=this[_0x4161('0x122')](_0x31ada7),_0x4b1c39=this[_0x4161('0xda')][_0x4161('0x77')](_0x4c762f,_0x3d6331,_0xc16164,_0x15fc01,_0x241b97,_0x24f168=>this[_0x4161('0x2b')](_0xc16164,{'attributes':_0x24f168}));return this[_0x4161('0x11')](_0x4b1c39,_0x4161('0x136'),()=>{this[_0x4161('0x2b')](_0xc16164,{'state':_0x4161('0x108')});},{'priority':'high'}),this[_0x4161('0x11')](_0x4b1c39,_0x4161('0x8c'),()=>{this[_0x4161('0x2b')](_0xc16164,{'state':_0x4161('0x4c')});},{'priority':_0x4161('0x2c')}),this[_0x4161('0x88')][_0x4161('0xc3')](_0xc16164,_0x4b1c39),this[_0x4161('0x9b')][_0x4161('0xc3')](_0x4b1c39,_0x4161('0x96')),_0x4b1c39;}[_0x4161('0x4f')](_0x53290d){const _0x190928=_0x53290d[_0x4161('0xc2')](':');return{'group':_0x190928[0x0],'type':_0x190928[0x1],'subType':_0x190928[_0x4161('0xf5')]>=0x5?_0x190928[0x2]:null,'id':_0x190928[_0x4161('0xf5')]<0x5?_0x190928[0x2]:_0x190928[0x3],'authorId':_0x190928[_0x4161('0xf5')]<0x5?_0x190928[0x3]:_0x190928[0x4],'markerCount':0x6==_0x190928[_0x4161('0xf5')]?_0x190928[0x5]:null};}[_0x4161('0x81')](_0x4dacde,_0x43555c,_0x323c07){const _0x11c4a0=_0x4dacde[_0x4161('0x4d')](),_0x186e05=_0x11c4a0[_0x4161('0x38')],_0x5974a0=_0x11c4a0[_0x4161('0x1a')];this[_0x4161('0x45')](_0x4dacde,this['_model']['createRange'](_0x186e05,_0x43555c));const _0x59249d=_0x49c084(),_0x364ff3=_0x4dacde[_0x4161('0x65')]['id'],_0xbaa2c8=_0x4dacde[_0x4161('0xad')]+(_0x4dacde[_0x4161('0x28')]?':'+_0x4dacde[_0x4161('0x28')]:'');this[_0x4161('0xe5')]({'id':_0x59249d,'type':_0xbaa2c8,'createdAt':new Date(),'authorId':_0x364ff3,'originalSuggestionId':_0x4dacde['id'],'attributes':_0x4dacde[_0x4161('0x94')],'data':_0x4dacde[_0x4161('0x100')]}),_0x4161('0xe6')==_0x4dacde[_0x4161('0xad')]&&(_0x323c07=this[_0x4161('0x106')][_0x4161('0x44')](_0x323c07[_0x4161('0x6')])),this[_0x4161('0x105')](_0xbaa2c8,_0x59249d,_0x364ff3,this[_0x4161('0x106')][_0x4161('0x8d')](_0x323c07,_0x5974a0));}[_0x4161('0x27')](_0x250753,_0x927f98=null){const _0x25cbfc=[],_0x1b0c1f=this[_0x4161('0x133')][_0x4161('0xc1')][_0x4161('0x112')](_0x4161('0x7a'))['me'];Array[_0x4161('0xfc')](_0x250753)||(_0x250753=[_0x250753]);for(const _0x12da99 of this[_0x4161('0xa7')]()){if(!_0x12da99[_0x4161('0x25')])continue;if(_0x927f98&&_0x12da99[_0x4161('0xad')]!=_0x927f98)continue;let _0x824e03=!0x1;for(const _0x1f0e4c of _0x12da99[_0x4161('0x69')]()){for(const _0x171da9 of _0x250753){const _0x5a68f1=_0x171da9[_0x4161('0x38')][_0x4161('0xe3')](_0x1f0e4c[_0x4161('0x1a')])||_0x171da9[_0x4161('0x1a')][_0x4161('0xe3')](_0x1f0e4c['start']);if(_0x5a68f1||_0x171da9['getIntersection'](_0x1f0e4c)){const _0x2c2ef1=_0x171da9[_0x4161('0x3c')](_0x1f0e4c)&&Bt(this[_0x4161('0x106')][_0x4161('0xe8')],_0x1f0e4c[_0x4161('0x38')],_0x171da9),_0x567f17=_0x1f0e4c['containsRange'](_0x171da9)&&Bt(this[_0x4161('0x106')][_0x4161('0xe8')],_0x171da9['start'],_0x1f0e4c);_0x25cbfc['push']({'suggestion':_0x12da99,'meta':{'isOwn':_0x1b0c1f==_0x12da99[_0x4161('0x79')],'isNextTo':_0x5a68f1,'isInsideObject':_0x2c2ef1,'containsRangeInObject':_0x567f17}}),_0x824e03=!0x0;break;}}if(_0x824e03)break;}}return _0x25cbfc;}[_0x4161('0x105')](_0x2fba26,_0x4c909e,_0x76d9c6,_0x36435a,_0x15a3df){this['_model']['change'](_0x1e4a70=>{let _0x48daf5=_0x4161('0x84')+_0x2fba26+':'+_0x4c909e+':'+_0x76d9c6;_0x15a3df&&(_0x48daf5=_0x48daf5+':'+_0x15a3df),_0x1e4a70['addMarker'](_0x48daf5,{'range':_0x36435a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4161('0xdf')](_0x5e0a4a){const _0x4a91f9=_0x5e0a4a[_0x4161('0x4a')],_0x2bfdfa=_0x5e0a4a['next'];_0x5e0a4a[_0x4161('0x4a')]=null,null!=_0x4a91f9&&(_0x4a91f9[_0x4161('0x11a')]=null),_0x5e0a4a[_0x4161('0x11a')]=null,null!=_0x2bfdfa&&(_0x2bfdfa['previous']=null),'ready'==this['_suggestionState'][_0x4161('0x112')](_0x5e0a4a)&&(this[_0x4161('0x9b')][_0x4161('0xc3')](_0x5e0a4a,'removed'),this[_0x4161('0x31')](_0x4161('0xed'),_0x5e0a4a,_0x4a91f9,_0x2bfdfa));}[_0x4161('0xe5')](_0x4c9e27){const _0x342e89=_0x4c9e27['id'],_0x37cc5c=this[_0x4161('0x9c')](_0x4c9e27);if(this['_adapter']&&this[_0x4161('0x0')][_0x4161('0x11b')]){const _0x4be66d=this['editor'][_0x4161('0xc1')][_0x4161('0x112')]('PendingActions'),_0x1e77d4=_0x37cc5c[_0x4161('0x121')],_0x2364fd=_0x37cc5c[_0x4161('0x28')]?_0x37cc5c[_0x4161('0xad')]+':'+_0x37cc5c['subType']:_0x37cc5c['type'],_0x35e446=this['editor'][_0x4161('0x10f')],_0x30669d=_0x4be66d[_0x4161('0x9a')](_0x2b96c0(_0x35e446,_0x4161('0xb1'))),_0x7d7dd8={'id':_0x342e89,'type':_0x2364fd,'hasComments':_0x1e77d4,'data':_0x4c9e27[_0x4161('0x100')]||null,'originalSuggestionId':_0x4c9e27[_0x4161('0x91')]||null,'attributes':_0x37cc5c[_0x4161('0x94')]};this['_adapter']['addSuggestion'](_0x7d7dd8)['then'](_0x2acf8c=>{_0x37cc5c['_saved']=!0x0,_0x4be66d[_0x4161('0x60')](_0x30669d),_0x2acf8c&&_0x2acf8c[_0x4161('0x104')]&&(this[_0x4161('0x88')]['get'](_0x342e89)[_0x4161('0x104')]=_0x2acf8c['createdAt']);})[_0x4161('0xc')](_0x473b0e=>{throw _0x49c023(_0x4161('0xc7')),this[_0x4161('0x133')]['model'][_0x4161('0x7e')]({'isUndoable':!0x1},()=>{_0x37cc5c['discard']();}),_0x37cc5c['stopListening'](),this['_suggestions'][_0x4161('0x140')](_0x37cc5c['id']),this[_0x4161('0x9b')][_0x4161('0x140')](_0x37cc5c),_0x473b0e;});}return _0x37cc5c;}['_updateSuggestionData'](_0x1d17e4,_0x1f06a8){const _0xcedefe=this[_0x4161('0x133')][_0x4161('0xc1')][_0x4161('0x112')](_0x4161('0x49')),_0x4dc3d7=this[_0x4161('0xc5')](_0x1d17e4);if(this[_0x4161('0x0')]&&this[_0x4161('0x0')][_0x4161('0x9d')]){if(_0x4dc3d7[_0x4161('0x89')]){const _0x12f4e2=_0xcedefe[_0x4161('0x9a')](_0x2b96c0(this[_0x4161('0x133')][_0x4161('0x10f')],'PENDING_ACTION_SUGGESTION'));this[_0x4161('0x0')][_0x4161('0x9d')](_0x1d17e4,_0x1f06a8)[_0x4161('0x5d')](()=>{_0xcedefe['remove'](_0x12f4e2);});}else _0x4dc3d7['on'](_0x4161('0x72'),()=>{this[_0x4161('0x2b')](_0x1d17e4,_0x1f06a8);});}}[_0x4161('0xb4')](_0x3599ad){if(!this[_0x4161('0x0')]||!this[_0x4161('0x0')][_0x4161('0xc5')])throw new _0x5390d2(_0x4161('0xa1'),this);return this[_0x4161('0x0')][_0x4161('0xc5')](_0x3599ad);}['_handleNewSuggestionMarker'](_0x196a81){const {id:_0x58c010,type:_0x7c579c,subType:_0xebc1ec,authorId:_0x5ed323}=this['_splitMarkerName'](_0x196a81),_0x3be2bd=this[_0x4161('0x88')][_0x4161('0x112')](_0x58c010)||this[_0x4161('0x23')](_0x7c579c,_0xebc1ec,_0x58c010,_0x5ed323,{});switch(this[_0x4161('0x20')](_0x3be2bd,_0x7c579c,_0xebc1ec,_0x5ed323),this[_0x4161('0x9b')][_0x4161('0x112')](_0x3be2bd)){case _0x4161('0x96'):this[_0x4161('0xb4')](_0x58c010)['then'](_0xe896c8=>{let _0x5d6764=Promise[_0x4161('0xec')]();_0xe896c8[_0x4161('0x121')]&&(_0x5d6764=this[_0x4161('0xb7')][_0x4161('0x139')]({'channelId':this[_0x4161('0x133')][_0x4161('0x126')][_0x4161('0x112')](_0x4161('0xac')),'threadId':_0x58c010})),_0x5d6764[_0x4161('0x5d')](()=>{this[_0x4161('0x9c')](_0xe896c8)[_0x4161('0x89')]=!0x0;});}),this[_0x4161('0x9b')][_0x4161('0xc3')](_0x3be2bd,_0x4161('0x8a'));break;case _0x4161('0x115'):this[_0x4161('0x2b')](_0x58c010,{'state':_0x4161('0xd3')});case _0x4161('0x43'):this[_0x4161('0x9b')]['set'](_0x3be2bd,'ready'),this['fire'](_0x4161('0xa'),_0x3be2bd);break;case'ready':this[_0x4161('0x31')](_0x4161('0xce'),_0x3be2bd);}return _0x3be2bd[_0x4161('0x118')](_0x196a81),_0x3be2bd;}[_0x4161('0x7d')](_0x2ea765){const _0x41dc25=Array[_0x4161('0x56')](_0x2ea765)[_0x4161('0xf0')](_0x137e82=>!_0x137e82[_0x4161('0x7c')]),_0xb0c8cf=this[_0x4161('0xa7')]({'skipNotAttached':!0x0})[_0x4161('0xf0')](_0x490c62=>!_0x490c62[_0x4161('0x7c')]),_0x305c8f=_0xb0c8cf[_0x4161('0xf0')](_0x5b6c9d=>!_0x2ea765[_0x4161('0x62')](_0x5b6c9d)),_0x5644d3=new Map(_0xb0c8cf[_0x4161('0xa0')](_0x3e62db=>[_0x3e62db,this[_0x4161('0xda')]['getSuggestionCallback'](_0x3e62db[_0x4161('0xad')],_0x3e62db[_0x4161('0x28')],_0x4161('0x17'))])),_0x5481f9=new Map(_0xb0c8cf[_0x4161('0xa0')](_0x170792=>[_0x170792,_0x170792[_0x4161('0x4d')]()])),_0x212089=new Set(),_0x198fa8=new Set();for(let _0x5436cf=0x0;_0x5436cf<_0x41dc25[_0x4161('0xf5')];_0x5436cf++)_0xcf7248(_0x41dc25[_0x5436cf],_0x41dc25,_0x5436cf+0x1);for(let _0x3a08ea=0x0;_0x3a08ea<_0x41dc25['length'];_0x3a08ea++)_0xcf7248(_0x41dc25[_0x3a08ea],_0x305c8f,0x0);for(let _0x21539c=0x0;_0x21539c<_0x41dc25[_0x4161('0xf5')];_0x21539c++){const _0x3698b8=_0x41dc25[_0x21539c];!_0x198fa8['has'](_0x3698b8)&&_0x3698b8[_0x4161('0x4a')]&&(_0x3698b8[_0x4161('0x4a')][_0x4161('0x11a')]===_0x3698b8&&(_0x3698b8['previous'][_0x4161('0x11a')]=null),_0x3698b8[_0x4161('0x4a')]=null),!_0x212089[_0x4161('0x62')](_0x3698b8)&&_0x3698b8[_0x4161('0x11a')]&&(_0x3698b8[_0x4161('0x11a')][_0x4161('0x4a')]===_0x3698b8&&(_0x3698b8['next'][_0x4161('0x4a')]=null),_0x3698b8[_0x4161('0x11a')]=null);}function _0xcf7248(_0x394506,_0x390a85,_0x2c6c14){for(let _0x4c15d4=_0x2c6c14;_0x4c15d4<_0x390a85['length'];_0x4c15d4++){const _0x5aedd3=_0x412e45(_0x394506,_0x390a85[_0x4c15d4]);_0x5aedd3&&(_0x5aedd3[0x0][_0x4161('0x11a')]=_0x5aedd3[0x1],_0x5aedd3[0x1][_0x4161('0x4a')]=_0x5aedd3[0x0],_0x212089[_0x4161('0x9a')](_0x5aedd3[0x0]),_0x198fa8[_0x4161('0x9a')](_0x5aedd3[0x1]));}}function _0x412e45(_0x55cd2c,_0x2be0ea){if(_0x55cd2c['author']['id']!==_0x2be0ea[_0x4161('0x79')]['id'])return null;const _0xfa46c4=_0x5644d3[_0x4161('0x112')](_0x55cd2c)(_0x55cd2c,_0x2be0ea,_0x5481f9[_0x4161('0x112')](_0x55cd2c),_0x5481f9[_0x4161('0x112')](_0x2be0ea));if(!_0xfa46c4)return null;return _0x5644d3[_0x4161('0x112')](_0x2be0ea)(_0x55cd2c,_0x2be0ea,_0x5481f9[_0x4161('0x112')](_0x55cd2c),_0x5481f9[_0x4161('0x112')](_0x2be0ea))?_0xfa46c4[0x1]['commentThread']&&_0xfa46c4[0x1]['commentThread'][_0x4161('0xf5')]?null:_0xfa46c4:null;}}['_joinWithAdjacentSuggestions'](_0x12aa33){const _0x11c72f=Array[_0x4161('0x56')](_0x12aa33),_0x22b230=this[_0x4161('0xa7')]({'skipNotAttached':!0x0}),_0x3e9fc3=_0x22b230[_0x4161('0xf0')](_0x3da17b=>!_0x12aa33[_0x4161('0x62')](_0x3da17b)),_0x4708f8=new Map(_0x11c72f[_0x4161('0xa0')](_0x4f36aa=>[_0x4f36aa,this[_0x4161('0xda')][_0x4161('0xe1')](_0x4f36aa[_0x4161('0xad')],_0x4f36aa[_0x4161('0x28')],'join')])),_0x25d6be=new Map(_0x22b230[_0x4161('0xa0')](_0x1e62b5=>[_0x1e62b5,_0x1e62b5[_0x4161('0x69')]()]));for(let _0x2a6f3b=0x0;_0x2a6f3b<_0x11c72f['length'];_0x2a6f3b++){if(_0x1fe3f6(this,_0x11c72f[_0x2a6f3b],_0x11c72f,_0x2a6f3b+0x1))return!0x0;}for(let _0x13e9be=0x0;_0x13e9be<_0x11c72f[_0x4161('0xf5')];_0x13e9be++){if(_0x1fe3f6(this,_0x11c72f[_0x13e9be],_0x3e9fc3,0x0))return!0x0;}return!0x1;function _0x1fe3f6(_0x18ec60,_0x387dad,_0x31efa6,_0x7e5827){for(let _0x29224d=_0x7e5827;_0x29224d<_0x31efa6[_0x4161('0xf5')];_0x29224d++){const _0x250d0c=_0x31efa6[_0x29224d];if(_0x250d0c['type']!==_0x387dad['type']||_0x250d0c[_0x4161('0x79')]['id']!==_0x387dad[_0x4161('0x79')]['id']||_0x250d0c['subType']!==_0x387dad[_0x4161('0x28')])continue;if(!xt(_0x387dad,_0x250d0c))continue;const _0x25d65c=_0x4708f8[_0x4161('0x112')](_0x387dad),_0x46ae41=_0x25d6be[_0x4161('0x112')](_0x387dad),_0x42ef01=_0x25d6be[_0x4161('0x112')](_0x250d0c),_0x5f3372=_0x387dad['commentThread']&&_0x387dad[_0x4161('0x12')]['length'],_0x45b762=_0x250d0c['commentThread']&&_0x250d0c[_0x4161('0x12')]['length'];if(!_0x5f3372&&_0x25d65c(_0x42ef01,_0x46ae41))return _0x18ec60['_joinSuggestions'](_0x250d0c,_0x387dad),_0x25d6be['delete'](_0x387dad),!0x0;if(!_0x45b762&&_0x25d65c(_0x46ae41,_0x42ef01))return _0x18ec60[_0x4161('0x10e')](_0x387dad,_0x250d0c),_0x25d6be[_0x4161('0x140')](_0x250d0c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x37c61b,_0x16f51e){if(_0x37c61b['isMultiRange'])for(const _0x586239 of _0x16f51e['getRanges']())_0x37c61b['addRange'](_0x586239);else{const _0x5bbe76=_0x16f51e[_0x4161('0x4d')]()[_0x4161('0x1a')];this[_0x4161('0x45')](_0x37c61b,this[_0x4161('0x106')][_0x4161('0x8d')](_0x37c61b['getFirstRange']()['start'],_0x5bbe76));}_0x16f51e[_0x4161('0xfa')]();}}class Dt{constructor(_0x73022b){this[_0x4161('0xe2')]=_0x73022b,this[_0x4161('0x106')]=_0x73022b[_0x4161('0x73')],this[_0x4161('0xe7')]=new Map(),this[_0x4161('0xca')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4161('0x77')](_0x117032,_0x453e76,_0x5225bd,_0x72816b,_0x319178,_0x4bb2c1){return new _0x2170bb(this[_0x4161('0x106')],{'type':_0x117032,'subType':_0x453e76,'id':_0x5225bd,'author':_0x72816b,'creator':_0x72816b,'attributes':_0x319178,'onAttributesChange':_0x4bb2c1,'onAccept':(..._0x445ff3)=>this[_0x4161('0xe1')](_0x117032,_0x453e76,_0x4161('0x136'))(..._0x445ff3),'onDiscard':(..._0xa4c16f)=>this[_0x4161('0xe1')](_0x117032,_0x453e76,_0x4161('0x8c'))(..._0xa4c16f)});}['registerCustomCallback'](_0x340445,_0x553e15,_0x32ab8b,_0x53f6f0){const _0x189637=_0x340445+':'+_0x553e15+':'+_0x32ab8b;this[_0x4161('0xe7')]['set'](_0x189637,_0x53f6f0);}[_0x4161('0xe1')](_0x31ee8f,_0xf6775d,_0x148d52){const _0x2ba737=_0x31ee8f+':'+_0xf6775d+':'+_0x148d52;return this[_0x4161('0xe7')][_0x4161('0x112')](_0x2ba737)||this['_defaultCallbacks'][_0x4161('0x112')](_0x31ee8f+':'+_0x148d52);}['_registerDefaultCallbacks'](){const _0x237a30=()=>!0x1,_0x16b876=_0x3f0ef5=>{_0x3f0ef5[_0x4161('0x2a')]((_0x4ec834,_0x199da6)=>_0x4ec834[_0x4161('0x38')][_0x4161('0x128')](_0x199da6[_0x4161('0x38')])?0x1:-0x1),this[_0x4161('0x106')][_0x4161('0x50')](_0x4f9a27=>{for(const _0x2ca8ab of _0x3f0ef5){let _0x1b8f4a;_0x1b8f4a=_0x2ca8ab[_0x4161('0x1a')][_0x4161('0x6d')]&&_0x2ca8ab['end'][_0x4161('0x6')]==_0x2ca8ab[_0x4161('0x38')][_0x4161('0xd7')]?_0x4f9a27['createSelection'](_0x2ca8ab[_0x4161('0x38')][_0x4161('0xd7')],'on'):_0x4f9a27['createSelection'](_0x2ca8ab),this[_0x4161('0x106')]['deleteContent'](_0x1b8f4a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x18c6e8=(_0x26b026,_0x58109e)=>{this[_0x4161('0x106')][_0x4161('0x50')](_0x5e8e48=>{const {commandName:_0x4d0ac3,commandParams:_0x1b0e03=[]}=_0x58109e,_0x3f3111=_0x26b026[_0x4161('0xa0')](_0x9a1bc3=>(_t(_0x9a1bc3)&&(_0x9a1bc3=this[_0x4161('0x106')][_0x4161('0x8d')](_0x9a1bc3[_0x4161('0x1a')])),_0x9a1bc3))[_0x4161('0xf0')](_0x1c0514=>'$graveyard'!==_0x1c0514[_0x4161('0x137')][_0x4161('0x15')]);if(_0x3f3111[_0x4161('0xf5')]<0x1)return;const _0x3d23b6=Array[_0x4161('0x56')](this[_0x4161('0x106')][_0x4161('0x120')][_0x4161('0x11c')][_0x4161('0x69')]())[_0x4161('0xa0')](_0x194f99=>_0x4ccb35[_0x4161('0xfe')](_0x194f99));_0x5e8e48[_0x4161('0x13c')](_0x3f3111);for(const _0x25bc2a of this[_0x4161('0xe2')][_0x4161('0xb3')][_0x4161('0xb3')]())_0x25bc2a[_0x4161('0x59')]();_0x1b0e03[_0x4161('0xea')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4161('0x102')](_0x4d0ac3,..._0x1b0e03);const _0x4e0bcf=_0x3d23b6[_0x4161('0xf0')](_0x408bf3=>_0x4161('0x135')!=_0x408bf3[_0x4161('0x137')][_0x4161('0x15')]);_0x4e0bcf[_0x4161('0xf5')]>0x0&&_0x5e8e48[_0x4161('0x13c')](_0x4e0bcf);for(const _0x6c435b of _0x3d23b6)_0x6c435b[_0x4161('0x64')]();});},_0x4c1a79=(_0x951024,_0x145898)=>0x1==_0x951024[_0x4161('0xf5')]&&0x1==_0x145898[_0x4161('0xf5')]&&_0x951024[0x0][_0x4161('0x1a')][_0x4161('0xe3')](_0x145898[0x0][_0x4161('0x38')]),_0x4633f1=(_0x1608af,_0x23c5e4,_0x19ea33,_0x254602)=>jt(_0x1608af,_0x23c5e4,_0x19ea33,_0x254602,this['_model'])?[_0x1608af,_0x23c5e4]:jt(_0x23c5e4,_0x1608af,_0x254602,_0x19ea33,this[_0x4161('0x106')])?[_0x23c5e4,_0x1608af]:null;this['_defaultCallbacks'][_0x4161('0xc3')](_0x4161('0xae'),_0x237a30),this['_defaultCallbacks'][_0x4161('0xc3')]('insertion:discard',_0x16b876),this[_0x4161('0xca')]['set'](_0x4161('0x127'),_0x4c1a79),this[_0x4161('0xca')][_0x4161('0xc3')](_0x4161('0x10'),_0x4633f1),this['_defaultCallbacks'][_0x4161('0xc3')]('deletion:accept',_0x16b876),this[_0x4161('0xca')]['set']('deletion:discard',_0x237a30),this[_0x4161('0xca')][_0x4161('0xc3')](_0x4161('0xf8'),_0x4c1a79),this[_0x4161('0xca')][_0x4161('0xc3')]('deletion:chain',_0x4633f1),this[_0x4161('0xca')]['set'](_0x4161('0xf'),_0x18c6e8),this['_defaultCallbacks'][_0x4161('0xc3')](_0x4161('0x29'),_0x237a30),this[_0x4161('0xca')][_0x4161('0xc3')](_0x4161('0x42'),_0x4c1a79),this[_0x4161('0xca')][_0x4161('0xc3')](_0x4161('0xfb'),_0x237a30),this[_0x4161('0xca')][_0x4161('0xc3')]('formatBlock:accept',_0x18c6e8),this[_0x4161('0xca')][_0x4161('0xc3')]('formatBlock:discard',_0x237a30),this[_0x4161('0xca')]['set'](_0x4161('0x12e'),_0x4c1a79),this['_defaultCallbacks']['set'](_0x4161('0x8b'),_0x237a30);}}function Bt(_0x19a423,_0x2c18b3,_0x255f50){for(const _0x5a8c16 of _0x2c18b3[_0x4161('0x6')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5a8c16['root']==_0x5a8c16)return!0x1;if(!_0x255f50['containsItem'](_0x5a8c16))return!0x1;if(_0x19a423[_0x4161('0x6a')](_0x5a8c16)||_0x19a423[_0x4161('0x138')](_0x5a8c16))return!0x0;}return!0x1;}function _t(_0x44e57e){return _0x44e57e[_0x4161('0x1a')]['parent']==_0x44e57e[_0x4161('0x38')][_0x4161('0xd7')]&&_0x44e57e[_0x4161('0x1a')]['isAtStart'];}function Mt(_0x3c4abd,_0x2bb689,_0x388163,_0x47629a){const _0x23cefe=_0x50e4ca=>!_0x50e4ca[_0x4161('0x19')]['is']('$textProxy')&&!_0x47629a[_0x4161('0x6a')](_0x50e4ca[_0x4161('0x19')]),_0x4441ca=_0x3c4abd[_0x4161('0x38')][_0x4161('0xc8')](_0x23cefe),_0xd80282=_0x3c4abd[_0x4161('0x1a')]['getLastMatchingPosition'](_0x23cefe,{'direction':_0x4161('0x1c')});return(!_0x3c4abd[_0x4161('0x38')][_0x4161('0xe3')](_0x4441ca)||!_0x3c4abd[_0x4161('0x1a')]['isEqual'](_0xd80282))&&(_0x4441ca[_0x4161('0x128')](_0xd80282)?_0x388163[_0x4161('0x123')](_0x2bb689,{'range':_0x388163[_0x4161('0x8d')](_0x4441ca,_0xd80282)}):_0x388163[_0x4161('0xe0')](_0x2bb689),!0x0);}function $t(_0x3c96bc){return _0x83290(_0x3c96bc);}function Nt(_0x1f79da){const _0x2c97ae=_0x1f79da['start'][_0x4161('0xd7')];return _0x2c97ae&&_0x2c97ae['is'](_0x4161('0xab'));}function Rt(_0x20cc6e,_0x10a89e){const _0x4f24ae=_0x10a89e[_0x4161('0xe8')][_0x4161('0x6a')](_0x20cc6e)||_0x10a89e[_0x4161('0xe8')][_0x4161('0x116')](_0x20cc6e);return _0x10a89e['createRange'](_0x10a89e[_0x4161('0xd4')](_0x20cc6e,_0x4161('0x4')),_0x4f24ae?_0x10a89e[_0x4161('0x2f')](_0x20cc6e):_0x10a89e[_0x4161('0xd4')](_0x20cc6e,_0x4161('0x1a')));}function jt(_0x1ba294,_0xa9718e,_0x2dee7a,_0x25b5c6,_0x8f6b8f){if(!xt(_0x1ba294,_0xa9718e))return!0x1;if(_0x2dee7a[_0x4161('0x1a')][_0x4161('0xe3')](_0x25b5c6[_0x4161('0x38')]))return!0x0;if(_0x1ba294[_0x4161('0xad')]!=_0xa9718e[_0x4161('0xad')])return!0x1;if(!_0x2dee7a['end'][_0x4161('0xb9')](_0x25b5c6[_0x4161('0x38')]))return!0x1;const _0x296d60=_0x8f6b8f[_0x4161('0x8d')](_0x2dee7a['end'],_0x25b5c6[_0x4161('0x38')])[_0x4161('0x3f')]();for(const _0x19e0d5 of _0x296d60)if([_0x4161('0xd9'),_0x4161('0x101')][_0x4161('0x16')](_0x19e0d5[_0x4161('0xad')])&&_0x8f6b8f['schema']['isLimit'](_0x19e0d5['item']))return!0x1;return!0x0;}function xt(_0x27c445,_0x4a32da){return!(!_0x27c445[_0x4161('0xd5')]||!_0x4a32da[_0x4161('0xd5')])&&_0xca6935(_0x27c445[_0x4161('0x94')],_0x4a32da[_0x4161('0x94')]);}function Ut(_0x4319ac,_0x103eab){const _0x2dfd96=Ot(_0x4319ac[_0x4161('0x94')]),_0x666e7=Ot(_0x103eab);if(!_0x4319ac['_isDataLoaded'])return!0x1;for(const _0x5e7548 of Object[_0x4161('0x55')](_0x666e7))if(!_0xca6935(_0x2dfd96[_0x5e7548],_0x666e7[_0x5e7548]))return!0x1;return!0x0;}function Ot(_0x30cec8){const _0x38b712=Object[_0x4161('0x8')]({},_0x30cec8);return delete _0x38b712['skipNestingCheck'],delete _0x38b712[_0x4161('0x4b')],_0x38b712;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1972=['isEnabled','bind','acceptSelectedSuggestions','createAnnotation','isMultiRange','has','arrowView','clear','addComment','comments.maxThreadTotalWeight','reduce','trackChanges','_bindAnnotationToEditors','switchbutton','change:activeAnnotations','view','set','getDescriptions','CommentView','_handleControllerBuffer','CommentsUI','getJoined','acceptButton','discardAllSuggestions','_refreshActiveMarkers','listenTo','init','discardSelectedSuggestions','_initializeController','innerView','previous','destroy','execute','head','_updateController','Accept\x20all\x20suggestions','buttonView','getMarkers','focus','plugins','remove','activeAnnotations','config','length','value','_disableComments','commands','getAllAdjacentSuggestions','TrackChangesEditing','button','get','isOn','type','getRanges','add','CommentsRepository','lowest','stopListening','_suggestionToController','keys','SuggestionThreadView','TrackChangesUI','push','actionView','suggestionChanged','Annotations','comments','Accept\x20all\x20selected\x20suggestions','activeMarkers','EditorAnnotations','size','locale','delete','_descriptionFactory','unbind','_handleSuggestionControllerDelayed','editing','isInContent','suggestionLoaded','Discard\x20all\x20selected\x20suggestions','descriptionParts','Discard\x20all\x20suggestions','mainView','_createUIButton','trackChanges.SuggestionThreadView','model','change:previous','createCommentThreadController','getFirstRange','comments.maxCommentsWhenCollapsed','separator','_annotationViews','editor','_viewToController','addSourceCollector','filter','commandName','toMany','refreshSelectedViews','pluginName','trackChanges.disableComments','from','_destroyController','Track\x20changes','commentThread','suggestion-','isDirty'];(function(_0x536129,_0x1972f3){const _0x1f8a21=function(_0x21781f){while(--_0x21781f){_0x536129['push'](_0x536129['shift']());}};_0x1f8a21(++_0x1972f3);}(_0x1972,0x1c2));const _0x1f8a=function(_0x536129,_0x1972f3){_0x536129=_0x536129-0x0;let _0x1f8a21=_0x1972[_0x536129];return _0x1f8a21;};import{Plugin as _0x57f5ab}from'ckeditor5/src/core';import{Collection as _0x53e61c}from'ckeditor5/src/utils';import{Model as _0x543834,SplitButtonView as _0x764f47,createDropdown as _0x126d13,addListToDropdown as _0x1ffa5d}from'ckeditor5/src/ui';import{Users as _0x1ec6f2,getDateTimeFormatter as _0x5020c7,getAllMarkersDomElementsSorted as _0xc82ae5}from'ckeditor5-collaboration/src/collaboration-core';import _0x29e555 from'./trackchangesediting';import _0x3faca1 from'./ui/suggestioncontroller';import _0x4d1161 from'./ui/view/suggestionthreadview';import{getTranslation as _0x67014a}from'./utils/common-translations';import _0x33bf61 from'../theme/icons/track-changes.svg';export default class d extends _0x57f5ab{static get['requires'](){return[_0x29e555,_0x1ec6f2,_0x1f8a('0x21'),'Annotations',_0x1f8a('0x2f')];}static get[_0x1f8a('0x4d')](){return _0x1f8a('0x27');}constructor(_0x5bbbaa){super(_0x5bbbaa),this[_0x1f8a('0x24')]=new Map(),this[_0x1f8a('0x47')]=new Map(),this[_0x1f8a('0x45')]=new Map(),this[_0x1f8a('0x68')]=new Map();const _0x5a4fbf=this[_0x1f8a('0x46')][_0x1f8a('0x14')];_0x5a4fbf['define'](_0x1f8a('0x3e'),_0x4d1161),_0x5a4fbf['define'](_0x1f8a('0x4e'),!0x1),this[_0x1f8a('0x17')]=_0x5a4fbf[_0x1f8a('0x1c')](_0x1f8a('0x4e'));}[_0x1f8a('0x35')](_0x219ba7,_0x36cd37){0x0===this[_0x1f8a('0x68')][_0x1f8a('0x30')]&&setTimeout(()=>{for(const [_0x315ccb,_0x3a3627]of this[_0x1f8a('0x68')]){const _0x1cd4b4=this[_0x1f8a('0x24')][_0x1f8a('0x5a')](_0x315ccb);_0x1cd4b4||_0x3a3627?_0x1cd4b4&&_0x3a3627&&this[_0x1f8a('0x50')](_0x315ccb):this[_0x1f8a('0x6')](_0x315ccb);}this[_0x1f8a('0x46')]['plugins'][_0x1f8a('0x1c')](_0x1f8a('0x2f'))[_0x1f8a('0x4c')](),this[_0x1f8a('0x2')](),this[_0x1f8a('0x68')][_0x1f8a('0x5c')]();},0xa),this[_0x1f8a('0x68')]['set'](_0x219ba7,_0x36cd37);}[_0x1f8a('0x4')](){const _0x26ab96=this[_0x1f8a('0x46')],_0x38e9a6=_0x26ab96['plugins'][_0x1f8a('0x1c')](_0x1f8a('0x1a')),_0x19eec5=_0x26ab96[_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x2b')),_0xc05264=_0x26ab96[_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x2f')),_0x436601=_0x26ab96[_0x1f8a('0x11')][_0x1f8a('0x1c')]('CommentsRepository');_0x26ab96['ui']['componentFactory']['add'](_0x1f8a('0x60'),_0x34205d=>this[_0x1f8a('0x3d')](_0x34205d)),_0xc05264[_0x1f8a('0x48')](()=>{const _0x512a58=[];for(const [_0x4feee6,_0x5ef451]of Array[_0x1f8a('0x4f')](this[_0x1f8a('0x24')])){const _0x48db7c=_0x4feee6['getAllAdjacentSuggestions'](),_0x3453d0=[];for(const _0x548d85 of _0x48db7c){if(!_0x548d85[_0x1f8a('0x37')])continue;if(_0x548d85[_0x1f8a('0x59')]){_0x3453d0[_0x1f8a('0x28')](..._0x548d85[_0x1f8a('0x1f')]());continue;}const _0x4056ec=_0x548d85[_0x1f8a('0x42')]();if(_0x3453d0[_0x1f8a('0x15')]>0x0){const _0x9eaca1=_0x3453d0[0x0][_0x1f8a('0x6a')](_0x4056ec);if(_0x9eaca1){_0x3453d0[0x0]=_0x9eaca1;continue;}}_0x3453d0[_0x1f8a('0x28')](_0x4056ec);}_0x512a58[_0x1f8a('0x28')]([_0x5ef451[_0x1f8a('0x64')],_0x3453d0]);}return _0x512a58;}),this[_0x1f8a('0x3')](_0x38e9a6,_0x1f8a('0x38'),(_0x5abea2,_0x527587)=>{this['listenTo'](_0x527587,_0x1f8a('0x40'),(_0x4007f1,_0x241d84,_0x139f88,_0x537679)=>{_0x527587[_0x1f8a('0x37')]&&(null==_0x139f88?(this[_0x1f8a('0xc')](_0x537679[_0x1f8a('0xb')]),this['_handleSuggestionControllerDelayed'](_0x527587,!0x1)):(this[_0x1f8a('0xc')](_0x139f88[_0x1f8a('0xb')]),this[_0x1f8a('0x35')](_0x527587,!0x0)));}),null===_0x527587[_0x1f8a('0x8')]?this[_0x1f8a('0x35')](_0x527587,!0x1):this[_0x1f8a('0xc')](_0x527587[_0x1f8a('0xb')]);}),this['listenTo'](_0x38e9a6,'suggestionUnloaded',(_0x540e2e,_0x324d3c,_0x1e3816)=>{this[_0x1f8a('0x23')](_0x324d3c,'change:previous'),this[_0x1f8a('0x68')][_0x1f8a('0x32')](_0x324d3c);const _0x5bcaec=_0x1e3816?_0x1e3816[_0x1f8a('0xb')]:_0x324d3c,_0x31a431=this[_0x1f8a('0x24')][_0x1f8a('0x1c')](_0x5bcaec);null!==_0x1e3816&&this[_0x1f8a('0xc')](_0x5bcaec),null===_0x1e3816&&_0x31a431&&this[_0x1f8a('0x50')](_0x324d3c);}),this[_0x1f8a('0x3')](_0x38e9a6,_0x1f8a('0x2a'),(_0x327edd,_0x3d70c3)=>{this[_0x1f8a('0xc')](_0x3d70c3);}),this['listenTo'](_0x19eec5,_0x1f8a('0x63'),()=>{this['_refreshActiveMarkers']();}),this[_0x1f8a('0x3')](_0x436601,_0x1f8a('0x5d'),(_0x178fbd,{threadId:_0x6bb041,isFromAdapter:_0x2d7c56})=>{if(_0x2d7c56||!_0x38e9a6['hasSuggestion'](_0x6bb041))return;const _0x781557=_0x38e9a6['getSuggestion'](_0x6bb041);this['_suggestionToController'][_0x1f8a('0x1c')](_0x781557)['view']['focus']();},{'priority':_0x1f8a('0x22')});}[_0x1f8a('0x2')](){const _0x4333cd=this[_0x1f8a('0x46')]['plugins'][_0x1f8a('0x1c')](_0x1f8a('0x2b')),_0x3665eb=this[_0x1f8a('0x46')][_0x1f8a('0x11')]['get'](_0x1f8a('0x1a')),_0x51a8bc=Array[_0x1f8a('0x4f')](_0x4333cd[_0x1f8a('0x13')],_0x19cb4b=>_0x19cb4b[_0x1f8a('0x7')])[_0x1f8a('0x49')](_0x5a3b23=>this[_0x1f8a('0x47')]['has'](_0x5a3b23)),_0x154de0=[];for(const _0x5425db of _0x51a8bc){const _0x36aefe=this[_0x1f8a('0x47')][_0x1f8a('0x1c')](_0x5425db)[_0x1f8a('0x3f')][_0x1f8a('0x19')]();_0x154de0[_0x1f8a('0x28')](..._0x36aefe[_0x1f8a('0x5f')]((_0x28f295,_0x170ac5)=>[..._0x28f295,..._0x170ac5['getMarkerNames']()],[]));}_0x3665eb[_0x1f8a('0x2e')]=_0x154de0;}['_createUIButton'](_0x15c67a){const _0x474aa3=_0x126d13(_0x15c67a,_0x764f47),_0x44381c=this[_0x1f8a('0x46')][_0x1f8a('0x18')][_0x1f8a('0x1c')](_0x1f8a('0x60')),_0x3dee95=_0x67014a(_0x15c67a,_0x1f8a('0x51'));_0x474aa3[_0x1f8a('0xe')][_0x1f8a('0x65')]({'tooltip':_0x3dee95,'label':_0x3dee95,'icon':_0x33bf61}),_0x474aa3[_0x1f8a('0xe')][_0x1f8a('0x56')](_0x1f8a('0x1d'))['to'](_0x44381c,_0x1f8a('0x16')),_0x474aa3['buttonView']['on'](_0x1f8a('0xa'),()=>{_0x44381c['execute'](),this[_0x1f8a('0x46')][_0x1f8a('0x36')][_0x1f8a('0x64')][_0x1f8a('0x10')]();});const _0x5a1e4b=new _0x53e61c(),_0x4ea9e7=[{'type':_0x1f8a('0x62'),'model':{'withText':!0x0,'label':_0x3dee95,'commandName':_0x1f8a('0x60')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x67014a(_0x15c67a,_0x1f8a('0xd')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x67014a(_0x15c67a,_0x1f8a('0x2d')),'commandName':_0x1f8a('0x57')}},{'type':_0x1f8a('0x1b'),'model':{'withText':!0x0,'label':_0x67014a(_0x15c67a,_0x1f8a('0x3b')),'commandName':_0x1f8a('0x1')}},{'type':_0x1f8a('0x1b'),'model':{'withText':!0x0,'label':_0x67014a(_0x15c67a,_0x1f8a('0x39')),'commandName':_0x1f8a('0x5')}}];for(const _0x511118 of _0x4ea9e7){let _0x13ec9a={'type':_0x1f8a('0x44')};if(_0x511118[_0x1f8a('0x3f')]){const _0x23be5c=new _0x543834(_0x511118[_0x1f8a('0x3f')]),_0x4fd0ec=this[_0x1f8a('0x46')][_0x1f8a('0x18')][_0x1f8a('0x1c')](_0x23be5c['commandName']);_0x23be5c['bind']('isOn',_0x1f8a('0x55'))['to'](_0x4fd0ec,'value',_0x1f8a('0x55')),_0x13ec9a={'type':_0x511118[_0x1f8a('0x1e')],'model':_0x23be5c};}_0x5a1e4b['add'](_0x13ec9a);}_0x1ffa5d(_0x474aa3,_0x5a1e4b);const _0x799e4f=_0x4ea9e7[_0x1f8a('0x49')](_0x30f638=>null!=_0x30f638[_0x1f8a('0x3f')])['map'](_0x25dc3b=>this[_0x1f8a('0x46')][_0x1f8a('0x18')][_0x1f8a('0x1c')](_0x25dc3b[_0x1f8a('0x3f')][_0x1f8a('0x4a')])),_0x2c91d3=_0x474aa3['buttonView'];return _0x2c91d3['actionView']['unbind'](_0x1f8a('0x55')),_0x2c91d3['arrowView'][_0x1f8a('0x34')]('isEnabled'),_0x2c91d3[_0x1f8a('0x29')][_0x1f8a('0x56')](_0x1f8a('0x55'))['to'](_0x44381c,_0x1f8a('0x55')),_0x2c91d3[_0x1f8a('0x5b')]['bind'](_0x1f8a('0x55'))[_0x1f8a('0x4b')](_0x799e4f,_0x1f8a('0x55'),(..._0x29cc83)=>_0x29cc83['some'](_0x2b028a=>_0x2b028a)),_0x474aa3['on'](_0x1f8a('0xa'),_0x46dfaa=>{this[_0x1f8a('0x46')]['execute'](_0x46dfaa['source'][_0x1f8a('0x4a')]),this[_0x1f8a('0x46')][_0x1f8a('0x36')][_0x1f8a('0x64')][_0x1f8a('0x10')]();}),_0x474aa3;}['_initializeController'](_0x15b784){const _0x4099dc=this['editor'],_0x131b5a=_0x4099dc[_0x1f8a('0x14')],_0x34ba48=_0x4099dc[_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x2b')),_0x40fc32=_0x4099dc['plugins'][_0x1f8a('0x1c')]('CommentsRepository'),_0xecaee2=_0x4099dc[_0x1f8a('0x11')]['get'](_0x1f8a('0x2f')),_0x1f4d7a=_0x4099dc[_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1ec6f2)['me'],_0xf951b7=_0x131b5a[_0x1f8a('0x1c')](_0x1f8a('0x60'))[_0x1f8a('0x26')],{CommentsListView:_0x140ae7,CommentThreadInputView:_0x508cd6}=_0x4099dc[_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x69'));let _0xae7a10,_0x1b5038;this[_0x1f8a('0x45')][_0x1f8a('0x5a')](_0x15b784['id'])?(_0x1b5038=this[_0x1f8a('0x45')][_0x1f8a('0x1c')](_0x15b784['id']),_0xae7a10=_0x1b5038['mainView']):(_0xae7a10=new _0xf951b7(_0x4099dc[_0x1f8a('0x31')],_0x15b784,_0x1f4d7a,{'disableComments':this[_0x1f8a('0x17')],'editorConfig':_0x131b5a[_0x1f8a('0x1c')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x131b5a[_0x1f8a('0x1c')](_0x1f8a('0x43')),'maxThreadTotalWeight':_0x131b5a[_0x1f8a('0x1c')](_0x1f8a('0x5e')),'maxCommentCharsWhenCollapsed':_0x131b5a[_0x1f8a('0x1c')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5020c7(_0x131b5a[_0x1f8a('0x1c')]('locale')),'CommentView':_0x131b5a['get'](_0x1f8a('0x2c'))[_0x1f8a('0x67')],'CommentsListView':_0x140ae7,'CommentThreadInputView':_0x508cd6}),_0xae7a10[_0x1f8a('0x0')]['on'](_0x1f8a('0xa'),()=>{_0x4099dc[_0x1f8a('0x36')][_0x1f8a('0x64')][_0x1f8a('0x10')]();}),_0xae7a10['discardButton']['on']('execute',()=>{_0x4099dc[_0x1f8a('0x36')]['view']['focus']();}),_0x1b5038=_0x34ba48['createAnnotationView'](this[_0x1f8a('0x46')][_0x1f8a('0x31')],_0xae7a10),_0x1b5038[_0x1f8a('0x56')](_0x1f8a('0x54'))['to'](_0xae7a10,_0x1f8a('0x54')),_0x1b5038[_0x1f8a('0x56')](_0x1f8a('0x15'))['to'](_0xae7a10),_0x1b5038['bind']('type')['to'](_0xae7a10,'type',_0x4d6e14=>_0x1f8a('0x53')+_0x4d6e14),this[_0x1f8a('0x45')][_0x1f8a('0x65')](_0x15b784['id'],_0x1b5038));const _0x2dc955=_0x40fc32[_0x1f8a('0x41')](_0x15b784[_0x1f8a('0x52')],_0xae7a10),_0x3c8385=new _0x3faca1(_0x4099dc,_0x15b784,_0xae7a10,_0x2dc955),_0x18b9f0=_0x15b784[_0x1f8a('0x19')]()[_0x1f8a('0x49')](_0x4690fc=>_0x4690fc[_0x1f8a('0x37')]);_0xae7a10[_0x1f8a('0x3a')]=_0x4099dc[_0x1f8a('0x11')]['get'](_0x1f8a('0x1a'))[_0x1f8a('0x33')][_0x1f8a('0x66')](_0x18b9f0),this['_suggestionToController'][_0x1f8a('0x65')](_0x15b784,_0x3c8385),this['_viewToController']['set'](_0xae7a10,_0x3c8385);const _0x744711=_0x34ba48[_0x1f8a('0x58')]({'view':_0x1b5038,'target':()=>{const _0x37faa0=[],_0x583652=_0x15b784[_0x1f8a('0x19')]()[_0x1f8a('0x49')](_0x3bd379=>_0x3bd379[_0x1f8a('0x37')]);for(const _0x55cfc6 of _0x583652)_0x37faa0['push'](..._0x55cfc6[_0x1f8a('0xf')]());return _0xc82ae5(_0x4099dc['editing'],_0x37faa0);},'type':()=>'suggestion-'+_0x3c8385[_0x1f8a('0x64')]['type']});_0x40fc32[_0x1f8a('0x61')](_0xae7a10,_0x744711),_0x34ba48[_0x1f8a('0x20')](_0x744711),_0xecaee2['registerAnnotation'](_0x744711);}[_0x1f8a('0x50')](_0x2421b5){const _0x5db8ad=this[_0x1f8a('0x46')][_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x21')),_0x44e857=this['editor'][_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x2b')),_0x18740b=this['_suggestionToController'][_0x1f8a('0x1c')](_0x2421b5),_0x392b5b=_0x18740b[_0x1f8a('0x64')],_0x3f4365=_0x44e857['getByInnerView'](_0x392b5b);_0x5db8ad['_unbindEditors'](_0x392b5b),_0x3f4365&&_0x44e857[_0x1f8a('0x12')](_0x3f4365),this[_0x1f8a('0x24')][_0x1f8a('0x32')](_0x2421b5),this['_viewToController'][_0x1f8a('0x32')](_0x392b5b),_0x18740b[_0x1f8a('0x9')]();}[_0x1f8a('0xc')](_0x612620){if(!_0x612620['isInContent']||!this[_0x1f8a('0x24')][_0x1f8a('0x5a')](_0x612620))return;const _0x3f5865=this[_0x1f8a('0x46')][_0x1f8a('0x11')]['get'](_0x1f8a('0x1a')),_0x24bc7c=this[_0x1f8a('0x24')][_0x1f8a('0x1c')](_0x612620),_0x3781a6=_0x612620[_0x1f8a('0x19')]();_0x24bc7c[_0x1f8a('0x64')]['descriptionParts']=_0x3f5865['_descriptionFactory']['getDescriptions'](_0x3781a6);}[_0x1f8a('0x9')](){for(const _0x3b1a18 of this[_0x1f8a('0x24')][_0x1f8a('0x25')]())this[_0x1f8a('0x50')](_0x3b1a18);for(const _0x2d2d56 of this[_0x1f8a('0x45')]['values']())_0x2d2d56[_0x1f8a('0x3c')]['destroy']();super[_0x1f8a('0x9')]();}}
23
+ const _0x488b=['filter','_annotationViews','toMany','has','delete','suggestionChanged','Discard\x20all\x20selected\x20suggestions','map','isInContent','SuggestionThreadView','view','suggestionUnloaded','isEnabled','getSuggestion','trackChanges','_updateController','arrowView','Annotations','Track\x20changes','type','button','addComment','_viewToController','lowest','getJoined','innerView','values','get','destroy','requires','_refreshActiveMarkers','buttonView','_createUIButton','locale','set','_descriptionFactory','commandName','descriptionParts','focus','trackChanges.disableComments','switchbutton','length','getAllAdjacentSuggestions','commentThread','Discard\x20all\x20suggestions','isDirty','discardSelectedSuggestions','getMarkers','activeMarkers','Accept\x20all\x20selected\x20suggestions','listenTo','_suggestionToController','add','commands','value','init','_handleControllerBuffer','model','reduce','bind','comments.maxCommentCharsWhenCollapsed','Accept\x20all\x20suggestions','_disableComments','getFirstRange','getRanges','getDescriptions','suggestionLoaded','addSourceCollector','change:activeAnnotations','getMarkerNames','discardAllSuggestions','TrackChangesEditing','editor','_bindAnnotationToEditors','trackChanges.SuggestionThreadView','CommentView','previous','CommentsUI','getByInnerView','hasSuggestion','change:previous','registerAnnotation','_unbindEditors','createAnnotationView','pluginName','size','EditorAnnotations','createCommentThreadController','isMultiRange','execute','_destroyController','mainView','acceptSelectedSuggestions','remove','acceptButton','actionView','isOn','config','push','editing','head','createAnnotation','CommentsRepository','from','acceptAllSuggestions','refreshSelectedViews','activeAnnotations','_initializeController','plugins','_handleSuggestionControllerDelayed'];(function(_0x6856ad,_0x488be2){const _0x490624=function(_0x386c6b){while(--_0x386c6b){_0x6856ad['push'](_0x6856ad['shift']());}};_0x490624(++_0x488be2);}(_0x488b,0x7f));const _0x4906=function(_0x6856ad,_0x488be2){_0x6856ad=_0x6856ad-0x0;let _0x490624=_0x488b[_0x6856ad];return _0x490624;};import{Plugin as _0x10c3d1}from'ckeditor5/src/core';import{Collection as _0x549d01}from'ckeditor5/src/utils';import{Model as _0xf307d2,SplitButtonView as _0x3f8b1d,createDropdown as _0x311a90,addListToDropdown as _0x164343}from'ckeditor5/src/ui';import{Users as _0x52b7bd,getDateTimeFormatter as _0x45b533,getAllMarkersDomElementsSorted as _0x12132d}from'ckeditor5-collaboration/src/collaboration-core';import _0x4171d2 from'./trackchangesediting';import _0x2a569d from'./ui/suggestioncontroller';import _0xc2d7d9 from'./ui/view/suggestionthreadview';import{getTranslation as _0x321fe9}from'./utils/common-translations';import _0x3ffd49 from'../theme/icons/track-changes.svg';export default class d extends _0x10c3d1{static get[_0x4906('0xc')](){return[_0x4171d2,_0x52b7bd,_0x4906('0x55'),'Annotations',_0x4906('0x45')];}static get[_0x4906('0x43')](){return'TrackChangesUI';}constructor(_0x1fa1e4){super(_0x1fa1e4),this['_suggestionToController']=new Map(),this[_0x4906('0x5')]=new Map(),this['_annotationViews']=new Map(),this[_0x4906('0x27')]=new Map();const _0x164c61=this['editor'][_0x4906('0x50')];_0x164c61['define'](_0x4906('0x39'),_0xc2d7d9),_0x164c61['define'](_0x4906('0x16'),!0x1),this[_0x4906('0x2d')]=_0x164c61[_0x4906('0xa')](_0x4906('0x16'));}[_0x4906('0x5c')](_0xadb617,_0x2de3a1){0x0===this['_handleControllerBuffer'][_0x4906('0x44')]&&setTimeout(()=>{for(const [_0x43c248,_0x27c628]of this['_handleControllerBuffer']){const _0x22f7ec=this['_suggestionToController'][_0x4906('0x60')](_0x43c248);_0x22f7ec||_0x27c628?_0x22f7ec&&_0x27c628&&this[_0x4906('0x49')](_0x43c248):this[_0x4906('0x5a')](_0x43c248);}this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')]('EditorAnnotations')[_0x4906('0x58')](),this[_0x4906('0xd')](),this[_0x4906('0x27')]['clear']();},0xa),this[_0x4906('0x27')][_0x4906('0x11')](_0xadb617,_0x2de3a1);}[_0x4906('0x26')](){const _0x18b06d=this['editor'],_0x133ad1=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')]('TrackChangesEditing'),_0x4e1677=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')]('Annotations'),_0x546ee4=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x45')),_0xb6b6c8=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')]('CommentsRepository');_0x18b06d['ui']['componentFactory'][_0x4906('0x23')](_0x4906('0x6b'),_0xfa5f54=>this[_0x4906('0xf')](_0xfa5f54)),_0x546ee4[_0x4906('0x32')](()=>{const _0x5c2a91=[];for(const [_0x49f9fc,_0x4f6849]of Array[_0x4906('0x56')](this[_0x4906('0x22')])){const _0x3ab8d5=_0x49f9fc[_0x4906('0x19')](),_0x21d88e=[];for(const _0x33af9a of _0x3ab8d5){if(!_0x33af9a[_0x4906('0x65')])continue;if(_0x33af9a[_0x4906('0x47')]){_0x21d88e[_0x4906('0x51')](..._0x33af9a[_0x4906('0x2f')]());continue;}const _0x2827b1=_0x33af9a[_0x4906('0x2e')]();if(_0x21d88e[_0x4906('0x18')]>0x0){const _0x47dc87=_0x21d88e[0x0][_0x4906('0x7')](_0x2827b1);if(_0x47dc87){_0x21d88e[0x0]=_0x47dc87;continue;}}_0x21d88e[_0x4906('0x51')](_0x2827b1);}_0x5c2a91['push']([_0x4f6849[_0x4906('0x67')],_0x21d88e]);}return _0x5c2a91;}),this[_0x4906('0x21')](_0x133ad1,_0x4906('0x31'),(_0x1acd91,_0x45e36d)=>{this[_0x4906('0x21')](_0x45e36d,_0x4906('0x3f'),(_0x5c0220,_0x49c610,_0x1c5d2d,_0x588215)=>{_0x45e36d[_0x4906('0x65')]&&(null==_0x1c5d2d?(this[_0x4906('0x6c')](_0x588215[_0x4906('0x53')]),this[_0x4906('0x5c')](_0x45e36d,!0x1)):(this['_updateController'](_0x1c5d2d[_0x4906('0x53')]),this[_0x4906('0x5c')](_0x45e36d,!0x0)));}),null===_0x45e36d[_0x4906('0x3b')]?this[_0x4906('0x5c')](_0x45e36d,!0x1):this[_0x4906('0x6c')](_0x45e36d[_0x4906('0x53')]);}),this[_0x4906('0x21')](_0x133ad1,_0x4906('0x68'),(_0x114e64,_0x5bd2c6,_0x18881f)=>{this['stopListening'](_0x5bd2c6,_0x4906('0x3f')),this[_0x4906('0x27')][_0x4906('0x61')](_0x5bd2c6);const _0x560bfe=_0x18881f?_0x18881f['head']:_0x5bd2c6,_0x5cc93e=this['_suggestionToController'][_0x4906('0xa')](_0x560bfe);null!==_0x18881f&&this[_0x4906('0x6c')](_0x560bfe),null===_0x18881f&&_0x5cc93e&&this[_0x4906('0x49')](_0x5bd2c6);}),this[_0x4906('0x21')](_0x133ad1,_0x4906('0x62'),(_0x22bbec,_0x10f850)=>{this[_0x4906('0x6c')](_0x10f850);}),this[_0x4906('0x21')](_0x4e1677,_0x4906('0x33'),()=>{this[_0x4906('0xd')]();}),this[_0x4906('0x21')](_0xb6b6c8,_0x4906('0x4'),(_0x57d25e,{threadId:_0x4881ae,isFromAdapter:_0x17d0b5})=>{if(_0x17d0b5||!_0x133ad1[_0x4906('0x3e')](_0x4881ae))return;const _0x698d45=_0x133ad1[_0x4906('0x6a')](_0x4881ae);this[_0x4906('0x22')]['get'](_0x698d45)['view'][_0x4906('0x15')]();},{'priority':_0x4906('0x6')});}['_refreshActiveMarkers'](){const _0x4d0629=this[_0x4906('0x37')]['plugins']['get']('Annotations'),_0x19504e=this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x36')),_0x3e6dbc=Array[_0x4906('0x56')](_0x4d0629[_0x4906('0x59')],_0x16f8ff=>_0x16f8ff[_0x4906('0x8')])[_0x4906('0x5d')](_0x3fe39d=>this[_0x4906('0x5')]['has'](_0x3fe39d)),_0x595c56=[];for(const _0x38aa9e of _0x3e6dbc){const _0x494084=this[_0x4906('0x5')]['get'](_0x38aa9e)[_0x4906('0x28')][_0x4906('0x19')]();_0x595c56[_0x4906('0x51')](..._0x494084[_0x4906('0x29')]((_0x3ecc21,_0x59a091)=>[..._0x3ecc21,..._0x59a091[_0x4906('0x34')]()],[]));}_0x19504e[_0x4906('0x1f')]=_0x595c56;}[_0x4906('0xf')](_0x5c4863){const _0x5293b4=_0x311a90(_0x5c4863,_0x3f8b1d),_0x5527c9=this[_0x4906('0x37')][_0x4906('0x24')]['get'](_0x4906('0x6b')),_0x1884e8=_0x321fe9(_0x5c4863,_0x4906('0x1'));_0x5293b4[_0x4906('0xe')][_0x4906('0x11')]({'tooltip':_0x1884e8,'label':_0x1884e8,'icon':_0x3ffd49}),_0x5293b4['buttonView'][_0x4906('0x2a')](_0x4906('0x4f'))['to'](_0x5527c9,_0x4906('0x25')),_0x5293b4[_0x4906('0xe')]['on']('execute',()=>{_0x5527c9[_0x4906('0x48')](),this['editor']['editing'][_0x4906('0x67')]['focus']();});const _0x38bf2a=new _0x549d01(),_0x359f0e=[{'type':_0x4906('0x17'),'model':{'withText':!0x0,'label':_0x1884e8,'commandName':_0x4906('0x6b')}},{'type':'separator'},{'type':_0x4906('0x3'),'model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x2c')),'commandName':_0x4906('0x57')}},{'type':'button','model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x20')),'commandName':_0x4906('0x4b')}},{'type':_0x4906('0x3'),'model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x1b')),'commandName':_0x4906('0x35')}},{'type':_0x4906('0x3'),'model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x63')),'commandName':_0x4906('0x1d')}}];for(const _0x1a0630 of _0x359f0e){let _0x578d1b={'type':'separator'};if(_0x1a0630[_0x4906('0x28')]){const _0x368b9e=new _0xf307d2(_0x1a0630[_0x4906('0x28')]),_0x23c555=this['editor']['commands'][_0x4906('0xa')](_0x368b9e['commandName']);_0x368b9e[_0x4906('0x2a')](_0x4906('0x4f'),_0x4906('0x69'))['to'](_0x23c555,'value',_0x4906('0x69')),_0x578d1b={'type':_0x1a0630['type'],'model':_0x368b9e};}_0x38bf2a['add'](_0x578d1b);}_0x164343(_0x5293b4,_0x38bf2a);const _0x39b30c=_0x359f0e[_0x4906('0x5d')](_0x5486d5=>null!=_0x5486d5['model'])[_0x4906('0x64')](_0x1961b9=>this[_0x4906('0x37')][_0x4906('0x24')][_0x4906('0xa')](_0x1961b9[_0x4906('0x28')][_0x4906('0x13')])),_0x2da691=_0x5293b4[_0x4906('0xe')];return _0x2da691[_0x4906('0x4e')]['unbind'](_0x4906('0x69')),_0x2da691[_0x4906('0x6d')]['unbind'](_0x4906('0x69')),_0x2da691[_0x4906('0x4e')][_0x4906('0x2a')](_0x4906('0x69'))['to'](_0x5527c9,_0x4906('0x69')),_0x2da691[_0x4906('0x6d')]['bind']('isEnabled')[_0x4906('0x5f')](_0x39b30c,_0x4906('0x69'),(..._0x2de38d)=>_0x2de38d['some'](_0x62737a=>_0x62737a)),_0x5293b4['on'](_0x4906('0x48'),_0x5ce26f=>{this[_0x4906('0x37')][_0x4906('0x48')](_0x5ce26f['source'][_0x4906('0x13')]),this[_0x4906('0x37')][_0x4906('0x52')][_0x4906('0x67')]['focus']();}),_0x5293b4;}[_0x4906('0x5a')](_0x153f57){const _0x4fcded=this['editor'],_0x46623a=_0x4fcded['config'],_0x459789=_0x4fcded['plugins'][_0x4906('0xa')](_0x4906('0x0')),_0x56c92f=_0x4fcded[_0x4906('0x5b')]['get'](_0x4906('0x55')),_0x205556=_0x4fcded[_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x45')),_0x2e022f=_0x4fcded['plugins']['get'](_0x52b7bd)['me'],_0x5b47f5=_0x46623a[_0x4906('0xa')](_0x4906('0x6b'))[_0x4906('0x66')],{CommentsListView:_0x4e0a58,CommentThreadInputView:_0x2b5330}=_0x4fcded[_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x3c'));let _0x50136f,_0x29c3ba;this[_0x4906('0x5e')]['has'](_0x153f57['id'])?(_0x29c3ba=this[_0x4906('0x5e')]['get'](_0x153f57['id']),_0x50136f=_0x29c3ba[_0x4906('0x4a')]):(_0x50136f=new _0x5b47f5(_0x4fcded[_0x4906('0x10')],_0x153f57,_0x2e022f,{'disableComments':this[_0x4906('0x2d')],'editorConfig':_0x46623a[_0x4906('0xa')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x46623a[_0x4906('0xa')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x46623a[_0x4906('0xa')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x46623a[_0x4906('0xa')](_0x4906('0x2b')),'formatDateTime':_0x45b533(_0x46623a[_0x4906('0xa')](_0x4906('0x10'))),'CommentView':_0x46623a[_0x4906('0xa')]('comments')[_0x4906('0x3a')],'CommentsListView':_0x4e0a58,'CommentThreadInputView':_0x2b5330}),_0x50136f[_0x4906('0x4d')]['on']('execute',()=>{_0x4fcded[_0x4906('0x52')][_0x4906('0x67')][_0x4906('0x15')]();}),_0x50136f['discardButton']['on'](_0x4906('0x48'),()=>{_0x4fcded[_0x4906('0x52')][_0x4906('0x67')]['focus']();}),_0x29c3ba=_0x459789[_0x4906('0x42')](this[_0x4906('0x37')][_0x4906('0x10')],_0x50136f),_0x29c3ba[_0x4906('0x2a')](_0x4906('0x1c'))['to'](_0x50136f,'isDirty'),_0x29c3ba[_0x4906('0x2a')](_0x4906('0x18'))['to'](_0x50136f),_0x29c3ba['bind'](_0x4906('0x2'))['to'](_0x50136f,_0x4906('0x2'),_0xea2b7a=>'suggestion-'+_0xea2b7a),this[_0x4906('0x5e')][_0x4906('0x11')](_0x153f57['id'],_0x29c3ba));const _0x5a9ff5=_0x56c92f[_0x4906('0x46')](_0x153f57[_0x4906('0x1a')],_0x50136f),_0x56391e=new _0x2a569d(_0x4fcded,_0x153f57,_0x50136f,_0x5a9ff5),_0x17206a=_0x153f57['getAllAdjacentSuggestions']()[_0x4906('0x5d')](_0x5b1f61=>_0x5b1f61[_0x4906('0x65')]);_0x50136f['descriptionParts']=_0x4fcded[_0x4906('0x5b')]['get']('TrackChangesEditing')[_0x4906('0x12')][_0x4906('0x30')](_0x17206a),this[_0x4906('0x22')][_0x4906('0x11')](_0x153f57,_0x56391e),this['_viewToController'][_0x4906('0x11')](_0x50136f,_0x56391e);const _0x894dfc=_0x459789[_0x4906('0x54')]({'view':_0x29c3ba,'target':()=>{const _0x3fa19b=[],_0x304cdd=_0x153f57['getAllAdjacentSuggestions']()[_0x4906('0x5d')](_0x2e9189=>_0x2e9189[_0x4906('0x65')]);for(const _0x1c2667 of _0x304cdd)_0x3fa19b[_0x4906('0x51')](..._0x1c2667[_0x4906('0x1e')]());return _0x12132d(_0x4fcded['editing'],_0x3fa19b);},'type':()=>'suggestion-'+_0x56391e[_0x4906('0x67')][_0x4906('0x2')]});_0x56c92f[_0x4906('0x38')](_0x50136f,_0x894dfc),_0x459789[_0x4906('0x23')](_0x894dfc),_0x205556[_0x4906('0x40')](_0x894dfc);}['_destroyController'](_0x22f27a){const _0x57117d=this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x55')),_0xc91f94=this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x0')),_0x236854=this[_0x4906('0x22')]['get'](_0x22f27a),_0x4ab308=_0x236854[_0x4906('0x67')],_0xc02953=_0xc91f94[_0x4906('0x3d')](_0x4ab308);_0x57117d[_0x4906('0x41')](_0x4ab308),_0xc02953&&_0xc91f94[_0x4906('0x4c')](_0xc02953),this[_0x4906('0x22')]['delete'](_0x22f27a),this['_viewToController'][_0x4906('0x61')](_0x4ab308),_0x236854[_0x4906('0xb')]();}[_0x4906('0x6c')](_0x2c03ca){if(!_0x2c03ca[_0x4906('0x65')]||!this[_0x4906('0x22')][_0x4906('0x60')](_0x2c03ca))return;const _0x5ab308=this[_0x4906('0x37')]['plugins']['get'](_0x4906('0x36')),_0x4a840d=this[_0x4906('0x22')][_0x4906('0xa')](_0x2c03ca),_0x54e709=_0x2c03ca['getAllAdjacentSuggestions']();_0x4a840d[_0x4906('0x67')][_0x4906('0x14')]=_0x5ab308[_0x4906('0x12')][_0x4906('0x30')](_0x54e709);}[_0x4906('0xb')](){for(const _0x398634 of this[_0x4906('0x22')]['keys']())this['_destroyController'](_0x398634);for(const _0x35abcc of this[_0x4906('0x5e')][_0x4906('0x9')]())_0x35abcc[_0x4906('0x4a')][_0x4906('0xb')]();super[_0x4906('0xb')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3572=['change:isDirty','_pendingAction','_editor','execute','model','acceptSuggestion','canDiscard','_acceptCommand','locale','canEditAt','_removePendingAction','unbind','isDirty','plugins','bind','view','_discardCommand','isEnabled','canAccept','getRanges','_setPendingAction','get','add','listenTo','destroy','discardSuggestion','commands'];(function(_0x266911,_0x357283){const _0x1d4ef0=function(_0x135a75){while(--_0x135a75){_0x266911['push'](_0x266911['shift']());}};_0x1d4ef0(++_0x357283);}(_0x3572,0x6e));const _0x1d4e=function(_0x266911,_0x357283){_0x266911=_0x266911-0x0;let _0x1d4ef0=_0x3572[_0x266911];return _0x1d4ef0;};import{ObservableMixin as _0x1efb97}from'ckeditor5/src/utils';import{getTranslation as _0xf18c3e}from'../utils/common-translations';export default class Ft extends _0x1efb97(){constructor(_0x181909,_0x4c1320,_0x528e64,_0x1c1d9e){super(),this[_0x1d4e('0x2')]=_0x4c1320,this['view']=_0x528e64,this['commentThreadController']=_0x1c1d9e,this[_0x1d4e('0x0')]=_0x181909,this['_acceptCommand']=_0x181909[_0x1d4e('0x18')][_0x1d4e('0x13')](_0x1d4e('0x3')),this[_0x1d4e('0xe')]=_0x181909[_0x1d4e('0x18')][_0x1d4e('0x13')](_0x1d4e('0x17')),this[_0x1d4e('0xd')][_0x1d4e('0xc')](_0x1d4e('0xf'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x451b5d,_0x81bb7c)=>_0x451b5d||_0x81bb7c),this[_0x1d4e('0xd')][_0x1d4e('0xc')](_0x1d4e('0x10'))['to'](this[_0x1d4e('0x5')],_0x1d4e('0xf'),_0x1ad7d7=>_0x1ad7d7&&this[_0x1d4e('0x0')][_0x1d4e('0x2')]['canEditAt'](_0x4c1320[_0x1d4e('0x11')]())),this[_0x1d4e('0xd')][_0x1d4e('0xc')](_0x1d4e('0x4'))['to'](this[_0x1d4e('0xe')],'isEnabled',_0x3af351=>_0x3af351&&this[_0x1d4e('0x0')][_0x1d4e('0x2')][_0x1d4e('0x7')](_0x4c1320[_0x1d4e('0x11')]())),this[_0x1d4e('0x1a')]=null,_0x528e64[_0x1d4e('0xa')]&&this[_0x1d4e('0x12')](),this[_0x1d4e('0x15')](_0x528e64,_0x1d4e('0x3'),()=>this[_0x1d4e('0x3')]()),this[_0x1d4e('0x15')](_0x528e64,_0x1d4e('0x17'),()=>this[_0x1d4e('0x17')]()),this[_0x1d4e('0x15')](_0x528e64,_0x1d4e('0x19'),()=>{_0x528e64['isDirty']?this[_0x1d4e('0x12')]():this[_0x1d4e('0x8')]();});}[_0x1d4e('0x3')](){this[_0x1d4e('0x5')][_0x1d4e('0x1')](this[_0x1d4e('0x2')]['id']);}[_0x1d4e('0x17')](){this['_discardCommand'][_0x1d4e('0x1')](this[_0x1d4e('0x2')]['id']);}[_0x1d4e('0x16')](){this[_0x1d4e('0xd')][_0x1d4e('0x9')](_0x1d4e('0xf')),this['view'][_0x1d4e('0x9')](_0x1d4e('0x10')),this[_0x1d4e('0xd')][_0x1d4e('0x9')](_0x1d4e('0x4')),this['stopListening'](),this['commentThreadController'][_0x1d4e('0x16')](),this[_0x1d4e('0x1a')]&&this[_0x1d4e('0x8')]();}[_0x1d4e('0x12')](){const _0x4b9305=_0xf18c3e(this[_0x1d4e('0x0')][_0x1d4e('0x6')],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor'][_0x1d4e('0xb')][_0x1d4e('0x13')]('PendingActions')[_0x1d4e('0x14')](_0x4b9305);}[_0x1d4e('0x8')](){null!==this[_0x1d4e('0x1a')]&&this[_0x1d4e('0x0')][_0x1d4e('0xb')][_0x1d4e('0x13')]('PendingActions')['remove'](this[_0x1d4e('0x1a')]),this['_pendingAction']=null;}}
23
+ const _0x1f5f=['destroy','unbind','get','_editor','_pendingAction','PendingActions','commands','stopListening','getRanges','remove','isEnabled','canAccept','_acceptCommand','canDiscard','bind','commentThreadController','add','discardSuggestion','acceptSuggestion','model','_discardCommand','execute','PENDING_ACTION_SUGGESTION','_removePendingAction','listenTo','locale','isDirty','view','_setPendingAction','plugins'];(function(_0x5a6d08,_0x1f5ff7){const _0x49da17=function(_0x2be3a6){while(--_0x2be3a6){_0x5a6d08['push'](_0x5a6d08['shift']());}};_0x49da17(++_0x1f5ff7);}(_0x1f5f,0x1e0));const _0x49da=function(_0x5a6d08,_0x1f5ff7){_0x5a6d08=_0x5a6d08-0x0;let _0x49da17=_0x1f5f[_0x5a6d08];return _0x49da17;};import{ObservableMixin as _0x37f863}from'ckeditor5/src/utils';import{getTranslation as _0x10669d}from'../utils/common-translations';export default class Ft extends _0x37f863(){constructor(_0x457a60,_0x1af259,_0x5bb2a8,_0x49c05d){super(),this[_0x49da('0x13')]=_0x1af259,this['view']=_0x5bb2a8,this['commentThreadController']=_0x49c05d,this['_editor']=_0x457a60,this[_0x49da('0xc')]=_0x457a60[_0x49da('0x6')][_0x49da('0x2')]('acceptSuggestion'),this[_0x49da('0x14')]=_0x457a60[_0x49da('0x6')][_0x49da('0x2')](_0x49da('0x11')),this['view'][_0x49da('0xe')](_0x49da('0xa'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x488810,_0x35fe27)=>_0x488810||_0x35fe27),this['view'][_0x49da('0xe')]('canAccept')['to'](this[_0x49da('0xc')],'isEnabled',_0x255ff3=>_0x255ff3&&this[_0x49da('0x3')][_0x49da('0x13')]['canEditAt'](_0x1af259[_0x49da('0x8')]())),this[_0x49da('0x1b')][_0x49da('0xe')]('canDiscard')['to'](this[_0x49da('0x14')],_0x49da('0xa'),_0x309673=>_0x309673&&this[_0x49da('0x3')]['model']['canEditAt'](_0x1af259[_0x49da('0x8')]())),this[_0x49da('0x4')]=null,_0x5bb2a8[_0x49da('0x1a')]&&this['_setPendingAction'](),this['listenTo'](_0x5bb2a8,'acceptSuggestion',()=>this[_0x49da('0x12')]()),this[_0x49da('0x18')](_0x5bb2a8,_0x49da('0x11'),()=>this['discardSuggestion']()),this['listenTo'](_0x5bb2a8,'change:isDirty',()=>{_0x5bb2a8[_0x49da('0x1a')]?this[_0x49da('0x1c')]():this[_0x49da('0x17')]();});}[_0x49da('0x12')](){this[_0x49da('0xc')][_0x49da('0x15')](this[_0x49da('0x13')]['id']);}[_0x49da('0x11')](){this[_0x49da('0x14')]['execute'](this[_0x49da('0x13')]['id']);}[_0x49da('0x0')](){this['view'][_0x49da('0x1')](_0x49da('0xa')),this[_0x49da('0x1b')][_0x49da('0x1')](_0x49da('0xb')),this[_0x49da('0x1b')][_0x49da('0x1')](_0x49da('0xd')),this[_0x49da('0x7')](),this[_0x49da('0xf')][_0x49da('0x0')](),this[_0x49da('0x4')]&&this[_0x49da('0x17')]();}[_0x49da('0x1c')](){const _0x49a05f=_0x10669d(this[_0x49da('0x3')][_0x49da('0x19')],_0x49da('0x16'));this[_0x49da('0x4')]=this[_0x49da('0x3')][_0x49da('0x1d')][_0x49da('0x2')]('PendingActions')[_0x49da('0x10')](_0x49a05f);}['_removePendingAction'](){null!==this['_pendingAction']&&this[_0x49da('0x3')][_0x49da('0x1d')][_0x49da('0x2')](_0x49da('0x5'))[_0x49da('0x9')](this[_0x49da('0x4')]),this[_0x49da('0x4')]=null;}}