@ckeditor/ckeditor5-track-changes 36.0.0 → 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 +21 -6
  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 _0x4bd4=['data','moveTargetPosition','type','_handleNewSuggestionMarker','dataToMarker','commandName','catch','trackChanges.trackFormatChanges','skipNestingCheck','parent','_getAuthorFromId','has','isOwn','markDeletion','markInsertion','highest','formatInline:','schema','createPositionBefore','execute','showSuggestionHighlights','addComment','discardAllSuggestions','newRange','_updateSuggestionData','external:','containsRangeInObject','_addSuggestionMarker','isCollapsed','removeMarkers','isRemovable','addMarkerName','_suggestions','name','split','addSuggestionData','previous','clear','isInContent','createPositionAt','set','_joinWithAdjacentSuggestions','acceptSelectedSuggestions','collaboration.channelId','refresh','_defaultCallbacks','getChangedMarkers','CommentsRepository','isEqual','addMarker:suggestion:formatBlock','getMultiRangeId','init','markerReady','open','position','commands','substr','isNextTo','addRange','subType','listenTo','_joinSuggestions','deletion:accept','creator','_rangeIsInLocalUserInsertion','deletion:chain','containsPosition','isBlock','author','activeMarkers','addSuggestion','formatInline:accept','values','formatBlock:chain','containsRange','formatBlock:discard','_trackFormatChanges','_commentsRepository','markerNameToElements','isSelectable','ck-suggestion-marker','toViewElement','removed','for','before','root','getCustomProperty','change:data','discardSelectedSuggestions','splitPosition','setTo','upcast','join','oldRange','insertion:chain','howMany','track-changes-adapter-already-set','requires','deleteContent','marker-count','trackChangesCommand','isInsideObject','isAtStart','textProxy','discard','change:activeMarkers','formatBlock','stop','elementToElement','delete','_descriptionFactory','splice','data-suggestion','sort','update:suggestion','markerToHighlight','detach','markers','nodeAfter','$graveyard','isUndo','addClass','then','rootName','_splitMarkerName','removeComment','registerCustomCallback','commentThread','getAttribute','getAllAdjacentSuggestions','markInlineFormat','insertion:','deletion','enableReadOnlyMode','get','unbind','_setSuggestionRange','_saved','getItems','differ','_customCallbacks','track-changes-suggestion-data-mismatch','getDifference','addUser','_createSuggestion','_findSuggestions','unbindElementFromMarkerName','isBefore','PendingActions','multi','editingDowncast','getIntersection','enableCommand','hasComments','length','document','insertion','nodeBefore','high','_addThreadToSuggestion','_cutOutSuggestionMarker','buildSuggestion','attributes','deletion:','ready','discardSuggestion','size','toJSON','_onDiscard','from','suggestion:','accept','insertion:accept','getSuggestions','updateSuggestion','end','getNearestSelectionRange','after','adapter','rethrowUnexpectedError','backward','_adapter','getFirstMarker','next','add','updateMarker','conversion','isAtEnd','notReady','push','start','_isForcedDefaultExecutionBlock','isTouching','_removeSuggestion','isObject','documentSelection','Users','change','ck-suggestion-marker--active','error-saving-suggestion-data-suggestion-discarded','isAfter','createRange','map','value','acceptSuggestion','low','originalSuggestionId','addHighlight','markMultiRangeDeletion','change:_saved','getShiftedBy','_getSuggestionData','containerElement','removeMarker','_checkSuggestionCorrectness','getSuggestionCallback','pluginName','item','lowest','_refreshSuggestionsChain','trackChanges','PENDING_ACTION_SUGGESTION','dataDowncast','model','createSelection','remove','accepted','formatGroupId','writer','selection','plugins','_registerDefaultCallbacks','fromCharCode','_suggestionFactory','insertion:join','track-changes-suggestion-not-found','createElement','suggestionChanged','consumable','insert','$marker','_setSuggestionData','mapper','formatBlock:accept','_model','getFirstRange','formatInline','createPositionAfter','getSuggestion','locale','getWalker','suggestionUnloaded','batch','acceptAllSuggestions','multipleBlocks','editing','fire','options','isIntersectingWithRange','config','getMarkers','editor','insertContent','isMultiRange','addMarker','authoredAt','@external','includes','formatBlock:','consume','markerName','applyOperation','TrackChangesEditing','createdAt','_enabledCommands','define','some','formatInline:join','setSelection','filter','markMultiRangeBlockFormat','getRanges','element','track-changes-user-not-found','isLimit','range','markMultiRangeInsertion','_editor','ck-suggestion-marker-formatBlock','formatBlock:join','markBlockFormat','dataReady','suggestion','createRangeIn','elementStart','_getExternalAuthor','forceDefaultExecution','every','_suggestionState','track-changes-command-not-found','getLastMatchingPosition','suggestionLoaded','ck-suggestion-marker-','removeClass','insertion:discard'];(function(_0x2a99ef,_0x4bd409){const _0x43a457=function(_0x5b6421){while(--_0x5b6421){_0x2a99ef['push'](_0x2a99ef['shift']());}};_0x43a457(++_0x4bd409);}(_0x4bd4,0x117));const _0x43a4=function(_0x2a99ef,_0x4bd409){_0x2a99ef=_0x2a99ef-0x0;let _0x43a457=_0x4bd4[_0x2a99ef];return _0x43a457;};import{Plugin as _0xe028a3,PendingActions as _0x247a17}from'ckeditor5/src/core';import{LiveRange as _0xee9b89}from'ckeditor5/src/engine';import{CKEditorError as _0x3cc697,uid as _0x33d4c9,priorities as _0x525954,EmitterMixin as _0x3c7c40,mix as _0x2293cc,logWarning as _0x1bc5f3}from'ckeditor5/src/utils';import{toWidget as _0x18411d}from'ckeditor5/src/widget';import{Users as _0x4e8ee8,hashObject as _0x2f2d64}from'ckeditor5-collaboration/src/collaboration-core';import _0x948b62 from'./commands/trackchangescommand';import _0x39aa4b from'./commands/acceptsuggestioncommand';import _0x145189 from'./commands/discardsuggestioncommand';import _0x1b767c from'./commands/executeonallsuggestionscommand';import _0x294a26 from'./commands/executeonselectedsuggestionscommand';import _0x34bd29 from'./suggestion';import _0x4f0515 from'./suggestiondescriptionfactory';import _0x3548fa from'./integrations/alignment';import _0x3e539f from'./integrations/basicstyles';import _0x49251a from'./integrations/blockquote';import _0x47c215 from'./integrations/ckbox';import _0x25f34b from'./integrations/codeblock';import _0x35ddd2 from'./integrations/comments';import _0x3a5275 from'./integrations/deletecommand';import _0x57c114 from'./integrations/documentlist';import _0xedb12b from'./integrations/entercommand';import _0x166143 from'./integrations/findandreplace';import _0x4bcd8b from'./integrations/font';import _0x10be2b from'./integrations/heading';import _0x5cb53f from'./integrations/highlight';import _0x358675 from'./integrations/horizontalline';import _0x2d94ee from'./integrations/htmlembed';import _0x2917e3 from'./integrations/image';import _0x3821b7 from'./integrations/imagereplace';import _0x3b6649 from'./integrations/importword';import _0x2c5a11 from'./integrations/indent';import _0x4bfa4f from'./integrations/inputcommand';import _0x3cacc9 from'./integrations/link';import _0x882740 from'./integrations/list';import _0x228030 from'./integrations/listproperties';import _0x15b779 from'./integrations/mediaembed';import _0x1234b3 from'./integrations/mention';import _0x5c1096 from'./integrations/pagebreak';import _0x26f064 from'./integrations/paragraph';import _0x418204 from'./integrations/removeformat';import _0x56b96d from'./integrations/restrictededitingmode';import _0x3007a1 from'./integrations/shiftentercommand';import _0x4738b9 from'./integrations/standardeditingmode';import _0xbadf85 from'./integrations/style';import _0xd2dad6 from'./integrations/table';import _0x2161ac from'./integrations/tablemergesplit';import _0x49e048 from'./integrations/tableheadings';import _0x1846b2 from'./integrations/tableclipboard';import _0x4323f5 from'./integrations/tablecolumnresize';import _0x595031 from'./integrations/title';import _0x3abe7a from'./integrations/undo';import{getTranslation as _0x506731}from'./utils/common-translations';import _0x5cac33 from'./integrations/tablecaption';import _0x5973b0 from'./integrations/documentlistproperties';import _0x1e1d5a from'./integrations/tableproperties';export default class p extends _0xe028a3{static get[_0x43a4('0x7b')](){return[_0x43a4('0x49'),_0x4e8ee8,_0x247a17,_0x3548fa,_0x3e539f,_0x49251a,_0x47c215,_0x25f34b,_0x35ddd2,_0x3a5275,_0x57c114,_0x5973b0,_0xedb12b,_0x166143,_0x4bcd8b,_0x10be2b,_0x5cb53f,_0x358675,_0x2d94ee,_0x2917e3,_0x3821b7,_0x3b6649,_0x2c5a11,_0x4bfa4f,_0x3cacc9,_0x882740,_0x228030,_0x15b779,_0x1234b3,_0x5c1096,_0x26f064,_0x418204,_0x56b96d,_0x3007a1,_0x4738b9,_0xbadf85,_0xd2dad6,_0x2161ac,_0x49e048,_0x5cac33,_0x1846b2,_0x4323f5,_0x1e1d5a,_0x595031,_0x3abe7a];}static get[_0x43a4('0xf2')](){return _0x43a4('0x12a');}constructor(_0x4ac1a6){function _0x365c2b(_0x296b93){return _0x296b93[_0x43a4('0xe4')](_0x4f9a69=>String[_0x43a4('0x102')](_0x4f9a69))[_0x43a4('0x76')]('');}super(_0x4ac1a6),this[_0x43a4('0x42')](_0x43a4('0x5f'),[]),this['on'](_0x43a4('0x83'),(_0x22e4c8,_0x3db767,_0x42e081,_0x17010b)=>{this[_0x43a4('0x10e')][_0x43a4('0xdf')](()=>{for(const _0x502074 of[..._0x17010b,..._0x42e081])this[_0x43a4('0x10e')][_0x43a4('0x8f')][_0x43a4('0x25')](_0x502074)&&_0x4ac1a6[_0x43a4('0x119')]['reconvertMarker'](_0x502074);});}),this[_0x43a4('0x88')]=new _0x4f0515(this[_0x43a4('0x11f')][_0x43a4('0xf9')][_0x43a4('0x2b')],this[_0x43a4('0x11f')]['locale']),this[_0x43a4('0xcf')]=null,this[_0x43a4('0x103')]=new Dt(this[_0x43a4('0x11f')]),this[_0x43a4('0x3a')]=new Map(),this[_0x43a4('0x67')]=_0x4ac1a6['plugins'][_0x43a4('0xa0')](_0x43a4('0x49')),this[_0x43a4('0x12c')]=new Set(),this[_0x43a4('0x10e')]=this[_0x43a4('0x11f')]['model'],this[_0x43a4('0x13')]=new WeakMap(),this[_0x43a4('0xd9')]=!0x1,_0x4ac1a6[_0x43a4('0x11d')][_0x43a4('0x12d')](_0x43a4('0x21'),!0x0),this[_0x43a4('0x66')]=_0x4ac1a6[_0x43a4('0x11d')]['get'](_0x43a4('0x21')),this[_0x365c2b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x365c2b([0x34,0x30,0x34,0x36,0x30,0x32,0x35,0x30]);}[_0x43a4('0x4d')](){const _0x3f592c=this[_0x43a4('0x11f')];_0x3f592c['conversion'][_0x43a4('0x6d')]('editingDowncast')[_0x43a4('0x8d')]({'model':_0x43a4('0xd'),'view':_0x584264=>{const {id:_0x4afea0,type:_0x3242ee}=this[_0x43a4('0x96')](_0x584264['markerName']),_0x31a2a3=[_0x43a4('0x6a'),_0x43a4('0x17')+_0x3242ee];let _0x242d5f=0xbb8;return this[_0x43a4('0x5f')][_0x43a4('0x125')](_0x584264[_0x43a4('0x128')])&&(_0x31a2a3[_0x43a4('0xd7')]('ck-suggestion-marker--active'),_0x242d5f=0xbc2),_0x43a4('0x9e')==_0x3242ee&&(_0x242d5f+=0x5),{'classes':_0x31a2a3,'attributes':{'data-suggestion':_0x4afea0},'priority':_0x242d5f};}}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')](_0x43a4('0xf8'))['add'](_0x408d52=>{_0x408d52['on']('addMarker:suggestion',(_0x119691,_0x4fc976,_0x393317)=>{if(!_0x393317[_0x43a4('0x11b')][_0x43a4('0x2e')])return;const _0x4843a3=_0x4fc976[_0x43a4('0xf3')];if(!_0x4843a3)return;const _0x5d874e=_0x393317[_0x43a4('0x10c')][_0x43a4('0x6b')](_0x4843a3);_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x2b')][_0x43a4('0xdc')](_0x4843a3)&&_0x5d874e&&!_0x5d874e[_0x43a4('0x70')]('widget')&&_0x5d874e['is'](_0x43a4('0xee'))&&_0x18411d(_0x5d874e,_0x393317[_0x43a4('0xfe')]);},{'priority':'high'});}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')]('dataDowncast')[_0x43a4('0x8d')]({'model':_0x43a4('0xd'),'view':(_0x261147,_0x206daf)=>{if(!_0x206daf['options'][_0x43a4('0x2e')])return null;const {type:_0xd1ca10}=this[_0x43a4('0x96')](_0x261147[_0x43a4('0x128')]);return{'classes':[_0x43a4('0x6a'),'ck-suggestion-marker-'+_0xd1ca10],'priority':0xbb8};}});const _0x3afa9b=({showActiveMarkers:_0xfbfad0=!0x0}={})=>(_0xf452,_0x2266a9,_0x771cb6)=>{if(!_0x2266a9[_0x43a4('0xf3')])return;if(_0x2266a9['item']['is']('selection'))return void _0x771cb6[_0x43a4('0x108')]['consume'](_0x2266a9[_0x43a4('0xf3')],_0xf452['name']);const _0x13a204=_0x771cb6[_0x43a4('0x10c')][_0x43a4('0x6b')](_0x2266a9[_0x43a4('0xf3')]);if(!(_0x2266a9[_0x43a4('0xf3')]['is'](_0x43a4('0x3'))&&_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x2b')]['isBlock'](_0x2266a9['item'])&&!_0x13a204['getCustomProperty'](_0x43a4('0xe9'))))return;const {id:_0x397789}=this[_0x43a4('0x96')](_0x2266a9[_0x43a4('0x128')]);_0x771cb6[_0x43a4('0xfe')][_0x43a4('0x93')]([_0x43a4('0x6a'),_0x43a4('0x9')],_0x13a204),_0x771cb6[_0x43a4('0xfe')]['setAttribute'](_0x43a4('0x8a'),_0x397789,_0x13a204),_0x771cb6[_0x43a4('0x10c')]['bindElementToMarker'](_0x13a204,_0x2266a9[_0x43a4('0x128')]),_0xfbfad0&&(this[_0x43a4('0x5f')][_0x43a4('0x125')](_0x2266a9[_0x43a4('0x128')])?_0x771cb6[_0x43a4('0xfe')]['addClass'](_0x43a4('0xe0'),_0x13a204):_0x771cb6[_0x43a4('0xfe')][_0x43a4('0x18')](_0x43a4('0xe0'),_0x13a204));for(const _0x890ae of _0x3f592c[_0x43a4('0xf9')][_0x43a4('0xe')](_0x2266a9['item'])[_0x43a4('0xa4')]())_0x771cb6[_0x43a4('0x108')][_0x43a4('0x127')](_0x890ae,_0xf452['name']);_0x771cb6['consumable'][_0x43a4('0x127')](_0x2266a9[_0x43a4('0xf3')],_0xf452[_0x43a4('0x3b')]);};_0x3f592c['conversion'][_0x43a4('0x6d')](_0x43a4('0xf8'))[_0x43a4('0xd2')](_0x159a89=>{_0x159a89['on'](_0x43a4('0x4b'),(_0x34af95,_0x57dc8a,_0x412f20)=>{_0x412f20[_0x43a4('0x11b')]['showSuggestionHighlights']&&_0x3afa9b({'showActiveMarkers':!0x1})(_0x34af95,_0x57dc8a,_0x412f20);},{'priority':_0x43a4('0x29')});}),_0x3f592c['conversion'][_0x43a4('0x6d')](_0x43a4('0xf8'))['markerToData']({'model':'suggestion','view':(_0x435ee0,_0x432ab5)=>_0x432ab5[_0x43a4('0x11b')][_0x43a4('0x2e')]?null:{'group':'suggestion','name':_0x435ee0[_0x43a4('0x52')](_0x43a4('0xd')['length']+0x1)}}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')](_0x43a4('0x75'))[_0x43a4('0x86')]({'view':{'name':_0x43a4('0xd'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x354711,{writer:_0x4c2ce6})=>{let _0x596797=_0x43a4('0xc4')+_0x354711[_0x43a4('0x9a')]('suggestion-type')+':'+_0x354711[_0x43a4('0x9a')]('id');return _0x354711[_0x43a4('0x9a')]('marker-count')&&(_0x596797+=':'+_0x354711['getAttribute'](_0x43a4('0x7d'))),_0x4c2ce6[_0x43a4('0x106')](_0x43a4('0x10a'),{'data-name':_0x596797});}}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')](_0x43a4('0x75'))[_0x43a4('0x1e')]({'view':_0x43a4('0xd')}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')](_0x43a4('0xb0'))[_0x43a4('0xd2')](_0x36efc9=>{_0x36efc9['on'](_0x43a4('0x4b'),_0x3afa9b(),{'priority':'high'});}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')]('editingDowncast')[_0x43a4('0xd2')](_0x21bf34=>{_0x21bf34['on']('removeMarker:suggestion:formatBlock',(_0x16a06b,_0x298238,_0x43f6c4)=>{const _0x2481e8=_0x43f6c4['mapper'][_0x43a4('0x68')](_0x298238[_0x43a4('0x128')]);if(_0x2481e8)for(const _0x2bd26b of _0x2481e8)_0x2bd26b[_0x43a4('0x70')]('addHighlight')||(_0x43f6c4[_0x43a4('0xfe')][_0x43a4('0x18')]([_0x43a4('0x6a'),_0x43a4('0x9'),'ck-suggestion-marker--active'],_0x2bd26b),_0x43f6c4[_0x43a4('0xfe')]['removeAttribute'](_0x43a4('0x8a'),_0x2bd26b),_0x43f6c4['mapper'][_0x43a4('0xac')](_0x2bd26b,_0x298238[_0x43a4('0x128')]));},{'priority':'high'});}),_0x3f592c[_0x43a4('0xf9')][_0x43a4('0xb5')]['registerPostFixer'](_0x4164f5=>{let _0x54cfd9=!0x1;const _0x2659e2=Array[_0x43a4('0xc3')](_0x3f592c[_0x43a4('0xf9')]['document']['differ'][_0x43a4('0x48')]()),_0xcfb836=new Set();for(const {name:_0x230a1b,data:_0x3ff1ee}of _0x2659e2){const {group:_0x499cdb,type:_0x359ffe,id:_0x17ba87}=this[_0x43a4('0x96')](_0x230a1b);if(_0x43a4('0xd')!==_0x499cdb)continue;const _0x4a912c=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x17ba87);if(null!=_0x3ff1ee[_0x43a4('0x31')]){_0x43a4('0x110')==_0x359ffe&&(_0x54cfd9=_0x54cfd9||_t(_0x3ff1ee[_0x43a4('0x31')],_0x230a1b,_0x4164f5,_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x2b')]));if(_0x3ff1ee[_0x43a4('0x31')][_0x43a4('0x36')]||_0x43a4('0x91')==_0x3ff1ee[_0x43a4('0x31')][_0x43a4('0x6f')][_0x43a4('0x95')]||_0x43a4('0x84')==_0x359ffe&&!$t(_0x3ff1ee[_0x43a4('0x31')])||_0x43a4('0x9e')==_0x359ffe&&!(!Bt(_0x41e383=_0x3ff1ee[_0x43a4('0x31')])&&!function(_0x5e04bb){return _0x5e04bb['start']['parent']==_0x5e04bb[_0x43a4('0xc9')][_0x43a4('0xb7')]&&_0x5e04bb[_0x43a4('0xd8')][_0x43a4('0xd5')];}(_0x41e383)))_0x4164f5[_0x43a4('0xef')](_0x230a1b),_0x54cfd9=!0x0;else{if(!_0x4a912c||!_0x4a912c[_0x43a4('0x40')])continue;_0xcfb836[_0x43a4('0xd2')](_0x4a912c);}}}var _0x41e383;return _0xcfb836[_0x43a4('0xc0')]>0x0&&(_0x54cfd9=!!this[_0x43a4('0x43')](_0xcfb836)||_0x54cfd9),_0x54cfd9;}),_0x3f592c[_0x43a4('0xf9')][_0x43a4('0xb5')]['registerPostFixer'](_0x236ad0=>{let _0x5b142f=!0x1;for(const _0x27c179 of _0x3f592c[_0x43a4('0xf9')][_0x43a4('0xb5')][_0x43a4('0xa5')]['getChanges']()){if(_0x43a4('0x109')!=_0x27c179[_0x43a4('0x1c')])continue;const _0x4470ff=_0x27c179[_0x43a4('0x50')]['getShiftedBy'](_0x27c179[_0x43a4('0xb4')]);if(_0x4470ff[_0x43a4('0xd5')])for(const _0x39c36b of this[_0x43a4('0x3a')]['values']()){if(_0x39c36b[_0x43a4('0x121')]||!_0x39c36b[_0x43a4('0x40')])continue;if('formatBlock'!=_0x39c36b[_0x43a4('0x1c')])continue;const _0x12e555=_0x39c36b[_0x43a4('0x10f')]();if(_0x12e555[_0x43a4('0xd8')][_0x43a4('0x23')]!=_0x12e555[_0x43a4('0xc9')][_0x43a4('0x23')]&&_0x12e555[_0x43a4('0xc9')]['isEqual'](_0x27c179[_0x43a4('0x50')])){const _0x26ea46=_0x3f592c[_0x43a4('0xf9')]['createRange'](_0x12e555['start'],_0x4470ff);_0x236ad0[_0x43a4('0xd3')](_0x39c36b['getFirstMarker'](),{'range':_0x26ea46}),_0x5b142f=!0x0;}}}return _0x5b142f;}),_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x8f')]['on'](_0x43a4('0x8c'),(_0xb04c6b,_0x29aecb,_0x402dd5)=>{if(null==_0x402dd5){const {id:_0x31ce56}=this['_splitMarkerName'](_0x29aecb[_0x43a4('0x3b')]),_0x3e51e6=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x31ce56);_0x3e51e6&&_0x3e51e6[_0x43a4('0x39')](_0x29aecb[_0x43a4('0x3b')]);}}),_0x3f592c['model'][_0x43a4('0xb5')]['on'](_0x43a4('0x71'),()=>{const _0xdeb84f=Array[_0x43a4('0xc3')](_0x3f592c[_0x43a4('0xf9')][_0x43a4('0xb5')][_0x43a4('0xa5')][_0x43a4('0x48')]())[_0x43a4('0x0')](_0x5e196d=>_0x43a4('0xd')===this[_0x43a4('0x96')](_0x5e196d[_0x43a4('0x3b')])['group']);if(0x0===_0xdeb84f['length'])return;_0xdeb84f[_0x43a4('0x8b')]((_0x21358a,_0x36b4b6)=>{const _0x984b04=_0x21358a[_0x43a4('0x1a')][_0x43a4('0x77')],_0x1d9f55=_0x36b4b6[_0x43a4('0x1a')]['oldRange'];return null===_0x984b04&&null===_0x1d9f55?0x0:null===_0x984b04&&null!==_0x1d9f55?-0x1:null!==_0x984b04&&null===_0x1d9f55?0x1:_0x984b04[_0x43a4('0xd8')]['isBefore'](_0x1d9f55[_0x43a4('0xd8')])?-0x1:0x1;});const _0x51adc3=new Set(),_0x30efc1=new Set();for(const {name:_0x3a1d55,data:_0x1c454d}of _0xdeb84f){const {id:_0x1e069a}=this[_0x43a4('0x96')](_0x3a1d55);if(null===_0x1c454d[_0x43a4('0x77')]){const _0x2f9e95=this['_handleNewSuggestionMarker'](_0x3a1d55);_0x30efc1[_0x43a4('0xd2')](_0x2f9e95);}else{const _0xe4b66a=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x1e069a);null!==_0x1c454d['newRange']||_0xe4b66a[_0x43a4('0x40')]?(_0x51adc3[_0x43a4('0xd2')](_0xe4b66a['head']),_0x30efc1['add'](_0xe4b66a)):this[_0x43a4('0xdb')](_0xe4b66a);}}_0x30efc1[_0x43a4('0xc0')]>0x0&&this[_0x43a4('0xf5')](_0x30efc1);for(const _0x34cc99 of _0x51adc3)this['fire'](_0x43a4('0x107'),_0x34cc99);}),_0x3f592c[_0x43a4('0xf9')]['on'](_0x43a4('0x129'),(_0x27e06d,_0x1a0135)=>{const _0x515f80=_0x1a0135[0x0];if(!this['_suggestions'][_0x43a4('0xc0')])return;if(!_0x515f80['isDocumentOperation'])return;if(_0x515f80[_0x43a4('0x116')][_0x43a4('0x92')]||!_0x515f80[_0x43a4('0x116')]['isLocal'])return;let _0x1f4124,_0x1bd210;switch(_0x515f80[_0x43a4('0x1c')]){case _0x43a4('0x109'):_0x1f4124=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x41')](_0x515f80['position']),_0x1bd210=_0x1f4124['getShiftedBy'](_0x515f80[_0x43a4('0x79')]);break;case _0x43a4('0x3c'):_0x1f4124=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x41')](_0x515f80[_0x43a4('0x73')]),_0x1bd210=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x41')](_0x515f80[_0x43a4('0x1b')]);break;case'move':_0x1f4124=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x41')](_0x515f80['targetPosition']),_0x1bd210=_0x1f4124[_0x43a4('0xec')](_0x515f80['howMany']);break;default:return;}const _0x5aa5af=_0x3f592c['model'][_0x43a4('0xe3')](_0x1f4124,_0x1bd210);_0x3f592c['model'][_0x43a4('0xdf')](()=>{for(const {suggestion:_0x576ad5,meta:_0x249d21}of this[_0x43a4('0xab')](_0x5aa5af)){if(_0x576ad5[_0x43a4('0x121')])continue;if('formatInline'==_0x576ad5['type'])continue;const _0x532c8b=_0x576ad5['data']&&_0x576ad5[_0x43a4('0x1a')]['multipleBlocks'];(_0x43a4('0x84')!=_0x576ad5['type']||'split'==_0x515f80[_0x43a4('0x1c')]&&!_0x532c8b)&&(_0x249d21[_0x43a4('0x34')]||_0x43a4('0xb6')==_0x576ad5[_0x43a4('0x1c')]&&_0x249d21[_0x43a4('0x26')]||_0x576ad5[_0x43a4('0x10f')]()[_0x43a4('0x64')](_0x5aa5af)&&this['_breakSuggestionMarker'](_0x576ad5,_0x1f4124,_0x1bd210));}});},{'priority':_0x43a4('0xf4')}),_0x3f592c[_0x43a4('0xf9')]['on'](_0x43a4('0x7c'),(_0x4445f6,_0x23e138)=>{const _0xb2280=_0x23e138[0x0],_0x598ed5=_0x23e138[0x1];if(_0x598ed5&&_0x598ed5[_0x43a4('0x11')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x43a4('0x7e')][_0x43a4('0xe5')])return;if(_0xb2280['isCollapsed'])return;const _0x4416ce=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x2b')],{start:_0x1a325d,end:_0x5e7023}=_0xb2280[_0x43a4('0x10f')](),_0x4867e7=_0x1a325d[_0x43a4('0x90')]&&_0x4416ce[_0x43a4('0x5')](_0x1a325d[_0x43a4('0x90')])?null:_0x4416ce['getNearestSelectionRange'](_0x1a325d,'forward'),_0x2e1d60=_0x5e7023['nodeBefore']&&_0x4416ce[_0x43a4('0x5')](_0x5e7023[_0x43a4('0xb7')])?null:_0x4416ce['getNearestSelectionRange'](_0x5e7023,_0x43a4('0xce')),_0x41ea04=_0x3f592c['model'][_0x43a4('0xe3')](_0x4867e7?_0x4867e7[_0x43a4('0xd8')]:_0x1a325d,_0x2e1d60?_0x2e1d60[_0x43a4('0xc9')]:_0x5e7023);_0x3f592c['model'][_0x43a4('0xdf')](_0x5e0377=>{this[_0x43a4('0x27')](_0x41ea04);const _0x249fab=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x2b')][_0x43a4('0xca')](_0x41ea04[_0x43a4('0xd8')]);_0xb2280['is'](_0x43a4('0xdd'))?_0x5e0377['setSelection'](_0x249fab):_0xb2280[_0x43a4('0x74')](_0x249fab);}),_0x4445f6[_0x43a4('0x85')]();},{'priority':_0x525954['normal']+0xa}),_0x3f592c[_0x43a4('0xf9')]['on'](_0x43a4('0x120'),(_0x342458,_0x27d0c9)=>{const _0x32947c=_0x27d0c9[_0x27d0c9[_0x43a4('0xb4')]-0x1];_0x32947c&&_0x32947c[_0x43a4('0x11')]||this[_0x43a4('0xd9')]||this[_0x43a4('0x7e')][_0x43a4('0xe5')]&&(_0x3f592c[_0x43a4('0xf9')]['change'](()=>{let _0x16343b=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x120')](_0x27d0c9[0x0],_0x27d0c9[0x1],_0x27d0c9[0x2],_0x27d0c9[0x3],{'forceDefaultExecution':!0x0});if(!_0x16343b)return;_0x342458['return']=_0x16343b['clone']();const _0x2cfa41=_0x16343b[_0x43a4('0xc9')]['nodeBefore'],_0x5106db=_0x3f592c[_0x43a4('0xf9')]['schema'];_0x2cfa41&&_0x5106db[_0x43a4('0x5d')](_0x2cfa41)&&!_0x5106db[_0x43a4('0xdc')](_0x2cfa41)&&(_0x16343b=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0xe3')](_0x16343b[_0x43a4('0xd8')],_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x41')](_0x2cfa41,_0x43a4('0xc9')))),this['markInsertion'](_0x16343b);}),_0x342458[_0x43a4('0x85')]());},{'priority':'high'}),this[_0x43a4('0x7e')]=new _0x948b62(_0x3f592c,this[_0x43a4('0x12c')]),this[_0x43a4('0x11f')][_0x43a4('0x51')][_0x43a4('0xd2')](_0x43a4('0xf6'),this[_0x43a4('0x7e')]),this[_0x43a4('0xb2')](_0x43a4('0xf6'));const _0x149c76=new _0x39aa4b(_0x3f592c,this[_0x43a4('0x3a')]);_0x3f592c['commands']['add'](_0x43a4('0xe6'),_0x149c76),this['enableCommand']('acceptSuggestion');const _0x63b5fb=new _0x145189(_0x3f592c,this['_suggestions']);_0x3f592c[_0x43a4('0x51')][_0x43a4('0xd2')](_0x43a4('0xbf'),_0x63b5fb),this[_0x43a4('0xb2')](_0x43a4('0xbf')),_0x3f592c[_0x43a4('0x51')][_0x43a4('0xd2')](_0x43a4('0x117'),new _0x1b767c(_0x3f592c,_0x149c76,this[_0x43a4('0x3a')])),this[_0x43a4('0xb2')](_0x43a4('0x117')),_0x3f592c['commands'][_0x43a4('0xd2')](_0x43a4('0x30'),new _0x1b767c(_0x3f592c,_0x63b5fb,this['_suggestions'])),this['enableCommand'](_0x43a4('0x30')),_0x3f592c[_0x43a4('0x51')][_0x43a4('0xd2')](_0x43a4('0x44'),new _0x294a26(_0x3f592c,_0x149c76,this[_0x43a4('0x3a')])),this[_0x43a4('0xb2')]('acceptSelectedSuggestions'),_0x3f592c[_0x43a4('0x51')][_0x43a4('0xd2')](_0x43a4('0x72'),new _0x294a26(_0x3f592c,_0x63b5fb,this[_0x43a4('0x3a')])),this[_0x43a4('0xb2')](_0x43a4('0x72'));const _0x3501d1=_0x3f592c[_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0x49'));this['listenTo'](_0x3501d1,_0x43a4('0x2f'),(_0x365908,{threadId:_0x2c30f5})=>{const _0x5afe24=this['_suggestions'][_0x43a4('0xa0')](_0x2c30f5);_0x5afe24&&_0x5afe24[_0x43a4('0x99')]&&0x1===_0x5afe24[_0x43a4('0x99')][_0x43a4('0xb4')]&&this[_0x43a4('0x32')](_0x2c30f5,{'hasComments':!0x0});},{'priority':_0x43a4('0xe7')}),this['listenTo'](_0x3501d1,_0x43a4('0x97'),(_0x4f2f0b,{threadId:_0x38d9a7})=>{const _0x55cbde=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x38d9a7);_0x55cbde&&_0x55cbde[_0x43a4('0x99')]&&!_0x55cbde['commentThread'][_0x43a4('0xb4')]&&this[_0x43a4('0x32')](_0x38d9a7,{'hasComments':!0x1});},{'priority':_0x43a4('0xe7')});}set[_0x43a4('0xcc')](_0x4c80dd){if(this[_0x43a4('0xcf')])throw new _0x3cc697(_0x43a4('0x7a'),this);this[_0x43a4('0xcf')]=_0x4c80dd;}get['adapter'](){return this['_adapter'];}[_0x43a4('0xc7')]({skipNotAttached:_0x4e7261=!0x1,toJSON:_0x128439=!0x1}={}){const _0x135e62=[];for(const _0x17dba5 of this['_suggestions'][_0x43a4('0x62')]())_0x4e7261&&!_0x17dba5[_0x43a4('0x40')]||_0x135e62[_0x43a4('0xd7')](_0x17dba5);return _0x128439?_0x135e62[_0x43a4('0xe4')](_0x37a314=>_0x37a314[_0x43a4('0xc1')]()):_0x135e62;}['getSuggestion'](_0x3cedcc){const _0x422423=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x3cedcc);if(!_0x422423)throw new _0x3cc697(_0x43a4('0x105'),this);return _0x422423;}['hasSuggestion'](_0x22b8f1){return this[_0x43a4('0x3a')][_0x43a4('0x25')](_0x22b8f1);}['addSuggestionData'](_0x3606d0){const {authorId:_0x5705ef,id:_0x484c99,attributes:_0x18563e}=_0x3606d0,[_0x49eeac,_0x5aaac9]=_0x3606d0[_0x43a4('0x1c')][_0x43a4('0x3c')](':'),_0x5cadc0=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x484c99)||this[_0x43a4('0xaa')](_0x49eeac,_0x5aaac9,_0x484c99,_0x5705ef,_0x18563e);if(this[_0x43a4('0xb9')](_0x5cadc0),this[_0x43a4('0xf0')](_0x5cadc0,_0x49eeac,_0x5aaac9||null,_0x5705ef),_0x5cadc0['createdAt']=_0x3606d0[_0x43a4('0x12b')],_0x18563e&&_0x18563e[_0x43a4('0x124')]){const {authorName:_0x4126c5,createdAt:_0x11146a}=_0x18563e[_0x43a4('0x124')],_0x5e81ae=this[_0x43a4('0x10')](_0x4126c5);_0x5cadc0['authoredAt']=_0x11146a,_0x5cadc0['author']=_0x5e81ae,_0x5cadc0['isExternal']=!0x0;}else _0x5cadc0[_0x43a4('0x123')]=_0x3606d0[_0x43a4('0x12b')];switch(_0x3606d0[_0x43a4('0x1a')]&&(_0x5cadc0[_0x43a4('0x1a')]=_0x3606d0[_0x43a4('0x1a')]),_0x3606d0[_0x43a4('0xbc')]&&(_0x5cadc0[_0x43a4('0xbc')]=_0x3606d0['attributes']),this[_0x43a4('0xcf')]&&this[_0x43a4('0xcf')]['addSuggestion']||(_0x5cadc0[_0x43a4('0xa3')]=!0x0),this[_0x43a4('0x13')][_0x43a4('0xa0')](_0x5cadc0)){case _0x43a4('0xd6'):this[_0x43a4('0x13')][_0x43a4('0x42')](_0x5cadc0,_0x43a4('0xc'));break;case _0x43a4('0x4e'):_0x5cadc0[_0x43a4('0x40')]?(this[_0x43a4('0x13')][_0x43a4('0x42')](_0x5cadc0,_0x43a4('0xbe')),this[_0x43a4('0x11a')](_0x43a4('0x16'),_0x5cadc0)):this['_suggestionState'][_0x43a4('0x42')](_0x5cadc0,_0x43a4('0x6c'));}return _0x5cadc0;}[_0x43a4('0xe6')](_0x488dc1){this[_0x43a4('0x11')](()=>{this[_0x43a4('0x11f')][_0x43a4('0xf9')][_0x43a4('0xdf')](()=>{for(const _0xb65de0 of _0x488dc1[_0x43a4('0x9b')]())_0xb65de0[_0x43a4('0xc5')]();});});}['discardSuggestion'](_0x4c8d54){this[_0x43a4('0x11')](()=>{this[_0x43a4('0x11f')][_0x43a4('0xf9')]['change'](()=>{for(const _0x2bcc4c of _0x4c8d54[_0x43a4('0x9b')]())_0x2bcc4c[_0x43a4('0x82')]();});});}[_0x43a4('0xb2')](_0x1417b3,_0x51b0fb){const _0x1ca9b9=this[_0x43a4('0x11f')][_0x43a4('0x51')][_0x43a4('0xa0')](_0x1417b3);if(!_0x1ca9b9)throw new _0x3cc697(_0x43a4('0x14'),this,{'commandName':_0x1417b3});this['_enabledCommands']['add'](_0x1ca9b9),_0x51b0fb&&_0x1ca9b9['on']('execute',(_0xacd85f,_0x5097b1)=>{this[_0x43a4('0x7e')][_0x43a4('0xe5')]&&(this[_0x43a4('0xd9')]||_0x5097b1[_0x43a4('0xb4')]>0x0&&_0x5097b1[_0x5097b1[_0x43a4('0xb4')]-0x1]&&_0x5097b1[_0x5097b1[_0x43a4('0xb4')]-0x1][_0x43a4('0x11')]||(_0x51b0fb((..._0x2c06e5)=>_0x1ca9b9['execute'](..._0x2c06e5,{'forceDefaultExecution':!0x0}),..._0x5097b1),_0xacd85f[_0x43a4('0x85')]()));},{'priority':_0x43a4('0xb8')});}[_0x43a4('0x11')](_0x4193cb){let _0xfe46da,_0x365aa8;const _0x3ee642=this['_isForcedDefaultExecutionBlock'];this[_0x43a4('0xd9')]=!0x0;try{_0xfe46da=_0x4193cb();}catch(_0xb05fdc){_0x365aa8=_0xb05fdc;}return _0x3ee642||(this[_0x43a4('0xd9')]=!0x1),_0x365aa8&&_0x3cc697[_0x43a4('0xcd')](_0x365aa8,this),_0xfe46da;}[_0x43a4('0x28')](_0x2f87aa,_0x334799=null,_0x382830={}){if(_0x2f87aa[_0x43a4('0x36')])return null;const _0x3f6e80=this[_0x43a4('0x11f')]['plugins']['get'](_0x43a4('0xde'))['me'];for(const {suggestion:_0x483057,meta:_0x26b684}of this[_0x43a4('0xab')](_0x2f87aa,_0x43a4('0xb6')))if(_0x26b684[_0x43a4('0x26')]){if(!_0x26b684[_0x43a4('0x53')])return _0x483057;if(_0x334799==_0x483057[_0x43a4('0x55')]){const _0x2d38ca=_0x483057['getFirstRange']();return _0x2d38ca['start'][_0x43a4('0x4a')](_0x2f87aa[_0x43a4('0xc9')])?this[_0x43a4('0xa2')](_0x483057,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x2f87aa[_0x43a4('0xd8')],_0x2d38ca['end'])):this[_0x43a4('0xa2')](_0x483057,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x2d38ca[_0x43a4('0xd8')],_0x2f87aa['end'])),_0x483057;}}const _0x5c81dd=_0x33d4c9(),_0x330ea6=_0x3f6e80['id'],_0x457f14=_0x334799?_0x43a4('0x9d')+_0x334799:_0x43a4('0xb6'),_0x1d793a=this[_0x43a4('0x10b')]({'id':_0x5c81dd,'type':_0x457f14,'createdAt':new Date(),'authorId':_0x330ea6,'attributes':_0x382830});return this[_0x43a4('0x35')](_0x457f14,_0x5c81dd,_0x330ea6,_0x2f87aa),_0x1d793a;}[_0x43a4('0x7')](_0x41ac1e,_0x33e360=_0x43a4('0xaf'),_0x594fdc={}){const _0x2a523f=this[_0x43a4('0x11f')][_0x43a4('0x100')][_0x43a4('0xa0')]('Users')['me'],_0x3bc5b5=this['_suggestionFactory']['getSuggestionCallback'](_0x43a4('0xb6'),_0x33e360,_0x43a4('0x76'));for(const _0x4142b6 of this['getSuggestions']())if(_0x4142b6[_0x43a4('0x5e')]['id']==_0x2a523f['id']&&'insertion'==_0x4142b6[_0x43a4('0x1c')]&&_0x4142b6[_0x43a4('0x55')]==_0x33e360&&(_0x3bc5b5(_0x4142b6[_0x43a4('0x2')](),_0x41ac1e)||_0x3bc5b5(_0x41ac1e,_0x4142b6[_0x43a4('0x2')]()))){for(const _0x375b8c of _0x41ac1e)_0x4142b6[_0x43a4('0x54')](_0x375b8c);return _0x4142b6;}for(const _0x5369e9 of _0x41ac1e)for(const {suggestion:_0x2c44c9,meta:_0x3fb813}of this[_0x43a4('0xab')](_0x5369e9,_0x43a4('0xb6'))){if(!_0x3fb813[_0x43a4('0x26')])continue;let _0x104e08=!0x0;for(const _0x1002f2 of _0x2c44c9[_0x43a4('0x2')]())for(const _0xbaef87 of _0x41ac1e)if(!_0x1002f2[_0x43a4('0x64')](_0xbaef87)){_0x104e08=!0x1;break;}if(_0x104e08)return _0x2c44c9;}const _0x4f9aa4=_0x33d4c9(),_0x13e6f8=_0x2a523f['id'],_0x39cfdc=_0x43a4('0x9d')+_0x33e360,_0x366c05=this[_0x43a4('0x10b')]({'id':_0x4f9aa4,'type':_0x39cfdc,'createdAt':new Date(),'authorId':_0x13e6f8,'attributes':_0x594fdc});for(const _0x560274 of _0x41ac1e)this['_addSuggestionMarker'](_0x39cfdc,_0x4f9aa4,_0x13e6f8,_0x560274,_0x34bd29[_0x43a4('0x4c')]());return _0x366c05;}[_0x43a4('0x9c')](_0x2c10d9,_0x3cb051,_0x120dae=null,_0x32ef86={}){if(_0x120dae=_0x120dae||Mt(_0x3cb051),_0x2c10d9['isCollapsed'])return;if(!0x1===this[_0x43a4('0x66')]){const _0x298634=this[_0x43a4('0x103')][_0x43a4('0xf1')]('formatInline',_0x120dae,_0x43a4('0xc5'));return void this[_0x43a4('0x11')](()=>_0x298634([_0x2c10d9],_0x3cb051,_0x32ef86));}const _0x33637f=this['editor'][_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0xde'))['me'],_0x4f8465=[];for(const {suggestion:_0x24b815,meta:_0xaec5d6}of this[_0x43a4('0xab')](_0x2c10d9,_0x43a4('0xb6')))_0xaec5d6[_0x43a4('0x26')]&&!_0xaec5d6['isInsideObject']&&_0x4f8465[_0x43a4('0xd7')](..._0x24b815[_0x43a4('0x2')]());const _0x56f778=function(_0xe4b752,_0x4b386c){const _0x29e5be=[];for(const _0x1f8b2b of _0x4b386c){const _0x5de2e8=_0xe4b752[_0x43a4('0xb1')](_0x1f8b2b);_0x5de2e8&&_0x29e5be['push'](_0x5de2e8);}return _0x29e5be;}(_0x2c10d9,_0x4f8465),_0x268638=function(_0x3f2996,_0x5c5e5f){const _0x4d79f7=[_0x3f2996];for(const _0xb02f63 of _0x5c5e5f){let _0x37dd4e=0x0;for(;_0x37dd4e<_0x4d79f7[_0x43a4('0xb4')];){const _0x582e7c=_0x4d79f7[_0x37dd4e]['getDifference'](_0xb02f63);_0x4d79f7[_0x43a4('0x89')](_0x37dd4e,0x1,..._0x582e7c),_0x37dd4e+=_0x582e7c['length'];}}return _0x4d79f7;}(_0x2c10d9,_0x4f8465);_0x56f778['length']&&this[_0x43a4('0x10e')][_0x43a4('0xdf')](()=>{for(const _0x400dc4 of _0x56f778){const _0x433a38=this[_0x43a4('0x103')][_0x43a4('0xf1')]('formatInline',_0x120dae,_0x43a4('0xc5'));this[_0x43a4('0x11')](()=>_0x433a38([_0x400dc4],_0x3cb051,_0x32ef86));}});for(const _0x532575 of _0x268638){let _0x2bcb97=null,_0x52aaea=_0x532575[_0x43a4('0xd8')],_0x3720d2=_0x532575['end'];for(const {suggestion:_0x188dae,meta:_0x5fed4d}of this[_0x43a4('0xab')](_0x532575,_0x43a4('0x110'))){if(!_0x5fed4d[_0x43a4('0x26')])continue;if(_0x188dae[_0x43a4('0x55')]!=_0x120dae)continue;const _0x166818=_0x188dae['getFirstRange']();if(_0x166818[_0x43a4('0x64')](_0x532575,!0x0))return;_0x52aaea=_0x52aaea[_0x43a4('0xad')](_0x166818['start'])?_0x52aaea:_0x166818[_0x43a4('0xd8')],_0x3720d2=_0x3720d2[_0x43a4('0xe2')](_0x166818[_0x43a4('0xc9')])?_0x3720d2:_0x166818[_0x43a4('0xc9')],_0x2bcb97?_0x166818[_0x43a4('0xd8')][_0x43a4('0xad')](_0x2bcb97[_0x43a4('0x10f')]()[_0x43a4('0xd8')])?(_0x2bcb97[_0x43a4('0x37')](),_0x2bcb97=_0x188dae):_0x188dae[_0x43a4('0x37')]():_0x2bcb97=_0x188dae;}const _0x30f5a6=this[_0x43a4('0x10e')]['createRange'](_0x52aaea,_0x3720d2);if(_0x2bcb97)this[_0x43a4('0xa2')](_0x2bcb97,_0x30f5a6);else{const _0x1e95c3=_0x33d4c9(),_0x19bfe2=_0x33637f['id'];this[_0x43a4('0x10b')]({'id':_0x1e95c3,'type':_0x43a4('0x2a')+_0x120dae,'data':_0x3cb051,'createdAt':new Date(),'authorId':_0x19bfe2,'attributes':_0x32ef86}),this[_0x43a4('0x35')](_0x43a4('0x2a')+_0x120dae,_0x1e95c3,_0x19bfe2,_0x30f5a6);}}}[_0x43a4('0xb')](_0x409ef7,_0x2ae706,_0x2aa0e1=[],_0x4eef73=null,_0x2bd04b={}){_0x2ae706[_0x43a4('0xfd')]||(_0x2ae706['formatGroupId']=_0x2ae706[_0x43a4('0x1f')]),_0x2ae706[_0x43a4('0x118')]=_0x409ef7['is'](_0x43a4('0x6')),_0x4eef73=_0x4eef73||Mt(_0x2ae706);const _0x538b39=_0x2aa0e1[_0x43a4('0xe4')](_0x1dbe26=>Nt(_0x1dbe26,this[_0x43a4('0x10e')])),_0x53a325=_0x409ef7['is'](_0x43a4('0x6'))?_0x409ef7:Nt(_0x409ef7,this[_0x43a4('0x10e')]);if(!0x1===this[_0x43a4('0x66')]){const _0x423d86=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x84'),_0x4eef73,_0x43a4('0xc5'));return void this['forceDefaultExecution'](()=>_0x423d86([_0x53a325],_0x2ae706,_0x2bd04b));}_0x538b39['push'](_0x53a325);let _0x1bbfc7=!0x0;for(const _0x3ca935 of _0x538b39)if(!this['_rangeIsInLocalUserInsertion'](_0x3ca935)){_0x1bbfc7=!0x1;break;}if(_0x1bbfc7){const _0x37fd3f=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x84'),_0x4eef73,_0x43a4('0xc5'));return void this['forceDefaultExecution'](()=>_0x37fd3f([_0x53a325],_0x2ae706,_0x2bd04b));}let _0xfb90e8=null,_0x2cb4f4=_0x53a325[_0x43a4('0xd8')],_0x65119a=_0x53a325[_0x43a4('0xc9')];for(const {suggestion:_0x14a26e,meta:_0x1b6898}of this['_findSuggestions'](_0x53a325,_0x43a4('0x84'))){if(!_0x1b6898[_0x43a4('0x26')]||_0x1b6898[_0x43a4('0x53')]||_0x1b6898[_0x43a4('0x34')]||_0x1b6898[_0x43a4('0x7f')])continue;if(_0x14a26e[_0x43a4('0x1a')][_0x43a4('0xfd')]!=_0x2ae706[_0x43a4('0xfd')])continue;const _0x3c9613=_0x14a26e[_0x43a4('0x10f')]();if(_0x14a26e[_0x43a4('0x55')]==_0x4eef73){if(_0x3c9613[_0x43a4('0x64')](_0x53a325,!0x0))return;_0x2cb4f4=_0x2cb4f4[_0x43a4('0xad')](_0x3c9613[_0x43a4('0xd8')])?_0x2cb4f4:_0x3c9613['start'],_0x65119a=_0x65119a['isAfter'](_0x3c9613['end'])?_0x65119a:_0x3c9613[_0x43a4('0xc9')],_0xfb90e8?_0x3c9613[_0x43a4('0xd8')][_0x43a4('0xad')](_0xfb90e8['getFirstRange']()[_0x43a4('0xd8')])?(_0xfb90e8[_0x43a4('0x37')](),_0xfb90e8=_0x14a26e):_0x14a26e[_0x43a4('0x37')]():_0xfb90e8=_0x14a26e;}else{const _0x15b72c=_0x53a325[_0x43a4('0xb1')](_0x3c9613);this[_0x43a4('0xba')](_0x14a26e,_0x15b72c);}}const _0x167b1f=this[_0x43a4('0x11f')]['plugins'][_0x43a4('0xa0')](_0x43a4('0xde'))['me'],_0x393c31=_0x33d4c9(),_0x4486c8=_0x167b1f['id'];_0xfb90e8?this[_0x43a4('0xa2')](_0xfb90e8,this[_0x43a4('0x10e')]['createRange'](_0x2cb4f4,_0x65119a)):(this[_0x43a4('0x10b')]({'id':_0x393c31,'type':_0x43a4('0x126')+_0x4eef73,'data':_0x2ae706,'createdAt':new Date(),'authorId':_0x4486c8,'attributes':_0x2bd04b}),this[_0x43a4('0x35')]('formatBlock:'+_0x4eef73,_0x393c31,_0x4486c8,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x2cb4f4,_0x65119a)));}[_0x43a4('0x1')](_0xde7b37,_0x38a369,_0x3206c7=[],_0x480c31=null,_0x5d94fd={}){_0x38a369[_0x43a4('0xfd')]||(_0x38a369[_0x43a4('0xfd')]=_0x38a369[_0x43a4('0x1f')]);const _0xe53853=_0xde7b37[0x0];_0x38a369[_0x43a4('0x118')]=_0xe53853['is'](_0x43a4('0x6')),_0x480c31=_0x480c31||Mt(_0x38a369);const _0x2d5d5a=_0x3206c7[_0x43a4('0xe4')](_0x345f25=>Nt(_0x345f25,this[_0x43a4('0x10e')])),_0x27d439=_0xe53853['is'](_0x43a4('0x6'))?_0xde7b37:_0xde7b37[_0x43a4('0xe4')](_0x7f0fd7=>Nt(_0x7f0fd7,this['_model']));if(!0x1===this[_0x43a4('0x66')]){const _0xc5e46e=this['_suggestionFactory'][_0x43a4('0xf1')](_0x43a4('0x84'),_0x480c31,_0x43a4('0xc5'));return void this[_0x43a4('0x11')](()=>_0xc5e46e(_0x27d439,_0x38a369,_0x5d94fd));}_0x2d5d5a[_0x43a4('0xd7')](..._0x27d439);let _0x376d35=!0x0;for(const _0xea4b85 of _0x2d5d5a)if(!this[_0x43a4('0x5a')](_0xea4b85)){_0x376d35=!0x1;break;}if(_0x376d35){const _0x17b512=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x84'),_0x480c31,_0x43a4('0xc5'));return void this[_0x43a4('0x11')](()=>_0x17b512(_0x27d439,_0x38a369,_0x5d94fd));}const _0x18ce3c=this['editor'][_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0xde'))['me'];for(const _0x36d45d of this[_0x43a4('0xc7')]()){if(_0x36d45d[_0x43a4('0x5e')]['id']!=_0x18ce3c['id'])continue;if(_0x43a4('0x84')!=_0x36d45d[_0x43a4('0x1c')]||_0x36d45d[_0x43a4('0x1a')][_0x43a4('0xfd')]!=_0x38a369[_0x43a4('0xfd')])continue;const _0x356325=_0x36d45d[_0x43a4('0x55')]==_0x480c31;for(let _0x27bd1f=0x0;_0x27bd1f<_0x27d439[_0x43a4('0xb4')];_0x27bd1f++){const _0x1bae2a=_0x27d439[_0x27bd1f];for(const _0x3159b3 of _0x36d45d[_0x43a4('0x11e')]()){const _0xffbf1b=_0x3159b3['getRange']();if(_0x1bae2a['isEqual'](_0xffbf1b)){_0x356325?(_0x27d439['splice'](_0x27bd1f,0x1),_0x27bd1f--):_0x36d45d['removeMarker'](_0x3159b3[_0x43a4('0x3b')]);break;}}}}if(0x0==_0x27d439[_0x43a4('0xb4')])return;const _0x2d1833=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x84'),_0x480c31,'join');for(const _0x4e0a95 of this['getSuggestions']())if(_0x4e0a95[_0x43a4('0x5e')]['id']==_0x18ce3c['id']&&_0x43a4('0x84')==_0x4e0a95['type']&&_0x4e0a95[_0x43a4('0x1a')][_0x43a4('0xfd')]==_0x38a369[_0x43a4('0xfd')]&&_0x4e0a95[_0x43a4('0x55')]==_0x480c31&&(_0x2d1833(_0x4e0a95['getRanges'](),_0x27d439)||_0x2d1833(_0x27d439,_0x4e0a95[_0x43a4('0x2')]()))){for(const _0x2cf914 of _0x27d439)_0x4e0a95['addRange'](_0x2cf914);return _0x4e0a95;}const _0x5ea8a7=_0x33d4c9(),_0x3d7a3b=_0x18ce3c['id'],_0x53adcf=_0x43a4('0x126')+_0x480c31,_0x5138b8=this[_0x43a4('0x10b')]({'id':_0x5ea8a7,'type':_0x53adcf,'data':_0x38a369,'createdAt':new Date(),'authorId':_0x3d7a3b,'attributes':_0x5d94fd});for(const _0x276026 of _0x27d439)this[_0x43a4('0x35')](_0x53adcf,_0x5ea8a7,_0x3d7a3b,_0x276026,_0x34bd29[_0x43a4('0x4c')]());return _0x5138b8;}[_0x43a4('0x27')](_0x3f8bae,_0x13cd26=null,_0x207cc7={}){if(_0x3f8bae[_0x43a4('0x36')])return null;const _0x3f25af=this[_0x43a4('0x11f')]['plugins'][_0x43a4('0xa0')](_0x43a4('0xde'))['me'],_0x128633=new _0xee9b89(_0x3f8bae['start'],_0x3f8bae[_0x43a4('0xc9')]);for(const {suggestion:_0x94de2f,meta:_0x3aacab}of this[_0x43a4('0xab')](_0x128633,_0x43a4('0xb6')))if(_0x3aacab[_0x43a4('0x26')]&&!_0x3aacab[_0x43a4('0x53')]){if(_0x94de2f[_0x43a4('0x121')]){const _0x100ccc=_0x94de2f['getRanges']()['filter'](_0x3fcaf3=>'$graveyard'!=_0x3fcaf3[_0x43a4('0x6f')][_0x43a4('0x95')]);_0x100ccc[_0x43a4('0x12')](_0x5bccb5=>_0x128633['containsRange'](_0x5bccb5,!0x0))&&_0x94de2f[_0x43a4('0x82')]();if(_0x100ccc[_0x43a4('0x12e')](_0x1080f0=>_0x1080f0['containsRange'](_0x128633,!0x0))){const _0x2f40bc=this['_suggestionFactory'][_0x43a4('0xf1')](_0x43a4('0x9e'),_0x13cd26,_0x43a4('0xc5'));return this['forceDefaultExecution'](()=>_0x2f40bc([_0x128633],null,_0x207cc7)),null;}}else{const _0x2538ed=_0x128633[_0x43a4('0xb1')](_0x94de2f['getFirstRange']());_0x94de2f[_0x43a4('0xc2')]([_0x2538ed],null,_0x207cc7);}}if(_0x128633[_0x43a4('0x8e')](),_0x128633['isCollapsed']||_0x43a4('0x91')==_0x128633[_0x43a4('0x6f')][_0x43a4('0x95')])return null;let _0x57dbd9=null,_0x20ef94=_0x128633['start'],_0x3d9b60=_0x128633[_0x43a4('0xc9')];for(const {suggestion:_0x303607,meta:_0xdff523}of this['_findSuggestions'](_0x128633,'deletion'))if(_0xdff523[_0x43a4('0x26')]){if(_0x303607[_0x43a4('0x121')]){let _0x12c581=!0x0;for(const _0x537577 of _0x303607[_0x43a4('0x2')]()){if(_0x537577[_0x43a4('0x64')](_0x128633,!0x0))return _0x303607;_0x128633[_0x43a4('0x64')](_0x537577)||(_0x12c581=!0x1);}_0x12c581&&_0x303607[_0x43a4('0x82')]();}else{const _0x1e7f69=_0x303607[_0x43a4('0x10f')]();if(_0x1e7f69[_0x43a4('0x64')](_0x128633,!0x0))return _0x303607;_0x20ef94=_0x20ef94[_0x43a4('0xad')](_0x1e7f69['start'])?_0x20ef94:_0x1e7f69[_0x43a4('0xd8')],_0x3d9b60=_0x3d9b60[_0x43a4('0xe2')](_0x1e7f69['end'])?_0x3d9b60:_0x1e7f69['end'],_0x57dbd9?_0x1e7f69['start'][_0x43a4('0xad')](_0x57dbd9['getFirstRange']()['start'])?(_0x57dbd9['removeMarkers'](),_0x57dbd9=_0x303607):_0x303607['removeMarkers']():_0x57dbd9=_0x303607;}}if(_0x57dbd9)return this[_0x43a4('0xa2')](_0x57dbd9,this['_model'][_0x43a4('0xe3')](_0x20ef94,_0x3d9b60)),_0x57dbd9;{const _0x1ff04f=_0x33d4c9(),_0x577911=this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x20ef94,_0x3d9b60),_0x50dd9b=_0x3f25af['id'],_0x3d2275=_0x13cd26?_0x43a4('0xbd')+_0x13cd26:_0x43a4('0x9e'),_0x537e3e=this[_0x43a4('0x10b')]({'id':_0x1ff04f,'type':_0x3d2275,'createdAt':new Date(),'authorId':_0x50dd9b,'attributes':_0x207cc7});return this[_0x43a4('0x35')](_0x3d2275,_0x1ff04f,_0x50dd9b,_0x577911),_0x537e3e;}}[_0x43a4('0xea')](_0xb6ced9,_0x561ffc=_0x43a4('0xaf'),_0x4b2228={}){const _0x3f0072=this[_0x43a4('0x11f')][_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0xde'))['me'],_0x425aaa=_0xb6ced9['map'](_0x3e9336=>new _0xee9b89(_0x3e9336[_0x43a4('0xd8')],_0x3e9336[_0x43a4('0xc9')])),_0xf018a1=new Set();for(const _0x4731a0 of _0x425aaa)for(const {suggestion:_0xcf0dd7,meta:_0x536b41}of this['_findSuggestions'](_0x4731a0,_0x43a4('0xb6')))_0x536b41['isOwn']&&!_0x536b41[_0x43a4('0x53')]&&_0xf018a1[_0x43a4('0xd2')](_0xcf0dd7);for(const _0x2595fe of _0xf018a1)if(_0x2595fe[_0x43a4('0x121')]){const _0x16e321=_0x2595fe[_0x43a4('0x2')]();(!_0x2595fe[_0x43a4('0xbc')]||!_0x2595fe['attributes'][_0x43a4('0x22')])&&(_0x16e321[_0x43a4('0x12')](_0x2030c2=>_0x425aaa[_0x43a4('0x12e')](_0x23794b=>_0x23794b['containsRange'](_0x2030c2,!0x0)))&&_0x2595fe[_0x43a4('0x82')]());if(_0x425aaa[_0x43a4('0x12')](_0x25aac0=>_0x16e321[_0x43a4('0x12e')](_0x13853a=>_0x13853a[_0x43a4('0x64')](_0x25aac0,!0x0)))){const _0x713a11=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x9e'),_0x561ffc,_0x43a4('0xc5'));return this[_0x43a4('0x11')](()=>_0x713a11(_0xb6ced9,null,_0x4b2228)),null;}}else{const _0x5f3dd7=_0x2595fe[_0x43a4('0x10f')]();_0x425aaa['some'](_0x40dfe7=>_0x40dfe7[_0x43a4('0x64')](_0x5f3dd7,!0x0))&&_0x2595fe[_0x43a4('0x82')]();if(_0x425aaa[_0x43a4('0x12')](_0x22ad26=>_0x5f3dd7['containsRange'](_0x22ad26,!0x0))){const _0x3ee345=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x9e'),_0x561ffc,_0x43a4('0xc5'));return this[_0x43a4('0x11')](()=>_0x3ee345(_0x425aaa,null,_0x4b2228)),null;}}const _0x393926=this['_suggestionFactory'][_0x43a4('0xf1')](_0x43a4('0x9e'),_0x561ffc,_0x43a4('0x76'));let _0x5c61d9=null;for(const _0x2ce396 of this[_0x43a4('0xc7')]())if(_0x2ce396['author']['id']==_0x3f0072['id']&&_0x2ce396[_0x43a4('0x40')]&&_0x43a4('0x9e')==_0x2ce396[_0x43a4('0x1c')]&&_0x2ce396[_0x43a4('0x55')]==_0x561ffc&&(_0x393926(_0x2ce396[_0x43a4('0x2')](),_0x425aaa)||_0x393926(_0x425aaa,_0x2ce396[_0x43a4('0x2')]()))){if(_0x5c61d9){if(_0x2ce396[_0x43a4('0x99')]&&_0x2ce396['commentThread']['length'])continue;for(const _0x3a07bf of _0x2ce396[_0x43a4('0x2')]())_0x5c61d9['isIntersectingWithRange'](_0x3a07bf)||_0x5c61d9[_0x43a4('0x54')](_0x3a07bf);_0x2ce396[_0x43a4('0x37')]();}else{_0x5c61d9=_0x2ce396;for(const _0x18ff40 of _0x425aaa)_0x2ce396[_0x43a4('0x11c')](_0x18ff40)||_0x2ce396[_0x43a4('0x54')](_0x18ff40);}}if(_0x5c61d9)return _0x5c61d9;_0xf018a1[_0x43a4('0x3f')]();for(const _0x17ddca of _0x425aaa)for(const {suggestion:_0x590ffc,meta:_0x109d6b}of this[_0x43a4('0xab')](_0x17ddca,_0x43a4('0x9e')))_0x109d6b['isOwn']&&_0xf018a1[_0x43a4('0xd2')](_0x590ffc);for(const _0x13bf7d of _0xf018a1){const _0x57a2c0=_0x13bf7d['getRanges']();if(!_0x4b2228||!_0x4b2228[_0x43a4('0x22')]){if(_0x425aaa['every'](_0x18ee45=>_0x57a2c0[_0x43a4('0x12e')](_0x4160c9=>_0x4160c9[_0x43a4('0x64')](_0x18ee45,!0x0))))return _0x13bf7d;}(!_0x13bf7d[_0x43a4('0xbc')]||!_0x13bf7d[_0x43a4('0xbc')]['skipNestingCheck'])&&(_0x57a2c0['every'](_0x1da4bd=>_0x425aaa[_0x43a4('0x12e')](_0x16e1b8=>_0x16e1b8['containsRange'](_0x1da4bd,!0x0)))&&_0x13bf7d[_0x43a4('0x82')]());}const _0x9db34d=_0x33d4c9(),_0x104c5b=_0x3f0072['id'],_0xfedbbe=_0x43a4('0xbd')+_0x561ffc,_0x1e2483=this[_0x43a4('0x10b')]({'id':_0x9db34d,'type':_0xfedbbe,'createdAt':new Date(),'authorId':_0x104c5b,'attributes':_0x4b2228});for(const _0x2ebd71 of _0x425aaa)_0x2ebd71[_0x43a4('0x8e')](),_0x2ebd71[_0x43a4('0x36')]||_0x43a4('0x91')==_0x2ebd71[_0x43a4('0x6f')]['rootName']||this[_0x43a4('0x35')](_0xfedbbe,_0x9db34d,_0x104c5b,_0x2ebd71,_0x34bd29[_0x43a4('0x4c')]());return _0x1e2483;}['_setSuggestionRange'](_0x37ea33,_0x3df6a3){const _0x2b391a=_0x37ea33[_0x43a4('0xd0')]();this[_0x43a4('0x10e')][_0x43a4('0xdf')](_0xf9097c=>{_0xf9097c['updateMarker'](_0x2b391a,{'range':_0x3df6a3});});}[_0x43a4('0xb9')](_0x374772){const _0x512a52=_0x374772['id'],_0x3b1227=this[_0x43a4('0x11f')][_0x43a4('0x11d')][_0x43a4('0xa0')](_0x43a4('0x45'));this[_0x43a4('0x67')]['hasCommentThread'](_0x512a52)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3b1227,'threadId':_0x512a52});const _0x4bdce4=this[_0x43a4('0x67')]['getCommentThread'](_0x512a52);_0x4bdce4[_0x43a4('0xa1')](_0x43a4('0x38')),_0x4bdce4['isRemovable']=!0x1,_0x374772['commentThread']=_0x4bdce4;}[_0x43a4('0xf0')](_0x40b1ad,_0x10a4e1,_0x59e10a,_0x1db255){if(_0x40b1ad[_0x43a4('0x1c')]!=_0x10a4e1||_0x40b1ad['subType']!=_0x59e10a||_0x40b1ad[_0x43a4('0x59')]['id']!=_0x1db255)throw this[_0x43a4('0x11f')][_0x43a4('0x9f')](_0x43a4('0xa7')),new _0x3cc697(_0x43a4('0xa7'),this);}[_0x43a4('0xba')](_0x476d06,_0xc8f1df){const _0x56cc9e=_0x476d06['getFirstRange']();if(_0xc8f1df[_0x43a4('0x4a')](_0x56cc9e))_0x476d06[_0x43a4('0x37')]();else{if(_0x56cc9e[_0x43a4('0x64')](_0xc8f1df)){const _0x2530fa=this[_0x43a4('0x10e')][_0x43a4('0x41')](_0xc8f1df[_0x43a4('0xd8')][_0x43a4('0xb7')],_0x43a4('0xc9'));this[_0x43a4('0xa2')](_0x476d06,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x56cc9e[_0x43a4('0xd8')],_0x2530fa));const _0x305255=_0x33d4c9(),_0x4c0a99=_0x476d06[_0x43a4('0x59')]['id'],_0x3ec03f=_0x476d06[_0x43a4('0x1c')]+':'+_0x476d06[_0x43a4('0x55')];this[_0x43a4('0x10b')]({'id':_0x305255,'type':_0x3ec03f,'createdAt':new Date(),'authorId':_0x4c0a99,'data':_0x476d06[_0x43a4('0x1a')],'attributes':_0x476d06['attributes']});const _0x49a096=this[_0x43a4('0x10e')]['createPositionAt'](_0xc8f1df['end'][_0x43a4('0x23')],_0x43a4('0xcb')),_0x1f59e1=this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x49a096,_0x56cc9e[_0x43a4('0xc9')]);this[_0x43a4('0x35')](_0x3ec03f,_0x305255,_0x4c0a99,_0x1f59e1);}else{if(_0x56cc9e[_0x43a4('0x5c')](_0xc8f1df['start'])){const _0x1b23a5=this[_0x43a4('0x10e')][_0x43a4('0x41')](_0xc8f1df[_0x43a4('0xd8')]['nodeBefore'],_0x43a4('0xc9'));this[_0x43a4('0xa2')](_0x476d06,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x56cc9e['start'],_0x1b23a5));}else{const _0x57e2b7=this[_0x43a4('0x10e')][_0x43a4('0x41')](_0xc8f1df[_0x43a4('0xc9')][_0x43a4('0x23')],_0x43a4('0xcb'));this[_0x43a4('0xa2')](_0x476d06,this[_0x43a4('0x10e')]['createRange'](_0x57e2b7,_0x56cc9e[_0x43a4('0xc9')]));}}}}['_rangeIsInLocalUserInsertion'](_0x464150){for(const {suggestion:_0x4bb66b,meta:_0x188626}of this[_0x43a4('0xab')](_0x464150,_0x43a4('0xb6'))){if(!_0x188626[_0x43a4('0x26')])continue;const _0x58b133=_0x4bb66b[_0x43a4('0x2')]();for(const _0x419b7e of _0x58b133)if(!_0x464150[_0x43a4('0xa8')](_0x419b7e)[_0x43a4('0xb4')])return!0x0;}return!0x1;}[_0x43a4('0x24')](_0x4f08ef){const _0x3a117e=this['editor'][_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0xde'))['getUser'](_0x4f08ef);if(!_0x3a117e)throw new _0x3cc697(_0x43a4('0x4'),this);return _0x3a117e;}[_0x43a4('0x10')](_0x45dc8a){const _0x57c71e=this[_0x43a4('0x11f')][_0x43a4('0x100')][_0x43a4('0xa0')]('Users'),_0x4e8ace=_0x2f2d64(_0x43a4('0x33')+_0x45dc8a),_0x92ab3e=_0x57c71e['getUser'](_0x4e8ace);return _0x92ab3e||_0x57c71e[_0x43a4('0xa9')]({'id':_0x4e8ace,'name':_0x45dc8a});}['_createSuggestion'](_0x3891a8,_0x24ee4f,_0x45c8e8,_0x209c59,_0x5afe7f){const _0x2bd5ed=this[_0x43a4('0x24')](_0x209c59),_0x5c3b85=this['_suggestionFactory'][_0x43a4('0xbb')](_0x3891a8,_0x24ee4f,_0x45c8e8,_0x2bd5ed,_0x5afe7f,_0x1c4d5a=>this[_0x43a4('0x32')](_0x45c8e8,{'attributes':_0x1c4d5a}));return this['listenTo'](_0x5c3b85,_0x43a4('0xc5'),()=>{this['_updateSuggestionData'](_0x45c8e8,{'state':_0x43a4('0xfc')});},{'priority':_0x43a4('0xb8')}),this[_0x43a4('0x56')](_0x5c3b85,_0x43a4('0x82'),()=>{this[_0x43a4('0x32')](_0x45c8e8,{'state':'rejected'});},{'priority':'high'}),this[_0x43a4('0x3a')][_0x43a4('0x42')](_0x45c8e8,_0x5c3b85),this[_0x43a4('0x13')][_0x43a4('0x42')](_0x5c3b85,'notReady'),_0x5c3b85;}['_splitMarkerName'](_0x39893b){const _0x2c6114=_0x39893b['split'](':');return{'group':_0x2c6114[0x0],'type':_0x2c6114[0x1],'subType':_0x2c6114['length']>=0x5?_0x2c6114[0x2]:null,'id':_0x2c6114[_0x43a4('0xb4')]<0x5?_0x2c6114[0x2]:_0x2c6114[0x3],'authorId':_0x2c6114[_0x43a4('0xb4')]<0x5?_0x2c6114[0x3]:_0x2c6114[0x4],'markerCount':0x6==_0x2c6114[_0x43a4('0xb4')]?_0x2c6114[0x5]:null};}['_breakSuggestionMarker'](_0x98bddd,_0x4899b3,_0x378081){const _0x192c71=_0x98bddd['getFirstRange'](),_0x4c581a=_0x192c71[_0x43a4('0xd8')],_0x1a0fbe=_0x192c71['end'];this[_0x43a4('0xa2')](_0x98bddd,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x4c581a,_0x4899b3));const _0xdd6119=_0x33d4c9(),_0x5e8147=_0x98bddd[_0x43a4('0x59')]['id'],_0x34c069=_0x98bddd[_0x43a4('0x1c')]+(_0x98bddd[_0x43a4('0x55')]?':'+_0x98bddd[_0x43a4('0x55')]:'');this[_0x43a4('0x10b')]({'id':_0xdd6119,'type':_0x34c069,'createdAt':new Date(),'authorId':_0x5e8147,'originalSuggestionId':_0x98bddd['id'],'attributes':_0x98bddd[_0x43a4('0xbc')],'data':_0x98bddd['data']}),_0x43a4('0x84')==_0x98bddd['type']&&(_0x378081=this[_0x43a4('0x10e')][_0x43a4('0x2c')](_0x378081[_0x43a4('0x23')])),this[_0x43a4('0x35')](_0x34c069,_0xdd6119,_0x5e8147,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x378081,_0x1a0fbe));}[_0x43a4('0xab')](_0x477b4c,_0x509e2f=null){const _0x4ab7ea=[],_0xffd61=this['_model'][_0x43a4('0x2b')],_0x1bd26c=this['editor'][_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0xde'))['me'];for(const _0x42be6c of this[_0x43a4('0xc7')]())if(_0x42be6c['isInContent']&&(!_0x509e2f||_0x42be6c['type']==_0x509e2f))for(const _0x3727f0 of _0x42be6c['getRanges']()){const _0x31a570=_0x477b4c[_0x43a4('0xd8')][_0x43a4('0x4a')](_0x3727f0['end'])||_0x477b4c[_0x43a4('0xc9')][_0x43a4('0x4a')](_0x3727f0[_0x43a4('0xd8')]);if(_0x31a570||_0x477b4c[_0x43a4('0xb1')](_0x3727f0)){const _0x56cd97=_0x477b4c[_0x43a4('0x64')](_0x3727f0)&&Ct(_0xffd61,_0x3727f0[_0x43a4('0xd8')],_0x477b4c),_0x59fa18=_0x3727f0['containsRange'](_0x477b4c)&&Ct(_0xffd61,_0x477b4c[_0x43a4('0xd8')],_0x3727f0);_0x4ab7ea[_0x43a4('0xd7')]({'suggestion':_0x42be6c,'meta':{'isOwn':_0x1bd26c==_0x42be6c[_0x43a4('0x5e')],'isNextTo':_0x31a570,'isInsideObject':_0x56cd97,'containsRangeInObject':_0x59fa18}});break;}}return _0x4ab7ea;}[_0x43a4('0x35')](_0x46d84f,_0x4fbe96,_0x340028,_0x4bce86,_0x10c746=null){this[_0x43a4('0x10e')]['change'](_0x1cb1bc=>{let _0x4ec12d='suggestion:'+_0x46d84f+':'+_0x4fbe96+':'+_0x340028;_0x10c746&&(_0x4ec12d=_0x4ec12d+':'+_0x10c746),_0x1cb1bc[_0x43a4('0x122')](_0x4ec12d,{'range':_0x4bce86,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x43a4('0xdb')](_0x35cc9e){const _0x409b17=_0x35cc9e[_0x43a4('0x3e')],_0x12919a=_0x35cc9e[_0x43a4('0xd1')];_0x35cc9e[_0x43a4('0x3e')]=null,null!=_0x409b17&&(_0x409b17[_0x43a4('0xd1')]=null),_0x35cc9e[_0x43a4('0xd1')]=null,null!=_0x12919a&&(_0x12919a[_0x43a4('0x3e')]=null),_0x43a4('0xbe')==this[_0x43a4('0x13')][_0x43a4('0xa0')](_0x35cc9e)&&(this[_0x43a4('0x13')][_0x43a4('0x42')](_0x35cc9e,_0x43a4('0x6c')),this['fire'](_0x43a4('0x115'),_0x35cc9e,_0x409b17,_0x12919a));}[_0x43a4('0x10b')](_0x1314f9){const _0x479ce0=_0x1314f9['id'],_0xafeb84=this['addSuggestionData'](_0x1314f9);if(this[_0x43a4('0xcf')]&&this[_0x43a4('0xcf')][_0x43a4('0x60')]){const _0x5f4fb8=this['editor'][_0x43a4('0x100')]['get'](_0x43a4('0xae')),_0x42c4e7=_0xafeb84[_0x43a4('0xb3')],_0x1de6eb=_0xafeb84[_0x43a4('0x55')]?_0xafeb84['type']+':'+_0xafeb84['subType']:_0xafeb84['type'],_0x2a10ad=this['editor'][_0x43a4('0x113')],_0x2e470d=_0x5f4fb8[_0x43a4('0xd2')](_0x506731(_0x2a10ad,_0x43a4('0xf7'))),_0x503fd6={'id':_0x479ce0,'type':_0x1de6eb,'hasComments':_0x42c4e7,'data':_0x1314f9[_0x43a4('0x1a')]||null,'originalSuggestionId':_0x1314f9[_0x43a4('0xe8')]||null,'attributes':_0xafeb84['attributes']};this[_0x43a4('0xcf')][_0x43a4('0x60')](_0x503fd6)[_0x43a4('0x94')](_0x38d209=>{_0xafeb84[_0x43a4('0xa3')]=!0x0,_0x5f4fb8[_0x43a4('0xfb')](_0x2e470d),_0x38d209&&_0x38d209[_0x43a4('0x12b')]&&(this['_suggestions'][_0x43a4('0xa0')](_0x479ce0)['createdAt']=_0x38d209[_0x43a4('0x12b')]);})[_0x43a4('0x20')](_0x3bf344=>{throw _0x1bc5f3(_0x43a4('0xe1')),this[_0x43a4('0x11f')][_0x43a4('0xf9')]['enqueueChange']({'isUndoable':!0x1},()=>{_0xafeb84['discard']();}),_0xafeb84['stopListening'](),this[_0x43a4('0x3a')][_0x43a4('0x87')](_0xafeb84['id']),this['_suggestionState']['delete'](_0xafeb84),_0x3bf344;});}return _0xafeb84;}[_0x43a4('0x32')](_0xe97ceb,_0x48a5f2){const _0x581232=this[_0x43a4('0x11f')][_0x43a4('0x100')][_0x43a4('0xa0')]('PendingActions'),_0x4c5b0f=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0xe97ceb);if(this[_0x43a4('0xcf')]&&this[_0x43a4('0xcf')]['updateSuggestion']){if(_0x4c5b0f[_0x43a4('0xa3')]){const _0x4e09f9=_0x581232[_0x43a4('0xd2')](_0x506731(this['editor']['locale'],_0x43a4('0xf7')));this[_0x43a4('0xcf')][_0x43a4('0xc8')](_0xe97ceb,_0x48a5f2)['then'](()=>{_0x581232[_0x43a4('0xfb')](_0x4e09f9);});}else _0x4c5b0f['on'](_0x43a4('0xeb'),()=>{this[_0x43a4('0x32')](_0xe97ceb,_0x48a5f2);});}}[_0x43a4('0xed')](_0x189647){if(!this[_0x43a4('0xcf')]||!this[_0x43a4('0xcf')][_0x43a4('0x112')])throw new _0x3cc697('track-changes-adapter-missing-getsuggestion',this);return this[_0x43a4('0xcf')][_0x43a4('0x112')](_0x189647);}[_0x43a4('0x1d')](_0x3a89ab){const {id:_0x4f17c3,type:_0x433ed8,subType:_0x3476dc,authorId:_0x55c109}=this[_0x43a4('0x96')](_0x3a89ab),_0x42b282=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x4f17c3)||this['_createSuggestion'](_0x433ed8,_0x3476dc,_0x4f17c3,_0x55c109);switch(this['_checkSuggestionCorrectness'](_0x42b282,_0x433ed8,_0x3476dc,_0x55c109),this[_0x43a4('0x13')][_0x43a4('0xa0')](_0x42b282)){case _0x43a4('0xd6'):this[_0x43a4('0xed')](_0x4f17c3)[_0x43a4('0x94')](_0x15393d=>{let _0x218abe=Promise['resolve']();_0x15393d[_0x43a4('0xb3')]&&(_0x218abe=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor'][_0x43a4('0x11d')][_0x43a4('0xa0')](_0x43a4('0x45')),'threadId':_0x4f17c3})),_0x218abe[_0x43a4('0x94')](()=>{this[_0x43a4('0x3d')](_0x15393d)[_0x43a4('0xa3')]=!0x0;});}),this['_suggestionState'][_0x43a4('0x42')](_0x42b282,_0x43a4('0x4e'));break;case _0x43a4('0x6c'):this[_0x43a4('0x32')](_0x4f17c3,{'state':_0x43a4('0x4f')});case _0x43a4('0xc'):this[_0x43a4('0x13')][_0x43a4('0x42')](_0x42b282,_0x43a4('0xbe')),this['fire'](_0x43a4('0x16'),_0x42b282);break;case _0x43a4('0xbe'):this[_0x43a4('0x11a')](_0x43a4('0x107'),_0x42b282);}return _0x42b282['addMarkerName'](_0x3a89ab),_0x42b282;}[_0x43a4('0xf5')](_0x1afd07){const _0x44d5f7=Array[_0x43a4('0xc3')](_0x1afd07)[_0x43a4('0x0')](_0x1cf8ff=>!_0x1cf8ff[_0x43a4('0x121')]),_0xb49aca=this[_0x43a4('0xc7')]({'skipNotAttached':!0x0})[_0x43a4('0x0')](_0x3e6700=>!_0x3e6700['isMultiRange']),_0x5e815f=_0xb49aca['filter'](_0x38af84=>!_0x1afd07[_0x43a4('0x25')](_0x38af84)),_0x2c2a35=new Map(_0xb49aca['map'](_0x2d228f=>[_0x2d228f,this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x2d228f['type'],_0x2d228f['subType'],'chain')])),_0x29e49f=new Map(_0xb49aca['map'](_0x346f5d=>[_0x346f5d,_0x346f5d[_0x43a4('0x10f')]()])),_0x24ac6c=new Set(),_0x3ce319=new Set();for(let _0x3dffc5=0x0;_0x3dffc5<_0x44d5f7[_0x43a4('0xb4')];_0x3dffc5++)_0x2addf4(_0x44d5f7[_0x3dffc5],_0x44d5f7,_0x3dffc5+0x1);for(let _0x5010af=0x0;_0x5010af<_0x44d5f7[_0x43a4('0xb4')];_0x5010af++)_0x2addf4(_0x44d5f7[_0x5010af],_0x5e815f,0x0);for(let _0x49d6ff=0x0;_0x49d6ff<_0x44d5f7[_0x43a4('0xb4')];_0x49d6ff++){const _0x2dc2b7=_0x44d5f7[_0x49d6ff];!_0x3ce319[_0x43a4('0x25')](_0x2dc2b7)&&_0x2dc2b7['previous']&&(_0x2dc2b7['previous'][_0x43a4('0xd1')]===_0x2dc2b7&&(_0x2dc2b7[_0x43a4('0x3e')][_0x43a4('0xd1')]=null),_0x2dc2b7[_0x43a4('0x3e')]=null),!_0x24ac6c['has'](_0x2dc2b7)&&_0x2dc2b7[_0x43a4('0xd1')]&&(_0x2dc2b7[_0x43a4('0xd1')][_0x43a4('0x3e')]===_0x2dc2b7&&(_0x2dc2b7[_0x43a4('0xd1')][_0x43a4('0x3e')]=null),_0x2dc2b7[_0x43a4('0xd1')]=null);}function _0x2addf4(_0x8c4a76,_0x254c22,_0x197bbc){for(let _0xda95d3=_0x197bbc;_0xda95d3<_0x254c22[_0x43a4('0xb4')];_0xda95d3++){const _0x1e97c1=_0x38aa63(_0x8c4a76,_0x254c22[_0xda95d3]);_0x1e97c1&&(_0x1e97c1[0x0][_0x43a4('0xd1')]=_0x1e97c1[0x1],_0x1e97c1[0x1][_0x43a4('0x3e')]=_0x1e97c1[0x0],_0x24ac6c['add'](_0x1e97c1[0x0]),_0x3ce319[_0x43a4('0xd2')](_0x1e97c1[0x1]));}}function _0x38aa63(_0x54a551,_0x55ffa4){if(_0x54a551[_0x43a4('0x5e')]['id']!==_0x55ffa4[_0x43a4('0x5e')]['id'])return null;const _0x54102d=_0x2c2a35[_0x43a4('0xa0')](_0x54a551)(_0x54a551,_0x55ffa4,_0x29e49f[_0x43a4('0xa0')](_0x54a551),_0x29e49f['get'](_0x55ffa4));if(!_0x54102d)return null;return _0x2c2a35[_0x43a4('0xa0')](_0x55ffa4)(_0x54a551,_0x55ffa4,_0x29e49f['get'](_0x54a551),_0x29e49f[_0x43a4('0xa0')](_0x55ffa4))?_0x54102d[0x1][_0x43a4('0x99')]&&_0x54102d[0x1][_0x43a4('0x99')][_0x43a4('0xb4')]?null:_0x54102d:null;}}[_0x43a4('0x43')](_0x6e175a){const _0x2aa50a=Array[_0x43a4('0xc3')](_0x6e175a),_0x39a57b=this[_0x43a4('0xc7')]({'skipNotAttached':!0x0}),_0x3841cd=_0x39a57b[_0x43a4('0x0')](_0x1b71ff=>!_0x6e175a['has'](_0x1b71ff)),_0x5638fc=new Map(_0x2aa50a[_0x43a4('0xe4')](_0x496d6c=>[_0x496d6c,this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x496d6c[_0x43a4('0x1c')],_0x496d6c[_0x43a4('0x55')],_0x43a4('0x76'))])),_0x6cd822=new Map(_0x39a57b[_0x43a4('0xe4')](_0x2f0ab8=>[_0x2f0ab8,_0x2f0ab8[_0x43a4('0x2')]()]));for(let _0x3b603f=0x0;_0x3b603f<_0x2aa50a['length'];_0x3b603f++){if(_0x1dc763(this,_0x2aa50a[_0x3b603f],_0x2aa50a,_0x3b603f+0x1))return!0x0;}for(let _0x773a56=0x0;_0x773a56<_0x2aa50a[_0x43a4('0xb4')];_0x773a56++){if(_0x1dc763(this,_0x2aa50a[_0x773a56],_0x3841cd,0x0))return!0x0;}return!0x1;function _0x1dc763(_0x2b23a1,_0x429714,_0x4c8f42,_0x39ba5f){for(let _0x5a644d=_0x39ba5f;_0x5a644d<_0x4c8f42[_0x43a4('0xb4')];_0x5a644d++){const _0xdb0505=_0x4c8f42[_0x5a644d];if(_0xdb0505[_0x43a4('0x1c')]!==_0x429714['type']||_0xdb0505[_0x43a4('0x5e')]['id']!==_0x429714[_0x43a4('0x5e')]['id']||_0xdb0505[_0x43a4('0x55')]!==_0x429714[_0x43a4('0x55')])continue;const _0x4f6fd6=_0x5638fc[_0x43a4('0xa0')](_0x429714),_0x5215d4=_0x6cd822[_0x43a4('0xa0')](_0x429714),_0x332b05=_0x6cd822[_0x43a4('0xa0')](_0xdb0505),_0x30e1fa=_0x429714[_0x43a4('0x99')]&&_0x429714[_0x43a4('0x99')][_0x43a4('0xb4')],_0x1c43ff=_0xdb0505['commentThread']&&_0xdb0505['commentThread'][_0x43a4('0xb4')];if(!_0x30e1fa&&_0x4f6fd6(_0x332b05,_0x5215d4))return _0x2b23a1['_joinSuggestions'](_0xdb0505,_0x429714),_0x6cd822[_0x43a4('0x87')](_0x429714),!0x0;if(!_0x1c43ff&&_0x4f6fd6(_0x5215d4,_0x332b05))return _0x2b23a1[_0x43a4('0x57')](_0x429714,_0xdb0505),_0x6cd822[_0x43a4('0x87')](_0xdb0505),!0x0;}return!0x1;}}[_0x43a4('0x57')](_0x18a2e1,_0x3a3667){if(_0x18a2e1[_0x43a4('0x121')])for(const _0x8f9598 of _0x3a3667[_0x43a4('0x2')]())_0x18a2e1[_0x43a4('0x54')](_0x8f9598);else{const _0x25e1fd=_0x3a3667[_0x43a4('0x10f')]()[_0x43a4('0xc9')];this[_0x43a4('0xa2')](_0x18a2e1,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x18a2e1['getFirstRange']()['start'],_0x25e1fd));}_0x3a3667['removeMarkers']();}}_0x2293cc(p,_0x3c7c40);class Dt{constructor(_0x8bb04){this[_0x43a4('0x8')]=_0x8bb04,this[_0x43a4('0x10e')]=_0x8bb04[_0x43a4('0xf9')],this[_0x43a4('0xa6')]=new Map(),this[_0x43a4('0x47')]=new Map(),this[_0x43a4('0x101')]();}['buildSuggestion'](_0x3e1a73,_0x1ed438,_0x1d0b77,_0x43f930,_0x210f22,_0x2d1bd6){return new _0x34bd29(this[_0x43a4('0x10e')],{'type':_0x3e1a73,'subType':_0x1ed438,'id':_0x1d0b77,'author':_0x43f930,'creator':_0x43f930,'attributes':_0x210f22,'onAttributesChange':_0x2d1bd6,'onAccept':(..._0x1cce75)=>this[_0x43a4('0xf1')](_0x3e1a73,_0x1ed438,_0x43a4('0xc5'))(..._0x1cce75),'onDiscard':(..._0x580f08)=>this[_0x43a4('0xf1')](_0x3e1a73,_0x1ed438,_0x43a4('0x82'))(..._0x580f08)});}[_0x43a4('0x98')](_0x14cde8,_0x1b5d35,_0x16b5df,_0x1d85bb){const _0x3e7171=_0x14cde8+':'+_0x1b5d35+':'+_0x16b5df;this[_0x43a4('0xa6')][_0x43a4('0x42')](_0x3e7171,_0x1d85bb);}['getSuggestionCallback'](_0x5f4bf0,_0x5a5c9d,_0x282f44){const _0x143617=_0x5f4bf0+':'+_0x5a5c9d+':'+_0x282f44;return this[_0x43a4('0xa6')][_0x43a4('0xa0')](_0x143617)||this['_defaultCallbacks'][_0x43a4('0xa0')](_0x5f4bf0+':'+_0x282f44);}[_0x43a4('0x101')](){const _0x17a4fb=()=>{},_0x35fe88=_0x42989b=>{_0x42989b[_0x43a4('0x8b')]((_0x147d46,_0x65f500)=>_0x147d46[_0x43a4('0xd8')][_0x43a4('0xad')](_0x65f500[_0x43a4('0xd8')])?0x1:-0x1),this[_0x43a4('0x10e')][_0x43a4('0xdf')](_0x43ba8c=>{for(const _0x48aad5 of _0x42989b){let _0x4c7fb7;_0x4c7fb7=_0x48aad5['end'][_0x43a4('0xd5')]&&_0x48aad5[_0x43a4('0xc9')][_0x43a4('0x23')]==_0x48aad5['start'][_0x43a4('0x90')]?_0x43ba8c[_0x43a4('0xfa')](_0x48aad5['start']['nodeAfter'],'on'):_0x43ba8c['createSelection'](_0x48aad5),this['_model']['deleteContent'](_0x4c7fb7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xb467dd=(_0x401f5a,_0x2c6a9f)=>{this['_model']['change'](_0x7cf0d0=>{const {commandName:_0x1d25fe,commandParams:_0x25ad2b=[]}=_0x2c6a9f,_0x4e1b02=_0x401f5a[_0x43a4('0xe4')](_0x14ef78=>(Bt(_0x14ef78)&&(_0x14ef78=this[_0x43a4('0x10e')]['createRange'](_0x14ef78['end'])),_0x14ef78))[_0x43a4('0x0')](_0xea0fb=>'$graveyard'!==_0xea0fb[_0x43a4('0x6f')][_0x43a4('0x95')]);if(_0x4e1b02['length']<0x1)return;const _0x25af45=Array[_0x43a4('0xc3')](this[_0x43a4('0x10e')][_0x43a4('0xb5')][_0x43a4('0xff')][_0x43a4('0x2')]())[_0x43a4('0xe4')](_0x232de4=>_0xee9b89['fromRange'](_0x232de4));_0x7cf0d0[_0x43a4('0x130')](_0x4e1b02);for(const _0x45bb8f of this[_0x43a4('0x8')][_0x43a4('0x51')][_0x43a4('0x51')]())_0x45bb8f[_0x43a4('0x46')]();_0x25ad2b[_0x43a4('0xd7')]({'forceDefaultExecution':!0x0}),this[_0x43a4('0x8')][_0x43a4('0x2d')](_0x1d25fe,..._0x25ad2b);const _0x201f1e=_0x25af45[_0x43a4('0x0')](_0x3c7050=>_0x43a4('0x91')!=_0x3c7050[_0x43a4('0x6f')][_0x43a4('0x95')]);_0x201f1e[_0x43a4('0xb4')]>0x0&&_0x7cf0d0[_0x43a4('0x130')](_0x201f1e);for(const _0x2c3cc7 of _0x25af45)_0x2c3cc7[_0x43a4('0x8e')]();});},_0x44c7d8=(_0x2b03c1,_0x597de1)=>0x1==_0x2b03c1[_0x43a4('0xb4')]&&0x1==_0x597de1[_0x43a4('0xb4')]&&_0x2b03c1[0x0]['end'][_0x43a4('0x4a')](_0x597de1[0x0][_0x43a4('0xd8')]),_0x46d56d=(_0x4b0090,_0x5beb7a,_0x5cd488,_0x263eb2)=>Rt(_0x4b0090,_0x5beb7a,_0x5cd488,_0x263eb2,this[_0x43a4('0x10e')])?[_0x4b0090,_0x5beb7a]:Rt(_0x5beb7a,_0x4b0090,_0x263eb2,_0x5cd488,this[_0x43a4('0x10e')])?[_0x5beb7a,_0x4b0090]:null;this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0xc6'),_0x17a4fb),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0x19'),_0x35fe88),this[_0x43a4('0x47')]['set'](_0x43a4('0x104'),_0x44c7d8),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0x78'),_0x46d56d),this['_defaultCallbacks'][_0x43a4('0x42')](_0x43a4('0x58'),_0x35fe88),this['_defaultCallbacks'][_0x43a4('0x42')]('deletion:discard',_0x17a4fb),this['_defaultCallbacks']['set']('deletion:join',_0x44c7d8),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0x5b'),_0x46d56d),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0x61'),_0xb467dd),this[_0x43a4('0x47')][_0x43a4('0x42')]('formatInline:discard',_0x17a4fb),this[_0x43a4('0x47')]['set'](_0x43a4('0x12f'),_0x44c7d8),this[_0x43a4('0x47')][_0x43a4('0x42')]('formatInline:chain',_0x17a4fb),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0x10d'),_0xb467dd),this['_defaultCallbacks'][_0x43a4('0x42')](_0x43a4('0x65'),_0x17a4fb),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0xa'),_0x44c7d8),this['_defaultCallbacks']['set'](_0x43a4('0x63'),_0x17a4fb);}}function Ct(_0x34869a,_0x595bd2,_0x46cd82){for(const _0x19662c of _0x595bd2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x19662c[_0x43a4('0x6f')]==_0x19662c)return!0x1;if(!_0x46cd82['containsItem'](_0x19662c))return!0x1;if(_0x34869a[_0x43a4('0xdc')](_0x19662c)||_0x34869a[_0x43a4('0x5')](_0x19662c))return!0x0;}}function Bt(_0x188a2d){return _0x188a2d[_0x43a4('0xc9')][_0x43a4('0x23')]==_0x188a2d['start']['nodeAfter']&&_0x188a2d['end'][_0x43a4('0x80')];}function _t(_0x29a9d0,_0x4792d5,_0x3cae42,_0x42fb40){const _0x4a0e47=_0x33cef8=>!_0x33cef8[_0x43a4('0xf3')]['is'](_0x43a4('0x81'))&&!_0x42fb40[_0x43a4('0xdc')](_0x33cef8['item']),_0x244fd8=_0x29a9d0[_0x43a4('0xd8')]['getLastMatchingPosition'](_0x4a0e47),_0x3d5635=_0x29a9d0[_0x43a4('0xc9')][_0x43a4('0x15')](_0x4a0e47,{'direction':_0x43a4('0xce')});return(!_0x29a9d0[_0x43a4('0xd8')]['isEqual'](_0x244fd8)||!_0x29a9d0[_0x43a4('0xc9')][_0x43a4('0x4a')](_0x3d5635))&&(_0x244fd8['isBefore'](_0x3d5635)?_0x3cae42[_0x43a4('0xd3')](_0x4792d5,{'range':_0x3cae42[_0x43a4('0xe3')](_0x244fd8,_0x3d5635)}):_0x3cae42[_0x43a4('0xef')](_0x4792d5),!0x0);}function Mt(_0x3199bd){return _0x2f2d64(_0x3199bd);}function $t(_0xfcba4b){const _0x1a6935=_0xfcba4b[_0x43a4('0xd8')][_0x43a4('0x90')];return _0x1a6935&&_0x1a6935['is'](_0x43a4('0x3'));}function Nt(_0x1b82cc,_0xcbaba7){const _0x329fda=_0xcbaba7[_0x43a4('0x2b')][_0x43a4('0xdc')](_0x1b82cc)||_0xcbaba7[_0x43a4('0x2b')][_0x43a4('0x69')](_0x1b82cc);return _0xcbaba7['createRange'](_0xcbaba7[_0x43a4('0x41')](_0x1b82cc,_0x43a4('0x6e')),_0x329fda?_0xcbaba7[_0x43a4('0x111')](_0x1b82cc):_0xcbaba7['createPositionAt'](_0x1b82cc,_0x43a4('0xc9')));}function Rt(_0x8295b8,_0x5b9cb2,_0x1ba635,_0x236cad,_0x154d4a){if(_0x1ba635[_0x43a4('0xc9')][_0x43a4('0x4a')](_0x236cad['start']))return!0x0;if(_0x8295b8[_0x43a4('0x1c')]!=_0x5b9cb2['type'])return!0x1;if(!_0x1ba635[_0x43a4('0xc9')][_0x43a4('0xda')](_0x236cad['start']))return!0x1;const _0x98316b=_0x154d4a[_0x43a4('0xe3')](_0x1ba635[_0x43a4('0xc9')],_0x236cad[_0x43a4('0xd8')])[_0x43a4('0x114')]();for(const _0x373446 of _0x98316b)if([_0x43a4('0xf'),'elementEnd'][_0x43a4('0x125')](_0x373446['type'])&&_0x154d4a[_0x43a4('0x2b')][_0x43a4('0x5')](_0x373446[_0x43a4('0xf3')]))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 _0x44b9=['componentFactory','pluginName','Track\x20changes','delete','unbind','add','TrackChangesUI','get','type','lowest','arrowView','isOn','acceptButton','switchbutton','map','_createUIButton','source','destroy','refreshSelectedViews','discardAllSuggestions','CommentsRepository','change:activeAnnotations','Annotations','push','_handleControllerBuffer','stopListening','focus','commentThread','editor','createAnnotation','isEnabled','_updateController','commandName','hasSuggestion','Accept\x20all\x20suggestions','model','change:previous','isInContent','_handleSuggestionControllerDelayed','Discard\x20all\x20selected\x20suggestions','_refreshActiveMarkers','clear','config','descriptionParts','suggestion-','_suggestionToController','TrackChangesEditing','editing','isDirty','reduce','_destroyController','addSourceCollector','suggestionChanged','bind','view','init','length','CommentsUI','_descriptionFactory','Accept\x20all\x20selected\x20suggestions','innerView','comments','suggestionUnloaded','getMarkerNames','EditorAnnotations','createCommentThreadController','getDescriptions','trackChanges.disableComments','value','define','from','mainView','head','_viewToController','SuggestionThreadView','locale','isMultiRange','getSuggestion','_disableComments','registerAnnotation','acceptAllSuggestions','activeAnnotations','has','listenTo','size','button','addComment','set','keys','discardButton','actionView','_annotationViews','getRanges','createAnnotationView','commands','plugins','Discard\x20all\x20suggestions','getMarkers','toMany','acceptSelectedSuggestions','values','execute','trackChanges','buttonView','filter','getAllAdjacentSuggestions','previous','comments.maxCommentsWhenCollapsed','some'];(function(_0x3139c7,_0x44b99f){const _0x15be38=function(_0x26d2e8){while(--_0x26d2e8){_0x3139c7['push'](_0x3139c7['shift']());}};_0x15be38(++_0x44b99f);}(_0x44b9,0x132));const _0x15be=function(_0x3139c7,_0x44b99f){_0x3139c7=_0x3139c7-0x0;let _0x15be38=_0x44b9[_0x3139c7];return _0x15be38;};import{Plugin as _0x556c99}from'ckeditor5/src/core';import{Collection as _0x348ad8}from'ckeditor5/src/utils';import{Model as _0x6746a1,SplitButtonView as _0x298ef3,createDropdown as _0x263189,addListToDropdown as _0xd2bca7}from'ckeditor5/src/ui';import{Users as _0x3f1c77,getDateTimeFormatter as _0x17a5ef,getAllMarkersDomElementsSorted as _0x6b5b22}from'ckeditor5-collaboration/src/collaboration-core';import _0x461689 from'./trackchangesediting';import _0x173c1b from'./ui/suggestioncontroller';import _0x158b9f from'./ui/view/suggestionthreadview';import{getTranslation as _0x6a6c28}from'./utils/common-translations';import _0x3f5ea4 from'../theme/icons/track-changes.svg';export default class d extends _0x556c99{static get['requires'](){return[_0x461689,_0x3f1c77,'CommentsRepository',_0x15be('0x2b'),'EditorAnnotations'];}static get[_0x15be('0x16')](){return _0x15be('0x1b');}constructor(_0xd6ca53){super(_0xd6ca53),this[_0x15be('0x42')]=new Map(),this[_0x15be('0x5e')]=new Map(),this[_0x15be('0x3')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x195788=this['editor'][_0x15be('0x3f')];_0x195788[_0x15be('0x5a')]('trackChanges.SuggestionThreadView',_0x158b9f),_0x195788['define']('trackChanges.disableComments',!0x1),this[_0x15be('0x63')]=_0x195788[_0x15be('0x1c')](_0x15be('0x58'));}[_0x15be('0x3b')](_0x54eb76,_0x3f8f00){0x0===this['_handleControllerBuffer'][_0x15be('0x69')]&&setTimeout(()=>{for(const [_0x4d14a6,_0x184059]of this['_handleControllerBuffer']){const _0x471f86=this[_0x15be('0x42')]['has'](_0x4d14a6);_0x471f86||_0x184059?_0x471f86&&_0x184059&&this[_0x15be('0x47')](_0x4d14a6):this['_initializeController'](_0x4d14a6);}this[_0x15be('0x31')][_0x15be('0x7')]['get']('EditorAnnotations')[_0x15be('0x27')](),this[_0x15be('0x3d')](),this[_0x15be('0x2d')][_0x15be('0x3e')]();},0xa),this[_0x15be('0x2d')][_0x15be('0x6c')](_0x54eb76,_0x3f8f00);}[_0x15be('0x4c')](){const _0x2f95d3=this['editor'],_0x40dd1f=_0x2f95d3[_0x15be('0x7')]['get'](_0x461689),_0x54e717=_0x2f95d3['plugins'][_0x15be('0x1c')](_0x15be('0x2b')),_0x5e4a84=_0x2f95d3[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x55')),_0x390f40=_0x2f95d3[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x29'));_0x2f95d3['ui'][_0x15be('0x15')][_0x15be('0x1a')](_0x15be('0xe'),_0x37a02a=>this[_0x15be('0x24')](_0x37a02a)),_0x5e4a84[_0x15be('0x48')](()=>{const _0x286f22=[];for(const [_0x2506e5,_0x3a1fbd]of Array['from'](this[_0x15be('0x42')])){const _0x49f7c9=_0x2506e5[_0x15be('0x11')](),_0x202c7f=[];for(const _0x4370c1 of _0x49f7c9){if(!_0x4370c1[_0x15be('0x3a')])continue;if(_0x4370c1[_0x15be('0x61')]){_0x202c7f['push'](..._0x4370c1[_0x15be('0x4')]());continue;}const _0x10144b=_0x4370c1['getFirstRange']();if(_0x202c7f[_0x15be('0x4d')]>0x0){const _0x580415=_0x202c7f[0x0]['getJoined'](_0x10144b);if(_0x580415){_0x202c7f[0x0]=_0x580415;continue;}}_0x202c7f[_0x15be('0x2c')](_0x10144b);}_0x286f22[_0x15be('0x2c')]([_0x3a1fbd['view'],_0x202c7f]);}return _0x286f22;}),this[_0x15be('0x68')](_0x40dd1f,'suggestionLoaded',(_0x57d54f,_0x1f0b9c)=>{this[_0x15be('0x68')](_0x1f0b9c,_0x15be('0x39'),(_0x467cb9,_0x4225f9,_0xea58e1,_0x20f5a5)=>{_0x1f0b9c[_0x15be('0x3a')]&&(null==_0xea58e1?(this[_0x15be('0x34')](_0x20f5a5[_0x15be('0x5d')]),this[_0x15be('0x3b')](_0x1f0b9c,!0x1)):(this[_0x15be('0x34')](_0xea58e1[_0x15be('0x5d')]),this[_0x15be('0x3b')](_0x1f0b9c,!0x0)));}),null===_0x1f0b9c[_0x15be('0x12')]?this['_handleSuggestionControllerDelayed'](_0x1f0b9c,!0x1):this[_0x15be('0x34')](_0x1f0b9c[_0x15be('0x5d')]);}),this[_0x15be('0x68')](_0x40dd1f,_0x15be('0x53'),(_0x442fef,_0x3e4e53,_0x2f0b20)=>{this[_0x15be('0x2e')](_0x3e4e53,_0x15be('0x39')),this[_0x15be('0x2d')][_0x15be('0x18')](_0x3e4e53);const _0x289bdb=_0x2f0b20?_0x2f0b20[_0x15be('0x5d')]:_0x3e4e53,_0x9b5f71=this[_0x15be('0x42')][_0x15be('0x1c')](_0x289bdb);null!==_0x2f0b20&&this[_0x15be('0x34')](_0x289bdb),null===_0x2f0b20&&_0x9b5f71&&this['_destroyController'](_0x3e4e53);}),this[_0x15be('0x68')](_0x40dd1f,_0x15be('0x49'),(_0x168aaf,_0x342b6a)=>{this[_0x15be('0x34')](_0x342b6a);}),this['listenTo'](_0x54e717,_0x15be('0x2a'),()=>{this[_0x15be('0x3d')]();}),this[_0x15be('0x68')](_0x390f40,_0x15be('0x6b'),(_0x379bba,{threadId:_0x5cd6b0,isFromAdapter:_0x46a12f})=>{if(_0x46a12f||!_0x40dd1f[_0x15be('0x36')](_0x5cd6b0))return;const _0x32df9e=_0x40dd1f[_0x15be('0x62')](_0x5cd6b0);this[_0x15be('0x42')][_0x15be('0x1c')](_0x32df9e)[_0x15be('0x4b')]['focus']();},{'priority':_0x15be('0x1e')});}[_0x15be('0x3d')](){const _0x50ab7a=this[_0x15be('0x31')]['plugins'][_0x15be('0x1c')](_0x15be('0x2b')),_0x3615ad=this[_0x15be('0x31')][_0x15be('0x7')]['get'](_0x461689),_0x337571=Array[_0x15be('0x5b')](_0x50ab7a[_0x15be('0x66')],_0x1b8964=>_0x1b8964[_0x15be('0x51')])[_0x15be('0x10')](_0x22cae8=>this[_0x15be('0x5e')]['has'](_0x22cae8)),_0x4471ef=[];for(const _0x166d27 of _0x337571){const _0x3fb4ac=this[_0x15be('0x5e')]['get'](_0x166d27)[_0x15be('0x38')][_0x15be('0x11')]();_0x4471ef['push'](..._0x3fb4ac[_0x15be('0x46')]((_0x432611,_0x676381)=>[..._0x432611,..._0x676381[_0x15be('0x54')]()],[]));}_0x3615ad['activeMarkers']=_0x4471ef;}[_0x15be('0x24')](_0x296d4f){const _0x5d9298=_0x263189(_0x296d4f,_0x298ef3),_0x3b31d5=this[_0x15be('0x31')][_0x15be('0x6')][_0x15be('0x1c')](_0x15be('0xe')),_0x5781e5=_0x6a6c28(_0x296d4f,_0x15be('0x17'));_0x5d9298[_0x15be('0xf')][_0x15be('0x6c')]({'tooltip':_0x5781e5,'label':_0x5781e5,'icon':_0x3f5ea4}),_0x5d9298[_0x15be('0xf')][_0x15be('0x4a')](_0x15be('0x20'))['to'](_0x3b31d5,_0x15be('0x59')),_0x5d9298[_0x15be('0xf')]['on'](_0x15be('0xd'),()=>{_0x3b31d5[_0x15be('0xd')](),this['editor'][_0x15be('0x44')][_0x15be('0x4b')][_0x15be('0x2f')]();});const _0xcb8896=new _0x348ad8(),_0xeb5659=[{'type':_0x15be('0x22'),'model':{'withText':!0x0,'label':_0x5781e5,'commandName':_0x15be('0xe')}},{'type':'separator'},{'type':_0x15be('0x6a'),'model':{'withText':!0x0,'label':_0x6a6c28(_0x296d4f,_0x15be('0x37')),'commandName':_0x15be('0x65')}},{'type':_0x15be('0x6a'),'model':{'withText':!0x0,'label':_0x6a6c28(_0x296d4f,_0x15be('0x50')),'commandName':_0x15be('0xb')}},{'type':'button','model':{'withText':!0x0,'label':_0x6a6c28(_0x296d4f,_0x15be('0x8')),'commandName':_0x15be('0x28')}},{'type':_0x15be('0x6a'),'model':{'withText':!0x0,'label':_0x6a6c28(_0x296d4f,_0x15be('0x3c')),'commandName':'discardSelectedSuggestions'}}];for(const _0x4c0d1b of _0xeb5659){const _0x5d87a7={'type':_0x4c0d1b['type']};if(_0x4c0d1b[_0x15be('0x38')]){const _0x5ad30a=new _0x6746a1(_0x4c0d1b[_0x15be('0x38')]),_0x131042=this['editor']['commands'][_0x15be('0x1c')](_0x5ad30a['commandName']);_0x5ad30a[_0x15be('0x4a')](_0x15be('0x20'),_0x15be('0x33'))['to'](_0x131042,_0x15be('0x59'),_0x15be('0x33')),_0x5d87a7[_0x15be('0x38')]=_0x5ad30a;}_0xcb8896[_0x15be('0x1a')](_0x5d87a7);}_0xd2bca7(_0x5d9298,_0xcb8896);const _0x2a5eca=_0xeb5659['filter'](_0x4b3a00=>null!=_0x4b3a00['model'])[_0x15be('0x23')](_0x7a9012=>this[_0x15be('0x31')][_0x15be('0x6')][_0x15be('0x1c')](_0x7a9012[_0x15be('0x38')][_0x15be('0x35')]));return _0x5d9298[_0x15be('0xf')][_0x15be('0x2')][_0x15be('0x19')](_0x15be('0x33')),_0x5d9298[_0x15be('0xf')][_0x15be('0x1f')]['unbind'](_0x15be('0x33')),_0x5d9298[_0x15be('0xf')][_0x15be('0x2')][_0x15be('0x4a')](_0x15be('0x33'))['to'](_0x3b31d5,_0x15be('0x33')),_0x5d9298[_0x15be('0xf')][_0x15be('0x1f')]['bind']('isEnabled')[_0x15be('0xa')](_0x2a5eca,'isEnabled',(..._0x440a93)=>_0x440a93[_0x15be('0x14')](_0x3ab039=>_0x3ab039)),_0x5d9298['on']('execute',_0x32ab93=>{this[_0x15be('0x31')]['execute'](_0x32ab93[_0x15be('0x25')]['commandName']),this[_0x15be('0x31')][_0x15be('0x44')][_0x15be('0x4b')][_0x15be('0x2f')]();}),_0x5d9298;}['_initializeController'](_0x4595e7){const _0x427460=this['editor'],_0x11b75b=_0x427460[_0x15be('0x3f')],_0x2e45c6=_0x427460[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x2b')),_0x4760a6=_0x427460[_0x15be('0x7')]['get'](_0x15be('0x29')),_0x9edea7=_0x427460[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x55')),_0x2a7039=_0x427460[_0x15be('0x7')]['get'](_0x3f1c77)['me'],_0x16761b=_0x11b75b[_0x15be('0x1c')](_0x15be('0xe'))[_0x15be('0x5f')],{CommentsListView:_0x18c8ba,CommentThreadInputView:_0x553f34}=_0x427460[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x4e'));let _0x24224f,_0x209353;this[_0x15be('0x3')]['has'](_0x4595e7['id'])?(_0x209353=this[_0x15be('0x3')][_0x15be('0x1c')](_0x4595e7['id']),_0x24224f=_0x209353['mainView']):(_0x24224f=new _0x16761b(_0x427460['locale'],_0x4595e7,_0x2a7039,{'disableComments':this[_0x15be('0x63')],'editorConfig':_0x11b75b[_0x15be('0x1c')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x11b75b['get'](_0x15be('0x13')),'maxThreadTotalWeight':_0x11b75b[_0x15be('0x1c')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x11b75b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x17a5ef(_0x11b75b['get'](_0x15be('0x60'))),'CommentView':_0x11b75b[_0x15be('0x1c')](_0x15be('0x52'))['CommentView'],'CommentsListView':_0x18c8ba,'CommentThreadInputView':_0x553f34}),_0x24224f[_0x15be('0x21')]['on'](_0x15be('0xd'),()=>{_0x427460[_0x15be('0x44')][_0x15be('0x4b')][_0x15be('0x2f')]();}),_0x24224f[_0x15be('0x1')]['on']('execute',()=>{_0x427460[_0x15be('0x44')]['view'][_0x15be('0x2f')]();}),_0x209353=_0x2e45c6[_0x15be('0x5')](this['editor']['locale'],_0x24224f),_0x209353[_0x15be('0x4a')](_0x15be('0x45'))['to'](_0x24224f,_0x15be('0x45')),_0x209353['bind'](_0x15be('0x4d'))['to'](_0x24224f),_0x209353[_0x15be('0x4a')](_0x15be('0x1d'))['to'](_0x24224f,'type',_0x1d9eb4=>_0x15be('0x41')+_0x1d9eb4),this[_0x15be('0x3')][_0x15be('0x6c')](_0x4595e7['id'],_0x209353));const _0x1a86d2=_0x4760a6[_0x15be('0x56')](_0x4595e7[_0x15be('0x30')],_0x24224f),_0x392ed=new _0x173c1b(_0x427460,_0x4595e7,_0x24224f,_0x1a86d2),_0x20d3f1=_0x4595e7[_0x15be('0x11')]()[_0x15be('0x10')](_0x3160b7=>_0x3160b7[_0x15be('0x3a')]);_0x24224f[_0x15be('0x40')]=_0x427460[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x43'))[_0x15be('0x4f')][_0x15be('0x57')](_0x20d3f1),this[_0x15be('0x42')][_0x15be('0x6c')](_0x4595e7,_0x392ed),this['_viewToController']['set'](_0x24224f,_0x392ed);const _0x43af46=_0x2e45c6[_0x15be('0x32')]({'view':_0x209353,'target':()=>{const _0x5886e4=[],_0x424c73=_0x4595e7[_0x15be('0x11')]()['filter'](_0x36f23f=>_0x36f23f[_0x15be('0x3a')]);for(const _0x4cadfd of _0x424c73)_0x5886e4[_0x15be('0x2c')](..._0x4cadfd[_0x15be('0x9')]());return _0x6b5b22(_0x427460[_0x15be('0x44')],_0x5886e4);},'type':()=>_0x15be('0x41')+_0x392ed[_0x15be('0x4b')]['type']});_0x2e45c6['add'](_0x43af46),_0x9edea7[_0x15be('0x64')](_0x43af46);}[_0x15be('0x47')](_0x6eaebe){const _0x4adb85=this[_0x15be('0x31')][_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x2b')),_0xe81609=this[_0x15be('0x42')][_0x15be('0x1c')](_0x6eaebe),_0x2426a8=_0xe81609[_0x15be('0x4b')],_0x1df149=_0x4adb85['getByInnerView'](_0x2426a8);_0x1df149&&_0x4adb85['remove'](_0x1df149),this['_suggestionToController'][_0x15be('0x18')](_0x6eaebe),this[_0x15be('0x5e')][_0x15be('0x18')](_0x2426a8),_0xe81609[_0x15be('0x26')]();}['_updateController'](_0x2a3a30){if(!_0x2a3a30['isInContent']||!this[_0x15be('0x42')][_0x15be('0x67')](_0x2a3a30))return;const _0x5c76ec=this['editor']['plugins'][_0x15be('0x1c')](_0x15be('0x43')),_0x654315=this[_0x15be('0x42')][_0x15be('0x1c')](_0x2a3a30),_0x3a2c8b=_0x2a3a30['getAllAdjacentSuggestions']();_0x654315[_0x15be('0x4b')]['descriptionParts']=_0x5c76ec['_descriptionFactory'][_0x15be('0x57')](_0x3a2c8b);}[_0x15be('0x26')](){for(const _0x399de6 of this[_0x15be('0x42')][_0x15be('0x0')]())this[_0x15be('0x47')](_0x399de6);for(const _0x11f6f5 of this[_0x15be('0x3')][_0x15be('0xc')]())_0x11f6f5[_0x15be('0x5c')]['destroy']();super['destroy']();}}
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 {};