@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230809.0 → 0.0.0-nightly-20230811.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 _0x296c=['low','has','acceptSelectedSuggestions','_splitMarkerName','data-suggestion','skipNestingCheck','containsPosition','_addSuggestionMarker','insertion:chain','from','_mergeNestedSuggestions','clear','parent','markDeletion','type','formatBlock:discard','authoredAt','_createSuggestion','track-changes-command-not-found','substr','_updateSuggestionData','commandName','mapper','addSuggestion','_joinSuggestions','_breakSuggestionMarker','addCommentThread','newRange','error-saving-suggestion-data-suggestion-discarded','open','activeMarkers','author','update:suggestion','buildSuggestion','subType','removeMarker:suggestion:formatBlock','requires','PENDING_ACTION_SUGGESTION','previous','isSelectable','createPositionAt','selection','markInsertion','suggestion','resolve','elementToElement','getFirstRange','consumable','consume','stopListening','forward','rethrowUnexpectedError','updateSuggestion','_getSuggestionData','high','_enabledCommands','toViewElement','pluginName','delete','Users','hasComments','addRange','ck-suggestion-marker-formatBlock','@external','some','isMultiRange','set','isNextTo','creator','getAllAdjacentSuggestions','stop','chain','_removeSuggestion','element','detach','isAtEnd','_adapter','map','after','highest','root','writer','isOwn','start','_handleNewSuggestionMarker','markBlockFormat','model','join','markerToData','track-changes-adapter-missing-getsuggestion','documentSelection','dataToMarker','add','fetchCommentThread','isExternal','markerReady','formatInline:join','trackChanges.mergeNestedSuggestions','getRange','_descriptionFactory','suggestionUnloaded','acceptSuggestion','values','updateMarker','removeAttribute','getAttribute','_refreshSuggestionsChain','then','isRemovable','document','getRanges','removeClass','getMultiRangeId','insertion:','isBefore','createdAt','getAncestors','_trackFormatChanges','_suggestions','addComment','formatGroupId','splice','formatInline:accept','_joinWithAdjacentSuggestions','plugins','formatInline:','_addThreadToSuggestion','track-changes-suggestion-not-found','formatInline:chain','init','containsRange','applyOperation','options','isLocal','isEqual','length','_getExternalAuthor','getCustomProperty','addMarker:suggestion','name','listenTo','bindElementToMarker','_model','getSuggestion','createPositionBefore','markerName','change:activeMarkers','push','howMany','commands','isObject','sort','markers','notReady','split','_suggestionState','change','getWalker','fire','addSuggestionData','_cutOutSuggestionMarker','item','getChanges','get','adapter','getLastMatchingPosition','targetPosition','$graveyard','oldRange','createRange','suggestionLoaded','_customCallbacks','discardSelectedSuggestions','formatBlock:','$marker','enableCommand','getItems','markMultiRangeDeletion','fromRange','position','upcast','setSelection','elementStart','multi','suggestionChanged','PendingActions','isInContent','getUser','always','hasSuggestion','unbind','isTouching','insertion:accept','ck-suggestion-marker-','getShiftedBy','range','_saved','backward','isIntersectingWithRange','deletion:','addMarker:suggestion:formatBlock','schema','reconvertMarker','setAttribute','nodeBefore','originalSuggestionId','_suggestionFactory','authorName','_defaultCallbacks','createSelection','_isForcedDefaultExecutionBlock','discardAllSuggestions','getMarkers','every','marker-count','conversion','insert','addMarkerName','normal','discard','$textProxy','trackChanges.trackFormatChanges','fromCharCode','dataReady','multipleBlocks','track-changes-suggestion-data-mismatch','elementEnd','removeMarkers','size','registerCustomCallback','formatInline:discard','define','accept','rootName','next','getCommentThread','markInlineFormat','_editor','getChangedMarkers','getNearestSelectionRange','markMultiRangeBlockFormat','getSuggestions','_rangeIsInLocalUserInsertion','isAtStart','insertion:join','never','formatBlock','end','dataDowncast','track-changes-user-not-found','isInsideObject','formatInline','forceDefaultExecution','ck-suggestion-marker','differ','locale','editingDowncast','isCollapsed','insertion','remove','suggestion-type','containsRangeInObject','external:','execute','_commentsRepository','formatBlock:join','ready','data','markerToHighlight','before','_setSuggestionData','removeMarker','deletion:discard','trackChangesCommand','markerNameToElements','filter','moveTargetPosition','enableReadOnlyMode','commentThread','_onDiscard','enqueueChange','removed','clone','config','_checkSuggestionCorrectness','toJSON','batch','value','group','_registerDefaultCallbacks','getFirstMarker','change:_saved','containerElement','head','isLimit','getDifference','removeComment','unbindElementFromMarkerName','deletion:join','return','getSuggestionCallback','change:data','isAfter','showSuggestionHighlights','discardSuggestion','includes','deletion','addClass','getIntersection','acceptAllSuggestions','isBlock','CommentsRepository','for','refresh','editor','isUndo','trackChanges','ck-suggestion-marker--active','formatBlock:accept','_findSuggestions','_setSuggestionRange','setTo','nodeAfter','suggestion:','attributes'];(function(_0x2a8ce0,_0x296c31){const _0x4eab43=function(_0x41725f){while(--_0x41725f){_0x2a8ce0['push'](_0x2a8ce0['shift']());}};_0x4eab43(++_0x296c31);}(_0x296c,0x116));const _0x4eab=function(_0x2a8ce0,_0x296c31){_0x2a8ce0=_0x2a8ce0-0x0;let _0x4eab43=_0x296c[_0x2a8ce0];return _0x4eab43;};import{Plugin as _0x73f3ed,PendingActions as _0xcce9ac}from'ckeditor5/src/core';import{LiveRange as _0x146086}from'ckeditor5/src/engine';import{CKEditorError as _0x3e7e96,uid as _0x36bda4,priorities as _0xc33ee5,logWarning as _0x823a6c}from'ckeditor5/src/utils';import{toWidget as _0x15d8fb}from'ckeditor5/src/widget';import{Users as _0x567323,hashObject as _0x495d88}from'ckeditor5-collaboration/src/collaboration-core';import _0x84a2ed from'./commands/trackchangescommand';import _0x12c621 from'./commands/acceptsuggestioncommand';import _0x1e4292 from'./commands/discardsuggestioncommand';import _0x2bead6 from'./commands/executeonallsuggestionscommand';import _0x3c8877 from'./commands/executeonselectedsuggestionscommand';import _0x12f171 from'./suggestion';import _0x5e9195 from'./suggestiondescriptionfactory';import _0xcd1cb9 from'./integrations/alignment';import _0x3878d2 from'./integrations/basicstyles';import _0x5229f8 from'./integrations/blockquote';import _0x1f005b from'./integrations/ckbox';import _0x58146a from'./integrations/codeblock';import _0x99a178 from'./integrations/comments';import _0x13b0a6 from'./integrations/deletecommand';import _0x4bea34 from'./integrations/documentlist';import _0x5487d5 from'./integrations/entercommand';import _0x122c26 from'./integrations/findandreplace';import _0x170c8d from'./integrations/font';import _0x1d2257 from'./integrations/formatpainter';import _0x3fa81b from'./integrations/heading';import _0x424b8c from'./integrations/highlight';import _0x698d6d from'./integrations/horizontalline';import _0xfcb537 from'./integrations/htmlembed';import _0x5ad4f1 from'./integrations/image';import _0x36005b from'./integrations/imagereplace';import _0x25cd36 from'./integrations/importword';import _0x3adc9c from'./integrations/indent';import _0x11b15e from'./integrations/inputcommand';import _0x2bccff from'./integrations/link';import _0x2510fb from'./integrations/list';import _0x5df63d from'./integrations/listproperties';import _0x497fe7 from'./integrations/mediaembed';import _0x17ecfb from'./integrations/mention';import _0xc37888 from'./integrations/pagebreak';import _0x4343f2 from'./integrations/paragraph';import _0x24bcd9 from'./integrations/removeformat';import _0x5c3cd8 from'./integrations/restrictededitingmode';import _0x1552cf from'./integrations/shiftentercommand';import _0x179b80 from'./integrations/standardeditingmode';import _0x49c623 from'./integrations/style';import _0x2e90da from'./integrations/table';import _0x1ccdc4 from'./integrations/tablemergesplit';import _0x2d6a9b from'./integrations/tableheadings';import _0x1ad73d from'./integrations/tableclipboard';import _0x47c265 from'./integrations/tablecolumnresize';import _0x38b7cd from'./integrations/template';import _0x1bfe0b from'./integrations/tableofcontents';import _0x184141 from'./integrations/title';import _0x500f61 from'./integrations/undo';import{getTranslation as _0x4a2b42}from'./utils/common-translations';import _0x4489bf from'./integrations/tablecaption';import _0xd691e4 from'./integrations/documentlistproperties';import _0x5b4ece from'./integrations/tableproperties';export default class p extends _0x73f3ed{static get[_0x4eab('0x53')](){return[_0x4eab('0x21'),_0x567323,_0xcce9ac,_0xcd1cb9,_0x3878d2,_0x5229f8,_0x1f005b,_0x58146a,_0x99a178,_0x13b0a6,_0x4bea34,_0xd691e4,_0x5487d5,_0x122c26,_0x170c8d,_0x1d2257,_0x3fa81b,_0x424b8c,_0x698d6d,_0xfcb537,_0x5ad4f1,_0x36005b,_0x25cd36,_0x3adc9c,_0x11b15e,_0x2bccff,_0x2510fb,_0x5df63d,_0x497fe7,_0x17ecfb,_0xc37888,_0x4343f2,_0x24bcd9,_0x5c3cd8,_0x1552cf,_0x179b80,_0x49c623,_0x2e90da,_0x1ccdc4,_0x2d6a9b,_0x4489bf,_0x1ad73d,_0x47c265,_0x1bfe0b,_0x5b4ece,_0x38b7cd,_0x184141,_0x500f61];}static get[_0x4eab('0x68')](){return'TrackChangesEditing';}constructor(_0x32ffc1){function _0x74587c(_0x3dcb26){return _0x3dcb26[_0x4eab('0x7c')](_0x10dad0=>String[_0x4eab('0x10d')](_0x10dad0))['join']('');}super(_0x32ffc1),this[_0x4eab('0x71')](_0x4eab('0x4d'),[]),this['on'](_0x4eab('0xc1'),(_0x1e55cd,_0x51d6e8,_0x1b1bb4,_0x52d0a9)=>{this['_model'][_0x4eab('0xcb')](()=>{for(const _0x1c253d of[..._0x52d0a9,..._0x1b1bb4])this['_model'][_0x4eab('0xc7')][_0x4eab('0x30')](_0x1c253d)&&_0x32ffc1['editing'][_0x4eab('0xf9')](_0x1c253d);});}),this[_0x4eab('0x92')]=new _0x5e9195(this[_0x4eab('0x24')]['model'][_0x4eab('0xf8')],this[_0x4eab('0x24')][_0x4eab('0x12e')]),this[_0x4eab('0x7b')]=null,this[_0x4eab('0xfd')]=new Dt(this['editor']),this[_0x4eab('0xa5')]=new Map(),this[_0x4eab('0x137')]=_0x32ffc1[_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x21')),this[_0x4eab('0x66')]=new Set(),this[_0x4eab('0xbd')]=this[_0x4eab('0x24')][_0x4eab('0x85')],this['_suggestionState']=new WeakMap(),this[_0x4eab('0x101')]=!0x1,_0x32ffc1[_0x4eab('0x5')][_0x4eab('0x116')](_0x4eab('0x10c'),'default'),this['_trackFormatChanges']=_0x32ffc1[_0x4eab('0x5')]['get'](_0x4eab('0x10c')),_0x32ffc1['config']['define'](_0x4eab('0x90'),!0x0),this['_mergeNestedSuggestions']=_0x32ffc1['config'][_0x4eab('0xd2')](_0x4eab('0x90')),this[_0x4eab('0x140')]=new _0x84a2ed(_0x32ffc1,this[_0x4eab('0x66')]),this[_0x74587c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x74587c([0x34,0x30,0x34,0x36,0x31,0x36,0x31,0x38]);}[_0x4eab('0xb0')](){const _0x56af72=this[_0x4eab('0x24')];_0x56af72[_0x4eab('0x106')][_0x4eab('0x22')](_0x4eab('0x12f'))[_0x4eab('0x13b')]({'model':_0x4eab('0x5a'),'view':_0x5c535e=>{const {id:_0x2f63f6,type:_0x1839bd}=this['_splitMarkerName'](_0x5c535e['markerName']),_0x284b4a=[_0x4eab('0x12c'),_0x4eab('0xf0')+_0x1839bd];let _0x449f8e=0xbb8;return this[_0x4eab('0x4d')][_0x4eab('0x1b')](_0x5c535e[_0x4eab('0xc0')])&&(_0x284b4a[_0x4eab('0xc2')](_0x4eab('0x27')),_0x449f8e=0xbc2),_0x4eab('0x1c')==_0x1839bd&&(_0x449f8e+=0x5),{'classes':_0x284b4a,'attributes':{'data-suggestion':_0x2f63f6},'priority':_0x449f8e};}}),_0x56af72['conversion'][_0x4eab('0x22')]('dataDowncast')[_0x4eab('0x8b')](_0x55c73d=>{_0x55c73d['on'](_0x4eab('0xb9'),(_0x1ce795,_0xbff897,_0x4fe16e)=>{if(!_0x4fe16e[_0x4eab('0xb3')][_0x4eab('0x19')])return;const _0x5d492a=_0xbff897[_0x4eab('0xd0')];if(!_0x5d492a)return;const _0x33aa71=_0x4fe16e[_0x4eab('0x45')][_0x4eab('0x67')](_0x5d492a);_0x56af72['model'][_0x4eab('0xf8')][_0x4eab('0xc5')](_0x5d492a)&&_0x33aa71&&!_0x33aa71[_0x4eab('0xb8')]('widget')&&_0x33aa71['is'](_0x4eab('0xe'))&&_0x15d8fb(_0x33aa71,_0x4fe16e['writer']);},{'priority':_0x4eab('0x65')});}),_0x56af72[_0x4eab('0x106')][_0x4eab('0x22')](_0x4eab('0x127'))[_0x4eab('0x13b')]({'model':_0x4eab('0x5a'),'view':(_0xa21116,_0x49a517)=>{if(!_0x49a517['options'][_0x4eab('0x19')])return null;const {type:_0x450139}=this[_0x4eab('0x32')](_0xa21116['markerName']);return{'classes':['ck-suggestion-marker',_0x4eab('0xf0')+_0x450139],'priority':0xbb8};}});const _0x149a96=({showActiveMarkers:_0x2774b5=!0x0}={})=>(_0x194bc2,_0x274b9e,_0x2b4bb2)=>{if(!_0x274b9e[_0x4eab('0xd0')])return;if(_0x274b9e[_0x4eab('0xd0')]['is'](_0x4eab('0x58')))return void _0x2b4bb2[_0x4eab('0x5e')][_0x4eab('0x5f')](_0x274b9e[_0x4eab('0xd0')],_0x194bc2[_0x4eab('0xba')]);const _0x36cc12=_0x2b4bb2['mapper'][_0x4eab('0x67')](_0x274b9e['item']);if(!(_0x274b9e[_0x4eab('0xd0')]['is']('element')&&_0x56af72[_0x4eab('0x85')]['schema'][_0x4eab('0x20')](_0x274b9e['item'])&&!_0x36cc12[_0x4eab('0xb8')]('addHighlight')))return;const {id:_0x5b712e}=this[_0x4eab('0x32')](_0x274b9e[_0x4eab('0xc0')]);_0x2b4bb2['writer'][_0x4eab('0x1d')](['ck-suggestion-marker',_0x4eab('0x6d')],_0x36cc12),_0x2b4bb2[_0x4eab('0x80')][_0x4eab('0xfa')](_0x4eab('0x33'),_0x5b712e,_0x36cc12),_0x2b4bb2[_0x4eab('0x45')][_0x4eab('0xbc')](_0x36cc12,_0x274b9e[_0x4eab('0xc0')]),_0x2774b5&&(this['activeMarkers'][_0x4eab('0x1b')](_0x274b9e[_0x4eab('0xc0')])?_0x2b4bb2[_0x4eab('0x80')][_0x4eab('0x1d')]('ck-suggestion-marker--active',_0x36cc12):_0x2b4bb2['writer'][_0x4eab('0x9e')]('ck-suggestion-marker--active',_0x36cc12));for(const _0x4b420b of _0x56af72['model']['createRangeIn'](_0x274b9e[_0x4eab('0xd0')])[_0x4eab('0xdf')]())_0x2b4bb2[_0x4eab('0x5e')][_0x4eab('0x5f')](_0x4b420b,_0x194bc2['name']);_0x2b4bb2[_0x4eab('0x5e')][_0x4eab('0x5f')](_0x274b9e[_0x4eab('0xd0')],_0x194bc2['name']);};_0x56af72[_0x4eab('0x106')][_0x4eab('0x22')](_0x4eab('0x127'))['add'](_0x526394=>{_0x526394['on'](_0x4eab('0xf7'),(_0x42bc55,_0x37171f,_0x1cd290)=>{_0x1cd290[_0x4eab('0xb3')][_0x4eab('0x19')]&&_0x149a96({'showActiveMarkers':!0x1})(_0x42bc55,_0x37171f,_0x1cd290);},{'priority':_0x4eab('0x7e')});}),_0x56af72[_0x4eab('0x106')][_0x4eab('0x22')](_0x4eab('0x127'))[_0x4eab('0x87')]({'model':_0x4eab('0x5a'),'view':(_0x9047b5,_0x47c67f)=>_0x47c67f['options'][_0x4eab('0x19')]?null:{'group':_0x4eab('0x5a'),'name':_0x9047b5[_0x4eab('0x42')](0xb)}}),_0x56af72['conversion'][_0x4eab('0x22')]('upcast')[_0x4eab('0x5c')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2e9a65,{writer:_0x2dda1f})=>{let _0x2a2b9d=_0x4eab('0x2d')+_0x2e9a65['getAttribute'](_0x4eab('0x133'))+':'+_0x2e9a65['getAttribute']('id');return _0x2e9a65[_0x4eab('0x98')](_0x4eab('0x105'))&&(_0x2a2b9d+=':'+_0x2e9a65[_0x4eab('0x98')](_0x4eab('0x105'))),_0x2dda1f['createElement'](_0x4eab('0xdd'),{'data-name':_0x2a2b9d});}}),_0x56af72['conversion']['for'](_0x4eab('0xe3'))[_0x4eab('0x8a')]({'view':_0x4eab('0x5a')}),_0x56af72[_0x4eab('0x106')][_0x4eab('0x22')](_0x4eab('0x12f'))[_0x4eab('0x8b')](_0x48d3aa=>{_0x48d3aa['on'](_0x4eab('0xf7'),_0x149a96(),{'priority':_0x4eab('0x65')});}),_0x56af72[_0x4eab('0x106')]['for'](_0x4eab('0x12f'))[_0x4eab('0x8b')](_0x309af7=>{_0x309af7['on'](_0x4eab('0x52'),(_0x22c3ba,_0x191736,_0x397347)=>{const _0x1c8f8d=_0x397347[_0x4eab('0x45')][_0x4eab('0x141')](_0x191736['markerName']);if(_0x1c8f8d)for(const _0x2408cd of _0x1c8f8d)_0x2408cd[_0x4eab('0xb8')]('addHighlight')||(_0x397347['writer'][_0x4eab('0x9e')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x4eab('0x27')],_0x2408cd),_0x397347[_0x4eab('0x80')][_0x4eab('0x97')]('data-suggestion',_0x2408cd),_0x397347[_0x4eab('0x45')][_0x4eab('0x13')](_0x2408cd,_0x191736[_0x4eab('0xc0')]));},{'priority':_0x4eab('0x65')});}),_0x56af72['model'][_0x4eab('0x9c')]['registerPostFixer'](_0x2f43bf=>{let _0x7c45f=!0x1;const _0x34a429=Array[_0x4eab('0x38')](_0x56af72[_0x4eab('0x85')][_0x4eab('0x9c')]['differ'][_0x4eab('0x11d')]()),_0x563c25=new Set();for(const {name:_0x2f0451,data:_0x56351d}of _0x34a429){const {group:_0x4d1031,type:_0x410241,id:_0x3ee907}=this['_splitMarkerName'](_0x2f0451);if(_0x4eab('0x5a')!==_0x4d1031)continue;const _0xc607b5=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x3ee907);if(null!=_0x56351d[_0x4eab('0x4a')]){'formatInline'==_0x410241&&(_0x7c45f=_0x7c45f||Mt(_0x56351d[_0x4eab('0x4a')],_0x2f0451,_0x2f43bf,_0x56af72[_0x4eab('0x85')][_0x4eab('0xf8')]));if(_0x56351d['newRange'][_0x4eab('0x130')]||_0x4eab('0xd6')==_0x56351d['newRange'][_0x4eab('0x7f')][_0x4eab('0x118')]||'formatBlock'==_0x410241&&!Nt(_0x56351d['newRange'])||_0x4eab('0x1c')==_0x410241&&!(!_t(_0x55d47f=_0x56351d[_0x4eab('0x4a')])&&!function(_0x4f3b20){return _0x4f3b20[_0x4eab('0x82')][_0x4eab('0x3b')]==_0x4f3b20[_0x4eab('0x126')][_0x4eab('0xfb')]&&_0x4f3b20[_0x4eab('0x82')][_0x4eab('0x7a')];}(_0x55d47f)))_0x2f43bf[_0x4eab('0x13e')](_0x2f0451),_0x7c45f=!0x0;else{if(!_0xc607b5||!_0xc607b5[_0x4eab('0xe9')])continue;_0x563c25[_0x4eab('0x8b')](_0xc607b5);}}}var _0x55d47f;return _0x563c25['size']>0x0&&(_0x7c45f=!!this[_0x4eab('0xaa')](_0x563c25)||_0x7c45f),_0x7c45f;}),_0x56af72[_0x4eab('0x85')][_0x4eab('0x9c')]['registerPostFixer'](_0x8d6ddd=>{let _0x7e9660=!0x1;for(const _0x1be252 of _0x56af72[_0x4eab('0x85')][_0x4eab('0x9c')][_0x4eab('0x12d')][_0x4eab('0xd1')]()){if(_0x4eab('0x107')!=_0x1be252[_0x4eab('0x3d')])continue;const _0x246899=_0x1be252[_0x4eab('0xe2')]['getShiftedBy'](_0x1be252[_0x4eab('0xb6')]);if(_0x246899[_0x4eab('0x7a')])for(const _0x330d0f of this[_0x4eab('0xa5')][_0x4eab('0x95')]()){if(_0x330d0f['isMultiRange']||!_0x330d0f[_0x4eab('0xe9')])continue;if(_0x4eab('0x125')!=_0x330d0f[_0x4eab('0x3d')])continue;const _0x23ef99=_0x330d0f[_0x4eab('0x5d')]();if(_0x23ef99[_0x4eab('0x82')]['parent']!=_0x23ef99[_0x4eab('0x126')]['parent']&&_0x23ef99[_0x4eab('0x126')][_0x4eab('0xb5')](_0x1be252[_0x4eab('0xe2')])){const _0x5709ab=_0x56af72[_0x4eab('0x85')][_0x4eab('0xd8')](_0x23ef99[_0x4eab('0x82')],_0x246899);_0x8d6ddd[_0x4eab('0x96')](_0x330d0f[_0x4eab('0xc')](),{'range':_0x5709ab}),_0x7e9660=!0x0;}}}return _0x7e9660;}),_0x56af72[_0x4eab('0x85')]['markers']['on'](_0x4eab('0x4f'),(_0x18c724,_0x5518af,_0x32e190)=>{if(null==_0x32e190){const {id:_0x297d8a}=this[_0x4eab('0x32')](_0x5518af[_0x4eab('0xba')]),_0x4762be=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x297d8a);_0x4762be&&_0x4762be[_0x4eab('0x108')](_0x5518af[_0x4eab('0xba')]);}}),_0x56af72[_0x4eab('0x85')][_0x4eab('0x9c')]['on'](_0x4eab('0x17'),()=>{const _0x598916=Array['from'](_0x56af72[_0x4eab('0x85')][_0x4eab('0x9c')][_0x4eab('0x12d')][_0x4eab('0x11d')]())['filter'](_0x4b8a75=>'suggestion'===this[_0x4eab('0x32')](_0x4b8a75[_0x4eab('0xba')])[_0x4eab('0xa')]);if(0x0===_0x598916[_0x4eab('0xb6')])return;_0x598916[_0x4eab('0xc6')]((_0x5f2d74,_0x724914)=>{const _0xcf003d=_0x5f2d74['data'][_0x4eab('0xd7')],_0x1a7fa3=_0x724914['data'][_0x4eab('0xd7')];return null===_0xcf003d&&null===_0x1a7fa3?0x0:null===_0xcf003d&&null!==_0x1a7fa3?-0x1:null!==_0xcf003d&&null===_0x1a7fa3?0x1:_0xcf003d[_0x4eab('0x82')][_0x4eab('0xa1')](_0x1a7fa3['start'])?-0x1:0x1;});const _0x32ea4b=new Set(),_0x4759cc=new Set();for(const {name:_0x703210,data:_0x564904}of _0x598916){const {id:_0x630000}=this[_0x4eab('0x32')](_0x703210);if(null===_0x564904[_0x4eab('0xd7')]){const _0x1a93bc=this[_0x4eab('0x83')](_0x703210);_0x4759cc['add'](_0x1a93bc);}else{const _0x12cdd7=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x630000);null!==_0x564904[_0x4eab('0x4a')]||_0x12cdd7['isInContent']?(_0x32ea4b[_0x4eab('0x8b')](_0x12cdd7[_0x4eab('0xf')]),_0x4759cc[_0x4eab('0x8b')](_0x12cdd7)):this[_0x4eab('0x77')](_0x12cdd7);}}_0x4759cc[_0x4eab('0x113')]>0x0&&this[_0x4eab('0x99')](_0x4759cc);for(const _0x2c2044 of _0x32ea4b)this['fire'](_0x4eab('0xe7'),_0x2c2044);}),_0x56af72['model']['on'](_0x4eab('0xb2'),(_0x599cd4,_0x4205ce)=>{const _0x3dca8a=_0x4205ce[0x0];if(!this['_suggestions']['size'])return;if(!_0x3dca8a['isDocumentOperation'])return;if(_0x3dca8a['batch'][_0x4eab('0x25')]||!_0x3dca8a[_0x4eab('0x8')][_0x4eab('0xb4')])return;let _0x5eaff9,_0x3df5bc;switch(_0x3dca8a[_0x4eab('0x3d')]){case _0x4eab('0x107'):_0x5eaff9=_0x56af72[_0x4eab('0x85')]['createPositionAt'](_0x3dca8a[_0x4eab('0xe2')]),_0x3df5bc=_0x5eaff9[_0x4eab('0xf1')](_0x3dca8a[_0x4eab('0xc3')]);break;case _0x4eab('0xc9'):_0x5eaff9=_0x56af72['model']['createPositionAt'](_0x3dca8a['splitPosition']),_0x3df5bc=_0x56af72[_0x4eab('0x85')][_0x4eab('0x57')](_0x3dca8a[_0x4eab('0x143')]);break;case'move':_0x5eaff9=_0x56af72[_0x4eab('0x85')][_0x4eab('0x57')](_0x3dca8a[_0x4eab('0xd5')]),_0x3df5bc=_0x5eaff9['getShiftedBy'](_0x3dca8a['howMany']);break;default:return;}const _0x28ae32=_0x56af72[_0x4eab('0x85')][_0x4eab('0xd8')](_0x5eaff9,_0x3df5bc);_0x56af72[_0x4eab('0x85')][_0x4eab('0xcb')](()=>{for(const {suggestion:_0x28aa88,meta:_0x10fb9f}of this[_0x4eab('0x29')](_0x28ae32)){if(_0x28aa88['isMultiRange'])continue;if(_0x4eab('0x12a')==_0x28aa88[_0x4eab('0x3d')])continue;const _0x1e506e=_0x28aa88[_0x4eab('0x13a')]&&_0x28aa88[_0x4eab('0x13a')][_0x4eab('0x10f')];(_0x4eab('0x125')!=_0x28aa88[_0x4eab('0x3d')]||'split'==_0x3dca8a['type']&&!_0x1e506e)&&(_0x10fb9f[_0x4eab('0x134')]||'insertion'==_0x28aa88[_0x4eab('0x3d')]&&_0x10fb9f[_0x4eab('0x81')]||_0x28aa88[_0x4eab('0x5d')]()[_0x4eab('0xb1')](_0x28ae32)&&this[_0x4eab('0x48')](_0x28aa88,_0x5eaff9,_0x3df5bc));}});},{'priority':'lowest'}),_0x56af72[_0x4eab('0x85')]['on']('deleteContent',(_0x37bef1,_0x13cba9)=>{const _0x43d948=_0x13cba9[0x0],_0x2949c1=_0x13cba9[0x1];if(_0x2949c1&&_0x2949c1[_0x4eab('0x12b')])return;if(this[_0x4eab('0x101')])return;if(!this[_0x4eab('0x140')]['value'])return;if(_0x43d948['isCollapsed'])return;const _0x51ea6d=_0x56af72[_0x4eab('0x85')][_0x4eab('0xf8')],{start:_0x416b3a,end:_0x22f2b3}=_0x43d948[_0x4eab('0x5d')](),_0xfb5bd0=_0x416b3a[_0x4eab('0x2c')]&&_0x51ea6d[_0x4eab('0x10')](_0x416b3a[_0x4eab('0x2c')])?null:_0x51ea6d[_0x4eab('0x11e')](_0x416b3a,_0x4eab('0x61')),_0x448cd1=_0x22f2b3['nodeBefore']&&_0x51ea6d['isLimit'](_0x22f2b3[_0x4eab('0xfb')])?null:_0x51ea6d[_0x4eab('0x11e')](_0x22f2b3,_0x4eab('0xf4')),_0x490596=_0x56af72[_0x4eab('0x85')][_0x4eab('0xd8')](_0xfb5bd0?_0xfb5bd0[_0x4eab('0x82')]:_0x416b3a,_0x448cd1?_0x448cd1[_0x4eab('0x126')]:_0x22f2b3);_0x56af72['model'][_0x4eab('0xcb')](_0x354859=>{this[_0x4eab('0x3c')](_0x490596);const _0x498123=_0x56af72[_0x4eab('0x85')][_0x4eab('0xf8')]['getNearestSelectionRange'](_0x490596[_0x4eab('0x82')]);_0x43d948['is'](_0x4eab('0x89'))?_0x354859[_0x4eab('0xe4')](_0x498123):_0x43d948[_0x4eab('0x2b')](_0x498123);}),_0x37bef1[_0x4eab('0x75')]();},{'priority':_0xc33ee5[_0x4eab('0x109')]+0xa}),_0x56af72['model']['on']('insertContent',(_0x4a18c8,_0x37eb73)=>{const _0x24e596=_0x37eb73[_0x37eb73[_0x4eab('0xb6')]-0x1];_0x24e596&&_0x24e596[_0x4eab('0x12b')]||this['_isForcedDefaultExecutionBlock']||this[_0x4eab('0x140')][_0x4eab('0x9')]&&(_0x56af72[_0x4eab('0x85')][_0x4eab('0xcb')](()=>{let _0x49ef30=_0x56af72[_0x4eab('0x85')]['insertContent'](_0x37eb73[0x0],_0x37eb73[0x1],_0x37eb73[0x2],{'forceDefaultExecution':!0x0});if(!_0x49ef30)return;_0x4a18c8[_0x4eab('0x15')]=_0x49ef30[_0x4eab('0x4')]();const _0x31ca1d=_0x49ef30[_0x4eab('0x126')][_0x4eab('0xfb')],_0x6320c4=_0x56af72[_0x4eab('0x85')][_0x4eab('0xf8')];_0x31ca1d&&_0x6320c4[_0x4eab('0x20')](_0x31ca1d)&&!_0x6320c4[_0x4eab('0xc5')](_0x31ca1d)&&(_0x49ef30=_0x56af72[_0x4eab('0x85')][_0x4eab('0xd8')](_0x49ef30[_0x4eab('0x82')],_0x56af72[_0x4eab('0x85')][_0x4eab('0x57')](_0x31ca1d,_0x4eab('0x126')))),this[_0x4eab('0x59')](_0x49ef30);}),_0x4a18c8[_0x4eab('0x75')]());},{'priority':'high'}),this['editor'][_0x4eab('0xc4')][_0x4eab('0x8b')](_0x4eab('0x26'),this[_0x4eab('0x140')]),this[_0x4eab('0xde')](_0x4eab('0x26'));const _0x5af155=new _0x12c621(_0x56af72,this[_0x4eab('0xa5')]);_0x56af72['commands'][_0x4eab('0x8b')](_0x4eab('0x94'),_0x5af155),this[_0x4eab('0xde')](_0x4eab('0x94'));const _0x5ee632=new _0x1e4292(_0x56af72,this[_0x4eab('0xa5')]);_0x56af72[_0x4eab('0xc4')]['add'](_0x4eab('0x1a'),_0x5ee632),this[_0x4eab('0xde')]('discardSuggestion'),_0x56af72[_0x4eab('0xc4')]['add'](_0x4eab('0x1f'),new _0x2bead6(_0x56af72,_0x5af155,this[_0x4eab('0xa5')])),this[_0x4eab('0xde')](_0x4eab('0x1f')),_0x56af72[_0x4eab('0xc4')][_0x4eab('0x8b')](_0x4eab('0x102'),new _0x2bead6(_0x56af72,_0x5ee632,this[_0x4eab('0xa5')])),this[_0x4eab('0xde')](_0x4eab('0x102')),_0x56af72[_0x4eab('0xc4')][_0x4eab('0x8b')](_0x4eab('0x31'),new _0x3c8877(_0x56af72,_0x5af155,this[_0x4eab('0xa5')])),this['enableCommand'](_0x4eab('0x31')),_0x56af72[_0x4eab('0xc4')]['add']('discardSelectedSuggestions',new _0x3c8877(_0x56af72,_0x5ee632,this['_suggestions'])),this['enableCommand'](_0x4eab('0xdb'));const _0x35e44a=_0x56af72[_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x21'));this[_0x4eab('0xbb')](_0x35e44a,_0x4eab('0xa6'),(_0x5650ff,{threadId:_0x1888ec})=>{const _0x5c9872=this['_suggestions'][_0x4eab('0xd2')](_0x1888ec);_0x5c9872&&_0x5c9872[_0x4eab('0x0')]&&0x1===_0x5c9872[_0x4eab('0x0')][_0x4eab('0xb6')]&&this[_0x4eab('0x43')](_0x1888ec,{'hasComments':!0x0});},{'priority':_0x4eab('0x2f')}),this[_0x4eab('0xbb')](_0x35e44a,_0x4eab('0x12'),(_0x116c59,{threadId:_0x3aad0b})=>{const _0x230282=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x3aad0b);_0x230282&&_0x230282[_0x4eab('0x0')]&&!_0x230282[_0x4eab('0x0')][_0x4eab('0xb6')]&&this[_0x4eab('0x43')](_0x3aad0b,{'hasComments':!0x1});},{'priority':_0x4eab('0x2f')});}set[_0x4eab('0xd3')](_0x1c447c){if(this['_adapter'])throw new _0x3e7e96('track-changes-adapter-already-set',this);this[_0x4eab('0x7b')]=_0x1c447c;}get[_0x4eab('0xd3')](){return this[_0x4eab('0x7b')];}[_0x4eab('0x120')]({skipNotAttached:_0x372024=!0x1,toJSON:_0x382c4d=!0x1}={}){const _0x54e794=[];for(const _0x5064de of this[_0x4eab('0xa5')][_0x4eab('0x95')]())_0x372024&&!_0x5064de[_0x4eab('0xe9')]||_0x54e794[_0x4eab('0xc2')](_0x5064de);return _0x382c4d?_0x54e794[_0x4eab('0x7c')](_0x3e3eec=>_0x3e3eec[_0x4eab('0x7')]()):_0x54e794;}[_0x4eab('0xbe')](_0x4578ab){const _0xbd5fd7=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x4578ab);if(!_0xbd5fd7)throw new _0x3e7e96(_0x4eab('0xae'),this);return _0xbd5fd7;}[_0x4eab('0xec')](_0xd4587a){return this[_0x4eab('0xa5')][_0x4eab('0x30')](_0xd4587a);}['addSuggestionData'](_0x302a4a){const {authorId:_0x256d02,id:_0x3583d7,attributes:_0x28fe33}=_0x302a4a,[_0x16704b,_0x203904]=_0x302a4a[_0x4eab('0x3d')][_0x4eab('0xc9')](':'),_0x26ed0c=this['_suggestions'][_0x4eab('0xd2')](_0x3583d7)||this[_0x4eab('0x40')](_0x16704b,_0x203904,_0x3583d7,_0x256d02,_0x28fe33);if(this[_0x4eab('0xad')](_0x26ed0c),this[_0x4eab('0x6')](_0x26ed0c,_0x16704b,_0x203904||null,_0x256d02),_0x26ed0c[_0x4eab('0xa2')]=_0x302a4a['createdAt'],_0x28fe33&&_0x28fe33[_0x4eab('0x6e')]){const _0x2cc5be=_0x28fe33['@external'],_0x2fe1bd=this[_0x4eab('0xb7')](_0x2cc5be[_0x4eab('0xfe')]);_0x26ed0c['authoredAt']=_0x2cc5be[_0x4eab('0xa2')],_0x26ed0c[_0x4eab('0x4e')]=_0x2fe1bd,_0x26ed0c[_0x4eab('0x8d')]=!0x0;}else _0x26ed0c[_0x4eab('0x3f')]=_0x302a4a['createdAt'];switch(_0x302a4a['data']&&(_0x26ed0c[_0x4eab('0x13a')]=_0x302a4a[_0x4eab('0x13a')]),_0x302a4a['attributes']&&(_0x26ed0c[_0x4eab('0x2e')]=_0x302a4a['attributes']),this[_0x4eab('0x7b')]&&this[_0x4eab('0x7b')][_0x4eab('0x46')]||(_0x26ed0c[_0x4eab('0xf3')]=!0x0),this[_0x4eab('0xca')][_0x4eab('0xd2')](_0x26ed0c)){case _0x4eab('0xc8'):this['_suggestionState']['set'](_0x26ed0c,_0x4eab('0x10e'));break;case _0x4eab('0x8e'):_0x26ed0c['isInContent']?(this[_0x4eab('0xca')][_0x4eab('0x71')](_0x26ed0c,'ready'),this['fire']('suggestionLoaded',_0x26ed0c)):this[_0x4eab('0xca')][_0x4eab('0x71')](_0x26ed0c,_0x4eab('0x3'));}return _0x26ed0c;}[_0x4eab('0x94')](_0x3582c0){this[_0x4eab('0x12b')](()=>{this['editor'][_0x4eab('0x85')][_0x4eab('0xcb')](()=>{for(const _0x16e707 of _0x3582c0[_0x4eab('0x74')]())_0x16e707[_0x4eab('0x117')]();});});}[_0x4eab('0x1a')](_0x395efb){this['forceDefaultExecution'](()=>{this[_0x4eab('0x24')]['model'][_0x4eab('0xcb')](()=>{for(const _0x1f8124 of _0x395efb[_0x4eab('0x74')]())_0x1f8124[_0x4eab('0x10a')]();});});}[_0x4eab('0xde')](_0x2b7ea8,_0x42da0a){const _0x3b134e=this[_0x4eab('0x24')]['commands'][_0x4eab('0xd2')](_0x2b7ea8);if(!_0x3b134e)throw new _0x3e7e96(_0x4eab('0x41'),this,{'commandName':_0x2b7ea8});this['_enabledCommands'][_0x4eab('0x8b')](_0x3b134e),_0x42da0a&&_0x3b134e['on']('execute',(_0x465ddd,_0x1db138)=>{this[_0x4eab('0x140')]['value']&&(this[_0x4eab('0x101')]||_0x1db138[_0x4eab('0xb6')]>0x0&&_0x1db138[_0x1db138[_0x4eab('0xb6')]-0x1]&&_0x1db138[_0x1db138['length']-0x1][_0x4eab('0x12b')]||(_0x42da0a((..._0x9b8f48)=>_0x3b134e[_0x4eab('0x136')](..._0x9b8f48,{'forceDefaultExecution':!0x0}),..._0x1db138),_0x465ddd[_0x4eab('0x75')]()));},{'priority':_0x4eab('0x65')});}['forceDefaultExecution'](_0x37b7b6){let _0x3672c9,_0x2a032d;const _0xc3ba50=this['_isForcedDefaultExecutionBlock'];this[_0x4eab('0x101')]=!0x0;try{_0x3672c9=_0x37b7b6();}catch(_0x354582){_0x2a032d=_0x354582;}return _0xc3ba50||(this[_0x4eab('0x101')]=!0x1),_0x2a032d&&_0x3e7e96[_0x4eab('0x62')](_0x2a032d,this),_0x3672c9;}[_0x4eab('0x59')](_0x121d6b,_0x512dd4=null,_0xb0f64e={}){if(_0x121d6b[_0x4eab('0x130')])return null;const _0x1f8bd1=this[_0x4eab('0x24')]['plugins'][_0x4eab('0xd2')](_0x4eab('0x6a'))['me'];for(const {suggestion:_0xa02fdc,meta:_0x7bb98c}of this[_0x4eab('0x29')](_0x121d6b,_0x4eab('0x131')))if(_0x7bb98c[_0x4eab('0x81')]){if(!_0x7bb98c[_0x4eab('0x72')]){if(!this[_0x4eab('0x39')]&&_0x7bb98c[_0x4eab('0x134')])continue;return _0xa02fdc;}if(_0x512dd4==_0xa02fdc['subType']){const _0x3631ba=_0xa02fdc[_0x4eab('0x5d')]();return _0x3631ba[_0x4eab('0x82')][_0x4eab('0xb5')](_0x121d6b[_0x4eab('0x126')])?this[_0x4eab('0x2a')](_0xa02fdc,this['_model'][_0x4eab('0xd8')](_0x121d6b[_0x4eab('0x82')],_0x3631ba[_0x4eab('0x126')])):this['_setSuggestionRange'](_0xa02fdc,this['_model'][_0x4eab('0xd8')](_0x3631ba[_0x4eab('0x82')],_0x121d6b[_0x4eab('0x126')])),_0xa02fdc;}}const _0xe2a49a=_0x36bda4(),_0x117d9c=_0x1f8bd1['id'],_0xd636f8=_0x512dd4?'insertion:'+_0x512dd4:_0x4eab('0x131'),_0x5e63a7=this[_0x4eab('0x13d')]({'id':_0xe2a49a,'type':_0xd636f8,'createdAt':new Date(),'authorId':_0x117d9c,'attributes':_0xb0f64e});return this[_0x4eab('0x36')](_0xd636f8,_0xe2a49a,_0x117d9c,_0x121d6b),_0x5e63a7;}['markMultiRangeInsertion'](_0x99d2d1,_0x36c964=_0x4eab('0xe6'),_0x475317={}){const _0x29246b=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x6a'))['me'],_0x1aba07=this[_0x4eab('0xfd')][_0x4eab('0x16')]('insertion',_0x36c964,'join');for(const _0x56f973 of this['getSuggestions']())if(_0x56f973[_0x4eab('0x4e')]['id']==_0x29246b['id']&&_0x4eab('0x131')==_0x56f973[_0x4eab('0x3d')]&&_0x56f973['subType']==_0x36c964&&(_0x1aba07(_0x56f973[_0x4eab('0x9d')](),_0x99d2d1)||_0x1aba07(_0x99d2d1,_0x56f973[_0x4eab('0x9d')]()))){for(const _0x593d4b of _0x99d2d1)_0x56f973[_0x4eab('0x6c')](_0x593d4b);return _0x56f973;}if(this['_mergeNestedSuggestions'])for(const _0x3aa14f of _0x99d2d1)for(const {suggestion:_0xdc928b,meta:_0x1a022a}of this[_0x4eab('0x29')](_0x3aa14f,_0x4eab('0x131'))){if(!_0x1a022a[_0x4eab('0x81')])continue;let _0x511a23=!0x0;for(const _0xdf09b7 of _0xdc928b[_0x4eab('0x9d')]())for(const _0x1c9e95 of _0x99d2d1)if(!_0xdf09b7[_0x4eab('0xb1')](_0x1c9e95)){_0x511a23=!0x1;break;}if(_0x511a23)return _0xdc928b;}const _0x12a628=_0x36bda4(),_0xee57f3=_0x29246b['id'],_0x287eb3=_0x4eab('0xa0')+_0x36c964,_0x2fcb04=this[_0x4eab('0x13d')]({'id':_0x12a628,'type':_0x287eb3,'createdAt':new Date(),'authorId':_0xee57f3,'attributes':_0x475317});for(const _0x262e8f of _0x99d2d1)this[_0x4eab('0x36')](_0x287eb3,_0x12a628,_0xee57f3,_0x262e8f,_0x12f171[_0x4eab('0x9f')]());return _0x2fcb04;}[_0x4eab('0x11b')](_0x3e93dd,_0xca44c0,_0x53f6a9=null,_0x18ff69={}){if(_0x53f6a9=_0x53f6a9||$t(_0xca44c0),_0x3e93dd['isCollapsed'])return null;if(_0x4eab('0x124')===this[_0x4eab('0xa4')]){const _0x117d29=this['_suggestionFactory'][_0x4eab('0x16')](_0x4eab('0x12a'),_0x53f6a9,'accept');return this[_0x4eab('0x12b')](()=>_0x117d29([_0x3e93dd],_0xca44c0,_0x18ff69)),null;}const _0x378344=this[_0x4eab('0x24')]['plugins']['get'](_0x4eab('0x6a'))['me'],_0x428a7d=[];if(_0x4eab('0xeb')!==this[_0x4eab('0xa4')])for(const {suggestion:_0x29f9b5,meta:_0x3378b0}of this[_0x4eab('0x29')](_0x3e93dd,_0x4eab('0x131')))_0x3378b0[_0x4eab('0x81')]&&!_0x3378b0['isInsideObject']&&_0x428a7d['push'](..._0x29f9b5[_0x4eab('0x9d')]());const _0x9cb21=function(_0x2145cf,_0x3c5309){const _0x4df369=[];for(const _0x41a195 of _0x3c5309){const _0x18005e=_0x2145cf[_0x4eab('0x1e')](_0x41a195);_0x18005e&&_0x4df369['push'](_0x18005e);}return _0x4df369;}(_0x3e93dd,_0x428a7d),_0x124826=function(_0x19ee8d,_0x2ad53d){const _0x5d5ba7=[_0x19ee8d];for(const _0x28a25f of _0x2ad53d){let _0x212981=0x0;for(;_0x212981<_0x5d5ba7[_0x4eab('0xb6')];){const _0x629bcd=_0x5d5ba7[_0x212981][_0x4eab('0x11')](_0x28a25f);_0x5d5ba7[_0x4eab('0xa8')](_0x212981,0x1,..._0x629bcd),_0x212981+=_0x629bcd['length'];}}return _0x5d5ba7;}(_0x3e93dd,_0x428a7d);_0x9cb21[_0x4eab('0xb6')]&&this['_model']['change'](()=>{for(const _0x1761bf of _0x9cb21){const _0x63a8b2=this[_0x4eab('0xfd')][_0x4eab('0x16')](_0x4eab('0x12a'),_0x53f6a9,_0x4eab('0x117'));this[_0x4eab('0x12b')](()=>_0x63a8b2([_0x1761bf],_0xca44c0,_0x18ff69));}});for(const _0x480da7 of _0x124826){let _0x22629d=null,_0x566801=_0x480da7[_0x4eab('0x82')],_0x4eb748=_0x480da7[_0x4eab('0x126')];for(const {suggestion:_0x1886ac,meta:_0x3fe2ff}of this[_0x4eab('0x29')](_0x480da7,_0x4eab('0x12a'))){if(!_0x3fe2ff[_0x4eab('0x81')])continue;if(_0x1886ac[_0x4eab('0x51')]!=_0x53f6a9)continue;const _0x5d90d9=_0x1886ac[_0x4eab('0x5d')]();if(_0x5d90d9[_0x4eab('0xb1')](_0x480da7,!0x0))return null;_0x566801=_0x566801[_0x4eab('0xa1')](_0x5d90d9['start'])?_0x566801:_0x5d90d9['start'],_0x4eb748=_0x4eb748[_0x4eab('0x18')](_0x5d90d9[_0x4eab('0x126')])?_0x4eb748:_0x5d90d9[_0x4eab('0x126')],_0x22629d?_0x5d90d9[_0x4eab('0x82')]['isBefore'](_0x22629d[_0x4eab('0x5d')]()[_0x4eab('0x82')])?(_0x22629d[_0x4eab('0x112')](),_0x22629d=_0x1886ac):_0x1886ac[_0x4eab('0x112')]():_0x22629d=_0x1886ac;}const _0x19cd04=this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x566801,_0x4eb748);if(_0x22629d)this['_setSuggestionRange'](_0x22629d,_0x19cd04);else{const _0x4e6409=_0x36bda4(),_0x270e88=_0x378344['id'];this[_0x4eab('0x13d')]({'id':_0x4e6409,'type':'formatInline:'+_0x53f6a9,'data':_0xca44c0,'createdAt':new Date(),'authorId':_0x270e88,'attributes':_0x18ff69}),this[_0x4eab('0x36')](_0x4eab('0xac')+_0x53f6a9,_0x4e6409,_0x270e88,_0x19cd04);}}return null;}[_0x4eab('0x84')](_0x4ad8a3,_0x5a8315,_0x4f4c40=[],_0x530216=null,_0x47d392={}){_0x5a8315[_0x4eab('0xa7')]||(_0x5a8315[_0x4eab('0xa7')]=_0x5a8315[_0x4eab('0x44')]),_0x5a8315[_0x4eab('0x10f')]=_0x4ad8a3['is'](_0x4eab('0xf2')),_0x530216=_0x530216||$t(_0x5a8315);const _0x198fef=_0x4f4c40['map'](_0x291c8d=>Rt(_0x291c8d,this[_0x4eab('0xbd')])),_0x1ad7a6=_0x4ad8a3['is']('range')?_0x4ad8a3:Rt(_0x4ad8a3,this[_0x4eab('0xbd')]);if(_0x4eab('0x124')===this[_0x4eab('0xa4')]){const _0x40c0e6=this['_suggestionFactory'][_0x4eab('0x16')](_0x4eab('0x125'),_0x530216,'accept');return this[_0x4eab('0x12b')](()=>_0x40c0e6([_0x1ad7a6],_0x5a8315,_0x47d392)),null;}_0x198fef['push'](_0x1ad7a6);let _0xd0a999=!0x0;for(const _0x30f420 of _0x198fef)if(!this[_0x4eab('0x121')](_0x30f420)){_0xd0a999=!0x1;break;}if(_0xd0a999&&_0x4eab('0xeb')!==this[_0x4eab('0xa4')]){const _0x5aa435=this[_0x4eab('0xfd')][_0x4eab('0x16')]('formatBlock',_0x530216,_0x4eab('0x117'));return this[_0x4eab('0x12b')](()=>_0x5aa435([_0x1ad7a6],_0x5a8315,_0x47d392)),null;}let _0x5cc311=null,_0x5a1b6e=_0x1ad7a6[_0x4eab('0x82')],_0x508b03=_0x1ad7a6[_0x4eab('0x126')];for(const {suggestion:_0x135913,meta:_0x4a833a}of this[_0x4eab('0x29')](_0x1ad7a6,_0x4eab('0x125'))){if(!_0x4a833a[_0x4eab('0x81')]||_0x4a833a[_0x4eab('0x72')]||_0x4a833a['containsRangeInObject']||_0x4a833a[_0x4eab('0x129')])continue;if(_0x135913[_0x4eab('0x13a')][_0x4eab('0xa7')]!=_0x5a8315[_0x4eab('0xa7')])continue;const _0x48e645=_0x135913[_0x4eab('0x5d')]();if(_0x135913[_0x4eab('0x51')]==_0x530216){if(_0x48e645[_0x4eab('0xb1')](_0x1ad7a6,!0x0))return null;_0x5a1b6e=_0x5a1b6e[_0x4eab('0xa1')](_0x48e645[_0x4eab('0x82')])?_0x5a1b6e:_0x48e645[_0x4eab('0x82')],_0x508b03=_0x508b03['isAfter'](_0x48e645[_0x4eab('0x126')])?_0x508b03:_0x48e645[_0x4eab('0x126')],_0x5cc311?_0x48e645[_0x4eab('0x82')][_0x4eab('0xa1')](_0x5cc311[_0x4eab('0x5d')]()[_0x4eab('0x82')])?(_0x5cc311['removeMarkers'](),_0x5cc311=_0x135913):_0x135913['removeMarkers']():_0x5cc311=_0x135913;}else{const _0x46e45d=_0x1ad7a6[_0x4eab('0x1e')](_0x48e645);this[_0x4eab('0xcf')](_0x135913,_0x46e45d);}}const _0x2b0ae7=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')]('Users')['me'],_0x5498c9=_0x36bda4(),_0xd7e644=_0x2b0ae7['id'];if(_0x5cc311)return this[_0x4eab('0x2a')](_0x5cc311,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x5a1b6e,_0x508b03)),_0x5cc311;{const _0x357c7e=this[_0x4eab('0x13d')]({'id':_0x5498c9,'type':_0x4eab('0xdc')+_0x530216,'data':_0x5a8315,'createdAt':new Date(),'authorId':_0xd7e644,'attributes':_0x47d392});return this[_0x4eab('0x36')](_0x4eab('0xdc')+_0x530216,_0x5498c9,_0xd7e644,this['_model'][_0x4eab('0xd8')](_0x5a1b6e,_0x508b03)),_0x357c7e;}}[_0x4eab('0x11f')](_0x2fe49e,_0x31399f,_0xa1df6f=[],_0x5b2e76=null,_0x375093={}){_0x31399f[_0x4eab('0xa7')]||(_0x31399f['formatGroupId']=_0x31399f[_0x4eab('0x44')]);const _0x52e2ef=_0x2fe49e[0x0];_0x31399f[_0x4eab('0x10f')]=_0x52e2ef['is']('range'),_0x5b2e76=_0x5b2e76||$t(_0x31399f);const _0x59481a=_0xa1df6f[_0x4eab('0x7c')](_0x5c8fc2=>Rt(_0x5c8fc2,this['_model'])),_0xb5b40d=_0x52e2ef['is'](_0x4eab('0xf2'))?_0x2fe49e:_0x2fe49e[_0x4eab('0x7c')](_0x30c113=>Rt(_0x30c113,this[_0x4eab('0xbd')]));if(_0x4eab('0x124')===this[_0x4eab('0xa4')]){const _0x2ae69a=this['_suggestionFactory'][_0x4eab('0x16')]('formatBlock',_0x5b2e76,_0x4eab('0x117'));return this[_0x4eab('0x12b')](()=>_0x2ae69a(_0xb5b40d,_0x31399f,_0x375093)),null;}_0x59481a['push'](..._0xb5b40d);let _0x433db8=!0x0;for(const _0x892ce2 of _0x59481a)if(!this[_0x4eab('0x121')](_0x892ce2)){_0x433db8=!0x1;break;}if(_0x433db8&&_0x4eab('0xeb')!==this[_0x4eab('0xa4')]){const _0xc46d71=this[_0x4eab('0xfd')]['getSuggestionCallback']('formatBlock',_0x5b2e76,_0x4eab('0x117'));return this[_0x4eab('0x12b')](()=>_0xc46d71(_0xb5b40d,_0x31399f,_0x375093)),null;}const _0x404738=this['editor'][_0x4eab('0xab')]['get'](_0x4eab('0x6a'))['me'];for(const _0x25e698 of this[_0x4eab('0x120')]()){if(_0x25e698[_0x4eab('0x4e')]['id']!=_0x404738['id'])continue;if('formatBlock'!=_0x25e698[_0x4eab('0x3d')]||_0x25e698[_0x4eab('0x13a')][_0x4eab('0xa7')]!=_0x31399f[_0x4eab('0xa7')])continue;const _0x2524f6=_0x25e698[_0x4eab('0x51')]==_0x5b2e76;for(let _0x2b346e=0x0;_0x2b346e<_0xb5b40d['length'];_0x2b346e++){const _0xb82340=_0xb5b40d[_0x2b346e];for(const _0x326609 of _0x25e698[_0x4eab('0x103')]()){const _0x5e217e=_0x326609[_0x4eab('0x91')]();if(_0xb82340[_0x4eab('0xb5')](_0x5e217e)){_0x2524f6?(_0xb5b40d[_0x4eab('0xa8')](_0x2b346e,0x1),_0x2b346e--):_0x25e698[_0x4eab('0x13e')](_0x326609['name']);break;}}}}if(0x0==_0xb5b40d[_0x4eab('0xb6')])return null;const _0x7ffbc2=this['_suggestionFactory'][_0x4eab('0x16')](_0x4eab('0x125'),_0x5b2e76,'join');for(const _0x43d5f of this['getSuggestions']())if(_0x43d5f[_0x4eab('0x4e')]['id']==_0x404738['id']&&_0x4eab('0x125')==_0x43d5f['type']&&_0x43d5f[_0x4eab('0x13a')]['formatGroupId']==_0x31399f['formatGroupId']&&_0x43d5f[_0x4eab('0x51')]==_0x5b2e76&&(_0x7ffbc2(_0x43d5f[_0x4eab('0x9d')](),_0xb5b40d)||_0x7ffbc2(_0xb5b40d,_0x43d5f[_0x4eab('0x9d')]()))){for(const _0x2d55d1 of _0xb5b40d)_0x43d5f[_0x4eab('0x6c')](_0x2d55d1);return _0x43d5f;}const _0x19951f=_0x36bda4(),_0x2a6ce0=_0x404738['id'],_0xdca113='formatBlock:'+_0x5b2e76,_0x589034=this['_setSuggestionData']({'id':_0x19951f,'type':_0xdca113,'data':_0x31399f,'createdAt':new Date(),'authorId':_0x2a6ce0,'attributes':_0x375093});for(const _0x573194 of _0xb5b40d)this[_0x4eab('0x36')](_0xdca113,_0x19951f,_0x2a6ce0,_0x573194,_0x12f171[_0x4eab('0x9f')]());return _0x589034;}[_0x4eab('0x3c')](_0x4dc3e4,_0xc73cdf=null,_0x1aeed3={}){if(_0x4dc3e4[_0x4eab('0x130')])return null;const _0x428907=this[_0x4eab('0x24')]['plugins'][_0x4eab('0xd2')](_0x4eab('0x6a'))['me'],_0x337263=new _0x146086(_0x4dc3e4['start'],_0x4dc3e4[_0x4eab('0x126')]);for(const {suggestion:_0x1c1f9f,meta:_0x5c0572}of this['_findSuggestions'](_0x337263,_0x4eab('0x131')))if(_0x5c0572[_0x4eab('0x81')]&&!_0x5c0572[_0x4eab('0x72')]){if(_0x1c1f9f['isMultiRange']){const _0x4b62d7=_0x1c1f9f['getRanges']()[_0x4eab('0x142')](_0x540839=>_0x4eab('0xd6')!=_0x540839[_0x4eab('0x7f')]['rootName']);_0x4b62d7[_0x4eab('0x104')](_0x2e1803=>_0x337263[_0x4eab('0xb1')](_0x2e1803,!0x0))&&_0x1c1f9f['discard']();if(_0x4b62d7[_0x4eab('0x6f')](_0x37ed6f=>_0x37ed6f[_0x4eab('0xb1')](_0x337263,!0x0))){const _0x55d04c=this[_0x4eab('0xfd')][_0x4eab('0x16')]('deletion',_0xc73cdf,_0x4eab('0x117'));return this[_0x4eab('0x12b')](()=>_0x55d04c([_0x337263],null,_0x1aeed3)),null;}}else{const _0x20a614=_0x337263[_0x4eab('0x1e')](_0x1c1f9f[_0x4eab('0x5d')]());null!==_0x20a614&&_0x1c1f9f[_0x4eab('0x1')]([_0x20a614],null,_0x1aeed3);}}if(_0x337263[_0x4eab('0x79')](),_0x337263['isCollapsed']||_0x4eab('0xd6')==_0x337263[_0x4eab('0x7f')][_0x4eab('0x118')])return null;let _0x5cf283=null,_0x18df32=_0x337263['start'],_0x235fc9=_0x337263[_0x4eab('0x126')];for(const {suggestion:_0x3b3c80,meta:_0x3f19f7}of this[_0x4eab('0x29')](_0x337263,_0x4eab('0x1c')))if(_0x3f19f7[_0x4eab('0x81')]){if(_0x3b3c80[_0x4eab('0x70')]&&this[_0x4eab('0x39')]){let _0x192338=!0x0;for(const _0x40ea3f of _0x3b3c80[_0x4eab('0x9d')]()){if(_0x40ea3f['containsRange'](_0x337263,!0x0))return _0x3b3c80;_0x337263[_0x4eab('0xb1')](_0x40ea3f)||(_0x192338=!0x1);}_0x192338&&_0x3b3c80[_0x4eab('0x10a')]();}else{const _0x3ced78=_0x3b3c80[_0x4eab('0x5d')]();if(_0x3ced78[_0x4eab('0xb1')](_0x337263,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x3f19f7[_0x4eab('0x134')])continue;return _0x3b3c80;}_0x18df32=_0x18df32['isBefore'](_0x3ced78[_0x4eab('0x82')])?_0x18df32:_0x3ced78[_0x4eab('0x82')],_0x235fc9=_0x235fc9[_0x4eab('0x18')](_0x3ced78[_0x4eab('0x126')])?_0x235fc9:_0x3ced78[_0x4eab('0x126')],_0x5cf283?_0x3ced78[_0x4eab('0x82')]['isBefore'](_0x5cf283[_0x4eab('0x5d')]()[_0x4eab('0x82')])?(_0x5cf283['removeMarkers'](),_0x5cf283=_0x3b3c80):_0x3b3c80[_0x4eab('0x112')]():_0x5cf283=_0x3b3c80;}}if(_0x5cf283)return this[_0x4eab('0x2a')](_0x5cf283,this['_model'][_0x4eab('0xd8')](_0x18df32,_0x235fc9)),_0x5cf283;{const _0x1bab74=_0x36bda4(),_0xf1cc8f=this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x18df32,_0x235fc9),_0x4e9d6a=_0x428907['id'],_0x2c3231=_0xc73cdf?_0x4eab('0xf6')+_0xc73cdf:'deletion',_0x1d7885=this[_0x4eab('0x13d')]({'id':_0x1bab74,'type':_0x2c3231,'createdAt':new Date(),'authorId':_0x4e9d6a,'attributes':_0x1aeed3});return this[_0x4eab('0x36')](_0x2c3231,_0x1bab74,_0x4e9d6a,_0xf1cc8f),_0x1d7885;}}[_0x4eab('0xe0')](_0x6f6e08,_0x489530=_0x4eab('0xe6'),_0x4fa7b7={}){const _0x3d2066=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x6a'))['me'],_0x4d3e12=_0x6f6e08[_0x4eab('0x7c')](_0x4e1e55=>new _0x146086(_0x4e1e55[_0x4eab('0x82')],_0x4e1e55['end'])),_0x2a4017=new Set();for(const _0x4ae376 of _0x4d3e12)for(const {suggestion:_0x9dbebc,meta:_0x440e80}of this[_0x4eab('0x29')](_0x4ae376,_0x4eab('0x131')))_0x440e80[_0x4eab('0x81')]&&!_0x440e80[_0x4eab('0x72')]&&_0x2a4017[_0x4eab('0x8b')](_0x9dbebc);for(const _0x340e27 of _0x2a4017)if(_0x340e27[_0x4eab('0x70')]){const _0x23c52c=_0x340e27[_0x4eab('0x9d')]();(!_0x340e27[_0x4eab('0x2e')]||!_0x340e27[_0x4eab('0x2e')][_0x4eab('0x34')])&&(_0x23c52c[_0x4eab('0x104')](_0x47e6c7=>_0x4d3e12[_0x4eab('0x6f')](_0x2473ef=>_0x2473ef[_0x4eab('0xb1')](_0x47e6c7,!0x0)))&&_0x340e27[_0x4eab('0x10a')]());if(_0x4d3e12[_0x4eab('0x104')](_0x269b1e=>_0x23c52c['some'](_0x49546a=>_0x49546a[_0x4eab('0xb1')](_0x269b1e,!0x0)))){const _0x16fa5d=this['_suggestionFactory']['getSuggestionCallback'](_0x4eab('0x1c'),_0x489530,'accept');return this[_0x4eab('0x12b')](()=>_0x16fa5d(_0x6f6e08,null,_0x4fa7b7)),null;}}else{const _0xd5d3a5=_0x340e27[_0x4eab('0x5d')]();_0x4d3e12[_0x4eab('0x6f')](_0x405fa2=>_0x405fa2[_0x4eab('0xb1')](_0xd5d3a5,!0x0))&&_0x340e27[_0x4eab('0x10a')]();if(_0x4d3e12[_0x4eab('0x104')](_0x390c06=>_0xd5d3a5[_0x4eab('0xb1')](_0x390c06,!0x0))){const _0x2d5c3a=this[_0x4eab('0xfd')]['getSuggestionCallback']('deletion',_0x489530,_0x4eab('0x117'));return this[_0x4eab('0x12b')](()=>_0x2d5c3a(_0x4d3e12,null,_0x4fa7b7)),null;}}const _0x1cd8ea=this[_0x4eab('0xfd')]['getSuggestionCallback'](_0x4eab('0x1c'),_0x489530,_0x4eab('0x86'));let _0x168fbc=null;for(const _0x45b76d of this['getSuggestions']())if(_0x45b76d[_0x4eab('0x4e')]['id']==_0x3d2066['id']&&_0x45b76d['isInContent']&&_0x4eab('0x1c')==_0x45b76d['type']&&_0x45b76d[_0x4eab('0x51')]==_0x489530&&(_0x1cd8ea(_0x45b76d['getRanges'](),_0x4d3e12)||_0x1cd8ea(_0x4d3e12,_0x45b76d[_0x4eab('0x9d')]()))){if(_0x168fbc){if(_0x45b76d[_0x4eab('0x0')]&&_0x45b76d[_0x4eab('0x0')][_0x4eab('0xb6')])continue;for(const _0x5af5e7 of _0x45b76d[_0x4eab('0x9d')]())_0x168fbc[_0x4eab('0xf5')](_0x5af5e7)||_0x168fbc[_0x4eab('0x6c')](_0x5af5e7);_0x45b76d['removeMarkers']();}else{_0x168fbc=_0x45b76d;for(const _0x5793cb of _0x4d3e12)_0x45b76d[_0x4eab('0xf5')](_0x5793cb)||_0x45b76d[_0x4eab('0x6c')](_0x5793cb);}}if(_0x168fbc)return _0x168fbc;_0x2a4017[_0x4eab('0x3a')]();for(const _0x51e464 of _0x4d3e12)for(const {suggestion:_0x170234,meta:_0x59a347}of this[_0x4eab('0x29')](_0x51e464,_0x4eab('0x1c')))_0x59a347[_0x4eab('0x81')]&&_0x2a4017[_0x4eab('0x8b')](_0x170234);for(const _0x46fe24 of _0x2a4017){const _0x24121a=_0x46fe24[_0x4eab('0x9d')]();if(!_0x4fa7b7||!_0x4fa7b7[_0x4eab('0x34')]){if(_0x4d3e12[_0x4eab('0x104')](_0x2b4ce1=>_0x24121a[_0x4eab('0x6f')](_0x511d2b=>_0x511d2b['containsRange'](_0x2b4ce1,!0x0))))return _0x46fe24;}(!_0x46fe24[_0x4eab('0x2e')]||!_0x46fe24[_0x4eab('0x2e')][_0x4eab('0x34')])&&(_0x24121a[_0x4eab('0x104')](_0x4711a8=>_0x4d3e12[_0x4eab('0x6f')](_0x389965=>_0x389965[_0x4eab('0xb1')](_0x4711a8,!0x0)))&&_0x46fe24[_0x4eab('0x10a')]());}const _0x248b15=_0x36bda4(),_0x1d07ab=_0x3d2066['id'],_0x4b0f8c=_0x4eab('0xf6')+_0x489530,_0x20f284=this[_0x4eab('0x13d')]({'id':_0x248b15,'type':_0x4b0f8c,'createdAt':new Date(),'authorId':_0x1d07ab,'attributes':_0x4fa7b7});for(const _0x38df42 of _0x4d3e12)_0x38df42['detach'](),_0x38df42[_0x4eab('0x130')]||'$graveyard'==_0x38df42[_0x4eab('0x7f')][_0x4eab('0x118')]||this[_0x4eab('0x36')](_0x4b0f8c,_0x248b15,_0x1d07ab,_0x38df42,_0x12f171[_0x4eab('0x9f')]());return _0x20f284;}[_0x4eab('0x2a')](_0x48f94a,_0x149b27){const _0x49c8f4=_0x48f94a['getFirstMarker']();this['_model']['change'](_0x3b5d28=>{_0x3b5d28[_0x4eab('0x96')](_0x49c8f4,{'range':_0x149b27});});}[_0x4eab('0xad')](_0x3a2c4e){const _0x3f2660=_0x3a2c4e['id'],_0x173263=this['editor'][_0x4eab('0x5')][_0x4eab('0xd2')]('collaboration.channelId');this[_0x4eab('0x137')]['hasCommentThread'](_0x3f2660)||this[_0x4eab('0x137')][_0x4eab('0x49')]({'channelId':_0x173263,'threadId':_0x3f2660,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x9fb72b=this[_0x4eab('0x137')][_0x4eab('0x11a')](_0x3f2660);_0x9fb72b[_0x4eab('0xed')](_0x4eab('0x9b')),_0x9fb72b[_0x4eab('0x9b')]=!0x1,_0x3a2c4e[_0x4eab('0x0')]=_0x9fb72b;}['_checkSuggestionCorrectness'](_0x5f2efd,_0x373264,_0x136755,_0x581a48){if(_0x5f2efd[_0x4eab('0x3d')]!=_0x373264||_0x5f2efd[_0x4eab('0x51')]!=_0x136755||_0x5f2efd[_0x4eab('0x73')]['id']!=_0x581a48)throw this['editor'][_0x4eab('0x144')](_0x4eab('0x110')),new _0x3e7e96(_0x4eab('0x110'),this);}[_0x4eab('0xcf')](_0xa1d5dc,_0x299a9c){const _0x2afaee=_0xa1d5dc[_0x4eab('0x5d')]();if(_0x299a9c[_0x4eab('0xb5')](_0x2afaee))_0xa1d5dc[_0x4eab('0x112')]();else{if(_0x2afaee[_0x4eab('0xb1')](_0x299a9c)){const _0x825c1=this[_0x4eab('0xbd')][_0x4eab('0x57')](_0x299a9c[_0x4eab('0x82')]['nodeBefore'],_0x4eab('0x126'));this[_0x4eab('0x2a')](_0xa1d5dc,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x2afaee['start'],_0x825c1));const _0x1de7a8=_0x36bda4(),_0x326c3f=_0xa1d5dc['creator']['id'],_0x35d3c9=_0xa1d5dc['type']+':'+_0xa1d5dc[_0x4eab('0x51')];this[_0x4eab('0x13d')]({'id':_0x1de7a8,'type':_0x35d3c9,'createdAt':new Date(),'authorId':_0x326c3f,'data':_0xa1d5dc['data'],'attributes':_0xa1d5dc[_0x4eab('0x2e')]});const _0x5f0797=this[_0x4eab('0xbd')]['createPositionAt'](_0x299a9c['end']['parent'],_0x4eab('0x7d')),_0x1b22d9=this['_model'][_0x4eab('0xd8')](_0x5f0797,_0x2afaee[_0x4eab('0x126')]);this[_0x4eab('0x36')](_0x35d3c9,_0x1de7a8,_0x326c3f,_0x1b22d9);}else{if(_0x2afaee[_0x4eab('0x35')](_0x299a9c[_0x4eab('0x82')])){const _0x52b3de=this[_0x4eab('0xbd')][_0x4eab('0x57')](_0x299a9c[_0x4eab('0x82')][_0x4eab('0xfb')],_0x4eab('0x126'));this[_0x4eab('0x2a')](_0xa1d5dc,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x2afaee['start'],_0x52b3de));}else{const _0x3b502f=this[_0x4eab('0xbd')][_0x4eab('0x57')](_0x299a9c[_0x4eab('0x126')]['parent'],_0x4eab('0x7d'));this[_0x4eab('0x2a')](_0xa1d5dc,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x3b502f,_0x2afaee[_0x4eab('0x126')]));}}}}[_0x4eab('0x121')](_0x5e9e53){for(const {suggestion:_0xfebade,meta:_0x46dde2}of this['_findSuggestions'](_0x5e9e53,_0x4eab('0x131'))){if(!_0x46dde2[_0x4eab('0x81')])continue;const _0x3da4b6=_0xfebade[_0x4eab('0x9d')]();for(const _0x17d8f6 of _0x3da4b6)if(!_0x5e9e53[_0x4eab('0x11')](_0x17d8f6)[_0x4eab('0xb6')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3720e9){const _0x5b42b7=this[_0x4eab('0x24')][_0x4eab('0xab')]['get'](_0x4eab('0x6a'))[_0x4eab('0xea')](_0x3720e9);if(!_0x5b42b7)throw new _0x3e7e96(_0x4eab('0x128'),this);return _0x5b42b7;}[_0x4eab('0xb7')](_0xaa8121){const _0x170c65=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x6a')),_0x5e7f76=_0x495d88(_0x4eab('0x135')+_0xaa8121),_0x3bb64c=_0x170c65['getUser'](_0x5e7f76);return _0x3bb64c||_0x170c65['addUser']({'id':_0x5e7f76,'name':_0xaa8121});}[_0x4eab('0x40')](_0x9398a,_0x254d10,_0xba6245,_0x15cb34,_0x53922d){const _0x31acc9=this['_getAuthorFromId'](_0x15cb34),_0x5b95d4=this[_0x4eab('0xfd')][_0x4eab('0x50')](_0x9398a,_0x254d10,_0xba6245,_0x31acc9,_0x53922d,_0x12d729=>this[_0x4eab('0x43')](_0xba6245,{'attributes':_0x12d729}));return this[_0x4eab('0xbb')](_0x5b95d4,_0x4eab('0x117'),()=>{this[_0x4eab('0x43')](_0xba6245,{'state':'accepted'});},{'priority':_0x4eab('0x65')}),this[_0x4eab('0xbb')](_0x5b95d4,'discard',()=>{this[_0x4eab('0x43')](_0xba6245,{'state':'rejected'});},{'priority':_0x4eab('0x65')}),this[_0x4eab('0xa5')][_0x4eab('0x71')](_0xba6245,_0x5b95d4),this[_0x4eab('0xca')][_0x4eab('0x71')](_0x5b95d4,'notReady'),_0x5b95d4;}[_0x4eab('0x32')](_0xd0d0f7){const _0x376190=_0xd0d0f7[_0x4eab('0xc9')](':');return{'group':_0x376190[0x0],'type':_0x376190[0x1],'subType':_0x376190[_0x4eab('0xb6')]>=0x5?_0x376190[0x2]:null,'id':_0x376190[_0x4eab('0xb6')]<0x5?_0x376190[0x2]:_0x376190[0x3],'authorId':_0x376190[_0x4eab('0xb6')]<0x5?_0x376190[0x3]:_0x376190[0x4],'markerCount':0x6==_0x376190[_0x4eab('0xb6')]?_0x376190[0x5]:null};}['_breakSuggestionMarker'](_0x42afb7,_0x510730,_0x1f1054){const _0x2c0a48=_0x42afb7[_0x4eab('0x5d')](),_0x3f6d07=_0x2c0a48[_0x4eab('0x82')],_0x3d57ef=_0x2c0a48[_0x4eab('0x126')];this[_0x4eab('0x2a')](_0x42afb7,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x3f6d07,_0x510730));const _0xfc0890=_0x36bda4(),_0x124fc2=_0x42afb7[_0x4eab('0x73')]['id'],_0x169628=_0x42afb7[_0x4eab('0x3d')]+(_0x42afb7[_0x4eab('0x51')]?':'+_0x42afb7[_0x4eab('0x51')]:'');this[_0x4eab('0x13d')]({'id':_0xfc0890,'type':_0x169628,'createdAt':new Date(),'authorId':_0x124fc2,'originalSuggestionId':_0x42afb7['id'],'attributes':_0x42afb7['attributes'],'data':_0x42afb7[_0x4eab('0x13a')]}),_0x4eab('0x125')==_0x42afb7[_0x4eab('0x3d')]&&(_0x1f1054=this[_0x4eab('0xbd')][_0x4eab('0xbf')](_0x1f1054[_0x4eab('0x3b')])),this[_0x4eab('0x36')](_0x169628,_0xfc0890,_0x124fc2,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x1f1054,_0x3d57ef));}[_0x4eab('0x29')](_0x38e016,_0xd475e4=null){const _0x21fc12=[],_0x67859e=this[_0x4eab('0xbd')][_0x4eab('0xf8')],_0x405f1b=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x6a'))['me'];for(const _0x5415d2 of this[_0x4eab('0x120')]())if(_0x5415d2[_0x4eab('0xe9')]&&(!_0xd475e4||_0x5415d2[_0x4eab('0x3d')]==_0xd475e4))for(const _0x4acefd of _0x5415d2[_0x4eab('0x9d')]()){const _0x20db68=_0x38e016['start'][_0x4eab('0xb5')](_0x4acefd['end'])||_0x38e016['end'][_0x4eab('0xb5')](_0x4acefd[_0x4eab('0x82')]);if(_0x20db68||_0x38e016['getIntersection'](_0x4acefd)){const _0xf0e34=_0x38e016['containsRange'](_0x4acefd)&&Bt(_0x67859e,_0x4acefd[_0x4eab('0x82')],_0x38e016),_0x26e9f6=_0x4acefd[_0x4eab('0xb1')](_0x38e016)&&Bt(_0x67859e,_0x38e016[_0x4eab('0x82')],_0x4acefd);_0x21fc12[_0x4eab('0xc2')]({'suggestion':_0x5415d2,'meta':{'isOwn':_0x405f1b==_0x5415d2[_0x4eab('0x4e')],'isNextTo':_0x20db68,'isInsideObject':_0xf0e34,'containsRangeInObject':_0x26e9f6}});break;}}return _0x21fc12;}[_0x4eab('0x36')](_0x12bea9,_0x53bab5,_0x319484,_0x4cf7b3,_0x4cb4c0){this[_0x4eab('0xbd')][_0x4eab('0xcb')](_0x38ec7e=>{let _0x23265d=_0x4eab('0x2d')+_0x12bea9+':'+_0x53bab5+':'+_0x319484;_0x4cb4c0&&(_0x23265d=_0x23265d+':'+_0x4cb4c0),_0x38ec7e['addMarker'](_0x23265d,{'range':_0x4cf7b3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4eab('0x77')](_0x1f5be6){const _0xf3a260=_0x1f5be6[_0x4eab('0x55')],_0x18562c=_0x1f5be6[_0x4eab('0x119')];_0x1f5be6[_0x4eab('0x55')]=null,null!=_0xf3a260&&(_0xf3a260[_0x4eab('0x119')]=null),_0x1f5be6[_0x4eab('0x119')]=null,null!=_0x18562c&&(_0x18562c['previous']=null),_0x4eab('0x139')==this[_0x4eab('0xca')]['get'](_0x1f5be6)&&(this[_0x4eab('0xca')][_0x4eab('0x71')](_0x1f5be6,'removed'),this[_0x4eab('0xcd')](_0x4eab('0x93'),_0x1f5be6,_0xf3a260,_0x18562c));}[_0x4eab('0x13d')](_0x58baa5){const _0x5c76ea=_0x58baa5['id'],_0x571a70=this[_0x4eab('0xce')](_0x58baa5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x9538d0=this['editor']['plugins'][_0x4eab('0xd2')](_0x4eab('0xe8')),_0x3977ab=_0x571a70[_0x4eab('0x6b')],_0x225b7a=_0x571a70['subType']?_0x571a70[_0x4eab('0x3d')]+':'+_0x571a70[_0x4eab('0x51')]:_0x571a70[_0x4eab('0x3d')],_0x1cf76b=this['editor'][_0x4eab('0x12e')],_0x5e0d8d=_0x9538d0['add'](_0x4a2b42(_0x1cf76b,_0x4eab('0x54'))),_0x1d8c47={'id':_0x5c76ea,'type':_0x225b7a,'hasComments':_0x3977ab,'data':_0x58baa5[_0x4eab('0x13a')]||null,'originalSuggestionId':_0x58baa5[_0x4eab('0xfc')]||null,'attributes':_0x571a70[_0x4eab('0x2e')]};this['_adapter'][_0x4eab('0x46')](_0x1d8c47)[_0x4eab('0x9a')](_0x3d744d=>{_0x571a70[_0x4eab('0xf3')]=!0x0,_0x9538d0[_0x4eab('0x132')](_0x5e0d8d),_0x3d744d&&_0x3d744d[_0x4eab('0xa2')]&&(this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x5c76ea)[_0x4eab('0xa2')]=_0x3d744d['createdAt']);})['catch'](_0x3bf47b=>{throw _0x823a6c(_0x4eab('0x4b')),this[_0x4eab('0x24')]['model'][_0x4eab('0x2')]({'isUndoable':!0x1},()=>{_0x571a70[_0x4eab('0x10a')]();}),_0x571a70[_0x4eab('0x60')](),this[_0x4eab('0xa5')][_0x4eab('0x69')](_0x571a70['id']),this[_0x4eab('0xca')]['delete'](_0x571a70),_0x3bf47b;});}return _0x571a70;}['_updateSuggestionData'](_0x5a18a0,_0x295c06){const _0x15351d=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0xe8')),_0x52444e=this[_0x4eab('0xbe')](_0x5a18a0);if(this['_adapter']&&this[_0x4eab('0x7b')][_0x4eab('0x63')]){if(_0x52444e[_0x4eab('0xf3')]){const _0x494f46=_0x15351d['add'](_0x4a2b42(this['editor'][_0x4eab('0x12e')],_0x4eab('0x54')));this[_0x4eab('0x7b')][_0x4eab('0x63')](_0x5a18a0,_0x295c06)['then'](()=>{_0x15351d[_0x4eab('0x132')](_0x494f46);});}else _0x52444e['on'](_0x4eab('0xd'),()=>{this[_0x4eab('0x43')](_0x5a18a0,_0x295c06);});}}[_0x4eab('0x64')](_0x4f3286){if(!this[_0x4eab('0x7b')]||!this[_0x4eab('0x7b')][_0x4eab('0xbe')])throw new _0x3e7e96(_0x4eab('0x88'),this);return this[_0x4eab('0x7b')]['getSuggestion'](_0x4f3286);}[_0x4eab('0x83')](_0x4e1a4d){const {id:_0x323813,type:_0x13de56,subType:_0x567de2,authorId:_0x2e7de9}=this[_0x4eab('0x32')](_0x4e1a4d),_0x1ed369=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x323813)||this[_0x4eab('0x40')](_0x13de56,_0x567de2,_0x323813,_0x2e7de9,{});switch(this['_checkSuggestionCorrectness'](_0x1ed369,_0x13de56,_0x567de2,_0x2e7de9),this['_suggestionState'][_0x4eab('0xd2')](_0x1ed369)){case _0x4eab('0xc8'):this[_0x4eab('0x64')](_0x323813)['then'](_0x4d341c=>{let _0x1b5b5d=Promise[_0x4eab('0x5b')]();_0x4d341c['hasComments']&&(_0x1b5b5d=this[_0x4eab('0x137')][_0x4eab('0x8c')]({'channelId':this[_0x4eab('0x24')]['config'][_0x4eab('0xd2')]('collaboration.channelId'),'threadId':_0x323813})),_0x1b5b5d['then'](()=>{this[_0x4eab('0xce')](_0x4d341c)['_saved']=!0x0;});}),this[_0x4eab('0xca')][_0x4eab('0x71')](_0x1ed369,'markerReady');break;case _0x4eab('0x3'):this[_0x4eab('0x43')](_0x323813,{'state':_0x4eab('0x4c')});case _0x4eab('0x10e'):this[_0x4eab('0xca')][_0x4eab('0x71')](_0x1ed369,_0x4eab('0x139')),this[_0x4eab('0xcd')](_0x4eab('0xd9'),_0x1ed369);break;case _0x4eab('0x139'):this[_0x4eab('0xcd')](_0x4eab('0xe7'),_0x1ed369);}return _0x1ed369[_0x4eab('0x108')](_0x4e1a4d),_0x1ed369;}[_0x4eab('0x99')](_0x4dc84c){const _0x48e29e=Array[_0x4eab('0x38')](_0x4dc84c)['filter'](_0x2be654=>!_0x2be654['isMultiRange']),_0x324575=this[_0x4eab('0x120')]({'skipNotAttached':!0x0})[_0x4eab('0x142')](_0x32fa92=>!_0x32fa92['isMultiRange']),_0x1bec87=_0x324575['filter'](_0x564ed9=>!_0x4dc84c[_0x4eab('0x30')](_0x564ed9)),_0x3d33bb=new Map(_0x324575[_0x4eab('0x7c')](_0x4edc42=>[_0x4edc42,this['_suggestionFactory'][_0x4eab('0x16')](_0x4edc42[_0x4eab('0x3d')],_0x4edc42[_0x4eab('0x51')],_0x4eab('0x76'))])),_0x5cf0ed=new Map(_0x324575['map'](_0x1056c5=>[_0x1056c5,_0x1056c5['getFirstRange']()])),_0x523a03=new Set(),_0x1e35d7=new Set();for(let _0x1a4dcd=0x0;_0x1a4dcd<_0x48e29e[_0x4eab('0xb6')];_0x1a4dcd++)_0x65386d(_0x48e29e[_0x1a4dcd],_0x48e29e,_0x1a4dcd+0x1);for(let _0x4cc778=0x0;_0x4cc778<_0x48e29e[_0x4eab('0xb6')];_0x4cc778++)_0x65386d(_0x48e29e[_0x4cc778],_0x1bec87,0x0);for(let _0xe5104a=0x0;_0xe5104a<_0x48e29e[_0x4eab('0xb6')];_0xe5104a++){const _0x6c5da6=_0x48e29e[_0xe5104a];!_0x1e35d7[_0x4eab('0x30')](_0x6c5da6)&&_0x6c5da6[_0x4eab('0x55')]&&(_0x6c5da6[_0x4eab('0x55')][_0x4eab('0x119')]===_0x6c5da6&&(_0x6c5da6[_0x4eab('0x55')]['next']=null),_0x6c5da6['previous']=null),!_0x523a03['has'](_0x6c5da6)&&_0x6c5da6[_0x4eab('0x119')]&&(_0x6c5da6[_0x4eab('0x119')]['previous']===_0x6c5da6&&(_0x6c5da6['next'][_0x4eab('0x55')]=null),_0x6c5da6[_0x4eab('0x119')]=null);}function _0x65386d(_0x343aa2,_0x5b91fe,_0x3ed5cb){for(let _0x33de9e=_0x3ed5cb;_0x33de9e<_0x5b91fe[_0x4eab('0xb6')];_0x33de9e++){const _0x534006=_0x3df8ba(_0x343aa2,_0x5b91fe[_0x33de9e]);_0x534006&&(_0x534006[0x0][_0x4eab('0x119')]=_0x534006[0x1],_0x534006[0x1][_0x4eab('0x55')]=_0x534006[0x0],_0x523a03[_0x4eab('0x8b')](_0x534006[0x0]),_0x1e35d7[_0x4eab('0x8b')](_0x534006[0x1]));}}function _0x3df8ba(_0x171258,_0x382e66){if(_0x171258[_0x4eab('0x4e')]['id']!==_0x382e66['author']['id'])return null;const _0x37ae33=_0x3d33bb['get'](_0x171258)(_0x171258,_0x382e66,_0x5cf0ed[_0x4eab('0xd2')](_0x171258),_0x5cf0ed[_0x4eab('0xd2')](_0x382e66));if(!_0x37ae33)return null;return _0x3d33bb[_0x4eab('0xd2')](_0x382e66)(_0x171258,_0x382e66,_0x5cf0ed[_0x4eab('0xd2')](_0x171258),_0x5cf0ed['get'](_0x382e66))?_0x37ae33[0x1][_0x4eab('0x0')]&&_0x37ae33[0x1][_0x4eab('0x0')][_0x4eab('0xb6')]?null:_0x37ae33:null;}}[_0x4eab('0xaa')](_0x58952a){const _0x454dae=Array[_0x4eab('0x38')](_0x58952a),_0x327464=this[_0x4eab('0x120')]({'skipNotAttached':!0x0}),_0x532dda=_0x327464[_0x4eab('0x142')](_0x49b268=>!_0x58952a[_0x4eab('0x30')](_0x49b268)),_0x1e3a2e=new Map(_0x454dae[_0x4eab('0x7c')](_0x10ead9=>[_0x10ead9,this[_0x4eab('0xfd')][_0x4eab('0x16')](_0x10ead9[_0x4eab('0x3d')],_0x10ead9['subType'],'join')])),_0x7dfa07=new Map(_0x327464[_0x4eab('0x7c')](_0x21fdb6=>[_0x21fdb6,_0x21fdb6[_0x4eab('0x9d')]()]));for(let _0x44d0ea=0x0;_0x44d0ea<_0x454dae[_0x4eab('0xb6')];_0x44d0ea++){if(_0x3ac6f0(this,_0x454dae[_0x44d0ea],_0x454dae,_0x44d0ea+0x1))return!0x0;}for(let _0x543054=0x0;_0x543054<_0x454dae[_0x4eab('0xb6')];_0x543054++){if(_0x3ac6f0(this,_0x454dae[_0x543054],_0x532dda,0x0))return!0x0;}return!0x1;function _0x3ac6f0(_0x27d986,_0x77e9a8,_0x2221e0,_0x2176e5){for(let _0x27a905=_0x2176e5;_0x27a905<_0x2221e0[_0x4eab('0xb6')];_0x27a905++){const _0x19ffb0=_0x2221e0[_0x27a905];if(_0x19ffb0[_0x4eab('0x3d')]!==_0x77e9a8['type']||_0x19ffb0['author']['id']!==_0x77e9a8['author']['id']||_0x19ffb0['subType']!==_0x77e9a8[_0x4eab('0x51')])continue;const _0x1d0f71=_0x1e3a2e['get'](_0x77e9a8),_0x15f632=_0x7dfa07[_0x4eab('0xd2')](_0x77e9a8),_0x11fc45=_0x7dfa07[_0x4eab('0xd2')](_0x19ffb0),_0x385733=_0x77e9a8['commentThread']&&_0x77e9a8[_0x4eab('0x0')][_0x4eab('0xb6')],_0x418966=_0x19ffb0[_0x4eab('0x0')]&&_0x19ffb0[_0x4eab('0x0')][_0x4eab('0xb6')];if(!_0x385733&&_0x1d0f71(_0x11fc45,_0x15f632))return _0x27d986['_joinSuggestions'](_0x19ffb0,_0x77e9a8),_0x7dfa07[_0x4eab('0x69')](_0x77e9a8),!0x0;if(!_0x418966&&_0x1d0f71(_0x15f632,_0x11fc45))return _0x27d986[_0x4eab('0x47')](_0x77e9a8,_0x19ffb0),_0x7dfa07[_0x4eab('0x69')](_0x19ffb0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x32766f,_0x355b1d){if(_0x32766f[_0x4eab('0x70')])for(const _0x3af9b2 of _0x355b1d[_0x4eab('0x9d')]())_0x32766f[_0x4eab('0x6c')](_0x3af9b2);else{const _0x39ff0c=_0x355b1d['getFirstRange']()[_0x4eab('0x126')];this['_setSuggestionRange'](_0x32766f,this['_model']['createRange'](_0x32766f['getFirstRange']()[_0x4eab('0x82')],_0x39ff0c));}_0x355b1d[_0x4eab('0x112')]();}}class Dt{constructor(_0x7c1863){this[_0x4eab('0x11c')]=_0x7c1863,this[_0x4eab('0xbd')]=_0x7c1863['model'],this[_0x4eab('0xda')]=new Map(),this[_0x4eab('0xff')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4eab('0x50')](_0x16854d,_0xab68f6,_0x36d0eb,_0x236133,_0x2ccc35,_0x129a1f){return new _0x12f171(this[_0x4eab('0xbd')],{'type':_0x16854d,'subType':_0xab68f6,'id':_0x36d0eb,'author':_0x236133,'creator':_0x236133,'attributes':_0x2ccc35,'onAttributesChange':_0x129a1f,'onAccept':(..._0x2247ed)=>this['getSuggestionCallback'](_0x16854d,_0xab68f6,_0x4eab('0x117'))(..._0x2247ed),'onDiscard':(..._0x1d4628)=>this[_0x4eab('0x16')](_0x16854d,_0xab68f6,_0x4eab('0x10a'))(..._0x1d4628)});}[_0x4eab('0x114')](_0x578e56,_0x2f4f1c,_0x54b2e9,_0x3a76b2){const _0x18924a=_0x578e56+':'+_0x2f4f1c+':'+_0x54b2e9;this[_0x4eab('0xda')][_0x4eab('0x71')](_0x18924a,_0x3a76b2);}[_0x4eab('0x16')](_0xfb6ea8,_0x39db4b,_0x3762ad){const _0x4b02c3=_0xfb6ea8+':'+_0x39db4b+':'+_0x3762ad;return this[_0x4eab('0xda')][_0x4eab('0xd2')](_0x4b02c3)||this['_defaultCallbacks'][_0x4eab('0xd2')](_0xfb6ea8+':'+_0x3762ad);}[_0x4eab('0xb')](){const _0x39a4db=()=>{},_0x22f8e6=_0x46ac8f=>{_0x46ac8f[_0x4eab('0xc6')]((_0xe6a13a,_0x39b2ea)=>_0xe6a13a[_0x4eab('0x82')][_0x4eab('0xa1')](_0x39b2ea[_0x4eab('0x82')])?0x1:-0x1),this[_0x4eab('0xbd')][_0x4eab('0xcb')](_0x282248=>{for(const _0x3aaa3b of _0x46ac8f){let _0x4f8509;_0x4f8509=_0x3aaa3b[_0x4eab('0x126')][_0x4eab('0x7a')]&&_0x3aaa3b['end'][_0x4eab('0x3b')]==_0x3aaa3b[_0x4eab('0x82')]['nodeAfter']?_0x282248['createSelection'](_0x3aaa3b['start']['nodeAfter'],'on'):_0x282248[_0x4eab('0x100')](_0x3aaa3b),this['_model']['deleteContent'](_0x4f8509,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x533ac6=(_0x170e8b,_0x5d7523)=>{this[_0x4eab('0xbd')]['change'](_0x35af0e=>{const {commandName:_0x2e009d,commandParams:_0x49e4c1=[]}=_0x5d7523,_0x4f9a11=_0x170e8b[_0x4eab('0x7c')](_0xabcfd4=>(_t(_0xabcfd4)&&(_0xabcfd4=this[_0x4eab('0xbd')]['createRange'](_0xabcfd4[_0x4eab('0x126')])),_0xabcfd4))[_0x4eab('0x142')](_0x5dba96=>_0x4eab('0xd6')!==_0x5dba96[_0x4eab('0x7f')][_0x4eab('0x118')]);if(_0x4f9a11['length']<0x1)return;const _0x227b89=Array[_0x4eab('0x38')](this[_0x4eab('0xbd')][_0x4eab('0x9c')][_0x4eab('0x58')][_0x4eab('0x9d')]())['map'](_0x4fdacf=>_0x146086[_0x4eab('0xe1')](_0x4fdacf));_0x35af0e[_0x4eab('0xe4')](_0x4f9a11);for(const _0x564e5f of this[_0x4eab('0x11c')]['commands'][_0x4eab('0xc4')]())_0x564e5f[_0x4eab('0x23')]();_0x49e4c1['push']({'forceDefaultExecution':!0x0}),this[_0x4eab('0x11c')]['execute'](_0x2e009d,..._0x49e4c1);const _0x33ee3e=_0x227b89[_0x4eab('0x142')](_0x1c768c=>_0x4eab('0xd6')!=_0x1c768c['root']['rootName']);_0x33ee3e[_0x4eab('0xb6')]>0x0&&_0x35af0e[_0x4eab('0xe4')](_0x33ee3e);for(const _0x4df490 of _0x227b89)_0x4df490[_0x4eab('0x79')]();});},_0x3c20f5=(_0x3aaba3,_0x3ad3e7)=>0x1==_0x3aaba3[_0x4eab('0xb6')]&&0x1==_0x3ad3e7[_0x4eab('0xb6')]&&_0x3aaba3[0x0][_0x4eab('0x126')][_0x4eab('0xb5')](_0x3ad3e7[0x0]['start']),_0x58a8e7=(_0x4bb672,_0x19edc8,_0x4eb2c3,_0xd7ad45)=>xt(_0x4bb672,_0x19edc8,_0x4eb2c3,_0xd7ad45,this[_0x4eab('0xbd')])?[_0x4bb672,_0x19edc8]:xt(_0x19edc8,_0x4bb672,_0xd7ad45,_0x4eb2c3,this[_0x4eab('0xbd')])?[_0x19edc8,_0x4bb672]:null;this[_0x4eab('0xff')][_0x4eab('0x71')](_0x4eab('0xef'),_0x39a4db),this[_0x4eab('0xff')]['set']('insertion:discard',_0x22f8e6),this['_defaultCallbacks'][_0x4eab('0x71')](_0x4eab('0x123'),_0x3c20f5),this['_defaultCallbacks'][_0x4eab('0x71')](_0x4eab('0x37'),_0x58a8e7),this[_0x4eab('0xff')][_0x4eab('0x71')]('deletion:accept',_0x22f8e6),this['_defaultCallbacks']['set'](_0x4eab('0x13f'),_0x39a4db),this[_0x4eab('0xff')][_0x4eab('0x71')](_0x4eab('0x14'),_0x3c20f5),this['_defaultCallbacks']['set']('deletion:chain',_0x58a8e7),this['_defaultCallbacks'][_0x4eab('0x71')](_0x4eab('0xa9'),_0x533ac6),this[_0x4eab('0xff')][_0x4eab('0x71')](_0x4eab('0x115'),_0x39a4db),this['_defaultCallbacks'][_0x4eab('0x71')](_0x4eab('0x8f'),_0x3c20f5),this[_0x4eab('0xff')][_0x4eab('0x71')](_0x4eab('0xaf'),_0x39a4db),this[_0x4eab('0xff')][_0x4eab('0x71')](_0x4eab('0x28'),_0x533ac6),this['_defaultCallbacks']['set'](_0x4eab('0x3e'),_0x39a4db),this[_0x4eab('0xff')]['set'](_0x4eab('0x138'),_0x3c20f5),this[_0x4eab('0xff')]['set']('formatBlock:chain',_0x39a4db);}}function Bt(_0x2031a,_0x55ded7,_0x594adf){for(const _0x5cb2a7 of _0x55ded7['parent'][_0x4eab('0xa3')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5cb2a7[_0x4eab('0x7f')]==_0x5cb2a7)return!0x1;if(!_0x594adf['containsItem'](_0x5cb2a7))return!0x1;if(_0x2031a[_0x4eab('0xc5')](_0x5cb2a7)||_0x2031a[_0x4eab('0x10')](_0x5cb2a7))return!0x0;}return!0x1;}function _t(_0x4835d5){return _0x4835d5['end'][_0x4eab('0x3b')]==_0x4835d5[_0x4eab('0x82')][_0x4eab('0x2c')]&&_0x4835d5['end'][_0x4eab('0x122')];}function Mt(_0x58c857,_0x30ff2f,_0x577c85,_0xaa9f59){const _0x361b6f=_0x59f3f2=>!_0x59f3f2[_0x4eab('0xd0')]['is'](_0x4eab('0x10b'))&&!_0xaa9f59[_0x4eab('0xc5')](_0x59f3f2[_0x4eab('0xd0')]),_0x5a2ed6=_0x58c857[_0x4eab('0x82')]['getLastMatchingPosition'](_0x361b6f),_0x23d55e=_0x58c857[_0x4eab('0x126')][_0x4eab('0xd4')](_0x361b6f,{'direction':_0x4eab('0xf4')});return(!_0x58c857[_0x4eab('0x82')][_0x4eab('0xb5')](_0x5a2ed6)||!_0x58c857[_0x4eab('0x126')][_0x4eab('0xb5')](_0x23d55e))&&(_0x5a2ed6[_0x4eab('0xa1')](_0x23d55e)?_0x577c85[_0x4eab('0x96')](_0x30ff2f,{'range':_0x577c85[_0x4eab('0xd8')](_0x5a2ed6,_0x23d55e)}):_0x577c85['removeMarker'](_0x30ff2f),!0x0);}function $t(_0x103d28){return _0x495d88(_0x103d28);}function Nt(_0x29ec67){const _0x2d1b1a=_0x29ec67[_0x4eab('0x82')][_0x4eab('0x2c')];return _0x2d1b1a&&_0x2d1b1a['is'](_0x4eab('0x78'));}function Rt(_0x293fb0,_0x449b95){const _0x947046=_0x449b95[_0x4eab('0xf8')]['isObject'](_0x293fb0)||_0x449b95[_0x4eab('0xf8')][_0x4eab('0x56')](_0x293fb0);return _0x449b95[_0x4eab('0xd8')](_0x449b95[_0x4eab('0x57')](_0x293fb0,_0x4eab('0x13c')),_0x947046?_0x449b95['createPositionAfter'](_0x293fb0):_0x449b95[_0x4eab('0x57')](_0x293fb0,_0x4eab('0x126')));}function xt(_0x5e44e8,_0x5608a2,_0x5af8dc,_0x158f9e,_0x412787){if(_0x5af8dc['end'][_0x4eab('0xb5')](_0x158f9e[_0x4eab('0x82')]))return!0x0;if(_0x5e44e8['type']!=_0x5608a2[_0x4eab('0x3d')])return!0x1;if(!_0x5af8dc[_0x4eab('0x126')][_0x4eab('0xee')](_0x158f9e['start']))return!0x1;const _0x5c915c=_0x412787[_0x4eab('0xd8')](_0x5af8dc['end'],_0x158f9e[_0x4eab('0x82')])[_0x4eab('0xcc')]();for(const _0x3ed413 of _0x5c915c)if([_0x4eab('0xe5'),_0x4eab('0x111')][_0x4eab('0x1b')](_0x3ed413['type'])&&_0x412787[_0x4eab('0xf8')][_0x4eab('0x10')](_0x3ed413[_0x4eab('0xd0')]))return!0x1;return!0x0;}
23
+ const _0x204a=['formatInline:chain','containsPosition','upcast','for','isObject','trackChangesCommand','markerToHighlight','getSuggestionCallback','isInsideObject','formatBlock:accept','removeComment','getRange','deletion','batch','containsRange','track-changes-user-not-found','nodeBefore','stop','type','markMultiRangeDeletion','some','_defaultCallbacks','ready','rethrowUnexpectedError','notReady','editing','delete','authoredAt','accepted','hasCommentThread','createPositionAt','clone','track-changes-command-not-found','_getAuthorFromId','has','getAllAdjacentSuggestions','getItems','options','_breakSuggestionMarker','discardAllSuggestions','pluginName','push','attributes','elementStart','default','_getSuggestionData','insertion','always','high','activeMarkers','listenTo','_splitMarkerName','parent','subType','enableCommand','_enabledCommands','every','newRange','formatInline','differ','plugins','createSelection','isMultiRange','Users','deletion:chain','addMarkerName','catch','enqueueChange','markDeletion','containsItem','_suggestions','formatBlock:chain','setSelection','getShiftedBy','removeMarker','deletion:','highest','isEqual','oldRange','addMarker','formatInline:discard','change:data','marker-count','acceptSuggestion','howMany','_createSuggestion','mapper','@external','split','authorName','accept','track-changes-suggestion-data-mismatch','define','_commentsRepository','CommentsRepository','fetchCommentThread','markerToData','rootName','open','track-changes-suggestion-not-found','containsRangeInObject','_onDiscard','getIntersection','group','commentThread','commands','config','suggestion-type','addClass','removeClass','previous','getNearestSelectionRange','resolve','get','unbind','getDifference','detach','getFirstMarker','suggestionLoaded','setAttribute','author','formatBlock:','ck-suggestion-marker--active','length','insertion:','update:suggestion','_adapter','suggestionChanged','join','values','elementEnd','elementToElement','_editor','init','consume','change','buildSuggestion','start','isAfter','isRemovable','locale','execute','multipleBlocks','suggestion:','removeMarker:suggestion:formatBlock','map','isNextTo','addSuggestion','moveTargetPosition','containerElement','getRanges','move','schema','fromRange','_refreshSuggestionsChain','_addThreadToSuggestion','bindElementToMarker','formatInline:','formatBlock:join','_checkSuggestionCorrectness','suggestionUnloaded','fire','hasSuggestion','addHighlight','_joinWithAdjacentSuggestions','deleteContent','registerPostFixer','isBlock','normal','markers','getMarkers','root','acceptSelectedSuggestions','stopListening','_getExternalAuthor','$graveyard','commandName','getSuggestion','enableReadOnlyMode','createdAt','acceptAllSuggestions','createPositionBefore','clear','sort','collaboration.channelId','insertion:join','change:_saved','unbindElementFromMarkerName','isDocumentOperation','formatBlock','editor','addUser','markMultiRangeBlockFormat','createRange','_removeSuggestion','nodeAfter','dataReady','isInContent','trackChanges','getLastMatchingPosition','forward','getCustomProperty','position','_rangeIsInLocalUserInsertion','targetPosition','track-changes-adapter-already-set','_handleNewSuggestionMarker','trackChanges.trackFormatChanges','ck-suggestion-marker-formatBlock','backward','includes','_setSuggestionRange','isSelectable','data','from','conversion','consumable','never','isTouching','addRange','_mergeNestedSuggestions','filter','insertion:accept','deletion:accept','item','markerName','isCollapsed','head','deletion:discard','creator','formatGroupId','_isForcedDefaultExecutionBlock','suggestion','_joinSuggestions','_saved','document','addCommentThread','model','_model','isUndo','$textProxy','applyOperation','widget','next','name','rejected','_findSuggestions','addSuggestionData','end','getAttribute','range','refresh','ck-suggestion-marker-','markBlockFormat','getAncestors','multi','set','getSuggestions','_updateSuggestionData','_setSuggestionData','selection','PendingActions','discardSelectedSuggestions','isAtStart','isLocal','originalSuggestionId','ck-suggestion-marker','discardSuggestion','getChangedMarkers','isBefore','_suggestionFactory','toJSON','removeAttribute','size','setTo','updateMarker','_cutOutSuggestionMarker','element','before','track-changes-adapter-missing-getsuggestion','writer','showSuggestionHighlights','updateSuggestion','getMultiRangeId','markMultiRangeInsertion','isOwn','low','skipNestingCheck','value','splice','hasComments','getUser','registerCustomCallback','splitPosition','forceDefaultExecution','PENDING_ACTION_SUGGESTION','_suggestionState','removed','after','change:activeMarkers','getFirstRange','add','data-suggestion','_registerDefaultCallbacks','requires','dataDowncast','addMarker:suggestion:formatBlock','markerReady','isAtEnd','_customCallbacks','_addSuggestionMarker','getChanges','discard','isIntersectingWithRange','trackChanges.mergeNestedSuggestions','markInsertion','isLimit','_trackFormatChanges','then','removeMarkers','remove','substr','$marker'];(function(_0x183779,_0x204a3f){const _0x2cad78=function(_0xbb65c9){while(--_0xbb65c9){_0x183779['push'](_0x183779['shift']());}};_0x2cad78(++_0x204a3f);}(_0x204a,0xc9));const _0x2cad=function(_0x183779,_0x204a3f){_0x183779=_0x183779-0x0;let _0x2cad78=_0x204a[_0x183779];return _0x2cad78;};import{Plugin as _0x259d16,PendingActions as _0x2f5c33}from'ckeditor5/src/core';import{LiveRange as _0x52da85}from'ckeditor5/src/engine';import{CKEditorError as _0x312a50,uid as _0x103e67,priorities as _0x1cdb03,logWarning as _0x23e72b}from'ckeditor5/src/utils';import{toWidget as _0x49f232}from'ckeditor5/src/widget';import{Users as _0x9107f0,hashObject as _0x1ad6c7}from'ckeditor5-collaboration/src/collaboration-core';import _0x5a755f from'./commands/trackchangescommand';import _0x511a8f from'./commands/acceptsuggestioncommand';import _0x57624d from'./commands/discardsuggestioncommand';import _0x18e28a from'./commands/executeonallsuggestionscommand';import _0x31fd69 from'./commands/executeonselectedsuggestionscommand';import _0x519345 from'./suggestion';import _0x3f1256 from'./suggestiondescriptionfactory';import _0x46241f from'./integrations/alignment';import _0x41fdd4 from'./integrations/basicstyles';import _0x554ee5 from'./integrations/blockquote';import _0x4abf7a from'./integrations/ckbox';import _0x4304b7 from'./integrations/codeblock';import _0x5f32e9 from'./integrations/comments';import _0x37f13c from'./integrations/deletecommand';import _0x324495 from'./integrations/documentlist';import _0x1b1566 from'./integrations/entercommand';import _0xef73d3 from'./integrations/findandreplace';import _0xc27d97 from'./integrations/font';import _0x535ddb from'./integrations/formatpainter';import _0x35eb5e from'./integrations/heading';import _0x378194 from'./integrations/highlight';import _0x35b419 from'./integrations/horizontalline';import _0x51350e from'./integrations/htmlembed';import _0x1bc65e from'./integrations/image';import _0x12b977 from'./integrations/imagereplace';import _0x1269aa from'./integrations/importword';import _0x510c9a from'./integrations/indent';import _0x76aaf6 from'./integrations/inputcommand';import _0x1f66bc from'./integrations/link';import _0x3c12bf from'./integrations/list';import _0x57b9ba from'./integrations/listproperties';import _0x12bdb4 from'./integrations/mediaembed';import _0x198dec from'./integrations/mention';import _0x5cd922 from'./integrations/pagebreak';import _0x2367ca from'./integrations/paragraph';import _0x202fdb from'./integrations/removeformat';import _0x1082dc from'./integrations/restrictededitingmode';import _0x4253a0 from'./integrations/shiftentercommand';import _0x352e0d from'./integrations/standardeditingmode';import _0x11fa93 from'./integrations/style';import _0x14f73a from'./integrations/table';import _0xf3dd99 from'./integrations/tablemergesplit';import _0x3a05a8 from'./integrations/tableheadings';import _0x196887 from'./integrations/tableclipboard';import _0x585d0c from'./integrations/tablecolumnresize';import _0x3082ff from'./integrations/template';import _0x34d125 from'./integrations/tableofcontents';import _0x31c368 from'./integrations/title';import _0x4c6359 from'./integrations/undo';import{getTranslation as _0x2c44d2}from'./utils/common-translations';import _0x5e890d from'./integrations/tablecaption';import _0x1f47c9 from'./integrations/documentlistproperties';import _0x4b5287 from'./integrations/tableproperties';export default class p extends _0x259d16{static get[_0x2cad('0x67')](){return[_0x2cad('0xd8'),_0x9107f0,_0x2f5c33,_0x46241f,_0x41fdd4,_0x554ee5,_0x4abf7a,_0x4304b7,_0x5f32e9,_0x37f13c,_0x324495,_0x1f47c9,_0x1b1566,_0xef73d3,_0xc27d97,_0x535ddb,_0x35eb5e,_0x378194,_0x35b419,_0x51350e,_0x1bc65e,_0x12b977,_0x1269aa,_0x510c9a,_0x76aaf6,_0x1f66bc,_0x3c12bf,_0x57b9ba,_0x12bdb4,_0x198dec,_0x5cd922,_0x2367ca,_0x202fdb,_0x1082dc,_0x4253a0,_0x352e0d,_0x11fa93,_0x14f73a,_0xf3dd99,_0x3a05a8,_0x5e890d,_0x196887,_0x585d0c,_0x34d125,_0x4b5287,_0x3082ff,_0x31c368,_0x4c6359];}static get[_0x2cad('0xa2')](){return'TrackChangesEditing';}constructor(_0x122052){function _0xa21bbf(_0x4bceef){return _0x4bceef['map'](_0x56f774=>String['fromCharCode'](_0x56f774))[_0x2cad('0xfa')]('');}super(_0x122052),this[_0x2cad('0x37')]('activeMarkers',[]),this['on'](_0x2cad('0x62'),(_0x35e9be,_0x293d2d,_0x10767c,_0x208036)=>{this[_0x2cad('0x25')][_0x2cad('0x101')](()=>{for(const _0x7a8476 of[..._0x208036,..._0x10767c])this[_0x2cad('0x25')]['markers'][_0x2cad('0x9c')](_0x7a8476)&&_0x122052[_0x2cad('0x93')]['reconvertMarker'](_0x7a8476);});}),this['_descriptionFactory']=new _0x3f1256(this[_0x2cad('0x138')][_0x2cad('0x24')][_0x2cad('0x112')],this[_0x2cad('0x138')][_0x2cad('0x106')]),this[_0x2cad('0xf8')]=null,this[_0x2cad('0x45')]=new Dt(this[_0x2cad('0x138')]),this[_0x2cad('0xc0')]=new Map(),this[_0x2cad('0xd7')]=_0x122052[_0x2cad('0xb6')]['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this[_0x2cad('0x138')][_0x2cad('0x24')],this[_0x2cad('0x5f')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x122052['config'][_0x2cad('0xd6')]('trackChanges.trackFormatChanges',_0x2cad('0xa6')),this[_0x2cad('0x74')]=_0x122052[_0x2cad('0xe4')][_0x2cad('0xeb')](_0x2cad('0x6')),_0x122052[_0x2cad('0xe4')][_0x2cad('0xd6')](_0x2cad('0x71'),!0x0),this[_0x2cad('0x13')]=_0x122052['config'][_0x2cad('0xeb')](_0x2cad('0x71')),this[_0x2cad('0x7f')]=new _0x5a755f(_0x122052,this[_0x2cad('0xb1')]),this[_0xa21bbf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xa21bbf([0x34,0x30,0x34,0x36,0x31,0x36,0x32,0x32]);}[_0x2cad('0xff')](){const _0x8cba0f=this[_0x2cad('0x138')];_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')]('editingDowncast')[_0x2cad('0x80')]({'model':_0x2cad('0x1f'),'view':_0x22eb70=>{const {id:_0x163b4b,type:_0x4e6ea3}=this[_0x2cad('0xad')](_0x22eb70['markerName']),_0x14f2e7=[_0x2cad('0x41'),_0x2cad('0x33')+_0x4e6ea3];let _0xc7aa7f=0xbb8;return this[_0x2cad('0xab')][_0x2cad('0x9')](_0x22eb70[_0x2cad('0x18')])&&(_0x14f2e7[_0x2cad('0xa3')](_0x2cad('0xf4')),_0xc7aa7f=0xbc2),'deletion'==_0x4e6ea3&&(_0xc7aa7f+=0x5),{'classes':_0x14f2e7,'attributes':{'data-suggestion':_0x163b4b},'priority':_0xc7aa7f};}}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')](_0x2cad('0x68'))['add'](_0x4bbcfb=>{_0x4bbcfb['on']('addMarker:suggestion',(_0x3091a0,_0x4fc8ff,_0x918115)=>{if(!_0x918115[_0x2cad('0x9f')][_0x2cad('0x50')])return;const _0x25fd2b=_0x4fc8ff[_0x2cad('0x17')];if(!_0x25fd2b)return;const _0x32fe17=_0x918115[_0x2cad('0xd0')]['toViewElement'](_0x25fd2b);_0x8cba0f['model'][_0x2cad('0x112')][_0x2cad('0x7e')](_0x25fd2b)&&_0x32fe17&&!_0x32fe17[_0x2cad('0x0')](_0x2cad('0x29'))&&_0x32fe17['is'](_0x2cad('0x10f'))&&_0x49f232(_0x32fe17,_0x918115[_0x2cad('0x4f')]);},{'priority':_0x2cad('0xaa')});}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')](_0x2cad('0x68'))[_0x2cad('0x80')]({'model':_0x2cad('0x1f'),'view':(_0x37c4e5,_0x32bfa3)=>{if(!_0x32bfa3[_0x2cad('0x9f')]['showSuggestionHighlights'])return null;const {type:_0x3fed0d}=this[_0x2cad('0xad')](_0x37c4e5[_0x2cad('0x18')]);return{'classes':[_0x2cad('0x41'),_0x2cad('0x33')+_0x3fed0d],'priority':0xbb8};}});const _0x1fa2a7=({showActiveMarkers:_0x590d53=!0x0}={})=>(_0x2e580c,_0x1ff7bb,_0x3070cf)=>{if(!_0x1ff7bb['item'])return;if(_0x1ff7bb[_0x2cad('0x17')]['is'](_0x2cad('0x3b')))return void _0x3070cf[_0x2cad('0xf')][_0x2cad('0x100')](_0x1ff7bb[_0x2cad('0x17')],_0x2e580c[_0x2cad('0x2b')]);const _0x544c0c=_0x3070cf[_0x2cad('0xd0')]['toViewElement'](_0x1ff7bb[_0x2cad('0x17')]);if(!(_0x1ff7bb[_0x2cad('0x17')]['is'](_0x2cad('0x4c'))&&_0x8cba0f[_0x2cad('0x24')]['schema']['isBlock'](_0x1ff7bb[_0x2cad('0x17')])&&!_0x544c0c['getCustomProperty'](_0x2cad('0x11d'))))return;const {id:_0x291ac1}=this['_splitMarkerName'](_0x1ff7bb[_0x2cad('0x18')]);_0x3070cf[_0x2cad('0x4f')][_0x2cad('0xe6')]([_0x2cad('0x41'),_0x2cad('0x7')],_0x544c0c),_0x3070cf['writer'][_0x2cad('0xf1')](_0x2cad('0x65'),_0x291ac1,_0x544c0c),_0x3070cf[_0x2cad('0xd0')][_0x2cad('0x116')](_0x544c0c,_0x1ff7bb[_0x2cad('0x18')]),_0x590d53&&(this[_0x2cad('0xab')][_0x2cad('0x9')](_0x1ff7bb[_0x2cad('0x18')])?_0x3070cf['writer'][_0x2cad('0xe6')](_0x2cad('0xf4'),_0x544c0c):_0x3070cf[_0x2cad('0x4f')][_0x2cad('0xe7')](_0x2cad('0xf4'),_0x544c0c));for(const _0x2e439c of _0x8cba0f[_0x2cad('0x24')]['createRangeIn'](_0x1ff7bb[_0x2cad('0x17')])[_0x2cad('0x9e')]())_0x3070cf[_0x2cad('0xf')]['consume'](_0x2e439c,_0x2e580c[_0x2cad('0x2b')]);_0x3070cf[_0x2cad('0xf')][_0x2cad('0x100')](_0x1ff7bb[_0x2cad('0x17')],_0x2e580c[_0x2cad('0x2b')]);};_0x8cba0f[_0x2cad('0xe')]['for'](_0x2cad('0x68'))[_0x2cad('0x64')](_0x2c53e9=>{_0x2c53e9['on'](_0x2cad('0x69'),(_0x5e1153,_0x2186a8,_0x1a403b)=>{_0x1a403b['options']['showSuggestionHighlights']&&_0x1fa2a7({'showActiveMarkers':!0x1})(_0x5e1153,_0x2186a8,_0x1a403b);},{'priority':_0x2cad('0xc6')});}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')](_0x2cad('0x68'))[_0x2cad('0xda')]({'model':'suggestion','view':(_0x2d3dc7,_0x1ea043)=>_0x1ea043[_0x2cad('0x9f')][_0x2cad('0x50')]?null:{'group':_0x2cad('0x1f'),'name':_0x2d3dc7[_0x2cad('0x78')](0xb)}}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')](_0x2cad('0x7c'))[_0x2cad('0xfd')]({'view':{'name':_0x2cad('0x1f'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x23a7df,{writer:_0x1faf2a})=>{let _0x2d1f4e=_0x2cad('0x109')+_0x23a7df['getAttribute'](_0x2cad('0xe5'))+':'+_0x23a7df['getAttribute']('id');return _0x23a7df[_0x2cad('0x30')]('marker-count')&&(_0x2d1f4e+=':'+_0x23a7df[_0x2cad('0x30')](_0x2cad('0xcc'))),_0x1faf2a['createElement'](_0x2cad('0x79'),{'data-name':_0x2d1f4e});}}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')]('upcast')['dataToMarker']({'view':'suggestion'}),_0x8cba0f[_0x2cad('0xe')]['for']('editingDowncast')['add'](_0x5a9d0b=>{_0x5a9d0b['on'](_0x2cad('0x69'),_0x1fa2a7(),{'priority':_0x2cad('0xaa')});}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')]('editingDowncast')[_0x2cad('0x64')](_0x37e058=>{_0x37e058['on'](_0x2cad('0x10a'),(_0x90fae4,_0x1c6272,_0x1ee675)=>{const _0x30513d=_0x1ee675[_0x2cad('0xd0')]['markerNameToElements'](_0x1c6272[_0x2cad('0x18')]);if(_0x30513d)for(const _0x1b7894 of _0x30513d)_0x1b7894['getCustomProperty']('addHighlight')||(_0x1ee675['writer'][_0x2cad('0xe7')]([_0x2cad('0x41'),_0x2cad('0x7'),_0x2cad('0xf4')],_0x1b7894),_0x1ee675[_0x2cad('0x4f')][_0x2cad('0x47')](_0x2cad('0x65'),_0x1b7894),_0x1ee675['mapper'][_0x2cad('0x135')](_0x1b7894,_0x1c6272[_0x2cad('0x18')]));},{'priority':_0x2cad('0xaa')});}),_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x22')][_0x2cad('0x120')](_0x5a4ac6=>{let _0x21109f=!0x1;const _0xd274cd=Array[_0x2cad('0xd')](_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x22')][_0x2cad('0xb5')][_0x2cad('0x43')]()),_0x1a93a2=new Set();for(const {name:_0x44b444,data:_0x124633}of _0xd274cd){const {group:_0x307a4d,type:_0x1e4e32,id:_0x3aed85}=this[_0x2cad('0xad')](_0x44b444);if('suggestion'!==_0x307a4d)continue;const _0x2afb36=this[_0x2cad('0xc0')][_0x2cad('0xeb')](_0x3aed85);if(null!=_0x124633[_0x2cad('0xb3')]){_0x2cad('0xb4')==_0x1e4e32&&(_0x21109f=_0x21109f||Mt(_0x124633[_0x2cad('0xb3')],_0x44b444,_0x5a4ac6,_0x8cba0f[_0x2cad('0x24')]['schema']));if(_0x124633[_0x2cad('0xb3')][_0x2cad('0x19')]||_0x2cad('0x129')==_0x124633[_0x2cad('0xb3')][_0x2cad('0x125')][_0x2cad('0xdb')]||'formatBlock'==_0x1e4e32&&!Nt(_0x124633[_0x2cad('0xb3')])||_0x2cad('0x86')==_0x1e4e32&&!(!_t(_0x2e4c46=_0x124633[_0x2cad('0xb3')])&&!function(_0x1e991d){return _0x1e991d[_0x2cad('0x103')]['parent']==_0x1e991d[_0x2cad('0x2f')][_0x2cad('0x8a')]&&_0x1e991d[_0x2cad('0x103')][_0x2cad('0x6b')];}(_0x2e4c46)))_0x5a4ac6[_0x2cad('0xc4')](_0x44b444),_0x21109f=!0x0;else{if(!_0x2afb36||!_0x2afb36[_0x2cad('0x13f')])continue;_0x1a93a2[_0x2cad('0x64')](_0x2afb36);}}}var _0x2e4c46;return _0x1a93a2[_0x2cad('0x48')]>0x0&&(_0x21109f=!!this[_0x2cad('0x11e')](_0x1a93a2)||_0x21109f),_0x21109f;}),_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x22')]['registerPostFixer'](_0x400c51=>{let _0x631628=!0x1;for(const _0x528e5b of _0x8cba0f[_0x2cad('0x24')][_0x2cad('0x22')][_0x2cad('0xb5')][_0x2cad('0x6e')]()){if('insert'!=_0x528e5b[_0x2cad('0x8c')])continue;const _0x16af9a=_0x528e5b[_0x2cad('0x1')][_0x2cad('0xc3')](_0x528e5b[_0x2cad('0xf5')]);if(_0x16af9a[_0x2cad('0x6b')])for(const _0x46bda9 of this[_0x2cad('0xc0')][_0x2cad('0xfb')]()){if(_0x46bda9[_0x2cad('0xb8')]||!_0x46bda9[_0x2cad('0x13f')])continue;if(_0x2cad('0x137')!=_0x46bda9[_0x2cad('0x8c')])continue;const _0x5dbebd=_0x46bda9['getFirstRange']();if(_0x5dbebd[_0x2cad('0x103')]['parent']!=_0x5dbebd[_0x2cad('0x2f')][_0x2cad('0xae')]&&_0x5dbebd[_0x2cad('0x2f')][_0x2cad('0xc7')](_0x528e5b[_0x2cad('0x1')])){const _0x43e1f3=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x13b')](_0x5dbebd['start'],_0x16af9a);_0x400c51[_0x2cad('0x4a')](_0x46bda9['getFirstMarker'](),{'range':_0x43e1f3}),_0x631628=!0x0;}}}return _0x631628;}),_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x123')]['on'](_0x2cad('0xf7'),(_0x114473,_0x27df5d,_0x13aeeb)=>{if(null==_0x13aeeb){const {id:_0x58e178}=this[_0x2cad('0xad')](_0x27df5d[_0x2cad('0x2b')]),_0x202fae=this[_0x2cad('0xc0')]['get'](_0x58e178);_0x202fae&&_0x202fae[_0x2cad('0xbb')](_0x27df5d[_0x2cad('0x2b')]);}}),_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x22')]['on'](_0x2cad('0xcb'),()=>{const _0x238dea=Array['from'](_0x8cba0f['model']['document'][_0x2cad('0xb5')]['getChangedMarkers']())['filter'](_0x5568d9=>_0x2cad('0x1f')===this[_0x2cad('0xad')](_0x5568d9[_0x2cad('0x2b')])[_0x2cad('0xe1')]);if(0x0===_0x238dea[_0x2cad('0xf5')])return;_0x238dea[_0x2cad('0x131')]((_0x4d67a0,_0x88c360)=>{const _0x4b078f=_0x4d67a0[_0x2cad('0xc')]['oldRange'],_0x4d1745=_0x88c360[_0x2cad('0xc')][_0x2cad('0xc8')];return null===_0x4b078f&&null===_0x4d1745?0x0:null===_0x4b078f&&null!==_0x4d1745?-0x1:null!==_0x4b078f&&null===_0x4d1745?0x1:_0x4b078f[_0x2cad('0x103')][_0x2cad('0x44')](_0x4d1745[_0x2cad('0x103')])?-0x1:0x1;});const _0x24c12e=new Set(),_0x17cdc8=new Set();for(const {name:_0x58555a,data:_0xc656fa}of _0x238dea){const {id:_0x2bb2fe}=this[_0x2cad('0xad')](_0x58555a);if(null===_0xc656fa[_0x2cad('0xc8')]){const _0x3e38b6=this[_0x2cad('0x5')](_0x58555a);_0x17cdc8[_0x2cad('0x64')](_0x3e38b6);}else{const _0x550881=this[_0x2cad('0xc0')][_0x2cad('0xeb')](_0x2bb2fe);null!==_0xc656fa['newRange']||_0x550881['isInContent']?(_0x24c12e['add'](_0x550881[_0x2cad('0x1a')]),_0x17cdc8['add'](_0x550881)):this['_removeSuggestion'](_0x550881);}}_0x17cdc8[_0x2cad('0x48')]>0x0&&this[_0x2cad('0x114')](_0x17cdc8);for(const _0x443c5d of _0x24c12e)this[_0x2cad('0x11b')](_0x2cad('0xf9'),_0x443c5d);}),_0x8cba0f[_0x2cad('0x24')]['on'](_0x2cad('0x28'),(_0x5623df,_0x14633f)=>{const _0x1b14ff=_0x14633f[0x0];if(!this[_0x2cad('0xc0')]['size'])return;if(!_0x1b14ff[_0x2cad('0x136')])return;if(_0x1b14ff[_0x2cad('0x87')][_0x2cad('0x26')]||!_0x1b14ff['batch'][_0x2cad('0x3f')])return;let _0x545084,_0x17df41;switch(_0x1b14ff[_0x2cad('0x8c')]){case'insert':_0x545084=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x98')](_0x1b14ff['position']),_0x17df41=_0x545084[_0x2cad('0xc3')](_0x1b14ff['howMany']);break;case _0x2cad('0xd2'):_0x545084=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x98')](_0x1b14ff[_0x2cad('0x5c')]),_0x17df41=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x98')](_0x1b14ff[_0x2cad('0x10e')]);break;case _0x2cad('0x111'):_0x545084=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x98')](_0x1b14ff[_0x2cad('0x3')]),_0x17df41=_0x545084['getShiftedBy'](_0x1b14ff[_0x2cad('0xce')]);break;default:return;}const _0xd6ae73=_0x8cba0f[_0x2cad('0x24')]['createRange'](_0x545084,_0x17df41);_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x101')](()=>{for(const {suggestion:_0x516beb,meta:_0x300b3a}of this[_0x2cad('0x2d')](_0xd6ae73)){if(_0x516beb['isMultiRange'])continue;if('formatInline'==_0x516beb[_0x2cad('0x8c')])continue;const _0x1d3217=_0x516beb[_0x2cad('0xc')]&&_0x516beb[_0x2cad('0xc')]['multipleBlocks'];('formatBlock'!=_0x516beb['type']||_0x2cad('0xd2')==_0x1b14ff[_0x2cad('0x8c')]&&!_0x1d3217)&&(_0x300b3a[_0x2cad('0xde')]||_0x2cad('0xa8')==_0x516beb[_0x2cad('0x8c')]&&_0x300b3a[_0x2cad('0x54')]||_0x516beb[_0x2cad('0x63')]()['containsRange'](_0xd6ae73)&&this[_0x2cad('0xa0')](_0x516beb,_0x545084,_0x17df41));}});},{'priority':'lowest'}),_0x8cba0f[_0x2cad('0x24')]['on']('deleteContent',(_0x1d38f5,_0x319132)=>{const _0x2789d3=_0x319132[0x0],_0x2c0d0d=_0x319132[0x1];if(_0x2c0d0d&&_0x2c0d0d['forceDefaultExecution'])return;if(this[_0x2cad('0x1e')])return;if(!this[_0x2cad('0x7f')][_0x2cad('0x57')])return;if(_0x2789d3[_0x2cad('0x19')])return;const _0x5576c3=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x112')],{start:_0x29df68,end:_0x1131a8}=_0x2789d3[_0x2cad('0x63')](),_0x11fcc4=_0x29df68[_0x2cad('0x13d')]&&_0x5576c3['isLimit'](_0x29df68[_0x2cad('0x13d')])?null:_0x5576c3['getNearestSelectionRange'](_0x29df68,_0x2cad('0x142')),_0x5449ff=_0x1131a8[_0x2cad('0x8a')]&&_0x5576c3[_0x2cad('0x73')](_0x1131a8[_0x2cad('0x8a')])?null:_0x5576c3[_0x2cad('0xe9')](_0x1131a8,'backward'),_0x1608f3=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x13b')](_0x11fcc4?_0x11fcc4[_0x2cad('0x103')]:_0x29df68,_0x5449ff?_0x5449ff[_0x2cad('0x2f')]:_0x1131a8);_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x101')](_0xe6dbd=>{this[_0x2cad('0xbe')](_0x1608f3);const _0x2325da=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x112')][_0x2cad('0xe9')](_0x1608f3['start']);_0x2789d3['is']('documentSelection')?_0xe6dbd[_0x2cad('0xc2')](_0x2325da):_0x2789d3[_0x2cad('0x49')](_0x2325da);}),_0x1d38f5[_0x2cad('0x8b')]();},{'priority':_0x1cdb03[_0x2cad('0x122')]+0xa}),_0x8cba0f[_0x2cad('0x24')]['on']('insertContent',(_0x12a427,_0x1bcd5c)=>{const _0x2f4e78=_0x1bcd5c[_0x1bcd5c[_0x2cad('0xf5')]-0x1];_0x2f4e78&&_0x2f4e78[_0x2cad('0x5d')]||this[_0x2cad('0x1e')]||this[_0x2cad('0x7f')]['value']&&(_0x8cba0f['model'][_0x2cad('0x101')](()=>{let _0x4f211a=_0x8cba0f[_0x2cad('0x24')]['insertContent'](_0x1bcd5c[0x0],_0x1bcd5c[0x1],_0x1bcd5c[0x2],{'forceDefaultExecution':!0x0});if(!_0x4f211a)return;_0x12a427['return']=_0x4f211a[_0x2cad('0x99')]();const _0x4fce80=_0x4f211a[_0x2cad('0x2f')][_0x2cad('0x8a')],_0x2bfa17=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x112')];_0x4fce80&&_0x2bfa17[_0x2cad('0x121')](_0x4fce80)&&!_0x2bfa17[_0x2cad('0x7e')](_0x4fce80)&&(_0x4f211a=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x13b')](_0x4f211a[_0x2cad('0x103')],_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x98')](_0x4fce80,_0x2cad('0x2f')))),this['markInsertion'](_0x4f211a);}),_0x12a427[_0x2cad('0x8b')]());},{'priority':_0x2cad('0xaa')}),this[_0x2cad('0x138')][_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0x140'),this[_0x2cad('0x7f')]),this[_0x2cad('0xb0')](_0x2cad('0x140'));const _0x470a2a=new _0x511a8f(_0x8cba0f,this[_0x2cad('0xc0')]);_0x8cba0f[_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0xcd'),_0x470a2a),this[_0x2cad('0xb0')](_0x2cad('0xcd'));const _0x1b6772=new _0x57624d(_0x8cba0f,this[_0x2cad('0xc0')]);_0x8cba0f[_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0x42'),_0x1b6772),this[_0x2cad('0xb0')]('discardSuggestion'),_0x8cba0f[_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0x12e'),new _0x18e28a(_0x8cba0f,_0x470a2a,this['_suggestions'])),this[_0x2cad('0xb0')]('acceptAllSuggestions'),_0x8cba0f[_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0xa1'),new _0x18e28a(_0x8cba0f,_0x1b6772,this[_0x2cad('0xc0')])),this[_0x2cad('0xb0')](_0x2cad('0xa1')),_0x8cba0f['commands'][_0x2cad('0x64')](_0x2cad('0x126'),new _0x31fd69(_0x8cba0f,_0x470a2a,this[_0x2cad('0xc0')])),this[_0x2cad('0xb0')]('acceptSelectedSuggestions'),_0x8cba0f[_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0x3d'),new _0x31fd69(_0x8cba0f,_0x1b6772,this[_0x2cad('0xc0')])),this[_0x2cad('0xb0')](_0x2cad('0x3d'));const _0x467781=_0x8cba0f['plugins'][_0x2cad('0xeb')](_0x2cad('0xd8'));this['listenTo'](_0x467781,'addComment',(_0x474eca,{threadId:_0x4f58df})=>{const _0x48c9db=this['_suggestions']['get'](_0x4f58df);_0x48c9db&&_0x48c9db[_0x2cad('0xe2')]&&0x1===_0x48c9db[_0x2cad('0xe2')][_0x2cad('0xf5')]&&this[_0x2cad('0x39')](_0x4f58df,{'hasComments':!0x0});},{'priority':_0x2cad('0x55')}),this[_0x2cad('0xac')](_0x467781,_0x2cad('0x84'),(_0x499887,{threadId:_0x1fcf46})=>{const _0x17e00e=this['_suggestions'][_0x2cad('0xeb')](_0x1fcf46);_0x17e00e&&_0x17e00e['commentThread']&&!_0x17e00e[_0x2cad('0xe2')][_0x2cad('0xf5')]&&this['_updateSuggestionData'](_0x1fcf46,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x10ba7e){if(this[_0x2cad('0xf8')])throw new _0x312a50(_0x2cad('0x4'),this);this[_0x2cad('0xf8')]=_0x10ba7e;}get['adapter'](){return this[_0x2cad('0xf8')];}[_0x2cad('0x38')]({skipNotAttached:_0x21e9d0=!0x1,toJSON:_0xb99eda=!0x1}={}){const _0x44a50a=[];for(const _0x332e22 of this['_suggestions']['values']())_0x21e9d0&&!_0x332e22[_0x2cad('0x13f')]||_0x44a50a[_0x2cad('0xa3')](_0x332e22);return _0xb99eda?_0x44a50a[_0x2cad('0x10b')](_0x5e8f8e=>_0x5e8f8e[_0x2cad('0x46')]()):_0x44a50a;}[_0x2cad('0x12b')](_0x385298){const _0x326ec1=this['_suggestions'][_0x2cad('0xeb')](_0x385298);if(!_0x326ec1)throw new _0x312a50(_0x2cad('0xdd'),this);return _0x326ec1;}[_0x2cad('0x11c')](_0x5c694b){return this['_suggestions'][_0x2cad('0x9c')](_0x5c694b);}[_0x2cad('0x2e')](_0x1adf7d){const {authorId:_0x150bce,id:_0x5c6e43,attributes:_0x10f010}=_0x1adf7d,[_0x1b6fc2,_0x1d7d0c]=_0x1adf7d[_0x2cad('0x8c')][_0x2cad('0xd2')](':'),_0x4e82c4=this[_0x2cad('0xc0')][_0x2cad('0xeb')](_0x5c6e43)||this[_0x2cad('0xcf')](_0x1b6fc2,_0x1d7d0c,_0x5c6e43,_0x150bce,_0x10f010);if(this[_0x2cad('0x115')](_0x4e82c4),this[_0x2cad('0x119')](_0x4e82c4,_0x1b6fc2,_0x1d7d0c||null,_0x150bce),_0x4e82c4[_0x2cad('0x12d')]=_0x1adf7d[_0x2cad('0x12d')],_0x10f010&&_0x10f010['@external']){const _0xa0cdb4=_0x10f010[_0x2cad('0xd1')],_0x3d663a=this[_0x2cad('0x128')](_0xa0cdb4[_0x2cad('0xd3')]);_0x4e82c4[_0x2cad('0x95')]=_0xa0cdb4['createdAt'],_0x4e82c4[_0x2cad('0xf2')]=_0x3d663a,_0x4e82c4['isExternal']=!0x0;}else _0x4e82c4['authoredAt']=_0x1adf7d[_0x2cad('0x12d')];switch(_0x1adf7d[_0x2cad('0xc')]&&(_0x4e82c4[_0x2cad('0xc')]=_0x1adf7d[_0x2cad('0xc')]),_0x1adf7d[_0x2cad('0xa4')]&&(_0x4e82c4[_0x2cad('0xa4')]=_0x1adf7d['attributes']),this[_0x2cad('0xf8')]&&this[_0x2cad('0xf8')][_0x2cad('0x10d')]||(_0x4e82c4['_saved']=!0x0),this[_0x2cad('0x5f')]['get'](_0x4e82c4)){case _0x2cad('0x92'):this[_0x2cad('0x5f')][_0x2cad('0x37')](_0x4e82c4,_0x2cad('0x13e'));break;case _0x2cad('0x6a'):_0x4e82c4['isInContent']?(this['_suggestionState']['set'](_0x4e82c4,_0x2cad('0x90')),this[_0x2cad('0x11b')](_0x2cad('0xf0'),_0x4e82c4)):this[_0x2cad('0x5f')]['set'](_0x4e82c4,_0x2cad('0x60'));}return _0x4e82c4;}[_0x2cad('0xcd')](_0x58c1f9){this[_0x2cad('0x5d')](()=>{this[_0x2cad('0x138')][_0x2cad('0x24')][_0x2cad('0x101')](()=>{for(const _0x57a619 of _0x58c1f9[_0x2cad('0x9d')]())_0x57a619[_0x2cad('0xd4')]();});});}[_0x2cad('0x42')](_0x95a551){this[_0x2cad('0x5d')](()=>{this[_0x2cad('0x138')][_0x2cad('0x24')][_0x2cad('0x101')](()=>{for(const _0x16b686 of _0x95a551[_0x2cad('0x9d')]())_0x16b686[_0x2cad('0x6f')]();});});}[_0x2cad('0xb0')](_0x2d5eb8,_0x2cc748){const _0x282ca8=this[_0x2cad('0x138')][_0x2cad('0xe3')][_0x2cad('0xeb')](_0x2d5eb8);if(!_0x282ca8)throw new _0x312a50(_0x2cad('0x9a'),this,{'commandName':_0x2d5eb8});this[_0x2cad('0xb1')][_0x2cad('0x64')](_0x282ca8),_0x2cc748&&_0x282ca8['on']('execute',(_0x4f7363,_0x39e53c)=>{this[_0x2cad('0x7f')][_0x2cad('0x57')]&&(this[_0x2cad('0x1e')]||_0x39e53c[_0x2cad('0xf5')]>0x0&&_0x39e53c[_0x39e53c[_0x2cad('0xf5')]-0x1]&&_0x39e53c[_0x39e53c['length']-0x1][_0x2cad('0x5d')]||(_0x2cc748((..._0x52401e)=>_0x282ca8[_0x2cad('0x107')](..._0x52401e,{'forceDefaultExecution':!0x0}),..._0x39e53c),_0x4f7363[_0x2cad('0x8b')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x1c90f3){let _0x1b291f,_0x514150;const _0x296342=this[_0x2cad('0x1e')];this[_0x2cad('0x1e')]=!0x0;try{_0x1b291f=_0x1c90f3();}catch(_0x1eae45){_0x514150=_0x1eae45;}return _0x296342||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x514150&&_0x312a50[_0x2cad('0x91')](_0x514150,this),_0x1b291f;}[_0x2cad('0x72')](_0x4dc905,_0x41c16a=null,_0x47c4af={}){if(_0x4dc905[_0x2cad('0x19')])return null;const _0x1d5f51=this['editor'][_0x2cad('0xb6')][_0x2cad('0xeb')]('Users')['me'];for(const {suggestion:_0x2fd7c9,meta:_0x1e1c3c}of this['_findSuggestions'](_0x4dc905,_0x2cad('0xa8')))if(_0x1e1c3c[_0x2cad('0x54')]){if(!_0x1e1c3c[_0x2cad('0x10c')]){if(!this[_0x2cad('0x13')]&&_0x1e1c3c[_0x2cad('0xde')])continue;return _0x2fd7c9;}if(_0x41c16a==_0x2fd7c9[_0x2cad('0xaf')]){const _0x2e2ef8=_0x2fd7c9['getFirstRange']();return _0x2e2ef8[_0x2cad('0x103')]['isEqual'](_0x4dc905['end'])?this[_0x2cad('0xa')](_0x2fd7c9,this[_0x2cad('0x25')]['createRange'](_0x4dc905[_0x2cad('0x103')],_0x2e2ef8['end'])):this['_setSuggestionRange'](_0x2fd7c9,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x2e2ef8['start'],_0x4dc905[_0x2cad('0x2f')])),_0x2fd7c9;}}const _0x3876e7=_0x103e67(),_0x3b3102=_0x1d5f51['id'],_0x132465=_0x41c16a?_0x2cad('0xf6')+_0x41c16a:_0x2cad('0xa8'),_0x1b13d1=this[_0x2cad('0x3a')]({'id':_0x3876e7,'type':_0x132465,'createdAt':new Date(),'authorId':_0x3b3102,'attributes':_0x47c4af});return this['_addSuggestionMarker'](_0x132465,_0x3876e7,_0x3b3102,_0x4dc905),_0x1b13d1;}[_0x2cad('0x53')](_0x349088,_0x5e50e8=_0x2cad('0x36'),_0x46e423={}){const _0x2b5624=this[_0x2cad('0x138')][_0x2cad('0xb6')][_0x2cad('0xeb')]('Users')['me'],_0x25256c=this[_0x2cad('0x45')]['getSuggestionCallback']('insertion',_0x5e50e8,_0x2cad('0xfa'));for(const _0xdaf126 of this[_0x2cad('0x38')]())if(_0xdaf126[_0x2cad('0xf2')]['id']==_0x2b5624['id']&&'insertion'==_0xdaf126[_0x2cad('0x8c')]&&_0xdaf126[_0x2cad('0xaf')]==_0x5e50e8&&(_0x25256c(_0xdaf126['getRanges'](),_0x349088)||_0x25256c(_0x349088,_0xdaf126['getRanges']()))){for(const _0x2cd9ce of _0x349088)_0xdaf126['addRange'](_0x2cd9ce);return _0xdaf126;}if(this[_0x2cad('0x13')])for(const _0x353f54 of _0x349088)for(const {suggestion:_0x487efb,meta:_0x4819fd}of this[_0x2cad('0x2d')](_0x353f54,_0x2cad('0xa8'))){if(!_0x4819fd[_0x2cad('0x54')])continue;let _0x4ada52=!0x0;for(const _0x3c7a72 of _0x487efb[_0x2cad('0x110')]())for(const _0x2303b6 of _0x349088)if(!_0x3c7a72[_0x2cad('0x88')](_0x2303b6)){_0x4ada52=!0x1;break;}if(_0x4ada52)return _0x487efb;}const _0x33b12b=_0x103e67(),_0x31012f=_0x2b5624['id'],_0x3a6f90=_0x2cad('0xf6')+_0x5e50e8,_0x27bad0=this['_setSuggestionData']({'id':_0x33b12b,'type':_0x3a6f90,'createdAt':new Date(),'authorId':_0x31012f,'attributes':_0x46e423});for(const _0x2079f9 of _0x349088)this[_0x2cad('0x6d')](_0x3a6f90,_0x33b12b,_0x31012f,_0x2079f9,_0x519345['getMultiRangeId']());return _0x27bad0;}['markInlineFormat'](_0x2ded73,_0xa2b2ea,_0x587b7c=null,_0x478f00={}){if(_0x587b7c=_0x587b7c||$t(_0xa2b2ea),_0x2ded73['isCollapsed'])return null;if(_0x2cad('0x10')===this[_0x2cad('0x74')]){const _0x30db27=this[_0x2cad('0x45')][_0x2cad('0x81')](_0x2cad('0xb4'),_0x587b7c,_0x2cad('0xd4'));return this[_0x2cad('0x5d')](()=>_0x30db27([_0x2ded73],_0xa2b2ea,_0x478f00)),null;}const _0x3f9fd3=this[_0x2cad('0x138')][_0x2cad('0xb6')][_0x2cad('0xeb')](_0x2cad('0xb9'))['me'],_0x53fe26=[];if(_0x2cad('0xa9')!==this[_0x2cad('0x74')])for(const {suggestion:_0xaa4251,meta:_0x330e72}of this[_0x2cad('0x2d')](_0x2ded73,'insertion'))_0x330e72[_0x2cad('0x54')]&&!_0x330e72[_0x2cad('0x82')]&&_0x53fe26[_0x2cad('0xa3')](..._0xaa4251[_0x2cad('0x110')]());const _0x517353=function(_0x49e6b5,_0x3b0122){const _0x23c56c=[];for(const _0x4aa7f4 of _0x3b0122){const _0x552786=_0x49e6b5[_0x2cad('0xe0')](_0x4aa7f4);_0x552786&&_0x23c56c[_0x2cad('0xa3')](_0x552786);}return _0x23c56c;}(_0x2ded73,_0x53fe26),_0x4339a6=function(_0x341b2d,_0x10ec2f){const _0x2b1d78=[_0x341b2d];for(const _0x18e1dc of _0x10ec2f){let _0x574928=0x0;for(;_0x574928<_0x2b1d78[_0x2cad('0xf5')];){const _0x58c18b=_0x2b1d78[_0x574928][_0x2cad('0xed')](_0x18e1dc);_0x2b1d78['splice'](_0x574928,0x1,..._0x58c18b),_0x574928+=_0x58c18b['length'];}}return _0x2b1d78;}(_0x2ded73,_0x53fe26);_0x517353[_0x2cad('0xf5')]&&this[_0x2cad('0x25')][_0x2cad('0x101')](()=>{for(const _0x583103 of _0x517353){const _0x5ecb88=this['_suggestionFactory'][_0x2cad('0x81')](_0x2cad('0xb4'),_0x587b7c,_0x2cad('0xd4'));this['forceDefaultExecution'](()=>_0x5ecb88([_0x583103],_0xa2b2ea,_0x478f00));}});for(const _0x59dfc5 of _0x4339a6){let _0x50da7e=null,_0x26b165=_0x59dfc5['start'],_0x13b8fd=_0x59dfc5['end'];for(const {suggestion:_0x52342b,meta:_0x3a2244}of this[_0x2cad('0x2d')](_0x59dfc5,_0x2cad('0xb4'))){if(!_0x3a2244['isOwn'])continue;if(_0x52342b[_0x2cad('0xaf')]!=_0x587b7c)continue;const _0x5a2961=_0x52342b[_0x2cad('0x63')]();if(_0x5a2961[_0x2cad('0x88')](_0x59dfc5,!0x0))return null;_0x26b165=_0x26b165[_0x2cad('0x44')](_0x5a2961[_0x2cad('0x103')])?_0x26b165:_0x5a2961['start'],_0x13b8fd=_0x13b8fd['isAfter'](_0x5a2961[_0x2cad('0x2f')])?_0x13b8fd:_0x5a2961[_0x2cad('0x2f')],_0x50da7e?_0x5a2961[_0x2cad('0x103')][_0x2cad('0x44')](_0x50da7e[_0x2cad('0x63')]()[_0x2cad('0x103')])?(_0x50da7e['removeMarkers'](),_0x50da7e=_0x52342b):_0x52342b[_0x2cad('0x76')]():_0x50da7e=_0x52342b;}const _0x1a5bce=this[_0x2cad('0x25')]['createRange'](_0x26b165,_0x13b8fd);if(_0x50da7e)this[_0x2cad('0xa')](_0x50da7e,_0x1a5bce);else{const _0x25c90d=_0x103e67(),_0x4bdafa=_0x3f9fd3['id'];this[_0x2cad('0x3a')]({'id':_0x25c90d,'type':_0x2cad('0x117')+_0x587b7c,'data':_0xa2b2ea,'createdAt':new Date(),'authorId':_0x4bdafa,'attributes':_0x478f00}),this['_addSuggestionMarker'](_0x2cad('0x117')+_0x587b7c,_0x25c90d,_0x4bdafa,_0x1a5bce);}}return null;}[_0x2cad('0x34')](_0x224f7e,_0x463fcd,_0x4fa7da=[],_0x4b3318=null,_0x2f553b={}){_0x463fcd['formatGroupId']||(_0x463fcd[_0x2cad('0x1d')]=_0x463fcd[_0x2cad('0x12a')]),_0x463fcd[_0x2cad('0x108')]=_0x224f7e['is'](_0x2cad('0x31')),_0x4b3318=_0x4b3318||$t(_0x463fcd);const _0x5bdc95=_0x4fa7da['map'](_0x53f2c1=>Rt(_0x53f2c1,this[_0x2cad('0x25')])),_0x5a2c51=_0x224f7e['is'](_0x2cad('0x31'))?_0x224f7e:Rt(_0x224f7e,this[_0x2cad('0x25')]);if('never'===this['_trackFormatChanges']){const _0x1243ac=this[_0x2cad('0x45')]['getSuggestionCallback'](_0x2cad('0x137'),_0x4b3318,_0x2cad('0xd4'));return this[_0x2cad('0x5d')](()=>_0x1243ac([_0x5a2c51],_0x463fcd,_0x2f553b)),null;}_0x5bdc95[_0x2cad('0xa3')](_0x5a2c51);let _0x6ea91f=!0x0;for(const _0x4c1768 of _0x5bdc95)if(!this['_rangeIsInLocalUserInsertion'](_0x4c1768)){_0x6ea91f=!0x1;break;}if(_0x6ea91f&&_0x2cad('0xa9')!==this[_0x2cad('0x74')]){const _0x49c6a7=this['_suggestionFactory']['getSuggestionCallback'](_0x2cad('0x137'),_0x4b3318,'accept');return this[_0x2cad('0x5d')](()=>_0x49c6a7([_0x5a2c51],_0x463fcd,_0x2f553b)),null;}let _0xd2616c=null,_0x37adba=_0x5a2c51[_0x2cad('0x103')],_0x3110a3=_0x5a2c51[_0x2cad('0x2f')];for(const {suggestion:_0x5e72fe,meta:_0xf7ec5c}of this[_0x2cad('0x2d')](_0x5a2c51,_0x2cad('0x137'))){if(!_0xf7ec5c[_0x2cad('0x54')]||_0xf7ec5c[_0x2cad('0x10c')]||_0xf7ec5c[_0x2cad('0xde')]||_0xf7ec5c['isInsideObject'])continue;if(_0x5e72fe[_0x2cad('0xc')]['formatGroupId']!=_0x463fcd['formatGroupId'])continue;const _0x342d31=_0x5e72fe[_0x2cad('0x63')]();if(_0x5e72fe['subType']==_0x4b3318){if(_0x342d31[_0x2cad('0x88')](_0x5a2c51,!0x0))return null;_0x37adba=_0x37adba[_0x2cad('0x44')](_0x342d31[_0x2cad('0x103')])?_0x37adba:_0x342d31[_0x2cad('0x103')],_0x3110a3=_0x3110a3[_0x2cad('0x104')](_0x342d31['end'])?_0x3110a3:_0x342d31['end'],_0xd2616c?_0x342d31[_0x2cad('0x103')]['isBefore'](_0xd2616c['getFirstRange']()['start'])?(_0xd2616c[_0x2cad('0x76')](),_0xd2616c=_0x5e72fe):_0x5e72fe[_0x2cad('0x76')]():_0xd2616c=_0x5e72fe;}else{const _0x2c6a07=_0x5a2c51[_0x2cad('0xe0')](_0x342d31);this['_cutOutSuggestionMarker'](_0x5e72fe,_0x2c6a07);}}const _0x29ace2=this['editor'][_0x2cad('0xb6')]['get'](_0x2cad('0xb9'))['me'],_0x376d3e=_0x103e67(),_0x5743d5=_0x29ace2['id'];if(_0xd2616c)return this[_0x2cad('0xa')](_0xd2616c,this['_model']['createRange'](_0x37adba,_0x3110a3)),_0xd2616c;{const _0xa7092b=this[_0x2cad('0x3a')]({'id':_0x376d3e,'type':_0x2cad('0xf3')+_0x4b3318,'data':_0x463fcd,'createdAt':new Date(),'authorId':_0x5743d5,'attributes':_0x2f553b});return this['_addSuggestionMarker'](_0x2cad('0xf3')+_0x4b3318,_0x376d3e,_0x5743d5,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x37adba,_0x3110a3)),_0xa7092b;}}[_0x2cad('0x13a')](_0x2b6f5a,_0x10660e,_0x588eb4=[],_0x427763=null,_0x32aa7b={}){_0x10660e[_0x2cad('0x1d')]||(_0x10660e[_0x2cad('0x1d')]=_0x10660e[_0x2cad('0x12a')]);const _0x2694d3=_0x2b6f5a[0x0];_0x10660e[_0x2cad('0x108')]=_0x2694d3['is'](_0x2cad('0x31')),_0x427763=_0x427763||$t(_0x10660e);const _0x1f92e1=_0x588eb4[_0x2cad('0x10b')](_0x329f97=>Rt(_0x329f97,this[_0x2cad('0x25')])),_0x354b3d=_0x2694d3['is'](_0x2cad('0x31'))?_0x2b6f5a:_0x2b6f5a[_0x2cad('0x10b')](_0x203ef6=>Rt(_0x203ef6,this[_0x2cad('0x25')]));if(_0x2cad('0x10')===this[_0x2cad('0x74')]){const _0xc3d982=this[_0x2cad('0x45')][_0x2cad('0x81')](_0x2cad('0x137'),_0x427763,_0x2cad('0xd4'));return this[_0x2cad('0x5d')](()=>_0xc3d982(_0x354b3d,_0x10660e,_0x32aa7b)),null;}_0x1f92e1[_0x2cad('0xa3')](..._0x354b3d);let _0x8d07a6=!0x0;for(const _0xcbac6b of _0x1f92e1)if(!this[_0x2cad('0x2')](_0xcbac6b)){_0x8d07a6=!0x1;break;}if(_0x8d07a6&&_0x2cad('0xa9')!==this['_trackFormatChanges']){const _0x4c7f53=this[_0x2cad('0x45')]['getSuggestionCallback'](_0x2cad('0x137'),_0x427763,_0x2cad('0xd4'));return this['forceDefaultExecution'](()=>_0x4c7f53(_0x354b3d,_0x10660e,_0x32aa7b)),null;}const _0x116e76=this[_0x2cad('0x138')][_0x2cad('0xb6')][_0x2cad('0xeb')](_0x2cad('0xb9'))['me'];for(const _0x24af8a of this[_0x2cad('0x38')]()){if(_0x24af8a[_0x2cad('0xf2')]['id']!=_0x116e76['id'])continue;if('formatBlock'!=_0x24af8a[_0x2cad('0x8c')]||_0x24af8a['data'][_0x2cad('0x1d')]!=_0x10660e[_0x2cad('0x1d')])continue;const _0x1769c9=_0x24af8a['subType']==_0x427763;for(let _0x22968e=0x0;_0x22968e<_0x354b3d[_0x2cad('0xf5')];_0x22968e++){const _0xae0785=_0x354b3d[_0x22968e];for(const _0x352170 of _0x24af8a[_0x2cad('0x124')]()){const _0x28368f=_0x352170[_0x2cad('0x85')]();if(_0xae0785[_0x2cad('0xc7')](_0x28368f)){_0x1769c9?(_0x354b3d[_0x2cad('0x58')](_0x22968e,0x1),_0x22968e--):_0x24af8a[_0x2cad('0xc4')](_0x352170[_0x2cad('0x2b')]);break;}}}}if(0x0==_0x354b3d[_0x2cad('0xf5')])return null;const _0x43544d=this[_0x2cad('0x45')][_0x2cad('0x81')]('formatBlock',_0x427763,'join');for(const _0x552496 of this[_0x2cad('0x38')]())if(_0x552496[_0x2cad('0xf2')]['id']==_0x116e76['id']&&'formatBlock'==_0x552496[_0x2cad('0x8c')]&&_0x552496[_0x2cad('0xc')][_0x2cad('0x1d')]==_0x10660e['formatGroupId']&&_0x552496['subType']==_0x427763&&(_0x43544d(_0x552496[_0x2cad('0x110')](),_0x354b3d)||_0x43544d(_0x354b3d,_0x552496[_0x2cad('0x110')]()))){for(const _0x24da6a of _0x354b3d)_0x552496['addRange'](_0x24da6a);return _0x552496;}const _0x13832c=_0x103e67(),_0x120ae1=_0x116e76['id'],_0xffa951='formatBlock:'+_0x427763,_0x32cb7f=this[_0x2cad('0x3a')]({'id':_0x13832c,'type':_0xffa951,'data':_0x10660e,'createdAt':new Date(),'authorId':_0x120ae1,'attributes':_0x32aa7b});for(const _0xe75fab of _0x354b3d)this[_0x2cad('0x6d')](_0xffa951,_0x13832c,_0x120ae1,_0xe75fab,_0x519345[_0x2cad('0x52')]());return _0x32cb7f;}[_0x2cad('0xbe')](_0x3903c9,_0x2e3c7b=null,_0x2827b1={}){if(_0x3903c9[_0x2cad('0x19')])return null;const _0x645765=this['editor'][_0x2cad('0xb6')][_0x2cad('0xeb')](_0x2cad('0xb9'))['me'],_0x692ff=new _0x52da85(_0x3903c9[_0x2cad('0x103')],_0x3903c9[_0x2cad('0x2f')]);for(const {suggestion:_0x447c48,meta:_0x1b4103}of this[_0x2cad('0x2d')](_0x692ff,_0x2cad('0xa8')))if(_0x1b4103[_0x2cad('0x54')]&&!_0x1b4103['isNextTo']){if(_0x447c48[_0x2cad('0xb8')]){const _0x547b05=_0x447c48[_0x2cad('0x110')]()[_0x2cad('0x14')](_0x5ec524=>_0x2cad('0x129')!=_0x5ec524[_0x2cad('0x125')][_0x2cad('0xdb')]);_0x547b05[_0x2cad('0xb2')](_0x5e15ae=>_0x692ff[_0x2cad('0x88')](_0x5e15ae,!0x0))&&_0x447c48['discard']();if(_0x547b05[_0x2cad('0x8e')](_0x4a7105=>_0x4a7105[_0x2cad('0x88')](_0x692ff,!0x0))){const _0x5b17b6=this[_0x2cad('0x45')][_0x2cad('0x81')](_0x2cad('0x86'),_0x2e3c7b,_0x2cad('0xd4'));return this[_0x2cad('0x5d')](()=>_0x5b17b6([_0x692ff],null,_0x2827b1)),null;}}else{const _0x10890c=_0x692ff['getIntersection'](_0x447c48[_0x2cad('0x63')]());null!==_0x10890c&&_0x447c48[_0x2cad('0xdf')]([_0x10890c],null,_0x2827b1);}}if(_0x692ff['detach'](),_0x692ff['isCollapsed']||'$graveyard'==_0x692ff[_0x2cad('0x125')][_0x2cad('0xdb')])return null;let _0x3bed42=null,_0x176186=_0x692ff[_0x2cad('0x103')],_0x266c86=_0x692ff[_0x2cad('0x2f')];for(const {suggestion:_0x12d422,meta:_0x4e4078}of this[_0x2cad('0x2d')](_0x692ff,_0x2cad('0x86')))if(_0x4e4078[_0x2cad('0x54')]){if(_0x12d422[_0x2cad('0xb8')]&&this[_0x2cad('0x13')]){let _0x444af3=!0x0;for(const _0x326ea4 of _0x12d422[_0x2cad('0x110')]()){if(_0x326ea4[_0x2cad('0x88')](_0x692ff,!0x0))return _0x12d422;_0x692ff[_0x2cad('0x88')](_0x326ea4)||(_0x444af3=!0x1);}_0x444af3&&_0x12d422['discard']();}else{const _0x380870=_0x12d422['getFirstRange']();if(_0x380870[_0x2cad('0x88')](_0x692ff,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x4e4078['containsRangeInObject'])continue;return _0x12d422;}_0x176186=_0x176186[_0x2cad('0x44')](_0x380870['start'])?_0x176186:_0x380870[_0x2cad('0x103')],_0x266c86=_0x266c86[_0x2cad('0x104')](_0x380870[_0x2cad('0x2f')])?_0x266c86:_0x380870[_0x2cad('0x2f')],_0x3bed42?_0x380870[_0x2cad('0x103')][_0x2cad('0x44')](_0x3bed42['getFirstRange']()[_0x2cad('0x103')])?(_0x3bed42[_0x2cad('0x76')](),_0x3bed42=_0x12d422):_0x12d422['removeMarkers']():_0x3bed42=_0x12d422;}}if(_0x3bed42)return this['_setSuggestionRange'](_0x3bed42,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x176186,_0x266c86)),_0x3bed42;{const _0xe10654=_0x103e67(),_0x269015=this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x176186,_0x266c86),_0x1eefab=_0x645765['id'],_0x4c0995=_0x2e3c7b?_0x2cad('0xc5')+_0x2e3c7b:_0x2cad('0x86'),_0x3ca4a7=this['_setSuggestionData']({'id':_0xe10654,'type':_0x4c0995,'createdAt':new Date(),'authorId':_0x1eefab,'attributes':_0x2827b1});return this[_0x2cad('0x6d')](_0x4c0995,_0xe10654,_0x1eefab,_0x269015),_0x3ca4a7;}}[_0x2cad('0x8d')](_0x2c28ee,_0x31f2b6=_0x2cad('0x36'),_0x4482f8={}){const _0x1ba7d3=this[_0x2cad('0x138')][_0x2cad('0xb6')][_0x2cad('0xeb')](_0x2cad('0xb9'))['me'],_0x299937=_0x2c28ee[_0x2cad('0x10b')](_0x494cd4=>new _0x52da85(_0x494cd4[_0x2cad('0x103')],_0x494cd4[_0x2cad('0x2f')])),_0x20812a=new Set();for(const _0x1ea947 of _0x299937)for(const {suggestion:_0x5b758d,meta:_0x428ebb}of this[_0x2cad('0x2d')](_0x1ea947,'insertion'))_0x428ebb[_0x2cad('0x54')]&&!_0x428ebb[_0x2cad('0x10c')]&&_0x20812a[_0x2cad('0x64')](_0x5b758d);for(const _0x5245f2 of _0x20812a)if(_0x5245f2[_0x2cad('0xb8')]){const _0x47d2d2=_0x5245f2['getRanges']();(!_0x5245f2[_0x2cad('0xa4')]||!_0x5245f2[_0x2cad('0xa4')][_0x2cad('0x56')])&&(_0x47d2d2[_0x2cad('0xb2')](_0x2737f5=>_0x299937[_0x2cad('0x8e')](_0x35e6b9=>_0x35e6b9['containsRange'](_0x2737f5,!0x0)))&&_0x5245f2[_0x2cad('0x6f')]());if(_0x299937['every'](_0x32bfbc=>_0x47d2d2[_0x2cad('0x8e')](_0x5b5d15=>_0x5b5d15[_0x2cad('0x88')](_0x32bfbc,!0x0)))){const _0x1714a4=this[_0x2cad('0x45')][_0x2cad('0x81')](_0x2cad('0x86'),_0x31f2b6,_0x2cad('0xd4'));return this['forceDefaultExecution'](()=>_0x1714a4(_0x2c28ee,null,_0x4482f8)),null;}}else{const _0x3336f9=_0x5245f2[_0x2cad('0x63')]();_0x299937['some'](_0x1a7535=>_0x1a7535['containsRange'](_0x3336f9,!0x0))&&_0x5245f2[_0x2cad('0x6f')]();if(_0x299937['every'](_0x5758fc=>_0x3336f9[_0x2cad('0x88')](_0x5758fc,!0x0))){const _0x81a6d6=this['_suggestionFactory'][_0x2cad('0x81')](_0x2cad('0x86'),_0x31f2b6,'accept');return this['forceDefaultExecution'](()=>_0x81a6d6(_0x299937,null,_0x4482f8)),null;}}const _0x408c98=this['_suggestionFactory'][_0x2cad('0x81')](_0x2cad('0x86'),_0x31f2b6,_0x2cad('0xfa'));let _0x5cac77=null;for(const _0x3889cc of this[_0x2cad('0x38')]())if(_0x3889cc['author']['id']==_0x1ba7d3['id']&&_0x3889cc[_0x2cad('0x13f')]&&_0x2cad('0x86')==_0x3889cc[_0x2cad('0x8c')]&&_0x3889cc[_0x2cad('0xaf')]==_0x31f2b6&&(_0x408c98(_0x3889cc[_0x2cad('0x110')](),_0x299937)||_0x408c98(_0x299937,_0x3889cc[_0x2cad('0x110')]()))){if(_0x5cac77){if(_0x3889cc[_0x2cad('0xe2')]&&_0x3889cc[_0x2cad('0xe2')][_0x2cad('0xf5')])continue;for(const _0x3b5400 of _0x3889cc[_0x2cad('0x110')]())_0x5cac77[_0x2cad('0x70')](_0x3b5400)||_0x5cac77[_0x2cad('0x12')](_0x3b5400);_0x3889cc[_0x2cad('0x76')]();}else{_0x5cac77=_0x3889cc;for(const _0x49d3b7 of _0x299937)_0x3889cc[_0x2cad('0x70')](_0x49d3b7)||_0x3889cc[_0x2cad('0x12')](_0x49d3b7);}}if(_0x5cac77)return _0x5cac77;_0x20812a[_0x2cad('0x130')]();for(const _0x24945f of _0x299937)for(const {suggestion:_0x2af473,meta:_0x324c33}of this[_0x2cad('0x2d')](_0x24945f,_0x2cad('0x86')))_0x324c33[_0x2cad('0x54')]&&_0x20812a[_0x2cad('0x64')](_0x2af473);for(const _0x43ee20 of _0x20812a){const _0x21bc79=_0x43ee20['getRanges']();if(!_0x4482f8||!_0x4482f8[_0x2cad('0x56')]){if(_0x299937['every'](_0xd21fd3=>_0x21bc79[_0x2cad('0x8e')](_0x260cde=>_0x260cde[_0x2cad('0x88')](_0xd21fd3,!0x0))))return _0x43ee20;}(!_0x43ee20[_0x2cad('0xa4')]||!_0x43ee20[_0x2cad('0xa4')]['skipNestingCheck'])&&(_0x21bc79[_0x2cad('0xb2')](_0x2ca21c=>_0x299937[_0x2cad('0x8e')](_0x25173d=>_0x25173d['containsRange'](_0x2ca21c,!0x0)))&&_0x43ee20[_0x2cad('0x6f')]());}const _0x19ccd0=_0x103e67(),_0x44e398=_0x1ba7d3['id'],_0x4eda0b='deletion:'+_0x31f2b6,_0x36f6fb=this[_0x2cad('0x3a')]({'id':_0x19ccd0,'type':_0x4eda0b,'createdAt':new Date(),'authorId':_0x44e398,'attributes':_0x4482f8});for(const _0x3a0863 of _0x299937)_0x3a0863[_0x2cad('0xee')](),_0x3a0863[_0x2cad('0x19')]||_0x2cad('0x129')==_0x3a0863['root'][_0x2cad('0xdb')]||this['_addSuggestionMarker'](_0x4eda0b,_0x19ccd0,_0x44e398,_0x3a0863,_0x519345['getMultiRangeId']());return _0x36f6fb;}[_0x2cad('0xa')](_0x2ca3c2,_0x312906){const _0x152e81=_0x2ca3c2[_0x2cad('0xef')]();this[_0x2cad('0x25')][_0x2cad('0x101')](_0x34555f=>{_0x34555f[_0x2cad('0x4a')](_0x152e81,{'range':_0x312906});});}[_0x2cad('0x115')](_0x1c0075){const _0x5189c6=_0x1c0075['id'],_0x4cf0a2=this['editor'][_0x2cad('0xe4')][_0x2cad('0xeb')](_0x2cad('0x132'));this['_commentsRepository'][_0x2cad('0x97')](_0x5189c6)||this['_commentsRepository'][_0x2cad('0x23')]({'channelId':_0x4cf0a2,'threadId':_0x5189c6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4b9e5e=this[_0x2cad('0xd7')]['getCommentThread'](_0x5189c6);_0x4b9e5e[_0x2cad('0xec')](_0x2cad('0x105')),_0x4b9e5e[_0x2cad('0x105')]=!0x1,_0x1c0075[_0x2cad('0xe2')]=_0x4b9e5e;}[_0x2cad('0x119')](_0x4770dc,_0x1c86e9,_0xab437b,_0x41f48e){if(_0x4770dc[_0x2cad('0x8c')]!=_0x1c86e9||_0x4770dc['subType']!=_0xab437b||_0x4770dc[_0x2cad('0x1c')]['id']!=_0x41f48e)throw this[_0x2cad('0x138')][_0x2cad('0x12c')]('track-changes-suggestion-data-mismatch'),new _0x312a50(_0x2cad('0xd5'),this);}[_0x2cad('0x4b')](_0x568a97,_0x44dcb4){const _0x26186f=_0x568a97[_0x2cad('0x63')]();if(_0x44dcb4[_0x2cad('0xc7')](_0x26186f))_0x568a97[_0x2cad('0x76')]();else{if(_0x26186f[_0x2cad('0x88')](_0x44dcb4)){const _0x5032da=this['_model']['createPositionAt'](_0x44dcb4[_0x2cad('0x103')]['nodeBefore'],_0x2cad('0x2f'));this[_0x2cad('0xa')](_0x568a97,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x26186f['start'],_0x5032da));const _0x7361a2=_0x103e67(),_0x4c573b=_0x568a97[_0x2cad('0x1c')]['id'],_0x26d3a8=_0x568a97[_0x2cad('0x8c')]+':'+_0x568a97[_0x2cad('0xaf')];this[_0x2cad('0x3a')]({'id':_0x7361a2,'type':_0x26d3a8,'createdAt':new Date(),'authorId':_0x4c573b,'data':_0x568a97[_0x2cad('0xc')],'attributes':_0x568a97[_0x2cad('0xa4')]});const _0x220cb2=this[_0x2cad('0x25')][_0x2cad('0x98')](_0x44dcb4[_0x2cad('0x2f')]['parent'],_0x2cad('0x61')),_0x4bf761=this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x220cb2,_0x26186f['end']);this[_0x2cad('0x6d')](_0x26d3a8,_0x7361a2,_0x4c573b,_0x4bf761);}else{if(_0x26186f[_0x2cad('0x7b')](_0x44dcb4[_0x2cad('0x103')])){const _0x2b98be=this[_0x2cad('0x25')][_0x2cad('0x98')](_0x44dcb4['start']['nodeBefore'],_0x2cad('0x2f'));this['_setSuggestionRange'](_0x568a97,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x26186f['start'],_0x2b98be));}else{const _0x10f548=this['_model'][_0x2cad('0x98')](_0x44dcb4[_0x2cad('0x2f')]['parent'],'after');this['_setSuggestionRange'](_0x568a97,this['_model'][_0x2cad('0x13b')](_0x10f548,_0x26186f[_0x2cad('0x2f')]));}}}}[_0x2cad('0x2')](_0x2263eb){for(const {suggestion:_0x468fbc,meta:_0x1b30a8}of this[_0x2cad('0x2d')](_0x2263eb,_0x2cad('0xa8'))){if(!_0x1b30a8[_0x2cad('0x54')])continue;const _0x185a74=_0x468fbc[_0x2cad('0x110')]();for(const _0x41d024 of _0x185a74)if(!_0x2263eb['getDifference'](_0x41d024)[_0x2cad('0xf5')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2ba749){const _0x48cd86=this['editor'][_0x2cad('0xb6')]['get'](_0x2cad('0xb9'))[_0x2cad('0x5a')](_0x2ba749);if(!_0x48cd86)throw new _0x312a50(_0x2cad('0x89'),this);return _0x48cd86;}['_getExternalAuthor'](_0x2fb261){const _0x50e547=this[_0x2cad('0x138')]['plugins'][_0x2cad('0xeb')](_0x2cad('0xb9')),_0x3fbefc=_0x1ad6c7('external:'+_0x2fb261),_0x1d471b=_0x50e547[_0x2cad('0x5a')](_0x3fbefc);return _0x1d471b||_0x50e547[_0x2cad('0x139')]({'id':_0x3fbefc,'name':_0x2fb261});}[_0x2cad('0xcf')](_0x1a337a,_0xf1ad9e,_0x206999,_0x36717b,_0x429910){const _0x22eb54=this[_0x2cad('0x9b')](_0x36717b),_0x41e366=this[_0x2cad('0x45')][_0x2cad('0x102')](_0x1a337a,_0xf1ad9e,_0x206999,_0x22eb54,_0x429910,_0x11d575=>this['_updateSuggestionData'](_0x206999,{'attributes':_0x11d575}));return this['listenTo'](_0x41e366,_0x2cad('0xd4'),()=>{this[_0x2cad('0x39')](_0x206999,{'state':_0x2cad('0x96')});},{'priority':_0x2cad('0xaa')}),this[_0x2cad('0xac')](_0x41e366,_0x2cad('0x6f'),()=>{this[_0x2cad('0x39')](_0x206999,{'state':_0x2cad('0x2c')});},{'priority':'high'}),this[_0x2cad('0xc0')][_0x2cad('0x37')](_0x206999,_0x41e366),this[_0x2cad('0x5f')][_0x2cad('0x37')](_0x41e366,_0x2cad('0x92')),_0x41e366;}[_0x2cad('0xad')](_0x3526dd){const _0x4b0fb3=_0x3526dd[_0x2cad('0xd2')](':');return{'group':_0x4b0fb3[0x0],'type':_0x4b0fb3[0x1],'subType':_0x4b0fb3[_0x2cad('0xf5')]>=0x5?_0x4b0fb3[0x2]:null,'id':_0x4b0fb3[_0x2cad('0xf5')]<0x5?_0x4b0fb3[0x2]:_0x4b0fb3[0x3],'authorId':_0x4b0fb3[_0x2cad('0xf5')]<0x5?_0x4b0fb3[0x3]:_0x4b0fb3[0x4],'markerCount':0x6==_0x4b0fb3['length']?_0x4b0fb3[0x5]:null};}['_breakSuggestionMarker'](_0x5c0b00,_0xe61c41,_0x202745){const _0x19768a=_0x5c0b00[_0x2cad('0x63')](),_0x1c564d=_0x19768a[_0x2cad('0x103')],_0x198a05=_0x19768a[_0x2cad('0x2f')];this[_0x2cad('0xa')](_0x5c0b00,this['_model'][_0x2cad('0x13b')](_0x1c564d,_0xe61c41));const _0x3534c3=_0x103e67(),_0x4a7402=_0x5c0b00[_0x2cad('0x1c')]['id'],_0x3de8d7=_0x5c0b00['type']+(_0x5c0b00[_0x2cad('0xaf')]?':'+_0x5c0b00['subType']:'');this[_0x2cad('0x3a')]({'id':_0x3534c3,'type':_0x3de8d7,'createdAt':new Date(),'authorId':_0x4a7402,'originalSuggestionId':_0x5c0b00['id'],'attributes':_0x5c0b00[_0x2cad('0xa4')],'data':_0x5c0b00[_0x2cad('0xc')]}),'formatBlock'==_0x5c0b00['type']&&(_0x202745=this[_0x2cad('0x25')][_0x2cad('0x12f')](_0x202745['parent'])),this['_addSuggestionMarker'](_0x3de8d7,_0x3534c3,_0x4a7402,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x202745,_0x198a05));}[_0x2cad('0x2d')](_0x212b72,_0x5c27e3=null){const _0x1b816e=[],_0x4d2b95=this['_model'][_0x2cad('0x112')],_0x3647ad=this[_0x2cad('0x138')][_0x2cad('0xb6')]['get'](_0x2cad('0xb9'))['me'];for(const _0xfd4a55 of this[_0x2cad('0x38')]())if(_0xfd4a55[_0x2cad('0x13f')]&&(!_0x5c27e3||_0xfd4a55[_0x2cad('0x8c')]==_0x5c27e3))for(const _0x25750a of _0xfd4a55[_0x2cad('0x110')]()){const _0x109935=_0x212b72[_0x2cad('0x103')][_0x2cad('0xc7')](_0x25750a['end'])||_0x212b72['end'][_0x2cad('0xc7')](_0x25750a[_0x2cad('0x103')]);if(_0x109935||_0x212b72['getIntersection'](_0x25750a)){const _0x5bc758=_0x212b72[_0x2cad('0x88')](_0x25750a)&&Bt(_0x4d2b95,_0x25750a['start'],_0x212b72),_0x5558d0=_0x25750a[_0x2cad('0x88')](_0x212b72)&&Bt(_0x4d2b95,_0x212b72[_0x2cad('0x103')],_0x25750a);_0x1b816e[_0x2cad('0xa3')]({'suggestion':_0xfd4a55,'meta':{'isOwn':_0x3647ad==_0xfd4a55[_0x2cad('0xf2')],'isNextTo':_0x109935,'isInsideObject':_0x5bc758,'containsRangeInObject':_0x5558d0}});break;}}return _0x1b816e;}[_0x2cad('0x6d')](_0x5d94d3,_0x1bb7cf,_0x17929e,_0x4ba84a,_0xd04f8d){this[_0x2cad('0x25')]['change'](_0x735c67=>{let _0xd9060e=_0x2cad('0x109')+_0x5d94d3+':'+_0x1bb7cf+':'+_0x17929e;_0xd04f8d&&(_0xd9060e=_0xd9060e+':'+_0xd04f8d),_0x735c67[_0x2cad('0xc9')](_0xd9060e,{'range':_0x4ba84a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2cad('0x13c')](_0x1e83dc){const _0x199e19=_0x1e83dc[_0x2cad('0xe8')],_0x5082f7=_0x1e83dc[_0x2cad('0x2a')];_0x1e83dc[_0x2cad('0xe8')]=null,null!=_0x199e19&&(_0x199e19[_0x2cad('0x2a')]=null),_0x1e83dc['next']=null,null!=_0x5082f7&&(_0x5082f7[_0x2cad('0xe8')]=null),_0x2cad('0x90')==this[_0x2cad('0x5f')]['get'](_0x1e83dc)&&(this[_0x2cad('0x5f')]['set'](_0x1e83dc,_0x2cad('0x60')),this[_0x2cad('0x11b')](_0x2cad('0x11a'),_0x1e83dc,_0x199e19,_0x5082f7));}[_0x2cad('0x3a')](_0x33fa90){const _0x3eb057=_0x33fa90['id'],_0x3c6789=this[_0x2cad('0x2e')](_0x33fa90);if(this[_0x2cad('0xf8')]&&this[_0x2cad('0xf8')]['addSuggestion']){const _0x3671e1=this[_0x2cad('0x138')][_0x2cad('0xb6')]['get'](_0x2cad('0x3c')),_0x41d025=_0x3c6789[_0x2cad('0x59')],_0x268dd6=_0x3c6789['subType']?_0x3c6789['type']+':'+_0x3c6789['subType']:_0x3c6789[_0x2cad('0x8c')],_0x4abcd6=this[_0x2cad('0x138')][_0x2cad('0x106')],_0x1c4b40=_0x3671e1[_0x2cad('0x64')](_0x2c44d2(_0x4abcd6,_0x2cad('0x5e'))),_0x218ce4={'id':_0x3eb057,'type':_0x268dd6,'hasComments':_0x41d025,'data':_0x33fa90[_0x2cad('0xc')]||null,'originalSuggestionId':_0x33fa90[_0x2cad('0x40')]||null,'attributes':_0x3c6789[_0x2cad('0xa4')]};this['_adapter'][_0x2cad('0x10d')](_0x218ce4)[_0x2cad('0x75')](_0x5ea3c6=>{_0x3c6789[_0x2cad('0x21')]=!0x0,_0x3671e1[_0x2cad('0x77')](_0x1c4b40),_0x5ea3c6&&_0x5ea3c6[_0x2cad('0x12d')]&&(this['_suggestions'][_0x2cad('0xeb')](_0x3eb057)['createdAt']=_0x5ea3c6['createdAt']);})[_0x2cad('0xbc')](_0x563a7c=>{throw _0x23e72b('error-saving-suggestion-data-suggestion-discarded'),this[_0x2cad('0x138')][_0x2cad('0x24')][_0x2cad('0xbd')]({'isUndoable':!0x1},()=>{_0x3c6789['discard']();}),_0x3c6789[_0x2cad('0x127')](),this['_suggestions'][_0x2cad('0x94')](_0x3c6789['id']),this['_suggestionState']['delete'](_0x3c6789),_0x563a7c;});}return _0x3c6789;}[_0x2cad('0x39')](_0x33b370,_0x8a4345){const _0x242663=this[_0x2cad('0x138')][_0x2cad('0xb6')][_0x2cad('0xeb')](_0x2cad('0x3c')),_0x40495d=this[_0x2cad('0x12b')](_0x33b370);if(this[_0x2cad('0xf8')]&&this[_0x2cad('0xf8')][_0x2cad('0x51')]){if(_0x40495d['_saved']){const _0x26f2a5=_0x242663['add'](_0x2c44d2(this[_0x2cad('0x138')][_0x2cad('0x106')],_0x2cad('0x5e')));this['_adapter']['updateSuggestion'](_0x33b370,_0x8a4345)[_0x2cad('0x75')](()=>{_0x242663['remove'](_0x26f2a5);});}else _0x40495d['on'](_0x2cad('0x134'),()=>{this[_0x2cad('0x39')](_0x33b370,_0x8a4345);});}}[_0x2cad('0xa7')](_0x1104a7){if(!this[_0x2cad('0xf8')]||!this[_0x2cad('0xf8')][_0x2cad('0x12b')])throw new _0x312a50(_0x2cad('0x4e'),this);return this[_0x2cad('0xf8')][_0x2cad('0x12b')](_0x1104a7);}[_0x2cad('0x5')](_0x431c7a){const {id:_0x3b6a1d,type:_0x51c6b3,subType:_0x40ecb8,authorId:_0x4c4f97}=this[_0x2cad('0xad')](_0x431c7a),_0x5c9426=this[_0x2cad('0xc0')][_0x2cad('0xeb')](_0x3b6a1d)||this[_0x2cad('0xcf')](_0x51c6b3,_0x40ecb8,_0x3b6a1d,_0x4c4f97,{});switch(this[_0x2cad('0x119')](_0x5c9426,_0x51c6b3,_0x40ecb8,_0x4c4f97),this['_suggestionState'][_0x2cad('0xeb')](_0x5c9426)){case _0x2cad('0x92'):this[_0x2cad('0xa7')](_0x3b6a1d)['then'](_0x546522=>{let _0x4ef7a6=Promise[_0x2cad('0xea')]();_0x546522['hasComments']&&(_0x4ef7a6=this['_commentsRepository'][_0x2cad('0xd9')]({'channelId':this[_0x2cad('0x138')][_0x2cad('0xe4')][_0x2cad('0xeb')]('collaboration.channelId'),'threadId':_0x3b6a1d})),_0x4ef7a6['then'](()=>{this[_0x2cad('0x2e')](_0x546522)[_0x2cad('0x21')]=!0x0;});}),this[_0x2cad('0x5f')][_0x2cad('0x37')](_0x5c9426,_0x2cad('0x6a'));break;case _0x2cad('0x60'):this[_0x2cad('0x39')](_0x3b6a1d,{'state':_0x2cad('0xdc')});case _0x2cad('0x13e'):this[_0x2cad('0x5f')]['set'](_0x5c9426,_0x2cad('0x90')),this[_0x2cad('0x11b')](_0x2cad('0xf0'),_0x5c9426);break;case'ready':this['fire']('suggestionChanged',_0x5c9426);}return _0x5c9426[_0x2cad('0xbb')](_0x431c7a),_0x5c9426;}[_0x2cad('0x114')](_0x30803b){const _0x475c2b=Array['from'](_0x30803b)['filter'](_0x31343e=>!_0x31343e['isMultiRange']),_0x3c0c09=this[_0x2cad('0x38')]({'skipNotAttached':!0x0})[_0x2cad('0x14')](_0x31f274=>!_0x31f274[_0x2cad('0xb8')]),_0xe84dcf=_0x3c0c09[_0x2cad('0x14')](_0x187df9=>!_0x30803b[_0x2cad('0x9c')](_0x187df9)),_0x19207e=new Map(_0x3c0c09[_0x2cad('0x10b')](_0xea41dd=>[_0xea41dd,this[_0x2cad('0x45')][_0x2cad('0x81')](_0xea41dd[_0x2cad('0x8c')],_0xea41dd[_0x2cad('0xaf')],'chain')])),_0x584e42=new Map(_0x3c0c09[_0x2cad('0x10b')](_0x264ddd=>[_0x264ddd,_0x264ddd[_0x2cad('0x63')]()])),_0x3640ca=new Set(),_0x28129e=new Set();for(let _0x1445fe=0x0;_0x1445fe<_0x475c2b[_0x2cad('0xf5')];_0x1445fe++)_0x1dd02d(_0x475c2b[_0x1445fe],_0x475c2b,_0x1445fe+0x1);for(let _0x4fe9eb=0x0;_0x4fe9eb<_0x475c2b[_0x2cad('0xf5')];_0x4fe9eb++)_0x1dd02d(_0x475c2b[_0x4fe9eb],_0xe84dcf,0x0);for(let _0x27a8b7=0x0;_0x27a8b7<_0x475c2b[_0x2cad('0xf5')];_0x27a8b7++){const _0x153a04=_0x475c2b[_0x27a8b7];!_0x28129e[_0x2cad('0x9c')](_0x153a04)&&_0x153a04['previous']&&(_0x153a04[_0x2cad('0xe8')][_0x2cad('0x2a')]===_0x153a04&&(_0x153a04[_0x2cad('0xe8')][_0x2cad('0x2a')]=null),_0x153a04[_0x2cad('0xe8')]=null),!_0x3640ca['has'](_0x153a04)&&_0x153a04[_0x2cad('0x2a')]&&(_0x153a04[_0x2cad('0x2a')][_0x2cad('0xe8')]===_0x153a04&&(_0x153a04[_0x2cad('0x2a')]['previous']=null),_0x153a04['next']=null);}function _0x1dd02d(_0x30fce9,_0x2f32da,_0xd5dcad){for(let _0x26aef2=_0xd5dcad;_0x26aef2<_0x2f32da[_0x2cad('0xf5')];_0x26aef2++){const _0x79469e=_0x2d7200(_0x30fce9,_0x2f32da[_0x26aef2]);_0x79469e&&(_0x79469e[0x0][_0x2cad('0x2a')]=_0x79469e[0x1],_0x79469e[0x1][_0x2cad('0xe8')]=_0x79469e[0x0],_0x3640ca[_0x2cad('0x64')](_0x79469e[0x0]),_0x28129e[_0x2cad('0x64')](_0x79469e[0x1]));}}function _0x2d7200(_0x1f82d0,_0x36cda3){if(_0x1f82d0[_0x2cad('0xf2')]['id']!==_0x36cda3[_0x2cad('0xf2')]['id'])return null;const _0x452df1=_0x19207e[_0x2cad('0xeb')](_0x1f82d0)(_0x1f82d0,_0x36cda3,_0x584e42[_0x2cad('0xeb')](_0x1f82d0),_0x584e42[_0x2cad('0xeb')](_0x36cda3));if(!_0x452df1)return null;return _0x19207e[_0x2cad('0xeb')](_0x36cda3)(_0x1f82d0,_0x36cda3,_0x584e42[_0x2cad('0xeb')](_0x1f82d0),_0x584e42[_0x2cad('0xeb')](_0x36cda3))?_0x452df1[0x1][_0x2cad('0xe2')]&&_0x452df1[0x1][_0x2cad('0xe2')][_0x2cad('0xf5')]?null:_0x452df1:null;}}[_0x2cad('0x11e')](_0x4c457f){const _0xd89a11=Array['from'](_0x4c457f),_0x56bd2b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x46d4c0=_0x56bd2b[_0x2cad('0x14')](_0x51d978=>!_0x4c457f[_0x2cad('0x9c')](_0x51d978)),_0x30d416=new Map(_0xd89a11[_0x2cad('0x10b')](_0x56c11f=>[_0x56c11f,this[_0x2cad('0x45')][_0x2cad('0x81')](_0x56c11f[_0x2cad('0x8c')],_0x56c11f['subType'],'join')])),_0x12b2ef=new Map(_0x56bd2b[_0x2cad('0x10b')](_0x5180a5=>[_0x5180a5,_0x5180a5[_0x2cad('0x110')]()]));for(let _0x411895=0x0;_0x411895<_0xd89a11['length'];_0x411895++){if(_0x4c25c2(this,_0xd89a11[_0x411895],_0xd89a11,_0x411895+0x1))return!0x0;}for(let _0x5b52e0=0x0;_0x5b52e0<_0xd89a11['length'];_0x5b52e0++){if(_0x4c25c2(this,_0xd89a11[_0x5b52e0],_0x46d4c0,0x0))return!0x0;}return!0x1;function _0x4c25c2(_0x4ef4d9,_0x4a2e28,_0x16ad28,_0x31b9d7){for(let _0x19e4a3=_0x31b9d7;_0x19e4a3<_0x16ad28[_0x2cad('0xf5')];_0x19e4a3++){const _0x49ae36=_0x16ad28[_0x19e4a3];if(_0x49ae36[_0x2cad('0x8c')]!==_0x4a2e28[_0x2cad('0x8c')]||_0x49ae36['author']['id']!==_0x4a2e28[_0x2cad('0xf2')]['id']||_0x49ae36[_0x2cad('0xaf')]!==_0x4a2e28[_0x2cad('0xaf')])continue;const _0x1f3dff=_0x30d416[_0x2cad('0xeb')](_0x4a2e28),_0x5d9f4b=_0x12b2ef[_0x2cad('0xeb')](_0x4a2e28),_0x3e01ad=_0x12b2ef[_0x2cad('0xeb')](_0x49ae36),_0x102c56=_0x4a2e28[_0x2cad('0xe2')]&&_0x4a2e28['commentThread'][_0x2cad('0xf5')],_0x140807=_0x49ae36['commentThread']&&_0x49ae36['commentThread'][_0x2cad('0xf5')];if(!_0x102c56&&_0x1f3dff(_0x3e01ad,_0x5d9f4b))return _0x4ef4d9[_0x2cad('0x20')](_0x49ae36,_0x4a2e28),_0x12b2ef['delete'](_0x4a2e28),!0x0;if(!_0x140807&&_0x1f3dff(_0x5d9f4b,_0x3e01ad))return _0x4ef4d9[_0x2cad('0x20')](_0x4a2e28,_0x49ae36),_0x12b2ef['delete'](_0x49ae36),!0x0;}return!0x1;}}[_0x2cad('0x20')](_0xa6862a,_0x2813a5){if(_0xa6862a['isMultiRange'])for(const _0x187f30 of _0x2813a5[_0x2cad('0x110')]())_0xa6862a[_0x2cad('0x12')](_0x187f30);else{const _0x1ec15a=_0x2813a5[_0x2cad('0x63')]()['end'];this['_setSuggestionRange'](_0xa6862a,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0xa6862a[_0x2cad('0x63')]()[_0x2cad('0x103')],_0x1ec15a));}_0x2813a5['removeMarkers']();}}class Dt{constructor(_0x422816){this[_0x2cad('0xfe')]=_0x422816,this[_0x2cad('0x25')]=_0x422816[_0x2cad('0x24')],this[_0x2cad('0x6c')]=new Map(),this[_0x2cad('0x8f')]=new Map(),this[_0x2cad('0x66')]();}[_0x2cad('0x102')](_0x793889,_0x362abc,_0x198587,_0xdccf9,_0x240f10,_0x54cdfa){return new _0x519345(this[_0x2cad('0x25')],{'type':_0x793889,'subType':_0x362abc,'id':_0x198587,'author':_0xdccf9,'creator':_0xdccf9,'attributes':_0x240f10,'onAttributesChange':_0x54cdfa,'onAccept':(..._0x36c4cd)=>this[_0x2cad('0x81')](_0x793889,_0x362abc,'accept')(..._0x36c4cd),'onDiscard':(..._0x603f84)=>this[_0x2cad('0x81')](_0x793889,_0x362abc,'discard')(..._0x603f84)});}[_0x2cad('0x5b')](_0x507039,_0x55dd7b,_0x110051,_0x274e9f){const _0x2f6d6b=_0x507039+':'+_0x55dd7b+':'+_0x110051;this[_0x2cad('0x6c')][_0x2cad('0x37')](_0x2f6d6b,_0x274e9f);}['getSuggestionCallback'](_0x4a8fb9,_0xed3054,_0x3f3330){const _0x1ed264=_0x4a8fb9+':'+_0xed3054+':'+_0x3f3330;return this[_0x2cad('0x6c')][_0x2cad('0xeb')](_0x1ed264)||this['_defaultCallbacks'][_0x2cad('0xeb')](_0x4a8fb9+':'+_0x3f3330);}[_0x2cad('0x66')](){const _0xea25d7=()=>{},_0x279498=_0x3cca40=>{_0x3cca40[_0x2cad('0x131')]((_0x10089b,_0x13bcc1)=>_0x10089b[_0x2cad('0x103')][_0x2cad('0x44')](_0x13bcc1[_0x2cad('0x103')])?0x1:-0x1),this[_0x2cad('0x25')]['change'](_0x34420b=>{for(const _0x35dbb4 of _0x3cca40){let _0x18549c;_0x18549c=_0x35dbb4[_0x2cad('0x2f')][_0x2cad('0x6b')]&&_0x35dbb4[_0x2cad('0x2f')][_0x2cad('0xae')]==_0x35dbb4[_0x2cad('0x103')][_0x2cad('0x13d')]?_0x34420b['createSelection'](_0x35dbb4[_0x2cad('0x103')][_0x2cad('0x13d')],'on'):_0x34420b[_0x2cad('0xb7')](_0x35dbb4),this[_0x2cad('0x25')][_0x2cad('0x11f')](_0x18549c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x416101=(_0xd3e857,_0x25100b)=>{this[_0x2cad('0x25')][_0x2cad('0x101')](_0xb9feb8=>{const {commandName:_0x13c9fc,commandParams:_0x16e5d8=[]}=_0x25100b,_0x178e0a=_0xd3e857[_0x2cad('0x10b')](_0x16dde3=>(_t(_0x16dde3)&&(_0x16dde3=this[_0x2cad('0x25')]['createRange'](_0x16dde3[_0x2cad('0x2f')])),_0x16dde3))[_0x2cad('0x14')](_0x1071a4=>'$graveyard'!==_0x1071a4[_0x2cad('0x125')][_0x2cad('0xdb')]);if(_0x178e0a[_0x2cad('0xf5')]<0x1)return;const _0x12edab=Array[_0x2cad('0xd')](this['_model'][_0x2cad('0x22')]['selection'][_0x2cad('0x110')]())[_0x2cad('0x10b')](_0x3c541f=>_0x52da85[_0x2cad('0x113')](_0x3c541f));_0xb9feb8[_0x2cad('0xc2')](_0x178e0a);for(const _0x54cffd of this[_0x2cad('0xfe')][_0x2cad('0xe3')]['commands']())_0x54cffd[_0x2cad('0x32')]();_0x16e5d8[_0x2cad('0xa3')]({'forceDefaultExecution':!0x0}),this[_0x2cad('0xfe')][_0x2cad('0x107')](_0x13c9fc,..._0x16e5d8);const _0x9440df=_0x12edab[_0x2cad('0x14')](_0x4d0d4b=>_0x2cad('0x129')!=_0x4d0d4b[_0x2cad('0x125')][_0x2cad('0xdb')]);_0x9440df[_0x2cad('0xf5')]>0x0&&_0xb9feb8[_0x2cad('0xc2')](_0x9440df);for(const _0x4cd9fd of _0x12edab)_0x4cd9fd[_0x2cad('0xee')]();});},_0x427e72=(_0x598474,_0x3d74ee)=>0x1==_0x598474[_0x2cad('0xf5')]&&0x1==_0x3d74ee[_0x2cad('0xf5')]&&_0x598474[0x0][_0x2cad('0x2f')]['isEqual'](_0x3d74ee[0x0]['start']),_0x467ff1=(_0x269774,_0x1d692b,_0x1a33e6,_0x4acaa3)=>xt(_0x269774,_0x1d692b,_0x1a33e6,_0x4acaa3,this[_0x2cad('0x25')])?[_0x269774,_0x1d692b]:xt(_0x1d692b,_0x269774,_0x4acaa3,_0x1a33e6,this[_0x2cad('0x25')])?[_0x1d692b,_0x269774]:null;this[_0x2cad('0x8f')]['set'](_0x2cad('0x15'),_0xea25d7),this[_0x2cad('0x8f')][_0x2cad('0x37')]('insertion:discard',_0x279498),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0x133'),_0x427e72),this[_0x2cad('0x8f')][_0x2cad('0x37')]('insertion:chain',_0x467ff1),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0x16'),_0x279498),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0x1b'),_0xea25d7),this[_0x2cad('0x8f')][_0x2cad('0x37')]('deletion:join',_0x427e72),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0xba'),_0x467ff1),this[_0x2cad('0x8f')][_0x2cad('0x37')]('formatInline:accept',_0x416101),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0xca'),_0xea25d7),this[_0x2cad('0x8f')][_0x2cad('0x37')]('formatInline:join',_0x427e72),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0x7a'),_0xea25d7),this['_defaultCallbacks'][_0x2cad('0x37')](_0x2cad('0x83'),_0x416101),this[_0x2cad('0x8f')][_0x2cad('0x37')]('formatBlock:discard',_0xea25d7),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0x118'),_0x427e72),this['_defaultCallbacks'][_0x2cad('0x37')](_0x2cad('0xc1'),_0xea25d7);}}function Bt(_0x25375d,_0x10816f,_0x17af33){for(const _0x4077a5 of _0x10816f[_0x2cad('0xae')][_0x2cad('0x35')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4077a5['root']==_0x4077a5)return!0x1;if(!_0x17af33[_0x2cad('0xbf')](_0x4077a5))return!0x1;if(_0x25375d['isObject'](_0x4077a5)||_0x25375d[_0x2cad('0x73')](_0x4077a5))return!0x0;}return!0x1;}function _t(_0xc7b223){return _0xc7b223[_0x2cad('0x2f')]['parent']==_0xc7b223[_0x2cad('0x103')]['nodeAfter']&&_0xc7b223['end'][_0x2cad('0x3e')];}function Mt(_0x172e7d,_0x3c7ac4,_0x3c85c9,_0x1b6984){const _0x416df9=_0x548253=>!_0x548253[_0x2cad('0x17')]['is'](_0x2cad('0x27'))&&!_0x1b6984['isObject'](_0x548253[_0x2cad('0x17')]),_0x591e7c=_0x172e7d[_0x2cad('0x103')][_0x2cad('0x141')](_0x416df9),_0x58dfca=_0x172e7d['end'][_0x2cad('0x141')](_0x416df9,{'direction':_0x2cad('0x8')});return(!_0x172e7d[_0x2cad('0x103')][_0x2cad('0xc7')](_0x591e7c)||!_0x172e7d[_0x2cad('0x2f')][_0x2cad('0xc7')](_0x58dfca))&&(_0x591e7c['isBefore'](_0x58dfca)?_0x3c85c9[_0x2cad('0x4a')](_0x3c7ac4,{'range':_0x3c85c9[_0x2cad('0x13b')](_0x591e7c,_0x58dfca)}):_0x3c85c9[_0x2cad('0xc4')](_0x3c7ac4),!0x0);}function $t(_0x3ca507){return _0x1ad6c7(_0x3ca507);}function Nt(_0x53aff8){const _0x5b2744=_0x53aff8[_0x2cad('0x103')][_0x2cad('0x13d')];return _0x5b2744&&_0x5b2744['is'](_0x2cad('0x4c'));}function Rt(_0x1280a2,_0x1515a9){const _0x1cc7b7=_0x1515a9['schema'][_0x2cad('0x7e')](_0x1280a2)||_0x1515a9[_0x2cad('0x112')][_0x2cad('0xb')](_0x1280a2);return _0x1515a9[_0x2cad('0x13b')](_0x1515a9['createPositionAt'](_0x1280a2,_0x2cad('0x4d')),_0x1cc7b7?_0x1515a9['createPositionAfter'](_0x1280a2):_0x1515a9['createPositionAt'](_0x1280a2,_0x2cad('0x2f')));}function xt(_0x10fee5,_0x49477e,_0x405dab,_0x5dc494,_0x393a0d){if(_0x405dab[_0x2cad('0x2f')][_0x2cad('0xc7')](_0x5dc494[_0x2cad('0x103')]))return!0x0;if(_0x10fee5[_0x2cad('0x8c')]!=_0x49477e[_0x2cad('0x8c')])return!0x1;if(!_0x405dab['end'][_0x2cad('0x11')](_0x5dc494[_0x2cad('0x103')]))return!0x1;const _0xa93ba7=_0x393a0d[_0x2cad('0x13b')](_0x405dab[_0x2cad('0x2f')],_0x5dc494[_0x2cad('0x103')])['getWalker']();for(const _0x2647e0 of _0xa93ba7)if([_0x2cad('0xa5'),_0x2cad('0xfc')][_0x2cad('0x9')](_0x2647e0[_0x2cad('0x8c')])&&_0x393a0d[_0x2cad('0x112')]['isLimit'](_0x2647e0['item']))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x166e=['suggestion-','focus','createAnnotationView','keys','_disableComments','reduce','comments.editorConfig','componentFactory','locale','_updateController','discardAllSuggestions','isEnabled','head','listenTo','get','getSuggestion','trackChanges.disableComments','comments.maxCommentsWhenCollapsed','Track\x20changes','add','createCommentThreadController','destroy','_bindAnnotationToEditors','remove','requires','arrowView','from','isOn','set','plugins','bind','isInContent','_viewToController','view','_handleSuggestionControllerDelayed','CommentsUI','_suggestionToController','CommentView','trackChanges.SuggestionThreadView','SuggestionThreadView','Annotations','_initializeController','pluginName','size','_annotationViews','filter','Accept\x20all\x20selected\x20suggestions','define','lowest','activeMarkers','EditorAnnotations','_refreshActiveMarkers','delete','push','commentThread','separator','refreshSelectedViews','_destroyController','acceptButton','comments.maxCommentCharsWhenCollapsed','registerAnnotation','model','activeAnnotations','TrackChangesEditing','config','values','suggestionChanged','commands','suggestionLoaded','clear','trackChanges','_handleControllerBuffer','isDirty','execute','getDescriptions','addSourceCollector','getMarkerNames','mainView','addComment','acceptAllSuggestions','getAllAdjacentSuggestions','createAnnotation','_createUIButton','commandName','CommentsRepository','innerView','_descriptionFactory','hasSuggestion','change:previous','TrackChangesUI','descriptionParts','switchbutton','init','change:activeAnnotations','editing','getByInnerView','buttonView','value','acceptSelectedSuggestions','unbind','Discard\x20all\x20suggestions','editor','button','getRanges','type','has','toMany','previous','getFirstRange'];(function(_0x396fc3,_0x166e3a){const _0x4cf326=function(_0x567a66){while(--_0x567a66){_0x396fc3['push'](_0x396fc3['shift']());}};_0x4cf326(++_0x166e3a);}(_0x166e,0x155));const _0x4cf3=function(_0x396fc3,_0x166e3a){_0x396fc3=_0x396fc3-0x0;let _0x4cf326=_0x166e[_0x396fc3];return _0x4cf326;};import{Plugin as _0x3201e8}from'ckeditor5/src/core';import{Collection as _0x371216}from'ckeditor5/src/utils';import{Model as _0x3cb6b9,SplitButtonView as _0x41a3b8,createDropdown as _0xaa9423,addListToDropdown as _0x53595a}from'ckeditor5/src/ui';import{Users as _0xf2c13e,getDateTimeFormatter as _0x149a10,getAllMarkersDomElementsSorted as _0x606fc0}from'ckeditor5-collaboration/src/collaboration-core';import _0x1a3aed from'./trackchangesediting';import _0x25e61a from'./ui/suggestioncontroller';import _0x6ae645 from'./ui/view/suggestionthreadview';import{getTranslation as _0x270c3a}from'./utils/common-translations';import _0x382d04 from'../theme/icons/track-changes.svg';export default class d extends _0x3201e8{static get[_0x4cf3('0xa')](){return[_0x1a3aed,_0xf2c13e,_0x4cf3('0x46'),'Annotations',_0x4cf3('0x24')];}static get[_0x4cf3('0x1c')](){return _0x4cf3('0x4b');}constructor(_0x4d1e73){super(_0x4d1e73),this[_0x4cf3('0x16')]=new Map(),this[_0x4cf3('0x12')]=new Map(),this['_annotationViews']=new Map(),this[_0x4cf3('0x39')]=new Map();const _0x311875=this[_0x4cf3('0x57')]['config'];_0x311875[_0x4cf3('0x21')](_0x4cf3('0x18'),_0x6ae645),_0x311875[_0x4cf3('0x21')](_0x4cf3('0x2'),!0x1),this[_0x4cf3('0x63')]=_0x311875['get'](_0x4cf3('0x2'));}[_0x4cf3('0x14')](_0x333150,_0xfb0af3){0x0===this[_0x4cf3('0x39')][_0x4cf3('0x1d')]&&setTimeout(()=>{for(const [_0x349665,_0x508bf7]of this[_0x4cf3('0x39')]){const _0x3a958e=this[_0x4cf3('0x16')][_0x4cf3('0x5b')](_0x349665);_0x3a958e||_0x508bf7?_0x3a958e&&_0x508bf7&&this['_destroyController'](_0x349665):this[_0x4cf3('0x1b')](_0x349665);}this[_0x4cf3('0x57')][_0x4cf3('0xf')][_0x4cf3('0x0')](_0x4cf3('0x24'))[_0x4cf3('0x2a')](),this['_refreshActiveMarkers'](),this[_0x4cf3('0x39')][_0x4cf3('0x37')]();},0xa),this['_handleControllerBuffer']['set'](_0x333150,_0xfb0af3);}[_0x4cf3('0x4e')](){const _0xe6167c=this[_0x4cf3('0x57')],_0x1d15bf=_0xe6167c[_0x4cf3('0xf')]['get'](_0x4cf3('0x31')),_0x2869cc=_0xe6167c[_0x4cf3('0xf')][_0x4cf3('0x0')](_0x4cf3('0x1a')),_0x2022bf=_0xe6167c[_0x4cf3('0xf')][_0x4cf3('0x0')]('EditorAnnotations'),_0x9438a7=_0xe6167c['plugins'][_0x4cf3('0x0')](_0x4cf3('0x46'));_0xe6167c['ui'][_0x4cf3('0x66')][_0x4cf3('0x5')](_0x4cf3('0x38'),_0x2f5d46=>this[_0x4cf3('0x44')](_0x2f5d46)),_0x2022bf[_0x4cf3('0x3d')](()=>{const _0xf37c0c=[];for(const [_0x52d135,_0x468236]of Array[_0x4cf3('0xc')](this[_0x4cf3('0x16')])){const _0x515532=_0x52d135['getAllAdjacentSuggestions'](),_0x2c144a=[];for(const _0x3a7943 of _0x515532){if(!_0x3a7943['isInContent'])continue;if(_0x3a7943['isMultiRange']){_0x2c144a['push'](..._0x3a7943[_0x4cf3('0x59')]());continue;}const _0x18daf8=_0x3a7943[_0x4cf3('0x5e')]();if(_0x2c144a['length']>0x0){const _0x183d19=_0x2c144a[0x0]['getJoined'](_0x18daf8);if(_0x183d19){_0x2c144a[0x0]=_0x183d19;continue;}}_0x2c144a[_0x4cf3('0x27')](_0x18daf8);}_0xf37c0c[_0x4cf3('0x27')]([_0x468236[_0x4cf3('0x13')],_0x2c144a]);}return _0xf37c0c;}),this[_0x4cf3('0x6c')](_0x1d15bf,_0x4cf3('0x36'),(_0x48730e,_0x376c2c)=>{this[_0x4cf3('0x6c')](_0x376c2c,_0x4cf3('0x4a'),(_0x36bbe1,_0x2bb4d2,_0x521fde,_0x275b81)=>{_0x376c2c[_0x4cf3('0x11')]&&(null==_0x521fde?(this[_0x4cf3('0x68')](_0x275b81[_0x4cf3('0x6b')]),this['_handleSuggestionControllerDelayed'](_0x376c2c,!0x1)):(this[_0x4cf3('0x68')](_0x521fde['head']),this[_0x4cf3('0x14')](_0x376c2c,!0x0)));}),null===_0x376c2c[_0x4cf3('0x5d')]?this[_0x4cf3('0x14')](_0x376c2c,!0x1):this['_updateController'](_0x376c2c[_0x4cf3('0x6b')]);}),this['listenTo'](_0x1d15bf,'suggestionUnloaded',(_0x299232,_0xaebf59,_0x90a606)=>{this['stopListening'](_0xaebf59,'change:previous'),this['_handleControllerBuffer'][_0x4cf3('0x26')](_0xaebf59);const _0x23c48a=_0x90a606?_0x90a606[_0x4cf3('0x6b')]:_0xaebf59,_0x2087ea=this[_0x4cf3('0x16')]['get'](_0x23c48a);null!==_0x90a606&&this[_0x4cf3('0x68')](_0x23c48a),null===_0x90a606&&_0x2087ea&&this[_0x4cf3('0x2b')](_0xaebf59);}),this[_0x4cf3('0x6c')](_0x1d15bf,_0x4cf3('0x34'),(_0x3683b7,_0x2052c1)=>{this['_updateController'](_0x2052c1);}),this[_0x4cf3('0x6c')](_0x2869cc,_0x4cf3('0x4f'),()=>{this[_0x4cf3('0x25')]();}),this['listenTo'](_0x9438a7,_0x4cf3('0x40'),(_0x1e0bc5,{threadId:_0xf2c358,isFromAdapter:_0x1794e5})=>{if(_0x1794e5||!_0x1d15bf[_0x4cf3('0x49')](_0xf2c358))return;const _0x2cbdd3=_0x1d15bf[_0x4cf3('0x1')](_0xf2c358);this[_0x4cf3('0x16')][_0x4cf3('0x0')](_0x2cbdd3)[_0x4cf3('0x13')][_0x4cf3('0x60')]();},{'priority':_0x4cf3('0x22')});}[_0x4cf3('0x25')](){const _0x474157=this[_0x4cf3('0x57')][_0x4cf3('0xf')][_0x4cf3('0x0')]('Annotations'),_0x4dc2c7=this['editor'][_0x4cf3('0xf')][_0x4cf3('0x0')]('TrackChangesEditing'),_0x35588b=Array[_0x4cf3('0xc')](_0x474157[_0x4cf3('0x30')],_0x5a4fc1=>_0x5a4fc1[_0x4cf3('0x47')])[_0x4cf3('0x1f')](_0x5a820d=>this['_viewToController'][_0x4cf3('0x5b')](_0x5a820d)),_0x1fb224=[];for(const _0x6f7375 of _0x35588b){const _0x491621=this[_0x4cf3('0x12')][_0x4cf3('0x0')](_0x6f7375)[_0x4cf3('0x2f')][_0x4cf3('0x42')]();_0x1fb224['push'](..._0x491621[_0x4cf3('0x64')]((_0x2fd583,_0x100d17)=>[..._0x2fd583,..._0x100d17[_0x4cf3('0x3e')]()],[]));}_0x4dc2c7[_0x4cf3('0x23')]=_0x1fb224;}[_0x4cf3('0x44')](_0x59099e){const _0xe43268=_0xaa9423(_0x59099e,_0x41a3b8),_0x1113ea=this[_0x4cf3('0x57')][_0x4cf3('0x35')][_0x4cf3('0x0')](_0x4cf3('0x38')),_0x335d1b=_0x270c3a(_0x59099e,_0x4cf3('0x4'));_0xe43268[_0x4cf3('0x52')][_0x4cf3('0xe')]({'tooltip':_0x335d1b,'label':_0x335d1b,'icon':_0x382d04}),_0xe43268[_0x4cf3('0x52')][_0x4cf3('0x10')](_0x4cf3('0xd'))['to'](_0x1113ea,_0x4cf3('0x53')),_0xe43268[_0x4cf3('0x52')]['on'](_0x4cf3('0x3b'),()=>{_0x1113ea['execute'](),this[_0x4cf3('0x57')][_0x4cf3('0x50')]['view'][_0x4cf3('0x60')]();});const _0x2ba6dc=new _0x371216(),_0x4b1739=[{'type':_0x4cf3('0x4d'),'model':{'withText':!0x0,'label':_0x335d1b,'commandName':_0x4cf3('0x38')}},{'type':_0x4cf3('0x29')},{'type':'button','model':{'withText':!0x0,'label':_0x270c3a(_0x59099e,'Accept\x20all\x20suggestions'),'commandName':_0x4cf3('0x41')}},{'type':'button','model':{'withText':!0x0,'label':_0x270c3a(_0x59099e,_0x4cf3('0x20')),'commandName':_0x4cf3('0x54')}},{'type':_0x4cf3('0x58'),'model':{'withText':!0x0,'label':_0x270c3a(_0x59099e,_0x4cf3('0x56')),'commandName':_0x4cf3('0x69')}},{'type':_0x4cf3('0x58'),'model':{'withText':!0x0,'label':_0x270c3a(_0x59099e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0xa8fe54 of _0x4b1739){let _0x569624={'type':_0x4cf3('0x29')};if(_0xa8fe54[_0x4cf3('0x2f')]){const _0x3d1ebb=new _0x3cb6b9(_0xa8fe54['model']),_0x1b06f1=this[_0x4cf3('0x57')][_0x4cf3('0x35')][_0x4cf3('0x0')](_0x3d1ebb['commandName']);_0x3d1ebb[_0x4cf3('0x10')](_0x4cf3('0xd'),_0x4cf3('0x6a'))['to'](_0x1b06f1,_0x4cf3('0x53'),_0x4cf3('0x6a')),_0x569624={'type':_0xa8fe54[_0x4cf3('0x5a')],'model':_0x3d1ebb};}_0x2ba6dc[_0x4cf3('0x5')](_0x569624);}_0x53595a(_0xe43268,_0x2ba6dc);const _0x242f88=_0x4b1739['filter'](_0x5a82ee=>null!=_0x5a82ee[_0x4cf3('0x2f')])['map'](_0x57f04c=>this[_0x4cf3('0x57')][_0x4cf3('0x35')]['get'](_0x57f04c['model'][_0x4cf3('0x45')])),_0x32ddbd=_0xe43268['buttonView'];return _0x32ddbd['actionView'][_0x4cf3('0x55')](_0x4cf3('0x6a')),_0x32ddbd[_0x4cf3('0xb')]['unbind'](_0x4cf3('0x6a')),_0x32ddbd['actionView'][_0x4cf3('0x10')](_0x4cf3('0x6a'))['to'](_0x1113ea,'isEnabled'),_0x32ddbd[_0x4cf3('0xb')][_0x4cf3('0x10')](_0x4cf3('0x6a'))[_0x4cf3('0x5c')](_0x242f88,_0x4cf3('0x6a'),(..._0x1e3071)=>_0x1e3071['some'](_0x4b4d73=>_0x4b4d73)),_0xe43268['on'](_0x4cf3('0x3b'),_0x234306=>{this[_0x4cf3('0x57')][_0x4cf3('0x3b')](_0x234306['source'][_0x4cf3('0x45')]),this[_0x4cf3('0x57')][_0x4cf3('0x50')]['view'][_0x4cf3('0x60')]();}),_0xe43268;}['_initializeController'](_0x26b19f){const _0x282729=this['editor'],_0x409eb5=_0x282729[_0x4cf3('0x32')],_0x9f3a40=_0x282729[_0x4cf3('0xf')][_0x4cf3('0x0')](_0x4cf3('0x1a')),_0x37cc7e=_0x282729['plugins'][_0x4cf3('0x0')](_0x4cf3('0x46')),_0x1799e4=_0x282729[_0x4cf3('0xf')]['get'](_0x4cf3('0x24')),_0x540f22=_0x282729[_0x4cf3('0xf')][_0x4cf3('0x0')](_0xf2c13e)['me'],_0x5958cc=_0x409eb5[_0x4cf3('0x0')](_0x4cf3('0x38'))[_0x4cf3('0x19')],{CommentsListView:_0x122e48,CommentThreadInputView:_0x5cc8cd}=_0x282729[_0x4cf3('0xf')]['get'](_0x4cf3('0x15'));let _0x5420ba,_0x38ae83;this['_annotationViews'][_0x4cf3('0x5b')](_0x26b19f['id'])?(_0x38ae83=this['_annotationViews'][_0x4cf3('0x0')](_0x26b19f['id']),_0x5420ba=_0x38ae83[_0x4cf3('0x3f')]):(_0x5420ba=new _0x5958cc(_0x282729[_0x4cf3('0x67')],_0x26b19f,_0x540f22,{'disableComments':this[_0x4cf3('0x63')],'editorConfig':_0x409eb5['get'](_0x4cf3('0x65')),'maxCommentsWhenCollapsed':_0x409eb5[_0x4cf3('0x0')](_0x4cf3('0x3')),'maxThreadTotalWeight':_0x409eb5[_0x4cf3('0x0')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x409eb5['get'](_0x4cf3('0x2d')),'formatDateTime':_0x149a10(_0x409eb5[_0x4cf3('0x0')](_0x4cf3('0x67'))),'CommentView':_0x409eb5[_0x4cf3('0x0')]('comments')[_0x4cf3('0x17')],'CommentsListView':_0x122e48,'CommentThreadInputView':_0x5cc8cd}),_0x5420ba[_0x4cf3('0x2c')]['on'](_0x4cf3('0x3b'),()=>{_0x282729['editing'][_0x4cf3('0x13')]['focus']();}),_0x5420ba['discardButton']['on']('execute',()=>{_0x282729['editing'][_0x4cf3('0x13')][_0x4cf3('0x60')]();}),_0x38ae83=_0x9f3a40[_0x4cf3('0x61')](this['editor']['locale'],_0x5420ba),_0x38ae83[_0x4cf3('0x10')](_0x4cf3('0x3a'))['to'](_0x5420ba,_0x4cf3('0x3a')),_0x38ae83[_0x4cf3('0x10')]('length')['to'](_0x5420ba),_0x38ae83[_0x4cf3('0x10')](_0x4cf3('0x5a'))['to'](_0x5420ba,'type',_0x256422=>'suggestion-'+_0x256422),this['_annotationViews'][_0x4cf3('0xe')](_0x26b19f['id'],_0x38ae83));const _0x474264=_0x37cc7e[_0x4cf3('0x6')](_0x26b19f[_0x4cf3('0x28')],_0x5420ba),_0x4c013d=new _0x25e61a(_0x282729,_0x26b19f,_0x5420ba,_0x474264),_0x42e2d2=_0x26b19f[_0x4cf3('0x42')]()[_0x4cf3('0x1f')](_0x5aa274=>_0x5aa274[_0x4cf3('0x11')]);_0x5420ba['descriptionParts']=_0x282729[_0x4cf3('0xf')]['get'](_0x4cf3('0x31'))[_0x4cf3('0x48')]['getDescriptions'](_0x42e2d2),this[_0x4cf3('0x16')]['set'](_0x26b19f,_0x4c013d),this[_0x4cf3('0x12')]['set'](_0x5420ba,_0x4c013d);const _0x45cec1=_0x9f3a40[_0x4cf3('0x43')]({'view':_0x38ae83,'target':()=>{const _0x408c55=[],_0x562945=_0x26b19f['getAllAdjacentSuggestions']()[_0x4cf3('0x1f')](_0x2d9763=>_0x2d9763[_0x4cf3('0x11')]);for(const _0x21a39b of _0x562945)_0x408c55[_0x4cf3('0x27')](..._0x21a39b['getMarkers']());return _0x606fc0(_0x282729['editing'],_0x408c55);},'type':()=>_0x4cf3('0x5f')+_0x4c013d[_0x4cf3('0x13')][_0x4cf3('0x5a')]});_0x37cc7e[_0x4cf3('0x8')](_0x5420ba,_0x45cec1),_0x9f3a40['add'](_0x45cec1),_0x1799e4[_0x4cf3('0x2e')](_0x45cec1);}[_0x4cf3('0x2b')](_0x492887){const _0x19e6eb=this[_0x4cf3('0x57')][_0x4cf3('0xf')][_0x4cf3('0x0')]('Annotations'),_0x46e871=this[_0x4cf3('0x16')][_0x4cf3('0x0')](_0x492887),_0x267b54=_0x46e871[_0x4cf3('0x13')],_0x54ef6d=_0x19e6eb[_0x4cf3('0x51')](_0x267b54);_0x54ef6d&&_0x19e6eb[_0x4cf3('0x9')](_0x54ef6d),this[_0x4cf3('0x16')][_0x4cf3('0x26')](_0x492887),this[_0x4cf3('0x12')][_0x4cf3('0x26')](_0x267b54),_0x46e871[_0x4cf3('0x7')]();}['_updateController'](_0x4797d3){if(!_0x4797d3[_0x4cf3('0x11')]||!this[_0x4cf3('0x16')][_0x4cf3('0x5b')](_0x4797d3))return;const _0x2c55b3=this['editor']['plugins'][_0x4cf3('0x0')](_0x4cf3('0x31')),_0x2dc50f=this['_suggestionToController'][_0x4cf3('0x0')](_0x4797d3),_0xd650d6=_0x4797d3[_0x4cf3('0x42')]();_0x2dc50f[_0x4cf3('0x13')][_0x4cf3('0x4c')]=_0x2c55b3[_0x4cf3('0x48')][_0x4cf3('0x3c')](_0xd650d6);}[_0x4cf3('0x7')](){for(const _0xfb3118 of this[_0x4cf3('0x16')][_0x4cf3('0x62')]())this['_destroyController'](_0xfb3118);for(const _0x128771 of this[_0x4cf3('0x1e')][_0x4cf3('0x33')]())_0x128771[_0x4cf3('0x3f')][_0x4cf3('0x7')]();super['destroy']();}}
23
+ const _0x8375=['comments.maxThreadTotalWeight','value','isMultiRange','change:activeAnnotations','getSuggestion','createAnnotationView','trackChanges.disableComments','toMany','getFirstRange','getByInnerView','commandName','requires','model','head','_refreshActiveMarkers','listenTo','_descriptionFactory','getMarkers','commentThread','execute','_destroyController','descriptionParts','from','_handleSuggestionControllerDelayed','switchbutton','has','view','getJoined','get','comments.maxCommentsWhenCollapsed','TrackChangesEditing','comments.editorConfig','suggestionLoaded','createAnnotation','innerView','isOn','focus','stopListening','plugins','discardAllSuggestions','arrowView','addSourceCollector','editing','separator','size','define','comments.maxCommentCharsWhenCollapsed','EditorAnnotations','registerAnnotation','commands','acceptAllSuggestions','pluginName','_viewToController','reduce','hasSuggestion','destroy','getDescriptions','isInContent','trackChanges','source','acceptSelectedSuggestions','CommentsUI','suggestion-','keys','isDirty','delete','buttonView','CommentsRepository','filter','add','getMarkerNames','_annotationViews','_handleControllerBuffer','locale','actionView','_bindAnnotationToEditors','getRanges','isEnabled','_updateController','getAllAdjacentSuggestions','set','editor','lowest','TrackChangesUI','Discard\x20all\x20suggestions','discardSelectedSuggestions','mainView','unbind','addComment','change:previous','_suggestionToController','_disableComments','refreshSelectedViews','_createUIButton','activeMarkers','acceptButton','button','Annotations','type','bind','comments','suggestionUnloaded','push'];(function(_0x76190a,_0x83758b){const _0x32e126=function(_0x333717){while(--_0x333717){_0x76190a['push'](_0x76190a['shift']());}};_0x32e126(++_0x83758b);}(_0x8375,0x82));const _0x32e1=function(_0x76190a,_0x83758b){_0x76190a=_0x76190a-0x0;let _0x32e126=_0x8375[_0x76190a];return _0x32e126;};import{Plugin as _0x4fb7b6}from'ckeditor5/src/core';import{Collection as _0xa15f01}from'ckeditor5/src/utils';import{Model as _0x474bd1,SplitButtonView as _0x5cc4bb,createDropdown as _0x1ba54c,addListToDropdown as _0x174f0c}from'ckeditor5/src/ui';import{Users as _0x39e248,getDateTimeFormatter as _0x4a3a48,getAllMarkersDomElementsSorted as _0x3c984a}from'ckeditor5-collaboration/src/collaboration-core';import _0x2dc9d8 from'./trackchangesediting';import _0x37585b from'./ui/suggestioncontroller';import _0x68a8b4 from'./ui/view/suggestionthreadview';import{getTranslation as _0x1b7eeb}from'./utils/common-translations';import _0x140383 from'../theme/icons/track-changes.svg';export default class d extends _0x4fb7b6{static get[_0x32e1('0x57')](){return[_0x2dc9d8,_0x39e248,'CommentsRepository',_0x32e1('0x46'),_0x32e1('0x14')];}static get[_0x32e1('0x18')](){return _0x32e1('0x38');}constructor(_0x596890){super(_0x596890),this['_suggestionToController']=new Map(),this[_0x32e1('0x19')]=new Map(),this[_0x32e1('0x2c')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x2d9e21=this[_0x32e1('0x36')]['config'];_0x2d9e21[_0x32e1('0x12')]('trackChanges.SuggestionThreadView',_0x68a8b4),_0x2d9e21[_0x32e1('0x12')](_0x32e1('0x52'),!0x1),this['_disableComments']=_0x2d9e21[_0x32e1('0x1')](_0x32e1('0x52'));}['_handleSuggestionControllerDelayed'](_0x2256dc,_0x248ece){0x0===this[_0x32e1('0x2d')][_0x32e1('0x11')]&&setTimeout(()=>{for(const [_0x45d33c,_0x203675]of this[_0x32e1('0x2d')]){const _0x42ed0d=this['_suggestionToController'][_0x32e1('0x65')](_0x45d33c);_0x42ed0d||_0x203675?_0x42ed0d&&_0x203675&&this[_0x32e1('0x60')](_0x45d33c):this['_initializeController'](_0x45d33c);}this['editor'][_0x32e1('0xb')][_0x32e1('0x1')]('EditorAnnotations')[_0x32e1('0x41')](),this[_0x32e1('0x5a')](),this['_handleControllerBuffer']['clear']();},0xa),this['_handleControllerBuffer'][_0x32e1('0x35')](_0x2256dc,_0x248ece);}['init'](){const _0x2524b9=this['editor'],_0xddce97=_0x2524b9[_0x32e1('0xb')]['get'](_0x32e1('0x3')),_0x130d04=_0x2524b9[_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x46')),_0x2a5672=_0x2524b9[_0x32e1('0xb')][_0x32e1('0x1')]('EditorAnnotations'),_0x5f1105=_0x2524b9[_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x28'));_0x2524b9['ui']['componentFactory'][_0x32e1('0x2a')]('trackChanges',_0x5c0f37=>this[_0x32e1('0x42')](_0x5c0f37)),_0x2a5672[_0x32e1('0xe')](()=>{const _0x42910a=[];for(const [_0x8d8828,_0x2c31e7]of Array[_0x32e1('0x62')](this['_suggestionToController'])){const _0x285520=_0x8d8828[_0x32e1('0x34')](),_0x4badd0=[];for(const _0x23e1ca of _0x285520){if(!_0x23e1ca[_0x32e1('0x1e')])continue;if(_0x23e1ca[_0x32e1('0x4e')]){_0x4badd0[_0x32e1('0x4b')](..._0x23e1ca[_0x32e1('0x31')]());continue;}const _0x4c1d06=_0x23e1ca[_0x32e1('0x54')]();if(_0x4badd0['length']>0x0){const _0x16b079=_0x4badd0[0x0][_0x32e1('0x0')](_0x4c1d06);if(_0x16b079){_0x4badd0[0x0]=_0x16b079;continue;}}_0x4badd0[_0x32e1('0x4b')](_0x4c1d06);}_0x42910a[_0x32e1('0x4b')]([_0x2c31e7[_0x32e1('0x66')],_0x4badd0]);}return _0x42910a;}),this[_0x32e1('0x5b')](_0xddce97,_0x32e1('0x5'),(_0xc55529,_0x135e80)=>{this[_0x32e1('0x5b')](_0x135e80,_0x32e1('0x3e'),(_0x138cea,_0x38a703,_0x4a970a,_0x4a0895)=>{_0x135e80[_0x32e1('0x1e')]&&(null==_0x4a970a?(this[_0x32e1('0x33')](_0x4a0895[_0x32e1('0x59')]),this[_0x32e1('0x63')](_0x135e80,!0x1)):(this[_0x32e1('0x33')](_0x4a970a[_0x32e1('0x59')]),this[_0x32e1('0x63')](_0x135e80,!0x0)));}),null===_0x135e80['previous']?this[_0x32e1('0x63')](_0x135e80,!0x1):this[_0x32e1('0x33')](_0x135e80[_0x32e1('0x59')]);}),this['listenTo'](_0xddce97,_0x32e1('0x4a'),(_0x51133a,_0x1c3045,_0x1852e5)=>{this[_0x32e1('0xa')](_0x1c3045,_0x32e1('0x3e')),this[_0x32e1('0x2d')]['delete'](_0x1c3045);const _0x35d3e2=_0x1852e5?_0x1852e5[_0x32e1('0x59')]:_0x1c3045,_0x201d64=this[_0x32e1('0x3f')][_0x32e1('0x1')](_0x35d3e2);null!==_0x1852e5&&this[_0x32e1('0x33')](_0x35d3e2),null===_0x1852e5&&_0x201d64&&this[_0x32e1('0x60')](_0x1c3045);}),this['listenTo'](_0xddce97,'suggestionChanged',(_0x1555f1,_0x1b14a7)=>{this[_0x32e1('0x33')](_0x1b14a7);}),this[_0x32e1('0x5b')](_0x130d04,_0x32e1('0x4f'),()=>{this[_0x32e1('0x5a')]();}),this[_0x32e1('0x5b')](_0x5f1105,_0x32e1('0x3d'),(_0x7d5ea,{threadId:_0x400bbf,isFromAdapter:_0x40e98e})=>{if(_0x40e98e||!_0xddce97[_0x32e1('0x1b')](_0x400bbf))return;const _0x1c316c=_0xddce97[_0x32e1('0x50')](_0x400bbf);this[_0x32e1('0x3f')][_0x32e1('0x1')](_0x1c316c)['view'][_0x32e1('0x9')]();},{'priority':_0x32e1('0x37')});}[_0x32e1('0x5a')](){const _0x34f8b5=this['editor'][_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x46')),_0x12172c=this[_0x32e1('0x36')][_0x32e1('0xb')]['get'](_0x32e1('0x3')),_0x1ce5cf=Array[_0x32e1('0x62')](_0x34f8b5['activeAnnotations'],_0xacecfd=>_0xacecfd[_0x32e1('0x7')])[_0x32e1('0x29')](_0x48d4ac=>this[_0x32e1('0x19')][_0x32e1('0x65')](_0x48d4ac)),_0x118f08=[];for(const _0x395ee5 of _0x1ce5cf){const _0x1ef537=this[_0x32e1('0x19')][_0x32e1('0x1')](_0x395ee5)[_0x32e1('0x58')][_0x32e1('0x34')]();_0x118f08[_0x32e1('0x4b')](..._0x1ef537[_0x32e1('0x1a')]((_0x100822,_0x8c2c17)=>[..._0x100822,..._0x8c2c17[_0x32e1('0x2b')]()],[]));}_0x12172c[_0x32e1('0x43')]=_0x118f08;}[_0x32e1('0x42')](_0x3644e0){const _0x16fb50=_0x1ba54c(_0x3644e0,_0x5cc4bb),_0x57811c=this[_0x32e1('0x36')]['commands'][_0x32e1('0x1')](_0x32e1('0x1f')),_0x898d84=_0x1b7eeb(_0x3644e0,'Track\x20changes');_0x16fb50[_0x32e1('0x27')][_0x32e1('0x35')]({'tooltip':_0x898d84,'label':_0x898d84,'icon':_0x140383}),_0x16fb50['buttonView'][_0x32e1('0x48')](_0x32e1('0x8'))['to'](_0x57811c,'value'),_0x16fb50[_0x32e1('0x27')]['on'](_0x32e1('0x5f'),()=>{_0x57811c[_0x32e1('0x5f')](),this[_0x32e1('0x36')][_0x32e1('0xf')][_0x32e1('0x66')][_0x32e1('0x9')]();});const _0x113155=new _0xa15f01(),_0x17a88d=[{'type':_0x32e1('0x64'),'model':{'withText':!0x0,'label':_0x898d84,'commandName':_0x32e1('0x1f')}},{'type':_0x32e1('0x10')},{'type':'button','model':{'withText':!0x0,'label':_0x1b7eeb(_0x3644e0,'Accept\x20all\x20suggestions'),'commandName':_0x32e1('0x17')}},{'type':_0x32e1('0x45'),'model':{'withText':!0x0,'label':_0x1b7eeb(_0x3644e0,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x32e1('0x21')}},{'type':_0x32e1('0x45'),'model':{'withText':!0x0,'label':_0x1b7eeb(_0x3644e0,_0x32e1('0x39')),'commandName':_0x32e1('0xc')}},{'type':_0x32e1('0x45'),'model':{'withText':!0x0,'label':_0x1b7eeb(_0x3644e0,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x32e1('0x3a')}}];for(const _0x282e23 of _0x17a88d){let _0x1aabd1={'type':_0x32e1('0x10')};if(_0x282e23[_0x32e1('0x58')]){const _0x5cbdf2=new _0x474bd1(_0x282e23['model']),_0x568262=this[_0x32e1('0x36')][_0x32e1('0x16')][_0x32e1('0x1')](_0x5cbdf2['commandName']);_0x5cbdf2[_0x32e1('0x48')](_0x32e1('0x8'),_0x32e1('0x32'))['to'](_0x568262,_0x32e1('0x4d'),'isEnabled'),_0x1aabd1={'type':_0x282e23[_0x32e1('0x47')],'model':_0x5cbdf2};}_0x113155[_0x32e1('0x2a')](_0x1aabd1);}_0x174f0c(_0x16fb50,_0x113155);const _0x511b73=_0x17a88d[_0x32e1('0x29')](_0x389dd5=>null!=_0x389dd5[_0x32e1('0x58')])['map'](_0x2443cd=>this[_0x32e1('0x36')]['commands'][_0x32e1('0x1')](_0x2443cd['model'][_0x32e1('0x56')])),_0x3dea5f=_0x16fb50['buttonView'];return _0x3dea5f['actionView'][_0x32e1('0x3c')](_0x32e1('0x32')),_0x3dea5f[_0x32e1('0xd')]['unbind'](_0x32e1('0x32')),_0x3dea5f[_0x32e1('0x2f')][_0x32e1('0x48')](_0x32e1('0x32'))['to'](_0x57811c,_0x32e1('0x32')),_0x3dea5f['arrowView'][_0x32e1('0x48')](_0x32e1('0x32'))[_0x32e1('0x53')](_0x511b73,'isEnabled',(..._0x5ef7cf)=>_0x5ef7cf['some'](_0x514b99=>_0x514b99)),_0x16fb50['on'](_0x32e1('0x5f'),_0x2e7a38=>{this[_0x32e1('0x36')][_0x32e1('0x5f')](_0x2e7a38[_0x32e1('0x20')][_0x32e1('0x56')]),this[_0x32e1('0x36')][_0x32e1('0xf')][_0x32e1('0x66')][_0x32e1('0x9')]();}),_0x16fb50;}['_initializeController'](_0x1157de){const _0x1d10be=this[_0x32e1('0x36')],_0x5621bb=_0x1d10be['config'],_0x1f2c63=_0x1d10be[_0x32e1('0xb')]['get'](_0x32e1('0x46')),_0xf71d74=_0x1d10be[_0x32e1('0xb')][_0x32e1('0x1')]('CommentsRepository'),_0x201ff5=_0x1d10be[_0x32e1('0xb')]['get'](_0x32e1('0x14')),_0x4dc4bb=_0x1d10be[_0x32e1('0xb')][_0x32e1('0x1')](_0x39e248)['me'],_0xe029cf=_0x5621bb['get'](_0x32e1('0x1f'))['SuggestionThreadView'],{CommentsListView:_0x251fca,CommentThreadInputView:_0x41af2e}=_0x1d10be[_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x22'));let _0x337ef6,_0x34fc3c;this[_0x32e1('0x2c')][_0x32e1('0x65')](_0x1157de['id'])?(_0x34fc3c=this['_annotationViews'][_0x32e1('0x1')](_0x1157de['id']),_0x337ef6=_0x34fc3c['mainView']):(_0x337ef6=new _0xe029cf(_0x1d10be[_0x32e1('0x2e')],_0x1157de,_0x4dc4bb,{'disableComments':this[_0x32e1('0x40')],'editorConfig':_0x5621bb[_0x32e1('0x1')](_0x32e1('0x4')),'maxCommentsWhenCollapsed':_0x5621bb[_0x32e1('0x1')](_0x32e1('0x2')),'maxThreadTotalWeight':_0x5621bb[_0x32e1('0x1')](_0x32e1('0x4c')),'maxCommentCharsWhenCollapsed':_0x5621bb[_0x32e1('0x1')](_0x32e1('0x13')),'formatDateTime':_0x4a3a48(_0x5621bb[_0x32e1('0x1')](_0x32e1('0x2e'))),'CommentView':_0x5621bb[_0x32e1('0x1')](_0x32e1('0x49'))['CommentView'],'CommentsListView':_0x251fca,'CommentThreadInputView':_0x41af2e}),_0x337ef6[_0x32e1('0x44')]['on'](_0x32e1('0x5f'),()=>{_0x1d10be[_0x32e1('0xf')][_0x32e1('0x66')][_0x32e1('0x9')]();}),_0x337ef6['discardButton']['on'](_0x32e1('0x5f'),()=>{_0x1d10be['editing'][_0x32e1('0x66')][_0x32e1('0x9')]();}),_0x34fc3c=_0x1f2c63[_0x32e1('0x51')](this[_0x32e1('0x36')]['locale'],_0x337ef6),_0x34fc3c[_0x32e1('0x48')]('isDirty')['to'](_0x337ef6,_0x32e1('0x25')),_0x34fc3c['bind']('length')['to'](_0x337ef6),_0x34fc3c[_0x32e1('0x48')](_0x32e1('0x47'))['to'](_0x337ef6,_0x32e1('0x47'),_0x4a9550=>_0x32e1('0x23')+_0x4a9550),this[_0x32e1('0x2c')][_0x32e1('0x35')](_0x1157de['id'],_0x34fc3c));const _0x26a776=_0xf71d74['createCommentThreadController'](_0x1157de[_0x32e1('0x5e')],_0x337ef6),_0x4ccd8b=new _0x37585b(_0x1d10be,_0x1157de,_0x337ef6,_0x26a776),_0x252771=_0x1157de['getAllAdjacentSuggestions']()[_0x32e1('0x29')](_0x432a6b=>_0x432a6b['isInContent']);_0x337ef6[_0x32e1('0x61')]=_0x1d10be[_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x3'))[_0x32e1('0x5c')][_0x32e1('0x1d')](_0x252771),this[_0x32e1('0x3f')]['set'](_0x1157de,_0x4ccd8b),this[_0x32e1('0x19')]['set'](_0x337ef6,_0x4ccd8b);const _0x508925=_0x1f2c63[_0x32e1('0x6')]({'view':_0x34fc3c,'target':()=>{const _0x28521c=[],_0xdace3d=_0x1157de[_0x32e1('0x34')]()['filter'](_0x3133a9=>_0x3133a9[_0x32e1('0x1e')]);for(const _0x3c32d7 of _0xdace3d)_0x28521c[_0x32e1('0x4b')](..._0x3c32d7[_0x32e1('0x5d')]());return _0x3c984a(_0x1d10be[_0x32e1('0xf')],_0x28521c);},'type':()=>_0x32e1('0x23')+_0x4ccd8b[_0x32e1('0x66')][_0x32e1('0x47')]});_0xf71d74[_0x32e1('0x30')](_0x337ef6,_0x508925),_0x1f2c63[_0x32e1('0x2a')](_0x508925),_0x201ff5[_0x32e1('0x15')](_0x508925);}[_0x32e1('0x60')](_0x106f86){const _0x2fcbeb=this['editor'][_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x46')),_0x25c3ef=this[_0x32e1('0x3f')]['get'](_0x106f86),_0x5c8e7a=_0x25c3ef['view'],_0x57f853=_0x2fcbeb[_0x32e1('0x55')](_0x5c8e7a);_0x57f853&&_0x2fcbeb['remove'](_0x57f853),this[_0x32e1('0x3f')][_0x32e1('0x26')](_0x106f86),this[_0x32e1('0x19')][_0x32e1('0x26')](_0x5c8e7a),_0x25c3ef[_0x32e1('0x1c')]();}['_updateController'](_0x40b021){if(!_0x40b021[_0x32e1('0x1e')]||!this[_0x32e1('0x3f')][_0x32e1('0x65')](_0x40b021))return;const _0xa887ef=this[_0x32e1('0x36')][_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x3')),_0x27e486=this[_0x32e1('0x3f')][_0x32e1('0x1')](_0x40b021),_0x2bdfb6=_0x40b021['getAllAdjacentSuggestions']();_0x27e486[_0x32e1('0x66')][_0x32e1('0x61')]=_0xa887ef['_descriptionFactory'][_0x32e1('0x1d')](_0x2bdfb6);}[_0x32e1('0x1c')](){for(const _0x46aac7 of this[_0x32e1('0x3f')][_0x32e1('0x24')]())this[_0x32e1('0x60')](_0x46aac7);for(const _0x1b334 of this[_0x32e1('0x2c')]['values']())_0x1b334[_0x32e1('0x3b')][_0x32e1('0x1c')]();super[_0x32e1('0x1c')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44b2=['commands','model','change:isDirty','canDiscard','_setPendingAction','_acceptCommand','commentThreadController','get','getRanges','unbind','canEditAt','canAccept','listenTo','isEnabled','discardSuggestion','PENDING_ACTION_SUGGESTION','plugins','PendingActions','bind','destroy','view','_discardCommand','_removePendingAction','stopListening','_editor','execute','_pendingAction','acceptSuggestion','remove'];(function(_0x390914,_0x44b250){const _0x439563=function(_0x720309){while(--_0x720309){_0x390914['push'](_0x390914['shift']());}};_0x439563(++_0x44b250);}(_0x44b2,0x153));const _0x4395=function(_0x390914,_0x44b250){_0x390914=_0x390914-0x0;let _0x439563=_0x44b2[_0x390914];return _0x439563;};import{ObservableMixin as _0x474ce5}from'ckeditor5/src/utils';import{getTranslation as _0x1b0fc5}from'../utils/common-translations';export default class qt extends _0x474ce5(){constructor(_0x4be6be,_0xcdc9ac,_0x209c7,_0xd67f09){super(),this[_0x4395('0xa')]=_0xcdc9ac,this['view']=_0x209c7,this[_0x4395('0xf')]=_0xd67f09,this[_0x4395('0x4')]=_0x4be6be,this[_0x4395('0xe')]=_0x4be6be[_0x4395('0x9')][_0x4395('0x10')](_0x4395('0x7')),this['_discardCommand']=_0x4be6be[_0x4395('0x9')]['get'](_0x4395('0x17')),this[_0x4395('0x0')][_0x4395('0x1b')](_0x4395('0x16'))['to'](this[_0x4395('0xe')],this[_0x4395('0x1')],(_0x5eec3b,_0x263845)=>_0x5eec3b||_0x263845),this[_0x4395('0x0')][_0x4395('0x1b')](_0x4395('0x14'))['to'](this['_acceptCommand'],'isEnabled',_0x39969c=>_0x39969c&&this['_editor'][_0x4395('0xa')]['canEditAt'](_0xcdc9ac[_0x4395('0x11')]())),this[_0x4395('0x0')]['bind'](_0x4395('0xc'))['to'](this['_discardCommand'],_0x4395('0x16'),_0x18c855=>_0x18c855&&this[_0x4395('0x4')][_0x4395('0xa')][_0x4395('0x13')](_0xcdc9ac[_0x4395('0x11')]())),this['_pendingAction']=null,_0x209c7['isDirty']&&this['_setPendingAction'](),this[_0x4395('0x15')](_0x209c7,_0x4395('0x7'),()=>this[_0x4395('0x7')]()),this['listenTo'](_0x209c7,'discardSuggestion',()=>this[_0x4395('0x17')]()),this['listenTo'](_0x209c7,_0x4395('0xb'),()=>{_0x209c7['isDirty']?this[_0x4395('0xd')]():this[_0x4395('0x2')]();});}['acceptSuggestion'](){this[_0x4395('0xe')][_0x4395('0x5')](this['model']['id']);}[_0x4395('0x17')](){this[_0x4395('0x1')][_0x4395('0x5')](this[_0x4395('0xa')]['id']);}[_0x4395('0x1c')](){this[_0x4395('0x0')][_0x4395('0x12')](_0x4395('0x16')),this[_0x4395('0x0')][_0x4395('0x12')](_0x4395('0x14')),this[_0x4395('0x0')][_0x4395('0x12')]('canDiscard'),this[_0x4395('0x3')](),this['commentThreadController'][_0x4395('0x1c')](),this['_pendingAction']&&this[_0x4395('0x2')]();}[_0x4395('0xd')](){const _0x3b7ead=_0x1b0fc5(this['_editor']['locale'],_0x4395('0x18'));this[_0x4395('0x6')]=this['_editor'][_0x4395('0x19')]['get']('PendingActions')['add'](_0x3b7ead);}[_0x4395('0x2')](){null!==this[_0x4395('0x6')]&&this[_0x4395('0x4')][_0x4395('0x19')][_0x4395('0x10')](_0x4395('0x1a'))[_0x4395('0x8')](this['_pendingAction']),this[_0x4395('0x6')]=null;}}
23
+ const _0x5cb5=['canEditAt','_pendingAction','PendingActions','add','_discardCommand','destroy','getRanges','listenTo','remove','plugins','isEnabled','model','_removePendingAction','_setPendingAction','canAccept','get','commentThreadController','unbind','bind','PENDING_ACTION_SUGGESTION','discardSuggestion','isDirty','locale','canDiscard','_editor','commands','execute','view','acceptSuggestion','_acceptCommand'];(function(_0x38a434,_0x5cb50e){const _0x4a84aa=function(_0x19a857){while(--_0x19a857){_0x38a434['push'](_0x38a434['shift']());}};_0x4a84aa(++_0x5cb50e);}(_0x5cb5,0x152));const _0x4a84=function(_0x38a434,_0x5cb50e){_0x38a434=_0x38a434-0x0;let _0x4a84aa=_0x5cb5[_0x38a434];return _0x4a84aa;};import{ObservableMixin as _0x356c77}from'ckeditor5/src/utils';import{getTranslation as _0x4b753a}from'../utils/common-translations';export default class qt extends _0x356c77(){constructor(_0x22d7c0,_0x377890,_0x1fe51f,_0x55e290){super(),this[_0x4a84('0x3')]=_0x377890,this[_0x4a84('0x13')]=_0x1fe51f,this[_0x4a84('0x8')]=_0x55e290,this[_0x4a84('0x10')]=_0x22d7c0,this[_0x4a84('0x15')]=_0x22d7c0[_0x4a84('0x11')][_0x4a84('0x7')](_0x4a84('0x14')),this[_0x4a84('0x1a')]=_0x22d7c0[_0x4a84('0x11')][_0x4a84('0x7')](_0x4a84('0xc')),this[_0x4a84('0x13')][_0x4a84('0xa')](_0x4a84('0x2'))['to'](this[_0x4a84('0x15')],this['_discardCommand'],(_0x29f95e,_0x530077)=>_0x29f95e||_0x530077),this[_0x4a84('0x13')][_0x4a84('0xa')](_0x4a84('0x6'))['to'](this['_acceptCommand'],_0x4a84('0x2'),_0x18edf7=>_0x18edf7&&this[_0x4a84('0x10')][_0x4a84('0x3')][_0x4a84('0x16')](_0x377890['getRanges']())),this[_0x4a84('0x13')][_0x4a84('0xa')](_0x4a84('0xf'))['to'](this[_0x4a84('0x1a')],_0x4a84('0x2'),_0x38ac26=>_0x38ac26&&this[_0x4a84('0x10')]['model'][_0x4a84('0x16')](_0x377890[_0x4a84('0x1c')]())),this['_pendingAction']=null,_0x1fe51f[_0x4a84('0xd')]&&this[_0x4a84('0x5')](),this[_0x4a84('0x1d')](_0x1fe51f,'acceptSuggestion',()=>this['acceptSuggestion']()),this[_0x4a84('0x1d')](_0x1fe51f,_0x4a84('0xc'),()=>this[_0x4a84('0xc')]()),this[_0x4a84('0x1d')](_0x1fe51f,'change:isDirty',()=>{_0x1fe51f[_0x4a84('0xd')]?this[_0x4a84('0x5')]():this[_0x4a84('0x4')]();});}[_0x4a84('0x14')](){this[_0x4a84('0x15')][_0x4a84('0x12')](this[_0x4a84('0x3')]['id']);}[_0x4a84('0xc')](){this[_0x4a84('0x1a')][_0x4a84('0x12')](this[_0x4a84('0x3')]['id']);}['destroy'](){this[_0x4a84('0x13')]['unbind'](_0x4a84('0x2')),this[_0x4a84('0x13')][_0x4a84('0x9')](_0x4a84('0x6')),this['view']['unbind'](_0x4a84('0xf')),this['stopListening'](),this['commentThreadController'][_0x4a84('0x1b')](),this[_0x4a84('0x17')]&&this[_0x4a84('0x4')]();}['_setPendingAction'](){const _0x2d8b44=_0x4b753a(this[_0x4a84('0x10')][_0x4a84('0xe')],_0x4a84('0xb'));this[_0x4a84('0x17')]=this[_0x4a84('0x10')][_0x4a84('0x1')][_0x4a84('0x7')](_0x4a84('0x18'))[_0x4a84('0x19')](_0x2d8b44);}[_0x4a84('0x4')](){null!==this[_0x4a84('0x17')]&&this[_0x4a84('0x10')][_0x4a84('0x1')][_0x4a84('0x7')](_0x4a84('0x18'))[_0x4a84('0x0')](this[_0x4a84('0x17')]),this[_0x4a84('0x17')]=null;}}