@ckeditor/ckeditor5-comments 40.0.0 → 40.2.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 (197) hide show
  1. package/CHANGELOG.md +19 -19
  2. package/LICENSE.md +3 -3
  3. package/README.md +1 -1
  4. package/build/comments.js +2 -2
  5. package/build/translations/af.js +1 -1
  6. package/build/translations/ar.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/es-co.js +1 -1
  18. package/build/translations/es.js +1 -1
  19. package/build/translations/et.js +1 -1
  20. package/build/translations/fa.js +1 -1
  21. package/build/translations/fi.js +1 -1
  22. package/build/translations/fr.js +1 -1
  23. package/build/translations/gl.js +1 -1
  24. package/build/translations/he.js +1 -1
  25. package/build/translations/hi.js +1 -1
  26. package/build/translations/hr.js +1 -1
  27. package/build/translations/hu.js +1 -1
  28. package/build/translations/id.js +1 -1
  29. package/build/translations/it.js +1 -1
  30. package/build/translations/ja.js +1 -1
  31. package/build/translations/jv.js +1 -1
  32. package/build/translations/ko.js +1 -1
  33. package/build/translations/lt.js +1 -1
  34. package/build/translations/lv.js +1 -1
  35. package/build/translations/ms.js +1 -1
  36. package/build/translations/nl.js +1 -1
  37. package/build/translations/no.js +1 -1
  38. package/build/translations/pl.js +1 -1
  39. package/build/translations/pt-br.js +1 -1
  40. package/build/translations/pt.js +1 -1
  41. package/build/translations/ro.js +1 -1
  42. package/build/translations/ru.js +1 -1
  43. package/build/translations/sk.js +1 -1
  44. package/build/translations/sq.js +1 -1
  45. package/build/translations/sr-latn.js +1 -1
  46. package/build/translations/sr.js +1 -1
  47. package/build/translations/sv.js +1 -1
  48. package/build/translations/th.js +1 -1
  49. package/build/translations/tk.js +1 -1
  50. package/build/translations/tr.js +1 -1
  51. package/build/translations/tt.js +1 -1
  52. package/build/translations/ug.js +1 -1
  53. package/build/translations/uk.js +1 -1
  54. package/build/translations/ur.js +1 -1
  55. package/build/translations/vi.js +1 -1
  56. package/build/translations/zh-cn.js +1 -1
  57. package/build/translations/zh.js +1 -1
  58. package/lang/contexts.json +2 -0
  59. package/lang/translations/af.po +8 -0
  60. package/lang/translations/ar.po +8 -0
  61. package/lang/translations/bg.po +8 -0
  62. package/lang/translations/bn.po +8 -0
  63. package/lang/translations/bs.po +8 -0
  64. package/lang/translations/ca.po +8 -0
  65. package/lang/translations/cs.po +8 -0
  66. package/lang/translations/da.po +8 -0
  67. package/lang/translations/de-ch.po +8 -0
  68. package/lang/translations/de.po +8 -0
  69. package/lang/translations/el.po +8 -0
  70. package/lang/translations/en-au.po +8 -0
  71. package/lang/translations/en.po +8 -0
  72. package/lang/translations/es-co.po +8 -0
  73. package/lang/translations/es.po +8 -0
  74. package/lang/translations/et.po +8 -0
  75. package/lang/translations/fa.po +8 -0
  76. package/lang/translations/fi.po +8 -0
  77. package/lang/translations/fr.po +8 -0
  78. package/lang/translations/gl.po +8 -0
  79. package/lang/translations/he.po +8 -0
  80. package/lang/translations/hi.po +8 -0
  81. package/lang/translations/hr.po +8 -0
  82. package/lang/translations/hu.po +8 -0
  83. package/lang/translations/id.po +8 -0
  84. package/lang/translations/it.po +8 -0
  85. package/lang/translations/ja.po +8 -0
  86. package/lang/translations/jv.po +8 -0
  87. package/lang/translations/ko.po +8 -0
  88. package/lang/translations/lt.po +8 -0
  89. package/lang/translations/lv.po +8 -0
  90. package/lang/translations/ms.po +8 -0
  91. package/lang/translations/nl.po +8 -0
  92. package/lang/translations/no.po +8 -0
  93. package/lang/translations/pl.po +8 -0
  94. package/lang/translations/pt-br.po +8 -0
  95. package/lang/translations/pt.po +8 -0
  96. package/lang/translations/ro.po +8 -0
  97. package/lang/translations/ru.po +8 -0
  98. package/lang/translations/sk.po +8 -0
  99. package/lang/translations/sq.po +8 -0
  100. package/lang/translations/sr-latn.po +9 -1
  101. package/lang/translations/sr.po +8 -0
  102. package/lang/translations/sv.po +8 -0
  103. package/lang/translations/th.po +8 -0
  104. package/lang/translations/tk.po +8 -0
  105. package/lang/translations/tr.po +8 -0
  106. package/lang/translations/tt.po +8 -0
  107. package/lang/translations/ug.po +16 -8
  108. package/lang/translations/uk.po +8 -0
  109. package/lang/translations/ur.po +8 -0
  110. package/lang/translations/vi.po +8 -0
  111. package/lang/translations/zh-cn.po +8 -0
  112. package/lang/translations/zh.po +8 -0
  113. package/package.json +3 -3
  114. package/src/annotations/annotation.d.ts +90 -90
  115. package/src/annotations/annotation.js +1 -1
  116. package/src/annotations/annotationcollection.d.ts +98 -98
  117. package/src/annotations/annotationcollection.js +1 -1
  118. package/src/annotations/annotations.d.ts +154 -154
  119. package/src/annotations/annotations.js +1 -1
  120. package/src/annotations/annotationsuis.d.ts +232 -232
  121. package/src/annotations/annotationsuis.js +1 -1
  122. package/src/annotations/editorannotations.d.ts +67 -67
  123. package/src/annotations/editorannotations.js +1 -1
  124. package/src/annotations/inlineannotations.d.ts +90 -90
  125. package/src/annotations/inlineannotations.js +1 -1
  126. package/src/annotations/narrowsidebar.d.ts +85 -85
  127. package/src/annotations/narrowsidebar.js +1 -1
  128. package/src/annotations/sidebar.d.ts +100 -100
  129. package/src/annotations/sidebar.js +1 -1
  130. package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
  131. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  132. package/src/annotations/view/annotationview.d.ts +90 -90
  133. package/src/annotations/view/annotationview.js +1 -1
  134. package/src/annotations/view/sidebaritemview.d.ts +55 -55
  135. package/src/annotations/view/sidebaritemview.js +1 -1
  136. package/src/annotations/view/sidebarview.d.ts +32 -32
  137. package/src/annotations/view/sidebarview.js +1 -1
  138. package/src/annotations/widesidebar.d.ts +77 -77
  139. package/src/annotations/widesidebar.js +1 -1
  140. package/src/augmentation.d.ts +52 -52
  141. package/src/comments/addcommentthreadcommand.d.ts +35 -35
  142. package/src/comments/addcommentthreadcommand.js +1 -1
  143. package/src/comments/commentsarchive.d.ts +31 -31
  144. package/src/comments/commentsarchive.js +1 -1
  145. package/src/comments/commentsarchiveui.d.ts +38 -38
  146. package/src/comments/commentsarchiveui.js +1 -1
  147. package/src/comments/commentsediting.d.ts +79 -79
  148. package/src/comments/commentsediting.js +1 -1
  149. package/src/comments/commentsrepository.d.ts +1130 -1129
  150. package/src/comments/commentsrepository.js +1 -1
  151. package/src/comments/commentsui.d.ts +33 -33
  152. package/src/comments/commentsui.js +1 -1
  153. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
  154. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  155. package/src/comments/integrations/importword.d.ts +21 -21
  156. package/src/comments/integrations/importword.js +1 -1
  157. package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
  158. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  159. package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
  160. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  161. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
  162. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  163. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  164. package/src/comments/ui/commentthreadcontroller.js +1 -1
  165. package/src/comments/ui/view/basecommentthreadview.d.ts +119 -119
  166. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  167. package/src/comments/ui/view/basecommentview.d.ts +112 -112
  168. package/src/comments/ui/view/basecommentview.js +1 -1
  169. package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
  170. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  171. package/src/comments/ui/view/commentcontentview.d.ts +14 -14
  172. package/src/comments/ui/view/commentcontentview.js +1 -1
  173. package/src/comments/ui/view/commentinputview.d.ts +86 -86
  174. package/src/comments/ui/view/commentinputview.js +1 -1
  175. package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
  176. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  177. package/src/comments/ui/view/commentslistview.d.ts +100 -100
  178. package/src/comments/ui/view/commentslistview.js +1 -1
  179. package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
  180. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  181. package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
  182. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  183. package/src/comments/ui/view/commentthreadview.d.ts +118 -118
  184. package/src/comments/ui/view/commentthreadview.js +1 -1
  185. package/src/comments/ui/view/commentview.d.ts +243 -243
  186. package/src/comments/ui/view/commentview.js +1 -1
  187. package/src/comments.d.ts +35 -35
  188. package/src/comments.js +1 -1
  189. package/src/commentsonly.d.ts +33 -33
  190. package/src/commentsonly.js +1 -1
  191. package/src/config.d.ts +176 -176
  192. package/src/index.d.ts +24 -24
  193. package/src/utils/common-translations.d.ts +9 -9
  194. package/src/utils/common-translations.js +1 -1
  195. package/src/utils/createmutationobserver.d.ts +14 -14
  196. package/src/utils/createmutationobserver.js +1 -1
  197. package/theme/comment.css +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5939=['comment:','setContext','commands','isResolved','affectsData','low','conversion','createPositionBefore','CommentsEditing','markers','refreshVisibility','differ','createElement','state','getItems','attachTo','clear','getWalker','plugins','hasMarkerForId','context','model','dataDowncast','removeMarker','consumable','render','text','_getTargetForId','$textProxy','getRange','substring','isThreadsLoadingPaused','editingDowncast','hasDomSelection','scrollToThreadMarker','collaboration.channelId','change:isReadOnly','_hasTargetInContent','config','pluginName','editing','removeCommentThread','isLocal','_reconvertMarkers','set','split','ck-comment-marker--active','delete','isCollapsed','_attachResolvedThread','destroy','change','getChangedMarkers','ignoreResolvedComments','removeMarker:','reconvertMarker','getCommentThreads','length','isAttached','unlinkedAt','registerPostFixer','document','for','name','comment','get','upcast','once','_attachMarkerToThread','editor','requires','updateMarker','consume','then','getCommentThread','data','markerName','_initializeMarkerConverters','markerToHighlight','start','_detachCommentThread','openNewCommentThread','_threadToController','item','view','init','registerAnnotation','newRange','$marker','addCommentThread','setUnlinkedAt','$graveyard','root','_handleThreadMarker','getByInnerView','change:isThreadsLoadingPaused','ck-comment-marker','enqueueChange','schema','_handleMarkerAddAndRemove','isEqual','dataToMarker','createRange','activeMarker','getAllMarkersForId','managedUsingOperations','listenTo','markerToData','ready','_getTextContext'];(function(_0x3e3597,_0x5939bb){const _0x504ab7=function(_0x45d760){while(--_0x45d760){_0x3e3597['push'](_0x3e3597['shift']());}};_0x504ab7(++_0x5939bb);}(_0x5939,0x169));const _0x504a=function(_0x3e3597,_0x5939bb){_0x3e3597=_0x3e3597-0x0;let _0x504ab7=_0x5939[_0x3e3597];return _0x504ab7;};import{Plugin as _0x189367}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2918dd}from'ckeditor5/src/utils';import _0x4074be from'./commentsrepository';import _0x2501a4 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4d8a56}from'ckeditor5-collaboration/src/collaboration-core';import _0x155866 from'../annotations/editorannotations';import _0xa22e54 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x21d20f from'./integrations/importword';import _0x10a68d from'../annotations/annotations';export default class r extends _0x189367{static get[_0x504a('0x27')](){return[_0x4074be,_0x155866,_0xa22e54,_0x21d20f];}static get[_0x504a('0x8')](){return _0x504a('0x57');}constructor(_0x14af51){super(_0x14af51),this['set'](_0x504a('0x0'),!0x0),_0x14af51['data']['once'](_0x504a('0x4d'),()=>this[_0x504a('0x0')]=!0x1),this[_0x504a('0xd')](_0x504a('0x48'),null),this['on']('change:activeMarker',(_0x62debd,_0x42d6d7,_0x312583,_0x4ab49a)=>{const _0x5f35ba=_0x312583?tt(_0x312583)['id']:null;if(_0x14af51[_0x504a('0x64')][_0x504a('0x14')](()=>{if(_0x5f35ba){const _0x160b8a=this[_0x504a('0x49')](_0x5f35ba);for(const _0x34e2c1 of _0x160b8a)_0x14af51['editing']['reconvertMarker'](_0x34e2c1);}if(_0x4ab49a){const {id:_0x5a55cc}=tt(_0x4ab49a),_0x5aa2c5=this[_0x504a('0x49')](_0x5a55cc);for(const _0x106d1f of _0x5aa2c5)_0x14af51[_0x504a('0x9')][_0x504a('0x18')](_0x106d1f);}}),_0x5f35ba){const _0x1e7a21=_0x14af51['plugins'][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x5f35ba);_0x1e7a21&&_0x1e7a21[_0x504a('0x52')]&&this[_0x504a('0x3')](_0x5f35ba);}});}[_0x504a('0x36')](){const _0x961c59=this[_0x504a('0x26')],_0x201415=_0x961c59[_0x504a('0x61')]['get'](_0x4074be),_0x310108=_0x961c59[_0x504a('0x7')][_0x504a('0x22')](_0x504a('0x4'));_0x961c59[_0x504a('0x51')]['add']('addCommentThread',new _0x2501a4(_0x961c59)),this['listenTo'](_0x961c59,_0x504a('0x5'),(_0x5e1cea,_0x4d1b1e,_0x50eced)=>{_0x201415['switchReadOnly'](_0x50eced,_0x961c59[_0x504a('0x7')][_0x504a('0x22')]('collaboration.channelId'));}),this[_0x504a('0x4b')](_0x201415,Z(_0x504a('0x3a'),_0x310108),(_0x5898c1,{threadId:_0x256ba3})=>{const _0x3843ad=this['editor'][_0x504a('0x61')][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x256ba3);_0x3843ad&&_0x3843ad['archivedAt']&&this['_attachResolvedThread'](_0x256ba3);}),this[_0x504a('0x4b')](_0x201415,Z(_0x504a('0xa'),_0x310108),(_0xe12977,{threadId:_0x28de86})=>{_0x961c59[_0x504a('0x64')][_0x504a('0x42')]({'isUndoable':!0x1},_0x2dffa0=>{const _0x54e998=this['getAllMarkersForId'](_0x28de86);for(const _0xa2968d of _0x54e998)_0x2dffa0[_0x504a('0x66')](_0xa2968d);});}),this[_0x504a('0x4b')](_0x201415,Z('resolveCommentThread',_0x310108),(_0x2c1788,{threadId:_0x2876c9})=>{(this[_0x504a('0x12')](_0x2876c9),this[_0x504a('0xc')](_0x2876c9),this[_0x504a('0x26')]['editing'][_0x504a('0x35')][_0x504a('0x2')])&&(this[_0x504a('0x26')]['plugins'][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x2876c9)[_0x504a('0x1c')]||this[_0x504a('0x26')][_0x504a('0x9')][_0x504a('0x35')]['focus']());},{'priority':_0x504a('0x54')}),this[_0x504a('0x4b')](_0x201415,Z('reopenCommentThread',_0x310108),(_0x314f10,{threadId:_0x403513})=>{this[_0x504a('0xc')](_0x403513);},{'priority':_0x504a('0x54')}),this['listenTo'](_0x201415,Z('addComment',_0x310108),(_0x4f0e1f,{threadId:_0x2dea57,isFromAdapter:_0x4b9aa5})=>{const _0x330f9c=this['getAllMarkersForId'](_0x2dea57);if(_0x4b9aa5||0x0==_0x330f9c[_0x504a('0x1a')]||!_0x201415['hasCommentThread'](_0x2dea57))return;0x1===_0x201415['getCommentThread'](_0x2dea57)['length']&&_0x961c59[_0x504a('0x64')]['enqueueChange']({'isUndoable':!0x1},_0x4bb156=>{for(const _0x44fb34 of _0x330f9c)_0x4bb156[_0x504a('0x28')](_0x44fb34,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x504a('0x54')}),this[_0x504a('0x2e')](),this[_0x504a('0x44')]();}[_0x504a('0x13')](){const _0x5609df=this[_0x504a('0x26')][_0x504a('0x61')][_0x504a('0x22')](_0x4074be),_0x258877=this[_0x504a('0x26')][_0x504a('0x7')][_0x504a('0x22')](_0x504a('0x4'));for(const _0x4a88b4 of _0x5609df[_0x504a('0x19')]({'channelId':_0x258877}))_0x5609df[_0x504a('0x31')](_0x4a88b4['id']),_0x5609df['_threads']['delete'](_0x4a88b4['id']);super[_0x504a('0x13')]();}[_0x504a('0x62')](_0x315b75){return this['getAllMarkersForId'](_0x315b75)['length']>0x0;}[_0x504a('0x49')](_0x3f0c98){const _0x1d66d1=[];for(const _0x205b4d of this[_0x504a('0x26')][_0x504a('0x64')]['markers'])_0x205b4d[_0x504a('0x20')]['startsWith'](_0x504a('0x4f')+_0x3f0c98)&&_0x1d66d1['push'](_0x205b4d);return _0x1d66d1;}[_0x504a('0x3')](_0xc04966){const _0x8c2b1e=this[_0x504a('0x6a')](_0xc04966);_0x8c2b1e&&setTimeout(()=>{this[_0x504a('0x48')]&&tt(this[_0x504a('0x48')])['id']===_0xc04966&&_0x2918dd({'target':_0x8c2b1e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4878e5){this[_0x504a('0x26')][_0x504a('0x64')][_0x504a('0x14')](()=>{for(const _0x3dac28 of this['getAllMarkersForId'](_0x4878e5))this[_0x504a('0x26')]['editing']['reconvertMarker'](_0x3dac28);});}[_0x504a('0x12')](_0xa8a674){const _0x1b2a82=this['editor']['plugins'][_0x504a('0x22')](_0x4074be),_0x4967e3=this['editor'][_0x504a('0x61')][_0x504a('0x22')](_0x155866),_0x3ad79e=_0x1b2a82[_0x504a('0x2b')](_0xa8a674);if(!_0x3ad79e[_0x504a('0x1b')]){const _0x6e7630=_0x3ad79e['attachTo'](()=>this[_0x504a('0x6a')](_0x3ad79e['id']));_0x4967e3[_0x504a('0x37')](_0x6e7630),_0x3ad79e[_0x504a('0x6')]=!0x1;}}[_0x504a('0x2e')](){const _0x2fd498=this['editor'];_0x2fd498[_0x504a('0x55')]['for'](_0x504a('0x1'))[_0x504a('0x2f')]({'model':_0x504a('0x21'),'view':(_0x3a7585,_0x65536c)=>{const {id:_0x3d1d9b}=tt(_0x3a7585[_0x504a('0x2d')]),_0x13cb4b=_0x2fd498['plugins'][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x3d1d9b),_0x25f99d=this['activeMarker']&&tt(this[_0x504a('0x48')])['id']===_0x3d1d9b;if(_0x13cb4b&&_0x13cb4b[_0x504a('0x52')]&&!_0x25f99d&&_0x3a7585[_0x504a('0x34')])return _0x65536c[_0x504a('0x67')]['consume'](_0x3a7585[_0x504a('0x34')],'addMarker:'+_0x3a7585['markerName']),_0x65536c[_0x504a('0x67')][_0x504a('0x29')](_0x3a7585[_0x504a('0x34')],_0x504a('0x17')+_0x3a7585['markerName']),{'classes':[]};const _0x23e804=[_0x504a('0x41')];return _0x25f99d&&_0x23e804['push'](_0x504a('0xf')),{'classes':_0x23e804,'attributes':{'data-comment':_0x3d1d9b}};}}),_0x2fd498[_0x504a('0x55')]['for'](_0x504a('0x65'))[_0x504a('0x4c')]({'model':_0x504a('0x21'),'view':(_0xf4f590,{options:_0x1abd59})=>{const _0x19a869=_0x2fd498['plugins'][_0x504a('0x22')](_0x4074be),_0x2353e7=_0x2fd498['model'][_0x504a('0x58')][_0x504a('0x22')](_0xf4f590),{id:_0x37a52,part:_0x59a289}=tt(_0xf4f590);if(_0x2353e7&&!_0x2353e7[_0x504a('0x53')])return null;if(_0x1abd59[_0x504a('0x16')]){const _0x54cd3c=_0x19a869[_0x504a('0x2b')](_0x37a52);if(_0x54cd3c&&_0x54cd3c[_0x504a('0x52')])return null;}return{'group':'comment','name':_0x59a289?_0x37a52+':'+_0x59a289:_0x37a52};}}),_0x2fd498[_0x504a('0x55')][_0x504a('0x1f')](_0x504a('0x23'))['elementToElement']({'view':{'name':_0x504a('0x21'),'attributes':{'id':/^\w/}},'model':(_0xdcd0cb,{writer:_0x3e23f0})=>_0x3e23f0[_0x504a('0x5b')](_0x504a('0x39'),{'data-name':_0x504a('0x4f')+_0xdcd0cb['getAttribute']('id')})}),_0x2fd498['conversion'][_0x504a('0x1f')](_0x504a('0x23'))[_0x504a('0x46')]({'view':_0x504a('0x21')});}['_handleMarkerAddAndRemove'](){const _0x210b91=this[_0x504a('0x26')],_0x3f6741=_0x210b91['plugins'][_0x504a('0x22')](_0x4074be),_0x136fd0=new Set(),_0x378843=new Set();_0x210b91[_0x504a('0x64')]['document'][_0x504a('0x1d')](_0x5596d3=>{let _0x1871e0=!0x1;for(const {name:_0x257ac4,data:_0x2b4ad8}of _0x210b91[_0x504a('0x64')][_0x504a('0x1e')][_0x504a('0x5a')][_0x504a('0x15')]()){const {group:_0x1bddb7,id:_0x314473}=tt(_0x257ac4);let _0x457dbf=_0x2b4ad8[_0x504a('0x38')];if(_0x504a('0x21')!==_0x1bddb7||!_0x457dbf)continue;const _0x3a5ca8=_0x504a('0x3c')===_0x457dbf[_0x504a('0x3d')]['rootName'];_0x3a5ca8||(_0x457dbf=ot(_0x457dbf,_0x210b91[_0x504a('0x64')]),!_0x457dbf||_0x457dbf['isCollapsed']||!_0x2b4ad8[_0x504a('0x38')]||_0x457dbf[_0x504a('0x45')](_0x2b4ad8[_0x504a('0x38')]))?_0x210b91[_0x504a('0x64')]['hasContent'](_0x457dbf)&&!_0x3a5ca8?this[_0x504a('0x0')]?_0x136fd0['add'](_0x257ac4):this['_handleThreadMarker'](_0x257ac4,_0x314473):(_0x378843['add'](_0x257ac4),_0x136fd0[_0x504a('0x10')](_0x257ac4),_0x5596d3[_0x504a('0x66')](_0x257ac4),_0x1871e0=!0x0):(_0x5596d3[_0x504a('0x28')](_0x257ac4,{'range':_0x457dbf}),_0x1871e0=!0x0);}return _0x1871e0;}),this['on'](_0x504a('0x40'),(_0x1d4d5a,_0x2bff48,_0x1c463c)=>{if(!_0x1c463c&&_0x136fd0['size'])for(const _0x48508c of _0x136fd0){const {id:_0x5aaf1b}=tt(_0x48508c);_0x136fd0[_0x504a('0x10')](_0x48508c),_0x210b91['model']['markers'][_0x504a('0x22')](_0x48508c)&&this[_0x504a('0x3e')](_0x48508c,_0x5aaf1b);}}),this['listenTo'](_0x210b91[_0x504a('0x64')]['document'],_0x504a('0x14'),(_0x22f34b,_0xe6a057)=>{for(const {name:_0x3f5426,data:{newRange:_0x2b7e37}}of _0x210b91[_0x504a('0x64')][_0x504a('0x1e')][_0x504a('0x5a')][_0x504a('0x15')]()){const {group:_0x1211cd,id:_0x174c24}=tt(_0x3f5426);if(_0x504a('0x21')!==_0x1211cd)continue;const _0x4decad=_0x3f6741[_0x504a('0x2b')](_0x174c24),_0x47c903=this[_0x504a('0x62')](_0x174c24);_0x4decad&&(_0x4decad[_0x504a('0x6')]||_0x210b91[_0x504a('0x9')]['view'][_0x504a('0x24')](_0x504a('0x68'),()=>{const _0x184699=_0x210b91['plugins'][_0x504a('0x22')](_0x10a68d),_0x465e3b=_0x3f6741['_threadToController'][_0x504a('0x22')](_0x4decad)['view'];_0x184699[_0x504a('0x3f')](_0x465e3b)[_0x504a('0x59')]();},{'priority':_0x504a('0x54')}),_0x4decad[_0x504a('0x6')]=_0x47c903||!!_0x2b7e37),_0x2b7e37||(_0x378843['add'](_0x3f5426),_0x136fd0[_0x504a('0x10')](_0x3f5426));}if(_0xe6a057[_0x504a('0xb')])for(const _0x18242c of _0x378843){const {id:_0x13beb5}=tt(_0x18242c),_0x52e45d=_0x3f6741[_0x504a('0x2b')](_0x13beb5),_0x4ae983=this[_0x504a('0x62')](_0x13beb5);_0x136fd0[_0x504a('0x10')](_0x18242c),!_0x52e45d||_0x4ae983||_0x52e45d[_0x504a('0x1c')]||_0x52e45d[_0x504a('0x3b')](new Date());}_0x378843[_0x504a('0x5f')]();});}[_0x504a('0x6a')](_0xc5e162){const _0x45c334=this[_0x504a('0x26')],_0x271d7e=this[_0x504a('0x49')](_0xc5e162);return _0x4d8a56(_0x45c334['editing'],_0x271d7e);}[_0x504a('0x4e')](_0x146f15){const _0x43f4c9=this['getAllMarkersForId'](_0x146f15);let _0x4af06f='',_0x15655a=!0x1;for(const _0x4e18df of _0x43f4c9){const _0x50f018=_0x4e18df[_0x504a('0x6c')]();for(const _0x293c36 of Array['from'](_0x50f018[_0x504a('0x5d')]()))_0x293c36['is'](_0x504a('0x6b'))?(_0x4af06f&&_0x15655a&&(_0x4af06f+='\x20',_0x15655a=!0x1),_0x4af06f+=_0x293c36[_0x504a('0x2c')]):_0x15655a=!0x0;_0x15655a=!0x0;}return _0x4af06f[_0x504a('0x6d')](0x0,0x96);}[_0x504a('0x25')](_0x416636,_0x2f0872){const _0x5d74e7=this[_0x504a('0x26')],_0x1e3b5b=_0x5d74e7[_0x504a('0x61')]['get'](_0x4074be);let _0x9d7fd6=_0x1e3b5b[_0x504a('0x2b')](_0x2f0872);const _0x59fad6=_0x5d74e7['config']['get']('collaboration.channelId'),_0x26e10d=_0x5d74e7[_0x504a('0x61')][_0x504a('0x22')](_0x155866);if(_0x9d7fd6&&(_0x9d7fd6['unlinkedAt']&&_0x9d7fd6[_0x504a('0x3b')](null),_0x9d7fd6[_0x504a('0x1b')]))return _0x9d7fd6;return!this[_0x504a('0x49')](_0x2f0872)[0x0][_0x504a('0x4a')]?_0x5d74e7['editing'][_0x504a('0x35')][_0x504a('0x24')](_0x504a('0x68'),()=>{if(_0x1e3b5b[_0x504a('0x2b')](_0x2f0872))return;const _0x3982ac=_0x5d74e7[_0x504a('0x61')][_0x504a('0x22')](_0x10a68d);_0x9d7fd6=_0x1e3b5b[_0x504a('0x32')]({'channelId':_0x59fad6,'threadId':_0x2f0872,'target':()=>this[_0x504a('0x6a')](_0x2f0872),'context':{'type':_0x504a('0x69'),'value':this[_0x504a('0x4e')](_0x2f0872)}});const _0x1348ad=_0x1e3b5b[_0x504a('0x33')][_0x504a('0x22')](_0x9d7fd6)[_0x504a('0x35')],_0x2c1246=_0x3982ac[_0x504a('0x3f')](_0x1348ad);_0x2c1246&&_0x26e10d['registerAnnotation'](_0x2c1246);},{'priority':_0x504a('0x54')}):_0x1e3b5b['fetchCommentThread']({'channelId':_0x59fad6,'threadId':_0x2f0872})[_0x504a('0x2a')](_0x4603b2=>{if('destroyed'!==_0x5d74e7[_0x504a('0x5c')]){if(_0x9d7fd6=_0x4603b2,_0x9d7fd6&&!_0x9d7fd6[_0x504a('0x1b')]){const _0x4ac6a6=_0x9d7fd6[_0x504a('0x5e')](()=>this[_0x504a('0x6a')](_0x2f0872));_0x26e10d[_0x504a('0x37')](_0x4ac6a6),_0x9d7fd6[_0x504a('0x52')]&&this[_0x504a('0xc')](_0x2f0872);}else{if(!_0x9d7fd6){const _0x320426=this[_0x504a('0x49')](_0x2f0872);_0x5d74e7[_0x504a('0x64')][_0x504a('0x14')](_0xc7bd30=>{for(const _0x40c9d7 of _0x320426)_0xc7bd30['removeMarker'](_0x40c9d7);});}}}}),_0x9d7fd6;}[_0x504a('0x3e')](_0x5c6cb7,_0x3b98f8){const _0x15aca2=this['_attachMarkerToThread'](_0x5c6cb7,_0x3b98f8);_0x15aca2&&!_0x15aca2[_0x504a('0x63')]&&_0x15aca2[_0x504a('0x50')]({'type':_0x504a('0x69'),'value':this['_getTextContext'](_0x3b98f8)});}}function Z(_0x2c7300,_0x4e9ad9){return _0x4e9ad9?_0x2c7300+':'+_0x4e9ad9:_0x2c7300;}function tt(_0x2214e2){const _0x5e067e=_0x2214e2[_0x504a('0xe')](':');return{'group':_0x5e067e[0x0],'id':_0x5e067e[0x1],'part':_0x5e067e[0x2]};}function ot(_0x1cf1af,_0x1f4f82){const _0x282e81=_0x1f4f82[_0x504a('0x43')],_0x117360=_0x1f4f82[_0x504a('0x47')](_0x1cf1af[_0x504a('0x30')]);for(const _0x3d07fa of _0x1cf1af[_0x504a('0x60')]()){const {type:_0x59aa1e,item:_0x54de22,nextPosition:_0x32adb3}=_0x3d07fa;if(_0x504a('0x69')===_0x59aa1e||_0x282e81['isObject'](_0x54de22)){const _0x2b457f=_0x1f4f82[_0x504a('0x56')](_0x54de22);_0x117360[_0x504a('0x11')]&&(_0x117360[_0x504a('0x30')]=_0x2b457f),_0x117360['end']=_0x32adb3;}}return _0x117360;}
23
+ const _0x3220=['setUnlinkedAt','_handleMarkerAddAndRemove','clear','$marker','ck-comment-marker','CommentsEditing','registerAnnotation','registerPostFixer','set','_handleThreadMarker','once','consumable','resolveCommentThread','comment','change','focus','_getTargetForId','_initAriaMarkerChangeAnnouncements','removeMarker','addMarker:','getItems','markerToHighlight','$graveyard','conversion','isThreadsLoadingPaused','get','from','consume','markerName','state','ck-comment-marker--active','length','_initializeMarkerConverters','_attachMarkerToThread','name','view','getByInnerView','for','editor','_threads','getCommentThread','render','managedUsingOperations','refreshVisibility','comment:','hasMarkerForId','end','_threadToController','elementToElement','ariaLiveAnnouncer','enqueueChange','substring','getCommentThreads','locale','_getTextContext','markers','upcast','document','reopenCommentThread','isAttached','text','editingDowncast','ready','low','scrollToThreadMarker','activeMarker','isResolved','newRange','pluginName','then','destroyed','_hasTargetInContent','group','commands','change:isThreadsLoadingPaused','join','openNewCommentThread','config','change:activeMarker','collaboration.channelId','getWalker','change:isReadOnly','attachTo','init','requires','differ','root','model','_detachCommentThread','getChangedMarkers','reconvertMarker','announce','delete','add','dataToMarker','start','push','listenTo','addCommentThread','dataDowncast','setContext','fetchCommentThread','destroy','ENTER_COMMENT_ANNOUNCEMENT','getAllMarkersForId','$textProxy','removeCommentThread','_reconvertMarkers','plugins','_attachResolvedThread','isCollapsed','data','isLocal','editing','hasCommentThread','unlinkedAt','context','startsWith','updateMarker','removeMarker:','createPositionBefore','ignoreResolvedComments','schema'];(function(_0x3fae13,_0x3220b7){const _0x58f3ba=function(_0x4f42f8){while(--_0x4f42f8){_0x3fae13['push'](_0x3fae13['shift']());}};_0x58f3ba(++_0x3220b7);}(_0x3220,0x16f));const _0x58f3=function(_0x3fae13,_0x3220b7){_0x3fae13=_0x3fae13-0x0;let _0x58f3ba=_0x3220[_0x3fae13];return _0x58f3ba;};import{Plugin as _0x45547f}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2bc1dd}from'ckeditor5/src/utils';import _0xe571f7 from'./commentsrepository';import _0x81426 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0xc933ce,getAllMarkersDomElementsSorted as _0x4c5c80}from'ckeditor5-collaboration/src/collaboration-core';import _0x58ac21 from'../annotations/editorannotations';import _0x34fb1b from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x41434c from'./integrations/importword';import _0x3bc1c5 from'../annotations/annotations';import{getTranslation as _0x1809b0}from'../utils/common-translations';export default class r extends _0x45547f{static get[_0x58f3('0x56')](){return[_0xe571f7,_0x58ac21,_0x34fb1b,_0x41434c];}static get[_0x58f3('0x46')](){return _0x58f3('0x7');}constructor(_0x7238e6){super(_0x7238e6),this[_0x58f3('0xa')](_0x58f3('0x1a'),!0x0),_0x7238e6[_0x58f3('0x71')]['once'](_0x58f3('0x40'),()=>this[_0x58f3('0x1a')]=!0x1),this[_0x58f3('0xa')]('activeMarker',null),this['on'](_0x58f3('0x50'),(_0xd50f98,_0x396190,_0x27d931,_0x17e535)=>{const _0x1f448c=_0x27d931?ot(_0x27d931)['id']:null;if(_0x7238e6[_0x58f3('0x59')][_0x58f3('0x10')](()=>{if(_0x1f448c){const _0x4958e7=this['getAllMarkersForId'](_0x1f448c);for(const _0x260ff5 of _0x4958e7)_0x7238e6[_0x58f3('0x73')][_0x58f3('0x5c')](_0x260ff5);}if(_0x17e535){const {id:_0x120146}=ot(_0x17e535),_0x57307f=this[_0x58f3('0x6a')](_0x120146);for(const _0x2ea2f4 of _0x57307f)_0x7238e6[_0x58f3('0x73')][_0x58f3('0x5c')](_0x2ea2f4);}}),_0x1f448c){const _0x343815=_0x7238e6['plugins'][_0x58f3('0x1b')](_0xe571f7)[_0x58f3('0x2a')](_0x1f448c);_0x343815&&_0x343815[_0x58f3('0x44')]&&this[_0x58f3('0x42')](_0x1f448c);}}),this[_0x58f3('0x13')]();}[_0x58f3('0x55')](){const _0x143ad=this[_0x58f3('0x28')],_0x241f72=_0x143ad['plugins']['get'](_0xe571f7),_0x61f124=_0x143ad['config']['get'](_0x58f3('0x51'));_0x143ad[_0x58f3('0x4b')]['add'](_0x58f3('0x64'),new _0x81426(_0x143ad)),this[_0x58f3('0x63')](_0x143ad,_0x58f3('0x53'),(_0x4b9c6f,_0x265dde,_0x4be374)=>{_0x241f72['switchReadOnly'](_0x4be374,_0x143ad[_0x58f3('0x4f')][_0x58f3('0x1b')](_0x58f3('0x51')));}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0x64'),_0x61f124),(_0x54d789,{threadId:_0x327911})=>{const _0x5ce4fc=this['editor'][_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7)[_0x58f3('0x2a')](_0x327911);_0x5ce4fc&&_0x5ce4fc['archivedAt']&&this[_0x58f3('0x6f')](_0x327911);}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0x6c'),_0x61f124),(_0x553d3f,{threadId:_0x1b3187})=>{_0x143ad[_0x58f3('0x59')][_0x58f3('0x34')]({'isUndoable':!0x1},_0x129b3e=>{const _0x1e31dd=this['getAllMarkersForId'](_0x1b3187);for(const _0x2ccaf9 of _0x1e31dd)_0x129b3e[_0x58f3('0x14')](_0x2ccaf9);});}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0xe'),_0x61f124),(_0x30a193,{threadId:_0x1c9bea})=>{(this[_0x58f3('0x6f')](_0x1c9bea),this[_0x58f3('0x6d')](_0x1c9bea),this[_0x58f3('0x28')][_0x58f3('0x73')][_0x58f3('0x25')]['hasDomSelection'])&&(this[_0x58f3('0x28')][_0x58f3('0x6e')]['get'](_0xe571f7)[_0x58f3('0x2a')](_0x1c9bea)['unlinkedAt']||this['editor'][_0x58f3('0x73')][_0x58f3('0x25')][_0x58f3('0x11')]());},{'priority':_0x58f3('0x41')}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0x3c'),_0x61f124),(_0x1ed6b0,{threadId:_0x16d8aa})=>{this[_0x58f3('0x6d')](_0x16d8aa);},{'priority':'low'}),this[_0x58f3('0x63')](_0x241f72,tt('addComment',_0x61f124),(_0x2c5f32,{threadId:_0x37010d,isFromAdapter:_0x3ce8ae})=>{const _0x2aba55=this['getAllMarkersForId'](_0x37010d);if(_0x3ce8ae||0x0==_0x2aba55[_0x58f3('0x21')]||!_0x241f72[_0x58f3('0x74')](_0x37010d))return;0x1===_0x241f72[_0x58f3('0x2a')](_0x37010d)[_0x58f3('0x21')]&&_0x143ad[_0x58f3('0x59')][_0x58f3('0x34')]({'isUndoable':!0x1},_0x216a23=>{for(const _0x18c09d of _0x2aba55)_0x216a23[_0x58f3('0x78')](_0x18c09d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x58f3('0x41')}),this[_0x58f3('0x22')](),this[_0x58f3('0x3')]();}[_0x58f3('0x68')](){const _0xd47e50=this[_0x58f3('0x28')]['plugins'][_0x58f3('0x1b')](_0xe571f7),_0x528381=this[_0x58f3('0x28')][_0x58f3('0x4f')][_0x58f3('0x1b')]('collaboration.channelId');for(const _0x4508e8 of _0xd47e50[_0x58f3('0x36')]({'channelId':_0x528381}))_0xd47e50[_0x58f3('0x5a')](_0x4508e8['id']),_0xd47e50[_0x58f3('0x29')]['delete'](_0x4508e8['id']);super[_0x58f3('0x68')]();}[_0x58f3('0x2f')](_0x429b0d){return this[_0x58f3('0x6a')](_0x429b0d)[_0x58f3('0x21')]>0x0;}[_0x58f3('0x6a')](_0x6b160){const _0x3d447c=[];for(const _0x12ea16 of this[_0x58f3('0x28')][_0x58f3('0x59')][_0x58f3('0x39')])_0x12ea16[_0x58f3('0x24')][_0x58f3('0x77')]('comment:'+_0x6b160)&&_0x3d447c[_0x58f3('0x62')](_0x12ea16);return _0x3d447c;}['scrollToThreadMarker'](_0xf23f36){const _0x5f52ad=this[_0x58f3('0x12')](_0xf23f36);_0x5f52ad&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x58f3('0x43')])['id']===_0xf23f36&&_0x2bc1dd({'target':_0x5f52ad[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x58f3('0x6d')](_0x411b35){this[_0x58f3('0x28')][_0x58f3('0x59')][_0x58f3('0x10')](()=>{for(const _0x12b12e of this['getAllMarkersForId'](_0x411b35))this[_0x58f3('0x28')][_0x58f3('0x73')][_0x58f3('0x5c')](_0x12b12e);});}['_attachResolvedThread'](_0xfafb1f){const _0x597f72=this[_0x58f3('0x28')][_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7),_0x307907=this['editor']['plugins'][_0x58f3('0x1b')](_0x58ac21),_0x3eba25=_0x597f72['getCommentThread'](_0xfafb1f);if(!_0x3eba25[_0x58f3('0x3d')]){const _0x27818c=_0x3eba25[_0x58f3('0x54')](()=>this[_0x58f3('0x12')](_0x3eba25['id']));_0x307907[_0x58f3('0x8')](_0x27818c),_0x3eba25[_0x58f3('0x49')]=!0x1;}}[_0x58f3('0x22')](){const _0x5b8cb6=this['editor'];_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')](_0x58f3('0x3f'))[_0x58f3('0x17')]({'model':_0x58f3('0xf'),'view':(_0x411c35,_0x8b0743)=>{const {id:_0xa3a61c}=ot(_0x411c35['markerName']),_0xc5c3b2=_0x5b8cb6[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7)[_0x58f3('0x2a')](_0xa3a61c),_0x56ccf9=this[_0x58f3('0x43')]&&ot(this['activeMarker'])['id']===_0xa3a61c;if(_0xc5c3b2&&_0xc5c3b2[_0x58f3('0x44')]&&!_0x56ccf9&&_0x411c35['item'])return _0x8b0743[_0x58f3('0xd')][_0x58f3('0x1d')](_0x411c35['item'],_0x58f3('0x15')+_0x411c35[_0x58f3('0x1e')]),_0x8b0743[_0x58f3('0xd')][_0x58f3('0x1d')](_0x411c35['item'],_0x58f3('0x79')+_0x411c35['markerName']),{'classes':[]};const _0x48244c=[_0x58f3('0x6')];return _0x56ccf9&&_0x48244c[_0x58f3('0x62')](_0x58f3('0x20')),{'classes':_0x48244c,'attributes':{'data-comment':_0xa3a61c}};}}),_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')](_0x58f3('0x65'))['markerToData']({'model':_0x58f3('0xf'),'view':(_0x365bfe,{options:_0x1c6a33})=>{const _0x23d736=_0x5b8cb6[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7),_0x8ec214=_0x5b8cb6[_0x58f3('0x59')]['markers'][_0x58f3('0x1b')](_0x365bfe),{id:_0x18bad6,part:_0x1d0bb6}=ot(_0x365bfe);if(_0x8ec214&&!_0x8ec214['affectsData'])return null;if(_0x1c6a33[_0x58f3('0x0')]){const _0x3a62e1=_0x23d736[_0x58f3('0x2a')](_0x18bad6);if(_0x3a62e1&&_0x3a62e1[_0x58f3('0x44')])return null;}return{'group':_0x58f3('0xf'),'name':_0x1d0bb6?_0x18bad6+':'+_0x1d0bb6:_0x18bad6};}}),_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')]('upcast')[_0x58f3('0x32')]({'view':{'name':_0x58f3('0xf'),'attributes':{'id':/^\w/}},'model':(_0x2973f0,{writer:_0x27cda3})=>_0x27cda3['createElement'](_0x58f3('0x5'),{'data-name':_0x58f3('0x2e')+_0x2973f0['getAttribute']('id')})}),_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')](_0x58f3('0x3a'))[_0x58f3('0x60')]({'view':_0x58f3('0xf')});}[_0x58f3('0x3')](){const _0x4c4d75=this[_0x58f3('0x28')],_0x1a9895=_0x4c4d75[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7),_0x3e16fe=new Set(),_0x3bbe05=new Set();_0x4c4d75['model']['document'][_0x58f3('0x9')](_0x4f7bae=>{let _0x172e31=!0x1;for(const {name:_0x48e751,data:_0x5b9787}of _0x4c4d75[_0x58f3('0x59')][_0x58f3('0x3b')][_0x58f3('0x57')][_0x58f3('0x5b')]()){const {group:_0x5693a2,id:_0x110215}=ot(_0x48e751);let _0x4e70ab=_0x5b9787[_0x58f3('0x45')];if(_0x58f3('0xf')!==_0x5693a2||!_0x4e70ab)continue;const _0x352130=_0x58f3('0x18')===_0x4e70ab[_0x58f3('0x58')]['rootName'];_0x352130||(_0x4e70ab=et(_0x4e70ab,_0x4c4d75[_0x58f3('0x59')]),!_0x4e70ab||_0x4e70ab[_0x58f3('0x70')]||!_0x5b9787[_0x58f3('0x45')]||_0x4e70ab['isEqual'](_0x5b9787['newRange']))?_0x4c4d75[_0x58f3('0x59')]['hasContent'](_0x4e70ab)&&!_0x352130?this['isThreadsLoadingPaused']?_0x3e16fe[_0x58f3('0x5f')](_0x48e751):this[_0x58f3('0xb')](_0x48e751,_0x110215):(_0x3bbe05[_0x58f3('0x5f')](_0x48e751),_0x3e16fe[_0x58f3('0x5e')](_0x48e751),_0x4f7bae['removeMarker'](_0x48e751),_0x172e31=!0x0):(_0x4f7bae[_0x58f3('0x78')](_0x48e751,{'range':_0x4e70ab}),_0x172e31=!0x0);}return _0x172e31;}),this['on'](_0x58f3('0x4c'),(_0x40148f,_0x3042aa,_0x35fde5)=>{if(!_0x35fde5&&_0x3e16fe['size'])for(const _0x5bfb36 of _0x3e16fe){const {id:_0x5a68a4}=ot(_0x5bfb36);_0x3e16fe['delete'](_0x5bfb36),_0x4c4d75[_0x58f3('0x59')]['markers'][_0x58f3('0x1b')](_0x5bfb36)&&this['_handleThreadMarker'](_0x5bfb36,_0x5a68a4);}}),this[_0x58f3('0x63')](_0x4c4d75[_0x58f3('0x59')]['document'],'change',(_0x71c3de,_0x8f6a65)=>{for(const {name:_0x329231,data:{newRange:_0x49ff89}}of _0x4c4d75['model'][_0x58f3('0x3b')][_0x58f3('0x57')][_0x58f3('0x5b')]()){const {group:_0x1b0ce5,id:_0x588fb7}=ot(_0x329231);if('comment'!==_0x1b0ce5)continue;const _0x43d5da=_0x1a9895[_0x58f3('0x2a')](_0x588fb7),_0x5c9fdb=this[_0x58f3('0x2f')](_0x588fb7);_0x43d5da&&(_0x43d5da[_0x58f3('0x49')]||_0x4c4d75[_0x58f3('0x73')][_0x58f3('0x25')][_0x58f3('0xc')](_0x58f3('0x2b'),()=>{const _0x5d1980=_0x4c4d75['plugins'][_0x58f3('0x1b')](_0x3bc1c5),_0x75d0fb=_0x1a9895[_0x58f3('0x31')]['get'](_0x43d5da)[_0x58f3('0x25')];_0x5d1980[_0x58f3('0x26')](_0x75d0fb)[_0x58f3('0x2d')]();},{'priority':_0x58f3('0x41')}),_0x43d5da['_hasTargetInContent']=_0x5c9fdb||!!_0x49ff89),_0x49ff89||(_0x3bbe05['add'](_0x329231),_0x3e16fe[_0x58f3('0x5e')](_0x329231));}if(_0x8f6a65[_0x58f3('0x72')])for(const _0x2c4afb of _0x3bbe05){const {id:_0x50dc8c}=ot(_0x2c4afb),_0x33246d=_0x1a9895[_0x58f3('0x2a')](_0x50dc8c),_0x26a7f2=this[_0x58f3('0x2f')](_0x50dc8c);_0x3e16fe[_0x58f3('0x5e')](_0x2c4afb),!_0x33246d||_0x26a7f2||_0x33246d[_0x58f3('0x75')]||_0x33246d[_0x58f3('0x2')](new Date());}_0x3bbe05[_0x58f3('0x4')]();});}[_0x58f3('0x12')](_0x1ac3d5){const _0x4b5f17=this[_0x58f3('0x28')],_0x384d4f=this[_0x58f3('0x6a')](_0x1ac3d5);return _0x4c5c80(_0x4b5f17[_0x58f3('0x73')],_0x384d4f);}[_0x58f3('0x38')](_0xfae6dc){const _0x3f8fe5=this[_0x58f3('0x6a')](_0xfae6dc);let _0x4006b6='',_0x26d680=!0x1;for(const _0x385be4 of _0x3f8fe5){const _0x5c9a02=_0x385be4['getRange']();for(const _0x27b05d of Array[_0x58f3('0x1c')](_0x5c9a02[_0x58f3('0x16')]()))_0x27b05d['is'](_0x58f3('0x6b'))?(_0x4006b6&&_0x26d680&&(_0x4006b6+='\x20',_0x26d680=!0x1),_0x4006b6+=_0x27b05d['data']):_0x26d680=!0x0;_0x26d680=!0x0;}return _0x4006b6[_0x58f3('0x35')](0x0,0x96);}[_0x58f3('0x23')](_0x18cdcd,_0x21c337){const _0x579502=this[_0x58f3('0x28')],_0x12f58b=_0x579502[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7);let _0x1557fe=_0x12f58b[_0x58f3('0x2a')](_0x21c337);const _0x461f23=_0x579502[_0x58f3('0x4f')]['get'](_0x58f3('0x51')),_0x235308=_0x579502[_0x58f3('0x6e')][_0x58f3('0x1b')](_0x58ac21);if(_0x1557fe&&(_0x1557fe[_0x58f3('0x75')]&&_0x1557fe[_0x58f3('0x2')](null),_0x1557fe[_0x58f3('0x3d')]))return _0x1557fe;return!this[_0x58f3('0x6a')](_0x21c337)[0x0][_0x58f3('0x2c')]?_0x579502[_0x58f3('0x73')]['view'][_0x58f3('0xc')](_0x58f3('0x2b'),()=>{if(_0x12f58b['getCommentThread'](_0x21c337))return;const _0x1d39ef=_0x579502[_0x58f3('0x6e')][_0x58f3('0x1b')](_0x3bc1c5);_0x1557fe=_0x12f58b[_0x58f3('0x4e')]({'channelId':_0x461f23,'threadId':_0x21c337,'target':()=>this['_getTargetForId'](_0x21c337),'context':{'type':'text','value':this[_0x58f3('0x38')](_0x21c337)}});const _0x3d288a=_0x12f58b[_0x58f3('0x31')][_0x58f3('0x1b')](_0x1557fe)['view'],_0x4d8f1e=_0x1d39ef['getByInnerView'](_0x3d288a);_0x4d8f1e&&_0x235308[_0x58f3('0x8')](_0x4d8f1e);},{'priority':_0x58f3('0x41')}):_0x12f58b[_0x58f3('0x67')]({'channelId':_0x461f23,'threadId':_0x21c337})[_0x58f3('0x47')](_0x9ed454=>{if(_0x58f3('0x48')!==_0x579502[_0x58f3('0x1f')]){if(_0x1557fe=_0x9ed454,_0x1557fe&&!_0x1557fe[_0x58f3('0x3d')]){const _0x58a6c3=_0x1557fe[_0x58f3('0x54')](()=>this[_0x58f3('0x12')](_0x21c337));_0x235308['registerAnnotation'](_0x58a6c3),_0x1557fe[_0x58f3('0x44')]&&this['_reconvertMarkers'](_0x21c337);}else{if(!_0x1557fe){const _0x2bde2e=this['getAllMarkersForId'](_0x21c337);_0x579502['model'][_0x58f3('0x10')](_0x30d352=>{for(const _0x358721 of _0x2bde2e)_0x30d352[_0x58f3('0x14')](_0x358721);});}}}}),_0x1557fe;}['_handleThreadMarker'](_0x542691,_0x3879cf){const _0x524608=this['_attachMarkerToThread'](_0x542691,_0x3879cf);_0x524608&&!_0x524608[_0x58f3('0x76')]&&_0x524608[_0x58f3('0x66')]({'type':_0x58f3('0x3e'),'value':this['_getTextContext'](_0x3879cf)});}[_0x58f3('0x13')](){const _0x1fdccd=this[_0x58f3('0x28')];_0xc933ce(_0x1fdccd[_0x58f3('0x59')],({left:_0x27c52b,entered:_0x41886b})=>{const _0x3a2f5e=[];for(const _0x4de55a of _0x27c52b)if(rt(_0x4de55a)){_0x3a2f5e[_0x58f3('0x62')](_0x1809b0(_0x1fdccd[_0x58f3('0x37')],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x881948 of _0x41886b)if(rt(_0x881948)){_0x3a2f5e['push'](_0x1809b0(_0x1fdccd['locale'],_0x58f3('0x69')));break;}_0x3a2f5e[_0x58f3('0x21')]&&_0x1fdccd['ui'][_0x58f3('0x33')][_0x58f3('0x5d')]('comments',_0x3a2f5e[_0x58f3('0x4d')]('\x20'));});}}function tt(_0x3fb5ac,_0x2a1da6){return _0x2a1da6?_0x3fb5ac+':'+_0x2a1da6:_0x3fb5ac;}function ot(_0x54b196){const _0xed42e7=_0x54b196['split'](':');return{'group':_0xed42e7[0x0],'id':_0xed42e7[0x1],'part':_0xed42e7[0x2]};}function et(_0x33ac19,_0x26589f){const _0x37ef08=_0x26589f[_0x58f3('0x1')],_0x345cf7=_0x26589f['createRange'](_0x33ac19[_0x58f3('0x61')]);for(const _0x399e42 of _0x33ac19[_0x58f3('0x52')]()){const {type:_0x3c682f,item:_0x282317,nextPosition:_0x58026c}=_0x399e42;if(_0x58f3('0x3e')===_0x3c682f||_0x37ef08['isObject'](_0x282317)){const _0x497768=_0x26589f[_0x58f3('0x7a')](_0x282317);_0x345cf7[_0x58f3('0x70')]&&(_0x345cf7['start']=_0x497768),_0x345cf7[_0x58f3('0x30')]=_0x58026c;}}return _0x345cf7;}function rt(_0x58c9b1){return _0x58f3('0xf')===ot(_0x58c9b1[_0x58f3('0x24')])[_0x58f3('0x4a')];}