@ckeditor/ckeditor5-comments 47.5.0-alpha.8 → 47.6.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +11 -11
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +19 -19
  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 _0x1db22d,ContextPlugin as _0x1c3a7a,PendingActions as lt,Command as _0x2473d2,Plugin as _0x4e6af8,Context as _0x4d6d98}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1201c1,uid as _0x4552d2,KeystrokeHandler as jt,FocusTracker as _0x119ecb,diff as _0x560f87,Collection as _0x7eb5c5,Rect as _0x436169,CKEditorError as _0x13348f,first as _0x186b13,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x3935b2,keyCodes as _0x266af6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x432c69,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x10b016,trimHtml as ts,LateFocusDropdownButtonView as _0x281113,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x39c788}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x5d3d29}from'es-toolkit/compat';import{IconUndo as _0x5cccb5,IconCheck as _0x3ddff7,IconPencil as _0x57d6a5,IconRemoveComment as _0x52bd7f,IconThreeVerticalDots as _0x5a552d,IconAddComment as _0x61886d,IconCommentsArchive as _0xb693b5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x206411,ButtonView as _0x39d67e,ViewCollection as _0x42bc84,createDropdown as _0x25a7f2,ListView as _0xfa59b0,focusChildOnDropdownOpen as _0x348b07,ListItemView as _0x3923f4,MenuBarMenuListItemButtonView as _0x4dec93,BodyCollection as _0x4ce13c,BalloonPanelView as _0x1669c2,ContextualBalloon as _0x479a8f,Dialog as _0x578bd5,DialogViewPosition as _0xa729ff}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x2585d2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x337bf3}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x660b85}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x1201c1(){['model'];['view'];constructor(_0x2450c1,_0x10cbe6){super(),this['model']=_0x2450c1,this['model']['_isAttached']=!0x0,this['view']=_0x10cbe6,this['listenTo'](_0x10cbe6,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x10cbe6,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x10cbe6,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x10cbe6,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x10cbe6,'addComment',(_0x1767b2,_0x5989eb)=>this['addComment'](_0x5989eb)),this['listenTo'](_0x10cbe6,'updateComment',(_0x321a80,_0x4d0a52,_0x2bcb7f)=>this['updateComment'](_0x4d0a52,_0x2bcb7f)),this['listenTo'](_0x10cbe6,'removeComment',(_0x4a62dd,_0x25e362)=>this['removeComment'](_0x25e362));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x1d7c5a){this['model']['addComment']({'content':_0x1d7c5a,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x185d7d,_0x1416dc){this['model']['getComment'](_0x185d7d)['update']({'content':_0x1416dc});}['removeComment'](_0x26fa06){this['model']['getComment'](_0x26fa06)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x5105e0,_0x570465,_0x530dd8){const t=_0x5105e0['t'];switch(_0x570465){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'},_0x530dd8);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'},_0x530dd8);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'},_0x530dd8);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'},_0x530dd8);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x530dd8);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'},_0x530dd8);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'},_0x530dd8);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'},_0x530dd8);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x4ace00,_0x3556b4){super(_0x4ace00);const _0x1afe8f=_0x4552d2();this['main']=this['createCollection'](),this['editable']=new Vt(_0x4ace00,_0x3556b4,void 0x0,{'label':()=>N(_0x4ace00,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x4ace00['uiLanguageDirection'],'lang':_0x4ace00['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1afe8f},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x23d21c){super(_0x23d21c),this['view']=new Rt(_0x23d21c['locale'],_0x23d21c['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x98b99d=this['editor']['editing']['view'],_0x43b799=this['view']['editable'],_0x4f47f1=_0x98b99d['document']['getRoot']();_0x43b799['name']=_0x4f47f1['rootName'],this['view']['render']();const _0x5969cd=_0x43b799['element'];this['setEditableElement'](_0x43b799['name'],_0x5969cd),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x98b99d['attachDomRoot'](_0x5969cd),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x1201c1(_0x1db22d){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x574f88={}){function _0x124c9d(_0x200c03){return _0x200c03['map'](_0x157b9f=>String['fromCharCode'](_0x157b9f))['join']('');}(_0x574f88=Object['assign']({},_0x574f88))['plugins']||(_0x574f88['plugins']=hs['defaultPlugins']),super(_0x574f88),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x124c9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x124c9d([0x76,0x69,0x65,0x77])][_0x124c9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x124c9d([0x61,0x75,0x74,0x6f]),this[_0x124c9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x124c9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x124c9d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x124c9d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x124c9d([0x6f,0x6b])});}['create'](){const _0x56cfb9=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x56cfb9))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x27f686=>{const _0x7db3be=this['model']['document']['getRoot'](),_0x5b7a9a=_0x7db3be&&_0x7db3be['getChild'](_0x7db3be['childCount']-0x1);_0x27f686['setSelection'](_0x5b7a9a,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x47a75e=this['editing']['view'],_0x5a3235=_0x47a75e['document']['getRoot'](),_0x3fc54a=_0x5a3235['getChild'](0x0);_0x5a3235['childCount']>0x1||!_0x3fc54a||'p'!=_0x3fc54a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x47a75e,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3fc54a['placeholder']=this['placeholder']),Ft({'view':_0x47a75e,'element':_0x3fc54a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3fc54a);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x47638f,_0x40f7ed={}){super(_0x47638f),this['editor']=null,this['_editorConfig']=_0x40f7ed,this['set']('value',_0x40f7ed['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x47638f,'Reply...')),this['set']('submitLabel',N(_0x47638f,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x119ecb(),this['focusCycler']=new _0x206411({'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',(_0x15c51a,_0x5d6546)=>{this['cancelButtonView']['fire']('execute'),_0x5d6546();}),this['keystrokes']['set']('Ctrl+Enter',(_0x27b957,_0x52d520)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x52d520());}),this['on']('submit',(_0x313651,_0x444d7b)=>{_0x444d7b['length']>0xfde8?(alert(N(_0x47638f,'TOO_LONG_COMMENT_ALERT',[_0x444d7b['length'],0xfde8])),_0x313651['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x32b7f6=this['editor'];this['element']['insertBefore'](_0x32b7f6['ui']['element'],this['element']['firstChild']),_0x32b7f6['model']['document']['on']('change',()=>this['value']=_0x32b7f6['getData']()),_0x32b7f6['bind']('placeholder')['to'](this),this['focusables']['add'](_0x32b7f6['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xe112ca){-0x1===_0xe112ca?(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:_0xc680e2}=this,_0x4c700e=new _0x39d67e(_0xc680e2);return _0x4c700e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4c700e['withText']=!0x0,_0x4c700e['bind']('label')['to'](this,'submitLabel'),_0x4c700e['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4c700e['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x3b9655,_0x395e0c)=>!_0x395e0c&&!!_0x3b9655['trim']()),_0x4c700e;}['_createCancelButton'](){const {locale:_0x48b03a}=this,_0x2f9fac=new _0x39d67e(_0x48b03a);return _0x2f9fac['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2f9fac['label']=N(_0x48b03a,'Cancel'),_0x2f9fac['withText']=!0x0,_0x2f9fac['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2f9fac;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x392a88=>{this['focusTracker']['add'](_0x392a88['element']);}),this['focusables']['on']('change',(_0x38b99a,_0x316fac)=>{for(const _0x183be9 of Array['from'](_0x316fac['added'])['reverse']())this['focusTracker']['add'](_0x183be9['element']);});}}class ie extends kt{constructor(_0x1049bf,_0x4ecb12,_0x263436){super(_0x1049bf),this['commentInputView']=new es(_0x1049bf,_0x263436),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x44b57b,_0x855f26)=>_0x44b57b||!!_0x855f26),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 _0x432c69(_0x1049bf,_0x4ecb12),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'](_0x3e7874){this['commentInputView']['focus'](_0x3e7874);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x10e055,_0x110de5)=>{const {submitButtonView:_0x3f1bdf,cancelButtonView:_0xe7f068,editor:_0x3cc42c}=this['commentInputView'];[_0x3f1bdf['element'],_0xe7f068['element'],_0x3cc42c?_0x3cc42c['editing']['view']['getDomRoot']():null]['filter'](_0x1933e3=>_0x1933e3)['some'](_0x6b4b36=>_0x6b4b36['contains'](_0x110de5['target']))||(this['focus'](),_0x110de5['preventDefault']());});}}class rs extends kt{constructor(_0x4f30d5){super(_0x4f30d5);const _0x5e6a38=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x5e6a38['to']('count',_0x2c9b36=>N(_0x4f30d5,'NUMBER_OF_COMMENTS',_0x2c9b36))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x1981ae,_0x1c7c07,_0x4e45f8){super(_0x1981ae);const _0x278d77=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1c7c07['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1c7c07,this['_config']=_0x4e45f8,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x119ecb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x206411({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x17c242=>this['commentViews']['map'](_0x41119e=>_0x41119e['element'])['includes'](_0x17c242['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x1981ae),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x563087=>_0x563087-this['_config']['maxCommentsWhenCollapsed']);for(const _0x185cf7 of _0x1c7c07['comments'])this['_handleNewCommentModel'](_0x185cf7);this['_handleInfoComment'](),this['listenTo'](_0x1c7c07['comments'],'add',(_0x862347,_0x3f7af0)=>{const _0x1ea98c=this['_calculatePosition'](_0x3f7af0);this['length']++,this['_handleNewCommentModel'](_0x3f7af0,_0x1ea98c),this['refreshVisibleViews']();}),this['listenTo'](_0x1c7c07['comments'],'remove',(_0x3c0f3a,_0x4ee964)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4ee964),this['refreshVisibleViews']();}),this['listenTo'](_0x1c7c07,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1c7c07,'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',_0x278d77['if']('length','ck-hidden',_0x302a7b=>!_0x302a7b)],'aria-label':N(_0x1981ae,'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'](_0xacbd0a){-0x1===_0xacbd0a?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x585f4e of this['commentViews'])_0x585f4e['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0xf6a5c,_0x543de3){const _0x2707a0=new this['_config']['CommentView'](this['locale'],_0xf6a5c,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2707a0['viewUid']=_0xf6a5c['id'],_0x2707a0['delegate']('removeComment')['to'](this),_0x2707a0['delegate']('updateComment')['to'](this),_0x2707a0['delegate']('resolveCommentThread')['to'](this),_0x2707a0['delegate']('editorReady')['to'](this),_0x2707a0['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2707a0,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2707a0,_0x543de3);}['_calculatePosition'](_0x26f07b){const _0x53fbe7=this['_model']['_findOptimalIndex'](_0x26f07b);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x26f07b['authoredAt']?_0x53fbe7-0x1:_0x53fbe7:_0x53fbe7-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x28e9e8={'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'],_0x28e9e8,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x28e9e8));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3e8edb){const _0x326982=this['commentViews']['remove'](_0x3e8edb['id']);this['stopListening'](_0x326982),_0x326982['isEditMode']&&this['_updateHasDirtyComment'](),_0x326982['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x590683=>_0x590683['isEditMode']);}['_rearrangeCollapse'](){const _0x2e53e9=function(_0x18c163){const _0x29a84a=new _0x7eb5c5();for(const _0xcae96e of _0x18c163)_0x29a84a['add'](_0xcae96e);return _0x29a84a;}(this['commentViews']),_0x51c9b1=this['_collapsedCommentsView']['count'];for(let _0x2755e6=0x1;_0x2755e6<=_0x51c9b1;_0x2755e6++)_0x2e53e9['remove'](0x1);for(const _0x5acb9f of _0x2e53e9)_0x5acb9f['collapse']();_0x51c9b1>0x0&&_0x2e53e9['add'](this['_collapsedCommentsView'],0x1),ns(_0x560f87(Array['from'](this['visibleViews']),Array['from'](_0x2e53e9)),this['visibleViews'],_0x2e53e9);}['_rearrangeExpand'](){ns(_0x560f87(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0xe5ceba of this['visibleViews'])_0xe5ceba['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x5d05b5=>{this['focusTracker']['add'](_0x5d05b5['element']),this['keystrokes']['listenTo'](_0x5d05b5['element']);}),this['commentViews']['on']('change',(_0x2d7a3b,_0x3b05aa)=>{for(const _0x283c5f of _0x3b05aa['removed'])this['focusTracker']['remove'](_0x283c5f['element']),this['keystrokes']['stopListening'](_0x283c5f['element']);for(const _0x24f441 of Array['from'](_0x3b05aa['added'])['reverse']())this['focusTracker']['add'](_0x24f441['element']),this['keystrokes']['listenTo'](_0x24f441['element']);});}}function ns(_0x85a4c6,_0xd31910,_0x33b22a){let _0x3e889f=0x0;for(const _0x316bdf of _0x85a4c6)switch(_0x316bdf){case'insert':_0xd31910['add'](_0x33b22a['get'](_0x3e889f),_0x3e889f),_0x3e889f++;break;case'delete':_0xd31910['remove'](_0x3e889f);break;case'equal':_0x3e889f++;}}class oe extends kt{constructor(_0x1d96f0){super(_0x1d96f0);const _0x33059e=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x33059e['to']('contextValue',_0x16c4aa=>N(_0x1d96f0,'THREAD_CONTEXT_LABEL',_0x16c4aa)),'tabindex':-0x1},'children':[{'text':_0x33059e['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5b4c7b,_0x326ece){super(_0x5b4c7b);const _0x175d7b=this['bindTemplate'];this['_model']=_0x326ece,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x119ecb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x206411({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x4a53f3=>!!_0x4a53f3),this['bind']('contextValue')['to'](this['_model'],'context',_0x55258f=>_0x55258f&&_0x55258f['value']?this['_trimContextValue'](_0x55258f['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',_0x175d7b['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 _0x5894e9=new _0x39d67e(this['locale']);return _0x5894e9['label']=N(this['locale'],'Reopen'),_0x5894e9['tooltip']=N(this['locale'],'Reopen'),_0x5894e9['icon']=_0x5cccb5,_0x5894e9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x49333d=>!_0x49333d),_0x5894e9['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x22cadf,_0x516e6c)=>_0x22cadf&&_0x516e6c),_0x5894e9['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x5894e9;}['_trimContextValue'](_0x1d2fcb){if(_0x1d2fcb['length']<0x96)return _0x1d2fcb;const _0x3f743e=_0x1d2fcb['lastIndexOf']('\x20',0x93);return _0x1d2fcb['substring'](0x0,_0x3f743e>-0x1?_0x3f743e:0x93)+'...';}['_attachContextActions'](){const _0x2ba0ff=this['element']['querySelector']('.ck-context'),_0x127083=_0x2ba0ff['querySelector']('.ck-context__value');this['listenTo'](_0x2ba0ff,'mouseenter',()=>{_0x127083['offsetWidth']<_0x127083['scrollWidth']&&_0x2ba0ff['classList']['add']('overlay');}),this['listenTo'](_0x2ba0ff,'mouseleave',()=>{_0x2ba0ff['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x2964e0 of this['focusables'])this['focusTracker']['add'](_0x2964e0['element']),this['keystrokes']['listenTo'](_0x2964e0['element']);}['_createContextView'](){const _0x3d0367=new oe(this['locale']);return _0x3d0367['bind']('contextValue')['to'](this),_0x3d0367;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x42775b,_0x4654de,_0x529177,_0x5a3f5e){super(_0x42775b),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4654de,this['_localUser']=_0x529177,this['_config']=_0x5a3f5e,this['commentThreadHeaderView']=new Xt(_0x42775b,_0x4654de),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x42775b,N(_0x42775b,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x42775b,_0x4654de,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5a3f5e)),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',(_0x2e2673,_0x4edc89)=>_0x2e2673||!!_0x4edc89),this['bind']('isUnlinked')['to'](_0x4654de,'unlinkedAt',_0x4bcee6=>!!_0x4bcee6),this['bind']('ariaLabel')['to'](this,'length',_0x10bd24=>{const _0x187fec=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x10bd24,_0x187fec]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x119ecb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x206411({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x7b5d29=>_0x7b5d29['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x21ba40=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32c8b5=_0x21ba40['commentInputView'];return _0x21ba40['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x32c8b5,'value',(_0x5f3151,_0x29b928,_0x36014f,_0x4a9482,_0x2ef337)=>!!_0x2ef337||!!_0x4a9482&&_0x36014f&&!_0x29b928||_0x5f3151&&_0x36014f&&!_0x29b928),_0x32c8b5['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x72e2fd,_0x2f6cef,_0x52d5e9)=>{let _0x5d33c4;return _0x5d33c4=_0x52d5e9&&_0x2f6cef?'Reply\x20to\x20reopen\x20discussion...':_0x72e2fd?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x5d33c4);}),_0x32c8b5['bind']('submitLabel')['to'](this,'length',_0x4f65c6=>N(this['locale'],_0x4f65c6?'Reply':'Comment')),_0x32c8b5['on']('submit',(_0x33a34b,_0x194aac)=>{this['fire']('addComment',_0x194aac),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x32c8b5['on']('cancel',()=>{this['focus']();}),_0x32c8b5['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x32c8b5['on']('cancel',_0x4acda2=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4acda2['stop']());}),this['on']('change:isActive',(_0x21a00f,_0x46eea9,_0x192373)=>{_0x192373||this['length']||_0x32c8b5['value']||this['fire']('removeCommentThread');}),_0x21ba40;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0xb5032a,_0x110846,_0x42a7ba,_0x2db45c){super(_0xb5032a,_0x110846,_0x42a7ba,_0x2db45c),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0xb5032a,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x37c82b,_0xece177,_0x5ca2dc)=>{_0x5ca2dc||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1e98c4,_0x34402e,_0x1c7033)=>{_0x1c7033&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x21d490=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x21d490['if']('isActive','ck-thread--active'),_0x21d490['if']('isUnlinked','ck-thread--unlinked'),_0x21d490['to']('actionIndicator',_0x5babc7=>_0x5babc7?'ck-thread--'+_0x5babc7:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x21d490['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 _0xbeeaf4 of this['commentsListView']['commentViews'])_0xbeeaf4['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x126420}=this,_0xc56059=this['commentsListView']['commentViews']['get'](0x0);_0xc56059===this['_boundFirstCommentView']||_0xc56059['isSystemComment']||(this['_boundFirstCommentView']=_0xc56059,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0xc56059,'actionIndicator',_0x55edd7=>'remove'===_0x55edd7?'remove':null),_0xc56059['placeholder']=N(_0x126420,'Write\x20a\x20comment...'),_0xc56059['removeButton']['on']('execute',_0x360853=>{_0x360853['stop'](),this['showConfirm'](N(_0x126420,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0xc56059['focus']();}),_0xc56059['actionBar']['add'](this['resolveButton'],0x0),_0xc56059['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x318e9c=new _0x10b016(this['locale']);return _0x318e9c['label']=N(this['locale'],'Resolve'),_0x318e9c['tooltip']=N(this['locale'],'Resolve'),_0x318e9c['icon']=_0x3ddff7,_0x318e9c['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x318e9c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3a2284=>!_0x3a2284),_0x318e9c['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x731975,_0x5b12fb)=>_0x731975&&!_0x5b12fb),_0x318e9c['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x318e9c;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0x4e664a){super(_0x4e664a),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x1c5cbf,_0x21b209,_0x28c510)=>{this['element']['innerHTML']=_0x28c510;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa4f608,_0x3b0469,_0x23df92){super(_0xa4f608),this['_model']=_0x3b0469,this['_config']=_0x23df92,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3b0469,'content',_0x3b0469,'authoredAt',(_0x5a7ba7,_0x564c09)=>N(_0xa4f608,'COMMENT_ARIA_LABEL',[_0x3b0469['author']['name'],_0x23df92['formatDateTime'](_0x564c09),new DOMParser()['parseFromString'](_0x5a7ba7,'text/html')['body']['textContent'],_0x3b0469['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0xa4f608,N(_0xa4f608,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x42bc84(),this['focusTracker']=new _0x119ecb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x206411({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x26ff00=>_0x26ff00['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 _0x224715=new is(this['locale']);return _0x224715['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x40a82e,_0x150103)=>_0x150103?ts(_0x40a82e,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x40a82e),_0x224715;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x41cb2c=new es(this['locale'],this['_config']['editorConfig']);return _0x41cb2c['value']=this['_model']['content'],_0x41cb2c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x41cb2c['submitLabel']=N(this['locale'],'Save'),_0x41cb2c['on']('submit',(_0x22567a,_0x21d3a3)=>{this['fire']('updateComment',this['_model']['id'],_0x21d3a3),this['switchToDisplayMode'](),this['focus']();}),_0x41cb2c['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x41cb2c['once']('editorReady',()=>{_0x41cb2c['focus']();}),_0x41cb2c['createEditor'](),_0x41cb2c['delegate']('editorReady')['to'](this),_0x41cb2c['delegate']('editorDestroyed')['to'](this),_0x41cb2c;}['_setupKeyboardNavigation'](){const _0x2d6ab4=this['element'];this['keystrokes']['listenTo'](_0x2d6ab4);for(const _0x15703d of this['focusables'])this['focusTracker']['add'](_0x15703d['element']),this['keystrokes']['listenTo'](_0x15703d['element']);this['focusables']['on']('change',(_0x22abef,_0x140358)=>{for(const _0x2a9c44 of _0x140358['removed'])this['focusTracker']['remove'](_0x2a9c44['element']),this['keystrokes']['stopListening'](_0x2a9c44['element']);for(const _0x139ed1 of _0x140358['added'])this['focusTracker']['add'](_0x139ed1['element']),this['keystrokes']['listenTo'](_0x139ed1['element']);}),this['keystrokes']['set']('enter',(_0x911029,_0x1b7230)=>{_0x2d6ab4===_0x911029['target']&&(this['focusCycler']['focusFirst'](),_0x1b7230());}),this['keystrokes']['set']('esc',(_0x50b0a6,_0x278d2b)=>{_0x2d6ab4!==_0x50b0a6['target']&&(this['focus'](),_0x278d2b());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x588d6c,_0x4ded9d,_0x4f6874){super(_0x588d6c,_0x4ded9d,_0x4f6874),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x588d6c,'Reply...')),this['bind']('authoredAt')['to'](_0x4ded9d),this['bind']('resolvedAt')['to'](_0x4ded9d),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 _0x432c69(_0x588d6c,_0x4ded9d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x4ded9d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x362fc8=this['bindTemplate'],_0x5a8acd=[{'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':_0x362fc8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x362fc8['to']('authoredAt',_0x562ec9=>this['_config']['formatDateTime'](_0x562ec9))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x362fc8['if']('isEditMode','ck-comment__actions--hidden'),_0x362fc8['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']&&_0x5a8acd['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x362fc8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x362fc8['if']('isEditMode','ck-comment--edit'),_0x362fc8['if']('isSystemComment','ck-comment--info'),_0x362fc8['to']('actionIndicator',_0x10e6c1=>_0x10e6c1?'ck-comment--'+_0x10e6c1:'')],'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':_0x5a8acd}]}]};}['_createEditButton'](){const _0x356aad=new _0x39d67e(this['locale']);return _0x356aad['label']=N(this['locale'],'Edit'),_0x356aad['icon']=_0x57d6a5,_0x356aad['withText']=!0x0,_0x356aad['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x356aad['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x22d194=>!_0x22d194),_0x356aad['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x356aad['on']('execute',()=>this['switchToEditMode']()),_0x356aad;}['_createRemoveButton'](){const _0x2bbf8b=new _0x39d67e(this['locale']);return _0x2bbf8b['label']=N(this['locale'],'Remove'),_0x2bbf8b['icon']=_0x52bd7f,_0x2bbf8b['withText']=!0x0,_0x2bbf8b['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x2bbf8b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3796ec=>!_0x3796ec),_0x2bbf8b['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x2bbf8b['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x2bbf8b;}['_createDropdown'](){const _0x2c604c=_0x25a7f2(this['locale'],_0x281113),_0x356196=_0x2c604c['panelView']['children'],_0x4d30e2=new _0xfa59b0(this['locale']),_0x583ef3=_0x2c604c['bindTemplate'];_0x348b07(_0x2c604c,()=>this['items']['find'](_0x1eb502=>_0x1eb502['isVisible'])),_0x2c604c['extendTemplate']({'attributes':{'class':[_0x583ef3['if']('isVisible','ck-hidden',_0x3cad12=>!_0x3cad12)]}});const _0x1abcd0=(_0x47d5fe,_0x1ace47=-0x1)=>{const _0x5d1820=new _0x3923f4(this['locale']);_0x5d1820['children']['add'](_0x47d5fe);const _0x38711=_0x1ace47>-0x1?_0x1ace47:_0x4d30e2['items']['length'];_0x4d30e2['items']['add'](_0x5d1820,_0x38711);const _0x531400=Array['from'](this['items']);_0x2c604c['unbind']('isEnabled','isVisible'),_0x2c604c['bind']('isEnabled')['toMany'](_0x531400,'isEnabled',(..._0x37e491)=>_0x37e491['some'](_0x24cac8=>_0x24cac8)),_0x2c604c['bind']('isVisible')['toMany'](_0x531400,'isVisible',(..._0x4887b3)=>_0x4887b3['some'](_0x1744a3=>_0x1744a3));};_0x2c604c['panelPosition']='sw',_0x2c604c['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x5a552d});for(const _0x5d019b of this['items'])_0x1abcd0(_0x5d019b);return _0x356196['add'](_0x4d30e2),_0x2c604c['listenTo'](this['items'],'add',(_0x4e3ad8,_0x11076f,_0x12b0b7)=>{_0x1abcd0(_0x11076f,_0x12b0b7);}),_0x2c604c['listenTo'](this['items'],'remove',(_0x44eecc,_0x20901c,_0x49c0c1)=>{_0x4d30e2['items']['remove'](_0x49c0c1);}),_0x2c604c;}['_attachActions'](_0xde980e,_0x43184c){const _0x3a1641=_0xde980e&&_0xde980e['element'];_0x3a1641&&(this['listenTo'](_0x3a1641,'mouseenter',()=>this['actionIndicator']=_0x43184c),this['listenTo'](_0x3a1641,'focus',()=>this['actionIndicator']=_0x43184c),this['listenTo'](_0x3a1641,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3a1641,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xb110ac=super['_createCommentInputView']();return _0xb110ac['bind']('placeholder')['to'](this),_0xb110ac;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x1564f6){const _0x25777b=Dt(_0x1564f6,0x1e),_0x2e80fb=new MutationObserver(_0x2d458b=>{for(const _0x5e5812 of _0x2d458b)('attributes'==_0x5e5812['type']&&'class'==_0x5e5812['attributeName']||'childList'==_0x5e5812['type']||'characterData'==_0x5e5812['type'])&&_0x25777b();});return{'attach'(_0x17cf6f){_0x2e80fb['observe'](_0x17cf6f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2e80fb['disconnect'](),_0x25777b['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x3bf0cc,_0x184288){super(_0x3bf0cc),this['id']=_0x4552d2(),this['focusTracker']=new _0x119ecb(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x33c861,_0x385a36)=>this['fire']('Esc',_0x385a36)),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'](_0x184288),this['mainView']=_0x184288;const _0x275e55=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x275e55['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 _0x434786=this['element']['clientHeight'];_0x434786&&(this['height']=_0x434786);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x1201c1(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2764ba,target:_0x4d19ad,type:_0x4466d5,isVisible:_0x3b56c3=!0x0}){super(),this['view']=_0x2764ba,this['view']['element']||this['view']['render'](),this['_type']=_0x4466d5,this['_target']=_0x4d19ad,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x7eb5c5([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x1ddd50,_0x1b26f)=>{this['view']['focusTracker']['add'](_0x1b26f);}),this['focusableElements']['on']('remove',(_0x3ab8f3,_0x26352c)=>{this['view']['focusTracker']['remove'](_0x26352c);}),this['set']('isVisible',_0x3b56c3);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x554491=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x554491),_0x554491;}get['targetRect'](){const _0x2d5faa=this['target'];if(null===_0x2d5faa)return null;if(_0x2d5faa instanceof _0x436169)return _0x2d5faa;const _0x14cd6c=_0x2d5faa['filter'](_0x1f4ce9=>function(_0x47f04e){const _0x31c59e=_0x47f04e['offsetParent'];if(_0x31c59e)return!0x0;const _0x29e6d5=_0x47f04e['getClientRects']()['item'](0x0);return!!_0x29e6d5;}(_0x1f4ce9));return 0x0===_0x14cd6c['length']?null:new _0x436169(_0x14cd6c[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x58c3d6){this['view']['isActive']=_0x58c3d6,this['view']['mainView']['isActive']=_0x58c3d6;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xaa5a37){if(!(null===_0xaa5a37||_0xaa5a37 instanceof _0x436169||Array['isArray'](_0xaa5a37)&&_0xaa5a37['every'](_0x448741=>fi(_0x448741))))throw new _0x13348f('annotation-invalid-target',null,{'target':_0xaa5a37});}['_getNormalizedTarget'](){const _0x1c0ece='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x1c0ece)?[_0x1c0ece]:_0x1c0ece;}}function fi(_0x5b6137){return null!==_0x5b6137&&'object'==typeof _0x5b6137&&'nodeType'in _0x5b6137&&0x1===_0x5b6137['nodeType'];}class S extends _0x7eb5c5{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x5b5fe8=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x119ecb(),this['_focusTracker']['on']('change:isFocused',(_0x296339,_0x5729e1,_0x53934f)=>{_0x53934f||this['fire']('blur');});for(const _0x3a927b of _0x5b5fe8)this['add'](_0x3a927b);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x368f42){if(this['has'](_0x368f42))throw new _0x13348f('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x368f42['innerView'],_0x368f42),this['_viewToAnnotation']['set'](_0x368f42['view'],_0x368f42);for(const _0x450fc6 of _0x368f42['focusableElements'])this['_focusTracker']['add'](_0x450fc6);this['listenTo'](_0x368f42['focusableElements'],'add',(_0x286a6a,_0x52d654)=>{this['_focusTracker']['add'](_0x52d654);}),this['listenTo'](_0x368f42['focusableElements'],'remove',(_0x16fb3a,_0x5d3df9)=>{this['_focusTracker']['remove'](_0x5d3df9);}),this['listenTo'](_0x368f42['view']['focusTracker'],'change:isFocused',(_0x5e0657,_0x17cfa5,_0x1d13e3)=>{_0x1d13e3&&this['fire']('focus',_0x368f42);}),_0x368f42['updateTargetRect']();const _0x488d31=this['_getOrderInContent'](_0x368f42['view']['targetRect']);return super['add'](_0x368f42,_0x488d31);}['remove'](_0x1c5319){if(!this['has'](_0x1c5319))throw new _0x13348f('annotationcollection-not-existing-item',null);this['stopListening'](_0x1c5319['view']['focusTracker']),this['stopListening'](_0x1c5319['focusableElements']);for(const _0x8a710 of _0x1c5319['focusableElements'])this['_focusTracker']['remove'](_0x8a710);return this['_viewToAnnotation']['delete'](_0x1c5319['view']),this['_innerViewToAnnotation']['delete'](_0x1c5319['innerView']),super['remove'](_0x1c5319);}['getByInnerView'](_0x520724){return this['_innerViewToAnnotation']['get'](_0x520724);}['getByView'](_0x16733b){return this['_viewToAnnotation']['get'](_0x16733b);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2b7c76 of this)_0x2b7c76['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2a5279=Array['from'](this)['sort']((_0x1507bf,_0x24948f)=>w(_0x1507bf['view']['targetRect'],_0x24948f['view']['targetRect']));for(let _0x51297a=_0x2a5279['length']-0x1;_0x51297a>0x0;_0x51297a--){const _0x25fa4e=_0x2a5279[_0x51297a];_0x51297a!==this['getIndex'](_0x25fa4e)&&(this['remove'](_0x25fa4e),this['add'](_0x25fa4e));}}['_getOrderInContent'](_0x4179ea){let _0x47a9f4=0x0;if(!_0x4179ea)return this['length'];for(const _0x2d3c5f of this){const _0x1ec691=_0x2d3c5f['view']['targetRect'];if(_0x1ec691){if(w(_0x4179ea,_0x1ec691)<0x0)return _0x47a9f4;_0x47a9f4++;}}return _0x47a9f4;}}function v({source:_0x73b43d,target:_0x222e6f,filter:_0x30277b}){for(const _0x490a42 of _0x73b43d)_0x30277b(_0x490a42)&&_0x222e6f['add'](_0x490a42);_0x222e6f['listenTo'](_0x73b43d,'add',(_0x2e91f5,_0x5f0727)=>{_0x30277b(_0x5f0727)&&_0x222e6f['add'](_0x5f0727);}),_0x222e6f['listenTo'](_0x73b43d,'remove',(_0x2b4087,_0x59dc6b)=>{_0x222e6f['has'](_0x59dc6b)&&_0x222e6f['remove'](_0x59dc6b);});}function w(_0x4637a5,_0x33ac26){if(null===_0x4637a5&&null===_0x33ac26)return 0x0;if(null===_0x4637a5)return-0x1;if(null===_0x33ac26)return 0x1;const _0x34a9d5=_0x4637a5['top']-_0x33ac26['top'];return 0x0==_0x34a9d5?_0x4637a5['left']-_0x33ac26['left']:_0x34a9d5;}class y extends _0x1c3a7a{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ed53a){if(super(_0x3ed53a),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x3ed53a instanceof _0x1db22d){const _0x152a3e=_0x3ed53a['locale'];_0x3ed53a['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x590ca5){this['collection']['add'](_0x590ca5);}['remove'](_0x2aecce){this['collection']['remove'](_0x2aecce),_0x2aecce['destroy']();}['refreshVisibility'](){for(const _0x4eb0c3 of this['collection'])_0x4eb0c3['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x5018b3){return this['collection']['getByInnerView'](_0x5018b3);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x35e941 of this['collection'])_0x35e941['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x58794c){this['fire']('_activateAnnotation',_0x58794c);}['createAnnotation'](_0x2586c7){return new T(_0x2586c7);}['createAnnotationView'](_0x374196,_0x17a58b){return new E(_0x374196,_0x17a58b);}['_addActiveAnnotation'](_0x479b6b){const _0x6b0e52=new Set(this['activeAnnotations']);_0x6b0e52['add'](_0x479b6b),this['activeAnnotations']=_0x6b0e52;}['_removeActiveAnnotation'](_0x202835){const _0x5eb921=new Set(this['activeAnnotations']);_0x5eb921['delete'](_0x202835),this['activeAnnotations']=_0x5eb921;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5ddf02=this['collection'],_0x29e18c=this['_visibleAnnotations'];function _0x299988(_0x507f19){const _0x136d27=_0x507f19['source'];_0x136d27['isVisible']&&!_0x29e18c['has'](_0x136d27)?_0x29e18c['add'](_0x136d27):!_0x136d27['isVisible']&&_0x29e18c['has'](_0x136d27)&&_0x29e18c['remove'](_0x136d27),_0x136d27['view']['focusTracker']['remove'](_0x136d27['view']['element']),_0x136d27['view']['focusTracker']['add'](_0x136d27['view']['element']);}this['listenTo'](_0x5ddf02,'add',(_0x1763f8,_0x3f069e)=>{_0x3f069e['isVisible']&&_0x29e18c['add'](_0x3f069e),this['listenTo'](_0x3f069e,'change:isVisible',_0x299988);}),this['listenTo'](_0x5ddf02,'remove',(_0x11a469,_0x4ba955)=>{_0x29e18c['has'](_0x4ba955)&&_0x29e18c['remove'](_0x4ba955),this['stopListening'](_0x4ba955,'change:isVisible',_0x299988);});}['_setupEnterAnnotationKeystroke'](){const _0x563af5=_0x60ffd7=>{_0x60ffd7['on']('ready',()=>{_0x60ffd7['keystrokes']['set'](_0x337bf3,(_0x466efd,_0x5e2af5)=>{const _0x12d7d6=_0x186b13(this['activeAnnotations']['values']());_0x12d7d6&&(_0x12d7d6['view']['focus'](),_0x5e2af5());});});};this['context']instanceof _0x1db22d?_0x563af5(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x4baf00,_0x23fc7f)=>{_0x563af5(_0x23fc7f);});}['_setupEscapeAnnotationHandling'](){const _0x46cead=_0x5b0954=>{const _0x242ffa=_0x5b0954['source'],_0x416850=[];let _0x150aed;if(Array['isArray'](_0x242ffa['target'])){_0x150aed=_0x242ffa['target'][0x0],this['context']instanceof _0x1db22d?_0x416850['push'](this['context']):this['context']['editors']&&_0x416850['push'](...this['context']['editors']);for(const _0x3b000b of _0x416850)for(const _0x40a540 of _0x3b000b['editing']['view']['domRoots']['values']())if(_0x40a540['contains'](_0x150aed))return void _0x3b000b['editing']['view']['focus']();_0x150aed['focus']();}};this['listenTo'](this['collection'],'add',(_0x275438,_0x59e2a3)=>{this['listenTo'](_0x59e2a3,'escape',_0x46cead,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x2dc6fb,_0x363319)=>{this['stopListening'](_0x363319,'escape',_0x46cead);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x1c3a7a{['_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(_0x594eaa){super(_0x594eaa),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x46488a=this['context']['config'];_0x46488a['define']('comments.maxCommentsWhenCollapsed',0x2),_0x46488a['define']('comments.maxThreadTotalWeight',0x1f4),_0x46488a['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x46488a['define']('comments.CommentThreadView',gt),_0x46488a['define']('comments.CommentView',Tt),_0x46488a['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x30664e=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x349126,_0x75b3c0)=>this['_addCommentThread'](_0x75b3c0)),this['on']('submitCommentThread',(_0x110a1b,_0x331525)=>this['_submitCommentThread'](_0x331525)),this['on']('resolveCommentThread',(_0x174357,_0x1645bf)=>this['_resolveCommentThread'](_0x1645bf)),this['on']('resolveCommentThread',(_0x3fdce0,_0x5894ba)=>this['_updateActiveAnnotation'](_0x5894ba),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x279887,_0xe9613e)=>this['_reopenCommentThread'](_0xe9613e)),this['on']('reopenCommentThread',(_0x27680c,_0x1ad6b6)=>this['_updateActiveAnnotation'](_0x1ad6b6),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x5aad3a,_0x5d684e)=>this['_removeCommentThread'](_0x5d684e)),this['on']('updateCommentThread',(_0x28020f,_0x4a94df)=>this['_updateCommentThread'](_0x4a94df)),this['on']('updateCommentThread',(_0x1dbd45,_0x3ed453)=>this['_updateActiveAnnotation'](_0x3ed453),{'priority':'lowest'}),this['on']('addComment',(_0xb9a29e,_0x4aaf9b)=>this['_addComment'](_0x4aaf9b)),this['on']('updateComment',(_0x38c557,_0x22e481)=>this['_updateComment'](_0x22e481)),this['on']('removeComment',(_0x19abdf,_0x49409e)=>this['_removeComment'](_0x49409e)),this['on']('addComment',(_0x49d6f8,{threadId:_0x47349a,isFromAdapter:_0x4d95b7})=>{if(_0x4d95b7)return;const _0x4a3fec=this['getCommentThread'](_0x47349a),_0x44e14c=_0x4a3fec&&this['_threadToController']['get'](_0x4a3fec);_0x44e14c&&_0x44e14c['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x30664e,'change:activeAnnotations',(_0x5cebc9,_0x385320,_0xfe10c4)=>{const _0x41aa6b=Array['from'](_0xfe10c4)['map'](_0xbf5f8c=>this['_viewToController']['get'](_0xbf5f8c['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x41aa6b?_0x41aa6b['model']:null;});}set['adapter'](_0x4362c2){if(this['_adapter'])throw new _0x13348f('commentsrepository-adapter-already-set');this['_adapter']=_0x4362c2;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x37d2cb=_t,threadId:_0x6eba2=_0x4552d2(),comments:_0x398932=[],unlinkedAt:_0x56c4f1=null,resolvedAt:_0x1207f3=null,resolvedBy:_0x171f20=null,target:_0x36127b=null,context:_0x27962f=null,attributes:_0x1f6c5b={},isResolvable:_0x476cf5=!0x0,isSubmitted:_0x5d7280=!0x1,isFromAdapter:_0x1083aa=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x37d2cb),{'channelId':_0x37d2cb,'threadId':_0x6eba2,'comments':_0x398932,'unlinkedAt':_0x56c4f1,'resolvedAt':_0x1207f3,'resolvedBy':_0x171f20,'target':_0x36127b,'context':_0x27962f,'attributes':_0x1f6c5b,'isFromAdapter':_0x1083aa,'isResolvable':_0x476cf5,'isSubmitted':_0x5d7280}),this['getCommentThread'](_0x6eba2);}['openNewCommentThread']({channelId:_0x4f6a97=_t,threadId:_0x344377=_0x4552d2(),target:_0x281a0e,context:_0x358e3a=null,isResolvable:_0x2a5ebd=!0x0}){if(this['_readOnlyChannels']['has'](_0x4f6a97)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x281a0e)throw new _0x13348f('commentsrepository-missing-target');const _0x2e0883=this['addCommentThread']({'channelId':_0x4f6a97,'threadId':_0x344377,'target':_0x281a0e,'context':_0x358e3a,'isResolvable':_0x2a5ebd});if(!_0x2e0883)return null;const _0x3bf195=this['_threadToController']['get'](_0x2e0883),_0x5cab7e=_0x3bf195['view']['commentThreadInputView']['commentInputView'],_0x315967=this['context']['plugins']['get'](y),_0x41d18b=_0x315967['getByInnerView'](_0x3bf195['view']);return _0x315967['activate'](_0x41d18b),_0x5cab7e['once']('editorReady',()=>_0x5cab7e['focus']()),_0x2e0883;}['hasCommentThread'](_0x591c5b){if('string'!=typeof _0x591c5b)throw new _0x13348f('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x591c5b);}['updateCommentThread']({channelId:_0x381326=_t,threadId:_0x51c457,context:_0x584a99,unlinkedAt:_0x5ef751,attributes:_0x588142,isFromAdapter:_0x36d1a3=!0x1}){return this['fire'](Nt('updateCommentThread',_0x381326),{'channelId':_0x381326,'threadId':_0x51c457,'context':_0x584a99,'unlinkedAt':_0x5ef751,'attributes':_0x588142,'isFromAdapter':_0x36d1a3}),this['getCommentThread'](_0x51c457);}['getCommentThread'](_0x3374e){if('string'!=typeof _0x3374e)throw new _0x13348f('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x3374e);}['fetchCommentThread']({channelId:_0x511836,threadId:_0x7e92c8}={}){const _0xc12cb6=this['getCommentThread'](_0x7e92c8);if(_0xc12cb6)return Promise['resolve'](_0xc12cb6);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x13348f('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x511836,'threadId':_0x7e92c8})['then'](_0x1bf6fe=>this['hasCommentThread'](_0x7e92c8)?this['getCommentThread'](_0x7e92c8):_0x1bf6fe?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x511836},_0x1bf6fe)):void 0x0)['catch'](_0x490828=>{throw console['error'](_0x490828),new _0x13348f('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4dea8c,skipNotAttached:_0x512007=!0x1,skipEmpty:_0x51bfd1=!0x1,toJSON:_0x185267=!0x1}={}){const _0x162034=[];for(const _0x450f25 of this['_threads']['values']())_0x4dea8c&&_0x450f25['channelId']!==_0x4dea8c||_0x512007&&!_0x450f25['isAttached']||_0x51bfd1&&0x0===_0x450f25['length']||_0x162034['push'](_0x450f25);return _0x185267?_0x162034['map'](_0x48912f=>_0x48912f['toJSON']()):_0x162034;}['getAnnotationForCommentThread'](_0x5b634f){const _0x6a2fc6=this['_threadToController']['get'](_0x5b634f);if(!_0x6a2fc6)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x6a2fc6['view'])||null;}['getCommentThreadForAnnotation'](_0xeb7a8){const _0x1abf10=this['_viewToController']['get'](_0xeb7a8['innerView']);return _0x1abf10?_0x1abf10['model']:null;}['setActiveCommentThread'](_0x3f88b2){const _0x407ae6=this['context']['plugins']['get'](y);if(!_0x3f88b2)return void(this['activeCommentThread']&&_0x407ae6['deactivateAll']());const _0x153c52=this['getCommentThread'](_0x3f88b2);if(!_0x153c52)throw new _0x13348f('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3f88b2});if(!this['_threadToController']['has'](_0x153c52))throw new _0x13348f('commentsrepository-active-not-attached',null,{'threadId':_0x3f88b2});const _0x595354=_0x407ae6['getByInnerView'](this['_threadToController']['get'](_0x153c52)['view']);_0x407ae6['activate'](_0x595354);}['switchReadOnly'](_0x2a2ad5,_0x2bd910){_0x2a2ad5?this['_readOnlyChannels']['add'](_0x2bd910):this['_readOnlyChannels']['delete'](_0x2bd910),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0xe29f60){return this['_readOnlyChannels']['has'](_0xe29f60)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x3020e8,_0x11d1a6){return new vt(_0x3020e8,_0x11d1a6);}['setPermissions'](_0x196f5e,_0x1c8a17=_t){this['_permissions']['set'](_0x1c8a17,_0x196f5e),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4155f9=_t){return this['_permissions']['has'](_0x4155f9)?this['_permissions']['get'](_0x4155f9):bt;}['_addCommentThread']({channelId:_0x3b91a1,threadId:_0x549d60,comments:_0xa387c4,unlinkedAt:_0x47f42e,resolvedAt:_0x3ba9d2,resolvedBy:_0x15e6db,target:_0x5632bc,context:_0x3e6b77,attributes:_0x4238d3,isFromAdapter:_0xdb96f,isResolvable:_0x592baa,isSubmitted:_0x25deea}){if('string'!=typeof _0x549d60)throw new _0x13348f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x549d60});if(this['hasCommentThread'](_0x549d60))throw new _0x13348f('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x549d60});const _0x16675e=new pi(this,{'channelId':_0x3b91a1,'id':_0x549d60,'context':_0x3e6b77,'attributes':_0x4238d3,'unlinkedAt':_0x47f42e,'resolvedAt':_0x3ba9d2,'resolvedBy':_0x15e6db?this['context']['plugins']['get'](it)['getUser'](_0x15e6db):null,'isResolvable':_0x592baa,'isSubmitted':_0x25deea||_0xdb96f});this['_threads']['set'](_0x549d60,_0x16675e);for(const _0x1d5b15 of _0xa387c4)_0x16675e['_add'](this['_createNewComment']({'threadId':_0x549d60,..._0x1d5b15}));return _0x5632bc&&_0x16675e['attachTo'](_0x5632bc),_0xdb96f||!_0x16675e['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3b91a1,'threadId':_0x549d60});}['_submitCommentThread']({channelId:_0x2320c3,threadId:_0x1e7abd}){if(!this['hasCommentThread'](_0x1e7abd))throw new _0x13348f('commentsrepository-missing-comment-thread',this);const _0x5ecee2=this['getCommentThread'](_0x1e7abd);if(_0x5ecee2['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x4aaaa5,comments:_0x52a836,resolvedAt:_0xc0f917,resolvedBy:_0x30b7cc,context:_0x5de80e,attributes:_0x162ce0}=_0x5ecee2,_0x286813=this['context']['plugins']['get']('PendingActions'),_0x1af846=_0x286813['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x2320c3,'threadId':_0x4aaaa5,'comments':_0x52a836['map'](_0x1582c0=>_0x1582c0['toJSON']()),'resolvedAt':_0xc0f917,'resolvedBy':_0x30b7cc?_0x30b7cc['id']:_0x30b7cc,'context':_0x5de80e,'attributes':_0x162ce0})['then'](({comments:_0x339582})=>{_0x286813['remove'](_0x1af846);for(const _0x579533 of _0x339582)this['_updateComment']({'channelId':_0x2320c3,'threadId':_0x1e7abd,'commentId':_0x579533['commentId'],'createdAt':_0x579533['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2e37cf=>{throw console['error'](_0x2e37cf),new _0x13348f('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x419614,target:_0xe40597}){const _0x213a1b=this['getCommentThread'](_0x419614);if(!_0x213a1b)throw new _0x13348f('commentsrepository-attach-missing-comment-thread',this);const _0x3ae6c4=this['context']['plugins']['get']('PendingActions'),_0x2fff05=this['context']['plugins']['get'](y),_0x3a9068=this['_createCommentThreadView'](_0x213a1b),_0x39bfbd=new vt(_0x213a1b,_0x3a9068);let _0x2d8fbf=null;_0x3a9068['on']('change:isDirty',(_0x4442cd,_0x5687e7,_0x6d9bb2)=>{_0x6d9bb2?_0x2d8fbf=_0x3ae6c4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x2d8fbf&&(_0x3ae6c4['remove'](_0x2d8fbf),_0x2d8fbf=null);}),this['_threadToController']['set'](_0x213a1b,_0x39bfbd),this['_viewToController']['set'](_0x3a9068,_0x39bfbd);const _0x289881=new E(this['context']['locale'],_0x3a9068);_0x289881['bind']('length')['to'](_0x3a9068),_0x289881['bind']('isDirty')['to'](_0x3a9068,'isDirty',_0x3a9068,'length',(_0x3e9702,_0x3158b3)=>_0x3e9702||!_0x3158b3),_0x289881['bind']('isActive')['to'](_0x3a9068),_0x289881['type']='comment';const _0x3b4657=new T({'view':_0x289881,'target':_0xe40597,'type':'comment','isVisible':!_0x213a1b['archivedAt']&&!!('function'==typeof _0xe40597?_0xe40597():_0xe40597)});return _0x3a9068['on']('escape',()=>{_0x3b4657['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3a9068,_0x3b4657),_0x2fff05['add'](_0x3b4657),_0x3b4657;}['_bindAnnotationToEditors'](_0x45f027,_0x52c227){this['listenTo'](_0x45f027,'editorReady',(_0x3e75cd,_0x46bf50)=>{const _0x29fce9=_0x46bf50['ui']['view']['body']['bodyCollectionContainer'];_0x52c227['focusableElements']['add'](_0x29fce9),this['context']instanceof _0x1db22d&&this['context']['ui']['focusTracker']['add'](_0x29fce9);},{'priority':'highest'}),this['listenTo'](_0x45f027,'editorDestroyed',(_0x3e0d8b,_0x241d5b)=>{const _0x2f29f1=_0x241d5b['ui']['view']['body']['bodyCollectionContainer'];_0x52c227['focusableElements']['has'](_0x2f29f1)&&_0x52c227['focusableElements']['remove'](_0x2f29f1),this['context']instanceof _0x1db22d&&this['context']['ui']['focusTracker']['remove'](_0x2f29f1);});}['_unbindEditors'](_0xb70c4e){this['stopListening'](_0xb70c4e,'editorReady'),this['stopListening'](_0xb70c4e,'editorDestroyed');}['_createCommentThreadView'](_0x2e3a89){const _0x2096d5=this['context']['plugins']['get'](it),{config:_0x321249,locale:_0xd086ce}=this['context'],_0x2d9ae7=pt(_0x321249['get']('locale'),_0xd086ce);return new(0x0,(_0x321249['get']('comments'))['CommentThreadView'])(_0xd086ce,_0x2e3a89,_0x2096d5['me'],{'editorConfig':{..._0x321249['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x321249['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x321249['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x321249['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x321249['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d9ae7,'CommentView':_0x321249['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x29bed3,channelId:_0x55de9a,resolvedAt:_0x194cf9,resolvedBy:_0x165f51,isFromAdapter:_0x5c52b6}){if(!this['hasCommentThread'](_0x29bed3))throw new _0x13348f('commentsrepository-missing-comment-thread',null,{'threadId':_0x29bed3});const _0x26e338=this['getCommentThread'](_0x29bed3);if(_0x26e338['isResolved'])throw new _0x13348f('commentsrepository-resolved-comment-thread',null,{'threadId':_0x29bed3});const _0x2c1e3f=this['context']['plugins']['get'](it);if(_0x26e338['resolvedBy']=_0x2c1e3f['getUser'](_0x165f51),_0x26e338['resolvedAt']=_0x194cf9,_0x5c52b6||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x193804=this['context']['plugins']['get']('PendingActions'),_0x4821ba=_0x193804['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x55de9a,'threadId':_0x29bed3})['then'](({resolvedAt:_0x300a2a,resolvedBy:_0x1753d6})=>{_0x193804['remove'](_0x4821ba),_0x26e338['resolvedBy']['id']!==_0x1753d6&&(_0x26e338['resolvedBy']=_0x2c1e3f['getUser'](_0x1753d6)),_0x26e338['resolvedAt']=_0x300a2a;})['catch'](_0x1f1b32=>{throw console['error'](_0x1f1b32),new _0x13348f('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0xfff1a4,channelId:_0x5a7aef,isFromAdapter:_0x5eaa15}){if(!this['hasCommentThread'](_0xfff1a4))throw new _0x13348f('commentsrepository-missing-comment-thread',null,{'threadId':_0xfff1a4});const _0x2e5759=this['getCommentThread'](_0xfff1a4);if(!_0x2e5759['isResolved'])throw new _0x13348f('commentsrepository-reopen-comment-thread',null,{'threadId':_0xfff1a4});if(_0x2e5759['resolvedBy']=null,_0x2e5759['resolvedAt']=null,_0x5eaa15||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5a34a8=this['context']['plugins']['get']('PendingActions'),_0x4ebb74=_0x5a34a8['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5a7aef,'threadId':_0xfff1a4})['then'](()=>_0x5a34a8['remove'](_0x4ebb74))['catch'](_0x3268bc=>{throw console['error'](_0x3268bc),new _0x13348f('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x1ec64d,isFromAdapter:_0x5a5ed7}){const _0x3695aa=this['getCommentThread'](_0x1ec64d);if(!_0x3695aa)throw new _0x13348f('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x1ec64d),this['_threads']['delete'](_0x1ec64d),!_0x3695aa['isSubmitted']||_0x5a5ed7||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x34161f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3e7e8b}=_0x3695aa,_0xc8b881=_0x34161f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3e7e8b,'threadId':_0x1ec64d})['then'](()=>_0x34161f['remove'](_0xc8b881))['catch'](_0x4951f9=>{throw console['error'](_0x4951f9),new _0x13348f('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x29e4a3,unlinkedAt:_0x13fce5,context:_0x31048c,attributes:_0x585aa1,isFromAdapter:_0x3b743d}){if('string'!=typeof _0x29e4a3)throw new _0x13348f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x29e4a3});if(!this['hasCommentThread'](_0x29e4a3))throw new _0x13348f('commentsrepository-missing-comment-thread',null,{'threadId':_0x29e4a3});const _0x3ac745=this['getCommentThread'](_0x29e4a3);let _0x5360f0=!0x1;if(void 0x0!==_0x31048c&&_0x3ac745['context']!==_0x31048c&&(_0x3ac745['context']=_0x31048c,_0x5360f0=!0x0),void 0x0!==_0x13fce5&&_0x3ac745['unlinkedAt']!==_0x13fce5&&(_0x3ac745['unlinkedAt']=_0x13fce5,_0x5360f0=!0x0),_0x585aa1&&!At(_0x585aa1,_0x3ac745['attributes'])&&(_0x3ac745['attributes']=_0x585aa1,_0x5360f0=!0x0),!_0x5360f0)return Promise['resolve']();if(!_0x3ac745['isSubmitted']||_0x3b743d||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0xfc9c6c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x487a3c}=_0x3ac745,_0x3dbe2c=_0xfc9c6c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x487a3c,'threadId':_0x29e4a3,'context':_0x31048c,'unlinkedAt':_0x13fce5,'attributes':_0x585aa1})['then'](()=>_0xfc9c6c['remove'](_0x3dbe2c))['catch'](_0x344588=>{throw console['error'](_0x344588),new _0x13348f('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x4956fe){const _0x3459ea=this['context']['plugins']['get'](y),_0x2517bc=this['getCommentThread'](_0x4956fe);if(_0x2517bc['_isAttached']=!0x1,this['_threadToController']['has'](_0x2517bc)){const _0x453c4b=this['_threadToController']['get'](_0x2517bc),_0x5e7cc1=_0x453c4b['view'],_0x2cb8ce=_0x3459ea['getByInnerView'](_0x5e7cc1);this['_threadToController']['delete'](_0x2517bc),this['_viewToController']['delete'](_0x5e7cc1),_0x2cb8ce&&_0x3459ea['remove'](_0x2cb8ce),_0x453c4b['destroy'](),_0x5e7cc1['destroy']()['then'](()=>{this['_unbindEditors'](_0x5e7cc1);});}}['_updateActiveAnnotation']({threadId:_0x136789,resolvedAt:_0x197fd4,unlinkedAt:_0x115dd8}){const _0x4ab147=!!_0x197fd4,_0x1baf60=this['context']['plugins']['get'](y),_0x1ca8d1=this['getCommentThread'](_0x136789);if(this['_threadToController']['has'](_0x1ca8d1)){const _0x559a89=this['_threadToController']['get'](_0x1ca8d1)['view'],_0x1e4a08=_0x1baf60['getByInnerView'](_0x559a89);_0x1e4a08&&(_0x4ab147&&_0x1baf60['_removeActiveAnnotation'](_0x1e4a08),_0x115dd8?_0x1e4a08['isVisible']=!0x1:_0x1e4a08['refreshVisibility']());}}['_getExternalAuthor'](_0x1269f2){const _0x1fb3c5=this['context']['plugins']['get'](it),_0x4236a8=It('external:'+_0x1269f2),_0x2224dd=_0x1fb3c5['getUser'](_0x4236a8);return _0x2224dd||_0x1fb3c5['addUser']({'id':_0x4236a8,'name':_0x1269f2});}['_createNewComment']({threadId:_0x4243d9,commentId:_0x57ca8d=_0x4552d2(),content:_0x20c85a,authorId:_0x5f0e4e,createdAt:_0x446d94,attributes:_0x589029}){if('string'!=typeof _0x57ca8d)throw new _0x13348f('commentsrepository-invalid-commentid');if('string'!=typeof _0x5f0e4e)throw new _0x13348f('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x20c85a||!_0x20c85a['trim']())throw new _0x13348f('commentsrepository-invalid-comment-content');const _0x2bd760=this['context']['plugins']['get'](it)['getUser'](_0x5f0e4e);if(!_0x2bd760)throw new _0x13348f('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x5f0e4e});let _0x576437=null,_0x32633c=_0x446d94;return _0x589029?.['@external']&&(_0x576437=this['_getExternalAuthor'](_0x589029['@external']['authorName']),_0x32633c=new Date(_0x589029['@external']['createdAt'])),new wi(this,{'threadId':_0x4243d9,'id':_0x57ca8d,'author':_0x576437||_0x2bd760,'creator':_0x2bd760,'content':_0x20c85a,'createdAt':_0x446d94,'authoredAt':_0x32633c,'attributes':_0x589029});}['_addComment'](_0x181568){let {threadId:_0x13f092,content:_0x17e786,attributes:_0x3d3573,isFromAdapter:_0x2c0610}=_0x181568;const _0x33b547=this['getCommentThread'](_0x181568['threadId']);if(!_0x33b547)throw new _0x13348f('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x51aa1c=this['_createNewComment'](_0x181568),{id:_0x60dffc}=_0x51aa1c;if(_0x33b547['_add'](_0x51aa1c),_0x2c0610||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x33b547['isSubmitted'])return Promise['resolve']();const _0x567cb5=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2c1823}=_0x33b547,_0x14ac08=_0x567cb5['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3d3573||(_0x3d3573={}),this['adapter']['addComment']({'channelId':_0x2c1823,'threadId':_0x13f092,'commentId':_0x60dffc,'content':_0x17e786,'attributes':_0x3d3573})['then'](_0x2e9920=>{_0x567cb5['remove'](_0x14ac08),_0x2e9920&&this['_updateComment']({'channelId':_0x2c1823,'threadId':_0x13f092,'commentId':_0x60dffc,'createdAt':_0x2e9920['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x48f242=>{throw console['error'](_0x48f242),new _0x13348f('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x2d1827,commentId:_0xd5f60c,content:_0x3f6d1f,createdAt:_0x52b053,attributes:_0x2e4d0c,isFromAdapter:_0x9dc651}){if(void 0x0!==_0x3f6d1f&&('string'!=typeof _0x3f6d1f||!_0x3f6d1f['trim']()['length']))throw new _0x13348f('commentsrepository-update-comment-invalid-content');const _0x22b9f6=this['getCommentThread'](_0x2d1827),_0x449963=_0x22b9f6['getComment'](_0xd5f60c);if(!_0x449963)throw new _0x13348f('commentsrepository-update-missing-comment',this);let _0x40993b=!0x1;if(_0x3f6d1f&&_0x3f6d1f!==_0x449963['content']&&(_0x449963['isEditable']||_0x9dc651)&&(_0x449963['content']=_0x3f6d1f,_0x40993b=!0x0),_0x52b053&&_0x52b053!==_0x449963['createdAt']&&(_0x449963['createdAt']=_0x52b053,_0x449963['attributes']&&_0x449963['attributes']['@external']||(_0x449963['authoredAt']=_0x52b053),_0x40993b=!0x0),_0x2e4d0c&&!At(_0x2e4d0c,_0x449963['attributes'])&&(_0x449963['attributes']=_0x2e4d0c,_0x40993b=!0x0),!_0x40993b)return Promise['resolve']();if(_0x22b9f6['fire']('commentUpdated'),_0x9dc651||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x5a3610=this['context']['plugins']['get']('PendingActions'),{channelId:_0x54ad07}=this['getCommentThread'](_0x449963['threadId']),_0x38c175=_0x5a3610['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x54ad07,'threadId':_0x2d1827,'commentId':_0xd5f60c,'content':_0x3f6d1f,'attributes':_0x2e4d0c})['then'](()=>_0x5a3610['remove'](_0x38c175))['catch'](_0x4d2774=>{throw console['error'](_0x4d2774),new _0x13348f('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x552464,commentId:_0xd4065,isFromAdapter:_0x3d32e7}){const _0x169937=this['getCommentThread'](_0x552464),_0xcdbe6a=_0x169937['getComment'](_0xd4065);if(!_0xcdbe6a)throw new _0x13348f('commentsrepository-remove-missing-comment',this);if(_0x169937['_remove'](_0xcdbe6a),_0x3d32e7||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4b43b3=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5f560c}=_0x169937,_0x75cdeb=_0x4b43b3['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x5f560c,'threadId':_0x552464,'commentId':_0xd4065})['then'](()=>_0x4b43b3['remove'](_0x75cdeb))['catch'](_0x3106f2=>{throw console['error'](_0x3106f2),new _0x13348f('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x1201c1(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x23b763,_0x90b47c){super();const _0x2280c6=_0x90b47c['isResolvable'];this['channelId']=_0x90b47c['channelId'],this['id']=_0x90b47c['id'],this['comments']=new _0x7eb5c5(),this['_repository']=_0x23b763,this['_isAttached']=!0x1,this['_isSubmitted']=_0x90b47c['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x23b763,'_permissions',_0x23b763,'_readOnlyChannels',()=>_0x23b763['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x23b763,'_permissions',()=>_0x23b763['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x23b763,'_permissions',()=>{const _0x44f0b1=_0x23b763['getPermissions'](this['channelId']);return _0x44f0b1['write']||_0x44f0b1['admin'];}),this['bind']('isResolvable')['to'](_0x23b763,'_permissions',()=>_0x2280c6&&_0x23b763['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x90b47c['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x7388eb,_0x461edb)=>_0x7388eb?_0x461edb?_0x7388eb<_0x461edb?_0x7388eb:_0x461edb:_0x7388eb:_0x461edb),this['set']('unlinkedAt',_0x90b47c['unlinkedAt']||null),this['set']('resolvedAt',_0x90b47c['resolvedAt']||null),this['set']('resolvedBy',_0x90b47c['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0xb18084=>!!_0xb18084),this['set']('attributes',_0x90b47c['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x1fe00d,_0x1906f4)=>_0x1fe00d+_0x1906f4['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0xe2462e,id:_0x3f8ec4}=this;this['_repository']['fire'](Nt('submitCommentThread',_0xe2462e),{'channelId':_0xe2462e,'threadId':_0x3f8ec4});}['setUnlinkedAt'](_0x4080d1){this['_update']({'unlinkedAt':_0x4080d1});}['resolve']({resolvedAt:_0x18bb37=new Date(),resolvedBy:_0x50f503='',isFromAdapter:_0x18358f=!0x1}={}){const _0x3caca4=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x141878,id:_0x551e32}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x141878),{'channelId':_0x141878,'threadId':_0x551e32,'resolvedAt':_0x18bb37,'resolvedBy':_0x50f503||_0x3caca4['id'],'isFromAdapter':_0x18358f});}['reopen']({isFromAdapter:_0x16349c=!0x1}={}){const {channelId:_0x4d243c,id:_0x5f2447}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x4d243c),{'channelId':_0x4d243c,'threadId':_0x5f2447,'isFromAdapter':_0x16349c});}['setContext'](_0x1ee47c){this['context']||this['_update']({'context':_0x1ee47c});}['setAttribute'](_0x11858c,_0x58ff99){const _0x12ee2f=wt(this['attributes']);yt(_0x12ee2f,_0x11858c,_0x58ff99),this['_update']({'attributes':_0x12ee2f});}['removeAttribute'](_0x5ad3d0){const _0xfcff50=wt(this['attributes']);Ct(_0xfcff50,_0x5ad3d0),this['_update']({'attributes':_0xfcff50});}['remove']({isFromAdapter:_0x4755ec=!0x1}={}){const {channelId:_0x511ef2,id:_0x5b25d4}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x511ef2),{'channelId':_0x511ef2,'threadId':_0x5b25d4,'isFromAdapter':_0x4755ec});}['attachTo'](_0x11eedb){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x11eedb});}['addComment'](_0x45dd34){const {channelId:_0x181447,id:_0x26a89e}=this;this['_repository']['fire'](Nt('addComment',_0x181447,_0x26a89e),Object['assign']({'channelId':_0x181447,'threadId':_0x26a89e},_0x45dd34));}['getComment'](_0x17209a){if('string'!=typeof _0x17209a)throw new _0x13348f('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x17209a});return this['comments']['get'](_0x17209a);}['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'](_0x40cfd9=>_0x40cfd9['toJSON']()),'attributes':this['attributes']};}['_add'](_0x259aa7){return this['listenTo'](_0x259aa7,'change:authoredAt',()=>{const _0x5fc72b=this['_findOptimalIndex'](_0x259aa7),_0x5a1e44=this['comments'];_0x5fc72b-0x1!=_0x5a1e44['getIndex'](_0x259aa7)&&_0x5fc72b+0x1!=_0x5a1e44['getIndex'](_0x259aa7)&&(this['_remove'](_0x259aa7),this['_add'](_0x259aa7));}),this['comments']['add'](_0x259aa7,this['_findOptimalIndex'](_0x259aa7));}['_update'](_0x3e1a37){const {channelId:_0x100648,id:_0x5bd9c6}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x100648),{..._0x3e1a37,'channelId':_0x100648,'threadId':_0x5bd9c6});}['_remove'](_0x714225){return this['stopListening'](_0x714225),_0x714225['destroy'](),this['comments']['remove'](_0x714225);}['_findOptimalIndex'](_0xadef27){const _0x18747a=this['comments']['find'](_0x4dbbd2=>new Date(_0x4dbbd2['authoredAt'])['getTime']()>new Date(_0xadef27['authoredAt'])['getTime']());return _0x18747a?this['comments']['getIndex'](_0x18747a):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x1201c1(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x263aa7,_0x19b8be){super();const _0x13d077=_0x263aa7['context']['plugins']['get'](it)['me'],_0xc714f7=_0x263aa7['getCommentThread'](_0x19b8be['threadId']),_0x29c285=0x0===_0xc714f7['comments']['length'],_0x2770b6=_0x13d077===_0x19b8be['author'];this['id']=_0x19b8be['id'],this['threadId']=_0x19b8be['threadId'],this['author']=_0x19b8be['author'],this['creator']=_0x19b8be['creator'],this['isExternal']=Boolean(_0x19b8be['attributes']&&_0x19b8be['attributes']['@external']),this['set']('content',_0x19b8be['content']),this['createdAt']=_0x19b8be['createdAt']||new Date(),this['set']('authoredAt',_0x19b8be['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0xc714f7,'resolvedAt'),this['set']('attributes',_0x19b8be['attributes']||{}),this['bind']('isEditable')['to'](_0x263aa7,'_permissions',()=>{const _0x3aea68=_0x263aa7['getPermissions'](_0xc714f7['channelId'])['write'],_0x10b6a5=_0x263aa7['getPermissions'](_0xc714f7['channelId'])['modifyAll'];return _0x2770b6&&_0x3aea68||!_0x2770b6&&_0x10b6a5;}),this['bind']('isRemovable')['to'](_0xc714f7,'isRemovable',_0x263aa7,'_permissions',_0x2f2fd2=>{const _0x3d7516=_0x263aa7['getPermissions'](_0xc714f7['channelId'])['write'],_0x12caa5=_0x263aa7['getPermissions'](_0xc714f7['channelId'])['modifyAll'];return _0x2770b6&&_0x3d7516||_0x2f2fd2&&_0x29c285||!_0x2770b6&&_0x12caa5&&!_0x29c285;}),this['bind']('isReadOnly')['to'](_0xc714f7,'isReadOnly'),this['_repository']=_0x263aa7;}get['weight'](){return Math['max'](function(_0x279f58){const _0x228601=document['createElement']('div');return _0x228601['innerHTML']=_0x279f58,_0x228601['textContent']['length'];}(this['content']),0xc8);}['update'](_0x15c5b3){const {threadId:_0x536f24,id:_0x29bfb0}=this;if(!this['_repository']['hasCommentThread'](_0x536f24))throw new _0x13348f('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4bdeaf}=this['_repository']['getCommentThread'](_0x536f24);this['_repository']['fire'](Nt('updateComment',_0x4bdeaf,_0x536f24),{'channelId':_0x4bdeaf,'threadId':_0x536f24,'commentId':_0x29bfb0,..._0x15c5b3});}['setAttribute'](_0x16b141,_0x5a614a){const _0xcd7acf=wt(this['attributes']);yt(_0xcd7acf,_0x16b141,_0x5a614a),this['update']({'attributes':_0xcd7acf});}['removeAttribute'](_0x211f67){const _0x18732e=wt(this['attributes']);Ct(_0x18732e,_0x211f67),this['update']({'attributes':_0x18732e});}['remove'](_0x11b71b={}){if(!_0x11b71b['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x34e654,id:_0x38aad2}=this;if(!this['_repository']['hasCommentThread'](_0x34e654))throw new _0x13348f('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x169283}=this['_repository']['getCommentThread'](_0x34e654);this['_repository']['fire'](Nt('removeComment',_0x169283,_0x34e654),{'channelId':_0x169283,'threadId':_0x34e654,'commentId':_0x38aad2,..._0x11b71b});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x1c3d70,..._0x2ce2cd){for(const _0x251b2a of _0x2ce2cd)void 0x0!==_0x251b2a&&(_0x1c3d70+=':'+String(_0x251b2a));return _0x1c3d70;}class ot extends _0x2473d2{constructor(_0x11ec34){super(_0x11ec34),this['set']('hasContent',!0x1);}['refresh'](){const _0x5b9247=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x2219a7 of _0x5b9247['getRanges']())if(this['_hasContent'](_0x2219a7))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x27e3a0=_0x4552d2(),ranges:_0x398603,comment:_0xd7c92a}={}){const _0x19be78=this['editor']['model'],_0x51a5c5=_0x398603??Array['from'](_0x19be78['document']['selection']['getRanges']()),_0x3f022d=[];for(const _0x4d7999 of _0x51a5c5)this['_hasContent'](_0x4d7999)&&_0x3f022d['push'](this['_trimToContent'](_0x4d7999));if(!_0x3f022d['length'])throw new _0x13348f('addcommentthreadcommand-incorrect-ranges',null);_0xd7c92a&&this['_createCommentThread'](_0x27e3a0,_0xd7c92a),this['_createMarkersFromRanges'](_0x27e3a0,_0x3f022d,!!_0xd7c92a);}['_createMarkersFromRanges'](_0x23db8f,_0x3ce6ad,_0x588ba5){this['editor']['model']['change'](_0x429ecd=>{for(const _0x3b2e2d of _0x3ce6ad){const _0x5048a5=_0x4552d2()['substr'](0x1,0x5),_0x2eb9c4='comment:'+_0x23db8f+':'+_0x5048a5;_0x429ecd['addMarker'](_0x2eb9c4,{'range':_0x3b2e2d,'usingOperation':_0x588ba5,'affectsData':_0x588ba5});}});}['_createCommentThread'](_0x5e0df7,_0x1470f2){const _0x568bd8=this['editor']['plugins']['get']('CommentsRepository'),_0x21bc7c=this['editor']['config']['get']('collaboration.channelId'),_0x1eed81=this['editor']['plugins']['get']('Users')['me'];if(!_0x1eed81)throw new _0x13348f('addcommentthreadcommand-user-not-found',null);_0x568bd8['addCommentThread']({'threadId':_0x5e0df7,'channelId':_0x21bc7c,'comments':[{'authorId':_0x1eed81['id'],'content':_0x1470f2,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x6c10ca){for(const _0x409e3d of _0x6c10ca['getItems']())if(this['_itemIsContent'](_0x409e3d))return!0x0;return!0x1;}['_itemIsContent'](_0x4c904d){return _0x4c904d['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4c904d)&&!_0x4c904d['is']('element','tableCell');}['_trimToContent'](_0x331eb4){const _0x1e5e7b=_0x2da737=>!this['_itemIsContent'](_0x2da737['item']),_0x17c48e=_0x331eb4['start']['getLastMatchingPosition'](_0x1e5e7b),_0xd6cda8=_0x331eb4['end']['getLastMatchingPosition'](_0x1e5e7b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x17c48e,_0xd6cda8);}}class b extends _0x4e6af8{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd316a8){super(_0xd316a8),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4ce230=this['editor'],_0x4367b0=_0x4ce230['model']['document']['selection'],_0x26fef9=_0x5d3d29(()=>this['refreshSelectedViews'](),0xa);_0x4367b0['on']('change:range',(_0x58b193,_0x300481)=>{_0x300481['directChange']&&(_0x26fef9['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x4ce230['editing']['view']['document'],'change:isFocused',(_0x5c484f,_0x1fba97,_0x47f824)=>{_0x47f824&&_0x26fef9();}),this['listenTo'](_0x4ce230['ui']['focusTracker'],'change:isFocused',(_0x1d7e32,_0x510ea9,_0x265a1e)=>{_0x265a1e||this['fire']('blur',{'isAnnotationTracked':_0x2eade0=>this['_editorAnnotationsData']['has'](_0x2eade0['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x421661){if(this['_editorAnnotations']['has'](_0x421661['view']))return;this['_editorAnnotations']['add'](_0x421661['view']),this['editor']['ui']['focusTracker']['add'](_0x421661['view']['element']);const _0x2753ec=this['editor']['plugins']['get'](y);this['listenTo'](_0x2753ec['collection'],'remove',(_0x19aa98,_0x16efb9)=>{this['editor']['ui']['focusTracker']['remove'](_0x16efb9['view']['element']),this['_editorAnnotations']['delete'](_0x16efb9['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x11070e){if('function'!=typeof _0x11070e)throw new _0x13348f('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x11070e);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x58cf99,annotations:_0x3f208d}){const _0x2bed0c=[],_0xf5cff5=this['editor']['model']['document']['selection'],_0x3ff78e=Array['from'](_0xf5cff5['getRanges']());for(const [_0x22065e,_0x1ba3b1]of this['_editorAnnotationsData']){const _0x531cca=_0x4138a2(_0x1ba3b1),_0x50f50c=_0x3f208d['getByInnerView'](_0x22065e);_0x531cca&&_0x50f50c&&_0x2bed0c['push']({'annotation':_0x50f50c,'range':_0x531cca});}function _0x4138a2(_0x35e9e5){for(const _0x5ef173 of _0x35e9e5)for(const _0xe61484 of _0x3ff78e)if(_0x5ef173['containsRange'](_0xe61484,!_0xf5cff5['isCollapsed']))return _0x5ef173;return null;}return _0x2bed0c['sort']((_0xdc3bc2,_0x294d1f)=>{const _0x459685=_0xdc3bc2['range'],_0x405071=_0x294d1f['range'];if(!_0x459685['isEqual'](_0x405071)){if(_0x459685['containsRange'](_0x405071,!0x0))return 0x1;if(_0x405071['containsRange'](_0x459685,!0x0))return-0x1;}return _0xdc3bc2['annotation']==_0x58cf99?-0x1:_0x294d1f['annotation']==_0x58cf99?0x1:0x0;})['map'](_0x21200c=>_0x21200c['annotation']);}get['_editorAnnotationsData'](){const _0x1954ff=new Map();for(const _0x5df383 of Array['from'](this['_dataCollectors']))for(const [_0x24e680,_0x3f9b3e]of _0x5df383())_0x1954ff['set'](_0x24e680,_0x3f9b3e);return _0x1954ff;}}class st extends _0x4e6af8{['afterInit'](){const _0x35ce18=this['editor'];if(!_0x35ce18['plugins']['has']('RestrictedEditingModeEditing'))return;_0x35ce18['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x4e6af8{constructor(_0x1158d8){super(_0x1158d8),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x11ef48=this['editor'],_0x3a19ef=_0x11ef48['commands']['get']('importWord'),_0x41e1ed=_0x11ef48['plugins']['get'](it);_0x3a19ef&&(_0x3a19ef['on']('execute',(_0x83bfad,[,_0x414e5f])=>{_0x414e5f['collaboration_features']={'comments':!0x0,'user_id':_0x41e1ed['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3a19ef,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5446d5,_0x5cd6ec){const {comment_threads:_0xafa0d8}=_0x5cd6ec;_0xafa0d8&&_0xafa0d8['forEach'](({thread_id:_0x100bfc,comments:_0x2f2afb,is_resolved:_0x3cc749})=>{const _0x672c17=new Date(),_0x10ac8b=_0x2f2afb['map'](({author:_0x199923,content:_0x6ba265,created_at:_0x7421ef})=>({'content':_0x6ba265,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x672c17,'attributes':{'@external':{'authorName':_0x199923,'createdAt':_0x7421ef?new Date(_0x7421ef):new Date(),'source':'importWord'}}})),_0x3731d7=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3731d7,'threadId':_0x100bfc,'comments':_0x10ac8b,'resolvedAt':_0x3cc749?_0x672c17:null});});}}class at extends _0x4e6af8{constructor(_0x2f1ce0){super(_0x2f1ce0),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x436fce=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x436fce,'contentInsertion',(_0x59fe9c,_0x917f5d)=>this['_removeMarkersWithoutThreads'](_0x917f5d['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xcdf445){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xcdf445;const _0x1c2cbd=this['editor']['plugins']['get']('CommentsRepository');for(const _0x365956 of _0xcdf445['keys']()){const [_0x598e05,_0x410f8e]=_0x365956['split'](':');'comment'!=_0x598e05||_0x1c2cbd['hasCommentThread'](_0x410f8e)||_0xcdf445['delete'](_0x365956);}return _0xcdf445;}['_registerMarkerInClipboardPipeline'](){const _0x26eb6d=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x56257c=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x56257c&&_0x26eb6d['_registerMarkerToCopy']('comment',_0x56257c);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1a3b3a){switch(_0x1a3b3a){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2ac85e){const _0x31c21a=_0x2ac85e['split'](':');return{'group':_0x31c21a[0x0],'id':_0x31c21a[0x1],'part':_0x31c21a[0x2]};}class ut extends _0x4e6af8{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1d5099,_0x1c2f2c)=>{if(!_0x1c2f2c['options']['showCommentHighlights'])return null;if(_0x1c2f2c['options']['ignoreResolvedComments']){const {id:_0x30d49e}=ft(_0x1d5099['markerName']),_0x25f963=this['editor']['plugins']['get'](o);if(_0x25f963['getCommentThread'](_0x30d49e)?.['isResolved']&&_0x1d5099['item'])return _0x1c2f2c['consumable']['consume'](_0x1d5099['item'],'addMarker:'+_0x1d5099['markerName']),_0x1c2f2c['consumable']['consume'](_0x1d5099['item'],'removeMarker:'+_0x1d5099['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5e3b07=>{_0x5e3b07['on']('addMarker:comment',(_0x5a767c,_0x35cd2a,_0x28155b)=>{if(!_0x28155b['options']['showCommentHighlights'])return;const _0x2978a2=_0x35cd2a['item'];if(!_0x2978a2)return;const _0x28f3a8=_0x28155b['mapper']['toViewElement'](_0x2978a2);this['editor']['model']['schema']['isObject'](_0x2978a2)&&_0x28f3a8&&!_0x28f3a8['getCustomProperty']('widget')&&_0x28f3a8['is']('containerElement')&&_0x660b85(_0x28f3a8,_0x28155b['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4a5c24,{writer:_0x3879a5,options:_0xb0f25e})=>{if(!_0xb0f25e['showCommentHighlights'])return null;const _0x14872d=_0x3879a5['createContainerElement']('div'),_0x386c5a=_0x3879a5['createEmptyElement']('hr');return _0x3879a5['addClass']('ck-horizontal-line',_0x14872d),_0x3879a5['insert'](_0x3879a5['createPositionAt'](_0x14872d,0x0),_0x386c5a),_0x14872d;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x239284,{writer:_0x5535f1,options:_0x15aff5})=>{if(!_0x15aff5['showCommentHighlights'])return null;const _0x52d9bb=_0x5535f1['createContainerElement']('span'),_0x29c233=_0x5535f1['createEmptyElement']('img');return _0x5535f1['addClass']('image-inline',_0x52d9bb),_0x5535f1['insert'](_0x5535f1['createPositionAt'](_0x52d9bb,0x0),_0x29c233),_0x52d9bb;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4dcb14,{writer:_0xfe5b6,options:_0x2845d9})=>{if(_0x2845d9['showCommentHighlights'])return _0xfe5b6['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x43ae88,_0x259727,_0x430497)=>{_0x430497['options']['showCommentHighlights']&&_0x43ae88['stop']();},{'priority':'high'});}}class r extends _0x4e6af8{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(_0xe741f7){super(_0xe741f7),this['set']('isThreadsLoadingPaused',!0x0),_0xe741f7['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2e3a5a,_0x39ccc3,_0x19e54d,_0x146e6f)=>{const _0x31dea6=_0xe741f7['plugins']['get'](o),_0xde112e=_0x19e54d?ft(_0x19e54d)['id']:null;_0xe741f7['model']['change'](()=>{if(_0xde112e){const _0x240758=this['getAllMarkersForId'](_0xde112e);for(const _0x3e9002 of _0x240758)_0xe741f7['editing']['reconvertMarker'](_0x3e9002);}if(_0x146e6f){const {id:_0x3ab43a}=ft(_0x146e6f),_0x18084e=_0x31dea6['getCommentThread'](_0x3ab43a);if(_0x18084e&&_0x18084e['unlinkedAt'])return;if(_0x18084e&&!_0x18084e['isAttached'])return;const _0x5656ec=this['getAllMarkersForId'](_0x3ab43a);for(const _0x24efd6 of _0x5656ec)_0xe741f7['editing']['reconvertMarker'](_0x24efd6);}}),_0xde112e&&this['scrollToThreadMarker'](_0xde112e);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x331724=this['editor'],_0x599b79=_0x331724['plugins']['get'](o),_0x4224bd=_0x331724['config']['get']('collaboration.channelId'),_0x5313f1=_0x599b79['getCommentThreads']()['filter'](_0x4ce083=>_0x4ce083['channelId']!==_0x4224bd);_0x331724['commands']['add']('addCommentThread',new ot(_0x331724)),this['listenTo'](_0x331724,'change:isReadOnly',(_0x5ec75b,_0x4a9b29,_0x32b5c5)=>{_0x599b79['switchReadOnly'](_0x32b5c5,_0x331724['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x599b79,dt('addCommentThread',_0x4224bd),(_0x5652b4,{threadId:_0x20cbef})=>{const _0x4d2c9d=this['editor']['plugins']['get'](o)['getCommentThread'](_0x20cbef);_0x4d2c9d?.['unlinkedAt']&&this['_attachArchivedThread'](_0x20cbef);}),this['listenTo'](_0x599b79,dt('removeCommentThread',_0x4224bd),(_0x191e37,{threadId:_0x3ed752})=>{_0x331724['model']['enqueueChange']({'isUndoable':!0x1},_0x1e0f78=>{const _0x593a4a=this['getAllMarkersForId'](_0x3ed752);for(const _0x5e1200 of _0x593a4a)_0x1e0f78['removeMarker'](_0x5e1200);});}),this['listenTo'](_0x599b79,dt('resolveCommentThread',_0x4224bd),(_0xdbb53f,{threadId:_0x114a2d})=>{(this['_reconvertMarkers'](_0x114a2d),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x114a2d)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x599b79,dt('reopenCommentThread',_0x4224bd),(_0x17a53b,{threadId:_0x58c491})=>{this['_reconvertMarkers'](_0x58c491);},{'priority':'low'}),this['listenTo'](_0x599b79,dt('addComment',_0x4224bd),(_0x26ac50,{threadId:_0x2b600c,isFromAdapter:_0x5b1cde})=>{const _0x556460=this['getAllMarkersForId'](_0x2b600c);if(_0x5b1cde||0x0==_0x556460['length']||!_0x599b79['hasCommentThread'](_0x2b600c))return;0x1===_0x599b79['getCommentThread'](_0x2b600c)['length']&&_0x331724['model']['enqueueChange']({'isUndoable':!0x1},_0xca5310=>{for(const _0x1cb286 of _0x556460)_0xca5310['updateMarker'](_0x1cb286,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x5313f1);}['afterInit'](){!async function(_0x50fc8d){const _0x45fac3=_0x15c2cb([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x428fea=0x73460ab3,_0x1463de=0x73418bdb^_0x428fea,_0x108ac1=window[_0x15c2cb([0x44,0x61,0x74,0x65])][_0x15c2cb([0x6e,0x6f,0x77])](),_0xd68e01=_0x50fc8d[_0x15c2cb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50db76=new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1256=>{_0xd68e01[_0x15c2cb([0x6f,0x6e,0x63,0x65])](_0x15c2cb([0x72,0x65,0x61,0x64,0x79]),_0x4a1256);}),_0x445bf3={[_0x15c2cb([0x6b,0x74,0x79])]:_0x15c2cb([0x45,0x43]),[_0x15c2cb([0x75,0x73,0x65])]:_0x15c2cb([0x73,0x69,0x67]),[_0x15c2cb([0x63,0x72,0x76])]:_0x15c2cb([0x50,0x2d,0x32,0x35,0x36]),[_0x15c2cb([0x78])]:_0x15c2cb([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]),[_0x15c2cb([0x79])]:_0x15c2cb([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]),[_0x15c2cb([0x61,0x6c,0x67])]:_0x15c2cb([0x45,0x53,0x32,0x35,0x36])},_0x25753e=_0xd68e01[_0x15c2cb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15c2cb([0x67,0x65,0x74])](_0x15c2cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12a000(){let _0x38709c,_0x2710ce=null,_0x3f0c07=null;try{if(_0x25753e==_0x15c2cb([0x47,0x50,0x4c]))return _0x15c2cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38709c=_0x54992e(),!_0x38709c)return _0x15c2cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38709c[_0x15c2cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f0c07=_0x3dabc2(_0x38709c[_0x15c2cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38709c[_0x15c2cb([0x6a,0x74,0x69])])),await _0x58d62d()?_0x742419()?_0x4487a9()?_0x15c2cb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x342bd9()?(_0x38709c[_0x15c2cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15c2cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2710ce=_0x386169(_0x15c2cb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8e4d69()):_0x15c2cb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15c2cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15c2cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15c2cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4487a9(){const _0x2d10f6=[_0x15c2cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15c2cb([0x74,0x72,0x69,0x61,0x6c])][_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38709c[_0x15c2cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x108ac1/0x3e8:0xe10*_0x1463de;return _0x38709c[_0x15c2cb([0x65,0x78,0x70])]<_0x2d10f6;}function _0x742419(){const _0x444047=_0x38709c[_0x15c2cb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x444047)return!0x1;if(_0x444047[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c2cb([0x2a])))return!0x0;if(_0x444047[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c2cb([0x43,0x4d,0x54])))return!0x0;if(_0x444047[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c2cb([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x54c939())return!0x0;if(_0x444047[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c2cb([0x52,0x43,0x4d,0x54]))){if(_0x47c225())return!0x0;if(_0x5178ff()||_0x41d934())return!0x0;}return!0x1;}function _0x342bd9(){const _0x285073=_0x38709c[_0x15c2cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x285073||0x0==_0x285073[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xff1ede}=new URL(window[_0x15c2cb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x285073[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff1ede))return!0x0;const _0x4270eb=_0xff1ede[_0x15c2cb([0x73,0x70,0x6c,0x69,0x74])](_0x15c2cb([0x2e]));return _0x285073[_0x15c2cb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1af407=>_0x1af407[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c2cb([0x2a])))[_0x15c2cb([0x6d,0x61,0x70])](_0x15a4ea=>_0x15a4ea[_0x15c2cb([0x73,0x70,0x6c,0x69,0x74])](_0x15c2cb([0x2e])))[_0x15c2cb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x170e9f=>_0x170e9f[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4270eb[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15c2cb([0x6d,0x61,0x70])](_0x1538c4=>Array(_0x4270eb[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1538c4[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15c2cb([0x66,0x69,0x6c,0x6c])](_0x1538c4[0x0]===_0x15c2cb([0x2a])?_0x15c2cb([0x2a]):'')[_0x15c2cb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1538c4))[_0x15c2cb([0x73,0x6f,0x6d,0x65])](_0x3e6f75=>_0x4270eb[_0x15c2cb([0x65,0x76,0x65,0x72,0x79])]((_0x3cdb95,_0x9633c)=>_0x3e6f75[_0x9633c]===_0x3cdb95||_0x3e6f75[_0x9633c]===_0x15c2cb([0x2a])));}function _0x8e4d69(){return _0x2710ce&&_0x3f0c07?new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26d319,_0x3625cf)=>{_0x2710ce[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x26d319,_0x3625cf),_0x3f0c07[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x4fb5a4=>{_0x4fb5a4!=_0x15c2cb([0x56,0x61,0x6c,0x69,0x64])&&_0x26d319(_0x4fb5a4);},_0x3625cf);}):_0x2710ce||_0x3f0c07||_0x15c2cb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3dabc2(_0x191a90,_0x2c807b){return new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bd78a=>{if(_0x110c18())return _0x4bd78a(_0x15c2cb([0x56,0x61,0x6c,0x69,0x64]));_0x434957(),_0xd68e01[_0x15c2cb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15c2cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f720d=!0x1;const _0x26238a=_0x4552d2();function _0xbad6b4(_0xf3e76b){return!!_0xf3e76b&&(typeof _0xf3e76b===_0x15c2cb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf3e76b===_0x15c2cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf3e76b[_0x15c2cb([0x74,0x68,0x65,0x6e])]===_0x15c2cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf3e76b[_0x15c2cb([0x63,0x61,0x74,0x63,0x68])]===_0x15c2cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5da3cb(_0x5aa526){_0x2526ff(_0x5aa526)[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x14bd58=>{if(!_0x14bd58||_0x14bd58[_0x15c2cb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15c2cb([0x6f,0x6b]))return _0x15c2cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c5401(_0x1fb581(_0x26238a+_0x2c807b))!=_0x14bd58[_0x15c2cb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15c2cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15c2cb([0x56,0x61,0x6c,0x69,0x64]);})[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x19166c=>(_0x268745(),_0x19166c),()=>{const _0x262dc7=_0x2eee81();return null==_0x262dc7?(_0x268745(),_0x15c2cb([0x56,0x61,0x6c,0x69,0x64])):_0x15c2cb(_0x108ac1-_0x262dc7>(0x574a8eb3^_0x428fea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x4bd78a)[_0x15c2cb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bd78a(_0x15c2cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x218cca=0x7370e433^_0x428fea;function _0x268745(){const _0x57b768=_0x15c2cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c5401(_0x1fb581(_0x191a90)),_0x268280=_0x11e662(_0x2c5401(window[_0x15c2cb([0x4d,0x61,0x74,0x68])][_0x15c2cb([0x63,0x65,0x69,0x6c])](_0x108ac1/_0x218cca)));window[_0x15c2cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15c2cb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57b768,_0x268280);}function _0x2eee81(){const _0x486f98=_0x15c2cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c5401(_0x1fb581(_0x191a90)),_0x583cf4=window[_0x15c2cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15c2cb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x486f98);return _0x583cf4?window[_0x15c2cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11e662(_0x583cf4),0x10)*_0x218cca:null;}function _0x2526ff(_0x3c276b){return new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f0103,_0x454c95)=>{_0x3c276b[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x5f0103,_0x454c95),window[_0x15c2cb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x454c95,0x7347de73^_0x428fea);});}}_0xd68e01[_0x15c2cb([0x6f,0x6e])](_0x15c2cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2eadac,_0x3e8f9c)=>{if(_0x3e8f9c[0x0]!=_0x191a90)return _0x4bd78a(_0x15c2cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e8f9c[0x1]={..._0x3e8f9c[0x1],[_0x15c2cb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26238a};},{[_0x15c2cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15c2cb([0x68,0x69,0x67,0x68])}),_0xd68e01[_0x15c2cb([0x6f,0x6e])](_0x15c2cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xafae6=>{_0xbad6b4(_0xafae6[_0x15c2cb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f720d=!0x0,_0x5da3cb(_0xafae6[_0x15c2cb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15c2cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15c2cb([0x6c,0x6f,0x77])}),_0x50db76[_0x15c2cb([0x74,0x68,0x65,0x6e])](()=>{_0x3f720d||_0x4bd78a(_0x15c2cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x110c18(){return _0xd68e01[_0x15c2cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15c2cb([0x76,0x69,0x65,0x77])][_0x15c2cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15c2cb([0x61,0x75,0x74,0x6f]);}function _0x434957(){_0xd68e01[_0x15c2cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15c2cb([0x76,0x69,0x65,0x77])][_0x15c2cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15c2cb([0x61,0x75,0x74,0x6f]);}}function _0x386169(_0x1e2bed){const _0x953c=[new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bb9ad=>setTimeout(_0x3bb9ad,0x734f347f^_0x428fea)),_0x50db76[_0x15c2cb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26d0fd=>{let _0x50f927=0x0;_0xd68e01[_0x15c2cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c2cb([0x6f,0x6e])](_0x15c2cb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x410863,_0x4836a9)=>{_0x4836a9[0x0][_0x15c2cb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50f927++,_0x50f927==(0x73460f5b^_0x428fea)&&(_0x26d0fd(),_0x410863[_0x15c2cb([0x6f,0x66,0x66])]());});}))];return window[_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15c2cb([0x72,0x61,0x63,0x65])](_0x953c)[_0x15c2cb([0x74,0x68,0x65,0x6e])](()=>_0x1e2bed);}async function _0x584339(){await _0x50db76,_0xd68e01[_0x15c2cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c2cb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37d233,_0xd68e01[_0x15c2cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c2cb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37d233,_0xd68e01[_0x15c2cb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15c2cb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54c939(){return window[_0x15c2cb([0x67,0x6c,0x6f,0x62])]&&window[_0x15c2cb([0x67,0x6c,0x6f,0x62])][_0x15c2cb([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x47c225(){return _0x2ac50b(_0x15c2cb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52a304(_0x15c2cb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15c2cb([0x73,0x74,0x61,0x74,0x65])]==_0x15c2cb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5178ff(){return _0x2ac50b(_0x15c2cb([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 _0x41d934(){return _0x2ac50b(_0x15c2cb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5e14a4(_0x5e4b1e){const _0x3c371f=_0x3d22e1();_0xd68e01[_0x3c371f]=_0x15c2cb([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e4b1e,_0x5e4b1e!=_0x15c2cb([0x56,0x61,0x6c,0x69,0x64])&&_0x584339();}function _0x3d22e1(){const _0x21faa8=window[_0x15c2cb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15c2cb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15c2cb([0x6e,0x6f,0x77])]())[_0x15c2cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15c2cb([0x2e]),'');let _0x163069=_0x15c2cb([0x4b]);for(let _0x20b264=0x0;_0x20b264<_0x21faa8[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20b264+=0x2){let _0xbb208a=window[_0x15c2cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21faa8[_0x15c2cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20b264,_0x20b264+0x2));_0xbb208a>=_0x45fac3[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbb208a-=_0x45fac3[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x163069+=_0x45fac3[_0xbb208a];}return _0x163069;}function _0x54992e(){const _0x2c306a=_0x25753e[_0x15c2cb([0x73,0x70,0x6c,0x69,0x74])](_0x15c2cb([0x2e]));if(0x3!=_0x2c306a[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3641d9(_0x2c306a[0x1]);function _0x3641d9(_0x3501db){const _0x163b49=_0x1464fb(_0x3501db);return _0x163b49&&_0x547a34()?_0x163b49:null;function _0x547a34(){const _0x271d08=_0x163b49[_0x15c2cb([0x6a,0x74,0x69])],_0x1a16b0=window[_0x15c2cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271d08[_0x15c2cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x271d08[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc2ae75={..._0x163b49,[_0x15c2cb([0x6a,0x74,0x69])]:_0x271d08[_0x15c2cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x271d08[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc2ae75[_0x15c2cb([0x76,0x63])],_0x1fb581(_0xc2ae75)==_0x1a16b0;}}}async function _0x58d62d(){let _0x1b1077=!0x0;try{const _0x48dd0b=_0x25753e[_0x15c2cb([0x73,0x70,0x6c,0x69,0x74])](_0x15c2cb([0x2e])),[_0x34c998,_0x462602,_0x36db5d]=_0x48dd0b;return _0x3623cf(_0x34c998),await _0x33ca32(_0x34c998,_0x462602,_0x36db5d),_0x1b1077;}catch{return!0x1;}function _0x3623cf(_0x4225fc){const _0x2b702e=_0x1464fb(_0x4225fc);_0x2b702e&&_0x2b702e[_0x15c2cb([0x61,0x6c,0x67])]==_0x15c2cb([0x45,0x53,0x32,0x35,0x36])||(_0x1b1077=!0x1);}async function _0x33ca32(_0x200c8d,_0x3dcb65,_0x281cc6){const _0x369172=window[_0x15c2cb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15c2cb([0x66,0x72,0x6f,0x6d])](_0x544690(_0x281cc6),_0x344661=>_0x344661[_0x15c2cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x212cac=new window[(_0x15c2cb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15c2cb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x200c8d+_0x15c2cb([0x2e])+_0x3dcb65),_0x389f30=window[_0x15c2cb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15c2cb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x389f30)return;const _0x5ecb38=await _0x389f30[_0x15c2cb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15c2cb([0x6a,0x77,0x6b]),_0x445bf3,{[_0x15c2cb([0x6e,0x61,0x6d,0x65])]:_0x15c2cb([0x45,0x43,0x44,0x53,0x41]),[_0x15c2cb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15c2cb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15c2cb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x389f30[_0x15c2cb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15c2cb([0x6e,0x61,0x6d,0x65])]:_0x15c2cb([0x45,0x43,0x44,0x53,0x41]),[_0x15c2cb([0x68,0x61,0x73,0x68])]:{[_0x15c2cb([0x6e,0x61,0x6d,0x65])]:_0x15c2cb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ecb38,_0x369172,_0x212cac)||(_0x1b1077=!0x1);}}function _0x1464fb(_0xa4c22b){return _0xa4c22b[_0x15c2cb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15c2cb([0x65,0x79]))?JSON[_0x15c2cb([0x70,0x61,0x72,0x73,0x65])](_0x544690(_0xa4c22b)):null;}function _0x544690(_0x159f0a){return window[_0x15c2cb([0x61,0x74,0x6f,0x62])](_0x159f0a[_0x15c2cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15c2cb([0x2b]))[_0x15c2cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15c2cb([0x2f])));}function _0x1fb581(_0x3a91ce){let _0x128b32=0x1505;function _0x203982(_0x3401c7){for(let _0x524376=0x0;_0x524376<_0x3401c7[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x524376++){const _0x13a1d3=_0x3401c7[_0x15c2cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x524376);_0x128b32=(_0x128b32<<0x5)+_0x128b32+_0x13a1d3,_0x128b32&=_0x128b32;}}function _0x48e7d6(_0x259f2c){Array[_0x15c2cb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x259f2c)?_0x259f2c[_0x15c2cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48e7d6):_0x259f2c&&typeof _0x259f2c==_0x15c2cb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15c2cb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x259f2c)[_0x15c2cb([0x73,0x6f,0x72,0x74])]()[_0x15c2cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xefdacc,_0x2413c5])=>{_0x203982(_0xefdacc),_0x48e7d6(_0x2413c5);}):_0x203982(window[_0x15c2cb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x259f2c));}return _0x48e7d6(_0x3a91ce),_0x128b32>>>0x0;}function _0x2c5401(_0x2421e9){return _0x2421e9[_0x15c2cb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15c2cb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15c2cb([0x30]));}function _0x11e662(_0x49373d){return _0x49373d[_0x15c2cb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15c2cb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15c2cb([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ac50b(_0x471a99){return _0xd68e01[_0x15c2cb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15c2cb([0x68,0x61,0x73])](_0x471a99);}function _0x52a304(_0x2e8991){return _0xd68e01[_0x15c2cb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15c2cb([0x67,0x65,0x74])](_0x2e8991);}function _0x37d233(){}function _0x15c2cb(_0x4d2bb8){return _0x4d2bb8['map'](_0x613e34=>String['fromCharCode'](_0x613e34))['join']('');}_0x5e14a4(await _0x12a000());}(this);}['destroy'](){const _0x2f751c=this['editor']['plugins']['get'](o),_0x42e9be=this['editor']['config']['get']('collaboration.channelId');for(const _0x3104eb of _0x2f751c['getCommentThreads']({'channelId':_0x42e9be}))_0x2f751c['_detachCommentThread'](_0x3104eb['id']),_0x2f751c['_threads']['delete'](_0x3104eb['id']);super['destroy']();}['hasMarkerForId'](_0x4339ab){return this['getAllMarkersForId'](_0x4339ab)['length']>0x0;}['getAllMarkersForId'](_0x2b9ebe){const _0x95d2cc=[];for(const _0x136a27 of this['editor']['model']['markers'])_0x136a27['name']['startsWith']('comment:'+_0x2b9ebe)&&_0x95d2cc['push'](_0x136a27);return _0x95d2cc;}['scrollToThreadMarker'](_0x5e255a){setTimeout(()=>{const _0x473e4d=this['_getTargetForId'](_0x5e255a);if(!_0x473e4d)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5e255a&&nt({'target':_0x473e4d[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x2bae87){this['editor']['model']['change'](()=>{for(const _0x115c56 of this['getAllMarkersForId'](_0x2bae87))this['editor']['editing']['reconvertMarker'](_0x115c56);});}['_attachArchivedThread'](_0xbc799b){const _0x1b03cf=this['editor']['plugins']['get'](o),_0x573351=this['editor']['plugins']['get'](b),_0x25f325=_0x1b03cf['getCommentThread'](_0xbc799b);if(!_0x25f325['isAttached']){const _0x3b5219=_0x25f325['attachTo'](()=>this['_getTargetForId'](_0x25f325['id']));_0x573351['registerAnnotation'](_0x3b5219),_0x25f325['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x30e0a=this['editor'],_0x257b93=_0x30e0a['plugins']['get'](it);_0x30e0a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x2f18b3,_0x2a4f6f)=>{const {id:_0x5a193d}=ft(_0x2f18b3['markerName']),_0x56ac17=_0x30e0a['plugins']['get'](o)['getCommentThread'](_0x5a193d),_0x1736a7=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5a193d;let _0x580d1d;if(_0x56ac17&&_0x56ac17['isResolved']&&!_0x1736a7&&_0x2f18b3['item'])return _0x2a4f6f['consumable']['consume'](_0x2f18b3['item'],'addMarker:'+_0x2f18b3['markerName']),_0x2a4f6f['consumable']['consume'](_0x2f18b3['item'],'removeMarker:'+_0x2f18b3['markerName']),null;const _0x3cc1b9=['ck-comment-marker'];return _0x1736a7&&_0x3cc1b9['push']('ck-comment-marker--active'),_0x580d1d=_0x56ac17?.['length']?_0x56ac17['comments']['first']['author']['id']:_0x257b93['me']['id'],{'classes':_0x3cc1b9,'attributes':{'data-comment':_0x5a193d,'data-author-id':_0x580d1d}};}}),_0x30e0a['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x324d28,{options:_0x477177})=>{if(_0x477177['showCommentHighlights'])return null;const _0x69a827=_0x30e0a['plugins']['get'](o),_0xb570cf=_0x30e0a['model']['markers']['get'](_0x324d28),{id:_0xb3fa3c,part:_0x5647e4}=ft(_0x324d28);return _0xb570cf&&!_0xb570cf['affectsData']||_0x477177['ignoreResolvedComments']&&_0x69a827['getCommentThread'](_0xb3fa3c)?.['isResolved']?null:{'group':'comment','name':_0x5647e4?_0xb3fa3c+':'+_0x5647e4:_0xb3fa3c};}}),_0x30e0a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x134a20,{writer:_0x46ab57})=>_0x46ab57['createElement']('$marker',{'data-name':'comment:'+_0x134a20['getAttribute']('id')})}),_0x30e0a['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x442b4a=this['editor'],_0x2a9b37=_0x442b4a['plugins']['get'](o),_0x25d000=new Set(),_0x10975e=new Set();_0x442b4a['model']['document']['registerPostFixer'](_0xbc4582=>{let _0x5467d3=!0x1;for(const {name:_0x1fe6f6,data:_0x5e0706}of _0x442b4a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x32fb2c,id:_0xe8485d}=ft(_0x1fe6f6);let _0x35bfc2=_0x5e0706['newRange'];if('comment'!==_0x32fb2c||!_0x35bfc2)continue;const _0x972e63='$graveyard'===_0x35bfc2['root']['rootName'];_0x972e63||(_0x35bfc2=ht(_0x35bfc2,_0x442b4a['model']),!_0x35bfc2||_0x35bfc2['isCollapsed']||!_0x5e0706['newRange']||_0x35bfc2['isEqual'](_0x5e0706['newRange']))?_0x442b4a['model']['hasContent'](_0x35bfc2)&&!_0x972e63?this['isThreadsLoadingPaused']?_0x25d000['add'](_0x1fe6f6):this['_handleThreadMarker'](_0x1fe6f6,_0xe8485d):(_0x10975e['add'](_0x1fe6f6),_0x25d000['delete'](_0x1fe6f6),_0xbc4582['removeMarker'](_0x1fe6f6),_0x5467d3=!0x0):(_0xbc4582['updateMarker'](_0x1fe6f6,{'range':_0x35bfc2}),_0x5467d3=!0x0);}return _0x5467d3;}),this['on']('change:isThreadsLoadingPaused',(_0xf3f2b2,_0x223d82,_0x35f3b9)=>{if(!_0x35f3b9&&_0x25d000['size'])for(const _0x31aac4 of _0x25d000){const {id:_0x26691a}=ft(_0x31aac4);_0x25d000['delete'](_0x31aac4),_0x442b4a['model']['markers']['get'](_0x31aac4)&&this['_handleThreadMarker'](_0x31aac4,_0x26691a);}}),this['listenTo'](_0x442b4a['model']['document'],'change',()=>{for(const {name:_0x3dfd1b,data:{newRange:_0x23d6b1}}of _0x442b4a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x19b96f,id:_0x4155cc}=ft(_0x3dfd1b);if('comment'!==_0x19b96f)continue;const _0x1d170c=_0x2a9b37['getCommentThread'](_0x4155cc),_0x227081=this['hasMarkerForId'](_0x4155cc);_0x1d170c&&(!_0x1d170c['_hasTargetInContent']&&_0x23d6b1&&_0x442b4a['editing']['view']['once']('render',()=>{const _0x3178ce=_0x442b4a['plugins']['get'](y),_0x115fac=_0x2a9b37['_threadToController']['get'](_0x1d170c)['view'];_0x3178ce['getByInnerView'](_0x115fac)['refreshVisibility']();},{'priority':'low'}),_0x1d170c['_hasTargetInContent']=_0x227081||!!_0x23d6b1),_0x23d6b1||(_0x10975e['add'](_0x3dfd1b),_0x25d000['delete'](_0x3dfd1b));}for(const _0x2f15ae of _0x10975e){const {id:_0x57b4e4}=ft(_0x2f15ae),_0x5843e4=_0x2a9b37['getCommentThread'](_0x57b4e4);if(_0x25d000['delete'](_0x2f15ae),!_0x5843e4)continue;const _0x299266=this['hasMarkerForId'](_0x57b4e4);_0x299266||_0x5843e4['isSubmitted']?_0x299266||_0x5843e4['unlinkedAt']||_0x5843e4['setUnlinkedAt'](new Date()):_0x5843e4['remove']();}_0x10975e['clear']();});}['_handleInitialThreads'](_0x261ad1){_0x261ad1['forEach'](_0x287f13=>{_0x287f13['unlinkedAt']&&this['_attachArchivedThread'](_0x287f13['id']);});}['_getTargetForId'](_0x37e48c){const _0x562fc2=this['editor'],_0x4c8cb8=this['getAllMarkersForId'](_0x37e48c);return et(_0x562fc2['editing'],_0x4c8cb8);}['_getTextContext'](_0x12e3d1){const _0x2e0c39=this['getAllMarkersForId'](_0x12e3d1);let _0x4f5148='',_0x49c770=!0x1;for(const _0x9f6c1 of _0x2e0c39){const _0xcfa07c=_0x9f6c1['getRange']();for(const _0xce090d of Array['from'](_0xcfa07c['getItems']()))_0xce090d['is']('$textProxy')?(_0x4f5148&&_0x49c770&&(_0x4f5148+='\x20',_0x49c770=!0x1),_0x4f5148+=_0xce090d['data']):_0x49c770=!0x0;_0x49c770=!0x0;}return _0x4f5148['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4b6bf7,_0x22b39d){const _0x3936e8=this['editor'],_0x107a2b=_0x3936e8['plugins']['get'](o);let _0x423b19=_0x107a2b['getCommentThread'](_0x22b39d);const _0x59a452=_0x3936e8['config']['get']('collaboration.channelId'),_0x194df6=_0x3936e8['plugins']['get'](b);if(_0x423b19&&(_0x423b19['unlinkedAt']&&_0x423b19['setUnlinkedAt'](null),_0x423b19['isAttached']))return _0x423b19;return!this['getAllMarkersForId'](_0x22b39d)[0x0]['managedUsingOperations']?_0x3936e8['editing']['view']['once']('render',()=>{if(_0x107a2b['getCommentThread'](_0x22b39d))return;const _0x58ff31=_0x3936e8['plugins']['get'](y);_0x423b19=_0x107a2b['openNewCommentThread']({'channelId':_0x59a452,'threadId':_0x22b39d,'target':()=>this['_getTargetForId'](_0x22b39d),'context':{'type':'text','value':this['_getTextContext'](_0x22b39d)}});const _0x135953=_0x107a2b['_threadToController']['get'](_0x423b19)['view'],_0xe1832c=_0x58ff31['getByInnerView'](_0x135953);_0xe1832c&&_0x194df6['registerAnnotation'](_0xe1832c);},{'priority':'low'}):_0x107a2b['fetchCommentThread']({'channelId':_0x59a452,'threadId':_0x22b39d})['then'](_0x7375ff=>{if('destroyed'!==_0x3936e8['state']){if(_0x423b19=_0x7375ff,_0x423b19&&!_0x423b19['isAttached']){const _0x2cb934=_0x423b19['attachTo'](()=>this['_getTargetForId'](_0x22b39d));_0x194df6['registerAnnotation'](_0x2cb934),_0x423b19['isResolved']&&this['_reconvertMarkers'](_0x22b39d);}else{if(!_0x423b19){const _0xe95e43=this['getAllMarkersForId'](_0x22b39d);_0x3936e8['model']['change'](_0x421620=>{for(const _0x132c72 of _0xe95e43)_0x421620['removeMarker'](_0x132c72);});}}}}),_0x423b19;}['_handleThreadMarker'](_0x14d1f4,_0x41fa1c){const _0x33aa78=this['_attachMarkerToThread'](_0x14d1f4,_0x41fa1c);_0x33aa78&&!_0x33aa78['context']&&_0x33aa78['setContext']({'type':'text','value':this['_getTextContext'](_0x41fa1c)});}['_initAriaMarkerChangeAnnouncements'](){const _0xe3c49c=this['editor'];rt(_0xe3c49c['model'],({left:_0x3696b0,entered:_0x47963c})=>{for(const _0x48f78b of _0x3696b0)if(mt(_0x48f78b)){_0xe3c49c['ui']['ariaLiveAnnouncer']['announce'](N(_0xe3c49c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x1ac3fb of _0x47963c)if(mt(_0x1ac3fb)){_0xe3c49c['ui']['ariaLiveAnnouncer']['announce'](N(_0xe3c49c['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x39c788)));break;}});}}function dt(_0x1a35fd,_0x589597){return _0x589597?_0x1a35fd+':'+_0x589597:_0x1a35fd;}function ht(_0x4e3779,_0x17393a){const _0x4cfb72=_0x17393a['schema'],_0x34d10c=_0x17393a['createRange'](_0x4e3779['start']);for(const _0x3da8f5 of _0x4e3779['getWalker']()){const {type:_0x4379da,item:_0xc07899,nextPosition:_0x504f02}=_0x3da8f5;if('text'===_0x4379da||_0x4cfb72['isObject'](_0xc07899)){const _0x627495=_0x17393a['createPositionBefore'](_0xc07899);_0x34d10c['isCollapsed']&&(_0x34d10c['start']=_0x627495),_0x34d10c['end']=_0x504f02;}}return _0x34d10c;}function mt(_0x5aa749){return'comment'===ft(_0x5aa749['name'])['group'];}class s extends _0x4e6af8{['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 _0xda0fe5=this['editor'],_0x2ff9d1=_0xda0fe5['plugins']['get'](o),_0x40455a=_0xda0fe5['plugins']['get'](r),_0x2e0686=_0xda0fe5['plugins']['get'](y),_0xeba9af=_0xda0fe5['plugins']['get'](b);_0xda0fe5['ui']['componentFactory']['add']('comment',()=>{const _0x17eb3e=this['_createUIButton'](_0x39d67e);return _0x17eb3e['tooltip']=!0x0,_0x17eb3e;}),_0xda0fe5['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x4dec93)),_0xeba9af['addSourceCollector'](()=>{const _0x105394=[];for(const [_0xa2c102,_0x318ee9]of _0x2ff9d1['_threadToController']){const _0x56c10b=_0x40455a['getAllMarkersForId'](_0xa2c102['id']),_0xf890b9=_0x56c10b['map'](_0x1353c7=>_0x1353c7['getRange']());_0x56c10b['length']>0x0&&_0x105394['push']([_0x318ee9['view'],_0xf890b9]);}return _0x105394;}),this['listenTo'](_0x2e0686,'change:activeAnnotations',(_0x12c114,_0x419200,_0x191d21)=>{const _0x534c92=Array['from'](_0x191d21)['map'](_0x2ab07c=>_0x2ab07c['innerView'])['find'](_0x237d19=>_0x2ff9d1['_viewToController']['has'](_0x237d19));if(!_0x534c92)return void(_0x40455a['activeMarker']=null);const _0x2c4162=_0x2ff9d1['_viewToController']['get'](_0x534c92)['model']['id'],_0x57654f='comment:'+_0x2c4162;_0x2c4162&&_0x40455a['hasMarkerForId'](_0x2c4162)?_0x40455a['activeMarker']=_0x57654f:_0x40455a['activeMarker']&&(_0x40455a['activeMarker']=null);}),this['listenTo'](_0x2ff9d1,'removeCommentThread',(_0x2e51d6,{threadId:_0x5c0f3d,isFromAdapter:_0x425048})=>{!_0x425048&&_0xda0fe5['ui']['focusTracker']['isFocused']&&_0x40455a['hasMarkerForId'](_0x5c0f3d)&&_0xda0fe5['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2ff9d1,'addComment',(_0x497056,{threadId:_0x491249,isFromAdapter:_0x11cf7a})=>{if(_0x11cf7a||!_0x40455a['hasMarkerForId'](_0x491249)||!_0x2ff9d1['hasCommentThread'](_0x491249))return;0x1===_0x2ff9d1['getCommentThread'](_0x491249)['length']&&(_0xda0fe5['editing']['view']['focus'](),_0x497056['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c7445=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3fea36;for(const _0xb40108 in _0x4c7445){const _0x52c126=_0xb40108,_0x4cafea=_0x4c7445[_0x52c126];if('commentsLicenseKeyValid'==_0x4cafea||'commentsLicenseKeyInvalid'==_0x4cafea||'commentsLicenseKeyExpired'==_0x4cafea||'commentsLicenseKeyDomainLimit'==_0x4cafea||'commentsLicenseKeyNotAllowed'==_0x4cafea||'commentsLicenseKeyEvaluationLimit'==_0x4cafea||'commentsLicenseKeyUsageLimit'==_0x4cafea){delete _0x4c7445[_0x52c126],_0x3fea36=_0x4cafea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3fea36&&_0x4c7445['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3fea36&&_0x4c7445['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3fea36&&_0x4c7445['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3fea36&&_0x4c7445['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3fea36&&_0x4c7445['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x3fea36&&_0x4c7445['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x77f079){const _0x2dc3d3=this['editor'],_0x142dc4=new _0x77f079(_0x2dc3d3['locale']),_0x5f5a51=_0x2dc3d3['commands']['get']('addCommentThread');return _0x142dc4['set']({'label':N(_0x2dc3d3['locale'],'Comment'),'icon':_0x61886d}),_0x142dc4['bind']('isEnabled')['to'](_0x5f5a51,'isEnabled',_0x5f5a51,'hasContent',(_0x4c98f4,_0x40d0dd)=>_0x4c98f4&&_0x40d0dd),this['listenTo'](_0x142dc4,'execute',()=>{_0x5f5a51['execute']();}),_0x142dc4;}}class i extends _0x4e6af8{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2ff148){super(_0x2ff148),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2f3cc8,_0x189353,_0x5ef5c6)=>{_0x5ef5c6?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x52114e,_0x2a4ffb]of this['editor']['commands'])_0x2a4ffb['affectsData']&&'addCommentThread'!==_0x52114e&&_0x2a4ffb['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x263805=this['editor']['editing']['view']['document'];this['listenTo'](_0x263805,'cut',_0x845fc4=>_0x845fc4['stop'](),{'priority':'highest'}),this['listenTo'](_0x263805,'clipboardInput',_0x4316e2=>_0x4316e2['stop'](),{'priority':'highest'}),this['listenTo'](_0x263805,'delete',_0x1bf188=>_0x1bf188['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x2726a5,_0x2b8cf9]of this['editor']['commands'])_0x2b8cf9['affectsData']&&'addCommentThread'!==_0x2726a5&&_0x2b8cf9['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x1c3a7a{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ee7d8){super(_0x4ee7d8),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4dc7dc=this['context']['plugins']['get'](y);this['listenTo'](_0x4dc7dc,'_activateAnnotation',(_0x49548a,_0x5e4a74)=>{for(const _0x3ea2bd of this['activeUIs']){const _0x14fc68=this['_uis']['get'](_0x3ea2bd);(0x0,this['uisData']['get'](_0x3ea2bd)['filter'])(_0x5e4a74)&&_0x14fc68['setActiveAnnotation'](_0x5e4a74);}}),this['listenTo'](_0x4dc7dc,'_deactivateAllAnnotations',()=>{for(const _0xa28353 of this['activeUIs']){this['_uis']['get'](_0xa28353)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4dc7dc['_visibleAnnotations'],'add',(_0x286c07,_0x2dfc8e)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2dfc8e);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4a3226){return this['activeUIs']['has'](_0x4a3226);}['activate'](_0x5f0f35,_0x469b26=this['defaultFilter']){const _0x43bee0=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x5f0f35))throw new _0x13348f('annotationsuis-missing-ui',this,{'uiName':_0x5f0f35});this['isActive'](_0x5f0f35)&&this['deactivate'](_0x5f0f35),this['activeUIs']['add'](_0x5f0f35);const _0x56f128=new S();v({'source':_0x43bee0['_visibleAnnotations'],'target':_0x56f128,'filter':_0x469b26}),this['uisData']['set'](_0x5f0f35,{'collection':_0x56f128,'filter':_0x469b26});const _0x31d406=this['_uis']['get'](_0x5f0f35);_0x31d406['attach'](_0x56f128),this['listenTo'](_0x31d406,'change:activeAnnotation',(_0x23ee6d,_0x9baa86,_0xbe70f8,_0x2ad5cf)=>{_0x2ad5cf&&_0x43bee0['_removeActiveAnnotation'](_0x2ad5cf),_0xbe70f8&&_0x43bee0['_addActiveAnnotation'](_0xbe70f8);});}['deactivate'](_0x364734){if(this['activeUIs']['delete'](_0x364734),!this['_uis']['has'](_0x364734))throw new _0x13348f('annotationsuis-missing-ui',this,{'uiName':_0x364734});const _0x3fc5ce=this['_uis']['get'](_0x364734);_0x3fc5ce['detach'](),this['stopListening'](_0x3fc5ce),this['uisData']['get'](_0x364734)['collection']['destroy'](),this['uisData']['delete'](_0x364734);}['switchTo'](_0x3efc1d){if(!this['_uis']['has'](_0x3efc1d))throw new _0x13348f('annotationsuis-missing-ui',this,{'uiName':_0x3efc1d});const _0x5246dd=this['context']['plugins']['get'](y),_0x2279e3=Array['from'](_0x5246dd['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3efc1d);const _0x3686ab=this['_uis']['get'](_0x3efc1d);_0x3686ab['setActiveAnnotation'](_0x2279e3),_0x3686ab['_setSelectedAnnotations']&&_0x2279e3&&_0x3686ab['_setSelectedAnnotations']([_0x2279e3]);}['deactivateAll'](){for(const _0x36a9a6 of this['activeUIs'])this['deactivate'](_0x36a9a6);}['register'](_0x21f0ae,_0x4823d0){if(this['_uis']['has'](_0x21f0ae))throw new _0x13348f('annotationsuis-register-already-registered');if('function'!=typeof _0x4823d0['attach']||'function'!=typeof _0x4823d0['detach']||'function'!=typeof _0x4823d0['setActiveAnnotation'])throw new _0x13348f('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x21f0ae,_0x4823d0);}['refilterAnnotations'](){const _0x5d9c11=this['context']['plugins']['get'](y)['collection'],_0x24f788=new Map(),_0x30c638=Array['from'](this['activeUIs']);for(const _0x39da22 of this['activeUIs']){const _0x10db17=this['uisData']['get'](_0x39da22)['collection'];for(const _0x2d69df of _0x10db17)_0x24f788['set'](_0x2d69df,_0x39da22);}for(const _0x3d6837 of _0x5d9c11){const _0x84bfb=_0x24f788['get'](_0x3d6837);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3d6837);const _0x22b2f5=_0x30c638['find'](_0x3856fc=>this['uisData']['get'](_0x3856fc)['filter'](_0x3d6837));_0x84bfb!==_0x22b2f5&&(_0x84bfb&&this['uisData']['get'](_0x84bfb)['collection']['remove'](_0x3d6837),_0x22b2f5&&this['uisData']['get'](_0x22b2f5)['collection']['add'](_0x3d6837));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xe13216){const _0x3cebf2=[];for(const _0x529add of this['activeUIs']){(0x0,this['uisData']['get'](_0x529add)['filter'])(_0xe13216)&&_0x3cebf2['push'](_0x529add);}if(_0x3cebf2['length']>0x1)throw new _0x13348f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3cebf2,'annotationType':_0xe13216['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x88c8f1){super(_0x88c8f1);const _0x1f1879=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 _0x119ecb(),this['focusCycler']=new _0x206411({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x1f1879['to']('class')],'style':{'minHeight':_0x1f1879['to']('minHeight',_0x7d29c6=>'number'==typeof _0x7d29c6?_i(_0x7d29c6+0xa):null)},'dir':_0x88c8f1['uiLanguageDirection'],'role':'application','aria-label':N(_0x88c8f1,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x88c8f1,'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',_0xa8bd46=>{this['_updateItemPositionInFocusables'](_0xa8bd46['source']);}),this['list']['forEach'](_0x16fd57=>{this['focusTracker']['add'](_0x16fd57['element']),this['_updateItemPositionInFocusables'](_0x16fd57);}),this['list']['on']('change',(_0x2e20ba,_0x978465)=>{for(const _0x30d02d of _0x978465['removed'])this['focusTracker']['remove'](_0x30d02d['element']),this['focusables']['remove'](_0x30d02d);for(const _0x193a5b of _0x978465['added'])this['focusTracker']['add'](_0x193a5b['element']),this['_updateItemPositionInFocusables'](_0x193a5b);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x30cd4f){const _0x6356f7=this['focusables']['getIndex'](_0x30cd4f);let _0x1954e5,_0x4149af;for(const _0x1abaab of this['focusables'])if(_0x30cd4f['top']<_0x1abaab['top']){_0x1954e5=_0x1abaab;break;}if(_0x4149af=_0x1954e5?this['focusables']['getIndex'](_0x1954e5):this['focusables']['length'],-0x1!==_0x6356f7){if(_0x6356f7===_0x4149af-0x1)return;this['focusables']['remove'](_0x30cd4f),_0x4149af=_0x1954e5?this['focusables']['getIndex'](_0x1954e5):this['focusables']['length'];}this['focusables']['add'](_0x30cd4f,_0x4149af);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1e84c3){super(_0x1e84c3),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2d6369,_0x454f6d)=>_0x2d6369+_0x454f6d),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x583376=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x583376['to']('isAnimationDisabled',_0x363f28=>_0x363f28?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x583376['to']('top',_0x11cc52=>Ot(_0x11cc52))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x56fe91=this['element']['clientHeight'];_0x56fe91&&(this['height']=_0x56fe91);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x1c3a7a{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x555dca){super(_0x555dca),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 _0x2582ea=this['context']['config']['get']('sidebar.container');_0x2582ea&&this['setContainer'](_0x2582ea);}['setContainer'](_0x529f76){if(!g(_0x529f76))throw new _0x13348f('sidebar-setcontainer-invalid-element');this['container']=_0x529f76;}['_attachToContainer']({viewClass:_0x5c8bc8='',spaceBetweenItems:_0x5e4cb1=0x19}={}){if(!g(this['container']))throw new _0x13348f('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x5c8bc8,this['_spaceBetweenItems']=_0x5e4cb1;}['rearrange']({removedAnnotation:_0x2db2ec,previousAnnotation:_0x37c301,nextAnnotation:_0x1ce95b}){const _0x267f88=this['getSidebarItemView'](_0x2db2ec);this['view']['list']['remove'](_0x267f88),this['_destroySidebarItemView'](_0x2db2ec),_0x37c301&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x37c301)),_0x1ce95b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1ce95b)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2eca4f,activatedAnnotation:_0x5670d8,disableAnimationOnActivatedAnnotation:_0x5ebb4e}){if(this['_activeAnnotation']=_0x5670d8,_0x2eca4f){_0x2eca4f['isActive']=!0x1;const _0x23690d=this['getSidebarItemView'](_0x2eca4f);_0x23690d&&_0x5ebb4e&&(_0x23690d['isAnimationDisabled']=!0x1);}if(_0x5670d8){const _0x13a626=this['getSidebarItemView'](_0x5670d8);_0x13a626&&(_0x5670d8['isActive']=!0x0,_0x5ebb4e&&(_0x13a626['isAnimationDisabled']=!0x0,_0x13a626['top']+=0x1),this['_alignToTargetRect'](_0x13a626));}}['_detachFromContainer'](_0x593779){if(this['view']['element']['remove'](),_0x593779){for(const _0x310b96 of _0x593779)this['_destroySidebarItemView'](_0x310b96);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x563230,_0x423293){_0x423293||(_0x423293=_0x563230['view']);const _0x233ead=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x233ead,_0x563230),this['_annotationToSidebarItemView']['set'](_0x563230,_0x233ead),_0x233ead['content']['add'](_0x423293),this['listenTo'](_0x563230['view'],'change:targetRect',(_0x3db761,_0x997a43,_0x436973)=>{const _0x3df30e=this['_getTargetTop'](_0x563230,_0x436973);_0x233ead['_targetTop']!=_0x3df30e&&(_0x233ead['_targetTop']=_0x3df30e,this['_setItemTop'](_0x233ead,_0x3df30e));}),this['listenTo'](_0x233ead,'change:top',()=>{this['_recalculate'](_0x233ead,'top');}),this['listenTo'](_0x233ead,'change:bottom',()=>{this['_recalculate'](_0x233ead,'bottom');}),this['_alignToTargetRect'](_0x233ead);const _0x4a5fdf=this['_getItemBefore'](_0x233ead);if(_0x4a5fdf)this['_alignAfterItem'](_0x4a5fdf,_0x233ead)||this['_alignToTargetRect'](_0x233ead);else this['_alignToTargetRect'](_0x233ead);return this['_updateLastItem'](),this['view']['list']['add'](_0x233ead),_0x233ead;}['_alignForTopChange'](_0x2f71fe){if(!_0x2f71fe['content']['length'])return;const _0x473109=this['_getItemBefore'](_0x2f71fe);if(!_0x473109)return;const _0xeda6ba=this['_sidebarItemViewToAnnotation']['get'](_0x473109),_0x5cdc2c=this['_activeAnnotation'];_0x5cdc2c&&_0x5cdc2c===_0xeda6ba?this['_alignAfterItem'](_0x473109,_0x2f71fe):this['_alignBeforeItem'](_0x2f71fe,_0x473109);}['_alignForBottomChange'](_0x50437d){if(!_0x50437d['content']['length'])return;const _0x2c8282=this['_getItemAfter'](_0x50437d);if(!_0x2c8282)return;const _0x47d146=this['_sidebarItemViewToAnnotation']['get'](_0x2c8282),_0x568b13=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x4b993f=this['_activeAnnotation'];_0x4b993f&&_0x4b993f===_0x47d146&&_0x568b13?(this['_alignBeforeItem'](_0x2c8282,_0x50437d),this['_alignAfterItem'](_0x50437d,_0x2c8282)):_0x4b993f&&_0x4b993f===_0x47d146?this['_alignBeforeItem'](_0x2c8282,_0x50437d):this['_alignAfterItem'](_0x50437d,_0x2c8282);}['_recalculate'](_0x4eedff,_0x455546){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2ffe36,changedProp:_0x55ce3f}of this['_recalculateBuffer'])'top'===_0x55ce3f?this['_alignForTopChange'](_0x2ffe36):this['_alignForBottomChange'](_0x2ffe36);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4eedff,'changedProp':_0x455546});}['getSidebarItemView'](_0x45492d){return this['_annotationToSidebarItemView']['get'](_0x45492d);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x56eb9b){const _0x7035c6=this['getSidebarItemView'](_0x56eb9b);this['stopListening'](_0x7035c6),this['stopListening'](_0x56eb9b['view']),_0x7035c6['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x56eb9b),this['_sidebarItemViewToAnnotation']['delete'](_0x7035c6);}['_createSidebarView'](){const _0x217e87=new H(this['context']['locale']);return _0x217e87['render'](),this['on']('change:_lastItem',(_0x15b807,_0x331c9e,_0x192f93,_0x2999d6)=>{_0x2999d6&&_0x217e87['unbind']('minHeight'),_0x192f93?_0x217e87['bind']('minHeight')['to'](_0x192f93,'bottom'):_0x217e87['minHeight']=null;}),_0x217e87;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x57a14f){const _0x5a3b80=this['_sidebarItemViewToAnnotation']['get'](_0x57a14f),_0x3c2ce2=_0x5a3b80&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5a3b80)-0x1);return _0x3c2ce2&&this['getSidebarItemView'](_0x3c2ce2)||null;}['_getItemAfter'](_0x52040f){const _0x53068f=this['_sidebarItemViewToAnnotation']['get'](_0x52040f),_0x570bd9=_0x53068f&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x53068f)+0x1);return _0x570bd9&&this['getSidebarItemView'](_0x570bd9)||null;}['_alignBeforeItem'](_0x1900b8,_0x5db61c){_0x1900b8['updateHeight']();const _0x17595d=G(_0x5db61c['bottom']+this['_spaceBetweenItems'],_0x1900b8['top']);return!!_0x17595d&&(this['_setItemTop'](_0x5db61c,_0x5db61c['top']-_0x17595d),!0x0);}['_alignAfterItem'](_0x1e46e6,_0x3a1f0d){_0x1e46e6['updateHeight']();const _0x34772f=G(_0x1e46e6['bottom']+this['_spaceBetweenItems'],_0x3a1f0d['top']);return!!_0x34772f&&(this['_setItemTop'](_0x3a1f0d,_0x3a1f0d['top']+_0x34772f,!0x1),!0x0);}['_alignToTargetRect'](_0x5d48af){const _0x162f9a=this['_sidebarItemViewToAnnotation']['get'](_0x5d48af);if(!_0x162f9a||!_0x162f9a['target']||!_0x162f9a['targetRect'])return;const _0x5f3451=this['_getTargetTop'](_0x162f9a,_0x162f9a['targetRect']);this['_setItemTop'](_0x5d48af,_0x5f3451);}['_getTargetTop'](_0x318901,_0x145eb1){if(null===_0x145eb1)return 0x0;if(_0x318901['target']instanceof _0x436169)return _0x145eb1['top'];{const _0x403506=new _0x436169(this['view']['element'])['top'];return _0x145eb1['top']-_0x403506;}}['_setItemTop'](_0x4aec82,_0x237dd0,_0x223897=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x223897&&(_0x237dd0=Math['max'](_0x237dd0,this['_getMaxAvailableTop'](_0x4aec82))),_0x4aec82['top']=_0x237dd0;}['_getMaxAvailableTop'](_0x137e7d){let _0x5996ca=this['_getItemBefore'](_0x137e7d),_0xb73c4b=0x0;for(;_0x5996ca;)_0x5996ca['updateHeight'](),_0xb73c4b+=this['_spaceBetweenItems']+_0x5996ca['height'],_0x5996ca=this['_getItemBefore'](_0x5996ca);return _0xb73c4b;}}function G(_0x5009f2,_0x205d11){return Math['max'](_0x5009f2-_0x205d11,0x0);}function g(_0x51497b){return null!==_0x51497b&&'object'==typeof _0x51497b&&0x1===_0x51497b['nodeType'];}class e extends _0x1c3a7a{['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(_0x46d500){super(_0x46d500),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x7eb5c5(),this['_refreshPositioningDebounced']=_0x5d3d29(()=>{_0x46d500['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x8912a4=this['context']['plugins']['get'](j),_0x17b995=this['context']['plugins']['get'](z);_0x8912a4['register']('wideSidebar',this),_0x17b995['container']&&_0x8912a4['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x47e6c4){if(_0x47e6c4===this['activeAnnotation'])return;const _0x49295c=this['context']['plugins']['get'](z);_0x49295c['_activeAnnotation']=_0x47e6c4;const _0x170714=this['activeAnnotation'];_0x49295c['refresh']({'blurredAnnotation':_0x170714,'activatedAnnotation':_0x47e6c4}),this['activeAnnotation']=_0x47e6c4;}['attach'](_0x53da4c){this['annotations']=_0x53da4c;const _0x55ec2b=this['context']['plugins']['get'](z);if(_0x55ec2b['_annotations']=_0x53da4c,this['isAttached'])throw new _0x13348f('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x55ec2b,'set:container',()=>{this['detach'](),this['listenTo'](_0x55ec2b,'change:container',_0x3c9ba9=>{_0x3c9ba9['off'](),this['attach'](_0x53da4c);});}),_0x55ec2b['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x472db7=_0x4fc463=>{_0x4fc463['updateTargetRect'](),_0x55ec2b['addAnnotation'](_0x4fc463);};for(const _0x17036f of _0x53da4c)_0x472db7(_0x17036f);this['listenTo'](_0x53da4c,'add',(_0x14dee7,_0x3fcdff)=>{_0x472db7(_0x3fcdff);}),this['listenTo'](_0x53da4c,'remove',(_0x19bc4b,_0x32d0c0,_0x1a7d31)=>{_0x55ec2b['rearrange']({'removedAnnotation':_0x32d0c0,'previousAnnotation':_0x53da4c['get'](_0x1a7d31-0x1),'nextAnnotation':_0x53da4c['get'](_0x1a7d31+0x1)}),_0x32d0c0===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x53da4c,'focus',(_0xe109ca,_0x4c052d)=>{this['setActiveAnnotation'](_0x4c052d);}),this['listenTo'](_0x53da4c,'blur',()=>{this['setActiveAnnotation'](null);});const _0x5b07bb=this['context']instanceof _0x4d6d98?this['context']['editors']:new _0x7eb5c5([this['context']]);for(const _0x4ab44a of _0x5b07bb)this['_integrateWithEditorAnnotations'](_0x4ab44a);this['listenTo'](_0x5b07bb,'add',(_0x51c6e1,_0x1c291a)=>{this['listenTo'](_0x1c291a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1c291a);});}),this['listenTo'](_0x5b07bb,'remove',(_0x1368d5,_0x1aaa56)=>{_0x1aaa56['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1aaa56['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x13348f('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x98b0dd=this['context']['plugins']['get'](z);_0x98b0dd['_detachFromContainer'](this['annotations']),this['stopListening'](_0x98b0dd),this['stopListening'](this['annotations']),this['context']instanceof _0x4d6d98&&this['stopListening'](this['context']['editors']);for(const _0x50aaa7 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x50aaa7);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2e8890){if(!_0x2e8890['plugins']['has']('EditorAnnotations'))return;const _0x4ff2f2=_0x2e8890['plugins']['get']('EditorAnnotations'),_0x52fe22=()=>{const _0x10a445=_0x4ff2f2['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x10a445[0x0]||null);};this['listenTo'](_0x4ff2f2,'refresh',_0x52fe22),this['listenTo'](_0x4ff2f2,'blur',(_0x1c5bd3,{isAnnotationTracked:_0x59a4e8})=>{this['activeAnnotation']&&_0x59a4e8(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4ff2f2,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x139f50=>{_0x4ff2f2['hasDomSelection']()&&(_0x52fe22(),_0x139f50['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4ff2f2);}['_destroyEditorAnnotationsIntegration'](_0x3ea809){this['stopListening'](_0x3ea809),this['_editorAnnotations']['remove'](_0x3ea809);}}class C extends _0x39d67e{['counterView'];constructor(_0x34606d){super(_0x34606d);const _0x148725=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x5beeee,_0xa1b43c)=>_0x5beeee?'...':_0xa1b43c['toString']()),this['set']('annotationType',''),this['icon']=_0x61886d,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x148725['to']('annotationType',_0x55dfc6=>'ck-annotation-counter__badge--'+_0x55dfc6),_0x148725['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x148725['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x1c3a7a{['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(_0x6294e9){super(_0x6294e9),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x3935b2())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x7eb5c5(),this['_refreshPositioningDebounced']=_0x5d3d29(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x4ce13c(this['context']['locale']),this['balloonPanelView']=new _0x1669c2(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x30c6c0){this['annotations']=_0x30c6c0;const _0x3bf3f4=this['context']['plugins']['get'](z),_0x1d7ff8=this['balloonPanelView'];if(_0x3bf3f4['_annotations']=_0x30c6c0,this['isAttached'])throw new _0x13348f('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3bf3f4,'set:container',()=>{this['detach'](),this['listenTo'](_0x3bf3f4,'change:container',_0x1bb231=>{_0x1bb231['off'](),this['attach'](_0x30c6c0);});}),_0x3bf3f4['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4153b7=_0x2fdd6c=>{const _0x16831d=new C(this['context']['locale']);_0x3bf3f4['addAnnotation'](_0x2fdd6c,_0x16831d),this['_annotationToNarrowView']['set'](_0x2fdd6c,_0x16831d),_0x16831d['bind']('isDirty','annotationType','number')['to'](_0x2fdd6c['view'],'isDirty','type','length'),_0x16831d['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1d7ff8['content']['first']!==_0x2fdd6c['view']?(this['_showBalloon'](_0x2fdd6c),_0x2fdd6c['view']['element']['focus'](),this['setActiveAnnotation'](_0x2fdd6c)):this['setActiveAnnotation'](null);});};for(const _0xd08faf of _0x30c6c0)_0x4153b7(_0xd08faf);this['listenTo'](_0x30c6c0,'add',(_0x5593b6,_0x573f52)=>{_0x4153b7(_0x573f52);}),this['listenTo'](_0x30c6c0,'remove',(_0x577621,_0x28a6e1,_0x3cdde8)=>{this['_annotationToNarrowView']['get'](_0x28a6e1)['destroy'](),this['_annotationToNarrowView']['delete'](_0x28a6e1),_0x3bf3f4['rearrange']({'removedAnnotation':_0x28a6e1,'previousAnnotation':_0x30c6c0['get'](_0x3cdde8-0x1),'nextAnnotation':_0x30c6c0['get'](_0x3cdde8+0x1)}),_0x28a6e1===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x30c6c0,'focus',(_0x32d738,_0x2abcdd)=>{this['setActiveAnnotation'](_0x2abcdd);}),this['listenTo'](_0x30c6c0,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x146d9e,_0x5e8b1e)=>{_0x5e8b1e['keyCode']===_0x266af6['esc']&&_0x1d7ff8['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1d7ff8['content']['first']),this['_hideBalloon'](),_0x5e8b1e['stopPropagation'](),_0x5e8b1e['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x369138,_0x3a43cb)=>{const _0x250865=_0x3a43cb['target'];_0x1d7ff8['isVisible']&&_0x1d7ff8['element']['contains'](_0x250865)||_0x3bf3f4['view']['element']['contains'](_0x250865)||_0x369138['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x2b2078=>_0x2b2078['contains'](_0x250865))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x20ed14=this['context']instanceof _0x4d6d98?this['context']['editors']:new _0x7eb5c5([this['context']]);for(const _0x24fa76 of _0x20ed14)this['_integrateWithEditorAnnotations'](_0x24fa76);this['listenTo'](_0x20ed14,'add',(_0x2df62a,_0x14de08)=>{this['listenTo'](_0x14de08,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x14de08);});}),this['listenTo'](_0x20ed14,'remove',(_0x4830f2,_0x21ca41)=>{_0x21ca41['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x21ca41['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x8a56a5){if(_0x8a56a5===this['activeAnnotation'])return;const _0x3ee05d=this['context']['plugins']['get'](z);if(_0x3ee05d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x8a56a5,'disableAnimationOnActivatedAnnotation':!0x0}),_0x8a56a5)_0x3ee05d['getSidebarItemView'](_0x8a56a5)?this['_showBalloon'](_0x8a56a5):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x8a56a5;}['detach'](){if(!this['isAttached'])throw new _0x13348f('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x72c026=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x2b9970=>_0x2b9970['destroy']()),this['_annotationToNarrowView']['clear'](),_0x72c026['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4d6d98&&this['stopListening'](this['context']['editors']);for(const _0x219f98 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x219f98);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'](_0x575e52){if(!_0x575e52['plugins']['has']('EditorAnnotations'))return;const _0x1fbeae=_0x575e52['plugins']['get']('EditorAnnotations'),_0x53836c=this['context']['plugins']['get'](z),_0xeb48ba=this['annotations'],_0xcce384=this['balloonPanelView'],_0x33f698=()=>{const _0x2ac212=_0x1fbeae['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2ac212),this['setActiveAnnotation'](_0x2ac212[0x0]||null);};this['listenTo'](_0x1fbeae,'refresh',_0x33f698),this['listenTo'](_0x1fbeae,'blur',(_0x59f7c5,{isAnnotationTracked:_0x56d6c8})=>{this['activeAnnotation']&&_0x56d6c8(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1fbeae,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0xeb48ba,'blur',_0x5ecb25=>{_0x1fbeae['hasDomSelection']()&&_0x5ecb25['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x46fec7,_0x315555)=>{const _0x5d44f9=_0x315555['target'];_0xcce384['isVisible']&&_0xcce384['element']['contains'](_0x5d44f9)||_0x53836c['view']['element']['contains'](_0x5d44f9)||this['activeAnnotation']&&_0x1fbeae['hasDomSelection']()&&(_0x33f698(),_0x46fec7['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1fbeae);}['_destroyEditorAnnotationsIntegration'](_0x351617){_0x351617&&(this['stopListening'](_0x351617),this['_editorAnnotations']['remove'](_0x351617));}['_setSelectedAnnotations'](_0x58aca9){for(const _0x4b748b of this['_selectedAnnotations'])_0x58aca9['includes'](_0x4b748b)||this['_manuallyClosedAnnotationViews']['delete'](_0x4b748b['view']);this['_selectedAnnotations']=_0x58aca9;}['_refreshPositioning'](){const _0x5c9011=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x5c9011['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xba7773){if(this['_manuallyClosedAnnotationViews']['has'](_0xba7773['view']))return;const _0x154198=this['balloonPanelView']['content']['first'];_0x154198!==_0xba7773['view']?(_0x154198&&this['_detachListeners'](_0x154198),this['_attachListeners'](_0xba7773['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xba7773['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x31b1ee=this['balloonPanelView']['content']['first'],_0x350b88=_0x31b1ee&&this['annotations']['getByView'](_0x31b1ee);if(!_0x350b88||!this['_annotationToNarrowView']['has'](_0x350b88))return;const _0x55bb40=this['_annotationToNarrowView']['get'](_0x350b88)['element'],_0x4230b3=(function(){const _0x5116fc=_0x1669c2['defaultPositions'];return[_0x5116fc['southArrowNorthEast'],_0x5116fc['northArrowSouthEast'],_0x5116fc['southArrowNorth'],_0x5116fc['northArrowSouth'],_0x5116fc['southArrowNorthWest'],_0x5116fc['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x55bb40,'positions':_0x4230b3});}['_hideBalloon'](){const _0x8398fb=this['balloonPanelView'],_0x2ecb7b=_0x8398fb['content']['first'];_0x2ecb7b&&(this['_detachListeners'](_0x2ecb7b),_0x8398fb['unpin'](),_0x8398fb['content']['clear']());}['_attachListeners'](_0x4d9706){this['listenTo'](_0x4d9706,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4d9706,'Esc',(_0x16a403,_0x13c1e7)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4d9706),this['_hideBalloon'](),_0x13c1e7();});}['_detachListeners'](_0x353d49){this['stopListening'](_0x353d49);}}class c extends _0x4e6af8{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x479a8f,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a21f9){super(_0x4a21f9),_0x4a21f9['editing']['view']['addObserver'](_0x2585d2),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4a21f9['plugins']['get'](_0x479a8f),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x5d3d29(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x415029=this['editor']['plugins']['get'](j);_0x415029['context']===this['editor']&&(_0x415029['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x2e7b4b,_0x12cdc4)=>{const _0x27f8b6=this['_balloon'];if(this['isAttached']&&_0x27f8b6['visibleView']){const _0x36fab6=this['annotations']['getByView'](_0x27f8b6['visibleView']);_0x36fab6&&this['_closeAnnotation'](_0x36fab6),_0x12cdc4();}}));}['afterInit'](){const _0x306af7=this['editor']['plugins']['get'](j);_0x306af7['context']===this['editor']&&(_0x306af7['hasActive']()||_0x306af7['switchTo']('inline'));}['setActiveAnnotation'](_0x2ab0fb){_0x2ab0fb!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2ab0fb&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2ab0fb)&&this['_addAnnotationToBalloon'](_0x2ab0fb,!0x0),_0x2ab0fb['isActive']=!0x0),_0x2ab0fb||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2ab0fb);}['attach'](_0x5e5ff1){this['annotations']=_0x5e5ff1;const _0x400959=this['editor']['plugins']['get'](j),_0x2f5936=this['_balloon'];if(this['isAttached'])throw new _0x13348f('inlineannotations-attach-already-attached',this);if(_0x400959['context']!==this['editor'])throw new _0x13348f('inlineannotations-not-allowed-with-context',this);const _0x16ed2c=this['editor']['plugins']['get'](b);this['listenTo'](_0x16ed2c,'refresh',()=>{const _0x43df74=_0x16ed2c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x397a33,_0x4eb5b9;!this['_forceRefresh']&&(_0x397a33=_0x43df74,_0x4eb5b9=this['_selectedAnnotations'],_0x397a33['length']===_0x4eb5b9['length']&&_0x397a33['every'](_0x45865d=>_0x4eb5b9['includes'](_0x45865d)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x43df74),this['setActiveAnnotation'](_0x43df74[0x0]||null));}),this['listenTo'](_0x16ed2c,'blur',(_0x530bfe,{isAnnotationTracked:_0x29f75c})=>{this['activeAnnotation']&&_0x29f75c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x16ed2c,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3961c1,_0x60bdc8,_0x23f3a8)=>{_0x23f3a8||this['setActiveAnnotation'](null);}),this['listenTo'](_0x5e5ff1,'remove',(_0x30865b,_0x371782)=>{this['_removeAnnotationFromBalloon'](_0x371782),_0x371782===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2f5936,'change:visibleView',(_0x183ccc,_0x3844e6,_0x20a944,_0x1fb55d)=>{_0x1fb55d&&this['stopListening'](_0x1fb55d);const _0x503826=_0x5e5ff1['getByView'](_0x20a944);_0x20a944&&_0x503826&&(this['listenTo'](_0x20a944,'change:height',()=>{_0x2f5936['updatePosition']();}),this['listenTo'](_0x20a944,'Esc',()=>{this['_closeAnnotation'](_0x503826),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x503826&&this['setActiveAnnotation'](_0x503826));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x2f5936['visibleView']&&(_0x5e5ff1['getByView'](_0x2f5936['visibleView'])&&_0x2f5936['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 _0x13348f('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x52a2b1 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x52a2b1);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x4a4f4f){for(const _0x3e798d of this['_selectedAnnotations'])_0x4a4f4f['includes'](_0x3e798d)||this['_manuallyClosed']['delete'](_0x3e798d);for(const _0x386514 of this['annotations'])_0x4a4f4f['includes'](_0x386514)||this['_removeAnnotationFromBalloon'](_0x386514);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x28f99e of _0x4a4f4f)this['_addAnnotationToBalloon'](_0x28f99e);}this['_selectedAnnotations']=_0x4a4f4f;}['_addAnnotationToBalloon'](_0xd2b598,_0x31ed59=!0x1){this['_manuallyClosed']['has'](_0xd2b598)||(this['_addedAnnotations']['has'](_0xd2b598)||this['_balloon']['hasView'](_0xd2b598['view'])||(this['_addedAnnotations']['add'](_0xd2b598),this['_balloon']['add']({'stackId':_0xd2b598['view']['id'],'view':_0xd2b598['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xd2b598)}})),_0x31ed59&&this['_balloon']['showStack'](_0xd2b598['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3c3e7f){const _0x247268=_0x3c3e7f['target'],_0x133be5=this['editor']['editing']['view'],_0x482c4a=_0x133be5['document']['selection']['getFirstRange'](),_0x2a9897=_0x133be5['domConverter']['viewRangeToDom'](_0x482c4a);if(_0x2a9897['collapse'](!0x0),_0x247268){if(_0x247268 instanceof _0x436169)return _0x247268;let _0x271c9f=[];for(const _0x50137e of _0x247268)_0x271c9f['push'](...F(_0x50137e['getClientRects']()));_0x271c9f=function(_0x5996e4){const _0x311f53=[];let _0x180103=_0x5996e4[0x0];for(let _0x2f4e68=0x1;_0x2f4e68<_0x5996e4['length'];_0x2f4e68++)P(_0x180103,_0x5996e4[_0x2f4e68])?_0x180103['width']+=_0x5996e4[_0x2f4e68]['width']:(_0x311f53['push'](_0x180103),_0x180103=_0x5996e4[_0x2f4e68]);return _0x311f53['push'](_0x180103),_0x311f53;}(_0x271c9f);const _0x2ba806=_0x2a9897['getBoundingClientRect']();return _0x271c9f['find'](_0x1b13ec=>_0x1b13ec['top']<=_0x2ba806['top']&&_0x1b13ec['bottom']>=_0x2ba806['bottom']&&_0x1b13ec['left']<=_0x2ba806['left']&&_0x1b13ec['right']>=_0x2ba806['right'])||_0x271c9f[0x0];}return _0x3c3e7f['targetRect']||_0x2a9897;}['_removeAnnotationFromBalloon'](_0x2aca91){this['_addedAnnotations']['has'](_0x2aca91)&&this['_balloon']['hasView'](_0x2aca91['view'])&&(this['_addedAnnotations']['delete'](_0x2aca91),this['_balloon']['remove'](_0x2aca91['view']));}['_closeAnnotation'](_0x1a4023){this['_manuallyClosed']['add'](_0x1a4023),this['_removeAnnotationFromBalloon'](_0x1a4023);}}function F(_0x22d78b){return Array['from'](_0x22d78b)['map'](DOMRect['fromRect']);}function P(_0x490046,_0x17d47a){return _0x490046['top']===_0x17d47a['top']&&_0x490046['bottom']===_0x17d47a['bottom']&&_0x490046['right']===_0x17d47a['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x2b7922,_0x43cf64){super(_0x2b7922),this['set']('isEmpty',!_0x43cf64['length']),this['focusTracker']=new _0x119ecb(),this['_annotationViews']=_0x43cf64,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x206411({'focusables':_0x43cf64,'focusTracker':this['focusTracker']}),this['listenTo'](_0x43cf64,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x43cf64,'remove',(_0xd266ab,_0x1215c7)=>{_0x1215c7['isActive']&&this['focus'](),_0x43cf64['length']||(this['isEmpty']=!0x0);});const _0x2482be=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x2b7922,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x43cf64},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2482be['if']('isEmpty','ck-hidden',_0x296dd3=>!_0x296dd3)]},'children':[{'text':N(_0x2b7922,'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 _0x5cb20a of this['_annotationViews'])this['focusTracker']['add'](_0x5cb20a['element']);this['_annotationViews']['on']('change',(_0x392c5e,{added:_0x1d9e4c,removed:_0x530cf7})=>{for(const _0x3e710c of _0x1d9e4c)this['focusTracker']['add'](_0x3e710c['element']);for(const _0x3869fd of _0x530cf7)this['focusTracker']['remove'](_0x3869fd['element']);});}}class p extends _0x1c3a7a{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x488f3e){super(_0x488f3e),this['archivedThreads']=new _0x7eb5c5();}['init'](){const _0x1d1c5f=this['context'],_0x1de003=_0x1d1c5f['plugins']['get'](o),_0xb1cfdc=_0x1d1c5f['plugins']['get'](y);this['listenTo'](_0x1de003,'addCommentThread',(_0x2027f8,{threadId:_0x4d5074})=>{const _0x3d5fa3=_0x1de003['getCommentThread'](_0x4d5074);_0x3d5fa3['archivedAt']&&this['archivedThreads']['add'](_0x3d5fa3,this['_calculatePosition'](_0x3d5fa3['archivedAt'])),this['listenTo'](_0x3d5fa3,'change:archivedAt',(_0x566f6b,_0x557c0d,_0x5dfd01)=>{_0x5dfd01?this['archivedThreads']['has'](_0x3d5fa3)||this['archivedThreads']['add'](_0x3d5fa3,this['_calculatePosition'](_0x3d5fa3['archivedAt'])):this['archivedThreads']['has'](_0x3d5fa3)&&this['archivedThreads']['remove'](_0x3d5fa3);});}),this['listenTo'](_0x1de003,'removeCommentThread',(_0x5daef3,{threadId:_0x578e90})=>{const _0x6a3170=_0x1de003['getCommentThread'](_0x578e90);this['stopListening'](_0x6a3170),this['archivedThreads']['has'](_0x6a3170)&&this['archivedThreads']['remove'](_0x6a3170);},{'priority':'highest'}),this['listenTo'](_0xb1cfdc['collection'],'focus',(_0x3fc9ee,_0x1b1025)=>{_0x1b1025['isVisible']||(_0x1b1025['isActive']=!0x0,_0xb1cfdc['activate'](_0x1b1025));});}['_calculatePosition'](_0x4a8cb9){const _0x113cff=[...this['archivedThreads']]['findIndex'](_0x31e53b=>_0x31e53b['archivedAt']<_0x4a8cb9);return _0x113cff>-0x1?_0x113cff:this['archivedThreads']['length'];}}class a extends _0x4e6af8{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x578bd5];}constructor(_0x283b53){super(_0x283b53),this['annotationViews']=new _0x42bc84(),this['_pendingThreads']=[];}['init'](){const _0x31ca77=this['editor'],_0x162580=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x31ca77['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x39d67e,!0x0)),_0x31ca77['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x471f23=this['_createCommentsArchiveButton'](_0x4dec93);return _0x471f23['set']({'role':'menuitemcheckbox'}),_0x471f23;});const _0x29019a=_0x31ca77['plugins']['get'](p),_0x13d287=_0x31ca77['plugins']['get']('Annotations'),_0x53fce6=_0x31ca77['plugins']['get']('CommentsRepository');_0x29019a['archivedThreads']['forEach'](_0x520d10=>{this['_handleNewThread'](_0x520d10);}),this['listenTo'](_0x29019a['archivedThreads'],'add',(_0x3c51ba,_0x945728)=>{this['_handleNewThread'](_0x945728);}),this['listenTo'](_0x13d287['collection'],'add',(_0x5b3f01,_0x56de02)=>{const _0x324ec1=this['_pendingThreads']['find'](_0x83237a=>{const _0x3368b9=_0x53fce6['_threadToController']['get'](_0x83237a);return _0x3368b9&&_0x56de02['innerView']===_0x3368b9['view'];});if(_0x324ec1){const _0x5e72ba=this['_calculatePosition'](_0x324ec1['archivedAt']);this['_addAnnotationToArchive'](_0x56de02,_0x5e72ba),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x324ec1),0x1);}}),this['listenTo'](_0x29019a['archivedThreads'],'remove',(_0xb7aaee,_0x514608)=>{const _0x65b4d3=_0x31ca77['config']['get']('collaboration.channelId');if(!_0x65b4d3||_0x514608['channelId']===_0x65b4d3){if(this['_pendingThreads']['includes'](_0x514608))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x514608),0x1);else{const _0x516c2c=_0x53fce6['_threadToController']['get'](_0x514608),_0x32d900=_0x13d287['getByInnerView'](_0x516c2c['view']);this['annotationViews']['remove'](_0x32d900['view']),this['stopListening'](_0x32d900),this['stopListening'](_0x32d900['focusableElements']);}}}),this['listenTo'](_0x13d287['collection'],'add',(_0x172446,_0x5b6174)=>{this['listenTo'](_0x5b6174,'escape',_0x162580);}),this['listenTo'](_0x13d287['collection'],'remove',(_0x2af214,_0xebd067)=>{this['stopListening'](_0xebd067,'escape',_0x162580);});}['_addAnnotationToArchive'](_0x40bac,_0x4b1d1d){this['listenTo'](_0x40bac,'set:isVisible',_0x519da3=>{_0x519da3['return']=!0x1,_0x519da3['stop']();}),this['annotationViews']['add'](_0x40bac['view'],_0x4b1d1d);}['_handleNewThread'](_0x4423f5){const _0x1fc15c=this['editor']['plugins']['get']('CommentsRepository'),_0x5c4c31=this['editor']['plugins']['get']('Annotations'),_0x3ffdac=this['editor']['config']['get']('collaboration.channelId');if(!_0x3ffdac||_0x4423f5['channelId']===_0x3ffdac){const _0x5dd798=_0x1fc15c['_threadToController']['get'](_0x4423f5);if(!_0x5dd798)return void this['_pendingThreads']['push'](_0x4423f5);const _0x17af9d=this['_calculatePosition'](_0x4423f5['archivedAt']),_0x37c648=_0x5c4c31['getByInnerView'](_0x5dd798['view']);_0x37c648['isVisible']&&_0x5c4c31['_visibleAnnotations']['remove'](_0x37c648),this['_addAnnotationToArchive'](_0x37c648,_0x17af9d);}}['_calculatePosition'](_0x1cf759){const _0x3bc661=this['editor']['config']['get']('collaboration.channelId'),_0xbf2efb=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x392cd4=>_0x392cd4['channelId']===_0x3bc661)['findIndex'](_0xfbe9e9=>_0xfbe9e9['archivedAt']<_0x1cf759);return _0xbf2efb<0x0||_0xbf2efb>this['annotationViews']['length']?this['annotationViews']['length']:_0xbf2efb-0x1;}['_toggleDialog'](){const _0x4c3164=this['editor'],_0x401dc4=_0x4c3164['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x4c3164['locale'],this['annotationViews'])),'commentsArchive'===_0x401dc4['id']?_0x401dc4['hide']():_0x401dc4['show']({'id':'commentsArchive','title':N(_0x4c3164['locale'],'COMMENTS_ARCHIVE'),'icon':_0xb693b5,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0xa729ff['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x51778a,_0x2a2454=!0x1){const _0x746195=this['editor']['locale'],_0x18d77b=this['editor']['plugins']['get']('Dialog'),_0x42cc0c=new _0x51778a(_0x746195);return _0x42cc0c['bind']('isEnabled')['to'](this,'isEnabled'),_0x42cc0c['bind']('isOn')['to'](_0x18d77b,'id',_0x2a9c75=>'commentsArchive'===_0x2a9c75),_0x42cc0c['set']({'label':N(_0x746195,'COMMENTS_ARCHIVE'),'icon':_0xb693b5,'isToggleable':!0x0}),_0x2a2454&&(_0x42cc0c['tooltip']=!0x0),this['listenTo'](_0x42cc0c,'execute',()=>this['_toggleDialog']()),_0x42cc0c;}['_hideDialogOnAnnotationEscape']=_0xe705a1=>{const _0xf73e5b=_0xe705a1['source'];if(!this['annotationViews']['has'](_0xf73e5b['view']))return;const _0x18c773=this['editor']['plugins']['get']('Dialog');_0x18c773['isOpen']&&'commentsArchive'===_0x18c773['id']&&(_0x18c773['hide'](),_0xe705a1['stop']());};}class gi extends _0x4e6af8{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 _0x5ceede,ContextPlugin as _0x603ec2,PendingActions as lt,Command as _0x47f0a2,Plugin as _0x4626af,Context as _0x53ff68}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x486827,uid as _0x8376f1,KeystrokeHandler as jt,FocusTracker as _0x2d4383,diff as _0x49d0d8,Collection as _0x2ba4d0,Rect as _0x1e3fe4,CKEditorError as _0x4482e2,first as _0x1ee127,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x535b73,keyCodes as _0x1e8e2a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x3f12b2,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x1d9dae,trimHtml as ts,LateFocusDropdownButtonView as _0x3bfc12,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x17a949}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x2a6dac}from'es-toolkit/compat';import{IconUndo as _0x1ee97c,IconCheck as _0x4d1b59,IconPencil as _0x1c565b,IconRemoveComment as _0x149cd7,IconThreeVerticalDots as _0xcf18b3,IconAddComment as _0x1d452d,IconCommentsArchive as _0x40f89d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0xc7089f,ButtonView as _0x739e9c,ViewCollection as _0x102f07,createDropdown as _0xd8906c,ListView as _0x41457c,focusChildOnDropdownOpen as _0x1bbb62,ListItemView as _0x4488ae,MenuBarMenuListItemButtonView as _0x76ce93,BodyCollection as _0x30b4e7,BalloonPanelView as _0x5cbf50,ContextualBalloon as _0x56a9b4,Dialog as _0xccdd32,DialogViewPosition as _0x3b13b3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x4fddd0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x5815b3}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x4a5a07}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x486827(){['model'];['view'];constructor(_0x31060d,_0x1c66ab){super(),this['model']=_0x31060d,this['model']['_isAttached']=!0x0,this['view']=_0x1c66ab,this['listenTo'](_0x1c66ab,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x1c66ab,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x1c66ab,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x1c66ab,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x1c66ab,'addComment',(_0x33e3dd,_0x4bbddb)=>this['addComment'](_0x4bbddb)),this['listenTo'](_0x1c66ab,'updateComment',(_0x43c56b,_0x298bb7,_0x5a6e3b)=>this['updateComment'](_0x298bb7,_0x5a6e3b)),this['listenTo'](_0x1c66ab,'removeComment',(_0x1e47a7,_0x2d6215)=>this['removeComment'](_0x2d6215));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x1b4c8e){this['model']['addComment']({'content':_0x1b4c8e,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x28477d,_0x481b9a){this['model']['getComment'](_0x28477d)['update']({'content':_0x481b9a});}['removeComment'](_0x3f779d){this['model']['getComment'](_0x3f779d)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x52001,_0x5e8f45,_0xacfe6b){const t=_0x52001['t'];switch(_0x5e8f45){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'},_0xacfe6b);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'},_0xacfe6b);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'},_0xacfe6b);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'},_0xacfe6b);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0xacfe6b);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'},_0xacfe6b);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'},_0xacfe6b);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'},_0xacfe6b);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x508a03,_0x5ad93b){super(_0x508a03);const _0xd56665=_0x8376f1();this['main']=this['createCollection'](),this['editable']=new Vt(_0x508a03,_0x5ad93b,void 0x0,{'label':()=>N(_0x508a03,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x508a03['uiLanguageDirection'],'lang':_0x508a03['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0xd56665},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x41bc5b){super(_0x41bc5b),this['view']=new Rt(_0x41bc5b['locale'],_0x41bc5b['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x5913cc=this['editor']['editing']['view'],_0x1a8ad7=this['view']['editable'],_0x51d20a=_0x5913cc['document']['getRoot']();_0x1a8ad7['name']=_0x51d20a['rootName'],this['view']['render']();const _0x13ab77=_0x1a8ad7['element'];this['setEditableElement'](_0x1a8ad7['name'],_0x13ab77),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5913cc['attachDomRoot'](_0x13ab77),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x486827(_0x5ceede){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x268145={}){function _0x24fb52(_0x42eefe){return _0x42eefe['map'](_0x949e81=>String['fromCharCode'](_0x949e81))['join']('');}(_0x268145=Object['assign']({},_0x268145))['plugins']||(_0x268145['plugins']=hs['defaultPlugins']),super(_0x268145),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x24fb52([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24fb52([0x76,0x69,0x65,0x77])][_0x24fb52([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24fb52([0x61,0x75,0x74,0x6f]),this[_0x24fb52([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x24fb52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24fb52([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x24fb52([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x24fb52([0x6f,0x6b])});}['create'](){const _0x425adf=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x425adf))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x13a9d1=>{const _0x52d429=this['model']['document']['getRoot'](),_0x24376b=_0x52d429&&_0x52d429['getChild'](_0x52d429['childCount']-0x1);_0x13a9d1['setSelection'](_0x24376b,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2c2361=this['editing']['view'],_0x4ce7e7=_0x2c2361['document']['getRoot'](),_0x13ea07=_0x4ce7e7['getChild'](0x0);_0x4ce7e7['childCount']>0x1||!_0x13ea07||'p'!=_0x13ea07['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x2c2361,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x13ea07['placeholder']=this['placeholder']),Ft({'view':_0x2c2361,'element':_0x13ea07,'keepOnFocus':!0x0}),this['placeholderElement']=_0x13ea07);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0xdc956d,_0x320126={}){super(_0xdc956d),this['editor']=null,this['_editorConfig']=_0x320126,this['set']('value',_0x320126['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0xdc956d,'Reply...')),this['set']('submitLabel',N(_0xdc956d,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x2d4383(),this['focusCycler']=new _0xc7089f({'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',(_0x7a288f,_0x4c7818)=>{this['cancelButtonView']['fire']('execute'),_0x4c7818();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3dcf4e,_0x52e531)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x52e531());}),this['on']('submit',(_0x48f0e1,_0xd9399)=>{_0xd9399['length']>0xfde8?(alert(N(_0xdc956d,'TOO_LONG_COMMENT_ALERT',[_0xd9399['length'],0xfde8])),_0x48f0e1['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x549272=this['editor'];this['element']['insertBefore'](_0x549272['ui']['element'],this['element']['firstChild']),_0x549272['model']['document']['on']('change',()=>this['value']=_0x549272['getData']()),_0x549272['bind']('placeholder')['to'](this),this['focusables']['add'](_0x549272['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x598336){-0x1===_0x598336?(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:_0x67badd}=this,_0x3ba4db=new _0x739e9c(_0x67badd);return _0x3ba4db['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3ba4db['withText']=!0x0,_0x3ba4db['bind']('label')['to'](this,'submitLabel'),_0x3ba4db['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3ba4db['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x17fe89,_0x4b92e8)=>!_0x4b92e8&&!!_0x17fe89['trim']()),_0x3ba4db;}['_createCancelButton'](){const {locale:_0x5d1b80}=this,_0x3b6c8f=new _0x739e9c(_0x5d1b80);return _0x3b6c8f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x3b6c8f['label']=N(_0x5d1b80,'Cancel'),_0x3b6c8f['withText']=!0x0,_0x3b6c8f['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x3b6c8f;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4c42ed=>{this['focusTracker']['add'](_0x4c42ed['element']);}),this['focusables']['on']('change',(_0x25edb7,_0x64dd5e)=>{for(const _0x339f59 of Array['from'](_0x64dd5e['added'])['reverse']())this['focusTracker']['add'](_0x339f59['element']);});}}class ie extends kt{constructor(_0x1ef024,_0x3ff4b1,_0x43932d){super(_0x1ef024),this['commentInputView']=new es(_0x1ef024,_0x43932d),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x5b1ec9,_0x47c5ee)=>_0x5b1ec9||!!_0x47c5ee),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 _0x3f12b2(_0x1ef024,_0x3ff4b1),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'](_0x20c14f){this['commentInputView']['focus'](_0x20c14f);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x24aa29,_0x500e8c)=>{const {submitButtonView:_0x2acaf3,cancelButtonView:_0x3d92d0,editor:_0xb6f766}=this['commentInputView'];[_0x2acaf3['element'],_0x3d92d0['element'],_0xb6f766?_0xb6f766['editing']['view']['getDomRoot']():null]['filter'](_0x284eec=>_0x284eec)['some'](_0x1ffc5f=>_0x1ffc5f['contains'](_0x500e8c['target']))||(this['focus'](),_0x500e8c['preventDefault']());});}}class rs extends kt{constructor(_0x4d6733){super(_0x4d6733);const _0xe265c7=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0xe265c7['to']('count',_0xc0f1b8=>N(_0x4d6733,'NUMBER_OF_COMMENTS',_0xc0f1b8))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x33a957,_0x26aa57,_0x8bed70){super(_0x33a957);const _0x1cdb24=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x26aa57['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x26aa57,this['_config']=_0x8bed70,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x2d4383(),this['keystrokes']=new jt(),this['focusCycler']=new _0xc7089f({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x57ec04=>this['commentViews']['map'](_0x3765ef=>_0x3765ef['element'])['includes'](_0x57ec04['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x33a957),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0xf707d6=>_0xf707d6-this['_config']['maxCommentsWhenCollapsed']);for(const _0x300143 of _0x26aa57['comments'])this['_handleNewCommentModel'](_0x300143);this['_handleInfoComment'](),this['listenTo'](_0x26aa57['comments'],'add',(_0x465f4b,_0xc9102)=>{const _0x2622bb=this['_calculatePosition'](_0xc9102);this['length']++,this['_handleNewCommentModel'](_0xc9102,_0x2622bb),this['refreshVisibleViews']();}),this['listenTo'](_0x26aa57['comments'],'remove',(_0x38f927,_0x356001)=>{this['length']--,this['_handleRemoveCommentModel'](_0x356001),this['refreshVisibleViews']();}),this['listenTo'](_0x26aa57,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x26aa57,'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',_0x1cdb24['if']('length','ck-hidden',_0x1ef51b=>!_0x1ef51b)],'aria-label':N(_0x33a957,'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'](_0x3469f6){-0x1===_0x3469f6?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x228d34 of this['commentViews'])_0x228d34['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x106a6f,_0x2008a5){const _0x31fd01=new this['_config']['CommentView'](this['locale'],_0x106a6f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x31fd01['viewUid']=_0x106a6f['id'],_0x31fd01['delegate']('removeComment')['to'](this),_0x31fd01['delegate']('updateComment')['to'](this),_0x31fd01['delegate']('resolveCommentThread')['to'](this),_0x31fd01['delegate']('editorReady')['to'](this),_0x31fd01['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x31fd01,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x31fd01,_0x2008a5);}['_calculatePosition'](_0x2d7c6a){const _0x1397e8=this['_model']['_findOptimalIndex'](_0x2d7c6a);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2d7c6a['authoredAt']?_0x1397e8-0x1:_0x1397e8:_0x1397e8-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x57bb05={'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'],_0x57bb05,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x57bb05));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x1c22b2){const _0x334cfb=this['commentViews']['remove'](_0x1c22b2['id']);this['stopListening'](_0x334cfb),_0x334cfb['isEditMode']&&this['_updateHasDirtyComment'](),_0x334cfb['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0xf6c188=>_0xf6c188['isEditMode']);}['_rearrangeCollapse'](){const _0xac7d6a=function(_0x2e28b6){const _0x427e77=new _0x2ba4d0();for(const _0x22b2c6 of _0x2e28b6)_0x427e77['add'](_0x22b2c6);return _0x427e77;}(this['commentViews']),_0xe8c626=this['_collapsedCommentsView']['count'];for(let _0x44a2b7=0x1;_0x44a2b7<=_0xe8c626;_0x44a2b7++)_0xac7d6a['remove'](0x1);for(const _0x308dbb of _0xac7d6a)_0x308dbb['collapse']();_0xe8c626>0x0&&_0xac7d6a['add'](this['_collapsedCommentsView'],0x1),ns(_0x49d0d8(Array['from'](this['visibleViews']),Array['from'](_0xac7d6a)),this['visibleViews'],_0xac7d6a);}['_rearrangeExpand'](){ns(_0x49d0d8(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x5d473b of this['visibleViews'])_0x5d473b['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x610fe9=>{this['focusTracker']['add'](_0x610fe9['element']),this['keystrokes']['listenTo'](_0x610fe9['element']);}),this['commentViews']['on']('change',(_0x303984,_0x102f08)=>{for(const _0x8fce67 of _0x102f08['removed'])this['focusTracker']['remove'](_0x8fce67['element']),this['keystrokes']['stopListening'](_0x8fce67['element']);for(const _0x1afc24 of Array['from'](_0x102f08['added'])['reverse']())this['focusTracker']['add'](_0x1afc24['element']),this['keystrokes']['listenTo'](_0x1afc24['element']);});}}function ns(_0x4a3039,_0x404a49,_0x3f06d0){let _0x280faf=0x0;for(const _0xc42c86 of _0x4a3039)switch(_0xc42c86){case'insert':_0x404a49['add'](_0x3f06d0['get'](_0x280faf),_0x280faf),_0x280faf++;break;case'delete':_0x404a49['remove'](_0x280faf);break;case'equal':_0x280faf++;}}class oe extends kt{constructor(_0x583494){super(_0x583494);const _0x3ca9b9=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3ca9b9['to']('contextValue',_0x816561=>N(_0x583494,'THREAD_CONTEXT_LABEL',_0x816561)),'tabindex':-0x1},'children':[{'text':_0x3ca9b9['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x31f415,_0x26bd5a){super(_0x31f415);const _0x140e6a=this['bindTemplate'];this['_model']=_0x26bd5a,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x2d4383(),this['keystrokes']=new jt(),this['focusCycler']=new _0xc7089f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x1092cb=>!!_0x1092cb),this['bind']('contextValue')['to'](this['_model'],'context',_0x5ddac9=>_0x5ddac9&&_0x5ddac9['value']?this['_trimContextValue'](_0x5ddac9['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',_0x140e6a['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 _0x2d39e8=new _0x739e9c(this['locale']);return _0x2d39e8['label']=N(this['locale'],'Reopen'),_0x2d39e8['tooltip']=N(this['locale'],'Reopen'),_0x2d39e8['icon']=_0x1ee97c,_0x2d39e8['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x42246c=>!_0x42246c),_0x2d39e8['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x54c2fe,_0x44626c)=>_0x54c2fe&&_0x44626c),_0x2d39e8['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x2d39e8;}['_trimContextValue'](_0x6d84c6){if(_0x6d84c6['length']<0x96)return _0x6d84c6;const _0x78b329=_0x6d84c6['lastIndexOf']('\x20',0x93);return _0x6d84c6['substring'](0x0,_0x78b329>-0x1?_0x78b329:0x93)+'...';}['_attachContextActions'](){const _0x5a7339=this['element']['querySelector']('.ck-context'),_0x15675=_0x5a7339['querySelector']('.ck-context__value');this['listenTo'](_0x5a7339,'mouseenter',()=>{_0x15675['offsetWidth']<_0x15675['scrollWidth']&&_0x5a7339['classList']['add']('overlay');}),this['listenTo'](_0x5a7339,'mouseleave',()=>{_0x5a7339['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x1651ba of this['focusables'])this['focusTracker']['add'](_0x1651ba['element']),this['keystrokes']['listenTo'](_0x1651ba['element']);}['_createContextView'](){const _0x2ea3e1=new oe(this['locale']);return _0x2ea3e1['bind']('contextValue')['to'](this),_0x2ea3e1;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xfd1e03,_0xc3d580,_0x56fd9c,_0x3eaedf){super(_0xfd1e03),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xc3d580,this['_localUser']=_0x56fd9c,this['_config']=_0x3eaedf,this['commentThreadHeaderView']=new Xt(_0xfd1e03,_0xc3d580),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0xfd1e03,N(_0xfd1e03,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xfd1e03,_0xc3d580,Object['assign']({'CommentView':this['_config']['CommentView']},_0x3eaedf)),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',(_0x4c64c2,_0x446f0d)=>_0x4c64c2||!!_0x446f0d),this['bind']('isUnlinked')['to'](_0xc3d580,'unlinkedAt',_0x59e884=>!!_0x59e884),this['bind']('ariaLabel')['to'](this,'length',_0x3689a4=>{const _0x2c7c5d=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x3689a4,_0x2c7c5d]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x2d4383(),this['keystrokes']=new jt(),this['focusCycler']=new _0xc7089f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x40437a=>_0x40437a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4f6ab5=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x26fc30=_0x4f6ab5['commentInputView'];return _0x4f6ab5['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x26fc30,'value',(_0x4a38b7,_0x3f6be7,_0x2d588e,_0x575532,_0x584563)=>!!_0x584563||!!_0x575532&&_0x2d588e&&!_0x3f6be7||_0x4a38b7&&_0x2d588e&&!_0x3f6be7),_0x26fc30['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x11b786,_0xf84089,_0x4ba067)=>{let _0x1e0131;return _0x1e0131=_0x4ba067&&_0xf84089?'Reply\x20to\x20reopen\x20discussion...':_0x11b786?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x1e0131);}),_0x26fc30['bind']('submitLabel')['to'](this,'length',_0xfea295=>N(this['locale'],_0xfea295?'Reply':'Comment')),_0x26fc30['on']('submit',(_0xb333dc,_0x4cb317)=>{this['fire']('addComment',_0x4cb317),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x26fc30['on']('cancel',()=>{this['focus']();}),_0x26fc30['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x26fc30['on']('cancel',_0x3fd449=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3fd449['stop']());}),this['on']('change:isActive',(_0x4c75a2,_0x2944a7,_0xab1cfe)=>{_0xab1cfe||this['length']||_0x26fc30['value']||this['fire']('removeCommentThread');}),_0x4f6ab5;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x6f4922,_0x101e18,_0x209837,_0x24d7a8){super(_0x6f4922,_0x101e18,_0x209837,_0x24d7a8),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x6f4922,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x29ffe8,_0x28407e,_0x1af2ce)=>{_0x1af2ce||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x3b1b18,_0x119195,_0x451934)=>{_0x451934&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x30d72c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x30d72c['if']('isActive','ck-thread--active'),_0x30d72c['if']('isUnlinked','ck-thread--unlinked'),_0x30d72c['to']('actionIndicator',_0x362cb6=>_0x362cb6?'ck-thread--'+_0x362cb6:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x30d72c['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 _0x150006 of this['commentsListView']['commentViews'])_0x150006['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x41d4a3}=this,_0x4430a5=this['commentsListView']['commentViews']['get'](0x0);_0x4430a5===this['_boundFirstCommentView']||_0x4430a5['isSystemComment']||(this['_boundFirstCommentView']=_0x4430a5,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x4430a5,'actionIndicator',_0x493cad=>'remove'===_0x493cad?'remove':null),_0x4430a5['placeholder']=N(_0x41d4a3,'Write\x20a\x20comment...'),_0x4430a5['removeButton']['on']('execute',_0x15a713=>{_0x15a713['stop'](),this['showConfirm'](N(_0x41d4a3,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x4430a5['focus']();}),_0x4430a5['actionBar']['add'](this['resolveButton'],0x0),_0x4430a5['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x3e4d1a=new _0x1d9dae(this['locale']);return _0x3e4d1a['label']=N(this['locale'],'Resolve'),_0x3e4d1a['tooltip']=N(this['locale'],'Resolve'),_0x3e4d1a['icon']=_0x4d1b59,_0x3e4d1a['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x3e4d1a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x39b1f8=>!_0x39b1f8),_0x3e4d1a['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x35b99f,_0x350b96)=>_0x35b99f&&!_0x350b96),_0x3e4d1a['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x3e4d1a;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0xd06ca8){super(_0xd06ca8),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x4b1c2d,_0x2d27,_0x10ece3)=>{this['element']['innerHTML']=_0x10ece3;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5b9c21,_0x38c8f8,_0x3b424f){super(_0x5b9c21),this['_model']=_0x38c8f8,this['_config']=_0x3b424f,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x38c8f8,'content',_0x38c8f8,'authoredAt',(_0x5ae4ca,_0x20f18f)=>N(_0x5b9c21,'COMMENT_ARIA_LABEL',[_0x38c8f8['author']['name'],_0x3b424f['formatDateTime'](_0x20f18f),new DOMParser()['parseFromString'](_0x5ae4ca,'text/html')['body']['textContent'],_0x38c8f8['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x5b9c21,N(_0x5b9c21,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x102f07(),this['focusTracker']=new _0x2d4383(),this['keystrokes']=new jt(),this['focusCycler']=new _0xc7089f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x421ecc=>_0x421ecc['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 _0x826582=new is(this['locale']);return _0x826582['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x17c33a,_0x3516c8)=>_0x3516c8?ts(_0x17c33a,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x17c33a),_0x826582;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1d56ad=new es(this['locale'],this['_config']['editorConfig']);return _0x1d56ad['value']=this['_model']['content'],_0x1d56ad['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1d56ad['submitLabel']=N(this['locale'],'Save'),_0x1d56ad['on']('submit',(_0x391a4c,_0x53f6a0)=>{this['fire']('updateComment',this['_model']['id'],_0x53f6a0),this['switchToDisplayMode'](),this['focus']();}),_0x1d56ad['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1d56ad['once']('editorReady',()=>{_0x1d56ad['focus']();}),_0x1d56ad['createEditor'](),_0x1d56ad['delegate']('editorReady')['to'](this),_0x1d56ad['delegate']('editorDestroyed')['to'](this),_0x1d56ad;}['_setupKeyboardNavigation'](){const _0x3e0ad0=this['element'];this['keystrokes']['listenTo'](_0x3e0ad0);for(const _0x2db536 of this['focusables'])this['focusTracker']['add'](_0x2db536['element']),this['keystrokes']['listenTo'](_0x2db536['element']);this['focusables']['on']('change',(_0x1daf01,_0x51713e)=>{for(const _0x575ce6 of _0x51713e['removed'])this['focusTracker']['remove'](_0x575ce6['element']),this['keystrokes']['stopListening'](_0x575ce6['element']);for(const _0x8c78e8 of _0x51713e['added'])this['focusTracker']['add'](_0x8c78e8['element']),this['keystrokes']['listenTo'](_0x8c78e8['element']);}),this['keystrokes']['set']('enter',(_0x3653ee,_0xa9fe83)=>{_0x3e0ad0===_0x3653ee['target']&&(this['focusCycler']['focusFirst'](),_0xa9fe83());}),this['keystrokes']['set']('esc',(_0x51a61e,_0x202c87)=>{_0x3e0ad0!==_0x51a61e['target']&&(this['focus'](),_0x202c87());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0xece563,_0x533aeb,_0x4be379){super(_0xece563,_0x533aeb,_0x4be379),this['set']('actionIndicator',null),this['set']('placeholder',N(_0xece563,'Reply...')),this['bind']('authoredAt')['to'](_0x533aeb),this['bind']('resolvedAt')['to'](_0x533aeb),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 _0x3f12b2(_0xece563,_0x533aeb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x533aeb,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4c7976=this['bindTemplate'],_0x3ad53f=[{'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':_0x4c7976['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4c7976['to']('authoredAt',_0x36fb86=>this['_config']['formatDateTime'](_0x36fb86))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x4c7976['if']('isEditMode','ck-comment__actions--hidden'),_0x4c7976['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']&&_0x3ad53f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x4c7976['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x4c7976['if']('isEditMode','ck-comment--edit'),_0x4c7976['if']('isSystemComment','ck-comment--info'),_0x4c7976['to']('actionIndicator',_0x3a02c3=>_0x3a02c3?'ck-comment--'+_0x3a02c3:'')],'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':_0x3ad53f}]}]};}['_createEditButton'](){const _0x25ed8d=new _0x739e9c(this['locale']);return _0x25ed8d['label']=N(this['locale'],'Edit'),_0x25ed8d['icon']=_0x1c565b,_0x25ed8d['withText']=!0x0,_0x25ed8d['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x25ed8d['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x388dda=>!_0x388dda),_0x25ed8d['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x25ed8d['on']('execute',()=>this['switchToEditMode']()),_0x25ed8d;}['_createRemoveButton'](){const _0x4247a2=new _0x739e9c(this['locale']);return _0x4247a2['label']=N(this['locale'],'Remove'),_0x4247a2['icon']=_0x149cd7,_0x4247a2['withText']=!0x0,_0x4247a2['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x4247a2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x43ef2e=>!_0x43ef2e),_0x4247a2['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x4247a2['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x4247a2;}['_createDropdown'](){const _0xc88a8d=_0xd8906c(this['locale'],_0x3bfc12),_0x5a9530=_0xc88a8d['panelView']['children'],_0x28f7f4=new _0x41457c(this['locale']),_0x39e8b0=_0xc88a8d['bindTemplate'];_0x1bbb62(_0xc88a8d,()=>this['items']['find'](_0x483b8a=>_0x483b8a['isVisible'])),_0xc88a8d['extendTemplate']({'attributes':{'class':[_0x39e8b0['if']('isVisible','ck-hidden',_0x51bba4=>!_0x51bba4)]}});const _0x5f2f4b=(_0x534fad,_0x56604c=-0x1)=>{const _0x295de8=new _0x4488ae(this['locale']);_0x295de8['children']['add'](_0x534fad);const _0x1f5c0c=_0x56604c>-0x1?_0x56604c:_0x28f7f4['items']['length'];_0x28f7f4['items']['add'](_0x295de8,_0x1f5c0c);const _0xd2e5b0=Array['from'](this['items']);_0xc88a8d['unbind']('isEnabled','isVisible'),_0xc88a8d['bind']('isEnabled')['toMany'](_0xd2e5b0,'isEnabled',(..._0x2baf44)=>_0x2baf44['some'](_0x52cc4=>_0x52cc4)),_0xc88a8d['bind']('isVisible')['toMany'](_0xd2e5b0,'isVisible',(..._0x10a801)=>_0x10a801['some'](_0x132f3f=>_0x132f3f));};_0xc88a8d['panelPosition']='sw',_0xc88a8d['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0xcf18b3});for(const _0x6e6d1b of this['items'])_0x5f2f4b(_0x6e6d1b);return _0x5a9530['add'](_0x28f7f4),_0xc88a8d['listenTo'](this['items'],'add',(_0x7fcd2e,_0xd62489,_0x4648d8)=>{_0x5f2f4b(_0xd62489,_0x4648d8);}),_0xc88a8d['listenTo'](this['items'],'remove',(_0x4f5d20,_0x5743b5,_0x4dd378)=>{_0x28f7f4['items']['remove'](_0x4dd378);}),_0xc88a8d;}['_attachActions'](_0x5423e6,_0x3f9ae4){const _0xd63ce9=_0x5423e6&&_0x5423e6['element'];_0xd63ce9&&(this['listenTo'](_0xd63ce9,'mouseenter',()=>this['actionIndicator']=_0x3f9ae4),this['listenTo'](_0xd63ce9,'focus',()=>this['actionIndicator']=_0x3f9ae4),this['listenTo'](_0xd63ce9,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0xd63ce9,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x23e570=super['_createCommentInputView']();return _0x23e570['bind']('placeholder')['to'](this),_0x23e570;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x2c4107){const _0x275691=Dt(_0x2c4107,0x1e),_0x1107ab=new MutationObserver(_0x41cefd=>{for(const _0x1eaf9a of _0x41cefd)('attributes'==_0x1eaf9a['type']&&'class'==_0x1eaf9a['attributeName']||'childList'==_0x1eaf9a['type']||'characterData'==_0x1eaf9a['type'])&&_0x275691();});return{'attach'(_0x2b1eaf){_0x1107ab['observe'](_0x2b1eaf,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1107ab['disconnect'](),_0x275691['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x522103,_0xc381df){super(_0x522103),this['id']=_0x8376f1(),this['focusTracker']=new _0x2d4383(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x370ac9,_0x468862)=>this['fire']('Esc',_0x468862)),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'](_0xc381df),this['mainView']=_0xc381df;const _0x389451=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x389451['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 _0x1033a1=this['element']['clientHeight'];_0x1033a1&&(this['height']=_0x1033a1);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x486827(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x5a2f27,target:_0x2629fd,type:_0x39b483,isVisible:_0x6485d7=!0x0}){super(),this['view']=_0x5a2f27,this['view']['element']||this['view']['render'](),this['_type']=_0x39b483,this['_target']=_0x2629fd,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x2ba4d0([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x3eba5e,_0x344750)=>{this['view']['focusTracker']['add'](_0x344750);}),this['focusableElements']['on']('remove',(_0x530cfd,_0x5bdb22)=>{this['view']['focusTracker']['remove'](_0x5bdb22);}),this['set']('isVisible',_0x6485d7);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x39bc20=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x39bc20),_0x39bc20;}get['targetRect'](){const _0xe17f57=this['target'];if(null===_0xe17f57)return null;if(_0xe17f57 instanceof _0x1e3fe4)return _0xe17f57;const _0x53f59a=_0xe17f57['filter'](_0x341baf=>function(_0xf25784){const _0x5b92db=_0xf25784['offsetParent'];if(_0x5b92db)return!0x0;const _0x1e473d=_0xf25784['getClientRects']()['item'](0x0);return!!_0x1e473d;}(_0x341baf));return 0x0===_0x53f59a['length']?null:new _0x1e3fe4(_0x53f59a[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x126c56){this['view']['isActive']=_0x126c56,this['view']['mainView']['isActive']=_0x126c56;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3813dd){if(!(null===_0x3813dd||_0x3813dd instanceof _0x1e3fe4||Array['isArray'](_0x3813dd)&&_0x3813dd['every'](_0x3ba077=>fi(_0x3ba077))))throw new _0x4482e2('annotation-invalid-target',null,{'target':_0x3813dd});}['_getNormalizedTarget'](){const _0xf25b73='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0xf25b73)?[_0xf25b73]:_0xf25b73;}}function fi(_0x6426fd){return null!==_0x6426fd&&'object'==typeof _0x6426fd&&'nodeType'in _0x6426fd&&0x1===_0x6426fd['nodeType'];}class S extends _0x2ba4d0{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x309dcc=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x2d4383(),this['_focusTracker']['on']('change:isFocused',(_0x50091a,_0x51e7a1,_0x5b0128)=>{_0x5b0128||this['fire']('blur');});for(const _0xb60b35 of _0x309dcc)this['add'](_0xb60b35);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0xcd43c6){if(this['has'](_0xcd43c6))throw new _0x4482e2('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0xcd43c6['innerView'],_0xcd43c6),this['_viewToAnnotation']['set'](_0xcd43c6['view'],_0xcd43c6);for(const _0x471a63 of _0xcd43c6['focusableElements'])this['_focusTracker']['add'](_0x471a63);this['listenTo'](_0xcd43c6['focusableElements'],'add',(_0x387a76,_0x109cbe)=>{this['_focusTracker']['add'](_0x109cbe);}),this['listenTo'](_0xcd43c6['focusableElements'],'remove',(_0x4d446c,_0xbb85e)=>{this['_focusTracker']['remove'](_0xbb85e);}),this['listenTo'](_0xcd43c6['view']['focusTracker'],'change:isFocused',(_0x223cff,_0x11c0ba,_0x23992f)=>{_0x23992f&&this['fire']('focus',_0xcd43c6);}),_0xcd43c6['updateTargetRect']();const _0x23fc88=this['_getOrderInContent'](_0xcd43c6['view']['targetRect']);return super['add'](_0xcd43c6,_0x23fc88);}['remove'](_0x163bd4){if(!this['has'](_0x163bd4))throw new _0x4482e2('annotationcollection-not-existing-item',null);this['stopListening'](_0x163bd4['view']['focusTracker']),this['stopListening'](_0x163bd4['focusableElements']);for(const _0x69597 of _0x163bd4['focusableElements'])this['_focusTracker']['remove'](_0x69597);return this['_viewToAnnotation']['delete'](_0x163bd4['view']),this['_innerViewToAnnotation']['delete'](_0x163bd4['innerView']),super['remove'](_0x163bd4);}['getByInnerView'](_0x3d4617){return this['_innerViewToAnnotation']['get'](_0x3d4617);}['getByView'](_0x199108){return this['_viewToAnnotation']['get'](_0x199108);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1e0fc4 of this)_0x1e0fc4['updateTargetRect']();this['_sort']();}['_sort'](){const _0xb1b3ef=Array['from'](this)['sort']((_0x6d1b11,_0x1108a0)=>w(_0x6d1b11['view']['targetRect'],_0x1108a0['view']['targetRect']));for(let _0x958a4c=_0xb1b3ef['length']-0x1;_0x958a4c>0x0;_0x958a4c--){const _0x3f79ea=_0xb1b3ef[_0x958a4c];_0x958a4c!==this['getIndex'](_0x3f79ea)&&(this['remove'](_0x3f79ea),this['add'](_0x3f79ea));}}['_getOrderInContent'](_0x299bc4){let _0x23412a=0x0;if(!_0x299bc4)return this['length'];for(const _0x109ae2 of this){const _0x12876a=_0x109ae2['view']['targetRect'];if(_0x12876a){if(w(_0x299bc4,_0x12876a)<0x0)return _0x23412a;_0x23412a++;}}return _0x23412a;}}function v({source:_0x1d8c00,target:_0x16e8a1,filter:_0x228708}){for(const _0x2c1a40 of _0x1d8c00)_0x228708(_0x2c1a40)&&_0x16e8a1['add'](_0x2c1a40);_0x16e8a1['listenTo'](_0x1d8c00,'add',(_0x50b284,_0x55d9d9)=>{_0x228708(_0x55d9d9)&&_0x16e8a1['add'](_0x55d9d9);}),_0x16e8a1['listenTo'](_0x1d8c00,'remove',(_0x4d921d,_0x5bed06)=>{_0x16e8a1['has'](_0x5bed06)&&_0x16e8a1['remove'](_0x5bed06);});}function w(_0x5f2571,_0x58d4a7){if(null===_0x5f2571&&null===_0x58d4a7)return 0x0;if(null===_0x5f2571)return-0x1;if(null===_0x58d4a7)return 0x1;const _0x5334a3=_0x5f2571['top']-_0x58d4a7['top'];return 0x0==_0x5334a3?_0x5f2571['left']-_0x58d4a7['left']:_0x5334a3;}class y extends _0x603ec2{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b7ed4){if(super(_0x2b7ed4),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2b7ed4 instanceof _0x5ceede){const _0x2f2e15=_0x2b7ed4['locale'];_0x2b7ed4['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x2f2e15,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x2f2e15,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x2f2e15,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x2f2e15,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x2f2e15,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x2f2e15,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x2f2e15,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x1f8c60){this['collection']['add'](_0x1f8c60);}['remove'](_0x4e910a){this['collection']['remove'](_0x4e910a),_0x4e910a['destroy']();}['refreshVisibility'](){for(const _0x1adc9c of this['collection'])_0x1adc9c['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2235fc){return this['collection']['getByInnerView'](_0x2235fc);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x443a01 of this['collection'])_0x443a01['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x5268bf){this['fire']('_activateAnnotation',_0x5268bf);}['createAnnotation'](_0x389c60){return new T(_0x389c60);}['createAnnotationView'](_0x3c7a81,_0x29f803){return new E(_0x3c7a81,_0x29f803);}['_addActiveAnnotation'](_0x1144da){const _0x3ec7d7=new Set(this['activeAnnotations']);_0x3ec7d7['add'](_0x1144da),this['activeAnnotations']=_0x3ec7d7;}['_removeActiveAnnotation'](_0x1561be){const _0x174d88=new Set(this['activeAnnotations']);_0x174d88['delete'](_0x1561be),this['activeAnnotations']=_0x174d88;}['_bindAnnotationsToVisibleAnnotations'](){const _0x57ab34=this['collection'],_0xcab397=this['_visibleAnnotations'];function _0x16ed98(_0x596171){const _0x3156a7=_0x596171['source'];_0x3156a7['isVisible']&&!_0xcab397['has'](_0x3156a7)?_0xcab397['add'](_0x3156a7):!_0x3156a7['isVisible']&&_0xcab397['has'](_0x3156a7)&&_0xcab397['remove'](_0x3156a7),_0x3156a7['view']['focusTracker']['remove'](_0x3156a7['view']['element']),_0x3156a7['view']['focusTracker']['add'](_0x3156a7['view']['element']);}this['listenTo'](_0x57ab34,'add',(_0x4ac557,_0x3374bf)=>{_0x3374bf['isVisible']&&_0xcab397['add'](_0x3374bf),this['listenTo'](_0x3374bf,'change:isVisible',_0x16ed98);}),this['listenTo'](_0x57ab34,'remove',(_0x5c3fb2,_0x276412)=>{_0xcab397['has'](_0x276412)&&_0xcab397['remove'](_0x276412),this['stopListening'](_0x276412,'change:isVisible',_0x16ed98);});}['_setupEnterAnnotationKeystroke'](){const _0x3750f6=_0x20aeaf=>{_0x20aeaf['on']('ready',()=>{_0x20aeaf['keystrokes']['set'](_0x5815b3,(_0x3aadfb,_0x41fd58)=>{const _0x16da54=_0x1ee127(this['activeAnnotations']['values']());_0x16da54&&(_0x16da54['view']['focus'](),_0x41fd58());});});};this['context']instanceof _0x5ceede?_0x3750f6(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3bc708,_0x3e7b34)=>{_0x3750f6(_0x3e7b34);});}['_setupEscapeAnnotationHandling'](){const _0x55f37a=_0x5bbb34=>{const _0x253b99=_0x5bbb34['source'],_0x8e5eee=[];let _0x500f17;if(Array['isArray'](_0x253b99['target'])){_0x500f17=_0x253b99['target'][0x0],this['context']instanceof _0x5ceede?_0x8e5eee['push'](this['context']):this['context']['editors']&&_0x8e5eee['push'](...this['context']['editors']);for(const _0x403066 of _0x8e5eee)for(const _0x3a829f of _0x403066['editing']['view']['domRoots']['values']())if(_0x3a829f['contains'](_0x500f17))return void _0x403066['editing']['view']['focus']();_0x500f17['focus']();}};this['listenTo'](this['collection'],'add',(_0x57e3f7,_0x47cef4)=>{this['listenTo'](_0x47cef4,'escape',_0x55f37a,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x50ff66,_0x4afc1f)=>{this['stopListening'](_0x4afc1f,'escape',_0x55f37a);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x603ec2{['_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(_0x2b3745){super(_0x2b3745),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x535d7b=this['context']['config'];_0x535d7b['define']('comments.maxCommentsWhenCollapsed',0x2),_0x535d7b['define']('comments.maxThreadTotalWeight',0x1f4),_0x535d7b['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x535d7b['define']('comments.CommentThreadView',gt),_0x535d7b['define']('comments.CommentView',Tt),_0x535d7b['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x2bb661=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x425278,_0xf1822d)=>this['_addCommentThread'](_0xf1822d)),this['on']('submitCommentThread',(_0x145cdb,_0x1967a9)=>this['_submitCommentThread'](_0x1967a9)),this['on']('resolveCommentThread',(_0x2bc867,_0xfa8dba)=>this['_resolveCommentThread'](_0xfa8dba)),this['on']('resolveCommentThread',(_0x1268b5,_0x34af5e)=>this['_updateActiveAnnotation'](_0x34af5e),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x44ba2a,_0x148ff7)=>this['_reopenCommentThread'](_0x148ff7)),this['on']('reopenCommentThread',(_0x1ce337,_0x11cc77)=>this['_updateActiveAnnotation'](_0x11cc77),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3776ae,_0x5391fd)=>this['_removeCommentThread'](_0x5391fd)),this['on']('updateCommentThread',(_0x515de7,_0x2585ab)=>this['_updateCommentThread'](_0x2585ab)),this['on']('updateCommentThread',(_0x2a469a,_0x30149d)=>this['_updateActiveAnnotation'](_0x30149d),{'priority':'lowest'}),this['on']('addComment',(_0x575e6b,_0x90a0f5)=>this['_addComment'](_0x90a0f5)),this['on']('updateComment',(_0x4320a9,_0x9c03a0)=>this['_updateComment'](_0x9c03a0)),this['on']('removeComment',(_0x42b609,_0x8671f8)=>this['_removeComment'](_0x8671f8)),this['on']('addComment',(_0x23c384,{threadId:_0x16c7d2,isFromAdapter:_0x5abe85})=>{if(_0x5abe85)return;const _0x47b139=this['getCommentThread'](_0x16c7d2),_0x15eb27=_0x47b139&&this['_threadToController']['get'](_0x47b139);_0x15eb27&&_0x15eb27['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x2bb661,'change:activeAnnotations',(_0x549658,_0x5340da,_0x534397)=>{const _0x1c5df2=Array['from'](_0x534397)['map'](_0x4d75a3=>this['_viewToController']['get'](_0x4d75a3['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x1c5df2?_0x1c5df2['model']:null;});}set['adapter'](_0x3d53d5){if(this['_adapter'])throw new _0x4482e2('commentsrepository-adapter-already-set');this['_adapter']=_0x3d53d5;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5ac7f9=_t,threadId:_0x17ea7e=_0x8376f1(),comments:_0x459f25=[],unlinkedAt:_0x342134=null,resolvedAt:_0x3b56d3=null,resolvedBy:_0x5a7b85=null,target:_0x397682=null,context:_0x2f2831=null,attributes:_0x1c772b={},isResolvable:_0x41355d=!0x0,isSubmitted:_0x5efaa3=!0x1,isFromAdapter:_0x56f20b=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x5ac7f9),{'channelId':_0x5ac7f9,'threadId':_0x17ea7e,'comments':_0x459f25,'unlinkedAt':_0x342134,'resolvedAt':_0x3b56d3,'resolvedBy':_0x5a7b85,'target':_0x397682,'context':_0x2f2831,'attributes':_0x1c772b,'isFromAdapter':_0x56f20b,'isResolvable':_0x41355d,'isSubmitted':_0x5efaa3}),this['getCommentThread'](_0x17ea7e);}['openNewCommentThread']({channelId:_0x4d53cf=_t,threadId:_0x13529e=_0x8376f1(),target:_0x51f03e,context:_0x1a7d59=null,isResolvable:_0x3a7927=!0x0}){if(this['_readOnlyChannels']['has'](_0x4d53cf)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x51f03e)throw new _0x4482e2('commentsrepository-missing-target');const _0x5187ed=this['addCommentThread']({'channelId':_0x4d53cf,'threadId':_0x13529e,'target':_0x51f03e,'context':_0x1a7d59,'isResolvable':_0x3a7927});if(!_0x5187ed)return null;const _0x597f30=this['_threadToController']['get'](_0x5187ed),_0x23465c=_0x597f30['view']['commentThreadInputView']['commentInputView'],_0x2fbdee=this['context']['plugins']['get'](y),_0x22eff7=_0x2fbdee['getByInnerView'](_0x597f30['view']);return _0x2fbdee['activate'](_0x22eff7),_0x23465c['once']('editorReady',()=>_0x23465c['focus']()),_0x5187ed;}['hasCommentThread'](_0x36cd7b){if('string'!=typeof _0x36cd7b)throw new _0x4482e2('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x36cd7b);}['updateCommentThread']({channelId:_0x24ec13=_t,threadId:_0x6ac581,context:_0x46a778,unlinkedAt:_0x38bee2,attributes:_0x37dc58,isFromAdapter:_0x27a5fc=!0x1}){return this['fire'](Nt('updateCommentThread',_0x24ec13),{'channelId':_0x24ec13,'threadId':_0x6ac581,'context':_0x46a778,'unlinkedAt':_0x38bee2,'attributes':_0x37dc58,'isFromAdapter':_0x27a5fc}),this['getCommentThread'](_0x6ac581);}['getCommentThread'](_0x501fbe){if('string'!=typeof _0x501fbe)throw new _0x4482e2('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x501fbe);}['fetchCommentThread']({channelId:_0xca6f2b,threadId:_0x1e649d}={}){const _0xa424=this['getCommentThread'](_0x1e649d);if(_0xa424)return Promise['resolve'](_0xa424);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4482e2('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0xca6f2b,'threadId':_0x1e649d})['then'](_0x362da3=>this['hasCommentThread'](_0x1e649d)?this['getCommentThread'](_0x1e649d):_0x362da3?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0xca6f2b},_0x362da3)):void 0x0)['catch'](_0x19dd70=>{throw console['error'](_0x19dd70),new _0x4482e2('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x32293e,skipNotAttached:_0x264796=!0x1,skipEmpty:_0x21cff6=!0x1,toJSON:_0x490654=!0x1}={}){const _0x3aa3bb=[];for(const _0x30dc68 of this['_threads']['values']())_0x32293e&&_0x30dc68['channelId']!==_0x32293e||_0x264796&&!_0x30dc68['isAttached']||_0x21cff6&&0x0===_0x30dc68['length']||_0x3aa3bb['push'](_0x30dc68);return _0x490654?_0x3aa3bb['map'](_0x39a45d=>_0x39a45d['toJSON']()):_0x3aa3bb;}['getAnnotationForCommentThread'](_0x30fb37){const _0x191f6b=this['_threadToController']['get'](_0x30fb37);if(!_0x191f6b)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x191f6b['view'])||null;}['getCommentThreadForAnnotation'](_0x19dc80){const _0x5a48d2=this['_viewToController']['get'](_0x19dc80['innerView']);return _0x5a48d2?_0x5a48d2['model']:null;}['setActiveCommentThread'](_0x53d8ab){const _0x54322d=this['context']['plugins']['get'](y);if(!_0x53d8ab)return void(this['activeCommentThread']&&_0x54322d['deactivateAll']());const _0x4a8f6f=this['getCommentThread'](_0x53d8ab);if(!_0x4a8f6f)throw new _0x4482e2('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x53d8ab});if(!this['_threadToController']['has'](_0x4a8f6f))throw new _0x4482e2('commentsrepository-active-not-attached',null,{'threadId':_0x53d8ab});const _0x370c34=_0x54322d['getByInnerView'](this['_threadToController']['get'](_0x4a8f6f)['view']);_0x54322d['activate'](_0x370c34);}['switchReadOnly'](_0x4c93c0,_0x547d09){_0x4c93c0?this['_readOnlyChannels']['add'](_0x547d09):this['_readOnlyChannels']['delete'](_0x547d09),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x5278ee){return this['_readOnlyChannels']['has'](_0x5278ee)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x2250e7,_0x54d8cc){return new vt(_0x2250e7,_0x54d8cc);}['setPermissions'](_0x50a51d,_0x1d6e4f=_t){this['_permissions']['set'](_0x1d6e4f,_0x50a51d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3a791b=_t){return this['_permissions']['has'](_0x3a791b)?this['_permissions']['get'](_0x3a791b):bt;}['_addCommentThread']({channelId:_0x5bfbba,threadId:_0x42587c,comments:_0x834a6c,unlinkedAt:_0x57a47e,resolvedAt:_0x42ebd5,resolvedBy:_0x33d848,target:_0xb7076c,context:_0x1ee4c6,attributes:_0x544f97,isFromAdapter:_0x115172,isResolvable:_0x45e192,isSubmitted:_0x1b9212}){if('string'!=typeof _0x42587c)throw new _0x4482e2('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x42587c});if(this['hasCommentThread'](_0x42587c))throw new _0x4482e2('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x42587c});const _0xcb9fb9=new pi(this,{'channelId':_0x5bfbba,'id':_0x42587c,'context':_0x1ee4c6,'attributes':_0x544f97,'unlinkedAt':_0x57a47e,'resolvedAt':_0x42ebd5,'resolvedBy':_0x33d848?this['context']['plugins']['get'](it)['getUser'](_0x33d848):null,'isResolvable':_0x45e192,'isSubmitted':_0x1b9212||_0x115172});this['_threads']['set'](_0x42587c,_0xcb9fb9);for(const _0x3fe554 of _0x834a6c)_0xcb9fb9['_add'](this['_createNewComment']({'threadId':_0x42587c,..._0x3fe554}));return _0xb7076c&&_0xcb9fb9['attachTo'](_0xb7076c),_0x115172||!_0xcb9fb9['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x5bfbba,'threadId':_0x42587c});}['_submitCommentThread']({channelId:_0x3ab61b,threadId:_0x1b2dd3}){if(!this['hasCommentThread'](_0x1b2dd3))throw new _0x4482e2('commentsrepository-missing-comment-thread',this);const _0x37d40c=this['getCommentThread'](_0x1b2dd3);if(_0x37d40c['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0xe83210,comments:_0x4b434a,resolvedAt:_0x1b1199,resolvedBy:_0x3f1d73,context:_0x421fd0,attributes:_0x363ca3}=_0x37d40c,_0x188d04=this['context']['plugins']['get']('PendingActions'),_0x1bf7d8=_0x188d04['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x3ab61b,'threadId':_0xe83210,'comments':_0x4b434a['map'](_0x196539=>_0x196539['toJSON']()),'resolvedAt':_0x1b1199,'resolvedBy':_0x3f1d73?_0x3f1d73['id']:_0x3f1d73,'context':_0x421fd0,'attributes':_0x363ca3})['then'](({comments:_0x4e38f0})=>{_0x188d04['remove'](_0x1bf7d8);for(const _0x48106f of _0x4e38f0)this['_updateComment']({'channelId':_0x3ab61b,'threadId':_0x1b2dd3,'commentId':_0x48106f['commentId'],'createdAt':_0x48106f['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x9124b3=>{throw console['error'](_0x9124b3),new _0x4482e2('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x58f2d3,target:_0xf7821f}){const _0x407661=this['getCommentThread'](_0x58f2d3);if(!_0x407661)throw new _0x4482e2('commentsrepository-attach-missing-comment-thread',this);const _0x77a1dc=this['context']['plugins']['get']('PendingActions'),_0x447564=this['context']['plugins']['get'](y),_0x4254b1=this['_createCommentThreadView'](_0x407661),_0x38423b=new vt(_0x407661,_0x4254b1);let _0x4f5449=null;_0x4254b1['on']('change:isDirty',(_0x215f89,_0x35d5f4,_0xfdf73a)=>{_0xfdf73a?_0x4f5449=_0x77a1dc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4f5449&&(_0x77a1dc['remove'](_0x4f5449),_0x4f5449=null);}),this['_threadToController']['set'](_0x407661,_0x38423b),this['_viewToController']['set'](_0x4254b1,_0x38423b);const _0x13b337=new E(this['context']['locale'],_0x4254b1);_0x13b337['bind']('length')['to'](_0x4254b1),_0x13b337['bind']('isDirty')['to'](_0x4254b1,'isDirty',_0x4254b1,'length',(_0x209454,_0x2c2218)=>_0x209454||!_0x2c2218),_0x13b337['bind']('isActive')['to'](_0x4254b1),_0x13b337['type']='comment';const _0x41181e=new T({'view':_0x13b337,'target':_0xf7821f,'type':'comment','isVisible':!_0x407661['archivedAt']&&!!('function'==typeof _0xf7821f?_0xf7821f():_0xf7821f)});return _0x4254b1['on']('escape',()=>{_0x41181e['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4254b1,_0x41181e),_0x447564['add'](_0x41181e),_0x41181e;}['_bindAnnotationToEditors'](_0x447b5c,_0x428bfb){this['listenTo'](_0x447b5c,'editorReady',(_0x42df9b,_0x5de5ef)=>{const _0x3472f0=_0x5de5ef['ui']['view']['body']['bodyCollectionContainer'];_0x428bfb['focusableElements']['add'](_0x3472f0),this['context']instanceof _0x5ceede&&this['context']['ui']['focusTracker']['add'](_0x3472f0);},{'priority':'highest'}),this['listenTo'](_0x447b5c,'editorDestroyed',(_0x2b3f8b,_0x1ccc85)=>{const _0x5a6425=_0x1ccc85['ui']['view']['body']['bodyCollectionContainer'];_0x428bfb['focusableElements']['has'](_0x5a6425)&&_0x428bfb['focusableElements']['remove'](_0x5a6425),this['context']instanceof _0x5ceede&&this['context']['ui']['focusTracker']['remove'](_0x5a6425);});}['_unbindEditors'](_0x1872b3){this['stopListening'](_0x1872b3,'editorReady'),this['stopListening'](_0x1872b3,'editorDestroyed');}['_createCommentThreadView'](_0x5678f9){const _0x5a98d5=this['context']['plugins']['get'](it),{config:_0x3815b7,locale:_0x324c94}=this['context'],_0x412c45=pt(_0x3815b7['get']('locale'),_0x324c94);return new(0x0,(_0x3815b7['get']('comments'))['CommentThreadView'])(_0x324c94,_0x5678f9,_0x5a98d5['me'],{'editorConfig':{..._0x3815b7['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x3815b7['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x3815b7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3815b7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3815b7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x412c45,'CommentView':_0x3815b7['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x23af75,channelId:_0x869147,resolvedAt:_0x255faa,resolvedBy:_0x26f9ca,isFromAdapter:_0x34353c}){if(!this['hasCommentThread'](_0x23af75))throw new _0x4482e2('commentsrepository-missing-comment-thread',null,{'threadId':_0x23af75});const _0x2c9316=this['getCommentThread'](_0x23af75);if(_0x2c9316['isResolved'])throw new _0x4482e2('commentsrepository-resolved-comment-thread',null,{'threadId':_0x23af75});const _0x19ca43=this['context']['plugins']['get'](it);if(_0x2c9316['resolvedBy']=_0x19ca43['getUser'](_0x26f9ca),_0x2c9316['resolvedAt']=_0x255faa,_0x34353c||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x2698a6=this['context']['plugins']['get']('PendingActions'),_0xadee69=_0x2698a6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x869147,'threadId':_0x23af75})['then'](({resolvedAt:_0x49bff6,resolvedBy:_0x3641a3})=>{_0x2698a6['remove'](_0xadee69),_0x2c9316['resolvedBy']['id']!==_0x3641a3&&(_0x2c9316['resolvedBy']=_0x19ca43['getUser'](_0x3641a3)),_0x2c9316['resolvedAt']=_0x49bff6;})['catch'](_0x664224=>{throw console['error'](_0x664224),new _0x4482e2('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x345d92,channelId:_0x48b6ea,isFromAdapter:_0x443d31}){if(!this['hasCommentThread'](_0x345d92))throw new _0x4482e2('commentsrepository-missing-comment-thread',null,{'threadId':_0x345d92});const _0x181546=this['getCommentThread'](_0x345d92);if(!_0x181546['isResolved'])throw new _0x4482e2('commentsrepository-reopen-comment-thread',null,{'threadId':_0x345d92});if(_0x181546['resolvedBy']=null,_0x181546['resolvedAt']=null,_0x443d31||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x4567b4=this['context']['plugins']['get']('PendingActions'),_0x68fb85=_0x4567b4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x48b6ea,'threadId':_0x345d92})['then'](()=>_0x4567b4['remove'](_0x68fb85))['catch'](_0x285eaf=>{throw console['error'](_0x285eaf),new _0x4482e2('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x18405e,isFromAdapter:_0x578e25}){const _0xe41e05=this['getCommentThread'](_0x18405e);if(!_0xe41e05)throw new _0x4482e2('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x18405e),this['_threads']['delete'](_0x18405e),!_0xe41e05['isSubmitted']||_0x578e25||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5144b4=this['context']['plugins']['get']('PendingActions'),{channelId:_0xaad31a}=_0xe41e05,_0x23ab77=_0x5144b4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0xaad31a,'threadId':_0x18405e})['then'](()=>_0x5144b4['remove'](_0x23ab77))['catch'](_0xab4d37=>{throw console['error'](_0xab4d37),new _0x4482e2('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3e3548,unlinkedAt:_0x567b70,context:_0x479b69,attributes:_0x44c32c,isFromAdapter:_0x1c3476}){if('string'!=typeof _0x3e3548)throw new _0x4482e2('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3e3548});if(!this['hasCommentThread'](_0x3e3548))throw new _0x4482e2('commentsrepository-missing-comment-thread',null,{'threadId':_0x3e3548});const _0x4d2632=this['getCommentThread'](_0x3e3548);let _0x5f6148=!0x1;if(void 0x0!==_0x479b69&&_0x4d2632['context']!==_0x479b69&&(_0x4d2632['context']=_0x479b69,_0x5f6148=!0x0),void 0x0!==_0x567b70&&_0x4d2632['unlinkedAt']!==_0x567b70&&(_0x4d2632['unlinkedAt']=_0x567b70,_0x5f6148=!0x0),_0x44c32c&&!At(_0x44c32c,_0x4d2632['attributes'])&&(_0x4d2632['attributes']=_0x44c32c,_0x5f6148=!0x0),!_0x5f6148)return Promise['resolve']();if(!_0x4d2632['isSubmitted']||_0x1c3476||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x447b12=this['context']['plugins']['get']('PendingActions'),{channelId:_0x114331}=_0x4d2632,_0x44e766=_0x447b12['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x114331,'threadId':_0x3e3548,'context':_0x479b69,'unlinkedAt':_0x567b70,'attributes':_0x44c32c})['then'](()=>_0x447b12['remove'](_0x44e766))['catch'](_0x32c716=>{throw console['error'](_0x32c716),new _0x4482e2('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x23aa19){const _0x2f935d=this['context']['plugins']['get'](y),_0x37fd5c=this['getCommentThread'](_0x23aa19);if(_0x37fd5c['_isAttached']=!0x1,this['_threadToController']['has'](_0x37fd5c)){const _0x2f8e9a=this['_threadToController']['get'](_0x37fd5c),_0x5c90a5=_0x2f8e9a['view'],_0x11e5ff=_0x2f935d['getByInnerView'](_0x5c90a5);this['_threadToController']['delete'](_0x37fd5c),this['_viewToController']['delete'](_0x5c90a5),_0x11e5ff&&_0x2f935d['remove'](_0x11e5ff),_0x2f8e9a['destroy'](),_0x5c90a5['destroy']()['then'](()=>{this['_unbindEditors'](_0x5c90a5);});}}['_updateActiveAnnotation']({threadId:_0x5c56d0,resolvedAt:_0xff8e6e,unlinkedAt:_0x1d6399}){const _0x456d65=!!_0xff8e6e,_0x34899f=this['context']['plugins']['get'](y),_0x421299=this['getCommentThread'](_0x5c56d0);if(this['_threadToController']['has'](_0x421299)){const _0x41273e=this['_threadToController']['get'](_0x421299)['view'],_0x5e0b93=_0x34899f['getByInnerView'](_0x41273e);_0x5e0b93&&(_0x456d65&&_0x34899f['_removeActiveAnnotation'](_0x5e0b93),_0x1d6399?_0x5e0b93['isVisible']=!0x1:_0x5e0b93['refreshVisibility']());}}['_getExternalAuthor'](_0x237c6d){const _0xb10b4d=this['context']['plugins']['get'](it),_0x58b897=It('external:'+_0x237c6d),_0x145f7a=_0xb10b4d['getUser'](_0x58b897);return _0x145f7a||_0xb10b4d['addUser']({'id':_0x58b897,'name':_0x237c6d});}['_createNewComment']({threadId:_0x522b8a,commentId:_0x57bc61=_0x8376f1(),content:_0x5a1a89,authorId:_0x40a958,createdAt:_0x556c7f,attributes:_0x4f5b4e}){if('string'!=typeof _0x57bc61)throw new _0x4482e2('commentsrepository-invalid-commentid');if('string'!=typeof _0x40a958)throw new _0x4482e2('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5a1a89||!_0x5a1a89['trim']())throw new _0x4482e2('commentsrepository-invalid-comment-content');const _0x47ffc7=this['context']['plugins']['get'](it)['getUser'](_0x40a958);if(!_0x47ffc7)throw new _0x4482e2('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x40a958});let _0x5397ca=null,_0x21110a=_0x556c7f;return _0x4f5b4e?.['@external']&&(_0x5397ca=this['_getExternalAuthor'](_0x4f5b4e['@external']['authorName']),_0x21110a=new Date(_0x4f5b4e['@external']['createdAt'])),new wi(this,{'threadId':_0x522b8a,'id':_0x57bc61,'author':_0x5397ca||_0x47ffc7,'creator':_0x47ffc7,'content':_0x5a1a89,'createdAt':_0x556c7f,'authoredAt':_0x21110a,'attributes':_0x4f5b4e});}['_addComment'](_0x51a102){let {threadId:_0x4e0772,content:_0x58b066,attributes:_0xb0e512,isFromAdapter:_0x5f1f43}=_0x51a102;const _0x5d7541=this['getCommentThread'](_0x51a102['threadId']);if(!_0x5d7541)throw new _0x4482e2('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x23ef17=this['_createNewComment'](_0x51a102),{id:_0x526909}=_0x23ef17;if(_0x5d7541['_add'](_0x23ef17),_0x5f1f43||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5d7541['isSubmitted'])return Promise['resolve']();const _0x983f9b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5e791f}=_0x5d7541,_0x2e6f9c=_0x983f9b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0xb0e512||(_0xb0e512={}),this['adapter']['addComment']({'channelId':_0x5e791f,'threadId':_0x4e0772,'commentId':_0x526909,'content':_0x58b066,'attributes':_0xb0e512})['then'](_0x1789ae=>{_0x983f9b['remove'](_0x2e6f9c),_0x1789ae&&this['_updateComment']({'channelId':_0x5e791f,'threadId':_0x4e0772,'commentId':_0x526909,'createdAt':_0x1789ae['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x30e124=>{throw console['error'](_0x30e124),new _0x4482e2('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x536a08,commentId:_0x59e22b,content:_0x24ec92,createdAt:_0x1cd880,attributes:_0x2f2366,isFromAdapter:_0x11b8a5}){if(void 0x0!==_0x24ec92&&('string'!=typeof _0x24ec92||!_0x24ec92['trim']()['length']))throw new _0x4482e2('commentsrepository-update-comment-invalid-content');const _0xc0d4a9=this['getCommentThread'](_0x536a08),_0xc31a8=_0xc0d4a9['getComment'](_0x59e22b);if(!_0xc31a8)throw new _0x4482e2('commentsrepository-update-missing-comment',this);let _0x416c8c=!0x1;if(_0x24ec92&&_0x24ec92!==_0xc31a8['content']&&(_0xc31a8['isEditable']||_0x11b8a5)&&(_0xc31a8['content']=_0x24ec92,_0x416c8c=!0x0),_0x1cd880&&_0x1cd880!==_0xc31a8['createdAt']&&(_0xc31a8['createdAt']=_0x1cd880,_0xc31a8['attributes']&&_0xc31a8['attributes']['@external']||(_0xc31a8['authoredAt']=_0x1cd880),_0x416c8c=!0x0),_0x2f2366&&!At(_0x2f2366,_0xc31a8['attributes'])&&(_0xc31a8['attributes']=_0x2f2366,_0x416c8c=!0x0),!_0x416c8c)return Promise['resolve']();if(_0xc0d4a9['fire']('commentUpdated'),_0x11b8a5||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x9ca51b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x511857}=this['getCommentThread'](_0xc31a8['threadId']),_0x50320b=_0x9ca51b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x511857,'threadId':_0x536a08,'commentId':_0x59e22b,'content':_0x24ec92,'attributes':_0x2f2366})['then'](()=>_0x9ca51b['remove'](_0x50320b))['catch'](_0x3450e8=>{throw console['error'](_0x3450e8),new _0x4482e2('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1c6873,commentId:_0x413ec1,isFromAdapter:_0xd2cf8e}){const _0x4126ac=this['getCommentThread'](_0x1c6873),_0x9adf11=_0x4126ac['getComment'](_0x413ec1);if(!_0x9adf11)throw new _0x4482e2('commentsrepository-remove-missing-comment',this);if(_0x4126ac['_remove'](_0x9adf11),_0xd2cf8e||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x42068f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4e5ebf}=_0x4126ac,_0x46085d=_0x42068f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x4e5ebf,'threadId':_0x1c6873,'commentId':_0x413ec1})['then'](()=>_0x42068f['remove'](_0x46085d))['catch'](_0xfcfbcb=>{throw console['error'](_0xfcfbcb),new _0x4482e2('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x486827(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x177892,_0x46e061){super();const _0x8032dc=_0x46e061['isResolvable'];this['channelId']=_0x46e061['channelId'],this['id']=_0x46e061['id'],this['comments']=new _0x2ba4d0(),this['_repository']=_0x177892,this['_isAttached']=!0x1,this['_isSubmitted']=_0x46e061['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x177892,'_permissions',_0x177892,'_readOnlyChannels',()=>_0x177892['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x177892,'_permissions',()=>_0x177892['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x177892,'_permissions',()=>{const _0x400f20=_0x177892['getPermissions'](this['channelId']);return _0x400f20['write']||_0x400f20['admin'];}),this['bind']('isResolvable')['to'](_0x177892,'_permissions',()=>_0x8032dc&&_0x177892['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x46e061['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x52014b,_0x1bef30)=>_0x52014b?_0x1bef30?_0x52014b<_0x1bef30?_0x52014b:_0x1bef30:_0x52014b:_0x1bef30),this['set']('unlinkedAt',_0x46e061['unlinkedAt']||null),this['set']('resolvedAt',_0x46e061['resolvedAt']||null),this['set']('resolvedBy',_0x46e061['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x29a908=>!!_0x29a908),this['set']('attributes',_0x46e061['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x394104,_0x1eb062)=>_0x394104+_0x1eb062['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x269264,id:_0x1740fc}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x269264),{'channelId':_0x269264,'threadId':_0x1740fc});}['setUnlinkedAt'](_0x18efe4){this['_update']({'unlinkedAt':_0x18efe4});}['resolve']({resolvedAt:_0x417724=new Date(),resolvedBy:_0x287a42='',isFromAdapter:_0x1d07f1=!0x1}={}){const _0x3a242c=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x2690f3,id:_0x1b6a9c}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x2690f3),{'channelId':_0x2690f3,'threadId':_0x1b6a9c,'resolvedAt':_0x417724,'resolvedBy':_0x287a42||_0x3a242c['id'],'isFromAdapter':_0x1d07f1});}['reopen']({isFromAdapter:_0x2145a2=!0x1}={}){const {channelId:_0x29f075,id:_0x7bb9d9}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x29f075),{'channelId':_0x29f075,'threadId':_0x7bb9d9,'isFromAdapter':_0x2145a2});}['setContext'](_0x1d2a49){this['context']||this['_update']({'context':_0x1d2a49});}['setAttribute'](_0x43e42f,_0x17dff2){const _0x22f109=wt(this['attributes']);yt(_0x22f109,_0x43e42f,_0x17dff2),this['_update']({'attributes':_0x22f109});}['removeAttribute'](_0x184e97){const _0x5ed519=wt(this['attributes']);Ct(_0x5ed519,_0x184e97),this['_update']({'attributes':_0x5ed519});}['remove']({isFromAdapter:_0x144d03=!0x1}={}){const {channelId:_0xd5cf1d,id:_0x529161}=this;this['_repository']['fire'](Nt('removeCommentThread',_0xd5cf1d),{'channelId':_0xd5cf1d,'threadId':_0x529161,'isFromAdapter':_0x144d03});}['attachTo'](_0x209698){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x209698});}['addComment'](_0x37e4e0){const {channelId:_0x3f242e,id:_0x5cd428}=this;this['_repository']['fire'](Nt('addComment',_0x3f242e,_0x5cd428),Object['assign']({'channelId':_0x3f242e,'threadId':_0x5cd428},_0x37e4e0));}['getComment'](_0x23f647){if('string'!=typeof _0x23f647)throw new _0x4482e2('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x23f647});return this['comments']['get'](_0x23f647);}['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'](_0x511f17=>_0x511f17['toJSON']()),'attributes':this['attributes']};}['_add'](_0x489aae){return this['listenTo'](_0x489aae,'change:authoredAt',()=>{const _0x1b58d8=this['_findOptimalIndex'](_0x489aae),_0x232029=this['comments'];_0x1b58d8-0x1!=_0x232029['getIndex'](_0x489aae)&&_0x1b58d8+0x1!=_0x232029['getIndex'](_0x489aae)&&(this['_remove'](_0x489aae),this['_add'](_0x489aae));}),this['comments']['add'](_0x489aae,this['_findOptimalIndex'](_0x489aae));}['_update'](_0xf05638){const {channelId:_0x598db8,id:_0x532f44}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x598db8),{..._0xf05638,'channelId':_0x598db8,'threadId':_0x532f44});}['_remove'](_0x18a315){return this['stopListening'](_0x18a315),_0x18a315['destroy'](),this['comments']['remove'](_0x18a315);}['_findOptimalIndex'](_0x43ea9c){const _0x50027b=this['comments']['find'](_0x174a56=>new Date(_0x174a56['authoredAt'])['getTime']()>new Date(_0x43ea9c['authoredAt'])['getTime']());return _0x50027b?this['comments']['getIndex'](_0x50027b):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x486827(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5f0261,_0x32f250){super();const _0x47337a=_0x5f0261['context']['plugins']['get'](it)['me'],_0x2dde4a=_0x5f0261['getCommentThread'](_0x32f250['threadId']),_0x4f6b6c=0x0===_0x2dde4a['comments']['length'],_0x1f8bad=_0x47337a===_0x32f250['author'];this['id']=_0x32f250['id'],this['threadId']=_0x32f250['threadId'],this['author']=_0x32f250['author'],this['creator']=_0x32f250['creator'],this['isExternal']=Boolean(_0x32f250['attributes']&&_0x32f250['attributes']['@external']),this['set']('content',_0x32f250['content']),this['createdAt']=_0x32f250['createdAt']||new Date(),this['set']('authoredAt',_0x32f250['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2dde4a,'resolvedAt'),this['set']('attributes',_0x32f250['attributes']||{}),this['bind']('isEditable')['to'](_0x5f0261,'_permissions',()=>{const _0x4bceb7=_0x5f0261['getPermissions'](_0x2dde4a['channelId'])['write'],_0x5f1098=_0x5f0261['getPermissions'](_0x2dde4a['channelId'])['modifyAll'];return _0x1f8bad&&_0x4bceb7||!_0x1f8bad&&_0x5f1098;}),this['bind']('isRemovable')['to'](_0x2dde4a,'isRemovable',_0x5f0261,'_permissions',_0x155159=>{const _0x55b05f=_0x5f0261['getPermissions'](_0x2dde4a['channelId'])['write'],_0x1270a5=_0x5f0261['getPermissions'](_0x2dde4a['channelId'])['modifyAll'];return _0x1f8bad&&_0x55b05f||_0x155159&&_0x4f6b6c||!_0x1f8bad&&_0x1270a5&&!_0x4f6b6c;}),this['bind']('isReadOnly')['to'](_0x2dde4a,'isReadOnly'),this['_repository']=_0x5f0261;}get['weight'](){return Math['max'](function(_0x23690c){const _0x28076c=document['createElement']('div');return _0x28076c['innerHTML']=_0x23690c,_0x28076c['textContent']['length'];}(this['content']),0xc8);}['update'](_0x512e2b){const {threadId:_0x42e5e2,id:_0x198d61}=this;if(!this['_repository']['hasCommentThread'](_0x42e5e2))throw new _0x4482e2('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x523bed}=this['_repository']['getCommentThread'](_0x42e5e2);this['_repository']['fire'](Nt('updateComment',_0x523bed,_0x42e5e2),{'channelId':_0x523bed,'threadId':_0x42e5e2,'commentId':_0x198d61,..._0x512e2b});}['setAttribute'](_0x10aaf6,_0x10465f){const _0x1af5df=wt(this['attributes']);yt(_0x1af5df,_0x10aaf6,_0x10465f),this['update']({'attributes':_0x1af5df});}['removeAttribute'](_0x3f19a8){const _0x331a87=wt(this['attributes']);Ct(_0x331a87,_0x3f19a8),this['update']({'attributes':_0x331a87});}['remove'](_0xac7e39={}){if(!_0xac7e39['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x44551a,id:_0x8859f1}=this;if(!this['_repository']['hasCommentThread'](_0x44551a))throw new _0x4482e2('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x49e218}=this['_repository']['getCommentThread'](_0x44551a);this['_repository']['fire'](Nt('removeComment',_0x49e218,_0x44551a),{'channelId':_0x49e218,'threadId':_0x44551a,'commentId':_0x8859f1,..._0xac7e39});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x3efaff,..._0x77a214){for(const _0xee12d5 of _0x77a214)void 0x0!==_0xee12d5&&(_0x3efaff+=':'+String(_0xee12d5));return _0x3efaff;}class ot extends _0x47f0a2{constructor(_0x22ea54){super(_0x22ea54),this['set']('hasContent',!0x1);}['refresh'](){const _0x66edb9=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0xc23620 of _0x66edb9['getRanges']())if(this['_hasContent'](_0xc23620))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x25091f=_0x8376f1(),ranges:_0x32d878,comment:_0x4d6f37}={}){const _0x304fc5=this['editor']['model'],_0xea0f8e=_0x32d878??Array['from'](_0x304fc5['document']['selection']['getRanges']()),_0x1cba0c=[];for(const _0x2d20e1 of _0xea0f8e)this['_hasContent'](_0x2d20e1)&&_0x1cba0c['push'](this['_trimToContent'](_0x2d20e1));if(!_0x1cba0c['length'])throw new _0x4482e2('addcommentthreadcommand-incorrect-ranges',null);_0x4d6f37&&this['_createCommentThread'](_0x25091f,_0x4d6f37),this['_createMarkersFromRanges'](_0x25091f,_0x1cba0c,!!_0x4d6f37);}['_createMarkersFromRanges'](_0x3f8f45,_0x48fdc4,_0xf648a5){this['editor']['model']['change'](_0x3c6b36=>{for(const _0x378221 of _0x48fdc4){const _0x498b4f=_0x8376f1()['substr'](0x1,0x5),_0x4969d3='comment:'+_0x3f8f45+':'+_0x498b4f;_0x3c6b36['addMarker'](_0x4969d3,{'range':_0x378221,'usingOperation':_0xf648a5,'affectsData':_0xf648a5});}});}['_createCommentThread'](_0x1e97aa,_0x2e0369){const _0x4ee1b6=this['editor']['plugins']['get']('CommentsRepository'),_0x46d10f=this['editor']['config']['get']('collaboration.channelId'),_0x55c429=this['editor']['plugins']['get']('Users')['me'];if(!_0x55c429)throw new _0x4482e2('addcommentthreadcommand-user-not-found',null);_0x4ee1b6['addCommentThread']({'threadId':_0x1e97aa,'channelId':_0x46d10f,'comments':[{'authorId':_0x55c429['id'],'content':_0x2e0369,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x8d5001){for(const _0x5efba of _0x8d5001['getItems']())if(this['_itemIsContent'](_0x5efba))return!0x0;return!0x1;}['_itemIsContent'](_0x5146ee){return _0x5146ee['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5146ee)&&!_0x5146ee['is']('element','tableCell');}['_trimToContent'](_0x8bd82c){const _0x693938=_0x4ed08f=>!this['_itemIsContent'](_0x4ed08f['item']),_0x132714=_0x8bd82c['start']['getLastMatchingPosition'](_0x693938),_0x59c105=_0x8bd82c['end']['getLastMatchingPosition'](_0x693938,{'direction':'backward'});return this['editor']['model']['createRange'](_0x132714,_0x59c105);}}class b extends _0x4626af{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11c306){super(_0x11c306),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x375253=this['editor'],_0x320edf=_0x375253['model']['document']['selection'],_0x4ad9c2=_0x2a6dac(()=>this['refreshSelectedViews'](),0xa);_0x320edf['on']('change:range',(_0x4f07a0,_0x2e5e72)=>{_0x2e5e72['directChange']&&(_0x4ad9c2['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x375253['editing']['view']['document'],'change:isFocused',(_0x530b58,_0x241829,_0x273934)=>{_0x273934&&_0x4ad9c2();}),this['listenTo'](_0x375253['ui']['focusTracker'],'change:isFocused',(_0x130d0a,_0x432e77,_0x28fd74)=>{_0x28fd74||this['fire']('blur',{'isAnnotationTracked':_0x2860cd=>this['_editorAnnotationsData']['has'](_0x2860cd['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x2f4764){if(this['_editorAnnotations']['has'](_0x2f4764['view']))return;this['_editorAnnotations']['add'](_0x2f4764['view']),this['editor']['ui']['focusTracker']['add'](_0x2f4764['view']['element']);const _0x20f7de=this['editor']['plugins']['get'](y);this['listenTo'](_0x20f7de['collection'],'remove',(_0x43e6e5,_0x4ce49d)=>{this['editor']['ui']['focusTracker']['remove'](_0x4ce49d['view']['element']),this['_editorAnnotations']['delete'](_0x4ce49d['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4a9afa){if('function'!=typeof _0x4a9afa)throw new _0x4482e2('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4a9afa);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3bb131,annotations:_0x3c27d7}){const _0x39638d=[],_0x341880=this['editor']['model']['document']['selection'],_0xcba734=Array['from'](_0x341880['getRanges']());for(const [_0x59bb64,_0x15682e]of this['_editorAnnotationsData']){const _0x3baf26=_0xbfaf70(_0x15682e),_0x3c1df8=_0x3c27d7['getByInnerView'](_0x59bb64);_0x3baf26&&_0x3c1df8&&_0x39638d['push']({'annotation':_0x3c1df8,'range':_0x3baf26});}function _0xbfaf70(_0x2d817d){for(const _0x534878 of _0x2d817d)for(const _0x5e3996 of _0xcba734)if(_0x534878['containsRange'](_0x5e3996,!_0x341880['isCollapsed']))return _0x534878;return null;}return _0x39638d['sort']((_0x5a0d38,_0xeb20d5)=>{const _0x52fac2=_0x5a0d38['range'],_0x52c5a6=_0xeb20d5['range'];if(!_0x52fac2['isEqual'](_0x52c5a6)){if(_0x52fac2['containsRange'](_0x52c5a6,!0x0))return 0x1;if(_0x52c5a6['containsRange'](_0x52fac2,!0x0))return-0x1;}return _0x5a0d38['annotation']==_0x3bb131?-0x1:_0xeb20d5['annotation']==_0x3bb131?0x1:0x0;})['map'](_0x2823ad=>_0x2823ad['annotation']);}get['_editorAnnotationsData'](){const _0x2fa29b=new Map();for(const _0x2f83c8 of Array['from'](this['_dataCollectors']))for(const [_0x45adff,_0x491c49]of _0x2f83c8())_0x2fa29b['set'](_0x45adff,_0x491c49);return _0x2fa29b;}}class st extends _0x4626af{['afterInit'](){const _0x31de39=this['editor'];if(!_0x31de39['plugins']['has']('RestrictedEditingModeEditing'))return;_0x31de39['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x4626af{constructor(_0xf282a9){super(_0xf282a9),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2b71b0=this['editor'],_0x24b41e=_0x2b71b0['commands']['get']('importWord'),_0x465faa=_0x2b71b0['plugins']['get'](it);_0x24b41e&&(_0x24b41e['on']('execute',(_0x2f3013,[,_0x54d3e9])=>{_0x54d3e9['collaboration_features']={'comments':!0x0,'user_id':_0x465faa['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x24b41e,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x528dd9,_0x265395){const {comment_threads:_0x264e79}=_0x265395;_0x264e79&&_0x264e79['forEach'](({thread_id:_0x47be04,comments:_0x3e2d93,is_resolved:_0x224078})=>{const _0xe2da19=new Date(),_0x17d9a8=_0x3e2d93['map'](({author:_0x5b93c3,content:_0x250c8a,created_at:_0x137af7})=>({'content':_0x250c8a,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0xe2da19,'attributes':{'@external':{'authorName':_0x5b93c3,'createdAt':_0x137af7?new Date(_0x137af7):new Date(),'source':'importWord'}}})),_0x459191=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x459191,'threadId':_0x47be04,'comments':_0x17d9a8,'resolvedAt':_0x224078?_0xe2da19:null});});}}class at extends _0x4626af{constructor(_0x22fe4a){super(_0x22fe4a),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x420867=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x420867,'contentInsertion',(_0x39887f,_0x20749b)=>this['_removeMarkersWithoutThreads'](_0x20749b['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x1a2230){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x1a2230;const _0x378b7c=this['editor']['plugins']['get']('CommentsRepository');for(const _0x1fa084 of _0x1a2230['keys']()){const [_0x21cfdf,_0x319de7]=_0x1fa084['split'](':');'comment'!=_0x21cfdf||_0x378b7c['hasCommentThread'](_0x319de7)||_0x1a2230['delete'](_0x1fa084);}return _0x1a2230;}['_registerMarkerInClipboardPipeline'](){const _0xb0acdc=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2d2928=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2d2928&&_0xb0acdc['_registerMarkerToCopy']('comment',_0x2d2928);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x58862f){switch(_0x58862f){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x15637d){const _0x38e409=_0x15637d['split'](':');return{'group':_0x38e409[0x0],'id':_0x38e409[0x1],'part':_0x38e409[0x2]};}class ut extends _0x4626af{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x25014a,_0xa05d91)=>{if(!_0xa05d91['options']['showCommentHighlights'])return null;if(_0xa05d91['options']['ignoreResolvedComments']){const {id:_0x5a4591}=ft(_0x25014a['markerName']),_0x11b9fe=this['editor']['plugins']['get'](o);if(_0x11b9fe['getCommentThread'](_0x5a4591)?.['isResolved']&&_0x25014a['item'])return _0xa05d91['consumable']['consume'](_0x25014a['item'],'addMarker:'+_0x25014a['markerName']),_0xa05d91['consumable']['consume'](_0x25014a['item'],'removeMarker:'+_0x25014a['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xbcc02f=>{_0xbcc02f['on']('addMarker:comment',(_0x1445a3,_0x4d0634,_0x127c68)=>{if(!_0x127c68['options']['showCommentHighlights'])return;const _0x18c438=_0x4d0634['item'];if(!_0x18c438)return;const _0x5d2a6a=_0x127c68['mapper']['toViewElement'](_0x18c438);this['editor']['model']['schema']['isObject'](_0x18c438)&&_0x5d2a6a&&!_0x5d2a6a['getCustomProperty']('widget')&&_0x5d2a6a['is']('containerElement')&&_0x4a5a07(_0x5d2a6a,_0x127c68['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x11f9bc,{writer:_0x1d4ca5,options:_0x414b48})=>{if(!_0x414b48['showCommentHighlights'])return null;const _0x48ad45=_0x1d4ca5['createContainerElement']('div'),_0x4a137a=_0x1d4ca5['createEmptyElement']('hr');return _0x1d4ca5['addClass']('ck-horizontal-line',_0x48ad45),_0x1d4ca5['insert'](_0x1d4ca5['createPositionAt'](_0x48ad45,0x0),_0x4a137a),_0x48ad45;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x35ea49,{writer:_0x2d5a76,options:_0x57a49e})=>{if(!_0x57a49e['showCommentHighlights'])return null;const _0xe22e53=_0x2d5a76['createContainerElement']('span'),_0x67ea59=_0x2d5a76['createEmptyElement']('img');return _0x2d5a76['addClass']('image-inline',_0xe22e53),_0x2d5a76['insert'](_0x2d5a76['createPositionAt'](_0xe22e53,0x0),_0x67ea59),_0xe22e53;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3976c8,{writer:_0x1ac18a,options:_0x320992})=>{if(_0x320992['showCommentHighlights'])return _0x1ac18a['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1f3733,_0x3c62d0,_0x597253)=>{_0x597253['options']['showCommentHighlights']&&_0x1f3733['stop']();},{'priority':'high'});}}class r extends _0x4626af{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(_0x3453b0){super(_0x3453b0),this['set']('isThreadsLoadingPaused',!0x0),_0x3453b0['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2934a8,_0x1b0cd3,_0x394df7,_0x2bbb7c)=>{const _0x555f3d=_0x3453b0['plugins']['get'](o),_0x3ebd71=_0x394df7?ft(_0x394df7)['id']:null;_0x3453b0['model']['change'](()=>{if(_0x3ebd71){const _0x415332=this['getAllMarkersForId'](_0x3ebd71);for(const _0x4f0978 of _0x415332)_0x3453b0['editing']['reconvertMarker'](_0x4f0978);}if(_0x2bbb7c){const {id:_0x2c8e5f}=ft(_0x2bbb7c),_0x5c4866=_0x555f3d['getCommentThread'](_0x2c8e5f);if(_0x5c4866&&_0x5c4866['unlinkedAt'])return;if(_0x5c4866&&!_0x5c4866['isAttached'])return;const _0x1f450e=this['getAllMarkersForId'](_0x2c8e5f);for(const _0x42a902 of _0x1f450e)_0x3453b0['editing']['reconvertMarker'](_0x42a902);}}),_0x3ebd71&&this['scrollToThreadMarker'](_0x3ebd71);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2c444f=this['editor'],_0xe60bf7=_0x2c444f['plugins']['get'](o),_0x32c367=_0x2c444f['config']['get']('collaboration.channelId'),_0x4990cd=_0xe60bf7['getCommentThreads']()['filter'](_0x1a8371=>_0x1a8371['channelId']!==_0x32c367);_0x2c444f['commands']['add']('addCommentThread',new ot(_0x2c444f)),this['listenTo'](_0x2c444f,'change:isReadOnly',(_0xae807f,_0x4b5345,_0x220004)=>{_0xe60bf7['switchReadOnly'](_0x220004,_0x2c444f['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xe60bf7,dt('addCommentThread',_0x32c367),(_0x100dac,{threadId:_0x23b75f})=>{const _0x569f1b=this['editor']['plugins']['get'](o)['getCommentThread'](_0x23b75f);_0x569f1b?.['unlinkedAt']&&this['_attachArchivedThread'](_0x23b75f);}),this['listenTo'](_0xe60bf7,dt('removeCommentThread',_0x32c367),(_0x345963,{threadId:_0x30d0c9})=>{_0x2c444f['model']['enqueueChange']({'isUndoable':!0x1},_0x431c2f=>{const _0x416cb1=this['getAllMarkersForId'](_0x30d0c9);for(const _0x39e115 of _0x416cb1)_0x431c2f['removeMarker'](_0x39e115);});}),this['listenTo'](_0xe60bf7,dt('resolveCommentThread',_0x32c367),(_0x58bd4e,{threadId:_0x45312d})=>{(this['_reconvertMarkers'](_0x45312d),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x45312d)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xe60bf7,dt('reopenCommentThread',_0x32c367),(_0x3be39e,{threadId:_0x3ae2de})=>{this['_reconvertMarkers'](_0x3ae2de);},{'priority':'low'}),this['listenTo'](_0xe60bf7,dt('addComment',_0x32c367),(_0x32473b,{threadId:_0x19b337,isFromAdapter:_0x423ea2})=>{const _0x11d499=this['getAllMarkersForId'](_0x19b337);if(_0x423ea2||0x0==_0x11d499['length']||!_0xe60bf7['hasCommentThread'](_0x19b337))return;0x1===_0xe60bf7['getCommentThread'](_0x19b337)['length']&&_0x2c444f['model']['enqueueChange']({'isUndoable':!0x1},_0x2ace15=>{for(const _0x45ab17 of _0x11d499)_0x2ace15['updateMarker'](_0x45ab17,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4990cd);}['afterInit'](){!async function(_0x1d3956){const _0x194471=_0x2c35b2([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x3c9758=0x73460ab3,_0x285a2d=0x7341880b^_0x3c9758,_0x15e05a=window[_0x2c35b2([0x44,0x61,0x74,0x65])][_0x2c35b2([0x6e,0x6f,0x77])](),_0x43a487=_0x1d3956[_0x2c35b2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d1e86=new window[(_0x2c35b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525ac4=>{_0x43a487[_0x2c35b2([0x6f,0x6e,0x63,0x65])](_0x2c35b2([0x72,0x65,0x61,0x64,0x79]),_0x525ac4);}),_0x9de6f1={[_0x2c35b2([0x6b,0x74,0x79])]:_0x2c35b2([0x45,0x43]),[_0x2c35b2([0x75,0x73,0x65])]:_0x2c35b2([0x73,0x69,0x67]),[_0x2c35b2([0x63,0x72,0x76])]:_0x2c35b2([0x50,0x2d,0x32,0x35,0x36]),[_0x2c35b2([0x78])]:_0x2c35b2([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]),[_0x2c35b2([0x79])]:_0x2c35b2([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]),[_0x2c35b2([0x61,0x6c,0x67])]:_0x2c35b2([0x45,0x53,0x32,0x35,0x36])},_0x18144a=_0x43a487[_0x2c35b2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c35b2([0x67,0x65,0x74])](_0x2c35b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x189b92(){let _0x4f3d27,_0x5e0571=null,_0x586b83=null;try{if(_0x18144a==_0x2c35b2([0x47,0x50,0x4c]))return _0x2c35b2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f3d27=_0x3dede9(),!_0x4f3d27)return _0x2c35b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f3d27[_0x2c35b2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x586b83=_0xd5359e(_0x4f3d27[_0x2c35b2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f3d27[_0x2c35b2([0x6a,0x74,0x69])])),await _0x1d248d()?_0x4f3e22()?_0x1bd989()?_0x2c35b2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x70539()?(_0x4f3d27[_0x2c35b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c35b2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e0571=_0x1093d5(_0x2c35b2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ea69f()):_0x2c35b2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c35b2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c35b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c35b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1bd989(){const _0x51af0c=[_0x2c35b2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c35b2([0x74,0x72,0x69,0x61,0x6c])][_0x2c35b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3d27[_0x2c35b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x15e05a/0x3e8:0xe10*_0x285a2d;return _0x4f3d27[_0x2c35b2([0x65,0x78,0x70])]<_0x51af0c;}function _0x4f3e22(){const _0x558bbd=_0x4f3d27[_0x2c35b2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x558bbd)return!0x1;if(_0x558bbd[_0x2c35b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c35b2([0x2a])))return!0x0;if(_0x558bbd[_0x2c35b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c35b2([0x43,0x4d,0x54])))return!0x0;if(_0x558bbd[_0x2c35b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c35b2([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x92b75a())return!0x0;if(_0x558bbd[_0x2c35b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c35b2([0x52,0x43,0x4d,0x54]))){if(_0x1246e1())return!0x0;if(_0x4333e2()||_0x4e9168())return!0x0;}return!0x1;}function _0x70539(){const _0x5493b7=_0x4f3d27[_0x2c35b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5493b7||0x0==_0x5493b7[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4d8b8c}=new URL(window[_0x2c35b2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5493b7[_0x2c35b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d8b8c))return!0x0;const _0x576836=_0x4d8b8c[_0x2c35b2([0x73,0x70,0x6c,0x69,0x74])](_0x2c35b2([0x2e]));return _0x5493b7[_0x2c35b2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf413da=>_0xf413da[_0x2c35b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c35b2([0x2a])))[_0x2c35b2([0x6d,0x61,0x70])](_0x31eb1a=>_0x31eb1a[_0x2c35b2([0x73,0x70,0x6c,0x69,0x74])](_0x2c35b2([0x2e])))[_0x2c35b2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a3901=>_0x4a3901[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x576836[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c35b2([0x6d,0x61,0x70])](_0x459d5b=>Array(_0x576836[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x459d5b[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c35b2([0x66,0x69,0x6c,0x6c])](_0x459d5b[0x0]===_0x2c35b2([0x2a])?_0x2c35b2([0x2a]):'')[_0x2c35b2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x459d5b))[_0x2c35b2([0x73,0x6f,0x6d,0x65])](_0x102e96=>_0x576836[_0x2c35b2([0x65,0x76,0x65,0x72,0x79])]((_0x58aaf7,_0x4c3f63)=>_0x102e96[_0x4c3f63]===_0x58aaf7||_0x102e96[_0x4c3f63]===_0x2c35b2([0x2a])));}function _0x2ea69f(){return _0x5e0571&&_0x586b83?new window[(_0x2c35b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28b28c,_0x102e4e)=>{_0x5e0571[_0x2c35b2([0x74,0x68,0x65,0x6e])](_0x28b28c,_0x102e4e),_0x586b83[_0x2c35b2([0x74,0x68,0x65,0x6e])](_0x4307ad=>{_0x4307ad!=_0x2c35b2([0x56,0x61,0x6c,0x69,0x64])&&_0x28b28c(_0x4307ad);},_0x102e4e);}):_0x5e0571||_0x586b83||_0x2c35b2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd5359e(_0x660fe0,_0x12aa2d){return new window[(_0x2c35b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x322d62=>{if(_0x6495e4())return _0x322d62(_0x2c35b2([0x56,0x61,0x6c,0x69,0x64]));_0xb0e3e5(),_0x43a487[_0x2c35b2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c35b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e8c5d=!0x1;const _0x2132e6=_0x8376f1();function _0x3ff9fd(_0x371783){return!!_0x371783&&(typeof _0x371783===_0x2c35b2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x371783===_0x2c35b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x371783[_0x2c35b2([0x74,0x68,0x65,0x6e])]===_0x2c35b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x371783[_0x2c35b2([0x63,0x61,0x74,0x63,0x68])]===_0x2c35b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b3c21(_0x53d607){_0x594a8a(_0x53d607)[_0x2c35b2([0x74,0x68,0x65,0x6e])](_0x5e7e29=>{if(!_0x5e7e29||_0x5e7e29[_0x2c35b2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c35b2([0x6f,0x6b]))return _0x2c35b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36c739(_0x46f3ce(_0x2132e6+_0x12aa2d))!=_0x5e7e29[_0x2c35b2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c35b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c35b2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c35b2([0x74,0x68,0x65,0x6e])](_0x70072f=>(_0x46d03d(),_0x70072f),()=>{const _0x4e54a9=_0x191434();return null==_0x4e54a9?(_0x46d03d(),_0x2c35b2([0x56,0x61,0x6c,0x69,0x64])):_0x2c35b2(_0x15e05a-_0x4e54a9>(0x574a8eb3^_0x3c9758)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c35b2([0x74,0x68,0x65,0x6e])](_0x322d62)[_0x2c35b2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x322d62(_0x2c35b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1627d5=0x7370e433^_0x3c9758;function _0x46d03d(){const _0x1db4b0=_0x2c35b2([0x6c,0x6c,0x63,0x74,0x2d])+_0x36c739(_0x46f3ce(_0x660fe0)),_0x4fd9c4=_0x2b3d7(_0x36c739(window[_0x2c35b2([0x4d,0x61,0x74,0x68])][_0x2c35b2([0x63,0x65,0x69,0x6c])](_0x15e05a/_0x1627d5)));window[_0x2c35b2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c35b2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1db4b0,_0x4fd9c4);}function _0x191434(){const _0x1c23b7=_0x2c35b2([0x6c,0x6c,0x63,0x74,0x2d])+_0x36c739(_0x46f3ce(_0x660fe0)),_0x3660e0=window[_0x2c35b2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c35b2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c23b7);return _0x3660e0?window[_0x2c35b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b3d7(_0x3660e0),0x10)*_0x1627d5:null;}function _0x594a8a(_0x34889e){return new window[(_0x2c35b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57209b,_0x30ddea)=>{_0x34889e[_0x2c35b2([0x74,0x68,0x65,0x6e])](_0x57209b,_0x30ddea),window[_0x2c35b2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30ddea,0x7347de73^_0x3c9758);});}}_0x43a487[_0x2c35b2([0x6f,0x6e])](_0x2c35b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e3dcc,_0x5b5772)=>{if(_0x5b5772[0x0]!=_0x660fe0)return _0x322d62(_0x2c35b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b5772[0x1]={..._0x5b5772[0x1],[_0x2c35b2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2132e6};},{[_0x2c35b2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c35b2([0x68,0x69,0x67,0x68])}),_0x43a487[_0x2c35b2([0x6f,0x6e])](_0x2c35b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b4f56=>{_0x3ff9fd(_0x4b4f56[_0x2c35b2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e8c5d=!0x0,_0x3b3c21(_0x4b4f56[_0x2c35b2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c35b2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c35b2([0x6c,0x6f,0x77])}),_0x4d1e86[_0x2c35b2([0x74,0x68,0x65,0x6e])](()=>{_0x4e8c5d||_0x322d62(_0x2c35b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6495e4(){return _0x43a487[_0x2c35b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c35b2([0x76,0x69,0x65,0x77])][_0x2c35b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c35b2([0x61,0x75,0x74,0x6f]);}function _0xb0e3e5(){_0x43a487[_0x2c35b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c35b2([0x76,0x69,0x65,0x77])][_0x2c35b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c35b2([0x61,0x75,0x74,0x6f]);}}function _0x1093d5(_0x559306){const _0x1a772d=[new window[(_0x2c35b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x194228=>setTimeout(_0x194228,0x734f347f^_0x3c9758)),_0x4d1e86[_0x2c35b2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c35b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf8eb=>{let _0x2de569=0x0;_0x43a487[_0x2c35b2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c35b2([0x6f,0x6e])](_0x2c35b2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48720c,_0x4ee946)=>{_0x4ee946[0x0][_0x2c35b2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2de569++,_0x2de569==(0x73460f5b^_0x3c9758)&&(_0x3cf8eb(),_0x48720c[_0x2c35b2([0x6f,0x66,0x66])]());});}))];return window[_0x2c35b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c35b2([0x72,0x61,0x63,0x65])](_0x1a772d)[_0x2c35b2([0x74,0x68,0x65,0x6e])](()=>_0x559306);}async function _0x1613a5(){await _0x4d1e86,_0x43a487[_0x2c35b2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c35b2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x325247,_0x43a487[_0x2c35b2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c35b2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x325247,_0x43a487[_0x2c35b2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c35b2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x92b75a(){return window[_0x2c35b2([0x67,0x6c,0x6f,0x62])]&&window[_0x2c35b2([0x67,0x6c,0x6f,0x62])][_0x2c35b2([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1246e1(){return _0x6e6da0(_0x2c35b2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3b1d84(_0x2c35b2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c35b2([0x73,0x74,0x61,0x74,0x65])]==_0x2c35b2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4333e2(){return _0x6e6da0(_0x2c35b2([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 _0x4e9168(){return _0x6e6da0(_0x2c35b2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x519616(_0x46ae2a){const _0x187ea1=_0xcf4be();_0x43a487[_0x187ea1]=_0x2c35b2([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46ae2a,_0x46ae2a!=_0x2c35b2([0x56,0x61,0x6c,0x69,0x64])&&_0x1613a5();}function _0xcf4be(){const _0x38d98b=window[_0x2c35b2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c35b2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c35b2([0x6e,0x6f,0x77])]())[_0x2c35b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c35b2([0x2e]),'');let _0x202cc1=_0x2c35b2([0x4b]);for(let _0xd55941=0x0;_0xd55941<_0x38d98b[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd55941+=0x2){let _0xc5d076=window[_0x2c35b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38d98b[_0x2c35b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd55941,_0xd55941+0x2));_0xc5d076>=_0x194471[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc5d076-=_0x194471[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x202cc1+=_0x194471[_0xc5d076];}return _0x202cc1;}function _0x3dede9(){const _0x127ba1=_0x18144a[_0x2c35b2([0x73,0x70,0x6c,0x69,0x74])](_0x2c35b2([0x2e]));if(0x3!=_0x127ba1[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x194b9c(_0x127ba1[0x1]);function _0x194b9c(_0x17c42d){const _0x248e1e=_0x24e244(_0x17c42d);return _0x248e1e&&_0x1a9883()?_0x248e1e:null;function _0x1a9883(){const _0x27ea9a=_0x248e1e[_0x2c35b2([0x6a,0x74,0x69])],_0x2c114b=window[_0x2c35b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27ea9a[_0x2c35b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27ea9a[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57012d={..._0x248e1e,[_0x2c35b2([0x6a,0x74,0x69])]:_0x27ea9a[_0x2c35b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27ea9a[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57012d[_0x2c35b2([0x76,0x63])],_0x46f3ce(_0x57012d)==_0x2c114b;}}}async function _0x1d248d(){let _0x782a65=!0x0;try{const _0x3445fd=_0x18144a[_0x2c35b2([0x73,0x70,0x6c,0x69,0x74])](_0x2c35b2([0x2e])),[_0xb2645f,_0x105514,_0x583ca9]=_0x3445fd;return _0x4d0a20(_0xb2645f),await _0x5ceeb4(_0xb2645f,_0x105514,_0x583ca9),_0x782a65;}catch{return!0x1;}function _0x4d0a20(_0x3f4564){const _0x45c2fa=_0x24e244(_0x3f4564);_0x45c2fa&&_0x45c2fa[_0x2c35b2([0x61,0x6c,0x67])]==_0x2c35b2([0x45,0x53,0x32,0x35,0x36])||(_0x782a65=!0x1);}async function _0x5ceeb4(_0x3a2d3d,_0x420214,_0x241094){const _0x457972=window[_0x2c35b2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c35b2([0x66,0x72,0x6f,0x6d])](_0x5901c0(_0x241094),_0xd37567=>_0xd37567[_0x2c35b2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23b0c9=new window[(_0x2c35b2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c35b2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a2d3d+_0x2c35b2([0x2e])+_0x420214),_0x133835=window[_0x2c35b2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c35b2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x133835)return;const _0x1ecbac=await _0x133835[_0x2c35b2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c35b2([0x6a,0x77,0x6b]),_0x9de6f1,{[_0x2c35b2([0x6e,0x61,0x6d,0x65])]:_0x2c35b2([0x45,0x43,0x44,0x53,0x41]),[_0x2c35b2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c35b2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c35b2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x133835[_0x2c35b2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c35b2([0x6e,0x61,0x6d,0x65])]:_0x2c35b2([0x45,0x43,0x44,0x53,0x41]),[_0x2c35b2([0x68,0x61,0x73,0x68])]:{[_0x2c35b2([0x6e,0x61,0x6d,0x65])]:_0x2c35b2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ecbac,_0x457972,_0x23b0c9)||(_0x782a65=!0x1);}}function _0x24e244(_0x44beac){return _0x44beac[_0x2c35b2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c35b2([0x65,0x79]))?JSON[_0x2c35b2([0x70,0x61,0x72,0x73,0x65])](_0x5901c0(_0x44beac)):null;}function _0x5901c0(_0x3cc6a6){return window[_0x2c35b2([0x61,0x74,0x6f,0x62])](_0x3cc6a6[_0x2c35b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c35b2([0x2b]))[_0x2c35b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c35b2([0x2f])));}function _0x46f3ce(_0x5224a3){let _0x1ae0bd=0x1505;function _0x378051(_0x45a1a8){for(let _0x4d9333=0x0;_0x4d9333<_0x45a1a8[_0x2c35b2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d9333++){const _0x471d0f=_0x45a1a8[_0x2c35b2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d9333);_0x1ae0bd=(_0x1ae0bd<<0x5)+_0x1ae0bd+_0x471d0f,_0x1ae0bd&=_0x1ae0bd;}}function _0x446f32(_0x307032){Array[_0x2c35b2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x307032)?_0x307032[_0x2c35b2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x446f32):_0x307032&&typeof _0x307032==_0x2c35b2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c35b2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x307032)[_0x2c35b2([0x73,0x6f,0x72,0x74])]()[_0x2c35b2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x569e5f,_0x2d38f7])=>{_0x378051(_0x569e5f),_0x446f32(_0x2d38f7);}):_0x378051(window[_0x2c35b2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x307032));}return _0x446f32(_0x5224a3),_0x1ae0bd>>>0x0;}function _0x36c739(_0x5eea8d){return _0x5eea8d[_0x2c35b2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c35b2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c35b2([0x30]));}function _0x2b3d7(_0x20044c){return _0x20044c[_0x2c35b2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c35b2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c35b2([0x6a,0x6f,0x69,0x6e])]('');}function _0x6e6da0(_0x2a648e){return _0x43a487[_0x2c35b2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c35b2([0x68,0x61,0x73])](_0x2a648e);}function _0x3b1d84(_0x5a17ee){return _0x43a487[_0x2c35b2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c35b2([0x67,0x65,0x74])](_0x5a17ee);}function _0x325247(){}function _0x2c35b2(_0x1fad55){return _0x1fad55['map'](_0x1fec9b=>String['fromCharCode'](_0x1fec9b))['join']('');}_0x519616(await _0x189b92());}(this);}['destroy'](){const _0x1805a4=this['editor']['plugins']['get'](o),_0x15f0ab=this['editor']['config']['get']('collaboration.channelId');for(const _0x245a3f of _0x1805a4['getCommentThreads']({'channelId':_0x15f0ab}))_0x1805a4['_detachCommentThread'](_0x245a3f['id']),_0x1805a4['_threads']['delete'](_0x245a3f['id']);super['destroy']();}['hasMarkerForId'](_0x538a41){return this['getAllMarkersForId'](_0x538a41)['length']>0x0;}['getAllMarkersForId'](_0x137e49){const _0x5af73e=[];for(const _0x3ec2d4 of this['editor']['model']['markers'])_0x3ec2d4['name']['startsWith']('comment:'+_0x137e49)&&_0x5af73e['push'](_0x3ec2d4);return _0x5af73e;}['scrollToThreadMarker'](_0x454dc0){setTimeout(()=>{const _0x5a7c49=this['_getTargetForId'](_0x454dc0);if(!_0x5a7c49)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x454dc0&&nt({'target':_0x5a7c49[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x5520ab){this['editor']['model']['change'](()=>{for(const _0x5c0023 of this['getAllMarkersForId'](_0x5520ab))this['editor']['editing']['reconvertMarker'](_0x5c0023);});}['_attachArchivedThread'](_0x32e516){const _0x33ebbf=this['editor']['plugins']['get'](o),_0x13113e=this['editor']['plugins']['get'](b),_0x1efaf4=_0x33ebbf['getCommentThread'](_0x32e516);if(!_0x1efaf4['isAttached']){const _0x51475c=_0x1efaf4['attachTo'](()=>this['_getTargetForId'](_0x1efaf4['id']));_0x13113e['registerAnnotation'](_0x51475c),_0x1efaf4['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x304e8e=this['editor'],_0x37a5a9=_0x304e8e['plugins']['get'](it);_0x304e8e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x13399f,_0x99508b)=>{const {id:_0xdd4f25}=ft(_0x13399f['markerName']),_0x3dd977=_0x304e8e['plugins']['get'](o)['getCommentThread'](_0xdd4f25),_0x3ecfb=this['activeMarker']&&ft(this['activeMarker'])['id']===_0xdd4f25;let _0x290a22;if(_0x3dd977&&_0x3dd977['isResolved']&&!_0x3ecfb&&_0x13399f['item'])return _0x99508b['consumable']['consume'](_0x13399f['item'],'addMarker:'+_0x13399f['markerName']),_0x99508b['consumable']['consume'](_0x13399f['item'],'removeMarker:'+_0x13399f['markerName']),null;const _0x2546f6=['ck-comment-marker'];return _0x3ecfb&&_0x2546f6['push']('ck-comment-marker--active'),_0x290a22=_0x3dd977?.['length']?_0x3dd977['comments']['first']['author']['id']:_0x37a5a9['me']['id'],{'classes':_0x2546f6,'attributes':{'data-comment':_0xdd4f25,'data-author-id':_0x290a22}};}}),_0x304e8e['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x78a216,{options:_0x30e508})=>{if(_0x30e508['showCommentHighlights'])return null;const _0x3a3ab2=_0x304e8e['plugins']['get'](o),_0x2438b7=_0x304e8e['model']['markers']['get'](_0x78a216),{id:_0xaa18e7,part:_0x1ffec9}=ft(_0x78a216);return _0x2438b7&&!_0x2438b7['affectsData']||_0x30e508['ignoreResolvedComments']&&_0x3a3ab2['getCommentThread'](_0xaa18e7)?.['isResolved']?null:{'group':'comment','name':_0x1ffec9?_0xaa18e7+':'+_0x1ffec9:_0xaa18e7};}}),_0x304e8e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x45c53b,{writer:_0x17035c})=>_0x17035c['createElement']('$marker',{'data-name':'comment:'+_0x45c53b['getAttribute']('id')})}),_0x304e8e['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x164054=this['editor'],_0x193dd1=_0x164054['plugins']['get'](o),_0x251963=new Set(),_0x2f4ca4=new Set();_0x164054['model']['document']['registerPostFixer'](_0x5e893a=>{let _0x5352ed=!0x1;for(const {name:_0x2c8de4,data:_0x2f473a}of _0x164054['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3a0bf4,id:_0x311fc8}=ft(_0x2c8de4);let _0x176b0d=_0x2f473a['newRange'];if('comment'!==_0x3a0bf4||!_0x176b0d)continue;const _0x23a51e='$graveyard'===_0x176b0d['root']['rootName'];_0x23a51e||(_0x176b0d=ht(_0x176b0d,_0x164054['model']),!_0x176b0d||_0x176b0d['isCollapsed']||!_0x2f473a['newRange']||_0x176b0d['isEqual'](_0x2f473a['newRange']))?_0x164054['model']['hasContent'](_0x176b0d)&&!_0x23a51e?this['isThreadsLoadingPaused']?_0x251963['add'](_0x2c8de4):this['_handleThreadMarker'](_0x2c8de4,_0x311fc8):(_0x2f4ca4['add'](_0x2c8de4),_0x251963['delete'](_0x2c8de4),_0x5e893a['removeMarker'](_0x2c8de4),_0x5352ed=!0x0):(_0x5e893a['updateMarker'](_0x2c8de4,{'range':_0x176b0d}),_0x5352ed=!0x0);}return _0x5352ed;}),this['on']('change:isThreadsLoadingPaused',(_0x342c33,_0x200cf7,_0x42ed28)=>{if(!_0x42ed28&&_0x251963['size'])for(const _0x1c3ace of _0x251963){const {id:_0x278936}=ft(_0x1c3ace);_0x251963['delete'](_0x1c3ace),_0x164054['model']['markers']['get'](_0x1c3ace)&&this['_handleThreadMarker'](_0x1c3ace,_0x278936);}}),this['listenTo'](_0x164054['model']['document'],'change',()=>{for(const {name:_0x3919b7,data:{newRange:_0xb51d0b}}of _0x164054['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3cb8c2,id:_0x1b0ecb}=ft(_0x3919b7);if('comment'!==_0x3cb8c2)continue;const _0x573d6f=_0x193dd1['getCommentThread'](_0x1b0ecb),_0x42c086=this['hasMarkerForId'](_0x1b0ecb);_0x573d6f&&(!_0x573d6f['_hasTargetInContent']&&_0xb51d0b&&_0x164054['editing']['view']['once']('render',()=>{const _0x283652=_0x164054['plugins']['get'](y),_0x478ff6=_0x193dd1['_threadToController']['get'](_0x573d6f)['view'];_0x283652['getByInnerView'](_0x478ff6)['refreshVisibility']();},{'priority':'low'}),_0x573d6f['_hasTargetInContent']=_0x42c086||!!_0xb51d0b),_0xb51d0b||(_0x2f4ca4['add'](_0x3919b7),_0x251963['delete'](_0x3919b7));}for(const _0x10459d of _0x2f4ca4){const {id:_0x246629}=ft(_0x10459d),_0x30f148=_0x193dd1['getCommentThread'](_0x246629);if(_0x251963['delete'](_0x10459d),!_0x30f148)continue;const _0x3da198=this['hasMarkerForId'](_0x246629);_0x3da198||_0x30f148['isSubmitted']?_0x3da198||_0x30f148['unlinkedAt']||_0x30f148['setUnlinkedAt'](new Date()):_0x30f148['remove']();}_0x2f4ca4['clear']();});}['_handleInitialThreads'](_0x364699){_0x364699['forEach'](_0x36e3d6=>{_0x36e3d6['unlinkedAt']&&this['_attachArchivedThread'](_0x36e3d6['id']);});}['_getTargetForId'](_0x1730c0){const _0x27efac=this['editor'],_0x57de93=this['getAllMarkersForId'](_0x1730c0);return et(_0x27efac['editing'],_0x57de93);}['_getTextContext'](_0x14f1ee){const _0x2e0bf8=this['getAllMarkersForId'](_0x14f1ee);let _0x5d568d='',_0x1da888=!0x1;for(const _0xb09946 of _0x2e0bf8){const _0x5c671=_0xb09946['getRange']();for(const _0x3a5b7c of Array['from'](_0x5c671['getItems']()))_0x3a5b7c['is']('$textProxy')?(_0x5d568d&&_0x1da888&&(_0x5d568d+='\x20',_0x1da888=!0x1),_0x5d568d+=_0x3a5b7c['data']):_0x1da888=!0x0;_0x1da888=!0x0;}return _0x5d568d['substring'](0x0,0x96);}['_attachMarkerToThread'](_0xdf8042,_0x47e554){const _0xbbbf19=this['editor'],_0x512582=_0xbbbf19['plugins']['get'](o);let _0x53a170=_0x512582['getCommentThread'](_0x47e554);const _0x18157c=_0xbbbf19['config']['get']('collaboration.channelId'),_0x4c2d1a=_0xbbbf19['plugins']['get'](b);if(_0x53a170&&(_0x53a170['unlinkedAt']&&_0x53a170['setUnlinkedAt'](null),_0x53a170['isAttached']))return _0x53a170;return!this['getAllMarkersForId'](_0x47e554)[0x0]['managedUsingOperations']?_0xbbbf19['editing']['view']['once']('render',()=>{if(_0x512582['getCommentThread'](_0x47e554))return;const _0x2cdb92=_0xbbbf19['plugins']['get'](y);_0x53a170=_0x512582['openNewCommentThread']({'channelId':_0x18157c,'threadId':_0x47e554,'target':()=>this['_getTargetForId'](_0x47e554),'context':{'type':'text','value':this['_getTextContext'](_0x47e554)}});const _0x4d5ff0=_0x512582['_threadToController']['get'](_0x53a170)['view'],_0x2b9a54=_0x2cdb92['getByInnerView'](_0x4d5ff0);_0x2b9a54&&_0x4c2d1a['registerAnnotation'](_0x2b9a54);},{'priority':'low'}):_0x512582['fetchCommentThread']({'channelId':_0x18157c,'threadId':_0x47e554})['then'](_0x1263c7=>{if('destroyed'!==_0xbbbf19['state']){if(_0x53a170=_0x1263c7,_0x53a170&&!_0x53a170['isAttached']){const _0xd7e282=_0x53a170['attachTo'](()=>this['_getTargetForId'](_0x47e554));_0x4c2d1a['registerAnnotation'](_0xd7e282),_0x53a170['isResolved']&&this['_reconvertMarkers'](_0x47e554);}else{if(!_0x53a170){const _0x190296=this['getAllMarkersForId'](_0x47e554);_0xbbbf19['model']['change'](_0x1aeaa9=>{for(const _0x1eb520 of _0x190296)_0x1aeaa9['removeMarker'](_0x1eb520);});}}}}),_0x53a170;}['_handleThreadMarker'](_0x557b5c,_0x321a7d){const _0x3dce63=this['_attachMarkerToThread'](_0x557b5c,_0x321a7d);_0x3dce63&&!_0x3dce63['context']&&_0x3dce63['setContext']({'type':'text','value':this['_getTextContext'](_0x321a7d)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5b198c=this['editor'];rt(_0x5b198c['model'],({left:_0x20102a,entered:_0x2630ca})=>{for(const _0xd8c3c5 of _0x20102a)if(mt(_0xd8c3c5)){_0x5b198c['ui']['ariaLiveAnnouncer']['announce'](N(_0x5b198c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0xf7002 of _0x2630ca)if(mt(_0xf7002)){_0x5b198c['ui']['ariaLiveAnnouncer']['announce'](N(_0x5b198c['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x17a949)));break;}});}}function dt(_0x313ebc,_0x98c9){return _0x98c9?_0x313ebc+':'+_0x98c9:_0x313ebc;}function ht(_0x5bf8d1,_0x23e86c){const _0x4e2600=_0x23e86c['schema'],_0x33651e=_0x23e86c['createRange'](_0x5bf8d1['start']);for(const _0x380a9c of _0x5bf8d1['getWalker']()){const {type:_0x3433cd,item:_0x341de8,nextPosition:_0x2d3cf3}=_0x380a9c;if('text'===_0x3433cd||_0x4e2600['isObject'](_0x341de8)){const _0x4c6f56=_0x23e86c['createPositionBefore'](_0x341de8);_0x33651e['isCollapsed']&&(_0x33651e['start']=_0x4c6f56),_0x33651e['end']=_0x2d3cf3;}}return _0x33651e;}function mt(_0x4c0a47){return'comment'===ft(_0x4c0a47['name'])['group'];}class s extends _0x4626af{['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 _0x5d68ad=this['editor'],_0x154036=_0x5d68ad['plugins']['get'](o),_0x2dd5e7=_0x5d68ad['plugins']['get'](r),_0x961e5f=_0x5d68ad['plugins']['get'](y),_0x8633e2=_0x5d68ad['plugins']['get'](b);_0x5d68ad['ui']['componentFactory']['add']('comment',()=>{const _0x492773=this['_createUIButton'](_0x739e9c);return _0x492773['tooltip']=!0x0,_0x492773;}),_0x5d68ad['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x76ce93)),_0x8633e2['addSourceCollector'](()=>{const _0x522fdf=[];for(const [_0x768980,_0xebbdb1]of _0x154036['_threadToController']){const _0x26a4b1=_0x2dd5e7['getAllMarkersForId'](_0x768980['id']),_0x41c047=_0x26a4b1['map'](_0x251c8a=>_0x251c8a['getRange']());_0x26a4b1['length']>0x0&&_0x522fdf['push']([_0xebbdb1['view'],_0x41c047]);}return _0x522fdf;}),this['listenTo'](_0x961e5f,'change:activeAnnotations',(_0x5dd31b,_0x243595,_0xae9b7e)=>{const _0x10f694=Array['from'](_0xae9b7e)['map'](_0x1cab42=>_0x1cab42['innerView'])['find'](_0x43b4fd=>_0x154036['_viewToController']['has'](_0x43b4fd));if(!_0x10f694)return void(_0x2dd5e7['activeMarker']=null);const _0x37407b=_0x154036['_viewToController']['get'](_0x10f694)['model']['id'],_0x3fb7b6='comment:'+_0x37407b;_0x37407b&&_0x2dd5e7['hasMarkerForId'](_0x37407b)?_0x2dd5e7['activeMarker']=_0x3fb7b6:_0x2dd5e7['activeMarker']&&(_0x2dd5e7['activeMarker']=null);}),this['listenTo'](_0x154036,'removeCommentThread',(_0x197bcc,{threadId:_0x3d5ca2,isFromAdapter:_0x30c6e2})=>{!_0x30c6e2&&_0x5d68ad['ui']['focusTracker']['isFocused']&&_0x2dd5e7['hasMarkerForId'](_0x3d5ca2)&&_0x5d68ad['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x154036,'addComment',(_0x46f6ac,{threadId:_0x46ca98,isFromAdapter:_0x20c950})=>{if(_0x20c950||!_0x2dd5e7['hasMarkerForId'](_0x46ca98)||!_0x154036['hasCommentThread'](_0x46ca98))return;0x1===_0x154036['getCommentThread'](_0x46ca98)['length']&&(_0x5d68ad['editing']['view']['focus'](),_0x46f6ac['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a1efc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27be9e;for(const _0x2c56d8 in _0x5a1efc){const _0x535b28=_0x2c56d8,_0x85d728=_0x5a1efc[_0x535b28];if('commentsLicenseKeyValid'==_0x85d728||'commentsLicenseKeyInvalid'==_0x85d728||'commentsLicenseKeyExpired'==_0x85d728||'commentsLicenseKeyDomainLimit'==_0x85d728||'commentsLicenseKeyNotAllowed'==_0x85d728||'commentsLicenseKeyEvaluationLimit'==_0x85d728||'commentsLicenseKeyUsageLimit'==_0x85d728){delete _0x5a1efc[_0x535b28],_0x27be9e=_0x85d728,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x27be9e&&_0x5a1efc['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x27be9e&&_0x5a1efc['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x27be9e&&_0x5a1efc['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x27be9e&&_0x5a1efc['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x27be9e&&_0x5a1efc['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x27be9e&&_0x5a1efc['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x14607c){const _0x4dd227=this['editor'],_0x2cf4e9=new _0x14607c(_0x4dd227['locale']),_0x40ca63=_0x4dd227['commands']['get']('addCommentThread');return _0x2cf4e9['set']({'label':N(_0x4dd227['locale'],'Comment'),'icon':_0x1d452d}),_0x2cf4e9['bind']('isEnabled')['to'](_0x40ca63,'isEnabled',_0x40ca63,'hasContent',(_0x29dd1b,_0x386ca9)=>_0x29dd1b&&_0x386ca9),this['listenTo'](_0x2cf4e9,'execute',()=>{_0x40ca63['execute']();}),_0x2cf4e9;}}class i extends _0x4626af{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x24b34c){super(_0x24b34c),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x4ca737,_0x29ae70,_0x197814)=>{_0x197814?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x6fa87c,_0x2b228e]of this['editor']['commands'])_0x2b228e['affectsData']&&'addCommentThread'!==_0x6fa87c&&_0x2b228e['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x2a1852=this['editor']['editing']['view']['document'];this['listenTo'](_0x2a1852,'cut',_0x364b9e=>_0x364b9e['stop'](),{'priority':'highest'}),this['listenTo'](_0x2a1852,'clipboardInput',_0x4cb687=>_0x4cb687['stop'](),{'priority':'highest'}),this['listenTo'](_0x2a1852,'delete',_0x533811=>_0x533811['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x51d379,_0x372661]of this['editor']['commands'])_0x372661['affectsData']&&'addCommentThread'!==_0x51d379&&_0x372661['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x603ec2{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e1712){super(_0x1e1712),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x2c6d9b=this['context']['plugins']['get'](y);this['listenTo'](_0x2c6d9b,'_activateAnnotation',(_0x7abc63,_0x1548e0)=>{for(const _0x5a8771 of this['activeUIs']){const _0x4453d7=this['_uis']['get'](_0x5a8771);(0x0,this['uisData']['get'](_0x5a8771)['filter'])(_0x1548e0)&&_0x4453d7['setActiveAnnotation'](_0x1548e0);}}),this['listenTo'](_0x2c6d9b,'_deactivateAllAnnotations',()=>{for(const _0x2774db of this['activeUIs']){this['_uis']['get'](_0x2774db)['setActiveAnnotation'](null);}}),this['listenTo'](_0x2c6d9b['_visibleAnnotations'],'add',(_0x2431cd,_0x5bd528)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5bd528);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4f02ae){return this['activeUIs']['has'](_0x4f02ae);}['activate'](_0x289310,_0x19e7d1=this['defaultFilter']){const _0x5c7563=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x289310))throw new _0x4482e2('annotationsuis-missing-ui',this,{'uiName':_0x289310});this['isActive'](_0x289310)&&this['deactivate'](_0x289310),this['activeUIs']['add'](_0x289310);const _0x21632f=new S();v({'source':_0x5c7563['_visibleAnnotations'],'target':_0x21632f,'filter':_0x19e7d1}),this['uisData']['set'](_0x289310,{'collection':_0x21632f,'filter':_0x19e7d1});const _0x3bf2d2=this['_uis']['get'](_0x289310);_0x3bf2d2['attach'](_0x21632f),this['listenTo'](_0x3bf2d2,'change:activeAnnotation',(_0x494080,_0x103442,_0x3b6588,_0x16239c)=>{_0x16239c&&_0x5c7563['_removeActiveAnnotation'](_0x16239c),_0x3b6588&&_0x5c7563['_addActiveAnnotation'](_0x3b6588);});}['deactivate'](_0x573cbb){if(this['activeUIs']['delete'](_0x573cbb),!this['_uis']['has'](_0x573cbb))throw new _0x4482e2('annotationsuis-missing-ui',this,{'uiName':_0x573cbb});const _0xe424bd=this['_uis']['get'](_0x573cbb);_0xe424bd['detach'](),this['stopListening'](_0xe424bd),this['uisData']['get'](_0x573cbb)['collection']['destroy'](),this['uisData']['delete'](_0x573cbb);}['switchTo'](_0x183a50){if(!this['_uis']['has'](_0x183a50))throw new _0x4482e2('annotationsuis-missing-ui',this,{'uiName':_0x183a50});const _0x46b465=this['context']['plugins']['get'](y),_0x31240c=Array['from'](_0x46b465['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x183a50);const _0xb854e5=this['_uis']['get'](_0x183a50);_0xb854e5['setActiveAnnotation'](_0x31240c),_0xb854e5['_setSelectedAnnotations']&&_0x31240c&&_0xb854e5['_setSelectedAnnotations']([_0x31240c]);}['deactivateAll'](){for(const _0x411f1e of this['activeUIs'])this['deactivate'](_0x411f1e);}['register'](_0x41bcb4,_0x1f4eea){if(this['_uis']['has'](_0x41bcb4))throw new _0x4482e2('annotationsuis-register-already-registered');if('function'!=typeof _0x1f4eea['attach']||'function'!=typeof _0x1f4eea['detach']||'function'!=typeof _0x1f4eea['setActiveAnnotation'])throw new _0x4482e2('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x41bcb4,_0x1f4eea);}['refilterAnnotations'](){const _0x3c97d4=this['context']['plugins']['get'](y)['collection'],_0x2b90d6=new Map(),_0x14e998=Array['from'](this['activeUIs']);for(const _0x31c461 of this['activeUIs']){const _0x4209a5=this['uisData']['get'](_0x31c461)['collection'];for(const _0x4cd1ab of _0x4209a5)_0x2b90d6['set'](_0x4cd1ab,_0x31c461);}for(const _0x2c5041 of _0x3c97d4){const _0x567d1a=_0x2b90d6['get'](_0x2c5041);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2c5041);const _0x354261=_0x14e998['find'](_0x34bfd3=>this['uisData']['get'](_0x34bfd3)['filter'](_0x2c5041));_0x567d1a!==_0x354261&&(_0x567d1a&&this['uisData']['get'](_0x567d1a)['collection']['remove'](_0x2c5041),_0x354261&&this['uisData']['get'](_0x354261)['collection']['add'](_0x2c5041));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4b0ed9){const _0x181117=[];for(const _0x18a9a2 of this['activeUIs']){(0x0,this['uisData']['get'](_0x18a9a2)['filter'])(_0x4b0ed9)&&_0x181117['push'](_0x18a9a2);}if(_0x181117['length']>0x1)throw new _0x4482e2('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x181117,'annotationType':_0x4b0ed9['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x786fc4){super(_0x786fc4);const _0x399466=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 _0x2d4383(),this['focusCycler']=new _0xc7089f({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x399466['to']('class')],'style':{'minHeight':_0x399466['to']('minHeight',_0x19bf61=>'number'==typeof _0x19bf61?_i(_0x19bf61+0xa):null)},'dir':_0x786fc4['uiLanguageDirection'],'role':'application','aria-label':N(_0x786fc4,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x786fc4,'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',_0x340139=>{this['_updateItemPositionInFocusables'](_0x340139['source']);}),this['list']['forEach'](_0xa46446=>{this['focusTracker']['add'](_0xa46446['element']),this['_updateItemPositionInFocusables'](_0xa46446);}),this['list']['on']('change',(_0x49c54d,_0x45f91f)=>{for(const _0x2dc18c of _0x45f91f['removed'])this['focusTracker']['remove'](_0x2dc18c['element']),this['focusables']['remove'](_0x2dc18c);for(const _0x141fcc of _0x45f91f['added'])this['focusTracker']['add'](_0x141fcc['element']),this['_updateItemPositionInFocusables'](_0x141fcc);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x16c7f2){const _0xdee36a=this['focusables']['getIndex'](_0x16c7f2);let _0x2482e1,_0x222aaa;for(const _0x595e5b of this['focusables'])if(_0x16c7f2['top']<_0x595e5b['top']){_0x2482e1=_0x595e5b;break;}if(_0x222aaa=_0x2482e1?this['focusables']['getIndex'](_0x2482e1):this['focusables']['length'],-0x1!==_0xdee36a){if(_0xdee36a===_0x222aaa-0x1)return;this['focusables']['remove'](_0x16c7f2),_0x222aaa=_0x2482e1?this['focusables']['getIndex'](_0x2482e1):this['focusables']['length'];}this['focusables']['add'](_0x16c7f2,_0x222aaa);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x83162e){super(_0x83162e),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x48875b,_0x34c447)=>_0x48875b+_0x34c447),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x2cd2cd=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x2cd2cd['to']('isAnimationDisabled',_0x544e79=>_0x544e79?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x2cd2cd['to']('top',_0x10a659=>Ot(_0x10a659))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3ec064=this['element']['clientHeight'];_0x3ec064&&(this['height']=_0x3ec064);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x603ec2{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x286fde){super(_0x286fde),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 _0x398486=this['context']['config']['get']('sidebar.container');_0x398486&&this['setContainer'](_0x398486);}['setContainer'](_0x1759aa){if(!g(_0x1759aa))throw new _0x4482e2('sidebar-setcontainer-invalid-element');this['container']=_0x1759aa;}['_attachToContainer']({viewClass:_0x570cfb='',spaceBetweenItems:_0x2c0a0a=0x19}={}){if(!g(this['container']))throw new _0x4482e2('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x570cfb,this['_spaceBetweenItems']=_0x2c0a0a;}['rearrange']({removedAnnotation:_0x16bc00,previousAnnotation:_0xa379ab,nextAnnotation:_0x591ba8}){const _0x5ba9e0=this['getSidebarItemView'](_0x16bc00);this['view']['list']['remove'](_0x5ba9e0),this['_destroySidebarItemView'](_0x16bc00),_0xa379ab&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xa379ab)),_0x591ba8&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x591ba8)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x5c6e9c,activatedAnnotation:_0xeb5399,disableAnimationOnActivatedAnnotation:_0x1ca494}){if(this['_activeAnnotation']=_0xeb5399,_0x5c6e9c){_0x5c6e9c['isActive']=!0x1;const _0x44c26c=this['getSidebarItemView'](_0x5c6e9c);_0x44c26c&&_0x1ca494&&(_0x44c26c['isAnimationDisabled']=!0x1);}if(_0xeb5399){const _0x11ced9=this['getSidebarItemView'](_0xeb5399);_0x11ced9&&(_0xeb5399['isActive']=!0x0,_0x1ca494&&(_0x11ced9['isAnimationDisabled']=!0x0,_0x11ced9['top']+=0x1),this['_alignToTargetRect'](_0x11ced9));}}['_detachFromContainer'](_0x3b7532){if(this['view']['element']['remove'](),_0x3b7532){for(const _0x51e530 of _0x3b7532)this['_destroySidebarItemView'](_0x51e530);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x1df299,_0xf093cb){_0xf093cb||(_0xf093cb=_0x1df299['view']);const _0x532391=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x532391,_0x1df299),this['_annotationToSidebarItemView']['set'](_0x1df299,_0x532391),_0x532391['content']['add'](_0xf093cb),this['listenTo'](_0x1df299['view'],'change:targetRect',(_0x34c153,_0x4c10c1,_0x4ea1cb)=>{const _0x44cb64=this['_getTargetTop'](_0x1df299,_0x4ea1cb);_0x532391['_targetTop']!=_0x44cb64&&(_0x532391['_targetTop']=_0x44cb64,this['_setItemTop'](_0x532391,_0x44cb64));}),this['listenTo'](_0x532391,'change:top',()=>{this['_recalculate'](_0x532391,'top');}),this['listenTo'](_0x532391,'change:bottom',()=>{this['_recalculate'](_0x532391,'bottom');}),this['_alignToTargetRect'](_0x532391);const _0x3424bb=this['_getItemBefore'](_0x532391);if(_0x3424bb)this['_alignAfterItem'](_0x3424bb,_0x532391)||this['_alignToTargetRect'](_0x532391);else this['_alignToTargetRect'](_0x532391);return this['_updateLastItem'](),this['view']['list']['add'](_0x532391),_0x532391;}['_alignForTopChange'](_0x312429){if(!_0x312429['content']['length'])return;const _0x2ae976=this['_getItemBefore'](_0x312429);if(!_0x2ae976)return;const _0x4e220f=this['_sidebarItemViewToAnnotation']['get'](_0x2ae976),_0x5c711c=this['_activeAnnotation'];_0x5c711c&&_0x5c711c===_0x4e220f?this['_alignAfterItem'](_0x2ae976,_0x312429):this['_alignBeforeItem'](_0x312429,_0x2ae976);}['_alignForBottomChange'](_0x120eb8){if(!_0x120eb8['content']['length'])return;const _0x4dfd0f=this['_getItemAfter'](_0x120eb8);if(!_0x4dfd0f)return;const _0x17f6be=this['_sidebarItemViewToAnnotation']['get'](_0x4dfd0f),_0x5b7aa5=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x5efed1=this['_activeAnnotation'];_0x5efed1&&_0x5efed1===_0x17f6be&&_0x5b7aa5?(this['_alignBeforeItem'](_0x4dfd0f,_0x120eb8),this['_alignAfterItem'](_0x120eb8,_0x4dfd0f)):_0x5efed1&&_0x5efed1===_0x17f6be?this['_alignBeforeItem'](_0x4dfd0f,_0x120eb8):this['_alignAfterItem'](_0x120eb8,_0x4dfd0f);}['_recalculate'](_0x23b27d,_0x35a11e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x23b9e5,changedProp:_0x2706a2}of this['_recalculateBuffer'])'top'===_0x2706a2?this['_alignForTopChange'](_0x23b9e5):this['_alignForBottomChange'](_0x23b9e5);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x23b27d,'changedProp':_0x35a11e});}['getSidebarItemView'](_0x29e220){return this['_annotationToSidebarItemView']['get'](_0x29e220);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4deae0){const _0x4f95bb=this['getSidebarItemView'](_0x4deae0);this['stopListening'](_0x4f95bb),this['stopListening'](_0x4deae0['view']),_0x4f95bb['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4deae0),this['_sidebarItemViewToAnnotation']['delete'](_0x4f95bb);}['_createSidebarView'](){const _0x11e928=new H(this['context']['locale']);return _0x11e928['render'](),this['on']('change:_lastItem',(_0x44847a,_0x329324,_0x32dae4,_0x46ca1d)=>{_0x46ca1d&&_0x11e928['unbind']('minHeight'),_0x32dae4?_0x11e928['bind']('minHeight')['to'](_0x32dae4,'bottom'):_0x11e928['minHeight']=null;}),_0x11e928;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x76f489){const _0x19fa2c=this['_sidebarItemViewToAnnotation']['get'](_0x76f489),_0x334a27=_0x19fa2c&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x19fa2c)-0x1);return _0x334a27&&this['getSidebarItemView'](_0x334a27)||null;}['_getItemAfter'](_0x21c9d5){const _0x44c576=this['_sidebarItemViewToAnnotation']['get'](_0x21c9d5),_0x293e63=_0x44c576&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x44c576)+0x1);return _0x293e63&&this['getSidebarItemView'](_0x293e63)||null;}['_alignBeforeItem'](_0x5a6bf3,_0x2c5db9){_0x5a6bf3['updateHeight']();const _0x3e25ec=G(_0x2c5db9['bottom']+this['_spaceBetweenItems'],_0x5a6bf3['top']);return!!_0x3e25ec&&(this['_setItemTop'](_0x2c5db9,_0x2c5db9['top']-_0x3e25ec),!0x0);}['_alignAfterItem'](_0x47f5ab,_0xfaac4a){_0x47f5ab['updateHeight']();const _0x3d70d7=G(_0x47f5ab['bottom']+this['_spaceBetweenItems'],_0xfaac4a['top']);return!!_0x3d70d7&&(this['_setItemTop'](_0xfaac4a,_0xfaac4a['top']+_0x3d70d7,!0x1),!0x0);}['_alignToTargetRect'](_0x142728){const _0x57486b=this['_sidebarItemViewToAnnotation']['get'](_0x142728);if(!_0x57486b||!_0x57486b['target']||!_0x57486b['targetRect'])return;const _0x569fc2=this['_getTargetTop'](_0x57486b,_0x57486b['targetRect']);this['_setItemTop'](_0x142728,_0x569fc2);}['_getTargetTop'](_0x3fd7d9,_0x5950a1){if(null===_0x5950a1)return 0x0;if(_0x3fd7d9['target']instanceof _0x1e3fe4)return _0x5950a1['top'];{const _0x4eacf4=new _0x1e3fe4(this['view']['element'])['top'];return _0x5950a1['top']-_0x4eacf4;}}['_setItemTop'](_0xbd6bf2,_0x575385,_0xbcf2a9=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0xbcf2a9&&(_0x575385=Math['max'](_0x575385,this['_getMaxAvailableTop'](_0xbd6bf2))),_0xbd6bf2['top']=_0x575385;}['_getMaxAvailableTop'](_0x1a703c){let _0x10749a=this['_getItemBefore'](_0x1a703c),_0x366343=0x0;for(;_0x10749a;)_0x10749a['updateHeight'](),_0x366343+=this['_spaceBetweenItems']+_0x10749a['height'],_0x10749a=this['_getItemBefore'](_0x10749a);return _0x366343;}}function G(_0x1a2f4c,_0x1d28c4){return Math['max'](_0x1a2f4c-_0x1d28c4,0x0);}function g(_0x415b85){return null!==_0x415b85&&'object'==typeof _0x415b85&&0x1===_0x415b85['nodeType'];}class e extends _0x603ec2{['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(_0x5beda6){super(_0x5beda6),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x2ba4d0(),this['_refreshPositioningDebounced']=_0x2a6dac(()=>{_0x5beda6['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x24f78d=this['context']['plugins']['get'](j),_0x143b82=this['context']['plugins']['get'](z);_0x24f78d['register']('wideSidebar',this),_0x143b82['container']&&_0x24f78d['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x51bbf6){if(_0x51bbf6===this['activeAnnotation'])return;const _0x189519=this['context']['plugins']['get'](z);_0x189519['_activeAnnotation']=_0x51bbf6;const _0x1bfd6f=this['activeAnnotation'];_0x189519['refresh']({'blurredAnnotation':_0x1bfd6f,'activatedAnnotation':_0x51bbf6}),this['activeAnnotation']=_0x51bbf6;}['attach'](_0x40f4ab){this['annotations']=_0x40f4ab;const _0x5e1e89=this['context']['plugins']['get'](z);if(_0x5e1e89['_annotations']=_0x40f4ab,this['isAttached'])throw new _0x4482e2('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5e1e89,'set:container',()=>{this['detach'](),this['listenTo'](_0x5e1e89,'change:container',_0x515bb2=>{_0x515bb2['off'](),this['attach'](_0x40f4ab);});}),_0x5e1e89['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2722d2=_0x563629=>{_0x563629['updateTargetRect'](),_0x5e1e89['addAnnotation'](_0x563629);};for(const _0x2c4c98 of _0x40f4ab)_0x2722d2(_0x2c4c98);this['listenTo'](_0x40f4ab,'add',(_0x53600d,_0x3a3deb)=>{_0x2722d2(_0x3a3deb);}),this['listenTo'](_0x40f4ab,'remove',(_0x5d1350,_0x3b239a,_0x194091)=>{_0x5e1e89['rearrange']({'removedAnnotation':_0x3b239a,'previousAnnotation':_0x40f4ab['get'](_0x194091-0x1),'nextAnnotation':_0x40f4ab['get'](_0x194091+0x1)}),_0x3b239a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x40f4ab,'focus',(_0x219113,_0x52e21f)=>{this['setActiveAnnotation'](_0x52e21f);}),this['listenTo'](_0x40f4ab,'blur',()=>{this['setActiveAnnotation'](null);});const _0x34deab=this['context']instanceof _0x53ff68?this['context']['editors']:new _0x2ba4d0([this['context']]);for(const _0x241fee of _0x34deab)this['_integrateWithEditorAnnotations'](_0x241fee);this['listenTo'](_0x34deab,'add',(_0x2e486f,_0x48acb8)=>{this['listenTo'](_0x48acb8,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x48acb8);});}),this['listenTo'](_0x34deab,'remove',(_0x4a2930,_0x541d5b)=>{_0x541d5b['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x541d5b['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4482e2('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1555f2=this['context']['plugins']['get'](z);_0x1555f2['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1555f2),this['stopListening'](this['annotations']),this['context']instanceof _0x53ff68&&this['stopListening'](this['context']['editors']);for(const _0x14fea4 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x14fea4);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x48b633){if(!_0x48b633['plugins']['has']('EditorAnnotations'))return;const _0x4145e1=_0x48b633['plugins']['get']('EditorAnnotations'),_0x2fdfb6=()=>{const _0x212055=_0x4145e1['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x212055[0x0]||null);};this['listenTo'](_0x4145e1,'refresh',_0x2fdfb6),this['listenTo'](_0x4145e1,'blur',(_0xcb4c62,{isAnnotationTracked:_0x3a5bab})=>{this['activeAnnotation']&&_0x3a5bab(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4145e1,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0xee3369=>{_0x4145e1['hasDomSelection']()&&(_0x2fdfb6(),_0xee3369['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4145e1);}['_destroyEditorAnnotationsIntegration'](_0x1c31d0){this['stopListening'](_0x1c31d0),this['_editorAnnotations']['remove'](_0x1c31d0);}}class C extends _0x739e9c{['counterView'];constructor(_0x51b85a){super(_0x51b85a);const _0x43bbdd=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3b96d8,_0xef4d57)=>_0x3b96d8?'...':_0xef4d57['toString']()),this['set']('annotationType',''),this['icon']=_0x1d452d,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x43bbdd['to']('annotationType',_0x16e9be=>'ck-annotation-counter__badge--'+_0x16e9be),_0x43bbdd['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x43bbdd['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x603ec2{['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(_0x3d8329){super(_0x3d8329),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x535b73())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x2ba4d0(),this['_refreshPositioningDebounced']=_0x2a6dac(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x30b4e7(this['context']['locale']),this['balloonPanelView']=new _0x5cbf50(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x31acc0){this['annotations']=_0x31acc0;const _0x4565bc=this['context']['plugins']['get'](z),_0x89f0d4=this['balloonPanelView'];if(_0x4565bc['_annotations']=_0x31acc0,this['isAttached'])throw new _0x4482e2('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4565bc,'set:container',()=>{this['detach'](),this['listenTo'](_0x4565bc,'change:container',_0x35ac5f=>{_0x35ac5f['off'](),this['attach'](_0x31acc0);});}),_0x4565bc['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2de7bd=_0x65ba4f=>{const _0x444515=new C(this['context']['locale']);_0x4565bc['addAnnotation'](_0x65ba4f,_0x444515),this['_annotationToNarrowView']['set'](_0x65ba4f,_0x444515),_0x444515['bind']('isDirty','annotationType','number')['to'](_0x65ba4f['view'],'isDirty','type','length'),_0x444515['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x89f0d4['content']['first']!==_0x65ba4f['view']?(this['_showBalloon'](_0x65ba4f),_0x65ba4f['view']['element']['focus'](),this['setActiveAnnotation'](_0x65ba4f)):this['setActiveAnnotation'](null);});};for(const _0x40e774 of _0x31acc0)_0x2de7bd(_0x40e774);this['listenTo'](_0x31acc0,'add',(_0x27eeb5,_0x412c71)=>{_0x2de7bd(_0x412c71);}),this['listenTo'](_0x31acc0,'remove',(_0x41cf2e,_0x55a0cd,_0x388fe2)=>{this['_annotationToNarrowView']['get'](_0x55a0cd)['destroy'](),this['_annotationToNarrowView']['delete'](_0x55a0cd),_0x4565bc['rearrange']({'removedAnnotation':_0x55a0cd,'previousAnnotation':_0x31acc0['get'](_0x388fe2-0x1),'nextAnnotation':_0x31acc0['get'](_0x388fe2+0x1)}),_0x55a0cd===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x31acc0,'focus',(_0x49d94f,_0x4f95cc)=>{this['setActiveAnnotation'](_0x4f95cc);}),this['listenTo'](_0x31acc0,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x11140e,_0x3c9510)=>{_0x3c9510['keyCode']===_0x1e8e2a['esc']&&_0x89f0d4['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x89f0d4['content']['first']),this['_hideBalloon'](),_0x3c9510['stopPropagation'](),_0x3c9510['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x17fdb0,_0x3ac835)=>{const _0x1b8f45=_0x3ac835['target'];_0x89f0d4['isVisible']&&_0x89f0d4['element']['contains'](_0x1b8f45)||_0x4565bc['view']['element']['contains'](_0x1b8f45)||_0x17fdb0['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x21d5af=>_0x21d5af['contains'](_0x1b8f45))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x539e56=this['context']instanceof _0x53ff68?this['context']['editors']:new _0x2ba4d0([this['context']]);for(const _0x21402e of _0x539e56)this['_integrateWithEditorAnnotations'](_0x21402e);this['listenTo'](_0x539e56,'add',(_0x104025,_0x2e18f2)=>{this['listenTo'](_0x2e18f2,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2e18f2);});}),this['listenTo'](_0x539e56,'remove',(_0x1c320d,_0x3c144e)=>{_0x3c144e['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3c144e['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x58204d){if(_0x58204d===this['activeAnnotation'])return;const _0x28e7b4=this['context']['plugins']['get'](z);if(_0x28e7b4['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x58204d,'disableAnimationOnActivatedAnnotation':!0x0}),_0x58204d)_0x28e7b4['getSidebarItemView'](_0x58204d)?this['_showBalloon'](_0x58204d):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x58204d;}['detach'](){if(!this['isAttached'])throw new _0x4482e2('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1153bd=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x1dd19a=>_0x1dd19a['destroy']()),this['_annotationToNarrowView']['clear'](),_0x1153bd['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x53ff68&&this['stopListening'](this['context']['editors']);for(const _0x51c170 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x51c170);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'](_0x3b539b){if(!_0x3b539b['plugins']['has']('EditorAnnotations'))return;const _0xb90633=_0x3b539b['plugins']['get']('EditorAnnotations'),_0x5c8215=this['context']['plugins']['get'](z),_0x550e22=this['annotations'],_0x2c3133=this['balloonPanelView'],_0x21b22c=()=>{const _0x56bf0a=_0xb90633['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x56bf0a),this['setActiveAnnotation'](_0x56bf0a[0x0]||null);};this['listenTo'](_0xb90633,'refresh',_0x21b22c),this['listenTo'](_0xb90633,'blur',(_0x5e494a,{isAnnotationTracked:_0x189640})=>{this['activeAnnotation']&&_0x189640(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0xb90633,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x550e22,'blur',_0x566688=>{_0xb90633['hasDomSelection']()&&_0x566688['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x25c334,_0x46f859)=>{const _0x529afd=_0x46f859['target'];_0x2c3133['isVisible']&&_0x2c3133['element']['contains'](_0x529afd)||_0x5c8215['view']['element']['contains'](_0x529afd)||this['activeAnnotation']&&_0xb90633['hasDomSelection']()&&(_0x21b22c(),_0x25c334['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0xb90633);}['_destroyEditorAnnotationsIntegration'](_0x47b4be){_0x47b4be&&(this['stopListening'](_0x47b4be),this['_editorAnnotations']['remove'](_0x47b4be));}['_setSelectedAnnotations'](_0x5170e5){for(const _0x2dac02 of this['_selectedAnnotations'])_0x5170e5['includes'](_0x2dac02)||this['_manuallyClosedAnnotationViews']['delete'](_0x2dac02['view']);this['_selectedAnnotations']=_0x5170e5;}['_refreshPositioning'](){const _0x5226e0=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x5226e0['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x1ba4f8){if(this['_manuallyClosedAnnotationViews']['has'](_0x1ba4f8['view']))return;const _0x4ce305=this['balloonPanelView']['content']['first'];_0x4ce305!==_0x1ba4f8['view']?(_0x4ce305&&this['_detachListeners'](_0x4ce305),this['_attachListeners'](_0x1ba4f8['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x1ba4f8['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x131283=this['balloonPanelView']['content']['first'],_0x34e846=_0x131283&&this['annotations']['getByView'](_0x131283);if(!_0x34e846||!this['_annotationToNarrowView']['has'](_0x34e846))return;const _0x336d8f=this['_annotationToNarrowView']['get'](_0x34e846)['element'],_0x441189=(function(){const _0x177484=_0x5cbf50['defaultPositions'];return[_0x177484['southArrowNorthEast'],_0x177484['northArrowSouthEast'],_0x177484['southArrowNorth'],_0x177484['northArrowSouth'],_0x177484['southArrowNorthWest'],_0x177484['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x336d8f,'positions':_0x441189});}['_hideBalloon'](){const _0x3780c7=this['balloonPanelView'],_0x27f0f4=_0x3780c7['content']['first'];_0x27f0f4&&(this['_detachListeners'](_0x27f0f4),_0x3780c7['unpin'](),_0x3780c7['content']['clear']());}['_attachListeners'](_0x93661f){this['listenTo'](_0x93661f,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x93661f,'Esc',(_0x48bb30,_0x381eea)=>{this['_manuallyClosedAnnotationViews']['add'](_0x93661f),this['_hideBalloon'](),_0x381eea();});}['_detachListeners'](_0x54761b){this['stopListening'](_0x54761b);}}class c extends _0x4626af{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x56a9b4,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2decbf){super(_0x2decbf),_0x2decbf['editing']['view']['addObserver'](_0x4fddd0),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x2decbf['plugins']['get'](_0x56a9b4),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x2a6dac(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x4fc70c=this['editor']['plugins']['get'](j);_0x4fc70c['context']===this['editor']&&(_0x4fc70c['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x3f6fec,_0x4c5fe6)=>{const _0x14ebf3=this['_balloon'];if(this['isAttached']&&_0x14ebf3['visibleView']){const _0x4322e7=this['annotations']['getByView'](_0x14ebf3['visibleView']);_0x4322e7&&this['_closeAnnotation'](_0x4322e7),_0x4c5fe6();}}));}['afterInit'](){const _0x442587=this['editor']['plugins']['get'](j);_0x442587['context']===this['editor']&&(_0x442587['hasActive']()||_0x442587['switchTo']('inline'));}['setActiveAnnotation'](_0x25bce4){_0x25bce4!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x25bce4&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x25bce4)&&this['_addAnnotationToBalloon'](_0x25bce4,!0x0),_0x25bce4['isActive']=!0x0),_0x25bce4||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x25bce4);}['attach'](_0x222c1e){this['annotations']=_0x222c1e;const _0x5eeced=this['editor']['plugins']['get'](j),_0xbb2865=this['_balloon'];if(this['isAttached'])throw new _0x4482e2('inlineannotations-attach-already-attached',this);if(_0x5eeced['context']!==this['editor'])throw new _0x4482e2('inlineannotations-not-allowed-with-context',this);const _0x477095=this['editor']['plugins']['get'](b);this['listenTo'](_0x477095,'refresh',()=>{const _0x3abf19=_0x477095['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x1033bc,_0x5dbcff;!this['_forceRefresh']&&(_0x1033bc=_0x3abf19,_0x5dbcff=this['_selectedAnnotations'],_0x1033bc['length']===_0x5dbcff['length']&&_0x1033bc['every'](_0x3be332=>_0x5dbcff['includes'](_0x3be332)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x3abf19),this['setActiveAnnotation'](_0x3abf19[0x0]||null));}),this['listenTo'](_0x477095,'blur',(_0x2c9864,{isAnnotationTracked:_0x11f622})=>{this['activeAnnotation']&&_0x11f622(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x477095,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x442737,_0x30f231,_0x1e665b)=>{_0x1e665b||this['setActiveAnnotation'](null);}),this['listenTo'](_0x222c1e,'remove',(_0x318c87,_0x4dcf35)=>{this['_removeAnnotationFromBalloon'](_0x4dcf35),_0x4dcf35===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xbb2865,'change:visibleView',(_0x10eb95,_0x37d46f,_0xfc6b11,_0x373544)=>{_0x373544&&this['stopListening'](_0x373544);const _0x395328=_0x222c1e['getByView'](_0xfc6b11);_0xfc6b11&&_0x395328&&(this['listenTo'](_0xfc6b11,'change:height',()=>{_0xbb2865['updatePosition']();}),this['listenTo'](_0xfc6b11,'Esc',()=>{this['_closeAnnotation'](_0x395328),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x395328&&this['setActiveAnnotation'](_0x395328));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0xbb2865['visibleView']&&(_0x222c1e['getByView'](_0xbb2865['visibleView'])&&_0xbb2865['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 _0x4482e2('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x47a94e of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x47a94e);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x2c2dc7){for(const _0x2d6dd1 of this['_selectedAnnotations'])_0x2c2dc7['includes'](_0x2d6dd1)||this['_manuallyClosed']['delete'](_0x2d6dd1);for(const _0x13dc65 of this['annotations'])_0x2c2dc7['includes'](_0x13dc65)||this['_removeAnnotationFromBalloon'](_0x13dc65);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x565930 of _0x2c2dc7)this['_addAnnotationToBalloon'](_0x565930);}this['_selectedAnnotations']=_0x2c2dc7;}['_addAnnotationToBalloon'](_0x24e411,_0xd43b51=!0x1){this['_manuallyClosed']['has'](_0x24e411)||(this['_addedAnnotations']['has'](_0x24e411)||this['_balloon']['hasView'](_0x24e411['view'])||(this['_addedAnnotations']['add'](_0x24e411),this['_balloon']['add']({'stackId':_0x24e411['view']['id'],'view':_0x24e411['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x24e411)}})),_0xd43b51&&this['_balloon']['showStack'](_0x24e411['view']['id']));}['_getBalloonTargetForAnnotation'](_0x4d6a1b){const _0x1edebf=_0x4d6a1b['target'],_0xbc0c6d=this['editor']['editing']['view'],_0x140c52=_0xbc0c6d['document']['selection']['getFirstRange'](),_0x5491ea=_0xbc0c6d['domConverter']['viewRangeToDom'](_0x140c52);if(_0x5491ea['collapse'](!0x0),_0x1edebf){if(_0x1edebf instanceof _0x1e3fe4)return _0x1edebf;let _0x1be892=[];for(const _0x33465f of _0x1edebf)_0x1be892['push'](...F(_0x33465f['getClientRects']()));_0x1be892=function(_0x2efb87){const _0x580f3b=[];let _0xf7a506=_0x2efb87[0x0];for(let _0x42e3c5=0x1;_0x42e3c5<_0x2efb87['length'];_0x42e3c5++)P(_0xf7a506,_0x2efb87[_0x42e3c5])?_0xf7a506['width']+=_0x2efb87[_0x42e3c5]['width']:(_0x580f3b['push'](_0xf7a506),_0xf7a506=_0x2efb87[_0x42e3c5]);return _0x580f3b['push'](_0xf7a506),_0x580f3b;}(_0x1be892);const _0x204164=_0x5491ea['getBoundingClientRect']();return _0x1be892['find'](_0x276956=>_0x276956['top']<=_0x204164['top']&&_0x276956['bottom']>=_0x204164['bottom']&&_0x276956['left']<=_0x204164['left']&&_0x276956['right']>=_0x204164['right'])||_0x1be892[0x0];}return _0x4d6a1b['targetRect']||_0x5491ea;}['_removeAnnotationFromBalloon'](_0x5e0f7e){this['_addedAnnotations']['has'](_0x5e0f7e)&&this['_balloon']['hasView'](_0x5e0f7e['view'])&&(this['_addedAnnotations']['delete'](_0x5e0f7e),this['_balloon']['remove'](_0x5e0f7e['view']));}['_closeAnnotation'](_0x446a6d){this['_manuallyClosed']['add'](_0x446a6d),this['_removeAnnotationFromBalloon'](_0x446a6d);}}function F(_0x36ed14){return Array['from'](_0x36ed14)['map'](DOMRect['fromRect']);}function P(_0x59a05c,_0x3391e5){return _0x59a05c['top']===_0x3391e5['top']&&_0x59a05c['bottom']===_0x3391e5['bottom']&&_0x59a05c['right']===_0x3391e5['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x206e03,_0x43343f){super(_0x206e03),this['set']('isEmpty',!_0x43343f['length']),this['focusTracker']=new _0x2d4383(),this['_annotationViews']=_0x43343f,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0xc7089f({'focusables':_0x43343f,'focusTracker':this['focusTracker']}),this['listenTo'](_0x43343f,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x43343f,'remove',(_0x57d1d9,_0x280946)=>{_0x280946['isActive']&&this['focus'](),_0x43343f['length']||(this['isEmpty']=!0x0);});const _0x183bf3=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x206e03,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x43343f},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x183bf3['if']('isEmpty','ck-hidden',_0x5a34c9=>!_0x5a34c9)]},'children':[{'text':N(_0x206e03,'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 _0xa2501e of this['_annotationViews'])this['focusTracker']['add'](_0xa2501e['element']);this['_annotationViews']['on']('change',(_0x11b8d5,{added:_0x444fd9,removed:_0x3af060})=>{for(const _0x30ec0e of _0x444fd9)this['focusTracker']['add'](_0x30ec0e['element']);for(const _0x159037 of _0x3af060)this['focusTracker']['remove'](_0x159037['element']);});}}class p extends _0x603ec2{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0xb12621){super(_0xb12621),this['archivedThreads']=new _0x2ba4d0();}['init'](){const _0x5a4f38=this['context'],_0x457a5d=_0x5a4f38['plugins']['get'](o),_0x1e9988=_0x5a4f38['plugins']['get'](y);this['listenTo'](_0x457a5d,'addCommentThread',(_0x3cee18,{threadId:_0x7c5c9})=>{const _0x16aebb=_0x457a5d['getCommentThread'](_0x7c5c9);_0x16aebb['archivedAt']&&this['archivedThreads']['add'](_0x16aebb,this['_calculatePosition'](_0x16aebb['archivedAt'])),this['listenTo'](_0x16aebb,'change:archivedAt',(_0x4d07f2,_0x38c834,_0x5532e6)=>{_0x5532e6?this['archivedThreads']['has'](_0x16aebb)||this['archivedThreads']['add'](_0x16aebb,this['_calculatePosition'](_0x16aebb['archivedAt'])):this['archivedThreads']['has'](_0x16aebb)&&this['archivedThreads']['remove'](_0x16aebb);});}),this['listenTo'](_0x457a5d,'removeCommentThread',(_0x4173c8,{threadId:_0x197ca3})=>{const _0x31156e=_0x457a5d['getCommentThread'](_0x197ca3);this['stopListening'](_0x31156e),this['archivedThreads']['has'](_0x31156e)&&this['archivedThreads']['remove'](_0x31156e);},{'priority':'highest'}),this['listenTo'](_0x1e9988['collection'],'focus',(_0x48a8e1,_0x4f75ee)=>{_0x4f75ee['isVisible']||(_0x4f75ee['isActive']=!0x0,_0x1e9988['activate'](_0x4f75ee));});}['_calculatePosition'](_0x55c13f){const _0x541fa4=[...this['archivedThreads']]['findIndex'](_0x27f53e=>_0x27f53e['archivedAt']<_0x55c13f);return _0x541fa4>-0x1?_0x541fa4:this['archivedThreads']['length'];}}class a extends _0x4626af{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0xccdd32];}constructor(_0x466d5c){super(_0x466d5c),this['annotationViews']=new _0x102f07(),this['_pendingThreads']=[];}['init'](){const _0x2d7d00=this['editor'],_0x28bb2b=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x2d7d00['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x739e9c,!0x0)),_0x2d7d00['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x353cea=this['_createCommentsArchiveButton'](_0x76ce93);return _0x353cea['set']({'role':'menuitemcheckbox'}),_0x353cea;});const _0x187dad=_0x2d7d00['plugins']['get'](p),_0x45418f=_0x2d7d00['plugins']['get']('Annotations'),_0x3a5679=_0x2d7d00['plugins']['get']('CommentsRepository');_0x187dad['archivedThreads']['forEach'](_0x1fc510=>{this['_handleNewThread'](_0x1fc510);}),this['listenTo'](_0x187dad['archivedThreads'],'add',(_0x4d2b81,_0x30ce21)=>{this['_handleNewThread'](_0x30ce21);}),this['listenTo'](_0x45418f['collection'],'add',(_0x583442,_0x1ffc90)=>{const _0x16b995=this['_pendingThreads']['find'](_0x36b26a=>{const _0x121fd7=_0x3a5679['_threadToController']['get'](_0x36b26a);return _0x121fd7&&_0x1ffc90['innerView']===_0x121fd7['view'];});if(_0x16b995){const _0x29686e=this['_calculatePosition'](_0x16b995['archivedAt']);this['_addAnnotationToArchive'](_0x1ffc90,_0x29686e),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x16b995),0x1);}}),this['listenTo'](_0x187dad['archivedThreads'],'remove',(_0x4dd3be,_0x301bc2)=>{const _0x49b2e7=_0x2d7d00['config']['get']('collaboration.channelId');if(!_0x49b2e7||_0x301bc2['channelId']===_0x49b2e7){if(this['_pendingThreads']['includes'](_0x301bc2))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x301bc2),0x1);else{const _0x3af3cb=_0x3a5679['_threadToController']['get'](_0x301bc2),_0x1d271a=_0x45418f['getByInnerView'](_0x3af3cb['view']);this['annotationViews']['remove'](_0x1d271a['view']),this['stopListening'](_0x1d271a),this['stopListening'](_0x1d271a['focusableElements']);}}}),this['listenTo'](_0x45418f['collection'],'add',(_0x2ab906,_0x824e4)=>{this['listenTo'](_0x824e4,'escape',_0x28bb2b);}),this['listenTo'](_0x45418f['collection'],'remove',(_0x14d2d1,_0x50c80d)=>{this['stopListening'](_0x50c80d,'escape',_0x28bb2b);});}['_addAnnotationToArchive'](_0x182d21,_0x4fae48){this['listenTo'](_0x182d21,'set:isVisible',_0x3b7e99=>{_0x3b7e99['return']=!0x1,_0x3b7e99['stop']();}),this['annotationViews']['add'](_0x182d21['view'],_0x4fae48);}['_handleNewThread'](_0x39520a){const _0x1401ca=this['editor']['plugins']['get']('CommentsRepository'),_0x309beb=this['editor']['plugins']['get']('Annotations'),_0x35508a=this['editor']['config']['get']('collaboration.channelId');if(!_0x35508a||_0x39520a['channelId']===_0x35508a){const _0x25d52c=_0x1401ca['_threadToController']['get'](_0x39520a);if(!_0x25d52c)return void this['_pendingThreads']['push'](_0x39520a);const _0x44aa72=this['_calculatePosition'](_0x39520a['archivedAt']),_0x2e140b=_0x309beb['getByInnerView'](_0x25d52c['view']);_0x2e140b['isVisible']&&_0x309beb['_visibleAnnotations']['remove'](_0x2e140b),this['_addAnnotationToArchive'](_0x2e140b,_0x44aa72);}}['_calculatePosition'](_0x1e1cec){const _0x284032=this['editor']['config']['get']('collaboration.channelId'),_0x52175e=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x1beb16=>_0x1beb16['channelId']===_0x284032)['findIndex'](_0x515c27=>_0x515c27['archivedAt']<_0x1e1cec);return _0x52175e<0x0||_0x52175e>this['annotationViews']['length']?this['annotationViews']['length']:_0x52175e-0x1;}['_toggleDialog'](){const _0x5cf9f1=this['editor'],_0x1aae6a=_0x5cf9f1['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x5cf9f1['locale'],this['annotationViews'])),'commentsArchive'===_0x1aae6a['id']?_0x1aae6a['hide']():_0x1aae6a['show']({'id':'commentsArchive','title':N(_0x5cf9f1['locale'],'COMMENTS_ARCHIVE'),'icon':_0x40f89d,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3b13b3['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x57842d,_0x5d4067=!0x1){const _0xf5db98=this['editor']['locale'],_0x5561c5=this['editor']['plugins']['get']('Dialog'),_0x2f2737=new _0x57842d(_0xf5db98);return _0x2f2737['bind']('isEnabled')['to'](this,'isEnabled'),_0x2f2737['bind']('isOn')['to'](_0x5561c5,'id',_0x3e7345=>'commentsArchive'===_0x3e7345),_0x2f2737['set']({'label':N(_0xf5db98,'COMMENTS_ARCHIVE'),'icon':_0x40f89d,'isToggleable':!0x0}),_0x5d4067&&(_0x2f2737['tooltip']=!0x0),this['listenTo'](_0x2f2737,'execute',()=>this['_toggleDialog']()),_0x2f2737;}['_hideDialogOnAnnotationEscape']=_0x18ab4a=>{const _0x3036fd=_0x18ab4a['source'];if(!this['annotationViews']['has'](_0x3036fd['view']))return;const _0x30e967=this['editor']['plugins']['get']('Dialog');_0x30e967['isOpen']&&'commentsArchive'===_0x30e967['id']&&(_0x30e967['hide'](),_0x18ab4a['stop']());};}class gi extends _0x4626af{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};