@ckeditor/ckeditor5-track-changes 36.0.1 → 37.0.0-rc.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 (127) hide show
  1. package/build/track-changes.js +1 -1
  2. package/ckeditor5-metadata.json +10 -0
  3. package/package.json +20 -5
  4. package/src/augmentation.d.ts +36 -0
  5. package/src/augmentation.js +23 -0
  6. package/src/commands/acceptsuggestioncommand.d.ts +20 -0
  7. package/src/commands/acceptsuggestioncommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.d.ts +20 -0
  9. package/src/commands/discardsuggestioncommand.js +1 -1
  10. package/src/commands/executeonallsuggestionscommand.d.ts +20 -0
  11. package/src/commands/executeonallsuggestionscommand.js +1 -1
  12. package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -0
  13. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  14. package/src/commands/trackchangescommand.d.ts +22 -0
  15. package/src/commands/trackchangescommand.js +1 -1
  16. package/src/index.d.ts +12 -0
  17. package/src/index.js +1 -1
  18. package/src/integrations/alignment.d.ts +13 -0
  19. package/src/integrations/alignment.js +1 -1
  20. package/src/integrations/basicstyles.d.ts +13 -0
  21. package/src/integrations/basicstyles.js +1 -1
  22. package/src/integrations/blockquote.d.ts +13 -0
  23. package/src/integrations/blockquote.js +1 -1
  24. package/src/integrations/ckbox.d.ts +13 -0
  25. package/src/integrations/ckbox.js +1 -1
  26. package/src/integrations/codeblock.d.ts +13 -0
  27. package/src/integrations/codeblock.js +1 -1
  28. package/src/integrations/comments.d.ts +10 -0
  29. package/src/integrations/comments.js +1 -1
  30. package/src/integrations/deletecommand.d.ts +12 -0
  31. package/src/integrations/deletecommand.js +1 -1
  32. package/src/integrations/documentlist.d.ts +13 -0
  33. package/src/integrations/documentlist.js +1 -1
  34. package/src/integrations/documentlistproperties.d.ts +25 -0
  35. package/src/integrations/documentlistproperties.js +1 -1
  36. package/src/integrations/entercommand.d.ts +11 -0
  37. package/src/integrations/entercommand.js +1 -1
  38. package/src/integrations/findandreplace.d.ts +17 -0
  39. package/src/integrations/findandreplace.js +1 -1
  40. package/src/integrations/font.d.ts +13 -0
  41. package/src/integrations/font.js +1 -1
  42. package/src/integrations/heading.d.ts +13 -0
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +13 -0
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +13 -0
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +13 -0
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +13 -0
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +19 -0
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +14 -0
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +13 -0
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +11 -0
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +13 -0
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +13 -0
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +25 -0
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +13 -0
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +13 -0
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +13 -0
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +13 -0
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +13 -0
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +13 -0
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +11 -0
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +13 -0
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +14 -0
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +38 -0
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +17 -0
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +17 -0
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +22 -0
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +17 -0
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +17 -0
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableproperties.d.ts +23 -0
  97. package/src/integrations/tableproperties.js +1 -1
  98. package/src/integrations/title.d.ts +13 -0
  99. package/src/integrations/title.js +1 -1
  100. package/src/integrations/undo.d.ts +13 -0
  101. package/src/integrations/undo.js +1 -1
  102. package/src/integrations/utils.d.ts +17 -0
  103. package/src/integrations/utils.js +1 -1
  104. package/src/suggestion.d.ts +266 -0
  105. package/src/suggestion.js +1 -1
  106. package/src/suggestiondescriptionfactory.d.ts +151 -0
  107. package/src/suggestiondescriptionfactory.js +1 -1
  108. package/src/trackchanges.d.ts +222 -0
  109. package/src/trackchanges.js +1 -1
  110. package/src/trackchangesconfig.d.ts +53 -0
  111. package/src/trackchangesconfig.js +23 -0
  112. package/src/trackchangesdata.d.ts +38 -0
  113. package/src/trackchangesdata.js +1 -1
  114. package/src/trackchangesediting.d.ts +391 -0
  115. package/src/trackchangesediting.js +1 -1
  116. package/src/trackchangesui.d.ts +34 -0
  117. package/src/trackchangesui.js +1 -1
  118. package/src/ui/suggestioncontroller.d.ts +36 -0
  119. package/src/ui/suggestioncontroller.js +1 -1
  120. package/src/ui/view/basesuggestionthreadview.d.ts +166 -0
  121. package/src/ui/view/basesuggestionthreadview.js +1 -1
  122. package/src/ui/view/suggestionthreadview.d.ts +184 -0
  123. package/src/ui/view/suggestionthreadview.js +1 -1
  124. package/src/utils/common-translations.d.ts +5 -0
  125. package/src/utils/common-translations.js +1 -1
  126. package/src/utils/utils.d.ts +26 -0
  127. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4544=['_cutOutSuggestionMarker','change','_editor','deletion:discard','range','error-saving-suggestion-data-suggestion-discarded','_isForcedDefaultExecutionBlock','name','split','authoredAt','ck-suggestion-marker-','locale','discardSuggestion','formatInline','getAncestors','addMarker:suggestion:formatBlock','getRanges','dataReady','substr','after','requires','_adapter','insertion:','dataToMarker','newRange','suggestionChanged','accept','dataDowncast','track-changes-adapter-already-set','isAfter','execute','data','markers','formatGroupId','skipNestingCheck','commands','acceptSuggestion','_defaultCallbacks','_customCallbacks','getFirstRange','data-suggestion','next','some','addRange','addSuggestionData','containsRangeInObject','join','adapter','fetchCommentThread','_suggestionFactory','_enabledCommands','commentThread','isBefore','getSuggestion','documentSelection','createRangeIn','move','clone','isAtEnd','_onDiscard','deletion:','has','bindElementToMarker','addComment','subType','head','forceDefaultExecution','getUser','markerReady','_suggestions','markMultiRangeDeletion','showSuggestionHighlights','get','getDifference','writer','getMarkers','_commentsRepository','size','update:suggestion','markerName','getIntersection','position','author','CommentsRepository','_checkSuggestionCorrectness','formatBlock:join','$marker','trackChanges','every','_handleNewSuggestionMarker','removed','removeAttribute','formatBlock','targetPosition','insertion:join','enableCommand','getAllAdjacentSuggestions','conversion','PendingActions','hasComments','markMultiRangeBlockFormat','sort','multipleBlocks','unbind','suggestion','delete','trackChanges.trackFormatChanges','plugins','isLocal','suggestion:','activeMarkers','mapper','deleteContent','deletion:chain','change:activeMarkers','isIntersectingWithRange','track-changes-adapter-missing-getsuggestion','listenTo','element','end','_setSuggestionRange','deletion','getShiftedBy','insertContent','type','remove','deletion:accept','marker-count','insertion','removeMarker','value','filter','isLimit','formatBlock:discard','document','_removeSuggestion','_getExternalAuthor','removeMarkers','formatInline:discard','includes','toViewElement','track-changes-command-not-found','_saved','@external','accepted','_joinSuggestions','isCollapsed','getSuggestionCallback','Users','map','consume','addSuggestion','low','resolve','schema','consumable','_suggestionState','createSelection','getChangedMarkers','containsPosition','upcast','start','acceptSelectedSuggestions','_createSuggestion','formatBlock:accept','_model','getNearestSelectionRange','_rangeIsInLocalUserInsertion','_refreshSuggestionsChain','discard','detach','ck-suggestion-marker-formatBlock','previous','isObject','length','markMultiRangeInsertion','push','fromCharCode','collaboration.channelId','isDocumentOperation','group','enqueueChange','TrackChangesEditing','track-changes-suggestion-not-found','unbindElementFromMarkerName','getSuggestions','createPositionAt','define','open','discardAllSuggestions','_getAuthorFromId','editor','trackChangesCommand','isRemovable','addMarkerName','registerPostFixer','buildSuggestion','isSelectable','track-changes-suggestion-data-mismatch','for','formatInline:join','updateMarker','discardSelectedSuggestions','markInlineFormat','elementStart','lowest','normal','nodeBefore','insert','differ','markerToData','containsItem','root','ready','acceptAllSuggestions','then','getCustomProperty','createdAt','external:','batch','removeClass','_descriptionFactory','creator','from','highest','_updateSuggestionData','isInContent','model','high','markBlockFormat','markInsertion','_trackFormatChanges','ck-suggestion-marker--active','containerElement','clear','getMultiRangeId','add','catch','set','setAttribute','markerNameToElements','formatInline:','createPositionBefore','widget','isMultiRange','getRange','attributes','splice','ck-suggestion-marker','fire','getFirstMarker','registerCustomCallback','getAttribute','insertion:chain','item','rethrowUnexpectedError','rootName','removeMarker:suggestion:formatBlock','suggestionUnloaded','commandName','addHighlight','isEqual','editingDowncast','getLastMatchingPosition','parent','isAtStart','change:data','isNextTo','oldRange','elementEnd','fromRange','before','stop','_findSuggestions','selection','stopListening','isBlock','createElement','originalSuggestionId','_splitMarkerName','formatBlock:','addClass','isOwn','isInsideObject','insertion:accept','options','containsRange','refresh','_addSuggestionMarker','pluginName','init','_registerDefaultCallbacks','_setSuggestionData','backward','nodeAfter','deletion:join','markerToHighlight','setSelection','createRange','forward','notReady','config','addMarker','values','multi','_joinWithAdjacentSuggestions','editing','applyOperation','_addThreadToSuggestion','formatInline:accept','updateSuggestion','addMarker:suggestion','$graveyard'];(function(_0x26ddfc,_0x4544c8){const _0x10a833=function(_0x2692cb){while(--_0x2692cb){_0x26ddfc['push'](_0x26ddfc['shift']());}};_0x10a833(++_0x4544c8);}(_0x4544,0x107));const _0x10a8=function(_0x26ddfc,_0x4544c8){_0x26ddfc=_0x26ddfc-0x0;let _0x10a833=_0x4544[_0x26ddfc];return _0x10a833;};import{Plugin as _0x25b1da,PendingActions as _0xb747bc}from'ckeditor5/src/core';import{LiveRange as _0x1ee699}from'ckeditor5/src/engine';import{CKEditorError as _0x57d3ea,uid as _0x57911e,priorities as _0x2878f6,EmitterMixin as _0x3b29d5,mix as _0x2a95b8,logWarning as _0xbfee5c}from'ckeditor5/src/utils';import{toWidget as _0x42b4fc}from'ckeditor5/src/widget';import{Users as _0x227919,hashObject as _0x1dda37}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b4463 from'./commands/trackchangescommand';import _0x386c4c from'./commands/acceptsuggestioncommand';import _0x17d4da from'./commands/discardsuggestioncommand';import _0x1041d9 from'./commands/executeonallsuggestionscommand';import _0x58d9e3 from'./commands/executeonselectedsuggestionscommand';import _0x2ac191 from'./suggestion';import _0x40eec9 from'./suggestiondescriptionfactory';import _0x1e54c7 from'./integrations/alignment';import _0x3163b3 from'./integrations/basicstyles';import _0x54b332 from'./integrations/blockquote';import _0x5c724a from'./integrations/ckbox';import _0x2be774 from'./integrations/codeblock';import _0x4da576 from'./integrations/comments';import _0x1c3054 from'./integrations/deletecommand';import _0x5a9610 from'./integrations/documentlist';import _0x4250f3 from'./integrations/entercommand';import _0x13b73c from'./integrations/findandreplace';import _0x72d3bf from'./integrations/font';import _0xac0a4b from'./integrations/heading';import _0x460088 from'./integrations/highlight';import _0x28c3e5 from'./integrations/horizontalline';import _0x5ad5ca from'./integrations/htmlembed';import _0x274860 from'./integrations/image';import _0x3d2c17 from'./integrations/imagereplace';import _0x277b6e from'./integrations/importword';import _0x55e8e6 from'./integrations/indent';import _0x858589 from'./integrations/inputcommand';import _0x606e7d from'./integrations/link';import _0x19a446 from'./integrations/list';import _0x2a62fa from'./integrations/listproperties';import _0xf4702 from'./integrations/mediaembed';import _0x3f776d from'./integrations/mention';import _0x2d3285 from'./integrations/pagebreak';import _0x8fb530 from'./integrations/paragraph';import _0x2e2c15 from'./integrations/removeformat';import _0x38abc9 from'./integrations/restrictededitingmode';import _0x632245 from'./integrations/shiftentercommand';import _0x2763f5 from'./integrations/standardeditingmode';import _0x22f0fd from'./integrations/style';import _0x4dc774 from'./integrations/table';import _0x4d0784 from'./integrations/tablemergesplit';import _0x3b79fe from'./integrations/tableheadings';import _0x329ae1 from'./integrations/tableclipboard';import _0x3e255a from'./integrations/tablecolumnresize';import _0x487469 from'./integrations/title';import _0x3378f4 from'./integrations/undo';import{getTranslation as _0x422247}from'./utils/common-translations';import _0x2ead95 from'./integrations/tablecaption';import _0xd9df0c from'./integrations/documentlistproperties';import _0x48d5c3 from'./integrations/tableproperties';export default class p extends _0x25b1da{static get[_0x10a8('0x46')](){return[_0x10a8('0x85'),_0x227919,_0xb747bc,_0x1e54c7,_0x3163b3,_0x54b332,_0x5c724a,_0x2be774,_0x4da576,_0x1c3054,_0x5a9610,_0xd9df0c,_0x4250f3,_0x13b73c,_0x72d3bf,_0xac0a4b,_0x460088,_0x28c3e5,_0x5ad5ca,_0x274860,_0x3d2c17,_0x277b6e,_0x55e8e6,_0x858589,_0x606e7d,_0x19a446,_0x2a62fa,_0xf4702,_0x3f776d,_0x2d3285,_0x8fb530,_0x2e2c15,_0x38abc9,_0x632245,_0x2763f5,_0x22f0fd,_0x4dc774,_0x4d0784,_0x3b79fe,_0x2ead95,_0x329ae1,_0x3e255a,_0x48d5c3,_0x487469,_0x3378f4];}static get[_0x10a8('0x1a')](){return _0x10a8('0xe8');}constructor(_0x59d86c){function _0x2aaba0(_0x56ba34){return _0x56ba34[_0x10a8('0xc7')](_0x54c837=>String[_0x10a8('0xe3')](_0x54c837))[_0x10a8('0x60')]('');}super(_0x59d86c),this[_0x10a8('0x120')](_0x10a8('0xa0'),[]),this['on'](_0x10a8('0xa4'),(_0x52c22e,_0x438331,_0x2fa347,_0x2bbab1)=>{this[_0x10a8('0xd7')][_0x10a8('0x33')](()=>{for(const _0x1646bf of[..._0x2bbab1,..._0x2fa347])this[_0x10a8('0xd7')][_0x10a8('0x52')][_0x10a8('0x6f')](_0x1646bf)&&_0x59d86c[_0x10a8('0x2b')]['reconvertMarker'](_0x1646bf);});}),this[_0x10a8('0x10f')]=new _0x40eec9(this[_0x10a8('0xf1')][_0x10a8('0x115')][_0x10a8('0xcc')],this[_0x10a8('0xf1')][_0x10a8('0x3d')]),this[_0x10a8('0x47')]=null,this[_0x10a8('0x63')]=new Dt(this[_0x10a8('0xf1')]),this['_suggestions']=new Map(),this[_0x10a8('0x7e')]=_0x59d86c[_0x10a8('0x9d')]['get'](_0x10a8('0x85')),this[_0x10a8('0x64')]=new Set(),this[_0x10a8('0xd7')]=this['editor'][_0x10a8('0x115')],this[_0x10a8('0xce')]=new WeakMap(),this[_0x10a8('0x38')]=!0x1,_0x59d86c[_0x10a8('0x26')][_0x10a8('0xed')](_0x10a8('0x9c'),!0x0),this[_0x10a8('0x119')]=_0x59d86c['config']['get'](_0x10a8('0x9c')),this[_0x2aaba0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2aaba0([0x34,0x30,0x34,0x36,0x30,0x34,0x31,0x34]);}[_0x10a8('0x1b')](){const _0x4e2fda=this[_0x10a8('0xf1')];_0x4e2fda['conversion'][_0x10a8('0xf9')](_0x10a8('0x138'))[_0x10a8('0x21')]({'model':'suggestion','view':_0x3849c5=>{const {id:_0x35ac2b,type:_0x2f458c}=this[_0x10a8('0x10')](_0x3849c5[_0x10a8('0x81')]),_0x12e18e=[_0x10a8('0x12a'),_0x10a8('0x3c')+_0x2f458c];let _0x4d9d4a=0xbb8;return this['activeMarkers'][_0x10a8('0xbd')](_0x3849c5[_0x10a8('0x81')])&&(_0x12e18e['push'](_0x10a8('0x11a')),_0x4d9d4a=0xbc2),'deletion'==_0x2f458c&&(_0x4d9d4a+=0x5),{'classes':_0x12e18e,'attributes':{'data-suggestion':_0x35ac2b},'priority':_0x4d9d4a};}}),_0x4e2fda[_0x10a8('0x93')][_0x10a8('0xf9')](_0x10a8('0x4d'))['add'](_0x17708c=>{_0x17708c['on'](_0x10a8('0x30'),(_0x98b12d,_0x54c820,_0x57b2c7)=>{if(!_0x57b2c7[_0x10a8('0x16')]['showSuggestionHighlights'])return;const _0x29af52=_0x54c820['item'];if(!_0x29af52)return;const _0x370a7b=_0x57b2c7[_0x10a8('0xa1')][_0x10a8('0xbe')](_0x29af52);_0x4e2fda['model'][_0x10a8('0xcc')][_0x10a8('0xdf')](_0x29af52)&&_0x370a7b&&!_0x370a7b[_0x10a8('0x10a')](_0x10a8('0x125'))&&_0x370a7b['is'](_0x10a8('0x11b'))&&_0x42b4fc(_0x370a7b,_0x57b2c7[_0x10a8('0x7c')]);},{'priority':_0x10a8('0x116')});}),_0x4e2fda['conversion'][_0x10a8('0xf9')]('dataDowncast')[_0x10a8('0x21')]({'model':_0x10a8('0x9a'),'view':(_0x5360e6,_0x2ba5c0)=>{if(!_0x2ba5c0['options'][_0x10a8('0x79')])return null;const {type:_0x1b1f89}=this['_splitMarkerName'](_0x5360e6[_0x10a8('0x81')]);return{'classes':[_0x10a8('0x12a'),_0x10a8('0x3c')+_0x1b1f89],'priority':0xbb8};}});const _0x3d177e=({showActiveMarkers:_0x36ac60=!0x0}={})=>(_0x2e0681,_0x5340d7,_0x42d990)=>{if(!_0x5340d7[_0x10a8('0x130')])return;if(_0x5340d7[_0x10a8('0x130')]['is']('selection'))return void _0x42d990[_0x10a8('0xcd')][_0x10a8('0xc8')](_0x5340d7[_0x10a8('0x130')],_0x2e0681['name']);const _0x1056fc=_0x42d990[_0x10a8('0xa1')][_0x10a8('0xbe')](_0x5340d7[_0x10a8('0x130')]);if(!(_0x5340d7[_0x10a8('0x130')]['is'](_0x10a8('0xa8'))&&_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xcc')]['isBlock'](_0x5340d7['item'])&&!_0x1056fc[_0x10a8('0x10a')](_0x10a8('0x136'))))return;const {id:_0x2c2340}=this['_splitMarkerName'](_0x5340d7['markerName']);_0x42d990[_0x10a8('0x7c')][_0x10a8('0x12')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1056fc),_0x42d990[_0x10a8('0x7c')][_0x10a8('0x121')](_0x10a8('0x5a'),_0x2c2340,_0x1056fc),_0x42d990[_0x10a8('0xa1')][_0x10a8('0x70')](_0x1056fc,_0x5340d7['markerName']),_0x36ac60&&(this[_0x10a8('0xa0')][_0x10a8('0xbd')](_0x5340d7[_0x10a8('0x81')])?_0x42d990['writer'][_0x10a8('0x12')](_0x10a8('0x11a'),_0x1056fc):_0x42d990[_0x10a8('0x7c')][_0x10a8('0x10e')]('ck-suggestion-marker--active',_0x1056fc));for(const _0x5f1294 of _0x4e2fda[_0x10a8('0x115')][_0x10a8('0x69')](_0x5340d7[_0x10a8('0x130')])['getItems']())_0x42d990[_0x10a8('0xcd')]['consume'](_0x5f1294,_0x2e0681[_0x10a8('0x39')]);_0x42d990['consumable']['consume'](_0x5340d7[_0x10a8('0x130')],_0x2e0681[_0x10a8('0x39')]);};_0x4e2fda['conversion'][_0x10a8('0xf9')](_0x10a8('0x4d'))[_0x10a8('0x11e')](_0x1062a7=>{_0x1062a7['on'](_0x10a8('0x41'),(_0x2fdb65,_0x40a2a1,_0x215949)=>{_0x215949['options'][_0x10a8('0x79')]&&_0x3d177e({'showActiveMarkers':!0x1})(_0x2fdb65,_0x40a2a1,_0x215949);},{'priority':_0x10a8('0x112')});}),_0x4e2fda[_0x10a8('0x93')]['for'](_0x10a8('0x4d'))[_0x10a8('0x104')]({'model':_0x10a8('0x9a'),'view':(_0x281d6d,_0x5c8793)=>_0x5c8793[_0x10a8('0x16')][_0x10a8('0x79')]?null:{'group':'suggestion','name':_0x281d6d[_0x10a8('0x44')](_0x10a8('0x9a')[_0x10a8('0xe0')]+0x1)}}),_0x4e2fda[_0x10a8('0x93')]['for'](_0x10a8('0xd2'))['elementToElement']({'view':{'name':_0x10a8('0x9a'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x51232d,{writer:_0x15a6f6})=>{let _0x3e16ff='suggestion:'+_0x51232d[_0x10a8('0x12e')]('suggestion-type')+':'+_0x51232d[_0x10a8('0x12e')]('id');return _0x51232d[_0x10a8('0x12e')](_0x10a8('0xb1'))&&(_0x3e16ff+=':'+_0x51232d['getAttribute']('marker-count')),_0x15a6f6[_0x10a8('0xe')](_0x10a8('0x88'),{'data-name':_0x3e16ff});}}),_0x4e2fda[_0x10a8('0x93')][_0x10a8('0xf9')](_0x10a8('0xd2'))[_0x10a8('0x49')]({'view':_0x10a8('0x9a')}),_0x4e2fda[_0x10a8('0x93')][_0x10a8('0xf9')](_0x10a8('0x138'))[_0x10a8('0x11e')](_0x3daf97=>{_0x3daf97['on'](_0x10a8('0x41'),_0x3d177e(),{'priority':'high'});}),_0x4e2fda['conversion']['for'](_0x10a8('0x138'))[_0x10a8('0x11e')](_0x1ca006=>{_0x1ca006['on'](_0x10a8('0x133'),(_0x11f9c8,_0x48c7c0,_0x4b8de5)=>{const _0x5c83c4=_0x4b8de5[_0x10a8('0xa1')][_0x10a8('0x122')](_0x48c7c0[_0x10a8('0x81')]);if(_0x5c83c4)for(const _0x3fddc6 of _0x5c83c4)_0x3fddc6[_0x10a8('0x10a')](_0x10a8('0x136'))||(_0x4b8de5[_0x10a8('0x7c')][_0x10a8('0x10e')]([_0x10a8('0x12a'),_0x10a8('0xdd'),_0x10a8('0x11a')],_0x3fddc6),_0x4b8de5['writer'][_0x10a8('0x8d')]('data-suggestion',_0x3fddc6),_0x4b8de5['mapper'][_0x10a8('0xea')](_0x3fddc6,_0x48c7c0[_0x10a8('0x81')]));},{'priority':'high'});}),_0x4e2fda['model']['document'][_0x10a8('0xf5')](_0x1b3ddf=>{let _0x271f25=!0x1;const _0x529147=Array[_0x10a8('0x111')](_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xb8')][_0x10a8('0x103')][_0x10a8('0xd0')]()),_0x18c020=new Set();for(const {name:_0x58ecec,data:_0x980595}of _0x529147){const {group:_0x337283,type:_0x519c65,id:_0x25a5e2}=this[_0x10a8('0x10')](_0x58ecec);if(_0x10a8('0x9a')!==_0x337283)continue;const _0x4a7173=this[_0x10a8('0x77')][_0x10a8('0x7a')](_0x25a5e2);if(null!=_0x980595[_0x10a8('0x4a')]){_0x10a8('0x3f')==_0x519c65&&(_0x271f25=_0x271f25||_t(_0x980595['newRange'],_0x58ecec,_0x1b3ddf,_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xcc')]));if(_0x980595[_0x10a8('0x4a')][_0x10a8('0xc4')]||_0x10a8('0x31')==_0x980595['newRange'][_0x10a8('0x106')]['rootName']||_0x10a8('0x8e')==_0x519c65&&!$t(_0x980595[_0x10a8('0x4a')])||_0x10a8('0xab')==_0x519c65&&!(!Bt(_0x378917=_0x980595[_0x10a8('0x4a')])&&!function(_0x2b4f08){return _0x2b4f08[_0x10a8('0xd3')][_0x10a8('0x1')]==_0x2b4f08[_0x10a8('0xa9')][_0x10a8('0x101')]&&_0x2b4f08['start'][_0x10a8('0x6c')];}(_0x378917)))_0x1b3ddf[_0x10a8('0xb3')](_0x58ecec),_0x271f25=!0x0;else{if(!_0x4a7173||!_0x4a7173[_0x10a8('0x114')])continue;_0x18c020[_0x10a8('0x11e')](_0x4a7173);}}}var _0x378917;return _0x18c020[_0x10a8('0x7f')]>0x0&&(_0x271f25=!!this[_0x10a8('0x2a')](_0x18c020)||_0x271f25),_0x271f25;}),_0x4e2fda['model']['document'][_0x10a8('0xf5')](_0x384919=>{let _0x13b80b=!0x1;for(const _0x1bacde of _0x4e2fda[_0x10a8('0x115')]['document'][_0x10a8('0x103')]['getChanges']()){if(_0x10a8('0x102')!=_0x1bacde[_0x10a8('0xae')])continue;const _0x5eb6fc=_0x1bacde[_0x10a8('0x83')][_0x10a8('0xac')](_0x1bacde[_0x10a8('0xe0')]);if(_0x5eb6fc[_0x10a8('0x6c')])for(const _0x4c6d19 of this[_0x10a8('0x77')][_0x10a8('0x28')]()){if(_0x4c6d19[_0x10a8('0x126')]||!_0x4c6d19[_0x10a8('0x114')])continue;if(_0x10a8('0x8e')!=_0x4c6d19[_0x10a8('0xae')])continue;const _0x3961ae=_0x4c6d19[_0x10a8('0x59')]();if(_0x3961ae[_0x10a8('0xd3')]['parent']!=_0x3961ae['end'][_0x10a8('0x1')]&&_0x3961ae[_0x10a8('0xa9')][_0x10a8('0x137')](_0x1bacde['position'])){const _0x389521=_0x4e2fda['model'][_0x10a8('0x23')](_0x3961ae[_0x10a8('0xd3')],_0x5eb6fc);_0x384919[_0x10a8('0xfb')](_0x4c6d19[_0x10a8('0x12c')](),{'range':_0x389521}),_0x13b80b=!0x0;}}}return _0x13b80b;}),_0x4e2fda['model'][_0x10a8('0x52')]['on'](_0x10a8('0x80'),(_0x606df9,_0x1e8305,_0x4b81b1)=>{if(null==_0x4b81b1){const {id:_0x5bcbbc}=this['_splitMarkerName'](_0x1e8305[_0x10a8('0x39')]),_0x1cfebc=this[_0x10a8('0x77')]['get'](_0x5bcbbc);_0x1cfebc&&_0x1cfebc[_0x10a8('0xf4')](_0x1e8305['name']);}}),_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xb8')]['on'](_0x10a8('0x3'),()=>{const _0x929fd6=Array[_0x10a8('0x111')](_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xb8')]['differ'][_0x10a8('0xd0')]())[_0x10a8('0xb5')](_0xa1fa03=>_0x10a8('0x9a')===this[_0x10a8('0x10')](_0xa1fa03[_0x10a8('0x39')])[_0x10a8('0xe6')]);if(0x0===_0x929fd6[_0x10a8('0xe0')])return;_0x929fd6['sort']((_0x5e6773,_0x396387)=>{const _0x1f49a5=_0x5e6773[_0x10a8('0x51')][_0x10a8('0x5')],_0xa7fa16=_0x396387[_0x10a8('0x51')][_0x10a8('0x5')];return null===_0x1f49a5&&null===_0xa7fa16?0x0:null===_0x1f49a5&&null!==_0xa7fa16?-0x1:null!==_0x1f49a5&&null===_0xa7fa16?0x1:_0x1f49a5[_0x10a8('0xd3')][_0x10a8('0x66')](_0xa7fa16[_0x10a8('0xd3')])?-0x1:0x1;});const _0x4dcdbb=new Set(),_0x43f77f=new Set();for(const {name:_0x20279a,data:_0x5ccf75}of _0x929fd6){const {id:_0x169d44}=this['_splitMarkerName'](_0x20279a);if(null===_0x5ccf75[_0x10a8('0x5')]){const _0x51d7ba=this[_0x10a8('0x8b')](_0x20279a);_0x43f77f[_0x10a8('0x11e')](_0x51d7ba);}else{const _0x3a1376=this['_suggestions'][_0x10a8('0x7a')](_0x169d44);null!==_0x5ccf75['newRange']||_0x3a1376[_0x10a8('0x114')]?(_0x4dcdbb['add'](_0x3a1376[_0x10a8('0x73')]),_0x43f77f[_0x10a8('0x11e')](_0x3a1376)):this[_0x10a8('0xb9')](_0x3a1376);}}_0x43f77f[_0x10a8('0x7f')]>0x0&&this[_0x10a8('0xda')](_0x43f77f);for(const _0x1afec7 of _0x4dcdbb)this[_0x10a8('0x12b')](_0x10a8('0x4b'),_0x1afec7);}),_0x4e2fda[_0x10a8('0x115')]['on'](_0x10a8('0x2c'),(_0x129705,_0x5099fa)=>{const _0xbfa1cf=_0x5099fa[0x0];if(!this[_0x10a8('0x77')][_0x10a8('0x7f')])return;if(!_0xbfa1cf[_0x10a8('0xe5')])return;if(_0xbfa1cf[_0x10a8('0x10d')]['isUndo']||!_0xbfa1cf['batch'][_0x10a8('0x9e')])return;let _0x325ce1,_0x239fec;switch(_0xbfa1cf[_0x10a8('0xae')]){case'insert':_0x325ce1=_0x4e2fda[_0x10a8('0x115')]['createPositionAt'](_0xbfa1cf[_0x10a8('0x83')]),_0x239fec=_0x325ce1[_0x10a8('0xac')](_0xbfa1cf['howMany']);break;case _0x10a8('0x3a'):_0x325ce1=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xec')](_0xbfa1cf['splitPosition']),_0x239fec=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xec')](_0xbfa1cf['moveTargetPosition']);break;case _0x10a8('0x6a'):_0x325ce1=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xec')](_0xbfa1cf[_0x10a8('0x8f')]),_0x239fec=_0x325ce1['getShiftedBy'](_0xbfa1cf['howMany']);break;default:return;}const _0x5b2de6=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0x23')](_0x325ce1,_0x239fec);_0x4e2fda[_0x10a8('0x115')][_0x10a8('0x33')](()=>{for(const {suggestion:_0x251d8c,meta:_0x5a89e5}of this['_findSuggestions'](_0x5b2de6)){if(_0x251d8c['isMultiRange'])continue;if(_0x10a8('0x3f')==_0x251d8c[_0x10a8('0xae')])continue;const _0x249131=_0x251d8c['data']&&_0x251d8c[_0x10a8('0x51')][_0x10a8('0x98')];('formatBlock'!=_0x251d8c['type']||_0x10a8('0x3a')==_0xbfa1cf[_0x10a8('0xae')]&&!_0x249131)&&(_0x5a89e5['containsRangeInObject']||_0x10a8('0xb2')==_0x251d8c[_0x10a8('0xae')]&&_0x5a89e5['isOwn']||_0x251d8c[_0x10a8('0x59')]()[_0x10a8('0x17')](_0x5b2de6)&&this['_breakSuggestionMarker'](_0x251d8c,_0x325ce1,_0x239fec));}});},{'priority':_0x10a8('0xff')}),_0x4e2fda[_0x10a8('0x115')]['on'](_0x10a8('0xa2'),(_0x1b1ae6,_0xc1fa44)=>{const _0x19f40d=_0xc1fa44[0x0],_0x3b1d07=_0xc1fa44[0x1];if(_0x3b1d07&&_0x3b1d07[_0x10a8('0x74')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x10a8('0xf2')][_0x10a8('0xb4')])return;if(_0x19f40d['isCollapsed'])return;const _0x2a16ac=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xcc')],{start:_0x18e87d,end:_0x10aaef}=_0x19f40d[_0x10a8('0x59')](),_0xefd793=_0x18e87d[_0x10a8('0x1f')]&&_0x2a16ac['isLimit'](_0x18e87d[_0x10a8('0x1f')])?null:_0x2a16ac['getNearestSelectionRange'](_0x18e87d,_0x10a8('0x24')),_0x14238c=_0x10aaef[_0x10a8('0x101')]&&_0x2a16ac[_0x10a8('0xb6')](_0x10aaef[_0x10a8('0x101')])?null:_0x2a16ac[_0x10a8('0xd8')](_0x10aaef,_0x10a8('0x1e')),_0x264438=_0x4e2fda['model'][_0x10a8('0x23')](_0xefd793?_0xefd793[_0x10a8('0xd3')]:_0x18e87d,_0x14238c?_0x14238c[_0x10a8('0xa9')]:_0x10aaef);_0x4e2fda[_0x10a8('0x115')][_0x10a8('0x33')](_0x13ee8d=>{this['markDeletion'](_0x264438);const _0xa3531b=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xcc')][_0x10a8('0xd8')](_0x264438[_0x10a8('0xd3')]);_0x19f40d['is'](_0x10a8('0x68'))?_0x13ee8d[_0x10a8('0x22')](_0xa3531b):_0x19f40d['setTo'](_0xa3531b);}),_0x1b1ae6['stop']();},{'priority':_0x2878f6[_0x10a8('0x100')]+0xa}),_0x4e2fda[_0x10a8('0x115')]['on'](_0x10a8('0xad'),(_0xb4e56,_0xf3d3b2)=>{const _0x8a2d8b=_0xf3d3b2[_0xf3d3b2['length']-0x1];_0x8a2d8b&&_0x8a2d8b[_0x10a8('0x74')]||this[_0x10a8('0x38')]||this[_0x10a8('0xf2')][_0x10a8('0xb4')]&&(_0x4e2fda[_0x10a8('0x115')][_0x10a8('0x33')](()=>{let _0x4f8cdd=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xad')](_0xf3d3b2[0x0],_0xf3d3b2[0x1],_0xf3d3b2[0x2],_0xf3d3b2[0x3],{'forceDefaultExecution':!0x0});if(!_0x4f8cdd)return;_0xb4e56['return']=_0x4f8cdd[_0x10a8('0x6b')]();const _0x3ce3a4=_0x4f8cdd[_0x10a8('0xa9')][_0x10a8('0x101')],_0x1b1a5d=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xcc')];_0x3ce3a4&&_0x1b1a5d[_0x10a8('0xd')](_0x3ce3a4)&&!_0x1b1a5d['isObject'](_0x3ce3a4)&&(_0x4f8cdd=_0x4e2fda['model'][_0x10a8('0x23')](_0x4f8cdd[_0x10a8('0xd3')],_0x4e2fda[_0x10a8('0x115')]['createPositionAt'](_0x3ce3a4,'end'))),this[_0x10a8('0x118')](_0x4f8cdd);}),_0xb4e56[_0x10a8('0x9')]());},{'priority':_0x10a8('0x116')}),this[_0x10a8('0xf2')]=new _0x2b4463(_0x4e2fda,this[_0x10a8('0x64')]),this[_0x10a8('0xf1')]['commands'][_0x10a8('0x11e')](_0x10a8('0x89'),this[_0x10a8('0xf2')]),this[_0x10a8('0x91')](_0x10a8('0x89'));const _0x39511c=new _0x386c4c(_0x4e2fda,this[_0x10a8('0x77')]);_0x4e2fda[_0x10a8('0x55')][_0x10a8('0x11e')](_0x10a8('0x56'),_0x39511c),this[_0x10a8('0x91')]('acceptSuggestion');const _0x367954=new _0x17d4da(_0x4e2fda,this[_0x10a8('0x77')]);_0x4e2fda[_0x10a8('0x55')][_0x10a8('0x11e')]('discardSuggestion',_0x367954),this[_0x10a8('0x91')](_0x10a8('0x3e')),_0x4e2fda[_0x10a8('0x55')][_0x10a8('0x11e')]('acceptAllSuggestions',new _0x1041d9(_0x4e2fda,_0x39511c,this[_0x10a8('0x77')])),this[_0x10a8('0x91')](_0x10a8('0x108')),_0x4e2fda[_0x10a8('0x55')][_0x10a8('0x11e')](_0x10a8('0xef'),new _0x1041d9(_0x4e2fda,_0x367954,this[_0x10a8('0x77')])),this[_0x10a8('0x91')](_0x10a8('0xef')),_0x4e2fda[_0x10a8('0x55')]['add']('acceptSelectedSuggestions',new _0x58d9e3(_0x4e2fda,_0x39511c,this[_0x10a8('0x77')])),this[_0x10a8('0x91')](_0x10a8('0xd4')),_0x4e2fda['commands'][_0x10a8('0x11e')](_0x10a8('0xfc'),new _0x58d9e3(_0x4e2fda,_0x367954,this[_0x10a8('0x77')])),this[_0x10a8('0x91')]('discardSelectedSuggestions');const _0x41d51d=_0x4e2fda[_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0x85'));this[_0x10a8('0xa7')](_0x41d51d,_0x10a8('0x71'),(_0xaa0a3,{threadId:_0x298584})=>{const _0x471779=this[_0x10a8('0x77')][_0x10a8('0x7a')](_0x298584);_0x471779&&_0x471779[_0x10a8('0x65')]&&0x1===_0x471779[_0x10a8('0x65')][_0x10a8('0xe0')]&&this[_0x10a8('0x113')](_0x298584,{'hasComments':!0x0});},{'priority':_0x10a8('0xca')}),this[_0x10a8('0xa7')](_0x41d51d,'removeComment',(_0xa6106e,{threadId:_0x55e37e})=>{const _0x58da74=this['_suggestions'][_0x10a8('0x7a')](_0x55e37e);_0x58da74&&_0x58da74['commentThread']&&!_0x58da74['commentThread'][_0x10a8('0xe0')]&&this[_0x10a8('0x113')](_0x55e37e,{'hasComments':!0x1});},{'priority':_0x10a8('0xca')});}set['adapter'](_0x4d2877){if(this[_0x10a8('0x47')])throw new _0x57d3ea(_0x10a8('0x4e'),this);this['_adapter']=_0x4d2877;}get[_0x10a8('0x61')](){return this[_0x10a8('0x47')];}[_0x10a8('0xeb')]({skipNotAttached:_0x45b791=!0x1,toJSON:_0x339e87=!0x1}={}){const _0x5e2ca2=[];for(const _0x753a1b of this['_suggestions']['values']())_0x45b791&&!_0x753a1b[_0x10a8('0x114')]||_0x5e2ca2[_0x10a8('0xe2')](_0x753a1b);return _0x339e87?_0x5e2ca2[_0x10a8('0xc7')](_0xc8d7e9=>_0xc8d7e9['toJSON']()):_0x5e2ca2;}[_0x10a8('0x67')](_0x5a49d4){const _0x18ea91=this['_suggestions'][_0x10a8('0x7a')](_0x5a49d4);if(!_0x18ea91)throw new _0x57d3ea(_0x10a8('0xe9'),this);return _0x18ea91;}['hasSuggestion'](_0xcb8289){return this['_suggestions'][_0x10a8('0x6f')](_0xcb8289);}[_0x10a8('0x5e')](_0x458e87){const {authorId:_0x2f62fb,id:_0x29009a,attributes:_0x3359db}=_0x458e87,[_0x120b6c,_0x400f29]=_0x458e87[_0x10a8('0xae')][_0x10a8('0x3a')](':'),_0x52ddc3=this[_0x10a8('0x77')][_0x10a8('0x7a')](_0x29009a)||this[_0x10a8('0xd5')](_0x120b6c,_0x400f29,_0x29009a,_0x2f62fb,_0x3359db);if(this[_0x10a8('0x2d')](_0x52ddc3),this['_checkSuggestionCorrectness'](_0x52ddc3,_0x120b6c,_0x400f29||null,_0x2f62fb),_0x52ddc3['createdAt']=_0x458e87[_0x10a8('0x10b')],_0x3359db&&_0x3359db[_0x10a8('0xc1')]){const {authorName:_0x34eb7e,createdAt:_0x4e0849}=_0x3359db[_0x10a8('0xc1')],_0x515e0b=this[_0x10a8('0xba')](_0x34eb7e);_0x52ddc3[_0x10a8('0x3b')]=_0x4e0849,_0x52ddc3[_0x10a8('0x84')]=_0x515e0b,_0x52ddc3['isExternal']=!0x0;}else _0x52ddc3[_0x10a8('0x3b')]=_0x458e87[_0x10a8('0x10b')];switch(_0x458e87[_0x10a8('0x51')]&&(_0x52ddc3[_0x10a8('0x51')]=_0x458e87['data']),_0x458e87[_0x10a8('0x128')]&&(_0x52ddc3[_0x10a8('0x128')]=_0x458e87[_0x10a8('0x128')]),this[_0x10a8('0x47')]&&this[_0x10a8('0x47')][_0x10a8('0xc9')]||(_0x52ddc3['_saved']=!0x0),this['_suggestionState'][_0x10a8('0x7a')](_0x52ddc3)){case _0x10a8('0x25'):this[_0x10a8('0xce')][_0x10a8('0x120')](_0x52ddc3,_0x10a8('0x43'));break;case _0x10a8('0x76'):_0x52ddc3[_0x10a8('0x114')]?(this[_0x10a8('0xce')][_0x10a8('0x120')](_0x52ddc3,_0x10a8('0x107')),this['fire']('suggestionLoaded',_0x52ddc3)):this['_suggestionState'][_0x10a8('0x120')](_0x52ddc3,_0x10a8('0x8c'));}return _0x52ddc3;}[_0x10a8('0x56')](_0x437ce1){this['forceDefaultExecution'](()=>{this['editor'][_0x10a8('0x115')][_0x10a8('0x33')](()=>{for(const _0x4f0b08 of _0x437ce1[_0x10a8('0x92')]())_0x4f0b08[_0x10a8('0x4c')]();});});}[_0x10a8('0x3e')](_0x4e18ca){this[_0x10a8('0x74')](()=>{this[_0x10a8('0xf1')][_0x10a8('0x115')]['change'](()=>{for(const _0x45cefe of _0x4e18ca[_0x10a8('0x92')]())_0x45cefe[_0x10a8('0xdb')]();});});}[_0x10a8('0x91')](_0x168ec6,_0x17a11d){const _0x25f623=this['editor'][_0x10a8('0x55')][_0x10a8('0x7a')](_0x168ec6);if(!_0x25f623)throw new _0x57d3ea(_0x10a8('0xbf'),this,{'commandName':_0x168ec6});this[_0x10a8('0x64')][_0x10a8('0x11e')](_0x25f623),_0x17a11d&&_0x25f623['on'](_0x10a8('0x50'),(_0x4cdf11,_0x3e0190)=>{this[_0x10a8('0xf2')][_0x10a8('0xb4')]&&(this[_0x10a8('0x38')]||_0x3e0190['length']>0x0&&_0x3e0190[_0x3e0190[_0x10a8('0xe0')]-0x1]&&_0x3e0190[_0x3e0190[_0x10a8('0xe0')]-0x1][_0x10a8('0x74')]||(_0x17a11d((..._0x5145c7)=>_0x25f623['execute'](..._0x5145c7,{'forceDefaultExecution':!0x0}),..._0x3e0190),_0x4cdf11[_0x10a8('0x9')]()));},{'priority':_0x10a8('0x116')});}['forceDefaultExecution'](_0x197d0f){let _0x397ab3,_0x3bcef6;const _0xc12c42=this[_0x10a8('0x38')];this[_0x10a8('0x38')]=!0x0;try{_0x397ab3=_0x197d0f();}catch(_0x58bcd6){_0x3bcef6=_0x58bcd6;}return _0xc12c42||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3bcef6&&_0x57d3ea[_0x10a8('0x131')](_0x3bcef6,this),_0x397ab3;}['markInsertion'](_0x1cb7ff,_0x251b60=null,_0x4d9882={}){if(_0x1cb7ff[_0x10a8('0xc4')])return null;const _0x205ac6=this['editor'][_0x10a8('0x9d')]['get'](_0x10a8('0xc6'))['me'];for(const {suggestion:_0x25c00e,meta:_0x162d0e}of this[_0x10a8('0xa')](_0x1cb7ff,_0x10a8('0xb2')))if(_0x162d0e['isOwn']){if(!_0x162d0e['isNextTo'])return _0x25c00e;if(_0x251b60==_0x25c00e[_0x10a8('0x72')]){const _0x2a0d6a=_0x25c00e['getFirstRange']();return _0x2a0d6a['start'][_0x10a8('0x137')](_0x1cb7ff[_0x10a8('0xa9')])?this[_0x10a8('0xaa')](_0x25c00e,this['_model']['createRange'](_0x1cb7ff[_0x10a8('0xd3')],_0x2a0d6a[_0x10a8('0xa9')])):this[_0x10a8('0xaa')](_0x25c00e,this['_model'][_0x10a8('0x23')](_0x2a0d6a['start'],_0x1cb7ff[_0x10a8('0xa9')])),_0x25c00e;}}const _0x1ffe33=_0x57911e(),_0x2fed7e=_0x205ac6['id'],_0x377668=_0x251b60?_0x10a8('0x48')+_0x251b60:_0x10a8('0xb2'),_0x30cfb1=this[_0x10a8('0x1d')]({'id':_0x1ffe33,'type':_0x377668,'createdAt':new Date(),'authorId':_0x2fed7e,'attributes':_0x4d9882});return this[_0x10a8('0x19')](_0x377668,_0x1ffe33,_0x2fed7e,_0x1cb7ff),_0x30cfb1;}[_0x10a8('0xe1')](_0x2a3586,_0xad3773=_0x10a8('0x29'),_0x46ba47={}){const _0x1f363f=this[_0x10a8('0xf1')]['plugins'][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'],_0xc0c700=this[_0x10a8('0x63')]['getSuggestionCallback'](_0x10a8('0xb2'),_0xad3773,'join');for(const _0x54e7d6 of this[_0x10a8('0xeb')]())if(_0x54e7d6[_0x10a8('0x84')]['id']==_0x1f363f['id']&&_0x10a8('0xb2')==_0x54e7d6[_0x10a8('0xae')]&&_0x54e7d6['subType']==_0xad3773&&(_0xc0c700(_0x54e7d6[_0x10a8('0x42')](),_0x2a3586)||_0xc0c700(_0x2a3586,_0x54e7d6['getRanges']()))){for(const _0x3bab21 of _0x2a3586)_0x54e7d6[_0x10a8('0x5d')](_0x3bab21);return _0x54e7d6;}for(const _0x7c6dcc of _0x2a3586)for(const {suggestion:_0x4f420b,meta:_0x5edd65}of this[_0x10a8('0xa')](_0x7c6dcc,'insertion')){if(!_0x5edd65[_0x10a8('0x13')])continue;let _0x28b125=!0x0;for(const _0x46d268 of _0x4f420b[_0x10a8('0x42')]())for(const _0xa5a7d of _0x2a3586)if(!_0x46d268[_0x10a8('0x17')](_0xa5a7d)){_0x28b125=!0x1;break;}if(_0x28b125)return _0x4f420b;}const _0x1bbc30=_0x57911e(),_0x1b7e00=_0x1f363f['id'],_0x2f08da=_0x10a8('0x48')+_0xad3773,_0x3dbe89=this[_0x10a8('0x1d')]({'id':_0x1bbc30,'type':_0x2f08da,'createdAt':new Date(),'authorId':_0x1b7e00,'attributes':_0x46ba47});for(const _0x3070ca of _0x2a3586)this[_0x10a8('0x19')](_0x2f08da,_0x1bbc30,_0x1b7e00,_0x3070ca,_0x2ac191[_0x10a8('0x11d')]());return _0x3dbe89;}[_0x10a8('0xfd')](_0x169ab4,_0x21d61d,_0x6baa11=null,_0x49add5={}){if(_0x6baa11=_0x6baa11||Mt(_0x21d61d),_0x169ab4['isCollapsed'])return;if(!0x1===this[_0x10a8('0x119')]){const _0x2b2ed8=this[_0x10a8('0x63')]['getSuggestionCallback']('formatInline',_0x6baa11,_0x10a8('0x4c'));return void this[_0x10a8('0x74')](()=>_0x2b2ed8([_0x169ab4],_0x21d61d,_0x49add5));}const _0x459ef4=this[_0x10a8('0xf1')]['plugins'][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'],_0xcb6a20=[];for(const {suggestion:_0x4cfd57,meta:_0x3d54a0}of this[_0x10a8('0xa')](_0x169ab4,'insertion'))_0x3d54a0[_0x10a8('0x13')]&&!_0x3d54a0[_0x10a8('0x14')]&&_0xcb6a20['push'](..._0x4cfd57[_0x10a8('0x42')]());const _0xfc105=function(_0x35867b,_0xd7dcad){const _0x1b8626=[];for(const _0x52903f of _0xd7dcad){const _0x568fd5=_0x35867b[_0x10a8('0x82')](_0x52903f);_0x568fd5&&_0x1b8626['push'](_0x568fd5);}return _0x1b8626;}(_0x169ab4,_0xcb6a20),_0x4d3f25=function(_0x13eb01,_0x4a2192){const _0x376cdd=[_0x13eb01];for(const _0x418640 of _0x4a2192){let _0x47798d=0x0;for(;_0x47798d<_0x376cdd[_0x10a8('0xe0')];){const _0x1edda8=_0x376cdd[_0x47798d][_0x10a8('0x7b')](_0x418640);_0x376cdd[_0x10a8('0x129')](_0x47798d,0x1,..._0x1edda8),_0x47798d+=_0x1edda8['length'];}}return _0x376cdd;}(_0x169ab4,_0xcb6a20);_0xfc105['length']&&this[_0x10a8('0xd7')][_0x10a8('0x33')](()=>{for(const _0x40a5c1 of _0xfc105){const _0x3516eb=this[_0x10a8('0x63')][_0x10a8('0xc5')]('formatInline',_0x6baa11,_0x10a8('0x4c'));this[_0x10a8('0x74')](()=>_0x3516eb([_0x40a5c1],_0x21d61d,_0x49add5));}});for(const _0x12ce7b of _0x4d3f25){let _0x3aae25=null,_0x5e060b=_0x12ce7b[_0x10a8('0xd3')],_0x498015=_0x12ce7b[_0x10a8('0xa9')];for(const {suggestion:_0x479d63,meta:_0x39e9e0}of this['_findSuggestions'](_0x12ce7b,'formatInline')){if(!_0x39e9e0['isOwn'])continue;if(_0x479d63[_0x10a8('0x72')]!=_0x6baa11)continue;const _0x5944a4=_0x479d63[_0x10a8('0x59')]();if(_0x5944a4[_0x10a8('0x17')](_0x12ce7b,!0x0))return;_0x5e060b=_0x5e060b['isBefore'](_0x5944a4['start'])?_0x5e060b:_0x5944a4[_0x10a8('0xd3')],_0x498015=_0x498015[_0x10a8('0x4f')](_0x5944a4['end'])?_0x498015:_0x5944a4[_0x10a8('0xa9')],_0x3aae25?_0x5944a4[_0x10a8('0xd3')][_0x10a8('0x66')](_0x3aae25['getFirstRange']()[_0x10a8('0xd3')])?(_0x3aae25[_0x10a8('0xbb')](),_0x3aae25=_0x479d63):_0x479d63[_0x10a8('0xbb')]():_0x3aae25=_0x479d63;}const _0x882695=this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x5e060b,_0x498015);if(_0x3aae25)this[_0x10a8('0xaa')](_0x3aae25,_0x882695);else{const _0x1eb486=_0x57911e(),_0x311d74=_0x459ef4['id'];this[_0x10a8('0x1d')]({'id':_0x1eb486,'type':_0x10a8('0x123')+_0x6baa11,'data':_0x21d61d,'createdAt':new Date(),'authorId':_0x311d74,'attributes':_0x49add5}),this[_0x10a8('0x19')](_0x10a8('0x123')+_0x6baa11,_0x1eb486,_0x311d74,_0x882695);}}}[_0x10a8('0x117')](_0xc60e46,_0x19ba89,_0x4fd7ff=[],_0x8d178d=null,_0x44f5a5={}){_0x19ba89[_0x10a8('0x53')]||(_0x19ba89['formatGroupId']=_0x19ba89[_0x10a8('0x135')]),_0x19ba89[_0x10a8('0x98')]=_0xc60e46['is'](_0x10a8('0x36')),_0x8d178d=_0x8d178d||Mt(_0x19ba89);const _0x36deeb=_0x4fd7ff[_0x10a8('0xc7')](_0x43ff1a=>Nt(_0x43ff1a,this[_0x10a8('0xd7')])),_0x17cab1=_0xc60e46['is'](_0x10a8('0x36'))?_0xc60e46:Nt(_0xc60e46,this[_0x10a8('0xd7')]);if(!0x1===this[_0x10a8('0x119')]){const _0x5ac367=this['_suggestionFactory'][_0x10a8('0xc5')]('formatBlock',_0x8d178d,_0x10a8('0x4c'));return void this[_0x10a8('0x74')](()=>_0x5ac367([_0x17cab1],_0x19ba89,_0x44f5a5));}_0x36deeb[_0x10a8('0xe2')](_0x17cab1);let _0x157eb8=!0x0;for(const _0x10e7ac of _0x36deeb)if(!this[_0x10a8('0xd9')](_0x10e7ac)){_0x157eb8=!0x1;break;}if(_0x157eb8){const _0x248fdb=this[_0x10a8('0x63')][_0x10a8('0xc5')](_0x10a8('0x8e'),_0x8d178d,_0x10a8('0x4c'));return void this['forceDefaultExecution'](()=>_0x248fdb([_0x17cab1],_0x19ba89,_0x44f5a5));}let _0x5965f9=null,_0x46a122=_0x17cab1[_0x10a8('0xd3')],_0xc6b8bf=_0x17cab1[_0x10a8('0xa9')];for(const {suggestion:_0x422495,meta:_0x466f88}of this[_0x10a8('0xa')](_0x17cab1,_0x10a8('0x8e'))){if(!_0x466f88[_0x10a8('0x13')]||_0x466f88[_0x10a8('0x4')]||_0x466f88[_0x10a8('0x5f')]||_0x466f88[_0x10a8('0x14')])continue;if(_0x422495[_0x10a8('0x51')][_0x10a8('0x53')]!=_0x19ba89[_0x10a8('0x53')])continue;const _0x363d73=_0x422495[_0x10a8('0x59')]();if(_0x422495[_0x10a8('0x72')]==_0x8d178d){if(_0x363d73['containsRange'](_0x17cab1,!0x0))return;_0x46a122=_0x46a122[_0x10a8('0x66')](_0x363d73['start'])?_0x46a122:_0x363d73[_0x10a8('0xd3')],_0xc6b8bf=_0xc6b8bf[_0x10a8('0x4f')](_0x363d73[_0x10a8('0xa9')])?_0xc6b8bf:_0x363d73[_0x10a8('0xa9')],_0x5965f9?_0x363d73['start'][_0x10a8('0x66')](_0x5965f9[_0x10a8('0x59')]()[_0x10a8('0xd3')])?(_0x5965f9[_0x10a8('0xbb')](),_0x5965f9=_0x422495):_0x422495[_0x10a8('0xbb')]():_0x5965f9=_0x422495;}else{const _0x4e9968=_0x17cab1[_0x10a8('0x82')](_0x363d73);this[_0x10a8('0x32')](_0x422495,_0x4e9968);}}const _0x532557=this[_0x10a8('0xf1')][_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'],_0x680e3f=_0x57911e(),_0x1174a5=_0x532557['id'];_0x5965f9?this[_0x10a8('0xaa')](_0x5965f9,this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x46a122,_0xc6b8bf)):(this[_0x10a8('0x1d')]({'id':_0x680e3f,'type':_0x10a8('0x11')+_0x8d178d,'data':_0x19ba89,'createdAt':new Date(),'authorId':_0x1174a5,'attributes':_0x44f5a5}),this['_addSuggestionMarker'](_0x10a8('0x11')+_0x8d178d,_0x680e3f,_0x1174a5,this[_0x10a8('0xd7')]['createRange'](_0x46a122,_0xc6b8bf)));}[_0x10a8('0x96')](_0x354dc4,_0x46250f,_0xced70f=[],_0x3b0bae=null,_0x733f99={}){_0x46250f['formatGroupId']||(_0x46250f[_0x10a8('0x53')]=_0x46250f[_0x10a8('0x135')]);const _0x2a8436=_0x354dc4[0x0];_0x46250f[_0x10a8('0x98')]=_0x2a8436['is'](_0x10a8('0x36')),_0x3b0bae=_0x3b0bae||Mt(_0x46250f);const _0x13d25b=_0xced70f[_0x10a8('0xc7')](_0x5de694=>Nt(_0x5de694,this['_model'])),_0x27142a=_0x2a8436['is'](_0x10a8('0x36'))?_0x354dc4:_0x354dc4['map'](_0x32c3b5=>Nt(_0x32c3b5,this[_0x10a8('0xd7')]));if(!0x1===this['_trackFormatChanges']){const _0x3fd71f=this[_0x10a8('0x63')]['getSuggestionCallback'](_0x10a8('0x8e'),_0x3b0bae,_0x10a8('0x4c'));return void this['forceDefaultExecution'](()=>_0x3fd71f(_0x27142a,_0x46250f,_0x733f99));}_0x13d25b['push'](..._0x27142a);let _0x354700=!0x0;for(const _0x180f1b of _0x13d25b)if(!this['_rangeIsInLocalUserInsertion'](_0x180f1b)){_0x354700=!0x1;break;}if(_0x354700){const _0x28d5de=this['_suggestionFactory']['getSuggestionCallback'](_0x10a8('0x8e'),_0x3b0bae,_0x10a8('0x4c'));return void this[_0x10a8('0x74')](()=>_0x28d5de(_0x27142a,_0x46250f,_0x733f99));}const _0x5a262d=this[_0x10a8('0xf1')][_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'];for(const _0x48c86e of this[_0x10a8('0xeb')]()){if(_0x48c86e[_0x10a8('0x84')]['id']!=_0x5a262d['id'])continue;if('formatBlock'!=_0x48c86e[_0x10a8('0xae')]||_0x48c86e[_0x10a8('0x51')][_0x10a8('0x53')]!=_0x46250f[_0x10a8('0x53')])continue;const _0xdf105f=_0x48c86e[_0x10a8('0x72')]==_0x3b0bae;for(let _0x1d59bd=0x0;_0x1d59bd<_0x27142a['length'];_0x1d59bd++){const _0x26fddf=_0x27142a[_0x1d59bd];for(const _0x4c1b1f of _0x48c86e[_0x10a8('0x7d')]()){const _0x5cc566=_0x4c1b1f[_0x10a8('0x127')]();if(_0x26fddf[_0x10a8('0x137')](_0x5cc566)){_0xdf105f?(_0x27142a[_0x10a8('0x129')](_0x1d59bd,0x1),_0x1d59bd--):_0x48c86e['removeMarker'](_0x4c1b1f[_0x10a8('0x39')]);break;}}}}if(0x0==_0x27142a[_0x10a8('0xe0')])return;const _0x1d2c1c=this[_0x10a8('0x63')][_0x10a8('0xc5')](_0x10a8('0x8e'),_0x3b0bae,_0x10a8('0x60'));for(const _0x53366b of this[_0x10a8('0xeb')]())if(_0x53366b[_0x10a8('0x84')]['id']==_0x5a262d['id']&&_0x10a8('0x8e')==_0x53366b[_0x10a8('0xae')]&&_0x53366b['data'][_0x10a8('0x53')]==_0x46250f[_0x10a8('0x53')]&&_0x53366b['subType']==_0x3b0bae&&(_0x1d2c1c(_0x53366b['getRanges'](),_0x27142a)||_0x1d2c1c(_0x27142a,_0x53366b['getRanges']()))){for(const _0x3f2450 of _0x27142a)_0x53366b[_0x10a8('0x5d')](_0x3f2450);return _0x53366b;}const _0x17d729=_0x57911e(),_0x5c9818=_0x5a262d['id'],_0x5536ef=_0x10a8('0x11')+_0x3b0bae,_0x3fa18d=this[_0x10a8('0x1d')]({'id':_0x17d729,'type':_0x5536ef,'data':_0x46250f,'createdAt':new Date(),'authorId':_0x5c9818,'attributes':_0x733f99});for(const _0x2b805d of _0x27142a)this[_0x10a8('0x19')](_0x5536ef,_0x17d729,_0x5c9818,_0x2b805d,_0x2ac191[_0x10a8('0x11d')]());return _0x3fa18d;}['markDeletion'](_0x4e8c4d,_0x56ee8f=null,_0x3b6a07={}){if(_0x4e8c4d[_0x10a8('0xc4')])return null;const _0x93a77=this[_0x10a8('0xf1')][_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'],_0x3b7255=new _0x1ee699(_0x4e8c4d[_0x10a8('0xd3')],_0x4e8c4d[_0x10a8('0xa9')]);for(const {suggestion:_0x3255c4,meta:_0xc01548}of this[_0x10a8('0xa')](_0x3b7255,_0x10a8('0xb2')))if(_0xc01548[_0x10a8('0x13')]&&!_0xc01548[_0x10a8('0x4')]){if(_0x3255c4['isMultiRange']){const _0x13cc74=_0x3255c4[_0x10a8('0x42')]()['filter'](_0x313877=>'$graveyard'!=_0x313877['root'][_0x10a8('0x132')]);_0x13cc74[_0x10a8('0x8a')](_0x508871=>_0x3b7255['containsRange'](_0x508871,!0x0))&&_0x3255c4['discard']();if(_0x13cc74[_0x10a8('0x5c')](_0x30c882=>_0x30c882['containsRange'](_0x3b7255,!0x0))){const _0xd5277d=this[_0x10a8('0x63')][_0x10a8('0xc5')](_0x10a8('0xab'),_0x56ee8f,_0x10a8('0x4c'));return this[_0x10a8('0x74')](()=>_0xd5277d([_0x3b7255],null,_0x3b6a07)),null;}}else{const _0x229f4b=_0x3b7255[_0x10a8('0x82')](_0x3255c4[_0x10a8('0x59')]());_0x3255c4[_0x10a8('0x6d')]([_0x229f4b],null,_0x3b6a07);}}if(_0x3b7255[_0x10a8('0xdc')](),_0x3b7255[_0x10a8('0xc4')]||_0x10a8('0x31')==_0x3b7255[_0x10a8('0x106')][_0x10a8('0x132')])return null;let _0x184b24=null,_0x25a247=_0x3b7255[_0x10a8('0xd3')],_0x4415ea=_0x3b7255[_0x10a8('0xa9')];for(const {suggestion:_0x493a93,meta:_0x31c35b}of this[_0x10a8('0xa')](_0x3b7255,_0x10a8('0xab')))if(_0x31c35b[_0x10a8('0x13')]){if(_0x493a93[_0x10a8('0x126')]){let _0xc4b65e=!0x0;for(const _0x6a5f93 of _0x493a93[_0x10a8('0x42')]()){if(_0x6a5f93[_0x10a8('0x17')](_0x3b7255,!0x0))return _0x493a93;_0x3b7255[_0x10a8('0x17')](_0x6a5f93)||(_0xc4b65e=!0x1);}_0xc4b65e&&_0x493a93[_0x10a8('0xdb')]();}else{const _0x4a2c09=_0x493a93['getFirstRange']();if(_0x4a2c09[_0x10a8('0x17')](_0x3b7255,!0x0))return _0x493a93;_0x25a247=_0x25a247['isBefore'](_0x4a2c09[_0x10a8('0xd3')])?_0x25a247:_0x4a2c09[_0x10a8('0xd3')],_0x4415ea=_0x4415ea[_0x10a8('0x4f')](_0x4a2c09['end'])?_0x4415ea:_0x4a2c09['end'],_0x184b24?_0x4a2c09[_0x10a8('0xd3')][_0x10a8('0x66')](_0x184b24[_0x10a8('0x59')]()[_0x10a8('0xd3')])?(_0x184b24['removeMarkers'](),_0x184b24=_0x493a93):_0x493a93['removeMarkers']():_0x184b24=_0x493a93;}}if(_0x184b24)return this[_0x10a8('0xaa')](_0x184b24,this['_model'][_0x10a8('0x23')](_0x25a247,_0x4415ea)),_0x184b24;{const _0x878365=_0x57911e(),_0x4992d4=this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x25a247,_0x4415ea),_0x5d1384=_0x93a77['id'],_0x5a124f=_0x56ee8f?_0x10a8('0x6e')+_0x56ee8f:'deletion',_0x181d38=this['_setSuggestionData']({'id':_0x878365,'type':_0x5a124f,'createdAt':new Date(),'authorId':_0x5d1384,'attributes':_0x3b6a07});return this[_0x10a8('0x19')](_0x5a124f,_0x878365,_0x5d1384,_0x4992d4),_0x181d38;}}[_0x10a8('0x78')](_0x326398,_0x33bea3=_0x10a8('0x29'),_0x2cb98b={}){const _0x2efd8a=this['editor']['plugins'][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'],_0x4c046b=_0x326398['map'](_0x102ed3=>new _0x1ee699(_0x102ed3[_0x10a8('0xd3')],_0x102ed3[_0x10a8('0xa9')])),_0x46e848=new Set();for(const _0x3ee6c5 of _0x4c046b)for(const {suggestion:_0x2de142,meta:_0x3c1a3a}of this['_findSuggestions'](_0x3ee6c5,_0x10a8('0xb2')))_0x3c1a3a['isOwn']&&!_0x3c1a3a[_0x10a8('0x4')]&&_0x46e848['add'](_0x2de142);for(const _0x4d2156 of _0x46e848)if(_0x4d2156['isMultiRange']){const _0x2b2acb=_0x4d2156[_0x10a8('0x42')]();(!_0x4d2156['attributes']||!_0x4d2156[_0x10a8('0x128')][_0x10a8('0x54')])&&(_0x2b2acb['every'](_0x1a6650=>_0x4c046b[_0x10a8('0x5c')](_0x26a2dd=>_0x26a2dd[_0x10a8('0x17')](_0x1a6650,!0x0)))&&_0x4d2156[_0x10a8('0xdb')]());if(_0x4c046b[_0x10a8('0x8a')](_0x4f668d=>_0x2b2acb[_0x10a8('0x5c')](_0x33af2e=>_0x33af2e[_0x10a8('0x17')](_0x4f668d,!0x0)))){const _0x4dffdc=this[_0x10a8('0x63')][_0x10a8('0xc5')]('deletion',_0x33bea3,_0x10a8('0x4c'));return this[_0x10a8('0x74')](()=>_0x4dffdc(_0x326398,null,_0x2cb98b)),null;}}else{const _0x117dde=_0x4d2156[_0x10a8('0x59')]();_0x4c046b['some'](_0x152389=>_0x152389['containsRange'](_0x117dde,!0x0))&&_0x4d2156['discard']();if(_0x4c046b['every'](_0x145269=>_0x117dde[_0x10a8('0x17')](_0x145269,!0x0))){const _0x4cb842=this['_suggestionFactory'][_0x10a8('0xc5')](_0x10a8('0xab'),_0x33bea3,'accept');return this[_0x10a8('0x74')](()=>_0x4cb842(_0x4c046b,null,_0x2cb98b)),null;}}const _0x3f5294=this[_0x10a8('0x63')][_0x10a8('0xc5')](_0x10a8('0xab'),_0x33bea3,_0x10a8('0x60'));let _0x35ceea=null;for(const _0x3fdf4b of this[_0x10a8('0xeb')]())if(_0x3fdf4b[_0x10a8('0x84')]['id']==_0x2efd8a['id']&&_0x3fdf4b['isInContent']&&_0x10a8('0xab')==_0x3fdf4b[_0x10a8('0xae')]&&_0x3fdf4b[_0x10a8('0x72')]==_0x33bea3&&(_0x3f5294(_0x3fdf4b['getRanges'](),_0x4c046b)||_0x3f5294(_0x4c046b,_0x3fdf4b[_0x10a8('0x42')]()))){if(_0x35ceea){if(_0x3fdf4b[_0x10a8('0x65')]&&_0x3fdf4b[_0x10a8('0x65')]['length'])continue;for(const _0x3040b9 of _0x3fdf4b[_0x10a8('0x42')]())_0x35ceea[_0x10a8('0xa5')](_0x3040b9)||_0x35ceea[_0x10a8('0x5d')](_0x3040b9);_0x3fdf4b[_0x10a8('0xbb')]();}else{_0x35ceea=_0x3fdf4b;for(const _0x2e7052 of _0x4c046b)_0x3fdf4b['isIntersectingWithRange'](_0x2e7052)||_0x3fdf4b[_0x10a8('0x5d')](_0x2e7052);}}if(_0x35ceea)return _0x35ceea;_0x46e848[_0x10a8('0x11c')]();for(const _0x47c43f of _0x4c046b)for(const {suggestion:_0x5e3c9a,meta:_0x292071}of this['_findSuggestions'](_0x47c43f,'deletion'))_0x292071['isOwn']&&_0x46e848[_0x10a8('0x11e')](_0x5e3c9a);for(const _0x4b705c of _0x46e848){const _0x2b6c5d=_0x4b705c[_0x10a8('0x42')]();if(!_0x2cb98b||!_0x2cb98b[_0x10a8('0x54')]){if(_0x4c046b['every'](_0x3109e2=>_0x2b6c5d[_0x10a8('0x5c')](_0x59aa15=>_0x59aa15['containsRange'](_0x3109e2,!0x0))))return _0x4b705c;}(!_0x4b705c[_0x10a8('0x128')]||!_0x4b705c[_0x10a8('0x128')]['skipNestingCheck'])&&(_0x2b6c5d[_0x10a8('0x8a')](_0x4e23fb=>_0x4c046b[_0x10a8('0x5c')](_0xa34875=>_0xa34875['containsRange'](_0x4e23fb,!0x0)))&&_0x4b705c['discard']());}const _0x2f8a37=_0x57911e(),_0x559279=_0x2efd8a['id'],_0x53e357=_0x10a8('0x6e')+_0x33bea3,_0xb5dd52=this[_0x10a8('0x1d')]({'id':_0x2f8a37,'type':_0x53e357,'createdAt':new Date(),'authorId':_0x559279,'attributes':_0x2cb98b});for(const _0x25d0d2 of _0x4c046b)_0x25d0d2[_0x10a8('0xdc')](),_0x25d0d2[_0x10a8('0xc4')]||_0x10a8('0x31')==_0x25d0d2[_0x10a8('0x106')][_0x10a8('0x132')]||this['_addSuggestionMarker'](_0x53e357,_0x2f8a37,_0x559279,_0x25d0d2,_0x2ac191[_0x10a8('0x11d')]());return _0xb5dd52;}['_setSuggestionRange'](_0x533295,_0x24025d){const _0x5cd8fe=_0x533295[_0x10a8('0x12c')]();this[_0x10a8('0xd7')][_0x10a8('0x33')](_0x5b146f=>{_0x5b146f[_0x10a8('0xfb')](_0x5cd8fe,{'range':_0x24025d});});}[_0x10a8('0x2d')](_0xbe6f3f){const _0x25fd4a=_0xbe6f3f['id'],_0x91b7a5=this[_0x10a8('0xf1')][_0x10a8('0x26')]['get'](_0x10a8('0xe4'));this['_commentsRepository']['hasCommentThread'](_0x25fd4a)||this[_0x10a8('0x7e')]['addCommentThread']({'channelId':_0x91b7a5,'threadId':_0x25fd4a});const _0x46dd06=this[_0x10a8('0x7e')]['getCommentThread'](_0x25fd4a);_0x46dd06[_0x10a8('0x99')](_0x10a8('0xf3')),_0x46dd06[_0x10a8('0xf3')]=!0x1,_0xbe6f3f[_0x10a8('0x65')]=_0x46dd06;}[_0x10a8('0x86')](_0xbea4d7,_0x996c5c,_0x562b1f,_0x330a54){if(_0xbea4d7[_0x10a8('0xae')]!=_0x996c5c||_0xbea4d7['subType']!=_0x562b1f||_0xbea4d7[_0x10a8('0x110')]['id']!=_0x330a54)throw this[_0x10a8('0xf1')]['enableReadOnlyMode'](_0x10a8('0xf8')),new _0x57d3ea(_0x10a8('0xf8'),this);}[_0x10a8('0x32')](_0x575637,_0x66b603){const _0x54c568=_0x575637[_0x10a8('0x59')]();if(_0x66b603[_0x10a8('0x137')](_0x54c568))_0x575637[_0x10a8('0xbb')]();else{if(_0x54c568[_0x10a8('0x17')](_0x66b603)){const _0x45b7d7=this['_model']['createPositionAt'](_0x66b603[_0x10a8('0xd3')]['nodeBefore'],_0x10a8('0xa9'));this[_0x10a8('0xaa')](_0x575637,this[_0x10a8('0xd7')]['createRange'](_0x54c568[_0x10a8('0xd3')],_0x45b7d7));const _0x28f7fd=_0x57911e(),_0x32502c=_0x575637[_0x10a8('0x110')]['id'],_0x2184c5=_0x575637[_0x10a8('0xae')]+':'+_0x575637[_0x10a8('0x72')];this[_0x10a8('0x1d')]({'id':_0x28f7fd,'type':_0x2184c5,'createdAt':new Date(),'authorId':_0x32502c,'data':_0x575637[_0x10a8('0x51')],'attributes':_0x575637[_0x10a8('0x128')]});const _0x46e845=this[_0x10a8('0xd7')][_0x10a8('0xec')](_0x66b603[_0x10a8('0xa9')][_0x10a8('0x1')],_0x10a8('0x45')),_0x5b8297=this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x46e845,_0x54c568[_0x10a8('0xa9')]);this[_0x10a8('0x19')](_0x2184c5,_0x28f7fd,_0x32502c,_0x5b8297);}else{if(_0x54c568[_0x10a8('0xd1')](_0x66b603[_0x10a8('0xd3')])){const _0x33714=this[_0x10a8('0xd7')][_0x10a8('0xec')](_0x66b603[_0x10a8('0xd3')][_0x10a8('0x101')],_0x10a8('0xa9'));this[_0x10a8('0xaa')](_0x575637,this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x54c568['start'],_0x33714));}else{const _0x1c9c2c=this['_model'][_0x10a8('0xec')](_0x66b603[_0x10a8('0xa9')]['parent'],'after');this[_0x10a8('0xaa')](_0x575637,this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x1c9c2c,_0x54c568['end']));}}}}[_0x10a8('0xd9')](_0x736491){for(const {suggestion:_0x3533da,meta:_0x5d0b1f}of this[_0x10a8('0xa')](_0x736491,_0x10a8('0xb2'))){if(!_0x5d0b1f[_0x10a8('0x13')])continue;const _0x1f8a31=_0x3533da[_0x10a8('0x42')]();for(const _0x47600c of _0x1f8a31)if(!_0x736491['getDifference'](_0x47600c)[_0x10a8('0xe0')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43f2cf){const _0x3a9785=this[_0x10a8('0xf1')]['plugins'][_0x10a8('0x7a')](_0x10a8('0xc6'))[_0x10a8('0x75')](_0x43f2cf);if(!_0x3a9785)throw new _0x57d3ea('track-changes-user-not-found',this);return _0x3a9785;}[_0x10a8('0xba')](_0x2f1be9){const _0x4cd323=this[_0x10a8('0xf1')][_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0xc6')),_0x57068a=_0x1dda37(_0x10a8('0x10c')+_0x2f1be9),_0x2b57d0=_0x4cd323[_0x10a8('0x75')](_0x57068a);return _0x2b57d0||_0x4cd323['addUser']({'id':_0x57068a,'name':_0x2f1be9});}['_createSuggestion'](_0x15e9cc,_0xc147fe,_0x34a9ed,_0xd5c622,_0x22424b){const _0x51dfde=this[_0x10a8('0xf0')](_0xd5c622),_0x55c81c=this[_0x10a8('0x63')][_0x10a8('0xf6')](_0x15e9cc,_0xc147fe,_0x34a9ed,_0x51dfde,_0x22424b,_0x30a041=>this[_0x10a8('0x113')](_0x34a9ed,{'attributes':_0x30a041}));return this[_0x10a8('0xa7')](_0x55c81c,_0x10a8('0x4c'),()=>{this[_0x10a8('0x113')](_0x34a9ed,{'state':_0x10a8('0xc2')});},{'priority':_0x10a8('0x116')}),this[_0x10a8('0xa7')](_0x55c81c,_0x10a8('0xdb'),()=>{this[_0x10a8('0x113')](_0x34a9ed,{'state':'rejected'});},{'priority':_0x10a8('0x116')}),this['_suggestions'][_0x10a8('0x120')](_0x34a9ed,_0x55c81c),this['_suggestionState'][_0x10a8('0x120')](_0x55c81c,_0x10a8('0x25')),_0x55c81c;}['_splitMarkerName'](_0x2d29b7){const _0x45ed98=_0x2d29b7[_0x10a8('0x3a')](':');return{'group':_0x45ed98[0x0],'type':_0x45ed98[0x1],'subType':_0x45ed98[_0x10a8('0xe0')]>=0x5?_0x45ed98[0x2]:null,'id':_0x45ed98[_0x10a8('0xe0')]<0x5?_0x45ed98[0x2]:_0x45ed98[0x3],'authorId':_0x45ed98[_0x10a8('0xe0')]<0x5?_0x45ed98[0x3]:_0x45ed98[0x4],'markerCount':0x6==_0x45ed98[_0x10a8('0xe0')]?_0x45ed98[0x5]:null};}['_breakSuggestionMarker'](_0x2935ef,_0xeed2ce,_0x2cf5f7){const _0x3fc568=_0x2935ef['getFirstRange'](),_0x4b2e20=_0x3fc568[_0x10a8('0xd3')],_0x265998=_0x3fc568[_0x10a8('0xa9')];this[_0x10a8('0xaa')](_0x2935ef,this[_0x10a8('0xd7')]['createRange'](_0x4b2e20,_0xeed2ce));const _0x1d8922=_0x57911e(),_0x5769da=_0x2935ef['creator']['id'],_0x36ab7d=_0x2935ef[_0x10a8('0xae')]+(_0x2935ef['subType']?':'+_0x2935ef[_0x10a8('0x72')]:'');this['_setSuggestionData']({'id':_0x1d8922,'type':_0x36ab7d,'createdAt':new Date(),'authorId':_0x5769da,'originalSuggestionId':_0x2935ef['id'],'attributes':_0x2935ef[_0x10a8('0x128')],'data':_0x2935ef[_0x10a8('0x51')]}),_0x10a8('0x8e')==_0x2935ef[_0x10a8('0xae')]&&(_0x2cf5f7=this['_model'][_0x10a8('0x124')](_0x2cf5f7['parent'])),this[_0x10a8('0x19')](_0x36ab7d,_0x1d8922,_0x5769da,this['_model'][_0x10a8('0x23')](_0x2cf5f7,_0x265998));}[_0x10a8('0xa')](_0x22b1f1,_0x3ede6d=null){const _0x11f4d6=[],_0x405102=this['_model'][_0x10a8('0xcc')],_0x39088b=this[_0x10a8('0xf1')][_0x10a8('0x9d')]['get']('Users')['me'];for(const _0x910241 of this['getSuggestions']())if(_0x910241['isInContent']&&(!_0x3ede6d||_0x910241['type']==_0x3ede6d))for(const _0x299e16 of _0x910241[_0x10a8('0x42')]()){const _0xea1b9f=_0x22b1f1['start'][_0x10a8('0x137')](_0x299e16[_0x10a8('0xa9')])||_0x22b1f1[_0x10a8('0xa9')][_0x10a8('0x137')](_0x299e16[_0x10a8('0xd3')]);if(_0xea1b9f||_0x22b1f1[_0x10a8('0x82')](_0x299e16)){const _0x2fee4a=_0x22b1f1[_0x10a8('0x17')](_0x299e16)&&Ct(_0x405102,_0x299e16['start'],_0x22b1f1),_0x543c4f=_0x299e16[_0x10a8('0x17')](_0x22b1f1)&&Ct(_0x405102,_0x22b1f1[_0x10a8('0xd3')],_0x299e16);_0x11f4d6['push']({'suggestion':_0x910241,'meta':{'isOwn':_0x39088b==_0x910241['author'],'isNextTo':_0xea1b9f,'isInsideObject':_0x2fee4a,'containsRangeInObject':_0x543c4f}});break;}}return _0x11f4d6;}[_0x10a8('0x19')](_0xb35bce,_0x2c5783,_0x285053,_0x1ef897,_0x4772f5=null){this[_0x10a8('0xd7')][_0x10a8('0x33')](_0x4b13fa=>{let _0x200ed5=_0x10a8('0x9f')+_0xb35bce+':'+_0x2c5783+':'+_0x285053;_0x4772f5&&(_0x200ed5=_0x200ed5+':'+_0x4772f5),_0x4b13fa[_0x10a8('0x27')](_0x200ed5,{'range':_0x1ef897,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x10a8('0xb9')](_0x2cdf4d){const _0x54c98a=_0x2cdf4d[_0x10a8('0xde')],_0x39fa92=_0x2cdf4d[_0x10a8('0x5b')];_0x2cdf4d[_0x10a8('0xde')]=null,null!=_0x54c98a&&(_0x54c98a[_0x10a8('0x5b')]=null),_0x2cdf4d['next']=null,null!=_0x39fa92&&(_0x39fa92[_0x10a8('0xde')]=null),_0x10a8('0x107')==this[_0x10a8('0xce')][_0x10a8('0x7a')](_0x2cdf4d)&&(this[_0x10a8('0xce')][_0x10a8('0x120')](_0x2cdf4d,_0x10a8('0x8c')),this['fire'](_0x10a8('0x134'),_0x2cdf4d,_0x54c98a,_0x39fa92));}[_0x10a8('0x1d')](_0x441e7e){const _0x1956a7=_0x441e7e['id'],_0x361503=this['addSuggestionData'](_0x441e7e);if(this[_0x10a8('0x47')]&&this['_adapter']['addSuggestion']){const _0x32208b=this[_0x10a8('0xf1')]['plugins']['get'](_0x10a8('0x94')),_0x5f036e=_0x361503[_0x10a8('0x95')],_0x575de9=_0x361503[_0x10a8('0x72')]?_0x361503['type']+':'+_0x361503[_0x10a8('0x72')]:_0x361503[_0x10a8('0xae')],_0x26daf2=this[_0x10a8('0xf1')][_0x10a8('0x3d')],_0x24e7bf=_0x32208b[_0x10a8('0x11e')](_0x422247(_0x26daf2,'PENDING_ACTION_SUGGESTION')),_0xc181a3={'id':_0x1956a7,'type':_0x575de9,'hasComments':_0x5f036e,'data':_0x441e7e['data']||null,'originalSuggestionId':_0x441e7e[_0x10a8('0xf')]||null,'attributes':_0x361503['attributes']};this['_adapter'][_0x10a8('0xc9')](_0xc181a3)[_0x10a8('0x109')](_0x443b56=>{_0x361503[_0x10a8('0xc0')]=!0x0,_0x32208b[_0x10a8('0xaf')](_0x24e7bf),_0x443b56&&_0x443b56['createdAt']&&(this['_suggestions'][_0x10a8('0x7a')](_0x1956a7)[_0x10a8('0x10b')]=_0x443b56[_0x10a8('0x10b')]);})[_0x10a8('0x11f')](_0x48d308=>{throw _0xbfee5c(_0x10a8('0x37')),this[_0x10a8('0xf1')][_0x10a8('0x115')][_0x10a8('0xe7')]({'isUndoable':!0x1},()=>{_0x361503[_0x10a8('0xdb')]();}),_0x361503[_0x10a8('0xc')](),this['_suggestions'][_0x10a8('0x9b')](_0x361503['id']),this[_0x10a8('0xce')][_0x10a8('0x9b')](_0x361503),_0x48d308;});}return _0x361503;}[_0x10a8('0x113')](_0x29ca01,_0xfee8d3){const _0x479339=this[_0x10a8('0xf1')][_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0x94')),_0x74d4a3=this['_suggestions'][_0x10a8('0x7a')](_0x29ca01);if(this[_0x10a8('0x47')]&&this[_0x10a8('0x47')][_0x10a8('0x2f')]){if(_0x74d4a3[_0x10a8('0xc0')]){const _0x599121=_0x479339[_0x10a8('0x11e')](_0x422247(this['editor'][_0x10a8('0x3d')],'PENDING_ACTION_SUGGESTION'));this[_0x10a8('0x47')][_0x10a8('0x2f')](_0x29ca01,_0xfee8d3)['then'](()=>{_0x479339[_0x10a8('0xaf')](_0x599121);});}else _0x74d4a3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x29ca01,_0xfee8d3);});}}['_getSuggestionData'](_0x12a229){if(!this[_0x10a8('0x47')]||!this['_adapter'][_0x10a8('0x67')])throw new _0x57d3ea(_0x10a8('0xa6'),this);return this[_0x10a8('0x47')]['getSuggestion'](_0x12a229);}[_0x10a8('0x8b')](_0x345427){const {id:_0x3f5911,type:_0x3546a2,subType:_0x18fe6b,authorId:_0x388aa0}=this[_0x10a8('0x10')](_0x345427),_0x2d3172=this[_0x10a8('0x77')][_0x10a8('0x7a')](_0x3f5911)||this['_createSuggestion'](_0x3546a2,_0x18fe6b,_0x3f5911,_0x388aa0);switch(this['_checkSuggestionCorrectness'](_0x2d3172,_0x3546a2,_0x18fe6b,_0x388aa0),this['_suggestionState'][_0x10a8('0x7a')](_0x2d3172)){case _0x10a8('0x25'):this['_getSuggestionData'](_0x3f5911)[_0x10a8('0x109')](_0x535a06=>{let _0x20b99d=Promise[_0x10a8('0xcb')]();_0x535a06[_0x10a8('0x95')]&&(_0x20b99d=this['_commentsRepository'][_0x10a8('0x62')]({'channelId':this['editor'][_0x10a8('0x26')][_0x10a8('0x7a')](_0x10a8('0xe4')),'threadId':_0x3f5911})),_0x20b99d[_0x10a8('0x109')](()=>{this[_0x10a8('0x5e')](_0x535a06)[_0x10a8('0xc0')]=!0x0;});}),this[_0x10a8('0xce')][_0x10a8('0x120')](_0x2d3172,'markerReady');break;case _0x10a8('0x8c'):this[_0x10a8('0x113')](_0x3f5911,{'state':_0x10a8('0xee')});case _0x10a8('0x43'):this[_0x10a8('0xce')][_0x10a8('0x120')](_0x2d3172,'ready'),this['fire']('suggestionLoaded',_0x2d3172);break;case'ready':this[_0x10a8('0x12b')](_0x10a8('0x4b'),_0x2d3172);}return _0x2d3172[_0x10a8('0xf4')](_0x345427),_0x2d3172;}[_0x10a8('0xda')](_0x56120){const _0x39d08c=Array[_0x10a8('0x111')](_0x56120)[_0x10a8('0xb5')](_0x5886ab=>!_0x5886ab[_0x10a8('0x126')]),_0x1e6a27=this[_0x10a8('0xeb')]({'skipNotAttached':!0x0})[_0x10a8('0xb5')](_0x4dd708=>!_0x4dd708['isMultiRange']),_0x3a3637=_0x1e6a27['filter'](_0x337335=>!_0x56120[_0x10a8('0x6f')](_0x337335)),_0x387603=new Map(_0x1e6a27[_0x10a8('0xc7')](_0x3ecf19=>[_0x3ecf19,this['_suggestionFactory'][_0x10a8('0xc5')](_0x3ecf19['type'],_0x3ecf19[_0x10a8('0x72')],'chain')])),_0x1c6b5b=new Map(_0x1e6a27['map'](_0x355661=>[_0x355661,_0x355661[_0x10a8('0x59')]()])),_0x37f839=new Set(),_0x28b081=new Set();for(let _0x538419=0x0;_0x538419<_0x39d08c['length'];_0x538419++)_0x2762a3(_0x39d08c[_0x538419],_0x39d08c,_0x538419+0x1);for(let _0x380457=0x0;_0x380457<_0x39d08c[_0x10a8('0xe0')];_0x380457++)_0x2762a3(_0x39d08c[_0x380457],_0x3a3637,0x0);for(let _0x1b9fb7=0x0;_0x1b9fb7<_0x39d08c[_0x10a8('0xe0')];_0x1b9fb7++){const _0x243a15=_0x39d08c[_0x1b9fb7];!_0x28b081[_0x10a8('0x6f')](_0x243a15)&&_0x243a15[_0x10a8('0xde')]&&(_0x243a15['previous'][_0x10a8('0x5b')]===_0x243a15&&(_0x243a15[_0x10a8('0xde')][_0x10a8('0x5b')]=null),_0x243a15[_0x10a8('0xde')]=null),!_0x37f839[_0x10a8('0x6f')](_0x243a15)&&_0x243a15[_0x10a8('0x5b')]&&(_0x243a15[_0x10a8('0x5b')]['previous']===_0x243a15&&(_0x243a15['next'][_0x10a8('0xde')]=null),_0x243a15['next']=null);}function _0x2762a3(_0x12d0e2,_0x2dd50d,_0x3d4b16){for(let _0x134321=_0x3d4b16;_0x134321<_0x2dd50d[_0x10a8('0xe0')];_0x134321++){const _0x50d834=_0x251707(_0x12d0e2,_0x2dd50d[_0x134321]);_0x50d834&&(_0x50d834[0x0][_0x10a8('0x5b')]=_0x50d834[0x1],_0x50d834[0x1][_0x10a8('0xde')]=_0x50d834[0x0],_0x37f839[_0x10a8('0x11e')](_0x50d834[0x0]),_0x28b081['add'](_0x50d834[0x1]));}}function _0x251707(_0x5d37a0,_0x3d9085){if(_0x5d37a0[_0x10a8('0x84')]['id']!==_0x3d9085[_0x10a8('0x84')]['id'])return null;const _0x4beb93=_0x387603[_0x10a8('0x7a')](_0x5d37a0)(_0x5d37a0,_0x3d9085,_0x1c6b5b['get'](_0x5d37a0),_0x1c6b5b[_0x10a8('0x7a')](_0x3d9085));if(!_0x4beb93)return null;return _0x387603[_0x10a8('0x7a')](_0x3d9085)(_0x5d37a0,_0x3d9085,_0x1c6b5b[_0x10a8('0x7a')](_0x5d37a0),_0x1c6b5b[_0x10a8('0x7a')](_0x3d9085))?_0x4beb93[0x1][_0x10a8('0x65')]&&_0x4beb93[0x1][_0x10a8('0x65')]['length']?null:_0x4beb93:null;}}[_0x10a8('0x2a')](_0xc3411c){const _0x463d45=Array[_0x10a8('0x111')](_0xc3411c),_0x5497e4=this[_0x10a8('0xeb')]({'skipNotAttached':!0x0}),_0x7efc1f=_0x5497e4[_0x10a8('0xb5')](_0x8ca259=>!_0xc3411c['has'](_0x8ca259)),_0x4864f8=new Map(_0x463d45[_0x10a8('0xc7')](_0x29d6cc=>[_0x29d6cc,this[_0x10a8('0x63')][_0x10a8('0xc5')](_0x29d6cc[_0x10a8('0xae')],_0x29d6cc[_0x10a8('0x72')],_0x10a8('0x60'))])),_0x236428=new Map(_0x5497e4[_0x10a8('0xc7')](_0x57d56c=>[_0x57d56c,_0x57d56c[_0x10a8('0x42')]()]));for(let _0x3c2c94=0x0;_0x3c2c94<_0x463d45[_0x10a8('0xe0')];_0x3c2c94++){if(_0x33cdc3(this,_0x463d45[_0x3c2c94],_0x463d45,_0x3c2c94+0x1))return!0x0;}for(let _0x15cee0=0x0;_0x15cee0<_0x463d45[_0x10a8('0xe0')];_0x15cee0++){if(_0x33cdc3(this,_0x463d45[_0x15cee0],_0x7efc1f,0x0))return!0x0;}return!0x1;function _0x33cdc3(_0x116e3e,_0x326386,_0x53233b,_0x5735b7){for(let _0x2941d4=_0x5735b7;_0x2941d4<_0x53233b['length'];_0x2941d4++){const _0x55aa46=_0x53233b[_0x2941d4];if(_0x55aa46[_0x10a8('0xae')]!==_0x326386[_0x10a8('0xae')]||_0x55aa46[_0x10a8('0x84')]['id']!==_0x326386[_0x10a8('0x84')]['id']||_0x55aa46[_0x10a8('0x72')]!==_0x326386[_0x10a8('0x72')])continue;const _0x187b8f=_0x4864f8[_0x10a8('0x7a')](_0x326386),_0x48d803=_0x236428['get'](_0x326386),_0x5be8df=_0x236428['get'](_0x55aa46),_0x1688c9=_0x326386[_0x10a8('0x65')]&&_0x326386[_0x10a8('0x65')][_0x10a8('0xe0')],_0x426214=_0x55aa46[_0x10a8('0x65')]&&_0x55aa46[_0x10a8('0x65')][_0x10a8('0xe0')];if(!_0x1688c9&&_0x187b8f(_0x5be8df,_0x48d803))return _0x116e3e[_0x10a8('0xc3')](_0x55aa46,_0x326386),_0x236428['delete'](_0x326386),!0x0;if(!_0x426214&&_0x187b8f(_0x48d803,_0x5be8df))return _0x116e3e[_0x10a8('0xc3')](_0x326386,_0x55aa46),_0x236428[_0x10a8('0x9b')](_0x55aa46),!0x0;}return!0x1;}}[_0x10a8('0xc3')](_0x239980,_0x20f935){if(_0x239980[_0x10a8('0x126')])for(const _0x663835 of _0x20f935[_0x10a8('0x42')]())_0x239980[_0x10a8('0x5d')](_0x663835);else{const _0x4a8dd2=_0x20f935[_0x10a8('0x59')]()[_0x10a8('0xa9')];this['_setSuggestionRange'](_0x239980,this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x239980['getFirstRange']()['start'],_0x4a8dd2));}_0x20f935[_0x10a8('0xbb')]();}}_0x2a95b8(p,_0x3b29d5);class Dt{constructor(_0x13f0e6){this[_0x10a8('0x34')]=_0x13f0e6,this[_0x10a8('0xd7')]=_0x13f0e6[_0x10a8('0x115')],this[_0x10a8('0x58')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x10a8('0x1c')]();}[_0x10a8('0xf6')](_0x1d2401,_0x4f8350,_0xdff6c5,_0x32a977,_0x3af457,_0x23e6bc){return new _0x2ac191(this['_model'],{'type':_0x1d2401,'subType':_0x4f8350,'id':_0xdff6c5,'author':_0x32a977,'creator':_0x32a977,'attributes':_0x3af457,'onAttributesChange':_0x23e6bc,'onAccept':(..._0x29b4f7)=>this['getSuggestionCallback'](_0x1d2401,_0x4f8350,_0x10a8('0x4c'))(..._0x29b4f7),'onDiscard':(..._0x122847)=>this[_0x10a8('0xc5')](_0x1d2401,_0x4f8350,_0x10a8('0xdb'))(..._0x122847)});}[_0x10a8('0x12d')](_0x5d9fb0,_0x11c9b0,_0x4aac2e,_0x12ddd6){const _0xfa5560=_0x5d9fb0+':'+_0x11c9b0+':'+_0x4aac2e;this['_customCallbacks'][_0x10a8('0x120')](_0xfa5560,_0x12ddd6);}[_0x10a8('0xc5')](_0xf1ab93,_0x250cc5,_0x286baa){const _0x2a353d=_0xf1ab93+':'+_0x250cc5+':'+_0x286baa;return this[_0x10a8('0x58')][_0x10a8('0x7a')](_0x2a353d)||this[_0x10a8('0x57')][_0x10a8('0x7a')](_0xf1ab93+':'+_0x286baa);}[_0x10a8('0x1c')](){const _0x163826=()=>{},_0x1b325b=_0x559649=>{_0x559649[_0x10a8('0x97')]((_0x423b42,_0x3512f7)=>_0x423b42[_0x10a8('0xd3')][_0x10a8('0x66')](_0x3512f7[_0x10a8('0xd3')])?0x1:-0x1),this[_0x10a8('0xd7')]['change'](_0x57a7bc=>{for(const _0x17c727 of _0x559649){let _0x154bd4;_0x154bd4=_0x17c727['end']['isAtEnd']&&_0x17c727['end'][_0x10a8('0x1')]==_0x17c727[_0x10a8('0xd3')][_0x10a8('0x1f')]?_0x57a7bc[_0x10a8('0xcf')](_0x17c727['start'][_0x10a8('0x1f')],'on'):_0x57a7bc[_0x10a8('0xcf')](_0x17c727),this[_0x10a8('0xd7')][_0x10a8('0xa2')](_0x154bd4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x20db98=(_0x23ec37,_0x347b75)=>{this[_0x10a8('0xd7')][_0x10a8('0x33')](_0x244709=>{const {commandName:_0x3a26d9,commandParams:_0x3e97de=[]}=_0x347b75,_0x3a04a7=_0x23ec37['map'](_0x1381cc=>(Bt(_0x1381cc)&&(_0x1381cc=this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x1381cc[_0x10a8('0xa9')])),_0x1381cc))[_0x10a8('0xb5')](_0x2d9f0f=>_0x10a8('0x31')!==_0x2d9f0f[_0x10a8('0x106')]['rootName']);if(_0x3a04a7[_0x10a8('0xe0')]<0x1)return;const _0x320a54=Array[_0x10a8('0x111')](this['_model'][_0x10a8('0xb8')][_0x10a8('0xb')]['getRanges']())['map'](_0x236977=>_0x1ee699[_0x10a8('0x7')](_0x236977));_0x244709[_0x10a8('0x22')](_0x3a04a7);for(const _0x22d223 of this[_0x10a8('0x34')][_0x10a8('0x55')][_0x10a8('0x55')]())_0x22d223[_0x10a8('0x18')]();_0x3e97de['push']({'forceDefaultExecution':!0x0}),this[_0x10a8('0x34')][_0x10a8('0x50')](_0x3a26d9,..._0x3e97de);const _0x1f58ad=_0x320a54[_0x10a8('0xb5')](_0x166907=>_0x10a8('0x31')!=_0x166907[_0x10a8('0x106')]['rootName']);_0x1f58ad[_0x10a8('0xe0')]>0x0&&_0x244709[_0x10a8('0x22')](_0x1f58ad);for(const _0x3937a7 of _0x320a54)_0x3937a7['detach']();});},_0x1dc7a0=(_0x4fc9cf,_0x463910)=>0x1==_0x4fc9cf[_0x10a8('0xe0')]&&0x1==_0x463910['length']&&_0x4fc9cf[0x0][_0x10a8('0xa9')][_0x10a8('0x137')](_0x463910[0x0]['start']),_0x1dbb64=(_0x3d940d,_0x3d395f,_0x596a89,_0x251687)=>Rt(_0x3d940d,_0x3d395f,_0x596a89,_0x251687,this[_0x10a8('0xd7')])?[_0x3d940d,_0x3d395f]:Rt(_0x3d395f,_0x3d940d,_0x251687,_0x596a89,this[_0x10a8('0xd7')])?[_0x3d395f,_0x3d940d]:null;this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0x15'),_0x163826),this[_0x10a8('0x57')][_0x10a8('0x120')]('insertion:discard',_0x1b325b),this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0x90'),_0x1dc7a0),this[_0x10a8('0x57')]['set'](_0x10a8('0x12f'),_0x1dbb64),this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0xb0'),_0x1b325b),this['_defaultCallbacks']['set'](_0x10a8('0x35'),_0x163826),this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0x20'),_0x1dc7a0),this['_defaultCallbacks'][_0x10a8('0x120')](_0x10a8('0xa3'),_0x1dbb64),this['_defaultCallbacks'][_0x10a8('0x120')](_0x10a8('0x2e'),_0x20db98),this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0xbc'),_0x163826),this['_defaultCallbacks'][_0x10a8('0x120')](_0x10a8('0xfa'),_0x1dc7a0),this[_0x10a8('0x57')]['set']('formatInline:chain',_0x163826),this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0xd6'),_0x20db98),this['_defaultCallbacks'][_0x10a8('0x120')](_0x10a8('0xb7'),_0x163826),this['_defaultCallbacks'][_0x10a8('0x120')](_0x10a8('0x87'),_0x1dc7a0),this[_0x10a8('0x57')][_0x10a8('0x120')]('formatBlock:chain',_0x163826);}}function Ct(_0x165c53,_0x256582,_0x37cf8b){for(const _0x22ca44 of _0x256582[_0x10a8('0x1')][_0x10a8('0x40')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x22ca44[_0x10a8('0x106')]==_0x22ca44)return!0x1;if(!_0x37cf8b[_0x10a8('0x105')](_0x22ca44))return!0x1;if(_0x165c53[_0x10a8('0xdf')](_0x22ca44)||_0x165c53[_0x10a8('0xb6')](_0x22ca44))return!0x0;}}function Bt(_0x369e48){return _0x369e48[_0x10a8('0xa9')][_0x10a8('0x1')]==_0x369e48[_0x10a8('0xd3')][_0x10a8('0x1f')]&&_0x369e48['end'][_0x10a8('0x2')];}function _t(_0x5083b7,_0x3780c1,_0x140dcd,_0x4cf289){const _0x4db1c7=_0x2af9c7=>!_0x2af9c7[_0x10a8('0x130')]['is']('textProxy')&&!_0x4cf289[_0x10a8('0xdf')](_0x2af9c7['item']),_0x171318=_0x5083b7[_0x10a8('0xd3')][_0x10a8('0x0')](_0x4db1c7),_0x3cd101=_0x5083b7[_0x10a8('0xa9')][_0x10a8('0x0')](_0x4db1c7,{'direction':_0x10a8('0x1e')});return(!_0x5083b7[_0x10a8('0xd3')][_0x10a8('0x137')](_0x171318)||!_0x5083b7[_0x10a8('0xa9')][_0x10a8('0x137')](_0x3cd101))&&(_0x171318[_0x10a8('0x66')](_0x3cd101)?_0x140dcd[_0x10a8('0xfb')](_0x3780c1,{'range':_0x140dcd[_0x10a8('0x23')](_0x171318,_0x3cd101)}):_0x140dcd[_0x10a8('0xb3')](_0x3780c1),!0x0);}function Mt(_0x4f3d57){return _0x1dda37(_0x4f3d57);}function $t(_0xf68923){const _0x403d14=_0xf68923['start'][_0x10a8('0x1f')];return _0x403d14&&_0x403d14['is']('element');}function Nt(_0x21973f,_0x3a9265){const _0x4a4709=_0x3a9265[_0x10a8('0xcc')][_0x10a8('0xdf')](_0x21973f)||_0x3a9265['schema'][_0x10a8('0xf7')](_0x21973f);return _0x3a9265[_0x10a8('0x23')](_0x3a9265['createPositionAt'](_0x21973f,_0x10a8('0x8')),_0x4a4709?_0x3a9265['createPositionAfter'](_0x21973f):_0x3a9265['createPositionAt'](_0x21973f,_0x10a8('0xa9')));}function Rt(_0x171c0a,_0x291b39,_0x4f07e4,_0x545379,_0x2cbadb){if(_0x4f07e4[_0x10a8('0xa9')]['isEqual'](_0x545379['start']))return!0x0;if(_0x171c0a['type']!=_0x291b39[_0x10a8('0xae')])return!0x1;if(!_0x4f07e4['end']['isTouching'](_0x545379[_0x10a8('0xd3')]))return!0x1;const _0x5a6132=_0x2cbadb[_0x10a8('0x23')](_0x4f07e4[_0x10a8('0xa9')],_0x545379[_0x10a8('0xd3')])['getWalker']();for(const _0x17c832 of _0x5a6132)if([_0x10a8('0xfe'),_0x10a8('0x6')]['includes'](_0x17c832['type'])&&_0x2cbadb[_0x10a8('0xcc')]['isLimit'](_0x17c832[_0x10a8('0x130')]))return!0x1;return!0x0;}
