@ckeditor/ckeditor5-comments 47.4.0 → 47.5.0-alpha.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 (194) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +11 -11
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +20 -20
  150. package/src/annotations/annotation.js +2 -2
  151. package/src/annotations/annotationcollection.js +1 -1
  152. package/src/annotations/annotations.js +1 -1
  153. package/src/annotations/annotationsuis.js +1 -1
  154. package/src/annotations/editorannotations.js +1 -1
  155. package/src/annotations/inlineannotations.js +1 -1
  156. package/src/annotations/narrowsidebar.js +1 -1
  157. package/src/annotations/sidebar.js +1 -1
  158. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  159. package/src/annotations/view/annotationview.js +1 -1
  160. package/src/annotations/view/sidebaritemview.js +2 -2
  161. package/src/annotations/view/sidebarview.js +2 -2
  162. package/src/annotations/widesidebar.js +1 -1
  163. package/src/comments/addcommentthreadcommand.js +1 -1
  164. package/src/comments/commentsarchive.js +1 -1
  165. package/src/comments/commentsarchiveui.js +1 -1
  166. package/src/comments/commentsediting.js +1 -1
  167. package/src/comments/commentsrepository.js +3 -3
  168. package/src/comments/commentsui.js +1 -1
  169. package/src/comments/integrations/clipboard.js +1 -1
  170. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  171. package/src/comments/integrations/importword.js +1 -1
  172. package/src/comments/integrations/showcommenthighlights.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  174. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  175. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  176. package/src/comments/ui/commentthreadcontroller.js +2 -2
  177. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  178. package/src/comments/ui/view/basecommentview.js +1 -1
  179. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  180. package/src/comments/ui/view/commentcontentview.js +1 -1
  181. package/src/comments/ui/view/commentinputview.js +1 -1
  182. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  183. package/src/comments/ui/view/commentslistview.js +1 -1
  184. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  185. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  186. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  187. package/src/comments/ui/view/commentthreadview.js +2 -2
  188. package/src/comments/ui/view/commentview.js +2 -2
  189. package/src/comments.js +1 -1
  190. package/src/commentsonly.js +1 -1
  191. package/src/index.js +1 -1
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.js +1 -1
  194. package/src/utils/splitmarkername.js +1 -1
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x1f8384,ContextPlugin as _0x152fb7,PendingActions as lt,Command as _0x39b56b,Plugin as _0x165a5f,Context as _0x4eea4a}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x41c8cb,uid as _0x4c5e37,KeystrokeHandler as jt,FocusTracker as _0x5f5319,diff as _0x52b175,Collection as _0x139e96,Rect as _0x3f14b6,CKEditorError as _0x266f92,first as _0x49bf05,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x2bb24d,keyCodes as _0x63f92}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x193858,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x188cb3,trimHtml as ts,LateFocusDropdownButtonView as _0x539736,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x355e93}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x3b904d}from'es-toolkit/compat';import{IconUndo as _0x130a47,IconCheck as _0x2a328a,IconPencil as _0x5939de,IconRemoveComment as _0x92b88,IconThreeVerticalDots as _0x44b678,IconAddComment as _0x1b49ba,IconCommentsArchive as _0x54b5f6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x140f1f,ButtonView as _0x47a354,ViewCollection as _0x577399,createDropdown as _0x3deee8,ListView as _0x5ca25c,focusChildOnDropdownOpen as _0x1518f9,ListItemView as _0x365663,MenuBarMenuListItemButtonView as _0x320df3,BodyCollection as _0x530e58,BalloonPanelView as _0x4534d9,ContextualBalloon as _0x15b3ff,Dialog as _0x20864c,DialogViewPosition as _0x22636}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x1cac50}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x3b0de7}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x4359cf}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x41c8cb(){['model'];['view'];constructor(_0x35177d,_0x61bc16){super(),this['model']=_0x35177d,this['model']['_isAttached']=!0x0,this['view']=_0x61bc16,this['listenTo'](_0x61bc16,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x61bc16,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x61bc16,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x61bc16,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x61bc16,'addComment',(_0x5e0975,_0xb98570)=>this['addComment'](_0xb98570)),this['listenTo'](_0x61bc16,'updateComment',(_0x5c2753,_0x5dc974,_0x5ecfdc)=>this['updateComment'](_0x5dc974,_0x5ecfdc)),this['listenTo'](_0x61bc16,'removeComment',(_0x133a12,_0x3cd7c4)=>this['removeComment'](_0x3cd7c4));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x1ffbf4){this['model']['addComment']({'content':_0x1ffbf4,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x2def70,_0x14031d){this['model']['getComment'](_0x2def70)['update']({'content':_0x14031d});}['removeComment'](_0x900bb7){this['model']['getComment'](_0x900bb7)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x14d22b,_0x58bdc0,_0x149b13){const t=_0x14d22b['t'];switch(_0x58bdc0){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x149b13);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x149b13);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x149b13);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x149b13);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x149b13);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x149b13);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x149b13);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x149b13);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x923db3,_0x1d166b){super(_0x923db3);const _0x2cf00b=_0x4c5e37();this['main']=this['createCollection'](),this['editable']=new Vt(_0x923db3,_0x1d166b,void 0x0,{'label':()=>N(_0x923db3,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x923db3['uiLanguageDirection'],'lang':_0x923db3['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x2cf00b},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x51911d){super(_0x51911d),this['view']=new Rt(_0x51911d['locale'],_0x51911d['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x317777=this['editor']['editing']['view'],_0xb9bd04=this['view']['editable'],_0x2e7663=_0x317777['document']['getRoot']();_0xb9bd04['name']=_0x2e7663['rootName'],this['view']['render']();const _0x3d5294=_0xb9bd04['element'];this['setEditableElement'](_0xb9bd04['name'],_0x3d5294),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x317777['attachDomRoot'](_0x3d5294),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x41c8cb(_0x1f8384){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x3c4fe9={}){function _0x3cddeb(_0x4d3ce4){return _0x4d3ce4['map'](_0x285a6a=>String['fromCharCode'](_0x285a6a))['join']('');}(_0x3c4fe9=Object['assign']({},_0x3c4fe9))['plugins']||(_0x3c4fe9['plugins']=hs['defaultPlugins']),super(_0x3c4fe9),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x3cddeb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cddeb([0x76,0x69,0x65,0x77])][_0x3cddeb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cddeb([0x61,0x75,0x74,0x6f]),this[_0x3cddeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3cddeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cddeb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3cddeb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3cddeb([0x6f,0x6b])});}['create'](){const _0x5e5868=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5e5868))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0xc18d11=>{const _0x3ef22d=this['model']['document']['getRoot'](),_0x4879d3=_0x3ef22d&&_0x3ef22d['getChild'](_0x3ef22d['childCount']-0x1);_0xc18d11['setSelection'](_0x4879d3,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x44bae1=this['editing']['view'],_0x49cd6b=_0x44bae1['document']['getRoot'](),_0x524568=_0x49cd6b['getChild'](0x0);_0x49cd6b['childCount']>0x1||!_0x524568||'p'!=_0x524568['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x44bae1,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x524568['placeholder']=this['placeholder']),Ft({'view':_0x44bae1,'element':_0x524568,'keepOnFocus':!0x0}),this['placeholderElement']=_0x524568);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x532e96,_0x3375e1={}){super(_0x532e96),this['editor']=null,this['_editorConfig']=_0x3375e1,this['set']('value',_0x3375e1['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x532e96,'Reply...')),this['set']('submitLabel',N(_0x532e96,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x5f5319(),this['focusCycler']=new _0x140f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x24dd75,_0x24ba18)=>{this['cancelButtonView']['fire']('execute'),_0x24ba18();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3b56d0,_0x3ee3b5)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3ee3b5());}),this['on']('submit',(_0x34139d,_0x31e5db)=>{_0x31e5db['length']>0xfde8?(alert(N(_0x532e96,'TOO_LONG_COMMENT_ALERT',[_0x31e5db['length'],0xfde8])),_0x34139d['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x16aa56=this['editor'];this['element']['insertBefore'](_0x16aa56['ui']['element'],this['element']['firstChild']),_0x16aa56['model']['document']['on']('change',()=>this['value']=_0x16aa56['getData']()),_0x16aa56['bind']('placeholder')['to'](this),this['focusables']['add'](_0x16aa56['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4638a8){-0x1===_0x4638a8?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x9d630}=this,_0x52d7e6=new _0x47a354(_0x9d630);return _0x52d7e6['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x52d7e6['withText']=!0x0,_0x52d7e6['bind']('label')['to'](this,'submitLabel'),_0x52d7e6['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x52d7e6['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x536e64,_0x168a8c)=>!_0x168a8c&&!!_0x536e64['trim']()),_0x52d7e6;}['_createCancelButton'](){const {locale:_0x4b32b5}=this,_0x33c61f=new _0x47a354(_0x4b32b5);return _0x33c61f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x33c61f['label']=N(_0x4b32b5,'Cancel'),_0x33c61f['withText']=!0x0,_0x33c61f['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x33c61f;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x5d789f=>{this['focusTracker']['add'](_0x5d789f['element']);}),this['focusables']['on']('change',(_0x46e03d,_0x472025)=>{for(const _0x1a79cd of Array['from'](_0x472025['added'])['reverse']())this['focusTracker']['add'](_0x1a79cd['element']);});}}class ie extends kt{constructor(_0x186388,_0x4c9eb5,_0x28ca93){super(_0x186388),this['commentInputView']=new es(_0x186388,_0x28ca93),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4adc72,_0x2d4e40)=>_0x4adc72||!!_0x2d4e40),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x193858(_0x186388,_0x4c9eb5),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x32f95c){this['commentInputView']['focus'](_0x32f95c);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x21b9a3,_0x2ee8cd)=>{const {submitButtonView:_0x464707,cancelButtonView:_0x16df27,editor:_0x3386de}=this['commentInputView'];[_0x464707['element'],_0x16df27['element'],_0x3386de?_0x3386de['editing']['view']['getDomRoot']():null]['filter'](_0x4c0274=>_0x4c0274)['some'](_0xe054f=>_0xe054f['contains'](_0x2ee8cd['target']))||(this['focus'](),_0x2ee8cd['preventDefault']());});}}class rs extends kt{constructor(_0x22f4cc){super(_0x22f4cc);const _0x50de5d=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x50de5d['to']('count',_0x143643=>N(_0x22f4cc,'NUMBER_OF_COMMENTS',_0x143643))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2f4030,_0x9ab699,_0x5781f3){super(_0x2f4030);const _0x3343b3=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x9ab699['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x9ab699,this['_config']=_0x5781f3,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x5f5319(),this['keystrokes']=new jt(),this['focusCycler']=new _0x140f1f({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x360176=>this['commentViews']['map'](_0x571d04=>_0x571d04['element'])['includes'](_0x360176['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x2f4030),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x239242=>_0x239242-this['_config']['maxCommentsWhenCollapsed']);for(const _0x4eb311 of _0x9ab699['comments'])this['_handleNewCommentModel'](_0x4eb311);this['_handleInfoComment'](),this['listenTo'](_0x9ab699['comments'],'add',(_0x3514,_0x49de90)=>{const _0x1906df=this['_calculatePosition'](_0x49de90);this['length']++,this['_handleNewCommentModel'](_0x49de90,_0x1906df),this['refreshVisibleViews']();}),this['listenTo'](_0x9ab699['comments'],'remove',(_0x5994c5,_0x4e5a28)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4e5a28),this['refreshVisibleViews']();}),this['listenTo'](_0x9ab699,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x9ab699,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x3343b3['if']('length','ck-hidden',_0x2f3031=>!_0x2f3031)],'aria-label':N(_0x2f4030,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x2e1e2b){-0x1===_0x2e1e2b?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x33cfd2 of this['commentViews'])_0x33cfd2['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x5a1b5f,_0x39fb16){const _0x133917=new this['_config']['CommentView'](this['locale'],_0x5a1b5f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x133917['viewUid']=_0x5a1b5f['id'],_0x133917['delegate']('removeComment')['to'](this),_0x133917['delegate']('updateComment')['to'](this),_0x133917['delegate']('resolveCommentThread')['to'](this),_0x133917['delegate']('editorReady')['to'](this),_0x133917['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x133917,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x133917,_0x39fb16);}['_calculatePosition'](_0x4ca0e7){const _0xaaee6c=this['_model']['_findOptimalIndex'](_0x4ca0e7);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x4ca0e7['authoredAt']?_0xaaee6c-0x1:_0xaaee6c:_0xaaee6c-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x56eb59={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x56eb59,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x56eb59));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x232955){const _0xe272c2=this['commentViews']['remove'](_0x232955['id']);this['stopListening'](_0xe272c2),_0xe272c2['isEditMode']&&this['_updateHasDirtyComment'](),_0xe272c2['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1ea64c=>_0x1ea64c['isEditMode']);}['_rearrangeCollapse'](){const _0x3aef9a=function(_0x381723){const _0xc579d=new _0x139e96();for(const _0x29819c of _0x381723)_0xc579d['add'](_0x29819c);return _0xc579d;}(this['commentViews']),_0x3a6c23=this['_collapsedCommentsView']['count'];for(let _0x39bf2f=0x1;_0x39bf2f<=_0x3a6c23;_0x39bf2f++)_0x3aef9a['remove'](0x1);for(const _0x4b8a0b of _0x3aef9a)_0x4b8a0b['collapse']();_0x3a6c23>0x0&&_0x3aef9a['add'](this['_collapsedCommentsView'],0x1),ns(_0x52b175(Array['from'](this['visibleViews']),Array['from'](_0x3aef9a)),this['visibleViews'],_0x3aef9a);}['_rearrangeExpand'](){ns(_0x52b175(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x111ed6 of this['visibleViews'])_0x111ed6['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x539bcb=>{this['focusTracker']['add'](_0x539bcb['element']),this['keystrokes']['listenTo'](_0x539bcb['element']);}),this['commentViews']['on']('change',(_0x1ae5d9,_0x47aafd)=>{for(const _0x328654 of _0x47aafd['removed'])this['focusTracker']['remove'](_0x328654['element']),this['keystrokes']['stopListening'](_0x328654['element']);for(const _0x4cf4f1 of Array['from'](_0x47aafd['added'])['reverse']())this['focusTracker']['add'](_0x4cf4f1['element']),this['keystrokes']['listenTo'](_0x4cf4f1['element']);});}}function ns(_0xdd8c44,_0x49dbe2,_0x273ecf){let _0x5e87b8=0x0;for(const _0x5bb72a of _0xdd8c44)switch(_0x5bb72a){case'insert':_0x49dbe2['add'](_0x273ecf['get'](_0x5e87b8),_0x5e87b8),_0x5e87b8++;break;case'delete':_0x49dbe2['remove'](_0x5e87b8);break;case'equal':_0x5e87b8++;}}class oe extends kt{constructor(_0x4a4f13){super(_0x4a4f13);const _0x4e6007=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4e6007['to']('contextValue',_0x127637=>N(_0x4a4f13,'THREAD_CONTEXT_LABEL',_0x127637)),'tabindex':-0x1},'children':[{'text':_0x4e6007['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2b150d,_0x377fa5){super(_0x2b150d);const _0x2bcdcd=this['bindTemplate'];this['_model']=_0x377fa5,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x5f5319(),this['keystrokes']=new jt(),this['focusCycler']=new _0x140f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x5a6a75=>!!_0x5a6a75),this['bind']('contextValue')['to'](this['_model'],'context',_0x3b46ea=>_0x3b46ea&&_0x3b46ea['value']?this['_trimContextValue'](_0x3b46ea['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x2bcdcd['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x172aaa=new _0x47a354(this['locale']);return _0x172aaa['label']=N(this['locale'],'Reopen'),_0x172aaa['tooltip']=N(this['locale'],'Reopen'),_0x172aaa['icon']=_0x130a47,_0x172aaa['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x54f77=>!_0x54f77),_0x172aaa['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x42ec5c,_0x194a95)=>_0x42ec5c&&_0x194a95),_0x172aaa['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x172aaa;}['_trimContextValue'](_0x5c18a5){if(_0x5c18a5['length']<0x96)return _0x5c18a5;const _0x161674=_0x5c18a5['lastIndexOf']('\x20',0x93);return _0x5c18a5['substring'](0x0,_0x161674>-0x1?_0x161674:0x93)+'...';}['_attachContextActions'](){const _0x247bca=this['element']['querySelector']('.ck-context'),_0x465291=_0x247bca['querySelector']('.ck-context__value');this['listenTo'](_0x247bca,'mouseenter',()=>{_0x465291['offsetWidth']<_0x465291['scrollWidth']&&_0x247bca['classList']['add']('overlay');}),this['listenTo'](_0x247bca,'mouseleave',()=>{_0x247bca['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x47fa2b of this['focusables'])this['focusTracker']['add'](_0x47fa2b['element']),this['keystrokes']['listenTo'](_0x47fa2b['element']);}['_createContextView'](){const _0x16c793=new oe(this['locale']);return _0x16c793['bind']('contextValue')['to'](this),_0x16c793;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x54b277,_0x2705b5,_0x44f53d,_0x225fb5){super(_0x54b277),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x2705b5,this['_localUser']=_0x44f53d,this['_config']=_0x225fb5,this['commentThreadHeaderView']=new Xt(_0x54b277,_0x2705b5),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x54b277,N(_0x54b277,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x54b277,_0x2705b5,Object['assign']({'CommentView':this['_config']['CommentView']},_0x225fb5)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4b933c,_0x1dd826)=>_0x4b933c||!!_0x1dd826),this['bind']('isUnlinked')['to'](_0x2705b5,'unlinkedAt',_0x2bbc7b=>!!_0x2bbc7b),this['bind']('ariaLabel')['to'](this,'length',_0x49ad7a=>{const _0x9f9537=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x49ad7a,_0x9f9537]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x5f5319(),this['keystrokes']=new jt(),this['focusCycler']=new _0x140f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x356ad7=>_0x356ad7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x21e3fd=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x48f60a=_0x21e3fd['commentInputView'];return _0x21e3fd['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x48f60a,'value',(_0x2c1a97,_0x1b4dd2,_0x44448c,_0x171611,_0x161c98)=>!!_0x161c98||!!_0x171611&&_0x44448c&&!_0x1b4dd2||_0x2c1a97&&_0x44448c&&!_0x1b4dd2),_0x48f60a['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5d3337,_0x4174bc,_0x4d3357)=>{let _0x1b215d;return _0x1b215d=_0x4d3357&&_0x4174bc?'Reply\x20to\x20reopen\x20discussion...':_0x5d3337?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x1b215d);}),_0x48f60a['bind']('submitLabel')['to'](this,'length',_0x40baca=>N(this['locale'],_0x40baca?'Reply':'Comment')),_0x48f60a['on']('submit',(_0x2c77b1,_0xa60ad6)=>{this['fire']('addComment',_0xa60ad6),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x48f60a['on']('cancel',()=>{this['focus']();}),_0x48f60a['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x48f60a['on']('cancel',_0x86753a=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x86753a['stop']());}),this['on']('change:isActive',(_0x59ea1d,_0x11da3f,_0x12bd8a)=>{_0x12bd8a||this['length']||_0x48f60a['value']||this['fire']('removeCommentThread');}),_0x21e3fd;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x40ae74,_0x50e3d,_0x38a291,_0x558856){super(_0x40ae74,_0x50e3d,_0x38a291,_0x558856),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x40ae74,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x330c17,_0x341fbd,_0x201b9b)=>{_0x201b9b||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x308a97,_0x89e4f,_0x2f80d8)=>{_0x2f80d8&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x34d771=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x34d771['if']('isActive','ck-thread--active'),_0x34d771['if']('isUnlinked','ck-thread--unlinked'),_0x34d771['to']('actionIndicator',_0x54d1e8=>_0x54d1e8?'ck-thread--'+_0x54d1e8:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x34d771['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x31b5c6 of this['commentsListView']['commentViews'])_0x31b5c6['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x648028}=this,_0x3007ba=this['commentsListView']['commentViews']['get'](0x0);_0x3007ba===this['_boundFirstCommentView']||_0x3007ba['isSystemComment']||(this['_boundFirstCommentView']=_0x3007ba,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3007ba,'actionIndicator',_0x400930=>'remove'===_0x400930?'remove':null),_0x3007ba['placeholder']=N(_0x648028,'Write\x20a\x20comment...'),_0x3007ba['removeButton']['on']('execute',_0x7183d5=>{_0x7183d5['stop'](),this['showConfirm'](N(_0x648028,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3007ba['focus']();}),_0x3007ba['actionBar']['add'](this['resolveButton'],0x0),_0x3007ba['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2d4084=new _0x188cb3(this['locale']);return _0x2d4084['label']=N(this['locale'],'Resolve'),_0x2d4084['tooltip']=N(this['locale'],'Resolve'),_0x2d4084['icon']=_0x2a328a,_0x2d4084['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2d4084['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x415828=>!_0x415828),_0x2d4084['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0xea1c2b,_0x558482)=>_0xea1c2b&&!_0x558482),_0x2d4084['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2d4084;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0xd808c1){super(_0xd808c1),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x1bc05d,_0x427bf7,_0x5f100c)=>{this['element']['innerHTML']=_0x5f100c;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x57563c,_0x3ae401,_0x3fb87c){super(_0x57563c),this['_model']=_0x3ae401,this['_config']=_0x3fb87c,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3ae401,'content',_0x3ae401,'authoredAt',(_0x53a348,_0x1d4ba0)=>N(_0x57563c,'COMMENT_ARIA_LABEL',[_0x3ae401['author']['name'],_0x3fb87c['formatDateTime'](_0x1d4ba0),new DOMParser()['parseFromString'](_0x53a348,'text/html')['body']['textContent'],_0x3ae401['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x57563c,N(_0x57563c,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x577399(),this['focusTracker']=new _0x5f5319(),this['keystrokes']=new jt(),this['focusCycler']=new _0x140f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1a8b3d=>_0x1a8b3d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x3063f2=new is(this['locale']);return _0x3063f2['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x3b8e17,_0x1ef626)=>_0x1ef626?ts(_0x3b8e17,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x3b8e17),_0x3063f2;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x5387b2=new es(this['locale'],this['_config']['editorConfig']);return _0x5387b2['value']=this['_model']['content'],_0x5387b2['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5387b2['submitLabel']=N(this['locale'],'Save'),_0x5387b2['on']('submit',(_0x104525,_0x54d33d)=>{this['fire']('updateComment',this['_model']['id'],_0x54d33d),this['switchToDisplayMode'](),this['focus']();}),_0x5387b2['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x5387b2['once']('editorReady',()=>{_0x5387b2['focus']();}),_0x5387b2['createEditor'](),_0x5387b2['delegate']('editorReady')['to'](this),_0x5387b2['delegate']('editorDestroyed')['to'](this),_0x5387b2;}['_setupKeyboardNavigation'](){const _0x5e7a2b=this['element'];this['keystrokes']['listenTo'](_0x5e7a2b);for(const _0x38dd59 of this['focusables'])this['focusTracker']['add'](_0x38dd59['element']),this['keystrokes']['listenTo'](_0x38dd59['element']);this['focusables']['on']('change',(_0x57c64f,_0x103357)=>{for(const _0x3749ee of _0x103357['removed'])this['focusTracker']['remove'](_0x3749ee['element']),this['keystrokes']['stopListening'](_0x3749ee['element']);for(const _0x578dcc of _0x103357['added'])this['focusTracker']['add'](_0x578dcc['element']),this['keystrokes']['listenTo'](_0x578dcc['element']);}),this['keystrokes']['set']('enter',(_0x389905,_0x493482)=>{_0x5e7a2b===_0x389905['target']&&(this['focusCycler']['focusFirst'](),_0x493482());}),this['keystrokes']['set']('esc',(_0x51809c,_0xed9c8e)=>{_0x5e7a2b!==_0x51809c['target']&&(this['focus'](),_0xed9c8e());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x4d7379,_0x49c673,_0x1a2f64){super(_0x4d7379,_0x49c673,_0x1a2f64),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x4d7379,'Reply...')),this['bind']('authoredAt')['to'](_0x49c673),this['bind']('resolvedAt')['to'](_0x49c673),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x193858(_0x4d7379,_0x49c673['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x49c673,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1b5272=this['bindTemplate'],_0x48068a=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1b5272['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1b5272['to']('authoredAt',_0x4f024e=>this['_config']['formatDateTime'](_0x4f024e))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x1b5272['if']('isEditMode','ck-comment__actions--hidden'),_0x1b5272['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x48068a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x1b5272['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x1b5272['if']('isEditMode','ck-comment--edit'),_0x1b5272['if']('isSystemComment','ck-comment--info'),_0x1b5272['to']('actionIndicator',_0x19d792=>_0x19d792?'ck-comment--'+_0x19d792:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x48068a}]}]};}['_createEditButton'](){const _0xf4fe27=new _0x47a354(this['locale']);return _0xf4fe27['label']=N(this['locale'],'Edit'),_0xf4fe27['icon']=_0x5939de,_0xf4fe27['withText']=!0x0,_0xf4fe27['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0xf4fe27['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x55e0a1=>!_0x55e0a1),_0xf4fe27['bind']('isVisible')['to'](this['_model'],'isEditable'),_0xf4fe27['on']('execute',()=>this['switchToEditMode']()),_0xf4fe27;}['_createRemoveButton'](){const _0x31516f=new _0x47a354(this['locale']);return _0x31516f['label']=N(this['locale'],'Remove'),_0x31516f['icon']=_0x92b88,_0x31516f['withText']=!0x0,_0x31516f['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x31516f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xf033ae=>!_0xf033ae),_0x31516f['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x31516f['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x31516f;}['_createDropdown'](){const _0x535109=_0x3deee8(this['locale'],_0x539736),_0x7dcfcd=_0x535109['panelView']['children'],_0x433d3f=new _0x5ca25c(this['locale']),_0x88c7ed=_0x535109['bindTemplate'];_0x1518f9(_0x535109,()=>this['items']['find'](_0x44d54c=>_0x44d54c['isVisible'])),_0x535109['extendTemplate']({'attributes':{'class':[_0x88c7ed['if']('isVisible','ck-hidden',_0xe60691=>!_0xe60691)]}});const _0x4b1e0b=(_0x5acd43,_0x38479b=-0x1)=>{const _0x3ea0bd=new _0x365663(this['locale']);_0x3ea0bd['children']['add'](_0x5acd43);const _0x55f01f=_0x38479b>-0x1?_0x38479b:_0x433d3f['items']['length'];_0x433d3f['items']['add'](_0x3ea0bd,_0x55f01f);const _0x16e998=Array['from'](this['items']);_0x535109['unbind']('isEnabled','isVisible'),_0x535109['bind']('isEnabled')['toMany'](_0x16e998,'isEnabled',(..._0x51a35c)=>_0x51a35c['some'](_0x3214ad=>_0x3214ad)),_0x535109['bind']('isVisible')['toMany'](_0x16e998,'isVisible',(..._0x5390b0)=>_0x5390b0['some'](_0x9fac88=>_0x9fac88));};_0x535109['panelPosition']='sw',_0x535109['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x44b678});for(const _0x27dad0 of this['items'])_0x4b1e0b(_0x27dad0);return _0x7dcfcd['add'](_0x433d3f),_0x535109['listenTo'](this['items'],'add',(_0x6ac6d0,_0x550cd2,_0xc88233)=>{_0x4b1e0b(_0x550cd2,_0xc88233);}),_0x535109['listenTo'](this['items'],'remove',(_0x5508d7,_0x135aaa,_0x596809)=>{_0x433d3f['items']['remove'](_0x596809);}),_0x535109;}['_attachActions'](_0x18dd8e,_0x5e77a4){const _0x48482f=_0x18dd8e&&_0x18dd8e['element'];_0x48482f&&(this['listenTo'](_0x48482f,'mouseenter',()=>this['actionIndicator']=_0x5e77a4),this['listenTo'](_0x48482f,'focus',()=>this['actionIndicator']=_0x5e77a4),this['listenTo'](_0x48482f,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x48482f,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x46a7ef=super['_createCommentInputView']();return _0x46a7ef['bind']('placeholder')['to'](this),_0x46a7ef;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x2ee6d5){const _0x1bf762=Dt(_0x2ee6d5,0x1e),_0x19f99d=new MutationObserver(_0x1ed9e4=>{for(const _0x572cee of _0x1ed9e4)('attributes'==_0x572cee['type']&&'class'==_0x572cee['attributeName']||'childList'==_0x572cee['type']||'characterData'==_0x572cee['type'])&&_0x1bf762();});return{'attach'(_0x448b45){_0x19f99d['observe'](_0x448b45,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x19f99d['disconnect'](),_0x1bf762['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x117a1e,_0x52f251){super(_0x117a1e),this['id']=_0x4c5e37(),this['focusTracker']=new _0x5f5319(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x200bf5,_0x24b16f)=>this['fire']('Esc',_0x24b16f)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x52f251),this['mainView']=_0x52f251;const _0x178025=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x178025['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x1098c5=this['element']['clientHeight'];_0x1098c5&&(this['height']=_0x1098c5);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x41c8cb(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x26e44a,target:_0x235b72,type:_0x3f76fa,isVisible:_0x53b625=!0x0}){super(),this['view']=_0x26e44a,this['view']['element']||this['view']['render'](),this['_type']=_0x3f76fa,this['_target']=_0x235b72,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x139e96([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x56b5ba,_0x943a83)=>{this['view']['focusTracker']['add'](_0x943a83);}),this['focusableElements']['on']('remove',(_0x2e2dbc,_0x528803)=>{this['view']['focusTracker']['remove'](_0x528803);}),this['set']('isVisible',_0x53b625);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3d1708=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x3d1708),_0x3d1708;}get['targetRect'](){const _0x5b0d29=this['target'];if(null===_0x5b0d29)return null;if(_0x5b0d29 instanceof _0x3f14b6)return _0x5b0d29;const _0x194a5f=_0x5b0d29['filter'](_0x305ed7=>function(_0x186e1f){const _0x3ae0a6=_0x186e1f['offsetParent'];if(_0x3ae0a6)return!0x0;const _0x1b39eb=_0x186e1f['getClientRects']()['item'](0x0);return!!_0x1b39eb;}(_0x305ed7));return 0x0===_0x194a5f['length']?null:new _0x3f14b6(_0x194a5f[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5271b4){this['view']['isActive']=_0x5271b4,this['view']['mainView']['isActive']=_0x5271b4;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x2d3153){if(!(null===_0x2d3153||_0x2d3153 instanceof _0x3f14b6||Array['isArray'](_0x2d3153)&&_0x2d3153['every'](_0x5f575a=>fi(_0x5f575a))))throw new _0x266f92('annotation-invalid-target',null,{'target':_0x2d3153});}['_getNormalizedTarget'](){const _0x56af1b='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x56af1b)?[_0x56af1b]:_0x56af1b;}}function fi(_0x4ba54e){return null!==_0x4ba54e&&'object'==typeof _0x4ba54e&&'nodeType'in _0x4ba54e&&0x1===_0x4ba54e['nodeType'];}class S extends _0x139e96{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x9890f7=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x5f5319(),this['_focusTracker']['on']('change:isFocused',(_0x30bd59,_0x594026,_0x5af28a)=>{_0x5af28a||this['fire']('blur');});for(const _0x5de883 of _0x9890f7)this['add'](_0x5de883);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x3e24a9){if(this['has'](_0x3e24a9))throw new _0x266f92('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x3e24a9['innerView'],_0x3e24a9),this['_viewToAnnotation']['set'](_0x3e24a9['view'],_0x3e24a9);for(const _0x4c2cca of _0x3e24a9['focusableElements'])this['_focusTracker']['add'](_0x4c2cca);this['listenTo'](_0x3e24a9['focusableElements'],'add',(_0x3ac30b,_0x1a8a90)=>{this['_focusTracker']['add'](_0x1a8a90);}),this['listenTo'](_0x3e24a9['focusableElements'],'remove',(_0x1db501,_0x121890)=>{this['_focusTracker']['remove'](_0x121890);}),this['listenTo'](_0x3e24a9['view']['focusTracker'],'change:isFocused',(_0x435344,_0x4eb7e8,_0x53eabb)=>{_0x53eabb&&this['fire']('focus',_0x3e24a9);}),_0x3e24a9['updateTargetRect']();const _0x5554f2=this['_getOrderInContent'](_0x3e24a9['view']['targetRect']);return super['add'](_0x3e24a9,_0x5554f2);}['remove'](_0x23f535){if(!this['has'](_0x23f535))throw new _0x266f92('annotationcollection-not-existing-item',null);this['stopListening'](_0x23f535['view']['focusTracker']),this['stopListening'](_0x23f535['focusableElements']);for(const _0x2909ca of _0x23f535['focusableElements'])this['_focusTracker']['remove'](_0x2909ca);return this['_viewToAnnotation']['delete'](_0x23f535['view']),this['_innerViewToAnnotation']['delete'](_0x23f535['innerView']),super['remove'](_0x23f535);}['getByInnerView'](_0x3877e6){return this['_innerViewToAnnotation']['get'](_0x3877e6);}['getByView'](_0x1cee72){return this['_viewToAnnotation']['get'](_0x1cee72);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x10fdb0 of this)_0x10fdb0['updateTargetRect']();this['_sort']();}['_sort'](){const _0x1b969a=Array['from'](this)['sort']((_0x162dd9,_0x305661)=>w(_0x162dd9['view']['targetRect'],_0x305661['view']['targetRect']));for(let _0x224b0f=_0x1b969a['length']-0x1;_0x224b0f>0x0;_0x224b0f--){const _0x3cf51c=_0x1b969a[_0x224b0f];_0x224b0f!==this['getIndex'](_0x3cf51c)&&(this['remove'](_0x3cf51c),this['add'](_0x3cf51c));}}['_getOrderInContent'](_0x40eb1e){let _0x35c4e6=0x0;if(!_0x40eb1e)return this['length'];for(const _0x112845 of this){const _0x36abbf=_0x112845['view']['targetRect'];if(_0x36abbf){if(w(_0x40eb1e,_0x36abbf)<0x0)return _0x35c4e6;_0x35c4e6++;}}return _0x35c4e6;}}function v({source:_0x6f27d,target:_0x13cddc,filter:_0x3ee75c}){for(const _0x1e80b4 of _0x6f27d)_0x3ee75c(_0x1e80b4)&&_0x13cddc['add'](_0x1e80b4);_0x13cddc['listenTo'](_0x6f27d,'add',(_0x1bdede,_0x360a17)=>{_0x3ee75c(_0x360a17)&&_0x13cddc['add'](_0x360a17);}),_0x13cddc['listenTo'](_0x6f27d,'remove',(_0x5ee66e,_0x948477)=>{_0x13cddc['has'](_0x948477)&&_0x13cddc['remove'](_0x948477);});}function w(_0x2c340e,_0x416a54){if(null===_0x2c340e&&null===_0x416a54)return 0x0;if(null===_0x2c340e)return-0x1;if(null===_0x416a54)return 0x1;const _0xa8b561=_0x2c340e['top']-_0x416a54['top'];return 0x0==_0xa8b561?_0x2c340e['left']-_0x416a54['left']:_0xa8b561;}class y extends _0x152fb7{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d4089){if(super(_0x1d4089),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1d4089 instanceof _0x1f8384){const _0xe0325a=_0x1d4089['locale'];_0x1d4089['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x1d658b){this['collection']['add'](_0x1d658b);}['remove'](_0x495b04){this['collection']['remove'](_0x495b04),_0x495b04['destroy']();}['refreshVisibility'](){for(const _0x386924 of this['collection'])_0x386924['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x514cce){return this['collection']['getByInnerView'](_0x514cce);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x273d25 of this['collection'])_0x273d25['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x61a3cb){this['fire']('_activateAnnotation',_0x61a3cb);}['createAnnotation'](_0x1f55b3){return new T(_0x1f55b3);}['createAnnotationView'](_0x33209d,_0x4fd0ee){return new E(_0x33209d,_0x4fd0ee);}['_addActiveAnnotation'](_0xcbbd74){const _0x1cba97=new Set(this['activeAnnotations']);_0x1cba97['add'](_0xcbbd74),this['activeAnnotations']=_0x1cba97;}['_removeActiveAnnotation'](_0x5b7a5c){const _0x66b187=new Set(this['activeAnnotations']);_0x66b187['delete'](_0x5b7a5c),this['activeAnnotations']=_0x66b187;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3f3188=this['collection'],_0x4a705a=this['_visibleAnnotations'];function _0x169e85(_0x547d23){const _0x5c8f8b=_0x547d23['source'];_0x5c8f8b['isVisible']&&!_0x4a705a['has'](_0x5c8f8b)?_0x4a705a['add'](_0x5c8f8b):!_0x5c8f8b['isVisible']&&_0x4a705a['has'](_0x5c8f8b)&&_0x4a705a['remove'](_0x5c8f8b),_0x5c8f8b['view']['focusTracker']['remove'](_0x5c8f8b['view']['element']),_0x5c8f8b['view']['focusTracker']['add'](_0x5c8f8b['view']['element']);}this['listenTo'](_0x3f3188,'add',(_0x1ec58b,_0x445f20)=>{_0x445f20['isVisible']&&_0x4a705a['add'](_0x445f20),this['listenTo'](_0x445f20,'change:isVisible',_0x169e85);}),this['listenTo'](_0x3f3188,'remove',(_0x7c7076,_0x578846)=>{_0x4a705a['has'](_0x578846)&&_0x4a705a['remove'](_0x578846),this['stopListening'](_0x578846,'change:isVisible',_0x169e85);});}['_setupEnterAnnotationKeystroke'](){const _0x1b84ec=_0xee9c7d=>{_0xee9c7d['on']('ready',()=>{_0xee9c7d['keystrokes']['set'](_0x3b0de7,(_0x46ec73,_0x29a075)=>{const _0x41f3fd=_0x49bf05(this['activeAnnotations']['values']());_0x41f3fd&&(_0x41f3fd['view']['focus'](),_0x29a075());});});};this['context']instanceof _0x1f8384?_0x1b84ec(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x58554c,_0x50917f)=>{_0x1b84ec(_0x50917f);});}['_setupEscapeAnnotationHandling'](){const _0x36e238=_0x303133=>{const _0x394015=_0x303133['source'],_0x24ed0a=[];let _0xa0d7c7;if(Array['isArray'](_0x394015['target'])){_0xa0d7c7=_0x394015['target'][0x0],this['context']instanceof _0x1f8384?_0x24ed0a['push'](this['context']):this['context']['editors']&&_0x24ed0a['push'](...this['context']['editors']);for(const _0x501be8 of _0x24ed0a)for(const _0x14f96e of _0x501be8['editing']['view']['domRoots']['values']())if(_0x14f96e['contains'](_0xa0d7c7))return void _0x501be8['editing']['view']['focus']();_0xa0d7c7['focus']();}};this['listenTo'](this['collection'],'add',(_0x2d2a6e,_0x42a7d8)=>{this['listenTo'](_0x42a7d8,'escape',_0x36e238,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x25b4bd,_0x5740b9)=>{this['stopListening'](_0x5740b9,'escape',_0x36e238);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x152fb7{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45a819){super(_0x45a819),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1afdf2=this['context']['config'];_0x1afdf2['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1afdf2['define']('comments.maxThreadTotalWeight',0x1f4),_0x1afdf2['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1afdf2['define']('comments.CommentThreadView',gt),_0x1afdf2['define']('comments.CommentView',Tt),_0x1afdf2['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3b6858=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x26bed8,_0x358865)=>this['_addCommentThread'](_0x358865)),this['on']('submitCommentThread',(_0x3d5b8c,_0xca3659)=>this['_submitCommentThread'](_0xca3659)),this['on']('resolveCommentThread',(_0x98e652,_0x510851)=>this['_resolveCommentThread'](_0x510851)),this['on']('resolveCommentThread',(_0x3e5909,_0x4e7135)=>this['_updateActiveAnnotation'](_0x4e7135),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x10458a,_0x222265)=>this['_reopenCommentThread'](_0x222265)),this['on']('reopenCommentThread',(_0x562fd3,_0x2addf4)=>this['_updateActiveAnnotation'](_0x2addf4),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x14d8c6,_0x179bd6)=>this['_removeCommentThread'](_0x179bd6)),this['on']('updateCommentThread',(_0x163e98,_0x24705d)=>this['_updateCommentThread'](_0x24705d)),this['on']('updateCommentThread',(_0x5d217a,_0x394959)=>this['_updateActiveAnnotation'](_0x394959),{'priority':'lowest'}),this['on']('addComment',(_0x36b483,_0x3db42f)=>this['_addComment'](_0x3db42f)),this['on']('updateComment',(_0x44db19,_0x3879d3)=>this['_updateComment'](_0x3879d3)),this['on']('removeComment',(_0x2da261,_0x186a63)=>this['_removeComment'](_0x186a63)),this['on']('addComment',(_0x4ad97d,{threadId:_0x16c377,isFromAdapter:_0x160743})=>{if(_0x160743)return;const _0x180dc8=this['getCommentThread'](_0x16c377),_0x147fd7=_0x180dc8&&this['_threadToController']['get'](_0x180dc8);_0x147fd7&&_0x147fd7['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3b6858,'change:activeAnnotations',(_0x2838bb,_0x31fae9,_0x1d7e6c)=>{const _0x5a0b68=Array['from'](_0x1d7e6c)['map'](_0x4521cb=>this['_viewToController']['get'](_0x4521cb['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5a0b68?_0x5a0b68['model']:null;});}set['adapter'](_0x21050d){if(this['_adapter'])throw new _0x266f92('commentsrepository-adapter-already-set');this['_adapter']=_0x21050d;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5dee48=_t,threadId:_0x30743f=_0x4c5e37(),comments:_0x1e216d=[],unlinkedAt:_0x20ecef=null,resolvedAt:_0x1aa1e0=null,resolvedBy:_0x6b63f6=null,target:_0x462fb8=null,context:_0x501e16=null,attributes:_0x406d2c={},isResolvable:_0x5387f6=!0x0,isSubmitted:_0x38d16c=!0x1,isFromAdapter:_0xb222a5=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x5dee48),{'channelId':_0x5dee48,'threadId':_0x30743f,'comments':_0x1e216d,'unlinkedAt':_0x20ecef,'resolvedAt':_0x1aa1e0,'resolvedBy':_0x6b63f6,'target':_0x462fb8,'context':_0x501e16,'attributes':_0x406d2c,'isFromAdapter':_0xb222a5,'isResolvable':_0x5387f6,'isSubmitted':_0x38d16c}),this['getCommentThread'](_0x30743f);}['openNewCommentThread']({channelId:_0x415aec=_t,threadId:_0x504516=_0x4c5e37(),target:_0x2dd969,context:_0x1af586=null,isResolvable:_0x39d693=!0x0}){if(this['_readOnlyChannels']['has'](_0x415aec)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x2dd969)throw new _0x266f92('commentsrepository-missing-target');const _0x1036d3=this['addCommentThread']({'channelId':_0x415aec,'threadId':_0x504516,'target':_0x2dd969,'context':_0x1af586,'isResolvable':_0x39d693});if(!_0x1036d3)return null;const _0x1e2098=this['_threadToController']['get'](_0x1036d3),_0x2ede26=_0x1e2098['view']['commentThreadInputView']['commentInputView'],_0x34858b=this['context']['plugins']['get'](y),_0x59f928=_0x34858b['getByInnerView'](_0x1e2098['view']);return _0x34858b['activate'](_0x59f928),_0x2ede26['once']('editorReady',()=>_0x2ede26['focus']()),_0x1036d3;}['hasCommentThread'](_0x46faf5){if('string'!=typeof _0x46faf5)throw new _0x266f92('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x46faf5);}['updateCommentThread']({channelId:_0x2b9a48=_t,threadId:_0xbb1bfc,context:_0x2ae7b5,unlinkedAt:_0x6e375b,attributes:_0x10298c,isFromAdapter:_0x5c4fc3=!0x1}){return this['fire'](Nt('updateCommentThread',_0x2b9a48),{'channelId':_0x2b9a48,'threadId':_0xbb1bfc,'context':_0x2ae7b5,'unlinkedAt':_0x6e375b,'attributes':_0x10298c,'isFromAdapter':_0x5c4fc3}),this['getCommentThread'](_0xbb1bfc);}['getCommentThread'](_0x41b4ec){if('string'!=typeof _0x41b4ec)throw new _0x266f92('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x41b4ec);}['fetchCommentThread']({channelId:_0x5d5f38,threadId:_0x57a1b1}={}){const _0x2d42b6=this['getCommentThread'](_0x57a1b1);if(_0x2d42b6)return Promise['resolve'](_0x2d42b6);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x266f92('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5d5f38,'threadId':_0x57a1b1})['then'](_0x5f4e64=>this['hasCommentThread'](_0x57a1b1)?this['getCommentThread'](_0x57a1b1):_0x5f4e64?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5d5f38},_0x5f4e64)):void 0x0)['catch'](_0x37437d=>{throw console['error'](_0x37437d),new _0x266f92('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x289e1d,skipNotAttached:_0x3b54ad=!0x1,skipEmpty:_0x4cd618=!0x1,toJSON:_0x4d1f4b=!0x1}={}){const _0x432217=[];for(const _0x292905 of this['_threads']['values']())_0x289e1d&&_0x292905['channelId']!==_0x289e1d||_0x3b54ad&&!_0x292905['isAttached']||_0x4cd618&&0x0===_0x292905['length']||_0x432217['push'](_0x292905);return _0x4d1f4b?_0x432217['map'](_0x43868e=>_0x43868e['toJSON']()):_0x432217;}['getAnnotationForCommentThread'](_0x5c2b64){const _0x1f3f5c=this['_threadToController']['get'](_0x5c2b64);if(!_0x1f3f5c)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x1f3f5c['view'])||null;}['getCommentThreadForAnnotation'](_0x76df22){const _0x46aaf2=this['_viewToController']['get'](_0x76df22['innerView']);return _0x46aaf2?_0x46aaf2['model']:null;}['setActiveCommentThread'](_0x478fd3){const _0x47c65d=this['context']['plugins']['get'](y);if(!_0x478fd3)return void(this['activeCommentThread']&&_0x47c65d['deactivateAll']());const _0x4dd6a1=this['getCommentThread'](_0x478fd3);if(!_0x4dd6a1)throw new _0x266f92('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x478fd3});if(!this['_threadToController']['has'](_0x4dd6a1))throw new _0x266f92('commentsrepository-active-not-attached',null,{'threadId':_0x478fd3});const _0x1d5574=_0x47c65d['getByInnerView'](this['_threadToController']['get'](_0x4dd6a1)['view']);_0x47c65d['activate'](_0x1d5574);}['switchReadOnly'](_0x579e2d,_0x385760){_0x579e2d?this['_readOnlyChannels']['add'](_0x385760):this['_readOnlyChannels']['delete'](_0x385760),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x420004){return this['_readOnlyChannels']['has'](_0x420004)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x32d6be,_0xb24d2b){return new vt(_0x32d6be,_0xb24d2b);}['setPermissions'](_0x3f786d,_0x2481e7=_t){this['_permissions']['set'](_0x2481e7,_0x3f786d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x5b9a43=_t){return this['_permissions']['has'](_0x5b9a43)?this['_permissions']['get'](_0x5b9a43):bt;}['_addCommentThread']({channelId:_0x283e10,threadId:_0x3985f0,comments:_0x327482,unlinkedAt:_0x5d6eae,resolvedAt:_0x57f75a,resolvedBy:_0x3c1442,target:_0x5aea21,context:_0x568af2,attributes:_0x4e61d4,isFromAdapter:_0x3cbaea,isResolvable:_0x24598e,isSubmitted:_0x197be6}){if('string'!=typeof _0x3985f0)throw new _0x266f92('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3985f0});if(this['hasCommentThread'](_0x3985f0))throw new _0x266f92('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x3985f0});const _0xef0aa4=new pi(this,{'channelId':_0x283e10,'id':_0x3985f0,'context':_0x568af2,'attributes':_0x4e61d4,'unlinkedAt':_0x5d6eae,'resolvedAt':_0x57f75a,'resolvedBy':_0x3c1442?this['context']['plugins']['get'](it)['getUser'](_0x3c1442):null,'isResolvable':_0x24598e,'isSubmitted':_0x197be6||_0x3cbaea});this['_threads']['set'](_0x3985f0,_0xef0aa4);for(const _0x146615 of _0x327482)_0xef0aa4['_add'](this['_createNewComment']({'threadId':_0x3985f0,..._0x146615}));return _0x5aea21&&_0xef0aa4['attachTo'](_0x5aea21),_0x3cbaea||!_0xef0aa4['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x283e10,'threadId':_0x3985f0});}['_submitCommentThread']({channelId:_0x288f59,threadId:_0x44e7ff}){if(!this['hasCommentThread'](_0x44e7ff))throw new _0x266f92('commentsrepository-missing-comment-thread',this);const _0x2ec2aa=this['getCommentThread'](_0x44e7ff);if(_0x2ec2aa['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x19ae11,comments:_0x306d74,resolvedAt:_0x318d40,resolvedBy:_0xcbdda4,context:_0x21efa0,attributes:_0x5691eb}=_0x2ec2aa,_0x1e6486=this['context']['plugins']['get']('PendingActions'),_0x59fd79=_0x1e6486['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x288f59,'threadId':_0x19ae11,'comments':_0x306d74['map'](_0x4b5426=>_0x4b5426['toJSON']()),'resolvedAt':_0x318d40,'resolvedBy':_0xcbdda4?_0xcbdda4['id']:_0xcbdda4,'context':_0x21efa0,'attributes':_0x5691eb})['then'](({comments:_0x886b3b})=>{_0x1e6486['remove'](_0x59fd79);for(const _0x37b7e9 of _0x886b3b)this['_updateComment']({'channelId':_0x288f59,'threadId':_0x44e7ff,'commentId':_0x37b7e9['commentId'],'createdAt':_0x37b7e9['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x278143=>{throw console['error'](_0x278143),new _0x266f92('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x13d471,target:_0x280d2b}){const _0x2fa642=this['getCommentThread'](_0x13d471);if(!_0x2fa642)throw new _0x266f92('commentsrepository-attach-missing-comment-thread',this);const _0x1ca8d1=this['context']['plugins']['get']('PendingActions'),_0x19e333=this['context']['plugins']['get'](y),_0x49cacc=this['_createCommentThreadView'](_0x2fa642),_0x20d4f6=new vt(_0x2fa642,_0x49cacc);let _0x5c31c6=null;_0x49cacc['on']('change:isDirty',(_0x22de24,_0xc8dc69,_0xc4638b)=>{_0xc4638b?_0x5c31c6=_0x1ca8d1['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5c31c6&&(_0x1ca8d1['remove'](_0x5c31c6),_0x5c31c6=null);}),this['_threadToController']['set'](_0x2fa642,_0x20d4f6),this['_viewToController']['set'](_0x49cacc,_0x20d4f6);const _0x11d77f=new E(this['context']['locale'],_0x49cacc);_0x11d77f['bind']('length')['to'](_0x49cacc),_0x11d77f['bind']('isDirty')['to'](_0x49cacc,'isDirty',_0x49cacc,'length',(_0x51ce5e,_0x15267f)=>_0x51ce5e||!_0x15267f),_0x11d77f['bind']('isActive')['to'](_0x49cacc),_0x11d77f['type']='comment';const _0xb8208=new T({'view':_0x11d77f,'target':_0x280d2b,'type':'comment','isVisible':!_0x2fa642['archivedAt']&&!!('function'==typeof _0x280d2b?_0x280d2b():_0x280d2b)});return _0x49cacc['on']('escape',()=>{_0xb8208['fire']('escape');}),this['_bindAnnotationToEditors'](_0x49cacc,_0xb8208),_0x19e333['add'](_0xb8208),_0xb8208;}['_bindAnnotationToEditors'](_0x5c4f18,_0x67191){this['listenTo'](_0x5c4f18,'editorReady',(_0x1421bc,_0xf5a1a4)=>{const _0x16c8b7=_0xf5a1a4['ui']['view']['body']['bodyCollectionContainer'];_0x67191['focusableElements']['add'](_0x16c8b7),this['context']instanceof _0x1f8384&&this['context']['ui']['focusTracker']['add'](_0x16c8b7);},{'priority':'highest'}),this['listenTo'](_0x5c4f18,'editorDestroyed',(_0x40229d,_0x6c60f)=>{const _0x2016f4=_0x6c60f['ui']['view']['body']['bodyCollectionContainer'];_0x67191['focusableElements']['has'](_0x2016f4)&&_0x67191['focusableElements']['remove'](_0x2016f4),this['context']instanceof _0x1f8384&&this['context']['ui']['focusTracker']['remove'](_0x2016f4);});}['_unbindEditors'](_0x455496){this['stopListening'](_0x455496,'editorReady'),this['stopListening'](_0x455496,'editorDestroyed');}['_createCommentThreadView'](_0x2d52df){const _0x5235b0=this['context']['plugins']['get'](it),{config:_0xc032d,locale:_0x4da7ed}=this['context'],_0x2361de=pt(_0xc032d['get']('locale'),_0x4da7ed);return new(0x0,(_0xc032d['get']('comments'))['CommentThreadView'])(_0x4da7ed,_0x2d52df,_0x5235b0['me'],{'editorConfig':{..._0xc032d['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0xc032d['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0xc032d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xc032d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xc032d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2361de,'CommentView':_0xc032d['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3ac328,channelId:_0x5a0482,resolvedAt:_0x2221eb,resolvedBy:_0x372a67,isFromAdapter:_0x20de7d}){if(!this['hasCommentThread'](_0x3ac328))throw new _0x266f92('commentsrepository-missing-comment-thread',null,{'threadId':_0x3ac328});const _0x30bf4a=this['getCommentThread'](_0x3ac328);if(_0x30bf4a['isResolved'])throw new _0x266f92('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3ac328});const _0x25e3f3=this['context']['plugins']['get'](it);if(_0x30bf4a['resolvedBy']=_0x25e3f3['getUser'](_0x372a67),_0x30bf4a['resolvedAt']=_0x2221eb,_0x20de7d||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x255913=this['context']['plugins']['get']('PendingActions'),_0x1410b1=_0x255913['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x5a0482,'threadId':_0x3ac328})['then'](({resolvedAt:_0x40b8a3,resolvedBy:_0x1e0d03})=>{_0x255913['remove'](_0x1410b1),_0x30bf4a['resolvedBy']['id']!==_0x1e0d03&&(_0x30bf4a['resolvedBy']=_0x25e3f3['getUser'](_0x1e0d03)),_0x30bf4a['resolvedAt']=_0x40b8a3;})['catch'](_0x2bebe0=>{throw console['error'](_0x2bebe0),new _0x266f92('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3c184e,channelId:_0x4c0a49,isFromAdapter:_0x15ef49}){if(!this['hasCommentThread'](_0x3c184e))throw new _0x266f92('commentsrepository-missing-comment-thread',null,{'threadId':_0x3c184e});const _0x5372d6=this['getCommentThread'](_0x3c184e);if(!_0x5372d6['isResolved'])throw new _0x266f92('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3c184e});if(_0x5372d6['resolvedBy']=null,_0x5372d6['resolvedAt']=null,_0x15ef49||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x46aa3d=this['context']['plugins']['get']('PendingActions'),_0x2834a3=_0x46aa3d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x4c0a49,'threadId':_0x3c184e})['then'](()=>_0x46aa3d['remove'](_0x2834a3))['catch'](_0x2c2360=>{throw console['error'](_0x2c2360),new _0x266f92('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5367bb,isFromAdapter:_0x1cd28a}){const _0x5b8ef7=this['getCommentThread'](_0x5367bb);if(!_0x5b8ef7)throw new _0x266f92('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5367bb),this['_threads']['delete'](_0x5367bb),!_0x5b8ef7['isSubmitted']||_0x1cd28a||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x457292=this['context']['plugins']['get']('PendingActions'),{channelId:_0x714ad6}=_0x5b8ef7,_0x54593a=_0x457292['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x714ad6,'threadId':_0x5367bb})['then'](()=>_0x457292['remove'](_0x54593a))['catch'](_0x2ef7b9=>{throw console['error'](_0x2ef7b9),new _0x266f92('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1f1b3f,unlinkedAt:_0x2849f6,context:_0x2cc1ec,attributes:_0x4ec564,isFromAdapter:_0x3671dd}){if('string'!=typeof _0x1f1b3f)throw new _0x266f92('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1f1b3f});if(!this['hasCommentThread'](_0x1f1b3f))throw new _0x266f92('commentsrepository-missing-comment-thread',null,{'threadId':_0x1f1b3f});const _0x55b32d=this['getCommentThread'](_0x1f1b3f);let _0x1a868c=!0x1;if(void 0x0!==_0x2cc1ec&&_0x55b32d['context']!==_0x2cc1ec&&(_0x55b32d['context']=_0x2cc1ec,_0x1a868c=!0x0),void 0x0!==_0x2849f6&&_0x55b32d['unlinkedAt']!==_0x2849f6&&(_0x55b32d['unlinkedAt']=_0x2849f6,_0x1a868c=!0x0),_0x4ec564&&!At(_0x4ec564,_0x55b32d['attributes'])&&(_0x55b32d['attributes']=_0x4ec564,_0x1a868c=!0x0),!_0x1a868c)return Promise['resolve']();if(!_0x55b32d['isSubmitted']||_0x3671dd||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x5df204=this['context']['plugins']['get']('PendingActions'),{channelId:_0xd37b37}=_0x55b32d,_0x125d45=_0x5df204['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0xd37b37,'threadId':_0x1f1b3f,'context':_0x2cc1ec,'unlinkedAt':_0x2849f6,'attributes':_0x4ec564})['then'](()=>_0x5df204['remove'](_0x125d45))['catch'](_0x5ba4df=>{throw console['error'](_0x5ba4df),new _0x266f92('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x45d827){const _0x328fda=this['context']['plugins']['get'](y),_0x28411e=this['getCommentThread'](_0x45d827);if(_0x28411e['_isAttached']=!0x1,this['_threadToController']['has'](_0x28411e)){const _0x4386d1=this['_threadToController']['get'](_0x28411e),_0x33bee4=_0x4386d1['view'],_0x4b2804=_0x328fda['getByInnerView'](_0x33bee4);this['_threadToController']['delete'](_0x28411e),this['_viewToController']['delete'](_0x33bee4),_0x4b2804&&_0x328fda['remove'](_0x4b2804),_0x4386d1['destroy'](),_0x33bee4['destroy']()['then'](()=>{this['_unbindEditors'](_0x33bee4);});}}['_updateActiveAnnotation']({threadId:_0x28ed8e,resolvedAt:_0x6bbe5e,unlinkedAt:_0x30f530}){const _0x44de3e=!!_0x6bbe5e,_0x6ef0a9=this['context']['plugins']['get'](y),_0x4d148a=this['getCommentThread'](_0x28ed8e);if(this['_threadToController']['has'](_0x4d148a)){const _0x2e3e08=this['_threadToController']['get'](_0x4d148a)['view'],_0x42f331=_0x6ef0a9['getByInnerView'](_0x2e3e08);_0x42f331&&(_0x44de3e&&_0x6ef0a9['_removeActiveAnnotation'](_0x42f331),_0x30f530?_0x42f331['isVisible']=!0x1:_0x42f331['refreshVisibility']());}}['_getExternalAuthor'](_0x536535){const _0x1ceabf=this['context']['plugins']['get'](it),_0x4c6005=It('external:'+_0x536535),_0x152f1d=_0x1ceabf['getUser'](_0x4c6005);return _0x152f1d||_0x1ceabf['addUser']({'id':_0x4c6005,'name':_0x536535});}['_createNewComment']({threadId:_0x3cba43,commentId:_0x1dbe6d=_0x4c5e37(),content:_0x5337af,authorId:_0x844a4f,createdAt:_0x410d07,attributes:_0x3594b7}){if('string'!=typeof _0x1dbe6d)throw new _0x266f92('commentsrepository-invalid-commentid');if('string'!=typeof _0x844a4f)throw new _0x266f92('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5337af||!_0x5337af['trim']())throw new _0x266f92('commentsrepository-invalid-comment-content');const _0x315394=this['context']['plugins']['get'](it)['getUser'](_0x844a4f);if(!_0x315394)throw new _0x266f92('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x844a4f});let _0x27aee9=null,_0x477470=_0x410d07;return _0x3594b7?.['@external']&&(_0x27aee9=this['_getExternalAuthor'](_0x3594b7['@external']['authorName']),_0x477470=new Date(_0x3594b7['@external']['createdAt'])),new wi(this,{'threadId':_0x3cba43,'id':_0x1dbe6d,'author':_0x27aee9||_0x315394,'creator':_0x315394,'content':_0x5337af,'createdAt':_0x410d07,'authoredAt':_0x477470,'attributes':_0x3594b7});}['_addComment'](_0x232ccf){let {threadId:_0x11131d,content:_0x11f64c,attributes:_0x22c7a1,isFromAdapter:_0xbcfbb4}=_0x232ccf;const _0x37166e=this['getCommentThread'](_0x232ccf['threadId']);if(!_0x37166e)throw new _0x266f92('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x5ea40c=this['_createNewComment'](_0x232ccf),{id:_0x179db0}=_0x5ea40c;if(_0x37166e['_add'](_0x5ea40c),_0xbcfbb4||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x37166e['isSubmitted'])return Promise['resolve']();const _0x931b1c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1cdc92}=_0x37166e,_0x671a2e=_0x931b1c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x22c7a1||(_0x22c7a1={}),this['adapter']['addComment']({'channelId':_0x1cdc92,'threadId':_0x11131d,'commentId':_0x179db0,'content':_0x11f64c,'attributes':_0x22c7a1})['then'](_0x570ddd=>{_0x931b1c['remove'](_0x671a2e),_0x570ddd&&this['_updateComment']({'channelId':_0x1cdc92,'threadId':_0x11131d,'commentId':_0x179db0,'createdAt':_0x570ddd['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x345e9a=>{throw console['error'](_0x345e9a),new _0x266f92('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0xd09fad,commentId:_0x5e7942,content:_0x3eb182,createdAt:_0x597b58,attributes:_0x309ba5,isFromAdapter:_0x910cc3}){if(void 0x0!==_0x3eb182&&('string'!=typeof _0x3eb182||!_0x3eb182['trim']()['length']))throw new _0x266f92('commentsrepository-update-comment-invalid-content');const _0x1f2197=this['getCommentThread'](_0xd09fad),_0x34afe5=_0x1f2197['getComment'](_0x5e7942);if(!_0x34afe5)throw new _0x266f92('commentsrepository-update-missing-comment',this);let _0x34468a=!0x1;if(_0x3eb182&&_0x3eb182!==_0x34afe5['content']&&(_0x34afe5['isEditable']||_0x910cc3)&&(_0x34afe5['content']=_0x3eb182,_0x34468a=!0x0),_0x597b58&&_0x597b58!==_0x34afe5['createdAt']&&(_0x34afe5['createdAt']=_0x597b58,_0x34afe5['attributes']&&_0x34afe5['attributes']['@external']||(_0x34afe5['authoredAt']=_0x597b58),_0x34468a=!0x0),_0x309ba5&&!At(_0x309ba5,_0x34afe5['attributes'])&&(_0x34afe5['attributes']=_0x309ba5,_0x34468a=!0x0),!_0x34468a)return Promise['resolve']();if(_0x1f2197['fire']('commentUpdated'),_0x910cc3||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x58e8f4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x532436}=this['getCommentThread'](_0x34afe5['threadId']),_0x2b6520=_0x58e8f4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x532436,'threadId':_0xd09fad,'commentId':_0x5e7942,'content':_0x3eb182,'attributes':_0x309ba5})['then'](()=>_0x58e8f4['remove'](_0x2b6520))['catch'](_0x214aa0=>{throw console['error'](_0x214aa0),new _0x266f92('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0xa5a5e3,commentId:_0x5c95e1,isFromAdapter:_0x4111ab}){const _0x4fa818=this['getCommentThread'](_0xa5a5e3),_0x598d3a=_0x4fa818['getComment'](_0x5c95e1);if(!_0x598d3a)throw new _0x266f92('commentsrepository-remove-missing-comment',this);if(_0x4fa818['_remove'](_0x598d3a),_0x4111ab||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4c1f50=this['context']['plugins']['get']('PendingActions'),{channelId:_0x325ee6}=_0x4fa818,_0x177e94=_0x4c1f50['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x325ee6,'threadId':_0xa5a5e3,'commentId':_0x5c95e1})['then'](()=>_0x4c1f50['remove'](_0x177e94))['catch'](_0x46f143=>{throw console['error'](_0x46f143),new _0x266f92('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x41c8cb(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x463732,_0x5b5307){super();const _0x4594c5=_0x5b5307['isResolvable'];this['channelId']=_0x5b5307['channelId'],this['id']=_0x5b5307['id'],this['comments']=new _0x139e96(),this['_repository']=_0x463732,this['_isAttached']=!0x1,this['_isSubmitted']=_0x5b5307['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x463732,'_permissions',_0x463732,'_readOnlyChannels',()=>_0x463732['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x463732,'_permissions',()=>_0x463732['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x463732,'_permissions',()=>{const _0x248742=_0x463732['getPermissions'](this['channelId']);return _0x248742['write']||_0x248742['admin'];}),this['bind']('isResolvable')['to'](_0x463732,'_permissions',()=>_0x4594c5&&_0x463732['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x5b5307['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x5e4f37,_0x2b6d30)=>_0x5e4f37?_0x2b6d30?_0x5e4f37<_0x2b6d30?_0x5e4f37:_0x2b6d30:_0x5e4f37:_0x2b6d30),this['set']('unlinkedAt',_0x5b5307['unlinkedAt']||null),this['set']('resolvedAt',_0x5b5307['resolvedAt']||null),this['set']('resolvedBy',_0x5b5307['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x362260=>!!_0x362260),this['set']('attributes',_0x5b5307['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x2d1fe2,_0x563613)=>_0x2d1fe2+_0x563613['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0xb0f67e,id:_0x4de3bf}=this;this['_repository']['fire'](Nt('submitCommentThread',_0xb0f67e),{'channelId':_0xb0f67e,'threadId':_0x4de3bf});}['setUnlinkedAt'](_0x1d5fc6){this['_update']({'unlinkedAt':_0x1d5fc6});}['resolve']({resolvedAt:_0x1f6396=new Date(),resolvedBy:_0xaf6cb3='',isFromAdapter:_0x18e17e=!0x1}={}){const _0x19ff08=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4877e3,id:_0x5759cf}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x4877e3),{'channelId':_0x4877e3,'threadId':_0x5759cf,'resolvedAt':_0x1f6396,'resolvedBy':_0xaf6cb3||_0x19ff08['id'],'isFromAdapter':_0x18e17e});}['reopen']({isFromAdapter:_0x2763de=!0x1}={}){const {channelId:_0x2eb75b,id:_0x475555}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x2eb75b),{'channelId':_0x2eb75b,'threadId':_0x475555,'isFromAdapter':_0x2763de});}['setContext'](_0x5c8797){this['context']||this['_update']({'context':_0x5c8797});}['setAttribute'](_0x149c92,_0x32e73f){const _0x1916fc=wt(this['attributes']);yt(_0x1916fc,_0x149c92,_0x32e73f),this['_update']({'attributes':_0x1916fc});}['removeAttribute'](_0x45747e){const _0xa63b45=wt(this['attributes']);Ct(_0xa63b45,_0x45747e),this['_update']({'attributes':_0xa63b45});}['remove']({isFromAdapter:_0x2e1543=!0x1}={}){const {channelId:_0x4cf2d1,id:_0xc1d9a0}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x4cf2d1),{'channelId':_0x4cf2d1,'threadId':_0xc1d9a0,'isFromAdapter':_0x2e1543});}['attachTo'](_0x249330){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x249330});}['addComment'](_0xc03726){const {channelId:_0xfb6475,id:_0x1573ef}=this;this['_repository']['fire'](Nt('addComment',_0xfb6475,_0x1573ef),Object['assign']({'channelId':_0xfb6475,'threadId':_0x1573ef},_0xc03726));}['getComment'](_0x181dae){if('string'!=typeof _0x181dae)throw new _0x266f92('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x181dae});return this['comments']['get'](_0x181dae);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x2f7d49=>_0x2f7d49['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5e7c20){return this['listenTo'](_0x5e7c20,'change:authoredAt',()=>{const _0x35c8ac=this['_findOptimalIndex'](_0x5e7c20),_0x22e75e=this['comments'];_0x35c8ac-0x1!=_0x22e75e['getIndex'](_0x5e7c20)&&_0x35c8ac+0x1!=_0x22e75e['getIndex'](_0x5e7c20)&&(this['_remove'](_0x5e7c20),this['_add'](_0x5e7c20));}),this['comments']['add'](_0x5e7c20,this['_findOptimalIndex'](_0x5e7c20));}['_update'](_0x93aa3){const {channelId:_0x21b026,id:_0x2058dd}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x21b026),{..._0x93aa3,'channelId':_0x21b026,'threadId':_0x2058dd});}['_remove'](_0x53df1a){return this['stopListening'](_0x53df1a),_0x53df1a['destroy'](),this['comments']['remove'](_0x53df1a);}['_findOptimalIndex'](_0x7034c1){const _0x32771c=this['comments']['find'](_0x4aeb3e=>new Date(_0x4aeb3e['authoredAt'])['getTime']()>new Date(_0x7034c1['authoredAt'])['getTime']());return _0x32771c?this['comments']['getIndex'](_0x32771c):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x41c8cb(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x165742,_0x343b2f){super();const _0x6f28a4=_0x165742['context']['plugins']['get'](it)['me'],_0x385da6=_0x165742['getCommentThread'](_0x343b2f['threadId']),_0x4b1fc9=0x0===_0x385da6['comments']['length'],_0x39aa94=_0x6f28a4===_0x343b2f['author'];this['id']=_0x343b2f['id'],this['threadId']=_0x343b2f['threadId'],this['author']=_0x343b2f['author'],this['creator']=_0x343b2f['creator'],this['isExternal']=Boolean(_0x343b2f['attributes']&&_0x343b2f['attributes']['@external']),this['set']('content',_0x343b2f['content']),this['createdAt']=_0x343b2f['createdAt']||new Date(),this['set']('authoredAt',_0x343b2f['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x385da6,'resolvedAt'),this['set']('attributes',_0x343b2f['attributes']||{}),this['bind']('isEditable')['to'](_0x165742,'_permissions',()=>{const _0x58d095=_0x165742['getPermissions'](_0x385da6['channelId'])['write'],_0xd0f70a=_0x165742['getPermissions'](_0x385da6['channelId'])['modifyAll'];return _0x39aa94&&_0x58d095||!_0x39aa94&&_0xd0f70a;}),this['bind']('isRemovable')['to'](_0x385da6,'isRemovable',_0x165742,'_permissions',_0x128571=>{const _0xd25c19=_0x165742['getPermissions'](_0x385da6['channelId'])['write'],_0x1c27d4=_0x165742['getPermissions'](_0x385da6['channelId'])['modifyAll'];return _0x39aa94&&_0xd25c19||_0x128571&&_0x4b1fc9||!_0x39aa94&&_0x1c27d4&&!_0x4b1fc9;}),this['bind']('isReadOnly')['to'](_0x385da6,'isReadOnly'),this['_repository']=_0x165742;}get['weight'](){return Math['max'](function(_0x21f458){const _0x5166fe=document['createElement']('div');return _0x5166fe['innerHTML']=_0x21f458,_0x5166fe['textContent']['length'];}(this['content']),0xc8);}['update'](_0x3023f1){const {threadId:_0x5e92ae,id:_0xebb2e1}=this;if(!this['_repository']['hasCommentThread'](_0x5e92ae))throw new _0x266f92('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4718bb}=this['_repository']['getCommentThread'](_0x5e92ae);this['_repository']['fire'](Nt('updateComment',_0x4718bb,_0x5e92ae),{'channelId':_0x4718bb,'threadId':_0x5e92ae,'commentId':_0xebb2e1,..._0x3023f1});}['setAttribute'](_0x490532,_0x486eb6){const _0x1054df=wt(this['attributes']);yt(_0x1054df,_0x490532,_0x486eb6),this['update']({'attributes':_0x1054df});}['removeAttribute'](_0x130208){const _0x236046=wt(this['attributes']);Ct(_0x236046,_0x130208),this['update']({'attributes':_0x236046});}['remove'](_0x5ba015={}){if(!_0x5ba015['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x4739e5,id:_0x58a187}=this;if(!this['_repository']['hasCommentThread'](_0x4739e5))throw new _0x266f92('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4b0a9c}=this['_repository']['getCommentThread'](_0x4739e5);this['_repository']['fire'](Nt('removeComment',_0x4b0a9c,_0x4739e5),{'channelId':_0x4b0a9c,'threadId':_0x4739e5,'commentId':_0x58a187,..._0x5ba015});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0xb0d342,..._0x1845dc){for(const _0x448dcd of _0x1845dc)void 0x0!==_0x448dcd&&(_0xb0d342+=':'+String(_0x448dcd));return _0xb0d342;}class ot extends _0x39b56b{constructor(_0x2e4d4b){super(_0x2e4d4b),this['set']('hasContent',!0x1);}['refresh'](){const _0x48325c=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5c89b8 of _0x48325c['getRanges']())if(this['_hasContent'](_0x5c89b8))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x47600e=_0x4c5e37(),ranges:_0x336abb,comment:_0x1e5ec8}={}){const _0x1ed3dc=this['editor']['model'],_0x24c7a7=_0x336abb??Array['from'](_0x1ed3dc['document']['selection']['getRanges']()),_0x3feadc=[];for(const _0x5d2ab5 of _0x24c7a7)this['_hasContent'](_0x5d2ab5)&&_0x3feadc['push'](this['_trimToContent'](_0x5d2ab5));if(!_0x3feadc['length'])throw new _0x266f92('addcommentthreadcommand-incorrect-ranges',null);_0x1e5ec8&&this['_createCommentThread'](_0x47600e,_0x1e5ec8),this['_createMarkersFromRanges'](_0x47600e,_0x3feadc,!!_0x1e5ec8);}['_createMarkersFromRanges'](_0xe3ed2e,_0x2f1153,_0x86b529){this['editor']['model']['change'](_0x43b635=>{for(const _0x178666 of _0x2f1153){const _0x2c4eb6=_0x4c5e37()['substr'](0x1,0x5),_0x1b37c6='comment:'+_0xe3ed2e+':'+_0x2c4eb6;_0x43b635['addMarker'](_0x1b37c6,{'range':_0x178666,'usingOperation':_0x86b529,'affectsData':_0x86b529});}});}['_createCommentThread'](_0x33e6dc,_0x19df70){const _0x1d266d=this['editor']['plugins']['get']('CommentsRepository'),_0x2f8b40=this['editor']['config']['get']('collaboration.channelId'),_0x569b0a=this['editor']['plugins']['get']('Users')['me'];if(!_0x569b0a)throw new _0x266f92('addcommentthreadcommand-user-not-found',null);_0x1d266d['addCommentThread']({'threadId':_0x33e6dc,'channelId':_0x2f8b40,'comments':[{'authorId':_0x569b0a['id'],'content':_0x19df70,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x51153b){for(const _0x4ab971 of _0x51153b['getItems']())if(this['_itemIsContent'](_0x4ab971))return!0x0;return!0x1;}['_itemIsContent'](_0xba4120){return _0xba4120['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xba4120)&&!_0xba4120['is']('element','tableCell');}['_trimToContent'](_0x5305fe){const _0x3a3d6b=_0x3e2c34=>!this['_itemIsContent'](_0x3e2c34['item']),_0x279cc3=_0x5305fe['start']['getLastMatchingPosition'](_0x3a3d6b),_0xd97db5=_0x5305fe['end']['getLastMatchingPosition'](_0x3a3d6b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x279cc3,_0xd97db5);}}class b extends _0x165a5f{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f6b2f){super(_0x4f6b2f),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x53a06e=this['editor'],_0x339cca=_0x53a06e['model']['document']['selection'],_0x361729=_0x3b904d(()=>this['refreshSelectedViews'](),0xa);_0x339cca['on']('change:range',(_0x3441c9,_0x32f185)=>{_0x32f185['directChange']&&(_0x361729['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x53a06e['editing']['view']['document'],'change:isFocused',(_0x67676b,_0x4068b1,_0x4d498e)=>{_0x4d498e&&_0x361729();}),this['listenTo'](_0x53a06e['ui']['focusTracker'],'change:isFocused',(_0x53cee6,_0x3334ce,_0x174eaa)=>{_0x174eaa||this['fire']('blur',{'isAnnotationTracked':_0x3ed08d=>this['_editorAnnotationsData']['has'](_0x3ed08d['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x455526){if(this['_editorAnnotations']['has'](_0x455526['view']))return;this['_editorAnnotations']['add'](_0x455526['view']),this['editor']['ui']['focusTracker']['add'](_0x455526['view']['element']);const _0x16d102=this['editor']['plugins']['get'](y);this['listenTo'](_0x16d102['collection'],'remove',(_0x1b5647,_0x212dd3)=>{this['editor']['ui']['focusTracker']['remove'](_0x212dd3['view']['element']),this['_editorAnnotations']['delete'](_0x212dd3['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x405134){if('function'!=typeof _0x405134)throw new _0x266f92('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x405134);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x54d19a,annotations:_0x282c3b}){const _0x28ffa6=[],_0xd15654=this['editor']['model']['document']['selection'],_0x3df471=Array['from'](_0xd15654['getRanges']());for(const [_0x47f9d1,_0x252682]of this['_editorAnnotationsData']){const _0xbb3600=_0x1c8d36(_0x252682),_0x323395=_0x282c3b['getByInnerView'](_0x47f9d1);_0xbb3600&&_0x323395&&_0x28ffa6['push']({'annotation':_0x323395,'range':_0xbb3600});}function _0x1c8d36(_0x5e5bb8){for(const _0x54e22f of _0x5e5bb8)for(const _0x19dfae of _0x3df471)if(_0x54e22f['containsRange'](_0x19dfae,!_0xd15654['isCollapsed']))return _0x54e22f;return null;}return _0x28ffa6['sort']((_0x5bc535,_0x3afb64)=>{const _0x404fbb=_0x5bc535['range'],_0xdf429b=_0x3afb64['range'];if(!_0x404fbb['isEqual'](_0xdf429b)){if(_0x404fbb['containsRange'](_0xdf429b,!0x0))return 0x1;if(_0xdf429b['containsRange'](_0x404fbb,!0x0))return-0x1;}return _0x5bc535['annotation']==_0x54d19a?-0x1:_0x3afb64['annotation']==_0x54d19a?0x1:0x0;})['map'](_0x5506b4=>_0x5506b4['annotation']);}get['_editorAnnotationsData'](){const _0x4f1852=new Map();for(const _0x43b99f of Array['from'](this['_dataCollectors']))for(const [_0x52c435,_0x7ae8a3]of _0x43b99f())_0x4f1852['set'](_0x52c435,_0x7ae8a3);return _0x4f1852;}}class st extends _0x165a5f{['afterInit'](){const _0x50e059=this['editor'];if(!_0x50e059['plugins']['has']('RestrictedEditingModeEditing'))return;_0x50e059['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x165a5f{constructor(_0x1fa356){super(_0x1fa356),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2b620a=this['editor'],_0x5f492d=_0x2b620a['commands']['get']('importWord'),_0x3e8a8c=_0x2b620a['plugins']['get'](it);_0x5f492d&&(_0x5f492d['on']('execute',(_0x1b9dbe,[,_0x360dab])=>{_0x360dab['collaboration_features']={'comments':!0x0,'user_id':_0x3e8a8c['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x5f492d,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x56c900,_0x4ef799){const {comment_threads:_0x1777f5}=_0x4ef799;_0x1777f5&&_0x1777f5['forEach'](({thread_id:_0x5e835c,comments:_0x5d1fca,is_resolved:_0x22b735})=>{const _0x41a999=new Date(),_0x373023=_0x5d1fca['map'](({author:_0x4b3fe7,content:_0x2f7944,created_at:_0x60dfe0})=>({'content':_0x2f7944,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x41a999,'attributes':{'@external':{'authorName':_0x4b3fe7,'createdAt':_0x60dfe0?new Date(_0x60dfe0):new Date(),'source':'importWord'}}})),_0x1bf232=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x1bf232,'threadId':_0x5e835c,'comments':_0x373023,'resolvedAt':_0x22b735?_0x41a999:null});});}}class at extends _0x165a5f{constructor(_0x25e460){super(_0x25e460),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2c6d34=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2c6d34,'contentInsertion',(_0x278834,_0x15d455)=>this['_removeMarkersWithoutThreads'](_0x15d455['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xc447d4){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xc447d4;const _0x46c128=this['editor']['plugins']['get']('CommentsRepository');for(const _0x415a44 of _0xc447d4['keys']()){const [_0x1338c3,_0x217f6c]=_0x415a44['split'](':');'comment'!=_0x1338c3||_0x46c128['hasCommentThread'](_0x217f6c)||_0xc447d4['delete'](_0x415a44);}return _0xc447d4;}['_registerMarkerInClipboardPipeline'](){const _0xda8b54=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2401c2=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2401c2&&_0xda8b54['_registerMarkerToCopy']('comment',_0x2401c2);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x322d5c){switch(_0x322d5c){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x4bf466){const _0x25a445=_0x4bf466['split'](':');return{'group':_0x25a445[0x0],'id':_0x25a445[0x1],'part':_0x25a445[0x2]};}class ut extends _0x165a5f{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x31ed13,_0x4cd0e6)=>{if(!_0x4cd0e6['options']['showCommentHighlights'])return null;if(_0x4cd0e6['options']['ignoreResolvedComments']){const {id:_0x41190b}=ft(_0x31ed13['markerName']),_0x14f620=this['editor']['plugins']['get'](o);if(_0x14f620['getCommentThread'](_0x41190b)?.['isResolved']&&_0x31ed13['item'])return _0x4cd0e6['consumable']['consume'](_0x31ed13['item'],'addMarker:'+_0x31ed13['markerName']),_0x4cd0e6['consumable']['consume'](_0x31ed13['item'],'removeMarker:'+_0x31ed13['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5fba0b=>{_0x5fba0b['on']('addMarker:comment',(_0x2078cf,_0x1fc61b,_0x249b1d)=>{if(!_0x249b1d['options']['showCommentHighlights'])return;const _0x49d80b=_0x1fc61b['item'];if(!_0x49d80b)return;const _0x1a89e5=_0x249b1d['mapper']['toViewElement'](_0x49d80b);this['editor']['model']['schema']['isObject'](_0x49d80b)&&_0x1a89e5&&!_0x1a89e5['getCustomProperty']('widget')&&_0x1a89e5['is']('containerElement')&&_0x4359cf(_0x1a89e5,_0x249b1d['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4b58a4,{writer:_0x1df54d,options:_0x527ed1})=>{if(!_0x527ed1['showCommentHighlights'])return null;const _0x3b8efd=_0x1df54d['createContainerElement']('div'),_0x505878=_0x1df54d['createEmptyElement']('hr');return _0x1df54d['addClass']('ck-horizontal-line',_0x3b8efd),_0x1df54d['insert'](_0x1df54d['createPositionAt'](_0x3b8efd,0x0),_0x505878),_0x3b8efd;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x4e3b99,{writer:_0x1855a0,options:_0x188bb4})=>{if(!_0x188bb4['showCommentHighlights'])return null;const _0x4188f6=_0x1855a0['createContainerElement']('span'),_0x17725c=_0x1855a0['createEmptyElement']('img');return _0x1855a0['addClass']('image-inline',_0x4188f6),_0x1855a0['insert'](_0x1855a0['createPositionAt'](_0x4188f6,0x0),_0x17725c),_0x4188f6;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x372951,{writer:_0x328fcb,options:_0x40f126})=>{if(_0x40f126['showCommentHighlights'])return _0x328fcb['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1a7d7b,_0x47c896,_0xe37a3b)=>{_0xe37a3b['options']['showCommentHighlights']&&_0x1a7d7b['stop']();},{'priority':'high'});}}class r extends _0x165a5f{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x474004){super(_0x474004),this['set']('isThreadsLoadingPaused',!0x0),_0x474004['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2df79b,_0x1e1f31,_0xded7c6,_0x39900d)=>{const _0x3107fd=_0x474004['plugins']['get'](o),_0x5b45c0=_0xded7c6?ft(_0xded7c6)['id']:null;_0x474004['model']['change'](()=>{if(_0x5b45c0){const _0x363dbe=this['getAllMarkersForId'](_0x5b45c0);for(const _0x5317d7 of _0x363dbe)_0x474004['editing']['reconvertMarker'](_0x5317d7);}if(_0x39900d){const {id:_0x1a6568}=ft(_0x39900d),_0x381465=_0x3107fd['getCommentThread'](_0x1a6568);if(_0x381465&&_0x381465['unlinkedAt'])return;if(_0x381465&&!_0x381465['isAttached'])return;const _0x1bba49=this['getAllMarkersForId'](_0x1a6568);for(const _0x238422 of _0x1bba49)_0x474004['editing']['reconvertMarker'](_0x238422);}}),_0x5b45c0&&this['scrollToThreadMarker'](_0x5b45c0);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b2e01=this['editor'],_0x2ba296=_0x1b2e01['plugins']['get'](o),_0x364bd2=_0x1b2e01['config']['get']('collaboration.channelId'),_0x345fa4=_0x2ba296['getCommentThreads']()['filter'](_0x9c5227=>_0x9c5227['channelId']!==_0x364bd2);_0x1b2e01['commands']['add']('addCommentThread',new ot(_0x1b2e01)),this['listenTo'](_0x1b2e01,'change:isReadOnly',(_0x1d863b,_0x2a6f01,_0x48e844)=>{_0x2ba296['switchReadOnly'](_0x48e844,_0x1b2e01['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x2ba296,dt('addCommentThread',_0x364bd2),(_0x43ec00,{threadId:_0xdd9a37})=>{const _0x163e11=this['editor']['plugins']['get'](o)['getCommentThread'](_0xdd9a37);_0x163e11?.['unlinkedAt']&&this['_attachArchivedThread'](_0xdd9a37);}),this['listenTo'](_0x2ba296,dt('removeCommentThread',_0x364bd2),(_0x2c7c29,{threadId:_0x190a69})=>{_0x1b2e01['model']['enqueueChange']({'isUndoable':!0x1},_0x22ded9=>{const _0x547053=this['getAllMarkersForId'](_0x190a69);for(const _0x4af547 of _0x547053)_0x22ded9['removeMarker'](_0x4af547);});}),this['listenTo'](_0x2ba296,dt('resolveCommentThread',_0x364bd2),(_0x45910b,{threadId:_0x1904a2})=>{(this['_reconvertMarkers'](_0x1904a2),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1904a2)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x2ba296,dt('reopenCommentThread',_0x364bd2),(_0x544e33,{threadId:_0x37503c})=>{this['_reconvertMarkers'](_0x37503c);},{'priority':'low'}),this['listenTo'](_0x2ba296,dt('addComment',_0x364bd2),(_0x4d4542,{threadId:_0x411107,isFromAdapter:_0x10355f})=>{const _0xa8e4da=this['getAllMarkersForId'](_0x411107);if(_0x10355f||0x0==_0xa8e4da['length']||!_0x2ba296['hasCommentThread'](_0x411107))return;0x1===_0x2ba296['getCommentThread'](_0x411107)['length']&&_0x1b2e01['model']['enqueueChange']({'isUndoable':!0x1},_0x13d392=>{for(const _0x339338 of _0xa8e4da)_0x13d392['updateMarker'](_0x339338,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x345fa4);}['afterInit'](){!async function(_0x260844){const _0x332e45=_0x309b49([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x1137e9=0x73460ab3,_0x279822=0x7341747b^_0x1137e9,_0x14ca18=window[_0x309b49([0x44,0x61,0x74,0x65])][_0x309b49([0x6e,0x6f,0x77])](),_0x560007=_0x260844[_0x309b49([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59b04d=new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d6385=>{_0x560007[_0x309b49([0x6f,0x6e,0x63,0x65])](_0x309b49([0x72,0x65,0x61,0x64,0x79]),_0x4d6385);}),_0x46117e={[_0x309b49([0x6b,0x74,0x79])]:_0x309b49([0x45,0x43]),[_0x309b49([0x75,0x73,0x65])]:_0x309b49([0x73,0x69,0x67]),[_0x309b49([0x63,0x72,0x76])]:_0x309b49([0x50,0x2d,0x32,0x35,0x36]),[_0x309b49([0x78])]:_0x309b49([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x309b49([0x79])]:_0x309b49([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x309b49([0x61,0x6c,0x67])]:_0x309b49([0x45,0x53,0x32,0x35,0x36])},_0x35345a=_0x560007[_0x309b49([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x309b49([0x67,0x65,0x74])](_0x309b49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23fd15(){let _0x2cf608,_0x145eca=null,_0xd59f10=null;try{if(_0x35345a==_0x309b49([0x47,0x50,0x4c]))return _0x309b49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2cf608=_0x26ed33(),!_0x2cf608)return _0x309b49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2cf608[_0x309b49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd59f10=_0x399ecc(_0x2cf608[_0x309b49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2cf608[_0x309b49([0x6a,0x74,0x69])])),await _0x4724f0()?_0x5b4b56()?_0x30b98b()?_0x309b49([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18031f()?(_0x2cf608[_0x309b49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x309b49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x145eca=_0x44a297(_0x309b49([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59543f()):_0x309b49([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x309b49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x309b49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x309b49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30b98b(){const _0x315608=[_0x309b49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x309b49([0x74,0x72,0x69,0x61,0x6c])][_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cf608[_0x309b49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14ca18/0x3e8:0xe10*_0x279822;return _0x2cf608[_0x309b49([0x65,0x78,0x70])]<_0x315608;}function _0x5b4b56(){const _0xc1c408=_0x2cf608[_0x309b49([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xc1c408)return!0x1;if(_0xc1c408[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309b49([0x2a])))return!0x0;if(_0xc1c408[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309b49([0x43,0x4d,0x54])))return!0x0;if(_0xc1c408[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309b49([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x4af233())return!0x0;if(_0xc1c408[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309b49([0x52,0x43,0x4d,0x54]))){if(_0x1ba01e())return!0x0;if(_0x277bd8()||_0x664143())return!0x0;}return!0x1;}function _0x18031f(){const _0x187d30=_0x2cf608[_0x309b49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x187d30||0x0==_0x187d30[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x77d41b}=new URL(window[_0x309b49([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x187d30[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77d41b))return!0x0;const _0x33fb68=_0x77d41b[_0x309b49([0x73,0x70,0x6c,0x69,0x74])](_0x309b49([0x2e]));return _0x187d30[_0x309b49([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x508cf8=>_0x508cf8[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309b49([0x2a])))[_0x309b49([0x6d,0x61,0x70])](_0x39448e=>_0x39448e[_0x309b49([0x73,0x70,0x6c,0x69,0x74])](_0x309b49([0x2e])))[_0x309b49([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a48af=>_0x5a48af[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33fb68[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x309b49([0x6d,0x61,0x70])](_0x28915d=>Array(_0x33fb68[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x28915d[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x309b49([0x66,0x69,0x6c,0x6c])](_0x28915d[0x0]===_0x309b49([0x2a])?_0x309b49([0x2a]):'')[_0x309b49([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x28915d))[_0x309b49([0x73,0x6f,0x6d,0x65])](_0x3c9767=>_0x33fb68[_0x309b49([0x65,0x76,0x65,0x72,0x79])]((_0x5aaf75,_0x131565)=>_0x3c9767[_0x131565]===_0x5aaf75||_0x3c9767[_0x131565]===_0x309b49([0x2a])));}function _0x59543f(){return _0x145eca&&_0xd59f10?new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x186a25,_0x1c151c)=>{_0x145eca[_0x309b49([0x74,0x68,0x65,0x6e])](_0x186a25,_0x1c151c),_0xd59f10[_0x309b49([0x74,0x68,0x65,0x6e])](_0x5f26f9=>{_0x5f26f9!=_0x309b49([0x56,0x61,0x6c,0x69,0x64])&&_0x186a25(_0x5f26f9);},_0x1c151c);}):_0x145eca||_0xd59f10||_0x309b49([0x56,0x61,0x6c,0x69,0x64]);}}function _0x399ecc(_0x6141a9,_0x25b768){return new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38721e=>{if(_0x418288())return _0x38721e(_0x309b49([0x56,0x61,0x6c,0x69,0x64]));_0x4545e2(),_0x560007[_0x309b49([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x309b49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c687b=!0x1;const _0x5e4263=_0x4c5e37();function _0x376c6b(_0xf46531){return!!_0xf46531&&(typeof _0xf46531===_0x309b49([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf46531===_0x309b49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf46531[_0x309b49([0x74,0x68,0x65,0x6e])]===_0x309b49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf46531[_0x309b49([0x63,0x61,0x74,0x63,0x68])]===_0x309b49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x162874(_0x3609ce){_0x1dc8f6(_0x3609ce)[_0x309b49([0x74,0x68,0x65,0x6e])](_0x305fa6=>{if(!_0x305fa6||_0x305fa6[_0x309b49([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x309b49([0x6f,0x6b]))return _0x309b49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1061f9(_0x589f8c(_0x5e4263+_0x25b768))!=_0x305fa6[_0x309b49([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x309b49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x309b49([0x56,0x61,0x6c,0x69,0x64]);})[_0x309b49([0x74,0x68,0x65,0x6e])](_0x3d0440=>(_0x40ad74(),_0x3d0440),()=>{const _0x3c12cd=_0x416add();return null==_0x3c12cd?(_0x40ad74(),_0x309b49([0x56,0x61,0x6c,0x69,0x64])):_0x309b49(_0x14ca18-_0x3c12cd>(0x574a8eb3^_0x1137e9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x309b49([0x74,0x68,0x65,0x6e])](_0x38721e)[_0x309b49([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38721e(_0x309b49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb05495=0x7370e433^_0x1137e9;function _0x40ad74(){const _0xebcc83=_0x309b49([0x6c,0x6c,0x63,0x74,0x2d])+_0x1061f9(_0x589f8c(_0x6141a9)),_0x3ec57a=_0xf8b9c7(_0x1061f9(window[_0x309b49([0x4d,0x61,0x74,0x68])][_0x309b49([0x63,0x65,0x69,0x6c])](_0x14ca18/_0xb05495)));window[_0x309b49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x309b49([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xebcc83,_0x3ec57a);}function _0x416add(){const _0xef83b7=_0x309b49([0x6c,0x6c,0x63,0x74,0x2d])+_0x1061f9(_0x589f8c(_0x6141a9)),_0xb1cea=window[_0x309b49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x309b49([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xef83b7);return _0xb1cea?window[_0x309b49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf8b9c7(_0xb1cea),0x10)*_0xb05495:null;}function _0x1dc8f6(_0x2378ce){return new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x577d7b,_0x4710cb)=>{_0x2378ce[_0x309b49([0x74,0x68,0x65,0x6e])](_0x577d7b,_0x4710cb),window[_0x309b49([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4710cb,0x7347de73^_0x1137e9);});}}_0x560007[_0x309b49([0x6f,0x6e])](_0x309b49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c3dfb,_0x44c7ff)=>{if(_0x44c7ff[0x0]!=_0x6141a9)return _0x38721e(_0x309b49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44c7ff[0x1]={..._0x44c7ff[0x1],[_0x309b49([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e4263};},{[_0x309b49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x309b49([0x68,0x69,0x67,0x68])}),_0x560007[_0x309b49([0x6f,0x6e])](_0x309b49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7909ba=>{_0x376c6b(_0x7909ba[_0x309b49([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c687b=!0x0,_0x162874(_0x7909ba[_0x309b49([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x309b49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x309b49([0x6c,0x6f,0x77])}),_0x59b04d[_0x309b49([0x74,0x68,0x65,0x6e])](()=>{_0x5c687b||_0x38721e(_0x309b49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x418288(){return _0x560007[_0x309b49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x309b49([0x76,0x69,0x65,0x77])][_0x309b49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x309b49([0x61,0x75,0x74,0x6f]);}function _0x4545e2(){_0x560007[_0x309b49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x309b49([0x76,0x69,0x65,0x77])][_0x309b49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x309b49([0x61,0x75,0x74,0x6f]);}}function _0x44a297(_0xef9a93){const _0x435d58=[new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107d4d=>setTimeout(_0x107d4d,0x734f347f^_0x1137e9)),_0x59b04d[_0x309b49([0x74,0x68,0x65,0x6e])](()=>new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd156=>{let _0x4f87fe=0x0;_0x560007[_0x309b49([0x6d,0x6f,0x64,0x65,0x6c])][_0x309b49([0x6f,0x6e])](_0x309b49([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d832d,_0x52d791)=>{_0x52d791[0x0][_0x309b49([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f87fe++,_0x4f87fe==(0x73460f5b^_0x1137e9)&&(_0x2dd156(),_0x2d832d[_0x309b49([0x6f,0x66,0x66])]());});}))];return window[_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x309b49([0x72,0x61,0x63,0x65])](_0x435d58)[_0x309b49([0x74,0x68,0x65,0x6e])](()=>_0xef9a93);}async function _0x5e525a(){await _0x59b04d,_0x560007[_0x309b49([0x6d,0x6f,0x64,0x65,0x6c])][_0x309b49([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23627a,_0x560007[_0x309b49([0x6d,0x6f,0x64,0x65,0x6c])][_0x309b49([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23627a,_0x560007[_0x309b49([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x309b49([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4af233(){return window[_0x309b49([0x67,0x6c,0x6f,0x62])]&&window[_0x309b49([0x67,0x6c,0x6f,0x62])][_0x309b49([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1ba01e(){return _0x153ae7(_0x309b49([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3d4f13(_0x309b49([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x309b49([0x73,0x74,0x61,0x74,0x65])]==_0x309b49([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x277bd8(){return _0x153ae7(_0x309b49([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x664143(){return _0x153ae7(_0x309b49([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4399f6(_0xe2ebac){const _0x5a7c02=_0x25ef81();_0x560007[_0x5a7c02]=_0x309b49([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe2ebac,_0xe2ebac!=_0x309b49([0x56,0x61,0x6c,0x69,0x64])&&_0x5e525a();}function _0x25ef81(){const _0x34d98e=window[_0x309b49([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x309b49([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x309b49([0x6e,0x6f,0x77])]())[_0x309b49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x309b49([0x2e]),'');let _0x230672=_0x309b49([0x4b]);for(let _0x5b6c82=0x0;_0x5b6c82<_0x34d98e[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b6c82+=0x2){let _0x284d5a=window[_0x309b49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34d98e[_0x309b49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b6c82,_0x5b6c82+0x2));_0x284d5a>=_0x332e45[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x284d5a-=_0x332e45[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x230672+=_0x332e45[_0x284d5a];}return _0x230672;}function _0x26ed33(){const _0x35c964=_0x35345a[_0x309b49([0x73,0x70,0x6c,0x69,0x74])](_0x309b49([0x2e]));if(0x3!=_0x35c964[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bbf91(_0x35c964[0x1]);function _0x2bbf91(_0x1dc22e){const _0xdcbbb2=_0x36a44e(_0x1dc22e);return _0xdcbbb2&&_0x45426d()?_0xdcbbb2:null;function _0x45426d(){const _0x4667ce=_0xdcbbb2[_0x309b49([0x6a,0x74,0x69])],_0x37f1be=window[_0x309b49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4667ce[_0x309b49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4667ce[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a378e={..._0xdcbbb2,[_0x309b49([0x6a,0x74,0x69])]:_0x4667ce[_0x309b49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4667ce[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a378e[_0x309b49([0x76,0x63])],_0x589f8c(_0x2a378e)==_0x37f1be;}}}async function _0x4724f0(){let _0x315989=!0x0;try{const _0x7d9e3=_0x35345a[_0x309b49([0x73,0x70,0x6c,0x69,0x74])](_0x309b49([0x2e])),[_0x1f1130,_0x5745e4,_0x530c72]=_0x7d9e3;return _0x81836a(_0x1f1130),await _0x560922(_0x1f1130,_0x5745e4,_0x530c72),_0x315989;}catch{return!0x1;}function _0x81836a(_0x15257d){const _0x832ece=_0x36a44e(_0x15257d);_0x832ece&&_0x832ece[_0x309b49([0x61,0x6c,0x67])]==_0x309b49([0x45,0x53,0x32,0x35,0x36])||(_0x315989=!0x1);}async function _0x560922(_0x39984d,_0x21b50a,_0x17048f){const _0xd9281b=window[_0x309b49([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x309b49([0x66,0x72,0x6f,0x6d])](_0x232309(_0x17048f),_0xee21bc=>_0xee21bc[_0x309b49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d436a=new window[(_0x309b49([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x309b49([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39984d+_0x309b49([0x2e])+_0x21b50a),_0x537e9a=window[_0x309b49([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x309b49([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x537e9a)return;const _0x1dbcb9=await _0x537e9a[_0x309b49([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x309b49([0x6a,0x77,0x6b]),_0x46117e,{[_0x309b49([0x6e,0x61,0x6d,0x65])]:_0x309b49([0x45,0x43,0x44,0x53,0x41]),[_0x309b49([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x309b49([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x309b49([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x537e9a[_0x309b49([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x309b49([0x6e,0x61,0x6d,0x65])]:_0x309b49([0x45,0x43,0x44,0x53,0x41]),[_0x309b49([0x68,0x61,0x73,0x68])]:{[_0x309b49([0x6e,0x61,0x6d,0x65])]:_0x309b49([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1dbcb9,_0xd9281b,_0x2d436a)||(_0x315989=!0x1);}}function _0x36a44e(_0xe5fe53){return _0xe5fe53[_0x309b49([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x309b49([0x65,0x79]))?JSON[_0x309b49([0x70,0x61,0x72,0x73,0x65])](_0x232309(_0xe5fe53)):null;}function _0x232309(_0x5de894){return window[_0x309b49([0x61,0x74,0x6f,0x62])](_0x5de894[_0x309b49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x309b49([0x2b]))[_0x309b49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x309b49([0x2f])));}function _0x589f8c(_0x136379){let _0x37b2d9=0x1505;function _0x227874(_0x19daa6){for(let _0x4b4e29=0x0;_0x4b4e29<_0x19daa6[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b4e29++){const _0x3b23a1=_0x19daa6[_0x309b49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b4e29);_0x37b2d9=(_0x37b2d9<<0x5)+_0x37b2d9+_0x3b23a1,_0x37b2d9&=_0x37b2d9;}}function _0x399a80(_0x382da1){Array[_0x309b49([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x382da1)?_0x382da1[_0x309b49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x399a80):_0x382da1&&typeof _0x382da1==_0x309b49([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x309b49([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x382da1)[_0x309b49([0x73,0x6f,0x72,0x74])]()[_0x309b49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x398112,_0x351cf1])=>{_0x227874(_0x398112),_0x399a80(_0x351cf1);}):_0x227874(window[_0x309b49([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x382da1));}return _0x399a80(_0x136379),_0x37b2d9>>>0x0;}function _0x1061f9(_0x17c1c6){return _0x17c1c6[_0x309b49([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x309b49([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x309b49([0x30]));}function _0xf8b9c7(_0x4d66f8){return _0x4d66f8[_0x309b49([0x73,0x70,0x6c,0x69,0x74])]('')[_0x309b49([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x309b49([0x6a,0x6f,0x69,0x6e])]('');}function _0x153ae7(_0x17eedc){return _0x560007[_0x309b49([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x309b49([0x68,0x61,0x73])](_0x17eedc);}function _0x3d4f13(_0x43d418){return _0x560007[_0x309b49([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x309b49([0x67,0x65,0x74])](_0x43d418);}function _0x23627a(){}function _0x309b49(_0x2b5dee){return _0x2b5dee['map'](_0x555e75=>String['fromCharCode'](_0x555e75))['join']('');}_0x4399f6(await _0x23fd15());}(this);}['destroy'](){const _0x8c0c64=this['editor']['plugins']['get'](o),_0x24c872=this['editor']['config']['get']('collaboration.channelId');for(const _0x5351a9 of _0x8c0c64['getCommentThreads']({'channelId':_0x24c872}))_0x8c0c64['_detachCommentThread'](_0x5351a9['id']),_0x8c0c64['_threads']['delete'](_0x5351a9['id']);super['destroy']();}['hasMarkerForId'](_0x59abe3){return this['getAllMarkersForId'](_0x59abe3)['length']>0x0;}['getAllMarkersForId'](_0x5f2fd3){const _0x17a2fb=[];for(const _0x1bcb7a of this['editor']['model']['markers'])_0x1bcb7a['name']['startsWith']('comment:'+_0x5f2fd3)&&_0x17a2fb['push'](_0x1bcb7a);return _0x17a2fb;}['scrollToThreadMarker'](_0x3c6d14){setTimeout(()=>{const _0x8288d0=this['_getTargetForId'](_0x3c6d14);if(!_0x8288d0)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x3c6d14&&nt({'target':_0x8288d0[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x20bf60){this['editor']['model']['change'](()=>{for(const _0x3d5c84 of this['getAllMarkersForId'](_0x20bf60))this['editor']['editing']['reconvertMarker'](_0x3d5c84);});}['_attachArchivedThread'](_0x2b0bef){const _0x4f98c0=this['editor']['plugins']['get'](o),_0x5d20a4=this['editor']['plugins']['get'](b),_0x1d3438=_0x4f98c0['getCommentThread'](_0x2b0bef);if(!_0x1d3438['isAttached']){const _0x11ff0f=_0x1d3438['attachTo'](()=>this['_getTargetForId'](_0x1d3438['id']));_0x5d20a4['registerAnnotation'](_0x11ff0f),_0x1d3438['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0xddded9=this['editor'],_0x516d79=_0xddded9['plugins']['get'](it);_0xddded9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1c25ee,_0x3bc33b)=>{const {id:_0x9219e9}=ft(_0x1c25ee['markerName']),_0x1687fe=_0xddded9['plugins']['get'](o)['getCommentThread'](_0x9219e9),_0x2f5873=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x9219e9;let _0x581ea0;if(_0x1687fe&&_0x1687fe['isResolved']&&!_0x2f5873&&_0x1c25ee['item'])return _0x3bc33b['consumable']['consume'](_0x1c25ee['item'],'addMarker:'+_0x1c25ee['markerName']),_0x3bc33b['consumable']['consume'](_0x1c25ee['item'],'removeMarker:'+_0x1c25ee['markerName']),null;const _0xc63909=['ck-comment-marker'];return _0x2f5873&&_0xc63909['push']('ck-comment-marker--active'),_0x581ea0=_0x1687fe?.['length']?_0x1687fe['comments']['first']['author']['id']:_0x516d79['me']['id'],{'classes':_0xc63909,'attributes':{'data-comment':_0x9219e9,'data-author-id':_0x581ea0}};}}),_0xddded9['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x2e7ff0,{options:_0x2581c2})=>{if(_0x2581c2['showCommentHighlights'])return null;const _0x51291f=_0xddded9['plugins']['get'](o),_0x238014=_0xddded9['model']['markers']['get'](_0x2e7ff0),{id:_0x112c35,part:_0x174905}=ft(_0x2e7ff0);return _0x238014&&!_0x238014['affectsData']||_0x2581c2['ignoreResolvedComments']&&_0x51291f['getCommentThread'](_0x112c35)?.['isResolved']?null:{'group':'comment','name':_0x174905?_0x112c35+':'+_0x174905:_0x112c35};}}),_0xddded9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5a654e,{writer:_0x49627b})=>_0x49627b['createElement']('$marker',{'data-name':'comment:'+_0x5a654e['getAttribute']('id')})}),_0xddded9['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x97d80a=this['editor'],_0x34a28a=_0x97d80a['plugins']['get'](o),_0x5c6374=new Set(),_0x5b46e5=new Set();_0x97d80a['model']['document']['registerPostFixer'](_0x41b94d=>{let _0x23a3e6=!0x1;for(const {name:_0x4b9efa,data:_0x2e47d4}of _0x97d80a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x107f48,id:_0x2f3923}=ft(_0x4b9efa);let _0x5cde94=_0x2e47d4['newRange'];if('comment'!==_0x107f48||!_0x5cde94)continue;const _0x116696='$graveyard'===_0x5cde94['root']['rootName'];_0x116696||(_0x5cde94=ht(_0x5cde94,_0x97d80a['model']),!_0x5cde94||_0x5cde94['isCollapsed']||!_0x2e47d4['newRange']||_0x5cde94['isEqual'](_0x2e47d4['newRange']))?_0x97d80a['model']['hasContent'](_0x5cde94)&&!_0x116696?this['isThreadsLoadingPaused']?_0x5c6374['add'](_0x4b9efa):this['_handleThreadMarker'](_0x4b9efa,_0x2f3923):(_0x5b46e5['add'](_0x4b9efa),_0x5c6374['delete'](_0x4b9efa),_0x41b94d['removeMarker'](_0x4b9efa),_0x23a3e6=!0x0):(_0x41b94d['updateMarker'](_0x4b9efa,{'range':_0x5cde94}),_0x23a3e6=!0x0);}return _0x23a3e6;}),this['on']('change:isThreadsLoadingPaused',(_0x4d9f2b,_0x15b6de,_0x5cfe6a)=>{if(!_0x5cfe6a&&_0x5c6374['size'])for(const _0x4727fc of _0x5c6374){const {id:_0x413cd1}=ft(_0x4727fc);_0x5c6374['delete'](_0x4727fc),_0x97d80a['model']['markers']['get'](_0x4727fc)&&this['_handleThreadMarker'](_0x4727fc,_0x413cd1);}}),this['listenTo'](_0x97d80a['model']['document'],'change',()=>{for(const {name:_0x462f43,data:{newRange:_0x422f62}}of _0x97d80a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4b0537,id:_0x5119ad}=ft(_0x462f43);if('comment'!==_0x4b0537)continue;const _0x278285=_0x34a28a['getCommentThread'](_0x5119ad),_0xa3aaf0=this['hasMarkerForId'](_0x5119ad);_0x278285&&(!_0x278285['_hasTargetInContent']&&_0x422f62&&_0x97d80a['editing']['view']['once']('render',()=>{const _0x264163=_0x97d80a['plugins']['get'](y),_0x2f84ad=_0x34a28a['_threadToController']['get'](_0x278285)['view'];_0x264163['getByInnerView'](_0x2f84ad)['refreshVisibility']();},{'priority':'low'}),_0x278285['_hasTargetInContent']=_0xa3aaf0||!!_0x422f62),_0x422f62||(_0x5b46e5['add'](_0x462f43),_0x5c6374['delete'](_0x462f43));}for(const _0x46bbd2 of _0x5b46e5){const {id:_0x11ef85}=ft(_0x46bbd2),_0x570459=_0x34a28a['getCommentThread'](_0x11ef85);if(_0x5c6374['delete'](_0x46bbd2),!_0x570459)continue;const _0x5e2c70=this['hasMarkerForId'](_0x11ef85);_0x5e2c70||_0x570459['isSubmitted']?_0x5e2c70||_0x570459['unlinkedAt']||_0x570459['setUnlinkedAt'](new Date()):_0x570459['remove']();}_0x5b46e5['clear']();});}['_handleInitialThreads'](_0x4b0290){_0x4b0290['forEach'](_0x4f89ce=>{_0x4f89ce['unlinkedAt']&&this['_attachArchivedThread'](_0x4f89ce['id']);});}['_getTargetForId'](_0x38f216){const _0xd3896=this['editor'],_0xad15db=this['getAllMarkersForId'](_0x38f216);return et(_0xd3896['editing'],_0xad15db);}['_getTextContext'](_0x41b7f0){const _0x4f8d8c=this['getAllMarkersForId'](_0x41b7f0);let _0x1b8985='',_0x2ea24b=!0x1;for(const _0x1051d4 of _0x4f8d8c){const _0x4e0e70=_0x1051d4['getRange']();for(const _0x4e5ca2 of Array['from'](_0x4e0e70['getItems']()))_0x4e5ca2['is']('$textProxy')?(_0x1b8985&&_0x2ea24b&&(_0x1b8985+='\x20',_0x2ea24b=!0x1),_0x1b8985+=_0x4e5ca2['data']):_0x2ea24b=!0x0;_0x2ea24b=!0x0;}return _0x1b8985['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x50f55e,_0x5ce882){const _0x4c4faa=this['editor'],_0x2bfa57=_0x4c4faa['plugins']['get'](o);let _0x2c3693=_0x2bfa57['getCommentThread'](_0x5ce882);const _0x5a0bd6=_0x4c4faa['config']['get']('collaboration.channelId'),_0x36a3e3=_0x4c4faa['plugins']['get'](b);if(_0x2c3693&&(_0x2c3693['unlinkedAt']&&_0x2c3693['setUnlinkedAt'](null),_0x2c3693['isAttached']))return _0x2c3693;return!this['getAllMarkersForId'](_0x5ce882)[0x0]['managedUsingOperations']?_0x4c4faa['editing']['view']['once']('render',()=>{if(_0x2bfa57['getCommentThread'](_0x5ce882))return;const _0x561bcc=_0x4c4faa['plugins']['get'](y);_0x2c3693=_0x2bfa57['openNewCommentThread']({'channelId':_0x5a0bd6,'threadId':_0x5ce882,'target':()=>this['_getTargetForId'](_0x5ce882),'context':{'type':'text','value':this['_getTextContext'](_0x5ce882)}});const _0x5f3cc8=_0x2bfa57['_threadToController']['get'](_0x2c3693)['view'],_0x4ea022=_0x561bcc['getByInnerView'](_0x5f3cc8);_0x4ea022&&_0x36a3e3['registerAnnotation'](_0x4ea022);},{'priority':'low'}):_0x2bfa57['fetchCommentThread']({'channelId':_0x5a0bd6,'threadId':_0x5ce882})['then'](_0x290d1a=>{if('destroyed'!==_0x4c4faa['state']){if(_0x2c3693=_0x290d1a,_0x2c3693&&!_0x2c3693['isAttached']){const _0x491bb7=_0x2c3693['attachTo'](()=>this['_getTargetForId'](_0x5ce882));_0x36a3e3['registerAnnotation'](_0x491bb7),_0x2c3693['isResolved']&&this['_reconvertMarkers'](_0x5ce882);}else{if(!_0x2c3693){const _0x500a15=this['getAllMarkersForId'](_0x5ce882);_0x4c4faa['model']['change'](_0xca3faf=>{for(const _0x39f045 of _0x500a15)_0xca3faf['removeMarker'](_0x39f045);});}}}}),_0x2c3693;}['_handleThreadMarker'](_0x18cd7c,_0x42276d){const _0x1bb942=this['_attachMarkerToThread'](_0x18cd7c,_0x42276d);_0x1bb942&&!_0x1bb942['context']&&_0x1bb942['setContext']({'type':'text','value':this['_getTextContext'](_0x42276d)});}['_initAriaMarkerChangeAnnouncements'](){const _0x11f521=this['editor'];rt(_0x11f521['model'],({left:_0x194cff,entered:_0x74afa1})=>{for(const _0x34eed1 of _0x194cff)if(mt(_0x34eed1)){_0x11f521['ui']['ariaLiveAnnouncer']['announce'](N(_0x11f521['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x28f9e9 of _0x74afa1)if(mt(_0x28f9e9)){_0x11f521['ui']['ariaLiveAnnouncer']['announce'](N(_0x11f521['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x355e93)));break;}});}}function dt(_0x1ed3d7,_0x41a147){return _0x41a147?_0x1ed3d7+':'+_0x41a147:_0x1ed3d7;}function ht(_0x1253ba,_0x543b67){const _0x449b59=_0x543b67['schema'],_0x4f1cad=_0x543b67['createRange'](_0x1253ba['start']);for(const _0x2dcde5 of _0x1253ba['getWalker']()){const {type:_0x51b491,item:_0x5c9182,nextPosition:_0x41f447}=_0x2dcde5;if('text'===_0x51b491||_0x449b59['isObject'](_0x5c9182)){const _0x4ea900=_0x543b67['createPositionBefore'](_0x5c9182);_0x4f1cad['isCollapsed']&&(_0x4f1cad['start']=_0x4ea900),_0x4f1cad['end']=_0x41f447;}}return _0x4f1cad;}function mt(_0x425fdc){return'comment'===ft(_0x425fdc['name'])['group'];}class s extends _0x165a5f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x43deca=this['editor'],_0x4178ba=_0x43deca['plugins']['get'](o),_0x26cc1a=_0x43deca['plugins']['get'](r),_0x501bc8=_0x43deca['plugins']['get'](y),_0x2cc0f3=_0x43deca['plugins']['get'](b);_0x43deca['ui']['componentFactory']['add']('comment',()=>{const _0x13722d=this['_createUIButton'](_0x47a354);return _0x13722d['tooltip']=!0x0,_0x13722d;}),_0x43deca['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x320df3)),_0x2cc0f3['addSourceCollector'](()=>{const _0x44d005=[];for(const [_0x48391e,_0x845901]of _0x4178ba['_threadToController']){const _0x554e19=_0x26cc1a['getAllMarkersForId'](_0x48391e['id']),_0x3a427c=_0x554e19['map'](_0xa4054d=>_0xa4054d['getRange']());_0x554e19['length']>0x0&&_0x44d005['push']([_0x845901['view'],_0x3a427c]);}return _0x44d005;}),this['listenTo'](_0x501bc8,'change:activeAnnotations',(_0x45c256,_0x1f0a98,_0x33db2b)=>{const _0x27803f=Array['from'](_0x33db2b)['map'](_0x7d3fcd=>_0x7d3fcd['innerView'])['find'](_0x17b742=>_0x4178ba['_viewToController']['has'](_0x17b742));if(!_0x27803f)return void(_0x26cc1a['activeMarker']=null);const _0x2af08b=_0x4178ba['_viewToController']['get'](_0x27803f)['model']['id'],_0x29433a='comment:'+_0x2af08b;_0x2af08b&&_0x26cc1a['hasMarkerForId'](_0x2af08b)?_0x26cc1a['activeMarker']=_0x29433a:_0x26cc1a['activeMarker']&&(_0x26cc1a['activeMarker']=null);}),this['listenTo'](_0x4178ba,'removeCommentThread',(_0x53f75f,{threadId:_0x3cc957,isFromAdapter:_0x4702f8})=>{!_0x4702f8&&_0x43deca['ui']['focusTracker']['isFocused']&&_0x26cc1a['hasMarkerForId'](_0x3cc957)&&_0x43deca['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x4178ba,'addComment',(_0x562542,{threadId:_0x166469,isFromAdapter:_0x45eb1a})=>{if(_0x45eb1a||!_0x26cc1a['hasMarkerForId'](_0x166469)||!_0x4178ba['hasCommentThread'](_0x166469))return;0x1===_0x4178ba['getCommentThread'](_0x166469)['length']&&(_0x43deca['editing']['view']['focus'](),_0x562542['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3f4589=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23e5f8;for(const _0x374aaa in _0x3f4589){const _0x80b60f=_0x374aaa,_0x1bbf79=_0x3f4589[_0x80b60f];if('commentsLicenseKeyValid'==_0x1bbf79||'commentsLicenseKeyInvalid'==_0x1bbf79||'commentsLicenseKeyExpired'==_0x1bbf79||'commentsLicenseKeyDomainLimit'==_0x1bbf79||'commentsLicenseKeyNotAllowed'==_0x1bbf79||'commentsLicenseKeyEvaluationLimit'==_0x1bbf79||'commentsLicenseKeyUsageLimit'==_0x1bbf79){delete _0x3f4589[_0x80b60f],_0x23e5f8=_0x1bbf79,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x23e5f8&&_0x3f4589['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x23e5f8&&_0x3f4589['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x23e5f8&&_0x3f4589['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x23e5f8&&_0x3f4589['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x23e5f8&&_0x3f4589['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x23e5f8&&_0x3f4589['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xae8be2){const _0x27dc66=this['editor'],_0x571250=new _0xae8be2(_0x27dc66['locale']),_0x4a598d=_0x27dc66['commands']['get']('addCommentThread');return _0x571250['set']({'label':N(_0x27dc66['locale'],'Comment'),'icon':_0x1b49ba}),_0x571250['bind']('isEnabled')['to'](_0x4a598d,'isEnabled',_0x4a598d,'hasContent',(_0x3406a6,_0x838ca8)=>_0x3406a6&&_0x838ca8),this['listenTo'](_0x571250,'execute',()=>{_0x4a598d['execute']();}),_0x571250;}}class i extends _0x165a5f{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2605f6){super(_0x2605f6),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x399dee,_0x53af3c,_0x1c675d)=>{_0x1c675d?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x29ee31,_0x51a944]of this['editor']['commands'])_0x51a944['affectsData']&&'addCommentThread'!==_0x29ee31&&_0x51a944['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x1bbb7b=this['editor']['editing']['view']['document'];this['listenTo'](_0x1bbb7b,'cut',_0x3fa220=>_0x3fa220['stop'](),{'priority':'highest'}),this['listenTo'](_0x1bbb7b,'clipboardInput',_0xef4259=>_0xef4259['stop'](),{'priority':'highest'}),this['listenTo'](_0x1bbb7b,'delete',_0x2111f3=>_0x2111f3['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x582215,_0x26b83a]of this['editor']['commands'])_0x26b83a['affectsData']&&'addCommentThread'!==_0x582215&&_0x26b83a['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x152fb7{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d4173){super(_0x3d4173),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4d41ab=this['context']['plugins']['get'](y);this['listenTo'](_0x4d41ab,'_activateAnnotation',(_0x5163bd,_0x118da0)=>{for(const _0x5a76f4 of this['activeUIs']){const _0x3a3ba2=this['_uis']['get'](_0x5a76f4);(0x0,this['uisData']['get'](_0x5a76f4)['filter'])(_0x118da0)&&_0x3a3ba2['setActiveAnnotation'](_0x118da0);}}),this['listenTo'](_0x4d41ab,'_deactivateAllAnnotations',()=>{for(const _0x3339cd of this['activeUIs']){this['_uis']['get'](_0x3339cd)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4d41ab['_visibleAnnotations'],'add',(_0x1a5e33,_0x3841ff)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3841ff);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x2c1259){return this['activeUIs']['has'](_0x2c1259);}['activate'](_0x4d208e,_0x2fa776=this['defaultFilter']){const _0x493b88=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x4d208e))throw new _0x266f92('annotationsuis-missing-ui',this,{'uiName':_0x4d208e});this['isActive'](_0x4d208e)&&this['deactivate'](_0x4d208e),this['activeUIs']['add'](_0x4d208e);const _0x5b978e=new S();v({'source':_0x493b88['_visibleAnnotations'],'target':_0x5b978e,'filter':_0x2fa776}),this['uisData']['set'](_0x4d208e,{'collection':_0x5b978e,'filter':_0x2fa776});const _0x5f2485=this['_uis']['get'](_0x4d208e);_0x5f2485['attach'](_0x5b978e),this['listenTo'](_0x5f2485,'change:activeAnnotation',(_0x5363fe,_0x3bbdcd,_0x2b5fe5,_0x364878)=>{_0x364878&&_0x493b88['_removeActiveAnnotation'](_0x364878),_0x2b5fe5&&_0x493b88['_addActiveAnnotation'](_0x2b5fe5);});}['deactivate'](_0x120ca2){if(this['activeUIs']['delete'](_0x120ca2),!this['_uis']['has'](_0x120ca2))throw new _0x266f92('annotationsuis-missing-ui',this,{'uiName':_0x120ca2});const _0x7e01d2=this['_uis']['get'](_0x120ca2);_0x7e01d2['detach'](),this['stopListening'](_0x7e01d2),this['uisData']['get'](_0x120ca2)['collection']['destroy'](),this['uisData']['delete'](_0x120ca2);}['switchTo'](_0x245650){if(!this['_uis']['has'](_0x245650))throw new _0x266f92('annotationsuis-missing-ui',this,{'uiName':_0x245650});const _0x2ebdd8=this['context']['plugins']['get'](y),_0x33d54f=Array['from'](_0x2ebdd8['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x245650);const _0x3242df=this['_uis']['get'](_0x245650);_0x3242df['setActiveAnnotation'](_0x33d54f),_0x3242df['_setSelectedAnnotations']&&_0x33d54f&&_0x3242df['_setSelectedAnnotations']([_0x33d54f]);}['deactivateAll'](){for(const _0x42136e of this['activeUIs'])this['deactivate'](_0x42136e);}['register'](_0x143161,_0x30944f){if(this['_uis']['has'](_0x143161))throw new _0x266f92('annotationsuis-register-already-registered');if('function'!=typeof _0x30944f['attach']||'function'!=typeof _0x30944f['detach']||'function'!=typeof _0x30944f['setActiveAnnotation'])throw new _0x266f92('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x143161,_0x30944f);}['refilterAnnotations'](){const _0x34125f=this['context']['plugins']['get'](y)['collection'],_0x15b6fc=new Map(),_0x4e33dc=Array['from'](this['activeUIs']);for(const _0x151fb4 of this['activeUIs']){const _0x13dbd4=this['uisData']['get'](_0x151fb4)['collection'];for(const _0xf67328 of _0x13dbd4)_0x15b6fc['set'](_0xf67328,_0x151fb4);}for(const _0x26bb57 of _0x34125f){const _0x8ed9d0=_0x15b6fc['get'](_0x26bb57);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x26bb57);const _0x45b312=_0x4e33dc['find'](_0x47317e=>this['uisData']['get'](_0x47317e)['filter'](_0x26bb57));_0x8ed9d0!==_0x45b312&&(_0x8ed9d0&&this['uisData']['get'](_0x8ed9d0)['collection']['remove'](_0x26bb57),_0x45b312&&this['uisData']['get'](_0x45b312)['collection']['add'](_0x26bb57));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x568dff){const _0x3ae80d=[];for(const _0xbaf593 of this['activeUIs']){(0x0,this['uisData']['get'](_0xbaf593)['filter'])(_0x568dff)&&_0x3ae80d['push'](_0xbaf593);}if(_0x3ae80d['length']>0x1)throw new _0x266f92('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3ae80d,'annotationType':_0x568dff['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x17a9e3){super(_0x17a9e3);const _0x4693ad=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x5f5319(),this['focusCycler']=new _0x140f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4693ad['to']('class')],'style':{'minHeight':_0x4693ad['to']('minHeight',_0x29c5e4=>'number'==typeof _0x29c5e4?_i(_0x29c5e4+0xa):null)},'dir':_0x17a9e3['uiLanguageDirection'],'role':'application','aria-label':N(_0x17a9e3,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x17a9e3,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x3a840f=>{this['_updateItemPositionInFocusables'](_0x3a840f['source']);}),this['list']['forEach'](_0x20b79c=>{this['focusTracker']['add'](_0x20b79c['element']),this['_updateItemPositionInFocusables'](_0x20b79c);}),this['list']['on']('change',(_0x512d56,_0x4a0d8c)=>{for(const _0x561889 of _0x4a0d8c['removed'])this['focusTracker']['remove'](_0x561889['element']),this['focusables']['remove'](_0x561889);for(const _0xded53c of _0x4a0d8c['added'])this['focusTracker']['add'](_0xded53c['element']),this['_updateItemPositionInFocusables'](_0xded53c);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3ad96a){const _0x2c3ef7=this['focusables']['getIndex'](_0x3ad96a);let _0x113903,_0x25af27;for(const _0x10c589 of this['focusables'])if(_0x3ad96a['top']<_0x10c589['top']){_0x113903=_0x10c589;break;}if(_0x25af27=_0x113903?this['focusables']['getIndex'](_0x113903):this['focusables']['length'],-0x1!==_0x2c3ef7){if(_0x2c3ef7===_0x25af27-0x1)return;this['focusables']['remove'](_0x3ad96a),_0x25af27=_0x113903?this['focusables']['getIndex'](_0x113903):this['focusables']['length'];}this['focusables']['add'](_0x3ad96a,_0x25af27);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x4ff66a){super(_0x4ff66a),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5d2e75,_0x175694)=>_0x5d2e75+_0x175694),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1c94bb=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1c94bb['to']('isAnimationDisabled',_0x53f06b=>_0x53f06b?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1c94bb['to']('top',_0x538c72=>Ot(_0x538c72))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x5c21da=this['element']['clientHeight'];_0x5c21da&&(this['height']=_0x5c21da);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x152fb7{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f9e48){super(_0x3f9e48),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x1f4e94=this['context']['config']['get']('sidebar.container');_0x1f4e94&&this['setContainer'](_0x1f4e94);}['setContainer'](_0x371bfe){if(!g(_0x371bfe))throw new _0x266f92('sidebar-setcontainer-invalid-element');this['container']=_0x371bfe;}['_attachToContainer']({viewClass:_0x2defaa='',spaceBetweenItems:_0x10b2c8=0x19}={}){if(!g(this['container']))throw new _0x266f92('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x2defaa,this['_spaceBetweenItems']=_0x10b2c8;}['rearrange']({removedAnnotation:_0x53e5f9,previousAnnotation:_0x3eb88e,nextAnnotation:_0x1fcb0e}){const _0x253955=this['getSidebarItemView'](_0x53e5f9);this['view']['list']['remove'](_0x253955),this['_destroySidebarItemView'](_0x53e5f9),_0x3eb88e&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3eb88e)),_0x1fcb0e&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1fcb0e)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3632b4,activatedAnnotation:_0x55bc34,disableAnimationOnActivatedAnnotation:_0x1fbb8a}){if(this['_activeAnnotation']=_0x55bc34,_0x3632b4){_0x3632b4['isActive']=!0x1;const _0x56c1ce=this['getSidebarItemView'](_0x3632b4);_0x56c1ce&&_0x1fbb8a&&(_0x56c1ce['isAnimationDisabled']=!0x1);}if(_0x55bc34){const _0xbcff16=this['getSidebarItemView'](_0x55bc34);_0xbcff16&&(_0x55bc34['isActive']=!0x0,_0x1fbb8a&&(_0xbcff16['isAnimationDisabled']=!0x0,_0xbcff16['top']+=0x1),this['_alignToTargetRect'](_0xbcff16));}}['_detachFromContainer'](_0x2eb341){if(this['view']['element']['remove'](),_0x2eb341){for(const _0x492411 of _0x2eb341)this['_destroySidebarItemView'](_0x492411);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x45d106,_0x11158d){_0x11158d||(_0x11158d=_0x45d106['view']);const _0x209e47=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x209e47,_0x45d106),this['_annotationToSidebarItemView']['set'](_0x45d106,_0x209e47),_0x209e47['content']['add'](_0x11158d),this['listenTo'](_0x45d106['view'],'change:targetRect',(_0x387bc5,_0x1af19f,_0x212d6e)=>{const _0x3845c0=this['_getTargetTop'](_0x45d106,_0x212d6e);_0x209e47['_targetTop']!=_0x3845c0&&(_0x209e47['_targetTop']=_0x3845c0,this['_setItemTop'](_0x209e47,_0x3845c0));}),this['listenTo'](_0x209e47,'change:top',()=>{this['_recalculate'](_0x209e47,'top');}),this['listenTo'](_0x209e47,'change:bottom',()=>{this['_recalculate'](_0x209e47,'bottom');}),this['_alignToTargetRect'](_0x209e47);const _0x43bda1=this['_getItemBefore'](_0x209e47);if(_0x43bda1)this['_alignAfterItem'](_0x43bda1,_0x209e47)||this['_alignToTargetRect'](_0x209e47);else this['_alignToTargetRect'](_0x209e47);return this['_updateLastItem'](),this['view']['list']['add'](_0x209e47),_0x209e47;}['_alignForTopChange'](_0x29a34b){if(!_0x29a34b['content']['length'])return;const _0x4bcfd9=this['_getItemBefore'](_0x29a34b);if(!_0x4bcfd9)return;const _0x475004=this['_sidebarItemViewToAnnotation']['get'](_0x4bcfd9),_0x51bd29=this['_activeAnnotation'];_0x51bd29&&_0x51bd29===_0x475004?this['_alignAfterItem'](_0x4bcfd9,_0x29a34b):this['_alignBeforeItem'](_0x29a34b,_0x4bcfd9);}['_alignForBottomChange'](_0x38eb5c){if(!_0x38eb5c['content']['length'])return;const _0x40018e=this['_getItemAfter'](_0x38eb5c);if(!_0x40018e)return;const _0x428ab3=this['_sidebarItemViewToAnnotation']['get'](_0x40018e),_0x1c2963=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x58d81f=this['_activeAnnotation'];_0x58d81f&&_0x58d81f===_0x428ab3&&_0x1c2963?(this['_alignBeforeItem'](_0x40018e,_0x38eb5c),this['_alignAfterItem'](_0x38eb5c,_0x40018e)):_0x58d81f&&_0x58d81f===_0x428ab3?this['_alignBeforeItem'](_0x40018e,_0x38eb5c):this['_alignAfterItem'](_0x38eb5c,_0x40018e);}['_recalculate'](_0x3a7f9f,_0x4a7728){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x3923a4,changedProp:_0x5b7c2e}of this['_recalculateBuffer'])'top'===_0x5b7c2e?this['_alignForTopChange'](_0x3923a4):this['_alignForBottomChange'](_0x3923a4);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x3a7f9f,'changedProp':_0x4a7728});}['getSidebarItemView'](_0x4ec154){return this['_annotationToSidebarItemView']['get'](_0x4ec154);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x41c80b){const _0x4ee44a=this['getSidebarItemView'](_0x41c80b);this['stopListening'](_0x4ee44a),this['stopListening'](_0x41c80b['view']),_0x4ee44a['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x41c80b),this['_sidebarItemViewToAnnotation']['delete'](_0x4ee44a);}['_createSidebarView'](){const _0x142143=new H(this['context']['locale']);return _0x142143['render'](),this['on']('change:_lastItem',(_0x343f17,_0x125429,_0x2ac625,_0x43e426)=>{_0x43e426&&_0x142143['unbind']('minHeight'),_0x2ac625?_0x142143['bind']('minHeight')['to'](_0x2ac625,'bottom'):_0x142143['minHeight']=null;}),_0x142143;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x477db4){const _0xd7c305=this['_sidebarItemViewToAnnotation']['get'](_0x477db4),_0x106364=_0xd7c305&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xd7c305)-0x1);return _0x106364&&this['getSidebarItemView'](_0x106364)||null;}['_getItemAfter'](_0x2072d2){const _0x2c8871=this['_sidebarItemViewToAnnotation']['get'](_0x2072d2),_0x221839=_0x2c8871&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2c8871)+0x1);return _0x221839&&this['getSidebarItemView'](_0x221839)||null;}['_alignBeforeItem'](_0x329c8c,_0x4b1d31){_0x329c8c['updateHeight']();const _0x40bed9=G(_0x4b1d31['bottom']+this['_spaceBetweenItems'],_0x329c8c['top']);return!!_0x40bed9&&(this['_setItemTop'](_0x4b1d31,_0x4b1d31['top']-_0x40bed9),!0x0);}['_alignAfterItem'](_0x73af74,_0x3cdae9){_0x73af74['updateHeight']();const _0xccff07=G(_0x73af74['bottom']+this['_spaceBetweenItems'],_0x3cdae9['top']);return!!_0xccff07&&(this['_setItemTop'](_0x3cdae9,_0x3cdae9['top']+_0xccff07,!0x1),!0x0);}['_alignToTargetRect'](_0x576a1b){const _0x48e529=this['_sidebarItemViewToAnnotation']['get'](_0x576a1b);if(!_0x48e529||!_0x48e529['target']||!_0x48e529['targetRect'])return;const _0x1183bb=this['_getTargetTop'](_0x48e529,_0x48e529['targetRect']);this['_setItemTop'](_0x576a1b,_0x1183bb);}['_getTargetTop'](_0x44a53d,_0x503c52){if(null===_0x503c52)return 0x0;if(_0x44a53d['target']instanceof _0x3f14b6)return _0x503c52['top'];{const _0x5633f4=new _0x3f14b6(this['view']['element'])['top'];return _0x503c52['top']-_0x5633f4;}}['_setItemTop'](_0x3416e1,_0x27a754,_0x2dfb0e=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x2dfb0e&&(_0x27a754=Math['max'](_0x27a754,this['_getMaxAvailableTop'](_0x3416e1))),_0x3416e1['top']=_0x27a754;}['_getMaxAvailableTop'](_0x30409a){let _0x17baa9=this['_getItemBefore'](_0x30409a),_0x37fdbd=0x0;for(;_0x17baa9;)_0x17baa9['updateHeight'](),_0x37fdbd+=this['_spaceBetweenItems']+_0x17baa9['height'],_0x17baa9=this['_getItemBefore'](_0x17baa9);return _0x37fdbd;}}function G(_0x27fb07,_0x1800ec){return Math['max'](_0x27fb07-_0x1800ec,0x0);}function g(_0x53c9ee){return null!==_0x53c9ee&&'object'==typeof _0x53c9ee&&0x1===_0x53c9ee['nodeType'];}class e extends _0x152fb7{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1708ed){super(_0x1708ed),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x139e96(),this['_refreshPositioningDebounced']=_0x3b904d(()=>{_0x1708ed['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x34e961=this['context']['plugins']['get'](j),_0x128866=this['context']['plugins']['get'](z);_0x34e961['register']('wideSidebar',this),_0x128866['container']&&_0x34e961['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x1f5a9e){if(_0x1f5a9e===this['activeAnnotation'])return;const _0xc97a08=this['context']['plugins']['get'](z);_0xc97a08['_activeAnnotation']=_0x1f5a9e;const _0xfc210d=this['activeAnnotation'];_0xc97a08['refresh']({'blurredAnnotation':_0xfc210d,'activatedAnnotation':_0x1f5a9e}),this['activeAnnotation']=_0x1f5a9e;}['attach'](_0x4d3532){this['annotations']=_0x4d3532;const _0x11ea36=this['context']['plugins']['get'](z);if(_0x11ea36['_annotations']=_0x4d3532,this['isAttached'])throw new _0x266f92('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x11ea36,'set:container',()=>{this['detach'](),this['listenTo'](_0x11ea36,'change:container',_0x34ec17=>{_0x34ec17['off'](),this['attach'](_0x4d3532);});}),_0x11ea36['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x21b425=_0x13cb16=>{_0x13cb16['updateTargetRect'](),_0x11ea36['addAnnotation'](_0x13cb16);};for(const _0x2ccd0a of _0x4d3532)_0x21b425(_0x2ccd0a);this['listenTo'](_0x4d3532,'add',(_0x1204c8,_0x480482)=>{_0x21b425(_0x480482);}),this['listenTo'](_0x4d3532,'remove',(_0x535e7f,_0x47a3b1,_0x45167e)=>{_0x11ea36['rearrange']({'removedAnnotation':_0x47a3b1,'previousAnnotation':_0x4d3532['get'](_0x45167e-0x1),'nextAnnotation':_0x4d3532['get'](_0x45167e+0x1)}),_0x47a3b1===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4d3532,'focus',(_0x277f3c,_0x3d4134)=>{this['setActiveAnnotation'](_0x3d4134);}),this['listenTo'](_0x4d3532,'blur',()=>{this['setActiveAnnotation'](null);});const _0x75d15c=this['context']instanceof _0x4eea4a?this['context']['editors']:new _0x139e96([this['context']]);for(const _0x3cfec4 of _0x75d15c)this['_integrateWithEditorAnnotations'](_0x3cfec4);this['listenTo'](_0x75d15c,'add',(_0x3fc75d,_0x4856b3)=>{this['listenTo'](_0x4856b3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4856b3);});}),this['listenTo'](_0x75d15c,'remove',(_0x483845,_0x4fa230)=>{_0x4fa230['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4fa230['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x266f92('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1094e1=this['context']['plugins']['get'](z);_0x1094e1['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1094e1),this['stopListening'](this['annotations']),this['context']instanceof _0x4eea4a&&this['stopListening'](this['context']['editors']);for(const _0x446de1 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x446de1);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1e6f6b){if(!_0x1e6f6b['plugins']['has']('EditorAnnotations'))return;const _0x2fdfae=_0x1e6f6b['plugins']['get']('EditorAnnotations'),_0x1e3388=()=>{const _0x4fab5c=_0x2fdfae['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4fab5c[0x0]||null);};this['listenTo'](_0x2fdfae,'refresh',_0x1e3388),this['listenTo'](_0x2fdfae,'blur',(_0x2f97f9,{isAnnotationTracked:_0x4a74b6})=>{this['activeAnnotation']&&_0x4a74b6(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2fdfae,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x49a168=>{_0x2fdfae['hasDomSelection']()&&(_0x1e3388(),_0x49a168['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2fdfae);}['_destroyEditorAnnotationsIntegration'](_0x5235c2){this['stopListening'](_0x5235c2),this['_editorAnnotations']['remove'](_0x5235c2);}}class C extends _0x47a354{['counterView'];constructor(_0xb8ace9){super(_0xb8ace9);const _0x4ded26=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x5cbfbc,_0xebab28)=>_0x5cbfbc?'...':_0xebab28['toString']()),this['set']('annotationType',''),this['icon']=_0x1b49ba,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4ded26['to']('annotationType',_0x91c3fc=>'ck-annotation-counter__badge--'+_0x91c3fc),_0x4ded26['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4ded26['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x152fb7{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x326f93){super(_0x326f93),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x2bb24d())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x139e96(),this['_refreshPositioningDebounced']=_0x3b904d(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x530e58(this['context']['locale']),this['balloonPanelView']=new _0x4534d9(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x43127f){this['annotations']=_0x43127f;const _0x34ae74=this['context']['plugins']['get'](z),_0x16b0fe=this['balloonPanelView'];if(_0x34ae74['_annotations']=_0x43127f,this['isAttached'])throw new _0x266f92('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x34ae74,'set:container',()=>{this['detach'](),this['listenTo'](_0x34ae74,'change:container',_0x5ed163=>{_0x5ed163['off'](),this['attach'](_0x43127f);});}),_0x34ae74['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2ba996=_0x5545cb=>{const _0x1b639d=new C(this['context']['locale']);_0x34ae74['addAnnotation'](_0x5545cb,_0x1b639d),this['_annotationToNarrowView']['set'](_0x5545cb,_0x1b639d),_0x1b639d['bind']('isDirty','annotationType','number')['to'](_0x5545cb['view'],'isDirty','type','length'),_0x1b639d['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x16b0fe['content']['first']!==_0x5545cb['view']?(this['_showBalloon'](_0x5545cb),_0x5545cb['view']['element']['focus'](),this['setActiveAnnotation'](_0x5545cb)):this['setActiveAnnotation'](null);});};for(const _0x49b229 of _0x43127f)_0x2ba996(_0x49b229);this['listenTo'](_0x43127f,'add',(_0x2269ee,_0x5c881b)=>{_0x2ba996(_0x5c881b);}),this['listenTo'](_0x43127f,'remove',(_0x2a9c6f,_0x1f1e1d,_0x40c2fe)=>{this['_annotationToNarrowView']['get'](_0x1f1e1d)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1f1e1d),_0x34ae74['rearrange']({'removedAnnotation':_0x1f1e1d,'previousAnnotation':_0x43127f['get'](_0x40c2fe-0x1),'nextAnnotation':_0x43127f['get'](_0x40c2fe+0x1)}),_0x1f1e1d===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x43127f,'focus',(_0x4f370f,_0x199380)=>{this['setActiveAnnotation'](_0x199380);}),this['listenTo'](_0x43127f,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xef12b6,_0x2990b1)=>{_0x2990b1['keyCode']===_0x63f92['esc']&&_0x16b0fe['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x16b0fe['content']['first']),this['_hideBalloon'](),_0x2990b1['stopPropagation'](),_0x2990b1['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3119fe,_0x1771bb)=>{const _0x2c89f3=_0x1771bb['target'];_0x16b0fe['isVisible']&&_0x16b0fe['element']['contains'](_0x2c89f3)||_0x34ae74['view']['element']['contains'](_0x2c89f3)||_0x3119fe['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x110c04=>_0x110c04['contains'](_0x2c89f3))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x15b295=this['context']instanceof _0x4eea4a?this['context']['editors']:new _0x139e96([this['context']]);for(const _0x50495d of _0x15b295)this['_integrateWithEditorAnnotations'](_0x50495d);this['listenTo'](_0x15b295,'add',(_0x2a978d,_0x29fb4f)=>{this['listenTo'](_0x29fb4f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x29fb4f);});}),this['listenTo'](_0x15b295,'remove',(_0x3dff87,_0x1881c2)=>{_0x1881c2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1881c2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2f4073){if(_0x2f4073===this['activeAnnotation'])return;const _0x568480=this['context']['plugins']['get'](z);if(_0x568480['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2f4073,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2f4073)_0x568480['getSidebarItemView'](_0x2f4073)?this['_showBalloon'](_0x2f4073):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2f4073;}['detach'](){if(!this['isAttached'])throw new _0x266f92('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x402249=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x4b30fd=>_0x4b30fd['destroy']()),this['_annotationToNarrowView']['clear'](),_0x402249['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4eea4a&&this['stopListening'](this['context']['editors']);for(const _0x35163b of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x35163b);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x3eecc3){if(!_0x3eecc3['plugins']['has']('EditorAnnotations'))return;const _0x2361d8=_0x3eecc3['plugins']['get']('EditorAnnotations'),_0x48f32e=this['context']['plugins']['get'](z),_0x19dd01=this['annotations'],_0x39daa8=this['balloonPanelView'],_0x3a8337=()=>{const _0x41cdf0=_0x2361d8['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x41cdf0),this['setActiveAnnotation'](_0x41cdf0[0x0]||null);};this['listenTo'](_0x2361d8,'refresh',_0x3a8337),this['listenTo'](_0x2361d8,'blur',(_0x13b557,{isAnnotationTracked:_0x56feb6})=>{this['activeAnnotation']&&_0x56feb6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2361d8,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x19dd01,'blur',_0x269a25=>{_0x2361d8['hasDomSelection']()&&_0x269a25['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x509542,_0xcf9a16)=>{const _0x8dd852=_0xcf9a16['target'];_0x39daa8['isVisible']&&_0x39daa8['element']['contains'](_0x8dd852)||_0x48f32e['view']['element']['contains'](_0x8dd852)||this['activeAnnotation']&&_0x2361d8['hasDomSelection']()&&(_0x3a8337(),_0x509542['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2361d8);}['_destroyEditorAnnotationsIntegration'](_0x384c9d){_0x384c9d&&(this['stopListening'](_0x384c9d),this['_editorAnnotations']['remove'](_0x384c9d));}['_setSelectedAnnotations'](_0x33d229){for(const _0x1210be of this['_selectedAnnotations'])_0x33d229['includes'](_0x1210be)||this['_manuallyClosedAnnotationViews']['delete'](_0x1210be['view']);this['_selectedAnnotations']=_0x33d229;}['_refreshPositioning'](){const _0x291afa=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x291afa['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x484575){if(this['_manuallyClosedAnnotationViews']['has'](_0x484575['view']))return;const _0x5c174=this['balloonPanelView']['content']['first'];_0x5c174!==_0x484575['view']?(_0x5c174&&this['_detachListeners'](_0x5c174),this['_attachListeners'](_0x484575['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x484575['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x397c90=this['balloonPanelView']['content']['first'],_0x1ed207=_0x397c90&&this['annotations']['getByView'](_0x397c90);if(!_0x1ed207||!this['_annotationToNarrowView']['has'](_0x1ed207))return;const _0x2acb29=this['_annotationToNarrowView']['get'](_0x1ed207)['element'],_0x5f34cd=(function(){const _0x259491=_0x4534d9['defaultPositions'];return[_0x259491['southArrowNorthEast'],_0x259491['northArrowSouthEast'],_0x259491['southArrowNorth'],_0x259491['northArrowSouth'],_0x259491['southArrowNorthWest'],_0x259491['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x2acb29,'positions':_0x5f34cd});}['_hideBalloon'](){const _0x3360eb=this['balloonPanelView'],_0x311070=_0x3360eb['content']['first'];_0x311070&&(this['_detachListeners'](_0x311070),_0x3360eb['unpin'](),_0x3360eb['content']['clear']());}['_attachListeners'](_0x30b2d5){this['listenTo'](_0x30b2d5,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x30b2d5,'Esc',(_0x1f92da,_0x4c50b8)=>{this['_manuallyClosedAnnotationViews']['add'](_0x30b2d5),this['_hideBalloon'](),_0x4c50b8();});}['_detachListeners'](_0x5d56ba){this['stopListening'](_0x5d56ba);}}class c extends _0x165a5f{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x15b3ff,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1585d9){super(_0x1585d9),_0x1585d9['editing']['view']['addObserver'](_0x1cac50),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1585d9['plugins']['get'](_0x15b3ff),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x5edefe=this['editor']['plugins']['get'](j);_0x5edefe['context']===this['editor']&&(_0x5edefe['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x400e15,_0x4aad76)=>{const _0xe88c78=this['_balloon'];if(this['isAttached']&&_0xe88c78['visibleView']){const _0x325791=this['annotations']['getByView'](_0xe88c78['visibleView']);_0x325791&&this['_closeAnnotation'](_0x325791),_0x4aad76();}}));}['afterInit'](){const _0x2d74c8=this['editor']['plugins']['get'](j);_0x2d74c8['context']===this['editor']&&(_0x2d74c8['hasActive']()||_0x2d74c8['switchTo']('inline'));}['setActiveAnnotation'](_0x38ba14){_0x38ba14!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x38ba14&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x38ba14)&&this['_addAnnotationToBalloon'](_0x38ba14,!0x0),_0x38ba14['isActive']=!0x0),_0x38ba14||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x38ba14);}['attach'](_0x2bc726){this['annotations']=_0x2bc726;const _0x40e6d5=this['editor']['plugins']['get'](j),_0x173247=this['_balloon'];if(this['isAttached'])throw new _0x266f92('inlineannotations-attach-already-attached',this);if(_0x40e6d5['context']!==this['editor'])throw new _0x266f92('inlineannotations-not-allowed-with-context',this);const _0x12891c=this['editor']['plugins']['get'](b);this['listenTo'](_0x12891c,'refresh',()=>{const _0x2bd135=_0x12891c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x1fe0ec,_0x315f82;!this['_forceRefresh']&&(_0x1fe0ec=_0x2bd135,_0x315f82=this['_selectedAnnotations'],_0x1fe0ec['length']===_0x315f82['length']&&_0x1fe0ec['every'](_0x41e78b=>_0x315f82['includes'](_0x41e78b)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2bd135),this['setActiveAnnotation'](_0x2bd135[0x0]||null));}),this['listenTo'](_0x12891c,'blur',(_0x1107d8,{isAnnotationTracked:_0x449984})=>{this['activeAnnotation']&&_0x449984(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x48c8a7,_0x511009,_0x23afe8)=>{_0x23afe8||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2bc726,'remove',(_0x3cd5b0,_0x11036d)=>{this['_removeAnnotationFromBalloon'](_0x11036d),_0x11036d===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x173247,'change:visibleView',(_0x3fbd28,_0x20e337,_0x45121e,_0x456854)=>{_0x456854&&this['stopListening'](_0x456854);const _0x1ec205=_0x2bc726['getByView'](_0x45121e);_0x45121e&&_0x1ec205&&(this['listenTo'](_0x45121e,'change:height',()=>{_0x173247['updatePosition']();}),this['listenTo'](_0x45121e,'Esc',()=>{this['_closeAnnotation'](_0x1ec205),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1ec205&&this['setActiveAnnotation'](_0x1ec205));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x173247['visibleView']&&(_0x2bc726['getByView'](_0x173247['visibleView'])&&_0x173247['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x266f92('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xd5d70e of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xd5d70e);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x5afc71){for(const _0x45196e of this['_selectedAnnotations'])_0x5afc71['includes'](_0x45196e)||this['_manuallyClosed']['delete'](_0x45196e);for(const _0x59501d of this['annotations'])_0x5afc71['includes'](_0x59501d)||this['_removeAnnotationFromBalloon'](_0x59501d);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x322323 of _0x5afc71)this['_addAnnotationToBalloon'](_0x322323);}this['_selectedAnnotations']=_0x5afc71;}['_addAnnotationToBalloon'](_0x26c70f,_0x54c86d=!0x1){this['_manuallyClosed']['has'](_0x26c70f)||(this['_addedAnnotations']['has'](_0x26c70f)||this['_balloon']['hasView'](_0x26c70f['view'])||(this['_addedAnnotations']['add'](_0x26c70f),this['_balloon']['add']({'stackId':_0x26c70f['view']['id'],'view':_0x26c70f['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x26c70f)}})),_0x54c86d&&this['_balloon']['showStack'](_0x26c70f['view']['id']));}['_getBalloonTargetForAnnotation'](_0xa1de){const _0x350c4f=_0xa1de['target'],_0x286144=this['editor']['editing']['view'],_0x438078=_0x286144['document']['selection']['getFirstRange'](),_0x3d8a2d=_0x286144['domConverter']['viewRangeToDom'](_0x438078);if(_0x3d8a2d['collapse'](!0x0),_0x350c4f){if(_0x350c4f instanceof _0x3f14b6)return _0x350c4f;let _0x482857=[];for(const _0x1ef7b5 of _0x350c4f)_0x482857['push'](...F(_0x1ef7b5['getClientRects']()));_0x482857=function(_0x1b5b81){const _0x1dd50e=[];let _0x42633d=_0x1b5b81[0x0];for(let _0x3023af=0x1;_0x3023af<_0x1b5b81['length'];_0x3023af++)P(_0x42633d,_0x1b5b81[_0x3023af])?_0x42633d['width']+=_0x1b5b81[_0x3023af]['width']:(_0x1dd50e['push'](_0x42633d),_0x42633d=_0x1b5b81[_0x3023af]);return _0x1dd50e['push'](_0x42633d),_0x1dd50e;}(_0x482857);const _0x5cb912=_0x3d8a2d['getBoundingClientRect']();return _0x482857['find'](_0x48dcc3=>_0x48dcc3['top']<=_0x5cb912['top']&&_0x48dcc3['bottom']>=_0x5cb912['bottom']&&_0x48dcc3['left']<=_0x5cb912['left']&&_0x48dcc3['right']>=_0x5cb912['right'])||_0x482857[0x0];}return _0xa1de['targetRect']||_0x3d8a2d;}['_removeAnnotationFromBalloon'](_0x229d38){this['_addedAnnotations']['has'](_0x229d38)&&this['_balloon']['hasView'](_0x229d38['view'])&&(this['_addedAnnotations']['delete'](_0x229d38),this['_balloon']['remove'](_0x229d38['view']));}['_closeAnnotation'](_0x1958bf){this['_manuallyClosed']['add'](_0x1958bf),this['_removeAnnotationFromBalloon'](_0x1958bf);}}function F(_0x55472e){return Array['from'](_0x55472e)['map'](DOMRect['fromRect']);}function P(_0x2d7a5d,_0x1df71c){return _0x2d7a5d['top']===_0x1df71c['top']&&_0x2d7a5d['bottom']===_0x1df71c['bottom']&&_0x2d7a5d['right']===_0x1df71c['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x18a561,_0x52c6db){super(_0x18a561),this['set']('isEmpty',!_0x52c6db['length']),this['focusTracker']=new _0x5f5319(),this['_annotationViews']=_0x52c6db,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x140f1f({'focusables':_0x52c6db,'focusTracker':this['focusTracker']}),this['listenTo'](_0x52c6db,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x52c6db,'remove',(_0x1e9a5e,_0x454156)=>{_0x454156['isActive']&&this['focus'](),_0x52c6db['length']||(this['isEmpty']=!0x0);});const _0x310a6c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x18a561,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x52c6db},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x310a6c['if']('isEmpty','ck-hidden',_0x48152c=>!_0x48152c)]},'children':[{'text':N(_0x18a561,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x4801c4 of this['_annotationViews'])this['focusTracker']['add'](_0x4801c4['element']);this['_annotationViews']['on']('change',(_0x173443,{added:_0x5a5d1a,removed:_0x3e5a28})=>{for(const _0x502019 of _0x5a5d1a)this['focusTracker']['add'](_0x502019['element']);for(const _0xa52059 of _0x3e5a28)this['focusTracker']['remove'](_0xa52059['element']);});}}class p extends _0x152fb7{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x282968){super(_0x282968),this['archivedThreads']=new _0x139e96();}['init'](){const _0x734b8e=this['context'],_0xefeb7d=_0x734b8e['plugins']['get'](o),_0x2c0f75=_0x734b8e['plugins']['get'](y);this['listenTo'](_0xefeb7d,'addCommentThread',(_0x3c4991,{threadId:_0x6c3112})=>{const _0x264975=_0xefeb7d['getCommentThread'](_0x6c3112);_0x264975['archivedAt']&&this['archivedThreads']['add'](_0x264975,this['_calculatePosition'](_0x264975['archivedAt'])),this['listenTo'](_0x264975,'change:archivedAt',(_0x2523e1,_0x418d48,_0x278cdb)=>{_0x278cdb?this['archivedThreads']['has'](_0x264975)||this['archivedThreads']['add'](_0x264975,this['_calculatePosition'](_0x264975['archivedAt'])):this['archivedThreads']['has'](_0x264975)&&this['archivedThreads']['remove'](_0x264975);});}),this['listenTo'](_0xefeb7d,'removeCommentThread',(_0x52fc35,{threadId:_0xc17bad})=>{const _0x48f85b=_0xefeb7d['getCommentThread'](_0xc17bad);this['stopListening'](_0x48f85b),this['archivedThreads']['has'](_0x48f85b)&&this['archivedThreads']['remove'](_0x48f85b);},{'priority':'highest'}),this['listenTo'](_0x2c0f75['collection'],'focus',(_0xdb94d6,_0x2db1d5)=>{_0x2db1d5['isVisible']||(_0x2db1d5['isActive']=!0x0,_0x2c0f75['activate'](_0x2db1d5));});}['_calculatePosition'](_0x449ebc){const _0x2ed4ba=[...this['archivedThreads']]['findIndex'](_0x321d17=>_0x321d17['archivedAt']<_0x449ebc);return _0x2ed4ba>-0x1?_0x2ed4ba:this['archivedThreads']['length'];}}class a extends _0x165a5f{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x20864c];}constructor(_0x119b35){super(_0x119b35),this['annotationViews']=new _0x577399(),this['_pendingThreads']=[];}['init'](){const _0xa30389=this['editor'],_0x1746e4=this['_hideDialogOnAnnotationEscape']['bind'](this);_0xa30389['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x47a354,!0x0)),_0xa30389['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x34100c=this['_createCommentsArchiveButton'](_0x320df3);return _0x34100c['set']({'role':'menuitemcheckbox'}),_0x34100c;});const _0x38bab9=_0xa30389['plugins']['get'](p),_0x16c1cb=_0xa30389['plugins']['get']('Annotations'),_0xc0c8a3=_0xa30389['plugins']['get']('CommentsRepository');_0x38bab9['archivedThreads']['forEach'](_0x81437a=>{this['_handleNewThread'](_0x81437a);}),this['listenTo'](_0x38bab9['archivedThreads'],'add',(_0x331d43,_0x5db006)=>{this['_handleNewThread'](_0x5db006);}),this['listenTo'](_0x16c1cb['collection'],'add',(_0x23c7f0,_0x3a96cc)=>{const _0xc9d807=this['_pendingThreads']['find'](_0x1b4c9d=>{const _0x1ff848=_0xc0c8a3['_threadToController']['get'](_0x1b4c9d);return _0x1ff848&&_0x3a96cc['innerView']===_0x1ff848['view'];});if(_0xc9d807){const _0x324808=this['_calculatePosition'](_0xc9d807['archivedAt']);this['_addAnnotationToArchive'](_0x3a96cc,_0x324808),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xc9d807),0x1);}}),this['listenTo'](_0x38bab9['archivedThreads'],'remove',(_0x35c7f9,_0x4486ec)=>{const _0x3af432=_0xa30389['config']['get']('collaboration.channelId');if(!_0x3af432||_0x4486ec['channelId']===_0x3af432){if(this['_pendingThreads']['includes'](_0x4486ec))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x4486ec),0x1);else{const _0x22b33b=_0xc0c8a3['_threadToController']['get'](_0x4486ec),_0x6862cb=_0x16c1cb['getByInnerView'](_0x22b33b['view']);this['annotationViews']['remove'](_0x6862cb['view']),this['stopListening'](_0x6862cb),this['stopListening'](_0x6862cb['focusableElements']);}}}),this['listenTo'](_0x16c1cb['collection'],'add',(_0x3e21d5,_0x303c63)=>{this['listenTo'](_0x303c63,'escape',_0x1746e4);}),this['listenTo'](_0x16c1cb['collection'],'remove',(_0x2b86f0,_0x16097b)=>{this['stopListening'](_0x16097b,'escape',_0x1746e4);});}['_addAnnotationToArchive'](_0x49392e,_0x57946a){this['listenTo'](_0x49392e,'set:isVisible',_0x571a07=>{_0x571a07['return']=!0x1,_0x571a07['stop']();}),this['annotationViews']['add'](_0x49392e['view'],_0x57946a);}['_handleNewThread'](_0x369f7a){const _0x387417=this['editor']['plugins']['get']('CommentsRepository'),_0x357724=this['editor']['plugins']['get']('Annotations'),_0x5465be=this['editor']['config']['get']('collaboration.channelId');if(!_0x5465be||_0x369f7a['channelId']===_0x5465be){const _0x4cc054=_0x387417['_threadToController']['get'](_0x369f7a);if(!_0x4cc054)return void this['_pendingThreads']['push'](_0x369f7a);const _0x4b2bf5=this['_calculatePosition'](_0x369f7a['archivedAt']),_0x10abc=_0x357724['getByInnerView'](_0x4cc054['view']);_0x10abc['isVisible']&&_0x357724['_visibleAnnotations']['remove'](_0x10abc),this['_addAnnotationToArchive'](_0x10abc,_0x4b2bf5);}}['_calculatePosition'](_0x168796){const _0xcbf0bf=this['editor']['config']['get']('collaboration.channelId'),_0x132722=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x26e0e2=>_0x26e0e2['channelId']===_0xcbf0bf)['findIndex'](_0x5beb65=>_0x5beb65['archivedAt']<_0x168796);return _0x132722<0x0||_0x132722>this['annotationViews']['length']?this['annotationViews']['length']:_0x132722-0x1;}['_toggleDialog'](){const _0x551687=this['editor'],_0x250c2b=_0x551687['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x551687['locale'],this['annotationViews'])),'commentsArchive'===_0x250c2b['id']?_0x250c2b['hide']():_0x250c2b['show']({'id':'commentsArchive','title':N(_0x551687['locale'],'COMMENTS_ARCHIVE'),'icon':_0x54b5f6,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x22636['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x2355d6,_0x23b4a8=!0x1){const _0x3a0df2=this['editor']['locale'],_0x568991=this['editor']['plugins']['get']('Dialog'),_0x3080e4=new _0x2355d6(_0x3a0df2);return _0x3080e4['bind']('isEnabled')['to'](this,'isEnabled'),_0x3080e4['bind']('isOn')['to'](_0x568991,'id',_0x8b4472=>'commentsArchive'===_0x8b4472),_0x3080e4['set']({'label':N(_0x3a0df2,'COMMENTS_ARCHIVE'),'icon':_0x54b5f6,'isToggleable':!0x0}),_0x23b4a8&&(_0x3080e4['tooltip']=!0x0),this['listenTo'](_0x3080e4,'execute',()=>this['_toggleDialog']()),_0x3080e4;}['_hideDialogOnAnnotationEscape']=_0x480dbb=>{const _0x55d7a5=_0x480dbb['source'];if(!this['annotationViews']['has'](_0x55d7a5['view']))return;const _0x2ed053=this['editor']['plugins']['get']('Dialog');_0x2ed053['isOpen']&&'commentsArchive'===_0x2ed053['id']&&(_0x2ed053['hide'](),_0x480dbb['stop']());};}class gi extends _0x165a5f{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
23
+ import{Editor as _0x3e0c24,ContextPlugin as _0x347f40,PendingActions as lt,Command as _0x55948d,Plugin as _0xe6feac,Context as _0x4197fa}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x5ba153,uid as _0x3fb4be,KeystrokeHandler as jt,FocusTracker as _0x4eac6f,diff as _0x299d2f,Collection as _0x8deec,Rect as _0x3d83d0,CKEditorError as _0x3ac78d,first as _0x49a72a,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x13a4e0,keyCodes as _0x1981c3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5bbade,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x4122e4,trimHtml as ts,LateFocusDropdownButtonView as _0x5f3e0c,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x5ac6b8}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x3e5bb0}from'es-toolkit/compat';import{IconUndo as _0x4671cb,IconCheck as _0x1be6f0,IconPencil as _0x1e8d76,IconRemoveComment as _0xd74d31,IconThreeVerticalDots as _0x946489,IconAddComment as _0xf2b95b,IconCommentsArchive as _0x1111ed}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x15fa0a,ButtonView as _0x46ed49,ViewCollection as _0x2ed64b,createDropdown as _0x2f750e,ListView as _0x33f593,focusChildOnDropdownOpen as _0x481452,ListItemView as _0x370f63,MenuBarMenuListItemButtonView as _0x1c7cbf,BodyCollection as _0x56aab2,BalloonPanelView as _0x542148,ContextualBalloon as _0x404a8a,Dialog as _0x441bd3,DialogViewPosition as _0x449379}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x11751a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x577e12}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x2e4bc2}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x5ba153(){['model'];['view'];constructor(_0x22ee2a,_0x52697b){super(),this['model']=_0x22ee2a,this['model']['_isAttached']=!0x0,this['view']=_0x52697b,this['listenTo'](_0x52697b,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x52697b,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x52697b,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x52697b,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x52697b,'addComment',(_0x4c2a68,_0x1e58ee)=>this['addComment'](_0x1e58ee)),this['listenTo'](_0x52697b,'updateComment',(_0x5683a2,_0x2d5f0c,_0x4b3882)=>this['updateComment'](_0x2d5f0c,_0x4b3882)),this['listenTo'](_0x52697b,'removeComment',(_0xecd60b,_0x1fe4df)=>this['removeComment'](_0x1fe4df));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x50dcf5){this['model']['addComment']({'content':_0x50dcf5,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x1f10dd,_0x4f2df6){this['model']['getComment'](_0x1f10dd)['update']({'content':_0x4f2df6});}['removeComment'](_0x3e5d0c){this['model']['getComment'](_0x3e5d0c)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x1cca86,_0x171a88,_0x3ee0a8){const t=_0x1cca86['t'];switch(_0x171a88){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x3ee0a8);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x3ee0a8);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x3ee0a8);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x3ee0a8);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3ee0a8);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x3ee0a8);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3ee0a8);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3ee0a8);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x418dac,_0x49daf5){super(_0x418dac);const _0x2044be=_0x3fb4be();this['main']=this['createCollection'](),this['editable']=new Vt(_0x418dac,_0x49daf5,void 0x0,{'label':()=>N(_0x418dac,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x418dac['uiLanguageDirection'],'lang':_0x418dac['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x2044be},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x4368e9){super(_0x4368e9),this['view']=new Rt(_0x4368e9['locale'],_0x4368e9['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x158380=this['editor']['editing']['view'],_0x1d3e5d=this['view']['editable'],_0x5716eb=_0x158380['document']['getRoot']();_0x1d3e5d['name']=_0x5716eb['rootName'],this['view']['render']();const _0x2d2b89=_0x1d3e5d['element'];this['setEditableElement'](_0x1d3e5d['name'],_0x2d2b89),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x158380['attachDomRoot'](_0x2d2b89),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x5ba153(_0x3e0c24){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x306016={}){function _0x4b4b33(_0x54da99){return _0x54da99['map'](_0x264d7a=>String['fromCharCode'](_0x264d7a))['join']('');}(_0x306016=Object['assign']({},_0x306016))['plugins']||(_0x306016['plugins']=hs['defaultPlugins']),super(_0x306016),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x4b4b33([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b4b33([0x76,0x69,0x65,0x77])][_0x4b4b33([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b4b33([0x61,0x75,0x74,0x6f]),this[_0x4b4b33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4b4b33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b4b33([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4b4b33([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4b4b33([0x6f,0x6b])});}['create'](){const _0x2b8621=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x2b8621))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x344f77=>{const _0x1b0f60=this['model']['document']['getRoot'](),_0x50ef29=_0x1b0f60&&_0x1b0f60['getChild'](_0x1b0f60['childCount']-0x1);_0x344f77['setSelection'](_0x50ef29,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x264d65=this['editing']['view'],_0x4bb8b1=_0x264d65['document']['getRoot'](),_0x5d0602=_0x4bb8b1['getChild'](0x0);_0x4bb8b1['childCount']>0x1||!_0x5d0602||'p'!=_0x5d0602['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x264d65,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x5d0602['placeholder']=this['placeholder']),Ft({'view':_0x264d65,'element':_0x5d0602,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5d0602);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0xe7f315,_0x41ebdd={}){super(_0xe7f315),this['editor']=null,this['_editorConfig']=_0x41ebdd,this['set']('value',_0x41ebdd['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0xe7f315,'Reply...')),this['set']('submitLabel',N(_0xe7f315,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x4eac6f(),this['focusCycler']=new _0x15fa0a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x1f3115,_0x157171)=>{this['cancelButtonView']['fire']('execute'),_0x157171();}),this['keystrokes']['set']('Ctrl+Enter',(_0x381ac7,_0x4ea3fa)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x4ea3fa());}),this['on']('submit',(_0x4087d3,_0x40491e)=>{_0x40491e['length']>0xfde8?(alert(N(_0xe7f315,'TOO_LONG_COMMENT_ALERT',[_0x40491e['length'],0xfde8])),_0x4087d3['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4bd6c9=this['editor'];this['element']['insertBefore'](_0x4bd6c9['ui']['element'],this['element']['firstChild']),_0x4bd6c9['model']['document']['on']('change',()=>this['value']=_0x4bd6c9['getData']()),_0x4bd6c9['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4bd6c9['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x263e00){-0x1===_0x263e00?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x254b05}=this,_0x4149e2=new _0x46ed49(_0x254b05);return _0x4149e2['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4149e2['withText']=!0x0,_0x4149e2['bind']('label')['to'](this,'submitLabel'),_0x4149e2['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4149e2['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x500e74,_0xc98114)=>!_0xc98114&&!!_0x500e74['trim']()),_0x4149e2;}['_createCancelButton'](){const {locale:_0x447767}=this,_0x4f8f51=new _0x46ed49(_0x447767);return _0x4f8f51['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x4f8f51['label']=N(_0x447767,'Cancel'),_0x4f8f51['withText']=!0x0,_0x4f8f51['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x4f8f51;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x235561=>{this['focusTracker']['add'](_0x235561['element']);}),this['focusables']['on']('change',(_0x2dec23,_0x4e5833)=>{for(const _0x470f5b of Array['from'](_0x4e5833['added'])['reverse']())this['focusTracker']['add'](_0x470f5b['element']);});}}class ie extends kt{constructor(_0x33e08f,_0x391523,_0x377742){super(_0x33e08f),this['commentInputView']=new es(_0x33e08f,_0x377742),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x59b58b,_0x5f408c)=>_0x59b58b||!!_0x5f408c),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x5bbade(_0x33e08f,_0x391523),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x4455ab){this['commentInputView']['focus'](_0x4455ab);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x5197c8,_0x39fa9f)=>{const {submitButtonView:_0x2863c6,cancelButtonView:_0x52b49c,editor:_0x41e3ed}=this['commentInputView'];[_0x2863c6['element'],_0x52b49c['element'],_0x41e3ed?_0x41e3ed['editing']['view']['getDomRoot']():null]['filter'](_0x23a55a=>_0x23a55a)['some'](_0x1322c5=>_0x1322c5['contains'](_0x39fa9f['target']))||(this['focus'](),_0x39fa9f['preventDefault']());});}}class rs extends kt{constructor(_0x2c9fb2){super(_0x2c9fb2);const _0x8481db=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x8481db['to']('count',_0x5c34be=>N(_0x2c9fb2,'NUMBER_OF_COMMENTS',_0x5c34be))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x340249,_0x43733d,_0x2073fc){super(_0x340249);const _0x1355b6=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x43733d['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x43733d,this['_config']=_0x2073fc,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4eac6f(),this['keystrokes']=new jt(),this['focusCycler']=new _0x15fa0a({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4f33e7=>this['commentViews']['map'](_0x34b71c=>_0x34b71c['element'])['includes'](_0x4f33e7['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x340249),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x575961=>_0x575961-this['_config']['maxCommentsWhenCollapsed']);for(const _0x505209 of _0x43733d['comments'])this['_handleNewCommentModel'](_0x505209);this['_handleInfoComment'](),this['listenTo'](_0x43733d['comments'],'add',(_0x1aaaad,_0x84e335)=>{const _0x10f5bd=this['_calculatePosition'](_0x84e335);this['length']++,this['_handleNewCommentModel'](_0x84e335,_0x10f5bd),this['refreshVisibleViews']();}),this['listenTo'](_0x43733d['comments'],'remove',(_0x3c3820,_0x33803f)=>{this['length']--,this['_handleRemoveCommentModel'](_0x33803f),this['refreshVisibleViews']();}),this['listenTo'](_0x43733d,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x43733d,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x1355b6['if']('length','ck-hidden',_0x3581cb=>!_0x3581cb)],'aria-label':N(_0x340249,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x1d2dfb){-0x1===_0x1d2dfb?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x2d7205 of this['commentViews'])_0x2d7205['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x5e18c4,_0x473811){const _0x1f7041=new this['_config']['CommentView'](this['locale'],_0x5e18c4,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1f7041['viewUid']=_0x5e18c4['id'],_0x1f7041['delegate']('removeComment')['to'](this),_0x1f7041['delegate']('updateComment')['to'](this),_0x1f7041['delegate']('resolveCommentThread')['to'](this),_0x1f7041['delegate']('editorReady')['to'](this),_0x1f7041['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1f7041,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1f7041,_0x473811);}['_calculatePosition'](_0x5a281e){const _0x2e4ffd=this['_model']['_findOptimalIndex'](_0x5a281e);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x5a281e['authoredAt']?_0x2e4ffd-0x1:_0x2e4ffd:_0x2e4ffd-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x590fb2={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x590fb2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x590fb2));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3d1a31){const _0x19e4c8=this['commentViews']['remove'](_0x3d1a31['id']);this['stopListening'](_0x19e4c8),_0x19e4c8['isEditMode']&&this['_updateHasDirtyComment'](),_0x19e4c8['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x104c70=>_0x104c70['isEditMode']);}['_rearrangeCollapse'](){const _0x40f66c=function(_0x30c825){const _0x2e7c15=new _0x8deec();for(const _0x657973 of _0x30c825)_0x2e7c15['add'](_0x657973);return _0x2e7c15;}(this['commentViews']),_0x10be99=this['_collapsedCommentsView']['count'];for(let _0x4c158c=0x1;_0x4c158c<=_0x10be99;_0x4c158c++)_0x40f66c['remove'](0x1);for(const _0x2158ad of _0x40f66c)_0x2158ad['collapse']();_0x10be99>0x0&&_0x40f66c['add'](this['_collapsedCommentsView'],0x1),ns(_0x299d2f(Array['from'](this['visibleViews']),Array['from'](_0x40f66c)),this['visibleViews'],_0x40f66c);}['_rearrangeExpand'](){ns(_0x299d2f(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x11d484 of this['visibleViews'])_0x11d484['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2e98eb=>{this['focusTracker']['add'](_0x2e98eb['element']),this['keystrokes']['listenTo'](_0x2e98eb['element']);}),this['commentViews']['on']('change',(_0x163a3a,_0xb0834c)=>{for(const _0x307f94 of _0xb0834c['removed'])this['focusTracker']['remove'](_0x307f94['element']),this['keystrokes']['stopListening'](_0x307f94['element']);for(const _0x47aafd of Array['from'](_0xb0834c['added'])['reverse']())this['focusTracker']['add'](_0x47aafd['element']),this['keystrokes']['listenTo'](_0x47aafd['element']);});}}function ns(_0x3fa578,_0x3b3396,_0x38dc58){let _0x54d4a3=0x0;for(const _0x235316 of _0x3fa578)switch(_0x235316){case'insert':_0x3b3396['add'](_0x38dc58['get'](_0x54d4a3),_0x54d4a3),_0x54d4a3++;break;case'delete':_0x3b3396['remove'](_0x54d4a3);break;case'equal':_0x54d4a3++;}}class oe extends kt{constructor(_0x45c507){super(_0x45c507);const _0x1030e6=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1030e6['to']('contextValue',_0x4c6138=>N(_0x45c507,'THREAD_CONTEXT_LABEL',_0x4c6138)),'tabindex':-0x1},'children':[{'text':_0x1030e6['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5e428c,_0x3b220a){super(_0x5e428c);const _0x15cff6=this['bindTemplate'];this['_model']=_0x3b220a,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4eac6f(),this['keystrokes']=new jt(),this['focusCycler']=new _0x15fa0a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x1ae68a=>!!_0x1ae68a),this['bind']('contextValue')['to'](this['_model'],'context',_0x13be13=>_0x13be13&&_0x13be13['value']?this['_trimContextValue'](_0x13be13['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x15cff6['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x57991a=new _0x46ed49(this['locale']);return _0x57991a['label']=N(this['locale'],'Reopen'),_0x57991a['tooltip']=N(this['locale'],'Reopen'),_0x57991a['icon']=_0x4671cb,_0x57991a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1352e8=>!_0x1352e8),_0x57991a['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x563e22,_0x4bc577)=>_0x563e22&&_0x4bc577),_0x57991a['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x57991a;}['_trimContextValue'](_0x336526){if(_0x336526['length']<0x96)return _0x336526;const _0x1b7ea2=_0x336526['lastIndexOf']('\x20',0x93);return _0x336526['substring'](0x0,_0x1b7ea2>-0x1?_0x1b7ea2:0x93)+'...';}['_attachContextActions'](){const _0xc8ee2d=this['element']['querySelector']('.ck-context'),_0x288cce=_0xc8ee2d['querySelector']('.ck-context__value');this['listenTo'](_0xc8ee2d,'mouseenter',()=>{_0x288cce['offsetWidth']<_0x288cce['scrollWidth']&&_0xc8ee2d['classList']['add']('overlay');}),this['listenTo'](_0xc8ee2d,'mouseleave',()=>{_0xc8ee2d['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x47a351 of this['focusables'])this['focusTracker']['add'](_0x47a351['element']),this['keystrokes']['listenTo'](_0x47a351['element']);}['_createContextView'](){const _0x3a447d=new oe(this['locale']);return _0x3a447d['bind']('contextValue')['to'](this),_0x3a447d;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x24f303,_0x2e6589,_0x488b04,_0x179d82){super(_0x24f303),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x2e6589,this['_localUser']=_0x488b04,this['_config']=_0x179d82,this['commentThreadHeaderView']=new Xt(_0x24f303,_0x2e6589),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x24f303,N(_0x24f303,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x24f303,_0x2e6589,Object['assign']({'CommentView':this['_config']['CommentView']},_0x179d82)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x39cf66,_0x1b78f1)=>_0x39cf66||!!_0x1b78f1),this['bind']('isUnlinked')['to'](_0x2e6589,'unlinkedAt',_0x28f197=>!!_0x28f197),this['bind']('ariaLabel')['to'](this,'length',_0x53f265=>{const _0x2616a4=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x53f265,_0x2616a4]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4eac6f(),this['keystrokes']=new jt(),this['focusCycler']=new _0x15fa0a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2eb9fa=>_0x2eb9fa['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x298870=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x19462b=_0x298870['commentInputView'];return _0x298870['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x19462b,'value',(_0x3e500d,_0x7ad12,_0x354178,_0x423140,_0x4886ee)=>!!_0x4886ee||!!_0x423140&&_0x354178&&!_0x7ad12||_0x3e500d&&_0x354178&&!_0x7ad12),_0x19462b['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x42a53b,_0x20e9bf,_0xfb65af)=>{let _0x56f94b;return _0x56f94b=_0xfb65af&&_0x20e9bf?'Reply\x20to\x20reopen\x20discussion...':_0x42a53b?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x56f94b);}),_0x19462b['bind']('submitLabel')['to'](this,'length',_0x1481e2=>N(this['locale'],_0x1481e2?'Reply':'Comment')),_0x19462b['on']('submit',(_0x11abad,_0x24893e)=>{this['fire']('addComment',_0x24893e),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x19462b['on']('cancel',()=>{this['focus']();}),_0x19462b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x19462b['on']('cancel',_0x47c68b=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x47c68b['stop']());}),this['on']('change:isActive',(_0x58c483,_0x56be22,_0x38fa67)=>{_0x38fa67||this['length']||_0x19462b['value']||this['fire']('removeCommentThread');}),_0x298870;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x46e7a1,_0x3677cc,_0x50fd0c,_0x2bca70){super(_0x46e7a1,_0x3677cc,_0x50fd0c,_0x2bca70),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x46e7a1,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2ca797,_0x4c8a9e,_0x427d3b)=>{_0x427d3b||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5cc6ca,_0x123353,_0x5ce17f)=>{_0x5ce17f&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1ac90f=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1ac90f['if']('isActive','ck-thread--active'),_0x1ac90f['if']('isUnlinked','ck-thread--unlinked'),_0x1ac90f['to']('actionIndicator',_0x128f4f=>_0x128f4f?'ck-thread--'+_0x128f4f:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1ac90f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x47dae7 of this['commentsListView']['commentViews'])_0x47dae7['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x2613db}=this,_0x34deb0=this['commentsListView']['commentViews']['get'](0x0);_0x34deb0===this['_boundFirstCommentView']||_0x34deb0['isSystemComment']||(this['_boundFirstCommentView']=_0x34deb0,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x34deb0,'actionIndicator',_0x37aa94=>'remove'===_0x37aa94?'remove':null),_0x34deb0['placeholder']=N(_0x2613db,'Write\x20a\x20comment...'),_0x34deb0['removeButton']['on']('execute',_0x3463ce=>{_0x3463ce['stop'](),this['showConfirm'](N(_0x2613db,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x34deb0['focus']();}),_0x34deb0['actionBar']['add'](this['resolveButton'],0x0),_0x34deb0['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x27ec12=new _0x4122e4(this['locale']);return _0x27ec12['label']=N(this['locale'],'Resolve'),_0x27ec12['tooltip']=N(this['locale'],'Resolve'),_0x27ec12['icon']=_0x1be6f0,_0x27ec12['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x27ec12['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x350f2d=>!_0x350f2d),_0x27ec12['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x306376,_0x3056fb)=>_0x306376&&!_0x3056fb),_0x27ec12['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x27ec12;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0x2f88cf){super(_0x2f88cf),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x326d5e,_0x1c9afb,_0x10f91e)=>{this['element']['innerHTML']=_0x10f91e;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x580d1f,_0x38ea4b,_0x225ac1){super(_0x580d1f),this['_model']=_0x38ea4b,this['_config']=_0x225ac1,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x38ea4b,'content',_0x38ea4b,'authoredAt',(_0x48fa7d,_0x5c1499)=>N(_0x580d1f,'COMMENT_ARIA_LABEL',[_0x38ea4b['author']['name'],_0x225ac1['formatDateTime'](_0x5c1499),new DOMParser()['parseFromString'](_0x48fa7d,'text/html')['body']['textContent'],_0x38ea4b['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x580d1f,N(_0x580d1f,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x2ed64b(),this['focusTracker']=new _0x4eac6f(),this['keystrokes']=new jt(),this['focusCycler']=new _0x15fa0a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x434bb6=>_0x434bb6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x3dbee6=new is(this['locale']);return _0x3dbee6['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1db265,_0x7c21f2)=>_0x7c21f2?ts(_0x1db265,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1db265),_0x3dbee6;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x464e2b=new es(this['locale'],this['_config']['editorConfig']);return _0x464e2b['value']=this['_model']['content'],_0x464e2b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x464e2b['submitLabel']=N(this['locale'],'Save'),_0x464e2b['on']('submit',(_0x5299a8,_0x3f4f94)=>{this['fire']('updateComment',this['_model']['id'],_0x3f4f94),this['switchToDisplayMode'](),this['focus']();}),_0x464e2b['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x464e2b['once']('editorReady',()=>{_0x464e2b['focus']();}),_0x464e2b['createEditor'](),_0x464e2b['delegate']('editorReady')['to'](this),_0x464e2b['delegate']('editorDestroyed')['to'](this),_0x464e2b;}['_setupKeyboardNavigation'](){const _0x5d63da=this['element'];this['keystrokes']['listenTo'](_0x5d63da);for(const _0x6e1737 of this['focusables'])this['focusTracker']['add'](_0x6e1737['element']),this['keystrokes']['listenTo'](_0x6e1737['element']);this['focusables']['on']('change',(_0x21a9f8,_0xd4fac)=>{for(const _0x33af0d of _0xd4fac['removed'])this['focusTracker']['remove'](_0x33af0d['element']),this['keystrokes']['stopListening'](_0x33af0d['element']);for(const _0x37db83 of _0xd4fac['added'])this['focusTracker']['add'](_0x37db83['element']),this['keystrokes']['listenTo'](_0x37db83['element']);}),this['keystrokes']['set']('enter',(_0x3345a2,_0xe82720)=>{_0x5d63da===_0x3345a2['target']&&(this['focusCycler']['focusFirst'](),_0xe82720());}),this['keystrokes']['set']('esc',(_0x2f1e66,_0x3cb88c)=>{_0x5d63da!==_0x2f1e66['target']&&(this['focus'](),_0x3cb88c());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x52fbfb,_0x113513,_0x1ad3b6){super(_0x52fbfb,_0x113513,_0x1ad3b6),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x52fbfb,'Reply...')),this['bind']('authoredAt')['to'](_0x113513),this['bind']('resolvedAt')['to'](_0x113513),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x5bbade(_0x52fbfb,_0x113513['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x113513,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x10559d=this['bindTemplate'],_0x5551a2=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x10559d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x10559d['to']('authoredAt',_0x2e66b2=>this['_config']['formatDateTime'](_0x2e66b2))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x10559d['if']('isEditMode','ck-comment__actions--hidden'),_0x10559d['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x5551a2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x10559d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x10559d['if']('isEditMode','ck-comment--edit'),_0x10559d['if']('isSystemComment','ck-comment--info'),_0x10559d['to']('actionIndicator',_0x4610d0=>_0x4610d0?'ck-comment--'+_0x4610d0:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x5551a2}]}]};}['_createEditButton'](){const _0x249f3c=new _0x46ed49(this['locale']);return _0x249f3c['label']=N(this['locale'],'Edit'),_0x249f3c['icon']=_0x1e8d76,_0x249f3c['withText']=!0x0,_0x249f3c['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x249f3c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4c384f=>!_0x4c384f),_0x249f3c['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x249f3c['on']('execute',()=>this['switchToEditMode']()),_0x249f3c;}['_createRemoveButton'](){const _0x17a48e=new _0x46ed49(this['locale']);return _0x17a48e['label']=N(this['locale'],'Remove'),_0x17a48e['icon']=_0xd74d31,_0x17a48e['withText']=!0x0,_0x17a48e['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x17a48e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2bed87=>!_0x2bed87),_0x17a48e['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x17a48e['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x17a48e;}['_createDropdown'](){const _0x335558=_0x2f750e(this['locale'],_0x5f3e0c),_0x49b5c9=_0x335558['panelView']['children'],_0x1514be=new _0x33f593(this['locale']),_0x138d04=_0x335558['bindTemplate'];_0x481452(_0x335558,()=>this['items']['find'](_0x681460=>_0x681460['isVisible'])),_0x335558['extendTemplate']({'attributes':{'class':[_0x138d04['if']('isVisible','ck-hidden',_0x2d99a8=>!_0x2d99a8)]}});const _0x18962e=(_0x4c5661,_0x8f21ed=-0x1)=>{const _0x202307=new _0x370f63(this['locale']);_0x202307['children']['add'](_0x4c5661);const _0x183662=_0x8f21ed>-0x1?_0x8f21ed:_0x1514be['items']['length'];_0x1514be['items']['add'](_0x202307,_0x183662);const _0x376160=Array['from'](this['items']);_0x335558['unbind']('isEnabled','isVisible'),_0x335558['bind']('isEnabled')['toMany'](_0x376160,'isEnabled',(..._0xcab3e9)=>_0xcab3e9['some'](_0x29083f=>_0x29083f)),_0x335558['bind']('isVisible')['toMany'](_0x376160,'isVisible',(..._0x114d2b)=>_0x114d2b['some'](_0x640219=>_0x640219));};_0x335558['panelPosition']='sw',_0x335558['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x946489});for(const _0x14a2f3 of this['items'])_0x18962e(_0x14a2f3);return _0x49b5c9['add'](_0x1514be),_0x335558['listenTo'](this['items'],'add',(_0x2278d7,_0x2658e5,_0x403351)=>{_0x18962e(_0x2658e5,_0x403351);}),_0x335558['listenTo'](this['items'],'remove',(_0x6625c5,_0x1cf94a,_0x4d37b7)=>{_0x1514be['items']['remove'](_0x4d37b7);}),_0x335558;}['_attachActions'](_0x3a76cc,_0x199a03){const _0xc1e247=_0x3a76cc&&_0x3a76cc['element'];_0xc1e247&&(this['listenTo'](_0xc1e247,'mouseenter',()=>this['actionIndicator']=_0x199a03),this['listenTo'](_0xc1e247,'focus',()=>this['actionIndicator']=_0x199a03),this['listenTo'](_0xc1e247,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0xc1e247,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x50370a=super['_createCommentInputView']();return _0x50370a['bind']('placeholder')['to'](this),_0x50370a;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x59d2a3){const _0x39e976=Dt(_0x59d2a3,0x1e),_0x222078=new MutationObserver(_0x1fd12d=>{for(const _0x20e7cf of _0x1fd12d)('attributes'==_0x20e7cf['type']&&'class'==_0x20e7cf['attributeName']||'childList'==_0x20e7cf['type']||'characterData'==_0x20e7cf['type'])&&_0x39e976();});return{'attach'(_0x4e6df5){_0x222078['observe'](_0x4e6df5,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x222078['disconnect'](),_0x39e976['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x43ca49,_0x5275ab){super(_0x43ca49),this['id']=_0x3fb4be(),this['focusTracker']=new _0x4eac6f(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x1733de,_0x18423a)=>this['fire']('Esc',_0x18423a)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x5275ab),this['mainView']=_0x5275ab;const _0x46dba3=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x46dba3['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x34e392=this['element']['clientHeight'];_0x34e392&&(this['height']=_0x34e392);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x5ba153(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x180b70,target:_0x14db16,type:_0x2948ef,isVisible:_0x1b614f=!0x0}){super(),this['view']=_0x180b70,this['view']['element']||this['view']['render'](),this['_type']=_0x2948ef,this['_target']=_0x14db16,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x8deec([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x50ebfe,_0x4fe8ff)=>{this['view']['focusTracker']['add'](_0x4fe8ff);}),this['focusableElements']['on']('remove',(_0x29f5b4,_0x4e90ee)=>{this['view']['focusTracker']['remove'](_0x4e90ee);}),this['set']('isVisible',_0x1b614f);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1baf62=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x1baf62),_0x1baf62;}get['targetRect'](){const _0x109be5=this['target'];if(null===_0x109be5)return null;if(_0x109be5 instanceof _0x3d83d0)return _0x109be5;const _0x3d208e=_0x109be5['filter'](_0x4484ea=>function(_0x571d29){const _0x42da3e=_0x571d29['offsetParent'];if(_0x42da3e)return!0x0;const _0x44c3f9=_0x571d29['getClientRects']()['item'](0x0);return!!_0x44c3f9;}(_0x4484ea));return 0x0===_0x3d208e['length']?null:new _0x3d83d0(_0x3d208e[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x219683){this['view']['isActive']=_0x219683,this['view']['mainView']['isActive']=_0x219683;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x35932e){if(!(null===_0x35932e||_0x35932e instanceof _0x3d83d0||Array['isArray'](_0x35932e)&&_0x35932e['every'](_0x2252d0=>fi(_0x2252d0))))throw new _0x3ac78d('annotation-invalid-target',null,{'target':_0x35932e});}['_getNormalizedTarget'](){const _0x502df6='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x502df6)?[_0x502df6]:_0x502df6;}}function fi(_0x51dbd1){return null!==_0x51dbd1&&'object'==typeof _0x51dbd1&&'nodeType'in _0x51dbd1&&0x1===_0x51dbd1['nodeType'];}class S extends _0x8deec{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2830a0=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4eac6f(),this['_focusTracker']['on']('change:isFocused',(_0x55a73b,_0x404eba,_0x2220ff)=>{_0x2220ff||this['fire']('blur');});for(const _0x40aebf of _0x2830a0)this['add'](_0x40aebf);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x75007b){if(this['has'](_0x75007b))throw new _0x3ac78d('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x75007b['innerView'],_0x75007b),this['_viewToAnnotation']['set'](_0x75007b['view'],_0x75007b);for(const _0x30ec3b of _0x75007b['focusableElements'])this['_focusTracker']['add'](_0x30ec3b);this['listenTo'](_0x75007b['focusableElements'],'add',(_0x2a38d2,_0x1606c2)=>{this['_focusTracker']['add'](_0x1606c2);}),this['listenTo'](_0x75007b['focusableElements'],'remove',(_0x56bc5b,_0x25eeda)=>{this['_focusTracker']['remove'](_0x25eeda);}),this['listenTo'](_0x75007b['view']['focusTracker'],'change:isFocused',(_0x4875f2,_0x2c237f,_0x31d2b4)=>{_0x31d2b4&&this['fire']('focus',_0x75007b);}),_0x75007b['updateTargetRect']();const _0x5bb4ad=this['_getOrderInContent'](_0x75007b['view']['targetRect']);return super['add'](_0x75007b,_0x5bb4ad);}['remove'](_0x5c8d5b){if(!this['has'](_0x5c8d5b))throw new _0x3ac78d('annotationcollection-not-existing-item',null);this['stopListening'](_0x5c8d5b['view']['focusTracker']),this['stopListening'](_0x5c8d5b['focusableElements']);for(const _0x20858d of _0x5c8d5b['focusableElements'])this['_focusTracker']['remove'](_0x20858d);return this['_viewToAnnotation']['delete'](_0x5c8d5b['view']),this['_innerViewToAnnotation']['delete'](_0x5c8d5b['innerView']),super['remove'](_0x5c8d5b);}['getByInnerView'](_0x4f6b89){return this['_innerViewToAnnotation']['get'](_0x4f6b89);}['getByView'](_0x588854){return this['_viewToAnnotation']['get'](_0x588854);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x3c0373 of this)_0x3c0373['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2c62a4=Array['from'](this)['sort']((_0x4ecd71,_0x114a6b)=>w(_0x4ecd71['view']['targetRect'],_0x114a6b['view']['targetRect']));for(let _0x30fb5f=_0x2c62a4['length']-0x1;_0x30fb5f>0x0;_0x30fb5f--){const _0x108595=_0x2c62a4[_0x30fb5f];_0x30fb5f!==this['getIndex'](_0x108595)&&(this['remove'](_0x108595),this['add'](_0x108595));}}['_getOrderInContent'](_0x11d009){let _0x57a564=0x0;if(!_0x11d009)return this['length'];for(const _0x2aea45 of this){const _0x227959=_0x2aea45['view']['targetRect'];if(_0x227959){if(w(_0x11d009,_0x227959)<0x0)return _0x57a564;_0x57a564++;}}return _0x57a564;}}function v({source:_0x5ddd66,target:_0x31bca6,filter:_0x30898b}){for(const _0x273ec4 of _0x5ddd66)_0x30898b(_0x273ec4)&&_0x31bca6['add'](_0x273ec4);_0x31bca6['listenTo'](_0x5ddd66,'add',(_0x6937,_0x3744a2)=>{_0x30898b(_0x3744a2)&&_0x31bca6['add'](_0x3744a2);}),_0x31bca6['listenTo'](_0x5ddd66,'remove',(_0x34e570,_0x2ab1ad)=>{_0x31bca6['has'](_0x2ab1ad)&&_0x31bca6['remove'](_0x2ab1ad);});}function w(_0x102860,_0x5c8db2){if(null===_0x102860&&null===_0x5c8db2)return 0x0;if(null===_0x102860)return-0x1;if(null===_0x5c8db2)return 0x1;const _0x1cfc8a=_0x102860['top']-_0x5c8db2['top'];return 0x0==_0x1cfc8a?_0x102860['left']-_0x5c8db2['left']:_0x1cfc8a;}class y extends _0x347f40{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43e1a8){if(super(_0x43e1a8),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x43e1a8 instanceof _0x3e0c24){const _0x47e5fe=_0x43e1a8['locale'];_0x43e1a8['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x47e5fe,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x47e5fe,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x47e5fe,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x47e5fe,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x47e5fe,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x47e5fe,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x47e5fe,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0xb6bf6a){this['collection']['add'](_0xb6bf6a);}['remove'](_0xa78f88){this['collection']['remove'](_0xa78f88),_0xa78f88['destroy']();}['refreshVisibility'](){for(const _0x3d9cb6 of this['collection'])_0x3d9cb6['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x599403){return this['collection']['getByInnerView'](_0x599403);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x31bdf8 of this['collection'])_0x31bdf8['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0xef2ea2){this['fire']('_activateAnnotation',_0xef2ea2);}['createAnnotation'](_0x5c519c){return new T(_0x5c519c);}['createAnnotationView'](_0x2f58b8,_0x46e2a2){return new E(_0x2f58b8,_0x46e2a2);}['_addActiveAnnotation'](_0x4d5a28){const _0x2ee228=new Set(this['activeAnnotations']);_0x2ee228['add'](_0x4d5a28),this['activeAnnotations']=_0x2ee228;}['_removeActiveAnnotation'](_0x24d29b){const _0x590574=new Set(this['activeAnnotations']);_0x590574['delete'](_0x24d29b),this['activeAnnotations']=_0x590574;}['_bindAnnotationsToVisibleAnnotations'](){const _0x2f7580=this['collection'],_0x2d2d4f=this['_visibleAnnotations'];function _0x289b4f(_0x252087){const _0x35ab6e=_0x252087['source'];_0x35ab6e['isVisible']&&!_0x2d2d4f['has'](_0x35ab6e)?_0x2d2d4f['add'](_0x35ab6e):!_0x35ab6e['isVisible']&&_0x2d2d4f['has'](_0x35ab6e)&&_0x2d2d4f['remove'](_0x35ab6e),_0x35ab6e['view']['focusTracker']['remove'](_0x35ab6e['view']['element']),_0x35ab6e['view']['focusTracker']['add'](_0x35ab6e['view']['element']);}this['listenTo'](_0x2f7580,'add',(_0x488ea8,_0xa7e3e1)=>{_0xa7e3e1['isVisible']&&_0x2d2d4f['add'](_0xa7e3e1),this['listenTo'](_0xa7e3e1,'change:isVisible',_0x289b4f);}),this['listenTo'](_0x2f7580,'remove',(_0x166642,_0x5c4b4b)=>{_0x2d2d4f['has'](_0x5c4b4b)&&_0x2d2d4f['remove'](_0x5c4b4b),this['stopListening'](_0x5c4b4b,'change:isVisible',_0x289b4f);});}['_setupEnterAnnotationKeystroke'](){const _0x38b6ff=_0xa3bd52=>{_0xa3bd52['on']('ready',()=>{_0xa3bd52['keystrokes']['set'](_0x577e12,(_0x51c7da,_0x4bae46)=>{const _0x1de2ba=_0x49a72a(this['activeAnnotations']['values']());_0x1de2ba&&(_0x1de2ba['view']['focus'](),_0x4bae46());});});};this['context']instanceof _0x3e0c24?_0x38b6ff(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x33ff0d,_0x382cce)=>{_0x38b6ff(_0x382cce);});}['_setupEscapeAnnotationHandling'](){const _0x354987=_0x48ac92=>{const _0x17d5a8=_0x48ac92['source'],_0x4ad06b=[];let _0x5d2fb5;if(Array['isArray'](_0x17d5a8['target'])){_0x5d2fb5=_0x17d5a8['target'][0x0],this['context']instanceof _0x3e0c24?_0x4ad06b['push'](this['context']):this['context']['editors']&&_0x4ad06b['push'](...this['context']['editors']);for(const _0x35eb3e of _0x4ad06b)for(const _0x84a38d of _0x35eb3e['editing']['view']['domRoots']['values']())if(_0x84a38d['contains'](_0x5d2fb5))return void _0x35eb3e['editing']['view']['focus']();_0x5d2fb5['focus']();}};this['listenTo'](this['collection'],'add',(_0x554751,_0x201810)=>{this['listenTo'](_0x201810,'escape',_0x354987,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x3dc810,_0x1b9ade)=>{this['stopListening'](_0x1b9ade,'escape',_0x354987);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x347f40{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x171692){super(_0x171692),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3f52be=this['context']['config'];_0x3f52be['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3f52be['define']('comments.maxThreadTotalWeight',0x1f4),_0x3f52be['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3f52be['define']('comments.CommentThreadView',gt),_0x3f52be['define']('comments.CommentView',Tt),_0x3f52be['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0xcf1150=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x400a18,_0x29b11e)=>this['_addCommentThread'](_0x29b11e)),this['on']('submitCommentThread',(_0x5df700,_0x3f420a)=>this['_submitCommentThread'](_0x3f420a)),this['on']('resolveCommentThread',(_0x4fed10,_0x4217a8)=>this['_resolveCommentThread'](_0x4217a8)),this['on']('resolveCommentThread',(_0x25cbaa,_0x31346)=>this['_updateActiveAnnotation'](_0x31346),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3596b1,_0x12bc44)=>this['_reopenCommentThread'](_0x12bc44)),this['on']('reopenCommentThread',(_0xdbb47f,_0x5f5d7d)=>this['_updateActiveAnnotation'](_0x5f5d7d),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x22b09c,_0x1eee3c)=>this['_removeCommentThread'](_0x1eee3c)),this['on']('updateCommentThread',(_0x5c8657,_0x477e07)=>this['_updateCommentThread'](_0x477e07)),this['on']('updateCommentThread',(_0x563dfa,_0x551a1a)=>this['_updateActiveAnnotation'](_0x551a1a),{'priority':'lowest'}),this['on']('addComment',(_0x5e18e6,_0x5c3a87)=>this['_addComment'](_0x5c3a87)),this['on']('updateComment',(_0x44e600,_0x412647)=>this['_updateComment'](_0x412647)),this['on']('removeComment',(_0x2e8378,_0x29bdf8)=>this['_removeComment'](_0x29bdf8)),this['on']('addComment',(_0x42065e,{threadId:_0x307445,isFromAdapter:_0x85ae9d})=>{if(_0x85ae9d)return;const _0x364fe7=this['getCommentThread'](_0x307445),_0x290273=_0x364fe7&&this['_threadToController']['get'](_0x364fe7);_0x290273&&_0x290273['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0xcf1150,'change:activeAnnotations',(_0x2f90a1,_0x31e581,_0x5d839a)=>{const _0xc2872c=Array['from'](_0x5d839a)['map'](_0x536ce5=>this['_viewToController']['get'](_0x536ce5['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xc2872c?_0xc2872c['model']:null;});}set['adapter'](_0x10139a){if(this['_adapter'])throw new _0x3ac78d('commentsrepository-adapter-already-set');this['_adapter']=_0x10139a;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x51eea8=_t,threadId:_0xbdd7a=_0x3fb4be(),comments:_0x205937=[],unlinkedAt:_0x3b8c28=null,resolvedAt:_0x550049=null,resolvedBy:_0x4c68e4=null,target:_0x51c39c=null,context:_0x3d140b=null,attributes:_0x21e58d={},isResolvable:_0x4a4873=!0x0,isSubmitted:_0x46fd7b=!0x1,isFromAdapter:_0x50bd50=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x51eea8),{'channelId':_0x51eea8,'threadId':_0xbdd7a,'comments':_0x205937,'unlinkedAt':_0x3b8c28,'resolvedAt':_0x550049,'resolvedBy':_0x4c68e4,'target':_0x51c39c,'context':_0x3d140b,'attributes':_0x21e58d,'isFromAdapter':_0x50bd50,'isResolvable':_0x4a4873,'isSubmitted':_0x46fd7b}),this['getCommentThread'](_0xbdd7a);}['openNewCommentThread']({channelId:_0x4146a3=_t,threadId:_0x4588ed=_0x3fb4be(),target:_0x4493ef,context:_0x3c7715=null,isResolvable:_0x2677ba=!0x0}){if(this['_readOnlyChannels']['has'](_0x4146a3)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4493ef)throw new _0x3ac78d('commentsrepository-missing-target');const _0x15abce=this['addCommentThread']({'channelId':_0x4146a3,'threadId':_0x4588ed,'target':_0x4493ef,'context':_0x3c7715,'isResolvable':_0x2677ba});if(!_0x15abce)return null;const _0x3535f8=this['_threadToController']['get'](_0x15abce),_0x5db62e=_0x3535f8['view']['commentThreadInputView']['commentInputView'],_0x3748ae=this['context']['plugins']['get'](y),_0x20f750=_0x3748ae['getByInnerView'](_0x3535f8['view']);return _0x3748ae['activate'](_0x20f750),_0x5db62e['once']('editorReady',()=>_0x5db62e['focus']()),_0x15abce;}['hasCommentThread'](_0x3e124d){if('string'!=typeof _0x3e124d)throw new _0x3ac78d('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x3e124d);}['updateCommentThread']({channelId:_0xb68dd1=_t,threadId:_0x3c54d7,context:_0x195a04,unlinkedAt:_0x53f5bf,attributes:_0x393209,isFromAdapter:_0x38641f=!0x1}){return this['fire'](Nt('updateCommentThread',_0xb68dd1),{'channelId':_0xb68dd1,'threadId':_0x3c54d7,'context':_0x195a04,'unlinkedAt':_0x53f5bf,'attributes':_0x393209,'isFromAdapter':_0x38641f}),this['getCommentThread'](_0x3c54d7);}['getCommentThread'](_0x4a8afa){if('string'!=typeof _0x4a8afa)throw new _0x3ac78d('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4a8afa);}['fetchCommentThread']({channelId:_0x2de898,threadId:_0xa0c5e1}={}){const _0x491ba2=this['getCommentThread'](_0xa0c5e1);if(_0x491ba2)return Promise['resolve'](_0x491ba2);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3ac78d('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x2de898,'threadId':_0xa0c5e1})['then'](_0x342ece=>this['hasCommentThread'](_0xa0c5e1)?this['getCommentThread'](_0xa0c5e1):_0x342ece?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x2de898},_0x342ece)):void 0x0)['catch'](_0x43376a=>{throw console['error'](_0x43376a),new _0x3ac78d('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0xa05be2,skipNotAttached:_0x46ce37=!0x1,skipEmpty:_0x45fd33=!0x1,toJSON:_0x15af7a=!0x1}={}){const _0x896384=[];for(const _0x35489a of this['_threads']['values']())_0xa05be2&&_0x35489a['channelId']!==_0xa05be2||_0x46ce37&&!_0x35489a['isAttached']||_0x45fd33&&0x0===_0x35489a['length']||_0x896384['push'](_0x35489a);return _0x15af7a?_0x896384['map'](_0xdc7bf5=>_0xdc7bf5['toJSON']()):_0x896384;}['getAnnotationForCommentThread'](_0x1aacc1){const _0x2bf3cf=this['_threadToController']['get'](_0x1aacc1);if(!_0x2bf3cf)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x2bf3cf['view'])||null;}['getCommentThreadForAnnotation'](_0x5b5cef){const _0x5234d0=this['_viewToController']['get'](_0x5b5cef['innerView']);return _0x5234d0?_0x5234d0['model']:null;}['setActiveCommentThread'](_0x5ea106){const _0x3f1282=this['context']['plugins']['get'](y);if(!_0x5ea106)return void(this['activeCommentThread']&&_0x3f1282['deactivateAll']());const _0x520c87=this['getCommentThread'](_0x5ea106);if(!_0x520c87)throw new _0x3ac78d('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x5ea106});if(!this['_threadToController']['has'](_0x520c87))throw new _0x3ac78d('commentsrepository-active-not-attached',null,{'threadId':_0x5ea106});const _0x33398a=_0x3f1282['getByInnerView'](this['_threadToController']['get'](_0x520c87)['view']);_0x3f1282['activate'](_0x33398a);}['switchReadOnly'](_0xc39bcd,_0x66a55){_0xc39bcd?this['_readOnlyChannels']['add'](_0x66a55):this['_readOnlyChannels']['delete'](_0x66a55),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x7d5df3){return this['_readOnlyChannels']['has'](_0x7d5df3)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x2c121a,_0x482842){return new vt(_0x2c121a,_0x482842);}['setPermissions'](_0x14578d,_0x3d139e=_t){this['_permissions']['set'](_0x3d139e,_0x14578d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1e7d34=_t){return this['_permissions']['has'](_0x1e7d34)?this['_permissions']['get'](_0x1e7d34):bt;}['_addCommentThread']({channelId:_0x551235,threadId:_0x3aaba2,comments:_0x3225fd,unlinkedAt:_0x15ab30,resolvedAt:_0x19d704,resolvedBy:_0x36d2fd,target:_0x1265f9,context:_0x4fa40a,attributes:_0x262a08,isFromAdapter:_0x5d8cba,isResolvable:_0x129669,isSubmitted:_0x50f53b}){if('string'!=typeof _0x3aaba2)throw new _0x3ac78d('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3aaba2});if(this['hasCommentThread'](_0x3aaba2))throw new _0x3ac78d('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x3aaba2});const _0x1f4f89=new pi(this,{'channelId':_0x551235,'id':_0x3aaba2,'context':_0x4fa40a,'attributes':_0x262a08,'unlinkedAt':_0x15ab30,'resolvedAt':_0x19d704,'resolvedBy':_0x36d2fd?this['context']['plugins']['get'](it)['getUser'](_0x36d2fd):null,'isResolvable':_0x129669,'isSubmitted':_0x50f53b||_0x5d8cba});this['_threads']['set'](_0x3aaba2,_0x1f4f89);for(const _0x2ecc75 of _0x3225fd)_0x1f4f89['_add'](this['_createNewComment']({'threadId':_0x3aaba2,..._0x2ecc75}));return _0x1265f9&&_0x1f4f89['attachTo'](_0x1265f9),_0x5d8cba||!_0x1f4f89['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x551235,'threadId':_0x3aaba2});}['_submitCommentThread']({channelId:_0x41881e,threadId:_0x2bdbf5}){if(!this['hasCommentThread'](_0x2bdbf5))throw new _0x3ac78d('commentsrepository-missing-comment-thread',this);const _0x114c9e=this['getCommentThread'](_0x2bdbf5);if(_0x114c9e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x57f0e3,comments:_0x196732,resolvedAt:_0x52ba00,resolvedBy:_0x37edb9,context:_0x3db5cd,attributes:_0x49042e}=_0x114c9e,_0x257be0=this['context']['plugins']['get']('PendingActions'),_0x18abfc=_0x257be0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x41881e,'threadId':_0x57f0e3,'comments':_0x196732['map'](_0xe118f6=>_0xe118f6['toJSON']()),'resolvedAt':_0x52ba00,'resolvedBy':_0x37edb9?_0x37edb9['id']:_0x37edb9,'context':_0x3db5cd,'attributes':_0x49042e})['then'](({comments:_0x398605})=>{_0x257be0['remove'](_0x18abfc);for(const _0x2b7cc2 of _0x398605)this['_updateComment']({'channelId':_0x41881e,'threadId':_0x2bdbf5,'commentId':_0x2b7cc2['commentId'],'createdAt':_0x2b7cc2['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x488146=>{throw console['error'](_0x488146),new _0x3ac78d('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x476c3b,target:_0x13cf4a}){const _0x3ca40f=this['getCommentThread'](_0x476c3b);if(!_0x3ca40f)throw new _0x3ac78d('commentsrepository-attach-missing-comment-thread',this);const _0x42c6f9=this['context']['plugins']['get']('PendingActions'),_0x1c34b2=this['context']['plugins']['get'](y),_0x4ff871=this['_createCommentThreadView'](_0x3ca40f),_0x278495=new vt(_0x3ca40f,_0x4ff871);let _0x47cf96=null;_0x4ff871['on']('change:isDirty',(_0x5ca882,_0x403342,_0x3f4f98)=>{_0x3f4f98?_0x47cf96=_0x42c6f9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x47cf96&&(_0x42c6f9['remove'](_0x47cf96),_0x47cf96=null);}),this['_threadToController']['set'](_0x3ca40f,_0x278495),this['_viewToController']['set'](_0x4ff871,_0x278495);const _0x36b40a=new E(this['context']['locale'],_0x4ff871);_0x36b40a['bind']('length')['to'](_0x4ff871),_0x36b40a['bind']('isDirty')['to'](_0x4ff871,'isDirty',_0x4ff871,'length',(_0x5dfcdb,_0x5ac4a6)=>_0x5dfcdb||!_0x5ac4a6),_0x36b40a['bind']('isActive')['to'](_0x4ff871),_0x36b40a['type']='comment';const _0x85eb73=new T({'view':_0x36b40a,'target':_0x13cf4a,'type':'comment','isVisible':!_0x3ca40f['archivedAt']&&!!('function'==typeof _0x13cf4a?_0x13cf4a():_0x13cf4a)});return _0x4ff871['on']('escape',()=>{_0x85eb73['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4ff871,_0x85eb73),_0x1c34b2['add'](_0x85eb73),_0x85eb73;}['_bindAnnotationToEditors'](_0x1c5a2c,_0x59c294){this['listenTo'](_0x1c5a2c,'editorReady',(_0x409481,_0x1c5132)=>{const _0x3c6f54=_0x1c5132['ui']['view']['body']['bodyCollectionContainer'];_0x59c294['focusableElements']['add'](_0x3c6f54),this['context']instanceof _0x3e0c24&&this['context']['ui']['focusTracker']['add'](_0x3c6f54);},{'priority':'highest'}),this['listenTo'](_0x1c5a2c,'editorDestroyed',(_0x3d4dac,_0x5e059a)=>{const _0x11704b=_0x5e059a['ui']['view']['body']['bodyCollectionContainer'];_0x59c294['focusableElements']['has'](_0x11704b)&&_0x59c294['focusableElements']['remove'](_0x11704b),this['context']instanceof _0x3e0c24&&this['context']['ui']['focusTracker']['remove'](_0x11704b);});}['_unbindEditors'](_0x3e1819){this['stopListening'](_0x3e1819,'editorReady'),this['stopListening'](_0x3e1819,'editorDestroyed');}['_createCommentThreadView'](_0x2ab502){const _0x2b3e6a=this['context']['plugins']['get'](it),{config:_0x1e783b,locale:_0x2208f8}=this['context'],_0x18e8bf=pt(_0x1e783b['get']('locale'),_0x2208f8);return new(0x0,(_0x1e783b['get']('comments'))['CommentThreadView'])(_0x2208f8,_0x2ab502,_0x2b3e6a['me'],{'editorConfig':{..._0x1e783b['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x1e783b['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x1e783b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1e783b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1e783b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x18e8bf,'CommentView':_0x1e783b['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x2d6a1e,channelId:_0x54dfd3,resolvedAt:_0x4c7f51,resolvedBy:_0x55183e,isFromAdapter:_0x3bdcdc}){if(!this['hasCommentThread'](_0x2d6a1e))throw new _0x3ac78d('commentsrepository-missing-comment-thread',null,{'threadId':_0x2d6a1e});const _0x31ed2a=this['getCommentThread'](_0x2d6a1e);if(_0x31ed2a['isResolved'])throw new _0x3ac78d('commentsrepository-resolved-comment-thread',null,{'threadId':_0x2d6a1e});const _0x884b5c=this['context']['plugins']['get'](it);if(_0x31ed2a['resolvedBy']=_0x884b5c['getUser'](_0x55183e),_0x31ed2a['resolvedAt']=_0x4c7f51,_0x3bdcdc||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x456ff4=this['context']['plugins']['get']('PendingActions'),_0x5aad51=_0x456ff4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x54dfd3,'threadId':_0x2d6a1e})['then'](({resolvedAt:_0x2d475b,resolvedBy:_0x5ef804})=>{_0x456ff4['remove'](_0x5aad51),_0x31ed2a['resolvedBy']['id']!==_0x5ef804&&(_0x31ed2a['resolvedBy']=_0x884b5c['getUser'](_0x5ef804)),_0x31ed2a['resolvedAt']=_0x2d475b;})['catch'](_0x317fd8=>{throw console['error'](_0x317fd8),new _0x3ac78d('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x38a981,channelId:_0x4dcb5e,isFromAdapter:_0x2ac406}){if(!this['hasCommentThread'](_0x38a981))throw new _0x3ac78d('commentsrepository-missing-comment-thread',null,{'threadId':_0x38a981});const _0x308984=this['getCommentThread'](_0x38a981);if(!_0x308984['isResolved'])throw new _0x3ac78d('commentsrepository-reopen-comment-thread',null,{'threadId':_0x38a981});if(_0x308984['resolvedBy']=null,_0x308984['resolvedAt']=null,_0x2ac406||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x500f1d=this['context']['plugins']['get']('PendingActions'),_0x501615=_0x500f1d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x4dcb5e,'threadId':_0x38a981})['then'](()=>_0x500f1d['remove'](_0x501615))['catch'](_0x452dbb=>{throw console['error'](_0x452dbb),new _0x3ac78d('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xeb5074,isFromAdapter:_0x2935c1}){const _0x574fe1=this['getCommentThread'](_0xeb5074);if(!_0x574fe1)throw new _0x3ac78d('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xeb5074),this['_threads']['delete'](_0xeb5074),!_0x574fe1['isSubmitted']||_0x2935c1||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x334438=this['context']['plugins']['get']('PendingActions'),{channelId:_0x42edf9}=_0x574fe1,_0x4c16d0=_0x334438['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x42edf9,'threadId':_0xeb5074})['then'](()=>_0x334438['remove'](_0x4c16d0))['catch'](_0xfb4b4=>{throw console['error'](_0xfb4b4),new _0x3ac78d('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3d75d1,unlinkedAt:_0x2d3059,context:_0x3abbd1,attributes:_0x16c3b2,isFromAdapter:_0x26cf5b}){if('string'!=typeof _0x3d75d1)throw new _0x3ac78d('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3d75d1});if(!this['hasCommentThread'](_0x3d75d1))throw new _0x3ac78d('commentsrepository-missing-comment-thread',null,{'threadId':_0x3d75d1});const _0x38f30a=this['getCommentThread'](_0x3d75d1);let _0x11443e=!0x1;if(void 0x0!==_0x3abbd1&&_0x38f30a['context']!==_0x3abbd1&&(_0x38f30a['context']=_0x3abbd1,_0x11443e=!0x0),void 0x0!==_0x2d3059&&_0x38f30a['unlinkedAt']!==_0x2d3059&&(_0x38f30a['unlinkedAt']=_0x2d3059,_0x11443e=!0x0),_0x16c3b2&&!At(_0x16c3b2,_0x38f30a['attributes'])&&(_0x38f30a['attributes']=_0x16c3b2,_0x11443e=!0x0),!_0x11443e)return Promise['resolve']();if(!_0x38f30a['isSubmitted']||_0x26cf5b||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x3d878b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x50e8f9}=_0x38f30a,_0x54e624=_0x3d878b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x50e8f9,'threadId':_0x3d75d1,'context':_0x3abbd1,'unlinkedAt':_0x2d3059,'attributes':_0x16c3b2})['then'](()=>_0x3d878b['remove'](_0x54e624))['catch'](_0x5b83f8=>{throw console['error'](_0x5b83f8),new _0x3ac78d('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x68bf42){const _0x22acd0=this['context']['plugins']['get'](y),_0x1985f5=this['getCommentThread'](_0x68bf42);if(_0x1985f5['_isAttached']=!0x1,this['_threadToController']['has'](_0x1985f5)){const _0x8e1077=this['_threadToController']['get'](_0x1985f5),_0x3c947b=_0x8e1077['view'],_0x6d1059=_0x22acd0['getByInnerView'](_0x3c947b);this['_threadToController']['delete'](_0x1985f5),this['_viewToController']['delete'](_0x3c947b),_0x6d1059&&_0x22acd0['remove'](_0x6d1059),_0x8e1077['destroy'](),_0x3c947b['destroy']()['then'](()=>{this['_unbindEditors'](_0x3c947b);});}}['_updateActiveAnnotation']({threadId:_0x426b62,resolvedAt:_0x45b6c6,unlinkedAt:_0xce9cf6}){const _0x1e8524=!!_0x45b6c6,_0x4871b3=this['context']['plugins']['get'](y),_0x34deed=this['getCommentThread'](_0x426b62);if(this['_threadToController']['has'](_0x34deed)){const _0x3882c9=this['_threadToController']['get'](_0x34deed)['view'],_0x32ed3c=_0x4871b3['getByInnerView'](_0x3882c9);_0x32ed3c&&(_0x1e8524&&_0x4871b3['_removeActiveAnnotation'](_0x32ed3c),_0xce9cf6?_0x32ed3c['isVisible']=!0x1:_0x32ed3c['refreshVisibility']());}}['_getExternalAuthor'](_0x3679e7){const _0x548098=this['context']['plugins']['get'](it),_0x45a74d=It('external:'+_0x3679e7),_0x57fbe1=_0x548098['getUser'](_0x45a74d);return _0x57fbe1||_0x548098['addUser']({'id':_0x45a74d,'name':_0x3679e7});}['_createNewComment']({threadId:_0x40f6b8,commentId:_0x385f92=_0x3fb4be(),content:_0x13c2fb,authorId:_0x3c9932,createdAt:_0x1cb06a,attributes:_0x3bfbad}){if('string'!=typeof _0x385f92)throw new _0x3ac78d('commentsrepository-invalid-commentid');if('string'!=typeof _0x3c9932)throw new _0x3ac78d('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x13c2fb||!_0x13c2fb['trim']())throw new _0x3ac78d('commentsrepository-invalid-comment-content');const _0x30729e=this['context']['plugins']['get'](it)['getUser'](_0x3c9932);if(!_0x30729e)throw new _0x3ac78d('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x3c9932});let _0x198866=null,_0x29e457=_0x1cb06a;return _0x3bfbad?.['@external']&&(_0x198866=this['_getExternalAuthor'](_0x3bfbad['@external']['authorName']),_0x29e457=new Date(_0x3bfbad['@external']['createdAt'])),new wi(this,{'threadId':_0x40f6b8,'id':_0x385f92,'author':_0x198866||_0x30729e,'creator':_0x30729e,'content':_0x13c2fb,'createdAt':_0x1cb06a,'authoredAt':_0x29e457,'attributes':_0x3bfbad});}['_addComment'](_0x461940){let {threadId:_0x3543b6,content:_0x3bfc16,attributes:_0x2795ea,isFromAdapter:_0x1a0a09}=_0x461940;const _0x301da7=this['getCommentThread'](_0x461940['threadId']);if(!_0x301da7)throw new _0x3ac78d('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x387f32=this['_createNewComment'](_0x461940),{id:_0x104f99}=_0x387f32;if(_0x301da7['_add'](_0x387f32),_0x1a0a09||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x301da7['isSubmitted'])return Promise['resolve']();const _0x14c94c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1ea3e2}=_0x301da7,_0x4f44fa=_0x14c94c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x2795ea||(_0x2795ea={}),this['adapter']['addComment']({'channelId':_0x1ea3e2,'threadId':_0x3543b6,'commentId':_0x104f99,'content':_0x3bfc16,'attributes':_0x2795ea})['then'](_0x195007=>{_0x14c94c['remove'](_0x4f44fa),_0x195007&&this['_updateComment']({'channelId':_0x1ea3e2,'threadId':_0x3543b6,'commentId':_0x104f99,'createdAt':_0x195007['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x309f0e=>{throw console['error'](_0x309f0e),new _0x3ac78d('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x5a54b4,commentId:_0x327acf,content:_0x41d094,createdAt:_0x38d271,attributes:_0x4d7919,isFromAdapter:_0x18d83b}){if(void 0x0!==_0x41d094&&('string'!=typeof _0x41d094||!_0x41d094['trim']()['length']))throw new _0x3ac78d('commentsrepository-update-comment-invalid-content');const _0x59ad02=this['getCommentThread'](_0x5a54b4),_0x41c593=_0x59ad02['getComment'](_0x327acf);if(!_0x41c593)throw new _0x3ac78d('commentsrepository-update-missing-comment',this);let _0x1452a9=!0x1;if(_0x41d094&&_0x41d094!==_0x41c593['content']&&(_0x41c593['isEditable']||_0x18d83b)&&(_0x41c593['content']=_0x41d094,_0x1452a9=!0x0),_0x38d271&&_0x38d271!==_0x41c593['createdAt']&&(_0x41c593['createdAt']=_0x38d271,_0x41c593['attributes']&&_0x41c593['attributes']['@external']||(_0x41c593['authoredAt']=_0x38d271),_0x1452a9=!0x0),_0x4d7919&&!At(_0x4d7919,_0x41c593['attributes'])&&(_0x41c593['attributes']=_0x4d7919,_0x1452a9=!0x0),!_0x1452a9)return Promise['resolve']();if(_0x59ad02['fire']('commentUpdated'),_0x18d83b||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x177de6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3342fe}=this['getCommentThread'](_0x41c593['threadId']),_0x3022de=_0x177de6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x3342fe,'threadId':_0x5a54b4,'commentId':_0x327acf,'content':_0x41d094,'attributes':_0x4d7919})['then'](()=>_0x177de6['remove'](_0x3022de))['catch'](_0x44768a=>{throw console['error'](_0x44768a),new _0x3ac78d('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1ae547,commentId:_0x382910,isFromAdapter:_0x100c05}){const _0x107560=this['getCommentThread'](_0x1ae547),_0x5276ec=_0x107560['getComment'](_0x382910);if(!_0x5276ec)throw new _0x3ac78d('commentsrepository-remove-missing-comment',this);if(_0x107560['_remove'](_0x5276ec),_0x100c05||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x431d3f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5849df}=_0x107560,_0x1db460=_0x431d3f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x5849df,'threadId':_0x1ae547,'commentId':_0x382910})['then'](()=>_0x431d3f['remove'](_0x1db460))['catch'](_0x12a9cd=>{throw console['error'](_0x12a9cd),new _0x3ac78d('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x5ba153(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x1e6c16,_0x574c8d){super();const _0x550f40=_0x574c8d['isResolvable'];this['channelId']=_0x574c8d['channelId'],this['id']=_0x574c8d['id'],this['comments']=new _0x8deec(),this['_repository']=_0x1e6c16,this['_isAttached']=!0x1,this['_isSubmitted']=_0x574c8d['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x1e6c16,'_permissions',_0x1e6c16,'_readOnlyChannels',()=>_0x1e6c16['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x1e6c16,'_permissions',()=>_0x1e6c16['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x1e6c16,'_permissions',()=>{const _0x335f30=_0x1e6c16['getPermissions'](this['channelId']);return _0x335f30['write']||_0x335f30['admin'];}),this['bind']('isResolvable')['to'](_0x1e6c16,'_permissions',()=>_0x550f40&&_0x1e6c16['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x574c8d['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x67d903,_0x779bc9)=>_0x67d903?_0x779bc9?_0x67d903<_0x779bc9?_0x67d903:_0x779bc9:_0x67d903:_0x779bc9),this['set']('unlinkedAt',_0x574c8d['unlinkedAt']||null),this['set']('resolvedAt',_0x574c8d['resolvedAt']||null),this['set']('resolvedBy',_0x574c8d['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x460045=>!!_0x460045),this['set']('attributes',_0x574c8d['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x587ec9,_0x1be6fc)=>_0x587ec9+_0x1be6fc['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x5b036f,id:_0x3cecfc}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x5b036f),{'channelId':_0x5b036f,'threadId':_0x3cecfc});}['setUnlinkedAt'](_0x656787){this['_update']({'unlinkedAt':_0x656787});}['resolve']({resolvedAt:_0x39effa=new Date(),resolvedBy:_0x1d1348='',isFromAdapter:_0x2234cf=!0x1}={}){const _0x12892d=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4cabd1,id:_0x4731f4}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x4cabd1),{'channelId':_0x4cabd1,'threadId':_0x4731f4,'resolvedAt':_0x39effa,'resolvedBy':_0x1d1348||_0x12892d['id'],'isFromAdapter':_0x2234cf});}['reopen']({isFromAdapter:_0x337199=!0x1}={}){const {channelId:_0x249304,id:_0x1b38f4}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x249304),{'channelId':_0x249304,'threadId':_0x1b38f4,'isFromAdapter':_0x337199});}['setContext'](_0x4fd7c6){this['context']||this['_update']({'context':_0x4fd7c6});}['setAttribute'](_0x1b790c,_0x4f9c54){const _0x38ae3b=wt(this['attributes']);yt(_0x38ae3b,_0x1b790c,_0x4f9c54),this['_update']({'attributes':_0x38ae3b});}['removeAttribute'](_0x15438a){const _0xbaa295=wt(this['attributes']);Ct(_0xbaa295,_0x15438a),this['_update']({'attributes':_0xbaa295});}['remove']({isFromAdapter:_0x2e6ab8=!0x1}={}){const {channelId:_0x54b584,id:_0x2fb49c}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x54b584),{'channelId':_0x54b584,'threadId':_0x2fb49c,'isFromAdapter':_0x2e6ab8});}['attachTo'](_0x3556ce){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x3556ce});}['addComment'](_0x325d63){const {channelId:_0x42f054,id:_0x55fbed}=this;this['_repository']['fire'](Nt('addComment',_0x42f054,_0x55fbed),Object['assign']({'channelId':_0x42f054,'threadId':_0x55fbed},_0x325d63));}['getComment'](_0x257287){if('string'!=typeof _0x257287)throw new _0x3ac78d('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x257287});return this['comments']['get'](_0x257287);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x59af22=>_0x59af22['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3fe76){return this['listenTo'](_0x3fe76,'change:authoredAt',()=>{const _0x17c603=this['_findOptimalIndex'](_0x3fe76),_0xeb844d=this['comments'];_0x17c603-0x1!=_0xeb844d['getIndex'](_0x3fe76)&&_0x17c603+0x1!=_0xeb844d['getIndex'](_0x3fe76)&&(this['_remove'](_0x3fe76),this['_add'](_0x3fe76));}),this['comments']['add'](_0x3fe76,this['_findOptimalIndex'](_0x3fe76));}['_update'](_0x4fb211){const {channelId:_0x490223,id:_0x37e2b0}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x490223),{..._0x4fb211,'channelId':_0x490223,'threadId':_0x37e2b0});}['_remove'](_0x172a5d){return this['stopListening'](_0x172a5d),_0x172a5d['destroy'](),this['comments']['remove'](_0x172a5d);}['_findOptimalIndex'](_0x40c713){const _0x43550a=this['comments']['find'](_0x1de553=>new Date(_0x1de553['authoredAt'])['getTime']()>new Date(_0x40c713['authoredAt'])['getTime']());return _0x43550a?this['comments']['getIndex'](_0x43550a):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x5ba153(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x4dc95b,_0x4e90b8){super();const _0x3d7dae=_0x4dc95b['context']['plugins']['get'](it)['me'],_0x17e125=_0x4dc95b['getCommentThread'](_0x4e90b8['threadId']),_0x324737=0x0===_0x17e125['comments']['length'],_0x2e6a48=_0x3d7dae===_0x4e90b8['author'];this['id']=_0x4e90b8['id'],this['threadId']=_0x4e90b8['threadId'],this['author']=_0x4e90b8['author'],this['creator']=_0x4e90b8['creator'],this['isExternal']=Boolean(_0x4e90b8['attributes']&&_0x4e90b8['attributes']['@external']),this['set']('content',_0x4e90b8['content']),this['createdAt']=_0x4e90b8['createdAt']||new Date(),this['set']('authoredAt',_0x4e90b8['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x17e125,'resolvedAt'),this['set']('attributes',_0x4e90b8['attributes']||{}),this['bind']('isEditable')['to'](_0x4dc95b,'_permissions',()=>{const _0x3cd03b=_0x4dc95b['getPermissions'](_0x17e125['channelId'])['write'],_0x3a85e0=_0x4dc95b['getPermissions'](_0x17e125['channelId'])['modifyAll'];return _0x2e6a48&&_0x3cd03b||!_0x2e6a48&&_0x3a85e0;}),this['bind']('isRemovable')['to'](_0x17e125,'isRemovable',_0x4dc95b,'_permissions',_0x30f72b=>{const _0x261688=_0x4dc95b['getPermissions'](_0x17e125['channelId'])['write'],_0x3fa7c3=_0x4dc95b['getPermissions'](_0x17e125['channelId'])['modifyAll'];return _0x2e6a48&&_0x261688||_0x30f72b&&_0x324737||!_0x2e6a48&&_0x3fa7c3&&!_0x324737;}),this['bind']('isReadOnly')['to'](_0x17e125,'isReadOnly'),this['_repository']=_0x4dc95b;}get['weight'](){return Math['max'](function(_0x2a3ce4){const _0x3cd8d0=document['createElement']('div');return _0x3cd8d0['innerHTML']=_0x2a3ce4,_0x3cd8d0['textContent']['length'];}(this['content']),0xc8);}['update'](_0x5ace4b){const {threadId:_0x378bda,id:_0x4f83a3}=this;if(!this['_repository']['hasCommentThread'](_0x378bda))throw new _0x3ac78d('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x436915}=this['_repository']['getCommentThread'](_0x378bda);this['_repository']['fire'](Nt('updateComment',_0x436915,_0x378bda),{'channelId':_0x436915,'threadId':_0x378bda,'commentId':_0x4f83a3,..._0x5ace4b});}['setAttribute'](_0x2f13e2,_0x5527c3){const _0x43bd64=wt(this['attributes']);yt(_0x43bd64,_0x2f13e2,_0x5527c3),this['update']({'attributes':_0x43bd64});}['removeAttribute'](_0x57a17f){const _0x470660=wt(this['attributes']);Ct(_0x470660,_0x57a17f),this['update']({'attributes':_0x470660});}['remove'](_0x4273eb={}){if(!_0x4273eb['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x1ae879,id:_0x302854}=this;if(!this['_repository']['hasCommentThread'](_0x1ae879))throw new _0x3ac78d('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x2a1f69}=this['_repository']['getCommentThread'](_0x1ae879);this['_repository']['fire'](Nt('removeComment',_0x2a1f69,_0x1ae879),{'channelId':_0x2a1f69,'threadId':_0x1ae879,'commentId':_0x302854,..._0x4273eb});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x39568f,..._0x5165d7){for(const _0x2550d3 of _0x5165d7)void 0x0!==_0x2550d3&&(_0x39568f+=':'+String(_0x2550d3));return _0x39568f;}class ot extends _0x55948d{constructor(_0x221931){super(_0x221931),this['set']('hasContent',!0x1);}['refresh'](){const _0x51b63c=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0xe1c5e1 of _0x51b63c['getRanges']())if(this['_hasContent'](_0xe1c5e1))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x4104b6=_0x3fb4be(),ranges:_0x421561,comment:_0x432284}={}){const _0xed6cfc=this['editor']['model'],_0x4e3399=_0x421561??Array['from'](_0xed6cfc['document']['selection']['getRanges']()),_0x54a22d=[];for(const _0x4ee6a5 of _0x4e3399)this['_hasContent'](_0x4ee6a5)&&_0x54a22d['push'](this['_trimToContent'](_0x4ee6a5));if(!_0x54a22d['length'])throw new _0x3ac78d('addcommentthreadcommand-incorrect-ranges',null);_0x432284&&this['_createCommentThread'](_0x4104b6,_0x432284),this['_createMarkersFromRanges'](_0x4104b6,_0x54a22d,!!_0x432284);}['_createMarkersFromRanges'](_0x3bc10f,_0x33a2bf,_0x480da0){this['editor']['model']['change'](_0xa736ca=>{for(const _0x3c1ede of _0x33a2bf){const _0x26b0ce=_0x3fb4be()['substr'](0x1,0x5),_0x57a038='comment:'+_0x3bc10f+':'+_0x26b0ce;_0xa736ca['addMarker'](_0x57a038,{'range':_0x3c1ede,'usingOperation':_0x480da0,'affectsData':_0x480da0});}});}['_createCommentThread'](_0x124956,_0x405480){const _0x1ae691=this['editor']['plugins']['get']('CommentsRepository'),_0x788333=this['editor']['config']['get']('collaboration.channelId'),_0x59b967=this['editor']['plugins']['get']('Users')['me'];if(!_0x59b967)throw new _0x3ac78d('addcommentthreadcommand-user-not-found',null);_0x1ae691['addCommentThread']({'threadId':_0x124956,'channelId':_0x788333,'comments':[{'authorId':_0x59b967['id'],'content':_0x405480,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x2507dc){for(const _0x6e73ce of _0x2507dc['getItems']())if(this['_itemIsContent'](_0x6e73ce))return!0x0;return!0x1;}['_itemIsContent'](_0x1b0685){return _0x1b0685['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x1b0685)&&!_0x1b0685['is']('element','tableCell');}['_trimToContent'](_0x437658){const _0x36ca4b=_0x4d0a11=>!this['_itemIsContent'](_0x4d0a11['item']),_0x25337a=_0x437658['start']['getLastMatchingPosition'](_0x36ca4b),_0x712e6f=_0x437658['end']['getLastMatchingPosition'](_0x36ca4b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x25337a,_0x712e6f);}}class b extends _0xe6feac{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x754e3c){super(_0x754e3c),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0xce9795=this['editor'],_0x2c0c8e=_0xce9795['model']['document']['selection'],_0x41345e=_0x3e5bb0(()=>this['refreshSelectedViews'](),0xa);_0x2c0c8e['on']('change:range',(_0xab3a94,_0x1a6e2f)=>{_0x1a6e2f['directChange']&&(_0x41345e['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0xce9795['editing']['view']['document'],'change:isFocused',(_0x155a07,_0x26e526,_0x4740da)=>{_0x4740da&&_0x41345e();}),this['listenTo'](_0xce9795['ui']['focusTracker'],'change:isFocused',(_0x3b6550,_0x3de2e8,_0x44f596)=>{_0x44f596||this['fire']('blur',{'isAnnotationTracked':_0x2e3c08=>this['_editorAnnotationsData']['has'](_0x2e3c08['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x42fe6e){if(this['_editorAnnotations']['has'](_0x42fe6e['view']))return;this['_editorAnnotations']['add'](_0x42fe6e['view']),this['editor']['ui']['focusTracker']['add'](_0x42fe6e['view']['element']);const _0x177b1a=this['editor']['plugins']['get'](y);this['listenTo'](_0x177b1a['collection'],'remove',(_0x1e4dca,_0x267c9c)=>{this['editor']['ui']['focusTracker']['remove'](_0x267c9c['view']['element']),this['_editorAnnotations']['delete'](_0x267c9c['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x3ff884){if('function'!=typeof _0x3ff884)throw new _0x3ac78d('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x3ff884);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x132549,annotations:_0x6be3c8}){const _0x584137=[],_0x2db868=this['editor']['model']['document']['selection'],_0x201921=Array['from'](_0x2db868['getRanges']());for(const [_0x3cb423,_0x125dbd]of this['_editorAnnotationsData']){const _0x182787=_0x318e80(_0x125dbd),_0x3e30eb=_0x6be3c8['getByInnerView'](_0x3cb423);_0x182787&&_0x3e30eb&&_0x584137['push']({'annotation':_0x3e30eb,'range':_0x182787});}function _0x318e80(_0x8dae2){for(const _0x48ce1e of _0x8dae2)for(const _0x53d831 of _0x201921)if(_0x48ce1e['containsRange'](_0x53d831,!_0x2db868['isCollapsed']))return _0x48ce1e;return null;}return _0x584137['sort']((_0x37f5c8,_0x4c1604)=>{const _0x3da50f=_0x37f5c8['range'],_0x1df246=_0x4c1604['range'];if(!_0x3da50f['isEqual'](_0x1df246)){if(_0x3da50f['containsRange'](_0x1df246,!0x0))return 0x1;if(_0x1df246['containsRange'](_0x3da50f,!0x0))return-0x1;}return _0x37f5c8['annotation']==_0x132549?-0x1:_0x4c1604['annotation']==_0x132549?0x1:0x0;})['map'](_0x3079b5=>_0x3079b5['annotation']);}get['_editorAnnotationsData'](){const _0x5e18c9=new Map();for(const _0x1026b6 of Array['from'](this['_dataCollectors']))for(const [_0x24ca6c,_0x2f28b3]of _0x1026b6())_0x5e18c9['set'](_0x24ca6c,_0x2f28b3);return _0x5e18c9;}}class st extends _0xe6feac{['afterInit'](){const _0xef36dc=this['editor'];if(!_0xef36dc['plugins']['has']('RestrictedEditingModeEditing'))return;_0xef36dc['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0xe6feac{constructor(_0x3e0ef1){super(_0x3e0ef1),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x5709e1=this['editor'],_0x3c290e=_0x5709e1['commands']['get']('importWord'),_0x2d52ef=_0x5709e1['plugins']['get'](it);_0x3c290e&&(_0x3c290e['on']('execute',(_0x21b577,[,_0x5d4130])=>{_0x5d4130['collaboration_features']={'comments':!0x0,'user_id':_0x2d52ef['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3c290e,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x2d0188,_0x907017){const {comment_threads:_0x23821f}=_0x907017;_0x23821f&&_0x23821f['forEach'](({thread_id:_0x456301,comments:_0x2fd50d,is_resolved:_0x39e507})=>{const _0x1770de=new Date(),_0x1a1344=_0x2fd50d['map'](({author:_0x30c702,content:_0x3053dc,created_at:_0x3d18ab})=>({'content':_0x3053dc,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x1770de,'attributes':{'@external':{'authorName':_0x30c702,'createdAt':_0x3d18ab?new Date(_0x3d18ab):new Date(),'source':'importWord'}}})),_0x2e4efa=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x2e4efa,'threadId':_0x456301,'comments':_0x1a1344,'resolvedAt':_0x39e507?_0x1770de:null});});}}class at extends _0xe6feac{constructor(_0x22a38d){super(_0x22a38d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x324fa7=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x324fa7,'contentInsertion',(_0x3678da,_0x38b68b)=>this['_removeMarkersWithoutThreads'](_0x38b68b['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4b07e6){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4b07e6;const _0x7d9d20=this['editor']['plugins']['get']('CommentsRepository');for(const _0x56d529 of _0x4b07e6['keys']()){const [_0xeb1c9d,_0x3a0b68]=_0x56d529['split'](':');'comment'!=_0xeb1c9d||_0x7d9d20['hasCommentThread'](_0x3a0b68)||_0x4b07e6['delete'](_0x56d529);}return _0x4b07e6;}['_registerMarkerInClipboardPipeline'](){const _0x23a4cd=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2188ac=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2188ac&&_0x23a4cd['_registerMarkerToCopy']('comment',_0x2188ac);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x384fd4){switch(_0x384fd4){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x124692){const _0x261a5c=_0x124692['split'](':');return{'group':_0x261a5c[0x0],'id':_0x261a5c[0x1],'part':_0x261a5c[0x2]};}class ut extends _0xe6feac{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x33cf14,_0x1926c3)=>{if(!_0x1926c3['options']['showCommentHighlights'])return null;if(_0x1926c3['options']['ignoreResolvedComments']){const {id:_0x14b710}=ft(_0x33cf14['markerName']),_0x51b53b=this['editor']['plugins']['get'](o);if(_0x51b53b['getCommentThread'](_0x14b710)?.['isResolved']&&_0x33cf14['item'])return _0x1926c3['consumable']['consume'](_0x33cf14['item'],'addMarker:'+_0x33cf14['markerName']),_0x1926c3['consumable']['consume'](_0x33cf14['item'],'removeMarker:'+_0x33cf14['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xe390ba=>{_0xe390ba['on']('addMarker:comment',(_0x13458f,_0x9a8ce0,_0x113df3)=>{if(!_0x113df3['options']['showCommentHighlights'])return;const _0x4264cc=_0x9a8ce0['item'];if(!_0x4264cc)return;const _0xe6f87=_0x113df3['mapper']['toViewElement'](_0x4264cc);this['editor']['model']['schema']['isObject'](_0x4264cc)&&_0xe6f87&&!_0xe6f87['getCustomProperty']('widget')&&_0xe6f87['is']('containerElement')&&_0x2e4bc2(_0xe6f87,_0x113df3['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x31e55f,{writer:_0x1c6431,options:_0x686b35})=>{if(!_0x686b35['showCommentHighlights'])return null;const _0x34fcc8=_0x1c6431['createContainerElement']('div'),_0x44d020=_0x1c6431['createEmptyElement']('hr');return _0x1c6431['addClass']('ck-horizontal-line',_0x34fcc8),_0x1c6431['insert'](_0x1c6431['createPositionAt'](_0x34fcc8,0x0),_0x44d020),_0x34fcc8;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x3b4fed,{writer:_0x2db407,options:_0x854260})=>{if(!_0x854260['showCommentHighlights'])return null;const _0x1e556f=_0x2db407['createContainerElement']('span'),_0x274cfc=_0x2db407['createEmptyElement']('img');return _0x2db407['addClass']('image-inline',_0x1e556f),_0x2db407['insert'](_0x2db407['createPositionAt'](_0x1e556f,0x0),_0x274cfc),_0x1e556f;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2a5794,{writer:_0x2b732e,options:_0x297784})=>{if(_0x297784['showCommentHighlights'])return _0x2b732e['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3a65b8,_0xda98bd,_0x5a3d5e)=>{_0x5a3d5e['options']['showCommentHighlights']&&_0x3a65b8['stop']();},{'priority':'high'});}}class r extends _0xe6feac{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5daf33){super(_0x5daf33),this['set']('isThreadsLoadingPaused',!0x0),_0x5daf33['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x14242e,_0x2227aa,_0x482a02,_0x1ac077)=>{const _0x41b561=_0x5daf33['plugins']['get'](o),_0x5e5d85=_0x482a02?ft(_0x482a02)['id']:null;_0x5daf33['model']['change'](()=>{if(_0x5e5d85){const _0x29d5da=this['getAllMarkersForId'](_0x5e5d85);for(const _0x3a2ddf of _0x29d5da)_0x5daf33['editing']['reconvertMarker'](_0x3a2ddf);}if(_0x1ac077){const {id:_0x47fd04}=ft(_0x1ac077),_0x4cd38d=_0x41b561['getCommentThread'](_0x47fd04);if(_0x4cd38d&&_0x4cd38d['unlinkedAt'])return;if(_0x4cd38d&&!_0x4cd38d['isAttached'])return;const _0x128868=this['getAllMarkersForId'](_0x47fd04);for(const _0x53c7c7 of _0x128868)_0x5daf33['editing']['reconvertMarker'](_0x53c7c7);}}),_0x5e5d85&&this['scrollToThreadMarker'](_0x5e5d85);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x168b37=this['editor'],_0x31ade0=_0x168b37['plugins']['get'](o),_0x72db51=_0x168b37['config']['get']('collaboration.channelId'),_0x1ff12c=_0x31ade0['getCommentThreads']()['filter'](_0x34157a=>_0x34157a['channelId']!==_0x72db51);_0x168b37['commands']['add']('addCommentThread',new ot(_0x168b37)),this['listenTo'](_0x168b37,'change:isReadOnly',(_0xd85250,_0x17cf78,_0x59ed15)=>{_0x31ade0['switchReadOnly'](_0x59ed15,_0x168b37['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x31ade0,dt('addCommentThread',_0x72db51),(_0x238525,{threadId:_0x5964cd})=>{const _0x43c60e=this['editor']['plugins']['get'](o)['getCommentThread'](_0x5964cd);_0x43c60e?.['unlinkedAt']&&this['_attachArchivedThread'](_0x5964cd);}),this['listenTo'](_0x31ade0,dt('removeCommentThread',_0x72db51),(_0x498478,{threadId:_0x133e27})=>{_0x168b37['model']['enqueueChange']({'isUndoable':!0x1},_0x48bbba=>{const _0x34e8bf=this['getAllMarkersForId'](_0x133e27);for(const _0x2755e1 of _0x34e8bf)_0x48bbba['removeMarker'](_0x2755e1);});}),this['listenTo'](_0x31ade0,dt('resolveCommentThread',_0x72db51),(_0x31ffea,{threadId:_0xddf52})=>{(this['_reconvertMarkers'](_0xddf52),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xddf52)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x31ade0,dt('reopenCommentThread',_0x72db51),(_0x25d4ec,{threadId:_0x478ba1})=>{this['_reconvertMarkers'](_0x478ba1);},{'priority':'low'}),this['listenTo'](_0x31ade0,dt('addComment',_0x72db51),(_0x44d19f,{threadId:_0x4f42a4,isFromAdapter:_0xa85f60})=>{const _0x365c48=this['getAllMarkersForId'](_0x4f42a4);if(_0xa85f60||0x0==_0x365c48['length']||!_0x31ade0['hasCommentThread'](_0x4f42a4))return;0x1===_0x31ade0['getCommentThread'](_0x4f42a4)['length']&&_0x168b37['model']['enqueueChange']({'isUndoable':!0x1},_0x29bd44=>{for(const _0x4e930c of _0x365c48)_0x29bd44['updateMarker'](_0x4e930c,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x1ff12c);}['afterInit'](){!async function(_0x2501d7){const _0x206ee7=_0x286141([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x56cbf9=0x73460ab3,_0x52f8fa=0x73418a73^_0x56cbf9,_0x47b825=window[_0x286141([0x44,0x61,0x74,0x65])][_0x286141([0x6e,0x6f,0x77])](),_0x215581=_0x2501d7[_0x286141([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26aedb=new window[(_0x286141([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3078f1=>{_0x215581[_0x286141([0x6f,0x6e,0x63,0x65])](_0x286141([0x72,0x65,0x61,0x64,0x79]),_0x3078f1);}),_0x1bdbcd={[_0x286141([0x6b,0x74,0x79])]:_0x286141([0x45,0x43]),[_0x286141([0x75,0x73,0x65])]:_0x286141([0x73,0x69,0x67]),[_0x286141([0x63,0x72,0x76])]:_0x286141([0x50,0x2d,0x32,0x35,0x36]),[_0x286141([0x78])]:_0x286141([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x286141([0x79])]:_0x286141([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x286141([0x61,0x6c,0x67])]:_0x286141([0x45,0x53,0x32,0x35,0x36])},_0x493aaf=_0x215581[_0x286141([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x286141([0x67,0x65,0x74])](_0x286141([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9c62c7(){let _0x7355d1,_0x2d82b4=null,_0x1b5870=null;try{if(_0x493aaf==_0x286141([0x47,0x50,0x4c]))return _0x286141([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7355d1=_0x55567b(),!_0x7355d1)return _0x286141([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7355d1[_0x286141([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b5870=_0x1567b3(_0x7355d1[_0x286141([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7355d1[_0x286141([0x6a,0x74,0x69])])),await _0x5a05ce()?_0x8ddc55()?_0xd7d9dc()?_0x286141([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d905a()?(_0x7355d1[_0x286141([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x286141([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d82b4=_0x236496(_0x286141([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ddf6d()):_0x286141([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x286141([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x286141([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x286141([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd7d9dc(){const _0x3da0f1=[_0x286141([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x286141([0x74,0x72,0x69,0x61,0x6c])][_0x286141([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7355d1[_0x286141([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47b825/0x3e8:0xe10*_0x52f8fa;return _0x7355d1[_0x286141([0x65,0x78,0x70])]<_0x3da0f1;}function _0x8ddc55(){const _0x2e4d05=_0x7355d1[_0x286141([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e4d05)return!0x1;if(_0x2e4d05[_0x286141([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286141([0x2a])))return!0x0;if(_0x2e4d05[_0x286141([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286141([0x43,0x4d,0x54])))return!0x0;if(_0x2e4d05[_0x286141([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286141([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x434fbb())return!0x0;if(_0x2e4d05[_0x286141([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286141([0x52,0x43,0x4d,0x54]))){if(_0x15bc7e())return!0x0;if(_0x50e3ae()||_0x403422())return!0x0;}return!0x1;}function _0x2d905a(){const _0x33fe70=_0x7355d1[_0x286141([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33fe70||0x0==_0x33fe70[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55ee76}=new URL(window[_0x286141([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33fe70[_0x286141([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ee76))return!0x0;const _0x4fec83=_0x55ee76[_0x286141([0x73,0x70,0x6c,0x69,0x74])](_0x286141([0x2e]));return _0x33fe70[_0x286141([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x535685=>_0x535685[_0x286141([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286141([0x2a])))[_0x286141([0x6d,0x61,0x70])](_0xf58551=>_0xf58551[_0x286141([0x73,0x70,0x6c,0x69,0x74])](_0x286141([0x2e])))[_0x286141([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5da7f2=>_0x5da7f2[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4fec83[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x286141([0x6d,0x61,0x70])](_0x3c4fe5=>Array(_0x4fec83[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c4fe5[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x286141([0x66,0x69,0x6c,0x6c])](_0x3c4fe5[0x0]===_0x286141([0x2a])?_0x286141([0x2a]):'')[_0x286141([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c4fe5))[_0x286141([0x73,0x6f,0x6d,0x65])](_0x2eac2=>_0x4fec83[_0x286141([0x65,0x76,0x65,0x72,0x79])]((_0x56d6bc,_0x28a3bc)=>_0x2eac2[_0x28a3bc]===_0x56d6bc||_0x2eac2[_0x28a3bc]===_0x286141([0x2a])));}function _0x4ddf6d(){return _0x2d82b4&&_0x1b5870?new window[(_0x286141([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b7b73,_0x5d4828)=>{_0x2d82b4[_0x286141([0x74,0x68,0x65,0x6e])](_0x4b7b73,_0x5d4828),_0x1b5870[_0x286141([0x74,0x68,0x65,0x6e])](_0x366219=>{_0x366219!=_0x286141([0x56,0x61,0x6c,0x69,0x64])&&_0x4b7b73(_0x366219);},_0x5d4828);}):_0x2d82b4||_0x1b5870||_0x286141([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1567b3(_0x1f5960,_0x140a8f){return new window[(_0x286141([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d514a=>{if(_0x49f104())return _0x1d514a(_0x286141([0x56,0x61,0x6c,0x69,0x64]));_0x7e47bc(),_0x215581[_0x286141([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x286141([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e39f0=!0x1;const _0x309082=_0x3fb4be();function _0x2b6f23(_0xad5803){return!!_0xad5803&&(typeof _0xad5803===_0x286141([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xad5803===_0x286141([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xad5803[_0x286141([0x74,0x68,0x65,0x6e])]===_0x286141([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xad5803[_0x286141([0x63,0x61,0x74,0x63,0x68])]===_0x286141([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4047a3(_0x3dd4b8){_0x3a126f(_0x3dd4b8)[_0x286141([0x74,0x68,0x65,0x6e])](_0x44f188=>{if(!_0x44f188||_0x44f188[_0x286141([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x286141([0x6f,0x6b]))return _0x286141([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4072a0(_0x731631(_0x309082+_0x140a8f))!=_0x44f188[_0x286141([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x286141([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x286141([0x56,0x61,0x6c,0x69,0x64]);})[_0x286141([0x74,0x68,0x65,0x6e])](_0x405be3=>(_0x486edf(),_0x405be3),()=>{const _0xd222b2=_0x1f785d();return null==_0xd222b2?(_0x486edf(),_0x286141([0x56,0x61,0x6c,0x69,0x64])):_0x286141(_0x47b825-_0xd222b2>(0x574a8eb3^_0x56cbf9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x286141([0x74,0x68,0x65,0x6e])](_0x1d514a)[_0x286141([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d514a(_0x286141([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e37d2=0x7370e433^_0x56cbf9;function _0x486edf(){const _0xc6c41a=_0x286141([0x6c,0x6c,0x63,0x74,0x2d])+_0x4072a0(_0x731631(_0x1f5960)),_0x285041=_0x58dc7b(_0x4072a0(window[_0x286141([0x4d,0x61,0x74,0x68])][_0x286141([0x63,0x65,0x69,0x6c])](_0x47b825/_0x3e37d2)));window[_0x286141([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x286141([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc6c41a,_0x285041);}function _0x1f785d(){const _0x40db38=_0x286141([0x6c,0x6c,0x63,0x74,0x2d])+_0x4072a0(_0x731631(_0x1f5960)),_0x12258a=window[_0x286141([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x286141([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40db38);return _0x12258a?window[_0x286141([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58dc7b(_0x12258a),0x10)*_0x3e37d2:null;}function _0x3a126f(_0x300266){return new window[(_0x286141([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30f7db,_0x170d55)=>{_0x300266[_0x286141([0x74,0x68,0x65,0x6e])](_0x30f7db,_0x170d55),window[_0x286141([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x170d55,0x7347de73^_0x56cbf9);});}}_0x215581[_0x286141([0x6f,0x6e])](_0x286141([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x459380,_0x4a870a)=>{if(_0x4a870a[0x0]!=_0x1f5960)return _0x1d514a(_0x286141([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a870a[0x1]={..._0x4a870a[0x1],[_0x286141([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x309082};},{[_0x286141([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x286141([0x68,0x69,0x67,0x68])}),_0x215581[_0x286141([0x6f,0x6e])](_0x286141([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x573141=>{_0x2b6f23(_0x573141[_0x286141([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e39f0=!0x0,_0x4047a3(_0x573141[_0x286141([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x286141([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x286141([0x6c,0x6f,0x77])}),_0x26aedb[_0x286141([0x74,0x68,0x65,0x6e])](()=>{_0x5e39f0||_0x1d514a(_0x286141([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49f104(){return _0x215581[_0x286141([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x286141([0x76,0x69,0x65,0x77])][_0x286141([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x286141([0x61,0x75,0x74,0x6f]);}function _0x7e47bc(){_0x215581[_0x286141([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x286141([0x76,0x69,0x65,0x77])][_0x286141([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x286141([0x61,0x75,0x74,0x6f]);}}function _0x236496(_0x9ed3da){const _0x585e77=[new window[(_0x286141([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42b883=>setTimeout(_0x42b883,0x734f347f^_0x56cbf9)),_0x26aedb[_0x286141([0x74,0x68,0x65,0x6e])](()=>new window[(_0x286141([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28a2f=>{let _0x484ab9=0x0;_0x215581[_0x286141([0x6d,0x6f,0x64,0x65,0x6c])][_0x286141([0x6f,0x6e])](_0x286141([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40c0ca,_0x4b5f23)=>{_0x4b5f23[0x0][_0x286141([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x484ab9++,_0x484ab9==(0x73460f5b^_0x56cbf9)&&(_0x28a2f(),_0x40c0ca[_0x286141([0x6f,0x66,0x66])]());});}))];return window[_0x286141([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x286141([0x72,0x61,0x63,0x65])](_0x585e77)[_0x286141([0x74,0x68,0x65,0x6e])](()=>_0x9ed3da);}async function _0x41bcd8(){await _0x26aedb,_0x215581[_0x286141([0x6d,0x6f,0x64,0x65,0x6c])][_0x286141([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f1299,_0x215581[_0x286141([0x6d,0x6f,0x64,0x65,0x6c])][_0x286141([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f1299,_0x215581[_0x286141([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x286141([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x434fbb(){return window[_0x286141([0x67,0x6c,0x6f,0x62])]&&window[_0x286141([0x67,0x6c,0x6f,0x62])][_0x286141([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x15bc7e(){return _0x31bd4f(_0x286141([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4da77e(_0x286141([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x286141([0x73,0x74,0x61,0x74,0x65])]==_0x286141([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x50e3ae(){return _0x31bd4f(_0x286141([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x403422(){return _0x31bd4f(_0x286141([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5b2835(_0x548d70){const _0x72fc59=_0x2e5c4f();_0x215581[_0x72fc59]=_0x286141([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x548d70,_0x548d70!=_0x286141([0x56,0x61,0x6c,0x69,0x64])&&_0x41bcd8();}function _0x2e5c4f(){const _0x29f9c4=window[_0x286141([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x286141([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x286141([0x6e,0x6f,0x77])]())[_0x286141([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x286141([0x2e]),'');let _0x49fbe7=_0x286141([0x4b]);for(let _0x321f4f=0x0;_0x321f4f<_0x29f9c4[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x321f4f+=0x2){let _0x4d9b2d=window[_0x286141([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29f9c4[_0x286141([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x321f4f,_0x321f4f+0x2));_0x4d9b2d>=_0x206ee7[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d9b2d-=_0x206ee7[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x49fbe7+=_0x206ee7[_0x4d9b2d];}return _0x49fbe7;}function _0x55567b(){const _0x1a2100=_0x493aaf[_0x286141([0x73,0x70,0x6c,0x69,0x74])](_0x286141([0x2e]));if(0x3!=_0x1a2100[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d18a0(_0x1a2100[0x1]);function _0x3d18a0(_0x5a0470){const _0x23a437=_0x24d65a(_0x5a0470);return _0x23a437&&_0x262096()?_0x23a437:null;function _0x262096(){const _0xcd3be1=_0x23a437[_0x286141([0x6a,0x74,0x69])],_0x329d63=window[_0x286141([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcd3be1[_0x286141([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcd3be1[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x293118={..._0x23a437,[_0x286141([0x6a,0x74,0x69])]:_0xcd3be1[_0x286141([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xcd3be1[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x293118[_0x286141([0x76,0x63])],_0x731631(_0x293118)==_0x329d63;}}}async function _0x5a05ce(){let _0x3cecc9=!0x0;try{const _0x14c7d2=_0x493aaf[_0x286141([0x73,0x70,0x6c,0x69,0x74])](_0x286141([0x2e])),[_0x1d696c,_0xc28817,_0x189ac3]=_0x14c7d2;return _0x1bc3d4(_0x1d696c),await _0x243ab4(_0x1d696c,_0xc28817,_0x189ac3),_0x3cecc9;}catch{return!0x1;}function _0x1bc3d4(_0x133045){const _0x50c670=_0x24d65a(_0x133045);_0x50c670&&_0x50c670[_0x286141([0x61,0x6c,0x67])]==_0x286141([0x45,0x53,0x32,0x35,0x36])||(_0x3cecc9=!0x1);}async function _0x243ab4(_0x1f6ff1,_0x5c9e2b,_0x98ad89){const _0x5db70c=window[_0x286141([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x286141([0x66,0x72,0x6f,0x6d])](_0x5c64ed(_0x98ad89),_0xbb4d89=>_0xbb4d89[_0x286141([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b22e4=new window[(_0x286141([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x286141([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f6ff1+_0x286141([0x2e])+_0x5c9e2b),_0x4fc9dc=window[_0x286141([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x286141([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fc9dc)return;const _0x8a3a5a=await _0x4fc9dc[_0x286141([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x286141([0x6a,0x77,0x6b]),_0x1bdbcd,{[_0x286141([0x6e,0x61,0x6d,0x65])]:_0x286141([0x45,0x43,0x44,0x53,0x41]),[_0x286141([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x286141([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x286141([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fc9dc[_0x286141([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x286141([0x6e,0x61,0x6d,0x65])]:_0x286141([0x45,0x43,0x44,0x53,0x41]),[_0x286141([0x68,0x61,0x73,0x68])]:{[_0x286141([0x6e,0x61,0x6d,0x65])]:_0x286141([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8a3a5a,_0x5db70c,_0x4b22e4)||(_0x3cecc9=!0x1);}}function _0x24d65a(_0x58c497){return _0x58c497[_0x286141([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x286141([0x65,0x79]))?JSON[_0x286141([0x70,0x61,0x72,0x73,0x65])](_0x5c64ed(_0x58c497)):null;}function _0x5c64ed(_0x4dbc32){return window[_0x286141([0x61,0x74,0x6f,0x62])](_0x4dbc32[_0x286141([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x286141([0x2b]))[_0x286141([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x286141([0x2f])));}function _0x731631(_0x2db822){let _0x4c776e=0x1505;function _0x1d10e9(_0x3e2e05){for(let _0x5bd630=0x0;_0x5bd630<_0x3e2e05[_0x286141([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bd630++){const _0x27c2ab=_0x3e2e05[_0x286141([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bd630);_0x4c776e=(_0x4c776e<<0x5)+_0x4c776e+_0x27c2ab,_0x4c776e&=_0x4c776e;}}function _0x4335be(_0x5306c2){Array[_0x286141([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5306c2)?_0x5306c2[_0x286141([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4335be):_0x5306c2&&typeof _0x5306c2==_0x286141([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x286141([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5306c2)[_0x286141([0x73,0x6f,0x72,0x74])]()[_0x286141([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x606ec9,_0x4d2893])=>{_0x1d10e9(_0x606ec9),_0x4335be(_0x4d2893);}):_0x1d10e9(window[_0x286141([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5306c2));}return _0x4335be(_0x2db822),_0x4c776e>>>0x0;}function _0x4072a0(_0x26577b){return _0x26577b[_0x286141([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x286141([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x286141([0x30]));}function _0x58dc7b(_0x475a4e){return _0x475a4e[_0x286141([0x73,0x70,0x6c,0x69,0x74])]('')[_0x286141([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x286141([0x6a,0x6f,0x69,0x6e])]('');}function _0x31bd4f(_0x3a0c69){return _0x215581[_0x286141([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x286141([0x68,0x61,0x73])](_0x3a0c69);}function _0x4da77e(_0x3b07f6){return _0x215581[_0x286141([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x286141([0x67,0x65,0x74])](_0x3b07f6);}function _0x2f1299(){}function _0x286141(_0x5886f4){return _0x5886f4['map'](_0x5887a1=>String['fromCharCode'](_0x5887a1))['join']('');}_0x5b2835(await _0x9c62c7());}(this);}['destroy'](){const _0x50d73d=this['editor']['plugins']['get'](o),_0x10db12=this['editor']['config']['get']('collaboration.channelId');for(const _0x4811ab of _0x50d73d['getCommentThreads']({'channelId':_0x10db12}))_0x50d73d['_detachCommentThread'](_0x4811ab['id']),_0x50d73d['_threads']['delete'](_0x4811ab['id']);super['destroy']();}['hasMarkerForId'](_0x49e010){return this['getAllMarkersForId'](_0x49e010)['length']>0x0;}['getAllMarkersForId'](_0x4d3989){const _0x2ec811=[];for(const _0x270629 of this['editor']['model']['markers'])_0x270629['name']['startsWith']('comment:'+_0x4d3989)&&_0x2ec811['push'](_0x270629);return _0x2ec811;}['scrollToThreadMarker'](_0x18b7c4){setTimeout(()=>{const _0x4a6a1d=this['_getTargetForId'](_0x18b7c4);if(!_0x4a6a1d)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x18b7c4&&nt({'target':_0x4a6a1d[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x2d6b60){this['editor']['model']['change'](()=>{for(const _0xf576fb of this['getAllMarkersForId'](_0x2d6b60))this['editor']['editing']['reconvertMarker'](_0xf576fb);});}['_attachArchivedThread'](_0x3d479f){const _0x27ed03=this['editor']['plugins']['get'](o),_0x32e34c=this['editor']['plugins']['get'](b),_0x381d4c=_0x27ed03['getCommentThread'](_0x3d479f);if(!_0x381d4c['isAttached']){const _0xb3d48f=_0x381d4c['attachTo'](()=>this['_getTargetForId'](_0x381d4c['id']));_0x32e34c['registerAnnotation'](_0xb3d48f),_0x381d4c['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0xfcdab2=this['editor'],_0x3ff54c=_0xfcdab2['plugins']['get'](it);_0xfcdab2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4867ff,_0x150ebd)=>{const {id:_0x164f31}=ft(_0x4867ff['markerName']),_0x5ed27c=_0xfcdab2['plugins']['get'](o)['getCommentThread'](_0x164f31),_0x1e3846=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x164f31;let _0x38f651;if(_0x5ed27c&&_0x5ed27c['isResolved']&&!_0x1e3846&&_0x4867ff['item'])return _0x150ebd['consumable']['consume'](_0x4867ff['item'],'addMarker:'+_0x4867ff['markerName']),_0x150ebd['consumable']['consume'](_0x4867ff['item'],'removeMarker:'+_0x4867ff['markerName']),null;const _0x2e9fc1=['ck-comment-marker'];return _0x1e3846&&_0x2e9fc1['push']('ck-comment-marker--active'),_0x38f651=_0x5ed27c?.['length']?_0x5ed27c['comments']['first']['author']['id']:_0x3ff54c['me']['id'],{'classes':_0x2e9fc1,'attributes':{'data-comment':_0x164f31,'data-author-id':_0x38f651}};}}),_0xfcdab2['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x28139d,{options:_0x3ebfd3})=>{if(_0x3ebfd3['showCommentHighlights'])return null;const _0x2a0d9f=_0xfcdab2['plugins']['get'](o),_0x1fd59c=_0xfcdab2['model']['markers']['get'](_0x28139d),{id:_0x4a382a,part:_0x1a7cb5}=ft(_0x28139d);return _0x1fd59c&&!_0x1fd59c['affectsData']||_0x3ebfd3['ignoreResolvedComments']&&_0x2a0d9f['getCommentThread'](_0x4a382a)?.['isResolved']?null:{'group':'comment','name':_0x1a7cb5?_0x4a382a+':'+_0x1a7cb5:_0x4a382a};}}),_0xfcdab2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0xf61146,{writer:_0x18062a})=>_0x18062a['createElement']('$marker',{'data-name':'comment:'+_0xf61146['getAttribute']('id')})}),_0xfcdab2['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3a93f0=this['editor'],_0x13d95b=_0x3a93f0['plugins']['get'](o),_0x34457e=new Set(),_0x5374a2=new Set();_0x3a93f0['model']['document']['registerPostFixer'](_0x56d73c=>{let _0xc1148b=!0x1;for(const {name:_0x3f89b1,data:_0x161adc}of _0x3a93f0['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1aeb38,id:_0x23bcdc}=ft(_0x3f89b1);let _0x3684ae=_0x161adc['newRange'];if('comment'!==_0x1aeb38||!_0x3684ae)continue;const _0x5671af='$graveyard'===_0x3684ae['root']['rootName'];_0x5671af||(_0x3684ae=ht(_0x3684ae,_0x3a93f0['model']),!_0x3684ae||_0x3684ae['isCollapsed']||!_0x161adc['newRange']||_0x3684ae['isEqual'](_0x161adc['newRange']))?_0x3a93f0['model']['hasContent'](_0x3684ae)&&!_0x5671af?this['isThreadsLoadingPaused']?_0x34457e['add'](_0x3f89b1):this['_handleThreadMarker'](_0x3f89b1,_0x23bcdc):(_0x5374a2['add'](_0x3f89b1),_0x34457e['delete'](_0x3f89b1),_0x56d73c['removeMarker'](_0x3f89b1),_0xc1148b=!0x0):(_0x56d73c['updateMarker'](_0x3f89b1,{'range':_0x3684ae}),_0xc1148b=!0x0);}return _0xc1148b;}),this['on']('change:isThreadsLoadingPaused',(_0x234440,_0xc390b7,_0x1e0f69)=>{if(!_0x1e0f69&&_0x34457e['size'])for(const _0x399c96 of _0x34457e){const {id:_0x354e8d}=ft(_0x399c96);_0x34457e['delete'](_0x399c96),_0x3a93f0['model']['markers']['get'](_0x399c96)&&this['_handleThreadMarker'](_0x399c96,_0x354e8d);}}),this['listenTo'](_0x3a93f0['model']['document'],'change',()=>{for(const {name:_0x3d26c3,data:{newRange:_0x1b0254}}of _0x3a93f0['model']['document']['differ']['getChangedMarkers']()){const {group:_0x21e68e,id:_0x421677}=ft(_0x3d26c3);if('comment'!==_0x21e68e)continue;const _0x4a8991=_0x13d95b['getCommentThread'](_0x421677),_0x46fcee=this['hasMarkerForId'](_0x421677);_0x4a8991&&(!_0x4a8991['_hasTargetInContent']&&_0x1b0254&&_0x3a93f0['editing']['view']['once']('render',()=>{const _0x995a4c=_0x3a93f0['plugins']['get'](y),_0x48ddc7=_0x13d95b['_threadToController']['get'](_0x4a8991)['view'];_0x995a4c['getByInnerView'](_0x48ddc7)['refreshVisibility']();},{'priority':'low'}),_0x4a8991['_hasTargetInContent']=_0x46fcee||!!_0x1b0254),_0x1b0254||(_0x5374a2['add'](_0x3d26c3),_0x34457e['delete'](_0x3d26c3));}for(const _0x4ca3cc of _0x5374a2){const {id:_0x1dc884}=ft(_0x4ca3cc),_0x127f68=_0x13d95b['getCommentThread'](_0x1dc884);if(_0x34457e['delete'](_0x4ca3cc),!_0x127f68)continue;const _0xed7945=this['hasMarkerForId'](_0x1dc884);_0xed7945||_0x127f68['isSubmitted']?_0xed7945||_0x127f68['unlinkedAt']||_0x127f68['setUnlinkedAt'](new Date()):_0x127f68['remove']();}_0x5374a2['clear']();});}['_handleInitialThreads'](_0xeeb2f1){_0xeeb2f1['forEach'](_0xe4f7e8=>{_0xe4f7e8['unlinkedAt']&&this['_attachArchivedThread'](_0xe4f7e8['id']);});}['_getTargetForId'](_0x40cdd4){const _0x27e665=this['editor'],_0x54684d=this['getAllMarkersForId'](_0x40cdd4);return et(_0x27e665['editing'],_0x54684d);}['_getTextContext'](_0x19641d){const _0x3a6379=this['getAllMarkersForId'](_0x19641d);let _0x177390='',_0x41f582=!0x1;for(const _0x3d4a05 of _0x3a6379){const _0x10ce19=_0x3d4a05['getRange']();for(const _0x5a8074 of Array['from'](_0x10ce19['getItems']()))_0x5a8074['is']('$textProxy')?(_0x177390&&_0x41f582&&(_0x177390+='\x20',_0x41f582=!0x1),_0x177390+=_0x5a8074['data']):_0x41f582=!0x0;_0x41f582=!0x0;}return _0x177390['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x12263b,_0x1f43f3){const _0x25b6f0=this['editor'],_0x50cacd=_0x25b6f0['plugins']['get'](o);let _0x3ac471=_0x50cacd['getCommentThread'](_0x1f43f3);const _0x4694a6=_0x25b6f0['config']['get']('collaboration.channelId'),_0x408cb5=_0x25b6f0['plugins']['get'](b);if(_0x3ac471&&(_0x3ac471['unlinkedAt']&&_0x3ac471['setUnlinkedAt'](null),_0x3ac471['isAttached']))return _0x3ac471;return!this['getAllMarkersForId'](_0x1f43f3)[0x0]['managedUsingOperations']?_0x25b6f0['editing']['view']['once']('render',()=>{if(_0x50cacd['getCommentThread'](_0x1f43f3))return;const _0x23aefb=_0x25b6f0['plugins']['get'](y);_0x3ac471=_0x50cacd['openNewCommentThread']({'channelId':_0x4694a6,'threadId':_0x1f43f3,'target':()=>this['_getTargetForId'](_0x1f43f3),'context':{'type':'text','value':this['_getTextContext'](_0x1f43f3)}});const _0x5efda0=_0x50cacd['_threadToController']['get'](_0x3ac471)['view'],_0x530b37=_0x23aefb['getByInnerView'](_0x5efda0);_0x530b37&&_0x408cb5['registerAnnotation'](_0x530b37);},{'priority':'low'}):_0x50cacd['fetchCommentThread']({'channelId':_0x4694a6,'threadId':_0x1f43f3})['then'](_0x45c747=>{if('destroyed'!==_0x25b6f0['state']){if(_0x3ac471=_0x45c747,_0x3ac471&&!_0x3ac471['isAttached']){const _0x117d7c=_0x3ac471['attachTo'](()=>this['_getTargetForId'](_0x1f43f3));_0x408cb5['registerAnnotation'](_0x117d7c),_0x3ac471['isResolved']&&this['_reconvertMarkers'](_0x1f43f3);}else{if(!_0x3ac471){const _0xad5ac2=this['getAllMarkersForId'](_0x1f43f3);_0x25b6f0['model']['change'](_0x38a889=>{for(const _0x56a4fa of _0xad5ac2)_0x38a889['removeMarker'](_0x56a4fa);});}}}}),_0x3ac471;}['_handleThreadMarker'](_0x2ae29b,_0x24df4a){const _0x17def4=this['_attachMarkerToThread'](_0x2ae29b,_0x24df4a);_0x17def4&&!_0x17def4['context']&&_0x17def4['setContext']({'type':'text','value':this['_getTextContext'](_0x24df4a)});}['_initAriaMarkerChangeAnnouncements'](){const _0x45ec=this['editor'];rt(_0x45ec['model'],({left:_0x42d6ad,entered:_0x57128e})=>{for(const _0x27db05 of _0x42d6ad)if(mt(_0x27db05)){_0x45ec['ui']['ariaLiveAnnouncer']['announce'](N(_0x45ec['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x19b4d2 of _0x57128e)if(mt(_0x19b4d2)){_0x45ec['ui']['ariaLiveAnnouncer']['announce'](N(_0x45ec['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x5ac6b8)));break;}});}}function dt(_0x1ad53b,_0x27f09f){return _0x27f09f?_0x1ad53b+':'+_0x27f09f:_0x1ad53b;}function ht(_0x42ac82,_0x1b0d7a){const _0x1c14f8=_0x1b0d7a['schema'],_0x3a2502=_0x1b0d7a['createRange'](_0x42ac82['start']);for(const _0x5ed692 of _0x42ac82['getWalker']()){const {type:_0x1aa528,item:_0x464c21,nextPosition:_0x1e3886}=_0x5ed692;if('text'===_0x1aa528||_0x1c14f8['isObject'](_0x464c21)){const _0x58a8b4=_0x1b0d7a['createPositionBefore'](_0x464c21);_0x3a2502['isCollapsed']&&(_0x3a2502['start']=_0x58a8b4),_0x3a2502['end']=_0x1e3886;}}return _0x3a2502;}function mt(_0xef0be6){return'comment'===ft(_0xef0be6['name'])['group'];}class s extends _0xe6feac{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x3a0e5a=this['editor'],_0x3be108=_0x3a0e5a['plugins']['get'](o),_0x206f9c=_0x3a0e5a['plugins']['get'](r),_0x24f857=_0x3a0e5a['plugins']['get'](y),_0x385dc8=_0x3a0e5a['plugins']['get'](b);_0x3a0e5a['ui']['componentFactory']['add']('comment',()=>{const _0xc04ed7=this['_createUIButton'](_0x46ed49);return _0xc04ed7['tooltip']=!0x0,_0xc04ed7;}),_0x3a0e5a['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x1c7cbf)),_0x385dc8['addSourceCollector'](()=>{const _0x541868=[];for(const [_0x356744,_0x3f6031]of _0x3be108['_threadToController']){const _0x62f8eb=_0x206f9c['getAllMarkersForId'](_0x356744['id']),_0x3864e7=_0x62f8eb['map'](_0x38405e=>_0x38405e['getRange']());_0x62f8eb['length']>0x0&&_0x541868['push']([_0x3f6031['view'],_0x3864e7]);}return _0x541868;}),this['listenTo'](_0x24f857,'change:activeAnnotations',(_0x281c1d,_0x44a8c1,_0x287225)=>{const _0x30afd1=Array['from'](_0x287225)['map'](_0x2557b9=>_0x2557b9['innerView'])['find'](_0x39d5fe=>_0x3be108['_viewToController']['has'](_0x39d5fe));if(!_0x30afd1)return void(_0x206f9c['activeMarker']=null);const _0x25c890=_0x3be108['_viewToController']['get'](_0x30afd1)['model']['id'],_0xab9c09='comment:'+_0x25c890;_0x25c890&&_0x206f9c['hasMarkerForId'](_0x25c890)?_0x206f9c['activeMarker']=_0xab9c09:_0x206f9c['activeMarker']&&(_0x206f9c['activeMarker']=null);}),this['listenTo'](_0x3be108,'removeCommentThread',(_0x412129,{threadId:_0x57b153,isFromAdapter:_0x480154})=>{!_0x480154&&_0x3a0e5a['ui']['focusTracker']['isFocused']&&_0x206f9c['hasMarkerForId'](_0x57b153)&&_0x3a0e5a['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3be108,'addComment',(_0x2eef3e,{threadId:_0xb9acd4,isFromAdapter:_0x3152f8})=>{if(_0x3152f8||!_0x206f9c['hasMarkerForId'](_0xb9acd4)||!_0x3be108['hasCommentThread'](_0xb9acd4))return;0x1===_0x3be108['getCommentThread'](_0xb9acd4)['length']&&(_0x3a0e5a['editing']['view']['focus'](),_0x2eef3e['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a4e22=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfb6ec8;for(const _0x354ab8 in _0x5a4e22){const _0x1a136b=_0x354ab8,_0x40d36b=_0x5a4e22[_0x1a136b];if('commentsLicenseKeyValid'==_0x40d36b||'commentsLicenseKeyInvalid'==_0x40d36b||'commentsLicenseKeyExpired'==_0x40d36b||'commentsLicenseKeyDomainLimit'==_0x40d36b||'commentsLicenseKeyNotAllowed'==_0x40d36b||'commentsLicenseKeyEvaluationLimit'==_0x40d36b||'commentsLicenseKeyUsageLimit'==_0x40d36b){delete _0x5a4e22[_0x1a136b],_0xfb6ec8=_0x40d36b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0xfb6ec8&&_0x5a4e22['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0xfb6ec8&&_0x5a4e22['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0xfb6ec8&&_0x5a4e22['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0xfb6ec8&&_0x5a4e22['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0xfb6ec8&&_0x5a4e22['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0xfb6ec8&&_0x5a4e22['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x47b614){const _0x421a1e=this['editor'],_0x3725d0=new _0x47b614(_0x421a1e['locale']),_0x1f463b=_0x421a1e['commands']['get']('addCommentThread');return _0x3725d0['set']({'label':N(_0x421a1e['locale'],'Comment'),'icon':_0xf2b95b}),_0x3725d0['bind']('isEnabled')['to'](_0x1f463b,'isEnabled',_0x1f463b,'hasContent',(_0x19b4b3,_0xe27425)=>_0x19b4b3&&_0xe27425),this['listenTo'](_0x3725d0,'execute',()=>{_0x1f463b['execute']();}),_0x3725d0;}}class i extends _0xe6feac{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x5a2cad){super(_0x5a2cad),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5f4f34,_0x42edbb,_0x53bec8)=>{_0x53bec8?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x44f62b,_0x1beb46]of this['editor']['commands'])_0x1beb46['affectsData']&&'addCommentThread'!==_0x44f62b&&_0x1beb46['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x3023e9=this['editor']['editing']['view']['document'];this['listenTo'](_0x3023e9,'cut',_0x51f813=>_0x51f813['stop'](),{'priority':'highest'}),this['listenTo'](_0x3023e9,'clipboardInput',_0x5c9869=>_0x5c9869['stop'](),{'priority':'highest'}),this['listenTo'](_0x3023e9,'delete',_0x31e96f=>_0x31e96f['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x2ce76d,_0x44d06d]of this['editor']['commands'])_0x44d06d['affectsData']&&'addCommentThread'!==_0x2ce76d&&_0x44d06d['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x347f40{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c16e6){super(_0x5c16e6),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4e3166=this['context']['plugins']['get'](y);this['listenTo'](_0x4e3166,'_activateAnnotation',(_0x16c7ed,_0x4dabcd)=>{for(const _0x375a95 of this['activeUIs']){const _0x449a6e=this['_uis']['get'](_0x375a95);(0x0,this['uisData']['get'](_0x375a95)['filter'])(_0x4dabcd)&&_0x449a6e['setActiveAnnotation'](_0x4dabcd);}}),this['listenTo'](_0x4e3166,'_deactivateAllAnnotations',()=>{for(const _0x2d3b3a of this['activeUIs']){this['_uis']['get'](_0x2d3b3a)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4e3166['_visibleAnnotations'],'add',(_0x55eba7,_0x3c3366)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3c3366);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4f0d1f){return this['activeUIs']['has'](_0x4f0d1f);}['activate'](_0x3e9c0b,_0x5b0bcf=this['defaultFilter']){const _0xe71bee=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x3e9c0b))throw new _0x3ac78d('annotationsuis-missing-ui',this,{'uiName':_0x3e9c0b});this['isActive'](_0x3e9c0b)&&this['deactivate'](_0x3e9c0b),this['activeUIs']['add'](_0x3e9c0b);const _0x426cdb=new S();v({'source':_0xe71bee['_visibleAnnotations'],'target':_0x426cdb,'filter':_0x5b0bcf}),this['uisData']['set'](_0x3e9c0b,{'collection':_0x426cdb,'filter':_0x5b0bcf});const _0x95b68d=this['_uis']['get'](_0x3e9c0b);_0x95b68d['attach'](_0x426cdb),this['listenTo'](_0x95b68d,'change:activeAnnotation',(_0x390b6e,_0x506c84,_0x4a3092,_0x45db23)=>{_0x45db23&&_0xe71bee['_removeActiveAnnotation'](_0x45db23),_0x4a3092&&_0xe71bee['_addActiveAnnotation'](_0x4a3092);});}['deactivate'](_0x1a24c6){if(this['activeUIs']['delete'](_0x1a24c6),!this['_uis']['has'](_0x1a24c6))throw new _0x3ac78d('annotationsuis-missing-ui',this,{'uiName':_0x1a24c6});const _0x4d88df=this['_uis']['get'](_0x1a24c6);_0x4d88df['detach'](),this['stopListening'](_0x4d88df),this['uisData']['get'](_0x1a24c6)['collection']['destroy'](),this['uisData']['delete'](_0x1a24c6);}['switchTo'](_0x2fd32e){if(!this['_uis']['has'](_0x2fd32e))throw new _0x3ac78d('annotationsuis-missing-ui',this,{'uiName':_0x2fd32e});const _0x77a660=this['context']['plugins']['get'](y),_0x5aa422=Array['from'](_0x77a660['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x2fd32e);const _0x13fc86=this['_uis']['get'](_0x2fd32e);_0x13fc86['setActiveAnnotation'](_0x5aa422),_0x13fc86['_setSelectedAnnotations']&&_0x5aa422&&_0x13fc86['_setSelectedAnnotations']([_0x5aa422]);}['deactivateAll'](){for(const _0x25079b of this['activeUIs'])this['deactivate'](_0x25079b);}['register'](_0x774ae5,_0x28bbd9){if(this['_uis']['has'](_0x774ae5))throw new _0x3ac78d('annotationsuis-register-already-registered');if('function'!=typeof _0x28bbd9['attach']||'function'!=typeof _0x28bbd9['detach']||'function'!=typeof _0x28bbd9['setActiveAnnotation'])throw new _0x3ac78d('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x774ae5,_0x28bbd9);}['refilterAnnotations'](){const _0x4bb92c=this['context']['plugins']['get'](y)['collection'],_0x1a3121=new Map(),_0x39c750=Array['from'](this['activeUIs']);for(const _0x3fc2d3 of this['activeUIs']){const _0x1a205a=this['uisData']['get'](_0x3fc2d3)['collection'];for(const _0x3bbb5f of _0x1a205a)_0x1a3121['set'](_0x3bbb5f,_0x3fc2d3);}for(const _0x1209c4 of _0x4bb92c){const _0x5d7904=_0x1a3121['get'](_0x1209c4);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1209c4);const _0x55a5bc=_0x39c750['find'](_0x4bf5da=>this['uisData']['get'](_0x4bf5da)['filter'](_0x1209c4));_0x5d7904!==_0x55a5bc&&(_0x5d7904&&this['uisData']['get'](_0x5d7904)['collection']['remove'](_0x1209c4),_0x55a5bc&&this['uisData']['get'](_0x55a5bc)['collection']['add'](_0x1209c4));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x12a54b){const _0x4d0ce7=[];for(const _0x259754 of this['activeUIs']){(0x0,this['uisData']['get'](_0x259754)['filter'])(_0x12a54b)&&_0x4d0ce7['push'](_0x259754);}if(_0x4d0ce7['length']>0x1)throw new _0x3ac78d('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4d0ce7,'annotationType':_0x12a54b['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4776c3){super(_0x4776c3);const _0x5097cf=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x4eac6f(),this['focusCycler']=new _0x15fa0a({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x5097cf['to']('class')],'style':{'minHeight':_0x5097cf['to']('minHeight',_0x55d050=>'number'==typeof _0x55d050?_i(_0x55d050+0xa):null)},'dir':_0x4776c3['uiLanguageDirection'],'role':'application','aria-label':N(_0x4776c3,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x4776c3,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x51c28e=>{this['_updateItemPositionInFocusables'](_0x51c28e['source']);}),this['list']['forEach'](_0x2725f9=>{this['focusTracker']['add'](_0x2725f9['element']),this['_updateItemPositionInFocusables'](_0x2725f9);}),this['list']['on']('change',(_0x5317b2,_0x30af78)=>{for(const _0xb78b56 of _0x30af78['removed'])this['focusTracker']['remove'](_0xb78b56['element']),this['focusables']['remove'](_0xb78b56);for(const _0x4e47c2 of _0x30af78['added'])this['focusTracker']['add'](_0x4e47c2['element']),this['_updateItemPositionInFocusables'](_0x4e47c2);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x37cb5f){const _0x4d5ef1=this['focusables']['getIndex'](_0x37cb5f);let _0x4ebabc,_0x5b89f9;for(const _0x245b86 of this['focusables'])if(_0x37cb5f['top']<_0x245b86['top']){_0x4ebabc=_0x245b86;break;}if(_0x5b89f9=_0x4ebabc?this['focusables']['getIndex'](_0x4ebabc):this['focusables']['length'],-0x1!==_0x4d5ef1){if(_0x4d5ef1===_0x5b89f9-0x1)return;this['focusables']['remove'](_0x37cb5f),_0x5b89f9=_0x4ebabc?this['focusables']['getIndex'](_0x4ebabc):this['focusables']['length'];}this['focusables']['add'](_0x37cb5f,_0x5b89f9);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x453d25){super(_0x453d25),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x1d7beb,_0x32b0e7)=>_0x1d7beb+_0x32b0e7),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x185162=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x185162['to']('isAnimationDisabled',_0x453934=>_0x453934?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x185162['to']('top',_0xa1a4ed=>Ot(_0xa1a4ed))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x438eee=this['element']['clientHeight'];_0x438eee&&(this['height']=_0x438eee);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x347f40{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3129a4){super(_0x3129a4),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x315897=this['context']['config']['get']('sidebar.container');_0x315897&&this['setContainer'](_0x315897);}['setContainer'](_0x485a28){if(!g(_0x485a28))throw new _0x3ac78d('sidebar-setcontainer-invalid-element');this['container']=_0x485a28;}['_attachToContainer']({viewClass:_0x36da7f='',spaceBetweenItems:_0x4cda19=0x19}={}){if(!g(this['container']))throw new _0x3ac78d('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x36da7f,this['_spaceBetweenItems']=_0x4cda19;}['rearrange']({removedAnnotation:_0x8701b7,previousAnnotation:_0x2af262,nextAnnotation:_0x188317}){const _0x436250=this['getSidebarItemView'](_0x8701b7);this['view']['list']['remove'](_0x436250),this['_destroySidebarItemView'](_0x8701b7),_0x2af262&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2af262)),_0x188317&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x188317)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xc39503,activatedAnnotation:_0x41cb26,disableAnimationOnActivatedAnnotation:_0x58d44f}){if(this['_activeAnnotation']=_0x41cb26,_0xc39503){_0xc39503['isActive']=!0x1;const _0x2bd29d=this['getSidebarItemView'](_0xc39503);_0x2bd29d&&_0x58d44f&&(_0x2bd29d['isAnimationDisabled']=!0x1);}if(_0x41cb26){const _0x1e5c09=this['getSidebarItemView'](_0x41cb26);_0x1e5c09&&(_0x41cb26['isActive']=!0x0,_0x58d44f&&(_0x1e5c09['isAnimationDisabled']=!0x0,_0x1e5c09['top']+=0x1),this['_alignToTargetRect'](_0x1e5c09));}}['_detachFromContainer'](_0x567772){if(this['view']['element']['remove'](),_0x567772){for(const _0x296455 of _0x567772)this['_destroySidebarItemView'](_0x296455);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x55d2ad,_0x3f3ca9){_0x3f3ca9||(_0x3f3ca9=_0x55d2ad['view']);const _0x245c44=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x245c44,_0x55d2ad),this['_annotationToSidebarItemView']['set'](_0x55d2ad,_0x245c44),_0x245c44['content']['add'](_0x3f3ca9),this['listenTo'](_0x55d2ad['view'],'change:targetRect',(_0x569d05,_0x388f5f,_0x4c8527)=>{const _0xaf1b2f=this['_getTargetTop'](_0x55d2ad,_0x4c8527);_0x245c44['_targetTop']!=_0xaf1b2f&&(_0x245c44['_targetTop']=_0xaf1b2f,this['_setItemTop'](_0x245c44,_0xaf1b2f));}),this['listenTo'](_0x245c44,'change:top',()=>{this['_recalculate'](_0x245c44,'top');}),this['listenTo'](_0x245c44,'change:bottom',()=>{this['_recalculate'](_0x245c44,'bottom');}),this['_alignToTargetRect'](_0x245c44);const _0xd15a41=this['_getItemBefore'](_0x245c44);if(_0xd15a41)this['_alignAfterItem'](_0xd15a41,_0x245c44)||this['_alignToTargetRect'](_0x245c44);else this['_alignToTargetRect'](_0x245c44);return this['_updateLastItem'](),this['view']['list']['add'](_0x245c44),_0x245c44;}['_alignForTopChange'](_0x5dea30){if(!_0x5dea30['content']['length'])return;const _0x452701=this['_getItemBefore'](_0x5dea30);if(!_0x452701)return;const _0x5ca2ef=this['_sidebarItemViewToAnnotation']['get'](_0x452701),_0x35cc04=this['_activeAnnotation'];_0x35cc04&&_0x35cc04===_0x5ca2ef?this['_alignAfterItem'](_0x452701,_0x5dea30):this['_alignBeforeItem'](_0x5dea30,_0x452701);}['_alignForBottomChange'](_0x467021){if(!_0x467021['content']['length'])return;const _0x1ac6af=this['_getItemAfter'](_0x467021);if(!_0x1ac6af)return;const _0x2b9da2=this['_sidebarItemViewToAnnotation']['get'](_0x1ac6af),_0x5448b6=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x58084a=this['_activeAnnotation'];_0x58084a&&_0x58084a===_0x2b9da2&&_0x5448b6?(this['_alignBeforeItem'](_0x1ac6af,_0x467021),this['_alignAfterItem'](_0x467021,_0x1ac6af)):_0x58084a&&_0x58084a===_0x2b9da2?this['_alignBeforeItem'](_0x1ac6af,_0x467021):this['_alignAfterItem'](_0x467021,_0x1ac6af);}['_recalculate'](_0x14f52a,_0x174b3e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x486b0a,changedProp:_0x29a030}of this['_recalculateBuffer'])'top'===_0x29a030?this['_alignForTopChange'](_0x486b0a):this['_alignForBottomChange'](_0x486b0a);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x14f52a,'changedProp':_0x174b3e});}['getSidebarItemView'](_0x5b212f){return this['_annotationToSidebarItemView']['get'](_0x5b212f);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x38c36c){const _0x395391=this['getSidebarItemView'](_0x38c36c);this['stopListening'](_0x395391),this['stopListening'](_0x38c36c['view']),_0x395391['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x38c36c),this['_sidebarItemViewToAnnotation']['delete'](_0x395391);}['_createSidebarView'](){const _0x17b5d2=new H(this['context']['locale']);return _0x17b5d2['render'](),this['on']('change:_lastItem',(_0x5693d7,_0x34aa9e,_0xfba89c,_0x4a06fa)=>{_0x4a06fa&&_0x17b5d2['unbind']('minHeight'),_0xfba89c?_0x17b5d2['bind']('minHeight')['to'](_0xfba89c,'bottom'):_0x17b5d2['minHeight']=null;}),_0x17b5d2;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2b9c8e){const _0x27dfc0=this['_sidebarItemViewToAnnotation']['get'](_0x2b9c8e),_0x3fdea6=_0x27dfc0&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x27dfc0)-0x1);return _0x3fdea6&&this['getSidebarItemView'](_0x3fdea6)||null;}['_getItemAfter'](_0x1a25a8){const _0x59e3c7=this['_sidebarItemViewToAnnotation']['get'](_0x1a25a8),_0x573c03=_0x59e3c7&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x59e3c7)+0x1);return _0x573c03&&this['getSidebarItemView'](_0x573c03)||null;}['_alignBeforeItem'](_0x1a39a9,_0x4d8222){_0x1a39a9['updateHeight']();const _0x3c5ffa=G(_0x4d8222['bottom']+this['_spaceBetweenItems'],_0x1a39a9['top']);return!!_0x3c5ffa&&(this['_setItemTop'](_0x4d8222,_0x4d8222['top']-_0x3c5ffa),!0x0);}['_alignAfterItem'](_0xc45286,_0x2a4f59){_0xc45286['updateHeight']();const _0x1c0d32=G(_0xc45286['bottom']+this['_spaceBetweenItems'],_0x2a4f59['top']);return!!_0x1c0d32&&(this['_setItemTop'](_0x2a4f59,_0x2a4f59['top']+_0x1c0d32,!0x1),!0x0);}['_alignToTargetRect'](_0x639a84){const _0x53579c=this['_sidebarItemViewToAnnotation']['get'](_0x639a84);if(!_0x53579c||!_0x53579c['target']||!_0x53579c['targetRect'])return;const _0x49f5d8=this['_getTargetTop'](_0x53579c,_0x53579c['targetRect']);this['_setItemTop'](_0x639a84,_0x49f5d8);}['_getTargetTop'](_0xac1d40,_0x211c17){if(null===_0x211c17)return 0x0;if(_0xac1d40['target']instanceof _0x3d83d0)return _0x211c17['top'];{const _0x43fcf1=new _0x3d83d0(this['view']['element'])['top'];return _0x211c17['top']-_0x43fcf1;}}['_setItemTop'](_0x4bb7ae,_0x17e0fc,_0x53b0c4=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x53b0c4&&(_0x17e0fc=Math['max'](_0x17e0fc,this['_getMaxAvailableTop'](_0x4bb7ae))),_0x4bb7ae['top']=_0x17e0fc;}['_getMaxAvailableTop'](_0x433323){let _0x2b3160=this['_getItemBefore'](_0x433323),_0x77fb06=0x0;for(;_0x2b3160;)_0x2b3160['updateHeight'](),_0x77fb06+=this['_spaceBetweenItems']+_0x2b3160['height'],_0x2b3160=this['_getItemBefore'](_0x2b3160);return _0x77fb06;}}function G(_0x16b89c,_0x330cff){return Math['max'](_0x16b89c-_0x330cff,0x0);}function g(_0x4f8acd){return null!==_0x4f8acd&&'object'==typeof _0x4f8acd&&0x1===_0x4f8acd['nodeType'];}class e extends _0x347f40{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e0fee){super(_0x4e0fee),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x8deec(),this['_refreshPositioningDebounced']=_0x3e5bb0(()=>{_0x4e0fee['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0xa1e3be=this['context']['plugins']['get'](j),_0x20ef19=this['context']['plugins']['get'](z);_0xa1e3be['register']('wideSidebar',this),_0x20ef19['container']&&_0xa1e3be['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x24d7b4){if(_0x24d7b4===this['activeAnnotation'])return;const _0x45c492=this['context']['plugins']['get'](z);_0x45c492['_activeAnnotation']=_0x24d7b4;const _0x280228=this['activeAnnotation'];_0x45c492['refresh']({'blurredAnnotation':_0x280228,'activatedAnnotation':_0x24d7b4}),this['activeAnnotation']=_0x24d7b4;}['attach'](_0x29f05b){this['annotations']=_0x29f05b;const _0x197626=this['context']['plugins']['get'](z);if(_0x197626['_annotations']=_0x29f05b,this['isAttached'])throw new _0x3ac78d('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x197626,'set:container',()=>{this['detach'](),this['listenTo'](_0x197626,'change:container',_0x19c3f5=>{_0x19c3f5['off'](),this['attach'](_0x29f05b);});}),_0x197626['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x211623=_0x3b8fcc=>{_0x3b8fcc['updateTargetRect'](),_0x197626['addAnnotation'](_0x3b8fcc);};for(const _0xbb594b of _0x29f05b)_0x211623(_0xbb594b);this['listenTo'](_0x29f05b,'add',(_0x56ff1c,_0x36cc3e)=>{_0x211623(_0x36cc3e);}),this['listenTo'](_0x29f05b,'remove',(_0xc48211,_0x55652a,_0x5221d3)=>{_0x197626['rearrange']({'removedAnnotation':_0x55652a,'previousAnnotation':_0x29f05b['get'](_0x5221d3-0x1),'nextAnnotation':_0x29f05b['get'](_0x5221d3+0x1)}),_0x55652a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x29f05b,'focus',(_0x5cfbc2,_0x48fe5a)=>{this['setActiveAnnotation'](_0x48fe5a);}),this['listenTo'](_0x29f05b,'blur',()=>{this['setActiveAnnotation'](null);});const _0xc80736=this['context']instanceof _0x4197fa?this['context']['editors']:new _0x8deec([this['context']]);for(const _0x3585b9 of _0xc80736)this['_integrateWithEditorAnnotations'](_0x3585b9);this['listenTo'](_0xc80736,'add',(_0x4a2c3c,_0x106bc5)=>{this['listenTo'](_0x106bc5,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x106bc5);});}),this['listenTo'](_0xc80736,'remove',(_0x594374,_0x5436d4)=>{_0x5436d4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5436d4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3ac78d('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x41c184=this['context']['plugins']['get'](z);_0x41c184['_detachFromContainer'](this['annotations']),this['stopListening'](_0x41c184),this['stopListening'](this['annotations']),this['context']instanceof _0x4197fa&&this['stopListening'](this['context']['editors']);for(const _0x416cf7 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x416cf7);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x30ed9a){if(!_0x30ed9a['plugins']['has']('EditorAnnotations'))return;const _0x2479e8=_0x30ed9a['plugins']['get']('EditorAnnotations'),_0x80175=()=>{const _0x46eb7f=_0x2479e8['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x46eb7f[0x0]||null);};this['listenTo'](_0x2479e8,'refresh',_0x80175),this['listenTo'](_0x2479e8,'blur',(_0x2105ff,{isAnnotationTracked:_0x32fbdc})=>{this['activeAnnotation']&&_0x32fbdc(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2479e8,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x25061e=>{_0x2479e8['hasDomSelection']()&&(_0x80175(),_0x25061e['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2479e8);}['_destroyEditorAnnotationsIntegration'](_0xb77a15){this['stopListening'](_0xb77a15),this['_editorAnnotations']['remove'](_0xb77a15);}}class C extends _0x46ed49{['counterView'];constructor(_0x268573){super(_0x268573);const _0x408f10=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x560037,_0x3f8d2e)=>_0x560037?'...':_0x3f8d2e['toString']()),this['set']('annotationType',''),this['icon']=_0xf2b95b,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x408f10['to']('annotationType',_0x6d11a=>'ck-annotation-counter__badge--'+_0x6d11a),_0x408f10['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x408f10['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x347f40{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7f38b8){super(_0x7f38b8),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x13a4e0())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x8deec(),this['_refreshPositioningDebounced']=_0x3e5bb0(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x56aab2(this['context']['locale']),this['balloonPanelView']=new _0x542148(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x13b5ac){this['annotations']=_0x13b5ac;const _0x31ad5d=this['context']['plugins']['get'](z),_0xc05e8b=this['balloonPanelView'];if(_0x31ad5d['_annotations']=_0x13b5ac,this['isAttached'])throw new _0x3ac78d('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x31ad5d,'set:container',()=>{this['detach'](),this['listenTo'](_0x31ad5d,'change:container',_0x4dfdf1=>{_0x4dfdf1['off'](),this['attach'](_0x13b5ac);});}),_0x31ad5d['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2a7db8=_0x184ffb=>{const _0x317bc1=new C(this['context']['locale']);_0x31ad5d['addAnnotation'](_0x184ffb,_0x317bc1),this['_annotationToNarrowView']['set'](_0x184ffb,_0x317bc1),_0x317bc1['bind']('isDirty','annotationType','number')['to'](_0x184ffb['view'],'isDirty','type','length'),_0x317bc1['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0xc05e8b['content']['first']!==_0x184ffb['view']?(this['_showBalloon'](_0x184ffb),_0x184ffb['view']['element']['focus'](),this['setActiveAnnotation'](_0x184ffb)):this['setActiveAnnotation'](null);});};for(const _0x30caf3 of _0x13b5ac)_0x2a7db8(_0x30caf3);this['listenTo'](_0x13b5ac,'add',(_0x2dc734,_0xe8bf4f)=>{_0x2a7db8(_0xe8bf4f);}),this['listenTo'](_0x13b5ac,'remove',(_0x2bd862,_0x993516,_0x2ffa9c)=>{this['_annotationToNarrowView']['get'](_0x993516)['destroy'](),this['_annotationToNarrowView']['delete'](_0x993516),_0x31ad5d['rearrange']({'removedAnnotation':_0x993516,'previousAnnotation':_0x13b5ac['get'](_0x2ffa9c-0x1),'nextAnnotation':_0x13b5ac['get'](_0x2ffa9c+0x1)}),_0x993516===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x13b5ac,'focus',(_0x592a4e,_0x1493bd)=>{this['setActiveAnnotation'](_0x1493bd);}),this['listenTo'](_0x13b5ac,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x2ed7f3,_0x56ec0b)=>{_0x56ec0b['keyCode']===_0x1981c3['esc']&&_0xc05e8b['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0xc05e8b['content']['first']),this['_hideBalloon'](),_0x56ec0b['stopPropagation'](),_0x56ec0b['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x562b8a,_0x3e607a)=>{const _0x3fe32b=_0x3e607a['target'];_0xc05e8b['isVisible']&&_0xc05e8b['element']['contains'](_0x3fe32b)||_0x31ad5d['view']['element']['contains'](_0x3fe32b)||_0x562b8a['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x2ec977=>_0x2ec977['contains'](_0x3fe32b))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2a5aa7=this['context']instanceof _0x4197fa?this['context']['editors']:new _0x8deec([this['context']]);for(const _0x3de574 of _0x2a5aa7)this['_integrateWithEditorAnnotations'](_0x3de574);this['listenTo'](_0x2a5aa7,'add',(_0x233791,_0xcb84a8)=>{this['listenTo'](_0xcb84a8,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xcb84a8);});}),this['listenTo'](_0x2a5aa7,'remove',(_0x4c3411,_0x518190)=>{_0x518190['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x518190['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x50f905){if(_0x50f905===this['activeAnnotation'])return;const _0x2c5549=this['context']['plugins']['get'](z);if(_0x2c5549['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x50f905,'disableAnimationOnActivatedAnnotation':!0x0}),_0x50f905)_0x2c5549['getSidebarItemView'](_0x50f905)?this['_showBalloon'](_0x50f905):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x50f905;}['detach'](){if(!this['isAttached'])throw new _0x3ac78d('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x630605=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x121e83=>_0x121e83['destroy']()),this['_annotationToNarrowView']['clear'](),_0x630605['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4197fa&&this['stopListening'](this['context']['editors']);for(const _0x22485e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x22485e);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x41926f){if(!_0x41926f['plugins']['has']('EditorAnnotations'))return;const _0x1398bf=_0x41926f['plugins']['get']('EditorAnnotations'),_0x18de22=this['context']['plugins']['get'](z),_0x339899=this['annotations'],_0xcc54e5=this['balloonPanelView'],_0x541649=()=>{const _0x127e78=_0x1398bf['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x127e78),this['setActiveAnnotation'](_0x127e78[0x0]||null);};this['listenTo'](_0x1398bf,'refresh',_0x541649),this['listenTo'](_0x1398bf,'blur',(_0x3b9305,{isAnnotationTracked:_0x5747c2})=>{this['activeAnnotation']&&_0x5747c2(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1398bf,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x339899,'blur',_0x543876=>{_0x1398bf['hasDomSelection']()&&_0x543876['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1908cf,_0x4e022c)=>{const _0x58ed71=_0x4e022c['target'];_0xcc54e5['isVisible']&&_0xcc54e5['element']['contains'](_0x58ed71)||_0x18de22['view']['element']['contains'](_0x58ed71)||this['activeAnnotation']&&_0x1398bf['hasDomSelection']()&&(_0x541649(),_0x1908cf['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1398bf);}['_destroyEditorAnnotationsIntegration'](_0x422316){_0x422316&&(this['stopListening'](_0x422316),this['_editorAnnotations']['remove'](_0x422316));}['_setSelectedAnnotations'](_0x2352ef){for(const _0x267e5c of this['_selectedAnnotations'])_0x2352ef['includes'](_0x267e5c)||this['_manuallyClosedAnnotationViews']['delete'](_0x267e5c['view']);this['_selectedAnnotations']=_0x2352ef;}['_refreshPositioning'](){const _0xf2f947=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0xf2f947['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x2e6350){if(this['_manuallyClosedAnnotationViews']['has'](_0x2e6350['view']))return;const _0x1d7838=this['balloonPanelView']['content']['first'];_0x1d7838!==_0x2e6350['view']?(_0x1d7838&&this['_detachListeners'](_0x1d7838),this['_attachListeners'](_0x2e6350['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x2e6350['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x3e86a9=this['balloonPanelView']['content']['first'],_0x37a3f6=_0x3e86a9&&this['annotations']['getByView'](_0x3e86a9);if(!_0x37a3f6||!this['_annotationToNarrowView']['has'](_0x37a3f6))return;const _0x1329be=this['_annotationToNarrowView']['get'](_0x37a3f6)['element'],_0x22741f=(function(){const _0x4520b9=_0x542148['defaultPositions'];return[_0x4520b9['southArrowNorthEast'],_0x4520b9['northArrowSouthEast'],_0x4520b9['southArrowNorth'],_0x4520b9['northArrowSouth'],_0x4520b9['southArrowNorthWest'],_0x4520b9['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x1329be,'positions':_0x22741f});}['_hideBalloon'](){const _0x498596=this['balloonPanelView'],_0x22e07a=_0x498596['content']['first'];_0x22e07a&&(this['_detachListeners'](_0x22e07a),_0x498596['unpin'](),_0x498596['content']['clear']());}['_attachListeners'](_0x19543d){this['listenTo'](_0x19543d,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x19543d,'Esc',(_0x5b9f97,_0x474125)=>{this['_manuallyClosedAnnotationViews']['add'](_0x19543d),this['_hideBalloon'](),_0x474125();});}['_detachListeners'](_0x232f32){this['stopListening'](_0x232f32);}}class c extends _0xe6feac{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x404a8a,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d1e54){super(_0x3d1e54),_0x3d1e54['editing']['view']['addObserver'](_0x11751a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x3d1e54['plugins']['get'](_0x404a8a),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x3e5bb0(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x33a39a=this['editor']['plugins']['get'](j);_0x33a39a['context']===this['editor']&&(_0x33a39a['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x5b96a5,_0x1dba22)=>{const _0x50c61c=this['_balloon'];if(this['isAttached']&&_0x50c61c['visibleView']){const _0x4cc135=this['annotations']['getByView'](_0x50c61c['visibleView']);_0x4cc135&&this['_closeAnnotation'](_0x4cc135),_0x1dba22();}}));}['afterInit'](){const _0x548c2e=this['editor']['plugins']['get'](j);_0x548c2e['context']===this['editor']&&(_0x548c2e['hasActive']()||_0x548c2e['switchTo']('inline'));}['setActiveAnnotation'](_0x4e3d2d){_0x4e3d2d!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4e3d2d&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4e3d2d)&&this['_addAnnotationToBalloon'](_0x4e3d2d,!0x0),_0x4e3d2d['isActive']=!0x0),_0x4e3d2d||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4e3d2d);}['attach'](_0xba9c5f){this['annotations']=_0xba9c5f;const _0x2a40c4=this['editor']['plugins']['get'](j),_0x35efca=this['_balloon'];if(this['isAttached'])throw new _0x3ac78d('inlineannotations-attach-already-attached',this);if(_0x2a40c4['context']!==this['editor'])throw new _0x3ac78d('inlineannotations-not-allowed-with-context',this);const _0x3c1eca=this['editor']['plugins']['get'](b);this['listenTo'](_0x3c1eca,'refresh',()=>{const _0x531439=_0x3c1eca['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x3425f1,_0x24d80b;!this['_forceRefresh']&&(_0x3425f1=_0x531439,_0x24d80b=this['_selectedAnnotations'],_0x3425f1['length']===_0x24d80b['length']&&_0x3425f1['every'](_0x27c8c5=>_0x24d80b['includes'](_0x27c8c5)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x531439),this['setActiveAnnotation'](_0x531439[0x0]||null));}),this['listenTo'](_0x3c1eca,'blur',(_0x293f47,{isAnnotationTracked:_0x193f30})=>{this['activeAnnotation']&&_0x193f30(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3c1eca,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1db427,_0x3a64b8,_0x3546e7)=>{_0x3546e7||this['setActiveAnnotation'](null);}),this['listenTo'](_0xba9c5f,'remove',(_0x4a54c4,_0x2ae6c7)=>{this['_removeAnnotationFromBalloon'](_0x2ae6c7),_0x2ae6c7===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x35efca,'change:visibleView',(_0x4e40d6,_0x58be23,_0x1ad422,_0x277a53)=>{_0x277a53&&this['stopListening'](_0x277a53);const _0x121d34=_0xba9c5f['getByView'](_0x1ad422);_0x1ad422&&_0x121d34&&(this['listenTo'](_0x1ad422,'change:height',()=>{_0x35efca['updatePosition']();}),this['listenTo'](_0x1ad422,'Esc',()=>{this['_closeAnnotation'](_0x121d34),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x121d34&&this['setActiveAnnotation'](_0x121d34));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x35efca['visibleView']&&(_0xba9c5f['getByView'](_0x35efca['visibleView'])&&_0x35efca['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x3ac78d('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x2641e5 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x2641e5);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x2b1bb2){for(const _0x2021cb of this['_selectedAnnotations'])_0x2b1bb2['includes'](_0x2021cb)||this['_manuallyClosed']['delete'](_0x2021cb);for(const _0x7d479b of this['annotations'])_0x2b1bb2['includes'](_0x7d479b)||this['_removeAnnotationFromBalloon'](_0x7d479b);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x49d648 of _0x2b1bb2)this['_addAnnotationToBalloon'](_0x49d648);}this['_selectedAnnotations']=_0x2b1bb2;}['_addAnnotationToBalloon'](_0x5ef2cc,_0x2a1d6d=!0x1){this['_manuallyClosed']['has'](_0x5ef2cc)||(this['_addedAnnotations']['has'](_0x5ef2cc)||this['_balloon']['hasView'](_0x5ef2cc['view'])||(this['_addedAnnotations']['add'](_0x5ef2cc),this['_balloon']['add']({'stackId':_0x5ef2cc['view']['id'],'view':_0x5ef2cc['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5ef2cc)}})),_0x2a1d6d&&this['_balloon']['showStack'](_0x5ef2cc['view']['id']));}['_getBalloonTargetForAnnotation'](_0x571e54){const _0x2e7d68=_0x571e54['target'],_0x14b926=this['editor']['editing']['view'],_0x12236d=_0x14b926['document']['selection']['getFirstRange'](),_0x1450c7=_0x14b926['domConverter']['viewRangeToDom'](_0x12236d);if(_0x1450c7['collapse'](!0x0),_0x2e7d68){if(_0x2e7d68 instanceof _0x3d83d0)return _0x2e7d68;let _0x2b976d=[];for(const _0x273e71 of _0x2e7d68)_0x2b976d['push'](...F(_0x273e71['getClientRects']()));_0x2b976d=function(_0x30cb01){const _0x154407=[];let _0x149201=_0x30cb01[0x0];for(let _0x303503=0x1;_0x303503<_0x30cb01['length'];_0x303503++)P(_0x149201,_0x30cb01[_0x303503])?_0x149201['width']+=_0x30cb01[_0x303503]['width']:(_0x154407['push'](_0x149201),_0x149201=_0x30cb01[_0x303503]);return _0x154407['push'](_0x149201),_0x154407;}(_0x2b976d);const _0x2667f1=_0x1450c7['getBoundingClientRect']();return _0x2b976d['find'](_0x5ae11d=>_0x5ae11d['top']<=_0x2667f1['top']&&_0x5ae11d['bottom']>=_0x2667f1['bottom']&&_0x5ae11d['left']<=_0x2667f1['left']&&_0x5ae11d['right']>=_0x2667f1['right'])||_0x2b976d[0x0];}return _0x571e54['targetRect']||_0x1450c7;}['_removeAnnotationFromBalloon'](_0x17c80b){this['_addedAnnotations']['has'](_0x17c80b)&&this['_balloon']['hasView'](_0x17c80b['view'])&&(this['_addedAnnotations']['delete'](_0x17c80b),this['_balloon']['remove'](_0x17c80b['view']));}['_closeAnnotation'](_0x40233f){this['_manuallyClosed']['add'](_0x40233f),this['_removeAnnotationFromBalloon'](_0x40233f);}}function F(_0x3f1a6b){return Array['from'](_0x3f1a6b)['map'](DOMRect['fromRect']);}function P(_0x39bba3,_0x40eccd){return _0x39bba3['top']===_0x40eccd['top']&&_0x39bba3['bottom']===_0x40eccd['bottom']&&_0x39bba3['right']===_0x40eccd['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x53533b,_0x5a8290){super(_0x53533b),this['set']('isEmpty',!_0x5a8290['length']),this['focusTracker']=new _0x4eac6f(),this['_annotationViews']=_0x5a8290,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x15fa0a({'focusables':_0x5a8290,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5a8290,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5a8290,'remove',(_0x12733d,_0x19aa20)=>{_0x19aa20['isActive']&&this['focus'](),_0x5a8290['length']||(this['isEmpty']=!0x0);});const _0x396419=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x53533b,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5a8290},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x396419['if']('isEmpty','ck-hidden',_0xdba162=>!_0xdba162)]},'children':[{'text':N(_0x53533b,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x170fe1 of this['_annotationViews'])this['focusTracker']['add'](_0x170fe1['element']);this['_annotationViews']['on']('change',(_0x12a63e,{added:_0xaaf03b,removed:_0x3ace89})=>{for(const _0x1e0d68 of _0xaaf03b)this['focusTracker']['add'](_0x1e0d68['element']);for(const _0xb1b3b9 of _0x3ace89)this['focusTracker']['remove'](_0xb1b3b9['element']);});}}class p extends _0x347f40{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x348b86){super(_0x348b86),this['archivedThreads']=new _0x8deec();}['init'](){const _0x5da8ad=this['context'],_0x445ef2=_0x5da8ad['plugins']['get'](o),_0x47d790=_0x5da8ad['plugins']['get'](y);this['listenTo'](_0x445ef2,'addCommentThread',(_0x199f23,{threadId:_0x25085d})=>{const _0x7f177a=_0x445ef2['getCommentThread'](_0x25085d);_0x7f177a['archivedAt']&&this['archivedThreads']['add'](_0x7f177a,this['_calculatePosition'](_0x7f177a['archivedAt'])),this['listenTo'](_0x7f177a,'change:archivedAt',(_0x237232,_0x34570b,_0x29fc27)=>{_0x29fc27?this['archivedThreads']['has'](_0x7f177a)||this['archivedThreads']['add'](_0x7f177a,this['_calculatePosition'](_0x7f177a['archivedAt'])):this['archivedThreads']['has'](_0x7f177a)&&this['archivedThreads']['remove'](_0x7f177a);});}),this['listenTo'](_0x445ef2,'removeCommentThread',(_0x5a5772,{threadId:_0x18a58c})=>{const _0x17076c=_0x445ef2['getCommentThread'](_0x18a58c);this['stopListening'](_0x17076c),this['archivedThreads']['has'](_0x17076c)&&this['archivedThreads']['remove'](_0x17076c);},{'priority':'highest'}),this['listenTo'](_0x47d790['collection'],'focus',(_0x46a791,_0x1b04a0)=>{_0x1b04a0['isVisible']||(_0x1b04a0['isActive']=!0x0,_0x47d790['activate'](_0x1b04a0));});}['_calculatePosition'](_0x47f347){const _0xc49720=[...this['archivedThreads']]['findIndex'](_0x139758=>_0x139758['archivedAt']<_0x47f347);return _0xc49720>-0x1?_0xc49720:this['archivedThreads']['length'];}}class a extends _0xe6feac{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x441bd3];}constructor(_0x1f2dfa){super(_0x1f2dfa),this['annotationViews']=new _0x2ed64b(),this['_pendingThreads']=[];}['init'](){const _0x10e8b8=this['editor'],_0x5ec5de=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x10e8b8['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x46ed49,!0x0)),_0x10e8b8['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x37e409=this['_createCommentsArchiveButton'](_0x1c7cbf);return _0x37e409['set']({'role':'menuitemcheckbox'}),_0x37e409;});const _0x39025e=_0x10e8b8['plugins']['get'](p),_0xe13ff=_0x10e8b8['plugins']['get']('Annotations'),_0x46b4ae=_0x10e8b8['plugins']['get']('CommentsRepository');_0x39025e['archivedThreads']['forEach'](_0x386983=>{this['_handleNewThread'](_0x386983);}),this['listenTo'](_0x39025e['archivedThreads'],'add',(_0x20ae17,_0x2cdc29)=>{this['_handleNewThread'](_0x2cdc29);}),this['listenTo'](_0xe13ff['collection'],'add',(_0x19863f,_0x5e984d)=>{const _0x42cf3f=this['_pendingThreads']['find'](_0x2c5df8=>{const _0x2a5556=_0x46b4ae['_threadToController']['get'](_0x2c5df8);return _0x2a5556&&_0x5e984d['innerView']===_0x2a5556['view'];});if(_0x42cf3f){const _0x7eafb6=this['_calculatePosition'](_0x42cf3f['archivedAt']);this['_addAnnotationToArchive'](_0x5e984d,_0x7eafb6),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x42cf3f),0x1);}}),this['listenTo'](_0x39025e['archivedThreads'],'remove',(_0x3d5607,_0x3d36db)=>{const _0x4c184a=_0x10e8b8['config']['get']('collaboration.channelId');if(!_0x4c184a||_0x3d36db['channelId']===_0x4c184a){if(this['_pendingThreads']['includes'](_0x3d36db))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3d36db),0x1);else{const _0x37bfcb=_0x46b4ae['_threadToController']['get'](_0x3d36db),_0x1bbaf5=_0xe13ff['getByInnerView'](_0x37bfcb['view']);this['annotationViews']['remove'](_0x1bbaf5['view']),this['stopListening'](_0x1bbaf5),this['stopListening'](_0x1bbaf5['focusableElements']);}}}),this['listenTo'](_0xe13ff['collection'],'add',(_0x200bd5,_0x3cdea2)=>{this['listenTo'](_0x3cdea2,'escape',_0x5ec5de);}),this['listenTo'](_0xe13ff['collection'],'remove',(_0xd5812d,_0x13237a)=>{this['stopListening'](_0x13237a,'escape',_0x5ec5de);});}['_addAnnotationToArchive'](_0x55d3dd,_0x266137){this['listenTo'](_0x55d3dd,'set:isVisible',_0x412817=>{_0x412817['return']=!0x1,_0x412817['stop']();}),this['annotationViews']['add'](_0x55d3dd['view'],_0x266137);}['_handleNewThread'](_0xa9c1f7){const _0x33b36a=this['editor']['plugins']['get']('CommentsRepository'),_0x469232=this['editor']['plugins']['get']('Annotations'),_0x4fbf8e=this['editor']['config']['get']('collaboration.channelId');if(!_0x4fbf8e||_0xa9c1f7['channelId']===_0x4fbf8e){const _0x5e8679=_0x33b36a['_threadToController']['get'](_0xa9c1f7);if(!_0x5e8679)return void this['_pendingThreads']['push'](_0xa9c1f7);const _0xee414c=this['_calculatePosition'](_0xa9c1f7['archivedAt']),_0x5084e3=_0x469232['getByInnerView'](_0x5e8679['view']);_0x5084e3['isVisible']&&_0x469232['_visibleAnnotations']['remove'](_0x5084e3),this['_addAnnotationToArchive'](_0x5084e3,_0xee414c);}}['_calculatePosition'](_0x2390a1){const _0x3651e0=this['editor']['config']['get']('collaboration.channelId'),_0x463a87=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x4b5c38=>_0x4b5c38['channelId']===_0x3651e0)['findIndex'](_0x402366=>_0x402366['archivedAt']<_0x2390a1);return _0x463a87<0x0||_0x463a87>this['annotationViews']['length']?this['annotationViews']['length']:_0x463a87-0x1;}['_toggleDialog'](){const _0x81fa62=this['editor'],_0x22bb62=_0x81fa62['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x81fa62['locale'],this['annotationViews'])),'commentsArchive'===_0x22bb62['id']?_0x22bb62['hide']():_0x22bb62['show']({'id':'commentsArchive','title':N(_0x81fa62['locale'],'COMMENTS_ARCHIVE'),'icon':_0x1111ed,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x449379['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x45b460,_0x42c5cd=!0x1){const _0x24ec72=this['editor']['locale'],_0x519cc1=this['editor']['plugins']['get']('Dialog'),_0x5c185d=new _0x45b460(_0x24ec72);return _0x5c185d['bind']('isEnabled')['to'](this,'isEnabled'),_0x5c185d['bind']('isOn')['to'](_0x519cc1,'id',_0x11ce26=>'commentsArchive'===_0x11ce26),_0x5c185d['set']({'label':N(_0x24ec72,'COMMENTS_ARCHIVE'),'icon':_0x1111ed,'isToggleable':!0x0}),_0x42c5cd&&(_0x5c185d['tooltip']=!0x0),this['listenTo'](_0x5c185d,'execute',()=>this['_toggleDialog']()),_0x5c185d;}['_hideDialogOnAnnotationEscape']=_0x3c520e=>{const _0x45dc27=_0x3c520e['source'];if(!this['annotationViews']['has'](_0x45dc27['view']))return;const _0x5c8758=this['editor']['plugins']['get']('Dialog');_0x5c8758['isOpen']&&'commentsArchive'===_0x5c8758['id']&&(_0x5c8758['hide'](),_0x3c520e['stop']());};}class gi extends _0xe6feac{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};