@ckeditor/ckeditor5-track-changes 35.2.1 → 35.3.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 (158) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/build/track-changes.js +2 -2
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/bg.js +1 -1
  7. package/build/translations/bn.js +1 -1
  8. package/build/translations/ca.js +1 -1
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es.js +1 -1
  15. package/build/translations/et.js +1 -1
  16. package/build/translations/fi.js +1 -1
  17. package/build/translations/fr.js +1 -1
  18. package/build/translations/gl.js +1 -1
  19. package/build/translations/he.js +1 -1
  20. package/build/translations/hi.js +1 -1
  21. package/build/translations/hr.js +1 -1
  22. package/build/translations/hu.js +1 -1
  23. package/build/translations/id.js +1 -1
  24. package/build/translations/it.js +1 -1
  25. package/build/translations/ja.js +1 -1
  26. package/build/translations/ko.js +1 -1
  27. package/build/translations/lt.js +1 -1
  28. package/build/translations/lv.js +1 -1
  29. package/build/translations/ms.js +1 -1
  30. package/build/translations/nl.js +1 -1
  31. package/build/translations/no.js +1 -1
  32. package/build/translations/pl.js +1 -1
  33. package/build/translations/pt-br.js +1 -1
  34. package/build/translations/pt.js +1 -1
  35. package/build/translations/ro.js +1 -1
  36. package/build/translations/ru.js +1 -1
  37. package/build/translations/sk.js +1 -1
  38. package/build/translations/sr-latn.js +1 -1
  39. package/build/translations/sr.js +1 -1
  40. package/build/translations/sv.js +1 -1
  41. package/build/translations/th.js +1 -1
  42. package/build/translations/tk.js +1 -1
  43. package/build/translations/tr.js +1 -1
  44. package/build/translations/tt.js +1 -1
  45. package/build/translations/uk.js +1 -1
  46. package/build/translations/ur.js +1 -1
  47. package/build/translations/vi.js +1 -1
  48. package/build/translations/zh-cn.js +1 -1
  49. package/build/translations/zh.js +1 -1
  50. package/lang/contexts.json +4 -1
  51. package/lang/translations/ar.po +12 -0
  52. package/lang/translations/az.po +12 -0
  53. package/lang/translations/bg.po +12 -0
  54. package/lang/translations/bn.po +12 -0
  55. package/lang/translations/ca.po +12 -0
  56. package/lang/translations/cs.po +12 -0
  57. package/lang/translations/da.po +12 -0
  58. package/lang/translations/de.po +12 -0
  59. package/lang/translations/el.po +12 -0
  60. package/lang/translations/en-au.po +12 -0
  61. package/lang/translations/en.po +12 -0
  62. package/lang/translations/es.po +12 -0
  63. package/lang/translations/et.po +12 -0
  64. package/lang/translations/fi.po +12 -0
  65. package/lang/translations/fr.po +12 -0
  66. package/lang/translations/gl.po +12 -0
  67. package/lang/translations/he.po +12 -0
  68. package/lang/translations/hi.po +12 -0
  69. package/lang/translations/hr.po +12 -0
  70. package/lang/translations/hu.po +12 -0
  71. package/lang/translations/id.po +12 -0
  72. package/lang/translations/it.po +12 -0
  73. package/lang/translations/ja.po +12 -0
  74. package/lang/translations/ko.po +12 -0
  75. package/lang/translations/lt.po +12 -0
  76. package/lang/translations/lv.po +12 -0
  77. package/lang/translations/ms.po +12 -0
  78. package/lang/translations/nl.po +12 -0
  79. package/lang/translations/no.po +12 -0
  80. package/lang/translations/pl.po +12 -0
  81. package/lang/translations/pt-br.po +12 -0
  82. package/lang/translations/pt.po +12 -0
  83. package/lang/translations/ro.po +12 -0
  84. package/lang/translations/ru.po +12 -0
  85. package/lang/translations/sk.po +12 -0
  86. package/lang/translations/sr-latn.po +12 -0
  87. package/lang/translations/sr.po +12 -0
  88. package/lang/translations/sv.po +12 -0
  89. package/lang/translations/th.po +12 -0
  90. package/lang/translations/tk.po +12 -0
  91. package/lang/translations/tr.po +12 -0
  92. package/lang/translations/tt.po +12 -0
  93. package/lang/translations/uk.po +12 -0
  94. package/lang/translations/ur.po +12 -0
  95. package/lang/translations/vi.po +12 -0
  96. package/lang/translations/zh-cn.po +12 -0
  97. package/lang/translations/zh.po +12 -0
  98. package/package.json +4 -4
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/{utils/sortsuggestions.js → commands/executeonallsuggestionscommand.js} +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +23 -0
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/integrations/alignment.js +1 -1
  105. package/src/integrations/basicstyles.js +1 -1
  106. package/src/integrations/blockquote.js +1 -1
  107. package/src/integrations/ckbox.js +1 -1
  108. package/src/integrations/codeblock.js +1 -1
  109. package/src/integrations/comments.js +1 -1
  110. package/src/integrations/deletecommand.js +1 -1
  111. package/src/integrations/documentlist.js +23 -0
  112. package/src/integrations/entercommand.js +1 -1
  113. package/src/integrations/font.js +1 -1
  114. package/src/integrations/heading.js +1 -1
  115. package/src/integrations/highlight.js +1 -1
  116. package/src/integrations/horizontalline.js +1 -1
  117. package/src/integrations/htmlembed.js +1 -1
  118. package/src/integrations/image.js +1 -1
  119. package/src/integrations/importword.js +1 -1
  120. package/src/integrations/indent.js +1 -1
  121. package/src/integrations/inputcommand.js +1 -1
  122. package/src/integrations/link.js +1 -1
  123. package/src/integrations/list.js +1 -1
  124. package/src/integrations/mediaembed.js +1 -1
  125. package/src/integrations/mention.js +1 -1
  126. package/src/integrations/pagebreak.js +1 -1
  127. package/src/integrations/paragraph.js +1 -1
  128. package/src/integrations/removeformat.js +1 -1
  129. package/src/integrations/restrictededitingmode.js +1 -1
  130. package/src/integrations/shiftentercommand.js +1 -1
  131. package/src/integrations/standardeditingmode.js +1 -1
  132. package/src/integrations/style.js +1 -1
  133. package/src/integrations/table.js +1 -1
  134. package/src/{utils/normalizedescription.js → integrations/tablecaption.js} +1 -1
  135. package/src/integrations/tableclipboard.js +1 -1
  136. package/src/integrations/tableheadings.js +1 -1
  137. package/src/integrations/tablemergesplit.js +1 -1
  138. package/src/integrations/title.js +1 -1
  139. package/src/integrations/undo.js +1 -1
  140. package/src/integrations/utils.js +1 -1
  141. package/src/suggestion.js +1 -1
  142. package/src/suggestiondescriptionfactory.js +1 -1
  143. package/src/trackchanges.js +1 -1
  144. package/src/trackchangesdata.js +1 -1
  145. package/src/trackchangesediting.js +1 -1
  146. package/src/trackchangesui.js +1 -1
  147. package/src/ui/suggestioncontroller.js +1 -1
  148. package/src/ui/view/basesuggestionthreadview.js +1 -1
  149. package/src/ui/view/suggestionthreadview.js +1 -1
  150. package/src/utils/common-translations.js +1 -1
  151. package/src/utils/utils.js +23 -0
  152. package/src/commands/acceptallsuggestionscommand.js +0 -23
  153. package/src/commands/acceptselectedsuggestionscommand.js +0 -23
  154. package/src/commands/discardallsuggestionscommand.js +0 -23
  155. package/src/commands/discardselectedsuggestionscommand.js +0 -23
  156. package/src/utils/getrangesofblockgroups.js +0 -23
  157. package/src/utils/getselectedsuggestions.js +0 -23
  158. package/src/utils/hashobject.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1476=['_getExternalAuthor','start','_cutOutSuggestionMarker','_addThreadToSuggestion','getWalker','move','_defaultCallbacks','resolve','getLastMatchingPosition','formatBlock:chain','track-changes-command-not-found','insertion:discard','for','from','addMarker','_joinSuggestions','addHighlight','_adapter','showSuggestionHighlights','splice','conversion','addClass','mapper','setTo','markMultiRangeInsertion','element','suggestion','formatBlock:discard','addUser','length','name','clear','containerElement','markDeletion','removeComment','catch','commands','remove','_findSuggestions','_registerDefaultCallbacks','_addSuggestionMarker','formatBlock','accept','batch','fire','rethrowUnexpectedError','@external','listenTo','high','getMultiRangeId','highest','map','insertion:','oldRange','updateMarker','acceptAllSuggestions','ready','isRemovable','writer','isMultiRange','dataDowncast','$graveyard','PENDING_ACTION_SUGGESTION','options','suggestionUnloaded','rejected','deletion:join','deleteContent','attributes','change:data','addComment','formatInline:','plugins','getSuggestionCallback','data','add','formatInline:chain','createPositionBefore','open','buildSuggestion','elementToElement','upcast','getShiftedBy','formatInline:discard','discardAllSuggestions','backward','_isForcedDefaultExecutionBlock','getRanges','createdAt','formatBlock:accept','getAttribute','suggestionChanged','range','getUser','acceptSuggestion','then','set','editor','_commentsRepository','markers','_suggestions','isAtEnd','removeMarker','refresh','model','hasSuggestion','activeMarkers','Users','fromCharCode','hasComments','selection','_editor','_enabledCommands','adapter','isInContent','createPositionAt','type','detach','_updateSuggestionData','elementStart','removed','forceDefaultExecution','insertContent','sort','commentThread','ck-suggestion-marker','fetchCommentThread','isNextTo','isEqual','getSuggestions','_splitMarkerName','originalSuggestionId','notReady','CommentsRepository','splitPosition','subType','dataToMarker','differ','enqueueChange','formatInline','hasCommentThread','marker-count','consumable','_getSuggestionData','unbind','_setSuggestionData','every','forward','chain','newRange','containsRangeInObject','isSelectable','author','getItems','group','skipNestingCheck','has','removeMarker:suggestion:formatBlock','insertion','previous','isTouching','includes','error-saving-suggestion-data-suggestion-discarded','_customCallbacks','getAllAdjacentSuggestions','addMarkerName','markMultiRangeBlockFormat','enableCommand','locale','execute','isLimit','getDifference','removeAttribute','_descriptionFactory','updateSuggestion','stopListening','deletion:','multipleBlocks','_setSuggestionRange','multi','createRangeIn','track-changes-suggestion-data-mismatch','markBlockFormat','setSelection','init','fromRange','ck-suggestion-marker-','discardSuggestion','isInsideObject','markerToHighlight','containsPosition','markerReady','toViewElement','isAtStart','getRange','_handleNewSuggestionMarker','createRange','accepted','authorName','isBefore','getFirstRange','nodeAfter','_checkSuggestionCorrectness','addMarker:suggestion:formatBlock','addMarker:suggestion','registerCustomCallback','targetPosition','_suggestionState','stop','return','getSuggestion','document','registerPostFixer','getAncestors','isIntersectingWithRange','size','some','consume','deletion:discard','_suggestionFactory','parent','nodeBefore','_joinWithAdjacentSuggestions','dataReady','bindElementToMarker','PendingActions','data-suggestion','suggestionLoaded','addCommentThread','deletion:chain','isOwn','markInlineFormat','insertion:chain','markerToData','isUndo','formatBlock:join','formatGroupId','formatInline:join','values','setAttribute','_model','isCollapsed','change','_saved','ck-suggestion-marker--active','createSelection','isObject','ck-suggestion-marker-formatBlock','insertion:accept','delete','getChangedMarkers','root','addSuggestion','isAfter','schema','clone','filter','markInsertion','trackChangesCommand','trackChanges','join','markerName','substr','markMultiRangeDeletion','isDocumentOperation','editingDowncast','split','suggestion:','getIntersection','before','createElement','push','acceptSelectedSuggestions','insertion:join','isBlock','deletion:accept','addSuggestionData','discard','item','getCustomProperty','howMany','TrackChangesEditing','discardSelectedSuggestions','get','change:_saved','deletion','_refreshSuggestionsChain','track-changes-user-not-found','_rangeIsInLocalUserInsertion','after','getNearestSelectionRange','end','removeMarkers','commandName','rootName','next','getFirstMarker','insert','config','formatInline:accept','addRange','containsRange','_getAuthorFromId','removeClass'];(function(_0x78654a,_0x147612){const _0x255144=function(_0x26a04f){while(--_0x26a04f){_0x78654a['push'](_0x78654a['shift']());}};_0x255144(++_0x147612);}(_0x1476,0x83));const _0x2551=function(_0x78654a,_0x147612){_0x78654a=_0x78654a-0x0;let _0x255144=_0x1476[_0x78654a];return _0x255144;};import{Plugin as _0x35a535,PendingActions as _0x3a1a3d}from'ckeditor5/src/core';import{LiveRange as _0x59087f}from'ckeditor5/src/engine';import{CKEditorError as _0x1d0d3c,uid as _0x8909f2,priorities as _0x39766d,EmitterMixin as _0x4c0cfe,mix as _0x306206,logWarning as _0x863670}from'ckeditor5/src/utils';import{toWidget as _0x1d8a83}from'ckeditor5/src/widget';import{Users as _0x4a3172}from'ckeditor5-collaboration/src/collaboration-core';import _0x13a8b0 from'./commands/trackchangescommand';import _0x35323c from'./commands/acceptsuggestioncommand';import _0x4d777c from'./commands/discardsuggestioncommand';import _0x5cd782 from'./commands/acceptallsuggestionscommand';import _0x360557 from'./commands/acceptselectedsuggestionscommand';import _0x5acbbe from'./commands/discardallsuggestionscommand';import _0xbd7e9c from'./commands/discardselectedsuggestionscommand';import _0x2600ac from'./suggestion';import _0x32ad79 from'./suggestiondescriptionfactory';import _0x4a7120 from'./integrations/alignment';import _0x10a708 from'./integrations/basicstyles';import _0x2f1a23 from'./integrations/blockquote';import _0x7af8a4 from'./integrations/ckbox';import _0x1f21a9 from'./integrations/codeblock';import _0x320eb9 from'./integrations/comments';import _0xba6841 from'./integrations/deletecommand';import _0x237f2e from'./integrations/entercommand';import _0x4fcda5 from'./integrations/font';import _0x30bcc7 from'./integrations/heading';import _0x38e119 from'./integrations/highlight';import _0x84c390 from'./integrations/horizontalline';import _0x1dfb85 from'./integrations/htmlembed';import _0x9fc0b5 from'./integrations/image';import _0x532b86 from'./integrations/importword';import _0x902bd3 from'./integrations/indent';import _0x3061a1 from'./integrations/inputcommand';import _0x485ca2 from'./integrations/link';import _0x5bc3c6 from'./integrations/list';import _0x1e8b49 from'./integrations/mediaembed';import _0xacca4b from'./integrations/mention';import _0x306227 from'./integrations/pagebreak';import _0x3be5a9 from'./integrations/paragraph';import _0x8d7899 from'./integrations/removeformat';import _0x121575 from'./integrations/restrictededitingmode';import _0x3b4520 from'./integrations/shiftentercommand';import _0x26d63f from'./integrations/standardeditingmode';import _0x47dfa2 from'./integrations/style';import _0x511831 from'./integrations/table';import _0x1830eb from'./integrations/tablemergesplit';import _0x1d9070 from'./integrations/tableheadings';import _0x2d146a from'./integrations/tableclipboard';import _0x21a3d5 from'./integrations/title';import _0x51a7e5 from'./integrations/undo';import _0x3bfa65 from'./utils/hashobject.js';import{getTranslation as _0x49a8a7}from'./utils/common-translations';export default class d extends _0x35a535{static get['requires'](){return[_0x2551('0x2'),_0x4a3172,_0x3a1a3d,_0x4a7120,_0x10a708,_0x2f1a23,_0x7af8a4,_0x1f21a9,_0x320eb9,_0xba6841,_0x237f2e,_0x4fcda5,_0x30bcc7,_0x38e119,_0x84c390,_0x1dfb85,_0x9fc0b5,_0x532b86,_0x902bd3,_0x3061a1,_0x485ca2,_0x5bc3c6,_0x1e8b49,_0xacca4b,_0x306227,_0x3be5a9,_0x8d7899,_0x121575,_0x3b4520,_0x26d63f,_0x47dfa2,_0x511831,_0x1830eb,_0x1d9070,_0x2d146a,_0x21a3d5,_0x51a7e5];}static get['pluginName'](){return _0x2551('0x96');}constructor(_0x23f957){function _0x322b81(_0x21ce85){return _0x21ce85[_0x2551('0xe0')](_0x11e3cf=>String[_0x2551('0x119')](_0x11e3cf))[_0x2551('0x81')]('');}super(_0x23f957),this[_0x2551('0x10d')](_0x2551('0x117'),[]),this['on']('change:activeMarkers',(_0x10cf9d,_0x299dd2,_0x3e1f55,_0xa094f4)=>{this['_model']['change'](()=>{for(const _0x15fa8c of[..._0xa094f4,..._0x3e1f55])this['_model'][_0x2551('0x110')]['has'](_0x15fa8c)&&_0x23f957['editing']['reconvertMarker'](_0x15fa8c);});}),this[_0x2551('0x2a')]=new _0x32ad79(this[_0x2551('0x10e')][_0x2551('0x115')]['schema'],this[_0x2551('0x10e')][_0x2551('0x25')]),this['_adapter']=null,this['_suggestionFactory']=new wt(this['editor']),this[_0x2551('0x111')]=new Map(),this[_0x2551('0x10f')]=_0x23f957['plugins'][_0x2551('0x98')](_0x2551('0x2')),this['_enabledCommands']=new Set(),this['_model']=this[_0x2551('0x10e')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2551('0x103')]=!0x1,this[_0x322b81([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x322b81([0x34,0x30,0x34,0x34,0x32,0x30,0x32,0x32]);}[_0x2551('0x35')](){const _0x19217e=this['editor'];_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0x86'))[_0x2551('0x3a')]({'model':_0x2551('0xc7'),'view':_0x47c46c=>{const {id:_0x1922a8,type:_0x383a67}=this['_splitMarkerName'](_0x47c46c['markerName']),_0x53972d=[_0x2551('0x12a'),'ck-suggestion-marker-'+_0x383a67];let _0x583c92=0xbb8;return this[_0x2551('0x117')]['includes'](_0x47c46c[_0x2551('0x82')])&&(_0x53972d[_0x2551('0x8c')](_0x2551('0x71')),_0x583c92=0xbc2),_0x2551('0x9a')==_0x383a67&&(_0x583c92+=0x5),{'classes':_0x53972d,'attributes':{'data-suggestion':_0x1922a8},'priority':_0x583c92};}}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0xf8')](_0x22b16f=>{_0x22b16f['on'](_0x2551('0x49'),(_0x2d8425,_0x1b4eab,_0x4a632a)=>{if(!_0x4a632a[_0x2551('0xec')][_0x2551('0xbf')])return;const _0x21d97b=_0x1b4eab['item'];if(!_0x21d97b)return;const _0x32dba9=_0x4a632a[_0x2551('0xc3')][_0x2551('0x3d')](_0x21d97b);_0x19217e[_0x2551('0x115')]['schema']['isObject'](_0x21d97b)&&_0x32dba9&&!_0x32dba9[_0x2551('0x94')]('widget')&&_0x32dba9['is'](_0x2551('0xcd'))&&_0x1d8a83(_0x32dba9,_0x4a632a['writer']);},{'priority':_0x2551('0xdd')});}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0x3a')]({'model':_0x2551('0xc7'),'view':(_0xa0dc01,_0x590430)=>{if(!_0x590430[_0x2551('0xec')]['showSuggestionHighlights'])return null;const {type:_0x25b669}=this[_0x2551('0x12f')](_0xa0dc01[_0x2551('0x82')]);return{'classes':['ck-suggestion-marker',_0x2551('0x37')+_0x25b669],'priority':0xbb8};}});const _0xbf5ffe=({showActiveMarkers:_0x14b7fa=!0x0}={})=>(_0x15720f,_0x41cd5d,_0x5e0434)=>{if(!_0x41cd5d[_0x2551('0x93')])return;if(_0x41cd5d[_0x2551('0x93')]['is'](_0x2551('0x11b')))return void _0x5e0434[_0x2551('0xb')][_0x2551('0x56')](_0x41cd5d[_0x2551('0x93')],_0x15720f[_0x2551('0xcb')]);const _0x54d7e3=_0x5e0434[_0x2551('0xc3')][_0x2551('0x3d')](_0x41cd5d[_0x2551('0x93')]);if(!(_0x41cd5d['item']['is']('element')&&_0x19217e[_0x2551('0x115')]['schema'][_0x2551('0x8f')](_0x41cd5d[_0x2551('0x93')])&&!_0x54d7e3['getCustomProperty'](_0x2551('0xbd'))))return;const {id:_0xb8e6f8}=this[_0x2551('0x12f')](_0x41cd5d['markerName']);_0x5e0434['writer'][_0x2551('0xc2')]([_0x2551('0x12a'),_0x2551('0x74')],_0x54d7e3),_0x5e0434[_0x2551('0xe7')][_0x2551('0x6c')]('data-suggestion',_0xb8e6f8,_0x54d7e3),_0x5e0434[_0x2551('0xc3')][_0x2551('0x5d')](_0x54d7e3,_0x41cd5d['markerName']),_0x14b7fa&&(this[_0x2551('0x117')]['includes'](_0x41cd5d[_0x2551('0x82')])?_0x5e0434['writer'][_0x2551('0xc2')](_0x2551('0x71'),_0x54d7e3):_0x5e0434[_0x2551('0xe7')][_0x2551('0xac')](_0x2551('0x71'),_0x54d7e3));for(const _0x2b5fe5 of _0x19217e[_0x2551('0x115')][_0x2551('0x31')](_0x41cd5d['item'])[_0x2551('0x16')]())_0x5e0434[_0x2551('0xb')]['consume'](_0x2b5fe5,_0x15720f[_0x2551('0xcb')]);_0x5e0434['consumable'][_0x2551('0x56')](_0x41cd5d['item'],_0x15720f['name']);};_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0xf8')](_0x2893b7=>{_0x2893b7['on'](_0x2551('0x48'),(_0x35a5e7,_0x5895f5,_0x2d4f20)=>{_0x2d4f20['options']['showSuggestionHighlights']&&_0xbf5ffe({'showActiveMarkers':!0x1})(_0x35a5e7,_0x5895f5,_0x2d4f20);},{'priority':_0x2551('0xdf')});}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0x66')]({'model':_0x2551('0xc7'),'view':(_0x4c6d68,_0x32837d)=>_0x32837d[_0x2551('0xec')][_0x2551('0xbf')]?null:{'group':_0x2551('0xc7'),'name':_0x4c6d68[_0x2551('0x83')](_0x2551('0xc7')[_0x2551('0xca')]+0x1)}}),_0x19217e['conversion'][_0x2551('0xb9')](_0x2551('0xfe'))[_0x2551('0xfd')]({'view':{'name':'suggestion','attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x38526f,{writer:_0x48116e})=>{let _0x541084=_0x2551('0x88')+_0x38526f[_0x2551('0x107')]('suggestion-type')+':'+_0x38526f['getAttribute']('id');return _0x38526f[_0x2551('0x107')](_0x2551('0xa'))&&(_0x541084+=':'+_0x38526f['getAttribute'](_0x2551('0xa'))),_0x48116e[_0x2551('0x8b')]('$marker',{'data-name':_0x541084});}}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xfe'))[_0x2551('0x5')]({'view':_0x2551('0xc7')}),_0x19217e['conversion'][_0x2551('0xb9')](_0x2551('0x86'))['add'](_0x3d07c5=>{_0x3d07c5['on'](_0x2551('0x48'),_0xbf5ffe(),{'priority':_0x2551('0xdd')});}),_0x19217e['conversion'][_0x2551('0xb9')](_0x2551('0x86'))[_0x2551('0xf8')](_0x8e4c8=>{_0x8e4c8['on'](_0x2551('0x1a'),(_0x23f2c4,_0x1536e6,_0x2b96e5)=>{const _0x2f61ab=_0x2b96e5[_0x2551('0xc3')]['markerNameToElements'](_0x1536e6[_0x2551('0x82')]);if(_0x2f61ab)for(const _0x10a486 of _0x2f61ab)_0x10a486['getCustomProperty'](_0x2551('0xbd'))||(_0x2b96e5[_0x2551('0xe7')]['removeClass']([_0x2551('0x12a'),_0x2551('0x74'),_0x2551('0x71')],_0x10a486),_0x2b96e5['writer'][_0x2551('0x29')](_0x2551('0x5f'),_0x10a486),_0x2b96e5[_0x2551('0xc3')]['unbindElementFromMarkerName'](_0x10a486,_0x1536e6[_0x2551('0x82')]));},{'priority':_0x2551('0xdd')});}),_0x19217e[_0x2551('0x115')]['document'][_0x2551('0x51')](_0x15fc46=>{let _0x4273e4=!0x1;const _0x2aa9bc=Array['from'](_0x19217e[_0x2551('0x115')][_0x2551('0x50')][_0x2551('0x6')][_0x2551('0x77')]()),_0x3fb7fc=new Set();for(const {name:_0x5250d3,data:_0xfddd8b}of _0x2aa9bc){const {group:_0x59882f,type:_0x40cf3e,id:_0x2d3329}=this['_splitMarkerName'](_0x5250d3);if(_0x2551('0xc7')!==_0x59882f)continue;const _0x3cf1ba=this['_suggestions'][_0x2551('0x98')](_0x2d3329);if(null!=_0xfddd8b[_0x2551('0x12')]){_0x2551('0x8')==_0x40cf3e&&(_0x4273e4=_0x4273e4||St(_0xfddd8b[_0x2551('0x12')],_0x5250d3,_0x15fc46,_0x19217e[_0x2551('0x115')]['schema']));if(_0xfddd8b[_0x2551('0x12')][_0x2551('0x6e')]||_0x2551('0xea')==_0xfddd8b['newRange']['root']['rootName']||'formatBlock'==_0x40cf3e&&!vt(_0xfddd8b['newRange'])||_0x2551('0x9a')==_0x40cf3e&&!(!bt(_0x5497b1=_0xfddd8b[_0x2551('0x12')])&&!function(_0x188f22){return _0x188f22[_0x2551('0xae')][_0x2551('0x59')]==_0x188f22[_0x2551('0xa0')][_0x2551('0x5a')]&&_0x188f22[_0x2551('0xae')][_0x2551('0x112')];}(_0x5497b1)))_0x15fc46[_0x2551('0x113')](_0x5250d3),_0x4273e4=!0x0;else{if(!_0x3cf1ba||!_0x3cf1ba[_0x2551('0x11f')])continue;_0x3fb7fc['add'](_0x3cf1ba);}}}var _0x5497b1;return _0x3fb7fc[_0x2551('0x54')]>0x0&&(_0x4273e4=!!this['_joinWithAdjacentSuggestions'](_0x3fb7fc)||_0x4273e4),_0x4273e4;}),_0x19217e[_0x2551('0x115')][_0x2551('0x50')]['registerPostFixer'](_0x4c1db4=>{let _0x1b2a9f=!0x1;for(const _0x3043c5 of _0x19217e['model'][_0x2551('0x50')][_0x2551('0x6')]['getChanges']()){if(_0x2551('0xa6')!=_0x3043c5[_0x2551('0x121')])continue;const _0x23b9b4=_0x3043c5['position'][_0x2551('0xff')](_0x3043c5[_0x2551('0xca')]);if(_0x23b9b4[_0x2551('0x112')])for(const _0x41604b of this[_0x2551('0x111')][_0x2551('0x6b')]()){if(_0x41604b[_0x2551('0xe8')]||!_0x41604b['isInContent'])continue;if(_0x2551('0xd6')!=_0x41604b['type'])continue;const _0x4eec16=_0x41604b[_0x2551('0x45')]();if(_0x4eec16[_0x2551('0xae')][_0x2551('0x59')]!=_0x4eec16[_0x2551('0xa0')][_0x2551('0x59')]&&_0x4eec16[_0x2551('0xa0')][_0x2551('0x12d')](_0x3043c5['position'])){const _0x4718c8=_0x19217e[_0x2551('0x115')]['createRange'](_0x4eec16[_0x2551('0xae')],_0x23b9b4);_0x4c1db4[_0x2551('0xe3')](_0x41604b[_0x2551('0xa5')](),{'range':_0x4718c8}),_0x1b2a9f=!0x0;}}}return _0x1b2a9f;}),_0x19217e[_0x2551('0x115')][_0x2551('0x110')]['on']('update:suggestion',(_0x16cecf,_0x568641,_0x1b8f8d)=>{if(null==_0x1b8f8d){const {id:_0x3640a5}=this[_0x2551('0x12f')](_0x568641['name']),_0x3ca59b=this[_0x2551('0x111')][_0x2551('0x98')](_0x3640a5);_0x3ca59b&&_0x3ca59b[_0x2551('0x22')](_0x568641[_0x2551('0xcb')]);}}),_0x19217e[_0x2551('0x115')][_0x2551('0x50')]['on'](_0x2551('0xf2'),()=>{const _0x3c7bb4=Array['from'](_0x19217e[_0x2551('0x115')][_0x2551('0x50')][_0x2551('0x6')][_0x2551('0x77')]())[_0x2551('0x7d')](_0x410af5=>_0x2551('0xc7')===this[_0x2551('0x12f')](_0x410af5[_0x2551('0xcb')])[_0x2551('0x17')]);if(0x0===_0x3c7bb4[_0x2551('0xca')])return;_0x3c7bb4[_0x2551('0x128')]((_0x1f6caf,_0x282bf4)=>{const _0x9bdcea=_0x1f6caf[_0x2551('0xf7')][_0x2551('0xe2')],_0x2e7295=_0x282bf4[_0x2551('0xf7')]['oldRange'];return null===_0x9bdcea&&null===_0x2e7295?0x0:null===_0x9bdcea&&null!==_0x2e7295?-0x1:null!==_0x9bdcea&&null===_0x2e7295?0x1:_0x9bdcea[_0x2551('0xae')][_0x2551('0x44')](_0x2e7295[_0x2551('0xae')])?-0x1:0x1;});const _0x448e0b=new Set(),_0x356f2b=new Set();for(const {name:_0x3dfc86,data:_0x451360}of _0x3c7bb4){const {id:_0x89ecb7}=this['_splitMarkerName'](_0x3dfc86);if(null===_0x451360[_0x2551('0xe2')]){const _0x3f51c6=this[_0x2551('0x40')](_0x3dfc86);_0x356f2b[_0x2551('0xf8')](_0x3f51c6);}else{const _0x314f23=this['_suggestions'][_0x2551('0x98')](_0x89ecb7);null!==_0x451360[_0x2551('0x12')]||_0x314f23[_0x2551('0x11f')]?(_0x448e0b[_0x2551('0xf8')](_0x314f23['head']),_0x356f2b[_0x2551('0xf8')](_0x314f23)):this['_removeSuggestion'](_0x314f23);}}_0x356f2b['size']>0x0&&this['_refreshSuggestionsChain'](_0x356f2b);for(const _0x185703 of _0x448e0b)this[_0x2551('0xd9')](_0x2551('0x108'),_0x185703);}),_0x19217e[_0x2551('0x115')]['on']('applyOperation',(_0x1a0066,_0x3aacad)=>{const _0x1b000e=_0x3aacad[0x0];if(!this[_0x2551('0x111')][_0x2551('0x54')])return;if(!_0x1b000e[_0x2551('0x85')])return;if(_0x1b000e['batch'][_0x2551('0x67')]||!_0x1b000e[_0x2551('0xd8')]['isLocal'])return;let _0x1bd134,_0x50bc4a;switch(_0x1b000e[_0x2551('0x121')]){case _0x2551('0xa6'):_0x1bd134=_0x19217e[_0x2551('0x115')][_0x2551('0x120')](_0x1b000e['position']),_0x50bc4a=_0x1bd134[_0x2551('0xff')](_0x1b000e['howMany']);break;case'split':_0x1bd134=_0x19217e['model'][_0x2551('0x120')](_0x1b000e[_0x2551('0x3')]),_0x50bc4a=_0x19217e['model'][_0x2551('0x120')](_0x1b000e['moveTargetPosition']);break;case _0x2551('0xb2'):_0x1bd134=_0x19217e['model'][_0x2551('0x120')](_0x1b000e[_0x2551('0x4b')]),_0x50bc4a=_0x1bd134[_0x2551('0xff')](_0x1b000e[_0x2551('0x95')]);break;default:return;}const _0x57c890=_0x19217e['model']['createRange'](_0x1bd134,_0x50bc4a);_0x19217e[_0x2551('0x115')][_0x2551('0x6f')](()=>{for(const {suggestion:_0x4a4bf6,meta:_0x3deb9a}of this[_0x2551('0xd3')](_0x57c890)){if(_0x4a4bf6[_0x2551('0xe8')])continue;if('formatInline'==_0x4a4bf6[_0x2551('0x121')])continue;const _0x42bc67=_0x4a4bf6[_0x2551('0xf7')]&&_0x4a4bf6[_0x2551('0xf7')][_0x2551('0x2e')];(_0x2551('0xd6')!=_0x4a4bf6[_0x2551('0x121')]||_0x2551('0x87')==_0x1b000e[_0x2551('0x121')]&&!_0x42bc67)&&(_0x3deb9a[_0x2551('0x13')]||_0x2551('0x1b')==_0x4a4bf6[_0x2551('0x121')]&&_0x3deb9a['isOwn']||_0x4a4bf6[_0x2551('0x45')]()[_0x2551('0xaa')](_0x57c890)&&this['_breakSuggestionMarker'](_0x4a4bf6,_0x1bd134,_0x50bc4a));}});},{'priority':'lowest'}),_0x19217e[_0x2551('0x115')]['on'](_0x2551('0xf0'),(_0x499139,_0x164433)=>{const _0x50df4=_0x164433[0x0],_0x4f49b9=_0x164433[0x1];if(_0x4f49b9&&_0x4f49b9['forceDefaultExecution'])return;if(this[_0x2551('0x103')])return;if(!this[_0x2551('0x7f')]['value'])return;if(_0x50df4['isCollapsed'])return;const _0x212693=_0x19217e[_0x2551('0x115')][_0x2551('0x7b')],{start:_0x272438,end:_0x229694}=_0x50df4[_0x2551('0x45')](),_0x3c5978=_0x272438['nodeAfter']&&_0x212693[_0x2551('0x73')](_0x272438['nodeAfter'])?null:_0x212693[_0x2551('0x9f')](_0x272438,_0x2551('0x10')),_0x195032=_0x229694[_0x2551('0x5a')]&&_0x212693[_0x2551('0x73')](_0x229694[_0x2551('0x5a')])?null:_0x212693['getNearestSelectionRange'](_0x229694,_0x2551('0x102')),_0x8e0d65=_0x19217e[_0x2551('0x115')]['createRange'](_0x3c5978?_0x3c5978['start']:_0x272438,_0x195032?_0x195032['end']:_0x229694);_0x19217e['model'][_0x2551('0x6f')](_0x2215a7=>{this[_0x2551('0xce')](_0x8e0d65);const _0x1b73c6=_0x19217e[_0x2551('0x115')]['schema'][_0x2551('0x9f')](_0x8e0d65[_0x2551('0xae')]);_0x50df4['is']('documentSelection')?_0x2215a7['setSelection'](_0x1b73c6):_0x50df4[_0x2551('0xc4')](_0x1b73c6);}),_0x499139[_0x2551('0x4d')]();},{'priority':_0x39766d['normal']+0xa}),_0x19217e[_0x2551('0x115')]['on'](_0x2551('0x127'),(_0x3c65ba,_0x1fc4c1)=>{const _0x565d5e=_0x1fc4c1[_0x1fc4c1['length']-0x1];_0x565d5e&&_0x565d5e[_0x2551('0x126')]||this[_0x2551('0x103')]||this[_0x2551('0x7f')]['value']&&(_0x19217e[_0x2551('0x115')][_0x2551('0x6f')](()=>{let _0x1421fe=_0x19217e[_0x2551('0x115')][_0x2551('0x127')](_0x1fc4c1[0x0],_0x1fc4c1[0x1],_0x1fc4c1[0x2],_0x1fc4c1[0x3],{'forceDefaultExecution':!0x0});if(!_0x1421fe)return;_0x3c65ba[_0x2551('0x4e')]=_0x1421fe[_0x2551('0x7c')]();const _0x1c4fbc=_0x1421fe[_0x2551('0xa0')][_0x2551('0x5a')],_0xe3c7cd=_0x19217e['model']['schema'];_0x1c4fbc&&_0xe3c7cd['isBlock'](_0x1c4fbc)&&!_0xe3c7cd[_0x2551('0x73')](_0x1c4fbc)&&(_0x1421fe=_0x19217e['model'][_0x2551('0x41')](_0x1421fe[_0x2551('0xae')],_0x19217e[_0x2551('0x115')][_0x2551('0x120')](_0x1c4fbc,'end'))),this[_0x2551('0x7e')](_0x1421fe);}),_0x3c65ba[_0x2551('0x4d')]());},{'priority':_0x2551('0xdd')}),this[_0x2551('0x7f')]=new _0x13a8b0(_0x19217e,this['_enabledCommands']),this[_0x2551('0x10e')]['commands'][_0x2551('0xf8')](_0x2551('0x80'),this['trackChangesCommand']),this[_0x2551('0x24')](_0x2551('0x80'));const _0x5d599d=new _0x35323c(_0x19217e,this['_suggestions']);_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0x10b'),_0x5d599d),this[_0x2551('0x24')](_0x2551('0x10b'));const _0x3db3f8=new _0x4d777c(_0x19217e,this[_0x2551('0x111')]);_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0x38'),_0x3db3f8),this['enableCommand'](_0x2551('0x38')),_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0xe4'),new _0x5cd782(_0x19217e,_0x5d599d,this[_0x2551('0x111')])),this[_0x2551('0x24')](_0x2551('0xe4')),_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0x101'),new _0x5acbbe(_0x19217e,_0x3db3f8,this[_0x2551('0x111')])),this[_0x2551('0x24')]('discardAllSuggestions'),_0x19217e['commands'][_0x2551('0xf8')](_0x2551('0x8d'),new _0x360557(_0x19217e,_0x5d599d,this[_0x2551('0x111')])),this['enableCommand'](_0x2551('0x8d')),_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')]('discardSelectedSuggestions',new _0xbd7e9c(_0x19217e,_0x3db3f8,this[_0x2551('0x111')])),this[_0x2551('0x24')](_0x2551('0x97'));const _0x5c0023=_0x19217e[_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x2'));this['listenTo'](_0x5c0023,_0x2551('0xf3'),(_0x21a5a5,{threadId:_0x458a0c})=>{const _0x27072c=this[_0x2551('0x111')]['get'](_0x458a0c);_0x27072c&&_0x27072c[_0x2551('0x129')]&&0x1===_0x27072c[_0x2551('0x129')]['length']&&this['_updateSuggestionData'](_0x458a0c,{'hasComments':!0x0});},{'priority':'low'}),this[_0x2551('0xdc')](_0x5c0023,_0x2551('0xcf'),(_0x1e426d,{threadId:_0x1954c7})=>{const _0x565c1c=this['_suggestions'][_0x2551('0x98')](_0x1954c7);_0x565c1c&&_0x565c1c['commentThread']&&!_0x565c1c[_0x2551('0x129')][_0x2551('0xca')]&&this[_0x2551('0x123')](_0x1954c7,{'hasComments':!0x1});},{'priority':'low'});}set[_0x2551('0x11e')](_0x20d1a6){if(this[_0x2551('0xbe')])throw new _0x1d0d3c('track-changes-adapter-already-set',this);this[_0x2551('0xbe')]=_0x20d1a6;}get[_0x2551('0x11e')](){return this[_0x2551('0xbe')];}[_0x2551('0x12e')]({skipNotAttached:_0x34d91=!0x1,toJSON:_0x4a1e4f=!0x1}={}){const _0x59c3df=[];for(const _0x12b6e3 of this['_suggestions'][_0x2551('0x6b')]())_0x34d91&&!_0x12b6e3['isInContent']||_0x59c3df[_0x2551('0x8c')](_0x12b6e3);return _0x4a1e4f?_0x59c3df[_0x2551('0xe0')](_0x120613=>_0x120613['toJSON']()):_0x59c3df;}[_0x2551('0x4f')](_0x2df7ad){const _0x3b63d3=this[_0x2551('0x111')][_0x2551('0x98')](_0x2df7ad);if(!_0x3b63d3)throw new _0x1d0d3c('track-changes-suggestion-not-found',this);return _0x3b63d3;}[_0x2551('0x116')](_0x3221fc){return this['_suggestions'][_0x2551('0x19')](_0x3221fc);}['addSuggestionData'](_0x4a50e7){const {id:_0x481c95,authorId:_0x4633c0,attributes:_0x37a4e0}=_0x4a50e7,[_0x2045c4,_0x42cb22]=_0x4a50e7[_0x2551('0x121')][_0x2551('0x87')](':'),_0x59915a=this[_0x2551('0x111')][_0x2551('0x98')](_0x481c95)||this['_createSuggestion'](_0x2045c4,_0x42cb22,_0x481c95,_0x4633c0,_0x37a4e0);switch(this[_0x2551('0xb0')](_0x59915a),this[_0x2551('0x47')](_0x59915a,_0x2045c4,_0x42cb22||null,_0x4633c0),_0x59915a[_0x2551('0x105')]=_0x4a50e7['createdAt'],_0x4a50e7['data']&&(_0x59915a[_0x2551('0xf7')]=_0x4a50e7[_0x2551('0xf7')]),_0x4a50e7[_0x2551('0xf1')]&&(_0x59915a[_0x2551('0xf1')]=_0x4a50e7[_0x2551('0xf1')]),this[_0x2551('0xbe')]&&this[_0x2551('0xbe')][_0x2551('0x79')]||(_0x59915a[_0x2551('0x70')]=!0x0),this[_0x2551('0x4c')]['get'](_0x59915a)){case'notReady':this['_suggestionState'][_0x2551('0x10d')](_0x59915a,_0x2551('0x5c'));break;case _0x2551('0x3c'):_0x59915a[_0x2551('0x11f')]?(this[_0x2551('0x4c')][_0x2551('0x10d')](_0x59915a,'ready'),this[_0x2551('0xd9')](_0x2551('0x60'),_0x59915a)):this['_suggestionState'][_0x2551('0x10d')](_0x59915a,_0x2551('0x125'));}return _0x59915a;}[_0x2551('0x10b')](_0x41465c){this[_0x2551('0x126')](()=>{this['editor'][_0x2551('0x115')][_0x2551('0x6f')](()=>{for(const _0x1cfc75 of _0x41465c[_0x2551('0x21')]())_0x1cfc75[_0x2551('0xd7')]();});});}[_0x2551('0x38')](_0x2d7dd6){this[_0x2551('0x126')](()=>{this[_0x2551('0x10e')][_0x2551('0x115')][_0x2551('0x6f')](()=>{for(const _0x1199de of _0x2d7dd6[_0x2551('0x21')]())_0x1199de[_0x2551('0x92')]();});});}[_0x2551('0x24')](_0x32cfc5,_0x3d369d){const _0x52cf05=this[_0x2551('0x10e')][_0x2551('0xd1')][_0x2551('0x98')](_0x32cfc5);if(!_0x52cf05)throw new _0x1d0d3c(_0x2551('0xb7'),this,{'commandName':_0x32cfc5});this[_0x2551('0x11d')][_0x2551('0xf8')](_0x52cf05),_0x3d369d&&_0x52cf05['on'](_0x2551('0x26'),(_0x163fbe,_0x4df595)=>{this[_0x2551('0x7f')]['value']&&(this[_0x2551('0x103')]||_0x4df595[_0x2551('0xca')]>0x0&&_0x4df595[_0x4df595['length']-0x1]&&_0x4df595[_0x4df595['length']-0x1][_0x2551('0x126')]||(_0x3d369d((..._0x2d8210)=>_0x52cf05[_0x2551('0x26')](..._0x2d8210,{'forceDefaultExecution':!0x0}),..._0x4df595),_0x163fbe[_0x2551('0x4d')]()));},{'priority':_0x2551('0xdd')});}[_0x2551('0x126')](_0x2b0e72){let _0x26d93a,_0x415835;const _0x522d2f=this[_0x2551('0x103')];this[_0x2551('0x103')]=!0x0;try{_0x26d93a=_0x2b0e72();}catch(_0x5a2f1f){_0x415835=_0x5a2f1f;}return _0x522d2f||(this[_0x2551('0x103')]=!0x1),_0x415835&&_0x1d0d3c[_0x2551('0xda')](_0x415835,this),_0x26d93a;}[_0x2551('0x7e')](_0x16df3b,_0x38d4bd=null,_0xb0bccb={}){if(_0x16df3b['isCollapsed'])return null;const _0x2e0534=this[_0x2551('0x10e')]['plugins']['get']('Users')['me'];for(const {suggestion:_0x5e90ef,meta:_0x4cb365}of this['_findSuggestions'](_0x16df3b,_0x2551('0x1b')))if(_0x4cb365['isOwn']){if(!_0x4cb365[_0x2551('0x12c')])return _0x5e90ef;if(_0x38d4bd==_0x5e90ef['subType']){const _0x74419f=_0x5e90ef[_0x2551('0x45')]();return _0x74419f[_0x2551('0xae')][_0x2551('0x12d')](_0x16df3b[_0x2551('0xa0')])?this[_0x2551('0x2f')](_0x5e90ef,this[_0x2551('0x6d')][_0x2551('0x41')](_0x16df3b[_0x2551('0xae')],_0x74419f[_0x2551('0xa0')])):this['_setSuggestionRange'](_0x5e90ef,this[_0x2551('0x6d')][_0x2551('0x41')](_0x74419f[_0x2551('0xae')],_0x16df3b[_0x2551('0xa0')])),_0x5e90ef;}}const _0x2a3902=_0x8909f2(),_0x12dc0d=_0x2e0534['id'],_0xe972b2=_0x38d4bd?'insertion:'+_0x38d4bd:'insertion',_0x2b50a8=this[_0x2551('0xe')]({'id':_0x2a3902,'type':_0xe972b2,'createdAt':new Date(),'authorId':_0x12dc0d,'attributes':_0xb0bccb});return this['_addSuggestionMarker'](_0xe972b2,_0x2a3902,_0x12dc0d,_0x16df3b),_0x2b50a8;}[_0x2551('0xc5')](_0x33adce,_0x23476f=_0x2551('0x30'),_0x3e17a8={}){const _0x3e0692=this[_0x2551('0x10e')][_0x2551('0xf5')]['get'](_0x2551('0x118'))['me'],_0x3d0a00=this['_suggestionFactory'][_0x2551('0xf6')](_0x2551('0x1b'),_0x23476f,_0x2551('0x81'));for(const _0x3934ac of this[_0x2551('0x12e')]())if(_0x3934ac[_0x2551('0x15')]['id']==_0x3e0692['id']&&_0x2551('0x1b')==_0x3934ac['type']&&_0x3934ac[_0x2551('0x4')]==_0x23476f&&(_0x3d0a00(_0x3934ac[_0x2551('0x104')](),_0x33adce)||_0x3d0a00(_0x33adce,_0x3934ac[_0x2551('0x104')]()))){for(const _0x2f8dbc of _0x33adce)_0x3934ac[_0x2551('0xa9')](_0x2f8dbc);return _0x3934ac;}for(const _0x407765 of _0x33adce)for(const {suggestion:_0xa10a6,meta:_0x514332}of this[_0x2551('0xd3')](_0x407765,_0x2551('0x1b'))){if(!_0x514332[_0x2551('0x63')])continue;let _0x1f89f0=!0x0;for(const _0x403739 of _0xa10a6[_0x2551('0x104')]())for(const _0x17cb35 of _0x33adce)if(!_0x403739[_0x2551('0xaa')](_0x17cb35)){_0x1f89f0=!0x1;break;}if(_0x1f89f0)return _0xa10a6;}const _0x4aebbc=_0x8909f2(),_0x178e90=_0x3e0692['id'],_0x364049=_0x2551('0xe1')+_0x23476f,_0x3605fd=this[_0x2551('0xe')]({'id':_0x4aebbc,'type':_0x364049,'createdAt':new Date(),'authorId':_0x178e90,'attributes':_0x3e17a8});for(const _0x2f56b9 of _0x33adce)this[_0x2551('0xd5')](_0x364049,_0x4aebbc,_0x178e90,_0x2f56b9,_0x2600ac[_0x2551('0xde')]());return _0x3605fd;}[_0x2551('0x64')](_0x5f5b54,_0xb9dfa9,_0x635033=null,_0x33aced={}){if(_0x635033=_0x635033||It(_0xb9dfa9),_0x5f5b54['isCollapsed'])return;const _0x1c2e60=this['editor'][_0x2551('0xf5')][_0x2551('0x98')]('Users')['me'],_0x2dae68=[];for(const {suggestion:_0x2a6e00,meta:_0x3a920a}of this[_0x2551('0xd3')](_0x5f5b54,_0x2551('0x1b')))_0x3a920a[_0x2551('0x63')]&&!_0x3a920a[_0x2551('0x39')]&&_0x2dae68['push'](..._0x2a6e00[_0x2551('0x104')]());const _0x46fdc9=function(_0x328fed,_0x5cb6c9){const _0x2aa472=[];for(const _0x3f04ec of _0x5cb6c9){const _0x330221=_0x328fed[_0x2551('0x89')](_0x3f04ec);_0x330221&&_0x2aa472[_0x2551('0x8c')](_0x330221);}return _0x2aa472;}(_0x5f5b54,_0x2dae68),_0x37a126=function(_0x2ba601,_0x771488){const _0x5ccbe9=[_0x2ba601];for(const _0x27ad43 of _0x771488){let _0x3f649e=0x0;for(;_0x3f649e<_0x5ccbe9[_0x2551('0xca')];){const _0x1f6241=_0x5ccbe9[_0x3f649e][_0x2551('0x28')](_0x27ad43);_0x5ccbe9[_0x2551('0xc0')](_0x3f649e,0x1,..._0x1f6241),_0x3f649e+=_0x1f6241['length'];}}return _0x5ccbe9;}(_0x5f5b54,_0x2dae68);_0x46fdc9[_0x2551('0xca')]&&this[_0x2551('0x6d')][_0x2551('0x6f')](()=>{for(const _0x4ef36b of _0x46fdc9){const _0x5beee2=this[_0x2551('0x58')][_0x2551('0xf6')]('formatInline',_0x635033,'accept');this[_0x2551('0x126')](()=>_0x5beee2([_0x4ef36b],_0xb9dfa9,_0x33aced));}});for(const _0x5cfdaf of _0x37a126){let _0x115376=null,_0x4201df=_0x5cfdaf['start'],_0x5d3b20=_0x5cfdaf[_0x2551('0xa0')];for(const {suggestion:_0x3bd626,meta:_0x1abba8}of this[_0x2551('0xd3')](_0x5cfdaf,_0x2551('0x8'))){if(!_0x1abba8['isOwn'])continue;if(_0x3bd626['subType']!=_0x635033)continue;const _0x50c24a=_0x3bd626[_0x2551('0x45')]();if(_0x50c24a[_0x2551('0xaa')](_0x5cfdaf,!0x0))return;_0x4201df=_0x4201df[_0x2551('0x44')](_0x50c24a[_0x2551('0xae')])?_0x4201df:_0x50c24a['start'],_0x5d3b20=_0x5d3b20[_0x2551('0x7a')](_0x50c24a['end'])?_0x5d3b20:_0x50c24a['end'],_0x115376?_0x50c24a[_0x2551('0xae')][_0x2551('0x44')](_0x115376[_0x2551('0x45')]()[_0x2551('0xae')])?(_0x115376[_0x2551('0xa1')](),_0x115376=_0x3bd626):_0x3bd626[_0x2551('0xa1')]():_0x115376=_0x3bd626;}const _0x24b0ca=this[_0x2551('0x6d')]['createRange'](_0x4201df,_0x5d3b20);if(_0x115376)this[_0x2551('0x2f')](_0x115376,_0x24b0ca);else{const _0x1bb94d=_0x8909f2(),_0x4d2d83=_0x1c2e60['id'];this['_setSuggestionData']({'id':_0x1bb94d,'type':'formatInline:'+_0x635033,'data':_0xb9dfa9,'createdAt':new Date(),'authorId':_0x4d2d83,'attributes':_0x33aced}),this[_0x2551('0xd5')](_0x2551('0xf4')+_0x635033,_0x1bb94d,_0x4d2d83,_0x24b0ca);}}}[_0x2551('0x33')](_0x163aa9,_0x33c42a,_0x17a96d=[],_0x3a97da=null,_0x1c3717={}){_0x33c42a['formatGroupId']||(_0x33c42a['formatGroupId']=_0x33c42a[_0x2551('0xa2')]),_0x33c42a[_0x2551('0x2e')]=_0x163aa9['is']('range'),_0x3a97da=_0x3a97da||It(_0x33c42a);const _0x3ce0da=_0x17a96d[_0x2551('0xe0')](_0x272b64=>At(_0x272b64,this['_model'])),_0x3dc2fe=_0x163aa9['is'](_0x2551('0x109'))?_0x163aa9:At(_0x163aa9,this[_0x2551('0x6d')]);_0x3ce0da[_0x2551('0x8c')](_0x3dc2fe);let _0x4b08c8=!0x0;for(const _0x7dec6b of _0x3ce0da)if(!this[_0x2551('0x9d')](_0x7dec6b)){_0x4b08c8=!0x1;break;}if(_0x4b08c8){const _0x5cea5e=this[_0x2551('0x58')]['getSuggestionCallback']('formatBlock',_0x3a97da,_0x2551('0xd7'));return void this[_0x2551('0x126')](()=>_0x5cea5e([_0x3dc2fe],_0x33c42a,_0x1c3717));}let _0x1c371d=null,_0xe57bcc=_0x3dc2fe['start'],_0x1e48ef=_0x3dc2fe['end'];for(const {suggestion:_0x49530b,meta:_0x4424aa}of this['_findSuggestions'](_0x3dc2fe,_0x2551('0xd6'))){if(!_0x4424aa['isOwn']||_0x4424aa[_0x2551('0x12c')]||_0x4424aa[_0x2551('0x13')]||_0x4424aa[_0x2551('0x39')])continue;if(_0x49530b[_0x2551('0xf7')]['formatGroupId']!=_0x33c42a[_0x2551('0x69')])continue;const _0x2a5cb8=_0x49530b[_0x2551('0x45')]();if(_0x49530b[_0x2551('0x4')]==_0x3a97da){if(_0x2a5cb8['containsRange'](_0x3dc2fe,!0x0))return;_0xe57bcc=_0xe57bcc[_0x2551('0x44')](_0x2a5cb8['start'])?_0xe57bcc:_0x2a5cb8[_0x2551('0xae')],_0x1e48ef=_0x1e48ef[_0x2551('0x7a')](_0x2a5cb8[_0x2551('0xa0')])?_0x1e48ef:_0x2a5cb8['end'],_0x1c371d?_0x2a5cb8[_0x2551('0xae')][_0x2551('0x44')](_0x1c371d[_0x2551('0x45')]()[_0x2551('0xae')])?(_0x1c371d[_0x2551('0xa1')](),_0x1c371d=_0x49530b):_0x49530b[_0x2551('0xa1')]():_0x1c371d=_0x49530b;}else{const _0x436200=_0x3dc2fe[_0x2551('0x89')](_0x2a5cb8);this[_0x2551('0xaf')](_0x49530b,_0x436200);}}const _0x26797f=this[_0x2551('0x10e')][_0x2551('0xf5')]['get'](_0x2551('0x118'))['me'],_0x2d735a=_0x8909f2(),_0x3c3550=_0x26797f['id'];_0x1c371d?this[_0x2551('0x2f')](_0x1c371d,this['_model']['createRange'](_0xe57bcc,_0x1e48ef)):(this['_setSuggestionData']({'id':_0x2d735a,'type':'formatBlock:'+_0x3a97da,'data':_0x33c42a,'createdAt':new Date(),'authorId':_0x3c3550,'attributes':_0x1c3717}),this[_0x2551('0xd5')]('formatBlock:'+_0x3a97da,_0x2d735a,_0x3c3550,this[_0x2551('0x6d')][_0x2551('0x41')](_0xe57bcc,_0x1e48ef)));}[_0x2551('0x23')](_0x76f3dd,_0x1d29ab,_0x43ef67=[],_0x482b72=null,_0x2258c5={}){_0x1d29ab[_0x2551('0x69')]||(_0x1d29ab[_0x2551('0x69')]=_0x1d29ab['commandName']),_0x1d29ab['multipleBlocks']=!0x1,_0x482b72=_0x482b72||It(_0x1d29ab);const _0x4c6673=_0x43ef67[_0x2551('0xe0')](_0x343065=>At(_0x343065,this[_0x2551('0x6d')])),_0x2d29e5=_0x76f3dd[_0x2551('0xe0')](_0x597d03=>At(_0x597d03,this[_0x2551('0x6d')]));_0x4c6673[_0x2551('0x8c')](..._0x2d29e5);let _0x10bfb9=!0x0;for(const _0x239ac3 of _0x4c6673)if(!this[_0x2551('0x9d')](_0x239ac3)){_0x10bfb9=!0x1;break;}if(_0x10bfb9){const _0x4b84d0=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0xd6'),_0x482b72,_0x2551('0xd7'));return void this['forceDefaultExecution'](()=>_0x4b84d0(_0x2d29e5,_0x1d29ab,_0x2258c5));}const _0xc75d47=this[_0x2551('0x10e')][_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x118'))['me'];for(const _0x1835c1 of this[_0x2551('0x12e')]()){if(_0x1835c1[_0x2551('0x15')]['id']!=_0xc75d47['id'])continue;if(_0x2551('0xd6')!=_0x1835c1['type']||_0x1835c1[_0x2551('0xf7')]['formatGroupId']!=_0x1d29ab[_0x2551('0x69')])continue;const _0x5f4ff3=_0x1835c1[_0x2551('0x4')]==_0x482b72;for(let _0x54cb61=0x0;_0x54cb61<_0x2d29e5[_0x2551('0xca')];_0x54cb61++){const _0x2784ed=_0x2d29e5[_0x54cb61];for(const _0x37be31 of _0x1835c1['getMarkers']()){const _0x253b8f=_0x37be31[_0x2551('0x3f')]();if(_0x2784ed[_0x2551('0x12d')](_0x253b8f)){_0x5f4ff3?(_0x2d29e5['splice'](_0x54cb61,0x1),_0x54cb61--):_0x1835c1['removeMarker'](_0x37be31['name']);break;}}}}if(0x0==_0x2d29e5[_0x2551('0xca')])return;const _0x393303=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0xd6'),_0x482b72,'join');for(const _0x56497e of this[_0x2551('0x12e')]())if(_0x56497e['author']['id']==_0xc75d47['id']&&'formatBlock'==_0x56497e['type']&&_0x56497e[_0x2551('0xf7')]['formatGroupId']==_0x1d29ab['formatGroupId']&&_0x56497e['subType']==_0x482b72&&(_0x393303(_0x56497e['getRanges'](),_0x2d29e5)||_0x393303(_0x2d29e5,_0x56497e[_0x2551('0x104')]()))){for(const _0x2018aa of _0x2d29e5)_0x56497e['addRange'](_0x2018aa);return _0x56497e;}const _0x27f8f8=_0x8909f2(),_0x4e345e=_0xc75d47['id'],_0x55cbca='formatBlock:'+_0x482b72,_0xa992eb=this[_0x2551('0xe')]({'id':_0x27f8f8,'type':_0x55cbca,'data':_0x1d29ab,'createdAt':new Date(),'authorId':_0x4e345e,'attributes':_0x2258c5});for(const _0x32eebc of _0x2d29e5)this[_0x2551('0xd5')](_0x55cbca,_0x27f8f8,_0x4e345e,_0x32eebc,_0x2600ac[_0x2551('0xde')]());return _0xa992eb;}['markDeletion'](_0x2acb51,_0x5f576f=null,_0x1f01fb={}){if(_0x2acb51[_0x2551('0x6e')])return null;const _0x8a1d19=this['editor'][_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x118'))['me'],_0x2cce6b=new _0x59087f(_0x2acb51['start'],_0x2acb51[_0x2551('0xa0')]);for(const {suggestion:_0x1feab5,meta:_0x469b4c}of this['_findSuggestions'](_0x2cce6b,_0x2551('0x1b')))if(_0x469b4c[_0x2551('0x63')]&&!_0x469b4c[_0x2551('0x12c')]){if(_0x1feab5[_0x2551('0xe8')]){const _0x32edba=_0x1feab5[_0x2551('0x104')]()[_0x2551('0x7d')](_0x38440b=>_0x2551('0xea')!=_0x38440b[_0x2551('0x78')]['rootName']);_0x32edba['every'](_0x21247b=>_0x2cce6b[_0x2551('0xaa')](_0x21247b,!0x0))&&_0x1feab5['discard']();if(_0x32edba[_0x2551('0x55')](_0x302218=>_0x302218[_0x2551('0xaa')](_0x2cce6b,!0x0))){const _0x5c6697=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0x9a'),_0x5f576f,'accept');return this[_0x2551('0x126')](()=>_0x5c6697([_0x2cce6b],null,_0x1f01fb)),null;}}else{const _0x2f9124=_0x2cce6b[_0x2551('0x89')](_0x1feab5['getFirstRange']());_0x1feab5['_onDiscard']([_0x2f9124],null,_0x1f01fb);}}if(_0x2cce6b[_0x2551('0x122')](),_0x2cce6b[_0x2551('0x6e')]||_0x2551('0xea')==_0x2cce6b[_0x2551('0x78')][_0x2551('0xa3')])return null;let _0xc78841=null,_0xfa7a96=_0x2cce6b['start'],_0xe06bf6=_0x2cce6b[_0x2551('0xa0')];for(const {suggestion:_0x4eebf9,meta:_0x471f0a}of this[_0x2551('0xd3')](_0x2cce6b,'deletion'))if(_0x471f0a[_0x2551('0x63')]){if(_0x4eebf9[_0x2551('0xe8')]){let _0x28dcff=!0x0;for(const _0x14739f of _0x4eebf9[_0x2551('0x104')]()){if(_0x14739f[_0x2551('0xaa')](_0x2cce6b,!0x0))return _0x4eebf9;_0x2cce6b[_0x2551('0xaa')](_0x14739f)||(_0x28dcff=!0x1);}_0x28dcff&&_0x4eebf9['discard']();}else{const _0x2b5d2a=_0x4eebf9['getFirstRange']();if(_0x2b5d2a[_0x2551('0xaa')](_0x2cce6b,!0x0))return _0x4eebf9;_0xfa7a96=_0xfa7a96['isBefore'](_0x2b5d2a[_0x2551('0xae')])?_0xfa7a96:_0x2b5d2a[_0x2551('0xae')],_0xe06bf6=_0xe06bf6[_0x2551('0x7a')](_0x2b5d2a['end'])?_0xe06bf6:_0x2b5d2a[_0x2551('0xa0')],_0xc78841?_0x2b5d2a[_0x2551('0xae')][_0x2551('0x44')](_0xc78841['getFirstRange']()[_0x2551('0xae')])?(_0xc78841['removeMarkers'](),_0xc78841=_0x4eebf9):_0x4eebf9[_0x2551('0xa1')]():_0xc78841=_0x4eebf9;}}if(_0xc78841)return this['_setSuggestionRange'](_0xc78841,this[_0x2551('0x6d')][_0x2551('0x41')](_0xfa7a96,_0xe06bf6)),_0xc78841;{const _0x2359a1=_0x8909f2(),_0x526b73=this[_0x2551('0x6d')][_0x2551('0x41')](_0xfa7a96,_0xe06bf6),_0x7738e5=_0x8a1d19['id'],_0x4fbf5d=_0x5f576f?_0x2551('0x2d')+_0x5f576f:_0x2551('0x9a'),_0x22157e=this['_setSuggestionData']({'id':_0x2359a1,'type':_0x4fbf5d,'createdAt':new Date(),'authorId':_0x7738e5,'attributes':_0x1f01fb});return this[_0x2551('0xd5')](_0x4fbf5d,_0x2359a1,_0x7738e5,_0x526b73),_0x22157e;}}[_0x2551('0x84')](_0x956b5a,_0x9b6725=_0x2551('0x30'),_0xbdbcf7={}){const _0x5582f3=this['editor'][_0x2551('0xf5')]['get'](_0x2551('0x118'))['me'],_0x3b0ec4=_0x956b5a[_0x2551('0xe0')](_0x1f7e61=>new _0x59087f(_0x1f7e61[_0x2551('0xae')],_0x1f7e61['end'])),_0xda35c5=new Set();for(const _0x4ce167 of _0x3b0ec4)for(const {suggestion:_0x32ae26,meta:_0x30a446}of this[_0x2551('0xd3')](_0x4ce167,'insertion'))_0x30a446[_0x2551('0x63')]&&!_0x30a446[_0x2551('0x12c')]&&_0xda35c5['add'](_0x32ae26);for(const _0x1e692d of _0xda35c5)if(_0x1e692d[_0x2551('0xe8')]){const _0x279eb4=_0x1e692d[_0x2551('0x104')]();(!_0x1e692d['attributes']||!_0x1e692d[_0x2551('0xf1')][_0x2551('0x18')])&&(_0x279eb4[_0x2551('0xf')](_0x49622b=>_0x3b0ec4[_0x2551('0x55')](_0x492ae6=>_0x492ae6[_0x2551('0xaa')](_0x49622b,!0x0)))&&_0x1e692d['discard']());if(_0x3b0ec4[_0x2551('0xf')](_0x570d83=>_0x279eb4['some'](_0x1e7c43=>_0x1e7c43[_0x2551('0xaa')](_0x570d83,!0x0)))){const _0x1291e6=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0x9a'),_0x9b6725,'accept');return this[_0x2551('0x126')](()=>_0x1291e6(_0x956b5a,null,_0xbdbcf7)),null;}}else{const _0x4218de=_0x1e692d[_0x2551('0x45')]();_0x3b0ec4['some'](_0x1fd120=>_0x1fd120[_0x2551('0xaa')](_0x4218de,!0x0))&&_0x1e692d[_0x2551('0x92')]();if(_0x3b0ec4[_0x2551('0xf')](_0x104560=>_0x4218de[_0x2551('0xaa')](_0x104560,!0x0))){const _0x186d72=this[_0x2551('0x58')]['getSuggestionCallback'](_0x2551('0x9a'),_0x9b6725,_0x2551('0xd7'));return this[_0x2551('0x126')](()=>_0x186d72(_0x3b0ec4,null,_0xbdbcf7)),null;}}const _0x4fe51d=this[_0x2551('0x58')]['getSuggestionCallback']('deletion',_0x9b6725,_0x2551('0x81'));let _0x30a934=null;for(const _0x1db21e of this[_0x2551('0x12e')]())if(_0x1db21e[_0x2551('0x15')]['id']==_0x5582f3['id']&&_0x1db21e[_0x2551('0x11f')]&&_0x2551('0x9a')==_0x1db21e['type']&&_0x1db21e['subType']==_0x9b6725&&(_0x4fe51d(_0x1db21e[_0x2551('0x104')](),_0x3b0ec4)||_0x4fe51d(_0x3b0ec4,_0x1db21e[_0x2551('0x104')]()))){if(_0x30a934){if(_0x1db21e[_0x2551('0x129')]&&_0x1db21e[_0x2551('0x129')][_0x2551('0xca')])continue;for(const _0x3658e0 of _0x1db21e[_0x2551('0x104')]())_0x30a934[_0x2551('0x53')](_0x3658e0)||_0x30a934[_0x2551('0xa9')](_0x3658e0);_0x1db21e['removeMarkers']();}else{_0x30a934=_0x1db21e;for(const _0x277f44 of _0x3b0ec4)_0x1db21e[_0x2551('0x53')](_0x277f44)||_0x1db21e['addRange'](_0x277f44);}}if(_0x30a934)return _0x30a934;_0xda35c5[_0x2551('0xcc')]();for(const _0x55b67d of _0x3b0ec4)for(const {suggestion:_0x5494f9,meta:_0x168e7f}of this[_0x2551('0xd3')](_0x55b67d,_0x2551('0x9a')))_0x168e7f[_0x2551('0x63')]&&_0xda35c5['add'](_0x5494f9);for(const _0x1e958f of _0xda35c5){const _0x2bfa6d=_0x1e958f['getRanges']();if(!_0xbdbcf7||!_0xbdbcf7[_0x2551('0x18')]){if(_0x3b0ec4['every'](_0x23e36b=>_0x2bfa6d[_0x2551('0x55')](_0x324453=>_0x324453[_0x2551('0xaa')](_0x23e36b,!0x0))))return _0x1e958f;}(!_0x1e958f[_0x2551('0xf1')]||!_0x1e958f[_0x2551('0xf1')][_0x2551('0x18')])&&(_0x2bfa6d[_0x2551('0xf')](_0x14216f=>_0x3b0ec4[_0x2551('0x55')](_0x4235f6=>_0x4235f6[_0x2551('0xaa')](_0x14216f,!0x0)))&&_0x1e958f[_0x2551('0x92')]());}const _0x480b5d=_0x8909f2(),_0xc53366=_0x5582f3['id'],_0x1ba60b=_0x2551('0x2d')+_0x9b6725,_0x32c848=this[_0x2551('0xe')]({'id':_0x480b5d,'type':_0x1ba60b,'createdAt':new Date(),'authorId':_0xc53366,'attributes':_0xbdbcf7});for(const _0x4b1d20 of _0x3b0ec4)_0x4b1d20['detach'](),_0x4b1d20[_0x2551('0x6e')]||_0x2551('0xea')==_0x4b1d20[_0x2551('0x78')][_0x2551('0xa3')]||this[_0x2551('0xd5')](_0x1ba60b,_0x480b5d,_0xc53366,_0x4b1d20,_0x2600ac[_0x2551('0xde')]());return _0x32c848;}['_setSuggestionRange'](_0x4d76e1,_0x458a1c){const _0x1e6be9=_0x4d76e1[_0x2551('0xa5')]();this[_0x2551('0x6d')][_0x2551('0x6f')](_0x1a23e6=>{_0x1a23e6[_0x2551('0xe3')](_0x1e6be9,{'range':_0x458a1c});});}['_addThreadToSuggestion'](_0x22e228){const _0x50123f=_0x22e228['id'],_0x5f18d7=this[_0x2551('0x10e')]['config'][_0x2551('0x98')]('collaboration.channelId');this[_0x2551('0x10f')][_0x2551('0x9')](_0x50123f)||this[_0x2551('0x10f')][_0x2551('0x61')]({'channelId':_0x5f18d7,'threadId':_0x50123f});const _0x3216e8=this[_0x2551('0x10f')]['getCommentThread'](_0x50123f);_0x3216e8[_0x2551('0xd')](_0x2551('0xe6')),_0x3216e8[_0x2551('0xe6')]=!0x1,_0x22e228[_0x2551('0x129')]=_0x3216e8;}[_0x2551('0x47')](_0x34e6ce,_0x3cfe6a,_0x4612de,_0x496faf){if(_0x34e6ce[_0x2551('0x121')]!=_0x3cfe6a||_0x34e6ce[_0x2551('0x4')]!=_0x4612de||_0x34e6ce['author']['id']!=_0x496faf)throw this['editor']['enableReadOnlyMode'](_0x2551('0x32')),new _0x1d0d3c(_0x2551('0x32'),this);}['_cutOutSuggestionMarker'](_0x5546b2,_0xb83957){const _0x571cb7=_0x5546b2[_0x2551('0x45')]();if(_0xb83957[_0x2551('0x12d')](_0x571cb7))_0x5546b2[_0x2551('0xa1')]();else{if(_0x571cb7['containsRange'](_0xb83957)){const _0x362bc3=this[_0x2551('0x6d')][_0x2551('0x120')](_0xb83957['start']['nodeBefore'],_0x2551('0xa0'));this['_setSuggestionRange'](_0x5546b2,this[_0x2551('0x6d')]['createRange'](_0x571cb7[_0x2551('0xae')],_0x362bc3));const _0x4cd8e3=_0x8909f2(),_0x897b7d=_0x5546b2['author']['id'],_0x2ddb6a=_0x5546b2[_0x2551('0x121')]+':'+_0x5546b2[_0x2551('0x4')];this['_setSuggestionData']({'id':_0x4cd8e3,'type':_0x2ddb6a,'createdAt':new Date(),'authorId':_0x897b7d,'data':_0x5546b2[_0x2551('0xf7')],'attributes':_0x5546b2[_0x2551('0xf1')]});const _0x217dd3=this[_0x2551('0x6d')][_0x2551('0x120')](_0xb83957[_0x2551('0xa0')]['parent'],_0x2551('0x9e')),_0x2c906d=this[_0x2551('0x6d')][_0x2551('0x41')](_0x217dd3,_0x571cb7[_0x2551('0xa0')]);this[_0x2551('0xd5')](_0x2ddb6a,_0x4cd8e3,_0x897b7d,_0x2c906d);}else{if(_0x571cb7[_0x2551('0x3b')](_0xb83957['start'])){const _0x2194df=this[_0x2551('0x6d')][_0x2551('0x120')](_0xb83957[_0x2551('0xae')][_0x2551('0x5a')],_0x2551('0xa0'));this[_0x2551('0x2f')](_0x5546b2,this['_model'][_0x2551('0x41')](_0x571cb7['start'],_0x2194df));}else{const _0x294442=this[_0x2551('0x6d')]['createPositionAt'](_0xb83957[_0x2551('0xa0')][_0x2551('0x59')],_0x2551('0x9e'));this[_0x2551('0x2f')](_0x5546b2,this[_0x2551('0x6d')][_0x2551('0x41')](_0x294442,_0x571cb7[_0x2551('0xa0')]));}}}}[_0x2551('0x9d')](_0x27c01f){for(const {suggestion:_0x3d45cc,meta:_0x3f80bb}of this['_findSuggestions'](_0x27c01f,_0x2551('0x1b'))){if(!_0x3f80bb[_0x2551('0x63')])continue;const _0x57cc42=_0x3d45cc['getRanges']();for(const _0x3e328d of _0x57cc42)if(!_0x27c01f['getDifference'](_0x3e328d)[_0x2551('0xca')])return!0x0;}return!0x1;}[_0x2551('0xab')](_0x106d64){const _0x2d5882=this['editor']['plugins'][_0x2551('0x98')](_0x2551('0x118'))['getUser'](_0x106d64);if(!_0x2d5882)throw new _0x1d0d3c(_0x2551('0x9c'),this);return _0x2d5882;}[_0x2551('0xad')](_0x38777e){const _0x594c8a=this[_0x2551('0x10e')][_0x2551('0xf5')][_0x2551('0x98')]('Users'),_0x15407b='external:'+_0x38777e,_0x4aebf6=_0x594c8a[_0x2551('0x10a')](_0x15407b);return _0x4aebf6||_0x594c8a[_0x2551('0xc9')]({'id':_0x15407b,'name':_0x38777e});}['_createSuggestion'](_0x36ee35,_0x5432b1,_0x1a000f,_0x18c6fd,_0x2bf8cd){const _0x17ef1c=this[_0x2551('0xab')](_0x18c6fd);let _0x17d383=null;_0x2bf8cd&&_0x2bf8cd[_0x2551('0xdb')]&&(_0x17d383=this[_0x2551('0xad')](_0x2bf8cd[_0x2551('0xdb')][_0x2551('0x43')]));const _0x1a5317=this[_0x2551('0x58')][_0x2551('0xfc')](_0x36ee35,_0x5432b1,_0x1a000f,_0x17ef1c,_0x17d383,_0xa47273=>this[_0x2551('0x123')](_0x1a000f,{'attributes':_0xa47273}));return this[_0x2551('0xdc')](_0x1a5317,_0x2551('0xd7'),()=>{this[_0x2551('0x123')](_0x1a000f,{'state':_0x2551('0x42')});},{'priority':'high'}),this[_0x2551('0xdc')](_0x1a5317,'discard',()=>{this['_updateSuggestionData'](_0x1a000f,{'state':_0x2551('0xee')});},{'priority':_0x2551('0xdd')}),this['_suggestions']['set'](_0x1a000f,_0x1a5317),this[_0x2551('0x4c')][_0x2551('0x10d')](_0x1a5317,_0x2551('0x1')),_0x1a5317;}[_0x2551('0x12f')](_0x1c62b8){const _0x54134f=_0x1c62b8[_0x2551('0x87')](':');return{'group':_0x54134f[0x0],'type':_0x54134f[0x1],'subType':_0x54134f[_0x2551('0xca')]>=0x5?_0x54134f[0x2]:null,'id':_0x54134f[_0x2551('0xca')]<0x5?_0x54134f[0x2]:_0x54134f[0x3],'authorId':_0x54134f[_0x2551('0xca')]<0x5?_0x54134f[0x3]:_0x54134f[0x4],'markerCount':0x6==_0x54134f[_0x2551('0xca')]?_0x54134f[0x5]:null};}['_breakSuggestionMarker'](_0x483522,_0x169d54,_0x5f18d4){const _0x14e87c=_0x483522[_0x2551('0x45')](),_0xc93b6b=_0x14e87c[_0x2551('0xae')],_0x5bbefd=_0x14e87c[_0x2551('0xa0')];this['_setSuggestionRange'](_0x483522,this[_0x2551('0x6d')][_0x2551('0x41')](_0xc93b6b,_0x169d54));const _0x447a73=_0x8909f2(),_0x8e9210=_0x483522[_0x2551('0x15')]['id'],_0x4c1455=_0x483522[_0x2551('0x121')]+(_0x483522['subType']?':'+_0x483522[_0x2551('0x4')]:'');this[_0x2551('0xe')]({'id':_0x447a73,'type':_0x4c1455,'createdAt':new Date(),'authorId':_0x8e9210,'originalSuggestionId':_0x483522['id'],'attributes':_0x483522[_0x2551('0xf1')],'data':_0x483522[_0x2551('0xf7')]}),_0x2551('0xd6')==_0x483522[_0x2551('0x121')]&&(_0x5f18d4=this['_model'][_0x2551('0xfa')](_0x5f18d4[_0x2551('0x59')])),this[_0x2551('0xd5')](_0x4c1455,_0x447a73,_0x8e9210,this['_model']['createRange'](_0x5f18d4,_0x5bbefd));}[_0x2551('0xd3')](_0x3270ed,_0x5a2293=null){const _0x1332e8=[],_0xe32798=this[_0x2551('0x6d')][_0x2551('0x7b')],_0x2ffabc=this['editor'][_0x2551('0xf5')][_0x2551('0x98')]('Users')['me'];for(const _0x421f2e of this[_0x2551('0x12e')]())if(_0x421f2e[_0x2551('0x11f')]&&(!_0x5a2293||_0x421f2e[_0x2551('0x121')]==_0x5a2293))for(const _0x2c59b2 of _0x421f2e[_0x2551('0x104')]()){const _0x18b3d5=_0x3270ed[_0x2551('0xae')][_0x2551('0x12d')](_0x2c59b2[_0x2551('0xa0')])||_0x3270ed['end']['isEqual'](_0x2c59b2[_0x2551('0xae')]);if(_0x18b3d5||_0x3270ed['getIntersection'](_0x2c59b2)){const _0x5b6dc1=_0x3270ed[_0x2551('0xaa')](_0x2c59b2)&&yt(_0xe32798,_0x2c59b2[_0x2551('0xae')],_0x3270ed),_0x5b4ef3=_0x2c59b2['containsRange'](_0x3270ed)&&yt(_0xe32798,_0x3270ed[_0x2551('0xae')],_0x2c59b2);_0x1332e8['push']({'suggestion':_0x421f2e,'meta':{'isOwn':_0x2ffabc==_0x421f2e[_0x2551('0x15')],'isNextTo':_0x18b3d5,'isInsideObject':_0x5b6dc1,'containsRangeInObject':_0x5b4ef3}});break;}}return _0x1332e8;}[_0x2551('0xd5')](_0x1d6ad3,_0x552340,_0x156634,_0x2ae2c1,_0x1fe644=null){this[_0x2551('0x6d')]['change'](_0x8b054c=>{let _0x4fe269=_0x2551('0x88')+_0x1d6ad3+':'+_0x552340+':'+_0x156634;_0x1fe644&&(_0x4fe269=_0x4fe269+':'+_0x1fe644),_0x8b054c[_0x2551('0xbb')](_0x4fe269,{'range':_0x2ae2c1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x119542){const _0x337344=_0x119542[_0x2551('0x1c')],_0x3e2cdc=_0x119542[_0x2551('0xa4')];_0x119542[_0x2551('0x1c')]=null,null!=_0x337344&&(_0x337344['next']=null),_0x119542['next']=null,null!=_0x3e2cdc&&(_0x3e2cdc[_0x2551('0x1c')]=null),_0x2551('0xe5')==this[_0x2551('0x4c')][_0x2551('0x98')](_0x119542)&&(this[_0x2551('0x4c')][_0x2551('0x10d')](_0x119542,_0x2551('0x125')),this[_0x2551('0xd9')](_0x2551('0xed'),_0x119542,_0x337344,_0x3e2cdc));}[_0x2551('0xe')](_0x3f6c3d){const _0x441acd=_0x3f6c3d['id'],_0x37cf9f=this['addSuggestionData'](_0x3f6c3d);if(this['_adapter']&&this[_0x2551('0xbe')][_0x2551('0x79')]){const _0x2664d7=this[_0x2551('0x10e')]['plugins'][_0x2551('0x98')]('PendingActions'),_0x2501c5=_0x37cf9f[_0x2551('0x11a')],_0x4a71af=_0x37cf9f[_0x2551('0x4')]?_0x37cf9f['type']+':'+_0x37cf9f[_0x2551('0x4')]:_0x37cf9f[_0x2551('0x121')],_0x1870d6=this[_0x2551('0x10e')]['locale'],_0x110e27=_0x2664d7[_0x2551('0xf8')](_0x49a8a7(_0x1870d6,_0x2551('0xeb'))),_0x3b188f={'id':_0x441acd,'type':_0x4a71af,'hasComments':_0x2501c5,'data':_0x3f6c3d[_0x2551('0xf7')]||null,'originalSuggestionId':_0x3f6c3d[_0x2551('0x0')]||null,'attributes':_0x37cf9f[_0x2551('0xf1')]};this[_0x2551('0xbe')][_0x2551('0x79')](_0x3b188f)[_0x2551('0x10c')](_0x268960=>{_0x37cf9f[_0x2551('0x70')]=!0x0,_0x2664d7[_0x2551('0xd2')](_0x110e27),_0x268960&&_0x268960[_0x2551('0x105')]&&(this[_0x2551('0x111')][_0x2551('0x98')](_0x441acd)[_0x2551('0x105')]=_0x268960[_0x2551('0x105')]);})[_0x2551('0xd0')](_0x575821=>{throw _0x863670(_0x2551('0x1f')),this[_0x2551('0x10e')][_0x2551('0x115')][_0x2551('0x7')]({'isUndoable':!0x1},()=>{_0x37cf9f[_0x2551('0x92')]();}),_0x37cf9f[_0x2551('0x2c')](),this[_0x2551('0x111')][_0x2551('0x76')](_0x37cf9f['id']),this['_suggestionState'][_0x2551('0x76')](_0x37cf9f),_0x575821;});}return _0x37cf9f;}[_0x2551('0x123')](_0x234dfb,_0x162d03){const _0x2c3006=this['editor'][_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x5e')),_0x3480b4=this[_0x2551('0x111')][_0x2551('0x98')](_0x234dfb);if(this['_adapter']&&this[_0x2551('0xbe')][_0x2551('0x2b')]){if(_0x3480b4[_0x2551('0x70')]){const _0xef7110=_0x2c3006[_0x2551('0xf8')](_0x49a8a7(this[_0x2551('0x10e')][_0x2551('0x25')],'PENDING_ACTION_SUGGESTION'));this[_0x2551('0xbe')][_0x2551('0x2b')](_0x234dfb,_0x162d03)['then'](()=>{_0x2c3006['remove'](_0xef7110);});}else _0x3480b4['on'](_0x2551('0x99'),()=>{this['_updateSuggestionData'](_0x234dfb,_0x162d03);});}}[_0x2551('0xc')](_0x18f4f0){if(!this[_0x2551('0xbe')]||!this[_0x2551('0xbe')][_0x2551('0x4f')])throw new _0x1d0d3c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x18f4f0);}[_0x2551('0x40')](_0xb01d0){const {id:_0x131e4d,type:_0x1a2b37,subType:_0x51edc9,authorId:_0x43719e}=this[_0x2551('0x12f')](_0xb01d0),_0x26cd4b=this[_0x2551('0x111')][_0x2551('0x98')](_0x131e4d)||this['_createSuggestion'](_0x1a2b37,_0x51edc9,_0x131e4d,_0x43719e);switch(this[_0x2551('0x47')](_0x26cd4b,_0x1a2b37,_0x51edc9,_0x43719e),this[_0x2551('0x4c')][_0x2551('0x98')](_0x26cd4b)){case _0x2551('0x1'):this[_0x2551('0xc')](_0x131e4d)[_0x2551('0x10c')](_0x10af95=>{let _0x2605af=Promise[_0x2551('0xb4')]();_0x10af95[_0x2551('0x11a')]&&(_0x2605af=this[_0x2551('0x10f')][_0x2551('0x12b')]({'channelId':this[_0x2551('0x10e')][_0x2551('0xa7')][_0x2551('0x98')]('collaboration.channelId'),'threadId':_0x131e4d})),_0x2605af[_0x2551('0x10c')](()=>{this[_0x2551('0x91')](_0x10af95)['_saved']=!0x0;});}),this['_suggestionState'][_0x2551('0x10d')](_0x26cd4b,_0x2551('0x3c'));break;case _0x2551('0x125'):this[_0x2551('0x123')](_0x131e4d,{'state':_0x2551('0xfb')});case _0x2551('0x5c'):this['_suggestionState'][_0x2551('0x10d')](_0x26cd4b,_0x2551('0xe5')),this[_0x2551('0xd9')](_0x2551('0x60'),_0x26cd4b);break;case'ready':this[_0x2551('0xd9')](_0x2551('0x108'),_0x26cd4b);}return _0x26cd4b['addMarkerName'](_0xb01d0),_0x26cd4b;}[_0x2551('0x9b')](_0x17ef8b){const _0x22aa20=Array['from'](_0x17ef8b)[_0x2551('0x7d')](_0xc266e=>!_0xc266e[_0x2551('0xe8')]),_0x35572f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6241=>!_0x6241[_0x2551('0xe8')]),_0x2f2b49=_0x35572f['filter'](_0x407c59=>!_0x17ef8b[_0x2551('0x19')](_0x407c59)),_0x58b137=new Map(_0x35572f['map'](_0x52457f=>[_0x52457f,this['_suggestionFactory']['getSuggestionCallback'](_0x52457f[_0x2551('0x121')],_0x52457f['subType'],_0x2551('0x11'))])),_0x456408=new Map(_0x35572f['map'](_0x21a9f1=>[_0x21a9f1,_0x21a9f1[_0x2551('0x45')]()])),_0x2a180d=new Set(),_0x54273d=new Set();for(let _0x58ba99=0x0;_0x58ba99<_0x22aa20[_0x2551('0xca')];_0x58ba99++)_0x4214d0(_0x22aa20[_0x58ba99],_0x22aa20,_0x58ba99+0x1);for(let _0xfbe597=0x0;_0xfbe597<_0x22aa20[_0x2551('0xca')];_0xfbe597++)_0x4214d0(_0x22aa20[_0xfbe597],_0x2f2b49,0x0);for(let _0x14c6d4=0x0;_0x14c6d4<_0x22aa20[_0x2551('0xca')];_0x14c6d4++){const _0x3d6ac9=_0x22aa20[_0x14c6d4];!_0x54273d[_0x2551('0x19')](_0x3d6ac9)&&_0x3d6ac9[_0x2551('0x1c')]&&(_0x3d6ac9[_0x2551('0x1c')]['next']===_0x3d6ac9&&(_0x3d6ac9[_0x2551('0x1c')][_0x2551('0xa4')]=null),_0x3d6ac9[_0x2551('0x1c')]=null),!_0x2a180d[_0x2551('0x19')](_0x3d6ac9)&&_0x3d6ac9[_0x2551('0xa4')]&&(_0x3d6ac9[_0x2551('0xa4')][_0x2551('0x1c')]===_0x3d6ac9&&(_0x3d6ac9[_0x2551('0xa4')][_0x2551('0x1c')]=null),_0x3d6ac9[_0x2551('0xa4')]=null);}function _0x4214d0(_0x159f08,_0x279616,_0x405d81){for(let _0x1464a1=_0x405d81;_0x1464a1<_0x279616[_0x2551('0xca')];_0x1464a1++){const _0x2d680a=_0x38bab0(_0x159f08,_0x279616[_0x1464a1]);_0x2d680a&&(_0x2d680a[0x0]['next']=_0x2d680a[0x1],_0x2d680a[0x1]['previous']=_0x2d680a[0x0],_0x2a180d[_0x2551('0xf8')](_0x2d680a[0x0]),_0x54273d[_0x2551('0xf8')](_0x2d680a[0x1]));}}function _0x38bab0(_0x2647b0,_0x5da3db){if(_0x2647b0[_0x2551('0x15')]['id']!==_0x5da3db['author']['id'])return null;const _0xde6740=_0x58b137[_0x2551('0x98')](_0x2647b0)(_0x2647b0,_0x5da3db,_0x456408[_0x2551('0x98')](_0x2647b0),_0x456408[_0x2551('0x98')](_0x5da3db));if(!_0xde6740)return null;return _0x58b137[_0x2551('0x98')](_0x5da3db)(_0x2647b0,_0x5da3db,_0x456408[_0x2551('0x98')](_0x2647b0),_0x456408[_0x2551('0x98')](_0x5da3db))?_0xde6740[0x1]['commentThread']&&_0xde6740[0x1][_0x2551('0x129')][_0x2551('0xca')]?null:_0xde6740:null;}}[_0x2551('0x5b')](_0x3f9b7a){const _0x133181=Array[_0x2551('0xba')](_0x3f9b7a),_0x497b81=this['getSuggestions']({'skipNotAttached':!0x0}),_0x273889=_0x497b81[_0x2551('0x7d')](_0x1becfd=>!_0x3f9b7a[_0x2551('0x19')](_0x1becfd)),_0x5460a4=new Map(_0x133181[_0x2551('0xe0')](_0x3255fe=>[_0x3255fe,this[_0x2551('0x58')][_0x2551('0xf6')](_0x3255fe[_0x2551('0x121')],_0x3255fe['subType'],_0x2551('0x81'))])),_0x27c17f=new Map(_0x497b81[_0x2551('0xe0')](_0x52e328=>[_0x52e328,_0x52e328['getRanges']()]));for(let _0xb187d7=0x0;_0xb187d7<_0x133181[_0x2551('0xca')];_0xb187d7++){if(_0x43e9c7(this,_0x133181[_0xb187d7],_0x133181,_0xb187d7+0x1))return!0x0;}for(let _0x8a1414=0x0;_0x8a1414<_0x133181['length'];_0x8a1414++){if(_0x43e9c7(this,_0x133181[_0x8a1414],_0x273889,0x0))return!0x0;}return!0x1;function _0x43e9c7(_0x44d3f3,_0x3470f9,_0x54d120,_0x2f44b3){for(let _0x406441=_0x2f44b3;_0x406441<_0x54d120[_0x2551('0xca')];_0x406441++){const _0x57140d=_0x54d120[_0x406441];if(_0x57140d[_0x2551('0x121')]!==_0x3470f9[_0x2551('0x121')]||_0x57140d[_0x2551('0x15')]['id']!==_0x3470f9['author']['id']||_0x57140d[_0x2551('0x4')]!==_0x3470f9[_0x2551('0x4')])continue;const _0x276357=_0x5460a4[_0x2551('0x98')](_0x3470f9),_0x3716c3=_0x27c17f[_0x2551('0x98')](_0x3470f9),_0x2500ae=_0x27c17f[_0x2551('0x98')](_0x57140d),_0x5af0db=_0x3470f9[_0x2551('0x129')]&&_0x3470f9[_0x2551('0x129')][_0x2551('0xca')],_0x490e46=_0x57140d['commentThread']&&_0x57140d[_0x2551('0x129')][_0x2551('0xca')];if(!_0x5af0db&&_0x276357(_0x2500ae,_0x3716c3))return _0x44d3f3[_0x2551('0xbc')](_0x57140d,_0x3470f9),_0x27c17f[_0x2551('0x76')](_0x3470f9),!0x0;if(!_0x490e46&&_0x276357(_0x3716c3,_0x2500ae))return _0x44d3f3[_0x2551('0xbc')](_0x3470f9,_0x57140d),_0x27c17f[_0x2551('0x76')](_0x57140d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4e1c4d,_0x22f40a){if(_0x4e1c4d[_0x2551('0xe8')])for(const _0x4a567a of _0x22f40a['getRanges']())_0x4e1c4d[_0x2551('0xa9')](_0x4a567a);else{const _0x19c6af=_0x22f40a[_0x2551('0x45')]()[_0x2551('0xa0')];this[_0x2551('0x2f')](_0x4e1c4d,this['_model'][_0x2551('0x41')](_0x4e1c4d['getFirstRange']()['start'],_0x19c6af));}_0x22f40a[_0x2551('0xa1')]();}}_0x306206(d,_0x4c0cfe);class wt{constructor(_0x398dcf){this[_0x2551('0x11c')]=_0x398dcf,this[_0x2551('0x6d')]=_0x398dcf[_0x2551('0x115')],this[_0x2551('0x20')]=new Map(),this[_0x2551('0xb3')]=new Map(),this[_0x2551('0xd4')]();}[_0x2551('0xfc')](_0x5f4ac5,_0x2afafc,_0x3e86d5,_0x37fe91,_0x522de1,_0x23047a){return new _0x2600ac(this['_model'],{'type':_0x5f4ac5,'subType':_0x2afafc,'id':_0x3e86d5,'author':_0x37fe91,'externalAuthor':_0x522de1,'onAttributesChange':_0x23047a,'onAccept':(..._0x2ff57a)=>this['getSuggestionCallback'](_0x5f4ac5,_0x2afafc,'accept')(..._0x2ff57a),'onDiscard':(..._0x5f4c6a)=>this[_0x2551('0xf6')](_0x5f4ac5,_0x2afafc,'discard')(..._0x5f4c6a)});}[_0x2551('0x4a')](_0x385803,_0x4b1070,_0x142bb0,_0x105a09){const _0x449258=_0x385803+':'+_0x4b1070+':'+_0x142bb0;this[_0x2551('0x20')][_0x2551('0x10d')](_0x449258,_0x105a09);}[_0x2551('0xf6')](_0x18fcfe,_0x47c3f7,_0x13c80f){const _0x1c1759=_0x18fcfe+':'+_0x47c3f7+':'+_0x13c80f;return this[_0x2551('0x20')][_0x2551('0x98')](_0x1c1759)||this[_0x2551('0xb3')][_0x2551('0x98')](_0x18fcfe+':'+_0x13c80f);}[_0x2551('0xd4')](){const _0x49b22e=()=>{},_0x463a92=_0x220d9d=>{_0x220d9d['sort']((_0x24b532,_0x42a9f9)=>_0x24b532['start'][_0x2551('0x44')](_0x42a9f9[_0x2551('0xae')])?0x1:-0x1),this[_0x2551('0x6d')][_0x2551('0x6f')](_0x229e20=>{for(const _0x558d92 of _0x220d9d){let _0x4e2828;_0x4e2828=_0x558d92[_0x2551('0xa0')][_0x2551('0x112')]&&_0x558d92[_0x2551('0xa0')][_0x2551('0x59')]==_0x558d92[_0x2551('0xae')]['nodeAfter']?_0x229e20[_0x2551('0x72')](_0x558d92[_0x2551('0xae')][_0x2551('0x46')],'on'):_0x229e20['createSelection'](_0x558d92),this[_0x2551('0x6d')]['deleteContent'](_0x4e2828,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x262191=(_0x5c6b22,_0x50b485)=>{this[_0x2551('0x6d')][_0x2551('0x6f')](_0x100cac=>{const {commandName:_0x5a2e5d,commandParams:_0x54b3d7=[]}=_0x50b485,_0x4391a2=_0x5c6b22[0x0];if(_0x2551('0xea')==_0x4391a2['root'][_0x2551('0xa3')])return;const _0xe3423e=Array[_0x2551('0xba')](this[_0x2551('0x6d')][_0x2551('0x50')][_0x2551('0x11b')][_0x2551('0x104')]())[_0x2551('0xe0')](_0x1c23aa=>_0x59087f[_0x2551('0x36')](_0x1c23aa));bt(_0x4391a2)?_0x100cac[_0x2551('0x34')](this[_0x2551('0x6d')][_0x2551('0x41')](_0x4391a2[_0x2551('0xa0')])):_0x100cac[_0x2551('0x34')](_0x4391a2);for(const _0x2888bc of this[_0x2551('0x11c')]['commands'][_0x2551('0xd1')]())_0x2888bc[_0x2551('0x114')]();_0x54b3d7['push']({'forceDefaultExecution':!0x0}),this[_0x2551('0x11c')][_0x2551('0x26')](_0x5a2e5d,..._0x54b3d7);const _0x545023=_0xe3423e['filter'](_0x4ad0bd=>_0x2551('0xea')!=_0x4ad0bd[_0x2551('0x78')][_0x2551('0xa3')]);_0x545023[_0x2551('0xca')]>0x0&&_0x100cac[_0x2551('0x34')](_0x545023);for(const _0x29ed41 of _0xe3423e)_0x29ed41[_0x2551('0x122')]();});},_0x1aaa9d=(_0xf9b59c,_0x2f829d)=>0x1==_0xf9b59c[_0x2551('0xca')]&&0x1==_0x2f829d['length']&&_0xf9b59c[0x0]['end']['isEqual'](_0x2f829d[0x0][_0x2551('0xae')]),_0x462c56=(_0x3a0b81,_0x32dd3d,_0x1a0f7b,_0x1c3af6)=>Dt(_0x3a0b81,_0x32dd3d,_0x1a0f7b,_0x1c3af6,this[_0x2551('0x6d')])?[_0x3a0b81,_0x32dd3d]:Dt(_0x32dd3d,_0x3a0b81,_0x1c3af6,_0x1a0f7b,this['_model'])?[_0x32dd3d,_0x3a0b81]:null;this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x75'),_0x49b22e),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xb8'),_0x463a92),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x8e'),_0x1aaa9d),this['_defaultCallbacks'][_0x2551('0x10d')](_0x2551('0x65'),_0x462c56),this['_defaultCallbacks']['set'](_0x2551('0x90'),_0x463a92),this['_defaultCallbacks'][_0x2551('0x10d')](_0x2551('0x57'),_0x49b22e),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xef'),_0x1aaa9d),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x62'),_0x462c56),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xa8'),_0x262191),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x100'),_0x49b22e),this[_0x2551('0xb3')]['set'](_0x2551('0x6a'),_0x1aaa9d),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xf9'),_0x49b22e),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x106'),_0x262191),this[_0x2551('0xb3')]['set'](_0x2551('0xc8'),_0x49b22e),this['_defaultCallbacks']['set'](_0x2551('0x68'),_0x1aaa9d),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xb6'),_0x49b22e);}}function yt(_0x2298ac,_0x3f97df,_0x17ff0e){for(const _0x3dc28d of _0x3f97df[_0x2551('0x59')][_0x2551('0x52')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3dc28d[_0x2551('0x78')]==_0x3dc28d)return!0x1;if(!_0x17ff0e['containsItem'](_0x3dc28d))return!0x1;if(_0x2298ac[_0x2551('0x73')](_0x3dc28d)||_0x2298ac[_0x2551('0x27')](_0x3dc28d))return!0x0;}}function bt(_0x5a2094){return _0x5a2094[_0x2551('0xa0')]['parent']==_0x5a2094['start'][_0x2551('0x46')]&&_0x5a2094[_0x2551('0xa0')][_0x2551('0x3e')];}function St(_0x3b6f85,_0x562a12,_0x498c0a,_0x3cf0d4){const _0x189390=_0x5f1960=>!_0x5f1960[_0x2551('0x93')]['is']('textProxy')&&!_0x3cf0d4[_0x2551('0x73')](_0x5f1960['item']),_0x4191fb=_0x3b6f85[_0x2551('0xae')][_0x2551('0xb5')](_0x189390),_0x5f0680=_0x3b6f85[_0x2551('0xa0')][_0x2551('0xb5')](_0x189390,{'direction':'backward'});return(!_0x3b6f85['start'][_0x2551('0x12d')](_0x4191fb)||!_0x3b6f85[_0x2551('0xa0')]['isEqual'](_0x5f0680))&&(_0x4191fb[_0x2551('0x44')](_0x5f0680)?_0x498c0a[_0x2551('0xe3')](_0x562a12,{'range':_0x498c0a[_0x2551('0x41')](_0x4191fb,_0x5f0680)}):_0x498c0a[_0x2551('0x113')](_0x562a12),!0x0);}function It(_0x92b765){return _0x3bfa65(_0x92b765);}function vt(_0x4841ae){const _0x4b3ad5=_0x4841ae[_0x2551('0xae')][_0x2551('0x46')];return _0x4b3ad5&&_0x4b3ad5['is'](_0x2551('0xc6'));}function At(_0x43c8c7,_0x3e5c2b){const _0x1f5f46=_0x3e5c2b[_0x2551('0x7b')][_0x2551('0x73')](_0x43c8c7)||_0x3e5c2b['schema'][_0x2551('0x14')](_0x43c8c7);return _0x3e5c2b[_0x2551('0x41')](_0x3e5c2b[_0x2551('0x120')](_0x43c8c7,_0x2551('0x8a')),_0x1f5f46?_0x3e5c2b['createPositionAfter'](_0x43c8c7):_0x3e5c2b[_0x2551('0x120')](_0x43c8c7,_0x2551('0xa0')));}function Dt(_0x2803dd,_0x44fb1b,_0x4b9f4b,_0x56b920,_0x369598){if(_0x4b9f4b[_0x2551('0xa0')]['isEqual'](_0x56b920['start']))return!0x0;if(_0x2803dd[_0x2551('0x121')]!=_0x44fb1b[_0x2551('0x121')])return!0x1;if(!_0x4b9f4b[_0x2551('0xa0')][_0x2551('0x1d')](_0x56b920['start']))return!0x1;const _0x359c45=_0x369598[_0x2551('0x41')](_0x4b9f4b[_0x2551('0xa0')],_0x56b920[_0x2551('0xae')])[_0x2551('0xb1')]();for(const _0x25753c of _0x359c45)if([_0x2551('0x124'),'elementEnd'][_0x2551('0x1e')](_0x25753c[_0x2551('0x121')])&&_0x369598[_0x2551('0x7b')]['isLimit'](_0x25753c[_0x2551('0x93')]))return!0x1;return!0x0;}
