@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230819.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 _0x4775=['removeClass','isLocal','containerElement','formatInline:join','getAllAdjacentSuggestions','enableCommand','bindElementToMarker','suggestionUnloaded','insertion:join','_commentsRepository','getChangedMarkers','trackChanges','locale','open','getCustomProperty','push','writer','dataDowncast','editing','getIntersection','getItems','isSelectable','isObject','nodeAfter','markMultiRangeBlockFormat','pluginName','discardAllSuggestions','commands','before','updateSuggestion','markerToHighlight','start','addSuggestionData','_breakSuggestionMarker','addSuggestion','document','formatInline','execute','formatBlock:discard','containsRangeInObject','removeMarker:suggestion:formatBlock','containsRange','insertion:accept','ready','markerName','insertion','getSuggestionCallback','isIntersectingWithRange','removeMarker','fromCharCode','filter','creator','_customCallbacks','isNextTo','rejected','PendingActions','addUser','split','commentThread','change','formatBlock:','authoredAt','markMultiRangeInsertion','createSelection','showSuggestionHighlights','value','clone','getUser','parent','length','_adapter','some','addMarkerName','stopListening','setAttribute','howMany','always','getSuggestion','accepted','$textProxy','createPositionAt','end','removeComment','ck-suggestion-marker--active','never','CommentsRepository','stop','deletion:chain','backward','requires','join','includes','skipNestingCheck','range','accept','documentSelection','isExternal','subType','attributes','getFirstRange','isBefore','fetchCommentThread','options','_updateSuggestionData','differ','rootName','change:_saved','deletion','_joinWithAdjacentSuggestions','acceptSelectedSuggestions','data','hasComments','collaboration.channelId','authorName','low','originalSuggestionId','widget','_rangeIsInLocalUserInsertion','ck-suggestion-marker-formatBlock','_handleNewSuggestionMarker','ck-suggestion-marker-','track-changes-suggestion-data-mismatch','from','toViewElement','head','toJSON','_findSuggestions','getAncestors','track-changes-adapter-already-set','_checkSuggestionCorrectness','_addSuggestionMarker','move','has','addClass','createPositionAfter','fromRange','removeAttribute','author','position','_suggestionFactory','getShiftedBy','isMultiRange','previous','delete','_isForcedDefaultExecutionBlock','map','addMarker:suggestion:formatBlock','_createSuggestion','getLastMatchingPosition','detach','track-changes-adapter-missing-getsuggestion','update:suggestion','name','$graveyard','containsItem','discardSelectedSuggestions','formatBlock:accept','enqueueChange','discard','suggestion','insertContent','dataToMarker','insertion:','sort','containsPosition','registerPostFixer','get','addComment','clear','_splitMarkerName','isEqual','activeMarkers','_joinSuggestions','values','group','fire','_onDiscard','schema','_model','markInsertion','_removeSuggestion','addRange','after','_suggestions','resolve','_suggestionState','isTouching','dataReady','createdAt','next','marker-count','formatInline:','markBlockFormat','for','_trackFormatChanges','markMultiRangeDeletion','catch','then','notReady','selection','trackChangesCommand','_cutOutSuggestionMarker','upcast','addHighlight','editor','formatBlock','registerCustomCallback','removeMarkers','_setSuggestionData','applyOperation','getAttribute','_enabledCommands','getNearestSelectionRange','setTo','isCollapsed','deleteContent','isDocumentOperation','isOwn','buildSuggestion','_editor','listenTo','createPositionBefore','consumable','element','external:','isBlock','removed','adapter','TrackChangesEditing','lowest','createElement','multipleBlocks','splice','getMultiRangeId','isRemovable','isInsideObject','init','data-suggestion','model','suggestion-type','_setSuggestionRange','markerReady','trackChanges.mergeNestedSuggestions','createRange','config','root','error-saving-suggestion-data-suggestion-discarded','forceDefaultExecution','return','targetPosition','getDifference','_addThreadToSuggestion','markerToData','size','forward','commandName','_refreshSuggestionsChain','change:activeMarkers','_defaultCallbacks','formatInline:accept','addMarker:suggestion','suggestion:','track-changes-command-not-found','getFirstMarker','updateMarker','add','isUndo','set','isInContent','formatGroupId','rethrowUnexpectedError','item','_registerDefaultCallbacks','conversion','getWalker','consume','enableReadOnlyMode','isAtEnd','isLimit','_getAuthorFromId','getRanges','formatInline:discard','discardSuggestion','elementEnd','unbindElementFromMarkerName','mapper','oldRange','batch','type','_mergeNestedSuggestions','markInlineFormat','suggestionLoaded','getSuggestions','chain','@external','multi','Users','every','define','track-changes-suggestion-not-found','acceptAllSuggestions','setSelection','elementStart','nodeBefore','getChanges','deletion:','high','isAfter','createRangeIn','ck-suggestion-marker','acceptSuggestion','highest','_saved','plugins','addMarker','editingDowncast','_getSuggestionData','markerNameToElements','formatBlock:join','newRange','normal'];(function(_0x265007,_0x4775e7){const _0x3b4a1c=function(_0x5aecbe){while(--_0x5aecbe){_0x265007['push'](_0x265007['shift']());}};_0x3b4a1c(++_0x4775e7);}(_0x4775,0x105));const _0x3b4a=function(_0x265007,_0x4775e7){_0x265007=_0x265007-0x0;let _0x3b4a1c=_0x4775[_0x265007];return _0x3b4a1c;};import{Plugin as _0x1903b8,PendingActions as _0x566bfa}from'ckeditor5/src/core';import{LiveRange as _0x52f246}from'ckeditor5/src/engine';import{CKEditorError as _0xa8742b,uid as _0x43cb01,priorities as _0xafe4ad,logWarning as _0x2fab1c}from'ckeditor5/src/utils';import{toWidget as _0x3e37f9}from'ckeditor5/src/widget';import{Users as _0x5eb117,hashObject as _0x5670c4}from'ckeditor5-collaboration/src/collaboration-core';import _0x5d2dd5 from'./commands/trackchangescommand';import _0x2a2cd7 from'./commands/acceptsuggestioncommand';import _0x1eed5a from'./commands/discardsuggestioncommand';import _0x513acc from'./commands/executeonallsuggestionscommand';import _0x4f101d from'./commands/executeonselectedsuggestionscommand';import _0x143fbf from'./suggestion';import _0x1e8e67 from'./suggestiondescriptionfactory';import _0x52ad7a from'./integrations/alignment';import _0x1715fb from'./integrations/basicstyles';import _0x2ecda9 from'./integrations/blockquote';import _0x202e28 from'./integrations/ckbox';import _0x43c5a3 from'./integrations/codeblock';import _0x26a933 from'./integrations/comments';import _0x3ddc3f from'./integrations/deletecommand';import _0x1aaab4 from'./integrations/documentlist';import _0x25fb3a from'./integrations/entercommand';import _0x4b6a29 from'./integrations/findandreplace';import _0x3eaab6 from'./integrations/font';import _0x52d76d from'./integrations/formatpainter';import _0x55f6b0 from'./integrations/heading';import _0x38ec76 from'./integrations/highlight';import _0x2e59c0 from'./integrations/horizontalline';import _0xcac70a from'./integrations/htmlembed';import _0x201676 from'./integrations/image';import _0x4c1f8c from'./integrations/imagereplace';import _0x544274 from'./integrations/importword';import _0x15a5ea from'./integrations/indent';import _0x2eff32 from'./integrations/inputcommand';import _0x71acf6 from'./integrations/link';import _0x19e534 from'./integrations/list';import _0x312415 from'./integrations/listproperties';import _0x30ca14 from'./integrations/mediaembed';import _0x8043e8 from'./integrations/mention';import _0x17ad13 from'./integrations/pagebreak';import _0x4d8d9c from'./integrations/paragraph';import _0x3573d8 from'./integrations/removeformat';import _0x152e2e from'./integrations/restrictededitingmode';import _0x10bb2b from'./integrations/shiftentercommand';import _0x3b2fe6 from'./integrations/standardeditingmode';import _0x576d1c from'./integrations/style';import _0x5bb05b from'./integrations/table';import _0x3e212c from'./integrations/tablemergesplit';import _0x920a65 from'./integrations/tableheadings';import _0x1a05a1 from'./integrations/tableclipboard';import _0x379522 from'./integrations/tablecolumnresize';import _0x14243f from'./integrations/template';import _0x2be2ab from'./integrations/tableofcontents';import _0x5ec3ba from'./integrations/title';import _0x4c9183 from'./integrations/undo';import{getTranslation as _0x55976c}from'./utils/common-translations';import _0x2cc4e6 from'./integrations/tablecaption';import _0x5c993b from'./integrations/documentlistproperties';import _0x7684b8 from'./integrations/tableproperties';export default class p extends _0x1903b8{static get[_0x3b4a('0x95')](){return[_0x3b4a('0x91'),_0x5eb117,_0x566bfa,_0x52ad7a,_0x1715fb,_0x2ecda9,_0x202e28,_0x43c5a3,_0x26a933,_0x3ddc3f,_0x1aaab4,_0x5c993b,_0x25fb3a,_0x4b6a29,_0x3eaab6,_0x52d76d,_0x55f6b0,_0x38ec76,_0x2e59c0,_0xcac70a,_0x201676,_0x4c1f8c,_0x544274,_0x15a5ea,_0x2eff32,_0x71acf6,_0x19e534,_0x312415,_0x30ca14,_0x8043e8,_0x17ad13,_0x4d8d9c,_0x3573d8,_0x152e2e,_0x10bb2b,_0x3b2fe6,_0x576d1c,_0x5bb05b,_0x3e212c,_0x920a65,_0x2cc4e6,_0x1a05a1,_0x379522,_0x2be2ab,_0x7684b8,_0x14243f,_0x5ec3ba,_0x4c9183];}static get[_0x3b4a('0x55')](){return _0x3b4a('0x120');}constructor(_0x4d52c6){function _0x4ce972(_0x41aa02){return _0x41aa02[_0x3b4a('0xcd')](_0x50b333=>String[_0x3b4a('0x6d')](_0x50b333))[_0x3b4a('0x96')]('');}super(_0x4d52c6),this['set'](_0x3b4a('0xe7'),[]),this['on'](_0x3b4a('0x13d'),(_0x228c73,_0x1754f4,_0x1b9c50,_0x1f7728)=>{this['_model'][_0x3b4a('0x77')](()=>{for(const _0x2394f8 of[..._0x1f7728,..._0x1b9c50])this[_0x3b4a('0xee')]['markers']['has'](_0x2394f8)&&_0x4d52c6[_0x3b4a('0x4e')]['reconvertMarker'](_0x2394f8);});}),this['_descriptionFactory']=new _0x1e8e67(this[_0x3b4a('0x108')][_0x3b4a('0x12a')][_0x3b4a('0xed')],this[_0x3b4a('0x108')][_0x3b4a('0x48')]),this[_0x3b4a('0x82')]=null,this[_0x3b4a('0xc7')]=new Dt(this['editor']),this[_0x3b4a('0xf3')]=new Map(),this[_0x3b4a('0x45')]=_0x4d52c6[_0x3b4a('0x34')][_0x3b4a('0xe2')](_0x3b4a('0x91')),this[_0x3b4a('0x10f')]=new Set(),this[_0x3b4a('0xee')]=this[_0x3b4a('0x108')][_0x3b4a('0x12a')],this['_suggestionState']=new WeakMap(),this[_0x3b4a('0xcc')]=!0x1,_0x4d52c6[_0x3b4a('0x130')][_0x3b4a('0x25')]('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4d52c6[_0x3b4a('0x130')][_0x3b4a('0xe2')]('trackChanges.trackFormatChanges'),_0x4d52c6[_0x3b4a('0x130')][_0x3b4a('0x25')](_0x3b4a('0x12e'),!0x0),this[_0x3b4a('0x1c')]=_0x4d52c6['config'][_0x3b4a('0xe2')](_0x3b4a('0x12e')),this[_0x3b4a('0x104')]=new _0x5d2dd5(_0x4d52c6,this[_0x3b4a('0x10f')]),this[_0x4ce972([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4ce972([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x36]);}[_0x3b4a('0x128')](){const _0x4b3020=this[_0x3b4a('0x108')];_0x4b3020[_0x3b4a('0xc')]['for']('editingDowncast')[_0x3b4a('0x5a')]({'model':_0x3b4a('0xdb'),'view':_0x3caead=>{const {id:_0x3e1517,type:_0x6c2121}=this[_0x3b4a('0xe5')](_0x3caead[_0x3b4a('0x68')]),_0x37b7fb=['ck-suggestion-marker',_0x3b4a('0xb4')+_0x6c2121];let _0x43ee19=0xbb8;return this['activeMarkers']['includes'](_0x3caead[_0x3b4a('0x68')])&&(_0x37b7fb[_0x3b4a('0x4b')](_0x3b4a('0x8f')),_0x43ee19=0xbc2),_0x3b4a('0xa7')==_0x6c2121&&(_0x43ee19+=0x5),{'classes':_0x37b7fb,'attributes':{'data-suggestion':_0x3e1517},'priority':_0x43ee19};}}),_0x4b3020[_0x3b4a('0xc')][_0x3b4a('0xfd')](_0x3b4a('0x4d'))[_0x3b4a('0x4')](_0x54f897=>{_0x54f897['on'](_0x3b4a('0x140'),(_0x41ec34,_0x10b2c6,_0x15c492)=>{if(!_0x15c492[_0x3b4a('0xa2')][_0x3b4a('0x7c')])return;const _0x80cc4f=_0x10b2c6[_0x3b4a('0xa')];if(!_0x80cc4f)return;const _0x9acce3=_0x15c492[_0x3b4a('0x18')][_0x3b4a('0xb7')](_0x80cc4f);_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xed')][_0x3b4a('0x52')](_0x80cc4f)&&_0x9acce3&&!_0x9acce3[_0x3b4a('0x4a')](_0x3b4a('0xb0'))&&_0x9acce3['is'](_0x3b4a('0x3e'))&&_0x3e37f9(_0x9acce3,_0x15c492[_0x3b4a('0x4c')]);},{'priority':'high'});}),_0x4b3020['conversion'][_0x3b4a('0xfd')](_0x3b4a('0x4d'))['markerToHighlight']({'model':_0x3b4a('0xdb'),'view':(_0x30d231,_0x2f5b39)=>{if(!_0x2f5b39[_0x3b4a('0xa2')][_0x3b4a('0x7c')])return null;const {type:_0x4acf32}=this['_splitMarkerName'](_0x30d231[_0x3b4a('0x68')]);return{'classes':[_0x3b4a('0x30'),_0x3b4a('0xb4')+_0x4acf32],'priority':0xbb8};}});const _0x2b39af=({showActiveMarkers:_0x543f13=!0x0}={})=>(_0x5d71f0,_0x1e9b80,_0x31d20e)=>{if(!_0x1e9b80['item'])return;if(_0x1e9b80[_0x3b4a('0xa')]['is'](_0x3b4a('0x103')))return void _0x31d20e[_0x3b4a('0x11a')][_0x3b4a('0xe')](_0x1e9b80[_0x3b4a('0xa')],_0x5d71f0[_0x3b4a('0xd4')]);const _0x46db15=_0x31d20e[_0x3b4a('0x18')][_0x3b4a('0xb7')](_0x1e9b80[_0x3b4a('0xa')]);if(!(_0x1e9b80[_0x3b4a('0xa')]['is']('element')&&_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xed')]['isBlock'](_0x1e9b80[_0x3b4a('0xa')])&&!_0x46db15[_0x3b4a('0x4a')]('addHighlight')))return;const {id:_0x41b339}=this['_splitMarkerName'](_0x1e9b80[_0x3b4a('0x68')]);_0x31d20e[_0x3b4a('0x4c')][_0x3b4a('0xc1')]([_0x3b4a('0x30'),'ck-suggestion-marker-formatBlock'],_0x46db15),_0x31d20e[_0x3b4a('0x4c')][_0x3b4a('0x86')](_0x3b4a('0x129'),_0x41b339,_0x46db15),_0x31d20e[_0x3b4a('0x18')][_0x3b4a('0x42')](_0x46db15,_0x1e9b80['markerName']),_0x543f13&&(this[_0x3b4a('0xe7')][_0x3b4a('0x97')](_0x1e9b80[_0x3b4a('0x68')])?_0x31d20e[_0x3b4a('0x4c')][_0x3b4a('0xc1')](_0x3b4a('0x8f'),_0x46db15):_0x31d20e[_0x3b4a('0x4c')][_0x3b4a('0x3c')]('ck-suggestion-marker--active',_0x46db15));for(const _0xf3380d of _0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x2f')](_0x1e9b80[_0x3b4a('0xa')])[_0x3b4a('0x50')]())_0x31d20e[_0x3b4a('0x11a')][_0x3b4a('0xe')](_0xf3380d,_0x5d71f0['name']);_0x31d20e[_0x3b4a('0x11a')]['consume'](_0x1e9b80['item'],_0x5d71f0['name']);};_0x4b3020['conversion'][_0x3b4a('0xfd')](_0x3b4a('0x4d'))['add'](_0x116048=>{_0x116048['on'](_0x3b4a('0xce'),(_0x1ac0dd,_0xc3a3f7,_0x120550)=>{_0x120550[_0x3b4a('0xa2')][_0x3b4a('0x7c')]&&_0x2b39af({'showActiveMarkers':!0x1})(_0x1ac0dd,_0xc3a3f7,_0x120550);},{'priority':_0x3b4a('0x32')});}),_0x4b3020[_0x3b4a('0xc')][_0x3b4a('0xfd')](_0x3b4a('0x4d'))[_0x3b4a('0x138')]({'model':'suggestion','view':(_0x37b05a,_0x3c385c)=>_0x3c385c[_0x3b4a('0xa2')][_0x3b4a('0x7c')]?null:{'group':'suggestion','name':_0x37b05a['substr'](0xb)}}),_0x4b3020[_0x3b4a('0xc')][_0x3b4a('0xfd')](_0x3b4a('0x106'))['elementToElement']({'view':{'name':_0x3b4a('0xdb'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x55af0a,{writer:_0x10c0cc})=>{let _0x3c487f=_0x3b4a('0x0')+_0x55af0a[_0x3b4a('0x10e')](_0x3b4a('0x12b'))+':'+_0x55af0a[_0x3b4a('0x10e')]('id');return _0x55af0a[_0x3b4a('0x10e')](_0x3b4a('0xfa'))&&(_0x3c487f+=':'+_0x55af0a['getAttribute']('marker-count')),_0x10c0cc[_0x3b4a('0x122')]('$marker',{'data-name':_0x3c487f});}}),_0x4b3020['conversion'][_0x3b4a('0xfd')](_0x3b4a('0x106'))[_0x3b4a('0xdd')]({'view':_0x3b4a('0xdb')}),_0x4b3020['conversion'][_0x3b4a('0xfd')]('editingDowncast')[_0x3b4a('0x4')](_0x5ab4ac=>{_0x5ab4ac['on'](_0x3b4a('0xce'),_0x2b39af(),{'priority':_0x3b4a('0x2d')});}),_0x4b3020[_0x3b4a('0xc')][_0x3b4a('0xfd')](_0x3b4a('0x36'))['add'](_0x1ecc33=>{_0x1ecc33['on'](_0x3b4a('0x64'),(_0x5d268e,_0x1a029e,_0x5f1c48)=>{const _0x3cd17c=_0x5f1c48[_0x3b4a('0x18')][_0x3b4a('0x38')](_0x1a029e['markerName']);if(_0x3cd17c)for(const _0x45eb89 of _0x3cd17c)_0x45eb89[_0x3b4a('0x4a')](_0x3b4a('0x107'))||(_0x5f1c48[_0x3b4a('0x4c')]['removeClass'](['ck-suggestion-marker',_0x3b4a('0xb2'),'ck-suggestion-marker--active'],_0x45eb89),_0x5f1c48[_0x3b4a('0x4c')][_0x3b4a('0xc4')](_0x3b4a('0x129'),_0x45eb89),_0x5f1c48[_0x3b4a('0x18')][_0x3b4a('0x17')](_0x45eb89,_0x1a029e[_0x3b4a('0x68')]));},{'priority':_0x3b4a('0x2d')});}),_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x5f')][_0x3b4a('0xe1')](_0x5093ca=>{let _0x4c894d=!0x1;const _0xe3e7c8=Array[_0x3b4a('0xb6')](_0x4b3020[_0x3b4a('0x12a')]['document'][_0x3b4a('0xa4')][_0x3b4a('0x46')]()),_0x7e4074=new Set();for(const {name:_0x5b2508,data:_0x1e2ca3}of _0xe3e7c8){const {group:_0xdc4f95,type:_0x2e70c5,id:_0x2b82c1}=this['_splitMarkerName'](_0x5b2508);if(_0x3b4a('0xdb')!==_0xdc4f95)continue;const _0x5a9471=this[_0x3b4a('0xf3')][_0x3b4a('0xe2')](_0x2b82c1);if(null!=_0x1e2ca3[_0x3b4a('0x3a')]){'formatInline'==_0x2e70c5&&(_0x4c894d=_0x4c894d||Mt(_0x1e2ca3[_0x3b4a('0x3a')],_0x5b2508,_0x5093ca,_0x4b3020[_0x3b4a('0x12a')]['schema']));if(_0x1e2ca3[_0x3b4a('0x3a')][_0x3b4a('0x112')]||_0x3b4a('0xd5')==_0x1e2ca3[_0x3b4a('0x3a')][_0x3b4a('0x131')][_0x3b4a('0xa5')]||_0x3b4a('0x109')==_0x2e70c5&&!Nt(_0x1e2ca3[_0x3b4a('0x3a')])||_0x3b4a('0xa7')==_0x2e70c5&&!(!_t(_0x789f08=_0x1e2ca3[_0x3b4a('0x3a')])&&!function(_0xd6df1c){return _0xd6df1c[_0x3b4a('0x5b')]['parent']==_0xd6df1c[_0x3b4a('0x8d')]['nodeBefore']&&_0xd6df1c[_0x3b4a('0x5b')]['isAtEnd'];}(_0x789f08)))_0x5093ca['removeMarker'](_0x5b2508),_0x4c894d=!0x0;else{if(!_0x5a9471||!_0x5a9471[_0x3b4a('0x7')])continue;_0x7e4074[_0x3b4a('0x4')](_0x5a9471);}}}var _0x789f08;return _0x7e4074[_0x3b4a('0x139')]>0x0&&(_0x4c894d=!!this[_0x3b4a('0xa8')](_0x7e4074)||_0x4c894d),_0x4c894d;}),_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x5f')][_0x3b4a('0xe1')](_0x33268a=>{let _0x19d8fb=!0x1;for(const _0x52a4f0 of _0x4b3020[_0x3b4a('0x12a')]['document'][_0x3b4a('0xa4')][_0x3b4a('0x2b')]()){if('insert'!=_0x52a4f0[_0x3b4a('0x1b')])continue;const _0x4f1d88=_0x52a4f0[_0x3b4a('0xc6')][_0x3b4a('0xc8')](_0x52a4f0[_0x3b4a('0x81')]);if(_0x4f1d88[_0x3b4a('0x10')])for(const _0x32f45b of this[_0x3b4a('0xf3')][_0x3b4a('0xe9')]()){if(_0x32f45b[_0x3b4a('0xc9')]||!_0x32f45b[_0x3b4a('0x7')])continue;if('formatBlock'!=_0x32f45b['type'])continue;const _0x3a7c14=_0x32f45b[_0x3b4a('0x9f')]();if(_0x3a7c14['start'][_0x3b4a('0x80')]!=_0x3a7c14[_0x3b4a('0x8d')][_0x3b4a('0x80')]&&_0x3a7c14[_0x3b4a('0x8d')][_0x3b4a('0xe6')](_0x52a4f0[_0x3b4a('0xc6')])){const _0x213967=_0x4b3020[_0x3b4a('0x12a')]['createRange'](_0x3a7c14[_0x3b4a('0x5b')],_0x4f1d88);_0x33268a[_0x3b4a('0x3')](_0x32f45b[_0x3b4a('0x2')](),{'range':_0x213967}),_0x19d8fb=!0x0;}}}return _0x19d8fb;}),_0x4b3020[_0x3b4a('0x12a')]['markers']['on'](_0x3b4a('0xd3'),(_0x4068e5,_0x1ff5ff,_0x551859)=>{if(null==_0x551859){const {id:_0x32b2cb}=this[_0x3b4a('0xe5')](_0x1ff5ff[_0x3b4a('0xd4')]),_0x47c379=this[_0x3b4a('0xf3')][_0x3b4a('0xe2')](_0x32b2cb);_0x47c379&&_0x47c379['addMarkerName'](_0x1ff5ff[_0x3b4a('0xd4')]);}}),_0x4b3020[_0x3b4a('0x12a')]['document']['on']('change:data',()=>{const _0x54240b=Array[_0x3b4a('0xb6')](_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x5f')]['differ'][_0x3b4a('0x46')]())['filter'](_0x2271ee=>_0x3b4a('0xdb')===this[_0x3b4a('0xe5')](_0x2271ee[_0x3b4a('0xd4')])[_0x3b4a('0xea')]);if(0x0===_0x54240b[_0x3b4a('0x81')])return;_0x54240b[_0x3b4a('0xdf')]((_0x262804,_0x84c0d3)=>{const _0x57f33d=_0x262804[_0x3b4a('0xaa')][_0x3b4a('0x19')],_0x4daa53=_0x84c0d3[_0x3b4a('0xaa')]['oldRange'];return null===_0x57f33d&&null===_0x4daa53?0x0:null===_0x57f33d&&null!==_0x4daa53?-0x1:null!==_0x57f33d&&null===_0x4daa53?0x1:_0x57f33d[_0x3b4a('0x5b')][_0x3b4a('0xa0')](_0x4daa53['start'])?-0x1:0x1;});const _0x5bf437=new Set(),_0xc2371=new Set();for(const {name:_0x4eaab7,data:_0x4a1377}of _0x54240b){const {id:_0x43df55}=this[_0x3b4a('0xe5')](_0x4eaab7);if(null===_0x4a1377[_0x3b4a('0x19')]){const _0x1d9eec=this[_0x3b4a('0xb3')](_0x4eaab7);_0xc2371['add'](_0x1d9eec);}else{const _0x4db15=this[_0x3b4a('0xf3')][_0x3b4a('0xe2')](_0x43df55);null!==_0x4a1377[_0x3b4a('0x3a')]||_0x4db15['isInContent']?(_0x5bf437['add'](_0x4db15[_0x3b4a('0xb8')]),_0xc2371[_0x3b4a('0x4')](_0x4db15)):this[_0x3b4a('0xf0')](_0x4db15);}}_0xc2371[_0x3b4a('0x139')]>0x0&&this[_0x3b4a('0x13c')](_0xc2371);for(const _0x2ebc37 of _0x5bf437)this[_0x3b4a('0xeb')]('suggestionChanged',_0x2ebc37);}),_0x4b3020[_0x3b4a('0x12a')]['on'](_0x3b4a('0x10d'),(_0x1f1a3d,_0x52232e)=>{const _0x1d41b6=_0x52232e[0x0];if(!this[_0x3b4a('0xf3')]['size'])return;if(!_0x1d41b6[_0x3b4a('0x114')])return;if(_0x1d41b6[_0x3b4a('0x1a')][_0x3b4a('0x5')]||!_0x1d41b6['batch'][_0x3b4a('0x3d')])return;let _0xb3a7ea,_0x2e93e8;switch(_0x1d41b6[_0x3b4a('0x1b')]){case'insert':_0xb3a7ea=_0x4b3020['model'][_0x3b4a('0x8c')](_0x1d41b6[_0x3b4a('0xc6')]),_0x2e93e8=_0xb3a7ea[_0x3b4a('0xc8')](_0x1d41b6[_0x3b4a('0x87')]);break;case _0x3b4a('0x75'):_0xb3a7ea=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x8c')](_0x1d41b6['splitPosition']),_0x2e93e8=_0x4b3020['model']['createPositionAt'](_0x1d41b6['moveTargetPosition']);break;case _0x3b4a('0xbf'):_0xb3a7ea=_0x4b3020[_0x3b4a('0x12a')]['createPositionAt'](_0x1d41b6[_0x3b4a('0x135')]),_0x2e93e8=_0xb3a7ea[_0x3b4a('0xc8')](_0x1d41b6[_0x3b4a('0x87')]);break;default:return;}const _0x1287e7=_0x4b3020['model'][_0x3b4a('0x12f')](_0xb3a7ea,_0x2e93e8);_0x4b3020[_0x3b4a('0x12a')]['change'](()=>{for(const {suggestion:_0x409b43,meta:_0x4298d8}of this[_0x3b4a('0xba')](_0x1287e7)){if(_0x409b43[_0x3b4a('0xc9')])continue;if(_0x3b4a('0x60')==_0x409b43[_0x3b4a('0x1b')])continue;const _0x30b599=_0x409b43['data']&&_0x409b43['data'][_0x3b4a('0x123')];(_0x3b4a('0x109')!=_0x409b43['type']||'split'==_0x1d41b6[_0x3b4a('0x1b')]&&!_0x30b599)&&(_0x4298d8[_0x3b4a('0x63')]||'insertion'==_0x409b43[_0x3b4a('0x1b')]&&_0x4298d8[_0x3b4a('0x115')]||_0x409b43[_0x3b4a('0x9f')]()[_0x3b4a('0x65')](_0x1287e7)&&this[_0x3b4a('0x5d')](_0x409b43,_0xb3a7ea,_0x2e93e8));}});},{'priority':_0x3b4a('0x121')}),_0x4b3020['model']['on'](_0x3b4a('0x113'),(_0x24dd3c,_0x19d653)=>{const _0x37ed63=_0x19d653[0x0],_0x455801=_0x19d653[0x1];if(_0x455801&&_0x455801[_0x3b4a('0x133')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x3b4a('0x104')][_0x3b4a('0x7d')])return;if(_0x37ed63['isCollapsed'])return;const _0x416242=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xed')],{start:_0x2be23e,end:_0x4d0c77}=_0x37ed63[_0x3b4a('0x9f')](),_0x373092=_0x2be23e[_0x3b4a('0x53')]&&_0x416242[_0x3b4a('0x11')](_0x2be23e[_0x3b4a('0x53')])?null:_0x416242[_0x3b4a('0x110')](_0x2be23e,_0x3b4a('0x13a')),_0x2fb266=_0x4d0c77['nodeBefore']&&_0x416242[_0x3b4a('0x11')](_0x4d0c77[_0x3b4a('0x2a')])?null:_0x416242[_0x3b4a('0x110')](_0x4d0c77,_0x3b4a('0x94')),_0x329e57=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x12f')](_0x373092?_0x373092[_0x3b4a('0x5b')]:_0x2be23e,_0x2fb266?_0x2fb266[_0x3b4a('0x8d')]:_0x4d0c77);_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x77')](_0x47f772=>{this['markDeletion'](_0x329e57);const _0x338303=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xed')][_0x3b4a('0x110')](_0x329e57[_0x3b4a('0x5b')]);_0x37ed63['is'](_0x3b4a('0x9b'))?_0x47f772['setSelection'](_0x338303):_0x37ed63[_0x3b4a('0x111')](_0x338303);}),_0x24dd3c['stop']();},{'priority':_0xafe4ad[_0x3b4a('0x3b')]+0xa}),_0x4b3020[_0x3b4a('0x12a')]['on'](_0x3b4a('0xdc'),(_0x1970f8,_0x9c26bb)=>{const _0xce341c=_0x9c26bb[_0x9c26bb[_0x3b4a('0x81')]-0x1];_0xce341c&&_0xce341c[_0x3b4a('0x133')]||this[_0x3b4a('0xcc')]||this[_0x3b4a('0x104')]['value']&&(_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x77')](()=>{let _0xabfb4f=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xdc')](_0x9c26bb[0x0],_0x9c26bb[0x1],_0x9c26bb[0x2],{'forceDefaultExecution':!0x0});if(!_0xabfb4f)return;_0x1970f8[_0x3b4a('0x134')]=_0xabfb4f[_0x3b4a('0x7e')]();const _0x4aac9a=_0xabfb4f[_0x3b4a('0x8d')][_0x3b4a('0x2a')],_0x320f28=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xed')];_0x4aac9a&&_0x320f28[_0x3b4a('0x11d')](_0x4aac9a)&&!_0x320f28[_0x3b4a('0x52')](_0x4aac9a)&&(_0xabfb4f=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x12f')](_0xabfb4f[_0x3b4a('0x5b')],_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x8c')](_0x4aac9a,_0x3b4a('0x8d')))),this[_0x3b4a('0xef')](_0xabfb4f);}),_0x1970f8[_0x3b4a('0x92')]());},{'priority':'high'}),this[_0x3b4a('0x108')][_0x3b4a('0x57')][_0x3b4a('0x4')](_0x3b4a('0x47'),this[_0x3b4a('0x104')]),this[_0x3b4a('0x41')]('trackChanges');const _0x40c21a=new _0x2a2cd7(_0x4b3020,this[_0x3b4a('0xf3')]);_0x4b3020[_0x3b4a('0x57')][_0x3b4a('0x4')]('acceptSuggestion',_0x40c21a),this[_0x3b4a('0x41')](_0x3b4a('0x31'));const _0x1ab8a7=new _0x1eed5a(_0x4b3020,this[_0x3b4a('0xf3')]);_0x4b3020[_0x3b4a('0x57')]['add'](_0x3b4a('0x15'),_0x1ab8a7),this[_0x3b4a('0x41')](_0x3b4a('0x15')),_0x4b3020[_0x3b4a('0x57')][_0x3b4a('0x4')](_0x3b4a('0x27'),new _0x513acc(_0x4b3020,_0x40c21a,this[_0x3b4a('0xf3')])),this[_0x3b4a('0x41')](_0x3b4a('0x27')),_0x4b3020[_0x3b4a('0x57')][_0x3b4a('0x4')](_0x3b4a('0x56'),new _0x513acc(_0x4b3020,_0x1ab8a7,this[_0x3b4a('0xf3')])),this[_0x3b4a('0x41')](_0x3b4a('0x56')),_0x4b3020['commands'][_0x3b4a('0x4')](_0x3b4a('0xa9'),new _0x4f101d(_0x4b3020,_0x40c21a,this[_0x3b4a('0xf3')])),this[_0x3b4a('0x41')](_0x3b4a('0xa9')),_0x4b3020['commands'][_0x3b4a('0x4')](_0x3b4a('0xd7'),new _0x4f101d(_0x4b3020,_0x1ab8a7,this[_0x3b4a('0xf3')])),this[_0x3b4a('0x41')](_0x3b4a('0xd7'));const _0x3e28d0=_0x4b3020[_0x3b4a('0x34')]['get'](_0x3b4a('0x91'));this[_0x3b4a('0x118')](_0x3e28d0,_0x3b4a('0xe3'),(_0x129c5d,{threadId:_0x1b1ecf})=>{const _0x51cb45=this['_suggestions'][_0x3b4a('0xe2')](_0x1b1ecf);_0x51cb45&&_0x51cb45[_0x3b4a('0x76')]&&0x1===_0x51cb45[_0x3b4a('0x76')][_0x3b4a('0x81')]&&this[_0x3b4a('0xa3')](_0x1b1ecf,{'hasComments':!0x0});},{'priority':_0x3b4a('0xae')}),this[_0x3b4a('0x118')](_0x3e28d0,_0x3b4a('0x8e'),(_0x5ddfdb,{threadId:_0x9c8e2d})=>{const _0x41c82e=this['_suggestions']['get'](_0x9c8e2d);_0x41c82e&&_0x41c82e['commentThread']&&!_0x41c82e[_0x3b4a('0x76')][_0x3b4a('0x81')]&&this[_0x3b4a('0xa3')](_0x9c8e2d,{'hasComments':!0x1});},{'priority':_0x3b4a('0xae')});}set[_0x3b4a('0x11f')](_0xde2bf9){if(this['_adapter'])throw new _0xa8742b(_0x3b4a('0xbc'),this);this[_0x3b4a('0x82')]=_0xde2bf9;}get[_0x3b4a('0x11f')](){return this[_0x3b4a('0x82')];}[_0x3b4a('0x1f')]({skipNotAttached:_0x25321b=!0x1,toJSON:_0x99be9=!0x1}={}){const _0x2bbea4=[];for(const _0x5ec9b5 of this['_suggestions'][_0x3b4a('0xe9')]())_0x25321b&&!_0x5ec9b5[_0x3b4a('0x7')]||_0x2bbea4[_0x3b4a('0x4b')](_0x5ec9b5);return _0x99be9?_0x2bbea4[_0x3b4a('0xcd')](_0x56d3fc=>_0x56d3fc[_0x3b4a('0xb9')]()):_0x2bbea4;}[_0x3b4a('0x89')](_0x4564d9){const _0x566ebf=this[_0x3b4a('0xf3')][_0x3b4a('0xe2')](_0x4564d9);if(!_0x566ebf)throw new _0xa8742b(_0x3b4a('0x26'),this);return _0x566ebf;}['hasSuggestion'](_0x16aeb8){return this[_0x3b4a('0xf3')][_0x3b4a('0xc0')](_0x16aeb8);}[_0x3b4a('0x5c')](_0xd68aaf){const {authorId:_0x18bf3a,id:_0x17ed30,attributes:_0x5615eb}=_0xd68aaf,[_0x4d6c66,_0x2ef028]=_0xd68aaf[_0x3b4a('0x1b')][_0x3b4a('0x75')](':'),_0x2b397a=this[_0x3b4a('0xf3')]['get'](_0x17ed30)||this[_0x3b4a('0xcf')](_0x4d6c66,_0x2ef028,_0x17ed30,_0x18bf3a,_0x5615eb);if(this[_0x3b4a('0x137')](_0x2b397a),this[_0x3b4a('0xbd')](_0x2b397a,_0x4d6c66,_0x2ef028||null,_0x18bf3a),_0x2b397a['createdAt']=_0xd68aaf[_0x3b4a('0xf8')],_0x5615eb&&_0x5615eb['@external']){const _0x6c895b=_0x5615eb[_0x3b4a('0x21')],_0x40a5d0=this['_getExternalAuthor'](_0x6c895b[_0x3b4a('0xad')]);_0x2b397a[_0x3b4a('0x79')]=_0x6c895b[_0x3b4a('0xf8')],_0x2b397a['author']=_0x40a5d0,_0x2b397a[_0x3b4a('0x9c')]=!0x0;}else _0x2b397a[_0x3b4a('0x79')]=_0xd68aaf[_0x3b4a('0xf8')];switch(_0xd68aaf['data']&&(_0x2b397a[_0x3b4a('0xaa')]=_0xd68aaf[_0x3b4a('0xaa')]),_0xd68aaf[_0x3b4a('0x9e')]&&(_0x2b397a[_0x3b4a('0x9e')]=_0xd68aaf[_0x3b4a('0x9e')]),this[_0x3b4a('0x82')]&&this['_adapter'][_0x3b4a('0x5e')]||(_0x2b397a[_0x3b4a('0x33')]=!0x0),this[_0x3b4a('0xf5')]['get'](_0x2b397a)){case'notReady':this['_suggestionState']['set'](_0x2b397a,_0x3b4a('0xf7'));break;case'markerReady':_0x2b397a[_0x3b4a('0x7')]?(this[_0x3b4a('0xf5')][_0x3b4a('0x6')](_0x2b397a,'ready'),this['fire']('suggestionLoaded',_0x2b397a)):this[_0x3b4a('0xf5')]['set'](_0x2b397a,_0x3b4a('0x11e'));}return _0x2b397a;}[_0x3b4a('0x31')](_0x2fec04){this[_0x3b4a('0x133')](()=>{this[_0x3b4a('0x108')]['model'][_0x3b4a('0x77')](()=>{for(const _0x696285 of _0x2fec04[_0x3b4a('0x40')]())_0x696285[_0x3b4a('0x9a')]();});});}['discardSuggestion'](_0x4356df){this['forceDefaultExecution'](()=>{this[_0x3b4a('0x108')][_0x3b4a('0x12a')][_0x3b4a('0x77')](()=>{for(const _0x537ce1 of _0x4356df[_0x3b4a('0x40')]())_0x537ce1[_0x3b4a('0xda')]();});});}[_0x3b4a('0x41')](_0x42f244,_0x47f537){const _0x566c51=this[_0x3b4a('0x108')][_0x3b4a('0x57')][_0x3b4a('0xe2')](_0x42f244);if(!_0x566c51)throw new _0xa8742b(_0x3b4a('0x1'),this,{'commandName':_0x42f244});this[_0x3b4a('0x10f')][_0x3b4a('0x4')](_0x566c51),_0x47f537&&_0x566c51['on'](_0x3b4a('0x61'),(_0x10b981,_0x56c78d)=>{this[_0x3b4a('0x104')][_0x3b4a('0x7d')]&&(this['_isForcedDefaultExecutionBlock']||_0x56c78d[_0x3b4a('0x81')]>0x0&&_0x56c78d[_0x56c78d[_0x3b4a('0x81')]-0x1]&&_0x56c78d[_0x56c78d[_0x3b4a('0x81')]-0x1][_0x3b4a('0x133')]||(_0x47f537((..._0xd04656)=>_0x566c51[_0x3b4a('0x61')](..._0xd04656,{'forceDefaultExecution':!0x0}),..._0x56c78d),_0x10b981[_0x3b4a('0x92')]()));},{'priority':_0x3b4a('0x2d')});}[_0x3b4a('0x133')](_0xc41c60){let _0x67faf5,_0x439da1;const _0x111a0b=this[_0x3b4a('0xcc')];this[_0x3b4a('0xcc')]=!0x0;try{_0x67faf5=_0xc41c60();}catch(_0x7599df){_0x439da1=_0x7599df;}return _0x111a0b||(this[_0x3b4a('0xcc')]=!0x1),_0x439da1&&_0xa8742b[_0x3b4a('0x9')](_0x439da1,this),_0x67faf5;}[_0x3b4a('0xef')](_0x24c3b3,_0x16abf8=null,_0x310826={}){if(_0x24c3b3[_0x3b4a('0x112')])return null;const _0x1f9392=this[_0x3b4a('0x108')][_0x3b4a('0x34')][_0x3b4a('0xe2')]('Users')['me'];for(const {suggestion:_0x4acc3c,meta:_0x43b084}of this['_findSuggestions'](_0x24c3b3,_0x3b4a('0x69')))if(_0x43b084['isOwn']){if(!_0x43b084['isNextTo']){if(!this[_0x3b4a('0x1c')]&&_0x43b084[_0x3b4a('0x63')])continue;return _0x4acc3c;}if(_0x16abf8==_0x4acc3c['subType']){const _0x44dd4a=_0x4acc3c[_0x3b4a('0x9f')]();return _0x44dd4a['start']['isEqual'](_0x24c3b3[_0x3b4a('0x8d')])?this[_0x3b4a('0x12c')](_0x4acc3c,this[_0x3b4a('0xee')]['createRange'](_0x24c3b3['start'],_0x44dd4a[_0x3b4a('0x8d')])):this['_setSuggestionRange'](_0x4acc3c,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x44dd4a[_0x3b4a('0x5b')],_0x24c3b3['end'])),_0x4acc3c;}}const _0x9815f1=_0x43cb01(),_0x38a212=_0x1f9392['id'],_0x2bdd1d=_0x16abf8?_0x3b4a('0xde')+_0x16abf8:_0x3b4a('0x69'),_0x58818f=this['_setSuggestionData']({'id':_0x9815f1,'type':_0x2bdd1d,'createdAt':new Date(),'authorId':_0x38a212,'attributes':_0x310826});return this[_0x3b4a('0xbe')](_0x2bdd1d,_0x9815f1,_0x38a212,_0x24c3b3),_0x58818f;}[_0x3b4a('0x7a')](_0x302162,_0x13b8ba=_0x3b4a('0x22'),_0x140376={}){const _0x489d82=this['editor']['plugins'][_0x3b4a('0xe2')](_0x3b4a('0x23'))['me'],_0x175c99=this['_suggestionFactory'][_0x3b4a('0x6a')](_0x3b4a('0x69'),_0x13b8ba,_0x3b4a('0x96'));for(const _0x5b6daa of this[_0x3b4a('0x1f')]())if(_0x5b6daa[_0x3b4a('0xc5')]['id']==_0x489d82['id']&&_0x3b4a('0x69')==_0x5b6daa[_0x3b4a('0x1b')]&&_0x5b6daa[_0x3b4a('0x9d')]==_0x13b8ba&&(_0x175c99(_0x5b6daa[_0x3b4a('0x13')](),_0x302162)||_0x175c99(_0x302162,_0x5b6daa[_0x3b4a('0x13')]()))){for(const _0x58efee of _0x302162)_0x5b6daa['addRange'](_0x58efee);return _0x5b6daa;}if(this['_mergeNestedSuggestions'])for(const _0x5347d2 of _0x302162)for(const {suggestion:_0x121550,meta:_0x51d394}of this['_findSuggestions'](_0x5347d2,'insertion')){if(!_0x51d394['isOwn'])continue;let _0x1d7e9f=!0x0;for(const _0x2e7650 of _0x121550['getRanges']())for(const _0x41ad23 of _0x302162)if(!_0x2e7650[_0x3b4a('0x65')](_0x41ad23)){_0x1d7e9f=!0x1;break;}if(_0x1d7e9f)return _0x121550;}const _0x4e1307=_0x43cb01(),_0x186e62=_0x489d82['id'],_0x1ef634=_0x3b4a('0xde')+_0x13b8ba,_0x620020=this[_0x3b4a('0x10c')]({'id':_0x4e1307,'type':_0x1ef634,'createdAt':new Date(),'authorId':_0x186e62,'attributes':_0x140376});for(const _0x33f1af of _0x302162)this[_0x3b4a('0xbe')](_0x1ef634,_0x4e1307,_0x186e62,_0x33f1af,_0x143fbf[_0x3b4a('0x125')]());return _0x620020;}[_0x3b4a('0x1d')](_0x193bfe,_0x290b1e,_0x2b1bac=null,_0x16e821={}){if(_0x2b1bac=_0x2b1bac||$t(_0x290b1e),_0x193bfe[_0x3b4a('0x112')])return null;if('never'===this[_0x3b4a('0xfe')]){const _0x52d9c6=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')]('formatInline',_0x2b1bac,_0x3b4a('0x9a'));return this['forceDefaultExecution'](()=>_0x52d9c6([_0x193bfe],_0x290b1e,_0x16e821)),null;}const _0x254c0b=this[_0x3b4a('0x108')][_0x3b4a('0x34')]['get'](_0x3b4a('0x23'))['me'],_0x20ca65=[];if(_0x3b4a('0x88')!==this[_0x3b4a('0xfe')])for(const {suggestion:_0xfd2a92,meta:_0x351069}of this[_0x3b4a('0xba')](_0x193bfe,_0x3b4a('0x69')))_0x351069['isOwn']&&!_0x351069['isInsideObject']&&_0x20ca65['push'](..._0xfd2a92[_0x3b4a('0x13')]());const _0x4a0f8f=function(_0x205815,_0x3b926e){const _0x49360d=[];for(const _0xe29605 of _0x3b926e){const _0x32e3d7=_0x205815[_0x3b4a('0x4f')](_0xe29605);_0x32e3d7&&_0x49360d[_0x3b4a('0x4b')](_0x32e3d7);}return _0x49360d;}(_0x193bfe,_0x20ca65),_0x5d74be=function(_0x3e227f,_0xbf14d3){const _0x5c04ff=[_0x3e227f];for(const _0x1fc653 of _0xbf14d3){let _0x4ea557=0x0;for(;_0x4ea557<_0x5c04ff[_0x3b4a('0x81')];){const _0x25c2c5=_0x5c04ff[_0x4ea557][_0x3b4a('0x136')](_0x1fc653);_0x5c04ff[_0x3b4a('0x124')](_0x4ea557,0x1,..._0x25c2c5),_0x4ea557+=_0x25c2c5[_0x3b4a('0x81')];}}return _0x5c04ff;}(_0x193bfe,_0x20ca65);_0x4a0f8f[_0x3b4a('0x81')]&&this[_0x3b4a('0xee')][_0x3b4a('0x77')](()=>{for(const _0x31c815 of _0x4a0f8f){const _0x5eb429=this['_suggestionFactory'][_0x3b4a('0x6a')](_0x3b4a('0x60'),_0x2b1bac,_0x3b4a('0x9a'));this[_0x3b4a('0x133')](()=>_0x5eb429([_0x31c815],_0x290b1e,_0x16e821));}});for(const _0x36328c of _0x5d74be){let _0x355b3b=null,_0x99a87c=_0x36328c['start'],_0x236567=_0x36328c[_0x3b4a('0x8d')];for(const {suggestion:_0x42bda0,meta:_0x207f39}of this[_0x3b4a('0xba')](_0x36328c,_0x3b4a('0x60'))){if(!_0x207f39[_0x3b4a('0x115')])continue;if(_0x42bda0['subType']!=_0x2b1bac)continue;const _0x3f370d=_0x42bda0[_0x3b4a('0x9f')]();if(_0x3f370d[_0x3b4a('0x65')](_0x36328c,!0x0))return null;_0x99a87c=_0x99a87c[_0x3b4a('0xa0')](_0x3f370d['start'])?_0x99a87c:_0x3f370d[_0x3b4a('0x5b')],_0x236567=_0x236567[_0x3b4a('0x2e')](_0x3f370d['end'])?_0x236567:_0x3f370d['end'],_0x355b3b?_0x3f370d[_0x3b4a('0x5b')][_0x3b4a('0xa0')](_0x355b3b[_0x3b4a('0x9f')]()[_0x3b4a('0x5b')])?(_0x355b3b['removeMarkers'](),_0x355b3b=_0x42bda0):_0x42bda0[_0x3b4a('0x10b')]():_0x355b3b=_0x42bda0;}const _0x2714b7=this['_model'][_0x3b4a('0x12f')](_0x99a87c,_0x236567);if(_0x355b3b)this[_0x3b4a('0x12c')](_0x355b3b,_0x2714b7);else{const _0x2e0381=_0x43cb01(),_0x5219c2=_0x254c0b['id'];this['_setSuggestionData']({'id':_0x2e0381,'type':_0x3b4a('0xfb')+_0x2b1bac,'data':_0x290b1e,'createdAt':new Date(),'authorId':_0x5219c2,'attributes':_0x16e821}),this[_0x3b4a('0xbe')](_0x3b4a('0xfb')+_0x2b1bac,_0x2e0381,_0x5219c2,_0x2714b7);}}return null;}[_0x3b4a('0xfc')](_0x3348c8,_0x2658ba,_0x2c465b=[],_0x191164=null,_0x22d413={}){_0x2658ba[_0x3b4a('0x8')]||(_0x2658ba[_0x3b4a('0x8')]=_0x2658ba[_0x3b4a('0x13b')]),_0x2658ba[_0x3b4a('0x123')]=_0x3348c8['is']('range'),_0x191164=_0x191164||$t(_0x2658ba);const _0x1c40ea=_0x2c465b['map'](_0x1858ff=>Rt(_0x1858ff,this[_0x3b4a('0xee')])),_0x3b465f=_0x3348c8['is'](_0x3b4a('0x99'))?_0x3348c8:Rt(_0x3348c8,this['_model']);if(_0x3b4a('0x90')===this[_0x3b4a('0xfe')]){const _0x2c1960=this[_0x3b4a('0xc7')]['getSuggestionCallback'](_0x3b4a('0x109'),_0x191164,_0x3b4a('0x9a'));return this[_0x3b4a('0x133')](()=>_0x2c1960([_0x3b465f],_0x2658ba,_0x22d413)),null;}_0x1c40ea[_0x3b4a('0x4b')](_0x3b465f);let _0x41d96b=!0x0;for(const _0xe94ce of _0x1c40ea)if(!this[_0x3b4a('0xb1')](_0xe94ce)){_0x41d96b=!0x1;break;}if(_0x41d96b&&_0x3b4a('0x88')!==this[_0x3b4a('0xfe')]){const _0x2fd257=this[_0x3b4a('0xc7')]['getSuggestionCallback'](_0x3b4a('0x109'),_0x191164,_0x3b4a('0x9a'));return this[_0x3b4a('0x133')](()=>_0x2fd257([_0x3b465f],_0x2658ba,_0x22d413)),null;}let _0x53568b=null,_0x403de3=_0x3b465f['start'],_0x2574a9=_0x3b465f['end'];for(const {suggestion:_0x474571,meta:_0x1465ba}of this[_0x3b4a('0xba')](_0x3b465f,'formatBlock')){if(!_0x1465ba['isOwn']||_0x1465ba[_0x3b4a('0x71')]||_0x1465ba[_0x3b4a('0x63')]||_0x1465ba[_0x3b4a('0x127')])continue;if(_0x474571[_0x3b4a('0xaa')]['formatGroupId']!=_0x2658ba[_0x3b4a('0x8')])continue;const _0x12ff14=_0x474571[_0x3b4a('0x9f')]();if(_0x474571[_0x3b4a('0x9d')]==_0x191164){if(_0x12ff14[_0x3b4a('0x65')](_0x3b465f,!0x0))return null;_0x403de3=_0x403de3['isBefore'](_0x12ff14[_0x3b4a('0x5b')])?_0x403de3:_0x12ff14['start'],_0x2574a9=_0x2574a9['isAfter'](_0x12ff14[_0x3b4a('0x8d')])?_0x2574a9:_0x12ff14[_0x3b4a('0x8d')],_0x53568b?_0x12ff14['start'][_0x3b4a('0xa0')](_0x53568b[_0x3b4a('0x9f')]()[_0x3b4a('0x5b')])?(_0x53568b['removeMarkers'](),_0x53568b=_0x474571):_0x474571[_0x3b4a('0x10b')]():_0x53568b=_0x474571;}else{const _0x172eac=_0x3b465f[_0x3b4a('0x4f')](_0x12ff14);this[_0x3b4a('0x105')](_0x474571,_0x172eac);}}const _0x347aee=this[_0x3b4a('0x108')]['plugins']['get'](_0x3b4a('0x23'))['me'],_0x194970=_0x43cb01(),_0x150b68=_0x347aee['id'];if(_0x53568b)return this[_0x3b4a('0x12c')](_0x53568b,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x403de3,_0x2574a9)),_0x53568b;{const _0x322436=this[_0x3b4a('0x10c')]({'id':_0x194970,'type':_0x3b4a('0x78')+_0x191164,'data':_0x2658ba,'createdAt':new Date(),'authorId':_0x150b68,'attributes':_0x22d413});return this[_0x3b4a('0xbe')](_0x3b4a('0x78')+_0x191164,_0x194970,_0x150b68,this[_0x3b4a('0xee')]['createRange'](_0x403de3,_0x2574a9)),_0x322436;}}[_0x3b4a('0x54')](_0x36ba90,_0x9bfe51,_0x2d5742=[],_0x3e031c=null,_0x3982bd={}){_0x9bfe51[_0x3b4a('0x8')]||(_0x9bfe51[_0x3b4a('0x8')]=_0x9bfe51['commandName']);const _0x2eef38=_0x36ba90[0x0];_0x9bfe51['multipleBlocks']=_0x2eef38['is'](_0x3b4a('0x99')),_0x3e031c=_0x3e031c||$t(_0x9bfe51);const _0x3ec390=_0x2d5742[_0x3b4a('0xcd')](_0x2d7cc6=>Rt(_0x2d7cc6,this['_model'])),_0x244056=_0x2eef38['is']('range')?_0x36ba90:_0x36ba90[_0x3b4a('0xcd')](_0x30a3bd=>Rt(_0x30a3bd,this[_0x3b4a('0xee')]));if(_0x3b4a('0x90')===this[_0x3b4a('0xfe')]){const _0x1acdff=this['_suggestionFactory'][_0x3b4a('0x6a')](_0x3b4a('0x109'),_0x3e031c,_0x3b4a('0x9a'));return this[_0x3b4a('0x133')](()=>_0x1acdff(_0x244056,_0x9bfe51,_0x3982bd)),null;}_0x3ec390[_0x3b4a('0x4b')](..._0x244056);let _0x287019=!0x0;for(const _0x1dee18 of _0x3ec390)if(!this[_0x3b4a('0xb1')](_0x1dee18)){_0x287019=!0x1;break;}if(_0x287019&&_0x3b4a('0x88')!==this[_0x3b4a('0xfe')]){const _0x92e2a2=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')]('formatBlock',_0x3e031c,'accept');return this[_0x3b4a('0x133')](()=>_0x92e2a2(_0x244056,_0x9bfe51,_0x3982bd)),null;}const _0x48eb37=this[_0x3b4a('0x108')]['plugins'][_0x3b4a('0xe2')](_0x3b4a('0x23'))['me'];for(const _0x178418 of this['getSuggestions']()){if(_0x178418[_0x3b4a('0xc5')]['id']!=_0x48eb37['id'])continue;if(_0x3b4a('0x109')!=_0x178418['type']||_0x178418[_0x3b4a('0xaa')][_0x3b4a('0x8')]!=_0x9bfe51[_0x3b4a('0x8')])continue;const _0x6fac8b=_0x178418['subType']==_0x3e031c;for(let _0x189942=0x0;_0x189942<_0x244056[_0x3b4a('0x81')];_0x189942++){const _0x5e0ff3=_0x244056[_0x189942];for(const _0x2bedf7 of _0x178418['getMarkers']()){const _0x22c15b=_0x2bedf7['getRange']();if(_0x5e0ff3[_0x3b4a('0xe6')](_0x22c15b)){_0x6fac8b?(_0x244056[_0x3b4a('0x124')](_0x189942,0x1),_0x189942--):_0x178418[_0x3b4a('0x6c')](_0x2bedf7['name']);break;}}}}if(0x0==_0x244056['length'])return null;const _0x5f1248=this['_suggestionFactory'][_0x3b4a('0x6a')]('formatBlock',_0x3e031c,_0x3b4a('0x96'));for(const _0x1c928c of this[_0x3b4a('0x1f')]())if(_0x1c928c[_0x3b4a('0xc5')]['id']==_0x48eb37['id']&&'formatBlock'==_0x1c928c[_0x3b4a('0x1b')]&&_0x1c928c[_0x3b4a('0xaa')][_0x3b4a('0x8')]==_0x9bfe51[_0x3b4a('0x8')]&&_0x1c928c[_0x3b4a('0x9d')]==_0x3e031c&&(_0x5f1248(_0x1c928c[_0x3b4a('0x13')](),_0x244056)||_0x5f1248(_0x244056,_0x1c928c[_0x3b4a('0x13')]()))){for(const _0x4cdcda of _0x244056)_0x1c928c[_0x3b4a('0xf1')](_0x4cdcda);return _0x1c928c;}const _0x398171=_0x43cb01(),_0x35648e=_0x48eb37['id'],_0x335cf7=_0x3b4a('0x78')+_0x3e031c,_0x144577=this['_setSuggestionData']({'id':_0x398171,'type':_0x335cf7,'data':_0x9bfe51,'createdAt':new Date(),'authorId':_0x35648e,'attributes':_0x3982bd});for(const _0x11c9e4 of _0x244056)this[_0x3b4a('0xbe')](_0x335cf7,_0x398171,_0x35648e,_0x11c9e4,_0x143fbf[_0x3b4a('0x125')]());return _0x144577;}['markDeletion'](_0x51b0a2,_0x214f9e=null,_0x166e71={}){if(_0x51b0a2[_0x3b4a('0x112')])return null;const _0x2e073b=this['editor'][_0x3b4a('0x34')][_0x3b4a('0xe2')](_0x3b4a('0x23'))['me'],_0x263e99=new _0x52f246(_0x51b0a2[_0x3b4a('0x5b')],_0x51b0a2[_0x3b4a('0x8d')]);for(const {suggestion:_0x589622,meta:_0x23dc67}of this['_findSuggestions'](_0x263e99,_0x3b4a('0x69')))if(_0x23dc67[_0x3b4a('0x115')]&&!_0x23dc67[_0x3b4a('0x71')]){if(_0x589622[_0x3b4a('0xc9')]){const _0x5a8c01=_0x589622[_0x3b4a('0x13')]()[_0x3b4a('0x6e')](_0x560d89=>_0x3b4a('0xd5')!=_0x560d89[_0x3b4a('0x131')][_0x3b4a('0xa5')]);_0x5a8c01[_0x3b4a('0x24')](_0x5d09e3=>_0x263e99[_0x3b4a('0x65')](_0x5d09e3,!0x0))&&_0x589622['discard']();if(_0x5a8c01[_0x3b4a('0x83')](_0x446c04=>_0x446c04['containsRange'](_0x263e99,!0x0))){const _0x3903da=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')]('deletion',_0x214f9e,_0x3b4a('0x9a'));return this[_0x3b4a('0x133')](()=>_0x3903da([_0x263e99],null,_0x166e71)),null;}}else{const _0xdb1a4d=_0x263e99[_0x3b4a('0x4f')](_0x589622['getFirstRange']());null!==_0xdb1a4d&&_0x589622[_0x3b4a('0xec')]([_0xdb1a4d],null,_0x166e71);}}if(_0x263e99[_0x3b4a('0xd1')](),_0x263e99[_0x3b4a('0x112')]||'$graveyard'==_0x263e99[_0x3b4a('0x131')][_0x3b4a('0xa5')])return null;let _0xd4180f=null,_0x5ad63e=_0x263e99[_0x3b4a('0x5b')],_0x232779=_0x263e99[_0x3b4a('0x8d')];for(const {suggestion:_0x37a267,meta:_0x2d6c49}of this[_0x3b4a('0xba')](_0x263e99,'deletion'))if(_0x2d6c49[_0x3b4a('0x115')]){if(_0x37a267[_0x3b4a('0xc9')]&&this['_mergeNestedSuggestions']){let _0x1eeb4f=!0x0;for(const _0x313b24 of _0x37a267[_0x3b4a('0x13')]()){if(_0x313b24['containsRange'](_0x263e99,!0x0))return _0x37a267;_0x263e99[_0x3b4a('0x65')](_0x313b24)||(_0x1eeb4f=!0x1);}_0x1eeb4f&&_0x37a267[_0x3b4a('0xda')]();}else{const _0x3fe452=_0x37a267['getFirstRange']();if(_0x3fe452[_0x3b4a('0x65')](_0x263e99,!0x0)){if(!this[_0x3b4a('0x1c')]&&_0x2d6c49[_0x3b4a('0x63')])continue;return _0x37a267;}_0x5ad63e=_0x5ad63e['isBefore'](_0x3fe452[_0x3b4a('0x5b')])?_0x5ad63e:_0x3fe452[_0x3b4a('0x5b')],_0x232779=_0x232779[_0x3b4a('0x2e')](_0x3fe452['end'])?_0x232779:_0x3fe452[_0x3b4a('0x8d')],_0xd4180f?_0x3fe452[_0x3b4a('0x5b')][_0x3b4a('0xa0')](_0xd4180f[_0x3b4a('0x9f')]()['start'])?(_0xd4180f['removeMarkers'](),_0xd4180f=_0x37a267):_0x37a267[_0x3b4a('0x10b')]():_0xd4180f=_0x37a267;}}if(_0xd4180f)return this[_0x3b4a('0x12c')](_0xd4180f,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x5ad63e,_0x232779)),_0xd4180f;{const _0x469faf=_0x43cb01(),_0x31bdcd=this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x5ad63e,_0x232779),_0x579d7a=_0x2e073b['id'],_0x17ada0=_0x214f9e?_0x3b4a('0x2c')+_0x214f9e:_0x3b4a('0xa7'),_0x7f0ce8=this['_setSuggestionData']({'id':_0x469faf,'type':_0x17ada0,'createdAt':new Date(),'authorId':_0x579d7a,'attributes':_0x166e71});return this[_0x3b4a('0xbe')](_0x17ada0,_0x469faf,_0x579d7a,_0x31bdcd),_0x7f0ce8;}}[_0x3b4a('0xff')](_0x32f79f,_0x32eec2=_0x3b4a('0x22'),_0x2a4b36={}){const _0xbe652e=this[_0x3b4a('0x108')][_0x3b4a('0x34')]['get']('Users')['me'],_0x1b6048=_0x32f79f[_0x3b4a('0xcd')](_0x160446=>new _0x52f246(_0x160446[_0x3b4a('0x5b')],_0x160446[_0x3b4a('0x8d')])),_0x4b1e40=new Set();for(const _0x4dc83d of _0x1b6048)for(const {suggestion:_0x32d0c9,meta:_0x1991da}of this[_0x3b4a('0xba')](_0x4dc83d,_0x3b4a('0x69')))_0x1991da[_0x3b4a('0x115')]&&!_0x1991da[_0x3b4a('0x71')]&&_0x4b1e40[_0x3b4a('0x4')](_0x32d0c9);for(const _0x3bb1cb of _0x4b1e40)if(_0x3bb1cb[_0x3b4a('0xc9')]){const _0x1ff9cf=_0x3bb1cb[_0x3b4a('0x13')]();(!_0x3bb1cb['attributes']||!_0x3bb1cb[_0x3b4a('0x9e')]['skipNestingCheck'])&&(_0x1ff9cf[_0x3b4a('0x24')](_0x3e28be=>_0x1b6048['some'](_0x19affe=>_0x19affe['containsRange'](_0x3e28be,!0x0)))&&_0x3bb1cb[_0x3b4a('0xda')]());if(_0x1b6048[_0x3b4a('0x24')](_0x4ecfe3=>_0x1ff9cf[_0x3b4a('0x83')](_0x17ed5d=>_0x17ed5d['containsRange'](_0x4ecfe3,!0x0)))){const _0x3f1d9e=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')](_0x3b4a('0xa7'),_0x32eec2,'accept');return this['forceDefaultExecution'](()=>_0x3f1d9e(_0x32f79f,null,_0x2a4b36)),null;}}else{const _0x53a84b=_0x3bb1cb[_0x3b4a('0x9f')]();_0x1b6048['some'](_0x2cbcae=>_0x2cbcae[_0x3b4a('0x65')](_0x53a84b,!0x0))&&_0x3bb1cb['discard']();if(_0x1b6048[_0x3b4a('0x24')](_0x8a81f5=>_0x53a84b[_0x3b4a('0x65')](_0x8a81f5,!0x0))){const _0x57dfaa=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')](_0x3b4a('0xa7'),_0x32eec2,_0x3b4a('0x9a'));return this[_0x3b4a('0x133')](()=>_0x57dfaa(_0x1b6048,null,_0x2a4b36)),null;}}const _0xb37769=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')](_0x3b4a('0xa7'),_0x32eec2,'join');let _0x391d01=null;for(const _0x168b03 of this['getSuggestions']())if(_0x168b03[_0x3b4a('0xc5')]['id']==_0xbe652e['id']&&_0x168b03[_0x3b4a('0x7')]&&_0x3b4a('0xa7')==_0x168b03[_0x3b4a('0x1b')]&&_0x168b03[_0x3b4a('0x9d')]==_0x32eec2&&(_0xb37769(_0x168b03[_0x3b4a('0x13')](),_0x1b6048)||_0xb37769(_0x1b6048,_0x168b03[_0x3b4a('0x13')]()))){if(_0x391d01){if(_0x168b03['commentThread']&&_0x168b03[_0x3b4a('0x76')][_0x3b4a('0x81')])continue;for(const _0x31e1ab of _0x168b03['getRanges']())_0x391d01[_0x3b4a('0x6b')](_0x31e1ab)||_0x391d01[_0x3b4a('0xf1')](_0x31e1ab);_0x168b03[_0x3b4a('0x10b')]();}else{_0x391d01=_0x168b03;for(const _0x375ec5 of _0x1b6048)_0x168b03[_0x3b4a('0x6b')](_0x375ec5)||_0x168b03[_0x3b4a('0xf1')](_0x375ec5);}}if(_0x391d01)return _0x391d01;_0x4b1e40[_0x3b4a('0xe4')]();for(const _0x7aa2d5 of _0x1b6048)for(const {suggestion:_0x5e2a80,meta:_0x4526c9}of this[_0x3b4a('0xba')](_0x7aa2d5,_0x3b4a('0xa7')))_0x4526c9['isOwn']&&_0x4b1e40[_0x3b4a('0x4')](_0x5e2a80);for(const _0x42c19a of _0x4b1e40){const _0x341e3b=_0x42c19a[_0x3b4a('0x13')]();if(!_0x2a4b36||!_0x2a4b36['skipNestingCheck']){if(_0x1b6048[_0x3b4a('0x24')](_0x1415e7=>_0x341e3b[_0x3b4a('0x83')](_0x485446=>_0x485446[_0x3b4a('0x65')](_0x1415e7,!0x0))))return _0x42c19a;}(!_0x42c19a[_0x3b4a('0x9e')]||!_0x42c19a['attributes'][_0x3b4a('0x98')])&&(_0x341e3b[_0x3b4a('0x24')](_0x517a0d=>_0x1b6048[_0x3b4a('0x83')](_0x1ff107=>_0x1ff107[_0x3b4a('0x65')](_0x517a0d,!0x0)))&&_0x42c19a['discard']());}const _0x596eb8=_0x43cb01(),_0x42a3f3=_0xbe652e['id'],_0x5287ea=_0x3b4a('0x2c')+_0x32eec2,_0x48236a=this[_0x3b4a('0x10c')]({'id':_0x596eb8,'type':_0x5287ea,'createdAt':new Date(),'authorId':_0x42a3f3,'attributes':_0x2a4b36});for(const _0x4511be of _0x1b6048)_0x4511be[_0x3b4a('0xd1')](),_0x4511be[_0x3b4a('0x112')]||'$graveyard'==_0x4511be[_0x3b4a('0x131')]['rootName']||this[_0x3b4a('0xbe')](_0x5287ea,_0x596eb8,_0x42a3f3,_0x4511be,_0x143fbf[_0x3b4a('0x125')]());return _0x48236a;}[_0x3b4a('0x12c')](_0x2b53ec,_0x41c163){const _0x1069e7=_0x2b53ec[_0x3b4a('0x2')]();this[_0x3b4a('0xee')][_0x3b4a('0x77')](_0x499fe5=>{_0x499fe5[_0x3b4a('0x3')](_0x1069e7,{'range':_0x41c163});});}[_0x3b4a('0x137')](_0x3a6872){const _0x52799d=_0x3a6872['id'],_0x2cdd1d=this[_0x3b4a('0x108')]['config'][_0x3b4a('0xe2')](_0x3b4a('0xac'));this[_0x3b4a('0x45')]['hasCommentThread'](_0x52799d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2cdd1d,'threadId':_0x52799d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2945fa=this['_commentsRepository']['getCommentThread'](_0x52799d);_0x2945fa['unbind'](_0x3b4a('0x126')),_0x2945fa[_0x3b4a('0x126')]=!0x1,_0x3a6872[_0x3b4a('0x76')]=_0x2945fa;}[_0x3b4a('0xbd')](_0x35f278,_0x167986,_0x397b78,_0x41a77e){if(_0x35f278[_0x3b4a('0x1b')]!=_0x167986||_0x35f278[_0x3b4a('0x9d')]!=_0x397b78||_0x35f278[_0x3b4a('0x6f')]['id']!=_0x41a77e)throw this[_0x3b4a('0x108')][_0x3b4a('0xf')](_0x3b4a('0xb5')),new _0xa8742b('track-changes-suggestion-data-mismatch',this);}[_0x3b4a('0x105')](_0xe03c19,_0x534218){const _0x54201a=_0xe03c19[_0x3b4a('0x9f')]();if(_0x534218[_0x3b4a('0xe6')](_0x54201a))_0xe03c19[_0x3b4a('0x10b')]();else{if(_0x54201a['containsRange'](_0x534218)){const _0x36d7dd=this[_0x3b4a('0xee')][_0x3b4a('0x8c')](_0x534218[_0x3b4a('0x5b')]['nodeBefore'],'end');this['_setSuggestionRange'](_0xe03c19,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x54201a['start'],_0x36d7dd));const _0x9c1423=_0x43cb01(),_0x3339ad=_0xe03c19[_0x3b4a('0x6f')]['id'],_0x49295a=_0xe03c19[_0x3b4a('0x1b')]+':'+_0xe03c19[_0x3b4a('0x9d')];this[_0x3b4a('0x10c')]({'id':_0x9c1423,'type':_0x49295a,'createdAt':new Date(),'authorId':_0x3339ad,'data':_0xe03c19[_0x3b4a('0xaa')],'attributes':_0xe03c19[_0x3b4a('0x9e')]});const _0x250836=this['_model'][_0x3b4a('0x8c')](_0x534218[_0x3b4a('0x8d')]['parent'],_0x3b4a('0xf2')),_0x13ed44=this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x250836,_0x54201a[_0x3b4a('0x8d')]);this[_0x3b4a('0xbe')](_0x49295a,_0x9c1423,_0x3339ad,_0x13ed44);}else{if(_0x54201a[_0x3b4a('0xe0')](_0x534218[_0x3b4a('0x5b')])){const _0x4e59da=this[_0x3b4a('0xee')]['createPositionAt'](_0x534218[_0x3b4a('0x5b')][_0x3b4a('0x2a')],_0x3b4a('0x8d'));this[_0x3b4a('0x12c')](_0xe03c19,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x54201a[_0x3b4a('0x5b')],_0x4e59da));}else{const _0x419c5c=this[_0x3b4a('0xee')][_0x3b4a('0x8c')](_0x534218[_0x3b4a('0x8d')][_0x3b4a('0x80')],'after');this[_0x3b4a('0x12c')](_0xe03c19,this[_0x3b4a('0xee')]['createRange'](_0x419c5c,_0x54201a[_0x3b4a('0x8d')]));}}}}[_0x3b4a('0xb1')](_0x5231fc){for(const {suggestion:_0x201550,meta:_0x4bbda1}of this[_0x3b4a('0xba')](_0x5231fc,_0x3b4a('0x69'))){if(!_0x4bbda1['isOwn'])continue;const _0x226d49=_0x201550[_0x3b4a('0x13')]();for(const _0x4f67de of _0x226d49)if(!_0x5231fc[_0x3b4a('0x136')](_0x4f67de)[_0x3b4a('0x81')])return!0x0;}return!0x1;}[_0x3b4a('0x12')](_0x5a9134){const _0x583c4e=this[_0x3b4a('0x108')]['plugins'][_0x3b4a('0xe2')]('Users')[_0x3b4a('0x7f')](_0x5a9134);if(!_0x583c4e)throw new _0xa8742b('track-changes-user-not-found',this);return _0x583c4e;}['_getExternalAuthor'](_0x278005){const _0x54c393=this['editor'][_0x3b4a('0x34')][_0x3b4a('0xe2')](_0x3b4a('0x23')),_0xbea37d=_0x5670c4(_0x3b4a('0x11c')+_0x278005),_0x13b31d=_0x54c393['getUser'](_0xbea37d);return _0x13b31d||_0x54c393[_0x3b4a('0x74')]({'id':_0xbea37d,'name':_0x278005});}[_0x3b4a('0xcf')](_0x403ba0,_0x171e01,_0x4fc92e,_0x54d35d,_0xe0d58c){const _0x201011=this[_0x3b4a('0x12')](_0x54d35d),_0x577cc9=this[_0x3b4a('0xc7')][_0x3b4a('0x116')](_0x403ba0,_0x171e01,_0x4fc92e,_0x201011,_0xe0d58c,_0x102600=>this['_updateSuggestionData'](_0x4fc92e,{'attributes':_0x102600}));return this['listenTo'](_0x577cc9,_0x3b4a('0x9a'),()=>{this['_updateSuggestionData'](_0x4fc92e,{'state':_0x3b4a('0x8a')});},{'priority':_0x3b4a('0x2d')}),this['listenTo'](_0x577cc9,_0x3b4a('0xda'),()=>{this[_0x3b4a('0xa3')](_0x4fc92e,{'state':_0x3b4a('0x72')});},{'priority':_0x3b4a('0x2d')}),this[_0x3b4a('0xf3')]['set'](_0x4fc92e,_0x577cc9),this['_suggestionState'][_0x3b4a('0x6')](_0x577cc9,_0x3b4a('0x102')),_0x577cc9;}[_0x3b4a('0xe5')](_0x5420b7){const _0xc3004b=_0x5420b7[_0x3b4a('0x75')](':');return{'group':_0xc3004b[0x0],'type':_0xc3004b[0x1],'subType':_0xc3004b[_0x3b4a('0x81')]>=0x5?_0xc3004b[0x2]:null,'id':_0xc3004b['length']<0x5?_0xc3004b[0x2]:_0xc3004b[0x3],'authorId':_0xc3004b[_0x3b4a('0x81')]<0x5?_0xc3004b[0x3]:_0xc3004b[0x4],'markerCount':0x6==_0xc3004b[_0x3b4a('0x81')]?_0xc3004b[0x5]:null};}['_breakSuggestionMarker'](_0x301283,_0x4e24c2,_0x5f07a7){const _0x1eb9e6=_0x301283[_0x3b4a('0x9f')](),_0x5236a9=_0x1eb9e6[_0x3b4a('0x5b')],_0x10db35=_0x1eb9e6[_0x3b4a('0x8d')];this['_setSuggestionRange'](_0x301283,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x5236a9,_0x4e24c2));const _0x4599d6=_0x43cb01(),_0x1fce04=_0x301283['creator']['id'],_0xea1d72=_0x301283['type']+(_0x301283['subType']?':'+_0x301283['subType']:'');this['_setSuggestionData']({'id':_0x4599d6,'type':_0xea1d72,'createdAt':new Date(),'authorId':_0x1fce04,'originalSuggestionId':_0x301283['id'],'attributes':_0x301283[_0x3b4a('0x9e')],'data':_0x301283[_0x3b4a('0xaa')]}),_0x3b4a('0x109')==_0x301283[_0x3b4a('0x1b')]&&(_0x5f07a7=this[_0x3b4a('0xee')][_0x3b4a('0x119')](_0x5f07a7[_0x3b4a('0x80')])),this[_0x3b4a('0xbe')](_0xea1d72,_0x4599d6,_0x1fce04,this['_model'][_0x3b4a('0x12f')](_0x5f07a7,_0x10db35));}[_0x3b4a('0xba')](_0x1cd1e2,_0x35b035=null){const _0x2f78df=[],_0x22a0b9=this[_0x3b4a('0xee')]['schema'],_0x31ed28=this[_0x3b4a('0x108')][_0x3b4a('0x34')][_0x3b4a('0xe2')](_0x3b4a('0x23'))['me'];for(const _0x1c102b of this[_0x3b4a('0x1f')]())if(_0x1c102b[_0x3b4a('0x7')]&&(!_0x35b035||_0x1c102b[_0x3b4a('0x1b')]==_0x35b035))for(const _0xdb8569 of _0x1c102b['getRanges']()){const _0x5da704=_0x1cd1e2[_0x3b4a('0x5b')][_0x3b4a('0xe6')](_0xdb8569[_0x3b4a('0x8d')])||_0x1cd1e2[_0x3b4a('0x8d')][_0x3b4a('0xe6')](_0xdb8569['start']);if(_0x5da704||_0x1cd1e2[_0x3b4a('0x4f')](_0xdb8569)){const _0x2a7b0b=_0x1cd1e2[_0x3b4a('0x65')](_0xdb8569)&&Bt(_0x22a0b9,_0xdb8569[_0x3b4a('0x5b')],_0x1cd1e2),_0x106842=_0xdb8569[_0x3b4a('0x65')](_0x1cd1e2)&&Bt(_0x22a0b9,_0x1cd1e2[_0x3b4a('0x5b')],_0xdb8569);_0x2f78df['push']({'suggestion':_0x1c102b,'meta':{'isOwn':_0x31ed28==_0x1c102b['author'],'isNextTo':_0x5da704,'isInsideObject':_0x2a7b0b,'containsRangeInObject':_0x106842}});break;}}return _0x2f78df;}[_0x3b4a('0xbe')](_0x32a202,_0x41682b,_0x23398e,_0x1b25d7,_0x5b1652){this['_model'][_0x3b4a('0x77')](_0x510cf6=>{let _0x4e2493=_0x3b4a('0x0')+_0x32a202+':'+_0x41682b+':'+_0x23398e;_0x5b1652&&(_0x4e2493=_0x4e2493+':'+_0x5b1652),_0x510cf6[_0x3b4a('0x35')](_0x4e2493,{'range':_0x1b25d7,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3b4a('0xf0')](_0x45e35a){const _0x17c02b=_0x45e35a['previous'],_0x3eea46=_0x45e35a[_0x3b4a('0xf9')];_0x45e35a[_0x3b4a('0xca')]=null,null!=_0x17c02b&&(_0x17c02b['next']=null),_0x45e35a['next']=null,null!=_0x3eea46&&(_0x3eea46[_0x3b4a('0xca')]=null),_0x3b4a('0x67')==this['_suggestionState'][_0x3b4a('0xe2')](_0x45e35a)&&(this['_suggestionState']['set'](_0x45e35a,'removed'),this['fire'](_0x3b4a('0x43'),_0x45e35a,_0x17c02b,_0x3eea46));}[_0x3b4a('0x10c')](_0x71ee37){const _0x429dfa=_0x71ee37['id'],_0x4ed40c=this[_0x3b4a('0x5c')](_0x71ee37);if(this[_0x3b4a('0x82')]&&this[_0x3b4a('0x82')]['addSuggestion']){const _0x11a02e=this['editor']['plugins'][_0x3b4a('0xe2')]('PendingActions'),_0x5cae75=_0x4ed40c[_0x3b4a('0xab')],_0x4b6d5b=_0x4ed40c['subType']?_0x4ed40c[_0x3b4a('0x1b')]+':'+_0x4ed40c[_0x3b4a('0x9d')]:_0x4ed40c['type'],_0x49d48a=this[_0x3b4a('0x108')][_0x3b4a('0x48')],_0x28bab8=_0x11a02e[_0x3b4a('0x4')](_0x55976c(_0x49d48a,'PENDING_ACTION_SUGGESTION')),_0xfb0acc={'id':_0x429dfa,'type':_0x4b6d5b,'hasComments':_0x5cae75,'data':_0x71ee37['data']||null,'originalSuggestionId':_0x71ee37[_0x3b4a('0xaf')]||null,'attributes':_0x4ed40c[_0x3b4a('0x9e')]};this['_adapter'][_0x3b4a('0x5e')](_0xfb0acc)[_0x3b4a('0x101')](_0x2fd931=>{_0x4ed40c['_saved']=!0x0,_0x11a02e['remove'](_0x28bab8),_0x2fd931&&_0x2fd931[_0x3b4a('0xf8')]&&(this['_suggestions'][_0x3b4a('0xe2')](_0x429dfa)['createdAt']=_0x2fd931[_0x3b4a('0xf8')]);})[_0x3b4a('0x100')](_0x13dc23=>{throw _0x2fab1c(_0x3b4a('0x132')),this[_0x3b4a('0x108')][_0x3b4a('0x12a')][_0x3b4a('0xd9')]({'isUndoable':!0x1},()=>{_0x4ed40c[_0x3b4a('0xda')]();}),_0x4ed40c[_0x3b4a('0x85')](),this['_suggestions'][_0x3b4a('0xcb')](_0x4ed40c['id']),this['_suggestionState'][_0x3b4a('0xcb')](_0x4ed40c),_0x13dc23;});}return _0x4ed40c;}['_updateSuggestionData'](_0x118dc4,_0x4d7f6e){const _0x4bdd6a=this[_0x3b4a('0x108')]['plugins'][_0x3b4a('0xe2')](_0x3b4a('0x73')),_0x2b00c6=this[_0x3b4a('0x89')](_0x118dc4);if(this[_0x3b4a('0x82')]&&this[_0x3b4a('0x82')]['updateSuggestion']){if(_0x2b00c6[_0x3b4a('0x33')]){const _0x25b50d=_0x4bdd6a['add'](_0x55976c(this['editor'][_0x3b4a('0x48')],'PENDING_ACTION_SUGGESTION'));this[_0x3b4a('0x82')][_0x3b4a('0x59')](_0x118dc4,_0x4d7f6e)[_0x3b4a('0x101')](()=>{_0x4bdd6a['remove'](_0x25b50d);});}else _0x2b00c6['on'](_0x3b4a('0xa6'),()=>{this['_updateSuggestionData'](_0x118dc4,_0x4d7f6e);});}}[_0x3b4a('0x37')](_0x479059){if(!this[_0x3b4a('0x82')]||!this['_adapter'][_0x3b4a('0x89')])throw new _0xa8742b(_0x3b4a('0xd2'),this);return this[_0x3b4a('0x82')][_0x3b4a('0x89')](_0x479059);}[_0x3b4a('0xb3')](_0x18dc7f){const {id:_0x4a4192,type:_0x2dbde7,subType:_0x4fe1c6,authorId:_0x4bbaf2}=this[_0x3b4a('0xe5')](_0x18dc7f),_0x301d61=this[_0x3b4a('0xf3')]['get'](_0x4a4192)||this['_createSuggestion'](_0x2dbde7,_0x4fe1c6,_0x4a4192,_0x4bbaf2,{});switch(this[_0x3b4a('0xbd')](_0x301d61,_0x2dbde7,_0x4fe1c6,_0x4bbaf2),this[_0x3b4a('0xf5')]['get'](_0x301d61)){case _0x3b4a('0x102'):this[_0x3b4a('0x37')](_0x4a4192)[_0x3b4a('0x101')](_0x1ce85a=>{let _0x1572b0=Promise[_0x3b4a('0xf4')]();_0x1ce85a[_0x3b4a('0xab')]&&(_0x1572b0=this[_0x3b4a('0x45')][_0x3b4a('0xa1')]({'channelId':this[_0x3b4a('0x108')][_0x3b4a('0x130')][_0x3b4a('0xe2')](_0x3b4a('0xac')),'threadId':_0x4a4192})),_0x1572b0[_0x3b4a('0x101')](()=>{this[_0x3b4a('0x5c')](_0x1ce85a)['_saved']=!0x0;});}),this[_0x3b4a('0xf5')][_0x3b4a('0x6')](_0x301d61,_0x3b4a('0x12d'));break;case _0x3b4a('0x11e'):this['_updateSuggestionData'](_0x4a4192,{'state':_0x3b4a('0x49')});case _0x3b4a('0xf7'):this[_0x3b4a('0xf5')][_0x3b4a('0x6')](_0x301d61,_0x3b4a('0x67')),this['fire'](_0x3b4a('0x1e'),_0x301d61);break;case'ready':this[_0x3b4a('0xeb')]('suggestionChanged',_0x301d61);}return _0x301d61[_0x3b4a('0x84')](_0x18dc7f),_0x301d61;}[_0x3b4a('0x13c')](_0x2e720b){const _0x2c5880=Array['from'](_0x2e720b)[_0x3b4a('0x6e')](_0x1dd581=>!_0x1dd581[_0x3b4a('0xc9')]),_0x5de959=this[_0x3b4a('0x1f')]({'skipNotAttached':!0x0})[_0x3b4a('0x6e')](_0x373d04=>!_0x373d04[_0x3b4a('0xc9')]),_0x517347=_0x5de959['filter'](_0x3cb68f=>!_0x2e720b[_0x3b4a('0xc0')](_0x3cb68f)),_0x346fb3=new Map(_0x5de959[_0x3b4a('0xcd')](_0x411b49=>[_0x411b49,this[_0x3b4a('0xc7')][_0x3b4a('0x6a')](_0x411b49[_0x3b4a('0x1b')],_0x411b49[_0x3b4a('0x9d')],_0x3b4a('0x20'))])),_0xbd1d59=new Map(_0x5de959['map'](_0x2d61fc=>[_0x2d61fc,_0x2d61fc[_0x3b4a('0x9f')]()])),_0x48b4c3=new Set(),_0x40625a=new Set();for(let _0x30ea16=0x0;_0x30ea16<_0x2c5880[_0x3b4a('0x81')];_0x30ea16++)_0x5c7aef(_0x2c5880[_0x30ea16],_0x2c5880,_0x30ea16+0x1);for(let _0x4384fe=0x0;_0x4384fe<_0x2c5880[_0x3b4a('0x81')];_0x4384fe++)_0x5c7aef(_0x2c5880[_0x4384fe],_0x517347,0x0);for(let _0x5c4aff=0x0;_0x5c4aff<_0x2c5880[_0x3b4a('0x81')];_0x5c4aff++){const _0x253198=_0x2c5880[_0x5c4aff];!_0x40625a[_0x3b4a('0xc0')](_0x253198)&&_0x253198[_0x3b4a('0xca')]&&(_0x253198['previous']['next']===_0x253198&&(_0x253198[_0x3b4a('0xca')][_0x3b4a('0xf9')]=null),_0x253198[_0x3b4a('0xca')]=null),!_0x48b4c3[_0x3b4a('0xc0')](_0x253198)&&_0x253198['next']&&(_0x253198['next'][_0x3b4a('0xca')]===_0x253198&&(_0x253198[_0x3b4a('0xf9')][_0x3b4a('0xca')]=null),_0x253198[_0x3b4a('0xf9')]=null);}function _0x5c7aef(_0x35977e,_0x4e0a45,_0x220ebd){for(let _0x31dabf=_0x220ebd;_0x31dabf<_0x4e0a45[_0x3b4a('0x81')];_0x31dabf++){const _0x3ce895=_0x3a8955(_0x35977e,_0x4e0a45[_0x31dabf]);_0x3ce895&&(_0x3ce895[0x0][_0x3b4a('0xf9')]=_0x3ce895[0x1],_0x3ce895[0x1][_0x3b4a('0xca')]=_0x3ce895[0x0],_0x48b4c3[_0x3b4a('0x4')](_0x3ce895[0x0]),_0x40625a[_0x3b4a('0x4')](_0x3ce895[0x1]));}}function _0x3a8955(_0x5cf2a2,_0x4a4fad){if(_0x5cf2a2[_0x3b4a('0xc5')]['id']!==_0x4a4fad[_0x3b4a('0xc5')]['id'])return null;const _0x4ff4f2=_0x346fb3[_0x3b4a('0xe2')](_0x5cf2a2)(_0x5cf2a2,_0x4a4fad,_0xbd1d59[_0x3b4a('0xe2')](_0x5cf2a2),_0xbd1d59[_0x3b4a('0xe2')](_0x4a4fad));if(!_0x4ff4f2)return null;return _0x346fb3['get'](_0x4a4fad)(_0x5cf2a2,_0x4a4fad,_0xbd1d59[_0x3b4a('0xe2')](_0x5cf2a2),_0xbd1d59[_0x3b4a('0xe2')](_0x4a4fad))?_0x4ff4f2[0x1]['commentThread']&&_0x4ff4f2[0x1][_0x3b4a('0x76')][_0x3b4a('0x81')]?null:_0x4ff4f2:null;}}['_joinWithAdjacentSuggestions'](_0x177c23){const _0x55c301=Array['from'](_0x177c23),_0x89be62=this[_0x3b4a('0x1f')]({'skipNotAttached':!0x0}),_0x2a8269=_0x89be62[_0x3b4a('0x6e')](_0x542c1b=>!_0x177c23[_0x3b4a('0xc0')](_0x542c1b)),_0x5dd9d9=new Map(_0x55c301[_0x3b4a('0xcd')](_0x420fe0=>[_0x420fe0,this[_0x3b4a('0xc7')][_0x3b4a('0x6a')](_0x420fe0[_0x3b4a('0x1b')],_0x420fe0['subType'],_0x3b4a('0x96'))])),_0x19c578=new Map(_0x89be62[_0x3b4a('0xcd')](_0x57588e=>[_0x57588e,_0x57588e['getRanges']()]));for(let _0x13f898=0x0;_0x13f898<_0x55c301['length'];_0x13f898++){if(_0x4f0495(this,_0x55c301[_0x13f898],_0x55c301,_0x13f898+0x1))return!0x0;}for(let _0x588978=0x0;_0x588978<_0x55c301[_0x3b4a('0x81')];_0x588978++){if(_0x4f0495(this,_0x55c301[_0x588978],_0x2a8269,0x0))return!0x0;}return!0x1;function _0x4f0495(_0x22067b,_0x5a28dc,_0x40b523,_0xb71bb7){for(let _0x1f06e7=_0xb71bb7;_0x1f06e7<_0x40b523['length'];_0x1f06e7++){const _0xa307e2=_0x40b523[_0x1f06e7];if(_0xa307e2['type']!==_0x5a28dc[_0x3b4a('0x1b')]||_0xa307e2[_0x3b4a('0xc5')]['id']!==_0x5a28dc[_0x3b4a('0xc5')]['id']||_0xa307e2['subType']!==_0x5a28dc[_0x3b4a('0x9d')])continue;const _0x17f8e6=_0x5dd9d9[_0x3b4a('0xe2')](_0x5a28dc),_0x45d447=_0x19c578[_0x3b4a('0xe2')](_0x5a28dc),_0xc0dd47=_0x19c578[_0x3b4a('0xe2')](_0xa307e2),_0x7f7d2e=_0x5a28dc[_0x3b4a('0x76')]&&_0x5a28dc[_0x3b4a('0x76')][_0x3b4a('0x81')],_0x5029c8=_0xa307e2[_0x3b4a('0x76')]&&_0xa307e2[_0x3b4a('0x76')][_0x3b4a('0x81')];if(!_0x7f7d2e&&_0x17f8e6(_0xc0dd47,_0x45d447))return _0x22067b[_0x3b4a('0xe8')](_0xa307e2,_0x5a28dc),_0x19c578[_0x3b4a('0xcb')](_0x5a28dc),!0x0;if(!_0x5029c8&&_0x17f8e6(_0x45d447,_0xc0dd47))return _0x22067b[_0x3b4a('0xe8')](_0x5a28dc,_0xa307e2),_0x19c578[_0x3b4a('0xcb')](_0xa307e2),!0x0;}return!0x1;}}[_0x3b4a('0xe8')](_0x2f671f,_0xea4a0d){if(_0x2f671f[_0x3b4a('0xc9')])for(const _0x3325b8 of _0xea4a0d[_0x3b4a('0x13')]())_0x2f671f[_0x3b4a('0xf1')](_0x3325b8);else{const _0x2d06e1=_0xea4a0d[_0x3b4a('0x9f')]()['end'];this[_0x3b4a('0x12c')](_0x2f671f,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x2f671f[_0x3b4a('0x9f')]()[_0x3b4a('0x5b')],_0x2d06e1));}_0xea4a0d[_0x3b4a('0x10b')]();}}class Dt{constructor(_0x581b5a){this[_0x3b4a('0x117')]=_0x581b5a,this['_model']=_0x581b5a['model'],this['_customCallbacks']=new Map(),this[_0x3b4a('0x13e')]=new Map(),this['_registerDefaultCallbacks']();}[_0x3b4a('0x116')](_0x2659a3,_0x14854e,_0x2d1300,_0x4dc3cc,_0x164834,_0x574433){return new _0x143fbf(this[_0x3b4a('0xee')],{'type':_0x2659a3,'subType':_0x14854e,'id':_0x2d1300,'author':_0x4dc3cc,'creator':_0x4dc3cc,'attributes':_0x164834,'onAttributesChange':_0x574433,'onAccept':(..._0x557590)=>this['getSuggestionCallback'](_0x2659a3,_0x14854e,_0x3b4a('0x9a'))(..._0x557590),'onDiscard':(..._0x4bdee1)=>this[_0x3b4a('0x6a')](_0x2659a3,_0x14854e,_0x3b4a('0xda'))(..._0x4bdee1)});}[_0x3b4a('0x10a')](_0x3a0c9d,_0x4b0149,_0x5eefae,_0x5e001a){const _0x53dc4c=_0x3a0c9d+':'+_0x4b0149+':'+_0x5eefae;this[_0x3b4a('0x70')]['set'](_0x53dc4c,_0x5e001a);}[_0x3b4a('0x6a')](_0x36e6d4,_0x243efb,_0x2a2d74){const _0x5d9dbc=_0x36e6d4+':'+_0x243efb+':'+_0x2a2d74;return this[_0x3b4a('0x70')]['get'](_0x5d9dbc)||this[_0x3b4a('0x13e')][_0x3b4a('0xe2')](_0x36e6d4+':'+_0x2a2d74);}[_0x3b4a('0xb')](){const _0x226bf4=()=>{},_0x5ad119=_0x9f17a0=>{_0x9f17a0[_0x3b4a('0xdf')]((_0x1933f0,_0x1ee569)=>_0x1933f0[_0x3b4a('0x5b')][_0x3b4a('0xa0')](_0x1ee569['start'])?0x1:-0x1),this['_model'][_0x3b4a('0x77')](_0x3cb086=>{for(const _0x51c7f8 of _0x9f17a0){let _0x552256;_0x552256=_0x51c7f8[_0x3b4a('0x8d')]['isAtEnd']&&_0x51c7f8[_0x3b4a('0x8d')]['parent']==_0x51c7f8['start'][_0x3b4a('0x53')]?_0x3cb086[_0x3b4a('0x7b')](_0x51c7f8[_0x3b4a('0x5b')][_0x3b4a('0x53')],'on'):_0x3cb086['createSelection'](_0x51c7f8),this['_model'][_0x3b4a('0x113')](_0x552256,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x441936=(_0x4ba72a,_0x30709b)=>{this[_0x3b4a('0xee')][_0x3b4a('0x77')](_0xe2ae6=>{const {commandName:_0x1c1901,commandParams:_0x3d4b61=[]}=_0x30709b,_0xc6c81c=_0x4ba72a[_0x3b4a('0xcd')](_0x45c8f2=>(_t(_0x45c8f2)&&(_0x45c8f2=this['_model'][_0x3b4a('0x12f')](_0x45c8f2[_0x3b4a('0x8d')])),_0x45c8f2))['filter'](_0x2e904d=>'$graveyard'!==_0x2e904d[_0x3b4a('0x131')][_0x3b4a('0xa5')]);if(_0xc6c81c[_0x3b4a('0x81')]<0x1)return;const _0x5bcbf1=Array[_0x3b4a('0xb6')](this[_0x3b4a('0xee')][_0x3b4a('0x5f')]['selection'][_0x3b4a('0x13')]())[_0x3b4a('0xcd')](_0x220cd0=>_0x52f246[_0x3b4a('0xc3')](_0x220cd0));_0xe2ae6[_0x3b4a('0x28')](_0xc6c81c);for(const _0x51565a of this['_editor'][_0x3b4a('0x57')][_0x3b4a('0x57')]())_0x51565a['refresh']();_0x3d4b61[_0x3b4a('0x4b')]({'forceDefaultExecution':!0x0}),this[_0x3b4a('0x117')]['execute'](_0x1c1901,..._0x3d4b61);const _0x270df9=_0x5bcbf1[_0x3b4a('0x6e')](_0x8d6ab7=>'$graveyard'!=_0x8d6ab7['root'][_0x3b4a('0xa5')]);_0x270df9[_0x3b4a('0x81')]>0x0&&_0xe2ae6[_0x3b4a('0x28')](_0x270df9);for(const _0x3f3cf9 of _0x5bcbf1)_0x3f3cf9[_0x3b4a('0xd1')]();});},_0x6b52ff=(_0x79c779,_0x34dc2b)=>0x1==_0x79c779[_0x3b4a('0x81')]&&0x1==_0x34dc2b[_0x3b4a('0x81')]&&_0x79c779[0x0][_0x3b4a('0x8d')]['isEqual'](_0x34dc2b[0x0][_0x3b4a('0x5b')]),_0xc1c2b0=(_0x44f070,_0x530147,_0x10bc59,_0x52b9da)=>xt(_0x44f070,_0x530147,_0x10bc59,_0x52b9da,this[_0x3b4a('0xee')])?[_0x44f070,_0x530147]:xt(_0x530147,_0x44f070,_0x52b9da,_0x10bc59,this['_model'])?[_0x530147,_0x44f070]:null;this[_0x3b4a('0x13e')]['set'](_0x3b4a('0x66'),_0x226bf4),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('insertion:discard',_0x5ad119),this[_0x3b4a('0x13e')][_0x3b4a('0x6')](_0x3b4a('0x44'),_0x6b52ff),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('insertion:chain',_0xc1c2b0),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('deletion:accept',_0x5ad119),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('deletion:discard',_0x226bf4),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('deletion:join',_0x6b52ff),this[_0x3b4a('0x13e')][_0x3b4a('0x6')](_0x3b4a('0x93'),_0xc1c2b0),this['_defaultCallbacks'][_0x3b4a('0x6')](_0x3b4a('0x13f'),_0x441936),this['_defaultCallbacks']['set'](_0x3b4a('0x14'),_0x226bf4),this[_0x3b4a('0x13e')][_0x3b4a('0x6')](_0x3b4a('0x3f'),_0x6b52ff),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('formatInline:chain',_0x226bf4),this[_0x3b4a('0x13e')][_0x3b4a('0x6')](_0x3b4a('0xd8'),_0x441936),this['_defaultCallbacks']['set'](_0x3b4a('0x62'),_0x226bf4),this[_0x3b4a('0x13e')][_0x3b4a('0x6')](_0x3b4a('0x39'),_0x6b52ff),this['_defaultCallbacks'][_0x3b4a('0x6')]('formatBlock:chain',_0x226bf4);}}function Bt(_0x279fab,_0x60afac,_0x59ab05){for(const _0x3c9df5 of _0x60afac['parent'][_0x3b4a('0xbb')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3c9df5[_0x3b4a('0x131')]==_0x3c9df5)return!0x1;if(!_0x59ab05[_0x3b4a('0xd6')](_0x3c9df5))return!0x1;if(_0x279fab[_0x3b4a('0x52')](_0x3c9df5)||_0x279fab[_0x3b4a('0x11')](_0x3c9df5))return!0x0;}return!0x1;}function _t(_0x3f8952){return _0x3f8952['end']['parent']==_0x3f8952[_0x3b4a('0x5b')][_0x3b4a('0x53')]&&_0x3f8952[_0x3b4a('0x8d')]['isAtStart'];}function Mt(_0x6e4587,_0xc2c3a9,_0x3c2ea4,_0x4f6402){const _0x7d0741=_0x4dd421=>!_0x4dd421['item']['is'](_0x3b4a('0x8b'))&&!_0x4f6402[_0x3b4a('0x52')](_0x4dd421[_0x3b4a('0xa')]),_0x4f3cd7=_0x6e4587['start'][_0x3b4a('0xd0')](_0x7d0741),_0x50143c=_0x6e4587['end'][_0x3b4a('0xd0')](_0x7d0741,{'direction':_0x3b4a('0x94')});return(!_0x6e4587['start'][_0x3b4a('0xe6')](_0x4f3cd7)||!_0x6e4587['end'][_0x3b4a('0xe6')](_0x50143c))&&(_0x4f3cd7[_0x3b4a('0xa0')](_0x50143c)?_0x3c2ea4[_0x3b4a('0x3')](_0xc2c3a9,{'range':_0x3c2ea4[_0x3b4a('0x12f')](_0x4f3cd7,_0x50143c)}):_0x3c2ea4[_0x3b4a('0x6c')](_0xc2c3a9),!0x0);}function $t(_0x391835){return _0x5670c4(_0x391835);}function Nt(_0x2832b1){const _0x218b76=_0x2832b1[_0x3b4a('0x5b')][_0x3b4a('0x53')];return _0x218b76&&_0x218b76['is'](_0x3b4a('0x11b'));}function Rt(_0x4b758f,_0x45eb29){const _0x10f001=_0x45eb29[_0x3b4a('0xed')][_0x3b4a('0x52')](_0x4b758f)||_0x45eb29[_0x3b4a('0xed')][_0x3b4a('0x51')](_0x4b758f);return _0x45eb29[_0x3b4a('0x12f')](_0x45eb29[_0x3b4a('0x8c')](_0x4b758f,_0x3b4a('0x58')),_0x10f001?_0x45eb29[_0x3b4a('0xc2')](_0x4b758f):_0x45eb29[_0x3b4a('0x8c')](_0x4b758f,'end'));}function xt(_0x47cd57,_0x4b9295,_0x2fb13e,_0x50b097,_0x347e9c){if(_0x2fb13e[_0x3b4a('0x8d')][_0x3b4a('0xe6')](_0x50b097['start']))return!0x0;if(_0x47cd57[_0x3b4a('0x1b')]!=_0x4b9295[_0x3b4a('0x1b')])return!0x1;if(!_0x2fb13e[_0x3b4a('0x8d')][_0x3b4a('0xf6')](_0x50b097[_0x3b4a('0x5b')]))return!0x1;const _0x5d6c88=_0x347e9c[_0x3b4a('0x12f')](_0x2fb13e[_0x3b4a('0x8d')],_0x50b097[_0x3b4a('0x5b')])[_0x3b4a('0xd')]();for(const _0x2ee104 of _0x5d6c88)if([_0x3b4a('0x29'),_0x3b4a('0x16')][_0x3b4a('0x97')](_0x2ee104[_0x3b4a('0x1b')])&&_0x347e9c[_0x3b4a('0xed')]['isLimit'](_0x2ee104[_0x3b4a('0xa')]))return!0x1;return!0x0;}
23
+ const _0x58b4=['registerPostFixer','getSuggestion','size','ck-suggestion-marker','formatInline','_refreshSuggestionsChain','toViewElement','getAttribute','insertion:join','from','getSuggestionCallback','substr','_suggestionState','getShiftedBy','low','join','getCustomProperty','containsPosition','data','values','registerCustomCallback','isInsideObject','$graveyard','high','change:_saved','_handleNewSuggestionMarker','getNearestSelectionRange','removed','root','_setSuggestionRange','author','head','previous','addRange','getUser','elementStart','isCollapsed','init','enqueueChange','markDeletion','containsRange','TrackChangesEditing','isOwn','group','has','discardSelectedSuggestions','filter','suggestion','locale','containerElement','fromCharCode','isUndo','for','showSuggestionHighlights','getRanges','markerName','after','change:activeMarkers','insertion','includes','markBlockFormat','element','pluginName','return','every','name','dataReady','split','trackChanges.trackFormatChanges','isInContent','external:','markMultiRangeInsertion','editingDowncast','CommentsRepository','acceptSuggestion','commandName','activeMarkers','listenTo','authoredAt','discardSuggestion','remove','formatBlock:discard','oldRange','getAllAdjacentSuggestions','getIntersection','removeMarker:suggestion:formatBlock','type','fire','sort','setTo','insertion:chain','isBlock','skipNestingCheck','error-saving-suggestion-data-suggestion-discarded','_breakSuggestionMarker','marker-count','deletion:join','getChanges','delete','forceDefaultExecution','document','markers','isIntersectingWithRange','conversion','hasCommentThread','_setSuggestionData','getFirstRange','isLocal','addSuggestion','addMarkerName','upcast','track-changes-command-not-found','_registerDefaultCallbacks','_getExternalAuthor','isObject','addMarker:suggestion:formatBlock','nodeAfter','updateMarker','value','markMultiRangeDeletion','end','getSuggestions','applyOperation','toJSON','_commentsRepository','length','default','isLimit','get','_removeSuggestion','elementToElement','markMultiRangeBlockFormat','_splitMarkerName','acceptAllSuggestions','_model','forward','track-changes-adapter-already-set','addMarker:suggestion','deletion:discard','getAncestors','discard','markerReady','updateSuggestion','PENDING_ACTION_SUGGESTION','ready','createElement','isEqual','track-changes-user-not-found','differ','removeMarkers','insertion:','PendingActions','createPositionBefore','commentThread','Users','some','collaboration.channelId','then','formatInline:','formatBlock:','lowest','_defaultCallbacks','suggestion:','unbind','_addSuggestionMarker','getMultiRangeId','multi','unbindElementFromMarkerName','$marker','enableReadOnlyMode','insert','subType','containsItem','_descriptionFactory','insertion:discard','_createSuggestion','set','formatBlock','_rangeIsInLocalUserInsertion','track-changes-suggestion-data-mismatch','adapter','setAttribute','consumable','_checkSuggestionCorrectness','stopListening','bindElementToMarker','dataToMarker','catch','removeMarker','refresh','consume','attributes','containsRangeInObject','dataDowncast','createPositionAfter','hasComments','isAtStart','add','createRange','rejected','suggestionChanged','isSelectable','formatBlock:join','createSelection','trackChangesCommand','map','hasSuggestion','_findSuggestions','selection','notReady','isMultiRange','_suggestions','_enabledCommands','removeComment','getChangedMarkers','change:data','isBefore','options','model','formatInline:join','ck-suggestion-marker-formatBlock','change','newRange','always','editor','addClass','authorName','splice','schema','formatInline:discard','_adapter','define','fromRange','plugins','never','targetPosition','mapper','item','getLastMatchingPosition','next','insertion:accept','getItems','track-changes-suggestion-not-found','trackChanges','_getSuggestionData','createPositionAt','discardAllSuggestions','getRange','reconvertMarker','suggestionLoaded','deleteContent','howMany','ck-suggestion-marker-','multipleBlocks','_joinSuggestions','formatGroupId','getFirstMarker','addSuggestionData','range','_trackFormatChanges','@external','rethrowUnexpectedError','backward','isExternal','open','nodeBefore','clone','detach','push','formatBlock:chain','deletion','isNextTo','_editor','acceptSelectedSuggestions','rootName','batch','editing','setSelection','moveTargetPosition','stop','_addThreadToSuggestion','isTouching','createdAt','deletion:','_updateSuggestionData','markInlineFormat','_suggestionFactory','formatInline:accept','buildSuggestion','removeClass','commands','suggestionUnloaded','position','isAtEnd','accept','_joinWithAdjacentSuggestions','_getAuthorFromId','creator','trackChanges.mergeNestedSuggestions','accepted','_customCallbacks','_onDiscard','before','writer','formatInline:chain','$textProxy','getWalker','elementEnd','start','isDocumentOperation','isAfter','removeAttribute','update:suggestion','markInsertion','addHighlight','move','_mergeNestedSuggestions','highest','normal','config','_isForcedDefaultExecutionBlock','parent','execute','getDifference','_saved','ck-suggestion-marker--active','enableCommand','markerToHighlight'];(function(_0x429d5e,_0x58b43f){const _0x23c6c7=function(_0x2a1071){while(--_0x2a1071){_0x429d5e['push'](_0x429d5e['shift']());}};_0x23c6c7(++_0x58b43f);}(_0x58b4,0x17c));const _0x23c6=function(_0x429d5e,_0x58b43f){_0x429d5e=_0x429d5e-0x0;let _0x23c6c7=_0x58b4[_0x429d5e];return _0x23c6c7;};import{Plugin as _0x378479,PendingActions as _0x251b1e}from'ckeditor5/src/core';import{LiveRange as _0x35867a}from'ckeditor5/src/engine';import{CKEditorError as _0x16994d,uid as _0x5ca6a3,priorities as _0x2d8438,logWarning as _0x255797}from'ckeditor5/src/utils';import{toWidget as _0x3d3114}from'ckeditor5/src/widget';import{Users as _0x415afc,hashObject as _0x1b942f}from'ckeditor5-collaboration/src/collaboration-core';import _0x13832c from'./commands/trackchangescommand';import _0x3f76ad from'./commands/acceptsuggestioncommand';import _0x5379f3 from'./commands/discardsuggestioncommand';import _0x87ed5e from'./commands/executeonallsuggestionscommand';import _0x228307 from'./commands/executeonselectedsuggestionscommand';import _0x51bcb6 from'./suggestion';import _0x128b7b from'./suggestiondescriptionfactory';import _0x5f4b57 from'./integrations/alignment';import _0x4250fd from'./integrations/basicstyles';import _0x564cc9 from'./integrations/blockquote';import _0xd49735 from'./integrations/ckbox';import _0x400112 from'./integrations/codeblock';import _0x4dd18e from'./integrations/comments';import _0x36b02 from'./integrations/deletecommand';import _0x12ae01 from'./integrations/documentlist';import _0x4a31e0 from'./integrations/entercommand';import _0x165aa3 from'./integrations/findandreplace';import _0x29e3e3 from'./integrations/font';import _0xeaea76 from'./integrations/formatpainter';import _0x5c42e4 from'./integrations/heading';import _0x2ddcfa from'./integrations/highlight';import _0x478d2d from'./integrations/horizontalline';import _0x1b9a76 from'./integrations/htmlembed';import _0x4a6d4c from'./integrations/image';import _0x87666c from'./integrations/imagereplace';import _0x2e860d from'./integrations/importword';import _0x11fd7d from'./integrations/indent';import _0x3e81ee from'./integrations/inputcommand';import _0xe29851 from'./integrations/link';import _0x218620 from'./integrations/list';import _0x3c91c9 from'./integrations/listproperties';import _0x4e45fc from'./integrations/mediaembed';import _0x5730ac from'./integrations/mention';import _0x5858bc from'./integrations/pagebreak';import _0x2bc193 from'./integrations/paragraph';import _0x2c748f from'./integrations/removeformat';import _0x4a716f from'./integrations/restrictededitingmode';import _0x3d1fe8 from'./integrations/shiftentercommand';import _0x52fb49 from'./integrations/standardeditingmode';import _0x390334 from'./integrations/style';import _0x117337 from'./integrations/table';import _0x1dc17c from'./integrations/tablemergesplit';import _0x21998e from'./integrations/tableheadings';import _0x5a6045 from'./integrations/tableclipboard';import _0x4eda23 from'./integrations/tablecolumnresize';import _0x5c19a9 from'./integrations/template';import _0x50b703 from'./integrations/tableofcontents';import _0x5afc65 from'./integrations/title';import _0x5efee1 from'./integrations/undo';import{getTranslation as _0x48a9c6}from'./utils/common-translations';import _0x251b2f from'./integrations/tablecaption';import _0x3b31fc from'./integrations/documentlistproperties';import _0x5931ee from'./integrations/tableproperties';export default class p extends _0x378479{static get['requires'](){return[_0x23c6('0x15'),_0x415afc,_0x251b1e,_0x5f4b57,_0x4250fd,_0x564cc9,_0xd49735,_0x400112,_0x4dd18e,_0x36b02,_0x12ae01,_0x3b31fc,_0x4a31e0,_0x165aa3,_0x29e3e3,_0xeaea76,_0x5c42e4,_0x2ddcfa,_0x478d2d,_0x1b9a76,_0x4a6d4c,_0x87666c,_0x2e860d,_0x11fd7d,_0x3e81ee,_0xe29851,_0x218620,_0x3c91c9,_0x4e45fc,_0x5730ac,_0x5858bc,_0x2bc193,_0x2c748f,_0x4a716f,_0x3d1fe8,_0x52fb49,_0x390334,_0x117337,_0x1dc17c,_0x21998e,_0x251b2f,_0x5a6045,_0x4eda23,_0x50b703,_0x5931ee,_0x5c19a9,_0x5afc65,_0x5efee1];}static get[_0x23c6('0xa')](){return _0x23c6('0x13d');}constructor(_0x5012ee){function _0xe129e7(_0x5ae039){return _0x5ae039['map'](_0x93cb45=>String[_0x23c6('0x146')](_0x93cb45))[_0x23c6('0x123')]('');}super(_0x5012ee),this[_0x23c6('0x7c')](_0x23c6('0x18'),[]),this['on'](_0x23c6('0x5'),(_0x19e89e,_0x1043a1,_0x32a996,_0x15ae47)=>{this[_0x23c6('0x52')][_0x23c6('0xa9')](()=>{for(const _0x1c9bb0 of[..._0x15ae47,..._0x32a996])this['_model'][_0x23c6('0x31')][_0x23c6('0x140')](_0x1c9bb0)&&_0x5012ee[_0x23c6('0xe0')][_0x23c6('0xc4')](_0x1c9bb0);});}),this[_0x23c6('0x79')]=new _0x128b7b(this[_0x23c6('0xac')]['model'][_0x23c6('0xb0')],this[_0x23c6('0xac')][_0x23c6('0x144')]),this['_adapter']=null,this['_suggestionFactory']=new Dt(this['editor']),this[_0x23c6('0x9f')]=new Map(),this[_0x23c6('0x48')]=_0x5012ee[_0x23c6('0xb5')][_0x23c6('0x4c')](_0x23c6('0x15')),this['_enabledCommands']=new Set(),this[_0x23c6('0x52')]=this[_0x23c6('0xac')][_0x23c6('0xa6')],this[_0x23c6('0x120')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5012ee[_0x23c6('0x10b')][_0x23c6('0xb3')](_0x23c6('0x10'),_0x23c6('0x4a')),this[_0x23c6('0xcf')]=_0x5012ee[_0x23c6('0x10b')][_0x23c6('0x4c')]('trackChanges.trackFormatChanges'),_0x5012ee[_0x23c6('0x10b')][_0x23c6('0xb3')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5012ee[_0x23c6('0x10b')]['get'](_0x23c6('0xf6')),this[_0x23c6('0x98')]=new _0x13832c(_0x5012ee,this[_0x23c6('0xa0')]),this[_0xe129e7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xe129e7([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x38]);}[_0x23c6('0x139')](){const _0xdc21bd=this[_0x23c6('0xac')];_0xdc21bd[_0x23c6('0x33')][_0x23c6('0x0')](_0x23c6('0x14'))[_0x23c6('0x113')]({'model':_0x23c6('0x143'),'view':_0x1a5524=>{const {id:_0xfe0fb7,type:_0x45e767}=this[_0x23c6('0x50')](_0x1a5524[_0x23c6('0x3')]),_0x5cd024=['ck-suggestion-marker','ck-suggestion-marker-'+_0x45e767];let _0x3444ff=0xbb8;return this[_0x23c6('0x18')][_0x23c6('0x7')](_0x1a5524[_0x23c6('0x3')])&&(_0x5cd024[_0x23c6('0xd8')](_0x23c6('0x111')),_0x3444ff=0xbc2),_0x23c6('0xda')==_0x45e767&&(_0x3444ff+=0x5),{'classes':_0x5cd024,'attributes':{'data-suggestion':_0xfe0fb7},'priority':_0x3444ff};}}),_0xdc21bd[_0x23c6('0x33')][_0x23c6('0x0')](_0x23c6('0x8d'))['add'](_0x4be0ec=>{_0x4be0ec['on'](_0x23c6('0x55'),(_0x2f3ecc,_0x400131,_0x4cb733)=>{if(!_0x4cb733[_0x23c6('0xa5')]['showSuggestionHighlights'])return;const _0x108895=_0x400131['item'];if(!_0x108895)return;const _0x3bc192=_0x4cb733[_0x23c6('0xb8')][_0x23c6('0x11a')](_0x108895);_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xb0')][_0x23c6('0x3e')](_0x108895)&&_0x3bc192&&!_0x3bc192['getCustomProperty']('widget')&&_0x3bc192['is'](_0x23c6('0x145'))&&_0x3d3114(_0x3bc192,_0x4cb733[_0x23c6('0xfb')]);},{'priority':_0x23c6('0x12b')});}),_0xdc21bd[_0x23c6('0x33')][_0x23c6('0x0')](_0x23c6('0x8d'))[_0x23c6('0x113')]({'model':_0x23c6('0x143'),'view':(_0x2f81c0,_0x3f6f65)=>{if(!_0x3f6f65[_0x23c6('0xa5')]['showSuggestionHighlights'])return null;const {type:_0x2fc7ce}=this[_0x23c6('0x50')](_0x2f81c0[_0x23c6('0x3')]);return{'classes':[_0x23c6('0x117'),_0x23c6('0xc8')+_0x2fc7ce],'priority':0xbb8};}});const _0x1eebe4=({showActiveMarkers:_0x575a78=!0x0}={})=>(_0x28b815,_0x331c1b,_0x14e11e)=>{if(!_0x331c1b[_0x23c6('0xb9')])return;if(_0x331c1b[_0x23c6('0xb9')]['is']('selection'))return void _0x14e11e['consumable'][_0x23c6('0x8a')](_0x331c1b[_0x23c6('0xb9')],_0x28b815[_0x23c6('0xd')]);const _0x1dee3e=_0x14e11e[_0x23c6('0xb8')][_0x23c6('0x11a')](_0x331c1b[_0x23c6('0xb9')]);if(!(_0x331c1b[_0x23c6('0xb9')]['is'](_0x23c6('0x9'))&&_0xdc21bd[_0x23c6('0xa6')]['schema'][_0x23c6('0x27')](_0x331c1b[_0x23c6('0xb9')])&&!_0x1dee3e[_0x23c6('0x124')](_0x23c6('0x106'))))return;const {id:_0x2b4b3e}=this['_splitMarkerName'](_0x331c1b[_0x23c6('0x3')]);_0x14e11e['writer'][_0x23c6('0xad')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1dee3e),_0x14e11e['writer'][_0x23c6('0x81')]('data-suggestion',_0x2b4b3e,_0x1dee3e),_0x14e11e[_0x23c6('0xb8')][_0x23c6('0x85')](_0x1dee3e,_0x331c1b[_0x23c6('0x3')]),_0x575a78&&(this['activeMarkers'][_0x23c6('0x7')](_0x331c1b[_0x23c6('0x3')])?_0x14e11e['writer']['addClass']('ck-suggestion-marker--active',_0x1dee3e):_0x14e11e[_0x23c6('0xfb')][_0x23c6('0xed')](_0x23c6('0x111'),_0x1dee3e));for(const _0x356d67 of _0xdc21bd[_0x23c6('0xa6')]['createRangeIn'](_0x331c1b['item'])[_0x23c6('0xbd')]())_0x14e11e[_0x23c6('0x82')][_0x23c6('0x8a')](_0x356d67,_0x28b815[_0x23c6('0xd')]);_0x14e11e[_0x23c6('0x82')]['consume'](_0x331c1b[_0x23c6('0xb9')],_0x28b815[_0x23c6('0xd')]);};_0xdc21bd[_0x23c6('0x33')]['for'](_0x23c6('0x8d'))[_0x23c6('0x91')](_0x1f3f25=>{_0x1f3f25['on'](_0x23c6('0x3f'),(_0xcc7d75,_0x4e43b7,_0x2108cc)=>{_0x2108cc[_0x23c6('0xa5')][_0x23c6('0x1')]&&_0x1eebe4({'showActiveMarkers':!0x1})(_0xcc7d75,_0x4e43b7,_0x2108cc);},{'priority':_0x23c6('0x109')});}),_0xdc21bd[_0x23c6('0x33')][_0x23c6('0x0')]('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4a7e85,_0x3f0fe2)=>_0x3f0fe2['options'][_0x23c6('0x1')]?null:{'group':_0x23c6('0x143'),'name':_0x4a7e85[_0x23c6('0x11f')](0xb)}}),_0xdc21bd[_0x23c6('0x33')][_0x23c6('0x0')](_0x23c6('0x3a'))[_0x23c6('0x4e')]({'view':{'name':_0x23c6('0x143'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x187402,{writer:_0x9737ea})=>{let _0x423814='suggestion:'+_0x187402[_0x23c6('0x11b')]('suggestion-type')+':'+_0x187402[_0x23c6('0x11b')]('id');return _0x187402['getAttribute'](_0x23c6('0x2b'))&&(_0x423814+=':'+_0x187402[_0x23c6('0x11b')]('marker-count')),_0x9737ea[_0x23c6('0x5d')](_0x23c6('0x74'),{'data-name':_0x423814});}}),_0xdc21bd[_0x23c6('0x33')][_0x23c6('0x0')]('upcast')[_0x23c6('0x86')]({'view':_0x23c6('0x143')}),_0xdc21bd[_0x23c6('0x33')][_0x23c6('0x0')](_0x23c6('0x14'))[_0x23c6('0x91')](_0x2aa822=>{_0x2aa822['on'](_0x23c6('0x3f'),_0x1eebe4(),{'priority':'high'});}),_0xdc21bd[_0x23c6('0x33')][_0x23c6('0x0')]('editingDowncast')['add'](_0xcb22ac=>{_0xcb22ac['on'](_0x23c6('0x21'),(_0x3dc411,_0x50c748,_0x15e22f)=>{const _0x136cdd=_0x15e22f['mapper']['markerNameToElements'](_0x50c748[_0x23c6('0x3')]);if(_0x136cdd)for(const _0x57ae32 of _0x136cdd)_0x57ae32[_0x23c6('0x124')]('addHighlight')||(_0x15e22f[_0x23c6('0xfb')][_0x23c6('0xed')]([_0x23c6('0x117'),_0x23c6('0xa8'),'ck-suggestion-marker--active'],_0x57ae32),_0x15e22f[_0x23c6('0xfb')][_0x23c6('0x103')]('data-suggestion',_0x57ae32),_0x15e22f[_0x23c6('0xb8')][_0x23c6('0x73')](_0x57ae32,_0x50c748['markerName']));},{'priority':'high'});}),_0xdc21bd['model'][_0x23c6('0x30')][_0x23c6('0x114')](_0x552d98=>{let _0x5c7f0f=!0x1;const _0x473454=Array[_0x23c6('0x11d')](_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0x30')][_0x23c6('0x60')]['getChangedMarkers']()),_0x27ccea=new Set();for(const {name:_0x4e0028,data:_0x33e05e}of _0x473454){const {group:_0x3f2c3c,type:_0x4ca0f0,id:_0x293849}=this[_0x23c6('0x50')](_0x4e0028);if('suggestion'!==_0x3f2c3c)continue;const _0x29a681=this[_0x23c6('0x9f')]['get'](_0x293849);if(null!=_0x33e05e[_0x23c6('0xaa')]){_0x23c6('0x118')==_0x4ca0f0&&(_0x5c7f0f=_0x5c7f0f||Mt(_0x33e05e[_0x23c6('0xaa')],_0x4e0028,_0x552d98,_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xb0')]));if(_0x33e05e[_0x23c6('0xaa')][_0x23c6('0x138')]||_0x23c6('0x12a')==_0x33e05e[_0x23c6('0xaa')][_0x23c6('0x130')][_0x23c6('0xde')]||'formatBlock'==_0x4ca0f0&&!Nt(_0x33e05e[_0x23c6('0xaa')])||_0x23c6('0xda')==_0x4ca0f0&&!(!_t(_0x526b24=_0x33e05e[_0x23c6('0xaa')])&&!function(_0x462195){return _0x462195[_0x23c6('0x100')][_0x23c6('0x10d')]==_0x462195[_0x23c6('0x44')][_0x23c6('0xd5')]&&_0x462195['start'][_0x23c6('0xf1')];}(_0x526b24)))_0x552d98[_0x23c6('0x88')](_0x4e0028),_0x5c7f0f=!0x0;else{if(!_0x29a681||!_0x29a681['isInContent'])continue;_0x27ccea['add'](_0x29a681);}}}var _0x526b24;return _0x27ccea[_0x23c6('0x116')]>0x0&&(_0x5c7f0f=!!this['_joinWithAdjacentSuggestions'](_0x27ccea)||_0x5c7f0f),_0x5c7f0f;}),_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0x30')][_0x23c6('0x114')](_0x2f3e47=>{let _0x5b2e84=!0x1;for(const _0x56d0ff of _0xdc21bd['model'][_0x23c6('0x30')][_0x23c6('0x60')][_0x23c6('0x2d')]()){if(_0x23c6('0x76')!=_0x56d0ff[_0x23c6('0x22')])continue;const _0x55c2a4=_0x56d0ff[_0x23c6('0xf0')][_0x23c6('0x121')](_0x56d0ff[_0x23c6('0x49')]);if(_0x55c2a4[_0x23c6('0xf1')])for(const _0x4da00e of this[_0x23c6('0x9f')][_0x23c6('0x127')]()){if(_0x4da00e[_0x23c6('0x9e')]||!_0x4da00e[_0x23c6('0x11')])continue;if('formatBlock'!=_0x4da00e[_0x23c6('0x22')])continue;const _0x182960=_0x4da00e[_0x23c6('0x36')]();if(_0x182960[_0x23c6('0x100')][_0x23c6('0x10d')]!=_0x182960[_0x23c6('0x44')][_0x23c6('0x10d')]&&_0x182960['end'][_0x23c6('0x5e')](_0x56d0ff['position'])){const _0x5bab6e=_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0x92')](_0x182960[_0x23c6('0x100')],_0x55c2a4);_0x2f3e47['updateMarker'](_0x4da00e['getFirstMarker'](),{'range':_0x5bab6e}),_0x5b2e84=!0x0;}}}return _0x5b2e84;}),_0xdc21bd['model']['markers']['on'](_0x23c6('0x104'),(_0x57cc8e,_0xdc412d,_0x1cce31)=>{if(null==_0x1cce31){const {id:_0x5cfc00}=this[_0x23c6('0x50')](_0xdc412d[_0x23c6('0xd')]),_0x3cec71=this[_0x23c6('0x9f')][_0x23c6('0x4c')](_0x5cfc00);_0x3cec71&&_0x3cec71[_0x23c6('0x39')](_0xdc412d[_0x23c6('0xd')]);}}),_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0x30')]['on'](_0x23c6('0xa3'),()=>{const _0x1ed339=Array[_0x23c6('0x11d')](_0xdc21bd['model']['document'][_0x23c6('0x60')][_0x23c6('0xa2')]())[_0x23c6('0x142')](_0x4bff52=>'suggestion'===this[_0x23c6('0x50')](_0x4bff52['name'])[_0x23c6('0x13f')]);if(0x0===_0x1ed339[_0x23c6('0x49')])return;_0x1ed339[_0x23c6('0x24')]((_0x45ef94,_0x2556ea)=>{const _0x4b6c61=_0x45ef94['data'][_0x23c6('0x1e')],_0x2d4b34=_0x2556ea[_0x23c6('0x126')][_0x23c6('0x1e')];return null===_0x4b6c61&&null===_0x2d4b34?0x0:null===_0x4b6c61&&null!==_0x2d4b34?-0x1:null!==_0x4b6c61&&null===_0x2d4b34?0x1:_0x4b6c61[_0x23c6('0x100')][_0x23c6('0xa4')](_0x2d4b34['start'])?-0x1:0x1;});const _0xc3ac27=new Set(),_0x82c5c7=new Set();for(const {name:_0x409cdd,data:_0x833678}of _0x1ed339){const {id:_0x32f7a6}=this[_0x23c6('0x50')](_0x409cdd);if(null===_0x833678[_0x23c6('0x1e')]){const _0x1b51aa=this[_0x23c6('0x12d')](_0x409cdd);_0x82c5c7[_0x23c6('0x91')](_0x1b51aa);}else{const _0x485093=this[_0x23c6('0x9f')]['get'](_0x32f7a6);null!==_0x833678['newRange']||_0x485093[_0x23c6('0x11')]?(_0xc3ac27[_0x23c6('0x91')](_0x485093[_0x23c6('0x133')]),_0x82c5c7[_0x23c6('0x91')](_0x485093)):this[_0x23c6('0x4d')](_0x485093);}}_0x82c5c7[_0x23c6('0x116')]>0x0&&this[_0x23c6('0x119')](_0x82c5c7);for(const _0x259480 of _0xc3ac27)this[_0x23c6('0x23')](_0x23c6('0x94'),_0x259480);}),_0xdc21bd[_0x23c6('0xa6')]['on'](_0x23c6('0x46'),(_0x14f6f6,_0x98c8cb)=>{const _0x385478=_0x98c8cb[0x0];if(!this[_0x23c6('0x9f')][_0x23c6('0x116')])return;if(!_0x385478[_0x23c6('0x101')])return;if(_0x385478[_0x23c6('0xdf')][_0x23c6('0x147')]||!_0x385478[_0x23c6('0xdf')][_0x23c6('0x37')])return;let _0x3267cf,_0x209491;switch(_0x385478[_0x23c6('0x22')]){case _0x23c6('0x76'):_0x3267cf=_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xc1')](_0x385478['position']),_0x209491=_0x3267cf[_0x23c6('0x121')](_0x385478[_0x23c6('0xc7')]);break;case _0x23c6('0xf'):_0x3267cf=_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xc1')](_0x385478['splitPosition']),_0x209491=_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xc1')](_0x385478[_0x23c6('0xe2')]);break;case _0x23c6('0x107'):_0x3267cf=_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xc1')](_0x385478[_0x23c6('0xb7')]),_0x209491=_0x3267cf[_0x23c6('0x121')](_0x385478[_0x23c6('0xc7')]);break;default:return;}const _0x2fb033=_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0x92')](_0x3267cf,_0x209491);_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xa9')](()=>{for(const {suggestion:_0x360287,meta:_0x4076ec}of this[_0x23c6('0x9b')](_0x2fb033)){if(_0x360287[_0x23c6('0x9e')])continue;if(_0x23c6('0x118')==_0x360287[_0x23c6('0x22')])continue;const _0x4651d0=_0x360287[_0x23c6('0x126')]&&_0x360287[_0x23c6('0x126')][_0x23c6('0xc9')];(_0x23c6('0x7d')!=_0x360287[_0x23c6('0x22')]||_0x23c6('0xf')==_0x385478[_0x23c6('0x22')]&&!_0x4651d0)&&(_0x4076ec['containsRangeInObject']||'insertion'==_0x360287[_0x23c6('0x22')]&&_0x4076ec[_0x23c6('0x13e')]||_0x360287[_0x23c6('0x36')]()['containsRange'](_0x2fb033)&&this['_breakSuggestionMarker'](_0x360287,_0x3267cf,_0x209491));}});},{'priority':_0x23c6('0x6c')}),_0xdc21bd[_0x23c6('0xa6')]['on'](_0x23c6('0xc6'),(_0x4e32d9,_0x327cbe)=>{const _0x3d27fc=_0x327cbe[0x0],_0x2cb2cc=_0x327cbe[0x1];if(_0x2cb2cc&&_0x2cb2cc[_0x23c6('0x2f')])return;if(this[_0x23c6('0x10c')])return;if(!this[_0x23c6('0x98')]['value'])return;if(_0x3d27fc[_0x23c6('0x138')])return;const _0x393494=_0xdc21bd['model'][_0x23c6('0xb0')],{start:_0x3c2cf1,end:_0x462998}=_0x3d27fc[_0x23c6('0x36')](),_0x114325=_0x3c2cf1[_0x23c6('0x40')]&&_0x393494[_0x23c6('0x4b')](_0x3c2cf1[_0x23c6('0x40')])?null:_0x393494[_0x23c6('0x12e')](_0x3c2cf1,_0x23c6('0x53')),_0x144729=_0x462998[_0x23c6('0xd5')]&&_0x393494['isLimit'](_0x462998['nodeBefore'])?null:_0x393494[_0x23c6('0x12e')](_0x462998,_0x23c6('0xd2')),_0x180d45=_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0x92')](_0x114325?_0x114325['start']:_0x3c2cf1,_0x144729?_0x144729[_0x23c6('0x44')]:_0x462998);_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xa9')](_0x2a1e84=>{this[_0x23c6('0x13b')](_0x180d45);const _0x126881=_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xb0')][_0x23c6('0x12e')](_0x180d45['start']);_0x3d27fc['is']('documentSelection')?_0x2a1e84['setSelection'](_0x126881):_0x3d27fc[_0x23c6('0x25')](_0x126881);}),_0x4e32d9['stop']();},{'priority':_0x2d8438[_0x23c6('0x10a')]+0xa}),_0xdc21bd[_0x23c6('0xa6')]['on']('insertContent',(_0x20a15c,_0x29a2b0)=>{const _0x421db1=_0x29a2b0[_0x29a2b0['length']-0x1];_0x421db1&&_0x421db1[_0x23c6('0x2f')]||this[_0x23c6('0x10c')]||this[_0x23c6('0x98')][_0x23c6('0x42')]&&(_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xa9')](()=>{let _0x5ba1ce=_0xdc21bd[_0x23c6('0xa6')]['insertContent'](_0x29a2b0[0x0],_0x29a2b0[0x1],_0x29a2b0[0x2],{'forceDefaultExecution':!0x0});if(!_0x5ba1ce)return;_0x20a15c[_0x23c6('0xb')]=_0x5ba1ce[_0x23c6('0xd6')]();const _0x3df450=_0x5ba1ce['end'][_0x23c6('0xd5')],_0x37bf1e=_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xb0')];_0x3df450&&_0x37bf1e[_0x23c6('0x27')](_0x3df450)&&!_0x37bf1e[_0x23c6('0x3e')](_0x3df450)&&(_0x5ba1ce=_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0x92')](_0x5ba1ce['start'],_0xdc21bd[_0x23c6('0xa6')][_0x23c6('0xc1')](_0x3df450,_0x23c6('0x44')))),this[_0x23c6('0x105')](_0x5ba1ce);}),_0x20a15c[_0x23c6('0xe3')]());},{'priority':_0x23c6('0x12b')}),this['editor']['commands'][_0x23c6('0x91')](_0x23c6('0xbf'),this[_0x23c6('0x98')]),this['enableCommand'](_0x23c6('0xbf'));const _0x318da0=new _0x3f76ad(_0xdc21bd,this[_0x23c6('0x9f')]);_0xdc21bd[_0x23c6('0xee')][_0x23c6('0x91')](_0x23c6('0x16'),_0x318da0),this[_0x23c6('0x112')](_0x23c6('0x16'));const _0x415333=new _0x5379f3(_0xdc21bd,this[_0x23c6('0x9f')]);_0xdc21bd['commands']['add'](_0x23c6('0x1b'),_0x415333),this[_0x23c6('0x112')](_0x23c6('0x1b')),_0xdc21bd[_0x23c6('0xee')][_0x23c6('0x91')](_0x23c6('0x51'),new _0x87ed5e(_0xdc21bd,_0x318da0,this['_suggestions'])),this[_0x23c6('0x112')](_0x23c6('0x51')),_0xdc21bd['commands'][_0x23c6('0x91')](_0x23c6('0xc2'),new _0x87ed5e(_0xdc21bd,_0x415333,this[_0x23c6('0x9f')])),this[_0x23c6('0x112')](_0x23c6('0xc2')),_0xdc21bd[_0x23c6('0xee')][_0x23c6('0x91')]('acceptSelectedSuggestions',new _0x228307(_0xdc21bd,_0x318da0,this[_0x23c6('0x9f')])),this[_0x23c6('0x112')](_0x23c6('0xdd')),_0xdc21bd[_0x23c6('0xee')][_0x23c6('0x91')](_0x23c6('0x141'),new _0x228307(_0xdc21bd,_0x415333,this[_0x23c6('0x9f')])),this[_0x23c6('0x112')](_0x23c6('0x141'));const _0xe0903=_0xdc21bd['plugins'][_0x23c6('0x4c')](_0x23c6('0x15'));this[_0x23c6('0x19')](_0xe0903,'addComment',(_0x2e8594,{threadId:_0x4e3a8e})=>{const _0x18acfd=this[_0x23c6('0x9f')][_0x23c6('0x4c')](_0x4e3a8e);_0x18acfd&&_0x18acfd[_0x23c6('0x65')]&&0x1===_0x18acfd[_0x23c6('0x65')]['length']&&this['_updateSuggestionData'](_0x4e3a8e,{'hasComments':!0x0});},{'priority':_0x23c6('0x122')}),this[_0x23c6('0x19')](_0xe0903,_0x23c6('0xa1'),(_0x542808,{threadId:_0x3c1c5f})=>{const _0x20a870=this['_suggestions']['get'](_0x3c1c5f);_0x20a870&&_0x20a870[_0x23c6('0x65')]&&!_0x20a870[_0x23c6('0x65')]['length']&&this[_0x23c6('0xe8')](_0x3c1c5f,{'hasComments':!0x1});},{'priority':'low'});}set[_0x23c6('0x80')](_0x2cf82d){if(this['_adapter'])throw new _0x16994d(_0x23c6('0x54'),this);this['_adapter']=_0x2cf82d;}get['adapter'](){return this[_0x23c6('0xb2')];}[_0x23c6('0x45')]({skipNotAttached:_0x194216=!0x1,toJSON:_0x2dca33=!0x1}={}){const _0x4bb24c=[];for(const _0x5ad33d of this['_suggestions'][_0x23c6('0x127')]())_0x194216&&!_0x5ad33d[_0x23c6('0x11')]||_0x4bb24c['push'](_0x5ad33d);return _0x2dca33?_0x4bb24c[_0x23c6('0x99')](_0x3a758d=>_0x3a758d[_0x23c6('0x47')]()):_0x4bb24c;}['getSuggestion'](_0x17e643){const _0x2a3e36=this[_0x23c6('0x9f')][_0x23c6('0x4c')](_0x17e643);if(!_0x2a3e36)throw new _0x16994d(_0x23c6('0xbe'),this);return _0x2a3e36;}[_0x23c6('0x9a')](_0x3789b5){return this[_0x23c6('0x9f')][_0x23c6('0x140')](_0x3789b5);}['addSuggestionData'](_0x32b7f0){const {authorId:_0x457f27,id:_0x5d3645,attributes:_0x22d2f4}=_0x32b7f0,[_0x243a0f,_0xcec7a]=_0x32b7f0['type'][_0x23c6('0xf')](':'),_0x397ad4=this[_0x23c6('0x9f')][_0x23c6('0x4c')](_0x5d3645)||this[_0x23c6('0x7b')](_0x243a0f,_0xcec7a,_0x5d3645,_0x457f27,_0x22d2f4);if(this[_0x23c6('0xe4')](_0x397ad4),this[_0x23c6('0x83')](_0x397ad4,_0x243a0f,_0xcec7a||null,_0x457f27),_0x397ad4[_0x23c6('0xe6')]=_0x32b7f0[_0x23c6('0xe6')],_0x22d2f4&&_0x22d2f4[_0x23c6('0xd0')]){const _0x5942f8=_0x22d2f4[_0x23c6('0xd0')],_0x1c0bbe=this[_0x23c6('0x3d')](_0x5942f8[_0x23c6('0xae')]);_0x397ad4[_0x23c6('0x1a')]=_0x5942f8[_0x23c6('0xe6')],_0x397ad4['author']=_0x1c0bbe,_0x397ad4[_0x23c6('0xd3')]=!0x0;}else _0x397ad4[_0x23c6('0x1a')]=_0x32b7f0['createdAt'];switch(_0x32b7f0[_0x23c6('0x126')]&&(_0x397ad4[_0x23c6('0x126')]=_0x32b7f0[_0x23c6('0x126')]),_0x32b7f0[_0x23c6('0x8b')]&&(_0x397ad4[_0x23c6('0x8b')]=_0x32b7f0[_0x23c6('0x8b')]),this[_0x23c6('0xb2')]&&this['_adapter'][_0x23c6('0x38')]||(_0x397ad4[_0x23c6('0x110')]=!0x0),this['_suggestionState'][_0x23c6('0x4c')](_0x397ad4)){case _0x23c6('0x9d'):this[_0x23c6('0x120')][_0x23c6('0x7c')](_0x397ad4,_0x23c6('0xe'));break;case _0x23c6('0x59'):_0x397ad4[_0x23c6('0x11')]?(this['_suggestionState'][_0x23c6('0x7c')](_0x397ad4,_0x23c6('0x5c')),this['fire'](_0x23c6('0xc5'),_0x397ad4)):this[_0x23c6('0x120')][_0x23c6('0x7c')](_0x397ad4,_0x23c6('0x12f'));}return _0x397ad4;}[_0x23c6('0x16')](_0x4ae84d){this[_0x23c6('0x2f')](()=>{this[_0x23c6('0xac')][_0x23c6('0xa6')][_0x23c6('0xa9')](()=>{for(const _0x2d44e1 of _0x4ae84d['getAllAdjacentSuggestions']())_0x2d44e1['accept']();});});}[_0x23c6('0x1b')](_0xbe2e0d){this[_0x23c6('0x2f')](()=>{this[_0x23c6('0xac')][_0x23c6('0xa6')]['change'](()=>{for(const _0x3ecdbb of _0xbe2e0d[_0x23c6('0x1f')]())_0x3ecdbb[_0x23c6('0x58')]();});});}['enableCommand'](_0x44dbe3,_0x1de7d2){const _0x5b107a=this[_0x23c6('0xac')]['commands'][_0x23c6('0x4c')](_0x44dbe3);if(!_0x5b107a)throw new _0x16994d(_0x23c6('0x3b'),this,{'commandName':_0x44dbe3});this['_enabledCommands']['add'](_0x5b107a),_0x1de7d2&&_0x5b107a['on'](_0x23c6('0x10e'),(_0x426fa3,_0x5763b7)=>{this[_0x23c6('0x98')][_0x23c6('0x42')]&&(this['_isForcedDefaultExecutionBlock']||_0x5763b7[_0x23c6('0x49')]>0x0&&_0x5763b7[_0x5763b7['length']-0x1]&&_0x5763b7[_0x5763b7[_0x23c6('0x49')]-0x1][_0x23c6('0x2f')]||(_0x1de7d2((..._0x4c2ffb)=>_0x5b107a[_0x23c6('0x10e')](..._0x4c2ffb,{'forceDefaultExecution':!0x0}),..._0x5763b7),_0x426fa3['stop']()));},{'priority':_0x23c6('0x12b')});}['forceDefaultExecution'](_0x193fd3){let _0x415ffe,_0x2ebf48;const _0x551566=this[_0x23c6('0x10c')];this[_0x23c6('0x10c')]=!0x0;try{_0x415ffe=_0x193fd3();}catch(_0x2c9b2d){_0x2ebf48=_0x2c9b2d;}return _0x551566||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2ebf48&&_0x16994d[_0x23c6('0xd1')](_0x2ebf48,this),_0x415ffe;}['markInsertion'](_0x3f5843,_0x15bcf1=null,_0x13961e={}){if(_0x3f5843[_0x23c6('0x138')])return null;const _0x36b694=this['editor'][_0x23c6('0xb5')]['get'](_0x23c6('0x66'))['me'];for(const {suggestion:_0x2e8000,meta:_0xb64f20}of this[_0x23c6('0x9b')](_0x3f5843,_0x23c6('0x6')))if(_0xb64f20[_0x23c6('0x13e')]){if(!_0xb64f20[_0x23c6('0xdb')]){if(!this[_0x23c6('0x108')]&&_0xb64f20[_0x23c6('0x8c')])continue;return _0x2e8000;}if(_0x15bcf1==_0x2e8000[_0x23c6('0x77')]){const _0x4d39c8=_0x2e8000['getFirstRange']();return _0x4d39c8[_0x23c6('0x100')][_0x23c6('0x5e')](_0x3f5843['end'])?this[_0x23c6('0x131')](_0x2e8000,this[_0x23c6('0x52')][_0x23c6('0x92')](_0x3f5843[_0x23c6('0x100')],_0x4d39c8['end'])):this[_0x23c6('0x131')](_0x2e8000,this['_model'][_0x23c6('0x92')](_0x4d39c8[_0x23c6('0x100')],_0x3f5843[_0x23c6('0x44')])),_0x2e8000;}}const _0x1e704a=_0x5ca6a3(),_0x1ee3e2=_0x36b694['id'],_0x1cf0e4=_0x15bcf1?_0x23c6('0x62')+_0x15bcf1:_0x23c6('0x6'),_0x3121d4=this[_0x23c6('0x35')]({'id':_0x1e704a,'type':_0x1cf0e4,'createdAt':new Date(),'authorId':_0x1ee3e2,'attributes':_0x13961e});return this[_0x23c6('0x70')](_0x1cf0e4,_0x1e704a,_0x1ee3e2,_0x3f5843),_0x3121d4;}[_0x23c6('0x13')](_0x575f1c,_0x4d9868=_0x23c6('0x72'),_0x1787fd={}){const _0x2757fe=this[_0x23c6('0xac')][_0x23c6('0xb5')]['get']('Users')['me'],_0x42279e=this[_0x23c6('0xea')][_0x23c6('0x11e')]('insertion',_0x4d9868,_0x23c6('0x123'));for(const _0x167373 of this['getSuggestions']())if(_0x167373[_0x23c6('0x132')]['id']==_0x2757fe['id']&&_0x23c6('0x6')==_0x167373[_0x23c6('0x22')]&&_0x167373[_0x23c6('0x77')]==_0x4d9868&&(_0x42279e(_0x167373[_0x23c6('0x2')](),_0x575f1c)||_0x42279e(_0x575f1c,_0x167373[_0x23c6('0x2')]()))){for(const _0x1d3524 of _0x575f1c)_0x167373[_0x23c6('0x135')](_0x1d3524);return _0x167373;}if(this['_mergeNestedSuggestions'])for(const _0x59fcde of _0x575f1c)for(const {suggestion:_0x2dc02c,meta:_0x452384}of this[_0x23c6('0x9b')](_0x59fcde,_0x23c6('0x6'))){if(!_0x452384['isOwn'])continue;let _0xcbb44a=!0x0;for(const _0x527438 of _0x2dc02c[_0x23c6('0x2')]())for(const _0x529e29 of _0x575f1c)if(!_0x527438['containsRange'](_0x529e29)){_0xcbb44a=!0x1;break;}if(_0xcbb44a)return _0x2dc02c;}const _0x20ae58=_0x5ca6a3(),_0x1bfdad=_0x2757fe['id'],_0x251250=_0x23c6('0x62')+_0x4d9868,_0x5b0c4e=this[_0x23c6('0x35')]({'id':_0x20ae58,'type':_0x251250,'createdAt':new Date(),'authorId':_0x1bfdad,'attributes':_0x1787fd});for(const _0x82e377 of _0x575f1c)this[_0x23c6('0x70')](_0x251250,_0x20ae58,_0x1bfdad,_0x82e377,_0x51bcb6[_0x23c6('0x71')]());return _0x5b0c4e;}[_0x23c6('0xe9')](_0x19ef71,_0x2464bb,_0x4c9f47=null,_0x506d41={}){if(_0x4c9f47=_0x4c9f47||$t(_0x2464bb),_0x19ef71[_0x23c6('0x138')])return null;if('never'===this[_0x23c6('0xcf')]){const _0x2724c0=this[_0x23c6('0xea')][_0x23c6('0x11e')](_0x23c6('0x118'),_0x4c9f47,_0x23c6('0xf2'));return this[_0x23c6('0x2f')](()=>_0x2724c0([_0x19ef71],_0x2464bb,_0x506d41)),null;}const _0x8d96a3=this['editor']['plugins'][_0x23c6('0x4c')](_0x23c6('0x66'))['me'],_0x1f5fef=[];if(_0x23c6('0xab')!==this[_0x23c6('0xcf')])for(const {suggestion:_0x3b7af,meta:_0x14a399}of this['_findSuggestions'](_0x19ef71,'insertion'))_0x14a399[_0x23c6('0x13e')]&&!_0x14a399['isInsideObject']&&_0x1f5fef['push'](..._0x3b7af[_0x23c6('0x2')]());const _0x178155=function(_0x146015,_0x27bb49){const _0x42ccfa=[];for(const _0x5aab1b of _0x27bb49){const _0x4c890d=_0x146015[_0x23c6('0x20')](_0x5aab1b);_0x4c890d&&_0x42ccfa[_0x23c6('0xd8')](_0x4c890d);}return _0x42ccfa;}(_0x19ef71,_0x1f5fef),_0x174994=function(_0x2c1fa0,_0x27850c){const _0x136bb2=[_0x2c1fa0];for(const _0x1fbcc1 of _0x27850c){let _0x2aed85=0x0;for(;_0x2aed85<_0x136bb2[_0x23c6('0x49')];){const _0x3d2580=_0x136bb2[_0x2aed85][_0x23c6('0x10f')](_0x1fbcc1);_0x136bb2[_0x23c6('0xaf')](_0x2aed85,0x1,..._0x3d2580),_0x2aed85+=_0x3d2580['length'];}}return _0x136bb2;}(_0x19ef71,_0x1f5fef);_0x178155[_0x23c6('0x49')]&&this[_0x23c6('0x52')][_0x23c6('0xa9')](()=>{for(const _0x42c730 of _0x178155){const _0x480018=this[_0x23c6('0xea')]['getSuggestionCallback'](_0x23c6('0x118'),_0x4c9f47,_0x23c6('0xf2'));this['forceDefaultExecution'](()=>_0x480018([_0x42c730],_0x2464bb,_0x506d41));}});for(const _0x3648c9 of _0x174994){let _0x672343=null,_0x1cf5db=_0x3648c9[_0x23c6('0x100')],_0x442c28=_0x3648c9[_0x23c6('0x44')];for(const {suggestion:_0x1dcea5,meta:_0x1b9bef}of this['_findSuggestions'](_0x3648c9,_0x23c6('0x118'))){if(!_0x1b9bef['isOwn'])continue;if(_0x1dcea5[_0x23c6('0x77')]!=_0x4c9f47)continue;const _0x43b09d=_0x1dcea5[_0x23c6('0x36')]();if(_0x43b09d['containsRange'](_0x3648c9,!0x0))return null;_0x1cf5db=_0x1cf5db[_0x23c6('0xa4')](_0x43b09d[_0x23c6('0x100')])?_0x1cf5db:_0x43b09d[_0x23c6('0x100')],_0x442c28=_0x442c28[_0x23c6('0x102')](_0x43b09d[_0x23c6('0x44')])?_0x442c28:_0x43b09d[_0x23c6('0x44')],_0x672343?_0x43b09d[_0x23c6('0x100')][_0x23c6('0xa4')](_0x672343[_0x23c6('0x36')]()[_0x23c6('0x100')])?(_0x672343[_0x23c6('0x61')](),_0x672343=_0x1dcea5):_0x1dcea5[_0x23c6('0x61')]():_0x672343=_0x1dcea5;}const _0x414e56=this[_0x23c6('0x52')][_0x23c6('0x92')](_0x1cf5db,_0x442c28);if(_0x672343)this['_setSuggestionRange'](_0x672343,_0x414e56);else{const _0x51bf85=_0x5ca6a3(),_0x45bc2b=_0x8d96a3['id'];this['_setSuggestionData']({'id':_0x51bf85,'type':_0x23c6('0x6a')+_0x4c9f47,'data':_0x2464bb,'createdAt':new Date(),'authorId':_0x45bc2b,'attributes':_0x506d41}),this[_0x23c6('0x70')](_0x23c6('0x6a')+_0x4c9f47,_0x51bf85,_0x45bc2b,_0x414e56);}}return null;}[_0x23c6('0x8')](_0x30c720,_0x1df3e2,_0x24ea48=[],_0x1339d9=null,_0x187741={}){_0x1df3e2[_0x23c6('0xcb')]||(_0x1df3e2[_0x23c6('0xcb')]=_0x1df3e2[_0x23c6('0x17')]),_0x1df3e2[_0x23c6('0xc9')]=_0x30c720['is']('range'),_0x1339d9=_0x1339d9||$t(_0x1df3e2);const _0x1c1868=_0x24ea48[_0x23c6('0x99')](_0x3d2f36=>Rt(_0x3d2f36,this[_0x23c6('0x52')])),_0x217004=_0x30c720['is'](_0x23c6('0xce'))?_0x30c720:Rt(_0x30c720,this[_0x23c6('0x52')]);if(_0x23c6('0xb6')===this[_0x23c6('0xcf')]){const _0x10a36c=this[_0x23c6('0xea')][_0x23c6('0x11e')](_0x23c6('0x7d'),_0x1339d9,_0x23c6('0xf2'));return this['forceDefaultExecution'](()=>_0x10a36c([_0x217004],_0x1df3e2,_0x187741)),null;}_0x1c1868['push'](_0x217004);let _0x1e663c=!0x0;for(const _0x5ee577 of _0x1c1868)if(!this['_rangeIsInLocalUserInsertion'](_0x5ee577)){_0x1e663c=!0x1;break;}if(_0x1e663c&&_0x23c6('0xab')!==this[_0x23c6('0xcf')]){const _0x358907=this['_suggestionFactory'][_0x23c6('0x11e')](_0x23c6('0x7d'),_0x1339d9,_0x23c6('0xf2'));return this[_0x23c6('0x2f')](()=>_0x358907([_0x217004],_0x1df3e2,_0x187741)),null;}let _0x3a6853=null,_0x5ba33b=_0x217004['start'],_0x5818bd=_0x217004[_0x23c6('0x44')];for(const {suggestion:_0x5b7540,meta:_0x2edd7c}of this[_0x23c6('0x9b')](_0x217004,_0x23c6('0x7d'))){if(!_0x2edd7c[_0x23c6('0x13e')]||_0x2edd7c[_0x23c6('0xdb')]||_0x2edd7c['containsRangeInObject']||_0x2edd7c[_0x23c6('0x129')])continue;if(_0x5b7540[_0x23c6('0x126')][_0x23c6('0xcb')]!=_0x1df3e2[_0x23c6('0xcb')])continue;const _0x286f68=_0x5b7540[_0x23c6('0x36')]();if(_0x5b7540[_0x23c6('0x77')]==_0x1339d9){if(_0x286f68[_0x23c6('0x13c')](_0x217004,!0x0))return null;_0x5ba33b=_0x5ba33b[_0x23c6('0xa4')](_0x286f68[_0x23c6('0x100')])?_0x5ba33b:_0x286f68[_0x23c6('0x100')],_0x5818bd=_0x5818bd['isAfter'](_0x286f68[_0x23c6('0x44')])?_0x5818bd:_0x286f68['end'],_0x3a6853?_0x286f68[_0x23c6('0x100')][_0x23c6('0xa4')](_0x3a6853[_0x23c6('0x36')]()[_0x23c6('0x100')])?(_0x3a6853[_0x23c6('0x61')](),_0x3a6853=_0x5b7540):_0x5b7540[_0x23c6('0x61')]():_0x3a6853=_0x5b7540;}else{const _0x7723d=_0x217004[_0x23c6('0x20')](_0x286f68);this['_cutOutSuggestionMarker'](_0x5b7540,_0x7723d);}}const _0x3aba35=this[_0x23c6('0xac')]['plugins'][_0x23c6('0x4c')](_0x23c6('0x66'))['me'],_0x2e2d1e=_0x5ca6a3(),_0x5ef7de=_0x3aba35['id'];if(_0x3a6853)return this[_0x23c6('0x131')](_0x3a6853,this[_0x23c6('0x52')][_0x23c6('0x92')](_0x5ba33b,_0x5818bd)),_0x3a6853;{const _0x28d2f4=this[_0x23c6('0x35')]({'id':_0x2e2d1e,'type':_0x23c6('0x6b')+_0x1339d9,'data':_0x1df3e2,'createdAt':new Date(),'authorId':_0x5ef7de,'attributes':_0x187741});return this[_0x23c6('0x70')]('formatBlock:'+_0x1339d9,_0x2e2d1e,_0x5ef7de,this['_model'][_0x23c6('0x92')](_0x5ba33b,_0x5818bd)),_0x28d2f4;}}[_0x23c6('0x4f')](_0x745f2c,_0x112cca,_0x4f03f3=[],_0x5ab9b0=null,_0x2f2b68={}){_0x112cca['formatGroupId']||(_0x112cca[_0x23c6('0xcb')]=_0x112cca[_0x23c6('0x17')]);const _0x1d4daf=_0x745f2c[0x0];_0x112cca[_0x23c6('0xc9')]=_0x1d4daf['is']('range'),_0x5ab9b0=_0x5ab9b0||$t(_0x112cca);const _0x102faf=_0x4f03f3[_0x23c6('0x99')](_0x502fb4=>Rt(_0x502fb4,this[_0x23c6('0x52')])),_0x2acb97=_0x1d4daf['is'](_0x23c6('0xce'))?_0x745f2c:_0x745f2c[_0x23c6('0x99')](_0x1aeae4=>Rt(_0x1aeae4,this[_0x23c6('0x52')]));if(_0x23c6('0xb6')===this['_trackFormatChanges']){const _0x2ac0bd=this[_0x23c6('0xea')][_0x23c6('0x11e')](_0x23c6('0x7d'),_0x5ab9b0,_0x23c6('0xf2'));return this[_0x23c6('0x2f')](()=>_0x2ac0bd(_0x2acb97,_0x112cca,_0x2f2b68)),null;}_0x102faf[_0x23c6('0xd8')](..._0x2acb97);let _0x154a8a=!0x0;for(const _0x2c423f of _0x102faf)if(!this[_0x23c6('0x7e')](_0x2c423f)){_0x154a8a=!0x1;break;}if(_0x154a8a&&_0x23c6('0xab')!==this[_0x23c6('0xcf')]){const _0x43da2a=this[_0x23c6('0xea')]['getSuggestionCallback'](_0x23c6('0x7d'),_0x5ab9b0,_0x23c6('0xf2'));return this[_0x23c6('0x2f')](()=>_0x43da2a(_0x2acb97,_0x112cca,_0x2f2b68)),null;}const _0x2d6fb2=this[_0x23c6('0xac')]['plugins'][_0x23c6('0x4c')](_0x23c6('0x66'))['me'];for(const _0x186a62 of this[_0x23c6('0x45')]()){if(_0x186a62[_0x23c6('0x132')]['id']!=_0x2d6fb2['id'])continue;if(_0x23c6('0x7d')!=_0x186a62['type']||_0x186a62[_0x23c6('0x126')][_0x23c6('0xcb')]!=_0x112cca[_0x23c6('0xcb')])continue;const _0xb9b813=_0x186a62[_0x23c6('0x77')]==_0x5ab9b0;for(let _0x1c0fcf=0x0;_0x1c0fcf<_0x2acb97[_0x23c6('0x49')];_0x1c0fcf++){const _0x240108=_0x2acb97[_0x1c0fcf];for(const _0x12056d of _0x186a62['getMarkers']()){const _0x3030d4=_0x12056d[_0x23c6('0xc3')]();if(_0x240108[_0x23c6('0x5e')](_0x3030d4)){_0xb9b813?(_0x2acb97[_0x23c6('0xaf')](_0x1c0fcf,0x1),_0x1c0fcf--):_0x186a62[_0x23c6('0x88')](_0x12056d[_0x23c6('0xd')]);break;}}}}if(0x0==_0x2acb97[_0x23c6('0x49')])return null;const _0xf48b4=this[_0x23c6('0xea')]['getSuggestionCallback']('formatBlock',_0x5ab9b0,_0x23c6('0x123'));for(const _0x17b727 of this[_0x23c6('0x45')]())if(_0x17b727['author']['id']==_0x2d6fb2['id']&&_0x23c6('0x7d')==_0x17b727['type']&&_0x17b727[_0x23c6('0x126')][_0x23c6('0xcb')]==_0x112cca[_0x23c6('0xcb')]&&_0x17b727[_0x23c6('0x77')]==_0x5ab9b0&&(_0xf48b4(_0x17b727[_0x23c6('0x2')](),_0x2acb97)||_0xf48b4(_0x2acb97,_0x17b727['getRanges']()))){for(const _0x443181 of _0x2acb97)_0x17b727[_0x23c6('0x135')](_0x443181);return _0x17b727;}const _0x4fd887=_0x5ca6a3(),_0x512146=_0x2d6fb2['id'],_0x210302=_0x23c6('0x6b')+_0x5ab9b0,_0xa21b98=this[_0x23c6('0x35')]({'id':_0x4fd887,'type':_0x210302,'data':_0x112cca,'createdAt':new Date(),'authorId':_0x512146,'attributes':_0x2f2b68});for(const _0xf2d23e of _0x2acb97)this[_0x23c6('0x70')](_0x210302,_0x4fd887,_0x512146,_0xf2d23e,_0x51bcb6[_0x23c6('0x71')]());return _0xa21b98;}[_0x23c6('0x13b')](_0x140399,_0x5229f2=null,_0x36853a={}){if(_0x140399[_0x23c6('0x138')])return null;const _0x2ec285=this['editor'][_0x23c6('0xb5')][_0x23c6('0x4c')](_0x23c6('0x66'))['me'],_0x4a051d=new _0x35867a(_0x140399[_0x23c6('0x100')],_0x140399[_0x23c6('0x44')]);for(const {suggestion:_0x576c3e,meta:_0x49f423}of this[_0x23c6('0x9b')](_0x4a051d,_0x23c6('0x6')))if(_0x49f423[_0x23c6('0x13e')]&&!_0x49f423[_0x23c6('0xdb')]){if(_0x576c3e[_0x23c6('0x9e')]){const _0x4d8e17=_0x576c3e[_0x23c6('0x2')]()[_0x23c6('0x142')](_0x48f40e=>_0x23c6('0x12a')!=_0x48f40e[_0x23c6('0x130')]['rootName']);_0x4d8e17[_0x23c6('0xc')](_0x4e23f1=>_0x4a051d[_0x23c6('0x13c')](_0x4e23f1,!0x0))&&_0x576c3e['discard']();if(_0x4d8e17[_0x23c6('0x67')](_0x39191a=>_0x39191a[_0x23c6('0x13c')](_0x4a051d,!0x0))){const _0x45ca5a=this[_0x23c6('0xea')]['getSuggestionCallback'](_0x23c6('0xda'),_0x5229f2,_0x23c6('0xf2'));return this[_0x23c6('0x2f')](()=>_0x45ca5a([_0x4a051d],null,_0x36853a)),null;}}else{const _0x34e4b5=_0x4a051d[_0x23c6('0x20')](_0x576c3e[_0x23c6('0x36')]());null!==_0x34e4b5&&_0x576c3e[_0x23c6('0xf9')]([_0x34e4b5],null,_0x36853a);}}if(_0x4a051d[_0x23c6('0xd7')](),_0x4a051d['isCollapsed']||_0x23c6('0x12a')==_0x4a051d[_0x23c6('0x130')][_0x23c6('0xde')])return null;let _0x35ed7b=null,_0x3e3e31=_0x4a051d['start'],_0x4d7c31=_0x4a051d[_0x23c6('0x44')];for(const {suggestion:_0x46ef10,meta:_0x35bf5a}of this['_findSuggestions'](_0x4a051d,_0x23c6('0xda')))if(_0x35bf5a[_0x23c6('0x13e')]){if(_0x46ef10[_0x23c6('0x9e')]&&this['_mergeNestedSuggestions']){let _0x206a3b=!0x0;for(const _0x1fedac of _0x46ef10['getRanges']()){if(_0x1fedac['containsRange'](_0x4a051d,!0x0))return _0x46ef10;_0x4a051d[_0x23c6('0x13c')](_0x1fedac)||(_0x206a3b=!0x1);}_0x206a3b&&_0x46ef10[_0x23c6('0x58')]();}else{const _0x5222c3=_0x46ef10['getFirstRange']();if(_0x5222c3[_0x23c6('0x13c')](_0x4a051d,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x35bf5a[_0x23c6('0x8c')])continue;return _0x46ef10;}_0x3e3e31=_0x3e3e31[_0x23c6('0xa4')](_0x5222c3[_0x23c6('0x100')])?_0x3e3e31:_0x5222c3['start'],_0x4d7c31=_0x4d7c31[_0x23c6('0x102')](_0x5222c3[_0x23c6('0x44')])?_0x4d7c31:_0x5222c3[_0x23c6('0x44')],_0x35ed7b?_0x5222c3[_0x23c6('0x100')]['isBefore'](_0x35ed7b[_0x23c6('0x36')]()[_0x23c6('0x100')])?(_0x35ed7b[_0x23c6('0x61')](),_0x35ed7b=_0x46ef10):_0x46ef10[_0x23c6('0x61')]():_0x35ed7b=_0x46ef10;}}if(_0x35ed7b)return this[_0x23c6('0x131')](_0x35ed7b,this['_model'][_0x23c6('0x92')](_0x3e3e31,_0x4d7c31)),_0x35ed7b;{const _0x5af2b8=_0x5ca6a3(),_0x140293=this[_0x23c6('0x52')][_0x23c6('0x92')](_0x3e3e31,_0x4d7c31),_0x387bd8=_0x2ec285['id'],_0x3ed5cc=_0x5229f2?_0x23c6('0xe7')+_0x5229f2:_0x23c6('0xda'),_0x5c997f=this['_setSuggestionData']({'id':_0x5af2b8,'type':_0x3ed5cc,'createdAt':new Date(),'authorId':_0x387bd8,'attributes':_0x36853a});return this[_0x23c6('0x70')](_0x3ed5cc,_0x5af2b8,_0x387bd8,_0x140293),_0x5c997f;}}[_0x23c6('0x43')](_0x227425,_0x1974bd=_0x23c6('0x72'),_0x5199f1={}){const _0x2e181b=this['editor'][_0x23c6('0xb5')][_0x23c6('0x4c')](_0x23c6('0x66'))['me'],_0x7b14c8=_0x227425[_0x23c6('0x99')](_0x21b85e=>new _0x35867a(_0x21b85e[_0x23c6('0x100')],_0x21b85e[_0x23c6('0x44')])),_0x2e25de=new Set();for(const _0x860dd3 of _0x7b14c8)for(const {suggestion:_0x5b2883,meta:_0x58508e}of this['_findSuggestions'](_0x860dd3,'insertion'))_0x58508e['isOwn']&&!_0x58508e[_0x23c6('0xdb')]&&_0x2e25de[_0x23c6('0x91')](_0x5b2883);for(const _0x25e5d2 of _0x2e25de)if(_0x25e5d2[_0x23c6('0x9e')]){const _0x3ee1f8=_0x25e5d2[_0x23c6('0x2')]();(!_0x25e5d2[_0x23c6('0x8b')]||!_0x25e5d2['attributes'][_0x23c6('0x28')])&&(_0x3ee1f8[_0x23c6('0xc')](_0x37223e=>_0x7b14c8[_0x23c6('0x67')](_0x113410=>_0x113410[_0x23c6('0x13c')](_0x37223e,!0x0)))&&_0x25e5d2[_0x23c6('0x58')]());if(_0x7b14c8[_0x23c6('0xc')](_0x1c88ae=>_0x3ee1f8[_0x23c6('0x67')](_0xde3450=>_0xde3450[_0x23c6('0x13c')](_0x1c88ae,!0x0)))){const _0x2d959e=this['_suggestionFactory'][_0x23c6('0x11e')](_0x23c6('0xda'),_0x1974bd,_0x23c6('0xf2'));return this[_0x23c6('0x2f')](()=>_0x2d959e(_0x227425,null,_0x5199f1)),null;}}else{const _0x26de72=_0x25e5d2['getFirstRange']();_0x7b14c8[_0x23c6('0x67')](_0x2d3b1a=>_0x2d3b1a[_0x23c6('0x13c')](_0x26de72,!0x0))&&_0x25e5d2[_0x23c6('0x58')]();if(_0x7b14c8['every'](_0xe85b2=>_0x26de72[_0x23c6('0x13c')](_0xe85b2,!0x0))){const _0x3f100b=this['_suggestionFactory']['getSuggestionCallback'](_0x23c6('0xda'),_0x1974bd,'accept');return this[_0x23c6('0x2f')](()=>_0x3f100b(_0x7b14c8,null,_0x5199f1)),null;}}const _0xfa5b0=this['_suggestionFactory']['getSuggestionCallback'](_0x23c6('0xda'),_0x1974bd,_0x23c6('0x123'));let _0x512c57=null;for(const _0x1a9cb0 of this[_0x23c6('0x45')]())if(_0x1a9cb0[_0x23c6('0x132')]['id']==_0x2e181b['id']&&_0x1a9cb0[_0x23c6('0x11')]&&_0x23c6('0xda')==_0x1a9cb0['type']&&_0x1a9cb0[_0x23c6('0x77')]==_0x1974bd&&(_0xfa5b0(_0x1a9cb0[_0x23c6('0x2')](),_0x7b14c8)||_0xfa5b0(_0x7b14c8,_0x1a9cb0[_0x23c6('0x2')]()))){if(_0x512c57){if(_0x1a9cb0['commentThread']&&_0x1a9cb0[_0x23c6('0x65')][_0x23c6('0x49')])continue;for(const _0xc1220b of _0x1a9cb0[_0x23c6('0x2')]())_0x512c57[_0x23c6('0x32')](_0xc1220b)||_0x512c57[_0x23c6('0x135')](_0xc1220b);_0x1a9cb0[_0x23c6('0x61')]();}else{_0x512c57=_0x1a9cb0;for(const _0x2337c5 of _0x7b14c8)_0x1a9cb0[_0x23c6('0x32')](_0x2337c5)||_0x1a9cb0[_0x23c6('0x135')](_0x2337c5);}}if(_0x512c57)return _0x512c57;_0x2e25de['clear']();for(const _0x11fcc7 of _0x7b14c8)for(const {suggestion:_0x267db5,meta:_0x52f009}of this['_findSuggestions'](_0x11fcc7,_0x23c6('0xda')))_0x52f009['isOwn']&&_0x2e25de[_0x23c6('0x91')](_0x267db5);for(const _0x48fcaa of _0x2e25de){const _0x369bdd=_0x48fcaa[_0x23c6('0x2')]();if(!_0x5199f1||!_0x5199f1[_0x23c6('0x28')]){if(_0x7b14c8['every'](_0x5e0b89=>_0x369bdd['some'](_0x1186a4=>_0x1186a4[_0x23c6('0x13c')](_0x5e0b89,!0x0))))return _0x48fcaa;}(!_0x48fcaa[_0x23c6('0x8b')]||!_0x48fcaa[_0x23c6('0x8b')]['skipNestingCheck'])&&(_0x369bdd[_0x23c6('0xc')](_0x5d2df9=>_0x7b14c8[_0x23c6('0x67')](_0x3c80bb=>_0x3c80bb[_0x23c6('0x13c')](_0x5d2df9,!0x0)))&&_0x48fcaa[_0x23c6('0x58')]());}const _0x1d443c=_0x5ca6a3(),_0x1b34ce=_0x2e181b['id'],_0x1ee8f3=_0x23c6('0xe7')+_0x1974bd,_0x1516c7=this[_0x23c6('0x35')]({'id':_0x1d443c,'type':_0x1ee8f3,'createdAt':new Date(),'authorId':_0x1b34ce,'attributes':_0x5199f1});for(const _0x180df8 of _0x7b14c8)_0x180df8[_0x23c6('0xd7')](),_0x180df8['isCollapsed']||_0x23c6('0x12a')==_0x180df8[_0x23c6('0x130')][_0x23c6('0xde')]||this['_addSuggestionMarker'](_0x1ee8f3,_0x1d443c,_0x1b34ce,_0x180df8,_0x51bcb6[_0x23c6('0x71')]());return _0x1516c7;}[_0x23c6('0x131')](_0x3687b2,_0x2f0b38){const _0x211a34=_0x3687b2[_0x23c6('0xcc')]();this['_model'][_0x23c6('0xa9')](_0x593509=>{_0x593509[_0x23c6('0x41')](_0x211a34,{'range':_0x2f0b38});});}['_addThreadToSuggestion'](_0x49d0b9){const _0x3d54ed=_0x49d0b9['id'],_0x5172b4=this[_0x23c6('0xac')][_0x23c6('0x10b')][_0x23c6('0x4c')](_0x23c6('0x68'));this[_0x23c6('0x48')][_0x23c6('0x34')](_0x3d54ed)||this[_0x23c6('0x48')]['addCommentThread']({'channelId':_0x5172b4,'threadId':_0x3d54ed,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x20b733=this['_commentsRepository']['getCommentThread'](_0x3d54ed);_0x20b733[_0x23c6('0x6f')]('isRemovable'),_0x20b733['isRemovable']=!0x1,_0x49d0b9['commentThread']=_0x20b733;}['_checkSuggestionCorrectness'](_0x3db6f5,_0x506522,_0x49a29e,_0x6353aa){if(_0x3db6f5[_0x23c6('0x22')]!=_0x506522||_0x3db6f5[_0x23c6('0x77')]!=_0x49a29e||_0x3db6f5[_0x23c6('0xf5')]['id']!=_0x6353aa)throw this['editor'][_0x23c6('0x75')](_0x23c6('0x7f')),new _0x16994d(_0x23c6('0x7f'),this);}['_cutOutSuggestionMarker'](_0x3228b9,_0x1a88f3){const _0x431c74=_0x3228b9[_0x23c6('0x36')]();if(_0x1a88f3[_0x23c6('0x5e')](_0x431c74))_0x3228b9[_0x23c6('0x61')]();else{if(_0x431c74[_0x23c6('0x13c')](_0x1a88f3)){const _0x3c791f=this['_model'][_0x23c6('0xc1')](_0x1a88f3[_0x23c6('0x100')][_0x23c6('0xd5')],'end');this[_0x23c6('0x131')](_0x3228b9,this[_0x23c6('0x52')][_0x23c6('0x92')](_0x431c74[_0x23c6('0x100')],_0x3c791f));const _0x1dba65=_0x5ca6a3(),_0x3fcae3=_0x3228b9[_0x23c6('0xf5')]['id'],_0x5261b7=_0x3228b9[_0x23c6('0x22')]+':'+_0x3228b9['subType'];this[_0x23c6('0x35')]({'id':_0x1dba65,'type':_0x5261b7,'createdAt':new Date(),'authorId':_0x3fcae3,'data':_0x3228b9[_0x23c6('0x126')],'attributes':_0x3228b9[_0x23c6('0x8b')]});const _0xbe99a=this[_0x23c6('0x52')][_0x23c6('0xc1')](_0x1a88f3[_0x23c6('0x44')][_0x23c6('0x10d')],_0x23c6('0x4')),_0x4ca2af=this['_model'][_0x23c6('0x92')](_0xbe99a,_0x431c74[_0x23c6('0x44')]);this[_0x23c6('0x70')](_0x5261b7,_0x1dba65,_0x3fcae3,_0x4ca2af);}else{if(_0x431c74[_0x23c6('0x125')](_0x1a88f3[_0x23c6('0x100')])){const _0x55bbc5=this['_model'][_0x23c6('0xc1')](_0x1a88f3[_0x23c6('0x100')]['nodeBefore'],_0x23c6('0x44'));this[_0x23c6('0x131')](_0x3228b9,this[_0x23c6('0x52')][_0x23c6('0x92')](_0x431c74[_0x23c6('0x100')],_0x55bbc5));}else{const _0x2b302d=this[_0x23c6('0x52')][_0x23c6('0xc1')](_0x1a88f3[_0x23c6('0x44')][_0x23c6('0x10d')],_0x23c6('0x4'));this[_0x23c6('0x131')](_0x3228b9,this[_0x23c6('0x52')][_0x23c6('0x92')](_0x2b302d,_0x431c74[_0x23c6('0x44')]));}}}}[_0x23c6('0x7e')](_0x3d8d1f){for(const {suggestion:_0x1c4775,meta:_0x2b5788}of this['_findSuggestions'](_0x3d8d1f,_0x23c6('0x6'))){if(!_0x2b5788[_0x23c6('0x13e')])continue;const _0x3af6e4=_0x1c4775['getRanges']();for(const _0x18598d of _0x3af6e4)if(!_0x3d8d1f[_0x23c6('0x10f')](_0x18598d)[_0x23c6('0x49')])return!0x0;}return!0x1;}[_0x23c6('0xf4')](_0x19909b){const _0xfb21ac=this[_0x23c6('0xac')]['plugins'][_0x23c6('0x4c')](_0x23c6('0x66'))[_0x23c6('0x136')](_0x19909b);if(!_0xfb21ac)throw new _0x16994d(_0x23c6('0x5f'),this);return _0xfb21ac;}[_0x23c6('0x3d')](_0x172a5e){const _0x2dde10=this[_0x23c6('0xac')]['plugins'][_0x23c6('0x4c')]('Users'),_0x27f114=_0x1b942f(_0x23c6('0x12')+_0x172a5e),_0x223153=_0x2dde10[_0x23c6('0x136')](_0x27f114);return _0x223153||_0x2dde10['addUser']({'id':_0x27f114,'name':_0x172a5e});}['_createSuggestion'](_0x3a0465,_0x104458,_0x5dae9f,_0x58e3d3,_0xda988c){const _0x3a8db8=this[_0x23c6('0xf4')](_0x58e3d3),_0x4f7e15=this['_suggestionFactory']['buildSuggestion'](_0x3a0465,_0x104458,_0x5dae9f,_0x3a8db8,_0xda988c,_0x356140=>this['_updateSuggestionData'](_0x5dae9f,{'attributes':_0x356140}));return this[_0x23c6('0x19')](_0x4f7e15,'accept',()=>{this[_0x23c6('0xe8')](_0x5dae9f,{'state':_0x23c6('0xf7')});},{'priority':_0x23c6('0x12b')}),this[_0x23c6('0x19')](_0x4f7e15,'discard',()=>{this[_0x23c6('0xe8')](_0x5dae9f,{'state':_0x23c6('0x93')});},{'priority':_0x23c6('0x12b')}),this[_0x23c6('0x9f')][_0x23c6('0x7c')](_0x5dae9f,_0x4f7e15),this[_0x23c6('0x120')]['set'](_0x4f7e15,_0x23c6('0x9d')),_0x4f7e15;}[_0x23c6('0x50')](_0x49ee2e){const _0x2f8921=_0x49ee2e[_0x23c6('0xf')](':');return{'group':_0x2f8921[0x0],'type':_0x2f8921[0x1],'subType':_0x2f8921[_0x23c6('0x49')]>=0x5?_0x2f8921[0x2]:null,'id':_0x2f8921['length']<0x5?_0x2f8921[0x2]:_0x2f8921[0x3],'authorId':_0x2f8921[_0x23c6('0x49')]<0x5?_0x2f8921[0x3]:_0x2f8921[0x4],'markerCount':0x6==_0x2f8921['length']?_0x2f8921[0x5]:null};}[_0x23c6('0x2a')](_0x183dc8,_0x24b3ce,_0x107ca5){const _0x2f74c1=_0x183dc8[_0x23c6('0x36')](),_0x196b76=_0x2f74c1[_0x23c6('0x100')],_0x18efb2=_0x2f74c1[_0x23c6('0x44')];this[_0x23c6('0x131')](_0x183dc8,this[_0x23c6('0x52')][_0x23c6('0x92')](_0x196b76,_0x24b3ce));const _0x5076eb=_0x5ca6a3(),_0x5b310d=_0x183dc8[_0x23c6('0xf5')]['id'],_0x180972=_0x183dc8[_0x23c6('0x22')]+(_0x183dc8[_0x23c6('0x77')]?':'+_0x183dc8[_0x23c6('0x77')]:'');this[_0x23c6('0x35')]({'id':_0x5076eb,'type':_0x180972,'createdAt':new Date(),'authorId':_0x5b310d,'originalSuggestionId':_0x183dc8['id'],'attributes':_0x183dc8[_0x23c6('0x8b')],'data':_0x183dc8[_0x23c6('0x126')]}),_0x23c6('0x7d')==_0x183dc8[_0x23c6('0x22')]&&(_0x107ca5=this[_0x23c6('0x52')][_0x23c6('0x64')](_0x107ca5[_0x23c6('0x10d')])),this[_0x23c6('0x70')](_0x180972,_0x5076eb,_0x5b310d,this['_model'][_0x23c6('0x92')](_0x107ca5,_0x18efb2));}[_0x23c6('0x9b')](_0x3dfdb3,_0x3fad3c=null){const _0x490040=[],_0x3c254f=this[_0x23c6('0x52')][_0x23c6('0xb0')],_0x4b0381=this['editor']['plugins'][_0x23c6('0x4c')](_0x23c6('0x66'))['me'];for(const _0x5ab38c of this['getSuggestions']())if(_0x5ab38c['isInContent']&&(!_0x3fad3c||_0x5ab38c['type']==_0x3fad3c))for(const _0x17fc42 of _0x5ab38c[_0x23c6('0x2')]()){const _0x270bde=_0x3dfdb3['start'][_0x23c6('0x5e')](_0x17fc42[_0x23c6('0x44')])||_0x3dfdb3[_0x23c6('0x44')][_0x23c6('0x5e')](_0x17fc42[_0x23c6('0x100')]);if(_0x270bde||_0x3dfdb3[_0x23c6('0x20')](_0x17fc42)){const _0x55572d=_0x3dfdb3[_0x23c6('0x13c')](_0x17fc42)&&Bt(_0x3c254f,_0x17fc42['start'],_0x3dfdb3),_0x2a2ebd=_0x17fc42[_0x23c6('0x13c')](_0x3dfdb3)&&Bt(_0x3c254f,_0x3dfdb3[_0x23c6('0x100')],_0x17fc42);_0x490040['push']({'suggestion':_0x5ab38c,'meta':{'isOwn':_0x4b0381==_0x5ab38c[_0x23c6('0x132')],'isNextTo':_0x270bde,'isInsideObject':_0x55572d,'containsRangeInObject':_0x2a2ebd}});break;}}return _0x490040;}[_0x23c6('0x70')](_0x3dc88e,_0xcfe8d3,_0x570757,_0x147c37,_0x39f538){this[_0x23c6('0x52')][_0x23c6('0xa9')](_0x277e52=>{let _0x43d6b3=_0x23c6('0x6e')+_0x3dc88e+':'+_0xcfe8d3+':'+_0x570757;_0x39f538&&(_0x43d6b3=_0x43d6b3+':'+_0x39f538),_0x277e52['addMarker'](_0x43d6b3,{'range':_0x147c37,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x23c6('0x4d')](_0xb87ff6){const _0x255add=_0xb87ff6[_0x23c6('0x134')],_0x3d01ac=_0xb87ff6[_0x23c6('0xbb')];_0xb87ff6[_0x23c6('0x134')]=null,null!=_0x255add&&(_0x255add[_0x23c6('0xbb')]=null),_0xb87ff6[_0x23c6('0xbb')]=null,null!=_0x3d01ac&&(_0x3d01ac[_0x23c6('0x134')]=null),'ready'==this[_0x23c6('0x120')][_0x23c6('0x4c')](_0xb87ff6)&&(this[_0x23c6('0x120')]['set'](_0xb87ff6,'removed'),this[_0x23c6('0x23')](_0x23c6('0xef'),_0xb87ff6,_0x255add,_0x3d01ac));}[_0x23c6('0x35')](_0x528339){const _0x263ca1=_0x528339['id'],_0x2e890b=this[_0x23c6('0xcd')](_0x528339);if(this[_0x23c6('0xb2')]&&this[_0x23c6('0xb2')][_0x23c6('0x38')]){const _0x55fcd0=this['editor'][_0x23c6('0xb5')][_0x23c6('0x4c')](_0x23c6('0x63')),_0x5af2d7=_0x2e890b[_0x23c6('0x8f')],_0x30864b=_0x2e890b['subType']?_0x2e890b['type']+':'+_0x2e890b['subType']:_0x2e890b[_0x23c6('0x22')],_0x1e49f2=this[_0x23c6('0xac')]['locale'],_0xa09fed=_0x55fcd0[_0x23c6('0x91')](_0x48a9c6(_0x1e49f2,_0x23c6('0x5b'))),_0x1993b1={'id':_0x263ca1,'type':_0x30864b,'hasComments':_0x5af2d7,'data':_0x528339[_0x23c6('0x126')]||null,'originalSuggestionId':_0x528339['originalSuggestionId']||null,'attributes':_0x2e890b[_0x23c6('0x8b')]};this[_0x23c6('0xb2')][_0x23c6('0x38')](_0x1993b1)['then'](_0x286da9=>{_0x2e890b['_saved']=!0x0,_0x55fcd0[_0x23c6('0x1c')](_0xa09fed),_0x286da9&&_0x286da9['createdAt']&&(this['_suggestions'][_0x23c6('0x4c')](_0x263ca1)[_0x23c6('0xe6')]=_0x286da9[_0x23c6('0xe6')]);})[_0x23c6('0x87')](_0x35ec2c=>{throw _0x255797(_0x23c6('0x29')),this[_0x23c6('0xac')][_0x23c6('0xa6')][_0x23c6('0x13a')]({'isUndoable':!0x1},()=>{_0x2e890b[_0x23c6('0x58')]();}),_0x2e890b[_0x23c6('0x84')](),this['_suggestions']['delete'](_0x2e890b['id']),this['_suggestionState'][_0x23c6('0x2e')](_0x2e890b),_0x35ec2c;});}return _0x2e890b;}[_0x23c6('0xe8')](_0x21d502,_0x118e2e){const _0x384f4e=this[_0x23c6('0xac')]['plugins'][_0x23c6('0x4c')](_0x23c6('0x63')),_0x30d6d2=this[_0x23c6('0x115')](_0x21d502);if(this[_0x23c6('0xb2')]&&this['_adapter'][_0x23c6('0x5a')]){if(_0x30d6d2[_0x23c6('0x110')]){const _0x9a28f9=_0x384f4e[_0x23c6('0x91')](_0x48a9c6(this['editor'][_0x23c6('0x144')],'PENDING_ACTION_SUGGESTION'));this[_0x23c6('0xb2')][_0x23c6('0x5a')](_0x21d502,_0x118e2e)[_0x23c6('0x69')](()=>{_0x384f4e[_0x23c6('0x1c')](_0x9a28f9);});}else _0x30d6d2['on'](_0x23c6('0x12c'),()=>{this[_0x23c6('0xe8')](_0x21d502,_0x118e2e);});}}[_0x23c6('0xc0')](_0x2d62d6){if(!this[_0x23c6('0xb2')]||!this[_0x23c6('0xb2')][_0x23c6('0x115')])throw new _0x16994d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d62d6);}[_0x23c6('0x12d')](_0x195817){const {id:_0x129d5e,type:_0x519d50,subType:_0x345936,authorId:_0x2f0084}=this['_splitMarkerName'](_0x195817),_0x3b918d=this[_0x23c6('0x9f')]['get'](_0x129d5e)||this[_0x23c6('0x7b')](_0x519d50,_0x345936,_0x129d5e,_0x2f0084,{});switch(this['_checkSuggestionCorrectness'](_0x3b918d,_0x519d50,_0x345936,_0x2f0084),this[_0x23c6('0x120')][_0x23c6('0x4c')](_0x3b918d)){case _0x23c6('0x9d'):this[_0x23c6('0xc0')](_0x129d5e)['then'](_0x57bac7=>{let _0x263b0b=Promise['resolve']();_0x57bac7[_0x23c6('0x8f')]&&(_0x263b0b=this[_0x23c6('0x48')]['fetchCommentThread']({'channelId':this[_0x23c6('0xac')][_0x23c6('0x10b')][_0x23c6('0x4c')](_0x23c6('0x68')),'threadId':_0x129d5e})),_0x263b0b[_0x23c6('0x69')](()=>{this[_0x23c6('0xcd')](_0x57bac7)['_saved']=!0x0;});}),this[_0x23c6('0x120')][_0x23c6('0x7c')](_0x3b918d,_0x23c6('0x59'));break;case _0x23c6('0x12f'):this['_updateSuggestionData'](_0x129d5e,{'state':_0x23c6('0xd4')});case _0x23c6('0xe'):this['_suggestionState']['set'](_0x3b918d,_0x23c6('0x5c')),this['fire'](_0x23c6('0xc5'),_0x3b918d);break;case _0x23c6('0x5c'):this[_0x23c6('0x23')](_0x23c6('0x94'),_0x3b918d);}return _0x3b918d[_0x23c6('0x39')](_0x195817),_0x3b918d;}[_0x23c6('0x119')](_0x4fa79a){const _0x3cb6c3=Array[_0x23c6('0x11d')](_0x4fa79a)[_0x23c6('0x142')](_0x66d96f=>!_0x66d96f[_0x23c6('0x9e')]),_0x3c4a19=this[_0x23c6('0x45')]({'skipNotAttached':!0x0})[_0x23c6('0x142')](_0x426a2f=>!_0x426a2f[_0x23c6('0x9e')]),_0x296af8=_0x3c4a19[_0x23c6('0x142')](_0x3c843c=>!_0x4fa79a[_0x23c6('0x140')](_0x3c843c)),_0x17759c=new Map(_0x3c4a19[_0x23c6('0x99')](_0x465526=>[_0x465526,this[_0x23c6('0xea')][_0x23c6('0x11e')](_0x465526[_0x23c6('0x22')],_0x465526[_0x23c6('0x77')],'chain')])),_0x1437e7=new Map(_0x3c4a19[_0x23c6('0x99')](_0x449386=>[_0x449386,_0x449386['getFirstRange']()])),_0x4eb842=new Set(),_0x2f0b85=new Set();for(let _0xea5fed=0x0;_0xea5fed<_0x3cb6c3[_0x23c6('0x49')];_0xea5fed++)_0x4b2a17(_0x3cb6c3[_0xea5fed],_0x3cb6c3,_0xea5fed+0x1);for(let _0x384887=0x0;_0x384887<_0x3cb6c3[_0x23c6('0x49')];_0x384887++)_0x4b2a17(_0x3cb6c3[_0x384887],_0x296af8,0x0);for(let _0x1e2cb0=0x0;_0x1e2cb0<_0x3cb6c3[_0x23c6('0x49')];_0x1e2cb0++){const _0x2312af=_0x3cb6c3[_0x1e2cb0];!_0x2f0b85['has'](_0x2312af)&&_0x2312af[_0x23c6('0x134')]&&(_0x2312af[_0x23c6('0x134')][_0x23c6('0xbb')]===_0x2312af&&(_0x2312af['previous'][_0x23c6('0xbb')]=null),_0x2312af['previous']=null),!_0x4eb842['has'](_0x2312af)&&_0x2312af[_0x23c6('0xbb')]&&(_0x2312af['next'][_0x23c6('0x134')]===_0x2312af&&(_0x2312af['next'][_0x23c6('0x134')]=null),_0x2312af[_0x23c6('0xbb')]=null);}function _0x4b2a17(_0x254daf,_0x353af6,_0x21c98a){for(let _0x2a142e=_0x21c98a;_0x2a142e<_0x353af6[_0x23c6('0x49')];_0x2a142e++){const _0x315198=_0x2c3f3a(_0x254daf,_0x353af6[_0x2a142e]);_0x315198&&(_0x315198[0x0]['next']=_0x315198[0x1],_0x315198[0x1][_0x23c6('0x134')]=_0x315198[0x0],_0x4eb842[_0x23c6('0x91')](_0x315198[0x0]),_0x2f0b85[_0x23c6('0x91')](_0x315198[0x1]));}}function _0x2c3f3a(_0x1ea272,_0x50fb7f){if(_0x1ea272['author']['id']!==_0x50fb7f[_0x23c6('0x132')]['id'])return null;const _0xb1e5b2=_0x17759c[_0x23c6('0x4c')](_0x1ea272)(_0x1ea272,_0x50fb7f,_0x1437e7['get'](_0x1ea272),_0x1437e7['get'](_0x50fb7f));if(!_0xb1e5b2)return null;return _0x17759c[_0x23c6('0x4c')](_0x50fb7f)(_0x1ea272,_0x50fb7f,_0x1437e7[_0x23c6('0x4c')](_0x1ea272),_0x1437e7['get'](_0x50fb7f))?_0xb1e5b2[0x1][_0x23c6('0x65')]&&_0xb1e5b2[0x1]['commentThread'][_0x23c6('0x49')]?null:_0xb1e5b2:null;}}[_0x23c6('0xf3')](_0x2d907a){const _0x22b8b6=Array['from'](_0x2d907a),_0x1a0318=this[_0x23c6('0x45')]({'skipNotAttached':!0x0}),_0x475d25=_0x1a0318['filter'](_0xfc7fe=>!_0x2d907a[_0x23c6('0x140')](_0xfc7fe)),_0x3e8ea4=new Map(_0x22b8b6[_0x23c6('0x99')](_0x31d9ab=>[_0x31d9ab,this[_0x23c6('0xea')][_0x23c6('0x11e')](_0x31d9ab[_0x23c6('0x22')],_0x31d9ab[_0x23c6('0x77')],_0x23c6('0x123'))])),_0xd4b782=new Map(_0x1a0318[_0x23c6('0x99')](_0x317985=>[_0x317985,_0x317985[_0x23c6('0x2')]()]));for(let _0x2eec0d=0x0;_0x2eec0d<_0x22b8b6['length'];_0x2eec0d++){if(_0x5326c8(this,_0x22b8b6[_0x2eec0d],_0x22b8b6,_0x2eec0d+0x1))return!0x0;}for(let _0x106f5e=0x0;_0x106f5e<_0x22b8b6['length'];_0x106f5e++){if(_0x5326c8(this,_0x22b8b6[_0x106f5e],_0x475d25,0x0))return!0x0;}return!0x1;function _0x5326c8(_0xc1ea6,_0x32ae7f,_0x283797,_0x38dec6){for(let _0x754d14=_0x38dec6;_0x754d14<_0x283797['length'];_0x754d14++){const _0x3d0418=_0x283797[_0x754d14];if(_0x3d0418[_0x23c6('0x22')]!==_0x32ae7f[_0x23c6('0x22')]||_0x3d0418[_0x23c6('0x132')]['id']!==_0x32ae7f['author']['id']||_0x3d0418['subType']!==_0x32ae7f[_0x23c6('0x77')])continue;const _0xeabb03=_0x3e8ea4[_0x23c6('0x4c')](_0x32ae7f),_0x7c3053=_0xd4b782[_0x23c6('0x4c')](_0x32ae7f),_0x36f03d=_0xd4b782['get'](_0x3d0418),_0x3bfad8=_0x32ae7f[_0x23c6('0x65')]&&_0x32ae7f[_0x23c6('0x65')][_0x23c6('0x49')],_0x44d047=_0x3d0418['commentThread']&&_0x3d0418[_0x23c6('0x65')][_0x23c6('0x49')];if(!_0x3bfad8&&_0xeabb03(_0x36f03d,_0x7c3053))return _0xc1ea6['_joinSuggestions'](_0x3d0418,_0x32ae7f),_0xd4b782[_0x23c6('0x2e')](_0x32ae7f),!0x0;if(!_0x44d047&&_0xeabb03(_0x7c3053,_0x36f03d))return _0xc1ea6[_0x23c6('0xca')](_0x32ae7f,_0x3d0418),_0xd4b782['delete'](_0x3d0418),!0x0;}return!0x1;}}[_0x23c6('0xca')](_0x51e292,_0x152dcd){if(_0x51e292[_0x23c6('0x9e')])for(const _0x19b8cf of _0x152dcd[_0x23c6('0x2')]())_0x51e292[_0x23c6('0x135')](_0x19b8cf);else{const _0x2af293=_0x152dcd['getFirstRange']()[_0x23c6('0x44')];this[_0x23c6('0x131')](_0x51e292,this[_0x23c6('0x52')]['createRange'](_0x51e292[_0x23c6('0x36')]()[_0x23c6('0x100')],_0x2af293));}_0x152dcd['removeMarkers']();}}class Dt{constructor(_0x1b1dd2){this[_0x23c6('0xdc')]=_0x1b1dd2,this[_0x23c6('0x52')]=_0x1b1dd2[_0x23c6('0xa6')],this[_0x23c6('0xf8')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x23c6('0x3c')]();}[_0x23c6('0xec')](_0x39cb3b,_0x431b06,_0x3a3f94,_0x125ee0,_0x3741d2,_0x113fe6){return new _0x51bcb6(this['_model'],{'type':_0x39cb3b,'subType':_0x431b06,'id':_0x3a3f94,'author':_0x125ee0,'creator':_0x125ee0,'attributes':_0x3741d2,'onAttributesChange':_0x113fe6,'onAccept':(..._0x2a3c6e)=>this[_0x23c6('0x11e')](_0x39cb3b,_0x431b06,_0x23c6('0xf2'))(..._0x2a3c6e),'onDiscard':(..._0x29b58b)=>this[_0x23c6('0x11e')](_0x39cb3b,_0x431b06,_0x23c6('0x58'))(..._0x29b58b)});}[_0x23c6('0x128')](_0x6fa319,_0xde72e1,_0x37ded1,_0x5b0695){const _0xd1e420=_0x6fa319+':'+_0xde72e1+':'+_0x37ded1;this['_customCallbacks'][_0x23c6('0x7c')](_0xd1e420,_0x5b0695);}['getSuggestionCallback'](_0x49c24a,_0x234a84,_0x87ef3){const _0x126b44=_0x49c24a+':'+_0x234a84+':'+_0x87ef3;return this[_0x23c6('0xf8')][_0x23c6('0x4c')](_0x126b44)||this['_defaultCallbacks'][_0x23c6('0x4c')](_0x49c24a+':'+_0x87ef3);}['_registerDefaultCallbacks'](){const _0x55ca41=()=>{},_0x420429=_0x3c56d4=>{_0x3c56d4[_0x23c6('0x24')]((_0x320866,_0x1f3b2b)=>_0x320866[_0x23c6('0x100')][_0x23c6('0xa4')](_0x1f3b2b[_0x23c6('0x100')])?0x1:-0x1),this[_0x23c6('0x52')][_0x23c6('0xa9')](_0x53c4b4=>{for(const _0x38ad72 of _0x3c56d4){let _0xf33331;_0xf33331=_0x38ad72[_0x23c6('0x44')]['isAtEnd']&&_0x38ad72[_0x23c6('0x44')][_0x23c6('0x10d')]==_0x38ad72['start'][_0x23c6('0x40')]?_0x53c4b4['createSelection'](_0x38ad72[_0x23c6('0x100')]['nodeAfter'],'on'):_0x53c4b4[_0x23c6('0x97')](_0x38ad72),this['_model'][_0x23c6('0xc6')](_0xf33331,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1ef0f5=(_0x1c0a26,_0x12a6a0)=>{this[_0x23c6('0x52')][_0x23c6('0xa9')](_0x30f535=>{const {commandName:_0x1f1f5e,commandParams:_0x3c0bdd=[]}=_0x12a6a0,_0x438f08=_0x1c0a26[_0x23c6('0x99')](_0x5d7a93=>(_t(_0x5d7a93)&&(_0x5d7a93=this[_0x23c6('0x52')]['createRange'](_0x5d7a93[_0x23c6('0x44')])),_0x5d7a93))['filter'](_0x1f0b7e=>_0x23c6('0x12a')!==_0x1f0b7e[_0x23c6('0x130')][_0x23c6('0xde')]);if(_0x438f08['length']<0x1)return;const _0x2167c9=Array[_0x23c6('0x11d')](this[_0x23c6('0x52')][_0x23c6('0x30')][_0x23c6('0x9c')][_0x23c6('0x2')]())[_0x23c6('0x99')](_0x59dc6d=>_0x35867a[_0x23c6('0xb4')](_0x59dc6d));_0x30f535[_0x23c6('0xe1')](_0x438f08);for(const _0x19e998 of this[_0x23c6('0xdc')]['commands'][_0x23c6('0xee')]())_0x19e998[_0x23c6('0x89')]();_0x3c0bdd[_0x23c6('0xd8')]({'forceDefaultExecution':!0x0}),this[_0x23c6('0xdc')][_0x23c6('0x10e')](_0x1f1f5e,..._0x3c0bdd);const _0x1a8332=_0x2167c9[_0x23c6('0x142')](_0x322892=>_0x23c6('0x12a')!=_0x322892[_0x23c6('0x130')][_0x23c6('0xde')]);_0x1a8332['length']>0x0&&_0x30f535['setSelection'](_0x1a8332);for(const _0x2accba of _0x2167c9)_0x2accba['detach']();});},_0x3ad543=(_0x1db5c8,_0x590d2d)=>0x1==_0x1db5c8[_0x23c6('0x49')]&&0x1==_0x590d2d[_0x23c6('0x49')]&&_0x1db5c8[0x0]['end'][_0x23c6('0x5e')](_0x590d2d[0x0]['start']),_0x4b775a=(_0x5a4160,_0xa214a2,_0x8a9ea4,_0x3b2568)=>xt(_0x5a4160,_0xa214a2,_0x8a9ea4,_0x3b2568,this[_0x23c6('0x52')])?[_0x5a4160,_0xa214a2]:xt(_0xa214a2,_0x5a4160,_0x3b2568,_0x8a9ea4,this[_0x23c6('0x52')])?[_0xa214a2,_0x5a4160]:null;this[_0x23c6('0x6d')]['set'](_0x23c6('0xbc'),_0x55ca41),this[_0x23c6('0x6d')][_0x23c6('0x7c')](_0x23c6('0x7a'),_0x420429),this['_defaultCallbacks'][_0x23c6('0x7c')](_0x23c6('0x11c'),_0x3ad543),this[_0x23c6('0x6d')][_0x23c6('0x7c')](_0x23c6('0x26'),_0x4b775a),this[_0x23c6('0x6d')][_0x23c6('0x7c')]('deletion:accept',_0x420429),this['_defaultCallbacks'][_0x23c6('0x7c')](_0x23c6('0x56'),_0x55ca41),this['_defaultCallbacks'][_0x23c6('0x7c')](_0x23c6('0x2c'),_0x3ad543),this[_0x23c6('0x6d')]['set']('deletion:chain',_0x4b775a),this['_defaultCallbacks'][_0x23c6('0x7c')](_0x23c6('0xeb'),_0x1ef0f5),this['_defaultCallbacks'][_0x23c6('0x7c')](_0x23c6('0xb1'),_0x55ca41),this[_0x23c6('0x6d')][_0x23c6('0x7c')](_0x23c6('0xa7'),_0x3ad543),this[_0x23c6('0x6d')][_0x23c6('0x7c')](_0x23c6('0xfc'),_0x55ca41),this['_defaultCallbacks'][_0x23c6('0x7c')]('formatBlock:accept',_0x1ef0f5),this['_defaultCallbacks']['set'](_0x23c6('0x1d'),_0x55ca41),this[_0x23c6('0x6d')][_0x23c6('0x7c')](_0x23c6('0x96'),_0x3ad543),this[_0x23c6('0x6d')][_0x23c6('0x7c')](_0x23c6('0xd9'),_0x55ca41);}}function Bt(_0x47899c,_0x260d2c,_0x502182){for(const _0x2fed55 of _0x260d2c[_0x23c6('0x10d')][_0x23c6('0x57')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2fed55['root']==_0x2fed55)return!0x1;if(!_0x502182[_0x23c6('0x78')](_0x2fed55))return!0x1;if(_0x47899c[_0x23c6('0x3e')](_0x2fed55)||_0x47899c['isLimit'](_0x2fed55))return!0x0;}return!0x1;}function _t(_0x472525){return _0x472525[_0x23c6('0x44')]['parent']==_0x472525[_0x23c6('0x100')][_0x23c6('0x40')]&&_0x472525[_0x23c6('0x44')][_0x23c6('0x90')];}function Mt(_0x12ef0b,_0x578168,_0x7739b1,_0x4caa8a){const _0x105c6c=_0x36056f=>!_0x36056f[_0x23c6('0xb9')]['is'](_0x23c6('0xfd'))&&!_0x4caa8a[_0x23c6('0x3e')](_0x36056f[_0x23c6('0xb9')]),_0x40e091=_0x12ef0b[_0x23c6('0x100')]['getLastMatchingPosition'](_0x105c6c),_0x57b2dc=_0x12ef0b[_0x23c6('0x44')][_0x23c6('0xba')](_0x105c6c,{'direction':_0x23c6('0xd2')});return(!_0x12ef0b[_0x23c6('0x100')][_0x23c6('0x5e')](_0x40e091)||!_0x12ef0b[_0x23c6('0x44')][_0x23c6('0x5e')](_0x57b2dc))&&(_0x40e091[_0x23c6('0xa4')](_0x57b2dc)?_0x7739b1[_0x23c6('0x41')](_0x578168,{'range':_0x7739b1[_0x23c6('0x92')](_0x40e091,_0x57b2dc)}):_0x7739b1[_0x23c6('0x88')](_0x578168),!0x0);}function $t(_0x1cdc8d){return _0x1b942f(_0x1cdc8d);}function Nt(_0x5804be){const _0x20b77d=_0x5804be[_0x23c6('0x100')][_0x23c6('0x40')];return _0x20b77d&&_0x20b77d['is']('element');}function Rt(_0x1883d6,_0x2593c3){const _0x798a3c=_0x2593c3['schema']['isObject'](_0x1883d6)||_0x2593c3[_0x23c6('0xb0')][_0x23c6('0x95')](_0x1883d6);return _0x2593c3[_0x23c6('0x92')](_0x2593c3[_0x23c6('0xc1')](_0x1883d6,_0x23c6('0xfa')),_0x798a3c?_0x2593c3[_0x23c6('0x8e')](_0x1883d6):_0x2593c3[_0x23c6('0xc1')](_0x1883d6,'end'));}function xt(_0x4d5acf,_0x31a51c,_0x63706,_0x33f62d,_0xdcfb85){if(_0x63706[_0x23c6('0x44')]['isEqual'](_0x33f62d[_0x23c6('0x100')]))return!0x0;if(_0x4d5acf['type']!=_0x31a51c[_0x23c6('0x22')])return!0x1;if(!_0x63706['end'][_0x23c6('0xe5')](_0x33f62d[_0x23c6('0x100')]))return!0x1;const _0x1b304c=_0xdcfb85[_0x23c6('0x92')](_0x63706['end'],_0x33f62d[_0x23c6('0x100')])[_0x23c6('0xfe')]();for(const _0x5886b9 of _0x1b304c)if([_0x23c6('0x137'),_0x23c6('0xff')]['includes'](_0x5886b9[_0x23c6('0x22')])&&_0xdcfb85[_0x23c6('0xb0')][_0x23c6('0x4b')](_0x5886b9[_0x23c6('0xb9')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5496=['CommentsRepository','plugins','_updateController','values','view','delete','createAnnotationView','_disableComments','lowest','remove','_descriptionFactory','some','_initializeController','_handleSuggestionControllerDelayed','push','commandName','TrackChangesEditing','createCommentThreadController','from','suggestionLoaded','stopListening','keys','descriptionParts','pluginName','listenTo','value','_refreshActiveMarkers','comments.maxCommentCharsWhenCollapsed','model','comments.maxCommentsWhenCollapsed','size','commentThread','SuggestionThreadView','discardButton','head','getFirstRange','button','has','requires','focus','Accept\x20all\x20selected\x20suggestions','discardSelectedSuggestions','Discard\x20all\x20selected\x20suggestions','commands','arrowView','activeAnnotations','unbind','_destroyController','_annotationViews','Discard\x20all\x20suggestions','suggestion-','define','filter','get','getDescriptions','locale','change:previous','trackChanges','buttonView','type','execute','registerAnnotation','_createUIButton','init','_bindAnnotationToEditors','suggestionUnloaded','isDirty','activeMarkers','componentFactory','trackChanges.disableComments','comments.maxThreadTotalWeight','config','isInContent','trackChanges.SuggestionThreadView','editing','_viewToController','refreshSelectedViews','separator','isEnabled','acceptSelectedSuggestions','bind','EditorAnnotations','getAllAdjacentSuggestions','comments.editorConfig','discardAllSuggestions','_handleControllerBuffer','editor','TrackChangesUI','Annotations','addComment','CommentView','destroy','set','acceptAllSuggestions','add','innerView','getRanges','acceptButton','length','_suggestionToController','comments','actionView','mainView','source','isOn'];(function(_0x598c97,_0x5496a0){const _0x2d204e=function(_0xae4c40){while(--_0xae4c40){_0x598c97['push'](_0x598c97['shift']());}};_0x2d204e(++_0x5496a0);}(_0x5496,0x1dc));const _0x2d20=function(_0x598c97,_0x5496a0){_0x598c97=_0x598c97-0x0;let _0x2d204e=_0x5496[_0x598c97];return _0x2d204e;};import{Plugin as _0x312840}from'ckeditor5/src/core';import{Collection as _0x390c98}from'ckeditor5/src/utils';import{Model as _0x1ee6d1,SplitButtonView as _0x19a0dd,createDropdown as _0x1cebb8,addListToDropdown as _0x2ee19f}from'ckeditor5/src/ui';import{Users as _0x304116,getDateTimeFormatter as _0x120e81,getAllMarkersDomElementsSorted as _0x16b6a9}from'ckeditor5-collaboration/src/collaboration-core';import _0x118ad3 from'./trackchangesediting';import _0x979bb0 from'./ui/suggestioncontroller';import _0x83c897 from'./ui/view/suggestionthreadview';import{getTranslation as _0xe6bc44}from'./utils/common-translations';import _0x3a3b60 from'../theme/icons/track-changes.svg';export default class d extends _0x312840{static get[_0x2d20('0x57')](){return[_0x118ad3,_0x304116,_0x2d20('0x31'),_0x2d20('0x20'),_0x2d20('0x19')];}static get[_0x2d20('0x48')](){return _0x2d20('0x1f');}constructor(_0x536083){super(_0x536083),this['_suggestionToController']=new Map(),this[_0x2d20('0x13')]=new Map(),this[_0x2d20('0x61')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x7879c1=this[_0x2d20('0x1e')][_0x2d20('0xf')];_0x7879c1[_0x2d20('0x64')](_0x2d20('0x11'),_0x83c897),_0x7879c1[_0x2d20('0x64')](_0x2d20('0xd'),!0x1),this['_disableComments']=_0x7879c1[_0x2d20('0x66')](_0x2d20('0xd'));}[_0x2d20('0x3e')](_0x47bd01,_0x353875){0x0===this[_0x2d20('0x1d')][_0x2d20('0x4f')]&&setTimeout(()=>{for(const [_0x36c69b,_0x3c1c86]of this[_0x2d20('0x1d')]){const _0x22a6c0=this[_0x2d20('0x2b')][_0x2d20('0x56')](_0x36c69b);_0x22a6c0||_0x3c1c86?_0x22a6c0&&_0x3c1c86&&this[_0x2d20('0x60')](_0x36c69b):this[_0x2d20('0x3d')](_0x36c69b);}this[_0x2d20('0x1e')][_0x2d20('0x32')][_0x2d20('0x66')]('EditorAnnotations')[_0x2d20('0x14')](),this[_0x2d20('0x4b')](),this[_0x2d20('0x1d')]['clear']();},0xa),this[_0x2d20('0x1d')]['set'](_0x47bd01,_0x353875);}[_0x2d20('0x7')](){const _0x264dd6=this[_0x2d20('0x1e')],_0x229f0f=_0x264dd6[_0x2d20('0x32')]['get'](_0x2d20('0x41')),_0x1107aa=_0x264dd6[_0x2d20('0x32')][_0x2d20('0x66')](_0x2d20('0x20')),_0x24c799=_0x264dd6[_0x2d20('0x32')][_0x2d20('0x66')](_0x2d20('0x19')),_0x4d91b1=_0x264dd6[_0x2d20('0x32')][_0x2d20('0x66')](_0x2d20('0x31'));_0x264dd6['ui'][_0x2d20('0xc')][_0x2d20('0x26')]('trackChanges',_0x47530b=>this[_0x2d20('0x6')](_0x47530b)),_0x24c799['addSourceCollector'](()=>{const _0x116e13=[];for(const [_0x5b1e78,_0x407abe]of Array[_0x2d20('0x43')](this[_0x2d20('0x2b')])){const _0x57c293=_0x5b1e78[_0x2d20('0x1a')](),_0xe43de0=[];for(const _0x261a16 of _0x57c293){if(!_0x261a16[_0x2d20('0x10')])continue;if(_0x261a16['isMultiRange']){_0xe43de0[_0x2d20('0x3f')](..._0x261a16[_0x2d20('0x28')]());continue;}const _0x50aad3=_0x261a16[_0x2d20('0x54')]();if(_0xe43de0['length']>0x0){const _0xed042b=_0xe43de0[0x0]['getJoined'](_0x50aad3);if(_0xed042b){_0xe43de0[0x0]=_0xed042b;continue;}}_0xe43de0['push'](_0x50aad3);}_0x116e13[_0x2d20('0x3f')]([_0x407abe['view'],_0xe43de0]);}return _0x116e13;}),this['listenTo'](_0x229f0f,_0x2d20('0x44'),(_0xf460f5,_0x6d2d45)=>{this[_0x2d20('0x49')](_0x6d2d45,_0x2d20('0x0'),(_0x3f943c,_0x19eacf,_0xe8c6e,_0xcb2f69)=>{_0x6d2d45['isInContent']&&(null==_0xe8c6e?(this['_updateController'](_0xcb2f69[_0x2d20('0x53')]),this[_0x2d20('0x3e')](_0x6d2d45,!0x1)):(this[_0x2d20('0x33')](_0xe8c6e[_0x2d20('0x53')]),this['_handleSuggestionControllerDelayed'](_0x6d2d45,!0x0)));}),null===_0x6d2d45['previous']?this[_0x2d20('0x3e')](_0x6d2d45,!0x1):this[_0x2d20('0x33')](_0x6d2d45[_0x2d20('0x53')]);}),this[_0x2d20('0x49')](_0x229f0f,_0x2d20('0x9'),(_0x367ed4,_0x49b589,_0x120af9)=>{this[_0x2d20('0x45')](_0x49b589,_0x2d20('0x0')),this['_handleControllerBuffer'][_0x2d20('0x36')](_0x49b589);const _0x46af90=_0x120af9?_0x120af9['head']:_0x49b589,_0x35b33e=this['_suggestionToController'][_0x2d20('0x66')](_0x46af90);null!==_0x120af9&&this[_0x2d20('0x33')](_0x46af90),null===_0x120af9&&_0x35b33e&&this[_0x2d20('0x60')](_0x49b589);}),this['listenTo'](_0x229f0f,'suggestionChanged',(_0x24f8d9,_0x3cc8e1)=>{this[_0x2d20('0x33')](_0x3cc8e1);}),this[_0x2d20('0x49')](_0x1107aa,'change:activeAnnotations',()=>{this[_0x2d20('0x4b')]();}),this[_0x2d20('0x49')](_0x4d91b1,_0x2d20('0x21'),(_0x18b3ce,{threadId:_0x4673d7,isFromAdapter:_0x1e42b2})=>{if(_0x1e42b2||!_0x229f0f['hasSuggestion'](_0x4673d7))return;const _0x3322ed=_0x229f0f['getSuggestion'](_0x4673d7);this[_0x2d20('0x2b')][_0x2d20('0x66')](_0x3322ed)[_0x2d20('0x35')][_0x2d20('0x58')]();},{'priority':_0x2d20('0x39')});}[_0x2d20('0x4b')](){const _0x5ccf3f=this['editor'][_0x2d20('0x32')][_0x2d20('0x66')]('Annotations'),_0x1850b8=this['editor'][_0x2d20('0x32')][_0x2d20('0x66')](_0x2d20('0x41')),_0xfbef0f=Array[_0x2d20('0x43')](_0x5ccf3f[_0x2d20('0x5e')],_0x5bd811=>_0x5bd811[_0x2d20('0x27')])['filter'](_0x35429c=>this[_0x2d20('0x13')][_0x2d20('0x56')](_0x35429c)),_0x10b1b9=[];for(const _0x58bd75 of _0xfbef0f){const _0x39f5b7=this[_0x2d20('0x13')][_0x2d20('0x66')](_0x58bd75)[_0x2d20('0x4d')]['getAllAdjacentSuggestions']();_0x10b1b9[_0x2d20('0x3f')](..._0x39f5b7['reduce']((_0x5dd7d6,_0x23a158)=>[..._0x5dd7d6,..._0x23a158['getMarkerNames']()],[]));}_0x1850b8[_0x2d20('0xb')]=_0x10b1b9;}[_0x2d20('0x6')](_0x5b2810){const _0x77401=_0x1cebb8(_0x5b2810,_0x19a0dd),_0x368de6=this[_0x2d20('0x1e')][_0x2d20('0x5c')]['get'](_0x2d20('0x1')),_0x581107=_0xe6bc44(_0x5b2810,'Track\x20changes');_0x77401[_0x2d20('0x2')][_0x2d20('0x24')]({'tooltip':_0x581107,'label':_0x581107,'icon':_0x3a3b60}),_0x77401[_0x2d20('0x2')]['bind']('isOn')['to'](_0x368de6,'value'),_0x77401[_0x2d20('0x2')]['on'](_0x2d20('0x4'),()=>{_0x368de6[_0x2d20('0x4')](),this[_0x2d20('0x1e')][_0x2d20('0x12')][_0x2d20('0x35')][_0x2d20('0x58')]();});const _0x2ffc88=new _0x390c98(),_0x2b909d=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x581107,'commandName':'trackChanges'}},{'type':_0x2d20('0x15')},{'type':'button','model':{'withText':!0x0,'label':_0xe6bc44(_0x5b2810,'Accept\x20all\x20suggestions'),'commandName':_0x2d20('0x25')}},{'type':_0x2d20('0x55'),'model':{'withText':!0x0,'label':_0xe6bc44(_0x5b2810,_0x2d20('0x59')),'commandName':_0x2d20('0x17')}},{'type':'button','model':{'withText':!0x0,'label':_0xe6bc44(_0x5b2810,_0x2d20('0x62')),'commandName':_0x2d20('0x1c')}},{'type':'button','model':{'withText':!0x0,'label':_0xe6bc44(_0x5b2810,_0x2d20('0x5b')),'commandName':_0x2d20('0x5a')}}];for(const _0x231fa2 of _0x2b909d){let _0x561f49={'type':_0x2d20('0x15')};if(_0x231fa2[_0x2d20('0x4d')]){const _0x41c315=new _0x1ee6d1(_0x231fa2[_0x2d20('0x4d')]),_0x317490=this['editor'][_0x2d20('0x5c')][_0x2d20('0x66')](_0x41c315['commandName']);_0x41c315[_0x2d20('0x18')](_0x2d20('0x30'),_0x2d20('0x16'))['to'](_0x317490,_0x2d20('0x4a'),_0x2d20('0x16')),_0x561f49={'type':_0x231fa2[_0x2d20('0x3')],'model':_0x41c315};}_0x2ffc88[_0x2d20('0x26')](_0x561f49);}_0x2ee19f(_0x77401,_0x2ffc88);const _0x4d6ae0=_0x2b909d['filter'](_0x453341=>null!=_0x453341[_0x2d20('0x4d')])['map'](_0x561237=>this[_0x2d20('0x1e')]['commands'][_0x2d20('0x66')](_0x561237['model'][_0x2d20('0x40')])),_0x92f463=_0x77401[_0x2d20('0x2')];return _0x92f463[_0x2d20('0x2d')][_0x2d20('0x5f')](_0x2d20('0x16')),_0x92f463['arrowView'][_0x2d20('0x5f')](_0x2d20('0x16')),_0x92f463[_0x2d20('0x2d')]['bind'](_0x2d20('0x16'))['to'](_0x368de6,_0x2d20('0x16')),_0x92f463[_0x2d20('0x5d')][_0x2d20('0x18')]('isEnabled')['toMany'](_0x4d6ae0,_0x2d20('0x16'),(..._0x5efd30)=>_0x5efd30[_0x2d20('0x3c')](_0x29e508=>_0x29e508)),_0x77401['on'](_0x2d20('0x4'),_0x28c410=>{this['editor'][_0x2d20('0x4')](_0x28c410[_0x2d20('0x2f')][_0x2d20('0x40')]),this['editor']['editing'][_0x2d20('0x35')][_0x2d20('0x58')]();}),_0x77401;}['_initializeController'](_0x5e957a){const _0x14517a=this['editor'],_0x4e37bc=_0x14517a[_0x2d20('0xf')],_0x1de3e3=_0x14517a[_0x2d20('0x32')][_0x2d20('0x66')](_0x2d20('0x20')),_0x3442b7=_0x14517a['plugins'][_0x2d20('0x66')](_0x2d20('0x31')),_0x4c6dd1=_0x14517a['plugins'][_0x2d20('0x66')]('EditorAnnotations'),_0x6d343f=_0x14517a[_0x2d20('0x32')][_0x2d20('0x66')](_0x304116)['me'],_0x31235c=_0x4e37bc[_0x2d20('0x66')]('trackChanges')[_0x2d20('0x51')],{CommentsListView:_0x829cb2,CommentThreadInputView:_0x21f3bf}=_0x14517a[_0x2d20('0x32')][_0x2d20('0x66')]('CommentsUI');let _0x500e8f,_0x31ca17;this[_0x2d20('0x61')]['has'](_0x5e957a['id'])?(_0x31ca17=this['_annotationViews'][_0x2d20('0x66')](_0x5e957a['id']),_0x500e8f=_0x31ca17[_0x2d20('0x2e')]):(_0x500e8f=new _0x31235c(_0x14517a[_0x2d20('0x68')],_0x5e957a,_0x6d343f,{'disableComments':this[_0x2d20('0x38')],'editorConfig':_0x4e37bc['get'](_0x2d20('0x1b')),'maxCommentsWhenCollapsed':_0x4e37bc['get'](_0x2d20('0x4e')),'maxThreadTotalWeight':_0x4e37bc['get'](_0x2d20('0xe')),'maxCommentCharsWhenCollapsed':_0x4e37bc[_0x2d20('0x66')](_0x2d20('0x4c')),'formatDateTime':_0x120e81(_0x4e37bc[_0x2d20('0x66')](_0x2d20('0x68'))),'CommentView':_0x4e37bc[_0x2d20('0x66')](_0x2d20('0x2c'))[_0x2d20('0x22')],'CommentsListView':_0x829cb2,'CommentThreadInputView':_0x21f3bf}),_0x500e8f[_0x2d20('0x29')]['on']('execute',()=>{_0x14517a[_0x2d20('0x12')]['view'][_0x2d20('0x58')]();}),_0x500e8f[_0x2d20('0x52')]['on']('execute',()=>{_0x14517a[_0x2d20('0x12')][_0x2d20('0x35')][_0x2d20('0x58')]();}),_0x31ca17=_0x1de3e3[_0x2d20('0x37')](this['editor'][_0x2d20('0x68')],_0x500e8f),_0x31ca17[_0x2d20('0x18')](_0x2d20('0xa'))['to'](_0x500e8f,'isDirty'),_0x31ca17['bind'](_0x2d20('0x2a'))['to'](_0x500e8f),_0x31ca17[_0x2d20('0x18')](_0x2d20('0x3'))['to'](_0x500e8f,_0x2d20('0x3'),_0xb9810b=>_0x2d20('0x63')+_0xb9810b),this[_0x2d20('0x61')][_0x2d20('0x24')](_0x5e957a['id'],_0x31ca17));const _0x193618=_0x3442b7[_0x2d20('0x42')](_0x5e957a[_0x2d20('0x50')],_0x500e8f),_0x4abc4f=new _0x979bb0(_0x14517a,_0x5e957a,_0x500e8f,_0x193618),_0x24ab62=_0x5e957a[_0x2d20('0x1a')]()['filter'](_0x5637c0=>_0x5637c0[_0x2d20('0x10')]);_0x500e8f[_0x2d20('0x47')]=_0x14517a['plugins'][_0x2d20('0x66')]('TrackChangesEditing')[_0x2d20('0x3b')][_0x2d20('0x67')](_0x24ab62),this['_suggestionToController'][_0x2d20('0x24')](_0x5e957a,_0x4abc4f),this[_0x2d20('0x13')][_0x2d20('0x24')](_0x500e8f,_0x4abc4f);const _0x20d439=_0x1de3e3['createAnnotation']({'view':_0x31ca17,'target':()=>{const _0x44f9ee=[],_0x321fd0=_0x5e957a[_0x2d20('0x1a')]()[_0x2d20('0x65')](_0x26f54e=>_0x26f54e[_0x2d20('0x10')]);for(const _0x3cab15 of _0x321fd0)_0x44f9ee[_0x2d20('0x3f')](..._0x3cab15['getMarkers']());return _0x16b6a9(_0x14517a[_0x2d20('0x12')],_0x44f9ee);},'type':()=>_0x2d20('0x63')+_0x4abc4f[_0x2d20('0x35')][_0x2d20('0x3')]});_0x3442b7[_0x2d20('0x8')](_0x500e8f,_0x20d439),_0x1de3e3[_0x2d20('0x26')](_0x20d439),_0x4c6dd1[_0x2d20('0x5')](_0x20d439);}[_0x2d20('0x60')](_0x57f335){const _0x2ea824=this[_0x2d20('0x1e')]['plugins'][_0x2d20('0x66')](_0x2d20('0x20')),_0x27f9b2=this[_0x2d20('0x2b')][_0x2d20('0x66')](_0x57f335),_0x5cfa0f=_0x27f9b2[_0x2d20('0x35')],_0x52491b=_0x2ea824['getByInnerView'](_0x5cfa0f);_0x52491b&&_0x2ea824[_0x2d20('0x3a')](_0x52491b),this[_0x2d20('0x2b')][_0x2d20('0x36')](_0x57f335),this[_0x2d20('0x13')][_0x2d20('0x36')](_0x5cfa0f),_0x27f9b2[_0x2d20('0x23')]();}[_0x2d20('0x33')](_0xf303d8){if(!_0xf303d8[_0x2d20('0x10')]||!this['_suggestionToController'][_0x2d20('0x56')](_0xf303d8))return;const _0x4bd122=this['editor'][_0x2d20('0x32')]['get'](_0x2d20('0x41')),_0xea1287=this[_0x2d20('0x2b')][_0x2d20('0x66')](_0xf303d8),_0x135f73=_0xf303d8[_0x2d20('0x1a')]();_0xea1287['view']['descriptionParts']=_0x4bd122[_0x2d20('0x3b')]['getDescriptions'](_0x135f73);}[_0x2d20('0x23')](){for(const _0x4653b5 of this[_0x2d20('0x2b')][_0x2d20('0x46')]())this[_0x2d20('0x60')](_0x4653b5);for(const _0x21a0d5 of this[_0x2d20('0x61')][_0x2d20('0x34')]())_0x21a0d5[_0x2d20('0x2e')][_0x2d20('0x23')]();super['destroy']();}}
23
+ const _0x4be8=['_disableComments','plugins','delete','push','getAllAdjacentSuggestions','some','separator','button','refreshSelectedViews','getByInnerView','model','keys','comments.maxCommentCharsWhenCollapsed','_updateController','Accept\x20all\x20suggestions','acceptSelectedSuggestions','trackChanges','_suggestionToController','getJoined','addSourceCollector','filter','unbind','commandName','value','listenTo','remove','type','execute','reduce','stopListening','isMultiRange','hasSuggestion','discardSelectedSuggestions','Annotations','activeMarkers','requires','suggestion-','createAnnotationView','getRanges','getFirstRange','acceptAllSuggestions','_createUIButton','_destroyController','isInContent','add','_descriptionFactory','change:previous','addComment','suggestionChanged','switchbutton','createCommentThreadController','_initializeController','mainView','pluginName','has','comments.maxThreadTotalWeight','getMarkerNames','activeAnnotations','change:activeAnnotations','head','_refreshActiveMarkers','comments.maxCommentsWhenCollapsed','_annotationViews','EditorAnnotations','locale','bind','commands','destroy','isEnabled','trackChanges.disableComments','componentFactory','arrowView','isDirty','getMarkers','createAnnotation','clear','define','toMany','_handleSuggestionControllerDelayed','set','registerAnnotation','CommentView','discardButton','source','CommentsUI','Discard\x20all\x20selected\x20suggestions','map','CommentsRepository','Accept\x20all\x20selected\x20suggestions','buttonView','lowest','size','TrackChangesEditing','focus','_viewToController','editor','SuggestionThreadView','descriptionParts','view','editing','actionView','_handleControllerBuffer','isOn','getDescriptions','suggestionLoaded','get'];(function(_0xfc21de,_0x4be8bd){const _0x1f64b1=function(_0x262d2c){while(--_0x262d2c){_0xfc21de['push'](_0xfc21de['shift']());}};_0x1f64b1(++_0x4be8bd);}(_0x4be8,0xa6));const _0x1f64=function(_0xfc21de,_0x4be8bd){_0xfc21de=_0xfc21de-0x0;let _0x1f64b1=_0x4be8[_0xfc21de];return _0x1f64b1;};import{Plugin as _0x422b06}from'ckeditor5/src/core';import{Collection as _0x2f4630}from'ckeditor5/src/utils';import{Model as _0x49d44a,SplitButtonView as _0x121675,createDropdown as _0x5d7655,addListToDropdown as _0x3fef92}from'ckeditor5/src/ui';import{Users as _0x13d2f6,getDateTimeFormatter as _0x118485,getAllMarkersDomElementsSorted as _0x12962d}from'ckeditor5-collaboration/src/collaboration-core';import _0x43e1c0 from'./trackchangesediting';import _0x190cfd from'./ui/suggestioncontroller';import _0x34cab0 from'./ui/view/suggestionthreadview';import{getTranslation as _0x18ec5f}from'./utils/common-translations';import _0x5c3c4d from'../theme/icons/track-changes.svg';export default class d extends _0x422b06{static get[_0x1f64('0x51')](){return[_0x43e1c0,_0x13d2f6,_0x1f64('0x1b'),_0x1f64('0x4f'),_0x1f64('0x3')];}static get[_0x1f64('0x63')](){return'TrackChangesUI';}constructor(_0x47a37a){super(_0x47a37a),this[_0x1f64('0x3f')]=new Map(),this[_0x1f64('0x22')]=new Map(),this[_0x1f64('0x2')]=new Map(),this[_0x1f64('0x29')]=new Map();const _0x25df97=this['editor']['config'];_0x25df97[_0x1f64('0x10')]('trackChanges.SuggestionThreadView',_0x34cab0),_0x25df97[_0x1f64('0x10')](_0x1f64('0x9'),!0x1),this[_0x1f64('0x2e')]=_0x25df97[_0x1f64('0x2d')](_0x1f64('0x9'));}['_handleSuggestionControllerDelayed'](_0x3d9829,_0x3ab61e){0x0===this['_handleControllerBuffer'][_0x1f64('0x1f')]&&setTimeout(()=>{for(const [_0x329fca,_0x59cfbc]of this[_0x1f64('0x29')]){const _0xa3e3ae=this[_0x1f64('0x3f')][_0x1f64('0x64')](_0x329fca);_0xa3e3ae||_0x59cfbc?_0xa3e3ae&&_0x59cfbc&&this[_0x1f64('0x58')](_0x329fca):this[_0x1f64('0x61')](_0x329fca);}this[_0x1f64('0x23')][_0x1f64('0x2f')][_0x1f64('0x2d')](_0x1f64('0x3'))[_0x1f64('0x36')](),this[_0x1f64('0x0')](),this[_0x1f64('0x29')][_0x1f64('0xf')]();},0xa),this[_0x1f64('0x29')][_0x1f64('0x13')](_0x3d9829,_0x3ab61e);}['init'](){const _0x12f5bf=this[_0x1f64('0x23')],_0x44ca5d=_0x12f5bf[_0x1f64('0x2f')][_0x1f64('0x2d')](_0x1f64('0x20')),_0x1e609d=_0x12f5bf['plugins'][_0x1f64('0x2d')]('Annotations'),_0x5e6662=_0x12f5bf[_0x1f64('0x2f')]['get'](_0x1f64('0x3')),_0x3aea1c=_0x12f5bf[_0x1f64('0x2f')][_0x1f64('0x2d')](_0x1f64('0x1b'));_0x12f5bf['ui'][_0x1f64('0xa')][_0x1f64('0x5a')](_0x1f64('0x3e'),_0x429f09=>this[_0x1f64('0x57')](_0x429f09)),_0x5e6662[_0x1f64('0x41')](()=>{const _0x4fa617=[];for(const [_0x4384e3,_0x2d7eff]of Array['from'](this[_0x1f64('0x3f')])){const _0xf3ae7e=_0x4384e3[_0x1f64('0x32')](),_0x44235c=[];for(const _0x36d17c of _0xf3ae7e){if(!_0x36d17c['isInContent'])continue;if(_0x36d17c[_0x1f64('0x4c')]){_0x44235c[_0x1f64('0x31')](..._0x36d17c[_0x1f64('0x54')]());continue;}const _0x5209d0=_0x36d17c[_0x1f64('0x55')]();if(_0x44235c['length']>0x0){const _0x76aaba=_0x44235c[0x0][_0x1f64('0x40')](_0x5209d0);if(_0x76aaba){_0x44235c[0x0]=_0x76aaba;continue;}}_0x44235c['push'](_0x5209d0);}_0x4fa617[_0x1f64('0x31')]([_0x2d7eff[_0x1f64('0x26')],_0x44235c]);}return _0x4fa617;}),this[_0x1f64('0x46')](_0x44ca5d,_0x1f64('0x2c'),(_0x3c89c2,_0x5642f1)=>{this[_0x1f64('0x46')](_0x5642f1,_0x1f64('0x5c'),(_0x397bd2,_0x3e0144,_0x9a49ac,_0x6df7df)=>{_0x5642f1[_0x1f64('0x59')]&&(null==_0x9a49ac?(this['_updateController'](_0x6df7df['head']),this[_0x1f64('0x12')](_0x5642f1,!0x1)):(this['_updateController'](_0x9a49ac[_0x1f64('0x69')]),this['_handleSuggestionControllerDelayed'](_0x5642f1,!0x0)));}),null===_0x5642f1['previous']?this['_handleSuggestionControllerDelayed'](_0x5642f1,!0x1):this[_0x1f64('0x3b')](_0x5642f1[_0x1f64('0x69')]);}),this[_0x1f64('0x46')](_0x44ca5d,'suggestionUnloaded',(_0xa58703,_0x4d1dc2,_0x19d7db)=>{this[_0x1f64('0x4b')](_0x4d1dc2,'change:previous'),this[_0x1f64('0x29')][_0x1f64('0x30')](_0x4d1dc2);const _0x5859ff=_0x19d7db?_0x19d7db['head']:_0x4d1dc2,_0x1cef13=this['_suggestionToController'][_0x1f64('0x2d')](_0x5859ff);null!==_0x19d7db&&this[_0x1f64('0x3b')](_0x5859ff),null===_0x19d7db&&_0x1cef13&&this['_destroyController'](_0x4d1dc2);}),this[_0x1f64('0x46')](_0x44ca5d,_0x1f64('0x5e'),(_0x1d158f,_0x22a356)=>{this['_updateController'](_0x22a356);}),this[_0x1f64('0x46')](_0x1e609d,_0x1f64('0x68'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3aea1c,_0x1f64('0x5d'),(_0x3f4d37,{threadId:_0x97ed06,isFromAdapter:_0x41a3a1})=>{if(_0x41a3a1||!_0x44ca5d[_0x1f64('0x4d')](_0x97ed06))return;const _0x694ae1=_0x44ca5d['getSuggestion'](_0x97ed06);this[_0x1f64('0x3f')]['get'](_0x694ae1)[_0x1f64('0x26')]['focus']();},{'priority':_0x1f64('0x1e')});}['_refreshActiveMarkers'](){const _0x13fac2=this[_0x1f64('0x23')]['plugins']['get'](_0x1f64('0x4f')),_0x404b13=this[_0x1f64('0x23')][_0x1f64('0x2f')][_0x1f64('0x2d')](_0x1f64('0x20')),_0xdbcb01=Array['from'](_0x13fac2[_0x1f64('0x67')],_0x49e378=>_0x49e378['innerView'])[_0x1f64('0x42')](_0x338293=>this['_viewToController']['has'](_0x338293)),_0x114bc9=[];for(const _0x590067 of _0xdbcb01){const _0x513f77=this[_0x1f64('0x22')][_0x1f64('0x2d')](_0x590067)[_0x1f64('0x38')][_0x1f64('0x32')]();_0x114bc9[_0x1f64('0x31')](..._0x513f77[_0x1f64('0x4a')]((_0x1a28c0,_0x138111)=>[..._0x1a28c0,..._0x138111[_0x1f64('0x66')]()],[]));}_0x404b13[_0x1f64('0x50')]=_0x114bc9;}[_0x1f64('0x57')](_0x1d7152){const _0x793820=_0x5d7655(_0x1d7152,_0x121675),_0x85e777=this['editor'][_0x1f64('0x6')]['get'](_0x1f64('0x3e')),_0x409107=_0x18ec5f(_0x1d7152,'Track\x20changes');_0x793820[_0x1f64('0x1d')][_0x1f64('0x13')]({'tooltip':_0x409107,'label':_0x409107,'icon':_0x5c3c4d}),_0x793820['buttonView'][_0x1f64('0x5')]('isOn')['to'](_0x85e777,_0x1f64('0x45')),_0x793820['buttonView']['on'](_0x1f64('0x49'),()=>{_0x85e777['execute'](),this['editor'][_0x1f64('0x27')]['view'][_0x1f64('0x21')]();});const _0x1cd4c0=new _0x2f4630(),_0x814b8a=[{'type':_0x1f64('0x5f'),'model':{'withText':!0x0,'label':_0x409107,'commandName':'trackChanges'}},{'type':_0x1f64('0x34')},{'type':'button','model':{'withText':!0x0,'label':_0x18ec5f(_0x1d7152,_0x1f64('0x3c')),'commandName':_0x1f64('0x56')}},{'type':_0x1f64('0x35'),'model':{'withText':!0x0,'label':_0x18ec5f(_0x1d7152,_0x1f64('0x1c')),'commandName':_0x1f64('0x3d')}},{'type':_0x1f64('0x35'),'model':{'withText':!0x0,'label':_0x18ec5f(_0x1d7152,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x18ec5f(_0x1d7152,_0x1f64('0x19')),'commandName':_0x1f64('0x4e')}}];for(const _0x4ee57c of _0x814b8a){let _0x2aede1={'type':'separator'};if(_0x4ee57c['model']){const _0x5609e1=new _0x49d44a(_0x4ee57c['model']),_0x156a42=this[_0x1f64('0x23')][_0x1f64('0x6')]['get'](_0x5609e1[_0x1f64('0x44')]);_0x5609e1[_0x1f64('0x5')](_0x1f64('0x2a'),_0x1f64('0x8'))['to'](_0x156a42,_0x1f64('0x45'),_0x1f64('0x8')),_0x2aede1={'type':_0x4ee57c[_0x1f64('0x48')],'model':_0x5609e1};}_0x1cd4c0[_0x1f64('0x5a')](_0x2aede1);}_0x3fef92(_0x793820,_0x1cd4c0);const _0x42847d=_0x814b8a['filter'](_0x5b6189=>null!=_0x5b6189['model'])[_0x1f64('0x1a')](_0x5a8bda=>this['editor'][_0x1f64('0x6')][_0x1f64('0x2d')](_0x5a8bda['model'][_0x1f64('0x44')])),_0x1cc73a=_0x793820['buttonView'];return _0x1cc73a[_0x1f64('0x28')][_0x1f64('0x43')](_0x1f64('0x8')),_0x1cc73a['arrowView']['unbind'](_0x1f64('0x8')),_0x1cc73a[_0x1f64('0x28')][_0x1f64('0x5')](_0x1f64('0x8'))['to'](_0x85e777,_0x1f64('0x8')),_0x1cc73a[_0x1f64('0xb')]['bind'](_0x1f64('0x8'))[_0x1f64('0x11')](_0x42847d,_0x1f64('0x8'),(..._0x3f21c1)=>_0x3f21c1[_0x1f64('0x33')](_0x4f9644=>_0x4f9644)),_0x793820['on'](_0x1f64('0x49'),_0x390e8f=>{this[_0x1f64('0x23')]['execute'](_0x390e8f[_0x1f64('0x17')]['commandName']),this[_0x1f64('0x23')][_0x1f64('0x27')][_0x1f64('0x26')][_0x1f64('0x21')]();}),_0x793820;}[_0x1f64('0x61')](_0x847c1f){const _0x5a362a=this[_0x1f64('0x23')],_0x1b90e3=_0x5a362a['config'],_0x4bd156=_0x5a362a[_0x1f64('0x2f')]['get'](_0x1f64('0x4f')),_0x3997be=_0x5a362a[_0x1f64('0x2f')][_0x1f64('0x2d')](_0x1f64('0x1b')),_0x2b5b6f=_0x5a362a['plugins'][_0x1f64('0x2d')]('EditorAnnotations'),_0x2a9922=_0x5a362a['plugins'][_0x1f64('0x2d')](_0x13d2f6)['me'],_0x1c6a29=_0x1b90e3[_0x1f64('0x2d')](_0x1f64('0x3e'))[_0x1f64('0x24')],{CommentsListView:_0x570bc5,CommentThreadInputView:_0x5bcf11}=_0x5a362a[_0x1f64('0x2f')][_0x1f64('0x2d')](_0x1f64('0x18'));let _0x47ab94,_0x1c374c;this['_annotationViews'][_0x1f64('0x64')](_0x847c1f['id'])?(_0x1c374c=this[_0x1f64('0x2')][_0x1f64('0x2d')](_0x847c1f['id']),_0x47ab94=_0x1c374c[_0x1f64('0x62')]):(_0x47ab94=new _0x1c6a29(_0x5a362a[_0x1f64('0x4')],_0x847c1f,_0x2a9922,{'disableComments':this[_0x1f64('0x2e')],'editorConfig':_0x1b90e3[_0x1f64('0x2d')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1b90e3[_0x1f64('0x2d')](_0x1f64('0x1')),'maxThreadTotalWeight':_0x1b90e3['get'](_0x1f64('0x65')),'maxCommentCharsWhenCollapsed':_0x1b90e3['get'](_0x1f64('0x3a')),'formatDateTime':_0x118485(_0x1b90e3[_0x1f64('0x2d')](_0x1f64('0x4'))),'CommentView':_0x1b90e3['get']('comments')[_0x1f64('0x15')],'CommentsListView':_0x570bc5,'CommentThreadInputView':_0x5bcf11}),_0x47ab94['acceptButton']['on'](_0x1f64('0x49'),()=>{_0x5a362a[_0x1f64('0x27')][_0x1f64('0x26')][_0x1f64('0x21')]();}),_0x47ab94[_0x1f64('0x16')]['on']('execute',()=>{_0x5a362a['editing']['view'][_0x1f64('0x21')]();}),_0x1c374c=_0x4bd156[_0x1f64('0x53')](this[_0x1f64('0x23')][_0x1f64('0x4')],_0x47ab94),_0x1c374c['bind'](_0x1f64('0xc'))['to'](_0x47ab94,_0x1f64('0xc')),_0x1c374c[_0x1f64('0x5')]('length')['to'](_0x47ab94),_0x1c374c[_0x1f64('0x5')](_0x1f64('0x48'))['to'](_0x47ab94,'type',_0x7b5a2c=>_0x1f64('0x52')+_0x7b5a2c),this['_annotationViews'][_0x1f64('0x13')](_0x847c1f['id'],_0x1c374c));const _0x19eaa3=_0x3997be[_0x1f64('0x60')](_0x847c1f['commentThread'],_0x47ab94),_0x1b3e2d=new _0x190cfd(_0x5a362a,_0x847c1f,_0x47ab94,_0x19eaa3),_0x254420=_0x847c1f[_0x1f64('0x32')]()['filter'](_0x3053d8=>_0x3053d8['isInContent']);_0x47ab94[_0x1f64('0x25')]=_0x5a362a[_0x1f64('0x2f')][_0x1f64('0x2d')](_0x1f64('0x20'))[_0x1f64('0x5b')][_0x1f64('0x2b')](_0x254420),this[_0x1f64('0x3f')][_0x1f64('0x13')](_0x847c1f,_0x1b3e2d),this[_0x1f64('0x22')][_0x1f64('0x13')](_0x47ab94,_0x1b3e2d);const _0x567d41=_0x4bd156[_0x1f64('0xe')]({'view':_0x1c374c,'target':()=>{const _0x357c0c=[],_0x1bef4a=_0x847c1f[_0x1f64('0x32')]()['filter'](_0x17c970=>_0x17c970[_0x1f64('0x59')]);for(const _0x253ea8 of _0x1bef4a)_0x357c0c[_0x1f64('0x31')](..._0x253ea8[_0x1f64('0xd')]());return _0x12962d(_0x5a362a[_0x1f64('0x27')],_0x357c0c);},'type':()=>'suggestion-'+_0x1b3e2d[_0x1f64('0x26')][_0x1f64('0x48')]});_0x3997be['_bindAnnotationToEditors'](_0x47ab94,_0x567d41),_0x4bd156[_0x1f64('0x5a')](_0x567d41),_0x2b5b6f[_0x1f64('0x14')](_0x567d41);}['_destroyController'](_0x356b33){const _0x5d03d9=this[_0x1f64('0x23')][_0x1f64('0x2f')][_0x1f64('0x2d')](_0x1f64('0x4f')),_0x4f236d=this[_0x1f64('0x3f')]['get'](_0x356b33),_0x4ee4ae=_0x4f236d[_0x1f64('0x26')],_0x29bbbd=_0x5d03d9[_0x1f64('0x37')](_0x4ee4ae);_0x29bbbd&&_0x5d03d9[_0x1f64('0x47')](_0x29bbbd),this['_suggestionToController'][_0x1f64('0x30')](_0x356b33),this[_0x1f64('0x22')][_0x1f64('0x30')](_0x4ee4ae),_0x4f236d['destroy']();}[_0x1f64('0x3b')](_0x223b8b){if(!_0x223b8b['isInContent']||!this[_0x1f64('0x3f')][_0x1f64('0x64')](_0x223b8b))return;const _0x28edce=this['editor'][_0x1f64('0x2f')]['get'](_0x1f64('0x20')),_0x3fa6d7=this['_suggestionToController'][_0x1f64('0x2d')](_0x223b8b),_0x1359d2=_0x223b8b[_0x1f64('0x32')]();_0x3fa6d7['view'][_0x1f64('0x25')]=_0x28edce[_0x1f64('0x5b')]['getDescriptions'](_0x1359d2);}['destroy'](){for(const _0x1894c1 of this[_0x1f64('0x3f')][_0x1f64('0x39')]())this[_0x1f64('0x58')](_0x1894c1);for(const _0xe9079d of this['_annotationViews']['values']())_0xe9079d[_0x1f64('0x62')][_0x1f64('0x7')]();super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x114a=['stopListening','isDirty','getRanges','add','canEditAt','isEnabled','listenTo','PendingActions','_acceptCommand','remove','discardSuggestion','commands','get','unbind','_editor','_discardCommand','_pendingAction','canAccept','model','commentThreadController','change:isDirty','execute','canDiscard','view','destroy','plugins','_removePendingAction','bind','_setPendingAction','acceptSuggestion'];(function(_0x2f5eeb,_0x114a5a){const _0x5bd99a=function(_0x326599){while(--_0x326599){_0x2f5eeb['push'](_0x2f5eeb['shift']());}};_0x5bd99a(++_0x114a5a);}(_0x114a,0x12b));const _0x5bd9=function(_0x2f5eeb,_0x114a5a){_0x2f5eeb=_0x2f5eeb-0x0;let _0x5bd99a=_0x114a[_0x2f5eeb];return _0x5bd99a;};import{ObservableMixin as _0x18729e}from'ckeditor5/src/utils';import{getTranslation as _0x3e2653}from'../utils/common-translations';export default class qt extends _0x18729e(){constructor(_0x595a48,_0x20bad4,_0x57eee0,_0x4b39e6){super(),this[_0x5bd9('0x13')]=_0x20bad4,this['view']=_0x57eee0,this[_0x5bd9('0x14')]=_0x4b39e6,this[_0x5bd9('0xf')]=_0x595a48,this[_0x5bd9('0x9')]=_0x595a48[_0x5bd9('0xc')][_0x5bd9('0xd')](_0x5bd9('0x0')),this[_0x5bd9('0x10')]=_0x595a48[_0x5bd9('0xc')][_0x5bd9('0xd')](_0x5bd9('0xb')),this['view'][_0x5bd9('0x1c')]('isEnabled')['to'](this[_0x5bd9('0x9')],this['_discardCommand'],(_0x34b6b9,_0x1c745c)=>_0x34b6b9||_0x1c745c),this[_0x5bd9('0x18')][_0x5bd9('0x1c')]('canAccept')['to'](this[_0x5bd9('0x9')],_0x5bd9('0x6'),_0x143219=>_0x143219&&this[_0x5bd9('0xf')][_0x5bd9('0x13')][_0x5bd9('0x5')](_0x20bad4[_0x5bd9('0x3')]())),this[_0x5bd9('0x18')][_0x5bd9('0x1c')]('canDiscard')['to'](this['_discardCommand'],_0x5bd9('0x6'),_0x174136=>_0x174136&&this['_editor'][_0x5bd9('0x13')][_0x5bd9('0x5')](_0x20bad4['getRanges']())),this[_0x5bd9('0x11')]=null,_0x57eee0[_0x5bd9('0x2')]&&this[_0x5bd9('0x1d')](),this['listenTo'](_0x57eee0,'acceptSuggestion',()=>this[_0x5bd9('0x0')]()),this[_0x5bd9('0x7')](_0x57eee0,_0x5bd9('0xb'),()=>this[_0x5bd9('0xb')]()),this['listenTo'](_0x57eee0,_0x5bd9('0x15'),()=>{_0x57eee0[_0x5bd9('0x2')]?this[_0x5bd9('0x1d')]():this[_0x5bd9('0x1b')]();});}['acceptSuggestion'](){this[_0x5bd9('0x9')]['execute'](this[_0x5bd9('0x13')]['id']);}[_0x5bd9('0xb')](){this[_0x5bd9('0x10')][_0x5bd9('0x16')](this[_0x5bd9('0x13')]['id']);}[_0x5bd9('0x19')](){this[_0x5bd9('0x18')][_0x5bd9('0xe')](_0x5bd9('0x6')),this[_0x5bd9('0x18')][_0x5bd9('0xe')](_0x5bd9('0x12')),this[_0x5bd9('0x18')][_0x5bd9('0xe')](_0x5bd9('0x17')),this[_0x5bd9('0x1')](),this['commentThreadController'][_0x5bd9('0x19')](),this[_0x5bd9('0x11')]&&this[_0x5bd9('0x1b')]();}[_0x5bd9('0x1d')](){const _0x2ae3c9=_0x3e2653(this[_0x5bd9('0xf')]['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this[_0x5bd9('0xf')][_0x5bd9('0x1a')][_0x5bd9('0xd')](_0x5bd9('0x8'))[_0x5bd9('0x4')](_0x2ae3c9);}[_0x5bd9('0x1b')](){null!==this['_pendingAction']&&this[_0x5bd9('0xf')][_0x5bd9('0x1a')][_0x5bd9('0xd')](_0x5bd9('0x8'))[_0x5bd9('0xa')](this['_pendingAction']),this[_0x5bd9('0x11')]=null;}}
23
+ const _0x18b8=['canEditAt','view','_discardCommand','_editor','_removePendingAction','_acceptCommand','destroy','PENDING_ACTION_SUGGESTION','commentThreadController','isEnabled','_setPendingAction','commands','acceptSuggestion','listenTo','canAccept','model','get','execute','stopListening','locale','canDiscard','isDirty','discardSuggestion','remove','_pendingAction','unbind','bind','plugins','add'];(function(_0x634dcb,_0x18b815){const _0x3a5209=function(_0x276f67){while(--_0x276f67){_0x634dcb['push'](_0x634dcb['shift']());}};_0x3a5209(++_0x18b815);}(_0x18b8,0x7e));const _0x3a52=function(_0x634dcb,_0x18b815){_0x634dcb=_0x634dcb-0x0;let _0x3a5209=_0x18b8[_0x634dcb];return _0x3a5209;};import{ObservableMixin as _0x35bfba}from'ckeditor5/src/utils';import{getTranslation as _0x55e100}from'../utils/common-translations';export default class qt extends _0x35bfba(){constructor(_0x2ecd8a,_0x460035,_0x2f9f5f,_0x469ed3){super(),this[_0x3a52('0x5')]=_0x460035,this[_0x3a52('0x14')]=_0x2f9f5f,this['commentThreadController']=_0x469ed3,this['_editor']=_0x2ecd8a,this[_0x3a52('0x18')]=_0x2ecd8a[_0x3a52('0x1')][_0x3a52('0x6')](_0x3a52('0x2')),this[_0x3a52('0x15')]=_0x2ecd8a[_0x3a52('0x1')]['get'](_0x3a52('0xc')),this[_0x3a52('0x14')][_0x3a52('0x10')](_0x3a52('0x1c'))['to'](this[_0x3a52('0x18')],this[_0x3a52('0x15')],(_0x296593,_0x59fbc9)=>_0x296593||_0x59fbc9),this['view'][_0x3a52('0x10')](_0x3a52('0x4'))['to'](this[_0x3a52('0x18')],_0x3a52('0x1c'),_0x194e91=>_0x194e91&&this[_0x3a52('0x16')][_0x3a52('0x5')]['canEditAt'](_0x460035['getRanges']())),this[_0x3a52('0x14')]['bind'](_0x3a52('0xa'))['to'](this[_0x3a52('0x15')],_0x3a52('0x1c'),_0x525cfd=>_0x525cfd&&this[_0x3a52('0x16')][_0x3a52('0x5')][_0x3a52('0x13')](_0x460035['getRanges']())),this[_0x3a52('0xe')]=null,_0x2f9f5f[_0x3a52('0xb')]&&this[_0x3a52('0x0')](),this['listenTo'](_0x2f9f5f,_0x3a52('0x2'),()=>this['acceptSuggestion']()),this[_0x3a52('0x3')](_0x2f9f5f,_0x3a52('0xc'),()=>this[_0x3a52('0xc')]()),this[_0x3a52('0x3')](_0x2f9f5f,'change:isDirty',()=>{_0x2f9f5f[_0x3a52('0xb')]?this[_0x3a52('0x0')]():this['_removePendingAction']();});}['acceptSuggestion'](){this[_0x3a52('0x18')][_0x3a52('0x7')](this[_0x3a52('0x5')]['id']);}[_0x3a52('0xc')](){this[_0x3a52('0x15')]['execute'](this[_0x3a52('0x5')]['id']);}[_0x3a52('0x19')](){this[_0x3a52('0x14')][_0x3a52('0xf')](_0x3a52('0x1c')),this[_0x3a52('0x14')]['unbind'](_0x3a52('0x4')),this[_0x3a52('0x14')][_0x3a52('0xf')](_0x3a52('0xa')),this[_0x3a52('0x8')](),this[_0x3a52('0x1b')]['destroy'](),this['_pendingAction']&&this[_0x3a52('0x17')]();}[_0x3a52('0x0')](){const _0x132ec7=_0x55e100(this[_0x3a52('0x16')][_0x3a52('0x9')],_0x3a52('0x1a'));this[_0x3a52('0xe')]=this[_0x3a52('0x16')][_0x3a52('0x11')]['get']('PendingActions')[_0x3a52('0x12')](_0x132ec7);}['_removePendingAction'](){null!==this['_pendingAction']&&this[_0x3a52('0x16')][_0x3a52('0x11')][_0x3a52('0x6')]('PendingActions')[_0x3a52('0xd')](this[_0x3a52('0xe')]),this[_0x3a52('0xe')]=null;}}