@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231008.0 → 0.0.0-nightly-20231010.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 _0x1c28=['addMarker','elementToElement','addClass','parent','markMultiRangeBlockFormat','default','suggestion:','markBlockFormat','enableCommand','_setSuggestionData','end','track-changes-suggestion-not-found','pluginName','trackChanges.mergeNestedSuggestions','accept','_getSuggestionData','catch','after','discard','addUser','hasCommentThread','getIntersection','size','toViewElement','init','start','_suggestionFactory','rejected','consumable','formatBlock:discard','subType','PENDING_ACTION_SUGGESTION','_findSuggestions','isBefore','refresh','getShiftedBy','from','trackChanges','isMultiRange','discardSuggestion','markMultiRangeInsertion','showSuggestionHighlights','_rangeIsInLocalUserInsertion','editing','_editor','setSelection','remove','getWalker','howMany','getLastMatchingPosition','insertion:join','chain','deleteContent','getRange','_setSuggestionRange','every','_addThreadToSuggestion','_breakSuggestionMarker','createElement','_splitMarkerName','addRange','hasSuggestion','collaboration.channelId','discardAllSuggestions','isAfter','getDifference','marker-count','highest','addMarker:suggestion:formatBlock','ck-suggestion-marker','_model','removed','_customCallbacks','isRemovable','getCustomProperty','widget','for','_defaultCallbacks','_saved','isLimit','listenTo','setTo','authoredAt','deletion','rootName','formatInline:accept','writer','conversion','error-saving-suggestion-data-suggestion-discarded','markers','markerToData','add','return','_joinSuggestions','editingDowncast','_handleNewSuggestionMarker','options','containsItem','_getAuthorFromId','bindElementToMarker','ck-suggestion-marker--active','getAttribute','unbind','track-changes-suggestion-data-mismatch','markInlineFormat','isExternal','length','insertion:discard','getNearestSelectionRange','notReady','oldRange','upcast','unbindElementFromMarkerName','Users','isLocal','removeClass','_enabledCommands','markMultiRangeDeletion','clone','updateSuggestion','fromCharCode','multipleBlocks','trackChangesCommand','ck-suggestion-marker-','commentThread','getAncestors','isIntersectingWithRange','isDocumentOperation','document','_adapter','previous','push','enableReadOnlyMode','change:data','markerName','_refreshSuggestionsChain','containerElement','removeMarker','isInsideObject','isInContent','some','name','acceptAllSuggestions','trackChanges.trackFormatChanges','removeMarkers','buildSuggestion','getFirstRange','isNextTo','insertion:chain','ready','isCollapsed','execute','isAtStart','addSuggestion','markInsertion','commandName','elementStart','requires','suggestion','insertion:','acceptSelectedSuggestions','authorName','always','containsRange','join','clear','applyOperation','_isForcedDefaultExecutionBlock','getCommentThread','formatInline:join','mapper','isSelectable','createPositionAt','change','data','_suggestions','define','reconvertMarker','formatInline:','dataToMarker','detach','getItems','assign','filter','deletion:accept','containsRangeInObject','$marker','multi','never','_registerDefaultCallbacks','formatBlock:chain','_joinWithAdjacentSuggestions','getAllAdjacentSuggestions','getRanges','model','getSuggestionCallback','_createSuggestion','fire','isArray','schema','includes','selection','updateMarker','$graveyard','_mergeNestedSuggestions','accepted','then','containsPosition','differ','author','suggestionChanged','documentSelection','_suggestionState','consume','moveTargetPosition','newRange','removeMarker:suggestion:formatBlock','isAtEnd','next','insert','formatBlock','data-suggestion','backward','config','deletion:','getMultiRangeId','getChangedMarkers','position','stopListening','locale','createPositionAfter','range','markerToHighlight','hasComments','map','markerReady','createdAt','resolve','insertion','getFirstMarker','_updateSuggestionData','formatInline:discard','values','track-changes-adapter-missing-getsuggestion','TrackChangesEditing','isEqual','_trackFormatChanges','getSuggestion','substr','formatBlock:','_addSuggestionMarker','acceptSuggestion','track-changes-adapter-already-set','adapter','enqueueChange','PendingActions','track-changes-command-not-found','addHighlight','value','change:_saved','has','_removeSuggestion','open','formatGroupId','item','addMarkerName','set','creator','stop','high','getChanges','CommentsRepository','element','getUser','sort','_isDataLoaded','commands','low','forceDefaultExecution','markDeletion','formatBlock:accept','dataDowncast','isOwn','_commentsRepository','nodeAfter','split','suggestionLoaded','activeMarkers','_cutOutSuggestionMarker','createRange','registerPostFixer','group','skipNestingCheck','attributes','getSuggestions','type','addComment','move','_checkSuggestionCorrectness','ck-suggestion-marker-formatBlock','_getExternalAuthor','lowest','createRangeIn','splice','isObject','root','formatInline','insertion:accept','nodeBefore','registerCustomCallback','isBlock','plugins','get','createSelection','@external','editor','addSuggestionData','discardSelectedSuggestions'];(function(_0x318098,_0x1c2855){const _0x2a8df8=function(_0x4edf0a){while(--_0x4edf0a){_0x318098['push'](_0x318098['shift']());}};_0x2a8df8(++_0x1c2855);}(_0x1c28,0x134));const _0x2a8d=function(_0x318098,_0x1c2855){_0x318098=_0x318098-0x0;let _0x2a8df8=_0x1c28[_0x318098];return _0x2a8df8;};import{Plugin as _0x24c9ab,PendingActions as _0x22c7b0}from'ckeditor5/src/core';import{LiveRange as _0x26055e}from'ckeditor5/src/engine';import{CKEditorError as _0x2dc620,uid as _0x5b25c0,priorities as _0x48ac32,logWarning as _0xb39196}from'ckeditor5/src/utils';import{toWidget as _0x182b72}from'ckeditor5/src/widget';import{Users as _0xfab982,hashObject as _0x3e1291}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f2369 from'./commands/trackchangescommand';import _0x1cb86a from'./commands/acceptsuggestioncommand';import _0x886f73 from'./commands/discardsuggestioncommand';import _0x484cff from'./commands/executeonallsuggestionscommand';import _0x3eb395 from'./commands/executeonselectedsuggestionscommand';import _0xc5d2f7 from'./suggestion';import _0x4d279b from'./suggestiondescriptionfactory';import _0xe50163 from'./integrations/aiassistant';import _0x311395 from'./integrations/alignment';import _0x53f321 from'./integrations/basicstyles';import _0x5003ff from'./integrations/blockquote';import _0x4037b8 from'./integrations/ckbox';import _0x230d1b from'./integrations/codeblock';import _0x56a4b4 from'./integrations/comments';import _0x3d4e9a from'./integrations/deletecommand';import _0x1c3282 from'./integrations/documentlist';import _0x580fba from'./integrations/entercommand';import _0x3aae10 from'./integrations/findandreplace';import _0x33eb7b from'./integrations/font';import _0x5198cb from'./integrations/formatpainter';import _0x5a3feb from'./integrations/heading';import _0xdc0968 from'./integrations/highlight';import _0x16cd12 from'./integrations/horizontalline';import _0x19338c from'./integrations/htmlembed';import _0x48087f from'./integrations/image';import _0x28886b from'./integrations/imagereplace';import _0x1309a6 from'./integrations/importword';import _0x10cba5 from'./integrations/indent';import _0x38e03d from'./integrations/inputcommand';import _0x57ba67 from'./integrations/link';import _0x5c6bc3 from'./integrations/list';import _0x519b0e from'./integrations/listproperties';import _0x5905a7 from'./integrations/mediaembed';import _0x585ca2 from'./integrations/mention';import _0x5519be from'./integrations/pagebreak';import _0x48ef68 from'./integrations/paragraph';import _0x4e6fdb from'./integrations/removeformat';import _0x485b64 from'./integrations/restrictededitingmode';import _0x13ffa5 from'./integrations/shiftentercommand';import _0x4608fa from'./integrations/standardeditingmode';import _0xb97a3e from'./integrations/style';import _0x5d8093 from'./integrations/table';import _0x152b90 from'./integrations/tablemergesplit';import _0x3afd65 from'./integrations/tableheadings';import _0x485542 from'./integrations/tableclipboard';import _0x30f38d from'./integrations/tablecolumnresize';import _0x24717c from'./integrations/template';import _0xe5a41 from'./integrations/tableofcontents';import _0x21d3fd from'./integrations/title';import _0x792de from'./integrations/undo';import{getTranslation as _0x4c2a35}from'./utils/common-translations';import _0x1b424f from'./integrations/tablecaption';import _0x27296d from'./integrations/documentlistproperties';import _0x171a90 from'./integrations/tableproperties';import{isEqual as _0x40833b}from'lodash-es';export default class p extends _0x24c9ab{static get[_0x2a8d('0xa7')](){return['CommentsRepository',_0xfab982,_0x22c7b0,_0xe50163,_0x311395,_0x53f321,_0x5003ff,_0x4037b8,_0x230d1b,_0x56a4b4,_0x3d4e9a,_0x1c3282,_0x27296d,_0x580fba,_0x3aae10,_0x33eb7b,_0x5198cb,_0x5a3feb,_0xdc0968,_0x16cd12,_0x19338c,_0x48087f,_0x28886b,_0x1309a6,_0x10cba5,_0x38e03d,_0x57ba67,_0x5c6bc3,_0x519b0e,_0x5905a7,_0x585ca2,_0x5519be,_0x48ef68,_0x4e6fdb,_0x485b64,_0x13ffa5,_0x4608fa,_0xb97a3e,_0x5d8093,_0x152b90,_0x3afd65,_0x1b424f,_0x485542,_0x30f38d,_0xe5a41,_0x171a90,_0x24717c,_0x21d3fd,_0x792de];}static get[_0x2a8d('0x16')](){return _0x2a8d('0xfe');}constructor(_0xe2deef){function _0x3b33ef(_0x1fe6af){return _0x1fe6af[_0x2a8d('0xf4')](_0x11a60b=>String[_0x2a8d('0x82')](_0x11a60b))[_0x2a8d('0xae')]('');}super(_0xe2deef),this[_0x2a8d('0x114')](_0x2a8d('0x129'),[]),this['on']('change:activeMarkers',(_0x2284fa,_0x5601ac,_0x51624b,_0x448f03)=>{this[_0x2a8d('0x50')][_0x2a8d('0xb7')](()=>{for(const _0x27c615 of[..._0x448f03,..._0x51624b])this[_0x2a8d('0x50')][_0x2a8d('0x63')][_0x2a8d('0x10e')](_0x27c615)&&_0xe2deef[_0x2a8d('0x35')][_0x2a8d('0xbb')](_0x27c615);});}),this['_descriptionFactory']=new _0x4d279b(this[_0x2a8d('0x7')][_0x2a8d('0xcc')]['schema'],this[_0x2a8d('0x7')][_0x2a8d('0xef')]),this[_0x2a8d('0x8b')]=null,this[_0x2a8d('0x24')]=new Bt(this['editor']),this[_0x2a8d('0xb9')]=new Map(),this['_commentsRepository']=_0xe2deef[_0x2a8d('0x3')]['get'](_0x2a8d('0x119')),this['_enabledCommands']=new Set(),this[_0x2a8d('0x50')]=this[_0x2a8d('0x7')]['model'],this[_0x2a8d('0xde')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xe2deef[_0x2a8d('0xe9')]['define'](_0x2a8d('0x99'),_0x2a8d('0xf')),this[_0x2a8d('0x100')]=_0xe2deef[_0x2a8d('0xe9')][_0x2a8d('0x4')]('trackChanges.trackFormatChanges'),_0xe2deef[_0x2a8d('0xe9')][_0x2a8d('0xba')](_0x2a8d('0x17'),!0x0),this['_mergeNestedSuggestions']=_0xe2deef['config']['get'](_0x2a8d('0x17')),this[_0x2a8d('0x84')]=new _0x2f2369(_0xe2deef,this[_0x2a8d('0x7e')]),this[_0x3b33ef([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3b33ef([0x34,0x30,0x34,0x36,0x32,0x30,0x31,0x36]);}[_0x2a8d('0x22')](){const _0x3bde1a=this[_0x2a8d('0x7')];_0x3bde1a['conversion'][_0x2a8d('0x56')]('editingDowncast')[_0x2a8d('0xf2')]({'model':'suggestion','view':_0x3e2ceb=>{const {id:_0x32438a,type:_0x2f68b3}=this[_0x2a8d('0x45')](_0x3e2ceb[_0x2a8d('0x90')]),_0x40be1e=[_0x2a8d('0x4f'),_0x2a8d('0x85')+_0x2f68b3];let _0x590b6f=0xbb8;return this[_0x2a8d('0x129')][_0x2a8d('0xd2')](_0x3e2ceb[_0x2a8d('0x90')])&&(_0x40be1e['push'](_0x2a8d('0x6e')),_0x590b6f=0xbc2),_0x2a8d('0x5d')==_0x2f68b3&&(_0x590b6f+=0x5),{'classes':_0x40be1e,'attributes':{'data-suggestion':_0x32438a},'priority':_0x590b6f};}}),_0x3bde1a[_0x2a8d('0x61')][_0x2a8d('0x56')](_0x2a8d('0x123'))[_0x2a8d('0x65')](_0x28cee4=>{_0x28cee4['on']('addMarker:suggestion',(_0x324daf,_0x415090,_0x40a332)=>{if(!_0x40a332[_0x2a8d('0x6a')]['showSuggestionHighlights'])return;const _0x1ab33c=_0x415090[_0x2a8d('0x112')];if(!_0x1ab33c)return;const _0x436fce=_0x40a332[_0x2a8d('0xb4')]['toViewElement'](_0x1ab33c);_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xd1')][_0x2a8d('0x13a')](_0x1ab33c)&&_0x436fce&&!_0x436fce[_0x2a8d('0x54')](_0x2a8d('0x55'))&&_0x436fce['is'](_0x2a8d('0x92'))&&_0x182b72(_0x436fce,_0x40a332[_0x2a8d('0x60')]);},{'priority':'high'});}),_0x3bde1a['conversion'][_0x2a8d('0x56')](_0x2a8d('0x123'))[_0x2a8d('0xf2')]({'model':_0x2a8d('0xa8'),'view':(_0x1ff3e9,_0x3776ce)=>{if(!_0x3776ce[_0x2a8d('0x6a')][_0x2a8d('0x33')])return null;const {type:_0x13d4c0}=this[_0x2a8d('0x45')](_0x1ff3e9[_0x2a8d('0x90')]);return{'classes':[_0x2a8d('0x4f'),_0x2a8d('0x85')+_0x13d4c0],'priority':0xbb8};}});const _0x291073=({showActiveMarkers:_0x485f95=!0x0}={})=>(_0x17d79f,_0x196ecb,_0x507c07)=>{if(!_0x196ecb[_0x2a8d('0x112')])return;if(_0x196ecb['item']['is']('selection'))return void _0x507c07['consumable'][_0x2a8d('0xdf')](_0x196ecb[_0x2a8d('0x112')],_0x17d79f[_0x2a8d('0x97')]);const _0x2530c2=_0x507c07[_0x2a8d('0xb4')][_0x2a8d('0x21')](_0x196ecb['item']);if(!(_0x196ecb[_0x2a8d('0x112')]['is'](_0x2a8d('0x11a'))&&_0x3bde1a['model'][_0x2a8d('0xd1')][_0x2a8d('0x2')](_0x196ecb['item'])&&!_0x2530c2['getCustomProperty'](_0x2a8d('0x10b'))))return;const {id:_0x171c6a}=this[_0x2a8d('0x45')](_0x196ecb['markerName']);_0x507c07[_0x2a8d('0x60')][_0x2a8d('0xc')](['ck-suggestion-marker',_0x2a8d('0x135')],_0x2530c2),_0x507c07[_0x2a8d('0x60')]['setAttribute']('data-suggestion',_0x171c6a,_0x2530c2),_0x507c07['mapper'][_0x2a8d('0x6d')](_0x2530c2,_0x196ecb['markerName']),_0x485f95&&(this[_0x2a8d('0x129')][_0x2a8d('0xd2')](_0x196ecb[_0x2a8d('0x90')])?_0x507c07[_0x2a8d('0x60')]['addClass'](_0x2a8d('0x6e'),_0x2530c2):_0x507c07[_0x2a8d('0x60')][_0x2a8d('0x7d')](_0x2a8d('0x6e'),_0x2530c2));for(const _0x4ad5c4 of _0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x138')](_0x196ecb[_0x2a8d('0x112')])[_0x2a8d('0xbf')]())_0x507c07[_0x2a8d('0x26')]['consume'](_0x4ad5c4,_0x17d79f[_0x2a8d('0x97')]);_0x507c07[_0x2a8d('0x26')][_0x2a8d('0xdf')](_0x196ecb[_0x2a8d('0x112')],_0x17d79f[_0x2a8d('0x97')]);};_0x3bde1a[_0x2a8d('0x61')][_0x2a8d('0x56')](_0x2a8d('0x123'))[_0x2a8d('0x65')](_0x3de4f1=>{_0x3de4f1['on'](_0x2a8d('0x4e'),(_0x461a4c,_0x494415,_0x1caa53)=>{_0x1caa53['options'][_0x2a8d('0x33')]&&_0x291073({'showActiveMarkers':!0x1})(_0x461a4c,_0x494415,_0x1caa53);},{'priority':_0x2a8d('0x4d')});}),_0x3bde1a[_0x2a8d('0x61')][_0x2a8d('0x56')](_0x2a8d('0x123'))[_0x2a8d('0x64')]({'model':_0x2a8d('0xa8'),'view':(_0x23ce80,_0x25c9f4)=>_0x25c9f4['options'][_0x2a8d('0x33')]?null:{'group':_0x2a8d('0xa8'),'name':_0x23ce80[_0x2a8d('0x102')](0xb)}}),_0x3bde1a[_0x2a8d('0x61')][_0x2a8d('0x56')](_0x2a8d('0x79'))[_0x2a8d('0xb')]({'view':{'name':_0x2a8d('0xa8'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c1087,{writer:_0x3971e2})=>{let _0x24b497=_0x2a8d('0x10')+_0x5c1087[_0x2a8d('0x6f')]('suggestion-type')+':'+_0x5c1087['getAttribute']('id');return _0x5c1087[_0x2a8d('0x6f')](_0x2a8d('0x4c'))&&(_0x24b497+=':'+_0x5c1087[_0x2a8d('0x6f')](_0x2a8d('0x4c'))),_0x3971e2[_0x2a8d('0x44')](_0x2a8d('0xc4'),{'data-name':_0x24b497});}}),_0x3bde1a['conversion']['for']('upcast')[_0x2a8d('0xbd')]({'view':_0x2a8d('0xa8')}),_0x3bde1a['conversion'][_0x2a8d('0x56')]('editingDowncast')['add'](_0x4c4762=>{_0x4c4762['on']('addMarker:suggestion:formatBlock',_0x291073(),{'priority':_0x2a8d('0x117')});}),_0x3bde1a['conversion'][_0x2a8d('0x56')](_0x2a8d('0x68'))[_0x2a8d('0x65')](_0x4328cc=>{_0x4328cc['on'](_0x2a8d('0xe2'),(_0x469d64,_0x64a51f,_0x2f4c13)=>{const _0x2e7029=_0x2f4c13[_0x2a8d('0xb4')]['markerNameToElements'](_0x64a51f['markerName']);if(_0x2e7029)for(const _0x29aa80 of _0x2e7029)_0x29aa80[_0x2a8d('0x54')]('addHighlight')||(_0x2f4c13['writer'][_0x2a8d('0x7d')]([_0x2a8d('0x4f'),_0x2a8d('0x135'),_0x2a8d('0x6e')],_0x29aa80),_0x2f4c13[_0x2a8d('0x60')]['removeAttribute'](_0x2a8d('0xe7'),_0x29aa80),_0x2f4c13[_0x2a8d('0xb4')][_0x2a8d('0x7a')](_0x29aa80,_0x64a51f[_0x2a8d('0x90')]));},{'priority':'high'});}),_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x8a')][_0x2a8d('0x12c')](_0xd81167=>{let _0x2c97a9=!0x1;const _0x397b58=Array[_0x2a8d('0x2e')](_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x8a')][_0x2a8d('0xda')]['getChangedMarkers']()),_0x2b1e43=new Set();for(const {name:_0x4dd7b8,data:_0x5a1ca8}of _0x397b58){const {group:_0x209c8a,type:_0x44aa5f,id:_0x1be6bc}=this[_0x2a8d('0x45')](_0x4dd7b8);if(_0x2a8d('0xa8')!==_0x209c8a)continue;const _0x33855f=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x1be6bc);if(null!=_0x5a1ca8['newRange']){_0x2a8d('0x13c')==_0x44aa5f&&(_0x2c97a9=_0x2c97a9||$t(_0x5a1ca8[_0x2a8d('0xe1')],_0x4dd7b8,_0xd81167,_0x3bde1a[_0x2a8d('0xcc')]['schema']));if(_0x5a1ca8[_0x2a8d('0xe1')][_0x2a8d('0xa0')]||'$graveyard'==_0x5a1ca8[_0x2a8d('0xe1')]['root'][_0x2a8d('0x5e')]||_0x2a8d('0xe6')==_0x44aa5f&&!Rt(_0x5a1ca8['newRange'])||_0x2a8d('0x5d')==_0x44aa5f&&!(!Mt(_0x210f3c=_0x5a1ca8[_0x2a8d('0xe1')])&&!function(_0x56fe19){return _0x56fe19[_0x2a8d('0x23')]['parent']==_0x56fe19[_0x2a8d('0x14')][_0x2a8d('0x0')]&&_0x56fe19[_0x2a8d('0x23')]['isAtEnd'];}(_0x210f3c)))_0xd81167[_0x2a8d('0x93')](_0x4dd7b8),_0x2c97a9=!0x0;else{if(!_0x33855f||!_0x33855f['isInContent'])continue;_0x2b1e43[_0x2a8d('0x65')](_0x33855f);}}}var _0x210f3c;return _0x2b1e43[_0x2a8d('0x20')]>0x0&&(_0x2c97a9=!!this[_0x2a8d('0xc9')](_0x2b1e43)||_0x2c97a9),_0x2c97a9;}),_0x3bde1a['model'][_0x2a8d('0x8a')][_0x2a8d('0x12c')](_0x2e121b=>{let _0xb644b=!0x1;for(const _0x3449b7 of _0x3bde1a['model'][_0x2a8d('0x8a')][_0x2a8d('0xda')][_0x2a8d('0x118')]()){if(_0x2a8d('0xe5')!=_0x3449b7[_0x2a8d('0x131')])continue;const _0x579eaa=_0x3449b7[_0x2a8d('0xed')]['getShiftedBy'](_0x3449b7[_0x2a8d('0x74')]);if(_0x579eaa['isAtEnd'])for(const _0x509a60 of this[_0x2a8d('0xb9')][_0x2a8d('0xfc')]()){if(_0x509a60[_0x2a8d('0x30')]||!_0x509a60[_0x2a8d('0x95')])continue;if(_0x2a8d('0xe6')!=_0x509a60[_0x2a8d('0x131')])continue;const _0x54a2b2=_0x509a60[_0x2a8d('0x9c')]();if(_0x54a2b2[_0x2a8d('0x23')][_0x2a8d('0xd')]!=_0x54a2b2['end']['parent']&&_0x54a2b2['end'][_0x2a8d('0xff')](_0x3449b7[_0x2a8d('0xed')])){const _0x2f37a4=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x12b')](_0x54a2b2['start'],_0x579eaa);_0x2e121b[_0x2a8d('0xd4')](_0x509a60[_0x2a8d('0xf9')](),{'range':_0x2f37a4}),_0xb644b=!0x0;}}}return _0xb644b;}),_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x63')]['on']('update:suggestion',(_0x5d3d4f,_0x4ae2fb,_0x5603b1)=>{if(null==_0x5603b1){const {id:_0x2395d1}=this[_0x2a8d('0x45')](_0x4ae2fb[_0x2a8d('0x97')]),_0x1436e3=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x2395d1);_0x1436e3&&_0x1436e3[_0x2a8d('0x113')](_0x4ae2fb[_0x2a8d('0x97')]);}}),_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x8a')]['on'](_0x2a8d('0x8f'),()=>{const _0x54fadd=Array[_0x2a8d('0x2e')](_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x8a')]['differ'][_0x2a8d('0xec')]())['filter'](_0x1d233c=>'suggestion'===this[_0x2a8d('0x45')](_0x1d233c[_0x2a8d('0x97')])[_0x2a8d('0x12d')]);if(0x0===_0x54fadd[_0x2a8d('0x74')])return;_0x54fadd[_0x2a8d('0x11c')]((_0x5479e9,_0xc3b987)=>{const _0x316165=_0x5479e9['data'][_0x2a8d('0x78')],_0x76a705=_0xc3b987['data'][_0x2a8d('0x78')];return null===_0x316165&&null===_0x76a705?0x0:null===_0x316165&&null!==_0x76a705?-0x1:null!==_0x316165&&null===_0x76a705?0x1:_0x316165[_0x2a8d('0x23')][_0x2a8d('0x2b')](_0x76a705[_0x2a8d('0x23')])?-0x1:0x1;});const _0x1d5221=new Set(),_0xa294ca=new Set();for(const {name:_0x3fdfb7,data:_0x2ddc4f}of _0x54fadd){const {id:_0x4b3cec}=this[_0x2a8d('0x45')](_0x3fdfb7);if(null===_0x2ddc4f[_0x2a8d('0x78')]){const _0x21d7b9=this[_0x2a8d('0x69')](_0x3fdfb7);_0xa294ca[_0x2a8d('0x65')](_0x21d7b9);}else{const _0x214e78=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x4b3cec);null!==_0x2ddc4f[_0x2a8d('0xe1')]||_0x214e78[_0x2a8d('0x95')]?(_0x1d5221[_0x2a8d('0x65')](_0x214e78['head']),_0xa294ca[_0x2a8d('0x65')](_0x214e78)):this[_0x2a8d('0x10f')](_0x214e78);}}_0xa294ca[_0x2a8d('0x20')]>0x0&&this[_0x2a8d('0x91')](_0xa294ca);for(const _0x4a3b36 of _0x1d5221)this[_0x2a8d('0xcf')](_0x2a8d('0xdc'),_0x4a3b36);}),_0x3bde1a[_0x2a8d('0xcc')]['on'](_0x2a8d('0xb0'),(_0x535cbe,_0x4b1541)=>{const _0x325c9b=_0x4b1541[0x0];if(!this[_0x2a8d('0xb9')][_0x2a8d('0x20')])return;if(!_0x325c9b[_0x2a8d('0x89')])return;if(_0x325c9b['batch']['isUndo']||!_0x325c9b['batch'][_0x2a8d('0x7c')])return;let _0x523e4f,_0x41ed0b;switch(_0x325c9b[_0x2a8d('0x131')]){case _0x2a8d('0xe5'):_0x523e4f=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xb6')](_0x325c9b[_0x2a8d('0xed')]),_0x41ed0b=_0x523e4f[_0x2a8d('0x2d')](_0x325c9b[_0x2a8d('0x3a')]);break;case'split':_0x523e4f=_0x3bde1a['model'][_0x2a8d('0xb6')](_0x325c9b['splitPosition']),_0x41ed0b=_0x3bde1a[_0x2a8d('0xcc')]['createPositionAt'](_0x325c9b[_0x2a8d('0xe0')]);break;case _0x2a8d('0x133'):_0x523e4f=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xb6')](_0x325c9b['targetPosition']),_0x41ed0b=_0x523e4f['getShiftedBy'](_0x325c9b[_0x2a8d('0x3a')]);break;default:return;}const _0x33da41=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x12b')](_0x523e4f,_0x41ed0b);_0x3bde1a['model'][_0x2a8d('0xb7')](()=>{for(const {suggestion:_0x17682f,meta:_0x5e1ff3}of this['_findSuggestions'](_0x33da41)){if(_0x17682f[_0x2a8d('0x30')])continue;if(_0x2a8d('0x13c')==_0x17682f[_0x2a8d('0x131')])continue;const _0x301d20=_0x17682f['data']&&_0x17682f[_0x2a8d('0xb8')][_0x2a8d('0x83')];(_0x2a8d('0xe6')!=_0x17682f[_0x2a8d('0x131')]||_0x2a8d('0x127')==_0x325c9b[_0x2a8d('0x131')]&&!_0x301d20)&&(_0x5e1ff3[_0x2a8d('0xc3')]||_0x2a8d('0xf8')==_0x17682f[_0x2a8d('0x131')]&&_0x5e1ff3[_0x2a8d('0x124')]||_0x17682f[_0x2a8d('0x9c')]()[_0x2a8d('0xad')](_0x33da41)&&this[_0x2a8d('0x43')](_0x17682f,_0x523e4f,_0x41ed0b));}});},{'priority':_0x2a8d('0x137')}),_0x3bde1a[_0x2a8d('0xcc')]['on']('deleteContent',(_0x25b87c,_0x1d2e8d)=>{const _0x3c0c60=_0x1d2e8d[0x0],_0x4b80d0=_0x1d2e8d[0x1];if(_0x4b80d0&&_0x4b80d0[_0x2a8d('0x120')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x2a8d('0x84')][_0x2a8d('0x10c')])return;if(_0x3c0c60['isCollapsed'])return;const _0x2c0633=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xd1')],{start:_0x5849aa,end:_0x187d87}=_0x3c0c60[_0x2a8d('0x9c')](),_0x30ea12=_0x5849aa[_0x2a8d('0x126')]&&_0x2c0633['isLimit'](_0x5849aa[_0x2a8d('0x126')])?null:_0x2c0633[_0x2a8d('0x76')](_0x5849aa,'forward'),_0xeb64ed=_0x187d87[_0x2a8d('0x0')]&&_0x2c0633[_0x2a8d('0x59')](_0x187d87['nodeBefore'])?null:_0x2c0633['getNearestSelectionRange'](_0x187d87,_0x2a8d('0xe8')),_0x4fa078=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x12b')](_0x30ea12?_0x30ea12['start']:_0x5849aa,_0xeb64ed?_0xeb64ed[_0x2a8d('0x14')]:_0x187d87);_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xb7')](_0x5f08a0=>{this[_0x2a8d('0x121')](_0x4fa078);const _0x537499=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xd1')][_0x2a8d('0x76')](_0x4fa078['start']);_0x3c0c60['is'](_0x2a8d('0xdd'))?_0x5f08a0[_0x2a8d('0x37')](_0x537499):_0x3c0c60[_0x2a8d('0x5b')](_0x537499);}),_0x25b87c[_0x2a8d('0x116')]();},{'priority':_0x48ac32['normal']+0xa}),_0x3bde1a[_0x2a8d('0xcc')]['on']('insertContent',(_0x58c14e,_0x2eeee2)=>{const _0x126731=_0x2eeee2[_0x2eeee2[_0x2a8d('0x74')]-0x1];_0x126731&&_0x126731['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this[_0x2a8d('0x84')]['value']&&(_0x3bde1a['model']['change'](()=>{let _0x20dc26=_0x3bde1a['model']['insertContent'](_0x2eeee2[0x0],_0x2eeee2[0x1],_0x2eeee2[0x2],{'forceDefaultExecution':!0x0});if(!_0x20dc26)return;_0x58c14e[_0x2a8d('0x66')]=_0x20dc26[_0x2a8d('0x80')]();const _0x569ffb=_0x20dc26[_0x2a8d('0x14')][_0x2a8d('0x0')],_0x10d544=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xd1')];_0x569ffb&&_0x10d544[_0x2a8d('0x2')](_0x569ffb)&&!_0x10d544[_0x2a8d('0x13a')](_0x569ffb)&&(_0x20dc26=_0x3bde1a['model']['createRange'](_0x20dc26[_0x2a8d('0x23')],_0x3bde1a['model'][_0x2a8d('0xb6')](_0x569ffb,_0x2a8d('0x14')))),this['markInsertion'](_0x20dc26);}),_0x58c14e[_0x2a8d('0x116')]());},{'priority':_0x2a8d('0x117')}),this['editor']['commands'][_0x2a8d('0x65')](_0x2a8d('0x2f'),this[_0x2a8d('0x84')]),this[_0x2a8d('0x12')](_0x2a8d('0x2f'));const _0x55c879=new _0x1cb86a(_0x3bde1a,this[_0x2a8d('0xb9')]);_0x3bde1a[_0x2a8d('0x11e')][_0x2a8d('0x65')](_0x2a8d('0x105'),_0x55c879),this[_0x2a8d('0x12')](_0x2a8d('0x105'));const _0x4dcfdc=new _0x886f73(_0x3bde1a,this[_0x2a8d('0xb9')]);_0x3bde1a[_0x2a8d('0x11e')][_0x2a8d('0x65')](_0x2a8d('0x31'),_0x4dcfdc),this[_0x2a8d('0x12')](_0x2a8d('0x31')),_0x3bde1a[_0x2a8d('0x11e')]['add']('acceptAllSuggestions',new _0x484cff(_0x3bde1a,_0x55c879,this[_0x2a8d('0xb9')])),this[_0x2a8d('0x12')](_0x2a8d('0x98')),_0x3bde1a[_0x2a8d('0x11e')][_0x2a8d('0x65')](_0x2a8d('0x49'),new _0x484cff(_0x3bde1a,_0x4dcfdc,this['_suggestions'])),this[_0x2a8d('0x12')](_0x2a8d('0x49')),_0x3bde1a[_0x2a8d('0x11e')]['add'](_0x2a8d('0xaa'),new _0x3eb395(_0x3bde1a,_0x55c879,this[_0x2a8d('0xb9')])),this[_0x2a8d('0x12')](_0x2a8d('0xaa')),_0x3bde1a[_0x2a8d('0x11e')][_0x2a8d('0x65')](_0x2a8d('0x9'),new _0x3eb395(_0x3bde1a,_0x4dcfdc,this[_0x2a8d('0xb9')])),this[_0x2a8d('0x12')](_0x2a8d('0x9'));const _0x3a9033=_0x3bde1a[_0x2a8d('0x3')]['get'](_0x2a8d('0x119'));this[_0x2a8d('0x5a')](_0x3a9033,_0x2a8d('0x132'),(_0x490327,{threadId:_0x186c28})=>{const _0x767e85=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x186c28);_0x767e85&&_0x767e85[_0x2a8d('0x86')]&&0x1===_0x767e85[_0x2a8d('0x86')][_0x2a8d('0x74')]&&this[_0x2a8d('0xfa')](_0x186c28,{'hasComments':!0x0});},{'priority':'low'}),this[_0x2a8d('0x5a')](_0x3a9033,'removeComment',(_0x4980a4,{threadId:_0x4f84c0})=>{const _0x709341=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x4f84c0);_0x709341&&_0x709341[_0x2a8d('0x86')]&&!_0x709341[_0x2a8d('0x86')][_0x2a8d('0x74')]&&this[_0x2a8d('0xfa')](_0x4f84c0,{'hasComments':!0x1});},{'priority':_0x2a8d('0x11f')});}set['adapter'](_0x2361cd){if(this[_0x2a8d('0x8b')])throw new _0x2dc620(_0x2a8d('0x106'),this);this[_0x2a8d('0x8b')]=_0x2361cd;}get[_0x2a8d('0x107')](){return this[_0x2a8d('0x8b')];}['getSuggestions']({skipNotAttached:_0x4dd598=!0x1,toJSON:_0x5a030b=!0x1}={}){const _0x2296fd=[];for(const _0x4b0d0e of this[_0x2a8d('0xb9')][_0x2a8d('0xfc')]())_0x4dd598&&!_0x4b0d0e[_0x2a8d('0x95')]||_0x2296fd[_0x2a8d('0x8d')](_0x4b0d0e);return _0x5a030b?_0x2296fd[_0x2a8d('0xf4')](_0x40d4be=>_0x40d4be['toJSON']()):_0x2296fd;}[_0x2a8d('0x101')](_0x209620){const _0x17f959=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x209620);if(!_0x17f959)throw new _0x2dc620(_0x2a8d('0x15'),this);return _0x17f959;}[_0x2a8d('0x47')](_0x2801a9){return this['_suggestions'][_0x2a8d('0x10e')](_0x2801a9);}[_0x2a8d('0x8')](_0x54f08b){const {authorId:_0x41959a,id:_0x581fe9,attributes:_0x3e10de}=_0x54f08b,[_0x4e7595,_0x419eac]=_0x54f08b['type']['split'](':'),_0x53f305=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x581fe9)||this[_0x2a8d('0xce')](_0x4e7595,_0x419eac,_0x581fe9,_0x41959a,_0x3e10de);if(this['_addThreadToSuggestion'](_0x53f305),this[_0x2a8d('0x134')](_0x53f305,_0x4e7595,_0x419eac||null,_0x41959a),_0x53f305[_0x2a8d('0xf6')]=_0x54f08b[_0x2a8d('0xf6')],_0x53f305[_0x2a8d('0x11d')]=!0x0,_0x3e10de&&_0x3e10de[_0x2a8d('0x6')]){const _0x3330ca=_0x3e10de['@external'],_0x5c16cb=this[_0x2a8d('0x136')](_0x3330ca[_0x2a8d('0xab')]);_0x53f305[_0x2a8d('0x5c')]=_0x3330ca[_0x2a8d('0xf6')],_0x53f305[_0x2a8d('0xdb')]=_0x5c16cb,_0x53f305[_0x2a8d('0x73')]=!0x0;}else _0x53f305[_0x2a8d('0x5c')]=_0x54f08b['createdAt'];switch(_0x54f08b[_0x2a8d('0xb8')]&&(_0x53f305[_0x2a8d('0xb8')]=_0x54f08b['data']),_0x54f08b[_0x2a8d('0x12f')]&&(_0x53f305[_0x2a8d('0x12f')]=_0x54f08b['attributes']),this[_0x2a8d('0x8b')]&&this['_adapter'][_0x2a8d('0xa3')]||(_0x53f305[_0x2a8d('0x58')]=!0x0),this['_suggestionState'][_0x2a8d('0x4')](_0x53f305)){case _0x2a8d('0x77'):this[_0x2a8d('0xde')]['set'](_0x53f305,'dataReady');break;case _0x2a8d('0xf5'):_0x53f305['isInContent']?(this['_refreshSuggestionsChain'](new Set([_0x53f305])),this['_joinWithAdjacentSuggestions'](new Set([_0x53f305])),this[_0x2a8d('0xde')]['set'](_0x53f305,'ready'),this[_0x2a8d('0xcf')](_0x2a8d('0x128'),_0x53f305)):this[_0x2a8d('0xde')]['set'](_0x53f305,_0x2a8d('0x51'));}return _0x53f305;}[_0x2a8d('0x105')](_0x7565c2){this[_0x2a8d('0x120')](()=>{this[_0x2a8d('0x7')][_0x2a8d('0xcc')][_0x2a8d('0xb7')](()=>{for(const _0x8b2db1 of _0x7565c2[_0x2a8d('0xca')]())_0x8b2db1[_0x2a8d('0x18')]();});});}[_0x2a8d('0x31')](_0x475487){this[_0x2a8d('0x120')](()=>{this[_0x2a8d('0x7')][_0x2a8d('0xcc')]['change'](()=>{for(const _0x472b51 of _0x475487['getAllAdjacentSuggestions']())_0x472b51[_0x2a8d('0x1c')]();});});}[_0x2a8d('0x12')](_0x26a72d,_0x47d04a){const _0x1f49d7=this['editor']['commands'][_0x2a8d('0x4')](_0x26a72d);if(!_0x1f49d7)throw new _0x2dc620(_0x2a8d('0x10a'),this,{'commandName':_0x26a72d});this[_0x2a8d('0x7e')][_0x2a8d('0x65')](_0x1f49d7),_0x47d04a&&_0x1f49d7['on']('execute',(_0x5cf54f,_0x4bd90c)=>{this[_0x2a8d('0x84')][_0x2a8d('0x10c')]&&(this[_0x2a8d('0xb1')]||_0x4bd90c[_0x2a8d('0x74')]>0x0&&_0x4bd90c[_0x4bd90c['length']-0x1]&&_0x4bd90c[_0x4bd90c[_0x2a8d('0x74')]-0x1][_0x2a8d('0x120')]||(_0x47d04a((..._0x1121a8)=>_0x1f49d7[_0x2a8d('0xa1')](..._0x1121a8,{'forceDefaultExecution':!0x0}),..._0x4bd90c),_0x5cf54f['stop']()));},{'priority':_0x2a8d('0x117')});}[_0x2a8d('0x120')](_0x56eeee){let _0x2a4b44,_0x177b1f;const _0x56ac70=this['_isForcedDefaultExecutionBlock'];this[_0x2a8d('0xb1')]=!0x0;try{_0x2a4b44=_0x56eeee();}catch(_0x38b71d){_0x177b1f=_0x38b71d;}return _0x56ac70||(this[_0x2a8d('0xb1')]=!0x1),_0x177b1f&&_0x2dc620['rethrowUnexpectedError'](_0x177b1f,this),_0x2a4b44;}[_0x2a8d('0xa4')](_0x13032f,_0x274ca6=null,_0x27febc={}){if(_0x13032f[_0x2a8d('0xa0')])return null;const _0x1d0c07=this['editor'][_0x2a8d('0x3')][_0x2a8d('0x4')]('Users')['me'];for(const {suggestion:_0x493c93,meta:_0x1b87b7}of this[_0x2a8d('0x2a')](_0x13032f,_0x2a8d('0xf8')))if(_0x1b87b7[_0x2a8d('0x124')]){if(!_0x1b87b7['isNextTo']){if(_0x1b87b7[_0x2a8d('0xc3')]){if(!this[_0x2a8d('0xd6')]||!Ot(_0x493c93,_0x27febc))continue;return _0x493c93;}if(Ot(_0x493c93,_0x27febc))return _0x493c93;this[_0x2a8d('0x43')](_0x493c93,_0x13032f['start'],_0x13032f[_0x2a8d('0x14')]);break;}if(_0x274ca6==_0x493c93[_0x2a8d('0x28')]&&Ot(_0x493c93,_0x27febc)){const _0x382c39=_0x493c93['getFirstRange']();return _0x382c39[_0x2a8d('0x23')][_0x2a8d('0xff')](_0x13032f['end'])?this[_0x2a8d('0x40')](_0x493c93,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x13032f[_0x2a8d('0x23')],_0x382c39[_0x2a8d('0x14')])):this[_0x2a8d('0x40')](_0x493c93,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x382c39['start'],_0x13032f['end'])),_0x493c93;}}const _0x6152d5=_0x5b25c0(),_0x14d34d=_0x1d0c07['id'],_0xa8dbb0=_0x274ca6?'insertion:'+_0x274ca6:_0x2a8d('0xf8'),_0xfcdb1e=this[_0x2a8d('0x13')]({'id':_0x6152d5,'type':_0xa8dbb0,'createdAt':new Date(),'authorId':_0x14d34d,'attributes':_0x27febc});return this['_addSuggestionMarker'](_0xa8dbb0,_0x6152d5,_0x14d34d,_0x13032f),_0xfcdb1e;}[_0x2a8d('0x32')](_0x18923e,_0x534827=_0x2a8d('0xc5'),_0x436d89={}){const _0xf938ca=this[_0x2a8d('0x7')]['plugins']['get'](_0x2a8d('0x7b'))['me'],_0x2d6a5b=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0xf8'),_0x534827,_0x2a8d('0xae'));for(const _0x245e42 of this[_0x2a8d('0x130')]())if(_0x245e42['author']['id']==_0xf938ca['id']&&_0x2a8d('0xf8')==_0x245e42['type']&&_0x245e42[_0x2a8d('0x28')]==_0x534827&&Ot(_0x245e42,_0x436d89)&&(_0x2d6a5b(_0x245e42[_0x2a8d('0xcb')](),_0x18923e)||_0x2d6a5b(_0x18923e,_0x245e42[_0x2a8d('0xcb')]()))){for(const _0x115d07 of _0x18923e)_0x245e42[_0x2a8d('0x46')](_0x115d07);return _0x245e42;}for(const {suggestion:_0x50247a,meta:_0x5c31b7}of this[_0x2a8d('0x2a')](_0x18923e,_0x2a8d('0xf8'))){if(!_0x5c31b7['isOwn'])continue;if(!this[_0x2a8d('0xd6')]&&_0x5c31b7['containsRangeInObject'])continue;if(!Ot(_0x50247a,_0x436d89))continue;let _0x1c7a78=!0x0;for(const _0xc74ee5 of _0x50247a[_0x2a8d('0xcb')]())for(const _0x3443e7 of _0x18923e)if(!_0xc74ee5['containsRange'](_0x3443e7)){_0x1c7a78=!0x1;break;}if(_0x1c7a78)return _0x50247a;}const _0x3bc6a3=_0x5b25c0(),_0x2ac9e7=_0xf938ca['id'],_0x38bc6d=_0x2a8d('0xa9')+_0x534827,_0x1d31be=this[_0x2a8d('0x13')]({'id':_0x3bc6a3,'type':_0x38bc6d,'createdAt':new Date(),'authorId':_0x2ac9e7,'attributes':_0x436d89});for(const _0x2cc7a8 of _0x18923e)this['_addSuggestionMarker'](_0x38bc6d,_0x3bc6a3,_0x2ac9e7,_0x2cc7a8,_0xc5d2f7[_0x2a8d('0xeb')]());return _0x1d31be;}[_0x2a8d('0x72')](_0x27389e,_0x4e6c5c,_0xad986f=null,_0x430189={}){if(_0xad986f=_0xad986f||Nt(_0x4e6c5c),_0x27389e[_0x2a8d('0xa0')])return null;if(_0x2a8d('0xc6')===this[_0x2a8d('0x100')]){const _0x467643=this['_suggestionFactory']['getSuggestionCallback'](_0x2a8d('0x13c'),_0xad986f,_0x2a8d('0x18'));return this[_0x2a8d('0x120')](()=>_0x467643([_0x27389e],_0x4e6c5c,_0x430189)),null;}const _0x3b93a8=this['editor']['plugins'][_0x2a8d('0x4')](_0x2a8d('0x7b'))['me'],_0x5c9609=[];if('always'!==this[_0x2a8d('0x100')])for(const {suggestion:_0x3c2415,meta:_0x3c653c}of this[_0x2a8d('0x2a')](_0x27389e,_0x2a8d('0xf8')))_0x3c653c[_0x2a8d('0x124')]&&!_0x3c653c[_0x2a8d('0x94')]&&_0x5c9609[_0x2a8d('0x8d')](..._0x3c2415[_0x2a8d('0xcb')]());const _0x3399d2=function(_0x133400,_0x3e6d6e){const _0x5725ed=[];for(const _0xadafd8 of _0x3e6d6e){const _0xee7e9=_0x133400[_0x2a8d('0x1f')](_0xadafd8);_0xee7e9&&_0x5725ed[_0x2a8d('0x8d')](_0xee7e9);}return _0x5725ed;}(_0x27389e,_0x5c9609),_0x2b7133=function(_0x5e84c9,_0x548e79){const _0x4f9506=[_0x5e84c9];for(const _0x225dc5 of _0x548e79){let _0x2b723a=0x0;for(;_0x2b723a<_0x4f9506[_0x2a8d('0x74')];){const _0x89f2a3=_0x4f9506[_0x2b723a][_0x2a8d('0x4b')](_0x225dc5);_0x4f9506[_0x2a8d('0x139')](_0x2b723a,0x1,..._0x89f2a3),_0x2b723a+=_0x89f2a3[_0x2a8d('0x74')];}}return _0x4f9506;}(_0x27389e,_0x5c9609);_0x3399d2[_0x2a8d('0x74')]&&this[_0x2a8d('0x50')][_0x2a8d('0xb7')](()=>{for(const _0x4072b1 of _0x3399d2){const _0x3b4596=this[_0x2a8d('0x24')]['getSuggestionCallback'](_0x2a8d('0x13c'),_0xad986f,_0x2a8d('0x18'));this['forceDefaultExecution'](()=>_0x3b4596([_0x4072b1],_0x4e6c5c,_0x430189));}});for(const _0x45a495 of _0x2b7133){let _0x976e28=null,_0x29c481=_0x45a495[_0x2a8d('0x23')],_0xf12914=_0x45a495[_0x2a8d('0x14')];for(const {suggestion:_0x17a291,meta:_0x306bfe}of this[_0x2a8d('0x2a')](_0x45a495,'formatInline')){if(!_0x306bfe[_0x2a8d('0x124')])continue;if(_0x17a291['subType']!=_0xad986f)continue;if(!Ot(_0x17a291,_0x430189))continue;const _0x1e2b78=_0x17a291[_0x2a8d('0x9c')]();if(_0x1e2b78[_0x2a8d('0xad')](_0x45a495,!0x0))return null;_0x29c481=_0x29c481[_0x2a8d('0x2b')](_0x1e2b78[_0x2a8d('0x23')])?_0x29c481:_0x1e2b78['start'],_0xf12914=_0xf12914[_0x2a8d('0x4a')](_0x1e2b78['end'])?_0xf12914:_0x1e2b78[_0x2a8d('0x14')],_0x976e28?_0x1e2b78['start']['isBefore'](_0x976e28[_0x2a8d('0x9c')]()['start'])?(_0x976e28[_0x2a8d('0x9a')](),_0x976e28=_0x17a291):_0x17a291[_0x2a8d('0x9a')]():_0x976e28=_0x17a291;}const _0x2d0bca=this[_0x2a8d('0x50')]['createRange'](_0x29c481,_0xf12914);if(_0x976e28)this[_0x2a8d('0x40')](_0x976e28,_0x2d0bca);else{const _0xebcb32=_0x5b25c0(),_0x239b83=_0x3b93a8['id'];this[_0x2a8d('0x13')]({'id':_0xebcb32,'type':'formatInline:'+_0xad986f,'data':_0x4e6c5c,'createdAt':new Date(),'authorId':_0x239b83,'attributes':_0x430189}),this[_0x2a8d('0x104')](_0x2a8d('0xbc')+_0xad986f,_0xebcb32,_0x239b83,_0x2d0bca);}}return null;}[_0x2a8d('0x11')](_0x49612a,_0x177610,_0x3f71dd=[],_0x2a1687=null,_0x2d48ae={}){_0x177610[_0x2a8d('0x111')]||(_0x177610[_0x2a8d('0x111')]=_0x177610[_0x2a8d('0xa5')]),_0x177610[_0x2a8d('0x83')]=_0x49612a['is'](_0x2a8d('0xf1')),_0x2a1687=_0x2a1687||Nt(_0x177610);const _0x42caf5=_0x3f71dd[_0x2a8d('0xf4')](_0x408f77=>jt(_0x408f77,this['_model'])),_0x3b73a0=_0x49612a['is']('range')?_0x49612a:jt(_0x49612a,this['_model']);if(_0x2a8d('0xc6')===this[_0x2a8d('0x100')]){const _0x254aef=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0xe6'),_0x2a1687,_0x2a8d('0x18'));return this['forceDefaultExecution'](()=>_0x254aef([_0x3b73a0],_0x177610,_0x2d48ae)),null;}_0x42caf5['push'](_0x3b73a0);let _0x4218a1=!0x0;for(const _0x2556bb of _0x42caf5)if(!this['_rangeIsInLocalUserInsertion'](_0x2556bb)){_0x4218a1=!0x1;break;}if(_0x4218a1&&'always'!==this['_trackFormatChanges']){const _0x139bad=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0xe6'),_0x2a1687,'accept');return this[_0x2a8d('0x120')](()=>_0x139bad([_0x3b73a0],_0x177610,_0x2d48ae)),null;}let _0x5ef63f=null,_0x38d41f=_0x3b73a0[_0x2a8d('0x23')],_0x1bff64=_0x3b73a0['end'];for(const {suggestion:_0x2a35c8,meta:_0x42dcf7}of this['_findSuggestions'](_0x3b73a0,_0x2a8d('0xe6'))){if(!_0x42dcf7[_0x2a8d('0x124')])continue;if(_0x42dcf7[_0x2a8d('0x9d')]||_0x42dcf7['containsRangeInObject']||_0x42dcf7['isInsideObject'])continue;if(_0x2a35c8[_0x2a8d('0xb8')]['formatGroupId']!=_0x177610['formatGroupId'])continue;if(!Ot(_0x2a35c8,_0x2d48ae))continue;const _0x3a3b69=_0x2a35c8[_0x2a8d('0x9c')]();if(_0x2a35c8['subType']==_0x2a1687){if(_0x3a3b69['containsRange'](_0x3b73a0,!0x0))return null;_0x38d41f=_0x38d41f['isBefore'](_0x3a3b69['start'])?_0x38d41f:_0x3a3b69[_0x2a8d('0x23')],_0x1bff64=_0x1bff64[_0x2a8d('0x4a')](_0x3a3b69['end'])?_0x1bff64:_0x3a3b69['end'],_0x5ef63f?_0x3a3b69[_0x2a8d('0x23')][_0x2a8d('0x2b')](_0x5ef63f[_0x2a8d('0x9c')]()[_0x2a8d('0x23')])?(_0x5ef63f[_0x2a8d('0x9a')](),_0x5ef63f=_0x2a35c8):_0x2a35c8[_0x2a8d('0x9a')]():_0x5ef63f=_0x2a35c8;}else{const _0x227aeb=_0x3b73a0[_0x2a8d('0x1f')](_0x3a3b69);this['_cutOutSuggestionMarker'](_0x2a35c8,_0x227aeb);}}const _0x492be5=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')](_0x2a8d('0x7b'))['me'],_0x12a2b1=_0x5b25c0(),_0x2186d1=_0x492be5['id'];if(_0x5ef63f)return this[_0x2a8d('0x40')](_0x5ef63f,this[_0x2a8d('0x50')]['createRange'](_0x38d41f,_0x1bff64)),_0x5ef63f;{const _0x17582d=this[_0x2a8d('0x13')]({'id':_0x12a2b1,'type':_0x2a8d('0x103')+_0x2a1687,'data':_0x177610,'createdAt':new Date(),'authorId':_0x2186d1,'attributes':_0x2d48ae});return this[_0x2a8d('0x104')](_0x2a8d('0x103')+_0x2a1687,_0x12a2b1,_0x2186d1,this['_model'][_0x2a8d('0x12b')](_0x38d41f,_0x1bff64)),_0x17582d;}}[_0x2a8d('0xe')](_0x44dda4,_0x5b4895,_0x100419=[],_0x5783fb=null,_0x4fc800={}){_0x5b4895[_0x2a8d('0x111')]||(_0x5b4895[_0x2a8d('0x111')]=_0x5b4895['commandName']);const _0x4a6728=_0x44dda4[0x0];_0x5b4895[_0x2a8d('0x83')]=_0x4a6728['is'](_0x2a8d('0xf1')),_0x5783fb=_0x5783fb||Nt(_0x5b4895);const _0x4ec615=_0x100419[_0x2a8d('0xf4')](_0x361c82=>jt(_0x361c82,this[_0x2a8d('0x50')])),_0x6ee883=_0x4a6728['is'](_0x2a8d('0xf1'))?_0x44dda4:_0x44dda4[_0x2a8d('0xf4')](_0x298e05=>jt(_0x298e05,this['_model']));if(_0x2a8d('0xc6')===this[_0x2a8d('0x100')]){const _0x51386f=this['_suggestionFactory'][_0x2a8d('0xcd')](_0x2a8d('0xe6'),_0x5783fb,_0x2a8d('0x18'));return this[_0x2a8d('0x120')](()=>_0x51386f(_0x6ee883,_0x5b4895,_0x4fc800)),null;}_0x4ec615['push'](..._0x6ee883);let _0x17a28a=!0x0;for(const _0x372b8a of _0x4ec615)if(!this['_rangeIsInLocalUserInsertion'](_0x372b8a)){_0x17a28a=!0x1;break;}if(_0x17a28a&&_0x2a8d('0xac')!==this[_0x2a8d('0x100')]){const _0x4d9b61=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0xe6'),_0x5783fb,_0x2a8d('0x18'));return this[_0x2a8d('0x120')](()=>_0x4d9b61(_0x6ee883,_0x5b4895,_0x4fc800)),null;}const _0x25f267=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')](_0x2a8d('0x7b'))['me'];for(const _0xd04df3 of this[_0x2a8d('0x130')]()){if(_0xd04df3[_0x2a8d('0xdb')]['id']!=_0x25f267['id'])continue;if(_0x2a8d('0xe6')!=_0xd04df3['type']||_0xd04df3[_0x2a8d('0xb8')][_0x2a8d('0x111')]!=_0x5b4895['formatGroupId'])continue;if(!Ot(_0xd04df3,_0x4fc800))continue;const _0x1ebf61=_0xd04df3['subType']==_0x5783fb;for(let _0x2cc806=0x0;_0x2cc806<_0x6ee883[_0x2a8d('0x74')];_0x2cc806++){const _0x403e5e=_0x6ee883[_0x2cc806];for(const _0x1ada99 of _0xd04df3['getMarkers']()){const _0x23d880=_0x1ada99[_0x2a8d('0x3f')]();if(_0x403e5e['isEqual'](_0x23d880)){_0x1ebf61?(_0x6ee883[_0x2a8d('0x139')](_0x2cc806,0x1),_0x2cc806--):_0xd04df3[_0x2a8d('0x93')](_0x1ada99[_0x2a8d('0x97')]);break;}}}}if(0x0==_0x6ee883[_0x2a8d('0x74')])return null;const _0x4acc03=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0xe6'),_0x5783fb,_0x2a8d('0xae'));for(const _0x22a72c of this[_0x2a8d('0x130')]())if(_0x22a72c[_0x2a8d('0xdb')]['id']==_0x25f267['id']&&_0x2a8d('0xe6')==_0x22a72c[_0x2a8d('0x131')]&&_0x22a72c[_0x2a8d('0xb8')][_0x2a8d('0x111')]==_0x5b4895['formatGroupId']&&_0x22a72c['subType']==_0x5783fb&&Ot(_0x22a72c,_0x4fc800)&&(_0x4acc03(_0x22a72c[_0x2a8d('0xcb')](),_0x6ee883)||_0x4acc03(_0x6ee883,_0x22a72c['getRanges']()))){for(const _0x209117 of _0x6ee883)_0x22a72c[_0x2a8d('0x46')](_0x209117);return _0x22a72c;}const _0x1d3782=_0x5b25c0(),_0x461b00=_0x25f267['id'],_0x4e42c6=_0x2a8d('0x103')+_0x5783fb,_0x599825=this[_0x2a8d('0x13')]({'id':_0x1d3782,'type':_0x4e42c6,'data':_0x5b4895,'createdAt':new Date(),'authorId':_0x461b00,'attributes':_0x4fc800});for(const _0x648629 of _0x6ee883)this['_addSuggestionMarker'](_0x4e42c6,_0x1d3782,_0x461b00,_0x648629,_0xc5d2f7[_0x2a8d('0xeb')]());return _0x599825;}[_0x2a8d('0x121')](_0x48cd41,_0x732c9c=null,_0xc2af21={}){if(_0x48cd41[_0x2a8d('0xa0')])return null;const _0x445b07=this[_0x2a8d('0x7')]['plugins'][_0x2a8d('0x4')](_0x2a8d('0x7b'))['me'],_0x340ec4=new _0x26055e(_0x48cd41['start'],_0x48cd41[_0x2a8d('0x14')]);for(const {suggestion:_0x45df04,meta:_0x27492d}of this[_0x2a8d('0x2a')](_0x340ec4,_0x2a8d('0xf8')))if(_0x27492d[_0x2a8d('0x124')]&&!_0x27492d['isNextTo']){if(_0x45df04[_0x2a8d('0x30')]){const _0x5db3de=_0x45df04[_0x2a8d('0xcb')]()[_0x2a8d('0xc1')](_0x1eb543=>_0x2a8d('0xd5')!=_0x1eb543[_0x2a8d('0x13b')]['rootName']);_0x5db3de[_0x2a8d('0x41')](_0xf744b2=>_0x340ec4['containsRange'](_0xf744b2,!0x0))&&_0x45df04[_0x2a8d('0x1c')]();if(_0x5db3de[_0x2a8d('0x96')](_0x260d93=>_0x260d93[_0x2a8d('0xad')](_0x340ec4,!0x0))){const _0x1cf6ad=this[_0x2a8d('0x24')][_0x2a8d('0xcd')]('deletion',_0x732c9c,'accept');return this[_0x2a8d('0x120')](()=>_0x1cf6ad([_0x340ec4],null,_0xc2af21)),null;}}else{const _0xb38960=_0x340ec4['getIntersection'](_0x45df04[_0x2a8d('0x9c')]());null!==_0xb38960&&_0x45df04['_onDiscard']([_0xb38960],null,_0xc2af21);}}if(_0x340ec4[_0x2a8d('0xbe')](),_0x340ec4['isCollapsed']||'$graveyard'==_0x340ec4[_0x2a8d('0x13b')][_0x2a8d('0x5e')])return null;let _0x29a94f=null,_0x4e34a3=_0x340ec4[_0x2a8d('0x23')],_0x3fe8db=_0x340ec4[_0x2a8d('0x14')];const _0x41c93d=this[_0x2a8d('0x2a')](_0x340ec4,_0x2a8d('0x5d'));for(const {suggestion:_0x317fe0,meta:_0xf6269e}of _0x41c93d){const _0x5a9f86=this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x4e34a3,_0x3fe8db);if(_0xf6269e['isOwn']&&(this[_0x2a8d('0xd6')]||!_0xf6269e[_0x2a8d('0xc3')]&&!_0xf6269e[_0x2a8d('0x94')])){if(_0x317fe0[_0x2a8d('0x30')]){if(!Ot(_0x317fe0,_0xc2af21))continue;let _0x262749=!0x0;for(const _0x1f808b of _0x317fe0[_0x2a8d('0xcb')]()){if(_0x1f808b[_0x2a8d('0xad')](_0x5a9f86,!0x0))return _0x317fe0;_0x5a9f86['containsRange'](_0x1f808b)||(_0x262749=!0x1);}_0x262749&&_0x317fe0[_0x2a8d('0x1c')]();}else{const _0x46ffb1=_0x317fe0[_0x2a8d('0x9c')]();if(_0x46ffb1[_0x2a8d('0xad')](_0x5a9f86,!0x0))return _0x317fe0;if(!Ot(_0x317fe0,_0xc2af21)){_0x5a9f86[_0x2a8d('0xad')](_0x46ffb1)?_0x317fe0[_0x2a8d('0x9a')]():_0x46ffb1['containsPosition'](_0x4e34a3)?_0x4e34a3=_0x46ffb1[_0x2a8d('0x14')]:_0x46ffb1['containsPosition'](_0x3fe8db)&&(_0x3fe8db=_0x46ffb1[_0x2a8d('0x23')]);continue;}_0x4e34a3=_0x4e34a3[_0x2a8d('0x2b')](_0x46ffb1[_0x2a8d('0x23')])?_0x4e34a3:_0x46ffb1[_0x2a8d('0x23')],_0x3fe8db=_0x3fe8db[_0x2a8d('0x4a')](_0x46ffb1[_0x2a8d('0x14')])?_0x3fe8db:_0x46ffb1[_0x2a8d('0x14')],_0xc2af21=Object['assign']({},_0x317fe0['attributes']),_0x29a94f?_0x46ffb1[_0x2a8d('0x23')]['isBefore'](_0x29a94f[_0x2a8d('0x9c')]()[_0x2a8d('0x23')])?(_0x29a94f[_0x2a8d('0x9a')](),_0x29a94f=_0x317fe0):_0x317fe0[_0x2a8d('0x9a')]():_0x29a94f=_0x317fe0;}}}if(_0x29a94f)return this[_0x2a8d('0x40')](_0x29a94f,this[_0x2a8d('0x50')]['createRange'](_0x4e34a3,_0x3fe8db)),_0x29a94f;{const _0x40bafe=_0x5b25c0(),_0x4f0ff3=this[_0x2a8d('0x50')]['createRange'](_0x4e34a3,_0x3fe8db),_0x4ab3ee=_0x445b07['id'],_0x545c88=_0x732c9c?_0x2a8d('0xea')+_0x732c9c:_0x2a8d('0x5d'),_0xf7d6f0=this[_0x2a8d('0x13')]({'id':_0x40bafe,'type':_0x545c88,'createdAt':new Date(),'authorId':_0x4ab3ee,'attributes':_0xc2af21});return this['_addSuggestionMarker'](_0x545c88,_0x40bafe,_0x4ab3ee,_0x4f0ff3),_0xf7d6f0;}}[_0x2a8d('0x7f')](_0x1120a2,_0x563081=_0x2a8d('0xc5'),_0x46f324={}){const _0x393da6=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')](_0x2a8d('0x7b'))['me'],_0x3a3d8f=_0x1120a2[_0x2a8d('0xf4')](_0x5b4f29=>new _0x26055e(_0x5b4f29['start'],_0x5b4f29[_0x2a8d('0x14')])),_0x5a33b0=new Set();for(const {suggestion:_0x5739db,meta:_0x28ddf1}of this['_findSuggestions'](_0x3a3d8f,'insertion'))_0x28ddf1[_0x2a8d('0x124')]&&!_0x28ddf1[_0x2a8d('0x9d')]&&_0x5a33b0[_0x2a8d('0x65')](_0x5739db);for(const _0x1e65ef of _0x5a33b0)if(_0x1e65ef['isMultiRange']){const _0x2e3954=_0x1e65ef[_0x2a8d('0xcb')]();(!_0x1e65ef[_0x2a8d('0x12f')]||!_0x1e65ef['attributes'][_0x2a8d('0x12e')])&&(_0x2e3954[_0x2a8d('0x41')](_0x2e8810=>_0x3a3d8f['some'](_0x4949eb=>_0x4949eb[_0x2a8d('0xad')](_0x2e8810,!0x0)))&&_0x1e65ef[_0x2a8d('0x1c')]());if(_0x3a3d8f[_0x2a8d('0x41')](_0x5ca07c=>_0x2e3954[_0x2a8d('0x96')](_0xb82f9c=>_0xb82f9c[_0x2a8d('0xad')](_0x5ca07c,!0x0)))){const _0x2c4b35=this['_suggestionFactory'][_0x2a8d('0xcd')](_0x2a8d('0x5d'),_0x563081,_0x2a8d('0x18'));return this[_0x2a8d('0x120')](()=>_0x2c4b35(_0x1120a2,null,_0x46f324)),null;}}else{const _0x3bf878=_0x1e65ef[_0x2a8d('0x9c')]();_0x3a3d8f[_0x2a8d('0x96')](_0x4b708=>_0x4b708[_0x2a8d('0xad')](_0x3bf878,!0x0))&&_0x1e65ef[_0x2a8d('0x1c')]();if(_0x3a3d8f[_0x2a8d('0x41')](_0x50f972=>_0x3bf878[_0x2a8d('0xad')](_0x50f972,!0x0))){const _0x4ae56e=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0x5d'),_0x563081,_0x2a8d('0x18'));return this[_0x2a8d('0x120')](()=>_0x4ae56e(_0x3a3d8f,null,_0x46f324)),null;}}const _0x55af5a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x563081,_0x2a8d('0xae'));let _0x12a882=null;for(const _0x1ce045 of this[_0x2a8d('0x130')]())if(_0x1ce045['author']['id']==_0x393da6['id']&&_0x1ce045[_0x2a8d('0x95')]&&_0x2a8d('0x5d')==_0x1ce045[_0x2a8d('0x131')]&&_0x1ce045[_0x2a8d('0x28')]==_0x563081&&Ot(_0x1ce045,_0x46f324)&&(_0x55af5a(_0x1ce045['getRanges'](),_0x3a3d8f)||_0x55af5a(_0x3a3d8f,_0x1ce045[_0x2a8d('0xcb')]()))){if(_0x12a882){if(_0x1ce045[_0x2a8d('0x86')]&&_0x1ce045[_0x2a8d('0x86')][_0x2a8d('0x74')])continue;for(const _0xd0e543 of _0x1ce045[_0x2a8d('0xcb')]())_0x12a882['isIntersectingWithRange'](_0xd0e543)||_0x12a882[_0x2a8d('0x46')](_0xd0e543);_0x1ce045['removeMarkers']();}else{_0x12a882=_0x1ce045;for(const _0x4ee6b9 of _0x3a3d8f)_0x1ce045[_0x2a8d('0x88')](_0x4ee6b9)||_0x1ce045['addRange'](_0x4ee6b9);}}if(_0x12a882)return _0x12a882;_0x5a33b0[_0x2a8d('0xaf')]();for(const {suggestion:_0x2f79c2,meta:_0x282af2}of this[_0x2a8d('0x2a')](_0x3a3d8f,'deletion'))_0x282af2['isOwn']&&(this[_0x2a8d('0xd6')]||!_0x282af2['containsRangeInObject']&&!_0x282af2['isInsideObject'])&&Ot(_0x2f79c2,_0x46f324)&&_0x5a33b0[_0x2a8d('0x65')](_0x2f79c2);for(const _0x305474 of _0x5a33b0){const _0x37fabc=_0x305474[_0x2a8d('0xcb')]();if(!_0x46f324||!_0x46f324[_0x2a8d('0x12e')]){if(_0x3a3d8f['every'](_0x11d662=>_0x37fabc[_0x2a8d('0x96')](_0x266028=>_0x266028[_0x2a8d('0xad')](_0x11d662,!0x0))))return _0x305474;}(!_0x305474['attributes']||!_0x305474['attributes']['skipNestingCheck'])&&(_0x37fabc[_0x2a8d('0x41')](_0x4a6ab5=>_0x3a3d8f[_0x2a8d('0x96')](_0x553eeb=>_0x553eeb[_0x2a8d('0xad')](_0x4a6ab5,!0x0)))&&_0x305474[_0x2a8d('0x1c')]());}const _0x36355e=_0x5b25c0(),_0x2e91be=_0x393da6['id'],_0x56b73d=_0x2a8d('0xea')+_0x563081,_0x548ea6=this[_0x2a8d('0x13')]({'id':_0x36355e,'type':_0x56b73d,'createdAt':new Date(),'authorId':_0x2e91be,'attributes':_0x46f324});for(const _0xa334f0 of _0x3a3d8f)_0xa334f0[_0x2a8d('0xbe')](),_0xa334f0[_0x2a8d('0xa0')]||_0x2a8d('0xd5')==_0xa334f0[_0x2a8d('0x13b')][_0x2a8d('0x5e')]||this[_0x2a8d('0x104')](_0x56b73d,_0x36355e,_0x2e91be,_0xa334f0,_0xc5d2f7[_0x2a8d('0xeb')]());return _0x548ea6;}[_0x2a8d('0x40')](_0x40c31d,_0x1d8c09){const _0x2b7aa2=_0x40c31d['getFirstMarker']();this['_model']['change'](_0x97b0ce=>{_0x97b0ce['updateMarker'](_0x2b7aa2,{'range':_0x1d8c09});});}[_0x2a8d('0x42')](_0x3fee3e){const _0x1b37d1=_0x3fee3e['id'],_0x407fd3=this['editor'][_0x2a8d('0xe9')][_0x2a8d('0x4')](_0x2a8d('0x48'));this[_0x2a8d('0x125')][_0x2a8d('0x1e')](_0x1b37d1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x407fd3,'threadId':_0x1b37d1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x23d4f1=this[_0x2a8d('0x125')][_0x2a8d('0xb2')](_0x1b37d1);_0x23d4f1[_0x2a8d('0x70')]('isRemovable'),_0x23d4f1[_0x2a8d('0x53')]=!0x1,_0x3fee3e['commentThread']=_0x23d4f1;}[_0x2a8d('0x134')](_0x50809c,_0x5e59cc,_0x605320,_0x1e40e0){if(_0x50809c[_0x2a8d('0x131')]!=_0x5e59cc||_0x50809c['subType']!=_0x605320||_0x50809c[_0x2a8d('0x115')]['id']!=_0x1e40e0)throw this[_0x2a8d('0x7')][_0x2a8d('0x8e')](_0x2a8d('0x71')),new _0x2dc620('track-changes-suggestion-data-mismatch',this);}[_0x2a8d('0x12a')](_0x4718b9,_0x147f10){const _0x3a84de=_0x4718b9['getFirstRange']();if(_0x147f10[_0x2a8d('0xff')](_0x3a84de))_0x4718b9[_0x2a8d('0x9a')]();else{if(_0x3a84de[_0x2a8d('0xad')](_0x147f10)){const _0x4cf604=this['_model'][_0x2a8d('0xb6')](_0x147f10[_0x2a8d('0x23')]['nodeBefore'],'end');this['_setSuggestionRange'](_0x4718b9,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x3a84de[_0x2a8d('0x23')],_0x4cf604));const _0x3ee4eb=_0x5b25c0(),_0x3171a7=_0x4718b9[_0x2a8d('0x115')]['id'],_0xaf73e7=_0x4718b9[_0x2a8d('0x131')]+':'+_0x4718b9['subType'];this['_setSuggestionData']({'id':_0x3ee4eb,'type':_0xaf73e7,'createdAt':new Date(),'authorId':_0x3171a7,'data':_0x4718b9['data'],'attributes':_0x4718b9['attributes']});const _0x31e20d=this[_0x2a8d('0x50')][_0x2a8d('0xb6')](_0x147f10[_0x2a8d('0x14')]['parent'],_0x2a8d('0x1b')),_0x42b001=this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x31e20d,_0x3a84de[_0x2a8d('0x14')]);this['_addSuggestionMarker'](_0xaf73e7,_0x3ee4eb,_0x3171a7,_0x42b001);}else{if(_0x3a84de[_0x2a8d('0xd9')](_0x147f10[_0x2a8d('0x23')])){const _0x3f7848=this['_model']['createPositionAt'](_0x147f10[_0x2a8d('0x23')][_0x2a8d('0x0')],_0x2a8d('0x14'));this[_0x2a8d('0x40')](_0x4718b9,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x3a84de[_0x2a8d('0x23')],_0x3f7848));}else{const _0x48510e=this[_0x2a8d('0x50')][_0x2a8d('0xb6')](_0x147f10[_0x2a8d('0x14')][_0x2a8d('0xd')],_0x2a8d('0x1b'));this[_0x2a8d('0x40')](_0x4718b9,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x48510e,_0x3a84de[_0x2a8d('0x14')]));}}}}[_0x2a8d('0x34')](_0x889385){for(const {suggestion:_0x567d5,meta:_0x15c3fe}of this[_0x2a8d('0x2a')](_0x889385,_0x2a8d('0xf8'))){if(!_0x15c3fe[_0x2a8d('0x124')])continue;const _0x3ed507=_0x567d5[_0x2a8d('0xcb')]();for(const _0x36916c of _0x3ed507)if(!_0x889385[_0x2a8d('0x4b')](_0x36916c)[_0x2a8d('0x74')])return!0x0;}return!0x1;}[_0x2a8d('0x6c')](_0x452ab6){const _0x50bf79=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')]('Users')[_0x2a8d('0x11b')](_0x452ab6);if(!_0x50bf79)throw new _0x2dc620('track-changes-user-not-found',this);return _0x50bf79;}[_0x2a8d('0x136')](_0x2d7e7d){const _0x414c37=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')](_0x2a8d('0x7b')),_0x5d72bc=_0x3e1291('external:'+_0x2d7e7d),_0x3ba7b0=_0x414c37[_0x2a8d('0x11b')](_0x5d72bc);return _0x3ba7b0||_0x414c37[_0x2a8d('0x1d')]({'id':_0x5d72bc,'name':_0x2d7e7d});}[_0x2a8d('0xce')](_0x2edc25,_0x296b0c,_0x47f095,_0xa20659,_0x2ea1ac){const _0x19635e=this[_0x2a8d('0x6c')](_0xa20659),_0x438b03=this['_suggestionFactory'][_0x2a8d('0x9b')](_0x2edc25,_0x296b0c,_0x47f095,_0x19635e,_0x2ea1ac,_0x1c4f03=>this['_updateSuggestionData'](_0x47f095,{'attributes':_0x1c4f03}));return this['listenTo'](_0x438b03,_0x2a8d('0x18'),()=>{this[_0x2a8d('0xfa')](_0x47f095,{'state':_0x2a8d('0xd7')});},{'priority':_0x2a8d('0x117')}),this[_0x2a8d('0x5a')](_0x438b03,_0x2a8d('0x1c'),()=>{this['_updateSuggestionData'](_0x47f095,{'state':_0x2a8d('0x25')});},{'priority':_0x2a8d('0x117')}),this[_0x2a8d('0xb9')][_0x2a8d('0x114')](_0x47f095,_0x438b03),this[_0x2a8d('0xde')][_0x2a8d('0x114')](_0x438b03,_0x2a8d('0x77')),_0x438b03;}[_0x2a8d('0x45')](_0x2cac54){const _0x24575c=_0x2cac54[_0x2a8d('0x127')](':');return{'group':_0x24575c[0x0],'type':_0x24575c[0x1],'subType':_0x24575c[_0x2a8d('0x74')]>=0x5?_0x24575c[0x2]:null,'id':_0x24575c[_0x2a8d('0x74')]<0x5?_0x24575c[0x2]:_0x24575c[0x3],'authorId':_0x24575c['length']<0x5?_0x24575c[0x3]:_0x24575c[0x4],'markerCount':0x6==_0x24575c[_0x2a8d('0x74')]?_0x24575c[0x5]:null};}[_0x2a8d('0x43')](_0x1b6591,_0x4fef28,_0x14f874){const _0x198507=_0x1b6591[_0x2a8d('0x9c')](),_0xa08b5a=_0x198507['start'],_0x3abd07=_0x198507[_0x2a8d('0x14')];this['_setSuggestionRange'](_0x1b6591,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0xa08b5a,_0x4fef28));const _0x47bf2c=_0x5b25c0(),_0x1bf472=_0x1b6591[_0x2a8d('0x115')]['id'],_0x2d4e53=_0x1b6591[_0x2a8d('0x131')]+(_0x1b6591[_0x2a8d('0x28')]?':'+_0x1b6591['subType']:'');this[_0x2a8d('0x13')]({'id':_0x47bf2c,'type':_0x2d4e53,'createdAt':new Date(),'authorId':_0x1bf472,'originalSuggestionId':_0x1b6591['id'],'attributes':_0x1b6591[_0x2a8d('0x12f')],'data':_0x1b6591[_0x2a8d('0xb8')]}),'formatBlock'==_0x1b6591[_0x2a8d('0x131')]&&(_0x14f874=this[_0x2a8d('0x50')]['createPositionBefore'](_0x14f874['parent'])),this['_addSuggestionMarker'](_0x2d4e53,_0x47bf2c,_0x1bf472,this[_0x2a8d('0x50')]['createRange'](_0x14f874,_0x3abd07));}[_0x2a8d('0x2a')](_0x29b922,_0x106cae=null){const _0x54c5cd=[],_0xe84455=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')]('Users')['me'];Array[_0x2a8d('0xd0')](_0x29b922)||(_0x29b922=[_0x29b922]);for(const _0x5f1dfb of this[_0x2a8d('0x130')]()){if(!_0x5f1dfb[_0x2a8d('0x95')])continue;if(_0x106cae&&_0x5f1dfb['type']!=_0x106cae)continue;let _0xeff617=!0x1;for(const _0x2f2b9c of _0x5f1dfb[_0x2a8d('0xcb')]()){for(const _0x1c040a of _0x29b922){const _0x4ea669=_0x1c040a[_0x2a8d('0x23')][_0x2a8d('0xff')](_0x2f2b9c[_0x2a8d('0x14')])||_0x1c040a['end']['isEqual'](_0x2f2b9c[_0x2a8d('0x23')]);if(_0x4ea669||_0x1c040a[_0x2a8d('0x1f')](_0x2f2b9c)){const _0x5b74ea=_0x1c040a['containsRange'](_0x2f2b9c)&&_t(this[_0x2a8d('0x50')][_0x2a8d('0xd1')],_0x2f2b9c[_0x2a8d('0x23')],_0x1c040a),_0x553107=_0x2f2b9c[_0x2a8d('0xad')](_0x1c040a)&&_t(this[_0x2a8d('0x50')][_0x2a8d('0xd1')],_0x1c040a['start'],_0x2f2b9c);_0x54c5cd[_0x2a8d('0x8d')]({'suggestion':_0x5f1dfb,'meta':{'isOwn':_0xe84455==_0x5f1dfb[_0x2a8d('0xdb')],'isNextTo':_0x4ea669,'isInsideObject':_0x5b74ea,'containsRangeInObject':_0x553107}}),_0xeff617=!0x0;break;}}if(_0xeff617)break;}}return _0x54c5cd;}['_addSuggestionMarker'](_0x1a026c,_0x148aac,_0x132e3c,_0x5c7bb2,_0x2215be){this[_0x2a8d('0x50')][_0x2a8d('0xb7')](_0x1dd876=>{let _0x13cf3b=_0x2a8d('0x10')+_0x1a026c+':'+_0x148aac+':'+_0x132e3c;_0x2215be&&(_0x13cf3b=_0x13cf3b+':'+_0x2215be),_0x1dd876[_0x2a8d('0xa')](_0x13cf3b,{'range':_0x5c7bb2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d7428){const _0x4dd427=_0x3d7428[_0x2a8d('0x8c')],_0x2006fb=_0x3d7428['next'];_0x3d7428[_0x2a8d('0x8c')]=null,null!=_0x4dd427&&(_0x4dd427[_0x2a8d('0xe4')]=null),_0x3d7428[_0x2a8d('0xe4')]=null,null!=_0x2006fb&&(_0x2006fb['previous']=null),_0x2a8d('0x9f')==this[_0x2a8d('0xde')]['get'](_0x3d7428)&&(this[_0x2a8d('0xde')]['set'](_0x3d7428,_0x2a8d('0x51')),this[_0x2a8d('0xcf')]('suggestionUnloaded',_0x3d7428,_0x4dd427,_0x2006fb));}[_0x2a8d('0x13')](_0x3b3f20){const _0x327e40=_0x3b3f20['id'],_0x44c71f=this[_0x2a8d('0x8')](_0x3b3f20);if(this[_0x2a8d('0x8b')]&&this[_0x2a8d('0x8b')][_0x2a8d('0xa3')]){const _0x15387d=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')]('PendingActions'),_0x5b596b=_0x44c71f[_0x2a8d('0xf3')],_0x873c88=_0x44c71f['subType']?_0x44c71f['type']+':'+_0x44c71f[_0x2a8d('0x28')]:_0x44c71f[_0x2a8d('0x131')],_0x2694c7=this['editor'][_0x2a8d('0xef')],_0x483512=_0x15387d[_0x2a8d('0x65')](_0x4c2a35(_0x2694c7,_0x2a8d('0x29'))),_0x111c98={'id':_0x327e40,'type':_0x873c88,'hasComments':_0x5b596b,'data':_0x3b3f20[_0x2a8d('0xb8')]||null,'originalSuggestionId':_0x3b3f20['originalSuggestionId']||null,'attributes':_0x44c71f[_0x2a8d('0x12f')]};this['_adapter'][_0x2a8d('0xa3')](_0x111c98)[_0x2a8d('0xd8')](_0x1c257e=>{_0x44c71f[_0x2a8d('0x58')]=!0x0,_0x15387d[_0x2a8d('0x38')](_0x483512),_0x1c257e&&_0x1c257e[_0x2a8d('0xf6')]&&(this['_suggestions']['get'](_0x327e40)[_0x2a8d('0xf6')]=_0x1c257e[_0x2a8d('0xf6')]);})[_0x2a8d('0x1a')](_0x121a3b=>{throw _0xb39196(_0x2a8d('0x62')),this['editor'][_0x2a8d('0xcc')][_0x2a8d('0x108')]({'isUndoable':!0x1},()=>{_0x44c71f[_0x2a8d('0x1c')]();}),_0x44c71f[_0x2a8d('0xee')](),this['_suggestions']['delete'](_0x44c71f['id']),this[_0x2a8d('0xde')]['delete'](_0x44c71f),_0x121a3b;});}return _0x44c71f;}[_0x2a8d('0xfa')](_0x1c9b88,_0x5a0eab){const _0x1c0c03=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')](_0x2a8d('0x109')),_0x59d3ce=this[_0x2a8d('0x101')](_0x1c9b88);if(this[_0x2a8d('0x8b')]&&this[_0x2a8d('0x8b')][_0x2a8d('0x81')]){if(_0x59d3ce['_saved']){const _0x173f3e=_0x1c0c03[_0x2a8d('0x65')](_0x4c2a35(this[_0x2a8d('0x7')][_0x2a8d('0xef')],'PENDING_ACTION_SUGGESTION'));this[_0x2a8d('0x8b')][_0x2a8d('0x81')](_0x1c9b88,_0x5a0eab)['then'](()=>{_0x1c0c03['remove'](_0x173f3e);});}else _0x59d3ce['on'](_0x2a8d('0x10d'),()=>{this[_0x2a8d('0xfa')](_0x1c9b88,_0x5a0eab);});}}[_0x2a8d('0x19')](_0x40a970){if(!this['_adapter']||!this[_0x2a8d('0x8b')][_0x2a8d('0x101')])throw new _0x2dc620(_0x2a8d('0xfd'),this);return this[_0x2a8d('0x8b')]['getSuggestion'](_0x40a970);}[_0x2a8d('0x69')](_0x4f8411){const {id:_0x3b2f5b,type:_0x42904b,subType:_0x191bf3,authorId:_0x53f01e}=this[_0x2a8d('0x45')](_0x4f8411),_0x4b7a0e=this['_suggestions']['get'](_0x3b2f5b)||this[_0x2a8d('0xce')](_0x42904b,_0x191bf3,_0x3b2f5b,_0x53f01e,{});switch(this[_0x2a8d('0x134')](_0x4b7a0e,_0x42904b,_0x191bf3,_0x53f01e),this[_0x2a8d('0xde')]['get'](_0x4b7a0e)){case _0x2a8d('0x77'):this['_getSuggestionData'](_0x3b2f5b)[_0x2a8d('0xd8')](_0x1b6f3e=>{let _0x486e5f=Promise[_0x2a8d('0xf7')]();_0x1b6f3e[_0x2a8d('0xf3')]&&(_0x486e5f=this['_commentsRepository']['fetchCommentThread']({'channelId':this[_0x2a8d('0x7')]['config']['get'](_0x2a8d('0x48')),'threadId':_0x3b2f5b})),_0x486e5f['then'](()=>{this[_0x2a8d('0x8')](_0x1b6f3e)[_0x2a8d('0x58')]=!0x0;});}),this[_0x2a8d('0xde')][_0x2a8d('0x114')](_0x4b7a0e,_0x2a8d('0xf5'));break;case _0x2a8d('0x51'):this['_updateSuggestionData'](_0x3b2f5b,{'state':_0x2a8d('0x110')});case'dataReady':this[_0x2a8d('0xde')]['set'](_0x4b7a0e,_0x2a8d('0x9f')),this[_0x2a8d('0xcf')](_0x2a8d('0x128'),_0x4b7a0e);break;case'ready':this['fire']('suggestionChanged',_0x4b7a0e);}return _0x4b7a0e[_0x2a8d('0x113')](_0x4f8411),_0x4b7a0e;}[_0x2a8d('0x91')](_0x168e4d){const _0x3f8047=Array[_0x2a8d('0x2e')](_0x168e4d)['filter'](_0x28a78c=>!_0x28a78c['isMultiRange']),_0x13e81d=this[_0x2a8d('0x130')]({'skipNotAttached':!0x0})[_0x2a8d('0xc1')](_0xb06343=>!_0xb06343[_0x2a8d('0x30')]),_0x465aa6=_0x13e81d['filter'](_0x1390d1=>!_0x168e4d[_0x2a8d('0x10e')](_0x1390d1)),_0x5e2f33=new Map(_0x13e81d[_0x2a8d('0xf4')](_0x4ec2be=>[_0x4ec2be,this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x4ec2be[_0x2a8d('0x131')],_0x4ec2be[_0x2a8d('0x28')],_0x2a8d('0x3d'))])),_0xeb28d4=new Map(_0x13e81d['map'](_0x5e99c5=>[_0x5e99c5,_0x5e99c5['getFirstRange']()])),_0x46a903=new Set(),_0xb15c37=new Set();for(let _0x452e9d=0x0;_0x452e9d<_0x3f8047[_0x2a8d('0x74')];_0x452e9d++)_0x21ff27(_0x3f8047[_0x452e9d],_0x3f8047,_0x452e9d+0x1);for(let _0x993135=0x0;_0x993135<_0x3f8047[_0x2a8d('0x74')];_0x993135++)_0x21ff27(_0x3f8047[_0x993135],_0x465aa6,0x0);for(let _0x38df3c=0x0;_0x38df3c<_0x3f8047[_0x2a8d('0x74')];_0x38df3c++){const _0x2caa71=_0x3f8047[_0x38df3c];!_0xb15c37['has'](_0x2caa71)&&_0x2caa71[_0x2a8d('0x8c')]&&(_0x2caa71['previous'][_0x2a8d('0xe4')]===_0x2caa71&&(_0x2caa71['previous'][_0x2a8d('0xe4')]=null),_0x2caa71[_0x2a8d('0x8c')]=null),!_0x46a903[_0x2a8d('0x10e')](_0x2caa71)&&_0x2caa71[_0x2a8d('0xe4')]&&(_0x2caa71[_0x2a8d('0xe4')][_0x2a8d('0x8c')]===_0x2caa71&&(_0x2caa71[_0x2a8d('0xe4')][_0x2a8d('0x8c')]=null),_0x2caa71['next']=null);}function _0x21ff27(_0x51a3ba,_0x4d6d45,_0xb2dab7){for(let _0x4f7c1f=_0xb2dab7;_0x4f7c1f<_0x4d6d45['length'];_0x4f7c1f++){const _0x3348f5=_0x2d94aa(_0x51a3ba,_0x4d6d45[_0x4f7c1f]);_0x3348f5&&(_0x3348f5[0x0][_0x2a8d('0xe4')]=_0x3348f5[0x1],_0x3348f5[0x1][_0x2a8d('0x8c')]=_0x3348f5[0x0],_0x46a903[_0x2a8d('0x65')](_0x3348f5[0x0]),_0xb15c37[_0x2a8d('0x65')](_0x3348f5[0x1]));}}function _0x2d94aa(_0x3e10cd,_0x140525){if(_0x3e10cd[_0x2a8d('0xdb')]['id']!==_0x140525[_0x2a8d('0xdb')]['id'])return null;const _0x18a0aa=_0x5e2f33['get'](_0x3e10cd)(_0x3e10cd,_0x140525,_0xeb28d4[_0x2a8d('0x4')](_0x3e10cd),_0xeb28d4[_0x2a8d('0x4')](_0x140525));if(!_0x18a0aa)return null;return _0x5e2f33[_0x2a8d('0x4')](_0x140525)(_0x3e10cd,_0x140525,_0xeb28d4[_0x2a8d('0x4')](_0x3e10cd),_0xeb28d4[_0x2a8d('0x4')](_0x140525))?_0x18a0aa[0x1][_0x2a8d('0x86')]&&_0x18a0aa[0x1][_0x2a8d('0x86')][_0x2a8d('0x74')]?null:_0x18a0aa:null;}}[_0x2a8d('0xc9')](_0x54ab1d){const _0x830f02=Array['from'](_0x54ab1d),_0x458d08=this[_0x2a8d('0x130')]({'skipNotAttached':!0x0}),_0x5dac71=_0x458d08[_0x2a8d('0xc1')](_0x246020=>!_0x54ab1d[_0x2a8d('0x10e')](_0x246020)),_0x1c6015=new Map(_0x830f02['map'](_0x3fd596=>[_0x3fd596,this['_suggestionFactory'][_0x2a8d('0xcd')](_0x3fd596['type'],_0x3fd596[_0x2a8d('0x28')],_0x2a8d('0xae'))])),_0x408bc1=new Map(_0x458d08['map'](_0x3090b7=>[_0x3090b7,_0x3090b7[_0x2a8d('0xcb')]()]));for(let _0x3947df=0x0;_0x3947df<_0x830f02[_0x2a8d('0x74')];_0x3947df++){if(_0x2b5c31(this,_0x830f02[_0x3947df],_0x830f02,_0x3947df+0x1))return!0x0;}for(let _0x3e812f=0x0;_0x3e812f<_0x830f02[_0x2a8d('0x74')];_0x3e812f++){if(_0x2b5c31(this,_0x830f02[_0x3e812f],_0x5dac71,0x0))return!0x0;}return!0x1;function _0x2b5c31(_0xc129a,_0x158707,_0x32ca60,_0x1cc4e2){for(let _0x5ebbc0=_0x1cc4e2;_0x5ebbc0<_0x32ca60[_0x2a8d('0x74')];_0x5ebbc0++){const _0x39b836=_0x32ca60[_0x5ebbc0];if(_0x39b836[_0x2a8d('0x131')]!==_0x158707[_0x2a8d('0x131')]||_0x39b836[_0x2a8d('0xdb')]['id']!==_0x158707[_0x2a8d('0xdb')]['id']||_0x39b836[_0x2a8d('0x28')]!==_0x158707[_0x2a8d('0x28')])continue;if(!Ut(_0x158707,_0x39b836))continue;const _0x2551b4=_0x1c6015['get'](_0x158707),_0x133cee=_0x408bc1[_0x2a8d('0x4')](_0x158707),_0x328601=_0x408bc1[_0x2a8d('0x4')](_0x39b836),_0x122943=_0x158707[_0x2a8d('0x86')]&&_0x158707[_0x2a8d('0x86')]['length'],_0x40d295=_0x39b836[_0x2a8d('0x86')]&&_0x39b836[_0x2a8d('0x86')][_0x2a8d('0x74')];if(!_0x122943&&_0x2551b4(_0x328601,_0x133cee))return _0xc129a[_0x2a8d('0x67')](_0x39b836,_0x158707),_0x408bc1['delete'](_0x158707),!0x0;if(!_0x40d295&&_0x2551b4(_0x133cee,_0x328601))return _0xc129a[_0x2a8d('0x67')](_0x158707,_0x39b836),_0x408bc1['delete'](_0x39b836),!0x0;}return!0x1;}}[_0x2a8d('0x67')](_0x40ec58,_0x3d421d){if(_0x40ec58[_0x2a8d('0x30')])for(const _0x395b2c of _0x3d421d[_0x2a8d('0xcb')]())_0x40ec58[_0x2a8d('0x46')](_0x395b2c);else{const _0x319416=_0x3d421d[_0x2a8d('0x9c')]()['end'];this[_0x2a8d('0x40')](_0x40ec58,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x40ec58[_0x2a8d('0x9c')]()[_0x2a8d('0x23')],_0x319416));}_0x3d421d[_0x2a8d('0x9a')]();}}class Bt{constructor(_0x21c4c1){this[_0x2a8d('0x36')]=_0x21c4c1,this[_0x2a8d('0x50')]=_0x21c4c1[_0x2a8d('0xcc')],this[_0x2a8d('0x52')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x2a8d('0xc7')]();}[_0x2a8d('0x9b')](_0x1a006b,_0x1b62dc,_0x390eee,_0x59e92d,_0x468fac,_0x49130d){return new _0xc5d2f7(this[_0x2a8d('0x50')],{'type':_0x1a006b,'subType':_0x1b62dc,'id':_0x390eee,'author':_0x59e92d,'creator':_0x59e92d,'attributes':_0x468fac,'onAttributesChange':_0x49130d,'onAccept':(..._0x50747d)=>this[_0x2a8d('0xcd')](_0x1a006b,_0x1b62dc,_0x2a8d('0x18'))(..._0x50747d),'onDiscard':(..._0x4ed8fc)=>this[_0x2a8d('0xcd')](_0x1a006b,_0x1b62dc,_0x2a8d('0x1c'))(..._0x4ed8fc)});}[_0x2a8d('0x1')](_0x5c1a14,_0x3bd9cc,_0x29f439,_0x138eab){const _0x457f0a=_0x5c1a14+':'+_0x3bd9cc+':'+_0x29f439;this[_0x2a8d('0x52')][_0x2a8d('0x114')](_0x457f0a,_0x138eab);}[_0x2a8d('0xcd')](_0x5bf301,_0x55800b,_0x323532){const _0x2cf7cb=_0x5bf301+':'+_0x55800b+':'+_0x323532;return this[_0x2a8d('0x52')][_0x2a8d('0x4')](_0x2cf7cb)||this[_0x2a8d('0x57')]['get'](_0x5bf301+':'+_0x323532);}[_0x2a8d('0xc7')](){const _0x336f81=()=>!0x1,_0x25b9e2=_0x5a99a1=>{_0x5a99a1[_0x2a8d('0x11c')]((_0x26d4e9,_0x1232f8)=>_0x26d4e9[_0x2a8d('0x23')][_0x2a8d('0x2b')](_0x1232f8[_0x2a8d('0x23')])?0x1:-0x1),this[_0x2a8d('0x50')]['change'](_0x3b0268=>{for(const _0x3239e8 of _0x5a99a1){let _0x572ec6;_0x572ec6=_0x3239e8[_0x2a8d('0x14')][_0x2a8d('0xe3')]&&_0x3239e8[_0x2a8d('0x14')][_0x2a8d('0xd')]==_0x3239e8[_0x2a8d('0x23')]['nodeAfter']?_0x3b0268[_0x2a8d('0x5')](_0x3239e8['start'][_0x2a8d('0x126')],'on'):_0x3b0268['createSelection'](_0x3239e8),this[_0x2a8d('0x50')][_0x2a8d('0x3e')](_0x572ec6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3d961f=(_0x5728fe,_0x24183a)=>{this[_0x2a8d('0x50')][_0x2a8d('0xb7')](_0x2510fd=>{const {commandName:_0x10a819,commandParams:_0x4d05e2=[]}=_0x24183a,_0x44c944=_0x5728fe[_0x2a8d('0xf4')](_0x2b24ab=>(Mt(_0x2b24ab)&&(_0x2b24ab=this[_0x2a8d('0x50')]['createRange'](_0x2b24ab['end'])),_0x2b24ab))[_0x2a8d('0xc1')](_0x26693d=>_0x2a8d('0xd5')!==_0x26693d[_0x2a8d('0x13b')]['rootName']);if(_0x44c944['length']<0x1)return;const _0x4a107d=Array[_0x2a8d('0x2e')](this['_model'][_0x2a8d('0x8a')][_0x2a8d('0xd3')][_0x2a8d('0xcb')]())[_0x2a8d('0xf4')](_0x3cbf64=>_0x26055e['fromRange'](_0x3cbf64));_0x2510fd[_0x2a8d('0x37')](_0x44c944);for(const _0x20788e of this[_0x2a8d('0x36')][_0x2a8d('0x11e')][_0x2a8d('0x11e')]())_0x20788e[_0x2a8d('0x2c')]();_0x4d05e2['push']({'forceDefaultExecution':!0x0}),this[_0x2a8d('0x36')][_0x2a8d('0xa1')](_0x10a819,..._0x4d05e2);const _0x1a6c7c=_0x4a107d[_0x2a8d('0xc1')](_0xe7deb1=>_0x2a8d('0xd5')!=_0xe7deb1[_0x2a8d('0x13b')][_0x2a8d('0x5e')]);_0x1a6c7c[_0x2a8d('0x74')]>0x0&&_0x2510fd[_0x2a8d('0x37')](_0x1a6c7c);for(const _0x1b5780 of _0x4a107d)_0x1b5780[_0x2a8d('0xbe')]();});},_0x47d257=(_0x2cdb44,_0x5abaef)=>0x1==_0x2cdb44[_0x2a8d('0x74')]&&0x1==_0x5abaef['length']&&_0x2cdb44[0x0][_0x2a8d('0x14')][_0x2a8d('0xff')](_0x5abaef[0x0]['start']),_0x429a09=(_0x193b2f,_0x432f4c,_0x486a81,_0x49b517)=>xt(_0x193b2f,_0x432f4c,_0x486a81,_0x49b517,this[_0x2a8d('0x50')])?[_0x193b2f,_0x432f4c]:xt(_0x432f4c,_0x193b2f,_0x49b517,_0x486a81,this[_0x2a8d('0x50')])?[_0x432f4c,_0x193b2f]:null;this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0x13d'),_0x336f81),this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0x75'),_0x25b9e2),this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0x3c'),_0x47d257),this['_defaultCallbacks'][_0x2a8d('0x114')](_0x2a8d('0x9e'),_0x429a09),this[_0x2a8d('0x57')]['set'](_0x2a8d('0xc2'),_0x25b9e2),this['_defaultCallbacks']['set']('deletion:discard',_0x336f81),this[_0x2a8d('0x57')][_0x2a8d('0x114')]('deletion:join',_0x47d257),this['_defaultCallbacks'][_0x2a8d('0x114')]('deletion:chain',_0x429a09),this['_defaultCallbacks']['set'](_0x2a8d('0x5f'),_0x3d961f),this[_0x2a8d('0x57')]['set'](_0x2a8d('0xfb'),_0x336f81),this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0xb3'),_0x47d257),this[_0x2a8d('0x57')]['set']('formatInline:chain',_0x336f81),this[_0x2a8d('0x57')]['set'](_0x2a8d('0x122'),_0x3d961f),this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0x27'),_0x336f81),this[_0x2a8d('0x57')][_0x2a8d('0x114')]('formatBlock:join',_0x47d257),this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0xc8'),_0x336f81);}}function _t(_0x49d52e,_0x4fc203,_0x2259a1){for(const _0x4b2dab of _0x4fc203[_0x2a8d('0xd')][_0x2a8d('0x87')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4b2dab['root']==_0x4b2dab)return!0x1;if(!_0x2259a1[_0x2a8d('0x6b')](_0x4b2dab))return!0x1;if(_0x49d52e[_0x2a8d('0x13a')](_0x4b2dab)||_0x49d52e['isLimit'](_0x4b2dab))return!0x0;}return!0x1;}function Mt(_0x4092ff){return _0x4092ff['end'][_0x2a8d('0xd')]==_0x4092ff[_0x2a8d('0x23')][_0x2a8d('0x126')]&&_0x4092ff['end'][_0x2a8d('0xa2')];}function $t(_0x2b986a,_0x58e8ed,_0x1a25cb,_0xc6c4ed){const _0x2fd102=_0x535738=>!_0x535738[_0x2a8d('0x112')]['is']('$textProxy')&&!_0xc6c4ed[_0x2a8d('0x13a')](_0x535738['item']),_0x581340=_0x2b986a[_0x2a8d('0x23')][_0x2a8d('0x3b')](_0x2fd102),_0x561ac5=_0x2b986a[_0x2a8d('0x14')][_0x2a8d('0x3b')](_0x2fd102,{'direction':'backward'});return(!_0x2b986a[_0x2a8d('0x23')][_0x2a8d('0xff')](_0x581340)||!_0x2b986a[_0x2a8d('0x14')][_0x2a8d('0xff')](_0x561ac5))&&(_0x581340[_0x2a8d('0x2b')](_0x561ac5)?_0x1a25cb[_0x2a8d('0xd4')](_0x58e8ed,{'range':_0x1a25cb[_0x2a8d('0x12b')](_0x581340,_0x561ac5)}):_0x1a25cb['removeMarker'](_0x58e8ed),!0x0);}function Nt(_0x4451ba){return _0x3e1291(_0x4451ba);}function Rt(_0x2bfba4){const _0x37a91b=_0x2bfba4['start'][_0x2a8d('0x126')];return _0x37a91b&&_0x37a91b['is'](_0x2a8d('0x11a'));}function jt(_0x1dd998,_0x3fb2ed){const _0x3049af=_0x3fb2ed[_0x2a8d('0xd1')]['isObject'](_0x1dd998)||_0x3fb2ed['schema'][_0x2a8d('0xb5')](_0x1dd998);return _0x3fb2ed[_0x2a8d('0x12b')](_0x3fb2ed[_0x2a8d('0xb6')](_0x1dd998,'before'),_0x3049af?_0x3fb2ed[_0x2a8d('0xf0')](_0x1dd998):_0x3fb2ed[_0x2a8d('0xb6')](_0x1dd998,_0x2a8d('0x14')));}function xt(_0x4026e5,_0x189375,_0x39f411,_0x32fc37,_0x5de4e7){if(!Ut(_0x4026e5,_0x189375))return!0x1;if(_0x39f411[_0x2a8d('0x14')]['isEqual'](_0x32fc37['start']))return!0x0;if(_0x4026e5[_0x2a8d('0x131')]!=_0x189375[_0x2a8d('0x131')])return!0x1;if(!_0x39f411['end']['isTouching'](_0x32fc37['start']))return!0x1;const _0x282152=_0x5de4e7['createRange'](_0x39f411['end'],_0x32fc37['start'])[_0x2a8d('0x39')]();for(const _0x1cfcbc of _0x282152)if([_0x2a8d('0xa6'),'elementEnd'][_0x2a8d('0xd2')](_0x1cfcbc[_0x2a8d('0x131')])&&_0x5de4e7[_0x2a8d('0xd1')][_0x2a8d('0x59')](_0x1cfcbc['item']))return!0x1;return!0x0;}function Ut(_0x56ba7f,_0x12e795){return!(!_0x56ba7f[_0x2a8d('0x11d')]||!_0x12e795['_isDataLoaded'])&&_0x40833b(_0x56ba7f[_0x2a8d('0x12f')],_0x12e795[_0x2a8d('0x12f')]);}function Ot(_0x4aaee2,_0x51738a){const _0x38b598=Et(_0x4aaee2[_0x2a8d('0x12f')]),_0x3e8ffa=Et(_0x51738a);if(!_0x4aaee2[_0x2a8d('0x11d')])return!0x1;for(const _0x48da28 of Object['keys'](_0x3e8ffa))if(!_0x40833b(_0x38b598[_0x48da28],_0x3e8ffa[_0x48da28]))return!0x1;return!0x0;}function Et(_0x4492ba){const _0x4b5f02=Object[_0x2a8d('0xc0')]({},_0x4492ba);return delete _0x4b5f02[_0x2a8d('0x12e')],delete _0x4b5f02['tablePasteChainId'],_0x4b5f02;}
23
+ const _0x5dce=['insertContent','_setSuggestionData','getUser','markerToHighlight','isLimit','toJSON','authoredAt','conversion','_isForcedDefaultExecutionBlock','rejected','discardSuggestion','trackChanges.trackFormatChanges','deletion:','multipleBlocks','trackChanges','subType','registerCustomCallback','change:activeMarkers','setSelection','bindElementToMarker','showSuggestionHighlights','registerPostFixer','normal','formatBlock:','commandName','markers','length','nodeAfter','insertion:accept','deletion:discard','_suggestionFactory','accepted','position','_descriptionFactory','getDifference','map','addMarker:suggestion:formatBlock','isBlock','schema','deletion','_rangeIsInLocalUserInsertion','getMarkers','_registerDefaultCallbacks','_editor','getFirstRange','skipNestingCheck','getAncestors','end','batch','_suggestionState','isEqual','newRange','_splitMarkerName','splice','multi','marker-count','_updateSuggestionData','getItems','track-changes-suggestion-not-found','containsItem','getWalker','some','moveTargetPosition','isCollapsed','formatBlock:discard','upcast','_breakSuggestionMarker','removeMarker','writer','insertion','addMarker','collaboration.channelId','setTo','createRange','author','getSuggestion','init','markerToData','element','editor','PENDING_ACTION_SUGGESTION','removeComment','removeClass','item','isLocal','Users','from','addClass','setAttribute','removed','suggestion','rootName','forceDefaultExecution','acceptSuggestion','size','addSuggestion','isAfter','formatGroupId','_joinSuggestions','hasSuggestion','createPositionAfter','removeMarkers','$graveyard','includes','isBefore','isObject','getChanges','update:suggestion','toViewElement','ck-suggestion-marker-formatBlock','addUser','formatInline:','trackChangesCommand','plugins','deletion:join','_removeSuggestion','fromRange','addRange','insertion:','name','removeMarker:suggestion:formatBlock','markMultiRangeDeletion','markInlineFormat','acceptSelectedSuggestions','addMarkerName','deletion:accept','getLastMatchingPosition','isNextTo','formatInline:join','containerElement','root','hasCommentThread','detach','suggestion:','get','_commentsRepository','widget','config','data-suggestion','stopListening','addComment','_saved','isDocumentOperation','markDeletion','notReady','getAttribute','suggestion-type','containsRange','previous','elementStart','createPositionBefore','move','discardAllSuggestions','refresh','ck-suggestion-marker--active','markerReady','_isDataLoaded','_mergeNestedSuggestions','_cutOutSuggestionMarker','every','markInsertion','buildSuggestion','differ','getIntersection','assign','mapper','authorName','then','backward','addSuggestionData','isInContent','_checkSuggestionCorrectness','_getExternalAuthor','isAtStart','values','formatInline:chain','reconvertMarker','getAllAdjacentSuggestions','_refreshSuggestionsChain','applyOperation','execute','split','start','trackChanges.mergeNestedSuggestions','_addThreadToSuggestion','isMultiRange','always','insertion:discard','track-changes-adapter-missing-getsuggestion','sort','activeMarkers','attributes','containsRangeInObject','track-changes-suggestion-data-mismatch','track-changes-adapter-already-set','forward','formatBlock:chain','getSuggestions','enqueueChange','data','_onDiscard','isExternal','accept','rethrowUnexpectedError','lowest','getMultiRangeId','getRanges','model','nodeBefore','head','ready','CommentsRepository','_enabledCommands','enableCommand','adapter','createPositionAt','pluginName','markerNameToElements','selection','after','oldRange','formatInline','addHighlight','unbind','_getSuggestionData','containsPosition','_createSuggestion','for','define','createElement','document','formatBlock:join','low','join','editingDowncast','stop','suggestionLoaded','tablePasteChainId','catch','dataReady','_handleNewSuggestionMarker','_joinWithAdjacentSuggestions','filter','listenTo','change:_saved','_customCallbacks','open','_suggestions','@external','suggestionChanged','getCustomProperty','isRemovable','originalSuggestionId','_getAuthorFromId','$marker','formatBlock','creator','fire','updateMarker','has','dataDowncast','unbindElementFromMarkerName','next','_adapter','deleteContent','delete','_findSuggestions','error-saving-suggestion-data-suggestion-discarded','_trackFormatChanges','hasComments','howMany','parent','consumable','value','addCommentThread','type','push','isInsideObject','commands','_setSuggestionRange','substr','removeAttribute','_model','createRangeIn','TrackChangesEditing','acceptAllSuggestions','PendingActions','high','insert','isIntersectingWithRange','getFirstMarker','splitPosition','insertion:join','getSuggestionCallback','isAtEnd','range','ck-suggestion-marker','elementToElement','before','change','options','_defaultCallbacks','markerName','updateSuggestion','getNearestSelectionRange','discard','_addSuggestionMarker','createdAt','remove','isOwn','documentSelection','insertion:chain','clear','never','set','external:','commentThread','change:data','add','locale','addMarker:suggestion','formatInline:accept','discardSelectedSuggestions','getShiftedBy'];(function(_0x7ac60b,_0x5dced4){const _0x1e414d=function(_0x2f416f){while(--_0x2f416f){_0x7ac60b['push'](_0x7ac60b['shift']());}};_0x1e414d(++_0x5dced4);}(_0x5dce,0x84));const _0x1e41=function(_0x7ac60b,_0x5dced4){_0x7ac60b=_0x7ac60b-0x0;let _0x1e414d=_0x5dce[_0x7ac60b];return _0x1e414d;};import{Plugin as _0x18f85a,PendingActions as _0x4cacbf}from'ckeditor5/src/core';import{LiveRange as _0xb54415}from'ckeditor5/src/engine';import{CKEditorError as _0x2518e4,uid as _0x3e31d,priorities as _0xc70c6b,logWarning as _0x2429d6}from'ckeditor5/src/utils';import{toWidget as _0x5563ab}from'ckeditor5/src/widget';import{Users as _0x21a543,hashObject as _0x7f86c4}from'ckeditor5-collaboration/src/collaboration-core';import _0x167c83 from'./commands/trackchangescommand';import _0x9c9049 from'./commands/acceptsuggestioncommand';import _0x3c6baa from'./commands/discardsuggestioncommand';import _0x43e0d0 from'./commands/executeonallsuggestionscommand';import _0x1ea005 from'./commands/executeonselectedsuggestionscommand';import _0x5d4c5d from'./suggestion';import _0x1424b7 from'./suggestiondescriptionfactory';import _0x38cc90 from'./integrations/aiassistant';import _0x3caed2 from'./integrations/alignment';import _0xe6eed7 from'./integrations/basicstyles';import _0x4715a5 from'./integrations/blockquote';import _0x751d73 from'./integrations/ckbox';import _0x52f1c3 from'./integrations/codeblock';import _0x445021 from'./integrations/comments';import _0x75075a from'./integrations/deletecommand';import _0x4ea6a1 from'./integrations/documentlist';import _0x41d113 from'./integrations/entercommand';import _0x42a226 from'./integrations/findandreplace';import _0x3569ee from'./integrations/font';import _0x4c9680 from'./integrations/formatpainter';import _0x244f8b from'./integrations/heading';import _0x1e404a from'./integrations/highlight';import _0x28c2bb from'./integrations/horizontalline';import _0x50b289 from'./integrations/htmlembed';import _0x2e6444 from'./integrations/image';import _0x5ed54a from'./integrations/imagereplace';import _0x1a2375 from'./integrations/importword';import _0xf2ab57 from'./integrations/indent';import _0x46c788 from'./integrations/inputcommand';import _0x38301e from'./integrations/link';import _0x4b4255 from'./integrations/list';import _0x14487c from'./integrations/listproperties';import _0x367aae from'./integrations/mediaembed';import _0x4178e1 from'./integrations/mention';import _0x3b8da2 from'./integrations/pagebreak';import _0x4aea85 from'./integrations/paragraph';import _0x542d03 from'./integrations/removeformat';import _0x4f4bf3 from'./integrations/restrictededitingmode';import _0x4d7fa5 from'./integrations/shiftentercommand';import _0x1d3a02 from'./integrations/standardeditingmode';import _0x1d172f from'./integrations/style';import _0x556559 from'./integrations/table';import _0x4676c7 from'./integrations/tablemergesplit';import _0x302b06 from'./integrations/tableheadings';import _0x54bfe7 from'./integrations/tableclipboard';import _0xfebd67 from'./integrations/tablecolumnresize';import _0x96f887 from'./integrations/template';import _0x4a8938 from'./integrations/tableofcontents';import _0x151943 from'./integrations/title';import _0x48b4d4 from'./integrations/undo';import{getTranslation as _0x57a117}from'./utils/common-translations';import _0x4c3e2a from'./integrations/tablecaption';import _0xf5793 from'./integrations/documentlistproperties';import _0x18d7b8 from'./integrations/tableproperties';import{isEqual as _0x19984d}from'lodash-es';export default class p extends _0x18f85a{static get['requires'](){return['CommentsRepository',_0x21a543,_0x4cacbf,_0x38cc90,_0x3caed2,_0xe6eed7,_0x4715a5,_0x751d73,_0x52f1c3,_0x445021,_0x75075a,_0x4ea6a1,_0xf5793,_0x41d113,_0x42a226,_0x3569ee,_0x4c9680,_0x244f8b,_0x1e404a,_0x28c2bb,_0x50b289,_0x2e6444,_0x5ed54a,_0x1a2375,_0xf2ab57,_0x46c788,_0x38301e,_0x4b4255,_0x14487c,_0x367aae,_0x4178e1,_0x3b8da2,_0x4aea85,_0x542d03,_0x4f4bf3,_0x4d7fa5,_0x1d3a02,_0x1d172f,_0x556559,_0x4676c7,_0x302b06,_0x4c3e2a,_0x54bfe7,_0xfebd67,_0x4a8938,_0x18d7b8,_0x96f887,_0x151943,_0x48b4d4];}static get[_0x1e41('0x54')](){return _0x1e41('0x98');}constructor(_0x5b2271){function _0x31312d(_0x4ea5d2){return _0x4ea5d2[_0x1e41('0xe3')](_0x4e4a43=>String['fromCharCode'](_0x4e4a43))[_0x1e41('0x65')]('');}super(_0x5b2271),this[_0x1e41('0xb6')](_0x1e41('0x3a'),[]),this['on'](_0x1e41('0xd1'),(_0x418ebf,_0x23b1f8,_0xd4cfe3,_0x1fc072)=>{this['_model']['change'](()=>{for(const _0x362fed of[..._0x1fc072,..._0xd4cfe3])this[_0x1e41('0x96')][_0x1e41('0xd9')][_0x1e41('0x7f')](_0x362fed)&&_0x5b2271['editing'][_0x1e41('0x2c')](_0x362fed);});}),this[_0x1e41('0xe1')]=new _0x1424b7(this[_0x1e41('0x10f')][_0x1e41('0x4b')][_0x1e41('0xe6')],this['editor'][_0x1e41('0xbb')]),this[_0x1e41('0x83')]=null,this[_0x1e41('0xde')]=new Bt(this[_0x1e41('0x10f')]),this['_suggestions']=new Map(),this[_0x1e41('0x3')]=_0x5b2271[_0x1e41('0x131')][_0x1e41('0x2')](_0x1e41('0x4f')),this[_0x1e41('0x50')]=new Set(),this[_0x1e41('0x96')]=this[_0x1e41('0x10f')][_0x1e41('0x4b')],this[_0x1e41('0xf1')]=new WeakMap(),this[_0x1e41('0xc8')]=!0x1,_0x5b2271[_0x1e41('0x5')][_0x1e41('0x60')](_0x1e41('0xcb'),'default'),this[_0x1e41('0x88')]=_0x5b2271[_0x1e41('0x5')]['get'](_0x1e41('0xcb')),_0x5b2271[_0x1e41('0x5')][_0x1e41('0x60')](_0x1e41('0x33'),!0x0),this[_0x1e41('0x19')]=_0x5b2271[_0x1e41('0x5')][_0x1e41('0x2')](_0x1e41('0x33')),this['trackChangesCommand']=new _0x167c83(_0x5b2271,this[_0x1e41('0x50')]),this[_0x31312d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x31312d([0x34,0x30,0x34,0x36,0x32,0x30,0x32,0x30]);}[_0x1e41('0x10c')](){const _0x37365f=this[_0x1e41('0x10f')];_0x37365f[_0x1e41('0xc7')]['for'](_0x1e41('0x66'))[_0x1e41('0xc3')]({'model':_0x1e41('0x11a'),'view':_0x4e56d4=>{const {id:_0x57be86,type:_0x20fa92}=this[_0x1e41('0xf4')](_0x4e56d4[_0x1e41('0xaa')]),_0x25662b=[_0x1e41('0xa4'),'ck-suggestion-marker-'+_0x20fa92];let _0x202df3=0xbb8;return this[_0x1e41('0x3a')][_0x1e41('0x127')](_0x4e56d4[_0x1e41('0xaa')])&&(_0x25662b[_0x1e41('0x90')](_0x1e41('0x16')),_0x202df3=0xbc2),_0x1e41('0xe7')==_0x20fa92&&(_0x202df3+=0x5),{'classes':_0x25662b,'attributes':{'data-suggestion':_0x57be86},'priority':_0x202df3};}}),_0x37365f['conversion'][_0x1e41('0x5f')]('dataDowncast')['add'](_0x7a6eca=>{_0x7a6eca['on'](_0x1e41('0xbc'),(_0x4f074b,_0x14c410,_0x478e31)=>{if(!_0x478e31[_0x1e41('0xa8')]['showSuggestionHighlights'])return;const _0x3f9ba7=_0x14c410['item'];if(!_0x3f9ba7)return;const _0x52eb1c=_0x478e31[_0x1e41('0x21')][_0x1e41('0x12c')](_0x3f9ba7);_0x37365f[_0x1e41('0x4b')]['schema'][_0x1e41('0x129')](_0x3f9ba7)&&_0x52eb1c&&!_0x52eb1c[_0x1e41('0x76')](_0x1e41('0x4'))&&_0x52eb1c['is'](_0x1e41('0x141'))&&_0x5563ab(_0x52eb1c,_0x478e31[_0x1e41('0x104')]);},{'priority':_0x1e41('0x9b')});}),_0x37365f[_0x1e41('0xc7')][_0x1e41('0x5f')](_0x1e41('0x80'))['markerToHighlight']({'model':_0x1e41('0x11a'),'view':(_0x49606b,_0x1aa456)=>{if(!_0x1aa456[_0x1e41('0xa8')][_0x1e41('0xd4')])return null;const {type:_0x3b9b12}=this[_0x1e41('0xf4')](_0x49606b[_0x1e41('0xaa')]);return{'classes':[_0x1e41('0xa4'),'ck-suggestion-marker-'+_0x3b9b12],'priority':0xbb8};}});const _0x268905=({showActiveMarkers:_0x55a85a=!0x0}={})=>(_0x4c8988,_0x477374,_0x173ce1)=>{if(!_0x477374['item'])return;if(_0x477374[_0x1e41('0x113')]['is'](_0x1e41('0x56')))return void _0x173ce1[_0x1e41('0x8c')]['consume'](_0x477374[_0x1e41('0x113')],_0x4c8988[_0x1e41('0x137')]);const _0x472d9f=_0x173ce1[_0x1e41('0x21')][_0x1e41('0x12c')](_0x477374['item']);if(!(_0x477374['item']['is'](_0x1e41('0x10e'))&&_0x37365f[_0x1e41('0x4b')][_0x1e41('0xe6')]['isBlock'](_0x477374[_0x1e41('0x113')])&&!_0x472d9f[_0x1e41('0x76')]('addHighlight')))return;const {id:_0x478e46}=this['_splitMarkerName'](_0x477374['markerName']);_0x173ce1[_0x1e41('0x104')][_0x1e41('0x117')]([_0x1e41('0xa4'),_0x1e41('0x12d')],_0x472d9f),_0x173ce1['writer'][_0x1e41('0x118')](_0x1e41('0x6'),_0x478e46,_0x472d9f),_0x173ce1[_0x1e41('0x21')][_0x1e41('0xd3')](_0x472d9f,_0x477374[_0x1e41('0xaa')]),_0x55a85a&&(this[_0x1e41('0x3a')][_0x1e41('0x127')](_0x477374[_0x1e41('0xaa')])?_0x173ce1[_0x1e41('0x104')][_0x1e41('0x117')]('ck-suggestion-marker--active',_0x472d9f):_0x173ce1['writer'][_0x1e41('0x112')](_0x1e41('0x16'),_0x472d9f));for(const _0x4d8479 of _0x37365f['model'][_0x1e41('0x97')](_0x477374[_0x1e41('0x113')])[_0x1e41('0xf9')]())_0x173ce1[_0x1e41('0x8c')]['consume'](_0x4d8479,_0x4c8988[_0x1e41('0x137')]);_0x173ce1[_0x1e41('0x8c')]['consume'](_0x477374[_0x1e41('0x113')],_0x4c8988[_0x1e41('0x137')]);};_0x37365f[_0x1e41('0xc7')][_0x1e41('0x5f')](_0x1e41('0x80'))[_0x1e41('0xba')](_0x191e12=>{_0x191e12['on'](_0x1e41('0xe4'),(_0x45a0ea,_0x4b6740,_0x5487b7)=>{_0x5487b7[_0x1e41('0xa8')]['showSuggestionHighlights']&&_0x268905({'showActiveMarkers':!0x1})(_0x45a0ea,_0x4b6740,_0x5487b7);},{'priority':'highest'});}),_0x37365f[_0x1e41('0xc7')][_0x1e41('0x5f')](_0x1e41('0x80'))[_0x1e41('0x10d')]({'model':_0x1e41('0x11a'),'view':(_0x3dc76b,_0x1b3834)=>_0x1b3834[_0x1e41('0xa8')][_0x1e41('0xd4')]?null:{'group':_0x1e41('0x11a'),'name':_0x3dc76b[_0x1e41('0x94')](0xb)}}),_0x37365f['conversion'][_0x1e41('0x5f')]('upcast')[_0x1e41('0xa5')]({'view':{'name':_0x1e41('0x11a'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5730d6,{writer:_0x1e337d})=>{let _0x53bf4b=_0x1e41('0x1')+_0x5730d6[_0x1e41('0xd')](_0x1e41('0xe'))+':'+_0x5730d6[_0x1e41('0xd')]('id');return _0x5730d6[_0x1e41('0xd')](_0x1e41('0xf7'))&&(_0x53bf4b+=':'+_0x5730d6[_0x1e41('0xd')](_0x1e41('0xf7'))),_0x1e337d[_0x1e41('0x61')](_0x1e41('0x7a'),{'data-name':_0x53bf4b});}}),_0x37365f[_0x1e41('0xc7')][_0x1e41('0x5f')](_0x1e41('0x101'))['dataToMarker']({'view':_0x1e41('0x11a')}),_0x37365f['conversion'][_0x1e41('0x5f')](_0x1e41('0x66'))[_0x1e41('0xba')](_0x27112b=>{_0x27112b['on']('addMarker:suggestion:formatBlock',_0x268905(),{'priority':'high'});}),_0x37365f['conversion'][_0x1e41('0x5f')](_0x1e41('0x66'))[_0x1e41('0xba')](_0x37ee43=>{_0x37ee43['on'](_0x1e41('0x138'),(_0x5b63a7,_0x1b0489,_0x4737e3)=>{const _0x349abc=_0x4737e3[_0x1e41('0x21')][_0x1e41('0x55')](_0x1b0489[_0x1e41('0xaa')]);if(_0x349abc)for(const _0x5c14c8 of _0x349abc)_0x5c14c8[_0x1e41('0x76')](_0x1e41('0x5a'))||(_0x4737e3[_0x1e41('0x104')][_0x1e41('0x112')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x1e41('0x16')],_0x5c14c8),_0x4737e3[_0x1e41('0x104')][_0x1e41('0x95')](_0x1e41('0x6'),_0x5c14c8),_0x4737e3[_0x1e41('0x21')][_0x1e41('0x81')](_0x5c14c8,_0x1b0489[_0x1e41('0xaa')]));},{'priority':_0x1e41('0x9b')});}),_0x37365f[_0x1e41('0x4b')]['document'][_0x1e41('0xd5')](_0x5ef8e8=>{let _0x3a9d10=!0x1;const _0x390dc7=Array[_0x1e41('0x116')](_0x37365f[_0x1e41('0x4b')][_0x1e41('0x62')][_0x1e41('0x1e')]['getChangedMarkers']()),_0x2cc474=new Set();for(const {name:_0x1151c8,data:_0x199c99}of _0x390dc7){const {group:_0x40c1e4,type:_0x4aaa7c,id:_0x277f00}=this[_0x1e41('0xf4')](_0x1151c8);if(_0x1e41('0x11a')!==_0x40c1e4)continue;const _0x1c53e9=this[_0x1e41('0x73')][_0x1e41('0x2')](_0x277f00);if(null!=_0x199c99[_0x1e41('0xf3')]){_0x1e41('0x59')==_0x4aaa7c&&(_0x3a9d10=_0x3a9d10||$t(_0x199c99[_0x1e41('0xf3')],_0x1151c8,_0x5ef8e8,_0x37365f[_0x1e41('0x4b')][_0x1e41('0xe6')]));if(_0x199c99[_0x1e41('0xf3')][_0x1e41('0xff')]||_0x1e41('0x126')==_0x199c99['newRange']['root'][_0x1e41('0x11b')]||_0x1e41('0x7b')==_0x4aaa7c&&!Rt(_0x199c99['newRange'])||_0x1e41('0xe7')==_0x4aaa7c&&!(!Mt(_0x347c45=_0x199c99[_0x1e41('0xf3')])&&!function(_0x416535){return _0x416535['start'][_0x1e41('0x8b')]==_0x416535[_0x1e41('0xef')][_0x1e41('0x4c')]&&_0x416535[_0x1e41('0x32')][_0x1e41('0xa2')];}(_0x347c45)))_0x5ef8e8[_0x1e41('0x103')](_0x1151c8),_0x3a9d10=!0x0;else{if(!_0x1c53e9||!_0x1c53e9['isInContent'])continue;_0x2cc474['add'](_0x1c53e9);}}}var _0x347c45;return _0x2cc474[_0x1e41('0x11e')]>0x0&&(_0x3a9d10=!!this[_0x1e41('0x6d')](_0x2cc474)||_0x3a9d10),_0x3a9d10;}),_0x37365f[_0x1e41('0x4b')][_0x1e41('0x62')][_0x1e41('0xd5')](_0x470b13=>{let _0xe5b954=!0x1;for(const _0x4b55bd of _0x37365f[_0x1e41('0x4b')][_0x1e41('0x62')][_0x1e41('0x1e')][_0x1e41('0x12a')]()){if(_0x1e41('0x9c')!=_0x4b55bd[_0x1e41('0x8f')])continue;const _0x5bd5a2=_0x4b55bd[_0x1e41('0xe0')][_0x1e41('0xbf')](_0x4b55bd['length']);if(_0x5bd5a2[_0x1e41('0xa2')])for(const _0x12c97c of this[_0x1e41('0x73')][_0x1e41('0x2a')]()){if(_0x12c97c[_0x1e41('0x35')]||!_0x12c97c['isInContent'])continue;if(_0x1e41('0x7b')!=_0x12c97c[_0x1e41('0x8f')])continue;const _0x32220f=_0x12c97c[_0x1e41('0xec')]();if(_0x32220f[_0x1e41('0x32')][_0x1e41('0x8b')]!=_0x32220f['end'][_0x1e41('0x8b')]&&_0x32220f[_0x1e41('0xef')][_0x1e41('0xf2')](_0x4b55bd[_0x1e41('0xe0')])){const _0x7a0e1f=_0x37365f[_0x1e41('0x4b')][_0x1e41('0x109')](_0x32220f['start'],_0x5bd5a2);_0x470b13[_0x1e41('0x7e')](_0x12c97c[_0x1e41('0x9e')](),{'range':_0x7a0e1f}),_0xe5b954=!0x0;}}}return _0xe5b954;}),_0x37365f[_0x1e41('0x4b')][_0x1e41('0xd9')]['on'](_0x1e41('0x12b'),(_0x489b93,_0x481130,_0x5ec214)=>{if(null==_0x5ec214){const {id:_0x30fb9d}=this[_0x1e41('0xf4')](_0x481130[_0x1e41('0x137')]),_0x22e118=this[_0x1e41('0x73')]['get'](_0x30fb9d);_0x22e118&&_0x22e118[_0x1e41('0x13c')](_0x481130[_0x1e41('0x137')]);}}),_0x37365f[_0x1e41('0x4b')][_0x1e41('0x62')]['on'](_0x1e41('0xb9'),()=>{const _0x2a94de=Array['from'](_0x37365f[_0x1e41('0x4b')][_0x1e41('0x62')][_0x1e41('0x1e')]['getChangedMarkers']())[_0x1e41('0x6e')](_0x2a4018=>_0x1e41('0x11a')===this[_0x1e41('0xf4')](_0x2a4018[_0x1e41('0x137')])['group']);if(0x0===_0x2a94de['length'])return;_0x2a94de[_0x1e41('0x39')]((_0x7fe03d,_0x5219d6)=>{const _0xb79bcc=_0x7fe03d[_0x1e41('0x43')]['oldRange'],_0xf04942=_0x5219d6[_0x1e41('0x43')][_0x1e41('0x58')];return null===_0xb79bcc&&null===_0xf04942?0x0:null===_0xb79bcc&&null!==_0xf04942?-0x1:null!==_0xb79bcc&&null===_0xf04942?0x1:_0xb79bcc['start'][_0x1e41('0x128')](_0xf04942[_0x1e41('0x32')])?-0x1:0x1;});const _0x27b00e=new Set(),_0xa4606f=new Set();for(const {name:_0x1b428b,data:_0x11cae2}of _0x2a94de){const {id:_0x58a17f}=this[_0x1e41('0xf4')](_0x1b428b);if(null===_0x11cae2[_0x1e41('0x58')]){const _0x35a23f=this[_0x1e41('0x6c')](_0x1b428b);_0xa4606f[_0x1e41('0xba')](_0x35a23f);}else{const _0x123be9=this[_0x1e41('0x73')][_0x1e41('0x2')](_0x58a17f);null!==_0x11cae2[_0x1e41('0xf3')]||_0x123be9['isInContent']?(_0x27b00e[_0x1e41('0xba')](_0x123be9[_0x1e41('0x4d')]),_0xa4606f[_0x1e41('0xba')](_0x123be9)):this[_0x1e41('0x133')](_0x123be9);}}_0xa4606f[_0x1e41('0x11e')]>0x0&&this['_refreshSuggestionsChain'](_0xa4606f);for(const _0x56a643 of _0x27b00e)this['fire'](_0x1e41('0x75'),_0x56a643);}),_0x37365f[_0x1e41('0x4b')]['on'](_0x1e41('0x2f'),(_0x12fc86,_0x5d6531)=>{const _0x1d6c6b=_0x5d6531[0x0];if(!this[_0x1e41('0x73')][_0x1e41('0x11e')])return;if(!_0x1d6c6b[_0x1e41('0xa')])return;if(_0x1d6c6b[_0x1e41('0xf0')]['isUndo']||!_0x1d6c6b[_0x1e41('0xf0')][_0x1e41('0x114')])return;let _0x33f3e4,_0x1447de;switch(_0x1d6c6b[_0x1e41('0x8f')]){case _0x1e41('0x9c'):_0x33f3e4=_0x37365f[_0x1e41('0x4b')][_0x1e41('0x53')](_0x1d6c6b['position']),_0x1447de=_0x33f3e4[_0x1e41('0xbf')](_0x1d6c6b[_0x1e41('0x8a')]);break;case _0x1e41('0x31'):_0x33f3e4=_0x37365f[_0x1e41('0x4b')]['createPositionAt'](_0x1d6c6b[_0x1e41('0x9f')]),_0x1447de=_0x37365f[_0x1e41('0x4b')]['createPositionAt'](_0x1d6c6b[_0x1e41('0xfe')]);break;case _0x1e41('0x13'):_0x33f3e4=_0x37365f[_0x1e41('0x4b')][_0x1e41('0x53')](_0x1d6c6b['targetPosition']),_0x1447de=_0x33f3e4['getShiftedBy'](_0x1d6c6b[_0x1e41('0x8a')]);break;default:return;}const _0x584ad7=_0x37365f[_0x1e41('0x4b')][_0x1e41('0x109')](_0x33f3e4,_0x1447de);_0x37365f[_0x1e41('0x4b')][_0x1e41('0xa7')](()=>{for(const {suggestion:_0x4b6115,meta:_0x304eb6}of this['_findSuggestions'](_0x584ad7)){if(_0x4b6115['isMultiRange'])continue;if(_0x1e41('0x59')==_0x4b6115['type'])continue;const _0x411a50=_0x4b6115[_0x1e41('0x43')]&&_0x4b6115[_0x1e41('0x43')]['multipleBlocks'];(_0x1e41('0x7b')!=_0x4b6115[_0x1e41('0x8f')]||_0x1e41('0x31')==_0x1d6c6b[_0x1e41('0x8f')]&&!_0x411a50)&&(_0x304eb6[_0x1e41('0x3c')]||_0x1e41('0x105')==_0x4b6115[_0x1e41('0x8f')]&&_0x304eb6[_0x1e41('0xb1')]||_0x4b6115[_0x1e41('0xec')]()[_0x1e41('0xf')](_0x584ad7)&&this[_0x1e41('0x102')](_0x4b6115,_0x33f3e4,_0x1447de));}});},{'priority':_0x1e41('0x48')}),_0x37365f[_0x1e41('0x4b')]['on'](_0x1e41('0x84'),(_0x4e8907,_0x294a75)=>{const _0x235a02=_0x294a75[0x0],_0x391b06=_0x294a75[0x1];if(_0x391b06&&_0x391b06[_0x1e41('0x11c')])return;if(this[_0x1e41('0xc8')])return;if(!this[_0x1e41('0x130')]['value'])return;if(_0x235a02[_0x1e41('0xff')])return;const _0x1235b7=_0x37365f[_0x1e41('0x4b')][_0x1e41('0xe6')],{start:_0x38ea85,end:_0x4b5d2a}=_0x235a02[_0x1e41('0xec')](),_0xaf6f24=_0x38ea85['nodeAfter']&&_0x1235b7[_0x1e41('0xc4')](_0x38ea85[_0x1e41('0xdb')])?null:_0x1235b7['getNearestSelectionRange'](_0x38ea85,_0x1e41('0x3f')),_0x1e8a84=_0x4b5d2a[_0x1e41('0x4c')]&&_0x1235b7[_0x1e41('0xc4')](_0x4b5d2a[_0x1e41('0x4c')])?null:_0x1235b7[_0x1e41('0xac')](_0x4b5d2a,_0x1e41('0x24')),_0x2b3593=_0x37365f[_0x1e41('0x4b')][_0x1e41('0x109')](_0xaf6f24?_0xaf6f24[_0x1e41('0x32')]:_0x38ea85,_0x1e8a84?_0x1e8a84[_0x1e41('0xef')]:_0x4b5d2a);_0x37365f[_0x1e41('0x4b')][_0x1e41('0xa7')](_0xf0e106=>{this[_0x1e41('0xb')](_0x2b3593);const _0x49ba19=_0x37365f[_0x1e41('0x4b')]['schema'][_0x1e41('0xac')](_0x2b3593[_0x1e41('0x32')]);_0x235a02['is'](_0x1e41('0xb2'))?_0xf0e106['setSelection'](_0x49ba19):_0x235a02[_0x1e41('0x108')](_0x49ba19);}),_0x4e8907[_0x1e41('0x67')]();},{'priority':_0xc70c6b[_0x1e41('0xd6')]+0xa}),_0x37365f[_0x1e41('0x4b')]['on'](_0x1e41('0xc0'),(_0x2f0edb,_0x5dcddf)=>{const _0x389481=_0x5dcddf[_0x5dcddf[_0x1e41('0xda')]-0x1];_0x389481&&_0x389481[_0x1e41('0x11c')]||this[_0x1e41('0xc8')]||this[_0x1e41('0x130')]['value']&&(_0x37365f[_0x1e41('0x4b')][_0x1e41('0xa7')](()=>{let _0x54e835=_0x37365f['model'][_0x1e41('0xc0')](_0x5dcddf[0x0],_0x5dcddf[0x1],_0x5dcddf[0x2],{'forceDefaultExecution':!0x0});if(!_0x54e835)return;_0x2f0edb['return']=_0x54e835['clone']();const _0x5ed00f=_0x54e835[_0x1e41('0xef')][_0x1e41('0x4c')],_0x43f7b3=_0x37365f[_0x1e41('0x4b')][_0x1e41('0xe6')];_0x5ed00f&&_0x43f7b3[_0x1e41('0xe5')](_0x5ed00f)&&!_0x43f7b3[_0x1e41('0x129')](_0x5ed00f)&&(_0x54e835=_0x37365f[_0x1e41('0x4b')][_0x1e41('0x109')](_0x54e835[_0x1e41('0x32')],_0x37365f[_0x1e41('0x4b')][_0x1e41('0x53')](_0x5ed00f,'end'))),this[_0x1e41('0x1c')](_0x54e835);}),_0x2f0edb[_0x1e41('0x67')]());},{'priority':_0x1e41('0x9b')}),this['editor']['commands'][_0x1e41('0xba')](_0x1e41('0xce'),this['trackChangesCommand']),this[_0x1e41('0x51')]('trackChanges');const _0x3f156c=new _0x9c9049(_0x37365f,this[_0x1e41('0x73')]);_0x37365f[_0x1e41('0x92')][_0x1e41('0xba')](_0x1e41('0x11d'),_0x3f156c),this[_0x1e41('0x51')](_0x1e41('0x11d'));const _0x3aa3c6=new _0x3c6baa(_0x37365f,this[_0x1e41('0x73')]);_0x37365f[_0x1e41('0x92')][_0x1e41('0xba')](_0x1e41('0xca'),_0x3aa3c6),this[_0x1e41('0x51')](_0x1e41('0xca')),_0x37365f[_0x1e41('0x92')][_0x1e41('0xba')](_0x1e41('0x99'),new _0x43e0d0(_0x37365f,_0x3f156c,this[_0x1e41('0x73')])),this['enableCommand'](_0x1e41('0x99')),_0x37365f[_0x1e41('0x92')][_0x1e41('0xba')](_0x1e41('0x14'),new _0x43e0d0(_0x37365f,_0x3aa3c6,this['_suggestions'])),this['enableCommand'](_0x1e41('0x14')),_0x37365f[_0x1e41('0x92')]['add'](_0x1e41('0x13b'),new _0x1ea005(_0x37365f,_0x3f156c,this[_0x1e41('0x73')])),this['enableCommand'](_0x1e41('0x13b')),_0x37365f[_0x1e41('0x92')][_0x1e41('0xba')](_0x1e41('0xbe'),new _0x1ea005(_0x37365f,_0x3aa3c6,this['_suggestions'])),this['enableCommand'](_0x1e41('0xbe'));const _0x182da9=_0x37365f[_0x1e41('0x131')]['get'](_0x1e41('0x4f'));this[_0x1e41('0x6f')](_0x182da9,_0x1e41('0x8'),(_0x554b85,{threadId:_0x102d7e})=>{const _0x28ad33=this['_suggestions'][_0x1e41('0x2')](_0x102d7e);_0x28ad33&&_0x28ad33[_0x1e41('0xb8')]&&0x1===_0x28ad33[_0x1e41('0xb8')][_0x1e41('0xda')]&&this[_0x1e41('0xf8')](_0x102d7e,{'hasComments':!0x0});},{'priority':_0x1e41('0x64')}),this[_0x1e41('0x6f')](_0x182da9,_0x1e41('0x111'),(_0x1bfd1a,{threadId:_0x174efa})=>{const _0x3d5575=this[_0x1e41('0x73')][_0x1e41('0x2')](_0x174efa);_0x3d5575&&_0x3d5575[_0x1e41('0xb8')]&&!_0x3d5575[_0x1e41('0xb8')]['length']&&this[_0x1e41('0xf8')](_0x174efa,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3a15fa){if(this[_0x1e41('0x83')])throw new _0x2518e4(_0x1e41('0x3e'),this);this['_adapter']=_0x3a15fa;}get[_0x1e41('0x52')](){return this[_0x1e41('0x83')];}[_0x1e41('0x41')]({skipNotAttached:_0x41f91f=!0x1,toJSON:_0x5a9209=!0x1}={}){const _0xb4d138=[];for(const _0x188961 of this[_0x1e41('0x73')][_0x1e41('0x2a')]())_0x41f91f&&!_0x188961[_0x1e41('0x26')]||_0xb4d138[_0x1e41('0x90')](_0x188961);return _0x5a9209?_0xb4d138[_0x1e41('0xe3')](_0x3e1700=>_0x3e1700[_0x1e41('0xc5')]()):_0xb4d138;}['getSuggestion'](_0x6185a7){const _0x32b37b=this['_suggestions'][_0x1e41('0x2')](_0x6185a7);if(!_0x32b37b)throw new _0x2518e4(_0x1e41('0xfa'),this);return _0x32b37b;}[_0x1e41('0x123')](_0xba9ec1){return this['_suggestions'][_0x1e41('0x7f')](_0xba9ec1);}[_0x1e41('0x25')](_0x4f8986){const {authorId:_0x8e6264,id:_0x4f18d3,attributes:_0x598ab1}=_0x4f8986,[_0x4c25be,_0x1364ea]=_0x4f8986[_0x1e41('0x8f')][_0x1e41('0x31')](':'),_0x59e27c=this['_suggestions']['get'](_0x4f18d3)||this[_0x1e41('0x5e')](_0x4c25be,_0x1364ea,_0x4f18d3,_0x8e6264,_0x598ab1);if(this['_addThreadToSuggestion'](_0x59e27c),this[_0x1e41('0x27')](_0x59e27c,_0x4c25be,_0x1364ea||null,_0x8e6264),_0x59e27c['createdAt']=_0x4f8986[_0x1e41('0xaf')],_0x59e27c[_0x1e41('0x18')]=!0x0,_0x598ab1&&_0x598ab1[_0x1e41('0x74')]){const _0x596c8e=_0x598ab1[_0x1e41('0x74')],_0x508969=this[_0x1e41('0x28')](_0x596c8e[_0x1e41('0x22')]);_0x59e27c[_0x1e41('0xc6')]=_0x596c8e[_0x1e41('0xaf')],_0x59e27c[_0x1e41('0x10a')]=_0x508969,_0x59e27c[_0x1e41('0x45')]=!0x0;}else _0x59e27c[_0x1e41('0xc6')]=_0x4f8986[_0x1e41('0xaf')];switch(_0x4f8986[_0x1e41('0x43')]&&(_0x59e27c[_0x1e41('0x43')]=_0x4f8986['data']),_0x4f8986[_0x1e41('0x3b')]&&(_0x59e27c[_0x1e41('0x3b')]=_0x4f8986['attributes']),this[_0x1e41('0x83')]&&this['_adapter']['addSuggestion']||(_0x59e27c[_0x1e41('0x9')]=!0x0),this[_0x1e41('0xf1')][_0x1e41('0x2')](_0x59e27c)){case _0x1e41('0xc'):this['_suggestionState'][_0x1e41('0xb6')](_0x59e27c,_0x1e41('0x6b'));break;case _0x1e41('0x17'):_0x59e27c[_0x1e41('0x26')]?(this[_0x1e41('0x2e')](new Set([_0x59e27c])),this[_0x1e41('0x6d')](new Set([_0x59e27c])),this['_suggestionState'][_0x1e41('0xb6')](_0x59e27c,_0x1e41('0x4e')),this['fire']('suggestionLoaded',_0x59e27c)):this[_0x1e41('0xf1')][_0x1e41('0xb6')](_0x59e27c,'removed');}return _0x59e27c;}[_0x1e41('0x11d')](_0x2a6991){this['forceDefaultExecution'](()=>{this['editor'][_0x1e41('0x4b')][_0x1e41('0xa7')](()=>{for(const _0x18d65a of _0x2a6991[_0x1e41('0x2d')]())_0x18d65a['accept']();});});}[_0x1e41('0xca')](_0x4122b1){this[_0x1e41('0x11c')](()=>{this[_0x1e41('0x10f')][_0x1e41('0x4b')][_0x1e41('0xa7')](()=>{for(const _0x29128c of _0x4122b1[_0x1e41('0x2d')]())_0x29128c[_0x1e41('0xad')]();});});}[_0x1e41('0x51')](_0x28f0ea,_0x33fa86){const _0x5e5603=this[_0x1e41('0x10f')][_0x1e41('0x92')]['get'](_0x28f0ea);if(!_0x5e5603)throw new _0x2518e4('track-changes-command-not-found',this,{'commandName':_0x28f0ea});this[_0x1e41('0x50')]['add'](_0x5e5603),_0x33fa86&&_0x5e5603['on'](_0x1e41('0x30'),(_0x316e87,_0x1858ef)=>{this[_0x1e41('0x130')][_0x1e41('0x8d')]&&(this['_isForcedDefaultExecutionBlock']||_0x1858ef['length']>0x0&&_0x1858ef[_0x1858ef['length']-0x1]&&_0x1858ef[_0x1858ef[_0x1e41('0xda')]-0x1][_0x1e41('0x11c')]||(_0x33fa86((..._0x1dd18a)=>_0x5e5603[_0x1e41('0x30')](..._0x1dd18a,{'forceDefaultExecution':!0x0}),..._0x1858ef),_0x316e87[_0x1e41('0x67')]()));},{'priority':_0x1e41('0x9b')});}[_0x1e41('0x11c')](_0x162900){let _0x3672a9,_0x44d1aa;const _0x465bae=this['_isForcedDefaultExecutionBlock'];this[_0x1e41('0xc8')]=!0x0;try{_0x3672a9=_0x162900();}catch(_0x114ea2){_0x44d1aa=_0x114ea2;}return _0x465bae||(this[_0x1e41('0xc8')]=!0x1),_0x44d1aa&&_0x2518e4[_0x1e41('0x47')](_0x44d1aa,this),_0x3672a9;}['markInsertion'](_0x46b3dd,_0x3aa3a0=null,_0x361f55={}){if(_0x46b3dd[_0x1e41('0xff')])return null;const _0x5a50bc=this['editor'][_0x1e41('0x131')]['get'](_0x1e41('0x115'))['me'];for(const {suggestion:_0x1f7f62,meta:_0x3a55b0}of this[_0x1e41('0x86')](_0x46b3dd,_0x1e41('0x105')))if(_0x3a55b0[_0x1e41('0xb1')]){if(!_0x3a55b0[_0x1e41('0x13f')]){if(_0x3a55b0['containsRangeInObject']){if(!this[_0x1e41('0x19')]||!Ot(_0x1f7f62,_0x361f55))continue;return _0x1f7f62;}if(Ot(_0x1f7f62,_0x361f55))return _0x1f7f62;this[_0x1e41('0x102')](_0x1f7f62,_0x46b3dd[_0x1e41('0x32')],_0x46b3dd['end']);break;}if(_0x3aa3a0==_0x1f7f62['subType']&&Ot(_0x1f7f62,_0x361f55)){const _0x60538c=_0x1f7f62[_0x1e41('0xec')]();return _0x60538c['start'][_0x1e41('0xf2')](_0x46b3dd[_0x1e41('0xef')])?this[_0x1e41('0x93')](_0x1f7f62,this[_0x1e41('0x96')][_0x1e41('0x109')](_0x46b3dd[_0x1e41('0x32')],_0x60538c[_0x1e41('0xef')])):this[_0x1e41('0x93')](_0x1f7f62,this[_0x1e41('0x96')][_0x1e41('0x109')](_0x60538c['start'],_0x46b3dd[_0x1e41('0xef')])),_0x1f7f62;}}const _0x37e59a=_0x3e31d(),_0x52f0c9=_0x5a50bc['id'],_0x509657=_0x3aa3a0?_0x1e41('0x136')+_0x3aa3a0:_0x1e41('0x105'),_0x42c478=this['_setSuggestionData']({'id':_0x37e59a,'type':_0x509657,'createdAt':new Date(),'authorId':_0x52f0c9,'attributes':_0x361f55});return this['_addSuggestionMarker'](_0x509657,_0x37e59a,_0x52f0c9,_0x46b3dd),_0x42c478;}['markMultiRangeInsertion'](_0x3dd61e,_0x55a9cf=_0x1e41('0xf6'),_0x41c6ca={}){const _0x413d96=this[_0x1e41('0x10f')][_0x1e41('0x131')][_0x1e41('0x2')]('Users')['me'],_0x476da6=this[_0x1e41('0xde')][_0x1e41('0xa1')](_0x1e41('0x105'),_0x55a9cf,_0x1e41('0x65'));for(const _0x2ad93 of this[_0x1e41('0x41')]())if(_0x2ad93[_0x1e41('0x10a')]['id']==_0x413d96['id']&&_0x1e41('0x105')==_0x2ad93['type']&&_0x2ad93[_0x1e41('0xcf')]==_0x55a9cf&&Ot(_0x2ad93,_0x41c6ca)&&(_0x476da6(_0x2ad93[_0x1e41('0x4a')](),_0x3dd61e)||_0x476da6(_0x3dd61e,_0x2ad93[_0x1e41('0x4a')]()))){for(const _0x1ae337 of _0x3dd61e)_0x2ad93[_0x1e41('0x135')](_0x1ae337);return _0x2ad93;}for(const {suggestion:_0x318cc5,meta:_0x55383a}of this[_0x1e41('0x86')](_0x3dd61e,_0x1e41('0x105'))){if(!_0x55383a[_0x1e41('0xb1')])continue;if(!this[_0x1e41('0x19')]&&_0x55383a['containsRangeInObject'])continue;if(!Ot(_0x318cc5,_0x41c6ca))continue;let _0x155cdc=!0x0;for(const _0x97ad6 of _0x318cc5[_0x1e41('0x4a')]())for(const _0x5a8936 of _0x3dd61e)if(!_0x97ad6['containsRange'](_0x5a8936)){_0x155cdc=!0x1;break;}if(_0x155cdc)return _0x318cc5;}const _0xbe5e38=_0x3e31d(),_0xbec89a=_0x413d96['id'],_0x2a749d='insertion:'+_0x55a9cf,_0x4749ce=this[_0x1e41('0xc1')]({'id':_0xbe5e38,'type':_0x2a749d,'createdAt':new Date(),'authorId':_0xbec89a,'attributes':_0x41c6ca});for(const _0xa1502b of _0x3dd61e)this[_0x1e41('0xae')](_0x2a749d,_0xbe5e38,_0xbec89a,_0xa1502b,_0x5d4c5d['getMultiRangeId']());return _0x4749ce;}[_0x1e41('0x13a')](_0x2271c3,_0x204eba,_0x29f3c3=null,_0x5c4ba3={}){if(_0x29f3c3=_0x29f3c3||Nt(_0x204eba),_0x2271c3['isCollapsed'])return null;if('never'===this[_0x1e41('0x88')]){const _0x979c9e=this['_suggestionFactory'][_0x1e41('0xa1')](_0x1e41('0x59'),_0x29f3c3,'accept');return this[_0x1e41('0x11c')](()=>_0x979c9e([_0x2271c3],_0x204eba,_0x5c4ba3)),null;}const _0x307c21=this[_0x1e41('0x10f')][_0x1e41('0x131')][_0x1e41('0x2')](_0x1e41('0x115'))['me'],_0x1d72eb=[];if('always'!==this[_0x1e41('0x88')])for(const {suggestion:_0x237d81,meta:_0x4d7a90}of this['_findSuggestions'](_0x2271c3,_0x1e41('0x105')))_0x4d7a90[_0x1e41('0xb1')]&&!_0x4d7a90[_0x1e41('0x91')]&&_0x1d72eb[_0x1e41('0x90')](..._0x237d81['getRanges']());const _0x1c5f82=function(_0x45ce45,_0x21b14d){const _0x3c9b58=[];for(const _0xc9d10a of _0x21b14d){const _0xe33441=_0x45ce45['getIntersection'](_0xc9d10a);_0xe33441&&_0x3c9b58[_0x1e41('0x90')](_0xe33441);}return _0x3c9b58;}(_0x2271c3,_0x1d72eb),_0xe2af9e=function(_0x4d58b3,_0x4952cd){const _0x433bb7=[_0x4d58b3];for(const _0xe1011b of _0x4952cd){let _0x41ad22=0x0;for(;_0x41ad22<_0x433bb7[_0x1e41('0xda')];){const _0x2d9ff9=_0x433bb7[_0x41ad22]['getDifference'](_0xe1011b);_0x433bb7[_0x1e41('0xf5')](_0x41ad22,0x1,..._0x2d9ff9),_0x41ad22+=_0x2d9ff9[_0x1e41('0xda')];}}return _0x433bb7;}(_0x2271c3,_0x1d72eb);_0x1c5f82[_0x1e41('0xda')]&&this[_0x1e41('0x96')][_0x1e41('0xa7')](()=>{for(const _0x22710d of _0x1c5f82){const _0x8b0730=this[_0x1e41('0xde')][_0x1e41('0xa1')](_0x1e41('0x59'),_0x29f3c3,_0x1e41('0x46'));this[_0x1e41('0x11c')](()=>_0x8b0730([_0x22710d],_0x204eba,_0x5c4ba3));}});for(const _0x2920b0 of _0xe2af9e){let _0xb74724=null,_0x942379=_0x2920b0[_0x1e41('0x32')],_0x108dc1=_0x2920b0['end'];for(const {suggestion:_0x435fab,meta:_0x421a9e}of this['_findSuggestions'](_0x2920b0,_0x1e41('0x59'))){if(!_0x421a9e['isOwn'])continue;if(_0x435fab[_0x1e41('0xcf')]!=_0x29f3c3)continue;if(!Ot(_0x435fab,_0x5c4ba3))continue;const _0x476508=_0x435fab[_0x1e41('0xec')]();if(_0x476508[_0x1e41('0xf')](_0x2920b0,!0x0))return null;_0x942379=_0x942379['isBefore'](_0x476508[_0x1e41('0x32')])?_0x942379:_0x476508[_0x1e41('0x32')],_0x108dc1=_0x108dc1[_0x1e41('0x120')](_0x476508[_0x1e41('0xef')])?_0x108dc1:_0x476508['end'],_0xb74724?_0x476508['start'][_0x1e41('0x128')](_0xb74724[_0x1e41('0xec')]()[_0x1e41('0x32')])?(_0xb74724[_0x1e41('0x125')](),_0xb74724=_0x435fab):_0x435fab[_0x1e41('0x125')]():_0xb74724=_0x435fab;}const _0x41d38d=this[_0x1e41('0x96')]['createRange'](_0x942379,_0x108dc1);if(_0xb74724)this[_0x1e41('0x93')](_0xb74724,_0x41d38d);else{const _0x27e857=_0x3e31d(),_0x3e7f52=_0x307c21['id'];this[_0x1e41('0xc1')]({'id':_0x27e857,'type':_0x1e41('0x12f')+_0x29f3c3,'data':_0x204eba,'createdAt':new Date(),'authorId':_0x3e7f52,'attributes':_0x5c4ba3}),this[_0x1e41('0xae')](_0x1e41('0x12f')+_0x29f3c3,_0x27e857,_0x3e7f52,_0x41d38d);}}return null;}['markBlockFormat'](_0xd63f45,_0x714151,_0x4d62c4=[],_0xbae29a=null,_0xf2ea67={}){_0x714151[_0x1e41('0x121')]||(_0x714151[_0x1e41('0x121')]=_0x714151['commandName']),_0x714151[_0x1e41('0xcd')]=_0xd63f45['is'](_0x1e41('0xa3')),_0xbae29a=_0xbae29a||Nt(_0x714151);const _0x325021=_0x4d62c4[_0x1e41('0xe3')](_0x2748ed=>jt(_0x2748ed,this[_0x1e41('0x96')])),_0x42cdf6=_0xd63f45['is'](_0x1e41('0xa3'))?_0xd63f45:jt(_0xd63f45,this[_0x1e41('0x96')]);if(_0x1e41('0xb5')===this[_0x1e41('0x88')]){const _0x25d7a7=this[_0x1e41('0xde')]['getSuggestionCallback']('formatBlock',_0xbae29a,_0x1e41('0x46'));return this[_0x1e41('0x11c')](()=>_0x25d7a7([_0x42cdf6],_0x714151,_0xf2ea67)),null;}_0x325021['push'](_0x42cdf6);let _0x5243d1=!0x0;for(const _0x1bc80e of _0x325021)if(!this[_0x1e41('0xe8')](_0x1bc80e)){_0x5243d1=!0x1;break;}if(_0x5243d1&&_0x1e41('0x36')!==this['_trackFormatChanges']){const _0x2a7434=this[_0x1e41('0xde')][_0x1e41('0xa1')]('formatBlock',_0xbae29a,'accept');return this[_0x1e41('0x11c')](()=>_0x2a7434([_0x42cdf6],_0x714151,_0xf2ea67)),null;}let _0x2f311b=null,_0x59ea9b=_0x42cdf6[_0x1e41('0x32')],_0x46ff86=_0x42cdf6[_0x1e41('0xef')];for(const {suggestion:_0x48c4a7,meta:_0x1cec1f}of this[_0x1e41('0x86')](_0x42cdf6,_0x1e41('0x7b'))){if(!_0x1cec1f['isOwn'])continue;if(_0x1cec1f['isNextTo']||_0x1cec1f[_0x1e41('0x3c')]||_0x1cec1f[_0x1e41('0x91')])continue;if(_0x48c4a7['data'][_0x1e41('0x121')]!=_0x714151[_0x1e41('0x121')])continue;if(!Ot(_0x48c4a7,_0xf2ea67))continue;const _0x37d87e=_0x48c4a7[_0x1e41('0xec')]();if(_0x48c4a7['subType']==_0xbae29a){if(_0x37d87e['containsRange'](_0x42cdf6,!0x0))return null;_0x59ea9b=_0x59ea9b[_0x1e41('0x128')](_0x37d87e[_0x1e41('0x32')])?_0x59ea9b:_0x37d87e[_0x1e41('0x32')],_0x46ff86=_0x46ff86[_0x1e41('0x120')](_0x37d87e[_0x1e41('0xef')])?_0x46ff86:_0x37d87e[_0x1e41('0xef')],_0x2f311b?_0x37d87e[_0x1e41('0x32')]['isBefore'](_0x2f311b['getFirstRange']()[_0x1e41('0x32')])?(_0x2f311b[_0x1e41('0x125')](),_0x2f311b=_0x48c4a7):_0x48c4a7[_0x1e41('0x125')]():_0x2f311b=_0x48c4a7;}else{const _0x45de53=_0x42cdf6[_0x1e41('0x1f')](_0x37d87e);this[_0x1e41('0x1a')](_0x48c4a7,_0x45de53);}}const _0x3f4a06=this['editor'][_0x1e41('0x131')][_0x1e41('0x2')](_0x1e41('0x115'))['me'],_0x4e0650=_0x3e31d(),_0x474145=_0x3f4a06['id'];if(_0x2f311b)return this[_0x1e41('0x93')](_0x2f311b,this[_0x1e41('0x96')][_0x1e41('0x109')](_0x59ea9b,_0x46ff86)),_0x2f311b;{const _0x361a21=this['_setSuggestionData']({'id':_0x4e0650,'type':_0x1e41('0xd7')+_0xbae29a,'data':_0x714151,'createdAt':new Date(),'authorId':_0x474145,'attributes':_0xf2ea67});return this[_0x1e41('0xae')](_0x1e41('0xd7')+_0xbae29a,_0x4e0650,_0x474145,this['_model']['createRange'](_0x59ea9b,_0x46ff86)),_0x361a21;}}['markMultiRangeBlockFormat'](_0x3016df,_0x54be3a,_0x489b46=[],_0x5bba4f=null,_0x15cd39={}){_0x54be3a[_0x1e41('0x121')]||(_0x54be3a[_0x1e41('0x121')]=_0x54be3a[_0x1e41('0xd8')]);const _0x58693f=_0x3016df[0x0];_0x54be3a[_0x1e41('0xcd')]=_0x58693f['is']('range'),_0x5bba4f=_0x5bba4f||Nt(_0x54be3a);const _0x5f2772=_0x489b46[_0x1e41('0xe3')](_0x4820d9=>jt(_0x4820d9,this['_model'])),_0x3bb083=_0x58693f['is'](_0x1e41('0xa3'))?_0x3016df:_0x3016df['map'](_0x3a4952=>jt(_0x3a4952,this['_model']));if(_0x1e41('0xb5')===this['_trackFormatChanges']){const _0x212ef3=this[_0x1e41('0xde')]['getSuggestionCallback'](_0x1e41('0x7b'),_0x5bba4f,_0x1e41('0x46'));return this['forceDefaultExecution'](()=>_0x212ef3(_0x3bb083,_0x54be3a,_0x15cd39)),null;}_0x5f2772['push'](..._0x3bb083);let _0x464d7c=!0x0;for(const _0x238aa2 of _0x5f2772)if(!this[_0x1e41('0xe8')](_0x238aa2)){_0x464d7c=!0x1;break;}if(_0x464d7c&&_0x1e41('0x36')!==this['_trackFormatChanges']){const _0x2884f4=this[_0x1e41('0xde')][_0x1e41('0xa1')]('formatBlock',_0x5bba4f,_0x1e41('0x46'));return this['forceDefaultExecution'](()=>_0x2884f4(_0x3bb083,_0x54be3a,_0x15cd39)),null;}const _0x510bcb=this[_0x1e41('0x10f')][_0x1e41('0x131')][_0x1e41('0x2')](_0x1e41('0x115'))['me'];for(const _0x530a64 of this['getSuggestions']()){if(_0x530a64[_0x1e41('0x10a')]['id']!=_0x510bcb['id'])continue;if(_0x1e41('0x7b')!=_0x530a64[_0x1e41('0x8f')]||_0x530a64[_0x1e41('0x43')][_0x1e41('0x121')]!=_0x54be3a[_0x1e41('0x121')])continue;if(!Ot(_0x530a64,_0x15cd39))continue;const _0x44a79f=_0x530a64['subType']==_0x5bba4f;for(let _0x58be95=0x0;_0x58be95<_0x3bb083[_0x1e41('0xda')];_0x58be95++){const _0x5d2cc8=_0x3bb083[_0x58be95];for(const _0x3722c5 of _0x530a64[_0x1e41('0xe9')]()){const _0x49b5d6=_0x3722c5['getRange']();if(_0x5d2cc8['isEqual'](_0x49b5d6)){_0x44a79f?(_0x3bb083[_0x1e41('0xf5')](_0x58be95,0x1),_0x58be95--):_0x530a64['removeMarker'](_0x3722c5[_0x1e41('0x137')]);break;}}}}if(0x0==_0x3bb083[_0x1e41('0xda')])return null;const _0x253cd6=this[_0x1e41('0xde')][_0x1e41('0xa1')]('formatBlock',_0x5bba4f,_0x1e41('0x65'));for(const _0x10cd64 of this[_0x1e41('0x41')]())if(_0x10cd64[_0x1e41('0x10a')]['id']==_0x510bcb['id']&&_0x1e41('0x7b')==_0x10cd64['type']&&_0x10cd64[_0x1e41('0x43')][_0x1e41('0x121')]==_0x54be3a[_0x1e41('0x121')]&&_0x10cd64[_0x1e41('0xcf')]==_0x5bba4f&&Ot(_0x10cd64,_0x15cd39)&&(_0x253cd6(_0x10cd64['getRanges'](),_0x3bb083)||_0x253cd6(_0x3bb083,_0x10cd64['getRanges']()))){for(const _0x295aba of _0x3bb083)_0x10cd64[_0x1e41('0x135')](_0x295aba);return _0x10cd64;}const _0x44fe28=_0x3e31d(),_0x23f4cf=_0x510bcb['id'],_0x16e3b6='formatBlock:'+_0x5bba4f,_0x2e81da=this[_0x1e41('0xc1')]({'id':_0x44fe28,'type':_0x16e3b6,'data':_0x54be3a,'createdAt':new Date(),'authorId':_0x23f4cf,'attributes':_0x15cd39});for(const _0x4087d3 of _0x3bb083)this[_0x1e41('0xae')](_0x16e3b6,_0x44fe28,_0x23f4cf,_0x4087d3,_0x5d4c5d[_0x1e41('0x49')]());return _0x2e81da;}[_0x1e41('0xb')](_0x821e3f,_0x51f1d5=null,_0x5e26d8={}){if(_0x821e3f[_0x1e41('0xff')])return null;const _0x15ff63=this[_0x1e41('0x10f')][_0x1e41('0x131')][_0x1e41('0x2')]('Users')['me'],_0x325d9f=new _0xb54415(_0x821e3f[_0x1e41('0x32')],_0x821e3f[_0x1e41('0xef')]);for(const {suggestion:_0x2b618d,meta:_0x406f7f}of this[_0x1e41('0x86')](_0x325d9f,_0x1e41('0x105')))if(_0x406f7f[_0x1e41('0xb1')]&&!_0x406f7f[_0x1e41('0x13f')]){if(_0x2b618d[_0x1e41('0x35')]){const _0x2aed60=_0x2b618d[_0x1e41('0x4a')]()[_0x1e41('0x6e')](_0x399b02=>_0x1e41('0x126')!=_0x399b02[_0x1e41('0x142')]['rootName']);_0x2aed60['every'](_0xb04a03=>_0x325d9f[_0x1e41('0xf')](_0xb04a03,!0x0))&&_0x2b618d[_0x1e41('0xad')]();if(_0x2aed60[_0x1e41('0xfd')](_0x585307=>_0x585307[_0x1e41('0xf')](_0x325d9f,!0x0))){const _0x5caf43=this[_0x1e41('0xde')]['getSuggestionCallback'](_0x1e41('0xe7'),_0x51f1d5,_0x1e41('0x46'));return this[_0x1e41('0x11c')](()=>_0x5caf43([_0x325d9f],null,_0x5e26d8)),null;}}else{const _0x536623=_0x325d9f[_0x1e41('0x1f')](_0x2b618d[_0x1e41('0xec')]());null!==_0x536623&&_0x2b618d[_0x1e41('0x44')]([_0x536623],null,_0x5e26d8);}}if(_0x325d9f[_0x1e41('0x0')](),_0x325d9f[_0x1e41('0xff')]||_0x1e41('0x126')==_0x325d9f['root']['rootName'])return null;let _0x49d47c=null,_0x314bd1=_0x325d9f['start'],_0xe38241=_0x325d9f[_0x1e41('0xef')];const _0x2d5e86=this[_0x1e41('0x86')](_0x325d9f,_0x1e41('0xe7'));for(const {suggestion:_0x549dbe,meta:_0x403af4}of _0x2d5e86){const _0xe49f93=this[_0x1e41('0x96')]['createRange'](_0x314bd1,_0xe38241);if(_0x403af4[_0x1e41('0xb1')]&&(this[_0x1e41('0x19')]||!_0x403af4[_0x1e41('0x3c')]&&!_0x403af4['isInsideObject'])){if(_0x549dbe[_0x1e41('0x35')]){if(!Ot(_0x549dbe,_0x5e26d8))continue;let _0x1d42d7=!0x0;for(const _0x365dae of _0x549dbe[_0x1e41('0x4a')]()){if(_0x365dae[_0x1e41('0xf')](_0xe49f93,!0x0))return _0x549dbe;_0xe49f93['containsRange'](_0x365dae)||(_0x1d42d7=!0x1);}_0x1d42d7&&_0x549dbe['discard']();}else{const _0x4a0658=_0x549dbe[_0x1e41('0xec')]();if(_0x4a0658[_0x1e41('0xf')](_0xe49f93,!0x0))return _0x549dbe;if(!Ot(_0x549dbe,_0x5e26d8)){_0xe49f93[_0x1e41('0xf')](_0x4a0658)?_0x549dbe[_0x1e41('0x125')]():_0x4a0658['containsPosition'](_0x314bd1)?_0x314bd1=_0x4a0658[_0x1e41('0xef')]:_0x4a0658['containsPosition'](_0xe38241)&&(_0xe38241=_0x4a0658['start']);continue;}_0x314bd1=_0x314bd1[_0x1e41('0x128')](_0x4a0658['start'])?_0x314bd1:_0x4a0658[_0x1e41('0x32')],_0xe38241=_0xe38241['isAfter'](_0x4a0658[_0x1e41('0xef')])?_0xe38241:_0x4a0658[_0x1e41('0xef')],_0x5e26d8=Object[_0x1e41('0x20')]({},_0x549dbe[_0x1e41('0x3b')]),_0x49d47c?_0x4a0658[_0x1e41('0x32')][_0x1e41('0x128')](_0x49d47c[_0x1e41('0xec')]()[_0x1e41('0x32')])?(_0x49d47c[_0x1e41('0x125')](),_0x49d47c=_0x549dbe):_0x549dbe['removeMarkers']():_0x49d47c=_0x549dbe;}}}if(_0x49d47c)return this[_0x1e41('0x93')](_0x49d47c,this[_0x1e41('0x96')][_0x1e41('0x109')](_0x314bd1,_0xe38241)),_0x49d47c;{const _0x2b866f=_0x3e31d(),_0xedbbf9=this[_0x1e41('0x96')][_0x1e41('0x109')](_0x314bd1,_0xe38241),_0x35f6ab=_0x15ff63['id'],_0x18360a=_0x51f1d5?_0x1e41('0xcc')+_0x51f1d5:_0x1e41('0xe7'),_0x5d4afd=this[_0x1e41('0xc1')]({'id':_0x2b866f,'type':_0x18360a,'createdAt':new Date(),'authorId':_0x35f6ab,'attributes':_0x5e26d8});return this[_0x1e41('0xae')](_0x18360a,_0x2b866f,_0x35f6ab,_0xedbbf9),_0x5d4afd;}}[_0x1e41('0x139')](_0x561f95,_0x3b3df4='multi',_0x5214b2={}){const _0x1a3558=this['editor']['plugins'][_0x1e41('0x2')](_0x1e41('0x115'))['me'],_0x53dd1f=_0x561f95[_0x1e41('0xe3')](_0x5de536=>new _0xb54415(_0x5de536[_0x1e41('0x32')],_0x5de536[_0x1e41('0xef')])),_0x3710ac=new Set();for(const {suggestion:_0x1f5a59,meta:_0x5ab392}of this[_0x1e41('0x86')](_0x53dd1f,'insertion'))_0x5ab392[_0x1e41('0xb1')]&&!_0x5ab392[_0x1e41('0x13f')]&&_0x3710ac['add'](_0x1f5a59);for(const _0x5a717d of _0x3710ac)if(_0x5a717d['isMultiRange']){const _0x3cb351=_0x5a717d[_0x1e41('0x4a')]();(!_0x5a717d[_0x1e41('0x3b')]||!_0x5a717d['attributes']['skipNestingCheck'])&&(_0x3cb351['every'](_0x1d9e13=>_0x53dd1f['some'](_0x531196=>_0x531196[_0x1e41('0xf')](_0x1d9e13,!0x0)))&&_0x5a717d['discard']());if(_0x53dd1f[_0x1e41('0x1b')](_0x4ab778=>_0x3cb351[_0x1e41('0xfd')](_0x4c4bcd=>_0x4c4bcd[_0x1e41('0xf')](_0x4ab778,!0x0)))){const _0x2abfd9=this[_0x1e41('0xde')][_0x1e41('0xa1')]('deletion',_0x3b3df4,_0x1e41('0x46'));return this[_0x1e41('0x11c')](()=>_0x2abfd9(_0x561f95,null,_0x5214b2)),null;}}else{const _0x276d0d=_0x5a717d[_0x1e41('0xec')]();_0x53dd1f['some'](_0x6ba4af=>_0x6ba4af[_0x1e41('0xf')](_0x276d0d,!0x0))&&_0x5a717d[_0x1e41('0xad')]();if(_0x53dd1f[_0x1e41('0x1b')](_0x5c73c5=>_0x276d0d[_0x1e41('0xf')](_0x5c73c5,!0x0))){const _0x43e2ea=this[_0x1e41('0xde')]['getSuggestionCallback'](_0x1e41('0xe7'),_0x3b3df4,_0x1e41('0x46'));return this['forceDefaultExecution'](()=>_0x43e2ea(_0x53dd1f,null,_0x5214b2)),null;}}const _0x52027f=this[_0x1e41('0xde')][_0x1e41('0xa1')](_0x1e41('0xe7'),_0x3b3df4,_0x1e41('0x65'));let _0x24ff53=null;for(const _0x19dbe6 of this[_0x1e41('0x41')]())if(_0x19dbe6['author']['id']==_0x1a3558['id']&&_0x19dbe6['isInContent']&&_0x1e41('0xe7')==_0x19dbe6['type']&&_0x19dbe6['subType']==_0x3b3df4&&Ot(_0x19dbe6,_0x5214b2)&&(_0x52027f(_0x19dbe6['getRanges'](),_0x53dd1f)||_0x52027f(_0x53dd1f,_0x19dbe6[_0x1e41('0x4a')]()))){if(_0x24ff53){if(_0x19dbe6[_0x1e41('0xb8')]&&_0x19dbe6[_0x1e41('0xb8')][_0x1e41('0xda')])continue;for(const _0x4b83c6 of _0x19dbe6['getRanges']())_0x24ff53['isIntersectingWithRange'](_0x4b83c6)||_0x24ff53[_0x1e41('0x135')](_0x4b83c6);_0x19dbe6[_0x1e41('0x125')]();}else{_0x24ff53=_0x19dbe6;for(const _0x54a90f of _0x53dd1f)_0x19dbe6[_0x1e41('0x9d')](_0x54a90f)||_0x19dbe6[_0x1e41('0x135')](_0x54a90f);}}if(_0x24ff53)return _0x24ff53;_0x3710ac[_0x1e41('0xb4')]();for(const {suggestion:_0x5ac7a7,meta:_0x3ede1d}of this['_findSuggestions'](_0x53dd1f,_0x1e41('0xe7')))_0x3ede1d[_0x1e41('0xb1')]&&(this['_mergeNestedSuggestions']||!_0x3ede1d[_0x1e41('0x3c')]&&!_0x3ede1d[_0x1e41('0x91')])&&Ot(_0x5ac7a7,_0x5214b2)&&_0x3710ac['add'](_0x5ac7a7);for(const _0x561783 of _0x3710ac){const _0x718e71=_0x561783[_0x1e41('0x4a')]();if(!_0x5214b2||!_0x5214b2[_0x1e41('0xed')]){if(_0x53dd1f['every'](_0x4d1c0d=>_0x718e71[_0x1e41('0xfd')](_0x1eda36=>_0x1eda36[_0x1e41('0xf')](_0x4d1c0d,!0x0))))return _0x561783;}(!_0x561783['attributes']||!_0x561783[_0x1e41('0x3b')]['skipNestingCheck'])&&(_0x718e71['every'](_0x167d6b=>_0x53dd1f[_0x1e41('0xfd')](_0x3bade9=>_0x3bade9[_0x1e41('0xf')](_0x167d6b,!0x0)))&&_0x561783[_0x1e41('0xad')]());}const _0x214077=_0x3e31d(),_0x1c8ba5=_0x1a3558['id'],_0xc5a6de=_0x1e41('0xcc')+_0x3b3df4,_0x1f17ac=this[_0x1e41('0xc1')]({'id':_0x214077,'type':_0xc5a6de,'createdAt':new Date(),'authorId':_0x1c8ba5,'attributes':_0x5214b2});for(const _0x4c233d of _0x53dd1f)_0x4c233d['detach'](),_0x4c233d['isCollapsed']||_0x1e41('0x126')==_0x4c233d[_0x1e41('0x142')][_0x1e41('0x11b')]||this[_0x1e41('0xae')](_0xc5a6de,_0x214077,_0x1c8ba5,_0x4c233d,_0x5d4c5d[_0x1e41('0x49')]());return _0x1f17ac;}[_0x1e41('0x93')](_0x564ce6,_0x5cd55c){const _0xdc7aa2=_0x564ce6['getFirstMarker']();this['_model'][_0x1e41('0xa7')](_0x33c7ae=>{_0x33c7ae['updateMarker'](_0xdc7aa2,{'range':_0x5cd55c});});}[_0x1e41('0x34')](_0x1d9c7d){const _0x32c347=_0x1d9c7d['id'],_0x4b2823=this[_0x1e41('0x10f')][_0x1e41('0x5')][_0x1e41('0x2')]('collaboration.channelId');this[_0x1e41('0x3')][_0x1e41('0x143')](_0x32c347)||this[_0x1e41('0x3')][_0x1e41('0x8e')]({'channelId':_0x4b2823,'threadId':_0x32c347,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x298fdb=this[_0x1e41('0x3')]['getCommentThread'](_0x32c347);_0x298fdb[_0x1e41('0x5b')](_0x1e41('0x77')),_0x298fdb[_0x1e41('0x77')]=!0x1,_0x1d9c7d[_0x1e41('0xb8')]=_0x298fdb;}['_checkSuggestionCorrectness'](_0x52e25d,_0x45cfe9,_0x2715cc,_0x2b7250){if(_0x52e25d[_0x1e41('0x8f')]!=_0x45cfe9||_0x52e25d[_0x1e41('0xcf')]!=_0x2715cc||_0x52e25d[_0x1e41('0x7c')]['id']!=_0x2b7250)throw this[_0x1e41('0x10f')]['enableReadOnlyMode'](_0x1e41('0x3d')),new _0x2518e4(_0x1e41('0x3d'),this);}[_0x1e41('0x1a')](_0x31ad4c,_0x177bd5){const _0x235acb=_0x31ad4c[_0x1e41('0xec')]();if(_0x177bd5[_0x1e41('0xf2')](_0x235acb))_0x31ad4c[_0x1e41('0x125')]();else{if(_0x235acb[_0x1e41('0xf')](_0x177bd5)){const _0x2fabdb=this['_model'][_0x1e41('0x53')](_0x177bd5[_0x1e41('0x32')][_0x1e41('0x4c')],_0x1e41('0xef'));this[_0x1e41('0x93')](_0x31ad4c,this[_0x1e41('0x96')][_0x1e41('0x109')](_0x235acb[_0x1e41('0x32')],_0x2fabdb));const _0x35b26a=_0x3e31d(),_0x35e5e9=_0x31ad4c[_0x1e41('0x7c')]['id'],_0x345040=_0x31ad4c['type']+':'+_0x31ad4c[_0x1e41('0xcf')];this[_0x1e41('0xc1')]({'id':_0x35b26a,'type':_0x345040,'createdAt':new Date(),'authorId':_0x35e5e9,'data':_0x31ad4c[_0x1e41('0x43')],'attributes':_0x31ad4c[_0x1e41('0x3b')]});const _0x63f177=this[_0x1e41('0x96')]['createPositionAt'](_0x177bd5[_0x1e41('0xef')][_0x1e41('0x8b')],_0x1e41('0x57')),_0x365026=this['_model'][_0x1e41('0x109')](_0x63f177,_0x235acb[_0x1e41('0xef')]);this[_0x1e41('0xae')](_0x345040,_0x35b26a,_0x35e5e9,_0x365026);}else{if(_0x235acb[_0x1e41('0x5d')](_0x177bd5['start'])){const _0x3fcd1b=this[_0x1e41('0x96')]['createPositionAt'](_0x177bd5['start']['nodeBefore'],_0x1e41('0xef'));this['_setSuggestionRange'](_0x31ad4c,this[_0x1e41('0x96')]['createRange'](_0x235acb[_0x1e41('0x32')],_0x3fcd1b));}else{const _0x3f06ad=this[_0x1e41('0x96')]['createPositionAt'](_0x177bd5[_0x1e41('0xef')]['parent'],'after');this['_setSuggestionRange'](_0x31ad4c,this[_0x1e41('0x96')][_0x1e41('0x109')](_0x3f06ad,_0x235acb[_0x1e41('0xef')]));}}}}[_0x1e41('0xe8')](_0x1a1490){for(const {suggestion:_0x321447,meta:_0x2e8be0}of this['_findSuggestions'](_0x1a1490,_0x1e41('0x105'))){if(!_0x2e8be0[_0x1e41('0xb1')])continue;const _0x1ba2b9=_0x321447[_0x1e41('0x4a')]();for(const _0x1e637a of _0x1ba2b9)if(!_0x1a1490[_0x1e41('0xe2')](_0x1e637a)[_0x1e41('0xda')])return!0x0;}return!0x1;}[_0x1e41('0x79')](_0x31ca88){const _0x13afbe=this[_0x1e41('0x10f')][_0x1e41('0x131')][_0x1e41('0x2')](_0x1e41('0x115'))[_0x1e41('0xc2')](_0x31ca88);if(!_0x13afbe)throw new _0x2518e4('track-changes-user-not-found',this);return _0x13afbe;}[_0x1e41('0x28')](_0x129d41){const _0x4a4065=this[_0x1e41('0x10f')][_0x1e41('0x131')]['get'](_0x1e41('0x115')),_0x1ebe25=_0x7f86c4(_0x1e41('0xb7')+_0x129d41),_0x33bc61=_0x4a4065[_0x1e41('0xc2')](_0x1ebe25);return _0x33bc61||_0x4a4065[_0x1e41('0x12e')]({'id':_0x1ebe25,'name':_0x129d41});}[_0x1e41('0x5e')](_0x521656,_0xbfaa73,_0x30d664,_0x4ee50d,_0x7dfb68){const _0x227ea7=this[_0x1e41('0x79')](_0x4ee50d),_0x49544b=this[_0x1e41('0xde')][_0x1e41('0x1d')](_0x521656,_0xbfaa73,_0x30d664,_0x227ea7,_0x7dfb68,_0x8ef603=>this[_0x1e41('0xf8')](_0x30d664,{'attributes':_0x8ef603}));return this['listenTo'](_0x49544b,'accept',()=>{this['_updateSuggestionData'](_0x30d664,{'state':_0x1e41('0xdf')});},{'priority':_0x1e41('0x9b')}),this[_0x1e41('0x6f')](_0x49544b,_0x1e41('0xad'),()=>{this['_updateSuggestionData'](_0x30d664,{'state':_0x1e41('0xc9')});},{'priority':_0x1e41('0x9b')}),this[_0x1e41('0x73')][_0x1e41('0xb6')](_0x30d664,_0x49544b),this['_suggestionState'][_0x1e41('0xb6')](_0x49544b,_0x1e41('0xc')),_0x49544b;}[_0x1e41('0xf4')](_0x5a79b6){const _0x2262a9=_0x5a79b6[_0x1e41('0x31')](':');return{'group':_0x2262a9[0x0],'type':_0x2262a9[0x1],'subType':_0x2262a9[_0x1e41('0xda')]>=0x5?_0x2262a9[0x2]:null,'id':_0x2262a9[_0x1e41('0xda')]<0x5?_0x2262a9[0x2]:_0x2262a9[0x3],'authorId':_0x2262a9[_0x1e41('0xda')]<0x5?_0x2262a9[0x3]:_0x2262a9[0x4],'markerCount':0x6==_0x2262a9[_0x1e41('0xda')]?_0x2262a9[0x5]:null};}['_breakSuggestionMarker'](_0x56ffb5,_0x508f63,_0x33422){const _0x1a0af1=_0x56ffb5[_0x1e41('0xec')](),_0x215115=_0x1a0af1['start'],_0x9a43e5=_0x1a0af1[_0x1e41('0xef')];this[_0x1e41('0x93')](_0x56ffb5,this[_0x1e41('0x96')]['createRange'](_0x215115,_0x508f63));const _0x398a23=_0x3e31d(),_0x2f35e4=_0x56ffb5[_0x1e41('0x7c')]['id'],_0x5f0c42=_0x56ffb5[_0x1e41('0x8f')]+(_0x56ffb5[_0x1e41('0xcf')]?':'+_0x56ffb5[_0x1e41('0xcf')]:'');this['_setSuggestionData']({'id':_0x398a23,'type':_0x5f0c42,'createdAt':new Date(),'authorId':_0x2f35e4,'originalSuggestionId':_0x56ffb5['id'],'attributes':_0x56ffb5['attributes'],'data':_0x56ffb5[_0x1e41('0x43')]}),_0x1e41('0x7b')==_0x56ffb5['type']&&(_0x33422=this['_model'][_0x1e41('0x12')](_0x33422[_0x1e41('0x8b')])),this['_addSuggestionMarker'](_0x5f0c42,_0x398a23,_0x2f35e4,this[_0x1e41('0x96')]['createRange'](_0x33422,_0x9a43e5));}[_0x1e41('0x86')](_0x2f2527,_0x1c3a2b=null){const _0xe6e493=[],_0x22e618=this['editor'][_0x1e41('0x131')][_0x1e41('0x2')]('Users')['me'];Array['isArray'](_0x2f2527)||(_0x2f2527=[_0x2f2527]);for(const _0xf74363 of this['getSuggestions']()){if(!_0xf74363[_0x1e41('0x26')])continue;if(_0x1c3a2b&&_0xf74363[_0x1e41('0x8f')]!=_0x1c3a2b)continue;let _0x4fe8c2=!0x1;for(const _0x25213f of _0xf74363['getRanges']()){for(const _0x534c45 of _0x2f2527){const _0x34ea21=_0x534c45[_0x1e41('0x32')]['isEqual'](_0x25213f[_0x1e41('0xef')])||_0x534c45['end']['isEqual'](_0x25213f[_0x1e41('0x32')]);if(_0x34ea21||_0x534c45[_0x1e41('0x1f')](_0x25213f)){const _0x40097e=_0x534c45[_0x1e41('0xf')](_0x25213f)&&_t(this[_0x1e41('0x96')][_0x1e41('0xe6')],_0x25213f['start'],_0x534c45),_0xd24159=_0x25213f[_0x1e41('0xf')](_0x534c45)&&_t(this[_0x1e41('0x96')][_0x1e41('0xe6')],_0x534c45[_0x1e41('0x32')],_0x25213f);_0xe6e493[_0x1e41('0x90')]({'suggestion':_0xf74363,'meta':{'isOwn':_0x22e618==_0xf74363[_0x1e41('0x10a')],'isNextTo':_0x34ea21,'isInsideObject':_0x40097e,'containsRangeInObject':_0xd24159}}),_0x4fe8c2=!0x0;break;}}if(_0x4fe8c2)break;}}return _0xe6e493;}[_0x1e41('0xae')](_0x4b5f42,_0x45ed30,_0x23661d,_0x55107e,_0x5db227){this[_0x1e41('0x96')][_0x1e41('0xa7')](_0x4a8815=>{let _0x2243df=_0x1e41('0x1')+_0x4b5f42+':'+_0x45ed30+':'+_0x23661d;_0x5db227&&(_0x2243df=_0x2243df+':'+_0x5db227),_0x4a8815[_0x1e41('0x106')](_0x2243df,{'range':_0x55107e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2601da){const _0x4ebf8a=_0x2601da[_0x1e41('0x10')],_0x300275=_0x2601da[_0x1e41('0x82')];_0x2601da[_0x1e41('0x10')]=null,null!=_0x4ebf8a&&(_0x4ebf8a[_0x1e41('0x82')]=null),_0x2601da[_0x1e41('0x82')]=null,null!=_0x300275&&(_0x300275[_0x1e41('0x10')]=null),_0x1e41('0x4e')==this[_0x1e41('0xf1')][_0x1e41('0x2')](_0x2601da)&&(this[_0x1e41('0xf1')][_0x1e41('0xb6')](_0x2601da,'removed'),this['fire']('suggestionUnloaded',_0x2601da,_0x4ebf8a,_0x300275));}[_0x1e41('0xc1')](_0x47b736){const _0x270d75=_0x47b736['id'],_0x1a2d47=this[_0x1e41('0x25')](_0x47b736);if(this[_0x1e41('0x83')]&&this[_0x1e41('0x83')][_0x1e41('0x11f')]){const _0x393aa9=this[_0x1e41('0x10f')]['plugins'][_0x1e41('0x2')](_0x1e41('0x9a')),_0xe9bb5e=_0x1a2d47[_0x1e41('0x89')],_0x527c5d=_0x1a2d47[_0x1e41('0xcf')]?_0x1a2d47['type']+':'+_0x1a2d47[_0x1e41('0xcf')]:_0x1a2d47[_0x1e41('0x8f')],_0x462a05=this[_0x1e41('0x10f')][_0x1e41('0xbb')],_0x2ea71d=_0x393aa9[_0x1e41('0xba')](_0x57a117(_0x462a05,'PENDING_ACTION_SUGGESTION')),_0x152be4={'id':_0x270d75,'type':_0x527c5d,'hasComments':_0xe9bb5e,'data':_0x47b736[_0x1e41('0x43')]||null,'originalSuggestionId':_0x47b736[_0x1e41('0x78')]||null,'attributes':_0x1a2d47['attributes']};this['_adapter'][_0x1e41('0x11f')](_0x152be4)['then'](_0x504e6c=>{_0x1a2d47[_0x1e41('0x9')]=!0x0,_0x393aa9['remove'](_0x2ea71d),_0x504e6c&&_0x504e6c['createdAt']&&(this['_suggestions'][_0x1e41('0x2')](_0x270d75)[_0x1e41('0xaf')]=_0x504e6c[_0x1e41('0xaf')]);})[_0x1e41('0x6a')](_0x3d1325=>{throw _0x2429d6(_0x1e41('0x87')),this[_0x1e41('0x10f')][_0x1e41('0x4b')][_0x1e41('0x42')]({'isUndoable':!0x1},()=>{_0x1a2d47[_0x1e41('0xad')]();}),_0x1a2d47[_0x1e41('0x7')](),this['_suggestions'][_0x1e41('0x85')](_0x1a2d47['id']),this[_0x1e41('0xf1')][_0x1e41('0x85')](_0x1a2d47),_0x3d1325;});}return _0x1a2d47;}[_0x1e41('0xf8')](_0x4b02b7,_0x2e0632){const _0x25947a=this[_0x1e41('0x10f')]['plugins'][_0x1e41('0x2')]('PendingActions'),_0x313e39=this['getSuggestion'](_0x4b02b7);if(this[_0x1e41('0x83')]&&this[_0x1e41('0x83')][_0x1e41('0xab')]){if(_0x313e39['_saved']){const _0x3a6cba=_0x25947a[_0x1e41('0xba')](_0x57a117(this[_0x1e41('0x10f')][_0x1e41('0xbb')],_0x1e41('0x110')));this[_0x1e41('0x83')]['updateSuggestion'](_0x4b02b7,_0x2e0632)[_0x1e41('0x23')](()=>{_0x25947a[_0x1e41('0xb0')](_0x3a6cba);});}else _0x313e39['on'](_0x1e41('0x70'),()=>{this[_0x1e41('0xf8')](_0x4b02b7,_0x2e0632);});}}[_0x1e41('0x5c')](_0x2fa9fe){if(!this['_adapter']||!this[_0x1e41('0x83')][_0x1e41('0x10b')])throw new _0x2518e4(_0x1e41('0x38'),this);return this['_adapter'][_0x1e41('0x10b')](_0x2fa9fe);}[_0x1e41('0x6c')](_0x25c0c1){const {id:_0x1d4d28,type:_0x2ee972,subType:_0x30a7d5,authorId:_0xf68f05}=this[_0x1e41('0xf4')](_0x25c0c1),_0x939a15=this[_0x1e41('0x73')][_0x1e41('0x2')](_0x1d4d28)||this[_0x1e41('0x5e')](_0x2ee972,_0x30a7d5,_0x1d4d28,_0xf68f05,{});switch(this[_0x1e41('0x27')](_0x939a15,_0x2ee972,_0x30a7d5,_0xf68f05),this[_0x1e41('0xf1')][_0x1e41('0x2')](_0x939a15)){case _0x1e41('0xc'):this[_0x1e41('0x5c')](_0x1d4d28)[_0x1e41('0x23')](_0x399503=>{let _0xb84434=Promise['resolve']();_0x399503['hasComments']&&(_0xb84434=this['_commentsRepository']['fetchCommentThread']({'channelId':this[_0x1e41('0x10f')][_0x1e41('0x5')]['get'](_0x1e41('0x107')),'threadId':_0x1d4d28})),_0xb84434[_0x1e41('0x23')](()=>{this[_0x1e41('0x25')](_0x399503)[_0x1e41('0x9')]=!0x0;});}),this['_suggestionState'][_0x1e41('0xb6')](_0x939a15,_0x1e41('0x17'));break;case _0x1e41('0x119'):this[_0x1e41('0xf8')](_0x1d4d28,{'state':_0x1e41('0x72')});case _0x1e41('0x6b'):this[_0x1e41('0xf1')][_0x1e41('0xb6')](_0x939a15,'ready'),this[_0x1e41('0x7d')](_0x1e41('0x68'),_0x939a15);break;case _0x1e41('0x4e'):this[_0x1e41('0x7d')]('suggestionChanged',_0x939a15);}return _0x939a15[_0x1e41('0x13c')](_0x25c0c1),_0x939a15;}[_0x1e41('0x2e')](_0x4e526b){const _0x320cac=Array['from'](_0x4e526b)[_0x1e41('0x6e')](_0x2c82c1=>!_0x2c82c1['isMultiRange']),_0x76e80c=this[_0x1e41('0x41')]({'skipNotAttached':!0x0})[_0x1e41('0x6e')](_0x1403ca=>!_0x1403ca[_0x1e41('0x35')]),_0x186d26=_0x76e80c[_0x1e41('0x6e')](_0x4979f5=>!_0x4e526b['has'](_0x4979f5)),_0x33f56a=new Map(_0x76e80c[_0x1e41('0xe3')](_0x24d4e1=>[_0x24d4e1,this[_0x1e41('0xde')]['getSuggestionCallback'](_0x24d4e1[_0x1e41('0x8f')],_0x24d4e1[_0x1e41('0xcf')],'chain')])),_0x31dc27=new Map(_0x76e80c['map'](_0x22e099=>[_0x22e099,_0x22e099['getFirstRange']()])),_0x1e18de=new Set(),_0x25220f=new Set();for(let _0x5a0132=0x0;_0x5a0132<_0x320cac[_0x1e41('0xda')];_0x5a0132++)_0x2d1d76(_0x320cac[_0x5a0132],_0x320cac,_0x5a0132+0x1);for(let _0x349bb3=0x0;_0x349bb3<_0x320cac[_0x1e41('0xda')];_0x349bb3++)_0x2d1d76(_0x320cac[_0x349bb3],_0x186d26,0x0);for(let _0x39c918=0x0;_0x39c918<_0x320cac[_0x1e41('0xda')];_0x39c918++){const _0x524eae=_0x320cac[_0x39c918];!_0x25220f[_0x1e41('0x7f')](_0x524eae)&&_0x524eae[_0x1e41('0x10')]&&(_0x524eae[_0x1e41('0x10')][_0x1e41('0x82')]===_0x524eae&&(_0x524eae[_0x1e41('0x10')][_0x1e41('0x82')]=null),_0x524eae[_0x1e41('0x10')]=null),!_0x1e18de['has'](_0x524eae)&&_0x524eae['next']&&(_0x524eae[_0x1e41('0x82')][_0x1e41('0x10')]===_0x524eae&&(_0x524eae[_0x1e41('0x82')][_0x1e41('0x10')]=null),_0x524eae[_0x1e41('0x82')]=null);}function _0x2d1d76(_0x2ba3e7,_0x599c92,_0x1b41b7){for(let _0x37d9d6=_0x1b41b7;_0x37d9d6<_0x599c92['length'];_0x37d9d6++){const _0x52753f=_0x43cde8(_0x2ba3e7,_0x599c92[_0x37d9d6]);_0x52753f&&(_0x52753f[0x0][_0x1e41('0x82')]=_0x52753f[0x1],_0x52753f[0x1][_0x1e41('0x10')]=_0x52753f[0x0],_0x1e18de[_0x1e41('0xba')](_0x52753f[0x0]),_0x25220f[_0x1e41('0xba')](_0x52753f[0x1]));}}function _0x43cde8(_0x144c8f,_0x3b090b){if(_0x144c8f[_0x1e41('0x10a')]['id']!==_0x3b090b['author']['id'])return null;const _0x7e456a=_0x33f56a[_0x1e41('0x2')](_0x144c8f)(_0x144c8f,_0x3b090b,_0x31dc27[_0x1e41('0x2')](_0x144c8f),_0x31dc27['get'](_0x3b090b));if(!_0x7e456a)return null;return _0x33f56a[_0x1e41('0x2')](_0x3b090b)(_0x144c8f,_0x3b090b,_0x31dc27[_0x1e41('0x2')](_0x144c8f),_0x31dc27['get'](_0x3b090b))?_0x7e456a[0x1][_0x1e41('0xb8')]&&_0x7e456a[0x1][_0x1e41('0xb8')][_0x1e41('0xda')]?null:_0x7e456a:null;}}[_0x1e41('0x6d')](_0x155a88){const _0x2694ec=Array[_0x1e41('0x116')](_0x155a88),_0x2a8e65=this[_0x1e41('0x41')]({'skipNotAttached':!0x0}),_0x19ee19=_0x2a8e65[_0x1e41('0x6e')](_0x587805=>!_0x155a88[_0x1e41('0x7f')](_0x587805)),_0xd673e6=new Map(_0x2694ec[_0x1e41('0xe3')](_0x3a9a6c=>[_0x3a9a6c,this[_0x1e41('0xde')][_0x1e41('0xa1')](_0x3a9a6c[_0x1e41('0x8f')],_0x3a9a6c[_0x1e41('0xcf')],'join')])),_0x148ca5=new Map(_0x2a8e65[_0x1e41('0xe3')](_0x1a69d6=>[_0x1a69d6,_0x1a69d6[_0x1e41('0x4a')]()]));for(let _0x38548d=0x0;_0x38548d<_0x2694ec[_0x1e41('0xda')];_0x38548d++){if(_0x56776e(this,_0x2694ec[_0x38548d],_0x2694ec,_0x38548d+0x1))return!0x0;}for(let _0x71c70c=0x0;_0x71c70c<_0x2694ec[_0x1e41('0xda')];_0x71c70c++){if(_0x56776e(this,_0x2694ec[_0x71c70c],_0x19ee19,0x0))return!0x0;}return!0x1;function _0x56776e(_0x2baa42,_0x9ce6e3,_0x5c241d,_0x3e0ce9){for(let _0x26f7f3=_0x3e0ce9;_0x26f7f3<_0x5c241d[_0x1e41('0xda')];_0x26f7f3++){const _0x332212=_0x5c241d[_0x26f7f3];if(_0x332212[_0x1e41('0x8f')]!==_0x9ce6e3[_0x1e41('0x8f')]||_0x332212['author']['id']!==_0x9ce6e3[_0x1e41('0x10a')]['id']||_0x332212[_0x1e41('0xcf')]!==_0x9ce6e3[_0x1e41('0xcf')])continue;if(!Ut(_0x9ce6e3,_0x332212))continue;const _0x1b00e3=_0xd673e6[_0x1e41('0x2')](_0x9ce6e3),_0x4dfce7=_0x148ca5[_0x1e41('0x2')](_0x9ce6e3),_0x52a8b5=_0x148ca5[_0x1e41('0x2')](_0x332212),_0x3cc8a7=_0x9ce6e3[_0x1e41('0xb8')]&&_0x9ce6e3[_0x1e41('0xb8')]['length'],_0x29ce9d=_0x332212[_0x1e41('0xb8')]&&_0x332212[_0x1e41('0xb8')][_0x1e41('0xda')];if(!_0x3cc8a7&&_0x1b00e3(_0x52a8b5,_0x4dfce7))return _0x2baa42[_0x1e41('0x122')](_0x332212,_0x9ce6e3),_0x148ca5[_0x1e41('0x85')](_0x9ce6e3),!0x0;if(!_0x29ce9d&&_0x1b00e3(_0x4dfce7,_0x52a8b5))return _0x2baa42[_0x1e41('0x122')](_0x9ce6e3,_0x332212),_0x148ca5[_0x1e41('0x85')](_0x332212),!0x0;}return!0x1;}}[_0x1e41('0x122')](_0x35adb9,_0x3d2808){if(_0x35adb9[_0x1e41('0x35')])for(const _0x1b7fff of _0x3d2808[_0x1e41('0x4a')]())_0x35adb9[_0x1e41('0x135')](_0x1b7fff);else{const _0xf1f0c3=_0x3d2808['getFirstRange']()[_0x1e41('0xef')];this[_0x1e41('0x93')](_0x35adb9,this[_0x1e41('0x96')][_0x1e41('0x109')](_0x35adb9[_0x1e41('0xec')]()[_0x1e41('0x32')],_0xf1f0c3));}_0x3d2808[_0x1e41('0x125')]();}}class Bt{constructor(_0x481025){this['_editor']=_0x481025,this['_model']=_0x481025[_0x1e41('0x4b')],this['_customCallbacks']=new Map(),this[_0x1e41('0xa9')]=new Map(),this[_0x1e41('0xea')]();}[_0x1e41('0x1d')](_0x32e235,_0x233d46,_0x3c7288,_0xebf92b,_0x29285b,_0x89bd23){return new _0x5d4c5d(this[_0x1e41('0x96')],{'type':_0x32e235,'subType':_0x233d46,'id':_0x3c7288,'author':_0xebf92b,'creator':_0xebf92b,'attributes':_0x29285b,'onAttributesChange':_0x89bd23,'onAccept':(..._0x29e540)=>this[_0x1e41('0xa1')](_0x32e235,_0x233d46,_0x1e41('0x46'))(..._0x29e540),'onDiscard':(..._0x39c16e)=>this[_0x1e41('0xa1')](_0x32e235,_0x233d46,_0x1e41('0xad'))(..._0x39c16e)});}[_0x1e41('0xd0')](_0x2472cc,_0x460301,_0x5d75e5,_0x2f5ddc){const _0x4cf188=_0x2472cc+':'+_0x460301+':'+_0x5d75e5;this['_customCallbacks']['set'](_0x4cf188,_0x2f5ddc);}[_0x1e41('0xa1')](_0x28e34a,_0x173949,_0x5bc08c){const _0x10bde3=_0x28e34a+':'+_0x173949+':'+_0x5bc08c;return this[_0x1e41('0x71')][_0x1e41('0x2')](_0x10bde3)||this['_defaultCallbacks'][_0x1e41('0x2')](_0x28e34a+':'+_0x5bc08c);}[_0x1e41('0xea')](){const _0x1de62a=()=>!0x1,_0x2d9f9b=_0x11ac49=>{_0x11ac49['sort']((_0x465d53,_0x4cb8e2)=>_0x465d53['start'][_0x1e41('0x128')](_0x4cb8e2[_0x1e41('0x32')])?0x1:-0x1),this['_model'][_0x1e41('0xa7')](_0x2fce70=>{for(const _0xe555c8 of _0x11ac49){let _0x5a2974;_0x5a2974=_0xe555c8['end']['isAtEnd']&&_0xe555c8[_0x1e41('0xef')][_0x1e41('0x8b')]==_0xe555c8[_0x1e41('0x32')][_0x1e41('0xdb')]?_0x2fce70['createSelection'](_0xe555c8['start'][_0x1e41('0xdb')],'on'):_0x2fce70['createSelection'](_0xe555c8),this[_0x1e41('0x96')][_0x1e41('0x84')](_0x5a2974,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x46ad07=(_0x306109,_0x4cde52)=>{this[_0x1e41('0x96')]['change'](_0x4fe92e=>{const {commandName:_0x49dcec,commandParams:_0x4b20e2=[]}=_0x4cde52,_0xa8b609=_0x306109[_0x1e41('0xe3')](_0x14fe35=>(Mt(_0x14fe35)&&(_0x14fe35=this[_0x1e41('0x96')][_0x1e41('0x109')](_0x14fe35[_0x1e41('0xef')])),_0x14fe35))['filter'](_0x142976=>_0x1e41('0x126')!==_0x142976[_0x1e41('0x142')][_0x1e41('0x11b')]);if(_0xa8b609[_0x1e41('0xda')]<0x1)return;const _0x3c72c8=Array[_0x1e41('0x116')](this[_0x1e41('0x96')][_0x1e41('0x62')][_0x1e41('0x56')][_0x1e41('0x4a')]())[_0x1e41('0xe3')](_0x2a2a12=>_0xb54415[_0x1e41('0x134')](_0x2a2a12));_0x4fe92e[_0x1e41('0xd2')](_0xa8b609);for(const _0x5847e of this[_0x1e41('0xeb')][_0x1e41('0x92')][_0x1e41('0x92')]())_0x5847e[_0x1e41('0x15')]();_0x4b20e2[_0x1e41('0x90')]({'forceDefaultExecution':!0x0}),this[_0x1e41('0xeb')][_0x1e41('0x30')](_0x49dcec,..._0x4b20e2);const _0x5b04b4=_0x3c72c8[_0x1e41('0x6e')](_0x1effb5=>_0x1e41('0x126')!=_0x1effb5[_0x1e41('0x142')][_0x1e41('0x11b')]);_0x5b04b4['length']>0x0&&_0x4fe92e[_0x1e41('0xd2')](_0x5b04b4);for(const _0x53fefa of _0x3c72c8)_0x53fefa['detach']();});},_0x518822=(_0x44d324,_0x1fe306)=>0x1==_0x44d324[_0x1e41('0xda')]&&0x1==_0x1fe306[_0x1e41('0xda')]&&_0x44d324[0x0][_0x1e41('0xef')]['isEqual'](_0x1fe306[0x0][_0x1e41('0x32')]),_0x421623=(_0x48d953,_0x3ec0f0,_0xe7be7d,_0xa007d4)=>xt(_0x48d953,_0x3ec0f0,_0xe7be7d,_0xa007d4,this['_model'])?[_0x48d953,_0x3ec0f0]:xt(_0x3ec0f0,_0x48d953,_0xa007d4,_0xe7be7d,this[_0x1e41('0x96')])?[_0x3ec0f0,_0x48d953]:null;this[_0x1e41('0xa9')][_0x1e41('0xb6')](_0x1e41('0xdc'),_0x1de62a),this[_0x1e41('0xa9')][_0x1e41('0xb6')](_0x1e41('0x37'),_0x2d9f9b),this[_0x1e41('0xa9')][_0x1e41('0xb6')](_0x1e41('0xa0'),_0x518822),this[_0x1e41('0xa9')][_0x1e41('0xb6')](_0x1e41('0xb3'),_0x421623),this[_0x1e41('0xa9')][_0x1e41('0xb6')](_0x1e41('0x13d'),_0x2d9f9b),this[_0x1e41('0xa9')][_0x1e41('0xb6')](_0x1e41('0xdd'),_0x1de62a),this['_defaultCallbacks'][_0x1e41('0xb6')](_0x1e41('0x132'),_0x518822),this[_0x1e41('0xa9')][_0x1e41('0xb6')]('deletion:chain',_0x421623),this[_0x1e41('0xa9')][_0x1e41('0xb6')](_0x1e41('0xbd'),_0x46ad07),this['_defaultCallbacks']['set']('formatInline:discard',_0x1de62a),this[_0x1e41('0xa9')][_0x1e41('0xb6')](_0x1e41('0x140'),_0x518822),this[_0x1e41('0xa9')][_0x1e41('0xb6')](_0x1e41('0x2b'),_0x1de62a),this[_0x1e41('0xa9')][_0x1e41('0xb6')]('formatBlock:accept',_0x46ad07),this[_0x1e41('0xa9')]['set'](_0x1e41('0x100'),_0x1de62a),this[_0x1e41('0xa9')]['set'](_0x1e41('0x63'),_0x518822),this[_0x1e41('0xa9')][_0x1e41('0xb6')](_0x1e41('0x40'),_0x1de62a);}}function _t(_0x405e8f,_0x56f60d,_0x7fe9a0){for(const _0x2aebd3 of _0x56f60d[_0x1e41('0x8b')][_0x1e41('0xee')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2aebd3[_0x1e41('0x142')]==_0x2aebd3)return!0x1;if(!_0x7fe9a0[_0x1e41('0xfb')](_0x2aebd3))return!0x1;if(_0x405e8f[_0x1e41('0x129')](_0x2aebd3)||_0x405e8f['isLimit'](_0x2aebd3))return!0x0;}return!0x1;}function Mt(_0x4a6048){return _0x4a6048[_0x1e41('0xef')][_0x1e41('0x8b')]==_0x4a6048[_0x1e41('0x32')]['nodeAfter']&&_0x4a6048['end'][_0x1e41('0x29')];}function $t(_0x54b2a9,_0x4388de,_0x46b257,_0x2c0746){const _0x110762=_0x47f2ce=>!_0x47f2ce[_0x1e41('0x113')]['is']('$textProxy')&&!_0x2c0746['isObject'](_0x47f2ce[_0x1e41('0x113')]),_0x39243e=_0x54b2a9['start'][_0x1e41('0x13e')](_0x110762),_0x17e05d=_0x54b2a9['end'][_0x1e41('0x13e')](_0x110762,{'direction':_0x1e41('0x24')});return(!_0x54b2a9[_0x1e41('0x32')][_0x1e41('0xf2')](_0x39243e)||!_0x54b2a9[_0x1e41('0xef')][_0x1e41('0xf2')](_0x17e05d))&&(_0x39243e[_0x1e41('0x128')](_0x17e05d)?_0x46b257[_0x1e41('0x7e')](_0x4388de,{'range':_0x46b257[_0x1e41('0x109')](_0x39243e,_0x17e05d)}):_0x46b257[_0x1e41('0x103')](_0x4388de),!0x0);}function Nt(_0x3da3d3){return _0x7f86c4(_0x3da3d3);}function Rt(_0x13df57){const _0x182393=_0x13df57[_0x1e41('0x32')]['nodeAfter'];return _0x182393&&_0x182393['is'](_0x1e41('0x10e'));}function jt(_0x5141b5,_0x4c7200){const _0x1dec8=_0x4c7200['schema'][_0x1e41('0x129')](_0x5141b5)||_0x4c7200[_0x1e41('0xe6')]['isSelectable'](_0x5141b5);return _0x4c7200['createRange'](_0x4c7200[_0x1e41('0x53')](_0x5141b5,_0x1e41('0xa6')),_0x1dec8?_0x4c7200[_0x1e41('0x124')](_0x5141b5):_0x4c7200['createPositionAt'](_0x5141b5,_0x1e41('0xef')));}function xt(_0x1a60fa,_0xc856a3,_0x5d9a98,_0xd5a4ee,_0x30f6dc){if(!Ut(_0x1a60fa,_0xc856a3))return!0x1;if(_0x5d9a98[_0x1e41('0xef')][_0x1e41('0xf2')](_0xd5a4ee['start']))return!0x0;if(_0x1a60fa[_0x1e41('0x8f')]!=_0xc856a3[_0x1e41('0x8f')])return!0x1;if(!_0x5d9a98[_0x1e41('0xef')]['isTouching'](_0xd5a4ee[_0x1e41('0x32')]))return!0x1;const _0x31b9db=_0x30f6dc['createRange'](_0x5d9a98['end'],_0xd5a4ee['start'])[_0x1e41('0xfc')]();for(const _0x19219c of _0x31b9db)if([_0x1e41('0x11'),'elementEnd'][_0x1e41('0x127')](_0x19219c[_0x1e41('0x8f')])&&_0x30f6dc[_0x1e41('0xe6')]['isLimit'](_0x19219c['item']))return!0x1;return!0x0;}function Ut(_0x5b5932,_0x5ac85e){return!(!_0x5b5932[_0x1e41('0x18')]||!_0x5ac85e[_0x1e41('0x18')])&&_0x19984d(_0x5b5932[_0x1e41('0x3b')],_0x5ac85e[_0x1e41('0x3b')]);}function Ot(_0x19fecb,_0x1f2eeb){const _0x31cee7=Et(_0x19fecb[_0x1e41('0x3b')]),_0x154748=Et(_0x1f2eeb);if(!_0x19fecb[_0x1e41('0x18')])return!0x1;for(const _0x23fd5e of Object['keys'](_0x154748))if(!_0x19984d(_0x31cee7[_0x23fd5e],_0x154748[_0x23fd5e]))return!0x1;return!0x0;}function Et(_0x29ab74){const _0x34393d=Object['assign']({},_0x29ab74);return delete _0x34393d[_0x1e41('0xed')],delete _0x34393d[_0x1e41('0x69')],_0x34393d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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']();}}
23
+ const _0x4b57=['componentFactory','_bindAnnotationToEditors','getRanges','_disableComments','TrackChangesEditing','acceptButton','length','execute','from','suggestion-','CommentView','switchbutton','button','separator','trackChanges','getFirstRange','Annotations','createAnnotationView','value','size','type','discardSelectedSuggestions','focus','getDescriptions','get','editor','suggestionLoaded','Track\x20changes','Accept\x20all\x20suggestions','change:previous','_suggestionToController','_viewToController','_descriptionFactory','registerAnnotation','pluginName','add','suggestionUnloaded','EditorAnnotations','getByInnerView','SuggestionThreadView','_updateController','some','isEnabled','view','destroy','comments.maxCommentCharsWhenCollapsed','comments.maxThreadTotalWeight','has','unbind','getJoined','set','isDirty','isMultiRange','acceptAllSuggestions','createAnnotation','source','head','commandName','TrackChangesUI','delete','stopListening','Discard\x20all\x20suggestions','addSourceCollector','_annotationViews','define','arrowView','getMarkerNames','filter','_handleSuggestionControllerDelayed','comments.maxCommentsWhenCollapsed','CommentsUI','isOn','plugins','CommentsRepository','listenTo','commentThread','getAllAdjacentSuggestions','suggestionChanged','push','change:activeAnnotations','buttonView','descriptionParts','acceptSelectedSuggestions','mainView','editing','model','innerView','discardAllSuggestions','config','_createUIButton','comments.editorConfig','clear','_destroyController','commands','createCommentThreadController','_handleControllerBuffer','isInContent','bind','trackChanges.disableComments','addComment','_refreshActiveMarkers','locale','_initializeController'];(function(_0x34362f,_0x4b57b8){const _0x186b1f=function(_0x293566){while(--_0x293566){_0x34362f['push'](_0x34362f['shift']());}};_0x186b1f(++_0x4b57b8);}(_0x4b57,0x13f));const _0x186b=function(_0x34362f,_0x4b57b8){_0x34362f=_0x34362f-0x0;let _0x186b1f=_0x4b57[_0x34362f];return _0x186b1f;};import{Plugin as _0x528fc6}from'ckeditor5/src/core';import{Collection as _0x44b7ca}from'ckeditor5/src/utils';import{Model as _0x29e5e5,SplitButtonView as _0x4398e4,createDropdown as _0x581d1b,addListToDropdown as _0x5edc57}from'ckeditor5/src/ui';import{Users as _0x255820,getDateTimeFormatter as _0xd65baf,getAllMarkersDomElementsSorted as _0x1827e5}from'ckeditor5-collaboration/src/collaboration-core';import _0x1fdf6a from'./trackchangesediting';import _0x352cfe from'./ui/suggestioncontroller';import _0x242f2c from'./ui/view/suggestionthreadview';import{getTranslation as _0x440ea9}from'./utils/common-translations';import _0x5958a7 from'../theme/icons/track-changes.svg';export default class d extends _0x528fc6{static get['requires'](){return[_0x1fdf6a,_0x255820,_0x186b('0x3f'),'Annotations',_0x186b('0x1b')];}static get[_0x186b('0x18')](){return _0x186b('0x30');}constructor(_0x4ed144){super(_0x4ed144),this[_0x186b('0x14')]=new Map(),this[_0x186b('0x15')]=new Map(),this['_annotationViews']=new Map(),this[_0x186b('0x55')]=new Map();const _0x562c3b=this[_0x186b('0xf')][_0x186b('0x4e')];_0x562c3b[_0x186b('0x36')]('trackChanges.SuggestionThreadView',_0x242f2c),_0x562c3b[_0x186b('0x36')]('trackChanges.disableComments',!0x1),this[_0x186b('0x60')]=_0x562c3b[_0x186b('0xe')](_0x186b('0x58'));}['_handleSuggestionControllerDelayed'](_0x2df199,_0x54c6d7){0x0===this[_0x186b('0x55')][_0x186b('0x9')]&&setTimeout(()=>{for(const [_0x5b9757,_0x594795]of this[_0x186b('0x55')]){const _0x28c703=this[_0x186b('0x14')][_0x186b('0x25')](_0x5b9757);_0x28c703||_0x594795?_0x28c703&&_0x594795&&this[_0x186b('0x52')](_0x5b9757):this['_initializeController'](_0x5b9757);}this[_0x186b('0xf')]['plugins'][_0x186b('0xe')](_0x186b('0x1b'))['refreshSelectedViews'](),this['_refreshActiveMarkers'](),this[_0x186b('0x55')][_0x186b('0x51')]();},0xa),this['_handleControllerBuffer'][_0x186b('0x28')](_0x2df199,_0x54c6d7);}['init'](){const _0x3d1c16=this[_0x186b('0xf')],_0x1f5f06=_0x3d1c16[_0x186b('0x3e')]['get'](_0x186b('0x61')),_0x18015f=_0x3d1c16[_0x186b('0x3e')][_0x186b('0xe')](_0x186b('0x6')),_0x466d84=_0x3d1c16[_0x186b('0x3e')]['get'](_0x186b('0x1b')),_0x2b3222=_0x3d1c16[_0x186b('0x3e')]['get']('CommentsRepository');_0x3d1c16['ui'][_0x186b('0x5d')][_0x186b('0x19')](_0x186b('0x4'),_0x433a24=>this[_0x186b('0x4f')](_0x433a24)),_0x466d84[_0x186b('0x34')](()=>{const _0x2a1003=[];for(const [_0x2fa633,_0x2ea1e5]of Array['from'](this[_0x186b('0x14')])){const _0x78a053=_0x2fa633[_0x186b('0x42')](),_0x41c40f=[];for(const _0x58691d of _0x78a053){if(!_0x58691d[_0x186b('0x56')])continue;if(_0x58691d[_0x186b('0x2a')]){_0x41c40f[_0x186b('0x44')](..._0x58691d[_0x186b('0x5f')]());continue;}const _0x27c5c1=_0x58691d[_0x186b('0x5')]();if(_0x41c40f[_0x186b('0x63')]>0x0){const _0x3c3db3=_0x41c40f[0x0][_0x186b('0x27')](_0x27c5c1);if(_0x3c3db3){_0x41c40f[0x0]=_0x3c3db3;continue;}}_0x41c40f[_0x186b('0x44')](_0x27c5c1);}_0x2a1003['push']([_0x2ea1e5[_0x186b('0x21')],_0x41c40f]);}return _0x2a1003;}),this[_0x186b('0x40')](_0x1f5f06,_0x186b('0x10'),(_0x487aca,_0x33fa07)=>{this[_0x186b('0x40')](_0x33fa07,_0x186b('0x13'),(_0x2e3745,_0x3fb49d,_0x5752a0,_0x426acd)=>{_0x33fa07[_0x186b('0x56')]&&(null==_0x5752a0?(this[_0x186b('0x1e')](_0x426acd[_0x186b('0x2e')]),this[_0x186b('0x3a')](_0x33fa07,!0x1)):(this[_0x186b('0x1e')](_0x5752a0['head']),this[_0x186b('0x3a')](_0x33fa07,!0x0)));}),null===_0x33fa07['previous']?this[_0x186b('0x3a')](_0x33fa07,!0x1):this[_0x186b('0x1e')](_0x33fa07[_0x186b('0x2e')]);}),this[_0x186b('0x40')](_0x1f5f06,_0x186b('0x1a'),(_0x4a605b,_0x8eab5a,_0x369663)=>{this[_0x186b('0x32')](_0x8eab5a,_0x186b('0x13')),this['_handleControllerBuffer'][_0x186b('0x31')](_0x8eab5a);const _0x5cd0de=_0x369663?_0x369663[_0x186b('0x2e')]:_0x8eab5a,_0x180f26=this[_0x186b('0x14')][_0x186b('0xe')](_0x5cd0de);null!==_0x369663&&this[_0x186b('0x1e')](_0x5cd0de),null===_0x369663&&_0x180f26&&this['_destroyController'](_0x8eab5a);}),this[_0x186b('0x40')](_0x1f5f06,_0x186b('0x43'),(_0x22d386,_0x13615c)=>{this['_updateController'](_0x13615c);}),this[_0x186b('0x40')](_0x18015f,_0x186b('0x45'),()=>{this[_0x186b('0x5a')]();}),this[_0x186b('0x40')](_0x2b3222,_0x186b('0x59'),(_0x5c4229,{threadId:_0x26981a,isFromAdapter:_0x1f10ed})=>{if(_0x1f10ed||!_0x1f5f06['hasSuggestion'](_0x26981a))return;const _0x3e7d48=_0x1f5f06['getSuggestion'](_0x26981a);this[_0x186b('0x14')][_0x186b('0xe')](_0x3e7d48)[_0x186b('0x21')]['focus']();},{'priority':'lowest'});}[_0x186b('0x5a')](){const _0x2b9ca5=this[_0x186b('0xf')]['plugins'][_0x186b('0xe')](_0x186b('0x6')),_0x4d24b1=this[_0x186b('0xf')][_0x186b('0x3e')][_0x186b('0xe')](_0x186b('0x61')),_0x1b40d4=Array[_0x186b('0x65')](_0x2b9ca5['activeAnnotations'],_0x2dd2bd=>_0x2dd2bd[_0x186b('0x4c')])[_0x186b('0x39')](_0x43744c=>this['_viewToController']['has'](_0x43744c)),_0x448a3b=[];for(const _0x3bf827 of _0x1b40d4){const _0x31d82c=this[_0x186b('0x15')][_0x186b('0xe')](_0x3bf827)[_0x186b('0x4b')][_0x186b('0x42')]();_0x448a3b['push'](..._0x31d82c['reduce']((_0x1f6baf,_0x25c19d)=>[..._0x1f6baf,..._0x25c19d[_0x186b('0x38')]()],[]));}_0x4d24b1['activeMarkers']=_0x448a3b;}[_0x186b('0x4f')](_0x394e8f){const _0x11e4d8=_0x581d1b(_0x394e8f,_0x4398e4),_0x4e293b=this[_0x186b('0xf')][_0x186b('0x53')]['get'](_0x186b('0x4')),_0x11685b=_0x440ea9(_0x394e8f,_0x186b('0x11'));_0x11e4d8[_0x186b('0x46')][_0x186b('0x28')]({'tooltip':_0x11685b,'label':_0x11685b,'icon':_0x5958a7}),_0x11e4d8['buttonView'][_0x186b('0x57')](_0x186b('0x3d'))['to'](_0x4e293b,_0x186b('0x8')),_0x11e4d8['buttonView']['on']('execute',()=>{_0x4e293b[_0x186b('0x64')](),this['editor'][_0x186b('0x4a')][_0x186b('0x21')]['focus']();});const _0x492d87=new _0x44b7ca(),_0x310228=[{'type':_0x186b('0x1'),'model':{'withText':!0x0,'label':_0x11685b,'commandName':_0x186b('0x4')}},{'type':_0x186b('0x3')},{'type':'button','model':{'withText':!0x0,'label':_0x440ea9(_0x394e8f,_0x186b('0x12')),'commandName':_0x186b('0x2b')}},{'type':_0x186b('0x2'),'model':{'withText':!0x0,'label':_0x440ea9(_0x394e8f,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x186b('0x48')}},{'type':_0x186b('0x2'),'model':{'withText':!0x0,'label':_0x440ea9(_0x394e8f,_0x186b('0x33')),'commandName':_0x186b('0x4d')}},{'type':_0x186b('0x2'),'model':{'withText':!0x0,'label':_0x440ea9(_0x394e8f,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x186b('0xb')}}];for(const _0x401ea2 of _0x310228){let _0x1d19db={'type':'separator'};if(_0x401ea2['model']){const _0x1d0d02=new _0x29e5e5(_0x401ea2[_0x186b('0x4b')]),_0x16f625=this[_0x186b('0xf')][_0x186b('0x53')][_0x186b('0xe')](_0x1d0d02[_0x186b('0x2f')]);_0x1d0d02[_0x186b('0x57')](_0x186b('0x3d'),_0x186b('0x20'))['to'](_0x16f625,_0x186b('0x8'),_0x186b('0x20')),_0x1d19db={'type':_0x401ea2['type'],'model':_0x1d0d02};}_0x492d87['add'](_0x1d19db);}_0x5edc57(_0x11e4d8,_0x492d87);const _0x5a6d89=_0x310228[_0x186b('0x39')](_0x1677c=>null!=_0x1677c[_0x186b('0x4b')])['map'](_0x51b227=>this[_0x186b('0xf')][_0x186b('0x53')][_0x186b('0xe')](_0x51b227[_0x186b('0x4b')][_0x186b('0x2f')])),_0x2f0c8d=_0x11e4d8[_0x186b('0x46')];return _0x2f0c8d['actionView'][_0x186b('0x26')](_0x186b('0x20')),_0x2f0c8d['arrowView'][_0x186b('0x26')](_0x186b('0x20')),_0x2f0c8d['actionView'][_0x186b('0x57')](_0x186b('0x20'))['to'](_0x4e293b,'isEnabled'),_0x2f0c8d[_0x186b('0x37')][_0x186b('0x57')](_0x186b('0x20'))['toMany'](_0x5a6d89,_0x186b('0x20'),(..._0x10af7c)=>_0x10af7c[_0x186b('0x1f')](_0x585eeb=>_0x585eeb)),_0x11e4d8['on'](_0x186b('0x64'),_0x3026a1=>{this['editor'][_0x186b('0x64')](_0x3026a1[_0x186b('0x2d')][_0x186b('0x2f')]),this['editor']['editing'][_0x186b('0x21')]['focus']();}),_0x11e4d8;}[_0x186b('0x5c')](_0x16978d){const _0x476690=this[_0x186b('0xf')],_0x6cab01=_0x476690['config'],_0x368c13=_0x476690['plugins'][_0x186b('0xe')]('Annotations'),_0x500018=_0x476690[_0x186b('0x3e')][_0x186b('0xe')]('CommentsRepository'),_0xd55711=_0x476690['plugins']['get'](_0x186b('0x1b')),_0x168be7=_0x476690[_0x186b('0x3e')][_0x186b('0xe')](_0x255820)['me'],_0x3a0045=_0x6cab01[_0x186b('0xe')](_0x186b('0x4'))[_0x186b('0x1d')],{CommentsListView:_0x4c353b,CommentThreadInputView:_0x27fe29}=_0x476690['plugins'][_0x186b('0xe')](_0x186b('0x3c'));let _0x5e99b8,_0x447969;this[_0x186b('0x35')][_0x186b('0x25')](_0x16978d['id'])?(_0x447969=this[_0x186b('0x35')][_0x186b('0xe')](_0x16978d['id']),_0x5e99b8=_0x447969[_0x186b('0x49')]):(_0x5e99b8=new _0x3a0045(_0x476690[_0x186b('0x5b')],_0x16978d,_0x168be7,{'disableComments':this[_0x186b('0x60')],'editorConfig':_0x6cab01[_0x186b('0xe')](_0x186b('0x50')),'maxCommentsWhenCollapsed':_0x6cab01['get'](_0x186b('0x3b')),'maxThreadTotalWeight':_0x6cab01[_0x186b('0xe')](_0x186b('0x24')),'maxCommentCharsWhenCollapsed':_0x6cab01[_0x186b('0xe')](_0x186b('0x23')),'formatDateTime':_0xd65baf(_0x6cab01[_0x186b('0xe')](_0x186b('0x5b'))),'CommentView':_0x6cab01[_0x186b('0xe')]('comments')[_0x186b('0x0')],'CommentsListView':_0x4c353b,'CommentThreadInputView':_0x27fe29}),_0x5e99b8[_0x186b('0x62')]['on']('execute',()=>{_0x476690['editing'][_0x186b('0x21')]['focus']();}),_0x5e99b8['discardButton']['on'](_0x186b('0x64'),()=>{_0x476690[_0x186b('0x4a')][_0x186b('0x21')][_0x186b('0xc')]();}),_0x447969=_0x368c13[_0x186b('0x7')](this[_0x186b('0xf')][_0x186b('0x5b')],_0x5e99b8),_0x447969[_0x186b('0x57')](_0x186b('0x29'))['to'](_0x5e99b8,_0x186b('0x29')),_0x447969[_0x186b('0x57')](_0x186b('0x63'))['to'](_0x5e99b8),_0x447969[_0x186b('0x57')]('type')['to'](_0x5e99b8,_0x186b('0xa'),_0x26a2e5=>_0x186b('0x66')+_0x26a2e5),this[_0x186b('0x35')][_0x186b('0x28')](_0x16978d['id'],_0x447969));const _0x5cb324=_0x500018[_0x186b('0x54')](_0x16978d[_0x186b('0x41')],_0x5e99b8),_0x17a54b=new _0x352cfe(_0x476690,_0x16978d,_0x5e99b8,_0x5cb324),_0x152072=_0x16978d[_0x186b('0x42')]()[_0x186b('0x39')](_0x21de21=>_0x21de21[_0x186b('0x56')]);_0x5e99b8[_0x186b('0x47')]=_0x476690[_0x186b('0x3e')][_0x186b('0xe')](_0x186b('0x61'))['_descriptionFactory'][_0x186b('0xd')](_0x152072),this[_0x186b('0x14')][_0x186b('0x28')](_0x16978d,_0x17a54b),this[_0x186b('0x15')][_0x186b('0x28')](_0x5e99b8,_0x17a54b);const _0x1f1c37=_0x368c13[_0x186b('0x2c')]({'view':_0x447969,'target':()=>{const _0x318174=[],_0xf919e3=_0x16978d[_0x186b('0x42')]()['filter'](_0x13ab62=>_0x13ab62[_0x186b('0x56')]);for(const _0x473378 of _0xf919e3)_0x318174[_0x186b('0x44')](..._0x473378['getMarkers']());return _0x1827e5(_0x476690[_0x186b('0x4a')],_0x318174);},'type':()=>_0x186b('0x66')+_0x17a54b[_0x186b('0x21')][_0x186b('0xa')]});_0x500018[_0x186b('0x5e')](_0x5e99b8,_0x1f1c37),_0x368c13[_0x186b('0x19')](_0x1f1c37),_0xd55711[_0x186b('0x17')](_0x1f1c37);}[_0x186b('0x52')](_0x1a44a9){const _0x2bf71b=this['editor'][_0x186b('0x3e')][_0x186b('0xe')](_0x186b('0x3f')),_0x25860f=this[_0x186b('0xf')][_0x186b('0x3e')][_0x186b('0xe')](_0x186b('0x6')),_0x274607=this['_suggestionToController'][_0x186b('0xe')](_0x1a44a9),_0x583028=_0x274607[_0x186b('0x21')],_0x58641e=_0x25860f[_0x186b('0x1c')](_0x583028);_0x2bf71b['_unbindEditors'](_0x583028),_0x58641e&&_0x25860f['remove'](_0x58641e),this['_suggestionToController'][_0x186b('0x31')](_0x1a44a9),this[_0x186b('0x15')]['delete'](_0x583028),_0x274607[_0x186b('0x22')]();}[_0x186b('0x1e')](_0x47d254){if(!_0x47d254[_0x186b('0x56')]||!this[_0x186b('0x14')][_0x186b('0x25')](_0x47d254))return;const _0x2fa24f=this[_0x186b('0xf')]['plugins']['get'](_0x186b('0x61')),_0x270db6=this[_0x186b('0x14')][_0x186b('0xe')](_0x47d254),_0xa332d8=_0x47d254[_0x186b('0x42')]();_0x270db6[_0x186b('0x21')][_0x186b('0x47')]=_0x2fa24f[_0x186b('0x16')][_0x186b('0xd')](_0xa332d8);}[_0x186b('0x22')](){for(const _0x2f3a2f of this[_0x186b('0x14')]['keys']())this[_0x186b('0x52')](_0x2f3a2f);for(const _0x46d281 of this['_annotationViews']['values']())_0x46d281[_0x186b('0x49')][_0x186b('0x22')]();super[_0x186b('0x22')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0x1efa=['plugins','_pendingAction','discardSuggestion','canAccept','listenTo','commands','stopListening','getRanges','add','commentThreadController','destroy','change:isDirty','isEnabled','acceptSuggestion','isDirty','unbind','canEditAt','bind','model','execute','PendingActions','PENDING_ACTION_SUGGESTION','view','_discardCommand','remove','canDiscard','_editor','_removePendingAction','_setPendingAction','_acceptCommand'];(function(_0x39085b,_0x1efa92){const _0x5d6951=function(_0x3e9c05){while(--_0x3e9c05){_0x39085b['push'](_0x39085b['shift']());}};_0x5d6951(++_0x1efa92);}(_0x1efa,0x153));const _0x5d69=function(_0x39085b,_0x1efa92){_0x39085b=_0x39085b-0x0;let _0x5d6951=_0x1efa[_0x39085b];return _0x5d6951;};import{ObservableMixin as _0x29e94a}from'ckeditor5/src/utils';import{getTranslation as _0x21b196}from'../utils/common-translations';export default class Gt extends _0x29e94a(){constructor(_0x53d1c6,_0x5053c2,_0x5a1775,_0x4a95a4){super(),this[_0x5d69('0x9')]=_0x5053c2,this[_0x5d69('0xd')]=_0x5a1775,this[_0x5d69('0x0')]=_0x4a95a4,this[_0x5d69('0x11')]=_0x53d1c6,this['_acceptCommand']=_0x53d1c6[_0x5d69('0x1a')]['get']('acceptSuggestion'),this[_0x5d69('0xe')]=_0x53d1c6[_0x5d69('0x1a')]['get']('discardSuggestion'),this[_0x5d69('0xd')]['bind'](_0x5d69('0x3'))['to'](this[_0x5d69('0x14')],this['_discardCommand'],(_0xbc053d,_0x18bcc1)=>_0xbc053d||_0x18bcc1),this[_0x5d69('0xd')][_0x5d69('0x8')]('canAccept')['to'](this[_0x5d69('0x14')],_0x5d69('0x3'),_0x5dca73=>_0x5dca73&&this[_0x5d69('0x11')][_0x5d69('0x9')][_0x5d69('0x7')](_0x5053c2[_0x5d69('0x1c')]())),this[_0x5d69('0xd')][_0x5d69('0x8')](_0x5d69('0x10'))['to'](this[_0x5d69('0xe')],_0x5d69('0x3'),_0x2f2124=>_0x2f2124&&this['_editor'][_0x5d69('0x9')][_0x5d69('0x7')](_0x5053c2['getRanges']())),this[_0x5d69('0x16')]=null,_0x5a1775['isDirty']&&this[_0x5d69('0x13')](),this[_0x5d69('0x19')](_0x5a1775,_0x5d69('0x4'),()=>this[_0x5d69('0x4')]()),this[_0x5d69('0x19')](_0x5a1775,'discardSuggestion',()=>this['discardSuggestion']()),this[_0x5d69('0x19')](_0x5a1775,_0x5d69('0x2'),()=>{_0x5a1775[_0x5d69('0x5')]?this[_0x5d69('0x13')]():this[_0x5d69('0x12')]();});}[_0x5d69('0x4')](){this[_0x5d69('0x14')][_0x5d69('0xa')](this[_0x5d69('0x9')]['id']);}[_0x5d69('0x17')](){this[_0x5d69('0xe')]['execute'](this[_0x5d69('0x9')]['id']);}[_0x5d69('0x1')](){this[_0x5d69('0xd')][_0x5d69('0x6')](_0x5d69('0x3')),this[_0x5d69('0xd')]['unbind'](_0x5d69('0x18')),this[_0x5d69('0xd')][_0x5d69('0x6')](_0x5d69('0x10')),this[_0x5d69('0x1b')](),this['commentThreadController'][_0x5d69('0x1')](),this[_0x5d69('0x16')]&&this[_0x5d69('0x12')]();}[_0x5d69('0x13')](){const _0x197f81=_0x21b196(this['_editor']['locale'],_0x5d69('0xc'));this['_pendingAction']=this[_0x5d69('0x11')]['plugins']['get']('PendingActions')[_0x5d69('0x1d')](_0x197f81);}[_0x5d69('0x12')](){null!==this[_0x5d69('0x16')]&&this[_0x5d69('0x11')][_0x5d69('0x15')]['get'](_0x5d69('0xb'))[_0x5d69('0xf')](this[_0x5d69('0x16')]),this[_0x5d69('0x16')]=null;}}