23
+ const _0x2981=['getShiftedBy','elementToElement','formatBlock','showSuggestionHighlights','enqueueChange','deleteContent','dataReady','consume','isInsideObject','_isForcedDefaultExecutionBlock','_getAuthorFromId','detach','nodeAfter','chain','change:data','isLimit','commandName','size','removeMarker','formatInline','splice','isCollapsed','mapper','createPositionAt','markerToData','normal','_joinSuggestions','isInContent','_descriptionFactory','getFirstMarker','getNearestSelectionRange','markerToHighlight','getRange','isUndo','isDocumentOperation','commentThread','originalSuggestionId','addSuggestionData','root','_addThreadToSuggestion','delete','next','dataToMarker','model','addSuggestion','markMultiRangeDeletion','after','notReady','formatBlock:','_suggestions','getFirstRange','addHighlight','PendingActions','suggestionChanged','createPositionAfter','isObject','track-changes-adapter-missing-getsuggestion','set','length','suggestion-type','acceptAllSuggestions','elementStart','_saved','_model','from','selection','adapter','setSelection','map','howMany','_handleNewSuggestionMarker','_registerDefaultCallbacks','rejected','_addSuggestionMarker','upcast','isAtEnd','name','getChangedMarkers','getSuggestionCallback','toJSON','discardAllSuggestions','_onDiscard','init','split','unbind','listenTo','insertion:chain','range','getAllAdjacentSuggestions','createRangeIn','ck-suggestion-marker','subType','suggestionLoaded','previous','widget','ck-suggestion-marker--active','addMarker:suggestion:formatBlock','add','getSuggestion','isEqual','markMultiRangeInsertion','ck-suggestion-marker-','refresh','_suggestionState','removeClass','editor','containsRangeInObject','createSelection','addCommentThread','containsPosition','plugins','elementEnd','_editor','getCustomProperty','CommentsRepository','isNextTo','rootName','skipNestingCheck','isTouching','insertion:','markInlineFormat','before','isRemovable','marker-count','$marker','remove','_enabledCommands','requires','isAfter','attributes','element','group','trackChanges','insertion:discard','nodeBefore','_getSuggestionData','addRange','value','getMultiRangeId','addMarker:suggestion','createRange','isSelectable','highest','authoredAt','markerReady','clone','acceptSuggestion','markerName','accept','_rangeIsInLocalUserInsertion','_joinWithAdjacentSuggestions','_refreshSuggestionsChain','addUser','registerCustomCallback','push','formatInline:discard','then','@external','registerPostFixer','get','includes','discardSelectedSuggestions','_suggestionFactory','discard','getUser','markMultiRangeBlockFormat','_breakSuggestionMarker','hasComments','ready','high','change:_saved','getAttribute','getLastMatchingPosition','filter','suggestionUnloaded','_splitMarkerName','editing','return','_checkSuggestionCorrectness','newRange','collaboration.channelId','_getExternalAuthor','unbindElementFromMarkerName','getCommentThread','position','insertion:accept','external:','every','type','forward','some','config','enableCommand','schema','track-changes-adapter-already-set','_updateSuggestionData','multi','low','trackChangesCommand','updateSuggestion','backward','_findSuggestions','change:activeMarkers','isOwn','insertion:join','deletion:chain','open','for','error-saving-suggestion-data-suggestion-discarded','differ','isAtStart','getItems','dataDowncast','document','insertContent','ck-suggestion-marker-formatBlock','parent','creator','formatInline:join','fire','consumable','values','deletion:','batch','data','_commentsRepository','start','isIntersectingWithRange','getWalker','getRanges','getDifference','substr','isMultiRange','has','addMarkerName','deletion:accept','$graveyard','end','forceDefaultExecution','enableReadOnlyMode','track-changes-command-not-found','item','hasCommentThread','_createSuggestion','createPositionBefore','bindElementToMarker','data-suggestion','PENDING_ACTION_SUGGESTION','suggestion','discardSuggestion','isLocal','track-changes-user-not-found','change','_defaultCallbacks','multipleBlocks','author','rethrowUnexpectedError','removeComment','markInsertion','locale','formatGroupId','TrackChangesEditing','targetPosition','oldRange','Users','catch','_removeSuggestion','writer','insert','buildSuggestion','pluginName','execute','sort','removed','editingDowncast','updateMarker','insertion','deletion','move','lowest','track-changes-suggestion-not-found','containsRange','isBefore','conversion','_adapter','options','suggestion:','getIntersection','getAncestors','textProxy','removeAttribute','markDeletion','markers','track-changes-suggestion-data-mismatch','createdAt','formatBlock:accept','fromCharCode','formatInline:chain','removeMarkers','isBlock','_setSuggestionRange','formatBlock:join','activeMarkers','stop','getSuggestions','removeMarker:suggestion:formatBlock','getChanges','commands','_setSuggestionData','accepted','markBlockFormat','deletion:join','setTo','createElement','splitPosition','join','_customCallbacks'];(function(_0x473a07,_0x2981ea){const _0x4012a1=function(_0x16a687){while(--_0x16a687){_0x473a07['push'](_0x473a07['shift']());}};_0x4012a1(++_0x2981ea);}(_0x2981,0x18f));const _0x4012=function(_0x473a07,_0x2981ea){_0x473a07=_0x473a07-0x0;let _0x4012a1=_0x2981[_0x473a07];return _0x4012a1;};import{Plugin as _0x4ba5c2,PendingActions as _0x3d9e3c}from'ckeditor5/src/core';import{LiveRange as _0x274d58}from'ckeditor5/src/engine';import{CKEditorError as _0xb43784,uid as _0x35a764,priorities as _0x261cbe,EmitterMixin as _0x2a93f6,mix as _0xdb2865,logWarning as _0x1923d6}from'ckeditor5/src/utils';import{toWidget as _0x3df954}from'ckeditor5/src/widget';import{Users as _0x54dfa1}from'ckeditor5-collaboration/src/collaboration-core';import _0xec3f0c from'./commands/trackchangescommand';import _0x33c19b from'./commands/acceptsuggestioncommand';import _0x5ac85e from'./commands/discardsuggestioncommand';import _0x186100 from'./commands/executeonallsuggestionscommand';import _0xbd9cf8 from'./commands/executeonselectedsuggestionscommand';import _0x30e79a from'./suggestion';import _0x31917f from'./suggestiondescriptionfactory';import _0x20dfb6 from'./integrations/alignment';import _0x4a04fe from'./integrations/basicstyles';import _0x3c926c from'./integrations/blockquote';import _0x569ed2 from'./integrations/ckbox';import _0x2504d4 from'./integrations/codeblock';import _0x5dac07 from'./integrations/comments';import _0xb742e0 from'./integrations/deletecommand';import _0x172848 from'./integrations/documentlist';import _0x3fbb2e from'./integrations/entercommand';import _0x1b09cf from'./integrations/font';import _0x4adf97 from'./integrations/heading';import _0x1e2b29 from'./integrations/highlight';import _0x549215 from'./integrations/horizontalline';import _0x18dea9 from'./integrations/htmlembed';import _0x2f8f04 from'./integrations/image';import _0x4f7705 from'./integrations/importword';import _0x529a0b from'./integrations/indent';import _0x2b7da7 from'./integrations/inputcommand';import _0x2bb6f7 from'./integrations/link';import _0x115871 from'./integrations/list';import _0x5b2e46 from'./integrations/mediaembed';import _0x3671e5 from'./integrations/mention';import _0x52b449 from'./integrations/pagebreak';import _0x49c4b8 from'./integrations/paragraph';import _0x3bbedd from'./integrations/removeformat';import _0x4e3ee4 from'./integrations/restrictededitingmode';import _0x3b932d from'./integrations/shiftentercommand';import _0x22fd24 from'./integrations/standardeditingmode';import _0x58e503 from'./integrations/style';import _0x402473 from'./integrations/table';import _0x242db0 from'./integrations/tablemergesplit';import _0x40c30d from'./integrations/tableheadings';import _0x2535b4 from'./integrations/tableclipboard';import _0x284b15 from'./integrations/title';import _0x5d000e from'./integrations/undo';import{hashObject as _0x242a73}from'@ckeditor/ckeditor5-collaboration-core';import{getTranslation as _0x5f1e46}from'./utils/common-translations';import _0x559262 from'./integrations/tablecaption';export default class p extends _0x4ba5c2{static get[_0x4012('0x2d')](){return[_0x4012('0x20'),_0x54dfa1,_0x3d9e3c,_0x20dfb6,_0x4a04fe,_0x3c926c,_0x569ed2,_0x2504d4,_0x5dac07,_0xb742e0,_0x172848,_0x3fbb2e,_0x1b09cf,_0x4adf97,_0x1e2b29,_0x549215,_0x18dea9,_0x2f8f04,_0x4f7705,_0x529a0b,_0x2b7da7,_0x2bb6f7,_0x115871,_0x5b2e46,_0x3671e5,_0x52b449,_0x49c4b8,_0x3bbedd,_0x4e3ee4,_0x3b932d,_0x22fd24,_0x58e503,_0x402473,_0x242db0,_0x40c30d,_0x559262,_0x2535b4,_0x284b15,_0x5d000e];}static get[_0x4012('0xbc')](){return _0x4012('0xb3');}constructor(_0x4fcfd5){function _0x57b287(_0x4b71dc){return _0x4b71dc[_0x4012('0x12f')](_0x347a1f=>String[_0x4012('0xd6')](_0x347a1f))[_0x4012('0xe9')]('');}super(_0x4fcfd5),this[_0x4012('0x124')](_0x4012('0xdc'),[]),this['on'](_0x4012('0x78'),(_0x2515a2,_0x751cfd,_0x544a6d,_0x588306)=>{this[_0x4012('0x12a')][_0x4012('0xaa')](()=>{for(const _0x3e73de of[..._0x588306,..._0x544a6d])this[_0x4012('0x12a')][_0x4012('0xd2')][_0x4012('0x97')](_0x3e73de)&&_0x4fcfd5[_0x4012('0x5e')]['reconvertMarker'](_0x3e73de);});}),this[_0x4012('0x107')]=new _0x31917f(this[_0x4012('0x17')][_0x4012('0x116')][_0x4012('0x6f')],this[_0x4012('0x17')]['locale']),this[_0x4012('0xca')]=null,this[_0x4012('0x50')]=new yt(this[_0x4012('0x17')]),this[_0x4012('0x11c')]=new Map(),this[_0x4012('0x8f')]=_0x4fcfd5[_0x4012('0x1c')][_0x4012('0x4d')](_0x4012('0x20')),this['_enabledCommands']=new Set(),this[_0x4012('0x12a')]=this['editor'][_0x4012('0x116')],this[_0x4012('0x15')]=new WeakMap(),this[_0x4012('0xf4')]=!0x1,this[_0x57b287([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57b287([0x34,0x30,0x34,0x34,0x32,0x32,0x30,0x36]);}[_0x4012('0x0')](){const _0x5db124=this['editor'];_0x5db124[_0x4012('0xc9')]['for'](_0x4012('0xc0'))[_0x4012('0x10a')]({'model':_0x4012('0xa6'),'view':_0x269a13=>{const {id:_0x598250,type:_0x243549}=this[_0x4012('0x5d')](_0x269a13[_0x4012('0x41')]),_0x13f109=['ck-suggestion-marker',_0x4012('0x13')+_0x243549];let _0x595244=0xbb8;return this[_0x4012('0xdc')][_0x4012('0x4e')](_0x269a13[_0x4012('0x41')])&&(_0x13f109[_0x4012('0x48')](_0x4012('0xd')),_0x595244=0xbc2),_0x4012('0xc3')==_0x243549&&(_0x595244+=0x5),{'classes':_0x13f109,'attributes':{'data-suggestion':_0x598250},'priority':_0x595244};}}),_0x5db124['conversion']['for'](_0x4012('0x82'))['add'](_0x4bb877=>{_0x4bb877['on'](_0x4012('0x39'),(_0x22b7ba,_0x539254,_0x40042f)=>{if(!_0x40042f[_0x4012('0xcb')][_0x4012('0xee')])return;const _0x559b65=_0x539254[_0x4012('0x9f')];if(!_0x559b65)return;const _0x560c97=_0x40042f[_0x4012('0x101')]['toViewElement'](_0x559b65);_0x5db124['model'][_0x4012('0x6f')][_0x4012('0x122')](_0x559b65)&&_0x560c97&&!_0x560c97['getCustomProperty'](_0x4012('0xc'))&&_0x560c97['is']('containerElement')&&_0x3df954(_0x560c97,_0x40042f[_0x4012('0xb9')]);},{'priority':'high'});}),_0x5db124[_0x4012('0xc9')][_0x4012('0x7d')](_0x4012('0x82'))[_0x4012('0x10a')]({'model':'suggestion','view':(_0x1dc9e9,_0x1b4be3)=>{if(!_0x1b4be3[_0x4012('0xcb')][_0x4012('0xee')])return null;const {type:_0x1ce0be}=this[_0x4012('0x5d')](_0x1dc9e9['markerName']);return{'classes':[_0x4012('0x8'),_0x4012('0x13')+_0x1ce0be],'priority':0xbb8};}});const _0x4474ef=({showActiveMarkers:_0x3b5878=!0x0}={})=>(_0x1aa18e,_0x225d5a,_0x5c443d)=>{if(!_0x225d5a[_0x4012('0x9f')])return;if(_0x225d5a[_0x4012('0x9f')]['is'](_0x4012('0x12c')))return void _0x5c443d[_0x4012('0x8a')][_0x4012('0xf2')](_0x225d5a[_0x4012('0x9f')],_0x1aa18e[_0x4012('0x137')]);const _0x569647=_0x5c443d[_0x4012('0x101')]['toViewElement'](_0x225d5a['item']);if(!(_0x225d5a[_0x4012('0x9f')]['is'](_0x4012('0x30'))&&_0x5db124[_0x4012('0x116')][_0x4012('0x6f')][_0x4012('0xd9')](_0x225d5a['item'])&&!_0x569647[_0x4012('0x1f')](_0x4012('0x11e'))))return;const {id:_0x426541}=this[_0x4012('0x5d')](_0x225d5a[_0x4012('0x41')]);_0x5c443d['writer']['addClass']([_0x4012('0x8'),_0x4012('0x85')],_0x569647),_0x5c443d[_0x4012('0xb9')]['setAttribute'](_0x4012('0xa4'),_0x426541,_0x569647),_0x5c443d[_0x4012('0x101')][_0x4012('0xa3')](_0x569647,_0x225d5a[_0x4012('0x41')]),_0x3b5878&&(this['activeMarkers'][_0x4012('0x4e')](_0x225d5a['markerName'])?_0x5c443d[_0x4012('0xb9')]['addClass'](_0x4012('0xd'),_0x569647):_0x5c443d[_0x4012('0xb9')][_0x4012('0x16')]('ck-suggestion-marker--active',_0x569647));for(const _0x5e18aa of _0x5db124[_0x4012('0x116')][_0x4012('0x7')](_0x225d5a['item'])[_0x4012('0x81')]())_0x5c443d['consumable'][_0x4012('0xf2')](_0x5e18aa,_0x1aa18e[_0x4012('0x137')]);_0x5c443d['consumable'][_0x4012('0xf2')](_0x225d5a['item'],_0x1aa18e[_0x4012('0x137')]);};_0x5db124['conversion']['for']('dataDowncast')[_0x4012('0xf')](_0x3adcf2=>{_0x3adcf2['on'](_0x4012('0xe'),(_0x460055,_0x371cd5,_0x96bb15)=>{_0x96bb15[_0x4012('0xcb')][_0x4012('0xee')]&&_0x4474ef({'showActiveMarkers':!0x1})(_0x460055,_0x371cd5,_0x96bb15);},{'priority':_0x4012('0x3c')});}),_0x5db124[_0x4012('0xc9')][_0x4012('0x7d')](_0x4012('0x82'))[_0x4012('0x103')]({'model':'suggestion','view':(_0x58e7dc,_0x55368b)=>_0x55368b[_0x4012('0xcb')][_0x4012('0xee')]?null:{'group':_0x4012('0xa6'),'name':_0x58e7dc[_0x4012('0x95')](_0x4012('0xa6')[_0x4012('0x125')]+0x1)}}),_0x5db124[_0x4012('0xc9')][_0x4012('0x7d')](_0x4012('0x135'))[_0x4012('0xec')]({'view':{'name':'suggestion','attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x559cf1,{writer:_0x3dd39c})=>{let _0x3945ff=_0x4012('0xcc')+_0x559cf1[_0x4012('0x59')](_0x4012('0x126'))+':'+_0x559cf1[_0x4012('0x59')]('id');return _0x559cf1[_0x4012('0x59')]('marker-count')&&(_0x3945ff+=':'+_0x559cf1['getAttribute'](_0x4012('0x29'))),_0x3dd39c[_0x4012('0xe7')](_0x4012('0x2a'),{'data-name':_0x3945ff});}}),_0x5db124[_0x4012('0xc9')][_0x4012('0x7d')]('upcast')[_0x4012('0x115')]({'view':_0x4012('0xa6')}),_0x5db124[_0x4012('0xc9')][_0x4012('0x7d')](_0x4012('0xc0'))['add'](_0x103a7c=>{_0x103a7c['on'](_0x4012('0xe'),_0x4474ef(),{'priority':_0x4012('0x57')});}),_0x5db124[_0x4012('0xc9')]['for'](_0x4012('0xc0'))[_0x4012('0xf')](_0x322e3f=>{_0x322e3f['on'](_0x4012('0xdf'),(_0x4a4815,_0x46a3b7,_0xbf6c4)=>{const _0x1e74e9=_0xbf6c4['mapper']['markerNameToElements'](_0x46a3b7[_0x4012('0x41')]);if(_0x1e74e9)for(const _0x15f5d4 of _0x1e74e9)_0x15f5d4[_0x4012('0x1f')](_0x4012('0x11e'))||(_0xbf6c4['writer'][_0x4012('0x16')]([_0x4012('0x8'),_0x4012('0x85'),_0x4012('0xd')],_0x15f5d4),_0xbf6c4[_0x4012('0xb9')][_0x4012('0xd0')](_0x4012('0xa4'),_0x15f5d4),_0xbf6c4[_0x4012('0x101')][_0x4012('0x64')](_0x15f5d4,_0x46a3b7[_0x4012('0x41')]));},{'priority':_0x4012('0x57')});}),_0x5db124[_0x4012('0x116')][_0x4012('0x83')][_0x4012('0x4c')](_0x2552ab=>{let _0x448ec3=!0x1;const _0x155c72=Array['from'](_0x5db124[_0x4012('0x116')][_0x4012('0x83')]['differ'][_0x4012('0x138')]()),_0x4c6ef1=new Set();for(const {name:_0x5c3c2f,data:_0x2bd958}of _0x155c72){const {group:_0x1499da,type:_0x444b66,id:_0x2de315}=this[_0x4012('0x5d')](_0x5c3c2f);if(_0x4012('0xa6')!==_0x1499da)continue;const _0x230f83=this[_0x4012('0x11c')][_0x4012('0x4d')](_0x2de315);if(null!=_0x2bd958[_0x4012('0x61')]){_0x4012('0xfe')==_0x444b66&&(_0x448ec3=_0x448ec3||It(_0x2bd958[_0x4012('0x61')],_0x5c3c2f,_0x2552ab,_0x5db124[_0x4012('0x116')][_0x4012('0x6f')]));if(_0x2bd958[_0x4012('0x61')]['isCollapsed']||_0x4012('0x9a')==_0x2bd958[_0x4012('0x61')][_0x4012('0x111')][_0x4012('0x22')]||_0x4012('0xed')==_0x444b66&&!At(_0x2bd958[_0x4012('0x61')])||_0x4012('0xc3')==_0x444b66&&!(!St(_0x332c54=_0x2bd958[_0x4012('0x61')])&&!function(_0x2f3802){return _0x2f3802[_0x4012('0x90')][_0x4012('0x86')]==_0x2f3802[_0x4012('0x9b')][_0x4012('0x34')]&&_0x2f3802[_0x4012('0x90')]['isAtEnd'];}(_0x332c54)))_0x2552ab['removeMarker'](_0x5c3c2f),_0x448ec3=!0x0;else{if(!_0x230f83||!_0x230f83['isInContent'])continue;_0x4c6ef1[_0x4012('0xf')](_0x230f83);}}}var _0x332c54;return _0x4c6ef1[_0x4012('0xfc')]>0x0&&(_0x448ec3=!!this['_joinWithAdjacentSuggestions'](_0x4c6ef1)||_0x448ec3),_0x448ec3;}),_0x5db124[_0x4012('0x116')][_0x4012('0x83')][_0x4012('0x4c')](_0x3db3cd=>{let _0x21f1c5=!0x1;for(const _0x1f99e1 of _0x5db124[_0x4012('0x116')]['document'][_0x4012('0x7f')][_0x4012('0xe0')]()){if(_0x4012('0xba')!=_0x1f99e1[_0x4012('0x6a')])continue;const _0x54a650=_0x1f99e1[_0x4012('0x66')][_0x4012('0xeb')](_0x1f99e1[_0x4012('0x125')]);if(_0x54a650[_0x4012('0x136')])for(const _0x48dc54 of this[_0x4012('0x11c')][_0x4012('0x8b')]()){if(_0x48dc54[_0x4012('0x96')]||!_0x48dc54[_0x4012('0x106')])continue;if(_0x4012('0xed')!=_0x48dc54[_0x4012('0x6a')])continue;const _0x1ded71=_0x48dc54['getFirstRange']();if(_0x1ded71['start'][_0x4012('0x86')]!=_0x1ded71[_0x4012('0x9b')][_0x4012('0x86')]&&_0x1ded71[_0x4012('0x9b')][_0x4012('0x11')](_0x1f99e1[_0x4012('0x66')])){const _0x1fae60=_0x5db124[_0x4012('0x116')][_0x4012('0x3a')](_0x1ded71[_0x4012('0x90')],_0x54a650);_0x3db3cd[_0x4012('0xc1')](_0x48dc54[_0x4012('0x108')](),{'range':_0x1fae60}),_0x21f1c5=!0x0;}}}return _0x21f1c5;}),_0x5db124[_0x4012('0x116')][_0x4012('0xd2')]['on']('update:suggestion',(_0x29c48a,_0x1b45cc,_0x3050fd)=>{if(null==_0x3050fd){const {id:_0x43bbb2}=this[_0x4012('0x5d')](_0x1b45cc[_0x4012('0x137')]),_0x14f587=this[_0x4012('0x11c')][_0x4012('0x4d')](_0x43bbb2);_0x14f587&&_0x14f587['addMarkerName'](_0x1b45cc['name']);}}),_0x5db124[_0x4012('0x116')][_0x4012('0x83')]['on'](_0x4012('0xf9'),()=>{const _0x478bf2=Array['from'](_0x5db124['model'][_0x4012('0x83')]['differ'][_0x4012('0x138')]())['filter'](_0x446050=>_0x4012('0xa6')===this['_splitMarkerName'](_0x446050[_0x4012('0x137')])[_0x4012('0x31')]);if(0x0===_0x478bf2[_0x4012('0x125')])return;_0x478bf2[_0x4012('0xbe')]((_0x26fa9c,_0x2f9502)=>{const _0x5517e3=_0x26fa9c['data'][_0x4012('0xb5')],_0x3a65dc=_0x2f9502['data'][_0x4012('0xb5')];return null===_0x5517e3&&null===_0x3a65dc?0x0:null===_0x5517e3&&null!==_0x3a65dc?-0x1:null!==_0x5517e3&&null===_0x3a65dc?0x1:_0x5517e3['start'][_0x4012('0xc8')](_0x3a65dc[_0x4012('0x90')])?-0x1:0x1;});const _0x40a185=new Set(),_0x532810=new Set();for(const {name:_0x2fd39c,data:_0x4bdb2e}of _0x478bf2){const {id:_0x98ccda}=this[_0x4012('0x5d')](_0x2fd39c);if(null===_0x4bdb2e[_0x4012('0xb5')]){const _0x4bacc7=this['_handleNewSuggestionMarker'](_0x2fd39c);_0x532810[_0x4012('0xf')](_0x4bacc7);}else{const _0x97ee13=this['_suggestions'][_0x4012('0x4d')](_0x98ccda);null!==_0x4bdb2e[_0x4012('0x61')]||_0x97ee13[_0x4012('0x106')]?(_0x40a185[_0x4012('0xf')](_0x97ee13['head']),_0x532810[_0x4012('0xf')](_0x97ee13)):this[_0x4012('0xb8')](_0x97ee13);}}_0x532810[_0x4012('0xfc')]>0x0&&this[_0x4012('0x45')](_0x532810);for(const _0x845228 of _0x40a185)this[_0x4012('0x89')]('suggestionChanged',_0x845228);}),_0x5db124[_0x4012('0x116')]['on']('applyOperation',(_0x7eac78,_0x25592b)=>{const _0x5357a1=_0x25592b[0x0];if(!this[_0x4012('0x11c')]['size'])return;if(!_0x5357a1[_0x4012('0x10d')])return;if(_0x5357a1[_0x4012('0x8d')][_0x4012('0x10c')]||!_0x5357a1[_0x4012('0x8d')][_0x4012('0xa8')])return;let _0x2bc7b6,_0x1ac855;switch(_0x5357a1[_0x4012('0x6a')]){case _0x4012('0xba'):_0x2bc7b6=_0x5db124[_0x4012('0x116')][_0x4012('0x102')](_0x5357a1['position']),_0x1ac855=_0x2bc7b6[_0x4012('0xeb')](_0x5357a1[_0x4012('0x130')]);break;case'split':_0x2bc7b6=_0x5db124[_0x4012('0x116')][_0x4012('0x102')](_0x5357a1[_0x4012('0xe8')]),_0x1ac855=_0x5db124[_0x4012('0x116')][_0x4012('0x102')](_0x5357a1['moveTargetPosition']);break;case _0x4012('0xc4'):_0x2bc7b6=_0x5db124['model'][_0x4012('0x102')](_0x5357a1[_0x4012('0xb4')]),_0x1ac855=_0x2bc7b6[_0x4012('0xeb')](_0x5357a1[_0x4012('0x130')]);break;default:return;}const _0x44bfd7=_0x5db124[_0x4012('0x116')][_0x4012('0x3a')](_0x2bc7b6,_0x1ac855);_0x5db124[_0x4012('0x116')][_0x4012('0xaa')](()=>{for(const {suggestion:_0x3359ec,meta:_0x4ae5f6}of this[_0x4012('0x77')](_0x44bfd7)){if(_0x3359ec[_0x4012('0x96')])continue;if(_0x4012('0xfe')==_0x3359ec[_0x4012('0x6a')])continue;const _0x175176=_0x3359ec['data']&&_0x3359ec[_0x4012('0x8e')][_0x4012('0xac')];(_0x4012('0xed')!=_0x3359ec[_0x4012('0x6a')]||_0x4012('0x1')==_0x5357a1['type']&&!_0x175176)&&(_0x4ae5f6['containsRangeInObject']||_0x4012('0xc2')==_0x3359ec[_0x4012('0x6a')]&&_0x4ae5f6[_0x4012('0x79')]||_0x3359ec[_0x4012('0x11d')]()[_0x4012('0xc7')](_0x44bfd7)&&this['_breakSuggestionMarker'](_0x3359ec,_0x2bc7b6,_0x1ac855));}});},{'priority':_0x4012('0xc5')}),_0x5db124[_0x4012('0x116')]['on'](_0x4012('0xf0'),(_0x2aab0f,_0x245caf)=>{const _0x2bf0bc=_0x245caf[0x0],_0x38c593=_0x245caf[0x1];if(_0x38c593&&_0x38c593[_0x4012('0x9c')])return;if(this[_0x4012('0xf4')])return;if(!this[_0x4012('0x74')][_0x4012('0x37')])return;if(_0x2bf0bc[_0x4012('0x100')])return;const _0x365264=_0x5db124[_0x4012('0x116')][_0x4012('0x6f')],{start:_0x4f1f85,end:_0x5759b0}=_0x2bf0bc[_0x4012('0x11d')](),_0x375350=_0x4f1f85[_0x4012('0xf7')]&&_0x365264['isLimit'](_0x4f1f85[_0x4012('0xf7')])?null:_0x365264[_0x4012('0x109')](_0x4f1f85,_0x4012('0x6b')),_0x52648f=_0x5759b0[_0x4012('0x34')]&&_0x365264[_0x4012('0xfa')](_0x5759b0[_0x4012('0x34')])?null:_0x365264[_0x4012('0x109')](_0x5759b0,_0x4012('0x76')),_0x1266ac=_0x5db124[_0x4012('0x116')][_0x4012('0x3a')](_0x375350?_0x375350['start']:_0x4f1f85,_0x52648f?_0x52648f[_0x4012('0x9b')]:_0x5759b0);_0x5db124[_0x4012('0x116')][_0x4012('0xaa')](_0x3511eb=>{this[_0x4012('0xd1')](_0x1266ac);const _0x2a6507=_0x5db124[_0x4012('0x116')][_0x4012('0x6f')][_0x4012('0x109')](_0x1266ac[_0x4012('0x90')]);_0x2bf0bc['is']('documentSelection')?_0x3511eb[_0x4012('0x12e')](_0x2a6507):_0x2bf0bc[_0x4012('0xe6')](_0x2a6507);}),_0x2aab0f['stop']();},{'priority':_0x261cbe[_0x4012('0x104')]+0xa}),_0x5db124[_0x4012('0x116')]['on'](_0x4012('0x84'),(_0x2c539c,_0x12b8bd)=>{const _0x467431=_0x12b8bd[_0x12b8bd[_0x4012('0x125')]-0x1];_0x467431&&_0x467431[_0x4012('0x9c')]||this[_0x4012('0xf4')]||this[_0x4012('0x74')]['value']&&(_0x5db124[_0x4012('0x116')][_0x4012('0xaa')](()=>{let _0x20f176=_0x5db124[_0x4012('0x116')][_0x4012('0x84')](_0x12b8bd[0x0],_0x12b8bd[0x1],_0x12b8bd[0x2],_0x12b8bd[0x3],{'forceDefaultExecution':!0x0});if(!_0x20f176)return;_0x2c539c[_0x4012('0x5f')]=_0x20f176[_0x4012('0x3f')]();const _0x20c594=_0x20f176['end'][_0x4012('0x34')],_0x1b5a36=_0x5db124[_0x4012('0x116')][_0x4012('0x6f')];_0x20c594&&_0x1b5a36['isBlock'](_0x20c594)&&!_0x1b5a36['isObject'](_0x20c594)&&(_0x20f176=_0x5db124[_0x4012('0x116')][_0x4012('0x3a')](_0x20f176[_0x4012('0x90')],_0x5db124[_0x4012('0x116')][_0x4012('0x102')](_0x20c594,'end'))),this[_0x4012('0xb0')](_0x20f176);}),_0x2c539c[_0x4012('0xdd')]());},{'priority':_0x4012('0x57')}),this[_0x4012('0x74')]=new _0xec3f0c(_0x5db124,this[_0x4012('0x2c')]),this[_0x4012('0x17')][_0x4012('0xe1')][_0x4012('0xf')](_0x4012('0x32'),this[_0x4012('0x74')]),this[_0x4012('0x6e')](_0x4012('0x32'));const _0x5f3b2c=new _0x33c19b(_0x5db124,this[_0x4012('0x11c')]);_0x5db124[_0x4012('0xe1')][_0x4012('0xf')](_0x4012('0x40'),_0x5f3b2c),this[_0x4012('0x6e')]('acceptSuggestion');const _0x2bb077=new _0x5ac85e(_0x5db124,this[_0x4012('0x11c')]);_0x5db124[_0x4012('0xe1')][_0x4012('0xf')](_0x4012('0xa7'),_0x2bb077),this[_0x4012('0x6e')]('discardSuggestion'),_0x5db124[_0x4012('0xe1')][_0x4012('0xf')](_0x4012('0x127'),new _0x186100(_0x5db124,_0x5f3b2c,this['_suggestions'])),this[_0x4012('0x6e')](_0x4012('0x127')),_0x5db124[_0x4012('0xe1')]['add'](_0x4012('0x13b'),new _0x186100(_0x5db124,_0x2bb077,this[_0x4012('0x11c')])),this[_0x4012('0x6e')](_0x4012('0x13b')),_0x5db124[_0x4012('0xe1')][_0x4012('0xf')]('acceptSelectedSuggestions',new _0xbd9cf8(_0x5db124,_0x5f3b2c,this[_0x4012('0x11c')])),this[_0x4012('0x6e')]('acceptSelectedSuggestions'),_0x5db124[_0x4012('0xe1')][_0x4012('0xf')](_0x4012('0x4f'),new _0xbd9cf8(_0x5db124,_0x2bb077,this[_0x4012('0x11c')])),this[_0x4012('0x6e')](_0x4012('0x4f'));const _0x3f7d19=_0x5db124[_0x4012('0x1c')]['get'](_0x4012('0x20'));this[_0x4012('0x3')](_0x3f7d19,'addComment',(_0x5edf33,{threadId:_0x4f44a6})=>{const _0x501733=this[_0x4012('0x11c')][_0x4012('0x4d')](_0x4f44a6);_0x501733&&_0x501733[_0x4012('0x10e')]&&0x1===_0x501733[_0x4012('0x10e')][_0x4012('0x125')]&&this[_0x4012('0x71')](_0x4f44a6,{'hasComments':!0x0});},{'priority':_0x4012('0x73')}),this[_0x4012('0x3')](_0x3f7d19,_0x4012('0xaf'),(_0x55c424,{threadId:_0x450a77})=>{const _0x2d096b=this[_0x4012('0x11c')]['get'](_0x450a77);_0x2d096b&&_0x2d096b[_0x4012('0x10e')]&&!_0x2d096b['commentThread'][_0x4012('0x125')]&&this['_updateSuggestionData'](_0x450a77,{'hasComments':!0x1});},{'priority':_0x4012('0x73')});}set[_0x4012('0x12d')](_0x5b9c36){if(this[_0x4012('0xca')])throw new _0xb43784(_0x4012('0x70'),this);this[_0x4012('0xca')]=_0x5b9c36;}get[_0x4012('0x12d')](){return this[_0x4012('0xca')];}[_0x4012('0xde')]({skipNotAttached:_0x2a019e=!0x1,toJSON:_0x33502c=!0x1}={}){const _0x16db4a=[];for(const _0x656a2 of this[_0x4012('0x11c')][_0x4012('0x8b')]())_0x2a019e&&!_0x656a2['isInContent']||_0x16db4a[_0x4012('0x48')](_0x656a2);return _0x33502c?_0x16db4a['map'](_0x573b76=>_0x573b76[_0x4012('0x13a')]()):_0x16db4a;}[_0x4012('0x10')](_0x55fab1){const _0x56e5ec=this['_suggestions'][_0x4012('0x4d')](_0x55fab1);if(!_0x56e5ec)throw new _0xb43784(_0x4012('0xc6'),this);return _0x56e5ec;}['hasSuggestion'](_0x5c7a48){return this[_0x4012('0x11c')][_0x4012('0x97')](_0x5c7a48);}[_0x4012('0x110')](_0x1cdc0b){const {authorId:_0x3937ec,id:_0x3bcd34,attributes:_0x208614}=_0x1cdc0b,[_0x18680f,_0x4729e8]=_0x1cdc0b[_0x4012('0x6a')][_0x4012('0x1')](':'),_0x359320=this['_suggestions'][_0x4012('0x4d')](_0x3bcd34)||this[_0x4012('0xa1')](_0x18680f,_0x4729e8,_0x3bcd34,_0x3937ec,_0x208614);if(this['_addThreadToSuggestion'](_0x359320),this[_0x4012('0x60')](_0x359320,_0x18680f,_0x4729e8||null,_0x3937ec),_0x359320[_0x4012('0xd4')]=_0x1cdc0b[_0x4012('0xd4')],_0x208614&&_0x208614[_0x4012('0x4b')]){const {authorName:_0x445b38,createdAt:_0x466721}=_0x208614['@external'],_0x1c23b2=this[_0x4012('0x63')](_0x445b38);_0x359320[_0x4012('0x3d')]=_0x466721,_0x359320['author']=_0x1c23b2,_0x359320['isExternal']=!0x0;}else _0x359320['authoredAt']=_0x1cdc0b['createdAt'];switch(_0x1cdc0b[_0x4012('0x8e')]&&(_0x359320[_0x4012('0x8e')]=_0x1cdc0b[_0x4012('0x8e')]),_0x1cdc0b[_0x4012('0x2f')]&&(_0x359320[_0x4012('0x2f')]=_0x1cdc0b['attributes']),this['_adapter']&&this[_0x4012('0xca')][_0x4012('0x117')]||(_0x359320[_0x4012('0x129')]=!0x0),this[_0x4012('0x15')]['get'](_0x359320)){case _0x4012('0x11a'):this['_suggestionState'][_0x4012('0x124')](_0x359320,_0x4012('0xf1'));break;case'markerReady':_0x359320[_0x4012('0x106')]?(this[_0x4012('0x15')][_0x4012('0x124')](_0x359320,'ready'),this[_0x4012('0x89')](_0x4012('0xa'),_0x359320)):this[_0x4012('0x15')]['set'](_0x359320,'removed');}return _0x359320;}[_0x4012('0x40')](_0x4979dc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x169c02 of _0x4979dc[_0x4012('0x6')]())_0x169c02[_0x4012('0x42')]();});});}['discardSuggestion'](_0x5339cd){this[_0x4012('0x9c')](()=>{this[_0x4012('0x17')][_0x4012('0x116')][_0x4012('0xaa')](()=>{for(const _0x381fb0 of _0x5339cd[_0x4012('0x6')]())_0x381fb0[_0x4012('0x51')]();});});}[_0x4012('0x6e')](_0x372aed,_0x490b16){const _0x55dd5c=this[_0x4012('0x17')][_0x4012('0xe1')][_0x4012('0x4d')](_0x372aed);if(!_0x55dd5c)throw new _0xb43784(_0x4012('0x9e'),this,{'commandName':_0x372aed});this['_enabledCommands'][_0x4012('0xf')](_0x55dd5c),_0x490b16&&_0x55dd5c['on']('execute',(_0x11e9e8,_0x471b9c)=>{this[_0x4012('0x74')][_0x4012('0x37')]&&(this[_0x4012('0xf4')]||_0x471b9c[_0x4012('0x125')]>0x0&&_0x471b9c[_0x471b9c[_0x4012('0x125')]-0x1]&&_0x471b9c[_0x471b9c[_0x4012('0x125')]-0x1]['forceDefaultExecution']||(_0x490b16((..._0x42bc78)=>_0x55dd5c[_0x4012('0xbd')](..._0x42bc78,{'forceDefaultExecution':!0x0}),..._0x471b9c),_0x11e9e8[_0x4012('0xdd')]()));},{'priority':_0x4012('0x57')});}['forceDefaultExecution'](_0x2acdd8){let _0x2489b9,_0x21013e;const _0x247af5=this[_0x4012('0xf4')];this[_0x4012('0xf4')]=!0x0;try{_0x2489b9=_0x2acdd8();}catch(_0x19ef1e){_0x21013e=_0x19ef1e;}return _0x247af5||(this[_0x4012('0xf4')]=!0x1),_0x21013e&&_0xb43784[_0x4012('0xae')](_0x21013e,this),_0x2489b9;}[_0x4012('0xb0')](_0x23e45c,_0x39df5d=null,_0x30fe35={}){if(_0x23e45c[_0x4012('0x100')])return null;const _0x2eb9d3=this[_0x4012('0x17')][_0x4012('0x1c')]['get'](_0x4012('0xb6'))['me'];for(const {suggestion:_0x1aea70,meta:_0x5ab66a}of this[_0x4012('0x77')](_0x23e45c,_0x4012('0xc2')))if(_0x5ab66a[_0x4012('0x79')]){if(!_0x5ab66a[_0x4012('0x21')])return _0x1aea70;if(_0x39df5d==_0x1aea70[_0x4012('0x9')]){const _0x33793c=_0x1aea70['getFirstRange']();return _0x33793c[_0x4012('0x90')][_0x4012('0x11')](_0x23e45c[_0x4012('0x9b')])?this['_setSuggestionRange'](_0x1aea70,this[_0x4012('0x12a')][_0x4012('0x3a')](_0x23e45c[_0x4012('0x90')],_0x33793c[_0x4012('0x9b')])):this['_setSuggestionRange'](_0x1aea70,this[_0x4012('0x12a')]['createRange'](_0x33793c[_0x4012('0x90')],_0x23e45c[_0x4012('0x9b')])),_0x1aea70;}}const _0x484b70=_0x35a764(),_0x44695c=_0x2eb9d3['id'],_0x38da76=_0x39df5d?_0x4012('0x25')+_0x39df5d:_0x4012('0xc2'),_0x5d1071=this['_setSuggestionData']({'id':_0x484b70,'type':_0x38da76,'createdAt':new Date(),'authorId':_0x44695c,'attributes':_0x30fe35});return this['_addSuggestionMarker'](_0x38da76,_0x484b70,_0x44695c,_0x23e45c),_0x5d1071;}[_0x4012('0x12')](_0x323659,_0x21f6c7=_0x4012('0x72'),_0xa5e84e={}){const _0x4cadf9=this[_0x4012('0x17')]['plugins'][_0x4012('0x4d')]('Users')['me'],_0x4758dd=this[_0x4012('0x50')][_0x4012('0x139')]('insertion',_0x21f6c7,_0x4012('0xe9'));for(const _0x3bacf2 of this['getSuggestions']())if(_0x3bacf2[_0x4012('0xad')]['id']==_0x4cadf9['id']&&_0x4012('0xc2')==_0x3bacf2[_0x4012('0x6a')]&&_0x3bacf2[_0x4012('0x9')]==_0x21f6c7&&(_0x4758dd(_0x3bacf2['getRanges'](),_0x323659)||_0x4758dd(_0x323659,_0x3bacf2[_0x4012('0x93')]()))){for(const _0x461ee6 of _0x323659)_0x3bacf2[_0x4012('0x36')](_0x461ee6);return _0x3bacf2;}for(const _0x976dcf of _0x323659)for(const {suggestion:_0x1be8a3,meta:_0x35e256}of this[_0x4012('0x77')](_0x976dcf,'insertion')){if(!_0x35e256[_0x4012('0x79')])continue;let _0x14c43a=!0x0;for(const _0x20daf8 of _0x1be8a3[_0x4012('0x93')]())for(const _0x4ed423 of _0x323659)if(!_0x20daf8[_0x4012('0xc7')](_0x4ed423)){_0x14c43a=!0x1;break;}if(_0x14c43a)return _0x1be8a3;}const _0x417d8b=_0x35a764(),_0x429a82=_0x4cadf9['id'],_0x3e88dd='insertion:'+_0x21f6c7,_0xaa98c4=this[_0x4012('0xe2')]({'id':_0x417d8b,'type':_0x3e88dd,'createdAt':new Date(),'authorId':_0x429a82,'attributes':_0xa5e84e});for(const _0x1b79fe of _0x323659)this[_0x4012('0x134')](_0x3e88dd,_0x417d8b,_0x429a82,_0x1b79fe,_0x30e79a[_0x4012('0x38')]());return _0xaa98c4;}[_0x4012('0x26')](_0x555528,_0x229d4a,_0x1c7b33=null,_0x12a09a={}){if(_0x1c7b33=_0x1c7b33||vt(_0x229d4a),_0x555528[_0x4012('0x100')])return;const _0x52b631=this['editor'][_0x4012('0x1c')][_0x4012('0x4d')](_0x4012('0xb6'))['me'],_0x233631=[];for(const {suggestion:_0x29c9c1,meta:_0x2b408f}of this[_0x4012('0x77')](_0x555528,_0x4012('0xc2')))_0x2b408f[_0x4012('0x79')]&&!_0x2b408f[_0x4012('0xf3')]&&_0x233631[_0x4012('0x48')](..._0x29c9c1[_0x4012('0x93')]());const _0x6ec8af=function(_0x17ea80,_0x36495e){const _0x59f7ba=[];for(const _0x3d334e of _0x36495e){const _0x5077be=_0x17ea80['getIntersection'](_0x3d334e);_0x5077be&&_0x59f7ba['push'](_0x5077be);}return _0x59f7ba;}(_0x555528,_0x233631),_0x137b26=function(_0x2d3f77,_0x3f4c57){const _0x4ecf7d=[_0x2d3f77];for(const _0x594f0d of _0x3f4c57){let _0x19a068=0x0;for(;_0x19a068<_0x4ecf7d[_0x4012('0x125')];){const _0x33e751=_0x4ecf7d[_0x19a068][_0x4012('0x94')](_0x594f0d);_0x4ecf7d[_0x4012('0xff')](_0x19a068,0x1,..._0x33e751),_0x19a068+=_0x33e751['length'];}}return _0x4ecf7d;}(_0x555528,_0x233631);_0x6ec8af[_0x4012('0x125')]&&this['_model']['change'](()=>{for(const _0x2fb4a8 of _0x6ec8af){const _0x37ce7b=this[_0x4012('0x50')]['getSuggestionCallback'](_0x4012('0xfe'),_0x1c7b33,'accept');this[_0x4012('0x9c')](()=>_0x37ce7b([_0x2fb4a8],_0x229d4a,_0x12a09a));}});for(const _0x2feb6a of _0x137b26){let _0x2e48df=null,_0x4a1162=_0x2feb6a[_0x4012('0x90')],_0x193dd3=_0x2feb6a[_0x4012('0x9b')];for(const {suggestion:_0x195143,meta:_0x2a1348}of this[_0x4012('0x77')](_0x2feb6a,_0x4012('0xfe'))){if(!_0x2a1348['isOwn'])continue;if(_0x195143[_0x4012('0x9')]!=_0x1c7b33)continue;const _0x5c65c7=_0x195143[_0x4012('0x11d')]();if(_0x5c65c7[_0x4012('0xc7')](_0x2feb6a,!0x0))return;_0x4a1162=_0x4a1162[_0x4012('0xc8')](_0x5c65c7[_0x4012('0x90')])?_0x4a1162:_0x5c65c7[_0x4012('0x90')],_0x193dd3=_0x193dd3[_0x4012('0x2e')](_0x5c65c7[_0x4012('0x9b')])?_0x193dd3:_0x5c65c7[_0x4012('0x9b')],_0x2e48df?_0x5c65c7[_0x4012('0x90')]['isBefore'](_0x2e48df[_0x4012('0x11d')]()[_0x4012('0x90')])?(_0x2e48df[_0x4012('0xd8')](),_0x2e48df=_0x195143):_0x195143['removeMarkers']():_0x2e48df=_0x195143;}const _0x7dc42d=this['_model'][_0x4012('0x3a')](_0x4a1162,_0x193dd3);if(_0x2e48df)this[_0x4012('0xda')](_0x2e48df,_0x7dc42d);else{const _0x494ac0=_0x35a764(),_0x5924fb=_0x52b631['id'];this[_0x4012('0xe2')]({'id':_0x494ac0,'type':'formatInline:'+_0x1c7b33,'data':_0x229d4a,'createdAt':new Date(),'authorId':_0x5924fb,'attributes':_0x12a09a}),this[_0x4012('0x134')]('formatInline:'+_0x1c7b33,_0x494ac0,_0x5924fb,_0x7dc42d);}}}[_0x4012('0xe4')](_0x247f8a,_0x37642c,_0x4f993d=[],_0x3eee1f=null,_0x41a9e7={}){_0x37642c[_0x4012('0xb2')]||(_0x37642c[_0x4012('0xb2')]=_0x37642c[_0x4012('0xfb')]),_0x37642c[_0x4012('0xac')]=_0x247f8a['is'](_0x4012('0x5')),_0x3eee1f=_0x3eee1f||vt(_0x37642c);const _0x3b8c03=_0x4f993d[_0x4012('0x12f')](_0x1f7c9b=>Dt(_0x1f7c9b,this['_model'])),_0x2b2be7=_0x247f8a['is'](_0x4012('0x5'))?_0x247f8a:Dt(_0x247f8a,this[_0x4012('0x12a')]);_0x3b8c03['push'](_0x2b2be7);let _0x245373=!0x0;for(const _0x37a6ee of _0x3b8c03)if(!this[_0x4012('0x43')](_0x37a6ee)){_0x245373=!0x1;break;}if(_0x245373){const _0x566fc8=this[_0x4012('0x50')][_0x4012('0x139')](_0x4012('0xed'),_0x3eee1f,'accept');return void this[_0x4012('0x9c')](()=>_0x566fc8([_0x2b2be7],_0x37642c,_0x41a9e7));}let _0x36e225=null,_0x21a378=_0x2b2be7[_0x4012('0x90')],_0x4745fd=_0x2b2be7[_0x4012('0x9b')];for(const {suggestion:_0x44169c,meta:_0xd79848}of this['_findSuggestions'](_0x2b2be7,_0x4012('0xed'))){if(!_0xd79848['isOwn']||_0xd79848[_0x4012('0x21')]||_0xd79848[_0x4012('0x18')]||_0xd79848[_0x4012('0xf3')])continue;if(_0x44169c[_0x4012('0x8e')][_0x4012('0xb2')]!=_0x37642c[_0x4012('0xb2')])continue;const _0xf7eb66=_0x44169c[_0x4012('0x11d')]();if(_0x44169c['subType']==_0x3eee1f){if(_0xf7eb66[_0x4012('0xc7')](_0x2b2be7,!0x0))return;_0x21a378=_0x21a378['isBefore'](_0xf7eb66[_0x4012('0x90')])?_0x21a378:_0xf7eb66[_0x4012('0x90')],_0x4745fd=_0x4745fd[_0x4012('0x2e')](_0xf7eb66[_0x4012('0x9b')])?_0x4745fd:_0xf7eb66[_0x4012('0x9b')],_0x36e225?_0xf7eb66[_0x4012('0x90')][_0x4012('0xc8')](_0x36e225['getFirstRange']()[_0x4012('0x90')])?(_0x36e225[_0x4012('0xd8')](),_0x36e225=_0x44169c):_0x44169c['removeMarkers']():_0x36e225=_0x44169c;}else{const _0x46b088=_0x2b2be7['getIntersection'](_0xf7eb66);this['_cutOutSuggestionMarker'](_0x44169c,_0x46b088);}}const _0xb84137=this[_0x4012('0x17')][_0x4012('0x1c')][_0x4012('0x4d')](_0x4012('0xb6'))['me'],_0x1d8051=_0x35a764(),_0x11f76c=_0xb84137['id'];_0x36e225?this['_setSuggestionRange'](_0x36e225,this[_0x4012('0x12a')][_0x4012('0x3a')](_0x21a378,_0x4745fd)):(this[_0x4012('0xe2')]({'id':_0x1d8051,'type':_0x4012('0x11b')+_0x3eee1f,'data':_0x37642c,'createdAt':new Date(),'authorId':_0x11f76c,'attributes':_0x41a9e7}),this[_0x4012('0x134')]('formatBlock:'+_0x3eee1f,_0x1d8051,_0x11f76c,this[_0x4012('0x12a')]['createRange'](_0x21a378,_0x4745fd)));}[_0x4012('0x53')](_0x40885d,_0x3065a4,_0x2138d7=[],_0x2ab4e0=null,_0x5718a7={}){_0x3065a4[_0x4012('0xb2')]||(_0x3065a4[_0x4012('0xb2')]=_0x3065a4[_0x4012('0xfb')]),_0x3065a4[_0x4012('0xac')]=!0x1,_0x2ab4e0=_0x2ab4e0||vt(_0x3065a4);const _0x2e07c1=_0x2138d7[_0x4012('0x12f')](_0x12f600=>Dt(_0x12f600,this[_0x4012('0x12a')])),_0x2e104e=_0x40885d[_0x4012('0x12f')](_0x5b9cf7=>Dt(_0x5b9cf7,this['_model']));_0x2e07c1[_0x4012('0x48')](..._0x2e104e);let _0x4212c0=!0x0;for(const _0x56e248 of _0x2e07c1)if(!this[_0x4012('0x43')](_0x56e248)){_0x4212c0=!0x1;break;}if(_0x4212c0){const _0x1231ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ab4e0,'accept');return void this[_0x4012('0x9c')](()=>_0x1231ac(_0x2e104e,_0x3065a4,_0x5718a7));}const _0x3f6bde=this[_0x4012('0x17')][_0x4012('0x1c')][_0x4012('0x4d')](_0x4012('0xb6'))['me'];for(const _0x4f3cd3 of this[_0x4012('0xde')]()){if(_0x4f3cd3[_0x4012('0xad')]['id']!=_0x3f6bde['id'])continue;if(_0x4012('0xed')!=_0x4f3cd3[_0x4012('0x6a')]||_0x4f3cd3[_0x4012('0x8e')][_0x4012('0xb2')]!=_0x3065a4[_0x4012('0xb2')])continue;const _0x518f01=_0x4f3cd3['subType']==_0x2ab4e0;for(let _0x3ce903=0x0;_0x3ce903<_0x2e104e['length'];_0x3ce903++){const _0x5c3365=_0x2e104e[_0x3ce903];for(const _0x1554fe of _0x4f3cd3['getMarkers']()){const _0x22fc8f=_0x1554fe[_0x4012('0x10b')]();if(_0x5c3365['isEqual'](_0x22fc8f)){_0x518f01?(_0x2e104e['splice'](_0x3ce903,0x1),_0x3ce903--):_0x4f3cd3[_0x4012('0xfd')](_0x1554fe[_0x4012('0x137')]);break;}}}}if(0x0==_0x2e104e[_0x4012('0x125')])return;const _0x458db5=this[_0x4012('0x50')][_0x4012('0x139')](_0x4012('0xed'),_0x2ab4e0,_0x4012('0xe9'));for(const _0x22167c of this[_0x4012('0xde')]())if(_0x22167c['author']['id']==_0x3f6bde['id']&&_0x4012('0xed')==_0x22167c['type']&&_0x22167c[_0x4012('0x8e')][_0x4012('0xb2')]==_0x3065a4[_0x4012('0xb2')]&&_0x22167c[_0x4012('0x9')]==_0x2ab4e0&&(_0x458db5(_0x22167c[_0x4012('0x93')](),_0x2e104e)||_0x458db5(_0x2e104e,_0x22167c['getRanges']()))){for(const _0x552b00 of _0x2e104e)_0x22167c[_0x4012('0x36')](_0x552b00);return _0x22167c;}const _0x3d256b=_0x35a764(),_0x460e00=_0x3f6bde['id'],_0x5690f6='formatBlock:'+_0x2ab4e0,_0x24b3a1=this[_0x4012('0xe2')]({'id':_0x3d256b,'type':_0x5690f6,'data':_0x3065a4,'createdAt':new Date(),'authorId':_0x460e00,'attributes':_0x5718a7});for(const _0x466837 of _0x2e104e)this[_0x4012('0x134')](_0x5690f6,_0x3d256b,_0x460e00,_0x466837,_0x30e79a['getMultiRangeId']());return _0x24b3a1;}[_0x4012('0xd1')](_0x573682,_0xff094b=null,_0x1232b7={}){if(_0x573682[_0x4012('0x100')])return null;const _0x4268c1=this[_0x4012('0x17')][_0x4012('0x1c')][_0x4012('0x4d')](_0x4012('0xb6'))['me'],_0x3ef3ad=new _0x274d58(_0x573682[_0x4012('0x90')],_0x573682['end']);for(const {suggestion:_0x1be6ef,meta:_0x3cef43}of this[_0x4012('0x77')](_0x3ef3ad,_0x4012('0xc2')))if(_0x3cef43['isOwn']&&!_0x3cef43[_0x4012('0x21')]){if(_0x1be6ef[_0x4012('0x96')]){const _0x38db95=_0x1be6ef[_0x4012('0x93')]()[_0x4012('0x5b')](_0x3d8e9f=>_0x4012('0x9a')!=_0x3d8e9f[_0x4012('0x111')][_0x4012('0x22')]);_0x38db95[_0x4012('0x69')](_0x25a203=>_0x3ef3ad[_0x4012('0xc7')](_0x25a203,!0x0))&&_0x1be6ef[_0x4012('0x51')]();if(_0x38db95['some'](_0x150bf0=>_0x150bf0[_0x4012('0xc7')](_0x3ef3ad,!0x0))){const _0x5cf1c0=this['_suggestionFactory'][_0x4012('0x139')](_0x4012('0xc3'),_0xff094b,_0x4012('0x42'));return this[_0x4012('0x9c')](()=>_0x5cf1c0([_0x3ef3ad],null,_0x1232b7)),null;}}else{const _0x26f419=_0x3ef3ad['getIntersection'](_0x1be6ef['getFirstRange']());_0x1be6ef[_0x4012('0x13c')]([_0x26f419],null,_0x1232b7);}}if(_0x3ef3ad[_0x4012('0xf6')](),_0x3ef3ad[_0x4012('0x100')]||_0x4012('0x9a')==_0x3ef3ad[_0x4012('0x111')]['rootName'])return null;let _0x35efd9=null,_0x52b7cf=_0x3ef3ad[_0x4012('0x90')],_0x3d4ca4=_0x3ef3ad[_0x4012('0x9b')];for(const {suggestion:_0x594da0,meta:_0x2aef41}of this[_0x4012('0x77')](_0x3ef3ad,_0x4012('0xc3')))if(_0x2aef41[_0x4012('0x79')]){if(_0x594da0[_0x4012('0x96')]){let _0x5a5491=!0x0;for(const _0x3496ef of _0x594da0[_0x4012('0x93')]()){if(_0x3496ef[_0x4012('0xc7')](_0x3ef3ad,!0x0))return _0x594da0;_0x3ef3ad[_0x4012('0xc7')](_0x3496ef)||(_0x5a5491=!0x1);}_0x5a5491&&_0x594da0['discard']();}else{const _0x208c88=_0x594da0[_0x4012('0x11d')]();if(_0x208c88[_0x4012('0xc7')](_0x3ef3ad,!0x0))return _0x594da0;_0x52b7cf=_0x52b7cf['isBefore'](_0x208c88[_0x4012('0x90')])?_0x52b7cf:_0x208c88[_0x4012('0x90')],_0x3d4ca4=_0x3d4ca4[_0x4012('0x2e')](_0x208c88[_0x4012('0x9b')])?_0x3d4ca4:_0x208c88[_0x4012('0x9b')],_0x35efd9?_0x208c88[_0x4012('0x90')]['isBefore'](_0x35efd9['getFirstRange']()[_0x4012('0x90')])?(_0x35efd9[_0x4012('0xd8')](),_0x35efd9=_0x594da0):_0x594da0[_0x4012('0xd8')]():_0x35efd9=_0x594da0;}}if(_0x35efd9)return this['_setSuggestionRange'](_0x35efd9,this['_model']['createRange'](_0x52b7cf,_0x3d4ca4)),_0x35efd9;{const _0x1e4a13=_0x35a764(),_0x374af6=this[_0x4012('0x12a')]['createRange'](_0x52b7cf,_0x3d4ca4),_0x5c0623=_0x4268c1['id'],_0x18ecff=_0xff094b?_0x4012('0x8c')+_0xff094b:'deletion',_0x18a7a7=this[_0x4012('0xe2')]({'id':_0x1e4a13,'type':_0x18ecff,'createdAt':new Date(),'authorId':_0x5c0623,'attributes':_0x1232b7});return this[_0x4012('0x134')](_0x18ecff,_0x1e4a13,_0x5c0623,_0x374af6),_0x18a7a7;}}[_0x4012('0x118')](_0x26735c,_0x15e8fb=_0x4012('0x72'),_0x53dfed={}){const _0x1d9599=this['editor'][_0x4012('0x1c')][_0x4012('0x4d')]('Users')['me'],_0x3a00a4=_0x26735c[_0x4012('0x12f')](_0x56b26a=>new _0x274d58(_0x56b26a['start'],_0x56b26a[_0x4012('0x9b')])),_0x5600e5=new Set();for(const _0x158bf6 of _0x3a00a4)for(const {suggestion:_0x329cee,meta:_0x31a3cd}of this[_0x4012('0x77')](_0x158bf6,_0x4012('0xc2')))_0x31a3cd[_0x4012('0x79')]&&!_0x31a3cd[_0x4012('0x21')]&&_0x5600e5['add'](_0x329cee);for(const _0x3e9fca of _0x5600e5)if(_0x3e9fca[_0x4012('0x96')]){const _0x4b4eaa=_0x3e9fca[_0x4012('0x93')]();(!_0x3e9fca[_0x4012('0x2f')]||!_0x3e9fca['attributes'][_0x4012('0x23')])&&(_0x4b4eaa[_0x4012('0x69')](_0x478e48=>_0x3a00a4[_0x4012('0x6c')](_0xe0404b=>_0xe0404b[_0x4012('0xc7')](_0x478e48,!0x0)))&&_0x3e9fca[_0x4012('0x51')]());if(_0x3a00a4[_0x4012('0x69')](_0x3682c1=>_0x4b4eaa['some'](_0x187b09=>_0x187b09[_0x4012('0xc7')](_0x3682c1,!0x0)))){const _0x4f4f4b=this[_0x4012('0x50')][_0x4012('0x139')](_0x4012('0xc3'),_0x15e8fb,'accept');return this[_0x4012('0x9c')](()=>_0x4f4f4b(_0x26735c,null,_0x53dfed)),null;}}else{const _0x3a86c8=_0x3e9fca[_0x4012('0x11d')]();_0x3a00a4['some'](_0x465229=>_0x465229[_0x4012('0xc7')](_0x3a86c8,!0x0))&&_0x3e9fca[_0x4012('0x51')]();if(_0x3a00a4[_0x4012('0x69')](_0x28084b=>_0x3a86c8[_0x4012('0xc7')](_0x28084b,!0x0))){const _0x5b781b=this[_0x4012('0x50')][_0x4012('0x139')](_0x4012('0xc3'),_0x15e8fb,_0x4012('0x42'));return this[_0x4012('0x9c')](()=>_0x5b781b(_0x3a00a4,null,_0x53dfed)),null;}}const _0x1cfd93=this['_suggestionFactory'][_0x4012('0x139')](_0x4012('0xc3'),_0x15e8fb,_0x4012('0xe9'));let _0x2ef00d=null;for(const _0x5288d8 of this[_0x4012('0xde')]())if(_0x5288d8[_0x4012('0xad')]['id']==_0x1d9599['id']&&_0x5288d8[_0x4012('0x106')]&&_0x4012('0xc3')==_0x5288d8['type']&&_0x5288d8[_0x4012('0x9')]==_0x15e8fb&&(_0x1cfd93(_0x5288d8[_0x4012('0x93')](),_0x3a00a4)||_0x1cfd93(_0x3a00a4,_0x5288d8[_0x4012('0x93')]()))){if(_0x2ef00d){if(_0x5288d8[_0x4012('0x10e')]&&_0x5288d8['commentThread']['length'])continue;for(const _0x508520 of _0x5288d8[_0x4012('0x93')]())_0x2ef00d[_0x4012('0x91')](_0x508520)||_0x2ef00d[_0x4012('0x36')](_0x508520);_0x5288d8[_0x4012('0xd8')]();}else{_0x2ef00d=_0x5288d8;for(const _0x1902b4 of _0x3a00a4)_0x5288d8[_0x4012('0x91')](_0x1902b4)||_0x5288d8[_0x4012('0x36')](_0x1902b4);}}if(_0x2ef00d)return _0x2ef00d;_0x5600e5['clear']();for(const _0x244f8a of _0x3a00a4)for(const {suggestion:_0x49677e,meta:_0x5935a6}of this[_0x4012('0x77')](_0x244f8a,_0x4012('0xc3')))_0x5935a6[_0x4012('0x79')]&&_0x5600e5[_0x4012('0xf')](_0x49677e);for(const _0x3faaf0 of _0x5600e5){const _0x12dad0=_0x3faaf0[_0x4012('0x93')]();if(!_0x53dfed||!_0x53dfed[_0x4012('0x23')]){if(_0x3a00a4[_0x4012('0x69')](_0x1ecfbc=>_0x12dad0[_0x4012('0x6c')](_0x14fdee=>_0x14fdee[_0x4012('0xc7')](_0x1ecfbc,!0x0))))return _0x3faaf0;}(!_0x3faaf0[_0x4012('0x2f')]||!_0x3faaf0[_0x4012('0x2f')]['skipNestingCheck'])&&(_0x12dad0[_0x4012('0x69')](_0x4c59bc=>_0x3a00a4[_0x4012('0x6c')](_0x285a36=>_0x285a36['containsRange'](_0x4c59bc,!0x0)))&&_0x3faaf0[_0x4012('0x51')]());}const _0x18a045=_0x35a764(),_0x5a4489=_0x1d9599['id'],_0x15d2cb='deletion:'+_0x15e8fb,_0x563a8f=this['_setSuggestionData']({'id':_0x18a045,'type':_0x15d2cb,'createdAt':new Date(),'authorId':_0x5a4489,'attributes':_0x53dfed});for(const _0x7764f5 of _0x3a00a4)_0x7764f5['detach'](),_0x7764f5[_0x4012('0x100')]||_0x4012('0x9a')==_0x7764f5[_0x4012('0x111')]['rootName']||this['_addSuggestionMarker'](_0x15d2cb,_0x18a045,_0x5a4489,_0x7764f5,_0x30e79a[_0x4012('0x38')]());return _0x563a8f;}[_0x4012('0xda')](_0x2ccda7,_0x2ae04e){const _0xa6ba7e=_0x2ccda7[_0x4012('0x108')]();this[_0x4012('0x12a')][_0x4012('0xaa')](_0x1bb22e=>{_0x1bb22e[_0x4012('0xc1')](_0xa6ba7e,{'range':_0x2ae04e});});}[_0x4012('0x112')](_0x40d069){const _0x72a6f9=_0x40d069['id'],_0x392f47=this[_0x4012('0x17')][_0x4012('0x6d')][_0x4012('0x4d')](_0x4012('0x62'));this[_0x4012('0x8f')][_0x4012('0xa0')](_0x72a6f9)||this[_0x4012('0x8f')][_0x4012('0x1a')]({'channelId':_0x392f47,'threadId':_0x72a6f9});const _0x1cf5f5=this[_0x4012('0x8f')][_0x4012('0x65')](_0x72a6f9);_0x1cf5f5[_0x4012('0x2')](_0x4012('0x28')),_0x1cf5f5[_0x4012('0x28')]=!0x1,_0x40d069[_0x4012('0x10e')]=_0x1cf5f5;}['_checkSuggestionCorrectness'](_0x50310e,_0x5a42af,_0x409698,_0x3893d5){if(_0x50310e[_0x4012('0x6a')]!=_0x5a42af||_0x50310e[_0x4012('0x9')]!=_0x409698||_0x50310e[_0x4012('0x87')]['id']!=_0x3893d5)throw this[_0x4012('0x17')][_0x4012('0x9d')]('track-changes-suggestion-data-mismatch'),new _0xb43784(_0x4012('0xd3'),this);}['_cutOutSuggestionMarker'](_0x12cac9,_0x2e56e1){const _0x357d7b=_0x12cac9[_0x4012('0x11d')]();if(_0x2e56e1[_0x4012('0x11')](_0x357d7b))_0x12cac9[_0x4012('0xd8')]();else{if(_0x357d7b[_0x4012('0xc7')](_0x2e56e1)){const _0x475fef=this[_0x4012('0x12a')][_0x4012('0x102')](_0x2e56e1[_0x4012('0x90')]['nodeBefore'],_0x4012('0x9b'));this['_setSuggestionRange'](_0x12cac9,this[_0x4012('0x12a')][_0x4012('0x3a')](_0x357d7b[_0x4012('0x90')],_0x475fef));const _0x287526=_0x35a764(),_0x5e7aff=_0x12cac9[_0x4012('0x87')]['id'],_0x4d0d44=_0x12cac9[_0x4012('0x6a')]+':'+_0x12cac9[_0x4012('0x9')];this['_setSuggestionData']({'id':_0x287526,'type':_0x4d0d44,'createdAt':new Date(),'authorId':_0x5e7aff,'data':_0x12cac9[_0x4012('0x8e')],'attributes':_0x12cac9[_0x4012('0x2f')]});const _0xcb250a=this[_0x4012('0x12a')][_0x4012('0x102')](_0x2e56e1['end'][_0x4012('0x86')],_0x4012('0x119')),_0x867151=this[_0x4012('0x12a')][_0x4012('0x3a')](_0xcb250a,_0x357d7b[_0x4012('0x9b')]);this[_0x4012('0x134')](_0x4d0d44,_0x287526,_0x5e7aff,_0x867151);}else{if(_0x357d7b[_0x4012('0x1b')](_0x2e56e1[_0x4012('0x90')])){const _0x246e1b=this[_0x4012('0x12a')]['createPositionAt'](_0x2e56e1[_0x4012('0x90')][_0x4012('0x34')],'end');this[_0x4012('0xda')](_0x12cac9,this[_0x4012('0x12a')][_0x4012('0x3a')](_0x357d7b[_0x4012('0x90')],_0x246e1b));}else{const _0x5b3b35=this[_0x4012('0x12a')][_0x4012('0x102')](_0x2e56e1[_0x4012('0x9b')][_0x4012('0x86')],_0x4012('0x119'));this[_0x4012('0xda')](_0x12cac9,this['_model'][_0x4012('0x3a')](_0x5b3b35,_0x357d7b['end']));}}}}[_0x4012('0x43')](_0x435658){for(const {suggestion:_0x4f4402,meta:_0x11c1fe}of this[_0x4012('0x77')](_0x435658,_0x4012('0xc2'))){if(!_0x11c1fe[_0x4012('0x79')])continue;const _0x5837c5=_0x4f4402[_0x4012('0x93')]();for(const _0x55215d of _0x5837c5)if(!_0x435658['getDifference'](_0x55215d)[_0x4012('0x125')])return!0x0;}return!0x1;}[_0x4012('0xf5')](_0x4b012d){const _0x5bbe26=this[_0x4012('0x17')]['plugins']['get']('Users')[_0x4012('0x52')](_0x4b012d);if(!_0x5bbe26)throw new _0xb43784(_0x4012('0xa9'),this);return _0x5bbe26;}['_getExternalAuthor'](_0x18c70c){const _0xa3c703=this[_0x4012('0x17')]['plugins'][_0x4012('0x4d')]('Users'),_0x348bbe=_0x242a73(_0x4012('0x68')+_0x18c70c),_0x54da13=_0xa3c703[_0x4012('0x52')](_0x348bbe);return _0x54da13||_0xa3c703[_0x4012('0x46')]({'id':_0x348bbe,'name':_0x18c70c});}[_0x4012('0xa1')](_0x37d175,_0x558aa2,_0xc2f522,_0xb8a391,_0x13c78b){const _0x3ada6c=this[_0x4012('0xf5')](_0xb8a391),_0x1663c8=this[_0x4012('0x50')][_0x4012('0xbb')](_0x37d175,_0x558aa2,_0xc2f522,_0x3ada6c,_0x13c78b,_0x397f87=>this[_0x4012('0x71')](_0xc2f522,{'attributes':_0x397f87}));return this[_0x4012('0x3')](_0x1663c8,_0x4012('0x42'),()=>{this['_updateSuggestionData'](_0xc2f522,{'state':_0x4012('0xe3')});},{'priority':_0x4012('0x57')}),this['listenTo'](_0x1663c8,'discard',()=>{this['_updateSuggestionData'](_0xc2f522,{'state':_0x4012('0x133')});},{'priority':_0x4012('0x57')}),this['_suggestions'][_0x4012('0x124')](_0xc2f522,_0x1663c8),this[_0x4012('0x15')][_0x4012('0x124')](_0x1663c8,_0x4012('0x11a')),_0x1663c8;}[_0x4012('0x5d')](_0x51bfc2){const _0x278555=_0x51bfc2[_0x4012('0x1')](':');return{'group':_0x278555[0x0],'type':_0x278555[0x1],'subType':_0x278555['length']>=0x5?_0x278555[0x2]:null,'id':_0x278555[_0x4012('0x125')]<0x5?_0x278555[0x2]:_0x278555[0x3],'authorId':_0x278555[_0x4012('0x125')]<0x5?_0x278555[0x3]:_0x278555[0x4],'markerCount':0x6==_0x278555['length']?_0x278555[0x5]:null};}[_0x4012('0x54')](_0x4a0400,_0x43762d,_0xcc86a3){const _0x11b301=_0x4a0400['getFirstRange'](),_0x519a40=_0x11b301['start'],_0x299437=_0x11b301[_0x4012('0x9b')];this[_0x4012('0xda')](_0x4a0400,this[_0x4012('0x12a')][_0x4012('0x3a')](_0x519a40,_0x43762d));const _0x1b00cf=_0x35a764(),_0x249967=_0x4a0400[_0x4012('0x87')]['id'],_0x17d9bd=_0x4a0400[_0x4012('0x6a')]+(_0x4a0400[_0x4012('0x9')]?':'+_0x4a0400[_0x4012('0x9')]:'');this[_0x4012('0xe2')]({'id':_0x1b00cf,'type':_0x17d9bd,'createdAt':new Date(),'authorId':_0x249967,'originalSuggestionId':_0x4a0400['id'],'attributes':_0x4a0400['attributes'],'data':_0x4a0400[_0x4012('0x8e')]}),_0x4012('0xed')==_0x4a0400[_0x4012('0x6a')]&&(_0xcc86a3=this[_0x4012('0x12a')][_0x4012('0xa2')](_0xcc86a3[_0x4012('0x86')])),this[_0x4012('0x134')](_0x17d9bd,_0x1b00cf,_0x249967,this['_model'][_0x4012('0x3a')](_0xcc86a3,_0x299437));}['_findSuggestions'](_0x126306,_0x4f1977=null){const _0x35870c=[],_0x372968=this[_0x4012('0x12a')]['schema'],_0x1615d2=this[_0x4012('0x17')][_0x4012('0x1c')][_0x4012('0x4d')](_0x4012('0xb6'))['me'];for(const _0x13ea83 of this[_0x4012('0xde')]())if(_0x13ea83['isInContent']&&(!_0x4f1977||_0x13ea83[_0x4012('0x6a')]==_0x4f1977))for(const _0x4a9059 of _0x13ea83[_0x4012('0x93')]()){const _0x13868f=_0x126306[_0x4012('0x90')][_0x4012('0x11')](_0x4a9059[_0x4012('0x9b')])||_0x126306['end'][_0x4012('0x11')](_0x4a9059[_0x4012('0x90')]);if(_0x13868f||_0x126306[_0x4012('0xcd')](_0x4a9059)){const _0x493269=_0x126306[_0x4012('0xc7')](_0x4a9059)&&bt(_0x372968,_0x4a9059[_0x4012('0x90')],_0x126306),_0x3642ab=_0x4a9059[_0x4012('0xc7')](_0x126306)&&bt(_0x372968,_0x126306[_0x4012('0x90')],_0x4a9059);_0x35870c[_0x4012('0x48')]({'suggestion':_0x13ea83,'meta':{'isOwn':_0x1615d2==_0x13ea83[_0x4012('0xad')],'isNextTo':_0x13868f,'isInsideObject':_0x493269,'containsRangeInObject':_0x3642ab}});break;}}return _0x35870c;}[_0x4012('0x134')](_0x89c940,_0x1086d3,_0x34858a,_0x5c6327,_0xa6289f=null){this[_0x4012('0x12a')]['change'](_0x36e9ab=>{let _0x429136=_0x4012('0xcc')+_0x89c940+':'+_0x1086d3+':'+_0x34858a;_0xa6289f&&(_0x429136=_0x429136+':'+_0xa6289f),_0x36e9ab['addMarker'](_0x429136,{'range':_0x5c6327,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4012('0xb8')](_0x580763){const _0x5eecfd=_0x580763[_0x4012('0xb')],_0x224737=_0x580763[_0x4012('0x114')];_0x580763[_0x4012('0xb')]=null,null!=_0x5eecfd&&(_0x5eecfd[_0x4012('0x114')]=null),_0x580763['next']=null,null!=_0x224737&&(_0x224737['previous']=null),'ready'==this[_0x4012('0x15')][_0x4012('0x4d')](_0x580763)&&(this[_0x4012('0x15')][_0x4012('0x124')](_0x580763,'removed'),this['fire'](_0x4012('0x5c'),_0x580763,_0x5eecfd,_0x224737));}['_setSuggestionData'](_0x4d66e3){const _0x1e2570=_0x4d66e3['id'],_0x26ed77=this[_0x4012('0x110')](_0x4d66e3);if(this[_0x4012('0xca')]&&this[_0x4012('0xca')][_0x4012('0x117')]){const _0x44869b=this[_0x4012('0x17')]['plugins'][_0x4012('0x4d')](_0x4012('0x11f')),_0x401559=_0x26ed77[_0x4012('0x55')],_0x4b26ac=_0x26ed77[_0x4012('0x9')]?_0x26ed77['type']+':'+_0x26ed77['subType']:_0x26ed77['type'],_0x11e22e=this[_0x4012('0x17')][_0x4012('0xb1')],_0x2d0db4=_0x44869b[_0x4012('0xf')](_0x5f1e46(_0x11e22e,_0x4012('0xa5'))),_0x1880ad={'id':_0x1e2570,'type':_0x4b26ac,'hasComments':_0x401559,'data':_0x4d66e3['data']||null,'originalSuggestionId':_0x4d66e3[_0x4012('0x10f')]||null,'attributes':_0x26ed77[_0x4012('0x2f')]};this['_adapter'][_0x4012('0x117')](_0x1880ad)['then'](_0x427ec6=>{_0x26ed77['_saved']=!0x0,_0x44869b['remove'](_0x2d0db4),_0x427ec6&&_0x427ec6[_0x4012('0xd4')]&&(this[_0x4012('0x11c')][_0x4012('0x4d')](_0x1e2570)[_0x4012('0xd4')]=_0x427ec6[_0x4012('0xd4')]);})[_0x4012('0xb7')](_0x2e0fcd=>{throw _0x1923d6(_0x4012('0x7e')),this[_0x4012('0x17')][_0x4012('0x116')][_0x4012('0xef')]({'isUndoable':!0x1},()=>{_0x26ed77[_0x4012('0x51')]();}),_0x26ed77['stopListening'](),this['_suggestions'][_0x4012('0x113')](_0x26ed77['id']),this[_0x4012('0x15')][_0x4012('0x113')](_0x26ed77),_0x2e0fcd;});}return _0x26ed77;}[_0x4012('0x71')](_0x48644d,_0x29c9db){const _0xaa0116=this[_0x4012('0x17')][_0x4012('0x1c')][_0x4012('0x4d')](_0x4012('0x11f')),_0x3b4181=this[_0x4012('0x11c')][_0x4012('0x4d')](_0x48644d);if(this['_adapter']&&this[_0x4012('0xca')][_0x4012('0x75')]){if(_0x3b4181[_0x4012('0x129')]){const _0xce8961=_0xaa0116[_0x4012('0xf')](_0x5f1e46(this[_0x4012('0x17')][_0x4012('0xb1')],_0x4012('0xa5')));this[_0x4012('0xca')][_0x4012('0x75')](_0x48644d,_0x29c9db)['then'](()=>{_0xaa0116[_0x4012('0x2b')](_0xce8961);});}else _0x3b4181['on'](_0x4012('0x58'),()=>{this[_0x4012('0x71')](_0x48644d,_0x29c9db);});}}[_0x4012('0x35')](_0x38f5a4){if(!this['_adapter']||!this[_0x4012('0xca')][_0x4012('0x10')])throw new _0xb43784(_0x4012('0x123'),this);return this[_0x4012('0xca')][_0x4012('0x10')](_0x38f5a4);}[_0x4012('0x131')](_0x552afe){const {id:_0x16af40,type:_0x26a675,subType:_0x3ee3e0,authorId:_0x558f50}=this[_0x4012('0x5d')](_0x552afe),_0x249e2c=this[_0x4012('0x11c')][_0x4012('0x4d')](_0x16af40)||this[_0x4012('0xa1')](_0x26a675,_0x3ee3e0,_0x16af40,_0x558f50);switch(this[_0x4012('0x60')](_0x249e2c,_0x26a675,_0x3ee3e0,_0x558f50),this[_0x4012('0x15')]['get'](_0x249e2c)){case _0x4012('0x11a'):this[_0x4012('0x35')](_0x16af40)[_0x4012('0x4a')](_0x10fcae=>{let _0x3d593a=Promise['resolve']();_0x10fcae[_0x4012('0x55')]&&(_0x3d593a=this[_0x4012('0x8f')]['fetchCommentThread']({'channelId':this['editor']['config'][_0x4012('0x4d')](_0x4012('0x62')),'threadId':_0x16af40})),_0x3d593a['then'](()=>{this[_0x4012('0x110')](_0x10fcae)[_0x4012('0x129')]=!0x0;});}),this[_0x4012('0x15')]['set'](_0x249e2c,_0x4012('0x3e'));break;case _0x4012('0xbf'):this[_0x4012('0x71')](_0x16af40,{'state':_0x4012('0x7c')});case _0x4012('0xf1'):this['_suggestionState']['set'](_0x249e2c,_0x4012('0x56')),this[_0x4012('0x89')](_0x4012('0xa'),_0x249e2c);break;case'ready':this['fire'](_0x4012('0x120'),_0x249e2c);}return _0x249e2c[_0x4012('0x98')](_0x552afe),_0x249e2c;}[_0x4012('0x45')](_0xb4b3e6){const _0x5d51f8=Array[_0x4012('0x12b')](_0xb4b3e6)[_0x4012('0x5b')](_0xe364f7=>!_0xe364f7[_0x4012('0x96')]),_0x25b10a=this['getSuggestions']({'skipNotAttached':!0x0})[_0x4012('0x5b')](_0xb998a6=>!_0xb998a6[_0x4012('0x96')]),_0x221de0=_0x25b10a[_0x4012('0x5b')](_0x437b79=>!_0xb4b3e6[_0x4012('0x97')](_0x437b79)),_0x5dd734=new Map(_0x25b10a[_0x4012('0x12f')](_0x13ea9d=>[_0x13ea9d,this[_0x4012('0x50')][_0x4012('0x139')](_0x13ea9d[_0x4012('0x6a')],_0x13ea9d[_0x4012('0x9')],_0x4012('0xf8'))])),_0xc57b1a=new Map(_0x25b10a['map'](_0x412b1f=>[_0x412b1f,_0x412b1f[_0x4012('0x11d')]()])),_0x54f120=new Set(),_0x39a619=new Set();for(let _0x4676e0=0x0;_0x4676e0<_0x5d51f8[_0x4012('0x125')];_0x4676e0++)_0x5bcc00(_0x5d51f8[_0x4676e0],_0x5d51f8,_0x4676e0+0x1);for(let _0x2fbd5a=0x0;_0x2fbd5a<_0x5d51f8[_0x4012('0x125')];_0x2fbd5a++)_0x5bcc00(_0x5d51f8[_0x2fbd5a],_0x221de0,0x0);for(let _0x17f527=0x0;_0x17f527<_0x5d51f8[_0x4012('0x125')];_0x17f527++){const _0x4065cc=_0x5d51f8[_0x17f527];!_0x39a619[_0x4012('0x97')](_0x4065cc)&&_0x4065cc[_0x4012('0xb')]&&(_0x4065cc[_0x4012('0xb')][_0x4012('0x114')]===_0x4065cc&&(_0x4065cc['previous'][_0x4012('0x114')]=null),_0x4065cc[_0x4012('0xb')]=null),!_0x54f120[_0x4012('0x97')](_0x4065cc)&&_0x4065cc['next']&&(_0x4065cc['next'][_0x4012('0xb')]===_0x4065cc&&(_0x4065cc[_0x4012('0x114')][_0x4012('0xb')]=null),_0x4065cc['next']=null);}function _0x5bcc00(_0x239114,_0x56338d,_0x50ab00){for(let _0x6b09a9=_0x50ab00;_0x6b09a9<_0x56338d[_0x4012('0x125')];_0x6b09a9++){const _0x23886c=_0xcede58(_0x239114,_0x56338d[_0x6b09a9]);_0x23886c&&(_0x23886c[0x0]['next']=_0x23886c[0x1],_0x23886c[0x1][_0x4012('0xb')]=_0x23886c[0x0],_0x54f120[_0x4012('0xf')](_0x23886c[0x0]),_0x39a619[_0x4012('0xf')](_0x23886c[0x1]));}}function _0xcede58(_0x55683b,_0x252692){if(_0x55683b['author']['id']!==_0x252692['author']['id'])return null;const _0x425192=_0x5dd734['get'](_0x55683b)(_0x55683b,_0x252692,_0xc57b1a['get'](_0x55683b),_0xc57b1a[_0x4012('0x4d')](_0x252692));if(!_0x425192)return null;return _0x5dd734[_0x4012('0x4d')](_0x252692)(_0x55683b,_0x252692,_0xc57b1a[_0x4012('0x4d')](_0x55683b),_0xc57b1a[_0x4012('0x4d')](_0x252692))?_0x425192[0x1][_0x4012('0x10e')]&&_0x425192[0x1]['commentThread'][_0x4012('0x125')]?null:_0x425192:null;}}[_0x4012('0x44')](_0x3f58f6){const _0x32fcaa=Array['from'](_0x3f58f6),_0xf800e6=this[_0x4012('0xde')]({'skipNotAttached':!0x0}),_0x17d0f2=_0xf800e6[_0x4012('0x5b')](_0x3767ef=>!_0x3f58f6[_0x4012('0x97')](_0x3767ef)),_0x2839eb=new Map(_0x32fcaa[_0x4012('0x12f')](_0x4123b1=>[_0x4123b1,this[_0x4012('0x50')][_0x4012('0x139')](_0x4123b1['type'],_0x4123b1['subType'],_0x4012('0xe9'))])),_0x168f31=new Map(_0xf800e6['map'](_0x4cea80=>[_0x4cea80,_0x4cea80[_0x4012('0x93')]()]));for(let _0x3b2883=0x0;_0x3b2883<_0x32fcaa[_0x4012('0x125')];_0x3b2883++){if(_0x3e531d(this,_0x32fcaa[_0x3b2883],_0x32fcaa,_0x3b2883+0x1))return!0x0;}for(let _0x310be0=0x0;_0x310be0<_0x32fcaa[_0x4012('0x125')];_0x310be0++){if(_0x3e531d(this,_0x32fcaa[_0x310be0],_0x17d0f2,0x0))return!0x0;}return!0x1;function _0x3e531d(_0x42c4cb,_0x1321e1,_0x4964fd,_0x3c531c){for(let _0x6b1468=_0x3c531c;_0x6b1468<_0x4964fd[_0x4012('0x125')];_0x6b1468++){const _0x35330a=_0x4964fd[_0x6b1468];if(_0x35330a[_0x4012('0x6a')]!==_0x1321e1['type']||_0x35330a['author']['id']!==_0x1321e1[_0x4012('0xad')]['id']||_0x35330a[_0x4012('0x9')]!==_0x1321e1[_0x4012('0x9')])continue;const _0x183285=_0x2839eb['get'](_0x1321e1),_0x4f6704=_0x168f31[_0x4012('0x4d')](_0x1321e1),_0x3d81ed=_0x168f31[_0x4012('0x4d')](_0x35330a),_0x375426=_0x1321e1[_0x4012('0x10e')]&&_0x1321e1[_0x4012('0x10e')][_0x4012('0x125')],_0x1ab4a9=_0x35330a[_0x4012('0x10e')]&&_0x35330a['commentThread'][_0x4012('0x125')];if(!_0x375426&&_0x183285(_0x3d81ed,_0x4f6704))return _0x42c4cb[_0x4012('0x105')](_0x35330a,_0x1321e1),_0x168f31[_0x4012('0x113')](_0x1321e1),!0x0;if(!_0x1ab4a9&&_0x183285(_0x4f6704,_0x3d81ed))return _0x42c4cb[_0x4012('0x105')](_0x1321e1,_0x35330a),_0x168f31[_0x4012('0x113')](_0x35330a),!0x0;}return!0x1;}}[_0x4012('0x105')](_0x55d9c3,_0x157644){if(_0x55d9c3['isMultiRange'])for(const _0x523b5f of _0x157644['getRanges']())_0x55d9c3[_0x4012('0x36')](_0x523b5f);else{const _0x1053d3=_0x157644[_0x4012('0x11d')]()['end'];this[_0x4012('0xda')](_0x55d9c3,this[_0x4012('0x12a')][_0x4012('0x3a')](_0x55d9c3[_0x4012('0x11d')]()[_0x4012('0x90')],_0x1053d3));}_0x157644[_0x4012('0xd8')]();}}_0xdb2865(p,_0x2a93f6);class yt{constructor(_0x5379b1){this[_0x4012('0x1e')]=_0x5379b1,this[_0x4012('0x12a')]=_0x5379b1[_0x4012('0x116')],this[_0x4012('0xea')]=new Map(),this[_0x4012('0xab')]=new Map(),this[_0x4012('0x132')]();}[_0x4012('0xbb')](_0x353eb8,_0x143e0e,_0x31ed8d,_0x3007e6,_0x442e67,_0x10bc4f){return new _0x30e79a(this[_0x4012('0x12a')],{'type':_0x353eb8,'subType':_0x143e0e,'id':_0x31ed8d,'author':_0x3007e6,'creator':_0x3007e6,'attributes':_0x442e67,'onAttributesChange':_0x10bc4f,'onAccept':(..._0x3d9d18)=>this[_0x4012('0x139')](_0x353eb8,_0x143e0e,'accept')(..._0x3d9d18),'onDiscard':(..._0x44a6d4)=>this['getSuggestionCallback'](_0x353eb8,_0x143e0e,_0x4012('0x51'))(..._0x44a6d4)});}[_0x4012('0x47')](_0x1d6330,_0x529804,_0xf6e603,_0x4dbe62){const _0x3f79f5=_0x1d6330+':'+_0x529804+':'+_0xf6e603;this[_0x4012('0xea')]['set'](_0x3f79f5,_0x4dbe62);}[_0x4012('0x139')](_0x1f3570,_0x4af75e,_0x270518){const _0x3a6fb8=_0x1f3570+':'+_0x4af75e+':'+_0x270518;return this['_customCallbacks']['get'](_0x3a6fb8)||this[_0x4012('0xab')][_0x4012('0x4d')](_0x1f3570+':'+_0x270518);}['_registerDefaultCallbacks'](){const _0x4e466c=()=>{},_0x59368d=_0x34ff11=>{_0x34ff11[_0x4012('0xbe')]((_0x32e20a,_0x3e3cfa)=>_0x32e20a[_0x4012('0x90')][_0x4012('0xc8')](_0x3e3cfa[_0x4012('0x90')])?0x1:-0x1),this[_0x4012('0x12a')][_0x4012('0xaa')](_0x5589c4=>{for(const _0x2c7274 of _0x34ff11){let _0x5cc5f5;_0x5cc5f5=_0x2c7274[_0x4012('0x9b')][_0x4012('0x136')]&&_0x2c7274['end'][_0x4012('0x86')]==_0x2c7274[_0x4012('0x90')][_0x4012('0xf7')]?_0x5589c4[_0x4012('0x19')](_0x2c7274['start'][_0x4012('0xf7')],'on'):_0x5589c4['createSelection'](_0x2c7274),this['_model'][_0x4012('0xf0')](_0x5cc5f5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x131bac=(_0x3af589,_0x5b0bce)=>{this[_0x4012('0x12a')][_0x4012('0xaa')](_0x14a311=>{const {commandName:_0x352e0f,commandParams:_0x52c3c9=[]}=_0x5b0bce,_0x432426=_0x3af589[0x0];if(_0x4012('0x9a')==_0x432426[_0x4012('0x111')][_0x4012('0x22')])return;const _0x4ffd35=Array['from'](this[_0x4012('0x12a')][_0x4012('0x83')][_0x4012('0x12c')][_0x4012('0x93')]())[_0x4012('0x12f')](_0x2e410b=>_0x274d58['fromRange'](_0x2e410b));St(_0x432426)?_0x14a311[_0x4012('0x12e')](this['_model'][_0x4012('0x3a')](_0x432426[_0x4012('0x9b')])):_0x14a311[_0x4012('0x12e')](_0x432426);for(const _0x577652 of this[_0x4012('0x1e')][_0x4012('0xe1')]['commands']())_0x577652[_0x4012('0x14')]();_0x52c3c9[_0x4012('0x48')]({'forceDefaultExecution':!0x0}),this[_0x4012('0x1e')]['execute'](_0x352e0f,..._0x52c3c9);const _0xd0bd12=_0x4ffd35[_0x4012('0x5b')](_0x8df70f=>_0x4012('0x9a')!=_0x8df70f[_0x4012('0x111')][_0x4012('0x22')]);_0xd0bd12[_0x4012('0x125')]>0x0&&_0x14a311['setSelection'](_0xd0bd12);for(const _0x186e05 of _0x4ffd35)_0x186e05['detach']();});},_0x59622d=(_0x4fcab1,_0x505805)=>0x1==_0x4fcab1[_0x4012('0x125')]&&0x1==_0x505805['length']&&_0x4fcab1[0x0][_0x4012('0x9b')][_0x4012('0x11')](_0x505805[0x0][_0x4012('0x90')]),_0x31679c=(_0x4908e9,_0x143b1d,_0xf04574,_0x3660e7)=>Ct(_0x4908e9,_0x143b1d,_0xf04574,_0x3660e7,this[_0x4012('0x12a')])?[_0x4908e9,_0x143b1d]:Ct(_0x143b1d,_0x4908e9,_0x3660e7,_0xf04574,this[_0x4012('0x12a')])?[_0x143b1d,_0x4908e9]:null;this[_0x4012('0xab')][_0x4012('0x124')](_0x4012('0x67'),_0x4e466c),this[_0x4012('0xab')][_0x4012('0x124')](_0x4012('0x33'),_0x59368d),this[_0x4012('0xab')]['set'](_0x4012('0x7a'),_0x59622d),this[_0x4012('0xab')][_0x4012('0x124')](_0x4012('0x4'),_0x31679c),this[_0x4012('0xab')][_0x4012('0x124')](_0x4012('0x99'),_0x59368d),this[_0x4012('0xab')][_0x4012('0x124')]('deletion:discard',_0x4e466c),this['_defaultCallbacks'][_0x4012('0x124')](_0x4012('0xe5'),_0x59622d),this['_defaultCallbacks'][_0x4012('0x124')](_0x4012('0x7b'),_0x31679c),this['_defaultCallbacks']['set']('formatInline:accept',_0x131bac),this[_0x4012('0xab')]['set'](_0x4012('0x49'),_0x4e466c),this[_0x4012('0xab')][_0x4012('0x124')](_0x4012('0x88'),_0x59622d),this[_0x4012('0xab')]['set'](_0x4012('0xd7'),_0x4e466c),this[_0x4012('0xab')]['set'](_0x4012('0xd5'),_0x131bac),this[_0x4012('0xab')][_0x4012('0x124')]('formatBlock:discard',_0x4e466c),this['_defaultCallbacks']['set'](_0x4012('0xdb'),_0x59622d),this['_defaultCallbacks'][_0x4012('0x124')]('formatBlock:chain',_0x4e466c);}}function bt(_0x14f564,_0x401c22,_0xc9be64){for(const _0x592dcd of _0x401c22[_0x4012('0x86')][_0x4012('0xce')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x592dcd['root']==_0x592dcd)return!0x1;if(!_0xc9be64['containsItem'](_0x592dcd))return!0x1;if(_0x14f564[_0x4012('0x122')](_0x592dcd)||_0x14f564[_0x4012('0xfa')](_0x592dcd))return!0x0;}}function St(_0x1d345d){return _0x1d345d[_0x4012('0x9b')][_0x4012('0x86')]==_0x1d345d['start'][_0x4012('0xf7')]&&_0x1d345d['end'][_0x4012('0x80')];}function It(_0x5626ab,_0x1a8b5e,_0x5163d7,_0x52e901){const _0x45ea9c=_0xcc2341=>!_0xcc2341[_0x4012('0x9f')]['is'](_0x4012('0xcf'))&&!_0x52e901[_0x4012('0x122')](_0xcc2341['item']),_0x2f3b38=_0x5626ab[_0x4012('0x90')][_0x4012('0x5a')](_0x45ea9c),_0x39cd84=_0x5626ab[_0x4012('0x9b')]['getLastMatchingPosition'](_0x45ea9c,{'direction':_0x4012('0x76')});return(!_0x5626ab[_0x4012('0x90')][_0x4012('0x11')](_0x2f3b38)||!_0x5626ab[_0x4012('0x9b')]['isEqual'](_0x39cd84))&&(_0x2f3b38[_0x4012('0xc8')](_0x39cd84)?_0x5163d7['updateMarker'](_0x1a8b5e,{'range':_0x5163d7[_0x4012('0x3a')](_0x2f3b38,_0x39cd84)}):_0x5163d7[_0x4012('0xfd')](_0x1a8b5e),!0x0);}function vt(_0x1d147f){return _0x242a73(_0x1d147f);}function At(_0x411914){const _0x110e7b=_0x411914[_0x4012('0x90')][_0x4012('0xf7')];return _0x110e7b&&_0x110e7b['is'](_0x4012('0x30'));}function Dt(_0x5776c3,_0x47732e){const _0x2b51ea=_0x47732e[_0x4012('0x6f')][_0x4012('0x122')](_0x5776c3)||_0x47732e[_0x4012('0x6f')][_0x4012('0x3b')](_0x5776c3);return _0x47732e['createRange'](_0x47732e[_0x4012('0x102')](_0x5776c3,_0x4012('0x27')),_0x2b51ea?_0x47732e[_0x4012('0x121')](_0x5776c3):_0x47732e['createPositionAt'](_0x5776c3,'end'));}function Ct(_0x2bcd7a,_0x43b2c8,_0x37f38c,_0x4559d3,_0x1d7235){if(_0x37f38c[_0x4012('0x9b')][_0x4012('0x11')](_0x4559d3['start']))return!0x0;if(_0x2bcd7a[_0x4012('0x6a')]!=_0x43b2c8[_0x4012('0x6a')])return!0x1;if(!_0x37f38c['end'][_0x4012('0x24')](_0x4559d3[_0x4012('0x90')]))return!0x1;const _0x5161c4=_0x1d7235[_0x4012('0x3a')](_0x37f38c[_0x4012('0x9b')],_0x4559d3[_0x4012('0x90')])[_0x4012('0x92')]();for(const _0x33ea36 of _0x5161c4)if([_0x4012('0x128'),_0x4012('0x1d')][_0x4012('0x4e')](_0x33ea36[_0x4012('0x6a')])&&_0x1d7235[_0x4012('0x6f')]['isLimit'](_0x33ea36[_0x4012('0x9f')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26e6=['some','discardAllSuggestions','has','head','trackChanges','unbind','from','separator','button','isEnabled','_handleSuggestionControllerDelayed','define','innerView','Accept\x20all\x20suggestions','reduce','init','discardSuggestion','editor','clear','Track\x20changes','config','CommentsRepository','_handleControllerBuffer','getDescriptions','_suggestionToController','commandName','length','trackChanges.disableComments','mapper','_destroyController','delete','execute','_createUIButton','PENDING_ACTION_SUGGESTION','source','getAllAdjacentSuggestions','EditorAnnotations','discardButton','TrackChangesUI','_initializeController','toMany','get','componentFactory','isDirty','comments','refreshSelectedViews','SuggestionThreadView','focus','getContainedElement','getRange','arrowView','add','set','activeMarkers','Discard\x20all\x20selected\x20suggestions','requires','actionView','getJoined','TrackChangesEditing','view','model','_disableComments','change:isDirty','previous','getByInnerView','createAnnotationView','acceptAllSuggestions','commands','suggestion-','remove','suggestionUnloaded','_viewToController','buttonView','locale','comments.maxCommentsWhenCollapsed','hasSuggestion','switchbutton','suggestionChanged','isOn','destroy','Accept\x20all\x20selected\x20suggestions','change:previous','type','comments.maxThreadTotalWeight','listenTo','stopListening','suggestionLoaded','commentThread','comments.editorConfig','CommentsUI','PendingActions','trackChanges.SuggestionThreadView','acceptSelectedSuggestions','editing','Annotations','createAnnotation','getFirstMarker','toViewElement','Discard\x20all\x20suggestions','push','bind','addSourceCollector','pluginName','map','getMarkerNames','plugins','addComment','filter','size','_updateController','isInContent'];(function(_0x44658a,_0x26e692){const _0xf4a0e=function(_0x18403f){while(--_0x18403f){_0x44658a['push'](_0x44658a['shift']());}};_0xf4a0e(++_0x26e692);}(_0x26e6,0x183));const _0xf4a0=function(_0x44658a,_0x26e692){_0x44658a=_0x44658a-0x0;let _0xf4a0e=_0x26e6[_0x44658a];return _0xf4a0e;};import{Plugin as _0x614bca}from'ckeditor5/src/core';import{Collection as _0x8275fd}from'ckeditor5/src/utils';import{Model as _0xe41dd1,SplitButtonView as _0x4af1ae,createDropdown as _0x53e5ac,addListToDropdown as _0x3daa0e}from'ckeditor5/src/ui';import{Users as _0x3a1f36,getDateTimeFormatter as _0x352671,getMarkerDomElement as _0x59d6ac}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f0e29 from'./trackchangesediting';import _0x11997c from'./ui/suggestioncontroller';import _0x518ae2 from'./ui/view/suggestionthreadview';import{getTranslation as _0x558900}from'./utils/common-translations';import _0x4c66d0 from'../theme/icons/track-changes.svg';export default class m extends _0x614bca{static get[_0xf4a0('0x1')](){return[_0x2f0e29,_0x3a1f36,'CommentsRepository','Annotations',_0xf4a0('0x5d')];}static get[_0xf4a0('0x30')](){return _0xf4a0('0x5f');}constructor(_0x36f9e0){super(_0x36f9e0),this[_0xf4a0('0x51')]=new Map(),this[_0xf4a0('0x11')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x123a58=this[_0xf4a0('0x4a')][_0xf4a0('0x4d')];_0x123a58[_0xf4a0('0x44')](_0xf4a0('0x25'),_0x518ae2),_0x123a58[_0xf4a0('0x44')](_0xf4a0('0x54'),!0x1),this[_0xf4a0('0x7')]=_0x123a58[_0xf4a0('0x62')](_0xf4a0('0x54'));}[_0xf4a0('0x43')](_0x279e2d,_0x34de2e){0x0===this['_handleControllerBuffer'][_0xf4a0('0x36')]&&setTimeout(()=>{for(const [_0x5be56d,_0x349c03]of this[_0xf4a0('0x4f')]){const _0x15288d=this[_0xf4a0('0x51')][_0xf4a0('0x3b')](_0x5be56d);_0x15288d||_0x349c03?_0x15288d&&_0x349c03&&this[_0xf4a0('0x56')](_0x5be56d):this['_initializeController'](_0x5be56d);}this[_0xf4a0('0x4a')][_0xf4a0('0x33')]['get'](_0xf4a0('0x5d'))[_0xf4a0('0x66')](),this[_0xf4a0('0x4f')][_0xf4a0('0x4b')]();},0xa),this['_handleControllerBuffer'][_0xf4a0('0x6d')](_0x279e2d,_0x34de2e);}[_0xf4a0('0x48')](){const _0x5926d4=this[_0xf4a0('0x4a')],_0x10c862=_0x5926d4['plugins'][_0xf4a0('0x62')](_0x2f0e29),_0x20a6fe=_0x5926d4[_0xf4a0('0x33')]['get'](_0xf4a0('0x28')),_0x7afa75=_0x5926d4[_0xf4a0('0x33')]['get'](_0xf4a0('0x5d')),_0x4cbd83=_0x5926d4[_0xf4a0('0x33')]['get'](_0xf4a0('0x4e'));_0x5926d4['ui'][_0xf4a0('0x63')][_0xf4a0('0x6c')](_0xf4a0('0x3d'),_0x205193=>this['_createUIButton'](_0x205193)),_0x7afa75[_0xf4a0('0x2f')](()=>{const _0x41de66=[];for(const [_0x28b1d1,_0x48b31c]of Array[_0xf4a0('0x3f')](this[_0xf4a0('0x51')])){const _0x78ead2=_0x28b1d1['getAllAdjacentSuggestions'](),_0xd1ad7f=[];for(const _0x1c26ee of _0x78ead2){if(!_0x1c26ee[_0xf4a0('0x38')])continue;if(_0x1c26ee['isMultiRange']){_0xd1ad7f['push'](..._0x1c26ee['getRanges']());continue;}const _0x9d2bd8=_0x1c26ee['getFirstRange']();if(_0xd1ad7f[_0xf4a0('0x53')]>0x0){const _0x327846=_0xd1ad7f[0x0][_0xf4a0('0x3')](_0x9d2bd8);if(_0x327846){_0xd1ad7f[0x0]=_0x327846;continue;}}_0xd1ad7f['push'](_0x9d2bd8);}_0x41de66[_0xf4a0('0x2d')]([_0x48b31c['view'],_0xd1ad7f]);}return _0x41de66;}),this[_0xf4a0('0x1e')](_0x10c862,_0xf4a0('0x20'),(_0x4dcf20,_0x36081d)=>{this['listenTo'](_0x36081d,'change:previous',(_0xdab03f,_0x2257be,_0x46f89d,_0x4bf3bf)=>{_0x36081d['isInContent']&&(null==_0x46f89d?(this[_0xf4a0('0x37')](_0x4bf3bf[_0xf4a0('0x3c')]),this[_0xf4a0('0x43')](_0x36081d,!0x1)):(this[_0xf4a0('0x37')](_0x46f89d[_0xf4a0('0x3c')]),this[_0xf4a0('0x43')](_0x36081d,!0x0)));}),null===_0x36081d[_0xf4a0('0x9')]?this[_0xf4a0('0x43')](_0x36081d,!0x1):this[_0xf4a0('0x37')](_0x36081d[_0xf4a0('0x3c')]);}),this[_0xf4a0('0x1e')](_0x10c862,_0xf4a0('0x10'),(_0x4532cb,_0x429e95,_0x1ae809)=>{this[_0xf4a0('0x1f')](_0x429e95,_0xf4a0('0x1b')),this[_0xf4a0('0x4f')][_0xf4a0('0x57')](_0x429e95);const _0x307036=_0x1ae809?_0x1ae809[_0xf4a0('0x3c')]:_0x429e95,_0x564dc8=this['_suggestionToController']['get'](_0x307036);null!==_0x1ae809&&this[_0xf4a0('0x37')](_0x307036),null===_0x1ae809&&_0x564dc8&&this[_0xf4a0('0x56')](_0x429e95);}),this[_0xf4a0('0x1e')](_0x10c862,_0xf4a0('0x17'),(_0x40fe33,_0x29181c)=>{this[_0xf4a0('0x37')](_0x29181c);}),this['listenTo'](_0x20a6fe,'change:activeAnnotations',(_0x3b0fc1,_0x36297c,_0x444c89)=>{const _0x4d687e=Array[_0xf4a0('0x3f')](_0x444c89,_0x4a8a45=>_0x4a8a45[_0xf4a0('0x45')])[_0xf4a0('0x35')](_0x564124=>this['_viewToController'][_0xf4a0('0x3b')](_0x564124)),_0x9700e5=[];for(const _0x26cabb of _0x4d687e){const _0x49f20e=this[_0xf4a0('0x11')][_0xf4a0('0x62')](_0x26cabb)['model'][_0xf4a0('0x5c')]();_0x9700e5[_0xf4a0('0x2d')](..._0x49f20e[_0xf4a0('0x47')]((_0x1296d4,_0x5b1718)=>[..._0x1296d4,..._0x5b1718[_0xf4a0('0x32')]()],[]));}_0x10c862[_0xf4a0('0x6e')]=_0x9700e5;}),this[_0xf4a0('0x1e')](_0x4cbd83,_0xf4a0('0x34'),(_0x515cc3,{threadId:_0x27ff50,isFromAdapter:_0x22755a})=>{if(_0x22755a||!_0x10c862[_0xf4a0('0x15')](_0x27ff50))return;const _0x4fdd99=_0x10c862['getSuggestion'](_0x27ff50);this['_suggestionToController']['get'](_0x4fdd99)[_0xf4a0('0x5')][_0xf4a0('0x68')]();},{'priority':'lowest'});}[_0xf4a0('0x59')](_0x554051){const _0x3a6bd2=_0x53e5ac(_0x554051,_0x4af1ae),_0x16a8d9=this[_0xf4a0('0x4a')]['commands'][_0xf4a0('0x62')](_0xf4a0('0x3d')),_0xa57093=_0x558900(_0x554051,_0xf4a0('0x4c'));_0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x6d')]({'tooltip':_0xa57093,'label':_0xa57093,'icon':_0x4c66d0}),_0x3a6bd2['buttonView'][_0xf4a0('0x2e')]('isOn')['to'](_0x16a8d9,'value'),_0x3a6bd2[_0xf4a0('0x12')]['on'](_0xf4a0('0x58'),()=>{_0x16a8d9[_0xf4a0('0x58')](),this[_0xf4a0('0x4a')][_0xf4a0('0x27')]['view']['focus']();});const _0x5d8e48=new _0x8275fd(),_0x4224f4=[{'type':_0xf4a0('0x16'),'model':{'withText':!0x0,'label':_0xa57093,'commandName':_0xf4a0('0x3d')}},{'type':_0xf4a0('0x40')},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x46')),'commandName':_0xf4a0('0xc')}},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x1a')),'commandName':_0xf4a0('0x26')}},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x2c')),'commandName':_0xf4a0('0x3a')}},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x0')),'commandName':'discardSelectedSuggestions'}}];for(const _0x4852ec of _0x4224f4){const _0x309da6={'type':_0x4852ec[_0xf4a0('0x1c')]};if(_0x4852ec['model']){const _0x23ea47=new _0xe41dd1(_0x4852ec[_0xf4a0('0x6')]),_0x235396=this[_0xf4a0('0x4a')][_0xf4a0('0xd')][_0xf4a0('0x62')](_0x23ea47[_0xf4a0('0x52')]);_0x23ea47[_0xf4a0('0x2e')](_0xf4a0('0x18'),'isEnabled')['to'](_0x235396,'value',_0xf4a0('0x42')),_0x309da6['model']=_0x23ea47;}_0x5d8e48[_0xf4a0('0x6c')](_0x309da6);}_0x3daa0e(_0x3a6bd2,_0x5d8e48);const _0x294151=_0x4224f4[_0xf4a0('0x35')](_0x2dccc9=>null!=_0x2dccc9[_0xf4a0('0x6')])[_0xf4a0('0x31')](_0x546907=>this[_0xf4a0('0x4a')][_0xf4a0('0xd')]['get'](_0x546907[_0xf4a0('0x6')]['commandName']));return _0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x2')][_0xf4a0('0x3e')](_0xf4a0('0x42')),_0x3a6bd2['buttonView'][_0xf4a0('0x6b')][_0xf4a0('0x3e')](_0xf4a0('0x42')),_0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x2')][_0xf4a0('0x2e')](_0xf4a0('0x42'))['to'](_0x16a8d9,_0xf4a0('0x42')),_0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x6b')][_0xf4a0('0x2e')](_0xf4a0('0x42'))[_0xf4a0('0x61')](_0x294151,'isEnabled',(..._0x1d5782)=>_0x1d5782[_0xf4a0('0x39')](_0x3e9d95=>_0x3e9d95)),_0x3a6bd2['on'](_0xf4a0('0x58'),_0xc4655c=>{this[_0xf4a0('0x4a')]['execute'](_0xc4655c[_0xf4a0('0x5b')][_0xf4a0('0x52')]),this[_0xf4a0('0x4a')][_0xf4a0('0x27')][_0xf4a0('0x5')][_0xf4a0('0x68')]();}),_0x3a6bd2;}[_0xf4a0('0x60')](_0x10aff8){const _0x38f300=this[_0xf4a0('0x4a')],_0x2a471c=_0x38f300[_0xf4a0('0x4d')],_0x42b7a5=_0x38f300[_0xf4a0('0x33')][_0xf4a0('0x62')]('Annotations'),_0x32d81c=_0x38f300[_0xf4a0('0x33')]['get'](_0xf4a0('0x4e')),_0x2209b5=_0x38f300[_0xf4a0('0x33')][_0xf4a0('0x62')](_0xf4a0('0x5d')),_0x479108=_0x10aff8['getAllAdjacentSuggestions']()[_0xf4a0('0x35')](_0x527882=>_0x527882[_0xf4a0('0x38')]),_0x3a91fc=_0x38f300['plugins']['get'](_0x3a1f36)['me'],_0x3995c4=_0x38f300['commands']['get']('acceptSuggestion'),_0x5606b6=_0x38f300[_0xf4a0('0xd')]['get'](_0xf4a0('0x49')),_0x463cd3=_0x2a471c['get'](_0xf4a0('0x3d'))[_0xf4a0('0x67')],{CommentsListView:_0x45b8ba,CommentThreadInputView:_0x2290e6}=_0x38f300[_0xf4a0('0x33')]['get'](_0xf4a0('0x23')),_0x20e127=new _0x463cd3(_0x38f300[_0xf4a0('0x13')],_0x10aff8,_0x3a91fc,{'disableComments':this['_disableComments'],'editorConfig':_0x2a471c[_0xf4a0('0x62')](_0xf4a0('0x22')),'maxCommentsWhenCollapsed':_0x2a471c[_0xf4a0('0x62')](_0xf4a0('0x14')),'maxThreadTotalWeight':_0x2a471c['get'](_0xf4a0('0x1d')),'maxCommentCharsWhenCollapsed':_0x2a471c[_0xf4a0('0x62')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x352671(_0x2a471c[_0xf4a0('0x62')](_0xf4a0('0x13'))),'CommentView':_0x2a471c['get'](_0xf4a0('0x65'))['CommentView'],'CommentsListView':_0x45b8ba,'CommentThreadInputView':_0x2290e6}),_0x1e1fb9=_0x32d81c['createCommentThreadController'](_0x10aff8[_0xf4a0('0x21')],_0x20e127),_0x1213e2=new _0x11997c(_0x10aff8,_0x20e127,_0x3995c4,_0x5606b6,_0x1e1fb9);_0x20e127['descriptionParts']=_0x38f300[_0xf4a0('0x33')]['get']('TrackChangesEditing')['_descriptionFactory'][_0xf4a0('0x50')](_0x479108),this[_0xf4a0('0x51')][_0xf4a0('0x6d')](_0x10aff8,_0x1213e2),this['_viewToController'][_0xf4a0('0x6d')](_0x20e127,_0x1213e2);const _0x4d5a55=_0x42b7a5[_0xf4a0('0xb')](this[_0xf4a0('0x4a')]['locale'],_0x20e127);_0x4d5a55[_0xf4a0('0x2e')](_0xf4a0('0x64'))['to'](_0x20e127,_0xf4a0('0x64')),_0x4d5a55[_0xf4a0('0x2e')](_0xf4a0('0x53'))['to'](_0x20e127),_0x4d5a55[_0xf4a0('0x2e')]('type')['to'](_0x20e127,_0xf4a0('0x1c'),_0x969856=>'suggestion-'+_0x969856);const _0x59afe6=_0x42b7a5[_0xf4a0('0x29')]({'view':_0x4d5a55,'target':()=>{const _0x5353aa=_0x479108[0x0][_0xf4a0('0x2a')]();if(!_0x5353aa)return null;const _0x1d39d1=_0x5353aa[_0xf4a0('0x6a')]()[_0xf4a0('0x69')]();return _0x1d39d1&&!_0x38f300[_0xf4a0('0x27')][_0xf4a0('0x55')][_0xf4a0('0x2b')](_0x1d39d1)?null:_0x59d6ac(_0x38f300[_0xf4a0('0x27')],_0x5353aa)||null;},'type':()=>_0xf4a0('0xe')+_0x1213e2[_0xf4a0('0x5')][_0xf4a0('0x1c')]});_0x42b7a5[_0xf4a0('0x6c')](_0x59afe6),_0x2209b5['registerAnnotation'](_0x59afe6);const _0x5ecde7=_0x38f300[_0xf4a0('0x33')]['get'](_0xf4a0('0x24'));let _0x9de82;_0x20e127['on'](_0xf4a0('0x8'),(_0x1eb8de,_0x404b54,_0x431528)=>{_0x431528?_0x9de82=_0x5ecde7[_0xf4a0('0x6c')](_0x558900(this[_0xf4a0('0x4a')][_0xf4a0('0x13')],_0xf4a0('0x5a'))):(_0x5ecde7[_0xf4a0('0xf')](_0x9de82),_0x9de82=null);}),_0x20e127['acceptButton']['on']('execute',()=>{_0x38f300[_0xf4a0('0x27')][_0xf4a0('0x5')][_0xf4a0('0x68')]();}),_0x20e127[_0xf4a0('0x5e')]['on'](_0xf4a0('0x58'),()=>{_0x38f300[_0xf4a0('0x27')][_0xf4a0('0x5')][_0xf4a0('0x68')]();});}['_destroyController'](_0xa588c9){const _0x1b4dba=this[_0xf4a0('0x4a')][_0xf4a0('0x33')][_0xf4a0('0x62')](_0xf4a0('0x28')),_0x1f124a=this[_0xf4a0('0x51')][_0xf4a0('0x62')](_0xa588c9),_0xb2222e=_0x1f124a[_0xf4a0('0x5')],_0x40e690=_0x1b4dba[_0xf4a0('0xa')](_0xb2222e);_0x40e690&&_0x1b4dba[_0xf4a0('0xf')](_0x40e690),this[_0xf4a0('0x51')][_0xf4a0('0x57')](_0xa588c9),this[_0xf4a0('0x11')][_0xf4a0('0x57')](_0xb2222e),_0x1f124a['destroy'](),_0xb2222e[_0xf4a0('0x19')]();}[_0xf4a0('0x37')](_0x11c650){if(!_0x11c650[_0xf4a0('0x38')]||!this[_0xf4a0('0x51')][_0xf4a0('0x3b')](_0x11c650))return;const _0x1c0132=this[_0xf4a0('0x4a')][_0xf4a0('0x33')]['get'](_0xf4a0('0x4')),_0x5c7b06=this[_0xf4a0('0x51')][_0xf4a0('0x62')](_0x11c650),_0x43c5b8=_0x11c650[_0xf4a0('0x5c')]();_0x5c7b06['view']['descriptionParts']=_0x1c0132['_descriptionFactory'][_0xf4a0('0x50')](_0x43c5b8);}[_0xf4a0('0x19')](){super[_0xf4a0('0x19')]();for(const _0x21bfeb of this['_suggestionToController']['keys']())this[_0xf4a0('0x56')](_0x21bfeb);}}
23
+ const _0x4c30=['config','getSuggestion','model','commentThread','previous','Accept\x20all\x20selected\x20suggestions','_updateController','discardButton','_initializeController','_createUIButton','comments.maxCommentsWhenCollapsed','trackChanges.SuggestionThreadView','isEnabled','CommentsRepository','delete','Annotations','filter','createAnnotation','keys','acceptAllSuggestions','mainView','editor','_descriptionFactory','getDescriptions','innerView','activeMarkers','locale','suggestionUnloaded','isInContent','destroy','componentFactory','unbind','Discard\x20all\x20suggestions','add','requires','listenTo','isMultiRange','getMarkerNames','toMany','commandName','createCommentThreadController','_destroyController','comments.editorConfig','has','change:previous','suggestionChanged','_handleSuggestionControllerDelayed','focus','acceptSelectedSuggestions','descriptionParts','comments','set','trackChanges','SuggestionThreadView','value','buttonView','remove','bind','button','getRanges','view','from','type','init','getRange','push','pluginName','suggestion-','addSourceCollector','getByInnerView','CommentsUI','execute','length','head','getFirstRange','_annotationViews','_suggestionToController','getAllAdjacentSuggestions','Track\x20changes','TrackChangesEditing','comments.maxCommentCharsWhenCollapsed','change:activeAnnotations','isOn','separator','isDirty','_handleControllerBuffer','values','registerAnnotation','_disableComments','EditorAnnotations','addComment','size','lowest','stopListening','define','source','trackChanges.disableComments','getContainedElement','arrowView','createAnnotationView','commands','getJoined','discardSelectedSuggestions','discardAllSuggestions','Discard\x20all\x20selected\x20suggestions','get','plugins','editing','_viewToController','some'];(function(_0x38c305,_0x4c3094){const _0x5bc206=function(_0x545b27){while(--_0x545b27){_0x38c305['push'](_0x38c305['shift']());}};_0x5bc206(++_0x4c3094);}(_0x4c30,0x152));const _0x5bc2=function(_0x38c305,_0x4c3094){_0x38c305=_0x38c305-0x0;let _0x5bc206=_0x4c30[_0x38c305];return _0x5bc206;};import{Plugin as _0x5cd020}from'ckeditor5/src/core';import{Collection as _0x45f43f}from'ckeditor5/src/utils';import{Model as _0x13388a,SplitButtonView as _0x39e534,createDropdown as _0x5a5d4b,addListToDropdown as _0x4f1469}from'ckeditor5/src/ui';import{Users as _0x5192ff,getDateTimeFormatter as _0x1fcd64,getMarkerDomElement as _0x3b5574}from'ckeditor5-collaboration/src/collaboration-core';import _0x3f3448 from'./trackchangesediting';import _0xa6fa13 from'./ui/suggestioncontroller';import _0x50dedf from'./ui/view/suggestionthreadview';import{getTranslation as _0x460da4}from'./utils/common-translations';import _0x2022ed from'../theme/icons/track-changes.svg';export default class d extends _0x5cd020{static get[_0x5bc2('0x1a')](){return[_0x3f3448,_0x5192ff,_0x5bc2('0x5'),_0x5bc2('0x7'),_0x5bc2('0x51')];}static get[_0x5bc2('0x3a')](){return'TrackChangesUI';}constructor(_0x379524){super(_0x379524),this[_0x5bc2('0x44')]=new Map(),this[_0x5bc2('0x64')]=new Map(),this['_annotationViews']=new Map(),this[_0x5bc2('0x4d')]=new Map();const _0x28e566=this[_0x5bc2('0xd')][_0x5bc2('0x66')];_0x28e566[_0x5bc2('0x56')](_0x5bc2('0x3'),_0x50dedf),_0x28e566['define']('trackChanges.disableComments',!0x1),this[_0x5bc2('0x50')]=_0x28e566[_0x5bc2('0x61')](_0x5bc2('0x58'));}[_0x5bc2('0x26')](_0x32acb2,_0x88ac6a){0x0===this[_0x5bc2('0x4d')][_0x5bc2('0x53')]&&setTimeout(()=>{for(const [_0x4b1da0,_0x31d0a3]of this[_0x5bc2('0x4d')]){const _0xe49731=this[_0x5bc2('0x44')][_0x5bc2('0x23')](_0x4b1da0);_0xe49731||_0x31d0a3?_0xe49731&&_0x31d0a3&&this[_0x5bc2('0x21')](_0x4b1da0):this[_0x5bc2('0x0')](_0x4b1da0);}this[_0x5bc2('0xd')][_0x5bc2('0x62')][_0x5bc2('0x61')](_0x5bc2('0x51'))['refreshSelectedViews'](),this[_0x5bc2('0x4d')]['clear']();},0xa),this[_0x5bc2('0x4d')]['set'](_0x32acb2,_0x88ac6a);}[_0x5bc2('0x37')](){const _0x5ef014=this[_0x5bc2('0xd')],_0x477348=_0x5ef014[_0x5bc2('0x62')]['get'](_0x3f3448),_0x2be2d8=_0x5ef014[_0x5bc2('0x62')][_0x5bc2('0x61')](_0x5bc2('0x7')),_0x2bb6ce=_0x5ef014[_0x5bc2('0x62')][_0x5bc2('0x61')](_0x5bc2('0x51')),_0x4ef8f3=_0x5ef014[_0x5bc2('0x62')]['get'](_0x5bc2('0x5'));_0x5ef014['ui'][_0x5bc2('0x16')][_0x5bc2('0x19')]('trackChanges',_0x1002dd=>this[_0x5bc2('0x1')](_0x1002dd)),_0x2bb6ce[_0x5bc2('0x3c')](()=>{const _0xa2a167=[];for(const [_0x43cdba,_0x3b7e01]of Array[_0x5bc2('0x35')](this['_suggestionToController'])){const _0xfb4183=_0x43cdba[_0x5bc2('0x45')](),_0x3e42e9=[];for(const _0xfccf26 of _0xfb4183){if(!_0xfccf26['isInContent'])continue;if(_0xfccf26[_0x5bc2('0x1c')]){_0x3e42e9[_0x5bc2('0x39')](..._0xfccf26[_0x5bc2('0x33')]());continue;}const _0x59622a=_0xfccf26[_0x5bc2('0x42')]();if(_0x3e42e9['length']>0x0){const _0x545b3d=_0x3e42e9[0x0][_0x5bc2('0x5d')](_0x59622a);if(_0x545b3d){_0x3e42e9[0x0]=_0x545b3d;continue;}}_0x3e42e9[_0x5bc2('0x39')](_0x59622a);}_0xa2a167[_0x5bc2('0x39')]([_0x3b7e01[_0x5bc2('0x34')],_0x3e42e9]);}return _0xa2a167;}),this[_0x5bc2('0x1b')](_0x477348,'suggestionLoaded',(_0x2d8ae2,_0x569b58)=>{this[_0x5bc2('0x1b')](_0x569b58,_0x5bc2('0x24'),(_0x161f0d,_0x53570a,_0x56b7ac,_0x1e4bb4)=>{_0x569b58[_0x5bc2('0x14')]&&(null==_0x56b7ac?(this[_0x5bc2('0x6c')](_0x1e4bb4[_0x5bc2('0x41')]),this['_handleSuggestionControllerDelayed'](_0x569b58,!0x1)):(this[_0x5bc2('0x6c')](_0x56b7ac['head']),this['_handleSuggestionControllerDelayed'](_0x569b58,!0x0)));}),null===_0x569b58[_0x5bc2('0x6a')]?this[_0x5bc2('0x26')](_0x569b58,!0x1):this[_0x5bc2('0x6c')](_0x569b58[_0x5bc2('0x41')]);}),this[_0x5bc2('0x1b')](_0x477348,_0x5bc2('0x13'),(_0xce5ebe,_0xf95197,_0x36b13c)=>{this[_0x5bc2('0x55')](_0xf95197,_0x5bc2('0x24')),this[_0x5bc2('0x4d')][_0x5bc2('0x6')](_0xf95197);const _0x5d0990=_0x36b13c?_0x36b13c[_0x5bc2('0x41')]:_0xf95197,_0x4036a4=this[_0x5bc2('0x44')][_0x5bc2('0x61')](_0x5d0990);null!==_0x36b13c&&this[_0x5bc2('0x6c')](_0x5d0990),null===_0x36b13c&&_0x4036a4&&this[_0x5bc2('0x21')](_0xf95197);}),this[_0x5bc2('0x1b')](_0x477348,_0x5bc2('0x25'),(_0x210648,_0x145494)=>{this[_0x5bc2('0x6c')](_0x145494);}),this['listenTo'](_0x2be2d8,_0x5bc2('0x49'),(_0x4db0e7,_0x53012e,_0x3f394e)=>{const _0x2376a5=Array[_0x5bc2('0x35')](_0x3f394e,_0x1dd04e=>_0x1dd04e[_0x5bc2('0x10')])[_0x5bc2('0x8')](_0x4beb1b=>this[_0x5bc2('0x64')][_0x5bc2('0x23')](_0x4beb1b)),_0xca86e2=[];for(const _0x25fadd of _0x2376a5){const _0x4d614f=this[_0x5bc2('0x64')][_0x5bc2('0x61')](_0x25fadd)[_0x5bc2('0x68')][_0x5bc2('0x45')]();_0xca86e2[_0x5bc2('0x39')](..._0x4d614f['reduce']((_0x29635e,_0x4110e1)=>[..._0x29635e,..._0x4110e1[_0x5bc2('0x1d')]()],[]));}_0x477348[_0x5bc2('0x11')]=_0xca86e2;}),this[_0x5bc2('0x1b')](_0x4ef8f3,_0x5bc2('0x52'),(_0x22f9f0,{threadId:_0x4ed27d,isFromAdapter:_0x347d57})=>{if(_0x347d57||!_0x477348['hasSuggestion'](_0x4ed27d))return;const _0x59aa92=_0x477348[_0x5bc2('0x67')](_0x4ed27d);this['_suggestionToController']['get'](_0x59aa92)[_0x5bc2('0x34')][_0x5bc2('0x27')]();},{'priority':_0x5bc2('0x54')});}[_0x5bc2('0x1')](_0x2e358f){const _0x22762e=_0x5a5d4b(_0x2e358f,_0x39e534),_0x2713ac=this[_0x5bc2('0xd')]['commands'][_0x5bc2('0x61')]('trackChanges'),_0xe499f5=_0x460da4(_0x2e358f,_0x5bc2('0x46'));_0x22762e[_0x5bc2('0x2f')][_0x5bc2('0x2b')]({'tooltip':_0xe499f5,'label':_0xe499f5,'icon':_0x2022ed}),_0x22762e[_0x5bc2('0x2f')]['bind'](_0x5bc2('0x4a'))['to'](_0x2713ac,_0x5bc2('0x2e')),_0x22762e['buttonView']['on'](_0x5bc2('0x3f'),()=>{_0x2713ac[_0x5bc2('0x3f')](),this['editor'][_0x5bc2('0x63')][_0x5bc2('0x34')]['focus']();});const _0x12e77a=new _0x45f43f(),_0x27d7ff=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0xe499f5,'commandName':'trackChanges'}},{'type':_0x5bc2('0x4b')},{'type':_0x5bc2('0x32'),'model':{'withText':!0x0,'label':_0x460da4(_0x2e358f,'Accept\x20all\x20suggestions'),'commandName':_0x5bc2('0xb')}},{'type':_0x5bc2('0x32'),'model':{'withText':!0x0,'label':_0x460da4(_0x2e358f,_0x5bc2('0x6b')),'commandName':_0x5bc2('0x28')}},{'type':'button','model':{'withText':!0x0,'label':_0x460da4(_0x2e358f,_0x5bc2('0x18')),'commandName':_0x5bc2('0x5f')}},{'type':_0x5bc2('0x32'),'model':{'withText':!0x0,'label':_0x460da4(_0x2e358f,_0x5bc2('0x60')),'commandName':_0x5bc2('0x5e')}}];for(const _0x1f8d9a of _0x27d7ff){const _0x2512b5={'type':_0x1f8d9a[_0x5bc2('0x36')]};if(_0x1f8d9a['model']){const _0x5a12bb=new _0x13388a(_0x1f8d9a[_0x5bc2('0x68')]),_0x2d1ead=this[_0x5bc2('0xd')][_0x5bc2('0x5c')][_0x5bc2('0x61')](_0x5a12bb[_0x5bc2('0x1f')]);_0x5a12bb[_0x5bc2('0x31')](_0x5bc2('0x4a'),_0x5bc2('0x4'))['to'](_0x2d1ead,_0x5bc2('0x2e'),_0x5bc2('0x4')),_0x2512b5['model']=_0x5a12bb;}_0x12e77a[_0x5bc2('0x19')](_0x2512b5);}_0x4f1469(_0x22762e,_0x12e77a);const _0x9155b3=_0x27d7ff[_0x5bc2('0x8')](_0x51661e=>null!=_0x51661e['model'])['map'](_0x3d9b99=>this['editor'][_0x5bc2('0x5c')][_0x5bc2('0x61')](_0x3d9b99['model'][_0x5bc2('0x1f')]));return _0x22762e[_0x5bc2('0x2f')]['actionView'][_0x5bc2('0x17')]('isEnabled'),_0x22762e['buttonView'][_0x5bc2('0x5a')][_0x5bc2('0x17')](_0x5bc2('0x4')),_0x22762e[_0x5bc2('0x2f')]['actionView'][_0x5bc2('0x31')](_0x5bc2('0x4'))['to'](_0x2713ac,'isEnabled'),_0x22762e[_0x5bc2('0x2f')][_0x5bc2('0x5a')][_0x5bc2('0x31')](_0x5bc2('0x4'))[_0x5bc2('0x1e')](_0x9155b3,_0x5bc2('0x4'),(..._0x49387b)=>_0x49387b[_0x5bc2('0x65')](_0x263d00=>_0x263d00)),_0x22762e['on'](_0x5bc2('0x3f'),_0x2f9eac=>{this['editor'][_0x5bc2('0x3f')](_0x2f9eac[_0x5bc2('0x57')][_0x5bc2('0x1f')]),this[_0x5bc2('0xd')][_0x5bc2('0x63')][_0x5bc2('0x34')][_0x5bc2('0x27')]();}),_0x22762e;}['_initializeController'](_0x1cb5d4){const _0x487640=this[_0x5bc2('0xd')],_0x39241c=_0x487640[_0x5bc2('0x66')],_0x4e6b1d=_0x487640['plugins'][_0x5bc2('0x61')](_0x5bc2('0x7')),_0x170c26=_0x487640['plugins'][_0x5bc2('0x61')](_0x5bc2('0x5')),_0x140dfe=_0x487640[_0x5bc2('0x62')][_0x5bc2('0x61')](_0x5bc2('0x51')),_0x50ed17=_0x1cb5d4[_0x5bc2('0x45')]()[_0x5bc2('0x8')](_0xe8d423=>_0xe8d423[_0x5bc2('0x14')]),_0x38f614=_0x487640['plugins'][_0x5bc2('0x61')](_0x5192ff)['me'],_0x23a5e2=_0x39241c[_0x5bc2('0x61')](_0x5bc2('0x2c'))[_0x5bc2('0x2d')],{CommentsListView:_0x33ce7c,CommentThreadInputView:_0x1f5b4a}=_0x487640[_0x5bc2('0x62')]['get'](_0x5bc2('0x3e'));let _0x198836,_0x26444f;this['_annotationViews'][_0x5bc2('0x23')](_0x1cb5d4['id'])?(_0x26444f=this[_0x5bc2('0x43')][_0x5bc2('0x61')](_0x1cb5d4['id']),_0x198836=_0x26444f['mainView']):(_0x198836=new _0x23a5e2(_0x487640[_0x5bc2('0x12')],_0x1cb5d4,_0x38f614,{'disableComments':this[_0x5bc2('0x50')],'editorConfig':_0x39241c[_0x5bc2('0x61')](_0x5bc2('0x22')),'maxCommentsWhenCollapsed':_0x39241c[_0x5bc2('0x61')](_0x5bc2('0x2')),'maxThreadTotalWeight':_0x39241c[_0x5bc2('0x61')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x39241c[_0x5bc2('0x61')](_0x5bc2('0x48')),'formatDateTime':_0x1fcd64(_0x39241c[_0x5bc2('0x61')](_0x5bc2('0x12'))),'CommentView':_0x39241c['get'](_0x5bc2('0x2a'))['CommentView'],'CommentsListView':_0x33ce7c,'CommentThreadInputView':_0x1f5b4a}),_0x198836['acceptButton']['on'](_0x5bc2('0x3f'),()=>{_0x487640[_0x5bc2('0x63')][_0x5bc2('0x34')][_0x5bc2('0x27')]();}),_0x198836[_0x5bc2('0x6d')]['on'](_0x5bc2('0x3f'),()=>{_0x487640[_0x5bc2('0x63')][_0x5bc2('0x34')][_0x5bc2('0x27')]();}),_0x26444f=_0x4e6b1d[_0x5bc2('0x5b')](this[_0x5bc2('0xd')][_0x5bc2('0x12')],_0x198836),_0x26444f['bind'](_0x5bc2('0x4c'))['to'](_0x198836,'isDirty'),_0x26444f[_0x5bc2('0x31')](_0x5bc2('0x40'))['to'](_0x198836),_0x26444f[_0x5bc2('0x31')](_0x5bc2('0x36'))['to'](_0x198836,_0x5bc2('0x36'),_0x149105=>_0x5bc2('0x3b')+_0x149105),this[_0x5bc2('0x43')][_0x5bc2('0x2b')](_0x1cb5d4['id'],_0x26444f));const _0x32791f=_0x170c26[_0x5bc2('0x20')](_0x1cb5d4[_0x5bc2('0x69')],_0x198836),_0x26f1e2=new _0xa6fa13(_0x487640,_0x1cb5d4,_0x198836,_0x32791f);_0x198836[_0x5bc2('0x29')]=_0x487640[_0x5bc2('0x62')][_0x5bc2('0x61')](_0x5bc2('0x47'))[_0x5bc2('0xe')][_0x5bc2('0xf')](_0x50ed17),this['_suggestionToController'][_0x5bc2('0x2b')](_0x1cb5d4,_0x26f1e2),this['_viewToController'][_0x5bc2('0x2b')](_0x198836,_0x26f1e2);const _0x2ca565=_0x4e6b1d[_0x5bc2('0x9')]({'view':_0x26444f,'target':()=>{const _0x593b18=_0x50ed17[0x0]['getFirstMarker']();if(!_0x593b18)return null;const _0x7fb279=_0x593b18[_0x5bc2('0x38')]()[_0x5bc2('0x59')]();return _0x7fb279&&!_0x487640[_0x5bc2('0x63')]['mapper']['toViewElement'](_0x7fb279)?null:_0x3b5574(_0x487640[_0x5bc2('0x63')],_0x593b18)||null;},'type':()=>_0x5bc2('0x3b')+_0x26f1e2[_0x5bc2('0x34')][_0x5bc2('0x36')]});_0x4e6b1d[_0x5bc2('0x19')](_0x2ca565),_0x140dfe[_0x5bc2('0x4f')](_0x2ca565);}[_0x5bc2('0x21')](_0x43f04e){const _0x27c83a=this[_0x5bc2('0xd')][_0x5bc2('0x62')][_0x5bc2('0x61')](_0x5bc2('0x7')),_0x37a72c=this[_0x5bc2('0x44')][_0x5bc2('0x61')](_0x43f04e),_0x2ac27f=_0x37a72c[_0x5bc2('0x34')],_0x39ad50=_0x27c83a[_0x5bc2('0x3d')](_0x2ac27f);_0x39ad50&&_0x27c83a[_0x5bc2('0x30')](_0x39ad50),this[_0x5bc2('0x44')][_0x5bc2('0x6')](_0x43f04e),this[_0x5bc2('0x64')]['delete'](_0x2ac27f),_0x37a72c['destroy']();}[_0x5bc2('0x6c')](_0xd547c8){if(!_0xd547c8[_0x5bc2('0x14')]||!this['_suggestionToController'][_0x5bc2('0x23')](_0xd547c8))return;const _0x3e4849=this['editor']['plugins'][_0x5bc2('0x61')](_0x5bc2('0x47')),_0xd33d29=this['_suggestionToController'][_0x5bc2('0x61')](_0xd547c8),_0x260cc3=_0xd547c8[_0x5bc2('0x45')]();_0xd33d29['view'][_0x5bc2('0x29')]=_0x3e4849['_descriptionFactory'][_0x5bc2('0xf')](_0x260cc3);}[_0x5bc2('0x15')](){for(const _0x57fe6e of this['_suggestionToController'][_0x5bc2('0xa')]())this[_0x5bc2('0x21')](_0x57fe6e);for(const _0x289f18 of this[_0x5bc2('0x43')][_0x5bc2('0x4e')]())_0x289f18[_0x5bc2('0xc')]['destroy']();super[_0x5bc2('0x15')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4e84=['acceptSuggestion','execute','stopListening','discardSuggestion','_discardCommand','commentThreadController','isEnabled','listenTo','unbind','model','view','bind','destroy','_acceptCommand'];(function(_0x4dfef7,_0x4e8438){var _0x95e724=function(_0xf7deb5){while(--_0xf7deb5){_0x4dfef7['push'](_0x4dfef7['shift']());}};_0x95e724(++_0x4e8438);}(_0x4e84,0x1ab));var _0x95e7=function(_0x4dfef7,_0x4e8438){_0x4dfef7=_0x4dfef7-0x0;var _0x95e724=_0x4e84[_0x4dfef7];return _0x95e724;};import{ObservableMixin as _0x1edca5,mix as _0x15f2ec}from'ckeditor5/src/utils';export default class Wt{constructor(_0x28312a,_0x1afb0e,_0x6e1cc8,_0x5d1760,_0x3dd8da){this[_0x95e7('0x2')]=_0x28312a,this[_0x95e7('0x3')]=_0x1afb0e,this[_0x95e7('0xc')]=_0x3dd8da,this[_0x95e7('0x6')]=_0x6e1cc8,this[_0x95e7('0xb')]=_0x5d1760,this['view'][_0x95e7('0x4')](_0x95e7('0xd'))['to'](this[_0x95e7('0x6')]),this['listenTo'](_0x1afb0e,'acceptSuggestion',()=>this[_0x95e7('0x7')]()),this[_0x95e7('0x0')](_0x1afb0e,_0x95e7('0xa'),()=>this[_0x95e7('0xa')]());}[_0x95e7('0x7')](){this[_0x95e7('0x6')][_0x95e7('0x8')](this[_0x95e7('0x2')]['id']);}[_0x95e7('0xa')](){this[_0x95e7('0xb')]['execute'](this[_0x95e7('0x2')]['id']);}[_0x95e7('0x5')](){this[_0x95e7('0x3')][_0x95e7('0x1')](_0x95e7('0xd')),this[_0x95e7('0x9')](),this[_0x95e7('0xc')][_0x95e7('0x5')]();}}_0x15f2ec(Wt,_0x1edca5);
23
+ const _0x1579=['_acceptCommand','bind','PENDING_ACTION_SUGGESTION','discardSuggestion','plugins','_discardCommand','PendingActions','listenTo','locale','view','get','isDirty','add','model','acceptSuggestion','stopListening','_setPendingAction','commands','_removePendingAction','unbind','isEnabled','_editor','commentThreadController','_pendingAction','execute'];(function(_0x3e0e40,_0x157970){const _0x2993d0=function(_0x40379e){while(--_0x40379e){_0x3e0e40['push'](_0x3e0e40['shift']());}};_0x2993d0(++_0x157970);}(_0x1579,0x168));const _0x2993=function(_0x3e0e40,_0x157970){_0x3e0e40=_0x3e0e40-0x0;let _0x2993d0=_0x1579[_0x3e0e40];return _0x2993d0;};import{ObservableMixin as _0x4c9867,mix as _0x236089}from'ckeditor5/src/utils';import{getTranslation as _0x23d095}from'../utils/common-translations';export default class Mt{constructor(_0x2b3c8b,_0xcdd167,_0x559daf,_0x299eae){this[_0x2993('0x3')]=_0xcdd167,this[_0x2993('0x18')]=_0x559daf,this[_0x2993('0xc')]=_0x299eae,this['_editor']=_0x2b3c8b,this[_0x2993('0xf')]=_0x2b3c8b[_0x2993('0x7')]['get'](_0x2993('0x4')),this[_0x2993('0x14')]=_0x2b3c8b[_0x2993('0x7')]['get'](_0x2993('0x12')),this['view'][_0x2993('0x10')](_0x2993('0xa'))['to'](this[_0x2993('0xf')]),this[_0x2993('0xd')]=null,_0x559daf[_0x2993('0x1')]&&this[_0x2993('0x6')](),this[_0x2993('0x16')](_0x559daf,_0x2993('0x4'),()=>this[_0x2993('0x4')]()),this[_0x2993('0x16')](_0x559daf,'discardSuggestion',()=>this[_0x2993('0x12')]()),this['listenTo'](_0x559daf,'change:isDirty',()=>{_0x559daf[_0x2993('0x1')]?this[_0x2993('0x6')]():this[_0x2993('0x8')]();});}['acceptSuggestion'](){this[_0x2993('0xf')][_0x2993('0xe')](this[_0x2993('0x3')]['id']);}[_0x2993('0x12')](){this[_0x2993('0x14')][_0x2993('0xe')](this[_0x2993('0x3')]['id']);}['destroy'](){this[_0x2993('0x18')][_0x2993('0x9')](_0x2993('0xa')),this[_0x2993('0x5')](),this[_0x2993('0xc')]['destroy'](),this['_pendingAction']&&this[_0x2993('0x8')]();}[_0x2993('0x6')](){const _0x5980b7=_0x23d095(this['_editor'][_0x2993('0x17')],_0x2993('0x11'));this[_0x2993('0xd')]=this[_0x2993('0xb')][_0x2993('0x13')][_0x2993('0x0')]('PendingActions')[_0x2993('0x2')](_0x5980b7);}['_removePendingAction'](){this[_0x2993('0xb')][_0x2993('0x13')][_0x2993('0x0')](_0x2993('0x15'))['remove'](this[_0x2993('0xd')]),this[_0x2993('0xd')]=null;}}_0x236089(Mt,_0x4c9867);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26fb=['fire','updateComment','destroy','_config','bind','removeComment','cancel','focus','assign','length','isEnabled','_localUser','hasDirtyComment','createdAt','isReadOnly','editor','set','descriptionParts','_model','commentsListView','setData','isActive','disableComments','isDirty','_createCommentThreadInputView','_createCommentViews','locale','value','commentThreadInputView','commentInputView','showInput','commentThread','addComment'];(function(_0x4996d6,_0x26fbb9){const _0x13deac=function(_0x58444d){while(--_0x58444d){_0x4996d6['push'](_0x4996d6['shift']());}};_0x13deac(++_0x26fbb9);}(_0x26fb,0x199));const _0x13de=function(_0x4996d6,_0x26fbb9){_0x4996d6=_0x4996d6-0x0;let _0x13deac=_0x26fb[_0x4996d6];return _0x13deac;};import{View as _0x5c968e}from'ckeditor5/src/ui';export default class Kt extends _0x5c968e{constructor(_0x2db331,_0x4caff0,_0x2b4853,_0x1b0375){super(_0x2db331),this[_0x13de('0x6')]=null,this[_0x13de('0xf')]=null,this['set'](_0x13de('0x8'),!0x1),this[_0x13de('0x3')]('createdAt',_0x4caff0[_0x13de('0x0')]),this['bind'](_0x13de('0x0'))['to'](_0x4caff0),this[_0x13de('0x3')](_0x13de('0x4'),[]),this[_0x13de('0x3')](_0x13de('0xa'),!0x1),this[_0x13de('0x3')](_0x13de('0x1e'),!0x1),this[_0x13de('0x5')]=_0x4caff0,this['_localUser']=_0x2b4853,this['_config']=_0x1b0375,_0x1b0375[_0x13de('0x9')]?this['set'](_0x13de('0x1d'),0x1):this[_0x13de('0xc')]();}[_0x13de('0x1b')](){this['element'][_0x13de('0x1b')]();}[_0x13de('0x16')](){this[_0x13de('0xa')]=!0x1,this[_0x13de('0x6')]&&this['commentsListView'][_0x13de('0x16')](),this['commentThreadInputView']&&this[_0x13de('0xf')][_0x13de('0x16')](),super[_0x13de('0x16')]();}[_0x13de('0xc')](){const {CommentsListView:_0x3aeae7}=this[_0x13de('0x17')];this[_0x13de('0x6')]=new _0x3aeae7(this[_0x13de('0xd')],this['_model'][_0x13de('0x12')],Object[_0x13de('0x1c')]({'CommentView':this[_0x13de('0x17')]['CommentView']},this[_0x13de('0x17')])),this[_0x13de('0x6')]['delegate'](_0x13de('0x19'))['to'](this),this[_0x13de('0x6')]['delegate'](_0x13de('0x15'))['to'](this),this[_0x13de('0x6')][_0x13de('0x18')](_0x13de('0x8'))['to'](this),this[_0x13de('0x3')](_0x13de('0x1d'),this[_0x13de('0x6')][_0x13de('0x1d')]+0x1),this['bind']('length')['to'](this['commentsListView'],_0x13de('0x1d'),_0x4fbb40=>_0x4fbb40+0x1),this[_0x13de('0xf')]=this[_0x13de('0xb')](),this['on']('removeComment',()=>this[_0x13de('0x1b')]()),this[_0x13de('0x18')](_0x13de('0xa'))['to'](this['commentsListView'],_0x13de('0x20'),this[_0x13de('0xf')][_0x13de('0x10')],_0x13de('0xe'),(_0x29300f,_0xe74feb)=>_0x29300f||!!_0xe74feb);}[_0x13de('0xb')](){const {CommentThreadInputView:_0x19ac84}=this['_config'],_0x510393=new _0x19ac84(this[_0x13de('0xd')],this[_0x13de('0x1f')],this[_0x13de('0x17')]['editorConfig']),_0x5d080b=_0x510393['commentInputView'];return _0x510393[_0x13de('0x18')](_0x13de('0x11'))['to'](this,_0x13de('0x8'),this[_0x13de('0x5')]['commentThread'],'isReadOnly',_0x5d080b,_0x13de('0xe'),(_0x55102b,_0x183566,_0x1330ae)=>!!_0x1330ae||_0x55102b&&!_0x183566),_0x5d080b['on']('submit',(_0x53eb87,_0x3a1f7c)=>{this[_0x13de('0x14')](_0x13de('0x13'),_0x3a1f7c),_0x5d080b[_0x13de('0x2')][_0x13de('0x7')]('');}),_0x5d080b['on'](_0x13de('0x1a'),()=>this[_0x13de('0x1b')]()),_0x5d080b[_0x13de('0x18')]('disabledSubmit')['to'](this['_model'][_0x13de('0x12')],_0x13de('0x1')),_0x510393;}}
23
+ const _0x5aaa=['commentThreadInputView','set','updateComment','_config','isDirty','disabledSubmit','commentsListView','removeComment','_createCommentViews','length','editor','_createCommentThreadInputView','locale','disableComments','isReadOnly','value','setData','destroy','CommentView','element','_localUser','commentThread','_model','bind','isActive','focus','isEnabled','fire','editorConfig','authoredAt','commentInputView','delegate','submit'];(function(_0x45cef3,_0x5aaa9c){const _0x5150da=function(_0x2882b1){while(--_0x2882b1){_0x45cef3['push'](_0x45cef3['shift']());}};_0x5150da(++_0x5aaa9c);}(_0x5aaa,0x189));const _0x5150=function(_0x45cef3,_0x5aaa9c){_0x45cef3=_0x45cef3-0x0;let _0x5150da=_0x5aaa[_0x45cef3];return _0x5150da;};import{View as _0x2d5269}from'ckeditor5/src/ui';export default class ii extends _0x2d5269{constructor(_0x2477c1,_0xf2e6a7,_0x488f02,_0x17bc2e){super(_0x2477c1),this['commentsListView']=null,this[_0x5150('0x3')]=null,this[_0x5150('0x4')](_0x5150('0x1b'),!0x1),this[_0x5150('0x4')](_0x5150('0x20'),_0xf2e6a7['authoredAt']),this[_0x5150('0x1a')](_0x5150('0x20'))['to'](_0xf2e6a7),this['set']('descriptionParts',[]),this['set'](_0x5150('0x7'),!0x1),this[_0x5150('0x4')](_0x5150('0x1d'),!0x1),this[_0x5150('0x19')]=_0xf2e6a7,this[_0x5150('0x17')]=_0x488f02,this['_config']=_0x17bc2e,_0x17bc2e[_0x5150('0x10')]?this['set']('length',0x1):this[_0x5150('0xb')]();}[_0x5150('0x1c')](){this[_0x5150('0x16')][_0x5150('0x1c')]();}[_0x5150('0x14')](){this[_0x5150('0x9')]&&this['commentsListView'][_0x5150('0x14')](),this[_0x5150('0x3')]&&this[_0x5150('0x3')][_0x5150('0x14')](),super[_0x5150('0x14')]();}[_0x5150('0xb')](){const {CommentsListView:_0x18b04c}=this[_0x5150('0x6')];this['commentsListView']=new _0x18b04c(this[_0x5150('0xf')],this[_0x5150('0x19')][_0x5150('0x18')],Object['assign']({'CommentView':this[_0x5150('0x6')][_0x5150('0x15')]},this[_0x5150('0x6')])),this[_0x5150('0x9')][_0x5150('0x1')](_0x5150('0xa'))['to'](this),this[_0x5150('0x9')][_0x5150('0x1')](_0x5150('0x5'))['to'](this),this[_0x5150('0x9')][_0x5150('0x1a')](_0x5150('0x1b'))['to'](this),this['set'](_0x5150('0xc'),this['commentsListView']['length']+0x1),this[_0x5150('0x1a')](_0x5150('0xc'))['to'](this[_0x5150('0x9')],_0x5150('0xc'),_0x1d3082=>_0x1d3082+0x1),this[_0x5150('0x3')]=this['_createCommentThreadInputView'](),this['on'](_0x5150('0xa'),()=>this['focus']()),this[_0x5150('0x1a')](_0x5150('0x7'))['to'](this[_0x5150('0x9')],'hasDirtyComment',this[_0x5150('0x3')][_0x5150('0x0')],_0x5150('0x12'),(_0x5789b5,_0x4cbc87)=>_0x5789b5||!!_0x4cbc87);}[_0x5150('0xe')](){const {CommentThreadInputView:_0x259806}=this[_0x5150('0x6')],_0x346d71=new _0x259806(this[_0x5150('0xf')],this[_0x5150('0x17')],this['_config'][_0x5150('0x1f')]),_0x2664b1=_0x346d71['commentInputView'];return _0x346d71[_0x5150('0x1a')]('showInput')['to'](this,_0x5150('0x1b'),this[_0x5150('0x19')]['commentThread'],_0x5150('0x11'),_0x2664b1,_0x5150('0x12'),(_0x46b7c8,_0xe2966a,_0x1f925a)=>!!_0x1f925a||_0x46b7c8&&!_0xe2966a),_0x2664b1['on'](_0x5150('0x2'),(_0x23f83b,_0x5c9218)=>{this[_0x5150('0x1e')]('addComment',_0x5c9218),_0x2664b1[_0x5150('0xd')][_0x5150('0x13')]('');}),_0x2664b1['on']('cancel',()=>this[_0x5150('0x1c')]()),_0x2664b1[_0x5150('0x1a')](_0x5150('0x8'))['to'](this['_model'][_0x5150('0x18')],_0x5150('0x11')),_0x346d71;}}