@ckeditor/ckeditor5-comments 46.0.1-alpha.7 → 46.0.1-alpha.8

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 +18 -18
  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 _0x252910,ContextPlugin as _0xfe7412,PendingActions as lt,Command as _0x134a73,Plugin as _0x8104b3,Context as _0x45e0d7}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1297b8,uid as _0x33127a,KeystrokeHandler as jt,FocusTracker as _0x5ead02,diff as _0x2db00b,Collection as _0x4d4ef2,Rect as _0x57fdd2,CKEditorError as _0xd3f428,first as _0x79f2a3,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x39efeb,keyCodes as _0x226af2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x38a0c1,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x3d30db,trimHtml as _0x1fec04,LateFocusDropdownButtonView as _0x3b8357,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x158e83}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x5e0d3b}from'es-toolkit/compat';import{IconUndo as _0x4ffe10,IconCheck as _0x44135a,IconPencil as _0x502d67,IconRemoveComment as _0x590966,IconThreeVerticalDots as _0x495b61,IconAddComment as _0x4a5b76,IconCommentsArchive as _0x1d3cb7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x76289f,ButtonView as _0x8118da,ViewCollection as _0x6ba4d4,createDropdown as _0x38aa48,ListView as _0x3dee90,focusChildOnDropdownOpen as _0x395c0c,ListItemView as _0x21ad6e,MenuBarMenuListItemButtonView as _0x5c9447,BodyCollection as _0x3051f9,BalloonPanelView as _0x175f2a,ContextualBalloon as _0x22e13d,Dialog as _0x24c213,DialogViewPosition as _0x3768f4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0x127348}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Bt,ShiftEnter as Et}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 _0x5c1e03}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x2a96ee}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x1297b8(){['model'];['view'];constructor(_0x490a15,_0x2e3388){super(),this['model']=_0x490a15,this['model']['_isAttached']=!0x0,this['view']=_0x2e3388,this['listenTo'](_0x2e3388,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x2e3388,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x2e3388,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x2e3388,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x2e3388,'addComment',(_0x228c65,_0x5c4b72)=>this['addComment'](_0x5c4b72)),this['listenTo'](_0x2e3388,'updateComment',(_0x45c43a,_0x55e5f,_0x5725ad)=>this['updateComment'](_0x55e5f,_0x5725ad)),this['listenTo'](_0x2e3388,'removeComment',(_0x5c278b,_0x185a13)=>this['removeComment'](_0x185a13));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x5c729b){this['model']['addComment']({'content':_0x5c729b,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3133b0,_0x17fba6){this['model']['getComment'](_0x3133b0)['update']({'content':_0x17fba6});}['removeComment'](_0x2e01f1){this['model']['getComment'](_0x2e01f1)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x2d37b2,_0x61719c,_0x32574d){const t=_0x2d37b2['t'];switch(_0x61719c){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'},_0x32574d);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'},_0x32574d);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'},_0x32574d);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'},_0x32574d);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x32574d);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'},_0x32574d);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'},_0x32574d);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'},_0x32574d);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 Vt extends Xt{['main'];['editable'];constructor(_0x5b53d6,_0xfcf200){super(_0x5b53d6);const _0x4b87ad=_0x33127a();this['main']=this['createCollection'](),this['editable']=new $t(_0x5b53d6,_0xfcf200,void 0x0,{'label':()=>N(_0x5b53d6,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x5b53d6['uiLanguageDirection'],'lang':_0x5b53d6['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x4b87ad},'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 Ft extends Ut{['view'];constructor(_0x3e3da4){super(_0x3e3da4),this['view']=new Vt(_0x3e3da4['locale'],_0x3e3da4['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x5874ba=this['editor']['editing']['view'],_0x53feee=this['view']['editable'],_0x482943=_0x5874ba['document']['getRoot']();_0x53feee['name']=_0x482943['rootName'],this['view']['render']();const _0x459171=_0x53feee['element'];this['setEditableElement'](_0x53feee['name'],_0x459171),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5874ba['attachDomRoot'](_0x459171),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x1297b8(_0x252910){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x585595={}){function _0x569796(_0x524c3e){return _0x524c3e['map'](_0x56c8bd=>String['fromCharCode'](_0x56c8bd))['join']('');}(_0x585595=Object['assign']({},_0x585595))['plugins']||(_0x585595['plugins']=Rt['defaultPlugins']),super(_0x585595),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x569796([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x569796([0x76,0x69,0x65,0x77])][_0x569796([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x569796([0x61,0x75,0x74,0x6f]),this[_0x569796([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x569796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x569796([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x569796([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x569796([0x6f,0x6b])});}['create'](){const _0x3a69e7=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x3a69e7))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5407b2=>{const _0x58da82=this['model']['document']['getRoot'](),_0x5edc5e=_0x58da82&&_0x58da82['getChild'](_0x58da82['childCount']-0x1);_0x5407b2['setSelection'](_0x5edc5e,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x23c555=this['editing']['view'],_0x31151f=_0x23c555['document']['getRoot'](),_0x17f7f5=_0x31151f['getChild'](0x0);_0x31151f['childCount']>0x1||!_0x17f7f5||'p'!=_0x17f7f5['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x23c555,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x17f7f5['placeholder']=this['placeholder']),St({'view':_0x23c555,'element':_0x17f7f5,'keepOnFocus':!0x0}),this['placeholderElement']=_0x17f7f5);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x323e11,_0x4abccf={}){super(_0x323e11),this['editor']=null,this['_editorConfig']=_0x4abccf,this['set']('value',_0x4abccf['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x323e11,'Reply...')),this['set']('submitLabel',N(_0x323e11,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x5ead02(),this['focusCycler']=new _0x76289f({'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',(_0x3e7260,_0xa67adc)=>{this['cancelButtonView']['fire']('execute'),_0xa67adc();}),this['keystrokes']['set']('Ctrl+Enter',(_0x2879cb,_0x3520f7)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3520f7());}),this['on']('submit',(_0x1f5cc3,_0x53d306)=>{_0x53d306['length']>0xfde8?(alert(N(_0x323e11,'TOO_LONG_COMMENT_ALERT',[_0x53d306['length'],0xfde8])),_0x1f5cc3['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x2eba06=this['editor'];this['element']['insertBefore'](_0x2eba06['ui']['element'],this['element']['firstChild']),_0x2eba06['model']['document']['on']('change',()=>this['value']=_0x2eba06['getData']()),_0x2eba06['bind']('placeholder')['to'](this),this['focusables']['add'](_0x2eba06['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x49cbc9){-0x1===_0x49cbc9?(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:_0x51a042}=this,_0x3ddaf7=new _0x8118da(_0x51a042);return _0x3ddaf7['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3ddaf7['withText']=!0x0,_0x3ddaf7['bind']('label')['to'](this,'submitLabel'),_0x3ddaf7['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3ddaf7['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1ca6d9,_0x411410)=>!_0x411410&&!!_0x1ca6d9['trim']()),_0x3ddaf7;}['_createCancelButton'](){const {locale:_0x24778d}=this,_0x393bbc=new _0x8118da(_0x24778d);return _0x393bbc['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x393bbc['label']=N(_0x24778d,'Cancel'),_0x393bbc['withText']=!0x0,_0x393bbc['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x393bbc;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3cfe6a=>{this['focusTracker']['add'](_0x3cfe6a['element']);}),this['focusables']['on']('change',(_0x2a9b33,_0x551666)=>{for(const _0x291871 of Array['from'](_0x551666['added'])['reverse']())this['focusTracker']['add'](_0x291871['element']);});}}class ie extends kt{constructor(_0x4f2220,_0x5f23be,_0x1b581d){super(_0x4f2220),this['commentInputView']=new os(_0x4f2220,_0x1b581d),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x793b03,_0x14cb35)=>_0x793b03||!!_0x14cb35),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 _0x38a0c1(_0x4f2220,_0x5f23be),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'](_0x2a3c16){this['commentInputView']['focus'](_0x2a3c16);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xc7bf1a,_0x50e054)=>{const {submitButtonView:_0x19c144,cancelButtonView:_0x1bf23f,editor:_0x457981}=this['commentInputView'];[_0x19c144['element'],_0x1bf23f['element'],_0x457981?_0x457981['editing']['view']['getDomRoot']():null]['filter'](_0x474228=>_0x474228)['some'](_0x15e46a=>_0x15e46a['contains'](_0x50e054['target']))||(this['focus'](),_0x50e054['preventDefault']());});}}class rs extends kt{constructor(_0x2be711){super(_0x2be711);const _0x214225=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x214225['to']('count',_0xfe9641=>N(_0x2be711,'NUMBER_OF_COMMENTS',_0xfe9641))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5acefe,_0x581bbe,_0x2a20df){super(_0x5acefe);const _0x3b4d48=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x581bbe['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x581bbe,this['_config']=_0x2a20df,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x5ead02(),this['keystrokes']=new jt(),this['focusCycler']=new _0x76289f({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x23dd88=>this['commentViews']['map'](_0x4fa09b=>_0x4fa09b['element'])['includes'](_0x23dd88['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x5acefe),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x4dbb94=>_0x4dbb94-this['_config']['maxCommentsWhenCollapsed']);for(const _0x2332b1 of _0x581bbe['comments'])this['_handleNewCommentModel'](_0x2332b1);this['_handleInfoComment'](),this['listenTo'](_0x581bbe['comments'],'add',(_0x586efe,_0x599b3e)=>{const _0x5ccf53=this['_calculatePosition'](_0x599b3e);this['length']++,this['_handleNewCommentModel'](_0x599b3e,_0x5ccf53),this['refreshVisibleViews']();}),this['listenTo'](_0x581bbe['comments'],'remove',(_0x2bffde,_0xae65fc)=>{this['length']--,this['_handleRemoveCommentModel'](_0xae65fc),this['refreshVisibleViews']();}),this['listenTo'](_0x581bbe,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x581bbe,'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',_0x3b4d48['if']('length','ck-hidden',_0x2369b9=>!_0x2369b9)],'aria-label':N(_0x5acefe,'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'](_0x33d5b1){-0x1===_0x33d5b1?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x5af83c of this['commentViews'])_0x5af83c['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x35c63,_0x28a1a3){const _0x3a266d=new this['_config']['CommentView'](this['locale'],_0x35c63,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x3a266d['viewUid']=_0x35c63['id'],_0x3a266d['delegate']('removeComment')['to'](this),_0x3a266d['delegate']('updateComment')['to'](this),_0x3a266d['delegate']('resolveCommentThread')['to'](this),_0x3a266d['delegate']('editorReady')['to'](this),_0x3a266d['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x3a266d,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x3a266d,_0x28a1a3);}['_calculatePosition'](_0x404bb0){const _0x3e2ce5=this['_model']['_findOptimalIndex'](_0x404bb0);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x404bb0['authoredAt']?_0x3e2ce5-0x1:_0x3e2ce5:_0x3e2ce5-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0xaef80f={'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'],_0xaef80f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0xaef80f));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x1da7ad){const _0x4521aa=this['commentViews']['remove'](_0x1da7ad['id']);this['stopListening'](_0x4521aa),_0x4521aa['isEditMode']&&this['_updateHasDirtyComment'](),_0x4521aa['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x48ece5=>_0x48ece5['isEditMode']);}['_rearrangeCollapse'](){const _0x4f077a=function(_0x1cc7b7){const _0xaca55e=new _0x4d4ef2();for(const _0x351b6f of _0x1cc7b7)_0xaca55e['add'](_0x351b6f);return _0xaca55e;}(this['commentViews']),_0x4c2fd0=this['_collapsedCommentsView']['count'];for(let _0x25ae82=0x1;_0x25ae82<=_0x4c2fd0;_0x25ae82++)_0x4f077a['remove'](0x1);for(const _0xbd2e99 of _0x4f077a)_0xbd2e99['collapse']();_0x4c2fd0>0x0&&_0x4f077a['add'](this['_collapsedCommentsView'],0x1),ns(_0x2db00b(Array['from'](this['visibleViews']),Array['from'](_0x4f077a)),this['visibleViews'],_0x4f077a);}['_rearrangeExpand'](){ns(_0x2db00b(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1b5ac4 of this['visibleViews'])_0x1b5ac4['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2b10aa=>{this['focusTracker']['add'](_0x2b10aa['element']),this['keystrokes']['listenTo'](_0x2b10aa['element']);}),this['commentViews']['on']('change',(_0x303d71,_0x587750)=>{for(const _0x1b5c99 of _0x587750['removed'])this['focusTracker']['remove'](_0x1b5c99['element']),this['keystrokes']['stopListening'](_0x1b5c99['element']);for(const _0x440601 of Array['from'](_0x587750['added'])['reverse']())this['focusTracker']['add'](_0x440601['element']),this['keystrokes']['listenTo'](_0x440601['element']);});}}function ns(_0x3666bb,_0x4b49eb,_0x21c7e0){let _0x36cd71=0x0;for(const _0x18362b of _0x3666bb)switch(_0x18362b){case'insert':_0x4b49eb['add'](_0x21c7e0['get'](_0x36cd71),_0x36cd71),_0x36cd71++;break;case'delete':_0x4b49eb['remove'](_0x36cd71);break;case'equal':_0x36cd71++;}}class oe extends kt{constructor(_0x635ba3){super(_0x635ba3);const _0x1c9128=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1c9128['to']('contextValue',_0x424f60=>N(_0x635ba3,'THREAD_CONTEXT_LABEL',_0x424f60)),'tabindex':-0x1},'children':[{'text':_0x1c9128['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x26b159,_0x5db202){super(_0x26b159);const _0x364fe6=this['bindTemplate'];this['_model']=_0x5db202,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x5ead02(),this['keystrokes']=new jt(),this['focusCycler']=new _0x76289f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x4df7f9=>!!_0x4df7f9),this['bind']('contextValue')['to'](this['_model'],'context',_0x4aacca=>_0x4aacca&&_0x4aacca['value']?this['_trimContextValue'](_0x4aacca['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',_0x364fe6['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 _0x11ee20=new _0x8118da(this['locale']);return _0x11ee20['label']=N(this['locale'],'Reopen'),_0x11ee20['tooltip']=N(this['locale'],'Reopen'),_0x11ee20['icon']=_0x4ffe10,_0x11ee20['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x426de4=>!_0x426de4),_0x11ee20['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x269f75,_0x84a77c)=>_0x269f75&&_0x84a77c),_0x11ee20['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x11ee20;}['_trimContextValue'](_0x5cee1){if(_0x5cee1['length']<0x96)return _0x5cee1;const _0x3391ae=_0x5cee1['lastIndexOf']('\x20',0x93);return _0x5cee1['substring'](0x0,_0x3391ae>-0x1?_0x3391ae:0x93)+'...';}['_attachContextActions'](){const _0x451365=this['element']['querySelector']('.ck-context'),_0x49ecc3=_0x451365['querySelector']('.ck-context__value');this['listenTo'](_0x451365,'mouseenter',()=>{_0x49ecc3['offsetWidth']<_0x49ecc3['scrollWidth']&&_0x451365['classList']['add']('overlay');}),this['listenTo'](_0x451365,'mouseleave',()=>{_0x451365['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x32c97b of this['focusables'])this['focusTracker']['add'](_0x32c97b['element']),this['keystrokes']['listenTo'](_0x32c97b['element']);}['_createContextView'](){const _0x13335a=new oe(this['locale']);return _0x13335a['bind']('contextValue')['to'](this),_0x13335a;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1b89b5,_0x2637d6,_0x107f72,_0x39db8a){super(_0x1b89b5),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x2637d6,this['_localUser']=_0x107f72,this['_config']=_0x39db8a,this['commentThreadHeaderView']=new Yt(_0x1b89b5,_0x2637d6),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x1b89b5,N(_0x1b89b5,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1b89b5,_0x2637d6,Object['assign']({'CommentView':this['_config']['CommentView']},_0x39db8a)),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',(_0x37afc0,_0x222a3c)=>_0x37afc0||!!_0x222a3c),this['bind']('isUnlinked')['to'](_0x2637d6,'unlinkedAt',_0xd6ed43=>!!_0xd6ed43),this['bind']('ariaLabel')['to'](this,'length',_0x43987b=>{const _0x28bb6f=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x43987b,_0x28bb6f]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x5ead02(),this['keystrokes']=new jt(),this['focusCycler']=new _0x76289f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5322d8=>_0x5322d8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x56408f=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1aa863=_0x56408f['commentInputView'];return _0x56408f['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x1aa863,'value',(_0x18ab3c,_0x164835,_0x479c49,_0x3a161e,_0x1ff50e)=>!!_0x1ff50e||!!_0x3a161e&&_0x479c49&&!_0x164835||_0x18ab3c&&_0x479c49&&!_0x164835),_0x1aa863['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x10dc39,_0x417586,_0x3cd035)=>{let _0x9ae69b;return _0x9ae69b=_0x3cd035&&_0x417586?'Reply\x20to\x20reopen\x20discussion...':_0x10dc39?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x9ae69b);}),_0x1aa863['bind']('submitLabel')['to'](this,'length',_0x34ebc6=>N(this['locale'],_0x34ebc6?'Reply':'Comment')),_0x1aa863['on']('submit',(_0x4ae7cd,_0xf37bf7)=>{this['fire']('addComment',_0xf37bf7),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x1aa863['on']('cancel',()=>{this['focus']();}),_0x1aa863['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1aa863['on']('cancel',_0x20bc35=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x20bc35['stop']());}),this['on']('change:isActive',(_0x506df0,_0xf6fbf,_0x3c321c)=>{_0x3c321c||this['length']||_0x1aa863['value']||this['fire']('removeCommentThread');}),_0x56408f;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x34f233,_0x292249,_0x1e568a,_0x17522b){super(_0x34f233,_0x292249,_0x1e568a,_0x17522b),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x34f233,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x6afc11,_0x20e5bd,_0x454fad)=>{_0x454fad||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x7e4d96,_0x19047d,_0x2591f9)=>{_0x2591f9&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x4f8d44=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x4f8d44['if']('isActive','ck-thread--active'),_0x4f8d44['if']('isUnlinked','ck-thread--unlinked'),_0x4f8d44['if']('isConfirm','ck-thread--remove-confirmation'),_0x4f8d44['to']('actionIndicator',_0x4cc106=>_0x4cc106?'ck-thread--'+_0x4cc106:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4f8d44['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 _0x588280 of this['commentsListView']['commentViews'])_0x588280['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x37a765}=this,_0x5c882b=this['commentsListView']['commentViews']['get'](0x0);_0x5c882b===this['_boundFirstCommentView']||_0x5c882b['isSystemComment']||(this['_boundFirstCommentView']=_0x5c882b,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x5c882b,'actionIndicator',_0x4ecb66=>'remove'===_0x4ecb66?'remove':null),_0x5c882b['placeholder']=N(_0x37a765,'Write\x20a\x20comment...'),_0x5c882b['removeButton']['on']('execute',_0x5dbf1d=>{_0x5dbf1d['stop'](),this['showConfirm'](N(_0x37a765,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x5c882b['focus']();}),_0x5c882b['actionBar']['add'](this['resolveButton'],0x0),_0x5c882b['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2518bb=new _0x3d30db(this['locale']);return _0x2518bb['label']=N(this['locale'],'Resolve'),_0x2518bb['tooltip']=N(this['locale'],'Resolve'),_0x2518bb['icon']=_0x44135a,_0x2518bb['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2518bb['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3c3381=>!_0x3c3381),_0x2518bb['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x315d12,_0x1693d0)=>_0x315d12&&!_0x1693d0),_0x2518bb['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2518bb;}['_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 es extends kt{constructor(_0x2cc45f){super(_0x2cc45f),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x45a0d8,_0x40dd2e,_0x3f0dd1)=>{this['element']['innerHTML']=_0x3f0dd1;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3e511e,_0x153ac7,_0x5833fa){super(_0x3e511e),this['_model']=_0x153ac7,this['_config']=_0x5833fa,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x153ac7,'content',_0x153ac7,'authoredAt',(_0x83695a,_0x349b76)=>N(_0x3e511e,'COMMENT_ARIA_LABEL',[_0x153ac7['author']['name'],_0x5833fa['formatDateTime'](_0x349b76),new DOMParser()['parseFromString'](_0x83695a,'text/html')['body']['textContent'],_0x153ac7['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x3e511e,N(_0x3e511e,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x6ba4d4(),this['focusTracker']=new _0x5ead02(),this['keystrokes']=new jt(),this['focusCycler']=new _0x76289f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xf3d53=>_0xf3d53['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 _0x280160=new es(this['locale']);return _0x280160['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x14d5b1,_0x1b740e)=>_0x1b740e?_0x1fec04(_0x14d5b1,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x14d5b1),_0x280160;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x3273fd=new os(this['locale'],this['_config']['editorConfig']);return _0x3273fd['value']=this['_model']['content'],_0x3273fd['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3273fd['submitLabel']=N(this['locale'],'Save'),_0x3273fd['on']('submit',(_0x1c13b5,_0x4561be)=>{this['fire']('updateComment',this['_model']['id'],_0x4561be),this['switchToDisplayMode'](),this['focus']();}),_0x3273fd['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x3273fd['once']('editorReady',()=>{_0x3273fd['focus']();}),_0x3273fd['createEditor'](),_0x3273fd['delegate']('editorReady')['to'](this),_0x3273fd['delegate']('editorDestroyed')['to'](this),_0x3273fd;}['_setupKeyboardNavigation'](){const _0x3dd2ac=this['element'];this['keystrokes']['listenTo'](_0x3dd2ac);for(const _0x2f2dd3 of this['focusables'])this['focusTracker']['add'](_0x2f2dd3['element']),this['keystrokes']['listenTo'](_0x2f2dd3['element']);this['focusables']['on']('change',(_0x1a77f2,_0x3a1789)=>{for(const _0x2ce456 of _0x3a1789['removed'])this['focusTracker']['remove'](_0x2ce456['element']),this['keystrokes']['stopListening'](_0x2ce456['element']);for(const _0x2ae1b8 of _0x3a1789['added'])this['focusTracker']['add'](_0x2ae1b8['element']),this['keystrokes']['listenTo'](_0x2ae1b8['element']);}),this['keystrokes']['set']('enter',(_0x166611,_0x29c24d)=>{_0x3dd2ac===_0x166611['target']&&(this['focusCycler']['focusFirst'](),_0x29c24d());}),this['keystrokes']['set']('esc',(_0x21b57b,_0x2dcbcb)=>{_0x3dd2ac!==_0x21b57b['target']&&(this['focus'](),_0x2dcbcb());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x47e2d6,_0x3ceb20,_0x329758){super(_0x47e2d6,_0x3ceb20,_0x329758),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x47e2d6,'Reply...')),this['bind']('authoredAt')['to'](_0x3ceb20),this['bind']('resolvedAt')['to'](_0x3ceb20),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 _0x38a0c1(_0x47e2d6,_0x3ceb20['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3ceb20,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x32fc9a=this['bindTemplate'],_0x3064b7=[{'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':_0x32fc9a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x32fc9a['to']('authoredAt',_0x2e96f2=>this['_config']['formatDateTime'](_0x2e96f2))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x32fc9a['if']('isEditMode','ck-comment__actions--hidden'),_0x32fc9a['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']&&_0x3064b7['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x32fc9a['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x32fc9a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x32fc9a['if']('isEditMode','ck-comment--edit'),_0x32fc9a['if']('isSystemComment','ck-comment--info'),_0x32fc9a['to']('actionIndicator',_0xe8353c=>_0xe8353c?'ck-comment--'+_0xe8353c:'')],'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':_0x3064b7}]}]};}['_createEditButton'](){const _0x5ffefe=new _0x8118da(this['locale']);return _0x5ffefe['label']=N(this['locale'],'Edit'),_0x5ffefe['icon']=_0x502d67,_0x5ffefe['withText']=!0x0,_0x5ffefe['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x5ffefe['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x33c14e=>!_0x33c14e),_0x5ffefe['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x5ffefe['on']('execute',()=>this['switchToEditMode']()),_0x5ffefe;}['_createRemoveButton'](){const _0xea463=new _0x8118da(this['locale']);return _0xea463['label']=N(this['locale'],'Remove'),_0xea463['icon']=_0x590966,_0xea463['withText']=!0x0,_0xea463['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xea463['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4bb40e=>!_0x4bb40e),_0xea463['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xea463['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xea463;}['_createDropdown'](){const _0x120dae=_0x38aa48(this['locale'],_0x3b8357),_0xaeb39c=_0x120dae['panelView']['children'],_0x51079e=new _0x3dee90(this['locale']),_0x375daf=_0x120dae['bindTemplate'];_0x395c0c(_0x120dae,()=>this['items']['find'](_0x2a5cc0=>_0x2a5cc0['isVisible'])),_0x120dae['extendTemplate']({'attributes':{'class':[_0x375daf['if']('isVisible','ck-hidden',_0x56c3ab=>!_0x56c3ab)]}});const _0x48e17f=(_0x18d625,_0x2ede4f=-0x1)=>{const _0x25ad8d=new _0x21ad6e(this['locale']);_0x25ad8d['children']['add'](_0x18d625);const _0x1d0e50=_0x2ede4f>-0x1?_0x2ede4f:_0x51079e['items']['length'];_0x51079e['items']['add'](_0x25ad8d,_0x1d0e50);const _0x2b44d7=Array['from'](this['items']);_0x120dae['unbind']('isEnabled','isVisible'),_0x120dae['bind']('isEnabled')['toMany'](_0x2b44d7,'isEnabled',(..._0x4265eb)=>_0x4265eb['some'](_0x1aa8f8=>_0x1aa8f8)),_0x120dae['bind']('isVisible')['toMany'](_0x2b44d7,'isVisible',(..._0x3574e2)=>_0x3574e2['some'](_0xd5cb5a=>_0xd5cb5a));};_0x120dae['panelPosition']='sw',_0x120dae['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x495b61});for(const _0x203369 of this['items'])_0x48e17f(_0x203369);return _0xaeb39c['add'](_0x51079e),_0x120dae['listenTo'](this['items'],'add',(_0x242f4b,_0x42d92d,_0x2cffd7)=>{_0x48e17f(_0x42d92d,_0x2cffd7);}),_0x120dae['listenTo'](this['items'],'remove',(_0x1b85f2,_0x19bd65,_0x2f5fb0)=>{_0x51079e['items']['remove'](_0x2f5fb0);}),_0x120dae;}['_attachActions'](_0x2264aa,_0x407dd7){const _0x238aa3=_0x2264aa&&_0x2264aa['element'];_0x238aa3&&(this['listenTo'](_0x238aa3,'mouseenter',()=>this['actionIndicator']=_0x407dd7),this['listenTo'](_0x238aa3,'focus',()=>this['actionIndicator']=_0x407dd7),this['listenTo'](_0x238aa3,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x238aa3,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x2df8a7=super['_createCommentInputView']();return _0x2df8a7['bind']('placeholder')['to'](this),_0x2df8a7;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x4e5123){const _0xdb5dba=Dt(_0x4e5123,0x1e),_0x47c466=new MutationObserver(_0x10b44c=>{for(const _0x339b5a of _0x10b44c)('attributes'==_0x339b5a['type']&&'class'==_0x339b5a['attributeName']||'childList'==_0x339b5a['type']||'characterData'==_0x339b5a['type'])&&_0xdb5dba();});return{'attach'(_0x35cb07){_0x47c466['observe'](_0x35cb07,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x47c466['disconnect'](),_0xdb5dba['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x42bd60,_0x1b76b9){super(_0x42bd60),this['id']=_0x33127a(),this['focusTracker']=new _0x5ead02(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x48595f,_0x1017aa)=>this['fire']('Esc',_0x1017aa)),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'](_0x1b76b9),this['mainView']=_0x1b76b9;const _0x4b1694=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4b1694['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 _0x11d80a=this['element']['clientHeight'];_0x11d80a&&(this['height']=_0x11d80a);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x1297b8(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1e16ef,target:_0x446395,type:_0x474808,isVisible:_0xf09715=!0x0}){super(),this['view']=_0x1e16ef,this['view']['element']||this['view']['render'](),this['_type']=_0x474808,this['_target']=_0x446395,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x4d4ef2([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x103c61,_0x5f0993)=>{this['view']['focusTracker']['add'](_0x5f0993);}),this['focusableElements']['on']('remove',(_0x5d6403,_0x185467)=>{this['view']['focusTracker']['remove'](_0x185467);}),this['set']('isVisible',_0xf09715);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x2e41a7=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x2e41a7),_0x2e41a7;}get['targetRect'](){const _0x2273fa=this['target'];if(null===_0x2273fa)return null;if(_0x2273fa instanceof _0x57fdd2)return _0x2273fa;const _0x5effcc=_0x2273fa['filter'](_0x1186cf=>function(_0x523a03){const _0x554fd3=_0x523a03['offsetParent'];if(_0x554fd3)return!0x0;const _0x57395b=_0x523a03['getClientRects']()['item'](0x0);return!!_0x57395b;}(_0x1186cf));return 0x0===_0x5effcc['length']?null:new _0x57fdd2(_0x5effcc[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x2373f2){this['view']['isActive']=_0x2373f2,this['view']['mainView']['isActive']=_0x2373f2;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xc8a73a){if(!(null===_0xc8a73a||_0xc8a73a instanceof _0x57fdd2||Array['isArray'](_0xc8a73a)&&_0xc8a73a['every'](_0x4cc600=>fi(_0x4cc600))))throw new _0xd3f428('annotation-invalid-target',null,{'target':_0xc8a73a});}['_getNormalizedTarget'](){const _0x4576e7='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x4576e7)?[_0x4576e7]:_0x4576e7;}}function fi(_0x289cd3){return null!==_0x289cd3&&'object'==typeof _0x289cd3&&'nodeType'in _0x289cd3&&0x1===_0x289cd3['nodeType'];}class S extends _0x4d4ef2{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4056bf=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x5ead02(),this['_focusTracker']['on']('change:isFocused',(_0x44d9a6,_0x42e78e,_0x16d1bd)=>{_0x16d1bd||this['fire']('blur');});for(const _0x306bd4 of _0x4056bf)this['add'](_0x306bd4);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2b069d){if(this['has'](_0x2b069d))throw new _0xd3f428('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2b069d['innerView'],_0x2b069d),this['_viewToAnnotation']['set'](_0x2b069d['view'],_0x2b069d);for(const _0x46d655 of _0x2b069d['focusableElements'])this['_focusTracker']['add'](_0x46d655);this['listenTo'](_0x2b069d['focusableElements'],'add',(_0x135c27,_0x4fa925)=>{this['_focusTracker']['add'](_0x4fa925);}),this['listenTo'](_0x2b069d['focusableElements'],'remove',(_0x5b60d3,_0x41b2a3)=>{this['_focusTracker']['remove'](_0x41b2a3);}),this['listenTo'](_0x2b069d['view']['focusTracker'],'change:isFocused',(_0xc195a3,_0x5c0cbd,_0xf83093)=>{_0xf83093&&this['fire']('focus',_0x2b069d);}),_0x2b069d['updateTargetRect']();const _0xd244d4=this['_getOrderInContent'](_0x2b069d['view']['targetRect']);return super['add'](_0x2b069d,_0xd244d4);}['remove'](_0x35b2dc){if(!this['has'](_0x35b2dc))throw new _0xd3f428('annotationcollection-not-existing-item',null);this['stopListening'](_0x35b2dc['view']['focusTracker']),this['stopListening'](_0x35b2dc['focusableElements']);for(const _0x428f3d of _0x35b2dc['focusableElements'])this['_focusTracker']['remove'](_0x428f3d);return this['_viewToAnnotation']['delete'](_0x35b2dc['view']),this['_innerViewToAnnotation']['delete'](_0x35b2dc['innerView']),super['remove'](_0x35b2dc);}['getByInnerView'](_0x38e41c){return this['_innerViewToAnnotation']['get'](_0x38e41c);}['getByView'](_0xaab835){return this['_viewToAnnotation']['get'](_0xaab835);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2ca17d of this)_0x2ca17d['updateTargetRect']();this['_sort']();}['_sort'](){const _0x18ed5c=Array['from'](this)['sort']((_0x36636e,_0x3300d5)=>w(_0x36636e['view']['targetRect'],_0x3300d5['view']['targetRect']));for(let _0x52f7fc=_0x18ed5c['length']-0x1;_0x52f7fc>0x0;_0x52f7fc--){const _0x1df019=_0x18ed5c[_0x52f7fc];_0x52f7fc!==this['getIndex'](_0x1df019)&&(this['remove'](_0x1df019),this['add'](_0x1df019));}}['_getOrderInContent'](_0x42249c){let _0xae5d93=0x0;if(!_0x42249c)return this['length'];for(const _0x2d58c5 of this){const _0x2b2a18=_0x2d58c5['view']['targetRect'];if(_0x2b2a18){if(w(_0x42249c,_0x2b2a18)<0x0)return _0xae5d93;_0xae5d93++;}}return _0xae5d93;}}function v({source:_0x1c53b1,target:_0xccb3d2,filter:_0x4db1e7}){for(const _0x34abc4 of _0x1c53b1)_0x4db1e7(_0x34abc4)&&_0xccb3d2['add'](_0x34abc4);_0xccb3d2['listenTo'](_0x1c53b1,'add',(_0x5df2a9,_0x10230e)=>{_0x4db1e7(_0x10230e)&&_0xccb3d2['add'](_0x10230e);}),_0xccb3d2['listenTo'](_0x1c53b1,'remove',(_0xfe4423,_0x39e7d3)=>{_0xccb3d2['has'](_0x39e7d3)&&_0xccb3d2['remove'](_0x39e7d3);});}function w(_0x25d01c,_0x2b88ef){if(null===_0x25d01c&&null===_0x2b88ef)return 0x0;if(null===_0x25d01c)return-0x1;if(null===_0x2b88ef)return 0x1;const _0x21cc35=_0x25d01c['top']-_0x2b88ef['top'];return 0x0==_0x21cc35?_0x25d01c['left']-_0x2b88ef['left']:_0x21cc35;}class y extends _0xfe7412{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41d1b1){if(super(_0x41d1b1),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x41d1b1 instanceof _0x252910){const _0x48936b=_0x41d1b1['locale'];_0x41d1b1['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x48936b,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x48936b,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x48936b,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x48936b,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x48936b,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x48936b,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x48936b,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x1daccc){this['collection']['add'](_0x1daccc);}['remove'](_0x3ec6ef){this['collection']['remove'](_0x3ec6ef),_0x3ec6ef['destroy']();}['refreshVisibility'](){for(const _0x464f21 of this['collection'])_0x464f21['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x19d455){return this['collection']['getByInnerView'](_0x19d455);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3bc05b of this['collection'])_0x3bc05b['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x3b175c){this['fire']('_activateAnnotation',_0x3b175c);}['createAnnotation'](_0x5691b9){return new T(_0x5691b9);}['createAnnotationView'](_0x1ea36e,_0x4af3a3){return new E(_0x1ea36e,_0x4af3a3);}['_addActiveAnnotation'](_0x268ea9){const _0x2d18e8=new Set(this['activeAnnotations']);_0x2d18e8['add'](_0x268ea9),this['activeAnnotations']=_0x2d18e8;}['_removeActiveAnnotation'](_0x4995ec){const _0x1ca1c8=new Set(this['activeAnnotations']);_0x1ca1c8['delete'](_0x4995ec),this['activeAnnotations']=_0x1ca1c8;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3eb528=this['collection'],_0x548258=this['_visibleAnnotations'];function _0xd7609a(_0x54babf){const _0x7819d4=_0x54babf['source'];_0x7819d4['isVisible']&&!_0x548258['has'](_0x7819d4)?_0x548258['add'](_0x7819d4):!_0x7819d4['isVisible']&&_0x548258['has'](_0x7819d4)&&_0x548258['remove'](_0x7819d4),_0x7819d4['view']['focusTracker']['remove'](_0x7819d4['view']['element']),_0x7819d4['view']['focusTracker']['add'](_0x7819d4['view']['element']);}this['listenTo'](_0x3eb528,'add',(_0x2502f2,_0x10a4e6)=>{_0x10a4e6['isVisible']&&_0x548258['add'](_0x10a4e6),this['listenTo'](_0x10a4e6,'change:isVisible',_0xd7609a);}),this['listenTo'](_0x3eb528,'remove',(_0x186ff5,_0x2a831d)=>{_0x548258['has'](_0x2a831d)&&_0x548258['remove'](_0x2a831d),this['stopListening'](_0x2a831d,'change:isVisible',_0xd7609a);});}['_setupEnterAnnotationKeystroke'](){const _0x3d14bf=_0x4dc176=>{_0x4dc176['on']('ready',()=>{_0x4dc176['keystrokes']['set'](_0x5c1e03,(_0x53d219,_0x35f338)=>{const _0x3412a=_0x79f2a3(this['activeAnnotations']['values']());_0x3412a&&(_0x3412a['view']['focus'](),_0x35f338());});});};this['context']instanceof _0x252910?_0x3d14bf(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x35143e,_0x51f3cd)=>{_0x3d14bf(_0x51f3cd);});}['_setupEscapeAnnotationHandling'](){const _0x1fb6b3=_0x24a2f5=>{const _0x2a9d03=_0x24a2f5['source'],_0x2b79d1=[];let _0x37751c;if(Array['isArray'](_0x2a9d03['target'])){_0x37751c=_0x2a9d03['target'][0x0],this['context']instanceof _0x252910?_0x2b79d1['push'](this['context']):this['context']['editors']&&_0x2b79d1['push'](...this['context']['editors']);for(const _0x8fed77 of _0x2b79d1)for(const _0x3780ff of _0x8fed77['editing']['view']['domRoots']['values']())if(_0x3780ff['contains'](_0x37751c))return void _0x8fed77['editing']['view']['focus']();_0x37751c['focus']();}};this['listenTo'](this['collection'],'add',(_0x5a6cdb,_0xa46581)=>{this['listenTo'](_0xa46581,'escape',_0x1fb6b3,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x41fc40,_0x1f4e54)=>{this['stopListening'](_0x1f4e54,'escape',_0x1fb6b3);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0xfe7412{['_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(_0x2c14aa){super(_0x2c14aa),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2c998=this['context']['config'];_0x2c998['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2c998['define']('comments.maxThreadTotalWeight',0x1f4),_0x2c998['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2c998['define']('comments.CommentThreadView',gt),_0x2c998['define']('comments.CommentView',Tt),_0x2c998['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x59b3ab=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x382e57,_0x446bfa)=>this['_addCommentThread'](_0x446bfa)),this['on']('submitCommentThread',(_0x294d0a,_0x446698)=>this['_submitCommentThread'](_0x446698)),this['on']('resolveCommentThread',(_0x3c294c,_0x1db80d)=>this['_resolveCommentThread'](_0x1db80d)),this['on']('resolveCommentThread',(_0x267421,_0x3735d6)=>this['_updateActiveAnnotation'](_0x3735d6),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x4fc05e,_0x1be68b)=>this['_reopenCommentThread'](_0x1be68b)),this['on']('reopenCommentThread',(_0x3c0fa0,_0x355efb)=>this['_updateActiveAnnotation'](_0x355efb),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4f548e,_0x19326c)=>this['_removeCommentThread'](_0x19326c)),this['on']('updateCommentThread',(_0x46624e,_0x3b0197)=>this['_updateCommentThread'](_0x3b0197)),this['on']('updateCommentThread',(_0x5603ef,_0x45539c)=>this['_updateActiveAnnotation'](_0x45539c),{'priority':'lowest'}),this['on']('addComment',(_0x1b56b1,_0x57587c)=>this['_addComment'](_0x57587c)),this['on']('updateComment',(_0x549820,_0x407adc)=>this['_updateComment'](_0x407adc)),this['on']('removeComment',(_0x592689,_0xe52627)=>this['_removeComment'](_0xe52627)),this['on']('addComment',(_0x2dc57a,{threadId:_0x406771,isFromAdapter:_0x119d56})=>{if(_0x119d56)return;const _0x526f15=this['getCommentThread'](_0x406771),_0x57d36f=_0x526f15&&this['_threadToController']['get'](_0x526f15);_0x57d36f&&_0x57d36f['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x59b3ab,'change:activeAnnotations',(_0x5e5f7c,_0x163c22,_0x18145d)=>{const _0xfdc270=Array['from'](_0x18145d)['map'](_0x292a20=>this['_viewToController']['get'](_0x292a20['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xfdc270?_0xfdc270['model']:null;});}set['adapter'](_0x27569c){if(this['_adapter'])throw new _0xd3f428('commentsrepository-adapter-already-set');this['_adapter']=_0x27569c;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x38b41f=_t,threadId:_0x3c0953=_0x33127a(),comments:_0x53650a=[],unlinkedAt:_0x5eb3c7=null,resolvedAt:_0x2132bd=null,resolvedBy:_0x479776=null,target:_0x5de8b6=null,context:_0x298a11=null,attributes:_0x5a0e33={},isResolvable:_0x5be937=!0x0,isSubmitted:_0x3a3f59=!0x1,isFromAdapter:_0xd64c2c=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x38b41f),{'channelId':_0x38b41f,'threadId':_0x3c0953,'comments':_0x53650a,'unlinkedAt':_0x5eb3c7,'resolvedAt':_0x2132bd,'resolvedBy':_0x479776,'target':_0x5de8b6,'context':_0x298a11,'attributes':_0x5a0e33,'isFromAdapter':_0xd64c2c,'isResolvable':_0x5be937,'isSubmitted':_0x3a3f59}),this['getCommentThread'](_0x3c0953);}['openNewCommentThread']({channelId:_0x2eb407=_t,threadId:_0x11ea85=_0x33127a(),target:_0x399f2f,context:_0xfdce32=null,isResolvable:_0x5cb500=!0x0}){if(this['_readOnlyChannels']['has'](_0x2eb407)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x399f2f)throw new _0xd3f428('commentsrepository-missing-target');const _0x5a7116=this['addCommentThread']({'channelId':_0x2eb407,'threadId':_0x11ea85,'target':_0x399f2f,'context':_0xfdce32,'isResolvable':_0x5cb500});if(!_0x5a7116)return null;const _0x3177a6=this['_threadToController']['get'](_0x5a7116),_0x40ee61=_0x3177a6['view']['commentThreadInputView']['commentInputView'],_0xd79ff4=this['context']['plugins']['get'](y),_0xb6741c=_0xd79ff4['getByInnerView'](_0x3177a6['view']);return _0xd79ff4['activate'](_0xb6741c),_0x40ee61['once']('editorReady',()=>_0x40ee61['focus']()),_0x5a7116;}['hasCommentThread'](_0x4da101){if('string'!=typeof _0x4da101)throw new _0xd3f428('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4da101);}['updateCommentThread']({channelId:_0x3dcbfe=_t,threadId:_0xcdabc1,context:_0x557156,unlinkedAt:_0x5995bd,attributes:_0x570e5f,isFromAdapter:_0x30318a=!0x1}){return this['fire'](Nt('updateCommentThread',_0x3dcbfe),{'channelId':_0x3dcbfe,'threadId':_0xcdabc1,'context':_0x557156,'unlinkedAt':_0x5995bd,'attributes':_0x570e5f,'isFromAdapter':_0x30318a}),this['getCommentThread'](_0xcdabc1);}['getCommentThread'](_0x129b52){if('string'!=typeof _0x129b52)throw new _0xd3f428('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x129b52);}['fetchCommentThread']({channelId:_0x2240ca,threadId:_0x244b20}={}){const _0x5b643c=this['getCommentThread'](_0x244b20);if(_0x5b643c)return Promise['resolve'](_0x5b643c);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0xd3f428('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x2240ca,'threadId':_0x244b20})['then'](_0x32bacd=>this['hasCommentThread'](_0x244b20)?this['getCommentThread'](_0x244b20):_0x32bacd?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x2240ca},_0x32bacd)):void 0x0)['catch'](_0x46f2e0=>{throw console['error'](_0x46f2e0),new _0xd3f428('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x534a94,skipNotAttached:_0x303f27=!0x1,skipEmpty:_0x4f8ee3=!0x1,toJSON:_0x6b2764=!0x1}={}){const _0x7c78d9=[];for(const _0x7596ed of this['_threads']['values']())_0x534a94&&_0x7596ed['channelId']!==_0x534a94||_0x303f27&&!_0x7596ed['isAttached']||_0x4f8ee3&&0x0===_0x7596ed['length']||_0x7c78d9['push'](_0x7596ed);return _0x6b2764?_0x7c78d9['map'](_0x2b8f75=>_0x2b8f75['toJSON']()):_0x7c78d9;}['getAnnotationForCommentThread'](_0x322387){const _0x481ae5=this['_threadToController']['get'](_0x322387);if(!_0x481ae5)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x481ae5['view'])||null;}['getCommentThreadForAnnotation'](_0xdfa859){const _0x381448=this['_viewToController']['get'](_0xdfa859['innerView']);return _0x381448?_0x381448['model']:null;}['setActiveCommentThread'](_0x1229e8){const _0x30c180=this['context']['plugins']['get'](y);if(!_0x1229e8)return void(this['activeCommentThread']&&_0x30c180['deactivateAll']());const _0x3fd574=this['getCommentThread'](_0x1229e8);if(!_0x3fd574)throw new _0xd3f428('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x1229e8});if(!this['_threadToController']['has'](_0x3fd574))throw new _0xd3f428('commentsrepository-active-not-attached',null,{'threadId':_0x1229e8});const _0x31c58a=_0x30c180['getByInnerView'](this['_threadToController']['get'](_0x3fd574)['view']);_0x30c180['activate'](_0x31c58a);}['switchReadOnly'](_0x4c3cd6,_0x3b9f29){_0x4c3cd6?this['_readOnlyChannels']['add'](_0x3b9f29):this['_readOnlyChannels']['delete'](_0x3b9f29),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1508cd){return this['_readOnlyChannels']['has'](_0x1508cd)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x5cfa0d,_0x429927){return new vt(_0x5cfa0d,_0x429927);}['setPermissions'](_0x417b5f,_0x4dd423=_t){this['_permissions']['set'](_0x4dd423,_0x417b5f),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x28017d=_t){return this['_permissions']['has'](_0x28017d)?this['_permissions']['get'](_0x28017d):bt;}['_addCommentThread']({channelId:_0x3bf02f,threadId:_0x169036,comments:_0x260572,unlinkedAt:_0x7704c0,resolvedAt:_0x241ec1,resolvedBy:_0x1d822f,target:_0x44f462,context:_0x3b0850,attributes:_0x3ff6d9,isFromAdapter:_0x5ad149,isResolvable:_0x5d8181,isSubmitted:_0x157ae2}){if('string'!=typeof _0x169036)throw new _0xd3f428('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x169036});if(this['hasCommentThread'](_0x169036))throw new _0xd3f428('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x169036});const _0x38ede5=new pi(this,{'channelId':_0x3bf02f,'id':_0x169036,'context':_0x3b0850,'attributes':_0x3ff6d9,'unlinkedAt':_0x7704c0,'resolvedAt':_0x241ec1,'resolvedBy':_0x1d822f?this['context']['plugins']['get'](it)['getUser'](_0x1d822f):null,'isResolvable':_0x5d8181,'isSubmitted':_0x157ae2||_0x5ad149});this['_threads']['set'](_0x169036,_0x38ede5);for(const _0x1c3b5c of _0x260572)_0x38ede5['_add'](this['_createNewComment']({'threadId':_0x169036,..._0x1c3b5c}));return _0x44f462&&_0x38ede5['attachTo'](_0x44f462),_0x5ad149||!_0x38ede5['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3bf02f,'threadId':_0x169036});}['_submitCommentThread']({channelId:_0x41b17f,threadId:_0x37e88d}){if(!this['hasCommentThread'](_0x37e88d))throw new _0xd3f428('commentsrepository-missing-comment-thread',this);const _0x33a1ab=this['getCommentThread'](_0x37e88d);if(_0x33a1ab['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x47e552,comments:_0x10e70e,resolvedAt:_0x390b13,resolvedBy:_0x4f4557,context:_0x592a74,attributes:_0x132045}=_0x33a1ab,_0x4e17cc=this['context']['plugins']['get']('PendingActions'),_0x201c9b=_0x4e17cc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x41b17f,'threadId':_0x47e552,'comments':_0x10e70e['map'](_0x1265eb=>_0x1265eb['toJSON']()),'resolvedAt':_0x390b13,'resolvedBy':_0x4f4557?_0x4f4557['id']:_0x4f4557,'context':_0x592a74,'attributes':_0x132045})['then'](({comments:_0x38f0bb})=>{_0x4e17cc['remove'](_0x201c9b);for(const _0xef679d of _0x38f0bb)this['_updateComment']({'channelId':_0x41b17f,'threadId':_0x37e88d,'commentId':_0xef679d['commentId'],'createdAt':_0xef679d['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4fde12=>{throw console['error'](_0x4fde12),new _0xd3f428('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x13fa6d,target:_0x507dca}){const _0x217b97=this['getCommentThread'](_0x13fa6d);if(!_0x217b97)throw new _0xd3f428('commentsrepository-attach-missing-comment-thread',this);const _0xa777d=this['context']['plugins']['get']('PendingActions'),_0x24cd0f=this['context']['plugins']['get'](y),_0x4f1b4c=this['_createCommentThreadView'](_0x217b97),_0x39ac85=new vt(_0x217b97,_0x4f1b4c);let _0x5d9822=null;_0x4f1b4c['on']('change:isDirty',(_0x303b87,_0x45de0d,_0xd799dc)=>{_0xd799dc?_0x5d9822=_0xa777d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5d9822&&(_0xa777d['remove'](_0x5d9822),_0x5d9822=null);}),this['_threadToController']['set'](_0x217b97,_0x39ac85),this['_viewToController']['set'](_0x4f1b4c,_0x39ac85);const _0x11152a=new E(this['context']['locale'],_0x4f1b4c);_0x11152a['bind']('length')['to'](_0x4f1b4c),_0x11152a['bind']('isDirty')['to'](_0x4f1b4c,'isDirty',_0x4f1b4c,'length',(_0x312b83,_0x42b8da)=>_0x312b83||!_0x42b8da),_0x11152a['bind']('isActive')['to'](_0x4f1b4c),_0x11152a['type']='comment';const _0x343385=new T({'view':_0x11152a,'target':_0x507dca,'type':'comment','isVisible':!_0x217b97['archivedAt']&&!!('function'==typeof _0x507dca?_0x507dca():_0x507dca)});return _0x4f1b4c['on']('escape',()=>{_0x343385['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4f1b4c,_0x343385),_0x24cd0f['add'](_0x343385),_0x343385;}['_bindAnnotationToEditors'](_0x1f0bfe,_0x4aff32){this['listenTo'](_0x1f0bfe,'editorReady',(_0x3ba840,_0x93f5d4)=>{const _0x4fa0d5=_0x93f5d4['ui']['view']['body']['bodyCollectionContainer'];_0x4aff32['focusableElements']['add'](_0x4fa0d5),this['context']instanceof _0x252910&&this['context']['ui']['focusTracker']['add'](_0x4fa0d5);},{'priority':'highest'}),this['listenTo'](_0x1f0bfe,'editorDestroyed',(_0x67cf1e,_0x257f93)=>{const _0x51e864=_0x257f93['ui']['view']['body']['bodyCollectionContainer'];_0x4aff32['focusableElements']['has'](_0x51e864)&&_0x4aff32['focusableElements']['remove'](_0x51e864),this['context']instanceof _0x252910&&this['context']['ui']['focusTracker']['remove'](_0x51e864);});}['_unbindEditors'](_0x47fd16){this['stopListening'](_0x47fd16,'editorReady'),this['stopListening'](_0x47fd16,'editorDestroyed');}['_createCommentThreadView'](_0x335ade){const _0x27cc8e=this['context']['plugins']['get'](it),{config:_0x1b6c9e,locale:_0x3c239c}=this['context'],_0x381073=pt(_0x1b6c9e['get']('locale'),_0x3c239c);return new(0x0,(_0x1b6c9e['get']('comments'))['CommentThreadView'])(_0x3c239c,_0x335ade,_0x27cc8e['me'],{'editorConfig':{..._0x1b6c9e['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x1b6c9e['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x1b6c9e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1b6c9e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1b6c9e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x381073,'CommentView':_0x1b6c9e['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5f2a3d,channelId:_0x891517,resolvedAt:_0x4f8135,resolvedBy:_0x4fe540,isFromAdapter:_0x388664}){if(!this['hasCommentThread'](_0x5f2a3d))throw new _0xd3f428('commentsrepository-missing-comment-thread',null,{'threadId':_0x5f2a3d});const _0x2def6f=this['getCommentThread'](_0x5f2a3d);if(_0x2def6f['isResolved'])throw new _0xd3f428('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5f2a3d});const _0x2c547d=this['context']['plugins']['get'](it);if(_0x2def6f['resolvedBy']=_0x2c547d['getUser'](_0x4fe540),_0x2def6f['resolvedAt']=_0x4f8135,_0x388664||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5497bf=this['context']['plugins']['get']('PendingActions'),_0x17891b=_0x5497bf['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x891517,'threadId':_0x5f2a3d})['then'](({resolvedAt:_0xa3970e,resolvedBy:_0x345452})=>{_0x5497bf['remove'](_0x17891b),_0x2def6f['resolvedBy']['id']!==_0x345452&&(_0x2def6f['resolvedBy']=_0x2c547d['getUser'](_0x345452)),_0x2def6f['resolvedAt']=_0xa3970e;})['catch'](_0x5e1b38=>{throw console['error'](_0x5e1b38),new _0xd3f428('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x10f864,channelId:_0x231594,isFromAdapter:_0x433ddd}){if(!this['hasCommentThread'](_0x10f864))throw new _0xd3f428('commentsrepository-missing-comment-thread',null,{'threadId':_0x10f864});const _0x44db8a=this['getCommentThread'](_0x10f864);if(!_0x44db8a['isResolved'])throw new _0xd3f428('commentsrepository-reopen-comment-thread',null,{'threadId':_0x10f864});if(_0x44db8a['resolvedBy']=null,_0x44db8a['resolvedAt']=null,_0x433ddd||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5e05fc=this['context']['plugins']['get']('PendingActions'),_0x1ede8b=_0x5e05fc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x231594,'threadId':_0x10f864})['then'](()=>_0x5e05fc['remove'](_0x1ede8b))['catch'](_0x2aab3e=>{throw console['error'](_0x2aab3e),new _0xd3f428('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xe27585,isFromAdapter:_0x5752e7}){const _0x45fc6f=this['getCommentThread'](_0xe27585);if(!_0x45fc6f)throw new _0xd3f428('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xe27585),this['_threads']['delete'](_0xe27585),!_0x45fc6f['isSubmitted']||_0x5752e7||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x4f1151=this['context']['plugins']['get']('PendingActions'),{channelId:_0x54736b}=_0x45fc6f,_0xe10d5=_0x4f1151['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x54736b,'threadId':_0xe27585})['then'](()=>_0x4f1151['remove'](_0xe10d5))['catch'](_0x3367d0=>{throw console['error'](_0x3367d0),new _0xd3f428('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x56b844,unlinkedAt:_0xb870df,context:_0x550d33,attributes:_0x1f215a,isFromAdapter:_0x22260f}){if('string'!=typeof _0x56b844)throw new _0xd3f428('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x56b844});if(!this['hasCommentThread'](_0x56b844))throw new _0xd3f428('commentsrepository-missing-comment-thread',null,{'threadId':_0x56b844});const _0x180fdd=this['getCommentThread'](_0x56b844);let _0x53473a=!0x1;if(void 0x0!==_0x550d33&&_0x180fdd['context']!==_0x550d33&&(_0x180fdd['context']=_0x550d33,_0x53473a=!0x0),void 0x0!==_0xb870df&&_0x180fdd['unlinkedAt']!==_0xb870df&&(_0x180fdd['unlinkedAt']=_0xb870df,_0x53473a=!0x0),_0x1f215a&&!At(_0x1f215a,_0x180fdd['attributes'])&&(_0x180fdd['attributes']=_0x1f215a,_0x53473a=!0x0),!_0x53473a)return Promise['resolve']();if(!_0x180fdd['isSubmitted']||_0x22260f||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x470ea6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3e57cc}=_0x180fdd,_0x2ed49b=_0x470ea6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x3e57cc,'threadId':_0x56b844,'context':_0x550d33,'unlinkedAt':_0xb870df,'attributes':_0x1f215a})['then'](()=>_0x470ea6['remove'](_0x2ed49b))['catch'](_0x5d754f=>{throw console['error'](_0x5d754f),new _0xd3f428('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x185b8b){const _0x2c7860=this['context']['plugins']['get'](y),_0x13ff61=this['getCommentThread'](_0x185b8b);if(_0x13ff61['_isAttached']=!0x1,this['_threadToController']['has'](_0x13ff61)){const _0x2df114=this['_threadToController']['get'](_0x13ff61),_0x2d6339=_0x2df114['view'],_0x444270=_0x2c7860['getByInnerView'](_0x2d6339);this['_threadToController']['delete'](_0x13ff61),this['_viewToController']['delete'](_0x2d6339),_0x444270&&_0x2c7860['remove'](_0x444270),_0x2df114['destroy'](),_0x2d6339['destroy']()['then'](()=>{this['_unbindEditors'](_0x2d6339);});}}['_updateActiveAnnotation']({threadId:_0x5ee7bb,resolvedAt:_0x58250e,unlinkedAt:_0x2fc533}){const _0x3d88d0=!!_0x58250e,_0x4b9111=this['context']['plugins']['get'](y),_0x49ac2f=this['getCommentThread'](_0x5ee7bb);if(this['_threadToController']['has'](_0x49ac2f)){const _0x1c122c=this['_threadToController']['get'](_0x49ac2f)['view'],_0x5e562a=_0x4b9111['getByInnerView'](_0x1c122c);_0x5e562a&&(_0x3d88d0&&_0x4b9111['_removeActiveAnnotation'](_0x5e562a),_0x2fc533?_0x5e562a['isVisible']=!0x1:_0x5e562a['refreshVisibility']());}}['_getExternalAuthor'](_0x3857f0){const _0x515511=this['context']['plugins']['get'](it),_0x6b7d98=It('external:'+_0x3857f0),_0x521bff=_0x515511['getUser'](_0x6b7d98);return _0x521bff||_0x515511['addUser']({'id':_0x6b7d98,'name':_0x3857f0});}['_createNewComment']({threadId:_0x126683,commentId:_0x27a684=_0x33127a(),content:_0xa0052b,authorId:_0xd9c94a,createdAt:_0x24ccfe,attributes:_0x4f4829}){if('string'!=typeof _0x27a684)throw new _0xd3f428('commentsrepository-invalid-commentid');if('string'!=typeof _0xd9c94a)throw new _0xd3f428('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0xa0052b||!_0xa0052b['trim']())throw new _0xd3f428('commentsrepository-invalid-comment-content');const _0x37bd91=this['context']['plugins']['get'](it)['getUser'](_0xd9c94a);if(!_0x37bd91)throw new _0xd3f428('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0xd9c94a});let _0x257d8d=null,_0x38b290=_0x24ccfe;return _0x4f4829?.['@external']&&(_0x257d8d=this['_getExternalAuthor'](_0x4f4829['@external']['authorName']),_0x38b290=new Date(_0x4f4829['@external']['createdAt'])),new wi(this,{'threadId':_0x126683,'id':_0x27a684,'author':_0x257d8d||_0x37bd91,'creator':_0x37bd91,'content':_0xa0052b,'createdAt':_0x24ccfe,'authoredAt':_0x38b290,'attributes':_0x4f4829});}['_addComment'](_0x42859b){let {threadId:_0x4b4636,content:_0x44f0f6,attributes:_0x44a4dc,isFromAdapter:_0x137b3c}=_0x42859b;const _0x201ed0=this['getCommentThread'](_0x42859b['threadId']);if(!_0x201ed0)throw new _0xd3f428('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x50d8bd=this['_createNewComment'](_0x42859b),{id:_0xf920f9}=_0x50d8bd;if(_0x201ed0['_add'](_0x50d8bd),_0x137b3c||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x201ed0['isSubmitted'])return Promise['resolve']();const _0x4b142b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x313f26}=_0x201ed0,_0x12d0a6=_0x4b142b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x44a4dc||(_0x44a4dc={}),this['adapter']['addComment']({'channelId':_0x313f26,'threadId':_0x4b4636,'commentId':_0xf920f9,'content':_0x44f0f6,'attributes':_0x44a4dc})['then'](_0x55591e=>{_0x4b142b['remove'](_0x12d0a6),_0x55591e&&this['_updateComment']({'channelId':_0x313f26,'threadId':_0x4b4636,'commentId':_0xf920f9,'createdAt':_0x55591e['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4dad4f=>{throw console['error'](_0x4dad4f),new _0xd3f428('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x56c709,commentId:_0x17ecf8,content:_0x5f0c7d,createdAt:_0x2918cc,attributes:_0x3fca53,isFromAdapter:_0x2c1a91}){if(void 0x0!==_0x5f0c7d&&('string'!=typeof _0x5f0c7d||!_0x5f0c7d['trim']()['length']))throw new _0xd3f428('commentsrepository-update-comment-invalid-content');const _0x7f70ba=this['getCommentThread'](_0x56c709),_0x32acf3=_0x7f70ba['getComment'](_0x17ecf8);if(!_0x32acf3)throw new _0xd3f428('commentsrepository-update-missing-comment',this);let _0xa2ba1f=!0x1;if(_0x5f0c7d&&_0x5f0c7d!==_0x32acf3['content']&&(_0x32acf3['isEditable']||_0x2c1a91)&&(_0x32acf3['content']=_0x5f0c7d,_0xa2ba1f=!0x0),_0x2918cc&&_0x2918cc!==_0x32acf3['createdAt']&&(_0x32acf3['createdAt']=_0x2918cc,_0x32acf3['attributes']&&_0x32acf3['attributes']['@external']||(_0x32acf3['authoredAt']=_0x2918cc),_0xa2ba1f=!0x0),_0x3fca53&&!At(_0x3fca53,_0x32acf3['attributes'])&&(_0x32acf3['attributes']=_0x3fca53,_0xa2ba1f=!0x0),!_0xa2ba1f)return Promise['resolve']();if(_0x7f70ba['fire']('commentUpdated'),_0x2c1a91||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x3bbda6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5cc634}=this['getCommentThread'](_0x32acf3['threadId']),_0x4bbcb2=_0x3bbda6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x5cc634,'threadId':_0x56c709,'commentId':_0x17ecf8,'content':_0x5f0c7d,'attributes':_0x3fca53})['then'](()=>_0x3bbda6['remove'](_0x4bbcb2))['catch'](_0x4a8e53=>{throw console['error'](_0x4a8e53),new _0xd3f428('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x34bdd2,commentId:_0x4184f8,isFromAdapter:_0x4eacfb}){const _0x7ab718=this['getCommentThread'](_0x34bdd2),_0x1ceb84=_0x7ab718['getComment'](_0x4184f8);if(!_0x1ceb84)throw new _0xd3f428('commentsrepository-remove-missing-comment',this);if(_0x7ab718['_remove'](_0x1ceb84),_0x4eacfb||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2b4d6d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x391099}=_0x7ab718,_0x3f1d5b=_0x2b4d6d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x391099,'threadId':_0x34bdd2,'commentId':_0x4184f8})['then'](()=>_0x2b4d6d['remove'](_0x3f1d5b))['catch'](_0x4851ee=>{throw console['error'](_0x4851ee),new _0xd3f428('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x1297b8(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0xdccff9,_0x2b6912){super();const _0x49a01a=_0x2b6912['isResolvable'];this['channelId']=_0x2b6912['channelId'],this['id']=_0x2b6912['id'],this['comments']=new _0x4d4ef2(),this['_repository']=_0xdccff9,this['_isAttached']=!0x1,this['_isSubmitted']=_0x2b6912['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0xdccff9,'_permissions',_0xdccff9,'_readOnlyChannels',()=>_0xdccff9['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0xdccff9,'_permissions',()=>_0xdccff9['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0xdccff9,'_permissions',()=>{const _0x33cdaf=_0xdccff9['getPermissions'](this['channelId']);return _0x33cdaf['write']||_0x33cdaf['admin'];}),this['bind']('isResolvable')['to'](_0xdccff9,'_permissions',()=>_0x49a01a&&_0xdccff9['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x2b6912['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x15d973,_0x115cba)=>_0x15d973?_0x115cba?_0x15d973<_0x115cba?_0x15d973:_0x115cba:_0x15d973:_0x115cba),this['set']('unlinkedAt',_0x2b6912['unlinkedAt']||null),this['set']('resolvedAt',_0x2b6912['resolvedAt']||null),this['set']('resolvedBy',_0x2b6912['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x3e447e=>!!_0x3e447e),this['set']('attributes',_0x2b6912['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x1da5be,_0x41933a)=>_0x1da5be+_0x41933a['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x3d306e,id:_0x17096f}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x3d306e),{'channelId':_0x3d306e,'threadId':_0x17096f});}['setUnlinkedAt'](_0x20ce89){this['_update']({'unlinkedAt':_0x20ce89});}['resolve']({resolvedAt:_0x4ff66f=new Date(),resolvedBy:_0x10a1d8=null,isFromAdapter:_0x28dc91=!0x1}={}){const _0x1dc1b8=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4e4157,id:_0x1343a6}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x4e4157),{'channelId':_0x4e4157,'threadId':_0x1343a6,'resolvedAt':_0x4ff66f,'resolvedBy':_0x10a1d8||_0x1dc1b8['id'],'isFromAdapter':_0x28dc91});}['reopen']({isFromAdapter:_0x1bd651=!0x1}={}){const {channelId:_0x3c8f19,id:_0x3bb034}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x3c8f19),{'channelId':_0x3c8f19,'threadId':_0x3bb034,'isFromAdapter':_0x1bd651});}['setContext'](_0x34a8c){this['context']||this['_update']({'context':_0x34a8c});}['setAttribute'](_0x2429b6,_0x6ed7cc){const _0x24cd5d=wt(this['attributes']);yt(_0x24cd5d,_0x2429b6,_0x6ed7cc),this['_update']({'attributes':_0x24cd5d});}['removeAttribute'](_0x5bbbc5){const _0x4ff714=wt(this['attributes']);Ct(_0x4ff714,_0x5bbbc5),this['_update']({'attributes':_0x4ff714});}['remove']({isFromAdapter:_0x31192a=!0x1}={}){const {channelId:_0x31fea5,id:_0x31475d}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x31fea5),{'channelId':_0x31fea5,'threadId':_0x31475d,'isFromAdapter':_0x31192a});}['attachTo'](_0x457d44){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x457d44});}['addComment'](_0x2cc554){const {channelId:_0x516308,id:_0x29c830}=this;this['_repository']['fire'](Nt('addComment',_0x516308,_0x29c830),Object['assign']({'channelId':_0x516308,'threadId':_0x29c830},_0x2cc554));}['getComment'](_0x2b5d25){if('string'!=typeof _0x2b5d25)throw new _0xd3f428('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2b5d25});return this['comments']['get'](_0x2b5d25);}['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'](_0x252310=>_0x252310['toJSON']()),'attributes':this['attributes']};}['_add'](_0x1ba57d){return this['listenTo'](_0x1ba57d,'change:authoredAt',()=>{const _0x47b00a=this['_findOptimalIndex'](_0x1ba57d),_0x248647=this['comments'];_0x47b00a-0x1!=_0x248647['getIndex'](_0x1ba57d)&&_0x47b00a+0x1!=_0x248647['getIndex'](_0x1ba57d)&&(this['_remove'](_0x1ba57d),this['_add'](_0x1ba57d));}),this['comments']['add'](_0x1ba57d,this['_findOptimalIndex'](_0x1ba57d));}['_update'](_0x4f59c3){const {channelId:_0x1e0a75,id:_0x27ed57}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x1e0a75),{..._0x4f59c3,'channelId':_0x1e0a75,'threadId':_0x27ed57});}['_remove'](_0xd4cec){return this['stopListening'](_0xd4cec),_0xd4cec['destroy'](),this['comments']['remove'](_0xd4cec);}['_findOptimalIndex'](_0xf755e7){const _0x36ddb4=this['comments']['find'](_0x59f7c7=>new Date(_0x59f7c7['authoredAt'])['getTime']()>new Date(_0xf755e7['authoredAt'])['getTime']());return _0x36ddb4?this['comments']['getIndex'](_0x36ddb4):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x1297b8(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x24161b,_0x1c51e5){super();const _0x4fbebe=_0x24161b['context']['plugins']['get'](it)['me'],_0x44dd58=_0x24161b['getCommentThread'](_0x1c51e5['threadId']),_0x49985d=0x0===_0x44dd58['comments']['length'],_0x24b9c9=_0x4fbebe===_0x1c51e5['author'];this['id']=_0x1c51e5['id'],this['threadId']=_0x1c51e5['threadId'],this['author']=_0x1c51e5['author'],this['creator']=_0x1c51e5['creator'],this['isExternal']=Boolean(_0x1c51e5['attributes']&&_0x1c51e5['attributes']['@external']),this['set']('content',_0x1c51e5['content']),this['createdAt']=_0x1c51e5['createdAt']||new Date(),this['set']('authoredAt',_0x1c51e5['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x44dd58,'resolvedAt'),this['set']('attributes',_0x1c51e5['attributes']||{}),this['bind']('isEditable')['to'](_0x24161b,'_permissions',()=>{const _0x53e16f=_0x24161b['getPermissions'](_0x44dd58['channelId'])['write'],_0x47ed57=_0x24161b['getPermissions'](_0x44dd58['channelId'])['modifyAll'];return _0x24b9c9&&_0x53e16f||!_0x24b9c9&&_0x47ed57;}),this['bind']('isRemovable')['to'](_0x44dd58,'isRemovable',_0x24161b,'_permissions',_0x10242b=>{const _0x35d0a7=_0x24161b['getPermissions'](_0x44dd58['channelId'])['write'],_0x2b69af=_0x24161b['getPermissions'](_0x44dd58['channelId'])['modifyAll'];return _0x24b9c9&&_0x35d0a7||_0x10242b&&_0x49985d||!_0x24b9c9&&_0x2b69af&&!_0x49985d;}),this['bind']('isReadOnly')['to'](_0x44dd58,'isReadOnly'),this['_repository']=_0x24161b;}get['weight'](){return Math['max'](function(_0x7680ea){const _0x46c24f=document['createElement']('div');return _0x46c24f['innerHTML']=_0x7680ea,_0x46c24f['textContent']['length'];}(this['content']),0xc8);}['update'](_0x394a31){const {threadId:_0x409bd8,id:_0x359314}=this;if(!this['_repository']['hasCommentThread'](_0x409bd8))throw new _0xd3f428('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x316853}=this['_repository']['getCommentThread'](_0x409bd8);this['_repository']['fire'](Nt('updateComment',_0x316853,_0x409bd8),{'channelId':_0x316853,'threadId':_0x409bd8,'commentId':_0x359314,..._0x394a31});}['setAttribute'](_0xb09185,_0x510958){const _0x1400d4=wt(this['attributes']);yt(_0x1400d4,_0xb09185,_0x510958),this['update']({'attributes':_0x1400d4});}['removeAttribute'](_0x521872){const _0x281303=wt(this['attributes']);Ct(_0x281303,_0x521872),this['update']({'attributes':_0x281303});}['remove'](_0x329e3b={}){if(!_0x329e3b['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x530185,id:_0x2817ff}=this;if(!this['_repository']['hasCommentThread'](_0x530185))throw new _0xd3f428('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x52b849}=this['_repository']['getCommentThread'](_0x530185);this['_repository']['fire'](Nt('removeComment',_0x52b849,_0x530185),{'channelId':_0x52b849,'threadId':_0x530185,'commentId':_0x2817ff,..._0x329e3b});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x358236,..._0x1a17b4){for(const _0x4d4243 of _0x1a17b4)void 0x0!==_0x4d4243&&(_0x358236+=':'+String(_0x4d4243));return _0x358236;}class ot extends _0x134a73{constructor(_0x8c1544){super(_0x8c1544),this['set']('hasContent',!0x1);}['refresh'](){const _0x144c2d=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x572919 of _0x144c2d['getRanges']())if(this['_hasContent'](_0x572919))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x1c7413=_0x33127a(),ranges:_0x30460e,comment:_0xc056c7}={}){const _0x484cb7=this['editor']['model'],_0xa06449=_0x30460e??Array['from'](_0x484cb7['document']['selection']['getRanges']()),_0x536c0b=[];for(const _0x2d4bb5 of _0xa06449)this['_hasContent'](_0x2d4bb5)&&_0x536c0b['push'](this['_trimToContent'](_0x2d4bb5));if(!_0x536c0b['length'])throw new _0xd3f428('addcommentthreadcommand-incorrect-ranges',null);_0xc056c7&&this['_createCommentThread'](_0x1c7413,_0xc056c7),this['_createMarkersFromRanges'](_0x1c7413,_0x536c0b,!!_0xc056c7);}['_createMarkersFromRanges'](_0x50f03a,_0x2feeea,_0x5c8068){this['editor']['model']['change'](_0x3b10a9=>{for(const _0x5c8a72 of _0x2feeea){const _0x182cbf=_0x33127a()['substr'](0x1,0x5),_0x106179='comment:'+_0x50f03a+':'+_0x182cbf;_0x3b10a9['addMarker'](_0x106179,{'range':_0x5c8a72,'usingOperation':_0x5c8068,'affectsData':_0x5c8068});}});}['_createCommentThread'](_0x345990,_0x5ed158){const _0x2f8303=this['editor']['plugins']['get']('CommentsRepository'),_0x3246c3=this['editor']['config']['get']('collaboration.channelId'),_0x277419=this['editor']['plugins']['get']('Users')['me'];if(!_0x277419)throw new _0xd3f428('addcommentthreadcommand-user-not-found',null);_0x2f8303['addCommentThread']({'threadId':_0x345990,'channelId':_0x3246c3,'comments':[{'authorId':_0x277419['id'],'content':_0x5ed158,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x17b93c){for(const _0x24e68c of _0x17b93c['getItems']())if(this['_itemIsContent'](_0x24e68c))return!0x0;return!0x1;}['_itemIsContent'](_0x14caa8){return _0x14caa8['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x14caa8)&&!_0x14caa8['is']('element','tableCell');}['_trimToContent'](_0x1ba04f){const _0x48012d=_0x1a7689=>!this['_itemIsContent'](_0x1a7689['item']),_0x34ecb1=_0x1ba04f['start']['getLastMatchingPosition'](_0x48012d),_0x59c693=_0x1ba04f['end']['getLastMatchingPosition'](_0x48012d,{'direction':'backward'});return this['editor']['model']['createRange'](_0x34ecb1,_0x59c693);}}class b extends _0x8104b3{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bde85){super(_0x5bde85),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x39af13=this['editor'],_0x19cb5e=_0x39af13['model']['document']['selection'],_0x1e3b14=_0x5e0d3b(()=>this['refreshSelectedViews'](),0xa);_0x19cb5e['on']('change:range',(_0x152813,_0x228a1a)=>{_0x228a1a['directChange']&&(_0x1e3b14['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x39af13['editing']['view']['document'],'change:isFocused',(_0x4ffb37,_0x21c1b3,_0x14c9b7)=>{_0x14c9b7&&_0x1e3b14();}),this['listenTo'](_0x39af13['ui']['focusTracker'],'change:isFocused',(_0x36ea40,_0x532fd0,_0x292b25)=>{_0x292b25||this['fire']('blur',{'isAnnotationTracked':_0x2aa269=>this['_editorAnnotationsData']['has'](_0x2aa269['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4a5e79){if(this['_editorAnnotations']['has'](_0x4a5e79['view']))return;this['_editorAnnotations']['add'](_0x4a5e79['view']),this['editor']['ui']['focusTracker']['add'](_0x4a5e79['view']['element']);const _0x7808f7=this['editor']['plugins']['get'](y);this['listenTo'](_0x7808f7['collection'],'remove',(_0x2c8a6b,_0x4c7b23)=>{this['editor']['ui']['focusTracker']['remove'](_0x4c7b23['view']['element']),this['_editorAnnotations']['delete'](_0x4c7b23['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0xfa354d){if('function'!=typeof _0xfa354d)throw new _0xd3f428('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0xfa354d);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1edee7,annotations:_0x5efbc6}){const _0x1e44d4=[],_0x21522e=this['editor']['model']['document']['selection'],_0x4a2738=Array['from'](_0x21522e['getRanges']());for(const [_0x3617a8,_0x53e1f0]of this['_editorAnnotationsData']){const _0x474990=_0x539d05(_0x53e1f0),_0x31905f=_0x5efbc6['getByInnerView'](_0x3617a8);_0x474990&&_0x31905f&&_0x1e44d4['push']({'annotation':_0x31905f,'range':_0x474990});}function _0x539d05(_0x5cd6b0){for(const _0x5e4ae2 of _0x5cd6b0)for(const _0x42469c of _0x4a2738)if(_0x5e4ae2['containsRange'](_0x42469c,!_0x21522e['isCollapsed']))return _0x5e4ae2;return null;}return _0x1e44d4['sort']((_0x162982,_0x22036a)=>{const _0x1dd508=_0x162982['range'],_0x1e3f7a=_0x22036a['range'];if(!_0x1dd508['isEqual'](_0x1e3f7a)){if(_0x1dd508['containsRange'](_0x1e3f7a,!0x0))return 0x1;if(_0x1e3f7a['containsRange'](_0x1dd508,!0x0))return-0x1;}return _0x162982['annotation']==_0x1edee7?-0x1:_0x22036a['annotation']==_0x1edee7?0x1:0x0;})['map'](_0x541f1c=>_0x541f1c['annotation']);}get['_editorAnnotationsData'](){const _0xf5a0f7=new Map();for(const _0x1eb095 of Array['from'](this['_dataCollectors']))for(const [_0x2924bd,_0x4664e0]of _0x1eb095())_0xf5a0f7['set'](_0x2924bd,_0x4664e0);return _0xf5a0f7;}}class st extends _0x8104b3{['afterInit'](){const _0x4a544d=this['editor'];if(!_0x4a544d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x4a544d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x8104b3{constructor(_0x21e3ce){super(_0x21e3ce),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1869a5=this['editor'],_0x403632=_0x1869a5['commands']['get']('importWord'),_0x10ad52=_0x1869a5['plugins']['get'](it);_0x403632&&(_0x403632['on']('execute',(_0x4de5db,[,_0x2e12aa])=>{_0x2e12aa['collaboration_features']={'comments':!0x0,'user_id':_0x10ad52['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x403632,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x505815,_0x408f24){const {comment_threads:_0x2d025f}=_0x408f24;_0x2d025f&&_0x2d025f['forEach'](({thread_id:_0x3b9b91,comments:_0x5dc11f,is_resolved:_0x500da6})=>{const _0x1369c4=new Date(),_0x4c479a=_0x5dc11f['map'](({author:_0x249623,content:_0x52a7a3,created_at:_0x2bd874})=>({'content':_0x52a7a3,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x1369c4,'attributes':{'@external':{'authorName':_0x249623,'createdAt':_0x2bd874?new Date(_0x2bd874):new Date(),'source':'importWord'}}})),_0x324aca=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x324aca,'threadId':_0x3b9b91,'comments':_0x4c479a,'resolvedAt':_0x500da6?_0x1369c4:null});});}}class at extends _0x8104b3{constructor(_0x1e9cbb){super(_0x1e9cbb),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x122008=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x122008,'contentInsertion',(_0x51a421,_0x2a18bc)=>this['_removeMarkersWithoutThreads'](_0x2a18bc['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x25cd67){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x25cd67;const _0x30002b=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5d3a42 of _0x25cd67['keys']()){const [_0x4565fb,_0x3c7649]=_0x5d3a42['split'](':');'comment'!=_0x4565fb||_0x30002b['hasCommentThread'](_0x3c7649)||_0x25cd67['delete'](_0x5d3a42);}return _0x25cd67;}['_registerMarkerInClipboardPipeline'](){const _0x3c36c3=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3e75c4=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3e75c4&&_0x3c36c3['_registerMarkerToCopy']('comment',_0x3e75c4);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x16ac5f){switch(_0x16ac5f){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x3b26ee){const _0x8057f2=_0x3b26ee['split'](':');return{'group':_0x8057f2[0x0],'id':_0x8057f2[0x1],'part':_0x8057f2[0x2]};}class ut extends _0x8104b3{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1f345c,_0x58f8a3)=>{if(!_0x58f8a3['options']['showCommentHighlights'])return null;if(_0x58f8a3['options']['ignoreResolvedComments']){const {id:_0x99c6f}=ft(_0x1f345c['markerName']),_0x1f9477=this['editor']['plugins']['get'](o);if(_0x1f9477['getCommentThread'](_0x99c6f)?.['isResolved']&&_0x1f345c['item'])return _0x58f8a3['consumable']['consume'](_0x1f345c['item'],'addMarker:'+_0x1f345c['markerName']),_0x58f8a3['consumable']['consume'](_0x1f345c['item'],'removeMarker:'+_0x1f345c['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x242005=>{_0x242005['on']('addMarker:comment',(_0x33e595,_0x1b7595,_0x4647f4)=>{if(!_0x4647f4['options']['showCommentHighlights'])return;const _0x32c032=_0x1b7595['item'];if(!_0x32c032)return;const _0x5af60a=_0x4647f4['mapper']['toViewElement'](_0x32c032);this['editor']['model']['schema']['isObject'](_0x32c032)&&_0x5af60a&&!_0x5af60a['getCustomProperty']('widget')&&_0x5af60a['is']('containerElement')&&_0x2a96ee(_0x5af60a,_0x4647f4['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x27c64a,{writer:_0x4e2c58,options:_0x284662})=>{if(!_0x284662['showCommentHighlights'])return null;const _0x11df10=_0x4e2c58['createContainerElement']('div'),_0x35ba5b=_0x4e2c58['createEmptyElement']('hr');return _0x4e2c58['addClass']('ck-horizontal-line',_0x11df10),_0x4e2c58['insert'](_0x4e2c58['createPositionAt'](_0x11df10,0x0),_0x35ba5b),_0x11df10;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0xa55df6,{writer:_0x11d8be,options:_0x428cd3})=>{if(!_0x428cd3['showCommentHighlights'])return null;const _0x35d277=_0x11d8be['createContainerElement']('span'),_0x1bfc83=_0x11d8be['createEmptyElement']('img');return _0x11d8be['addClass']('image-inline',_0x35d277),_0x11d8be['insert'](_0x11d8be['createPositionAt'](_0x35d277,0x0),_0x1bfc83),_0x35d277;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x56d87a,{writer:_0x55677f,options:_0x236015})=>{if(_0x236015['showCommentHighlights'])return _0x55677f['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x50ba95,_0x535b38,_0x46d137)=>{_0x46d137['options']['showCommentHighlights']&&_0x50ba95['stop']();},{'priority':'high'});}}class r extends _0x8104b3{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(_0x204e01){super(_0x204e01),this['set']('isThreadsLoadingPaused',!0x0),_0x204e01['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x25d787,_0x2b9d94,_0xf0c6,_0x4eb47a)=>{const _0x34a838=_0x204e01['plugins']['get'](o),_0x28de73=_0xf0c6?ft(_0xf0c6)['id']:null;_0x204e01['model']['change'](()=>{if(_0x28de73){const _0x34a789=this['getAllMarkersForId'](_0x28de73);for(const _0x474d9b of _0x34a789)_0x204e01['editing']['reconvertMarker'](_0x474d9b);}if(_0x4eb47a){const {id:_0x1b9db6}=ft(_0x4eb47a),_0x35398c=_0x34a838['getCommentThread'](_0x1b9db6);if(_0x35398c&&_0x35398c['unlinkedAt'])return;if(_0x35398c&&!_0x35398c['isAttached'])return;const _0x5745d6=this['getAllMarkersForId'](_0x1b9db6);for(const _0x30db41 of _0x5745d6)_0x204e01['editing']['reconvertMarker'](_0x30db41);}}),_0x28de73&&this['scrollToThreadMarker'](_0x28de73);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x517144=this['editor'],_0x6a9eee=_0x517144['plugins']['get'](o),_0x31cc7b=_0x517144['config']['get']('collaboration.channelId'),_0x380b7e=_0x6a9eee['getCommentThreads']()['filter'](_0x378a8d=>_0x378a8d['channelId']!==_0x31cc7b);_0x517144['commands']['add']('addCommentThread',new ot(_0x517144)),this['listenTo'](_0x517144,'change:isReadOnly',(_0x33b84c,_0x1d28ba,_0x2d580f)=>{_0x6a9eee['switchReadOnly'](_0x2d580f,_0x517144['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x6a9eee,dt('addCommentThread',_0x31cc7b),(_0x525e7b,{threadId:_0x980739})=>{const _0x41c898=this['editor']['plugins']['get'](o)['getCommentThread'](_0x980739);_0x41c898?.['unlinkedAt']&&this['_attachArchivedThread'](_0x980739);}),this['listenTo'](_0x6a9eee,dt('removeCommentThread',_0x31cc7b),(_0x537d34,{threadId:_0x1137df})=>{_0x517144['model']['enqueueChange']({'isUndoable':!0x1},_0x282280=>{const _0xf9b718=this['getAllMarkersForId'](_0x1137df);for(const _0x59f8c6 of _0xf9b718)_0x282280['removeMarker'](_0x59f8c6);});}),this['listenTo'](_0x6a9eee,dt('resolveCommentThread',_0x31cc7b),(_0x496004,{threadId:_0x3ce408})=>{(this['_reconvertMarkers'](_0x3ce408),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x3ce408)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x6a9eee,dt('reopenCommentThread',_0x31cc7b),(_0x79d6f3,{threadId:_0x38a750})=>{this['_reconvertMarkers'](_0x38a750);},{'priority':'low'}),this['listenTo'](_0x6a9eee,dt('addComment',_0x31cc7b),(_0x4469bb,{threadId:_0x2a76bb,isFromAdapter:_0x50c179})=>{const _0x50e982=this['getAllMarkersForId'](_0x2a76bb);if(_0x50c179||0x0==_0x50e982['length']||!_0x6a9eee['hasCommentThread'](_0x2a76bb))return;0x1===_0x6a9eee['getCommentThread'](_0x2a76bb)['length']&&_0x517144['model']['enqueueChange']({'isUndoable':!0x1},_0x5bc602=>{for(const _0x8f9685 of _0x50e982)_0x5bc602['updateMarker'](_0x8f9685,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x380b7e);}['afterInit'](){!async function(_0x3e2cd1){const _0x24356f=_0x110973([0x68,0x61,0x58,0x33,0x6b,0x55,0x76,0x6e,0x4b,0x46,0x77,0x74,0x69,0x42,0x4d,0x30,0x35,0x72,0x62,0x66,0x4c,0x43,0x75,0x49,0x78,0x50,0x37,0x67,0x6f,0x48,0x4e,0x38,0x41,0x45,0x6a,0x47,0x71,0x56,0x7a,0x4a,0x4f,0x79,0x44,0x32,0x6c,0x34,0x70,0x57,0x6d,0x63,0x36,0x31,0x73,0x51,0x64,0x53,0x39,0x52,0x59,0x54,0x5a,0x65]),_0x180099=0x461bc3e5,_0x5a7fd6=0x461cac7d^_0x180099,_0xe4be3b=window[_0x110973([0x44,0x61,0x74,0x65])][_0x110973([0x6e,0x6f,0x77])](),_0x46039c=_0x3e2cd1[_0x110973([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2753fe=new window[(_0x110973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xeae62d=>{_0x46039c[_0x110973([0x6f,0x6e,0x63,0x65])](_0x110973([0x72,0x65,0x61,0x64,0x79]),_0xeae62d);}),_0x13bc57={[_0x110973([0x6b,0x74,0x79])]:_0x110973([0x45,0x43]),[_0x110973([0x75,0x73,0x65])]:_0x110973([0x73,0x69,0x67]),[_0x110973([0x63,0x72,0x76])]:_0x110973([0x50,0x2d,0x32,0x35,0x36]),[_0x110973([0x78])]:_0x110973([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]),[_0x110973([0x79])]:_0x110973([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]),[_0x110973([0x61,0x6c,0x67])]:_0x110973([0x45,0x53,0x32,0x35,0x36])},_0x3f067c=_0x46039c[_0x110973([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x110973([0x67,0x65,0x74])](_0x110973([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18599b(){let _0x284cf9,_0x37f6be=null,_0x5dfbc0=null;try{if(_0x3f067c==_0x110973([0x47,0x50,0x4c]))return _0x110973([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x284cf9=_0x53b98b(),!_0x284cf9)return _0x110973([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x284cf9[_0x110973([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5dfbc0=_0x42f18b(_0x284cf9[_0x110973([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x284cf9[_0x110973([0x6a,0x74,0x69])])),await _0xd7436c()?_0x47e596()?_0xf9fb07()?_0x110973([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x400bad()?(_0x284cf9[_0x110973([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x110973([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37f6be=_0x4d8033(_0x110973([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x284cf9[_0x110973([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x110973([0x74,0x72,0x69,0x61,0x6c])&&(_0x37f6be=_0x4d8033(_0x110973([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x255d63()):_0x110973([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x110973([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x110973([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x110973([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf9fb07(){const _0x276205=[_0x110973([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x110973([0x74,0x72,0x69,0x61,0x6c])][_0x110973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x284cf9[_0x110973([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe4be3b/0x3e8:0xe10*_0x5a7fd6;return _0x284cf9[_0x110973([0x65,0x78,0x70])]<_0x276205;}function _0x47e596(){const _0x266c0c=_0x284cf9[_0x110973([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x266c0c)return!0x1;if(_0x266c0c[_0x110973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x110973([0x2a])))return!0x0;if(_0x266c0c[_0x110973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x110973([0x43,0x4d,0x54])))return!0x0;if(_0x266c0c[_0x110973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x110973([0x52,0x43,0x4d,0x54]))){if(_0xc69a17())return!0x0;if(_0x1477fb()||_0x42d028())return!0x0;}return!0x1;}function _0x400bad(){const _0x53ff3f=_0x284cf9[_0x110973([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53ff3f||0x0==_0x53ff3f[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1649eb}=new URL(window[_0x110973([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53ff3f[_0x110973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1649eb))return!0x0;const _0x1f542b=_0x1649eb[_0x110973([0x73,0x70,0x6c,0x69,0x74])](_0x110973([0x2e]));return _0x53ff3f[_0x110973([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18e11f=>_0x18e11f[_0x110973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x110973([0x2a])))[_0x110973([0x6d,0x61,0x70])](_0x43aaf2=>_0x43aaf2[_0x110973([0x73,0x70,0x6c,0x69,0x74])](_0x110973([0x2e])))[_0x110973([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cfa3a=>_0x5cfa3a[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f542b[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x110973([0x6d,0x61,0x70])](_0x537fe1=>Array(_0x1f542b[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x537fe1[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x110973([0x66,0x69,0x6c,0x6c])](_0x537fe1[0x0]===_0x110973([0x2a])?_0x110973([0x2a]):'')[_0x110973([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x537fe1))[_0x110973([0x73,0x6f,0x6d,0x65])](_0x400cb4=>_0x1f542b[_0x110973([0x65,0x76,0x65,0x72,0x79])]((_0x5146ff,_0x198f8a)=>_0x400cb4[_0x198f8a]===_0x5146ff||_0x400cb4[_0x198f8a]===_0x110973([0x2a])));}function _0x255d63(){return _0x37f6be&&_0x5dfbc0?new window[(_0x110973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x452098,_0x3a0232)=>{_0x37f6be[_0x110973([0x74,0x68,0x65,0x6e])](_0x452098,_0x3a0232),_0x5dfbc0[_0x110973([0x74,0x68,0x65,0x6e])](_0x395015=>{_0x395015!=_0x110973([0x56,0x61,0x6c,0x69,0x64])&&_0x452098(_0x395015);},_0x3a0232);}):_0x37f6be||_0x5dfbc0||_0x110973([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42f18b(_0x45b3ba,_0xf436e){return new window[(_0x110973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x219d22=>{if(_0x3e6aa6())return _0x219d22(_0x110973([0x56,0x61,0x6c,0x69,0x64]));_0x52f6ee(),_0x46039c[_0x110973([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x110973([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2175b9=!0x1;const _0x5bec48=_0x33127a();function _0x4814f2(_0x4195f1){return!!_0x4195f1&&(typeof _0x4195f1===_0x110973([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4195f1===_0x110973([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4195f1[_0x110973([0x74,0x68,0x65,0x6e])]===_0x110973([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4195f1[_0x110973([0x63,0x61,0x74,0x63,0x68])]===_0x110973([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x517ebf(_0x171920){_0x4cd15e(_0x171920)[_0x110973([0x74,0x68,0x65,0x6e])](_0x5a5ab9=>{if(!_0x5a5ab9||_0x5a5ab9[_0x110973([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x110973([0x6f,0x6b]))return _0x110973([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56b5a5(_0x44340c(_0x5bec48+_0xf436e))!=_0x5a5ab9[_0x110973([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x110973([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x110973([0x56,0x61,0x6c,0x69,0x64]);})[_0x110973([0x74,0x68,0x65,0x6e])](_0x3621a3=>(_0x290f43(),_0x3621a3),()=>{const _0x310df3=_0x567435();return null==_0x310df3?(_0x290f43(),_0x110973([0x56,0x61,0x6c,0x69,0x64])):_0x110973(_0xe4be3b-_0x310df3>(0x621747e5^_0x180099)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x110973([0x74,0x68,0x65,0x6e])](_0x219d22)[_0x110973([0x63,0x61,0x74,0x63,0x68])](()=>{_0x219d22(_0x110973([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ee1de=0x462d2d65^_0x180099;function _0x290f43(){const _0x4f146b=_0x110973([0x6c,0x6c,0x63,0x74,0x2d])+_0x56b5a5(_0x44340c(_0x45b3ba)),_0x5aa8a3=_0x388e1e(_0x56b5a5(window[_0x110973([0x4d,0x61,0x74,0x68])][_0x110973([0x63,0x65,0x69,0x6c])](_0xe4be3b/_0x5ee1de)));window[_0x110973([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x110973([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f146b,_0x5aa8a3);}function _0x567435(){const _0x246252=_0x110973([0x6c,0x6c,0x63,0x74,0x2d])+_0x56b5a5(_0x44340c(_0x45b3ba)),_0xd577fc=window[_0x110973([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x110973([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x246252);return _0xd577fc?window[_0x110973([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x388e1e(_0xd577fc),0x10)*_0x5ee1de:null;}function _0x4cd15e(_0x51d3fa){return new window[(_0x110973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33a9be,_0x357970)=>{_0x51d3fa[_0x110973([0x74,0x68,0x65,0x6e])](_0x33a9be,_0x357970),window[_0x110973([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x357970,0x461a1725^_0x180099);});}}_0x46039c[_0x110973([0x6f,0x6e])](_0x110973([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xbb2cfa,_0x1b177a)=>{if(_0x1b177a[0x0]!=_0x45b3ba)return _0x219d22(_0x110973([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b177a[0x1]={..._0x1b177a[0x1],[_0x110973([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5bec48};},{[_0x110973([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x110973([0x68,0x69,0x67,0x68])}),_0x46039c[_0x110973([0x6f,0x6e])](_0x110973([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a3f2d=>{_0x4814f2(_0x1a3f2d[_0x110973([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2175b9=!0x0,_0x517ebf(_0x1a3f2d[_0x110973([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x110973([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x110973([0x6c,0x6f,0x77])}),_0x2753fe[_0x110973([0x74,0x68,0x65,0x6e])](()=>{_0x2175b9||_0x219d22(_0x110973([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e6aa6(){return _0x46039c[_0x110973([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x110973([0x76,0x69,0x65,0x77])][_0x110973([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x110973([0x61,0x75,0x74,0x6f]);}function _0x52f6ee(){_0x46039c[_0x110973([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x110973([0x76,0x69,0x65,0x77])][_0x110973([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x110973([0x61,0x75,0x74,0x6f]);}}function _0x4d8033(_0x259f7c){const _0x57cdf6=[new window[(_0x110973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xae1003=>setTimeout(_0xae1003,0x4612fd29^_0x180099)),_0x2753fe[_0x110973([0x74,0x68,0x65,0x6e])](()=>new window[(_0x110973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf0bf9e=>{let _0x2899ca=0x0;_0x46039c[_0x110973([0x6d,0x6f,0x64,0x65,0x6c])][_0x110973([0x6f,0x6e])](_0x110973([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x598d74,_0x2bbd33)=>{_0x2bbd33[0x0][_0x110973([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2899ca++,_0x2899ca==(0x461bc21d^_0x180099)&&(_0xf0bf9e(),_0x598d74[_0x110973([0x6f,0x66,0x66])]());});}))];return window[_0x110973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x110973([0x72,0x61,0x63,0x65])](_0x57cdf6)[_0x110973([0x74,0x68,0x65,0x6e])](()=>_0x259f7c);}async function _0x2b6a82(){await _0x2753fe,_0x46039c[_0x110973([0x6d,0x6f,0x64,0x65,0x6c])][_0x110973([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39fdc6,_0x46039c[_0x110973([0x6d,0x6f,0x64,0x65,0x6c])][_0x110973([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39fdc6,_0x46039c[_0x110973([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x110973([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc69a17(){return _0x513383(_0x110973([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x222582(_0x110973([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x110973([0x73,0x74,0x61,0x74,0x65])]==_0x110973([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1477fb(){return _0x513383(_0x110973([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 _0x42d028(){return _0x513383(_0x110973([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4a65a4(_0x168866){const _0xe67c5d=_0x16950b();_0x46039c[_0xe67c5d]=_0x110973([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x168866,_0x168866!=_0x110973([0x56,0x61,0x6c,0x69,0x64])&&_0x2b6a82();}function _0x16950b(){const _0x1b578f=window[_0x110973([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x110973([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x110973([0x6e,0x6f,0x77])]())[_0x110973([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x110973([0x2e]),'');let _0xa8a109=_0x110973([0x68]);for(let _0x33128a=0x0;_0x33128a<_0x1b578f[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33128a+=0x2){let _0x1ee5b8=window[_0x110973([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b578f[_0x110973([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33128a,_0x33128a+0x2));_0x1ee5b8>=_0x24356f[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ee5b8-=_0x24356f[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa8a109+=_0x24356f[_0x1ee5b8];}return _0xa8a109;}function _0x53b98b(){const _0x4fdd0e=_0x3f067c[_0x110973([0x73,0x70,0x6c,0x69,0x74])](_0x110973([0x2e]));if(0x3!=_0x4fdd0e[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x465ca0(_0x4fdd0e[0x1]);function _0x465ca0(_0x2055ac){const _0x4a37b3=_0xb26d1a(_0x2055ac);return _0x4a37b3&&_0x577578()?_0x4a37b3:null;function _0x577578(){const _0x2fbc24=_0x4a37b3[_0x110973([0x6a,0x74,0x69])],_0x4689ee=window[_0x110973([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fbc24[_0x110973([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fbc24[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x139ef7={..._0x4a37b3,[_0x110973([0x6a,0x74,0x69])]:_0x2fbc24[_0x110973([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2fbc24[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x139ef7[_0x110973([0x76,0x63])],_0x44340c(_0x139ef7)==_0x4689ee;}}}async function _0xd7436c(){let _0x233a35=!0x0;try{const _0x2bf09=_0x3f067c[_0x110973([0x73,0x70,0x6c,0x69,0x74])](_0x110973([0x2e])),[_0xc3e997,_0xef11c6,_0x5eebe1]=_0x2bf09;return _0x1f2624(_0xc3e997),await _0x44c969(_0xc3e997,_0xef11c6,_0x5eebe1),_0x233a35;}catch{return!0x1;}function _0x1f2624(_0x1761e6){const _0x572724=_0xb26d1a(_0x1761e6);_0x572724&&_0x572724[_0x110973([0x61,0x6c,0x67])]==_0x110973([0x45,0x53,0x32,0x35,0x36])||(_0x233a35=!0x1);}async function _0x44c969(_0x296d7a,_0x3743c5,_0x44cce0){const _0x55cb5e=window[_0x110973([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x110973([0x66,0x72,0x6f,0x6d])](_0x2c8b71(_0x44cce0),_0x3a22c6=>_0x3a22c6[_0x110973([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49f16d=new window[(_0x110973([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x110973([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x296d7a+_0x110973([0x2e])+_0x3743c5),_0x4b6dde=window[_0x110973([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x110973([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b6dde)return;const _0x155e31=await _0x4b6dde[_0x110973([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x110973([0x6a,0x77,0x6b]),_0x13bc57,{[_0x110973([0x6e,0x61,0x6d,0x65])]:_0x110973([0x45,0x43,0x44,0x53,0x41]),[_0x110973([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x110973([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x110973([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b6dde[_0x110973([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x110973([0x6e,0x61,0x6d,0x65])]:_0x110973([0x45,0x43,0x44,0x53,0x41]),[_0x110973([0x68,0x61,0x73,0x68])]:{[_0x110973([0x6e,0x61,0x6d,0x65])]:_0x110973([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x155e31,_0x55cb5e,_0x49f16d)||(_0x233a35=!0x1);}}function _0xb26d1a(_0x433a8f){return _0x433a8f[_0x110973([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x110973([0x65,0x79]))?JSON[_0x110973([0x70,0x61,0x72,0x73,0x65])](_0x2c8b71(_0x433a8f)):null;}function _0x2c8b71(_0xf89742){return window[_0x110973([0x61,0x74,0x6f,0x62])](_0xf89742[_0x110973([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x110973([0x2b]))[_0x110973([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x110973([0x2f])));}function _0x44340c(_0x2820d9){let _0x2d5179=0x1505;function _0x4f720e(_0xbe7a09){for(let _0x24ca9b=0x0;_0x24ca9b<_0xbe7a09[_0x110973([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24ca9b++){const _0xba7a16=_0xbe7a09[_0x110973([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24ca9b);_0x2d5179=(_0x2d5179<<0x5)+_0x2d5179+_0xba7a16,_0x2d5179&=_0x2d5179;}}function _0x2a9bdd(_0x1b7f99){Array[_0x110973([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b7f99)?_0x1b7f99[_0x110973([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a9bdd):_0x1b7f99&&typeof _0x1b7f99==_0x110973([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x110973([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b7f99)[_0x110973([0x73,0x6f,0x72,0x74])]()[_0x110973([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x524b61,_0x29d9ef])=>{_0x4f720e(_0x524b61),_0x2a9bdd(_0x29d9ef);}):_0x4f720e(window[_0x110973([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b7f99));}return _0x2a9bdd(_0x2820d9),_0x2d5179>>>0x0;}function _0x56b5a5(_0x29f3c6){return _0x29f3c6[_0x110973([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x110973([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x110973([0x30]));}function _0x388e1e(_0x113c43){return _0x113c43[_0x110973([0x73,0x70,0x6c,0x69,0x74])]('')[_0x110973([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x110973([0x6a,0x6f,0x69,0x6e])]('');}function _0x513383(_0x4829d8){return _0x46039c[_0x110973([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x110973([0x68,0x61,0x73])](_0x4829d8);}function _0x222582(_0x63d8e0){return _0x46039c[_0x110973([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x110973([0x67,0x65,0x74])](_0x63d8e0);}function _0x39fdc6(){}function _0x110973(_0x528942){return _0x528942['map'](_0x36017c=>String['fromCharCode'](_0x36017c))['join']('');}_0x4a65a4(await _0x18599b());}(this);}['destroy'](){const _0x34c2e9=this['editor']['plugins']['get'](o),_0x2f340e=this['editor']['config']['get']('collaboration.channelId');for(const _0x416fc9 of _0x34c2e9['getCommentThreads']({'channelId':_0x2f340e}))_0x34c2e9['_detachCommentThread'](_0x416fc9['id']),_0x34c2e9['_threads']['delete'](_0x416fc9['id']);super['destroy']();}['hasMarkerForId'](_0x2422e7){return this['getAllMarkersForId'](_0x2422e7)['length']>0x0;}['getAllMarkersForId'](_0x3f4ee6){const _0x2d3220=[];for(const _0x591887 of this['editor']['model']['markers'])_0x591887['name']['startsWith']('comment:'+_0x3f4ee6)&&_0x2d3220['push'](_0x591887);return _0x2d3220;}['scrollToThreadMarker'](_0x213e45){setTimeout(()=>{const _0x472846=this['_getTargetForId'](_0x213e45);if(!_0x472846)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x213e45&&nt({'target':_0x472846[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x205ee8){this['editor']['model']['change'](()=>{for(const _0x45cf0e of this['getAllMarkersForId'](_0x205ee8))this['editor']['editing']['reconvertMarker'](_0x45cf0e);});}['_attachArchivedThread'](_0x11a99c){const _0x12a8b8=this['editor']['plugins']['get'](o),_0x9524e1=this['editor']['plugins']['get'](b),_0xb14de0=_0x12a8b8['getCommentThread'](_0x11a99c);if(!_0xb14de0['isAttached']){const _0x2ad0ed=_0xb14de0['attachTo'](()=>this['_getTargetForId'](_0xb14de0['id']));_0x9524e1['registerAnnotation'](_0x2ad0ed),_0xb14de0['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x109548=this['editor'],_0x11b4ae=_0x109548['plugins']['get'](it);_0x109548['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x5b7d16,_0x49bf0b)=>{const {id:_0x5eb4c2}=ft(_0x5b7d16['markerName']),_0x4fb11d=_0x109548['plugins']['get'](o)['getCommentThread'](_0x5eb4c2),_0x108618=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5eb4c2;let _0x1246c4;if(_0x4fb11d&&_0x4fb11d['isResolved']&&!_0x108618&&_0x5b7d16['item'])return _0x49bf0b['consumable']['consume'](_0x5b7d16['item'],'addMarker:'+_0x5b7d16['markerName']),_0x49bf0b['consumable']['consume'](_0x5b7d16['item'],'removeMarker:'+_0x5b7d16['markerName']),null;const _0x55cd01=['ck-comment-marker'];return _0x108618&&_0x55cd01['push']('ck-comment-marker--active'),_0x1246c4=_0x4fb11d?.['length']?_0x4fb11d['comments']['first']['author']['id']:_0x11b4ae['me']['id'],{'classes':_0x55cd01,'attributes':{'data-comment':_0x5eb4c2,'data-author-id':_0x1246c4}};}}),_0x109548['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3c2631,{options:_0x3e4878})=>{if(_0x3e4878['showCommentHighlights'])return null;const _0x4126ec=_0x109548['plugins']['get'](o),_0x40410d=_0x109548['model']['markers']['get'](_0x3c2631),{id:_0x559c21,part:_0xa01a61}=ft(_0x3c2631);return _0x40410d&&!_0x40410d['affectsData']||_0x3e4878['ignoreResolvedComments']&&_0x4126ec['getCommentThread'](_0x559c21)?.['isResolved']?null:{'group':'comment','name':_0xa01a61?_0x559c21+':'+_0xa01a61:_0x559c21};}}),_0x109548['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2d4bda,{writer:_0x23b686})=>_0x23b686['createElement']('$marker',{'data-name':'comment:'+_0x2d4bda['getAttribute']('id')})}),_0x109548['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x57f8a0=this['editor'],_0x592832=_0x57f8a0['plugins']['get'](o),_0x1c70b9=new Set(),_0x3c4be7=new Set();_0x57f8a0['model']['document']['registerPostFixer'](_0x309a83=>{let _0x2e5f6d=!0x1;for(const {name:_0x306077,data:_0x3b6bdc}of _0x57f8a0['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3d721c,id:_0x10ef85}=ft(_0x306077);let _0x12748f=_0x3b6bdc['newRange'];if('comment'!==_0x3d721c||!_0x12748f)continue;const _0x2d1138='$graveyard'===_0x12748f['root']['rootName'];_0x2d1138||(_0x12748f=ht(_0x12748f,_0x57f8a0['model']),!_0x12748f||_0x12748f['isCollapsed']||!_0x3b6bdc['newRange']||_0x12748f['isEqual'](_0x3b6bdc['newRange']))?_0x57f8a0['model']['hasContent'](_0x12748f)&&!_0x2d1138?this['isThreadsLoadingPaused']?_0x1c70b9['add'](_0x306077):this['_handleThreadMarker'](_0x306077,_0x10ef85):(_0x3c4be7['add'](_0x306077),_0x1c70b9['delete'](_0x306077),_0x309a83['removeMarker'](_0x306077),_0x2e5f6d=!0x0):(_0x309a83['updateMarker'](_0x306077,{'range':_0x12748f}),_0x2e5f6d=!0x0);}return _0x2e5f6d;}),this['on']('change:isThreadsLoadingPaused',(_0x45adc3,_0x445de8,_0x537d88)=>{if(!_0x537d88&&_0x1c70b9['size'])for(const _0x20a8c9 of _0x1c70b9){const {id:_0x4ec1ad}=ft(_0x20a8c9);_0x1c70b9['delete'](_0x20a8c9),_0x57f8a0['model']['markers']['get'](_0x20a8c9)&&this['_handleThreadMarker'](_0x20a8c9,_0x4ec1ad);}}),this['listenTo'](_0x57f8a0['model']['document'],'change',()=>{for(const {name:_0x5e5658,data:{newRange:_0x5d0955}}of _0x57f8a0['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1198ce,id:_0x3d5208}=ft(_0x5e5658);if('comment'!==_0x1198ce)continue;const _0x4cf993=_0x592832['getCommentThread'](_0x3d5208),_0x342cc5=this['hasMarkerForId'](_0x3d5208);_0x4cf993&&(!_0x4cf993['_hasTargetInContent']&&_0x5d0955&&_0x57f8a0['editing']['view']['once']('render',()=>{const _0x2c82e0=_0x57f8a0['plugins']['get'](y),_0x38e908=_0x592832['_threadToController']['get'](_0x4cf993)['view'];_0x2c82e0['getByInnerView'](_0x38e908)['refreshVisibility']();},{'priority':'low'}),_0x4cf993['_hasTargetInContent']=_0x342cc5||!!_0x5d0955),_0x5d0955||(_0x3c4be7['add'](_0x5e5658),_0x1c70b9['delete'](_0x5e5658));}for(const _0x1834c3 of _0x3c4be7){const {id:_0x5742d4}=ft(_0x1834c3),_0x115819=_0x592832['getCommentThread'](_0x5742d4);if(_0x1c70b9['delete'](_0x1834c3),!_0x115819)continue;const _0x1b53be=this['hasMarkerForId'](_0x5742d4);_0x1b53be||_0x115819['isSubmitted']?_0x1b53be||_0x115819['unlinkedAt']||_0x115819['setUnlinkedAt'](new Date()):_0x115819['remove']();}_0x3c4be7['clear']();});}['_handleInitialThreads'](_0x27c178){_0x27c178['forEach'](_0x3d8f3a=>{_0x3d8f3a['unlinkedAt']&&this['_attachArchivedThread'](_0x3d8f3a['id']);});}['_getTargetForId'](_0x3fa6cb){const _0x408584=this['editor'],_0x564c00=this['getAllMarkersForId'](_0x3fa6cb);return et(_0x408584['editing'],_0x564c00);}['_getTextContext'](_0x2d0321){const _0x295824=this['getAllMarkersForId'](_0x2d0321);let _0x296ef0='',_0x4c33fa=!0x1;for(const _0x49df5d of _0x295824){const _0x31a1d9=_0x49df5d['getRange']();for(const _0x399420 of Array['from'](_0x31a1d9['getItems']()))_0x399420['is']('$textProxy')?(_0x296ef0&&_0x4c33fa&&(_0x296ef0+='\x20',_0x4c33fa=!0x1),_0x296ef0+=_0x399420['data']):_0x4c33fa=!0x0;_0x4c33fa=!0x0;}return _0x296ef0['substring'](0x0,0x96);}['_attachMarkerToThread'](_0xe919c6,_0x3ed8af){const _0x124572=this['editor'],_0x182b87=_0x124572['plugins']['get'](o);let _0x206ee0=_0x182b87['getCommentThread'](_0x3ed8af);const _0x3cc622=_0x124572['config']['get']('collaboration.channelId'),_0x964856=_0x124572['plugins']['get'](b);if(_0x206ee0&&(_0x206ee0['unlinkedAt']&&_0x206ee0['setUnlinkedAt'](null),_0x206ee0['isAttached']))return _0x206ee0;return!this['getAllMarkersForId'](_0x3ed8af)[0x0]['managedUsingOperations']?_0x124572['editing']['view']['once']('render',()=>{if(_0x182b87['getCommentThread'](_0x3ed8af))return;const _0x35f708=_0x124572['plugins']['get'](y);_0x206ee0=_0x182b87['openNewCommentThread']({'channelId':_0x3cc622,'threadId':_0x3ed8af,'target':()=>this['_getTargetForId'](_0x3ed8af),'context':{'type':'text','value':this['_getTextContext'](_0x3ed8af)}});const _0xc21d39=_0x182b87['_threadToController']['get'](_0x206ee0)['view'],_0x30e965=_0x35f708['getByInnerView'](_0xc21d39);_0x30e965&&_0x964856['registerAnnotation'](_0x30e965);},{'priority':'low'}):_0x182b87['fetchCommentThread']({'channelId':_0x3cc622,'threadId':_0x3ed8af})['then'](_0x1ef6af=>{if('destroyed'!==_0x124572['state']){if(_0x206ee0=_0x1ef6af,_0x206ee0&&!_0x206ee0['isAttached']){const _0x144e10=_0x206ee0['attachTo'](()=>this['_getTargetForId'](_0x3ed8af));_0x964856['registerAnnotation'](_0x144e10),_0x206ee0['isResolved']&&this['_reconvertMarkers'](_0x3ed8af);}else{if(!_0x206ee0){const _0x467f8b=this['getAllMarkersForId'](_0x3ed8af);_0x124572['model']['change'](_0x42836b=>{for(const _0x22c3ea of _0x467f8b)_0x42836b['removeMarker'](_0x22c3ea);});}}}}),_0x206ee0;}['_handleThreadMarker'](_0x19aad7,_0x2b6834){const _0xd6a32b=this['_attachMarkerToThread'](_0x19aad7,_0x2b6834);_0xd6a32b&&!_0xd6a32b['context']&&_0xd6a32b['setContext']({'type':'text','value':this['_getTextContext'](_0x2b6834)});}['_initAriaMarkerChangeAnnouncements'](){const _0x21f0f9=this['editor'];rt(_0x21f0f9['model'],({left:_0x3d4e73,entered:_0xd2535b})=>{for(const _0x2fa994 of _0x3d4e73)if(mt(_0x2fa994)){_0x21f0f9['ui']['ariaLiveAnnouncer']['announce'](N(_0x21f0f9['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x43e8e6 of _0xd2535b)if(mt(_0x43e8e6)){_0x21f0f9['ui']['ariaLiveAnnouncer']['announce'](N(_0x21f0f9['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x158e83)));break;}});}}function dt(_0x1128e9,_0x5bca3c){return _0x5bca3c?_0x1128e9+':'+_0x5bca3c:_0x1128e9;}function ht(_0x25aa5a,_0x536d17){const _0x345422=_0x536d17['schema'],_0x4a6851=_0x536d17['createRange'](_0x25aa5a['start']);for(const _0x4980e7 of _0x25aa5a['getWalker']()){const {type:_0x3c7251,item:_0x19ef68,nextPosition:_0x4f6f8f}=_0x4980e7;if('text'===_0x3c7251||_0x345422['isObject'](_0x19ef68)){const _0x2f8cfd=_0x536d17['createPositionBefore'](_0x19ef68);_0x4a6851['isCollapsed']&&(_0x4a6851['start']=_0x2f8cfd),_0x4a6851['end']=_0x4f6f8f;}}return _0x4a6851;}function mt(_0x35649f){return'comment'===ft(_0x35649f['name'])['group'];}class s extends _0x8104b3{['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 _0x529802=this['editor'],_0x328fda=_0x529802['plugins']['get'](o),_0x2a7998=_0x529802['plugins']['get'](r),_0x3ad77d=_0x529802['plugins']['get'](y),_0x296c2e=_0x529802['plugins']['get'](b);_0x529802['ui']['componentFactory']['add']('comment',()=>{const _0x1eff28=this['_createUIButton'](_0x8118da);return _0x1eff28['tooltip']=!0x0,_0x1eff28;}),_0x529802['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x5c9447)),_0x296c2e['addSourceCollector'](()=>{const _0x160ff4=[];for(const [_0x472775,_0x52e26e]of _0x328fda['_threadToController']){const _0x17e486=_0x2a7998['getAllMarkersForId'](_0x472775['id']),_0x5e3bf5=_0x17e486['map'](_0x3bf174=>_0x3bf174['getRange']());_0x17e486['length']>0x0&&_0x160ff4['push']([_0x52e26e['view'],_0x5e3bf5]);}return _0x160ff4;}),this['listenTo'](_0x3ad77d,'change:activeAnnotations',(_0x60c19f,_0x290319,_0x2088a4)=>{const _0xcb941c=Array['from'](_0x2088a4)['map'](_0x23f34c=>_0x23f34c['innerView'])['find'](_0x1df1e=>_0x328fda['_viewToController']['has'](_0x1df1e));if(!_0xcb941c)return void(_0x2a7998['activeMarker']=null);const _0x29fcca=_0x328fda['_viewToController']['get'](_0xcb941c)['model']['id'],_0x2db42f='comment:'+_0x29fcca;_0x29fcca&&_0x2a7998['hasMarkerForId'](_0x29fcca)?_0x2a7998['activeMarker']=_0x2db42f:_0x2a7998['activeMarker']&&(_0x2a7998['activeMarker']=null);}),this['listenTo'](_0x328fda,'removeCommentThread',(_0x109d65,{threadId:_0x24c1f6,isFromAdapter:_0x2f7c88})=>{!_0x2f7c88&&_0x529802['ui']['focusTracker']['isFocused']&&_0x2a7998['hasMarkerForId'](_0x24c1f6)&&_0x529802['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x328fda,'addComment',(_0x50b652,{threadId:_0x1fa6ab,isFromAdapter:_0x5c5a92})=>{if(_0x5c5a92||!_0x2a7998['hasMarkerForId'](_0x1fa6ab)||!_0x328fda['hasCommentThread'](_0x1fa6ab))return;0x1===_0x328fda['getCommentThread'](_0x1fa6ab)['length']&&(_0x529802['editing']['view']['focus'](),_0x50b652['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x53cc39=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c2161;for(const _0x13eef8 in _0x53cc39){const _0x1b4f4d=_0x13eef8,_0xf76509=_0x53cc39[_0x1b4f4d];if('commentsLicenseKeyValid'==_0xf76509||'commentsLicenseKeyInvalid'==_0xf76509||'commentsLicenseKeyExpired'==_0xf76509||'commentsLicenseKeyDomainLimit'==_0xf76509||'commentsLicenseKeyNotAllowed'==_0xf76509||'commentsLicenseKeyEvaluationLimit'==_0xf76509||'commentsLicenseKeyTrialLimit'==_0xf76509||'commentsLicenseKeyUsageLimit'==_0xf76509){delete _0x53cc39[_0x1b4f4d],_0x1c2161=_0xf76509,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x1c2161&&_0x53cc39['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x1c2161&&_0x53cc39['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x1c2161&&_0x53cc39['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x1c2161&&_0x53cc39['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x1c2161&&_0x53cc39['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x1c2161&&_0x53cc39['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x1c2161&&_0x53cc39['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x3ff3eb){const _0x5bb416=this['editor'],_0x4364b2=new _0x3ff3eb(_0x5bb416['locale']),_0xf79054=_0x5bb416['commands']['get']('addCommentThread');return _0x4364b2['set']({'label':N(_0x5bb416['locale'],'Comment'),'icon':_0x4a5b76}),_0x4364b2['bind']('isEnabled')['to'](_0xf79054,'hasContent'),this['listenTo'](_0x4364b2,'execute',()=>{_0xf79054['execute']();}),_0x4364b2;}}class i extends _0x8104b3{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1fd095){super(_0x1fd095),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2d79b5,_0x32e84b,_0x21fcaf)=>{_0x21fcaf?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x4a50ca,_0x4f6f18]of this['editor']['commands'])_0x4f6f18['affectsData']&&'addCommentThread'!==_0x4a50ca&&_0x4f6f18['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x16eb52=this['editor']['editing']['view']['document'];this['listenTo'](_0x16eb52,'cut',_0x6c9c3e=>_0x6c9c3e['stop'](),{'priority':'highest'}),this['listenTo'](_0x16eb52,'clipboardInput',_0x1634ac=>_0x1634ac['stop'](),{'priority':'highest'}),this['listenTo'](_0x16eb52,'delete',_0xbc5149=>_0xbc5149['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x3f8ded,_0x1eb8d0]of this['editor']['commands'])_0x1eb8d0['affectsData']&&'addCommentThread'!==_0x3f8ded&&_0x1eb8d0['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 _0xfe7412{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf3d1ec){super(_0xf3d1ec),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x2cc353=this['context']['plugins']['get'](y);this['listenTo'](_0x2cc353,'_activateAnnotation',(_0x2a9267,_0x18c81b)=>{for(const _0x2f42ab of this['activeUIs']){const _0x4f0240=this['_uis']['get'](_0x2f42ab);(0x0,this['uisData']['get'](_0x2f42ab)['filter'])(_0x18c81b)&&_0x4f0240['setActiveAnnotation'](_0x18c81b);}}),this['listenTo'](_0x2cc353,'_deactivateAllAnnotations',()=>{for(const _0x1b65de of this['activeUIs']){this['_uis']['get'](_0x1b65de)['setActiveAnnotation'](null);}}),this['listenTo'](_0x2cc353['_visibleAnnotations'],'add',(_0x2f9c85,_0x19c567)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x19c567);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x1f47f2){return this['activeUIs']['has'](_0x1f47f2);}['activate'](_0x4747be,_0x53bcf6=this['defaultFilter']){const _0x4a09c5=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x4747be))throw new _0xd3f428('annotationsuis-missing-ui',this,{'uiName':_0x4747be});this['isActive'](_0x4747be)&&this['deactivate'](_0x4747be),this['activeUIs']['add'](_0x4747be);const _0x18e553=new S();v({'source':_0x4a09c5['_visibleAnnotations'],'target':_0x18e553,'filter':_0x53bcf6}),this['uisData']['set'](_0x4747be,{'collection':_0x18e553,'filter':_0x53bcf6});const _0x24feb9=this['_uis']['get'](_0x4747be);_0x24feb9['attach'](_0x18e553),this['listenTo'](_0x24feb9,'change:activeAnnotation',(_0x71deef,_0x5deade,_0x525a68,_0x355ac5)=>{_0x355ac5&&_0x4a09c5['_removeActiveAnnotation'](_0x355ac5),_0x525a68&&_0x4a09c5['_addActiveAnnotation'](_0x525a68);});}['deactivate'](_0x39fb89){if(this['activeUIs']['delete'](_0x39fb89),!this['_uis']['has'](_0x39fb89))throw new _0xd3f428('annotationsuis-missing-ui',this,{'uiName':_0x39fb89});const _0x7fb676=this['_uis']['get'](_0x39fb89);_0x7fb676['detach'](),this['stopListening'](_0x7fb676),this['uisData']['get'](_0x39fb89)['collection']['destroy'](),this['uisData']['delete'](_0x39fb89);}['switchTo'](_0x33bc12){if(!this['_uis']['has'](_0x33bc12))throw new _0xd3f428('annotationsuis-missing-ui',this,{'uiName':_0x33bc12});const _0x53eff1=this['context']['plugins']['get'](y),_0x2a6292=Array['from'](_0x53eff1['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x33bc12);const _0x4cf459=this['_uis']['get'](_0x33bc12);_0x4cf459['setActiveAnnotation'](_0x2a6292),_0x4cf459['_setSelectedAnnotations']&&_0x2a6292&&_0x4cf459['_setSelectedAnnotations']([_0x2a6292]);}['deactivateAll'](){for(const _0x1c8bca of this['activeUIs'])this['deactivate'](_0x1c8bca);}['register'](_0x48fde3,_0x5cb140){if(this['_uis']['has'](_0x48fde3))throw new _0xd3f428('annotationsuis-register-already-registered');if('function'!=typeof _0x5cb140['attach']||'function'!=typeof _0x5cb140['detach']||'function'!=typeof _0x5cb140['setActiveAnnotation'])throw new _0xd3f428('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x48fde3,_0x5cb140);}['refilterAnnotations'](){const _0x3505ff=this['context']['plugins']['get'](y)['collection'],_0x121bef=new Map(),_0x10cd73=Array['from'](this['activeUIs']);for(const _0xb5d6d of this['activeUIs']){const _0x5bd0bf=this['uisData']['get'](_0xb5d6d)['collection'];for(const _0x44d038 of _0x5bd0bf)_0x121bef['set'](_0x44d038,_0xb5d6d);}for(const _0x3148ed of _0x3505ff){const _0x14555b=_0x121bef['get'](_0x3148ed);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3148ed);const _0x93c522=_0x10cd73['find'](_0x507915=>this['uisData']['get'](_0x507915)['filter'](_0x3148ed));_0x14555b!==_0x93c522&&(_0x14555b&&this['uisData']['get'](_0x14555b)['collection']['remove'](_0x3148ed),_0x93c522&&this['uisData']['get'](_0x93c522)['collection']['add'](_0x3148ed));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xbcb640){const _0x26b243=[];for(const _0x3f9dfa of this['activeUIs']){(0x0,this['uisData']['get'](_0x3f9dfa)['filter'])(_0xbcb640)&&_0x26b243['push'](_0x3f9dfa);}if(_0x26b243['length']>0x1)throw new _0xd3f428('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x26b243,'annotationType':_0xbcb640['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x25b8e7){super(_0x25b8e7);const _0xe6b761=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 _0x5ead02(),this['focusCycler']=new _0x76289f({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0xe6b761['to']('class')],'style':{'minHeight':_0xe6b761['to']('minHeight',_0x59dd0c=>'number'==typeof _0x59dd0c?_i(_0x59dd0c+0xa):null)},'dir':_0x25b8e7['uiLanguageDirection'],'role':'application','aria-label':N(_0x25b8e7,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x25b8e7,'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',_0xd10e97=>{this['_updateItemPositionInFocusables'](_0xd10e97['source']);}),this['list']['forEach'](_0x98780=>{this['focusTracker']['add'](_0x98780['element']),this['_updateItemPositionInFocusables'](_0x98780);}),this['list']['on']('change',(_0x56edba,_0x38c9a1)=>{for(const _0x32b2b8 of _0x38c9a1['removed'])this['focusTracker']['remove'](_0x32b2b8['element']),this['focusables']['remove'](_0x32b2b8);for(const _0x53bb44 of _0x38c9a1['added'])this['focusTracker']['add'](_0x53bb44['element']),this['_updateItemPositionInFocusables'](_0x53bb44);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x34eff0){const _0x55f5fe=this['focusables']['getIndex'](_0x34eff0);let _0x33c2c9,_0xf46845;for(const _0x7e5cab of this['focusables'])if(_0x34eff0['top']<_0x7e5cab['top']){_0x33c2c9=_0x7e5cab;break;}if(_0xf46845=_0x33c2c9?this['focusables']['getIndex'](_0x33c2c9):this['focusables']['length'],-0x1!==_0x55f5fe){if(_0x55f5fe===_0xf46845-0x1)return;this['focusables']['remove'](_0x34eff0),_0xf46845=_0x33c2c9?this['focusables']['getIndex'](_0x33c2c9):this['focusables']['length'];}this['focusables']['add'](_0x34eff0,_0xf46845);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x4fa8c1){super(_0x4fa8c1),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x140a33,_0x4f4428)=>_0x140a33+_0x4f4428),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x39e96e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x39e96e['to']('isAnimationDisabled',_0x5c47da=>_0x5c47da?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x39e96e['to']('top',_0x3e9196=>Ot(_0x3e9196))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x272de2=this['element']['clientHeight'];_0x272de2&&(this['height']=_0x272de2);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0xfe7412{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53c64a){super(_0x53c64a),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 _0x299084=this['context']['config']['get']('sidebar.container');_0x299084&&this['setContainer'](_0x299084);}['setContainer'](_0x4297ea){if(!g(_0x4297ea))throw new _0xd3f428('sidebar-setcontainer-invalid-element');this['container']=_0x4297ea;}['_attachToContainer']({viewClass:_0x55293='',spaceBetweenItems:_0x29c546=0x19}={}){if(!g(this['container']))throw new _0xd3f428('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x55293,this['_spaceBetweenItems']=_0x29c546;}['rearrange']({removedAnnotation:_0x36df09,previousAnnotation:_0x1b858b,nextAnnotation:_0x36ab27}){const _0x1919b8=this['getSidebarItemView'](_0x36df09);this['view']['list']['remove'](_0x1919b8),this['_destroySidebarItemView'](_0x36df09),_0x1b858b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1b858b)),_0x36ab27&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x36ab27)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x586391,activatedAnnotation:_0x17af6d,disableAnimationOnActivatedAnnotation:_0x400b65}){if(this['_activeAnnotation']=_0x17af6d,_0x586391){_0x586391['isActive']=!0x1;const _0x10e103=this['getSidebarItemView'](_0x586391);_0x10e103&&_0x400b65&&(_0x10e103['isAnimationDisabled']=!0x1);}if(_0x17af6d){const _0x2c63fb=this['getSidebarItemView'](_0x17af6d);_0x2c63fb&&(_0x17af6d['isActive']=!0x0,_0x400b65&&(_0x2c63fb['isAnimationDisabled']=!0x0,_0x2c63fb['top']+=0x1),this['_alignToTargetRect'](_0x2c63fb));}}['_detachFromContainer'](_0x58d40d){if(this['view']['element']['remove'](),_0x58d40d){for(const _0x5cfce5 of _0x58d40d)this['_destroySidebarItemView'](_0x5cfce5);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x312ca5,_0x39b089){_0x39b089||(_0x39b089=_0x312ca5['view']);const _0x2073a9=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x2073a9,_0x312ca5),this['_annotationToSidebarItemView']['set'](_0x312ca5,_0x2073a9),_0x2073a9['content']['add'](_0x39b089),this['listenTo'](_0x312ca5['view'],'change:targetRect',(_0x223742,_0x47ea46,_0x5c6d22)=>{const _0x5e6612=this['_getTargetTop'](_0x312ca5,_0x5c6d22);_0x2073a9['_targetTop']!=_0x5e6612&&(_0x2073a9['_targetTop']=_0x5e6612,this['_setItemTop'](_0x2073a9,_0x5e6612));}),this['listenTo'](_0x2073a9,'change:top',()=>{this['_recalculate'](_0x2073a9,'top');}),this['listenTo'](_0x2073a9,'change:bottom',()=>{this['_recalculate'](_0x2073a9,'bottom');}),this['_alignToTargetRect'](_0x2073a9);const _0x4095ac=this['_getItemBefore'](_0x2073a9);if(_0x4095ac)this['_alignAfterItem'](_0x4095ac,_0x2073a9)||this['_alignToTargetRect'](_0x2073a9);else this['_alignToTargetRect'](_0x2073a9);return this['_updateLastItem'](),this['view']['list']['add'](_0x2073a9),_0x2073a9;}['_alignForTopChange'](_0x412b1a){if(!_0x412b1a['content']['length'])return;const _0x1b9ba1=this['_getItemBefore'](_0x412b1a);if(!_0x1b9ba1)return;const _0x2ff565=this['_sidebarItemViewToAnnotation']['get'](_0x1b9ba1),_0x293bea=this['_activeAnnotation'];_0x293bea&&_0x293bea===_0x2ff565?this['_alignAfterItem'](_0x1b9ba1,_0x412b1a):this['_alignBeforeItem'](_0x412b1a,_0x1b9ba1);}['_alignForBottomChange'](_0x543276){if(!_0x543276['content']['length'])return;const _0x2df675=this['_getItemAfter'](_0x543276);if(!_0x2df675)return;const _0x266c2c=this['_sidebarItemViewToAnnotation']['get'](_0x2df675),_0x19dc83=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x3d8e63=this['_activeAnnotation'];_0x3d8e63&&_0x3d8e63===_0x266c2c&&_0x19dc83?(this['_alignBeforeItem'](_0x2df675,_0x543276),this['_alignAfterItem'](_0x543276,_0x2df675)):_0x3d8e63&&_0x3d8e63===_0x266c2c?this['_alignBeforeItem'](_0x2df675,_0x543276):this['_alignAfterItem'](_0x543276,_0x2df675);}['_recalculate'](_0x3a1ebc,_0x610007){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x44c36f,changedProp:_0x4c4640}of this['_recalculateBuffer'])'top'===_0x4c4640?this['_alignForTopChange'](_0x44c36f):this['_alignForBottomChange'](_0x44c36f);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x3a1ebc,'changedProp':_0x610007});}['getSidebarItemView'](_0x8e2121){return this['_annotationToSidebarItemView']['get'](_0x8e2121);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x43d3ca){const _0x5f170c=this['getSidebarItemView'](_0x43d3ca);this['stopListening'](_0x5f170c),this['stopListening'](_0x43d3ca['view']),_0x5f170c['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x43d3ca),this['_sidebarItemViewToAnnotation']['delete'](_0x5f170c);}['_createSidebarView'](){const _0x3a18a5=new H(this['context']['locale']);return _0x3a18a5['render'](),this['on']('change:_lastItem',(_0x1654ea,_0x40a789,_0x4e2a28,_0x4b41fc)=>{_0x4b41fc&&_0x3a18a5['unbind']('minHeight'),_0x4e2a28?_0x3a18a5['bind']('minHeight')['to'](_0x4e2a28,'bottom'):_0x3a18a5['minHeight']=null;}),_0x3a18a5;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x16be55){const _0x374004=this['_sidebarItemViewToAnnotation']['get'](_0x16be55),_0x440ade=_0x374004&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x374004)-0x1);return _0x440ade&&this['getSidebarItemView'](_0x440ade)||null;}['_getItemAfter'](_0x199321){const _0x271a6a=this['_sidebarItemViewToAnnotation']['get'](_0x199321),_0x82e87f=_0x271a6a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x271a6a)+0x1);return _0x82e87f&&this['getSidebarItemView'](_0x82e87f)||null;}['_alignBeforeItem'](_0x647d40,_0x4cbbd7){_0x647d40['updateHeight']();const _0x702838=G(_0x4cbbd7['bottom']+this['_spaceBetweenItems'],_0x647d40['top']);return!!_0x702838&&(this['_setItemTop'](_0x4cbbd7,_0x4cbbd7['top']-_0x702838),!0x0);}['_alignAfterItem'](_0x4870c0,_0x43dc51){_0x4870c0['updateHeight']();const _0x572c73=G(_0x4870c0['bottom']+this['_spaceBetweenItems'],_0x43dc51['top']);return!!_0x572c73&&(this['_setItemTop'](_0x43dc51,_0x43dc51['top']+_0x572c73,!0x1),!0x0);}['_alignToTargetRect'](_0x175689){const _0x418704=this['_sidebarItemViewToAnnotation']['get'](_0x175689);if(!_0x418704||!_0x418704['target']||!_0x418704['targetRect'])return;const _0x2f8128=this['_getTargetTop'](_0x418704,_0x418704['targetRect']);this['_setItemTop'](_0x175689,_0x2f8128);}['_getTargetTop'](_0x4b52f9,_0x497f03){if(null===_0x497f03)return 0x0;if(_0x4b52f9['target']instanceof _0x57fdd2)return _0x497f03['top'];{const _0x3164f1=new _0x57fdd2(this['view']['element'])['top'];return _0x497f03['top']-_0x3164f1;}}['_setItemTop'](_0x18a27d,_0x3b7e2b,_0x55bcc0=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x55bcc0&&(_0x3b7e2b=Math['max'](_0x3b7e2b,this['_getMaxAvailableTop'](_0x18a27d))),_0x18a27d['top']=_0x3b7e2b;}['_getMaxAvailableTop'](_0x1ad5c2){let _0x35e1bc=this['_getItemBefore'](_0x1ad5c2),_0x59c520=0x0;for(;_0x35e1bc;)_0x35e1bc['updateHeight'](),_0x59c520+=this['_spaceBetweenItems']+_0x35e1bc['height'],_0x35e1bc=this['_getItemBefore'](_0x35e1bc);return _0x59c520;}}function G(_0x110976,_0x4e3d49){return Math['max'](_0x110976-_0x4e3d49,0x0);}function g(_0x4db17f){return null!==_0x4db17f&&'object'==typeof _0x4db17f&&0x1===_0x4db17f['nodeType'];}class e extends _0xfe7412{['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(_0x41c909){super(_0x41c909),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x4d4ef2(),this['_refreshPositioningDebounced']=_0x5e0d3b(()=>{_0x41c909['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x47e926=this['context']['plugins']['get'](j),_0x5a0a0f=this['context']['plugins']['get'](z);_0x47e926['register']('wideSidebar',this),_0x5a0a0f['container']&&_0x47e926['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3442a5){if(_0x3442a5===this['activeAnnotation'])return;const _0x196b34=this['context']['plugins']['get'](z);_0x196b34['_activeAnnotation']=_0x3442a5;const _0x25dd4f=this['activeAnnotation'];_0x196b34['refresh']({'blurredAnnotation':_0x25dd4f,'activatedAnnotation':_0x3442a5}),this['activeAnnotation']=_0x3442a5;}['attach'](_0x4a1f9a){this['annotations']=_0x4a1f9a;const _0xf02720=this['context']['plugins']['get'](z);if(_0xf02720['_annotations']=_0x4a1f9a,this['isAttached'])throw new _0xd3f428('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xf02720,'set:container',()=>{this['detach'](),this['listenTo'](_0xf02720,'change:container',_0x51fc73=>{_0x51fc73['off'](),this['attach'](_0x4a1f9a);});}),_0xf02720['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x38a800=_0x4ccc89=>{_0x4ccc89['updateTargetRect'](),_0xf02720['addAnnotation'](_0x4ccc89);};for(const _0x31adff of _0x4a1f9a)_0x38a800(_0x31adff);this['listenTo'](_0x4a1f9a,'add',(_0x3389bc,_0x39ab54)=>{_0x38a800(_0x39ab54);}),this['listenTo'](_0x4a1f9a,'remove',(_0x24acd3,_0x1d6512,_0x54b503)=>{_0xf02720['rearrange']({'removedAnnotation':_0x1d6512,'previousAnnotation':_0x4a1f9a['get'](_0x54b503-0x1),'nextAnnotation':_0x4a1f9a['get'](_0x54b503+0x1)}),_0x1d6512===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4a1f9a,'focus',(_0x2a88b0,_0x16db5e)=>{this['setActiveAnnotation'](_0x16db5e);}),this['listenTo'](_0x4a1f9a,'blur',()=>{this['setActiveAnnotation'](null);});const _0x34044e=this['context']instanceof _0x45e0d7?this['context']['editors']:new _0x4d4ef2([this['context']]);for(const _0x2da22b of _0x34044e)this['_integrateWithEditorAnnotations'](_0x2da22b);this['listenTo'](_0x34044e,'add',(_0xf4d091,_0xc6c3d)=>{this['listenTo'](_0xc6c3d,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xc6c3d);});}),this['listenTo'](_0x34044e,'remove',(_0x1e3789,_0x4d5636)=>{_0x4d5636['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4d5636['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0xd3f428('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1063e0=this['context']['plugins']['get'](z);_0x1063e0['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1063e0),this['stopListening'](this['annotations']),this['context']instanceof _0x45e0d7&&this['stopListening'](this['context']['editors']);for(const _0x1f34d1 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1f34d1);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2c1d4a){if(!_0x2c1d4a['plugins']['has']('EditorAnnotations'))return;const _0x1b224a=_0x2c1d4a['plugins']['get']('EditorAnnotations'),_0x16abd7=()=>{const _0x46c0ab=_0x1b224a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x46c0ab[0x0]||null);};this['listenTo'](_0x1b224a,'refresh',_0x16abd7),this['listenTo'](_0x1b224a,'blur',(_0x14c5cf,{isAnnotationTracked:_0x263ca3})=>{this['activeAnnotation']&&_0x263ca3(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1b224a,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x33bbfc=>{_0x1b224a['hasDomSelection']()&&(_0x16abd7(),_0x33bbfc['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1b224a);}['_destroyEditorAnnotationsIntegration'](_0x1edfbe){this['stopListening'](_0x1edfbe),this['_editorAnnotations']['remove'](_0x1edfbe);}}class C extends _0x8118da{['counterView'];constructor(_0x461e0d){super(_0x461e0d);const _0x45a638=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4a1afd,_0x2936c3)=>_0x4a1afd?'...':_0x2936c3['toString']()),this['set']('annotationType',''),this['icon']=_0x4a5b76,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x45a638['to']('annotationType',_0x2e9013=>'ck-annotation-counter__badge--'+_0x2e9013),_0x45a638['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x45a638['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0xfe7412{['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(_0x45d288){super(_0x45d288),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x39efeb())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x4d4ef2(),this['_refreshPositioningDebounced']=_0x5e0d3b(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x3051f9(this['context']['locale']),this['balloonPanelView']=new _0x175f2a(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x1ee68e){this['annotations']=_0x1ee68e;const _0xe142e3=this['context']['plugins']['get'](z),_0x2152b3=this['balloonPanelView'];if(_0xe142e3['_annotations']=_0x1ee68e,this['isAttached'])throw new _0xd3f428('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xe142e3,'set:container',()=>{this['detach'](),this['listenTo'](_0xe142e3,'change:container',_0x58c037=>{_0x58c037['off'](),this['attach'](_0x1ee68e);});}),_0xe142e3['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3d9218=_0x1cd3e0=>{const _0x5e4406=new C(this['context']['locale']);_0xe142e3['addAnnotation'](_0x1cd3e0,_0x5e4406),this['_annotationToNarrowView']['set'](_0x1cd3e0,_0x5e4406),_0x5e4406['bind']('isDirty','annotationType','number')['to'](_0x1cd3e0['view'],'isDirty','type','length'),_0x5e4406['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x2152b3['content']['first']!==_0x1cd3e0['view']?(this['_showBalloon'](_0x1cd3e0),_0x1cd3e0['view']['element']['focus'](),this['setActiveAnnotation'](_0x1cd3e0)):this['setActiveAnnotation'](null);});};for(const _0x352f19 of _0x1ee68e)_0x3d9218(_0x352f19);this['listenTo'](_0x1ee68e,'add',(_0x45f29d,_0x290243)=>{_0x3d9218(_0x290243);}),this['listenTo'](_0x1ee68e,'remove',(_0x24d736,_0xbe701e,_0x4b5db8)=>{this['_annotationToNarrowView']['get'](_0xbe701e)['destroy'](),this['_annotationToNarrowView']['delete'](_0xbe701e),_0xe142e3['rearrange']({'removedAnnotation':_0xbe701e,'previousAnnotation':_0x1ee68e['get'](_0x4b5db8-0x1),'nextAnnotation':_0x1ee68e['get'](_0x4b5db8+0x1)}),_0xbe701e===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x1ee68e,'focus',(_0x123bbc,_0x1f3c36)=>{this['setActiveAnnotation'](_0x1f3c36);}),this['listenTo'](_0x1ee68e,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x505889,_0x576a3d)=>{_0x576a3d['keyCode']===_0x226af2['esc']&&_0x2152b3['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x2152b3['content']['first']),this['_hideBalloon'](),_0x576a3d['stopPropagation'](),_0x576a3d['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x5b79bf,_0x290a66)=>{const _0x1d8898=_0x290a66['target'];_0x2152b3['isVisible']&&_0x2152b3['element']['contains'](_0x1d8898)||_0xe142e3['view']['element']['contains'](_0x1d8898)||_0x5b79bf['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x93f6d8=>_0x93f6d8['contains'](_0x1d8898))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x39f170=this['context']instanceof _0x45e0d7?this['context']['editors']:new _0x4d4ef2([this['context']]);for(const _0x5a09a7 of _0x39f170)this['_integrateWithEditorAnnotations'](_0x5a09a7);this['listenTo'](_0x39f170,'add',(_0x50253d,_0x17471b)=>{this['listenTo'](_0x17471b,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x17471b);});}),this['listenTo'](_0x39f170,'remove',(_0x3bdd2e,_0x3a434f)=>{_0x3a434f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3a434f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x245de0){if(_0x245de0===this['activeAnnotation'])return;const _0x5e9897=this['context']['plugins']['get'](z);if(_0x5e9897['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x245de0,'disableAnimationOnActivatedAnnotation':!0x0}),_0x245de0)_0x5e9897['getSidebarItemView'](_0x245de0)?this['_showBalloon'](_0x245de0):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x245de0;}['detach'](){if(!this['isAttached'])throw new _0xd3f428('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5ee313=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0xaf7b7d=>_0xaf7b7d['destroy']()),this['_annotationToNarrowView']['clear'](),_0x5ee313['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x45e0d7&&this['stopListening'](this['context']['editors']);for(const _0x5664d3 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5664d3);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'](_0x2540c2){if(!_0x2540c2['plugins']['has']('EditorAnnotations'))return;const _0x46472b=_0x2540c2['plugins']['get']('EditorAnnotations'),_0x40fb46=this['context']['plugins']['get'](z),_0x41f83a=this['annotations'],_0x57e100=this['balloonPanelView'],_0x52d4a5=()=>{const _0xfb1e96=_0x46472b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0xfb1e96),this['setActiveAnnotation'](_0xfb1e96[0x0]||null);};this['listenTo'](_0x46472b,'refresh',_0x52d4a5),this['listenTo'](_0x46472b,'blur',(_0x6f7510,{isAnnotationTracked:_0x194780})=>{this['activeAnnotation']&&_0x194780(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x46472b,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x41f83a,'blur',_0x11f84e=>{_0x46472b['hasDomSelection']()&&_0x11f84e['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x501805,_0x33f8b5)=>{const _0x2f81f7=_0x33f8b5['target'];_0x57e100['isVisible']&&_0x57e100['element']['contains'](_0x2f81f7)||_0x40fb46['view']['element']['contains'](_0x2f81f7)||this['activeAnnotation']&&_0x46472b['hasDomSelection']()&&(_0x52d4a5(),_0x501805['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x46472b);}['_destroyEditorAnnotationsIntegration'](_0x24dc7d){_0x24dc7d&&(this['stopListening'](_0x24dc7d),this['_editorAnnotations']['remove'](_0x24dc7d));}['_setSelectedAnnotations'](_0x22ebdc){for(const _0x3a4978 of this['_selectedAnnotations'])_0x22ebdc['includes'](_0x3a4978)||this['_manuallyClosedAnnotationViews']['delete'](_0x3a4978['view']);this['_selectedAnnotations']=_0x22ebdc;}['_refreshPositioning'](){const _0x26baac=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x26baac['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x5e6f05){if(this['_manuallyClosedAnnotationViews']['has'](_0x5e6f05['view']))return;const _0x42c799=this['balloonPanelView']['content']['first'];_0x42c799!==_0x5e6f05['view']?(_0x42c799&&this['_detachListeners'](_0x42c799),this['_attachListeners'](_0x5e6f05['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x5e6f05['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x40febb=this['balloonPanelView']['content']['first'],_0xf6f868=_0x40febb&&this['annotations']['getByView'](_0x40febb);if(!_0xf6f868||!this['_annotationToNarrowView']['has'](_0xf6f868))return;const _0x2fac36=this['_annotationToNarrowView']['get'](_0xf6f868)['element'],_0x5d4021=(function(){const _0x55ac4d=_0x175f2a['defaultPositions'];return[_0x55ac4d['southArrowNorthEast'],_0x55ac4d['northArrowSouthEast'],_0x55ac4d['southArrowNorth'],_0x55ac4d['northArrowSouth'],_0x55ac4d['southArrowNorthWest'],_0x55ac4d['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x2fac36,'positions':_0x5d4021});}['_hideBalloon'](){const _0x40adf1=this['balloonPanelView'],_0x44290b=_0x40adf1['content']['first'];_0x44290b&&(this['_detachListeners'](_0x44290b),_0x40adf1['unpin'](),_0x40adf1['content']['clear']());}['_attachListeners'](_0x69b6c3){this['listenTo'](_0x69b6c3,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x69b6c3,'Esc',(_0x85033a,_0x57ea71)=>{this['_manuallyClosedAnnotationViews']['add'](_0x69b6c3),this['_hideBalloon'](),_0x57ea71();});}['_detachListeners'](_0x4f1949){this['stopListening'](_0x4f1949);}}class c extends _0x8104b3{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x22e13d,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37e609){super(_0x37e609),_0x37e609['editing']['view']['addObserver'](_0x127348),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x37e609['plugins']['get'](_0x22e13d),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x4517ab=this['editor']['plugins']['get'](j);_0x4517ab['context']===this['editor']&&(_0x4517ab['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x5be56b,_0x51f324)=>{const _0x3349e8=this['_balloon'];if(this['isAttached']&&_0x3349e8['visibleView']){const _0x4d5b9f=this['annotations']['getByView'](_0x3349e8['visibleView']);_0x4d5b9f&&this['_closeAnnotation'](_0x4d5b9f),_0x51f324();}}));}['afterInit'](){const _0x450119=this['editor']['plugins']['get'](j);_0x450119['context']===this['editor']&&(_0x450119['hasActive']()||_0x450119['switchTo']('inline'));}['setActiveAnnotation'](_0x24326b){_0x24326b!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x24326b&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x24326b)&&this['_addAnnotationToBalloon'](_0x24326b,!0x0),_0x24326b['isActive']=!0x0),_0x24326b||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x24326b);}['attach'](_0x53b163){this['annotations']=_0x53b163;const _0x14a421=this['editor']['plugins']['get'](j),_0x449665=this['_balloon'];if(this['isAttached'])throw new _0xd3f428('inlineannotations-attach-already-attached',this);if(_0x14a421['context']!==this['editor'])throw new _0xd3f428('inlineannotations-not-allowed-with-context',this);const _0x24c515=this['editor']['plugins']['get'](b);this['listenTo'](_0x24c515,'refresh',()=>{const _0x315919=_0x24c515['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x1706e2,_0x3ca196;!this['_forceRefresh']&&(_0x1706e2=_0x315919,_0x3ca196=this['_selectedAnnotations'],_0x1706e2['length']===_0x3ca196['length']&&_0x1706e2['every'](_0x4edd65=>_0x3ca196['includes'](_0x4edd65)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x315919),this['setActiveAnnotation'](_0x315919[0x0]||null));}),this['listenTo'](_0x24c515,'blur',(_0x78602a,{isAnnotationTracked:_0x1eba82})=>{this['activeAnnotation']&&_0x1eba82(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x31d6d7,_0x2c9209,_0x3f1830)=>{_0x3f1830||this['setActiveAnnotation'](null);}),this['listenTo'](_0x53b163,'remove',(_0x44549f,_0x5dbc8)=>{this['_removeAnnotationFromBalloon'](_0x5dbc8),_0x5dbc8===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x449665,'change:visibleView',(_0x35a97c,_0x3d54c6,_0x308603,_0xf1e3e5)=>{_0xf1e3e5&&this['stopListening'](_0xf1e3e5);const _0x366eda=_0x53b163['getByView'](_0x308603);_0x308603&&_0x366eda&&(this['listenTo'](_0x308603,'change:height',()=>{_0x449665['updatePosition']();}),this['listenTo'](_0x308603,'Esc',()=>{this['_closeAnnotation'](_0x366eda),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x366eda&&this['setActiveAnnotation'](_0x366eda));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x449665['visibleView']&&(_0x53b163['getByView'](_0x449665['visibleView'])&&_0x449665['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 _0xd3f428('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1d3d1d of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1d3d1d);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x5e49d2){for(const _0x3775dd of this['_selectedAnnotations'])_0x5e49d2['includes'](_0x3775dd)||this['_manuallyClosed']['delete'](_0x3775dd);for(const _0x32afe3 of this['annotations'])_0x5e49d2['includes'](_0x32afe3)||this['_removeAnnotationFromBalloon'](_0x32afe3);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0xe4b2e5 of _0x5e49d2)this['_addAnnotationToBalloon'](_0xe4b2e5);}this['_selectedAnnotations']=_0x5e49d2;}['_addAnnotationToBalloon'](_0x589d41,_0x14f76d=!0x1){this['_manuallyClosed']['has'](_0x589d41)||(this['_addedAnnotations']['has'](_0x589d41)||this['_balloon']['hasView'](_0x589d41['view'])||(this['_addedAnnotations']['add'](_0x589d41),this['_balloon']['add']({'stackId':_0x589d41['view']['id'],'view':_0x589d41['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x589d41)}})),_0x14f76d&&this['_balloon']['showStack'](_0x589d41['view']['id']));}['_getBalloonTargetForAnnotation'](_0x4cdf55){const _0x4f4ce9=_0x4cdf55['target'],_0x1616d2=this['editor']['editing']['view'],_0x9cfbc=_0x1616d2['document']['selection']['getFirstRange'](),_0x176923=_0x1616d2['domConverter']['viewRangeToDom'](_0x9cfbc);if(_0x176923['collapse'](!0x0),_0x4f4ce9){if(_0x4f4ce9 instanceof _0x57fdd2)return _0x4f4ce9;let _0x2c09a9=[];for(const _0x51d47b of _0x4f4ce9)_0x2c09a9['push'](...F(_0x51d47b['getClientRects']()));_0x2c09a9=function(_0x23e054){const _0x17db31=[];let _0x5edb13=_0x23e054[0x0];for(let _0x2f67ce=0x1;_0x2f67ce<_0x23e054['length'];_0x2f67ce++)P(_0x5edb13,_0x23e054[_0x2f67ce])?_0x5edb13['width']+=_0x23e054[_0x2f67ce]['width']:(_0x17db31['push'](_0x5edb13),_0x5edb13=_0x23e054[_0x2f67ce]);return _0x17db31['push'](_0x5edb13),_0x17db31;}(_0x2c09a9);const _0x21cd4b=_0x176923['getBoundingClientRect']();return _0x2c09a9['find'](_0x3eb13c=>_0x3eb13c['top']<=_0x21cd4b['top']&&_0x3eb13c['bottom']>=_0x21cd4b['bottom']&&_0x3eb13c['left']<=_0x21cd4b['left']&&_0x3eb13c['right']>=_0x21cd4b['right'])||_0x2c09a9[0x0];}return _0x4cdf55['targetRect']||_0x176923;}['_removeAnnotationFromBalloon'](_0x527576){this['_addedAnnotations']['has'](_0x527576)&&this['_balloon']['hasView'](_0x527576['view'])&&(this['_addedAnnotations']['delete'](_0x527576),this['_balloon']['remove'](_0x527576['view']));}['_closeAnnotation'](_0x58e196){this['_manuallyClosed']['add'](_0x58e196),this['_removeAnnotationFromBalloon'](_0x58e196);}}function F(_0x1a2b09){return Array['from'](_0x1a2b09)['map'](DOMRect['fromRect']);}function P(_0x1a0bdd,_0x7293fd){return _0x1a0bdd['top']===_0x7293fd['top']&&_0x1a0bdd['bottom']===_0x7293fd['bottom']&&_0x1a0bdd['right']===_0x7293fd['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x39b1eb,_0xd3096b){super(_0x39b1eb),this['set']('isEmpty',!_0xd3096b['length']),this['focusTracker']=new _0x5ead02(),this['_annotationViews']=_0xd3096b,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x76289f({'focusables':_0xd3096b,'focusTracker':this['focusTracker']}),this['listenTo'](_0xd3096b,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0xd3096b,'remove',(_0x206248,_0x1dbc8c)=>{_0x1dbc8c['isActive']&&this['focus'](),_0xd3096b['length']||(this['isEmpty']=!0x0);});const _0x5dc09a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x39b1eb,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0xd3096b},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x5dc09a['if']('isEmpty','ck-hidden',_0x36a63d=>!_0x36a63d)]},'children':[{'text':N(_0x39b1eb,'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 _0x6b7b58 of this['_annotationViews'])this['focusTracker']['add'](_0x6b7b58['element']);this['_annotationViews']['on']('change',(_0x11830a,{added:_0x586197,removed:_0x2f382f})=>{for(const _0x40ff35 of _0x586197)this['focusTracker']['add'](_0x40ff35['element']);for(const _0x2f9ecd of _0x2f382f)this['focusTracker']['remove'](_0x2f9ecd['element']);});}}class p extends _0xfe7412{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x419e1b){super(_0x419e1b),this['archivedThreads']=new _0x4d4ef2();}['init'](){const _0x402838=this['context'],_0xad26f2=_0x402838['plugins']['get'](o),_0x37ba24=_0x402838['plugins']['get'](y);this['listenTo'](_0xad26f2,'addCommentThread',(_0x112e02,{threadId:_0x167a34})=>{const _0x2cbec8=_0xad26f2['getCommentThread'](_0x167a34);_0x2cbec8['archivedAt']&&this['archivedThreads']['add'](_0x2cbec8,this['_calculatePosition'](_0x2cbec8['archivedAt'])),this['listenTo'](_0x2cbec8,'change:archivedAt',(_0x22c10f,_0x1105b3,_0x166860)=>{_0x166860?this['archivedThreads']['has'](_0x2cbec8)||this['archivedThreads']['add'](_0x2cbec8,this['_calculatePosition'](_0x2cbec8['archivedAt'])):this['archivedThreads']['has'](_0x2cbec8)&&this['archivedThreads']['remove'](_0x2cbec8);});}),this['listenTo'](_0xad26f2,'removeCommentThread',(_0x587f2c,{threadId:_0x3096af})=>{const _0x4430a2=_0xad26f2['getCommentThread'](_0x3096af);this['stopListening'](_0x4430a2),this['archivedThreads']['has'](_0x4430a2)&&this['archivedThreads']['remove'](_0x4430a2);},{'priority':'highest'}),this['listenTo'](_0x37ba24['collection'],'focus',(_0x58d9fc,_0x32b0e6)=>{_0x32b0e6['isVisible']||(_0x32b0e6['isActive']=!0x0,_0x37ba24['activate'](_0x32b0e6));});}['_calculatePosition'](_0x8c71d6){const _0x2536a7=[...this['archivedThreads']]['findIndex'](_0x4b876d=>_0x4b876d['archivedAt']<_0x8c71d6);return _0x2536a7>-0x1?_0x2536a7:this['archivedThreads']['length'];}}class a extends _0x8104b3{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x24c213];}constructor(_0x49b88b){super(_0x49b88b),this['annotationViews']=new _0x6ba4d4(),this['_pendingThreads']=[];}['init'](){const _0x2ac217=this['editor'],_0x1453e2=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x2ac217['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x8118da,!0x0)),_0x2ac217['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x262f72=this['_createCommentsArchiveButton'](_0x5c9447);return _0x262f72['set']({'role':'menuitemcheckbox'}),_0x262f72;});const _0x20612a=_0x2ac217['plugins']['get'](p),_0x2cd808=_0x2ac217['plugins']['get']('Annotations'),_0x56850a=_0x2ac217['plugins']['get']('CommentsRepository');_0x20612a['archivedThreads']['forEach'](_0x31d5ad=>{this['_handleNewThread'](_0x31d5ad);}),this['listenTo'](_0x20612a['archivedThreads'],'add',(_0x25fbd2,_0x39c5e5)=>{this['_handleNewThread'](_0x39c5e5);}),this['listenTo'](_0x2cd808['collection'],'add',(_0x2e9089,_0x53b4f1)=>{const _0x52f1f9=this['_pendingThreads']['find'](_0x4bd92a=>{const _0x1d32d8=_0x56850a['_threadToController']['get'](_0x4bd92a);return _0x1d32d8&&_0x53b4f1['innerView']===_0x1d32d8['view'];});if(_0x52f1f9){const _0x55395d=this['_calculatePosition'](_0x52f1f9['archivedAt']);this['annotationViews']['add'](_0x53b4f1['view'],_0x55395d),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x52f1f9),0x1);}}),this['listenTo'](_0x20612a['archivedThreads'],'remove',(_0x4293b2,_0x546756)=>{const _0x188476=_0x2ac217['config']['get']('collaboration.channelId');if(!_0x188476||_0x546756['channelId']===_0x188476){if(this['_pendingThreads']['includes'](_0x546756))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x546756),0x1);else{const _0x11c12e=_0x56850a['_threadToController']['get'](_0x546756),_0x2da11c=_0x2cd808['getByInnerView'](_0x11c12e['view']);this['annotationViews']['remove'](_0x2da11c['view']),this['stopListening'](_0x2da11c['focusableElements']);}}}),this['listenTo'](_0x2cd808['collection'],'add',(_0x24985f,_0x42be5b)=>{this['listenTo'](_0x42be5b,'escape',_0x1453e2);}),this['listenTo'](_0x2cd808['collection'],'remove',(_0x3bdbc0,_0x2cc9f7)=>{this['stopListening'](_0x2cc9f7,'escape',_0x1453e2);});}['_handleNewThread'](_0x16d851){const _0x567ec4=this['editor']['plugins']['get']('CommentsRepository'),_0x1563e7=this['editor']['plugins']['get']('Annotations'),_0x376dae=this['editor']['config']['get']('collaboration.channelId');if(!_0x376dae||_0x16d851['channelId']===_0x376dae){const _0x211b6a=_0x567ec4['_threadToController']['get'](_0x16d851);if(!_0x211b6a)return void this['_pendingThreads']['push'](_0x16d851);const _0x13fb55=this['_calculatePosition'](_0x16d851['archivedAt']),_0x5773de=_0x1563e7['getByInnerView'](_0x211b6a['view']);_0x5773de['isVisible']&&_0x1563e7['_visibleAnnotations']['remove'](_0x5773de),this['annotationViews']['add'](_0x5773de['view'],_0x13fb55);}}['_calculatePosition'](_0x3a4360){const _0x3ff2f4=this['editor']['config']['get']('collaboration.channelId'),_0xf43ec8=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x2a2b64=>_0x2a2b64['channelId']===_0x3ff2f4)['findIndex'](_0x58201f=>_0x58201f['archivedAt']<_0x3a4360);return _0xf43ec8<0x0||_0xf43ec8>this['annotationViews']['length']?this['annotationViews']['length']:_0xf43ec8-0x1;}['_toggleDialog'](){const _0x2a420d=this['editor'],_0x3a0130=_0x2a420d['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x2a420d['locale'],this['annotationViews'])),'commentsArchive'===_0x3a0130['id']?_0x3a0130['hide']():_0x3a0130['show']({'id':'commentsArchive','title':N(_0x2a420d['locale'],'COMMENTS_ARCHIVE'),'icon':_0x1d3cb7,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3768f4['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x23819b,_0x59f247=!0x1){const _0x4605f2=this['editor']['locale'],_0xa5de7=this['editor']['plugins']['get']('Dialog'),_0x168645=new _0x23819b(_0x4605f2);return _0x168645['bind']('isEnabled')['to'](this,'isEnabled'),_0x168645['bind']('isOn')['to'](_0xa5de7,'id',_0x36dfdc=>'commentsArchive'===_0x36dfdc),_0x168645['set']({'label':N(_0x4605f2,'COMMENTS_ARCHIVE'),'icon':_0x1d3cb7,'isToggleable':!0x0}),_0x59f247&&(_0x168645['tooltip']=!0x0),this['listenTo'](_0x168645,'execute',()=>this['_toggleDialog']()),_0x168645;}['_hideDialogOnAnnotationEscape']=_0x5cb207=>{const _0x4bd524=_0x5cb207['source'];if(!this['annotationViews']['has'](_0x4bd524['view']))return;const _0x43533d=this['editor']['plugins']['get']('Dialog');_0x43533d['isOpen']&&'commentsArchive'===_0x43533d['id']&&(_0x43533d['hide'](),_0x5cb207['stop']());};}class gi extends _0x8104b3{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 _0x5b1ec6,ContextPlugin as _0x565db7,PendingActions as lt,Command as _0x3cd900,Plugin as _0x48f069,Context as _0x2180b4}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x289e5b,uid as _0x240cbb,KeystrokeHandler as jt,FocusTracker as _0x40a4de,diff as _0xf497c5,Collection as _0x434287,Rect as _0x13f83e,CKEditorError as _0x2b0648,first as _0x42cb1a,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x29767a,keyCodes as _0x28e2c2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x2c11a9,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0xe763ff,trimHtml as _0x345b0b,LateFocusDropdownButtonView as _0xb7ad09,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x4f5ef3}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x3fee7d}from'es-toolkit/compat';import{IconUndo as _0xa5ae79,IconCheck as _0x382b25,IconPencil as _0x4bc3db,IconRemoveComment as _0x4456f5,IconThreeVerticalDots as _0x42d978,IconAddComment as _0x33239b,IconCommentsArchive as _0xdc9f4a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x4d1493,ButtonView as _0x5381c7,ViewCollection as _0x263ec4,createDropdown as _0x21272b,ListView as _0x224aca,focusChildOnDropdownOpen as _0x36fc61,ListItemView as _0x44d1f6,MenuBarMenuListItemButtonView as _0x39f9bd,BodyCollection as _0xc4bcbf,BalloonPanelView as _0x124ee5,ContextualBalloon as _0x248293,Dialog as _0xda48dc,DialogViewPosition as _0xfa45d9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0x450994}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Bt,ShiftEnter as Et}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 _0x11f4fd}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x1b2e6c}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x289e5b(){['model'];['view'];constructor(_0x3ca9ea,_0x489157){super(),this['model']=_0x3ca9ea,this['model']['_isAttached']=!0x0,this['view']=_0x489157,this['listenTo'](_0x489157,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x489157,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x489157,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x489157,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x489157,'addComment',(_0x45cdad,_0x32159d)=>this['addComment'](_0x32159d)),this['listenTo'](_0x489157,'updateComment',(_0x32d963,_0x17ed08,_0x5b53cd)=>this['updateComment'](_0x17ed08,_0x5b53cd)),this['listenTo'](_0x489157,'removeComment',(_0x4ab653,_0x5212a5)=>this['removeComment'](_0x5212a5));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x493848){this['model']['addComment']({'content':_0x493848,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3c9874,_0x14c4cc){this['model']['getComment'](_0x3c9874)['update']({'content':_0x14c4cc});}['removeComment'](_0x509286){this['model']['getComment'](_0x509286)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x15849c,_0x1c0306,_0x28e29f){const t=_0x15849c['t'];switch(_0x1c0306){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'},_0x28e29f);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'},_0x28e29f);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'},_0x28e29f);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'},_0x28e29f);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x28e29f);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'},_0x28e29f);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'},_0x28e29f);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'},_0x28e29f);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 Vt extends Xt{['main'];['editable'];constructor(_0x1fe2cd,_0x35851b){super(_0x1fe2cd);const _0x5cc6c9=_0x240cbb();this['main']=this['createCollection'](),this['editable']=new $t(_0x1fe2cd,_0x35851b,void 0x0,{'label':()=>N(_0x1fe2cd,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x1fe2cd['uiLanguageDirection'],'lang':_0x1fe2cd['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5cc6c9},'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 Ft extends Ut{['view'];constructor(_0x1831ce){super(_0x1831ce),this['view']=new Vt(_0x1831ce['locale'],_0x1831ce['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x75e411=this['editor']['editing']['view'],_0x40e74f=this['view']['editable'],_0x4a55d2=_0x75e411['document']['getRoot']();_0x40e74f['name']=_0x4a55d2['rootName'],this['view']['render']();const _0x218a98=_0x40e74f['element'];this['setEditableElement'](_0x40e74f['name'],_0x218a98),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x75e411['attachDomRoot'](_0x218a98),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x289e5b(_0x5b1ec6){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x26d643={}){function _0x1dd628(_0x51b8ea){return _0x51b8ea['map'](_0x6fa8dc=>String['fromCharCode'](_0x6fa8dc))['join']('');}(_0x26d643=Object['assign']({},_0x26d643))['plugins']||(_0x26d643['plugins']=Rt['defaultPlugins']),super(_0x26d643),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x1dd628([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dd628([0x76,0x69,0x65,0x77])][_0x1dd628([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1dd628([0x61,0x75,0x74,0x6f]),this[_0x1dd628([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1dd628([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1dd628([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1dd628([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1dd628([0x6f,0x6b])});}['create'](){const _0x17ad3e=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x17ad3e))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x588290=>{const _0x4af6d3=this['model']['document']['getRoot'](),_0x479b0f=_0x4af6d3&&_0x4af6d3['getChild'](_0x4af6d3['childCount']-0x1);_0x588290['setSelection'](_0x479b0f,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x313003=this['editing']['view'],_0x2248fb=_0x313003['document']['getRoot'](),_0x2e6c35=_0x2248fb['getChild'](0x0);_0x2248fb['childCount']>0x1||!_0x2e6c35||'p'!=_0x2e6c35['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x313003,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x2e6c35['placeholder']=this['placeholder']),St({'view':_0x313003,'element':_0x2e6c35,'keepOnFocus':!0x0}),this['placeholderElement']=_0x2e6c35);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x343e6c,_0x21f0d7={}){super(_0x343e6c),this['editor']=null,this['_editorConfig']=_0x21f0d7,this['set']('value',_0x21f0d7['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x343e6c,'Reply...')),this['set']('submitLabel',N(_0x343e6c,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x40a4de(),this['focusCycler']=new _0x4d1493({'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',(_0x304157,_0x20569f)=>{this['cancelButtonView']['fire']('execute'),_0x20569f();}),this['keystrokes']['set']('Ctrl+Enter',(_0x2aaad2,_0x37f4f8)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x37f4f8());}),this['on']('submit',(_0x5e6cbc,_0x313602)=>{_0x313602['length']>0xfde8?(alert(N(_0x343e6c,'TOO_LONG_COMMENT_ALERT',[_0x313602['length'],0xfde8])),_0x5e6cbc['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x43090c=this['editor'];this['element']['insertBefore'](_0x43090c['ui']['element'],this['element']['firstChild']),_0x43090c['model']['document']['on']('change',()=>this['value']=_0x43090c['getData']()),_0x43090c['bind']('placeholder')['to'](this),this['focusables']['add'](_0x43090c['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x45b2f8){-0x1===_0x45b2f8?(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:_0x327f6b}=this,_0x2d7787=new _0x5381c7(_0x327f6b);return _0x2d7787['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2d7787['withText']=!0x0,_0x2d7787['bind']('label')['to'](this,'submitLabel'),_0x2d7787['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2d7787['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x5d51ef,_0x5b2c59)=>!_0x5b2c59&&!!_0x5d51ef['trim']()),_0x2d7787;}['_createCancelButton'](){const {locale:_0x1bd3a8}=this,_0x8887d5=new _0x5381c7(_0x1bd3a8);return _0x8887d5['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x8887d5['label']=N(_0x1bd3a8,'Cancel'),_0x8887d5['withText']=!0x0,_0x8887d5['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x8887d5;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x28f65e=>{this['focusTracker']['add'](_0x28f65e['element']);}),this['focusables']['on']('change',(_0x23ed6f,_0x2dcd3e)=>{for(const _0x52d274 of Array['from'](_0x2dcd3e['added'])['reverse']())this['focusTracker']['add'](_0x52d274['element']);});}}class ie extends kt{constructor(_0x2be280,_0x5da49b,_0xdd506e){super(_0x2be280),this['commentInputView']=new os(_0x2be280,_0xdd506e),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x14d7d1,_0x32cc24)=>_0x14d7d1||!!_0x32cc24),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 _0x2c11a9(_0x2be280,_0x5da49b),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'](_0x4fb4f5){this['commentInputView']['focus'](_0x4fb4f5);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xb6a69c,_0x2ce9f1)=>{const {submitButtonView:_0x498ea2,cancelButtonView:_0x1a0a85,editor:_0x91f40a}=this['commentInputView'];[_0x498ea2['element'],_0x1a0a85['element'],_0x91f40a?_0x91f40a['editing']['view']['getDomRoot']():null]['filter'](_0x1a3426=>_0x1a3426)['some'](_0x422eee=>_0x422eee['contains'](_0x2ce9f1['target']))||(this['focus'](),_0x2ce9f1['preventDefault']());});}}class rs extends kt{constructor(_0x32f2da){super(_0x32f2da);const _0x3107e7=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x3107e7['to']('count',_0x35ef44=>N(_0x32f2da,'NUMBER_OF_COMMENTS',_0x35ef44))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x31f16a,_0x2a8447,_0x23a639){super(_0x31f16a);const _0x20f487=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x2a8447['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x2a8447,this['_config']=_0x23a639,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x40a4de(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4d1493({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x115e25=>this['commentViews']['map'](_0x446845=>_0x446845['element'])['includes'](_0x115e25['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x31f16a),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x239fe7=>_0x239fe7-this['_config']['maxCommentsWhenCollapsed']);for(const _0x260b07 of _0x2a8447['comments'])this['_handleNewCommentModel'](_0x260b07);this['_handleInfoComment'](),this['listenTo'](_0x2a8447['comments'],'add',(_0x1e37cb,_0x5e0941)=>{const _0x4d7da3=this['_calculatePosition'](_0x5e0941);this['length']++,this['_handleNewCommentModel'](_0x5e0941,_0x4d7da3),this['refreshVisibleViews']();}),this['listenTo'](_0x2a8447['comments'],'remove',(_0x21efc6,_0x2948be)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2948be),this['refreshVisibleViews']();}),this['listenTo'](_0x2a8447,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x2a8447,'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',_0x20f487['if']('length','ck-hidden',_0xf3387f=>!_0xf3387f)],'aria-label':N(_0x31f16a,'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'](_0x10b494){-0x1===_0x10b494?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4fe5d3 of this['commentViews'])_0x4fe5d3['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3f4076,_0x3f4b72){const _0x3effc4=new this['_config']['CommentView'](this['locale'],_0x3f4076,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x3effc4['viewUid']=_0x3f4076['id'],_0x3effc4['delegate']('removeComment')['to'](this),_0x3effc4['delegate']('updateComment')['to'](this),_0x3effc4['delegate']('resolveCommentThread')['to'](this),_0x3effc4['delegate']('editorReady')['to'](this),_0x3effc4['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x3effc4,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x3effc4,_0x3f4b72);}['_calculatePosition'](_0x1d4770){const _0x26f40f=this['_model']['_findOptimalIndex'](_0x1d4770);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x1d4770['authoredAt']?_0x26f40f-0x1:_0x26f40f:_0x26f40f-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x378693={'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'],_0x378693,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x378693));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x526881){const _0x5ab622=this['commentViews']['remove'](_0x526881['id']);this['stopListening'](_0x5ab622),_0x5ab622['isEditMode']&&this['_updateHasDirtyComment'](),_0x5ab622['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x347082=>_0x347082['isEditMode']);}['_rearrangeCollapse'](){const _0x47ba2b=function(_0x57cc45){const _0x45a19d=new _0x434287();for(const _0x15ec43 of _0x57cc45)_0x45a19d['add'](_0x15ec43);return _0x45a19d;}(this['commentViews']),_0x5d8e9d=this['_collapsedCommentsView']['count'];for(let _0x95541e=0x1;_0x95541e<=_0x5d8e9d;_0x95541e++)_0x47ba2b['remove'](0x1);for(const _0x13ab54 of _0x47ba2b)_0x13ab54['collapse']();_0x5d8e9d>0x0&&_0x47ba2b['add'](this['_collapsedCommentsView'],0x1),ns(_0xf497c5(Array['from'](this['visibleViews']),Array['from'](_0x47ba2b)),this['visibleViews'],_0x47ba2b);}['_rearrangeExpand'](){ns(_0xf497c5(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x187129 of this['visibleViews'])_0x187129['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0xb5d4d9=>{this['focusTracker']['add'](_0xb5d4d9['element']),this['keystrokes']['listenTo'](_0xb5d4d9['element']);}),this['commentViews']['on']('change',(_0x1dec82,_0x28c8c8)=>{for(const _0x22f475 of _0x28c8c8['removed'])this['focusTracker']['remove'](_0x22f475['element']),this['keystrokes']['stopListening'](_0x22f475['element']);for(const _0x343c45 of Array['from'](_0x28c8c8['added'])['reverse']())this['focusTracker']['add'](_0x343c45['element']),this['keystrokes']['listenTo'](_0x343c45['element']);});}}function ns(_0x4ac87a,_0x5b24d4,_0x4d07e0){let _0x12bb2e=0x0;for(const _0x5c0ebb of _0x4ac87a)switch(_0x5c0ebb){case'insert':_0x5b24d4['add'](_0x4d07e0['get'](_0x12bb2e),_0x12bb2e),_0x12bb2e++;break;case'delete':_0x5b24d4['remove'](_0x12bb2e);break;case'equal':_0x12bb2e++;}}class oe extends kt{constructor(_0x467fe7){super(_0x467fe7);const _0x1a9d13=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1a9d13['to']('contextValue',_0x2eaf16=>N(_0x467fe7,'THREAD_CONTEXT_LABEL',_0x2eaf16)),'tabindex':-0x1},'children':[{'text':_0x1a9d13['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x265487,_0xbe4d06){super(_0x265487);const _0x1959e6=this['bindTemplate'];this['_model']=_0xbe4d06,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x40a4de(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4d1493({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x147f82=>!!_0x147f82),this['bind']('contextValue')['to'](this['_model'],'context',_0x41b027=>_0x41b027&&_0x41b027['value']?this['_trimContextValue'](_0x41b027['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',_0x1959e6['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 _0xc42e4a=new _0x5381c7(this['locale']);return _0xc42e4a['label']=N(this['locale'],'Reopen'),_0xc42e4a['tooltip']=N(this['locale'],'Reopen'),_0xc42e4a['icon']=_0xa5ae79,_0xc42e4a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x16319f=>!_0x16319f),_0xc42e4a['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x384539,_0x833cfd)=>_0x384539&&_0x833cfd),_0xc42e4a['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0xc42e4a;}['_trimContextValue'](_0x2550a5){if(_0x2550a5['length']<0x96)return _0x2550a5;const _0x42567e=_0x2550a5['lastIndexOf']('\x20',0x93);return _0x2550a5['substring'](0x0,_0x42567e>-0x1?_0x42567e:0x93)+'...';}['_attachContextActions'](){const _0x371ed7=this['element']['querySelector']('.ck-context'),_0x58f570=_0x371ed7['querySelector']('.ck-context__value');this['listenTo'](_0x371ed7,'mouseenter',()=>{_0x58f570['offsetWidth']<_0x58f570['scrollWidth']&&_0x371ed7['classList']['add']('overlay');}),this['listenTo'](_0x371ed7,'mouseleave',()=>{_0x371ed7['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0xf602c8 of this['focusables'])this['focusTracker']['add'](_0xf602c8['element']),this['keystrokes']['listenTo'](_0xf602c8['element']);}['_createContextView'](){const _0x291065=new oe(this['locale']);return _0x291065['bind']('contextValue')['to'](this),_0x291065;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x16d0bf,_0x1a05aa,_0x117b71,_0xe5d179){super(_0x16d0bf),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1a05aa,this['_localUser']=_0x117b71,this['_config']=_0xe5d179,this['commentThreadHeaderView']=new Yt(_0x16d0bf,_0x1a05aa),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x16d0bf,N(_0x16d0bf,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x16d0bf,_0x1a05aa,Object['assign']({'CommentView':this['_config']['CommentView']},_0xe5d179)),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',(_0x1dcb11,_0x679894)=>_0x1dcb11||!!_0x679894),this['bind']('isUnlinked')['to'](_0x1a05aa,'unlinkedAt',_0xa74c5=>!!_0xa74c5),this['bind']('ariaLabel')['to'](this,'length',_0x1ab902=>{const _0x421db8=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x1ab902,_0x421db8]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x40a4de(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4d1493({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4f0404=>_0x4f0404['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4de158=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x192e8f=_0x4de158['commentInputView'];return _0x4de158['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x192e8f,'value',(_0x10292d,_0x957866,_0x30dfe2,_0x29da2d,_0x2afeaf)=>!!_0x2afeaf||!!_0x29da2d&&_0x30dfe2&&!_0x957866||_0x10292d&&_0x30dfe2&&!_0x957866),_0x192e8f['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5f4cae,_0x52854c,_0x5dd0ae)=>{let _0x337491;return _0x337491=_0x5dd0ae&&_0x52854c?'Reply\x20to\x20reopen\x20discussion...':_0x5f4cae?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x337491);}),_0x192e8f['bind']('submitLabel')['to'](this,'length',_0x25e344=>N(this['locale'],_0x25e344?'Reply':'Comment')),_0x192e8f['on']('submit',(_0x77009d,_0xc05a75)=>{this['fire']('addComment',_0xc05a75),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x192e8f['on']('cancel',()=>{this['focus']();}),_0x192e8f['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x192e8f['on']('cancel',_0x196b56=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x196b56['stop']());}),this['on']('change:isActive',(_0x1672f0,_0x5db92c,_0x1ec7de)=>{_0x1ec7de||this['length']||_0x192e8f['value']||this['fire']('removeCommentThread');}),_0x4de158;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x1552af,_0x3d15eb,_0x99b445,_0x46ebd3){super(_0x1552af,_0x3d15eb,_0x99b445,_0x46ebd3),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1552af,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x5ba936,_0x3caa9b,_0x2031be)=>{_0x2031be||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5bb470,_0x1e02a2,_0x27d7d7)=>{_0x27d7d7&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x504aa9=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x504aa9['if']('isActive','ck-thread--active'),_0x504aa9['if']('isUnlinked','ck-thread--unlinked'),_0x504aa9['if']('isConfirm','ck-thread--remove-confirmation'),_0x504aa9['to']('actionIndicator',_0x147bd2=>_0x147bd2?'ck-thread--'+_0x147bd2:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x504aa9['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 _0x196ca3 of this['commentsListView']['commentViews'])_0x196ca3['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3edde0}=this,_0x3389c1=this['commentsListView']['commentViews']['get'](0x0);_0x3389c1===this['_boundFirstCommentView']||_0x3389c1['isSystemComment']||(this['_boundFirstCommentView']=_0x3389c1,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3389c1,'actionIndicator',_0x529b46=>'remove'===_0x529b46?'remove':null),_0x3389c1['placeholder']=N(_0x3edde0,'Write\x20a\x20comment...'),_0x3389c1['removeButton']['on']('execute',_0x465948=>{_0x465948['stop'](),this['showConfirm'](N(_0x3edde0,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3389c1['focus']();}),_0x3389c1['actionBar']['add'](this['resolveButton'],0x0),_0x3389c1['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x3e8dc2=new _0xe763ff(this['locale']);return _0x3e8dc2['label']=N(this['locale'],'Resolve'),_0x3e8dc2['tooltip']=N(this['locale'],'Resolve'),_0x3e8dc2['icon']=_0x382b25,_0x3e8dc2['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x3e8dc2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x311e2b=>!_0x311e2b),_0x3e8dc2['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2a96ee,_0x20e360)=>_0x2a96ee&&!_0x20e360),_0x3e8dc2['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x3e8dc2;}['_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 es extends kt{constructor(_0x7a6d64){super(_0x7a6d64),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x459271,_0xa91d06,_0x141548)=>{this['element']['innerHTML']=_0x141548;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x51d360,_0x2a927c,_0x666f5d){super(_0x51d360),this['_model']=_0x2a927c,this['_config']=_0x666f5d,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x2a927c,'content',_0x2a927c,'authoredAt',(_0x592cf6,_0x3855bf)=>N(_0x51d360,'COMMENT_ARIA_LABEL',[_0x2a927c['author']['name'],_0x666f5d['formatDateTime'](_0x3855bf),new DOMParser()['parseFromString'](_0x592cf6,'text/html')['body']['textContent'],_0x2a927c['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x51d360,N(_0x51d360,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x263ec4(),this['focusTracker']=new _0x40a4de(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4d1493({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xc88746=>_0xc88746['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 _0x128d1e=new es(this['locale']);return _0x128d1e['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x548f04,_0xbc1f6c)=>_0xbc1f6c?_0x345b0b(_0x548f04,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x548f04),_0x128d1e;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x14d26c=new os(this['locale'],this['_config']['editorConfig']);return _0x14d26c['value']=this['_model']['content'],_0x14d26c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x14d26c['submitLabel']=N(this['locale'],'Save'),_0x14d26c['on']('submit',(_0x51e718,_0x4e4ab8)=>{this['fire']('updateComment',this['_model']['id'],_0x4e4ab8),this['switchToDisplayMode'](),this['focus']();}),_0x14d26c['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x14d26c['once']('editorReady',()=>{_0x14d26c['focus']();}),_0x14d26c['createEditor'](),_0x14d26c['delegate']('editorReady')['to'](this),_0x14d26c['delegate']('editorDestroyed')['to'](this),_0x14d26c;}['_setupKeyboardNavigation'](){const _0x2151c5=this['element'];this['keystrokes']['listenTo'](_0x2151c5);for(const _0xc6f61 of this['focusables'])this['focusTracker']['add'](_0xc6f61['element']),this['keystrokes']['listenTo'](_0xc6f61['element']);this['focusables']['on']('change',(_0x564e18,_0x1c5899)=>{for(const _0x511f13 of _0x1c5899['removed'])this['focusTracker']['remove'](_0x511f13['element']),this['keystrokes']['stopListening'](_0x511f13['element']);for(const _0x3a1952 of _0x1c5899['added'])this['focusTracker']['add'](_0x3a1952['element']),this['keystrokes']['listenTo'](_0x3a1952['element']);}),this['keystrokes']['set']('enter',(_0x5d724d,_0x129a28)=>{_0x2151c5===_0x5d724d['target']&&(this['focusCycler']['focusFirst'](),_0x129a28());}),this['keystrokes']['set']('esc',(_0x5336f9,_0x5ee1ac)=>{_0x2151c5!==_0x5336f9['target']&&(this['focus'](),_0x5ee1ac());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x45c268,_0xc216d6,_0x5a7bca){super(_0x45c268,_0xc216d6,_0x5a7bca),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x45c268,'Reply...')),this['bind']('authoredAt')['to'](_0xc216d6),this['bind']('resolvedAt')['to'](_0xc216d6),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 _0x2c11a9(_0x45c268,_0xc216d6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0xc216d6,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x11f647=this['bindTemplate'],_0x4f3d1e=[{'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':_0x11f647['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x11f647['to']('authoredAt',_0x3ecc8d=>this['_config']['formatDateTime'](_0x3ecc8d))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x11f647['if']('isEditMode','ck-comment__actions--hidden'),_0x11f647['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']&&_0x4f3d1e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x11f647['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x11f647['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x11f647['if']('isEditMode','ck-comment--edit'),_0x11f647['if']('isSystemComment','ck-comment--info'),_0x11f647['to']('actionIndicator',_0x469e35=>_0x469e35?'ck-comment--'+_0x469e35:'')],'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':_0x4f3d1e}]}]};}['_createEditButton'](){const _0x43438c=new _0x5381c7(this['locale']);return _0x43438c['label']=N(this['locale'],'Edit'),_0x43438c['icon']=_0x4bc3db,_0x43438c['withText']=!0x0,_0x43438c['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x43438c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x379587=>!_0x379587),_0x43438c['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x43438c['on']('execute',()=>this['switchToEditMode']()),_0x43438c;}['_createRemoveButton'](){const _0x185aff=new _0x5381c7(this['locale']);return _0x185aff['label']=N(this['locale'],'Remove'),_0x185aff['icon']=_0x4456f5,_0x185aff['withText']=!0x0,_0x185aff['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x185aff['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2b749d=>!_0x2b749d),_0x185aff['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x185aff['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x185aff;}['_createDropdown'](){const _0x1bcba7=_0x21272b(this['locale'],_0xb7ad09),_0x1e6710=_0x1bcba7['panelView']['children'],_0x6159c3=new _0x224aca(this['locale']),_0x2110b8=_0x1bcba7['bindTemplate'];_0x36fc61(_0x1bcba7,()=>this['items']['find'](_0x4420bd=>_0x4420bd['isVisible'])),_0x1bcba7['extendTemplate']({'attributes':{'class':[_0x2110b8['if']('isVisible','ck-hidden',_0x537733=>!_0x537733)]}});const _0x26d6dc=(_0x23d787,_0x3d01b5=-0x1)=>{const _0x2ef3ba=new _0x44d1f6(this['locale']);_0x2ef3ba['children']['add'](_0x23d787);const _0x5518b1=_0x3d01b5>-0x1?_0x3d01b5:_0x6159c3['items']['length'];_0x6159c3['items']['add'](_0x2ef3ba,_0x5518b1);const _0x4d7dab=Array['from'](this['items']);_0x1bcba7['unbind']('isEnabled','isVisible'),_0x1bcba7['bind']('isEnabled')['toMany'](_0x4d7dab,'isEnabled',(..._0x492b5f)=>_0x492b5f['some'](_0xa8b1df=>_0xa8b1df)),_0x1bcba7['bind']('isVisible')['toMany'](_0x4d7dab,'isVisible',(..._0x12a89c)=>_0x12a89c['some'](_0x209ef2=>_0x209ef2));};_0x1bcba7['panelPosition']='sw',_0x1bcba7['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x42d978});for(const _0x3aefab of this['items'])_0x26d6dc(_0x3aefab);return _0x1e6710['add'](_0x6159c3),_0x1bcba7['listenTo'](this['items'],'add',(_0x4eea0d,_0x3fa4af,_0x19b1fe)=>{_0x26d6dc(_0x3fa4af,_0x19b1fe);}),_0x1bcba7['listenTo'](this['items'],'remove',(_0x1a4b40,_0x2757e7,_0x3309b6)=>{_0x6159c3['items']['remove'](_0x3309b6);}),_0x1bcba7;}['_attachActions'](_0x31f76d,_0x1b4ab3){const _0x198c48=_0x31f76d&&_0x31f76d['element'];_0x198c48&&(this['listenTo'](_0x198c48,'mouseenter',()=>this['actionIndicator']=_0x1b4ab3),this['listenTo'](_0x198c48,'focus',()=>this['actionIndicator']=_0x1b4ab3),this['listenTo'](_0x198c48,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x198c48,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x48585f=super['_createCommentInputView']();return _0x48585f['bind']('placeholder')['to'](this),_0x48585f;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x146844){const _0x28dbad=Dt(_0x146844,0x1e),_0xd2ddb8=new MutationObserver(_0x17c77c=>{for(const _0xf69d47 of _0x17c77c)('attributes'==_0xf69d47['type']&&'class'==_0xf69d47['attributeName']||'childList'==_0xf69d47['type']||'characterData'==_0xf69d47['type'])&&_0x28dbad();});return{'attach'(_0x431a87){_0xd2ddb8['observe'](_0x431a87,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0xd2ddb8['disconnect'](),_0x28dbad['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x219531,_0x5b0bf8){super(_0x219531),this['id']=_0x240cbb(),this['focusTracker']=new _0x40a4de(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x3886ec,_0x4ba06b)=>this['fire']('Esc',_0x4ba06b)),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'](_0x5b0bf8),this['mainView']=_0x5b0bf8;const _0xb5b683=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0xb5b683['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 _0x599efd=this['element']['clientHeight'];_0x599efd&&(this['height']=_0x599efd);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x289e5b(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x164ab8,target:_0x5e8381,type:_0x25efd6,isVisible:_0x2c7109=!0x0}){super(),this['view']=_0x164ab8,this['view']['element']||this['view']['render'](),this['_type']=_0x25efd6,this['_target']=_0x5e8381,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x434287([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0xf7acce,_0x5e5224)=>{this['view']['focusTracker']['add'](_0x5e5224);}),this['focusableElements']['on']('remove',(_0x240f22,_0x5f5284)=>{this['view']['focusTracker']['remove'](_0x5f5284);}),this['set']('isVisible',_0x2c7109);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x394d30=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x394d30),_0x394d30;}get['targetRect'](){const _0x5b1a58=this['target'];if(null===_0x5b1a58)return null;if(_0x5b1a58 instanceof _0x13f83e)return _0x5b1a58;const _0x637db8=_0x5b1a58['filter'](_0x8d6666=>function(_0x4b36b3){const _0x5003bd=_0x4b36b3['offsetParent'];if(_0x5003bd)return!0x0;const _0x3a92fd=_0x4b36b3['getClientRects']()['item'](0x0);return!!_0x3a92fd;}(_0x8d6666));return 0x0===_0x637db8['length']?null:new _0x13f83e(_0x637db8[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x55bc8f){this['view']['isActive']=_0x55bc8f,this['view']['mainView']['isActive']=_0x55bc8f;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3ee050){if(!(null===_0x3ee050||_0x3ee050 instanceof _0x13f83e||Array['isArray'](_0x3ee050)&&_0x3ee050['every'](_0x4643b2=>fi(_0x4643b2))))throw new _0x2b0648('annotation-invalid-target',null,{'target':_0x3ee050});}['_getNormalizedTarget'](){const _0x20a410='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x20a410)?[_0x20a410]:_0x20a410;}}function fi(_0x1090d9){return null!==_0x1090d9&&'object'==typeof _0x1090d9&&'nodeType'in _0x1090d9&&0x1===_0x1090d9['nodeType'];}class S extends _0x434287{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4bc657=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x40a4de(),this['_focusTracker']['on']('change:isFocused',(_0x37d6ec,_0x32d37a,_0x418b72)=>{_0x418b72||this['fire']('blur');});for(const _0x578dae of _0x4bc657)this['add'](_0x578dae);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2aa298){if(this['has'](_0x2aa298))throw new _0x2b0648('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2aa298['innerView'],_0x2aa298),this['_viewToAnnotation']['set'](_0x2aa298['view'],_0x2aa298);for(const _0x584ea2 of _0x2aa298['focusableElements'])this['_focusTracker']['add'](_0x584ea2);this['listenTo'](_0x2aa298['focusableElements'],'add',(_0x19a0ef,_0x316317)=>{this['_focusTracker']['add'](_0x316317);}),this['listenTo'](_0x2aa298['focusableElements'],'remove',(_0x572f39,_0x3ee7b8)=>{this['_focusTracker']['remove'](_0x3ee7b8);}),this['listenTo'](_0x2aa298['view']['focusTracker'],'change:isFocused',(_0x2ade15,_0x3a3ac2,_0x4243b3)=>{_0x4243b3&&this['fire']('focus',_0x2aa298);}),_0x2aa298['updateTargetRect']();const _0x3e7850=this['_getOrderInContent'](_0x2aa298['view']['targetRect']);return super['add'](_0x2aa298,_0x3e7850);}['remove'](_0x54fd9f){if(!this['has'](_0x54fd9f))throw new _0x2b0648('annotationcollection-not-existing-item',null);this['stopListening'](_0x54fd9f['view']['focusTracker']),this['stopListening'](_0x54fd9f['focusableElements']);for(const _0x174953 of _0x54fd9f['focusableElements'])this['_focusTracker']['remove'](_0x174953);return this['_viewToAnnotation']['delete'](_0x54fd9f['view']),this['_innerViewToAnnotation']['delete'](_0x54fd9f['innerView']),super['remove'](_0x54fd9f);}['getByInnerView'](_0x455c37){return this['_innerViewToAnnotation']['get'](_0x455c37);}['getByView'](_0x331cec){return this['_viewToAnnotation']['get'](_0x331cec);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0xb32f99 of this)_0xb32f99['updateTargetRect']();this['_sort']();}['_sort'](){const _0x74c00f=Array['from'](this)['sort']((_0x3988a4,_0x273860)=>w(_0x3988a4['view']['targetRect'],_0x273860['view']['targetRect']));for(let _0x384aaa=_0x74c00f['length']-0x1;_0x384aaa>0x0;_0x384aaa--){const _0x1baea4=_0x74c00f[_0x384aaa];_0x384aaa!==this['getIndex'](_0x1baea4)&&(this['remove'](_0x1baea4),this['add'](_0x1baea4));}}['_getOrderInContent'](_0x5d82a6){let _0x28f0d3=0x0;if(!_0x5d82a6)return this['length'];for(const _0x4dab93 of this){const _0x16f105=_0x4dab93['view']['targetRect'];if(_0x16f105){if(w(_0x5d82a6,_0x16f105)<0x0)return _0x28f0d3;_0x28f0d3++;}}return _0x28f0d3;}}function v({source:_0x4e08fd,target:_0x110f27,filter:_0x5e46fe}){for(const _0x3de832 of _0x4e08fd)_0x5e46fe(_0x3de832)&&_0x110f27['add'](_0x3de832);_0x110f27['listenTo'](_0x4e08fd,'add',(_0x233233,_0x53d88c)=>{_0x5e46fe(_0x53d88c)&&_0x110f27['add'](_0x53d88c);}),_0x110f27['listenTo'](_0x4e08fd,'remove',(_0x4eedfe,_0x52b3f8)=>{_0x110f27['has'](_0x52b3f8)&&_0x110f27['remove'](_0x52b3f8);});}function w(_0x3833df,_0x2d0589){if(null===_0x3833df&&null===_0x2d0589)return 0x0;if(null===_0x3833df)return-0x1;if(null===_0x2d0589)return 0x1;const _0x30864d=_0x3833df['top']-_0x2d0589['top'];return 0x0==_0x30864d?_0x3833df['left']-_0x2d0589['left']:_0x30864d;}class y extends _0x565db7{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40b4f8){if(super(_0x40b4f8),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x40b4f8 instanceof _0x5b1ec6){const _0x37bbe3=_0x40b4f8['locale'];_0x40b4f8['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x37bbe3,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x37bbe3,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x37bbe3,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x37bbe3,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x37bbe3,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x37bbe3,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x37bbe3,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2b108d){this['collection']['add'](_0x2b108d);}['remove'](_0x481964){this['collection']['remove'](_0x481964),_0x481964['destroy']();}['refreshVisibility'](){for(const _0x4813f5 of this['collection'])_0x4813f5['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x145d2c){return this['collection']['getByInnerView'](_0x145d2c);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x27d6d6 of this['collection'])_0x27d6d6['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x21b2f2){this['fire']('_activateAnnotation',_0x21b2f2);}['createAnnotation'](_0x17498e){return new T(_0x17498e);}['createAnnotationView'](_0xc9a3be,_0x229faa){return new E(_0xc9a3be,_0x229faa);}['_addActiveAnnotation'](_0x1e6f2a){const _0x2656ad=new Set(this['activeAnnotations']);_0x2656ad['add'](_0x1e6f2a),this['activeAnnotations']=_0x2656ad;}['_removeActiveAnnotation'](_0x3a8533){const _0x2b6254=new Set(this['activeAnnotations']);_0x2b6254['delete'](_0x3a8533),this['activeAnnotations']=_0x2b6254;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3d7f5d=this['collection'],_0x30a67b=this['_visibleAnnotations'];function _0xcd5a8d(_0x5b7119){const _0x352ad9=_0x5b7119['source'];_0x352ad9['isVisible']&&!_0x30a67b['has'](_0x352ad9)?_0x30a67b['add'](_0x352ad9):!_0x352ad9['isVisible']&&_0x30a67b['has'](_0x352ad9)&&_0x30a67b['remove'](_0x352ad9),_0x352ad9['view']['focusTracker']['remove'](_0x352ad9['view']['element']),_0x352ad9['view']['focusTracker']['add'](_0x352ad9['view']['element']);}this['listenTo'](_0x3d7f5d,'add',(_0xe0a638,_0x2adbc4)=>{_0x2adbc4['isVisible']&&_0x30a67b['add'](_0x2adbc4),this['listenTo'](_0x2adbc4,'change:isVisible',_0xcd5a8d);}),this['listenTo'](_0x3d7f5d,'remove',(_0x5898ac,_0x3a4011)=>{_0x30a67b['has'](_0x3a4011)&&_0x30a67b['remove'](_0x3a4011),this['stopListening'](_0x3a4011,'change:isVisible',_0xcd5a8d);});}['_setupEnterAnnotationKeystroke'](){const _0x49a0c7=_0x13e4fd=>{_0x13e4fd['on']('ready',()=>{_0x13e4fd['keystrokes']['set'](_0x11f4fd,(_0x5ca487,_0x3e8a27)=>{const _0x3975a0=_0x42cb1a(this['activeAnnotations']['values']());_0x3975a0&&(_0x3975a0['view']['focus'](),_0x3e8a27());});});};this['context']instanceof _0x5b1ec6?_0x49a0c7(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x433080,_0x523b1c)=>{_0x49a0c7(_0x523b1c);});}['_setupEscapeAnnotationHandling'](){const _0x34077d=_0x44d548=>{const _0x19e68d=_0x44d548['source'],_0x34ffd7=[];let _0x1daa75;if(Array['isArray'](_0x19e68d['target'])){_0x1daa75=_0x19e68d['target'][0x0],this['context']instanceof _0x5b1ec6?_0x34ffd7['push'](this['context']):this['context']['editors']&&_0x34ffd7['push'](...this['context']['editors']);for(const _0xeacc5d of _0x34ffd7)for(const _0x166d99 of _0xeacc5d['editing']['view']['domRoots']['values']())if(_0x166d99['contains'](_0x1daa75))return void _0xeacc5d['editing']['view']['focus']();_0x1daa75['focus']();}};this['listenTo'](this['collection'],'add',(_0x5353e0,_0x110403)=>{this['listenTo'](_0x110403,'escape',_0x34077d,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x5c6732,_0x431ff9)=>{this['stopListening'](_0x431ff9,'escape',_0x34077d);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x565db7{['_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(_0x1b449b){super(_0x1b449b),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3c4259=this['context']['config'];_0x3c4259['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3c4259['define']('comments.maxThreadTotalWeight',0x1f4),_0x3c4259['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3c4259['define']('comments.CommentThreadView',gt),_0x3c4259['define']('comments.CommentView',Tt),_0x3c4259['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x5671b3=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x1f25a5,_0x12f295)=>this['_addCommentThread'](_0x12f295)),this['on']('submitCommentThread',(_0x563f52,_0x9fbf1b)=>this['_submitCommentThread'](_0x9fbf1b)),this['on']('resolveCommentThread',(_0x51ac1d,_0x122f92)=>this['_resolveCommentThread'](_0x122f92)),this['on']('resolveCommentThread',(_0x3afe3d,_0x346df3)=>this['_updateActiveAnnotation'](_0x346df3),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5db6f7,_0x30137e)=>this['_reopenCommentThread'](_0x30137e)),this['on']('reopenCommentThread',(_0x2bcd1f,_0x43ebbd)=>this['_updateActiveAnnotation'](_0x43ebbd),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x317fc0,_0x133bc1)=>this['_removeCommentThread'](_0x133bc1)),this['on']('updateCommentThread',(_0x534e0e,_0x2c08d9)=>this['_updateCommentThread'](_0x2c08d9)),this['on']('updateCommentThread',(_0xda300f,_0x1f460a)=>this['_updateActiveAnnotation'](_0x1f460a),{'priority':'lowest'}),this['on']('addComment',(_0x4df6e6,_0x4cc09d)=>this['_addComment'](_0x4cc09d)),this['on']('updateComment',(_0xf9b04b,_0xaff045)=>this['_updateComment'](_0xaff045)),this['on']('removeComment',(_0x3951ac,_0x906a55)=>this['_removeComment'](_0x906a55)),this['on']('addComment',(_0x10d759,{threadId:_0x496f4a,isFromAdapter:_0x4375e5})=>{if(_0x4375e5)return;const _0x6f970e=this['getCommentThread'](_0x496f4a),_0x4cd2dc=_0x6f970e&&this['_threadToController']['get'](_0x6f970e);_0x4cd2dc&&_0x4cd2dc['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x5671b3,'change:activeAnnotations',(_0x30fce3,_0x5a8599,_0x24d32d)=>{const _0x5f2f5c=Array['from'](_0x24d32d)['map'](_0x571378=>this['_viewToController']['get'](_0x571378['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5f2f5c?_0x5f2f5c['model']:null;});}set['adapter'](_0x101b83){if(this['_adapter'])throw new _0x2b0648('commentsrepository-adapter-already-set');this['_adapter']=_0x101b83;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x15e510=_t,threadId:_0x290d91=_0x240cbb(),comments:_0x17910d=[],unlinkedAt:_0x5c4e04=null,resolvedAt:_0x273b11=null,resolvedBy:_0x2e2768=null,target:_0x497f97=null,context:_0x36fbcc=null,attributes:_0x57ab40={},isResolvable:_0x20bbdc=!0x0,isSubmitted:_0x32888f=!0x1,isFromAdapter:_0x2ba3b0=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x15e510),{'channelId':_0x15e510,'threadId':_0x290d91,'comments':_0x17910d,'unlinkedAt':_0x5c4e04,'resolvedAt':_0x273b11,'resolvedBy':_0x2e2768,'target':_0x497f97,'context':_0x36fbcc,'attributes':_0x57ab40,'isFromAdapter':_0x2ba3b0,'isResolvable':_0x20bbdc,'isSubmitted':_0x32888f}),this['getCommentThread'](_0x290d91);}['openNewCommentThread']({channelId:_0x562d27=_t,threadId:_0x293c84=_0x240cbb(),target:_0x5ba761,context:_0x2ad0f4=null,isResolvable:_0x1cd488=!0x0}){if(this['_readOnlyChannels']['has'](_0x562d27)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x5ba761)throw new _0x2b0648('commentsrepository-missing-target');const _0x51406c=this['addCommentThread']({'channelId':_0x562d27,'threadId':_0x293c84,'target':_0x5ba761,'context':_0x2ad0f4,'isResolvable':_0x1cd488});if(!_0x51406c)return null;const _0x5f0d4e=this['_threadToController']['get'](_0x51406c),_0x4db628=_0x5f0d4e['view']['commentThreadInputView']['commentInputView'],_0x5073ca=this['context']['plugins']['get'](y),_0x112f5b=_0x5073ca['getByInnerView'](_0x5f0d4e['view']);return _0x5073ca['activate'](_0x112f5b),_0x4db628['once']('editorReady',()=>_0x4db628['focus']()),_0x51406c;}['hasCommentThread'](_0x32a4a0){if('string'!=typeof _0x32a4a0)throw new _0x2b0648('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x32a4a0);}['updateCommentThread']({channelId:_0x31341d=_t,threadId:_0x3cd773,context:_0x518af9,unlinkedAt:_0x2a07c8,attributes:_0x44e63f,isFromAdapter:_0x19ff2a=!0x1}){return this['fire'](Nt('updateCommentThread',_0x31341d),{'channelId':_0x31341d,'threadId':_0x3cd773,'context':_0x518af9,'unlinkedAt':_0x2a07c8,'attributes':_0x44e63f,'isFromAdapter':_0x19ff2a}),this['getCommentThread'](_0x3cd773);}['getCommentThread'](_0x447466){if('string'!=typeof _0x447466)throw new _0x2b0648('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x447466);}['fetchCommentThread']({channelId:_0x189ecc,threadId:_0x5b158f}={}){const _0x5da1ab=this['getCommentThread'](_0x5b158f);if(_0x5da1ab)return Promise['resolve'](_0x5da1ab);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2b0648('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x189ecc,'threadId':_0x5b158f})['then'](_0x48d8cc=>this['hasCommentThread'](_0x5b158f)?this['getCommentThread'](_0x5b158f):_0x48d8cc?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x189ecc},_0x48d8cc)):void 0x0)['catch'](_0x5370c9=>{throw console['error'](_0x5370c9),new _0x2b0648('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x10dad5,skipNotAttached:_0x1745b7=!0x1,skipEmpty:_0x28c91d=!0x1,toJSON:_0x27010d=!0x1}={}){const _0x264977=[];for(const _0x5578ed of this['_threads']['values']())_0x10dad5&&_0x5578ed['channelId']!==_0x10dad5||_0x1745b7&&!_0x5578ed['isAttached']||_0x28c91d&&0x0===_0x5578ed['length']||_0x264977['push'](_0x5578ed);return _0x27010d?_0x264977['map'](_0x41a183=>_0x41a183['toJSON']()):_0x264977;}['getAnnotationForCommentThread'](_0x115b51){const _0x2ef7c0=this['_threadToController']['get'](_0x115b51);if(!_0x2ef7c0)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x2ef7c0['view'])||null;}['getCommentThreadForAnnotation'](_0x46528f){const _0x5d3a13=this['_viewToController']['get'](_0x46528f['innerView']);return _0x5d3a13?_0x5d3a13['model']:null;}['setActiveCommentThread'](_0x35ba0e){const _0xe5b08f=this['context']['plugins']['get'](y);if(!_0x35ba0e)return void(this['activeCommentThread']&&_0xe5b08f['deactivateAll']());const _0x1c8590=this['getCommentThread'](_0x35ba0e);if(!_0x1c8590)throw new _0x2b0648('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x35ba0e});if(!this['_threadToController']['has'](_0x1c8590))throw new _0x2b0648('commentsrepository-active-not-attached',null,{'threadId':_0x35ba0e});const _0x2f7e4e=_0xe5b08f['getByInnerView'](this['_threadToController']['get'](_0x1c8590)['view']);_0xe5b08f['activate'](_0x2f7e4e);}['switchReadOnly'](_0x1311f7,_0x4b877d){_0x1311f7?this['_readOnlyChannels']['add'](_0x4b877d):this['_readOnlyChannels']['delete'](_0x4b877d),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x43358a){return this['_readOnlyChannels']['has'](_0x43358a)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x5a813e,_0x3976ac){return new vt(_0x5a813e,_0x3976ac);}['setPermissions'](_0x1d07c8,_0x29aec5=_t){this['_permissions']['set'](_0x29aec5,_0x1d07c8),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0xaf8749=_t){return this['_permissions']['has'](_0xaf8749)?this['_permissions']['get'](_0xaf8749):bt;}['_addCommentThread']({channelId:_0x10cf06,threadId:_0x4f04c2,comments:_0x4ea0bf,unlinkedAt:_0x574346,resolvedAt:_0x1b788c,resolvedBy:_0x2f73ba,target:_0x52c6a9,context:_0x56ca19,attributes:_0x4c56cb,isFromAdapter:_0xaaf9d3,isResolvable:_0x551dc9,isSubmitted:_0x2a35b8}){if('string'!=typeof _0x4f04c2)throw new _0x2b0648('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4f04c2});if(this['hasCommentThread'](_0x4f04c2))throw new _0x2b0648('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x4f04c2});const _0x235a62=new pi(this,{'channelId':_0x10cf06,'id':_0x4f04c2,'context':_0x56ca19,'attributes':_0x4c56cb,'unlinkedAt':_0x574346,'resolvedAt':_0x1b788c,'resolvedBy':_0x2f73ba?this['context']['plugins']['get'](it)['getUser'](_0x2f73ba):null,'isResolvable':_0x551dc9,'isSubmitted':_0x2a35b8||_0xaaf9d3});this['_threads']['set'](_0x4f04c2,_0x235a62);for(const _0x27c64f of _0x4ea0bf)_0x235a62['_add'](this['_createNewComment']({'threadId':_0x4f04c2,..._0x27c64f}));return _0x52c6a9&&_0x235a62['attachTo'](_0x52c6a9),_0xaaf9d3||!_0x235a62['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x10cf06,'threadId':_0x4f04c2});}['_submitCommentThread']({channelId:_0x4b8787,threadId:_0x3da456}){if(!this['hasCommentThread'](_0x3da456))throw new _0x2b0648('commentsrepository-missing-comment-thread',this);const _0x4ebd4e=this['getCommentThread'](_0x3da456);if(_0x4ebd4e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x504b06,comments:_0xc3b6ed,resolvedAt:_0x50a3cd,resolvedBy:_0x6ed974,context:_0x38d4d3,attributes:_0x31f4b4}=_0x4ebd4e,_0x50024e=this['context']['plugins']['get']('PendingActions'),_0x5a91ac=_0x50024e['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4b8787,'threadId':_0x504b06,'comments':_0xc3b6ed['map'](_0x62e3d8=>_0x62e3d8['toJSON']()),'resolvedAt':_0x50a3cd,'resolvedBy':_0x6ed974?_0x6ed974['id']:_0x6ed974,'context':_0x38d4d3,'attributes':_0x31f4b4})['then'](({comments:_0x37a1cd})=>{_0x50024e['remove'](_0x5a91ac);for(const _0x68b0a0 of _0x37a1cd)this['_updateComment']({'channelId':_0x4b8787,'threadId':_0x3da456,'commentId':_0x68b0a0['commentId'],'createdAt':_0x68b0a0['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x37b6cf=>{throw console['error'](_0x37b6cf),new _0x2b0648('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x312b19,target:_0x8405b1}){const _0x53aa50=this['getCommentThread'](_0x312b19);if(!_0x53aa50)throw new _0x2b0648('commentsrepository-attach-missing-comment-thread',this);const _0x4c7092=this['context']['plugins']['get']('PendingActions'),_0x404693=this['context']['plugins']['get'](y),_0x51b5bd=this['_createCommentThreadView'](_0x53aa50),_0xb74669=new vt(_0x53aa50,_0x51b5bd);let _0x5901d=null;_0x51b5bd['on']('change:isDirty',(_0x155f6c,_0x53f914,_0x48013d)=>{_0x48013d?_0x5901d=_0x4c7092['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5901d&&(_0x4c7092['remove'](_0x5901d),_0x5901d=null);}),this['_threadToController']['set'](_0x53aa50,_0xb74669),this['_viewToController']['set'](_0x51b5bd,_0xb74669);const _0x4811d5=new E(this['context']['locale'],_0x51b5bd);_0x4811d5['bind']('length')['to'](_0x51b5bd),_0x4811d5['bind']('isDirty')['to'](_0x51b5bd,'isDirty',_0x51b5bd,'length',(_0x382082,_0x3ad601)=>_0x382082||!_0x3ad601),_0x4811d5['bind']('isActive')['to'](_0x51b5bd),_0x4811d5['type']='comment';const _0x53ad92=new T({'view':_0x4811d5,'target':_0x8405b1,'type':'comment','isVisible':!_0x53aa50['archivedAt']&&!!('function'==typeof _0x8405b1?_0x8405b1():_0x8405b1)});return _0x51b5bd['on']('escape',()=>{_0x53ad92['fire']('escape');}),this['_bindAnnotationToEditors'](_0x51b5bd,_0x53ad92),_0x404693['add'](_0x53ad92),_0x53ad92;}['_bindAnnotationToEditors'](_0x4d8f93,_0x15cd0c){this['listenTo'](_0x4d8f93,'editorReady',(_0x8662aa,_0x249abd)=>{const _0x5e3b2d=_0x249abd['ui']['view']['body']['bodyCollectionContainer'];_0x15cd0c['focusableElements']['add'](_0x5e3b2d),this['context']instanceof _0x5b1ec6&&this['context']['ui']['focusTracker']['add'](_0x5e3b2d);},{'priority':'highest'}),this['listenTo'](_0x4d8f93,'editorDestroyed',(_0x2159ea,_0x20bebb)=>{const _0x3156e7=_0x20bebb['ui']['view']['body']['bodyCollectionContainer'];_0x15cd0c['focusableElements']['has'](_0x3156e7)&&_0x15cd0c['focusableElements']['remove'](_0x3156e7),this['context']instanceof _0x5b1ec6&&this['context']['ui']['focusTracker']['remove'](_0x3156e7);});}['_unbindEditors'](_0x45dc23){this['stopListening'](_0x45dc23,'editorReady'),this['stopListening'](_0x45dc23,'editorDestroyed');}['_createCommentThreadView'](_0x5cbdcf){const _0x336d3a=this['context']['plugins']['get'](it),{config:_0x1ac2ad,locale:_0x160c94}=this['context'],_0x2f9255=pt(_0x1ac2ad['get']('locale'),_0x160c94);return new(0x0,(_0x1ac2ad['get']('comments'))['CommentThreadView'])(_0x160c94,_0x5cbdcf,_0x336d3a['me'],{'editorConfig':{..._0x1ac2ad['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x1ac2ad['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x1ac2ad['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1ac2ad['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1ac2ad['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2f9255,'CommentView':_0x1ac2ad['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x1041a5,channelId:_0x37a64b,resolvedAt:_0x1fe00a,resolvedBy:_0x3e619a,isFromAdapter:_0x1fa569}){if(!this['hasCommentThread'](_0x1041a5))throw new _0x2b0648('commentsrepository-missing-comment-thread',null,{'threadId':_0x1041a5});const _0x3605b3=this['getCommentThread'](_0x1041a5);if(_0x3605b3['isResolved'])throw new _0x2b0648('commentsrepository-resolved-comment-thread',null,{'threadId':_0x1041a5});const _0x2e5f0d=this['context']['plugins']['get'](it);if(_0x3605b3['resolvedBy']=_0x2e5f0d['getUser'](_0x3e619a),_0x3605b3['resolvedAt']=_0x1fe00a,_0x1fa569||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0xce1daa=this['context']['plugins']['get']('PendingActions'),_0x2130eb=_0xce1daa['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x37a64b,'threadId':_0x1041a5})['then'](({resolvedAt:_0x533beb,resolvedBy:_0x13696e})=>{_0xce1daa['remove'](_0x2130eb),_0x3605b3['resolvedBy']['id']!==_0x13696e&&(_0x3605b3['resolvedBy']=_0x2e5f0d['getUser'](_0x13696e)),_0x3605b3['resolvedAt']=_0x533beb;})['catch'](_0x5718ab=>{throw console['error'](_0x5718ab),new _0x2b0648('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0xda468e,channelId:_0x42b6fd,isFromAdapter:_0x51192f}){if(!this['hasCommentThread'](_0xda468e))throw new _0x2b0648('commentsrepository-missing-comment-thread',null,{'threadId':_0xda468e});const _0x22ee41=this['getCommentThread'](_0xda468e);if(!_0x22ee41['isResolved'])throw new _0x2b0648('commentsrepository-reopen-comment-thread',null,{'threadId':_0xda468e});if(_0x22ee41['resolvedBy']=null,_0x22ee41['resolvedAt']=null,_0x51192f||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1f86fa=this['context']['plugins']['get']('PendingActions'),_0x2ecc9=_0x1f86fa['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x42b6fd,'threadId':_0xda468e})['then'](()=>_0x1f86fa['remove'](_0x2ecc9))['catch'](_0x3b430a=>{throw console['error'](_0x3b430a),new _0x2b0648('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x455301,isFromAdapter:_0x10ca67}){const _0x48ad8d=this['getCommentThread'](_0x455301);if(!_0x48ad8d)throw new _0x2b0648('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x455301),this['_threads']['delete'](_0x455301),!_0x48ad8d['isSubmitted']||_0x10ca67||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x2341bd=this['context']['plugins']['get']('PendingActions'),{channelId:_0xd03492}=_0x48ad8d,_0x2c28cf=_0x2341bd['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0xd03492,'threadId':_0x455301})['then'](()=>_0x2341bd['remove'](_0x2c28cf))['catch'](_0x1605b1=>{throw console['error'](_0x1605b1),new _0x2b0648('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4831fe,unlinkedAt:_0x297757,context:_0x5d9e57,attributes:_0xff3cca,isFromAdapter:_0x19e935}){if('string'!=typeof _0x4831fe)throw new _0x2b0648('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4831fe});if(!this['hasCommentThread'](_0x4831fe))throw new _0x2b0648('commentsrepository-missing-comment-thread',null,{'threadId':_0x4831fe});const _0x4aed9d=this['getCommentThread'](_0x4831fe);let _0x4cfa09=!0x1;if(void 0x0!==_0x5d9e57&&_0x4aed9d['context']!==_0x5d9e57&&(_0x4aed9d['context']=_0x5d9e57,_0x4cfa09=!0x0),void 0x0!==_0x297757&&_0x4aed9d['unlinkedAt']!==_0x297757&&(_0x4aed9d['unlinkedAt']=_0x297757,_0x4cfa09=!0x0),_0xff3cca&&!At(_0xff3cca,_0x4aed9d['attributes'])&&(_0x4aed9d['attributes']=_0xff3cca,_0x4cfa09=!0x0),!_0x4cfa09)return Promise['resolve']();if(!_0x4aed9d['isSubmitted']||_0x19e935||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x3e52f4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x559024}=_0x4aed9d,_0x49ab69=_0x3e52f4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x559024,'threadId':_0x4831fe,'context':_0x5d9e57,'unlinkedAt':_0x297757,'attributes':_0xff3cca})['then'](()=>_0x3e52f4['remove'](_0x49ab69))['catch'](_0xc1942f=>{throw console['error'](_0xc1942f),new _0x2b0648('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x169ffd){const _0x52839a=this['context']['plugins']['get'](y),_0x588b45=this['getCommentThread'](_0x169ffd);if(_0x588b45['_isAttached']=!0x1,this['_threadToController']['has'](_0x588b45)){const _0x3ac883=this['_threadToController']['get'](_0x588b45),_0x4c9ee3=_0x3ac883['view'],_0x7f80f1=_0x52839a['getByInnerView'](_0x4c9ee3);this['_threadToController']['delete'](_0x588b45),this['_viewToController']['delete'](_0x4c9ee3),_0x7f80f1&&_0x52839a['remove'](_0x7f80f1),_0x3ac883['destroy'](),_0x4c9ee3['destroy']()['then'](()=>{this['_unbindEditors'](_0x4c9ee3);});}}['_updateActiveAnnotation']({threadId:_0x2aae9d,resolvedAt:_0x529b7a,unlinkedAt:_0x3d1f72}){const _0xa70054=!!_0x529b7a,_0x8b24ad=this['context']['plugins']['get'](y),_0x198aa9=this['getCommentThread'](_0x2aae9d);if(this['_threadToController']['has'](_0x198aa9)){const _0x7858aa=this['_threadToController']['get'](_0x198aa9)['view'],_0x1a1f90=_0x8b24ad['getByInnerView'](_0x7858aa);_0x1a1f90&&(_0xa70054&&_0x8b24ad['_removeActiveAnnotation'](_0x1a1f90),_0x3d1f72?_0x1a1f90['isVisible']=!0x1:_0x1a1f90['refreshVisibility']());}}['_getExternalAuthor'](_0xb7caae){const _0x496680=this['context']['plugins']['get'](it),_0x43cb12=It('external:'+_0xb7caae),_0x1de93f=_0x496680['getUser'](_0x43cb12);return _0x1de93f||_0x496680['addUser']({'id':_0x43cb12,'name':_0xb7caae});}['_createNewComment']({threadId:_0x4e976e,commentId:_0x2b867f=_0x240cbb(),content:_0x4963b6,authorId:_0x10bbe1,createdAt:_0x365903,attributes:_0x5df590}){if('string'!=typeof _0x2b867f)throw new _0x2b0648('commentsrepository-invalid-commentid');if('string'!=typeof _0x10bbe1)throw new _0x2b0648('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4963b6||!_0x4963b6['trim']())throw new _0x2b0648('commentsrepository-invalid-comment-content');const _0x36e09c=this['context']['plugins']['get'](it)['getUser'](_0x10bbe1);if(!_0x36e09c)throw new _0x2b0648('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x10bbe1});let _0x3a345b=null,_0x327da0=_0x365903;return _0x5df590?.['@external']&&(_0x3a345b=this['_getExternalAuthor'](_0x5df590['@external']['authorName']),_0x327da0=new Date(_0x5df590['@external']['createdAt'])),new wi(this,{'threadId':_0x4e976e,'id':_0x2b867f,'author':_0x3a345b||_0x36e09c,'creator':_0x36e09c,'content':_0x4963b6,'createdAt':_0x365903,'authoredAt':_0x327da0,'attributes':_0x5df590});}['_addComment'](_0x3b40af){let {threadId:_0x1333a4,content:_0x78cfad,attributes:_0x1cdfc8,isFromAdapter:_0x3ee6b0}=_0x3b40af;const _0xf25261=this['getCommentThread'](_0x3b40af['threadId']);if(!_0xf25261)throw new _0x2b0648('commentsrepository-add-comment-to-missing-comment-thread',this);const _0xdf82c1=this['_createNewComment'](_0x3b40af),{id:_0x6baded}=_0xdf82c1;if(_0xf25261['_add'](_0xdf82c1),_0x3ee6b0||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0xf25261['isSubmitted'])return Promise['resolve']();const _0x1ff052=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3024f8}=_0xf25261,_0x3387c4=_0x1ff052['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1cdfc8||(_0x1cdfc8={}),this['adapter']['addComment']({'channelId':_0x3024f8,'threadId':_0x1333a4,'commentId':_0x6baded,'content':_0x78cfad,'attributes':_0x1cdfc8})['then'](_0x1249ec=>{_0x1ff052['remove'](_0x3387c4),_0x1249ec&&this['_updateComment']({'channelId':_0x3024f8,'threadId':_0x1333a4,'commentId':_0x6baded,'createdAt':_0x1249ec['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x53da31=>{throw console['error'](_0x53da31),new _0x2b0648('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x413805,commentId:_0x302e75,content:_0x1e2adf,createdAt:_0x2546b6,attributes:_0x4fa80f,isFromAdapter:_0x17c10f}){if(void 0x0!==_0x1e2adf&&('string'!=typeof _0x1e2adf||!_0x1e2adf['trim']()['length']))throw new _0x2b0648('commentsrepository-update-comment-invalid-content');const _0x1dbc6d=this['getCommentThread'](_0x413805),_0x4fa0bc=_0x1dbc6d['getComment'](_0x302e75);if(!_0x4fa0bc)throw new _0x2b0648('commentsrepository-update-missing-comment',this);let _0x559326=!0x1;if(_0x1e2adf&&_0x1e2adf!==_0x4fa0bc['content']&&(_0x4fa0bc['isEditable']||_0x17c10f)&&(_0x4fa0bc['content']=_0x1e2adf,_0x559326=!0x0),_0x2546b6&&_0x2546b6!==_0x4fa0bc['createdAt']&&(_0x4fa0bc['createdAt']=_0x2546b6,_0x4fa0bc['attributes']&&_0x4fa0bc['attributes']['@external']||(_0x4fa0bc['authoredAt']=_0x2546b6),_0x559326=!0x0),_0x4fa80f&&!At(_0x4fa80f,_0x4fa0bc['attributes'])&&(_0x4fa0bc['attributes']=_0x4fa80f,_0x559326=!0x0),!_0x559326)return Promise['resolve']();if(_0x1dbc6d['fire']('commentUpdated'),_0x17c10f||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x15aa0a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3161e2}=this['getCommentThread'](_0x4fa0bc['threadId']),_0x23bcb5=_0x15aa0a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x3161e2,'threadId':_0x413805,'commentId':_0x302e75,'content':_0x1e2adf,'attributes':_0x4fa80f})['then'](()=>_0x15aa0a['remove'](_0x23bcb5))['catch'](_0xb39326=>{throw console['error'](_0xb39326),new _0x2b0648('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x312de0,commentId:_0x2e1545,isFromAdapter:_0x5730c9}){const _0x1bbb62=this['getCommentThread'](_0x312de0),_0x283265=_0x1bbb62['getComment'](_0x2e1545);if(!_0x283265)throw new _0x2b0648('commentsrepository-remove-missing-comment',this);if(_0x1bbb62['_remove'](_0x283265),_0x5730c9||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x1f9d57=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1a38b0}=_0x1bbb62,_0x407a12=_0x1f9d57['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1a38b0,'threadId':_0x312de0,'commentId':_0x2e1545})['then'](()=>_0x1f9d57['remove'](_0x407a12))['catch'](_0x1fb22d=>{throw console['error'](_0x1fb22d),new _0x2b0648('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x289e5b(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x50e66d,_0x39e1c7){super();const _0x453144=_0x39e1c7['isResolvable'];this['channelId']=_0x39e1c7['channelId'],this['id']=_0x39e1c7['id'],this['comments']=new _0x434287(),this['_repository']=_0x50e66d,this['_isAttached']=!0x1,this['_isSubmitted']=_0x39e1c7['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x50e66d,'_permissions',_0x50e66d,'_readOnlyChannels',()=>_0x50e66d['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x50e66d,'_permissions',()=>_0x50e66d['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x50e66d,'_permissions',()=>{const _0x1274ed=_0x50e66d['getPermissions'](this['channelId']);return _0x1274ed['write']||_0x1274ed['admin'];}),this['bind']('isResolvable')['to'](_0x50e66d,'_permissions',()=>_0x453144&&_0x50e66d['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x39e1c7['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x16e006,_0x5af60b)=>_0x16e006?_0x5af60b?_0x16e006<_0x5af60b?_0x16e006:_0x5af60b:_0x16e006:_0x5af60b),this['set']('unlinkedAt',_0x39e1c7['unlinkedAt']||null),this['set']('resolvedAt',_0x39e1c7['resolvedAt']||null),this['set']('resolvedBy',_0x39e1c7['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x530ac7=>!!_0x530ac7),this['set']('attributes',_0x39e1c7['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x5f5dbf,_0x599b25)=>_0x5f5dbf+_0x599b25['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x5d2360,id:_0x54c91d}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x5d2360),{'channelId':_0x5d2360,'threadId':_0x54c91d});}['setUnlinkedAt'](_0x51072){this['_update']({'unlinkedAt':_0x51072});}['resolve']({resolvedAt:_0x567302=new Date(),resolvedBy:_0x4ecd4d=null,isFromAdapter:_0x3f5349=!0x1}={}){const _0x4ff468=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0xb1b3b,id:_0x5bc30e}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0xb1b3b),{'channelId':_0xb1b3b,'threadId':_0x5bc30e,'resolvedAt':_0x567302,'resolvedBy':_0x4ecd4d||_0x4ff468['id'],'isFromAdapter':_0x3f5349});}['reopen']({isFromAdapter:_0x1c7999=!0x1}={}){const {channelId:_0x190dde,id:_0x6d1b32}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x190dde),{'channelId':_0x190dde,'threadId':_0x6d1b32,'isFromAdapter':_0x1c7999});}['setContext'](_0x2fd895){this['context']||this['_update']({'context':_0x2fd895});}['setAttribute'](_0x2f97f4,_0x155c69){const _0x4a1d6c=wt(this['attributes']);yt(_0x4a1d6c,_0x2f97f4,_0x155c69),this['_update']({'attributes':_0x4a1d6c});}['removeAttribute'](_0x4bd045){const _0x3369bf=wt(this['attributes']);Ct(_0x3369bf,_0x4bd045),this['_update']({'attributes':_0x3369bf});}['remove']({isFromAdapter:_0x867b72=!0x1}={}){const {channelId:_0x1790a7,id:_0x55d824}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x1790a7),{'channelId':_0x1790a7,'threadId':_0x55d824,'isFromAdapter':_0x867b72});}['attachTo'](_0x41af2e){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x41af2e});}['addComment'](_0x488d5e){const {channelId:_0x53cc0e,id:_0x353e3c}=this;this['_repository']['fire'](Nt('addComment',_0x53cc0e,_0x353e3c),Object['assign']({'channelId':_0x53cc0e,'threadId':_0x353e3c},_0x488d5e));}['getComment'](_0x435d12){if('string'!=typeof _0x435d12)throw new _0x2b0648('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x435d12});return this['comments']['get'](_0x435d12);}['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'](_0x376cc3=>_0x376cc3['toJSON']()),'attributes':this['attributes']};}['_add'](_0x4a4b73){return this['listenTo'](_0x4a4b73,'change:authoredAt',()=>{const _0x20c733=this['_findOptimalIndex'](_0x4a4b73),_0x31d6ad=this['comments'];_0x20c733-0x1!=_0x31d6ad['getIndex'](_0x4a4b73)&&_0x20c733+0x1!=_0x31d6ad['getIndex'](_0x4a4b73)&&(this['_remove'](_0x4a4b73),this['_add'](_0x4a4b73));}),this['comments']['add'](_0x4a4b73,this['_findOptimalIndex'](_0x4a4b73));}['_update'](_0x549bb9){const {channelId:_0x5d7299,id:_0x5598bc}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x5d7299),{..._0x549bb9,'channelId':_0x5d7299,'threadId':_0x5598bc});}['_remove'](_0x1d4856){return this['stopListening'](_0x1d4856),_0x1d4856['destroy'](),this['comments']['remove'](_0x1d4856);}['_findOptimalIndex'](_0x3f1798){const _0x1386ec=this['comments']['find'](_0x16022b=>new Date(_0x16022b['authoredAt'])['getTime']()>new Date(_0x3f1798['authoredAt'])['getTime']());return _0x1386ec?this['comments']['getIndex'](_0x1386ec):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x289e5b(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x24bb9f,_0x3ba5f4){super();const _0x43c04d=_0x24bb9f['context']['plugins']['get'](it)['me'],_0x58d300=_0x24bb9f['getCommentThread'](_0x3ba5f4['threadId']),_0x3f0461=0x0===_0x58d300['comments']['length'],_0x220309=_0x43c04d===_0x3ba5f4['author'];this['id']=_0x3ba5f4['id'],this['threadId']=_0x3ba5f4['threadId'],this['author']=_0x3ba5f4['author'],this['creator']=_0x3ba5f4['creator'],this['isExternal']=Boolean(_0x3ba5f4['attributes']&&_0x3ba5f4['attributes']['@external']),this['set']('content',_0x3ba5f4['content']),this['createdAt']=_0x3ba5f4['createdAt']||new Date(),this['set']('authoredAt',_0x3ba5f4['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x58d300,'resolvedAt'),this['set']('attributes',_0x3ba5f4['attributes']||{}),this['bind']('isEditable')['to'](_0x24bb9f,'_permissions',()=>{const _0x5445a5=_0x24bb9f['getPermissions'](_0x58d300['channelId'])['write'],_0x2a2c11=_0x24bb9f['getPermissions'](_0x58d300['channelId'])['modifyAll'];return _0x220309&&_0x5445a5||!_0x220309&&_0x2a2c11;}),this['bind']('isRemovable')['to'](_0x58d300,'isRemovable',_0x24bb9f,'_permissions',_0x184228=>{const _0x1c0d94=_0x24bb9f['getPermissions'](_0x58d300['channelId'])['write'],_0x1534de=_0x24bb9f['getPermissions'](_0x58d300['channelId'])['modifyAll'];return _0x220309&&_0x1c0d94||_0x184228&&_0x3f0461||!_0x220309&&_0x1534de&&!_0x3f0461;}),this['bind']('isReadOnly')['to'](_0x58d300,'isReadOnly'),this['_repository']=_0x24bb9f;}get['weight'](){return Math['max'](function(_0x2ceba4){const _0x55d490=document['createElement']('div');return _0x55d490['innerHTML']=_0x2ceba4,_0x55d490['textContent']['length'];}(this['content']),0xc8);}['update'](_0x284e8d){const {threadId:_0x444881,id:_0x424179}=this;if(!this['_repository']['hasCommentThread'](_0x444881))throw new _0x2b0648('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3afaa2}=this['_repository']['getCommentThread'](_0x444881);this['_repository']['fire'](Nt('updateComment',_0x3afaa2,_0x444881),{'channelId':_0x3afaa2,'threadId':_0x444881,'commentId':_0x424179,..._0x284e8d});}['setAttribute'](_0x45e61b,_0x157fdd){const _0x1951d2=wt(this['attributes']);yt(_0x1951d2,_0x45e61b,_0x157fdd),this['update']({'attributes':_0x1951d2});}['removeAttribute'](_0x1f0385){const _0x35e5f9=wt(this['attributes']);Ct(_0x35e5f9,_0x1f0385),this['update']({'attributes':_0x35e5f9});}['remove'](_0x4fafa1={}){if(!_0x4fafa1['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x1e8210,id:_0x53909}=this;if(!this['_repository']['hasCommentThread'](_0x1e8210))throw new _0x2b0648('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4d82c8}=this['_repository']['getCommentThread'](_0x1e8210);this['_repository']['fire'](Nt('removeComment',_0x4d82c8,_0x1e8210),{'channelId':_0x4d82c8,'threadId':_0x1e8210,'commentId':_0x53909,..._0x4fafa1});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x365158,..._0x5ec7f7){for(const _0x2a1c0b of _0x5ec7f7)void 0x0!==_0x2a1c0b&&(_0x365158+=':'+String(_0x2a1c0b));return _0x365158;}class ot extends _0x3cd900{constructor(_0xee03e4){super(_0xee03e4),this['set']('hasContent',!0x1);}['refresh'](){const _0x2a6c5d=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5b159c of _0x2a6c5d['getRanges']())if(this['_hasContent'](_0x5b159c))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x1e98dd=_0x240cbb(),ranges:_0x22d44d,comment:_0x41a5c2}={}){const _0x50ae49=this['editor']['model'],_0x44161a=_0x22d44d??Array['from'](_0x50ae49['document']['selection']['getRanges']()),_0x18ab2e=[];for(const _0x2105f0 of _0x44161a)this['_hasContent'](_0x2105f0)&&_0x18ab2e['push'](this['_trimToContent'](_0x2105f0));if(!_0x18ab2e['length'])throw new _0x2b0648('addcommentthreadcommand-incorrect-ranges',null);_0x41a5c2&&this['_createCommentThread'](_0x1e98dd,_0x41a5c2),this['_createMarkersFromRanges'](_0x1e98dd,_0x18ab2e,!!_0x41a5c2);}['_createMarkersFromRanges'](_0x357d3b,_0x103db4,_0x50b25a){this['editor']['model']['change'](_0x414ab9=>{for(const _0x81caac of _0x103db4){const _0x1f46d0=_0x240cbb()['substr'](0x1,0x5),_0x47f3dc='comment:'+_0x357d3b+':'+_0x1f46d0;_0x414ab9['addMarker'](_0x47f3dc,{'range':_0x81caac,'usingOperation':_0x50b25a,'affectsData':_0x50b25a});}});}['_createCommentThread'](_0x52f933,_0x8af17a){const _0x296a8b=this['editor']['plugins']['get']('CommentsRepository'),_0x2ac0cd=this['editor']['config']['get']('collaboration.channelId'),_0x44d43d=this['editor']['plugins']['get']('Users')['me'];if(!_0x44d43d)throw new _0x2b0648('addcommentthreadcommand-user-not-found',null);_0x296a8b['addCommentThread']({'threadId':_0x52f933,'channelId':_0x2ac0cd,'comments':[{'authorId':_0x44d43d['id'],'content':_0x8af17a,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x54be09){for(const _0x21bfcf of _0x54be09['getItems']())if(this['_itemIsContent'](_0x21bfcf))return!0x0;return!0x1;}['_itemIsContent'](_0x4c7224){return _0x4c7224['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4c7224)&&!_0x4c7224['is']('element','tableCell');}['_trimToContent'](_0x9def81){const _0x5965fd=_0x5f0d99=>!this['_itemIsContent'](_0x5f0d99['item']),_0x151614=_0x9def81['start']['getLastMatchingPosition'](_0x5965fd),_0xc838be=_0x9def81['end']['getLastMatchingPosition'](_0x5965fd,{'direction':'backward'});return this['editor']['model']['createRange'](_0x151614,_0xc838be);}}class b extends _0x48f069{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf97fd8){super(_0xf97fd8),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x57f677=this['editor'],_0x3a8241=_0x57f677['model']['document']['selection'],_0xd67385=_0x3fee7d(()=>this['refreshSelectedViews'](),0xa);_0x3a8241['on']('change:range',(_0x4601bd,_0x1fbf2f)=>{_0x1fbf2f['directChange']&&(_0xd67385['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x57f677['editing']['view']['document'],'change:isFocused',(_0x340cf2,_0x207aac,_0x369397)=>{_0x369397&&_0xd67385();}),this['listenTo'](_0x57f677['ui']['focusTracker'],'change:isFocused',(_0x3a28f0,_0x5c6cb9,_0x1e4d6c)=>{_0x1e4d6c||this['fire']('blur',{'isAnnotationTracked':_0x16dffe=>this['_editorAnnotationsData']['has'](_0x16dffe['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x507e2c){if(this['_editorAnnotations']['has'](_0x507e2c['view']))return;this['_editorAnnotations']['add'](_0x507e2c['view']),this['editor']['ui']['focusTracker']['add'](_0x507e2c['view']['element']);const _0xbb6868=this['editor']['plugins']['get'](y);this['listenTo'](_0xbb6868['collection'],'remove',(_0xb1997,_0x18e930)=>{this['editor']['ui']['focusTracker']['remove'](_0x18e930['view']['element']),this['_editorAnnotations']['delete'](_0x18e930['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1f1317){if('function'!=typeof _0x1f1317)throw new _0x2b0648('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1f1317);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x183723,annotations:_0x310df4}){const _0x112876=[],_0x57ccce=this['editor']['model']['document']['selection'],_0xe0950=Array['from'](_0x57ccce['getRanges']());for(const [_0x1e214b,_0x4212f0]of this['_editorAnnotationsData']){const _0x5698ae=_0x495504(_0x4212f0),_0x28db83=_0x310df4['getByInnerView'](_0x1e214b);_0x5698ae&&_0x28db83&&_0x112876['push']({'annotation':_0x28db83,'range':_0x5698ae});}function _0x495504(_0x5ed73e){for(const _0x2b6f7f of _0x5ed73e)for(const _0x5c86af of _0xe0950)if(_0x2b6f7f['containsRange'](_0x5c86af,!_0x57ccce['isCollapsed']))return _0x2b6f7f;return null;}return _0x112876['sort']((_0x217881,_0x3b30d8)=>{const _0x28f5f4=_0x217881['range'],_0x4db587=_0x3b30d8['range'];if(!_0x28f5f4['isEqual'](_0x4db587)){if(_0x28f5f4['containsRange'](_0x4db587,!0x0))return 0x1;if(_0x4db587['containsRange'](_0x28f5f4,!0x0))return-0x1;}return _0x217881['annotation']==_0x183723?-0x1:_0x3b30d8['annotation']==_0x183723?0x1:0x0;})['map'](_0x232ea0=>_0x232ea0['annotation']);}get['_editorAnnotationsData'](){const _0x53d1b1=new Map();for(const _0x3155f1 of Array['from'](this['_dataCollectors']))for(const [_0x2fe4f3,_0xf05da8]of _0x3155f1())_0x53d1b1['set'](_0x2fe4f3,_0xf05da8);return _0x53d1b1;}}class st extends _0x48f069{['afterInit'](){const _0x3fa8b2=this['editor'];if(!_0x3fa8b2['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3fa8b2['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x48f069{constructor(_0x4f290f){super(_0x4f290f),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x590b9a=this['editor'],_0x2362ee=_0x590b9a['commands']['get']('importWord'),_0x1d34e8=_0x590b9a['plugins']['get'](it);_0x2362ee&&(_0x2362ee['on']('execute',(_0x4930cf,[,_0x44867b])=>{_0x44867b['collaboration_features']={'comments':!0x0,'user_id':_0x1d34e8['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2362ee,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x853e0a,_0x1facb3){const {comment_threads:_0x361497}=_0x1facb3;_0x361497&&_0x361497['forEach'](({thread_id:_0xf605cd,comments:_0x73e7fa,is_resolved:_0x563ca7})=>{const _0xf890b8=new Date(),_0x3f1236=_0x73e7fa['map'](({author:_0x45dff3,content:_0xabeae9,created_at:_0x33a5b2})=>({'content':_0xabeae9,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0xf890b8,'attributes':{'@external':{'authorName':_0x45dff3,'createdAt':_0x33a5b2?new Date(_0x33a5b2):new Date(),'source':'importWord'}}})),_0x1982e5=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x1982e5,'threadId':_0xf605cd,'comments':_0x3f1236,'resolvedAt':_0x563ca7?_0xf890b8:null});});}}class at extends _0x48f069{constructor(_0xa1456){super(_0xa1456),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x5f026=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5f026,'contentInsertion',(_0x158bfc,_0x5e2345)=>this['_removeMarkersWithoutThreads'](_0x5e2345['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x1981bf){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x1981bf;const _0x24ae9b=this['editor']['plugins']['get']('CommentsRepository');for(const _0x54d40c of _0x1981bf['keys']()){const [_0x4e2067,_0x2e610b]=_0x54d40c['split'](':');'comment'!=_0x4e2067||_0x24ae9b['hasCommentThread'](_0x2e610b)||_0x1981bf['delete'](_0x54d40c);}return _0x1981bf;}['_registerMarkerInClipboardPipeline'](){const _0x4ef27a=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x311f90=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x311f90&&_0x4ef27a['_registerMarkerToCopy']('comment',_0x311f90);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x444903){switch(_0x444903){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x521695){const _0x3a43c6=_0x521695['split'](':');return{'group':_0x3a43c6[0x0],'id':_0x3a43c6[0x1],'part':_0x3a43c6[0x2]};}class ut extends _0x48f069{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4d72e5,_0x42dbe0)=>{if(!_0x42dbe0['options']['showCommentHighlights'])return null;if(_0x42dbe0['options']['ignoreResolvedComments']){const {id:_0x426c0c}=ft(_0x4d72e5['markerName']),_0xb2461d=this['editor']['plugins']['get'](o);if(_0xb2461d['getCommentThread'](_0x426c0c)?.['isResolved']&&_0x4d72e5['item'])return _0x42dbe0['consumable']['consume'](_0x4d72e5['item'],'addMarker:'+_0x4d72e5['markerName']),_0x42dbe0['consumable']['consume'](_0x4d72e5['item'],'removeMarker:'+_0x4d72e5['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3aa066=>{_0x3aa066['on']('addMarker:comment',(_0x3beac1,_0x2a64d6,_0x18c16c)=>{if(!_0x18c16c['options']['showCommentHighlights'])return;const _0x1f57d7=_0x2a64d6['item'];if(!_0x1f57d7)return;const _0x181e79=_0x18c16c['mapper']['toViewElement'](_0x1f57d7);this['editor']['model']['schema']['isObject'](_0x1f57d7)&&_0x181e79&&!_0x181e79['getCustomProperty']('widget')&&_0x181e79['is']('containerElement')&&_0x1b2e6c(_0x181e79,_0x18c16c['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3b5a0e,{writer:_0x407329,options:_0x3ed026})=>{if(!_0x3ed026['showCommentHighlights'])return null;const _0x300cd8=_0x407329['createContainerElement']('div'),_0x11d1dd=_0x407329['createEmptyElement']('hr');return _0x407329['addClass']('ck-horizontal-line',_0x300cd8),_0x407329['insert'](_0x407329['createPositionAt'](_0x300cd8,0x0),_0x11d1dd),_0x300cd8;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x4b3f44,{writer:_0x459214,options:_0x2ba342})=>{if(!_0x2ba342['showCommentHighlights'])return null;const _0x10a132=_0x459214['createContainerElement']('span'),_0x3877f6=_0x459214['createEmptyElement']('img');return _0x459214['addClass']('image-inline',_0x10a132),_0x459214['insert'](_0x459214['createPositionAt'](_0x10a132,0x0),_0x3877f6),_0x10a132;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4625b2,{writer:_0x185789,options:_0x1278dc})=>{if(_0x1278dc['showCommentHighlights'])return _0x185789['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x19ac50,_0x52a9f9,_0x526363)=>{_0x526363['options']['showCommentHighlights']&&_0x19ac50['stop']();},{'priority':'high'});}}class r extends _0x48f069{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(_0x5ed6bd){super(_0x5ed6bd),this['set']('isThreadsLoadingPaused',!0x0),_0x5ed6bd['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x126a82,_0x1e3bad,_0x5ed9e7,_0x5d726e)=>{const _0x5089dd=_0x5ed6bd['plugins']['get'](o),_0x12d286=_0x5ed9e7?ft(_0x5ed9e7)['id']:null;_0x5ed6bd['model']['change'](()=>{if(_0x12d286){const _0x56a7ff=this['getAllMarkersForId'](_0x12d286);for(const _0x255ccf of _0x56a7ff)_0x5ed6bd['editing']['reconvertMarker'](_0x255ccf);}if(_0x5d726e){const {id:_0x303eb3}=ft(_0x5d726e),_0x5d69bf=_0x5089dd['getCommentThread'](_0x303eb3);if(_0x5d69bf&&_0x5d69bf['unlinkedAt'])return;if(_0x5d69bf&&!_0x5d69bf['isAttached'])return;const _0x1a8d9f=this['getAllMarkersForId'](_0x303eb3);for(const _0xba7a3b of _0x1a8d9f)_0x5ed6bd['editing']['reconvertMarker'](_0xba7a3b);}}),_0x12d286&&this['scrollToThreadMarker'](_0x12d286);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3a3630=this['editor'],_0x5f09eb=_0x3a3630['plugins']['get'](o),_0x550b80=_0x3a3630['config']['get']('collaboration.channelId'),_0x4318f9=_0x5f09eb['getCommentThreads']()['filter'](_0x446ced=>_0x446ced['channelId']!==_0x550b80);_0x3a3630['commands']['add']('addCommentThread',new ot(_0x3a3630)),this['listenTo'](_0x3a3630,'change:isReadOnly',(_0x3e9782,_0x3d85cd,_0x494867)=>{_0x5f09eb['switchReadOnly'](_0x494867,_0x3a3630['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5f09eb,dt('addCommentThread',_0x550b80),(_0x4df10d,{threadId:_0x3d6e87})=>{const _0x3fc304=this['editor']['plugins']['get'](o)['getCommentThread'](_0x3d6e87);_0x3fc304?.['unlinkedAt']&&this['_attachArchivedThread'](_0x3d6e87);}),this['listenTo'](_0x5f09eb,dt('removeCommentThread',_0x550b80),(_0x63eca5,{threadId:_0x3309b0})=>{_0x3a3630['model']['enqueueChange']({'isUndoable':!0x1},_0x4cb09b=>{const _0x5f3c8f=this['getAllMarkersForId'](_0x3309b0);for(const _0x1ff214 of _0x5f3c8f)_0x4cb09b['removeMarker'](_0x1ff214);});}),this['listenTo'](_0x5f09eb,dt('resolveCommentThread',_0x550b80),(_0x52e71f,{threadId:_0xf7c72})=>{(this['_reconvertMarkers'](_0xf7c72),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xf7c72)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5f09eb,dt('reopenCommentThread',_0x550b80),(_0x13f1fb,{threadId:_0x4fe16c})=>{this['_reconvertMarkers'](_0x4fe16c);},{'priority':'low'}),this['listenTo'](_0x5f09eb,dt('addComment',_0x550b80),(_0x5e9809,{threadId:_0x31f60f,isFromAdapter:_0x403ff5})=>{const _0x3a8831=this['getAllMarkersForId'](_0x31f60f);if(_0x403ff5||0x0==_0x3a8831['length']||!_0x5f09eb['hasCommentThread'](_0x31f60f))return;0x1===_0x5f09eb['getCommentThread'](_0x31f60f)['length']&&_0x3a3630['model']['enqueueChange']({'isUndoable':!0x1},_0x32b11f=>{for(const _0x47cc19 of _0x3a8831)_0x32b11f['updateMarker'](_0x47cc19,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4318f9);}['afterInit'](){!async function(_0x3faeed){const _0x5cce5f=_0x4db90b([0x45,0x44,0x6d,0x33,0x68,0x52,0x76,0x72,0x6b,0x4f,0x41,0x5a,0x4c,0x42,0x4b,0x78,0x74,0x4e,0x57,0x46,0x48,0x38,0x50,0x59,0x6c,0x55,0x66,0x30,0x37,0x6e,0x65,0x77,0x47,0x73,0x62,0x4d,0x49,0x43,0x70,0x6a,0x71,0x36,0x53,0x56,0x35,0x75,0x31,0x39,0x32,0x54,0x67,0x58,0x79,0x63,0x4a,0x6f,0x34,0x64,0x69,0x51,0x61,0x7a]),_0x195624=0x67aabed5,_0xacb02b=0x67add165^_0x195624,_0xcef307=window[_0x4db90b([0x44,0x61,0x74,0x65])][_0x4db90b([0x6e,0x6f,0x77])](),_0x94e9b9=_0x3faeed[_0x4db90b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x390f44=new window[(_0x4db90b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52d2c5=>{_0x94e9b9[_0x4db90b([0x6f,0x6e,0x63,0x65])](_0x4db90b([0x72,0x65,0x61,0x64,0x79]),_0x52d2c5);}),_0x2cdfb2={[_0x4db90b([0x6b,0x74,0x79])]:_0x4db90b([0x45,0x43]),[_0x4db90b([0x75,0x73,0x65])]:_0x4db90b([0x73,0x69,0x67]),[_0x4db90b([0x63,0x72,0x76])]:_0x4db90b([0x50,0x2d,0x32,0x35,0x36]),[_0x4db90b([0x78])]:_0x4db90b([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]),[_0x4db90b([0x79])]:_0x4db90b([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]),[_0x4db90b([0x61,0x6c,0x67])]:_0x4db90b([0x45,0x53,0x32,0x35,0x36])},_0x255c43=_0x94e9b9[_0x4db90b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4db90b([0x67,0x65,0x74])](_0x4db90b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5477b1(){let _0x1ed6eb,_0x587b7d=null,_0x16c894=null;try{if(_0x255c43==_0x4db90b([0x47,0x50,0x4c]))return _0x4db90b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ed6eb=_0x14e66c(),!_0x1ed6eb)return _0x4db90b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1ed6eb[_0x4db90b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16c894=_0x266965(_0x1ed6eb[_0x4db90b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ed6eb[_0x4db90b([0x6a,0x74,0x69])])),await _0x3dadca()?_0x1a96e1()?_0x378fd2()?_0x4db90b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17560e()?(_0x1ed6eb[_0x4db90b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4db90b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x587b7d=_0x2b2051(_0x4db90b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1ed6eb[_0x4db90b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4db90b([0x74,0x72,0x69,0x61,0x6c])&&(_0x587b7d=_0x2b2051(_0x4db90b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e952a()):_0x4db90b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4db90b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4db90b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4db90b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x378fd2(){const _0xf008bb=[_0x4db90b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4db90b([0x74,0x72,0x69,0x61,0x6c])][_0x4db90b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ed6eb[_0x4db90b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcef307/0x3e8:0xe10*_0xacb02b;return _0x1ed6eb[_0x4db90b([0x65,0x78,0x70])]<_0xf008bb;}function _0x1a96e1(){const _0x58da40=_0x1ed6eb[_0x4db90b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x58da40)return!0x1;if(_0x58da40[_0x4db90b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db90b([0x2a])))return!0x0;if(_0x58da40[_0x4db90b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db90b([0x43,0x4d,0x54])))return!0x0;if(_0x58da40[_0x4db90b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db90b([0x52,0x43,0x4d,0x54]))){if(_0x26fb6d())return!0x0;if(_0x844f7d()||_0x37eb15())return!0x0;}return!0x1;}function _0x17560e(){const _0x4bf3d7=_0x1ed6eb[_0x4db90b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4bf3d7||0x0==_0x4bf3d7[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1cad16}=new URL(window[_0x4db90b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4bf3d7[_0x4db90b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cad16))return!0x0;const _0x54c90e=_0x1cad16[_0x4db90b([0x73,0x70,0x6c,0x69,0x74])](_0x4db90b([0x2e]));return _0x4bf3d7[_0x4db90b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x313850=>_0x313850[_0x4db90b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db90b([0x2a])))[_0x4db90b([0x6d,0x61,0x70])](_0x37eeb2=>_0x37eeb2[_0x4db90b([0x73,0x70,0x6c,0x69,0x74])](_0x4db90b([0x2e])))[_0x4db90b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cab43=>_0x3cab43[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x54c90e[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4db90b([0x6d,0x61,0x70])](_0x4f1606=>Array(_0x54c90e[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f1606[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4db90b([0x66,0x69,0x6c,0x6c])](_0x4f1606[0x0]===_0x4db90b([0x2a])?_0x4db90b([0x2a]):'')[_0x4db90b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f1606))[_0x4db90b([0x73,0x6f,0x6d,0x65])](_0x19aec9=>_0x54c90e[_0x4db90b([0x65,0x76,0x65,0x72,0x79])]((_0x21e430,_0x449b5b)=>_0x19aec9[_0x449b5b]===_0x21e430||_0x19aec9[_0x449b5b]===_0x4db90b([0x2a])));}function _0x5e952a(){return _0x587b7d&&_0x16c894?new window[(_0x4db90b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9a3df,_0x37abdf)=>{_0x587b7d[_0x4db90b([0x74,0x68,0x65,0x6e])](_0x9a3df,_0x37abdf),_0x16c894[_0x4db90b([0x74,0x68,0x65,0x6e])](_0x31f741=>{_0x31f741!=_0x4db90b([0x56,0x61,0x6c,0x69,0x64])&&_0x9a3df(_0x31f741);},_0x37abdf);}):_0x587b7d||_0x16c894||_0x4db90b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x266965(_0x4d96ee,_0x2fd069){return new window[(_0x4db90b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26ef97=>{if(_0x2e79c1())return _0x26ef97(_0x4db90b([0x56,0x61,0x6c,0x69,0x64]));_0x17b36e(),_0x94e9b9[_0x4db90b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4db90b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x215949=!0x1;const _0x4f9080=_0x240cbb();function _0x5b8e3c(_0x5c9d4e){return!!_0x5c9d4e&&(typeof _0x5c9d4e===_0x4db90b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c9d4e===_0x4db90b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c9d4e[_0x4db90b([0x74,0x68,0x65,0x6e])]===_0x4db90b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c9d4e[_0x4db90b([0x63,0x61,0x74,0x63,0x68])]===_0x4db90b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1ac918(_0x99837){_0x21130e(_0x99837)[_0x4db90b([0x74,0x68,0x65,0x6e])](_0x75a6e2=>{if(!_0x75a6e2||_0x75a6e2[_0x4db90b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4db90b([0x6f,0x6b]))return _0x4db90b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x120117(_0x314b86(_0x4f9080+_0x2fd069))!=_0x75a6e2[_0x4db90b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4db90b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4db90b([0x56,0x61,0x6c,0x69,0x64]);})[_0x4db90b([0x74,0x68,0x65,0x6e])](_0x167549=>(_0x503ad7(),_0x167549),()=>{const _0x3331f0=_0x571f7b();return null==_0x3331f0?(_0x503ad7(),_0x4db90b([0x56,0x61,0x6c,0x69,0x64])):_0x4db90b(_0xcef307-_0x3331f0>(0x43a63ad5^_0x195624)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4db90b([0x74,0x68,0x65,0x6e])](_0x26ef97)[_0x4db90b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26ef97(_0x4db90b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12efc0=0x679c5055^_0x195624;function _0x503ad7(){const _0x59a8b1=_0x4db90b([0x6c,0x6c,0x63,0x74,0x2d])+_0x120117(_0x314b86(_0x4d96ee)),_0x520352=_0x3fee77(_0x120117(window[_0x4db90b([0x4d,0x61,0x74,0x68])][_0x4db90b([0x63,0x65,0x69,0x6c])](_0xcef307/_0x12efc0)));window[_0x4db90b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4db90b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59a8b1,_0x520352);}function _0x571f7b(){const _0x5090e7=_0x4db90b([0x6c,0x6c,0x63,0x74,0x2d])+_0x120117(_0x314b86(_0x4d96ee)),_0x275766=window[_0x4db90b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4db90b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5090e7);return _0x275766?window[_0x4db90b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fee77(_0x275766),0x10)*_0x12efc0:null;}function _0x21130e(_0x2f2cd9){return new window[(_0x4db90b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x183442,_0x2feca6)=>{_0x2f2cd9[_0x4db90b([0x74,0x68,0x65,0x6e])](_0x183442,_0x2feca6),window[_0x4db90b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2feca6,0x67ab6a15^_0x195624);});}}_0x94e9b9[_0x4db90b([0x6f,0x6e])](_0x4db90b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x33f80d,_0x3fd6a2)=>{if(_0x3fd6a2[0x0]!=_0x4d96ee)return _0x26ef97(_0x4db90b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fd6a2[0x1]={..._0x3fd6a2[0x1],[_0x4db90b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f9080};},{[_0x4db90b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4db90b([0x68,0x69,0x67,0x68])}),_0x94e9b9[_0x4db90b([0x6f,0x6e])](_0x4db90b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42689c=>{_0x5b8e3c(_0x42689c[_0x4db90b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x215949=!0x0,_0x1ac918(_0x42689c[_0x4db90b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4db90b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4db90b([0x6c,0x6f,0x77])}),_0x390f44[_0x4db90b([0x74,0x68,0x65,0x6e])](()=>{_0x215949||_0x26ef97(_0x4db90b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e79c1(){return _0x94e9b9[_0x4db90b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4db90b([0x76,0x69,0x65,0x77])][_0x4db90b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4db90b([0x61,0x75,0x74,0x6f]);}function _0x17b36e(){_0x94e9b9[_0x4db90b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4db90b([0x76,0x69,0x65,0x77])][_0x4db90b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4db90b([0x61,0x75,0x74,0x6f]);}}function _0x2b2051(_0x463475){const _0x15dfeb=[new window[(_0x4db90b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4011e5=>setTimeout(_0x4011e5,0x67a38019^_0x195624)),_0x390f44[_0x4db90b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4db90b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x373e22=>{let _0x12c9c4=0x0;_0x94e9b9[_0x4db90b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db90b([0x6f,0x6e])](_0x4db90b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5afa14,_0xf4971)=>{_0xf4971[0x0][_0x4db90b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12c9c4++,_0x12c9c4==(0x67aabf2d^_0x195624)&&(_0x373e22(),_0x5afa14[_0x4db90b([0x6f,0x66,0x66])]());});}))];return window[_0x4db90b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4db90b([0x72,0x61,0x63,0x65])](_0x15dfeb)[_0x4db90b([0x74,0x68,0x65,0x6e])](()=>_0x463475);}async function _0x21e715(){await _0x390f44,_0x94e9b9[_0x4db90b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db90b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x455582,_0x94e9b9[_0x4db90b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db90b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x455582,_0x94e9b9[_0x4db90b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4db90b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26fb6d(){return _0xf3675e(_0x4db90b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc6686e(_0x4db90b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4db90b([0x73,0x74,0x61,0x74,0x65])]==_0x4db90b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x844f7d(){return _0xf3675e(_0x4db90b([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 _0x37eb15(){return _0xf3675e(_0x4db90b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x38d678(_0x2cfd2a){const _0x18f7da=_0x3994e6();_0x94e9b9[_0x18f7da]=_0x4db90b([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2cfd2a,_0x2cfd2a!=_0x4db90b([0x56,0x61,0x6c,0x69,0x64])&&_0x21e715();}function _0x3994e6(){const _0x167c10=window[_0x4db90b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4db90b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4db90b([0x6e,0x6f,0x77])]())[_0x4db90b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4db90b([0x2e]),'');let _0x5d4040=_0x4db90b([0x45]);for(let _0x1eea3a=0x0;_0x1eea3a<_0x167c10[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1eea3a+=0x2){let _0x20ad06=window[_0x4db90b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x167c10[_0x4db90b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1eea3a,_0x1eea3a+0x2));_0x20ad06>=_0x5cce5f[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20ad06-=_0x5cce5f[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d4040+=_0x5cce5f[_0x20ad06];}return _0x5d4040;}function _0x14e66c(){const _0xefac98=_0x255c43[_0x4db90b([0x73,0x70,0x6c,0x69,0x74])](_0x4db90b([0x2e]));if(0x3!=_0xefac98[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34a2f6(_0xefac98[0x1]);function _0x34a2f6(_0x121543){const _0x1661f9=_0x1f5b7c(_0x121543);return _0x1661f9&&_0xf9bdc6()?_0x1661f9:null;function _0xf9bdc6(){const _0x4469a4=_0x1661f9[_0x4db90b([0x6a,0x74,0x69])],_0x281fe6=window[_0x4db90b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4469a4[_0x4db90b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4469a4[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x62a490={..._0x1661f9,[_0x4db90b([0x6a,0x74,0x69])]:_0x4469a4[_0x4db90b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4469a4[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x62a490[_0x4db90b([0x76,0x63])],_0x314b86(_0x62a490)==_0x281fe6;}}}async function _0x3dadca(){let _0x1c3932=!0x0;try{const _0xab5302=_0x255c43[_0x4db90b([0x73,0x70,0x6c,0x69,0x74])](_0x4db90b([0x2e])),[_0x142ee2,_0x38b522,_0x5d4c67]=_0xab5302;return _0x48f03c(_0x142ee2),await _0x246d14(_0x142ee2,_0x38b522,_0x5d4c67),_0x1c3932;}catch{return!0x1;}function _0x48f03c(_0x19974b){const _0x4bb4a9=_0x1f5b7c(_0x19974b);_0x4bb4a9&&_0x4bb4a9[_0x4db90b([0x61,0x6c,0x67])]==_0x4db90b([0x45,0x53,0x32,0x35,0x36])||(_0x1c3932=!0x1);}async function _0x246d14(_0x3afdb4,_0x102be2,_0xf10b55){const _0x23f615=window[_0x4db90b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4db90b([0x66,0x72,0x6f,0x6d])](_0x7ca409(_0xf10b55),_0x2700a1=>_0x2700a1[_0x4db90b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b8959=new window[(_0x4db90b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4db90b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3afdb4+_0x4db90b([0x2e])+_0x102be2),_0x38aca7=window[_0x4db90b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4db90b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38aca7)return;const _0x5be5fe=await _0x38aca7[_0x4db90b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4db90b([0x6a,0x77,0x6b]),_0x2cdfb2,{[_0x4db90b([0x6e,0x61,0x6d,0x65])]:_0x4db90b([0x45,0x43,0x44,0x53,0x41]),[_0x4db90b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4db90b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4db90b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38aca7[_0x4db90b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4db90b([0x6e,0x61,0x6d,0x65])]:_0x4db90b([0x45,0x43,0x44,0x53,0x41]),[_0x4db90b([0x68,0x61,0x73,0x68])]:{[_0x4db90b([0x6e,0x61,0x6d,0x65])]:_0x4db90b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5be5fe,_0x23f615,_0x2b8959)||(_0x1c3932=!0x1);}}function _0x1f5b7c(_0x4af455){return _0x4af455[_0x4db90b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4db90b([0x65,0x79]))?JSON[_0x4db90b([0x70,0x61,0x72,0x73,0x65])](_0x7ca409(_0x4af455)):null;}function _0x7ca409(_0x3adf37){return window[_0x4db90b([0x61,0x74,0x6f,0x62])](_0x3adf37[_0x4db90b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4db90b([0x2b]))[_0x4db90b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4db90b([0x2f])));}function _0x314b86(_0x4eb273){let _0xc4bc87=0x1505;function _0x9f52b8(_0x431e44){for(let _0x24d2ce=0x0;_0x24d2ce<_0x431e44[_0x4db90b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24d2ce++){const _0x56f6a4=_0x431e44[_0x4db90b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24d2ce);_0xc4bc87=(_0xc4bc87<<0x5)+_0xc4bc87+_0x56f6a4,_0xc4bc87&=_0xc4bc87;}}function _0x39279a(_0x3d0698){Array[_0x4db90b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d0698)?_0x3d0698[_0x4db90b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39279a):_0x3d0698&&typeof _0x3d0698==_0x4db90b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4db90b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d0698)[_0x4db90b([0x73,0x6f,0x72,0x74])]()[_0x4db90b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ed560,_0x2b82f9])=>{_0x9f52b8(_0x5ed560),_0x39279a(_0x2b82f9);}):_0x9f52b8(window[_0x4db90b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d0698));}return _0x39279a(_0x4eb273),_0xc4bc87>>>0x0;}function _0x120117(_0xe75af2){return _0xe75af2[_0x4db90b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4db90b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4db90b([0x30]));}function _0x3fee77(_0x288e87){return _0x288e87[_0x4db90b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4db90b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4db90b([0x6a,0x6f,0x69,0x6e])]('');}function _0xf3675e(_0x152067){return _0x94e9b9[_0x4db90b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4db90b([0x68,0x61,0x73])](_0x152067);}function _0xc6686e(_0x237825){return _0x94e9b9[_0x4db90b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4db90b([0x67,0x65,0x74])](_0x237825);}function _0x455582(){}function _0x4db90b(_0x4aa759){return _0x4aa759['map'](_0x49a484=>String['fromCharCode'](_0x49a484))['join']('');}_0x38d678(await _0x5477b1());}(this);}['destroy'](){const _0x1eb7f7=this['editor']['plugins']['get'](o),_0x416c76=this['editor']['config']['get']('collaboration.channelId');for(const _0x35ba5b of _0x1eb7f7['getCommentThreads']({'channelId':_0x416c76}))_0x1eb7f7['_detachCommentThread'](_0x35ba5b['id']),_0x1eb7f7['_threads']['delete'](_0x35ba5b['id']);super['destroy']();}['hasMarkerForId'](_0x397a2c){return this['getAllMarkersForId'](_0x397a2c)['length']>0x0;}['getAllMarkersForId'](_0x1d376d){const _0x5989f2=[];for(const _0x24e828 of this['editor']['model']['markers'])_0x24e828['name']['startsWith']('comment:'+_0x1d376d)&&_0x5989f2['push'](_0x24e828);return _0x5989f2;}['scrollToThreadMarker'](_0x288e24){setTimeout(()=>{const _0x358282=this['_getTargetForId'](_0x288e24);if(!_0x358282)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x288e24&&nt({'target':_0x358282[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4c6ac4){this['editor']['model']['change'](()=>{for(const _0x19981a of this['getAllMarkersForId'](_0x4c6ac4))this['editor']['editing']['reconvertMarker'](_0x19981a);});}['_attachArchivedThread'](_0x3859c7){const _0x4747da=this['editor']['plugins']['get'](o),_0x49a58b=this['editor']['plugins']['get'](b),_0xc92644=_0x4747da['getCommentThread'](_0x3859c7);if(!_0xc92644['isAttached']){const _0x1c3790=_0xc92644['attachTo'](()=>this['_getTargetForId'](_0xc92644['id']));_0x49a58b['registerAnnotation'](_0x1c3790),_0xc92644['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x20df01=this['editor'],_0x1d5379=_0x20df01['plugins']['get'](it);_0x20df01['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xc1b32d,_0x58ff35)=>{const {id:_0x3c4c6b}=ft(_0xc1b32d['markerName']),_0x58382f=_0x20df01['plugins']['get'](o)['getCommentThread'](_0x3c4c6b),_0x2f381d=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x3c4c6b;let _0x47a44d;if(_0x58382f&&_0x58382f['isResolved']&&!_0x2f381d&&_0xc1b32d['item'])return _0x58ff35['consumable']['consume'](_0xc1b32d['item'],'addMarker:'+_0xc1b32d['markerName']),_0x58ff35['consumable']['consume'](_0xc1b32d['item'],'removeMarker:'+_0xc1b32d['markerName']),null;const _0x23e6f0=['ck-comment-marker'];return _0x2f381d&&_0x23e6f0['push']('ck-comment-marker--active'),_0x47a44d=_0x58382f?.['length']?_0x58382f['comments']['first']['author']['id']:_0x1d5379['me']['id'],{'classes':_0x23e6f0,'attributes':{'data-comment':_0x3c4c6b,'data-author-id':_0x47a44d}};}}),_0x20df01['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x4141dd,{options:_0x213994})=>{if(_0x213994['showCommentHighlights'])return null;const _0x40c647=_0x20df01['plugins']['get'](o),_0x26938d=_0x20df01['model']['markers']['get'](_0x4141dd),{id:_0x4f21bd,part:_0x1c92c9}=ft(_0x4141dd);return _0x26938d&&!_0x26938d['affectsData']||_0x213994['ignoreResolvedComments']&&_0x40c647['getCommentThread'](_0x4f21bd)?.['isResolved']?null:{'group':'comment','name':_0x1c92c9?_0x4f21bd+':'+_0x1c92c9:_0x4f21bd};}}),_0x20df01['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3746a0,{writer:_0x889e36})=>_0x889e36['createElement']('$marker',{'data-name':'comment:'+_0x3746a0['getAttribute']('id')})}),_0x20df01['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x55afb=this['editor'],_0x14c902=_0x55afb['plugins']['get'](o),_0x44b43a=new Set(),_0xf76a75=new Set();_0x55afb['model']['document']['registerPostFixer'](_0x1129a2=>{let _0x186951=!0x1;for(const {name:_0x51cca5,data:_0x568bb0}of _0x55afb['model']['document']['differ']['getChangedMarkers']()){const {group:_0x318eff,id:_0x1dbe57}=ft(_0x51cca5);let _0x4d2162=_0x568bb0['newRange'];if('comment'!==_0x318eff||!_0x4d2162)continue;const _0x5d6089='$graveyard'===_0x4d2162['root']['rootName'];_0x5d6089||(_0x4d2162=ht(_0x4d2162,_0x55afb['model']),!_0x4d2162||_0x4d2162['isCollapsed']||!_0x568bb0['newRange']||_0x4d2162['isEqual'](_0x568bb0['newRange']))?_0x55afb['model']['hasContent'](_0x4d2162)&&!_0x5d6089?this['isThreadsLoadingPaused']?_0x44b43a['add'](_0x51cca5):this['_handleThreadMarker'](_0x51cca5,_0x1dbe57):(_0xf76a75['add'](_0x51cca5),_0x44b43a['delete'](_0x51cca5),_0x1129a2['removeMarker'](_0x51cca5),_0x186951=!0x0):(_0x1129a2['updateMarker'](_0x51cca5,{'range':_0x4d2162}),_0x186951=!0x0);}return _0x186951;}),this['on']('change:isThreadsLoadingPaused',(_0x501480,_0x56834e,_0x4723ae)=>{if(!_0x4723ae&&_0x44b43a['size'])for(const _0x24fd8d of _0x44b43a){const {id:_0x2aa8a2}=ft(_0x24fd8d);_0x44b43a['delete'](_0x24fd8d),_0x55afb['model']['markers']['get'](_0x24fd8d)&&this['_handleThreadMarker'](_0x24fd8d,_0x2aa8a2);}}),this['listenTo'](_0x55afb['model']['document'],'change',()=>{for(const {name:_0x4eca30,data:{newRange:_0x4b7494}}of _0x55afb['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3c83aa,id:_0x7c5baa}=ft(_0x4eca30);if('comment'!==_0x3c83aa)continue;const _0x34c006=_0x14c902['getCommentThread'](_0x7c5baa),_0x3c9863=this['hasMarkerForId'](_0x7c5baa);_0x34c006&&(!_0x34c006['_hasTargetInContent']&&_0x4b7494&&_0x55afb['editing']['view']['once']('render',()=>{const _0x10a6d4=_0x55afb['plugins']['get'](y),_0x28679d=_0x14c902['_threadToController']['get'](_0x34c006)['view'];_0x10a6d4['getByInnerView'](_0x28679d)['refreshVisibility']();},{'priority':'low'}),_0x34c006['_hasTargetInContent']=_0x3c9863||!!_0x4b7494),_0x4b7494||(_0xf76a75['add'](_0x4eca30),_0x44b43a['delete'](_0x4eca30));}for(const _0x37d73c of _0xf76a75){const {id:_0x4a1e0e}=ft(_0x37d73c),_0x2b2825=_0x14c902['getCommentThread'](_0x4a1e0e);if(_0x44b43a['delete'](_0x37d73c),!_0x2b2825)continue;const _0x461ea5=this['hasMarkerForId'](_0x4a1e0e);_0x461ea5||_0x2b2825['isSubmitted']?_0x461ea5||_0x2b2825['unlinkedAt']||_0x2b2825['setUnlinkedAt'](new Date()):_0x2b2825['remove']();}_0xf76a75['clear']();});}['_handleInitialThreads'](_0x39ea69){_0x39ea69['forEach'](_0x5e7b67=>{_0x5e7b67['unlinkedAt']&&this['_attachArchivedThread'](_0x5e7b67['id']);});}['_getTargetForId'](_0x47f527){const _0x170781=this['editor'],_0xccfd76=this['getAllMarkersForId'](_0x47f527);return et(_0x170781['editing'],_0xccfd76);}['_getTextContext'](_0xec4a20){const _0x574624=this['getAllMarkersForId'](_0xec4a20);let _0x4fff2d='',_0x45c0fa=!0x1;for(const _0x3c86d1 of _0x574624){const _0x24d8ef=_0x3c86d1['getRange']();for(const _0x44dae3 of Array['from'](_0x24d8ef['getItems']()))_0x44dae3['is']('$textProxy')?(_0x4fff2d&&_0x45c0fa&&(_0x4fff2d+='\x20',_0x45c0fa=!0x1),_0x4fff2d+=_0x44dae3['data']):_0x45c0fa=!0x0;_0x45c0fa=!0x0;}return _0x4fff2d['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x65bf88,_0x2754a2){const _0x5f2ea6=this['editor'],_0x36f51e=_0x5f2ea6['plugins']['get'](o);let _0x38e11e=_0x36f51e['getCommentThread'](_0x2754a2);const _0x48ddab=_0x5f2ea6['config']['get']('collaboration.channelId'),_0x51b6db=_0x5f2ea6['plugins']['get'](b);if(_0x38e11e&&(_0x38e11e['unlinkedAt']&&_0x38e11e['setUnlinkedAt'](null),_0x38e11e['isAttached']))return _0x38e11e;return!this['getAllMarkersForId'](_0x2754a2)[0x0]['managedUsingOperations']?_0x5f2ea6['editing']['view']['once']('render',()=>{if(_0x36f51e['getCommentThread'](_0x2754a2))return;const _0x428127=_0x5f2ea6['plugins']['get'](y);_0x38e11e=_0x36f51e['openNewCommentThread']({'channelId':_0x48ddab,'threadId':_0x2754a2,'target':()=>this['_getTargetForId'](_0x2754a2),'context':{'type':'text','value':this['_getTextContext'](_0x2754a2)}});const _0x3a7477=_0x36f51e['_threadToController']['get'](_0x38e11e)['view'],_0x448faf=_0x428127['getByInnerView'](_0x3a7477);_0x448faf&&_0x51b6db['registerAnnotation'](_0x448faf);},{'priority':'low'}):_0x36f51e['fetchCommentThread']({'channelId':_0x48ddab,'threadId':_0x2754a2})['then'](_0x3b332a=>{if('destroyed'!==_0x5f2ea6['state']){if(_0x38e11e=_0x3b332a,_0x38e11e&&!_0x38e11e['isAttached']){const _0x15626a=_0x38e11e['attachTo'](()=>this['_getTargetForId'](_0x2754a2));_0x51b6db['registerAnnotation'](_0x15626a),_0x38e11e['isResolved']&&this['_reconvertMarkers'](_0x2754a2);}else{if(!_0x38e11e){const _0x4d9e62=this['getAllMarkersForId'](_0x2754a2);_0x5f2ea6['model']['change'](_0x59279a=>{for(const _0x376356 of _0x4d9e62)_0x59279a['removeMarker'](_0x376356);});}}}}),_0x38e11e;}['_handleThreadMarker'](_0x2676e8,_0x3ce519){const _0x33774c=this['_attachMarkerToThread'](_0x2676e8,_0x3ce519);_0x33774c&&!_0x33774c['context']&&_0x33774c['setContext']({'type':'text','value':this['_getTextContext'](_0x3ce519)});}['_initAriaMarkerChangeAnnouncements'](){const _0x46f43f=this['editor'];rt(_0x46f43f['model'],({left:_0x51878a,entered:_0x5a49b0})=>{for(const _0x2898e4 of _0x51878a)if(mt(_0x2898e4)){_0x46f43f['ui']['ariaLiveAnnouncer']['announce'](N(_0x46f43f['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x12b602 of _0x5a49b0)if(mt(_0x12b602)){_0x46f43f['ui']['ariaLiveAnnouncer']['announce'](N(_0x46f43f['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x4f5ef3)));break;}});}}function dt(_0x4a465f,_0x4a9d23){return _0x4a9d23?_0x4a465f+':'+_0x4a9d23:_0x4a465f;}function ht(_0x1db675,_0x5e1e20){const _0xf5f729=_0x5e1e20['schema'],_0x2fad43=_0x5e1e20['createRange'](_0x1db675['start']);for(const _0x2e23fb of _0x1db675['getWalker']()){const {type:_0x26a46c,item:_0x5877b4,nextPosition:_0x114939}=_0x2e23fb;if('text'===_0x26a46c||_0xf5f729['isObject'](_0x5877b4)){const _0x25732f=_0x5e1e20['createPositionBefore'](_0x5877b4);_0x2fad43['isCollapsed']&&(_0x2fad43['start']=_0x25732f),_0x2fad43['end']=_0x114939;}}return _0x2fad43;}function mt(_0x5cee5a){return'comment'===ft(_0x5cee5a['name'])['group'];}class s extends _0x48f069{['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 _0x4af78f=this['editor'],_0x5c3e05=_0x4af78f['plugins']['get'](o),_0x3ba9e6=_0x4af78f['plugins']['get'](r),_0x63b945=_0x4af78f['plugins']['get'](y),_0x3f2350=_0x4af78f['plugins']['get'](b);_0x4af78f['ui']['componentFactory']['add']('comment',()=>{const _0x340d98=this['_createUIButton'](_0x5381c7);return _0x340d98['tooltip']=!0x0,_0x340d98;}),_0x4af78f['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x39f9bd)),_0x3f2350['addSourceCollector'](()=>{const _0x439e7a=[];for(const [_0x4dd363,_0x2e90c4]of _0x5c3e05['_threadToController']){const _0x3147f8=_0x3ba9e6['getAllMarkersForId'](_0x4dd363['id']),_0x565fdc=_0x3147f8['map'](_0x2a6d2c=>_0x2a6d2c['getRange']());_0x3147f8['length']>0x0&&_0x439e7a['push']([_0x2e90c4['view'],_0x565fdc]);}return _0x439e7a;}),this['listenTo'](_0x63b945,'change:activeAnnotations',(_0x1a61b9,_0x46af8d,_0xeea852)=>{const _0x5d9a30=Array['from'](_0xeea852)['map'](_0x3042d5=>_0x3042d5['innerView'])['find'](_0x1f3e71=>_0x5c3e05['_viewToController']['has'](_0x1f3e71));if(!_0x5d9a30)return void(_0x3ba9e6['activeMarker']=null);const _0xa6b328=_0x5c3e05['_viewToController']['get'](_0x5d9a30)['model']['id'],_0x140bda='comment:'+_0xa6b328;_0xa6b328&&_0x3ba9e6['hasMarkerForId'](_0xa6b328)?_0x3ba9e6['activeMarker']=_0x140bda:_0x3ba9e6['activeMarker']&&(_0x3ba9e6['activeMarker']=null);}),this['listenTo'](_0x5c3e05,'removeCommentThread',(_0x3ddb91,{threadId:_0x105984,isFromAdapter:_0x67b21b})=>{!_0x67b21b&&_0x4af78f['ui']['focusTracker']['isFocused']&&_0x3ba9e6['hasMarkerForId'](_0x105984)&&_0x4af78f['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x5c3e05,'addComment',(_0x4415b1,{threadId:_0x38c149,isFromAdapter:_0xb3029f})=>{if(_0xb3029f||!_0x3ba9e6['hasMarkerForId'](_0x38c149)||!_0x5c3e05['hasCommentThread'](_0x38c149))return;0x1===_0x5c3e05['getCommentThread'](_0x38c149)['length']&&(_0x4af78f['editing']['view']['focus'](),_0x4415b1['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5acf44=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x242ea9;for(const _0x4938e9 in _0x5acf44){const _0x2b4a42=_0x4938e9,_0x16d7a5=_0x5acf44[_0x2b4a42];if('commentsLicenseKeyValid'==_0x16d7a5||'commentsLicenseKeyInvalid'==_0x16d7a5||'commentsLicenseKeyExpired'==_0x16d7a5||'commentsLicenseKeyDomainLimit'==_0x16d7a5||'commentsLicenseKeyNotAllowed'==_0x16d7a5||'commentsLicenseKeyEvaluationLimit'==_0x16d7a5||'commentsLicenseKeyTrialLimit'==_0x16d7a5||'commentsLicenseKeyUsageLimit'==_0x16d7a5){delete _0x5acf44[_0x2b4a42],_0x242ea9=_0x16d7a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x242ea9&&_0x5acf44['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x242ea9&&_0x5acf44['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x242ea9&&_0x5acf44['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x242ea9&&_0x5acf44['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x242ea9&&_0x5acf44['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x242ea9&&_0x5acf44['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x242ea9&&_0x5acf44['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2e0b8e){const _0x3a92d3=this['editor'],_0x36ab35=new _0x2e0b8e(_0x3a92d3['locale']),_0x150789=_0x3a92d3['commands']['get']('addCommentThread');return _0x36ab35['set']({'label':N(_0x3a92d3['locale'],'Comment'),'icon':_0x33239b}),_0x36ab35['bind']('isEnabled')['to'](_0x150789,'hasContent'),this['listenTo'](_0x36ab35,'execute',()=>{_0x150789['execute']();}),_0x36ab35;}}class i extends _0x48f069{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1815d1){super(_0x1815d1),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x76b0be,_0x397ad9,_0xbbe37f)=>{_0xbbe37f?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x4a79a5,_0x954cd0]of this['editor']['commands'])_0x954cd0['affectsData']&&'addCommentThread'!==_0x4a79a5&&_0x954cd0['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x2bd103=this['editor']['editing']['view']['document'];this['listenTo'](_0x2bd103,'cut',_0x4d517d=>_0x4d517d['stop'](),{'priority':'highest'}),this['listenTo'](_0x2bd103,'clipboardInput',_0x17d716=>_0x17d716['stop'](),{'priority':'highest'}),this['listenTo'](_0x2bd103,'delete',_0x304973=>_0x304973['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5d049d,_0x32452c]of this['editor']['commands'])_0x32452c['affectsData']&&'addCommentThread'!==_0x5d049d&&_0x32452c['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 _0x565db7{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53bf17){super(_0x53bf17),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0xac90cf=this['context']['plugins']['get'](y);this['listenTo'](_0xac90cf,'_activateAnnotation',(_0x16410f,_0x3d4980)=>{for(const _0x6a4d7c of this['activeUIs']){const _0x32d014=this['_uis']['get'](_0x6a4d7c);(0x0,this['uisData']['get'](_0x6a4d7c)['filter'])(_0x3d4980)&&_0x32d014['setActiveAnnotation'](_0x3d4980);}}),this['listenTo'](_0xac90cf,'_deactivateAllAnnotations',()=>{for(const _0x9548bf of this['activeUIs']){this['_uis']['get'](_0x9548bf)['setActiveAnnotation'](null);}}),this['listenTo'](_0xac90cf['_visibleAnnotations'],'add',(_0x5ab051,_0x1ca30c)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1ca30c);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x424097){return this['activeUIs']['has'](_0x424097);}['activate'](_0x2bddc0,_0x11410b=this['defaultFilter']){const _0x335684=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x2bddc0))throw new _0x2b0648('annotationsuis-missing-ui',this,{'uiName':_0x2bddc0});this['isActive'](_0x2bddc0)&&this['deactivate'](_0x2bddc0),this['activeUIs']['add'](_0x2bddc0);const _0x20d0d8=new S();v({'source':_0x335684['_visibleAnnotations'],'target':_0x20d0d8,'filter':_0x11410b}),this['uisData']['set'](_0x2bddc0,{'collection':_0x20d0d8,'filter':_0x11410b});const _0x24033a=this['_uis']['get'](_0x2bddc0);_0x24033a['attach'](_0x20d0d8),this['listenTo'](_0x24033a,'change:activeAnnotation',(_0xc725eb,_0x790d1,_0x1cbfe1,_0x58e77f)=>{_0x58e77f&&_0x335684['_removeActiveAnnotation'](_0x58e77f),_0x1cbfe1&&_0x335684['_addActiveAnnotation'](_0x1cbfe1);});}['deactivate'](_0x32e318){if(this['activeUIs']['delete'](_0x32e318),!this['_uis']['has'](_0x32e318))throw new _0x2b0648('annotationsuis-missing-ui',this,{'uiName':_0x32e318});const _0x32d2c2=this['_uis']['get'](_0x32e318);_0x32d2c2['detach'](),this['stopListening'](_0x32d2c2),this['uisData']['get'](_0x32e318)['collection']['destroy'](),this['uisData']['delete'](_0x32e318);}['switchTo'](_0x4afd33){if(!this['_uis']['has'](_0x4afd33))throw new _0x2b0648('annotationsuis-missing-ui',this,{'uiName':_0x4afd33});const _0x156558=this['context']['plugins']['get'](y),_0xde2b28=Array['from'](_0x156558['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4afd33);const _0x130e1d=this['_uis']['get'](_0x4afd33);_0x130e1d['setActiveAnnotation'](_0xde2b28),_0x130e1d['_setSelectedAnnotations']&&_0xde2b28&&_0x130e1d['_setSelectedAnnotations']([_0xde2b28]);}['deactivateAll'](){for(const _0x179606 of this['activeUIs'])this['deactivate'](_0x179606);}['register'](_0x25ca47,_0x2d2a52){if(this['_uis']['has'](_0x25ca47))throw new _0x2b0648('annotationsuis-register-already-registered');if('function'!=typeof _0x2d2a52['attach']||'function'!=typeof _0x2d2a52['detach']||'function'!=typeof _0x2d2a52['setActiveAnnotation'])throw new _0x2b0648('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x25ca47,_0x2d2a52);}['refilterAnnotations'](){const _0x251e71=this['context']['plugins']['get'](y)['collection'],_0xea1257=new Map(),_0x5c6bd3=Array['from'](this['activeUIs']);for(const _0x5d21d2 of this['activeUIs']){const _0x315d1c=this['uisData']['get'](_0x5d21d2)['collection'];for(const _0x40af2e of _0x315d1c)_0xea1257['set'](_0x40af2e,_0x5d21d2);}for(const _0x249a5b of _0x251e71){const _0x1bee1f=_0xea1257['get'](_0x249a5b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x249a5b);const _0x3934a5=_0x5c6bd3['find'](_0x208a26=>this['uisData']['get'](_0x208a26)['filter'](_0x249a5b));_0x1bee1f!==_0x3934a5&&(_0x1bee1f&&this['uisData']['get'](_0x1bee1f)['collection']['remove'](_0x249a5b),_0x3934a5&&this['uisData']['get'](_0x3934a5)['collection']['add'](_0x249a5b));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5abfcc){const _0x749948=[];for(const _0x592b71 of this['activeUIs']){(0x0,this['uisData']['get'](_0x592b71)['filter'])(_0x5abfcc)&&_0x749948['push'](_0x592b71);}if(_0x749948['length']>0x1)throw new _0x2b0648('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x749948,'annotationType':_0x5abfcc['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x602bab){super(_0x602bab);const _0x101e5e=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 _0x40a4de(),this['focusCycler']=new _0x4d1493({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x101e5e['to']('class')],'style':{'minHeight':_0x101e5e['to']('minHeight',_0x1d2cca=>'number'==typeof _0x1d2cca?_i(_0x1d2cca+0xa):null)},'dir':_0x602bab['uiLanguageDirection'],'role':'application','aria-label':N(_0x602bab,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x602bab,'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',_0x45c8b2=>{this['_updateItemPositionInFocusables'](_0x45c8b2['source']);}),this['list']['forEach'](_0x2f35f5=>{this['focusTracker']['add'](_0x2f35f5['element']),this['_updateItemPositionInFocusables'](_0x2f35f5);}),this['list']['on']('change',(_0x2476bc,_0x4d4723)=>{for(const _0x545b1a of _0x4d4723['removed'])this['focusTracker']['remove'](_0x545b1a['element']),this['focusables']['remove'](_0x545b1a);for(const _0x31ff17 of _0x4d4723['added'])this['focusTracker']['add'](_0x31ff17['element']),this['_updateItemPositionInFocusables'](_0x31ff17);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x1c63b3){const _0x3e296c=this['focusables']['getIndex'](_0x1c63b3);let _0x250d2e,_0x34a9de;for(const _0x1a7a5e of this['focusables'])if(_0x1c63b3['top']<_0x1a7a5e['top']){_0x250d2e=_0x1a7a5e;break;}if(_0x34a9de=_0x250d2e?this['focusables']['getIndex'](_0x250d2e):this['focusables']['length'],-0x1!==_0x3e296c){if(_0x3e296c===_0x34a9de-0x1)return;this['focusables']['remove'](_0x1c63b3),_0x34a9de=_0x250d2e?this['focusables']['getIndex'](_0x250d2e):this['focusables']['length'];}this['focusables']['add'](_0x1c63b3,_0x34a9de);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x302762){super(_0x302762),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x212f26,_0x50aa61)=>_0x212f26+_0x50aa61),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x421827=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x421827['to']('isAnimationDisabled',_0x472160=>_0x472160?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x421827['to']('top',_0x357e96=>Ot(_0x357e96))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x2b547e=this['element']['clientHeight'];_0x2b547e&&(this['height']=_0x2b547e);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x565db7{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5014c3){super(_0x5014c3),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 _0x1319c7=this['context']['config']['get']('sidebar.container');_0x1319c7&&this['setContainer'](_0x1319c7);}['setContainer'](_0x258661){if(!g(_0x258661))throw new _0x2b0648('sidebar-setcontainer-invalid-element');this['container']=_0x258661;}['_attachToContainer']({viewClass:_0xb1e17e='',spaceBetweenItems:_0x1cb047=0x19}={}){if(!g(this['container']))throw new _0x2b0648('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0xb1e17e,this['_spaceBetweenItems']=_0x1cb047;}['rearrange']({removedAnnotation:_0x366d68,previousAnnotation:_0x297083,nextAnnotation:_0x14c745}){const _0x137d4b=this['getSidebarItemView'](_0x366d68);this['view']['list']['remove'](_0x137d4b),this['_destroySidebarItemView'](_0x366d68),_0x297083&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x297083)),_0x14c745&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x14c745)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xa1b442,activatedAnnotation:_0x530204,disableAnimationOnActivatedAnnotation:_0x10aa7a}){if(this['_activeAnnotation']=_0x530204,_0xa1b442){_0xa1b442['isActive']=!0x1;const _0xc3f4ab=this['getSidebarItemView'](_0xa1b442);_0xc3f4ab&&_0x10aa7a&&(_0xc3f4ab['isAnimationDisabled']=!0x1);}if(_0x530204){const _0x4b81bb=this['getSidebarItemView'](_0x530204);_0x4b81bb&&(_0x530204['isActive']=!0x0,_0x10aa7a&&(_0x4b81bb['isAnimationDisabled']=!0x0,_0x4b81bb['top']+=0x1),this['_alignToTargetRect'](_0x4b81bb));}}['_detachFromContainer'](_0x41a44d){if(this['view']['element']['remove'](),_0x41a44d){for(const _0x33cb6a of _0x41a44d)this['_destroySidebarItemView'](_0x33cb6a);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x535d6d,_0x4aaf2e){_0x4aaf2e||(_0x4aaf2e=_0x535d6d['view']);const _0x34a893=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x34a893,_0x535d6d),this['_annotationToSidebarItemView']['set'](_0x535d6d,_0x34a893),_0x34a893['content']['add'](_0x4aaf2e),this['listenTo'](_0x535d6d['view'],'change:targetRect',(_0xfad899,_0x585c81,_0x17dc1c)=>{const _0x26374b=this['_getTargetTop'](_0x535d6d,_0x17dc1c);_0x34a893['_targetTop']!=_0x26374b&&(_0x34a893['_targetTop']=_0x26374b,this['_setItemTop'](_0x34a893,_0x26374b));}),this['listenTo'](_0x34a893,'change:top',()=>{this['_recalculate'](_0x34a893,'top');}),this['listenTo'](_0x34a893,'change:bottom',()=>{this['_recalculate'](_0x34a893,'bottom');}),this['_alignToTargetRect'](_0x34a893);const _0x120818=this['_getItemBefore'](_0x34a893);if(_0x120818)this['_alignAfterItem'](_0x120818,_0x34a893)||this['_alignToTargetRect'](_0x34a893);else this['_alignToTargetRect'](_0x34a893);return this['_updateLastItem'](),this['view']['list']['add'](_0x34a893),_0x34a893;}['_alignForTopChange'](_0x316054){if(!_0x316054['content']['length'])return;const _0x4eb9e9=this['_getItemBefore'](_0x316054);if(!_0x4eb9e9)return;const _0x415904=this['_sidebarItemViewToAnnotation']['get'](_0x4eb9e9),_0x3462a9=this['_activeAnnotation'];_0x3462a9&&_0x3462a9===_0x415904?this['_alignAfterItem'](_0x4eb9e9,_0x316054):this['_alignBeforeItem'](_0x316054,_0x4eb9e9);}['_alignForBottomChange'](_0x3c4cda){if(!_0x3c4cda['content']['length'])return;const _0x50664e=this['_getItemAfter'](_0x3c4cda);if(!_0x50664e)return;const _0x2db261=this['_sidebarItemViewToAnnotation']['get'](_0x50664e),_0x511196=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x259023=this['_activeAnnotation'];_0x259023&&_0x259023===_0x2db261&&_0x511196?(this['_alignBeforeItem'](_0x50664e,_0x3c4cda),this['_alignAfterItem'](_0x3c4cda,_0x50664e)):_0x259023&&_0x259023===_0x2db261?this['_alignBeforeItem'](_0x50664e,_0x3c4cda):this['_alignAfterItem'](_0x3c4cda,_0x50664e);}['_recalculate'](_0xa73cd5,_0xa6ad37){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x219c41,changedProp:_0x477fe0}of this['_recalculateBuffer'])'top'===_0x477fe0?this['_alignForTopChange'](_0x219c41):this['_alignForBottomChange'](_0x219c41);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0xa73cd5,'changedProp':_0xa6ad37});}['getSidebarItemView'](_0xe0cb8a){return this['_annotationToSidebarItemView']['get'](_0xe0cb8a);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4f87ff){const _0x2d85ec=this['getSidebarItemView'](_0x4f87ff);this['stopListening'](_0x2d85ec),this['stopListening'](_0x4f87ff['view']),_0x2d85ec['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4f87ff),this['_sidebarItemViewToAnnotation']['delete'](_0x2d85ec);}['_createSidebarView'](){const _0x4669af=new H(this['context']['locale']);return _0x4669af['render'](),this['on']('change:_lastItem',(_0x47ab08,_0xe435b4,_0x5974b4,_0xbc82a)=>{_0xbc82a&&_0x4669af['unbind']('minHeight'),_0x5974b4?_0x4669af['bind']('minHeight')['to'](_0x5974b4,'bottom'):_0x4669af['minHeight']=null;}),_0x4669af;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x4f649a){const _0x5ec131=this['_sidebarItemViewToAnnotation']['get'](_0x4f649a),_0x482b4a=_0x5ec131&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5ec131)-0x1);return _0x482b4a&&this['getSidebarItemView'](_0x482b4a)||null;}['_getItemAfter'](_0x4208ec){const _0x1ae71a=this['_sidebarItemViewToAnnotation']['get'](_0x4208ec),_0x53bfef=_0x1ae71a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1ae71a)+0x1);return _0x53bfef&&this['getSidebarItemView'](_0x53bfef)||null;}['_alignBeforeItem'](_0x5a7a8d,_0x4bba6f){_0x5a7a8d['updateHeight']();const _0x3e5226=G(_0x4bba6f['bottom']+this['_spaceBetweenItems'],_0x5a7a8d['top']);return!!_0x3e5226&&(this['_setItemTop'](_0x4bba6f,_0x4bba6f['top']-_0x3e5226),!0x0);}['_alignAfterItem'](_0x479d7b,_0x58d93c){_0x479d7b['updateHeight']();const _0x3c896d=G(_0x479d7b['bottom']+this['_spaceBetweenItems'],_0x58d93c['top']);return!!_0x3c896d&&(this['_setItemTop'](_0x58d93c,_0x58d93c['top']+_0x3c896d,!0x1),!0x0);}['_alignToTargetRect'](_0xa8ade3){const _0x4c0b60=this['_sidebarItemViewToAnnotation']['get'](_0xa8ade3);if(!_0x4c0b60||!_0x4c0b60['target']||!_0x4c0b60['targetRect'])return;const _0x25d899=this['_getTargetTop'](_0x4c0b60,_0x4c0b60['targetRect']);this['_setItemTop'](_0xa8ade3,_0x25d899);}['_getTargetTop'](_0x12b679,_0x493241){if(null===_0x493241)return 0x0;if(_0x12b679['target']instanceof _0x13f83e)return _0x493241['top'];{const _0x5dd186=new _0x13f83e(this['view']['element'])['top'];return _0x493241['top']-_0x5dd186;}}['_setItemTop'](_0x1d60d0,_0x3d3250,_0x124a84=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x124a84&&(_0x3d3250=Math['max'](_0x3d3250,this['_getMaxAvailableTop'](_0x1d60d0))),_0x1d60d0['top']=_0x3d3250;}['_getMaxAvailableTop'](_0x55e0cb){let _0xf82af6=this['_getItemBefore'](_0x55e0cb),_0x47606b=0x0;for(;_0xf82af6;)_0xf82af6['updateHeight'](),_0x47606b+=this['_spaceBetweenItems']+_0xf82af6['height'],_0xf82af6=this['_getItemBefore'](_0xf82af6);return _0x47606b;}}function G(_0x3d94e0,_0x121c56){return Math['max'](_0x3d94e0-_0x121c56,0x0);}function g(_0x2a585a){return null!==_0x2a585a&&'object'==typeof _0x2a585a&&0x1===_0x2a585a['nodeType'];}class e extends _0x565db7{['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(_0x4e7754){super(_0x4e7754),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x434287(),this['_refreshPositioningDebounced']=_0x3fee7d(()=>{_0x4e7754['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x43a8ae=this['context']['plugins']['get'](j),_0x214416=this['context']['plugins']['get'](z);_0x43a8ae['register']('wideSidebar',this),_0x214416['container']&&_0x43a8ae['switchTo']('wideSidebar');}['setActiveAnnotation'](_0xc50988){if(_0xc50988===this['activeAnnotation'])return;const _0x42637e=this['context']['plugins']['get'](z);_0x42637e['_activeAnnotation']=_0xc50988;const _0x21f8ef=this['activeAnnotation'];_0x42637e['refresh']({'blurredAnnotation':_0x21f8ef,'activatedAnnotation':_0xc50988}),this['activeAnnotation']=_0xc50988;}['attach'](_0x27dee6){this['annotations']=_0x27dee6;const _0xcda323=this['context']['plugins']['get'](z);if(_0xcda323['_annotations']=_0x27dee6,this['isAttached'])throw new _0x2b0648('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xcda323,'set:container',()=>{this['detach'](),this['listenTo'](_0xcda323,'change:container',_0x29d88a=>{_0x29d88a['off'](),this['attach'](_0x27dee6);});}),_0xcda323['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x413e85=_0x3c0e84=>{_0x3c0e84['updateTargetRect'](),_0xcda323['addAnnotation'](_0x3c0e84);};for(const _0x50e229 of _0x27dee6)_0x413e85(_0x50e229);this['listenTo'](_0x27dee6,'add',(_0x2c9f0d,_0x2af23b)=>{_0x413e85(_0x2af23b);}),this['listenTo'](_0x27dee6,'remove',(_0x1574b0,_0x2a7033,_0x388cf7)=>{_0xcda323['rearrange']({'removedAnnotation':_0x2a7033,'previousAnnotation':_0x27dee6['get'](_0x388cf7-0x1),'nextAnnotation':_0x27dee6['get'](_0x388cf7+0x1)}),_0x2a7033===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x27dee6,'focus',(_0xb43773,_0x5e71f2)=>{this['setActiveAnnotation'](_0x5e71f2);}),this['listenTo'](_0x27dee6,'blur',()=>{this['setActiveAnnotation'](null);});const _0xa84ef5=this['context']instanceof _0x2180b4?this['context']['editors']:new _0x434287([this['context']]);for(const _0x49c172 of _0xa84ef5)this['_integrateWithEditorAnnotations'](_0x49c172);this['listenTo'](_0xa84ef5,'add',(_0x25027f,_0x52c8e2)=>{this['listenTo'](_0x52c8e2,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x52c8e2);});}),this['listenTo'](_0xa84ef5,'remove',(_0x579e9a,_0x5a1495)=>{_0x5a1495['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5a1495['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2b0648('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x195039=this['context']['plugins']['get'](z);_0x195039['_detachFromContainer'](this['annotations']),this['stopListening'](_0x195039),this['stopListening'](this['annotations']),this['context']instanceof _0x2180b4&&this['stopListening'](this['context']['editors']);for(const _0x3c74ac of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3c74ac);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x534c5d){if(!_0x534c5d['plugins']['has']('EditorAnnotations'))return;const _0x16a36e=_0x534c5d['plugins']['get']('EditorAnnotations'),_0x4ee832=()=>{const _0x49fe12=_0x16a36e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x49fe12[0x0]||null);};this['listenTo'](_0x16a36e,'refresh',_0x4ee832),this['listenTo'](_0x16a36e,'blur',(_0x214829,{isAnnotationTracked:_0x481733})=>{this['activeAnnotation']&&_0x481733(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x16a36e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x5debfe=>{_0x16a36e['hasDomSelection']()&&(_0x4ee832(),_0x5debfe['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x16a36e);}['_destroyEditorAnnotationsIntegration'](_0x1f0cdf){this['stopListening'](_0x1f0cdf),this['_editorAnnotations']['remove'](_0x1f0cdf);}}class C extends _0x5381c7{['counterView'];constructor(_0x35b381){super(_0x35b381);const _0x38c410=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x2d348c,_0x210a36)=>_0x2d348c?'...':_0x210a36['toString']()),this['set']('annotationType',''),this['icon']=_0x33239b,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x38c410['to']('annotationType',_0x7a7740=>'ck-annotation-counter__badge--'+_0x7a7740),_0x38c410['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x38c410['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x565db7{['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(_0x37af76){super(_0x37af76),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x29767a())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x434287(),this['_refreshPositioningDebounced']=_0x3fee7d(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0xc4bcbf(this['context']['locale']),this['balloonPanelView']=new _0x124ee5(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x2ace3d){this['annotations']=_0x2ace3d;const _0x47dec2=this['context']['plugins']['get'](z),_0x57c650=this['balloonPanelView'];if(_0x47dec2['_annotations']=_0x2ace3d,this['isAttached'])throw new _0x2b0648('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x47dec2,'set:container',()=>{this['detach'](),this['listenTo'](_0x47dec2,'change:container',_0x5b5477=>{_0x5b5477['off'](),this['attach'](_0x2ace3d);});}),_0x47dec2['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0xd5dd40=_0x508f7c=>{const _0x58ad6a=new C(this['context']['locale']);_0x47dec2['addAnnotation'](_0x508f7c,_0x58ad6a),this['_annotationToNarrowView']['set'](_0x508f7c,_0x58ad6a),_0x58ad6a['bind']('isDirty','annotationType','number')['to'](_0x508f7c['view'],'isDirty','type','length'),_0x58ad6a['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x57c650['content']['first']!==_0x508f7c['view']?(this['_showBalloon'](_0x508f7c),_0x508f7c['view']['element']['focus'](),this['setActiveAnnotation'](_0x508f7c)):this['setActiveAnnotation'](null);});};for(const _0x3a8bd2 of _0x2ace3d)_0xd5dd40(_0x3a8bd2);this['listenTo'](_0x2ace3d,'add',(_0x3f14f5,_0x3d1aaf)=>{_0xd5dd40(_0x3d1aaf);}),this['listenTo'](_0x2ace3d,'remove',(_0xc8f62f,_0x572e9f,_0x146d90)=>{this['_annotationToNarrowView']['get'](_0x572e9f)['destroy'](),this['_annotationToNarrowView']['delete'](_0x572e9f),_0x47dec2['rearrange']({'removedAnnotation':_0x572e9f,'previousAnnotation':_0x2ace3d['get'](_0x146d90-0x1),'nextAnnotation':_0x2ace3d['get'](_0x146d90+0x1)}),_0x572e9f===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x2ace3d,'focus',(_0x2b47d5,_0x2b4ec9)=>{this['setActiveAnnotation'](_0x2b4ec9);}),this['listenTo'](_0x2ace3d,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x4732df,_0x2e1814)=>{_0x2e1814['keyCode']===_0x28e2c2['esc']&&_0x57c650['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x57c650['content']['first']),this['_hideBalloon'](),_0x2e1814['stopPropagation'](),_0x2e1814['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x485356,_0x17286e)=>{const _0x1de0b2=_0x17286e['target'];_0x57c650['isVisible']&&_0x57c650['element']['contains'](_0x1de0b2)||_0x47dec2['view']['element']['contains'](_0x1de0b2)||_0x485356['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x42f32d=>_0x42f32d['contains'](_0x1de0b2))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x284673=this['context']instanceof _0x2180b4?this['context']['editors']:new _0x434287([this['context']]);for(const _0x2009fc of _0x284673)this['_integrateWithEditorAnnotations'](_0x2009fc);this['listenTo'](_0x284673,'add',(_0x4c1c1c,_0x205a23)=>{this['listenTo'](_0x205a23,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x205a23);});}),this['listenTo'](_0x284673,'remove',(_0x536a16,_0x85bb27)=>{_0x85bb27['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x85bb27['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x4d2587){if(_0x4d2587===this['activeAnnotation'])return;const _0xbe76b5=this['context']['plugins']['get'](z);if(_0xbe76b5['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4d2587,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4d2587)_0xbe76b5['getSidebarItemView'](_0x4d2587)?this['_showBalloon'](_0x4d2587):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x4d2587;}['detach'](){if(!this['isAttached'])throw new _0x2b0648('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3ba60d=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5eff1d=>_0x5eff1d['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3ba60d['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2180b4&&this['stopListening'](this['context']['editors']);for(const _0x72c516 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x72c516);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'](_0x1c2998){if(!_0x1c2998['plugins']['has']('EditorAnnotations'))return;const _0xe5e953=_0x1c2998['plugins']['get']('EditorAnnotations'),_0x13e7ec=this['context']['plugins']['get'](z),_0x39ceaf=this['annotations'],_0x43062e=this['balloonPanelView'],_0x14a931=()=>{const _0x39075b=_0xe5e953['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x39075b),this['setActiveAnnotation'](_0x39075b[0x0]||null);};this['listenTo'](_0xe5e953,'refresh',_0x14a931),this['listenTo'](_0xe5e953,'blur',(_0x4a5263,{isAnnotationTracked:_0x3398c0})=>{this['activeAnnotation']&&_0x3398c0(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0xe5e953,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x39ceaf,'blur',_0x5b1362=>{_0xe5e953['hasDomSelection']()&&_0x5b1362['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x641962,_0x2b2659)=>{const _0xc44fd0=_0x2b2659['target'];_0x43062e['isVisible']&&_0x43062e['element']['contains'](_0xc44fd0)||_0x13e7ec['view']['element']['contains'](_0xc44fd0)||this['activeAnnotation']&&_0xe5e953['hasDomSelection']()&&(_0x14a931(),_0x641962['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0xe5e953);}['_destroyEditorAnnotationsIntegration'](_0x2fd8aa){_0x2fd8aa&&(this['stopListening'](_0x2fd8aa),this['_editorAnnotations']['remove'](_0x2fd8aa));}['_setSelectedAnnotations'](_0x5a46ff){for(const _0x3b27f8 of this['_selectedAnnotations'])_0x5a46ff['includes'](_0x3b27f8)||this['_manuallyClosedAnnotationViews']['delete'](_0x3b27f8['view']);this['_selectedAnnotations']=_0x5a46ff;}['_refreshPositioning'](){const _0x36666a=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x36666a['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x23b9fb){if(this['_manuallyClosedAnnotationViews']['has'](_0x23b9fb['view']))return;const _0x16b500=this['balloonPanelView']['content']['first'];_0x16b500!==_0x23b9fb['view']?(_0x16b500&&this['_detachListeners'](_0x16b500),this['_attachListeners'](_0x23b9fb['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x23b9fb['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x55174b=this['balloonPanelView']['content']['first'],_0x2b2f71=_0x55174b&&this['annotations']['getByView'](_0x55174b);if(!_0x2b2f71||!this['_annotationToNarrowView']['has'](_0x2b2f71))return;const _0xebb37a=this['_annotationToNarrowView']['get'](_0x2b2f71)['element'],_0x4b2342=(function(){const _0x123fc6=_0x124ee5['defaultPositions'];return[_0x123fc6['southArrowNorthEast'],_0x123fc6['northArrowSouthEast'],_0x123fc6['southArrowNorth'],_0x123fc6['northArrowSouth'],_0x123fc6['southArrowNorthWest'],_0x123fc6['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xebb37a,'positions':_0x4b2342});}['_hideBalloon'](){const _0x43e5bd=this['balloonPanelView'],_0x415e63=_0x43e5bd['content']['first'];_0x415e63&&(this['_detachListeners'](_0x415e63),_0x43e5bd['unpin'](),_0x43e5bd['content']['clear']());}['_attachListeners'](_0x35e560){this['listenTo'](_0x35e560,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x35e560,'Esc',(_0x11177a,_0x1cae1d)=>{this['_manuallyClosedAnnotationViews']['add'](_0x35e560),this['_hideBalloon'](),_0x1cae1d();});}['_detachListeners'](_0x78f5d3){this['stopListening'](_0x78f5d3);}}class c extends _0x48f069{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x248293,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ddfc9){super(_0x3ddfc9),_0x3ddfc9['editing']['view']['addObserver'](_0x450994),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x3ddfc9['plugins']['get'](_0x248293),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x53c99a=this['editor']['plugins']['get'](j);_0x53c99a['context']===this['editor']&&(_0x53c99a['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x4ac136,_0x5e8de1)=>{const _0x212f4c=this['_balloon'];if(this['isAttached']&&_0x212f4c['visibleView']){const _0xe688e9=this['annotations']['getByView'](_0x212f4c['visibleView']);_0xe688e9&&this['_closeAnnotation'](_0xe688e9),_0x5e8de1();}}));}['afterInit'](){const _0x217dc4=this['editor']['plugins']['get'](j);_0x217dc4['context']===this['editor']&&(_0x217dc4['hasActive']()||_0x217dc4['switchTo']('inline'));}['setActiveAnnotation'](_0x3e152e){_0x3e152e!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x3e152e&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x3e152e)&&this['_addAnnotationToBalloon'](_0x3e152e,!0x0),_0x3e152e['isActive']=!0x0),_0x3e152e||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3e152e);}['attach'](_0x5710e5){this['annotations']=_0x5710e5;const _0x190a62=this['editor']['plugins']['get'](j),_0x514d0a=this['_balloon'];if(this['isAttached'])throw new _0x2b0648('inlineannotations-attach-already-attached',this);if(_0x190a62['context']!==this['editor'])throw new _0x2b0648('inlineannotations-not-allowed-with-context',this);const _0x554ca7=this['editor']['plugins']['get'](b);this['listenTo'](_0x554ca7,'refresh',()=>{const _0x323c89=_0x554ca7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x708f9f,_0x3a148c;!this['_forceRefresh']&&(_0x708f9f=_0x323c89,_0x3a148c=this['_selectedAnnotations'],_0x708f9f['length']===_0x3a148c['length']&&_0x708f9f['every'](_0x4111fe=>_0x3a148c['includes'](_0x4111fe)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x323c89),this['setActiveAnnotation'](_0x323c89[0x0]||null));}),this['listenTo'](_0x554ca7,'blur',(_0xa42297,{isAnnotationTracked:_0x2d3f6e})=>{this['activeAnnotation']&&_0x2d3f6e(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x17e8e3,_0x165963,_0x4eb1db)=>{_0x4eb1db||this['setActiveAnnotation'](null);}),this['listenTo'](_0x5710e5,'remove',(_0x28191f,_0x480ffc)=>{this['_removeAnnotationFromBalloon'](_0x480ffc),_0x480ffc===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x514d0a,'change:visibleView',(_0x382397,_0x1f0978,_0x2d47ad,_0x2da16c)=>{_0x2da16c&&this['stopListening'](_0x2da16c);const _0x10cab9=_0x5710e5['getByView'](_0x2d47ad);_0x2d47ad&&_0x10cab9&&(this['listenTo'](_0x2d47ad,'change:height',()=>{_0x514d0a['updatePosition']();}),this['listenTo'](_0x2d47ad,'Esc',()=>{this['_closeAnnotation'](_0x10cab9),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x10cab9&&this['setActiveAnnotation'](_0x10cab9));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x514d0a['visibleView']&&(_0x5710e5['getByView'](_0x514d0a['visibleView'])&&_0x514d0a['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 _0x2b0648('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x7ed660 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x7ed660);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x482192){for(const _0x2ffd56 of this['_selectedAnnotations'])_0x482192['includes'](_0x2ffd56)||this['_manuallyClosed']['delete'](_0x2ffd56);for(const _0x514e8d of this['annotations'])_0x482192['includes'](_0x514e8d)||this['_removeAnnotationFromBalloon'](_0x514e8d);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x3908bd of _0x482192)this['_addAnnotationToBalloon'](_0x3908bd);}this['_selectedAnnotations']=_0x482192;}['_addAnnotationToBalloon'](_0x422999,_0x43f411=!0x1){this['_manuallyClosed']['has'](_0x422999)||(this['_addedAnnotations']['has'](_0x422999)||this['_balloon']['hasView'](_0x422999['view'])||(this['_addedAnnotations']['add'](_0x422999),this['_balloon']['add']({'stackId':_0x422999['view']['id'],'view':_0x422999['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x422999)}})),_0x43f411&&this['_balloon']['showStack'](_0x422999['view']['id']));}['_getBalloonTargetForAnnotation'](_0x5ae88e){const _0x22f0af=_0x5ae88e['target'],_0x4d4701=this['editor']['editing']['view'],_0x2ce763=_0x4d4701['document']['selection']['getFirstRange'](),_0x45cce0=_0x4d4701['domConverter']['viewRangeToDom'](_0x2ce763);if(_0x45cce0['collapse'](!0x0),_0x22f0af){if(_0x22f0af instanceof _0x13f83e)return _0x22f0af;let _0xcae256=[];for(const _0x2c0d45 of _0x22f0af)_0xcae256['push'](...F(_0x2c0d45['getClientRects']()));_0xcae256=function(_0x26273d){const _0x3499cd=[];let _0x1fee06=_0x26273d[0x0];for(let _0x35f2ed=0x1;_0x35f2ed<_0x26273d['length'];_0x35f2ed++)P(_0x1fee06,_0x26273d[_0x35f2ed])?_0x1fee06['width']+=_0x26273d[_0x35f2ed]['width']:(_0x3499cd['push'](_0x1fee06),_0x1fee06=_0x26273d[_0x35f2ed]);return _0x3499cd['push'](_0x1fee06),_0x3499cd;}(_0xcae256);const _0x2e1d3e=_0x45cce0['getBoundingClientRect']();return _0xcae256['find'](_0x2104a2=>_0x2104a2['top']<=_0x2e1d3e['top']&&_0x2104a2['bottom']>=_0x2e1d3e['bottom']&&_0x2104a2['left']<=_0x2e1d3e['left']&&_0x2104a2['right']>=_0x2e1d3e['right'])||_0xcae256[0x0];}return _0x5ae88e['targetRect']||_0x45cce0;}['_removeAnnotationFromBalloon'](_0x3b5c2d){this['_addedAnnotations']['has'](_0x3b5c2d)&&this['_balloon']['hasView'](_0x3b5c2d['view'])&&(this['_addedAnnotations']['delete'](_0x3b5c2d),this['_balloon']['remove'](_0x3b5c2d['view']));}['_closeAnnotation'](_0x3f2f3c){this['_manuallyClosed']['add'](_0x3f2f3c),this['_removeAnnotationFromBalloon'](_0x3f2f3c);}}function F(_0x2650b8){return Array['from'](_0x2650b8)['map'](DOMRect['fromRect']);}function P(_0x4f9624,_0x3799fc){return _0x4f9624['top']===_0x3799fc['top']&&_0x4f9624['bottom']===_0x3799fc['bottom']&&_0x4f9624['right']===_0x3799fc['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x5f031d,_0x2b0eb9){super(_0x5f031d),this['set']('isEmpty',!_0x2b0eb9['length']),this['focusTracker']=new _0x40a4de(),this['_annotationViews']=_0x2b0eb9,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x4d1493({'focusables':_0x2b0eb9,'focusTracker':this['focusTracker']}),this['listenTo'](_0x2b0eb9,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x2b0eb9,'remove',(_0x54e0e5,_0x25dda1)=>{_0x25dda1['isActive']&&this['focus'](),_0x2b0eb9['length']||(this['isEmpty']=!0x0);});const _0x552e0e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x5f031d,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x2b0eb9},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x552e0e['if']('isEmpty','ck-hidden',_0x1777ab=>!_0x1777ab)]},'children':[{'text':N(_0x5f031d,'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 _0x4e4554 of this['_annotationViews'])this['focusTracker']['add'](_0x4e4554['element']);this['_annotationViews']['on']('change',(_0x337546,{added:_0x1884d0,removed:_0x287858})=>{for(const _0x491b4c of _0x1884d0)this['focusTracker']['add'](_0x491b4c['element']);for(const _0x5bf7c4 of _0x287858)this['focusTracker']['remove'](_0x5bf7c4['element']);});}}class p extends _0x565db7{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x30b8b0){super(_0x30b8b0),this['archivedThreads']=new _0x434287();}['init'](){const _0x2249f0=this['context'],_0x3de559=_0x2249f0['plugins']['get'](o),_0x303108=_0x2249f0['plugins']['get'](y);this['listenTo'](_0x3de559,'addCommentThread',(_0xc57535,{threadId:_0x211d40})=>{const _0x5c5239=_0x3de559['getCommentThread'](_0x211d40);_0x5c5239['archivedAt']&&this['archivedThreads']['add'](_0x5c5239,this['_calculatePosition'](_0x5c5239['archivedAt'])),this['listenTo'](_0x5c5239,'change:archivedAt',(_0x5a6b4a,_0x55316a,_0x588d7c)=>{_0x588d7c?this['archivedThreads']['has'](_0x5c5239)||this['archivedThreads']['add'](_0x5c5239,this['_calculatePosition'](_0x5c5239['archivedAt'])):this['archivedThreads']['has'](_0x5c5239)&&this['archivedThreads']['remove'](_0x5c5239);});}),this['listenTo'](_0x3de559,'removeCommentThread',(_0xbc68eb,{threadId:_0x793bd4})=>{const _0x12d45e=_0x3de559['getCommentThread'](_0x793bd4);this['stopListening'](_0x12d45e),this['archivedThreads']['has'](_0x12d45e)&&this['archivedThreads']['remove'](_0x12d45e);},{'priority':'highest'}),this['listenTo'](_0x303108['collection'],'focus',(_0x568541,_0x1b903d)=>{_0x1b903d['isVisible']||(_0x1b903d['isActive']=!0x0,_0x303108['activate'](_0x1b903d));});}['_calculatePosition'](_0x56b0ea){const _0x354349=[...this['archivedThreads']]['findIndex'](_0x2aa3ff=>_0x2aa3ff['archivedAt']<_0x56b0ea);return _0x354349>-0x1?_0x354349:this['archivedThreads']['length'];}}class a extends _0x48f069{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0xda48dc];}constructor(_0x196fc9){super(_0x196fc9),this['annotationViews']=new _0x263ec4(),this['_pendingThreads']=[];}['init'](){const _0x4e0740=this['editor'],_0x524bcb=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x4e0740['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x5381c7,!0x0)),_0x4e0740['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x23e30b=this['_createCommentsArchiveButton'](_0x39f9bd);return _0x23e30b['set']({'role':'menuitemcheckbox'}),_0x23e30b;});const _0x48f12e=_0x4e0740['plugins']['get'](p),_0xb6adf1=_0x4e0740['plugins']['get']('Annotations'),_0x10dd72=_0x4e0740['plugins']['get']('CommentsRepository');_0x48f12e['archivedThreads']['forEach'](_0x295249=>{this['_handleNewThread'](_0x295249);}),this['listenTo'](_0x48f12e['archivedThreads'],'add',(_0x49720e,_0xa88a91)=>{this['_handleNewThread'](_0xa88a91);}),this['listenTo'](_0xb6adf1['collection'],'add',(_0x33bcf8,_0x7fb467)=>{const _0x376b10=this['_pendingThreads']['find'](_0x2615d6=>{const _0x21b645=_0x10dd72['_threadToController']['get'](_0x2615d6);return _0x21b645&&_0x7fb467['innerView']===_0x21b645['view'];});if(_0x376b10){const _0xbb2f3=this['_calculatePosition'](_0x376b10['archivedAt']);this['annotationViews']['add'](_0x7fb467['view'],_0xbb2f3),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x376b10),0x1);}}),this['listenTo'](_0x48f12e['archivedThreads'],'remove',(_0x5d7144,_0x1f2bee)=>{const _0x2709b6=_0x4e0740['config']['get']('collaboration.channelId');if(!_0x2709b6||_0x1f2bee['channelId']===_0x2709b6){if(this['_pendingThreads']['includes'](_0x1f2bee))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1f2bee),0x1);else{const _0x2e1a0f=_0x10dd72['_threadToController']['get'](_0x1f2bee),_0x12d74d=_0xb6adf1['getByInnerView'](_0x2e1a0f['view']);this['annotationViews']['remove'](_0x12d74d['view']),this['stopListening'](_0x12d74d['focusableElements']);}}}),this['listenTo'](_0xb6adf1['collection'],'add',(_0x50d975,_0x3e64ef)=>{this['listenTo'](_0x3e64ef,'escape',_0x524bcb);}),this['listenTo'](_0xb6adf1['collection'],'remove',(_0x145834,_0x4c4845)=>{this['stopListening'](_0x4c4845,'escape',_0x524bcb);});}['_handleNewThread'](_0x59d42b){const _0x4eb91f=this['editor']['plugins']['get']('CommentsRepository'),_0x4899fa=this['editor']['plugins']['get']('Annotations'),_0x11c6c6=this['editor']['config']['get']('collaboration.channelId');if(!_0x11c6c6||_0x59d42b['channelId']===_0x11c6c6){const _0x473dac=_0x4eb91f['_threadToController']['get'](_0x59d42b);if(!_0x473dac)return void this['_pendingThreads']['push'](_0x59d42b);const _0x381261=this['_calculatePosition'](_0x59d42b['archivedAt']),_0x33ae80=_0x4899fa['getByInnerView'](_0x473dac['view']);_0x33ae80['isVisible']&&_0x4899fa['_visibleAnnotations']['remove'](_0x33ae80),this['annotationViews']['add'](_0x33ae80['view'],_0x381261);}}['_calculatePosition'](_0x4ca7b){const _0x3bfd25=this['editor']['config']['get']('collaboration.channelId'),_0x3a369e=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x231608=>_0x231608['channelId']===_0x3bfd25)['findIndex'](_0x458b3d=>_0x458b3d['archivedAt']<_0x4ca7b);return _0x3a369e<0x0||_0x3a369e>this['annotationViews']['length']?this['annotationViews']['length']:_0x3a369e-0x1;}['_toggleDialog'](){const _0x4b6b4a=this['editor'],_0x442f9b=_0x4b6b4a['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x4b6b4a['locale'],this['annotationViews'])),'commentsArchive'===_0x442f9b['id']?_0x442f9b['hide']():_0x442f9b['show']({'id':'commentsArchive','title':N(_0x4b6b4a['locale'],'COMMENTS_ARCHIVE'),'icon':_0xdc9f4a,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0xfa45d9['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x51ee01,_0x474e5c=!0x1){const _0x495bfe=this['editor']['locale'],_0x492674=this['editor']['plugins']['get']('Dialog'),_0x59356c=new _0x51ee01(_0x495bfe);return _0x59356c['bind']('isEnabled')['to'](this,'isEnabled'),_0x59356c['bind']('isOn')['to'](_0x492674,'id',_0x463d0f=>'commentsArchive'===_0x463d0f),_0x59356c['set']({'label':N(_0x495bfe,'COMMENTS_ARCHIVE'),'icon':_0xdc9f4a,'isToggleable':!0x0}),_0x474e5c&&(_0x59356c['tooltip']=!0x0),this['listenTo'](_0x59356c,'execute',()=>this['_toggleDialog']()),_0x59356c;}['_hideDialogOnAnnotationEscape']=_0x24cf58=>{const _0x1c85ac=_0x24cf58['source'];if(!this['annotationViews']['has'](_0x1c85ac['view']))return;const _0x102b95=this['editor']['plugins']['get']('Dialog');_0x102b95['isOpen']&&'commentsArchive'===_0x102b95['id']&&(_0x102b95['hide'](),_0x24cf58['stop']());};}class gi extends _0x48f069{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};