@ckeditor/ckeditor5-track-changes 35.3.2 → 36.0.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 (156) hide show
  1. package/build/track-changes.js +3 -2
  2. package/build/translations/ar.js +1 -0
  3. package/build/translations/az.js +1 -0
  4. package/build/translations/bg.js +1 -0
  5. package/build/translations/bn.js +1 -0
  6. package/build/translations/ca.js +1 -0
  7. package/build/translations/cs.js +1 -0
  8. package/build/translations/da.js +1 -0
  9. package/build/translations/de.js +1 -0
  10. package/build/translations/el.js +1 -0
  11. package/build/translations/en-au.js +1 -0
  12. package/build/translations/es.js +1 -0
  13. package/build/translations/et.js +1 -0
  14. package/build/translations/fi.js +1 -0
  15. package/build/translations/fr.js +1 -0
  16. package/build/translations/gl.js +1 -0
  17. package/build/translations/he.js +1 -0
  18. package/build/translations/hi.js +1 -0
  19. package/build/translations/hr.js +1 -0
  20. package/build/translations/hu.js +1 -0
  21. package/build/translations/id.js +1 -0
  22. package/build/translations/it.js +1 -0
  23. package/build/translations/ja.js +1 -0
  24. package/build/translations/ko.js +1 -0
  25. package/build/translations/lt.js +1 -0
  26. package/build/translations/lv.js +1 -0
  27. package/build/translations/ms.js +1 -0
  28. package/build/translations/nl.js +1 -0
  29. package/build/translations/no.js +1 -0
  30. package/build/translations/pl.js +1 -0
  31. package/build/translations/pt-br.js +1 -0
  32. package/build/translations/pt.js +1 -0
  33. package/build/translations/ro.js +1 -0
  34. package/build/translations/ru.js +1 -0
  35. package/build/translations/sk.js +1 -0
  36. package/build/translations/sr-latn.js +1 -0
  37. package/build/translations/sr.js +1 -0
  38. package/build/translations/sv.js +1 -0
  39. package/build/translations/th.js +1 -0
  40. package/build/translations/tk.js +1 -0
  41. package/build/translations/tr.js +1 -0
  42. package/build/translations/tt.js +1 -0
  43. package/build/translations/uk.js +1 -0
  44. package/build/translations/ur.js +1 -0
  45. package/build/translations/vi.js +1 -0
  46. package/build/translations/zh-cn.js +1 -0
  47. package/build/translations/zh.js +1 -0
  48. package/lang/contexts.json +16 -0
  49. package/lang/translations/ar.po +68 -4
  50. package/lang/translations/az.po +65 -1
  51. package/lang/translations/bg.po +68 -4
  52. package/lang/translations/bn.po +68 -4
  53. package/lang/translations/ca.po +68 -4
  54. package/lang/translations/cs.po +68 -4
  55. package/lang/translations/da.po +68 -4
  56. package/lang/translations/de.po +68 -4
  57. package/lang/translations/el.po +68 -4
  58. package/lang/translations/en-au.po +65 -1
  59. package/lang/translations/en.po +65 -1
  60. package/lang/translations/es.po +68 -4
  61. package/lang/translations/et.po +68 -4
  62. package/lang/translations/fi.po +68 -4
  63. package/lang/translations/fr.po +68 -4
  64. package/lang/translations/gl.po +65 -1
  65. package/lang/translations/he.po +68 -4
  66. package/lang/translations/hi.po +68 -4
  67. package/lang/translations/hr.po +65 -1
  68. package/lang/translations/hu.po +68 -4
  69. package/lang/translations/id.po +68 -4
  70. package/lang/translations/it.po +68 -4
  71. package/lang/translations/ja.po +68 -4
  72. package/lang/translations/ko.po +68 -4
  73. package/lang/translations/lt.po +68 -4
  74. package/lang/translations/lv.po +68 -4
  75. package/lang/translations/ms.po +68 -4
  76. package/lang/translations/nl.po +68 -4
  77. package/lang/translations/no.po +68 -4
  78. package/lang/translations/pl.po +68 -4
  79. package/lang/translations/pt-br.po +68 -4
  80. package/lang/translations/pt.po +68 -4
  81. package/lang/translations/ro.po +68 -4
  82. package/lang/translations/ru.po +68 -4
  83. package/lang/translations/sk.po +68 -4
  84. package/lang/translations/sr-latn.po +68 -4
  85. package/lang/translations/sr.po +69 -5
  86. package/lang/translations/sv.po +68 -4
  87. package/lang/translations/th.po +68 -4
  88. package/lang/translations/tk.po +65 -1
  89. package/lang/translations/tr.po +68 -4
  90. package/lang/translations/tt.po +65 -1
  91. package/lang/translations/uk.po +68 -4
  92. package/lang/translations/ur.po +65 -1
  93. package/lang/translations/vi.po +68 -4
  94. package/lang/translations/zh-cn.po +68 -4
  95. package/lang/translations/zh.po +68 -4
  96. package/package.json +4 -4
  97. package/src/commands/acceptsuggestioncommand.js +2 -2
  98. package/src/commands/discardsuggestioncommand.js +2 -2
  99. package/src/commands/executeonallsuggestionscommand.js +2 -2
  100. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  101. package/src/commands/trackchangescommand.js +2 -2
  102. package/src/index.js +1 -1
  103. package/src/integrations/alignment.js +2 -2
  104. package/src/integrations/basicstyles.js +2 -2
  105. package/src/integrations/blockquote.js +2 -2
  106. package/src/integrations/ckbox.js +2 -2
  107. package/src/integrations/codeblock.js +2 -2
  108. package/src/integrations/comments.js +2 -2
  109. package/src/integrations/deletecommand.js +2 -2
  110. package/src/integrations/documentlist.js +2 -2
  111. package/src/integrations/documentlistproperties.js +23 -0
  112. package/src/integrations/entercommand.js +2 -2
  113. package/src/integrations/findandreplace.js +23 -0
  114. package/src/integrations/font.js +2 -2
  115. package/src/integrations/heading.js +2 -2
  116. package/src/integrations/highlight.js +2 -2
  117. package/src/integrations/horizontalline.js +2 -2
  118. package/src/integrations/htmlembed.js +2 -2
  119. package/src/integrations/image.js +2 -2
  120. package/src/integrations/imagereplace.js +23 -0
  121. package/src/integrations/importword.js +2 -2
  122. package/src/integrations/indent.js +2 -2
  123. package/src/integrations/inputcommand.js +2 -2
  124. package/src/integrations/link.js +2 -2
  125. package/src/integrations/list.js +2 -2
  126. package/src/integrations/listproperties.js +23 -0
  127. package/src/integrations/mediaembed.js +2 -2
  128. package/src/integrations/mention.js +2 -2
  129. package/src/integrations/pagebreak.js +2 -2
  130. package/src/integrations/paragraph.js +2 -2
  131. package/src/integrations/removeformat.js +2 -2
  132. package/src/integrations/restrictededitingmode.js +2 -2
  133. package/src/integrations/shiftentercommand.js +2 -2
  134. package/src/integrations/standardeditingmode.js +2 -2
  135. package/src/integrations/style.js +2 -2
  136. package/src/integrations/table.js +2 -2
  137. package/src/integrations/tablecaption.js +2 -2
  138. package/src/integrations/tableclipboard.js +2 -2
  139. package/src/integrations/tablecolumnresize.js +23 -0
  140. package/src/integrations/tableheadings.js +2 -2
  141. package/src/integrations/tablemergesplit.js +2 -2
  142. package/src/integrations/tableproperties.js +23 -0
  143. package/src/integrations/title.js +2 -2
  144. package/src/integrations/undo.js +2 -2
  145. package/src/integrations/utils.js +2 -2
  146. package/src/suggestion.js +2 -2
  147. package/src/suggestiondescriptionfactory.js +2 -2
  148. package/src/trackchanges.js +2 -2
  149. package/src/trackchangesdata.js +2 -2
  150. package/src/trackchangesediting.js +2 -2
  151. package/src/trackchangesui.js +2 -2
  152. package/src/ui/suggestioncontroller.js +2 -2
  153. package/src/ui/view/basesuggestionthreadview.js +2 -2
  154. package/src/ui/view/suggestionthreadview.js +2 -2
  155. package/src/utils/common-translations.js +2 -2
  156. package/src/utils/utils.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2312=['unbind','newRange','applyOperation','editor','addSuggestion','suggestion:','formatBlock:join','notReady','marker-count','multi','locale','init','trackChanges','markInsertion','mapper','getWalker','normal','addMarker:suggestion:formatBlock','formatInline','createPositionBefore','deletion','track-changes-suggestion-data-mismatch','createPositionAfter','_getExternalAuthor','backward','suggestionLoaded','document','isEqual','createElement','_removeSuggestion','_splitMarkerName','insertion:','acceptSuggestion','subType','values','deletion:discard','_onDiscard','detach','getDifference','isTouching','buildSuggestion','formatInline:','consumable','fire','after','setSelection','lowest','getSuggestions','addMarkerName','isIntersectingWithRange','_findSuggestions','isCollapsed','hasComments','track-changes-command-not-found','createRangeIn','Users','showSuggestionHighlights','getRanges','isInContent','add','upcast','writer','data','end','createdAt','editingDowncast','TrackChangesEditing','_checkSuggestionCorrectness','resolve','trackChangesCommand','author','addSuggestionData','filter','hasCommentThread','insertion:chain','length','insertion','push','getAncestors','ck-suggestion-marker','rejected','formatGroupId','hasSuggestion','attributes','getChangedMarkers','authoredAt','_joinWithAdjacentSuggestions','containsRange','selection','elementEnd','_saved','_handleNewSuggestionMarker','getCommentThread','start','data-suggestion','_registerDefaultCallbacks','getMultiRangeId','getCustomProperty','track-changes-adapter-missing-getsuggestion','schema','ready','config','_setSuggestionRange','differ','splice','size','remove','isUndo','documentSelection','delete','dataReady','originalSuggestionId','getRange','range','insertContent','conversion','_model','isAtEnd','createRange','formatBlock:','set','options','change','_editor','before','discardAllSuggestions','move','enableCommand','acceptAllSuggestions','external:','createPositionAt','howMany','removeMarker:suggestion:formatBlock','formatInline:join','insertion:join','removeClass','ck-suggestion-marker-formatBlock','markInlineFormat','name','getLastMatchingPosition','deletion:join','addRange','targetPosition','change:_saved','forceDefaultExecution','collaboration.channelId','type','split','_descriptionFactory','textProxy','skipNestingCheck','addMarker:suggestion','getSuggestionCallback','widget','isAfter','value','enableReadOnlyMode','updateSuggestion','PENDING_ACTION_SUGGESTION','getMarkers','_suggestionState','change:data','get','discardSelectedSuggestions','element','forward','_defaultCallbacks','_suggestionFactory','markerName','getAttribute','includes','discard','containsItem','removed','isObject','addHighlight','creator','addMarker','plugins','$marker','_suggestions','getFirstMarker','formatBlock','accept','getSuggestion','formatBlock:accept','root','formatBlock:chain','suggestionUnloaded','markBlockFormat','commentThread','removeAttribute','_setSuggestionData','removeMarker','for','chain','PendingActions','addCommentThread','toJSON','position','markDeletion','nodeBefore','track-changes-user-not-found','markerReady','_isForcedDefaultExecutionBlock','createSelection','discardSuggestion','_updateSuggestionData','low','open','high','adapter','_rangeIsInLocalUserInsertion','group','_refreshSuggestionsChain','fromRange','moveTargetPosition','rethrowUnexpectedError','deletion:chain','parent','suggestion','getIntersection','isExternal','isOwn','_joinSuggestions','some','bindElementToMarker','_breakSuggestionMarker','oldRange','stop','then','nodeAfter','isMultiRange','isRemovable','deleteContent','sort','registerCustomCallback','getShiftedBy','commands','previous','addClass','_createSuggestion','acceptSelectedSuggestions','next','isDocumentOperation','_customCallbacks','listenTo','insertion:accept','has','formatBlock:discard','highest','markers','CommentsRepository','unbindElementFromMarkerName','fromCharCode','activeMarkers','isBefore','pluginName','suggestion-type','insert','isLimit','markerToHighlight','track-changes-adapter-already-set','markerToData','model','refresh','requires','_commentsRepository','_addSuggestionMarker','registerPostFixer','getFirstRange','map','getNearestSelectionRange','_enabledCommands','update:suggestion','from','multipleBlocks','containsRangeInObject','join','toViewElement','elementToElement','getUser','getChanges','_cutOutSuggestionMarker','@external','enqueueChange','getItems','_getAuthorFromId','isInsideObject','batch','dataToMarker','consume','$graveyard','dataDowncast','addUser','suggestionChanged','updateMarker','markMultiRangeBlockFormat','_getSuggestionData','every','item','rootName','removeMarkers','ck-suggestion-marker--active','_adapter','containsPosition','isNextTo','head','markerNameToElements','execute','getAllAdjacentSuggestions'];(function(_0x4ca415,_0x231289){const _0x2f1f96=function(_0x2b31d0){while(--_0x2b31d0){_0x4ca415['push'](_0x4ca415['shift']());}};_0x2f1f96(++_0x231289);}(_0x2312,0x1a6));const _0x2f1f=function(_0x4ca415,_0x231289){_0x4ca415=_0x4ca415-0x0;let _0x2f1f96=_0x2312[_0x4ca415];return _0x2f1f96;};import{Plugin as _0x42462f,PendingActions as _0x4bc1a2}from'ckeditor5/src/core';import{LiveRange as _0x350fbe}from'ckeditor5/src/engine';import{CKEditorError as _0x572472,uid as _0x505ee6,priorities as _0x40ebb9,EmitterMixin as _0x32754b,mix as _0x1437bd,logWarning as _0x15cdbe}from'ckeditor5/src/utils';import{toWidget as _0x3cbd34}from'ckeditor5/src/widget';import{Users as _0x21b8e6}from'ckeditor5-collaboration/src/collaboration-core';import _0x46b48c from'./commands/trackchangescommand';import _0x4c114f from'./commands/acceptsuggestioncommand';import _0x1d3b6c from'./commands/discardsuggestioncommand';import _0x1651d1 from'./commands/executeonallsuggestionscommand';import _0x5f033a from'./commands/executeonselectedsuggestionscommand';import _0x6a3c58 from'./suggestion';import _0x7cb16a from'./suggestiondescriptionfactory';import _0x361e66 from'./integrations/alignment';import _0x588ac9 from'./integrations/basicstyles';import _0x42a86e from'./integrations/blockquote';import _0x5c95ab from'./integrations/ckbox';import _0x4165a0 from'./integrations/codeblock';import _0x67dd2 from'./integrations/comments';import _0x53e5dd from'./integrations/deletecommand';import _0x1a02d3 from'./integrations/documentlist';import _0x1075f0 from'./integrations/entercommand';import _0x4fc4b8 from'./integrations/font';import _0x5b292e from'./integrations/heading';import _0x2e81d3 from'./integrations/highlight';import _0x1316af from'./integrations/horizontalline';import _0x26d731 from'./integrations/htmlembed';import _0x507dc1 from'./integrations/image';import _0x43cbde from'./integrations/importword';import _0x325ba3 from'./integrations/indent';import _0x5896b5 from'./integrations/inputcommand';import _0x54fba6 from'./integrations/link';import _0x1eb9f9 from'./integrations/list';import _0x11fa2b from'./integrations/mediaembed';import _0x208c4e from'./integrations/mention';import _0x542868 from'./integrations/pagebreak';import _0x1b02bd from'./integrations/paragraph';import _0x47418e from'./integrations/removeformat';import _0x9fa442 from'./integrations/restrictededitingmode';import _0x21984d from'./integrations/shiftentercommand';import _0x425364 from'./integrations/standardeditingmode';import _0x2560fb from'./integrations/style';import _0x50ce77 from'./integrations/table';import _0x3af513 from'./integrations/tablemergesplit';import _0x5d08b8 from'./integrations/tableheadings';import _0x2fb1ca from'./integrations/tableclipboard';import _0x4cf229 from'./integrations/title';import _0x5d3485 from'./integrations/undo';import{hashObject as _0x48a2b9}from'@ckeditor/ckeditor5-collaboration-core';import{getTranslation as _0xb694e7}from'./utils/common-translations';import _0xc60ead from'./integrations/tablecaption';export default class p extends _0x42462f{static get[_0x2f1f('0x9b')](){return['CommentsRepository',_0x21b8e6,_0x4bc1a2,_0x361e66,_0x588ac9,_0x42a86e,_0x5c95ab,_0x4165a0,_0x67dd2,_0x53e5dd,_0x1a02d3,_0x1075f0,_0x4fc4b8,_0x5b292e,_0x2e81d3,_0x1316af,_0x26d731,_0x507dc1,_0x43cbde,_0x325ba3,_0x5896b5,_0x54fba6,_0x1eb9f9,_0x11fa2b,_0x208c4e,_0x542868,_0x1b02bd,_0x47418e,_0x9fa442,_0x21984d,_0x425364,_0x2560fb,_0x50ce77,_0x3af513,_0x5d08b8,_0xc60ead,_0x2fb1ca,_0x4cf229,_0x5d3485];}static get[_0x2f1f('0x92')](){return _0x2f1f('0x10a');}constructor(_0xdb848){function _0x57862a(_0x1316b8){return _0x1316b8[_0x2f1f('0xa0')](_0x15facb=>String[_0x2f1f('0x8f')](_0x15facb))[_0x2f1f('0xa7')]('');}super(_0xdb848),this[_0x2f1f('0x9')](_0x2f1f('0x90'),[]),this['on']('change:activeMarkers',(_0xa560a4,_0x1cbe20,_0x396edc,_0x2573ba)=>{this[_0x2f1f('0x5')][_0x2f1f('0xb')](()=>{for(const _0x253198 of[..._0x2573ba,..._0x396edc])this[_0x2f1f('0x5')][_0x2f1f('0x8c')]['has'](_0x253198)&&_0xdb848['editing']['reconvertMarker'](_0x253198);});}),this[_0x2f1f('0x25')]=new _0x7cb16a(this[_0x2f1f('0xcb')]['model'][_0x2f1f('0x12b')],this[_0x2f1f('0xcb')][_0x2f1f('0xd2')]),this[_0x2f1f('0xc1')]=null,this['_suggestionFactory']=new yt(this[_0x2f1f('0xcb')]),this['_suggestions']=new Map(),this['_commentsRepository']=_0xdb848[_0x2f1f('0x43')][_0x2f1f('0x33')]('CommentsRepository'),this[_0x2f1f('0xa2')]=new Set(),this[_0x2f1f('0x5')]=this[_0x2f1f('0xcb')][_0x2f1f('0x99')],this[_0x2f1f('0x31')]=new WeakMap(),this[_0x2f1f('0x5d')]=!0x1,this[_0x57862a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57862a([0x34,0x30,0x34,0x34,0x32,0x32,0x34,0x34]);}[_0x2f1f('0xd3')](){const _0xf3dad5=this[_0x2f1f('0xcb')];_0xf3dad5[_0x2f1f('0x4')][_0x2f1f('0x53')]('editingDowncast')[_0x2f1f('0x96')]({'model':_0x2f1f('0x6d'),'view':_0x52edee=>{const {id:_0x2efdb8,type:_0x49dcf0}=this[_0x2f1f('0xe6')](_0x52edee[_0x2f1f('0x39')]),_0x39da1b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x49dcf0];let _0x586346=0xbb8;return this['activeMarkers'][_0x2f1f('0x3b')](_0x52edee[_0x2f1f('0x39')])&&(_0x39da1b[_0x2f1f('0x115')](_0x2f1f('0xc0')),_0x586346=0xbc2),_0x2f1f('0xdc')==_0x49dcf0&&(_0x586346+=0x5),{'classes':_0x39da1b,'attributes':{'data-suggestion':_0x2efdb8},'priority':_0x586346};}}),_0xf3dad5[_0x2f1f('0x4')][_0x2f1f('0x53')](_0x2f1f('0xb6'))['add'](_0x283c37=>{_0x283c37['on'](_0x2f1f('0x28'),(_0x519880,_0x523155,_0x3fc0c8)=>{if(!_0x3fc0c8[_0x2f1f('0xa')]['showSuggestionHighlights'])return;const _0x1b2ee3=_0x523155[_0x2f1f('0xbd')];if(!_0x1b2ee3)return;const _0x50ff55=_0x3fc0c8[_0x2f1f('0xd6')][_0x2f1f('0xa8')](_0x1b2ee3);_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0x12b')]['isObject'](_0x1b2ee3)&&_0x50ff55&&!_0x50ff55[_0x2f1f('0x129')](_0x2f1f('0x2a'))&&_0x50ff55['is']('containerElement')&&_0x3cbd34(_0x50ff55,_0x3fc0c8[_0x2f1f('0x105')]);},{'priority':_0x2f1f('0x63')});}),_0xf3dad5['conversion']['for']('dataDowncast')[_0x2f1f('0x96')]({'model':_0x2f1f('0x6d'),'view':(_0xf0d0ff,_0x470e84)=>{if(!_0x470e84[_0x2f1f('0xa')][_0x2f1f('0x100')])return null;const {type:_0x3274f5}=this['_splitMarkerName'](_0xf0d0ff[_0x2f1f('0x39')]);return{'classes':[_0x2f1f('0x117'),'ck-suggestion-marker-'+_0x3274f5],'priority':0xbb8};}});const _0x1d9743=({showActiveMarkers:_0x28d94f=!0x0}={})=>(_0x5db51c,_0x118019,_0x365b22)=>{if(!_0x118019[_0x2f1f('0xbd')])return;if(_0x118019[_0x2f1f('0xbd')]['is'](_0x2f1f('0x120')))return void _0x365b22[_0x2f1f('0xf2')][_0x2f1f('0xb4')](_0x118019['item'],_0x5db51c['name']);const _0x1d41fa=_0x365b22['mapper'][_0x2f1f('0xa8')](_0x118019[_0x2f1f('0xbd')]);if(!(_0x118019[_0x2f1f('0xbd')]['is'](_0x2f1f('0x35'))&&_0xf3dad5[_0x2f1f('0x99')]['schema']['isBlock'](_0x118019[_0x2f1f('0xbd')])&&!_0x1d41fa[_0x2f1f('0x129')](_0x2f1f('0x40'))))return;const {id:_0x464371}=this[_0x2f1f('0xe6')](_0x118019['markerName']);_0x365b22[_0x2f1f('0x105')]['addClass']([_0x2f1f('0x117'),_0x2f1f('0x19')],_0x1d41fa),_0x365b22[_0x2f1f('0x105')]['setAttribute'](_0x2f1f('0x126'),_0x464371,_0x1d41fa),_0x365b22[_0x2f1f('0xd6')][_0x2f1f('0x73')](_0x1d41fa,_0x118019[_0x2f1f('0x39')]),_0x28d94f&&(this['activeMarkers'][_0x2f1f('0x3b')](_0x118019['markerName'])?_0x365b22[_0x2f1f('0x105')][_0x2f1f('0x81')](_0x2f1f('0xc0'),_0x1d41fa):_0x365b22[_0x2f1f('0x105')][_0x2f1f('0x18')](_0x2f1f('0xc0'),_0x1d41fa));for(const _0x1006cd of _0xf3dad5['model'][_0x2f1f('0xfe')](_0x118019[_0x2f1f('0xbd')])[_0x2f1f('0xaf')]())_0x365b22['consumable'][_0x2f1f('0xb4')](_0x1006cd,_0x5db51c[_0x2f1f('0x1b')]);_0x365b22[_0x2f1f('0xf2')][_0x2f1f('0xb4')](_0x118019[_0x2f1f('0xbd')],_0x5db51c[_0x2f1f('0x1b')]);};_0xf3dad5[_0x2f1f('0x4')][_0x2f1f('0x53')](_0x2f1f('0xb6'))[_0x2f1f('0x103')](_0x4b6a87=>{_0x4b6a87['on'](_0x2f1f('0xd9'),(_0x14a818,_0x2cfc31,_0x19c809)=>{_0x19c809[_0x2f1f('0xa')]['showSuggestionHighlights']&&_0x1d9743({'showActiveMarkers':!0x1})(_0x14a818,_0x2cfc31,_0x19c809);},{'priority':_0x2f1f('0x8b')});}),_0xf3dad5[_0x2f1f('0x4')][_0x2f1f('0x53')](_0x2f1f('0xb6'))[_0x2f1f('0x98')]({'model':_0x2f1f('0x6d'),'view':(_0x57ec34,_0x23d0c7)=>_0x23d0c7[_0x2f1f('0xa')]['showSuggestionHighlights']?null:{'group':_0x2f1f('0x6d'),'name':_0x57ec34['substr']('suggestion'[_0x2f1f('0x113')]+0x1)}}),_0xf3dad5['conversion']['for'](_0x2f1f('0x104'))[_0x2f1f('0xa9')]({'view':{'name':_0x2f1f('0x6d'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x26e312,{writer:_0x10a609})=>{let _0x4ea144='suggestion:'+_0x26e312[_0x2f1f('0x3a')](_0x2f1f('0x93'))+':'+_0x26e312[_0x2f1f('0x3a')]('id');return _0x26e312['getAttribute'](_0x2f1f('0xd0'))&&(_0x4ea144+=':'+_0x26e312[_0x2f1f('0x3a')](_0x2f1f('0xd0'))),_0x10a609[_0x2f1f('0xe4')](_0x2f1f('0x44'),{'data-name':_0x4ea144});}}),_0xf3dad5[_0x2f1f('0x4')]['for'](_0x2f1f('0x104'))[_0x2f1f('0xb3')]({'view':_0x2f1f('0x6d')}),_0xf3dad5['conversion'][_0x2f1f('0x53')]('editingDowncast')[_0x2f1f('0x103')](_0x20bfa1=>{_0x20bfa1['on'](_0x2f1f('0xd9'),_0x1d9743(),{'priority':'high'});}),_0xf3dad5[_0x2f1f('0x4')][_0x2f1f('0x53')](_0x2f1f('0x109'))[_0x2f1f('0x103')](_0x11dd1e=>{_0x11dd1e['on'](_0x2f1f('0x15'),(_0x4691f9,_0x505e0d,_0x48a793)=>{const _0x184a8b=_0x48a793[_0x2f1f('0xd6')][_0x2f1f('0xc5')](_0x505e0d[_0x2f1f('0x39')]);if(_0x184a8b)for(const _0x2a87a7 of _0x184a8b)_0x2a87a7['getCustomProperty'](_0x2f1f('0x40'))||(_0x48a793[_0x2f1f('0x105')][_0x2f1f('0x18')]([_0x2f1f('0x117'),'ck-suggestion-marker-formatBlock',_0x2f1f('0xc0')],_0x2a87a7),_0x48a793[_0x2f1f('0x105')][_0x2f1f('0x50')](_0x2f1f('0x126'),_0x2a87a7),_0x48a793[_0x2f1f('0xd6')][_0x2f1f('0x8e')](_0x2a87a7,_0x505e0d[_0x2f1f('0x39')]));},{'priority':_0x2f1f('0x63')});}),_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0xe2')][_0x2f1f('0x9e')](_0x53b48d=>{let _0x2adda7=!0x1;const _0x16e6ff=Array['from'](_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0xe2')]['differ'][_0x2f1f('0x11c')]()),_0x10269b=new Set();for(const {name:_0x285456,data:_0x2e49d0}of _0x16e6ff){const {group:_0x5bc2b9,type:_0x3dce4b,id:_0x59acfd}=this[_0x2f1f('0xe6')](_0x285456);if(_0x2f1f('0x6d')!==_0x5bc2b9)continue;const _0x3655c6=this[_0x2f1f('0x45')][_0x2f1f('0x33')](_0x59acfd);if(null!=_0x2e49d0[_0x2f1f('0xc9')]){'formatInline'==_0x3dce4b&&(_0x2adda7=_0x2adda7||It(_0x2e49d0[_0x2f1f('0xc9')],_0x285456,_0x53b48d,_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0x12b')]));if(_0x2e49d0[_0x2f1f('0xc9')][_0x2f1f('0xfb')]||_0x2f1f('0xb5')==_0x2e49d0[_0x2f1f('0xc9')][_0x2f1f('0x4b')][_0x2f1f('0xbe')]||_0x2f1f('0x47')==_0x3dce4b&&!At(_0x2e49d0[_0x2f1f('0xc9')])||_0x2f1f('0xdc')==_0x3dce4b&&!(!St(_0x104c3b=_0x2e49d0[_0x2f1f('0xc9')])&&!function(_0x3058f5){return _0x3058f5[_0x2f1f('0x125')][_0x2f1f('0x6c')]==_0x3058f5[_0x2f1f('0x107')][_0x2f1f('0x5a')]&&_0x3058f5[_0x2f1f('0x125')][_0x2f1f('0x6')];}(_0x104c3b)))_0x53b48d[_0x2f1f('0x52')](_0x285456),_0x2adda7=!0x0;else{if(!_0x3655c6||!_0x3655c6[_0x2f1f('0x102')])continue;_0x10269b[_0x2f1f('0x103')](_0x3655c6);}}}var _0x104c3b;return _0x10269b[_0x2f1f('0x131')]>0x0&&(_0x2adda7=!!this[_0x2f1f('0x11e')](_0x10269b)||_0x2adda7),_0x2adda7;}),_0xf3dad5[_0x2f1f('0x99')]['document']['registerPostFixer'](_0x21978c=>{let _0x2bec98=!0x1;for(const _0x109287 of _0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0xe2')][_0x2f1f('0x12f')][_0x2f1f('0xab')]()){if(_0x2f1f('0x94')!=_0x109287[_0x2f1f('0x23')])continue;const _0x531571=_0x109287[_0x2f1f('0x58')]['getShiftedBy'](_0x109287[_0x2f1f('0x113')]);if(_0x531571['isAtEnd'])for(const _0x22f5d4 of this['_suggestions']['values']()){if(_0x22f5d4['isMultiRange']||!_0x22f5d4[_0x2f1f('0x102')])continue;if(_0x2f1f('0x47')!=_0x22f5d4['type'])continue;const _0x494ca2=_0x22f5d4['getFirstRange']();if(_0x494ca2[_0x2f1f('0x125')][_0x2f1f('0x6c')]!=_0x494ca2[_0x2f1f('0x107')][_0x2f1f('0x6c')]&&_0x494ca2[_0x2f1f('0x107')][_0x2f1f('0xe3')](_0x109287[_0x2f1f('0x58')])){const _0x1c7225=_0xf3dad5[_0x2f1f('0x99')]['createRange'](_0x494ca2[_0x2f1f('0x125')],_0x531571);_0x21978c['updateMarker'](_0x22f5d4[_0x2f1f('0x46')](),{'range':_0x1c7225}),_0x2bec98=!0x0;}}}return _0x2bec98;}),_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0x8c')]['on'](_0x2f1f('0xa3'),(_0xc7864e,_0x4a2e46,_0x5048be)=>{if(null==_0x5048be){const {id:_0x4fe512}=this[_0x2f1f('0xe6')](_0x4a2e46[_0x2f1f('0x1b')]),_0x48220e=this[_0x2f1f('0x45')][_0x2f1f('0x33')](_0x4fe512);_0x48220e&&_0x48220e[_0x2f1f('0xf8')](_0x4a2e46[_0x2f1f('0x1b')]);}}),_0xf3dad5['model'][_0x2f1f('0xe2')]['on'](_0x2f1f('0x32'),()=>{const _0x54d38a=Array[_0x2f1f('0xa4')](_0xf3dad5['model']['document'][_0x2f1f('0x12f')]['getChangedMarkers']())['filter'](_0x5be996=>'suggestion'===this['_splitMarkerName'](_0x5be996[_0x2f1f('0x1b')])[_0x2f1f('0x66')]);if(0x0===_0x54d38a[_0x2f1f('0x113')])return;_0x54d38a[_0x2f1f('0x7c')]((_0x234597,_0x5c676e)=>{const _0x46c4ad=_0x234597['data'][_0x2f1f('0x75')],_0x3a3c9f=_0x5c676e[_0x2f1f('0x106')][_0x2f1f('0x75')];return null===_0x46c4ad&&null===_0x3a3c9f?0x0:null===_0x46c4ad&&null!==_0x3a3c9f?-0x1:null!==_0x46c4ad&&null===_0x3a3c9f?0x1:_0x46c4ad[_0x2f1f('0x125')][_0x2f1f('0x91')](_0x3a3c9f[_0x2f1f('0x125')])?-0x1:0x1;});const _0x112dcf=new Set(),_0x4e7e93=new Set();for(const {name:_0x609620,data:_0x49a370}of _0x54d38a){const {id:_0x42ce4e}=this[_0x2f1f('0xe6')](_0x609620);if(null===_0x49a370['oldRange']){const _0x2ab1d9=this[_0x2f1f('0x123')](_0x609620);_0x4e7e93[_0x2f1f('0x103')](_0x2ab1d9);}else{const _0x2375c3=this[_0x2f1f('0x45')][_0x2f1f('0x33')](_0x42ce4e);null!==_0x49a370[_0x2f1f('0xc9')]||_0x2375c3['isInContent']?(_0x112dcf['add'](_0x2375c3[_0x2f1f('0xc4')]),_0x4e7e93['add'](_0x2375c3)):this[_0x2f1f('0xe5')](_0x2375c3);}}_0x4e7e93[_0x2f1f('0x131')]>0x0&&this[_0x2f1f('0x67')](_0x4e7e93);for(const _0x3a3ffd of _0x112dcf)this[_0x2f1f('0xf3')](_0x2f1f('0xb8'),_0x3a3ffd);}),_0xf3dad5['model']['on'](_0x2f1f('0xca'),(_0x2eb3ea,_0x15646a)=>{const _0x76dce5=_0x15646a[0x0];if(!this[_0x2f1f('0x45')][_0x2f1f('0x131')])return;if(!_0x76dce5[_0x2f1f('0x85')])return;if(_0x76dce5[_0x2f1f('0xb2')][_0x2f1f('0x133')]||!_0x76dce5[_0x2f1f('0xb2')]['isLocal'])return;let _0x42e290,_0x25319a;switch(_0x76dce5['type']){case _0x2f1f('0x94'):_0x42e290=_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0x13')](_0x76dce5[_0x2f1f('0x58')]),_0x25319a=_0x42e290[_0x2f1f('0x7e')](_0x76dce5[_0x2f1f('0x14')]);break;case _0x2f1f('0x24'):_0x42e290=_0xf3dad5['model'][_0x2f1f('0x13')](_0x76dce5['splitPosition']),_0x25319a=_0xf3dad5['model'][_0x2f1f('0x13')](_0x76dce5[_0x2f1f('0x69')]);break;case _0x2f1f('0xf'):_0x42e290=_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0x13')](_0x76dce5[_0x2f1f('0x1f')]),_0x25319a=_0x42e290[_0x2f1f('0x7e')](_0x76dce5[_0x2f1f('0x14')]);break;default:return;}const _0x378444=_0xf3dad5['model'][_0x2f1f('0x7')](_0x42e290,_0x25319a);_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0xb')](()=>{for(const {suggestion:_0x4fda52,meta:_0x262c19}of this['_findSuggestions'](_0x378444)){if(_0x4fda52[_0x2f1f('0x79')])continue;if(_0x2f1f('0xda')==_0x4fda52[_0x2f1f('0x23')])continue;const _0xbf3d43=_0x4fda52[_0x2f1f('0x106')]&&_0x4fda52[_0x2f1f('0x106')]['multipleBlocks'];(_0x2f1f('0x47')!=_0x4fda52[_0x2f1f('0x23')]||'split'==_0x76dce5['type']&&!_0xbf3d43)&&(_0x262c19['containsRangeInObject']||_0x2f1f('0x114')==_0x4fda52[_0x2f1f('0x23')]&&_0x262c19[_0x2f1f('0x70')]||_0x4fda52[_0x2f1f('0x9f')]()['containsRange'](_0x378444)&&this[_0x2f1f('0x74')](_0x4fda52,_0x42e290,_0x25319a));}});},{'priority':_0x2f1f('0xf6')}),_0xf3dad5[_0x2f1f('0x99')]['on']('deleteContent',(_0x4c6ab3,_0x322c56)=>{const _0x549e63=_0x322c56[0x0],_0x53ecd8=_0x322c56[0x1];if(_0x53ecd8&&_0x53ecd8[_0x2f1f('0x21')])return;if(this[_0x2f1f('0x5d')])return;if(!this[_0x2f1f('0x10d')][_0x2f1f('0x2c')])return;if(_0x549e63[_0x2f1f('0xfb')])return;const _0x2ca811=_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0x12b')],{start:_0x38815c,end:_0x1e8c62}=_0x549e63[_0x2f1f('0x9f')](),_0x2aaaaf=_0x38815c[_0x2f1f('0x78')]&&_0x2ca811[_0x2f1f('0x95')](_0x38815c[_0x2f1f('0x78')])?null:_0x2ca811[_0x2f1f('0xa1')](_0x38815c,_0x2f1f('0x36')),_0x1b28d5=_0x1e8c62['nodeBefore']&&_0x2ca811[_0x2f1f('0x95')](_0x1e8c62['nodeBefore'])?null:_0x2ca811[_0x2f1f('0xa1')](_0x1e8c62,_0x2f1f('0xe0')),_0x1b7a6f=_0xf3dad5[_0x2f1f('0x99')]['createRange'](_0x2aaaaf?_0x2aaaaf[_0x2f1f('0x125')]:_0x38815c,_0x1b28d5?_0x1b28d5[_0x2f1f('0x107')]:_0x1e8c62);_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0xb')](_0x19f7b7=>{this[_0x2f1f('0x59')](_0x1b7a6f);const _0x3710b8=_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0x12b')][_0x2f1f('0xa1')](_0x1b7a6f[_0x2f1f('0x125')]);_0x549e63['is'](_0x2f1f('0x134'))?_0x19f7b7[_0x2f1f('0xf5')](_0x3710b8):_0x549e63['setTo'](_0x3710b8);}),_0x4c6ab3[_0x2f1f('0x76')]();},{'priority':_0x40ebb9[_0x2f1f('0xd8')]+0xa}),_0xf3dad5[_0x2f1f('0x99')]['on']('insertContent',(_0x179977,_0x40637e)=>{const _0x1862ed=_0x40637e[_0x40637e['length']-0x1];_0x1862ed&&_0x1862ed[_0x2f1f('0x21')]||this[_0x2f1f('0x5d')]||this[_0x2f1f('0x10d')]['value']&&(_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0xb')](()=>{let _0x5f013e=_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0x3')](_0x40637e[0x0],_0x40637e[0x1],_0x40637e[0x2],_0x40637e[0x3],{'forceDefaultExecution':!0x0});if(!_0x5f013e)return;_0x179977['return']=_0x5f013e['clone']();const _0x35176f=_0x5f013e[_0x2f1f('0x107')][_0x2f1f('0x5a')],_0x96a436=_0xf3dad5['model']['schema'];_0x35176f&&_0x96a436['isBlock'](_0x35176f)&&!_0x96a436[_0x2f1f('0x3f')](_0x35176f)&&(_0x5f013e=_0xf3dad5['model']['createRange'](_0x5f013e['start'],_0xf3dad5[_0x2f1f('0x99')][_0x2f1f('0x13')](_0x35176f,'end'))),this['markInsertion'](_0x5f013e);}),_0x179977[_0x2f1f('0x76')]());},{'priority':_0x2f1f('0x63')}),this[_0x2f1f('0x10d')]=new _0x46b48c(_0xf3dad5,this[_0x2f1f('0xa2')]),this['editor'][_0x2f1f('0x7f')]['add'](_0x2f1f('0xd4'),this[_0x2f1f('0x10d')]),this[_0x2f1f('0x10')](_0x2f1f('0xd4'));const _0x254893=new _0x4c114f(_0xf3dad5,this[_0x2f1f('0x45')]);_0xf3dad5[_0x2f1f('0x7f')][_0x2f1f('0x103')](_0x2f1f('0xe8'),_0x254893),this[_0x2f1f('0x10')](_0x2f1f('0xe8'));const _0x31aa8c=new _0x1d3b6c(_0xf3dad5,this[_0x2f1f('0x45')]);_0xf3dad5['commands'][_0x2f1f('0x103')](_0x2f1f('0x5f'),_0x31aa8c),this[_0x2f1f('0x10')]('discardSuggestion'),_0xf3dad5[_0x2f1f('0x7f')][_0x2f1f('0x103')](_0x2f1f('0x11'),new _0x1651d1(_0xf3dad5,_0x254893,this[_0x2f1f('0x45')])),this[_0x2f1f('0x10')](_0x2f1f('0x11')),_0xf3dad5[_0x2f1f('0x7f')][_0x2f1f('0x103')](_0x2f1f('0xe'),new _0x1651d1(_0xf3dad5,_0x31aa8c,this[_0x2f1f('0x45')])),this['enableCommand'](_0x2f1f('0xe')),_0xf3dad5['commands'][_0x2f1f('0x103')](_0x2f1f('0x83'),new _0x5f033a(_0xf3dad5,_0x254893,this[_0x2f1f('0x45')])),this[_0x2f1f('0x10')](_0x2f1f('0x83')),_0xf3dad5['commands'][_0x2f1f('0x103')](_0x2f1f('0x34'),new _0x5f033a(_0xf3dad5,_0x31aa8c,this[_0x2f1f('0x45')])),this['enableCommand']('discardSelectedSuggestions');const _0x503a86=_0xf3dad5[_0x2f1f('0x43')][_0x2f1f('0x33')](_0x2f1f('0x8d'));this['listenTo'](_0x503a86,'addComment',(_0x35e183,{threadId:_0x2cfc30})=>{const _0x6b7827=this[_0x2f1f('0x45')][_0x2f1f('0x33')](_0x2cfc30);_0x6b7827&&_0x6b7827[_0x2f1f('0x4f')]&&0x1===_0x6b7827[_0x2f1f('0x4f')][_0x2f1f('0x113')]&&this['_updateSuggestionData'](_0x2cfc30,{'hasComments':!0x0});},{'priority':_0x2f1f('0x61')}),this[_0x2f1f('0x87')](_0x503a86,'removeComment',(_0x2c7573,{threadId:_0x45be36})=>{const _0x1e4ad6=this['_suggestions'][_0x2f1f('0x33')](_0x45be36);_0x1e4ad6&&_0x1e4ad6[_0x2f1f('0x4f')]&&!_0x1e4ad6['commentThread']['length']&&this[_0x2f1f('0x60')](_0x45be36,{'hasComments':!0x1});},{'priority':_0x2f1f('0x61')});}set['adapter'](_0x142809){if(this[_0x2f1f('0xc1')])throw new _0x572472(_0x2f1f('0x97'),this);this['_adapter']=_0x142809;}get[_0x2f1f('0x64')](){return this[_0x2f1f('0xc1')];}[_0x2f1f('0xf7')]({skipNotAttached:_0x57f6de=!0x1,toJSON:_0x4aea35=!0x1}={}){const _0x51388c=[];for(const _0x47d72b of this[_0x2f1f('0x45')][_0x2f1f('0xea')]())_0x57f6de&&!_0x47d72b[_0x2f1f('0x102')]||_0x51388c['push'](_0x47d72b);return _0x4aea35?_0x51388c[_0x2f1f('0xa0')](_0x102633=>_0x102633[_0x2f1f('0x57')]()):_0x51388c;}[_0x2f1f('0x49')](_0xcafbdd){const _0x304c18=this['_suggestions'][_0x2f1f('0x33')](_0xcafbdd);if(!_0x304c18)throw new _0x572472('track-changes-suggestion-not-found',this);return _0x304c18;}[_0x2f1f('0x11a')](_0x57541e){return this[_0x2f1f('0x45')][_0x2f1f('0x89')](_0x57541e);}[_0x2f1f('0x10f')](_0xad4346){const {authorId:_0x1d5979,id:_0x481be8,attributes:_0x4b49de}=_0xad4346,[_0x8494f3,_0x1dac4e]=_0xad4346[_0x2f1f('0x23')][_0x2f1f('0x24')](':'),_0x1a5404=this['_suggestions'][_0x2f1f('0x33')](_0x481be8)||this[_0x2f1f('0x82')](_0x8494f3,_0x1dac4e,_0x481be8,_0x1d5979,_0x4b49de);if(this['_addThreadToSuggestion'](_0x1a5404),this[_0x2f1f('0x10b')](_0x1a5404,_0x8494f3,_0x1dac4e||null,_0x1d5979),_0x1a5404[_0x2f1f('0x108')]=_0xad4346[_0x2f1f('0x108')],_0x4b49de&&_0x4b49de[_0x2f1f('0xad')]){const {authorName:_0x4f3a1e,createdAt:_0x262541}=_0x4b49de['@external'],_0x3caac9=this[_0x2f1f('0xdf')](_0x4f3a1e);_0x1a5404[_0x2f1f('0x11d')]=_0x262541,_0x1a5404[_0x2f1f('0x10e')]=_0x3caac9,_0x1a5404[_0x2f1f('0x6f')]=!0x0;}else _0x1a5404[_0x2f1f('0x11d')]=_0xad4346[_0x2f1f('0x108')];switch(_0xad4346['data']&&(_0x1a5404['data']=_0xad4346['data']),_0xad4346[_0x2f1f('0x11b')]&&(_0x1a5404['attributes']=_0xad4346[_0x2f1f('0x11b')]),this['_adapter']&&this[_0x2f1f('0xc1')]['addSuggestion']||(_0x1a5404[_0x2f1f('0x122')]=!0x0),this[_0x2f1f('0x31')][_0x2f1f('0x33')](_0x1a5404)){case'notReady':this[_0x2f1f('0x31')][_0x2f1f('0x9')](_0x1a5404,_0x2f1f('0x136'));break;case'markerReady':_0x1a5404[_0x2f1f('0x102')]?(this[_0x2f1f('0x31')][_0x2f1f('0x9')](_0x1a5404,_0x2f1f('0x12c')),this[_0x2f1f('0xf3')](_0x2f1f('0xe1'),_0x1a5404)):this[_0x2f1f('0x31')]['set'](_0x1a5404,_0x2f1f('0x3e'));}return _0x1a5404;}[_0x2f1f('0xe8')](_0x25f2da){this['forceDefaultExecution'](()=>{this[_0x2f1f('0xcb')][_0x2f1f('0x99')][_0x2f1f('0xb')](()=>{for(const _0xefb9ce of _0x25f2da[_0x2f1f('0xc7')]())_0xefb9ce[_0x2f1f('0x48')]();});});}[_0x2f1f('0x5f')](_0x1c2973){this[_0x2f1f('0x21')](()=>{this['editor'][_0x2f1f('0x99')]['change'](()=>{for(const _0x28e72a of _0x1c2973['getAllAdjacentSuggestions']())_0x28e72a['discard']();});});}[_0x2f1f('0x10')](_0x34de5d,_0x3a3e0a){const _0x16ca22=this[_0x2f1f('0xcb')][_0x2f1f('0x7f')]['get'](_0x34de5d);if(!_0x16ca22)throw new _0x572472(_0x2f1f('0xfd'),this,{'commandName':_0x34de5d});this[_0x2f1f('0xa2')][_0x2f1f('0x103')](_0x16ca22),_0x3a3e0a&&_0x16ca22['on']('execute',(_0x2c627c,_0x395fdd)=>{this[_0x2f1f('0x10d')][_0x2f1f('0x2c')]&&(this['_isForcedDefaultExecutionBlock']||_0x395fdd[_0x2f1f('0x113')]>0x0&&_0x395fdd[_0x395fdd[_0x2f1f('0x113')]-0x1]&&_0x395fdd[_0x395fdd[_0x2f1f('0x113')]-0x1][_0x2f1f('0x21')]||(_0x3a3e0a((..._0x14d8f0)=>_0x16ca22[_0x2f1f('0xc6')](..._0x14d8f0,{'forceDefaultExecution':!0x0}),..._0x395fdd),_0x2c627c[_0x2f1f('0x76')]()));},{'priority':_0x2f1f('0x63')});}['forceDefaultExecution'](_0xccd69f){let _0x236d63,_0x19e8e4;const _0x542a57=this[_0x2f1f('0x5d')];this[_0x2f1f('0x5d')]=!0x0;try{_0x236d63=_0xccd69f();}catch(_0x44aa9e){_0x19e8e4=_0x44aa9e;}return _0x542a57||(this[_0x2f1f('0x5d')]=!0x1),_0x19e8e4&&_0x572472[_0x2f1f('0x6a')](_0x19e8e4,this),_0x236d63;}[_0x2f1f('0xd5')](_0x36c024,_0x2a18cb=null,_0x3f861d={}){if(_0x36c024['isCollapsed'])return null;const _0x237995=this['editor'][_0x2f1f('0x43')][_0x2f1f('0x33')]('Users')['me'];for(const {suggestion:_0x3c09cb,meta:_0x57ab52}of this[_0x2f1f('0xfa')](_0x36c024,_0x2f1f('0x114')))if(_0x57ab52['isOwn']){if(!_0x57ab52[_0x2f1f('0xc3')])return _0x3c09cb;if(_0x2a18cb==_0x3c09cb['subType']){const _0x291187=_0x3c09cb[_0x2f1f('0x9f')]();return _0x291187[_0x2f1f('0x125')]['isEqual'](_0x36c024[_0x2f1f('0x107')])?this[_0x2f1f('0x12e')](_0x3c09cb,this[_0x2f1f('0x5')][_0x2f1f('0x7')](_0x36c024[_0x2f1f('0x125')],_0x291187[_0x2f1f('0x107')])):this[_0x2f1f('0x12e')](_0x3c09cb,this[_0x2f1f('0x5')]['createRange'](_0x291187[_0x2f1f('0x125')],_0x36c024[_0x2f1f('0x107')])),_0x3c09cb;}}const _0x2adfca=_0x505ee6(),_0x3bbce8=_0x237995['id'],_0x2ac6b6=_0x2a18cb?'insertion:'+_0x2a18cb:_0x2f1f('0x114'),_0x1074d5=this[_0x2f1f('0x51')]({'id':_0x2adfca,'type':_0x2ac6b6,'createdAt':new Date(),'authorId':_0x3bbce8,'attributes':_0x3f861d});return this[_0x2f1f('0x9d')](_0x2ac6b6,_0x2adfca,_0x3bbce8,_0x36c024),_0x1074d5;}['markMultiRangeInsertion'](_0x36e302,_0x1f7aa4=_0x2f1f('0xd1'),_0x300b28={}){const _0x838401=this[_0x2f1f('0xcb')][_0x2f1f('0x43')][_0x2f1f('0x33')](_0x2f1f('0xff'))['me'],_0x5e179b=this[_0x2f1f('0x38')][_0x2f1f('0x29')](_0x2f1f('0x114'),_0x1f7aa4,_0x2f1f('0xa7'));for(const _0x35fac6 of this['getSuggestions']())if(_0x35fac6[_0x2f1f('0x10e')]['id']==_0x838401['id']&&_0x2f1f('0x114')==_0x35fac6[_0x2f1f('0x23')]&&_0x35fac6[_0x2f1f('0xe9')]==_0x1f7aa4&&(_0x5e179b(_0x35fac6[_0x2f1f('0x101')](),_0x36e302)||_0x5e179b(_0x36e302,_0x35fac6[_0x2f1f('0x101')]()))){for(const _0x44bae3 of _0x36e302)_0x35fac6['addRange'](_0x44bae3);return _0x35fac6;}for(const _0x4a48ef of _0x36e302)for(const {suggestion:_0x6ab60,meta:_0x5840ca}of this['_findSuggestions'](_0x4a48ef,'insertion')){if(!_0x5840ca['isOwn'])continue;let _0x2c094c=!0x0;for(const _0x982b63 of _0x6ab60[_0x2f1f('0x101')]())for(const _0x333643 of _0x36e302)if(!_0x982b63[_0x2f1f('0x11f')](_0x333643)){_0x2c094c=!0x1;break;}if(_0x2c094c)return _0x6ab60;}const _0x266ab5=_0x505ee6(),_0x27518a=_0x838401['id'],_0x2037e7=_0x2f1f('0xe7')+_0x1f7aa4,_0x14c495=this[_0x2f1f('0x51')]({'id':_0x266ab5,'type':_0x2037e7,'createdAt':new Date(),'authorId':_0x27518a,'attributes':_0x300b28});for(const _0x5a5b55 of _0x36e302)this[_0x2f1f('0x9d')](_0x2037e7,_0x266ab5,_0x27518a,_0x5a5b55,_0x6a3c58['getMultiRangeId']());return _0x14c495;}[_0x2f1f('0x1a')](_0x356755,_0x231750,_0x38dae0=null,_0x3e4507={}){if(_0x38dae0=_0x38dae0||vt(_0x231750),_0x356755[_0x2f1f('0xfb')])return;const _0x2078a4=this['editor'][_0x2f1f('0x43')][_0x2f1f('0x33')](_0x2f1f('0xff'))['me'],_0x3399a9=[];for(const {suggestion:_0x4795dc,meta:_0xa13e1a}of this['_findSuggestions'](_0x356755,_0x2f1f('0x114')))_0xa13e1a[_0x2f1f('0x70')]&&!_0xa13e1a[_0x2f1f('0xb1')]&&_0x3399a9['push'](..._0x4795dc[_0x2f1f('0x101')]());const _0x5c4e34=function(_0xb43409,_0x42f57a){const _0x27d6a1=[];for(const _0x2ab04c of _0x42f57a){const _0x4b8e9f=_0xb43409[_0x2f1f('0x6e')](_0x2ab04c);_0x4b8e9f&&_0x27d6a1['push'](_0x4b8e9f);}return _0x27d6a1;}(_0x356755,_0x3399a9),_0x19b693=function(_0xdc2173,_0x5e2b57){const _0x110871=[_0xdc2173];for(const _0x28f824 of _0x5e2b57){let _0x29da91=0x0;for(;_0x29da91<_0x110871[_0x2f1f('0x113')];){const _0x1fa07d=_0x110871[_0x29da91][_0x2f1f('0xee')](_0x28f824);_0x110871[_0x2f1f('0x130')](_0x29da91,0x1,..._0x1fa07d),_0x29da91+=_0x1fa07d[_0x2f1f('0x113')];}}return _0x110871;}(_0x356755,_0x3399a9);_0x5c4e34[_0x2f1f('0x113')]&&this[_0x2f1f('0x5')]['change'](()=>{for(const _0x24d73b of _0x5c4e34){const _0x46cc61=this[_0x2f1f('0x38')][_0x2f1f('0x29')](_0x2f1f('0xda'),_0x38dae0,'accept');this['forceDefaultExecution'](()=>_0x46cc61([_0x24d73b],_0x231750,_0x3e4507));}});for(const _0x332148 of _0x19b693){let _0x521e01=null,_0x57126e=_0x332148[_0x2f1f('0x125')],_0x34837b=_0x332148[_0x2f1f('0x107')];for(const {suggestion:_0x9be593,meta:_0x2b8925}of this['_findSuggestions'](_0x332148,_0x2f1f('0xda'))){if(!_0x2b8925[_0x2f1f('0x70')])continue;if(_0x9be593[_0x2f1f('0xe9')]!=_0x38dae0)continue;const _0xdaae2c=_0x9be593[_0x2f1f('0x9f')]();if(_0xdaae2c[_0x2f1f('0x11f')](_0x332148,!0x0))return;_0x57126e=_0x57126e[_0x2f1f('0x91')](_0xdaae2c[_0x2f1f('0x125')])?_0x57126e:_0xdaae2c[_0x2f1f('0x125')],_0x34837b=_0x34837b[_0x2f1f('0x2b')](_0xdaae2c[_0x2f1f('0x107')])?_0x34837b:_0xdaae2c[_0x2f1f('0x107')],_0x521e01?_0xdaae2c['start'][_0x2f1f('0x91')](_0x521e01['getFirstRange']()[_0x2f1f('0x125')])?(_0x521e01[_0x2f1f('0xbf')](),_0x521e01=_0x9be593):_0x9be593[_0x2f1f('0xbf')]():_0x521e01=_0x9be593;}const _0x41b896=this[_0x2f1f('0x5')][_0x2f1f('0x7')](_0x57126e,_0x34837b);if(_0x521e01)this[_0x2f1f('0x12e')](_0x521e01,_0x41b896);else{const _0x39217e=_0x505ee6(),_0x369f2f=_0x2078a4['id'];this[_0x2f1f('0x51')]({'id':_0x39217e,'type':'formatInline:'+_0x38dae0,'data':_0x231750,'createdAt':new Date(),'authorId':_0x369f2f,'attributes':_0x3e4507}),this[_0x2f1f('0x9d')](_0x2f1f('0xf1')+_0x38dae0,_0x39217e,_0x369f2f,_0x41b896);}}}[_0x2f1f('0x4e')](_0x43c563,_0x54884e,_0x590e3c=[],_0x3a4181=null,_0x1fb7a0={}){_0x54884e[_0x2f1f('0x119')]||(_0x54884e[_0x2f1f('0x119')]=_0x54884e['commandName']),_0x54884e[_0x2f1f('0xa5')]=_0x43c563['is'](_0x2f1f('0x2')),_0x3a4181=_0x3a4181||vt(_0x54884e);const _0x32bb2a=_0x590e3c['map'](_0x424ff2=>Dt(_0x424ff2,this['_model'])),_0x1d2721=_0x43c563['is'](_0x2f1f('0x2'))?_0x43c563:Dt(_0x43c563,this[_0x2f1f('0x5')]);_0x32bb2a[_0x2f1f('0x115')](_0x1d2721);let _0x4516f4=!0x0;for(const _0x3c2563 of _0x32bb2a)if(!this['_rangeIsInLocalUserInsertion'](_0x3c2563)){_0x4516f4=!0x1;break;}if(_0x4516f4){const _0x24a498=this['_suggestionFactory']['getSuggestionCallback'](_0x2f1f('0x47'),_0x3a4181,_0x2f1f('0x48'));return void this[_0x2f1f('0x21')](()=>_0x24a498([_0x1d2721],_0x54884e,_0x1fb7a0));}let _0x540129=null,_0x4541b1=_0x1d2721[_0x2f1f('0x125')],_0x197ddc=_0x1d2721['end'];for(const {suggestion:_0x549a89,meta:_0x16dfcd}of this['_findSuggestions'](_0x1d2721,'formatBlock')){if(!_0x16dfcd[_0x2f1f('0x70')]||_0x16dfcd[_0x2f1f('0xc3')]||_0x16dfcd[_0x2f1f('0xa6')]||_0x16dfcd[_0x2f1f('0xb1')])continue;if(_0x549a89['data']['formatGroupId']!=_0x54884e[_0x2f1f('0x119')])continue;const _0x356180=_0x549a89[_0x2f1f('0x9f')]();if(_0x549a89[_0x2f1f('0xe9')]==_0x3a4181){if(_0x356180[_0x2f1f('0x11f')](_0x1d2721,!0x0))return;_0x4541b1=_0x4541b1['isBefore'](_0x356180['start'])?_0x4541b1:_0x356180[_0x2f1f('0x125')],_0x197ddc=_0x197ddc[_0x2f1f('0x2b')](_0x356180[_0x2f1f('0x107')])?_0x197ddc:_0x356180['end'],_0x540129?_0x356180[_0x2f1f('0x125')][_0x2f1f('0x91')](_0x540129[_0x2f1f('0x9f')]()[_0x2f1f('0x125')])?(_0x540129['removeMarkers'](),_0x540129=_0x549a89):_0x549a89['removeMarkers']():_0x540129=_0x549a89;}else{const _0x557965=_0x1d2721['getIntersection'](_0x356180);this[_0x2f1f('0xac')](_0x549a89,_0x557965);}}const _0x315577=this['editor'][_0x2f1f('0x43')]['get'](_0x2f1f('0xff'))['me'],_0x553dd2=_0x505ee6(),_0x45e0b7=_0x315577['id'];_0x540129?this[_0x2f1f('0x12e')](_0x540129,this[_0x2f1f('0x5')][_0x2f1f('0x7')](_0x4541b1,_0x197ddc)):(this[_0x2f1f('0x51')]({'id':_0x553dd2,'type':_0x2f1f('0x8')+_0x3a4181,'data':_0x54884e,'createdAt':new Date(),'authorId':_0x45e0b7,'attributes':_0x1fb7a0}),this['_addSuggestionMarker']('formatBlock:'+_0x3a4181,_0x553dd2,_0x45e0b7,this['_model'][_0x2f1f('0x7')](_0x4541b1,_0x197ddc)));}[_0x2f1f('0xba')](_0x38eddd,_0x1c972f,_0x1e8908=[],_0x5e96b6=null,_0x228346={}){_0x1c972f[_0x2f1f('0x119')]||(_0x1c972f[_0x2f1f('0x119')]=_0x1c972f['commandName']),_0x1c972f[_0x2f1f('0xa5')]=!0x1,_0x5e96b6=_0x5e96b6||vt(_0x1c972f);const _0x3e96eb=_0x1e8908[_0x2f1f('0xa0')](_0x12f7b6=>Dt(_0x12f7b6,this[_0x2f1f('0x5')])),_0x34bd02=_0x38eddd['map'](_0x56ec1f=>Dt(_0x56ec1f,this['_model']));_0x3e96eb[_0x2f1f('0x115')](..._0x34bd02);let _0x49bc1b=!0x0;for(const _0x3c2574 of _0x3e96eb)if(!this[_0x2f1f('0x65')](_0x3c2574)){_0x49bc1b=!0x1;break;}if(_0x49bc1b){const _0x37aa2e=this[_0x2f1f('0x38')][_0x2f1f('0x29')](_0x2f1f('0x47'),_0x5e96b6,_0x2f1f('0x48'));return void this[_0x2f1f('0x21')](()=>_0x37aa2e(_0x34bd02,_0x1c972f,_0x228346));}const _0x4ba023=this[_0x2f1f('0xcb')]['plugins'][_0x2f1f('0x33')](_0x2f1f('0xff'))['me'];for(const _0x36837a of this['getSuggestions']()){if(_0x36837a[_0x2f1f('0x10e')]['id']!=_0x4ba023['id'])continue;if(_0x2f1f('0x47')!=_0x36837a['type']||_0x36837a[_0x2f1f('0x106')][_0x2f1f('0x119')]!=_0x1c972f[_0x2f1f('0x119')])continue;const _0x1c00a7=_0x36837a[_0x2f1f('0xe9')]==_0x5e96b6;for(let _0xf6a889=0x0;_0xf6a889<_0x34bd02[_0x2f1f('0x113')];_0xf6a889++){const _0x4e84cd=_0x34bd02[_0xf6a889];for(const _0x5f1f52 of _0x36837a[_0x2f1f('0x30')]()){const _0x453866=_0x5f1f52[_0x2f1f('0x1')]();if(_0x4e84cd[_0x2f1f('0xe3')](_0x453866)){_0x1c00a7?(_0x34bd02[_0x2f1f('0x130')](_0xf6a889,0x1),_0xf6a889--):_0x36837a[_0x2f1f('0x52')](_0x5f1f52[_0x2f1f('0x1b')]);break;}}}}if(0x0==_0x34bd02[_0x2f1f('0x113')])return;const _0x12b98d=this[_0x2f1f('0x38')]['getSuggestionCallback'](_0x2f1f('0x47'),_0x5e96b6,'join');for(const _0x4db433 of this[_0x2f1f('0xf7')]())if(_0x4db433['author']['id']==_0x4ba023['id']&&_0x2f1f('0x47')==_0x4db433[_0x2f1f('0x23')]&&_0x4db433[_0x2f1f('0x106')]['formatGroupId']==_0x1c972f[_0x2f1f('0x119')]&&_0x4db433[_0x2f1f('0xe9')]==_0x5e96b6&&(_0x12b98d(_0x4db433[_0x2f1f('0x101')](),_0x34bd02)||_0x12b98d(_0x34bd02,_0x4db433['getRanges']()))){for(const _0xf1c5e6 of _0x34bd02)_0x4db433[_0x2f1f('0x1e')](_0xf1c5e6);return _0x4db433;}const _0x11f1f1=_0x505ee6(),_0x23554e=_0x4ba023['id'],_0x368908='formatBlock:'+_0x5e96b6,_0x3ff499=this[_0x2f1f('0x51')]({'id':_0x11f1f1,'type':_0x368908,'data':_0x1c972f,'createdAt':new Date(),'authorId':_0x23554e,'attributes':_0x228346});for(const _0x13c7bf of _0x34bd02)this['_addSuggestionMarker'](_0x368908,_0x11f1f1,_0x23554e,_0x13c7bf,_0x6a3c58[_0x2f1f('0x128')]());return _0x3ff499;}[_0x2f1f('0x59')](_0x464569,_0x54b8ba=null,_0x1cbfc2={}){if(_0x464569['isCollapsed'])return null;const _0x2622b5=this[_0x2f1f('0xcb')]['plugins'][_0x2f1f('0x33')]('Users')['me'],_0x1bd5f6=new _0x350fbe(_0x464569[_0x2f1f('0x125')],_0x464569[_0x2f1f('0x107')]);for(const {suggestion:_0x545ae9,meta:_0x13f0fb}of this[_0x2f1f('0xfa')](_0x1bd5f6,_0x2f1f('0x114')))if(_0x13f0fb['isOwn']&&!_0x13f0fb[_0x2f1f('0xc3')]){if(_0x545ae9['isMultiRange']){const _0x2cf456=_0x545ae9['getRanges']()[_0x2f1f('0x110')](_0x168e89=>_0x2f1f('0xb5')!=_0x168e89[_0x2f1f('0x4b')][_0x2f1f('0xbe')]);_0x2cf456[_0x2f1f('0xbc')](_0x334b38=>_0x1bd5f6[_0x2f1f('0x11f')](_0x334b38,!0x0))&&_0x545ae9[_0x2f1f('0x3c')]();if(_0x2cf456[_0x2f1f('0x72')](_0x14ddeb=>_0x14ddeb[_0x2f1f('0x11f')](_0x1bd5f6,!0x0))){const _0x174021=this[_0x2f1f('0x38')][_0x2f1f('0x29')]('deletion',_0x54b8ba,_0x2f1f('0x48'));return this[_0x2f1f('0x21')](()=>_0x174021([_0x1bd5f6],null,_0x1cbfc2)),null;}}else{const _0x27b8ce=_0x1bd5f6[_0x2f1f('0x6e')](_0x545ae9[_0x2f1f('0x9f')]());_0x545ae9[_0x2f1f('0xec')]([_0x27b8ce],null,_0x1cbfc2);}}if(_0x1bd5f6[_0x2f1f('0xed')](),_0x1bd5f6[_0x2f1f('0xfb')]||_0x2f1f('0xb5')==_0x1bd5f6[_0x2f1f('0x4b')][_0x2f1f('0xbe')])return null;let _0x27d0fe=null,_0x5624d8=_0x1bd5f6['start'],_0x413f52=_0x1bd5f6['end'];for(const {suggestion:_0x2039f1,meta:_0x26ceb0}of this[_0x2f1f('0xfa')](_0x1bd5f6,_0x2f1f('0xdc')))if(_0x26ceb0[_0x2f1f('0x70')]){if(_0x2039f1[_0x2f1f('0x79')]){let _0x236462=!0x0;for(const _0x24a586 of _0x2039f1[_0x2f1f('0x101')]()){if(_0x24a586[_0x2f1f('0x11f')](_0x1bd5f6,!0x0))return _0x2039f1;_0x1bd5f6[_0x2f1f('0x11f')](_0x24a586)||(_0x236462=!0x1);}_0x236462&&_0x2039f1['discard']();}else{const _0x48a5d3=_0x2039f1[_0x2f1f('0x9f')]();if(_0x48a5d3[_0x2f1f('0x11f')](_0x1bd5f6,!0x0))return _0x2039f1;_0x5624d8=_0x5624d8[_0x2f1f('0x91')](_0x48a5d3[_0x2f1f('0x125')])?_0x5624d8:_0x48a5d3['start'],_0x413f52=_0x413f52[_0x2f1f('0x2b')](_0x48a5d3[_0x2f1f('0x107')])?_0x413f52:_0x48a5d3[_0x2f1f('0x107')],_0x27d0fe?_0x48a5d3[_0x2f1f('0x125')][_0x2f1f('0x91')](_0x27d0fe[_0x2f1f('0x9f')]()['start'])?(_0x27d0fe[_0x2f1f('0xbf')](),_0x27d0fe=_0x2039f1):_0x2039f1['removeMarkers']():_0x27d0fe=_0x2039f1;}}if(_0x27d0fe)return this[_0x2f1f('0x12e')](_0x27d0fe,this[_0x2f1f('0x5')][_0x2f1f('0x7')](_0x5624d8,_0x413f52)),_0x27d0fe;{const _0x16c39f=_0x505ee6(),_0x34aaed=this['_model'][_0x2f1f('0x7')](_0x5624d8,_0x413f52),_0x37cf73=_0x2622b5['id'],_0x8b5b20=_0x54b8ba?'deletion:'+_0x54b8ba:_0x2f1f('0xdc'),_0xf5fe47=this[_0x2f1f('0x51')]({'id':_0x16c39f,'type':_0x8b5b20,'createdAt':new Date(),'authorId':_0x37cf73,'attributes':_0x1cbfc2});return this[_0x2f1f('0x9d')](_0x8b5b20,_0x16c39f,_0x37cf73,_0x34aaed),_0xf5fe47;}}['markMultiRangeDeletion'](_0x1d2dfc,_0x32c663=_0x2f1f('0xd1'),_0x27445a={}){const _0x2dfa67=this[_0x2f1f('0xcb')][_0x2f1f('0x43')][_0x2f1f('0x33')]('Users')['me'],_0x33d34f=_0x1d2dfc[_0x2f1f('0xa0')](_0x31d016=>new _0x350fbe(_0x31d016[_0x2f1f('0x125')],_0x31d016['end'])),_0x19c81a=new Set();for(const _0x1e74fc of _0x33d34f)for(const {suggestion:_0x1362e9,meta:_0x2bc008}of this['_findSuggestions'](_0x1e74fc,_0x2f1f('0x114')))_0x2bc008['isOwn']&&!_0x2bc008[_0x2f1f('0xc3')]&&_0x19c81a[_0x2f1f('0x103')](_0x1362e9);for(const _0x50c794 of _0x19c81a)if(_0x50c794['isMultiRange']){const _0x44f342=_0x50c794[_0x2f1f('0x101')]();(!_0x50c794[_0x2f1f('0x11b')]||!_0x50c794[_0x2f1f('0x11b')][_0x2f1f('0x27')])&&(_0x44f342['every'](_0x5ac977=>_0x33d34f['some'](_0x2e6fe4=>_0x2e6fe4['containsRange'](_0x5ac977,!0x0)))&&_0x50c794[_0x2f1f('0x3c')]());if(_0x33d34f[_0x2f1f('0xbc')](_0x2a75ed=>_0x44f342[_0x2f1f('0x72')](_0x46c71e=>_0x46c71e[_0x2f1f('0x11f')](_0x2a75ed,!0x0)))){const _0xa3ae54=this[_0x2f1f('0x38')]['getSuggestionCallback'](_0x2f1f('0xdc'),_0x32c663,_0x2f1f('0x48'));return this[_0x2f1f('0x21')](()=>_0xa3ae54(_0x1d2dfc,null,_0x27445a)),null;}}else{const _0x4d5ac1=_0x50c794[_0x2f1f('0x9f')]();_0x33d34f[_0x2f1f('0x72')](_0x4da726=>_0x4da726[_0x2f1f('0x11f')](_0x4d5ac1,!0x0))&&_0x50c794[_0x2f1f('0x3c')]();if(_0x33d34f[_0x2f1f('0xbc')](_0x20c5f9=>_0x4d5ac1[_0x2f1f('0x11f')](_0x20c5f9,!0x0))){const _0x57fc3d=this['_suggestionFactory']['getSuggestionCallback'](_0x2f1f('0xdc'),_0x32c663,_0x2f1f('0x48'));return this[_0x2f1f('0x21')](()=>_0x57fc3d(_0x33d34f,null,_0x27445a)),null;}}const _0x4b8e02=this[_0x2f1f('0x38')]['getSuggestionCallback'](_0x2f1f('0xdc'),_0x32c663,_0x2f1f('0xa7'));let _0x1d8ace=null;for(const _0x1095b8 of this['getSuggestions']())if(_0x1095b8[_0x2f1f('0x10e')]['id']==_0x2dfa67['id']&&_0x1095b8[_0x2f1f('0x102')]&&'deletion'==_0x1095b8[_0x2f1f('0x23')]&&_0x1095b8[_0x2f1f('0xe9')]==_0x32c663&&(_0x4b8e02(_0x1095b8[_0x2f1f('0x101')](),_0x33d34f)||_0x4b8e02(_0x33d34f,_0x1095b8[_0x2f1f('0x101')]()))){if(_0x1d8ace){if(_0x1095b8['commentThread']&&_0x1095b8['commentThread'][_0x2f1f('0x113')])continue;for(const _0x467881 of _0x1095b8['getRanges']())_0x1d8ace[_0x2f1f('0xf9')](_0x467881)||_0x1d8ace[_0x2f1f('0x1e')](_0x467881);_0x1095b8[_0x2f1f('0xbf')]();}else{_0x1d8ace=_0x1095b8;for(const _0x3750d1 of _0x33d34f)_0x1095b8[_0x2f1f('0xf9')](_0x3750d1)||_0x1095b8[_0x2f1f('0x1e')](_0x3750d1);}}if(_0x1d8ace)return _0x1d8ace;_0x19c81a['clear']();for(const _0x287aec of _0x33d34f)for(const {suggestion:_0x2b2b77,meta:_0x1e16ce}of this['_findSuggestions'](_0x287aec,_0x2f1f('0xdc')))_0x1e16ce['isOwn']&&_0x19c81a['add'](_0x2b2b77);for(const _0x148c6e of _0x19c81a){const _0x26f86a=_0x148c6e[_0x2f1f('0x101')]();if(!_0x27445a||!_0x27445a[_0x2f1f('0x27')]){if(_0x33d34f[_0x2f1f('0xbc')](_0x4fe727=>_0x26f86a['some'](_0xaee223=>_0xaee223['containsRange'](_0x4fe727,!0x0))))return _0x148c6e;}(!_0x148c6e['attributes']||!_0x148c6e[_0x2f1f('0x11b')][_0x2f1f('0x27')])&&(_0x26f86a[_0x2f1f('0xbc')](_0x2d52f2=>_0x33d34f[_0x2f1f('0x72')](_0x498690=>_0x498690['containsRange'](_0x2d52f2,!0x0)))&&_0x148c6e['discard']());}const _0x43015b=_0x505ee6(),_0x113a88=_0x2dfa67['id'],_0x4e70cf='deletion:'+_0x32c663,_0x52bd29=this[_0x2f1f('0x51')]({'id':_0x43015b,'type':_0x4e70cf,'createdAt':new Date(),'authorId':_0x113a88,'attributes':_0x27445a});for(const _0x475934 of _0x33d34f)_0x475934['detach'](),_0x475934['isCollapsed']||_0x2f1f('0xb5')==_0x475934[_0x2f1f('0x4b')][_0x2f1f('0xbe')]||this[_0x2f1f('0x9d')](_0x4e70cf,_0x43015b,_0x113a88,_0x475934,_0x6a3c58[_0x2f1f('0x128')]());return _0x52bd29;}['_setSuggestionRange'](_0x583d9f,_0x43d383){const _0x41d7da=_0x583d9f['getFirstMarker']();this[_0x2f1f('0x5')][_0x2f1f('0xb')](_0x1b967b=>{_0x1b967b[_0x2f1f('0xb9')](_0x41d7da,{'range':_0x43d383});});}['_addThreadToSuggestion'](_0x27498c){const _0x17b50f=_0x27498c['id'],_0x3bbbba=this[_0x2f1f('0xcb')]['config']['get']('collaboration.channelId');this[_0x2f1f('0x9c')][_0x2f1f('0x111')](_0x17b50f)||this[_0x2f1f('0x9c')][_0x2f1f('0x56')]({'channelId':_0x3bbbba,'threadId':_0x17b50f});const _0x69bd4e=this[_0x2f1f('0x9c')][_0x2f1f('0x124')](_0x17b50f);_0x69bd4e[_0x2f1f('0xc8')](_0x2f1f('0x7a')),_0x69bd4e['isRemovable']=!0x1,_0x27498c[_0x2f1f('0x4f')]=_0x69bd4e;}['_checkSuggestionCorrectness'](_0x46ff99,_0x4e637f,_0x4d1647,_0x5b1176){if(_0x46ff99['type']!=_0x4e637f||_0x46ff99['subType']!=_0x4d1647||_0x46ff99['creator']['id']!=_0x5b1176)throw this[_0x2f1f('0xcb')][_0x2f1f('0x2d')](_0x2f1f('0xdd')),new _0x572472(_0x2f1f('0xdd'),this);}[_0x2f1f('0xac')](_0xaa83e3,_0x1b2bb0){const _0x2f6122=_0xaa83e3[_0x2f1f('0x9f')]();if(_0x1b2bb0[_0x2f1f('0xe3')](_0x2f6122))_0xaa83e3['removeMarkers']();else{if(_0x2f6122[_0x2f1f('0x11f')](_0x1b2bb0)){const _0x407368=this[_0x2f1f('0x5')][_0x2f1f('0x13')](_0x1b2bb0[_0x2f1f('0x125')]['nodeBefore'],'end');this[_0x2f1f('0x12e')](_0xaa83e3,this[_0x2f1f('0x5')]['createRange'](_0x2f6122['start'],_0x407368));const _0x387bc9=_0x505ee6(),_0xc435f2=_0xaa83e3[_0x2f1f('0x41')]['id'],_0xde2661=_0xaa83e3[_0x2f1f('0x23')]+':'+_0xaa83e3[_0x2f1f('0xe9')];this[_0x2f1f('0x51')]({'id':_0x387bc9,'type':_0xde2661,'createdAt':new Date(),'authorId':_0xc435f2,'data':_0xaa83e3[_0x2f1f('0x106')],'attributes':_0xaa83e3[_0x2f1f('0x11b')]});const _0x37299e=this['_model'][_0x2f1f('0x13')](_0x1b2bb0['end'][_0x2f1f('0x6c')],'after'),_0x3bc8c1=this[_0x2f1f('0x5')][_0x2f1f('0x7')](_0x37299e,_0x2f6122[_0x2f1f('0x107')]);this[_0x2f1f('0x9d')](_0xde2661,_0x387bc9,_0xc435f2,_0x3bc8c1);}else{if(_0x2f6122[_0x2f1f('0xc2')](_0x1b2bb0[_0x2f1f('0x125')])){const _0x1ab585=this[_0x2f1f('0x5')][_0x2f1f('0x13')](_0x1b2bb0['start'][_0x2f1f('0x5a')],_0x2f1f('0x107'));this[_0x2f1f('0x12e')](_0xaa83e3,this['_model'][_0x2f1f('0x7')](_0x2f6122[_0x2f1f('0x125')],_0x1ab585));}else{const _0x60af15=this['_model'][_0x2f1f('0x13')](_0x1b2bb0['end']['parent'],_0x2f1f('0xf4'));this['_setSuggestionRange'](_0xaa83e3,this['_model']['createRange'](_0x60af15,_0x2f6122[_0x2f1f('0x107')]));}}}}[_0x2f1f('0x65')](_0x573b8f){for(const {suggestion:_0x3f03b0,meta:_0x593a21}of this[_0x2f1f('0xfa')](_0x573b8f,_0x2f1f('0x114'))){if(!_0x593a21[_0x2f1f('0x70')])continue;const _0x4dba67=_0x3f03b0['getRanges']();for(const _0x1172e7 of _0x4dba67)if(!_0x573b8f['getDifference'](_0x1172e7)[_0x2f1f('0x113')])return!0x0;}return!0x1;}[_0x2f1f('0xb0')](_0x5ce69a){const _0x15a7a7=this[_0x2f1f('0xcb')][_0x2f1f('0x43')][_0x2f1f('0x33')](_0x2f1f('0xff'))[_0x2f1f('0xaa')](_0x5ce69a);if(!_0x15a7a7)throw new _0x572472(_0x2f1f('0x5b'),this);return _0x15a7a7;}[_0x2f1f('0xdf')](_0x530b3a){const _0xe80470=this[_0x2f1f('0xcb')]['plugins'][_0x2f1f('0x33')](_0x2f1f('0xff')),_0x3bf895=_0x48a2b9(_0x2f1f('0x12')+_0x530b3a),_0x21e510=_0xe80470[_0x2f1f('0xaa')](_0x3bf895);return _0x21e510||_0xe80470[_0x2f1f('0xb7')]({'id':_0x3bf895,'name':_0x530b3a});}[_0x2f1f('0x82')](_0x43546d,_0x2bda21,_0x3dafb3,_0xf48cdc,_0x33057a){const _0x193c8d=this['_getAuthorFromId'](_0xf48cdc),_0x46f9f8=this[_0x2f1f('0x38')][_0x2f1f('0xf0')](_0x43546d,_0x2bda21,_0x3dafb3,_0x193c8d,_0x33057a,_0xea5a96=>this[_0x2f1f('0x60')](_0x3dafb3,{'attributes':_0xea5a96}));return this[_0x2f1f('0x87')](_0x46f9f8,'accept',()=>{this[_0x2f1f('0x60')](_0x3dafb3,{'state':'accepted'});},{'priority':_0x2f1f('0x63')}),this[_0x2f1f('0x87')](_0x46f9f8,_0x2f1f('0x3c'),()=>{this[_0x2f1f('0x60')](_0x3dafb3,{'state':_0x2f1f('0x118')});},{'priority':_0x2f1f('0x63')}),this[_0x2f1f('0x45')][_0x2f1f('0x9')](_0x3dafb3,_0x46f9f8),this['_suggestionState'][_0x2f1f('0x9')](_0x46f9f8,'notReady'),_0x46f9f8;}[_0x2f1f('0xe6')](_0xddab5d){const _0x226375=_0xddab5d[_0x2f1f('0x24')](':');return{'group':_0x226375[0x0],'type':_0x226375[0x1],'subType':_0x226375[_0x2f1f('0x113')]>=0x5?_0x226375[0x2]:null,'id':_0x226375[_0x2f1f('0x113')]<0x5?_0x226375[0x2]:_0x226375[0x3],'authorId':_0x226375[_0x2f1f('0x113')]<0x5?_0x226375[0x3]:_0x226375[0x4],'markerCount':0x6==_0x226375[_0x2f1f('0x113')]?_0x226375[0x5]:null};}[_0x2f1f('0x74')](_0x1731ab,_0x3442b0,_0x382f0f){const _0x3f0f29=_0x1731ab['getFirstRange'](),_0x3d5459=_0x3f0f29[_0x2f1f('0x125')],_0x221c67=_0x3f0f29[_0x2f1f('0x107')];this[_0x2f1f('0x12e')](_0x1731ab,this['_model'][_0x2f1f('0x7')](_0x3d5459,_0x3442b0));const _0x3eb2b5=_0x505ee6(),_0x2ea5a3=_0x1731ab['creator']['id'],_0x309a05=_0x1731ab[_0x2f1f('0x23')]+(_0x1731ab[_0x2f1f('0xe9')]?':'+_0x1731ab[_0x2f1f('0xe9')]:'');this[_0x2f1f('0x51')]({'id':_0x3eb2b5,'type':_0x309a05,'createdAt':new Date(),'authorId':_0x2ea5a3,'originalSuggestionId':_0x1731ab['id'],'attributes':_0x1731ab[_0x2f1f('0x11b')],'data':_0x1731ab[_0x2f1f('0x106')]}),'formatBlock'==_0x1731ab[_0x2f1f('0x23')]&&(_0x382f0f=this[_0x2f1f('0x5')][_0x2f1f('0xdb')](_0x382f0f[_0x2f1f('0x6c')])),this['_addSuggestionMarker'](_0x309a05,_0x3eb2b5,_0x2ea5a3,this['_model'][_0x2f1f('0x7')](_0x382f0f,_0x221c67));}[_0x2f1f('0xfa')](_0x201a66,_0x1dac1c=null){const _0x9b3228=[],_0x2aed0c=this[_0x2f1f('0x5')]['schema'],_0x375556=this[_0x2f1f('0xcb')]['plugins'][_0x2f1f('0x33')](_0x2f1f('0xff'))['me'];for(const _0x3dce17 of this[_0x2f1f('0xf7')]())if(_0x3dce17[_0x2f1f('0x102')]&&(!_0x1dac1c||_0x3dce17[_0x2f1f('0x23')]==_0x1dac1c))for(const _0x5bdcee of _0x3dce17[_0x2f1f('0x101')]()){const _0x228c06=_0x201a66[_0x2f1f('0x125')][_0x2f1f('0xe3')](_0x5bdcee['end'])||_0x201a66[_0x2f1f('0x107')][_0x2f1f('0xe3')](_0x5bdcee[_0x2f1f('0x125')]);if(_0x228c06||_0x201a66[_0x2f1f('0x6e')](_0x5bdcee)){const _0x559abf=_0x201a66[_0x2f1f('0x11f')](_0x5bdcee)&&bt(_0x2aed0c,_0x5bdcee['start'],_0x201a66),_0x5982ab=_0x5bdcee[_0x2f1f('0x11f')](_0x201a66)&&bt(_0x2aed0c,_0x201a66[_0x2f1f('0x125')],_0x5bdcee);_0x9b3228[_0x2f1f('0x115')]({'suggestion':_0x3dce17,'meta':{'isOwn':_0x375556==_0x3dce17[_0x2f1f('0x10e')],'isNextTo':_0x228c06,'isInsideObject':_0x559abf,'containsRangeInObject':_0x5982ab}});break;}}return _0x9b3228;}[_0x2f1f('0x9d')](_0x486255,_0x28eba9,_0xe32b83,_0x32acf2,_0x186f6f=null){this[_0x2f1f('0x5')][_0x2f1f('0xb')](_0x17ed72=>{let _0x476221=_0x2f1f('0xcd')+_0x486255+':'+_0x28eba9+':'+_0xe32b83;_0x186f6f&&(_0x476221=_0x476221+':'+_0x186f6f),_0x17ed72[_0x2f1f('0x42')](_0x476221,{'range':_0x32acf2,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2f1f('0xe5')](_0x6feeee){const _0x3c11d4=_0x6feeee[_0x2f1f('0x80')],_0xa5e429=_0x6feeee[_0x2f1f('0x84')];_0x6feeee[_0x2f1f('0x80')]=null,null!=_0x3c11d4&&(_0x3c11d4[_0x2f1f('0x84')]=null),_0x6feeee[_0x2f1f('0x84')]=null,null!=_0xa5e429&&(_0xa5e429[_0x2f1f('0x80')]=null),_0x2f1f('0x12c')==this['_suggestionState'][_0x2f1f('0x33')](_0x6feeee)&&(this[_0x2f1f('0x31')][_0x2f1f('0x9')](_0x6feeee,_0x2f1f('0x3e')),this['fire'](_0x2f1f('0x4d'),_0x6feeee,_0x3c11d4,_0xa5e429));}[_0x2f1f('0x51')](_0x89b422){const _0x231a4c=_0x89b422['id'],_0x30a93b=this['addSuggestionData'](_0x89b422);if(this[_0x2f1f('0xc1')]&&this['_adapter'][_0x2f1f('0xcc')]){const _0x508b00=this[_0x2f1f('0xcb')]['plugins']['get'](_0x2f1f('0x55')),_0x1307b9=_0x30a93b['hasComments'],_0x5e2f53=_0x30a93b[_0x2f1f('0xe9')]?_0x30a93b[_0x2f1f('0x23')]+':'+_0x30a93b[_0x2f1f('0xe9')]:_0x30a93b[_0x2f1f('0x23')],_0x452a71=this['editor'][_0x2f1f('0xd2')],_0xbda3fc=_0x508b00[_0x2f1f('0x103')](_0xb694e7(_0x452a71,_0x2f1f('0x2f'))),_0x897392={'id':_0x231a4c,'type':_0x5e2f53,'hasComments':_0x1307b9,'data':_0x89b422[_0x2f1f('0x106')]||null,'originalSuggestionId':_0x89b422[_0x2f1f('0x0')]||null,'attributes':_0x30a93b[_0x2f1f('0x11b')]};this[_0x2f1f('0xc1')][_0x2f1f('0xcc')](_0x897392)[_0x2f1f('0x77')](_0x58c99f=>{_0x30a93b[_0x2f1f('0x122')]=!0x0,_0x508b00[_0x2f1f('0x132')](_0xbda3fc),_0x58c99f&&_0x58c99f['createdAt']&&(this[_0x2f1f('0x45')][_0x2f1f('0x33')](_0x231a4c)[_0x2f1f('0x108')]=_0x58c99f['createdAt']);})['catch'](_0xad3f18=>{throw _0x15cdbe('error-saving-suggestion-data-suggestion-discarded'),this[_0x2f1f('0xcb')][_0x2f1f('0x99')][_0x2f1f('0xae')]({'isUndoable':!0x1},()=>{_0x30a93b[_0x2f1f('0x3c')]();}),_0x30a93b['stopListening'](),this['_suggestions'][_0x2f1f('0x135')](_0x30a93b['id']),this[_0x2f1f('0x31')]['delete'](_0x30a93b),_0xad3f18;});}return _0x30a93b;}[_0x2f1f('0x60')](_0x2d5170,_0x29b7a4){const _0x4e46cd=this[_0x2f1f('0xcb')][_0x2f1f('0x43')]['get'](_0x2f1f('0x55')),_0xba7a8b=this[_0x2f1f('0x45')][_0x2f1f('0x33')](_0x2d5170);if(this[_0x2f1f('0xc1')]&&this[_0x2f1f('0xc1')][_0x2f1f('0x2e')]){if(_0xba7a8b[_0x2f1f('0x122')]){const _0x5916b1=_0x4e46cd['add'](_0xb694e7(this['editor'][_0x2f1f('0xd2')],_0x2f1f('0x2f')));this[_0x2f1f('0xc1')][_0x2f1f('0x2e')](_0x2d5170,_0x29b7a4)[_0x2f1f('0x77')](()=>{_0x4e46cd[_0x2f1f('0x132')](_0x5916b1);});}else _0xba7a8b['on'](_0x2f1f('0x20'),()=>{this['_updateSuggestionData'](_0x2d5170,_0x29b7a4);});}}[_0x2f1f('0xbb')](_0x2660e3){if(!this[_0x2f1f('0xc1')]||!this[_0x2f1f('0xc1')][_0x2f1f('0x49')])throw new _0x572472(_0x2f1f('0x12a'),this);return this['_adapter'][_0x2f1f('0x49')](_0x2660e3);}[_0x2f1f('0x123')](_0x12c8c9){const {id:_0x2e96b9,type:_0x144b1a,subType:_0x4b1235,authorId:_0x2874a1}=this['_splitMarkerName'](_0x12c8c9),_0x98c0b0=this[_0x2f1f('0x45')]['get'](_0x2e96b9)||this[_0x2f1f('0x82')](_0x144b1a,_0x4b1235,_0x2e96b9,_0x2874a1);switch(this[_0x2f1f('0x10b')](_0x98c0b0,_0x144b1a,_0x4b1235,_0x2874a1),this[_0x2f1f('0x31')][_0x2f1f('0x33')](_0x98c0b0)){case _0x2f1f('0xcf'):this[_0x2f1f('0xbb')](_0x2e96b9)['then'](_0x4c1bd8=>{let _0x43cce3=Promise[_0x2f1f('0x10c')]();_0x4c1bd8[_0x2f1f('0xfc')]&&(_0x43cce3=this[_0x2f1f('0x9c')]['fetchCommentThread']({'channelId':this[_0x2f1f('0xcb')][_0x2f1f('0x12d')][_0x2f1f('0x33')](_0x2f1f('0x22')),'threadId':_0x2e96b9})),_0x43cce3[_0x2f1f('0x77')](()=>{this[_0x2f1f('0x10f')](_0x4c1bd8)[_0x2f1f('0x122')]=!0x0;});}),this[_0x2f1f('0x31')][_0x2f1f('0x9')](_0x98c0b0,_0x2f1f('0x5c'));break;case _0x2f1f('0x3e'):this['_updateSuggestionData'](_0x2e96b9,{'state':_0x2f1f('0x62')});case'dataReady':this[_0x2f1f('0x31')][_0x2f1f('0x9')](_0x98c0b0,_0x2f1f('0x12c')),this[_0x2f1f('0xf3')](_0x2f1f('0xe1'),_0x98c0b0);break;case _0x2f1f('0x12c'):this[_0x2f1f('0xf3')](_0x2f1f('0xb8'),_0x98c0b0);}return _0x98c0b0[_0x2f1f('0xf8')](_0x12c8c9),_0x98c0b0;}[_0x2f1f('0x67')](_0x521757){const _0x2466cb=Array[_0x2f1f('0xa4')](_0x521757)[_0x2f1f('0x110')](_0x342c1a=>!_0x342c1a[_0x2f1f('0x79')]),_0x1a7201=this[_0x2f1f('0xf7')]({'skipNotAttached':!0x0})[_0x2f1f('0x110')](_0x11f3ea=>!_0x11f3ea[_0x2f1f('0x79')]),_0x4c44cc=_0x1a7201['filter'](_0x545552=>!_0x521757[_0x2f1f('0x89')](_0x545552)),_0x2d45ba=new Map(_0x1a7201[_0x2f1f('0xa0')](_0x52f43b=>[_0x52f43b,this['_suggestionFactory'][_0x2f1f('0x29')](_0x52f43b[_0x2f1f('0x23')],_0x52f43b[_0x2f1f('0xe9')],_0x2f1f('0x54'))])),_0xee6dae=new Map(_0x1a7201['map'](_0x4b5e4e=>[_0x4b5e4e,_0x4b5e4e['getFirstRange']()])),_0x459a47=new Set(),_0x389dc0=new Set();for(let _0x8814f1=0x0;_0x8814f1<_0x2466cb[_0x2f1f('0x113')];_0x8814f1++)_0x5337e4(_0x2466cb[_0x8814f1],_0x2466cb,_0x8814f1+0x1);for(let _0x4e7355=0x0;_0x4e7355<_0x2466cb['length'];_0x4e7355++)_0x5337e4(_0x2466cb[_0x4e7355],_0x4c44cc,0x0);for(let _0x59f410=0x0;_0x59f410<_0x2466cb[_0x2f1f('0x113')];_0x59f410++){const _0x282695=_0x2466cb[_0x59f410];!_0x389dc0[_0x2f1f('0x89')](_0x282695)&&_0x282695[_0x2f1f('0x80')]&&(_0x282695[_0x2f1f('0x80')]['next']===_0x282695&&(_0x282695[_0x2f1f('0x80')][_0x2f1f('0x84')]=null),_0x282695[_0x2f1f('0x80')]=null),!_0x459a47['has'](_0x282695)&&_0x282695[_0x2f1f('0x84')]&&(_0x282695[_0x2f1f('0x84')][_0x2f1f('0x80')]===_0x282695&&(_0x282695[_0x2f1f('0x84')][_0x2f1f('0x80')]=null),_0x282695[_0x2f1f('0x84')]=null);}function _0x5337e4(_0x34aaee,_0x101f83,_0x595009){for(let _0x13b2f9=_0x595009;_0x13b2f9<_0x101f83['length'];_0x13b2f9++){const _0xae2457=_0x184067(_0x34aaee,_0x101f83[_0x13b2f9]);_0xae2457&&(_0xae2457[0x0]['next']=_0xae2457[0x1],_0xae2457[0x1]['previous']=_0xae2457[0x0],_0x459a47[_0x2f1f('0x103')](_0xae2457[0x0]),_0x389dc0['add'](_0xae2457[0x1]));}}function _0x184067(_0x571f53,_0x98db8f){if(_0x571f53[_0x2f1f('0x10e')]['id']!==_0x98db8f['author']['id'])return null;const _0x181dd5=_0x2d45ba['get'](_0x571f53)(_0x571f53,_0x98db8f,_0xee6dae[_0x2f1f('0x33')](_0x571f53),_0xee6dae[_0x2f1f('0x33')](_0x98db8f));if(!_0x181dd5)return null;return _0x2d45ba[_0x2f1f('0x33')](_0x98db8f)(_0x571f53,_0x98db8f,_0xee6dae[_0x2f1f('0x33')](_0x571f53),_0xee6dae[_0x2f1f('0x33')](_0x98db8f))?_0x181dd5[0x1][_0x2f1f('0x4f')]&&_0x181dd5[0x1][_0x2f1f('0x4f')][_0x2f1f('0x113')]?null:_0x181dd5:null;}}[_0x2f1f('0x11e')](_0x183d64){const _0x956a5b=Array['from'](_0x183d64),_0x3c7d3c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x24cafb=_0x3c7d3c['filter'](_0x163272=>!_0x183d64[_0x2f1f('0x89')](_0x163272)),_0x222ebe=new Map(_0x956a5b[_0x2f1f('0xa0')](_0x1c7d65=>[_0x1c7d65,this[_0x2f1f('0x38')][_0x2f1f('0x29')](_0x1c7d65[_0x2f1f('0x23')],_0x1c7d65[_0x2f1f('0xe9')],'join')])),_0x3866d0=new Map(_0x3c7d3c[_0x2f1f('0xa0')](_0x3fadd2=>[_0x3fadd2,_0x3fadd2[_0x2f1f('0x101')]()]));for(let _0x1a1b99=0x0;_0x1a1b99<_0x956a5b[_0x2f1f('0x113')];_0x1a1b99++){if(_0x26655a(this,_0x956a5b[_0x1a1b99],_0x956a5b,_0x1a1b99+0x1))return!0x0;}for(let _0x48f404=0x0;_0x48f404<_0x956a5b[_0x2f1f('0x113')];_0x48f404++){if(_0x26655a(this,_0x956a5b[_0x48f404],_0x24cafb,0x0))return!0x0;}return!0x1;function _0x26655a(_0x401ced,_0x27925a,_0x43b0a3,_0x513eb2){for(let _0x1088ac=_0x513eb2;_0x1088ac<_0x43b0a3[_0x2f1f('0x113')];_0x1088ac++){const _0x51edc0=_0x43b0a3[_0x1088ac];if(_0x51edc0['type']!==_0x27925a[_0x2f1f('0x23')]||_0x51edc0['author']['id']!==_0x27925a['author']['id']||_0x51edc0[_0x2f1f('0xe9')]!==_0x27925a['subType'])continue;const _0x572e24=_0x222ebe[_0x2f1f('0x33')](_0x27925a),_0x3a269b=_0x3866d0[_0x2f1f('0x33')](_0x27925a),_0x29e98e=_0x3866d0[_0x2f1f('0x33')](_0x51edc0),_0x30bfca=_0x27925a[_0x2f1f('0x4f')]&&_0x27925a['commentThread']['length'],_0x5c3163=_0x51edc0[_0x2f1f('0x4f')]&&_0x51edc0['commentThread']['length'];if(!_0x30bfca&&_0x572e24(_0x29e98e,_0x3a269b))return _0x401ced[_0x2f1f('0x71')](_0x51edc0,_0x27925a),_0x3866d0['delete'](_0x27925a),!0x0;if(!_0x5c3163&&_0x572e24(_0x3a269b,_0x29e98e))return _0x401ced[_0x2f1f('0x71')](_0x27925a,_0x51edc0),_0x3866d0[_0x2f1f('0x135')](_0x51edc0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3fbd16,_0xaa939){if(_0x3fbd16['isMultiRange'])for(const _0x523be6 of _0xaa939[_0x2f1f('0x101')]())_0x3fbd16[_0x2f1f('0x1e')](_0x523be6);else{const _0x5b52d9=_0xaa939[_0x2f1f('0x9f')]()[_0x2f1f('0x107')];this[_0x2f1f('0x12e')](_0x3fbd16,this[_0x2f1f('0x5')]['createRange'](_0x3fbd16[_0x2f1f('0x9f')]()['start'],_0x5b52d9));}_0xaa939[_0x2f1f('0xbf')]();}}_0x1437bd(p,_0x32754b);class yt{constructor(_0x13c7ce){this[_0x2f1f('0xc')]=_0x13c7ce,this['_model']=_0x13c7ce[_0x2f1f('0x99')],this[_0x2f1f('0x86')]=new Map(),this[_0x2f1f('0x37')]=new Map(),this[_0x2f1f('0x127')]();}['buildSuggestion'](_0x4d4ffa,_0x1803c4,_0x8abb27,_0x35b8ef,_0xa9587e,_0x4bcd85){return new _0x6a3c58(this[_0x2f1f('0x5')],{'type':_0x4d4ffa,'subType':_0x1803c4,'id':_0x8abb27,'author':_0x35b8ef,'creator':_0x35b8ef,'attributes':_0xa9587e,'onAttributesChange':_0x4bcd85,'onAccept':(..._0x40cc51)=>this[_0x2f1f('0x29')](_0x4d4ffa,_0x1803c4,_0x2f1f('0x48'))(..._0x40cc51),'onDiscard':(..._0x1a4d08)=>this['getSuggestionCallback'](_0x4d4ffa,_0x1803c4,_0x2f1f('0x3c'))(..._0x1a4d08)});}[_0x2f1f('0x7d')](_0x43e87d,_0x38f9e7,_0x2f1ba6,_0x468148){const _0x7fb12a=_0x43e87d+':'+_0x38f9e7+':'+_0x2f1ba6;this['_customCallbacks'][_0x2f1f('0x9')](_0x7fb12a,_0x468148);}['getSuggestionCallback'](_0x449dab,_0x2fd9b8,_0x2da6ba){const _0x48eed1=_0x449dab+':'+_0x2fd9b8+':'+_0x2da6ba;return this['_customCallbacks'][_0x2f1f('0x33')](_0x48eed1)||this['_defaultCallbacks']['get'](_0x449dab+':'+_0x2da6ba);}[_0x2f1f('0x127')](){const _0x2bcbef=()=>{},_0x11c535=_0x4f3281=>{_0x4f3281[_0x2f1f('0x7c')]((_0x1157a4,_0x15d9bd)=>_0x1157a4['start'][_0x2f1f('0x91')](_0x15d9bd['start'])?0x1:-0x1),this[_0x2f1f('0x5')][_0x2f1f('0xb')](_0x1769c7=>{for(const _0x7fe13d of _0x4f3281){let _0x33764f;_0x33764f=_0x7fe13d['end'][_0x2f1f('0x6')]&&_0x7fe13d[_0x2f1f('0x107')][_0x2f1f('0x6c')]==_0x7fe13d[_0x2f1f('0x125')][_0x2f1f('0x78')]?_0x1769c7['createSelection'](_0x7fe13d[_0x2f1f('0x125')][_0x2f1f('0x78')],'on'):_0x1769c7[_0x2f1f('0x5e')](_0x7fe13d),this[_0x2f1f('0x5')][_0x2f1f('0x7b')](_0x33764f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3fc97f=(_0x189863,_0x2848c9)=>{this['_model']['change'](_0x2ebcaf=>{const {commandName:_0x51d9c1,commandParams:_0x11091d=[]}=_0x2848c9,_0x3aee94=_0x189863[0x0];if('$graveyard'==_0x3aee94[_0x2f1f('0x4b')]['rootName'])return;const _0x3b8e9b=Array[_0x2f1f('0xa4')](this[_0x2f1f('0x5')][_0x2f1f('0xe2')]['selection']['getRanges']())[_0x2f1f('0xa0')](_0x427845=>_0x350fbe[_0x2f1f('0x68')](_0x427845));St(_0x3aee94)?_0x2ebcaf[_0x2f1f('0xf5')](this[_0x2f1f('0x5')]['createRange'](_0x3aee94['end'])):_0x2ebcaf[_0x2f1f('0xf5')](_0x3aee94);for(const _0xd76977 of this[_0x2f1f('0xc')]['commands'][_0x2f1f('0x7f')]())_0xd76977[_0x2f1f('0x9a')]();_0x11091d[_0x2f1f('0x115')]({'forceDefaultExecution':!0x0}),this[_0x2f1f('0xc')]['execute'](_0x51d9c1,..._0x11091d);const _0x1f8ae7=_0x3b8e9b[_0x2f1f('0x110')](_0x2fb9e9=>_0x2f1f('0xb5')!=_0x2fb9e9[_0x2f1f('0x4b')][_0x2f1f('0xbe')]);_0x1f8ae7[_0x2f1f('0x113')]>0x0&&_0x2ebcaf[_0x2f1f('0xf5')](_0x1f8ae7);for(const _0x4c6ead of _0x3b8e9b)_0x4c6ead['detach']();});},_0x2d0407=(_0x28c178,_0xf94758)=>0x1==_0x28c178['length']&&0x1==_0xf94758[_0x2f1f('0x113')]&&_0x28c178[0x0][_0x2f1f('0x107')][_0x2f1f('0xe3')](_0xf94758[0x0][_0x2f1f('0x125')]),_0x12382b=(_0x4879e0,_0x2c08eb,_0x484c07,_0x185e26)=>Ct(_0x4879e0,_0x2c08eb,_0x484c07,_0x185e26,this[_0x2f1f('0x5')])?[_0x4879e0,_0x2c08eb]:Ct(_0x2c08eb,_0x4879e0,_0x185e26,_0x484c07,this['_model'])?[_0x2c08eb,_0x4879e0]:null;this[_0x2f1f('0x37')][_0x2f1f('0x9')](_0x2f1f('0x88'),_0x2bcbef),this[_0x2f1f('0x37')][_0x2f1f('0x9')]('insertion:discard',_0x11c535),this['_defaultCallbacks'][_0x2f1f('0x9')](_0x2f1f('0x17'),_0x2d0407),this['_defaultCallbacks'][_0x2f1f('0x9')](_0x2f1f('0x112'),_0x12382b),this[_0x2f1f('0x37')][_0x2f1f('0x9')]('deletion:accept',_0x11c535),this[_0x2f1f('0x37')][_0x2f1f('0x9')](_0x2f1f('0xeb'),_0x2bcbef),this[_0x2f1f('0x37')][_0x2f1f('0x9')](_0x2f1f('0x1d'),_0x2d0407),this[_0x2f1f('0x37')][_0x2f1f('0x9')](_0x2f1f('0x6b'),_0x12382b),this[_0x2f1f('0x37')][_0x2f1f('0x9')]('formatInline:accept',_0x3fc97f),this[_0x2f1f('0x37')][_0x2f1f('0x9')]('formatInline:discard',_0x2bcbef),this[_0x2f1f('0x37')][_0x2f1f('0x9')](_0x2f1f('0x16'),_0x2d0407),this[_0x2f1f('0x37')][_0x2f1f('0x9')]('formatInline:chain',_0x2bcbef),this['_defaultCallbacks'][_0x2f1f('0x9')](_0x2f1f('0x4a'),_0x3fc97f),this['_defaultCallbacks'][_0x2f1f('0x9')](_0x2f1f('0x8a'),_0x2bcbef),this[_0x2f1f('0x37')][_0x2f1f('0x9')](_0x2f1f('0xce'),_0x2d0407),this[_0x2f1f('0x37')]['set'](_0x2f1f('0x4c'),_0x2bcbef);}}function bt(_0xd0786e,_0x471b72,_0x4a5f7b){for(const _0x319bc0 of _0x471b72[_0x2f1f('0x6c')][_0x2f1f('0x116')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x319bc0[_0x2f1f('0x4b')]==_0x319bc0)return!0x1;if(!_0x4a5f7b[_0x2f1f('0x3d')](_0x319bc0))return!0x1;if(_0xd0786e[_0x2f1f('0x3f')](_0x319bc0)||_0xd0786e[_0x2f1f('0x95')](_0x319bc0))return!0x0;}}function St(_0x1dfd28){return _0x1dfd28[_0x2f1f('0x107')][_0x2f1f('0x6c')]==_0x1dfd28['start'][_0x2f1f('0x78')]&&_0x1dfd28['end']['isAtStart'];}function It(_0x2d91eb,_0x16a3f2,_0xd09a5f,_0x2b3ca7){const _0xb9b95e=_0xd2b2a4=>!_0xd2b2a4[_0x2f1f('0xbd')]['is'](_0x2f1f('0x26'))&&!_0x2b3ca7[_0x2f1f('0x3f')](_0xd2b2a4[_0x2f1f('0xbd')]),_0x5c86e7=_0x2d91eb[_0x2f1f('0x125')][_0x2f1f('0x1c')](_0xb9b95e),_0x361245=_0x2d91eb[_0x2f1f('0x107')]['getLastMatchingPosition'](_0xb9b95e,{'direction':_0x2f1f('0xe0')});return(!_0x2d91eb[_0x2f1f('0x125')][_0x2f1f('0xe3')](_0x5c86e7)||!_0x2d91eb[_0x2f1f('0x107')][_0x2f1f('0xe3')](_0x361245))&&(_0x5c86e7[_0x2f1f('0x91')](_0x361245)?_0xd09a5f['updateMarker'](_0x16a3f2,{'range':_0xd09a5f[_0x2f1f('0x7')](_0x5c86e7,_0x361245)}):_0xd09a5f['removeMarker'](_0x16a3f2),!0x0);}function vt(_0x37772e){return _0x48a2b9(_0x37772e);}function At(_0x394ea0){const _0x47793d=_0x394ea0[_0x2f1f('0x125')][_0x2f1f('0x78')];return _0x47793d&&_0x47793d['is']('element');}function Dt(_0x172e91,_0x4f40b9){const _0x3556bd=_0x4f40b9[_0x2f1f('0x12b')]['isObject'](_0x172e91)||_0x4f40b9[_0x2f1f('0x12b')]['isSelectable'](_0x172e91);return _0x4f40b9['createRange'](_0x4f40b9['createPositionAt'](_0x172e91,_0x2f1f('0xd')),_0x3556bd?_0x4f40b9[_0x2f1f('0xde')](_0x172e91):_0x4f40b9['createPositionAt'](_0x172e91,_0x2f1f('0x107')));}function Ct(_0x2ba440,_0x2311a4,_0x28d4c2,_0x3d9aaa,_0x55ab86){if(_0x28d4c2[_0x2f1f('0x107')][_0x2f1f('0xe3')](_0x3d9aaa['start']))return!0x0;if(_0x2ba440[_0x2f1f('0x23')]!=_0x2311a4[_0x2f1f('0x23')])return!0x1;if(!_0x28d4c2[_0x2f1f('0x107')][_0x2f1f('0xef')](_0x3d9aaa[_0x2f1f('0x125')]))return!0x1;const _0x74ea91=_0x55ab86[_0x2f1f('0x7')](_0x28d4c2[_0x2f1f('0x107')],_0x3d9aaa[_0x2f1f('0x125')])[_0x2f1f('0xd7')]();for(const _0x2803c4 of _0x74ea91)if(['elementStart',_0x2f1f('0x121')][_0x2f1f('0x3b')](_0x2803c4[_0x2f1f('0x23')])&&_0x55ab86['schema'][_0x2f1f('0x95')](_0x2803c4[_0x2f1f('0xbd')]))return!0x1;return!0x0;}
23
+ const _0x4bd4=['data','moveTargetPosition','type','_handleNewSuggestionMarker','dataToMarker','commandName','catch','trackChanges.trackFormatChanges','skipNestingCheck','parent','_getAuthorFromId','has','isOwn','markDeletion','markInsertion','highest','formatInline:','schema','createPositionBefore','execute','showSuggestionHighlights','addComment','discardAllSuggestions','newRange','_updateSuggestionData','external:','containsRangeInObject','_addSuggestionMarker','isCollapsed','removeMarkers','isRemovable','addMarkerName','_suggestions','name','split','addSuggestionData','previous','clear','isInContent','createPositionAt','set','_joinWithAdjacentSuggestions','acceptSelectedSuggestions','collaboration.channelId','refresh','_defaultCallbacks','getChangedMarkers','CommentsRepository','isEqual','addMarker:suggestion:formatBlock','getMultiRangeId','init','markerReady','open','position','commands','substr','isNextTo','addRange','subType','listenTo','_joinSuggestions','deletion:accept','creator','_rangeIsInLocalUserInsertion','deletion:chain','containsPosition','isBlock','author','activeMarkers','addSuggestion','formatInline:accept','values','formatBlock:chain','containsRange','formatBlock:discard','_trackFormatChanges','_commentsRepository','markerNameToElements','isSelectable','ck-suggestion-marker','toViewElement','removed','for','before','root','getCustomProperty','change:data','discardSelectedSuggestions','splitPosition','setTo','upcast','join','oldRange','insertion:chain','howMany','track-changes-adapter-already-set','requires','deleteContent','marker-count','trackChangesCommand','isInsideObject','isAtStart','textProxy','discard','change:activeMarkers','formatBlock','stop','elementToElement','delete','_descriptionFactory','splice','data-suggestion','sort','update:suggestion','markerToHighlight','detach','markers','nodeAfter','$graveyard','isUndo','addClass','then','rootName','_splitMarkerName','removeComment','registerCustomCallback','commentThread','getAttribute','getAllAdjacentSuggestions','markInlineFormat','insertion:','deletion','enableReadOnlyMode','get','unbind','_setSuggestionRange','_saved','getItems','differ','_customCallbacks','track-changes-suggestion-data-mismatch','getDifference','addUser','_createSuggestion','_findSuggestions','unbindElementFromMarkerName','isBefore','PendingActions','multi','editingDowncast','getIntersection','enableCommand','hasComments','length','document','insertion','nodeBefore','high','_addThreadToSuggestion','_cutOutSuggestionMarker','buildSuggestion','attributes','deletion:','ready','discardSuggestion','size','toJSON','_onDiscard','from','suggestion:','accept','insertion:accept','getSuggestions','updateSuggestion','end','getNearestSelectionRange','after','adapter','rethrowUnexpectedError','backward','_adapter','getFirstMarker','next','add','updateMarker','conversion','isAtEnd','notReady','push','start','_isForcedDefaultExecutionBlock','isTouching','_removeSuggestion','isObject','documentSelection','Users','change','ck-suggestion-marker--active','error-saving-suggestion-data-suggestion-discarded','isAfter','createRange','map','value','acceptSuggestion','low','originalSuggestionId','addHighlight','markMultiRangeDeletion','change:_saved','getShiftedBy','_getSuggestionData','containerElement','removeMarker','_checkSuggestionCorrectness','getSuggestionCallback','pluginName','item','lowest','_refreshSuggestionsChain','trackChanges','PENDING_ACTION_SUGGESTION','dataDowncast','model','createSelection','remove','accepted','formatGroupId','writer','selection','plugins','_registerDefaultCallbacks','fromCharCode','_suggestionFactory','insertion:join','track-changes-suggestion-not-found','createElement','suggestionChanged','consumable','insert','$marker','_setSuggestionData','mapper','formatBlock:accept','_model','getFirstRange','formatInline','createPositionAfter','getSuggestion','locale','getWalker','suggestionUnloaded','batch','acceptAllSuggestions','multipleBlocks','editing','fire','options','isIntersectingWithRange','config','getMarkers','editor','insertContent','isMultiRange','addMarker','authoredAt','@external','includes','formatBlock:','consume','markerName','applyOperation','TrackChangesEditing','createdAt','_enabledCommands','define','some','formatInline:join','setSelection','filter','markMultiRangeBlockFormat','getRanges','element','track-changes-user-not-found','isLimit','range','markMultiRangeInsertion','_editor','ck-suggestion-marker-formatBlock','formatBlock:join','markBlockFormat','dataReady','suggestion','createRangeIn','elementStart','_getExternalAuthor','forceDefaultExecution','every','_suggestionState','track-changes-command-not-found','getLastMatchingPosition','suggestionLoaded','ck-suggestion-marker-','removeClass','insertion:discard'];(function(_0x2a99ef,_0x4bd409){const _0x43a457=function(_0x5b6421){while(--_0x5b6421){_0x2a99ef['push'](_0x2a99ef['shift']());}};_0x43a457(++_0x4bd409);}(_0x4bd4,0x117));const _0x43a4=function(_0x2a99ef,_0x4bd409){_0x2a99ef=_0x2a99ef-0x0;let _0x43a457=_0x4bd4[_0x2a99ef];return _0x43a457;};import{Plugin as _0xe028a3,PendingActions as _0x247a17}from'ckeditor5/src/core';import{LiveRange as _0xee9b89}from'ckeditor5/src/engine';import{CKEditorError as _0x3cc697,uid as _0x33d4c9,priorities as _0x525954,EmitterMixin as _0x3c7c40,mix as _0x2293cc,logWarning as _0x1bc5f3}from'ckeditor5/src/utils';import{toWidget as _0x18411d}from'ckeditor5/src/widget';import{Users as _0x4e8ee8,hashObject as _0x2f2d64}from'ckeditor5-collaboration/src/collaboration-core';import _0x948b62 from'./commands/trackchangescommand';import _0x39aa4b from'./commands/acceptsuggestioncommand';import _0x145189 from'./commands/discardsuggestioncommand';import _0x1b767c from'./commands/executeonallsuggestionscommand';import _0x294a26 from'./commands/executeonselectedsuggestionscommand';import _0x34bd29 from'./suggestion';import _0x4f0515 from'./suggestiondescriptionfactory';import _0x3548fa from'./integrations/alignment';import _0x3e539f from'./integrations/basicstyles';import _0x49251a from'./integrations/blockquote';import _0x47c215 from'./integrations/ckbox';import _0x25f34b from'./integrations/codeblock';import _0x35ddd2 from'./integrations/comments';import _0x3a5275 from'./integrations/deletecommand';import _0x57c114 from'./integrations/documentlist';import _0xedb12b from'./integrations/entercommand';import _0x166143 from'./integrations/findandreplace';import _0x4bcd8b from'./integrations/font';import _0x10be2b from'./integrations/heading';import _0x5cb53f from'./integrations/highlight';import _0x358675 from'./integrations/horizontalline';import _0x2d94ee from'./integrations/htmlembed';import _0x2917e3 from'./integrations/image';import _0x3821b7 from'./integrations/imagereplace';import _0x3b6649 from'./integrations/importword';import _0x2c5a11 from'./integrations/indent';import _0x4bfa4f from'./integrations/inputcommand';import _0x3cacc9 from'./integrations/link';import _0x882740 from'./integrations/list';import _0x228030 from'./integrations/listproperties';import _0x15b779 from'./integrations/mediaembed';import _0x1234b3 from'./integrations/mention';import _0x5c1096 from'./integrations/pagebreak';import _0x26f064 from'./integrations/paragraph';import _0x418204 from'./integrations/removeformat';import _0x56b96d from'./integrations/restrictededitingmode';import _0x3007a1 from'./integrations/shiftentercommand';import _0x4738b9 from'./integrations/standardeditingmode';import _0xbadf85 from'./integrations/style';import _0xd2dad6 from'./integrations/table';import _0x2161ac from'./integrations/tablemergesplit';import _0x49e048 from'./integrations/tableheadings';import _0x1846b2 from'./integrations/tableclipboard';import _0x4323f5 from'./integrations/tablecolumnresize';import _0x595031 from'./integrations/title';import _0x3abe7a from'./integrations/undo';import{getTranslation as _0x506731}from'./utils/common-translations';import _0x5cac33 from'./integrations/tablecaption';import _0x5973b0 from'./integrations/documentlistproperties';import _0x1e1d5a from'./integrations/tableproperties';export default class p extends _0xe028a3{static get[_0x43a4('0x7b')](){return[_0x43a4('0x49'),_0x4e8ee8,_0x247a17,_0x3548fa,_0x3e539f,_0x49251a,_0x47c215,_0x25f34b,_0x35ddd2,_0x3a5275,_0x57c114,_0x5973b0,_0xedb12b,_0x166143,_0x4bcd8b,_0x10be2b,_0x5cb53f,_0x358675,_0x2d94ee,_0x2917e3,_0x3821b7,_0x3b6649,_0x2c5a11,_0x4bfa4f,_0x3cacc9,_0x882740,_0x228030,_0x15b779,_0x1234b3,_0x5c1096,_0x26f064,_0x418204,_0x56b96d,_0x3007a1,_0x4738b9,_0xbadf85,_0xd2dad6,_0x2161ac,_0x49e048,_0x5cac33,_0x1846b2,_0x4323f5,_0x1e1d5a,_0x595031,_0x3abe7a];}static get[_0x43a4('0xf2')](){return _0x43a4('0x12a');}constructor(_0x4ac1a6){function _0x365c2b(_0x296b93){return _0x296b93[_0x43a4('0xe4')](_0x4f9a69=>String[_0x43a4('0x102')](_0x4f9a69))[_0x43a4('0x76')]('');}super(_0x4ac1a6),this[_0x43a4('0x42')](_0x43a4('0x5f'),[]),this['on'](_0x43a4('0x83'),(_0x22e4c8,_0x3db767,_0x42e081,_0x17010b)=>{this[_0x43a4('0x10e')][_0x43a4('0xdf')](()=>{for(const _0x502074 of[..._0x17010b,..._0x42e081])this[_0x43a4('0x10e')][_0x43a4('0x8f')][_0x43a4('0x25')](_0x502074)&&_0x4ac1a6[_0x43a4('0x119')]['reconvertMarker'](_0x502074);});}),this[_0x43a4('0x88')]=new _0x4f0515(this[_0x43a4('0x11f')][_0x43a4('0xf9')][_0x43a4('0x2b')],this[_0x43a4('0x11f')]['locale']),this[_0x43a4('0xcf')]=null,this[_0x43a4('0x103')]=new Dt(this[_0x43a4('0x11f')]),this[_0x43a4('0x3a')]=new Map(),this[_0x43a4('0x67')]=_0x4ac1a6['plugins'][_0x43a4('0xa0')](_0x43a4('0x49')),this[_0x43a4('0x12c')]=new Set(),this[_0x43a4('0x10e')]=this[_0x43a4('0x11f')]['model'],this[_0x43a4('0x13')]=new WeakMap(),this[_0x43a4('0xd9')]=!0x1,_0x4ac1a6[_0x43a4('0x11d')][_0x43a4('0x12d')](_0x43a4('0x21'),!0x0),this[_0x43a4('0x66')]=_0x4ac1a6[_0x43a4('0x11d')]['get'](_0x43a4('0x21')),this[_0x365c2b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x365c2b([0x34,0x30,0x34,0x36,0x30,0x32,0x35,0x30]);}[_0x43a4('0x4d')](){const _0x3f592c=this[_0x43a4('0x11f')];_0x3f592c['conversion'][_0x43a4('0x6d')]('editingDowncast')[_0x43a4('0x8d')]({'model':_0x43a4('0xd'),'view':_0x584264=>{const {id:_0x4afea0,type:_0x3242ee}=this[_0x43a4('0x96')](_0x584264['markerName']),_0x31a2a3=[_0x43a4('0x6a'),_0x43a4('0x17')+_0x3242ee];let _0x242d5f=0xbb8;return this[_0x43a4('0x5f')][_0x43a4('0x125')](_0x584264[_0x43a4('0x128')])&&(_0x31a2a3[_0x43a4('0xd7')]('ck-suggestion-marker--active'),_0x242d5f=0xbc2),_0x43a4('0x9e')==_0x3242ee&&(_0x242d5f+=0x5),{'classes':_0x31a2a3,'attributes':{'data-suggestion':_0x4afea0},'priority':_0x242d5f};}}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')](_0x43a4('0xf8'))['add'](_0x408d52=>{_0x408d52['on']('addMarker:suggestion',(_0x119691,_0x4fc976,_0x393317)=>{if(!_0x393317[_0x43a4('0x11b')][_0x43a4('0x2e')])return;const _0x4843a3=_0x4fc976[_0x43a4('0xf3')];if(!_0x4843a3)return;const _0x5d874e=_0x393317[_0x43a4('0x10c')][_0x43a4('0x6b')](_0x4843a3);_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x2b')][_0x43a4('0xdc')](_0x4843a3)&&_0x5d874e&&!_0x5d874e[_0x43a4('0x70')]('widget')&&_0x5d874e['is'](_0x43a4('0xee'))&&_0x18411d(_0x5d874e,_0x393317[_0x43a4('0xfe')]);},{'priority':'high'});}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')]('dataDowncast')[_0x43a4('0x8d')]({'model':_0x43a4('0xd'),'view':(_0x261147,_0x206daf)=>{if(!_0x206daf['options'][_0x43a4('0x2e')])return null;const {type:_0xd1ca10}=this[_0x43a4('0x96')](_0x261147[_0x43a4('0x128')]);return{'classes':[_0x43a4('0x6a'),'ck-suggestion-marker-'+_0xd1ca10],'priority':0xbb8};}});const _0x3afa9b=({showActiveMarkers:_0xfbfad0=!0x0}={})=>(_0xf452,_0x2266a9,_0x771cb6)=>{if(!_0x2266a9[_0x43a4('0xf3')])return;if(_0x2266a9['item']['is']('selection'))return void _0x771cb6[_0x43a4('0x108')]['consume'](_0x2266a9[_0x43a4('0xf3')],_0xf452['name']);const _0x13a204=_0x771cb6[_0x43a4('0x10c')][_0x43a4('0x6b')](_0x2266a9[_0x43a4('0xf3')]);if(!(_0x2266a9[_0x43a4('0xf3')]['is'](_0x43a4('0x3'))&&_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x2b')]['isBlock'](_0x2266a9['item'])&&!_0x13a204['getCustomProperty'](_0x43a4('0xe9'))))return;const {id:_0x397789}=this[_0x43a4('0x96')](_0x2266a9[_0x43a4('0x128')]);_0x771cb6[_0x43a4('0xfe')][_0x43a4('0x93')]([_0x43a4('0x6a'),_0x43a4('0x9')],_0x13a204),_0x771cb6[_0x43a4('0xfe')]['setAttribute'](_0x43a4('0x8a'),_0x397789,_0x13a204),_0x771cb6[_0x43a4('0x10c')]['bindElementToMarker'](_0x13a204,_0x2266a9[_0x43a4('0x128')]),_0xfbfad0&&(this[_0x43a4('0x5f')][_0x43a4('0x125')](_0x2266a9[_0x43a4('0x128')])?_0x771cb6[_0x43a4('0xfe')]['addClass'](_0x43a4('0xe0'),_0x13a204):_0x771cb6[_0x43a4('0xfe')][_0x43a4('0x18')](_0x43a4('0xe0'),_0x13a204));for(const _0x890ae of _0x3f592c[_0x43a4('0xf9')][_0x43a4('0xe')](_0x2266a9['item'])[_0x43a4('0xa4')]())_0x771cb6[_0x43a4('0x108')][_0x43a4('0x127')](_0x890ae,_0xf452['name']);_0x771cb6['consumable'][_0x43a4('0x127')](_0x2266a9[_0x43a4('0xf3')],_0xf452[_0x43a4('0x3b')]);};_0x3f592c['conversion'][_0x43a4('0x6d')](_0x43a4('0xf8'))[_0x43a4('0xd2')](_0x159a89=>{_0x159a89['on'](_0x43a4('0x4b'),(_0x34af95,_0x57dc8a,_0x412f20)=>{_0x412f20[_0x43a4('0x11b')]['showSuggestionHighlights']&&_0x3afa9b({'showActiveMarkers':!0x1})(_0x34af95,_0x57dc8a,_0x412f20);},{'priority':_0x43a4('0x29')});}),_0x3f592c['conversion'][_0x43a4('0x6d')](_0x43a4('0xf8'))['markerToData']({'model':'suggestion','view':(_0x435ee0,_0x432ab5)=>_0x432ab5[_0x43a4('0x11b')][_0x43a4('0x2e')]?null:{'group':'suggestion','name':_0x435ee0[_0x43a4('0x52')](_0x43a4('0xd')['length']+0x1)}}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')](_0x43a4('0x75'))[_0x43a4('0x86')]({'view':{'name':_0x43a4('0xd'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x354711,{writer:_0x4c2ce6})=>{let _0x596797=_0x43a4('0xc4')+_0x354711[_0x43a4('0x9a')]('suggestion-type')+':'+_0x354711[_0x43a4('0x9a')]('id');return _0x354711[_0x43a4('0x9a')]('marker-count')&&(_0x596797+=':'+_0x354711['getAttribute'](_0x43a4('0x7d'))),_0x4c2ce6[_0x43a4('0x106')](_0x43a4('0x10a'),{'data-name':_0x596797});}}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')](_0x43a4('0x75'))[_0x43a4('0x1e')]({'view':_0x43a4('0xd')}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')](_0x43a4('0xb0'))[_0x43a4('0xd2')](_0x36efc9=>{_0x36efc9['on'](_0x43a4('0x4b'),_0x3afa9b(),{'priority':'high'});}),_0x3f592c[_0x43a4('0xd4')][_0x43a4('0x6d')]('editingDowncast')[_0x43a4('0xd2')](_0x21bf34=>{_0x21bf34['on']('removeMarker:suggestion:formatBlock',(_0x16a06b,_0x298238,_0x43f6c4)=>{const _0x2481e8=_0x43f6c4['mapper'][_0x43a4('0x68')](_0x298238[_0x43a4('0x128')]);if(_0x2481e8)for(const _0x2bd26b of _0x2481e8)_0x2bd26b[_0x43a4('0x70')]('addHighlight')||(_0x43f6c4[_0x43a4('0xfe')][_0x43a4('0x18')]([_0x43a4('0x6a'),_0x43a4('0x9'),'ck-suggestion-marker--active'],_0x2bd26b),_0x43f6c4[_0x43a4('0xfe')]['removeAttribute'](_0x43a4('0x8a'),_0x2bd26b),_0x43f6c4['mapper'][_0x43a4('0xac')](_0x2bd26b,_0x298238[_0x43a4('0x128')]));},{'priority':'high'});}),_0x3f592c[_0x43a4('0xf9')][_0x43a4('0xb5')]['registerPostFixer'](_0x4164f5=>{let _0x54cfd9=!0x1;const _0x2659e2=Array[_0x43a4('0xc3')](_0x3f592c[_0x43a4('0xf9')]['document']['differ'][_0x43a4('0x48')]()),_0xcfb836=new Set();for(const {name:_0x230a1b,data:_0x3ff1ee}of _0x2659e2){const {group:_0x499cdb,type:_0x359ffe,id:_0x17ba87}=this[_0x43a4('0x96')](_0x230a1b);if(_0x43a4('0xd')!==_0x499cdb)continue;const _0x4a912c=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x17ba87);if(null!=_0x3ff1ee[_0x43a4('0x31')]){_0x43a4('0x110')==_0x359ffe&&(_0x54cfd9=_0x54cfd9||_t(_0x3ff1ee[_0x43a4('0x31')],_0x230a1b,_0x4164f5,_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x2b')]));if(_0x3ff1ee[_0x43a4('0x31')][_0x43a4('0x36')]||_0x43a4('0x91')==_0x3ff1ee[_0x43a4('0x31')][_0x43a4('0x6f')][_0x43a4('0x95')]||_0x43a4('0x84')==_0x359ffe&&!$t(_0x3ff1ee[_0x43a4('0x31')])||_0x43a4('0x9e')==_0x359ffe&&!(!Bt(_0x41e383=_0x3ff1ee[_0x43a4('0x31')])&&!function(_0x5e04bb){return _0x5e04bb['start']['parent']==_0x5e04bb[_0x43a4('0xc9')][_0x43a4('0xb7')]&&_0x5e04bb[_0x43a4('0xd8')][_0x43a4('0xd5')];}(_0x41e383)))_0x4164f5[_0x43a4('0xef')](_0x230a1b),_0x54cfd9=!0x0;else{if(!_0x4a912c||!_0x4a912c[_0x43a4('0x40')])continue;_0xcfb836[_0x43a4('0xd2')](_0x4a912c);}}}var _0x41e383;return _0xcfb836[_0x43a4('0xc0')]>0x0&&(_0x54cfd9=!!this[_0x43a4('0x43')](_0xcfb836)||_0x54cfd9),_0x54cfd9;}),_0x3f592c[_0x43a4('0xf9')][_0x43a4('0xb5')]['registerPostFixer'](_0x236ad0=>{let _0x5b142f=!0x1;for(const _0x27c179 of _0x3f592c[_0x43a4('0xf9')][_0x43a4('0xb5')][_0x43a4('0xa5')]['getChanges']()){if(_0x43a4('0x109')!=_0x27c179[_0x43a4('0x1c')])continue;const _0x4470ff=_0x27c179[_0x43a4('0x50')]['getShiftedBy'](_0x27c179[_0x43a4('0xb4')]);if(_0x4470ff[_0x43a4('0xd5')])for(const _0x39c36b of this[_0x43a4('0x3a')]['values']()){if(_0x39c36b[_0x43a4('0x121')]||!_0x39c36b[_0x43a4('0x40')])continue;if('formatBlock'!=_0x39c36b[_0x43a4('0x1c')])continue;const _0x12e555=_0x39c36b[_0x43a4('0x10f')]();if(_0x12e555[_0x43a4('0xd8')][_0x43a4('0x23')]!=_0x12e555[_0x43a4('0xc9')][_0x43a4('0x23')]&&_0x12e555[_0x43a4('0xc9')]['isEqual'](_0x27c179[_0x43a4('0x50')])){const _0x26ea46=_0x3f592c[_0x43a4('0xf9')]['createRange'](_0x12e555['start'],_0x4470ff);_0x236ad0[_0x43a4('0xd3')](_0x39c36b['getFirstMarker'](),{'range':_0x26ea46}),_0x5b142f=!0x0;}}}return _0x5b142f;}),_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x8f')]['on'](_0x43a4('0x8c'),(_0xb04c6b,_0x29aecb,_0x402dd5)=>{if(null==_0x402dd5){const {id:_0x31ce56}=this['_splitMarkerName'](_0x29aecb[_0x43a4('0x3b')]),_0x3e51e6=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x31ce56);_0x3e51e6&&_0x3e51e6[_0x43a4('0x39')](_0x29aecb[_0x43a4('0x3b')]);}}),_0x3f592c['model'][_0x43a4('0xb5')]['on'](_0x43a4('0x71'),()=>{const _0xdeb84f=Array[_0x43a4('0xc3')](_0x3f592c[_0x43a4('0xf9')][_0x43a4('0xb5')][_0x43a4('0xa5')][_0x43a4('0x48')]())[_0x43a4('0x0')](_0x5e196d=>_0x43a4('0xd')===this[_0x43a4('0x96')](_0x5e196d[_0x43a4('0x3b')])['group']);if(0x0===_0xdeb84f['length'])return;_0xdeb84f[_0x43a4('0x8b')]((_0x21358a,_0x36b4b6)=>{const _0x984b04=_0x21358a[_0x43a4('0x1a')][_0x43a4('0x77')],_0x1d9f55=_0x36b4b6[_0x43a4('0x1a')]['oldRange'];return null===_0x984b04&&null===_0x1d9f55?0x0:null===_0x984b04&&null!==_0x1d9f55?-0x1:null!==_0x984b04&&null===_0x1d9f55?0x1:_0x984b04[_0x43a4('0xd8')]['isBefore'](_0x1d9f55[_0x43a4('0xd8')])?-0x1:0x1;});const _0x51adc3=new Set(),_0x30efc1=new Set();for(const {name:_0x3a1d55,data:_0x1c454d}of _0xdeb84f){const {id:_0x1e069a}=this[_0x43a4('0x96')](_0x3a1d55);if(null===_0x1c454d[_0x43a4('0x77')]){const _0x2f9e95=this['_handleNewSuggestionMarker'](_0x3a1d55);_0x30efc1[_0x43a4('0xd2')](_0x2f9e95);}else{const _0xe4b66a=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x1e069a);null!==_0x1c454d['newRange']||_0xe4b66a[_0x43a4('0x40')]?(_0x51adc3[_0x43a4('0xd2')](_0xe4b66a['head']),_0x30efc1['add'](_0xe4b66a)):this[_0x43a4('0xdb')](_0xe4b66a);}}_0x30efc1[_0x43a4('0xc0')]>0x0&&this[_0x43a4('0xf5')](_0x30efc1);for(const _0x34cc99 of _0x51adc3)this['fire'](_0x43a4('0x107'),_0x34cc99);}),_0x3f592c[_0x43a4('0xf9')]['on'](_0x43a4('0x129'),(_0x27e06d,_0x1a0135)=>{const _0x515f80=_0x1a0135[0x0];if(!this['_suggestions'][_0x43a4('0xc0')])return;if(!_0x515f80['isDocumentOperation'])return;if(_0x515f80[_0x43a4('0x116')][_0x43a4('0x92')]||!_0x515f80[_0x43a4('0x116')]['isLocal'])return;let _0x1f4124,_0x1bd210;switch(_0x515f80[_0x43a4('0x1c')]){case _0x43a4('0x109'):_0x1f4124=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x41')](_0x515f80['position']),_0x1bd210=_0x1f4124['getShiftedBy'](_0x515f80[_0x43a4('0x79')]);break;case _0x43a4('0x3c'):_0x1f4124=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x41')](_0x515f80[_0x43a4('0x73')]),_0x1bd210=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x41')](_0x515f80[_0x43a4('0x1b')]);break;case'move':_0x1f4124=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x41')](_0x515f80['targetPosition']),_0x1bd210=_0x1f4124[_0x43a4('0xec')](_0x515f80['howMany']);break;default:return;}const _0x5aa5af=_0x3f592c['model'][_0x43a4('0xe3')](_0x1f4124,_0x1bd210);_0x3f592c['model'][_0x43a4('0xdf')](()=>{for(const {suggestion:_0x576ad5,meta:_0x249d21}of this[_0x43a4('0xab')](_0x5aa5af)){if(_0x576ad5[_0x43a4('0x121')])continue;if('formatInline'==_0x576ad5['type'])continue;const _0x532c8b=_0x576ad5['data']&&_0x576ad5[_0x43a4('0x1a')]['multipleBlocks'];(_0x43a4('0x84')!=_0x576ad5['type']||'split'==_0x515f80[_0x43a4('0x1c')]&&!_0x532c8b)&&(_0x249d21[_0x43a4('0x34')]||_0x43a4('0xb6')==_0x576ad5[_0x43a4('0x1c')]&&_0x249d21[_0x43a4('0x26')]||_0x576ad5[_0x43a4('0x10f')]()[_0x43a4('0x64')](_0x5aa5af)&&this['_breakSuggestionMarker'](_0x576ad5,_0x1f4124,_0x1bd210));}});},{'priority':_0x43a4('0xf4')}),_0x3f592c[_0x43a4('0xf9')]['on'](_0x43a4('0x7c'),(_0x4445f6,_0x23e138)=>{const _0xb2280=_0x23e138[0x0],_0x598ed5=_0x23e138[0x1];if(_0x598ed5&&_0x598ed5[_0x43a4('0x11')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x43a4('0x7e')][_0x43a4('0xe5')])return;if(_0xb2280['isCollapsed'])return;const _0x4416ce=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x2b')],{start:_0x1a325d,end:_0x5e7023}=_0xb2280[_0x43a4('0x10f')](),_0x4867e7=_0x1a325d[_0x43a4('0x90')]&&_0x4416ce[_0x43a4('0x5')](_0x1a325d[_0x43a4('0x90')])?null:_0x4416ce['getNearestSelectionRange'](_0x1a325d,'forward'),_0x2e1d60=_0x5e7023['nodeBefore']&&_0x4416ce[_0x43a4('0x5')](_0x5e7023[_0x43a4('0xb7')])?null:_0x4416ce['getNearestSelectionRange'](_0x5e7023,_0x43a4('0xce')),_0x41ea04=_0x3f592c['model'][_0x43a4('0xe3')](_0x4867e7?_0x4867e7[_0x43a4('0xd8')]:_0x1a325d,_0x2e1d60?_0x2e1d60[_0x43a4('0xc9')]:_0x5e7023);_0x3f592c['model'][_0x43a4('0xdf')](_0x5e0377=>{this[_0x43a4('0x27')](_0x41ea04);const _0x249fab=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x2b')][_0x43a4('0xca')](_0x41ea04[_0x43a4('0xd8')]);_0xb2280['is'](_0x43a4('0xdd'))?_0x5e0377['setSelection'](_0x249fab):_0xb2280[_0x43a4('0x74')](_0x249fab);}),_0x4445f6[_0x43a4('0x85')]();},{'priority':_0x525954['normal']+0xa}),_0x3f592c[_0x43a4('0xf9')]['on'](_0x43a4('0x120'),(_0x342458,_0x27d0c9)=>{const _0x32947c=_0x27d0c9[_0x27d0c9[_0x43a4('0xb4')]-0x1];_0x32947c&&_0x32947c[_0x43a4('0x11')]||this[_0x43a4('0xd9')]||this[_0x43a4('0x7e')][_0x43a4('0xe5')]&&(_0x3f592c[_0x43a4('0xf9')]['change'](()=>{let _0x16343b=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x120')](_0x27d0c9[0x0],_0x27d0c9[0x1],_0x27d0c9[0x2],_0x27d0c9[0x3],{'forceDefaultExecution':!0x0});if(!_0x16343b)return;_0x342458['return']=_0x16343b['clone']();const _0x2cfa41=_0x16343b[_0x43a4('0xc9')]['nodeBefore'],_0x5106db=_0x3f592c[_0x43a4('0xf9')]['schema'];_0x2cfa41&&_0x5106db[_0x43a4('0x5d')](_0x2cfa41)&&!_0x5106db[_0x43a4('0xdc')](_0x2cfa41)&&(_0x16343b=_0x3f592c[_0x43a4('0xf9')][_0x43a4('0xe3')](_0x16343b[_0x43a4('0xd8')],_0x3f592c[_0x43a4('0xf9')][_0x43a4('0x41')](_0x2cfa41,_0x43a4('0xc9')))),this['markInsertion'](_0x16343b);}),_0x342458[_0x43a4('0x85')]());},{'priority':'high'}),this[_0x43a4('0x7e')]=new _0x948b62(_0x3f592c,this[_0x43a4('0x12c')]),this[_0x43a4('0x11f')][_0x43a4('0x51')][_0x43a4('0xd2')](_0x43a4('0xf6'),this[_0x43a4('0x7e')]),this[_0x43a4('0xb2')](_0x43a4('0xf6'));const _0x149c76=new _0x39aa4b(_0x3f592c,this[_0x43a4('0x3a')]);_0x3f592c['commands']['add'](_0x43a4('0xe6'),_0x149c76),this['enableCommand']('acceptSuggestion');const _0x63b5fb=new _0x145189(_0x3f592c,this['_suggestions']);_0x3f592c[_0x43a4('0x51')][_0x43a4('0xd2')](_0x43a4('0xbf'),_0x63b5fb),this[_0x43a4('0xb2')](_0x43a4('0xbf')),_0x3f592c[_0x43a4('0x51')][_0x43a4('0xd2')](_0x43a4('0x117'),new _0x1b767c(_0x3f592c,_0x149c76,this[_0x43a4('0x3a')])),this[_0x43a4('0xb2')](_0x43a4('0x117')),_0x3f592c['commands'][_0x43a4('0xd2')](_0x43a4('0x30'),new _0x1b767c(_0x3f592c,_0x63b5fb,this['_suggestions'])),this['enableCommand'](_0x43a4('0x30')),_0x3f592c[_0x43a4('0x51')][_0x43a4('0xd2')](_0x43a4('0x44'),new _0x294a26(_0x3f592c,_0x149c76,this[_0x43a4('0x3a')])),this[_0x43a4('0xb2')]('acceptSelectedSuggestions'),_0x3f592c[_0x43a4('0x51')][_0x43a4('0xd2')](_0x43a4('0x72'),new _0x294a26(_0x3f592c,_0x63b5fb,this[_0x43a4('0x3a')])),this[_0x43a4('0xb2')](_0x43a4('0x72'));const _0x3501d1=_0x3f592c[_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0x49'));this['listenTo'](_0x3501d1,_0x43a4('0x2f'),(_0x365908,{threadId:_0x2c30f5})=>{const _0x5afe24=this['_suggestions'][_0x43a4('0xa0')](_0x2c30f5);_0x5afe24&&_0x5afe24[_0x43a4('0x99')]&&0x1===_0x5afe24[_0x43a4('0x99')][_0x43a4('0xb4')]&&this[_0x43a4('0x32')](_0x2c30f5,{'hasComments':!0x0});},{'priority':_0x43a4('0xe7')}),this['listenTo'](_0x3501d1,_0x43a4('0x97'),(_0x4f2f0b,{threadId:_0x38d9a7})=>{const _0x55cbde=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x38d9a7);_0x55cbde&&_0x55cbde[_0x43a4('0x99')]&&!_0x55cbde['commentThread'][_0x43a4('0xb4')]&&this[_0x43a4('0x32')](_0x38d9a7,{'hasComments':!0x1});},{'priority':_0x43a4('0xe7')});}set[_0x43a4('0xcc')](_0x4c80dd){if(this[_0x43a4('0xcf')])throw new _0x3cc697(_0x43a4('0x7a'),this);this[_0x43a4('0xcf')]=_0x4c80dd;}get['adapter'](){return this['_adapter'];}[_0x43a4('0xc7')]({skipNotAttached:_0x4e7261=!0x1,toJSON:_0x128439=!0x1}={}){const _0x135e62=[];for(const _0x17dba5 of this['_suggestions'][_0x43a4('0x62')]())_0x4e7261&&!_0x17dba5[_0x43a4('0x40')]||_0x135e62[_0x43a4('0xd7')](_0x17dba5);return _0x128439?_0x135e62[_0x43a4('0xe4')](_0x37a314=>_0x37a314[_0x43a4('0xc1')]()):_0x135e62;}['getSuggestion'](_0x3cedcc){const _0x422423=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x3cedcc);if(!_0x422423)throw new _0x3cc697(_0x43a4('0x105'),this);return _0x422423;}['hasSuggestion'](_0x22b8f1){return this[_0x43a4('0x3a')][_0x43a4('0x25')](_0x22b8f1);}['addSuggestionData'](_0x3606d0){const {authorId:_0x5705ef,id:_0x484c99,attributes:_0x18563e}=_0x3606d0,[_0x49eeac,_0x5aaac9]=_0x3606d0[_0x43a4('0x1c')][_0x43a4('0x3c')](':'),_0x5cadc0=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x484c99)||this[_0x43a4('0xaa')](_0x49eeac,_0x5aaac9,_0x484c99,_0x5705ef,_0x18563e);if(this[_0x43a4('0xb9')](_0x5cadc0),this[_0x43a4('0xf0')](_0x5cadc0,_0x49eeac,_0x5aaac9||null,_0x5705ef),_0x5cadc0['createdAt']=_0x3606d0[_0x43a4('0x12b')],_0x18563e&&_0x18563e[_0x43a4('0x124')]){const {authorName:_0x4126c5,createdAt:_0x11146a}=_0x18563e[_0x43a4('0x124')],_0x5e81ae=this[_0x43a4('0x10')](_0x4126c5);_0x5cadc0['authoredAt']=_0x11146a,_0x5cadc0['author']=_0x5e81ae,_0x5cadc0['isExternal']=!0x0;}else _0x5cadc0[_0x43a4('0x123')]=_0x3606d0[_0x43a4('0x12b')];switch(_0x3606d0[_0x43a4('0x1a')]&&(_0x5cadc0[_0x43a4('0x1a')]=_0x3606d0[_0x43a4('0x1a')]),_0x3606d0[_0x43a4('0xbc')]&&(_0x5cadc0[_0x43a4('0xbc')]=_0x3606d0['attributes']),this[_0x43a4('0xcf')]&&this[_0x43a4('0xcf')]['addSuggestion']||(_0x5cadc0[_0x43a4('0xa3')]=!0x0),this[_0x43a4('0x13')][_0x43a4('0xa0')](_0x5cadc0)){case _0x43a4('0xd6'):this[_0x43a4('0x13')][_0x43a4('0x42')](_0x5cadc0,_0x43a4('0xc'));break;case _0x43a4('0x4e'):_0x5cadc0[_0x43a4('0x40')]?(this[_0x43a4('0x13')][_0x43a4('0x42')](_0x5cadc0,_0x43a4('0xbe')),this[_0x43a4('0x11a')](_0x43a4('0x16'),_0x5cadc0)):this['_suggestionState'][_0x43a4('0x42')](_0x5cadc0,_0x43a4('0x6c'));}return _0x5cadc0;}[_0x43a4('0xe6')](_0x488dc1){this[_0x43a4('0x11')](()=>{this[_0x43a4('0x11f')][_0x43a4('0xf9')][_0x43a4('0xdf')](()=>{for(const _0xb65de0 of _0x488dc1[_0x43a4('0x9b')]())_0xb65de0[_0x43a4('0xc5')]();});});}['discardSuggestion'](_0x4c8d54){this[_0x43a4('0x11')](()=>{this[_0x43a4('0x11f')][_0x43a4('0xf9')]['change'](()=>{for(const _0x2bcc4c of _0x4c8d54[_0x43a4('0x9b')]())_0x2bcc4c[_0x43a4('0x82')]();});});}[_0x43a4('0xb2')](_0x1417b3,_0x51b0fb){const _0x1ca9b9=this[_0x43a4('0x11f')][_0x43a4('0x51')][_0x43a4('0xa0')](_0x1417b3);if(!_0x1ca9b9)throw new _0x3cc697(_0x43a4('0x14'),this,{'commandName':_0x1417b3});this['_enabledCommands']['add'](_0x1ca9b9),_0x51b0fb&&_0x1ca9b9['on']('execute',(_0xacd85f,_0x5097b1)=>{this[_0x43a4('0x7e')][_0x43a4('0xe5')]&&(this[_0x43a4('0xd9')]||_0x5097b1[_0x43a4('0xb4')]>0x0&&_0x5097b1[_0x5097b1[_0x43a4('0xb4')]-0x1]&&_0x5097b1[_0x5097b1[_0x43a4('0xb4')]-0x1][_0x43a4('0x11')]||(_0x51b0fb((..._0x2c06e5)=>_0x1ca9b9['execute'](..._0x2c06e5,{'forceDefaultExecution':!0x0}),..._0x5097b1),_0xacd85f[_0x43a4('0x85')]()));},{'priority':_0x43a4('0xb8')});}[_0x43a4('0x11')](_0x4193cb){let _0xfe46da,_0x365aa8;const _0x3ee642=this['_isForcedDefaultExecutionBlock'];this[_0x43a4('0xd9')]=!0x0;try{_0xfe46da=_0x4193cb();}catch(_0xb05fdc){_0x365aa8=_0xb05fdc;}return _0x3ee642||(this[_0x43a4('0xd9')]=!0x1),_0x365aa8&&_0x3cc697[_0x43a4('0xcd')](_0x365aa8,this),_0xfe46da;}[_0x43a4('0x28')](_0x2f87aa,_0x334799=null,_0x382830={}){if(_0x2f87aa[_0x43a4('0x36')])return null;const _0x3f6e80=this[_0x43a4('0x11f')]['plugins']['get'](_0x43a4('0xde'))['me'];for(const {suggestion:_0x483057,meta:_0x26b684}of this[_0x43a4('0xab')](_0x2f87aa,_0x43a4('0xb6')))if(_0x26b684[_0x43a4('0x26')]){if(!_0x26b684[_0x43a4('0x53')])return _0x483057;if(_0x334799==_0x483057[_0x43a4('0x55')]){const _0x2d38ca=_0x483057['getFirstRange']();return _0x2d38ca['start'][_0x43a4('0x4a')](_0x2f87aa[_0x43a4('0xc9')])?this[_0x43a4('0xa2')](_0x483057,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x2f87aa[_0x43a4('0xd8')],_0x2d38ca['end'])):this[_0x43a4('0xa2')](_0x483057,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x2d38ca[_0x43a4('0xd8')],_0x2f87aa['end'])),_0x483057;}}const _0x5c81dd=_0x33d4c9(),_0x330ea6=_0x3f6e80['id'],_0x457f14=_0x334799?_0x43a4('0x9d')+_0x334799:_0x43a4('0xb6'),_0x1d793a=this[_0x43a4('0x10b')]({'id':_0x5c81dd,'type':_0x457f14,'createdAt':new Date(),'authorId':_0x330ea6,'attributes':_0x382830});return this[_0x43a4('0x35')](_0x457f14,_0x5c81dd,_0x330ea6,_0x2f87aa),_0x1d793a;}[_0x43a4('0x7')](_0x41ac1e,_0x33e360=_0x43a4('0xaf'),_0x594fdc={}){const _0x2a523f=this[_0x43a4('0x11f')][_0x43a4('0x100')][_0x43a4('0xa0')]('Users')['me'],_0x3bc5b5=this['_suggestionFactory']['getSuggestionCallback'](_0x43a4('0xb6'),_0x33e360,_0x43a4('0x76'));for(const _0x4142b6 of this['getSuggestions']())if(_0x4142b6[_0x43a4('0x5e')]['id']==_0x2a523f['id']&&'insertion'==_0x4142b6[_0x43a4('0x1c')]&&_0x4142b6[_0x43a4('0x55')]==_0x33e360&&(_0x3bc5b5(_0x4142b6[_0x43a4('0x2')](),_0x41ac1e)||_0x3bc5b5(_0x41ac1e,_0x4142b6[_0x43a4('0x2')]()))){for(const _0x375b8c of _0x41ac1e)_0x4142b6[_0x43a4('0x54')](_0x375b8c);return _0x4142b6;}for(const _0x5369e9 of _0x41ac1e)for(const {suggestion:_0x2c44c9,meta:_0x3fb813}of this[_0x43a4('0xab')](_0x5369e9,_0x43a4('0xb6'))){if(!_0x3fb813[_0x43a4('0x26')])continue;let _0x104e08=!0x0;for(const _0x1002f2 of _0x2c44c9[_0x43a4('0x2')]())for(const _0xbaef87 of _0x41ac1e)if(!_0x1002f2[_0x43a4('0x64')](_0xbaef87)){_0x104e08=!0x1;break;}if(_0x104e08)return _0x2c44c9;}const _0x4f9aa4=_0x33d4c9(),_0x13e6f8=_0x2a523f['id'],_0x39cfdc=_0x43a4('0x9d')+_0x33e360,_0x366c05=this[_0x43a4('0x10b')]({'id':_0x4f9aa4,'type':_0x39cfdc,'createdAt':new Date(),'authorId':_0x13e6f8,'attributes':_0x594fdc});for(const _0x560274 of _0x41ac1e)this['_addSuggestionMarker'](_0x39cfdc,_0x4f9aa4,_0x13e6f8,_0x560274,_0x34bd29[_0x43a4('0x4c')]());return _0x366c05;}[_0x43a4('0x9c')](_0x2c10d9,_0x3cb051,_0x120dae=null,_0x32ef86={}){if(_0x120dae=_0x120dae||Mt(_0x3cb051),_0x2c10d9['isCollapsed'])return;if(!0x1===this[_0x43a4('0x66')]){const _0x298634=this[_0x43a4('0x103')][_0x43a4('0xf1')]('formatInline',_0x120dae,_0x43a4('0xc5'));return void this[_0x43a4('0x11')](()=>_0x298634([_0x2c10d9],_0x3cb051,_0x32ef86));}const _0x33637f=this['editor'][_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0xde'))['me'],_0x4f8465=[];for(const {suggestion:_0x24b815,meta:_0xaec5d6}of this[_0x43a4('0xab')](_0x2c10d9,_0x43a4('0xb6')))_0xaec5d6[_0x43a4('0x26')]&&!_0xaec5d6['isInsideObject']&&_0x4f8465[_0x43a4('0xd7')](..._0x24b815[_0x43a4('0x2')]());const _0x56f778=function(_0xe4b752,_0x4b386c){const _0x29e5be=[];for(const _0x1f8b2b of _0x4b386c){const _0x5de2e8=_0xe4b752[_0x43a4('0xb1')](_0x1f8b2b);_0x5de2e8&&_0x29e5be['push'](_0x5de2e8);}return _0x29e5be;}(_0x2c10d9,_0x4f8465),_0x268638=function(_0x3f2996,_0x5c5e5f){const _0x4d79f7=[_0x3f2996];for(const _0xb02f63 of _0x5c5e5f){let _0x37dd4e=0x0;for(;_0x37dd4e<_0x4d79f7[_0x43a4('0xb4')];){const _0x582e7c=_0x4d79f7[_0x37dd4e]['getDifference'](_0xb02f63);_0x4d79f7[_0x43a4('0x89')](_0x37dd4e,0x1,..._0x582e7c),_0x37dd4e+=_0x582e7c['length'];}}return _0x4d79f7;}(_0x2c10d9,_0x4f8465);_0x56f778['length']&&this[_0x43a4('0x10e')][_0x43a4('0xdf')](()=>{for(const _0x400dc4 of _0x56f778){const _0x433a38=this[_0x43a4('0x103')][_0x43a4('0xf1')]('formatInline',_0x120dae,_0x43a4('0xc5'));this[_0x43a4('0x11')](()=>_0x433a38([_0x400dc4],_0x3cb051,_0x32ef86));}});for(const _0x532575 of _0x268638){let _0x2bcb97=null,_0x52aaea=_0x532575[_0x43a4('0xd8')],_0x3720d2=_0x532575['end'];for(const {suggestion:_0x188dae,meta:_0x5fed4d}of this[_0x43a4('0xab')](_0x532575,_0x43a4('0x110'))){if(!_0x5fed4d[_0x43a4('0x26')])continue;if(_0x188dae[_0x43a4('0x55')]!=_0x120dae)continue;const _0x166818=_0x188dae['getFirstRange']();if(_0x166818[_0x43a4('0x64')](_0x532575,!0x0))return;_0x52aaea=_0x52aaea[_0x43a4('0xad')](_0x166818['start'])?_0x52aaea:_0x166818[_0x43a4('0xd8')],_0x3720d2=_0x3720d2[_0x43a4('0xe2')](_0x166818[_0x43a4('0xc9')])?_0x3720d2:_0x166818[_0x43a4('0xc9')],_0x2bcb97?_0x166818[_0x43a4('0xd8')][_0x43a4('0xad')](_0x2bcb97[_0x43a4('0x10f')]()[_0x43a4('0xd8')])?(_0x2bcb97[_0x43a4('0x37')](),_0x2bcb97=_0x188dae):_0x188dae[_0x43a4('0x37')]():_0x2bcb97=_0x188dae;}const _0x30f5a6=this[_0x43a4('0x10e')]['createRange'](_0x52aaea,_0x3720d2);if(_0x2bcb97)this[_0x43a4('0xa2')](_0x2bcb97,_0x30f5a6);else{const _0x1e95c3=_0x33d4c9(),_0x19bfe2=_0x33637f['id'];this[_0x43a4('0x10b')]({'id':_0x1e95c3,'type':_0x43a4('0x2a')+_0x120dae,'data':_0x3cb051,'createdAt':new Date(),'authorId':_0x19bfe2,'attributes':_0x32ef86}),this[_0x43a4('0x35')](_0x43a4('0x2a')+_0x120dae,_0x1e95c3,_0x19bfe2,_0x30f5a6);}}}[_0x43a4('0xb')](_0x409ef7,_0x2ae706,_0x2aa0e1=[],_0x4eef73=null,_0x2bd04b={}){_0x2ae706[_0x43a4('0xfd')]||(_0x2ae706['formatGroupId']=_0x2ae706[_0x43a4('0x1f')]),_0x2ae706[_0x43a4('0x118')]=_0x409ef7['is'](_0x43a4('0x6')),_0x4eef73=_0x4eef73||Mt(_0x2ae706);const _0x538b39=_0x2aa0e1[_0x43a4('0xe4')](_0x1dbe26=>Nt(_0x1dbe26,this[_0x43a4('0x10e')])),_0x53a325=_0x409ef7['is'](_0x43a4('0x6'))?_0x409ef7:Nt(_0x409ef7,this[_0x43a4('0x10e')]);if(!0x1===this[_0x43a4('0x66')]){const _0x423d86=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x84'),_0x4eef73,_0x43a4('0xc5'));return void this['forceDefaultExecution'](()=>_0x423d86([_0x53a325],_0x2ae706,_0x2bd04b));}_0x538b39['push'](_0x53a325);let _0x1bbfc7=!0x0;for(const _0x3ca935 of _0x538b39)if(!this['_rangeIsInLocalUserInsertion'](_0x3ca935)){_0x1bbfc7=!0x1;break;}if(_0x1bbfc7){const _0x37fd3f=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x84'),_0x4eef73,_0x43a4('0xc5'));return void this['forceDefaultExecution'](()=>_0x37fd3f([_0x53a325],_0x2ae706,_0x2bd04b));}let _0xfb90e8=null,_0x2cb4f4=_0x53a325[_0x43a4('0xd8')],_0x65119a=_0x53a325[_0x43a4('0xc9')];for(const {suggestion:_0x14a26e,meta:_0x1b6898}of this['_findSuggestions'](_0x53a325,_0x43a4('0x84'))){if(!_0x1b6898[_0x43a4('0x26')]||_0x1b6898[_0x43a4('0x53')]||_0x1b6898[_0x43a4('0x34')]||_0x1b6898[_0x43a4('0x7f')])continue;if(_0x14a26e[_0x43a4('0x1a')][_0x43a4('0xfd')]!=_0x2ae706[_0x43a4('0xfd')])continue;const _0x3c9613=_0x14a26e[_0x43a4('0x10f')]();if(_0x14a26e[_0x43a4('0x55')]==_0x4eef73){if(_0x3c9613[_0x43a4('0x64')](_0x53a325,!0x0))return;_0x2cb4f4=_0x2cb4f4[_0x43a4('0xad')](_0x3c9613[_0x43a4('0xd8')])?_0x2cb4f4:_0x3c9613['start'],_0x65119a=_0x65119a['isAfter'](_0x3c9613['end'])?_0x65119a:_0x3c9613[_0x43a4('0xc9')],_0xfb90e8?_0x3c9613[_0x43a4('0xd8')][_0x43a4('0xad')](_0xfb90e8['getFirstRange']()[_0x43a4('0xd8')])?(_0xfb90e8[_0x43a4('0x37')](),_0xfb90e8=_0x14a26e):_0x14a26e[_0x43a4('0x37')]():_0xfb90e8=_0x14a26e;}else{const _0x15b72c=_0x53a325[_0x43a4('0xb1')](_0x3c9613);this[_0x43a4('0xba')](_0x14a26e,_0x15b72c);}}const _0x167b1f=this[_0x43a4('0x11f')]['plugins'][_0x43a4('0xa0')](_0x43a4('0xde'))['me'],_0x393c31=_0x33d4c9(),_0x4486c8=_0x167b1f['id'];_0xfb90e8?this[_0x43a4('0xa2')](_0xfb90e8,this[_0x43a4('0x10e')]['createRange'](_0x2cb4f4,_0x65119a)):(this[_0x43a4('0x10b')]({'id':_0x393c31,'type':_0x43a4('0x126')+_0x4eef73,'data':_0x2ae706,'createdAt':new Date(),'authorId':_0x4486c8,'attributes':_0x2bd04b}),this[_0x43a4('0x35')]('formatBlock:'+_0x4eef73,_0x393c31,_0x4486c8,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x2cb4f4,_0x65119a)));}[_0x43a4('0x1')](_0xde7b37,_0x38a369,_0x3206c7=[],_0x480c31=null,_0x5d94fd={}){_0x38a369[_0x43a4('0xfd')]||(_0x38a369[_0x43a4('0xfd')]=_0x38a369[_0x43a4('0x1f')]);const _0xe53853=_0xde7b37[0x0];_0x38a369[_0x43a4('0x118')]=_0xe53853['is'](_0x43a4('0x6')),_0x480c31=_0x480c31||Mt(_0x38a369);const _0x2d5d5a=_0x3206c7[_0x43a4('0xe4')](_0x345f25=>Nt(_0x345f25,this[_0x43a4('0x10e')])),_0x27d439=_0xe53853['is'](_0x43a4('0x6'))?_0xde7b37:_0xde7b37[_0x43a4('0xe4')](_0x7f0fd7=>Nt(_0x7f0fd7,this['_model']));if(!0x1===this[_0x43a4('0x66')]){const _0xc5e46e=this['_suggestionFactory'][_0x43a4('0xf1')](_0x43a4('0x84'),_0x480c31,_0x43a4('0xc5'));return void this[_0x43a4('0x11')](()=>_0xc5e46e(_0x27d439,_0x38a369,_0x5d94fd));}_0x2d5d5a[_0x43a4('0xd7')](..._0x27d439);let _0x376d35=!0x0;for(const _0xea4b85 of _0x2d5d5a)if(!this[_0x43a4('0x5a')](_0xea4b85)){_0x376d35=!0x1;break;}if(_0x376d35){const _0x17b512=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x84'),_0x480c31,_0x43a4('0xc5'));return void this[_0x43a4('0x11')](()=>_0x17b512(_0x27d439,_0x38a369,_0x5d94fd));}const _0x18ce3c=this['editor'][_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0xde'))['me'];for(const _0x36d45d of this[_0x43a4('0xc7')]()){if(_0x36d45d[_0x43a4('0x5e')]['id']!=_0x18ce3c['id'])continue;if(_0x43a4('0x84')!=_0x36d45d[_0x43a4('0x1c')]||_0x36d45d[_0x43a4('0x1a')][_0x43a4('0xfd')]!=_0x38a369[_0x43a4('0xfd')])continue;const _0x356325=_0x36d45d[_0x43a4('0x55')]==_0x480c31;for(let _0x27bd1f=0x0;_0x27bd1f<_0x27d439[_0x43a4('0xb4')];_0x27bd1f++){const _0x1bae2a=_0x27d439[_0x27bd1f];for(const _0x3159b3 of _0x36d45d[_0x43a4('0x11e')]()){const _0xffbf1b=_0x3159b3['getRange']();if(_0x1bae2a['isEqual'](_0xffbf1b)){_0x356325?(_0x27d439['splice'](_0x27bd1f,0x1),_0x27bd1f--):_0x36d45d['removeMarker'](_0x3159b3[_0x43a4('0x3b')]);break;}}}}if(0x0==_0x27d439[_0x43a4('0xb4')])return;const _0x2d1833=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x84'),_0x480c31,'join');for(const _0x4e0a95 of this['getSuggestions']())if(_0x4e0a95[_0x43a4('0x5e')]['id']==_0x18ce3c['id']&&_0x43a4('0x84')==_0x4e0a95['type']&&_0x4e0a95[_0x43a4('0x1a')][_0x43a4('0xfd')]==_0x38a369[_0x43a4('0xfd')]&&_0x4e0a95[_0x43a4('0x55')]==_0x480c31&&(_0x2d1833(_0x4e0a95['getRanges'](),_0x27d439)||_0x2d1833(_0x27d439,_0x4e0a95[_0x43a4('0x2')]()))){for(const _0x2cf914 of _0x27d439)_0x4e0a95['addRange'](_0x2cf914);return _0x4e0a95;}const _0x5ea8a7=_0x33d4c9(),_0x3d7a3b=_0x18ce3c['id'],_0x53adcf=_0x43a4('0x126')+_0x480c31,_0x5138b8=this[_0x43a4('0x10b')]({'id':_0x5ea8a7,'type':_0x53adcf,'data':_0x38a369,'createdAt':new Date(),'authorId':_0x3d7a3b,'attributes':_0x5d94fd});for(const _0x276026 of _0x27d439)this[_0x43a4('0x35')](_0x53adcf,_0x5ea8a7,_0x3d7a3b,_0x276026,_0x34bd29[_0x43a4('0x4c')]());return _0x5138b8;}[_0x43a4('0x27')](_0x3f8bae,_0x13cd26=null,_0x207cc7={}){if(_0x3f8bae[_0x43a4('0x36')])return null;const _0x3f25af=this[_0x43a4('0x11f')]['plugins'][_0x43a4('0xa0')](_0x43a4('0xde'))['me'],_0x128633=new _0xee9b89(_0x3f8bae['start'],_0x3f8bae[_0x43a4('0xc9')]);for(const {suggestion:_0x94de2f,meta:_0x3aacab}of this[_0x43a4('0xab')](_0x128633,_0x43a4('0xb6')))if(_0x3aacab[_0x43a4('0x26')]&&!_0x3aacab[_0x43a4('0x53')]){if(_0x94de2f[_0x43a4('0x121')]){const _0x100ccc=_0x94de2f['getRanges']()['filter'](_0x3fcaf3=>'$graveyard'!=_0x3fcaf3[_0x43a4('0x6f')][_0x43a4('0x95')]);_0x100ccc[_0x43a4('0x12')](_0x5bccb5=>_0x128633['containsRange'](_0x5bccb5,!0x0))&&_0x94de2f[_0x43a4('0x82')]();if(_0x100ccc[_0x43a4('0x12e')](_0x1080f0=>_0x1080f0['containsRange'](_0x128633,!0x0))){const _0x2f40bc=this['_suggestionFactory'][_0x43a4('0xf1')](_0x43a4('0x9e'),_0x13cd26,_0x43a4('0xc5'));return this['forceDefaultExecution'](()=>_0x2f40bc([_0x128633],null,_0x207cc7)),null;}}else{const _0x2538ed=_0x128633[_0x43a4('0xb1')](_0x94de2f['getFirstRange']());_0x94de2f[_0x43a4('0xc2')]([_0x2538ed],null,_0x207cc7);}}if(_0x128633[_0x43a4('0x8e')](),_0x128633['isCollapsed']||_0x43a4('0x91')==_0x128633[_0x43a4('0x6f')][_0x43a4('0x95')])return null;let _0x57dbd9=null,_0x20ef94=_0x128633['start'],_0x3d9b60=_0x128633[_0x43a4('0xc9')];for(const {suggestion:_0x303607,meta:_0xdff523}of this['_findSuggestions'](_0x128633,'deletion'))if(_0xdff523[_0x43a4('0x26')]){if(_0x303607[_0x43a4('0x121')]){let _0x12c581=!0x0;for(const _0x537577 of _0x303607[_0x43a4('0x2')]()){if(_0x537577[_0x43a4('0x64')](_0x128633,!0x0))return _0x303607;_0x128633[_0x43a4('0x64')](_0x537577)||(_0x12c581=!0x1);}_0x12c581&&_0x303607[_0x43a4('0x82')]();}else{const _0x1e7f69=_0x303607[_0x43a4('0x10f')]();if(_0x1e7f69[_0x43a4('0x64')](_0x128633,!0x0))return _0x303607;_0x20ef94=_0x20ef94[_0x43a4('0xad')](_0x1e7f69['start'])?_0x20ef94:_0x1e7f69[_0x43a4('0xd8')],_0x3d9b60=_0x3d9b60[_0x43a4('0xe2')](_0x1e7f69['end'])?_0x3d9b60:_0x1e7f69['end'],_0x57dbd9?_0x1e7f69['start'][_0x43a4('0xad')](_0x57dbd9['getFirstRange']()['start'])?(_0x57dbd9['removeMarkers'](),_0x57dbd9=_0x303607):_0x303607['removeMarkers']():_0x57dbd9=_0x303607;}}if(_0x57dbd9)return this[_0x43a4('0xa2')](_0x57dbd9,this['_model'][_0x43a4('0xe3')](_0x20ef94,_0x3d9b60)),_0x57dbd9;{const _0x1ff04f=_0x33d4c9(),_0x577911=this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x20ef94,_0x3d9b60),_0x50dd9b=_0x3f25af['id'],_0x3d2275=_0x13cd26?_0x43a4('0xbd')+_0x13cd26:_0x43a4('0x9e'),_0x537e3e=this[_0x43a4('0x10b')]({'id':_0x1ff04f,'type':_0x3d2275,'createdAt':new Date(),'authorId':_0x50dd9b,'attributes':_0x207cc7});return this[_0x43a4('0x35')](_0x3d2275,_0x1ff04f,_0x50dd9b,_0x577911),_0x537e3e;}}[_0x43a4('0xea')](_0xb6ced9,_0x561ffc=_0x43a4('0xaf'),_0x4b2228={}){const _0x3f0072=this[_0x43a4('0x11f')][_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0xde'))['me'],_0x425aaa=_0xb6ced9['map'](_0x3e9336=>new _0xee9b89(_0x3e9336[_0x43a4('0xd8')],_0x3e9336[_0x43a4('0xc9')])),_0xf018a1=new Set();for(const _0x4731a0 of _0x425aaa)for(const {suggestion:_0xcf0dd7,meta:_0x536b41}of this['_findSuggestions'](_0x4731a0,_0x43a4('0xb6')))_0x536b41['isOwn']&&!_0x536b41[_0x43a4('0x53')]&&_0xf018a1[_0x43a4('0xd2')](_0xcf0dd7);for(const _0x2595fe of _0xf018a1)if(_0x2595fe[_0x43a4('0x121')]){const _0x16e321=_0x2595fe[_0x43a4('0x2')]();(!_0x2595fe[_0x43a4('0xbc')]||!_0x2595fe['attributes'][_0x43a4('0x22')])&&(_0x16e321[_0x43a4('0x12')](_0x2030c2=>_0x425aaa[_0x43a4('0x12e')](_0x23794b=>_0x23794b['containsRange'](_0x2030c2,!0x0)))&&_0x2595fe[_0x43a4('0x82')]());if(_0x425aaa[_0x43a4('0x12')](_0x25aac0=>_0x16e321[_0x43a4('0x12e')](_0x13853a=>_0x13853a[_0x43a4('0x64')](_0x25aac0,!0x0)))){const _0x713a11=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x9e'),_0x561ffc,_0x43a4('0xc5'));return this[_0x43a4('0x11')](()=>_0x713a11(_0xb6ced9,null,_0x4b2228)),null;}}else{const _0x5f3dd7=_0x2595fe[_0x43a4('0x10f')]();_0x425aaa['some'](_0x40dfe7=>_0x40dfe7[_0x43a4('0x64')](_0x5f3dd7,!0x0))&&_0x2595fe[_0x43a4('0x82')]();if(_0x425aaa[_0x43a4('0x12')](_0x22ad26=>_0x5f3dd7['containsRange'](_0x22ad26,!0x0))){const _0x3ee345=this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x43a4('0x9e'),_0x561ffc,_0x43a4('0xc5'));return this[_0x43a4('0x11')](()=>_0x3ee345(_0x425aaa,null,_0x4b2228)),null;}}const _0x393926=this['_suggestionFactory'][_0x43a4('0xf1')](_0x43a4('0x9e'),_0x561ffc,_0x43a4('0x76'));let _0x5c61d9=null;for(const _0x2ce396 of this[_0x43a4('0xc7')]())if(_0x2ce396['author']['id']==_0x3f0072['id']&&_0x2ce396[_0x43a4('0x40')]&&_0x43a4('0x9e')==_0x2ce396[_0x43a4('0x1c')]&&_0x2ce396[_0x43a4('0x55')]==_0x561ffc&&(_0x393926(_0x2ce396[_0x43a4('0x2')](),_0x425aaa)||_0x393926(_0x425aaa,_0x2ce396[_0x43a4('0x2')]()))){if(_0x5c61d9){if(_0x2ce396[_0x43a4('0x99')]&&_0x2ce396['commentThread']['length'])continue;for(const _0x3a07bf of _0x2ce396[_0x43a4('0x2')]())_0x5c61d9['isIntersectingWithRange'](_0x3a07bf)||_0x5c61d9[_0x43a4('0x54')](_0x3a07bf);_0x2ce396[_0x43a4('0x37')]();}else{_0x5c61d9=_0x2ce396;for(const _0x18ff40 of _0x425aaa)_0x2ce396[_0x43a4('0x11c')](_0x18ff40)||_0x2ce396[_0x43a4('0x54')](_0x18ff40);}}if(_0x5c61d9)return _0x5c61d9;_0xf018a1[_0x43a4('0x3f')]();for(const _0x17ddca of _0x425aaa)for(const {suggestion:_0x590ffc,meta:_0x109d6b}of this[_0x43a4('0xab')](_0x17ddca,_0x43a4('0x9e')))_0x109d6b['isOwn']&&_0xf018a1[_0x43a4('0xd2')](_0x590ffc);for(const _0x13bf7d of _0xf018a1){const _0x57a2c0=_0x13bf7d['getRanges']();if(!_0x4b2228||!_0x4b2228[_0x43a4('0x22')]){if(_0x425aaa['every'](_0x18ee45=>_0x57a2c0[_0x43a4('0x12e')](_0x4160c9=>_0x4160c9[_0x43a4('0x64')](_0x18ee45,!0x0))))return _0x13bf7d;}(!_0x13bf7d[_0x43a4('0xbc')]||!_0x13bf7d[_0x43a4('0xbc')]['skipNestingCheck'])&&(_0x57a2c0['every'](_0x1da4bd=>_0x425aaa[_0x43a4('0x12e')](_0x16e1b8=>_0x16e1b8['containsRange'](_0x1da4bd,!0x0)))&&_0x13bf7d[_0x43a4('0x82')]());}const _0x9db34d=_0x33d4c9(),_0x104c5b=_0x3f0072['id'],_0xfedbbe=_0x43a4('0xbd')+_0x561ffc,_0x1e2483=this[_0x43a4('0x10b')]({'id':_0x9db34d,'type':_0xfedbbe,'createdAt':new Date(),'authorId':_0x104c5b,'attributes':_0x4b2228});for(const _0x2ebd71 of _0x425aaa)_0x2ebd71[_0x43a4('0x8e')](),_0x2ebd71[_0x43a4('0x36')]||_0x43a4('0x91')==_0x2ebd71[_0x43a4('0x6f')]['rootName']||this[_0x43a4('0x35')](_0xfedbbe,_0x9db34d,_0x104c5b,_0x2ebd71,_0x34bd29[_0x43a4('0x4c')]());return _0x1e2483;}['_setSuggestionRange'](_0x37ea33,_0x3df6a3){const _0x2b391a=_0x37ea33[_0x43a4('0xd0')]();this[_0x43a4('0x10e')][_0x43a4('0xdf')](_0xf9097c=>{_0xf9097c['updateMarker'](_0x2b391a,{'range':_0x3df6a3});});}[_0x43a4('0xb9')](_0x374772){const _0x512a52=_0x374772['id'],_0x3b1227=this[_0x43a4('0x11f')][_0x43a4('0x11d')][_0x43a4('0xa0')](_0x43a4('0x45'));this[_0x43a4('0x67')]['hasCommentThread'](_0x512a52)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3b1227,'threadId':_0x512a52});const _0x4bdce4=this[_0x43a4('0x67')]['getCommentThread'](_0x512a52);_0x4bdce4[_0x43a4('0xa1')](_0x43a4('0x38')),_0x4bdce4['isRemovable']=!0x1,_0x374772['commentThread']=_0x4bdce4;}[_0x43a4('0xf0')](_0x40b1ad,_0x10a4e1,_0x59e10a,_0x1db255){if(_0x40b1ad[_0x43a4('0x1c')]!=_0x10a4e1||_0x40b1ad['subType']!=_0x59e10a||_0x40b1ad[_0x43a4('0x59')]['id']!=_0x1db255)throw this[_0x43a4('0x11f')][_0x43a4('0x9f')](_0x43a4('0xa7')),new _0x3cc697(_0x43a4('0xa7'),this);}[_0x43a4('0xba')](_0x476d06,_0xc8f1df){const _0x56cc9e=_0x476d06['getFirstRange']();if(_0xc8f1df[_0x43a4('0x4a')](_0x56cc9e))_0x476d06[_0x43a4('0x37')]();else{if(_0x56cc9e[_0x43a4('0x64')](_0xc8f1df)){const _0x2530fa=this[_0x43a4('0x10e')][_0x43a4('0x41')](_0xc8f1df[_0x43a4('0xd8')][_0x43a4('0xb7')],_0x43a4('0xc9'));this[_0x43a4('0xa2')](_0x476d06,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x56cc9e[_0x43a4('0xd8')],_0x2530fa));const _0x305255=_0x33d4c9(),_0x4c0a99=_0x476d06[_0x43a4('0x59')]['id'],_0x3ec03f=_0x476d06[_0x43a4('0x1c')]+':'+_0x476d06[_0x43a4('0x55')];this[_0x43a4('0x10b')]({'id':_0x305255,'type':_0x3ec03f,'createdAt':new Date(),'authorId':_0x4c0a99,'data':_0x476d06[_0x43a4('0x1a')],'attributes':_0x476d06['attributes']});const _0x49a096=this[_0x43a4('0x10e')]['createPositionAt'](_0xc8f1df['end'][_0x43a4('0x23')],_0x43a4('0xcb')),_0x1f59e1=this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x49a096,_0x56cc9e[_0x43a4('0xc9')]);this[_0x43a4('0x35')](_0x3ec03f,_0x305255,_0x4c0a99,_0x1f59e1);}else{if(_0x56cc9e[_0x43a4('0x5c')](_0xc8f1df['start'])){const _0x1b23a5=this[_0x43a4('0x10e')][_0x43a4('0x41')](_0xc8f1df[_0x43a4('0xd8')]['nodeBefore'],_0x43a4('0xc9'));this[_0x43a4('0xa2')](_0x476d06,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x56cc9e['start'],_0x1b23a5));}else{const _0x57e2b7=this[_0x43a4('0x10e')][_0x43a4('0x41')](_0xc8f1df[_0x43a4('0xc9')][_0x43a4('0x23')],_0x43a4('0xcb'));this[_0x43a4('0xa2')](_0x476d06,this[_0x43a4('0x10e')]['createRange'](_0x57e2b7,_0x56cc9e[_0x43a4('0xc9')]));}}}}['_rangeIsInLocalUserInsertion'](_0x464150){for(const {suggestion:_0x4bb66b,meta:_0x188626}of this[_0x43a4('0xab')](_0x464150,_0x43a4('0xb6'))){if(!_0x188626[_0x43a4('0x26')])continue;const _0x58b133=_0x4bb66b[_0x43a4('0x2')]();for(const _0x419b7e of _0x58b133)if(!_0x464150[_0x43a4('0xa8')](_0x419b7e)[_0x43a4('0xb4')])return!0x0;}return!0x1;}[_0x43a4('0x24')](_0x4f08ef){const _0x3a117e=this['editor'][_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0xde'))['getUser'](_0x4f08ef);if(!_0x3a117e)throw new _0x3cc697(_0x43a4('0x4'),this);return _0x3a117e;}[_0x43a4('0x10')](_0x45dc8a){const _0x57c71e=this[_0x43a4('0x11f')][_0x43a4('0x100')][_0x43a4('0xa0')]('Users'),_0x4e8ace=_0x2f2d64(_0x43a4('0x33')+_0x45dc8a),_0x92ab3e=_0x57c71e['getUser'](_0x4e8ace);return _0x92ab3e||_0x57c71e[_0x43a4('0xa9')]({'id':_0x4e8ace,'name':_0x45dc8a});}['_createSuggestion'](_0x3891a8,_0x24ee4f,_0x45c8e8,_0x209c59,_0x5afe7f){const _0x2bd5ed=this[_0x43a4('0x24')](_0x209c59),_0x5c3b85=this['_suggestionFactory'][_0x43a4('0xbb')](_0x3891a8,_0x24ee4f,_0x45c8e8,_0x2bd5ed,_0x5afe7f,_0x1c4d5a=>this[_0x43a4('0x32')](_0x45c8e8,{'attributes':_0x1c4d5a}));return this['listenTo'](_0x5c3b85,_0x43a4('0xc5'),()=>{this['_updateSuggestionData'](_0x45c8e8,{'state':_0x43a4('0xfc')});},{'priority':_0x43a4('0xb8')}),this[_0x43a4('0x56')](_0x5c3b85,_0x43a4('0x82'),()=>{this[_0x43a4('0x32')](_0x45c8e8,{'state':'rejected'});},{'priority':'high'}),this[_0x43a4('0x3a')][_0x43a4('0x42')](_0x45c8e8,_0x5c3b85),this[_0x43a4('0x13')][_0x43a4('0x42')](_0x5c3b85,'notReady'),_0x5c3b85;}['_splitMarkerName'](_0x39893b){const _0x2c6114=_0x39893b['split'](':');return{'group':_0x2c6114[0x0],'type':_0x2c6114[0x1],'subType':_0x2c6114['length']>=0x5?_0x2c6114[0x2]:null,'id':_0x2c6114[_0x43a4('0xb4')]<0x5?_0x2c6114[0x2]:_0x2c6114[0x3],'authorId':_0x2c6114[_0x43a4('0xb4')]<0x5?_0x2c6114[0x3]:_0x2c6114[0x4],'markerCount':0x6==_0x2c6114[_0x43a4('0xb4')]?_0x2c6114[0x5]:null};}['_breakSuggestionMarker'](_0x98bddd,_0x4899b3,_0x378081){const _0x192c71=_0x98bddd['getFirstRange'](),_0x4c581a=_0x192c71[_0x43a4('0xd8')],_0x1a0fbe=_0x192c71['end'];this[_0x43a4('0xa2')](_0x98bddd,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x4c581a,_0x4899b3));const _0xdd6119=_0x33d4c9(),_0x5e8147=_0x98bddd[_0x43a4('0x59')]['id'],_0x34c069=_0x98bddd[_0x43a4('0x1c')]+(_0x98bddd[_0x43a4('0x55')]?':'+_0x98bddd[_0x43a4('0x55')]:'');this[_0x43a4('0x10b')]({'id':_0xdd6119,'type':_0x34c069,'createdAt':new Date(),'authorId':_0x5e8147,'originalSuggestionId':_0x98bddd['id'],'attributes':_0x98bddd[_0x43a4('0xbc')],'data':_0x98bddd['data']}),_0x43a4('0x84')==_0x98bddd['type']&&(_0x378081=this[_0x43a4('0x10e')][_0x43a4('0x2c')](_0x378081[_0x43a4('0x23')])),this[_0x43a4('0x35')](_0x34c069,_0xdd6119,_0x5e8147,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x378081,_0x1a0fbe));}[_0x43a4('0xab')](_0x477b4c,_0x509e2f=null){const _0x4ab7ea=[],_0xffd61=this['_model'][_0x43a4('0x2b')],_0x1bd26c=this['editor'][_0x43a4('0x100')][_0x43a4('0xa0')](_0x43a4('0xde'))['me'];for(const _0x42be6c of this[_0x43a4('0xc7')]())if(_0x42be6c['isInContent']&&(!_0x509e2f||_0x42be6c['type']==_0x509e2f))for(const _0x3727f0 of _0x42be6c['getRanges']()){const _0x31a570=_0x477b4c[_0x43a4('0xd8')][_0x43a4('0x4a')](_0x3727f0['end'])||_0x477b4c[_0x43a4('0xc9')][_0x43a4('0x4a')](_0x3727f0[_0x43a4('0xd8')]);if(_0x31a570||_0x477b4c[_0x43a4('0xb1')](_0x3727f0)){const _0x56cd97=_0x477b4c[_0x43a4('0x64')](_0x3727f0)&&Ct(_0xffd61,_0x3727f0[_0x43a4('0xd8')],_0x477b4c),_0x59fa18=_0x3727f0['containsRange'](_0x477b4c)&&Ct(_0xffd61,_0x477b4c[_0x43a4('0xd8')],_0x3727f0);_0x4ab7ea[_0x43a4('0xd7')]({'suggestion':_0x42be6c,'meta':{'isOwn':_0x1bd26c==_0x42be6c[_0x43a4('0x5e')],'isNextTo':_0x31a570,'isInsideObject':_0x56cd97,'containsRangeInObject':_0x59fa18}});break;}}return _0x4ab7ea;}[_0x43a4('0x35')](_0x46d84f,_0x4fbe96,_0x340028,_0x4bce86,_0x10c746=null){this[_0x43a4('0x10e')]['change'](_0x1cb1bc=>{let _0x4ec12d='suggestion:'+_0x46d84f+':'+_0x4fbe96+':'+_0x340028;_0x10c746&&(_0x4ec12d=_0x4ec12d+':'+_0x10c746),_0x1cb1bc[_0x43a4('0x122')](_0x4ec12d,{'range':_0x4bce86,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x43a4('0xdb')](_0x35cc9e){const _0x409b17=_0x35cc9e[_0x43a4('0x3e')],_0x12919a=_0x35cc9e[_0x43a4('0xd1')];_0x35cc9e[_0x43a4('0x3e')]=null,null!=_0x409b17&&(_0x409b17[_0x43a4('0xd1')]=null),_0x35cc9e[_0x43a4('0xd1')]=null,null!=_0x12919a&&(_0x12919a[_0x43a4('0x3e')]=null),_0x43a4('0xbe')==this[_0x43a4('0x13')][_0x43a4('0xa0')](_0x35cc9e)&&(this[_0x43a4('0x13')][_0x43a4('0x42')](_0x35cc9e,_0x43a4('0x6c')),this['fire'](_0x43a4('0x115'),_0x35cc9e,_0x409b17,_0x12919a));}[_0x43a4('0x10b')](_0x1314f9){const _0x479ce0=_0x1314f9['id'],_0xafeb84=this['addSuggestionData'](_0x1314f9);if(this[_0x43a4('0xcf')]&&this[_0x43a4('0xcf')][_0x43a4('0x60')]){const _0x5f4fb8=this['editor'][_0x43a4('0x100')]['get'](_0x43a4('0xae')),_0x42c4e7=_0xafeb84[_0x43a4('0xb3')],_0x1de6eb=_0xafeb84[_0x43a4('0x55')]?_0xafeb84['type']+':'+_0xafeb84['subType']:_0xafeb84['type'],_0x2a10ad=this['editor'][_0x43a4('0x113')],_0x2e470d=_0x5f4fb8[_0x43a4('0xd2')](_0x506731(_0x2a10ad,_0x43a4('0xf7'))),_0x503fd6={'id':_0x479ce0,'type':_0x1de6eb,'hasComments':_0x42c4e7,'data':_0x1314f9[_0x43a4('0x1a')]||null,'originalSuggestionId':_0x1314f9[_0x43a4('0xe8')]||null,'attributes':_0xafeb84['attributes']};this[_0x43a4('0xcf')][_0x43a4('0x60')](_0x503fd6)[_0x43a4('0x94')](_0x38d209=>{_0xafeb84[_0x43a4('0xa3')]=!0x0,_0x5f4fb8[_0x43a4('0xfb')](_0x2e470d),_0x38d209&&_0x38d209[_0x43a4('0x12b')]&&(this['_suggestions'][_0x43a4('0xa0')](_0x479ce0)['createdAt']=_0x38d209[_0x43a4('0x12b')]);})[_0x43a4('0x20')](_0x3bf344=>{throw _0x1bc5f3(_0x43a4('0xe1')),this[_0x43a4('0x11f')][_0x43a4('0xf9')]['enqueueChange']({'isUndoable':!0x1},()=>{_0xafeb84['discard']();}),_0xafeb84['stopListening'](),this[_0x43a4('0x3a')][_0x43a4('0x87')](_0xafeb84['id']),this['_suggestionState']['delete'](_0xafeb84),_0x3bf344;});}return _0xafeb84;}[_0x43a4('0x32')](_0xe97ceb,_0x48a5f2){const _0x581232=this[_0x43a4('0x11f')][_0x43a4('0x100')][_0x43a4('0xa0')]('PendingActions'),_0x4c5b0f=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0xe97ceb);if(this[_0x43a4('0xcf')]&&this[_0x43a4('0xcf')]['updateSuggestion']){if(_0x4c5b0f[_0x43a4('0xa3')]){const _0x4e09f9=_0x581232[_0x43a4('0xd2')](_0x506731(this['editor']['locale'],_0x43a4('0xf7')));this[_0x43a4('0xcf')][_0x43a4('0xc8')](_0xe97ceb,_0x48a5f2)['then'](()=>{_0x581232[_0x43a4('0xfb')](_0x4e09f9);});}else _0x4c5b0f['on'](_0x43a4('0xeb'),()=>{this[_0x43a4('0x32')](_0xe97ceb,_0x48a5f2);});}}[_0x43a4('0xed')](_0x189647){if(!this[_0x43a4('0xcf')]||!this[_0x43a4('0xcf')][_0x43a4('0x112')])throw new _0x3cc697('track-changes-adapter-missing-getsuggestion',this);return this[_0x43a4('0xcf')][_0x43a4('0x112')](_0x189647);}[_0x43a4('0x1d')](_0x3a89ab){const {id:_0x4f17c3,type:_0x433ed8,subType:_0x3476dc,authorId:_0x55c109}=this[_0x43a4('0x96')](_0x3a89ab),_0x42b282=this[_0x43a4('0x3a')][_0x43a4('0xa0')](_0x4f17c3)||this['_createSuggestion'](_0x433ed8,_0x3476dc,_0x4f17c3,_0x55c109);switch(this['_checkSuggestionCorrectness'](_0x42b282,_0x433ed8,_0x3476dc,_0x55c109),this[_0x43a4('0x13')][_0x43a4('0xa0')](_0x42b282)){case _0x43a4('0xd6'):this[_0x43a4('0xed')](_0x4f17c3)[_0x43a4('0x94')](_0x15393d=>{let _0x218abe=Promise['resolve']();_0x15393d[_0x43a4('0xb3')]&&(_0x218abe=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor'][_0x43a4('0x11d')][_0x43a4('0xa0')](_0x43a4('0x45')),'threadId':_0x4f17c3})),_0x218abe[_0x43a4('0x94')](()=>{this[_0x43a4('0x3d')](_0x15393d)[_0x43a4('0xa3')]=!0x0;});}),this['_suggestionState'][_0x43a4('0x42')](_0x42b282,_0x43a4('0x4e'));break;case _0x43a4('0x6c'):this[_0x43a4('0x32')](_0x4f17c3,{'state':_0x43a4('0x4f')});case _0x43a4('0xc'):this[_0x43a4('0x13')][_0x43a4('0x42')](_0x42b282,_0x43a4('0xbe')),this['fire'](_0x43a4('0x16'),_0x42b282);break;case _0x43a4('0xbe'):this[_0x43a4('0x11a')](_0x43a4('0x107'),_0x42b282);}return _0x42b282['addMarkerName'](_0x3a89ab),_0x42b282;}[_0x43a4('0xf5')](_0x1afd07){const _0x44d5f7=Array[_0x43a4('0xc3')](_0x1afd07)[_0x43a4('0x0')](_0x1cf8ff=>!_0x1cf8ff[_0x43a4('0x121')]),_0xb49aca=this[_0x43a4('0xc7')]({'skipNotAttached':!0x0})[_0x43a4('0x0')](_0x3e6700=>!_0x3e6700['isMultiRange']),_0x5e815f=_0xb49aca['filter'](_0x38af84=>!_0x1afd07[_0x43a4('0x25')](_0x38af84)),_0x2c2a35=new Map(_0xb49aca['map'](_0x2d228f=>[_0x2d228f,this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x2d228f['type'],_0x2d228f['subType'],'chain')])),_0x29e49f=new Map(_0xb49aca['map'](_0x346f5d=>[_0x346f5d,_0x346f5d[_0x43a4('0x10f')]()])),_0x24ac6c=new Set(),_0x3ce319=new Set();for(let _0x3dffc5=0x0;_0x3dffc5<_0x44d5f7[_0x43a4('0xb4')];_0x3dffc5++)_0x2addf4(_0x44d5f7[_0x3dffc5],_0x44d5f7,_0x3dffc5+0x1);for(let _0x5010af=0x0;_0x5010af<_0x44d5f7[_0x43a4('0xb4')];_0x5010af++)_0x2addf4(_0x44d5f7[_0x5010af],_0x5e815f,0x0);for(let _0x49d6ff=0x0;_0x49d6ff<_0x44d5f7[_0x43a4('0xb4')];_0x49d6ff++){const _0x2dc2b7=_0x44d5f7[_0x49d6ff];!_0x3ce319[_0x43a4('0x25')](_0x2dc2b7)&&_0x2dc2b7['previous']&&(_0x2dc2b7['previous'][_0x43a4('0xd1')]===_0x2dc2b7&&(_0x2dc2b7[_0x43a4('0x3e')][_0x43a4('0xd1')]=null),_0x2dc2b7[_0x43a4('0x3e')]=null),!_0x24ac6c['has'](_0x2dc2b7)&&_0x2dc2b7[_0x43a4('0xd1')]&&(_0x2dc2b7[_0x43a4('0xd1')][_0x43a4('0x3e')]===_0x2dc2b7&&(_0x2dc2b7[_0x43a4('0xd1')][_0x43a4('0x3e')]=null),_0x2dc2b7[_0x43a4('0xd1')]=null);}function _0x2addf4(_0x8c4a76,_0x254c22,_0x197bbc){for(let _0xda95d3=_0x197bbc;_0xda95d3<_0x254c22[_0x43a4('0xb4')];_0xda95d3++){const _0x1e97c1=_0x38aa63(_0x8c4a76,_0x254c22[_0xda95d3]);_0x1e97c1&&(_0x1e97c1[0x0][_0x43a4('0xd1')]=_0x1e97c1[0x1],_0x1e97c1[0x1][_0x43a4('0x3e')]=_0x1e97c1[0x0],_0x24ac6c['add'](_0x1e97c1[0x0]),_0x3ce319[_0x43a4('0xd2')](_0x1e97c1[0x1]));}}function _0x38aa63(_0x54a551,_0x55ffa4){if(_0x54a551[_0x43a4('0x5e')]['id']!==_0x55ffa4[_0x43a4('0x5e')]['id'])return null;const _0x54102d=_0x2c2a35[_0x43a4('0xa0')](_0x54a551)(_0x54a551,_0x55ffa4,_0x29e49f[_0x43a4('0xa0')](_0x54a551),_0x29e49f['get'](_0x55ffa4));if(!_0x54102d)return null;return _0x2c2a35[_0x43a4('0xa0')](_0x55ffa4)(_0x54a551,_0x55ffa4,_0x29e49f['get'](_0x54a551),_0x29e49f[_0x43a4('0xa0')](_0x55ffa4))?_0x54102d[0x1][_0x43a4('0x99')]&&_0x54102d[0x1][_0x43a4('0x99')][_0x43a4('0xb4')]?null:_0x54102d:null;}}[_0x43a4('0x43')](_0x6e175a){const _0x2aa50a=Array[_0x43a4('0xc3')](_0x6e175a),_0x39a57b=this[_0x43a4('0xc7')]({'skipNotAttached':!0x0}),_0x3841cd=_0x39a57b[_0x43a4('0x0')](_0x1b71ff=>!_0x6e175a['has'](_0x1b71ff)),_0x5638fc=new Map(_0x2aa50a[_0x43a4('0xe4')](_0x496d6c=>[_0x496d6c,this[_0x43a4('0x103')][_0x43a4('0xf1')](_0x496d6c[_0x43a4('0x1c')],_0x496d6c[_0x43a4('0x55')],_0x43a4('0x76'))])),_0x6cd822=new Map(_0x39a57b[_0x43a4('0xe4')](_0x2f0ab8=>[_0x2f0ab8,_0x2f0ab8[_0x43a4('0x2')]()]));for(let _0x3b603f=0x0;_0x3b603f<_0x2aa50a['length'];_0x3b603f++){if(_0x1dc763(this,_0x2aa50a[_0x3b603f],_0x2aa50a,_0x3b603f+0x1))return!0x0;}for(let _0x773a56=0x0;_0x773a56<_0x2aa50a[_0x43a4('0xb4')];_0x773a56++){if(_0x1dc763(this,_0x2aa50a[_0x773a56],_0x3841cd,0x0))return!0x0;}return!0x1;function _0x1dc763(_0x2b23a1,_0x429714,_0x4c8f42,_0x39ba5f){for(let _0x5a644d=_0x39ba5f;_0x5a644d<_0x4c8f42[_0x43a4('0xb4')];_0x5a644d++){const _0xdb0505=_0x4c8f42[_0x5a644d];if(_0xdb0505[_0x43a4('0x1c')]!==_0x429714['type']||_0xdb0505[_0x43a4('0x5e')]['id']!==_0x429714[_0x43a4('0x5e')]['id']||_0xdb0505[_0x43a4('0x55')]!==_0x429714[_0x43a4('0x55')])continue;const _0x4f6fd6=_0x5638fc[_0x43a4('0xa0')](_0x429714),_0x5215d4=_0x6cd822[_0x43a4('0xa0')](_0x429714),_0x332b05=_0x6cd822[_0x43a4('0xa0')](_0xdb0505),_0x30e1fa=_0x429714[_0x43a4('0x99')]&&_0x429714[_0x43a4('0x99')][_0x43a4('0xb4')],_0x1c43ff=_0xdb0505['commentThread']&&_0xdb0505['commentThread'][_0x43a4('0xb4')];if(!_0x30e1fa&&_0x4f6fd6(_0x332b05,_0x5215d4))return _0x2b23a1['_joinSuggestions'](_0xdb0505,_0x429714),_0x6cd822[_0x43a4('0x87')](_0x429714),!0x0;if(!_0x1c43ff&&_0x4f6fd6(_0x5215d4,_0x332b05))return _0x2b23a1[_0x43a4('0x57')](_0x429714,_0xdb0505),_0x6cd822[_0x43a4('0x87')](_0xdb0505),!0x0;}return!0x1;}}[_0x43a4('0x57')](_0x18a2e1,_0x3a3667){if(_0x18a2e1[_0x43a4('0x121')])for(const _0x8f9598 of _0x3a3667[_0x43a4('0x2')]())_0x18a2e1[_0x43a4('0x54')](_0x8f9598);else{const _0x25e1fd=_0x3a3667[_0x43a4('0x10f')]()[_0x43a4('0xc9')];this[_0x43a4('0xa2')](_0x18a2e1,this[_0x43a4('0x10e')][_0x43a4('0xe3')](_0x18a2e1['getFirstRange']()['start'],_0x25e1fd));}_0x3a3667['removeMarkers']();}}_0x2293cc(p,_0x3c7c40);class Dt{constructor(_0x8bb04){this[_0x43a4('0x8')]=_0x8bb04,this[_0x43a4('0x10e')]=_0x8bb04[_0x43a4('0xf9')],this[_0x43a4('0xa6')]=new Map(),this[_0x43a4('0x47')]=new Map(),this[_0x43a4('0x101')]();}['buildSuggestion'](_0x3e1a73,_0x1ed438,_0x1d0b77,_0x43f930,_0x210f22,_0x2d1bd6){return new _0x34bd29(this[_0x43a4('0x10e')],{'type':_0x3e1a73,'subType':_0x1ed438,'id':_0x1d0b77,'author':_0x43f930,'creator':_0x43f930,'attributes':_0x210f22,'onAttributesChange':_0x2d1bd6,'onAccept':(..._0x1cce75)=>this[_0x43a4('0xf1')](_0x3e1a73,_0x1ed438,_0x43a4('0xc5'))(..._0x1cce75),'onDiscard':(..._0x580f08)=>this[_0x43a4('0xf1')](_0x3e1a73,_0x1ed438,_0x43a4('0x82'))(..._0x580f08)});}[_0x43a4('0x98')](_0x14cde8,_0x1b5d35,_0x16b5df,_0x1d85bb){const _0x3e7171=_0x14cde8+':'+_0x1b5d35+':'+_0x16b5df;this[_0x43a4('0xa6')][_0x43a4('0x42')](_0x3e7171,_0x1d85bb);}['getSuggestionCallback'](_0x5f4bf0,_0x5a5c9d,_0x282f44){const _0x143617=_0x5f4bf0+':'+_0x5a5c9d+':'+_0x282f44;return this[_0x43a4('0xa6')][_0x43a4('0xa0')](_0x143617)||this['_defaultCallbacks'][_0x43a4('0xa0')](_0x5f4bf0+':'+_0x282f44);}[_0x43a4('0x101')](){const _0x17a4fb=()=>{},_0x35fe88=_0x42989b=>{_0x42989b[_0x43a4('0x8b')]((_0x147d46,_0x65f500)=>_0x147d46[_0x43a4('0xd8')][_0x43a4('0xad')](_0x65f500[_0x43a4('0xd8')])?0x1:-0x1),this[_0x43a4('0x10e')][_0x43a4('0xdf')](_0x43ba8c=>{for(const _0x48aad5 of _0x42989b){let _0x4c7fb7;_0x4c7fb7=_0x48aad5['end'][_0x43a4('0xd5')]&&_0x48aad5[_0x43a4('0xc9')][_0x43a4('0x23')]==_0x48aad5['start'][_0x43a4('0x90')]?_0x43ba8c[_0x43a4('0xfa')](_0x48aad5['start']['nodeAfter'],'on'):_0x43ba8c['createSelection'](_0x48aad5),this['_model']['deleteContent'](_0x4c7fb7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xb467dd=(_0x401f5a,_0x2c6a9f)=>{this['_model']['change'](_0x7cf0d0=>{const {commandName:_0x1d25fe,commandParams:_0x25ad2b=[]}=_0x2c6a9f,_0x4e1b02=_0x401f5a[_0x43a4('0xe4')](_0x14ef78=>(Bt(_0x14ef78)&&(_0x14ef78=this[_0x43a4('0x10e')]['createRange'](_0x14ef78['end'])),_0x14ef78))[_0x43a4('0x0')](_0xea0fb=>'$graveyard'!==_0xea0fb[_0x43a4('0x6f')][_0x43a4('0x95')]);if(_0x4e1b02['length']<0x1)return;const _0x25af45=Array[_0x43a4('0xc3')](this[_0x43a4('0x10e')][_0x43a4('0xb5')][_0x43a4('0xff')][_0x43a4('0x2')]())[_0x43a4('0xe4')](_0x232de4=>_0xee9b89['fromRange'](_0x232de4));_0x7cf0d0[_0x43a4('0x130')](_0x4e1b02);for(const _0x45bb8f of this[_0x43a4('0x8')][_0x43a4('0x51')][_0x43a4('0x51')]())_0x45bb8f[_0x43a4('0x46')]();_0x25ad2b[_0x43a4('0xd7')]({'forceDefaultExecution':!0x0}),this[_0x43a4('0x8')][_0x43a4('0x2d')](_0x1d25fe,..._0x25ad2b);const _0x201f1e=_0x25af45[_0x43a4('0x0')](_0x3c7050=>_0x43a4('0x91')!=_0x3c7050[_0x43a4('0x6f')][_0x43a4('0x95')]);_0x201f1e[_0x43a4('0xb4')]>0x0&&_0x7cf0d0[_0x43a4('0x130')](_0x201f1e);for(const _0x2c3cc7 of _0x25af45)_0x2c3cc7[_0x43a4('0x8e')]();});},_0x44c7d8=(_0x2b03c1,_0x597de1)=>0x1==_0x2b03c1[_0x43a4('0xb4')]&&0x1==_0x597de1[_0x43a4('0xb4')]&&_0x2b03c1[0x0]['end'][_0x43a4('0x4a')](_0x597de1[0x0][_0x43a4('0xd8')]),_0x46d56d=(_0x4b0090,_0x5beb7a,_0x5cd488,_0x263eb2)=>Rt(_0x4b0090,_0x5beb7a,_0x5cd488,_0x263eb2,this[_0x43a4('0x10e')])?[_0x4b0090,_0x5beb7a]:Rt(_0x5beb7a,_0x4b0090,_0x263eb2,_0x5cd488,this[_0x43a4('0x10e')])?[_0x5beb7a,_0x4b0090]:null;this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0xc6'),_0x17a4fb),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0x19'),_0x35fe88),this[_0x43a4('0x47')]['set'](_0x43a4('0x104'),_0x44c7d8),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0x78'),_0x46d56d),this['_defaultCallbacks'][_0x43a4('0x42')](_0x43a4('0x58'),_0x35fe88),this['_defaultCallbacks'][_0x43a4('0x42')]('deletion:discard',_0x17a4fb),this['_defaultCallbacks']['set']('deletion:join',_0x44c7d8),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0x5b'),_0x46d56d),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0x61'),_0xb467dd),this[_0x43a4('0x47')][_0x43a4('0x42')]('formatInline:discard',_0x17a4fb),this[_0x43a4('0x47')]['set'](_0x43a4('0x12f'),_0x44c7d8),this[_0x43a4('0x47')][_0x43a4('0x42')]('formatInline:chain',_0x17a4fb),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0x10d'),_0xb467dd),this['_defaultCallbacks'][_0x43a4('0x42')](_0x43a4('0x65'),_0x17a4fb),this[_0x43a4('0x47')][_0x43a4('0x42')](_0x43a4('0xa'),_0x44c7d8),this['_defaultCallbacks']['set'](_0x43a4('0x63'),_0x17a4fb);}}function Ct(_0x34869a,_0x595bd2,_0x46cd82){for(const _0x19662c of _0x595bd2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x19662c[_0x43a4('0x6f')]==_0x19662c)return!0x1;if(!_0x46cd82['containsItem'](_0x19662c))return!0x1;if(_0x34869a[_0x43a4('0xdc')](_0x19662c)||_0x34869a[_0x43a4('0x5')](_0x19662c))return!0x0;}}function Bt(_0x188a2d){return _0x188a2d[_0x43a4('0xc9')][_0x43a4('0x23')]==_0x188a2d['start']['nodeAfter']&&_0x188a2d['end'][_0x43a4('0x80')];}function _t(_0x29a9d0,_0x4792d5,_0x3cae42,_0x42fb40){const _0x4a0e47=_0x33cef8=>!_0x33cef8[_0x43a4('0xf3')]['is'](_0x43a4('0x81'))&&!_0x42fb40[_0x43a4('0xdc')](_0x33cef8['item']),_0x244fd8=_0x29a9d0[_0x43a4('0xd8')]['getLastMatchingPosition'](_0x4a0e47),_0x3d5635=_0x29a9d0[_0x43a4('0xc9')][_0x43a4('0x15')](_0x4a0e47,{'direction':_0x43a4('0xce')});return(!_0x29a9d0[_0x43a4('0xd8')]['isEqual'](_0x244fd8)||!_0x29a9d0[_0x43a4('0xc9')][_0x43a4('0x4a')](_0x3d5635))&&(_0x244fd8['isBefore'](_0x3d5635)?_0x3cae42[_0x43a4('0xd3')](_0x4792d5,{'range':_0x3cae42[_0x43a4('0xe3')](_0x244fd8,_0x3d5635)}):_0x3cae42[_0x43a4('0xef')](_0x4792d5),!0x0);}function Mt(_0x3199bd){return _0x2f2d64(_0x3199bd);}function $t(_0xfcba4b){const _0x1a6935=_0xfcba4b[_0x43a4('0xd8')][_0x43a4('0x90')];return _0x1a6935&&_0x1a6935['is'](_0x43a4('0x3'));}function Nt(_0x1b82cc,_0xcbaba7){const _0x329fda=_0xcbaba7[_0x43a4('0x2b')][_0x43a4('0xdc')](_0x1b82cc)||_0xcbaba7[_0x43a4('0x2b')][_0x43a4('0x69')](_0x1b82cc);return _0xcbaba7['createRange'](_0xcbaba7[_0x43a4('0x41')](_0x1b82cc,_0x43a4('0x6e')),_0x329fda?_0xcbaba7[_0x43a4('0x111')](_0x1b82cc):_0xcbaba7['createPositionAt'](_0x1b82cc,_0x43a4('0xc9')));}function Rt(_0x8295b8,_0x5b9cb2,_0x1ba635,_0x236cad,_0x154d4a){if(_0x1ba635[_0x43a4('0xc9')][_0x43a4('0x4a')](_0x236cad['start']))return!0x0;if(_0x8295b8[_0x43a4('0x1c')]!=_0x5b9cb2['type'])return!0x1;if(!_0x1ba635[_0x43a4('0xc9')][_0x43a4('0xda')](_0x236cad['start']))return!0x1;const _0x98316b=_0x154d4a[_0x43a4('0xe3')](_0x1ba635[_0x43a4('0xc9')],_0x236cad[_0x43a4('0xd8')])[_0x43a4('0x114')]();for(const _0x373446 of _0x98316b)if([_0x43a4('0xf'),'elementEnd'][_0x43a4('0x125')](_0x373446['type'])&&_0x154d4a[_0x43a4('0x2b')][_0x43a4('0x5')](_0x373446[_0x43a4('0xf3')]))return!0x1;return!0x0;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x943e=['CommentView','reduce','_suggestionToController','refreshSelectedViews','destroy','set','addSourceCollector','isInContent','acceptSelectedSuggestions','source','acceptButton','_destroyController','toViewElement','suggestionUnloaded','bind','commentThread','getMarkerNames','delete','CommentsUI','commands','registerAnnotation','from','some','createCommentThreadController','Discard\x20all\x20suggestions','filter','commandName','config','isMultiRange','change:previous','head','TrackChangesEditing','focus','acceptAllSuggestions','values','getContainedElement','editing','comments.maxCommentCharsWhenCollapsed','getAllAdjacentSuggestions','innerView','getSuggestion','mainView','comments.maxThreadTotalWeight','map','Accept\x20all\x20suggestions','CommentsRepository','discardButton','hasSuggestion','_initializeController','getRanges','view','change:activeAnnotations','has','_handleControllerBuffer','Accept\x20all\x20selected\x20suggestions','_handleSuggestionControllerDelayed','define','model','trackChanges.disableComments','isDirty','descriptionParts','switchbutton','stopListening','locale','isEnabled','requires','add','value','remove','_descriptionFactory','plugins','Discard\x20all\x20selected\x20suggestions','comments','keys','isOn','length','previous','execute','type','get','pluginName','unbind','TrackChangesUI','_createUIButton','trackChanges','_annotationViews','listenTo','button','toMany','suggestionChanged','comments.maxCommentsWhenCollapsed','push','discardSelectedSuggestions','suggestionLoaded','editor','_viewToController','trackChanges.SuggestionThreadView','EditorAnnotations','arrowView','activeMarkers','buttonView','discardAllSuggestions','_updateController','separator','Track\x20changes','_disableComments','suggestion-','getDescriptions','addComment','Annotations'];(function(_0x4e6e81,_0x943e4a){const _0x3c4908=function(_0xe9061a){while(--_0xe9061a){_0x4e6e81['push'](_0x4e6e81['shift']());}};_0x3c4908(++_0x943e4a);}(_0x943e,0x1ad));const _0x3c49=function(_0x4e6e81,_0x943e4a){_0x4e6e81=_0x4e6e81-0x0;let _0x3c4908=_0x943e[_0x4e6e81];return _0x3c4908;};import{Plugin as _0x204c3a}from'ckeditor5/src/core';import{Collection as _0x3faa4d}from'ckeditor5/src/utils';import{Model as _0x6aece9,SplitButtonView as _0x97d172,createDropdown as _0x41cac3,addListToDropdown as _0x194ba0}from'ckeditor5/src/ui';import{Users as _0x1201c3,getDateTimeFormatter as _0x23676a,getMarkerDomElement as _0x216206}from'ckeditor5-collaboration/src/collaboration-core';import _0x1f48f6 from'./trackchangesediting';import _0x1554c4 from'./ui/suggestioncontroller';import _0xaceac2 from'./ui/view/suggestionthreadview';import{getTranslation as _0x3330b9}from'./utils/common-translations';import _0xda00a3 from'../theme/icons/track-changes.svg';export default class d extends _0x204c3a{static get[_0x3c49('0x4c')](){return[_0x1f48f6,_0x1201c3,'CommentsRepository','Annotations',_0x3c49('0x6c')];}static get[_0x3c49('0x5b')](){return _0x3c49('0x5d');}constructor(_0x15aac7){super(_0x15aac7),this['_suggestionToController']=new Map(),this[_0x3c49('0x6a')]=new Map(),this[_0x3c49('0x60')]=new Map(),this[_0x3c49('0x40')]=new Map();const _0x4daa0b=this[_0x3c49('0x69')][_0x3c49('0x26')];_0x4daa0b[_0x3c49('0x43')](_0x3c49('0x6b'),_0xaceac2),_0x4daa0b[_0x3c49('0x43')](_0x3c49('0x45'),!0x1),this[_0x3c49('0x6')]=_0x4daa0b[_0x3c49('0x5a')](_0x3c49('0x45'));}[_0x3c49('0x42')](_0x5689a2,_0x25e253){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x30a5f5,_0xb726dd]of this[_0x3c49('0x40')]){const _0x4bb0e5=this[_0x3c49('0xd')][_0x3c49('0x3f')](_0x30a5f5);_0x4bb0e5||_0xb726dd?_0x4bb0e5&&_0xb726dd&&this[_0x3c49('0x16')](_0x30a5f5):this['_initializeController'](_0x30a5f5);}this[_0x3c49('0x69')][_0x3c49('0x51')][_0x3c49('0x5a')](_0x3c49('0x6c'))[_0x3c49('0xe')](),this[_0x3c49('0x40')]['clear']();},0xa),this[_0x3c49('0x40')][_0x3c49('0x10')](_0x5689a2,_0x25e253);}['init'](){const _0x352b2c=this['editor'],_0xf55cd4=_0x352b2c[_0x3c49('0x51')][_0x3c49('0x5a')](_0x1f48f6),_0x248476=_0x352b2c[_0x3c49('0x51')][_0x3c49('0x5a')](_0x3c49('0xa')),_0x57ff7d=_0x352b2c[_0x3c49('0x51')][_0x3c49('0x5a')]('EditorAnnotations'),_0x4c4ba1=_0x352b2c[_0x3c49('0x51')][_0x3c49('0x5a')](_0x3c49('0x38'));_0x352b2c['ui']['componentFactory'][_0x3c49('0x4d')]('trackChanges',_0x1590b2=>this['_createUIButton'](_0x1590b2)),_0x57ff7d[_0x3c49('0x11')](()=>{const _0x506de4=[];for(const [_0xd565bf,_0x359bed]of Array['from'](this[_0x3c49('0xd')])){const _0x32531b=_0xd565bf[_0x3c49('0x31')](),_0x279309=[];for(const _0x2b58b6 of _0x32531b){if(!_0x2b58b6[_0x3c49('0x12')])continue;if(_0x2b58b6[_0x3c49('0x27')]){_0x279309[_0x3c49('0x66')](..._0x2b58b6[_0x3c49('0x3c')]());continue;}const _0x425070=_0x2b58b6['getFirstRange']();if(_0x279309[_0x3c49('0x56')]>0x0){const _0x1f8a07=_0x279309[0x0]['getJoined'](_0x425070);if(_0x1f8a07){_0x279309[0x0]=_0x1f8a07;continue;}}_0x279309[_0x3c49('0x66')](_0x425070);}_0x506de4[_0x3c49('0x66')]([_0x359bed[_0x3c49('0x3d')],_0x279309]);}return _0x506de4;}),this['listenTo'](_0xf55cd4,_0x3c49('0x68'),(_0x31d381,_0x84d3a0)=>{this['listenTo'](_0x84d3a0,_0x3c49('0x28'),(_0x50aa48,_0x312bcf,_0x165ab6,_0x8d2a2)=>{_0x84d3a0[_0x3c49('0x12')]&&(null==_0x165ab6?(this[_0x3c49('0x3')](_0x8d2a2[_0x3c49('0x29')]),this[_0x3c49('0x42')](_0x84d3a0,!0x1)):(this['_updateController'](_0x165ab6[_0x3c49('0x29')]),this[_0x3c49('0x42')](_0x84d3a0,!0x0)));}),null===_0x84d3a0[_0x3c49('0x57')]?this['_handleSuggestionControllerDelayed'](_0x84d3a0,!0x1):this[_0x3c49('0x3')](_0x84d3a0['head']);}),this[_0x3c49('0x61')](_0xf55cd4,_0x3c49('0x18'),(_0x1e5515,_0x43d66b,_0x520e1e)=>{this[_0x3c49('0x49')](_0x43d66b,_0x3c49('0x28')),this[_0x3c49('0x40')][_0x3c49('0x1c')](_0x43d66b);const _0xb3d5e0=_0x520e1e?_0x520e1e[_0x3c49('0x29')]:_0x43d66b,_0x3d6287=this['_suggestionToController'][_0x3c49('0x5a')](_0xb3d5e0);null!==_0x520e1e&&this[_0x3c49('0x3')](_0xb3d5e0),null===_0x520e1e&&_0x3d6287&&this[_0x3c49('0x16')](_0x43d66b);}),this[_0x3c49('0x61')](_0xf55cd4,_0x3c49('0x64'),(_0x228f30,_0x4cd4dd)=>{this['_updateController'](_0x4cd4dd);}),this[_0x3c49('0x61')](_0x248476,_0x3c49('0x3e'),(_0x2fc951,_0x4d3f76,_0x4072a2)=>{const _0x3c7570=Array[_0x3c49('0x20')](_0x4072a2,_0x48e461=>_0x48e461[_0x3c49('0x32')])[_0x3c49('0x24')](_0x23a131=>this[_0x3c49('0x6a')]['has'](_0x23a131)),_0x1f458b=[];for(const _0x23b4d0 of _0x3c7570){const _0x3e2f23=this[_0x3c49('0x6a')][_0x3c49('0x5a')](_0x23b4d0)['model'][_0x3c49('0x31')]();_0x1f458b[_0x3c49('0x66')](..._0x3e2f23[_0x3c49('0xc')]((_0x45cceb,_0x198fe9)=>[..._0x45cceb,..._0x198fe9[_0x3c49('0x1b')]()],[]));}_0xf55cd4[_0x3c49('0x0')]=_0x1f458b;}),this[_0x3c49('0x61')](_0x4c4ba1,_0x3c49('0x9'),(_0x4731df,{threadId:_0x11bf53,isFromAdapter:_0x345f5f})=>{if(_0x345f5f||!_0xf55cd4[_0x3c49('0x3a')](_0x11bf53))return;const _0x34a3bb=_0xf55cd4[_0x3c49('0x33')](_0x11bf53);this[_0x3c49('0xd')][_0x3c49('0x5a')](_0x34a3bb)[_0x3c49('0x3d')]['focus']();},{'priority':'lowest'});}[_0x3c49('0x5e')](_0x19a0e7){const _0x4ff65e=_0x41cac3(_0x19a0e7,_0x97d172),_0x33f54e=this[_0x3c49('0x69')]['commands'][_0x3c49('0x5a')](_0x3c49('0x5f')),_0x2c1b46=_0x3330b9(_0x19a0e7,_0x3c49('0x5'));_0x4ff65e['buttonView'][_0x3c49('0x10')]({'tooltip':_0x2c1b46,'label':_0x2c1b46,'icon':_0xda00a3}),_0x4ff65e[_0x3c49('0x1')][_0x3c49('0x19')]('isOn')['to'](_0x33f54e,'value'),_0x4ff65e[_0x3c49('0x1')]['on'](_0x3c49('0x58'),()=>{_0x33f54e[_0x3c49('0x58')](),this[_0x3c49('0x69')][_0x3c49('0x2f')]['view'][_0x3c49('0x2b')]();});const _0x24b1d6=new _0x3faa4d(),_0x5844d0=[{'type':_0x3c49('0x48'),'model':{'withText':!0x0,'label':_0x2c1b46,'commandName':_0x3c49('0x5f')}},{'type':_0x3c49('0x4')},{'type':_0x3c49('0x62'),'model':{'withText':!0x0,'label':_0x3330b9(_0x19a0e7,_0x3c49('0x37')),'commandName':_0x3c49('0x2c')}},{'type':_0x3c49('0x62'),'model':{'withText':!0x0,'label':_0x3330b9(_0x19a0e7,_0x3c49('0x41')),'commandName':_0x3c49('0x13')}},{'type':_0x3c49('0x62'),'model':{'withText':!0x0,'label':_0x3330b9(_0x19a0e7,_0x3c49('0x23')),'commandName':_0x3c49('0x2')}},{'type':_0x3c49('0x62'),'model':{'withText':!0x0,'label':_0x3330b9(_0x19a0e7,_0x3c49('0x52')),'commandName':_0x3c49('0x67')}}];for(const _0x2fded2 of _0x5844d0){const _0x587459={'type':_0x2fded2[_0x3c49('0x59')]};if(_0x2fded2['model']){const _0x5c0daa=new _0x6aece9(_0x2fded2[_0x3c49('0x44')]),_0x3d2818=this[_0x3c49('0x69')][_0x3c49('0x1e')]['get'](_0x5c0daa['commandName']);_0x5c0daa[_0x3c49('0x19')](_0x3c49('0x55'),_0x3c49('0x4b'))['to'](_0x3d2818,_0x3c49('0x4e'),'isEnabled'),_0x587459[_0x3c49('0x44')]=_0x5c0daa;}_0x24b1d6['add'](_0x587459);}_0x194ba0(_0x4ff65e,_0x24b1d6);const _0x2faf61=_0x5844d0[_0x3c49('0x24')](_0x47ddee=>null!=_0x47ddee['model'])[_0x3c49('0x36')](_0x48a74d=>this[_0x3c49('0x69')][_0x3c49('0x1e')][_0x3c49('0x5a')](_0x48a74d[_0x3c49('0x44')]['commandName']));return _0x4ff65e['buttonView']['actionView']['unbind']('isEnabled'),_0x4ff65e[_0x3c49('0x1')]['arrowView'][_0x3c49('0x5c')](_0x3c49('0x4b')),_0x4ff65e[_0x3c49('0x1')]['actionView'][_0x3c49('0x19')]('isEnabled')['to'](_0x33f54e,_0x3c49('0x4b')),_0x4ff65e[_0x3c49('0x1')][_0x3c49('0x6d')]['bind'](_0x3c49('0x4b'))[_0x3c49('0x63')](_0x2faf61,_0x3c49('0x4b'),(..._0x52fd9a)=>_0x52fd9a[_0x3c49('0x21')](_0x1b874d=>_0x1b874d)),_0x4ff65e['on'](_0x3c49('0x58'),_0x27dae4=>{this[_0x3c49('0x69')][_0x3c49('0x58')](_0x27dae4[_0x3c49('0x14')][_0x3c49('0x25')]),this['editor'][_0x3c49('0x2f')]['view'][_0x3c49('0x2b')]();}),_0x4ff65e;}[_0x3c49('0x3b')](_0x5c1d15){const _0x55953c=this[_0x3c49('0x69')],_0x532114=_0x55953c[_0x3c49('0x26')],_0x47e0f4=_0x55953c[_0x3c49('0x51')][_0x3c49('0x5a')](_0x3c49('0xa')),_0x3bf011=_0x55953c['plugins'][_0x3c49('0x5a')]('CommentsRepository'),_0x306f25=_0x55953c[_0x3c49('0x51')][_0x3c49('0x5a')](_0x3c49('0x6c')),_0x11f1c3=_0x5c1d15['getAllAdjacentSuggestions']()['filter'](_0x5c8de4=>_0x5c8de4['isInContent']),_0x41bc7c=_0x55953c[_0x3c49('0x51')][_0x3c49('0x5a')](_0x1201c3)['me'],_0x6328f8=_0x532114[_0x3c49('0x5a')](_0x3c49('0x5f'))['SuggestionThreadView'],{CommentsListView:_0x3c6ba0,CommentThreadInputView:_0x2ed928}=_0x55953c[_0x3c49('0x51')][_0x3c49('0x5a')](_0x3c49('0x1d'));let _0x43258e,_0xf3c6e6;this[_0x3c49('0x60')][_0x3c49('0x3f')](_0x5c1d15['id'])?(_0xf3c6e6=this['_annotationViews'][_0x3c49('0x5a')](_0x5c1d15['id']),_0x43258e=_0xf3c6e6[_0x3c49('0x34')]):(_0x43258e=new _0x6328f8(_0x55953c[_0x3c49('0x4a')],_0x5c1d15,_0x41bc7c,{'disableComments':this[_0x3c49('0x6')],'editorConfig':_0x532114[_0x3c49('0x5a')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x532114[_0x3c49('0x5a')](_0x3c49('0x65')),'maxThreadTotalWeight':_0x532114['get'](_0x3c49('0x35')),'maxCommentCharsWhenCollapsed':_0x532114[_0x3c49('0x5a')](_0x3c49('0x30')),'formatDateTime':_0x23676a(_0x532114[_0x3c49('0x5a')]('locale')),'CommentView':_0x532114[_0x3c49('0x5a')](_0x3c49('0x53'))[_0x3c49('0xb')],'CommentsListView':_0x3c6ba0,'CommentThreadInputView':_0x2ed928}),_0x43258e[_0x3c49('0x15')]['on'](_0x3c49('0x58'),()=>{_0x55953c['editing']['view'][_0x3c49('0x2b')]();}),_0x43258e[_0x3c49('0x39')]['on'](_0x3c49('0x58'),()=>{_0x55953c['editing']['view'][_0x3c49('0x2b')]();}),_0xf3c6e6=_0x47e0f4['createAnnotationView'](this[_0x3c49('0x69')][_0x3c49('0x4a')],_0x43258e),_0xf3c6e6['bind'](_0x3c49('0x46'))['to'](_0x43258e,'isDirty'),_0xf3c6e6[_0x3c49('0x19')](_0x3c49('0x56'))['to'](_0x43258e),_0xf3c6e6[_0x3c49('0x19')](_0x3c49('0x59'))['to'](_0x43258e,_0x3c49('0x59'),_0x333381=>_0x3c49('0x7')+_0x333381),this[_0x3c49('0x60')][_0x3c49('0x10')](_0x5c1d15['id'],_0xf3c6e6));const _0x27830c=_0x3bf011[_0x3c49('0x22')](_0x5c1d15[_0x3c49('0x1a')],_0x43258e),_0x880526=new _0x1554c4(_0x55953c,_0x5c1d15,_0x43258e,_0x27830c);_0x43258e[_0x3c49('0x47')]=_0x55953c['plugins'][_0x3c49('0x5a')](_0x3c49('0x2a'))[_0x3c49('0x50')][_0x3c49('0x8')](_0x11f1c3),this[_0x3c49('0xd')][_0x3c49('0x10')](_0x5c1d15,_0x880526),this['_viewToController'][_0x3c49('0x10')](_0x43258e,_0x880526);const _0x503a72=_0x47e0f4['createAnnotation']({'view':_0xf3c6e6,'target':()=>{const _0x53f42e=_0x11f1c3[0x0]['getFirstMarker']();if(!_0x53f42e)return null;const _0x1e2279=_0x53f42e['getRange']()[_0x3c49('0x2e')]();return _0x1e2279&&!_0x55953c['editing']['mapper'][_0x3c49('0x17')](_0x1e2279)?null:_0x216206(_0x55953c['editing'],_0x53f42e)||null;},'type':()=>'suggestion-'+_0x880526['view']['type']});_0x47e0f4[_0x3c49('0x4d')](_0x503a72),_0x306f25[_0x3c49('0x1f')](_0x503a72);}[_0x3c49('0x16')](_0x5b659b){const _0x4fe85f=this[_0x3c49('0x69')][_0x3c49('0x51')][_0x3c49('0x5a')]('Annotations'),_0x15901a=this[_0x3c49('0xd')][_0x3c49('0x5a')](_0x5b659b),_0x4ec202=_0x15901a[_0x3c49('0x3d')],_0x232f47=_0x4fe85f['getByInnerView'](_0x4ec202);_0x232f47&&_0x4fe85f[_0x3c49('0x4f')](_0x232f47),this[_0x3c49('0xd')]['delete'](_0x5b659b),this[_0x3c49('0x6a')][_0x3c49('0x1c')](_0x4ec202),_0x15901a[_0x3c49('0xf')]();}[_0x3c49('0x3')](_0x1df50a){if(!_0x1df50a[_0x3c49('0x12')]||!this[_0x3c49('0xd')][_0x3c49('0x3f')](_0x1df50a))return;const _0x7c9662=this['editor'][_0x3c49('0x51')][_0x3c49('0x5a')]('TrackChangesEditing'),_0x5aa960=this[_0x3c49('0xd')][_0x3c49('0x5a')](_0x1df50a),_0x248a79=_0x1df50a[_0x3c49('0x31')]();_0x5aa960[_0x3c49('0x3d')][_0x3c49('0x47')]=_0x7c9662[_0x3c49('0x50')]['getDescriptions'](_0x248a79);}['destroy'](){for(const _0x4dd490 of this[_0x3c49('0xd')][_0x3c49('0x54')]())this['_destroyController'](_0x4dd490);for(const _0x3fba4b of this[_0x3c49('0x60')][_0x3c49('0x2d')]())_0x3fba4b[_0x3c49('0x34')][_0x3c49('0xf')]();super[_0x3c49('0xf')]();}}
23
+ const _0x44b9=['componentFactory','pluginName','Track\x20changes','delete','unbind','add','TrackChangesUI','get','type','lowest','arrowView','isOn','acceptButton','switchbutton','map','_createUIButton','source','destroy','refreshSelectedViews','discardAllSuggestions','CommentsRepository','change:activeAnnotations','Annotations','push','_handleControllerBuffer','stopListening','focus','commentThread','editor','createAnnotation','isEnabled','_updateController','commandName','hasSuggestion','Accept\x20all\x20suggestions','model','change:previous','isInContent','_handleSuggestionControllerDelayed','Discard\x20all\x20selected\x20suggestions','_refreshActiveMarkers','clear','config','descriptionParts','suggestion-','_suggestionToController','TrackChangesEditing','editing','isDirty','reduce','_destroyController','addSourceCollector','suggestionChanged','bind','view','init','length','CommentsUI','_descriptionFactory','Accept\x20all\x20selected\x20suggestions','innerView','comments','suggestionUnloaded','getMarkerNames','EditorAnnotations','createCommentThreadController','getDescriptions','trackChanges.disableComments','value','define','from','mainView','head','_viewToController','SuggestionThreadView','locale','isMultiRange','getSuggestion','_disableComments','registerAnnotation','acceptAllSuggestions','activeAnnotations','has','listenTo','size','button','addComment','set','keys','discardButton','actionView','_annotationViews','getRanges','createAnnotationView','commands','plugins','Discard\x20all\x20suggestions','getMarkers','toMany','acceptSelectedSuggestions','values','execute','trackChanges','buttonView','filter','getAllAdjacentSuggestions','previous','comments.maxCommentsWhenCollapsed','some'];(function(_0x3139c7,_0x44b99f){const _0x15be38=function(_0x26d2e8){while(--_0x26d2e8){_0x3139c7['push'](_0x3139c7['shift']());}};_0x15be38(++_0x44b99f);}(_0x44b9,0x132));const _0x15be=function(_0x3139c7,_0x44b99f){_0x3139c7=_0x3139c7-0x0;let _0x15be38=_0x44b9[_0x3139c7];return _0x15be38;};import{Plugin as _0x556c99}from'ckeditor5/src/core';import{Collection as _0x348ad8}from'ckeditor5/src/utils';import{Model as _0x6746a1,SplitButtonView as _0x298ef3,createDropdown as _0x263189,addListToDropdown as _0xd2bca7}from'ckeditor5/src/ui';import{Users as _0x3f1c77,getDateTimeFormatter as _0x17a5ef,getAllMarkersDomElementsSorted as _0x6b5b22}from'ckeditor5-collaboration/src/collaboration-core';import _0x461689 from'./trackchangesediting';import _0x173c1b from'./ui/suggestioncontroller';import _0x158b9f from'./ui/view/suggestionthreadview';import{getTranslation as _0x6a6c28}from'./utils/common-translations';import _0x3f5ea4 from'../theme/icons/track-changes.svg';export default class d extends _0x556c99{static get['requires'](){return[_0x461689,_0x3f1c77,'CommentsRepository',_0x15be('0x2b'),'EditorAnnotations'];}static get[_0x15be('0x16')](){return _0x15be('0x1b');}constructor(_0xd6ca53){super(_0xd6ca53),this[_0x15be('0x42')]=new Map(),this[_0x15be('0x5e')]=new Map(),this[_0x15be('0x3')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x195788=this['editor'][_0x15be('0x3f')];_0x195788[_0x15be('0x5a')]('trackChanges.SuggestionThreadView',_0x158b9f),_0x195788['define']('trackChanges.disableComments',!0x1),this[_0x15be('0x63')]=_0x195788[_0x15be('0x1c')](_0x15be('0x58'));}[_0x15be('0x3b')](_0x54eb76,_0x3f8f00){0x0===this['_handleControllerBuffer'][_0x15be('0x69')]&&setTimeout(()=>{for(const [_0x4d14a6,_0x184059]of this['_handleControllerBuffer']){const _0x471f86=this[_0x15be('0x42')]['has'](_0x4d14a6);_0x471f86||_0x184059?_0x471f86&&_0x184059&&this[_0x15be('0x47')](_0x4d14a6):this['_initializeController'](_0x4d14a6);}this[_0x15be('0x31')][_0x15be('0x7')]['get']('EditorAnnotations')[_0x15be('0x27')](),this[_0x15be('0x3d')](),this[_0x15be('0x2d')][_0x15be('0x3e')]();},0xa),this[_0x15be('0x2d')][_0x15be('0x6c')](_0x54eb76,_0x3f8f00);}[_0x15be('0x4c')](){const _0x2f95d3=this['editor'],_0x40dd1f=_0x2f95d3[_0x15be('0x7')]['get'](_0x461689),_0x54e717=_0x2f95d3['plugins'][_0x15be('0x1c')](_0x15be('0x2b')),_0x5e4a84=_0x2f95d3[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x55')),_0x390f40=_0x2f95d3[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x29'));_0x2f95d3['ui'][_0x15be('0x15')][_0x15be('0x1a')](_0x15be('0xe'),_0x37a02a=>this[_0x15be('0x24')](_0x37a02a)),_0x5e4a84[_0x15be('0x48')](()=>{const _0x286f22=[];for(const [_0x2506e5,_0x3a1fbd]of Array['from'](this[_0x15be('0x42')])){const _0x49f7c9=_0x2506e5[_0x15be('0x11')](),_0x202c7f=[];for(const _0x4370c1 of _0x49f7c9){if(!_0x4370c1[_0x15be('0x3a')])continue;if(_0x4370c1[_0x15be('0x61')]){_0x202c7f['push'](..._0x4370c1[_0x15be('0x4')]());continue;}const _0x10144b=_0x4370c1['getFirstRange']();if(_0x202c7f[_0x15be('0x4d')]>0x0){const _0x580415=_0x202c7f[0x0]['getJoined'](_0x10144b);if(_0x580415){_0x202c7f[0x0]=_0x580415;continue;}}_0x202c7f[_0x15be('0x2c')](_0x10144b);}_0x286f22[_0x15be('0x2c')]([_0x3a1fbd['view'],_0x202c7f]);}return _0x286f22;}),this[_0x15be('0x68')](_0x40dd1f,'suggestionLoaded',(_0x57d54f,_0x1f0b9c)=>{this[_0x15be('0x68')](_0x1f0b9c,_0x15be('0x39'),(_0x467cb9,_0x4225f9,_0xea58e1,_0x20f5a5)=>{_0x1f0b9c[_0x15be('0x3a')]&&(null==_0xea58e1?(this[_0x15be('0x34')](_0x20f5a5[_0x15be('0x5d')]),this[_0x15be('0x3b')](_0x1f0b9c,!0x1)):(this[_0x15be('0x34')](_0xea58e1[_0x15be('0x5d')]),this[_0x15be('0x3b')](_0x1f0b9c,!0x0)));}),null===_0x1f0b9c[_0x15be('0x12')]?this['_handleSuggestionControllerDelayed'](_0x1f0b9c,!0x1):this[_0x15be('0x34')](_0x1f0b9c[_0x15be('0x5d')]);}),this[_0x15be('0x68')](_0x40dd1f,_0x15be('0x53'),(_0x442fef,_0x3e4e53,_0x2f0b20)=>{this[_0x15be('0x2e')](_0x3e4e53,_0x15be('0x39')),this[_0x15be('0x2d')][_0x15be('0x18')](_0x3e4e53);const _0x289bdb=_0x2f0b20?_0x2f0b20[_0x15be('0x5d')]:_0x3e4e53,_0x9b5f71=this[_0x15be('0x42')][_0x15be('0x1c')](_0x289bdb);null!==_0x2f0b20&&this[_0x15be('0x34')](_0x289bdb),null===_0x2f0b20&&_0x9b5f71&&this['_destroyController'](_0x3e4e53);}),this[_0x15be('0x68')](_0x40dd1f,_0x15be('0x49'),(_0x168aaf,_0x342b6a)=>{this[_0x15be('0x34')](_0x342b6a);}),this['listenTo'](_0x54e717,_0x15be('0x2a'),()=>{this[_0x15be('0x3d')]();}),this[_0x15be('0x68')](_0x390f40,_0x15be('0x6b'),(_0x379bba,{threadId:_0x5cd6b0,isFromAdapter:_0x46a12f})=>{if(_0x46a12f||!_0x40dd1f[_0x15be('0x36')](_0x5cd6b0))return;const _0x32df9e=_0x40dd1f[_0x15be('0x62')](_0x5cd6b0);this[_0x15be('0x42')][_0x15be('0x1c')](_0x32df9e)[_0x15be('0x4b')]['focus']();},{'priority':_0x15be('0x1e')});}[_0x15be('0x3d')](){const _0x50ab7a=this[_0x15be('0x31')]['plugins'][_0x15be('0x1c')](_0x15be('0x2b')),_0x3615ad=this[_0x15be('0x31')][_0x15be('0x7')]['get'](_0x461689),_0x337571=Array[_0x15be('0x5b')](_0x50ab7a[_0x15be('0x66')],_0x1b8964=>_0x1b8964[_0x15be('0x51')])[_0x15be('0x10')](_0x22cae8=>this[_0x15be('0x5e')]['has'](_0x22cae8)),_0x4471ef=[];for(const _0x166d27 of _0x337571){const _0x3fb4ac=this[_0x15be('0x5e')]['get'](_0x166d27)[_0x15be('0x38')][_0x15be('0x11')]();_0x4471ef['push'](..._0x3fb4ac[_0x15be('0x46')]((_0x432611,_0x676381)=>[..._0x432611,..._0x676381[_0x15be('0x54')]()],[]));}_0x3615ad['activeMarkers']=_0x4471ef;}[_0x15be('0x24')](_0x296d4f){const _0x5d9298=_0x263189(_0x296d4f,_0x298ef3),_0x3b31d5=this[_0x15be('0x31')][_0x15be('0x6')][_0x15be('0x1c')](_0x15be('0xe')),_0x5781e5=_0x6a6c28(_0x296d4f,_0x15be('0x17'));_0x5d9298[_0x15be('0xf')][_0x15be('0x6c')]({'tooltip':_0x5781e5,'label':_0x5781e5,'icon':_0x3f5ea4}),_0x5d9298[_0x15be('0xf')][_0x15be('0x4a')](_0x15be('0x20'))['to'](_0x3b31d5,_0x15be('0x59')),_0x5d9298[_0x15be('0xf')]['on'](_0x15be('0xd'),()=>{_0x3b31d5[_0x15be('0xd')](),this['editor'][_0x15be('0x44')][_0x15be('0x4b')][_0x15be('0x2f')]();});const _0xcb8896=new _0x348ad8(),_0xeb5659=[{'type':_0x15be('0x22'),'model':{'withText':!0x0,'label':_0x5781e5,'commandName':_0x15be('0xe')}},{'type':'separator'},{'type':_0x15be('0x6a'),'model':{'withText':!0x0,'label':_0x6a6c28(_0x296d4f,_0x15be('0x37')),'commandName':_0x15be('0x65')}},{'type':_0x15be('0x6a'),'model':{'withText':!0x0,'label':_0x6a6c28(_0x296d4f,_0x15be('0x50')),'commandName':_0x15be('0xb')}},{'type':'button','model':{'withText':!0x0,'label':_0x6a6c28(_0x296d4f,_0x15be('0x8')),'commandName':_0x15be('0x28')}},{'type':_0x15be('0x6a'),'model':{'withText':!0x0,'label':_0x6a6c28(_0x296d4f,_0x15be('0x3c')),'commandName':'discardSelectedSuggestions'}}];for(const _0x4c0d1b of _0xeb5659){const _0x5d87a7={'type':_0x4c0d1b['type']};if(_0x4c0d1b[_0x15be('0x38')]){const _0x5ad30a=new _0x6746a1(_0x4c0d1b[_0x15be('0x38')]),_0x131042=this['editor']['commands'][_0x15be('0x1c')](_0x5ad30a['commandName']);_0x5ad30a[_0x15be('0x4a')](_0x15be('0x20'),_0x15be('0x33'))['to'](_0x131042,_0x15be('0x59'),_0x15be('0x33')),_0x5d87a7[_0x15be('0x38')]=_0x5ad30a;}_0xcb8896[_0x15be('0x1a')](_0x5d87a7);}_0xd2bca7(_0x5d9298,_0xcb8896);const _0x2a5eca=_0xeb5659['filter'](_0x4b3a00=>null!=_0x4b3a00['model'])[_0x15be('0x23')](_0x7a9012=>this[_0x15be('0x31')][_0x15be('0x6')][_0x15be('0x1c')](_0x7a9012[_0x15be('0x38')][_0x15be('0x35')]));return _0x5d9298[_0x15be('0xf')][_0x15be('0x2')][_0x15be('0x19')](_0x15be('0x33')),_0x5d9298[_0x15be('0xf')][_0x15be('0x1f')]['unbind'](_0x15be('0x33')),_0x5d9298[_0x15be('0xf')][_0x15be('0x2')][_0x15be('0x4a')](_0x15be('0x33'))['to'](_0x3b31d5,_0x15be('0x33')),_0x5d9298[_0x15be('0xf')][_0x15be('0x1f')]['bind']('isEnabled')[_0x15be('0xa')](_0x2a5eca,'isEnabled',(..._0x440a93)=>_0x440a93[_0x15be('0x14')](_0x3ab039=>_0x3ab039)),_0x5d9298['on']('execute',_0x32ab93=>{this[_0x15be('0x31')]['execute'](_0x32ab93[_0x15be('0x25')]['commandName']),this[_0x15be('0x31')][_0x15be('0x44')][_0x15be('0x4b')][_0x15be('0x2f')]();}),_0x5d9298;}['_initializeController'](_0x4595e7){const _0x427460=this['editor'],_0x11b75b=_0x427460[_0x15be('0x3f')],_0x2e45c6=_0x427460[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x2b')),_0x4760a6=_0x427460[_0x15be('0x7')]['get'](_0x15be('0x29')),_0x9edea7=_0x427460[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x55')),_0x2a7039=_0x427460[_0x15be('0x7')]['get'](_0x3f1c77)['me'],_0x16761b=_0x11b75b[_0x15be('0x1c')](_0x15be('0xe'))[_0x15be('0x5f')],{CommentsListView:_0x18c8ba,CommentThreadInputView:_0x553f34}=_0x427460[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x4e'));let _0x24224f,_0x209353;this[_0x15be('0x3')]['has'](_0x4595e7['id'])?(_0x209353=this[_0x15be('0x3')][_0x15be('0x1c')](_0x4595e7['id']),_0x24224f=_0x209353['mainView']):(_0x24224f=new _0x16761b(_0x427460['locale'],_0x4595e7,_0x2a7039,{'disableComments':this[_0x15be('0x63')],'editorConfig':_0x11b75b[_0x15be('0x1c')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x11b75b['get'](_0x15be('0x13')),'maxThreadTotalWeight':_0x11b75b[_0x15be('0x1c')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x11b75b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x17a5ef(_0x11b75b['get'](_0x15be('0x60'))),'CommentView':_0x11b75b[_0x15be('0x1c')](_0x15be('0x52'))['CommentView'],'CommentsListView':_0x18c8ba,'CommentThreadInputView':_0x553f34}),_0x24224f[_0x15be('0x21')]['on'](_0x15be('0xd'),()=>{_0x427460[_0x15be('0x44')][_0x15be('0x4b')][_0x15be('0x2f')]();}),_0x24224f[_0x15be('0x1')]['on']('execute',()=>{_0x427460[_0x15be('0x44')]['view'][_0x15be('0x2f')]();}),_0x209353=_0x2e45c6[_0x15be('0x5')](this['editor']['locale'],_0x24224f),_0x209353[_0x15be('0x4a')](_0x15be('0x45'))['to'](_0x24224f,_0x15be('0x45')),_0x209353['bind'](_0x15be('0x4d'))['to'](_0x24224f),_0x209353[_0x15be('0x4a')](_0x15be('0x1d'))['to'](_0x24224f,'type',_0x1d9eb4=>_0x15be('0x41')+_0x1d9eb4),this[_0x15be('0x3')][_0x15be('0x6c')](_0x4595e7['id'],_0x209353));const _0x1a86d2=_0x4760a6[_0x15be('0x56')](_0x4595e7[_0x15be('0x30')],_0x24224f),_0x392ed=new _0x173c1b(_0x427460,_0x4595e7,_0x24224f,_0x1a86d2),_0x20d3f1=_0x4595e7[_0x15be('0x11')]()[_0x15be('0x10')](_0x3160b7=>_0x3160b7[_0x15be('0x3a')]);_0x24224f[_0x15be('0x40')]=_0x427460[_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x43'))[_0x15be('0x4f')][_0x15be('0x57')](_0x20d3f1),this[_0x15be('0x42')][_0x15be('0x6c')](_0x4595e7,_0x392ed),this['_viewToController']['set'](_0x24224f,_0x392ed);const _0x43af46=_0x2e45c6[_0x15be('0x32')]({'view':_0x209353,'target':()=>{const _0x5886e4=[],_0x424c73=_0x4595e7[_0x15be('0x11')]()['filter'](_0x36f23f=>_0x36f23f[_0x15be('0x3a')]);for(const _0x4cadfd of _0x424c73)_0x5886e4[_0x15be('0x2c')](..._0x4cadfd[_0x15be('0x9')]());return _0x6b5b22(_0x427460[_0x15be('0x44')],_0x5886e4);},'type':()=>_0x15be('0x41')+_0x392ed[_0x15be('0x4b')]['type']});_0x2e45c6['add'](_0x43af46),_0x9edea7[_0x15be('0x64')](_0x43af46);}[_0x15be('0x47')](_0x6eaebe){const _0x4adb85=this[_0x15be('0x31')][_0x15be('0x7')][_0x15be('0x1c')](_0x15be('0x2b')),_0xe81609=this[_0x15be('0x42')][_0x15be('0x1c')](_0x6eaebe),_0x2426a8=_0xe81609[_0x15be('0x4b')],_0x1df149=_0x4adb85['getByInnerView'](_0x2426a8);_0x1df149&&_0x4adb85['remove'](_0x1df149),this['_suggestionToController'][_0x15be('0x18')](_0x6eaebe),this[_0x15be('0x5e')][_0x15be('0x18')](_0x2426a8),_0xe81609[_0x15be('0x26')]();}['_updateController'](_0x2a3a30){if(!_0x2a3a30['isInContent']||!this[_0x15be('0x42')][_0x15be('0x67')](_0x2a3a30))return;const _0x5c76ec=this['editor']['plugins'][_0x15be('0x1c')](_0x15be('0x43')),_0x654315=this[_0x15be('0x42')][_0x15be('0x1c')](_0x2a3a30),_0x3a2c8b=_0x2a3a30['getAllAdjacentSuggestions']();_0x654315[_0x15be('0x4b')]['descriptionParts']=_0x5c76ec['_descriptionFactory'][_0x15be('0x57')](_0x3a2c8b);}[_0x15be('0x26')](){for(const _0x399de6 of this[_0x15be('0x42')][_0x15be('0x0')]())this[_0x15be('0x47')](_0x399de6);for(const _0x11f6f5 of this[_0x15be('0x3')][_0x15be('0xc')]())_0x11f6f5[_0x15be('0x5c')]['destroy']();super['destroy']();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15dc=['bind','listenTo','discardSuggestion','unbind','plugins','destroy','_removePendingAction','commentThreadController','view','PENDING_ACTION_SUGGESTION','_acceptCommand','execute','isEnabled','add','isDirty','locale','_editor','_discardCommand','_setPendingAction','_pendingAction','acceptSuggestion','stopListening','get','commands','model'];(function(_0x48b7a5,_0x15dc03){const _0x27cf56=function(_0x21b16a){while(--_0x21b16a){_0x48b7a5['push'](_0x48b7a5['shift']());}};_0x27cf56(++_0x15dc03);}(_0x15dc,0x195));const _0x27cf=function(_0x48b7a5,_0x15dc03){_0x48b7a5=_0x48b7a5-0x0;let _0x27cf56=_0x15dc[_0x48b7a5];return _0x27cf56;};import{ObservableMixin as _0x5c2e49,mix as _0x1d30eb}from'ckeditor5/src/utils';import{getTranslation as _0x2d6532}from'../utils/common-translations';export default class Mt{constructor(_0x491844,_0x314628,_0x53d40d,_0x33703c){this[_0x27cf('0x13')]=_0x314628,this[_0x27cf('0x3')]=_0x53d40d,this['commentThreadController']=_0x33703c,this[_0x27cf('0xb')]=_0x491844,this[_0x27cf('0x5')]=_0x491844[_0x27cf('0x12')][_0x27cf('0x11')](_0x27cf('0xf')),this[_0x27cf('0xc')]=_0x491844[_0x27cf('0x12')][_0x27cf('0x11')](_0x27cf('0x16')),this[_0x27cf('0x3')][_0x27cf('0x14')](_0x27cf('0x7'))['to'](this[_0x27cf('0x5')]),this['_pendingAction']=null,_0x53d40d[_0x27cf('0x9')]&&this[_0x27cf('0xd')](),this[_0x27cf('0x15')](_0x53d40d,_0x27cf('0xf'),()=>this[_0x27cf('0xf')]()),this[_0x27cf('0x15')](_0x53d40d,'discardSuggestion',()=>this[_0x27cf('0x16')]()),this[_0x27cf('0x15')](_0x53d40d,'change:isDirty',()=>{_0x53d40d[_0x27cf('0x9')]?this[_0x27cf('0xd')]():this['_removePendingAction']();});}[_0x27cf('0xf')](){this[_0x27cf('0x5')][_0x27cf('0x6')](this[_0x27cf('0x13')]['id']);}[_0x27cf('0x16')](){this['_discardCommand'][_0x27cf('0x6')](this['model']['id']);}['destroy'](){this[_0x27cf('0x3')][_0x27cf('0x17')](_0x27cf('0x7')),this[_0x27cf('0x10')](),this[_0x27cf('0x2')][_0x27cf('0x0')](),this[_0x27cf('0xe')]&&this[_0x27cf('0x1')]();}['_setPendingAction'](){const _0x39fbc8=_0x2d6532(this[_0x27cf('0xb')][_0x27cf('0xa')],_0x27cf('0x4'));this[_0x27cf('0xe')]=this[_0x27cf('0xb')][_0x27cf('0x18')]['get']('PendingActions')[_0x27cf('0x8')](_0x39fbc8);}[_0x27cf('0x1')](){this[_0x27cf('0xb')][_0x27cf('0x18')][_0x27cf('0x11')]('PendingActions')['remove'](this[_0x27cf('0xe')]),this['_pendingAction']=null;}}_0x1d30eb(Mt,_0x5c2e49);
23
+ const _0x38a6=['change:isDirty','_removePendingAction','view','PendingActions','acceptSuggestion','_editor','commentThreadController','listenTo','bind','model','add','locale','get','stopListening','discardSuggestion','_pendingAction','_discardCommand','execute','_acceptCommand','destroy','isDirty','plugins','PENDING_ACTION_SUGGESTION','_setPendingAction','commands','isEnabled'];(function(_0x1e3af9,_0x38a6c8){const _0x14d9b0=function(_0x32eae7){while(--_0x32eae7){_0x1e3af9['push'](_0x1e3af9['shift']());}};_0x14d9b0(++_0x38a6c8);}(_0x38a6,0xe3));const _0x14d9=function(_0x1e3af9,_0x38a6c8){_0x1e3af9=_0x1e3af9-0x0;let _0x14d9b0=_0x38a6[_0x1e3af9];return _0x14d9b0;};import{ObservableMixin as _0x1733a9,mix as _0x24fbb6}from'ckeditor5/src/utils';import{getTranslation as _0x4a5feb}from'../utils/common-translations';export default class Ot{constructor(_0x536a5d,_0x492328,_0x7f9552,_0x2b30e5){this[_0x14d9('0x10')]=_0x492328,this[_0x14d9('0x9')]=_0x7f9552,this['commentThreadController']=_0x2b30e5,this[_0x14d9('0xc')]=_0x536a5d,this[_0x14d9('0x19')]=_0x536a5d[_0x14d9('0x5')][_0x14d9('0x13')]('acceptSuggestion'),this[_0x14d9('0x17')]=_0x536a5d[_0x14d9('0x5')][_0x14d9('0x13')](_0x14d9('0x15')),this[_0x14d9('0x9')][_0x14d9('0xf')](_0x14d9('0x6'))['to'](this[_0x14d9('0x19')]),this['_pendingAction']=null,_0x7f9552[_0x14d9('0x1')]&&this[_0x14d9('0x4')](),this[_0x14d9('0xe')](_0x7f9552,'acceptSuggestion',()=>this['acceptSuggestion']()),this[_0x14d9('0xe')](_0x7f9552,_0x14d9('0x15'),()=>this[_0x14d9('0x15')]()),this[_0x14d9('0xe')](_0x7f9552,_0x14d9('0x7'),()=>{_0x7f9552[_0x14d9('0x1')]?this[_0x14d9('0x4')]():this[_0x14d9('0x8')]();});}[_0x14d9('0xb')](){this['_acceptCommand'][_0x14d9('0x18')](this[_0x14d9('0x10')]['id']);}[_0x14d9('0x15')](){this[_0x14d9('0x17')][_0x14d9('0x18')](this['model']['id']);}[_0x14d9('0x0')](){this[_0x14d9('0x9')]['unbind'](_0x14d9('0x6')),this[_0x14d9('0x14')](),this[_0x14d9('0xd')][_0x14d9('0x0')](),this[_0x14d9('0x16')]&&this[_0x14d9('0x8')]();}[_0x14d9('0x4')](){const _0xf0d707=_0x4a5feb(this[_0x14d9('0xc')][_0x14d9('0x12')],_0x14d9('0x3'));this[_0x14d9('0x16')]=this[_0x14d9('0xc')][_0x14d9('0x2')][_0x14d9('0x13')](_0x14d9('0xa'))[_0x14d9('0x11')](_0xf0d707);}['_removePendingAction'](){this[_0x14d9('0xc')][_0x14d9('0x2')][_0x14d9('0x13')]('PendingActions')['remove'](this['_pendingAction']),this[_0x14d9('0x16')]=null;}}_0x24fbb6(Ot,_0x1733a9);