@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231007.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 (65) 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/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ca7=['init','_updateSuggestionData','getSuggestions','return','isInsideObject','getAttribute','getNearestSelectionRange','track-changes-adapter-already-set','position','_setSuggestionData','registerPostFixer','containsRangeInObject','getDifference','setSelection','isCollapsed','name','options','addClass','isLimit','root','detach','ck-suggestion-marker-formatBlock','addMarker:suggestion','hasComments','stop','formatInline:discard','data','_addThreadToSuggestion','forceDefaultExecution','editingDowncast','pluginName','deletion:discard','nodeBefore','default','suggestion','fromCharCode','define','@external','error-saving-suggestion-data-suggestion-discarded','isEqual','_enabledCommands','low','_saved','trackChanges','elementToElement','acceptSelectedSuggestions','high','PENDING_ACTION_SUGGESTION','isAtEnd','dataDowncast','formatInline:','delete','isAfter','parent','getCommentThread','isRemovable','previous','refresh','setAttribute','_findSuggestions','has','_commentsRepository','toViewElement','newRange','discardSuggestion','insertion:accept','stopListening','every','moveTargetPosition','deletion:accept','_rangeIsInLocalUserInsertion','model','markerNameToElements','enableCommand','Users','update:suggestion','elementStart','clone','_joinSuggestions','PendingActions','assign','rootName','for','hasSuggestion','getCustomProperty','external:','_trackFormatChanges','addMarkerName','splitPosition','ready','isOwn','originalSuggestionId','multi','keys','multipleBlocks','getAllAdjacentSuggestions','createPositionAt','data-suggestion','markDeletion','start','formatInline:chain','_suggestionFactory','_mergeNestedSuggestions','widget','authorName','getMultiRangeId','_suggestionState','always','fromRange','getSuggestionCallback','acceptAllSuggestions','activeMarkers','removeMarkers','getSuggestion','batch','getFirstMarker','_getAuthorFromId','forward','getWalker','value','addRange','writer','attributes','commandName','range','markers','addMarker:suggestion:formatBlock','tablePasteChainId','markInlineFormat','oldRange','containsItem','getChangedMarkers','getShiftedBy','item','consume','_createSuggestion','documentSelection','ck-suggestion-marker','unbind','containerElement','isTouching','addComment','_refreshSuggestionsChain','map','createRange','skipNestingCheck','subType','_checkSuggestionCorrectness','_getSuggestionData','buildSuggestion','addSuggestionData','addHighlight','end','schema','split','enableReadOnlyMode','isNextTo','$graveyard','markInsertion','_cutOutSuggestionMarker','discardSelectedSuggestions','formatInline','addSuggestion','removeAttribute','isAtStart','head','author','isArray','dataToMarker','collaboration.channelId','discard','includes','deletion:chain','isBlock','$marker','join','showSuggestionHighlights','$textProxy','trackChangesCommand','document','_onDiscard','_customCallbacks','formatBlock:accept','removeComment','filter','commentThread','containsRange','differ','suggestion:','addCommentThread','setTo','updateMarker','formatGroupId','track-changes-suggestion-data-mismatch','change:data','isBefore','ck-suggestion-marker--active','push','markMultiRangeBlockFormat','insert','isInContent','bindElementToMarker','_setSuggestionRange','getFirstRange','splice','size','dataReady','change:activeMarkers','addUser','_adapter','_breakSuggestionMarker','elementEnd','change','isObject','move','getRange','consumable','_editor','formatBlock','before','conversion','listenTo','suggestion-type','element','_splitMarkerName','locale','formatInline:join','_addSuggestionMarker','insertion:join','normal','insertion:','removeClass','getLastMatchingPosition','createSelection','applyOperation','_model','substr','createPositionAfter','type','formatBlock:discard','deletion:','fetchCommentThread','rethrowUnexpectedError','fire','toJSON','length','suggestionLoaded','get','reconvertMarker','_isDataLoaded','TrackChangesEditing','isSelectable','set','CommentsRepository','getRanges','addMarker','editor','_descriptionFactory','ck-suggestion-marker-','_handleNewSuggestionMarker','registerCustomCallback','formatBlock:join','upcast','markerName','_isForcedDefaultExecutionBlock','marker-count','mapper','next','formatBlock:','isDocumentOperation','plugins','getIntersection','createPositionBefore','deleteContent','trackChanges.trackFormatChanges','notReady','isIntersectingWithRange','adapter','authoredAt','_defaultCallbacks','backward','isLocal','track-changes-suggestion-not-found','deletion','markerToData','then','markMultiRangeDeletion','creator','isMultiRange','acceptSuggestion','never','createElement','enqueueChange','add','markerReady','removeMarker:suggestion:formatBlock','unbindElementFromMarkerName','sort','from','commands','_getExternalAuthor','getMarkers','values','discardAllSuggestions','accept','execute','howMany','insertion:discard','createdAt','insertion','nodeAfter','_suggestions','track-changes-command-not-found','getUser','markerToHighlight','suggestionChanged','some','_removeSuggestion','config','insertContent','_joinWithAdjacentSuggestions','change:_saved','removeMarker'];(function(_0x5816dd,_0x3ca798){const _0x165cc1=function(_0x38faa8){while(--_0x38faa8){_0x5816dd['push'](_0x5816dd['shift']());}};_0x165cc1(++_0x3ca798);}(_0x3ca7,0x1d6));const _0x165c=function(_0x5816dd,_0x3ca798){_0x5816dd=_0x5816dd-0x0;let _0x165cc1=_0x3ca7[_0x5816dd];return _0x165cc1;};import{Plugin as _0x39a7e2,PendingActions as _0x1bf11d}from'ckeditor5/src/core';import{LiveRange as _0x3c45ef}from'ckeditor5/src/engine';import{CKEditorError as _0xb2381e,uid as _0x45f81c,priorities as _0x5d330b,logWarning as _0x17f9a1}from'ckeditor5/src/utils';import{toWidget as _0x1836ce}from'ckeditor5/src/widget';import{Users as _0x29a4b9,hashObject as _0x15ab5f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2bfc2f from'./commands/trackchangescommand';import _0x7f50d6 from'./commands/acceptsuggestioncommand';import _0x26413d from'./commands/discardsuggestioncommand';import _0x4fd953 from'./commands/executeonallsuggestionscommand';import _0x1dabf9 from'./commands/executeonselectedsuggestionscommand';import _0x46695f from'./suggestion';import _0xb322f0 from'./suggestiondescriptionfactory';import _0x505fc8 from'./integrations/aiassistant';import _0x132516 from'./integrations/alignment';import _0x279614 from'./integrations/basicstyles';import _0x3516f5 from'./integrations/blockquote';import _0x587d27 from'./integrations/ckbox';import _0x1fdfb2 from'./integrations/codeblock';import _0x57bebc from'./integrations/comments';import _0x12d8c3 from'./integrations/deletecommand';import _0x291925 from'./integrations/documentlist';import _0x56d72f from'./integrations/entercommand';import _0x49536c from'./integrations/findandreplace';import _0x3444a0 from'./integrations/font';import _0x2a72c4 from'./integrations/formatpainter';import _0x420cfb from'./integrations/heading';import _0x565184 from'./integrations/highlight';import _0x44b018 from'./integrations/horizontalline';import _0x36b0c4 from'./integrations/htmlembed';import _0x46ea70 from'./integrations/image';import _0x5413e7 from'./integrations/imagereplace';import _0x5231ca from'./integrations/importword';import _0x279ac2 from'./integrations/indent';import _0x3555b2 from'./integrations/inputcommand';import _0x1b8224 from'./integrations/link';import _0x585c92 from'./integrations/list';import _0x4c8606 from'./integrations/listproperties';import _0x2f2ab5 from'./integrations/mediaembed';import _0x1aeb31 from'./integrations/mention';import _0x56ab6a from'./integrations/pagebreak';import _0x141689 from'./integrations/paragraph';import _0x58f0bd from'./integrations/removeformat';import _0x3480af from'./integrations/restrictededitingmode';import _0x3ece1b from'./integrations/shiftentercommand';import _0x3844c7 from'./integrations/standardeditingmode';import _0x151466 from'./integrations/style';import _0x3b1ba1 from'./integrations/table';import _0x5629a4 from'./integrations/tablemergesplit';import _0x66ee91 from'./integrations/tableheadings';import _0x180455 from'./integrations/tableclipboard';import _0x5f4ac7 from'./integrations/tablecolumnresize';import _0x46c678 from'./integrations/template';import _0x25b59a from'./integrations/tableofcontents';import _0x141b8f from'./integrations/title';import _0x4ad006 from'./integrations/undo';import{getTranslation as _0x14a9fb}from'./utils/common-translations';import _0x303340 from'./integrations/tablecaption';import _0x2e28ee from'./integrations/documentlistproperties';import _0x19a12e from'./integrations/tableproperties';import{isEqual as _0x2a10e9}from'lodash-es';export default class p extends _0x39a7e2{static get['requires'](){return[_0x165c('0x6a'),_0x29a4b9,_0x1bf11d,_0x505fc8,_0x132516,_0x279614,_0x3516f5,_0x587d27,_0x1fdfb2,_0x57bebc,_0x12d8c3,_0x291925,_0x2e28ee,_0x56d72f,_0x49536c,_0x3444a0,_0x2a72c4,_0x420cfb,_0x565184,_0x44b018,_0x36b0c4,_0x46ea70,_0x5413e7,_0x5231ca,_0x279ac2,_0x3555b2,_0x1b8224,_0x585c92,_0x4c8606,_0x2f2ab5,_0x1aeb31,_0x56ab6a,_0x141689,_0x58f0bd,_0x3480af,_0x3ece1b,_0x3844c7,_0x151466,_0x3b1ba1,_0x5629a4,_0x66ee91,_0x303340,_0x180455,_0x5f4ac7,_0x25b59a,_0x19a12e,_0x46c678,_0x141b8f,_0x4ad006];}static get[_0x165c('0xce')](){return _0x165c('0x67');}constructor(_0x500d3d){function _0x4b62d1(_0x2f951a){return _0x2f951a[_0x165c('0x13f')](_0x1abc0f=>String[_0x165c('0xd3')](_0x1abc0f))['join']('');}super(_0x500d3d),this[_0x165c('0x69')](_0x165c('0x11f'),[]),this['on'](_0x165c('0x3c'),(_0x137740,_0x1a34b8,_0x93d5b1,_0x106534)=>{this[_0x165c('0x58')][_0x165c('0x41')](()=>{for(const _0x19dc4a of[..._0x106534,..._0x93d5b1])this[_0x165c('0x58')][_0x165c('0x12d')][_0x165c('0xec')](_0x19dc4a)&&_0x500d3d['editing'][_0x165c('0x65')](_0x19dc4a);});}),this[_0x165c('0x6e')]=new _0xb322f0(this[_0x165c('0x6d')][_0x165c('0xf7')][_0x165c('0x6')],this[_0x165c('0x6d')]['locale']),this[_0x165c('0x3e')]=null,this[_0x165c('0x115')]=new Bt(this[_0x165c('0x6d')]),this[_0x165c('0xa4')]=new Map(),this[_0x165c('0xed')]=_0x500d3d[_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0x6a')),this[_0x165c('0xd8')]=new Set(),this[_0x165c('0x58')]=this['editor'][_0x165c('0xf7')],this[_0x165c('0x11a')]=new WeakMap(),this[_0x165c('0x75')]=!0x1,_0x500d3d[_0x165c('0xab')][_0x165c('0xd4')](_0x165c('0x7f'),_0x165c('0xd1')),this[_0x165c('0x106')]=_0x500d3d[_0x165c('0xab')][_0x165c('0x64')]('trackChanges.trackFormatChanges'),_0x500d3d[_0x165c('0xab')][_0x165c('0xd4')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x165c('0x116')]=_0x500d3d[_0x165c('0xab')][_0x165c('0x64')]('trackChanges.mergeNestedSuggestions'),this[_0x165c('0x1f')]=new _0x2bfc2f(_0x500d3d,this['_enabledCommands']),this[_0x4b62d1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4b62d1([0x34,0x30,0x34,0x36,0x32,0x30,0x31,0x30]);}[_0x165c('0xb0')](){const _0x16d3b2=this[_0x165c('0x6d')];_0x16d3b2['conversion'][_0x165c('0x102')](_0x165c('0xcd'))[_0x165c('0xa7')]({'model':_0x165c('0xd2'),'view':_0xf6e794=>{const {id:_0x2227bd,type:_0x3e8b40}=this[_0x165c('0x4d')](_0xf6e794[_0x165c('0x74')]),_0x3d4122=[_0x165c('0x139'),_0x165c('0x6f')+_0x3e8b40];let _0x452361=0xbb8;return this[_0x165c('0x11f')][_0x165c('0x18')](_0xf6e794[_0x165c('0x74')])&&(_0x3d4122[_0x165c('0x32')]('ck-suggestion-marker--active'),_0x452361=0xbc2),_0x165c('0x88')==_0x3e8b40&&(_0x452361+=0x5),{'classes':_0x3d4122,'attributes':{'data-suggestion':_0x2227bd},'priority':_0x452361};}}),_0x16d3b2[_0x165c('0x49')][_0x165c('0x102')](_0x165c('0xe1'))[_0x165c('0x92')](_0x35285a=>{_0x35285a['on'](_0x165c('0xc6'),(_0x3ac966,_0x44f1df,_0x13f1ed)=>{if(!_0x13f1ed[_0x165c('0xc0')][_0x165c('0x1d')])return;const _0x2e5ce2=_0x44f1df[_0x165c('0x135')];if(!_0x2e5ce2)return;const _0x2992ae=_0x13f1ed['mapper'][_0x165c('0xee')](_0x2e5ce2);_0x16d3b2['model'][_0x165c('0x6')][_0x165c('0x42')](_0x2e5ce2)&&_0x2992ae&&!_0x2992ae[_0x165c('0x104')](_0x165c('0x117'))&&_0x2992ae['is'](_0x165c('0x13b'))&&_0x1836ce(_0x2992ae,_0x13f1ed[_0x165c('0x129')]);},{'priority':_0x165c('0xde')});}),_0x16d3b2['conversion'][_0x165c('0x102')](_0x165c('0xe1'))[_0x165c('0xa7')]({'model':'suggestion','view':(_0x96c2fa,_0xfd5a5e)=>{if(!_0xfd5a5e[_0x165c('0xc0')][_0x165c('0x1d')])return null;const {type:_0x1df50d}=this[_0x165c('0x4d')](_0x96c2fa[_0x165c('0x74')]);return{'classes':[_0x165c('0x139'),'ck-suggestion-marker-'+_0x1df50d],'priority':0xbb8};}});const _0x1a73a8=({showActiveMarkers:_0x2b886c=!0x0}={})=>(_0x2f40dd,_0x1f37da,_0x925c57)=>{if(!_0x1f37da['item'])return;if(_0x1f37da[_0x165c('0x135')]['is']('selection'))return void _0x925c57[_0x165c('0x45')][_0x165c('0x136')](_0x1f37da[_0x165c('0x135')],_0x2f40dd[_0x165c('0xbf')]);const _0x49c7bc=_0x925c57[_0x165c('0x77')][_0x165c('0xee')](_0x1f37da['item']);if(!(_0x1f37da[_0x165c('0x135')]['is'](_0x165c('0x4c'))&&_0x16d3b2[_0x165c('0xf7')][_0x165c('0x6')][_0x165c('0x1a')](_0x1f37da[_0x165c('0x135')])&&!_0x49c7bc['getCustomProperty'](_0x165c('0x4'))))return;const {id:_0x2e8e7b}=this[_0x165c('0x4d')](_0x1f37da[_0x165c('0x74')]);_0x925c57[_0x165c('0x129')][_0x165c('0xc1')]([_0x165c('0x139'),_0x165c('0xc5')],_0x49c7bc),_0x925c57[_0x165c('0x129')][_0x165c('0xea')](_0x165c('0x111'),_0x2e8e7b,_0x49c7bc),_0x925c57[_0x165c('0x77')][_0x165c('0x36')](_0x49c7bc,_0x1f37da['markerName']),_0x2b886c&&(this['activeMarkers'][_0x165c('0x18')](_0x1f37da[_0x165c('0x74')])?_0x925c57[_0x165c('0x129')]['addClass'](_0x165c('0x31'),_0x49c7bc):_0x925c57['writer'][_0x165c('0x54')](_0x165c('0x31'),_0x49c7bc));for(const _0x2a82b9 of _0x16d3b2['model']['createRangeIn'](_0x1f37da['item'])['getItems']())_0x925c57[_0x165c('0x45')][_0x165c('0x136')](_0x2a82b9,_0x2f40dd[_0x165c('0xbf')]);_0x925c57['consumable'][_0x165c('0x136')](_0x1f37da[_0x165c('0x135')],_0x2f40dd[_0x165c('0xbf')]);};_0x16d3b2[_0x165c('0x49')][_0x165c('0x102')](_0x165c('0xe1'))['add'](_0x238aae=>{_0x238aae['on'](_0x165c('0x12e'),(_0x50fc91,_0x1dbfb8,_0x1adba9)=>{_0x1adba9[_0x165c('0xc0')][_0x165c('0x1d')]&&_0x1a73a8({'showActiveMarkers':!0x1})(_0x50fc91,_0x1dbfb8,_0x1adba9);},{'priority':'highest'});}),_0x16d3b2[_0x165c('0x49')][_0x165c('0x102')]('dataDowncast')[_0x165c('0x89')]({'model':_0x165c('0xd2'),'view':(_0x4134f5,_0x362987)=>_0x362987[_0x165c('0xc0')][_0x165c('0x1d')]?null:{'group':_0x165c('0xd2'),'name':_0x4134f5[_0x165c('0x59')](0xb)}}),_0x16d3b2['conversion'][_0x165c('0x102')](_0x165c('0x73'))[_0x165c('0xdc')]({'view':{'name':_0x165c('0xd2'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3afd3d,{writer:_0x474b10})=>{let _0x2da720=_0x165c('0x29')+_0x3afd3d[_0x165c('0xb5')](_0x165c('0x4b'))+':'+_0x3afd3d['getAttribute']('id');return _0x3afd3d[_0x165c('0xb5')](_0x165c('0x76'))&&(_0x2da720+=':'+_0x3afd3d[_0x165c('0xb5')](_0x165c('0x76'))),_0x474b10[_0x165c('0x90')](_0x165c('0x1b'),{'data-name':_0x2da720});}}),_0x16d3b2[_0x165c('0x49')][_0x165c('0x102')](_0x165c('0x73'))[_0x165c('0x15')]({'view':_0x165c('0xd2')}),_0x16d3b2[_0x165c('0x49')][_0x165c('0x102')](_0x165c('0xcd'))[_0x165c('0x92')](_0xc4e935=>{_0xc4e935['on'](_0x165c('0x12e'),_0x1a73a8(),{'priority':_0x165c('0xde')});}),_0x16d3b2[_0x165c('0x49')]['for']('editingDowncast')[_0x165c('0x92')](_0x64d013=>{_0x64d013['on'](_0x165c('0x94'),(_0x5e33c4,_0x5713bd,_0x48acb9)=>{const _0x32eb38=_0x48acb9[_0x165c('0x77')][_0x165c('0xf8')](_0x5713bd[_0x165c('0x74')]);if(_0x32eb38)for(const _0x13b11a of _0x32eb38)_0x13b11a[_0x165c('0x104')](_0x165c('0x4'))||(_0x48acb9[_0x165c('0x129')][_0x165c('0x54')]([_0x165c('0x139'),_0x165c('0xc5'),_0x165c('0x31')],_0x13b11a),_0x48acb9[_0x165c('0x129')][_0x165c('0x10')](_0x165c('0x111'),_0x13b11a),_0x48acb9[_0x165c('0x77')][_0x165c('0x95')](_0x13b11a,_0x5713bd[_0x165c('0x74')]));},{'priority':_0x165c('0xde')});}),_0x16d3b2[_0x165c('0xf7')][_0x165c('0x20')][_0x165c('0xba')](_0x415741=>{let _0x566dbe=!0x1;const _0x209704=Array[_0x165c('0x97')](_0x16d3b2[_0x165c('0xf7')][_0x165c('0x20')][_0x165c('0x28')]['getChangedMarkers']()),_0x573eec=new Set();for(const {name:_0x52ab0a,data:_0x591645}of _0x209704){const {group:_0x1a3580,type:_0x2350ba,id:_0x114ee8}=this[_0x165c('0x4d')](_0x52ab0a);if(_0x165c('0xd2')!==_0x1a3580)continue;const _0x2317a8=this[_0x165c('0xa4')][_0x165c('0x64')](_0x114ee8);if(null!=_0x591645['newRange']){'formatInline'==_0x2350ba&&(_0x566dbe=_0x566dbe||$t(_0x591645[_0x165c('0xef')],_0x52ab0a,_0x415741,_0x16d3b2['model'][_0x165c('0x6')]));if(_0x591645['newRange'][_0x165c('0xbe')]||'$graveyard'==_0x591645[_0x165c('0xef')]['root'][_0x165c('0x101')]||_0x165c('0x47')==_0x2350ba&&!Rt(_0x591645['newRange'])||_0x165c('0x88')==_0x2350ba&&!(!Mt(_0x1e3884=_0x591645[_0x165c('0xef')])&&!function(_0x3c3baa){return _0x3c3baa['start'][_0x165c('0xe5')]==_0x3c3baa['end'][_0x165c('0xd0')]&&_0x3c3baa[_0x165c('0x113')][_0x165c('0xe0')];}(_0x1e3884)))_0x415741[_0x165c('0xaf')](_0x52ab0a),_0x566dbe=!0x0;else{if(!_0x2317a8||!_0x2317a8['isInContent'])continue;_0x573eec[_0x165c('0x92')](_0x2317a8);}}}var _0x1e3884;return _0x573eec[_0x165c('0x3a')]>0x0&&(_0x566dbe=!!this['_joinWithAdjacentSuggestions'](_0x573eec)||_0x566dbe),_0x566dbe;}),_0x16d3b2[_0x165c('0xf7')][_0x165c('0x20')][_0x165c('0xba')](_0x3a0df7=>{let _0x58a7b7=!0x1;for(const _0x19ec04 of _0x16d3b2[_0x165c('0xf7')][_0x165c('0x20')][_0x165c('0x28')]['getChanges']()){if('insert'!=_0x19ec04['type'])continue;const _0x4078b1=_0x19ec04[_0x165c('0xb8')][_0x165c('0x134')](_0x19ec04['length']);if(_0x4078b1[_0x165c('0xe0')])for(const _0x25ffe1 of this[_0x165c('0xa4')][_0x165c('0x9b')]()){if(_0x25ffe1[_0x165c('0x8d')]||!_0x25ffe1[_0x165c('0x35')])continue;if('formatBlock'!=_0x25ffe1[_0x165c('0x5b')])continue;const _0x46eadf=_0x25ffe1[_0x165c('0x38')]();if(_0x46eadf[_0x165c('0x113')]['parent']!=_0x46eadf[_0x165c('0x5')][_0x165c('0xe5')]&&_0x46eadf[_0x165c('0x5')]['isEqual'](_0x19ec04['position'])){const _0x796b5c=_0x16d3b2['model'][_0x165c('0x140')](_0x46eadf[_0x165c('0x113')],_0x4078b1);_0x3a0df7[_0x165c('0x2c')](_0x25ffe1[_0x165c('0x123')](),{'range':_0x796b5c}),_0x58a7b7=!0x0;}}}return _0x58a7b7;}),_0x16d3b2['model'][_0x165c('0x12d')]['on'](_0x165c('0xfb'),(_0x13cf2c,_0xcf5310,_0x2478d9)=>{if(null==_0x2478d9){const {id:_0x27e764}=this[_0x165c('0x4d')](_0xcf5310[_0x165c('0xbf')]),_0x273709=this[_0x165c('0xa4')][_0x165c('0x64')](_0x27e764);_0x273709&&_0x273709[_0x165c('0x107')](_0xcf5310[_0x165c('0xbf')]);}}),_0x16d3b2[_0x165c('0xf7')][_0x165c('0x20')]['on'](_0x165c('0x2f'),()=>{const _0x767566=Array[_0x165c('0x97')](_0x16d3b2['model']['document'][_0x165c('0x28')][_0x165c('0x133')]())['filter'](_0x4dd306=>_0x165c('0xd2')===this[_0x165c('0x4d')](_0x4dd306[_0x165c('0xbf')])['group']);if(0x0===_0x767566[_0x165c('0x62')])return;_0x767566[_0x165c('0x96')]((_0x25377c,_0x22adfb)=>{const _0x2cf584=_0x25377c[_0x165c('0xca')][_0x165c('0x131')],_0x239241=_0x22adfb[_0x165c('0xca')][_0x165c('0x131')];return null===_0x2cf584&&null===_0x239241?0x0:null===_0x2cf584&&null!==_0x239241?-0x1:null!==_0x2cf584&&null===_0x239241?0x1:_0x2cf584['start'][_0x165c('0x30')](_0x239241[_0x165c('0x113')])?-0x1:0x1;});const _0x350fff=new Set(),_0x17c527=new Set();for(const {name:_0x58e395,data:_0x53bf73}of _0x767566){const {id:_0x50d725}=this[_0x165c('0x4d')](_0x58e395);if(null===_0x53bf73[_0x165c('0x131')]){const _0x4a588f=this[_0x165c('0x70')](_0x58e395);_0x17c527[_0x165c('0x92')](_0x4a588f);}else{const _0x3e67f1=this[_0x165c('0xa4')]['get'](_0x50d725);null!==_0x53bf73['newRange']||_0x3e67f1[_0x165c('0x35')]?(_0x350fff[_0x165c('0x92')](_0x3e67f1[_0x165c('0x12')]),_0x17c527[_0x165c('0x92')](_0x3e67f1)):this[_0x165c('0xaa')](_0x3e67f1);}}_0x17c527[_0x165c('0x3a')]>0x0&&this['_refreshSuggestionsChain'](_0x17c527);for(const _0x24e74a of _0x350fff)this['fire']('suggestionChanged',_0x24e74a);}),_0x16d3b2[_0x165c('0xf7')]['on'](_0x165c('0x57'),(_0x3be905,_0x1b28f)=>{const _0x47a40c=_0x1b28f[0x0];if(!this[_0x165c('0xa4')]['size'])return;if(!_0x47a40c[_0x165c('0x7a')])return;if(_0x47a40c[_0x165c('0x122')]['isUndo']||!_0x47a40c['batch'][_0x165c('0x86')])return;let _0x4e0f78,_0x59b1d3;switch(_0x47a40c[_0x165c('0x5b')]){case _0x165c('0x34'):_0x4e0f78=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x110')](_0x47a40c[_0x165c('0xb8')]),_0x59b1d3=_0x4e0f78[_0x165c('0x134')](_0x47a40c[_0x165c('0x9f')]);break;case _0x165c('0x7'):_0x4e0f78=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x110')](_0x47a40c[_0x165c('0x108')]),_0x59b1d3=_0x16d3b2['model'][_0x165c('0x110')](_0x47a40c[_0x165c('0xf4')]);break;case _0x165c('0x43'):_0x4e0f78=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x110')](_0x47a40c['targetPosition']),_0x59b1d3=_0x4e0f78['getShiftedBy'](_0x47a40c[_0x165c('0x9f')]);break;default:return;}const _0x2f0b04=_0x16d3b2['model'][_0x165c('0x140')](_0x4e0f78,_0x59b1d3);_0x16d3b2[_0x165c('0xf7')][_0x165c('0x41')](()=>{for(const {suggestion:_0x2f24c0,meta:_0x48a443}of this[_0x165c('0xeb')](_0x2f0b04)){if(_0x2f24c0[_0x165c('0x8d')])continue;if(_0x165c('0xe')==_0x2f24c0[_0x165c('0x5b')])continue;const _0x5ce236=_0x2f24c0[_0x165c('0xca')]&&_0x2f24c0[_0x165c('0xca')]['multipleBlocks'];('formatBlock'!=_0x2f24c0[_0x165c('0x5b')]||_0x165c('0x7')==_0x47a40c[_0x165c('0x5b')]&&!_0x5ce236)&&(_0x48a443[_0x165c('0xbb')]||_0x165c('0xa2')==_0x2f24c0[_0x165c('0x5b')]&&_0x48a443['isOwn']||_0x2f24c0['getFirstRange']()[_0x165c('0x27')](_0x2f0b04)&&this[_0x165c('0x3f')](_0x2f24c0,_0x4e0f78,_0x59b1d3));}});},{'priority':'lowest'}),_0x16d3b2[_0x165c('0xf7')]['on']('deleteContent',(_0x6dd9d9,_0x3e05a4)=>{const _0x5c2e3c=_0x3e05a4[0x0],_0x35035d=_0x3e05a4[0x1];if(_0x35035d&&_0x35035d[_0x165c('0xcc')])return;if(this[_0x165c('0x75')])return;if(!this[_0x165c('0x1f')]['value'])return;if(_0x5c2e3c[_0x165c('0xbe')])return;const _0x4e55dc=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x6')],{start:_0x1ecb4f,end:_0x1bee43}=_0x5c2e3c[_0x165c('0x38')](),_0xbdd2e3=_0x1ecb4f[_0x165c('0xa3')]&&_0x4e55dc[_0x165c('0xc2')](_0x1ecb4f[_0x165c('0xa3')])?null:_0x4e55dc[_0x165c('0xb6')](_0x1ecb4f,_0x165c('0x125')),_0x520968=_0x1bee43[_0x165c('0xd0')]&&_0x4e55dc[_0x165c('0xc2')](_0x1bee43[_0x165c('0xd0')])?null:_0x4e55dc[_0x165c('0xb6')](_0x1bee43,_0x165c('0x85')),_0x28e195=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x140')](_0xbdd2e3?_0xbdd2e3[_0x165c('0x113')]:_0x1ecb4f,_0x520968?_0x520968[_0x165c('0x5')]:_0x1bee43);_0x16d3b2[_0x165c('0xf7')][_0x165c('0x41')](_0x2d9f5f=>{this[_0x165c('0x112')](_0x28e195);const _0x52620b=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x6')]['getNearestSelectionRange'](_0x28e195[_0x165c('0x113')]);_0x5c2e3c['is'](_0x165c('0x138'))?_0x2d9f5f['setSelection'](_0x52620b):_0x5c2e3c[_0x165c('0x2b')](_0x52620b);}),_0x6dd9d9[_0x165c('0xc8')]();},{'priority':_0x5d330b[_0x165c('0x52')]+0xa}),_0x16d3b2[_0x165c('0xf7')]['on'](_0x165c('0xac'),(_0x1387e8,_0x3fd8ff)=>{const _0x404faa=_0x3fd8ff[_0x3fd8ff[_0x165c('0x62')]-0x1];_0x404faa&&_0x404faa['forceDefaultExecution']||this[_0x165c('0x75')]||this[_0x165c('0x1f')][_0x165c('0x127')]&&(_0x16d3b2[_0x165c('0xf7')][_0x165c('0x41')](()=>{let _0x96dedd=_0x16d3b2[_0x165c('0xf7')][_0x165c('0xac')](_0x3fd8ff[0x0],_0x3fd8ff[0x1],_0x3fd8ff[0x2],{'forceDefaultExecution':!0x0});if(!_0x96dedd)return;_0x1387e8[_0x165c('0xb3')]=_0x96dedd[_0x165c('0xfd')]();const _0x1598e0=_0x96dedd['end'][_0x165c('0xd0')],_0xb4b2a7=_0x16d3b2[_0x165c('0xf7')]['schema'];_0x1598e0&&_0xb4b2a7[_0x165c('0x1a')](_0x1598e0)&&!_0xb4b2a7[_0x165c('0x42')](_0x1598e0)&&(_0x96dedd=_0x16d3b2[_0x165c('0xf7')]['createRange'](_0x96dedd[_0x165c('0x113')],_0x16d3b2[_0x165c('0xf7')]['createPositionAt'](_0x1598e0,_0x165c('0x5')))),this[_0x165c('0xb')](_0x96dedd);}),_0x1387e8[_0x165c('0xc8')]());},{'priority':_0x165c('0xde')}),this[_0x165c('0x6d')][_0x165c('0x98')][_0x165c('0x92')](_0x165c('0xdb'),this['trackChangesCommand']),this[_0x165c('0xf9')](_0x165c('0xdb'));const _0x43e317=new _0x7f50d6(_0x16d3b2,this[_0x165c('0xa4')]);_0x16d3b2[_0x165c('0x98')]['add'](_0x165c('0x8e'),_0x43e317),this[_0x165c('0xf9')]('acceptSuggestion');const _0x53c5f5=new _0x26413d(_0x16d3b2,this[_0x165c('0xa4')]);_0x16d3b2[_0x165c('0x98')][_0x165c('0x92')](_0x165c('0xf0'),_0x53c5f5),this[_0x165c('0xf9')](_0x165c('0xf0')),_0x16d3b2[_0x165c('0x98')][_0x165c('0x92')]('acceptAllSuggestions',new _0x4fd953(_0x16d3b2,_0x43e317,this['_suggestions'])),this[_0x165c('0xf9')](_0x165c('0x11e')),_0x16d3b2[_0x165c('0x98')][_0x165c('0x92')](_0x165c('0x9c'),new _0x4fd953(_0x16d3b2,_0x53c5f5,this[_0x165c('0xa4')])),this[_0x165c('0xf9')](_0x165c('0x9c')),_0x16d3b2[_0x165c('0x98')]['add'](_0x165c('0xdd'),new _0x1dabf9(_0x16d3b2,_0x43e317,this[_0x165c('0xa4')])),this[_0x165c('0xf9')](_0x165c('0xdd')),_0x16d3b2['commands'][_0x165c('0x92')](_0x165c('0xd'),new _0x1dabf9(_0x16d3b2,_0x53c5f5,this['_suggestions'])),this[_0x165c('0xf9')]('discardSelectedSuggestions');const _0x3f0582=_0x16d3b2[_0x165c('0x7b')][_0x165c('0x64')]('CommentsRepository');this[_0x165c('0x4a')](_0x3f0582,_0x165c('0x13d'),(_0x237014,{threadId:_0x427911})=>{const _0x419c94=this[_0x165c('0xa4')][_0x165c('0x64')](_0x427911);_0x419c94&&_0x419c94[_0x165c('0x26')]&&0x1===_0x419c94[_0x165c('0x26')][_0x165c('0x62')]&&this['_updateSuggestionData'](_0x427911,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3f0582,_0x165c('0x24'),(_0x2e8bce,{threadId:_0x474f0d})=>{const _0x2e8186=this['_suggestions'][_0x165c('0x64')](_0x474f0d);_0x2e8186&&_0x2e8186[_0x165c('0x26')]&&!_0x2e8186[_0x165c('0x26')]['length']&&this[_0x165c('0xb1')](_0x474f0d,{'hasComments':!0x1});},{'priority':_0x165c('0xd9')});}set[_0x165c('0x82')](_0x2f4ad2){if(this['_adapter'])throw new _0xb2381e(_0x165c('0xb7'),this);this[_0x165c('0x3e')]=_0x2f4ad2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x49a1d6=!0x1,toJSON:_0x3aa831=!0x1}={}){const _0x5bd7d2=[];for(const _0x4eb332 of this[_0x165c('0xa4')]['values']())_0x49a1d6&&!_0x4eb332[_0x165c('0x35')]||_0x5bd7d2[_0x165c('0x32')](_0x4eb332);return _0x3aa831?_0x5bd7d2[_0x165c('0x13f')](_0x38a0ba=>_0x38a0ba[_0x165c('0x61')]()):_0x5bd7d2;}['getSuggestion'](_0x45fbbb){const _0x39fb8b=this[_0x165c('0xa4')]['get'](_0x45fbbb);if(!_0x39fb8b)throw new _0xb2381e(_0x165c('0x87'),this);return _0x39fb8b;}[_0x165c('0x103')](_0x5c1c3d){return this[_0x165c('0xa4')][_0x165c('0xec')](_0x5c1c3d);}['addSuggestionData'](_0x29695b){const {authorId:_0x4dec7a,id:_0xc95f3e,attributes:_0x393e9d}=_0x29695b,[_0x3dd382,_0x8cac8c]=_0x29695b[_0x165c('0x5b')][_0x165c('0x7')](':'),_0x2ef929=this[_0x165c('0xa4')][_0x165c('0x64')](_0xc95f3e)||this[_0x165c('0x137')](_0x3dd382,_0x8cac8c,_0xc95f3e,_0x4dec7a,_0x393e9d);if(this['_addThreadToSuggestion'](_0x2ef929),this[_0x165c('0x0')](_0x2ef929,_0x3dd382,_0x8cac8c||null,_0x4dec7a),_0x2ef929[_0x165c('0xa1')]=_0x29695b[_0x165c('0xa1')],_0x2ef929[_0x165c('0x66')]=!0x0,_0x393e9d&&_0x393e9d[_0x165c('0xd5')]){const _0xf32b8f=_0x393e9d[_0x165c('0xd5')],_0x5e87fb=this[_0x165c('0x99')](_0xf32b8f[_0x165c('0x118')]);_0x2ef929['authoredAt']=_0xf32b8f[_0x165c('0xa1')],_0x2ef929[_0x165c('0x13')]=_0x5e87fb,_0x2ef929['isExternal']=!0x0;}else _0x2ef929[_0x165c('0x83')]=_0x29695b['createdAt'];switch(_0x29695b[_0x165c('0xca')]&&(_0x2ef929['data']=_0x29695b['data']),_0x29695b[_0x165c('0x12a')]&&(_0x2ef929['attributes']=_0x29695b[_0x165c('0x12a')]),this[_0x165c('0x3e')]&&this[_0x165c('0x3e')][_0x165c('0xf')]||(_0x2ef929['_saved']=!0x0),this[_0x165c('0x11a')][_0x165c('0x64')](_0x2ef929)){case _0x165c('0x80'):this[_0x165c('0x11a')]['set'](_0x2ef929,_0x165c('0x3b'));break;case _0x165c('0x93'):_0x2ef929['isInContent']?(this[_0x165c('0x13e')](new Set([_0x2ef929])),this[_0x165c('0xad')](new Set([_0x2ef929])),this[_0x165c('0x11a')][_0x165c('0x69')](_0x2ef929,_0x165c('0x109')),this[_0x165c('0x60')](_0x165c('0x63'),_0x2ef929)):this[_0x165c('0x11a')][_0x165c('0x69')](_0x2ef929,'removed');}return _0x2ef929;}['acceptSuggestion'](_0x43352b){this['forceDefaultExecution'](()=>{this['editor'][_0x165c('0xf7')][_0x165c('0x41')](()=>{for(const _0x5a33a5 of _0x43352b[_0x165c('0x10f')]())_0x5a33a5['accept']();});});}['discardSuggestion'](_0x18ffb4){this[_0x165c('0xcc')](()=>{this[_0x165c('0x6d')][_0x165c('0xf7')][_0x165c('0x41')](()=>{for(const _0x5d1998 of _0x18ffb4[_0x165c('0x10f')]())_0x5d1998[_0x165c('0x17')]();});});}['enableCommand'](_0x170ed1,_0x131127){const _0x524f67=this[_0x165c('0x6d')][_0x165c('0x98')]['get'](_0x170ed1);if(!_0x524f67)throw new _0xb2381e(_0x165c('0xa5'),this,{'commandName':_0x170ed1});this['_enabledCommands'][_0x165c('0x92')](_0x524f67),_0x131127&&_0x524f67['on'](_0x165c('0x9e'),(_0x161cc1,_0x2cc8aa)=>{this[_0x165c('0x1f')][_0x165c('0x127')]&&(this[_0x165c('0x75')]||_0x2cc8aa['length']>0x0&&_0x2cc8aa[_0x2cc8aa[_0x165c('0x62')]-0x1]&&_0x2cc8aa[_0x2cc8aa[_0x165c('0x62')]-0x1][_0x165c('0xcc')]||(_0x131127((..._0x37fa5f)=>_0x524f67[_0x165c('0x9e')](..._0x37fa5f,{'forceDefaultExecution':!0x0}),..._0x2cc8aa),_0x161cc1[_0x165c('0xc8')]()));},{'priority':_0x165c('0xde')});}['forceDefaultExecution'](_0xfcaece){let _0x4aea43,_0x22b955;const _0x349223=this['_isForcedDefaultExecutionBlock'];this[_0x165c('0x75')]=!0x0;try{_0x4aea43=_0xfcaece();}catch(_0x52d254){_0x22b955=_0x52d254;}return _0x349223||(this[_0x165c('0x75')]=!0x1),_0x22b955&&_0xb2381e[_0x165c('0x5f')](_0x22b955,this),_0x4aea43;}[_0x165c('0xb')](_0x3d72f6,_0x56ab67=null,_0xb37ecc={}){if(_0x3d72f6[_0x165c('0xbe')])return null;const _0x3ab9ee=this['editor'][_0x165c('0x7b')]['get'](_0x165c('0xfa'))['me'];for(const {suggestion:_0x3b7468,meta:_0x31ee12}of this[_0x165c('0xeb')](_0x3d72f6,_0x165c('0xa2')))if(_0x31ee12[_0x165c('0x10a')]){if(!_0x31ee12[_0x165c('0x9')]){if(_0x31ee12['containsRangeInObject']){if(!this[_0x165c('0x116')]||!Ot(_0x3b7468,_0xb37ecc))continue;return _0x3b7468;}if(Ot(_0x3b7468,_0xb37ecc))return _0x3b7468;this['_breakSuggestionMarker'](_0x3b7468,_0x3d72f6[_0x165c('0x113')],_0x3d72f6[_0x165c('0x5')]);break;}if(_0x56ab67==_0x3b7468['subType']&&Ot(_0x3b7468,_0xb37ecc)){const _0x333d7a=_0x3b7468['getFirstRange']();return _0x333d7a[_0x165c('0x113')][_0x165c('0xd7')](_0x3d72f6[_0x165c('0x5')])?this['_setSuggestionRange'](_0x3b7468,this[_0x165c('0x58')][_0x165c('0x140')](_0x3d72f6[_0x165c('0x113')],_0x333d7a['end'])):this['_setSuggestionRange'](_0x3b7468,this[_0x165c('0x58')]['createRange'](_0x333d7a['start'],_0x3d72f6[_0x165c('0x5')])),_0x3b7468;}}const _0x3cfdf9=_0x45f81c(),_0x63be43=_0x3ab9ee['id'],_0x553a73=_0x56ab67?_0x165c('0x53')+_0x56ab67:_0x165c('0xa2'),_0x5873d6=this[_0x165c('0xb9')]({'id':_0x3cfdf9,'type':_0x553a73,'createdAt':new Date(),'authorId':_0x63be43,'attributes':_0xb37ecc});return this[_0x165c('0x50')](_0x553a73,_0x3cfdf9,_0x63be43,_0x3d72f6),_0x5873d6;}['markMultiRangeInsertion'](_0x290ba3,_0x1a5a93=_0x165c('0x10c'),_0x3182c5={}){const _0x2bfa17=this[_0x165c('0x6d')][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'],_0x385f55=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0xa2'),_0x1a5a93,_0x165c('0x1c'));for(const _0x3094c5 of this[_0x165c('0xb2')]())if(_0x3094c5['author']['id']==_0x2bfa17['id']&&'insertion'==_0x3094c5['type']&&_0x3094c5[_0x165c('0x142')]==_0x1a5a93&&Ot(_0x3094c5,_0x3182c5)&&(_0x385f55(_0x3094c5['getRanges'](),_0x290ba3)||_0x385f55(_0x290ba3,_0x3094c5[_0x165c('0x6b')]()))){for(const _0x14dc09 of _0x290ba3)_0x3094c5[_0x165c('0x128')](_0x14dc09);return _0x3094c5;}for(const {suggestion:_0x33070f,meta:_0x3e8137}of this[_0x165c('0xeb')](_0x290ba3,'insertion')){if(!_0x3e8137[_0x165c('0x10a')])continue;if(!this['_mergeNestedSuggestions']&&_0x3e8137[_0x165c('0xbb')])continue;if(!Ot(_0x33070f,_0x3182c5))continue;let _0x4a4d10=!0x0;for(const _0x25e659 of _0x33070f['getRanges']())for(const _0x2888ef of _0x290ba3)if(!_0x25e659[_0x165c('0x27')](_0x2888ef)){_0x4a4d10=!0x1;break;}if(_0x4a4d10)return _0x33070f;}const _0x25f312=_0x45f81c(),_0x59fcae=_0x2bfa17['id'],_0x1ab503='insertion:'+_0x1a5a93,_0x26cc95=this[_0x165c('0xb9')]({'id':_0x25f312,'type':_0x1ab503,'createdAt':new Date(),'authorId':_0x59fcae,'attributes':_0x3182c5});for(const _0x69ae77 of _0x290ba3)this[_0x165c('0x50')](_0x1ab503,_0x25f312,_0x59fcae,_0x69ae77,_0x46695f[_0x165c('0x119')]());return _0x26cc95;}[_0x165c('0x130')](_0x2b368e,_0x88c73d,_0x29de74=null,_0x329ce9={}){if(_0x29de74=_0x29de74||Nt(_0x88c73d),_0x2b368e[_0x165c('0xbe')])return null;if(_0x165c('0x8f')===this[_0x165c('0x106')]){const _0x27e37f=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0xe'),_0x29de74,'accept');return this[_0x165c('0xcc')](()=>_0x27e37f([_0x2b368e],_0x88c73d,_0x329ce9)),null;}const _0x355676=this[_0x165c('0x6d')][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'],_0x566a85=[];if('always'!==this[_0x165c('0x106')])for(const {suggestion:_0x3c0ff9,meta:_0xdc1b60}of this[_0x165c('0xeb')](_0x2b368e,_0x165c('0xa2')))_0xdc1b60[_0x165c('0x10a')]&&!_0xdc1b60[_0x165c('0xb4')]&&_0x566a85[_0x165c('0x32')](..._0x3c0ff9[_0x165c('0x6b')]());const _0x6f16aa=function(_0xe24b89,_0x28e817){const _0xa9965b=[];for(const _0x263127 of _0x28e817){const _0x106517=_0xe24b89['getIntersection'](_0x263127);_0x106517&&_0xa9965b[_0x165c('0x32')](_0x106517);}return _0xa9965b;}(_0x2b368e,_0x566a85),_0x3402f7=function(_0x859ecc,_0x5431ec){const _0x1d30cb=[_0x859ecc];for(const _0x1e661f of _0x5431ec){let _0x58e043=0x0;for(;_0x58e043<_0x1d30cb[_0x165c('0x62')];){const _0x3b6473=_0x1d30cb[_0x58e043]['getDifference'](_0x1e661f);_0x1d30cb['splice'](_0x58e043,0x1,..._0x3b6473),_0x58e043+=_0x3b6473[_0x165c('0x62')];}}return _0x1d30cb;}(_0x2b368e,_0x566a85);_0x6f16aa[_0x165c('0x62')]&&this[_0x165c('0x58')][_0x165c('0x41')](()=>{for(const _0x208773 of _0x6f16aa){const _0x2b316a=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0xe'),_0x29de74,_0x165c('0x9d'));this[_0x165c('0xcc')](()=>_0x2b316a([_0x208773],_0x88c73d,_0x329ce9));}});for(const _0x14a262 of _0x3402f7){let _0x50176d=null,_0x26e864=_0x14a262['start'],_0x15c488=_0x14a262[_0x165c('0x5')];for(const {suggestion:_0x17ac15,meta:_0x20bc00}of this[_0x165c('0xeb')](_0x14a262,'formatInline')){if(!_0x20bc00[_0x165c('0x10a')])continue;if(_0x17ac15[_0x165c('0x142')]!=_0x29de74)continue;if(!Ot(_0x17ac15,_0x329ce9))continue;const _0x28735d=_0x17ac15[_0x165c('0x38')]();if(_0x28735d[_0x165c('0x27')](_0x14a262,!0x0))return null;_0x26e864=_0x26e864['isBefore'](_0x28735d['start'])?_0x26e864:_0x28735d[_0x165c('0x113')],_0x15c488=_0x15c488[_0x165c('0xe4')](_0x28735d[_0x165c('0x5')])?_0x15c488:_0x28735d[_0x165c('0x5')],_0x50176d?_0x28735d[_0x165c('0x113')][_0x165c('0x30')](_0x50176d['getFirstRange']()[_0x165c('0x113')])?(_0x50176d['removeMarkers'](),_0x50176d=_0x17ac15):_0x17ac15[_0x165c('0x120')]():_0x50176d=_0x17ac15;}const _0x15c7aa=this['_model'][_0x165c('0x140')](_0x26e864,_0x15c488);if(_0x50176d)this[_0x165c('0x37')](_0x50176d,_0x15c7aa);else{const _0xb8bbd6=_0x45f81c(),_0x521134=_0x355676['id'];this[_0x165c('0xb9')]({'id':_0xb8bbd6,'type':_0x165c('0xe2')+_0x29de74,'data':_0x88c73d,'createdAt':new Date(),'authorId':_0x521134,'attributes':_0x329ce9}),this[_0x165c('0x50')]('formatInline:'+_0x29de74,_0xb8bbd6,_0x521134,_0x15c7aa);}}return null;}['markBlockFormat'](_0x3f7650,_0xb62225,_0x5c774f=[],_0x382c08=null,_0x27fec2={}){_0xb62225['formatGroupId']||(_0xb62225[_0x165c('0x2d')]=_0xb62225['commandName']),_0xb62225[_0x165c('0x10e')]=_0x3f7650['is'](_0x165c('0x12c')),_0x382c08=_0x382c08||Nt(_0xb62225);const _0x4bd17e=_0x5c774f['map'](_0x7b7227=>jt(_0x7b7227,this[_0x165c('0x58')])),_0x10538b=_0x3f7650['is'](_0x165c('0x12c'))?_0x3f7650:jt(_0x3f7650,this[_0x165c('0x58')]);if('never'===this[_0x165c('0x106')]){const _0x2a139d=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0x47'),_0x382c08,_0x165c('0x9d'));return this[_0x165c('0xcc')](()=>_0x2a139d([_0x10538b],_0xb62225,_0x27fec2)),null;}_0x4bd17e[_0x165c('0x32')](_0x10538b);let _0x2f6f4e=!0x0;for(const _0x1de5c3 of _0x4bd17e)if(!this[_0x165c('0xf6')](_0x1de5c3)){_0x2f6f4e=!0x1;break;}if(_0x2f6f4e&&_0x165c('0x11b')!==this['_trackFormatChanges']){const _0x3fa504=this['_suggestionFactory']['getSuggestionCallback'](_0x165c('0x47'),_0x382c08,_0x165c('0x9d'));return this['forceDefaultExecution'](()=>_0x3fa504([_0x10538b],_0xb62225,_0x27fec2)),null;}let _0xb60310=null,_0xbbbfe=_0x10538b[_0x165c('0x113')],_0x47b11d=_0x10538b[_0x165c('0x5')];for(const {suggestion:_0xa6ed5a,meta:_0x150ed0}of this[_0x165c('0xeb')](_0x10538b,_0x165c('0x47'))){if(!_0x150ed0[_0x165c('0x10a')])continue;if(_0x150ed0['isNextTo']||_0x150ed0[_0x165c('0xbb')]||_0x150ed0[_0x165c('0xb4')])continue;if(_0xa6ed5a[_0x165c('0xca')][_0x165c('0x2d')]!=_0xb62225[_0x165c('0x2d')])continue;if(!Ot(_0xa6ed5a,_0x27fec2))continue;const _0x1ac592=_0xa6ed5a[_0x165c('0x38')]();if(_0xa6ed5a[_0x165c('0x142')]==_0x382c08){if(_0x1ac592[_0x165c('0x27')](_0x10538b,!0x0))return null;_0xbbbfe=_0xbbbfe[_0x165c('0x30')](_0x1ac592['start'])?_0xbbbfe:_0x1ac592['start'],_0x47b11d=_0x47b11d['isAfter'](_0x1ac592[_0x165c('0x5')])?_0x47b11d:_0x1ac592[_0x165c('0x5')],_0xb60310?_0x1ac592[_0x165c('0x113')][_0x165c('0x30')](_0xb60310[_0x165c('0x38')]()[_0x165c('0x113')])?(_0xb60310[_0x165c('0x120')](),_0xb60310=_0xa6ed5a):_0xa6ed5a['removeMarkers']():_0xb60310=_0xa6ed5a;}else{const _0x2458aa=_0x10538b[_0x165c('0x7c')](_0x1ac592);this['_cutOutSuggestionMarker'](_0xa6ed5a,_0x2458aa);}}const _0x411e8d=this['editor']['plugins'][_0x165c('0x64')](_0x165c('0xfa'))['me'],_0x49f084=_0x45f81c(),_0x32e85c=_0x411e8d['id'];if(_0xb60310)return this[_0x165c('0x37')](_0xb60310,this['_model']['createRange'](_0xbbbfe,_0x47b11d)),_0xb60310;{const _0xa5e486=this[_0x165c('0xb9')]({'id':_0x49f084,'type':_0x165c('0x79')+_0x382c08,'data':_0xb62225,'createdAt':new Date(),'authorId':_0x32e85c,'attributes':_0x27fec2});return this[_0x165c('0x50')](_0x165c('0x79')+_0x382c08,_0x49f084,_0x32e85c,this[_0x165c('0x58')][_0x165c('0x140')](_0xbbbfe,_0x47b11d)),_0xa5e486;}}[_0x165c('0x33')](_0x4d2503,_0x2cd730,_0x3bd6b7=[],_0x122121=null,_0xb60549={}){_0x2cd730[_0x165c('0x2d')]||(_0x2cd730[_0x165c('0x2d')]=_0x2cd730[_0x165c('0x12b')]);const _0x558693=_0x4d2503[0x0];_0x2cd730['multipleBlocks']=_0x558693['is']('range'),_0x122121=_0x122121||Nt(_0x2cd730);const _0x53aa60=_0x3bd6b7[_0x165c('0x13f')](_0x3b6187=>jt(_0x3b6187,this['_model'])),_0x1d183=_0x558693['is'](_0x165c('0x12c'))?_0x4d2503:_0x4d2503[_0x165c('0x13f')](_0x3b4754=>jt(_0x3b4754,this[_0x165c('0x58')]));if(_0x165c('0x8f')===this['_trackFormatChanges']){const _0x253258=this[_0x165c('0x115')]['getSuggestionCallback'](_0x165c('0x47'),_0x122121,_0x165c('0x9d'));return this[_0x165c('0xcc')](()=>_0x253258(_0x1d183,_0x2cd730,_0xb60549)),null;}_0x53aa60[_0x165c('0x32')](..._0x1d183);let _0x183c5d=!0x0;for(const _0x24e30e of _0x53aa60)if(!this[_0x165c('0xf6')](_0x24e30e)){_0x183c5d=!0x1;break;}if(_0x183c5d&&_0x165c('0x11b')!==this['_trackFormatChanges']){const _0x43e6e9=this[_0x165c('0x115')]['getSuggestionCallback']('formatBlock',_0x122121,_0x165c('0x9d'));return this['forceDefaultExecution'](()=>_0x43e6e9(_0x1d183,_0x2cd730,_0xb60549)),null;}const _0x26daa5=this[_0x165c('0x6d')][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'];for(const _0x16b001 of this[_0x165c('0xb2')]()){if(_0x16b001[_0x165c('0x13')]['id']!=_0x26daa5['id'])continue;if('formatBlock'!=_0x16b001[_0x165c('0x5b')]||_0x16b001[_0x165c('0xca')][_0x165c('0x2d')]!=_0x2cd730['formatGroupId'])continue;if(!Ot(_0x16b001,_0xb60549))continue;const _0x2c1601=_0x16b001[_0x165c('0x142')]==_0x122121;for(let _0x517396=0x0;_0x517396<_0x1d183[_0x165c('0x62')];_0x517396++){const _0xe4ca3d=_0x1d183[_0x517396];for(const _0x13d711 of _0x16b001[_0x165c('0x9a')]()){const _0xf97194=_0x13d711[_0x165c('0x44')]();if(_0xe4ca3d[_0x165c('0xd7')](_0xf97194)){_0x2c1601?(_0x1d183[_0x165c('0x39')](_0x517396,0x1),_0x517396--):_0x16b001[_0x165c('0xaf')](_0x13d711[_0x165c('0xbf')]);break;}}}}if(0x0==_0x1d183[_0x165c('0x62')])return null;const _0x2f4fd1=this['_suggestionFactory'][_0x165c('0x11d')](_0x165c('0x47'),_0x122121,'join');for(const _0x54c094 of this['getSuggestions']())if(_0x54c094[_0x165c('0x13')]['id']==_0x26daa5['id']&&_0x165c('0x47')==_0x54c094[_0x165c('0x5b')]&&_0x54c094[_0x165c('0xca')]['formatGroupId']==_0x2cd730[_0x165c('0x2d')]&&_0x54c094['subType']==_0x122121&&Ot(_0x54c094,_0xb60549)&&(_0x2f4fd1(_0x54c094[_0x165c('0x6b')](),_0x1d183)||_0x2f4fd1(_0x1d183,_0x54c094['getRanges']()))){for(const _0x14d9a2 of _0x1d183)_0x54c094[_0x165c('0x128')](_0x14d9a2);return _0x54c094;}const _0x1e6d5d=_0x45f81c(),_0x5582c2=_0x26daa5['id'],_0x4596e1=_0x165c('0x79')+_0x122121,_0x415806=this[_0x165c('0xb9')]({'id':_0x1e6d5d,'type':_0x4596e1,'data':_0x2cd730,'createdAt':new Date(),'authorId':_0x5582c2,'attributes':_0xb60549});for(const _0x46b2fc of _0x1d183)this['_addSuggestionMarker'](_0x4596e1,_0x1e6d5d,_0x5582c2,_0x46b2fc,_0x46695f[_0x165c('0x119')]());return _0x415806;}[_0x165c('0x112')](_0x37548d,_0xe025d8=null,_0x3e3984={}){if(_0x37548d[_0x165c('0xbe')])return null;const _0x3b4076=this[_0x165c('0x6d')][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'],_0x544c6d=new _0x3c45ef(_0x37548d[_0x165c('0x113')],_0x37548d[_0x165c('0x5')]);for(const {suggestion:_0x55d2a7,meta:_0x59da43}of this[_0x165c('0xeb')](_0x544c6d,'insertion'))if(_0x59da43[_0x165c('0x10a')]&&!_0x59da43[_0x165c('0x9')]){if(_0x55d2a7['isMultiRange']){const _0x1b7c56=_0x55d2a7[_0x165c('0x6b')]()['filter'](_0x178d50=>_0x165c('0xa')!=_0x178d50[_0x165c('0xc3')][_0x165c('0x101')]);_0x1b7c56[_0x165c('0xf3')](_0x55ac19=>_0x544c6d['containsRange'](_0x55ac19,!0x0))&&_0x55d2a7[_0x165c('0x17')]();if(_0x1b7c56[_0x165c('0xa9')](_0x3418f5=>_0x3418f5[_0x165c('0x27')](_0x544c6d,!0x0))){const _0x123c33=this['_suggestionFactory']['getSuggestionCallback'](_0x165c('0x88'),_0xe025d8,_0x165c('0x9d'));return this['forceDefaultExecution'](()=>_0x123c33([_0x544c6d],null,_0x3e3984)),null;}}else{const _0x337d7d=_0x544c6d[_0x165c('0x7c')](_0x55d2a7[_0x165c('0x38')]());null!==_0x337d7d&&_0x55d2a7[_0x165c('0x21')]([_0x337d7d],null,_0x3e3984);}}if(_0x544c6d[_0x165c('0xc4')](),_0x544c6d['isCollapsed']||_0x165c('0xa')==_0x544c6d[_0x165c('0xc3')][_0x165c('0x101')])return null;let _0x39c151=null,_0x56be58=_0x544c6d[_0x165c('0x113')],_0x1827af=_0x544c6d['end'];const _0x1b56a0=this[_0x165c('0xeb')](_0x544c6d,_0x165c('0x88'));for(const {suggestion:_0x1d4971,meta:_0x380bf8}of _0x1b56a0){const _0x53fa0a=this['_model']['createRange'](_0x56be58,_0x1827af);if(_0x380bf8[_0x165c('0x10a')]&&(this[_0x165c('0x116')]||!_0x380bf8[_0x165c('0xbb')]&&!_0x380bf8[_0x165c('0xb4')])){if(_0x1d4971['isMultiRange']){if(!Ot(_0x1d4971,_0x3e3984))continue;let _0x230225=!0x0;for(const _0x555d79 of _0x1d4971[_0x165c('0x6b')]()){if(_0x555d79[_0x165c('0x27')](_0x53fa0a,!0x0))return _0x1d4971;_0x53fa0a[_0x165c('0x27')](_0x555d79)||(_0x230225=!0x1);}_0x230225&&_0x1d4971[_0x165c('0x17')]();}else{const _0x4e3189=_0x1d4971[_0x165c('0x38')]();if(_0x4e3189[_0x165c('0x27')](_0x53fa0a,!0x0))return _0x1d4971;if(!Ot(_0x1d4971,_0x3e3984)){_0x53fa0a['containsRange'](_0x4e3189)?_0x1d4971[_0x165c('0x120')]():_0x4e3189['containsPosition'](_0x56be58)?_0x56be58=_0x4e3189['end']:_0x4e3189['containsPosition'](_0x1827af)&&(_0x1827af=_0x4e3189[_0x165c('0x113')]);continue;}_0x56be58=_0x56be58['isBefore'](_0x4e3189[_0x165c('0x113')])?_0x56be58:_0x4e3189[_0x165c('0x113')],_0x1827af=_0x1827af[_0x165c('0xe4')](_0x4e3189['end'])?_0x1827af:_0x4e3189[_0x165c('0x5')],_0x3e3984=Object['assign']({},_0x1d4971[_0x165c('0x12a')]),_0x39c151?_0x4e3189[_0x165c('0x113')][_0x165c('0x30')](_0x39c151[_0x165c('0x38')]()[_0x165c('0x113')])?(_0x39c151[_0x165c('0x120')](),_0x39c151=_0x1d4971):_0x1d4971[_0x165c('0x120')]():_0x39c151=_0x1d4971;}}}if(_0x39c151)return this[_0x165c('0x37')](_0x39c151,this[_0x165c('0x58')]['createRange'](_0x56be58,_0x1827af)),_0x39c151;{const _0x10aea1=_0x45f81c(),_0x5a39bf=this['_model']['createRange'](_0x56be58,_0x1827af),_0x46594a=_0x3b4076['id'],_0x408c38=_0xe025d8?'deletion:'+_0xe025d8:'deletion',_0x224941=this[_0x165c('0xb9')]({'id':_0x10aea1,'type':_0x408c38,'createdAt':new Date(),'authorId':_0x46594a,'attributes':_0x3e3984});return this[_0x165c('0x50')](_0x408c38,_0x10aea1,_0x46594a,_0x5a39bf),_0x224941;}}[_0x165c('0x8b')](_0x234d9d,_0x30b6b4=_0x165c('0x10c'),_0x18aeaa={}){const _0x54cefd=this[_0x165c('0x6d')][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'],_0x305b3a=_0x234d9d[_0x165c('0x13f')](_0x632f83=>new _0x3c45ef(_0x632f83[_0x165c('0x113')],_0x632f83[_0x165c('0x5')])),_0x273f9f=new Set();for(const {suggestion:_0x3c8071,meta:_0x453d25}of this[_0x165c('0xeb')](_0x305b3a,'insertion'))_0x453d25[_0x165c('0x10a')]&&!_0x453d25['isNextTo']&&_0x273f9f[_0x165c('0x92')](_0x3c8071);for(const _0x2e2bc0 of _0x273f9f)if(_0x2e2bc0['isMultiRange']){const _0x3c8c04=_0x2e2bc0[_0x165c('0x6b')]();(!_0x2e2bc0[_0x165c('0x12a')]||!_0x2e2bc0['attributes'][_0x165c('0x141')])&&(_0x3c8c04[_0x165c('0xf3')](_0x39c18d=>_0x305b3a[_0x165c('0xa9')](_0x4055b9=>_0x4055b9[_0x165c('0x27')](_0x39c18d,!0x0)))&&_0x2e2bc0['discard']());if(_0x305b3a[_0x165c('0xf3')](_0x5c10ad=>_0x3c8c04[_0x165c('0xa9')](_0x2881eb=>_0x2881eb[_0x165c('0x27')](_0x5c10ad,!0x0)))){const _0x2f1287=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0x88'),_0x30b6b4,'accept');return this[_0x165c('0xcc')](()=>_0x2f1287(_0x234d9d,null,_0x18aeaa)),null;}}else{const _0x1d58fc=_0x2e2bc0[_0x165c('0x38')]();_0x305b3a['some'](_0x37c8fb=>_0x37c8fb[_0x165c('0x27')](_0x1d58fc,!0x0))&&_0x2e2bc0[_0x165c('0x17')]();if(_0x305b3a[_0x165c('0xf3')](_0x4524b2=>_0x1d58fc[_0x165c('0x27')](_0x4524b2,!0x0))){const _0x54dc91=this[_0x165c('0x115')][_0x165c('0x11d')]('deletion',_0x30b6b4,_0x165c('0x9d'));return this['forceDefaultExecution'](()=>_0x54dc91(_0x305b3a,null,_0x18aeaa)),null;}}const _0x42c97c=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0x88'),_0x30b6b4,'join');let _0x585442=null;for(const _0xfc8bb7 of this['getSuggestions']())if(_0xfc8bb7['author']['id']==_0x54cefd['id']&&_0xfc8bb7[_0x165c('0x35')]&&'deletion'==_0xfc8bb7[_0x165c('0x5b')]&&_0xfc8bb7[_0x165c('0x142')]==_0x30b6b4&&Ot(_0xfc8bb7,_0x18aeaa)&&(_0x42c97c(_0xfc8bb7['getRanges'](),_0x305b3a)||_0x42c97c(_0x305b3a,_0xfc8bb7['getRanges']()))){if(_0x585442){if(_0xfc8bb7[_0x165c('0x26')]&&_0xfc8bb7[_0x165c('0x26')][_0x165c('0x62')])continue;for(const _0x34f714 of _0xfc8bb7['getRanges']())_0x585442[_0x165c('0x81')](_0x34f714)||_0x585442[_0x165c('0x128')](_0x34f714);_0xfc8bb7[_0x165c('0x120')]();}else{_0x585442=_0xfc8bb7;for(const _0xce833a of _0x305b3a)_0xfc8bb7[_0x165c('0x81')](_0xce833a)||_0xfc8bb7[_0x165c('0x128')](_0xce833a);}}if(_0x585442)return _0x585442;_0x273f9f['clear']();for(const {suggestion:_0x20e6f2,meta:_0x18634f}of this['_findSuggestions'](_0x305b3a,_0x165c('0x88')))_0x18634f[_0x165c('0x10a')]&&(this[_0x165c('0x116')]||!_0x18634f[_0x165c('0xbb')]&&!_0x18634f[_0x165c('0xb4')])&&Ot(_0x20e6f2,_0x18aeaa)&&_0x273f9f['add'](_0x20e6f2);for(const _0x402b07 of _0x273f9f){const _0x1b0227=_0x402b07[_0x165c('0x6b')]();if(!_0x18aeaa||!_0x18aeaa[_0x165c('0x141')]){if(_0x305b3a[_0x165c('0xf3')](_0x442797=>_0x1b0227['some'](_0xae6edb=>_0xae6edb[_0x165c('0x27')](_0x442797,!0x0))))return _0x402b07;}(!_0x402b07[_0x165c('0x12a')]||!_0x402b07[_0x165c('0x12a')][_0x165c('0x141')])&&(_0x1b0227[_0x165c('0xf3')](_0x5f6d1=>_0x305b3a['some'](_0x19ad47=>_0x19ad47[_0x165c('0x27')](_0x5f6d1,!0x0)))&&_0x402b07['discard']());}const _0x4b538e=_0x45f81c(),_0x2e7421=_0x54cefd['id'],_0x7cb5fe=_0x165c('0x5d')+_0x30b6b4,_0x125259=this[_0x165c('0xb9')]({'id':_0x4b538e,'type':_0x7cb5fe,'createdAt':new Date(),'authorId':_0x2e7421,'attributes':_0x18aeaa});for(const _0x2db8ad of _0x305b3a)_0x2db8ad['detach'](),_0x2db8ad[_0x165c('0xbe')]||_0x165c('0xa')==_0x2db8ad[_0x165c('0xc3')][_0x165c('0x101')]||this[_0x165c('0x50')](_0x7cb5fe,_0x4b538e,_0x2e7421,_0x2db8ad,_0x46695f['getMultiRangeId']());return _0x125259;}[_0x165c('0x37')](_0x2a8030,_0xbef432){const _0x5d2815=_0x2a8030[_0x165c('0x123')]();this['_model'][_0x165c('0x41')](_0x3d556e=>{_0x3d556e[_0x165c('0x2c')](_0x5d2815,{'range':_0xbef432});});}[_0x165c('0xcb')](_0x338368){const _0x27a659=_0x338368['id'],_0x2b7b13=this[_0x165c('0x6d')][_0x165c('0xab')][_0x165c('0x64')](_0x165c('0x16'));this['_commentsRepository']['hasCommentThread'](_0x27a659)||this['_commentsRepository'][_0x165c('0x2a')]({'channelId':_0x2b7b13,'threadId':_0x27a659,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c7801=this[_0x165c('0xed')][_0x165c('0xe6')](_0x27a659);_0x2c7801[_0x165c('0x13a')](_0x165c('0xe7')),_0x2c7801[_0x165c('0xe7')]=!0x1,_0x338368['commentThread']=_0x2c7801;}['_checkSuggestionCorrectness'](_0x4c633f,_0x358e71,_0x1215dd,_0x1d86b1){if(_0x4c633f['type']!=_0x358e71||_0x4c633f[_0x165c('0x142')]!=_0x1215dd||_0x4c633f['creator']['id']!=_0x1d86b1)throw this[_0x165c('0x6d')][_0x165c('0x8')]('track-changes-suggestion-data-mismatch'),new _0xb2381e(_0x165c('0x2e'),this);}[_0x165c('0xc')](_0x2023ed,_0x5f1652){const _0x2bcc4=_0x2023ed['getFirstRange']();if(_0x5f1652[_0x165c('0xd7')](_0x2bcc4))_0x2023ed[_0x165c('0x120')]();else{if(_0x2bcc4[_0x165c('0x27')](_0x5f1652)){const _0xb7c716=this[_0x165c('0x58')][_0x165c('0x110')](_0x5f1652[_0x165c('0x113')]['nodeBefore'],'end');this[_0x165c('0x37')](_0x2023ed,this[_0x165c('0x58')][_0x165c('0x140')](_0x2bcc4[_0x165c('0x113')],_0xb7c716));const _0x4f7de6=_0x45f81c(),_0x3306ed=_0x2023ed[_0x165c('0x8c')]['id'],_0x3c83d4=_0x2023ed['type']+':'+_0x2023ed['subType'];this[_0x165c('0xb9')]({'id':_0x4f7de6,'type':_0x3c83d4,'createdAt':new Date(),'authorId':_0x3306ed,'data':_0x2023ed[_0x165c('0xca')],'attributes':_0x2023ed[_0x165c('0x12a')]});const _0x2488ac=this[_0x165c('0x58')]['createPositionAt'](_0x5f1652['end'][_0x165c('0xe5')],'after'),_0x24c9db=this[_0x165c('0x58')][_0x165c('0x140')](_0x2488ac,_0x2bcc4[_0x165c('0x5')]);this[_0x165c('0x50')](_0x3c83d4,_0x4f7de6,_0x3306ed,_0x24c9db);}else{if(_0x2bcc4['containsPosition'](_0x5f1652[_0x165c('0x113')])){const _0x255384=this[_0x165c('0x58')][_0x165c('0x110')](_0x5f1652[_0x165c('0x113')][_0x165c('0xd0')],'end');this[_0x165c('0x37')](_0x2023ed,this[_0x165c('0x58')][_0x165c('0x140')](_0x2bcc4[_0x165c('0x113')],_0x255384));}else{const _0x230ac0=this[_0x165c('0x58')][_0x165c('0x110')](_0x5f1652[_0x165c('0x5')][_0x165c('0xe5')],'after');this[_0x165c('0x37')](_0x2023ed,this[_0x165c('0x58')][_0x165c('0x140')](_0x230ac0,_0x2bcc4[_0x165c('0x5')]));}}}}['_rangeIsInLocalUserInsertion'](_0x22f714){for(const {suggestion:_0x5b4e7e,meta:_0x271bb4}of this[_0x165c('0xeb')](_0x22f714,_0x165c('0xa2'))){if(!_0x271bb4[_0x165c('0x10a')])continue;const _0x445e93=_0x5b4e7e[_0x165c('0x6b')]();for(const _0x23a8dc of _0x445e93)if(!_0x22f714[_0x165c('0xbc')](_0x23a8dc)[_0x165c('0x62')])return!0x0;}return!0x1;}[_0x165c('0x124')](_0x1e3ceb){const _0x13d5b5=this[_0x165c('0x6d')]['plugins'][_0x165c('0x64')](_0x165c('0xfa'))[_0x165c('0xa6')](_0x1e3ceb);if(!_0x13d5b5)throw new _0xb2381e('track-changes-user-not-found',this);return _0x13d5b5;}['_getExternalAuthor'](_0x29d057){const _0x140e41=this['editor'][_0x165c('0x7b')][_0x165c('0x64')]('Users'),_0x39d929=_0x15ab5f(_0x165c('0x105')+_0x29d057),_0x307b7c=_0x140e41['getUser'](_0x39d929);return _0x307b7c||_0x140e41[_0x165c('0x3d')]({'id':_0x39d929,'name':_0x29d057});}[_0x165c('0x137')](_0x5bddee,_0xc78122,_0x94476a,_0x120e88,_0x2cdcaa){const _0x38e143=this[_0x165c('0x124')](_0x120e88),_0x2bcdf3=this[_0x165c('0x115')][_0x165c('0x2')](_0x5bddee,_0xc78122,_0x94476a,_0x38e143,_0x2cdcaa,_0x5862a3=>this['_updateSuggestionData'](_0x94476a,{'attributes':_0x5862a3}));return this[_0x165c('0x4a')](_0x2bcdf3,'accept',()=>{this[_0x165c('0xb1')](_0x94476a,{'state':'accepted'});},{'priority':_0x165c('0xde')}),this[_0x165c('0x4a')](_0x2bcdf3,'discard',()=>{this[_0x165c('0xb1')](_0x94476a,{'state':'rejected'});},{'priority':_0x165c('0xde')}),this[_0x165c('0xa4')][_0x165c('0x69')](_0x94476a,_0x2bcdf3),this[_0x165c('0x11a')][_0x165c('0x69')](_0x2bcdf3,_0x165c('0x80')),_0x2bcdf3;}[_0x165c('0x4d')](_0x42fd70){const _0x421f73=_0x42fd70[_0x165c('0x7')](':');return{'group':_0x421f73[0x0],'type':_0x421f73[0x1],'subType':_0x421f73['length']>=0x5?_0x421f73[0x2]:null,'id':_0x421f73['length']<0x5?_0x421f73[0x2]:_0x421f73[0x3],'authorId':_0x421f73['length']<0x5?_0x421f73[0x3]:_0x421f73[0x4],'markerCount':0x6==_0x421f73[_0x165c('0x62')]?_0x421f73[0x5]:null};}[_0x165c('0x3f')](_0x593cce,_0x3f5cd2,_0x8f343b){const _0x1d1b1d=_0x593cce['getFirstRange'](),_0xd14ee6=_0x1d1b1d[_0x165c('0x113')],_0x147da6=_0x1d1b1d['end'];this[_0x165c('0x37')](_0x593cce,this[_0x165c('0x58')][_0x165c('0x140')](_0xd14ee6,_0x3f5cd2));const _0x263d52=_0x45f81c(),_0x3ad89b=_0x593cce[_0x165c('0x8c')]['id'],_0x1790ea=_0x593cce[_0x165c('0x5b')]+(_0x593cce[_0x165c('0x142')]?':'+_0x593cce['subType']:'');this[_0x165c('0xb9')]({'id':_0x263d52,'type':_0x1790ea,'createdAt':new Date(),'authorId':_0x3ad89b,'originalSuggestionId':_0x593cce['id'],'attributes':_0x593cce[_0x165c('0x12a')],'data':_0x593cce[_0x165c('0xca')]}),_0x165c('0x47')==_0x593cce['type']&&(_0x8f343b=this[_0x165c('0x58')][_0x165c('0x7d')](_0x8f343b[_0x165c('0xe5')])),this[_0x165c('0x50')](_0x1790ea,_0x263d52,_0x3ad89b,this['_model'][_0x165c('0x140')](_0x8f343b,_0x147da6));}[_0x165c('0xeb')](_0x507084,_0x38dd01=null){const _0xb0c909=[],_0x101ae9=this['editor'][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'];Array[_0x165c('0x14')](_0x507084)||(_0x507084=[_0x507084]);for(const _0x2e4950 of this[_0x165c('0xb2')]()){if(!_0x2e4950[_0x165c('0x35')])continue;if(_0x38dd01&&_0x2e4950[_0x165c('0x5b')]!=_0x38dd01)continue;let _0x1e5a84=!0x1;for(const _0x41ea67 of _0x2e4950[_0x165c('0x6b')]()){for(const _0x1811a9 of _0x507084){const _0x3336be=_0x1811a9[_0x165c('0x113')][_0x165c('0xd7')](_0x41ea67['end'])||_0x1811a9['end'][_0x165c('0xd7')](_0x41ea67['start']);if(_0x3336be||_0x1811a9['getIntersection'](_0x41ea67)){const _0x30655f=_0x1811a9['containsRange'](_0x41ea67)&&_t(this[_0x165c('0x58')]['schema'],_0x41ea67[_0x165c('0x113')],_0x1811a9),_0x5820b1=_0x41ea67[_0x165c('0x27')](_0x1811a9)&&_t(this[_0x165c('0x58')][_0x165c('0x6')],_0x1811a9[_0x165c('0x113')],_0x41ea67);_0xb0c909['push']({'suggestion':_0x2e4950,'meta':{'isOwn':_0x101ae9==_0x2e4950[_0x165c('0x13')],'isNextTo':_0x3336be,'isInsideObject':_0x30655f,'containsRangeInObject':_0x5820b1}}),_0x1e5a84=!0x0;break;}}if(_0x1e5a84)break;}}return _0xb0c909;}[_0x165c('0x50')](_0x26770e,_0x5dc0f5,_0x5ffafe,_0x5081f3,_0x29bcee){this[_0x165c('0x58')][_0x165c('0x41')](_0x3d53a3=>{let _0x3bdd46=_0x165c('0x29')+_0x26770e+':'+_0x5dc0f5+':'+_0x5ffafe;_0x29bcee&&(_0x3bdd46=_0x3bdd46+':'+_0x29bcee),_0x3d53a3[_0x165c('0x6c')](_0x3bdd46,{'range':_0x5081f3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x165c('0xaa')](_0x512133){const _0x4c81c7=_0x512133['previous'],_0x2d5bf8=_0x512133['next'];_0x512133[_0x165c('0xe8')]=null,null!=_0x4c81c7&&(_0x4c81c7[_0x165c('0x78')]=null),_0x512133[_0x165c('0x78')]=null,null!=_0x2d5bf8&&(_0x2d5bf8[_0x165c('0xe8')]=null),_0x165c('0x109')==this[_0x165c('0x11a')][_0x165c('0x64')](_0x512133)&&(this[_0x165c('0x11a')][_0x165c('0x69')](_0x512133,'removed'),this[_0x165c('0x60')]('suggestionUnloaded',_0x512133,_0x4c81c7,_0x2d5bf8));}[_0x165c('0xb9')](_0x1eb0b8){const _0x2369f6=_0x1eb0b8['id'],_0x2ed5e6=this[_0x165c('0x3')](_0x1eb0b8);if(this[_0x165c('0x3e')]&&this[_0x165c('0x3e')][_0x165c('0xf')]){const _0x2db15c=this['editor'][_0x165c('0x7b')]['get'](_0x165c('0xff')),_0x32f1e6=_0x2ed5e6[_0x165c('0xc7')],_0x497470=_0x2ed5e6[_0x165c('0x142')]?_0x2ed5e6['type']+':'+_0x2ed5e6['subType']:_0x2ed5e6[_0x165c('0x5b')],_0x3eb3ee=this[_0x165c('0x6d')][_0x165c('0x4e')],_0x382f0b=_0x2db15c[_0x165c('0x92')](_0x14a9fb(_0x3eb3ee,_0x165c('0xdf'))),_0x2e64b2={'id':_0x2369f6,'type':_0x497470,'hasComments':_0x32f1e6,'data':_0x1eb0b8[_0x165c('0xca')]||null,'originalSuggestionId':_0x1eb0b8[_0x165c('0x10b')]||null,'attributes':_0x2ed5e6[_0x165c('0x12a')]};this['_adapter']['addSuggestion'](_0x2e64b2)[_0x165c('0x8a')](_0x4e51ac=>{_0x2ed5e6[_0x165c('0xda')]=!0x0,_0x2db15c['remove'](_0x382f0b),_0x4e51ac&&_0x4e51ac['createdAt']&&(this['_suggestions'][_0x165c('0x64')](_0x2369f6)[_0x165c('0xa1')]=_0x4e51ac[_0x165c('0xa1')]);})['catch'](_0x44e407=>{throw _0x17f9a1(_0x165c('0xd6')),this[_0x165c('0x6d')][_0x165c('0xf7')][_0x165c('0x91')]({'isUndoable':!0x1},()=>{_0x2ed5e6[_0x165c('0x17')]();}),_0x2ed5e6[_0x165c('0xf2')](),this[_0x165c('0xa4')][_0x165c('0xe3')](_0x2ed5e6['id']),this[_0x165c('0x11a')][_0x165c('0xe3')](_0x2ed5e6),_0x44e407;});}return _0x2ed5e6;}[_0x165c('0xb1')](_0x2fd762,_0x16f223){const _0x5744ee=this[_0x165c('0x6d')][_0x165c('0x7b')]['get']('PendingActions'),_0x3152b1=this[_0x165c('0x121')](_0x2fd762);if(this[_0x165c('0x3e')]&&this[_0x165c('0x3e')]['updateSuggestion']){if(_0x3152b1[_0x165c('0xda')]){const _0x9ddaf8=_0x5744ee[_0x165c('0x92')](_0x14a9fb(this[_0x165c('0x6d')][_0x165c('0x4e')],_0x165c('0xdf')));this['_adapter']['updateSuggestion'](_0x2fd762,_0x16f223)[_0x165c('0x8a')](()=>{_0x5744ee['remove'](_0x9ddaf8);});}else _0x3152b1['on'](_0x165c('0xae'),()=>{this[_0x165c('0xb1')](_0x2fd762,_0x16f223);});}}[_0x165c('0x1')](_0x936c9c){if(!this[_0x165c('0x3e')]||!this[_0x165c('0x3e')][_0x165c('0x121')])throw new _0xb2381e('track-changes-adapter-missing-getsuggestion',this);return this[_0x165c('0x3e')][_0x165c('0x121')](_0x936c9c);}['_handleNewSuggestionMarker'](_0x214a01){const {id:_0x279cd6,type:_0x71c1f9,subType:_0x5b045c,authorId:_0x10a118}=this['_splitMarkerName'](_0x214a01),_0x195a57=this[_0x165c('0xa4')][_0x165c('0x64')](_0x279cd6)||this[_0x165c('0x137')](_0x71c1f9,_0x5b045c,_0x279cd6,_0x10a118,{});switch(this[_0x165c('0x0')](_0x195a57,_0x71c1f9,_0x5b045c,_0x10a118),this[_0x165c('0x11a')][_0x165c('0x64')](_0x195a57)){case _0x165c('0x80'):this['_getSuggestionData'](_0x279cd6)[_0x165c('0x8a')](_0x409bed=>{let _0x3b23a6=Promise['resolve']();_0x409bed[_0x165c('0xc7')]&&(_0x3b23a6=this['_commentsRepository'][_0x165c('0x5e')]({'channelId':this[_0x165c('0x6d')][_0x165c('0xab')][_0x165c('0x64')](_0x165c('0x16')),'threadId':_0x279cd6})),_0x3b23a6[_0x165c('0x8a')](()=>{this['addSuggestionData'](_0x409bed)[_0x165c('0xda')]=!0x0;});}),this[_0x165c('0x11a')]['set'](_0x195a57,_0x165c('0x93'));break;case'removed':this[_0x165c('0xb1')](_0x279cd6,{'state':'open'});case _0x165c('0x3b'):this[_0x165c('0x11a')][_0x165c('0x69')](_0x195a57,_0x165c('0x109')),this[_0x165c('0x60')](_0x165c('0x63'),_0x195a57);break;case _0x165c('0x109'):this[_0x165c('0x60')](_0x165c('0xa8'),_0x195a57);}return _0x195a57[_0x165c('0x107')](_0x214a01),_0x195a57;}[_0x165c('0x13e')](_0xab8afe){const _0xaed081=Array[_0x165c('0x97')](_0xab8afe)['filter'](_0x139572=>!_0x139572[_0x165c('0x8d')]),_0xe711e9=this[_0x165c('0xb2')]({'skipNotAttached':!0x0})[_0x165c('0x25')](_0x32b9c8=>!_0x32b9c8[_0x165c('0x8d')]),_0x134053=_0xe711e9[_0x165c('0x25')](_0x1a99f6=>!_0xab8afe[_0x165c('0xec')](_0x1a99f6)),_0x393d8c=new Map(_0xe711e9[_0x165c('0x13f')](_0x586d4a=>[_0x586d4a,this['_suggestionFactory'][_0x165c('0x11d')](_0x586d4a[_0x165c('0x5b')],_0x586d4a['subType'],'chain')])),_0x4f3cad=new Map(_0xe711e9[_0x165c('0x13f')](_0x53909c=>[_0x53909c,_0x53909c['getFirstRange']()])),_0x2db9a6=new Set(),_0x1f1463=new Set();for(let _0x46253f=0x0;_0x46253f<_0xaed081[_0x165c('0x62')];_0x46253f++)_0x50756b(_0xaed081[_0x46253f],_0xaed081,_0x46253f+0x1);for(let _0x3848d3=0x0;_0x3848d3<_0xaed081[_0x165c('0x62')];_0x3848d3++)_0x50756b(_0xaed081[_0x3848d3],_0x134053,0x0);for(let _0x1d569e=0x0;_0x1d569e<_0xaed081['length'];_0x1d569e++){const _0x5a8575=_0xaed081[_0x1d569e];!_0x1f1463[_0x165c('0xec')](_0x5a8575)&&_0x5a8575['previous']&&(_0x5a8575[_0x165c('0xe8')][_0x165c('0x78')]===_0x5a8575&&(_0x5a8575[_0x165c('0xe8')][_0x165c('0x78')]=null),_0x5a8575[_0x165c('0xe8')]=null),!_0x2db9a6[_0x165c('0xec')](_0x5a8575)&&_0x5a8575[_0x165c('0x78')]&&(_0x5a8575[_0x165c('0x78')][_0x165c('0xe8')]===_0x5a8575&&(_0x5a8575[_0x165c('0x78')][_0x165c('0xe8')]=null),_0x5a8575['next']=null);}function _0x50756b(_0x5c3a15,_0x36c7c0,_0x385071){for(let _0x55fec2=_0x385071;_0x55fec2<_0x36c7c0['length'];_0x55fec2++){const _0x113f04=_0xf4b03e(_0x5c3a15,_0x36c7c0[_0x55fec2]);_0x113f04&&(_0x113f04[0x0]['next']=_0x113f04[0x1],_0x113f04[0x1]['previous']=_0x113f04[0x0],_0x2db9a6[_0x165c('0x92')](_0x113f04[0x0]),_0x1f1463[_0x165c('0x92')](_0x113f04[0x1]));}}function _0xf4b03e(_0x2e9de0,_0x253712){if(_0x2e9de0[_0x165c('0x13')]['id']!==_0x253712[_0x165c('0x13')]['id'])return null;const _0x256ec7=_0x393d8c['get'](_0x2e9de0)(_0x2e9de0,_0x253712,_0x4f3cad['get'](_0x2e9de0),_0x4f3cad['get'](_0x253712));if(!_0x256ec7)return null;return _0x393d8c['get'](_0x253712)(_0x2e9de0,_0x253712,_0x4f3cad[_0x165c('0x64')](_0x2e9de0),_0x4f3cad[_0x165c('0x64')](_0x253712))?_0x256ec7[0x1][_0x165c('0x26')]&&_0x256ec7[0x1][_0x165c('0x26')][_0x165c('0x62')]?null:_0x256ec7:null;}}['_joinWithAdjacentSuggestions'](_0x5d4dd2){const _0x14bf26=Array[_0x165c('0x97')](_0x5d4dd2),_0x464698=this[_0x165c('0xb2')]({'skipNotAttached':!0x0}),_0x51aa3d=_0x464698[_0x165c('0x25')](_0x44ebe4=>!_0x5d4dd2[_0x165c('0xec')](_0x44ebe4)),_0xad7234=new Map(_0x14bf26['map'](_0x1d5d82=>[_0x1d5d82,this['_suggestionFactory']['getSuggestionCallback'](_0x1d5d82['type'],_0x1d5d82[_0x165c('0x142')],'join')])),_0x59c968=new Map(_0x464698[_0x165c('0x13f')](_0x1399fb=>[_0x1399fb,_0x1399fb[_0x165c('0x6b')]()]));for(let _0x334c57=0x0;_0x334c57<_0x14bf26[_0x165c('0x62')];_0x334c57++){if(_0x33b206(this,_0x14bf26[_0x334c57],_0x14bf26,_0x334c57+0x1))return!0x0;}for(let _0x49822b=0x0;_0x49822b<_0x14bf26['length'];_0x49822b++){if(_0x33b206(this,_0x14bf26[_0x49822b],_0x51aa3d,0x0))return!0x0;}return!0x1;function _0x33b206(_0x2c7b82,_0x526395,_0xd4811d,_0x4814d8){for(let _0xbd834e=_0x4814d8;_0xbd834e<_0xd4811d['length'];_0xbd834e++){const _0x5ccd67=_0xd4811d[_0xbd834e];if(_0x5ccd67[_0x165c('0x5b')]!==_0x526395[_0x165c('0x5b')]||_0x5ccd67[_0x165c('0x13')]['id']!==_0x526395['author']['id']||_0x5ccd67[_0x165c('0x142')]!==_0x526395['subType'])continue;if(!Ut(_0x526395,_0x5ccd67))continue;const _0x5268f1=_0xad7234['get'](_0x526395),_0x30127f=_0x59c968[_0x165c('0x64')](_0x526395),_0x377929=_0x59c968['get'](_0x5ccd67),_0x37f580=_0x526395[_0x165c('0x26')]&&_0x526395[_0x165c('0x26')][_0x165c('0x62')],_0x3e14b6=_0x5ccd67[_0x165c('0x26')]&&_0x5ccd67[_0x165c('0x26')][_0x165c('0x62')];if(!_0x37f580&&_0x5268f1(_0x377929,_0x30127f))return _0x2c7b82[_0x165c('0xfe')](_0x5ccd67,_0x526395),_0x59c968[_0x165c('0xe3')](_0x526395),!0x0;if(!_0x3e14b6&&_0x5268f1(_0x30127f,_0x377929))return _0x2c7b82[_0x165c('0xfe')](_0x526395,_0x5ccd67),_0x59c968['delete'](_0x5ccd67),!0x0;}return!0x1;}}[_0x165c('0xfe')](_0xa45c7,_0x2aad4a){if(_0xa45c7[_0x165c('0x8d')])for(const _0x140ce2 of _0x2aad4a['getRanges']())_0xa45c7[_0x165c('0x128')](_0x140ce2);else{const _0x2f0881=_0x2aad4a[_0x165c('0x38')]()['end'];this['_setSuggestionRange'](_0xa45c7,this[_0x165c('0x58')][_0x165c('0x140')](_0xa45c7[_0x165c('0x38')]()[_0x165c('0x113')],_0x2f0881));}_0x2aad4a[_0x165c('0x120')]();}}class Bt{constructor(_0x13be1a){this[_0x165c('0x46')]=_0x13be1a,this['_model']=_0x13be1a[_0x165c('0xf7')],this[_0x165c('0x22')]=new Map(),this[_0x165c('0x84')]=new Map(),this['_registerDefaultCallbacks']();}[_0x165c('0x2')](_0x168322,_0x3051ff,_0x2ad434,_0x3078b9,_0x31c14b,_0x3910d6){return new _0x46695f(this[_0x165c('0x58')],{'type':_0x168322,'subType':_0x3051ff,'id':_0x2ad434,'author':_0x3078b9,'creator':_0x3078b9,'attributes':_0x31c14b,'onAttributesChange':_0x3910d6,'onAccept':(..._0x579095)=>this[_0x165c('0x11d')](_0x168322,_0x3051ff,_0x165c('0x9d'))(..._0x579095),'onDiscard':(..._0x5cb69f)=>this[_0x165c('0x11d')](_0x168322,_0x3051ff,_0x165c('0x17'))(..._0x5cb69f)});}[_0x165c('0x71')](_0x91bcea,_0x2bd5ec,_0x473cce,_0x3ef26f){const _0x333be5=_0x91bcea+':'+_0x2bd5ec+':'+_0x473cce;this[_0x165c('0x22')]['set'](_0x333be5,_0x3ef26f);}[_0x165c('0x11d')](_0x3da38e,_0x2cb82a,_0x55abb9){const _0x2caa14=_0x3da38e+':'+_0x2cb82a+':'+_0x55abb9;return this['_customCallbacks'][_0x165c('0x64')](_0x2caa14)||this[_0x165c('0x84')]['get'](_0x3da38e+':'+_0x55abb9);}['_registerDefaultCallbacks'](){const _0x55f9de=()=>!0x1,_0x235d36=_0x134997=>{_0x134997[_0x165c('0x96')]((_0x33a176,_0x2941fd)=>_0x33a176['start'][_0x165c('0x30')](_0x2941fd[_0x165c('0x113')])?0x1:-0x1),this[_0x165c('0x58')]['change'](_0x480921=>{for(const _0x1121cd of _0x134997){let _0x49a694;_0x49a694=_0x1121cd['end'][_0x165c('0xe0')]&&_0x1121cd['end'][_0x165c('0xe5')]==_0x1121cd[_0x165c('0x113')]['nodeAfter']?_0x480921[_0x165c('0x56')](_0x1121cd['start']['nodeAfter'],'on'):_0x480921[_0x165c('0x56')](_0x1121cd),this[_0x165c('0x58')][_0x165c('0x7e')](_0x49a694,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf7dad2=(_0x22a721,_0x5a2575)=>{this['_model'][_0x165c('0x41')](_0x2cd343=>{const {commandName:_0x5be08c,commandParams:_0x54108b=[]}=_0x5a2575,_0x5e1169=_0x22a721[_0x165c('0x13f')](_0x23a457=>(Mt(_0x23a457)&&(_0x23a457=this[_0x165c('0x58')][_0x165c('0x140')](_0x23a457['end'])),_0x23a457))[_0x165c('0x25')](_0x2300d0=>_0x165c('0xa')!==_0x2300d0['root'][_0x165c('0x101')]);if(_0x5e1169[_0x165c('0x62')]<0x1)return;const _0x21006f=Array['from'](this[_0x165c('0x58')]['document']['selection'][_0x165c('0x6b')]())['map'](_0x4e44d2=>_0x3c45ef[_0x165c('0x11c')](_0x4e44d2));_0x2cd343['setSelection'](_0x5e1169);for(const _0x209f19 of this['_editor'][_0x165c('0x98')][_0x165c('0x98')]())_0x209f19[_0x165c('0xe9')]();_0x54108b[_0x165c('0x32')]({'forceDefaultExecution':!0x0}),this[_0x165c('0x46')][_0x165c('0x9e')](_0x5be08c,..._0x54108b);const _0x28ad8d=_0x21006f[_0x165c('0x25')](_0x23a745=>_0x165c('0xa')!=_0x23a745[_0x165c('0xc3')][_0x165c('0x101')]);_0x28ad8d[_0x165c('0x62')]>0x0&&_0x2cd343[_0x165c('0xbd')](_0x28ad8d);for(const _0x5589cf of _0x21006f)_0x5589cf[_0x165c('0xc4')]();});},_0x19adf5=(_0x3e8b63,_0x4e7b53)=>0x1==_0x3e8b63[_0x165c('0x62')]&&0x1==_0x4e7b53[_0x165c('0x62')]&&_0x3e8b63[0x0][_0x165c('0x5')][_0x165c('0xd7')](_0x4e7b53[0x0][_0x165c('0x113')]),_0x173f72=(_0x21d45c,_0x48cd40,_0x4fcb91,_0x5c241a)=>xt(_0x21d45c,_0x48cd40,_0x4fcb91,_0x5c241a,this[_0x165c('0x58')])?[_0x21d45c,_0x48cd40]:xt(_0x48cd40,_0x21d45c,_0x5c241a,_0x4fcb91,this[_0x165c('0x58')])?[_0x48cd40,_0x21d45c]:null;this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0xf1'),_0x55f9de),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0xa0'),_0x235d36),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x51'),_0x19adf5),this['_defaultCallbacks']['set']('insertion:chain',_0x173f72),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0xf5'),_0x235d36),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0xcf'),_0x55f9de),this[_0x165c('0x84')][_0x165c('0x69')]('deletion:join',_0x19adf5),this[_0x165c('0x84')]['set'](_0x165c('0x19'),_0x173f72),this[_0x165c('0x84')]['set']('formatInline:accept',_0xf7dad2),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0xc9'),_0x55f9de),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x4f'),_0x19adf5),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x114'),_0x55f9de),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x23'),_0xf7dad2),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x5c'),_0x55f9de),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x72'),_0x19adf5),this[_0x165c('0x84')][_0x165c('0x69')]('formatBlock:chain',_0x55f9de);}}function _t(_0x163138,_0x6b105d,_0x2ba416){for(const _0xd100c8 of _0x6b105d[_0x165c('0xe5')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd100c8[_0x165c('0xc3')]==_0xd100c8)return!0x1;if(!_0x2ba416[_0x165c('0x132')](_0xd100c8))return!0x1;if(_0x163138['isObject'](_0xd100c8)||_0x163138['isLimit'](_0xd100c8))return!0x0;}return!0x1;}function Mt(_0x577d40){return _0x577d40[_0x165c('0x5')]['parent']==_0x577d40[_0x165c('0x113')]['nodeAfter']&&_0x577d40[_0x165c('0x5')][_0x165c('0x11')];}function $t(_0x2921d2,_0x54804f,_0x7f739e,_0x24c13c){const _0x4dc1b7=_0x238728=>!_0x238728[_0x165c('0x135')]['is'](_0x165c('0x1e'))&&!_0x24c13c[_0x165c('0x42')](_0x238728[_0x165c('0x135')]),_0x298142=_0x2921d2[_0x165c('0x113')][_0x165c('0x55')](_0x4dc1b7),_0x52cc04=_0x2921d2[_0x165c('0x5')][_0x165c('0x55')](_0x4dc1b7,{'direction':_0x165c('0x85')});return(!_0x2921d2[_0x165c('0x113')][_0x165c('0xd7')](_0x298142)||!_0x2921d2[_0x165c('0x5')][_0x165c('0xd7')](_0x52cc04))&&(_0x298142[_0x165c('0x30')](_0x52cc04)?_0x7f739e[_0x165c('0x2c')](_0x54804f,{'range':_0x7f739e[_0x165c('0x140')](_0x298142,_0x52cc04)}):_0x7f739e[_0x165c('0xaf')](_0x54804f),!0x0);}function Nt(_0x154d36){return _0x15ab5f(_0x154d36);}function Rt(_0x3db48d){const _0x9368f=_0x3db48d[_0x165c('0x113')][_0x165c('0xa3')];return _0x9368f&&_0x9368f['is']('element');}function jt(_0x224929,_0x3377ed){const _0x456a9c=_0x3377ed[_0x165c('0x6')][_0x165c('0x42')](_0x224929)||_0x3377ed[_0x165c('0x6')][_0x165c('0x68')](_0x224929);return _0x3377ed[_0x165c('0x140')](_0x3377ed[_0x165c('0x110')](_0x224929,_0x165c('0x48')),_0x456a9c?_0x3377ed[_0x165c('0x5a')](_0x224929):_0x3377ed[_0x165c('0x110')](_0x224929,'end'));}function xt(_0x567f85,_0x343ea3,_0x492f45,_0x5009c4,_0x46d746){if(!Ut(_0x567f85,_0x343ea3))return!0x1;if(_0x492f45['end']['isEqual'](_0x5009c4['start']))return!0x0;if(_0x567f85[_0x165c('0x5b')]!=_0x343ea3[_0x165c('0x5b')])return!0x1;if(!_0x492f45[_0x165c('0x5')][_0x165c('0x13c')](_0x5009c4['start']))return!0x1;const _0x9aaeed=_0x46d746['createRange'](_0x492f45[_0x165c('0x5')],_0x5009c4[_0x165c('0x113')])[_0x165c('0x126')]();for(const _0x543833 of _0x9aaeed)if([_0x165c('0xfc'),_0x165c('0x40')][_0x165c('0x18')](_0x543833[_0x165c('0x5b')])&&_0x46d746['schema'][_0x165c('0xc2')](_0x543833['item']))return!0x1;return!0x0;}function Ut(_0x29d43b,_0x31b7aa){return!(!_0x29d43b[_0x165c('0x66')]||!_0x31b7aa['_isDataLoaded'])&&_0x2a10e9(_0x29d43b['attributes'],_0x31b7aa[_0x165c('0x12a')]);}function Ot(_0x3a3dc2,_0x4ce55f){const _0x306087=Et(_0x3a3dc2[_0x165c('0x12a')]),_0xe7485=Et(_0x4ce55f);if(!_0x3a3dc2[_0x165c('0x66')])return!0x1;for(const _0x4bd676 of Object[_0x165c('0x10d')](_0xe7485))if(!_0x2a10e9(_0x306087[_0x4bd676],_0xe7485[_0x4bd676]))return!0x1;return!0x0;}function Et(_0x28bad5){const _0x5b0608=Object[_0x165c('0x100')]({},_0x28bad5);return delete _0x5b0608[_0x165c('0x141')],delete _0x5b0608[_0x165c('0x12f')],_0x5b0608;}
23
+ const _0x53c4=['never','has','isMultiRange','getMultiRangeId','detach','after','removeMarker','insertion:','insert','editor','ck-suggestion-marker','insertion','_cutOutSuggestionMarker','originalSuggestionId','$textProxy','change','getNearestSelectionRange','notReady','filter','containerElement','writer','bindElementToMarker','_createSuggestion','multipleBlocks','data-suggestion','buildSuggestion','forceDefaultExecution','hasComments','includes','start','fromRange','isBlock','formatBlock:','suggestionChanged','ck-suggestion-marker--active','discardSuggestion','multi','_getSuggestionData','showSuggestionHighlights','isSelectable','_suggestionFactory','formatGroupId','registerPostFixer','formatBlock:discard','PendingActions','commandName','open','_isDataLoaded','removeComment','fire','consume','upcast','nodeAfter','getCommentThread','_enabledCommands','updateSuggestion','createElement','PENDING_ACTION_SUGGESTION','data','containsRange','_addSuggestionMarker','acceptSelectedSuggestions','batch','marker-count','isAfter','oldRange','item','accepted','keys','enableCommand','remove','editingDowncast','getAttribute','_getAuthorFromId','tablePasteChainId','range','deletion:discard','targetPosition','suggestion-type','getRanges','isNextTo','deletion','get','_updateSuggestionData','fromCharCode','createPositionAfter','assign','from','createdAt','widget','name','addMarker:suggestion:formatBlock','acceptSuggestion','isDocumentOperation','$graveyard','attributes','change:activeMarkers','activeMarkers','authoredAt','track-changes-adapter-already-set','insertion:discard','addComment','formatInline:accept','every','_editor','_refreshSuggestionsChain','addRange','markerToData','acceptAllSuggestions','map','dataToMarker','stopListening','split','_mergeNestedSuggestions','addMarker:suggestion','push','registerCustomCallback','$marker','getChangedMarkers','author','add','track-changes-suggestion-not-found','model','removeMarker:suggestion:formatBlock','createRange','locale','markDeletion','chain','removeClass','low','hasSuggestion','removed','insertion:join','_adapter','adapter','addSuggestion','parent','documentSelection','deletion:join','plugins','suggestion:','getLastMatchingPosition','mapper','@external','high','rethrowUnexpectedError','subType','ck-suggestion-marker-','_getExternalAuthor','discardAllSuggestions','options','removeAttribute','_splitMarkerName','value','markBlockFormat','return','isObject','backward','commands','isTouching','containsRangeInObject','resolve','getAllAdjacentSuggestions','unbind','_addThreadToSuggestion','_onDiscard','nodeBefore','_suggestionState','document','conversion','refresh','addSuggestionData','discard','isInContent','isOwn','rootName','getMarkers','end','insertContent','isInsideObject','delete','stop','set','_commentsRepository','_findSuggestions','isAtStart','before','trackChanges.trackFormatChanges','addHighlight','commentThread','howMany','deletion:chain','track-changes-command-not-found','values','creator','ck-suggestion-marker-formatBlock','newRange','addMarker','updateMarker','length','forward','size','clear','authorName','splitPosition','getShiftedBy','consumable','some','_suggestions','type','_setSuggestionData','addCommentThread','getCustomProperty','track-changes-suggestion-data-mismatch','formatInline:join','_breakSuggestionMarker','formatInline:chain','position','removeMarkers','normal','join','differ','isRemovable','setAttribute','substr','getIntersection','setSelection','isAtEnd','TrackChangesEditing','unbindElementFromMarkerName','splice','trackChangesCommand','isBefore','_registerDefaultCallbacks','getFirstRange','root','always','formatBlock:accept','dataDowncast','formatInline:discard','formatInline','_joinSuggestions','editing','_defaultCallbacks','change:data','getSuggestionCallback','config','_isForcedDefaultExecutionBlock','_rangeIsInLocalUserInsertion','trackChanges','group','markerName','markerToHighlight','_removeSuggestion','lowest','collaboration.channelId','formatBlock','addClass','getWalker','Users','setTo','previous','isLimit','elementStart','deletion:accept','_trackFormatChanges','then','execute','listenTo','_handleNewSuggestionMarker','track-changes-user-not-found','_checkSuggestionCorrectness','isEqual','enableReadOnlyMode','next','createSelection','getSuggestion','applyOperation','schema','_joinWithAdjacentSuggestions','suggestion','highest','addMarkerName','suggestionLoaded','markInsertion','element','rejected','elementToElement','toViewElement','isIntersectingWithRange','markMultiRangeDeletion','CommentsRepository','for','getSuggestions','createPositionBefore','deleteContent','elementEnd','containsPosition','skipNestingCheck','getDifference','isCollapsed','_descriptionFactory','formatBlock:join','isUndo','ready','markMultiRangeInsertion','markers','createRangeIn','getChanges','getUser','pluginName','trackChanges.mergeNestedSuggestions','isLocal','_model','accept','markMultiRangeBlockFormat','define','insertion:accept','selection','sort','_customCallbacks','createPositionAt','dataReady','_setSuggestionRange'];(function(_0x710fd4,_0x53c435){const _0xe0fe8b=function(_0x392e82){while(--_0x392e82){_0x710fd4['push'](_0x710fd4['shift']());}};_0xe0fe8b(++_0x53c435);}(_0x53c4,0x81));const _0xe0fe=function(_0x710fd4,_0x53c435){_0x710fd4=_0x710fd4-0x0;let _0xe0fe8b=_0x53c4[_0x710fd4];return _0xe0fe8b;};import{Plugin as _0x5ee91d,PendingActions as _0x4e5a37}from'ckeditor5/src/core';import{LiveRange as _0x1d44fa}from'ckeditor5/src/engine';import{CKEditorError as _0x27bad2,uid as _0x4d9555,priorities as _0x569d50,logWarning as _0x566570}from'ckeditor5/src/utils';import{toWidget as _0x322868}from'ckeditor5/src/widget';import{Users as _0x2c5f66,hashObject as _0x292271}from'ckeditor5-collaboration/src/collaboration-core';import _0x4da1ba from'./commands/trackchangescommand';import _0x3a9ef5 from'./commands/acceptsuggestioncommand';import _0x39d705 from'./commands/discardsuggestioncommand';import _0x34b0db from'./commands/executeonallsuggestionscommand';import _0x5c582c from'./commands/executeonselectedsuggestionscommand';import _0x7857d8 from'./suggestion';import _0x7d5af5 from'./suggestiondescriptionfactory';import _0x5e53b1 from'./integrations/aiassistant';import _0x4dc17d from'./integrations/alignment';import _0x1952cc from'./integrations/basicstyles';import _0x230a22 from'./integrations/blockquote';import _0x30296e from'./integrations/ckbox';import _0x528790 from'./integrations/codeblock';import _0x14e553 from'./integrations/comments';import _0x3290b0 from'./integrations/deletecommand';import _0x5e2609 from'./integrations/documentlist';import _0x5bd2de from'./integrations/entercommand';import _0x458825 from'./integrations/findandreplace';import _0x472912 from'./integrations/font';import _0x264db4 from'./integrations/formatpainter';import _0x288ffb from'./integrations/heading';import _0xcab58c from'./integrations/highlight';import _0x53816d from'./integrations/horizontalline';import _0x28811f from'./integrations/htmlembed';import _0x36bf97 from'./integrations/image';import _0x1f6c41 from'./integrations/imagereplace';import _0x505062 from'./integrations/importword';import _0x14b899 from'./integrations/indent';import _0xaf06d6 from'./integrations/inputcommand';import _0x487e68 from'./integrations/link';import _0xeb86aa from'./integrations/list';import _0x13286b from'./integrations/listproperties';import _0x4affeb from'./integrations/mediaembed';import _0x594769 from'./integrations/mention';import _0x47e02b from'./integrations/pagebreak';import _0x233312 from'./integrations/paragraph';import _0x22091f from'./integrations/removeformat';import _0x42e039 from'./integrations/restrictededitingmode';import _0x26ee01 from'./integrations/shiftentercommand';import _0x3059a0 from'./integrations/standardeditingmode';import _0x1380af from'./integrations/style';import _0x13f377 from'./integrations/table';import _0x530587 from'./integrations/tablemergesplit';import _0x135268 from'./integrations/tableheadings';import _0x561264 from'./integrations/tableclipboard';import _0x4cb37d from'./integrations/tablecolumnresize';import _0x4e79c2 from'./integrations/template';import _0x2620e4 from'./integrations/tableofcontents';import _0x201540 from'./integrations/title';import _0x42284c from'./integrations/undo';import{getTranslation as _0x4a8c73}from'./utils/common-translations';import _0x5ba7fc from'./integrations/tablecaption';import _0x27bae0 from'./integrations/documentlistproperties';import _0x3cd6eb from'./integrations/tableproperties';import{isEqual as _0x85de1d}from'lodash-es';export default class p extends _0x5ee91d{static get['requires'](){return[_0xe0fe('0xa2'),_0x2c5f66,_0x4e5a37,_0x5e53b1,_0x4dc17d,_0x1952cc,_0x230a22,_0x30296e,_0x528790,_0x14e553,_0x3290b0,_0x5e2609,_0x27bae0,_0x5bd2de,_0x458825,_0x472912,_0x264db4,_0x288ffb,_0xcab58c,_0x53816d,_0x28811f,_0x36bf97,_0x1f6c41,_0x505062,_0x14b899,_0xaf06d6,_0x487e68,_0xeb86aa,_0x13286b,_0x4affeb,_0x594769,_0x47e02b,_0x233312,_0x22091f,_0x42e039,_0x26ee01,_0x3059a0,_0x1380af,_0x13f377,_0x530587,_0x135268,_0x5ba7fc,_0x561264,_0x4cb37d,_0x2620e4,_0x3cd6eb,_0x4e79c2,_0x201540,_0x42284c];}static get[_0xe0fe('0xb5')](){return _0xe0fe('0x63');}constructor(_0x3fc5bb){function _0x2f0554(_0x519016){return _0x519016['map'](_0x594ba3=>String[_0xe0fe('0x117')](_0x594ba3))[_0xe0fe('0x5b')]('');}super(_0x3fc5bb),this[_0xe0fe('0x35')](_0xe0fe('0x124'),[]),this['on'](_0xe0fe('0x123'),(_0x4ef96a,_0xb5f236,_0xc69519,_0x1f9644)=>{this[_0xe0fe('0xb8')]['change'](()=>{for(const _0x4a9451 of[..._0x1f9644,..._0xc69519])this[_0xe0fe('0xb8')][_0xe0fe('0xb1')]['has'](_0x4a9451)&&_0x3fc5bb[_0xe0fe('0x71')]['reconvertMarker'](_0x4a9451);});}),this[_0xe0fe('0xac')]=new _0x7d5af5(this[_0xe0fe('0xcc')][_0xe0fe('0x13d')]['schema'],this[_0xe0fe('0xcc')]['locale']),this[_0xe0fe('0x4')]=null,this[_0xe0fe('0xeb')]=new Bt(this[_0xe0fe('0xcc')]),this[_0xe0fe('0x4f')]=new Map(),this[_0xe0fe('0x36')]=_0x3fc5bb[_0xe0fe('0xa')][_0xe0fe('0x115')]('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this[_0xe0fe('0xcc')]['model'],this[_0xe0fe('0x26')]=new WeakMap(),this[_0xe0fe('0x76')]=!0x1,_0x3fc5bb[_0xe0fe('0x75')]['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3fc5bb['config']['get'](_0xe0fe('0x3a')),_0x3fc5bb[_0xe0fe('0x75')][_0xe0fe('0xbb')](_0xe0fe('0xb6'),!0x0),this[_0xe0fe('0x134')]=_0x3fc5bb['config'][_0xe0fe('0x115')]('trackChanges.mergeNestedSuggestions'),this[_0xe0fe('0x66')]=new _0x4da1ba(_0x3fc5bb,this[_0xe0fe('0xf9')]),this[_0x2f0554([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2f0554([0x34,0x30,0x34,0x36,0x32,0x30,0x31,0x34]);}['init'](){const _0x24c247=this['editor'];_0x24c247['conversion'][_0xe0fe('0xa3')]('editingDowncast')[_0xe0fe('0x7b')]({'model':_0xe0fe('0x97'),'view':_0x22b028=>{const {id:_0x158269,type:_0xa4b40c}=this[_0xe0fe('0x17')](_0x22b028[_0xe0fe('0x7a')]),_0x5f3d23=[_0xe0fe('0xcd'),_0xe0fe('0x12')+_0xa4b40c];let _0x23d01f=0xbb8;return this['activeMarkers']['includes'](_0x22b028['markerName'])&&(_0x5f3d23['push'](_0xe0fe('0xe5')),_0x23d01f=0xbc2),_0xe0fe('0x114')==_0xa4b40c&&(_0x23d01f+=0x5),{'classes':_0x5f3d23,'attributes':{'data-suggestion':_0x158269},'priority':_0x23d01f};}}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')](_0xe0fe('0x6d'))['add'](_0x52d9fc=>{_0x52d9fc['on'](_0xe0fe('0x135'),(_0x7f6575,_0x198ce2,_0x1991f4)=>{if(!_0x1991f4[_0xe0fe('0x15')][_0xe0fe('0xe9')])return;const _0x18b280=_0x198ce2[_0xe0fe('0x105')];if(!_0x18b280)return;const _0x5795ba=_0x1991f4[_0xe0fe('0xd')][_0xe0fe('0x9f')](_0x18b280);_0x24c247['model']['schema'][_0xe0fe('0x1b')](_0x18b280)&&_0x5795ba&&!_0x5795ba[_0xe0fe('0x53')](_0xe0fe('0x11c'))&&_0x5795ba['is'](_0xe0fe('0xd6'))&&_0x322868(_0x5795ba,_0x1991f4['writer']);},{'priority':_0xe0fe('0xf')});}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')](_0xe0fe('0x6d'))[_0xe0fe('0x7b')]({'model':_0xe0fe('0x97'),'view':(_0x55e939,_0x51c997)=>{if(!_0x51c997[_0xe0fe('0x15')][_0xe0fe('0xe9')])return null;const {type:_0x380903}=this[_0xe0fe('0x17')](_0x55e939[_0xe0fe('0x7a')]);return{'classes':[_0xe0fe('0xcd'),'ck-suggestion-marker-'+_0x380903],'priority':0xbb8};}});const _0x1783c4=({showActiveMarkers:_0x3f2668=!0x0}={})=>(_0x36fa40,_0xe4186e,_0x1fb531)=>{if(!_0xe4186e[_0xe0fe('0x105')])return;if(_0xe4186e[_0xe0fe('0x105')]['is'](_0xe0fe('0xbd')))return void _0x1fb531[_0xe0fe('0x4d')]['consume'](_0xe4186e[_0xe0fe('0x105')],_0x36fa40['name']);const _0x1e6f96=_0x1fb531[_0xe0fe('0xd')][_0xe0fe('0x9f')](_0xe4186e[_0xe0fe('0x105')]);if(!(_0xe4186e['item']['is'](_0xe0fe('0x9c'))&&_0x24c247['model'][_0xe0fe('0x95')]['isBlock'](_0xe4186e[_0xe0fe('0x105')])&&!_0x1e6f96[_0xe0fe('0x53')](_0xe0fe('0x3b'))))return;const {id:_0xce6a3f}=this[_0xe0fe('0x17')](_0xe4186e['markerName']);_0x1fb531[_0xe0fe('0xd7')][_0xe0fe('0x80')]([_0xe0fe('0xcd'),_0xe0fe('0x42')],_0x1e6f96),_0x1fb531[_0xe0fe('0xd7')][_0xe0fe('0x5e')](_0xe0fe('0xdb'),_0xce6a3f,_0x1e6f96),_0x1fb531[_0xe0fe('0xd')][_0xe0fe('0xd8')](_0x1e6f96,_0xe4186e[_0xe0fe('0x7a')]),_0x3f2668&&(this[_0xe0fe('0x124')][_0xe0fe('0xdf')](_0xe4186e[_0xe0fe('0x7a')])?_0x1fb531['writer'][_0xe0fe('0x80')](_0xe0fe('0xe5'),_0x1e6f96):_0x1fb531[_0xe0fe('0xd7')][_0xe0fe('0x143')](_0xe0fe('0xe5'),_0x1e6f96));for(const _0x1dd094 of _0x24c247['model'][_0xe0fe('0xb2')](_0xe4186e[_0xe0fe('0x105')])['getItems']())_0x1fb531[_0xe0fe('0x4d')]['consume'](_0x1dd094,_0x36fa40['name']);_0x1fb531[_0xe0fe('0x4d')][_0xe0fe('0xf5')](_0xe4186e['item'],_0x36fa40['name']);};_0x24c247[_0xe0fe('0x28')]['for'](_0xe0fe('0x6d'))[_0xe0fe('0x13b')](_0x45d08b=>{_0x45d08b['on'](_0xe0fe('0x11e'),(_0x4ef9ef,_0x3c5535,_0x585143)=>{_0x585143['options'][_0xe0fe('0xe9')]&&_0x1783c4({'showActiveMarkers':!0x1})(_0x4ef9ef,_0x3c5535,_0x585143);},{'priority':_0xe0fe('0x98')});}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')](_0xe0fe('0x6d'))[_0xe0fe('0x12e')]({'model':'suggestion','view':(_0x47cee9,_0x59e823)=>_0x59e823[_0xe0fe('0x15')][_0xe0fe('0xe9')]?null:{'group':_0xe0fe('0x97'),'name':_0x47cee9[_0xe0fe('0x5f')](0xb)}}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')]('upcast')[_0xe0fe('0x9e')]({'view':{'name':_0xe0fe('0x97'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x587d65,{writer:_0x3a21fe})=>{let _0x29e78d=_0xe0fe('0xb')+_0x587d65[_0xe0fe('0x10b')](_0xe0fe('0x111'))+':'+_0x587d65[_0xe0fe('0x10b')]('id');return _0x587d65[_0xe0fe('0x10b')]('marker-count')&&(_0x29e78d+=':'+_0x587d65[_0xe0fe('0x10b')](_0xe0fe('0x102'))),_0x3a21fe[_0xe0fe('0xfb')](_0xe0fe('0x138'),{'data-name':_0x29e78d});}}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')](_0xe0fe('0xf6'))[_0xe0fe('0x131')]({'view':_0xe0fe('0x97')}),_0x24c247['conversion'][_0xe0fe('0xa3')](_0xe0fe('0x10a'))['add'](_0x6fde10=>{_0x6fde10['on'](_0xe0fe('0x11e'),_0x1783c4(),{'priority':'high'});}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')](_0xe0fe('0x10a'))[_0xe0fe('0x13b')](_0x517ce9=>{_0x517ce9['on'](_0xe0fe('0x13e'),(_0x14ef25,_0x3d6206,_0x52a2a5)=>{const _0x1402d8=_0x52a2a5['mapper']['markerNameToElements'](_0x3d6206[_0xe0fe('0x7a')]);if(_0x1402d8)for(const _0x1c989b of _0x1402d8)_0x1c989b['getCustomProperty'](_0xe0fe('0x3b'))||(_0x52a2a5[_0xe0fe('0xd7')]['removeClass']([_0xe0fe('0xcd'),_0xe0fe('0x42'),'ck-suggestion-marker--active'],_0x1c989b),_0x52a2a5[_0xe0fe('0xd7')][_0xe0fe('0x16')]('data-suggestion',_0x1c989b),_0x52a2a5[_0xe0fe('0xd')][_0xe0fe('0x64')](_0x1c989b,_0x3d6206[_0xe0fe('0x7a')]));},{'priority':'high'});}),_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x27')][_0xe0fe('0xed')](_0x4dad6d=>{let _0x18494f=!0x1;const _0x117b03=Array[_0xe0fe('0x11a')](_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x27')][_0xe0fe('0x5c')]['getChangedMarkers']()),_0x548022=new Set();for(const {name:_0xab85f5,data:_0x259085}of _0x117b03){const {group:_0x2ba1e3,type:_0x1e2c97,id:_0x1caee9}=this[_0xe0fe('0x17')](_0xab85f5);if(_0xe0fe('0x97')!==_0x2ba1e3)continue;const _0xaad189=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x1caee9);if(null!=_0x259085[_0xe0fe('0x43')]){_0xe0fe('0x6f')==_0x1e2c97&&(_0x18494f=_0x18494f||$t(_0x259085[_0xe0fe('0x43')],_0xab85f5,_0x4dad6d,_0x24c247['model'][_0xe0fe('0x95')]));if(_0x259085['newRange']['isCollapsed']||'$graveyard'==_0x259085[_0xe0fe('0x43')]['root'][_0xe0fe('0x2e')]||_0xe0fe('0x7f')==_0x1e2c97&&!Rt(_0x259085[_0xe0fe('0x43')])||_0xe0fe('0x114')==_0x1e2c97&&!(!Mt(_0xb8844e=_0x259085[_0xe0fe('0x43')])&&!function(_0x1e2239){return _0x1e2239[_0xe0fe('0xe0')]['parent']==_0x1e2239[_0xe0fe('0x30')][_0xe0fe('0x25')]&&_0x1e2239['start'][_0xe0fe('0x62')];}(_0xb8844e)))_0x4dad6d['removeMarker'](_0xab85f5),_0x18494f=!0x0;else{if(!_0xaad189||!_0xaad189[_0xe0fe('0x2c')])continue;_0x548022[_0xe0fe('0x13b')](_0xaad189);}}}var _0xb8844e;return _0x548022[_0xe0fe('0x48')]>0x0&&(_0x18494f=!!this[_0xe0fe('0x96')](_0x548022)||_0x18494f),_0x18494f;}),_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x27')][_0xe0fe('0xed')](_0x2737e5=>{let _0x4b4f11=!0x1;for(const _0x9871ac of _0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x27')][_0xe0fe('0x5c')][_0xe0fe('0xb3')]()){if(_0xe0fe('0xcb')!=_0x9871ac['type'])continue;const _0x4b2144=_0x9871ac[_0xe0fe('0x58')]['getShiftedBy'](_0x9871ac[_0xe0fe('0x46')]);if(_0x4b2144[_0xe0fe('0x62')])for(const _0x414921 of this[_0xe0fe('0x4f')][_0xe0fe('0x40')]()){if(_0x414921['isMultiRange']||!_0x414921[_0xe0fe('0x2c')])continue;if(_0xe0fe('0x7f')!=_0x414921['type'])continue;const _0x1b75e9=_0x414921[_0xe0fe('0x69')]();if(_0x1b75e9[_0xe0fe('0xe0')][_0xe0fe('0x7')]!=_0x1b75e9['end'][_0xe0fe('0x7')]&&_0x1b75e9[_0xe0fe('0x30')]['isEqual'](_0x9871ac['position'])){const _0x2e15e3=_0x24c247['model'][_0xe0fe('0x13f')](_0x1b75e9[_0xe0fe('0xe0')],_0x4b2144);_0x2737e5[_0xe0fe('0x45')](_0x414921['getFirstMarker'](),{'range':_0x2e15e3}),_0x4b4f11=!0x0;}}}return _0x4b4f11;}),_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0xb1')]['on']('update:suggestion',(_0x3f1518,_0x136084,_0x33d63)=>{if(null==_0x33d63){const {id:_0x261530}=this[_0xe0fe('0x17')](_0x136084['name']),_0x3709d7=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x261530);_0x3709d7&&_0x3709d7['addMarkerName'](_0x136084[_0xe0fe('0x11d')]);}}),_0x24c247[_0xe0fe('0x13d')]['document']['on'](_0xe0fe('0x73'),()=>{const _0x46adcf=Array[_0xe0fe('0x11a')](_0x24c247['model'][_0xe0fe('0x27')][_0xe0fe('0x5c')][_0xe0fe('0x139')]())[_0xe0fe('0xd5')](_0x3ef21e=>_0xe0fe('0x97')===this['_splitMarkerName'](_0x3ef21e[_0xe0fe('0x11d')])[_0xe0fe('0x79')]);if(0x0===_0x46adcf[_0xe0fe('0x46')])return;_0x46adcf[_0xe0fe('0xbe')]((_0xd081f0,_0x22f2ed)=>{const _0x6f011=_0xd081f0[_0xe0fe('0xfd')][_0xe0fe('0x104')],_0x14962d=_0x22f2ed[_0xe0fe('0xfd')][_0xe0fe('0x104')];return null===_0x6f011&&null===_0x14962d?0x0:null===_0x6f011&&null!==_0x14962d?-0x1:null!==_0x6f011&&null===_0x14962d?0x1:_0x6f011[_0xe0fe('0xe0')][_0xe0fe('0x67')](_0x14962d['start'])?-0x1:0x1;});const _0x17918b=new Set(),_0x74a5cd=new Set();for(const {name:_0x2715ea,data:_0x4e1127}of _0x46adcf){const {id:_0x33c5f6}=this[_0xe0fe('0x17')](_0x2715ea);if(null===_0x4e1127['oldRange']){const _0xc35c3f=this[_0xe0fe('0x8c')](_0x2715ea);_0x74a5cd['add'](_0xc35c3f);}else{const _0xfda776=this['_suggestions'][_0xe0fe('0x115')](_0x33c5f6);null!==_0x4e1127[_0xe0fe('0x43')]||_0xfda776[_0xe0fe('0x2c')]?(_0x17918b[_0xe0fe('0x13b')](_0xfda776['head']),_0x74a5cd['add'](_0xfda776)):this[_0xe0fe('0x7c')](_0xfda776);}}_0x74a5cd['size']>0x0&&this[_0xe0fe('0x12c')](_0x74a5cd);for(const _0x307f83 of _0x17918b)this['fire'](_0xe0fe('0xe4'),_0x307f83);}),_0x24c247[_0xe0fe('0x13d')]['on'](_0xe0fe('0x94'),(_0x26a430,_0x31f936)=>{const _0x2c295f=_0x31f936[0x0];if(!this[_0xe0fe('0x4f')][_0xe0fe('0x48')])return;if(!_0x2c295f[_0xe0fe('0x120')])return;if(_0x2c295f[_0xe0fe('0x101')][_0xe0fe('0xae')]||!_0x2c295f[_0xe0fe('0x101')][_0xe0fe('0xb7')])return;let _0x3dd607,_0x4ba84a;switch(_0x2c295f[_0xe0fe('0x50')]){case _0xe0fe('0xcb'):_0x3dd607=_0x24c247['model'][_0xe0fe('0xc0')](_0x2c295f[_0xe0fe('0x58')]),_0x4ba84a=_0x3dd607[_0xe0fe('0x4c')](_0x2c295f[_0xe0fe('0x3d')]);break;case'split':_0x3dd607=_0x24c247['model']['createPositionAt'](_0x2c295f[_0xe0fe('0x4b')]),_0x4ba84a=_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0xc0')](_0x2c295f['moveTargetPosition']);break;case'move':_0x3dd607=_0x24c247[_0xe0fe('0x13d')]['createPositionAt'](_0x2c295f[_0xe0fe('0x110')]),_0x4ba84a=_0x3dd607[_0xe0fe('0x4c')](_0x2c295f['howMany']);break;default:return;}const _0x22488a=_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x13f')](_0x3dd607,_0x4ba84a);_0x24c247['model'][_0xe0fe('0xd2')](()=>{for(const {suggestion:_0x2dbc5f,meta:_0x2e23ea}of this[_0xe0fe('0x37')](_0x22488a)){if(_0x2dbc5f[_0xe0fe('0xc5')])continue;if('formatInline'==_0x2dbc5f[_0xe0fe('0x50')])continue;const _0x3f856b=_0x2dbc5f[_0xe0fe('0xfd')]&&_0x2dbc5f['data'][_0xe0fe('0xda')];(_0xe0fe('0x7f')!=_0x2dbc5f[_0xe0fe('0x50')]||'split'==_0x2c295f[_0xe0fe('0x50')]&&!_0x3f856b)&&(_0x2e23ea['containsRangeInObject']||_0xe0fe('0xce')==_0x2dbc5f['type']&&_0x2e23ea[_0xe0fe('0x2d')]||_0x2dbc5f[_0xe0fe('0x69')]()['containsRange'](_0x22488a)&&this[_0xe0fe('0x56')](_0x2dbc5f,_0x3dd607,_0x4ba84a));}});},{'priority':_0xe0fe('0x7d')}),_0x24c247['model']['on'](_0xe0fe('0xa6'),(_0x10e577,_0x7e69f4)=>{const _0x546b15=_0x7e69f4[0x0],_0x199768=_0x7e69f4[0x1];if(_0x199768&&_0x199768[_0xe0fe('0xdd')])return;if(this[_0xe0fe('0x76')])return;if(!this[_0xe0fe('0x66')][_0xe0fe('0x18')])return;if(_0x546b15[_0xe0fe('0xab')])return;const _0x5545b0=_0x24c247['model'][_0xe0fe('0x95')],{start:_0x30f5f6,end:_0x3c6b25}=_0x546b15[_0xe0fe('0x69')](),_0x34df98=_0x30f5f6[_0xe0fe('0xf7')]&&_0x5545b0[_0xe0fe('0x85')](_0x30f5f6[_0xe0fe('0xf7')])?null:_0x5545b0[_0xe0fe('0xd3')](_0x30f5f6,_0xe0fe('0x47')),_0x4aa255=_0x3c6b25[_0xe0fe('0x25')]&&_0x5545b0[_0xe0fe('0x85')](_0x3c6b25['nodeBefore'])?null:_0x5545b0[_0xe0fe('0xd3')](_0x3c6b25,'backward'),_0x18b563=_0x24c247['model'][_0xe0fe('0x13f')](_0x34df98?_0x34df98[_0xe0fe('0xe0')]:_0x30f5f6,_0x4aa255?_0x4aa255[_0xe0fe('0x30')]:_0x3c6b25);_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0xd2')](_0x42459d=>{this[_0xe0fe('0x141')](_0x18b563);const _0x4617eb=_0x24c247[_0xe0fe('0x13d')]['schema'][_0xe0fe('0xd3')](_0x18b563[_0xe0fe('0xe0')]);_0x546b15['is'](_0xe0fe('0x8'))?_0x42459d[_0xe0fe('0x61')](_0x4617eb):_0x546b15[_0xe0fe('0x83')](_0x4617eb);}),_0x10e577[_0xe0fe('0x34')]();},{'priority':_0x569d50[_0xe0fe('0x5a')]+0xa}),_0x24c247[_0xe0fe('0x13d')]['on'](_0xe0fe('0x31'),(_0x4f32a4,_0xaa0394)=>{const _0x184062=_0xaa0394[_0xaa0394['length']-0x1];_0x184062&&_0x184062['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0xe0fe('0x18')]&&(_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0xd2')](()=>{let _0x14052d=_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x31')](_0xaa0394[0x0],_0xaa0394[0x1],_0xaa0394[0x2],{'forceDefaultExecution':!0x0});if(!_0x14052d)return;_0x4f32a4[_0xe0fe('0x1a')]=_0x14052d['clone']();const _0x1d2db5=_0x14052d['end'][_0xe0fe('0x25')],_0x3145e3=_0x24c247[_0xe0fe('0x13d')]['schema'];_0x1d2db5&&_0x3145e3[_0xe0fe('0xe2')](_0x1d2db5)&&!_0x3145e3['isObject'](_0x1d2db5)&&(_0x14052d=_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x13f')](_0x14052d['start'],_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0xc0')](_0x1d2db5,'end'))),this[_0xe0fe('0x9b')](_0x14052d);}),_0x4f32a4['stop']());},{'priority':_0xe0fe('0xf')}),this[_0xe0fe('0xcc')][_0xe0fe('0x1d')][_0xe0fe('0x13b')](_0xe0fe('0x78'),this[_0xe0fe('0x66')]),this[_0xe0fe('0x108')](_0xe0fe('0x78'));const _0x3c1718=new _0x3a9ef5(_0x24c247,this[_0xe0fe('0x4f')]);_0x24c247['commands'][_0xe0fe('0x13b')]('acceptSuggestion',_0x3c1718),this[_0xe0fe('0x108')]('acceptSuggestion');const _0x36c143=new _0x39d705(_0x24c247,this[_0xe0fe('0x4f')]);_0x24c247[_0xe0fe('0x1d')][_0xe0fe('0x13b')]('discardSuggestion',_0x36c143),this['enableCommand'](_0xe0fe('0xe6')),_0x24c247['commands']['add']('acceptAllSuggestions',new _0x34b0db(_0x24c247,_0x3c1718,this[_0xe0fe('0x4f')])),this[_0xe0fe('0x108')](_0xe0fe('0x12f')),_0x24c247[_0xe0fe('0x1d')]['add'](_0xe0fe('0x14'),new _0x34b0db(_0x24c247,_0x36c143,this[_0xe0fe('0x4f')])),this[_0xe0fe('0x108')]('discardAllSuggestions'),_0x24c247[_0xe0fe('0x1d')][_0xe0fe('0x13b')](_0xe0fe('0x100'),new _0x5c582c(_0x24c247,_0x3c1718,this[_0xe0fe('0x4f')])),this['enableCommand'](_0xe0fe('0x100')),_0x24c247[_0xe0fe('0x1d')][_0xe0fe('0x13b')]('discardSelectedSuggestions',new _0x5c582c(_0x24c247,_0x36c143,this[_0xe0fe('0x4f')])),this['enableCommand']('discardSelectedSuggestions');const _0xfda05=_0x24c247['plugins'][_0xe0fe('0x115')](_0xe0fe('0xa2'));this[_0xe0fe('0x8b')](_0xfda05,_0xe0fe('0x128'),(_0x56d1bc,{threadId:_0x5acf20})=>{const _0x3d8464=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x5acf20);_0x3d8464&&_0x3d8464[_0xe0fe('0x3c')]&&0x1===_0x3d8464[_0xe0fe('0x3c')]['length']&&this['_updateSuggestionData'](_0x5acf20,{'hasComments':!0x0});},{'priority':_0xe0fe('0x0')}),this[_0xe0fe('0x8b')](_0xfda05,_0xe0fe('0xf3'),(_0x3fd7a0,{threadId:_0x30ffcb})=>{const _0x44815d=this['_suggestions'][_0xe0fe('0x115')](_0x30ffcb);_0x44815d&&_0x44815d[_0xe0fe('0x3c')]&&!_0x44815d[_0xe0fe('0x3c')][_0xe0fe('0x46')]&&this['_updateSuggestionData'](_0x30ffcb,{'hasComments':!0x1});},{'priority':'low'});}set[_0xe0fe('0x5')](_0x24d90c){if(this['_adapter'])throw new _0x27bad2(_0xe0fe('0x126'),this);this[_0xe0fe('0x4')]=_0x24d90c;}get[_0xe0fe('0x5')](){return this[_0xe0fe('0x4')];}['getSuggestions']({skipNotAttached:_0xc73c29=!0x1,toJSON:_0x152137=!0x1}={}){const _0x1b10f0=[];for(const _0xf8d4e4 of this['_suggestions'][_0xe0fe('0x40')]())_0xc73c29&&!_0xf8d4e4[_0xe0fe('0x2c')]||_0x1b10f0[_0xe0fe('0x136')](_0xf8d4e4);return _0x152137?_0x1b10f0[_0xe0fe('0x130')](_0x51203d=>_0x51203d['toJSON']()):_0x1b10f0;}[_0xe0fe('0x93')](_0x1207df){const _0x535066=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x1207df);if(!_0x535066)throw new _0x27bad2(_0xe0fe('0x13c'),this);return _0x535066;}[_0xe0fe('0x1')](_0x1dc050){return this[_0xe0fe('0x4f')][_0xe0fe('0xc4')](_0x1dc050);}[_0xe0fe('0x2a')](_0x1cf08e){const {authorId:_0x111409,id:_0x3f6633,attributes:_0x557df9}=_0x1cf08e,[_0x164e9f,_0x1f1189]=_0x1cf08e[_0xe0fe('0x50')]['split'](':'),_0x2d69a6=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x3f6633)||this[_0xe0fe('0xd9')](_0x164e9f,_0x1f1189,_0x3f6633,_0x111409,_0x557df9);if(this[_0xe0fe('0x23')](_0x2d69a6),this['_checkSuggestionCorrectness'](_0x2d69a6,_0x164e9f,_0x1f1189||null,_0x111409),_0x2d69a6[_0xe0fe('0x11b')]=_0x1cf08e[_0xe0fe('0x11b')],_0x2d69a6['_isDataLoaded']=!0x0,_0x557df9&&_0x557df9[_0xe0fe('0xe')]){const _0xc960a0=_0x557df9['@external'],_0x547ee3=this[_0xe0fe('0x13')](_0xc960a0[_0xe0fe('0x4a')]);_0x2d69a6['authoredAt']=_0xc960a0[_0xe0fe('0x11b')],_0x2d69a6[_0xe0fe('0x13a')]=_0x547ee3,_0x2d69a6['isExternal']=!0x0;}else _0x2d69a6[_0xe0fe('0x125')]=_0x1cf08e[_0xe0fe('0x11b')];switch(_0x1cf08e['data']&&(_0x2d69a6[_0xe0fe('0xfd')]=_0x1cf08e[_0xe0fe('0xfd')]),_0x1cf08e['attributes']&&(_0x2d69a6['attributes']=_0x1cf08e[_0xe0fe('0x122')]),this[_0xe0fe('0x4')]&&this[_0xe0fe('0x4')]['addSuggestion']||(_0x2d69a6['_saved']=!0x0),this[_0xe0fe('0x26')][_0xe0fe('0x115')](_0x2d69a6)){case'notReady':this[_0xe0fe('0x26')][_0xe0fe('0x35')](_0x2d69a6,_0xe0fe('0xc1'));break;case'markerReady':_0x2d69a6[_0xe0fe('0x2c')]?(this[_0xe0fe('0x12c')](new Set([_0x2d69a6])),this[_0xe0fe('0x96')](new Set([_0x2d69a6])),this[_0xe0fe('0x26')][_0xe0fe('0x35')](_0x2d69a6,_0xe0fe('0xaf')),this[_0xe0fe('0xf4')](_0xe0fe('0x9a'),_0x2d69a6)):this['_suggestionState'][_0xe0fe('0x35')](_0x2d69a6,_0xe0fe('0x2'));}return _0x2d69a6;}[_0xe0fe('0x11f')](_0x49c38b){this[_0xe0fe('0xdd')](()=>{this[_0xe0fe('0xcc')]['model'][_0xe0fe('0xd2')](()=>{for(const _0x1094ce of _0x49c38b[_0xe0fe('0x21')]())_0x1094ce[_0xe0fe('0xb9')]();});});}[_0xe0fe('0xe6')](_0x2e45a5){this[_0xe0fe('0xdd')](()=>{this[_0xe0fe('0xcc')]['model'][_0xe0fe('0xd2')](()=>{for(const _0x57b345 of _0x2e45a5[_0xe0fe('0x21')]())_0x57b345[_0xe0fe('0x2b')]();});});}[_0xe0fe('0x108')](_0x457562,_0x1d262c){const _0x40519f=this[_0xe0fe('0xcc')][_0xe0fe('0x1d')][_0xe0fe('0x115')](_0x457562);if(!_0x40519f)throw new _0x27bad2(_0xe0fe('0x3f'),this,{'commandName':_0x457562});this[_0xe0fe('0xf9')][_0xe0fe('0x13b')](_0x40519f),_0x1d262c&&_0x40519f['on']('execute',(_0x2c9350,_0x12d405)=>{this[_0xe0fe('0x66')]['value']&&(this['_isForcedDefaultExecutionBlock']||_0x12d405['length']>0x0&&_0x12d405[_0x12d405[_0xe0fe('0x46')]-0x1]&&_0x12d405[_0x12d405['length']-0x1][_0xe0fe('0xdd')]||(_0x1d262c((..._0x3c8c4a)=>_0x40519f[_0xe0fe('0x8a')](..._0x3c8c4a,{'forceDefaultExecution':!0x0}),..._0x12d405),_0x2c9350['stop']()));},{'priority':_0xe0fe('0xf')});}[_0xe0fe('0xdd')](_0x42b567){let _0x42654d,_0x300835;const _0x4aa9c2=this['_isForcedDefaultExecutionBlock'];this[_0xe0fe('0x76')]=!0x0;try{_0x42654d=_0x42b567();}catch(_0x243a12){_0x300835=_0x243a12;}return _0x4aa9c2||(this[_0xe0fe('0x76')]=!0x1),_0x300835&&_0x27bad2[_0xe0fe('0x10')](_0x300835,this),_0x42654d;}[_0xe0fe('0x9b')](_0x30cb31,_0x23cd82=null,_0x438b5f={}){if(_0x30cb31[_0xe0fe('0xab')])return null;const _0x939e90=this['editor'][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'];for(const {suggestion:_0x3e1997,meta:_0x58660d}of this[_0xe0fe('0x37')](_0x30cb31,_0xe0fe('0xce')))if(_0x58660d[_0xe0fe('0x2d')]){if(!_0x58660d[_0xe0fe('0x113')]){if(_0x58660d[_0xe0fe('0x1f')]){if(!this[_0xe0fe('0x134')]||!Ot(_0x3e1997,_0x438b5f))continue;return _0x3e1997;}if(Ot(_0x3e1997,_0x438b5f))return _0x3e1997;this[_0xe0fe('0x56')](_0x3e1997,_0x30cb31[_0xe0fe('0xe0')],_0x30cb31[_0xe0fe('0x30')]);break;}if(_0x23cd82==_0x3e1997[_0xe0fe('0x11')]&&Ot(_0x3e1997,_0x438b5f)){const _0x278f29=_0x3e1997[_0xe0fe('0x69')]();return _0x278f29['start'][_0xe0fe('0x8f')](_0x30cb31[_0xe0fe('0x30')])?this[_0xe0fe('0xc2')](_0x3e1997,this['_model']['createRange'](_0x30cb31['start'],_0x278f29[_0xe0fe('0x30')])):this[_0xe0fe('0xc2')](_0x3e1997,this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x278f29[_0xe0fe('0xe0')],_0x30cb31[_0xe0fe('0x30')])),_0x3e1997;}}const _0x5a77d9=_0x4d9555(),_0x237549=_0x939e90['id'],_0x3c41c9=_0x23cd82?'insertion:'+_0x23cd82:_0xe0fe('0xce'),_0x328357=this[_0xe0fe('0x51')]({'id':_0x5a77d9,'type':_0x3c41c9,'createdAt':new Date(),'authorId':_0x237549,'attributes':_0x438b5f});return this[_0xe0fe('0xff')](_0x3c41c9,_0x5a77d9,_0x237549,_0x30cb31),_0x328357;}[_0xe0fe('0xb0')](_0x515d99,_0x427809=_0xe0fe('0xe7'),_0x9cbd58={}){const _0x239ff8=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'],_0x2ee848=this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0xe0fe('0xce'),_0x427809,_0xe0fe('0x5b'));for(const _0x2cb06e of this[_0xe0fe('0xa4')]())if(_0x2cb06e[_0xe0fe('0x13a')]['id']==_0x239ff8['id']&&_0xe0fe('0xce')==_0x2cb06e[_0xe0fe('0x50')]&&_0x2cb06e[_0xe0fe('0x11')]==_0x427809&&Ot(_0x2cb06e,_0x9cbd58)&&(_0x2ee848(_0x2cb06e[_0xe0fe('0x112')](),_0x515d99)||_0x2ee848(_0x515d99,_0x2cb06e[_0xe0fe('0x112')]()))){for(const _0x380b0a of _0x515d99)_0x2cb06e[_0xe0fe('0x12d')](_0x380b0a);return _0x2cb06e;}for(const {suggestion:_0x23ac85,meta:_0x36e5a9}of this['_findSuggestions'](_0x515d99,'insertion')){if(!_0x36e5a9['isOwn'])continue;if(!this[_0xe0fe('0x134')]&&_0x36e5a9[_0xe0fe('0x1f')])continue;if(!Ot(_0x23ac85,_0x9cbd58))continue;let _0x13775d=!0x0;for(const _0x348ceb of _0x23ac85[_0xe0fe('0x112')]())for(const _0x2f80cd of _0x515d99)if(!_0x348ceb[_0xe0fe('0xfe')](_0x2f80cd)){_0x13775d=!0x1;break;}if(_0x13775d)return _0x23ac85;}const _0x9e5840=_0x4d9555(),_0x2c3c07=_0x239ff8['id'],_0x3498fa=_0xe0fe('0xca')+_0x427809,_0x3b804a=this[_0xe0fe('0x51')]({'id':_0x9e5840,'type':_0x3498fa,'createdAt':new Date(),'authorId':_0x2c3c07,'attributes':_0x9cbd58});for(const _0x3cffe2 of _0x515d99)this[_0xe0fe('0xff')](_0x3498fa,_0x9e5840,_0x2c3c07,_0x3cffe2,_0x7857d8[_0xe0fe('0xc6')]());return _0x3b804a;}['markInlineFormat'](_0xa74a47,_0x4471fa,_0x1c9c11=null,_0x314f66={}){if(_0x1c9c11=_0x1c9c11||Nt(_0x4471fa),_0xa74a47[_0xe0fe('0xab')])return null;if(_0xe0fe('0xc3')===this['_trackFormatChanges']){const _0x354778=this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0xe0fe('0x6f'),_0x1c9c11,'accept');return this[_0xe0fe('0xdd')](()=>_0x354778([_0xa74a47],_0x4471fa,_0x314f66)),null;}const _0x1c8f1e=this[_0xe0fe('0xcc')][_0xe0fe('0xa')]['get'](_0xe0fe('0x82'))['me'],_0x195f52=[];if(_0xe0fe('0x6b')!==this[_0xe0fe('0x88')])for(const {suggestion:_0x2ecced,meta:_0x4da4fc}of this[_0xe0fe('0x37')](_0xa74a47,_0xe0fe('0xce')))_0x4da4fc['isOwn']&&!_0x4da4fc[_0xe0fe('0x32')]&&_0x195f52['push'](..._0x2ecced[_0xe0fe('0x112')]());const _0x5f4dd8=function(_0x2342ec,_0x3fd093){const _0x56f95d=[];for(const _0x43c5c8 of _0x3fd093){const _0x31c3f1=_0x2342ec['getIntersection'](_0x43c5c8);_0x31c3f1&&_0x56f95d[_0xe0fe('0x136')](_0x31c3f1);}return _0x56f95d;}(_0xa74a47,_0x195f52),_0x3f6a08=function(_0x4480fe,_0x4b92fa){const _0x3e9160=[_0x4480fe];for(const _0x10307d of _0x4b92fa){let _0x11b067=0x0;for(;_0x11b067<_0x3e9160[_0xe0fe('0x46')];){const _0x35ea2b=_0x3e9160[_0x11b067][_0xe0fe('0xaa')](_0x10307d);_0x3e9160[_0xe0fe('0x65')](_0x11b067,0x1,..._0x35ea2b),_0x11b067+=_0x35ea2b[_0xe0fe('0x46')];}}return _0x3e9160;}(_0xa74a47,_0x195f52);_0x5f4dd8[_0xe0fe('0x46')]&&this['_model'][_0xe0fe('0xd2')](()=>{for(const _0x32f135 of _0x5f4dd8){const _0xba5060=this[_0xe0fe('0xeb')]['getSuggestionCallback'](_0xe0fe('0x6f'),_0x1c9c11,_0xe0fe('0xb9'));this[_0xe0fe('0xdd')](()=>_0xba5060([_0x32f135],_0x4471fa,_0x314f66));}});for(const _0x140f3d of _0x3f6a08){let _0x4a0a91=null,_0x2289be=_0x140f3d[_0xe0fe('0xe0')],_0x47b6e4=_0x140f3d[_0xe0fe('0x30')];for(const {suggestion:_0x3ddc90,meta:_0x338721}of this['_findSuggestions'](_0x140f3d,_0xe0fe('0x6f'))){if(!_0x338721[_0xe0fe('0x2d')])continue;if(_0x3ddc90[_0xe0fe('0x11')]!=_0x1c9c11)continue;if(!Ot(_0x3ddc90,_0x314f66))continue;const _0x3bce91=_0x3ddc90[_0xe0fe('0x69')]();if(_0x3bce91[_0xe0fe('0xfe')](_0x140f3d,!0x0))return null;_0x2289be=_0x2289be[_0xe0fe('0x67')](_0x3bce91[_0xe0fe('0xe0')])?_0x2289be:_0x3bce91[_0xe0fe('0xe0')],_0x47b6e4=_0x47b6e4[_0xe0fe('0x103')](_0x3bce91[_0xe0fe('0x30')])?_0x47b6e4:_0x3bce91[_0xe0fe('0x30')],_0x4a0a91?_0x3bce91[_0xe0fe('0xe0')][_0xe0fe('0x67')](_0x4a0a91[_0xe0fe('0x69')]()['start'])?(_0x4a0a91[_0xe0fe('0x59')](),_0x4a0a91=_0x3ddc90):_0x3ddc90[_0xe0fe('0x59')]():_0x4a0a91=_0x3ddc90;}const _0x10196a=this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x2289be,_0x47b6e4);if(_0x4a0a91)this['_setSuggestionRange'](_0x4a0a91,_0x10196a);else{const _0xf6b47b=_0x4d9555(),_0x1c849e=_0x1c8f1e['id'];this['_setSuggestionData']({'id':_0xf6b47b,'type':'formatInline:'+_0x1c9c11,'data':_0x4471fa,'createdAt':new Date(),'authorId':_0x1c849e,'attributes':_0x314f66}),this[_0xe0fe('0xff')]('formatInline:'+_0x1c9c11,_0xf6b47b,_0x1c849e,_0x10196a);}}return null;}[_0xe0fe('0x19')](_0x13a6d2,_0x580799,_0x2654b8=[],_0x58547d=null,_0xd6db0c={}){_0x580799[_0xe0fe('0xec')]||(_0x580799[_0xe0fe('0xec')]=_0x580799[_0xe0fe('0xf0')]),_0x580799[_0xe0fe('0xda')]=_0x13a6d2['is']('range'),_0x58547d=_0x58547d||Nt(_0x580799);const _0x3fbd92=_0x2654b8[_0xe0fe('0x130')](_0xddc2a0=>jt(_0xddc2a0,this[_0xe0fe('0xb8')])),_0x2e6ef9=_0x13a6d2['is'](_0xe0fe('0x10e'))?_0x13a6d2:jt(_0x13a6d2,this[_0xe0fe('0xb8')]);if(_0xe0fe('0xc3')===this[_0xe0fe('0x88')]){const _0x242fe8=this[_0xe0fe('0xeb')]['getSuggestionCallback'](_0xe0fe('0x7f'),_0x58547d,_0xe0fe('0xb9'));return this[_0xe0fe('0xdd')](()=>_0x242fe8([_0x2e6ef9],_0x580799,_0xd6db0c)),null;}_0x3fbd92[_0xe0fe('0x136')](_0x2e6ef9);let _0x2d6784=!0x0;for(const _0x33e518 of _0x3fbd92)if(!this['_rangeIsInLocalUserInsertion'](_0x33e518)){_0x2d6784=!0x1;break;}if(_0x2d6784&&_0xe0fe('0x6b')!==this['_trackFormatChanges']){const _0x422569=this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0xe0fe('0x7f'),_0x58547d,'accept');return this['forceDefaultExecution'](()=>_0x422569([_0x2e6ef9],_0x580799,_0xd6db0c)),null;}let _0x53c698=null,_0x15a663=_0x2e6ef9[_0xe0fe('0xe0')],_0x3b0221=_0x2e6ef9['end'];for(const {suggestion:_0xa5e7cb,meta:_0x172790}of this[_0xe0fe('0x37')](_0x2e6ef9,_0xe0fe('0x7f'))){if(!_0x172790['isOwn'])continue;if(_0x172790[_0xe0fe('0x113')]||_0x172790['containsRangeInObject']||_0x172790[_0xe0fe('0x32')])continue;if(_0xa5e7cb['data']['formatGroupId']!=_0x580799[_0xe0fe('0xec')])continue;if(!Ot(_0xa5e7cb,_0xd6db0c))continue;const _0x385a85=_0xa5e7cb[_0xe0fe('0x69')]();if(_0xa5e7cb[_0xe0fe('0x11')]==_0x58547d){if(_0x385a85[_0xe0fe('0xfe')](_0x2e6ef9,!0x0))return null;_0x15a663=_0x15a663[_0xe0fe('0x67')](_0x385a85[_0xe0fe('0xe0')])?_0x15a663:_0x385a85['start'],_0x3b0221=_0x3b0221[_0xe0fe('0x103')](_0x385a85[_0xe0fe('0x30')])?_0x3b0221:_0x385a85['end'],_0x53c698?_0x385a85['start'][_0xe0fe('0x67')](_0x53c698['getFirstRange']()[_0xe0fe('0xe0')])?(_0x53c698[_0xe0fe('0x59')](),_0x53c698=_0xa5e7cb):_0xa5e7cb['removeMarkers']():_0x53c698=_0xa5e7cb;}else{const _0x5804cd=_0x2e6ef9['getIntersection'](_0x385a85);this[_0xe0fe('0xcf')](_0xa5e7cb,_0x5804cd);}}const _0x19d536=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'],_0x4cc3ba=_0x4d9555(),_0x4a5b15=_0x19d536['id'];if(_0x53c698)return this[_0xe0fe('0xc2')](_0x53c698,this['_model'][_0xe0fe('0x13f')](_0x15a663,_0x3b0221)),_0x53c698;{const _0x36df66=this[_0xe0fe('0x51')]({'id':_0x4cc3ba,'type':_0xe0fe('0xe3')+_0x58547d,'data':_0x580799,'createdAt':new Date(),'authorId':_0x4a5b15,'attributes':_0xd6db0c});return this[_0xe0fe('0xff')](_0xe0fe('0xe3')+_0x58547d,_0x4cc3ba,_0x4a5b15,this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x15a663,_0x3b0221)),_0x36df66;}}[_0xe0fe('0xba')](_0x1b75fe,_0x3535d4,_0x34255f=[],_0x474076=null,_0x4e928d={}){_0x3535d4[_0xe0fe('0xec')]||(_0x3535d4[_0xe0fe('0xec')]=_0x3535d4[_0xe0fe('0xf0')]);const _0x16bddb=_0x1b75fe[0x0];_0x3535d4[_0xe0fe('0xda')]=_0x16bddb['is'](_0xe0fe('0x10e')),_0x474076=_0x474076||Nt(_0x3535d4);const _0x236995=_0x34255f['map'](_0x282311=>jt(_0x282311,this[_0xe0fe('0xb8')])),_0x24bfe3=_0x16bddb['is'](_0xe0fe('0x10e'))?_0x1b75fe:_0x1b75fe[_0xe0fe('0x130')](_0x5cff57=>jt(_0x5cff57,this['_model']));if('never'===this[_0xe0fe('0x88')]){const _0x109d21=this['_suggestionFactory'][_0xe0fe('0x74')](_0xe0fe('0x7f'),_0x474076,_0xe0fe('0xb9'));return this[_0xe0fe('0xdd')](()=>_0x109d21(_0x24bfe3,_0x3535d4,_0x4e928d)),null;}_0x236995[_0xe0fe('0x136')](..._0x24bfe3);let _0x15b95=!0x0;for(const _0x2426d0 of _0x236995)if(!this[_0xe0fe('0x77')](_0x2426d0)){_0x15b95=!0x1;break;}if(_0x15b95&&'always'!==this['_trackFormatChanges']){const _0x577803=this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0xe0fe('0x7f'),_0x474076,_0xe0fe('0xb9'));return this[_0xe0fe('0xdd')](()=>_0x577803(_0x24bfe3,_0x3535d4,_0x4e928d)),null;}const _0x39265d=this[_0xe0fe('0xcc')]['plugins'][_0xe0fe('0x115')]('Users')['me'];for(const _0x4d4747 of this[_0xe0fe('0xa4')]()){if(_0x4d4747['author']['id']!=_0x39265d['id'])continue;if(_0xe0fe('0x7f')!=_0x4d4747['type']||_0x4d4747[_0xe0fe('0xfd')][_0xe0fe('0xec')]!=_0x3535d4[_0xe0fe('0xec')])continue;if(!Ot(_0x4d4747,_0x4e928d))continue;const _0x40f30a=_0x4d4747['subType']==_0x474076;for(let _0x544569=0x0;_0x544569<_0x24bfe3['length'];_0x544569++){const _0x256ed7=_0x24bfe3[_0x544569];for(const _0x2a94dc of _0x4d4747[_0xe0fe('0x2f')]()){const _0x28db46=_0x2a94dc['getRange']();if(_0x256ed7['isEqual'](_0x28db46)){_0x40f30a?(_0x24bfe3[_0xe0fe('0x65')](_0x544569,0x1),_0x544569--):_0x4d4747[_0xe0fe('0xc9')](_0x2a94dc['name']);break;}}}}if(0x0==_0x24bfe3[_0xe0fe('0x46')])return null;const _0x320b55=this[_0xe0fe('0xeb')]['getSuggestionCallback'](_0xe0fe('0x7f'),_0x474076,_0xe0fe('0x5b'));for(const _0x4d0859 of this['getSuggestions']())if(_0x4d0859[_0xe0fe('0x13a')]['id']==_0x39265d['id']&&_0xe0fe('0x7f')==_0x4d0859[_0xe0fe('0x50')]&&_0x4d0859[_0xe0fe('0xfd')][_0xe0fe('0xec')]==_0x3535d4['formatGroupId']&&_0x4d0859['subType']==_0x474076&&Ot(_0x4d0859,_0x4e928d)&&(_0x320b55(_0x4d0859[_0xe0fe('0x112')](),_0x24bfe3)||_0x320b55(_0x24bfe3,_0x4d0859[_0xe0fe('0x112')]()))){for(const _0x45f8f3 of _0x24bfe3)_0x4d0859[_0xe0fe('0x12d')](_0x45f8f3);return _0x4d0859;}const _0x5e5c7c=_0x4d9555(),_0x485ad7=_0x39265d['id'],_0x34b48a=_0xe0fe('0xe3')+_0x474076,_0xb18258=this[_0xe0fe('0x51')]({'id':_0x5e5c7c,'type':_0x34b48a,'data':_0x3535d4,'createdAt':new Date(),'authorId':_0x485ad7,'attributes':_0x4e928d});for(const _0xa7efa5 of _0x24bfe3)this[_0xe0fe('0xff')](_0x34b48a,_0x5e5c7c,_0x485ad7,_0xa7efa5,_0x7857d8[_0xe0fe('0xc6')]());return _0xb18258;}[_0xe0fe('0x141')](_0xd1a72b,_0x17bd62=null,_0x4ef77d={}){if(_0xd1a72b['isCollapsed'])return null;const _0x26d2b2=this['editor'][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'],_0x599081=new _0x1d44fa(_0xd1a72b[_0xe0fe('0xe0')],_0xd1a72b[_0xe0fe('0x30')]);for(const {suggestion:_0x18a602,meta:_0x25465e}of this['_findSuggestions'](_0x599081,'insertion'))if(_0x25465e[_0xe0fe('0x2d')]&&!_0x25465e[_0xe0fe('0x113')]){if(_0x18a602[_0xe0fe('0xc5')]){const _0x390c3e=_0x18a602[_0xe0fe('0x112')]()[_0xe0fe('0xd5')](_0x1a1922=>_0xe0fe('0x121')!=_0x1a1922[_0xe0fe('0x6a')]['rootName']);_0x390c3e[_0xe0fe('0x12a')](_0x444d14=>_0x599081[_0xe0fe('0xfe')](_0x444d14,!0x0))&&_0x18a602[_0xe0fe('0x2b')]();if(_0x390c3e['some'](_0x49eddd=>_0x49eddd[_0xe0fe('0xfe')](_0x599081,!0x0))){const _0x2887e1=this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0xe0fe('0x114'),_0x17bd62,_0xe0fe('0xb9'));return this['forceDefaultExecution'](()=>_0x2887e1([_0x599081],null,_0x4ef77d)),null;}}else{const _0x3350be=_0x599081[_0xe0fe('0x60')](_0x18a602[_0xe0fe('0x69')]());null!==_0x3350be&&_0x18a602[_0xe0fe('0x24')]([_0x3350be],null,_0x4ef77d);}}if(_0x599081[_0xe0fe('0xc7')](),_0x599081[_0xe0fe('0xab')]||_0xe0fe('0x121')==_0x599081[_0xe0fe('0x6a')][_0xe0fe('0x2e')])return null;let _0x353173=null,_0x8e5dd4=_0x599081[_0xe0fe('0xe0')],_0x2fd7e3=_0x599081[_0xe0fe('0x30')];const _0x563902=this[_0xe0fe('0x37')](_0x599081,_0xe0fe('0x114'));for(const {suggestion:_0x2ad25d,meta:_0x443187}of _0x563902){const _0x5eb010=this['_model'][_0xe0fe('0x13f')](_0x8e5dd4,_0x2fd7e3);if(_0x443187[_0xe0fe('0x2d')]&&(this[_0xe0fe('0x134')]||!_0x443187[_0xe0fe('0x1f')]&&!_0x443187[_0xe0fe('0x32')])){if(_0x2ad25d['isMultiRange']){if(!Ot(_0x2ad25d,_0x4ef77d))continue;let _0x40f886=!0x0;for(const _0x13db34 of _0x2ad25d[_0xe0fe('0x112')]()){if(_0x13db34['containsRange'](_0x5eb010,!0x0))return _0x2ad25d;_0x5eb010[_0xe0fe('0xfe')](_0x13db34)||(_0x40f886=!0x1);}_0x40f886&&_0x2ad25d[_0xe0fe('0x2b')]();}else{const _0x194a55=_0x2ad25d[_0xe0fe('0x69')]();if(_0x194a55[_0xe0fe('0xfe')](_0x5eb010,!0x0))return _0x2ad25d;if(!Ot(_0x2ad25d,_0x4ef77d)){_0x5eb010['containsRange'](_0x194a55)?_0x2ad25d[_0xe0fe('0x59')]():_0x194a55[_0xe0fe('0xa8')](_0x8e5dd4)?_0x8e5dd4=_0x194a55[_0xe0fe('0x30')]:_0x194a55['containsPosition'](_0x2fd7e3)&&(_0x2fd7e3=_0x194a55['start']);continue;}_0x8e5dd4=_0x8e5dd4[_0xe0fe('0x67')](_0x194a55[_0xe0fe('0xe0')])?_0x8e5dd4:_0x194a55['start'],_0x2fd7e3=_0x2fd7e3[_0xe0fe('0x103')](_0x194a55[_0xe0fe('0x30')])?_0x2fd7e3:_0x194a55[_0xe0fe('0x30')],_0x4ef77d=Object[_0xe0fe('0x119')]({},_0x2ad25d[_0xe0fe('0x122')]),_0x353173?_0x194a55[_0xe0fe('0xe0')][_0xe0fe('0x67')](_0x353173[_0xe0fe('0x69')]()['start'])?(_0x353173['removeMarkers'](),_0x353173=_0x2ad25d):_0x2ad25d['removeMarkers']():_0x353173=_0x2ad25d;}}}if(_0x353173)return this[_0xe0fe('0xc2')](_0x353173,this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x8e5dd4,_0x2fd7e3)),_0x353173;{const _0x216cbd=_0x4d9555(),_0x53ef49=this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x8e5dd4,_0x2fd7e3),_0x51b537=_0x26d2b2['id'],_0x1f7923=_0x17bd62?'deletion:'+_0x17bd62:_0xe0fe('0x114'),_0x339038=this[_0xe0fe('0x51')]({'id':_0x216cbd,'type':_0x1f7923,'createdAt':new Date(),'authorId':_0x51b537,'attributes':_0x4ef77d});return this[_0xe0fe('0xff')](_0x1f7923,_0x216cbd,_0x51b537,_0x53ef49),_0x339038;}}[_0xe0fe('0xa1')](_0x2fac6e,_0x40d6c3=_0xe0fe('0xe7'),_0x3d1800={}){const _0x5c94ff=this['editor'][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'],_0x9923b2=_0x2fac6e[_0xe0fe('0x130')](_0x4bc693=>new _0x1d44fa(_0x4bc693[_0xe0fe('0xe0')],_0x4bc693['end'])),_0x4a3bd6=new Set();for(const {suggestion:_0xfc9f06,meta:_0x426b6f}of this['_findSuggestions'](_0x9923b2,_0xe0fe('0xce')))_0x426b6f[_0xe0fe('0x2d')]&&!_0x426b6f[_0xe0fe('0x113')]&&_0x4a3bd6['add'](_0xfc9f06);for(const _0x37d1fc of _0x4a3bd6)if(_0x37d1fc[_0xe0fe('0xc5')]){const _0x24e7f9=_0x37d1fc[_0xe0fe('0x112')]();(!_0x37d1fc[_0xe0fe('0x122')]||!_0x37d1fc['attributes']['skipNestingCheck'])&&(_0x24e7f9[_0xe0fe('0x12a')](_0x148bc5=>_0x9923b2[_0xe0fe('0x4e')](_0x54b746=>_0x54b746[_0xe0fe('0xfe')](_0x148bc5,!0x0)))&&_0x37d1fc[_0xe0fe('0x2b')]());if(_0x9923b2[_0xe0fe('0x12a')](_0x102e79=>_0x24e7f9[_0xe0fe('0x4e')](_0x348ea1=>_0x348ea1['containsRange'](_0x102e79,!0x0)))){const _0x46ee54=this[_0xe0fe('0xeb')]['getSuggestionCallback'](_0xe0fe('0x114'),_0x40d6c3,_0xe0fe('0xb9'));return this[_0xe0fe('0xdd')](()=>_0x46ee54(_0x2fac6e,null,_0x3d1800)),null;}}else{const _0x1473b2=_0x37d1fc[_0xe0fe('0x69')]();_0x9923b2[_0xe0fe('0x4e')](_0x18835d=>_0x18835d[_0xe0fe('0xfe')](_0x1473b2,!0x0))&&_0x37d1fc[_0xe0fe('0x2b')]();if(_0x9923b2[_0xe0fe('0x12a')](_0x4e10bb=>_0x1473b2['containsRange'](_0x4e10bb,!0x0))){const _0x48a4ad=this['_suggestionFactory'][_0xe0fe('0x74')]('deletion',_0x40d6c3,_0xe0fe('0xb9'));return this[_0xe0fe('0xdd')](()=>_0x48a4ad(_0x9923b2,null,_0x3d1800)),null;}}const _0x124f50=this['_suggestionFactory'][_0xe0fe('0x74')](_0xe0fe('0x114'),_0x40d6c3,_0xe0fe('0x5b'));let _0x35cc1b=null;for(const _0x3a367d of this[_0xe0fe('0xa4')]())if(_0x3a367d[_0xe0fe('0x13a')]['id']==_0x5c94ff['id']&&_0x3a367d[_0xe0fe('0x2c')]&&_0xe0fe('0x114')==_0x3a367d[_0xe0fe('0x50')]&&_0x3a367d[_0xe0fe('0x11')]==_0x40d6c3&&Ot(_0x3a367d,_0x3d1800)&&(_0x124f50(_0x3a367d[_0xe0fe('0x112')](),_0x9923b2)||_0x124f50(_0x9923b2,_0x3a367d['getRanges']()))){if(_0x35cc1b){if(_0x3a367d[_0xe0fe('0x3c')]&&_0x3a367d[_0xe0fe('0x3c')]['length'])continue;for(const _0x54c276 of _0x3a367d['getRanges']())_0x35cc1b[_0xe0fe('0xa0')](_0x54c276)||_0x35cc1b[_0xe0fe('0x12d')](_0x54c276);_0x3a367d['removeMarkers']();}else{_0x35cc1b=_0x3a367d;for(const _0x16ba1b of _0x9923b2)_0x3a367d[_0xe0fe('0xa0')](_0x16ba1b)||_0x3a367d[_0xe0fe('0x12d')](_0x16ba1b);}}if(_0x35cc1b)return _0x35cc1b;_0x4a3bd6[_0xe0fe('0x49')]();for(const {suggestion:_0x49b11c,meta:_0x1aaa11}of this[_0xe0fe('0x37')](_0x9923b2,_0xe0fe('0x114')))_0x1aaa11[_0xe0fe('0x2d')]&&(this[_0xe0fe('0x134')]||!_0x1aaa11[_0xe0fe('0x1f')]&&!_0x1aaa11['isInsideObject'])&&Ot(_0x49b11c,_0x3d1800)&&_0x4a3bd6[_0xe0fe('0x13b')](_0x49b11c);for(const _0x257439 of _0x4a3bd6){const _0x37659c=_0x257439[_0xe0fe('0x112')]();if(!_0x3d1800||!_0x3d1800[_0xe0fe('0xa9')]){if(_0x9923b2[_0xe0fe('0x12a')](_0x5c002f=>_0x37659c[_0xe0fe('0x4e')](_0x191129=>_0x191129[_0xe0fe('0xfe')](_0x5c002f,!0x0))))return _0x257439;}(!_0x257439['attributes']||!_0x257439['attributes'][_0xe0fe('0xa9')])&&(_0x37659c['every'](_0x4c8a14=>_0x9923b2['some'](_0x3318a8=>_0x3318a8[_0xe0fe('0xfe')](_0x4c8a14,!0x0)))&&_0x257439['discard']());}const _0x44bb0d=_0x4d9555(),_0xef642f=_0x5c94ff['id'],_0x38b7f2='deletion:'+_0x40d6c3,_0x426f60=this['_setSuggestionData']({'id':_0x44bb0d,'type':_0x38b7f2,'createdAt':new Date(),'authorId':_0xef642f,'attributes':_0x3d1800});for(const _0x5b9f9d of _0x9923b2)_0x5b9f9d[_0xe0fe('0xc7')](),_0x5b9f9d[_0xe0fe('0xab')]||_0xe0fe('0x121')==_0x5b9f9d[_0xe0fe('0x6a')]['rootName']||this[_0xe0fe('0xff')](_0x38b7f2,_0x44bb0d,_0xef642f,_0x5b9f9d,_0x7857d8[_0xe0fe('0xc6')]());return _0x426f60;}[_0xe0fe('0xc2')](_0x2ddca7,_0x2250ba){const _0x11dbe1=_0x2ddca7['getFirstMarker']();this['_model'][_0xe0fe('0xd2')](_0x1ef58f=>{_0x1ef58f[_0xe0fe('0x45')](_0x11dbe1,{'range':_0x2250ba});});}[_0xe0fe('0x23')](_0x50c31e){const _0x99739b=_0x50c31e['id'],_0x495dbd=this[_0xe0fe('0xcc')][_0xe0fe('0x75')][_0xe0fe('0x115')](_0xe0fe('0x7e'));this['_commentsRepository']['hasCommentThread'](_0x99739b)||this[_0xe0fe('0x36')][_0xe0fe('0x52')]({'channelId':_0x495dbd,'threadId':_0x99739b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x175cf9=this[_0xe0fe('0x36')][_0xe0fe('0xf8')](_0x99739b);_0x175cf9[_0xe0fe('0x22')](_0xe0fe('0x5d')),_0x175cf9['isRemovable']=!0x1,_0x50c31e[_0xe0fe('0x3c')]=_0x175cf9;}[_0xe0fe('0x8e')](_0x3a850d,_0x473b1f,_0x30d57c,_0x4916e8){if(_0x3a850d[_0xe0fe('0x50')]!=_0x473b1f||_0x3a850d[_0xe0fe('0x11')]!=_0x30d57c||_0x3a850d[_0xe0fe('0x41')]['id']!=_0x4916e8)throw this[_0xe0fe('0xcc')][_0xe0fe('0x90')](_0xe0fe('0x54')),new _0x27bad2(_0xe0fe('0x54'),this);}[_0xe0fe('0xcf')](_0x6cae12,_0xbba479){const _0x26effe=_0x6cae12['getFirstRange']();if(_0xbba479[_0xe0fe('0x8f')](_0x26effe))_0x6cae12[_0xe0fe('0x59')]();else{if(_0x26effe[_0xe0fe('0xfe')](_0xbba479)){const _0x5c05a8=this[_0xe0fe('0xb8')]['createPositionAt'](_0xbba479[_0xe0fe('0xe0')][_0xe0fe('0x25')],_0xe0fe('0x30'));this[_0xe0fe('0xc2')](_0x6cae12,this['_model'][_0xe0fe('0x13f')](_0x26effe['start'],_0x5c05a8));const _0x118556=_0x4d9555(),_0xb4b21e=_0x6cae12['creator']['id'],_0x1c6fe9=_0x6cae12[_0xe0fe('0x50')]+':'+_0x6cae12[_0xe0fe('0x11')];this[_0xe0fe('0x51')]({'id':_0x118556,'type':_0x1c6fe9,'createdAt':new Date(),'authorId':_0xb4b21e,'data':_0x6cae12['data'],'attributes':_0x6cae12[_0xe0fe('0x122')]});const _0x26b039=this[_0xe0fe('0xb8')][_0xe0fe('0xc0')](_0xbba479['end']['parent'],_0xe0fe('0xc8')),_0x190758=this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x26b039,_0x26effe[_0xe0fe('0x30')]);this['_addSuggestionMarker'](_0x1c6fe9,_0x118556,_0xb4b21e,_0x190758);}else{if(_0x26effe[_0xe0fe('0xa8')](_0xbba479[_0xe0fe('0xe0')])){const _0x388cd9=this[_0xe0fe('0xb8')][_0xe0fe('0xc0')](_0xbba479['start']['nodeBefore'],_0xe0fe('0x30'));this[_0xe0fe('0xc2')](_0x6cae12,this['_model']['createRange'](_0x26effe[_0xe0fe('0xe0')],_0x388cd9));}else{const _0x2566de=this[_0xe0fe('0xb8')][_0xe0fe('0xc0')](_0xbba479['end'][_0xe0fe('0x7')],_0xe0fe('0xc8'));this[_0xe0fe('0xc2')](_0x6cae12,this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x2566de,_0x26effe[_0xe0fe('0x30')]));}}}}[_0xe0fe('0x77')](_0x50393d){for(const {suggestion:_0x3dce91,meta:_0x18ce0e}of this[_0xe0fe('0x37')](_0x50393d,_0xe0fe('0xce'))){if(!_0x18ce0e['isOwn'])continue;const _0x48c10=_0x3dce91[_0xe0fe('0x112')]();for(const _0x32de0e of _0x48c10)if(!_0x50393d['getDifference'](_0x32de0e)[_0xe0fe('0x46')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xba2130){const _0x5295f8=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))[_0xe0fe('0xb4')](_0xba2130);if(!_0x5295f8)throw new _0x27bad2(_0xe0fe('0x8d'),this);return _0x5295f8;}[_0xe0fe('0x13')](_0x11c3e5){const _0x212c8b=this['editor'][_0xe0fe('0xa')][_0xe0fe('0x115')]('Users'),_0x353f0c=_0x292271('external:'+_0x11c3e5),_0x138275=_0x212c8b['getUser'](_0x353f0c);return _0x138275||_0x212c8b['addUser']({'id':_0x353f0c,'name':_0x11c3e5});}[_0xe0fe('0xd9')](_0x416f44,_0x421599,_0x25b1e6,_0x430faa,_0x3955dd){const _0x1b79d2=this[_0xe0fe('0x10c')](_0x430faa),_0x5b2a06=this['_suggestionFactory'][_0xe0fe('0xdc')](_0x416f44,_0x421599,_0x25b1e6,_0x1b79d2,_0x3955dd,_0xc5a824=>this[_0xe0fe('0x116')](_0x25b1e6,{'attributes':_0xc5a824}));return this[_0xe0fe('0x8b')](_0x5b2a06,_0xe0fe('0xb9'),()=>{this[_0xe0fe('0x116')](_0x25b1e6,{'state':_0xe0fe('0x106')});},{'priority':'high'}),this['listenTo'](_0x5b2a06,_0xe0fe('0x2b'),()=>{this[_0xe0fe('0x116')](_0x25b1e6,{'state':_0xe0fe('0x9d')});},{'priority':'high'}),this[_0xe0fe('0x4f')][_0xe0fe('0x35')](_0x25b1e6,_0x5b2a06),this[_0xe0fe('0x26')][_0xe0fe('0x35')](_0x5b2a06,'notReady'),_0x5b2a06;}[_0xe0fe('0x17')](_0x4a9a69){const _0x5261b4=_0x4a9a69[_0xe0fe('0x133')](':');return{'group':_0x5261b4[0x0],'type':_0x5261b4[0x1],'subType':_0x5261b4[_0xe0fe('0x46')]>=0x5?_0x5261b4[0x2]:null,'id':_0x5261b4[_0xe0fe('0x46')]<0x5?_0x5261b4[0x2]:_0x5261b4[0x3],'authorId':_0x5261b4[_0xe0fe('0x46')]<0x5?_0x5261b4[0x3]:_0x5261b4[0x4],'markerCount':0x6==_0x5261b4['length']?_0x5261b4[0x5]:null};}['_breakSuggestionMarker'](_0x374494,_0x37b861,_0x3f610d){const _0xef1616=_0x374494[_0xe0fe('0x69')](),_0x5b46e7=_0xef1616[_0xe0fe('0xe0')],_0x54d055=_0xef1616[_0xe0fe('0x30')];this[_0xe0fe('0xc2')](_0x374494,this[_0xe0fe('0xb8')]['createRange'](_0x5b46e7,_0x37b861));const _0x44fe26=_0x4d9555(),_0x50300b=_0x374494[_0xe0fe('0x41')]['id'],_0x45b391=_0x374494[_0xe0fe('0x50')]+(_0x374494[_0xe0fe('0x11')]?':'+_0x374494[_0xe0fe('0x11')]:'');this[_0xe0fe('0x51')]({'id':_0x44fe26,'type':_0x45b391,'createdAt':new Date(),'authorId':_0x50300b,'originalSuggestionId':_0x374494['id'],'attributes':_0x374494['attributes'],'data':_0x374494['data']}),_0xe0fe('0x7f')==_0x374494[_0xe0fe('0x50')]&&(_0x3f610d=this[_0xe0fe('0xb8')][_0xe0fe('0xa5')](_0x3f610d[_0xe0fe('0x7')])),this[_0xe0fe('0xff')](_0x45b391,_0x44fe26,_0x50300b,this[_0xe0fe('0xb8')]['createRange'](_0x3f610d,_0x54d055));}[_0xe0fe('0x37')](_0x58f46a,_0x149dd0=null){const _0x4b405f=[],_0x2e5bd1=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'];Array['isArray'](_0x58f46a)||(_0x58f46a=[_0x58f46a]);for(const _0xe6fd96 of this[_0xe0fe('0xa4')]()){if(!_0xe6fd96['isInContent'])continue;if(_0x149dd0&&_0xe6fd96[_0xe0fe('0x50')]!=_0x149dd0)continue;let _0x18801=!0x1;for(const _0x5eda03 of _0xe6fd96[_0xe0fe('0x112')]()){for(const _0xb58e9d of _0x58f46a){const _0x6fdd77=_0xb58e9d[_0xe0fe('0xe0')]['isEqual'](_0x5eda03[_0xe0fe('0x30')])||_0xb58e9d[_0xe0fe('0x30')]['isEqual'](_0x5eda03[_0xe0fe('0xe0')]);if(_0x6fdd77||_0xb58e9d[_0xe0fe('0x60')](_0x5eda03)){const _0x1f5a83=_0xb58e9d[_0xe0fe('0xfe')](_0x5eda03)&&_t(this['_model'][_0xe0fe('0x95')],_0x5eda03['start'],_0xb58e9d),_0x10d7a6=_0x5eda03['containsRange'](_0xb58e9d)&&_t(this[_0xe0fe('0xb8')]['schema'],_0xb58e9d['start'],_0x5eda03);_0x4b405f[_0xe0fe('0x136')]({'suggestion':_0xe6fd96,'meta':{'isOwn':_0x2e5bd1==_0xe6fd96[_0xe0fe('0x13a')],'isNextTo':_0x6fdd77,'isInsideObject':_0x1f5a83,'containsRangeInObject':_0x10d7a6}}),_0x18801=!0x0;break;}}if(_0x18801)break;}}return _0x4b405f;}[_0xe0fe('0xff')](_0x54fa7f,_0x233392,_0x1e7e10,_0x1088c8,_0x1e186c){this['_model'][_0xe0fe('0xd2')](_0x464801=>{let _0x3a69cf=_0xe0fe('0xb')+_0x54fa7f+':'+_0x233392+':'+_0x1e7e10;_0x1e186c&&(_0x3a69cf=_0x3a69cf+':'+_0x1e186c),_0x464801[_0xe0fe('0x44')](_0x3a69cf,{'range':_0x1088c8,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xe0fe('0x7c')](_0x52c14f){const _0x2d1452=_0x52c14f[_0xe0fe('0x84')],_0x2c030f=_0x52c14f[_0xe0fe('0x91')];_0x52c14f[_0xe0fe('0x84')]=null,null!=_0x2d1452&&(_0x2d1452['next']=null),_0x52c14f[_0xe0fe('0x91')]=null,null!=_0x2c030f&&(_0x2c030f['previous']=null),_0xe0fe('0xaf')==this['_suggestionState'][_0xe0fe('0x115')](_0x52c14f)&&(this['_suggestionState'][_0xe0fe('0x35')](_0x52c14f,'removed'),this[_0xe0fe('0xf4')]('suggestionUnloaded',_0x52c14f,_0x2d1452,_0x2c030f));}[_0xe0fe('0x51')](_0x2d11d7){const _0x5287f1=_0x2d11d7['id'],_0x363724=this['addSuggestionData'](_0x2d11d7);if(this[_0xe0fe('0x4')]&&this[_0xe0fe('0x4')][_0xe0fe('0x6')]){const _0x1366f0=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0xef')),_0x2a921d=_0x363724[_0xe0fe('0xde')],_0x2c903a=_0x363724[_0xe0fe('0x11')]?_0x363724[_0xe0fe('0x50')]+':'+_0x363724['subType']:_0x363724['type'],_0x43b33e=this[_0xe0fe('0xcc')][_0xe0fe('0x140')],_0x2b3cfd=_0x1366f0[_0xe0fe('0x13b')](_0x4a8c73(_0x43b33e,_0xe0fe('0xfc'))),_0xae5f45={'id':_0x5287f1,'type':_0x2c903a,'hasComments':_0x2a921d,'data':_0x2d11d7['data']||null,'originalSuggestionId':_0x2d11d7[_0xe0fe('0xd0')]||null,'attributes':_0x363724[_0xe0fe('0x122')]};this[_0xe0fe('0x4')]['addSuggestion'](_0xae5f45)[_0xe0fe('0x89')](_0xdbb123=>{_0x363724['_saved']=!0x0,_0x1366f0[_0xe0fe('0x109')](_0x2b3cfd),_0xdbb123&&_0xdbb123['createdAt']&&(this[_0xe0fe('0x4f')]['get'](_0x5287f1)['createdAt']=_0xdbb123[_0xe0fe('0x11b')]);})['catch'](_0x3d3bdc=>{throw _0x566570('error-saving-suggestion-data-suggestion-discarded'),this[_0xe0fe('0xcc')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x363724[_0xe0fe('0x2b')]();}),_0x363724[_0xe0fe('0x132')](),this[_0xe0fe('0x4f')]['delete'](_0x363724['id']),this[_0xe0fe('0x26')][_0xe0fe('0x33')](_0x363724),_0x3d3bdc;});}return _0x363724;}[_0xe0fe('0x116')](_0x2a0259,_0x22cbf5){const _0x349808=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0xef')),_0x569541=this[_0xe0fe('0x93')](_0x2a0259);if(this['_adapter']&&this['_adapter'][_0xe0fe('0xfa')]){if(_0x569541['_saved']){const _0x3bbfe4=_0x349808['add'](_0x4a8c73(this['editor'][_0xe0fe('0x140')],_0xe0fe('0xfc')));this[_0xe0fe('0x4')][_0xe0fe('0xfa')](_0x2a0259,_0x22cbf5)[_0xe0fe('0x89')](()=>{_0x349808[_0xe0fe('0x109')](_0x3bbfe4);});}else _0x569541['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2a0259,_0x22cbf5);});}}[_0xe0fe('0xe8')](_0x57a50d){if(!this[_0xe0fe('0x4')]||!this[_0xe0fe('0x4')][_0xe0fe('0x93')])throw new _0x27bad2('track-changes-adapter-missing-getsuggestion',this);return this[_0xe0fe('0x4')][_0xe0fe('0x93')](_0x57a50d);}['_handleNewSuggestionMarker'](_0xdbcbaa){const {id:_0x1eb54d,type:_0x12b5f7,subType:_0x5856b5,authorId:_0x578ae6}=this[_0xe0fe('0x17')](_0xdbcbaa),_0xe4b2df=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x1eb54d)||this['_createSuggestion'](_0x12b5f7,_0x5856b5,_0x1eb54d,_0x578ae6,{});switch(this['_checkSuggestionCorrectness'](_0xe4b2df,_0x12b5f7,_0x5856b5,_0x578ae6),this['_suggestionState'][_0xe0fe('0x115')](_0xe4b2df)){case _0xe0fe('0xd4'):this[_0xe0fe('0xe8')](_0x1eb54d)[_0xe0fe('0x89')](_0x34e63b=>{let _0x485d7b=Promise[_0xe0fe('0x20')]();_0x34e63b[_0xe0fe('0xde')]&&(_0x485d7b=this[_0xe0fe('0x36')]['fetchCommentThread']({'channelId':this[_0xe0fe('0xcc')][_0xe0fe('0x75')][_0xe0fe('0x115')](_0xe0fe('0x7e')),'threadId':_0x1eb54d})),_0x485d7b[_0xe0fe('0x89')](()=>{this[_0xe0fe('0x2a')](_0x34e63b)['_saved']=!0x0;});}),this[_0xe0fe('0x26')][_0xe0fe('0x35')](_0xe4b2df,'markerReady');break;case _0xe0fe('0x2'):this[_0xe0fe('0x116')](_0x1eb54d,{'state':_0xe0fe('0xf1')});case _0xe0fe('0xc1'):this[_0xe0fe('0x26')][_0xe0fe('0x35')](_0xe4b2df,_0xe0fe('0xaf')),this[_0xe0fe('0xf4')](_0xe0fe('0x9a'),_0xe4b2df);break;case _0xe0fe('0xaf'):this[_0xe0fe('0xf4')](_0xe0fe('0xe4'),_0xe4b2df);}return _0xe4b2df[_0xe0fe('0x99')](_0xdbcbaa),_0xe4b2df;}['_refreshSuggestionsChain'](_0x3bad0a){const _0x3ed4ab=Array['from'](_0x3bad0a)[_0xe0fe('0xd5')](_0x4839bd=>!_0x4839bd[_0xe0fe('0xc5')]),_0x42239f=this[_0xe0fe('0xa4')]({'skipNotAttached':!0x0})['filter'](_0x286d92=>!_0x286d92[_0xe0fe('0xc5')]),_0x1bbac5=_0x42239f[_0xe0fe('0xd5')](_0x33eade=>!_0x3bad0a[_0xe0fe('0xc4')](_0x33eade)),_0x435532=new Map(_0x42239f['map'](_0x4085ac=>[_0x4085ac,this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0x4085ac['type'],_0x4085ac[_0xe0fe('0x11')],_0xe0fe('0x142'))])),_0x2d380a=new Map(_0x42239f['map'](_0x1a971e=>[_0x1a971e,_0x1a971e[_0xe0fe('0x69')]()])),_0x1fa554=new Set(),_0x182e7c=new Set();for(let _0x33f104=0x0;_0x33f104<_0x3ed4ab[_0xe0fe('0x46')];_0x33f104++)_0x4a9964(_0x3ed4ab[_0x33f104],_0x3ed4ab,_0x33f104+0x1);for(let _0x1352d0=0x0;_0x1352d0<_0x3ed4ab[_0xe0fe('0x46')];_0x1352d0++)_0x4a9964(_0x3ed4ab[_0x1352d0],_0x1bbac5,0x0);for(let _0x427492=0x0;_0x427492<_0x3ed4ab['length'];_0x427492++){const _0x303dee=_0x3ed4ab[_0x427492];!_0x182e7c[_0xe0fe('0xc4')](_0x303dee)&&_0x303dee['previous']&&(_0x303dee['previous'][_0xe0fe('0x91')]===_0x303dee&&(_0x303dee[_0xe0fe('0x84')]['next']=null),_0x303dee['previous']=null),!_0x1fa554[_0xe0fe('0xc4')](_0x303dee)&&_0x303dee[_0xe0fe('0x91')]&&(_0x303dee[_0xe0fe('0x91')][_0xe0fe('0x84')]===_0x303dee&&(_0x303dee['next']['previous']=null),_0x303dee['next']=null);}function _0x4a9964(_0xe7ac57,_0x437868,_0x48039d){for(let _0x594c1b=_0x48039d;_0x594c1b<_0x437868['length'];_0x594c1b++){const _0x914bfc=_0x5d4394(_0xe7ac57,_0x437868[_0x594c1b]);_0x914bfc&&(_0x914bfc[0x0]['next']=_0x914bfc[0x1],_0x914bfc[0x1][_0xe0fe('0x84')]=_0x914bfc[0x0],_0x1fa554[_0xe0fe('0x13b')](_0x914bfc[0x0]),_0x182e7c[_0xe0fe('0x13b')](_0x914bfc[0x1]));}}function _0x5d4394(_0x147636,_0x233062){if(_0x147636[_0xe0fe('0x13a')]['id']!==_0x233062[_0xe0fe('0x13a')]['id'])return null;const _0xadb594=_0x435532[_0xe0fe('0x115')](_0x147636)(_0x147636,_0x233062,_0x2d380a[_0xe0fe('0x115')](_0x147636),_0x2d380a['get'](_0x233062));if(!_0xadb594)return null;return _0x435532[_0xe0fe('0x115')](_0x233062)(_0x147636,_0x233062,_0x2d380a[_0xe0fe('0x115')](_0x147636),_0x2d380a[_0xe0fe('0x115')](_0x233062))?_0xadb594[0x1]['commentThread']&&_0xadb594[0x1][_0xe0fe('0x3c')][_0xe0fe('0x46')]?null:_0xadb594:null;}}['_joinWithAdjacentSuggestions'](_0x1899e9){const _0x1bef7a=Array['from'](_0x1899e9),_0x4ef7b8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5b91dc=_0x4ef7b8['filter'](_0x3b28b4=>!_0x1899e9[_0xe0fe('0xc4')](_0x3b28b4)),_0x18a36b=new Map(_0x1bef7a['map'](_0x482b97=>[_0x482b97,this['_suggestionFactory']['getSuggestionCallback'](_0x482b97[_0xe0fe('0x50')],_0x482b97['subType'],_0xe0fe('0x5b'))])),_0x28b694=new Map(_0x4ef7b8['map'](_0x200a59=>[_0x200a59,_0x200a59[_0xe0fe('0x112')]()]));for(let _0x343446=0x0;_0x343446<_0x1bef7a[_0xe0fe('0x46')];_0x343446++){if(_0x539b4a(this,_0x1bef7a[_0x343446],_0x1bef7a,_0x343446+0x1))return!0x0;}for(let _0x11ed71=0x0;_0x11ed71<_0x1bef7a['length'];_0x11ed71++){if(_0x539b4a(this,_0x1bef7a[_0x11ed71],_0x5b91dc,0x0))return!0x0;}return!0x1;function _0x539b4a(_0x164f28,_0xa3b452,_0x24dc99,_0x39593e){for(let _0xc23286=_0x39593e;_0xc23286<_0x24dc99['length'];_0xc23286++){const _0x247eb6=_0x24dc99[_0xc23286];if(_0x247eb6[_0xe0fe('0x50')]!==_0xa3b452[_0xe0fe('0x50')]||_0x247eb6[_0xe0fe('0x13a')]['id']!==_0xa3b452[_0xe0fe('0x13a')]['id']||_0x247eb6[_0xe0fe('0x11')]!==_0xa3b452['subType'])continue;if(!Ut(_0xa3b452,_0x247eb6))continue;const _0x1524bb=_0x18a36b[_0xe0fe('0x115')](_0xa3b452),_0x33b895=_0x28b694['get'](_0xa3b452),_0x35fd62=_0x28b694[_0xe0fe('0x115')](_0x247eb6),_0x77badc=_0xa3b452[_0xe0fe('0x3c')]&&_0xa3b452['commentThread']['length'],_0x3eb3ca=_0x247eb6[_0xe0fe('0x3c')]&&_0x247eb6[_0xe0fe('0x3c')]['length'];if(!_0x77badc&&_0x1524bb(_0x35fd62,_0x33b895))return _0x164f28[_0xe0fe('0x70')](_0x247eb6,_0xa3b452),_0x28b694[_0xe0fe('0x33')](_0xa3b452),!0x0;if(!_0x3eb3ca&&_0x1524bb(_0x33b895,_0x35fd62))return _0x164f28[_0xe0fe('0x70')](_0xa3b452,_0x247eb6),_0x28b694['delete'](_0x247eb6),!0x0;}return!0x1;}}[_0xe0fe('0x70')](_0x14ac6d,_0x3971fb){if(_0x14ac6d[_0xe0fe('0xc5')])for(const _0x2ba1b3 of _0x3971fb[_0xe0fe('0x112')]())_0x14ac6d[_0xe0fe('0x12d')](_0x2ba1b3);else{const _0x324706=_0x3971fb[_0xe0fe('0x69')]()[_0xe0fe('0x30')];this[_0xe0fe('0xc2')](_0x14ac6d,this['_model'][_0xe0fe('0x13f')](_0x14ac6d[_0xe0fe('0x69')]()[_0xe0fe('0xe0')],_0x324706));}_0x3971fb[_0xe0fe('0x59')]();}}class Bt{constructor(_0x2943ea){this[_0xe0fe('0x12b')]=_0x2943ea,this[_0xe0fe('0xb8')]=_0x2943ea['model'],this[_0xe0fe('0xbf')]=new Map(),this[_0xe0fe('0x72')]=new Map(),this[_0xe0fe('0x68')]();}[_0xe0fe('0xdc')](_0x44e211,_0xeaf0a2,_0xe5017d,_0x58942d,_0x13cb05,_0x26361d){return new _0x7857d8(this[_0xe0fe('0xb8')],{'type':_0x44e211,'subType':_0xeaf0a2,'id':_0xe5017d,'author':_0x58942d,'creator':_0x58942d,'attributes':_0x13cb05,'onAttributesChange':_0x26361d,'onAccept':(..._0x1d7952)=>this['getSuggestionCallback'](_0x44e211,_0xeaf0a2,_0xe0fe('0xb9'))(..._0x1d7952),'onDiscard':(..._0x69b0fc)=>this[_0xe0fe('0x74')](_0x44e211,_0xeaf0a2,'discard')(..._0x69b0fc)});}[_0xe0fe('0x137')](_0xda96ec,_0x536618,_0x203728,_0x10b1e2){const _0x4476f3=_0xda96ec+':'+_0x536618+':'+_0x203728;this[_0xe0fe('0xbf')][_0xe0fe('0x35')](_0x4476f3,_0x10b1e2);}['getSuggestionCallback'](_0x18c7b9,_0x50c9fb,_0x1a8b92){const _0x488e78=_0x18c7b9+':'+_0x50c9fb+':'+_0x1a8b92;return this['_customCallbacks']['get'](_0x488e78)||this[_0xe0fe('0x72')]['get'](_0x18c7b9+':'+_0x1a8b92);}[_0xe0fe('0x68')](){const _0x2672a6=()=>!0x1,_0x2607a5=_0xd59bc8=>{_0xd59bc8['sort']((_0x5bc0fd,_0x529a06)=>_0x5bc0fd['start'][_0xe0fe('0x67')](_0x529a06[_0xe0fe('0xe0')])?0x1:-0x1),this[_0xe0fe('0xb8')][_0xe0fe('0xd2')](_0x59882f=>{for(const _0x2f52ba of _0xd59bc8){let _0x519c36;_0x519c36=_0x2f52ba[_0xe0fe('0x30')]['isAtEnd']&&_0x2f52ba[_0xe0fe('0x30')][_0xe0fe('0x7')]==_0x2f52ba[_0xe0fe('0xe0')][_0xe0fe('0xf7')]?_0x59882f[_0xe0fe('0x92')](_0x2f52ba[_0xe0fe('0xe0')][_0xe0fe('0xf7')],'on'):_0x59882f['createSelection'](_0x2f52ba),this[_0xe0fe('0xb8')]['deleteContent'](_0x519c36,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x174e06=(_0x88d5,_0x40184a)=>{this[_0xe0fe('0xb8')]['change'](_0x1e55e9=>{const {commandName:_0x20aa3b,commandParams:_0x181fdf=[]}=_0x40184a,_0x201e86=_0x88d5[_0xe0fe('0x130')](_0x280009=>(Mt(_0x280009)&&(_0x280009=this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x280009[_0xe0fe('0x30')])),_0x280009))[_0xe0fe('0xd5')](_0x2abdb2=>_0xe0fe('0x121')!==_0x2abdb2[_0xe0fe('0x6a')][_0xe0fe('0x2e')]);if(_0x201e86['length']<0x1)return;const _0x119847=Array['from'](this[_0xe0fe('0xb8')][_0xe0fe('0x27')]['selection'][_0xe0fe('0x112')]())[_0xe0fe('0x130')](_0x7a004=>_0x1d44fa[_0xe0fe('0xe1')](_0x7a004));_0x1e55e9['setSelection'](_0x201e86);for(const _0x27e8e6 of this[_0xe0fe('0x12b')][_0xe0fe('0x1d')][_0xe0fe('0x1d')]())_0x27e8e6[_0xe0fe('0x29')]();_0x181fdf[_0xe0fe('0x136')]({'forceDefaultExecution':!0x0}),this[_0xe0fe('0x12b')][_0xe0fe('0x8a')](_0x20aa3b,..._0x181fdf);const _0x42873f=_0x119847[_0xe0fe('0xd5')](_0x238f37=>'$graveyard'!=_0x238f37[_0xe0fe('0x6a')][_0xe0fe('0x2e')]);_0x42873f[_0xe0fe('0x46')]>0x0&&_0x1e55e9[_0xe0fe('0x61')](_0x42873f);for(const _0x1f8831 of _0x119847)_0x1f8831[_0xe0fe('0xc7')]();});},_0x14e172=(_0x53793b,_0x50e7ed)=>0x1==_0x53793b[_0xe0fe('0x46')]&&0x1==_0x50e7ed['length']&&_0x53793b[0x0][_0xe0fe('0x30')]['isEqual'](_0x50e7ed[0x0]['start']),_0x25bf2e=(_0x67d184,_0x371246,_0x248443,_0x4234ef)=>xt(_0x67d184,_0x371246,_0x248443,_0x4234ef,this['_model'])?[_0x67d184,_0x371246]:xt(_0x371246,_0x67d184,_0x4234ef,_0x248443,this[_0xe0fe('0xb8')])?[_0x371246,_0x67d184]:null;this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0xbc'),_0x2672a6),this['_defaultCallbacks'][_0xe0fe('0x35')](_0xe0fe('0x127'),_0x2607a5),this[_0xe0fe('0x72')]['set'](_0xe0fe('0x3'),_0x14e172),this['_defaultCallbacks']['set']('insertion:chain',_0x25bf2e),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0x87'),_0x2607a5),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0x10f'),_0x2672a6),this[_0xe0fe('0x72')]['set'](_0xe0fe('0x9'),_0x14e172),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0x3e'),_0x25bf2e),this[_0xe0fe('0x72')]['set'](_0xe0fe('0x129'),_0x174e06),this['_defaultCallbacks'][_0xe0fe('0x35')](_0xe0fe('0x6e'),_0x2672a6),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0x55'),_0x14e172),this['_defaultCallbacks']['set'](_0xe0fe('0x57'),_0x2672a6),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0x6c'),_0x174e06),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0xee'),_0x2672a6),this['_defaultCallbacks']['set'](_0xe0fe('0xad'),_0x14e172),this[_0xe0fe('0x72')]['set']('formatBlock:chain',_0x2672a6);}}function _t(_0x1b74c6,_0x273e79,_0x5f042b){for(const _0x4431f6 of _0x273e79[_0xe0fe('0x7')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4431f6['root']==_0x4431f6)return!0x1;if(!_0x5f042b['containsItem'](_0x4431f6))return!0x1;if(_0x1b74c6[_0xe0fe('0x1b')](_0x4431f6)||_0x1b74c6['isLimit'](_0x4431f6))return!0x0;}return!0x1;}function Mt(_0x2f3f0d){return _0x2f3f0d[_0xe0fe('0x30')][_0xe0fe('0x7')]==_0x2f3f0d[_0xe0fe('0xe0')]['nodeAfter']&&_0x2f3f0d['end'][_0xe0fe('0x38')];}function $t(_0x55027f,_0x466b25,_0x4f7c76,_0x3a020c){const _0x2f6547=_0x5ceb65=>!_0x5ceb65[_0xe0fe('0x105')]['is'](_0xe0fe('0xd1'))&&!_0x3a020c['isObject'](_0x5ceb65['item']),_0x568aa2=_0x55027f['start'][_0xe0fe('0xc')](_0x2f6547),_0x549637=_0x55027f[_0xe0fe('0x30')]['getLastMatchingPosition'](_0x2f6547,{'direction':_0xe0fe('0x1c')});return(!_0x55027f[_0xe0fe('0xe0')]['isEqual'](_0x568aa2)||!_0x55027f['end'][_0xe0fe('0x8f')](_0x549637))&&(_0x568aa2[_0xe0fe('0x67')](_0x549637)?_0x4f7c76[_0xe0fe('0x45')](_0x466b25,{'range':_0x4f7c76['createRange'](_0x568aa2,_0x549637)}):_0x4f7c76[_0xe0fe('0xc9')](_0x466b25),!0x0);}function Nt(_0x4ed7f7){return _0x292271(_0x4ed7f7);}function Rt(_0x337a99){const _0x500c8d=_0x337a99[_0xe0fe('0xe0')][_0xe0fe('0xf7')];return _0x500c8d&&_0x500c8d['is'](_0xe0fe('0x9c'));}function jt(_0x535410,_0x5740c0){const _0x2d32d7=_0x5740c0['schema']['isObject'](_0x535410)||_0x5740c0[_0xe0fe('0x95')][_0xe0fe('0xea')](_0x535410);return _0x5740c0[_0xe0fe('0x13f')](_0x5740c0[_0xe0fe('0xc0')](_0x535410,_0xe0fe('0x39')),_0x2d32d7?_0x5740c0[_0xe0fe('0x118')](_0x535410):_0x5740c0[_0xe0fe('0xc0')](_0x535410,_0xe0fe('0x30')));}function xt(_0x3e442f,_0x2d404d,_0x1e1dd1,_0x4a2834,_0x49be36){if(!Ut(_0x3e442f,_0x2d404d))return!0x1;if(_0x1e1dd1[_0xe0fe('0x30')][_0xe0fe('0x8f')](_0x4a2834[_0xe0fe('0xe0')]))return!0x0;if(_0x3e442f['type']!=_0x2d404d[_0xe0fe('0x50')])return!0x1;if(!_0x1e1dd1[_0xe0fe('0x30')][_0xe0fe('0x1e')](_0x4a2834[_0xe0fe('0xe0')]))return!0x1;const _0x5ab9d1=_0x49be36[_0xe0fe('0x13f')](_0x1e1dd1['end'],_0x4a2834[_0xe0fe('0xe0')])[_0xe0fe('0x81')]();for(const _0x666eea of _0x5ab9d1)if([_0xe0fe('0x86'),_0xe0fe('0xa7')]['includes'](_0x666eea[_0xe0fe('0x50')])&&_0x49be36[_0xe0fe('0x95')][_0xe0fe('0x85')](_0x666eea['item']))return!0x1;return!0x0;}function Ut(_0x48caf7,_0x162871){return!(!_0x48caf7[_0xe0fe('0xf2')]||!_0x162871[_0xe0fe('0xf2')])&&_0x85de1d(_0x48caf7[_0xe0fe('0x122')],_0x162871[_0xe0fe('0x122')]);}function Ot(_0x55fd58,_0x3c3b47){const _0x7e2804=Et(_0x55fd58['attributes']),_0x1b202f=Et(_0x3c3b47);if(!_0x55fd58[_0xe0fe('0xf2')])return!0x1;for(const _0x5952d0 of Object[_0xe0fe('0x107')](_0x1b202f))if(!_0x85de1d(_0x7e2804[_0x5952d0],_0x1b202f[_0x5952d0]))return!0x1;return!0x0;}function Et(_0x56dfee){const _0x44ecf6=Object['assign']({},_0x56dfee);return delete _0x44ecf6[_0xe0fe('0xa9')],delete _0x44ecf6[_0xe0fe('0x10d')],_0x44ecf6;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22dc=['getFirstRange','head','discardAllSuggestions','comments.maxThreadTotalWeight','arrowView','getByInnerView','unbind','discardSelectedSuggestions','mainView','type','requires','getJoined','delete','getMarkers','change:previous','commandName','get','plugins','getRanges','define','_disableComments','Annotations','comments.editorConfig','actionView','filter','model','getDescriptions','isDirty','config','toMany','discardButton','getAllAdjacentSuggestions','separator','suggestion-','Discard\x20all\x20suggestions','Accept\x20all\x20selected\x20suggestions','editor','_refreshActiveMarkers','activeMarkers','getMarkerNames','isInContent','componentFactory','_updateController','createAnnotationView','comments','registerAnnotation','TrackChangesUI','pluginName','trackChanges.disableComments','keys','set','acceptSelectedSuggestions','isEnabled','value','suggestionLoaded','_viewToController','length','map','destroy','execute','commands','locale','suggestionChanged','_suggestionToController','descriptionParts','suggestionUnloaded','add','change:activeAnnotations','init','buttonView','button','getSuggestion','comments.maxCommentsWhenCollapsed','trackChanges','CommentsUI','_descriptionFactory','isOn','push','isMultiRange','editing','EditorAnnotations','has','bind','_handleControllerBuffer','activeAnnotations','values','_annotationViews','Discard\x20all\x20selected\x20suggestions','_initializeController','createAnnotation','trackChanges.SuggestionThreadView','from','CommentsRepository','_destroyController','_createUIButton','acceptAllSuggestions','switchbutton','hasSuggestion','view','focus','_handleSuggestionControllerDelayed','_bindAnnotationToEditors','refreshSelectedViews','listenTo','acceptButton','TrackChangesEditing'];(function(_0x4ed4e6,_0x22dccf){const _0x1bf2df=function(_0xc81551){while(--_0xc81551){_0x4ed4e6['push'](_0x4ed4e6['shift']());}};_0x1bf2df(++_0x22dccf);}(_0x22dc,0x1af));const _0x1bf2=function(_0x4ed4e6,_0x22dccf){_0x4ed4e6=_0x4ed4e6-0x0;let _0x1bf2df=_0x22dc[_0x4ed4e6];return _0x1bf2df;};import{Plugin as _0x13fb3f}from'ckeditor5/src/core';import{Collection as _0x560ff0}from'ckeditor5/src/utils';import{Model as _0x4066b4,SplitButtonView as _0x510326,createDropdown as _0x597b09,addListToDropdown as _0x515693}from'ckeditor5/src/ui';import{Users as _0x4e535a,getDateTimeFormatter as _0x5a62b6,getAllMarkersDomElementsSorted as _0x5836f0}from'ckeditor5-collaboration/src/collaboration-core';import _0x20ffff from'./trackchangesediting';import _0x481371 from'./ui/suggestioncontroller';import _0x1463d8 from'./ui/view/suggestionthreadview';import{getTranslation as _0x5d7f02}from'./utils/common-translations';import _0x495d16 from'../theme/icons/track-changes.svg';export default class d extends _0x13fb3f{static get[_0x1bf2('0x3')](){return[_0x20ffff,_0x4e535a,_0x1bf2('0x55'),_0x1bf2('0xe'),'EditorAnnotations'];}static get[_0x1bf2('0x28')](){return _0x1bf2('0x27');}constructor(_0x2491c2){super(_0x2491c2),this[_0x1bf2('0x38')]=new Map(),this[_0x1bf2('0x30')]=new Map(),this[_0x1bf2('0x4f')]=new Map(),this[_0x1bf2('0x4c')]=new Map();const _0x5118bd=this['editor'][_0x1bf2('0x15')];_0x5118bd[_0x1bf2('0xc')](_0x1bf2('0x53'),_0x1463d8),_0x5118bd['define'](_0x1bf2('0x29'),!0x1),this[_0x1bf2('0xd')]=_0x5118bd['get'](_0x1bf2('0x29'));}[_0x1bf2('0x5d')](_0x4878e7,_0x2fb494){0x0===this[_0x1bf2('0x4c')]['size']&&setTimeout(()=>{for(const [_0x4206c1,_0x499c57]of this[_0x1bf2('0x4c')]){const _0x1a5751=this[_0x1bf2('0x38')][_0x1bf2('0x4a')](_0x4206c1);_0x1a5751||_0x499c57?_0x1a5751&&_0x499c57&&this[_0x1bf2('0x56')](_0x4206c1):this[_0x1bf2('0x51')](_0x4206c1);}this[_0x1bf2('0x1d')][_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x49'))[_0x1bf2('0x5f')](),this[_0x1bf2('0x1e')](),this['_handleControllerBuffer']['clear']();},0xa),this[_0x1bf2('0x4c')][_0x1bf2('0x2b')](_0x4878e7,_0x2fb494);}[_0x1bf2('0x3d')](){const _0x1fc399=this[_0x1bf2('0x1d')],_0x32919e=_0x1fc399[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x62')),_0xde9755=_0x1fc399[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0xe')),_0x2518a=_0x1fc399[_0x1bf2('0xa')]['get'](_0x1bf2('0x49')),_0x5367c7=_0x1fc399[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x55'));_0x1fc399['ui'][_0x1bf2('0x22')][_0x1bf2('0x3b')](_0x1bf2('0x42'),_0x4299d7=>this[_0x1bf2('0x57')](_0x4299d7)),_0x2518a['addSourceCollector'](()=>{const _0x55d6db=[];for(const [_0x3df784,_0x23f869]of Array['from'](this[_0x1bf2('0x38')])){const _0x1e48a8=_0x3df784[_0x1bf2('0x18')](),_0x568b64=[];for(const _0x38832a of _0x1e48a8){if(!_0x38832a[_0x1bf2('0x21')])continue;if(_0x38832a[_0x1bf2('0x47')]){_0x568b64[_0x1bf2('0x46')](..._0x38832a[_0x1bf2('0xb')]());continue;}const _0x49767e=_0x38832a[_0x1bf2('0x63')]();if(_0x568b64[_0x1bf2('0x31')]>0x0){const _0x483a82=_0x568b64[0x0][_0x1bf2('0x4')](_0x49767e);if(_0x483a82){_0x568b64[0x0]=_0x483a82;continue;}}_0x568b64[_0x1bf2('0x46')](_0x49767e);}_0x55d6db['push']([_0x23f869[_0x1bf2('0x5b')],_0x568b64]);}return _0x55d6db;}),this['listenTo'](_0x32919e,_0x1bf2('0x2f'),(_0x3fcebe,_0x44d869)=>{this[_0x1bf2('0x60')](_0x44d869,_0x1bf2('0x7'),(_0x36ed69,_0x405f83,_0xb1589e,_0x2149c8)=>{_0x44d869['isInContent']&&(null==_0xb1589e?(this[_0x1bf2('0x23')](_0x2149c8[_0x1bf2('0x64')]),this[_0x1bf2('0x5d')](_0x44d869,!0x1)):(this[_0x1bf2('0x23')](_0xb1589e[_0x1bf2('0x64')]),this[_0x1bf2('0x5d')](_0x44d869,!0x0)));}),null===_0x44d869['previous']?this[_0x1bf2('0x5d')](_0x44d869,!0x1):this[_0x1bf2('0x23')](_0x44d869[_0x1bf2('0x64')]);}),this[_0x1bf2('0x60')](_0x32919e,_0x1bf2('0x3a'),(_0x55e1ee,_0x47f770,_0x320492)=>{this['stopListening'](_0x47f770,'change:previous'),this[_0x1bf2('0x4c')][_0x1bf2('0x5')](_0x47f770);const _0x23a7de=_0x320492?_0x320492['head']:_0x47f770,_0x4aca5a=this[_0x1bf2('0x38')][_0x1bf2('0x9')](_0x23a7de);null!==_0x320492&&this['_updateController'](_0x23a7de),null===_0x320492&&_0x4aca5a&&this[_0x1bf2('0x56')](_0x47f770);}),this[_0x1bf2('0x60')](_0x32919e,_0x1bf2('0x37'),(_0x57d058,_0x228041)=>{this[_0x1bf2('0x23')](_0x228041);}),this[_0x1bf2('0x60')](_0xde9755,_0x1bf2('0x3c'),()=>{this[_0x1bf2('0x1e')]();}),this[_0x1bf2('0x60')](_0x5367c7,'addComment',(_0x12c212,{threadId:_0x204158,isFromAdapter:_0x350997})=>{if(_0x350997||!_0x32919e[_0x1bf2('0x5a')](_0x204158))return;const _0x1a7e69=_0x32919e[_0x1bf2('0x40')](_0x204158);this[_0x1bf2('0x38')]['get'](_0x1a7e69)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x591809=this[_0x1bf2('0x1d')][_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0xe')),_0x1f15ea=this['editor']['plugins']['get'](_0x1bf2('0x62')),_0x28fd6b=Array[_0x1bf2('0x54')](_0x591809[_0x1bf2('0x4d')],_0x5a29ab=>_0x5a29ab['innerView'])['filter'](_0x5f08d2=>this[_0x1bf2('0x30')][_0x1bf2('0x4a')](_0x5f08d2)),_0x20acca=[];for(const _0x2e458a of _0x28fd6b){const _0x58d53c=this['_viewToController']['get'](_0x2e458a)['model']['getAllAdjacentSuggestions']();_0x20acca[_0x1bf2('0x46')](..._0x58d53c['reduce']((_0x20f53a,_0x3355f7)=>[..._0x20f53a,..._0x3355f7[_0x1bf2('0x20')]()],[]));}_0x1f15ea[_0x1bf2('0x1f')]=_0x20acca;}[_0x1bf2('0x57')](_0x3bd2b5){const _0x5b9824=_0x597b09(_0x3bd2b5,_0x510326),_0x4673a7=this[_0x1bf2('0x1d')]['commands'][_0x1bf2('0x9')](_0x1bf2('0x42')),_0x158463=_0x5d7f02(_0x3bd2b5,'Track\x20changes');_0x5b9824['buttonView'][_0x1bf2('0x2b')]({'tooltip':_0x158463,'label':_0x158463,'icon':_0x495d16}),_0x5b9824['buttonView']['bind'](_0x1bf2('0x45'))['to'](_0x4673a7,'value'),_0x5b9824['buttonView']['on'](_0x1bf2('0x34'),()=>{_0x4673a7[_0x1bf2('0x34')](),this[_0x1bf2('0x1d')]['editing']['view'][_0x1bf2('0x5c')]();});const _0x5c4d20=new _0x560ff0(),_0x2cad12=[{'type':_0x1bf2('0x59'),'model':{'withText':!0x0,'label':_0x158463,'commandName':'trackChanges'}},{'type':_0x1bf2('0x19')},{'type':_0x1bf2('0x3f'),'model':{'withText':!0x0,'label':_0x5d7f02(_0x3bd2b5,'Accept\x20all\x20suggestions'),'commandName':_0x1bf2('0x58')}},{'type':_0x1bf2('0x3f'),'model':{'withText':!0x0,'label':_0x5d7f02(_0x3bd2b5,_0x1bf2('0x1c')),'commandName':_0x1bf2('0x2c')}},{'type':_0x1bf2('0x3f'),'model':{'withText':!0x0,'label':_0x5d7f02(_0x3bd2b5,_0x1bf2('0x1b')),'commandName':_0x1bf2('0x65')}},{'type':_0x1bf2('0x3f'),'model':{'withText':!0x0,'label':_0x5d7f02(_0x3bd2b5,_0x1bf2('0x50')),'commandName':_0x1bf2('0x0')}}];for(const _0x22d761 of _0x2cad12){let _0x1d0434={'type':_0x1bf2('0x19')};if(_0x22d761[_0x1bf2('0x12')]){const _0x1e7cdc=new _0x4066b4(_0x22d761[_0x1bf2('0x12')]),_0x15892b=this[_0x1bf2('0x1d')][_0x1bf2('0x35')]['get'](_0x1e7cdc[_0x1bf2('0x8')]);_0x1e7cdc[_0x1bf2('0x4b')]('isOn',_0x1bf2('0x2d'))['to'](_0x15892b,_0x1bf2('0x2e'),'isEnabled'),_0x1d0434={'type':_0x22d761[_0x1bf2('0x2')],'model':_0x1e7cdc};}_0x5c4d20['add'](_0x1d0434);}_0x515693(_0x5b9824,_0x5c4d20);const _0x411fc1=_0x2cad12[_0x1bf2('0x11')](_0x333883=>null!=_0x333883[_0x1bf2('0x12')])[_0x1bf2('0x32')](_0x38416a=>this[_0x1bf2('0x1d')]['commands'][_0x1bf2('0x9')](_0x38416a[_0x1bf2('0x12')][_0x1bf2('0x8')])),_0x15dc8e=_0x5b9824[_0x1bf2('0x3e')];return _0x15dc8e[_0x1bf2('0x10')][_0x1bf2('0x69')](_0x1bf2('0x2d')),_0x15dc8e['arrowView'][_0x1bf2('0x69')](_0x1bf2('0x2d')),_0x15dc8e[_0x1bf2('0x10')][_0x1bf2('0x4b')](_0x1bf2('0x2d'))['to'](_0x4673a7,_0x1bf2('0x2d')),_0x15dc8e[_0x1bf2('0x67')][_0x1bf2('0x4b')](_0x1bf2('0x2d'))[_0x1bf2('0x16')](_0x411fc1,'isEnabled',(..._0x4c616d)=>_0x4c616d['some'](_0x1bd548=>_0x1bd548)),_0x5b9824['on'](_0x1bf2('0x34'),_0x5807ed=>{this[_0x1bf2('0x1d')][_0x1bf2('0x34')](_0x5807ed['source'][_0x1bf2('0x8')]),this[_0x1bf2('0x1d')]['editing'][_0x1bf2('0x5b')]['focus']();}),_0x5b9824;}['_initializeController'](_0x1ebe9b){const _0xf7e106=this['editor'],_0x21e9a7=_0xf7e106[_0x1bf2('0x15')],_0x160f09=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0xe')),_0x377d90=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x55')),_0x16cef7=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')]('EditorAnnotations'),_0x1c2197=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x4e535a)['me'],_0x5ad791=_0x21e9a7['get'](_0x1bf2('0x42'))['SuggestionThreadView'],{CommentsListView:_0x54a17e,CommentThreadInputView:_0x523bd4}=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x43'));let _0x415d0a,_0xc524cb;this[_0x1bf2('0x4f')][_0x1bf2('0x4a')](_0x1ebe9b['id'])?(_0xc524cb=this[_0x1bf2('0x4f')][_0x1bf2('0x9')](_0x1ebe9b['id']),_0x415d0a=_0xc524cb[_0x1bf2('0x1')]):(_0x415d0a=new _0x5ad791(_0xf7e106[_0x1bf2('0x36')],_0x1ebe9b,_0x1c2197,{'disableComments':this['_disableComments'],'editorConfig':_0x21e9a7['get'](_0x1bf2('0xf')),'maxCommentsWhenCollapsed':_0x21e9a7['get'](_0x1bf2('0x41')),'maxThreadTotalWeight':_0x21e9a7['get'](_0x1bf2('0x66')),'maxCommentCharsWhenCollapsed':_0x21e9a7[_0x1bf2('0x9')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a62b6(_0x21e9a7[_0x1bf2('0x9')](_0x1bf2('0x36'))),'CommentView':_0x21e9a7[_0x1bf2('0x9')](_0x1bf2('0x25'))['CommentView'],'CommentsListView':_0x54a17e,'CommentThreadInputView':_0x523bd4}),_0x415d0a[_0x1bf2('0x61')]['on'](_0x1bf2('0x34'),()=>{_0xf7e106[_0x1bf2('0x48')][_0x1bf2('0x5b')]['focus']();}),_0x415d0a[_0x1bf2('0x17')]['on'](_0x1bf2('0x34'),()=>{_0xf7e106['editing'][_0x1bf2('0x5b')]['focus']();}),_0xc524cb=_0x160f09[_0x1bf2('0x24')](this[_0x1bf2('0x1d')]['locale'],_0x415d0a),_0xc524cb['bind'](_0x1bf2('0x14'))['to'](_0x415d0a,'isDirty'),_0xc524cb[_0x1bf2('0x4b')](_0x1bf2('0x31'))['to'](_0x415d0a),_0xc524cb[_0x1bf2('0x4b')](_0x1bf2('0x2'))['to'](_0x415d0a,_0x1bf2('0x2'),_0x46125b=>'suggestion-'+_0x46125b),this[_0x1bf2('0x4f')][_0x1bf2('0x2b')](_0x1ebe9b['id'],_0xc524cb));const _0x35d602=_0x377d90['createCommentThreadController'](_0x1ebe9b['commentThread'],_0x415d0a),_0x3b0b9a=new _0x481371(_0xf7e106,_0x1ebe9b,_0x415d0a,_0x35d602),_0x297ab7=_0x1ebe9b[_0x1bf2('0x18')]()[_0x1bf2('0x11')](_0x1b6fd7=>_0x1b6fd7['isInContent']);_0x415d0a['descriptionParts']=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x62'))['_descriptionFactory'][_0x1bf2('0x13')](_0x297ab7),this[_0x1bf2('0x38')][_0x1bf2('0x2b')](_0x1ebe9b,_0x3b0b9a),this[_0x1bf2('0x30')][_0x1bf2('0x2b')](_0x415d0a,_0x3b0b9a);const _0x21af08=_0x160f09[_0x1bf2('0x52')]({'view':_0xc524cb,'target':()=>{const _0x45fb03=[],_0x3d1310=_0x1ebe9b[_0x1bf2('0x18')]()['filter'](_0x2af3cd=>_0x2af3cd[_0x1bf2('0x21')]);for(const _0x268b99 of _0x3d1310)_0x45fb03[_0x1bf2('0x46')](..._0x268b99[_0x1bf2('0x6')]());return _0x5836f0(_0xf7e106[_0x1bf2('0x48')],_0x45fb03);},'type':()=>_0x1bf2('0x1a')+_0x3b0b9a['view'][_0x1bf2('0x2')]});_0x377d90[_0x1bf2('0x5e')](_0x415d0a,_0x21af08),_0x160f09[_0x1bf2('0x3b')](_0x21af08),_0x16cef7[_0x1bf2('0x26')](_0x21af08);}[_0x1bf2('0x56')](_0x4ec096){const _0x2aa327=this['editor'][_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x55')),_0x324ade=this['editor'][_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0xe')),_0x19c833=this[_0x1bf2('0x38')][_0x1bf2('0x9')](_0x4ec096),_0x5da0d7=_0x19c833[_0x1bf2('0x5b')],_0x555926=_0x324ade[_0x1bf2('0x68')](_0x5da0d7);_0x2aa327['_unbindEditors'](_0x5da0d7),_0x555926&&_0x324ade['remove'](_0x555926),this[_0x1bf2('0x38')]['delete'](_0x4ec096),this['_viewToController']['delete'](_0x5da0d7),_0x19c833[_0x1bf2('0x33')]();}[_0x1bf2('0x23')](_0x10bb7c){if(!_0x10bb7c[_0x1bf2('0x21')]||!this[_0x1bf2('0x38')]['has'](_0x10bb7c))return;const _0x38dac5=this[_0x1bf2('0x1d')][_0x1bf2('0xa')][_0x1bf2('0x9')]('TrackChangesEditing'),_0x488250=this[_0x1bf2('0x38')][_0x1bf2('0x9')](_0x10bb7c),_0x49d4e5=_0x10bb7c['getAllAdjacentSuggestions']();_0x488250[_0x1bf2('0x5b')][_0x1bf2('0x39')]=_0x38dac5[_0x1bf2('0x44')]['getDescriptions'](_0x49d4e5);}[_0x1bf2('0x33')](){for(const _0x52ea54 of this[_0x1bf2('0x38')][_0x1bf2('0x2a')]())this['_destroyController'](_0x52ea54);for(const _0x47563a of this[_0x1bf2('0x4f')][_0x1bf2('0x4e')]())_0x47563a[_0x1bf2('0x1')][_0x1bf2('0x33')]();super[_0x1bf2('0x33')]();}}
23
+ const _0x19be=['model','value','bind','plugins','getMarkers','head','_updateController','length','reduce','lowest','_handleSuggestionControllerDelayed','discardAllSuggestions','addComment','createAnnotation','editing','pluginName','commentThread','getByInnerView','suggestionChanged','comments.maxThreadTotalWeight','switchbutton','_handleControllerBuffer','unbind','previous','isMultiRange','arrowView','execute','destroy','get','EditorAnnotations','keys','discardSelectedSuggestions','button','Accept\x20all\x20selected\x20suggestions','_disableComments','getSuggestion','Accept\x20all\x20suggestions','_destroyController','refreshSelectedViews','isInContent','suggestionLoaded','comments.maxCommentsWhenCollapsed','config','addSourceCollector','type','acceptSelectedSuggestions','init','Discard\x20all\x20selected\x20suggestions','_descriptionFactory','toMany','getMarkerNames','Annotations','values','view','acceptButton','innerView','trackChanges.disableComments','isOn','push','componentFactory','_viewToController','_annotationViews','actionView','acceptAllSuggestions','locale','remove','comments','delete','has','getJoined','filter','getDescriptions','clear','SuggestionThreadView','isEnabled','getAllAdjacentSuggestions','listenTo','Discard\x20all\x20suggestions','_unbindEditors','TrackChangesEditing','CommentView','createCommentThreadController','define','add','trackChanges','focus','_bindAnnotationToEditors','CommentsUI','from','mainView','map','change:activeAnnotations','requires','isDirty','stopListening','comments.maxCommentCharsWhenCollapsed','editor','change:previous','set','activeMarkers','size','suggestion-','getRanges','_suggestionToController','commandName','some','_refreshActiveMarkers','hasSuggestion','commands','buttonView','CommentsRepository','descriptionParts'];(function(_0x1d18b8,_0x19be0c){const _0x570a31=function(_0x7e75f2){while(--_0x7e75f2){_0x1d18b8['push'](_0x1d18b8['shift']());}};_0x570a31(++_0x19be0c);}(_0x19be,0xde));const _0x570a=function(_0x1d18b8,_0x19be0c){_0x1d18b8=_0x1d18b8-0x0;let _0x570a31=_0x19be[_0x1d18b8];return _0x570a31;};import{Plugin as _0x4bcf4a}from'ckeditor5/src/core';import{Collection as _0x2397bb}from'ckeditor5/src/utils';import{Model as _0x191098,SplitButtonView as _0x310f7f,createDropdown as _0x22775d,addListToDropdown as _0x3c042a}from'ckeditor5/src/ui';import{Users as _0x2606ce,getDateTimeFormatter as _0x390e81,getAllMarkersDomElementsSorted as _0x17f100}from'ckeditor5-collaboration/src/collaboration-core';import _0x1abaaf from'./trackchangesediting';import _0xe2e326 from'./ui/suggestioncontroller';import _0x4bc7f8 from'./ui/view/suggestionthreadview';import{getTranslation as _0x3eaf18}from'./utils/common-translations';import _0x30264d from'../theme/icons/track-changes.svg';export default class d extends _0x4bcf4a{static get[_0x570a('0x5e')](){return[_0x1abaaf,_0x2606ce,_0x570a('0x0'),_0x570a('0x35'),_0x570a('0x1f')];}static get[_0x570a('0x11')](){return'TrackChangesUI';}constructor(_0x2172d3){super(_0x2172d3),this[_0x570a('0x69')]=new Map(),this[_0x570a('0x3e')]=new Map(),this[_0x570a('0x3f')]=new Map(),this[_0x570a('0x17')]=new Map();const _0x42300a=this['editor'][_0x570a('0x2c')];_0x42300a[_0x570a('0x54')]('trackChanges.SuggestionThreadView',_0x4bc7f8),_0x42300a[_0x570a('0x54')](_0x570a('0x3a'),!0x1),this[_0x570a('0x24')]=_0x42300a['get']('trackChanges.disableComments');}[_0x570a('0xc')](_0x2b2ddc,_0x2b7457){0x0===this['_handleControllerBuffer'][_0x570a('0x66')]&&setTimeout(()=>{for(const [_0x26f0d4,_0x68586b]of this['_handleControllerBuffer']){const _0x193d1a=this[_0x570a('0x69')][_0x570a('0x46')](_0x26f0d4);_0x193d1a||_0x68586b?_0x193d1a&&_0x68586b&&this[_0x570a('0x27')](_0x26f0d4):this['_initializeController'](_0x26f0d4);}this[_0x570a('0x62')][_0x570a('0x5')][_0x570a('0x1e')]('EditorAnnotations')[_0x570a('0x28')](),this[_0x570a('0x6c')](),this['_handleControllerBuffer'][_0x570a('0x4a')]();},0xa),this[_0x570a('0x17')][_0x570a('0x64')](_0x2b2ddc,_0x2b7457);}[_0x570a('0x30')](){const _0x5056fd=this['editor'],_0x5e3450=_0x5056fd['plugins'][_0x570a('0x1e')](_0x570a('0x51')),_0x2ece53=_0x5056fd[_0x570a('0x5')][_0x570a('0x1e')](_0x570a('0x35')),_0x17a1c5=_0x5056fd[_0x570a('0x5')][_0x570a('0x1e')](_0x570a('0x1f')),_0x211adf=_0x5056fd['plugins'][_0x570a('0x1e')]('CommentsRepository');_0x5056fd['ui'][_0x570a('0x3d')][_0x570a('0x55')](_0x570a('0x56'),_0x427819=>this['_createUIButton'](_0x427819)),_0x17a1c5[_0x570a('0x2d')](()=>{const _0x16eb48=[];for(const [_0x38b776,_0x134768]of Array[_0x570a('0x5a')](this[_0x570a('0x69')])){const _0x4497a2=_0x38b776[_0x570a('0x4d')](),_0x36ab49=[];for(const _0x5ddf95 of _0x4497a2){if(!_0x5ddf95[_0x570a('0x29')])continue;if(_0x5ddf95[_0x570a('0x1a')]){_0x36ab49[_0x570a('0x3c')](..._0x5ddf95[_0x570a('0x68')]());continue;}const _0x2a7114=_0x5ddf95['getFirstRange']();if(_0x36ab49[_0x570a('0x9')]>0x0){const _0x3856c0=_0x36ab49[0x0][_0x570a('0x47')](_0x2a7114);if(_0x3856c0){_0x36ab49[0x0]=_0x3856c0;continue;}}_0x36ab49[_0x570a('0x3c')](_0x2a7114);}_0x16eb48['push']([_0x134768[_0x570a('0x37')],_0x36ab49]);}return _0x16eb48;}),this[_0x570a('0x4e')](_0x5e3450,_0x570a('0x2a'),(_0x3718e8,_0x43e4c4)=>{this[_0x570a('0x4e')](_0x43e4c4,_0x570a('0x63'),(_0x30fa5a,_0x5bd259,_0x4cffcd,_0x1a8df8)=>{_0x43e4c4[_0x570a('0x29')]&&(null==_0x4cffcd?(this[_0x570a('0x8')](_0x1a8df8[_0x570a('0x7')]),this[_0x570a('0xc')](_0x43e4c4,!0x1)):(this[_0x570a('0x8')](_0x4cffcd['head']),this['_handleSuggestionControllerDelayed'](_0x43e4c4,!0x0)));}),null===_0x43e4c4[_0x570a('0x19')]?this[_0x570a('0xc')](_0x43e4c4,!0x1):this[_0x570a('0x8')](_0x43e4c4['head']);}),this[_0x570a('0x4e')](_0x5e3450,'suggestionUnloaded',(_0x3a7893,_0x4d0688,_0x377815)=>{this[_0x570a('0x60')](_0x4d0688,_0x570a('0x63')),this['_handleControllerBuffer'][_0x570a('0x45')](_0x4d0688);const _0x4aad72=_0x377815?_0x377815['head']:_0x4d0688,_0x1cc144=this[_0x570a('0x69')]['get'](_0x4aad72);null!==_0x377815&&this[_0x570a('0x8')](_0x4aad72),null===_0x377815&&_0x1cc144&&this[_0x570a('0x27')](_0x4d0688);}),this['listenTo'](_0x5e3450,_0x570a('0x14'),(_0x2df461,_0x2df1a6)=>{this[_0x570a('0x8')](_0x2df1a6);}),this[_0x570a('0x4e')](_0x2ece53,_0x570a('0x5d'),()=>{this[_0x570a('0x6c')]();}),this['listenTo'](_0x211adf,_0x570a('0xe'),(_0x4c5cfc,{threadId:_0x207136,isFromAdapter:_0x49215d})=>{if(_0x49215d||!_0x5e3450[_0x570a('0x6d')](_0x207136))return;const _0x1b6ffb=_0x5e3450[_0x570a('0x25')](_0x207136);this[_0x570a('0x69')]['get'](_0x1b6ffb)['view'][_0x570a('0x57')]();},{'priority':_0x570a('0xb')});}[_0x570a('0x6c')](){const _0x3c3f1b=this[_0x570a('0x62')][_0x570a('0x5')][_0x570a('0x1e')](_0x570a('0x35')),_0x35f114=this[_0x570a('0x62')][_0x570a('0x5')][_0x570a('0x1e')](_0x570a('0x51')),_0x10ef71=Array[_0x570a('0x5a')](_0x3c3f1b['activeAnnotations'],_0x5732de=>_0x5732de[_0x570a('0x39')])[_0x570a('0x48')](_0x21c266=>this[_0x570a('0x3e')][_0x570a('0x46')](_0x21c266)),_0x53dcc7=[];for(const _0x34561b of _0x10ef71){const _0x1509e4=this[_0x570a('0x3e')][_0x570a('0x1e')](_0x34561b)[_0x570a('0x2')][_0x570a('0x4d')]();_0x53dcc7[_0x570a('0x3c')](..._0x1509e4[_0x570a('0xa')]((_0x5693fe,_0xd7bc6b)=>[..._0x5693fe,..._0xd7bc6b[_0x570a('0x34')]()],[]));}_0x35f114[_0x570a('0x65')]=_0x53dcc7;}['_createUIButton'](_0x12f896){const _0x8631b5=_0x22775d(_0x12f896,_0x310f7f),_0xb06492=this[_0x570a('0x62')][_0x570a('0x6e')]['get'](_0x570a('0x56')),_0x58bca7=_0x3eaf18(_0x12f896,'Track\x20changes');_0x8631b5[_0x570a('0x6f')][_0x570a('0x64')]({'tooltip':_0x58bca7,'label':_0x58bca7,'icon':_0x30264d}),_0x8631b5[_0x570a('0x6f')][_0x570a('0x4')](_0x570a('0x3b'))['to'](_0xb06492,_0x570a('0x3')),_0x8631b5[_0x570a('0x6f')]['on']('execute',()=>{_0xb06492[_0x570a('0x1c')](),this[_0x570a('0x62')][_0x570a('0x10')][_0x570a('0x37')][_0x570a('0x57')]();});const _0x22fb39=new _0x2397bb(),_0x463b50=[{'type':_0x570a('0x16'),'model':{'withText':!0x0,'label':_0x58bca7,'commandName':_0x570a('0x56')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x3eaf18(_0x12f896,_0x570a('0x26')),'commandName':_0x570a('0x41')}},{'type':'button','model':{'withText':!0x0,'label':_0x3eaf18(_0x12f896,_0x570a('0x23')),'commandName':_0x570a('0x2f')}},{'type':_0x570a('0x22'),'model':{'withText':!0x0,'label':_0x3eaf18(_0x12f896,_0x570a('0x4f')),'commandName':_0x570a('0xd')}},{'type':_0x570a('0x22'),'model':{'withText':!0x0,'label':_0x3eaf18(_0x12f896,_0x570a('0x31')),'commandName':_0x570a('0x21')}}];for(const _0x58ca3d of _0x463b50){let _0x3bd16d={'type':'separator'};if(_0x58ca3d[_0x570a('0x2')]){const _0x296d31=new _0x191098(_0x58ca3d[_0x570a('0x2')]),_0x37a86b=this[_0x570a('0x62')][_0x570a('0x6e')][_0x570a('0x1e')](_0x296d31[_0x570a('0x6a')]);_0x296d31[_0x570a('0x4')](_0x570a('0x3b'),'isEnabled')['to'](_0x37a86b,_0x570a('0x3'),'isEnabled'),_0x3bd16d={'type':_0x58ca3d[_0x570a('0x2e')],'model':_0x296d31};}_0x22fb39['add'](_0x3bd16d);}_0x3c042a(_0x8631b5,_0x22fb39);const _0x3844ce=_0x463b50['filter'](_0x13de1f=>null!=_0x13de1f[_0x570a('0x2')])[_0x570a('0x5c')](_0x252e06=>this['editor']['commands'][_0x570a('0x1e')](_0x252e06[_0x570a('0x2')]['commandName'])),_0x40541f=_0x8631b5[_0x570a('0x6f')];return _0x40541f[_0x570a('0x40')]['unbind'](_0x570a('0x4c')),_0x40541f[_0x570a('0x1b')][_0x570a('0x18')]('isEnabled'),_0x40541f[_0x570a('0x40')][_0x570a('0x4')](_0x570a('0x4c'))['to'](_0xb06492,_0x570a('0x4c')),_0x40541f[_0x570a('0x1b')]['bind'](_0x570a('0x4c'))[_0x570a('0x33')](_0x3844ce,'isEnabled',(..._0x4ed566)=>_0x4ed566[_0x570a('0x6b')](_0x271e09=>_0x271e09)),_0x8631b5['on']('execute',_0x5ab645=>{this['editor'][_0x570a('0x1c')](_0x5ab645['source']['commandName']),this[_0x570a('0x62')][_0x570a('0x10')][_0x570a('0x37')]['focus']();}),_0x8631b5;}['_initializeController'](_0x390fd3){const _0x7cf31b=this[_0x570a('0x62')],_0x1a9769=_0x7cf31b[_0x570a('0x2c')],_0x296e5c=_0x7cf31b[_0x570a('0x5')]['get'](_0x570a('0x35')),_0x2996a5=_0x7cf31b[_0x570a('0x5')][_0x570a('0x1e')](_0x570a('0x0')),_0x511333=_0x7cf31b[_0x570a('0x5')][_0x570a('0x1e')]('EditorAnnotations'),_0x34891f=_0x7cf31b[_0x570a('0x5')][_0x570a('0x1e')](_0x2606ce)['me'],_0x33445c=_0x1a9769[_0x570a('0x1e')](_0x570a('0x56'))[_0x570a('0x4b')],{CommentsListView:_0x2a4a28,CommentThreadInputView:_0x483f24}=_0x7cf31b[_0x570a('0x5')][_0x570a('0x1e')](_0x570a('0x59'));let _0x2827c2,_0x1dc675;this[_0x570a('0x3f')]['has'](_0x390fd3['id'])?(_0x1dc675=this[_0x570a('0x3f')]['get'](_0x390fd3['id']),_0x2827c2=_0x1dc675[_0x570a('0x5b')]):(_0x2827c2=new _0x33445c(_0x7cf31b['locale'],_0x390fd3,_0x34891f,{'disableComments':this[_0x570a('0x24')],'editorConfig':_0x1a9769['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1a9769[_0x570a('0x1e')](_0x570a('0x2b')),'maxThreadTotalWeight':_0x1a9769[_0x570a('0x1e')](_0x570a('0x15')),'maxCommentCharsWhenCollapsed':_0x1a9769['get'](_0x570a('0x61')),'formatDateTime':_0x390e81(_0x1a9769[_0x570a('0x1e')]('locale')),'CommentView':_0x1a9769['get'](_0x570a('0x44'))[_0x570a('0x52')],'CommentsListView':_0x2a4a28,'CommentThreadInputView':_0x483f24}),_0x2827c2[_0x570a('0x38')]['on'](_0x570a('0x1c'),()=>{_0x7cf31b['editing']['view'][_0x570a('0x57')]();}),_0x2827c2['discardButton']['on'](_0x570a('0x1c'),()=>{_0x7cf31b[_0x570a('0x10')][_0x570a('0x37')][_0x570a('0x57')]();}),_0x1dc675=_0x296e5c['createAnnotationView'](this[_0x570a('0x62')][_0x570a('0x42')],_0x2827c2),_0x1dc675[_0x570a('0x4')](_0x570a('0x5f'))['to'](_0x2827c2,_0x570a('0x5f')),_0x1dc675['bind'](_0x570a('0x9'))['to'](_0x2827c2),_0x1dc675[_0x570a('0x4')](_0x570a('0x2e'))['to'](_0x2827c2,'type',_0x312394=>_0x570a('0x67')+_0x312394),this[_0x570a('0x3f')][_0x570a('0x64')](_0x390fd3['id'],_0x1dc675));const _0x18c446=_0x2996a5[_0x570a('0x53')](_0x390fd3[_0x570a('0x12')],_0x2827c2),_0x5bd289=new _0xe2e326(_0x7cf31b,_0x390fd3,_0x2827c2,_0x18c446),_0x4284f0=_0x390fd3[_0x570a('0x4d')]()['filter'](_0x16a8c7=>_0x16a8c7[_0x570a('0x29')]);_0x2827c2[_0x570a('0x1')]=_0x7cf31b[_0x570a('0x5')][_0x570a('0x1e')](_0x570a('0x51'))[_0x570a('0x32')]['getDescriptions'](_0x4284f0),this[_0x570a('0x69')]['set'](_0x390fd3,_0x5bd289),this[_0x570a('0x3e')][_0x570a('0x64')](_0x2827c2,_0x5bd289);const _0x3acbf4=_0x296e5c[_0x570a('0xf')]({'view':_0x1dc675,'target':()=>{const _0x4d7ec1=[],_0x1d05d0=_0x390fd3[_0x570a('0x4d')]()[_0x570a('0x48')](_0x4f1958=>_0x4f1958[_0x570a('0x29')]);for(const _0x3a37dd of _0x1d05d0)_0x4d7ec1[_0x570a('0x3c')](..._0x3a37dd[_0x570a('0x6')]());return _0x17f100(_0x7cf31b[_0x570a('0x10')],_0x4d7ec1);},'type':()=>'suggestion-'+_0x5bd289[_0x570a('0x37')][_0x570a('0x2e')]});_0x2996a5[_0x570a('0x58')](_0x2827c2,_0x3acbf4),_0x296e5c['add'](_0x3acbf4),_0x511333['registerAnnotation'](_0x3acbf4);}[_0x570a('0x27')](_0x464068){const _0x540f08=this[_0x570a('0x62')][_0x570a('0x5')]['get'](_0x570a('0x0')),_0x28a47c=this[_0x570a('0x62')][_0x570a('0x5')][_0x570a('0x1e')]('Annotations'),_0x5e84f0=this['_suggestionToController'][_0x570a('0x1e')](_0x464068),_0x567708=_0x5e84f0[_0x570a('0x37')],_0x133b6a=_0x28a47c[_0x570a('0x13')](_0x567708);_0x540f08[_0x570a('0x50')](_0x567708),_0x133b6a&&_0x28a47c[_0x570a('0x43')](_0x133b6a),this['_suggestionToController'][_0x570a('0x45')](_0x464068),this[_0x570a('0x3e')][_0x570a('0x45')](_0x567708),_0x5e84f0[_0x570a('0x1d')]();}[_0x570a('0x8')](_0x18bd45){if(!_0x18bd45[_0x570a('0x29')]||!this[_0x570a('0x69')][_0x570a('0x46')](_0x18bd45))return;const _0x2e2f5e=this[_0x570a('0x62')][_0x570a('0x5')]['get']('TrackChangesEditing'),_0x7bc607=this[_0x570a('0x69')]['get'](_0x18bd45),_0x139902=_0x18bd45[_0x570a('0x4d')]();_0x7bc607['view'][_0x570a('0x1')]=_0x2e2f5e[_0x570a('0x32')][_0x570a('0x49')](_0x139902);}[_0x570a('0x1d')](){for(const _0x4f12f2 of this[_0x570a('0x69')][_0x570a('0x20')]())this[_0x570a('0x27')](_0x4f12f2);for(const _0x3daeed of this[_0x570a('0x3f')][_0x570a('0x36')]())_0x3daeed[_0x570a('0x5b')][_0x570a('0x1d')]();super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1249=['acceptSuggestion','model','destroy','_pendingAction','commands','add','listenTo','_acceptCommand','_discardCommand','isDirty','_removePendingAction','get','_setPendingAction','commentThreadController','stopListening','PendingActions','_editor','canEditAt','view','plugins','execute','getRanges','isEnabled','bind','PENDING_ACTION_SUGGESTION','locale','unbind','discardSuggestion','canAccept'];(function(_0x3fca02,_0x12495c){const _0x40008b=function(_0x39f339){while(--_0x39f339){_0x3fca02['push'](_0x3fca02['shift']());}};_0x40008b(++_0x12495c);}(_0x1249,0x170));const _0x4000=function(_0x3fca02,_0x12495c){_0x3fca02=_0x3fca02-0x0;let _0x40008b=_0x1249[_0x3fca02];return _0x40008b;};import{ObservableMixin as _0x1f9482}from'ckeditor5/src/utils';import{getTranslation as _0x121b72}from'../utils/common-translations';export default class Gt extends _0x1f9482(){constructor(_0x4d211d,_0x23b831,_0x245700,_0x4372c7){super(),this['model']=_0x23b831,this[_0x4000('0x1b')]=_0x245700,this[_0x4000('0x16')]=_0x4372c7,this[_0x4000('0x19')]=_0x4d211d,this[_0x4000('0x10')]=_0x4d211d[_0x4000('0xd')][_0x4000('0x14')](_0x4000('0x9')),this['_discardCommand']=_0x4d211d['commands'][_0x4000('0x14')]('discardSuggestion'),this[_0x4000('0x1b')][_0x4000('0x3')]('isEnabled')['to'](this['_acceptCommand'],this[_0x4000('0x11')],(_0x31d1d9,_0x15ccda)=>_0x31d1d9||_0x15ccda),this[_0x4000('0x1b')]['bind'](_0x4000('0x8'))['to'](this[_0x4000('0x10')],_0x4000('0x2'),_0x33404c=>_0x33404c&&this[_0x4000('0x19')][_0x4000('0xa')][_0x4000('0x1a')](_0x23b831[_0x4000('0x1')]())),this[_0x4000('0x1b')][_0x4000('0x3')]('canDiscard')['to'](this[_0x4000('0x11')],_0x4000('0x2'),_0x18024c=>_0x18024c&&this[_0x4000('0x19')]['model']['canEditAt'](_0x23b831[_0x4000('0x1')]())),this[_0x4000('0xc')]=null,_0x245700[_0x4000('0x12')]&&this[_0x4000('0x15')](),this['listenTo'](_0x245700,_0x4000('0x9'),()=>this[_0x4000('0x9')]()),this[_0x4000('0xf')](_0x245700,'discardSuggestion',()=>this[_0x4000('0x7')]()),this[_0x4000('0xf')](_0x245700,'change:isDirty',()=>{_0x245700[_0x4000('0x12')]?this['_setPendingAction']():this[_0x4000('0x13')]();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this[_0x4000('0xa')]['id']);}[_0x4000('0x7')](){this['_discardCommand'][_0x4000('0x0')](this[_0x4000('0xa')]['id']);}[_0x4000('0xb')](){this[_0x4000('0x1b')][_0x4000('0x6')](_0x4000('0x2')),this[_0x4000('0x1b')][_0x4000('0x6')](_0x4000('0x8')),this['view']['unbind']('canDiscard'),this[_0x4000('0x17')](),this['commentThreadController'][_0x4000('0xb')](),this[_0x4000('0xc')]&&this[_0x4000('0x13')]();}['_setPendingAction'](){const _0x20f8e9=_0x121b72(this[_0x4000('0x19')][_0x4000('0x5')],_0x4000('0x4'));this[_0x4000('0xc')]=this[_0x4000('0x19')]['plugins']['get'](_0x4000('0x18'))[_0x4000('0xe')](_0x20f8e9);}[_0x4000('0x13')](){null!==this['_pendingAction']&&this[_0x4000('0x19')][_0x4000('0x1c')][_0x4000('0x14')](_0x4000('0x18'))['remove'](this['_pendingAction']),this[_0x4000('0xc')]=null;}}
23
+ const _0x2806=['_pendingAction','canDiscard','_setPendingAction','commentThreadController','PendingActions','acceptSuggestion','_removePendingAction','bind','_editor','canAccept','isDirty','destroy','plugins','discardSuggestion','canEditAt','add','unbind','_acceptCommand','locale','execute','PENDING_ACTION_SUGGESTION','_discardCommand','remove','getRanges','commands','get','model','listenTo','change:isDirty','isEnabled','view'];(function(_0x3bfdb9,_0x2806b0){const _0xf99b0f=function(_0x1b5b53){while(--_0x1b5b53){_0x3bfdb9['push'](_0x3bfdb9['shift']());}};_0xf99b0f(++_0x2806b0);}(_0x2806,0x160));const _0xf99b=function(_0x3bfdb9,_0x2806b0){_0x3bfdb9=_0x3bfdb9-0x0;let _0xf99b0f=_0x2806[_0x3bfdb9];return _0xf99b0f;};import{ObservableMixin as _0x28fe61}from'ckeditor5/src/utils';import{getTranslation as _0x152a61}from'../utils/common-translations';export default class Gt extends _0x28fe61(){constructor(_0x5d4475,_0x476faf,_0x6f1fff,_0x4fd0a5){super(),this[_0xf99b('0xf')]=_0x476faf,this[_0xf99b('0x13')]=_0x6f1fff,this[_0xf99b('0x17')]=_0x4fd0a5,this[_0xf99b('0x1c')]=_0x5d4475,this[_0xf99b('0x6')]=_0x5d4475[_0xf99b('0xd')][_0xf99b('0xe')]('acceptSuggestion'),this['_discardCommand']=_0x5d4475[_0xf99b('0xd')][_0xf99b('0xe')](_0xf99b('0x2')),this[_0xf99b('0x13')][_0xf99b('0x1b')](_0xf99b('0x12'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x196256,_0x16253e)=>_0x196256||_0x16253e),this[_0xf99b('0x13')][_0xf99b('0x1b')]('canAccept')['to'](this[_0xf99b('0x6')],_0xf99b('0x12'),_0x33399c=>_0x33399c&&this[_0xf99b('0x1c')]['model'][_0xf99b('0x3')](_0x476faf[_0xf99b('0xc')]())),this['view']['bind'](_0xf99b('0x15'))['to'](this['_discardCommand'],_0xf99b('0x12'),_0x218f44=>_0x218f44&&this[_0xf99b('0x1c')][_0xf99b('0xf')][_0xf99b('0x3')](_0x476faf[_0xf99b('0xc')]())),this[_0xf99b('0x14')]=null,_0x6f1fff[_0xf99b('0x1e')]&&this[_0xf99b('0x16')](),this[_0xf99b('0x10')](_0x6f1fff,_0xf99b('0x19'),()=>this[_0xf99b('0x19')]()),this[_0xf99b('0x10')](_0x6f1fff,'discardSuggestion',()=>this[_0xf99b('0x2')]()),this[_0xf99b('0x10')](_0x6f1fff,_0xf99b('0x11'),()=>{_0x6f1fff[_0xf99b('0x1e')]?this[_0xf99b('0x16')]():this[_0xf99b('0x1a')]();});}[_0xf99b('0x19')](){this[_0xf99b('0x6')][_0xf99b('0x8')](this[_0xf99b('0xf')]['id']);}[_0xf99b('0x2')](){this[_0xf99b('0xa')]['execute'](this[_0xf99b('0xf')]['id']);}[_0xf99b('0x0')](){this[_0xf99b('0x13')]['unbind'](_0xf99b('0x12')),this['view'][_0xf99b('0x5')](_0xf99b('0x1d')),this[_0xf99b('0x13')][_0xf99b('0x5')]('canDiscard'),this['stopListening'](),this[_0xf99b('0x17')][_0xf99b('0x0')](),this[_0xf99b('0x14')]&&this['_removePendingAction']();}[_0xf99b('0x16')](){const _0x2c4b01=_0x152a61(this[_0xf99b('0x1c')][_0xf99b('0x7')],_0xf99b('0x9'));this[_0xf99b('0x14')]=this[_0xf99b('0x1c')][_0xf99b('0x1')]['get'](_0xf99b('0x18'))[_0xf99b('0x4')](_0x2c4b01);}[_0xf99b('0x1a')](){null!==this[_0xf99b('0x14')]&&this['_editor'][_0xf99b('0x1')][_0xf99b('0xe')](_0xf99b('0x18'))[_0xf99b('0xb')](this[_0xf99b('0x14')]),this[_0xf99b('0x14')]=null;}}