23
+ const _0x1393=['high','start','showSuggestionHighlights','markBlockFormat','TrackChangesEditing','values','data-suggestion','insertion:','formatGroupId','schema','ck-suggestion-marker--active','isMultiRange','elementToElement','consume','has','removeComment','markInlineFormat','Users','_getSuggestionData','locale','formatBlock:','_getExternalAuthor','track-changes-adapter-already-set','creator','commentThread','getFirstRange','map','formatBlock:join','conversion','_getAuthorFromId','hasComments','then','isLimit','getUser','change:data','return','insertion:chain','define','size','removeClass','open','formatInline:join','isUndo','markDeletion','consumable','requires','addMarker','widget','_joinWithAdjacentSuggestions','nodeAfter','isInsideObject','insertion:accept','getShiftedBy','getAttribute','moveTargetPosition','insertion','dataReady','rethrowUnexpectedError','markers','formatBlock','isIntersectingWithRange','suggestion:','oldRange','detach','getIntersection','reconvertMarker','before','stop','authorName','_cutOutSuggestionMarker','track-changes-suggestion-data-mismatch','length','getChanges','subType','suggestion-type','hasCommentThread','_refreshSuggestionsChain','_rangeIsInLocalUserInsertion','writer','backward','createSelection','track-changes-command-not-found','isInContent','mapper','isEqual','getNearestSelectionRange','split','unbind','_suggestions','getCustomProperty','model','_adapter','for','isCollapsed','_setSuggestionData','insertContent','accept','skipNestingCheck','_model','addMarker:suggestion','addClass','addMarker:suggestion:formatBlock','originalSuggestionId','lowest','fromCharCode','init','enableReadOnlyMode','enqueueChange','getChangedMarkers','getAncestors','element','createdAt','ck-suggestion-marker','data','resolve','updateMarker','_findSuggestions','forceDefaultExecution','plugins','newRange','trackChangesCommand','forward','getRange','chain','collaboration.channelId','addRange','getSuggestionCallback','isSelectable','range','formatBlock:accept','formatInline','removeMarkers','get','attributes','document','set','bindElementToMarker','addHighlight','acceptAllSuggestions','_updateSuggestionData','insertion:join','removeMarker','editor','formatInline:','$textProxy','dataDowncast','_splitMarkerName','_suggestionFactory','suggestion','next','position','_commentsRepository','remove','_trackFormatChanges','commands','getDifference','isBefore','dataToMarker','activeMarkers','rootName','unbindElementFromMarkerName','createRangeIn','removed','isTouching','accepted','buildSuggestion','updateSuggestion','getSuggestions','track-changes-user-not-found','push','_createSuggestion','options','item','after','config','_customCallbacks','fire','CommentsRepository','join','formatInline:chain','track-changes-suggestion-not-found','isOwn','markerReady','notReady','_isForcedDefaultExecutionBlock','markerName','registerPostFixer','change:activeMarkers','value','ready','discardAllSuggestions','_registerDefaultCallbacks','discard','stopListening','addComment','addUser','_defaultCallbacks','containsPosition','_addSuggestionMarker','insert','delete','isObject','normal','move','multipleBlocks','formatBlock:discard','selection','addSuggestion','enableCommand','fetchCommentThread','root','authoredAt','group','getFirstMarker','ck-suggestion-marker-formatBlock','previous','_checkSuggestionCorrectness','editingDowncast','sort','_breakSuggestionMarker','createRange','_joinSuggestions','type','external:','nodeBefore','isRemovable','_handleNewSuggestionMarker','clear','some','isExternal','suggestionLoaded','PendingActions','update:suggestion','isNextTo','howMany','addCommentThread','$graveyard','deletion:','catch','_onDiscard','isAfter','_setSuggestionRange','addMarkerName','documentSelection','from','commandName','listenTo','createPositionAt','_addThreadToSuggestion','marker-count','parent','getSuggestion','containsRangeInObject','containsItem','every','fromRange','acceptSuggestion','includes','isAtEnd','hasSuggestion','setSelection','markMultiRangeDeletion','discardSelectedSuggestions','@external','refresh','differ','formatInline:accept','getItems','rejected','multi','batch','$marker','_saved','acceptSelectedSuggestions','elementStart','author','getRanges','PENDING_ACTION_SUGGESTION','end','change','markInsertion','containsRange','trackChanges','change:_saved','getLastMatchingPosition','highest','isDocumentOperation','addSuggestionData','deletion:accept','containerElement','editing','_suggestionState','deleteContent','name','discardSuggestion','suggestionChanged','deletion:join','getMultiRangeId','error-saving-suggestion-data-suggestion-discarded','upcast','add','markMultiRangeBlockFormat','low','adapter','ck-suggestion-marker-','splitPosition','execute','filter','removeMarker:suggestion:formatBlock','registerCustomCallback','_editor','_removeSuggestion','deletion','trackChanges.trackFormatChanges','splice','formatInline:discard'];(function(_0x295217,_0x1393d6){const _0x12959e=function(_0x3f59f3){while(--_0x3f59f3){_0x295217['push'](_0x295217['shift']());}};_0x12959e(++_0x1393d6);}(_0x1393,0x111));const _0x1295=function(_0x295217,_0x1393d6){_0x295217=_0x295217-0x0;let _0x12959e=_0x1393[_0x295217];return _0x12959e;};import{Plugin as _0x3fbe60,PendingActions as _0x510eb1}from'ckeditor5/src/core';import{LiveRange as _0x30e928}from'ckeditor5/src/engine';import{CKEditorError as _0x5ca231,uid as _0x381575,priorities as _0x4e5bde,logWarning as _0x5105f9}from'ckeditor5/src/utils';import{toWidget as _0x3e735f}from'ckeditor5/src/widget';import{Users as _0x1a74a7,hashObject as _0x55d191}from'ckeditor5-collaboration/src/collaboration-core';import _0x1452b9 from'./commands/trackchangescommand';import _0x508f45 from'./commands/acceptsuggestioncommand';import _0x23b22b from'./commands/discardsuggestioncommand';import _0x15693c from'./commands/executeonallsuggestionscommand';import _0x239b1b from'./commands/executeonselectedsuggestionscommand';import _0x55858b from'./suggestion';import _0x3f9c39 from'./suggestiondescriptionfactory';import _0x2a4832 from'./integrations/alignment';import _0x5c42f8 from'./integrations/basicstyles';import _0x53f75f from'./integrations/blockquote';import _0x33110f from'./integrations/ckbox';import _0x4fe0fb from'./integrations/codeblock';import _0x4b25f6 from'./integrations/comments';import _0x4dc3a2 from'./integrations/deletecommand';import _0x489fb5 from'./integrations/documentlist';import _0x31eeab from'./integrations/entercommand';import _0x525888 from'./integrations/findandreplace';import _0xcb678d from'./integrations/font';import _0x41bcc6 from'./integrations/heading';import _0x54fb5c from'./integrations/highlight';import _0x9f8f07 from'./integrations/horizontalline';import _0x12082a from'./integrations/htmlembed';import _0x169cc2 from'./integrations/image';import _0x481aa0 from'./integrations/imagereplace';import _0x3a3ff2 from'./integrations/importword';import _0x117361 from'./integrations/indent';import _0x9e9546 from'./integrations/inputcommand';import _0x5d56ca from'./integrations/link';import _0x619dfa from'./integrations/list';import _0x134fca from'./integrations/listproperties';import _0x12570a from'./integrations/mediaembed';import _0x387994 from'./integrations/mention';import _0x1ef231 from'./integrations/pagebreak';import _0x21ff1f from'./integrations/paragraph';import _0x2c90e9 from'./integrations/removeformat';import _0x189db3 from'./integrations/restrictededitingmode';import _0x3daf6f from'./integrations/shiftentercommand';import _0x33f7f4 from'./integrations/standardeditingmode';import _0x1f27e1 from'./integrations/style';import _0x19db28 from'./integrations/table';import _0x485547 from'./integrations/tablemergesplit';import _0x1cc28b from'./integrations/tableheadings';import _0x28e040 from'./integrations/tableclipboard';import _0x3375a3 from'./integrations/tablecolumnresize';import _0x442fdb from'./integrations/title';import _0xf6b108 from'./integrations/undo';import{getTranslation as _0x146fe2}from'./utils/common-translations';import _0x41a3a9 from'./integrations/tablecaption';import _0x9382e4 from'./integrations/documentlistproperties';import _0x56ddf3 from'./integrations/tableproperties';export default class p extends _0x3fbe60{static get[_0x1295('0x58')](){return['CommentsRepository',_0x1a74a7,_0x510eb1,_0x2a4832,_0x5c42f8,_0x53f75f,_0x33110f,_0x4fe0fb,_0x4b25f6,_0x4dc3a2,_0x489fb5,_0x9382e4,_0x31eeab,_0x525888,_0xcb678d,_0x41bcc6,_0x54fb5c,_0x9f8f07,_0x12082a,_0x169cc2,_0x481aa0,_0x3a3ff2,_0x117361,_0x9e9546,_0x5d56ca,_0x619dfa,_0x134fca,_0x12570a,_0x387994,_0x1ef231,_0x21ff1f,_0x2c90e9,_0x189db3,_0x3daf6f,_0x33f7f4,_0x1f27e1,_0x19db28,_0x485547,_0x1cc28b,_0x41a3a9,_0x28e040,_0x3375a3,_0x56ddf3,_0x442fdb,_0xf6b108];}static get['pluginName'](){return _0x1295('0x2f');}constructor(_0xbb4aad){function _0x31e908(_0x38c7bb){return _0x38c7bb[_0x1295('0x45')](_0x1c9e0d=>String[_0x1295('0x93')](_0x1c9e0d))[_0x1295('0xdd')]('');}super(_0xbb4aad),this[_0x1295('0xb2')](_0x1295('0xc9'),[]),this['on'](_0x1295('0xe6'),(_0x525250,_0x32a6ad,_0x1b848c,_0x565e49)=>{this[_0x1295('0x8d')]['change'](()=>{for(const _0x21bf12 of[..._0x565e49,..._0x1b848c])this['_model'][_0x1295('0x65')][_0x1295('0x39')](_0x21bf12)&&_0xbb4aad[_0x1295('0x11')][_0x1295('0x6c')](_0x21bf12);});}),this['_descriptionFactory']=new _0x3f9c39(this['editor'][_0x1295('0x85')][_0x1295('0x34')],this[_0x1295('0xb9')][_0x1295('0x3e')]),this[_0x1295('0x86')]=null,this[_0x1295('0xbe')]=new vt(this[_0x1295('0xb9')]),this['_suggestions']=new Map(),this[_0x1295('0xc2')]=_0xbb4aad[_0x1295('0xa1')]['get'](_0x1295('0xdc')),this['_enabledCommands']=new Set(),this[_0x1295('0x8d')]=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xbb4aad['config'][_0x1295('0x50')](_0x1295('0x28'),!0x0),this[_0x1295('0xc4')]=_0xbb4aad['config'][_0x1295('0xaf')]('trackChanges.trackFormatChanges'),this[_0x1295('0xa3')]=new _0x1452b9(_0xbb4aad,this['_enabledCommands']),this[_0x31e908([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x31e908([0x34,0x30,0x34,0x36,0x30,0x38,0x30,0x36]);}[_0x1295('0x94')](){const _0x15d52e=this[_0x1295('0xb9')];_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x104'))['markerToHighlight']({'model':_0x1295('0xbf'),'view':_0x33d8f9=>{const {id:_0x42a4fd,type:_0x1a1e17}=this[_0x1295('0xbd')](_0x33d8f9['markerName']),_0x3fa754=[_0x1295('0x9b'),_0x1295('0x1f')+_0x1a1e17];let _0x5ee5d1=0xbb8;return this[_0x1295('0xc9')]['includes'](_0x33d8f9[_0x1295('0xe4')])&&(_0x3fa754['push']('ck-suggestion-marker--active'),_0x5ee5d1=0xbc2),'deletion'==_0x1a1e17&&(_0x5ee5d1+=0x5),{'classes':_0x3fa754,'attributes':{'data-suggestion':_0x42a4fd},'priority':_0x5ee5d1};}}),_0x15d52e['conversion'][_0x1295('0x87')](_0x1295('0xbc'))['add'](_0x5e0b14=>{_0x5e0b14['on'](_0x1295('0x8e'),(_0x255afa,_0x28d207,_0x51bbed)=>{if(!_0x51bbed[_0x1295('0xd6')][_0x1295('0x2d')])return;const _0x41f51a=_0x28d207[_0x1295('0xd7')];if(!_0x41f51a)return;const _0x3b2090=_0x51bbed[_0x1295('0x7e')]['toViewElement'](_0x41f51a);_0x15d52e['model'][_0x1295('0x34')][_0x1295('0xf4')](_0x41f51a)&&_0x3b2090&&!_0x3b2090[_0x1295('0x84')](_0x1295('0x5a'))&&_0x3b2090['is'](_0x1295('0x10'))&&_0x3e735f(_0x3b2090,_0x51bbed[_0x1295('0x79')]);},{'priority':_0x1295('0x2b')});}),_0x15d52e[_0x1295('0x47')]['for']('dataDowncast')['markerToHighlight']({'model':_0x1295('0xbf'),'view':(_0x1ba01c,_0x2e4854)=>{if(!_0x2e4854[_0x1295('0xd6')][_0x1295('0x2d')])return null;const {type:_0x6cc2e7}=this[_0x1295('0xbd')](_0x1ba01c[_0x1295('0xe4')]);return{'classes':[_0x1295('0x9b'),_0x1295('0x1f')+_0x6cc2e7],'priority':0xbb8};}});const _0x3097a5=({showActiveMarkers:_0x418454=!0x0}={})=>(_0x3b0022,_0x129ff8,_0x2bc38f)=>{if(!_0x129ff8['item'])return;if(_0x129ff8[_0x1295('0xd7')]['is']('selection'))return void _0x2bc38f['consumable'][_0x1295('0x38')](_0x129ff8[_0x1295('0xd7')],_0x3b0022[_0x1295('0x14')]);const _0x4804c6=_0x2bc38f[_0x1295('0x7e')]['toViewElement'](_0x129ff8[_0x1295('0xd7')]);if(!(_0x129ff8['item']['is'](_0x1295('0x99'))&&_0x15d52e['model'][_0x1295('0x34')]['isBlock'](_0x129ff8[_0x1295('0xd7')])&&!_0x4804c6['getCustomProperty'](_0x1295('0xb4'))))return;const {id:_0x4ca0fc}=this['_splitMarkerName'](_0x129ff8[_0x1295('0xe4')]);_0x2bc38f['writer'][_0x1295('0x8f')]([_0x1295('0x9b'),_0x1295('0x101')],_0x4804c6),_0x2bc38f[_0x1295('0x79')]['setAttribute'](_0x1295('0x31'),_0x4ca0fc,_0x4804c6),_0x2bc38f[_0x1295('0x7e')][_0x1295('0xb3')](_0x4804c6,_0x129ff8[_0x1295('0xe4')]),_0x418454&&(this[_0x1295('0xc9')][_0x1295('0x12c')](_0x129ff8[_0x1295('0xe4')])?_0x2bc38f[_0x1295('0x79')][_0x1295('0x8f')](_0x1295('0x35'),_0x4804c6):_0x2bc38f[_0x1295('0x79')]['removeClass']('ck-suggestion-marker--active',_0x4804c6));for(const _0x4b8ab6 of _0x15d52e[_0x1295('0x85')][_0x1295('0xcc')](_0x129ff8[_0x1295('0xd7')])[_0x1295('0x136')]())_0x2bc38f[_0x1295('0x57')][_0x1295('0x38')](_0x4b8ab6,_0x3b0022[_0x1295('0x14')]);_0x2bc38f[_0x1295('0x57')][_0x1295('0x38')](_0x129ff8[_0x1295('0xd7')],_0x3b0022['name']);};_0x15d52e[_0x1295('0x47')]['for'](_0x1295('0xbc'))['add'](_0x553557=>{_0x553557['on'](_0x1295('0x90'),(_0x5e5a9f,_0x5cdba8,_0x1dd985)=>{_0x1dd985[_0x1295('0xd6')][_0x1295('0x2d')]&&_0x3097a5({'showActiveMarkers':!0x1})(_0x5e5a9f,_0x5cdba8,_0x1dd985);},{'priority':_0x1295('0xc')});}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')]('dataDowncast')['markerToData']({'model':_0x1295('0xbf'),'view':(_0xea722,_0x252da1)=>_0x252da1[_0x1295('0xd6')][_0x1295('0x2d')]?null:{'group':_0x1295('0xbf'),'name':_0xea722['substr'](_0x1295('0xbf')[_0x1295('0x72')]+0x1)}}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x1a'))[_0x1295('0x37')]({'view':{'name':_0x1295('0xbf'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1a48aa,{writer:_0x12dda2})=>{let _0x20ef05='suggestion:'+_0x1a48aa[_0x1295('0x60')](_0x1295('0x75'))+':'+_0x1a48aa[_0x1295('0x60')]('id');return _0x1a48aa[_0x1295('0x60')](_0x1295('0x124'))&&(_0x20ef05+=':'+_0x1a48aa[_0x1295('0x60')](_0x1295('0x124'))),_0x12dda2['createElement'](_0x1295('0x13a'),{'data-name':_0x20ef05});}}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x1a'))[_0x1295('0xc8')]({'view':_0x1295('0xbf')}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')]('editingDowncast')[_0x1295('0x1b')](_0x1d7608=>{_0x1d7608['on'](_0x1295('0x90'),_0x3097a5(),{'priority':_0x1295('0x2b')});}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x104'))[_0x1295('0x1b')](_0x429c47=>{_0x429c47['on'](_0x1295('0x23'),(_0x1e2eb4,_0x40fb94,_0x2e13f7)=>{const _0x776f46=_0x2e13f7[_0x1295('0x7e')]['markerNameToElements'](_0x40fb94[_0x1295('0xe4')]);if(_0x776f46)for(const _0x31768f of _0x776f46)_0x31768f[_0x1295('0x84')](_0x1295('0xb4'))||(_0x2e13f7[_0x1295('0x79')][_0x1295('0x52')]([_0x1295('0x9b'),_0x1295('0x101'),_0x1295('0x35')],_0x31768f),_0x2e13f7[_0x1295('0x79')]['removeAttribute'](_0x1295('0x31'),_0x31768f),_0x2e13f7[_0x1295('0x7e')][_0x1295('0xcb')](_0x31768f,_0x40fb94[_0x1295('0xe4')]));},{'priority':'high'});}),_0x15d52e[_0x1295('0x85')][_0x1295('0xb1')][_0x1295('0xe5')](_0x513aa7=>{let _0xae3eea=!0x1;const _0x4ba6b5=Array[_0x1295('0x11f')](_0x15d52e['model'][_0x1295('0xb1')][_0x1295('0x134')][_0x1295('0x97')]()),_0x4d23d2=new Set();for(const {name:_0x3982ef,data:_0x16183e}of _0x4ba6b5){const {group:_0x45b9c4,type:_0x2ea65c,id:_0x38c119}=this[_0x1295('0xbd')](_0x3982ef);if('suggestion'!==_0x45b9c4)continue;const _0x5b9999=this[_0x1295('0x83')][_0x1295('0xaf')](_0x38c119);if(null!=_0x16183e['newRange']){_0x1295('0xad')==_0x2ea65c&&(_0xae3eea=_0xae3eea||Ct(_0x16183e[_0x1295('0xa2')],_0x3982ef,_0x513aa7,_0x15d52e['model'][_0x1295('0x34')]));if(_0x16183e[_0x1295('0xa2')]['isCollapsed']||'$graveyard'==_0x16183e[_0x1295('0xa2')][_0x1295('0xfd')][_0x1295('0xca')]||'formatBlock'==_0x2ea65c&&!_t(_0x16183e[_0x1295('0xa2')])||_0x1295('0x27')==_0x2ea65c&&!(!Dt(_0x269d10=_0x16183e[_0x1295('0xa2')])&&!function(_0xa44f36){return _0xa44f36[_0x1295('0x2c')]['parent']==_0xa44f36[_0x1295('0x5')][_0x1295('0x10b')]&&_0xa44f36[_0x1295('0x2c')][_0x1295('0x12d')];}(_0x269d10)))_0x513aa7['removeMarker'](_0x3982ef),_0xae3eea=!0x0;else{if(!_0x5b9999||!_0x5b9999['isInContent'])continue;_0x4d23d2[_0x1295('0x1b')](_0x5b9999);}}}var _0x269d10;return _0x4d23d2[_0x1295('0x51')]>0x0&&(_0xae3eea=!!this[_0x1295('0x5b')](_0x4d23d2)||_0xae3eea),_0xae3eea;}),_0x15d52e[_0x1295('0x85')][_0x1295('0xb1')][_0x1295('0xe5')](_0x2ab407=>{let _0x2fd14d=!0x1;for(const _0x53cdae of _0x15d52e[_0x1295('0x85')][_0x1295('0xb1')][_0x1295('0x134')][_0x1295('0x73')]()){if('insert'!=_0x53cdae[_0x1295('0x109')])continue;const _0x47cc5e=_0x53cdae[_0x1295('0xc1')]['getShiftedBy'](_0x53cdae['length']);if(_0x47cc5e[_0x1295('0x12d')])for(const _0x2c0107 of this[_0x1295('0x83')][_0x1295('0x30')]()){if(_0x2c0107[_0x1295('0x36')]||!_0x2c0107[_0x1295('0x7d')])continue;if(_0x1295('0x66')!=_0x2c0107['type'])continue;const _0x56b525=_0x2c0107['getFirstRange']();if(_0x56b525[_0x1295('0x2c')][_0x1295('0x125')]!=_0x56b525[_0x1295('0x5')][_0x1295('0x125')]&&_0x56b525['end'][_0x1295('0x7f')](_0x53cdae[_0x1295('0xc1')])){const _0x1a7ffd=_0x15d52e[_0x1295('0x85')][_0x1295('0x107')](_0x56b525[_0x1295('0x2c')],_0x47cc5e);_0x2ab407['updateMarker'](_0x2c0107['getFirstMarker'](),{'range':_0x1a7ffd}),_0x2fd14d=!0x0;}}}return _0x2fd14d;}),_0x15d52e['model'][_0x1295('0x65')]['on'](_0x1295('0x113'),(_0x3e32b8,_0x2da344,_0x242afb)=>{if(null==_0x242afb){const {id:_0x445272}=this[_0x1295('0xbd')](_0x2da344[_0x1295('0x14')]),_0x314cfc=this[_0x1295('0x83')][_0x1295('0xaf')](_0x445272);_0x314cfc&&_0x314cfc[_0x1295('0x11d')](_0x2da344['name']);}}),_0x15d52e[_0x1295('0x85')][_0x1295('0xb1')]['on'](_0x1295('0x4d'),()=>{const _0x39df76=Array[_0x1295('0x11f')](_0x15d52e['model'][_0x1295('0xb1')][_0x1295('0x134')]['getChangedMarkers']())[_0x1295('0x22')](_0x2d02eb=>'suggestion'===this['_splitMarkerName'](_0x2d02eb[_0x1295('0x14')])[_0x1295('0xff')]);if(0x0===_0x39df76[_0x1295('0x72')])return;_0x39df76[_0x1295('0x105')]((_0x13710d,_0x46b6b6)=>{const _0x2e3e48=_0x13710d[_0x1295('0x9c')][_0x1295('0x69')],_0x218dd2=_0x46b6b6[_0x1295('0x9c')][_0x1295('0x69')];return null===_0x2e3e48&&null===_0x218dd2?0x0:null===_0x2e3e48&&null!==_0x218dd2?-0x1:null!==_0x2e3e48&&null===_0x218dd2?0x1:_0x2e3e48[_0x1295('0x2c')]['isBefore'](_0x218dd2['start'])?-0x1:0x1;});const _0x2829a7=new Set(),_0x56d6fa=new Set();for(const {name:_0x29df30,data:_0x16d414}of _0x39df76){const {id:_0x562b8e}=this[_0x1295('0xbd')](_0x29df30);if(null===_0x16d414[_0x1295('0x69')]){const _0x241292=this[_0x1295('0x10d')](_0x29df30);_0x56d6fa[_0x1295('0x1b')](_0x241292);}else{const _0x243e51=this[_0x1295('0x83')]['get'](_0x562b8e);null!==_0x16d414['newRange']||_0x243e51[_0x1295('0x7d')]?(_0x2829a7[_0x1295('0x1b')](_0x243e51['head']),_0x56d6fa[_0x1295('0x1b')](_0x243e51)):this['_removeSuggestion'](_0x243e51);}}_0x56d6fa['size']>0x0&&this[_0x1295('0x77')](_0x56d6fa);for(const _0x405b31 of _0x2829a7)this[_0x1295('0xdb')](_0x1295('0x16'),_0x405b31);}),_0x15d52e[_0x1295('0x85')]['on']('applyOperation',(_0x4686f0,_0x22cf15)=>{const _0x4bc040=_0x22cf15[0x0];if(!this['_suggestions'][_0x1295('0x51')])return;if(!_0x4bc040[_0x1295('0xd')])return;if(_0x4bc040[_0x1295('0x139')][_0x1295('0x55')]||!_0x4bc040['batch']['isLocal'])return;let _0x1a8d62,_0x35dc0b;switch(_0x4bc040[_0x1295('0x109')]){case _0x1295('0xf2'):_0x1a8d62=_0x15d52e['model'][_0x1295('0x122')](_0x4bc040[_0x1295('0xc1')]),_0x35dc0b=_0x1a8d62[_0x1295('0x5f')](_0x4bc040[_0x1295('0x115')]);break;case _0x1295('0x81'):_0x1a8d62=_0x15d52e[_0x1295('0x85')]['createPositionAt'](_0x4bc040[_0x1295('0x20')]),_0x35dc0b=_0x15d52e['model'][_0x1295('0x122')](_0x4bc040[_0x1295('0x61')]);break;case _0x1295('0xf6'):_0x1a8d62=_0x15d52e[_0x1295('0x85')]['createPositionAt'](_0x4bc040['targetPosition']),_0x35dc0b=_0x1a8d62[_0x1295('0x5f')](_0x4bc040[_0x1295('0x115')]);break;default:return;}const _0x1483c1=_0x15d52e[_0x1295('0x85')][_0x1295('0x107')](_0x1a8d62,_0x35dc0b);_0x15d52e[_0x1295('0x85')][_0x1295('0x6')](()=>{for(const {suggestion:_0x45373e,meta:_0x5d34a1}of this['_findSuggestions'](_0x1483c1)){if(_0x45373e['isMultiRange'])continue;if(_0x1295('0xad')==_0x45373e[_0x1295('0x109')])continue;const _0x54a794=_0x45373e[_0x1295('0x9c')]&&_0x45373e[_0x1295('0x9c')]['multipleBlocks'];(_0x1295('0x66')!=_0x45373e[_0x1295('0x109')]||_0x1295('0x81')==_0x4bc040[_0x1295('0x109')]&&!_0x54a794)&&(_0x5d34a1[_0x1295('0x127')]||_0x1295('0x62')==_0x45373e[_0x1295('0x109')]&&_0x5d34a1['isOwn']||_0x45373e[_0x1295('0x44')]()[_0x1295('0x8')](_0x1483c1)&&this[_0x1295('0x106')](_0x45373e,_0x1a8d62,_0x35dc0b));}});},{'priority':_0x1295('0x92')}),_0x15d52e[_0x1295('0x85')]['on']('deleteContent',(_0x43bff8,_0x719089)=>{const _0x53a08d=_0x719089[0x0],_0xf8642e=_0x719089[0x1];if(_0xf8642e&&_0xf8642e[_0x1295('0xa0')])return;if(this[_0x1295('0xe3')])return;if(!this[_0x1295('0xa3')][_0x1295('0xe7')])return;if(_0x53a08d[_0x1295('0x88')])return;const _0x2e798f=_0x15d52e['model']['schema'],{start:_0x11e884,end:_0x4614f3}=_0x53a08d[_0x1295('0x44')](),_0xaca712=_0x11e884[_0x1295('0x5c')]&&_0x2e798f['isLimit'](_0x11e884[_0x1295('0x5c')])?null:_0x2e798f[_0x1295('0x80')](_0x11e884,_0x1295('0xa4')),_0xe7e118=_0x4614f3[_0x1295('0x10b')]&&_0x2e798f[_0x1295('0x4b')](_0x4614f3[_0x1295('0x10b')])?null:_0x2e798f[_0x1295('0x80')](_0x4614f3,_0x1295('0x7a')),_0x49d69c=_0x15d52e[_0x1295('0x85')][_0x1295('0x107')](_0xaca712?_0xaca712[_0x1295('0x2c')]:_0x11e884,_0xe7e118?_0xe7e118[_0x1295('0x5')]:_0x4614f3);_0x15d52e[_0x1295('0x85')][_0x1295('0x6')](_0xc36ba4=>{this['markDeletion'](_0x49d69c);const _0x43b3f5=_0x15d52e['model'][_0x1295('0x34')][_0x1295('0x80')](_0x49d69c[_0x1295('0x2c')]);_0x53a08d['is'](_0x1295('0x11e'))?_0xc36ba4[_0x1295('0x12f')](_0x43b3f5):_0x53a08d['setTo'](_0x43b3f5);}),_0x43bff8[_0x1295('0x6e')]();},{'priority':_0x4e5bde[_0x1295('0xf5')]+0xa}),_0x15d52e['model']['on']('insertContent',(_0x17fe0c,_0x13d6ee)=>{const _0x5327a6=_0x13d6ee[_0x13d6ee['length']-0x1];_0x5327a6&&_0x5327a6[_0x1295('0xa0')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0x1295('0xe7')]&&(_0x15d52e[_0x1295('0x85')]['change'](()=>{let _0x545a7a=_0x15d52e[_0x1295('0x85')][_0x1295('0x8a')](_0x13d6ee[0x0],_0x13d6ee[0x1],_0x13d6ee[0x2],{'forceDefaultExecution':!0x0});if(!_0x545a7a)return;_0x17fe0c[_0x1295('0x4e')]=_0x545a7a['clone']();const _0x3f519f=_0x545a7a[_0x1295('0x5')]['nodeBefore'],_0x1a9dc1=_0x15d52e['model'][_0x1295('0x34')];_0x3f519f&&_0x1a9dc1['isBlock'](_0x3f519f)&&!_0x1a9dc1[_0x1295('0xf4')](_0x3f519f)&&(_0x545a7a=_0x15d52e['model']['createRange'](_0x545a7a[_0x1295('0x2c')],_0x15d52e[_0x1295('0x85')][_0x1295('0x122')](_0x3f519f,_0x1295('0x5')))),this[_0x1295('0x7')](_0x545a7a);}),_0x17fe0c[_0x1295('0x6e')]());},{'priority':_0x1295('0x2b')}),this[_0x1295('0xb9')][_0x1295('0xc5')][_0x1295('0x1b')]('trackChanges',this['trackChangesCommand']),this[_0x1295('0xfb')](_0x1295('0x9'));const _0x8da3e=new _0x508f45(_0x15d52e,this[_0x1295('0x83')]);_0x15d52e['commands'][_0x1295('0x1b')]('acceptSuggestion',_0x8da3e),this[_0x1295('0xfb')](_0x1295('0x12b'));const _0xb10686=new _0x23b22b(_0x15d52e,this[_0x1295('0x83')]);_0x15d52e[_0x1295('0xc5')][_0x1295('0x1b')](_0x1295('0x15'),_0xb10686),this[_0x1295('0xfb')](_0x1295('0x15')),_0x15d52e[_0x1295('0xc5')]['add']('acceptAllSuggestions',new _0x15693c(_0x15d52e,_0x8da3e,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0xb5')),_0x15d52e[_0x1295('0xc5')][_0x1295('0x1b')]('discardAllSuggestions',new _0x15693c(_0x15d52e,_0xb10686,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0xe9')),_0x15d52e[_0x1295('0xc5')]['add']('acceptSelectedSuggestions',new _0x239b1b(_0x15d52e,_0x8da3e,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0x0')),_0x15d52e['commands'][_0x1295('0x1b')](_0x1295('0x131'),new _0x239b1b(_0x15d52e,_0xb10686,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0x131'));const _0x117673=_0x15d52e[_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0xdc'));this[_0x1295('0x121')](_0x117673,_0x1295('0xed'),(_0x291368,{threadId:_0x2c5584})=>{const _0x51dd84=this['_suggestions'][_0x1295('0xaf')](_0x2c5584);_0x51dd84&&_0x51dd84[_0x1295('0x43')]&&0x1===_0x51dd84['commentThread'][_0x1295('0x72')]&&this[_0x1295('0xb6')](_0x2c5584,{'hasComments':!0x0});},{'priority':_0x1295('0x1d')}),this[_0x1295('0x121')](_0x117673,_0x1295('0x3a'),(_0x183a84,{threadId:_0x28acbf})=>{const _0xe3475c=this[_0x1295('0x83')][_0x1295('0xaf')](_0x28acbf);_0xe3475c&&_0xe3475c[_0x1295('0x43')]&&!_0xe3475c[_0x1295('0x43')][_0x1295('0x72')]&&this[_0x1295('0xb6')](_0x28acbf,{'hasComments':!0x1});},{'priority':_0x1295('0x1d')});}set[_0x1295('0x1e')](_0x356972){if(this[_0x1295('0x86')])throw new _0x5ca231(_0x1295('0x41'),this);this[_0x1295('0x86')]=_0x356972;}get[_0x1295('0x1e')](){return this[_0x1295('0x86')];}['getSuggestions']({skipNotAttached:_0x62d552=!0x1,toJSON:_0x3474c8=!0x1}={}){const _0x53d560=[];for(const _0x43aaa4 of this['_suggestions'][_0x1295('0x30')]())_0x62d552&&!_0x43aaa4['isInContent']||_0x53d560['push'](_0x43aaa4);return _0x3474c8?_0x53d560[_0x1295('0x45')](_0x13fd2f=>_0x13fd2f['toJSON']()):_0x53d560;}[_0x1295('0x126')](_0x2211ae){const _0x5908f2=this['_suggestions'][_0x1295('0xaf')](_0x2211ae);if(!_0x5908f2)throw new _0x5ca231(_0x1295('0xdf'),this);return _0x5908f2;}[_0x1295('0x12e')](_0x42e590){return this[_0x1295('0x83')][_0x1295('0x39')](_0x42e590);}['addSuggestionData'](_0x4d97fa){const {authorId:_0x3edd14,id:_0x429b43,attributes:_0x2520c9}=_0x4d97fa,[_0x419595,_0x1bce1b]=_0x4d97fa[_0x1295('0x109')][_0x1295('0x81')](':'),_0x14cfc3=this[_0x1295('0x83')]['get'](_0x429b43)||this[_0x1295('0xd5')](_0x419595,_0x1bce1b,_0x429b43,_0x3edd14,_0x2520c9);if(this[_0x1295('0x123')](_0x14cfc3),this[_0x1295('0x103')](_0x14cfc3,_0x419595,_0x1bce1b||null,_0x3edd14),_0x14cfc3['createdAt']=_0x4d97fa['createdAt'],_0x2520c9&&_0x2520c9[_0x1295('0x132')]){const _0x4fb34b=_0x2520c9[_0x1295('0x132')],_0x399359=this[_0x1295('0x40')](_0x4fb34b[_0x1295('0x6f')]);_0x14cfc3['authoredAt']=_0x4fb34b[_0x1295('0x9a')],_0x14cfc3['author']=_0x399359,_0x14cfc3[_0x1295('0x110')]=!0x0;}else _0x14cfc3[_0x1295('0xfe')]=_0x4d97fa['createdAt'];switch(_0x4d97fa[_0x1295('0x9c')]&&(_0x14cfc3[_0x1295('0x9c')]=_0x4d97fa[_0x1295('0x9c')]),_0x4d97fa[_0x1295('0xb0')]&&(_0x14cfc3[_0x1295('0xb0')]=_0x4d97fa[_0x1295('0xb0')]),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x14cfc3['_saved']=!0x0),this[_0x1295('0x12')][_0x1295('0xaf')](_0x14cfc3)){case _0x1295('0xe2'):this[_0x1295('0x12')]['set'](_0x14cfc3,_0x1295('0x63'));break;case'markerReady':_0x14cfc3['isInContent']?(this[_0x1295('0x12')][_0x1295('0xb2')](_0x14cfc3,'ready'),this[_0x1295('0xdb')](_0x1295('0x111'),_0x14cfc3)):this[_0x1295('0x12')]['set'](_0x14cfc3,_0x1295('0xcd'));}return _0x14cfc3;}[_0x1295('0x12b')](_0x26cdf9){this[_0x1295('0xa0')](()=>{this[_0x1295('0xb9')]['model'][_0x1295('0x6')](()=>{for(const _0xd621ec of _0x26cdf9['getAllAdjacentSuggestions']())_0xd621ec[_0x1295('0x8b')]();});});}['discardSuggestion'](_0x5e88e8){this[_0x1295('0xa0')](()=>{this[_0x1295('0xb9')][_0x1295('0x85')][_0x1295('0x6')](()=>{for(const _0x34abd6 of _0x5e88e8['getAllAdjacentSuggestions']())_0x34abd6[_0x1295('0xeb')]();});});}[_0x1295('0xfb')](_0x19f6bc,_0x255271){const _0x23958f=this[_0x1295('0xb9')][_0x1295('0xc5')][_0x1295('0xaf')](_0x19f6bc);if(!_0x23958f)throw new _0x5ca231(_0x1295('0x7c'),this,{'commandName':_0x19f6bc});this['_enabledCommands'][_0x1295('0x1b')](_0x23958f),_0x255271&&_0x23958f['on'](_0x1295('0x21'),(_0x3f07d9,_0x48e2ff)=>{this['trackChangesCommand']['value']&&(this[_0x1295('0xe3')]||_0x48e2ff[_0x1295('0x72')]>0x0&&_0x48e2ff[_0x48e2ff[_0x1295('0x72')]-0x1]&&_0x48e2ff[_0x48e2ff['length']-0x1]['forceDefaultExecution']||(_0x255271((..._0x19d9ea)=>_0x23958f[_0x1295('0x21')](..._0x19d9ea,{'forceDefaultExecution':!0x0}),..._0x48e2ff),_0x3f07d9[_0x1295('0x6e')]()));},{'priority':'high'});}[_0x1295('0xa0')](_0x55d5dc){let _0x33b928,_0x175044;const _0x429201=this[_0x1295('0xe3')];this[_0x1295('0xe3')]=!0x0;try{_0x33b928=_0x55d5dc();}catch(_0x2c29b3){_0x175044=_0x2c29b3;}return _0x429201||(this[_0x1295('0xe3')]=!0x1),_0x175044&&_0x5ca231[_0x1295('0x64')](_0x175044,this),_0x33b928;}['markInsertion'](_0x2dbe0e,_0x2d31b0=null,_0x3cdaba={}){if(_0x2dbe0e[_0x1295('0x88')])return null;const _0x108162=this[_0x1295('0xb9')][_0x1295('0xa1')]['get']('Users')['me'];for(const {suggestion:_0xc0e8fc,meta:_0x1f0a59}of this[_0x1295('0x9f')](_0x2dbe0e,_0x1295('0x62')))if(_0x1f0a59[_0x1295('0xe0')]){if(!_0x1f0a59[_0x1295('0x114')])return _0xc0e8fc;if(_0x2d31b0==_0xc0e8fc['subType']){const _0xc07eb9=_0xc0e8fc['getFirstRange']();return _0xc07eb9['start'][_0x1295('0x7f')](_0x2dbe0e['end'])?this[_0x1295('0x11c')](_0xc0e8fc,this[_0x1295('0x8d')][_0x1295('0x107')](_0x2dbe0e['start'],_0xc07eb9[_0x1295('0x5')])):this[_0x1295('0x11c')](_0xc0e8fc,this['_model'][_0x1295('0x107')](_0xc07eb9[_0x1295('0x2c')],_0x2dbe0e['end'])),_0xc0e8fc;}}const _0x4a8939=_0x381575(),_0x4fc87d=_0x108162['id'],_0x5d2f91=_0x2d31b0?_0x1295('0x32')+_0x2d31b0:_0x1295('0x62'),_0xcab097=this[_0x1295('0x89')]({'id':_0x4a8939,'type':_0x5d2f91,'createdAt':new Date(),'authorId':_0x4fc87d,'attributes':_0x3cdaba});return this[_0x1295('0xf1')](_0x5d2f91,_0x4a8939,_0x4fc87d,_0x2dbe0e),_0xcab097;}['markMultiRangeInsertion'](_0x5cf85a,_0x366f6b='multi',_0x4d2445={}){const _0x10c36f=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0x3c'))['me'],_0x177ece=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x62'),_0x366f6b,'join');for(const _0x2d6c1f of this[_0x1295('0xd2')]())if(_0x2d6c1f[_0x1295('0x2')]['id']==_0x10c36f['id']&&_0x1295('0x62')==_0x2d6c1f[_0x1295('0x109')]&&_0x2d6c1f['subType']==_0x366f6b&&(_0x177ece(_0x2d6c1f[_0x1295('0x3')](),_0x5cf85a)||_0x177ece(_0x5cf85a,_0x2d6c1f[_0x1295('0x3')]()))){for(const _0x694966 of _0x5cf85a)_0x2d6c1f[_0x1295('0xa8')](_0x694966);return _0x2d6c1f;}for(const _0xbc47e6 of _0x5cf85a)for(const {suggestion:_0x5d9db7,meta:_0x1743c6}of this['_findSuggestions'](_0xbc47e6,_0x1295('0x62'))){if(!_0x1743c6[_0x1295('0xe0')])continue;let _0x2481d6=!0x0;for(const _0x288455 of _0x5d9db7[_0x1295('0x3')]())for(const _0x257afa of _0x5cf85a)if(!_0x288455[_0x1295('0x8')](_0x257afa)){_0x2481d6=!0x1;break;}if(_0x2481d6)return _0x5d9db7;}const _0x500bea=_0x381575(),_0x4db5c8=_0x10c36f['id'],_0x10ff72='insertion:'+_0x366f6b,_0x3816e2=this[_0x1295('0x89')]({'id':_0x500bea,'type':_0x10ff72,'createdAt':new Date(),'authorId':_0x4db5c8,'attributes':_0x4d2445});for(const _0x52abed of _0x5cf85a)this[_0x1295('0xf1')](_0x10ff72,_0x500bea,_0x4db5c8,_0x52abed,_0x55858b[_0x1295('0x18')]());return _0x3816e2;}[_0x1295('0x3b')](_0x32b305,_0x15d113,_0x437f68=null,_0x464de2={}){if(_0x437f68=_0x437f68||Bt(_0x15d113),_0x32b305[_0x1295('0x88')])return null;if(!0x1===this[_0x1295('0xc4')]){const _0xcbce5b=this['_suggestionFactory'][_0x1295('0xa9')](_0x1295('0xad'),_0x437f68,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0xcbce5b([_0x32b305],_0x15d113,_0x464de2)),null;}const _0x65fbb8=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')]('Users')['me'],_0x42a32f=[];for(const {suggestion:_0x43df27,meta:_0x28a718}of this['_findSuggestions'](_0x32b305,_0x1295('0x62')))_0x28a718[_0x1295('0xe0')]&&!_0x28a718[_0x1295('0x5d')]&&_0x42a32f['push'](..._0x43df27[_0x1295('0x3')]());const _0xba578a=function(_0xefe8ac,_0x5ddea9){const _0x54bf41=[];for(const _0x3f2378 of _0x5ddea9){const _0xb2822f=_0xefe8ac[_0x1295('0x6b')](_0x3f2378);_0xb2822f&&_0x54bf41['push'](_0xb2822f);}return _0x54bf41;}(_0x32b305,_0x42a32f),_0x278a2d=function(_0x1c3b95,_0x1706f7){const _0x932c59=[_0x1c3b95];for(const _0x425c99 of _0x1706f7){let _0x4d49cb=0x0;for(;_0x4d49cb<_0x932c59['length'];){const _0x572021=_0x932c59[_0x4d49cb]['getDifference'](_0x425c99);_0x932c59[_0x1295('0x29')](_0x4d49cb,0x1,..._0x572021),_0x4d49cb+=_0x572021[_0x1295('0x72')];}}return _0x932c59;}(_0x32b305,_0x42a32f);_0xba578a[_0x1295('0x72')]&&this['_model'][_0x1295('0x6')](()=>{for(const _0x57009c of _0xba578a){const _0x34d4f7=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0xad'),_0x437f68,_0x1295('0x8b'));this[_0x1295('0xa0')](()=>_0x34d4f7([_0x57009c],_0x15d113,_0x464de2));}});for(const _0x1b19ce of _0x278a2d){let _0x5d94c4=null,_0x4ea81a=_0x1b19ce['start'],_0x52d37e=_0x1b19ce['end'];for(const {suggestion:_0x139961,meta:_0x41ef62}of this[_0x1295('0x9f')](_0x1b19ce,_0x1295('0xad'))){if(!_0x41ef62[_0x1295('0xe0')])continue;if(_0x139961[_0x1295('0x74')]!=_0x437f68)continue;const _0x33692d=_0x139961['getFirstRange']();if(_0x33692d['containsRange'](_0x1b19ce,!0x0))return null;_0x4ea81a=_0x4ea81a['isBefore'](_0x33692d['start'])?_0x4ea81a:_0x33692d[_0x1295('0x2c')],_0x52d37e=_0x52d37e[_0x1295('0x11b')](_0x33692d[_0x1295('0x5')])?_0x52d37e:_0x33692d[_0x1295('0x5')],_0x5d94c4?_0x33692d[_0x1295('0x2c')][_0x1295('0xc7')](_0x5d94c4['getFirstRange']()[_0x1295('0x2c')])?(_0x5d94c4[_0x1295('0xae')](),_0x5d94c4=_0x139961):_0x139961['removeMarkers']():_0x5d94c4=_0x139961;}const _0x29f4e2=this[_0x1295('0x8d')]['createRange'](_0x4ea81a,_0x52d37e);if(_0x5d94c4)this[_0x1295('0x11c')](_0x5d94c4,_0x29f4e2);else{const _0x133c0d=_0x381575(),_0x3d5a6a=_0x65fbb8['id'];this['_setSuggestionData']({'id':_0x133c0d,'type':_0x1295('0xba')+_0x437f68,'data':_0x15d113,'createdAt':new Date(),'authorId':_0x3d5a6a,'attributes':_0x464de2}),this['_addSuggestionMarker'](_0x1295('0xba')+_0x437f68,_0x133c0d,_0x3d5a6a,_0x29f4e2);}}return null;}[_0x1295('0x2e')](_0x3da8de,_0x5685d1,_0x255846=[],_0xbfb617=null,_0x1712f2={}){_0x5685d1[_0x1295('0x33')]||(_0x5685d1[_0x1295('0x33')]=_0x5685d1[_0x1295('0x120')]),_0x5685d1['multipleBlocks']=_0x3da8de['is'](_0x1295('0xab')),_0xbfb617=_0xbfb617||Bt(_0x5685d1);const _0x58ad65=_0x255846[_0x1295('0x45')](_0x5550fb=>Mt(_0x5550fb,this[_0x1295('0x8d')])),_0x267ed0=_0x3da8de['is']('range')?_0x3da8de:Mt(_0x3da8de,this[_0x1295('0x8d')]);if(!0x1===this['_trackFormatChanges']){const _0x50ec1e=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x66'),_0xbfb617,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0x50ec1e([_0x267ed0],_0x5685d1,_0x1712f2)),null;}_0x58ad65[_0x1295('0xd4')](_0x267ed0);let _0x4215e8=!0x0;for(const _0x201900 of _0x58ad65)if(!this['_rangeIsInLocalUserInsertion'](_0x201900)){_0x4215e8=!0x1;break;}if(_0x4215e8){const _0x85ab0b=this['_suggestionFactory'][_0x1295('0xa9')](_0x1295('0x66'),_0xbfb617,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0x85ab0b([_0x267ed0],_0x5685d1,_0x1712f2)),null;}let _0x4d3732=null,_0x153fb1=_0x267ed0[_0x1295('0x2c')],_0x1b0564=_0x267ed0[_0x1295('0x5')];for(const {suggestion:_0x1796af,meta:_0x1a8e43}of this['_findSuggestions'](_0x267ed0,_0x1295('0x66'))){if(!_0x1a8e43[_0x1295('0xe0')]||_0x1a8e43[_0x1295('0x114')]||_0x1a8e43['containsRangeInObject']||_0x1a8e43['isInsideObject'])continue;if(_0x1796af[_0x1295('0x9c')][_0x1295('0x33')]!=_0x5685d1[_0x1295('0x33')])continue;const _0x20c77f=_0x1796af[_0x1295('0x44')]();if(_0x1796af[_0x1295('0x74')]==_0xbfb617){if(_0x20c77f[_0x1295('0x8')](_0x267ed0,!0x0))return null;_0x153fb1=_0x153fb1['isBefore'](_0x20c77f[_0x1295('0x2c')])?_0x153fb1:_0x20c77f['start'],_0x1b0564=_0x1b0564['isAfter'](_0x20c77f[_0x1295('0x5')])?_0x1b0564:_0x20c77f['end'],_0x4d3732?_0x20c77f[_0x1295('0x2c')][_0x1295('0xc7')](_0x4d3732[_0x1295('0x44')]()[_0x1295('0x2c')])?(_0x4d3732[_0x1295('0xae')](),_0x4d3732=_0x1796af):_0x1796af['removeMarkers']():_0x4d3732=_0x1796af;}else{const _0x3b12a8=_0x267ed0[_0x1295('0x6b')](_0x20c77f);this[_0x1295('0x70')](_0x1796af,_0x3b12a8);}}const _0x4c5a46=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x3c'))['me'],_0x12b40f=_0x381575(),_0x2b8a6a=_0x4c5a46['id'];if(_0x4d3732)return this[_0x1295('0x11c')](_0x4d3732,this[_0x1295('0x8d')][_0x1295('0x107')](_0x153fb1,_0x1b0564)),_0x4d3732;{const _0x1f8f04=this[_0x1295('0x89')]({'id':_0x12b40f,'type':_0x1295('0x3f')+_0xbfb617,'data':_0x5685d1,'createdAt':new Date(),'authorId':_0x2b8a6a,'attributes':_0x1712f2});return this[_0x1295('0xf1')]('formatBlock:'+_0xbfb617,_0x12b40f,_0x2b8a6a,this[_0x1295('0x8d')]['createRange'](_0x153fb1,_0x1b0564)),_0x1f8f04;}}[_0x1295('0x1c')](_0x2ca710,_0x363292,_0x1612ad=[],_0x3d0e70=null,_0x5f2e21={}){_0x363292['formatGroupId']||(_0x363292[_0x1295('0x33')]=_0x363292[_0x1295('0x120')]);const _0x1438f7=_0x2ca710[0x0];_0x363292[_0x1295('0xf7')]=_0x1438f7['is'](_0x1295('0xab')),_0x3d0e70=_0x3d0e70||Bt(_0x363292);const _0x2dc9f3=_0x1612ad[_0x1295('0x45')](_0xba78d5=>Mt(_0xba78d5,this[_0x1295('0x8d')])),_0x4a2b1f=_0x1438f7['is'](_0x1295('0xab'))?_0x2ca710:_0x2ca710['map'](_0x464069=>Mt(_0x464069,this[_0x1295('0x8d')]));if(!0x1===this[_0x1295('0xc4')]){const _0x3763ce=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x66'),_0x3d0e70,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0x3763ce(_0x4a2b1f,_0x363292,_0x5f2e21)),null;}_0x2dc9f3[_0x1295('0xd4')](..._0x4a2b1f);let _0x134bbe=!0x0;for(const _0x2a7314 of _0x2dc9f3)if(!this[_0x1295('0x78')](_0x2a7314)){_0x134bbe=!0x1;break;}if(_0x134bbe){const _0x2926d7=this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1295('0x66'),_0x3d0e70,'accept');return this[_0x1295('0xa0')](()=>_0x2926d7(_0x4a2b1f,_0x363292,_0x5f2e21)),null;}const _0x4366e7=this['editor'][_0x1295('0xa1')][_0x1295('0xaf')]('Users')['me'];for(const _0x7c7cf7 of this[_0x1295('0xd2')]()){if(_0x7c7cf7['author']['id']!=_0x4366e7['id'])continue;if(_0x1295('0x66')!=_0x7c7cf7[_0x1295('0x109')]||_0x7c7cf7[_0x1295('0x9c')][_0x1295('0x33')]!=_0x363292[_0x1295('0x33')])continue;const _0x3d7ba2=_0x7c7cf7[_0x1295('0x74')]==_0x3d0e70;for(let _0x339532=0x0;_0x339532<_0x4a2b1f[_0x1295('0x72')];_0x339532++){const _0x4d843f=_0x4a2b1f[_0x339532];for(const _0x1a200b of _0x7c7cf7['getMarkers']()){const _0x276539=_0x1a200b[_0x1295('0xa5')]();if(_0x4d843f[_0x1295('0x7f')](_0x276539)){_0x3d7ba2?(_0x4a2b1f['splice'](_0x339532,0x1),_0x339532--):_0x7c7cf7[_0x1295('0xb8')](_0x1a200b[_0x1295('0x14')]);break;}}}}if(0x0==_0x4a2b1f[_0x1295('0x72')])return null;const _0x4839ee=this[_0x1295('0xbe')][_0x1295('0xa9')]('formatBlock',_0x3d0e70,_0x1295('0xdd'));for(const _0x341484 of this[_0x1295('0xd2')]())if(_0x341484[_0x1295('0x2')]['id']==_0x4366e7['id']&&'formatBlock'==_0x341484['type']&&_0x341484['data'][_0x1295('0x33')]==_0x363292['formatGroupId']&&_0x341484[_0x1295('0x74')]==_0x3d0e70&&(_0x4839ee(_0x341484[_0x1295('0x3')](),_0x4a2b1f)||_0x4839ee(_0x4a2b1f,_0x341484[_0x1295('0x3')]()))){for(const _0x40a682 of _0x4a2b1f)_0x341484[_0x1295('0xa8')](_0x40a682);return _0x341484;}const _0x54b7f0=_0x381575(),_0x51cbf0=_0x4366e7['id'],_0x5e7a38=_0x1295('0x3f')+_0x3d0e70,_0x423932=this[_0x1295('0x89')]({'id':_0x54b7f0,'type':_0x5e7a38,'data':_0x363292,'createdAt':new Date(),'authorId':_0x51cbf0,'attributes':_0x5f2e21});for(const _0x2d466d of _0x4a2b1f)this[_0x1295('0xf1')](_0x5e7a38,_0x54b7f0,_0x51cbf0,_0x2d466d,_0x55858b[_0x1295('0x18')]());return _0x423932;}[_0x1295('0x56')](_0x43f4be,_0x15a6f7=null,_0x313dce={}){if(_0x43f4be['isCollapsed'])return null;const _0x2eb037=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0x3c'))['me'],_0x2ca366=new _0x30e928(_0x43f4be[_0x1295('0x2c')],_0x43f4be[_0x1295('0x5')]);for(const {suggestion:_0x4fcf2f,meta:_0x476f2a}of this[_0x1295('0x9f')](_0x2ca366,_0x1295('0x62')))if(_0x476f2a['isOwn']&&!_0x476f2a[_0x1295('0x114')]){if(_0x4fcf2f[_0x1295('0x36')]){const _0x3382a5=_0x4fcf2f[_0x1295('0x3')]()[_0x1295('0x22')](_0x1b330f=>_0x1295('0x117')!=_0x1b330f[_0x1295('0xfd')][_0x1295('0xca')]);_0x3382a5['every'](_0x33824e=>_0x2ca366['containsRange'](_0x33824e,!0x0))&&_0x4fcf2f['discard']();if(_0x3382a5['some'](_0x119aa2=>_0x119aa2[_0x1295('0x8')](_0x2ca366,!0x0))){const _0x39fe19=this[_0x1295('0xbe')]['getSuggestionCallback']('deletion',_0x15a6f7,_0x1295('0x8b'));return this['forceDefaultExecution'](()=>_0x39fe19([_0x2ca366],null,_0x313dce)),null;}}else{const _0x1c6409=_0x2ca366[_0x1295('0x6b')](_0x4fcf2f[_0x1295('0x44')]());_0x4fcf2f[_0x1295('0x11a')]([_0x1c6409],null,_0x313dce);}}if(_0x2ca366['detach'](),_0x2ca366[_0x1295('0x88')]||_0x1295('0x117')==_0x2ca366[_0x1295('0xfd')][_0x1295('0xca')])return null;let _0x1683b8=null,_0x5be1ce=_0x2ca366[_0x1295('0x2c')],_0x235151=_0x2ca366[_0x1295('0x5')];for(const {suggestion:_0x511f29,meta:_0xc324c7}of this[_0x1295('0x9f')](_0x2ca366,_0x1295('0x27')))if(_0xc324c7[_0x1295('0xe0')]){if(_0x511f29[_0x1295('0x36')]){let _0x3f3c56=!0x0;for(const _0x2ae0fc of _0x511f29[_0x1295('0x3')]()){if(_0x2ae0fc['containsRange'](_0x2ca366,!0x0))return _0x511f29;_0x2ca366[_0x1295('0x8')](_0x2ae0fc)||(_0x3f3c56=!0x1);}_0x3f3c56&&_0x511f29['discard']();}else{const _0x60d491=_0x511f29[_0x1295('0x44')]();if(_0x60d491[_0x1295('0x8')](_0x2ca366,!0x0))return _0x511f29;_0x5be1ce=_0x5be1ce[_0x1295('0xc7')](_0x60d491['start'])?_0x5be1ce:_0x60d491['start'],_0x235151=_0x235151[_0x1295('0x11b')](_0x60d491[_0x1295('0x5')])?_0x235151:_0x60d491['end'],_0x1683b8?_0x60d491['start'][_0x1295('0xc7')](_0x1683b8[_0x1295('0x44')]()['start'])?(_0x1683b8[_0x1295('0xae')](),_0x1683b8=_0x511f29):_0x511f29[_0x1295('0xae')]():_0x1683b8=_0x511f29;}}if(_0x1683b8)return this[_0x1295('0x11c')](_0x1683b8,this[_0x1295('0x8d')]['createRange'](_0x5be1ce,_0x235151)),_0x1683b8;{const _0x9919c9=_0x381575(),_0x1f522e=this[_0x1295('0x8d')][_0x1295('0x107')](_0x5be1ce,_0x235151),_0x560488=_0x2eb037['id'],_0x4fca0e=_0x15a6f7?'deletion:'+_0x15a6f7:'deletion',_0x244166=this[_0x1295('0x89')]({'id':_0x9919c9,'type':_0x4fca0e,'createdAt':new Date(),'authorId':_0x560488,'attributes':_0x313dce});return this[_0x1295('0xf1')](_0x4fca0e,_0x9919c9,_0x560488,_0x1f522e),_0x244166;}}[_0x1295('0x130')](_0x325704,_0x1e982a=_0x1295('0x138'),_0x1f8d30={}){const _0x6422cb=this['editor']['plugins']['get'](_0x1295('0x3c'))['me'],_0x214ee6=_0x325704['map'](_0x13e004=>new _0x30e928(_0x13e004[_0x1295('0x2c')],_0x13e004[_0x1295('0x5')])),_0x2393f1=new Set();for(const _0x51cf51 of _0x214ee6)for(const {suggestion:_0x24fc87,meta:_0x3e3fa1}of this[_0x1295('0x9f')](_0x51cf51,'insertion'))_0x3e3fa1[_0x1295('0xe0')]&&!_0x3e3fa1['isNextTo']&&_0x2393f1[_0x1295('0x1b')](_0x24fc87);for(const _0x27f960 of _0x2393f1)if(_0x27f960[_0x1295('0x36')]){const _0x87ac51=_0x27f960[_0x1295('0x3')]();(!_0x27f960['attributes']||!_0x27f960['attributes'][_0x1295('0x8c')])&&(_0x87ac51[_0x1295('0x129')](_0x9b2cc4=>_0x214ee6['some'](_0x2c65f1=>_0x2c65f1[_0x1295('0x8')](_0x9b2cc4,!0x0)))&&_0x27f960[_0x1295('0xeb')]());if(_0x214ee6['every'](_0x2538bf=>_0x87ac51[_0x1295('0x10f')](_0x71ad3e=>_0x71ad3e[_0x1295('0x8')](_0x2538bf,!0x0)))){const _0x284976=this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1295('0x27'),_0x1e982a,_0x1295('0x8b'));return this['forceDefaultExecution'](()=>_0x284976(_0x325704,null,_0x1f8d30)),null;}}else{const _0x3c8c9d=_0x27f960['getFirstRange']();_0x214ee6[_0x1295('0x10f')](_0x4fb33c=>_0x4fb33c[_0x1295('0x8')](_0x3c8c9d,!0x0))&&_0x27f960[_0x1295('0xeb')]();if(_0x214ee6['every'](_0x249c7f=>_0x3c8c9d[_0x1295('0x8')](_0x249c7f,!0x0))){const _0x5edbbf=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x27'),_0x1e982a,'accept');return this[_0x1295('0xa0')](()=>_0x5edbbf(_0x214ee6,null,_0x1f8d30)),null;}}const _0x51d86e=this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1295('0x27'),_0x1e982a,'join');let _0x333d21=null;for(const _0x3499f3 of this[_0x1295('0xd2')]())if(_0x3499f3[_0x1295('0x2')]['id']==_0x6422cb['id']&&_0x3499f3[_0x1295('0x7d')]&&_0x1295('0x27')==_0x3499f3[_0x1295('0x109')]&&_0x3499f3[_0x1295('0x74')]==_0x1e982a&&(_0x51d86e(_0x3499f3[_0x1295('0x3')](),_0x214ee6)||_0x51d86e(_0x214ee6,_0x3499f3[_0x1295('0x3')]()))){if(_0x333d21){if(_0x3499f3[_0x1295('0x43')]&&_0x3499f3[_0x1295('0x43')][_0x1295('0x72')])continue;for(const _0x15d804 of _0x3499f3[_0x1295('0x3')]())_0x333d21['isIntersectingWithRange'](_0x15d804)||_0x333d21[_0x1295('0xa8')](_0x15d804);_0x3499f3['removeMarkers']();}else{_0x333d21=_0x3499f3;for(const _0x47a995 of _0x214ee6)_0x3499f3[_0x1295('0x67')](_0x47a995)||_0x3499f3[_0x1295('0xa8')](_0x47a995);}}if(_0x333d21)return _0x333d21;_0x2393f1[_0x1295('0x10e')]();for(const _0x3ca112 of _0x214ee6)for(const {suggestion:_0x48c1df,meta:_0x38f22e}of this[_0x1295('0x9f')](_0x3ca112,_0x1295('0x27')))_0x38f22e[_0x1295('0xe0')]&&_0x2393f1['add'](_0x48c1df);for(const _0xe10ce4 of _0x2393f1){const _0x13046c=_0xe10ce4[_0x1295('0x3')]();if(!_0x1f8d30||!_0x1f8d30['skipNestingCheck']){if(_0x214ee6[_0x1295('0x129')](_0x362396=>_0x13046c[_0x1295('0x10f')](_0x187a1b=>_0x187a1b[_0x1295('0x8')](_0x362396,!0x0))))return _0xe10ce4;}(!_0xe10ce4['attributes']||!_0xe10ce4['attributes'][_0x1295('0x8c')])&&(_0x13046c[_0x1295('0x129')](_0xf74402=>_0x214ee6[_0x1295('0x10f')](_0xa8c948=>_0xa8c948['containsRange'](_0xf74402,!0x0)))&&_0xe10ce4[_0x1295('0xeb')]());}const _0x2034f8=_0x381575(),_0x2efcb1=_0x6422cb['id'],_0x38ebf1=_0x1295('0x118')+_0x1e982a,_0x2cb72f=this['_setSuggestionData']({'id':_0x2034f8,'type':_0x38ebf1,'createdAt':new Date(),'authorId':_0x2efcb1,'attributes':_0x1f8d30});for(const _0x280518 of _0x214ee6)_0x280518[_0x1295('0x6a')](),_0x280518[_0x1295('0x88')]||_0x1295('0x117')==_0x280518['root'][_0x1295('0xca')]||this[_0x1295('0xf1')](_0x38ebf1,_0x2034f8,_0x2efcb1,_0x280518,_0x55858b[_0x1295('0x18')]());return _0x2cb72f;}[_0x1295('0x11c')](_0x161ae2,_0x57502c){const _0x55131c=_0x161ae2[_0x1295('0x100')]();this['_model'][_0x1295('0x6')](_0x3e9ad6=>{_0x3e9ad6[_0x1295('0x9e')](_0x55131c,{'range':_0x57502c});});}[_0x1295('0x123')](_0x899407){const _0x23d6a4=_0x899407['id'],_0x1ba576=this[_0x1295('0xb9')][_0x1295('0xd9')][_0x1295('0xaf')]('collaboration.channelId');this[_0x1295('0xc2')][_0x1295('0x76')](_0x23d6a4)||this[_0x1295('0xc2')][_0x1295('0x116')]({'channelId':_0x1ba576,'threadId':_0x23d6a4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4de512=this['_commentsRepository']['getCommentThread'](_0x23d6a4);_0x4de512[_0x1295('0x82')](_0x1295('0x10c')),_0x4de512[_0x1295('0x10c')]=!0x1,_0x899407[_0x1295('0x43')]=_0x4de512;}[_0x1295('0x103')](_0x4c38d5,_0x173be6,_0x4f5bbf,_0xcf6687){if(_0x4c38d5[_0x1295('0x109')]!=_0x173be6||_0x4c38d5[_0x1295('0x74')]!=_0x4f5bbf||_0x4c38d5[_0x1295('0x42')]['id']!=_0xcf6687)throw this[_0x1295('0xb9')][_0x1295('0x95')](_0x1295('0x71')),new _0x5ca231(_0x1295('0x71'),this);}[_0x1295('0x70')](_0x311b17,_0x3aa0e8){const _0x1cc869=_0x311b17[_0x1295('0x44')]();if(_0x3aa0e8['isEqual'](_0x1cc869))_0x311b17[_0x1295('0xae')]();else{if(_0x1cc869[_0x1295('0x8')](_0x3aa0e8)){const _0x1327ff=this['_model'][_0x1295('0x122')](_0x3aa0e8[_0x1295('0x2c')][_0x1295('0x10b')],_0x1295('0x5'));this[_0x1295('0x11c')](_0x311b17,this[_0x1295('0x8d')][_0x1295('0x107')](_0x1cc869[_0x1295('0x2c')],_0x1327ff));const _0x4dfc0f=_0x381575(),_0x12865f=_0x311b17[_0x1295('0x42')]['id'],_0x2def7c=_0x311b17[_0x1295('0x109')]+':'+_0x311b17[_0x1295('0x74')];this[_0x1295('0x89')]({'id':_0x4dfc0f,'type':_0x2def7c,'createdAt':new Date(),'authorId':_0x12865f,'data':_0x311b17[_0x1295('0x9c')],'attributes':_0x311b17[_0x1295('0xb0')]});const _0x2dac5d=this[_0x1295('0x8d')][_0x1295('0x122')](_0x3aa0e8[_0x1295('0x5')]['parent'],'after'),_0x1ed997=this[_0x1295('0x8d')][_0x1295('0x107')](_0x2dac5d,_0x1cc869[_0x1295('0x5')]);this[_0x1295('0xf1')](_0x2def7c,_0x4dfc0f,_0x12865f,_0x1ed997);}else{if(_0x1cc869[_0x1295('0xf0')](_0x3aa0e8[_0x1295('0x2c')])){const _0x5ac67a=this['_model']['createPositionAt'](_0x3aa0e8[_0x1295('0x2c')][_0x1295('0x10b')],_0x1295('0x5'));this['_setSuggestionRange'](_0x311b17,this['_model'][_0x1295('0x107')](_0x1cc869[_0x1295('0x2c')],_0x5ac67a));}else{const _0x516ddf=this[_0x1295('0x8d')][_0x1295('0x122')](_0x3aa0e8[_0x1295('0x5')][_0x1295('0x125')],_0x1295('0xd8'));this[_0x1295('0x11c')](_0x311b17,this[_0x1295('0x8d')][_0x1295('0x107')](_0x516ddf,_0x1cc869['end']));}}}}[_0x1295('0x78')](_0x19fd94){for(const {suggestion:_0x310c7e,meta:_0x52c43f}of this['_findSuggestions'](_0x19fd94,_0x1295('0x62'))){if(!_0x52c43f['isOwn'])continue;const _0x3d2d24=_0x310c7e[_0x1295('0x3')]();for(const _0x3c7d03 of _0x3d2d24)if(!_0x19fd94[_0x1295('0xc6')](_0x3c7d03)[_0x1295('0x72')])return!0x0;}return!0x1;}[_0x1295('0x48')](_0x1df05f){const _0x2969ab=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x3c'))[_0x1295('0x4c')](_0x1df05f);if(!_0x2969ab)throw new _0x5ca231(_0x1295('0xd3'),this);return _0x2969ab;}['_getExternalAuthor'](_0x5bbb00){const _0x81eb9d=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0x3c')),_0x59cc01=_0x55d191(_0x1295('0x10a')+_0x5bbb00),_0x5bec48=_0x81eb9d[_0x1295('0x4c')](_0x59cc01);return _0x5bec48||_0x81eb9d[_0x1295('0xee')]({'id':_0x59cc01,'name':_0x5bbb00});}['_createSuggestion'](_0xeb8f5b,_0x415b33,_0x1805fb,_0x13f80f,_0x4c0c7d){const _0xb5e7e5=this[_0x1295('0x48')](_0x13f80f),_0x55a185=this[_0x1295('0xbe')]['buildSuggestion'](_0xeb8f5b,_0x415b33,_0x1805fb,_0xb5e7e5,_0x4c0c7d,_0x8b13e5=>this['_updateSuggestionData'](_0x1805fb,{'attributes':_0x8b13e5}));return this[_0x1295('0x121')](_0x55a185,_0x1295('0x8b'),()=>{this[_0x1295('0xb6')](_0x1805fb,{'state':_0x1295('0xcf')});},{'priority':_0x1295('0x2b')}),this[_0x1295('0x121')](_0x55a185,_0x1295('0xeb'),()=>{this[_0x1295('0xb6')](_0x1805fb,{'state':_0x1295('0x137')});},{'priority':_0x1295('0x2b')}),this['_suggestions'][_0x1295('0xb2')](_0x1805fb,_0x55a185),this[_0x1295('0x12')][_0x1295('0xb2')](_0x55a185,'notReady'),_0x55a185;}[_0x1295('0xbd')](_0x3c7bea){const _0x353e80=_0x3c7bea[_0x1295('0x81')](':');return{'group':_0x353e80[0x0],'type':_0x353e80[0x1],'subType':_0x353e80[_0x1295('0x72')]>=0x5?_0x353e80[0x2]:null,'id':_0x353e80[_0x1295('0x72')]<0x5?_0x353e80[0x2]:_0x353e80[0x3],'authorId':_0x353e80[_0x1295('0x72')]<0x5?_0x353e80[0x3]:_0x353e80[0x4],'markerCount':0x6==_0x353e80[_0x1295('0x72')]?_0x353e80[0x5]:null};}[_0x1295('0x106')](_0x1a7ffb,_0x385d60,_0x74223c){const _0x23c988=_0x1a7ffb['getFirstRange'](),_0x507353=_0x23c988[_0x1295('0x2c')],_0x4cf870=_0x23c988['end'];this[_0x1295('0x11c')](_0x1a7ffb,this[_0x1295('0x8d')][_0x1295('0x107')](_0x507353,_0x385d60));const _0x3f60fe=_0x381575(),_0xb39d86=_0x1a7ffb[_0x1295('0x42')]['id'],_0x30f570=_0x1a7ffb[_0x1295('0x109')]+(_0x1a7ffb[_0x1295('0x74')]?':'+_0x1a7ffb[_0x1295('0x74')]:'');this[_0x1295('0x89')]({'id':_0x3f60fe,'type':_0x30f570,'createdAt':new Date(),'authorId':_0xb39d86,'originalSuggestionId':_0x1a7ffb['id'],'attributes':_0x1a7ffb[_0x1295('0xb0')],'data':_0x1a7ffb[_0x1295('0x9c')]}),'formatBlock'==_0x1a7ffb['type']&&(_0x74223c=this[_0x1295('0x8d')]['createPositionBefore'](_0x74223c[_0x1295('0x125')])),this['_addSuggestionMarker'](_0x30f570,_0x3f60fe,_0xb39d86,this[_0x1295('0x8d')][_0x1295('0x107')](_0x74223c,_0x4cf870));}[_0x1295('0x9f')](_0x21d3bb,_0x2f65e8=null){const _0x596412=[],_0x506c92=this['_model'][_0x1295('0x34')],_0x1b2cb2=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x3c'))['me'];for(const _0x14dfec of this[_0x1295('0xd2')]())if(_0x14dfec[_0x1295('0x7d')]&&(!_0x2f65e8||_0x14dfec[_0x1295('0x109')]==_0x2f65e8))for(const _0x3acc78 of _0x14dfec[_0x1295('0x3')]()){const _0x3379c6=_0x21d3bb['start'][_0x1295('0x7f')](_0x3acc78[_0x1295('0x5')])||_0x21d3bb['end'][_0x1295('0x7f')](_0x3acc78[_0x1295('0x2c')]);if(_0x3379c6||_0x21d3bb[_0x1295('0x6b')](_0x3acc78)){const _0x2aff59=_0x21d3bb[_0x1295('0x8')](_0x3acc78)&&At(_0x506c92,_0x3acc78[_0x1295('0x2c')],_0x21d3bb),_0x303a76=_0x3acc78['containsRange'](_0x21d3bb)&&At(_0x506c92,_0x21d3bb['start'],_0x3acc78);_0x596412[_0x1295('0xd4')]({'suggestion':_0x14dfec,'meta':{'isOwn':_0x1b2cb2==_0x14dfec[_0x1295('0x2')],'isNextTo':_0x3379c6,'isInsideObject':_0x2aff59,'containsRangeInObject':_0x303a76}});break;}}return _0x596412;}[_0x1295('0xf1')](_0x5e8f39,_0x4713b3,_0x1176ed,_0x57c654,_0x198392){this['_model']['change'](_0x46b6ab=>{let _0x17322b=_0x1295('0x68')+_0x5e8f39+':'+_0x4713b3+':'+_0x1176ed;_0x198392&&(_0x17322b=_0x17322b+':'+_0x198392),_0x46b6ab[_0x1295('0x59')](_0x17322b,{'range':_0x57c654,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1295('0x26')](_0x35b3a0){const _0x245c38=_0x35b3a0[_0x1295('0x102')],_0x5874b1=_0x35b3a0[_0x1295('0xc0')];_0x35b3a0['previous']=null,null!=_0x245c38&&(_0x245c38['next']=null),_0x35b3a0[_0x1295('0xc0')]=null,null!=_0x5874b1&&(_0x5874b1[_0x1295('0x102')]=null),_0x1295('0xe8')==this[_0x1295('0x12')][_0x1295('0xaf')](_0x35b3a0)&&(this['_suggestionState'][_0x1295('0xb2')](_0x35b3a0,_0x1295('0xcd')),this[_0x1295('0xdb')]('suggestionUnloaded',_0x35b3a0,_0x245c38,_0x5874b1));}[_0x1295('0x89')](_0x55a64e){const _0x4bf187=_0x55a64e['id'],_0x20765e=this[_0x1295('0xe')](_0x55a64e);if(this[_0x1295('0x86')]&&this[_0x1295('0x86')][_0x1295('0xfa')]){const _0x315e80=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x112')),_0x31bb21=_0x20765e[_0x1295('0x49')],_0x483fcc=_0x20765e[_0x1295('0x74')]?_0x20765e[_0x1295('0x109')]+':'+_0x20765e[_0x1295('0x74')]:_0x20765e[_0x1295('0x109')],_0x242eba=this[_0x1295('0xb9')][_0x1295('0x3e')],_0x43cf33=_0x315e80[_0x1295('0x1b')](_0x146fe2(_0x242eba,_0x1295('0x4'))),_0x57946e={'id':_0x4bf187,'type':_0x483fcc,'hasComments':_0x31bb21,'data':_0x55a64e[_0x1295('0x9c')]||null,'originalSuggestionId':_0x55a64e[_0x1295('0x91')]||null,'attributes':_0x20765e[_0x1295('0xb0')]};this[_0x1295('0x86')]['addSuggestion'](_0x57946e)['then'](_0x1dc7df=>{_0x20765e[_0x1295('0x13b')]=!0x0,_0x315e80[_0x1295('0xc3')](_0x43cf33),_0x1dc7df&&_0x1dc7df[_0x1295('0x9a')]&&(this[_0x1295('0x83')]['get'](_0x4bf187)[_0x1295('0x9a')]=_0x1dc7df[_0x1295('0x9a')]);})[_0x1295('0x119')](_0x2b524a=>{throw _0x5105f9(_0x1295('0x19')),this[_0x1295('0xb9')]['model'][_0x1295('0x96')]({'isUndoable':!0x1},()=>{_0x20765e[_0x1295('0xeb')]();}),_0x20765e[_0x1295('0xec')](),this[_0x1295('0x83')][_0x1295('0xf3')](_0x20765e['id']),this[_0x1295('0x12')][_0x1295('0xf3')](_0x20765e),_0x2b524a;});}return _0x20765e;}[_0x1295('0xb6')](_0x1d243a,_0x33b209){const _0x8740a9=this[_0x1295('0xb9')]['plugins'][_0x1295('0xaf')]('PendingActions'),_0x350067=this[_0x1295('0x126')](_0x1d243a);if(this[_0x1295('0x86')]&&this[_0x1295('0x86')][_0x1295('0xd1')]){if(_0x350067[_0x1295('0x13b')]){const _0x5e46b1=_0x8740a9[_0x1295('0x1b')](_0x146fe2(this[_0x1295('0xb9')]['locale'],'PENDING_ACTION_SUGGESTION'));this[_0x1295('0x86')][_0x1295('0xd1')](_0x1d243a,_0x33b209)['then'](()=>{_0x8740a9['remove'](_0x5e46b1);});}else _0x350067['on'](_0x1295('0xa'),()=>{this[_0x1295('0xb6')](_0x1d243a,_0x33b209);});}}[_0x1295('0x3d')](_0x1e50f6){if(!this[_0x1295('0x86')]||!this[_0x1295('0x86')][_0x1295('0x126')])throw new _0x5ca231('track-changes-adapter-missing-getsuggestion',this);return this[_0x1295('0x86')][_0x1295('0x126')](_0x1e50f6);}[_0x1295('0x10d')](_0x526a30){const {id:_0x4375e0,type:_0x9ba32c,subType:_0x456b4e,authorId:_0x2b8a56}=this[_0x1295('0xbd')](_0x526a30),_0x374c68=this[_0x1295('0x83')][_0x1295('0xaf')](_0x4375e0)||this['_createSuggestion'](_0x9ba32c,_0x456b4e,_0x4375e0,_0x2b8a56,{});switch(this[_0x1295('0x103')](_0x374c68,_0x9ba32c,_0x456b4e,_0x2b8a56),this[_0x1295('0x12')][_0x1295('0xaf')](_0x374c68)){case _0x1295('0xe2'):this[_0x1295('0x3d')](_0x4375e0)[_0x1295('0x4a')](_0x2a09ae=>{let _0x3d40e=Promise[_0x1295('0x9d')]();_0x2a09ae[_0x1295('0x49')]&&(_0x3d40e=this['_commentsRepository'][_0x1295('0xfc')]({'channelId':this['editor'][_0x1295('0xd9')][_0x1295('0xaf')](_0x1295('0xa7')),'threadId':_0x4375e0})),_0x3d40e[_0x1295('0x4a')](()=>{this['addSuggestionData'](_0x2a09ae)[_0x1295('0x13b')]=!0x0;});}),this[_0x1295('0x12')]['set'](_0x374c68,_0x1295('0xe1'));break;case'removed':this['_updateSuggestionData'](_0x4375e0,{'state':_0x1295('0x53')});case _0x1295('0x63'):this[_0x1295('0x12')][_0x1295('0xb2')](_0x374c68,'ready'),this[_0x1295('0xdb')](_0x1295('0x111'),_0x374c68);break;case _0x1295('0xe8'):this[_0x1295('0xdb')]('suggestionChanged',_0x374c68);}return _0x374c68[_0x1295('0x11d')](_0x526a30),_0x374c68;}[_0x1295('0x77')](_0xb4439e){const _0x1b90b3=Array['from'](_0xb4439e)['filter'](_0x1fc0f5=>!_0x1fc0f5['isMultiRange']),_0xb23f47=this['getSuggestions']({'skipNotAttached':!0x0})[_0x1295('0x22')](_0x4df1a2=>!_0x4df1a2['isMultiRange']),_0x589a04=_0xb23f47[_0x1295('0x22')](_0x3f7597=>!_0xb4439e['has'](_0x3f7597)),_0x24607b=new Map(_0xb23f47[_0x1295('0x45')](_0x1a1ec=>[_0x1a1ec,this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1a1ec[_0x1295('0x109')],_0x1a1ec[_0x1295('0x74')],_0x1295('0xa6'))])),_0x369072=new Map(_0xb23f47[_0x1295('0x45')](_0x472991=>[_0x472991,_0x472991[_0x1295('0x44')]()])),_0x43322f=new Set(),_0x3586b9=new Set();for(let _0x102510=0x0;_0x102510<_0x1b90b3[_0x1295('0x72')];_0x102510++)_0x4491d7(_0x1b90b3[_0x102510],_0x1b90b3,_0x102510+0x1);for(let _0x32b0ae=0x0;_0x32b0ae<_0x1b90b3['length'];_0x32b0ae++)_0x4491d7(_0x1b90b3[_0x32b0ae],_0x589a04,0x0);for(let _0x255983=0x0;_0x255983<_0x1b90b3[_0x1295('0x72')];_0x255983++){const _0x540ad5=_0x1b90b3[_0x255983];!_0x3586b9['has'](_0x540ad5)&&_0x540ad5[_0x1295('0x102')]&&(_0x540ad5[_0x1295('0x102')][_0x1295('0xc0')]===_0x540ad5&&(_0x540ad5[_0x1295('0x102')][_0x1295('0xc0')]=null),_0x540ad5[_0x1295('0x102')]=null),!_0x43322f[_0x1295('0x39')](_0x540ad5)&&_0x540ad5[_0x1295('0xc0')]&&(_0x540ad5[_0x1295('0xc0')][_0x1295('0x102')]===_0x540ad5&&(_0x540ad5[_0x1295('0xc0')][_0x1295('0x102')]=null),_0x540ad5['next']=null);}function _0x4491d7(_0xd61d3a,_0x1d2808,_0x4185aa){for(let _0x5039e7=_0x4185aa;_0x5039e7<_0x1d2808[_0x1295('0x72')];_0x5039e7++){const _0x4a08f3=_0x403b28(_0xd61d3a,_0x1d2808[_0x5039e7]);_0x4a08f3&&(_0x4a08f3[0x0][_0x1295('0xc0')]=_0x4a08f3[0x1],_0x4a08f3[0x1][_0x1295('0x102')]=_0x4a08f3[0x0],_0x43322f[_0x1295('0x1b')](_0x4a08f3[0x0]),_0x3586b9[_0x1295('0x1b')](_0x4a08f3[0x1]));}}function _0x403b28(_0x2422c4,_0x50c72e){if(_0x2422c4[_0x1295('0x2')]['id']!==_0x50c72e['author']['id'])return null;const _0x423fa5=_0x24607b[_0x1295('0xaf')](_0x2422c4)(_0x2422c4,_0x50c72e,_0x369072[_0x1295('0xaf')](_0x2422c4),_0x369072[_0x1295('0xaf')](_0x50c72e));if(!_0x423fa5)return null;return _0x24607b[_0x1295('0xaf')](_0x50c72e)(_0x2422c4,_0x50c72e,_0x369072[_0x1295('0xaf')](_0x2422c4),_0x369072['get'](_0x50c72e))?_0x423fa5[0x1][_0x1295('0x43')]&&_0x423fa5[0x1]['commentThread'][_0x1295('0x72')]?null:_0x423fa5:null;}}[_0x1295('0x5b')](_0x37b431){const _0x4cea53=Array[_0x1295('0x11f')](_0x37b431),_0x47d5b8=this[_0x1295('0xd2')]({'skipNotAttached':!0x0}),_0x2a3726=_0x47d5b8[_0x1295('0x22')](_0x4602ba=>!_0x37b431[_0x1295('0x39')](_0x4602ba)),_0x144a79=new Map(_0x4cea53['map'](_0x3143b1=>[_0x3143b1,this[_0x1295('0xbe')][_0x1295('0xa9')](_0x3143b1[_0x1295('0x109')],_0x3143b1[_0x1295('0x74')],_0x1295('0xdd'))])),_0x23f955=new Map(_0x47d5b8[_0x1295('0x45')](_0x56550c=>[_0x56550c,_0x56550c[_0x1295('0x3')]()]));for(let _0x359413=0x0;_0x359413<_0x4cea53['length'];_0x359413++){if(_0x5eb59a(this,_0x4cea53[_0x359413],_0x4cea53,_0x359413+0x1))return!0x0;}for(let _0x50f9ef=0x0;_0x50f9ef<_0x4cea53[_0x1295('0x72')];_0x50f9ef++){if(_0x5eb59a(this,_0x4cea53[_0x50f9ef],_0x2a3726,0x0))return!0x0;}return!0x1;function _0x5eb59a(_0x5b69cc,_0xbc7fbd,_0x494e26,_0x20ad13){for(let _0x4e1f60=_0x20ad13;_0x4e1f60<_0x494e26['length'];_0x4e1f60++){const _0xb40ce0=_0x494e26[_0x4e1f60];if(_0xb40ce0[_0x1295('0x109')]!==_0xbc7fbd[_0x1295('0x109')]||_0xb40ce0['author']['id']!==_0xbc7fbd[_0x1295('0x2')]['id']||_0xb40ce0[_0x1295('0x74')]!==_0xbc7fbd[_0x1295('0x74')])continue;const _0x5588ab=_0x144a79[_0x1295('0xaf')](_0xbc7fbd),_0x1e76ff=_0x23f955['get'](_0xbc7fbd),_0x239306=_0x23f955[_0x1295('0xaf')](_0xb40ce0),_0x520874=_0xbc7fbd[_0x1295('0x43')]&&_0xbc7fbd['commentThread']['length'],_0x3e4fee=_0xb40ce0[_0x1295('0x43')]&&_0xb40ce0['commentThread'][_0x1295('0x72')];if(!_0x520874&&_0x5588ab(_0x239306,_0x1e76ff))return _0x5b69cc[_0x1295('0x108')](_0xb40ce0,_0xbc7fbd),_0x23f955[_0x1295('0xf3')](_0xbc7fbd),!0x0;if(!_0x3e4fee&&_0x5588ab(_0x1e76ff,_0x239306))return _0x5b69cc[_0x1295('0x108')](_0xbc7fbd,_0xb40ce0),_0x23f955['delete'](_0xb40ce0),!0x0;}return!0x1;}}[_0x1295('0x108')](_0x32be66,_0x106832){if(_0x32be66['isMultiRange'])for(const _0x15d43a of _0x106832[_0x1295('0x3')]())_0x32be66['addRange'](_0x15d43a);else{const _0x58717e=_0x106832[_0x1295('0x44')]()[_0x1295('0x5')];this[_0x1295('0x11c')](_0x32be66,this[_0x1295('0x8d')][_0x1295('0x107')](_0x32be66[_0x1295('0x44')]()[_0x1295('0x2c')],_0x58717e));}_0x106832[_0x1295('0xae')]();}}class vt{constructor(_0x155944){this[_0x1295('0x25')]=_0x155944,this['_model']=_0x155944[_0x1295('0x85')],this[_0x1295('0xda')]=new Map(),this[_0x1295('0xef')]=new Map(),this[_0x1295('0xea')]();}[_0x1295('0xd0')](_0x1147dc,_0x5264d7,_0xbf46a0,_0x2f376d,_0x2817dc,_0x1bd22a){return new _0x55858b(this[_0x1295('0x8d')],{'type':_0x1147dc,'subType':_0x5264d7,'id':_0xbf46a0,'author':_0x2f376d,'creator':_0x2f376d,'attributes':_0x2817dc,'onAttributesChange':_0x1bd22a,'onAccept':(..._0x5136f8)=>this[_0x1295('0xa9')](_0x1147dc,_0x5264d7,_0x1295('0x8b'))(..._0x5136f8),'onDiscard':(..._0x1c0d87)=>this[_0x1295('0xa9')](_0x1147dc,_0x5264d7,_0x1295('0xeb'))(..._0x1c0d87)});}[_0x1295('0x24')](_0x455c17,_0x1d3f4d,_0x3cc704,_0x292dbf){const _0x124c4b=_0x455c17+':'+_0x1d3f4d+':'+_0x3cc704;this['_customCallbacks'][_0x1295('0xb2')](_0x124c4b,_0x292dbf);}[_0x1295('0xa9')](_0x4b4117,_0x46d355,_0x48efdf){const _0x403f79=_0x4b4117+':'+_0x46d355+':'+_0x48efdf;return this[_0x1295('0xda')][_0x1295('0xaf')](_0x403f79)||this[_0x1295('0xef')][_0x1295('0xaf')](_0x4b4117+':'+_0x48efdf);}[_0x1295('0xea')](){const _0x2cc573=()=>{},_0x321f2c=_0x248743=>{_0x248743[_0x1295('0x105')]((_0x8b321d,_0x4adadb)=>_0x8b321d[_0x1295('0x2c')][_0x1295('0xc7')](_0x4adadb[_0x1295('0x2c')])?0x1:-0x1),this[_0x1295('0x8d')][_0x1295('0x6')](_0xa937e7=>{for(const _0xcfe974 of _0x248743){let _0x5b6d63;_0x5b6d63=_0xcfe974[_0x1295('0x5')][_0x1295('0x12d')]&&_0xcfe974[_0x1295('0x5')][_0x1295('0x125')]==_0xcfe974[_0x1295('0x2c')][_0x1295('0x5c')]?_0xa937e7[_0x1295('0x7b')](_0xcfe974['start'][_0x1295('0x5c')],'on'):_0xa937e7['createSelection'](_0xcfe974),this[_0x1295('0x8d')][_0x1295('0x13')](_0x5b6d63,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5d24a4=(_0x224b16,_0xe70467)=>{this[_0x1295('0x8d')][_0x1295('0x6')](_0x30c0ca=>{const {commandName:_0x740dfc,commandParams:_0x2ad1a7=[]}=_0xe70467,_0x1f0648=_0x224b16[_0x1295('0x45')](_0x56e0f2=>(Dt(_0x56e0f2)&&(_0x56e0f2=this[_0x1295('0x8d')][_0x1295('0x107')](_0x56e0f2[_0x1295('0x5')])),_0x56e0f2))[_0x1295('0x22')](_0x336e99=>_0x1295('0x117')!==_0x336e99['root'][_0x1295('0xca')]);if(_0x1f0648[_0x1295('0x72')]<0x1)return;const _0x2564a2=Array[_0x1295('0x11f')](this['_model'][_0x1295('0xb1')][_0x1295('0xf9')][_0x1295('0x3')]())[_0x1295('0x45')](_0x1e51bb=>_0x30e928[_0x1295('0x12a')](_0x1e51bb));_0x30c0ca['setSelection'](_0x1f0648);for(const _0x251f5c of this[_0x1295('0x25')][_0x1295('0xc5')]['commands']())_0x251f5c[_0x1295('0x133')]();_0x2ad1a7[_0x1295('0xd4')]({'forceDefaultExecution':!0x0}),this[_0x1295('0x25')][_0x1295('0x21')](_0x740dfc,..._0x2ad1a7);const _0x5ecc16=_0x2564a2[_0x1295('0x22')](_0x12ea76=>_0x1295('0x117')!=_0x12ea76[_0x1295('0xfd')]['rootName']);_0x5ecc16[_0x1295('0x72')]>0x0&&_0x30c0ca[_0x1295('0x12f')](_0x5ecc16);for(const _0x3d2301 of _0x2564a2)_0x3d2301['detach']();});},_0x4c2c1f=(_0x2ff11c,_0x41369d)=>0x1==_0x2ff11c[_0x1295('0x72')]&&0x1==_0x41369d['length']&&_0x2ff11c[0x0]['end'][_0x1295('0x7f')](_0x41369d[0x0]['start']),_0x48f69f=(_0x483af7,_0xe32869,_0x4c56bc,_0x471bf3)=>$t(_0x483af7,_0xe32869,_0x4c56bc,_0x471bf3,this['_model'])?[_0x483af7,_0xe32869]:$t(_0xe32869,_0x483af7,_0x471bf3,_0x4c56bc,this[_0x1295('0x8d')])?[_0xe32869,_0x483af7]:null;this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0x5e'),_0x2cc573),this[_0x1295('0xef')][_0x1295('0xb2')]('insertion:discard',_0x321f2c),this['_defaultCallbacks']['set'](_0x1295('0xb7'),_0x4c2c1f),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0x4f'),_0x48f69f),this[_0x1295('0xef')][_0x1295('0xb2')](_0x1295('0xf'),_0x321f2c),this['_defaultCallbacks'][_0x1295('0xb2')]('deletion:discard',_0x2cc573),this['_defaultCallbacks']['set'](_0x1295('0x17'),_0x4c2c1f),this[_0x1295('0xef')]['set']('deletion:chain',_0x48f69f),this[_0x1295('0xef')][_0x1295('0xb2')](_0x1295('0x135'),_0x5d24a4),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0x2a'),_0x2cc573),this[_0x1295('0xef')]['set'](_0x1295('0x54'),_0x4c2c1f),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0xde'),_0x2cc573),this[_0x1295('0xef')]['set'](_0x1295('0xac'),_0x5d24a4),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0xf8'),_0x2cc573),this[_0x1295('0xef')][_0x1295('0xb2')](_0x1295('0x46'),_0x4c2c1f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2cc573);}}function At(_0x67498,_0x2a5fd4,_0x522e6){for(const _0x2e1ba7 of _0x2a5fd4['parent'][_0x1295('0x98')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e1ba7['root']==_0x2e1ba7)return!0x1;if(!_0x522e6[_0x1295('0x128')](_0x2e1ba7))return!0x1;if(_0x67498['isObject'](_0x2e1ba7)||_0x67498[_0x1295('0x4b')](_0x2e1ba7))return!0x0;}return!0x1;}function Dt(_0x53d25b){return _0x53d25b[_0x1295('0x5')][_0x1295('0x125')]==_0x53d25b[_0x1295('0x2c')][_0x1295('0x5c')]&&_0x53d25b['end']['isAtStart'];}function Ct(_0x546cae,_0x5c86fd,_0x380bb3,_0x4e7a26){const _0x3e53e6=_0x411d1e=>!_0x411d1e[_0x1295('0xd7')]['is'](_0x1295('0xbb'))&&!_0x4e7a26[_0x1295('0xf4')](_0x411d1e[_0x1295('0xd7')]),_0x639482=_0x546cae[_0x1295('0x2c')][_0x1295('0xb')](_0x3e53e6),_0x19e02c=_0x546cae['end'][_0x1295('0xb')](_0x3e53e6,{'direction':_0x1295('0x7a')});return(!_0x546cae[_0x1295('0x2c')][_0x1295('0x7f')](_0x639482)||!_0x546cae['end'][_0x1295('0x7f')](_0x19e02c))&&(_0x639482['isBefore'](_0x19e02c)?_0x380bb3[_0x1295('0x9e')](_0x5c86fd,{'range':_0x380bb3[_0x1295('0x107')](_0x639482,_0x19e02c)}):_0x380bb3[_0x1295('0xb8')](_0x5c86fd),!0x0);}function Bt(_0x107cf0){return _0x55d191(_0x107cf0);}function _t(_0x469a29){const _0x587087=_0x469a29['start']['nodeAfter'];return _0x587087&&_0x587087['is'](_0x1295('0x99'));}function Mt(_0x3ae638,_0x46c2e7){const _0x2ebeb6=_0x46c2e7[_0x1295('0x34')][_0x1295('0xf4')](_0x3ae638)||_0x46c2e7[_0x1295('0x34')][_0x1295('0xaa')](_0x3ae638);return _0x46c2e7[_0x1295('0x107')](_0x46c2e7['createPositionAt'](_0x3ae638,_0x1295('0x6d')),_0x2ebeb6?_0x46c2e7['createPositionAfter'](_0x3ae638):_0x46c2e7[_0x1295('0x122')](_0x3ae638,_0x1295('0x5')));}function $t(_0x56cb5f,_0x61743b,_0x245795,_0x4eba3d,_0x441fce){if(_0x245795[_0x1295('0x5')][_0x1295('0x7f')](_0x4eba3d[_0x1295('0x2c')]))return!0x0;if(_0x56cb5f['type']!=_0x61743b[_0x1295('0x109')])return!0x1;if(!_0x245795['end'][_0x1295('0xce')](_0x4eba3d[_0x1295('0x2c')]))return!0x1;const _0x10f279=_0x441fce['createRange'](_0x245795[_0x1295('0x5')],_0x4eba3d[_0x1295('0x2c')])['getWalker']();for(const _0x2e47fd of _0x10f279)if([_0x1295('0x1'),'elementEnd'][_0x1295('0x12c')](_0x2e47fd[_0x1295('0x109')])&&_0x441fce[_0x1295('0x34')][_0x1295('0x4b')](_0x2e47fd[_0x1295('0xd7')]))return!0x1;return!0x0;}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @module track-changes/trackchangesui
3
+ */
4
+ import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides UI for track changes plugin.
7
+ *
8
+ * This plugin displays {@link module:track-changes/suggestion~Suggestion suggestions} as a
9
+ * {@link module:comments/annotations/annotations~Annotations}.
10
+ *
11
+ * @extends module:core/plugin~Plugin
12
+ */
13
+ export default class TrackChangesUI extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get requires(): PluginDependencies;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): 'TrackChangesUI';
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ constructor(editor: Editor);
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ init(): void;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ destroy(): void;
34
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x259f=['getJoined','mainView','change:activeAnnotations','isOn','createAnnotationView','suggestionChanged','trackChanges.disableComments','_createUIButton','Annotations','CommentView','suggestion-','hasSuggestion','editor','define','activeMarkers','trackChanges','_annotationViews','createCommentThreadController','map','view','isEnabled','locale','from','length','suggestionLoaded','destroy','_updateController','getRanges','_handleSuggestionControllerDelayed','addComment','comments.editorConfig','head','remove','CommentsRepository','filter','suggestionUnloaded','pluginName','_suggestionToController','Accept\x20all\x20selected\x20suggestions','TrackChangesEditing','push','CommentsUI','value','refreshSelectedViews','init','TrackChangesUI','execute','addSourceCollector','getDescriptions','focus','componentFactory','bind','editing','Accept\x20all\x20suggestions','config','trackChanges.SuggestionThreadView','Track\x20changes','isMultiRange','set','keys','discardButton','get','model','acceptAllSuggestions','comments.maxThreadTotalWeight','listenTo','_handleControllerBuffer','unbind','Discard\x20all\x20selected\x20suggestions','getAllAdjacentSuggestions','commandName','acceptSelectedSuggestions','innerView','delete','_descriptionFactory','createAnnotation','discardSelectedSuggestions','_refreshActiveMarkers','actionView','some','commentThread','stopListening','_disableComments','comments.maxCommentsWhenCollapsed','registerAnnotation','buttonView','EditorAnnotations','separator','plugins','reduce','button','change:previous','add','isInContent','descriptionParts','comments.maxCommentCharsWhenCollapsed','type','_viewToController','_destroyController','commands','arrowView','getMarkerNames','getSuggestion','activeAnnotations'];(function(_0x353808,_0x259f9e){const _0x1c26b2=function(_0x129e56){while(--_0x129e56){_0x353808['push'](_0x353808['shift']());}};_0x1c26b2(++_0x259f9e);}(_0x259f,0x143));const _0x1c26=function(_0x353808,_0x259f9e){_0x353808=_0x353808-0x0;let _0x1c26b2=_0x259f[_0x353808];return _0x1c26b2;};import{Plugin as _0x3b1ba6}from'ckeditor5/src/core';import{Collection as _0x3bc8d8}from'ckeditor5/src/utils';import{Model as _0x45cc2c,SplitButtonView as _0x2f9082,createDropdown as _0x37fe47,addListToDropdown as _0x25bb73}from'ckeditor5/src/ui';import{Users as _0x5b013f,getDateTimeFormatter as _0x2669e4,getAllMarkersDomElementsSorted as _0x23b763}from'ckeditor5-collaboration/src/collaboration-core';import _0x290aa4 from'./trackchangesediting';import _0x150ccd from'./ui/suggestioncontroller';import _0x3fe325 from'./ui/view/suggestionthreadview';import{getTranslation as _0x13ca5a}from'./utils/common-translations';import _0x253a9d from'../theme/icons/track-changes.svg';export default class d extends _0x3b1ba6{static get['requires'](){return[_0x290aa4,_0x5b013f,_0x1c26('0x16'),_0x1c26('0x65'),_0x1c26('0x4b')];}static get[_0x1c26('0x19')](){return _0x1c26('0x22');}constructor(_0x159cb6){super(_0x159cb6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x1c26('0x37')]=new Map();const _0x5d334c=this[_0x1c26('0x1')][_0x1c26('0x2b')];_0x5d334c[_0x1c26('0x2')](_0x1c26('0x2c'),_0x3fe325),_0x5d334c[_0x1c26('0x2')](_0x1c26('0x63'),!0x1),this[_0x1c26('0x47')]=_0x5d334c[_0x1c26('0x32')](_0x1c26('0x63'));}[_0x1c26('0x11')](_0x3ac3b6,_0xcd14c4){0x0===this[_0x1c26('0x37')]['size']&&setTimeout(()=>{for(const [_0x1f267c,_0x459f2e]of this[_0x1c26('0x37')]){const _0x9e787a=this[_0x1c26('0x1a')]['has'](_0x1f267c);_0x9e787a||_0x459f2e?_0x9e787a&&_0x459f2e&&this[_0x1c26('0x57')](_0x1f267c):this['_initializeController'](_0x1f267c);}this[_0x1c26('0x1')]['plugins']['get'](_0x1c26('0x4b'))[_0x1c26('0x20')](),this[_0x1c26('0x42')](),this[_0x1c26('0x37')]['clear']();},0xa),this['_handleControllerBuffer'][_0x1c26('0x2f')](_0x3ac3b6,_0xcd14c4);}[_0x1c26('0x21')](){const _0x4ea51a=this[_0x1c26('0x1')],_0x446067=_0x4ea51a[_0x1c26('0x4d')][_0x1c26('0x32')](_0x290aa4),_0x54a0e8=_0x4ea51a['plugins'][_0x1c26('0x32')]('Annotations'),_0x2ede1b=_0x4ea51a[_0x1c26('0x4d')][_0x1c26('0x32')](_0x1c26('0x4b')),_0x644f7e=_0x4ea51a['plugins']['get']('CommentsRepository');_0x4ea51a['ui'][_0x1c26('0x27')][_0x1c26('0x51')]('trackChanges',_0x7052c6=>this[_0x1c26('0x64')](_0x7052c6)),_0x2ede1b[_0x1c26('0x24')](()=>{const _0x15231a=[];for(const [_0x2ed9ad,_0x2375a8]of Array[_0x1c26('0xb')](this[_0x1c26('0x1a')])){const _0x139d4e=_0x2ed9ad['getAllAdjacentSuggestions'](),_0x41eac6=[];for(const _0x5663cd of _0x139d4e){if(!_0x5663cd[_0x1c26('0x52')])continue;if(_0x5663cd[_0x1c26('0x2e')]){_0x41eac6[_0x1c26('0x1d')](..._0x5663cd[_0x1c26('0x10')]());continue;}const _0x4bfcdf=_0x5663cd['getFirstRange']();if(_0x41eac6[_0x1c26('0xc')]>0x0){const _0x4cc7f6=_0x41eac6[0x0][_0x1c26('0x5d')](_0x4bfcdf);if(_0x4cc7f6){_0x41eac6[0x0]=_0x4cc7f6;continue;}}_0x41eac6[_0x1c26('0x1d')](_0x4bfcdf);}_0x15231a[_0x1c26('0x1d')]([_0x2375a8[_0x1c26('0x8')],_0x41eac6]);}return _0x15231a;}),this[_0x1c26('0x36')](_0x446067,_0x1c26('0xd'),(_0x5b1c36,_0xc3395c)=>{this[_0x1c26('0x36')](_0xc3395c,_0x1c26('0x50'),(_0x1759b9,_0x4f8783,_0x21f97b,_0x3ff627)=>{_0xc3395c['isInContent']&&(null==_0x21f97b?(this['_updateController'](_0x3ff627[_0x1c26('0x14')]),this['_handleSuggestionControllerDelayed'](_0xc3395c,!0x1)):(this['_updateController'](_0x21f97b[_0x1c26('0x14')]),this[_0x1c26('0x11')](_0xc3395c,!0x0)));}),null===_0xc3395c['previous']?this[_0x1c26('0x11')](_0xc3395c,!0x1):this['_updateController'](_0xc3395c[_0x1c26('0x14')]);}),this['listenTo'](_0x446067,_0x1c26('0x18'),(_0x4309e2,_0x227b19,_0x72e61f)=>{this[_0x1c26('0x46')](_0x227b19,'change:previous'),this[_0x1c26('0x37')]['delete'](_0x227b19);const _0x147e59=_0x72e61f?_0x72e61f[_0x1c26('0x14')]:_0x227b19,_0x5ddb21=this[_0x1c26('0x1a')][_0x1c26('0x32')](_0x147e59);null!==_0x72e61f&&this[_0x1c26('0xf')](_0x147e59),null===_0x72e61f&&_0x5ddb21&&this[_0x1c26('0x57')](_0x227b19);}),this[_0x1c26('0x36')](_0x446067,_0x1c26('0x62'),(_0xf02c35,_0x17081d)=>{this[_0x1c26('0xf')](_0x17081d);}),this[_0x1c26('0x36')](_0x54a0e8,_0x1c26('0x5f'),()=>{this[_0x1c26('0x42')]();}),this[_0x1c26('0x36')](_0x644f7e,_0x1c26('0x12'),(_0x1c3993,{threadId:_0x92374,isFromAdapter:_0x1f07eb})=>{if(_0x1f07eb||!_0x446067[_0x1c26('0x0')](_0x92374))return;const _0x3464b9=_0x446067[_0x1c26('0x5b')](_0x92374);this[_0x1c26('0x1a')][_0x1c26('0x32')](_0x3464b9)[_0x1c26('0x8')][_0x1c26('0x26')]();},{'priority':'lowest'});}[_0x1c26('0x42')](){const _0x182046=this[_0x1c26('0x1')][_0x1c26('0x4d')]['get']('Annotations'),_0x42d2d6=this['editor']['plugins'][_0x1c26('0x32')](_0x290aa4),_0x14ab4d=Array[_0x1c26('0xb')](_0x182046[_0x1c26('0x5c')],_0x1c3a95=>_0x1c3a95[_0x1c26('0x3d')])[_0x1c26('0x17')](_0x111ac7=>this[_0x1c26('0x56')]['has'](_0x111ac7)),_0x7453c=[];for(const _0x59e100 of _0x14ab4d){const _0x349813=this['_viewToController'][_0x1c26('0x32')](_0x59e100)[_0x1c26('0x33')][_0x1c26('0x3a')]();_0x7453c[_0x1c26('0x1d')](..._0x349813[_0x1c26('0x4e')]((_0x4eb2d9,_0x1b79a8)=>[..._0x4eb2d9,..._0x1b79a8[_0x1c26('0x5a')]()],[]));}_0x42d2d6[_0x1c26('0x3')]=_0x7453c;}[_0x1c26('0x64')](_0x240d81){const _0x1b96b6=_0x37fe47(_0x240d81,_0x2f9082),_0x1f6c17=this[_0x1c26('0x1')][_0x1c26('0x58')]['get'](_0x1c26('0x4')),_0x9f80a1=_0x13ca5a(_0x240d81,_0x1c26('0x2d'));_0x1b96b6[_0x1c26('0x4a')]['set']({'tooltip':_0x9f80a1,'label':_0x9f80a1,'icon':_0x253a9d}),_0x1b96b6[_0x1c26('0x4a')][_0x1c26('0x28')](_0x1c26('0x60'))['to'](_0x1f6c17,_0x1c26('0x1f')),_0x1b96b6['buttonView']['on']('execute',()=>{_0x1f6c17[_0x1c26('0x23')](),this[_0x1c26('0x1')][_0x1c26('0x29')][_0x1c26('0x8')][_0x1c26('0x26')]();});const _0x39bbbe=new _0x3bc8d8(),_0x50210d=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x9f80a1,'commandName':'trackChanges'}},{'type':_0x1c26('0x4c')},{'type':_0x1c26('0x4f'),'model':{'withText':!0x0,'label':_0x13ca5a(_0x240d81,_0x1c26('0x2a')),'commandName':_0x1c26('0x34')}},{'type':_0x1c26('0x4f'),'model':{'withText':!0x0,'label':_0x13ca5a(_0x240d81,_0x1c26('0x1b')),'commandName':_0x1c26('0x3c')}},{'type':_0x1c26('0x4f'),'model':{'withText':!0x0,'label':_0x13ca5a(_0x240d81,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':_0x1c26('0x4f'),'model':{'withText':!0x0,'label':_0x13ca5a(_0x240d81,_0x1c26('0x39')),'commandName':_0x1c26('0x41')}}];for(const _0x28c1d5 of _0x50210d){const _0x242c40={'type':_0x28c1d5[_0x1c26('0x55')]};if(_0x28c1d5[_0x1c26('0x33')]){const _0x479e3c=new _0x45cc2c(_0x28c1d5['model']),_0x3a960a=this[_0x1c26('0x1')]['commands'][_0x1c26('0x32')](_0x479e3c[_0x1c26('0x3b')]);_0x479e3c[_0x1c26('0x28')](_0x1c26('0x60'),'isEnabled')['to'](_0x3a960a,_0x1c26('0x1f'),_0x1c26('0x9')),_0x242c40[_0x1c26('0x33')]=_0x479e3c;}_0x39bbbe[_0x1c26('0x51')](_0x242c40);}_0x25bb73(_0x1b96b6,_0x39bbbe);const _0x292013=_0x50210d[_0x1c26('0x17')](_0x134a14=>null!=_0x134a14[_0x1c26('0x33')])[_0x1c26('0x7')](_0x2488cb=>this['editor'][_0x1c26('0x58')][_0x1c26('0x32')](_0x2488cb[_0x1c26('0x33')][_0x1c26('0x3b')]));return _0x1b96b6[_0x1c26('0x4a')][_0x1c26('0x43')]['unbind'](_0x1c26('0x9')),_0x1b96b6[_0x1c26('0x4a')]['arrowView'][_0x1c26('0x38')](_0x1c26('0x9')),_0x1b96b6[_0x1c26('0x4a')][_0x1c26('0x43')][_0x1c26('0x28')]('isEnabled')['to'](_0x1f6c17,'isEnabled'),_0x1b96b6[_0x1c26('0x4a')][_0x1c26('0x59')][_0x1c26('0x28')](_0x1c26('0x9'))['toMany'](_0x292013,'isEnabled',(..._0x1cb3ef)=>_0x1cb3ef[_0x1c26('0x44')](_0x567d30=>_0x567d30)),_0x1b96b6['on'](_0x1c26('0x23'),_0x2f974b=>{this[_0x1c26('0x1')][_0x1c26('0x23')](_0x2f974b['source'][_0x1c26('0x3b')]),this['editor'][_0x1c26('0x29')][_0x1c26('0x8')][_0x1c26('0x26')]();}),_0x1b96b6;}['_initializeController'](_0x55d761){const _0x4b6fef=this[_0x1c26('0x1')],_0x1bc1fc=_0x4b6fef['config'],_0x474f60=_0x4b6fef[_0x1c26('0x4d')][_0x1c26('0x32')](_0x1c26('0x65')),_0x47615a=_0x4b6fef['plugins'][_0x1c26('0x32')]('CommentsRepository'),_0x1f54c8=_0x4b6fef[_0x1c26('0x4d')]['get'](_0x1c26('0x4b')),_0x466123=_0x4b6fef[_0x1c26('0x4d')]['get'](_0x5b013f)['me'],_0x59ee3c=_0x1bc1fc[_0x1c26('0x32')](_0x1c26('0x4'))['SuggestionThreadView'],{CommentsListView:_0x465736,CommentThreadInputView:_0x1e5c80}=_0x4b6fef['plugins'][_0x1c26('0x32')](_0x1c26('0x1e'));let _0xed1ee4,_0x1d3a0d;this['_annotationViews']['has'](_0x55d761['id'])?(_0x1d3a0d=this['_annotationViews'][_0x1c26('0x32')](_0x55d761['id']),_0xed1ee4=_0x1d3a0d['mainView']):(_0xed1ee4=new _0x59ee3c(_0x4b6fef['locale'],_0x55d761,_0x466123,{'disableComments':this[_0x1c26('0x47')],'editorConfig':_0x1bc1fc[_0x1c26('0x32')](_0x1c26('0x13')),'maxCommentsWhenCollapsed':_0x1bc1fc[_0x1c26('0x32')](_0x1c26('0x48')),'maxThreadTotalWeight':_0x1bc1fc[_0x1c26('0x32')](_0x1c26('0x35')),'maxCommentCharsWhenCollapsed':_0x1bc1fc[_0x1c26('0x32')](_0x1c26('0x54')),'formatDateTime':_0x2669e4(_0x1bc1fc['get'](_0x1c26('0xa'))),'CommentView':_0x1bc1fc[_0x1c26('0x32')]('comments')[_0x1c26('0x66')],'CommentsListView':_0x465736,'CommentThreadInputView':_0x1e5c80}),_0xed1ee4['acceptButton']['on'](_0x1c26('0x23'),()=>{_0x4b6fef['editing']['view']['focus']();}),_0xed1ee4[_0x1c26('0x31')]['on'](_0x1c26('0x23'),()=>{_0x4b6fef[_0x1c26('0x29')][_0x1c26('0x8')][_0x1c26('0x26')]();}),_0x1d3a0d=_0x474f60[_0x1c26('0x61')](this[_0x1c26('0x1')][_0x1c26('0xa')],_0xed1ee4),_0x1d3a0d[_0x1c26('0x28')]('isDirty')['to'](_0xed1ee4,'isDirty'),_0x1d3a0d['bind'](_0x1c26('0xc'))['to'](_0xed1ee4),_0x1d3a0d[_0x1c26('0x28')](_0x1c26('0x55'))['to'](_0xed1ee4,_0x1c26('0x55'),_0x59365b=>_0x1c26('0x67')+_0x59365b),this[_0x1c26('0x5')]['set'](_0x55d761['id'],_0x1d3a0d));const _0x5dc991=_0x47615a[_0x1c26('0x6')](_0x55d761[_0x1c26('0x45')],_0xed1ee4),_0x5b53be=new _0x150ccd(_0x4b6fef,_0x55d761,_0xed1ee4,_0x5dc991),_0x2abac7=_0x55d761[_0x1c26('0x3a')]()[_0x1c26('0x17')](_0x27b602=>_0x27b602['isInContent']);_0xed1ee4['descriptionParts']=_0x4b6fef[_0x1c26('0x4d')][_0x1c26('0x32')](_0x1c26('0x1c'))[_0x1c26('0x3f')]['getDescriptions'](_0x2abac7),this[_0x1c26('0x1a')][_0x1c26('0x2f')](_0x55d761,_0x5b53be),this['_viewToController'][_0x1c26('0x2f')](_0xed1ee4,_0x5b53be);const _0xc8536f=_0x474f60[_0x1c26('0x40')]({'view':_0x1d3a0d,'target':()=>{const _0xf31735=[],_0x1bf893=_0x55d761[_0x1c26('0x3a')]()[_0x1c26('0x17')](_0x325ae7=>_0x325ae7[_0x1c26('0x52')]);for(const _0x444896 of _0x1bf893)_0xf31735[_0x1c26('0x1d')](..._0x444896['getMarkers']());return _0x23b763(_0x4b6fef[_0x1c26('0x29')],_0xf31735);},'type':()=>_0x1c26('0x67')+_0x5b53be[_0x1c26('0x8')][_0x1c26('0x55')]});_0x474f60[_0x1c26('0x51')](_0xc8536f),_0x1f54c8[_0x1c26('0x49')](_0xc8536f);}[_0x1c26('0x57')](_0x3172ba){const _0x35bc1b=this['editor'][_0x1c26('0x4d')][_0x1c26('0x32')](_0x1c26('0x65')),_0x4adfa8=this[_0x1c26('0x1a')][_0x1c26('0x32')](_0x3172ba),_0x36000d=_0x4adfa8['view'],_0x898b71=_0x35bc1b['getByInnerView'](_0x36000d);_0x898b71&&_0x35bc1b[_0x1c26('0x15')](_0x898b71),this['_suggestionToController'][_0x1c26('0x3e')](_0x3172ba),this[_0x1c26('0x56')][_0x1c26('0x3e')](_0x36000d),_0x4adfa8[_0x1c26('0xe')]();}[_0x1c26('0xf')](_0x3733dc){if(!_0x3733dc[_0x1c26('0x52')]||!this[_0x1c26('0x1a')]['has'](_0x3733dc))return;const _0xab93cf=this['editor'][_0x1c26('0x4d')]['get'](_0x1c26('0x1c')),_0x5800d3=this[_0x1c26('0x1a')][_0x1c26('0x32')](_0x3733dc),_0x14c069=_0x3733dc[_0x1c26('0x3a')]();_0x5800d3['view'][_0x1c26('0x53')]=_0xab93cf[_0x1c26('0x3f')][_0x1c26('0x25')](_0x14c069);}[_0x1c26('0xe')](){for(const _0x53a14d of this[_0x1c26('0x1a')][_0x1c26('0x30')]())this[_0x1c26('0x57')](_0x53a14d);for(const _0x5f05da of this[_0x1c26('0x5')]['values']())_0x5f05da[_0x1c26('0x5e')][_0x1c26('0xe')]();super[_0x1c26('0xe')]();}}
23
+ const _0x5601=['acceptAllSuggestions','get','requires','listenTo','separator','getJoined','head','clear','editor','view','_descriptionFactory','comments.maxThreadTotalWeight','init','_updateController','getSuggestion','descriptionParts','_initializeController','getAllAdjacentSuggestions','_destroyController','EditorAnnotations','_disableComments','destroy','activeMarkers','suggestion-','button','componentFactory','isEnabled','discardSelectedSuggestions','values','length','suggestionUnloaded','filter','buttonView','locale','keys','isMultiRange','_handleControllerBuffer','reduce','createAnnotation','acceptButton','_createUIButton','focus','registerAnnotation','value','editing','addComment','Annotations','comments.maxCommentCharsWhenCollapsed','mainView','define','from','source','getMarkerNames','type','switchbutton','_handleSuggestionControllerDelayed','set','pluginName','commandName','comments.editorConfig','bind','plugins','unbind','delete','change:previous','trackChanges.SuggestionThreadView','getMarkers','getDescriptions','isInContent','suggestionLoaded','getByInnerView','comments','add','actionView','TrackChangesEditing','refreshSelectedViews','_refreshActiveMarkers','model','addSourceCollector','trackChanges.disableComments','discardAllSuggestions','CommentsUI','map','config','isDirty','Discard\x20all\x20suggestions','discardButton','isOn','stopListening','has','Accept\x20all\x20suggestions','innerView','SuggestionThreadView','trackChanges','commands','Track\x20changes','_viewToController','_annotationViews','CommentView','CommentsRepository','execute','_suggestionToController','change:activeAnnotations'];(function(_0x5c871a,_0x560158){const _0x2bcc85=function(_0x429eb8){while(--_0x429eb8){_0x5c871a['push'](_0x5c871a['shift']());}};_0x2bcc85(++_0x560158);}(_0x5601,0x1e9));const _0x2bcc=function(_0x5c871a,_0x560158){_0x5c871a=_0x5c871a-0x0;let _0x2bcc85=_0x5601[_0x5c871a];return _0x2bcc85;};import{Plugin as _0x193902}from'ckeditor5/src/core';import{Collection as _0x558a12}from'ckeditor5/src/utils';import{Model as _0x4b7169,SplitButtonView as _0x28ffda,createDropdown as _0x533bbe,addListToDropdown as _0x520357}from'ckeditor5/src/ui';import{Users as _0xb0b974,getDateTimeFormatter as _0x43cdd8,getAllMarkersDomElementsSorted as _0x1da08f}from'ckeditor5-collaboration/src/collaboration-core';import _0x1ae56e from'./trackchangesediting';import _0x65dece from'./ui/suggestioncontroller';import _0x551ef2 from'./ui/view/suggestionthreadview';import{getTranslation as _0x3026ab}from'./utils/common-translations';import _0x46d47f from'../theme/icons/track-changes.svg';export default class d extends _0x193902{static get[_0x2bcc('0x1c')](){return[_0x1ae56e,_0xb0b974,_0x2bcc('0x16'),_0x2bcc('0x48'),_0x2bcc('0x2d')];}static get[_0x2bcc('0x53')](){return'TrackChangesUI';}constructor(_0x20b54d){super(_0x20b54d),this['_suggestionToController']=new Map(),this[_0x2bcc('0x13')]=new Map(),this[_0x2bcc('0x14')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x8388a7=this[_0x2bcc('0x22')][_0x2bcc('0x6')];_0x8388a7[_0x2bcc('0x4b')](_0x2bcc('0x5b'),_0x551ef2),_0x8388a7[_0x2bcc('0x4b')](_0x2bcc('0x2'),!0x1),this[_0x2bcc('0x2e')]=_0x8388a7['get'](_0x2bcc('0x2'));}[_0x2bcc('0x51')](_0x247b29,_0x280c23){0x0===this[_0x2bcc('0x3e')]['size']&&setTimeout(()=>{for(const [_0x2cf460,_0x4ad580]of this['_handleControllerBuffer']){const _0x58b361=this[_0x2bcc('0x18')][_0x2bcc('0xc')](_0x2cf460);_0x58b361||_0x4ad580?_0x58b361&&_0x4ad580&&this[_0x2bcc('0x2c')](_0x2cf460):this[_0x2bcc('0x2a')](_0x2cf460);}this[_0x2bcc('0x22')]['plugins'][_0x2bcc('0x1b')](_0x2bcc('0x2d'))[_0x2bcc('0x65')](),this[_0x2bcc('0x66')](),this[_0x2bcc('0x3e')][_0x2bcc('0x21')]();},0xa),this[_0x2bcc('0x3e')][_0x2bcc('0x52')](_0x247b29,_0x280c23);}[_0x2bcc('0x26')](){const _0x5deaee=this[_0x2bcc('0x22')],_0x5950f5=_0x5deaee['plugins']['get']('TrackChangesEditing'),_0x2e8b61=_0x5deaee['plugins'][_0x2bcc('0x1b')](_0x2bcc('0x48')),_0x1f1ebb=_0x5deaee[_0x2bcc('0x57')][_0x2bcc('0x1b')]('EditorAnnotations'),_0x3f5bb3=_0x5deaee['plugins'][_0x2bcc('0x1b')](_0x2bcc('0x16'));_0x5deaee['ui'][_0x2bcc('0x33')][_0x2bcc('0x62')](_0x2bcc('0x10'),_0x5e5010=>this[_0x2bcc('0x42')](_0x5e5010)),_0x1f1ebb[_0x2bcc('0x1')](()=>{const _0x202932=[];for(const [_0x521bb5,_0x1abeda]of Array['from'](this['_suggestionToController'])){const _0x5f5c4b=_0x521bb5['getAllAdjacentSuggestions'](),_0x1f0ac2=[];for(const _0x2b5f21 of _0x5f5c4b){if(!_0x2b5f21[_0x2bcc('0x5e')])continue;if(_0x2b5f21[_0x2bcc('0x3d')]){_0x1f0ac2['push'](..._0x2b5f21['getRanges']());continue;}const _0x4c0828=_0x2b5f21['getFirstRange']();if(_0x1f0ac2['length']>0x0){const _0x3960fc=_0x1f0ac2[0x0][_0x2bcc('0x1f')](_0x4c0828);if(_0x3960fc){_0x1f0ac2[0x0]=_0x3960fc;continue;}}_0x1f0ac2['push'](_0x4c0828);}_0x202932['push']([_0x1abeda[_0x2bcc('0x23')],_0x1f0ac2]);}return _0x202932;}),this[_0x2bcc('0x1d')](_0x5950f5,_0x2bcc('0x5f'),(_0x31b245,_0xe8b76e)=>{this[_0x2bcc('0x1d')](_0xe8b76e,'change:previous',(_0x44e568,_0x1e65fe,_0x315918,_0xed46bd)=>{_0xe8b76e[_0x2bcc('0x5e')]&&(null==_0x315918?(this[_0x2bcc('0x27')](_0xed46bd[_0x2bcc('0x20')]),this[_0x2bcc('0x51')](_0xe8b76e,!0x1)):(this[_0x2bcc('0x27')](_0x315918[_0x2bcc('0x20')]),this[_0x2bcc('0x51')](_0xe8b76e,!0x0)));}),null===_0xe8b76e['previous']?this['_handleSuggestionControllerDelayed'](_0xe8b76e,!0x1):this[_0x2bcc('0x27')](_0xe8b76e[_0x2bcc('0x20')]);}),this[_0x2bcc('0x1d')](_0x5950f5,_0x2bcc('0x38'),(_0x1bfb63,_0x49b632,_0x4f3019)=>{this[_0x2bcc('0xb')](_0x49b632,_0x2bcc('0x5a')),this[_0x2bcc('0x3e')][_0x2bcc('0x59')](_0x49b632);const _0x4b19ea=_0x4f3019?_0x4f3019[_0x2bcc('0x20')]:_0x49b632,_0x24e5e8=this['_suggestionToController'][_0x2bcc('0x1b')](_0x4b19ea);null!==_0x4f3019&&this['_updateController'](_0x4b19ea),null===_0x4f3019&&_0x24e5e8&&this['_destroyController'](_0x49b632);}),this['listenTo'](_0x5950f5,'suggestionChanged',(_0x25925e,_0x448211)=>{this[_0x2bcc('0x27')](_0x448211);}),this[_0x2bcc('0x1d')](_0x2e8b61,_0x2bcc('0x19'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3f5bb3,_0x2bcc('0x47'),(_0x4de49a,{threadId:_0x12be33,isFromAdapter:_0xfd6788})=>{if(_0xfd6788||!_0x5950f5['hasSuggestion'](_0x12be33))return;const _0xd217c6=_0x5950f5[_0x2bcc('0x28')](_0x12be33);this[_0x2bcc('0x18')]['get'](_0xd217c6)[_0x2bcc('0x23')][_0x2bcc('0x43')]();},{'priority':'lowest'});}[_0x2bcc('0x66')](){const _0x4819af=this[_0x2bcc('0x22')]['plugins'][_0x2bcc('0x1b')](_0x2bcc('0x48')),_0x5d3878=this[_0x2bcc('0x22')][_0x2bcc('0x57')][_0x2bcc('0x1b')](_0x2bcc('0x64')),_0x5a448d=Array[_0x2bcc('0x4c')](_0x4819af['activeAnnotations'],_0x57e1c6=>_0x57e1c6[_0x2bcc('0xe')])['filter'](_0x2fb848=>this['_viewToController'][_0x2bcc('0xc')](_0x2fb848)),_0x3489c5=[];for(const _0x4dd7ad of _0x5a448d){const _0xf72a3e=this[_0x2bcc('0x13')]['get'](_0x4dd7ad)[_0x2bcc('0x0')][_0x2bcc('0x2b')]();_0x3489c5['push'](..._0xf72a3e[_0x2bcc('0x3f')]((_0x4dcca1,_0x1f736a)=>[..._0x4dcca1,..._0x1f736a[_0x2bcc('0x4e')]()],[]));}_0x5d3878[_0x2bcc('0x30')]=_0x3489c5;}[_0x2bcc('0x42')](_0x539e1c){const _0x5a7eda=_0x533bbe(_0x539e1c,_0x28ffda),_0x5ad33e=this[_0x2bcc('0x22')][_0x2bcc('0x11')]['get'](_0x2bcc('0x10')),_0x4395ce=_0x3026ab(_0x539e1c,_0x2bcc('0x12'));_0x5a7eda[_0x2bcc('0x3a')][_0x2bcc('0x52')]({'tooltip':_0x4395ce,'label':_0x4395ce,'icon':_0x46d47f}),_0x5a7eda[_0x2bcc('0x3a')][_0x2bcc('0x56')](_0x2bcc('0xa'))['to'](_0x5ad33e,_0x2bcc('0x45')),_0x5a7eda[_0x2bcc('0x3a')]['on'](_0x2bcc('0x17'),()=>{_0x5ad33e[_0x2bcc('0x17')](),this[_0x2bcc('0x22')][_0x2bcc('0x46')][_0x2bcc('0x23')]['focus']();});const _0x22c697=new _0x558a12(),_0xf99efe=[{'type':_0x2bcc('0x50'),'model':{'withText':!0x0,'label':_0x4395ce,'commandName':_0x2bcc('0x10')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x3026ab(_0x539e1c,_0x2bcc('0xd')),'commandName':_0x2bcc('0x1a')}},{'type':_0x2bcc('0x32'),'model':{'withText':!0x0,'label':_0x3026ab(_0x539e1c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':_0x2bcc('0x32'),'model':{'withText':!0x0,'label':_0x3026ab(_0x539e1c,_0x2bcc('0x8')),'commandName':_0x2bcc('0x3')}},{'type':_0x2bcc('0x32'),'model':{'withText':!0x0,'label':_0x3026ab(_0x539e1c,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x2bcc('0x35')}}];for(const _0x13a1bd of _0xf99efe){let _0x193c6a={'type':_0x2bcc('0x1e')};if(_0x13a1bd[_0x2bcc('0x0')]){const _0x3f631d=new _0x4b7169(_0x13a1bd[_0x2bcc('0x0')]),_0x3c237c=this[_0x2bcc('0x22')]['commands'][_0x2bcc('0x1b')](_0x3f631d[_0x2bcc('0x54')]);_0x3f631d[_0x2bcc('0x56')](_0x2bcc('0xa'),_0x2bcc('0x34'))['to'](_0x3c237c,_0x2bcc('0x45'),_0x2bcc('0x34')),_0x193c6a={'type':_0x13a1bd[_0x2bcc('0x4f')],'model':_0x3f631d};}_0x22c697[_0x2bcc('0x62')](_0x193c6a);}_0x520357(_0x5a7eda,_0x22c697);const _0x3870fa=_0xf99efe[_0x2bcc('0x39')](_0xa2da50=>null!=_0xa2da50[_0x2bcc('0x0')])[_0x2bcc('0x5')](_0x518a3d=>this[_0x2bcc('0x22')][_0x2bcc('0x11')][_0x2bcc('0x1b')](_0x518a3d[_0x2bcc('0x0')][_0x2bcc('0x54')])),_0x566cb7=_0x5a7eda[_0x2bcc('0x3a')];return _0x566cb7[_0x2bcc('0x63')][_0x2bcc('0x58')]('isEnabled'),_0x566cb7['arrowView'][_0x2bcc('0x58')](_0x2bcc('0x34')),_0x566cb7[_0x2bcc('0x63')][_0x2bcc('0x56')](_0x2bcc('0x34'))['to'](_0x5ad33e,_0x2bcc('0x34')),_0x566cb7['arrowView'][_0x2bcc('0x56')](_0x2bcc('0x34'))['toMany'](_0x3870fa,_0x2bcc('0x34'),(..._0x946cad)=>_0x946cad['some'](_0x4d41e8=>_0x4d41e8)),_0x5a7eda['on'](_0x2bcc('0x17'),_0x204c76=>{this[_0x2bcc('0x22')][_0x2bcc('0x17')](_0x204c76[_0x2bcc('0x4d')][_0x2bcc('0x54')]),this['editor'][_0x2bcc('0x46')]['view'][_0x2bcc('0x43')]();}),_0x5a7eda;}['_initializeController'](_0x5d1cc3){const _0x309857=this[_0x2bcc('0x22')],_0x9ce595=_0x309857[_0x2bcc('0x6')],_0x2acecd=_0x309857['plugins'][_0x2bcc('0x1b')]('Annotations'),_0x4d62a8=_0x309857[_0x2bcc('0x57')][_0x2bcc('0x1b')](_0x2bcc('0x16')),_0x13e658=_0x309857[_0x2bcc('0x57')][_0x2bcc('0x1b')](_0x2bcc('0x2d')),_0x430eab=_0x309857['plugins'][_0x2bcc('0x1b')](_0xb0b974)['me'],_0x120444=_0x9ce595[_0x2bcc('0x1b')](_0x2bcc('0x10'))[_0x2bcc('0xf')],{CommentsListView:_0x4c007e,CommentThreadInputView:_0x5d775e}=_0x309857[_0x2bcc('0x57')]['get'](_0x2bcc('0x4'));let _0x403605,_0x2fce5c;this[_0x2bcc('0x14')][_0x2bcc('0xc')](_0x5d1cc3['id'])?(_0x2fce5c=this[_0x2bcc('0x14')][_0x2bcc('0x1b')](_0x5d1cc3['id']),_0x403605=_0x2fce5c[_0x2bcc('0x4a')]):(_0x403605=new _0x120444(_0x309857[_0x2bcc('0x3b')],_0x5d1cc3,_0x430eab,{'disableComments':this[_0x2bcc('0x2e')],'editorConfig':_0x9ce595[_0x2bcc('0x1b')](_0x2bcc('0x55')),'maxCommentsWhenCollapsed':_0x9ce595[_0x2bcc('0x1b')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9ce595[_0x2bcc('0x1b')](_0x2bcc('0x25')),'maxCommentCharsWhenCollapsed':_0x9ce595['get'](_0x2bcc('0x49')),'formatDateTime':_0x43cdd8(_0x9ce595[_0x2bcc('0x1b')](_0x2bcc('0x3b'))),'CommentView':_0x9ce595['get'](_0x2bcc('0x61'))[_0x2bcc('0x15')],'CommentsListView':_0x4c007e,'CommentThreadInputView':_0x5d775e}),_0x403605[_0x2bcc('0x41')]['on']('execute',()=>{_0x309857[_0x2bcc('0x46')][_0x2bcc('0x23')][_0x2bcc('0x43')]();}),_0x403605[_0x2bcc('0x9')]['on'](_0x2bcc('0x17'),()=>{_0x309857['editing'][_0x2bcc('0x23')][_0x2bcc('0x43')]();}),_0x2fce5c=_0x2acecd['createAnnotationView'](this[_0x2bcc('0x22')][_0x2bcc('0x3b')],_0x403605),_0x2fce5c[_0x2bcc('0x56')]('isDirty')['to'](_0x403605,_0x2bcc('0x7')),_0x2fce5c[_0x2bcc('0x56')](_0x2bcc('0x37'))['to'](_0x403605),_0x2fce5c[_0x2bcc('0x56')](_0x2bcc('0x4f'))['to'](_0x403605,_0x2bcc('0x4f'),_0x3cd0f6=>_0x2bcc('0x31')+_0x3cd0f6),this[_0x2bcc('0x14')][_0x2bcc('0x52')](_0x5d1cc3['id'],_0x2fce5c));const _0x103e02=_0x4d62a8['createCommentThreadController'](_0x5d1cc3['commentThread'],_0x403605),_0x597af1=new _0x65dece(_0x309857,_0x5d1cc3,_0x403605,_0x103e02),_0x33fdf1=_0x5d1cc3[_0x2bcc('0x2b')]()[_0x2bcc('0x39')](_0x408419=>_0x408419[_0x2bcc('0x5e')]);_0x403605[_0x2bcc('0x29')]=_0x309857[_0x2bcc('0x57')][_0x2bcc('0x1b')](_0x2bcc('0x64'))[_0x2bcc('0x24')]['getDescriptions'](_0x33fdf1),this[_0x2bcc('0x18')][_0x2bcc('0x52')](_0x5d1cc3,_0x597af1),this[_0x2bcc('0x13')]['set'](_0x403605,_0x597af1);const _0x286f84=_0x2acecd[_0x2bcc('0x40')]({'view':_0x2fce5c,'target':()=>{const _0x11fee5=[],_0x582e8b=_0x5d1cc3[_0x2bcc('0x2b')]()[_0x2bcc('0x39')](_0x2d3868=>_0x2d3868[_0x2bcc('0x5e')]);for(const _0x509055 of _0x582e8b)_0x11fee5['push'](..._0x509055[_0x2bcc('0x5c')]());return _0x1da08f(_0x309857[_0x2bcc('0x46')],_0x11fee5);},'type':()=>_0x2bcc('0x31')+_0x597af1['view'][_0x2bcc('0x4f')]});_0x2acecd[_0x2bcc('0x62')](_0x286f84),_0x13e658[_0x2bcc('0x44')](_0x286f84);}[_0x2bcc('0x2c')](_0x39577d){const _0x4224a1=this['editor'][_0x2bcc('0x57')][_0x2bcc('0x1b')]('Annotations'),_0x4eac39=this[_0x2bcc('0x18')]['get'](_0x39577d),_0x4c16a6=_0x4eac39[_0x2bcc('0x23')],_0x460c44=_0x4224a1[_0x2bcc('0x60')](_0x4c16a6);_0x460c44&&_0x4224a1['remove'](_0x460c44),this[_0x2bcc('0x18')][_0x2bcc('0x59')](_0x39577d),this['_viewToController']['delete'](_0x4c16a6),_0x4eac39[_0x2bcc('0x2f')]();}[_0x2bcc('0x27')](_0x1c07e0){if(!_0x1c07e0[_0x2bcc('0x5e')]||!this[_0x2bcc('0x18')][_0x2bcc('0xc')](_0x1c07e0))return;const _0x55bcbe=this[_0x2bcc('0x22')][_0x2bcc('0x57')][_0x2bcc('0x1b')](_0x2bcc('0x64')),_0x46a3bd=this[_0x2bcc('0x18')][_0x2bcc('0x1b')](_0x1c07e0),_0x3c4e17=_0x1c07e0['getAllAdjacentSuggestions']();_0x46a3bd[_0x2bcc('0x23')]['descriptionParts']=_0x55bcbe[_0x2bcc('0x24')][_0x2bcc('0x5d')](_0x3c4e17);}[_0x2bcc('0x2f')](){for(const _0x24de8f of this[_0x2bcc('0x18')][_0x2bcc('0x3c')]())this[_0x2bcc('0x2c')](_0x24de8f);for(const _0x2442d0 of this[_0x2bcc('0x14')][_0x2bcc('0x36')]())_0x2442d0[_0x2bcc('0x4a')][_0x2bcc('0x2f')]();super[_0x2bcc('0x2f')]();}}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @module track-changes/ui/suggestioncontroller
3
+ */
4
+ import type { Editor } from 'ckeditor5/src/core';
5
+ import type Suggestion from '../suggestion';
6
+ import type BaseSuggestionThreadView from './view/basesuggestionthreadview';
7
+ import type { CommentThreadController } from '@ckeditor/ckeditor5-comments';
8
+ declare const SuggestionController_base: {
9
+ new (): import("ckeditor5/src/utils").Observable;
10
+ prototype: import("ckeditor5/src/utils").Observable;
11
+ };
12
+ /**
13
+ * A controller for a suggestion.
14
+ *
15
+ * It takes a suggestion thread view, listens to events fired by that view and based on them performs actions
16
+ * on the provided suggestion model.
17
+ */
18
+ export default class SuggestionController extends SuggestionController_base {
19
+ model: Suggestion;
20
+ view: BaseSuggestionThreadView;
21
+ commentThreadController: CommentThreadController;
22
+ constructor(editor: Editor, model: Suggestion, view: BaseSuggestionThreadView, commentThreadController: CommentThreadController);
23
+ /**
24
+ * Accepts the suggestion that belongs to this controller.
25
+ */
26
+ acceptSuggestion(): void;
27
+ /**
28
+ * Discards the suggestion that belongs to this controller.
29
+ */
30
+ discardSuggestion(): void;
31
+ /**
32
+ * Destroys `SuggestionController` instance.
33
+ */
34
+ destroy(): void;
35
+ }
36
+ export {};