@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230801.0 → 0.0.0-nightly-20230803.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdbf4=['deletion','formatInline','_joinWithAdjacentSuggestions','position','suggestionUnloaded','attributes','isIntersectingWithRange','next','multi','formatBlock','fire','marker-count','formatBlock:chain','$marker','enableReadOnlyMode','discardSuggestion','addMarker:suggestion:formatBlock','length','resolve','formatBlock:join','track-changes-suggestion-data-mismatch','_addSuggestionMarker','element','_onDiscard','_createSuggestion','values','catch','_updateSuggestionData','showSuggestionHighlights','insertion:accept','oldRange','deletion:','_getSuggestionData','_splitMarkerName','add','getCommentThread','split','getUser','commandName','error-saving-suggestion-data-suggestion-discarded','_adapter','registerPostFixer','set','acceptSuggestion','nodeBefore','ck-suggestion-marker-','removeClass','getCustomProperty','containsRangeInObject','markDeletion','addHighlight','track-changes-command-not-found','batch','getChangedMarkers','_breakSuggestionMarker','_setSuggestionRange','every','trackChanges.mergeNestedSuggestions','item','moveTargetPosition','_defaultCallbacks','execute','addComment','parent','hasSuggestion','getIntersection','model','_cutOutSuggestionMarker','markBlockFormat','from','update:suggestion','some','isMultiRange','removeMarker:suggestion:formatBlock','never','$textProxy','createPositionAt','rejected','accept','fromCharCode','isEqual','isInContent','high','containsRange','markInsertion','hasComments','rootName','removed','_findSuggestions','registerCustomCallback','selection','createdAt','head','change:activeMarkers','data-suggestion','splice','addCommentThread','discard','isBlock','commentThread','isTouching','isAtEnd','formatBlock:accept','isUndo','deletion:join','isSelectable','clone','isDocumentOperation','notReady','forceDefaultExecution','getShiftedBy','getChanges','always','isBefore','getSuggestionCallback','_enabledCommands','addMarker:suggestion','isOwn','removeMarkers','document','removeMarker','_isForcedDefaultExecutionBlock','get','addUser','newRange','subType','_registerDefaultCallbacks','isAtStart','$graveyard','remove','options','end','conversion','config','push','formatInline:chain','removeAttribute','isInsideObject','Users','differ','multipleBlocks','detach','getFirstMarker','acceptSelectedSuggestions','ck-suggestion-marker','track-changes-adapter-missing-getsuggestion','PENDING_ACTION_SUGGESTION','createRangeIn','sort','before','ready','markerReady','size','_saved','addClass','addRange','change','insertContent','adapter','getMultiRangeId','unbind','authorName','default','applyOperation','createPositionBefore','has','createRange','includes','targetPosition','enableCommand','getAllAdjacentSuggestions','insertion:join','listenTo','widget','_getAuthorFromId','plugins','_trackFormatChanges','for','data','getMarkers','_checkSuggestionCorrectness','getNearestSelectionRange','getSuggestion','activeMarkers','_setSuggestionData','previous','clear','getLastMatchingPosition','documentSelection','markMultiRangeBlockFormat','filter','suggestionChanged','dataDowncast','deletion:chain','consumable','after','_suggestions','normal','containerElement','trackChanges.trackFormatChanges','_joinSuggestions','nodeAfter','_mergeNestedSuggestions','setTo','range','_commentsRepository','map','markerName','getAttribute','locale','skipNestingCheck','value','formatInline:discard','isCollapsed','fetchCommentThread','updateMarker','splitPosition','delete','_suggestionState','isAfter','_model','_descriptionFactory','isRemovable','markInlineFormat','createElement','getSuggestions','creator','insertion:','join','howMany','ck-suggestion-marker--active','collaboration.channelId','root','_rangeIsInLocalUserInsertion','track-changes-user-not-found','upcast','return','start','TrackChangesEditing','acceptAllSuggestions','getDifference','isNextTo','then','suggestion','low','markerToHighlight','_editor','init','author','isLimit','buildSuggestion','formatGroupId','refresh','stop','_customCallbacks','deleteContent','updateSuggestion','formatBlock:','toViewElement','isObject','change:_saved','_removeSuggestion','change:data','editingDowncast','insertion','consume','createSelection','markers','type','unbindElementFromMarkerName','insert','getWalker','commands','PendingActions','move','_getExternalAuthor','addMarkerName','_refreshSuggestionsChain','getFirstRange','define','writer','track-changes-suggestion-not-found','mapper','authoredAt','setSelection','discardSelectedSuggestions','_suggestionFactory','addSuggestion','pluginName','forward','editor','discardAllSuggestions','formatInline:','trackChanges','group','@external','CommentsRepository','getRanges','dataReady','formatInline:accept','dataToMarker','markMultiRangeDeletion','open','addSuggestionData','name','_handleNewSuggestionMarker','_addThreadToSuggestion','schema','trackChangesCommand','external:','formatBlock:discard'];(function(_0x43380f,_0xdbf437){const _0x57d869=function(_0x4ebc06){while(--_0x4ebc06){_0x43380f['push'](_0x43380f['shift']());}};_0x57d869(++_0xdbf437);}(_0xdbf4,0x17e));const _0x57d8=function(_0x43380f,_0xdbf437){_0x43380f=_0x43380f-0x0;let _0x57d869=_0xdbf4[_0x43380f];return _0x57d869;};import{Plugin as _0x487fb5,PendingActions as _0x5b667d}from'ckeditor5/src/core';import{LiveRange as _0x4c845b}from'ckeditor5/src/engine';import{CKEditorError as _0x11ad5e,uid as _0x3645d4,priorities as _0x483807,logWarning as _0x2fcea7}from'ckeditor5/src/utils';import{toWidget as _0x53e7cf}from'ckeditor5/src/widget';import{Users as _0x642c8f,hashObject as _0x463637}from'ckeditor5-collaboration/src/collaboration-core';import _0x183698 from'./commands/trackchangescommand';import _0x248555 from'./commands/acceptsuggestioncommand';import _0x569a01 from'./commands/discardsuggestioncommand';import _0x44495e from'./commands/executeonallsuggestionscommand';import _0x462de7 from'./commands/executeonselectedsuggestionscommand';import _0x159187 from'./suggestion';import _0x583393 from'./suggestiondescriptionfactory';import _0x2683a8 from'./integrations/alignment';import _0x147a1e from'./integrations/basicstyles';import _0x36ea43 from'./integrations/blockquote';import _0xe7083d from'./integrations/ckbox';import _0x58f56a from'./integrations/codeblock';import _0x453fa6 from'./integrations/comments';import _0x21a867 from'./integrations/deletecommand';import _0x5acfe8 from'./integrations/documentlist';import _0x4ed359 from'./integrations/entercommand';import _0x558aec from'./integrations/findandreplace';import _0x2fa1d8 from'./integrations/font';import _0xebdd6d from'./integrations/formatpainter';import _0x2507ac from'./integrations/heading';import _0x3aaca6 from'./integrations/highlight';import _0x5d1d41 from'./integrations/horizontalline';import _0x3acd6b from'./integrations/htmlembed';import _0x43b20b from'./integrations/image';import _0x383b30 from'./integrations/imagereplace';import _0x3aaace from'./integrations/importword';import _0x4326b5 from'./integrations/indent';import _0x4a0798 from'./integrations/inputcommand';import _0x2403db from'./integrations/link';import _0x3c4d74 from'./integrations/list';import _0x380be6 from'./integrations/listproperties';import _0x2ac77a from'./integrations/mediaembed';import _0x3f7b6b from'./integrations/mention';import _0x3f65c7 from'./integrations/pagebreak';import _0x59dfaf from'./integrations/paragraph';import _0x1c1e75 from'./integrations/removeformat';import _0x2b852b from'./integrations/restrictededitingmode';import _0x42a928 from'./integrations/shiftentercommand';import _0x44d98f from'./integrations/standardeditingmode';import _0x3fd3f0 from'./integrations/style';import _0x531240 from'./integrations/table';import _0x5ca1be from'./integrations/tablemergesplit';import _0x2fda9d from'./integrations/tableheadings';import _0x599c53 from'./integrations/tableclipboard';import _0x36033b from'./integrations/tablecolumnresize';import _0x1ddb41 from'./integrations/template';import _0x30ac08 from'./integrations/tableofcontents';import _0x2435d7 from'./integrations/title';import _0x5a67fb from'./integrations/undo';import{getTranslation as _0x5af54b}from'./utils/common-translations';import _0x51b2ba from'./integrations/tablecaption';import _0x1fe22b from'./integrations/documentlistproperties';import _0x48a4ff from'./integrations/tableproperties';export default class p extends _0x487fb5{static get['requires'](){return['CommentsRepository',_0x642c8f,_0x5b667d,_0x2683a8,_0x147a1e,_0x36ea43,_0xe7083d,_0x58f56a,_0x453fa6,_0x21a867,_0x5acfe8,_0x1fe22b,_0x4ed359,_0x558aec,_0x2fa1d8,_0xebdd6d,_0x2507ac,_0x3aaca6,_0x5d1d41,_0x3acd6b,_0x43b20b,_0x383b30,_0x3aaace,_0x4326b5,_0x4a0798,_0x2403db,_0x3c4d74,_0x380be6,_0x2ac77a,_0x3f7b6b,_0x3f65c7,_0x59dfaf,_0x1c1e75,_0x2b852b,_0x42a928,_0x44d98f,_0x3fd3f0,_0x531240,_0x5ca1be,_0x2fda9d,_0x51b2ba,_0x599c53,_0x36033b,_0x30ac08,_0x48a4ff,_0x1ddb41,_0x2435d7,_0x5a67fb];}static get[_0x57d8('0xd9')](){return _0x57d8('0xa7');}constructor(_0x7082b){function _0x34b3ee(_0x3fe288){return _0x3fe288[_0x57d8('0x87')](_0x51d464=>String[_0x57d8('0x8')](_0x51d464))[_0x57d8('0x9d')]('');}super(_0x7082b),this[_0x57d8('0x11a')](_0x57d8('0x70'),[]),this['on'](_0x57d8('0x16'),(_0x389c6f,_0x48be14,_0x562698,_0x4f17c6)=>{this['_model']['change'](()=>{for(const _0x289c49 of[..._0x4f17c6,..._0x562698])this['_model']['markers']['has'](_0x289c49)&&_0x7082b['editing']['reconvertMarker'](_0x289c49);});}),this[_0x57d8('0x96')]=new _0x583393(this['editor'][_0x57d8('0x132')]['schema'],this[_0x57d8('0xdb')][_0x57d8('0x8a')]),this[_0x57d8('0x118')]=null,this[_0x57d8('0xd7')]=new Dt(this[_0x57d8('0xdb')]),this[_0x57d8('0x7d')]=new Map(),this['_commentsRepository']=_0x7082b[_0x57d8('0x68')]['get']('CommentsRepository'),this[_0x57d8('0x2c')]=new Set(),this[_0x57d8('0x95')]=this[_0x57d8('0xdb')][_0x57d8('0x132')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x7082b[_0x57d8('0x3e')][_0x57d8('0xd0')](_0x57d8('0x80'),_0x57d8('0x5b')),this[_0x57d8('0x69')]=_0x7082b[_0x57d8('0x3e')][_0x57d8('0x33')]('trackChanges.trackFormatChanges'),_0x7082b[_0x57d8('0x3e')][_0x57d8('0xd0')](_0x57d8('0x129'),!0x0),this[_0x57d8('0x83')]=_0x7082b[_0x57d8('0x3e')][_0x57d8('0x33')]('trackChanges.mergeNestedSuggestions'),this[_0x57d8('0xed')]=new _0x183698(_0x7082b,this[_0x57d8('0x2c')]),this[_0x34b3ee([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x34b3ee([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x32]);}[_0x57d8('0xb0')](){const _0x4880b3=this[_0x57d8('0xdb')];_0x4880b3[_0x57d8('0x3d')][_0x57d8('0x6a')](_0x57d8('0xc0'))[_0x57d8('0xae')]({'model':_0x57d8('0xac'),'view':_0x1395cc=>{const {id:_0x15d351,type:_0x59cd70}=this[_0x57d8('0x111')](_0x1395cc['markerName']),_0x391606=[_0x57d8('0x49'),_0x57d8('0x11d')+_0x59cd70];let _0x3a3ae3=0xbb8;return this[_0x57d8('0x70')][_0x57d8('0x60')](_0x1395cc[_0x57d8('0x88')])&&(_0x391606['push'](_0x57d8('0x9f')),_0x3a3ae3=0xbc2),_0x57d8('0xf0')==_0x59cd70&&(_0x3a3ae3+=0x5),{'classes':_0x391606,'attributes':{'data-suggestion':_0x15d351},'priority':_0x3a3ae3};}}),_0x4880b3[_0x57d8('0x3d')]['for'](_0x57d8('0x79'))[_0x57d8('0x112')](_0x242235=>{_0x242235['on'](_0x57d8('0x2d'),(_0x5b0a7f,_0x50cb1c,_0x3fdfdd)=>{if(!_0x3fdfdd['options']['showSuggestionHighlights'])return;const _0x15d10d=_0x50cb1c[_0x57d8('0x12a')];if(!_0x15d10d)return;const _0x595e13=_0x3fdfdd[_0x57d8('0xd3')]['toViewElement'](_0x15d10d);_0x4880b3[_0x57d8('0x132')][_0x57d8('0xec')][_0x57d8('0xbc')](_0x15d10d)&&_0x595e13&&!_0x595e13[_0x57d8('0x11f')](_0x57d8('0x66'))&&_0x595e13['is'](_0x57d8('0x7f'))&&_0x53e7cf(_0x595e13,_0x3fdfdd[_0x57d8('0xd1')]);},{'priority':_0x57d8('0xb')});}),_0x4880b3['conversion']['for'](_0x57d8('0x79'))[_0x57d8('0xae')]({'model':_0x57d8('0xac'),'view':(_0x3fcc9a,_0x16b471)=>{if(!_0x16b471[_0x57d8('0x3b')][_0x57d8('0x10c')])return null;const {type:_0xb1df78}=this[_0x57d8('0x111')](_0x3fcc9a[_0x57d8('0x88')]);return{'classes':['ck-suggestion-marker',_0x57d8('0x11d')+_0xb1df78],'priority':0xbb8};}});const _0x2ce34b=({showActiveMarkers:_0x6e3748=!0x0}={})=>(_0x50e6d8,_0x499e56,_0x244cc4)=>{if(!_0x499e56[_0x57d8('0x12a')])return;if(_0x499e56['item']['is'](_0x57d8('0x13')))return void _0x244cc4['consumable'][_0x57d8('0xc2')](_0x499e56[_0x57d8('0x12a')],_0x50e6d8[_0x57d8('0xe9')]);const _0x332ee3=_0x244cc4[_0x57d8('0xd3')][_0x57d8('0xbb')](_0x499e56['item']);if(!(_0x499e56[_0x57d8('0x12a')]['is'](_0x57d8('0x106'))&&_0x4880b3[_0x57d8('0x132')][_0x57d8('0xec')][_0x57d8('0x1b')](_0x499e56[_0x57d8('0x12a')])&&!_0x332ee3[_0x57d8('0x11f')](_0x57d8('0x122'))))return;const {id:_0x593cc9}=this[_0x57d8('0x111')](_0x499e56[_0x57d8('0x88')]);_0x244cc4['writer'][_0x57d8('0x53')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x332ee3),_0x244cc4[_0x57d8('0xd1')]['setAttribute'](_0x57d8('0x17'),_0x593cc9,_0x332ee3),_0x244cc4['mapper']['bindElementToMarker'](_0x332ee3,_0x499e56['markerName']),_0x6e3748&&(this['activeMarkers'][_0x57d8('0x60')](_0x499e56[_0x57d8('0x88')])?_0x244cc4['writer']['addClass'](_0x57d8('0x9f'),_0x332ee3):_0x244cc4[_0x57d8('0xd1')][_0x57d8('0x11e')](_0x57d8('0x9f'),_0x332ee3));for(const _0x3eba08 of _0x4880b3[_0x57d8('0x132')][_0x57d8('0x4c')](_0x499e56[_0x57d8('0x12a')])['getItems']())_0x244cc4[_0x57d8('0x7b')][_0x57d8('0xc2')](_0x3eba08,_0x50e6d8['name']);_0x244cc4['consumable'][_0x57d8('0xc2')](_0x499e56[_0x57d8('0x12a')],_0x50e6d8[_0x57d8('0xe9')]);};_0x4880b3[_0x57d8('0x3d')][_0x57d8('0x6a')](_0x57d8('0x79'))[_0x57d8('0x112')](_0x40560c=>{_0x40560c['on'](_0x57d8('0x100'),(_0x51ffd3,_0x15f8fc,_0x8bc93a)=>{_0x8bc93a[_0x57d8('0x3b')]['showSuggestionHighlights']&&_0x2ce34b({'showActiveMarkers':!0x1})(_0x51ffd3,_0x15f8fc,_0x8bc93a);},{'priority':'highest'});}),_0x4880b3['conversion'][_0x57d8('0x6a')](_0x57d8('0x79'))['markerToData']({'model':_0x57d8('0xac'),'view':(_0x4d212a,_0x348639)=>_0x348639[_0x57d8('0x3b')][_0x57d8('0x10c')]?null:{'group':_0x57d8('0xac'),'name':_0x4d212a['substr'](0xb)}}),_0x4880b3[_0x57d8('0x3d')]['for'](_0x57d8('0xa4'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4af0fd,{writer:_0x3cbdfe})=>{let _0x5646da='suggestion:'+_0x4af0fd['getAttribute']('suggestion-type')+':'+_0x4af0fd[_0x57d8('0x89')]('id');return _0x4af0fd['getAttribute'](_0x57d8('0xfb'))&&(_0x5646da+=':'+_0x4af0fd[_0x57d8('0x89')](_0x57d8('0xfb'))),_0x3cbdfe[_0x57d8('0x99')](_0x57d8('0xfd'),{'data-name':_0x5646da});}}),_0x4880b3[_0x57d8('0x3d')][_0x57d8('0x6a')]('upcast')[_0x57d8('0xe5')]({'view':_0x57d8('0xac')}),_0x4880b3[_0x57d8('0x3d')][_0x57d8('0x6a')](_0x57d8('0xc0'))[_0x57d8('0x112')](_0x3a5525=>{_0x3a5525['on'](_0x57d8('0x100'),_0x2ce34b(),{'priority':_0x57d8('0xb')});}),_0x4880b3[_0x57d8('0x3d')]['for'](_0x57d8('0xc0'))[_0x57d8('0x112')](_0x3f5e5f=>{_0x3f5e5f['on'](_0x57d8('0x2'),(_0x491708,_0x51cb70,_0x11dd9b)=>{const _0x454432=_0x11dd9b[_0x57d8('0xd3')]['markerNameToElements'](_0x51cb70[_0x57d8('0x88')]);if(_0x454432)for(const _0x39d9e2 of _0x454432)_0x39d9e2['getCustomProperty']('addHighlight')||(_0x11dd9b[_0x57d8('0xd1')][_0x57d8('0x11e')]([_0x57d8('0x49'),'ck-suggestion-marker-formatBlock',_0x57d8('0x9f')],_0x39d9e2),_0x11dd9b[_0x57d8('0xd1')][_0x57d8('0x41')]('data-suggestion',_0x39d9e2),_0x11dd9b[_0x57d8('0xd3')][_0x57d8('0xc6')](_0x39d9e2,_0x51cb70[_0x57d8('0x88')]));},{'priority':_0x57d8('0xb')});}),_0x4880b3[_0x57d8('0x132')][_0x57d8('0x30')][_0x57d8('0x119')](_0x263877=>{let _0x3c281d=!0x1;const _0x143e8b=Array[_0x57d8('0x135')](_0x4880b3[_0x57d8('0x132')][_0x57d8('0x30')][_0x57d8('0x44')][_0x57d8('0x125')]()),_0x1b0294=new Set();for(const {name:_0x4ad9d5,data:_0x51d874}of _0x143e8b){const {group:_0x366f54,type:_0x4a3290,id:_0x5eeec6}=this['_splitMarkerName'](_0x4ad9d5);if(_0x57d8('0xac')!==_0x366f54)continue;const _0x584668=this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x5eeec6);if(null!=_0x51d874['newRange']){_0x57d8('0xf1')==_0x4a3290&&(_0x3c281d=_0x3c281d||Mt(_0x51d874[_0x57d8('0x35')],_0x4ad9d5,_0x263877,_0x4880b3[_0x57d8('0x132')]['schema']));if(_0x51d874['newRange']['isCollapsed']||_0x57d8('0x39')==_0x51d874[_0x57d8('0x35')]['root']['rootName']||_0x57d8('0xf9')==_0x4a3290&&!Nt(_0x51d874[_0x57d8('0x35')])||_0x57d8('0xf0')==_0x4a3290&&!(!_t(_0x4c47b7=_0x51d874[_0x57d8('0x35')])&&!function(_0x16a689){return _0x16a689[_0x57d8('0xa6')][_0x57d8('0x12f')]==_0x16a689[_0x57d8('0x3c')][_0x57d8('0x11c')]&&_0x16a689[_0x57d8('0xa6')][_0x57d8('0x1e')];}(_0x4c47b7)))_0x263877[_0x57d8('0x31')](_0x4ad9d5),_0x3c281d=!0x0;else{if(!_0x584668||!_0x584668['isInContent'])continue;_0x1b0294[_0x57d8('0x112')](_0x584668);}}}var _0x4c47b7;return _0x1b0294['size']>0x0&&(_0x3c281d=!!this[_0x57d8('0xf2')](_0x1b0294)||_0x3c281d),_0x3c281d;}),_0x4880b3[_0x57d8('0x132')][_0x57d8('0x30')][_0x57d8('0x119')](_0x39e459=>{let _0x1c3072=!0x1;for(const _0x16ec6b of _0x4880b3[_0x57d8('0x132')]['document']['differ'][_0x57d8('0x28')]()){if(_0x57d8('0xc7')!=_0x16ec6b['type'])continue;const _0x237716=_0x16ec6b[_0x57d8('0xf3')][_0x57d8('0x27')](_0x16ec6b[_0x57d8('0x101')]);if(_0x237716[_0x57d8('0x1e')])for(const _0x246fcb of this[_0x57d8('0x7d')][_0x57d8('0x109')]()){if(_0x246fcb[_0x57d8('0x1')]||!_0x246fcb[_0x57d8('0xa')])continue;if(_0x57d8('0xf9')!=_0x246fcb[_0x57d8('0xc5')])continue;const _0x468e30=_0x246fcb['getFirstRange']();if(_0x468e30[_0x57d8('0xa6')][_0x57d8('0x12f')]!=_0x468e30[_0x57d8('0x3c')][_0x57d8('0x12f')]&&_0x468e30[_0x57d8('0x3c')][_0x57d8('0x9')](_0x16ec6b[_0x57d8('0xf3')])){const _0x27f816=_0x4880b3[_0x57d8('0x132')]['createRange'](_0x468e30[_0x57d8('0xa6')],_0x237716);_0x39e459[_0x57d8('0x90')](_0x246fcb[_0x57d8('0x47')](),{'range':_0x27f816}),_0x1c3072=!0x0;}}}return _0x1c3072;}),_0x4880b3[_0x57d8('0x132')][_0x57d8('0xc4')]['on'](_0x57d8('0x136'),(_0x4cdcf4,_0x2f2786,_0x308f2c)=>{if(null==_0x308f2c){const {id:_0x1226c4}=this[_0x57d8('0x111')](_0x2f2786[_0x57d8('0xe9')]),_0x3ecf9b=this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x1226c4);_0x3ecf9b&&_0x3ecf9b[_0x57d8('0xcd')](_0x2f2786['name']);}}),_0x4880b3[_0x57d8('0x132')][_0x57d8('0x30')]['on'](_0x57d8('0xbf'),()=>{const _0x47dae0=Array[_0x57d8('0x135')](_0x4880b3[_0x57d8('0x132')]['document'][_0x57d8('0x44')][_0x57d8('0x125')]())[_0x57d8('0x77')](_0x140df5=>_0x57d8('0xac')===this['_splitMarkerName'](_0x140df5[_0x57d8('0xe9')])[_0x57d8('0xdf')]);if(0x0===_0x47dae0['length'])return;_0x47dae0[_0x57d8('0x4d')]((_0x46767e,_0x2bc239)=>{const _0x4fb6ad=_0x46767e['data'][_0x57d8('0x10e')],_0x3a49f0=_0x2bc239['data'][_0x57d8('0x10e')];return null===_0x4fb6ad&&null===_0x3a49f0?0x0:null===_0x4fb6ad&&null!==_0x3a49f0?-0x1:null!==_0x4fb6ad&&null===_0x3a49f0?0x1:_0x4fb6ad[_0x57d8('0xa6')][_0x57d8('0x2a')](_0x3a49f0['start'])?-0x1:0x1;});const _0x1ec4c5=new Set(),_0x592388=new Set();for(const {name:_0x1dd537,data:_0x5dd1fc}of _0x47dae0){const {id:_0x509b9e}=this[_0x57d8('0x111')](_0x1dd537);if(null===_0x5dd1fc[_0x57d8('0x10e')]){const _0x492412=this[_0x57d8('0xea')](_0x1dd537);_0x592388[_0x57d8('0x112')](_0x492412);}else{const _0x3fc034=this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x509b9e);null!==_0x5dd1fc[_0x57d8('0x35')]||_0x3fc034[_0x57d8('0xa')]?(_0x1ec4c5[_0x57d8('0x112')](_0x3fc034[_0x57d8('0x15')]),_0x592388[_0x57d8('0x112')](_0x3fc034)):this[_0x57d8('0xbe')](_0x3fc034);}}_0x592388[_0x57d8('0x51')]>0x0&&this[_0x57d8('0xce')](_0x592388);for(const _0x276ecc of _0x1ec4c5)this['fire'](_0x57d8('0x78'),_0x276ecc);}),_0x4880b3[_0x57d8('0x132')]['on'](_0x57d8('0x5c'),(_0x120439,_0x14f22b)=>{const _0x2fc172=_0x14f22b[0x0];if(!this[_0x57d8('0x7d')][_0x57d8('0x51')])return;if(!_0x2fc172[_0x57d8('0x24')])return;if(_0x2fc172['batch'][_0x57d8('0x20')]||!_0x2fc172[_0x57d8('0x124')]['isLocal'])return;let _0x1494be,_0x4e64b7;switch(_0x2fc172[_0x57d8('0xc5')]){case _0x57d8('0xc7'):_0x1494be=_0x4880b3['model'][_0x57d8('0x5')](_0x2fc172[_0x57d8('0xf3')]),_0x4e64b7=_0x1494be['getShiftedBy'](_0x2fc172['howMany']);break;case _0x57d8('0x114'):_0x1494be=_0x4880b3[_0x57d8('0x132')][_0x57d8('0x5')](_0x2fc172[_0x57d8('0x91')]),_0x4e64b7=_0x4880b3['model'][_0x57d8('0x5')](_0x2fc172[_0x57d8('0x12b')]);break;case _0x57d8('0xcb'):_0x1494be=_0x4880b3[_0x57d8('0x132')]['createPositionAt'](_0x2fc172[_0x57d8('0x61')]),_0x4e64b7=_0x1494be['getShiftedBy'](_0x2fc172[_0x57d8('0x9e')]);break;default:return;}const _0x57b8de=_0x4880b3[_0x57d8('0x132')]['createRange'](_0x1494be,_0x4e64b7);_0x4880b3[_0x57d8('0x132')][_0x57d8('0x55')](()=>{for(const {suggestion:_0x4633a2,meta:_0x142c67}of this[_0x57d8('0x11')](_0x57b8de)){if(_0x4633a2[_0x57d8('0x1')])continue;if(_0x57d8('0xf1')==_0x4633a2[_0x57d8('0xc5')])continue;const _0x14f2fb=_0x4633a2[_0x57d8('0x6b')]&&_0x4633a2['data'][_0x57d8('0x45')];(_0x57d8('0xf9')!=_0x4633a2[_0x57d8('0xc5')]||_0x57d8('0x114')==_0x2fc172[_0x57d8('0xc5')]&&!_0x14f2fb)&&(_0x142c67['containsRangeInObject']||_0x57d8('0xc1')==_0x4633a2['type']&&_0x142c67[_0x57d8('0x2e')]||_0x4633a2[_0x57d8('0xcf')]()[_0x57d8('0xc')](_0x57b8de)&&this[_0x57d8('0x126')](_0x4633a2,_0x1494be,_0x4e64b7));}});},{'priority':'lowest'}),_0x4880b3[_0x57d8('0x132')]['on']('deleteContent',(_0x35b0a6,_0x32e363)=>{const _0x49751f=_0x32e363[0x0],_0x76c98f=_0x32e363[0x1];if(_0x76c98f&&_0x76c98f[_0x57d8('0x26')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x49751f[_0x57d8('0x8e')])return;const _0x400123=_0x4880b3['model'][_0x57d8('0xec')],{start:_0x471d25,end:_0x298f48}=_0x49751f['getFirstRange'](),_0x46fe37=_0x471d25[_0x57d8('0x82')]&&_0x400123['isLimit'](_0x471d25[_0x57d8('0x82')])?null:_0x400123['getNearestSelectionRange'](_0x471d25,_0x57d8('0xda')),_0x5d2efe=_0x298f48[_0x57d8('0x11c')]&&_0x400123['isLimit'](_0x298f48[_0x57d8('0x11c')])?null:_0x400123[_0x57d8('0x6e')](_0x298f48,'backward'),_0x546c08=_0x4880b3[_0x57d8('0x132')]['createRange'](_0x46fe37?_0x46fe37['start']:_0x471d25,_0x5d2efe?_0x5d2efe['end']:_0x298f48);_0x4880b3[_0x57d8('0x132')][_0x57d8('0x55')](_0x59c8ad=>{this[_0x57d8('0x121')](_0x546c08);const _0x4c95b2=_0x4880b3['model'][_0x57d8('0xec')][_0x57d8('0x6e')](_0x546c08[_0x57d8('0xa6')]);_0x49751f['is'](_0x57d8('0x75'))?_0x59c8ad[_0x57d8('0xd5')](_0x4c95b2):_0x49751f[_0x57d8('0x84')](_0x4c95b2);}),_0x35b0a6['stop']();},{'priority':_0x483807[_0x57d8('0x7e')]+0xa}),_0x4880b3[_0x57d8('0x132')]['on']('insertContent',(_0x430cf5,_0x5db50d)=>{const _0x51856d=_0x5db50d[_0x5db50d[_0x57d8('0x101')]-0x1];_0x51856d&&_0x51856d['forceDefaultExecution']||this[_0x57d8('0x32')]||this[_0x57d8('0xed')]['value']&&(_0x4880b3[_0x57d8('0x132')][_0x57d8('0x55')](()=>{let _0x1c6e33=_0x4880b3[_0x57d8('0x132')][_0x57d8('0x56')](_0x5db50d[0x0],_0x5db50d[0x1],_0x5db50d[0x2],{'forceDefaultExecution':!0x0});if(!_0x1c6e33)return;_0x430cf5[_0x57d8('0xa5')]=_0x1c6e33[_0x57d8('0x23')]();const _0x49b5b4=_0x1c6e33[_0x57d8('0x3c')][_0x57d8('0x11c')],_0x3e246c=_0x4880b3[_0x57d8('0x132')][_0x57d8('0xec')];_0x49b5b4&&_0x3e246c['isBlock'](_0x49b5b4)&&!_0x3e246c[_0x57d8('0xbc')](_0x49b5b4)&&(_0x1c6e33=_0x4880b3['model']['createRange'](_0x1c6e33[_0x57d8('0xa6')],_0x4880b3['model'][_0x57d8('0x5')](_0x49b5b4,_0x57d8('0x3c')))),this[_0x57d8('0xd')](_0x1c6e33);}),_0x430cf5[_0x57d8('0xb6')]());},{'priority':'high'}),this['editor']['commands'][_0x57d8('0x112')](_0x57d8('0xde'),this['trackChangesCommand']),this[_0x57d8('0x62')](_0x57d8('0xde'));const _0x58b83f=new _0x248555(_0x4880b3,this[_0x57d8('0x7d')]);_0x4880b3[_0x57d8('0xc9')][_0x57d8('0x112')](_0x57d8('0x11b'),_0x58b83f),this[_0x57d8('0x62')]('acceptSuggestion');const _0x74e2a4=new _0x569a01(_0x4880b3,this[_0x57d8('0x7d')]);_0x4880b3[_0x57d8('0xc9')]['add'](_0x57d8('0xff'),_0x74e2a4),this[_0x57d8('0x62')](_0x57d8('0xff')),_0x4880b3[_0x57d8('0xc9')][_0x57d8('0x112')](_0x57d8('0xa8'),new _0x44495e(_0x4880b3,_0x58b83f,this['_suggestions'])),this[_0x57d8('0x62')]('acceptAllSuggestions'),_0x4880b3[_0x57d8('0xc9')]['add'](_0x57d8('0xdc'),new _0x44495e(_0x4880b3,_0x74e2a4,this[_0x57d8('0x7d')])),this[_0x57d8('0x62')](_0x57d8('0xdc')),_0x4880b3[_0x57d8('0xc9')][_0x57d8('0x112')](_0x57d8('0x48'),new _0x462de7(_0x4880b3,_0x58b83f,this['_suggestions'])),this[_0x57d8('0x62')](_0x57d8('0x48')),_0x4880b3['commands'][_0x57d8('0x112')](_0x57d8('0xd6'),new _0x462de7(_0x4880b3,_0x74e2a4,this[_0x57d8('0x7d')])),this[_0x57d8('0x62')](_0x57d8('0xd6'));const _0x359c5f=_0x4880b3[_0x57d8('0x68')][_0x57d8('0x33')](_0x57d8('0xe1'));this[_0x57d8('0x65')](_0x359c5f,_0x57d8('0x12e'),(_0x114800,{threadId:_0x24b673})=>{const _0x2c19d=this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x24b673);_0x2c19d&&_0x2c19d['commentThread']&&0x1===_0x2c19d[_0x57d8('0x1c')]['length']&&this['_updateSuggestionData'](_0x24b673,{'hasComments':!0x0});},{'priority':_0x57d8('0xad')}),this[_0x57d8('0x65')](_0x359c5f,'removeComment',(_0x3f77ad,{threadId:_0x2c852d})=>{const _0xe2fcb4=this['_suggestions'][_0x57d8('0x33')](_0x2c852d);_0xe2fcb4&&_0xe2fcb4[_0x57d8('0x1c')]&&!_0xe2fcb4['commentThread'][_0x57d8('0x101')]&&this['_updateSuggestionData'](_0x2c852d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x23a2f8){if(this['_adapter'])throw new _0x11ad5e('track-changes-adapter-already-set',this);this[_0x57d8('0x118')]=_0x23a2f8;}get[_0x57d8('0x57')](){return this[_0x57d8('0x118')];}[_0x57d8('0x9a')]({skipNotAttached:_0x30ea25=!0x1,toJSON:_0x4b561f=!0x1}={}){const _0x2e5e08=[];for(const _0xe6d5ba of this[_0x57d8('0x7d')]['values']())_0x30ea25&&!_0xe6d5ba[_0x57d8('0xa')]||_0x2e5e08[_0x57d8('0x3f')](_0xe6d5ba);return _0x4b561f?_0x2e5e08[_0x57d8('0x87')](_0x543d32=>_0x543d32['toJSON']()):_0x2e5e08;}['getSuggestion'](_0x2ac3a6){const _0xb3344e=this[_0x57d8('0x7d')]['get'](_0x2ac3a6);if(!_0xb3344e)throw new _0x11ad5e(_0x57d8('0xd2'),this);return _0xb3344e;}[_0x57d8('0x130')](_0x4c16af){return this[_0x57d8('0x7d')]['has'](_0x4c16af);}[_0x57d8('0xe8')](_0x299771){const {authorId:_0xf13f04,id:_0x3d8cf6,attributes:_0x17c2f8}=_0x299771,[_0x2d28a6,_0x1905b2]=_0x299771[_0x57d8('0xc5')][_0x57d8('0x114')](':'),_0x3d9dd7=this[_0x57d8('0x7d')]['get'](_0x3d8cf6)||this['_createSuggestion'](_0x2d28a6,_0x1905b2,_0x3d8cf6,_0xf13f04,_0x17c2f8);if(this[_0x57d8('0xeb')](_0x3d9dd7),this[_0x57d8('0x6d')](_0x3d9dd7,_0x2d28a6,_0x1905b2||null,_0xf13f04),_0x3d9dd7[_0x57d8('0x14')]=_0x299771[_0x57d8('0x14')],_0x17c2f8&&_0x17c2f8[_0x57d8('0xe0')]){const _0x593c9b=_0x17c2f8[_0x57d8('0xe0')],_0x42b9d6=this['_getExternalAuthor'](_0x593c9b[_0x57d8('0x5a')]);_0x3d9dd7[_0x57d8('0xd4')]=_0x593c9b[_0x57d8('0x14')],_0x3d9dd7[_0x57d8('0xb1')]=_0x42b9d6,_0x3d9dd7['isExternal']=!0x0;}else _0x3d9dd7[_0x57d8('0xd4')]=_0x299771[_0x57d8('0x14')];switch(_0x299771[_0x57d8('0x6b')]&&(_0x3d9dd7[_0x57d8('0x6b')]=_0x299771[_0x57d8('0x6b')]),_0x299771[_0x57d8('0xf5')]&&(_0x3d9dd7[_0x57d8('0xf5')]=_0x299771['attributes']),this[_0x57d8('0x118')]&&this[_0x57d8('0x118')][_0x57d8('0xd8')]||(_0x3d9dd7[_0x57d8('0x52')]=!0x0),this['_suggestionState'][_0x57d8('0x33')](_0x3d9dd7)){case'notReady':this[_0x57d8('0x93')][_0x57d8('0x11a')](_0x3d9dd7,_0x57d8('0xe3'));break;case _0x57d8('0x50'):_0x3d9dd7[_0x57d8('0xa')]?(this[_0x57d8('0x93')][_0x57d8('0x11a')](_0x3d9dd7,'ready'),this[_0x57d8('0xfa')]('suggestionLoaded',_0x3d9dd7)):this[_0x57d8('0x93')]['set'](_0x3d9dd7,_0x57d8('0x10'));}return _0x3d9dd7;}['acceptSuggestion'](_0x2dfa3a){this[_0x57d8('0x26')](()=>{this[_0x57d8('0xdb')][_0x57d8('0x132')]['change'](()=>{for(const _0x23fcfa of _0x2dfa3a[_0x57d8('0x63')]())_0x23fcfa[_0x57d8('0x7')]();});});}[_0x57d8('0xff')](_0x558192){this[_0x57d8('0x26')](()=>{this['editor'][_0x57d8('0x132')][_0x57d8('0x55')](()=>{for(const _0x41b04a of _0x558192[_0x57d8('0x63')]())_0x41b04a['discard']();});});}['enableCommand'](_0xc5abe3,_0x2745d1){const _0xdd082f=this['editor'][_0x57d8('0xc9')][_0x57d8('0x33')](_0xc5abe3);if(!_0xdd082f)throw new _0x11ad5e(_0x57d8('0x123'),this,{'commandName':_0xc5abe3});this[_0x57d8('0x2c')][_0x57d8('0x112')](_0xdd082f),_0x2745d1&&_0xdd082f['on']('execute',(_0xdcad2f,_0x4b2f58)=>{this[_0x57d8('0xed')][_0x57d8('0x8c')]&&(this['_isForcedDefaultExecutionBlock']||_0x4b2f58['length']>0x0&&_0x4b2f58[_0x4b2f58[_0x57d8('0x101')]-0x1]&&_0x4b2f58[_0x4b2f58[_0x57d8('0x101')]-0x1][_0x57d8('0x26')]||(_0x2745d1((..._0xebf19a)=>_0xdd082f[_0x57d8('0x12d')](..._0xebf19a,{'forceDefaultExecution':!0x0}),..._0x4b2f58),_0xdcad2f[_0x57d8('0xb6')]()));},{'priority':_0x57d8('0xb')});}[_0x57d8('0x26')](_0x2dece9){let _0x3894d5,_0x178332;const _0x171232=this['_isForcedDefaultExecutionBlock'];this[_0x57d8('0x32')]=!0x0;try{_0x3894d5=_0x2dece9();}catch(_0x1ccf31){_0x178332=_0x1ccf31;}return _0x171232||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x178332&&_0x11ad5e['rethrowUnexpectedError'](_0x178332,this),_0x3894d5;}[_0x57d8('0xd')](_0x40b2d3,_0xfc4245=null,_0x58252b={}){if(_0x40b2d3[_0x57d8('0x8e')])return null;const _0x3b297c=this[_0x57d8('0xdb')][_0x57d8('0x68')][_0x57d8('0x33')]('Users')['me'];for(const {suggestion:_0x145e81,meta:_0x13cd6a}of this[_0x57d8('0x11')](_0x40b2d3,_0x57d8('0xc1')))if(_0x13cd6a[_0x57d8('0x2e')]){if(!_0x13cd6a[_0x57d8('0xaa')]){if(!this['_mergeNestedSuggestions']&&_0x13cd6a[_0x57d8('0x120')])continue;return _0x145e81;}if(_0xfc4245==_0x145e81[_0x57d8('0x36')]){const _0x79de2b=_0x145e81[_0x57d8('0xcf')]();return _0x79de2b[_0x57d8('0xa6')]['isEqual'](_0x40b2d3[_0x57d8('0x3c')])?this[_0x57d8('0x127')](_0x145e81,this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x40b2d3['start'],_0x79de2b[_0x57d8('0x3c')])):this['_setSuggestionRange'](_0x145e81,this['_model'][_0x57d8('0x5f')](_0x79de2b[_0x57d8('0xa6')],_0x40b2d3[_0x57d8('0x3c')])),_0x145e81;}}const _0xbbadf8=_0x3645d4(),_0x43bbc6=_0x3b297c['id'],_0x38ff96=_0xfc4245?'insertion:'+_0xfc4245:_0x57d8('0xc1'),_0x4f04ed=this[_0x57d8('0x71')]({'id':_0xbbadf8,'type':_0x38ff96,'createdAt':new Date(),'authorId':_0x43bbc6,'attributes':_0x58252b});return this[_0x57d8('0x105')](_0x38ff96,_0xbbadf8,_0x43bbc6,_0x40b2d3),_0x4f04ed;}['markMultiRangeInsertion'](_0x46c0f6,_0x50e5ec=_0x57d8('0xf8'),_0x356252={}){const _0x49dd4f=this[_0x57d8('0xdb')]['plugins'][_0x57d8('0x33')]('Users')['me'],_0x1343ea=this[_0x57d8('0xd7')][_0x57d8('0x2b')]('insertion',_0x50e5ec,_0x57d8('0x9d'));for(const _0x4f2098 of this['getSuggestions']())if(_0x4f2098[_0x57d8('0xb1')]['id']==_0x49dd4f['id']&&_0x57d8('0xc1')==_0x4f2098[_0x57d8('0xc5')]&&_0x4f2098[_0x57d8('0x36')]==_0x50e5ec&&(_0x1343ea(_0x4f2098['getRanges'](),_0x46c0f6)||_0x1343ea(_0x46c0f6,_0x4f2098[_0x57d8('0xe2')]()))){for(const _0x4b5a0e of _0x46c0f6)_0x4f2098[_0x57d8('0x54')](_0x4b5a0e);return _0x4f2098;}if(this['_mergeNestedSuggestions'])for(const _0x1fb073 of _0x46c0f6)for(const {suggestion:_0x290881,meta:_0x3d4104}of this[_0x57d8('0x11')](_0x1fb073,_0x57d8('0xc1'))){if(!_0x3d4104[_0x57d8('0x2e')])continue;let _0x2fd7d5=!0x0;for(const _0x427a04 of _0x290881['getRanges']())for(const _0x33d2d0 of _0x46c0f6)if(!_0x427a04['containsRange'](_0x33d2d0)){_0x2fd7d5=!0x1;break;}if(_0x2fd7d5)return _0x290881;}const _0x1e5d60=_0x3645d4(),_0x27a366=_0x49dd4f['id'],_0x5242b7=_0x57d8('0x9c')+_0x50e5ec,_0x3588e2=this[_0x57d8('0x71')]({'id':_0x1e5d60,'type':_0x5242b7,'createdAt':new Date(),'authorId':_0x27a366,'attributes':_0x356252});for(const _0x585bb4 of _0x46c0f6)this[_0x57d8('0x105')](_0x5242b7,_0x1e5d60,_0x27a366,_0x585bb4,_0x159187[_0x57d8('0x58')]());return _0x3588e2;}[_0x57d8('0x98')](_0x447d74,_0x51f974,_0x5c0821=null,_0x34cee9={}){if(_0x5c0821=_0x5c0821||$t(_0x51f974),_0x447d74[_0x57d8('0x8e')])return null;if(_0x57d8('0x3')===this[_0x57d8('0x69')]){const _0x4d8aa0=this[_0x57d8('0xd7')]['getSuggestionCallback'](_0x57d8('0xf1'),_0x5c0821,'accept');return this[_0x57d8('0x26')](()=>_0x4d8aa0([_0x447d74],_0x51f974,_0x34cee9)),null;}const _0x496ec8=this[_0x57d8('0xdb')][_0x57d8('0x68')]['get'](_0x57d8('0x43'))['me'],_0x2f0d8e=[];if(_0x57d8('0x29')!==this[_0x57d8('0x69')])for(const {suggestion:_0x118e1f,meta:_0x5a7aba}of this[_0x57d8('0x11')](_0x447d74,_0x57d8('0xc1')))_0x5a7aba[_0x57d8('0x2e')]&&!_0x5a7aba[_0x57d8('0x42')]&&_0x2f0d8e[_0x57d8('0x3f')](..._0x118e1f[_0x57d8('0xe2')]());const _0x432660=function(_0x343c1a,_0xd43b4b){const _0xb4bbea=[];for(const _0x4c4bda of _0xd43b4b){const _0x21ef9b=_0x343c1a[_0x57d8('0x131')](_0x4c4bda);_0x21ef9b&&_0xb4bbea['push'](_0x21ef9b);}return _0xb4bbea;}(_0x447d74,_0x2f0d8e),_0x2f5f04=function(_0x4e9c3b,_0x40cdfc){const _0x29088f=[_0x4e9c3b];for(const _0x4f0b13 of _0x40cdfc){let _0x45fad7=0x0;for(;_0x45fad7<_0x29088f[_0x57d8('0x101')];){const _0x584606=_0x29088f[_0x45fad7][_0x57d8('0xa9')](_0x4f0b13);_0x29088f['splice'](_0x45fad7,0x1,..._0x584606),_0x45fad7+=_0x584606[_0x57d8('0x101')];}}return _0x29088f;}(_0x447d74,_0x2f0d8e);_0x432660[_0x57d8('0x101')]&&this[_0x57d8('0x95')][_0x57d8('0x55')](()=>{for(const _0x1abef9 of _0x432660){const _0x5785cf=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf1'),_0x5c0821,_0x57d8('0x7'));this[_0x57d8('0x26')](()=>_0x5785cf([_0x1abef9],_0x51f974,_0x34cee9));}});for(const _0x577afd of _0x2f5f04){let _0x29c451=null,_0x5cb555=_0x577afd[_0x57d8('0xa6')],_0x4f4c99=_0x577afd[_0x57d8('0x3c')];for(const {suggestion:_0xf1f401,meta:_0x1af77a}of this[_0x57d8('0x11')](_0x577afd,_0x57d8('0xf1'))){if(!_0x1af77a[_0x57d8('0x2e')])continue;if(_0xf1f401[_0x57d8('0x36')]!=_0x5c0821)continue;const _0x57b46d=_0xf1f401[_0x57d8('0xcf')]();if(_0x57b46d['containsRange'](_0x577afd,!0x0))return null;_0x5cb555=_0x5cb555['isBefore'](_0x57b46d[_0x57d8('0xa6')])?_0x5cb555:_0x57b46d[_0x57d8('0xa6')],_0x4f4c99=_0x4f4c99[_0x57d8('0x94')](_0x57b46d[_0x57d8('0x3c')])?_0x4f4c99:_0x57b46d[_0x57d8('0x3c')],_0x29c451?_0x57b46d['start']['isBefore'](_0x29c451[_0x57d8('0xcf')]()[_0x57d8('0xa6')])?(_0x29c451[_0x57d8('0x2f')](),_0x29c451=_0xf1f401):_0xf1f401[_0x57d8('0x2f')]():_0x29c451=_0xf1f401;}const _0x58d0d7=this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x5cb555,_0x4f4c99);if(_0x29c451)this['_setSuggestionRange'](_0x29c451,_0x58d0d7);else{const _0x4ce145=_0x3645d4(),_0x52e5a4=_0x496ec8['id'];this[_0x57d8('0x71')]({'id':_0x4ce145,'type':_0x57d8('0xdd')+_0x5c0821,'data':_0x51f974,'createdAt':new Date(),'authorId':_0x52e5a4,'attributes':_0x34cee9}),this[_0x57d8('0x105')](_0x57d8('0xdd')+_0x5c0821,_0x4ce145,_0x52e5a4,_0x58d0d7);}}return null;}[_0x57d8('0x134')](_0x4b0494,_0x37fa28,_0x41d7c7=[],_0x33d068=null,_0x69e9a8={}){_0x37fa28[_0x57d8('0xb4')]||(_0x37fa28['formatGroupId']=_0x37fa28[_0x57d8('0x116')]),_0x37fa28['multipleBlocks']=_0x4b0494['is'](_0x57d8('0x85')),_0x33d068=_0x33d068||$t(_0x37fa28);const _0x270084=_0x41d7c7[_0x57d8('0x87')](_0x12fb0f=>Rt(_0x12fb0f,this[_0x57d8('0x95')])),_0x38432b=_0x4b0494['is']('range')?_0x4b0494:Rt(_0x4b0494,this[_0x57d8('0x95')]);if('never'===this[_0x57d8('0x69')]){const _0x447732=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf9'),_0x33d068,_0x57d8('0x7'));return this[_0x57d8('0x26')](()=>_0x447732([_0x38432b],_0x37fa28,_0x69e9a8)),null;}_0x270084[_0x57d8('0x3f')](_0x38432b);let _0x21c07e=!0x0;for(const _0x30178c of _0x270084)if(!this[_0x57d8('0xa2')](_0x30178c)){_0x21c07e=!0x1;break;}if(_0x21c07e&&_0x57d8('0x29')!==this['_trackFormatChanges']){const _0x246686=this[_0x57d8('0xd7')][_0x57d8('0x2b')]('formatBlock',_0x33d068,_0x57d8('0x7'));return this['forceDefaultExecution'](()=>_0x246686([_0x38432b],_0x37fa28,_0x69e9a8)),null;}let _0x375c6d=null,_0x10ec6d=_0x38432b[_0x57d8('0xa6')],_0x1450f6=_0x38432b[_0x57d8('0x3c')];for(const {suggestion:_0x5ada4d,meta:_0x5d541c}of this[_0x57d8('0x11')](_0x38432b,'formatBlock')){if(!_0x5d541c[_0x57d8('0x2e')]||_0x5d541c[_0x57d8('0xaa')]||_0x5d541c[_0x57d8('0x120')]||_0x5d541c['isInsideObject'])continue;if(_0x5ada4d[_0x57d8('0x6b')][_0x57d8('0xb4')]!=_0x37fa28[_0x57d8('0xb4')])continue;const _0x8cd5f9=_0x5ada4d[_0x57d8('0xcf')]();if(_0x5ada4d[_0x57d8('0x36')]==_0x33d068){if(_0x8cd5f9['containsRange'](_0x38432b,!0x0))return null;_0x10ec6d=_0x10ec6d[_0x57d8('0x2a')](_0x8cd5f9[_0x57d8('0xa6')])?_0x10ec6d:_0x8cd5f9[_0x57d8('0xa6')],_0x1450f6=_0x1450f6['isAfter'](_0x8cd5f9['end'])?_0x1450f6:_0x8cd5f9[_0x57d8('0x3c')],_0x375c6d?_0x8cd5f9[_0x57d8('0xa6')][_0x57d8('0x2a')](_0x375c6d['getFirstRange']()[_0x57d8('0xa6')])?(_0x375c6d[_0x57d8('0x2f')](),_0x375c6d=_0x5ada4d):_0x5ada4d[_0x57d8('0x2f')]():_0x375c6d=_0x5ada4d;}else{const _0x3c697a=_0x38432b[_0x57d8('0x131')](_0x8cd5f9);this[_0x57d8('0x133')](_0x5ada4d,_0x3c697a);}}const _0x3d9abc=this[_0x57d8('0xdb')][_0x57d8('0x68')][_0x57d8('0x33')](_0x57d8('0x43'))['me'],_0x218007=_0x3645d4(),_0x3b5be8=_0x3d9abc['id'];if(_0x375c6d)return this[_0x57d8('0x127')](_0x375c6d,this['_model'][_0x57d8('0x5f')](_0x10ec6d,_0x1450f6)),_0x375c6d;{const _0x11db48=this['_setSuggestionData']({'id':_0x218007,'type':_0x57d8('0xba')+_0x33d068,'data':_0x37fa28,'createdAt':new Date(),'authorId':_0x3b5be8,'attributes':_0x69e9a8});return this[_0x57d8('0x105')]('formatBlock:'+_0x33d068,_0x218007,_0x3b5be8,this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x10ec6d,_0x1450f6)),_0x11db48;}}[_0x57d8('0x76')](_0x44e2f3,_0x8ad3c0,_0x2824cc=[],_0x30633c=null,_0x194a75={}){_0x8ad3c0[_0x57d8('0xb4')]||(_0x8ad3c0[_0x57d8('0xb4')]=_0x8ad3c0[_0x57d8('0x116')]);const _0x5f244a=_0x44e2f3[0x0];_0x8ad3c0[_0x57d8('0x45')]=_0x5f244a['is']('range'),_0x30633c=_0x30633c||$t(_0x8ad3c0);const _0x557e5a=_0x2824cc['map'](_0x41300e=>Rt(_0x41300e,this[_0x57d8('0x95')])),_0x1cf53b=_0x5f244a['is'](_0x57d8('0x85'))?_0x44e2f3:_0x44e2f3[_0x57d8('0x87')](_0x556731=>Rt(_0x556731,this[_0x57d8('0x95')]));if(_0x57d8('0x3')===this['_trackFormatChanges']){const _0x4c762f=this[_0x57d8('0xd7')][_0x57d8('0x2b')]('formatBlock',_0x30633c,_0x57d8('0x7'));return this[_0x57d8('0x26')](()=>_0x4c762f(_0x1cf53b,_0x8ad3c0,_0x194a75)),null;}_0x557e5a['push'](..._0x1cf53b);let _0x8b35ef=!0x0;for(const _0x1c3c28 of _0x557e5a)if(!this[_0x57d8('0xa2')](_0x1c3c28)){_0x8b35ef=!0x1;break;}if(_0x8b35ef&&'always'!==this[_0x57d8('0x69')]){const _0x205199=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf9'),_0x30633c,_0x57d8('0x7'));return this[_0x57d8('0x26')](()=>_0x205199(_0x1cf53b,_0x8ad3c0,_0x194a75)),null;}const _0x3e641d=this[_0x57d8('0xdb')][_0x57d8('0x68')][_0x57d8('0x33')](_0x57d8('0x43'))['me'];for(const _0x2ba9c1 of this[_0x57d8('0x9a')]()){if(_0x2ba9c1[_0x57d8('0xb1')]['id']!=_0x3e641d['id'])continue;if(_0x57d8('0xf9')!=_0x2ba9c1[_0x57d8('0xc5')]||_0x2ba9c1[_0x57d8('0x6b')][_0x57d8('0xb4')]!=_0x8ad3c0[_0x57d8('0xb4')])continue;const _0x542b21=_0x2ba9c1['subType']==_0x30633c;for(let _0x470100=0x0;_0x470100<_0x1cf53b['length'];_0x470100++){const _0x16928b=_0x1cf53b[_0x470100];for(const _0x53cc58 of _0x2ba9c1[_0x57d8('0x6c')]()){const _0x2d962e=_0x53cc58['getRange']();if(_0x16928b[_0x57d8('0x9')](_0x2d962e)){_0x542b21?(_0x1cf53b[_0x57d8('0x18')](_0x470100,0x1),_0x470100--):_0x2ba9c1[_0x57d8('0x31')](_0x53cc58[_0x57d8('0xe9')]);break;}}}}if(0x0==_0x1cf53b['length'])return null;const _0x5ebd9f=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf9'),_0x30633c,'join');for(const _0x3c0986 of this['getSuggestions']())if(_0x3c0986[_0x57d8('0xb1')]['id']==_0x3e641d['id']&&_0x57d8('0xf9')==_0x3c0986[_0x57d8('0xc5')]&&_0x3c0986[_0x57d8('0x6b')][_0x57d8('0xb4')]==_0x8ad3c0[_0x57d8('0xb4')]&&_0x3c0986['subType']==_0x30633c&&(_0x5ebd9f(_0x3c0986[_0x57d8('0xe2')](),_0x1cf53b)||_0x5ebd9f(_0x1cf53b,_0x3c0986[_0x57d8('0xe2')]()))){for(const _0x2ec5c4 of _0x1cf53b)_0x3c0986[_0x57d8('0x54')](_0x2ec5c4);return _0x3c0986;}const _0x442504=_0x3645d4(),_0x4c0551=_0x3e641d['id'],_0x43be62=_0x57d8('0xba')+_0x30633c,_0x37c0f1=this['_setSuggestionData']({'id':_0x442504,'type':_0x43be62,'data':_0x8ad3c0,'createdAt':new Date(),'authorId':_0x4c0551,'attributes':_0x194a75});for(const _0x2d5725 of _0x1cf53b)this[_0x57d8('0x105')](_0x43be62,_0x442504,_0x4c0551,_0x2d5725,_0x159187[_0x57d8('0x58')]());return _0x37c0f1;}[_0x57d8('0x121')](_0x40084c,_0x4379aa=null,_0x2deb6a={}){if(_0x40084c[_0x57d8('0x8e')])return null;const _0x10b818=this[_0x57d8('0xdb')]['plugins'][_0x57d8('0x33')](_0x57d8('0x43'))['me'],_0x119547=new _0x4c845b(_0x40084c['start'],_0x40084c[_0x57d8('0x3c')]);for(const {suggestion:_0x1d08c7,meta:_0x3d96f9}of this[_0x57d8('0x11')](_0x119547,'insertion'))if(_0x3d96f9['isOwn']&&!_0x3d96f9[_0x57d8('0xaa')]){if(_0x1d08c7[_0x57d8('0x1')]){const _0x1256c2=_0x1d08c7[_0x57d8('0xe2')]()[_0x57d8('0x77')](_0x4cb493=>_0x57d8('0x39')!=_0x4cb493[_0x57d8('0xa1')][_0x57d8('0xf')]);_0x1256c2[_0x57d8('0x128')](_0xeb1f04=>_0x119547[_0x57d8('0xc')](_0xeb1f04,!0x0))&&_0x1d08c7[_0x57d8('0x1a')]();if(_0x1256c2[_0x57d8('0x0')](_0xa0d100=>_0xa0d100[_0x57d8('0xc')](_0x119547,!0x0))){const _0x30cd5a=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf0'),_0x4379aa,_0x57d8('0x7'));return this[_0x57d8('0x26')](()=>_0x30cd5a([_0x119547],null,_0x2deb6a)),null;}}else{const _0x559e38=_0x119547[_0x57d8('0x131')](_0x1d08c7[_0x57d8('0xcf')]());null!==_0x559e38&&_0x1d08c7[_0x57d8('0x107')]([_0x559e38],null,_0x2deb6a);}}if(_0x119547['detach'](),_0x119547[_0x57d8('0x8e')]||_0x57d8('0x39')==_0x119547[_0x57d8('0xa1')][_0x57d8('0xf')])return null;let _0x5ef4d7=null,_0x374435=_0x119547[_0x57d8('0xa6')],_0x11b705=_0x119547[_0x57d8('0x3c')];for(const {suggestion:_0x44cd4f,meta:_0x12afac}of this[_0x57d8('0x11')](_0x119547,_0x57d8('0xf0')))if(_0x12afac[_0x57d8('0x2e')]){if(_0x44cd4f['isMultiRange']&&this[_0x57d8('0x83')]){let _0x31ed3f=!0x0;for(const _0xdf286d of _0x44cd4f['getRanges']()){if(_0xdf286d['containsRange'](_0x119547,!0x0))return _0x44cd4f;_0x119547['containsRange'](_0xdf286d)||(_0x31ed3f=!0x1);}_0x31ed3f&&_0x44cd4f['discard']();}else{const _0x311a8a=_0x44cd4f[_0x57d8('0xcf')]();if(_0x311a8a[_0x57d8('0xc')](_0x119547,!0x0)){if(!this[_0x57d8('0x83')]&&_0x12afac[_0x57d8('0x120')])continue;return _0x44cd4f;}_0x374435=_0x374435[_0x57d8('0x2a')](_0x311a8a[_0x57d8('0xa6')])?_0x374435:_0x311a8a[_0x57d8('0xa6')],_0x11b705=_0x11b705[_0x57d8('0x94')](_0x311a8a[_0x57d8('0x3c')])?_0x11b705:_0x311a8a['end'],_0x5ef4d7?_0x311a8a[_0x57d8('0xa6')][_0x57d8('0x2a')](_0x5ef4d7[_0x57d8('0xcf')]()[_0x57d8('0xa6')])?(_0x5ef4d7[_0x57d8('0x2f')](),_0x5ef4d7=_0x44cd4f):_0x44cd4f[_0x57d8('0x2f')]():_0x5ef4d7=_0x44cd4f;}}if(_0x5ef4d7)return this['_setSuggestionRange'](_0x5ef4d7,this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x374435,_0x11b705)),_0x5ef4d7;{const _0x45bb23=_0x3645d4(),_0xe1aa0c=this['_model'][_0x57d8('0x5f')](_0x374435,_0x11b705),_0x14e836=_0x10b818['id'],_0x2f4ffa=_0x4379aa?_0x57d8('0x10f')+_0x4379aa:_0x57d8('0xf0'),_0x2ce551=this[_0x57d8('0x71')]({'id':_0x45bb23,'type':_0x2f4ffa,'createdAt':new Date(),'authorId':_0x14e836,'attributes':_0x2deb6a});return this[_0x57d8('0x105')](_0x2f4ffa,_0x45bb23,_0x14e836,_0xe1aa0c),_0x2ce551;}}[_0x57d8('0xe6')](_0x39b6a9,_0x5e37e6=_0x57d8('0xf8'),_0x4256bf={}){const _0x4baa33=this['editor']['plugins'][_0x57d8('0x33')](_0x57d8('0x43'))['me'],_0x56c34f=_0x39b6a9[_0x57d8('0x87')](_0x2a2f26=>new _0x4c845b(_0x2a2f26[_0x57d8('0xa6')],_0x2a2f26[_0x57d8('0x3c')])),_0x203138=new Set();for(const _0x307ff9 of _0x56c34f)for(const {suggestion:_0x177605,meta:_0x3a2cf7}of this[_0x57d8('0x11')](_0x307ff9,_0x57d8('0xc1')))_0x3a2cf7['isOwn']&&!_0x3a2cf7['isNextTo']&&_0x203138[_0x57d8('0x112')](_0x177605);for(const _0x1f9cad of _0x203138)if(_0x1f9cad['isMultiRange']){const _0x5e5bcb=_0x1f9cad['getRanges']();(!_0x1f9cad[_0x57d8('0xf5')]||!_0x1f9cad[_0x57d8('0xf5')][_0x57d8('0x8b')])&&(_0x5e5bcb[_0x57d8('0x128')](_0x1875d2=>_0x56c34f['some'](_0x53496a=>_0x53496a[_0x57d8('0xc')](_0x1875d2,!0x0)))&&_0x1f9cad[_0x57d8('0x1a')]());if(_0x56c34f['every'](_0x43a474=>_0x5e5bcb[_0x57d8('0x0')](_0x28995d=>_0x28995d[_0x57d8('0xc')](_0x43a474,!0x0)))){const _0x461acd=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf0'),_0x5e37e6,_0x57d8('0x7'));return this['forceDefaultExecution'](()=>_0x461acd(_0x39b6a9,null,_0x4256bf)),null;}}else{const _0xaf283a=_0x1f9cad['getFirstRange']();_0x56c34f[_0x57d8('0x0')](_0x835885=>_0x835885[_0x57d8('0xc')](_0xaf283a,!0x0))&&_0x1f9cad[_0x57d8('0x1a')]();if(_0x56c34f[_0x57d8('0x128')](_0x5484c1=>_0xaf283a[_0x57d8('0xc')](_0x5484c1,!0x0))){const _0x6cc086=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e37e6,_0x57d8('0x7'));return this[_0x57d8('0x26')](()=>_0x6cc086(_0x56c34f,null,_0x4256bf)),null;}}const _0x549b33=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf0'),_0x5e37e6,_0x57d8('0x9d'));let _0x52776a=null;for(const _0x133241 of this[_0x57d8('0x9a')]())if(_0x133241[_0x57d8('0xb1')]['id']==_0x4baa33['id']&&_0x133241['isInContent']&&'deletion'==_0x133241[_0x57d8('0xc5')]&&_0x133241['subType']==_0x5e37e6&&(_0x549b33(_0x133241['getRanges'](),_0x56c34f)||_0x549b33(_0x56c34f,_0x133241[_0x57d8('0xe2')]()))){if(_0x52776a){if(_0x133241[_0x57d8('0x1c')]&&_0x133241['commentThread'][_0x57d8('0x101')])continue;for(const _0x4edb40 of _0x133241[_0x57d8('0xe2')]())_0x52776a[_0x57d8('0xf6')](_0x4edb40)||_0x52776a[_0x57d8('0x54')](_0x4edb40);_0x133241[_0x57d8('0x2f')]();}else{_0x52776a=_0x133241;for(const _0x5418fa of _0x56c34f)_0x133241['isIntersectingWithRange'](_0x5418fa)||_0x133241['addRange'](_0x5418fa);}}if(_0x52776a)return _0x52776a;_0x203138[_0x57d8('0x73')]();for(const _0x59cbb7 of _0x56c34f)for(const {suggestion:_0x3739cc,meta:_0x3b52cc}of this[_0x57d8('0x11')](_0x59cbb7,'deletion'))_0x3b52cc['isOwn']&&_0x203138['add'](_0x3739cc);for(const _0x2889de of _0x203138){const _0x5c366d=_0x2889de[_0x57d8('0xe2')]();if(!_0x4256bf||!_0x4256bf['skipNestingCheck']){if(_0x56c34f['every'](_0xa5bbbd=>_0x5c366d['some'](_0x30e9f6=>_0x30e9f6[_0x57d8('0xc')](_0xa5bbbd,!0x0))))return _0x2889de;}(!_0x2889de[_0x57d8('0xf5')]||!_0x2889de[_0x57d8('0xf5')][_0x57d8('0x8b')])&&(_0x5c366d[_0x57d8('0x128')](_0x1d0fb5=>_0x56c34f[_0x57d8('0x0')](_0x1a1a25=>_0x1a1a25['containsRange'](_0x1d0fb5,!0x0)))&&_0x2889de[_0x57d8('0x1a')]());}const _0x2552fd=_0x3645d4(),_0x57104b=_0x4baa33['id'],_0x1e3d23=_0x57d8('0x10f')+_0x5e37e6,_0x31626f=this[_0x57d8('0x71')]({'id':_0x2552fd,'type':_0x1e3d23,'createdAt':new Date(),'authorId':_0x57104b,'attributes':_0x4256bf});for(const _0x160b62 of _0x56c34f)_0x160b62[_0x57d8('0x46')](),_0x160b62['isCollapsed']||_0x57d8('0x39')==_0x160b62[_0x57d8('0xa1')][_0x57d8('0xf')]||this['_addSuggestionMarker'](_0x1e3d23,_0x2552fd,_0x57104b,_0x160b62,_0x159187[_0x57d8('0x58')]());return _0x31626f;}[_0x57d8('0x127')](_0x2c7c02,_0x1bd90d){const _0xe0e087=_0x2c7c02[_0x57d8('0x47')]();this['_model'][_0x57d8('0x55')](_0x18f74b=>{_0x18f74b[_0x57d8('0x90')](_0xe0e087,{'range':_0x1bd90d});});}[_0x57d8('0xeb')](_0x45b41c){const _0x53db89=_0x45b41c['id'],_0x3ce6d7=this[_0x57d8('0xdb')]['config'][_0x57d8('0x33')](_0x57d8('0xa0'));this[_0x57d8('0x86')]['hasCommentThread'](_0x53db89)||this[_0x57d8('0x86')][_0x57d8('0x19')]({'channelId':_0x3ce6d7,'threadId':_0x53db89,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2a5576=this[_0x57d8('0x86')][_0x57d8('0x113')](_0x53db89);_0x2a5576[_0x57d8('0x59')](_0x57d8('0x97')),_0x2a5576[_0x57d8('0x97')]=!0x1,_0x45b41c[_0x57d8('0x1c')]=_0x2a5576;}[_0x57d8('0x6d')](_0x28c0e9,_0x59e030,_0x5e22b5,_0x3f63d2){if(_0x28c0e9[_0x57d8('0xc5')]!=_0x59e030||_0x28c0e9[_0x57d8('0x36')]!=_0x5e22b5||_0x28c0e9[_0x57d8('0x9b')]['id']!=_0x3f63d2)throw this[_0x57d8('0xdb')][_0x57d8('0xfe')](_0x57d8('0x104')),new _0x11ad5e(_0x57d8('0x104'),this);}['_cutOutSuggestionMarker'](_0x6b79ca,_0x4e7561){const _0x2b7c92=_0x6b79ca[_0x57d8('0xcf')]();if(_0x4e7561['isEqual'](_0x2b7c92))_0x6b79ca['removeMarkers']();else{if(_0x2b7c92[_0x57d8('0xc')](_0x4e7561)){const _0xc456b2=this[_0x57d8('0x95')][_0x57d8('0x5')](_0x4e7561[_0x57d8('0xa6')][_0x57d8('0x11c')],_0x57d8('0x3c'));this[_0x57d8('0x127')](_0x6b79ca,this['_model'][_0x57d8('0x5f')](_0x2b7c92[_0x57d8('0xa6')],_0xc456b2));const _0x53b6a4=_0x3645d4(),_0x5c3a24=_0x6b79ca[_0x57d8('0x9b')]['id'],_0x460bdb=_0x6b79ca[_0x57d8('0xc5')]+':'+_0x6b79ca[_0x57d8('0x36')];this['_setSuggestionData']({'id':_0x53b6a4,'type':_0x460bdb,'createdAt':new Date(),'authorId':_0x5c3a24,'data':_0x6b79ca['data'],'attributes':_0x6b79ca[_0x57d8('0xf5')]});const _0x26f3cd=this[_0x57d8('0x95')][_0x57d8('0x5')](_0x4e7561[_0x57d8('0x3c')]['parent'],_0x57d8('0x7c')),_0x2f1605=this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x26f3cd,_0x2b7c92[_0x57d8('0x3c')]);this[_0x57d8('0x105')](_0x460bdb,_0x53b6a4,_0x5c3a24,_0x2f1605);}else{if(_0x2b7c92['containsPosition'](_0x4e7561['start'])){const _0x5c9fc9=this[_0x57d8('0x95')][_0x57d8('0x5')](_0x4e7561[_0x57d8('0xa6')][_0x57d8('0x11c')],_0x57d8('0x3c'));this[_0x57d8('0x127')](_0x6b79ca,this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x2b7c92[_0x57d8('0xa6')],_0x5c9fc9));}else{const _0x56443b=this[_0x57d8('0x95')][_0x57d8('0x5')](_0x4e7561['end'][_0x57d8('0x12f')],_0x57d8('0x7c'));this[_0x57d8('0x127')](_0x6b79ca,this['_model'][_0x57d8('0x5f')](_0x56443b,_0x2b7c92['end']));}}}}[_0x57d8('0xa2')](_0x3c4071){for(const {suggestion:_0x29d6fe,meta:_0x3dc130}of this[_0x57d8('0x11')](_0x3c4071,_0x57d8('0xc1'))){if(!_0x3dc130['isOwn'])continue;const _0x56fc67=_0x29d6fe[_0x57d8('0xe2')]();for(const _0x262962 of _0x56fc67)if(!_0x3c4071[_0x57d8('0xa9')](_0x262962)[_0x57d8('0x101')])return!0x0;}return!0x1;}[_0x57d8('0x67')](_0xcde678){const _0x5bbed7=this['editor']['plugins'][_0x57d8('0x33')](_0x57d8('0x43'))[_0x57d8('0x115')](_0xcde678);if(!_0x5bbed7)throw new _0x11ad5e(_0x57d8('0xa3'),this);return _0x5bbed7;}[_0x57d8('0xcc')](_0x4c5b26){const _0x5797e9=this['editor'][_0x57d8('0x68')][_0x57d8('0x33')](_0x57d8('0x43')),_0x30a01e=_0x463637(_0x57d8('0xee')+_0x4c5b26),_0x22f7da=_0x5797e9[_0x57d8('0x115')](_0x30a01e);return _0x22f7da||_0x5797e9[_0x57d8('0x34')]({'id':_0x30a01e,'name':_0x4c5b26});}[_0x57d8('0x108')](_0x46cac3,_0x64376b,_0x500906,_0x143d11,_0xa49edd){const _0xfc9980=this[_0x57d8('0x67')](_0x143d11),_0xda893a=this[_0x57d8('0xd7')][_0x57d8('0xb3')](_0x46cac3,_0x64376b,_0x500906,_0xfc9980,_0xa49edd,_0x401365=>this[_0x57d8('0x10b')](_0x500906,{'attributes':_0x401365}));return this[_0x57d8('0x65')](_0xda893a,_0x57d8('0x7'),()=>{this[_0x57d8('0x10b')](_0x500906,{'state':'accepted'});},{'priority':'high'}),this[_0x57d8('0x65')](_0xda893a,_0x57d8('0x1a'),()=>{this[_0x57d8('0x10b')](_0x500906,{'state':_0x57d8('0x6')});},{'priority':_0x57d8('0xb')}),this[_0x57d8('0x7d')][_0x57d8('0x11a')](_0x500906,_0xda893a),this[_0x57d8('0x93')][_0x57d8('0x11a')](_0xda893a,_0x57d8('0x25')),_0xda893a;}['_splitMarkerName'](_0x139564){const _0x569949=_0x139564['split'](':');return{'group':_0x569949[0x0],'type':_0x569949[0x1],'subType':_0x569949[_0x57d8('0x101')]>=0x5?_0x569949[0x2]:null,'id':_0x569949['length']<0x5?_0x569949[0x2]:_0x569949[0x3],'authorId':_0x569949[_0x57d8('0x101')]<0x5?_0x569949[0x3]:_0x569949[0x4],'markerCount':0x6==_0x569949[_0x57d8('0x101')]?_0x569949[0x5]:null};}['_breakSuggestionMarker'](_0x2b604f,_0x2c8b3f,_0x18af46){const _0x532a6e=_0x2b604f['getFirstRange'](),_0x1ef5ac=_0x532a6e[_0x57d8('0xa6')],_0xbdb443=_0x532a6e[_0x57d8('0x3c')];this[_0x57d8('0x127')](_0x2b604f,this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x1ef5ac,_0x2c8b3f));const _0x597ea4=_0x3645d4(),_0x1dbace=_0x2b604f[_0x57d8('0x9b')]['id'],_0xebd02c=_0x2b604f[_0x57d8('0xc5')]+(_0x2b604f[_0x57d8('0x36')]?':'+_0x2b604f[_0x57d8('0x36')]:'');this[_0x57d8('0x71')]({'id':_0x597ea4,'type':_0xebd02c,'createdAt':new Date(),'authorId':_0x1dbace,'originalSuggestionId':_0x2b604f['id'],'attributes':_0x2b604f[_0x57d8('0xf5')],'data':_0x2b604f[_0x57d8('0x6b')]}),_0x57d8('0xf9')==_0x2b604f[_0x57d8('0xc5')]&&(_0x18af46=this[_0x57d8('0x95')][_0x57d8('0x5d')](_0x18af46[_0x57d8('0x12f')])),this[_0x57d8('0x105')](_0xebd02c,_0x597ea4,_0x1dbace,this['_model'][_0x57d8('0x5f')](_0x18af46,_0xbdb443));}[_0x57d8('0x11')](_0x37eac3,_0x30cff3=null){const _0x51b4af=[],_0xe96bee=this['_model'][_0x57d8('0xec')],_0x5cfbc1=this[_0x57d8('0xdb')][_0x57d8('0x68')]['get'](_0x57d8('0x43'))['me'];for(const _0x2d520f of this[_0x57d8('0x9a')]())if(_0x2d520f[_0x57d8('0xa')]&&(!_0x30cff3||_0x2d520f[_0x57d8('0xc5')]==_0x30cff3))for(const _0x4625d7 of _0x2d520f['getRanges']()){const _0x2a40ca=_0x37eac3['start']['isEqual'](_0x4625d7[_0x57d8('0x3c')])||_0x37eac3['end'][_0x57d8('0x9')](_0x4625d7['start']);if(_0x2a40ca||_0x37eac3[_0x57d8('0x131')](_0x4625d7)){const _0x4f3de3=_0x37eac3['containsRange'](_0x4625d7)&&Bt(_0xe96bee,_0x4625d7['start'],_0x37eac3),_0x446769=_0x4625d7[_0x57d8('0xc')](_0x37eac3)&&Bt(_0xe96bee,_0x37eac3['start'],_0x4625d7);_0x51b4af[_0x57d8('0x3f')]({'suggestion':_0x2d520f,'meta':{'isOwn':_0x5cfbc1==_0x2d520f[_0x57d8('0xb1')],'isNextTo':_0x2a40ca,'isInsideObject':_0x4f3de3,'containsRangeInObject':_0x446769}});break;}}return _0x51b4af;}[_0x57d8('0x105')](_0x25e719,_0x6a7ccd,_0xb878fe,_0x1821a0,_0x4ec26f){this[_0x57d8('0x95')][_0x57d8('0x55')](_0x2599bb=>{let _0x2f9a46='suggestion:'+_0x25e719+':'+_0x6a7ccd+':'+_0xb878fe;_0x4ec26f&&(_0x2f9a46=_0x2f9a46+':'+_0x4ec26f),_0x2599bb['addMarker'](_0x2f9a46,{'range':_0x1821a0,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x57d8('0xbe')](_0x52201d){const _0x182c1a=_0x52201d['previous'],_0x103f07=_0x52201d[_0x57d8('0xf7')];_0x52201d[_0x57d8('0x72')]=null,null!=_0x182c1a&&(_0x182c1a['next']=null),_0x52201d[_0x57d8('0xf7')]=null,null!=_0x103f07&&(_0x103f07['previous']=null),_0x57d8('0x4f')==this['_suggestionState'][_0x57d8('0x33')](_0x52201d)&&(this[_0x57d8('0x93')][_0x57d8('0x11a')](_0x52201d,_0x57d8('0x10')),this[_0x57d8('0xfa')](_0x57d8('0xf4'),_0x52201d,_0x182c1a,_0x103f07));}[_0x57d8('0x71')](_0x15f122){const _0x54c58d=_0x15f122['id'],_0x555a8a=this[_0x57d8('0xe8')](_0x15f122);if(this[_0x57d8('0x118')]&&this[_0x57d8('0x118')][_0x57d8('0xd8')]){const _0x4c24a3=this['editor']['plugins']['get'](_0x57d8('0xca')),_0x6b3ae1=_0x555a8a[_0x57d8('0xe')],_0x299c8d=_0x555a8a[_0x57d8('0x36')]?_0x555a8a['type']+':'+_0x555a8a['subType']:_0x555a8a['type'],_0x2cc181=this[_0x57d8('0xdb')][_0x57d8('0x8a')],_0x5bedd7=_0x4c24a3[_0x57d8('0x112')](_0x5af54b(_0x2cc181,'PENDING_ACTION_SUGGESTION')),_0x351557={'id':_0x54c58d,'type':_0x299c8d,'hasComments':_0x6b3ae1,'data':_0x15f122[_0x57d8('0x6b')]||null,'originalSuggestionId':_0x15f122['originalSuggestionId']||null,'attributes':_0x555a8a[_0x57d8('0xf5')]};this['_adapter'][_0x57d8('0xd8')](_0x351557)['then'](_0x56d296=>{_0x555a8a[_0x57d8('0x52')]=!0x0,_0x4c24a3['remove'](_0x5bedd7),_0x56d296&&_0x56d296[_0x57d8('0x14')]&&(this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x54c58d)['createdAt']=_0x56d296[_0x57d8('0x14')]);})[_0x57d8('0x10a')](_0x12948b=>{throw _0x2fcea7(_0x57d8('0x117')),this[_0x57d8('0xdb')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x555a8a[_0x57d8('0x1a')]();}),_0x555a8a['stopListening'](),this[_0x57d8('0x7d')][_0x57d8('0x92')](_0x555a8a['id']),this[_0x57d8('0x93')]['delete'](_0x555a8a),_0x12948b;});}return _0x555a8a;}[_0x57d8('0x10b')](_0x2b68b1,_0x17d9b8){const _0x371ef1=this[_0x57d8('0xdb')][_0x57d8('0x68')][_0x57d8('0x33')]('PendingActions'),_0x4fb98a=this[_0x57d8('0x6f')](_0x2b68b1);if(this['_adapter']&&this[_0x57d8('0x118')]['updateSuggestion']){if(_0x4fb98a[_0x57d8('0x52')]){const _0xf7a049=_0x371ef1[_0x57d8('0x112')](_0x5af54b(this[_0x57d8('0xdb')][_0x57d8('0x8a')],_0x57d8('0x4b')));this[_0x57d8('0x118')][_0x57d8('0xb9')](_0x2b68b1,_0x17d9b8)[_0x57d8('0xab')](()=>{_0x371ef1[_0x57d8('0x3a')](_0xf7a049);});}else _0x4fb98a['on'](_0x57d8('0xbd'),()=>{this[_0x57d8('0x10b')](_0x2b68b1,_0x17d9b8);});}}[_0x57d8('0x110')](_0x1d8b61){if(!this[_0x57d8('0x118')]||!this[_0x57d8('0x118')][_0x57d8('0x6f')])throw new _0x11ad5e(_0x57d8('0x4a'),this);return this['_adapter'][_0x57d8('0x6f')](_0x1d8b61);}[_0x57d8('0xea')](_0x24c75a){const {id:_0x13444e,type:_0x3e200f,subType:_0x5dcacd,authorId:_0x592192}=this[_0x57d8('0x111')](_0x24c75a),_0x209596=this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x13444e)||this[_0x57d8('0x108')](_0x3e200f,_0x5dcacd,_0x13444e,_0x592192,{});switch(this[_0x57d8('0x6d')](_0x209596,_0x3e200f,_0x5dcacd,_0x592192),this[_0x57d8('0x93')]['get'](_0x209596)){case _0x57d8('0x25'):this['_getSuggestionData'](_0x13444e)['then'](_0x4d5dd5=>{let _0x5be7f0=Promise[_0x57d8('0x102')]();_0x4d5dd5[_0x57d8('0xe')]&&(_0x5be7f0=this[_0x57d8('0x86')][_0x57d8('0x8f')]({'channelId':this[_0x57d8('0xdb')]['config'][_0x57d8('0x33')](_0x57d8('0xa0')),'threadId':_0x13444e})),_0x5be7f0['then'](()=>{this[_0x57d8('0xe8')](_0x4d5dd5)[_0x57d8('0x52')]=!0x0;});}),this[_0x57d8('0x93')][_0x57d8('0x11a')](_0x209596,_0x57d8('0x50'));break;case _0x57d8('0x10'):this[_0x57d8('0x10b')](_0x13444e,{'state':_0x57d8('0xe7')});case'dataReady':this[_0x57d8('0x93')][_0x57d8('0x11a')](_0x209596,'ready'),this[_0x57d8('0xfa')]('suggestionLoaded',_0x209596);break;case _0x57d8('0x4f'):this[_0x57d8('0xfa')](_0x57d8('0x78'),_0x209596);}return _0x209596[_0x57d8('0xcd')](_0x24c75a),_0x209596;}[_0x57d8('0xce')](_0xd3c613){const _0x594cf7=Array[_0x57d8('0x135')](_0xd3c613)[_0x57d8('0x77')](_0xb87b7b=>!_0xb87b7b[_0x57d8('0x1')]),_0x3f7dad=this[_0x57d8('0x9a')]({'skipNotAttached':!0x0})[_0x57d8('0x77')](_0x3cf5aa=>!_0x3cf5aa[_0x57d8('0x1')]),_0x55bcd4=_0x3f7dad[_0x57d8('0x77')](_0x648754=>!_0xd3c613[_0x57d8('0x5e')](_0x648754)),_0x4eff54=new Map(_0x3f7dad['map'](_0x42b23f=>[_0x42b23f,this[_0x57d8('0xd7')]['getSuggestionCallback'](_0x42b23f[_0x57d8('0xc5')],_0x42b23f['subType'],'chain')])),_0x3f9c04=new Map(_0x3f7dad[_0x57d8('0x87')](_0x46f702=>[_0x46f702,_0x46f702[_0x57d8('0xcf')]()])),_0x223391=new Set(),_0xd3a8e7=new Set();for(let _0x19b151=0x0;_0x19b151<_0x594cf7[_0x57d8('0x101')];_0x19b151++)_0x3e805a(_0x594cf7[_0x19b151],_0x594cf7,_0x19b151+0x1);for(let _0x10d2e9=0x0;_0x10d2e9<_0x594cf7[_0x57d8('0x101')];_0x10d2e9++)_0x3e805a(_0x594cf7[_0x10d2e9],_0x55bcd4,0x0);for(let _0x179ef2=0x0;_0x179ef2<_0x594cf7[_0x57d8('0x101')];_0x179ef2++){const _0x3d7bd9=_0x594cf7[_0x179ef2];!_0xd3a8e7[_0x57d8('0x5e')](_0x3d7bd9)&&_0x3d7bd9['previous']&&(_0x3d7bd9[_0x57d8('0x72')]['next']===_0x3d7bd9&&(_0x3d7bd9[_0x57d8('0x72')][_0x57d8('0xf7')]=null),_0x3d7bd9[_0x57d8('0x72')]=null),!_0x223391[_0x57d8('0x5e')](_0x3d7bd9)&&_0x3d7bd9['next']&&(_0x3d7bd9['next'][_0x57d8('0x72')]===_0x3d7bd9&&(_0x3d7bd9[_0x57d8('0xf7')][_0x57d8('0x72')]=null),_0x3d7bd9[_0x57d8('0xf7')]=null);}function _0x3e805a(_0x10b3cb,_0x2441c5,_0x3ed1de){for(let _0x1c5986=_0x3ed1de;_0x1c5986<_0x2441c5['length'];_0x1c5986++){const _0x57c6b7=_0x39a107(_0x10b3cb,_0x2441c5[_0x1c5986]);_0x57c6b7&&(_0x57c6b7[0x0][_0x57d8('0xf7')]=_0x57c6b7[0x1],_0x57c6b7[0x1][_0x57d8('0x72')]=_0x57c6b7[0x0],_0x223391[_0x57d8('0x112')](_0x57c6b7[0x0]),_0xd3a8e7['add'](_0x57c6b7[0x1]));}}function _0x39a107(_0x470a39,_0x2f17eb){if(_0x470a39[_0x57d8('0xb1')]['id']!==_0x2f17eb['author']['id'])return null;const _0x435d07=_0x4eff54[_0x57d8('0x33')](_0x470a39)(_0x470a39,_0x2f17eb,_0x3f9c04['get'](_0x470a39),_0x3f9c04['get'](_0x2f17eb));if(!_0x435d07)return null;return _0x4eff54[_0x57d8('0x33')](_0x2f17eb)(_0x470a39,_0x2f17eb,_0x3f9c04[_0x57d8('0x33')](_0x470a39),_0x3f9c04['get'](_0x2f17eb))?_0x435d07[0x1][_0x57d8('0x1c')]&&_0x435d07[0x1][_0x57d8('0x1c')][_0x57d8('0x101')]?null:_0x435d07:null;}}[_0x57d8('0xf2')](_0x182c1f){const _0x3356b4=Array['from'](_0x182c1f),_0x34411f=this[_0x57d8('0x9a')]({'skipNotAttached':!0x0}),_0x5b1144=_0x34411f[_0x57d8('0x77')](_0x11e56e=>!_0x182c1f[_0x57d8('0x5e')](_0x11e56e)),_0x41935b=new Map(_0x3356b4[_0x57d8('0x87')](_0x34b1e9=>[_0x34b1e9,this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x34b1e9[_0x57d8('0xc5')],_0x34b1e9[_0x57d8('0x36')],_0x57d8('0x9d'))])),_0x1ff25b=new Map(_0x34411f[_0x57d8('0x87')](_0x341af0=>[_0x341af0,_0x341af0[_0x57d8('0xe2')]()]));for(let _0x2beb06=0x0;_0x2beb06<_0x3356b4[_0x57d8('0x101')];_0x2beb06++){if(_0xb81ee(this,_0x3356b4[_0x2beb06],_0x3356b4,_0x2beb06+0x1))return!0x0;}for(let _0x3b8bf6=0x0;_0x3b8bf6<_0x3356b4[_0x57d8('0x101')];_0x3b8bf6++){if(_0xb81ee(this,_0x3356b4[_0x3b8bf6],_0x5b1144,0x0))return!0x0;}return!0x1;function _0xb81ee(_0x2ba1c0,_0x566595,_0x1f2c60,_0x443b1c){for(let _0x52c38f=_0x443b1c;_0x52c38f<_0x1f2c60[_0x57d8('0x101')];_0x52c38f++){const _0x13cf30=_0x1f2c60[_0x52c38f];if(_0x13cf30['type']!==_0x566595[_0x57d8('0xc5')]||_0x13cf30[_0x57d8('0xb1')]['id']!==_0x566595[_0x57d8('0xb1')]['id']||_0x13cf30[_0x57d8('0x36')]!==_0x566595[_0x57d8('0x36')])continue;const _0x345d60=_0x41935b[_0x57d8('0x33')](_0x566595),_0xe29c32=_0x1ff25b['get'](_0x566595),_0x54226d=_0x1ff25b['get'](_0x13cf30),_0x2b90c6=_0x566595[_0x57d8('0x1c')]&&_0x566595[_0x57d8('0x1c')][_0x57d8('0x101')],_0x58f0ac=_0x13cf30[_0x57d8('0x1c')]&&_0x13cf30['commentThread'][_0x57d8('0x101')];if(!_0x2b90c6&&_0x345d60(_0x54226d,_0xe29c32))return _0x2ba1c0[_0x57d8('0x81')](_0x13cf30,_0x566595),_0x1ff25b[_0x57d8('0x92')](_0x566595),!0x0;if(!_0x58f0ac&&_0x345d60(_0xe29c32,_0x54226d))return _0x2ba1c0[_0x57d8('0x81')](_0x566595,_0x13cf30),_0x1ff25b[_0x57d8('0x92')](_0x13cf30),!0x0;}return!0x1;}}[_0x57d8('0x81')](_0x5e8bd5,_0x1989b2){if(_0x5e8bd5[_0x57d8('0x1')])for(const _0x59f735 of _0x1989b2[_0x57d8('0xe2')]())_0x5e8bd5[_0x57d8('0x54')](_0x59f735);else{const _0x8e0959=_0x1989b2[_0x57d8('0xcf')]()['end'];this['_setSuggestionRange'](_0x5e8bd5,this['_model']['createRange'](_0x5e8bd5[_0x57d8('0xcf')]()['start'],_0x8e0959));}_0x1989b2[_0x57d8('0x2f')]();}}class Dt{constructor(_0x299d1b){this[_0x57d8('0xaf')]=_0x299d1b,this[_0x57d8('0x95')]=_0x299d1b[_0x57d8('0x132')],this[_0x57d8('0xb7')]=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}[_0x57d8('0xb3')](_0x50b44e,_0x1f740d,_0x54fc7f,_0x14b8fa,_0x2abf64,_0x16f25a){return new _0x159187(this['_model'],{'type':_0x50b44e,'subType':_0x1f740d,'id':_0x54fc7f,'author':_0x14b8fa,'creator':_0x14b8fa,'attributes':_0x2abf64,'onAttributesChange':_0x16f25a,'onAccept':(..._0x28498f)=>this['getSuggestionCallback'](_0x50b44e,_0x1f740d,_0x57d8('0x7'))(..._0x28498f),'onDiscard':(..._0xa37758)=>this[_0x57d8('0x2b')](_0x50b44e,_0x1f740d,'discard')(..._0xa37758)});}[_0x57d8('0x12')](_0x5988ae,_0x3aac84,_0x6e5491,_0x61e4dd){const _0x5b6779=_0x5988ae+':'+_0x3aac84+':'+_0x6e5491;this[_0x57d8('0xb7')]['set'](_0x5b6779,_0x61e4dd);}['getSuggestionCallback'](_0x23789e,_0x2eef30,_0x150baf){const _0x48e3df=_0x23789e+':'+_0x2eef30+':'+_0x150baf;return this['_customCallbacks']['get'](_0x48e3df)||this[_0x57d8('0x12c')][_0x57d8('0x33')](_0x23789e+':'+_0x150baf);}[_0x57d8('0x37')](){const _0x1cf9b5=()=>{},_0x591379=_0x5321da=>{_0x5321da[_0x57d8('0x4d')]((_0x250ef0,_0x4d95de)=>_0x250ef0[_0x57d8('0xa6')][_0x57d8('0x2a')](_0x4d95de[_0x57d8('0xa6')])?0x1:-0x1),this[_0x57d8('0x95')][_0x57d8('0x55')](_0x1ac071=>{for(const _0x5038df of _0x5321da){let _0x4e00f4;_0x4e00f4=_0x5038df['end'][_0x57d8('0x1e')]&&_0x5038df['end'][_0x57d8('0x12f')]==_0x5038df[_0x57d8('0xa6')][_0x57d8('0x82')]?_0x1ac071[_0x57d8('0xc3')](_0x5038df[_0x57d8('0xa6')][_0x57d8('0x82')],'on'):_0x1ac071[_0x57d8('0xc3')](_0x5038df),this[_0x57d8('0x95')][_0x57d8('0xb8')](_0x4e00f4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x428d56=(_0x1ec52b,_0x108fc7)=>{this['_model'][_0x57d8('0x55')](_0x4eb1c3=>{const {commandName:_0xe469e0,commandParams:_0x16cc03=[]}=_0x108fc7,_0x75828e=_0x1ec52b[_0x57d8('0x87')](_0x2136c9=>(_t(_0x2136c9)&&(_0x2136c9=this['_model'][_0x57d8('0x5f')](_0x2136c9['end'])),_0x2136c9))['filter'](_0x3ce0b2=>_0x57d8('0x39')!==_0x3ce0b2[_0x57d8('0xa1')][_0x57d8('0xf')]);if(_0x75828e[_0x57d8('0x101')]<0x1)return;const _0x3a64c7=Array['from'](this[_0x57d8('0x95')]['document']['selection']['getRanges']())[_0x57d8('0x87')](_0x35c434=>_0x4c845b['fromRange'](_0x35c434));_0x4eb1c3[_0x57d8('0xd5')](_0x75828e);for(const _0x562393 of this['_editor'][_0x57d8('0xc9')]['commands']())_0x562393[_0x57d8('0xb5')]();_0x16cc03[_0x57d8('0x3f')]({'forceDefaultExecution':!0x0}),this[_0x57d8('0xaf')]['execute'](_0xe469e0,..._0x16cc03);const _0x5e9d26=_0x3a64c7[_0x57d8('0x77')](_0x3d48dc=>'$graveyard'!=_0x3d48dc[_0x57d8('0xa1')][_0x57d8('0xf')]);_0x5e9d26['length']>0x0&&_0x4eb1c3[_0x57d8('0xd5')](_0x5e9d26);for(const _0x1ea1ae of _0x3a64c7)_0x1ea1ae['detach']();});},_0x185cfc=(_0x21e159,_0x427b97)=>0x1==_0x21e159['length']&&0x1==_0x427b97[_0x57d8('0x101')]&&_0x21e159[0x0][_0x57d8('0x3c')][_0x57d8('0x9')](_0x427b97[0x0]['start']),_0x106e9a=(_0x5bd558,_0x445f58,_0x5e5248,_0x352752)=>xt(_0x5bd558,_0x445f58,_0x5e5248,_0x352752,this[_0x57d8('0x95')])?[_0x5bd558,_0x445f58]:xt(_0x445f58,_0x5bd558,_0x352752,_0x5e5248,this[_0x57d8('0x95')])?[_0x445f58,_0x5bd558]:null;this['_defaultCallbacks'][_0x57d8('0x11a')](_0x57d8('0x10d'),_0x1cf9b5),this[_0x57d8('0x12c')][_0x57d8('0x11a')]('insertion:discard',_0x591379),this[_0x57d8('0x12c')][_0x57d8('0x11a')](_0x57d8('0x64'),_0x185cfc),this[_0x57d8('0x12c')][_0x57d8('0x11a')]('insertion:chain',_0x106e9a),this[_0x57d8('0x12c')]['set']('deletion:accept',_0x591379),this[_0x57d8('0x12c')][_0x57d8('0x11a')]('deletion:discard',_0x1cf9b5),this[_0x57d8('0x12c')][_0x57d8('0x11a')](_0x57d8('0x21'),_0x185cfc),this[_0x57d8('0x12c')][_0x57d8('0x11a')](_0x57d8('0x7a'),_0x106e9a),this[_0x57d8('0x12c')]['set'](_0x57d8('0xe4'),_0x428d56),this[_0x57d8('0x12c')]['set'](_0x57d8('0x8d'),_0x1cf9b5),this['_defaultCallbacks'][_0x57d8('0x11a')]('formatInline:join',_0x185cfc),this[_0x57d8('0x12c')]['set'](_0x57d8('0x40'),_0x1cf9b5),this[_0x57d8('0x12c')]['set'](_0x57d8('0x1f'),_0x428d56),this['_defaultCallbacks']['set'](_0x57d8('0xef'),_0x1cf9b5),this['_defaultCallbacks'][_0x57d8('0x11a')](_0x57d8('0x103'),_0x185cfc),this[_0x57d8('0x12c')][_0x57d8('0x11a')](_0x57d8('0xfc'),_0x1cf9b5);}}function Bt(_0x2b44a5,_0x56250d,_0x43999b){for(const _0x3bed17 of _0x56250d[_0x57d8('0x12f')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3bed17[_0x57d8('0xa1')]==_0x3bed17)return!0x1;if(!_0x43999b['containsItem'](_0x3bed17))return!0x1;if(_0x2b44a5[_0x57d8('0xbc')](_0x3bed17)||_0x2b44a5[_0x57d8('0xb2')](_0x3bed17))return!0x0;}return!0x1;}function _t(_0x4510ef){return _0x4510ef[_0x57d8('0x3c')][_0x57d8('0x12f')]==_0x4510ef[_0x57d8('0xa6')]['nodeAfter']&&_0x4510ef[_0x57d8('0x3c')][_0x57d8('0x38')];}function Mt(_0x56be2b,_0x1ff872,_0xaae1b6,_0xfe631a){const _0x1b3674=_0x478217=>!_0x478217[_0x57d8('0x12a')]['is'](_0x57d8('0x4'))&&!_0xfe631a[_0x57d8('0xbc')](_0x478217[_0x57d8('0x12a')]),_0x5c7ff7=_0x56be2b[_0x57d8('0xa6')][_0x57d8('0x74')](_0x1b3674),_0x39f826=_0x56be2b[_0x57d8('0x3c')][_0x57d8('0x74')](_0x1b3674,{'direction':'backward'});return(!_0x56be2b[_0x57d8('0xa6')][_0x57d8('0x9')](_0x5c7ff7)||!_0x56be2b[_0x57d8('0x3c')][_0x57d8('0x9')](_0x39f826))&&(_0x5c7ff7[_0x57d8('0x2a')](_0x39f826)?_0xaae1b6['updateMarker'](_0x1ff872,{'range':_0xaae1b6[_0x57d8('0x5f')](_0x5c7ff7,_0x39f826)}):_0xaae1b6[_0x57d8('0x31')](_0x1ff872),!0x0);}function $t(_0x2030a1){return _0x463637(_0x2030a1);}function Nt(_0x2eb862){const _0x17e1d3=_0x2eb862[_0x57d8('0xa6')]['nodeAfter'];return _0x17e1d3&&_0x17e1d3['is'](_0x57d8('0x106'));}function Rt(_0x5b9cb8,_0x184e84){const _0x5ef018=_0x184e84[_0x57d8('0xec')]['isObject'](_0x5b9cb8)||_0x184e84[_0x57d8('0xec')][_0x57d8('0x22')](_0x5b9cb8);return _0x184e84[_0x57d8('0x5f')](_0x184e84['createPositionAt'](_0x5b9cb8,_0x57d8('0x4e')),_0x5ef018?_0x184e84['createPositionAfter'](_0x5b9cb8):_0x184e84['createPositionAt'](_0x5b9cb8,_0x57d8('0x3c')));}function xt(_0x7e8e63,_0x1c4bf,_0x15e183,_0x10f4a6,_0xa9838f){if(_0x15e183['end']['isEqual'](_0x10f4a6['start']))return!0x0;if(_0x7e8e63[_0x57d8('0xc5')]!=_0x1c4bf[_0x57d8('0xc5')])return!0x1;if(!_0x15e183[_0x57d8('0x3c')][_0x57d8('0x1d')](_0x10f4a6[_0x57d8('0xa6')]))return!0x1;const _0x5456a5=_0xa9838f['createRange'](_0x15e183[_0x57d8('0x3c')],_0x10f4a6[_0x57d8('0xa6')])[_0x57d8('0xc8')]();for(const _0x119345 of _0x5456a5)if(['elementStart','elementEnd']['includes'](_0x119345[_0x57d8('0xc5')])&&_0xa9838f[_0x57d8('0xec')][_0x57d8('0xb2')](_0x119345[_0x57d8('0x12a')]))return!0x1;return!0x0;}
23
+ const _0x268f=['isEqual','enableCommand','deleteContent','isIntersectingWithRange','group','change','track-changes-suggestion-data-mismatch','removeMarker','getWalker','deletion','getMarkers','isTouching','consume','track-changes-user-not-found','isAtEnd','_getExternalAuthor','getChanges','suggestionChanged','options','insertion','containsRangeInObject','author','addComment','subType','track-changes-adapter-already-set','_onDiscard','_defaultCallbacks','length','_trackFormatChanges','rootName','_suggestionFactory','addRange','rejected','authorName','_addSuggestionMarker','removeComment','low','_findSuggestions','formatInline:discard','getShiftedBy','_suggestions','acceptAllSuggestions','discard','formatInline:accept','_commentsRepository','_mergeNestedSuggestions','getChangedMarkers','hasCommentThread','join','oldRange','isAfter','commentThread','multipleBlocks','getRanges','high','stopListening','originalSuggestionId','deletion:chain','Users','_registerDefaultCallbacks','normal','_joinSuggestions','insertContent','createSelection','then','_getAuthorFromId','insertion:discard','fire','discardAllSuggestions','notReady','collaboration.channelId','execute','hasSuggestion','move','insertion:','deletion:discard','editor','external:','setAttribute','createPositionBefore','schema','nodeBefore','getRange','removeMarker:suggestion:formatBlock','selection','$graveyard','registerPostFixer','getAttribute','getLastMatchingPosition','nodeAfter','after','start','setSelection','fetchCommentThread','getAncestors','data-suggestion','createdAt','addClass','createPositionAfter','PendingActions','suggestion-type','authoredAt','rethrowUnexpectedError','isObject','CommentsRepository','enableReadOnlyMode','discardSuggestion','map','registerCustomCallback','dataDowncast','dataReady','formatBlock:discard','get','locale','some','hasComments','getFirstRange','init','createRange','createRangeIn','before','_suggestionState','isInsideObject','_cutOutSuggestionMarker','suggestionUnloaded','formatBlock','updateSuggestion','includes','createElement','toJSON','creator','size','_getSuggestionData','batch','widget','never','splice','isCollapsed','formatInline:chain','markerToHighlight','define','getAllAdjacentSuggestions','suggestion','moveTargetPosition','$textProxy','plugins','forceDefaultExecution','getFirstMarker','values','@external','formatBlock:join','ready','ck-suggestion-marker--active','removed','position','_enabledCommands','highest','markerToData','formatBlock:','add','commands','markers','mapper','formatBlock:chain','howMany','bindElementToMarker','isUndo','_addThreadToSuggestion','addHighlight','_customCallbacks','containsItem','markInsertion','dataToMarker','value','markDeletion','update:suggestion','document','parent','set','ck-suggestion-marker-','markerReady','isDocumentOperation','root','elementEnd','adapter','isExternal','enqueueChange','_handleNewSuggestionMarker','fromCharCode','getIntersection','_setSuggestionData','conversion','ck-suggestion-marker-formatBlock','addSuggestionData','ck-suggestion-marker','previous','isAtStart','remove','sort','splitPosition','type','isRemovable','next','_setSuggestionRange','addUser','from','removeMarkers','item','model','config','isLimit','markMultiRangeInsertion','upcast','split','editingDowncast','insertion:accept','setTo','every','_saved','getItems','accepted','chain','insertion:chain','applyOperation','range','documentSelection','formatGroupId','for','createPositionAt','_splitMarkerName','element','getNearestSelectionRange','_isForcedDefaultExecutionBlock','marker-count','catch','formatInline','getMultiRangeId','delete','showSuggestionHighlights','consumable','isNextTo','_removeSuggestion','_breakSuggestionMarker','insert','push','trackChanges.mergeNestedSuggestions','name','return','data','writer','listenTo','_adapter','getCustomProperty','isBlock','isOwn','markBlockFormat','_updateSuggestionData','addCommentThread','head','filter','formatBlock:accept','newRange','getSuggestion','isBefore','change:data','addSuggestion','skipNestingCheck','discardSelectedSuggestions','isInContent','default','suggestionLoaded','end','_createSuggestion','acceptSelectedSuggestions','stop','isMultiRange','trackChanges.trackFormatChanges','error-saving-suggestion-data-suggestion-discarded','differ','acceptSuggestion','trackChangesCommand','_model','accept','attributes','addMarker:suggestion:formatBlock','has','containsRange','backward','updateMarker','elementToElement','fromRange','detach','getSuggestions','always','suggestion:','multi','isLocal','buildSuggestion','formatInline:','_refreshSuggestionsChain','editing','activeMarkers','markerName','_descriptionFactory','trackChanges','getUser','getSuggestionCallback','deletion:','_checkSuggestionCorrectness','_joinWithAdjacentSuggestions'];(function(_0x1dc25b,_0x268f2e){const _0x4e9b2d=function(_0x3b805d){while(--_0x3b805d){_0x1dc25b['push'](_0x1dc25b['shift']());}};_0x4e9b2d(++_0x268f2e);}(_0x268f,0xe1));const _0x4e9b=function(_0x1dc25b,_0x268f2e){_0x1dc25b=_0x1dc25b-0x0;let _0x4e9b2d=_0x268f[_0x1dc25b];return _0x4e9b2d;};import{Plugin as _0x5cfeb3,PendingActions as _0x126477}from'ckeditor5/src/core';import{LiveRange as _0x5e3949}from'ckeditor5/src/engine';import{CKEditorError as _0x225a88,uid as _0x4fbab8,priorities as _0x18fc4d,logWarning as _0x37bdeb}from'ckeditor5/src/utils';import{toWidget as _0x2da679}from'ckeditor5/src/widget';import{Users as _0x350619,hashObject as _0x305c8b}from'ckeditor5-collaboration/src/collaboration-core';import _0x496b9b from'./commands/trackchangescommand';import _0x5a576d from'./commands/acceptsuggestioncommand';import _0x157d55 from'./commands/discardsuggestioncommand';import _0x4ad869 from'./commands/executeonallsuggestionscommand';import _0x341c88 from'./commands/executeonselectedsuggestionscommand';import _0x2b860e from'./suggestion';import _0x15b0ef from'./suggestiondescriptionfactory';import _0x4ad944 from'./integrations/alignment';import _0x575592 from'./integrations/basicstyles';import _0x347130 from'./integrations/blockquote';import _0x4ad339 from'./integrations/ckbox';import _0x40cf46 from'./integrations/codeblock';import _0x1cdd72 from'./integrations/comments';import _0x22b136 from'./integrations/deletecommand';import _0x5ef35d from'./integrations/documentlist';import _0x34beb1 from'./integrations/entercommand';import _0x586877 from'./integrations/findandreplace';import _0x4a030b from'./integrations/font';import _0x49627a from'./integrations/formatpainter';import _0x22e833 from'./integrations/heading';import _0x223046 from'./integrations/highlight';import _0x147d3f from'./integrations/horizontalline';import _0x56a0fc from'./integrations/htmlembed';import _0x565f20 from'./integrations/image';import _0x5e23fc from'./integrations/imagereplace';import _0x583d5e from'./integrations/importword';import _0x2412ab from'./integrations/indent';import _0x1a289e from'./integrations/inputcommand';import _0x184872 from'./integrations/link';import _0x1dff40 from'./integrations/list';import _0x31b5b2 from'./integrations/listproperties';import _0x47d4a7 from'./integrations/mediaembed';import _0x1b49cb from'./integrations/mention';import _0x58c3bb from'./integrations/pagebreak';import _0x21b8d9 from'./integrations/paragraph';import _0x268dd0 from'./integrations/removeformat';import _0x47dd82 from'./integrations/restrictededitingmode';import _0x49532e from'./integrations/shiftentercommand';import _0x5036f1 from'./integrations/standardeditingmode';import _0x425480 from'./integrations/style';import _0x58f85b from'./integrations/table';import _0x5d36aa from'./integrations/tablemergesplit';import _0x52ccb9 from'./integrations/tableheadings';import _0x3485df from'./integrations/tableclipboard';import _0x3e859a from'./integrations/tablecolumnresize';import _0x10bc77 from'./integrations/template';import _0x216b6b from'./integrations/tableofcontents';import _0x1e4ec3 from'./integrations/title';import _0x333a76 from'./integrations/undo';import{getTranslation as _0x2d35a6}from'./utils/common-translations';import _0x1fca42 from'./integrations/tablecaption';import _0x420746 from'./integrations/documentlistproperties';import _0x343e3c from'./integrations/tableproperties';export default class p extends _0x5cfeb3{static get['requires'](){return[_0x4e9b('0xbd'),_0x350619,_0x126477,_0x4ad944,_0x575592,_0x347130,_0x4ad339,_0x40cf46,_0x1cdd72,_0x22b136,_0x5ef35d,_0x420746,_0x34beb1,_0x586877,_0x4a030b,_0x49627a,_0x22e833,_0x223046,_0x147d3f,_0x56a0fc,_0x565f20,_0x5e23fc,_0x583d5e,_0x2412ab,_0x1a289e,_0x184872,_0x1dff40,_0x31b5b2,_0x47d4a7,_0x1b49cb,_0x58c3bb,_0x21b8d9,_0x268dd0,_0x47dd82,_0x49532e,_0x5036f1,_0x425480,_0x58f85b,_0x5d36aa,_0x52ccb9,_0x1fca42,_0x3485df,_0x3e859a,_0x216b6b,_0x343e3c,_0x10bc77,_0x1e4ec3,_0x333a76];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x4b3a0d){function _0x554931(_0x3ee72f){return _0x3ee72f[_0x4e9b('0xc0')](_0xb28f55=>String[_0x4e9b('0x111')](_0xb28f55))['join']('');}super(_0x4b3a0d),this['set'](_0x4e9b('0x4c'),[]),this['on']('change:activeMarkers',(_0x1d8c3a,_0x240b8c,_0x2d54c3,_0x58e9e1)=>{this[_0x4e9b('0x38')]['change'](()=>{for(const _0x14483a of[..._0x58e9e1,..._0x2d54c3])this[_0x4e9b('0x38')][_0x4e9b('0xf6')][_0x4e9b('0x3c')](_0x14483a)&&_0x4b3a0d[_0x4e9b('0x4b')]['reconvertMarker'](_0x14483a);});}),this[_0x4e9b('0x4e')]=new _0x15b0ef(this['editor'][_0x4e9b('0x125')]['schema'],this['editor'][_0x4e9b('0xc6')]),this[_0x4e9b('0x1a')]=null,this['_suggestionFactory']=new Dt(this[_0x4e9b('0xa1')]),this[_0x4e9b('0x7d')]=new Map(),this[_0x4e9b('0x81')]=_0x4b3a0d[_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0xbd')),this[_0x4e9b('0xf0')]=new Set(),this[_0x4e9b('0x38')]=this[_0x4e9b('0xa1')][_0x4e9b('0x125')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xe1')](_0x4e9b('0x33'),_0x4e9b('0x2c')),this[_0x4e9b('0x71')]=_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xc5')]('trackChanges.trackFormatChanges'),_0x4b3a0d['config']['define'](_0x4e9b('0x14'),!0x0),this['_mergeNestedSuggestions']=_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xc5')](_0x4e9b('0x14')),this['trackChangesCommand']=new _0x496b9b(_0x4b3a0d,this[_0x4e9b('0xf0')]),this[_0x554931([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x554931([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x36]);}[_0x4e9b('0xca')](){const _0x5aad04=this['editor'];_0x5aad04['conversion']['for'](_0x4e9b('0x12b'))[_0x4e9b('0xe0')]({'model':_0x4e9b('0xe3'),'view':_0x38b36c=>{const {id:_0x49f7a4,type:_0x2f2b48}=this[_0x4e9b('0x4')](_0x38b36c[_0x4e9b('0x4d')]),_0x46b85c=[_0x4e9b('0x117'),_0x4e9b('0x108')+_0x2f2b48];let _0x208465=0xbb8;return this[_0x4e9b('0x4c')][_0x4e9b('0xd4')](_0x38b36c['markerName'])&&(_0x46b85c[_0x4e9b('0x13')](_0x4e9b('0xed')),_0x208465=0xbc2),_0x4e9b('0x5e')==_0x2f2b48&&(_0x208465+=0x5),{'classes':_0x46b85c,'attributes':{'data-suggestion':_0x49f7a4},'priority':_0x208465};}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('dataDowncast')[_0x4e9b('0xf4')](_0x437bb8=>{_0x437bb8['on']('addMarker:suggestion',(_0x4382e0,_0x4742c,_0x442343)=>{if(!_0x442343[_0x4e9b('0x67')][_0x4e9b('0xd')])return;const _0x4ed09f=_0x4742c[_0x4e9b('0x124')];if(!_0x4ed09f)return;const _0x2029fd=_0x442343[_0x4e9b('0xf7')]['toViewElement'](_0x4ed09f);_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xa5')][_0x4e9b('0xbc')](_0x4ed09f)&&_0x2029fd&&!_0x2029fd[_0x4e9b('0x1b')](_0x4e9b('0xdb'))&&_0x2029fd['is']('containerElement')&&_0x2da679(_0x2029fd,_0x442343[_0x4e9b('0x18')]);},{'priority':_0x4e9b('0x8b')});}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0xc2'))[_0x4e9b('0xe0')]({'model':_0x4e9b('0xe3'),'view':(_0x4dbb63,_0x21cf31)=>{if(!_0x21cf31['options']['showSuggestionHighlights'])return null;const {type:_0x56e9b7}=this['_splitMarkerName'](_0x4dbb63[_0x4e9b('0x4d')]);return{'classes':[_0x4e9b('0x117'),_0x4e9b('0x108')+_0x56e9b7],'priority':0xbb8};}});const _0x41bbe3=({showActiveMarkers:_0x25f349=!0x0}={})=>(_0x36f8ba,_0xa8a740,_0x158218)=>{if(!_0xa8a740[_0x4e9b('0x124')])return;if(_0xa8a740[_0x4e9b('0x124')]['is'](_0x4e9b('0xa9')))return void _0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0xa8a740['item'],_0x36f8ba[_0x4e9b('0x15')]);const _0x1f4a32=_0x158218[_0x4e9b('0xf7')]['toViewElement'](_0xa8a740[_0x4e9b('0x124')]);if(!(_0xa8a740['item']['is'](_0x4e9b('0x5'))&&_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xa5')][_0x4e9b('0x1c')](_0xa8a740[_0x4e9b('0x124')])&&!_0x1f4a32[_0x4e9b('0x1b')]('addHighlight')))return;const {id:_0xf49efb}=this[_0x4e9b('0x4')](_0xa8a740[_0x4e9b('0x4d')]);_0x158218[_0x4e9b('0x18')]['addClass']([_0x4e9b('0x117'),_0x4e9b('0x115')],_0x1f4a32),_0x158218['writer'][_0x4e9b('0xa3')](_0x4e9b('0xb4'),_0xf49efb,_0x1f4a32),_0x158218[_0x4e9b('0xf7')][_0x4e9b('0xfa')](_0x1f4a32,_0xa8a740[_0x4e9b('0x4d')]),_0x25f349&&(this[_0x4e9b('0x4c')][_0x4e9b('0xd4')](_0xa8a740[_0x4e9b('0x4d')])?_0x158218[_0x4e9b('0x18')][_0x4e9b('0xb6')](_0x4e9b('0xed'),_0x1f4a32):_0x158218['writer']['removeClass']('ck-suggestion-marker--active',_0x1f4a32));for(const _0x49b0d8 of _0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcc')](_0xa8a740[_0x4e9b('0x124')])[_0x4e9b('0x130')]())_0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0x49b0d8,_0x36f8ba[_0x4e9b('0x15')]);_0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0xa8a740[_0x4e9b('0x124')],_0x36f8ba[_0x4e9b('0x15')]);};_0x5aad04[_0x4e9b('0x114')]['for']('dataDowncast')[_0x4e9b('0xf4')](_0x167f04=>{_0x167f04['on'](_0x4e9b('0x3b'),(_0x22b42f,_0x1a79bc,_0x15be90)=>{_0x15be90['options'][_0x4e9b('0xd')]&&_0x41bbe3({'showActiveMarkers':!0x1})(_0x22b42f,_0x1a79bc,_0x15be90);},{'priority':_0x4e9b('0xf1')});}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('dataDowncast')[_0x4e9b('0xf2')]({'model':'suggestion','view':(_0x499df8,_0xceb4cc)=>_0xceb4cc['options'][_0x4e9b('0xd')]?null:{'group':_0x4e9b('0xe3'),'name':_0x499df8['substr'](0xb)}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0x129'))[_0x4e9b('0x40')]({'view':{'name':_0x4e9b('0xe3'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4fda0c,{writer:_0x165fba})=>{let _0x5938b9=_0x4e9b('0x45')+_0x4fda0c['getAttribute'](_0x4e9b('0xb9'))+':'+_0x4fda0c[_0x4e9b('0xac')]('id');return _0x4fda0c['getAttribute'](_0x4e9b('0x8'))&&(_0x5938b9+=':'+_0x4fda0c['getAttribute'](_0x4e9b('0x8'))),_0x165fba[_0x4e9b('0xd5')]('$marker',{'data-name':_0x5938b9});}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('upcast')[_0x4e9b('0x101')]({'view':_0x4e9b('0xe3')}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0x12b'))['add'](_0x1b9677=>{_0x1b9677['on'](_0x4e9b('0x3b'),_0x41bbe3(),{'priority':_0x4e9b('0x8b')});}),_0x5aad04['conversion'][_0x4e9b('0x2')](_0x4e9b('0x12b'))['add'](_0x2fa0e9=>{_0x2fa0e9['on'](_0x4e9b('0xa8'),(_0xbbb234,_0x5d0f3a,_0x5623d1)=>{const _0xcd93a7=_0x5623d1['mapper']['markerNameToElements'](_0x5d0f3a[_0x4e9b('0x4d')]);if(_0xcd93a7)for(const _0x1e601d of _0xcd93a7)_0x1e601d[_0x4e9b('0x1b')](_0x4e9b('0xfd'))||(_0x5623d1[_0x4e9b('0x18')]['removeClass']([_0x4e9b('0x117'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e601d),_0x5623d1['writer']['removeAttribute'](_0x4e9b('0xb4'),_0x1e601d),_0x5623d1[_0x4e9b('0xf7')]['unbindElementFromMarkerName'](_0x1e601d,_0x5d0f3a['markerName']));},{'priority':_0x4e9b('0x8b')});}),_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')][_0x4e9b('0xab')](_0x4f430a=>{let _0x1e5ce7=!0x1;const _0x3b8db2=Array['from'](_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')]['differ'][_0x4e9b('0x83')]()),_0x5c594a=new Set();for(const {name:_0x43715c,data:_0x24f627}of _0x3b8db2){const {group:_0x345623,type:_0x5f5c92,id:_0x179a8c}=this['_splitMarkerName'](_0x43715c);if(_0x4e9b('0xe3')!==_0x345623)continue;const _0x28cc92=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x179a8c);if(null!=_0x24f627[_0x4e9b('0x24')]){'formatInline'==_0x5f5c92&&(_0x1e5ce7=_0x1e5ce7||Mt(_0x24f627['newRange'],_0x43715c,_0x4f430a,_0x5aad04['model']['schema']));if(_0x24f627[_0x4e9b('0x24')][_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x24f627[_0x4e9b('0x24')]['root']['rootName']||_0x4e9b('0xd2')==_0x5f5c92&&!Nt(_0x24f627[_0x4e9b('0x24')])||_0x4e9b('0x5e')==_0x5f5c92&&!(!_t(_0x5c61e4=_0x24f627[_0x4e9b('0x24')])&&!function(_0x508deb){return _0x508deb[_0x4e9b('0xb0')][_0x4e9b('0x106')]==_0x508deb[_0x4e9b('0x2e')][_0x4e9b('0xa6')]&&_0x508deb[_0x4e9b('0xb0')]['isAtEnd'];}(_0x5c61e4)))_0x4f430a['removeMarker'](_0x43715c),_0x1e5ce7=!0x0;else{if(!_0x28cc92||!_0x28cc92[_0x4e9b('0x2b')])continue;_0x5c594a[_0x4e9b('0xf4')](_0x28cc92);}}}var _0x5c61e4;return _0x5c594a[_0x4e9b('0xd8')]>0x0&&(_0x1e5ce7=!!this[_0x4e9b('0x54')](_0x5c594a)||_0x1e5ce7),_0x1e5ce7;}),_0x5aad04['model'][_0x4e9b('0x105')][_0x4e9b('0xab')](_0x200a51=>{let _0x14a215=!0x1;for(const _0x2fa598 of _0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')][_0x4e9b('0x35')][_0x4e9b('0x65')]()){if('insert'!=_0x2fa598[_0x4e9b('0x11d')])continue;const _0x491f42=_0x2fa598[_0x4e9b('0xef')][_0x4e9b('0x7c')](_0x2fa598[_0x4e9b('0x70')]);if(_0x491f42[_0x4e9b('0x63')])for(const _0x5b3a5d of this[_0x4e9b('0x7d')][_0x4e9b('0xe9')]()){if(_0x5b3a5d[_0x4e9b('0x32')]||!_0x5b3a5d[_0x4e9b('0x2b')])continue;if(_0x4e9b('0xd2')!=_0x5b3a5d['type'])continue;const _0x266b39=_0x5b3a5d[_0x4e9b('0xc9')]();if(_0x266b39[_0x4e9b('0xb0')][_0x4e9b('0x106')]!=_0x266b39[_0x4e9b('0x2e')][_0x4e9b('0x106')]&&_0x266b39['end'][_0x4e9b('0x55')](_0x2fa598[_0x4e9b('0xef')])){const _0x6fdcd8=_0x5aad04['model']['createRange'](_0x266b39[_0x4e9b('0xb0')],_0x491f42);_0x200a51['updateMarker'](_0x5b3a5d['getFirstMarker'](),{'range':_0x6fdcd8}),_0x14a215=!0x0;}}}return _0x14a215;}),_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xf6')]['on'](_0x4e9b('0x104'),(_0x35f7fe,_0x4eba93,_0x42b930)=>{if(null==_0x42b930){const {id:_0x14aa91}=this[_0x4e9b('0x4')](_0x4eba93[_0x4e9b('0x15')]),_0x548012=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x14aa91);_0x548012&&_0x548012['addMarkerName'](_0x4eba93[_0x4e9b('0x15')]);}}),_0x5aad04['model']['document']['on'](_0x4e9b('0x27'),()=>{const _0x1a98db=Array['from'](_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')]['differ'][_0x4e9b('0x83')]())[_0x4e9b('0x22')](_0x457300=>_0x4e9b('0xe3')===this[_0x4e9b('0x4')](_0x457300[_0x4e9b('0x15')])[_0x4e9b('0x59')]);if(0x0===_0x1a98db[_0x4e9b('0x70')])return;_0x1a98db[_0x4e9b('0x11b')]((_0x1ddaa4,_0x5b179c)=>{const _0x31e352=_0x1ddaa4[_0x4e9b('0x17')][_0x4e9b('0x86')],_0x27888c=_0x5b179c[_0x4e9b('0x17')]['oldRange'];return null===_0x31e352&&null===_0x27888c?0x0:null===_0x31e352&&null!==_0x27888c?-0x1:null!==_0x31e352&&null===_0x27888c?0x1:_0x31e352[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x27888c[_0x4e9b('0xb0')])?-0x1:0x1;});const _0x25a8b1=new Set(),_0x2597e2=new Set();for(const {name:_0x339e32,data:_0x22e148}of _0x1a98db){const {id:_0x356c63}=this[_0x4e9b('0x4')](_0x339e32);if(null===_0x22e148['oldRange']){const _0xa3cd88=this['_handleNewSuggestionMarker'](_0x339e32);_0x2597e2[_0x4e9b('0xf4')](_0xa3cd88);}else{const _0x53fd10=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x356c63);null!==_0x22e148['newRange']||_0x53fd10['isInContent']?(_0x25a8b1[_0x4e9b('0xf4')](_0x53fd10[_0x4e9b('0x21')]),_0x2597e2[_0x4e9b('0xf4')](_0x53fd10)):this['_removeSuggestion'](_0x53fd10);}}_0x2597e2['size']>0x0&&this[_0x4e9b('0x4a')](_0x2597e2);for(const _0x407bc0 of _0x25a8b1)this[_0x4e9b('0x98')](_0x4e9b('0x66'),_0x407bc0);}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x134'),(_0x19f019,_0xb2c9bb)=>{const _0xc43970=_0xb2c9bb[0x0];if(!this['_suggestions'][_0x4e9b('0xd8')])return;if(!_0xc43970[_0x4e9b('0x10a')])return;if(_0xc43970['batch'][_0x4e9b('0xfb')]||!_0xc43970[_0x4e9b('0xda')][_0x4e9b('0x47')])return;let _0x402e3f,_0x4a0d46;switch(_0xc43970[_0x4e9b('0x11d')]){case _0x4e9b('0x12'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0xef')]),_0x4a0d46=_0x402e3f['getShiftedBy'](_0xc43970[_0x4e9b('0xf9')]);break;case _0x4e9b('0x12a'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0x11c')]),_0x4a0d46=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0xe4')]);break;case _0x4e9b('0x9e'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970['targetPosition']),_0x4a0d46=_0x402e3f['getShiftedBy'](_0xc43970[_0x4e9b('0xf9')]);break;default:return;}const _0x1fc660=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcb')](_0x402e3f,_0x4a0d46);_0x5aad04['model'][_0x4e9b('0x5a')](()=>{for(const {suggestion:_0x3d4f48,meta:_0x9cdd05}of this[_0x4e9b('0x7a')](_0x1fc660)){if(_0x3d4f48[_0x4e9b('0x32')])continue;if(_0x4e9b('0xa')==_0x3d4f48[_0x4e9b('0x11d')])continue;const _0x294aa8=_0x3d4f48[_0x4e9b('0x17')]&&_0x3d4f48[_0x4e9b('0x17')]['multipleBlocks'];('formatBlock'!=_0x3d4f48['type']||'split'==_0xc43970['type']&&!_0x294aa8)&&(_0x9cdd05[_0x4e9b('0x69')]||_0x4e9b('0x68')==_0x3d4f48[_0x4e9b('0x11d')]&&_0x9cdd05[_0x4e9b('0x1d')]||_0x3d4f48[_0x4e9b('0xc9')]()[_0x4e9b('0x3d')](_0x1fc660)&&this[_0x4e9b('0x11')](_0x3d4f48,_0x402e3f,_0x4a0d46));}});},{'priority':'lowest'}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x57'),(_0x485eb4,_0x363520)=>{const _0x254d98=_0x363520[0x0],_0x9e18f=_0x363520[0x1];if(_0x9e18f&&_0x9e18f[_0x4e9b('0xe7')])return;if(this[_0x4e9b('0x7')])return;if(!this[_0x4e9b('0x37')][_0x4e9b('0x102')])return;if(_0x254d98[_0x4e9b('0xde')])return;const _0x29dc74=_0x5aad04[_0x4e9b('0x125')]['schema'],{start:_0x25d12f,end:_0x295a39}=_0x254d98[_0x4e9b('0xc9')](),_0x53ca46=_0x25d12f[_0x4e9b('0xae')]&&_0x29dc74[_0x4e9b('0x127')](_0x25d12f['nodeAfter'])?null:_0x29dc74[_0x4e9b('0x6')](_0x25d12f,'forward'),_0x40740b=_0x295a39['nodeBefore']&&_0x29dc74[_0x4e9b('0x127')](_0x295a39[_0x4e9b('0xa6')])?null:_0x29dc74[_0x4e9b('0x6')](_0x295a39,_0x4e9b('0x3e')),_0x430b8c=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcb')](_0x53ca46?_0x53ca46[_0x4e9b('0xb0')]:_0x25d12f,_0x40740b?_0x40740b[_0x4e9b('0x2e')]:_0x295a39);_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x5a')](_0x27f4d7=>{this[_0x4e9b('0x103')](_0x430b8c);const _0x247336=_0x5aad04['model'][_0x4e9b('0xa5')][_0x4e9b('0x6')](_0x430b8c[_0x4e9b('0xb0')]);_0x254d98['is'](_0x4e9b('0x0'))?_0x27f4d7[_0x4e9b('0xb1')](_0x247336):_0x254d98[_0x4e9b('0x12d')](_0x247336);}),_0x485eb4[_0x4e9b('0x31')]();},{'priority':_0x18fc4d[_0x4e9b('0x91')]+0xa}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x93'),(_0x50f56d,_0x5cfe28)=>{const _0x381d46=_0x5cfe28[_0x5cfe28[_0x4e9b('0x70')]-0x1];_0x381d46&&_0x381d46[_0x4e9b('0xe7')]||this['_isForcedDefaultExecutionBlock']||this[_0x4e9b('0x37')][_0x4e9b('0x102')]&&(_0x5aad04['model'][_0x4e9b('0x5a')](()=>{let _0x1a4ed6=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x93')](_0x5cfe28[0x0],_0x5cfe28[0x1],_0x5cfe28[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a4ed6)return;_0x50f56d[_0x4e9b('0x16')]=_0x1a4ed6['clone']();const _0x2147a8=_0x1a4ed6[_0x4e9b('0x2e')][_0x4e9b('0xa6')],_0x55b966=_0x5aad04['model'][_0x4e9b('0xa5')];_0x2147a8&&_0x55b966[_0x4e9b('0x1c')](_0x2147a8)&&!_0x55b966[_0x4e9b('0xbc')](_0x2147a8)&&(_0x1a4ed6=_0x5aad04['model'][_0x4e9b('0xcb')](_0x1a4ed6[_0x4e9b('0xb0')],_0x5aad04['model'][_0x4e9b('0x3')](_0x2147a8,_0x4e9b('0x2e')))),this[_0x4e9b('0x100')](_0x1a4ed6);}),_0x50f56d[_0x4e9b('0x31')]());},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0xa1')]['commands'][_0x4e9b('0xf4')](_0x4e9b('0x4f'),this['trackChangesCommand']),this[_0x4e9b('0x56')](_0x4e9b('0x4f'));const _0xb0a828=new _0x5a576d(_0x5aad04,this['_suggestions']);_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')](_0x4e9b('0x36'),_0xb0a828),this[_0x4e9b('0x56')](_0x4e9b('0x36'));const _0x58c22c=new _0x157d55(_0x5aad04,this[_0x4e9b('0x7d')]);_0x5aad04[_0x4e9b('0xf5')]['add'](_0x4e9b('0xbf'),_0x58c22c),this[_0x4e9b('0x56')](_0x4e9b('0xbf')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('acceptAllSuggestions',new _0x4ad869(_0x5aad04,_0xb0a828,this[_0x4e9b('0x7d')])),this[_0x4e9b('0x56')](_0x4e9b('0x7e')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')](_0x4e9b('0x99'),new _0x4ad869(_0x5aad04,_0x58c22c,this['_suggestions'])),this[_0x4e9b('0x56')](_0x4e9b('0x99')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('acceptSelectedSuggestions',new _0x341c88(_0x5aad04,_0xb0a828,this[_0x4e9b('0x7d')])),this['enableCommand'](_0x4e9b('0x30')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('discardSelectedSuggestions',new _0x341c88(_0x5aad04,_0x58c22c,this[_0x4e9b('0x7d')])),this[_0x4e9b('0x56')](_0x4e9b('0x2a'));const _0x553151=_0x5aad04[_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0xbd'));this[_0x4e9b('0x19')](_0x553151,_0x4e9b('0x6b'),(_0x4f55f6,{threadId:_0x18548e})=>{const _0x4e5f07=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x18548e);_0x4e5f07&&_0x4e5f07['commentThread']&&0x1===_0x4e5f07[_0x4e9b('0x88')][_0x4e9b('0x70')]&&this[_0x4e9b('0x1f')](_0x18548e,{'hasComments':!0x0});},{'priority':_0x4e9b('0x79')}),this[_0x4e9b('0x19')](_0x553151,_0x4e9b('0x78'),(_0x3cca38,{threadId:_0x21b7aa})=>{const _0x57a439=this['_suggestions'][_0x4e9b('0xc5')](_0x21b7aa);_0x57a439&&_0x57a439[_0x4e9b('0x88')]&&!_0x57a439['commentThread'][_0x4e9b('0x70')]&&this[_0x4e9b('0x1f')](_0x21b7aa,{'hasComments':!0x1});},{'priority':_0x4e9b('0x79')});}set[_0x4e9b('0x10d')](_0x43fca8){if(this[_0x4e9b('0x1a')])throw new _0x225a88(_0x4e9b('0x6d'),this);this[_0x4e9b('0x1a')]=_0x43fca8;}get[_0x4e9b('0x10d')](){return this[_0x4e9b('0x1a')];}['getSuggestions']({skipNotAttached:_0x486bb3=!0x1,toJSON:_0x2527da=!0x1}={}){const _0x4d167d=[];for(const _0x4f1d0f of this['_suggestions'][_0x4e9b('0xe9')]())_0x486bb3&&!_0x4f1d0f[_0x4e9b('0x2b')]||_0x4d167d['push'](_0x4f1d0f);return _0x2527da?_0x4d167d['map'](_0x4c4696=>_0x4c4696[_0x4e9b('0xd6')]()):_0x4d167d;}[_0x4e9b('0x25')](_0x410a4d){const _0x1befae=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x410a4d);if(!_0x1befae)throw new _0x225a88('track-changes-suggestion-not-found',this);return _0x1befae;}[_0x4e9b('0x9d')](_0x3f7d37){return this[_0x4e9b('0x7d')][_0x4e9b('0x3c')](_0x3f7d37);}[_0x4e9b('0x116')](_0xdfe2a7){const {authorId:_0x492807,id:_0x58b2e7,attributes:_0x491376}=_0xdfe2a7,[_0xd38913,_0x38d91b]=_0xdfe2a7['type'][_0x4e9b('0x12a')](':'),_0x47ac7e=this[_0x4e9b('0x7d')]['get'](_0x58b2e7)||this[_0x4e9b('0x2f')](_0xd38913,_0x38d91b,_0x58b2e7,_0x492807,_0x491376);if(this[_0x4e9b('0xfc')](_0x47ac7e),this['_checkSuggestionCorrectness'](_0x47ac7e,_0xd38913,_0x38d91b||null,_0x492807),_0x47ac7e[_0x4e9b('0xb5')]=_0xdfe2a7[_0x4e9b('0xb5')],_0x491376&&_0x491376[_0x4e9b('0xea')]){const _0x388cb1=_0x491376[_0x4e9b('0xea')],_0x92fb6=this['_getExternalAuthor'](_0x388cb1[_0x4e9b('0x76')]);_0x47ac7e['authoredAt']=_0x388cb1['createdAt'],_0x47ac7e[_0x4e9b('0x6a')]=_0x92fb6,_0x47ac7e[_0x4e9b('0x10e')]=!0x0;}else _0x47ac7e[_0x4e9b('0xba')]=_0xdfe2a7[_0x4e9b('0xb5')];switch(_0xdfe2a7['data']&&(_0x47ac7e[_0x4e9b('0x17')]=_0xdfe2a7[_0x4e9b('0x17')]),_0xdfe2a7[_0x4e9b('0x3a')]&&(_0x47ac7e[_0x4e9b('0x3a')]=_0xdfe2a7[_0x4e9b('0x3a')]),this[_0x4e9b('0x1a')]&&this[_0x4e9b('0x1a')][_0x4e9b('0x28')]||(_0x47ac7e[_0x4e9b('0x12f')]=!0x0),this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x47ac7e)){case _0x4e9b('0x9a'):this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xc3'));break;case _0x4e9b('0x109'):_0x47ac7e[_0x4e9b('0x2b')]?(this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xec')),this['fire']('suggestionLoaded',_0x47ac7e)):this['_suggestionState'][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xee'));}return _0x47ac7e;}[_0x4e9b('0x36')](_0x487b6c){this['forceDefaultExecution'](()=>{this[_0x4e9b('0xa1')][_0x4e9b('0x125')]['change'](()=>{for(const _0x2a3813 of _0x487b6c[_0x4e9b('0xe2')]())_0x2a3813[_0x4e9b('0x39')]();});});}[_0x4e9b('0xbf')](_0x3974ee){this[_0x4e9b('0xe7')](()=>{this[_0x4e9b('0xa1')][_0x4e9b('0x125')][_0x4e9b('0x5a')](()=>{for(const _0x4537a8 of _0x3974ee['getAllAdjacentSuggestions']())_0x4537a8[_0x4e9b('0x7f')]();});});}[_0x4e9b('0x56')](_0x55f8ee,_0x8a3aa){const _0x3cb0ed=this[_0x4e9b('0xa1')][_0x4e9b('0xf5')][_0x4e9b('0xc5')](_0x55f8ee);if(!_0x3cb0ed)throw new _0x225a88('track-changes-command-not-found',this,{'commandName':_0x55f8ee});this[_0x4e9b('0xf0')]['add'](_0x3cb0ed),_0x8a3aa&&_0x3cb0ed['on']('execute',(_0x506fc7,_0x353adb)=>{this[_0x4e9b('0x37')]['value']&&(this[_0x4e9b('0x7')]||_0x353adb[_0x4e9b('0x70')]>0x0&&_0x353adb[_0x353adb[_0x4e9b('0x70')]-0x1]&&_0x353adb[_0x353adb[_0x4e9b('0x70')]-0x1][_0x4e9b('0xe7')]||(_0x8a3aa((..._0x216cab)=>_0x3cb0ed['execute'](..._0x216cab,{'forceDefaultExecution':!0x0}),..._0x353adb),_0x506fc7[_0x4e9b('0x31')]()));},{'priority':_0x4e9b('0x8b')});}[_0x4e9b('0xe7')](_0xf9eb4a){let _0x1efedf,_0xfab974;const _0x517b54=this[_0x4e9b('0x7')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1efedf=_0xf9eb4a();}catch(_0x38578c){_0xfab974=_0x38578c;}return _0x517b54||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xfab974&&_0x225a88[_0x4e9b('0xbb')](_0xfab974,this),_0x1efedf;}['markInsertion'](_0x7f068e,_0x55df49=null,_0x2a4c4e={}){if(_0x7f068e[_0x4e9b('0xde')])return null;const _0x43d971=this['editor'][_0x4e9b('0xe6')]['get']('Users')['me'];for(const {suggestion:_0xe3b505,meta:_0xa7b208}of this[_0x4e9b('0x7a')](_0x7f068e,'insertion'))if(_0xa7b208[_0x4e9b('0x1d')]){if(!_0xa7b208[_0x4e9b('0xf')]){if(!this[_0x4e9b('0x82')]&&_0xa7b208[_0x4e9b('0x69')])continue;return _0xe3b505;}if(_0x55df49==_0xe3b505[_0x4e9b('0x6c')]){const _0x4aba4c=_0xe3b505['getFirstRange']();return _0x4aba4c[_0x4e9b('0xb0')][_0x4e9b('0x55')](_0x7f068e[_0x4e9b('0x2e')])?this[_0x4e9b('0x120')](_0xe3b505,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x7f068e['start'],_0x4aba4c['end'])):this[_0x4e9b('0x120')](_0xe3b505,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x4aba4c[_0x4e9b('0xb0')],_0x7f068e[_0x4e9b('0x2e')])),_0xe3b505;}}const _0x5765d0=_0x4fbab8(),_0x342cc4=_0x43d971['id'],_0xd3b589=_0x55df49?'insertion:'+_0x55df49:'insertion',_0x2dfd19=this[_0x4e9b('0x113')]({'id':_0x5765d0,'type':_0xd3b589,'createdAt':new Date(),'authorId':_0x342cc4,'attributes':_0x2a4c4e});return this[_0x4e9b('0x77')](_0xd3b589,_0x5765d0,_0x342cc4,_0x7f068e),_0x2dfd19;}[_0x4e9b('0x128')](_0x48f3c1,_0x304604=_0x4e9b('0x46'),_0x19e442={}){const _0x51bb81=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x5a6ffd=this['_suggestionFactory'][_0x4e9b('0x51')](_0x4e9b('0x68'),_0x304604,_0x4e9b('0x85'));for(const _0x44bb6d of this[_0x4e9b('0x43')]())if(_0x44bb6d[_0x4e9b('0x6a')]['id']==_0x51bb81['id']&&_0x4e9b('0x68')==_0x44bb6d['type']&&_0x44bb6d['subType']==_0x304604&&(_0x5a6ffd(_0x44bb6d[_0x4e9b('0x8a')](),_0x48f3c1)||_0x5a6ffd(_0x48f3c1,_0x44bb6d['getRanges']()))){for(const _0x39c1f1 of _0x48f3c1)_0x44bb6d[_0x4e9b('0x74')](_0x39c1f1);return _0x44bb6d;}if(this[_0x4e9b('0x82')])for(const _0x3d781e of _0x48f3c1)for(const {suggestion:_0x1d85bc,meta:_0xebc558}of this[_0x4e9b('0x7a')](_0x3d781e,_0x4e9b('0x68'))){if(!_0xebc558[_0x4e9b('0x1d')])continue;let _0x4fd5ef=!0x0;for(const _0x359cdc of _0x1d85bc[_0x4e9b('0x8a')]())for(const _0x542ff7 of _0x48f3c1)if(!_0x359cdc['containsRange'](_0x542ff7)){_0x4fd5ef=!0x1;break;}if(_0x4fd5ef)return _0x1d85bc;}const _0x96425c=_0x4fbab8(),_0x475090=_0x51bb81['id'],_0x5bac57=_0x4e9b('0x9f')+_0x304604,_0x2dfb48=this[_0x4e9b('0x113')]({'id':_0x96425c,'type':_0x5bac57,'createdAt':new Date(),'authorId':_0x475090,'attributes':_0x19e442});for(const _0x41964d of _0x48f3c1)this[_0x4e9b('0x77')](_0x5bac57,_0x96425c,_0x475090,_0x41964d,_0x2b860e[_0x4e9b('0xb')]());return _0x2dfb48;}['markInlineFormat'](_0x5b95aa,_0x5856a9,_0x35460b=null,_0x12d425={}){if(_0x35460b=_0x35460b||$t(_0x5856a9),_0x5b95aa['isCollapsed'])return null;if(_0x4e9b('0xdc')===this['_trackFormatChanges']){const _0x10d07d=this['_suggestionFactory']['getSuggestionCallback'](_0x4e9b('0xa'),_0x35460b,'accept');return this[_0x4e9b('0xe7')](()=>_0x10d07d([_0x5b95aa],_0x5856a9,_0x12d425)),null;}const _0xb70062=this['editor']['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x5e08c6=[];if('always'!==this[_0x4e9b('0x71')])for(const {suggestion:_0x1122ea,meta:_0x4e3a11}of this[_0x4e9b('0x7a')](_0x5b95aa,_0x4e9b('0x68')))_0x4e3a11[_0x4e9b('0x1d')]&&!_0x4e3a11[_0x4e9b('0xcf')]&&_0x5e08c6[_0x4e9b('0x13')](..._0x1122ea[_0x4e9b('0x8a')]());const _0x9ff8a1=function(_0x2a8792,_0x556094){const _0xbfe57e=[];for(const _0x38c9eb of _0x556094){const _0x3c55f7=_0x2a8792[_0x4e9b('0x112')](_0x38c9eb);_0x3c55f7&&_0xbfe57e[_0x4e9b('0x13')](_0x3c55f7);}return _0xbfe57e;}(_0x5b95aa,_0x5e08c6),_0x114b11=function(_0x2f8a8c,_0x56cc4f){const _0x512287=[_0x2f8a8c];for(const _0x150d98 of _0x56cc4f){let _0x2d5690=0x0;for(;_0x2d5690<_0x512287[_0x4e9b('0x70')];){const _0x5d6e7d=_0x512287[_0x2d5690]['getDifference'](_0x150d98);_0x512287[_0x4e9b('0xdd')](_0x2d5690,0x1,..._0x5d6e7d),_0x2d5690+=_0x5d6e7d['length'];}}return _0x512287;}(_0x5b95aa,_0x5e08c6);_0x9ff8a1[_0x4e9b('0x70')]&&this['_model'][_0x4e9b('0x5a')](()=>{for(const _0x5e6bf3 of _0x9ff8a1){const _0x4d296d=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xa'),_0x35460b,_0x4e9b('0x39'));this['forceDefaultExecution'](()=>_0x4d296d([_0x5e6bf3],_0x5856a9,_0x12d425));}});for(const _0x794ed4 of _0x114b11){let _0x521f1a=null,_0x50c0c9=_0x794ed4[_0x4e9b('0xb0')],_0x183fb0=_0x794ed4['end'];for(const {suggestion:_0x2af6ec,meta:_0x2c1f91}of this['_findSuggestions'](_0x794ed4,_0x4e9b('0xa'))){if(!_0x2c1f91['isOwn'])continue;if(_0x2af6ec['subType']!=_0x35460b)continue;const _0x142ba1=_0x2af6ec['getFirstRange']();if(_0x142ba1[_0x4e9b('0x3d')](_0x794ed4,!0x0))return null;_0x50c0c9=_0x50c0c9['isBefore'](_0x142ba1[_0x4e9b('0xb0')])?_0x50c0c9:_0x142ba1[_0x4e9b('0xb0')],_0x183fb0=_0x183fb0[_0x4e9b('0x87')](_0x142ba1[_0x4e9b('0x2e')])?_0x183fb0:_0x142ba1[_0x4e9b('0x2e')],_0x521f1a?_0x142ba1[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x521f1a[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')])?(_0x521f1a[_0x4e9b('0x123')](),_0x521f1a=_0x2af6ec):_0x2af6ec[_0x4e9b('0x123')]():_0x521f1a=_0x2af6ec;}const _0x3ced5e=this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x50c0c9,_0x183fb0);if(_0x521f1a)this[_0x4e9b('0x120')](_0x521f1a,_0x3ced5e);else{const _0x2a877a=_0x4fbab8(),_0x2e90db=_0xb70062['id'];this[_0x4e9b('0x113')]({'id':_0x2a877a,'type':_0x4e9b('0x49')+_0x35460b,'data':_0x5856a9,'createdAt':new Date(),'authorId':_0x2e90db,'attributes':_0x12d425}),this[_0x4e9b('0x77')](_0x4e9b('0x49')+_0x35460b,_0x2a877a,_0x2e90db,_0x3ced5e);}}return null;}[_0x4e9b('0x1e')](_0xdd5715,_0x56afd7,_0x30d2e8=[],_0x17d13a=null,_0xb5089d={}){_0x56afd7[_0x4e9b('0x1')]||(_0x56afd7[_0x4e9b('0x1')]=_0x56afd7['commandName']),_0x56afd7['multipleBlocks']=_0xdd5715['is'](_0x4e9b('0x135')),_0x17d13a=_0x17d13a||$t(_0x56afd7);const _0x5ad02f=_0x30d2e8[_0x4e9b('0xc0')](_0x93e532=>Rt(_0x93e532,this[_0x4e9b('0x38')])),_0x2d518b=_0xdd5715['is'](_0x4e9b('0x135'))?_0xdd5715:Rt(_0xdd5715,this[_0x4e9b('0x38')]);if(_0x4e9b('0xdc')===this[_0x4e9b('0x71')]){const _0x54cbdf=this['_suggestionFactory'][_0x4e9b('0x51')]('formatBlock',_0x17d13a,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x54cbdf([_0x2d518b],_0x56afd7,_0xb5089d)),null;}_0x5ad02f[_0x4e9b('0x13')](_0x2d518b);let _0x5c7518=!0x0;for(const _0x1be67e of _0x5ad02f)if(!this['_rangeIsInLocalUserInsertion'](_0x1be67e)){_0x5c7518=!0x1;break;}if(_0x5c7518&&_0x4e9b('0x44')!==this[_0x4e9b('0x71')]){const _0x520cff=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x17d13a,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x520cff([_0x2d518b],_0x56afd7,_0xb5089d)),null;}let _0x2d5fcc=null,_0x260daa=_0x2d518b['start'],_0x404b0c=_0x2d518b[_0x4e9b('0x2e')];for(const {suggestion:_0x193fad,meta:_0x99b6e2}of this['_findSuggestions'](_0x2d518b,_0x4e9b('0xd2'))){if(!_0x99b6e2[_0x4e9b('0x1d')]||_0x99b6e2[_0x4e9b('0xf')]||_0x99b6e2[_0x4e9b('0x69')]||_0x99b6e2[_0x4e9b('0xcf')])continue;if(_0x193fad[_0x4e9b('0x17')]['formatGroupId']!=_0x56afd7[_0x4e9b('0x1')])continue;const _0x39be02=_0x193fad['getFirstRange']();if(_0x193fad[_0x4e9b('0x6c')]==_0x17d13a){if(_0x39be02[_0x4e9b('0x3d')](_0x2d518b,!0x0))return null;_0x260daa=_0x260daa['isBefore'](_0x39be02[_0x4e9b('0xb0')])?_0x260daa:_0x39be02[_0x4e9b('0xb0')],_0x404b0c=_0x404b0c[_0x4e9b('0x87')](_0x39be02[_0x4e9b('0x2e')])?_0x404b0c:_0x39be02[_0x4e9b('0x2e')],_0x2d5fcc?_0x39be02['start'][_0x4e9b('0x26')](_0x2d5fcc[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')])?(_0x2d5fcc[_0x4e9b('0x123')](),_0x2d5fcc=_0x193fad):_0x193fad['removeMarkers']():_0x2d5fcc=_0x193fad;}else{const _0x451741=_0x2d518b[_0x4e9b('0x112')](_0x39be02);this[_0x4e9b('0xd0')](_0x193fad,_0x451741);}}const _0x565e5a=this[_0x4e9b('0xa1')]['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x3db704=_0x4fbab8(),_0x4f0ce5=_0x565e5a['id'];if(_0x2d5fcc)return this['_setSuggestionRange'](_0x2d5fcc,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x260daa,_0x404b0c)),_0x2d5fcc;{const _0x12af96=this[_0x4e9b('0x113')]({'id':_0x3db704,'type':'formatBlock:'+_0x17d13a,'data':_0x56afd7,'createdAt':new Date(),'authorId':_0x4f0ce5,'attributes':_0xb5089d});return this[_0x4e9b('0x77')](_0x4e9b('0xf3')+_0x17d13a,_0x3db704,_0x4f0ce5,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x260daa,_0x404b0c)),_0x12af96;}}['markMultiRangeBlockFormat'](_0x4ec7a1,_0x429fb8,_0x34d391=[],_0x4c71d7=null,_0x4729dc={}){_0x429fb8[_0x4e9b('0x1')]||(_0x429fb8[_0x4e9b('0x1')]=_0x429fb8['commandName']);const _0x1b692e=_0x4ec7a1[0x0];_0x429fb8[_0x4e9b('0x89')]=_0x1b692e['is'](_0x4e9b('0x135')),_0x4c71d7=_0x4c71d7||$t(_0x429fb8);const _0x596b98=_0x34d391[_0x4e9b('0xc0')](_0x122965=>Rt(_0x122965,this[_0x4e9b('0x38')])),_0x2c9b37=_0x1b692e['is'](_0x4e9b('0x135'))?_0x4ec7a1:_0x4ec7a1['map'](_0x17d5fb=>Rt(_0x17d5fb,this[_0x4e9b('0x38')]));if(_0x4e9b('0xdc')===this[_0x4e9b('0x71')]){const _0x14f55d=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x14f55d(_0x2c9b37,_0x429fb8,_0x4729dc)),null;}_0x596b98['push'](..._0x2c9b37);let _0x20b6cc=!0x0;for(const _0x42401c of _0x596b98)if(!this['_rangeIsInLocalUserInsertion'](_0x42401c)){_0x20b6cc=!0x1;break;}if(_0x20b6cc&&_0x4e9b('0x44')!==this['_trackFormatChanges']){const _0x2b2243=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,'accept');return this[_0x4e9b('0xe7')](()=>_0x2b2243(_0x2c9b37,_0x429fb8,_0x4729dc)),null;}const _0x44461e=this['editor'][_0x4e9b('0xe6')]['get'](_0x4e9b('0x8f'))['me'];for(const _0xd8b49e of this[_0x4e9b('0x43')]()){if(_0xd8b49e[_0x4e9b('0x6a')]['id']!=_0x44461e['id'])continue;if('formatBlock'!=_0xd8b49e[_0x4e9b('0x11d')]||_0xd8b49e['data'][_0x4e9b('0x1')]!=_0x429fb8[_0x4e9b('0x1')])continue;const _0x37ee4d=_0xd8b49e['subType']==_0x4c71d7;for(let _0x36a1d2=0x0;_0x36a1d2<_0x2c9b37['length'];_0x36a1d2++){const _0x39f300=_0x2c9b37[_0x36a1d2];for(const _0x1917ca of _0xd8b49e[_0x4e9b('0x5f')]()){const _0x2fbf83=_0x1917ca[_0x4e9b('0xa7')]();if(_0x39f300[_0x4e9b('0x55')](_0x2fbf83)){_0x37ee4d?(_0x2c9b37['splice'](_0x36a1d2,0x1),_0x36a1d2--):_0xd8b49e[_0x4e9b('0x5c')](_0x1917ca[_0x4e9b('0x15')]);break;}}}}if(0x0==_0x2c9b37['length'])return null;const _0x32c307=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,'join');for(const _0x4c0eb3 of this[_0x4e9b('0x43')]())if(_0x4c0eb3[_0x4e9b('0x6a')]['id']==_0x44461e['id']&&_0x4e9b('0xd2')==_0x4c0eb3[_0x4e9b('0x11d')]&&_0x4c0eb3['data'][_0x4e9b('0x1')]==_0x429fb8['formatGroupId']&&_0x4c0eb3[_0x4e9b('0x6c')]==_0x4c71d7&&(_0x32c307(_0x4c0eb3['getRanges'](),_0x2c9b37)||_0x32c307(_0x2c9b37,_0x4c0eb3[_0x4e9b('0x8a')]()))){for(const _0x33c7b1 of _0x2c9b37)_0x4c0eb3[_0x4e9b('0x74')](_0x33c7b1);return _0x4c0eb3;}const _0x4f7f2b=_0x4fbab8(),_0x8646ba=_0x44461e['id'],_0x326d59=_0x4e9b('0xf3')+_0x4c71d7,_0x2e6a10=this[_0x4e9b('0x113')]({'id':_0x4f7f2b,'type':_0x326d59,'data':_0x429fb8,'createdAt':new Date(),'authorId':_0x8646ba,'attributes':_0x4729dc});for(const _0x40f4ed of _0x2c9b37)this[_0x4e9b('0x77')](_0x326d59,_0x4f7f2b,_0x8646ba,_0x40f4ed,_0x2b860e[_0x4e9b('0xb')]());return _0x2e6a10;}['markDeletion'](_0x29120c,_0x26440d=null,_0x3a805d={}){if(_0x29120c['isCollapsed'])return null;const _0x266caa=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x262543=new _0x5e3949(_0x29120c[_0x4e9b('0xb0')],_0x29120c[_0x4e9b('0x2e')]);for(const {suggestion:_0x425a72,meta:_0x4cb168}of this[_0x4e9b('0x7a')](_0x262543,_0x4e9b('0x68')))if(_0x4cb168[_0x4e9b('0x1d')]&&!_0x4cb168[_0x4e9b('0xf')]){if(_0x425a72[_0x4e9b('0x32')]){const _0x2776df=_0x425a72['getRanges']()[_0x4e9b('0x22')](_0x18be0a=>_0x4e9b('0xaa')!=_0x18be0a['root'][_0x4e9b('0x72')]);_0x2776df[_0x4e9b('0x12e')](_0x4fdbc7=>_0x262543[_0x4e9b('0x3d')](_0x4fdbc7,!0x0))&&_0x425a72[_0x4e9b('0x7f')]();if(_0x2776df['some'](_0x3c26d8=>_0x3c26d8[_0x4e9b('0x3d')](_0x262543,!0x0))){const _0x1a17fd=this[_0x4e9b('0x73')]['getSuggestionCallback'](_0x4e9b('0x5e'),_0x26440d,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x1a17fd([_0x262543],null,_0x3a805d)),null;}}else{const _0x1856bf=_0x262543['getIntersection'](_0x425a72[_0x4e9b('0xc9')]());null!==_0x1856bf&&_0x425a72[_0x4e9b('0x6e')]([_0x1856bf],null,_0x3a805d);}}if(_0x262543[_0x4e9b('0x42')](),_0x262543[_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x262543[_0x4e9b('0x10b')][_0x4e9b('0x72')])return null;let _0x227e75=null,_0x50fa48=_0x262543[_0x4e9b('0xb0')],_0x5216be=_0x262543['end'];for(const {suggestion:_0x20aa58,meta:_0x1b8698}of this[_0x4e9b('0x7a')](_0x262543,_0x4e9b('0x5e')))if(_0x1b8698['isOwn']){if(_0x20aa58[_0x4e9b('0x32')]&&this[_0x4e9b('0x82')]){let _0x29791e=!0x0;for(const _0x2d3c19 of _0x20aa58[_0x4e9b('0x8a')]()){if(_0x2d3c19[_0x4e9b('0x3d')](_0x262543,!0x0))return _0x20aa58;_0x262543['containsRange'](_0x2d3c19)||(_0x29791e=!0x1);}_0x29791e&&_0x20aa58['discard']();}else{const _0x353421=_0x20aa58['getFirstRange']();if(_0x353421[_0x4e9b('0x3d')](_0x262543,!0x0)){if(!this[_0x4e9b('0x82')]&&_0x1b8698[_0x4e9b('0x69')])continue;return _0x20aa58;}_0x50fa48=_0x50fa48['isBefore'](_0x353421['start'])?_0x50fa48:_0x353421['start'],_0x5216be=_0x5216be[_0x4e9b('0x87')](_0x353421[_0x4e9b('0x2e')])?_0x5216be:_0x353421[_0x4e9b('0x2e')],_0x227e75?_0x353421['start'][_0x4e9b('0x26')](_0x227e75['getFirstRange']()[_0x4e9b('0xb0')])?(_0x227e75[_0x4e9b('0x123')](),_0x227e75=_0x20aa58):_0x20aa58[_0x4e9b('0x123')]():_0x227e75=_0x20aa58;}}if(_0x227e75)return this[_0x4e9b('0x120')](_0x227e75,this[_0x4e9b('0x38')]['createRange'](_0x50fa48,_0x5216be)),_0x227e75;{const _0x4e6b05=_0x4fbab8(),_0x5e5386=this['_model'][_0x4e9b('0xcb')](_0x50fa48,_0x5216be),_0x32e8de=_0x266caa['id'],_0x6893dc=_0x26440d?_0x4e9b('0x52')+_0x26440d:'deletion',_0x4b6076=this[_0x4e9b('0x113')]({'id':_0x4e6b05,'type':_0x6893dc,'createdAt':new Date(),'authorId':_0x32e8de,'attributes':_0x3a805d});return this[_0x4e9b('0x77')](_0x6893dc,_0x4e6b05,_0x32e8de,_0x5e5386),_0x4b6076;}}['markMultiRangeDeletion'](_0x4f965c,_0x5cdbc7=_0x4e9b('0x46'),_0x1a8700={}){const _0x201387=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0xc2b319=_0x4f965c[_0x4e9b('0xc0')](_0x363854=>new _0x5e3949(_0x363854[_0x4e9b('0xb0')],_0x363854[_0x4e9b('0x2e')])),_0x322c1d=new Set();for(const _0x5130f3 of _0xc2b319)for(const {suggestion:_0xce186a,meta:_0x127c94}of this[_0x4e9b('0x7a')](_0x5130f3,'insertion'))_0x127c94[_0x4e9b('0x1d')]&&!_0x127c94[_0x4e9b('0xf')]&&_0x322c1d['add'](_0xce186a);for(const _0x6b8c12 of _0x322c1d)if(_0x6b8c12['isMultiRange']){const _0x2acf67=_0x6b8c12[_0x4e9b('0x8a')]();(!_0x6b8c12[_0x4e9b('0x3a')]||!_0x6b8c12['attributes'][_0x4e9b('0x29')])&&(_0x2acf67[_0x4e9b('0x12e')](_0x9ec8a9=>_0xc2b319[_0x4e9b('0xc7')](_0x612352=>_0x612352[_0x4e9b('0x3d')](_0x9ec8a9,!0x0)))&&_0x6b8c12[_0x4e9b('0x7f')]());if(_0xc2b319[_0x4e9b('0x12e')](_0x5656df=>_0x2acf67[_0x4e9b('0xc7')](_0x4f8cd7=>_0x4f8cd7[_0x4e9b('0x3d')](_0x5656df,!0x0)))){const _0x45928f=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0x5e'),_0x5cdbc7,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x45928f(_0x4f965c,null,_0x1a8700)),null;}}else{const _0x2ac3bc=_0x6b8c12[_0x4e9b('0xc9')]();_0xc2b319[_0x4e9b('0xc7')](_0x17c044=>_0x17c044[_0x4e9b('0x3d')](_0x2ac3bc,!0x0))&&_0x6b8c12[_0x4e9b('0x7f')]();if(_0xc2b319[_0x4e9b('0x12e')](_0x47d945=>_0x2ac3bc[_0x4e9b('0x3d')](_0x47d945,!0x0))){const _0xb15a06=this[_0x4e9b('0x73')]['getSuggestionCallback'](_0x4e9b('0x5e'),_0x5cdbc7,_0x4e9b('0x39'));return this['forceDefaultExecution'](()=>_0xb15a06(_0xc2b319,null,_0x1a8700)),null;}}const _0x51935c=this[_0x4e9b('0x73')]['getSuggestionCallback']('deletion',_0x5cdbc7,_0x4e9b('0x85'));let _0x4914e1=null;for(const _0x9598a6 of this[_0x4e9b('0x43')]())if(_0x9598a6[_0x4e9b('0x6a')]['id']==_0x201387['id']&&_0x9598a6['isInContent']&&_0x4e9b('0x5e')==_0x9598a6['type']&&_0x9598a6['subType']==_0x5cdbc7&&(_0x51935c(_0x9598a6[_0x4e9b('0x8a')](),_0xc2b319)||_0x51935c(_0xc2b319,_0x9598a6[_0x4e9b('0x8a')]()))){if(_0x4914e1){if(_0x9598a6['commentThread']&&_0x9598a6[_0x4e9b('0x88')][_0x4e9b('0x70')])continue;for(const _0x14be2c of _0x9598a6['getRanges']())_0x4914e1[_0x4e9b('0x58')](_0x14be2c)||_0x4914e1['addRange'](_0x14be2c);_0x9598a6['removeMarkers']();}else{_0x4914e1=_0x9598a6;for(const _0x4e9968 of _0xc2b319)_0x9598a6['isIntersectingWithRange'](_0x4e9968)||_0x9598a6[_0x4e9b('0x74')](_0x4e9968);}}if(_0x4914e1)return _0x4914e1;_0x322c1d['clear']();for(const _0x2d27d0 of _0xc2b319)for(const {suggestion:_0x51f347,meta:_0x28ab84}of this[_0x4e9b('0x7a')](_0x2d27d0,'deletion'))_0x28ab84[_0x4e9b('0x1d')]&&_0x322c1d[_0x4e9b('0xf4')](_0x51f347);for(const _0xe1a0a8 of _0x322c1d){const _0x59f901=_0xe1a0a8[_0x4e9b('0x8a')]();if(!_0x1a8700||!_0x1a8700[_0x4e9b('0x29')]){if(_0xc2b319[_0x4e9b('0x12e')](_0x1febbc=>_0x59f901[_0x4e9b('0xc7')](_0x303e30=>_0x303e30[_0x4e9b('0x3d')](_0x1febbc,!0x0))))return _0xe1a0a8;}(!_0xe1a0a8[_0x4e9b('0x3a')]||!_0xe1a0a8[_0x4e9b('0x3a')]['skipNestingCheck'])&&(_0x59f901[_0x4e9b('0x12e')](_0x1ade87=>_0xc2b319[_0x4e9b('0xc7')](_0x49e6dd=>_0x49e6dd[_0x4e9b('0x3d')](_0x1ade87,!0x0)))&&_0xe1a0a8['discard']());}const _0x256af3=_0x4fbab8(),_0x418e1a=_0x201387['id'],_0x554499=_0x4e9b('0x52')+_0x5cdbc7,_0x62171=this[_0x4e9b('0x113')]({'id':_0x256af3,'type':_0x554499,'createdAt':new Date(),'authorId':_0x418e1a,'attributes':_0x1a8700});for(const _0x3ee350 of _0xc2b319)_0x3ee350[_0x4e9b('0x42')](),_0x3ee350[_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x3ee350[_0x4e9b('0x10b')]['rootName']||this[_0x4e9b('0x77')](_0x554499,_0x256af3,_0x418e1a,_0x3ee350,_0x2b860e['getMultiRangeId']());return _0x62171;}['_setSuggestionRange'](_0x474348,_0x5c5b59){const _0x156175=_0x474348[_0x4e9b('0xe8')]();this[_0x4e9b('0x38')][_0x4e9b('0x5a')](_0x48318f=>{_0x48318f[_0x4e9b('0x3f')](_0x156175,{'range':_0x5c5b59});});}[_0x4e9b('0xfc')](_0x3ffddd){const _0x114da3=_0x3ffddd['id'],_0x1e100b=this[_0x4e9b('0xa1')]['config'][_0x4e9b('0xc5')](_0x4e9b('0x9b'));this[_0x4e9b('0x81')][_0x4e9b('0x84')](_0x114da3)||this[_0x4e9b('0x81')][_0x4e9b('0x20')]({'channelId':_0x1e100b,'threadId':_0x114da3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f3f03=this['_commentsRepository']['getCommentThread'](_0x114da3);_0x3f3f03['unbind'](_0x4e9b('0x11e')),_0x3f3f03[_0x4e9b('0x11e')]=!0x1,_0x3ffddd[_0x4e9b('0x88')]=_0x3f3f03;}[_0x4e9b('0x53')](_0x1aa0a5,_0x44b085,_0x238fe4,_0x4c376f){if(_0x1aa0a5[_0x4e9b('0x11d')]!=_0x44b085||_0x1aa0a5[_0x4e9b('0x6c')]!=_0x238fe4||_0x1aa0a5[_0x4e9b('0xd7')]['id']!=_0x4c376f)throw this['editor'][_0x4e9b('0xbe')](_0x4e9b('0x5b')),new _0x225a88('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3dc53b,_0xaaf60f){const _0x181472=_0x3dc53b[_0x4e9b('0xc9')]();if(_0xaaf60f['isEqual'](_0x181472))_0x3dc53b[_0x4e9b('0x123')]();else{if(_0x181472[_0x4e9b('0x3d')](_0xaaf60f)){const _0x31aa58=this[_0x4e9b('0x38')]['createPositionAt'](_0xaaf60f['start'][_0x4e9b('0xa6')],_0x4e9b('0x2e'));this['_setSuggestionRange'](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x181472[_0x4e9b('0xb0')],_0x31aa58));const _0x4bc7df=_0x4fbab8(),_0x37bf22=_0x3dc53b['creator']['id'],_0x657888=_0x3dc53b[_0x4e9b('0x11d')]+':'+_0x3dc53b['subType'];this[_0x4e9b('0x113')]({'id':_0x4bc7df,'type':_0x657888,'createdAt':new Date(),'authorId':_0x37bf22,'data':_0x3dc53b[_0x4e9b('0x17')],'attributes':_0x3dc53b[_0x4e9b('0x3a')]});const _0x398fce=this[_0x4e9b('0x38')]['createPositionAt'](_0xaaf60f[_0x4e9b('0x2e')][_0x4e9b('0x106')],_0x4e9b('0xaf')),_0x1ea48d=this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x398fce,_0x181472['end']);this[_0x4e9b('0x77')](_0x657888,_0x4bc7df,_0x37bf22,_0x1ea48d);}else{if(_0x181472['containsPosition'](_0xaaf60f[_0x4e9b('0xb0')])){const _0x3535f5=this['_model']['createPositionAt'](_0xaaf60f[_0x4e9b('0xb0')][_0x4e9b('0xa6')],'end');this[_0x4e9b('0x120')](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x181472[_0x4e9b('0xb0')],_0x3535f5));}else{const _0x4915d8=this['_model']['createPositionAt'](_0xaaf60f[_0x4e9b('0x2e')]['parent'],'after');this[_0x4e9b('0x120')](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x4915d8,_0x181472[_0x4e9b('0x2e')]));}}}}['_rangeIsInLocalUserInsertion'](_0x4ad2c0){for(const {suggestion:_0x11dd87,meta:_0x19b45b}of this[_0x4e9b('0x7a')](_0x4ad2c0,_0x4e9b('0x68'))){if(!_0x19b45b[_0x4e9b('0x1d')])continue;const _0x2e22fc=_0x11dd87[_0x4e9b('0x8a')]();for(const _0x45795e of _0x2e22fc)if(!_0x4ad2c0['getDifference'](_0x45795e)[_0x4e9b('0x70')])return!0x0;}return!0x1;}[_0x4e9b('0x96')](_0x4cac67){const _0xfc2335=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['getUser'](_0x4cac67);if(!_0xfc2335)throw new _0x225a88(_0x4e9b('0x62'),this);return _0xfc2335;}[_0x4e9b('0x64')](_0x31fab1){const _0xe442d4=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f')),_0x5817bb=_0x305c8b(_0x4e9b('0xa2')+_0x31fab1),_0x34b1da=_0xe442d4[_0x4e9b('0x50')](_0x5817bb);return _0x34b1da||_0xe442d4[_0x4e9b('0x121')]({'id':_0x5817bb,'name':_0x31fab1});}['_createSuggestion'](_0xb2f8db,_0x3eef38,_0x18d80a,_0xc57ed1,_0x250532){const _0x347069=this[_0x4e9b('0x96')](_0xc57ed1),_0x30defd=this[_0x4e9b('0x73')][_0x4e9b('0x48')](_0xb2f8db,_0x3eef38,_0x18d80a,_0x347069,_0x250532,_0xbf9535=>this[_0x4e9b('0x1f')](_0x18d80a,{'attributes':_0xbf9535}));return this['listenTo'](_0x30defd,_0x4e9b('0x39'),()=>{this[_0x4e9b('0x1f')](_0x18d80a,{'state':_0x4e9b('0x131')});},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0x19')](_0x30defd,_0x4e9b('0x7f'),()=>{this[_0x4e9b('0x1f')](_0x18d80a,{'state':_0x4e9b('0x75')});},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0x7d')][_0x4e9b('0x107')](_0x18d80a,_0x30defd),this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x30defd,'notReady'),_0x30defd;}[_0x4e9b('0x4')](_0x2d2d4b){const _0x244ccc=_0x2d2d4b[_0x4e9b('0x12a')](':');return{'group':_0x244ccc[0x0],'type':_0x244ccc[0x1],'subType':_0x244ccc['length']>=0x5?_0x244ccc[0x2]:null,'id':_0x244ccc[_0x4e9b('0x70')]<0x5?_0x244ccc[0x2]:_0x244ccc[0x3],'authorId':_0x244ccc[_0x4e9b('0x70')]<0x5?_0x244ccc[0x3]:_0x244ccc[0x4],'markerCount':0x6==_0x244ccc['length']?_0x244ccc[0x5]:null};}[_0x4e9b('0x11')](_0x165fee,_0x2e5bc9,_0x7d0dee){const _0x231239=_0x165fee[_0x4e9b('0xc9')](),_0x2d6432=_0x231239[_0x4e9b('0xb0')],_0x4605dd=_0x231239[_0x4e9b('0x2e')];this[_0x4e9b('0x120')](_0x165fee,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x2d6432,_0x2e5bc9));const _0x1d39be=_0x4fbab8(),_0x41a91a=_0x165fee[_0x4e9b('0xd7')]['id'],_0x33805e=_0x165fee[_0x4e9b('0x11d')]+(_0x165fee['subType']?':'+_0x165fee[_0x4e9b('0x6c')]:'');this['_setSuggestionData']({'id':_0x1d39be,'type':_0x33805e,'createdAt':new Date(),'authorId':_0x41a91a,'originalSuggestionId':_0x165fee['id'],'attributes':_0x165fee['attributes'],'data':_0x165fee['data']}),_0x4e9b('0xd2')==_0x165fee[_0x4e9b('0x11d')]&&(_0x7d0dee=this['_model'][_0x4e9b('0xa4')](_0x7d0dee[_0x4e9b('0x106')])),this['_addSuggestionMarker'](_0x33805e,_0x1d39be,_0x41a91a,this['_model'][_0x4e9b('0xcb')](_0x7d0dee,_0x4605dd));}[_0x4e9b('0x7a')](_0x491783,_0x2e451e=null){const _0x577e63=[],_0x1b0770=this[_0x4e9b('0x38')]['schema'],_0x551735=this[_0x4e9b('0xa1')]['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'];for(const _0xeae648 of this[_0x4e9b('0x43')]())if(_0xeae648['isInContent']&&(!_0x2e451e||_0xeae648[_0x4e9b('0x11d')]==_0x2e451e))for(const _0x340c8c of _0xeae648['getRanges']()){const _0x1a95ed=_0x491783[_0x4e9b('0xb0')][_0x4e9b('0x55')](_0x340c8c['end'])||_0x491783[_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x340c8c['start']);if(_0x1a95ed||_0x491783[_0x4e9b('0x112')](_0x340c8c)){const _0x5079f4=_0x491783['containsRange'](_0x340c8c)&&Bt(_0x1b0770,_0x340c8c[_0x4e9b('0xb0')],_0x491783),_0x422a8c=_0x340c8c[_0x4e9b('0x3d')](_0x491783)&&Bt(_0x1b0770,_0x491783['start'],_0x340c8c);_0x577e63[_0x4e9b('0x13')]({'suggestion':_0xeae648,'meta':{'isOwn':_0x551735==_0xeae648[_0x4e9b('0x6a')],'isNextTo':_0x1a95ed,'isInsideObject':_0x5079f4,'containsRangeInObject':_0x422a8c}});break;}}return _0x577e63;}[_0x4e9b('0x77')](_0x497840,_0x5d15de,_0x29a935,_0x5166cd,_0xbd9318){this[_0x4e9b('0x38')][_0x4e9b('0x5a')](_0x4a84a3=>{let _0x52bc20=_0x4e9b('0x45')+_0x497840+':'+_0x5d15de+':'+_0x29a935;_0xbd9318&&(_0x52bc20=_0x52bc20+':'+_0xbd9318),_0x4a84a3['addMarker'](_0x52bc20,{'range':_0x5166cd,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4e9b('0x10')](_0x85229f){const _0x507a8f=_0x85229f['previous'],_0x414d6e=_0x85229f['next'];_0x85229f['previous']=null,null!=_0x507a8f&&(_0x507a8f['next']=null),_0x85229f[_0x4e9b('0x11f')]=null,null!=_0x414d6e&&(_0x414d6e[_0x4e9b('0x118')]=null),_0x4e9b('0xec')==this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x85229f)&&(this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x85229f,_0x4e9b('0xee')),this['fire'](_0x4e9b('0xd1'),_0x85229f,_0x507a8f,_0x414d6e));}[_0x4e9b('0x113')](_0x157a14){const _0x583620=_0x157a14['id'],_0x1ab97f=this[_0x4e9b('0x116')](_0x157a14);if(this[_0x4e9b('0x1a')]&&this['_adapter']['addSuggestion']){const _0x4c4612=this['editor'][_0x4e9b('0xe6')]['get'](_0x4e9b('0xb8')),_0x204cec=_0x1ab97f[_0x4e9b('0xc8')],_0x3d84b3=_0x1ab97f['subType']?_0x1ab97f[_0x4e9b('0x11d')]+':'+_0x1ab97f[_0x4e9b('0x6c')]:_0x1ab97f[_0x4e9b('0x11d')],_0x2fce71=this[_0x4e9b('0xa1')]['locale'],_0x32ee8f=_0x4c4612[_0x4e9b('0xf4')](_0x2d35a6(_0x2fce71,'PENDING_ACTION_SUGGESTION')),_0x2b7b03={'id':_0x583620,'type':_0x3d84b3,'hasComments':_0x204cec,'data':_0x157a14[_0x4e9b('0x17')]||null,'originalSuggestionId':_0x157a14[_0x4e9b('0x8d')]||null,'attributes':_0x1ab97f[_0x4e9b('0x3a')]};this[_0x4e9b('0x1a')][_0x4e9b('0x28')](_0x2b7b03)[_0x4e9b('0x95')](_0x331e4f=>{_0x1ab97f['_saved']=!0x0,_0x4c4612[_0x4e9b('0x11a')](_0x32ee8f),_0x331e4f&&_0x331e4f['createdAt']&&(this['_suggestions']['get'](_0x583620)[_0x4e9b('0xb5')]=_0x331e4f[_0x4e9b('0xb5')]);})[_0x4e9b('0x9')](_0x246e95=>{throw _0x37bdeb(_0x4e9b('0x34')),this[_0x4e9b('0xa1')][_0x4e9b('0x125')][_0x4e9b('0x10f')]({'isUndoable':!0x1},()=>{_0x1ab97f['discard']();}),_0x1ab97f[_0x4e9b('0x8c')](),this[_0x4e9b('0x7d')][_0x4e9b('0xc')](_0x1ab97f['id']),this[_0x4e9b('0xce')][_0x4e9b('0xc')](_0x1ab97f),_0x246e95;});}return _0x1ab97f;}[_0x4e9b('0x1f')](_0x2a278c,_0x9007ce){const _0x54646e=this['editor']['plugins'][_0x4e9b('0xc5')]('PendingActions'),_0x2d8396=this[_0x4e9b('0x25')](_0x2a278c);if(this[_0x4e9b('0x1a')]&&this[_0x4e9b('0x1a')][_0x4e9b('0xd3')]){if(_0x2d8396[_0x4e9b('0x12f')]){const _0x3e087f=_0x54646e[_0x4e9b('0xf4')](_0x2d35a6(this['editor'][_0x4e9b('0xc6')],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x4e9b('0xd3')](_0x2a278c,_0x9007ce)['then'](()=>{_0x54646e[_0x4e9b('0x11a')](_0x3e087f);});}else _0x2d8396['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2a278c,_0x9007ce);});}}['_getSuggestionData'](_0x4a7df6){if(!this[_0x4e9b('0x1a')]||!this[_0x4e9b('0x1a')][_0x4e9b('0x25')])throw new _0x225a88('track-changes-adapter-missing-getsuggestion',this);return this[_0x4e9b('0x1a')][_0x4e9b('0x25')](_0x4a7df6);}[_0x4e9b('0x110')](_0x1f3a3){const {id:_0x4f35c6,type:_0x4a4d5a,subType:_0x5e3d60,authorId:_0x81b782}=this[_0x4e9b('0x4')](_0x1f3a3),_0x486764=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x4f35c6)||this[_0x4e9b('0x2f')](_0x4a4d5a,_0x5e3d60,_0x4f35c6,_0x81b782,{});switch(this[_0x4e9b('0x53')](_0x486764,_0x4a4d5a,_0x5e3d60,_0x81b782),this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x486764)){case _0x4e9b('0x9a'):this[_0x4e9b('0xd9')](_0x4f35c6)['then'](_0x2caa61=>{let _0x5094cb=Promise['resolve']();_0x2caa61[_0x4e9b('0xc8')]&&(_0x5094cb=this[_0x4e9b('0x81')][_0x4e9b('0xb2')]({'channelId':this[_0x4e9b('0xa1')][_0x4e9b('0x126')][_0x4e9b('0xc5')](_0x4e9b('0x9b')),'threadId':_0x4f35c6})),_0x5094cb[_0x4e9b('0x95')](()=>{this[_0x4e9b('0x116')](_0x2caa61)['_saved']=!0x0;});}),this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x486764,_0x4e9b('0x109'));break;case _0x4e9b('0xee'):this[_0x4e9b('0x1f')](_0x4f35c6,{'state':'open'});case'dataReady':this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x486764,_0x4e9b('0xec')),this['fire'](_0x4e9b('0x2d'),_0x486764);break;case _0x4e9b('0xec'):this[_0x4e9b('0x98')](_0x4e9b('0x66'),_0x486764);}return _0x486764['addMarkerName'](_0x1f3a3),_0x486764;}[_0x4e9b('0x4a')](_0x2fa343){const _0x4dad43=Array[_0x4e9b('0x122')](_0x2fa343)[_0x4e9b('0x22')](_0x457ee8=>!_0x457ee8['isMultiRange']),_0x1241bf=this[_0x4e9b('0x43')]({'skipNotAttached':!0x0})['filter'](_0x259d33=>!_0x259d33[_0x4e9b('0x32')]),_0x493cee=_0x1241bf['filter'](_0x155be0=>!_0x2fa343[_0x4e9b('0x3c')](_0x155be0)),_0x16500b=new Map(_0x1241bf[_0x4e9b('0xc0')](_0x4470c2=>[_0x4470c2,this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4470c2[_0x4e9b('0x11d')],_0x4470c2['subType'],_0x4e9b('0x132'))])),_0x574336=new Map(_0x1241bf[_0x4e9b('0xc0')](_0x3642f0=>[_0x3642f0,_0x3642f0[_0x4e9b('0xc9')]()])),_0x17f643=new Set(),_0x45525e=new Set();for(let _0x30b661=0x0;_0x30b661<_0x4dad43[_0x4e9b('0x70')];_0x30b661++)_0x3b01fb(_0x4dad43[_0x30b661],_0x4dad43,_0x30b661+0x1);for(let _0x31445a=0x0;_0x31445a<_0x4dad43[_0x4e9b('0x70')];_0x31445a++)_0x3b01fb(_0x4dad43[_0x31445a],_0x493cee,0x0);for(let _0xfa21ee=0x0;_0xfa21ee<_0x4dad43[_0x4e9b('0x70')];_0xfa21ee++){const _0x486c9d=_0x4dad43[_0xfa21ee];!_0x45525e[_0x4e9b('0x3c')](_0x486c9d)&&_0x486c9d[_0x4e9b('0x118')]&&(_0x486c9d[_0x4e9b('0x118')][_0x4e9b('0x11f')]===_0x486c9d&&(_0x486c9d['previous'][_0x4e9b('0x11f')]=null),_0x486c9d['previous']=null),!_0x17f643[_0x4e9b('0x3c')](_0x486c9d)&&_0x486c9d[_0x4e9b('0x11f')]&&(_0x486c9d[_0x4e9b('0x11f')][_0x4e9b('0x118')]===_0x486c9d&&(_0x486c9d[_0x4e9b('0x11f')][_0x4e9b('0x118')]=null),_0x486c9d['next']=null);}function _0x3b01fb(_0x11b680,_0x35d6df,_0x1393b1){for(let _0x94fd22=_0x1393b1;_0x94fd22<_0x35d6df[_0x4e9b('0x70')];_0x94fd22++){const _0xd67301=_0x2f24ae(_0x11b680,_0x35d6df[_0x94fd22]);_0xd67301&&(_0xd67301[0x0][_0x4e9b('0x11f')]=_0xd67301[0x1],_0xd67301[0x1][_0x4e9b('0x118')]=_0xd67301[0x0],_0x17f643[_0x4e9b('0xf4')](_0xd67301[0x0]),_0x45525e[_0x4e9b('0xf4')](_0xd67301[0x1]));}}function _0x2f24ae(_0x2076ce,_0x4a5c2a){if(_0x2076ce[_0x4e9b('0x6a')]['id']!==_0x4a5c2a[_0x4e9b('0x6a')]['id'])return null;const _0x1ecfc0=_0x16500b[_0x4e9b('0xc5')](_0x2076ce)(_0x2076ce,_0x4a5c2a,_0x574336[_0x4e9b('0xc5')](_0x2076ce),_0x574336[_0x4e9b('0xc5')](_0x4a5c2a));if(!_0x1ecfc0)return null;return _0x16500b[_0x4e9b('0xc5')](_0x4a5c2a)(_0x2076ce,_0x4a5c2a,_0x574336[_0x4e9b('0xc5')](_0x2076ce),_0x574336[_0x4e9b('0xc5')](_0x4a5c2a))?_0x1ecfc0[0x1]['commentThread']&&_0x1ecfc0[0x1][_0x4e9b('0x88')][_0x4e9b('0x70')]?null:_0x1ecfc0:null;}}[_0x4e9b('0x54')](_0x28ad50){const _0x33cd05=Array[_0x4e9b('0x122')](_0x28ad50),_0x59469f=this[_0x4e9b('0x43')]({'skipNotAttached':!0x0}),_0x5ca9b2=_0x59469f[_0x4e9b('0x22')](_0x170300=>!_0x28ad50['has'](_0x170300)),_0x271f49=new Map(_0x33cd05[_0x4e9b('0xc0')](_0x446b06=>[_0x446b06,this['_suggestionFactory'][_0x4e9b('0x51')](_0x446b06[_0x4e9b('0x11d')],_0x446b06[_0x4e9b('0x6c')],'join')])),_0x35eecc=new Map(_0x59469f[_0x4e9b('0xc0')](_0x39c205=>[_0x39c205,_0x39c205[_0x4e9b('0x8a')]()]));for(let _0x302c65=0x0;_0x302c65<_0x33cd05[_0x4e9b('0x70')];_0x302c65++){if(_0x37ffb8(this,_0x33cd05[_0x302c65],_0x33cd05,_0x302c65+0x1))return!0x0;}for(let _0x1e17b6=0x0;_0x1e17b6<_0x33cd05[_0x4e9b('0x70')];_0x1e17b6++){if(_0x37ffb8(this,_0x33cd05[_0x1e17b6],_0x5ca9b2,0x0))return!0x0;}return!0x1;function _0x37ffb8(_0x4da458,_0x4fd019,_0x5d9b91,_0x188893){for(let _0x5d8df2=_0x188893;_0x5d8df2<_0x5d9b91[_0x4e9b('0x70')];_0x5d8df2++){const _0x123806=_0x5d9b91[_0x5d8df2];if(_0x123806[_0x4e9b('0x11d')]!==_0x4fd019['type']||_0x123806[_0x4e9b('0x6a')]['id']!==_0x4fd019['author']['id']||_0x123806[_0x4e9b('0x6c')]!==_0x4fd019[_0x4e9b('0x6c')])continue;const _0x290208=_0x271f49['get'](_0x4fd019),_0x54b416=_0x35eecc[_0x4e9b('0xc5')](_0x4fd019),_0x17930f=_0x35eecc['get'](_0x123806),_0x587600=_0x4fd019[_0x4e9b('0x88')]&&_0x4fd019[_0x4e9b('0x88')][_0x4e9b('0x70')],_0x4394ff=_0x123806[_0x4e9b('0x88')]&&_0x123806['commentThread']['length'];if(!_0x587600&&_0x290208(_0x17930f,_0x54b416))return _0x4da458[_0x4e9b('0x92')](_0x123806,_0x4fd019),_0x35eecc[_0x4e9b('0xc')](_0x4fd019),!0x0;if(!_0x4394ff&&_0x290208(_0x54b416,_0x17930f))return _0x4da458[_0x4e9b('0x92')](_0x4fd019,_0x123806),_0x35eecc[_0x4e9b('0xc')](_0x123806),!0x0;}return!0x1;}}[_0x4e9b('0x92')](_0x5e415b,_0x3f9cd4){if(_0x5e415b['isMultiRange'])for(const _0x22bb6a of _0x3f9cd4[_0x4e9b('0x8a')]())_0x5e415b[_0x4e9b('0x74')](_0x22bb6a);else{const _0x43a930=_0x3f9cd4['getFirstRange']()[_0x4e9b('0x2e')];this[_0x4e9b('0x120')](_0x5e415b,this['_model']['createRange'](_0x5e415b[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')],_0x43a930));}_0x3f9cd4[_0x4e9b('0x123')]();}}class Dt{constructor(_0x25a74d){this['_editor']=_0x25a74d,this[_0x4e9b('0x38')]=_0x25a74d['model'],this[_0x4e9b('0xfe')]=new Map(),this[_0x4e9b('0x6f')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4e9b('0x48')](_0xe5b9d8,_0x58c4e6,_0x60d45d,_0x49e70c,_0x461649,_0x1add7e){return new _0x2b860e(this['_model'],{'type':_0xe5b9d8,'subType':_0x58c4e6,'id':_0x60d45d,'author':_0x49e70c,'creator':_0x49e70c,'attributes':_0x461649,'onAttributesChange':_0x1add7e,'onAccept':(..._0x140edb)=>this[_0x4e9b('0x51')](_0xe5b9d8,_0x58c4e6,_0x4e9b('0x39'))(..._0x140edb),'onDiscard':(..._0x47bdf6)=>this[_0x4e9b('0x51')](_0xe5b9d8,_0x58c4e6,_0x4e9b('0x7f'))(..._0x47bdf6)});}[_0x4e9b('0xc1')](_0x105a08,_0x2754ab,_0x20b50d,_0x55c3ac){const _0x577ab7=_0x105a08+':'+_0x2754ab+':'+_0x20b50d;this['_customCallbacks'][_0x4e9b('0x107')](_0x577ab7,_0x55c3ac);}[_0x4e9b('0x51')](_0x1249f9,_0x307b29,_0x5576ab){const _0x5bb705=_0x1249f9+':'+_0x307b29+':'+_0x5576ab;return this['_customCallbacks']['get'](_0x5bb705)||this['_defaultCallbacks'][_0x4e9b('0xc5')](_0x1249f9+':'+_0x5576ab);}[_0x4e9b('0x90')](){const _0x11b67a=()=>{},_0x2679e7=_0x22f951=>{_0x22f951['sort']((_0x324a48,_0x24adee)=>_0x324a48[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x24adee[_0x4e9b('0xb0')])?0x1:-0x1),this['_model'][_0x4e9b('0x5a')](_0x19e62c=>{for(const _0x5290be of _0x22f951){let _0x4d9af0;_0x4d9af0=_0x5290be['end'][_0x4e9b('0x63')]&&_0x5290be[_0x4e9b('0x2e')][_0x4e9b('0x106')]==_0x5290be[_0x4e9b('0xb0')][_0x4e9b('0xae')]?_0x19e62c[_0x4e9b('0x94')](_0x5290be[_0x4e9b('0xb0')][_0x4e9b('0xae')],'on'):_0x19e62c[_0x4e9b('0x94')](_0x5290be),this[_0x4e9b('0x38')][_0x4e9b('0x57')](_0x4d9af0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2b50cc=(_0x4749fa,_0x262d09)=>{this['_model'][_0x4e9b('0x5a')](_0x3b9f3a=>{const {commandName:_0x2c6982,commandParams:_0x43966c=[]}=_0x262d09,_0x91383a=_0x4749fa[_0x4e9b('0xc0')](_0x5a3f35=>(_t(_0x5a3f35)&&(_0x5a3f35=this['_model'][_0x4e9b('0xcb')](_0x5a3f35[_0x4e9b('0x2e')])),_0x5a3f35))[_0x4e9b('0x22')](_0x459e2d=>_0x4e9b('0xaa')!==_0x459e2d['root']['rootName']);if(_0x91383a['length']<0x1)return;const _0x1f94b9=Array['from'](this[_0x4e9b('0x38')]['document'][_0x4e9b('0xa9')][_0x4e9b('0x8a')]())[_0x4e9b('0xc0')](_0x32662d=>_0x5e3949[_0x4e9b('0x41')](_0x32662d));_0x3b9f3a[_0x4e9b('0xb1')](_0x91383a);for(const _0x3f14a9 of this['_editor'][_0x4e9b('0xf5')]['commands']())_0x3f14a9['refresh']();_0x43966c[_0x4e9b('0x13')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4e9b('0x9c')](_0x2c6982,..._0x43966c);const _0x9f5973=_0x1f94b9[_0x4e9b('0x22')](_0x1f03f8=>'$graveyard'!=_0x1f03f8[_0x4e9b('0x10b')][_0x4e9b('0x72')]);_0x9f5973[_0x4e9b('0x70')]>0x0&&_0x3b9f3a[_0x4e9b('0xb1')](_0x9f5973);for(const _0x38ad78 of _0x1f94b9)_0x38ad78['detach']();});},_0x676c69=(_0x5a0bd6,_0x3ad73f)=>0x1==_0x5a0bd6[_0x4e9b('0x70')]&&0x1==_0x3ad73f[_0x4e9b('0x70')]&&_0x5a0bd6[0x0][_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x3ad73f[0x0][_0x4e9b('0xb0')]),_0xe0c28e=(_0x5c7170,_0x2b1e14,_0x978bee,_0xfa6355)=>xt(_0x5c7170,_0x2b1e14,_0x978bee,_0xfa6355,this[_0x4e9b('0x38')])?[_0x5c7170,_0x2b1e14]:xt(_0x2b1e14,_0x5c7170,_0xfa6355,_0x978bee,this[_0x4e9b('0x38')])?[_0x2b1e14,_0x5c7170]:null;this['_defaultCallbacks'][_0x4e9b('0x107')](_0x4e9b('0x12c'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x97'),_0x2679e7),this[_0x4e9b('0x6f')]['set']('insertion:join',_0x676c69),this[_0x4e9b('0x6f')]['set'](_0x4e9b('0x133'),_0xe0c28e),this[_0x4e9b('0x6f')][_0x4e9b('0x107')]('deletion:accept',_0x2679e7),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xa0'),_0x11b67a),this[_0x4e9b('0x6f')]['set']('deletion:join',_0x676c69),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x8e'),_0xe0c28e),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x80'),_0x2b50cc),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x7b'),_0x11b67a),this[_0x4e9b('0x6f')]['set']('formatInline:join',_0x676c69),this[_0x4e9b('0x6f')]['set'](_0x4e9b('0xdf'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x23'),_0x2b50cc),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xc4'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xeb'),_0x676c69),this['_defaultCallbacks'][_0x4e9b('0x107')](_0x4e9b('0xf8'),_0x11b67a);}}function Bt(_0x59bed9,_0x26624f,_0x19b72c){for(const _0x5096c5 of _0x26624f[_0x4e9b('0x106')][_0x4e9b('0xb3')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5096c5[_0x4e9b('0x10b')]==_0x5096c5)return!0x1;if(!_0x19b72c[_0x4e9b('0xff')](_0x5096c5))return!0x1;if(_0x59bed9['isObject'](_0x5096c5)||_0x59bed9['isLimit'](_0x5096c5))return!0x0;}return!0x1;}function _t(_0x169317){return _0x169317['end'][_0x4e9b('0x106')]==_0x169317['start'][_0x4e9b('0xae')]&&_0x169317[_0x4e9b('0x2e')][_0x4e9b('0x119')];}function Mt(_0xfba5b4,_0x83e4a6,_0x1e1ee1,_0x24cd97){const _0x3967e6=_0x29a649=>!_0x29a649['item']['is'](_0x4e9b('0xe5'))&&!_0x24cd97[_0x4e9b('0xbc')](_0x29a649[_0x4e9b('0x124')]),_0x58ab26=_0xfba5b4[_0x4e9b('0xb0')][_0x4e9b('0xad')](_0x3967e6),_0x158298=_0xfba5b4['end'][_0x4e9b('0xad')](_0x3967e6,{'direction':_0x4e9b('0x3e')});return(!_0xfba5b4['start'][_0x4e9b('0x55')](_0x58ab26)||!_0xfba5b4['end'][_0x4e9b('0x55')](_0x158298))&&(_0x58ab26['isBefore'](_0x158298)?_0x1e1ee1[_0x4e9b('0x3f')](_0x83e4a6,{'range':_0x1e1ee1['createRange'](_0x58ab26,_0x158298)}):_0x1e1ee1[_0x4e9b('0x5c')](_0x83e4a6),!0x0);}function $t(_0x40b196){return _0x305c8b(_0x40b196);}function Nt(_0x23b705){const _0x4e7dd9=_0x23b705[_0x4e9b('0xb0')][_0x4e9b('0xae')];return _0x4e7dd9&&_0x4e7dd9['is'](_0x4e9b('0x5'));}function Rt(_0x233f96,_0x5f3e9b){const _0x5ab231=_0x5f3e9b[_0x4e9b('0xa5')]['isObject'](_0x233f96)||_0x5f3e9b[_0x4e9b('0xa5')]['isSelectable'](_0x233f96);return _0x5f3e9b[_0x4e9b('0xcb')](_0x5f3e9b[_0x4e9b('0x3')](_0x233f96,_0x4e9b('0xcd')),_0x5ab231?_0x5f3e9b[_0x4e9b('0xb7')](_0x233f96):_0x5f3e9b[_0x4e9b('0x3')](_0x233f96,_0x4e9b('0x2e')));}function xt(_0x415dc4,_0xf96d60,_0x501e2a,_0x142d9b,_0xe3a3ff){if(_0x501e2a[_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x142d9b[_0x4e9b('0xb0')]))return!0x0;if(_0x415dc4['type']!=_0xf96d60['type'])return!0x1;if(!_0x501e2a['end'][_0x4e9b('0x60')](_0x142d9b[_0x4e9b('0xb0')]))return!0x1;const _0xc6677=_0xe3a3ff[_0x4e9b('0xcb')](_0x501e2a[_0x4e9b('0x2e')],_0x142d9b[_0x4e9b('0xb0')])[_0x4e9b('0x5d')]();for(const _0x5bc801 of _0xc6677)if(['elementStart',_0x4e9b('0x10c')][_0x4e9b('0xd4')](_0x5bc801['type'])&&_0xe3a3ff[_0x4e9b('0xa5')]['isLimit'](_0x5bc801[_0x4e9b('0x124')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5493=['_updateController','addComment','plugins','head','get','getSuggestion','suggestionLoaded','_destroyController','has','keys','isMultiRange','Accept\x20all\x20suggestions','hasSuggestion','buttonView','config','remove','commands','getJoined','comments.editorConfig','switchbutton','editor','TrackChangesEditing','_refreshActiveMarkers','_disableComments','registerAnnotation','Discard\x20all\x20selected\x20suggestions','map','commandName','Annotations','delete','change:activeAnnotations','Accept\x20all\x20selected\x20suggestions','comments.maxCommentsWhenCollapsed','requires','getMarkerNames','_handleControllerBuffer','comments.maxThreadTotalWeight','length','createAnnotationView','locale','mainView','bind','editing','filter','add','getFirstRange','type','listenTo','CommentsUI','activeAnnotations','refreshSelectedViews','size','focus','value','Discard\x20all\x20suggestions','init','some','lowest','CommentsRepository','comments','model','set','destroy','suggestion-','addSourceCollector','isOn','_annotationViews','EditorAnnotations','innerView','trackChanges.SuggestionThreadView','source','actionView','Track\x20changes','pluginName','CommentView','suggestionChanged','previous','_handleSuggestionControllerDelayed','discardAllSuggestions','unbind','trackChanges.disableComments','arrowView','getRanges','SuggestionThreadView','_initializeController','push','TrackChangesUI','componentFactory','acceptSelectedSuggestions','getMarkers','suggestionUnloaded','acceptAllSuggestions','execute','getDescriptions','descriptionParts','reduce','isEnabled','activeMarkers','_viewToController','stopListening','acceptButton','define','button','separator','isInContent','comments.maxCommentCharsWhenCollapsed','_descriptionFactory','_suggestionToController','getAllAdjacentSuggestions','clear','trackChanges','_createUIButton','from','change:previous','isDirty','view','discardSelectedSuggestions','toMany'];(function(_0x3d27e6,_0x5493a0){const _0x99521b=function(_0x3bc1f5){while(--_0x3bc1f5){_0x3d27e6['push'](_0x3d27e6['shift']());}};_0x99521b(++_0x5493a0);}(_0x5493,0x165));const _0x9952=function(_0x3d27e6,_0x5493a0){_0x3d27e6=_0x3d27e6-0x0;let _0x99521b=_0x5493[_0x3d27e6];return _0x99521b;};import{Plugin as _0x62471d}from'ckeditor5/src/core';import{Collection as _0x223b16}from'ckeditor5/src/utils';import{Model as _0x5ae391,SplitButtonView as _0x5bb54a,createDropdown as _0x252fc6,addListToDropdown as _0x4cc014}from'ckeditor5/src/ui';import{Users as _0x5012ac,getDateTimeFormatter as _0x2a0970,getAllMarkersDomElementsSorted as _0x7f301}from'ckeditor5-collaboration/src/collaboration-core';import _0x59d46a from'./trackchangesediting';import _0xcef13b from'./ui/suggestioncontroller';import _0x605b50 from'./ui/view/suggestionthreadview';import{getTranslation as _0x49db51}from'./utils/common-translations';import _0x4778fb from'../theme/icons/track-changes.svg';export default class d extends _0x62471d{static get[_0x9952('0x1e')](){return[_0x59d46a,_0x5012ac,_0x9952('0x37'),_0x9952('0x19'),_0x9952('0x40')];}static get[_0x9952('0x46')](){return _0x9952('0x53');}constructor(_0x58aa95){super(_0x58aa95),this[_0x9952('0x68')]=new Map(),this['_viewToController']=new Map(),this[_0x9952('0x3f')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x220974=this[_0x9952('0x11')][_0x9952('0xb')];_0x220974[_0x9952('0x62')](_0x9952('0x42'),_0x605b50),_0x220974[_0x9952('0x62')]('trackChanges.disableComments',!0x1),this[_0x9952('0x14')]=_0x220974[_0x9952('0x1')](_0x9952('0x4d'));}['_handleSuggestionControllerDelayed'](_0x314f3e,_0x50aa33){0x0===this[_0x9952('0x20')][_0x9952('0x30')]&&setTimeout(()=>{for(const [_0x5b56cd,_0x34d3aa]of this[_0x9952('0x20')]){const _0x188775=this[_0x9952('0x68')][_0x9952('0x5')](_0x5b56cd);_0x188775||_0x34d3aa?_0x188775&&_0x34d3aa&&this['_destroyController'](_0x5b56cd):this[_0x9952('0x51')](_0x5b56cd);}this[_0x9952('0x11')][_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x40'))[_0x9952('0x2f')](),this[_0x9952('0x13')](),this[_0x9952('0x20')][_0x9952('0x6a')]();},0xa),this[_0x9952('0x20')][_0x9952('0x3a')](_0x314f3e,_0x50aa33);}[_0x9952('0x34')](){const _0xfb200e=this[_0x9952('0x11')],_0x4f7cc6=_0xfb200e[_0x9952('0x75')]['get'](_0x9952('0x12')),_0xd88bc6=_0xfb200e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x19')),_0x36b6bc=_0xfb200e[_0x9952('0x75')][_0x9952('0x1')]('EditorAnnotations'),_0x1237e1=_0xfb200e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x37'));_0xfb200e['ui'][_0x9952('0x54')][_0x9952('0x29')](_0x9952('0x6b'),_0x179afc=>this[_0x9952('0x6c')](_0x179afc)),_0x36b6bc[_0x9952('0x3d')](()=>{const _0x363db6=[];for(const [_0x1f5b86,_0x51d394]of Array[_0x9952('0x6d')](this['_suggestionToController'])){const _0x585e60=_0x1f5b86[_0x9952('0x69')](),_0x12f916=[];for(const _0x2c3fc6 of _0x585e60){if(!_0x2c3fc6[_0x9952('0x65')])continue;if(_0x2c3fc6[_0x9952('0x7')]){_0x12f916[_0x9952('0x52')](..._0x2c3fc6[_0x9952('0x4f')]());continue;}const _0x553e6a=_0x2c3fc6[_0x9952('0x2a')]();if(_0x12f916[_0x9952('0x22')]>0x0){const _0x3bf9f4=_0x12f916[0x0][_0x9952('0xe')](_0x553e6a);if(_0x3bf9f4){_0x12f916[0x0]=_0x3bf9f4;continue;}}_0x12f916[_0x9952('0x52')](_0x553e6a);}_0x363db6[_0x9952('0x52')]([_0x51d394[_0x9952('0x70')],_0x12f916]);}return _0x363db6;}),this['listenTo'](_0x4f7cc6,_0x9952('0x3'),(_0x4e7451,_0x13889e)=>{this[_0x9952('0x2c')](_0x13889e,_0x9952('0x6e'),(_0x2903b1,_0x90cda2,_0x257f8a,_0x226be2)=>{_0x13889e[_0x9952('0x65')]&&(null==_0x257f8a?(this[_0x9952('0x73')](_0x226be2[_0x9952('0x0')]),this[_0x9952('0x4a')](_0x13889e,!0x1)):(this[_0x9952('0x73')](_0x257f8a[_0x9952('0x0')]),this['_handleSuggestionControllerDelayed'](_0x13889e,!0x0)));}),null===_0x13889e[_0x9952('0x49')]?this['_handleSuggestionControllerDelayed'](_0x13889e,!0x1):this[_0x9952('0x73')](_0x13889e[_0x9952('0x0')]);}),this[_0x9952('0x2c')](_0x4f7cc6,_0x9952('0x57'),(_0x57521d,_0x4808b7,_0x226c4f)=>{this[_0x9952('0x60')](_0x4808b7,_0x9952('0x6e')),this[_0x9952('0x20')][_0x9952('0x1a')](_0x4808b7);const _0x18253c=_0x226c4f?_0x226c4f[_0x9952('0x0')]:_0x4808b7,_0x11d894=this[_0x9952('0x68')][_0x9952('0x1')](_0x18253c);null!==_0x226c4f&&this[_0x9952('0x73')](_0x18253c),null===_0x226c4f&&_0x11d894&&this[_0x9952('0x4')](_0x4808b7);}),this[_0x9952('0x2c')](_0x4f7cc6,_0x9952('0x48'),(_0x23a618,_0x2524de)=>{this[_0x9952('0x73')](_0x2524de);}),this[_0x9952('0x2c')](_0xd88bc6,_0x9952('0x1b'),()=>{this[_0x9952('0x13')]();}),this[_0x9952('0x2c')](_0x1237e1,_0x9952('0x74'),(_0x1fa383,{threadId:_0x2880dc,isFromAdapter:_0x4b4f9e})=>{if(_0x4b4f9e||!_0x4f7cc6[_0x9952('0x9')](_0x2880dc))return;const _0x56a10d=_0x4f7cc6[_0x9952('0x2')](_0x2880dc);this[_0x9952('0x68')][_0x9952('0x1')](_0x56a10d)[_0x9952('0x70')]['focus']();},{'priority':_0x9952('0x36')});}[_0x9952('0x13')](){const _0x38f57f=this[_0x9952('0x11')]['plugins'][_0x9952('0x1')](_0x9952('0x19')),_0x34e9f1=this[_0x9952('0x11')][_0x9952('0x75')][_0x9952('0x1')]('TrackChangesEditing'),_0x1684b4=Array[_0x9952('0x6d')](_0x38f57f[_0x9952('0x2e')],_0xf9e46e=>_0xf9e46e[_0x9952('0x41')])[_0x9952('0x28')](_0x31ceca=>this['_viewToController'][_0x9952('0x5')](_0x31ceca)),_0xbbd7ab=[];for(const _0xe00896 of _0x1684b4){const _0x1f099b=this['_viewToController']['get'](_0xe00896)[_0x9952('0x39')][_0x9952('0x69')]();_0xbbd7ab['push'](..._0x1f099b[_0x9952('0x5c')]((_0x55e9fb,_0x2fa613)=>[..._0x55e9fb,..._0x2fa613[_0x9952('0x1f')]()],[]));}_0x34e9f1[_0x9952('0x5e')]=_0xbbd7ab;}[_0x9952('0x6c')](_0x5a6470){const _0x3832e0=_0x252fc6(_0x5a6470,_0x5bb54a),_0x4691c5=this[_0x9952('0x11')][_0x9952('0xd')][_0x9952('0x1')](_0x9952('0x6b')),_0x2fe7d1=_0x49db51(_0x5a6470,_0x9952('0x45'));_0x3832e0['buttonView'][_0x9952('0x3a')]({'tooltip':_0x2fe7d1,'label':_0x2fe7d1,'icon':_0x4778fb}),_0x3832e0[_0x9952('0xa')]['bind']('isOn')['to'](_0x4691c5,_0x9952('0x32')),_0x3832e0[_0x9952('0xa')]['on'](_0x9952('0x59'),()=>{_0x4691c5[_0x9952('0x59')](),this[_0x9952('0x11')][_0x9952('0x27')][_0x9952('0x70')][_0x9952('0x31')]();});const _0x1d6410=new _0x223b16(),_0x3db02d=[{'type':_0x9952('0x10'),'model':{'withText':!0x0,'label':_0x2fe7d1,'commandName':_0x9952('0x6b')}},{'type':_0x9952('0x64')},{'type':_0x9952('0x63'),'model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x8')),'commandName':_0x9952('0x58')}},{'type':_0x9952('0x63'),'model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x1c')),'commandName':_0x9952('0x55')}},{'type':_0x9952('0x63'),'model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x33')),'commandName':_0x9952('0x4b')}},{'type':'button','model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x16')),'commandName':_0x9952('0x71')}}];for(const _0x202231 of _0x3db02d){let _0x44e8cd={'type':_0x9952('0x64')};if(_0x202231[_0x9952('0x39')]){const _0x2fe58a=new _0x5ae391(_0x202231[_0x9952('0x39')]),_0x39eef4=this[_0x9952('0x11')]['commands']['get'](_0x2fe58a['commandName']);_0x2fe58a[_0x9952('0x26')](_0x9952('0x3e'),'isEnabled')['to'](_0x39eef4,_0x9952('0x32'),_0x9952('0x5d')),_0x44e8cd={'type':_0x202231[_0x9952('0x2b')],'model':_0x2fe58a};}_0x1d6410[_0x9952('0x29')](_0x44e8cd);}_0x4cc014(_0x3832e0,_0x1d6410);const _0x51a0b3=_0x3db02d[_0x9952('0x28')](_0x13cac1=>null!=_0x13cac1[_0x9952('0x39')])[_0x9952('0x17')](_0x572d96=>this[_0x9952('0x11')][_0x9952('0xd')][_0x9952('0x1')](_0x572d96[_0x9952('0x39')][_0x9952('0x18')])),_0x3be6f2=_0x3832e0[_0x9952('0xa')];return _0x3be6f2[_0x9952('0x44')]['unbind'](_0x9952('0x5d')),_0x3be6f2[_0x9952('0x4e')][_0x9952('0x4c')](_0x9952('0x5d')),_0x3be6f2[_0x9952('0x44')]['bind'](_0x9952('0x5d'))['to'](_0x4691c5,_0x9952('0x5d')),_0x3be6f2[_0x9952('0x4e')][_0x9952('0x26')](_0x9952('0x5d'))[_0x9952('0x72')](_0x51a0b3,_0x9952('0x5d'),(..._0x369ea5)=>_0x369ea5[_0x9952('0x35')](_0x1ccb9b=>_0x1ccb9b)),_0x3832e0['on']('execute',_0x576bc8=>{this[_0x9952('0x11')][_0x9952('0x59')](_0x576bc8[_0x9952('0x43')][_0x9952('0x18')]),this[_0x9952('0x11')][_0x9952('0x27')][_0x9952('0x70')][_0x9952('0x31')]();}),_0x3832e0;}[_0x9952('0x51')](_0x1f9e61){const _0x59d91e=this[_0x9952('0x11')],_0x24c3e5=_0x59d91e[_0x9952('0xb')],_0x1bfd6d=_0x59d91e['plugins']['get']('Annotations'),_0x1e5075=_0x59d91e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x37')),_0x2715d2=_0x59d91e[_0x9952('0x75')][_0x9952('0x1')]('EditorAnnotations'),_0xd5a334=_0x59d91e['plugins']['get'](_0x5012ac)['me'],_0x38234a=_0x24c3e5['get'](_0x9952('0x6b'))[_0x9952('0x50')],{CommentsListView:_0x56fa46,CommentThreadInputView:_0x137632}=_0x59d91e['plugins'][_0x9952('0x1')](_0x9952('0x2d'));let _0x3713a7,_0x23957c;this[_0x9952('0x3f')]['has'](_0x1f9e61['id'])?(_0x23957c=this[_0x9952('0x3f')][_0x9952('0x1')](_0x1f9e61['id']),_0x3713a7=_0x23957c[_0x9952('0x25')]):(_0x3713a7=new _0x38234a(_0x59d91e[_0x9952('0x24')],_0x1f9e61,_0xd5a334,{'disableComments':this[_0x9952('0x14')],'editorConfig':_0x24c3e5[_0x9952('0x1')](_0x9952('0xf')),'maxCommentsWhenCollapsed':_0x24c3e5[_0x9952('0x1')](_0x9952('0x1d')),'maxThreadTotalWeight':_0x24c3e5[_0x9952('0x1')](_0x9952('0x21')),'maxCommentCharsWhenCollapsed':_0x24c3e5[_0x9952('0x1')](_0x9952('0x66')),'formatDateTime':_0x2a0970(_0x24c3e5['get'](_0x9952('0x24'))),'CommentView':_0x24c3e5['get'](_0x9952('0x38'))[_0x9952('0x47')],'CommentsListView':_0x56fa46,'CommentThreadInputView':_0x137632}),_0x3713a7[_0x9952('0x61')]['on']('execute',()=>{_0x59d91e[_0x9952('0x27')][_0x9952('0x70')][_0x9952('0x31')]();}),_0x3713a7['discardButton']['on']('execute',()=>{_0x59d91e[_0x9952('0x27')]['view'][_0x9952('0x31')]();}),_0x23957c=_0x1bfd6d[_0x9952('0x23')](this[_0x9952('0x11')]['locale'],_0x3713a7),_0x23957c[_0x9952('0x26')](_0x9952('0x6f'))['to'](_0x3713a7,_0x9952('0x6f')),_0x23957c['bind'](_0x9952('0x22'))['to'](_0x3713a7),_0x23957c['bind'](_0x9952('0x2b'))['to'](_0x3713a7,_0x9952('0x2b'),_0xe126ac=>_0x9952('0x3c')+_0xe126ac),this[_0x9952('0x3f')][_0x9952('0x3a')](_0x1f9e61['id'],_0x23957c));const _0xe37757=_0x1e5075['createCommentThreadController'](_0x1f9e61['commentThread'],_0x3713a7),_0x47f1b7=new _0xcef13b(_0x59d91e,_0x1f9e61,_0x3713a7,_0xe37757),_0x5cd5b1=_0x1f9e61[_0x9952('0x69')]()[_0x9952('0x28')](_0x13d1f3=>_0x13d1f3[_0x9952('0x65')]);_0x3713a7[_0x9952('0x5b')]=_0x59d91e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x12'))[_0x9952('0x67')][_0x9952('0x5a')](_0x5cd5b1),this[_0x9952('0x68')][_0x9952('0x3a')](_0x1f9e61,_0x47f1b7),this[_0x9952('0x5f')][_0x9952('0x3a')](_0x3713a7,_0x47f1b7);const _0x24cef4=_0x1bfd6d['createAnnotation']({'view':_0x23957c,'target':()=>{const _0x12afe1=[],_0x352a49=_0x1f9e61[_0x9952('0x69')]()[_0x9952('0x28')](_0x385f6a=>_0x385f6a[_0x9952('0x65')]);for(const _0x381426 of _0x352a49)_0x12afe1[_0x9952('0x52')](..._0x381426[_0x9952('0x56')]());return _0x7f301(_0x59d91e[_0x9952('0x27')],_0x12afe1);},'type':()=>_0x9952('0x3c')+_0x47f1b7[_0x9952('0x70')][_0x9952('0x2b')]});_0x1bfd6d[_0x9952('0x29')](_0x24cef4),_0x2715d2[_0x9952('0x15')](_0x24cef4);}[_0x9952('0x4')](_0x38a3bf){const _0x5a72fd=this[_0x9952('0x11')]['plugins'][_0x9952('0x1')]('Annotations'),_0x2515c5=this['_suggestionToController']['get'](_0x38a3bf),_0x81fd1b=_0x2515c5[_0x9952('0x70')],_0x442d48=_0x5a72fd['getByInnerView'](_0x81fd1b);_0x442d48&&_0x5a72fd[_0x9952('0xc')](_0x442d48),this[_0x9952('0x68')][_0x9952('0x1a')](_0x38a3bf),this[_0x9952('0x5f')][_0x9952('0x1a')](_0x81fd1b),_0x2515c5[_0x9952('0x3b')]();}[_0x9952('0x73')](_0x2b4e1f){if(!_0x2b4e1f['isInContent']||!this[_0x9952('0x68')][_0x9952('0x5')](_0x2b4e1f))return;const _0x9f1b82=this['editor'][_0x9952('0x75')]['get']('TrackChangesEditing'),_0x48fa13=this['_suggestionToController']['get'](_0x2b4e1f),_0x5479be=_0x2b4e1f[_0x9952('0x69')]();_0x48fa13[_0x9952('0x70')][_0x9952('0x5b')]=_0x9f1b82['_descriptionFactory'][_0x9952('0x5a')](_0x5479be);}[_0x9952('0x3b')](){for(const _0x287ed1 of this['_suggestionToController'][_0x9952('0x6')]())this[_0x9952('0x4')](_0x287ed1);for(const _0xdbc977 of this[_0x9952('0x3f')]['values']())_0xdbc977[_0x9952('0x25')][_0x9952('0x3b')]();super[_0x9952('0x3b')]();}}
23
+ const _0xefea=['separator','unbind','isInContent','execute','length','getByInnerView','_destroyController','createAnnotationView','_viewToController','trackChanges','size','getDescriptions','CommentsRepository','EditorAnnotations','commands','remove','discardButton','button','discardSelectedSuggestions','type','define','editing','suggestion-','getMarkerNames','Discard\x20all\x20suggestions','filter','change:activeAnnotations','mainView','_bindAnnotationToEditors','listenTo','acceptSelectedSuggestions','some','add','buttonView','set','TrackChangesUI','Discard\x20all\x20selected\x20suggestions','TrackChangesEditing','map','init','suggestionChanged','acceptAllSuggestions','destroy','comments.maxCommentsWhenCollapsed','_initializeController','innerView','comments.editorConfig','descriptionParts','head','commentThread','reduce','config','hasSuggestion','CommentView','has','suggestionLoaded','previous','focus','_disableComments','value','_refreshActiveMarkers','trackChanges.SuggestionThreadView','_updateController','comments','view','arrowView','plugins','bind','componentFactory','keys','_handleSuggestionControllerDelayed','pluginName','model','_descriptionFactory','activeMarkers','Annotations','getSuggestion','isOn','CommentsUI','isDirty','change:previous','SuggestionThreadView','from','addComment','addSourceCollector','editor','_handleControllerBuffer','_suggestionToController','_annotationViews','discardAllSuggestions','acceptButton','trackChanges.disableComments','getAllAdjacentSuggestions','delete','comments.maxCommentCharsWhenCollapsed','get','getFirstRange','getRanges','createCommentThreadController','actionView','isEnabled','switchbutton','push','activeAnnotations','refreshSelectedViews','Accept\x20all\x20selected\x20suggestions','locale','toMany','commandName'];(function(_0x2b159c,_0xefea5e){const _0x5ee5ed=function(_0x337632){while(--_0x337632){_0x2b159c['push'](_0x2b159c['shift']());}};_0x5ee5ed(++_0xefea5e);}(_0xefea,0x119));const _0x5ee5=function(_0x2b159c,_0xefea5e){_0x2b159c=_0x2b159c-0x0;let _0x5ee5ed=_0xefea[_0x2b159c];return _0x5ee5ed;};import{Plugin as _0x4a00b1}from'ckeditor5/src/core';import{Collection as _0xb0859c}from'ckeditor5/src/utils';import{Model as _0x35e809,SplitButtonView as _0x390442,createDropdown as _0x5ecbce,addListToDropdown as _0x38c074}from'ckeditor5/src/ui';import{Users as _0x368dc9,getDateTimeFormatter as _0x5785a0,getAllMarkersDomElementsSorted as _0x444aff}from'ckeditor5-collaboration/src/collaboration-core';import _0xc3ade1 from'./trackchangesediting';import _0x1d5b55 from'./ui/suggestioncontroller';import _0x310e7c from'./ui/view/suggestionthreadview';import{getTranslation as _0x4692cd}from'./utils/common-translations';import _0x4252f4 from'../theme/icons/track-changes.svg';export default class d extends _0x4a00b1{static get['requires'](){return[_0xc3ade1,_0x368dc9,'CommentsRepository',_0x5ee5('0xc'),_0x5ee5('0x3b')];}static get[_0x5ee5('0x8')](){return _0x5ee5('0x51');}constructor(_0x485eae){super(_0x485eae),this[_0x5ee5('0x18')]=new Map(),this[_0x5ee5('0x36')]=new Map(),this['_annotationViews']=new Map(),this[_0x5ee5('0x17')]=new Map();const _0x46af4e=this['editor'][_0x5ee5('0x61')];_0x46af4e[_0x5ee5('0x42')](_0x5ee5('0x6b'),_0x310e7c),_0x46af4e['define'](_0x5ee5('0x1c'),!0x1),this[_0x5ee5('0x68')]=_0x46af4e[_0x5ee5('0x20')]('trackChanges.disableComments');}[_0x5ee5('0x7')](_0x2387d8,_0x505cdb){0x0===this[_0x5ee5('0x17')][_0x5ee5('0x38')]&&setTimeout(()=>{for(const [_0x509ff1,_0x4f3783]of this[_0x5ee5('0x17')]){const _0x864d80=this['_suggestionToController']['has'](_0x509ff1);_0x864d80||_0x4f3783?_0x864d80&&_0x4f3783&&this[_0x5ee5('0x34')](_0x509ff1):this[_0x5ee5('0x5a')](_0x509ff1);}this['editor']['plugins']['get'](_0x5ee5('0x3b'))[_0x5ee5('0x29')](),this[_0x5ee5('0x6a')](),this[_0x5ee5('0x17')]['clear']();},0xa),this[_0x5ee5('0x17')][_0x5ee5('0x50')](_0x2387d8,_0x505cdb);}[_0x5ee5('0x55')](){const _0x4e6f4c=this['editor'],_0x24f54d=_0x4e6f4c['plugins'][_0x5ee5('0x20')]('TrackChangesEditing'),_0x12c695=_0x4e6f4c[_0x5ee5('0x3')]['get']('Annotations'),_0x4a277f=_0x4e6f4c[_0x5ee5('0x3')][_0x5ee5('0x20')]('EditorAnnotations'),_0x45697c=_0x4e6f4c[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x3a'));_0x4e6f4c['ui'][_0x5ee5('0x5')]['add']('trackChanges',_0x13bf5f=>this['_createUIButton'](_0x13bf5f)),_0x4a277f[_0x5ee5('0x15')](()=>{const _0x320c88=[];for(const [_0x3a765b,_0x33ec87]of Array[_0x5ee5('0x13')](this[_0x5ee5('0x18')])){const _0x346b39=_0x3a765b['getAllAdjacentSuggestions'](),_0x4d119e=[];for(const _0x44c8c9 of _0x346b39){if(!_0x44c8c9[_0x5ee5('0x30')])continue;if(_0x44c8c9['isMultiRange']){_0x4d119e[_0x5ee5('0x27')](..._0x44c8c9[_0x5ee5('0x22')]());continue;}const _0xb49f81=_0x44c8c9[_0x5ee5('0x21')]();if(_0x4d119e[_0x5ee5('0x32')]>0x0){const _0x56232c=_0x4d119e[0x0]['getJoined'](_0xb49f81);if(_0x56232c){_0x4d119e[0x0]=_0x56232c;continue;}}_0x4d119e['push'](_0xb49f81);}_0x320c88['push']([_0x33ec87[_0x5ee5('0x1')],_0x4d119e]);}return _0x320c88;}),this[_0x5ee5('0x4b')](_0x24f54d,_0x5ee5('0x65'),(_0x4e63a7,_0x11bf33)=>{this['listenTo'](_0x11bf33,_0x5ee5('0x11'),(_0x48ebb1,_0x35cf12,_0x3e0b83,_0x568eb4)=>{_0x11bf33['isInContent']&&(null==_0x3e0b83?(this['_updateController'](_0x568eb4[_0x5ee5('0x5e')]),this[_0x5ee5('0x7')](_0x11bf33,!0x1)):(this[_0x5ee5('0x6c')](_0x3e0b83[_0x5ee5('0x5e')]),this[_0x5ee5('0x7')](_0x11bf33,!0x0)));}),null===_0x11bf33[_0x5ee5('0x66')]?this[_0x5ee5('0x7')](_0x11bf33,!0x1):this[_0x5ee5('0x6c')](_0x11bf33[_0x5ee5('0x5e')]);}),this[_0x5ee5('0x4b')](_0x24f54d,'suggestionUnloaded',(_0x870f28,_0x27797b,_0x252b71)=>{this['stopListening'](_0x27797b,'change:previous'),this[_0x5ee5('0x17')][_0x5ee5('0x1e')](_0x27797b);const _0x2b4c85=_0x252b71?_0x252b71['head']:_0x27797b,_0x3e5920=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2b4c85);null!==_0x252b71&&this[_0x5ee5('0x6c')](_0x2b4c85),null===_0x252b71&&_0x3e5920&&this[_0x5ee5('0x34')](_0x27797b);}),this[_0x5ee5('0x4b')](_0x24f54d,_0x5ee5('0x56'),(_0x550b72,_0x3423e2)=>{this['_updateController'](_0x3423e2);}),this[_0x5ee5('0x4b')](_0x12c695,_0x5ee5('0x48'),()=>{this[_0x5ee5('0x6a')]();}),this[_0x5ee5('0x4b')](_0x45697c,_0x5ee5('0x14'),(_0x146596,{threadId:_0x46d6c8,isFromAdapter:_0xb08a27})=>{if(_0xb08a27||!_0x24f54d[_0x5ee5('0x62')](_0x46d6c8))return;const _0x2d8dcf=_0x24f54d[_0x5ee5('0xd')](_0x46d6c8);this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2d8dcf)[_0x5ee5('0x1')][_0x5ee5('0x67')]();},{'priority':'lowest'});}[_0x5ee5('0x6a')](){const _0x266067=this[_0x5ee5('0x16')][_0x5ee5('0x3')][_0x5ee5('0x20')]('Annotations'),_0x4ef8e0=this[_0x5ee5('0x16')]['plugins']['get'](_0x5ee5('0x53')),_0x5c0f51=Array['from'](_0x266067[_0x5ee5('0x28')],_0x4f7275=>_0x4f7275[_0x5ee5('0x5b')])[_0x5ee5('0x47')](_0x5344cf=>this[_0x5ee5('0x36')][_0x5ee5('0x64')](_0x5344cf)),_0x39e57c=[];for(const _0x507490 of _0x5c0f51){const _0x3af8f4=this[_0x5ee5('0x36')]['get'](_0x507490)[_0x5ee5('0x9')][_0x5ee5('0x1d')]();_0x39e57c[_0x5ee5('0x27')](..._0x3af8f4[_0x5ee5('0x60')]((_0x4043a9,_0x351244)=>[..._0x4043a9,..._0x351244[_0x5ee5('0x45')]()],[]));}_0x4ef8e0[_0x5ee5('0xb')]=_0x39e57c;}['_createUIButton'](_0x253fd7){const _0x471934=_0x5ecbce(_0x253fd7,_0x390442),_0x17ac0e=this[_0x5ee5('0x16')][_0x5ee5('0x3c')][_0x5ee5('0x20')]('trackChanges'),_0x428eb8=_0x4692cd(_0x253fd7,'Track\x20changes');_0x471934['buttonView']['set']({'tooltip':_0x428eb8,'label':_0x428eb8,'icon':_0x4252f4}),_0x471934[_0x5ee5('0x4f')][_0x5ee5('0x4')](_0x5ee5('0xe'))['to'](_0x17ac0e,_0x5ee5('0x69')),_0x471934[_0x5ee5('0x4f')]['on']('execute',()=>{_0x17ac0e[_0x5ee5('0x31')](),this[_0x5ee5('0x16')][_0x5ee5('0x43')][_0x5ee5('0x1')][_0x5ee5('0x67')]();});const _0x3cc075=new _0xb0859c(),_0x1dfc9b=[{'type':_0x5ee5('0x26'),'model':{'withText':!0x0,'label':_0x428eb8,'commandName':_0x5ee5('0x37')}},{'type':_0x5ee5('0x2e')},{'type':_0x5ee5('0x3f'),'model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,'Accept\x20all\x20suggestions'),'commandName':_0x5ee5('0x57')}},{'type':'button','model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x2a')),'commandName':_0x5ee5('0x4c')}},{'type':'button','model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x46')),'commandName':_0x5ee5('0x1a')}},{'type':_0x5ee5('0x3f'),'model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x52')),'commandName':_0x5ee5('0x40')}}];for(const _0x1ee228 of _0x1dfc9b){let _0x2cb19d={'type':_0x5ee5('0x2e')};if(_0x1ee228['model']){const _0x55925a=new _0x35e809(_0x1ee228[_0x5ee5('0x9')]),_0x334427=this['editor'][_0x5ee5('0x3c')][_0x5ee5('0x20')](_0x55925a[_0x5ee5('0x2d')]);_0x55925a[_0x5ee5('0x4')](_0x5ee5('0xe'),_0x5ee5('0x25'))['to'](_0x334427,_0x5ee5('0x69'),_0x5ee5('0x25')),_0x2cb19d={'type':_0x1ee228['type'],'model':_0x55925a};}_0x3cc075[_0x5ee5('0x4e')](_0x2cb19d);}_0x38c074(_0x471934,_0x3cc075);const _0x4dc0f9=_0x1dfc9b[_0x5ee5('0x47')](_0x32077d=>null!=_0x32077d['model'])[_0x5ee5('0x54')](_0x2931f6=>this[_0x5ee5('0x16')][_0x5ee5('0x3c')]['get'](_0x2931f6[_0x5ee5('0x9')]['commandName'])),_0x29e2e9=_0x471934[_0x5ee5('0x4f')];return _0x29e2e9[_0x5ee5('0x24')][_0x5ee5('0x2f')](_0x5ee5('0x25')),_0x29e2e9['arrowView']['unbind'](_0x5ee5('0x25')),_0x29e2e9[_0x5ee5('0x24')][_0x5ee5('0x4')](_0x5ee5('0x25'))['to'](_0x17ac0e,_0x5ee5('0x25')),_0x29e2e9[_0x5ee5('0x2')][_0x5ee5('0x4')](_0x5ee5('0x25'))[_0x5ee5('0x2c')](_0x4dc0f9,_0x5ee5('0x25'),(..._0x3570a4)=>_0x3570a4[_0x5ee5('0x4d')](_0x3c5022=>_0x3c5022)),_0x471934['on']('execute',_0x68c00a=>{this[_0x5ee5('0x16')][_0x5ee5('0x31')](_0x68c00a['source']['commandName']),this[_0x5ee5('0x16')]['editing'][_0x5ee5('0x1')][_0x5ee5('0x67')]();}),_0x471934;}[_0x5ee5('0x5a')](_0x4edd9d){const _0xee818d=this['editor'],_0x334d01=_0xee818d[_0x5ee5('0x61')],_0x5d5a4e=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xc')),_0xf0eec9=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x3a')),_0x264889=_0xee818d['plugins']['get'](_0x5ee5('0x3b')),_0x27cbb8=_0xee818d[_0x5ee5('0x3')]['get'](_0x368dc9)['me'],_0x22b969=_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x37'))[_0x5ee5('0x12')],{CommentsListView:_0x505f6a,CommentThreadInputView:_0x296bbb}=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xf'));let _0x188b11,_0x16a607;this['_annotationViews'][_0x5ee5('0x64')](_0x4edd9d['id'])?(_0x16a607=this[_0x5ee5('0x19')][_0x5ee5('0x20')](_0x4edd9d['id']),_0x188b11=_0x16a607[_0x5ee5('0x49')]):(_0x188b11=new _0x22b969(_0xee818d['locale'],_0x4edd9d,_0x27cbb8,{'disableComments':this[_0x5ee5('0x68')],'editorConfig':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x5c')),'maxCommentsWhenCollapsed':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x59')),'maxThreadTotalWeight':_0x334d01[_0x5ee5('0x20')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x1f')),'formatDateTime':_0x5785a0(_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x2b'))),'CommentView':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x0'))[_0x5ee5('0x63')],'CommentsListView':_0x505f6a,'CommentThreadInputView':_0x296bbb}),_0x188b11[_0x5ee5('0x1b')]['on'](_0x5ee5('0x31'),()=>{_0xee818d[_0x5ee5('0x43')]['view'][_0x5ee5('0x67')]();}),_0x188b11[_0x5ee5('0x3e')]['on']('execute',()=>{_0xee818d[_0x5ee5('0x43')]['view'][_0x5ee5('0x67')]();}),_0x16a607=_0x5d5a4e[_0x5ee5('0x35')](this['editor'][_0x5ee5('0x2b')],_0x188b11),_0x16a607['bind'](_0x5ee5('0x10'))['to'](_0x188b11,_0x5ee5('0x10')),_0x16a607[_0x5ee5('0x4')](_0x5ee5('0x32'))['to'](_0x188b11),_0x16a607[_0x5ee5('0x4')](_0x5ee5('0x41'))['to'](_0x188b11,_0x5ee5('0x41'),_0x2dc0aa=>'suggestion-'+_0x2dc0aa),this[_0x5ee5('0x19')][_0x5ee5('0x50')](_0x4edd9d['id'],_0x16a607));const _0x37e70f=_0xf0eec9[_0x5ee5('0x23')](_0x4edd9d[_0x5ee5('0x5f')],_0x188b11),_0x58f1a6=new _0x1d5b55(_0xee818d,_0x4edd9d,_0x188b11,_0x37e70f),_0x355140=_0x4edd9d[_0x5ee5('0x1d')]()[_0x5ee5('0x47')](_0x472375=>_0x472375[_0x5ee5('0x30')]);_0x188b11['descriptionParts']=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x53'))[_0x5ee5('0xa')]['getDescriptions'](_0x355140),this[_0x5ee5('0x18')][_0x5ee5('0x50')](_0x4edd9d,_0x58f1a6),this[_0x5ee5('0x36')][_0x5ee5('0x50')](_0x188b11,_0x58f1a6);const _0x53bdd4=_0x5d5a4e['createAnnotation']({'view':_0x16a607,'target':()=>{const _0x2adbb8=[],_0x310a92=_0x4edd9d[_0x5ee5('0x1d')]()[_0x5ee5('0x47')](_0x593142=>_0x593142[_0x5ee5('0x30')]);for(const _0x3b53a2 of _0x310a92)_0x2adbb8[_0x5ee5('0x27')](..._0x3b53a2['getMarkers']());return _0x444aff(_0xee818d['editing'],_0x2adbb8);},'type':()=>_0x5ee5('0x44')+_0x58f1a6[_0x5ee5('0x1')][_0x5ee5('0x41')]});_0xf0eec9[_0x5ee5('0x4a')](_0x188b11,_0x53bdd4),_0x5d5a4e[_0x5ee5('0x4e')](_0x53bdd4),_0x264889['registerAnnotation'](_0x53bdd4);}[_0x5ee5('0x34')](_0x2c1523){const _0x5630b4=this['editor'][_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xc')),_0x535214=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2c1523),_0x529396=_0x535214['view'],_0x5499a7=_0x5630b4[_0x5ee5('0x33')](_0x529396);_0x5499a7&&_0x5630b4[_0x5ee5('0x3d')](_0x5499a7),this[_0x5ee5('0x18')]['delete'](_0x2c1523),this[_0x5ee5('0x36')][_0x5ee5('0x1e')](_0x529396),_0x535214[_0x5ee5('0x58')]();}[_0x5ee5('0x6c')](_0x148a38){if(!_0x148a38[_0x5ee5('0x30')]||!this[_0x5ee5('0x18')][_0x5ee5('0x64')](_0x148a38))return;const _0x4f4e70=this[_0x5ee5('0x16')][_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x53')),_0x2037b4=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x148a38),_0x2aca1b=_0x148a38['getAllAdjacentSuggestions']();_0x2037b4[_0x5ee5('0x1')][_0x5ee5('0x5d')]=_0x4f4e70[_0x5ee5('0xa')][_0x5ee5('0x39')](_0x2aca1b);}[_0x5ee5('0x58')](){for(const _0x103b51 of this['_suggestionToController'][_0x5ee5('0x6')]())this[_0x5ee5('0x34')](_0x103b51);for(const _0x40a70a of this[_0x5ee5('0x19')]['values']())_0x40a70a[_0x5ee5('0x49')][_0x5ee5('0x58')]();super[_0x5ee5('0x58')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41cb=['bind','unbind','_setPendingAction','add','discardSuggestion','stopListening','get','isEnabled','listenTo','_acceptCommand','getRanges','canDiscard','remove','canAccept','_pendingAction','commentThreadController','commands','execute','plugins','_removePendingAction','canEditAt','_editor','acceptSuggestion','destroy','locale','model','view','isDirty'];(function(_0x556688,_0x41cb48){const _0x36a333=function(_0xf9e55a){while(--_0xf9e55a){_0x556688['push'](_0x556688['shift']());}};_0x36a333(++_0x41cb48);}(_0x41cb,0x1cb));const _0x36a3=function(_0x556688,_0x41cb48){_0x556688=_0x556688-0x0;let _0x36a333=_0x41cb[_0x556688];return _0x36a333;};import{ObservableMixin as _0x55e6a8}from'ckeditor5/src/utils';import{getTranslation as _0x3a313c}from'../utils/common-translations';export default class qt extends _0x55e6a8(){constructor(_0x441d8b,_0x35a891,_0xaa7d1d,_0x3ae320){super(),this['model']=_0x35a891,this[_0x36a3('0xf')]=_0xaa7d1d,this[_0x36a3('0x4')]=_0x3ae320,this[_0x36a3('0xa')]=_0x441d8b,this[_0x36a3('0x1a')]=_0x441d8b['commands']['get'](_0x36a3('0xb')),this['_discardCommand']=_0x441d8b[_0x36a3('0x5')][_0x36a3('0x17')](_0x36a3('0x15')),this[_0x36a3('0xf')]['bind'](_0x36a3('0x18'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x344e95,_0x5ed052)=>_0x344e95||_0x5ed052),this[_0x36a3('0xf')][_0x36a3('0x11')]('canAccept')['to'](this['_acceptCommand'],_0x36a3('0x18'),_0xdc3ea7=>_0xdc3ea7&&this[_0x36a3('0xa')][_0x36a3('0xe')]['canEditAt'](_0x35a891['getRanges']())),this[_0x36a3('0xf')][_0x36a3('0x11')](_0x36a3('0x0'))['to'](this['_discardCommand'],'isEnabled',_0x115696=>_0x115696&&this[_0x36a3('0xa')][_0x36a3('0xe')][_0x36a3('0x9')](_0x35a891[_0x36a3('0x1b')]())),this[_0x36a3('0x3')]=null,_0xaa7d1d[_0x36a3('0x10')]&&this[_0x36a3('0x13')](),this[_0x36a3('0x19')](_0xaa7d1d,_0x36a3('0xb'),()=>this[_0x36a3('0xb')]()),this[_0x36a3('0x19')](_0xaa7d1d,_0x36a3('0x15'),()=>this[_0x36a3('0x15')]()),this[_0x36a3('0x19')](_0xaa7d1d,'change:isDirty',()=>{_0xaa7d1d[_0x36a3('0x10')]?this[_0x36a3('0x13')]():this['_removePendingAction']();});}[_0x36a3('0xb')](){this[_0x36a3('0x1a')][_0x36a3('0x6')](this[_0x36a3('0xe')]['id']);}[_0x36a3('0x15')](){this['_discardCommand'][_0x36a3('0x6')](this[_0x36a3('0xe')]['id']);}['destroy'](){this['view'][_0x36a3('0x12')](_0x36a3('0x18')),this[_0x36a3('0xf')][_0x36a3('0x12')](_0x36a3('0x2')),this[_0x36a3('0xf')]['unbind'](_0x36a3('0x0')),this[_0x36a3('0x16')](),this[_0x36a3('0x4')][_0x36a3('0xc')](),this[_0x36a3('0x3')]&&this[_0x36a3('0x8')]();}[_0x36a3('0x13')](){const _0x9288fd=_0x3a313c(this[_0x36a3('0xa')][_0x36a3('0xd')],'PENDING_ACTION_SUGGESTION');this[_0x36a3('0x3')]=this[_0x36a3('0xa')]['plugins']['get']('PendingActions')[_0x36a3('0x14')](_0x9288fd);}[_0x36a3('0x8')](){null!==this[_0x36a3('0x3')]&&this['_editor'][_0x36a3('0x7')]['get']('PendingActions')[_0x36a3('0x1')](this['_pendingAction']),this[_0x36a3('0x3')]=null;}}
23
+ const _0x28d1=['PENDING_ACTION_SUGGESTION','model','canDiscard','commentThreadController','view','canEditAt','isEnabled','change:isDirty','unbind','_discardCommand','execute','_removePendingAction','canAccept','_acceptCommand','add','_editor','get','PendingActions','discardSuggestion','listenTo','stopListening','locale','getRanges','isDirty','_pendingAction','acceptSuggestion','commands','_setPendingAction','bind'];(function(_0x1dbe32,_0x28d106){const _0x1110a9=function(_0x15d43d){while(--_0x15d43d){_0x1dbe32['push'](_0x1dbe32['shift']());}};_0x1110a9(++_0x28d106);}(_0x28d1,0xe1));const _0x1110=function(_0x1dbe32,_0x28d106){_0x1dbe32=_0x1dbe32-0x0;let _0x1110a9=_0x28d1[_0x1dbe32];return _0x1110a9;};import{ObservableMixin as _0x1e83a5}from'ckeditor5/src/utils';import{getTranslation as _0xa628f9}from'../utils/common-translations';export default class qt extends _0x1e83a5(){constructor(_0x3677df,_0x142716,_0x431e71,_0x4297c1){super(),this[_0x1110('0x8')]=_0x142716,this['view']=_0x431e71,this[_0x1110('0xa')]=_0x4297c1,this[_0x1110('0x16')]=_0x3677df,this[_0x1110('0x14')]=_0x3677df[_0x1110('0x4')]['get'](_0x1110('0x3')),this[_0x1110('0x10')]=_0x3677df[_0x1110('0x4')][_0x1110('0x17')](_0x1110('0x19')),this[_0x1110('0xb')][_0x1110('0x6')](_0x1110('0xd'))['to'](this[_0x1110('0x14')],this['_discardCommand'],(_0x2079bf,_0x43d39d)=>_0x2079bf||_0x43d39d),this[_0x1110('0xb')][_0x1110('0x6')](_0x1110('0x13'))['to'](this[_0x1110('0x14')],_0x1110('0xd'),_0x511d7d=>_0x511d7d&&this[_0x1110('0x16')][_0x1110('0x8')]['canEditAt'](_0x142716[_0x1110('0x0')]())),this[_0x1110('0xb')][_0x1110('0x6')]('canDiscard')['to'](this[_0x1110('0x10')],_0x1110('0xd'),_0x3e7b25=>_0x3e7b25&&this['_editor'][_0x1110('0x8')][_0x1110('0xc')](_0x142716[_0x1110('0x0')]())),this[_0x1110('0x2')]=null,_0x431e71[_0x1110('0x1')]&&this[_0x1110('0x5')](),this[_0x1110('0x1a')](_0x431e71,_0x1110('0x3'),()=>this['acceptSuggestion']()),this[_0x1110('0x1a')](_0x431e71,_0x1110('0x19'),()=>this[_0x1110('0x19')]()),this[_0x1110('0x1a')](_0x431e71,_0x1110('0xe'),()=>{_0x431e71[_0x1110('0x1')]?this[_0x1110('0x5')]():this[_0x1110('0x12')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0x1110('0x11')](this[_0x1110('0x8')]['id']);}[_0x1110('0x19')](){this['_discardCommand']['execute'](this[_0x1110('0x8')]['id']);}['destroy'](){this[_0x1110('0xb')][_0x1110('0xf')](_0x1110('0xd')),this[_0x1110('0xb')][_0x1110('0xf')](_0x1110('0x13')),this[_0x1110('0xb')]['unbind'](_0x1110('0x9')),this[_0x1110('0x1b')](),this[_0x1110('0xa')]['destroy'](),this[_0x1110('0x2')]&&this[_0x1110('0x12')]();}[_0x1110('0x5')](){const _0x520cdd=_0xa628f9(this[_0x1110('0x16')][_0x1110('0x1c')],_0x1110('0x7'));this['_pendingAction']=this[_0x1110('0x16')]['plugins'][_0x1110('0x17')](_0x1110('0x18'))[_0x1110('0x15')](_0x520cdd);}[_0x1110('0x12')](){null!==this[_0x1110('0x2')]&&this['_editor']['plugins'][_0x1110('0x17')]('PendingActions')['remove'](this[_0x1110('0x2')]),this[_0x1110('0x2')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x151e=['setData','_model','updateComment','editor','isActive','addComment','_createCommentViews','canAccept','cancel','editorConfig','focus','_config','element','commentsListView','length','hasDirtyComment','bind','authoredAt','delegate','commentThread','_createCommentThreadInputView','descriptionParts','set','removeComment','commentInputView','locale','_localUser','value','disableComments','submit','destroy','isEnabled','commentThreadInputView','canDiscard','isReadOnly','fire','isDirty'];(function(_0x5246c8,_0x151ec5){const _0x1d6dc4=function(_0x4a0419){while(--_0x4a0419){_0x5246c8['push'](_0x5246c8['shift']());}};_0x1d6dc4(++_0x151ec5);}(_0x151e,0x1bd));const _0x1d6d=function(_0x5246c8,_0x151ec5){_0x5246c8=_0x5246c8-0x0;let _0x1d6dc4=_0x151e[_0x5246c8];return _0x1d6dc4;};import{View as _0x1c6980}from'ckeditor5/src/ui';export default class ii extends _0x1c6980{constructor(_0x3e5fa9,_0x198177,_0x335798,_0x4ee92d){super(_0x3e5fa9),this[_0x1d6d('0xc')]=null,this[_0x1d6d('0x1f')]=null,this[_0x1d6d('0x15')]('isActive',!0x1),this[_0x1d6d('0x15')](_0x1d6d('0x10'),_0x198177[_0x1d6d('0x10')]),this[_0x1d6d('0xf')](_0x1d6d('0x10'))['to'](_0x198177),this['set'](_0x1d6d('0x14'),[]),this[_0x1d6d('0x15')](_0x1d6d('0x23'),!0x1),this[_0x1d6d('0x15')](_0x1d6d('0x1e'),!0x1),this[_0x1d6d('0x15')](_0x1d6d('0x6'),!0x1),this[_0x1d6d('0x15')](_0x1d6d('0x20'),!0x1),this[_0x1d6d('0x0')]=_0x198177,this[_0x1d6d('0x19')]=_0x335798,this[_0x1d6d('0xa')]=_0x4ee92d,_0x4ee92d[_0x1d6d('0x1b')]?this[_0x1d6d('0x15')](_0x1d6d('0xd'),0x1):this['_createCommentViews']();}['focus'](){this[_0x1d6d('0xb')][_0x1d6d('0x9')]();}[_0x1d6d('0x1d')](){this[_0x1d6d('0xc')]&&this[_0x1d6d('0xc')][_0x1d6d('0x1d')](),this[_0x1d6d('0x1f')]&&this[_0x1d6d('0x1f')][_0x1d6d('0x1d')](),super['destroy']();}[_0x1d6d('0x5')](){const {CommentsListView:_0x379f8a}=this['_config'];this[_0x1d6d('0xc')]=new _0x379f8a(this[_0x1d6d('0x18')],this[_0x1d6d('0x0')][_0x1d6d('0x12')],Object['assign']({'CommentView':this[_0x1d6d('0xa')]['CommentView']},this[_0x1d6d('0xa')])),this['commentsListView'][_0x1d6d('0x11')](_0x1d6d('0x16'))['to'](this),this[_0x1d6d('0xc')][_0x1d6d('0x11')](_0x1d6d('0x1'))['to'](this),this[_0x1d6d('0xc')]['bind'](_0x1d6d('0x3'))['to'](this),this['set'](_0x1d6d('0xd'),this[_0x1d6d('0xc')]['length']+0x1),this[_0x1d6d('0xf')](_0x1d6d('0xd'))['to'](this[_0x1d6d('0xc')],'length',_0x1b75d1=>_0x1b75d1+0x1),this[_0x1d6d('0x1f')]=this[_0x1d6d('0x13')](),this['on'](_0x1d6d('0x16'),()=>this[_0x1d6d('0x9')]()),this[_0x1d6d('0xf')]('isDirty')['to'](this[_0x1d6d('0xc')],_0x1d6d('0xe'),this[_0x1d6d('0x1f')][_0x1d6d('0x17')],_0x1d6d('0x1a'),(_0x22432d,_0x5147b3)=>_0x22432d||!!_0x5147b3);}[_0x1d6d('0x13')](){const {CommentThreadInputView:_0x5cf45a}=this[_0x1d6d('0xa')],_0xf920=new _0x5cf45a(this[_0x1d6d('0x18')],this['_localUser'],this[_0x1d6d('0xa')][_0x1d6d('0x8')]),_0x29975c=_0xf920[_0x1d6d('0x17')];return _0xf920[_0x1d6d('0xf')]('showInput')['to'](this,'isActive',this[_0x1d6d('0x0')][_0x1d6d('0x12')],_0x1d6d('0x21'),_0x29975c,_0x1d6d('0x1a'),(_0x5f4d7b,_0x540aa4,_0x1cd852)=>!!_0x1cd852||_0x5f4d7b&&!_0x540aa4),_0x29975c['on'](_0x1d6d('0x1c'),(_0x50b9b8,_0x56c7bb)=>{this[_0x1d6d('0x22')](_0x1d6d('0x4'),_0x56c7bb),_0x29975c[_0x1d6d('0x2')][_0x1d6d('0x24')]('');}),_0x29975c['on'](_0x1d6d('0x7'),()=>this[_0x1d6d('0x9')]()),_0x29975c['bind']('disabledSubmit')['to'](this[_0x1d6d('0x0')][_0x1d6d('0x12')],_0x1d6d('0x21')),_0xf920;}}
23
+ const _0xec28=['CommentView','locale','delegate','bind','submit','showInput','commentsListView','_createCommentThreadInputView','descriptionParts','_createCommentViews','_model','cancel','editor','focus','_config','isReadOnly','authoredAt','destroy','updateComment','disabledSubmit','value','length','commentInputView','canDiscard','isDirty','commentThreadInputView','disableComments','removeComment','_localUser','isEnabled','set','commentThread','isActive'];(function(_0x67ed73,_0xec287){const _0x47cb72=function(_0x5c55ef){while(--_0x5c55ef){_0x67ed73['push'](_0x67ed73['shift']());}};_0x47cb72(++_0xec287);}(_0xec28,0x7f));const _0x47cb=function(_0x67ed73,_0xec287){_0x67ed73=_0x67ed73-0x0;let _0x47cb72=_0xec28[_0x67ed73];return _0x47cb72;};import{View as _0x2cb4ee}from'ckeditor5/src/ui';export default class ii extends _0x2cb4ee{constructor(_0x27b450,_0x312019,_0x51b249,_0x188471){super(_0x27b450),this[_0x47cb('0xb')]=null,this[_0x47cb('0x1e')]=null,this[_0x47cb('0x2')](_0x47cb('0x4'),!0x1),this[_0x47cb('0x2')]('authoredAt',_0x312019[_0x47cb('0x15')]),this[_0x47cb('0x8')](_0x47cb('0x15'))['to'](_0x312019),this['set'](_0x47cb('0xd'),[]),this[_0x47cb('0x2')](_0x47cb('0x1d'),!0x1),this['set'](_0x47cb('0x1'),!0x1),this[_0x47cb('0x2')]('canAccept',!0x1),this[_0x47cb('0x2')](_0x47cb('0x1c'),!0x1),this['_model']=_0x312019,this[_0x47cb('0x0')]=_0x51b249,this[_0x47cb('0x13')]=_0x188471,_0x188471[_0x47cb('0x1f')]?this['set'](_0x47cb('0x1a'),0x1):this[_0x47cb('0xe')]();}[_0x47cb('0x12')](){this['element'][_0x47cb('0x12')]();}[_0x47cb('0x16')](){this[_0x47cb('0xb')]&&this[_0x47cb('0xb')]['destroy'](),this[_0x47cb('0x1e')]&&this[_0x47cb('0x1e')]['destroy'](),super['destroy']();}[_0x47cb('0xe')](){const {CommentsListView:_0x5e6531}=this[_0x47cb('0x13')];this['commentsListView']=new _0x5e6531(this[_0x47cb('0x6')],this[_0x47cb('0xf')][_0x47cb('0x3')],Object['assign']({'CommentView':this[_0x47cb('0x13')][_0x47cb('0x5')]},this['_config'])),this[_0x47cb('0xb')][_0x47cb('0x7')](_0x47cb('0x20'))['to'](this),this[_0x47cb('0xb')][_0x47cb('0x7')](_0x47cb('0x17'))['to'](this),this[_0x47cb('0xb')][_0x47cb('0x8')]('isActive')['to'](this),this['set'](_0x47cb('0x1a'),this[_0x47cb('0xb')]['length']+0x1),this[_0x47cb('0x8')]('length')['to'](this[_0x47cb('0xb')],'length',_0x270d1b=>_0x270d1b+0x1),this[_0x47cb('0x1e')]=this['_createCommentThreadInputView'](),this['on'](_0x47cb('0x20'),()=>this[_0x47cb('0x12')]()),this['bind'](_0x47cb('0x1d'))['to'](this[_0x47cb('0xb')],'hasDirtyComment',this[_0x47cb('0x1e')][_0x47cb('0x1b')],_0x47cb('0x19'),(_0x44fc12,_0x42c176)=>_0x44fc12||!!_0x42c176);}[_0x47cb('0xc')](){const {CommentThreadInputView:_0x4eb5c6}=this['_config'],_0x3f5085=new _0x4eb5c6(this['locale'],this[_0x47cb('0x0')],this['_config']['editorConfig']),_0x5af6fc=_0x3f5085[_0x47cb('0x1b')];return _0x3f5085[_0x47cb('0x8')](_0x47cb('0xa'))['to'](this,_0x47cb('0x4'),this[_0x47cb('0xf')][_0x47cb('0x3')],'isReadOnly',_0x5af6fc,_0x47cb('0x19'),(_0x3c3ef2,_0x3f13c5,_0x23d4a1)=>!!_0x23d4a1||_0x3c3ef2&&!_0x3f13c5),_0x5af6fc['on'](_0x47cb('0x9'),(_0x50f34c,_0x5d31fc)=>{this['fire']('addComment',_0x5d31fc),_0x5af6fc[_0x47cb('0x11')]['setData']('');}),_0x5af6fc['on'](_0x47cb('0x10'),()=>this['focus']()),_0x5af6fc['bind'](_0x47cb('0x18'))['to'](this[_0x47cb('0xf')][_0x47cb('0x3')],_0x47cb('0x14')),_0x3f5085;}}