@ckeditor/ckeditor5-comments 47.7.5 → 47.7.6

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 _0x45b8d8,ContextPlugin as _0x1acf46,PendingActions as lt,Command as _0x46b3e5,Plugin as _0x17f83a,Context as _0x449463}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x795c20,uid as _0x41fdb0,KeystrokeHandler as jt,FocusTracker as _0x153b35,diff as _0x49d132,Collection as _0x4290a9,Rect as _0x3abe6c,CKEditorError as _0x23e2eb,first as _0x114f96,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x596629,keyCodes as _0x25dde1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x4dfc7d,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x1bcac4,trimHtml as ts,LateFocusDropdownButtonView as _0x56da9d,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x46f821}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,cloneDeep as wt,set as yt,unset as Ct,isEqual as At,debounce as _0x5db34e}from'es-toolkit/compat';import{IconUndo as _0x35dd46,IconCheck as _0x1ec1af,IconPencil as _0x51b9cd,IconRemoveComment as _0x1606e3,IconThreeVerticalDots as _0x11a0d2,IconAddComment as _0x4d6302,IconCommentsArchive as _0x4bca29}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x48fa6b,ButtonView as _0x160831,ViewCollection as _0x522e96,createDropdown as _0x5e1a75,ListView as _0x5567fa,focusChildOnDropdownOpen as _0x428f5e,ListItemView as _0x52e0f7,MenuBarMenuListItemButtonView as _0x210136,BodyCollection as _0x3d2f89,BalloonPanelView as _0x1d9ee6,ContextualBalloon as _0x482d80,Dialog as _0x2e325b,DialogViewPosition as _0x71ad12}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x47b835}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 _0x463810}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x511f26}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x795c20(){['model'];['view'];constructor(_0x23e19e,_0x4b4361){super(),this['model']=_0x23e19e,this['model']['_isAttached']=!0x0,this['view']=_0x4b4361,this['listenTo'](_0x4b4361,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4b4361,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4b4361,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4b4361,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4b4361,'addComment',(_0x20f1b5,_0x1c8261)=>this['addComment'](_0x1c8261)),this['listenTo'](_0x4b4361,'updateComment',(_0x37d6a4,_0x33f310,_0x209e01)=>this['updateComment'](_0x33f310,_0x209e01)),this['listenTo'](_0x4b4361,'removeComment',(_0x51b7e9,_0x3877d2)=>this['removeComment'](_0x3877d2));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x4fae41){this['model']['addComment']({'content':_0x4fae41,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x2d8ba0,_0x54e955){this['model']['getComment'](_0x2d8ba0)['update']({'content':_0x54e955});}['removeComment'](_0x5068c2){this['model']['getComment'](_0x5068c2)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x4784a9,_0x1588e8,_0x40dae7){const t=_0x4784a9['t'];switch(_0x1588e8){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'},_0x40dae7);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'},_0x40dae7);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'},_0x40dae7);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'},_0x40dae7);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x40dae7);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'},_0x40dae7);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'},_0x40dae7);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'},_0x40dae7);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(_0xc20fd9,_0x3e5866){super(_0xc20fd9);const _0x51916a=_0x41fdb0();this['main']=this['createCollection'](),this['editable']=new Vt(_0xc20fd9,_0x3e5866,void 0x0,{'label':()=>N(_0xc20fd9,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xc20fd9['uiLanguageDirection'],'lang':_0xc20fd9['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x51916a},'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(_0x4a86f5){super(_0x4a86f5),this['view']=new Rt(_0x4a86f5['locale'],_0x4a86f5['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x5925c2=this['editor']['editing']['view'],_0x2a2684=this['view']['editable'],_0x32b0e1=_0x5925c2['document']['getRoot']();_0x2a2684['name']=_0x32b0e1['rootName'],this['view']['render']();const _0x2a8225=_0x2a2684['element'];this['setEditableElement'](_0x2a2684['name'],_0x2a8225),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5925c2['attachDomRoot'](_0x2a8225),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x795c20(_0x45b8d8){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x50538a={}){function _0xb14844(_0x4eb537){return _0x4eb537['map'](_0x150b90=>String['fromCharCode'](_0x150b90))['join']('');}(_0x50538a=Object['assign']({},_0x50538a))['plugins']||(_0x50538a['plugins']=hs['defaultPlugins']),super(_0x50538a),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[_0xb14844([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb14844([0x76,0x69,0x65,0x77])][_0xb14844([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb14844([0x61,0x75,0x74,0x6f]),this[_0xb14844([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xb14844([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb14844([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xb14844([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xb14844([0x6f,0x6b])});}['create'](){const _0x34dd29=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x34dd29))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x49e45b=>{const _0x423f51=this['model']['document']['getRoot'](),_0xb29685=_0x423f51&&_0x423f51['getChild'](_0x423f51['childCount']-0x1);_0x49e45b['setSelection'](_0xb29685,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x1a7f1a=this['editing']['view'],_0x52a3c1=_0x1a7f1a['document']['getRoot'](),_0x276e9c=_0x52a3c1['getChild'](0x0);_0x52a3c1['childCount']>0x1||!_0x276e9c||'p'!=_0x276e9c['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x1a7f1a,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x276e9c['placeholder']=this['placeholder']),Ft({'view':_0x1a7f1a,'element':_0x276e9c,'keepOnFocus':!0x0}),this['placeholderElement']=_0x276e9c);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x44a2fd,_0x3c186f={}){super(_0x44a2fd),this['editor']=null,this['_editorConfig']=_0x3c186f,this['set']('value',_0x3c186f['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x44a2fd,'Reply...')),this['set']('submitLabel',N(_0x44a2fd,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x153b35(),this['focusCycler']=new _0x48fa6b({'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',(_0x1a9b95,_0x3dda7e)=>{this['cancelButtonView']['fire']('execute'),_0x3dda7e();}),this['keystrokes']['set']('Ctrl+Enter',(_0x252297,_0x1fed12)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x1fed12());}),this['on']('submit',(_0xc40150,_0xf97140)=>{_0xf97140['length']>0xfde8?(alert(N(_0x44a2fd,'TOO_LONG_COMMENT_ALERT',[_0xf97140['length'],0xfde8])),_0xc40150['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 _0x48e310=this['editor'];this['element']['insertBefore'](_0x48e310['ui']['element'],this['element']['firstChild']),_0x48e310['model']['document']['on']('change',()=>this['value']=_0x48e310['getData']()),_0x48e310['bind']('placeholder')['to'](this),this['focusables']['add'](_0x48e310['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x56eb01){-0x1===_0x56eb01?(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:_0x559264}=this,_0x82e182=new _0x160831(_0x559264);return _0x82e182['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x82e182['withText']=!0x0,_0x82e182['bind']('label')['to'](this,'submitLabel'),_0x82e182['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x82e182['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x24a191,_0x2718f9)=>!_0x2718f9&&!!_0x24a191['trim']()),_0x82e182;}['_createCancelButton'](){const {locale:_0x5edc06}=this,_0x47bbff=new _0x160831(_0x5edc06);return _0x47bbff['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x47bbff['label']=N(_0x5edc06,'Cancel'),_0x47bbff['withText']=!0x0,_0x47bbff['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x47bbff;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4e4200=>{this['focusTracker']['add'](_0x4e4200['element']);}),this['focusables']['on']('change',(_0x140071,_0x24de45)=>{for(const _0x291822 of Array['from'](_0x24de45['added'])['reverse']())this['focusTracker']['add'](_0x291822['element']);});}}class ie extends kt{constructor(_0x3a9c08,_0x3ed097,_0x262abf){super(_0x3a9c08),this['commentInputView']=new es(_0x3a9c08,_0x262abf),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x85a108,_0x5937ae)=>_0x85a108||!!_0x5937ae),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 _0x4dfc7d(_0x3a9c08,_0x3ed097),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'](_0x454d93){this['commentInputView']['focus'](_0x454d93);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x5abebc,_0x4319ae)=>{const {submitButtonView:_0x4dc2aa,cancelButtonView:_0x2b3128,editor:_0x5f2a32}=this['commentInputView'];[_0x4dc2aa['element'],_0x2b3128['element'],_0x5f2a32?_0x5f2a32['editing']['view']['getDomRoot']():null]['filter'](_0x5da3b7=>_0x5da3b7)['some'](_0x3274a0=>_0x3274a0['contains'](_0x4319ae['target']))||(this['focus'](),_0x4319ae['preventDefault']());});}}class rs extends kt{constructor(_0x306288){super(_0x306288);const _0x1bab39=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1bab39['to']('count',_0x5e5413=>N(_0x306288,'NUMBER_OF_COMMENTS',_0x5e5413))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x32bc7a,_0x55238e,_0x7f30f3){super(_0x32bc7a);const _0xe048ae=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x55238e['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x55238e,this['_config']=_0x7f30f3,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x153b35(),this['keystrokes']=new jt(),this['focusCycler']=new _0x48fa6b({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x9e3641=>this['commentViews']['map'](_0x47d636=>_0x47d636['element'])['includes'](_0x9e3641['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x32bc7a),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x5dc2dd=>_0x5dc2dd-this['_config']['maxCommentsWhenCollapsed']);for(const _0x2cb44a of _0x55238e['comments'])this['_handleNewCommentModel'](_0x2cb44a);this['_handleInfoComment'](),this['listenTo'](_0x55238e['comments'],'add',(_0x1d15c5,_0x4d7b4e)=>{const _0x4d40b7=this['_calculatePosition'](_0x4d7b4e);this['length']++,this['_handleNewCommentModel'](_0x4d7b4e,_0x4d40b7),this['refreshVisibleViews']();}),this['listenTo'](_0x55238e['comments'],'remove',(_0x2610e7,_0x140697)=>{this['length']--,this['_handleRemoveCommentModel'](_0x140697),this['refreshVisibleViews']();}),this['listenTo'](_0x55238e,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x55238e,'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',_0xe048ae['if']('length','ck-hidden',_0x1fa859=>!_0x1fa859)],'aria-label':N(_0x32bc7a,'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'](_0x1ca909){-0x1===_0x1ca909?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x1454fc of this['commentViews'])_0x1454fc['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1bea7d,_0x1659c0){const _0x5304a2=new this['_config']['CommentView'](this['locale'],_0x1bea7d,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x5304a2['viewUid']=_0x1bea7d['id'],_0x5304a2['delegate']('removeComment')['to'](this),_0x5304a2['delegate']('updateComment')['to'](this),_0x5304a2['delegate']('resolveCommentThread')['to'](this),_0x5304a2['delegate']('editorReady')['to'](this),_0x5304a2['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x5304a2,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x5304a2,_0x1659c0);}['_calculatePosition'](_0x3c6003){const _0xcade07=this['_model']['_findOptimalIndex'](_0x3c6003);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x3c6003['authoredAt']?_0xcade07-0x1:_0xcade07:_0xcade07-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3013e9={'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'],_0x3013e9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3013e9));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3d4c46){const _0x16abc5=this['commentViews']['remove'](_0x3d4c46['id']);this['stopListening'](_0x16abc5),_0x16abc5['isEditMode']&&this['_updateHasDirtyComment'](),_0x16abc5['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x4714a7=>_0x4714a7['isEditMode']);}['_rearrangeCollapse'](){const _0x15aeae=function(_0x50a54a){const _0x7590cc=new _0x4290a9();for(const _0x538cb1 of _0x50a54a)_0x7590cc['add'](_0x538cb1);return _0x7590cc;}(this['commentViews']),_0x2575e4=this['_collapsedCommentsView']['count'];for(let _0x24ac18=0x1;_0x24ac18<=_0x2575e4;_0x24ac18++)_0x15aeae['remove'](0x1);for(const _0x3dcc13 of _0x15aeae)_0x3dcc13['collapse']();_0x2575e4>0x0&&_0x15aeae['add'](this['_collapsedCommentsView'],0x1),ns(_0x49d132(Array['from'](this['visibleViews']),Array['from'](_0x15aeae)),this['visibleViews'],_0x15aeae);}['_rearrangeExpand'](){ns(_0x49d132(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x2b812d of this['visibleViews'])_0x2b812d['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x22bf01=>{this['focusTracker']['add'](_0x22bf01['element']),this['keystrokes']['listenTo'](_0x22bf01['element']);}),this['commentViews']['on']('change',(_0x4e6f26,_0x3a1782)=>{for(const _0x48ad58 of _0x3a1782['removed'])this['focusTracker']['remove'](_0x48ad58['element']),this['keystrokes']['stopListening'](_0x48ad58['element']);for(const _0x44252a of Array['from'](_0x3a1782['added'])['reverse']())this['focusTracker']['add'](_0x44252a['element']),this['keystrokes']['listenTo'](_0x44252a['element']);});}}function ns(_0x376d75,_0x2b81eb,_0x1b6c51){let _0x581cd4=0x0;for(const _0x22f6e6 of _0x376d75)switch(_0x22f6e6){case'insert':_0x2b81eb['add'](_0x1b6c51['get'](_0x581cd4),_0x581cd4),_0x581cd4++;break;case'delete':_0x2b81eb['remove'](_0x581cd4);break;case'equal':_0x581cd4++;}}class oe extends kt{constructor(_0x5a3e8e){super(_0x5a3e8e);const _0xbdb671=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0xbdb671['to']('contextValue',_0x50eccc=>N(_0x5a3e8e,'THREAD_CONTEXT_LABEL',_0x50eccc)),'tabindex':-0x1},'children':[{'text':_0xbdb671['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3e7516,_0x3a37df){super(_0x3e7516);const _0x4920f4=this['bindTemplate'];this['_model']=_0x3a37df,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x153b35(),this['keystrokes']=new jt(),this['focusCycler']=new _0x48fa6b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x5db99b=>!!_0x5db99b),this['bind']('contextValue')['to'](this['_model'],'context',_0x53f2b4=>_0x53f2b4&&_0x53f2b4['value']?this['_trimContextValue'](_0x53f2b4['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',_0x4920f4['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 _0x2fc869=new _0x160831(this['locale']);return _0x2fc869['label']=N(this['locale'],'Reopen'),_0x2fc869['tooltip']=N(this['locale'],'Reopen'),_0x2fc869['icon']=_0x35dd46,_0x2fc869['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1a5d0d=>!_0x1a5d0d),_0x2fc869['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x75ee2a,_0x4ab9a3)=>_0x75ee2a&&_0x4ab9a3),_0x2fc869['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x2fc869;}['_trimContextValue'](_0x3d1a5c){if(_0x3d1a5c['length']<0x96)return _0x3d1a5c;const _0xb63ba1=_0x3d1a5c['lastIndexOf']('\x20',0x93);return _0x3d1a5c['substring'](0x0,_0xb63ba1>-0x1?_0xb63ba1:0x93)+'...';}['_attachContextActions'](){const _0x5633f1=this['element']['querySelector']('.ck-context'),_0x576b93=_0x5633f1['querySelector']('.ck-context__value');this['listenTo'](_0x5633f1,'mouseenter',()=>{_0x576b93['offsetWidth']<_0x576b93['scrollWidth']&&_0x5633f1['classList']['add']('overlay');}),this['listenTo'](_0x5633f1,'mouseleave',()=>{_0x5633f1['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x12861c of this['focusables'])this['focusTracker']['add'](_0x12861c['element']),this['keystrokes']['listenTo'](_0x12861c['element']);}['_createContextView'](){const _0x46c1a9=new oe(this['locale']);return _0x46c1a9['bind']('contextValue')['to'](this),_0x46c1a9;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xc045,_0x1d1422,_0x3b8e54,_0x171e42){super(_0xc045),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1d1422,this['_localUser']=_0x3b8e54,this['_config']=_0x171e42,this['commentThreadHeaderView']=new Xt(_0xc045,_0x1d1422),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0xc045,N(_0xc045,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xc045,_0x1d1422,Object['assign']({'CommentView':this['_config']['CommentView']},_0x171e42)),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',(_0x30163d,_0x2898f5)=>_0x30163d||!!_0x2898f5),this['bind']('isUnlinked')['to'](_0x1d1422,'unlinkedAt',_0x34e085=>!!_0x34e085),this['bind']('ariaLabel')['to'](this,'length',_0xfe3b45=>{const _0x1cc37d=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0xfe3b45,_0x1cc37d]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x153b35(),this['keystrokes']=new jt(),this['focusCycler']=new _0x48fa6b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1dfdcf=>_0x1dfdcf['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 _0x472e38=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x206871=_0x472e38['commentInputView'];return _0x472e38['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x206871,'value',(_0x5ab36f,_0x2b6a4e,_0x5210ba,_0xc1d526,_0x41487c)=>!!_0x41487c||!!_0xc1d526&&_0x5210ba&&!_0x2b6a4e||_0x5ab36f&&_0x5210ba&&!_0x2b6a4e),_0x206871['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x381ebf,_0x16b782,_0x3caa34)=>{let _0x2672c5;return _0x2672c5=_0x3caa34&&_0x16b782?'Reply\x20to\x20reopen\x20discussion...':_0x381ebf?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x2672c5);}),_0x206871['bind']('submitLabel')['to'](this,'length',_0x526862=>N(this['locale'],_0x526862?'Reply':'Comment')),_0x206871['on']('submit',(_0x8aa8bc,_0x17438b)=>{this['fire']('addComment',_0x17438b),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x206871['on']('cancel',()=>{this['focus']();}),_0x206871['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x206871['on']('cancel',_0x125909=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x125909['stop']());}),this['on']('change:isActive',(_0x427136,_0x5521a3,_0x313564)=>{_0x313564||this['length']||_0x206871['value']||this['fire']('removeCommentThread');}),_0x472e38;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x5f117e,_0x4a2910,_0x5162f7,_0x3e450c){super(_0x5f117e,_0x4a2910,_0x5162f7,_0x3e450c),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x5f117e,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x33123f,_0x46d14e,_0xca2f5d)=>{_0xca2f5d||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x454a63,_0x599c2e,_0x344c84)=>{_0x344c84&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x505bee=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x505bee['if']('isActive','ck-thread--active'),_0x505bee['if']('isUnlinked','ck-thread--unlinked'),_0x505bee['to']('actionIndicator',_0x366a15=>_0x366a15?'ck-thread--'+_0x366a15:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x505bee['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 _0x49ee37 of this['commentsListView']['commentViews'])_0x49ee37['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3dfeef}=this,_0x210102=this['commentsListView']['commentViews']['get'](0x0);_0x210102===this['_boundFirstCommentView']||_0x210102['isSystemComment']||(this['_boundFirstCommentView']=_0x210102,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x210102,'actionIndicator',_0x174d08=>'remove'===_0x174d08?'remove':null),_0x210102['placeholder']=N(_0x3dfeef,'Write\x20a\x20comment...'),_0x210102['removeButton']['on']('execute',_0xbc6e1=>{_0xbc6e1['stop'](),this['showConfirm'](N(_0x3dfeef,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x210102['focus']();}),_0x210102['actionBar']['add'](this['resolveButton'],0x0),_0x210102['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x4c5eac=new _0x1bcac4(this['locale']);return _0x4c5eac['label']=N(this['locale'],'Resolve'),_0x4c5eac['tooltip']=N(this['locale'],'Resolve'),_0x4c5eac['icon']=_0x1ec1af,_0x4c5eac['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x4c5eac['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5a436b=>!_0x5a436b),_0x4c5eac['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3be2af,_0x54ee74)=>_0x3be2af&&!_0x54ee74),_0x4c5eac['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x4c5eac;}['_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(_0x2de01e){super(_0x2de01e),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0xd4edaf,_0x59734b,_0x6c6124)=>{this['element']['innerHTML']=_0x6c6124;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3a8bbc,_0x291237,_0x11575c){super(_0x3a8bbc),this['_model']=_0x291237,this['_config']=_0x11575c,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x291237,'content',_0x291237,'authoredAt',(_0x367806,_0x37f647)=>N(_0x3a8bbc,'COMMENT_ARIA_LABEL',[_0x291237['author']['name'],_0x11575c['formatDateTime'](_0x37f647),new DOMParser()['parseFromString'](_0x367806,'text/html')['body']['textContent'],_0x291237['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x3a8bbc,N(_0x3a8bbc,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x522e96(),this['focusTracker']=new _0x153b35(),this['keystrokes']=new jt(),this['focusCycler']=new _0x48fa6b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3953b4=>_0x3953b4['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 _0x3dad1a=new is(this['locale']);return _0x3dad1a['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x22cee5,_0x6c3b8d)=>_0x6c3b8d?ts(_0x22cee5,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x22cee5),_0x3dad1a;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x4e0d1b=new es(this['locale'],this['_config']['editorConfig']);return _0x4e0d1b['value']=this['_model']['content'],_0x4e0d1b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4e0d1b['submitLabel']=N(this['locale'],'Save'),_0x4e0d1b['on']('submit',(_0x3563d7,_0x4c9225)=>{this['fire']('updateComment',this['_model']['id'],_0x4c9225),this['switchToDisplayMode'](),this['focus']();}),_0x4e0d1b['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x4e0d1b['once']('editorReady',()=>{_0x4e0d1b['focus']();}),_0x4e0d1b['createEditor'](),_0x4e0d1b['delegate']('editorReady')['to'](this),_0x4e0d1b['delegate']('editorDestroyed')['to'](this),_0x4e0d1b;}['_setupKeyboardNavigation'](){const _0x105104=this['element'];this['keystrokes']['listenTo'](_0x105104);for(const _0x8aa8a3 of this['focusables'])this['focusTracker']['add'](_0x8aa8a3['element']),this['keystrokes']['listenTo'](_0x8aa8a3['element']);this['focusables']['on']('change',(_0x3c979d,_0xd29509)=>{for(const _0xafb361 of _0xd29509['removed'])this['focusTracker']['remove'](_0xafb361['element']),this['keystrokes']['stopListening'](_0xafb361['element']);for(const _0x58dd14 of _0xd29509['added'])this['focusTracker']['add'](_0x58dd14['element']),this['keystrokes']['listenTo'](_0x58dd14['element']);}),this['keystrokes']['set']('enter',(_0x3a5057,_0x59533c)=>{_0x105104===_0x3a5057['target']&&(this['focusCycler']['focusFirst'](),_0x59533c());}),this['keystrokes']['set']('esc',(_0x437258,_0x2299d1)=>{_0x105104!==_0x437258['target']&&(this['focus'](),_0x2299d1());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x36b68a,_0x20684b,_0x1f1dbb){super(_0x36b68a,_0x20684b,_0x1f1dbb),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x36b68a,'Reply...')),this['bind']('authoredAt')['to'](_0x20684b),this['bind']('resolvedAt')['to'](_0x20684b),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 _0x4dfc7d(_0x36b68a,_0x20684b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x20684b,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5734fc=this['bindTemplate'],_0x53ba59=[{'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':_0x5734fc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5734fc['to']('authoredAt',_0x41cb96=>this['_config']['formatDateTime'](_0x41cb96))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5734fc['if']('isEditMode','ck-comment__actions--hidden'),_0x5734fc['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']&&_0x53ba59['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x5734fc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5734fc['if']('isEditMode','ck-comment--edit'),_0x5734fc['if']('isSystemComment','ck-comment--info'),_0x5734fc['to']('actionIndicator',_0x4ca9c0=>_0x4ca9c0?'ck-comment--'+_0x4ca9c0:'')],'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':_0x53ba59}]}]};}['_createEditButton'](){const _0xb54f0c=new _0x160831(this['locale']);return _0xb54f0c['label']=N(this['locale'],'Edit'),_0xb54f0c['icon']=_0x51b9cd,_0xb54f0c['withText']=!0x0,_0xb54f0c['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0xb54f0c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x593bc5=>!_0x593bc5),_0xb54f0c['bind']('isVisible')['to'](this['_model'],'isEditable'),_0xb54f0c['on']('execute',()=>this['switchToEditMode']()),_0xb54f0c;}['_createRemoveButton'](){const _0x5f1b0e=new _0x160831(this['locale']);return _0x5f1b0e['label']=N(this['locale'],'Remove'),_0x5f1b0e['icon']=_0x1606e3,_0x5f1b0e['withText']=!0x0,_0x5f1b0e['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5f1b0e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1a8356=>!_0x1a8356),_0x5f1b0e['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5f1b0e['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5f1b0e;}['_createDropdown'](){const _0x49b8c1=_0x5e1a75(this['locale'],_0x56da9d),_0x2bc4e=_0x49b8c1['panelView']['children'],_0x465f3a=new _0x5567fa(this['locale']),_0x40a32f=_0x49b8c1['bindTemplate'];_0x428f5e(_0x49b8c1,()=>this['items']['find'](_0x42200d=>_0x42200d['isVisible'])),_0x49b8c1['extendTemplate']({'attributes':{'class':[_0x40a32f['if']('isVisible','ck-hidden',_0x1195a6=>!_0x1195a6)]}});const _0x26a938=(_0x119ccd,_0x1b0178=-0x1)=>{const _0x1715a1=new _0x52e0f7(this['locale']);_0x1715a1['children']['add'](_0x119ccd);const _0x2081d1=_0x1b0178>-0x1?_0x1b0178:_0x465f3a['items']['length'];_0x465f3a['items']['add'](_0x1715a1,_0x2081d1);const _0x37764e=Array['from'](this['items']);_0x49b8c1['unbind']('isEnabled','isVisible'),_0x49b8c1['bind']('isEnabled')['toMany'](_0x37764e,'isEnabled',(..._0x57edd0)=>_0x57edd0['some'](_0x3f4369=>_0x3f4369)),_0x49b8c1['bind']('isVisible')['toMany'](_0x37764e,'isVisible',(..._0x16a530)=>_0x16a530['some'](_0x490585=>_0x490585));};_0x49b8c1['panelPosition']='sw',_0x49b8c1['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x11a0d2});for(const _0x73b629 of this['items'])_0x26a938(_0x73b629);return _0x2bc4e['add'](_0x465f3a),_0x49b8c1['listenTo'](this['items'],'add',(_0x182203,_0xe0b495,_0x3198ff)=>{_0x26a938(_0xe0b495,_0x3198ff);}),_0x49b8c1['listenTo'](this['items'],'remove',(_0x4aa0d9,_0x4b50ff,_0x7dbd89)=>{_0x465f3a['items']['remove'](_0x7dbd89);}),_0x49b8c1;}['_attachActions'](_0xd44903,_0x53eb0c){const _0x2d15f8=_0xd44903&&_0xd44903['element'];_0x2d15f8&&(this['listenTo'](_0x2d15f8,'mouseenter',()=>this['actionIndicator']=_0x53eb0c),this['listenTo'](_0x2d15f8,'focus',()=>this['actionIndicator']=_0x53eb0c),this['listenTo'](_0x2d15f8,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x2d15f8,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x8eadc2=super['_createCommentInputView']();return _0x8eadc2['bind']('placeholder')['to'](this),_0x8eadc2;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x181783){const _0x130c1f=Dt(_0x181783,0x1e),_0x117da5=new MutationObserver(_0x366782=>{for(const _0x4418a3 of _0x366782)('attributes'==_0x4418a3['type']&&'class'==_0x4418a3['attributeName']||'childList'==_0x4418a3['type']||'characterData'==_0x4418a3['type'])&&_0x130c1f();});return{'attach'(_0xd3bbff){_0x117da5['observe'](_0xd3bbff,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x117da5['disconnect'](),_0x130c1f['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x2efc45,_0x1a9dc4){super(_0x2efc45),this['id']=_0x41fdb0(),this['focusTracker']=new _0x153b35(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x33c481,_0x36261a)=>this['fire']('Esc',_0x36261a)),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'](_0x1a9dc4),this['mainView']=_0x1a9dc4;const _0x281f9f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x281f9f['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 _0x36572f=this['element']['clientHeight'];_0x36572f&&(this['height']=_0x36572f);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x795c20(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x5d94cf,target:_0x4b6afc,type:_0x51bde3,isVisible:_0x3aad30=!0x0}){super(),this['view']=_0x5d94cf,this['view']['element']||this['view']['render'](),this['_type']=_0x51bde3,this['_target']=_0x4b6afc,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x4290a9([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x36bbd5,_0x54e16b)=>{this['view']['focusTracker']['add'](_0x54e16b);}),this['focusableElements']['on']('remove',(_0x27dd32,_0x756c67)=>{this['view']['focusTracker']['remove'](_0x756c67);}),this['set']('isVisible',_0x3aad30);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1d688a=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x1d688a),_0x1d688a;}get['targetRect'](){const _0x34640c=this['target'];if(null===_0x34640c)return null;if(_0x34640c instanceof _0x3abe6c)return _0x34640c;const _0x41ce05=_0x34640c['filter'](_0x5371c6=>function(_0x5955a4){const _0x40c966=_0x5955a4['offsetParent'];if(_0x40c966)return!0x0;const _0x51ae06=_0x5955a4['getClientRects']()['item'](0x0);return!!_0x51ae06;}(_0x5371c6));return 0x0===_0x41ce05['length']?null:new _0x3abe6c(_0x41ce05[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x85c126){this['view']['isActive']=_0x85c126,this['view']['mainView']['isActive']=_0x85c126;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x2c3929){if(!(null===_0x2c3929||_0x2c3929 instanceof _0x3abe6c||Array['isArray'](_0x2c3929)&&_0x2c3929['every'](_0x344680=>re(_0x344680))))throw new _0x23e2eb('annotation-invalid-target',null,{'target':_0x2c3929});}['_getNormalizedTarget'](){const _0x24712='function'==typeof this['_target']?this['_target']():this['_target'];return re(_0x24712)?[_0x24712]:_0x24712;}}function re(_0x1fafa7){return null!==_0x1fafa7&&'object'==typeof _0x1fafa7&&'nodeType'in _0x1fafa7&&0x1===_0x1fafa7['nodeType'];}class S extends _0x4290a9{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x25bd3c=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x153b35(),this['_focusTracker']['on']('change:isFocused',(_0x5b93d8,_0x1736e9,_0x15c0dd)=>{_0x15c0dd||this['fire']('blur');});for(const _0x54c113 of _0x25bd3c)this['add'](_0x54c113);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x442079){if(this['has'](_0x442079))throw new _0x23e2eb('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x442079['innerView'],_0x442079),this['_viewToAnnotation']['set'](_0x442079['view'],_0x442079);for(const _0x2e2969 of _0x442079['focusableElements'])this['_focusTracker']['add'](_0x2e2969);this['listenTo'](_0x442079['focusableElements'],'add',(_0x16a1ca,_0x184b8c)=>{this['_focusTracker']['add'](_0x184b8c);}),this['listenTo'](_0x442079['focusableElements'],'remove',(_0x55dfd0,_0x52cd85)=>{this['_focusTracker']['remove'](_0x52cd85);}),this['listenTo'](_0x442079['view']['focusTracker'],'change:isFocused',(_0x42a7ba,_0xc649d0,_0x5d83a1)=>{_0x5d83a1&&this['fire']('focus',_0x442079);}),_0x442079['updateTargetRect']();const _0x18cd55=this['_getOrderInContent'](_0x442079['view']['targetRect']);return super['add'](_0x442079,_0x18cd55);}['remove'](_0x140e36){if(!this['has'](_0x140e36))throw new _0x23e2eb('annotationcollection-not-existing-item',null);this['stopListening'](_0x140e36['view']['focusTracker']),this['stopListening'](_0x140e36['focusableElements']);for(const _0x1bfad5 of _0x140e36['focusableElements'])this['_focusTracker']['remove'](_0x1bfad5);return this['_viewToAnnotation']['delete'](_0x140e36['view']),this['_innerViewToAnnotation']['delete'](_0x140e36['innerView']),super['remove'](_0x140e36);}['getByInnerView'](_0x583cac){return this['_innerViewToAnnotation']['get'](_0x583cac);}['getByView'](_0x330623){return this['_viewToAnnotation']['get'](_0x330623);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x28f4d7 of this)_0x28f4d7['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2e6cc9=Array['from'](this)['sort']((_0x32f4e6,_0x3c96fb)=>w(_0x32f4e6['view']['targetRect'],_0x3c96fb['view']['targetRect']));for(let _0x1cb71f=_0x2e6cc9['length']-0x1;_0x1cb71f>0x0;_0x1cb71f--){const _0x4a1121=_0x2e6cc9[_0x1cb71f];_0x1cb71f!==this['getIndex'](_0x4a1121)&&(this['remove'](_0x4a1121),this['add'](_0x4a1121));}}['_getOrderInContent'](_0xb72eb){let _0x1aa602=0x0;if(!_0xb72eb)return this['length'];for(const _0x413d1a of this){const _0x46531f=_0x413d1a['view']['targetRect'];if(_0x46531f){if(w(_0xb72eb,_0x46531f)<0x0)return _0x1aa602;_0x1aa602++;}}return _0x1aa602;}}function v({source:_0x8b2b79,target:_0x4b7fa4,filter:_0x5868ed}){for(const _0x24abd4 of _0x8b2b79)_0x5868ed(_0x24abd4)&&_0x4b7fa4['add'](_0x24abd4);_0x4b7fa4['listenTo'](_0x8b2b79,'add',(_0x540a33,_0x5f7aab)=>{_0x5868ed(_0x5f7aab)&&_0x4b7fa4['add'](_0x5f7aab);}),_0x4b7fa4['listenTo'](_0x8b2b79,'remove',(_0x150971,_0x1dddbd)=>{_0x4b7fa4['has'](_0x1dddbd)&&_0x4b7fa4['remove'](_0x1dddbd);});}function w(_0x4d039f,_0x58ec8c){if(null===_0x4d039f&&null===_0x58ec8c)return 0x0;if(null===_0x4d039f)return-0x1;if(null===_0x58ec8c)return 0x1;const _0x469697=_0x4d039f['top']-_0x58ec8c['top'];return 0x0==_0x469697?_0x4d039f['left']-_0x58ec8c['left']:_0x469697;}class y extends _0x1acf46{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56e6fd){if(super(_0x56e6fd),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x56e6fd instanceof _0x45b8d8){const _0x11ec2c=_0x56e6fd['locale'];_0x56e6fd['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x11ec2c,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x11ec2c,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x11ec2c,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x11ec2c,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x11ec2c,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x11ec2c,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x11ec2c,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x41b9b9){this['collection']['add'](_0x41b9b9);}['remove'](_0x22735f){this['collection']['remove'](_0x22735f),_0x22735f['destroy']();}['refreshVisibility'](){for(const _0x5cc309 of this['collection'])_0x5cc309['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0xebc123){return this['collection']['getByInnerView'](_0xebc123);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x96f629 of this['collection'])_0x96f629['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x49e196){this['fire']('_activateAnnotation',_0x49e196);}['createAnnotation'](_0x14505b){return new T(_0x14505b);}['createAnnotationView'](_0x5b3116,_0x308fb4){return new E(_0x5b3116,_0x308fb4);}['_addActiveAnnotation'](_0x2be9a0){const _0x5b0b0b=new Set(this['activeAnnotations']);_0x5b0b0b['add'](_0x2be9a0),this['activeAnnotations']=_0x5b0b0b;}['_removeActiveAnnotation'](_0x24a8ae){const _0x5448b0=new Set(this['activeAnnotations']);_0x5448b0['delete'](_0x24a8ae),this['activeAnnotations']=_0x5448b0;}['_bindAnnotationsToVisibleAnnotations'](){const _0x30ede3=this['collection'],_0x2ffc6e=this['_visibleAnnotations'];function _0x3320b0(_0x448d47){const _0x3970de=_0x448d47['source'];_0x3970de['isVisible']&&!_0x2ffc6e['has'](_0x3970de)?_0x2ffc6e['add'](_0x3970de):!_0x3970de['isVisible']&&_0x2ffc6e['has'](_0x3970de)&&_0x2ffc6e['remove'](_0x3970de),_0x3970de['view']['focusTracker']['remove'](_0x3970de['view']['element']),_0x3970de['view']['focusTracker']['add'](_0x3970de['view']['element']);}this['listenTo'](_0x30ede3,'add',(_0xd673b9,_0xadee64)=>{_0xadee64['isVisible']&&_0x2ffc6e['add'](_0xadee64),this['listenTo'](_0xadee64,'change:isVisible',_0x3320b0);}),this['listenTo'](_0x30ede3,'remove',(_0x3497ef,_0x49980b)=>{_0x2ffc6e['has'](_0x49980b)&&_0x2ffc6e['remove'](_0x49980b),this['stopListening'](_0x49980b,'change:isVisible',_0x3320b0);});}['_setupEnterAnnotationKeystroke'](){const _0x1fcb16=_0x10881f=>{_0x10881f['on']('ready',()=>{_0x10881f['keystrokes']['set'](_0x463810,(_0x59982e,_0x3aacf7)=>{const _0x994beb=_0x114f96(this['activeAnnotations']['values']());_0x994beb&&(_0x994beb['view']['focus'](),_0x3aacf7());});});};this['context']instanceof _0x45b8d8?_0x1fcb16(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x5ae8b0,_0x194151)=>{_0x1fcb16(_0x194151);});}['_setupEscapeAnnotationHandling'](){const _0x1f4e15=_0x1e6c9a=>{const _0x103a24=_0x1e6c9a['source'],_0x10cc78=[];let _0x509702;if(Array['isArray'](_0x103a24['target'])){_0x509702=_0x103a24['target'][0x0],this['context']instanceof _0x45b8d8?_0x10cc78['push'](this['context']):this['context']['editors']&&_0x10cc78['push'](...this['context']['editors']);for(const _0x4cbd49 of _0x10cc78)for(const _0x2ed2c6 of _0x4cbd49['editing']['view']['domRoots']['values']())if(_0x2ed2c6['contains'](_0x509702))return void _0x4cbd49['editing']['view']['focus']();_0x509702['focus']();}};this['listenTo'](this['collection'],'add',(_0x108fe5,_0x458851)=>{this['listenTo'](_0x458851,'escape',_0x1f4e15,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x177fc5,_0x257f24)=>{this['stopListening'](_0x257f24,'escape',_0x1f4e15);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x1acf46{['_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(_0x15e9ba){super(_0x15e9ba),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x550895=this['context']['config'];_0x550895['define']('comments.maxCommentsWhenCollapsed',0x2),_0x550895['define']('comments.maxThreadTotalWeight',0x1f4),_0x550895['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x550895['define']('comments.CommentThreadView',gt),_0x550895['define']('comments.CommentView',Tt),_0x550895['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x416d44=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x1f3303,_0x3ef9c4)=>this['_addCommentThread'](_0x3ef9c4)),this['on']('submitCommentThread',(_0x4e2815,_0x57d5f6)=>this['_submitCommentThread'](_0x57d5f6)),this['on']('resolveCommentThread',(_0x21ffba,_0x3ac45a)=>this['_resolveCommentThread'](_0x3ac45a)),this['on']('resolveCommentThread',(_0x515be4,_0xc074dc)=>this['_updateActiveAnnotation'](_0xc074dc),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0xb05868,_0x259d24)=>this['_reopenCommentThread'](_0x259d24)),this['on']('reopenCommentThread',(_0x53f180,_0x201e4b)=>this['_updateActiveAnnotation'](_0x201e4b),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x590ba5,_0x3f8b84)=>this['_removeCommentThread'](_0x3f8b84)),this['on']('updateCommentThread',(_0x41e265,_0x13ce10)=>this['_updateCommentThread'](_0x13ce10)),this['on']('updateCommentThread',(_0x113c9f,_0x730091)=>this['_updateActiveAnnotation'](_0x730091),{'priority':'lowest'}),this['on']('addComment',(_0x454f71,_0x32d8c2)=>this['_addComment'](_0x32d8c2)),this['on']('updateComment',(_0x2796cc,_0x56d29e)=>this['_updateComment'](_0x56d29e)),this['on']('removeComment',(_0x4bf801,_0x508ef2)=>this['_removeComment'](_0x508ef2)),this['on']('addComment',(_0xcc3e2,{threadId:_0x5b7717,isFromAdapter:_0x4bf038})=>{if(_0x4bf038)return;const _0x444836=this['getCommentThread'](_0x5b7717),_0x500a6a=_0x444836&&this['_threadToController']['get'](_0x444836);_0x500a6a&&_0x500a6a['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x416d44,'change:activeAnnotations',(_0x623643,_0x5be4b8,_0x43d8b0)=>{const _0x37f0bb=Array['from'](_0x43d8b0)['map'](_0x1d4c53=>this['_viewToController']['get'](_0x1d4c53['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x37f0bb?_0x37f0bb['model']:null;});}set['adapter'](_0x3c269e){if(this['_adapter'])throw new _0x23e2eb('commentsrepository-adapter-already-set');this['_adapter']=_0x3c269e;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x3d22c5=_t,threadId:_0xaef21d=_0x41fdb0(),comments:_0x23f27f=[],unlinkedAt:_0x562a06=null,resolvedAt:_0x235c7b=null,resolvedBy:_0x37dd5e=null,target:_0x2f54c5=null,context:_0x4d7b99=null,attributes:_0x38915f={},isResolvable:_0x8c1d2d=!0x0,isSubmitted:_0x1fc3c9=!0x1,isFromAdapter:_0x4a23f0=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x3d22c5),{'channelId':_0x3d22c5,'threadId':_0xaef21d,'comments':_0x23f27f,'unlinkedAt':_0x562a06,'resolvedAt':_0x235c7b,'resolvedBy':_0x37dd5e,'target':_0x2f54c5,'context':_0x4d7b99,'attributes':_0x38915f,'isFromAdapter':_0x4a23f0,'isResolvable':_0x8c1d2d,'isSubmitted':_0x1fc3c9}),this['getCommentThread'](_0xaef21d);}['openNewCommentThread']({channelId:_0x14076e=_t,threadId:_0x4509d8=_0x41fdb0(),target:_0x32e845,context:_0x140d74=null,isResolvable:_0xfd4067=!0x0}){if(this['_readOnlyChannels']['has'](_0x14076e)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x32e845)throw new _0x23e2eb('commentsrepository-missing-target');const _0x4be873=this['addCommentThread']({'channelId':_0x14076e,'threadId':_0x4509d8,'target':_0x32e845,'context':_0x140d74,'isResolvable':_0xfd4067});if(!_0x4be873)return null;const _0x135eef=this['_threadToController']['get'](_0x4be873),_0x1b8369=_0x135eef['view']['commentThreadInputView']['commentInputView'],_0x17e2cb=this['context']['plugins']['get'](y),_0x524a52=_0x17e2cb['getByInnerView'](_0x135eef['view']);return _0x17e2cb['activate'](_0x524a52),_0x1b8369['once']('editorReady',()=>_0x1b8369['focus']()),_0x4be873;}['hasCommentThread'](_0x2bb9b2){if('string'!=typeof _0x2bb9b2)throw new _0x23e2eb('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2bb9b2);}['updateCommentThread']({channelId:_0x11bf1=_t,threadId:_0x5c5d6a,context:_0xcd2930,unlinkedAt:_0x4b8ab0,attributes:_0x232d02,isFromAdapter:_0xa796f4=!0x1}){return this['fire'](Nt('updateCommentThread',_0x11bf1),{'channelId':_0x11bf1,'threadId':_0x5c5d6a,'context':_0xcd2930,'unlinkedAt':_0x4b8ab0,'attributes':_0x232d02,'isFromAdapter':_0xa796f4}),this['getCommentThread'](_0x5c5d6a);}['getCommentThread'](_0x4d355c){if('string'!=typeof _0x4d355c)throw new _0x23e2eb('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4d355c);}['fetchCommentThread']({channelId:_0x385b9,threadId:_0x6885f0}={}){const _0x299f5f=this['getCommentThread'](_0x6885f0);if(_0x299f5f)return Promise['resolve'](_0x299f5f);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x23e2eb('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x385b9,'threadId':_0x6885f0})['then'](_0x1253d2=>this['hasCommentThread'](_0x6885f0)?this['getCommentThread'](_0x6885f0):_0x1253d2?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x385b9},_0x1253d2)):void 0x0)['catch'](_0x5ddcba=>{throw console['error'](_0x5ddcba),new _0x23e2eb('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x19d988,skipNotAttached:_0x428492=!0x1,skipEmpty:_0x13a0a1=!0x1,toJSON:_0x42302b=!0x1}={}){const _0x5a4e29=[];for(const _0x2c792e of this['_threads']['values']())_0x19d988&&_0x2c792e['channelId']!==_0x19d988||_0x428492&&!_0x2c792e['isAttached']||_0x13a0a1&&0x0===_0x2c792e['length']||_0x5a4e29['push'](_0x2c792e);return _0x42302b?_0x5a4e29['map'](_0x4be9d8=>_0x4be9d8['toJSON']()):_0x5a4e29;}['getAnnotationForCommentThread'](_0x5cb2b2){const _0x1576f7=this['_threadToController']['get'](_0x5cb2b2);if(!_0x1576f7)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x1576f7['view'])||null;}['getCommentThreadForAnnotation'](_0x469b8f){const _0x418382=this['_viewToController']['get'](_0x469b8f['innerView']);return _0x418382?_0x418382['model']:null;}['setActiveCommentThread'](_0x1b9267){const _0x307104=this['context']['plugins']['get'](y);if(!_0x1b9267)return void(this['activeCommentThread']&&_0x307104['deactivateAll']());const _0x25a849=this['getCommentThread'](_0x1b9267);if(!_0x25a849)throw new _0x23e2eb('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x1b9267});if(!this['_threadToController']['has'](_0x25a849))throw new _0x23e2eb('commentsrepository-active-not-attached',null,{'threadId':_0x1b9267});const _0x29d717=_0x307104['getByInnerView'](this['_threadToController']['get'](_0x25a849)['view']);_0x307104['activate'](_0x29d717);}['switchReadOnly'](_0x13d025,_0x2a3a10){_0x13d025?this['_readOnlyChannels']['add'](_0x2a3a10):this['_readOnlyChannels']['delete'](_0x2a3a10),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x16420b){return this['_readOnlyChannels']['has'](_0x16420b)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4a795f,_0x2b6a70){return new vt(_0x4a795f,_0x2b6a70);}['setPermissions'](_0x27e585,_0x2d7835=_t){this['_permissions']['set'](_0x2d7835,_0x27e585),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x17ba15=_t){return this['_permissions']['has'](_0x17ba15)?this['_permissions']['get'](_0x17ba15):bt;}['_addCommentThread']({channelId:_0x48fa86,threadId:_0x1edbf5,comments:_0x5c2716,unlinkedAt:_0x41132e,resolvedAt:_0x4bf9a0,resolvedBy:_0x241da5,target:_0x120cb4,context:_0x365341,attributes:_0x2b0a09,isFromAdapter:_0x799095,isResolvable:_0x3e8f54,isSubmitted:_0x8c8f65}){if('string'!=typeof _0x1edbf5)throw new _0x23e2eb('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1edbf5});if(this['hasCommentThread'](_0x1edbf5))throw new _0x23e2eb('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x1edbf5});const _0x754f8b=new CommentThread(this,{'channelId':_0x48fa86,'id':_0x1edbf5,'context':_0x365341,'attributes':_0x2b0a09,'unlinkedAt':_0x41132e,'resolvedAt':_0x4bf9a0,'resolvedBy':_0x241da5?this['context']['plugins']['get'](it)['getUser'](_0x241da5):null,'isResolvable':_0x3e8f54,'isSubmitted':_0x8c8f65||_0x799095});this['_threads']['set'](_0x1edbf5,_0x754f8b);for(const _0x239f4b of _0x5c2716)_0x754f8b['_add'](this['_createNewComment']({'threadId':_0x1edbf5,..._0x239f4b}));return _0x120cb4&&_0x754f8b['attachTo'](_0x120cb4),_0x799095||!_0x754f8b['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x48fa86,'threadId':_0x1edbf5});}['_submitCommentThread']({channelId:_0x4709f5,threadId:_0x2fada3}){if(!this['hasCommentThread'](_0x2fada3))throw new _0x23e2eb('commentsrepository-missing-comment-thread',this);const _0x1447ca=this['getCommentThread'](_0x2fada3);if(_0x1447ca['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x1e8db3,comments:_0x25c704,resolvedAt:_0x164451,resolvedBy:_0x36fcf9,context:_0x76a888,attributes:_0x52be43}=_0x1447ca,_0x15b0ff=this['context']['plugins']['get']('PendingActions'),_0x8c5199=_0x15b0ff['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4709f5,'threadId':_0x1e8db3,'comments':_0x25c704['map'](_0x2f88b5=>_0x2f88b5['toJSON']()),'resolvedAt':_0x164451,'resolvedBy':_0x36fcf9?_0x36fcf9['id']:_0x36fcf9,'context':_0x76a888,'attributes':_0x52be43})['then'](({comments:_0x529980})=>{_0x15b0ff['remove'](_0x8c5199);for(const _0x4b948c of _0x529980)this['_updateComment']({'channelId':_0x4709f5,'threadId':_0x2fada3,'commentId':_0x4b948c['commentId'],'createdAt':_0x4b948c['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x7f0cff=>{throw console['error'](_0x7f0cff),new _0x23e2eb('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x2f667b,target:_0x2c2060}){const _0x179fa6=this['getCommentThread'](_0x2f667b);if(!_0x179fa6)throw new _0x23e2eb('commentsrepository-attach-missing-comment-thread',this);const _0x9cb251=this['context']['plugins']['get']('PendingActions'),_0x28b526=this['context']['plugins']['get'](y),_0x4481e0=this['_createCommentThreadView'](_0x179fa6),_0x2c160e=new vt(_0x179fa6,_0x4481e0);let _0x4a6038=null;_0x4481e0['on']('change:isDirty',(_0x4d86bb,_0xf7d047,_0x21ea47)=>{_0x21ea47?_0x4a6038=_0x9cb251['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4a6038&&(_0x9cb251['remove'](_0x4a6038),_0x4a6038=null);}),this['_threadToController']['set'](_0x179fa6,_0x2c160e),this['_viewToController']['set'](_0x4481e0,_0x2c160e);const _0x45a004=new E(this['context']['locale'],_0x4481e0);_0x45a004['bind']('length')['to'](_0x4481e0),_0x45a004['bind']('isDirty')['to'](_0x4481e0,'isDirty',_0x4481e0,'length',(_0xea0f4c,_0x3e3a60)=>_0xea0f4c||!_0x3e3a60),_0x45a004['bind']('isActive')['to'](_0x4481e0),_0x45a004['type']='comment';const _0xeca21d=new T({'view':_0x45a004,'target':_0x2c2060,'type':'comment','isVisible':!_0x179fa6['archivedAt']&&!!('function'==typeof _0x2c2060?_0x2c2060():_0x2c2060)});return _0x4481e0['on']('escape',()=>{_0xeca21d['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4481e0,_0xeca21d),_0x28b526['add'](_0xeca21d),_0xeca21d;}['_bindAnnotationToEditors'](_0x186251,_0x3901ef){this['listenTo'](_0x186251,'editorReady',(_0x2d5b78,_0x6d6687)=>{const _0x2b6cea=_0x6d6687['ui']['view']['body']['bodyCollectionContainer'];_0x3901ef['focusableElements']['add'](_0x2b6cea),this['context']instanceof _0x45b8d8&&this['context']['ui']['focusTracker']['add'](_0x2b6cea);},{'priority':'highest'}),this['listenTo'](_0x186251,'editorDestroyed',(_0x3a2a70,_0x413b5e)=>{const _0x19cebf=_0x413b5e['ui']['view']['body']['bodyCollectionContainer'];_0x3901ef['focusableElements']['has'](_0x19cebf)&&_0x3901ef['focusableElements']['remove'](_0x19cebf),this['context']instanceof _0x45b8d8&&this['context']['ui']['focusTracker']['remove'](_0x19cebf);});}['_unbindEditors'](_0x20b04f){this['stopListening'](_0x20b04f,'editorReady'),this['stopListening'](_0x20b04f,'editorDestroyed');}['_createCommentThreadView'](_0x333bdf){const _0x1e2f08=this['context']['plugins']['get'](it),{config:_0x261f0c,locale:_0x4ba60a}=this['context'],_0x90d320=pt(_0x261f0c['get']('locale'),_0x4ba60a);return new(0x0,(_0x261f0c['get']('comments'))['CommentThreadView'])(_0x4ba60a,_0x333bdf,_0x1e2f08['me'],{'editorConfig':{..._0x261f0c['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x261f0c['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x261f0c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x261f0c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x261f0c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x90d320,'CommentView':_0x261f0c['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5d3ffe,channelId:_0x200fea,resolvedAt:_0x12ea29,resolvedBy:_0x561022,isFromAdapter:_0x415bdf}){if(!this['hasCommentThread'](_0x5d3ffe))throw new _0x23e2eb('commentsrepository-missing-comment-thread',null,{'threadId':_0x5d3ffe});const _0x462815=this['getCommentThread'](_0x5d3ffe);if(_0x462815['isResolved'])throw new _0x23e2eb('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5d3ffe});const _0x577b03=this['context']['plugins']['get'](it);if(_0x462815['resolvedBy']=_0x577b03['getUser'](_0x561022),_0x462815['resolvedAt']=_0x12ea29,_0x415bdf||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5c4177=this['context']['plugins']['get']('PendingActions'),_0x13b183=_0x5c4177['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x200fea,'threadId':_0x5d3ffe})['then'](({resolvedAt:_0x27634d,resolvedBy:_0x43a46c})=>{_0x5c4177['remove'](_0x13b183),_0x462815['resolvedBy']['id']!==_0x43a46c&&(_0x462815['resolvedBy']=_0x577b03['getUser'](_0x43a46c)),_0x462815['resolvedAt']=_0x27634d;})['catch'](_0x81c566=>{throw console['error'](_0x81c566),new _0x23e2eb('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3e4d64,channelId:_0x3e85b6,isFromAdapter:_0x4823ed}){if(!this['hasCommentThread'](_0x3e4d64))throw new _0x23e2eb('commentsrepository-missing-comment-thread',null,{'threadId':_0x3e4d64});const _0x231aad=this['getCommentThread'](_0x3e4d64);if(!_0x231aad['isResolved'])throw new _0x23e2eb('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3e4d64});if(_0x231aad['resolvedBy']=null,_0x231aad['resolvedAt']=null,_0x4823ed||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5a79a9=this['context']['plugins']['get']('PendingActions'),_0x1d3f9a=_0x5a79a9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x3e85b6,'threadId':_0x3e4d64})['then'](()=>_0x5a79a9['remove'](_0x1d3f9a))['catch'](_0x5564bf=>{throw console['error'](_0x5564bf),new _0x23e2eb('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x244cf8,isFromAdapter:_0x574753}){const _0x269bcb=this['getCommentThread'](_0x244cf8);if(!_0x269bcb)throw new _0x23e2eb('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x244cf8),this['_threads']['delete'](_0x244cf8),!_0x269bcb['isSubmitted']||_0x574753||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x52b8f1=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1859c6}=_0x269bcb,_0x3308e2=_0x52b8f1['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1859c6,'threadId':_0x244cf8})['then'](()=>_0x52b8f1['remove'](_0x3308e2))['catch'](_0x3fee4a=>{throw console['error'](_0x3fee4a),new _0x23e2eb('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x27fbd2,unlinkedAt:_0xbb5fd5,context:_0x4498fb,attributes:_0x2f2a82,isFromAdapter:_0x2c5705}){if('string'!=typeof _0x27fbd2)throw new _0x23e2eb('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x27fbd2});if(!this['hasCommentThread'](_0x27fbd2))throw new _0x23e2eb('commentsrepository-missing-comment-thread',null,{'threadId':_0x27fbd2});const _0x2c2205=this['getCommentThread'](_0x27fbd2);let _0x5999e2=!0x1;if(void 0x0!==_0x4498fb&&_0x2c2205['context']!==_0x4498fb&&(_0x2c2205['context']=_0x4498fb,_0x5999e2=!0x0),void 0x0!==_0xbb5fd5&&_0x2c2205['unlinkedAt']!==_0xbb5fd5&&(_0x2c2205['unlinkedAt']=_0xbb5fd5,_0x5999e2=!0x0),_0x2f2a82&&!At(_0x2f2a82,_0x2c2205['attributes'])&&(_0x2c2205['attributes']=_0x2f2a82,_0x5999e2=!0x0),!_0x5999e2)return Promise['resolve']();if(!_0x2c2205['isSubmitted']||_0x2c5705||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x2bd3e3=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4cd0dd}=_0x2c2205,_0x55f3d4=_0x2bd3e3['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4cd0dd,'threadId':_0x27fbd2,'context':_0x4498fb,'unlinkedAt':_0xbb5fd5,'attributes':_0x2f2a82})['then'](()=>_0x2bd3e3['remove'](_0x55f3d4))['catch'](_0x40ab29=>{throw console['error'](_0x40ab29),new _0x23e2eb('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xbc49e7){const _0x28ec51=this['context']['plugins']['get'](y),_0x20386c=this['getCommentThread'](_0xbc49e7);if(_0x20386c['_isAttached']=!0x1,this['_threadToController']['has'](_0x20386c)){const _0x33a3cf=this['_threadToController']['get'](_0x20386c),_0x22572f=_0x33a3cf['view'],_0x326640=_0x28ec51['getByInnerView'](_0x22572f);this['_threadToController']['delete'](_0x20386c),this['_viewToController']['delete'](_0x22572f),_0x326640&&_0x28ec51['remove'](_0x326640),_0x33a3cf['destroy'](),_0x22572f['destroy']()['then'](()=>{this['_unbindEditors'](_0x22572f);});}}['_updateActiveAnnotation']({threadId:_0x5eca3e,resolvedAt:_0x8b6147,unlinkedAt:_0x16c521}){const _0x3cea75=!!_0x8b6147,_0x194d65=this['context']['plugins']['get'](y),_0x9a8203=this['getCommentThread'](_0x5eca3e);if(this['_threadToController']['has'](_0x9a8203)){const _0x404e9d=this['_threadToController']['get'](_0x9a8203)['view'],_0x58907e=_0x194d65['getByInnerView'](_0x404e9d);_0x58907e&&(_0x3cea75&&_0x194d65['_removeActiveAnnotation'](_0x58907e),_0x16c521?_0x58907e['isVisible']=!0x1:_0x58907e['refreshVisibility']());}}['_getExternalAuthor'](_0x1e4181){const _0x3ff1e0=this['context']['plugins']['get'](it),_0xf71b36=It('external:'+_0x1e4181),_0x428e69=_0x3ff1e0['getUser'](_0xf71b36);return _0x428e69||_0x3ff1e0['addUser']({'id':_0xf71b36,'name':_0x1e4181});}['_createNewComment']({threadId:_0x2b0af9,commentId:_0x1d954a=_0x41fdb0(),content:_0x305b9b,authorId:_0x3651a3,createdAt:_0x32d4ca,attributes:_0x1c6664}){if('string'!=typeof _0x1d954a)throw new _0x23e2eb('commentsrepository-invalid-commentid');if('string'!=typeof _0x3651a3)throw new _0x23e2eb('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x305b9b||!_0x305b9b['trim']())throw new _0x23e2eb('commentsrepository-invalid-comment-content');const _0x1261f3=this['context']['plugins']['get'](it)['getUser'](_0x3651a3);if(!_0x1261f3)throw new _0x23e2eb('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x3651a3});let _0x5cf9cf=null,_0x38b307=_0x32d4ca;return _0x1c6664?.['@external']&&(_0x5cf9cf=this['_getExternalAuthor'](_0x1c6664['@external']['authorName']),_0x38b307=new Date(_0x1c6664['@external']['createdAt'])),new Comment(this,{'threadId':_0x2b0af9,'id':_0x1d954a,'author':_0x5cf9cf||_0x1261f3,'creator':_0x1261f3,'content':_0x305b9b,'createdAt':_0x32d4ca,'authoredAt':_0x38b307,'attributes':_0x1c6664});}['_addComment'](_0x4b1f71){let {threadId:_0x1bc25f,content:_0x104a2a,attributes:_0x5ce368,isFromAdapter:_0x2c3866}=_0x4b1f71;const _0x214cdc=this['getCommentThread'](_0x4b1f71['threadId']);if(!_0x214cdc)throw new _0x23e2eb('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x4475a2=this['_createNewComment'](_0x4b1f71),{id:_0x3dfebf}=_0x4475a2;if(_0x214cdc['_add'](_0x4475a2),_0x2c3866||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x214cdc['isSubmitted'])return Promise['resolve']();const _0x3066e0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4593b4}=_0x214cdc,_0x215a22=_0x3066e0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x5ce368||(_0x5ce368={}),this['adapter']['addComment']({'channelId':_0x4593b4,'threadId':_0x1bc25f,'commentId':_0x3dfebf,'content':_0x104a2a,'attributes':_0x5ce368})['then'](_0x3ba0c6=>{_0x3066e0['remove'](_0x215a22),_0x3ba0c6&&this['_updateComment']({'channelId':_0x4593b4,'threadId':_0x1bc25f,'commentId':_0x3dfebf,'createdAt':_0x3ba0c6['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2b13f9=>{throw console['error'](_0x2b13f9),new _0x23e2eb('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x329404,commentId:_0x3de5c7,content:_0x3b74c5,createdAt:_0x6bde40,attributes:_0x4f3d4e,isFromAdapter:_0x511c30}){if(void 0x0!==_0x3b74c5&&('string'!=typeof _0x3b74c5||!_0x3b74c5['trim']()['length']))throw new _0x23e2eb('commentsrepository-update-comment-invalid-content');const _0x13e4cf=this['getCommentThread'](_0x329404),_0x19b115=_0x13e4cf['getComment'](_0x3de5c7);if(!_0x19b115)throw new _0x23e2eb('commentsrepository-update-missing-comment',this);let _0x518ac6=!0x1;if(_0x3b74c5&&_0x3b74c5!==_0x19b115['content']&&(_0x19b115['isEditable']||_0x511c30)&&(_0x19b115['content']=_0x3b74c5,_0x518ac6=!0x0),_0x6bde40&&_0x6bde40!==_0x19b115['createdAt']&&(_0x19b115['createdAt']=_0x6bde40,_0x19b115['attributes']&&_0x19b115['attributes']['@external']||(_0x19b115['authoredAt']=_0x6bde40),_0x518ac6=!0x0),_0x4f3d4e&&!At(_0x4f3d4e,_0x19b115['attributes'])&&(_0x19b115['attributes']=_0x4f3d4e,_0x518ac6=!0x0),!_0x518ac6)return Promise['resolve']();if(_0x13e4cf['fire']('commentUpdated'),_0x511c30||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xea9597=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1d1cad}=this['getCommentThread'](_0x19b115['threadId']),_0x2408ed=_0xea9597['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x1d1cad,'threadId':_0x329404,'commentId':_0x3de5c7,'content':_0x3b74c5,'attributes':_0x4f3d4e})['then'](()=>_0xea9597['remove'](_0x2408ed))['catch'](_0x206ea1=>{throw console['error'](_0x206ea1),new _0x23e2eb('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x35a0a1,commentId:_0x275790,isFromAdapter:_0x54ee32}){const _0x4a3f2d=this['getCommentThread'](_0x35a0a1),_0x2df105=_0x4a3f2d['getComment'](_0x275790);if(!_0x2df105)throw new _0x23e2eb('commentsrepository-remove-missing-comment',this);if(_0x4a3f2d['_remove'](_0x2df105),_0x54ee32||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4f28e9=this['context']['plugins']['get']('PendingActions'),{channelId:_0x25e96a}=_0x4a3f2d,_0x57e4b5=_0x4f28e9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x25e96a,'threadId':_0x35a0a1,'commentId':_0x275790})['then'](()=>_0x4f28e9['remove'](_0x57e4b5))['catch'](_0x25e289=>{throw console['error'](_0x25e289),new _0x23e2eb('commentsrepository-remove-comment-internal-error',this);});}}class CommentThread extends/* #__PURE__ -- @preserve */
30
- _0x795c20(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x3cbad5,_0x46da6f){super();const _0x2dcf84=_0x46da6f['isResolvable'];this['channelId']=_0x46da6f['channelId'],this['id']=_0x46da6f['id'],this['comments']=new _0x4290a9(),this['_repository']=_0x3cbad5,this['_isAttached']=!0x1,this['_isSubmitted']=_0x46da6f['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x3cbad5,'_permissions',_0x3cbad5,'_readOnlyChannels',()=>_0x3cbad5['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x3cbad5,'_permissions',()=>_0x3cbad5['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x3cbad5,'_permissions',()=>{const _0x453d76=_0x3cbad5['getPermissions'](this['channelId']);return _0x453d76['write']||_0x453d76['admin'];}),this['bind']('isResolvable')['to'](_0x3cbad5,'_permissions',()=>_0x2dcf84&&_0x3cbad5['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x46da6f['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x344979,_0x611738)=>_0x344979?_0x611738?_0x344979<_0x611738?_0x344979:_0x611738:_0x344979:_0x611738),this['set']('unlinkedAt',_0x46da6f['unlinkedAt']||null),this['set']('resolvedAt',_0x46da6f['resolvedAt']||null),this['set']('resolvedBy',_0x46da6f['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x538a28=>!!_0x538a28),this['set']('attributes',_0x46da6f['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x23a565,_0x532fc9)=>_0x23a565+_0x532fc9['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x58c725,id:_0x5c16a3}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x58c725),{'channelId':_0x58c725,'threadId':_0x5c16a3});}['setUnlinkedAt'](_0x4caff0){this['_update']({'unlinkedAt':_0x4caff0});}['resolve']({resolvedAt:_0x1fa1ea=new Date(),resolvedBy:_0x38e8d0='',isFromAdapter:_0x3077b8=!0x1}={}){const _0x343bc1=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x3b792c,id:_0x525156}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x3b792c),{'channelId':_0x3b792c,'threadId':_0x525156,'resolvedAt':_0x1fa1ea,'resolvedBy':_0x38e8d0||_0x343bc1['id'],'isFromAdapter':_0x3077b8});}['reopen']({isFromAdapter:_0x12957a=!0x1}={}){const {channelId:_0x2e4e0e,id:_0x59a265}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x2e4e0e),{'channelId':_0x2e4e0e,'threadId':_0x59a265,'isFromAdapter':_0x12957a});}['setContext'](_0x66e225){this['context']||this['_update']({'context':_0x66e225});}['setAttribute'](_0x371ec2,_0x18ecca){const _0xda1f1b=wt(this['attributes']);yt(_0xda1f1b,_0x371ec2,_0x18ecca),this['_update']({'attributes':_0xda1f1b});}['removeAttribute'](_0x4ec69c){const _0x276d4c=wt(this['attributes']);Ct(_0x276d4c,_0x4ec69c),this['_update']({'attributes':_0x276d4c});}['remove']({isFromAdapter:_0x2b2ec0=!0x1}={}){const {channelId:_0x540746,id:_0x3d6ddd}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x540746),{'channelId':_0x540746,'threadId':_0x3d6ddd,'isFromAdapter':_0x2b2ec0});}['attachTo'](_0x55b469){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x55b469});}['addComment'](_0x10cb1a){const {channelId:_0x5f11c9,id:_0x388143}=this;this['_repository']['fire'](Nt('addComment',_0x5f11c9,_0x388143),Object['assign']({'channelId':_0x5f11c9,'threadId':_0x388143},_0x10cb1a));}['getComment'](_0xc367e7){if('string'!=typeof _0xc367e7)throw new _0x23e2eb('commentsrepository-get-comment-invalid-id',null,{'commentId':_0xc367e7});return this['comments']['get'](_0xc367e7);}['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'](_0x47f5e0=>_0x47f5e0['toJSON']()),'attributes':this['attributes']};}['_add'](_0x26ab82){return this['listenTo'](_0x26ab82,'change:authoredAt',()=>{const _0x1e0895=this['_findOptimalIndex'](_0x26ab82),_0x6e1ee2=this['comments'];_0x1e0895-0x1!=_0x6e1ee2['getIndex'](_0x26ab82)&&_0x1e0895+0x1!=_0x6e1ee2['getIndex'](_0x26ab82)&&(this['_remove'](_0x26ab82),this['_add'](_0x26ab82));}),this['comments']['add'](_0x26ab82,this['_findOptimalIndex'](_0x26ab82));}['_update'](_0x321b0f){const {channelId:_0x42038f,id:_0x394d03}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x42038f),{..._0x321b0f,'channelId':_0x42038f,'threadId':_0x394d03});}['_remove'](_0x444c7a){return this['stopListening'](_0x444c7a),_0x444c7a['destroy'](),this['comments']['remove'](_0x444c7a);}['_findOptimalIndex'](_0xbe6558){const _0x4f929d=this['comments']['find'](_0x5a2d07=>new Date(_0x5a2d07['authoredAt'])['getTime']()>new Date(_0xbe6558['authoredAt'])['getTime']());return _0x4f929d?this['comments']['getIndex'](_0x4f929d):this['length'];}}class Comment extends/* #__PURE__ -- @preserve */
31
- _0x795c20(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3b0a12,_0x3e7247){super();const _0x376fe4=_0x3b0a12['context']['plugins']['get'](it)['me'],_0x3d0544=_0x3b0a12['getCommentThread'](_0x3e7247['threadId']),_0x508b20=0x0===_0x3d0544['comments']['length'],_0x4ed43d=_0x376fe4===_0x3e7247['author'];this['id']=_0x3e7247['id'],this['threadId']=_0x3e7247['threadId'],this['author']=_0x3e7247['author'],this['creator']=_0x3e7247['creator'],this['isExternal']=Boolean(_0x3e7247['attributes']&&_0x3e7247['attributes']['@external']),this['set']('content',_0x3e7247['content']),this['createdAt']=_0x3e7247['createdAt']||new Date(),this['set']('authoredAt',_0x3e7247['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x3d0544,'resolvedAt'),this['set']('attributes',_0x3e7247['attributes']||{}),this['bind']('isEditable')['to'](_0x3b0a12,'_permissions',()=>{const _0xa57dd0=_0x3b0a12['getPermissions'](_0x3d0544['channelId'])['write'],_0x3811e2=_0x3b0a12['getPermissions'](_0x3d0544['channelId'])['modifyAll'];return _0x4ed43d&&_0xa57dd0||!_0x4ed43d&&_0x3811e2;}),this['bind']('isRemovable')['to'](_0x3d0544,'isRemovable',_0x3b0a12,'_permissions',_0x1735c3=>{const _0x202e98=_0x3b0a12['getPermissions'](_0x3d0544['channelId'])['write'],_0x297f32=_0x3b0a12['getPermissions'](_0x3d0544['channelId'])['modifyAll'];return _0x4ed43d&&_0x202e98||_0x1735c3&&_0x508b20||!_0x4ed43d&&_0x297f32&&!_0x508b20;}),this['bind']('isReadOnly')['to'](_0x3d0544,'isReadOnly'),this['_repository']=_0x3b0a12;}get['weight'](){return Math['max'](function(_0x5854e7){const _0xd4d25b=document['createElement']('div');return _0xd4d25b['innerHTML']=_0x5854e7,_0xd4d25b['textContent']['length'];}(this['content']),0xc8);}['update'](_0x509f6a){const {threadId:_0x474f10,id:_0x191bbb}=this;if(!this['_repository']['hasCommentThread'](_0x474f10))throw new _0x23e2eb('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x902f0d}=this['_repository']['getCommentThread'](_0x474f10);this['_repository']['fire'](Nt('updateComment',_0x902f0d,_0x474f10),{'channelId':_0x902f0d,'threadId':_0x474f10,'commentId':_0x191bbb,..._0x509f6a});}['setAttribute'](_0x4c35f4,_0x2c9e8a){const _0x91260b=wt(this['attributes']);yt(_0x91260b,_0x4c35f4,_0x2c9e8a),this['update']({'attributes':_0x91260b});}['removeAttribute'](_0x18f7d2){const _0x421f3a=wt(this['attributes']);Ct(_0x421f3a,_0x18f7d2),this['update']({'attributes':_0x421f3a});}['remove'](_0xc3560d={}){if(!_0xc3560d['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x31f3f8,id:_0x44e431}=this;if(!this['_repository']['hasCommentThread'](_0x31f3f8))throw new _0x23e2eb('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4a1ef1}=this['_repository']['getCommentThread'](_0x31f3f8);this['_repository']['fire'](Nt('removeComment',_0x4a1ef1,_0x31f3f8),{'channelId':_0x4a1ef1,'threadId':_0x31f3f8,'commentId':_0x44e431,..._0xc3560d});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x2097b5,..._0x246e72){for(const _0x42de0a of _0x246e72)void 0x0!==_0x42de0a&&(_0x2097b5+=':'+String(_0x42de0a));return _0x2097b5;}class ot extends _0x46b3e5{constructor(_0x582699){super(_0x582699),this['set']('hasContent',!0x1);}['refresh'](){const _0x2a4e59=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x2872ff of _0x2a4e59['getRanges']())if(this['_hasContent'](_0x2872ff))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x225caa=_0x41fdb0(),ranges:_0x3ea228,comment:_0x12aef3}={}){const _0x34c44d=this['editor']['model'],_0x512ff6=_0x3ea228??Array['from'](_0x34c44d['document']['selection']['getRanges']()),_0x6bab26=[];for(const _0xb575a3 of _0x512ff6)this['_hasContent'](_0xb575a3)&&_0x6bab26['push'](this['_trimToContent'](_0xb575a3));if(!_0x6bab26['length'])throw new _0x23e2eb('addcommentthreadcommand-incorrect-ranges',null);_0x12aef3&&this['_createCommentThread'](_0x225caa,_0x12aef3),this['_createMarkersFromRanges'](_0x225caa,_0x6bab26,!!_0x12aef3);}['_createMarkersFromRanges'](_0xe3f95b,_0x6b339e,_0x37dd2f){this['editor']['model']['change'](_0x311357=>{for(const _0x5049c9 of _0x6b339e){const _0x19f5a3=_0x41fdb0()['substr'](0x1,0x5),_0x1ac361='comment:'+_0xe3f95b+':'+_0x19f5a3;_0x311357['addMarker'](_0x1ac361,{'range':_0x5049c9,'usingOperation':_0x37dd2f,'affectsData':_0x37dd2f});}});}['_createCommentThread'](_0xaa0922,_0x4222bc){const _0x155b96=this['editor']['plugins']['get']('CommentsRepository'),_0x2838ba=this['editor']['config']['get']('collaboration.channelId'),_0x1ba65a=this['editor']['plugins']['get']('Users')['me'];if(!_0x1ba65a)throw new _0x23e2eb('addcommentthreadcommand-user-not-found',null);_0x155b96['addCommentThread']({'threadId':_0xaa0922,'channelId':_0x2838ba,'comments':[{'authorId':_0x1ba65a['id'],'content':_0x4222bc,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0xa48f0b){for(const _0x57e034 of _0xa48f0b['getItems']())if(this['_itemIsContent'](_0x57e034))return!0x0;return!0x1;}['_itemIsContent'](_0x51751b){return _0x51751b['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x51751b)&&!_0x51751b['is']('element','tableCell');}['_trimToContent'](_0x599ca0){const _0x22a009=_0x51d7b5=>!this['_itemIsContent'](_0x51d7b5['item']),_0x267cb7=_0x599ca0['start']['getLastMatchingPosition'](_0x22a009),_0x29d8f7=_0x599ca0['end']['getLastMatchingPosition'](_0x22a009,{'direction':'backward'});return this['editor']['model']['createRange'](_0x267cb7,_0x29d8f7);}}class b extends _0x17f83a{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5373b9){super(_0x5373b9),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x40a3a0=this['editor'],_0x4dbc15=_0x40a3a0['model']['document']['selection'],_0x4ab933=_0x5db34e(()=>this['refreshSelectedViews'](),0xa);_0x4dbc15['on']('change:range',(_0x581ff8,_0x1c4ef6)=>{_0x1c4ef6['directChange']&&(_0x4ab933['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x40a3a0['editing']['view']['document'],'change:isFocused',(_0xfd9c78,_0x81f80,_0xcdf151)=>{_0xcdf151&&_0x4ab933();}),this['listenTo'](_0x40a3a0['ui']['focusTracker'],'change:isFocused',(_0x4e3492,_0x220837,_0x37fc1e)=>{_0x37fc1e||this['fire']('blur',{'isAnnotationTracked':_0x2d7e98=>this['_editorAnnotationsData']['has'](_0x2d7e98['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0xcf8fff){if(this['_editorAnnotations']['has'](_0xcf8fff['view']))return;this['_editorAnnotations']['add'](_0xcf8fff['view']),this['editor']['ui']['focusTracker']['add'](_0xcf8fff['view']['element']);const _0x348443=this['editor']['plugins']['get'](y);this['listenTo'](_0x348443['collection'],'remove',(_0x23a461,_0x5f423e)=>{this['editor']['ui']['focusTracker']['remove'](_0x5f423e['view']['element']),this['_editorAnnotations']['delete'](_0x5f423e['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x459092){if('function'!=typeof _0x459092)throw new _0x23e2eb('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x459092);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x11c473,annotations:_0x236a69}){const _0x18fc42=[],_0x5a6913=this['editor']['model']['document']['selection'],_0x343607=Array['from'](_0x5a6913['getRanges']());for(const [_0x125a92,_0x3aa419]of this['_editorAnnotationsData']){const _0x151eff=_0x46d9e3(_0x3aa419),_0x1fe142=_0x236a69['getByInnerView'](_0x125a92);_0x151eff&&_0x1fe142&&_0x18fc42['push']({'annotation':_0x1fe142,'range':_0x151eff});}function _0x46d9e3(_0x4708fa){for(const _0xd98c27 of _0x4708fa)for(const _0x317fd9 of _0x343607)if(_0xd98c27['containsRange'](_0x317fd9,!_0x5a6913['isCollapsed']))return _0xd98c27;return null;}return _0x18fc42['sort']((_0x3c2140,_0x2c58f9)=>{const _0x5246df=_0x3c2140['range'],_0xa24dee=_0x2c58f9['range'];if(!_0x5246df['isEqual'](_0xa24dee)){if(_0x5246df['containsRange'](_0xa24dee,!0x0))return 0x1;if(_0xa24dee['containsRange'](_0x5246df,!0x0))return-0x1;}return _0x3c2140['annotation']==_0x11c473?-0x1:_0x2c58f9['annotation']==_0x11c473?0x1:0x0;})['map'](_0x52f927=>_0x52f927['annotation']);}get['_editorAnnotationsData'](){const _0x333fdb=new Map();for(const _0x343240 of Array['from'](this['_dataCollectors']))for(const [_0x2a5e95,_0x16c898]of _0x343240())_0x333fdb['set'](_0x2a5e95,_0x16c898);return _0x333fdb;}}class st extends _0x17f83a{['afterInit'](){const _0x2f34a1=this['editor'];if(!_0x2f34a1['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2f34a1['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x17f83a{constructor(_0x3a9ebb){super(_0x3a9ebb),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x5d6dae=this['editor'],_0xd42565=_0x5d6dae['commands']['get']('importWord'),_0x26fdc7=_0x5d6dae['plugins']['get'](it);_0xd42565&&(_0xd42565['on']('execute',(_0x1340e5,[,_0x3a4ff6])=>{_0x3a4ff6['collaboration_features']={'comments':!0x0,'user_id':_0x26fdc7['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0xd42565,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4fd728,_0x3d07f7){const {comment_threads:_0x1cee66}=_0x3d07f7;_0x1cee66&&_0x1cee66['forEach'](({thread_id:_0x3d782a,comments:_0x4188c6,is_resolved:_0x3f5fb5})=>{const _0x44bee7=new Date(),_0x151382=_0x4188c6['map'](({author:_0x468f0d,content:_0x208a1f,created_at:_0x1e287a})=>({'content':_0x208a1f,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x44bee7,'attributes':{'@external':{'authorName':_0x468f0d,'createdAt':_0x1e287a?new Date(_0x1e287a):new Date(),'source':'importWord'}}})),_0x3bb5ef=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3bb5ef,'threadId':_0x3d782a,'comments':_0x151382,'resolvedAt':_0x3f5fb5?_0x44bee7:null});});}}class at extends _0x17f83a{constructor(_0x2cb74e){super(_0x2cb74e),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x4a8c56=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x4a8c56,'contentInsertion',(_0x19f688,_0x98434d)=>this['_removeMarkersWithoutThreads'](_0x98434d['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x194d15){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x194d15;const _0x390726=this['editor']['plugins']['get']('CommentsRepository');for(const _0x339f6a of _0x194d15['keys']()){const [_0x1e15d6,_0x506435]=_0x339f6a['split'](':');'comment'!=_0x1e15d6||_0x390726['hasCommentThread'](_0x506435)||_0x194d15['delete'](_0x339f6a);}return _0x194d15;}['_registerMarkerInClipboardPipeline'](){const _0xb71c37=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xbfafde=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xbfafde&&_0xb71c37['_registerMarkerToCopy']('comment',_0xbfafde);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4b2a6a){switch(_0x4b2a6a){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x198f32){const _0xa27b96=_0x198f32['split'](':');return{'group':_0xa27b96[0x0],'id':_0xa27b96[0x1],'part':_0xa27b96[0x2]};}class ut extends _0x17f83a{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x8231fa,_0x267e7c)=>{if(!_0x267e7c['options']['showCommentHighlights'])return null;if(_0x267e7c['options']['ignoreResolvedComments']){const {id:_0x523a27}=ft(_0x8231fa['markerName']),_0x4f5c7e=this['editor']['plugins']['get'](o);if(_0x4f5c7e['getCommentThread'](_0x523a27)?.['isResolved']&&_0x8231fa['item'])return _0x267e7c['consumable']['consume'](_0x8231fa['item'],'addMarker:'+_0x8231fa['markerName']),_0x267e7c['consumable']['consume'](_0x8231fa['item'],'removeMarker:'+_0x8231fa['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x25ec56=>{_0x25ec56['on']('addMarker:comment',(_0x1b54bc,_0x6cadfc,_0x2ed9d0)=>{if(!_0x2ed9d0['options']['showCommentHighlights'])return;const _0x4cb16b=_0x6cadfc['item'];if(!_0x4cb16b)return;const _0x529ea3=_0x2ed9d0['mapper']['toViewElement'](_0x4cb16b);this['editor']['model']['schema']['isObject'](_0x4cb16b)&&_0x529ea3&&!_0x529ea3['getCustomProperty']('widget')&&_0x529ea3['is']('containerElement')&&_0x511f26(_0x529ea3,_0x2ed9d0['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1241b5,{writer:_0xd2f279,options:_0x373c7d})=>{if(!_0x373c7d['showCommentHighlights'])return null;const _0x4b9e26=_0xd2f279['createContainerElement']('div'),_0xeca2f6=_0xd2f279['createEmptyElement']('hr');return _0xd2f279['addClass']('ck-horizontal-line',_0x4b9e26),_0xd2f279['insert'](_0xd2f279['createPositionAt'](_0x4b9e26,0x0),_0xeca2f6),_0x4b9e26;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x279089,{writer:_0x388eb4,options:_0x136ba2})=>{if(!_0x136ba2['showCommentHighlights'])return null;const _0x45dfae=_0x388eb4['createContainerElement']('span'),_0xf0945c=_0x388eb4['createEmptyElement']('img');return _0x388eb4['addClass']('image-inline',_0x45dfae),_0x388eb4['insert'](_0x388eb4['createPositionAt'](_0x45dfae,0x0),_0xf0945c),_0x45dfae;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x573c71,{writer:_0x437b54,options:_0x12dab3})=>{if(_0x12dab3['showCommentHighlights'])return _0x437b54['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x163f22,_0x266511,_0x33ace0)=>{_0x33ace0['options']['showCommentHighlights']&&_0x163f22['stop']();},{'priority':'high'});}}class r extends _0x17f83a{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(_0x97fdea){super(_0x97fdea),this['set']('isThreadsLoadingPaused',!0x0),_0x97fdea['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x1d03c2,_0x11537a,_0x12a64b,_0x3b025b)=>{const _0x2b96ce=_0x97fdea['plugins']['get'](o),_0x2a9c15=_0x12a64b?ft(_0x12a64b)['id']:null;_0x97fdea['model']['change'](()=>{if(_0x2a9c15){const _0x2574ff=this['getAllMarkersForId'](_0x2a9c15);for(const _0x5a00ea of _0x2574ff)_0x97fdea['editing']['reconvertMarker'](_0x5a00ea);}if(_0x3b025b){const {id:_0x347b71}=ft(_0x3b025b),_0xdd30a9=_0x2b96ce['getCommentThread'](_0x347b71);if(_0xdd30a9&&_0xdd30a9['unlinkedAt'])return;if(_0xdd30a9&&!_0xdd30a9['isAttached'])return;const _0x501cd5=this['getAllMarkersForId'](_0x347b71);for(const _0x30dfab of _0x501cd5)_0x97fdea['editing']['reconvertMarker'](_0x30dfab);}}),_0x2a9c15&&this['scrollToThreadMarker'](_0x2a9c15);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x18a0a8=this['editor'],_0x4d1837=_0x18a0a8['plugins']['get'](o),_0x489834=_0x18a0a8['config']['get']('collaboration.channelId'),_0x5ea95f=_0x4d1837['getCommentThreads']()['filter'](_0x13b5c8=>_0x13b5c8['channelId']!==_0x489834);_0x18a0a8['commands']['add']('addCommentThread',new ot(_0x18a0a8)),this['listenTo'](_0x18a0a8,'change:isReadOnly',(_0x30849b,_0x3abea4,_0x4f2487)=>{_0x4d1837['switchReadOnly'](_0x4f2487,_0x18a0a8['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x4d1837,dt('addCommentThread',_0x489834),(_0x130cf7,{threadId:_0x22c8c4})=>{const _0x588df0=this['editor']['plugins']['get'](o)['getCommentThread'](_0x22c8c4);_0x588df0?.['unlinkedAt']&&this['_attachArchivedThread'](_0x22c8c4);}),this['listenTo'](_0x4d1837,dt('removeCommentThread',_0x489834),(_0x1ea72a,{threadId:_0x36b07f})=>{_0x18a0a8['model']['enqueueChange']({'isUndoable':!0x1},_0x4f5a4d=>{const _0x5ad76a=this['getAllMarkersForId'](_0x36b07f);for(const _0xb7b875 of _0x5ad76a)_0x4f5a4d['removeMarker'](_0xb7b875);});}),this['listenTo'](_0x4d1837,dt('resolveCommentThread',_0x489834),(_0xb7aee5,{threadId:_0x1b3533})=>{(this['_reconvertMarkers'](_0x1b3533),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1b3533)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x4d1837,dt('reopenCommentThread',_0x489834),(_0x35745d,{threadId:_0x1c12d7})=>{this['_reconvertMarkers'](_0x1c12d7);},{'priority':'low'}),this['listenTo'](_0x4d1837,dt('addComment',_0x489834),(_0xbb0b3f,{threadId:_0x3a9a5f,isFromAdapter:_0xecab9d})=>{const _0x5a1085=this['getAllMarkersForId'](_0x3a9a5f);if(_0xecab9d||0x0==_0x5a1085['length']||!_0x4d1837['hasCommentThread'](_0x3a9a5f))return;0x1===_0x4d1837['getCommentThread'](_0x3a9a5f)['length']&&_0x18a0a8['model']['enqueueChange']({'isUndoable':!0x1},_0x36f141=>{for(const _0x531cfe of _0x5a1085)_0x36f141['updateMarker'](_0x531cfe,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x5ea95f);}['afterInit'](){!async function(_0x1b20ff){const _0x388be7=_0x41cf6d([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]),_0x1bca5a=0x73460ab3,_0x57af1e=0x73419ce3^_0x1bca5a,_0x15bff7=window[_0x41cf6d([0x44,0x61,0x74,0x65])][_0x41cf6d([0x6e,0x6f,0x77])](),_0x45cb9d=_0x1b20ff[_0x41cf6d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26beab=new window[(_0x41cf6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22e3d8=>{_0x45cb9d[_0x41cf6d([0x6f,0x6e,0x63,0x65])](_0x41cf6d([0x72,0x65,0x61,0x64,0x79]),_0x22e3d8);}),_0x50a3fb={[_0x41cf6d([0x6b,0x74,0x79])]:_0x41cf6d([0x45,0x43]),[_0x41cf6d([0x75,0x73,0x65])]:_0x41cf6d([0x73,0x69,0x67]),[_0x41cf6d([0x63,0x72,0x76])]:_0x41cf6d([0x50,0x2d,0x32,0x35,0x36]),[_0x41cf6d([0x78])]:_0x41cf6d([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]),[_0x41cf6d([0x79])]:_0x41cf6d([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]),[_0x41cf6d([0x61,0x6c,0x67])]:_0x41cf6d([0x45,0x53,0x32,0x35,0x36])},_0x4db4af=_0x45cb9d[_0x41cf6d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41cf6d([0x67,0x65,0x74])](_0x41cf6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x196dd0(){let _0x369e2e,_0x5a2754=null,_0x177ee2=null;try{if(_0x4db4af==_0x41cf6d([0x47,0x50,0x4c]))return _0x41cf6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x369e2e=_0x1cb403(),!_0x369e2e)return _0x41cf6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x369e2e[_0x41cf6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x177ee2=_0x28e772(_0x369e2e[_0x41cf6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x369e2e[_0x41cf6d([0x6a,0x74,0x69])])),await _0x3656dc()?_0x57613b()?_0x3b65d3()?_0x41cf6d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3eaf27()?(_0x369e2e[_0x41cf6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41cf6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a2754=_0x40be22(_0x41cf6d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x504429()):_0x41cf6d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41cf6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41cf6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41cf6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b65d3(){const _0x38eff2=[_0x41cf6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41cf6d([0x74,0x72,0x69,0x61,0x6c])][_0x41cf6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369e2e[_0x41cf6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x15bff7/0x3e8:0xe10*_0x57af1e;return _0x369e2e[_0x41cf6d([0x65,0x78,0x70])]<_0x38eff2;}function _0x57613b(){const _0x1772c8=_0x369e2e[_0x41cf6d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1772c8)return!0x1;if(_0x1772c8[_0x41cf6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41cf6d([0x2a])))return!0x0;if(_0x1772c8[_0x41cf6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41cf6d([0x43,0x4d,0x54])))return!0x0;if(_0x1772c8[_0x41cf6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41cf6d([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0xb0f583())return!0x0;if(_0x1772c8[_0x41cf6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41cf6d([0x52,0x43,0x4d,0x54]))){if(_0x28b440())return!0x0;if(_0x1dc4dc()||_0x57c82f())return!0x0;}return!0x1;}function _0x3eaf27(){const _0xa31ed8=_0x369e2e[_0x41cf6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa31ed8||0x0==_0xa31ed8[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d2c3b}=new URL(window[_0x41cf6d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa31ed8[_0x41cf6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d2c3b))return!0x0;const _0x15c0bb=_0x3d2c3b[_0x41cf6d([0x73,0x70,0x6c,0x69,0x74])](_0x41cf6d([0x2e]));return _0xa31ed8[_0x41cf6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14c789=>_0x14c789[_0x41cf6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41cf6d([0x2a])))[_0x41cf6d([0x6d,0x61,0x70])](_0x2896b2=>_0x2896b2[_0x41cf6d([0x73,0x70,0x6c,0x69,0x74])](_0x41cf6d([0x2e])))[_0x41cf6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25bfe3=>_0x25bfe3[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x15c0bb[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41cf6d([0x6d,0x61,0x70])](_0x3db6af=>Array(_0x15c0bb[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3db6af[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41cf6d([0x66,0x69,0x6c,0x6c])](_0x3db6af[0x0]===_0x41cf6d([0x2a])?_0x41cf6d([0x2a]):'')[_0x41cf6d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3db6af))[_0x41cf6d([0x73,0x6f,0x6d,0x65])](_0x594221=>_0x15c0bb[_0x41cf6d([0x65,0x76,0x65,0x72,0x79])]((_0x45d6dd,_0x47800b)=>_0x594221[_0x47800b]===_0x45d6dd||_0x594221[_0x47800b]===_0x41cf6d([0x2a])));}function _0x504429(){return _0x5a2754&&_0x177ee2?new window[(_0x41cf6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e85ae,_0x82f7c3)=>{_0x5a2754[_0x41cf6d([0x74,0x68,0x65,0x6e])](_0x5e85ae,_0x82f7c3),_0x177ee2[_0x41cf6d([0x74,0x68,0x65,0x6e])](_0x39e6d8=>{_0x39e6d8!=_0x41cf6d([0x56,0x61,0x6c,0x69,0x64])&&_0x5e85ae(_0x39e6d8);},_0x82f7c3);}):_0x5a2754||_0x177ee2||_0x41cf6d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28e772(_0x16060d,_0x4f38fb){return new window[(_0x41cf6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x286c01=>{if(_0x5e9924())return _0x286c01(_0x41cf6d([0x56,0x61,0x6c,0x69,0x64]));_0x4b96fd(),_0x45cb9d[_0x41cf6d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41cf6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x33111d=!0x1;const _0x3bc172=_0x41fdb0();function _0x324115(_0xc3fcee){return!!_0xc3fcee&&(typeof _0xc3fcee===_0x41cf6d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc3fcee===_0x41cf6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc3fcee[_0x41cf6d([0x74,0x68,0x65,0x6e])]===_0x41cf6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc3fcee[_0x41cf6d([0x63,0x61,0x74,0x63,0x68])]===_0x41cf6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a9594(_0x107c32){_0x2de062(_0x107c32)[_0x41cf6d([0x74,0x68,0x65,0x6e])](_0x5e6cd4=>{if(!_0x5e6cd4||_0x5e6cd4[_0x41cf6d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41cf6d([0x6f,0x6b]))return _0x41cf6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ac691(_0x19663c(_0x3bc172+_0x4f38fb))!=_0x5e6cd4[_0x41cf6d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41cf6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41cf6d([0x56,0x61,0x6c,0x69,0x64]);})[_0x41cf6d([0x74,0x68,0x65,0x6e])](_0x575c0c=>(_0x381c2f(),_0x575c0c),()=>{const _0x1f1661=_0x537ac8();return null==_0x1f1661?(_0x381c2f(),_0x41cf6d([0x56,0x61,0x6c,0x69,0x64])):_0x41cf6d(_0x15bff7-_0x1f1661>(0x574a8eb3^_0x1bca5a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41cf6d([0x74,0x68,0x65,0x6e])](_0x286c01)[_0x41cf6d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x286c01(_0x41cf6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3eae9c=0x7370e433^_0x1bca5a;function _0x381c2f(){const _0x2245e9=_0x41cf6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ac691(_0x19663c(_0x16060d)),_0x20ea95=_0x58a9c3(_0x1ac691(window[_0x41cf6d([0x4d,0x61,0x74,0x68])][_0x41cf6d([0x63,0x65,0x69,0x6c])](_0x15bff7/_0x3eae9c)));window[_0x41cf6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41cf6d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2245e9,_0x20ea95);}function _0x537ac8(){const _0x5beb6a=_0x41cf6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ac691(_0x19663c(_0x16060d)),_0x49f582=window[_0x41cf6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41cf6d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5beb6a);return _0x49f582?window[_0x41cf6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58a9c3(_0x49f582),0x10)*_0x3eae9c:null;}function _0x2de062(_0x513c91){return new window[(_0x41cf6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14e6fa,_0x2fd852)=>{_0x513c91[_0x41cf6d([0x74,0x68,0x65,0x6e])](_0x14e6fa,_0x2fd852),window[_0x41cf6d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fd852,0x7347de73^_0x1bca5a);});}}_0x45cb9d[_0x41cf6d([0x6f,0x6e])](_0x41cf6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36b892,_0x196d72)=>{if(_0x196d72[0x0]!=_0x16060d)return _0x286c01(_0x41cf6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x196d72[0x1]={..._0x196d72[0x1],[_0x41cf6d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3bc172};},{[_0x41cf6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41cf6d([0x68,0x69,0x67,0x68])}),_0x45cb9d[_0x41cf6d([0x6f,0x6e])](_0x41cf6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5eb62f=>{_0x324115(_0x5eb62f[_0x41cf6d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x33111d=!0x0,_0x3a9594(_0x5eb62f[_0x41cf6d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41cf6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41cf6d([0x6c,0x6f,0x77])}),_0x26beab[_0x41cf6d([0x74,0x68,0x65,0x6e])](()=>{_0x33111d||_0x286c01(_0x41cf6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e9924(){return _0x45cb9d[_0x41cf6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41cf6d([0x76,0x69,0x65,0x77])][_0x41cf6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41cf6d([0x61,0x75,0x74,0x6f]);}function _0x4b96fd(){_0x45cb9d[_0x41cf6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41cf6d([0x76,0x69,0x65,0x77])][_0x41cf6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41cf6d([0x61,0x75,0x74,0x6f]);}}function _0x40be22(_0x5323a4){const _0x31a7b8=[new window[(_0x41cf6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58520e=>setTimeout(_0x58520e,0x734f347f^_0x1bca5a)),_0x26beab[_0x41cf6d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41cf6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f0ac8=>{let _0x35412b=0x0;_0x45cb9d[_0x41cf6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x41cf6d([0x6f,0x6e])](_0x41cf6d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x528934,_0x4b00a6)=>{_0x4b00a6[0x0][_0x41cf6d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35412b++,_0x35412b==(0x73460f5b^_0x1bca5a)&&(_0x2f0ac8(),_0x528934[_0x41cf6d([0x6f,0x66,0x66])]());});}))];return window[_0x41cf6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41cf6d([0x72,0x61,0x63,0x65])](_0x31a7b8)[_0x41cf6d([0x74,0x68,0x65,0x6e])](()=>_0x5323a4);}async function _0x3414f6(){await _0x26beab,_0x45cb9d[_0x41cf6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x41cf6d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f292f,_0x45cb9d[_0x41cf6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x41cf6d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f292f,_0x45cb9d[_0x41cf6d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41cf6d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb0f583(){return window[_0x41cf6d([0x67,0x6c,0x6f,0x62])]&&window[_0x41cf6d([0x67,0x6c,0x6f,0x62])][_0x41cf6d([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x28b440(){return _0x5a9aa8(_0x41cf6d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x226d41(_0x41cf6d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x41cf6d([0x73,0x74,0x61,0x74,0x65])]==_0x41cf6d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1dc4dc(){return _0x5a9aa8(_0x41cf6d([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 _0x57c82f(){return _0x5a9aa8(_0x41cf6d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xef9fa9(_0x4344ad){const _0x3ac067=_0x2197cb();_0x45cb9d[_0x3ac067]=_0x41cf6d([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4344ad,_0x4344ad!=_0x41cf6d([0x56,0x61,0x6c,0x69,0x64])&&_0x3414f6();}function _0x2197cb(){const _0xdb8716=window[_0x41cf6d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41cf6d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41cf6d([0x6e,0x6f,0x77])]())[_0x41cf6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41cf6d([0x2e]),'');let _0x79fda1=_0x41cf6d([0x4b]);for(let _0x25b5fb=0x0;_0x25b5fb<_0xdb8716[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25b5fb+=0x2){let _0x3066fb=window[_0x41cf6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdb8716[_0x41cf6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25b5fb,_0x25b5fb+0x2));_0x3066fb>=_0x388be7[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3066fb-=_0x388be7[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x79fda1+=_0x388be7[_0x3066fb];}return _0x79fda1;}function _0x1cb403(){const _0x47cd8f=_0x4db4af[_0x41cf6d([0x73,0x70,0x6c,0x69,0x74])](_0x41cf6d([0x2e]));if(0x3!=_0x47cd8f[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x319229(_0x47cd8f[0x1]);function _0x319229(_0x3c6155){const _0xcb7397=_0x3145a6(_0x3c6155);return _0xcb7397&&_0x104ff0()?_0xcb7397:null;function _0x104ff0(){const _0x57c280=_0xcb7397[_0x41cf6d([0x6a,0x74,0x69])],_0x1d2181=window[_0x41cf6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57c280[_0x41cf6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57c280[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x543538={..._0xcb7397,[_0x41cf6d([0x6a,0x74,0x69])]:_0x57c280[_0x41cf6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57c280[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x543538[_0x41cf6d([0x76,0x63])],_0x19663c(_0x543538)==_0x1d2181;}}}async function _0x3656dc(){let _0x47ed9c=!0x0;try{const _0x1ed45f=_0x4db4af[_0x41cf6d([0x73,0x70,0x6c,0x69,0x74])](_0x41cf6d([0x2e])),[_0x7b6977,_0x32ab90,_0x4ab3ae]=_0x1ed45f;return _0x284919(_0x7b6977),await _0x3023a4(_0x7b6977,_0x32ab90,_0x4ab3ae),_0x47ed9c;}catch{return!0x1;}function _0x284919(_0x47e08d){const _0x4ad3a8=_0x3145a6(_0x47e08d);_0x4ad3a8&&_0x4ad3a8[_0x41cf6d([0x61,0x6c,0x67])]==_0x41cf6d([0x45,0x53,0x32,0x35,0x36])||(_0x47ed9c=!0x1);}async function _0x3023a4(_0x2c2926,_0x48c198,_0x5ef08d){const _0x407e8f=window[_0x41cf6d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41cf6d([0x66,0x72,0x6f,0x6d])](_0x72c6ff(_0x5ef08d),_0x4672a6=>_0x4672a6[_0x41cf6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f0726=new window[(_0x41cf6d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41cf6d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c2926+_0x41cf6d([0x2e])+_0x48c198),_0x3427d1=window[_0x41cf6d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41cf6d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3427d1)return;const _0x34778b=await _0x3427d1[_0x41cf6d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41cf6d([0x6a,0x77,0x6b]),_0x50a3fb,{[_0x41cf6d([0x6e,0x61,0x6d,0x65])]:_0x41cf6d([0x45,0x43,0x44,0x53,0x41]),[_0x41cf6d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41cf6d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41cf6d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3427d1[_0x41cf6d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41cf6d([0x6e,0x61,0x6d,0x65])]:_0x41cf6d([0x45,0x43,0x44,0x53,0x41]),[_0x41cf6d([0x68,0x61,0x73,0x68])]:{[_0x41cf6d([0x6e,0x61,0x6d,0x65])]:_0x41cf6d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34778b,_0x407e8f,_0x3f0726)||(_0x47ed9c=!0x1);}}function _0x3145a6(_0x274751){return _0x274751[_0x41cf6d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41cf6d([0x65,0x79]))?JSON[_0x41cf6d([0x70,0x61,0x72,0x73,0x65])](_0x72c6ff(_0x274751)):null;}function _0x72c6ff(_0x213f9f){return window[_0x41cf6d([0x61,0x74,0x6f,0x62])](_0x213f9f[_0x41cf6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41cf6d([0x2b]))[_0x41cf6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41cf6d([0x2f])));}function _0x19663c(_0x11e51c){let _0x54df69=0x1505;function _0x4d12af(_0x17756d){for(let _0x1a67a3=0x0;_0x1a67a3<_0x17756d[_0x41cf6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a67a3++){const _0x10b0f9=_0x17756d[_0x41cf6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a67a3);_0x54df69=(_0x54df69<<0x5)+_0x54df69+_0x10b0f9,_0x54df69&=_0x54df69;}}function _0x591d45(_0x57c544){Array[_0x41cf6d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57c544)?_0x57c544[_0x41cf6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x591d45):_0x57c544&&typeof _0x57c544==_0x41cf6d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41cf6d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57c544)[_0x41cf6d([0x73,0x6f,0x72,0x74])]()[_0x41cf6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1dffee,_0x3a469a])=>{_0x4d12af(_0x1dffee),_0x591d45(_0x3a469a);}):_0x4d12af(window[_0x41cf6d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57c544));}return _0x591d45(_0x11e51c),_0x54df69>>>0x0;}function _0x1ac691(_0x541118){return _0x541118[_0x41cf6d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41cf6d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41cf6d([0x30]));}function _0x58a9c3(_0x3bf654){return _0x3bf654[_0x41cf6d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41cf6d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41cf6d([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a9aa8(_0x339c94){return _0x45cb9d[_0x41cf6d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x41cf6d([0x68,0x61,0x73])](_0x339c94);}function _0x226d41(_0x2ac3c2){return _0x45cb9d[_0x41cf6d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x41cf6d([0x67,0x65,0x74])](_0x2ac3c2);}function _0x1f292f(){}function _0x41cf6d(_0x3b1fb3){return _0x3b1fb3['map'](_0xb81e8d=>String['fromCharCode'](_0xb81e8d))['join']('');}_0xef9fa9(await _0x196dd0());}(this);}['destroy'](){const _0x421fd6=this['editor']['plugins']['get'](o),_0x8b7052=this['editor']['config']['get']('collaboration.channelId');for(const _0xe5d9d8 of _0x421fd6['getCommentThreads']({'channelId':_0x8b7052}))_0x421fd6['_detachCommentThread'](_0xe5d9d8['id']),_0x421fd6['_threads']['delete'](_0xe5d9d8['id']);super['destroy']();}['hasMarkerForId'](_0x115f8a){return this['getAllMarkersForId'](_0x115f8a)['length']>0x0;}['getAllMarkersForId'](_0x59a7b8){const _0x40804c=[];for(const _0x5e2aa2 of this['editor']['model']['markers'])_0x5e2aa2['name']['startsWith']('comment:'+_0x59a7b8)&&_0x40804c['push'](_0x5e2aa2);return _0x40804c;}['scrollToThreadMarker'](_0x2a0589){setTimeout(()=>{const _0x4fbbce=this['_getTargetForId'](_0x2a0589);if(!_0x4fbbce)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x2a0589&&nt({'target':_0x4fbbce[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x33e4b8){this['editor']['model']['change'](()=>{for(const _0x131735 of this['getAllMarkersForId'](_0x33e4b8))this['editor']['editing']['reconvertMarker'](_0x131735);});}['_attachArchivedThread'](_0x51fa1c){const _0x15e7e3=this['editor']['plugins']['get'](o),_0x253a78=this['editor']['plugins']['get'](b),_0x116645=_0x15e7e3['getCommentThread'](_0x51fa1c);if(!_0x116645['isAttached']){const _0x3d9db2=_0x116645['attachTo'](()=>this['_getTargetForId'](_0x116645['id']));_0x253a78['registerAnnotation'](_0x3d9db2),_0x116645['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x357c40=this['editor'],_0x3a6165=_0x357c40['plugins']['get'](it);_0x357c40['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xdc0919,_0x2ea329)=>{const {id:_0x4d46f9}=ft(_0xdc0919['markerName']),_0x571f55=_0x357c40['plugins']['get'](o)['getCommentThread'](_0x4d46f9),_0x389b43=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x4d46f9;let _0x3bc032;if(_0x571f55&&_0x571f55['isResolved']&&!_0x389b43&&_0xdc0919['item'])return _0x2ea329['consumable']['consume'](_0xdc0919['item'],'addMarker:'+_0xdc0919['markerName']),_0x2ea329['consumable']['consume'](_0xdc0919['item'],'removeMarker:'+_0xdc0919['markerName']),null;const _0x38fb51=['ck-comment-marker'];return _0x389b43&&_0x38fb51['push']('ck-comment-marker--active'),_0x3bc032=_0x571f55?.['length']?_0x571f55['comments']['first']['author']['id']:_0x3a6165['me']['id'],{'classes':_0x38fb51,'attributes':{'data-comment':_0x4d46f9,'data-author-id':_0x3bc032}};}}),_0x357c40['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x270be3,{options:_0x322cca})=>{if(_0x322cca['showCommentHighlights'])return null;const _0x3f6860=_0x357c40['plugins']['get'](o),_0x3d5ae6=_0x357c40['model']['markers']['get'](_0x270be3),{id:_0x1acda3,part:_0x36707c}=ft(_0x270be3);return _0x3d5ae6&&!_0x3d5ae6['affectsData']||_0x322cca['ignoreResolvedComments']&&_0x3f6860['getCommentThread'](_0x1acda3)?.['isResolved']?null:{'group':'comment','name':_0x36707c?_0x1acda3+':'+_0x36707c:_0x1acda3};}}),_0x357c40['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x54235a,{writer:_0x2e54a3})=>_0x2e54a3['createElement']('$marker',{'data-name':'comment:'+_0x54235a['getAttribute']('id')})}),_0x357c40['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3c0a3d=this['editor'],_0x1b2ef7=_0x3c0a3d['plugins']['get'](o),_0x5813c7=new Set(),_0x3c2e64=new Set();_0x3c0a3d['model']['document']['registerPostFixer'](_0xeda57e=>{let _0x22422d=!0x1;for(const {name:_0x47807b,data:_0x4be7bc}of _0x3c0a3d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3092b7,id:_0x75da45}=ft(_0x47807b);let _0x461368=_0x4be7bc['newRange'];if('comment'!==_0x3092b7||!_0x461368)continue;const _0x538728='$graveyard'===_0x461368['root']['rootName'];_0x538728||(_0x461368=ht(_0x461368,_0x3c0a3d['model']),!_0x461368||_0x461368['isCollapsed']||!_0x4be7bc['newRange']||_0x461368['isEqual'](_0x4be7bc['newRange']))?_0x3c0a3d['model']['hasContent'](_0x461368)&&!_0x538728?this['isThreadsLoadingPaused']?_0x5813c7['add'](_0x47807b):this['_handleThreadMarker'](_0x47807b,_0x75da45):(_0x3c2e64['add'](_0x47807b),_0x5813c7['delete'](_0x47807b),_0xeda57e['removeMarker'](_0x47807b),_0x22422d=!0x0):(_0xeda57e['updateMarker'](_0x47807b,{'range':_0x461368}),_0x22422d=!0x0);}return _0x22422d;}),this['on']('change:isThreadsLoadingPaused',(_0x3b3194,_0x1cc8ff,_0x392c29)=>{if(!_0x392c29&&_0x5813c7['size'])for(const _0x2ebd4d of _0x5813c7){const {id:_0x224685}=ft(_0x2ebd4d);_0x5813c7['delete'](_0x2ebd4d),_0x3c0a3d['model']['markers']['get'](_0x2ebd4d)&&this['_handleThreadMarker'](_0x2ebd4d,_0x224685);}}),this['listenTo'](_0x3c0a3d['model']['document'],'change',()=>{for(const {name:_0x37dd53,data:{newRange:_0x42f722}}of _0x3c0a3d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x7278dd,id:_0x5efe58}=ft(_0x37dd53);if('comment'!==_0x7278dd)continue;const _0x3b93d5=_0x1b2ef7['getCommentThread'](_0x5efe58),_0x14d56f=this['hasMarkerForId'](_0x5efe58);_0x3b93d5&&(!_0x3b93d5['_hasTargetInContent']&&_0x42f722&&_0x3c0a3d['editing']['view']['once']('render',()=>{const _0x891c4d=_0x3c0a3d['plugins']['get'](y),_0x113135=_0x1b2ef7['_threadToController']['get'](_0x3b93d5)['view'];_0x891c4d['getByInnerView'](_0x113135)['refreshVisibility']();},{'priority':'low'}),_0x3b93d5['_hasTargetInContent']=_0x14d56f||!!_0x42f722),_0x42f722||(_0x3c2e64['add'](_0x37dd53),_0x5813c7['delete'](_0x37dd53));}for(const _0x34912e of _0x3c2e64){const {id:_0x2ea9db}=ft(_0x34912e),_0x16edfc=_0x1b2ef7['getCommentThread'](_0x2ea9db);if(_0x5813c7['delete'](_0x34912e),!_0x16edfc)continue;const _0x3789f9=this['hasMarkerForId'](_0x2ea9db);_0x3789f9||_0x16edfc['isSubmitted']?_0x3789f9||_0x16edfc['unlinkedAt']||_0x16edfc['setUnlinkedAt'](new Date()):_0x16edfc['remove']();}_0x3c2e64['clear']();});}['_handleInitialThreads'](_0x18b994){_0x18b994['forEach'](_0x1a2bf6=>{_0x1a2bf6['unlinkedAt']&&this['_attachArchivedThread'](_0x1a2bf6['id']);});}['_getTargetForId'](_0x4faa0d){const _0x4eefa2=this['editor'],_0x504996=this['getAllMarkersForId'](_0x4faa0d);return et(_0x4eefa2['editing'],_0x504996);}['_getTextContext'](_0x275f45){const _0x137cd1=this['getAllMarkersForId'](_0x275f45);let _0x2bbe94='',_0x2c587b=!0x1;for(const _0x5a2036 of _0x137cd1){const _0x4817d6=_0x5a2036['getRange']();for(const _0x547aa3 of Array['from'](_0x4817d6['getItems']()))_0x547aa3['is']('$textProxy')?(_0x2bbe94&&_0x2c587b&&(_0x2bbe94+='\x20',_0x2c587b=!0x1),_0x2bbe94+=_0x547aa3['data']):_0x2c587b=!0x0;_0x2c587b=!0x0;}return _0x2bbe94['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x1ce3f4,_0x27abaa){const _0x49bf6e=this['editor'],_0x9ee8ac=_0x49bf6e['plugins']['get'](o);let _0x1dd488=_0x9ee8ac['getCommentThread'](_0x27abaa);const _0x27ff70=_0x49bf6e['config']['get']('collaboration.channelId'),_0x2f7af7=_0x49bf6e['plugins']['get'](b);if(_0x1dd488&&(_0x1dd488['unlinkedAt']&&_0x1dd488['setUnlinkedAt'](null),_0x1dd488['isAttached']))return _0x1dd488;return!this['getAllMarkersForId'](_0x27abaa)[0x0]['managedUsingOperations']?_0x49bf6e['editing']['view']['once']('render',()=>{if(_0x9ee8ac['getCommentThread'](_0x27abaa))return;const _0x2285b0=_0x49bf6e['plugins']['get'](y);_0x1dd488=_0x9ee8ac['openNewCommentThread']({'channelId':_0x27ff70,'threadId':_0x27abaa,'target':()=>this['_getTargetForId'](_0x27abaa),'context':{'type':'text','value':this['_getTextContext'](_0x27abaa)}});const _0x5b0cb9=_0x9ee8ac['_threadToController']['get'](_0x1dd488)['view'],_0x8ca95a=_0x2285b0['getByInnerView'](_0x5b0cb9);_0x8ca95a&&_0x2f7af7['registerAnnotation'](_0x8ca95a);},{'priority':'low'}):_0x9ee8ac['fetchCommentThread']({'channelId':_0x27ff70,'threadId':_0x27abaa})['then'](_0x37bee8=>{if('destroyed'!==_0x49bf6e['state']){if(_0x1dd488=_0x37bee8,_0x1dd488&&!_0x1dd488['isAttached']){const _0x563656=_0x1dd488['attachTo'](()=>this['_getTargetForId'](_0x27abaa));_0x2f7af7['registerAnnotation'](_0x563656),_0x1dd488['isResolved']&&this['_reconvertMarkers'](_0x27abaa);}else{if(!_0x1dd488){const _0x1ec9a6=this['getAllMarkersForId'](_0x27abaa);_0x49bf6e['model']['change'](_0x204454=>{for(const _0x2cdd40 of _0x1ec9a6)_0x204454['removeMarker'](_0x2cdd40);});}}}}),_0x1dd488;}['_handleThreadMarker'](_0x7e691b,_0x151ff2){const _0x1b4d9a=this['_attachMarkerToThread'](_0x7e691b,_0x151ff2);_0x1b4d9a&&!_0x1b4d9a['context']&&_0x1b4d9a['setContext']({'type':'text','value':this['_getTextContext'](_0x151ff2)});}['_initAriaMarkerChangeAnnouncements'](){const _0x2864e9=this['editor'];rt(_0x2864e9['model'],({left:_0x180562,entered:_0x2b0308})=>{for(const _0x3cbcde of _0x180562)if(mt(_0x3cbcde)){_0x2864e9['ui']['ariaLiveAnnouncer']['announce'](N(_0x2864e9['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x422db6 of _0x2b0308)if(mt(_0x422db6)){_0x2864e9['ui']['ariaLiveAnnouncer']['announce'](N(_0x2864e9['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x46f821)));break;}});}}function dt(_0x38072f,_0x3cb2c3){return _0x3cb2c3?_0x38072f+':'+_0x3cb2c3:_0x38072f;}function ht(_0x1d4eca,_0x28eabd){const _0x573540=_0x28eabd['schema'],_0x40ee23=_0x28eabd['createRange'](_0x1d4eca['start']);for(const _0xc7b06b of _0x1d4eca['getWalker']()){const {type:_0x35d76f,item:_0x37a02b,nextPosition:_0x3787ea}=_0xc7b06b;if('text'===_0x35d76f||_0x573540['isObject'](_0x37a02b)){const _0xfaa779=_0x28eabd['createPositionBefore'](_0x37a02b);_0x40ee23['isCollapsed']&&(_0x40ee23['start']=_0xfaa779),_0x40ee23['end']=_0x3787ea;}}return _0x40ee23;}function mt(_0x1fb7a9){return'comment'===ft(_0x1fb7a9['name'])['group'];}class s extends _0x17f83a{['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 _0x3a95b0=this['editor'],_0x4701f9=_0x3a95b0['plugins']['get'](o),_0x52453a=_0x3a95b0['plugins']['get'](r),_0x507b01=_0x3a95b0['plugins']['get'](y),_0x4e6284=_0x3a95b0['plugins']['get'](b);_0x3a95b0['ui']['componentFactory']['add']('comment',()=>{const _0xb6b199=this['_createUIButton'](_0x160831);return _0xb6b199['tooltip']=!0x0,_0xb6b199;}),_0x3a95b0['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x210136)),_0x4e6284['addSourceCollector'](()=>{const _0x3aac31=[];for(const [_0x55ed23,_0x122259]of _0x4701f9['_threadToController']){const _0x149a2e=_0x52453a['getAllMarkersForId'](_0x55ed23['id']),_0x296c74=_0x149a2e['map'](_0x36ad05=>_0x36ad05['getRange']());_0x149a2e['length']>0x0&&_0x3aac31['push']([_0x122259['view'],_0x296c74]);}return _0x3aac31;}),this['listenTo'](_0x507b01,'change:activeAnnotations',(_0x63f197,_0x204e26,_0x2c41d8)=>{const _0x57ff6c=Array['from'](_0x2c41d8)['map'](_0x45ad6f=>_0x45ad6f['innerView'])['find'](_0x15d7d2=>_0x4701f9['_viewToController']['has'](_0x15d7d2));if(!_0x57ff6c)return void(_0x52453a['activeMarker']=null);const _0x5c5dd1=_0x4701f9['_viewToController']['get'](_0x57ff6c)['model']['id'],_0x118034='comment:'+_0x5c5dd1;_0x5c5dd1&&_0x52453a['hasMarkerForId'](_0x5c5dd1)?_0x52453a['activeMarker']=_0x118034:_0x52453a['activeMarker']&&(_0x52453a['activeMarker']=null);}),this['listenTo'](_0x4701f9,'removeCommentThread',(_0x376d8c,{threadId:_0x477c0c,isFromAdapter:_0x1ee7c5})=>{!_0x1ee7c5&&_0x3a95b0['ui']['focusTracker']['isFocused']&&_0x52453a['hasMarkerForId'](_0x477c0c)&&_0x3a95b0['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x4701f9,'addComment',(_0x329e40,{threadId:_0x4bf9e3,isFromAdapter:_0x51fc61})=>{if(_0x51fc61||!_0x52453a['hasMarkerForId'](_0x4bf9e3)||!_0x4701f9['hasCommentThread'](_0x4bf9e3))return;0x1===_0x4701f9['getCommentThread'](_0x4bf9e3)['length']&&(_0x3a95b0['editing']['view']['focus'](),_0x329e40['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x22ec6f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb65932;for(const _0xd3eae6 in _0x22ec6f){const _0x2ec3ca=_0xd3eae6,_0x452e61=_0x22ec6f[_0x2ec3ca];if('commentsLicenseKeyValid'==_0x452e61||'commentsLicenseKeyInvalid'==_0x452e61||'commentsLicenseKeyExpired'==_0x452e61||'commentsLicenseKeyDomainLimit'==_0x452e61||'commentsLicenseKeyNotAllowed'==_0x452e61||'commentsLicenseKeyEvaluationLimit'==_0x452e61||'commentsLicenseKeyUsageLimit'==_0x452e61){delete _0x22ec6f[_0x2ec3ca],_0xb65932=_0x452e61,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0xb65932&&_0x22ec6f['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0xb65932&&_0x22ec6f['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0xb65932&&_0x22ec6f['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0xb65932&&_0x22ec6f['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0xb65932&&_0x22ec6f['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0xb65932&&_0x22ec6f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x28c363){const _0x5903e8=this['editor'],_0x79b0fe=new _0x28c363(_0x5903e8['locale']),_0x2845fb=_0x5903e8['commands']['get']('addCommentThread');return _0x79b0fe['set']({'label':N(_0x5903e8['locale'],'Comment'),'icon':_0x4d6302}),_0x79b0fe['bind']('isEnabled')['to'](_0x2845fb,'isEnabled',_0x2845fb,'hasContent',(_0x5365fc,_0x1a7422)=>_0x5365fc&&_0x1a7422),this['listenTo'](_0x79b0fe,'execute',()=>{_0x2845fb['execute']();}),_0x79b0fe;}}class i extends _0x17f83a{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x26f703){super(_0x26f703),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x429cf4,_0x174b55,_0x55214c)=>{_0x55214c?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0xa87f76,_0x307919]of this['editor']['commands'])_0x307919['affectsData']&&'addCommentThread'!==_0xa87f76&&_0x307919['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 _0x166747=this['editor']['editing']['view']['document'];this['listenTo'](_0x166747,'cut',_0x3c2dd1=>_0x3c2dd1['stop'](),{'priority':'highest'}),this['listenTo'](_0x166747,'clipboardInput',_0x2915d8=>_0x2915d8['stop'](),{'priority':'highest'}),this['listenTo'](_0x166747,'delete',_0x465b80=>_0x465b80['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x4fc2d9,_0x33abc5]of this['editor']['commands'])_0x33abc5['affectsData']&&'addCommentThread'!==_0x4fc2d9&&_0x33abc5['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 _0x1acf46{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x470611){super(_0x470611),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x52a5b2=this['context']['plugins']['get'](y);this['listenTo'](_0x52a5b2,'_activateAnnotation',(_0x12479e,_0x42f563)=>{for(const _0x4f870e of this['activeUIs']){const _0x497fc0=this['_uis']['get'](_0x4f870e);(0x0,this['uisData']['get'](_0x4f870e)['filter'])(_0x42f563)&&_0x497fc0['setActiveAnnotation'](_0x42f563);}}),this['listenTo'](_0x52a5b2,'_deactivateAllAnnotations',()=>{for(const _0x28b750 of this['activeUIs']){this['_uis']['get'](_0x28b750)['setActiveAnnotation'](null);}}),this['listenTo'](_0x52a5b2['_visibleAnnotations'],'add',(_0x440cf3,_0x37b430)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x37b430);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x42770d){return this['activeUIs']['has'](_0x42770d);}['activate'](_0x20129e,_0x443fe3=this['defaultFilter']){const _0x1d4fb6=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x20129e))throw new _0x23e2eb('annotationsuis-missing-ui',this,{'uiName':_0x20129e});this['isActive'](_0x20129e)&&this['deactivate'](_0x20129e),this['activeUIs']['add'](_0x20129e);const _0x18f51f=new S();v({'source':_0x1d4fb6['_visibleAnnotations'],'target':_0x18f51f,'filter':_0x443fe3}),this['uisData']['set'](_0x20129e,{'collection':_0x18f51f,'filter':_0x443fe3});const _0xa45c9e=this['_uis']['get'](_0x20129e);_0xa45c9e['attach'](_0x18f51f),this['listenTo'](_0xa45c9e,'change:activeAnnotation',(_0x1261d9,_0xd908ac,_0xdcb5e4,_0xb73f4b)=>{_0xb73f4b&&_0x1d4fb6['_removeActiveAnnotation'](_0xb73f4b),_0xdcb5e4&&_0x1d4fb6['_addActiveAnnotation'](_0xdcb5e4);});}['deactivate'](_0x723312){if(this['activeUIs']['delete'](_0x723312),!this['_uis']['has'](_0x723312))throw new _0x23e2eb('annotationsuis-missing-ui',this,{'uiName':_0x723312});const _0x48cc7d=this['_uis']['get'](_0x723312);_0x48cc7d['detach'](),this['stopListening'](_0x48cc7d),this['uisData']['get'](_0x723312)['collection']['destroy'](),this['uisData']['delete'](_0x723312);}['switchTo'](_0x4d84b6){if(!this['_uis']['has'](_0x4d84b6))throw new _0x23e2eb('annotationsuis-missing-ui',this,{'uiName':_0x4d84b6});const _0x581547=this['context']['plugins']['get'](y),_0x5c23ef=Array['from'](_0x581547['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4d84b6);const _0x35f4d1=this['_uis']['get'](_0x4d84b6);_0x35f4d1['setActiveAnnotation'](_0x5c23ef),_0x35f4d1['_setSelectedAnnotations']&&_0x5c23ef&&_0x35f4d1['_setSelectedAnnotations']([_0x5c23ef]);}['deactivateAll'](){for(const _0x2691db of this['activeUIs'])this['deactivate'](_0x2691db);}['register'](_0x5f505e,_0x3e9941){if(this['_uis']['has'](_0x5f505e))throw new _0x23e2eb('annotationsuis-register-already-registered');if('function'!=typeof _0x3e9941['attach']||'function'!=typeof _0x3e9941['detach']||'function'!=typeof _0x3e9941['setActiveAnnotation'])throw new _0x23e2eb('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5f505e,_0x3e9941);}['refilterAnnotations'](){const _0x124ee9=this['context']['plugins']['get'](y)['collection'],_0x2aee4a=new Map(),_0x311221=Array['from'](this['activeUIs']);for(const _0x1fca82 of this['activeUIs']){const _0x3c1ffe=this['uisData']['get'](_0x1fca82)['collection'];for(const _0x3947fb of _0x3c1ffe)_0x2aee4a['set'](_0x3947fb,_0x1fca82);}for(const _0x3bb462 of _0x124ee9){const _0x65eeb1=_0x2aee4a['get'](_0x3bb462);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3bb462);const _0x44bd4f=_0x311221['find'](_0x56200a=>this['uisData']['get'](_0x56200a)['filter'](_0x3bb462));_0x65eeb1!==_0x44bd4f&&(_0x65eeb1&&this['uisData']['get'](_0x65eeb1)['collection']['remove'](_0x3bb462),_0x44bd4f&&this['uisData']['get'](_0x44bd4f)['collection']['add'](_0x3bb462));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x332df8){const _0x191762=[];for(const _0x13463f of this['activeUIs']){(0x0,this['uisData']['get'](_0x13463f)['filter'])(_0x332df8)&&_0x191762['push'](_0x13463f);}if(_0x191762['length']>0x1)throw new _0x23e2eb('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x191762,'annotationType':_0x332df8['type']});}}const he=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x504bdc){super(_0x504bdc);const _0x4732ff=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 _0x153b35(),this['focusCycler']=new _0x48fa6b({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4732ff['to']('class')],'style':{'minHeight':_0x4732ff['to']('minHeight',_0x5b7ac4=>'number'==typeof _0x5b7ac4?he(_0x5b7ac4+0xa):null)},'dir':_0x504bdc['uiLanguageDirection'],'role':'application','aria-label':N(_0x504bdc,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x504bdc,'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',_0x1e2a23=>{this['_updateItemPositionInFocusables'](_0x1e2a23['source']);}),this['list']['forEach'](_0xd1a187=>{this['focusTracker']['add'](_0xd1a187['element']),this['_updateItemPositionInFocusables'](_0xd1a187);}),this['list']['on']('change',(_0x498011,_0x425f51)=>{for(const _0x4562f3 of _0x425f51['removed'])this['focusTracker']['remove'](_0x4562f3['element']),this['focusables']['remove'](_0x4562f3);for(const _0x378a29 of _0x425f51['added'])this['focusTracker']['add'](_0x378a29['element']),this['_updateItemPositionInFocusables'](_0x378a29);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3b2cd9){const _0x46e95e=this['focusables']['getIndex'](_0x3b2cd9);let _0x14b342,_0x567c0e;for(const _0x4e595b of this['focusables'])if(_0x3b2cd9['top']<_0x4e595b['top']){_0x14b342=_0x4e595b;break;}if(_0x567c0e=_0x14b342?this['focusables']['getIndex'](_0x14b342):this['focusables']['length'],-0x1!==_0x46e95e){if(_0x46e95e===_0x567c0e-0x1)return;this['focusables']['remove'](_0x3b2cd9),_0x567c0e=_0x14b342?this['focusables']['getIndex'](_0x14b342):this['focusables']['length'];}this['focusables']['add'](_0x3b2cd9,_0x567c0e);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x129f2a){super(_0x129f2a),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x35fbe9,_0x7fce28)=>_0x35fbe9+_0x7fce28),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x30e89a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x30e89a['to']('isAnimationDisabled',_0x531322=>_0x531322?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x30e89a['to']('top',_0x14f7ab=>Ot(_0x14f7ab))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1fd4f0=this['element']['clientHeight'];_0x1fd4f0&&(this['height']=_0x1fd4f0);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x1acf46{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e6762){super(_0x5e6762),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 _0x3158d2=this['context']['config']['get']('sidebar.container');_0x3158d2&&this['setContainer'](_0x3158d2);}['setContainer'](_0x49c360){if(!g(_0x49c360))throw new _0x23e2eb('sidebar-setcontainer-invalid-element');this['container']=_0x49c360;}['_attachToContainer']({viewClass:_0x18f896='',spaceBetweenItems:_0x5ca391=0x19}={}){if(!g(this['container']))throw new _0x23e2eb('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x18f896,this['_spaceBetweenItems']=_0x5ca391;}['rearrange']({removedAnnotation:_0x5a4f8f,previousAnnotation:_0x24808b,nextAnnotation:_0x3c6faf}){const _0x5dddff=this['getSidebarItemView'](_0x5a4f8f);this['view']['list']['remove'](_0x5dddff),this['_destroySidebarItemView'](_0x5a4f8f),_0x24808b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x24808b)),_0x3c6faf&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3c6faf)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x5756a9,activatedAnnotation:_0x2bf066,disableAnimationOnActivatedAnnotation:_0x465137}){if(this['_activeAnnotation']=_0x2bf066,_0x5756a9){_0x5756a9['isActive']=!0x1;const _0x498e29=this['getSidebarItemView'](_0x5756a9);_0x498e29&&_0x465137&&(_0x498e29['isAnimationDisabled']=!0x1);}if(_0x2bf066){const _0x5a5da0=this['getSidebarItemView'](_0x2bf066);_0x5a5da0&&(_0x2bf066['isActive']=!0x0,_0x465137&&(_0x5a5da0['isAnimationDisabled']=!0x0,_0x5a5da0['top']+=0x1),this['_alignToTargetRect'](_0x5a5da0));}}['_detachFromContainer'](_0x8e2d1b){if(this['view']['element']['remove'](),_0x8e2d1b){for(const _0xafbc44 of _0x8e2d1b)this['_destroySidebarItemView'](_0xafbc44);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x27b277,_0xccd296){_0xccd296||(_0xccd296=_0x27b277['view']);const _0x51b099=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x51b099,_0x27b277),this['_annotationToSidebarItemView']['set'](_0x27b277,_0x51b099),_0x51b099['content']['add'](_0xccd296),this['listenTo'](_0x27b277['view'],'change:targetRect',(_0x1dceae,_0x11093a,_0x4044e2)=>{const _0x473671=this['_getTargetTop'](_0x27b277,_0x4044e2);_0x51b099['_targetTop']!=_0x473671&&(_0x51b099['_targetTop']=_0x473671,this['_setItemTop'](_0x51b099,_0x473671));}),this['listenTo'](_0x51b099,'change:top',()=>{this['_recalculate'](_0x51b099,'top');}),this['listenTo'](_0x51b099,'change:bottom',()=>{this['_recalculate'](_0x51b099,'bottom');}),this['_alignToTargetRect'](_0x51b099);const _0x455925=this['_getItemBefore'](_0x51b099);if(_0x455925)this['_alignAfterItem'](_0x455925,_0x51b099)||this['_alignToTargetRect'](_0x51b099);else this['_alignToTargetRect'](_0x51b099);return this['_updateLastItem'](),this['view']['list']['add'](_0x51b099),_0x51b099;}['_alignForTopChange'](_0x1f4815){if(!_0x1f4815['content']['length'])return;const _0x5bd1c7=this['_getItemBefore'](_0x1f4815);if(!_0x5bd1c7)return;const _0x3c15a7=this['_sidebarItemViewToAnnotation']['get'](_0x5bd1c7),_0x4e4cdf=this['_activeAnnotation'];_0x4e4cdf&&_0x4e4cdf===_0x3c15a7?this['_alignAfterItem'](_0x5bd1c7,_0x1f4815):this['_alignBeforeItem'](_0x1f4815,_0x5bd1c7);}['_alignForBottomChange'](_0x5f13d0){if(!_0x5f13d0['content']['length'])return;const _0x39542f=this['_getItemAfter'](_0x5f13d0);if(!_0x39542f)return;const _0x2587df=this['_sidebarItemViewToAnnotation']['get'](_0x39542f),_0x274b8e=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x39ea37=this['_activeAnnotation'];_0x39ea37&&_0x39ea37===_0x2587df&&_0x274b8e?(this['_alignBeforeItem'](_0x39542f,_0x5f13d0),this['_alignAfterItem'](_0x5f13d0,_0x39542f)):_0x39ea37&&_0x39ea37===_0x2587df?this['_alignBeforeItem'](_0x39542f,_0x5f13d0):this['_alignAfterItem'](_0x5f13d0,_0x39542f);}['_recalculate'](_0x242bb9,_0x7235bd){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x550cc0,changedProp:_0x39d14f}of this['_recalculateBuffer'])'top'===_0x39d14f?this['_alignForTopChange'](_0x550cc0):this['_alignForBottomChange'](_0x550cc0);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x242bb9,'changedProp':_0x7235bd});}['getSidebarItemView'](_0x430806){return this['_annotationToSidebarItemView']['get'](_0x430806);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1036f9){const _0x32ad07=this['getSidebarItemView'](_0x1036f9);this['stopListening'](_0x32ad07),this['stopListening'](_0x1036f9['view']),_0x32ad07['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1036f9),this['_sidebarItemViewToAnnotation']['delete'](_0x32ad07);}['_createSidebarView'](){const _0x24b35e=new H(this['context']['locale']);return _0x24b35e['render'](),this['on']('change:_lastItem',(_0x13de65,_0xdf03e,_0x48f582,_0x581fa7)=>{_0x581fa7&&_0x24b35e['unbind']('minHeight'),_0x48f582?_0x24b35e['bind']('minHeight')['to'](_0x48f582,'bottom'):_0x24b35e['minHeight']=null;}),_0x24b35e;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x1a979f){const _0x27cf52=this['_sidebarItemViewToAnnotation']['get'](_0x1a979f),_0x522137=_0x27cf52&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x27cf52)-0x1);return _0x522137&&this['getSidebarItemView'](_0x522137)||null;}['_getItemAfter'](_0x30e18f){const _0x2760f7=this['_sidebarItemViewToAnnotation']['get'](_0x30e18f),_0x613db0=_0x2760f7&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2760f7)+0x1);return _0x613db0&&this['getSidebarItemView'](_0x613db0)||null;}['_alignBeforeItem'](_0x597a8d,_0x58a9f6){_0x597a8d['updateHeight']();const _0x1e56b1=G(_0x58a9f6['bottom']+this['_spaceBetweenItems'],_0x597a8d['top']);return!!_0x1e56b1&&(this['_setItemTop'](_0x58a9f6,_0x58a9f6['top']-_0x1e56b1),!0x0);}['_alignAfterItem'](_0x50f397,_0x2eae28){_0x50f397['updateHeight']();const _0x2d117d=G(_0x50f397['bottom']+this['_spaceBetweenItems'],_0x2eae28['top']);return!!_0x2d117d&&(this['_setItemTop'](_0x2eae28,_0x2eae28['top']+_0x2d117d,!0x1),!0x0);}['_alignToTargetRect'](_0x22e844){const _0x134057=this['_sidebarItemViewToAnnotation']['get'](_0x22e844);if(!_0x134057||!_0x134057['target']||!_0x134057['targetRect'])return;const _0x2dfe01=this['_getTargetTop'](_0x134057,_0x134057['targetRect']);this['_setItemTop'](_0x22e844,_0x2dfe01);}['_getTargetTop'](_0x2bee12,_0x5e375e){if(null===_0x5e375e)return 0x0;if(_0x2bee12['target']instanceof _0x3abe6c)return _0x5e375e['top'];{const _0x2fd107=new _0x3abe6c(this['view']['element'])['top'];return _0x5e375e['top']-_0x2fd107;}}['_setItemTop'](_0x580fda,_0x32da2a,_0x18e391=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x18e391&&(_0x32da2a=Math['max'](_0x32da2a,this['_getMaxAvailableTop'](_0x580fda))),_0x580fda['top']=_0x32da2a;}['_getMaxAvailableTop'](_0x2533a7){let _0x1477e0=this['_getItemBefore'](_0x2533a7),_0x48560b=0x0;for(;_0x1477e0;)_0x1477e0['updateHeight'](),_0x48560b+=this['_spaceBetweenItems']+_0x1477e0['height'],_0x1477e0=this['_getItemBefore'](_0x1477e0);return _0x48560b;}}function G(_0x3e7d16,_0x581ba9){return Math['max'](_0x3e7d16-_0x581ba9,0x0);}function g(_0x8170a4){return null!==_0x8170a4&&'object'==typeof _0x8170a4&&0x1===_0x8170a4['nodeType'];}class e extends _0x1acf46{['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(_0x22dd8c){super(_0x22dd8c),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x4290a9(),this['_refreshPositioningDebounced']=_0x5db34e(()=>{_0x22dd8c['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x478d0b=this['context']['plugins']['get'](j),_0x263538=this['context']['plugins']['get'](z);_0x478d0b['register']('wideSidebar',this),_0x263538['container']&&_0x478d0b['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4737c6){if(_0x4737c6===this['activeAnnotation'])return;const _0x310b48=this['context']['plugins']['get'](z);_0x310b48['_activeAnnotation']=_0x4737c6;const _0x3be737=this['activeAnnotation'];_0x310b48['refresh']({'blurredAnnotation':_0x3be737,'activatedAnnotation':_0x4737c6}),this['activeAnnotation']=_0x4737c6;}['attach'](_0x4b176f){this['annotations']=_0x4b176f;const _0x130f2e=this['context']['plugins']['get'](z);if(_0x130f2e['_annotations']=_0x4b176f,this['isAttached'])throw new _0x23e2eb('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x130f2e,'set:container',()=>{this['detach'](),this['listenTo'](_0x130f2e,'change:container',_0x536ecc=>{_0x536ecc['off'](),this['attach'](_0x4b176f);});}),_0x130f2e['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3a592b=_0x5718cc=>{_0x5718cc['updateTargetRect'](),_0x130f2e['addAnnotation'](_0x5718cc);};for(const _0x25ee67 of _0x4b176f)_0x3a592b(_0x25ee67);this['listenTo'](_0x4b176f,'add',(_0x557c8f,_0x57cb51)=>{_0x3a592b(_0x57cb51);}),this['listenTo'](_0x4b176f,'remove',(_0x3004d4,_0x175f97,_0x48b286)=>{_0x130f2e['rearrange']({'removedAnnotation':_0x175f97,'previousAnnotation':_0x4b176f['get'](_0x48b286-0x1),'nextAnnotation':_0x4b176f['get'](_0x48b286+0x1)}),_0x175f97===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4b176f,'focus',(_0x2c1611,_0x4c8862)=>{this['setActiveAnnotation'](_0x4c8862);}),this['listenTo'](_0x4b176f,'blur',()=>{this['setActiveAnnotation'](null);});const _0x417331=this['context']instanceof _0x449463?this['context']['editors']:new _0x4290a9([this['context']]);for(const _0x2b894b of _0x417331)this['_integrateWithEditorAnnotations'](_0x2b894b);this['listenTo'](_0x417331,'add',(_0x1f5775,_0x1b8af4)=>{this['listenTo'](_0x1b8af4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1b8af4);});}),this['listenTo'](_0x417331,'remove',(_0x2926d0,_0x4eecfb)=>{_0x4eecfb['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4eecfb['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x23e2eb('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3741cf=this['context']['plugins']['get'](z);_0x3741cf['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3741cf),this['stopListening'](this['annotations']),this['context']instanceof _0x449463&&this['stopListening'](this['context']['editors']);for(const _0x53fefd of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x53fefd);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x4d9cec){if(!_0x4d9cec['plugins']['has']('EditorAnnotations'))return;const _0x2cd0ae=_0x4d9cec['plugins']['get']('EditorAnnotations'),_0xbdfbac=()=>{const _0x313292=_0x2cd0ae['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x313292[0x0]||null);};this['listenTo'](_0x2cd0ae,'refresh',_0xbdfbac),this['listenTo'](_0x2cd0ae,'blur',(_0x1d5017,{isAnnotationTracked:_0x1dfa06})=>{this['activeAnnotation']&&_0x1dfa06(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2cd0ae,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x493c3e=>{_0x2cd0ae['hasDomSelection']()&&(_0xbdfbac(),_0x493c3e['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2cd0ae);}['_destroyEditorAnnotationsIntegration'](_0x2e8e8e){this['stopListening'](_0x2e8e8e),this['_editorAnnotations']['remove'](_0x2e8e8e);}}class C extends _0x160831{['counterView'];constructor(_0x54d7ec){super(_0x54d7ec);const _0x4a3e48=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4a061f,_0xffba9c)=>_0x4a061f?'...':_0xffba9c['toString']()),this['set']('annotationType',''),this['icon']=_0x4d6302,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4a3e48['to']('annotationType',_0x57cf34=>'ck-annotation-counter__badge--'+_0x57cf34),_0x4a3e48['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4a3e48['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x1acf46{['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(_0x40e97d){super(_0x40e97d),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x596629())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x4290a9(),this['_refreshPositioningDebounced']=_0x5db34e(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x3d2f89(this['context']['locale']),this['balloonPanelView']=new _0x1d9ee6(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x5abf8c){this['annotations']=_0x5abf8c;const _0x1af106=this['context']['plugins']['get'](z),_0x7978e7=this['balloonPanelView'];if(_0x1af106['_annotations']=_0x5abf8c,this['isAttached'])throw new _0x23e2eb('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1af106,'set:container',()=>{this['detach'](),this['listenTo'](_0x1af106,'change:container',_0x40ac23=>{_0x40ac23['off'](),this['attach'](_0x5abf8c);});}),_0x1af106['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x5f7d8b=_0x15374d=>{const _0x2a7514=new C(this['context']['locale']);_0x1af106['addAnnotation'](_0x15374d,_0x2a7514),this['_annotationToNarrowView']['set'](_0x15374d,_0x2a7514),_0x2a7514['bind']('isDirty','annotationType','number')['to'](_0x15374d['view'],'isDirty','type','length'),_0x2a7514['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x7978e7['content']['first']!==_0x15374d['view']?(this['_showBalloon'](_0x15374d),_0x15374d['view']['element']['focus'](),this['setActiveAnnotation'](_0x15374d)):this['setActiveAnnotation'](null);});};for(const _0x142b60 of _0x5abf8c)_0x5f7d8b(_0x142b60);this['listenTo'](_0x5abf8c,'add',(_0xf91172,_0x4a8022)=>{_0x5f7d8b(_0x4a8022);}),this['listenTo'](_0x5abf8c,'remove',(_0x59d34e,_0x305296,_0xf83934)=>{this['_annotationToNarrowView']['get'](_0x305296)['destroy'](),this['_annotationToNarrowView']['delete'](_0x305296),_0x1af106['rearrange']({'removedAnnotation':_0x305296,'previousAnnotation':_0x5abf8c['get'](_0xf83934-0x1),'nextAnnotation':_0x5abf8c['get'](_0xf83934+0x1)}),_0x305296===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5abf8c,'focus',(_0x1e0102,_0x45629d)=>{this['setActiveAnnotation'](_0x45629d);}),this['listenTo'](_0x5abf8c,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x2edf70,_0x43a878)=>{_0x43a878['keyCode']===_0x25dde1['esc']&&_0x7978e7['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x7978e7['content']['first']),this['_hideBalloon'](),_0x43a878['stopPropagation'](),_0x43a878['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x14b01c,_0x17e2dc)=>{const _0x32924a=_0x17e2dc['target'];_0x7978e7['isVisible']&&_0x7978e7['element']['contains'](_0x32924a)||_0x1af106['view']['element']['contains'](_0x32924a)||_0x14b01c['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x3ff63a=>_0x3ff63a['contains'](_0x32924a))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x51b5fa=this['context']instanceof _0x449463?this['context']['editors']:new _0x4290a9([this['context']]);for(const _0x4f9541 of _0x51b5fa)this['_integrateWithEditorAnnotations'](_0x4f9541);this['listenTo'](_0x51b5fa,'add',(_0x4a0c0a,_0x586b2c)=>{this['listenTo'](_0x586b2c,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x586b2c);});}),this['listenTo'](_0x51b5fa,'remove',(_0x45c25e,_0x8eaa59)=>{_0x8eaa59['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x8eaa59['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x4584e9){if(_0x4584e9===this['activeAnnotation'])return;const _0x38ff46=this['context']['plugins']['get'](z);if(_0x38ff46['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4584e9,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4584e9)_0x38ff46['getSidebarItemView'](_0x4584e9)?this['_showBalloon'](_0x4584e9):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x4584e9;}['detach'](){if(!this['isAttached'])throw new _0x23e2eb('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x485fe9=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x45c90c=>_0x45c90c['destroy']()),this['_annotationToNarrowView']['clear'](),_0x485fe9['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x449463&&this['stopListening'](this['context']['editors']);for(const _0x36f158 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x36f158);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'](_0x577c9c){if(!_0x577c9c['plugins']['has']('EditorAnnotations'))return;const _0x15c215=_0x577c9c['plugins']['get']('EditorAnnotations'),_0x3ab529=this['context']['plugins']['get'](z),_0x47497d=this['annotations'],_0x3456e8=this['balloonPanelView'],_0x5a1010=()=>{const _0x21d4ed=_0x15c215['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x21d4ed),this['setActiveAnnotation'](_0x21d4ed[0x0]||null);};this['listenTo'](_0x15c215,'refresh',_0x5a1010),this['listenTo'](_0x15c215,'blur',(_0x2e7288,{isAnnotationTracked:_0x22b2f8})=>{this['activeAnnotation']&&_0x22b2f8(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x15c215,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x47497d,'blur',_0x4ad007=>{_0x15c215['hasDomSelection']()&&_0x4ad007['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1ae533,_0x17d6ee)=>{const _0x24fb92=_0x17d6ee['target'];_0x3456e8['isVisible']&&_0x3456e8['element']['contains'](_0x24fb92)||_0x3ab529['view']['element']['contains'](_0x24fb92)||this['activeAnnotation']&&_0x15c215['hasDomSelection']()&&(_0x5a1010(),_0x1ae533['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x15c215);}['_destroyEditorAnnotationsIntegration'](_0x4bc8ce){_0x4bc8ce&&(this['stopListening'](_0x4bc8ce),this['_editorAnnotations']['remove'](_0x4bc8ce));}['_setSelectedAnnotations'](_0x3b2946){for(const _0x330ea0 of this['_selectedAnnotations'])_0x3b2946['includes'](_0x330ea0)||this['_manuallyClosedAnnotationViews']['delete'](_0x330ea0['view']);this['_selectedAnnotations']=_0x3b2946;}['_refreshPositioning'](){const _0x1ed9ed=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x1ed9ed['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x544220){if(this['_manuallyClosedAnnotationViews']['has'](_0x544220['view']))return;const _0x3161a2=this['balloonPanelView']['content']['first'];_0x3161a2!==_0x544220['view']?(_0x3161a2&&this['_detachListeners'](_0x3161a2),this['_attachListeners'](_0x544220['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x544220['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x3bab18=this['balloonPanelView']['content']['first'],_0x12b9f4=_0x3bab18&&this['annotations']['getByView'](_0x3bab18);if(!_0x12b9f4||!this['_annotationToNarrowView']['has'](_0x12b9f4))return;const _0x574605=this['_annotationToNarrowView']['get'](_0x12b9f4)['element'],_0x32ca59=(function(){const _0x2b5ff2=_0x1d9ee6['defaultPositions'];return[_0x2b5ff2['southArrowNorthEast'],_0x2b5ff2['northArrowSouthEast'],_0x2b5ff2['southArrowNorth'],_0x2b5ff2['northArrowSouth'],_0x2b5ff2['southArrowNorthWest'],_0x2b5ff2['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x574605,'positions':_0x32ca59});}['_hideBalloon'](){const _0x32df23=this['balloonPanelView'],_0x542450=_0x32df23['content']['first'];_0x542450&&(this['_detachListeners'](_0x542450),_0x32df23['unpin'](),_0x32df23['content']['clear']());}['_attachListeners'](_0x2edf37){this['listenTo'](_0x2edf37,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2edf37,'Esc',(_0x3ed0e4,_0x4edf67)=>{this['_manuallyClosedAnnotationViews']['add'](_0x2edf37),this['_hideBalloon'](),_0x4edf67();});}['_detachListeners'](_0x38fd4e){this['stopListening'](_0x38fd4e);}}class c extends _0x17f83a{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x482d80,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56e2b1){super(_0x56e2b1),_0x56e2b1['editing']['view']['addObserver'](_0x47b835),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x56e2b1['plugins']['get'](_0x482d80),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x5db34e(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x22dd34=this['editor']['plugins']['get'](j);_0x22dd34['context']===this['editor']&&(_0x22dd34['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x4372d1,_0x280192)=>{const _0x126c73=this['_balloon'];if(this['isAttached']&&_0x126c73['visibleView']){const _0x311718=this['annotations']['getByView'](_0x126c73['visibleView']);_0x311718&&this['_closeAnnotation'](_0x311718),_0x280192();}}));}['afterInit'](){const _0x4ab7d3=this['editor']['plugins']['get'](j);_0x4ab7d3['context']===this['editor']&&(_0x4ab7d3['hasActive']()||_0x4ab7d3['switchTo']('inline'));}['setActiveAnnotation'](_0x59ae4d){_0x59ae4d!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x59ae4d&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x59ae4d)&&this['_addAnnotationToBalloon'](_0x59ae4d,!0x0),_0x59ae4d['isActive']=!0x0),_0x59ae4d||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x59ae4d);}['attach'](_0x35d224){this['annotations']=_0x35d224;const _0x5619f6=this['editor']['plugins']['get'](j),_0x1f2c3b=this['_balloon'];if(this['isAttached'])throw new _0x23e2eb('inlineannotations-attach-already-attached',this);if(_0x5619f6['context']!==this['editor'])throw new _0x23e2eb('inlineannotations-not-allowed-with-context',this);const _0x1f529a=this['editor']['plugins']['get'](b);this['listenTo'](_0x1f529a,'refresh',()=>{const _0x2428a3=_0x1f529a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x83f49f,_0x4fd8e7;!this['_forceRefresh']&&(_0x83f49f=_0x2428a3,_0x4fd8e7=this['_selectedAnnotations'],_0x83f49f['length']===_0x4fd8e7['length']&&_0x83f49f['every'](_0x299500=>_0x4fd8e7['includes'](_0x299500)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2428a3),this['setActiveAnnotation'](_0x2428a3[0x0]||null));}),this['listenTo'](_0x1f529a,'blur',(_0x21cf2f,{isAnnotationTracked:_0x3768f7})=>{this['activeAnnotation']&&_0x3768f7(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1f529a,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x333be9,_0x39e6af,_0x14ce37)=>{_0x14ce37||this['setActiveAnnotation'](null);}),this['listenTo'](_0x35d224,'remove',(_0x3a383c,_0x5d100b)=>{this['_removeAnnotationFromBalloon'](_0x5d100b),_0x5d100b===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1f2c3b,'change:visibleView',(_0x38c42c,_0x1cafce,_0x5ca5c8,_0x5dc55f)=>{_0x5dc55f&&this['stopListening'](_0x5dc55f);const _0x35e9f8=_0x35d224['getByView'](_0x5ca5c8);_0x5ca5c8&&_0x35e9f8&&(this['listenTo'](_0x5ca5c8,'change:height',()=>{_0x1f2c3b['updatePosition']();}),this['listenTo'](_0x5ca5c8,'Esc',()=>{this['_closeAnnotation'](_0x35e9f8),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x35e9f8&&this['setActiveAnnotation'](_0x35e9f8));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x1f2c3b['visibleView']&&(_0x35d224['getByView'](_0x1f2c3b['visibleView'])&&_0x1f2c3b['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 _0x23e2eb('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x388d16 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x388d16);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x42d17c){for(const _0x350295 of this['_selectedAnnotations'])_0x42d17c['includes'](_0x350295)||this['_manuallyClosed']['delete'](_0x350295);for(const _0x237b6c of this['annotations'])_0x42d17c['includes'](_0x237b6c)||this['_removeAnnotationFromBalloon'](_0x237b6c);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x2e37ed of _0x42d17c)this['_addAnnotationToBalloon'](_0x2e37ed);}this['_selectedAnnotations']=_0x42d17c;}['_addAnnotationToBalloon'](_0x1fa1b4,_0x86bedf=!0x1){this['_manuallyClosed']['has'](_0x1fa1b4)||(this['_addedAnnotations']['has'](_0x1fa1b4)||this['_balloon']['hasView'](_0x1fa1b4['view'])||(this['_addedAnnotations']['add'](_0x1fa1b4),this['_balloon']['add']({'stackId':_0x1fa1b4['view']['id'],'view':_0x1fa1b4['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x1fa1b4)}})),_0x86bedf&&this['_balloon']['showStack'](_0x1fa1b4['view']['id']));}['_getBalloonTargetForAnnotation'](_0x29d7eb){const _0x2ebe44=_0x29d7eb['target'],_0x5361a3=this['editor']['editing']['view'],_0x3ccd3c=_0x5361a3['document']['selection']['getFirstRange'](),_0x187deb=_0x5361a3['domConverter']['viewRangeToDom'](_0x3ccd3c);if(_0x187deb['collapse'](!0x0),_0x2ebe44){if(_0x2ebe44 instanceof _0x3abe6c)return _0x2ebe44;let _0x5b5bc4=[];for(const _0x1df199 of _0x2ebe44)_0x5b5bc4['push'](...F(_0x1df199['getClientRects']()));_0x5b5bc4=function(_0x10a19d){const _0x3c5811=[];let _0x1b2ec4=_0x10a19d[0x0];for(let _0x21058c=0x1;_0x21058c<_0x10a19d['length'];_0x21058c++)P(_0x1b2ec4,_0x10a19d[_0x21058c])?_0x1b2ec4['width']+=_0x10a19d[_0x21058c]['width']:(_0x3c5811['push'](_0x1b2ec4),_0x1b2ec4=_0x10a19d[_0x21058c]);return _0x3c5811['push'](_0x1b2ec4),_0x3c5811;}(_0x5b5bc4);const _0x1f88f=_0x187deb['getBoundingClientRect']();return _0x5b5bc4['find'](_0x29ed5c=>_0x29ed5c['top']<=_0x1f88f['top']&&_0x29ed5c['bottom']>=_0x1f88f['bottom']&&_0x29ed5c['left']<=_0x1f88f['left']&&_0x29ed5c['right']>=_0x1f88f['right'])||_0x5b5bc4[0x0];}return _0x29d7eb['targetRect']||_0x187deb;}['_removeAnnotationFromBalloon'](_0xb92769){this['_addedAnnotations']['has'](_0xb92769)&&this['_balloon']['hasView'](_0xb92769['view'])&&(this['_addedAnnotations']['delete'](_0xb92769),this['_balloon']['remove'](_0xb92769['view']));}['_closeAnnotation'](_0xac6cbf){this['_manuallyClosed']['add'](_0xac6cbf),this['_removeAnnotationFromBalloon'](_0xac6cbf);}}function F(_0x1a29bd){return Array['from'](_0x1a29bd)['map'](DOMRect['fromRect']);}function P(_0x395ead,_0x6c223){return _0x395ead['top']===_0x6c223['top']&&_0x395ead['bottom']===_0x6c223['bottom']&&_0x395ead['right']===_0x6c223['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x4b7ae4,_0x3105ee){super(_0x4b7ae4),this['set']('isEmpty',!_0x3105ee['length']),this['focusTracker']=new _0x153b35(),this['_annotationViews']=_0x3105ee,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x48fa6b({'focusables':_0x3105ee,'focusTracker':this['focusTracker']}),this['listenTo'](_0x3105ee,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x3105ee,'remove',(_0x19c0f4,_0x529b22)=>{_0x529b22['isActive']&&this['focus'](),_0x3105ee['length']||(this['isEmpty']=!0x0);});const _0x6606ba=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x4b7ae4,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x3105ee},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x6606ba['if']('isEmpty','ck-hidden',_0x4d3a5d=>!_0x4d3a5d)]},'children':[{'text':N(_0x4b7ae4,'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 _0x24a8dd of this['_annotationViews'])this['focusTracker']['add'](_0x24a8dd['element']);this['_annotationViews']['on']('change',(_0x25a18e,{added:_0x1870a6,removed:_0x1f41da})=>{for(const _0x311bdf of _0x1870a6)this['focusTracker']['add'](_0x311bdf['element']);for(const _0x5dad02 of _0x1f41da)this['focusTracker']['remove'](_0x5dad02['element']);});}}class p extends _0x1acf46{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x75d3bf){super(_0x75d3bf),this['archivedThreads']=new _0x4290a9();}['init'](){const _0x1e3181=this['context'],_0x5a588b=_0x1e3181['plugins']['get'](o),_0x54e2ce=_0x1e3181['plugins']['get'](y);this['listenTo'](_0x5a588b,'addCommentThread',(_0x9d233b,{threadId:_0x30664f})=>{const _0x33e0fd=_0x5a588b['getCommentThread'](_0x30664f);_0x33e0fd['archivedAt']&&this['archivedThreads']['add'](_0x33e0fd,this['_calculatePosition'](_0x33e0fd['archivedAt'])),this['listenTo'](_0x33e0fd,'change:archivedAt',(_0x37189c,_0x1ffa0b,_0x5cb0ab)=>{_0x5cb0ab?this['archivedThreads']['has'](_0x33e0fd)||this['archivedThreads']['add'](_0x33e0fd,this['_calculatePosition'](_0x33e0fd['archivedAt'])):this['archivedThreads']['has'](_0x33e0fd)&&this['archivedThreads']['remove'](_0x33e0fd);});}),this['listenTo'](_0x5a588b,'removeCommentThread',(_0x5800a9,{threadId:_0x262aa0})=>{const _0x13728c=_0x5a588b['getCommentThread'](_0x262aa0);this['stopListening'](_0x13728c),this['archivedThreads']['has'](_0x13728c)&&this['archivedThreads']['remove'](_0x13728c);},{'priority':'highest'}),this['listenTo'](_0x54e2ce['collection'],'focus',(_0x4db493,_0x5a2735)=>{_0x5a2735['isVisible']||(_0x5a2735['isActive']=!0x0,_0x54e2ce['activate'](_0x5a2735));});}['_calculatePosition'](_0x3f4a43){const _0xbd092a=[...this['archivedThreads']]['findIndex'](_0x411dee=>_0x411dee['archivedAt']<_0x3f4a43);return _0xbd092a>-0x1?_0xbd092a:this['archivedThreads']['length'];}}class a extends _0x17f83a{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x2e325b];}constructor(_0x24f57a){super(_0x24f57a),this['annotationViews']=new _0x522e96(),this['_pendingThreads']=[];}['init'](){const _0x237149=this['editor'],_0x5e6224=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x237149['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x160831,!0x0)),_0x237149['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x507e4e=this['_createCommentsArchiveButton'](_0x210136);return _0x507e4e['set']({'role':'menuitemcheckbox'}),_0x507e4e;});const _0xb4b840=_0x237149['plugins']['get'](p),_0x108cb3=_0x237149['plugins']['get']('Annotations'),_0x1d0d87=_0x237149['plugins']['get']('CommentsRepository');_0xb4b840['archivedThreads']['forEach'](_0x17d61b=>{this['_handleNewThread'](_0x17d61b);}),this['listenTo'](_0xb4b840['archivedThreads'],'add',(_0x2abd76,_0x229902)=>{this['_handleNewThread'](_0x229902);}),this['listenTo'](_0x108cb3['collection'],'add',(_0x2f4ef7,_0x135228)=>{const _0x2cd266=this['_pendingThreads']['find'](_0x439a9b=>{const _0x5251be=_0x1d0d87['_threadToController']['get'](_0x439a9b);return _0x5251be&&_0x135228['innerView']===_0x5251be['view'];});if(_0x2cd266){const _0x23769e=this['_calculatePosition'](_0x2cd266['archivedAt']);this['_addAnnotationToArchive'](_0x135228,_0x23769e),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2cd266),0x1);}}),this['listenTo'](_0xb4b840['archivedThreads'],'remove',(_0x26ba3f,_0x3d4c77)=>{const _0x35abc1=_0x237149['config']['get']('collaboration.channelId');if(!_0x35abc1||_0x3d4c77['channelId']===_0x35abc1){if(this['_pendingThreads']['includes'](_0x3d4c77))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3d4c77),0x1);else{const _0x3d834a=_0x1d0d87['_threadToController']['get'](_0x3d4c77),_0xa68171=_0x108cb3['getByInnerView'](_0x3d834a['view']);this['annotationViews']['remove'](_0xa68171['view']),this['stopListening'](_0xa68171),this['stopListening'](_0xa68171['focusableElements']);}}}),this['listenTo'](_0x108cb3['collection'],'add',(_0x4aeff2,_0x5801f9)=>{this['listenTo'](_0x5801f9,'escape',_0x5e6224);}),this['listenTo'](_0x108cb3['collection'],'remove',(_0x17d310,_0x1e0247)=>{this['stopListening'](_0x1e0247,'escape',_0x5e6224);});}['_addAnnotationToArchive'](_0x39629e,_0x41796f){this['listenTo'](_0x39629e,'set:isVisible',_0x1dae1c=>{_0x1dae1c['return']=!0x1,_0x1dae1c['stop']();}),this['annotationViews']['add'](_0x39629e['view'],_0x41796f);}['_handleNewThread'](_0x3c7447){const _0x5d303e=this['editor']['plugins']['get']('CommentsRepository'),_0x247da5=this['editor']['plugins']['get']('Annotations'),_0x6bc3b8=this['editor']['config']['get']('collaboration.channelId');if(!_0x6bc3b8||_0x3c7447['channelId']===_0x6bc3b8){const _0x35626f=_0x5d303e['_threadToController']['get'](_0x3c7447);if(!_0x35626f)return void this['_pendingThreads']['push'](_0x3c7447);const _0x57047a=this['_calculatePosition'](_0x3c7447['archivedAt']),_0x481b5e=_0x247da5['getByInnerView'](_0x35626f['view']);_0x481b5e['isVisible']&&_0x247da5['_visibleAnnotations']['remove'](_0x481b5e),this['_addAnnotationToArchive'](_0x481b5e,_0x57047a);}}['_calculatePosition'](_0x3f5207){const _0x34c838=this['editor']['config']['get']('collaboration.channelId'),_0x46b27d=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x494ecd=>_0x494ecd['channelId']===_0x34c838)['findIndex'](_0x14e585=>_0x14e585['archivedAt']<_0x3f5207);return _0x46b27d<0x0||_0x46b27d>this['annotationViews']['length']?this['annotationViews']['length']:_0x46b27d-0x1;}['_toggleDialog'](){const _0x2a74d6=this['editor'],_0x26b89c=_0x2a74d6['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x2a74d6['locale'],this['annotationViews'])),'commentsArchive'===_0x26b89c['id']?_0x26b89c['hide']():_0x26b89c['show']({'id':'commentsArchive','title':N(_0x2a74d6['locale'],'COMMENTS_ARCHIVE'),'icon':_0x4bca29,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x71ad12['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x59e0ba,_0x56ca18=!0x1){const _0x302cb3=this['editor']['locale'],_0x39ab6c=this['editor']['plugins']['get']('Dialog'),_0x5b6756=new _0x59e0ba(_0x302cb3);return _0x5b6756['bind']('isEnabled')['to'](this,'isEnabled'),_0x5b6756['bind']('isOn')['to'](_0x39ab6c,'id',_0x505abf=>'commentsArchive'===_0x505abf),_0x5b6756['set']({'label':N(_0x302cb3,'COMMENTS_ARCHIVE'),'icon':_0x4bca29,'isToggleable':!0x0}),_0x56ca18&&(_0x5b6756['tooltip']=!0x0),this['listenTo'](_0x5b6756,'execute',()=>this['_toggleDialog']()),_0x5b6756;}['_hideDialogOnAnnotationEscape']=_0x5a070a=>{const _0x9b3816=_0x5a070a['source'];if(!this['annotationViews']['has'](_0x9b3816['view']))return;const _0x4d9cf9=this['editor']['plugins']['get']('Dialog');_0x4d9cf9['isOpen']&&'commentsArchive'===_0x4d9cf9['id']&&(_0x4d9cf9['hide'](),_0x5a070a['stop']());};}class Comments extends _0x17f83a{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,Comment,CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,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 _0x5a05ad,ContextPlugin as _0x551749,PendingActions as lt,Command as _0x2c9dbf,Plugin as _0x13c17d,Context as _0x3d5da1}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x58b595,uid as _0xc202d9,KeystrokeHandler as jt,FocusTracker as _0x36aed6,diff as _0x3bddf9,Collection as _0x30e061,Rect as _0x489997,CKEditorError as _0x1dd71b,first as _0x467300,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x6e7736,keyCodes as _0x4e8a51}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x34978e,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x2833b9,trimHtml as ts,LateFocusDropdownButtonView as _0x585b6d,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x5a6c8d}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,cloneDeep as wt,set as yt,unset as Ct,isEqual as At,debounce as _0x2960b5}from'es-toolkit/compat';import{IconUndo as _0x4b2220,IconCheck as _0x58d468,IconPencil as _0x1c4d57,IconRemoveComment as _0x441dc4,IconThreeVerticalDots as _0x5100b6,IconAddComment as _0x5131b4,IconCommentsArchive as _0x70ce54}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x4e1cbf,ButtonView as _0x5f0a6a,ViewCollection as _0x1da055,createDropdown as _0x277415,ListView as _0x781ed9,focusChildOnDropdownOpen as _0x345e03,ListItemView as _0xd82c22,MenuBarMenuListItemButtonView as _0x1e0edf,BodyCollection as _0x3e5a37,BalloonPanelView as _0x545175,ContextualBalloon as _0x43dc23,Dialog as _0x3283df,DialogViewPosition as _0x15776d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x5716e8}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 _0x2dd6be}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x53f478}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x58b595(){['model'];['view'];constructor(_0x2049eb,_0x5512f3){super(),this['model']=_0x2049eb,this['model']['_isAttached']=!0x0,this['view']=_0x5512f3,this['listenTo'](_0x5512f3,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x5512f3,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x5512f3,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x5512f3,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x5512f3,'addComment',(_0x1d4f6f,_0x25e0da)=>this['addComment'](_0x25e0da)),this['listenTo'](_0x5512f3,'updateComment',(_0x427de9,_0x50db71,_0x159b85)=>this['updateComment'](_0x50db71,_0x159b85)),this['listenTo'](_0x5512f3,'removeComment',(_0xced2d2,_0x48d32d)=>this['removeComment'](_0x48d32d));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x4076a1){this['model']['addComment']({'content':_0x4076a1,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x5a36b9,_0x5c30ea){this['model']['getComment'](_0x5a36b9)['update']({'content':_0x5c30ea});}['removeComment'](_0x2c14ef){this['model']['getComment'](_0x2c14ef)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x2b4398,_0x2cb285,_0x46d176){const t=_0x2b4398['t'];switch(_0x2cb285){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'},_0x46d176);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'},_0x46d176);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'},_0x46d176);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'},_0x46d176);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x46d176);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'},_0x46d176);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'},_0x46d176);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'},_0x46d176);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(_0x474c67,_0x585246){super(_0x474c67);const _0x52d158=_0xc202d9();this['main']=this['createCollection'](),this['editable']=new Vt(_0x474c67,_0x585246,void 0x0,{'label':()=>N(_0x474c67,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x474c67['uiLanguageDirection'],'lang':_0x474c67['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x52d158},'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(_0x43d8af){super(_0x43d8af),this['view']=new Rt(_0x43d8af['locale'],_0x43d8af['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x464129=this['editor']['editing']['view'],_0x2c5d94=this['view']['editable'],_0x39b2b6=_0x464129['document']['getRoot']();_0x2c5d94['name']=_0x39b2b6['rootName'],this['view']['render']();const _0x30f1a0=_0x2c5d94['element'];this['setEditableElement'](_0x2c5d94['name'],_0x30f1a0),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x464129['attachDomRoot'](_0x30f1a0),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x58b595(_0x5a05ad){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x1799a8={}){function _0x26e882(_0x49e9b5){return _0x49e9b5['map'](_0x7038d2=>String['fromCharCode'](_0x7038d2))['join']('');}(_0x1799a8=Object['assign']({},_0x1799a8))['plugins']||(_0x1799a8['plugins']=hs['defaultPlugins']),super(_0x1799a8),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[_0x26e882([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26e882([0x76,0x69,0x65,0x77])][_0x26e882([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26e882([0x61,0x75,0x74,0x6f]),this[_0x26e882([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26e882([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26e882([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26e882([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26e882([0x6f,0x6b])});}['create'](){const _0xdb2806=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xdb2806))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x38561b=>{const _0x253c80=this['model']['document']['getRoot'](),_0x251c0f=_0x253c80&&_0x253c80['getChild'](_0x253c80['childCount']-0x1);_0x38561b['setSelection'](_0x251c0f,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x43d660=this['editing']['view'],_0x45cbee=_0x43d660['document']['getRoot'](),_0x1a5457=_0x45cbee['getChild'](0x0);_0x45cbee['childCount']>0x1||!_0x1a5457||'p'!=_0x1a5457['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x43d660,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x1a5457['placeholder']=this['placeholder']),Ft({'view':_0x43d660,'element':_0x1a5457,'keepOnFocus':!0x0}),this['placeholderElement']=_0x1a5457);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x29bd05,_0x486613={}){super(_0x29bd05),this['editor']=null,this['_editorConfig']=_0x486613,this['set']('value',_0x486613['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x29bd05,'Reply...')),this['set']('submitLabel',N(_0x29bd05,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x36aed6(),this['focusCycler']=new _0x4e1cbf({'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',(_0x1f2020,_0x362494)=>{this['cancelButtonView']['fire']('execute'),_0x362494();}),this['keystrokes']['set']('Ctrl+Enter',(_0x101716,_0x2757f9)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x2757f9());}),this['on']('submit',(_0x532b52,_0x279cc8)=>{_0x279cc8['length']>0xfde8?(alert(N(_0x29bd05,'TOO_LONG_COMMENT_ALERT',[_0x279cc8['length'],0xfde8])),_0x532b52['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 _0x43f866=this['editor'];this['element']['insertBefore'](_0x43f866['ui']['element'],this['element']['firstChild']),_0x43f866['model']['document']['on']('change',()=>this['value']=_0x43f866['getData']()),_0x43f866['bind']('placeholder')['to'](this),this['focusables']['add'](_0x43f866['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x524e4f){-0x1===_0x524e4f?(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:_0x574614}=this,_0x1cbfe3=new _0x5f0a6a(_0x574614);return _0x1cbfe3['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x1cbfe3['withText']=!0x0,_0x1cbfe3['bind']('label')['to'](this,'submitLabel'),_0x1cbfe3['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x1cbfe3['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x362326,_0x3fdbdb)=>!_0x3fdbdb&&!!_0x362326['trim']()),_0x1cbfe3;}['_createCancelButton'](){const {locale:_0x462ac4}=this,_0x351151=new _0x5f0a6a(_0x462ac4);return _0x351151['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x351151['label']=N(_0x462ac4,'Cancel'),_0x351151['withText']=!0x0,_0x351151['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x351151;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x398291=>{this['focusTracker']['add'](_0x398291['element']);}),this['focusables']['on']('change',(_0x564aa2,_0x17644e)=>{for(const _0x7e0fe4 of Array['from'](_0x17644e['added'])['reverse']())this['focusTracker']['add'](_0x7e0fe4['element']);});}}class ie extends kt{constructor(_0x14a6fd,_0x52b16b,_0x15a4d2){super(_0x14a6fd),this['commentInputView']=new es(_0x14a6fd,_0x15a4d2),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x513c1d,_0x261a36)=>_0x513c1d||!!_0x261a36),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 _0x34978e(_0x14a6fd,_0x52b16b),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'](_0x3480f9){this['commentInputView']['focus'](_0x3480f9);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xb3933b,_0x5a92bf)=>{const {submitButtonView:_0x56c17d,cancelButtonView:_0x499623,editor:_0xd7b14}=this['commentInputView'];[_0x56c17d['element'],_0x499623['element'],_0xd7b14?_0xd7b14['editing']['view']['getDomRoot']():null]['filter'](_0x27531b=>_0x27531b)['some'](_0x230347=>_0x230347['contains'](_0x5a92bf['target']))||(this['focus'](),_0x5a92bf['preventDefault']());});}}class rs extends kt{constructor(_0x231ff4){super(_0x231ff4);const _0x3639af=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x3639af['to']('count',_0x446bca=>N(_0x231ff4,'NUMBER_OF_COMMENTS',_0x446bca))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0xa26c2b,_0x5e2d7e,_0x152936){super(_0xa26c2b);const _0xeddad8=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x5e2d7e['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x5e2d7e,this['_config']=_0x152936,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x36aed6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4e1cbf({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4babe3=>this['commentViews']['map'](_0x129ada=>_0x129ada['element'])['includes'](_0x4babe3['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0xa26c2b),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x556780=>_0x556780-this['_config']['maxCommentsWhenCollapsed']);for(const _0xe5b89e of _0x5e2d7e['comments'])this['_handleNewCommentModel'](_0xe5b89e);this['_handleInfoComment'](),this['listenTo'](_0x5e2d7e['comments'],'add',(_0x17b262,_0x225df6)=>{const _0x1efe9e=this['_calculatePosition'](_0x225df6);this['length']++,this['_handleNewCommentModel'](_0x225df6,_0x1efe9e),this['refreshVisibleViews']();}),this['listenTo'](_0x5e2d7e['comments'],'remove',(_0x5e0517,_0x159a3f)=>{this['length']--,this['_handleRemoveCommentModel'](_0x159a3f),this['refreshVisibleViews']();}),this['listenTo'](_0x5e2d7e,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x5e2d7e,'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',_0xeddad8['if']('length','ck-hidden',_0x512752=>!_0x512752)],'aria-label':N(_0xa26c2b,'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'](_0x153f3b){-0x1===_0x153f3b?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x1c411a of this['commentViews'])_0x1c411a['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3a14cc,_0xb576aa){const _0x297753=new this['_config']['CommentView'](this['locale'],_0x3a14cc,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x297753['viewUid']=_0x3a14cc['id'],_0x297753['delegate']('removeComment')['to'](this),_0x297753['delegate']('updateComment')['to'](this),_0x297753['delegate']('resolveCommentThread')['to'](this),_0x297753['delegate']('editorReady')['to'](this),_0x297753['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x297753,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x297753,_0xb576aa);}['_calculatePosition'](_0x164cb7){const _0x1d451d=this['_model']['_findOptimalIndex'](_0x164cb7);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x164cb7['authoredAt']?_0x1d451d-0x1:_0x1d451d:_0x1d451d-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x100b85={'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'],_0x100b85,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x100b85));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5e9d4c){const _0x19be0c=this['commentViews']['remove'](_0x5e9d4c['id']);this['stopListening'](_0x19be0c),_0x19be0c['isEditMode']&&this['_updateHasDirtyComment'](),_0x19be0c['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0xc770af=>_0xc770af['isEditMode']);}['_rearrangeCollapse'](){const _0x3ffc4e=function(_0x435f0d){const _0x451de4=new _0x30e061();for(const _0x649bcf of _0x435f0d)_0x451de4['add'](_0x649bcf);return _0x451de4;}(this['commentViews']),_0x36cd20=this['_collapsedCommentsView']['count'];for(let _0x3042e6=0x1;_0x3042e6<=_0x36cd20;_0x3042e6++)_0x3ffc4e['remove'](0x1);for(const _0x248650 of _0x3ffc4e)_0x248650['collapse']();_0x36cd20>0x0&&_0x3ffc4e['add'](this['_collapsedCommentsView'],0x1),ns(_0x3bddf9(Array['from'](this['visibleViews']),Array['from'](_0x3ffc4e)),this['visibleViews'],_0x3ffc4e);}['_rearrangeExpand'](){ns(_0x3bddf9(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x451f48 of this['visibleViews'])_0x451f48['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4c2030=>{this['focusTracker']['add'](_0x4c2030['element']),this['keystrokes']['listenTo'](_0x4c2030['element']);}),this['commentViews']['on']('change',(_0x5eeae0,_0x38f0d3)=>{for(const _0x2b9f3e of _0x38f0d3['removed'])this['focusTracker']['remove'](_0x2b9f3e['element']),this['keystrokes']['stopListening'](_0x2b9f3e['element']);for(const _0x183558 of Array['from'](_0x38f0d3['added'])['reverse']())this['focusTracker']['add'](_0x183558['element']),this['keystrokes']['listenTo'](_0x183558['element']);});}}function ns(_0x3c0d21,_0x4e4c2b,_0x44f4a6){let _0x414dd0=0x0;for(const _0x3785d5 of _0x3c0d21)switch(_0x3785d5){case'insert':_0x4e4c2b['add'](_0x44f4a6['get'](_0x414dd0),_0x414dd0),_0x414dd0++;break;case'delete':_0x4e4c2b['remove'](_0x414dd0);break;case'equal':_0x414dd0++;}}class oe extends kt{constructor(_0x2a536f){super(_0x2a536f);const _0x323410=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x323410['to']('contextValue',_0x1938ec=>N(_0x2a536f,'THREAD_CONTEXT_LABEL',_0x1938ec)),'tabindex':-0x1},'children':[{'text':_0x323410['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1e3780,_0x44174f){super(_0x1e3780);const _0x1b8f55=this['bindTemplate'];this['_model']=_0x44174f,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x36aed6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4e1cbf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x31c1ca=>!!_0x31c1ca),this['bind']('contextValue')['to'](this['_model'],'context',_0xe2b3ee=>_0xe2b3ee&&_0xe2b3ee['value']?this['_trimContextValue'](_0xe2b3ee['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',_0x1b8f55['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 _0x338859=new _0x5f0a6a(this['locale']);return _0x338859['label']=N(this['locale'],'Reopen'),_0x338859['tooltip']=N(this['locale'],'Reopen'),_0x338859['icon']=_0x4b2220,_0x338859['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x27083f=>!_0x27083f),_0x338859['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x351495,_0x122687)=>_0x351495&&_0x122687),_0x338859['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x338859;}['_trimContextValue'](_0x509a0){if(_0x509a0['length']<0x96)return _0x509a0;const _0x4bc302=_0x509a0['lastIndexOf']('\x20',0x93);return _0x509a0['substring'](0x0,_0x4bc302>-0x1?_0x4bc302:0x93)+'...';}['_attachContextActions'](){const _0x438fdf=this['element']['querySelector']('.ck-context'),_0x2bf395=_0x438fdf['querySelector']('.ck-context__value');this['listenTo'](_0x438fdf,'mouseenter',()=>{_0x2bf395['offsetWidth']<_0x2bf395['scrollWidth']&&_0x438fdf['classList']['add']('overlay');}),this['listenTo'](_0x438fdf,'mouseleave',()=>{_0x438fdf['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x52cddb of this['focusables'])this['focusTracker']['add'](_0x52cddb['element']),this['keystrokes']['listenTo'](_0x52cddb['element']);}['_createContextView'](){const _0x4519de=new oe(this['locale']);return _0x4519de['bind']('contextValue')['to'](this),_0x4519de;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2f285a,_0x111083,_0x13a7a0,_0x540a74){super(_0x2f285a),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x111083,this['_localUser']=_0x13a7a0,this['_config']=_0x540a74,this['commentThreadHeaderView']=new Xt(_0x2f285a,_0x111083),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x2f285a,N(_0x2f285a,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2f285a,_0x111083,Object['assign']({'CommentView':this['_config']['CommentView']},_0x540a74)),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',(_0x916dbc,_0x37e548)=>_0x916dbc||!!_0x37e548),this['bind']('isUnlinked')['to'](_0x111083,'unlinkedAt',_0x4a1afb=>!!_0x4a1afb),this['bind']('ariaLabel')['to'](this,'length',_0x44ecaf=>{const _0x2df455=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x44ecaf,_0x2df455]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x36aed6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4e1cbf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x80d546=>_0x80d546['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 _0x22b800=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4ab382=_0x22b800['commentInputView'];return _0x22b800['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x4ab382,'value',(_0x3618b2,_0x237d44,_0x217aad,_0x23965d,_0x25ce65)=>!!_0x25ce65||!!_0x23965d&&_0x217aad&&!_0x237d44||_0x3618b2&&_0x217aad&&!_0x237d44),_0x4ab382['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x407320,_0x17c2ca,_0x32a237)=>{let _0x2e6063;return _0x2e6063=_0x32a237&&_0x17c2ca?'Reply\x20to\x20reopen\x20discussion...':_0x407320?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x2e6063);}),_0x4ab382['bind']('submitLabel')['to'](this,'length',_0xe4b7d0=>N(this['locale'],_0xe4b7d0?'Reply':'Comment')),_0x4ab382['on']('submit',(_0x330b87,_0x778814)=>{this['fire']('addComment',_0x778814),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x4ab382['on']('cancel',()=>{this['focus']();}),_0x4ab382['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4ab382['on']('cancel',_0x15aaa2=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x15aaa2['stop']());}),this['on']('change:isActive',(_0xc820e,_0x4e2165,_0xfb4803)=>{_0xfb4803||this['length']||_0x4ab382['value']||this['fire']('removeCommentThread');}),_0x22b800;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x44bf49,_0x594096,_0x2b5ae4,_0x563e8b){super(_0x44bf49,_0x594096,_0x2b5ae4,_0x563e8b),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x44bf49,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x10342b,_0x34a900,_0x14cf49)=>{_0x14cf49||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x559a69,_0x4937b8,_0x4c9e4e)=>{_0x4c9e4e&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x15189a=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x15189a['if']('isActive','ck-thread--active'),_0x15189a['if']('isUnlinked','ck-thread--unlinked'),_0x15189a['to']('actionIndicator',_0x34fb37=>_0x34fb37?'ck-thread--'+_0x34fb37:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x15189a['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 _0x2eadbd of this['commentsListView']['commentViews'])_0x2eadbd['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3ffe7c}=this,_0xfe338a=this['commentsListView']['commentViews']['get'](0x0);_0xfe338a===this['_boundFirstCommentView']||_0xfe338a['isSystemComment']||(this['_boundFirstCommentView']=_0xfe338a,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0xfe338a,'actionIndicator',_0x48e4c0=>'remove'===_0x48e4c0?'remove':null),_0xfe338a['placeholder']=N(_0x3ffe7c,'Write\x20a\x20comment...'),_0xfe338a['removeButton']['on']('execute',_0xf5a445=>{_0xf5a445['stop'](),this['showConfirm'](N(_0x3ffe7c,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0xfe338a['focus']();}),_0xfe338a['actionBar']['add'](this['resolveButton'],0x0),_0xfe338a['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x59e9f6=new _0x2833b9(this['locale']);return _0x59e9f6['label']=N(this['locale'],'Resolve'),_0x59e9f6['tooltip']=N(this['locale'],'Resolve'),_0x59e9f6['icon']=_0x58d468,_0x59e9f6['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x59e9f6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2aaed4=>!_0x2aaed4),_0x59e9f6['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x212a7e,_0x5b1906)=>_0x212a7e&&!_0x5b1906),_0x59e9f6['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x59e9f6;}['_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(_0x391a35){super(_0x391a35),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x3bdb5b,_0x133fa6,_0x31d0dd)=>{this['element']['innerHTML']=_0x31d0dd;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1b74d1,_0x2212d1,_0xef4743){super(_0x1b74d1),this['_model']=_0x2212d1,this['_config']=_0xef4743,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x2212d1,'content',_0x2212d1,'authoredAt',(_0x1c1c39,_0x32e32a)=>N(_0x1b74d1,'COMMENT_ARIA_LABEL',[_0x2212d1['author']['name'],_0xef4743['formatDateTime'](_0x32e32a),new DOMParser()['parseFromString'](_0x1c1c39,'text/html')['body']['textContent'],_0x2212d1['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x1b74d1,N(_0x1b74d1,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x1da055(),this['focusTracker']=new _0x36aed6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4e1cbf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4a4c73=>_0x4a4c73['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 _0x2360a4=new is(this['locale']);return _0x2360a4['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x224c1b,_0x3ba18f)=>_0x3ba18f?ts(_0x224c1b,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x224c1b),_0x2360a4;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x779539=new es(this['locale'],this['_config']['editorConfig']);return _0x779539['value']=this['_model']['content'],_0x779539['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x779539['submitLabel']=N(this['locale'],'Save'),_0x779539['on']('submit',(_0x5311ac,_0x3c9c40)=>{this['fire']('updateComment',this['_model']['id'],_0x3c9c40),this['switchToDisplayMode'](),this['focus']();}),_0x779539['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x779539['once']('editorReady',()=>{_0x779539['focus']();}),_0x779539['createEditor'](),_0x779539['delegate']('editorReady')['to'](this),_0x779539['delegate']('editorDestroyed')['to'](this),_0x779539;}['_setupKeyboardNavigation'](){const _0x41a753=this['element'];this['keystrokes']['listenTo'](_0x41a753);for(const _0x49720c of this['focusables'])this['focusTracker']['add'](_0x49720c['element']),this['keystrokes']['listenTo'](_0x49720c['element']);this['focusables']['on']('change',(_0x1e4243,_0xf40c5e)=>{for(const _0x1491e0 of _0xf40c5e['removed'])this['focusTracker']['remove'](_0x1491e0['element']),this['keystrokes']['stopListening'](_0x1491e0['element']);for(const _0x46e065 of _0xf40c5e['added'])this['focusTracker']['add'](_0x46e065['element']),this['keystrokes']['listenTo'](_0x46e065['element']);}),this['keystrokes']['set']('enter',(_0x3c8402,_0x58e313)=>{_0x41a753===_0x3c8402['target']&&(this['focusCycler']['focusFirst'](),_0x58e313());}),this['keystrokes']['set']('esc',(_0x37db5d,_0x1f190d)=>{_0x41a753!==_0x37db5d['target']&&(this['focus'](),_0x1f190d());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x1ea58e,_0x554601,_0x4b9ede){super(_0x1ea58e,_0x554601,_0x4b9ede),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x1ea58e,'Reply...')),this['bind']('authoredAt')['to'](_0x554601),this['bind']('resolvedAt')['to'](_0x554601),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 _0x34978e(_0x1ea58e,_0x554601['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x554601,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5f07c5=this['bindTemplate'],_0x451bbf=[{'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':_0x5f07c5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5f07c5['to']('authoredAt',_0x4df9b0=>this['_config']['formatDateTime'](_0x4df9b0))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5f07c5['if']('isEditMode','ck-comment__actions--hidden'),_0x5f07c5['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']&&_0x451bbf['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x5f07c5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5f07c5['if']('isEditMode','ck-comment--edit'),_0x5f07c5['if']('isSystemComment','ck-comment--info'),_0x5f07c5['to']('actionIndicator',_0x13abcc=>_0x13abcc?'ck-comment--'+_0x13abcc:'')],'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':_0x451bbf}]}]};}['_createEditButton'](){const _0x1aac94=new _0x5f0a6a(this['locale']);return _0x1aac94['label']=N(this['locale'],'Edit'),_0x1aac94['icon']=_0x1c4d57,_0x1aac94['withText']=!0x0,_0x1aac94['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1aac94['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4ed278=>!_0x4ed278),_0x1aac94['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1aac94['on']('execute',()=>this['switchToEditMode']()),_0x1aac94;}['_createRemoveButton'](){const _0x20ffd9=new _0x5f0a6a(this['locale']);return _0x20ffd9['label']=N(this['locale'],'Remove'),_0x20ffd9['icon']=_0x441dc4,_0x20ffd9['withText']=!0x0,_0x20ffd9['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x20ffd9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x13b5fc=>!_0x13b5fc),_0x20ffd9['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x20ffd9['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x20ffd9;}['_createDropdown'](){const _0x2dc933=_0x277415(this['locale'],_0x585b6d),_0x16e3ab=_0x2dc933['panelView']['children'],_0x3706be=new _0x781ed9(this['locale']),_0x1adfeb=_0x2dc933['bindTemplate'];_0x345e03(_0x2dc933,()=>this['items']['find'](_0x195b10=>_0x195b10['isVisible'])),_0x2dc933['extendTemplate']({'attributes':{'class':[_0x1adfeb['if']('isVisible','ck-hidden',_0x5a4e17=>!_0x5a4e17)]}});const _0x51525a=(_0x114cb7,_0xcd93be=-0x1)=>{const _0x468abe=new _0xd82c22(this['locale']);_0x468abe['children']['add'](_0x114cb7);const _0x1f5ab5=_0xcd93be>-0x1?_0xcd93be:_0x3706be['items']['length'];_0x3706be['items']['add'](_0x468abe,_0x1f5ab5);const _0x46784e=Array['from'](this['items']);_0x2dc933['unbind']('isEnabled','isVisible'),_0x2dc933['bind']('isEnabled')['toMany'](_0x46784e,'isEnabled',(..._0x41b133)=>_0x41b133['some'](_0x4aef9c=>_0x4aef9c)),_0x2dc933['bind']('isVisible')['toMany'](_0x46784e,'isVisible',(..._0x92d96c)=>_0x92d96c['some'](_0xb295c2=>_0xb295c2));};_0x2dc933['panelPosition']='sw',_0x2dc933['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x5100b6});for(const _0xfd8649 of this['items'])_0x51525a(_0xfd8649);return _0x16e3ab['add'](_0x3706be),_0x2dc933['listenTo'](this['items'],'add',(_0x44fd29,_0x448ce5,_0x143fd7)=>{_0x51525a(_0x448ce5,_0x143fd7);}),_0x2dc933['listenTo'](this['items'],'remove',(_0x471bc8,_0x45bce2,_0x365efe)=>{_0x3706be['items']['remove'](_0x365efe);}),_0x2dc933;}['_attachActions'](_0x465128,_0x28116d){const _0x586c94=_0x465128&&_0x465128['element'];_0x586c94&&(this['listenTo'](_0x586c94,'mouseenter',()=>this['actionIndicator']=_0x28116d),this['listenTo'](_0x586c94,'focus',()=>this['actionIndicator']=_0x28116d),this['listenTo'](_0x586c94,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x586c94,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xa2d29b=super['_createCommentInputView']();return _0xa2d29b['bind']('placeholder')['to'](this),_0xa2d29b;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x3fa63a){const _0x3d3b44=Dt(_0x3fa63a,0x1e),_0x7ca81c=new MutationObserver(_0x39cf9b=>{for(const _0x3e1d90 of _0x39cf9b)('attributes'==_0x3e1d90['type']&&'class'==_0x3e1d90['attributeName']||'childList'==_0x3e1d90['type']||'characterData'==_0x3e1d90['type'])&&_0x3d3b44();});return{'attach'(_0x41ed86){_0x7ca81c['observe'](_0x41ed86,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x7ca81c['disconnect'](),_0x3d3b44['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x1d3fed,_0x32e8cf){super(_0x1d3fed),this['id']=_0xc202d9(),this['focusTracker']=new _0x36aed6(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x5c7986,_0x35ca6f)=>this['fire']('Esc',_0x35ca6f)),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'](_0x32e8cf),this['mainView']=_0x32e8cf;const _0x394e54=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x394e54['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 _0x239638=this['element']['clientHeight'];_0x239638&&(this['height']=_0x239638);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x58b595(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2cedb4,target:_0x487cfa,type:_0x5581e5,isVisible:_0x5b0cb1=!0x0}){super(),this['view']=_0x2cedb4,this['view']['element']||this['view']['render'](),this['_type']=_0x5581e5,this['_target']=_0x487cfa,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x30e061([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x5f05a3,_0x30cf23)=>{this['view']['focusTracker']['add'](_0x30cf23);}),this['focusableElements']['on']('remove',(_0x3bfa6b,_0x46196b)=>{this['view']['focusTracker']['remove'](_0x46196b);}),this['set']('isVisible',_0x5b0cb1);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x311b44=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x311b44),_0x311b44;}get['targetRect'](){const _0x3421fb=this['target'];if(null===_0x3421fb)return null;if(_0x3421fb instanceof _0x489997)return _0x3421fb;const _0x3b5038=_0x3421fb['filter'](_0x8fdd1d=>function(_0x2c83a4){const _0x4b12ca=_0x2c83a4['offsetParent'];if(_0x4b12ca)return!0x0;const _0x394ae9=_0x2c83a4['getClientRects']()['item'](0x0);return!!_0x394ae9;}(_0x8fdd1d));return 0x0===_0x3b5038['length']?null:new _0x489997(_0x3b5038[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x151391){this['view']['isActive']=_0x151391,this['view']['mainView']['isActive']=_0x151391;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3609da){if(!(null===_0x3609da||_0x3609da instanceof _0x489997||Array['isArray'](_0x3609da)&&_0x3609da['every'](_0x5a3e03=>re(_0x5a3e03))))throw new _0x1dd71b('annotation-invalid-target',null,{'target':_0x3609da});}['_getNormalizedTarget'](){const _0x556db9='function'==typeof this['_target']?this['_target']():this['_target'];return re(_0x556db9)?[_0x556db9]:_0x556db9;}}function re(_0x1f76f3){return null!==_0x1f76f3&&'object'==typeof _0x1f76f3&&'nodeType'in _0x1f76f3&&0x1===_0x1f76f3['nodeType'];}class S extends _0x30e061{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x312c9d=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x36aed6(),this['_focusTracker']['on']('change:isFocused',(_0x11a67a,_0x594bc2,_0x281569)=>{_0x281569||this['fire']('blur');});for(const _0x548378 of _0x312c9d)this['add'](_0x548378);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2bda50){if(this['has'](_0x2bda50))throw new _0x1dd71b('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2bda50['innerView'],_0x2bda50),this['_viewToAnnotation']['set'](_0x2bda50['view'],_0x2bda50);for(const _0x1fe41e of _0x2bda50['focusableElements'])this['_focusTracker']['add'](_0x1fe41e);this['listenTo'](_0x2bda50['focusableElements'],'add',(_0x5690bb,_0x41554c)=>{this['_focusTracker']['add'](_0x41554c);}),this['listenTo'](_0x2bda50['focusableElements'],'remove',(_0x2d2091,_0x2ac9f2)=>{this['_focusTracker']['remove'](_0x2ac9f2);}),this['listenTo'](_0x2bda50['view']['focusTracker'],'change:isFocused',(_0x1be6c9,_0x28d641,_0x74a0)=>{_0x74a0&&this['fire']('focus',_0x2bda50);}),_0x2bda50['updateTargetRect']();const _0x32247c=this['_getOrderInContent'](_0x2bda50['view']['targetRect']);return super['add'](_0x2bda50,_0x32247c);}['remove'](_0x4ea577){if(!this['has'](_0x4ea577))throw new _0x1dd71b('annotationcollection-not-existing-item',null);this['stopListening'](_0x4ea577['view']['focusTracker']),this['stopListening'](_0x4ea577['focusableElements']);for(const _0x1cc24b of _0x4ea577['focusableElements'])this['_focusTracker']['remove'](_0x1cc24b);return this['_viewToAnnotation']['delete'](_0x4ea577['view']),this['_innerViewToAnnotation']['delete'](_0x4ea577['innerView']),super['remove'](_0x4ea577);}['getByInnerView'](_0xaf7932){return this['_innerViewToAnnotation']['get'](_0xaf7932);}['getByView'](_0x559016){return this['_viewToAnnotation']['get'](_0x559016);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2d5f8f of this)_0x2d5f8f['updateTargetRect']();this['_sort']();}['_sort'](){const _0xcec457=Array['from'](this)['sort']((_0x58778d,_0x10368b)=>w(_0x58778d['view']['targetRect'],_0x10368b['view']['targetRect']));for(let _0x4bef4b=_0xcec457['length']-0x1;_0x4bef4b>0x0;_0x4bef4b--){const _0xa4a1d1=_0xcec457[_0x4bef4b];_0x4bef4b!==this['getIndex'](_0xa4a1d1)&&(this['remove'](_0xa4a1d1),this['add'](_0xa4a1d1));}}['_getOrderInContent'](_0x23cda7){let _0x7d903c=0x0;if(!_0x23cda7)return this['length'];for(const _0x5ad563 of this){const _0x3b4f6d=_0x5ad563['view']['targetRect'];if(_0x3b4f6d){if(w(_0x23cda7,_0x3b4f6d)<0x0)return _0x7d903c;_0x7d903c++;}}return _0x7d903c;}}function v({source:_0x19bfd9,target:_0x2fa5f9,filter:_0x94604f}){for(const _0x15eacd of _0x19bfd9)_0x94604f(_0x15eacd)&&_0x2fa5f9['add'](_0x15eacd);_0x2fa5f9['listenTo'](_0x19bfd9,'add',(_0x114403,_0x1243dc)=>{_0x94604f(_0x1243dc)&&_0x2fa5f9['add'](_0x1243dc);}),_0x2fa5f9['listenTo'](_0x19bfd9,'remove',(_0x114d04,_0x225303)=>{_0x2fa5f9['has'](_0x225303)&&_0x2fa5f9['remove'](_0x225303);});}function w(_0x10b380,_0x17672d){if(null===_0x10b380&&null===_0x17672d)return 0x0;if(null===_0x10b380)return-0x1;if(null===_0x17672d)return 0x1;const _0x363e4b=_0x10b380['top']-_0x17672d['top'];return 0x0==_0x363e4b?_0x10b380['left']-_0x17672d['left']:_0x363e4b;}class y extends _0x551749{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x308d93){if(super(_0x308d93),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x308d93 instanceof _0x5a05ad){const _0x3697a6=_0x308d93['locale'];_0x308d93['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x3697a6,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x3697a6,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x3697a6,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x3697a6,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x3697a6,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x3697a6,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x3697a6,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x405433){this['collection']['add'](_0x405433);}['remove'](_0xb9ca3a){this['collection']['remove'](_0xb9ca3a),_0xb9ca3a['destroy']();}['refreshVisibility'](){for(const _0x3623cf of this['collection'])_0x3623cf['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0xf79bb9){return this['collection']['getByInnerView'](_0xf79bb9);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x10662c of this['collection'])_0x10662c['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x369097){this['fire']('_activateAnnotation',_0x369097);}['createAnnotation'](_0x5457b7){return new T(_0x5457b7);}['createAnnotationView'](_0x4e4aa0,_0x1ba69d){return new E(_0x4e4aa0,_0x1ba69d);}['_addActiveAnnotation'](_0x18494e){const _0x51d8d=new Set(this['activeAnnotations']);_0x51d8d['add'](_0x18494e),this['activeAnnotations']=_0x51d8d;}['_removeActiveAnnotation'](_0x13cc70){const _0x3d7c8b=new Set(this['activeAnnotations']);_0x3d7c8b['delete'](_0x13cc70),this['activeAnnotations']=_0x3d7c8b;}['_bindAnnotationsToVisibleAnnotations'](){const _0x550cdc=this['collection'],_0x374f06=this['_visibleAnnotations'];function _0x329f7c(_0x2634bb){const _0x374098=_0x2634bb['source'];_0x374098['isVisible']&&!_0x374f06['has'](_0x374098)?_0x374f06['add'](_0x374098):!_0x374098['isVisible']&&_0x374f06['has'](_0x374098)&&_0x374f06['remove'](_0x374098),_0x374098['view']['focusTracker']['remove'](_0x374098['view']['element']),_0x374098['view']['focusTracker']['add'](_0x374098['view']['element']);}this['listenTo'](_0x550cdc,'add',(_0x5d6513,_0x528b66)=>{_0x528b66['isVisible']&&_0x374f06['add'](_0x528b66),this['listenTo'](_0x528b66,'change:isVisible',_0x329f7c);}),this['listenTo'](_0x550cdc,'remove',(_0x5b9db2,_0x351ef4)=>{_0x374f06['has'](_0x351ef4)&&_0x374f06['remove'](_0x351ef4),this['stopListening'](_0x351ef4,'change:isVisible',_0x329f7c);});}['_setupEnterAnnotationKeystroke'](){const _0x5838a5=_0x161807=>{_0x161807['on']('ready',()=>{_0x161807['keystrokes']['set'](_0x2dd6be,(_0xadb948,_0x3fccc7)=>{const _0x39fe1e=_0x467300(this['activeAnnotations']['values']());_0x39fe1e&&(_0x39fe1e['view']['focus'](),_0x3fccc7());});});};this['context']instanceof _0x5a05ad?_0x5838a5(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1a4f3d,_0x487dac)=>{_0x5838a5(_0x487dac);});}['_setupEscapeAnnotationHandling'](){const _0x5153cc=_0x4fa80e=>{const _0x4f272b=_0x4fa80e['source'],_0x50d9c9=[];let _0x33bea5;if(Array['isArray'](_0x4f272b['target'])){_0x33bea5=_0x4f272b['target'][0x0],this['context']instanceof _0x5a05ad?_0x50d9c9['push'](this['context']):this['context']['editors']&&_0x50d9c9['push'](...this['context']['editors']);for(const _0x5cf819 of _0x50d9c9)for(const _0x3c929d of _0x5cf819['editing']['view']['domRoots']['values']())if(_0x3c929d['contains'](_0x33bea5))return void _0x5cf819['editing']['view']['focus']();_0x33bea5['focus']();}};this['listenTo'](this['collection'],'add',(_0x6c1a0b,_0x32b5bc)=>{this['listenTo'](_0x32b5bc,'escape',_0x5153cc,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1a990e,_0x3192d5)=>{this['stopListening'](_0x3192d5,'escape',_0x5153cc);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x551749{['_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(_0x454e5b){super(_0x454e5b),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x6f9c56=this['context']['config'];_0x6f9c56['define']('comments.maxCommentsWhenCollapsed',0x2),_0x6f9c56['define']('comments.maxThreadTotalWeight',0x1f4),_0x6f9c56['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x6f9c56['define']('comments.CommentThreadView',gt),_0x6f9c56['define']('comments.CommentView',Tt),_0x6f9c56['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x279fe0=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x3ba4f7,_0x5f13fc)=>this['_addCommentThread'](_0x5f13fc)),this['on']('submitCommentThread',(_0x6433a6,_0x2dc850)=>this['_submitCommentThread'](_0x2dc850)),this['on']('resolveCommentThread',(_0x2a012c,_0x527c29)=>this['_resolveCommentThread'](_0x527c29)),this['on']('resolveCommentThread',(_0x16c0a7,_0x15414e)=>this['_updateActiveAnnotation'](_0x15414e),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x1b0968,_0x6427b8)=>this['_reopenCommentThread'](_0x6427b8)),this['on']('reopenCommentThread',(_0x543817,_0xf8ee64)=>this['_updateActiveAnnotation'](_0xf8ee64),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3b771d,_0x5613c8)=>this['_removeCommentThread'](_0x5613c8)),this['on']('updateCommentThread',(_0x5151a4,_0x485ec7)=>this['_updateCommentThread'](_0x485ec7)),this['on']('updateCommentThread',(_0x5e582c,_0x376a85)=>this['_updateActiveAnnotation'](_0x376a85),{'priority':'lowest'}),this['on']('addComment',(_0x56294b,_0x28fb4b)=>this['_addComment'](_0x28fb4b)),this['on']('updateComment',(_0x3e1d2c,_0x575cca)=>this['_updateComment'](_0x575cca)),this['on']('removeComment',(_0x47bb2c,_0x213831)=>this['_removeComment'](_0x213831)),this['on']('addComment',(_0xd1c289,{threadId:_0x43257f,isFromAdapter:_0x5957ff})=>{if(_0x5957ff)return;const _0x18a721=this['getCommentThread'](_0x43257f),_0x289c2e=_0x18a721&&this['_threadToController']['get'](_0x18a721);_0x289c2e&&_0x289c2e['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x279fe0,'change:activeAnnotations',(_0xfb9e17,_0x5d995c,_0x406a34)=>{const _0x5c0960=Array['from'](_0x406a34)['map'](_0x399fc4=>this['_viewToController']['get'](_0x399fc4['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5c0960?_0x5c0960['model']:null;});}set['adapter'](_0x293083){if(this['_adapter'])throw new _0x1dd71b('commentsrepository-adapter-already-set');this['_adapter']=_0x293083;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x24a2b1=_t,threadId:_0x1fd63c=_0xc202d9(),comments:_0x3736ad=[],unlinkedAt:_0x3ecc36=null,resolvedAt:_0x4a4221=null,resolvedBy:_0x59be65=null,target:_0x203f45=null,context:_0x33fcfe=null,attributes:_0x2ccc9d={},isResolvable:_0x593b74=!0x0,isSubmitted:_0x4d8036=!0x1,isFromAdapter:_0x5a01ab=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x24a2b1),{'channelId':_0x24a2b1,'threadId':_0x1fd63c,'comments':_0x3736ad,'unlinkedAt':_0x3ecc36,'resolvedAt':_0x4a4221,'resolvedBy':_0x59be65,'target':_0x203f45,'context':_0x33fcfe,'attributes':_0x2ccc9d,'isFromAdapter':_0x5a01ab,'isResolvable':_0x593b74,'isSubmitted':_0x4d8036}),this['getCommentThread'](_0x1fd63c);}['openNewCommentThread']({channelId:_0x4d1f53=_t,threadId:_0x173554=_0xc202d9(),target:_0x57d4c3,context:_0x5c4114=null,isResolvable:_0x5b128e=!0x0}){if(this['_readOnlyChannels']['has'](_0x4d1f53)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x57d4c3)throw new _0x1dd71b('commentsrepository-missing-target');const _0x2d2cb0=this['addCommentThread']({'channelId':_0x4d1f53,'threadId':_0x173554,'target':_0x57d4c3,'context':_0x5c4114,'isResolvable':_0x5b128e});if(!_0x2d2cb0)return null;const _0x43cd8a=this['_threadToController']['get'](_0x2d2cb0),_0x5bc52f=_0x43cd8a['view']['commentThreadInputView']['commentInputView'],_0x55103a=this['context']['plugins']['get'](y),_0x29f9d6=_0x55103a['getByInnerView'](_0x43cd8a['view']);return _0x55103a['activate'](_0x29f9d6),_0x5bc52f['once']('editorReady',()=>_0x5bc52f['focus']()),_0x2d2cb0;}['hasCommentThread'](_0x39fe39){if('string'!=typeof _0x39fe39)throw new _0x1dd71b('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x39fe39);}['updateCommentThread']({channelId:_0x150253=_t,threadId:_0x1b8053,context:_0x5b1ee1,unlinkedAt:_0x42f030,attributes:_0x417315,isFromAdapter:_0x4e2d3c=!0x1}){return this['fire'](Nt('updateCommentThread',_0x150253),{'channelId':_0x150253,'threadId':_0x1b8053,'context':_0x5b1ee1,'unlinkedAt':_0x42f030,'attributes':_0x417315,'isFromAdapter':_0x4e2d3c}),this['getCommentThread'](_0x1b8053);}['getCommentThread'](_0x28e178){if('string'!=typeof _0x28e178)throw new _0x1dd71b('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x28e178);}['fetchCommentThread']({channelId:_0x59497c,threadId:_0x1b4a9d}={}){const _0x438aa5=this['getCommentThread'](_0x1b4a9d);if(_0x438aa5)return Promise['resolve'](_0x438aa5);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x1dd71b('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x59497c,'threadId':_0x1b4a9d})['then'](_0x51e7ba=>this['hasCommentThread'](_0x1b4a9d)?this['getCommentThread'](_0x1b4a9d):_0x51e7ba?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x59497c},_0x51e7ba)):void 0x0)['catch'](_0x5c5c16=>{throw console['error'](_0x5c5c16),new _0x1dd71b('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x481654,skipNotAttached:_0x258773=!0x1,skipEmpty:_0x3d3fea=!0x1,toJSON:_0x384c04=!0x1}={}){const _0x285b28=[];for(const _0x2c1005 of this['_threads']['values']())_0x481654&&_0x2c1005['channelId']!==_0x481654||_0x258773&&!_0x2c1005['isAttached']||_0x3d3fea&&0x0===_0x2c1005['length']||_0x285b28['push'](_0x2c1005);return _0x384c04?_0x285b28['map'](_0x48eb19=>_0x48eb19['toJSON']()):_0x285b28;}['getAnnotationForCommentThread'](_0x23e0b0){const _0x49502e=this['_threadToController']['get'](_0x23e0b0);if(!_0x49502e)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x49502e['view'])||null;}['getCommentThreadForAnnotation'](_0x3ee0d1){const _0x243d0e=this['_viewToController']['get'](_0x3ee0d1['innerView']);return _0x243d0e?_0x243d0e['model']:null;}['setActiveCommentThread'](_0x315a2d){const _0x3b3da6=this['context']['plugins']['get'](y);if(!_0x315a2d)return void(this['activeCommentThread']&&_0x3b3da6['deactivateAll']());const _0x116073=this['getCommentThread'](_0x315a2d);if(!_0x116073)throw new _0x1dd71b('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x315a2d});if(!this['_threadToController']['has'](_0x116073))throw new _0x1dd71b('commentsrepository-active-not-attached',null,{'threadId':_0x315a2d});const _0x9f357=_0x3b3da6['getByInnerView'](this['_threadToController']['get'](_0x116073)['view']);_0x3b3da6['activate'](_0x9f357);}['switchReadOnly'](_0x4f9b1f,_0x2f1cc1){_0x4f9b1f?this['_readOnlyChannels']['add'](_0x2f1cc1):this['_readOnlyChannels']['delete'](_0x2f1cc1),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x25fcbb){return this['_readOnlyChannels']['has'](_0x25fcbb)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x31ecfa,_0x4f6c71){return new vt(_0x31ecfa,_0x4f6c71);}['setPermissions'](_0x4c50ac,_0x846ea6=_t){this['_permissions']['set'](_0x846ea6,_0x4c50ac),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x57c029=_t){return this['_permissions']['has'](_0x57c029)?this['_permissions']['get'](_0x57c029):bt;}['_addCommentThread']({channelId:_0x37ee8a,threadId:_0x1177a9,comments:_0x25c3a0,unlinkedAt:_0x2dba5,resolvedAt:_0x2355a1,resolvedBy:_0x530b98,target:_0x3f9ad5,context:_0x7bb2c4,attributes:_0x19bb64,isFromAdapter:_0x46b086,isResolvable:_0x5c6ab7,isSubmitted:_0x207292}){if('string'!=typeof _0x1177a9)throw new _0x1dd71b('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1177a9});if(this['hasCommentThread'](_0x1177a9))throw new _0x1dd71b('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x1177a9});const _0x1ae8e=new CommentThread(this,{'channelId':_0x37ee8a,'id':_0x1177a9,'context':_0x7bb2c4,'attributes':_0x19bb64,'unlinkedAt':_0x2dba5,'resolvedAt':_0x2355a1,'resolvedBy':_0x530b98?this['context']['plugins']['get'](it)['getUser'](_0x530b98):null,'isResolvable':_0x5c6ab7,'isSubmitted':_0x207292||_0x46b086});this['_threads']['set'](_0x1177a9,_0x1ae8e);for(const _0x462f36 of _0x25c3a0)_0x1ae8e['_add'](this['_createNewComment']({'threadId':_0x1177a9,..._0x462f36}));return _0x3f9ad5&&_0x1ae8e['attachTo'](_0x3f9ad5),_0x46b086||!_0x1ae8e['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x37ee8a,'threadId':_0x1177a9});}['_submitCommentThread']({channelId:_0x1d7c60,threadId:_0x9d7ab7}){if(!this['hasCommentThread'](_0x9d7ab7))throw new _0x1dd71b('commentsrepository-missing-comment-thread',this);const _0x362f36=this['getCommentThread'](_0x9d7ab7);if(_0x362f36['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x3e220c,comments:_0x17dfef,resolvedAt:_0x497eae,resolvedBy:_0x174509,context:_0x27e9eb,attributes:_0x37a69b}=_0x362f36,_0x4810e1=this['context']['plugins']['get']('PendingActions'),_0xf0b75f=_0x4810e1['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1d7c60,'threadId':_0x3e220c,'comments':_0x17dfef['map'](_0x578be4=>_0x578be4['toJSON']()),'resolvedAt':_0x497eae,'resolvedBy':_0x174509?_0x174509['id']:_0x174509,'context':_0x27e9eb,'attributes':_0x37a69b})['then'](({comments:_0x3e0f26})=>{_0x4810e1['remove'](_0xf0b75f);for(const _0x403c19 of _0x3e0f26)this['_updateComment']({'channelId':_0x1d7c60,'threadId':_0x9d7ab7,'commentId':_0x403c19['commentId'],'createdAt':_0x403c19['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x26bfe4=>{throw console['error'](_0x26bfe4),new _0x1dd71b('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x39d700,target:_0x1032ef}){const _0x12cfbe=this['getCommentThread'](_0x39d700);if(!_0x12cfbe)throw new _0x1dd71b('commentsrepository-attach-missing-comment-thread',this);const _0x4c42cd=this['context']['plugins']['get']('PendingActions'),_0x5146ae=this['context']['plugins']['get'](y),_0xfdb43d=this['_createCommentThreadView'](_0x12cfbe),_0xd11677=new vt(_0x12cfbe,_0xfdb43d);let _0x17cd92=null;_0xfdb43d['on']('change:isDirty',(_0x50a13b,_0x10bb95,_0x4b6cd6)=>{_0x4b6cd6?_0x17cd92=_0x4c42cd['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x17cd92&&(_0x4c42cd['remove'](_0x17cd92),_0x17cd92=null);}),this['_threadToController']['set'](_0x12cfbe,_0xd11677),this['_viewToController']['set'](_0xfdb43d,_0xd11677);const _0x209aa5=new E(this['context']['locale'],_0xfdb43d);_0x209aa5['bind']('length')['to'](_0xfdb43d),_0x209aa5['bind']('isDirty')['to'](_0xfdb43d,'isDirty',_0xfdb43d,'length',(_0x139ad4,_0x1f5087)=>_0x139ad4||!_0x1f5087),_0x209aa5['bind']('isActive')['to'](_0xfdb43d),_0x209aa5['type']='comment';const _0x32a131=new T({'view':_0x209aa5,'target':_0x1032ef,'type':'comment','isVisible':!_0x12cfbe['archivedAt']&&!!('function'==typeof _0x1032ef?_0x1032ef():_0x1032ef)});return _0xfdb43d['on']('escape',()=>{_0x32a131['fire']('escape');}),this['_bindAnnotationToEditors'](_0xfdb43d,_0x32a131),_0x5146ae['add'](_0x32a131),_0x32a131;}['_bindAnnotationToEditors'](_0x5ceb99,_0x205901){this['listenTo'](_0x5ceb99,'editorReady',(_0x971a64,_0x408d46)=>{const _0x273b38=_0x408d46['ui']['view']['body']['bodyCollectionContainer'];_0x205901['focusableElements']['add'](_0x273b38),this['context']instanceof _0x5a05ad&&this['context']['ui']['focusTracker']['add'](_0x273b38);},{'priority':'highest'}),this['listenTo'](_0x5ceb99,'editorDestroyed',(_0x1baff1,_0x452f26)=>{const _0x1207e9=_0x452f26['ui']['view']['body']['bodyCollectionContainer'];_0x205901['focusableElements']['has'](_0x1207e9)&&_0x205901['focusableElements']['remove'](_0x1207e9),this['context']instanceof _0x5a05ad&&this['context']['ui']['focusTracker']['remove'](_0x1207e9);});}['_unbindEditors'](_0x573a44){this['stopListening'](_0x573a44,'editorReady'),this['stopListening'](_0x573a44,'editorDestroyed');}['_createCommentThreadView'](_0x4712c2){const _0x5aa217=this['context']['plugins']['get'](it),{config:_0x4d23df,locale:_0x377503}=this['context'],_0x3ce385=pt(_0x4d23df['get']('locale'),_0x377503);return new(0x0,(_0x4d23df['get']('comments'))['CommentThreadView'])(_0x377503,_0x4712c2,_0x5aa217['me'],{'editorConfig':{..._0x4d23df['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4d23df['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4d23df['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4d23df['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4d23df['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3ce385,'CommentView':_0x4d23df['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x194a2b,channelId:_0x4e5f5b,resolvedAt:_0x8c1548,resolvedBy:_0x54b666,isFromAdapter:_0x3ae113}){if(!this['hasCommentThread'](_0x194a2b))throw new _0x1dd71b('commentsrepository-missing-comment-thread',null,{'threadId':_0x194a2b});const _0x4d30fa=this['getCommentThread'](_0x194a2b);if(_0x4d30fa['isResolved'])throw new _0x1dd71b('commentsrepository-resolved-comment-thread',null,{'threadId':_0x194a2b});const _0x442d48=this['context']['plugins']['get'](it);if(_0x4d30fa['resolvedBy']=_0x442d48['getUser'](_0x54b666),_0x4d30fa['resolvedAt']=_0x8c1548,_0x3ae113||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x8be07a=this['context']['plugins']['get']('PendingActions'),_0x7802bd=_0x8be07a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x4e5f5b,'threadId':_0x194a2b})['then'](({resolvedAt:_0x1ad480,resolvedBy:_0x1cb392})=>{_0x8be07a['remove'](_0x7802bd),_0x4d30fa['resolvedBy']['id']!==_0x1cb392&&(_0x4d30fa['resolvedBy']=_0x442d48['getUser'](_0x1cb392)),_0x4d30fa['resolvedAt']=_0x1ad480;})['catch'](_0x1049bc=>{throw console['error'](_0x1049bc),new _0x1dd71b('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x27620e,channelId:_0x9cb4e1,isFromAdapter:_0x1328fc}){if(!this['hasCommentThread'](_0x27620e))throw new _0x1dd71b('commentsrepository-missing-comment-thread',null,{'threadId':_0x27620e});const _0xa2dbd2=this['getCommentThread'](_0x27620e);if(!_0xa2dbd2['isResolved'])throw new _0x1dd71b('commentsrepository-reopen-comment-thread',null,{'threadId':_0x27620e});if(_0xa2dbd2['resolvedBy']=null,_0xa2dbd2['resolvedAt']=null,_0x1328fc||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2cd07b=this['context']['plugins']['get']('PendingActions'),_0x5c0948=_0x2cd07b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x9cb4e1,'threadId':_0x27620e})['then'](()=>_0x2cd07b['remove'](_0x5c0948))['catch'](_0x4419c5=>{throw console['error'](_0x4419c5),new _0x1dd71b('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x56c17e,isFromAdapter:_0x72d6f}){const _0x2f07e7=this['getCommentThread'](_0x56c17e);if(!_0x2f07e7)throw new _0x1dd71b('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x56c17e),this['_threads']['delete'](_0x56c17e),!_0x2f07e7['isSubmitted']||_0x72d6f||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x750019=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4f2dc8}=_0x2f07e7,_0x495209=_0x750019['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x4f2dc8,'threadId':_0x56c17e})['then'](()=>_0x750019['remove'](_0x495209))['catch'](_0x44ed4c=>{throw console['error'](_0x44ed4c),new _0x1dd71b('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x467e6e,unlinkedAt:_0x358f41,context:_0x2aa503,attributes:_0x86cc14,isFromAdapter:_0x290020}){if('string'!=typeof _0x467e6e)throw new _0x1dd71b('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x467e6e});if(!this['hasCommentThread'](_0x467e6e))throw new _0x1dd71b('commentsrepository-missing-comment-thread',null,{'threadId':_0x467e6e});const _0x3a584b=this['getCommentThread'](_0x467e6e);let _0x29dd19=!0x1;if(void 0x0!==_0x2aa503&&_0x3a584b['context']!==_0x2aa503&&(_0x3a584b['context']=_0x2aa503,_0x29dd19=!0x0),void 0x0!==_0x358f41&&_0x3a584b['unlinkedAt']!==_0x358f41&&(_0x3a584b['unlinkedAt']=_0x358f41,_0x29dd19=!0x0),_0x86cc14&&!At(_0x86cc14,_0x3a584b['attributes'])&&(_0x3a584b['attributes']=_0x86cc14,_0x29dd19=!0x0),!_0x29dd19)return Promise['resolve']();if(!_0x3a584b['isSubmitted']||_0x290020||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x3408ed=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4eec26}=_0x3a584b,_0x2ec136=_0x3408ed['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4eec26,'threadId':_0x467e6e,'context':_0x2aa503,'unlinkedAt':_0x358f41,'attributes':_0x86cc14})['then'](()=>_0x3408ed['remove'](_0x2ec136))['catch'](_0x3642e0=>{throw console['error'](_0x3642e0),new _0x1dd71b('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x5eaafb){const _0x2bfce8=this['context']['plugins']['get'](y),_0x591603=this['getCommentThread'](_0x5eaafb);if(_0x591603['_isAttached']=!0x1,this['_threadToController']['has'](_0x591603)){const _0x7dd78f=this['_threadToController']['get'](_0x591603),_0x589d78=_0x7dd78f['view'],_0x534484=_0x2bfce8['getByInnerView'](_0x589d78);this['_threadToController']['delete'](_0x591603),this['_viewToController']['delete'](_0x589d78),_0x534484&&_0x2bfce8['remove'](_0x534484),_0x7dd78f['destroy'](),_0x589d78['destroy']()['then'](()=>{this['_unbindEditors'](_0x589d78);});}}['_updateActiveAnnotation']({threadId:_0x58c4d5,resolvedAt:_0x64ca18,unlinkedAt:_0x54935f}){const _0x1b1532=!!_0x64ca18,_0x6ec431=this['context']['plugins']['get'](y),_0x3f2017=this['getCommentThread'](_0x58c4d5);if(this['_threadToController']['has'](_0x3f2017)){const _0x469b85=this['_threadToController']['get'](_0x3f2017)['view'],_0x2f905b=_0x6ec431['getByInnerView'](_0x469b85);_0x2f905b&&(_0x1b1532&&_0x6ec431['_removeActiveAnnotation'](_0x2f905b),_0x54935f?_0x2f905b['isVisible']=!0x1:_0x2f905b['refreshVisibility']());}}['_getExternalAuthor'](_0x559eed){const _0x3ac30e=this['context']['plugins']['get'](it),_0xf8bd0f=It('external:'+_0x559eed),_0x4f0876=_0x3ac30e['getUser'](_0xf8bd0f);return _0x4f0876||_0x3ac30e['addUser']({'id':_0xf8bd0f,'name':_0x559eed});}['_createNewComment']({threadId:_0xc45ac1,commentId:_0x12f212=_0xc202d9(),content:_0xa6ee22,authorId:_0x50672f,createdAt:_0x3deb37,attributes:_0x334db8}){if('string'!=typeof _0x12f212)throw new _0x1dd71b('commentsrepository-invalid-commentid');if('string'!=typeof _0x50672f)throw new _0x1dd71b('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0xa6ee22||!_0xa6ee22['trim']())throw new _0x1dd71b('commentsrepository-invalid-comment-content');const _0x6ea6a3=this['context']['plugins']['get'](it)['getUser'](_0x50672f);if(!_0x6ea6a3)throw new _0x1dd71b('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x50672f});let _0x5f0703=null,_0x297d55=_0x3deb37;return _0x334db8?.['@external']&&(_0x5f0703=this['_getExternalAuthor'](_0x334db8['@external']['authorName']),_0x297d55=new Date(_0x334db8['@external']['createdAt'])),new Comment(this,{'threadId':_0xc45ac1,'id':_0x12f212,'author':_0x5f0703||_0x6ea6a3,'creator':_0x6ea6a3,'content':_0xa6ee22,'createdAt':_0x3deb37,'authoredAt':_0x297d55,'attributes':_0x334db8});}['_addComment'](_0x331922){let {threadId:_0x5b5041,content:_0x53b724,attributes:_0x23ec1a,isFromAdapter:_0x523d5a}=_0x331922;const _0x2ed895=this['getCommentThread'](_0x331922['threadId']);if(!_0x2ed895)throw new _0x1dd71b('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x593ecf=this['_createNewComment'](_0x331922),{id:_0x4e3909}=_0x593ecf;if(_0x2ed895['_add'](_0x593ecf),_0x523d5a||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x2ed895['isSubmitted'])return Promise['resolve']();const _0x2e76dc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5a18d5}=_0x2ed895,_0xd44730=_0x2e76dc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x23ec1a||(_0x23ec1a={}),this['adapter']['addComment']({'channelId':_0x5a18d5,'threadId':_0x5b5041,'commentId':_0x4e3909,'content':_0x53b724,'attributes':_0x23ec1a})['then'](_0x425f96=>{_0x2e76dc['remove'](_0xd44730),_0x425f96&&this['_updateComment']({'channelId':_0x5a18d5,'threadId':_0x5b5041,'commentId':_0x4e3909,'createdAt':_0x425f96['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4283bc=>{throw console['error'](_0x4283bc),new _0x1dd71b('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x14d36d,commentId:_0x28c7f4,content:_0x561bca,createdAt:_0x702596,attributes:_0x392f96,isFromAdapter:_0x55cdd1}){if(void 0x0!==_0x561bca&&('string'!=typeof _0x561bca||!_0x561bca['trim']()['length']))throw new _0x1dd71b('commentsrepository-update-comment-invalid-content');const _0x5289a9=this['getCommentThread'](_0x14d36d),_0x25c5ad=_0x5289a9['getComment'](_0x28c7f4);if(!_0x25c5ad)throw new _0x1dd71b('commentsrepository-update-missing-comment',this);let _0x4c768d=!0x1;if(_0x561bca&&_0x561bca!==_0x25c5ad['content']&&(_0x25c5ad['isEditable']||_0x55cdd1)&&(_0x25c5ad['content']=_0x561bca,_0x4c768d=!0x0),_0x702596&&_0x702596!==_0x25c5ad['createdAt']&&(_0x25c5ad['createdAt']=_0x702596,_0x25c5ad['attributes']&&_0x25c5ad['attributes']['@external']||(_0x25c5ad['authoredAt']=_0x702596),_0x4c768d=!0x0),_0x392f96&&!At(_0x392f96,_0x25c5ad['attributes'])&&(_0x25c5ad['attributes']=_0x392f96,_0x4c768d=!0x0),!_0x4c768d)return Promise['resolve']();if(_0x5289a9['fire']('commentUpdated'),_0x55cdd1||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x44d202=this['context']['plugins']['get']('PendingActions'),{channelId:_0x59be5}=this['getCommentThread'](_0x25c5ad['threadId']),_0x28a4fe=_0x44d202['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x59be5,'threadId':_0x14d36d,'commentId':_0x28c7f4,'content':_0x561bca,'attributes':_0x392f96})['then'](()=>_0x44d202['remove'](_0x28a4fe))['catch'](_0x4d1dd1=>{throw console['error'](_0x4d1dd1),new _0x1dd71b('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3be60b,commentId:_0x591d8c,isFromAdapter:_0x51e7d8}){const _0x4bd2e3=this['getCommentThread'](_0x3be60b),_0x1f85e7=_0x4bd2e3['getComment'](_0x591d8c);if(!_0x1f85e7)throw new _0x1dd71b('commentsrepository-remove-missing-comment',this);if(_0x4bd2e3['_remove'](_0x1f85e7),_0x51e7d8||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x3549bb=this['context']['plugins']['get']('PendingActions'),{channelId:_0x30a72a}=_0x4bd2e3,_0x4ab333=_0x3549bb['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x30a72a,'threadId':_0x3be60b,'commentId':_0x591d8c})['then'](()=>_0x3549bb['remove'](_0x4ab333))['catch'](_0x5df82a=>{throw console['error'](_0x5df82a),new _0x1dd71b('commentsrepository-remove-comment-internal-error',this);});}}class CommentThread extends/* #__PURE__ -- @preserve */
30
+ _0x58b595(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x22e2d5,_0x34efbf){super();const _0x596911=_0x34efbf['isResolvable'];this['channelId']=_0x34efbf['channelId'],this['id']=_0x34efbf['id'],this['comments']=new _0x30e061(),this['_repository']=_0x22e2d5,this['_isAttached']=!0x1,this['_isSubmitted']=_0x34efbf['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x22e2d5,'_permissions',_0x22e2d5,'_readOnlyChannels',()=>_0x22e2d5['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x22e2d5,'_permissions',()=>_0x22e2d5['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x22e2d5,'_permissions',()=>{const _0x2ca51e=_0x22e2d5['getPermissions'](this['channelId']);return _0x2ca51e['write']||_0x2ca51e['admin'];}),this['bind']('isResolvable')['to'](_0x22e2d5,'_permissions',()=>_0x596911&&_0x22e2d5['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x34efbf['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0xc906ed,_0xe0e52f)=>_0xc906ed?_0xe0e52f?_0xc906ed<_0xe0e52f?_0xc906ed:_0xe0e52f:_0xc906ed:_0xe0e52f),this['set']('unlinkedAt',_0x34efbf['unlinkedAt']||null),this['set']('resolvedAt',_0x34efbf['resolvedAt']||null),this['set']('resolvedBy',_0x34efbf['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x3ad6a8=>!!_0x3ad6a8),this['set']('attributes',_0x34efbf['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x573da2,_0x4a5587)=>_0x573da2+_0x4a5587['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x35bc12,id:_0x3806e9}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x35bc12),{'channelId':_0x35bc12,'threadId':_0x3806e9});}['setUnlinkedAt'](_0x46a0db){this['_update']({'unlinkedAt':_0x46a0db});}['resolve']({resolvedAt:_0x415d62=new Date(),resolvedBy:_0x5a0f5d='',isFromAdapter:_0xcd4fab=!0x1}={}){const _0x5aa8eb=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x14c4a8,id:_0x187b74}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x14c4a8),{'channelId':_0x14c4a8,'threadId':_0x187b74,'resolvedAt':_0x415d62,'resolvedBy':_0x5a0f5d||_0x5aa8eb['id'],'isFromAdapter':_0xcd4fab});}['reopen']({isFromAdapter:_0x23366a=!0x1}={}){const {channelId:_0x56e9c5,id:_0x48cc36}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x56e9c5),{'channelId':_0x56e9c5,'threadId':_0x48cc36,'isFromAdapter':_0x23366a});}['setContext'](_0x1360c8){this['context']||this['_update']({'context':_0x1360c8});}['setAttribute'](_0x332a75,_0x35ee41){const _0x4b0297=wt(this['attributes']);yt(_0x4b0297,_0x332a75,_0x35ee41),this['_update']({'attributes':_0x4b0297});}['removeAttribute'](_0x4fed7b){const _0x2b75f5=wt(this['attributes']);Ct(_0x2b75f5,_0x4fed7b),this['_update']({'attributes':_0x2b75f5});}['remove']({isFromAdapter:_0x3c0c42=!0x1}={}){const {channelId:_0x28fb52,id:_0x3712d0}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x28fb52),{'channelId':_0x28fb52,'threadId':_0x3712d0,'isFromAdapter':_0x3c0c42});}['attachTo'](_0x3b15c6){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x3b15c6});}['addComment'](_0x58182d){const {channelId:_0x359ce6,id:_0x59a567}=this;this['_repository']['fire'](Nt('addComment',_0x359ce6,_0x59a567),Object['assign']({'channelId':_0x359ce6,'threadId':_0x59a567},_0x58182d));}['getComment'](_0x2a4d28){if('string'!=typeof _0x2a4d28)throw new _0x1dd71b('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2a4d28});return this['comments']['get'](_0x2a4d28);}['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'](_0xf1a467=>_0xf1a467['toJSON']()),'attributes':this['attributes']};}['_add'](_0xbfee43){return this['listenTo'](_0xbfee43,'change:authoredAt',()=>{const _0x1358fd=this['_findOptimalIndex'](_0xbfee43),_0x3562b5=this['comments'];_0x1358fd-0x1!=_0x3562b5['getIndex'](_0xbfee43)&&_0x1358fd+0x1!=_0x3562b5['getIndex'](_0xbfee43)&&(this['_remove'](_0xbfee43),this['_add'](_0xbfee43));}),this['comments']['add'](_0xbfee43,this['_findOptimalIndex'](_0xbfee43));}['_update'](_0x4ce747){const {channelId:_0x1cc34c,id:_0x41b502}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x1cc34c),{..._0x4ce747,'channelId':_0x1cc34c,'threadId':_0x41b502});}['_remove'](_0xa9edaf){return this['stopListening'](_0xa9edaf),_0xa9edaf['destroy'](),this['comments']['remove'](_0xa9edaf);}['_findOptimalIndex'](_0x766920){const _0x1e115d=this['comments']['find'](_0x491d34=>new Date(_0x491d34['authoredAt'])['getTime']()>new Date(_0x766920['authoredAt'])['getTime']());return _0x1e115d?this['comments']['getIndex'](_0x1e115d):this['length'];}}class Comment extends/* #__PURE__ -- @preserve */
31
+ _0x58b595(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x43ad7f,_0x175f52){super();const _0x3a1509=_0x43ad7f['context']['plugins']['get'](it)['me'],_0x569d20=_0x43ad7f['getCommentThread'](_0x175f52['threadId']),_0x2b0430=0x0===_0x569d20['comments']['length'],_0x42d95c=_0x3a1509===_0x175f52['author'];this['id']=_0x175f52['id'],this['threadId']=_0x175f52['threadId'],this['author']=_0x175f52['author'],this['creator']=_0x175f52['creator'],this['isExternal']=Boolean(_0x175f52['attributes']&&_0x175f52['attributes']['@external']),this['set']('content',_0x175f52['content']),this['createdAt']=_0x175f52['createdAt']||new Date(),this['set']('authoredAt',_0x175f52['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x569d20,'resolvedAt'),this['set']('attributes',_0x175f52['attributes']||{}),this['bind']('isEditable')['to'](_0x43ad7f,'_permissions',()=>{const _0x57a40d=_0x43ad7f['getPermissions'](_0x569d20['channelId'])['write'],_0x3db144=_0x43ad7f['getPermissions'](_0x569d20['channelId'])['modifyAll'];return _0x42d95c&&_0x57a40d||!_0x42d95c&&_0x3db144;}),this['bind']('isRemovable')['to'](_0x569d20,'isRemovable',_0x43ad7f,'_permissions',_0x48a708=>{const _0x50f1f8=_0x43ad7f['getPermissions'](_0x569d20['channelId'])['write'],_0x592987=_0x43ad7f['getPermissions'](_0x569d20['channelId'])['modifyAll'];return _0x42d95c&&_0x50f1f8||_0x48a708&&_0x2b0430||!_0x42d95c&&_0x592987&&!_0x2b0430;}),this['bind']('isReadOnly')['to'](_0x569d20,'isReadOnly'),this['_repository']=_0x43ad7f;}get['weight'](){return Math['max'](function(_0x30b22d){const _0x4b3bdb=document['createElement']('div');return _0x4b3bdb['innerHTML']=_0x30b22d,_0x4b3bdb['textContent']['length'];}(this['content']),0xc8);}['update'](_0x4ece04){const {threadId:_0x22f769,id:_0x4ab88b}=this;if(!this['_repository']['hasCommentThread'](_0x22f769))throw new _0x1dd71b('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x162852}=this['_repository']['getCommentThread'](_0x22f769);this['_repository']['fire'](Nt('updateComment',_0x162852,_0x22f769),{'channelId':_0x162852,'threadId':_0x22f769,'commentId':_0x4ab88b,..._0x4ece04});}['setAttribute'](_0x4cf96e,_0x3423e5){const _0x3cc7cc=wt(this['attributes']);yt(_0x3cc7cc,_0x4cf96e,_0x3423e5),this['update']({'attributes':_0x3cc7cc});}['removeAttribute'](_0x54df48){const _0x1f6038=wt(this['attributes']);Ct(_0x1f6038,_0x54df48),this['update']({'attributes':_0x1f6038});}['remove'](_0x58b1b3={}){if(!_0x58b1b3['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x572a99,id:_0x20da15}=this;if(!this['_repository']['hasCommentThread'](_0x572a99))throw new _0x1dd71b('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x21ef62}=this['_repository']['getCommentThread'](_0x572a99);this['_repository']['fire'](Nt('removeComment',_0x21ef62,_0x572a99),{'channelId':_0x21ef62,'threadId':_0x572a99,'commentId':_0x20da15,..._0x58b1b3});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x13ddd9,..._0xaa92a1){for(const _0x5cfd70 of _0xaa92a1)void 0x0!==_0x5cfd70&&(_0x13ddd9+=':'+String(_0x5cfd70));return _0x13ddd9;}class ot extends _0x2c9dbf{constructor(_0x2862c8){super(_0x2862c8),this['set']('hasContent',!0x1);}['refresh'](){const _0x5268f2=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x3d1ba6 of _0x5268f2['getRanges']())if(this['_hasContent'](_0x3d1ba6))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x34cb17=_0xc202d9(),ranges:_0x754e3f,comment:_0x533864}={}){const _0x597d83=this['editor']['model'],_0x53181c=_0x754e3f??Array['from'](_0x597d83['document']['selection']['getRanges']()),_0xf2f346=[];for(const _0x1e0539 of _0x53181c)this['_hasContent'](_0x1e0539)&&_0xf2f346['push'](this['_trimToContent'](_0x1e0539));if(!_0xf2f346['length'])throw new _0x1dd71b('addcommentthreadcommand-incorrect-ranges',null);_0x533864&&this['_createCommentThread'](_0x34cb17,_0x533864),this['_createMarkersFromRanges'](_0x34cb17,_0xf2f346,!!_0x533864);}['_createMarkersFromRanges'](_0x585b3b,_0x36da6e,_0x11ee2b){this['editor']['model']['change'](_0x5be1ba=>{for(const _0x45f6b4 of _0x36da6e){const _0x27bb29=_0xc202d9()['substr'](0x1,0x5),_0x174f19='comment:'+_0x585b3b+':'+_0x27bb29;_0x5be1ba['addMarker'](_0x174f19,{'range':_0x45f6b4,'usingOperation':_0x11ee2b,'affectsData':_0x11ee2b});}});}['_createCommentThread'](_0x15ecd7,_0x5b8dca){const _0x3daf82=this['editor']['plugins']['get']('CommentsRepository'),_0x538724=this['editor']['config']['get']('collaboration.channelId'),_0x36f4c9=this['editor']['plugins']['get']('Users')['me'];if(!_0x36f4c9)throw new _0x1dd71b('addcommentthreadcommand-user-not-found',null);_0x3daf82['addCommentThread']({'threadId':_0x15ecd7,'channelId':_0x538724,'comments':[{'authorId':_0x36f4c9['id'],'content':_0x5b8dca,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x434c79){for(const _0x5d9a88 of _0x434c79['getItems']())if(this['_itemIsContent'](_0x5d9a88))return!0x0;return!0x1;}['_itemIsContent'](_0x4dd34d){return _0x4dd34d['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4dd34d)&&!_0x4dd34d['is']('element','tableCell');}['_trimToContent'](_0x1522f0){const _0x5b29f9=_0x18647b=>!this['_itemIsContent'](_0x18647b['item']),_0x18856f=_0x1522f0['start']['getLastMatchingPosition'](_0x5b29f9),_0x3f4557=_0x1522f0['end']['getLastMatchingPosition'](_0x5b29f9,{'direction':'backward'});return this['editor']['model']['createRange'](_0x18856f,_0x3f4557);}}class b extends _0x13c17d{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x601ed6){super(_0x601ed6),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5f5876=this['editor'],_0x38d3df=_0x5f5876['model']['document']['selection'],_0x4c0f37=_0x2960b5(()=>this['refreshSelectedViews'](),0xa);_0x38d3df['on']('change:range',(_0x471f4f,_0x3185a2)=>{_0x3185a2['directChange']&&(_0x4c0f37['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5f5876['editing']['view']['document'],'change:isFocused',(_0x324a4d,_0x556eef,_0x283305)=>{_0x283305&&_0x4c0f37();}),this['listenTo'](_0x5f5876['ui']['focusTracker'],'change:isFocused',(_0x16a8e9,_0xfb8b1f,_0x4b202d)=>{_0x4b202d||this['fire']('blur',{'isAnnotationTracked':_0x56bb7c=>this['_editorAnnotationsData']['has'](_0x56bb7c['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x2625e6){if(this['_editorAnnotations']['has'](_0x2625e6['view']))return;this['_editorAnnotations']['add'](_0x2625e6['view']),this['editor']['ui']['focusTracker']['add'](_0x2625e6['view']['element']);const _0x2406ad=this['editor']['plugins']['get'](y);this['listenTo'](_0x2406ad['collection'],'remove',(_0x45b3b0,_0x311eab)=>{this['editor']['ui']['focusTracker']['remove'](_0x311eab['view']['element']),this['_editorAnnotations']['delete'](_0x311eab['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x35f308){if('function'!=typeof _0x35f308)throw new _0x1dd71b('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x35f308);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x423ecc,annotations:_0x1851aa}){const _0x2125a3=[],_0x526d0f=this['editor']['model']['document']['selection'],_0x3feb48=Array['from'](_0x526d0f['getRanges']());for(const [_0x416824,_0x42b937]of this['_editorAnnotationsData']){const _0x5c66bd=_0x354c91(_0x42b937),_0x595094=_0x1851aa['getByInnerView'](_0x416824);_0x5c66bd&&_0x595094&&_0x2125a3['push']({'annotation':_0x595094,'range':_0x5c66bd});}function _0x354c91(_0xe3b530){for(const _0x4bb1b9 of _0xe3b530)for(const _0x504b9d of _0x3feb48)if(_0x4bb1b9['containsRange'](_0x504b9d,!_0x526d0f['isCollapsed']))return _0x4bb1b9;return null;}return _0x2125a3['sort']((_0x22cc5a,_0x277ef1)=>{const _0x1b1852=_0x22cc5a['range'],_0x1c8878=_0x277ef1['range'];if(!_0x1b1852['isEqual'](_0x1c8878)){if(_0x1b1852['containsRange'](_0x1c8878,!0x0))return 0x1;if(_0x1c8878['containsRange'](_0x1b1852,!0x0))return-0x1;}return _0x22cc5a['annotation']==_0x423ecc?-0x1:_0x277ef1['annotation']==_0x423ecc?0x1:0x0;})['map'](_0x630ff6=>_0x630ff6['annotation']);}get['_editorAnnotationsData'](){const _0x8c0357=new Map();for(const _0x1a5d08 of Array['from'](this['_dataCollectors']))for(const [_0x418627,_0x2cfa84]of _0x1a5d08())_0x8c0357['set'](_0x418627,_0x2cfa84);return _0x8c0357;}}class st extends _0x13c17d{['afterInit'](){const _0x277ce5=this['editor'];if(!_0x277ce5['plugins']['has']('RestrictedEditingModeEditing'))return;_0x277ce5['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x13c17d{constructor(_0x520c14){super(_0x520c14),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1959a6=this['editor'],_0x1a90dd=_0x1959a6['commands']['get']('importWord'),_0x36c138=_0x1959a6['plugins']['get'](it);_0x1a90dd&&(_0x1a90dd['on']('execute',(_0x10e8a5,[,_0x848baf])=>{_0x848baf['collaboration_features']={'comments':!0x0,'user_id':_0x36c138['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1a90dd,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x2d98a8,_0x3b3268){const {comment_threads:_0x2eac9}=_0x3b3268;_0x2eac9&&_0x2eac9['forEach'](({thread_id:_0x39f549,comments:_0x7177cf,is_resolved:_0x53980b})=>{const _0x294376=new Date(),_0x4926c1=_0x7177cf['map'](({author:_0x6cfc00,content:_0x186672,created_at:_0x56c2aa})=>({'content':_0x186672,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x294376,'attributes':{'@external':{'authorName':_0x6cfc00,'createdAt':_0x56c2aa?new Date(_0x56c2aa):new Date(),'source':'importWord'}}})),_0x484cf4=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x484cf4,'threadId':_0x39f549,'comments':_0x4926c1,'resolvedAt':_0x53980b?_0x294376:null});});}}class at extends _0x13c17d{constructor(_0x37402e){super(_0x37402e),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x396624=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x396624,'contentInsertion',(_0x4a7927,_0x387f13)=>this['_removeMarkersWithoutThreads'](_0x387f13['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x34855c){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x34855c;const _0x17bda4=this['editor']['plugins']['get']('CommentsRepository');for(const _0x30f6d1 of _0x34855c['keys']()){const [_0x402604,_0x3bef90]=_0x30f6d1['split'](':');'comment'!=_0x402604||_0x17bda4['hasCommentThread'](_0x3bef90)||_0x34855c['delete'](_0x30f6d1);}return _0x34855c;}['_registerMarkerInClipboardPipeline'](){const _0x2d5758=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1dbf78=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1dbf78&&_0x2d5758['_registerMarkerToCopy']('comment',_0x1dbf78);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1cde20){switch(_0x1cde20){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x302e24){const _0x4957d0=_0x302e24['split'](':');return{'group':_0x4957d0[0x0],'id':_0x4957d0[0x1],'part':_0x4957d0[0x2]};}class ut extends _0x13c17d{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1e5b99,_0x2727c5)=>{if(!_0x2727c5['options']['showCommentHighlights'])return null;if(_0x2727c5['options']['ignoreResolvedComments']){const {id:_0x221f3c}=ft(_0x1e5b99['markerName']),_0xc9a05f=this['editor']['plugins']['get'](o);if(_0xc9a05f['getCommentThread'](_0x221f3c)?.['isResolved']&&_0x1e5b99['item'])return _0x2727c5['consumable']['consume'](_0x1e5b99['item'],'addMarker:'+_0x1e5b99['markerName']),_0x2727c5['consumable']['consume'](_0x1e5b99['item'],'removeMarker:'+_0x1e5b99['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5100c1=>{_0x5100c1['on']('addMarker:comment',(_0x304892,_0x146bca,_0x23715d)=>{if(!_0x23715d['options']['showCommentHighlights'])return;const _0xdda9b4=_0x146bca['item'];if(!_0xdda9b4)return;const _0x591ae1=_0x23715d['mapper']['toViewElement'](_0xdda9b4);this['editor']['model']['schema']['isObject'](_0xdda9b4)&&_0x591ae1&&!_0x591ae1['getCustomProperty']('widget')&&_0x591ae1['is']('containerElement')&&_0x53f478(_0x591ae1,_0x23715d['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x555528,{writer:_0xb0915a,options:_0x3d4864})=>{if(!_0x3d4864['showCommentHighlights'])return null;const _0x5a4657=_0xb0915a['createContainerElement']('div'),_0x25b604=_0xb0915a['createEmptyElement']('hr');return _0xb0915a['addClass']('ck-horizontal-line',_0x5a4657),_0xb0915a['insert'](_0xb0915a['createPositionAt'](_0x5a4657,0x0),_0x25b604),_0x5a4657;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0xcf97ff,{writer:_0x5b1aa3,options:_0x42a986})=>{if(!_0x42a986['showCommentHighlights'])return null;const _0x5bd820=_0x5b1aa3['createContainerElement']('span'),_0x56d7df=_0x5b1aa3['createEmptyElement']('img');return _0x5b1aa3['addClass']('image-inline',_0x5bd820),_0x5b1aa3['insert'](_0x5b1aa3['createPositionAt'](_0x5bd820,0x0),_0x56d7df),_0x5bd820;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5b39aa,{writer:_0x416aab,options:_0x590c9d})=>{if(_0x590c9d['showCommentHighlights'])return _0x416aab['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3bc4b4,_0x5e7584,_0x5d9c7e)=>{_0x5d9c7e['options']['showCommentHighlights']&&_0x3bc4b4['stop']();},{'priority':'high'});}}class r extends _0x13c17d{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(_0x371988){super(_0x371988),this['set']('isThreadsLoadingPaused',!0x0),_0x371988['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x27fc93,_0x3702b9,_0x2fde79,_0x5b8b73)=>{const _0x3d47c5=_0x371988['plugins']['get'](o),_0x3993f0=_0x2fde79?ft(_0x2fde79)['id']:null;_0x371988['model']['change'](()=>{if(_0x3993f0){const _0x217707=this['getAllMarkersForId'](_0x3993f0);for(const _0xf925e4 of _0x217707)_0x371988['editing']['reconvertMarker'](_0xf925e4);}if(_0x5b8b73){const {id:_0x38c543}=ft(_0x5b8b73),_0x227e65=_0x3d47c5['getCommentThread'](_0x38c543);if(_0x227e65&&_0x227e65['unlinkedAt'])return;if(_0x227e65&&!_0x227e65['isAttached'])return;const _0x367ef6=this['getAllMarkersForId'](_0x38c543);for(const _0x52b33a of _0x367ef6)_0x371988['editing']['reconvertMarker'](_0x52b33a);}}),_0x3993f0&&this['scrollToThreadMarker'](_0x3993f0);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x523a36=this['editor'],_0x185de1=_0x523a36['plugins']['get'](o),_0xa03405=_0x523a36['config']['get']('collaboration.channelId'),_0x4a96a6=_0x185de1['getCommentThreads']()['filter'](_0xaa8a2=>_0xaa8a2['channelId']!==_0xa03405);_0x523a36['commands']['add']('addCommentThread',new ot(_0x523a36)),this['listenTo'](_0x523a36,'change:isReadOnly',(_0x455d44,_0x3e32b0,_0x344eb2)=>{_0x185de1['switchReadOnly'](_0x344eb2,_0x523a36['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x185de1,dt('addCommentThread',_0xa03405),(_0x2eac07,{threadId:_0x54b651})=>{const _0x352960=this['editor']['plugins']['get'](o)['getCommentThread'](_0x54b651);_0x352960?.['unlinkedAt']&&this['_attachArchivedThread'](_0x54b651);}),this['listenTo'](_0x185de1,dt('removeCommentThread',_0xa03405),(_0x147606,{threadId:_0x471040})=>{_0x523a36['model']['enqueueChange']({'isUndoable':!0x1},_0x375eda=>{const _0x2bb5ee=this['getAllMarkersForId'](_0x471040);for(const _0x1cec61 of _0x2bb5ee)_0x375eda['removeMarker'](_0x1cec61);});}),this['listenTo'](_0x185de1,dt('resolveCommentThread',_0xa03405),(_0x32147d,{threadId:_0x908e74})=>{(this['_reconvertMarkers'](_0x908e74),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x908e74)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x185de1,dt('reopenCommentThread',_0xa03405),(_0x212ed1,{threadId:_0x2f5f2f})=>{this['_reconvertMarkers'](_0x2f5f2f);},{'priority':'low'}),this['listenTo'](_0x185de1,dt('addComment',_0xa03405),(_0x3b291e,{threadId:_0x42ccec,isFromAdapter:_0x26780a})=>{const _0x3b2a5b=this['getAllMarkersForId'](_0x42ccec);if(_0x26780a||0x0==_0x3b2a5b['length']||!_0x185de1['hasCommentThread'](_0x42ccec))return;0x1===_0x185de1['getCommentThread'](_0x42ccec)['length']&&_0x523a36['model']['enqueueChange']({'isUndoable':!0x1},_0x4665ab=>{for(const _0x58d5a1 of _0x3b2a5b)_0x4665ab['updateMarker'](_0x58d5a1,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4a96a6);}['afterInit'](){!async function(_0x43d183){const _0x5b283f=_0x80eefb([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]),_0x24f432=0x73460ab3,_0x4fee83=0x7341932b^_0x24f432,_0x3feb56=window[_0x80eefb([0x44,0x61,0x74,0x65])][_0x80eefb([0x6e,0x6f,0x77])](),_0x376525=_0x43d183[_0x80eefb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10ca35=new window[(_0x80eefb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x195a68=>{_0x376525[_0x80eefb([0x6f,0x6e,0x63,0x65])](_0x80eefb([0x72,0x65,0x61,0x64,0x79]),_0x195a68);}),_0x2db763={[_0x80eefb([0x6b,0x74,0x79])]:_0x80eefb([0x45,0x43]),[_0x80eefb([0x75,0x73,0x65])]:_0x80eefb([0x73,0x69,0x67]),[_0x80eefb([0x63,0x72,0x76])]:_0x80eefb([0x50,0x2d,0x32,0x35,0x36]),[_0x80eefb([0x78])]:_0x80eefb([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]),[_0x80eefb([0x79])]:_0x80eefb([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]),[_0x80eefb([0x61,0x6c,0x67])]:_0x80eefb([0x45,0x53,0x32,0x35,0x36])},_0x382b7b=_0x376525[_0x80eefb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x80eefb([0x67,0x65,0x74])](_0x80eefb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x200eb5(){let _0x5874e2,_0x3c3953=null,_0x4bdf6d=null;try{if(_0x382b7b==_0x80eefb([0x47,0x50,0x4c]))return _0x80eefb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5874e2=_0x267afd(),!_0x5874e2)return _0x80eefb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5874e2[_0x80eefb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4bdf6d=_0x32115f(_0x5874e2[_0x80eefb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5874e2[_0x80eefb([0x6a,0x74,0x69])])),await _0x3d1c19()?_0x18d5e3()?_0x37aa5a()?_0x80eefb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x278250()?(_0x5874e2[_0x80eefb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x80eefb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c3953=_0x4770d0(_0x80eefb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x255678()):_0x80eefb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x80eefb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x80eefb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x80eefb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37aa5a(){const _0x2d1b50=[_0x80eefb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x80eefb([0x74,0x72,0x69,0x61,0x6c])][_0x80eefb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5874e2[_0x80eefb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3feb56/0x3e8:0xe10*_0x4fee83;return _0x5874e2[_0x80eefb([0x65,0x78,0x70])]<_0x2d1b50;}function _0x18d5e3(){const _0x14f2cb=_0x5874e2[_0x80eefb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x14f2cb)return!0x1;if(_0x14f2cb[_0x80eefb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80eefb([0x2a])))return!0x0;if(_0x14f2cb[_0x80eefb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80eefb([0x43,0x4d,0x54])))return!0x0;if(_0x14f2cb[_0x80eefb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80eefb([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x3535e0())return!0x0;if(_0x14f2cb[_0x80eefb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80eefb([0x52,0x43,0x4d,0x54]))){if(_0x313d38())return!0x0;if(_0x4a6892()||_0x50df3e())return!0x0;}return!0x1;}function _0x278250(){const _0x3416b6=_0x5874e2[_0x80eefb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3416b6||0x0==_0x3416b6[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50ebc2}=new URL(window[_0x80eefb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3416b6[_0x80eefb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50ebc2))return!0x0;const _0x263753=_0x50ebc2[_0x80eefb([0x73,0x70,0x6c,0x69,0x74])](_0x80eefb([0x2e]));return _0x3416b6[_0x80eefb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd1abde=>_0xd1abde[_0x80eefb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80eefb([0x2a])))[_0x80eefb([0x6d,0x61,0x70])](_0x447427=>_0x447427[_0x80eefb([0x73,0x70,0x6c,0x69,0x74])](_0x80eefb([0x2e])))[_0x80eefb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x334d57=>_0x334d57[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x263753[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x80eefb([0x6d,0x61,0x70])](_0xf63a88=>Array(_0x263753[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf63a88[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x80eefb([0x66,0x69,0x6c,0x6c])](_0xf63a88[0x0]===_0x80eefb([0x2a])?_0x80eefb([0x2a]):'')[_0x80eefb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf63a88))[_0x80eefb([0x73,0x6f,0x6d,0x65])](_0xca1e38=>_0x263753[_0x80eefb([0x65,0x76,0x65,0x72,0x79])]((_0x5f2bf5,_0x55eeaf)=>_0xca1e38[_0x55eeaf]===_0x5f2bf5||_0xca1e38[_0x55eeaf]===_0x80eefb([0x2a])));}function _0x255678(){return _0x3c3953&&_0x4bdf6d?new window[(_0x80eefb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cd041,_0x25eaf5)=>{_0x3c3953[_0x80eefb([0x74,0x68,0x65,0x6e])](_0x3cd041,_0x25eaf5),_0x4bdf6d[_0x80eefb([0x74,0x68,0x65,0x6e])](_0x5aeaab=>{_0x5aeaab!=_0x80eefb([0x56,0x61,0x6c,0x69,0x64])&&_0x3cd041(_0x5aeaab);},_0x25eaf5);}):_0x3c3953||_0x4bdf6d||_0x80eefb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32115f(_0x4f10aa,_0x40cc6c){return new window[(_0x80eefb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x351eb4=>{if(_0x2a58d8())return _0x351eb4(_0x80eefb([0x56,0x61,0x6c,0x69,0x64]));_0xd40373(),_0x376525[_0x80eefb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x80eefb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bd080=!0x1;const _0xfd93b=_0xc202d9();function _0x5ea0c2(_0x3d3f54){return!!_0x3d3f54&&(typeof _0x3d3f54===_0x80eefb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d3f54===_0x80eefb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d3f54[_0x80eefb([0x74,0x68,0x65,0x6e])]===_0x80eefb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d3f54[_0x80eefb([0x63,0x61,0x74,0x63,0x68])]===_0x80eefb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xacf296(_0x226419){_0x380d73(_0x226419)[_0x80eefb([0x74,0x68,0x65,0x6e])](_0x3b98e8=>{if(!_0x3b98e8||_0x3b98e8[_0x80eefb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x80eefb([0x6f,0x6b]))return _0x80eefb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x324f08(_0x4747ea(_0xfd93b+_0x40cc6c))!=_0x3b98e8[_0x80eefb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x80eefb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x80eefb([0x56,0x61,0x6c,0x69,0x64]);})[_0x80eefb([0x74,0x68,0x65,0x6e])](_0x2b2c7e=>(_0x55d7b5(),_0x2b2c7e),()=>{const _0x2ff15a=_0x2002bd();return null==_0x2ff15a?(_0x55d7b5(),_0x80eefb([0x56,0x61,0x6c,0x69,0x64])):_0x80eefb(_0x3feb56-_0x2ff15a>(0x574a8eb3^_0x24f432)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x80eefb([0x74,0x68,0x65,0x6e])](_0x351eb4)[_0x80eefb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x351eb4(_0x80eefb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5eab59=0x7370e433^_0x24f432;function _0x55d7b5(){const _0x1ccc42=_0x80eefb([0x6c,0x6c,0x63,0x74,0x2d])+_0x324f08(_0x4747ea(_0x4f10aa)),_0x816613=_0x1eab30(_0x324f08(window[_0x80eefb([0x4d,0x61,0x74,0x68])][_0x80eefb([0x63,0x65,0x69,0x6c])](_0x3feb56/_0x5eab59)));window[_0x80eefb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x80eefb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ccc42,_0x816613);}function _0x2002bd(){const _0x5c745f=_0x80eefb([0x6c,0x6c,0x63,0x74,0x2d])+_0x324f08(_0x4747ea(_0x4f10aa)),_0x48f52e=window[_0x80eefb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x80eefb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c745f);return _0x48f52e?window[_0x80eefb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1eab30(_0x48f52e),0x10)*_0x5eab59:null;}function _0x380d73(_0x204f7c){return new window[(_0x80eefb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6e78f1,_0x236a26)=>{_0x204f7c[_0x80eefb([0x74,0x68,0x65,0x6e])](_0x6e78f1,_0x236a26),window[_0x80eefb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x236a26,0x7347de73^_0x24f432);});}}_0x376525[_0x80eefb([0x6f,0x6e])](_0x80eefb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40f9e9,_0x54f3f2)=>{if(_0x54f3f2[0x0]!=_0x4f10aa)return _0x351eb4(_0x80eefb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54f3f2[0x1]={..._0x54f3f2[0x1],[_0x80eefb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfd93b};},{[_0x80eefb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x80eefb([0x68,0x69,0x67,0x68])}),_0x376525[_0x80eefb([0x6f,0x6e])](_0x80eefb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2378d1=>{_0x5ea0c2(_0x2378d1[_0x80eefb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bd080=!0x0,_0xacf296(_0x2378d1[_0x80eefb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x80eefb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x80eefb([0x6c,0x6f,0x77])}),_0x10ca35[_0x80eefb([0x74,0x68,0x65,0x6e])](()=>{_0x5bd080||_0x351eb4(_0x80eefb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a58d8(){return _0x376525[_0x80eefb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x80eefb([0x76,0x69,0x65,0x77])][_0x80eefb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x80eefb([0x61,0x75,0x74,0x6f]);}function _0xd40373(){_0x376525[_0x80eefb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x80eefb([0x76,0x69,0x65,0x77])][_0x80eefb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x80eefb([0x61,0x75,0x74,0x6f]);}}function _0x4770d0(_0x52a22d){const _0x4249cc=[new window[(_0x80eefb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x356001=>setTimeout(_0x356001,0x734f347f^_0x24f432)),_0x10ca35[_0x80eefb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x80eefb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x289be1=>{let _0x52f876=0x0;_0x376525[_0x80eefb([0x6d,0x6f,0x64,0x65,0x6c])][_0x80eefb([0x6f,0x6e])](_0x80eefb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f97dd,_0xd0159f)=>{_0xd0159f[0x0][_0x80eefb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52f876++,_0x52f876==(0x73460f5b^_0x24f432)&&(_0x289be1(),_0x4f97dd[_0x80eefb([0x6f,0x66,0x66])]());});}))];return window[_0x80eefb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x80eefb([0x72,0x61,0x63,0x65])](_0x4249cc)[_0x80eefb([0x74,0x68,0x65,0x6e])](()=>_0x52a22d);}async function _0xcca9f1(){await _0x10ca35,_0x376525[_0x80eefb([0x6d,0x6f,0x64,0x65,0x6c])][_0x80eefb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f655d,_0x376525[_0x80eefb([0x6d,0x6f,0x64,0x65,0x6c])][_0x80eefb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f655d,_0x376525[_0x80eefb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x80eefb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3535e0(){return window[_0x80eefb([0x67,0x6c,0x6f,0x62])]&&window[_0x80eefb([0x67,0x6c,0x6f,0x62])][_0x80eefb([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x313d38(){return _0x45d7f7(_0x80eefb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2601cd(_0x80eefb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x80eefb([0x73,0x74,0x61,0x74,0x65])]==_0x80eefb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4a6892(){return _0x45d7f7(_0x80eefb([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 _0x50df3e(){return _0x45d7f7(_0x80eefb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xab00e2(_0x51a393){const _0x41aae0=_0x32c558();_0x376525[_0x41aae0]=_0x80eefb([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51a393,_0x51a393!=_0x80eefb([0x56,0x61,0x6c,0x69,0x64])&&_0xcca9f1();}function _0x32c558(){const _0x27e983=window[_0x80eefb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x80eefb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x80eefb([0x6e,0x6f,0x77])]())[_0x80eefb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x80eefb([0x2e]),'');let _0x2eb75c=_0x80eefb([0x4b]);for(let _0x334467=0x0;_0x334467<_0x27e983[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x334467+=0x2){let _0x5db294=window[_0x80eefb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27e983[_0x80eefb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x334467,_0x334467+0x2));_0x5db294>=_0x5b283f[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5db294-=_0x5b283f[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2eb75c+=_0x5b283f[_0x5db294];}return _0x2eb75c;}function _0x267afd(){const _0x2acb5a=_0x382b7b[_0x80eefb([0x73,0x70,0x6c,0x69,0x74])](_0x80eefb([0x2e]));if(0x3!=_0x2acb5a[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bd393(_0x2acb5a[0x1]);function _0x1bd393(_0x1e0746){const _0x4107be=_0x48e021(_0x1e0746);return _0x4107be&&_0x148717()?_0x4107be:null;function _0x148717(){const _0x142375=_0x4107be[_0x80eefb([0x6a,0x74,0x69])],_0x2afe94=window[_0x80eefb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x142375[_0x80eefb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x142375[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19afc9={..._0x4107be,[_0x80eefb([0x6a,0x74,0x69])]:_0x142375[_0x80eefb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x142375[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19afc9[_0x80eefb([0x76,0x63])],_0x4747ea(_0x19afc9)==_0x2afe94;}}}async function _0x3d1c19(){let _0x2a1917=!0x0;try{const _0x2ca566=_0x382b7b[_0x80eefb([0x73,0x70,0x6c,0x69,0x74])](_0x80eefb([0x2e])),[_0x353f7c,_0x1f5304,_0x3df1b7]=_0x2ca566;return _0x2b60e5(_0x353f7c),await _0x5efc02(_0x353f7c,_0x1f5304,_0x3df1b7),_0x2a1917;}catch{return!0x1;}function _0x2b60e5(_0x154b17){const _0x328799=_0x48e021(_0x154b17);_0x328799&&_0x328799[_0x80eefb([0x61,0x6c,0x67])]==_0x80eefb([0x45,0x53,0x32,0x35,0x36])||(_0x2a1917=!0x1);}async function _0x5efc02(_0x35137a,_0x353c33,_0x170b22){const _0x58df55=window[_0x80eefb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x80eefb([0x66,0x72,0x6f,0x6d])](_0x496ae8(_0x170b22),_0x4b7197=>_0x4b7197[_0x80eefb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1127e6=new window[(_0x80eefb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x80eefb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35137a+_0x80eefb([0x2e])+_0x353c33),_0xc3233f=window[_0x80eefb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x80eefb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc3233f)return;const _0x3e981c=await _0xc3233f[_0x80eefb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x80eefb([0x6a,0x77,0x6b]),_0x2db763,{[_0x80eefb([0x6e,0x61,0x6d,0x65])]:_0x80eefb([0x45,0x43,0x44,0x53,0x41]),[_0x80eefb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x80eefb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x80eefb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc3233f[_0x80eefb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x80eefb([0x6e,0x61,0x6d,0x65])]:_0x80eefb([0x45,0x43,0x44,0x53,0x41]),[_0x80eefb([0x68,0x61,0x73,0x68])]:{[_0x80eefb([0x6e,0x61,0x6d,0x65])]:_0x80eefb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e981c,_0x58df55,_0x1127e6)||(_0x2a1917=!0x1);}}function _0x48e021(_0x310c7b){return _0x310c7b[_0x80eefb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x80eefb([0x65,0x79]))?JSON[_0x80eefb([0x70,0x61,0x72,0x73,0x65])](_0x496ae8(_0x310c7b)):null;}function _0x496ae8(_0x1c2fd4){return window[_0x80eefb([0x61,0x74,0x6f,0x62])](_0x1c2fd4[_0x80eefb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x80eefb([0x2b]))[_0x80eefb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x80eefb([0x2f])));}function _0x4747ea(_0x235904){let _0x5df478=0x1505;function _0xf095a9(_0x28efb8){for(let _0x907d54=0x0;_0x907d54<_0x28efb8[_0x80eefb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x907d54++){const _0x3d1912=_0x28efb8[_0x80eefb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x907d54);_0x5df478=(_0x5df478<<0x5)+_0x5df478+_0x3d1912,_0x5df478&=_0x5df478;}}function _0x372186(_0x41ca1f){Array[_0x80eefb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41ca1f)?_0x41ca1f[_0x80eefb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x372186):_0x41ca1f&&typeof _0x41ca1f==_0x80eefb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x80eefb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41ca1f)[_0x80eefb([0x73,0x6f,0x72,0x74])]()[_0x80eefb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x108cdc,_0x43fc48])=>{_0xf095a9(_0x108cdc),_0x372186(_0x43fc48);}):_0xf095a9(window[_0x80eefb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41ca1f));}return _0x372186(_0x235904),_0x5df478>>>0x0;}function _0x324f08(_0x57de14){return _0x57de14[_0x80eefb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x80eefb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x80eefb([0x30]));}function _0x1eab30(_0x28a83a){return _0x28a83a[_0x80eefb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x80eefb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x80eefb([0x6a,0x6f,0x69,0x6e])]('');}function _0x45d7f7(_0x35793f){return _0x376525[_0x80eefb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x80eefb([0x68,0x61,0x73])](_0x35793f);}function _0x2601cd(_0x3c6a2f){return _0x376525[_0x80eefb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x80eefb([0x67,0x65,0x74])](_0x3c6a2f);}function _0x4f655d(){}function _0x80eefb(_0x246a9a){return _0x246a9a['map'](_0x36485f=>String['fromCharCode'](_0x36485f))['join']('');}_0xab00e2(await _0x200eb5());}(this);}['destroy'](){const _0x43b884=this['editor']['plugins']['get'](o),_0x257251=this['editor']['config']['get']('collaboration.channelId');for(const _0x4d7c23 of _0x43b884['getCommentThreads']({'channelId':_0x257251}))_0x43b884['_detachCommentThread'](_0x4d7c23['id']),_0x43b884['_threads']['delete'](_0x4d7c23['id']);super['destroy']();}['hasMarkerForId'](_0x474e2f){return this['getAllMarkersForId'](_0x474e2f)['length']>0x0;}['getAllMarkersForId'](_0xeabb4e){const _0x549952=[];for(const _0x4927d6 of this['editor']['model']['markers'])_0x4927d6['name']['startsWith']('comment:'+_0xeabb4e)&&_0x549952['push'](_0x4927d6);return _0x549952;}['scrollToThreadMarker'](_0x5edff5){setTimeout(()=>{const _0x290ac9=this['_getTargetForId'](_0x5edff5);if(!_0x290ac9)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5edff5&&nt({'target':_0x290ac9[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4cc2a3){this['editor']['model']['change'](()=>{for(const _0x2095bf of this['getAllMarkersForId'](_0x4cc2a3))this['editor']['editing']['reconvertMarker'](_0x2095bf);});}['_attachArchivedThread'](_0x43113a){const _0x1fbf4b=this['editor']['plugins']['get'](o),_0x222d8b=this['editor']['plugins']['get'](b),_0x16bd63=_0x1fbf4b['getCommentThread'](_0x43113a);if(!_0x16bd63['isAttached']){const _0x13f893=_0x16bd63['attachTo'](()=>this['_getTargetForId'](_0x16bd63['id']));_0x222d8b['registerAnnotation'](_0x13f893),_0x16bd63['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x481a17=this['editor'],_0xfc8d9a=_0x481a17['plugins']['get'](it);_0x481a17['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x3bd2db,_0xa501b6)=>{const {id:_0x1b9d20}=ft(_0x3bd2db['markerName']),_0x4a4d71=_0x481a17['plugins']['get'](o)['getCommentThread'](_0x1b9d20),_0x4f6687=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x1b9d20;let _0x5b2523;if(_0x4a4d71&&_0x4a4d71['isResolved']&&!_0x4f6687&&_0x3bd2db['item'])return _0xa501b6['consumable']['consume'](_0x3bd2db['item'],'addMarker:'+_0x3bd2db['markerName']),_0xa501b6['consumable']['consume'](_0x3bd2db['item'],'removeMarker:'+_0x3bd2db['markerName']),null;const _0x2d21f8=['ck-comment-marker'];return _0x4f6687&&_0x2d21f8['push']('ck-comment-marker--active'),_0x5b2523=_0x4a4d71?.['length']?_0x4a4d71['comments']['first']['author']['id']:_0xfc8d9a['me']['id'],{'classes':_0x2d21f8,'attributes':{'data-comment':_0x1b9d20,'data-author-id':_0x5b2523}};}}),_0x481a17['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x178125,{options:_0xe42780})=>{if(_0xe42780['showCommentHighlights'])return null;const _0x15e3b1=_0x481a17['plugins']['get'](o),_0x2d296d=_0x481a17['model']['markers']['get'](_0x178125),{id:_0x1ad591,part:_0x17af84}=ft(_0x178125);return _0x2d296d&&!_0x2d296d['affectsData']||_0xe42780['ignoreResolvedComments']&&_0x15e3b1['getCommentThread'](_0x1ad591)?.['isResolved']?null:{'group':'comment','name':_0x17af84?_0x1ad591+':'+_0x17af84:_0x1ad591};}}),_0x481a17['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3f5eb1,{writer:_0x49a565})=>_0x49a565['createElement']('$marker',{'data-name':'comment:'+_0x3f5eb1['getAttribute']('id')})}),_0x481a17['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x739f98=this['editor'],_0x20eb6e=_0x739f98['plugins']['get'](o),_0x48cd0f=new Set(),_0x35b62f=new Set();_0x739f98['model']['document']['registerPostFixer'](_0x2d959a=>{let _0x274150=!0x1;for(const {name:_0x4cd72d,data:_0x498390}of _0x739f98['model']['document']['differ']['getChangedMarkers']()){const {group:_0x14bbfb,id:_0x3752b0}=ft(_0x4cd72d);let _0x52a8ec=_0x498390['newRange'];if('comment'!==_0x14bbfb||!_0x52a8ec)continue;const _0x1c9d26='$graveyard'===_0x52a8ec['root']['rootName'];_0x1c9d26||(_0x52a8ec=ht(_0x52a8ec,_0x739f98['model']),!_0x52a8ec||_0x52a8ec['isCollapsed']||!_0x498390['newRange']||_0x52a8ec['isEqual'](_0x498390['newRange']))?_0x739f98['model']['hasContent'](_0x52a8ec)&&!_0x1c9d26?this['isThreadsLoadingPaused']?_0x48cd0f['add'](_0x4cd72d):this['_handleThreadMarker'](_0x4cd72d,_0x3752b0):(_0x35b62f['add'](_0x4cd72d),_0x48cd0f['delete'](_0x4cd72d),_0x2d959a['removeMarker'](_0x4cd72d),_0x274150=!0x0):(_0x2d959a['updateMarker'](_0x4cd72d,{'range':_0x52a8ec}),_0x274150=!0x0);}return _0x274150;}),this['on']('change:isThreadsLoadingPaused',(_0x1fd1db,_0x103520,_0x391a12)=>{if(!_0x391a12&&_0x48cd0f['size'])for(const _0x41728e of _0x48cd0f){const {id:_0x4a91aa}=ft(_0x41728e);_0x48cd0f['delete'](_0x41728e),_0x739f98['model']['markers']['get'](_0x41728e)&&this['_handleThreadMarker'](_0x41728e,_0x4a91aa);}}),this['listenTo'](_0x739f98['model']['document'],'change',()=>{for(const {name:_0x259a0b,data:{newRange:_0xd42892}}of _0x739f98['model']['document']['differ']['getChangedMarkers']()){const {group:_0xd72cef,id:_0x4a2346}=ft(_0x259a0b);if('comment'!==_0xd72cef)continue;const _0xfe1724=_0x20eb6e['getCommentThread'](_0x4a2346),_0x91578f=this['hasMarkerForId'](_0x4a2346);_0xfe1724&&(!_0xfe1724['_hasTargetInContent']&&_0xd42892&&_0x739f98['editing']['view']['once']('render',()=>{const _0x5280ef=_0x739f98['plugins']['get'](y),_0x40dc0a=_0x20eb6e['_threadToController']['get'](_0xfe1724)['view'];_0x5280ef['getByInnerView'](_0x40dc0a)['refreshVisibility']();},{'priority':'low'}),_0xfe1724['_hasTargetInContent']=_0x91578f||!!_0xd42892),_0xd42892||(_0x35b62f['add'](_0x259a0b),_0x48cd0f['delete'](_0x259a0b));}for(const _0x3deb01 of _0x35b62f){const {id:_0x2fa1ac}=ft(_0x3deb01),_0xdc18f2=_0x20eb6e['getCommentThread'](_0x2fa1ac);if(_0x48cd0f['delete'](_0x3deb01),!_0xdc18f2)continue;const _0x36d520=this['hasMarkerForId'](_0x2fa1ac);_0x36d520||_0xdc18f2['isSubmitted']?_0x36d520||_0xdc18f2['unlinkedAt']||_0xdc18f2['setUnlinkedAt'](new Date()):_0xdc18f2['remove']();}_0x35b62f['clear']();});}['_handleInitialThreads'](_0x171370){_0x171370['forEach'](_0x57a79b=>{_0x57a79b['unlinkedAt']&&this['_attachArchivedThread'](_0x57a79b['id']);});}['_getTargetForId'](_0x393957){const _0x779180=this['editor'],_0x10ccad=this['getAllMarkersForId'](_0x393957);return et(_0x779180['editing'],_0x10ccad);}['_getTextContext'](_0x2c63f9){const _0x1f84b2=this['getAllMarkersForId'](_0x2c63f9);let _0x9a35d0='',_0x1cee2c=!0x1;for(const _0x340c28 of _0x1f84b2){const _0x13f17f=_0x340c28['getRange']();for(const _0x262aab of Array['from'](_0x13f17f['getItems']()))_0x262aab['is']('$textProxy')?(_0x9a35d0&&_0x1cee2c&&(_0x9a35d0+='\x20',_0x1cee2c=!0x1),_0x9a35d0+=_0x262aab['data']):_0x1cee2c=!0x0;_0x1cee2c=!0x0;}return _0x9a35d0['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x262f90,_0x198f47){const _0x4bda03=this['editor'],_0x4425f6=_0x4bda03['plugins']['get'](o);let _0x50e27c=_0x4425f6['getCommentThread'](_0x198f47);const _0x3e152e=_0x4bda03['config']['get']('collaboration.channelId'),_0x25e035=_0x4bda03['plugins']['get'](b);if(_0x50e27c&&(_0x50e27c['unlinkedAt']&&_0x50e27c['setUnlinkedAt'](null),_0x50e27c['isAttached']))return _0x50e27c;return!this['getAllMarkersForId'](_0x198f47)[0x0]['managedUsingOperations']?_0x4bda03['editing']['view']['once']('render',()=>{if(_0x4425f6['getCommentThread'](_0x198f47))return;const _0x485ab0=_0x4bda03['plugins']['get'](y);_0x50e27c=_0x4425f6['openNewCommentThread']({'channelId':_0x3e152e,'threadId':_0x198f47,'target':()=>this['_getTargetForId'](_0x198f47),'context':{'type':'text','value':this['_getTextContext'](_0x198f47)}});const _0x4008c8=_0x4425f6['_threadToController']['get'](_0x50e27c)['view'],_0x4b9f75=_0x485ab0['getByInnerView'](_0x4008c8);_0x4b9f75&&_0x25e035['registerAnnotation'](_0x4b9f75);},{'priority':'low'}):_0x4425f6['fetchCommentThread']({'channelId':_0x3e152e,'threadId':_0x198f47})['then'](_0xd34853=>{if('destroyed'!==_0x4bda03['state']){if(_0x50e27c=_0xd34853,_0x50e27c&&!_0x50e27c['isAttached']){const _0x549489=_0x50e27c['attachTo'](()=>this['_getTargetForId'](_0x198f47));_0x25e035['registerAnnotation'](_0x549489),_0x50e27c['isResolved']&&this['_reconvertMarkers'](_0x198f47);}else{if(!_0x50e27c){const _0x19db30=this['getAllMarkersForId'](_0x198f47);_0x4bda03['model']['change'](_0x4c4479=>{for(const _0x2ddd4a of _0x19db30)_0x4c4479['removeMarker'](_0x2ddd4a);});}}}}),_0x50e27c;}['_handleThreadMarker'](_0x15d465,_0x101ae1){const _0x5284e0=this['_attachMarkerToThread'](_0x15d465,_0x101ae1);_0x5284e0&&!_0x5284e0['context']&&_0x5284e0['setContext']({'type':'text','value':this['_getTextContext'](_0x101ae1)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5acf5b=this['editor'];rt(_0x5acf5b['model'],({left:_0x4d03c8,entered:_0x473f74})=>{for(const _0x145e73 of _0x4d03c8)if(mt(_0x145e73)){_0x5acf5b['ui']['ariaLiveAnnouncer']['announce'](N(_0x5acf5b['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x151569 of _0x473f74)if(mt(_0x151569)){_0x5acf5b['ui']['ariaLiveAnnouncer']['announce'](N(_0x5acf5b['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x5a6c8d)));break;}});}}function dt(_0x22113b,_0x5ecec0){return _0x5ecec0?_0x22113b+':'+_0x5ecec0:_0x22113b;}function ht(_0x210573,_0x5d8261){const _0x283641=_0x5d8261['schema'],_0x560354=_0x5d8261['createRange'](_0x210573['start']);for(const _0xe2fcfc of _0x210573['getWalker']()){const {type:_0xdd7d7c,item:_0x1328b,nextPosition:_0x4694ac}=_0xe2fcfc;if('text'===_0xdd7d7c||_0x283641['isObject'](_0x1328b)){const _0x5975b7=_0x5d8261['createPositionBefore'](_0x1328b);_0x560354['isCollapsed']&&(_0x560354['start']=_0x5975b7),_0x560354['end']=_0x4694ac;}}return _0x560354;}function mt(_0xf523bd){return'comment'===ft(_0xf523bd['name'])['group'];}class s extends _0x13c17d{['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 _0x44924f=this['editor'],_0x599410=_0x44924f['plugins']['get'](o),_0x9d49bc=_0x44924f['plugins']['get'](r),_0x2811e4=_0x44924f['plugins']['get'](y),_0x4edd35=_0x44924f['plugins']['get'](b);_0x44924f['ui']['componentFactory']['add']('comment',()=>{const _0x1fe61a=this['_createUIButton'](_0x5f0a6a);return _0x1fe61a['tooltip']=!0x0,_0x1fe61a;}),_0x44924f['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x1e0edf)),_0x4edd35['addSourceCollector'](()=>{const _0x23f341=[];for(const [_0x45396d,_0x2206a8]of _0x599410['_threadToController']){const _0x185a4f=_0x9d49bc['getAllMarkersForId'](_0x45396d['id']),_0x485f23=_0x185a4f['map'](_0x387c00=>_0x387c00['getRange']());_0x185a4f['length']>0x0&&_0x23f341['push']([_0x2206a8['view'],_0x485f23]);}return _0x23f341;}),this['listenTo'](_0x2811e4,'change:activeAnnotations',(_0x3899df,_0x2b0bce,_0x459aa6)=>{const _0x255fec=Array['from'](_0x459aa6)['map'](_0x338c3e=>_0x338c3e['innerView'])['find'](_0x26eb35=>_0x599410['_viewToController']['has'](_0x26eb35));if(!_0x255fec)return void(_0x9d49bc['activeMarker']=null);const _0xbc75c3=_0x599410['_viewToController']['get'](_0x255fec)['model']['id'],_0x201616='comment:'+_0xbc75c3;_0xbc75c3&&_0x9d49bc['hasMarkerForId'](_0xbc75c3)?_0x9d49bc['activeMarker']=_0x201616:_0x9d49bc['activeMarker']&&(_0x9d49bc['activeMarker']=null);}),this['listenTo'](_0x599410,'removeCommentThread',(_0x230081,{threadId:_0x26583e,isFromAdapter:_0x38340c})=>{!_0x38340c&&_0x44924f['ui']['focusTracker']['isFocused']&&_0x9d49bc['hasMarkerForId'](_0x26583e)&&_0x44924f['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x599410,'addComment',(_0xfccce1,{threadId:_0x412065,isFromAdapter:_0x72d57d})=>{if(_0x72d57d||!_0x9d49bc['hasMarkerForId'](_0x412065)||!_0x599410['hasCommentThread'](_0x412065))return;0x1===_0x599410['getCommentThread'](_0x412065)['length']&&(_0x44924f['editing']['view']['focus'](),_0xfccce1['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5dfe62=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3aeee0;for(const _0x5ae9de in _0x5dfe62){const _0x588382=_0x5ae9de,_0x5c361f=_0x5dfe62[_0x588382];if('commentsLicenseKeyValid'==_0x5c361f||'commentsLicenseKeyInvalid'==_0x5c361f||'commentsLicenseKeyExpired'==_0x5c361f||'commentsLicenseKeyDomainLimit'==_0x5c361f||'commentsLicenseKeyNotAllowed'==_0x5c361f||'commentsLicenseKeyEvaluationLimit'==_0x5c361f||'commentsLicenseKeyUsageLimit'==_0x5c361f){delete _0x5dfe62[_0x588382],_0x3aeee0=_0x5c361f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3aeee0&&_0x5dfe62['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3aeee0&&_0x5dfe62['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3aeee0&&_0x5dfe62['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3aeee0&&_0x5dfe62['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3aeee0&&_0x5dfe62['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x3aeee0&&_0x5dfe62['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x281bca){const _0x3c2db5=this['editor'],_0x51fb75=new _0x281bca(_0x3c2db5['locale']),_0x2b4681=_0x3c2db5['commands']['get']('addCommentThread');return _0x51fb75['set']({'label':N(_0x3c2db5['locale'],'Comment'),'icon':_0x5131b4}),_0x51fb75['bind']('isEnabled')['to'](_0x2b4681,'isEnabled',_0x2b4681,'hasContent',(_0x516b1e,_0x5cea60)=>_0x516b1e&&_0x5cea60),this['listenTo'](_0x51fb75,'execute',()=>{_0x2b4681['execute']();}),_0x51fb75;}}class i extends _0x13c17d{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x561153){super(_0x561153),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x37119c,_0x45a89e,_0x2394da)=>{_0x2394da?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x538cfa,_0x5ae77b]of this['editor']['commands'])_0x5ae77b['affectsData']&&'addCommentThread'!==_0x538cfa&&_0x5ae77b['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 _0x3b78d9=this['editor']['editing']['view']['document'];this['listenTo'](_0x3b78d9,'cut',_0xeb0a97=>_0xeb0a97['stop'](),{'priority':'highest'}),this['listenTo'](_0x3b78d9,'clipboardInput',_0x211d15=>_0x211d15['stop'](),{'priority':'highest'}),this['listenTo'](_0x3b78d9,'delete',_0x25941f=>_0x25941f['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x146760,_0xa8b0b6]of this['editor']['commands'])_0xa8b0b6['affectsData']&&'addCommentThread'!==_0x146760&&_0xa8b0b6['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 _0x551749{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x260411){super(_0x260411),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x3936b5=this['context']['plugins']['get'](y);this['listenTo'](_0x3936b5,'_activateAnnotation',(_0x2ca2a5,_0x53fcb8)=>{for(const _0x19a20e of this['activeUIs']){const _0x504de7=this['_uis']['get'](_0x19a20e);(0x0,this['uisData']['get'](_0x19a20e)['filter'])(_0x53fcb8)&&_0x504de7['setActiveAnnotation'](_0x53fcb8);}}),this['listenTo'](_0x3936b5,'_deactivateAllAnnotations',()=>{for(const _0x344143 of this['activeUIs']){this['_uis']['get'](_0x344143)['setActiveAnnotation'](null);}}),this['listenTo'](_0x3936b5['_visibleAnnotations'],'add',(_0x5a699f,_0x5f5db7)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5f5db7);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x60c847){return this['activeUIs']['has'](_0x60c847);}['activate'](_0x2d9e6d,_0x2bc74f=this['defaultFilter']){const _0x1c4601=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x2d9e6d))throw new _0x1dd71b('annotationsuis-missing-ui',this,{'uiName':_0x2d9e6d});this['isActive'](_0x2d9e6d)&&this['deactivate'](_0x2d9e6d),this['activeUIs']['add'](_0x2d9e6d);const _0x2234b0=new S();v({'source':_0x1c4601['_visibleAnnotations'],'target':_0x2234b0,'filter':_0x2bc74f}),this['uisData']['set'](_0x2d9e6d,{'collection':_0x2234b0,'filter':_0x2bc74f});const _0x4dd33d=this['_uis']['get'](_0x2d9e6d);_0x4dd33d['attach'](_0x2234b0),this['listenTo'](_0x4dd33d,'change:activeAnnotation',(_0x4814c2,_0x3f1dac,_0x1c2f62,_0x298040)=>{_0x298040&&_0x1c4601['_removeActiveAnnotation'](_0x298040),_0x1c2f62&&_0x1c4601['_addActiveAnnotation'](_0x1c2f62);});}['deactivate'](_0x28787a){if(this['activeUIs']['delete'](_0x28787a),!this['_uis']['has'](_0x28787a))throw new _0x1dd71b('annotationsuis-missing-ui',this,{'uiName':_0x28787a});const _0x53a137=this['_uis']['get'](_0x28787a);_0x53a137['detach'](),this['stopListening'](_0x53a137),this['uisData']['get'](_0x28787a)['collection']['destroy'](),this['uisData']['delete'](_0x28787a);}['switchTo'](_0x21da7b){if(!this['_uis']['has'](_0x21da7b))throw new _0x1dd71b('annotationsuis-missing-ui',this,{'uiName':_0x21da7b});const _0x429d3b=this['context']['plugins']['get'](y),_0x117bbf=Array['from'](_0x429d3b['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x21da7b);const _0x1d0fd2=this['_uis']['get'](_0x21da7b);_0x1d0fd2['setActiveAnnotation'](_0x117bbf),_0x1d0fd2['_setSelectedAnnotations']&&_0x117bbf&&_0x1d0fd2['_setSelectedAnnotations']([_0x117bbf]);}['deactivateAll'](){for(const _0x21a205 of this['activeUIs'])this['deactivate'](_0x21a205);}['register'](_0x5b5863,_0x3f758d){if(this['_uis']['has'](_0x5b5863))throw new _0x1dd71b('annotationsuis-register-already-registered');if('function'!=typeof _0x3f758d['attach']||'function'!=typeof _0x3f758d['detach']||'function'!=typeof _0x3f758d['setActiveAnnotation'])throw new _0x1dd71b('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5b5863,_0x3f758d);}['refilterAnnotations'](){const _0x205806=this['context']['plugins']['get'](y)['collection'],_0x254d1d=new Map(),_0x43ff25=Array['from'](this['activeUIs']);for(const _0x5e0a67 of this['activeUIs']){const _0x2c1bfe=this['uisData']['get'](_0x5e0a67)['collection'];for(const _0xfad1b6 of _0x2c1bfe)_0x254d1d['set'](_0xfad1b6,_0x5e0a67);}for(const _0x2e2917 of _0x205806){const _0x53b4dc=_0x254d1d['get'](_0x2e2917);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2e2917);const _0x545f2a=_0x43ff25['find'](_0x515910=>this['uisData']['get'](_0x515910)['filter'](_0x2e2917));_0x53b4dc!==_0x545f2a&&(_0x53b4dc&&this['uisData']['get'](_0x53b4dc)['collection']['remove'](_0x2e2917),_0x545f2a&&this['uisData']['get'](_0x545f2a)['collection']['add'](_0x2e2917));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x9f218c){const _0x130466=[];for(const _0x31157a of this['activeUIs']){(0x0,this['uisData']['get'](_0x31157a)['filter'])(_0x9f218c)&&_0x130466['push'](_0x31157a);}if(_0x130466['length']>0x1)throw new _0x1dd71b('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x130466,'annotationType':_0x9f218c['type']});}}const he=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x525ecb){super(_0x525ecb);const _0x47e6c2=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 _0x36aed6(),this['focusCycler']=new _0x4e1cbf({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x47e6c2['to']('class')],'style':{'minHeight':_0x47e6c2['to']('minHeight',_0x1cbe29=>'number'==typeof _0x1cbe29?he(_0x1cbe29+0xa):null)},'dir':_0x525ecb['uiLanguageDirection'],'role':'application','aria-label':N(_0x525ecb,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x525ecb,'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',_0x2492ec=>{this['_updateItemPositionInFocusables'](_0x2492ec['source']);}),this['list']['forEach'](_0x1adcb5=>{this['focusTracker']['add'](_0x1adcb5['element']),this['_updateItemPositionInFocusables'](_0x1adcb5);}),this['list']['on']('change',(_0x4a7597,_0x7aebe2)=>{for(const _0x3ff226 of _0x7aebe2['removed'])this['focusTracker']['remove'](_0x3ff226['element']),this['focusables']['remove'](_0x3ff226);for(const _0x5b1489 of _0x7aebe2['added'])this['focusTracker']['add'](_0x5b1489['element']),this['_updateItemPositionInFocusables'](_0x5b1489);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x22f704){const _0x33a7a5=this['focusables']['getIndex'](_0x22f704);let _0x5a93c9,_0x53efbf;for(const _0x143677 of this['focusables'])if(_0x22f704['top']<_0x143677['top']){_0x5a93c9=_0x143677;break;}if(_0x53efbf=_0x5a93c9?this['focusables']['getIndex'](_0x5a93c9):this['focusables']['length'],-0x1!==_0x33a7a5){if(_0x33a7a5===_0x53efbf-0x1)return;this['focusables']['remove'](_0x22f704),_0x53efbf=_0x5a93c9?this['focusables']['getIndex'](_0x5a93c9):this['focusables']['length'];}this['focusables']['add'](_0x22f704,_0x53efbf);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x43824f){super(_0x43824f),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x478a33,_0x11abcf)=>_0x478a33+_0x11abcf),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1e55e0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1e55e0['to']('isAnimationDisabled',_0x4afb23=>_0x4afb23?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1e55e0['to']('top',_0x3585c2=>Ot(_0x3585c2))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3f2328=this['element']['clientHeight'];_0x3f2328&&(this['height']=_0x3f2328);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x551749{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42a932){super(_0x42a932),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 _0x44ea11=this['context']['config']['get']('sidebar.container');_0x44ea11&&this['setContainer'](_0x44ea11);}['setContainer'](_0x473f2a){if(!g(_0x473f2a))throw new _0x1dd71b('sidebar-setcontainer-invalid-element');this['container']=_0x473f2a;}['_attachToContainer']({viewClass:_0x3a52f2='',spaceBetweenItems:_0x44835c=0x19}={}){if(!g(this['container']))throw new _0x1dd71b('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3a52f2,this['_spaceBetweenItems']=_0x44835c;}['rearrange']({removedAnnotation:_0x2d3943,previousAnnotation:_0xe6b887,nextAnnotation:_0x5fc11b}){const _0xda00b9=this['getSidebarItemView'](_0x2d3943);this['view']['list']['remove'](_0xda00b9),this['_destroySidebarItemView'](_0x2d3943),_0xe6b887&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xe6b887)),_0x5fc11b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5fc11b)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x21a97b,activatedAnnotation:_0xf8c8c0,disableAnimationOnActivatedAnnotation:_0x381a1f}){if(this['_activeAnnotation']=_0xf8c8c0,_0x21a97b){_0x21a97b['isActive']=!0x1;const _0x58f227=this['getSidebarItemView'](_0x21a97b);_0x58f227&&_0x381a1f&&(_0x58f227['isAnimationDisabled']=!0x1);}if(_0xf8c8c0){const _0x105497=this['getSidebarItemView'](_0xf8c8c0);_0x105497&&(_0xf8c8c0['isActive']=!0x0,_0x381a1f&&(_0x105497['isAnimationDisabled']=!0x0,_0x105497['top']+=0x1),this['_alignToTargetRect'](_0x105497));}}['_detachFromContainer'](_0x5c6f62){if(this['view']['element']['remove'](),_0x5c6f62){for(const _0x3422a5 of _0x5c6f62)this['_destroySidebarItemView'](_0x3422a5);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x4dfc32,_0x207f15){_0x207f15||(_0x207f15=_0x4dfc32['view']);const _0x5f0dd7=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x5f0dd7,_0x4dfc32),this['_annotationToSidebarItemView']['set'](_0x4dfc32,_0x5f0dd7),_0x5f0dd7['content']['add'](_0x207f15),this['listenTo'](_0x4dfc32['view'],'change:targetRect',(_0x553388,_0x4447b1,_0x962e50)=>{const _0x31063e=this['_getTargetTop'](_0x4dfc32,_0x962e50);_0x5f0dd7['_targetTop']!=_0x31063e&&(_0x5f0dd7['_targetTop']=_0x31063e,this['_setItemTop'](_0x5f0dd7,_0x31063e));}),this['listenTo'](_0x5f0dd7,'change:top',()=>{this['_recalculate'](_0x5f0dd7,'top');}),this['listenTo'](_0x5f0dd7,'change:bottom',()=>{this['_recalculate'](_0x5f0dd7,'bottom');}),this['_alignToTargetRect'](_0x5f0dd7);const _0x2cec4f=this['_getItemBefore'](_0x5f0dd7);if(_0x2cec4f)this['_alignAfterItem'](_0x2cec4f,_0x5f0dd7)||this['_alignToTargetRect'](_0x5f0dd7);else this['_alignToTargetRect'](_0x5f0dd7);return this['_updateLastItem'](),this['view']['list']['add'](_0x5f0dd7),_0x5f0dd7;}['_alignForTopChange'](_0x539808){if(!_0x539808['content']['length'])return;const _0x1af284=this['_getItemBefore'](_0x539808);if(!_0x1af284)return;const _0x16f24e=this['_sidebarItemViewToAnnotation']['get'](_0x1af284),_0xc403b1=this['_activeAnnotation'];_0xc403b1&&_0xc403b1===_0x16f24e?this['_alignAfterItem'](_0x1af284,_0x539808):this['_alignBeforeItem'](_0x539808,_0x1af284);}['_alignForBottomChange'](_0x29a177){if(!_0x29a177['content']['length'])return;const _0x45d028=this['_getItemAfter'](_0x29a177);if(!_0x45d028)return;const _0x1d03ab=this['_sidebarItemViewToAnnotation']['get'](_0x45d028),_0x2101c9=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2d3717=this['_activeAnnotation'];_0x2d3717&&_0x2d3717===_0x1d03ab&&_0x2101c9?(this['_alignBeforeItem'](_0x45d028,_0x29a177),this['_alignAfterItem'](_0x29a177,_0x45d028)):_0x2d3717&&_0x2d3717===_0x1d03ab?this['_alignBeforeItem'](_0x45d028,_0x29a177):this['_alignAfterItem'](_0x29a177,_0x45d028);}['_recalculate'](_0x575b37,_0x543d27){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x508251,changedProp:_0xc710da}of this['_recalculateBuffer'])'top'===_0xc710da?this['_alignForTopChange'](_0x508251):this['_alignForBottomChange'](_0x508251);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x575b37,'changedProp':_0x543d27});}['getSidebarItemView'](_0x19b7cb){return this['_annotationToSidebarItemView']['get'](_0x19b7cb);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4531cc){const _0x312aaf=this['getSidebarItemView'](_0x4531cc);this['stopListening'](_0x312aaf),this['stopListening'](_0x4531cc['view']),_0x312aaf['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4531cc),this['_sidebarItemViewToAnnotation']['delete'](_0x312aaf);}['_createSidebarView'](){const _0x278b92=new H(this['context']['locale']);return _0x278b92['render'](),this['on']('change:_lastItem',(_0x88c381,_0x41f13c,_0x3778ee,_0x5c1e04)=>{_0x5c1e04&&_0x278b92['unbind']('minHeight'),_0x3778ee?_0x278b92['bind']('minHeight')['to'](_0x3778ee,'bottom'):_0x278b92['minHeight']=null;}),_0x278b92;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2719bd){const _0x41ceb3=this['_sidebarItemViewToAnnotation']['get'](_0x2719bd),_0x54a455=_0x41ceb3&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x41ceb3)-0x1);return _0x54a455&&this['getSidebarItemView'](_0x54a455)||null;}['_getItemAfter'](_0x5a6a3e){const _0x452a32=this['_sidebarItemViewToAnnotation']['get'](_0x5a6a3e),_0x5a7950=_0x452a32&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x452a32)+0x1);return _0x5a7950&&this['getSidebarItemView'](_0x5a7950)||null;}['_alignBeforeItem'](_0x507fa5,_0x2fa5f6){_0x507fa5['updateHeight']();const _0x2974a5=G(_0x2fa5f6['bottom']+this['_spaceBetweenItems'],_0x507fa5['top']);return!!_0x2974a5&&(this['_setItemTop'](_0x2fa5f6,_0x2fa5f6['top']-_0x2974a5),!0x0);}['_alignAfterItem'](_0xd19a1e,_0x29d468){_0xd19a1e['updateHeight']();const _0x442929=G(_0xd19a1e['bottom']+this['_spaceBetweenItems'],_0x29d468['top']);return!!_0x442929&&(this['_setItemTop'](_0x29d468,_0x29d468['top']+_0x442929,!0x1),!0x0);}['_alignToTargetRect'](_0xb8d030){const _0x279a97=this['_sidebarItemViewToAnnotation']['get'](_0xb8d030);if(!_0x279a97||!_0x279a97['target']||!_0x279a97['targetRect'])return;const _0x1590a1=this['_getTargetTop'](_0x279a97,_0x279a97['targetRect']);this['_setItemTop'](_0xb8d030,_0x1590a1);}['_getTargetTop'](_0x2392b5,_0x18f87e){if(null===_0x18f87e)return 0x0;if(_0x2392b5['target']instanceof _0x489997)return _0x18f87e['top'];{const _0x2a20f4=new _0x489997(this['view']['element'])['top'];return _0x18f87e['top']-_0x2a20f4;}}['_setItemTop'](_0x1e90ed,_0x2e5355,_0x396cbf=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x396cbf&&(_0x2e5355=Math['max'](_0x2e5355,this['_getMaxAvailableTop'](_0x1e90ed))),_0x1e90ed['top']=_0x2e5355;}['_getMaxAvailableTop'](_0xd92a06){let _0x20efe1=this['_getItemBefore'](_0xd92a06),_0x2b7a2c=0x0;for(;_0x20efe1;)_0x20efe1['updateHeight'](),_0x2b7a2c+=this['_spaceBetweenItems']+_0x20efe1['height'],_0x20efe1=this['_getItemBefore'](_0x20efe1);return _0x2b7a2c;}}function G(_0x3a27fa,_0x259604){return Math['max'](_0x3a27fa-_0x259604,0x0);}function g(_0x964663){return null!==_0x964663&&'object'==typeof _0x964663&&0x1===_0x964663['nodeType'];}class e extends _0x551749{['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(_0x7d0146){super(_0x7d0146),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x30e061(),this['_refreshPositioningDebounced']=_0x2960b5(()=>{_0x7d0146['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x38ecaf=this['context']['plugins']['get'](j),_0x3a1a34=this['context']['plugins']['get'](z);_0x38ecaf['register']('wideSidebar',this),_0x3a1a34['container']&&_0x38ecaf['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3d1658){if(_0x3d1658===this['activeAnnotation'])return;const _0x3ca463=this['context']['plugins']['get'](z);_0x3ca463['_activeAnnotation']=_0x3d1658;const _0x24a6ae=this['activeAnnotation'];_0x3ca463['refresh']({'blurredAnnotation':_0x24a6ae,'activatedAnnotation':_0x3d1658}),this['activeAnnotation']=_0x3d1658;}['attach'](_0x31be38){this['annotations']=_0x31be38;const _0x4a412f=this['context']['plugins']['get'](z);if(_0x4a412f['_annotations']=_0x31be38,this['isAttached'])throw new _0x1dd71b('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4a412f,'set:container',()=>{this['detach'](),this['listenTo'](_0x4a412f,'change:container',_0x2f260a=>{_0x2f260a['off'](),this['attach'](_0x31be38);});}),_0x4a412f['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3c4fd8=_0x137eda=>{_0x137eda['updateTargetRect'](),_0x4a412f['addAnnotation'](_0x137eda);};for(const _0x3b3540 of _0x31be38)_0x3c4fd8(_0x3b3540);this['listenTo'](_0x31be38,'add',(_0x2f3937,_0x42adf9)=>{_0x3c4fd8(_0x42adf9);}),this['listenTo'](_0x31be38,'remove',(_0x3fc84c,_0x49a821,_0x3f2668)=>{_0x4a412f['rearrange']({'removedAnnotation':_0x49a821,'previousAnnotation':_0x31be38['get'](_0x3f2668-0x1),'nextAnnotation':_0x31be38['get'](_0x3f2668+0x1)}),_0x49a821===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x31be38,'focus',(_0x2aa08b,_0x1ac69f)=>{this['setActiveAnnotation'](_0x1ac69f);}),this['listenTo'](_0x31be38,'blur',()=>{this['setActiveAnnotation'](null);});const _0x275424=this['context']instanceof _0x3d5da1?this['context']['editors']:new _0x30e061([this['context']]);for(const _0x1ca9f9 of _0x275424)this['_integrateWithEditorAnnotations'](_0x1ca9f9);this['listenTo'](_0x275424,'add',(_0x5480f3,_0x18f2e8)=>{this['listenTo'](_0x18f2e8,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x18f2e8);});}),this['listenTo'](_0x275424,'remove',(_0x152744,_0x4c6094)=>{_0x4c6094['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4c6094['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x1dd71b('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4a04a5=this['context']['plugins']['get'](z);_0x4a04a5['_detachFromContainer'](this['annotations']),this['stopListening'](_0x4a04a5),this['stopListening'](this['annotations']),this['context']instanceof _0x3d5da1&&this['stopListening'](this['context']['editors']);for(const _0x2e8bf3 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2e8bf3);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x37d2b3){if(!_0x37d2b3['plugins']['has']('EditorAnnotations'))return;const _0x2e9019=_0x37d2b3['plugins']['get']('EditorAnnotations'),_0x489ece=()=>{const _0x2667db=_0x2e9019['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x2667db[0x0]||null);};this['listenTo'](_0x2e9019,'refresh',_0x489ece),this['listenTo'](_0x2e9019,'blur',(_0x4ce9c7,{isAnnotationTracked:_0x1aa4f4})=>{this['activeAnnotation']&&_0x1aa4f4(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2e9019,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x15db9c=>{_0x2e9019['hasDomSelection']()&&(_0x489ece(),_0x15db9c['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2e9019);}['_destroyEditorAnnotationsIntegration'](_0x2d331b){this['stopListening'](_0x2d331b),this['_editorAnnotations']['remove'](_0x2d331b);}}class C extends _0x5f0a6a{['counterView'];constructor(_0x6d7a67){super(_0x6d7a67);const _0x507287=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x57b9bc,_0x15e981)=>_0x57b9bc?'...':_0x15e981['toString']()),this['set']('annotationType',''),this['icon']=_0x5131b4,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x507287['to']('annotationType',_0x10e965=>'ck-annotation-counter__badge--'+_0x10e965),_0x507287['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x507287['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x551749{['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(_0x549e3d){super(_0x549e3d),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x6e7736())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x30e061(),this['_refreshPositioningDebounced']=_0x2960b5(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x3e5a37(this['context']['locale']),this['balloonPanelView']=new _0x545175(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4f801b){this['annotations']=_0x4f801b;const _0x442c3d=this['context']['plugins']['get'](z),_0x3452da=this['balloonPanelView'];if(_0x442c3d['_annotations']=_0x4f801b,this['isAttached'])throw new _0x1dd71b('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x442c3d,'set:container',()=>{this['detach'](),this['listenTo'](_0x442c3d,'change:container',_0x752b17=>{_0x752b17['off'](),this['attach'](_0x4f801b);});}),_0x442c3d['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x541581=_0x1871c1=>{const _0x500cef=new C(this['context']['locale']);_0x442c3d['addAnnotation'](_0x1871c1,_0x500cef),this['_annotationToNarrowView']['set'](_0x1871c1,_0x500cef),_0x500cef['bind']('isDirty','annotationType','number')['to'](_0x1871c1['view'],'isDirty','type','length'),_0x500cef['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x3452da['content']['first']!==_0x1871c1['view']?(this['_showBalloon'](_0x1871c1),_0x1871c1['view']['element']['focus'](),this['setActiveAnnotation'](_0x1871c1)):this['setActiveAnnotation'](null);});};for(const _0x9e680c of _0x4f801b)_0x541581(_0x9e680c);this['listenTo'](_0x4f801b,'add',(_0x4ade6e,_0x3ea571)=>{_0x541581(_0x3ea571);}),this['listenTo'](_0x4f801b,'remove',(_0x3c777c,_0x36525a,_0x279ca5)=>{this['_annotationToNarrowView']['get'](_0x36525a)['destroy'](),this['_annotationToNarrowView']['delete'](_0x36525a),_0x442c3d['rearrange']({'removedAnnotation':_0x36525a,'previousAnnotation':_0x4f801b['get'](_0x279ca5-0x1),'nextAnnotation':_0x4f801b['get'](_0x279ca5+0x1)}),_0x36525a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4f801b,'focus',(_0x2ba798,_0x481d2c)=>{this['setActiveAnnotation'](_0x481d2c);}),this['listenTo'](_0x4f801b,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x2b1d14,_0x34071f)=>{_0x34071f['keyCode']===_0x4e8a51['esc']&&_0x3452da['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x3452da['content']['first']),this['_hideBalloon'](),_0x34071f['stopPropagation'](),_0x34071f['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x25e573,_0x30618d)=>{const _0xb9e9c3=_0x30618d['target'];_0x3452da['isVisible']&&_0x3452da['element']['contains'](_0xb9e9c3)||_0x442c3d['view']['element']['contains'](_0xb9e9c3)||_0x25e573['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0xda1b31=>_0xda1b31['contains'](_0xb9e9c3))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x19927b=this['context']instanceof _0x3d5da1?this['context']['editors']:new _0x30e061([this['context']]);for(const _0x4024a3 of _0x19927b)this['_integrateWithEditorAnnotations'](_0x4024a3);this['listenTo'](_0x19927b,'add',(_0x126624,_0x2f1d25)=>{this['listenTo'](_0x2f1d25,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2f1d25);});}),this['listenTo'](_0x19927b,'remove',(_0x205cb0,_0x332665)=>{_0x332665['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x332665['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x344c86){if(_0x344c86===this['activeAnnotation'])return;const _0x2a9553=this['context']['plugins']['get'](z);if(_0x2a9553['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x344c86,'disableAnimationOnActivatedAnnotation':!0x0}),_0x344c86)_0x2a9553['getSidebarItemView'](_0x344c86)?this['_showBalloon'](_0x344c86):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x344c86;}['detach'](){if(!this['isAttached'])throw new _0x1dd71b('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2b79d5=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0xb577db=>_0xb577db['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2b79d5['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x3d5da1&&this['stopListening'](this['context']['editors']);for(const _0x3759d5 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3759d5);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'](_0x51e301){if(!_0x51e301['plugins']['has']('EditorAnnotations'))return;const _0xd1377=_0x51e301['plugins']['get']('EditorAnnotations'),_0x5d4f56=this['context']['plugins']['get'](z),_0x2312b9=this['annotations'],_0x221fa9=this['balloonPanelView'],_0x5a55b5=()=>{const _0x4206f4=_0xd1377['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x4206f4),this['setActiveAnnotation'](_0x4206f4[0x0]||null);};this['listenTo'](_0xd1377,'refresh',_0x5a55b5),this['listenTo'](_0xd1377,'blur',(_0x504946,{isAnnotationTracked:_0x4c3539})=>{this['activeAnnotation']&&_0x4c3539(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0xd1377,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x2312b9,'blur',_0x5d0ff5=>{_0xd1377['hasDomSelection']()&&_0x5d0ff5['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x22ff5f,_0x529403)=>{const _0x2e9f59=_0x529403['target'];_0x221fa9['isVisible']&&_0x221fa9['element']['contains'](_0x2e9f59)||_0x5d4f56['view']['element']['contains'](_0x2e9f59)||this['activeAnnotation']&&_0xd1377['hasDomSelection']()&&(_0x5a55b5(),_0x22ff5f['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0xd1377);}['_destroyEditorAnnotationsIntegration'](_0x51a25d){_0x51a25d&&(this['stopListening'](_0x51a25d),this['_editorAnnotations']['remove'](_0x51a25d));}['_setSelectedAnnotations'](_0x4a60ec){for(const _0x3d4867 of this['_selectedAnnotations'])_0x4a60ec['includes'](_0x3d4867)||this['_manuallyClosedAnnotationViews']['delete'](_0x3d4867['view']);this['_selectedAnnotations']=_0x4a60ec;}['_refreshPositioning'](){const _0x4819cb=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x4819cb['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x33d30a){if(this['_manuallyClosedAnnotationViews']['has'](_0x33d30a['view']))return;const _0x53f852=this['balloonPanelView']['content']['first'];_0x53f852!==_0x33d30a['view']?(_0x53f852&&this['_detachListeners'](_0x53f852),this['_attachListeners'](_0x33d30a['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x33d30a['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x5d5810=this['balloonPanelView']['content']['first'],_0x46b2b7=_0x5d5810&&this['annotations']['getByView'](_0x5d5810);if(!_0x46b2b7||!this['_annotationToNarrowView']['has'](_0x46b2b7))return;const _0x1a630b=this['_annotationToNarrowView']['get'](_0x46b2b7)['element'],_0x16dfac=(function(){const _0x4b4eb2=_0x545175['defaultPositions'];return[_0x4b4eb2['southArrowNorthEast'],_0x4b4eb2['northArrowSouthEast'],_0x4b4eb2['southArrowNorth'],_0x4b4eb2['northArrowSouth'],_0x4b4eb2['southArrowNorthWest'],_0x4b4eb2['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x1a630b,'positions':_0x16dfac});}['_hideBalloon'](){const _0x26c614=this['balloonPanelView'],_0x1d4ed4=_0x26c614['content']['first'];_0x1d4ed4&&(this['_detachListeners'](_0x1d4ed4),_0x26c614['unpin'](),_0x26c614['content']['clear']());}['_attachListeners'](_0x54fb91){this['listenTo'](_0x54fb91,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x54fb91,'Esc',(_0x43dce1,_0xfc1cbc)=>{this['_manuallyClosedAnnotationViews']['add'](_0x54fb91),this['_hideBalloon'](),_0xfc1cbc();});}['_detachListeners'](_0x58dd3e){this['stopListening'](_0x58dd3e);}}class c extends _0x13c17d{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x43dc23,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17af91){super(_0x17af91),_0x17af91['editing']['view']['addObserver'](_0x5716e8),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x17af91['plugins']['get'](_0x43dc23),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x2960b5(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x16652f=this['editor']['plugins']['get'](j);_0x16652f['context']===this['editor']&&(_0x16652f['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x50c8f6,_0x5be1e0)=>{const _0x2ba42d=this['_balloon'];if(this['isAttached']&&_0x2ba42d['visibleView']){const _0x1c19e3=this['annotations']['getByView'](_0x2ba42d['visibleView']);_0x1c19e3&&this['_closeAnnotation'](_0x1c19e3),_0x5be1e0();}}));}['afterInit'](){const _0x2d08fb=this['editor']['plugins']['get'](j);_0x2d08fb['context']===this['editor']&&(_0x2d08fb['hasActive']()||_0x2d08fb['switchTo']('inline'));}['setActiveAnnotation'](_0xb1be58){_0xb1be58!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0xb1be58&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0xb1be58)&&this['_addAnnotationToBalloon'](_0xb1be58,!0x0),_0xb1be58['isActive']=!0x0),_0xb1be58||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0xb1be58);}['attach'](_0x2895da){this['annotations']=_0x2895da;const _0x4c1e21=this['editor']['plugins']['get'](j),_0x4fcac7=this['_balloon'];if(this['isAttached'])throw new _0x1dd71b('inlineannotations-attach-already-attached',this);if(_0x4c1e21['context']!==this['editor'])throw new _0x1dd71b('inlineannotations-not-allowed-with-context',this);const _0x567275=this['editor']['plugins']['get'](b);this['listenTo'](_0x567275,'refresh',()=>{const _0x255dc8=_0x567275['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x5aef35,_0x24f916;!this['_forceRefresh']&&(_0x5aef35=_0x255dc8,_0x24f916=this['_selectedAnnotations'],_0x5aef35['length']===_0x24f916['length']&&_0x5aef35['every'](_0x1d21b0=>_0x24f916['includes'](_0x1d21b0)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x255dc8),this['setActiveAnnotation'](_0x255dc8[0x0]||null));}),this['listenTo'](_0x567275,'blur',(_0x4aa8de,{isAnnotationTracked:_0x54fd66})=>{this['activeAnnotation']&&_0x54fd66(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x567275,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2ba7bc,_0x5dcf3f,_0x547d19)=>{_0x547d19||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2895da,'remove',(_0x43d3f3,_0x15cdee)=>{this['_removeAnnotationFromBalloon'](_0x15cdee),_0x15cdee===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4fcac7,'change:visibleView',(_0x37c13e,_0x2b0db4,_0x1c91ad,_0x35e287)=>{_0x35e287&&this['stopListening'](_0x35e287);const _0x593adc=_0x2895da['getByView'](_0x1c91ad);_0x1c91ad&&_0x593adc&&(this['listenTo'](_0x1c91ad,'change:height',()=>{_0x4fcac7['updatePosition']();}),this['listenTo'](_0x1c91ad,'Esc',()=>{this['_closeAnnotation'](_0x593adc),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x593adc&&this['setActiveAnnotation'](_0x593adc));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4fcac7['visibleView']&&(_0x2895da['getByView'](_0x4fcac7['visibleView'])&&_0x4fcac7['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 _0x1dd71b('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x2324e1 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x2324e1);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x306e76){for(const _0x5d51e6 of this['_selectedAnnotations'])_0x306e76['includes'](_0x5d51e6)||this['_manuallyClosed']['delete'](_0x5d51e6);for(const _0xba6232 of this['annotations'])_0x306e76['includes'](_0xba6232)||this['_removeAnnotationFromBalloon'](_0xba6232);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x390550 of _0x306e76)this['_addAnnotationToBalloon'](_0x390550);}this['_selectedAnnotations']=_0x306e76;}['_addAnnotationToBalloon'](_0x1318c3,_0x462c71=!0x1){this['_manuallyClosed']['has'](_0x1318c3)||(this['_addedAnnotations']['has'](_0x1318c3)||this['_balloon']['hasView'](_0x1318c3['view'])||(this['_addedAnnotations']['add'](_0x1318c3),this['_balloon']['add']({'stackId':_0x1318c3['view']['id'],'view':_0x1318c3['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x1318c3)}})),_0x462c71&&this['_balloon']['showStack'](_0x1318c3['view']['id']));}['_getBalloonTargetForAnnotation'](_0x38c67b){const _0x5c26ad=_0x38c67b['target'],_0x4c054e=this['editor']['editing']['view'],_0x32b1df=_0x4c054e['document']['selection']['getFirstRange'](),_0x3cb550=_0x4c054e['domConverter']['viewRangeToDom'](_0x32b1df);if(_0x3cb550['collapse'](!0x0),_0x5c26ad){if(_0x5c26ad instanceof _0x489997)return _0x5c26ad;let _0x420a99=[];for(const _0x58f2ec of _0x5c26ad)_0x420a99['push'](...F(_0x58f2ec['getClientRects']()));_0x420a99=function(_0x27c967){const _0x1e0ba3=[];let _0x500aca=_0x27c967[0x0];for(let _0x40bbec=0x1;_0x40bbec<_0x27c967['length'];_0x40bbec++)P(_0x500aca,_0x27c967[_0x40bbec])?_0x500aca['width']+=_0x27c967[_0x40bbec]['width']:(_0x1e0ba3['push'](_0x500aca),_0x500aca=_0x27c967[_0x40bbec]);return _0x1e0ba3['push'](_0x500aca),_0x1e0ba3;}(_0x420a99);const _0x44d156=_0x3cb550['getBoundingClientRect']();return _0x420a99['find'](_0x11fd2b=>_0x11fd2b['top']<=_0x44d156['top']&&_0x11fd2b['bottom']>=_0x44d156['bottom']&&_0x11fd2b['left']<=_0x44d156['left']&&_0x11fd2b['right']>=_0x44d156['right'])||_0x420a99[0x0];}return _0x38c67b['targetRect']||_0x3cb550;}['_removeAnnotationFromBalloon'](_0x37e36d){this['_addedAnnotations']['has'](_0x37e36d)&&this['_balloon']['hasView'](_0x37e36d['view'])&&(this['_addedAnnotations']['delete'](_0x37e36d),this['_balloon']['remove'](_0x37e36d['view']));}['_closeAnnotation'](_0x68bfe){this['_manuallyClosed']['add'](_0x68bfe),this['_removeAnnotationFromBalloon'](_0x68bfe);}}function F(_0x4f1081){return Array['from'](_0x4f1081)['map'](DOMRect['fromRect']);}function P(_0x220772,_0x47292f){return _0x220772['top']===_0x47292f['top']&&_0x220772['bottom']===_0x47292f['bottom']&&_0x220772['right']===_0x47292f['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x4190f6,_0x5ce684){super(_0x4190f6),this['set']('isEmpty',!_0x5ce684['length']),this['focusTracker']=new _0x36aed6(),this['_annotationViews']=_0x5ce684,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x4e1cbf({'focusables':_0x5ce684,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5ce684,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5ce684,'remove',(_0x1eaaf5,_0x329e2f)=>{_0x329e2f['isActive']&&this['focus'](),_0x5ce684['length']||(this['isEmpty']=!0x0);});const _0x48854f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x4190f6,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5ce684},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x48854f['if']('isEmpty','ck-hidden',_0x2d0fbe=>!_0x2d0fbe)]},'children':[{'text':N(_0x4190f6,'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 _0x177af6 of this['_annotationViews'])this['focusTracker']['add'](_0x177af6['element']);this['_annotationViews']['on']('change',(_0x43ecc0,{added:_0x4001cc,removed:_0x128ffd})=>{for(const _0x3a53c5 of _0x4001cc)this['focusTracker']['add'](_0x3a53c5['element']);for(const _0x165535 of _0x128ffd)this['focusTracker']['remove'](_0x165535['element']);});}}class p extends _0x551749{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x133764){super(_0x133764),this['archivedThreads']=new _0x30e061();}['init'](){const _0x1898f4=this['context'],_0x352f83=_0x1898f4['plugins']['get'](o),_0x27909c=_0x1898f4['plugins']['get'](y);this['listenTo'](_0x352f83,'addCommentThread',(_0xb2ac23,{threadId:_0x267181})=>{const _0xee0396=_0x352f83['getCommentThread'](_0x267181);_0xee0396['archivedAt']&&this['archivedThreads']['add'](_0xee0396,this['_calculatePosition'](_0xee0396['archivedAt'])),this['listenTo'](_0xee0396,'change:archivedAt',(_0x3a6d3d,_0x24959d,_0xe9340a)=>{_0xe9340a?this['archivedThreads']['has'](_0xee0396)||this['archivedThreads']['add'](_0xee0396,this['_calculatePosition'](_0xee0396['archivedAt'])):this['archivedThreads']['has'](_0xee0396)&&this['archivedThreads']['remove'](_0xee0396);});}),this['listenTo'](_0x352f83,'removeCommentThread',(_0x22546e,{threadId:_0x2d56c9})=>{const _0x4d7f87=_0x352f83['getCommentThread'](_0x2d56c9);this['stopListening'](_0x4d7f87),this['archivedThreads']['has'](_0x4d7f87)&&this['archivedThreads']['remove'](_0x4d7f87);},{'priority':'highest'}),this['listenTo'](_0x27909c['collection'],'focus',(_0x3e3ec8,_0x20a99c)=>{_0x20a99c['isVisible']||(_0x20a99c['isActive']=!0x0,_0x27909c['activate'](_0x20a99c));});}['_calculatePosition'](_0x46043f){const _0x3edc7e=[...this['archivedThreads']]['findIndex'](_0x5b2953=>_0x5b2953['archivedAt']<_0x46043f);return _0x3edc7e>-0x1?_0x3edc7e:this['archivedThreads']['length'];}}class a extends _0x13c17d{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x3283df];}constructor(_0x6079c4){super(_0x6079c4),this['annotationViews']=new _0x1da055(),this['_pendingThreads']=[];}['init'](){const _0x12c457=this['editor'],_0x5ac01b=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x12c457['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x5f0a6a,!0x0)),_0x12c457['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x154f50=this['_createCommentsArchiveButton'](_0x1e0edf);return _0x154f50['set']({'role':'menuitemcheckbox'}),_0x154f50;});const _0x3b5f4e=_0x12c457['plugins']['get'](p),_0x163b34=_0x12c457['plugins']['get']('Annotations'),_0xf9a0b5=_0x12c457['plugins']['get']('CommentsRepository');_0x3b5f4e['archivedThreads']['forEach'](_0x501882=>{this['_handleNewThread'](_0x501882);}),this['listenTo'](_0x3b5f4e['archivedThreads'],'add',(_0x30b927,_0x38528d)=>{this['_handleNewThread'](_0x38528d);}),this['listenTo'](_0x163b34['collection'],'add',(_0x5eba92,_0x57e19a)=>{const _0x3a7ee0=this['_pendingThreads']['find'](_0x20dbc0=>{const _0xa724a7=_0xf9a0b5['_threadToController']['get'](_0x20dbc0);return _0xa724a7&&_0x57e19a['innerView']===_0xa724a7['view'];});if(_0x3a7ee0){const _0x5d5da1=this['_calculatePosition'](_0x3a7ee0['archivedAt']);this['_addAnnotationToArchive'](_0x57e19a,_0x5d5da1),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3a7ee0),0x1);}}),this['listenTo'](_0x3b5f4e['archivedThreads'],'remove',(_0x3ae403,_0x559259)=>{const _0x3f2207=_0x12c457['config']['get']('collaboration.channelId');if(!_0x3f2207||_0x559259['channelId']===_0x3f2207){if(this['_pendingThreads']['includes'](_0x559259))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x559259),0x1);else{const _0x543912=_0xf9a0b5['_threadToController']['get'](_0x559259),_0x4ca689=_0x163b34['getByInnerView'](_0x543912['view']);this['annotationViews']['remove'](_0x4ca689['view']),this['stopListening'](_0x4ca689),this['stopListening'](_0x4ca689['focusableElements']);}}}),this['listenTo'](_0x163b34['collection'],'add',(_0x4c7c70,_0x40e7cb)=>{this['listenTo'](_0x40e7cb,'escape',_0x5ac01b);}),this['listenTo'](_0x163b34['collection'],'remove',(_0x1c908f,_0x4074a0)=>{this['stopListening'](_0x4074a0,'escape',_0x5ac01b);});}['_addAnnotationToArchive'](_0x1284f5,_0x36c826){this['listenTo'](_0x1284f5,'set:isVisible',_0x2edce8=>{_0x2edce8['return']=!0x1,_0x2edce8['stop']();}),this['annotationViews']['add'](_0x1284f5['view'],_0x36c826);}['_handleNewThread'](_0x4dcdd2){const _0x47356b=this['editor']['plugins']['get']('CommentsRepository'),_0x42a703=this['editor']['plugins']['get']('Annotations'),_0x5b54b9=this['editor']['config']['get']('collaboration.channelId');if(!_0x5b54b9||_0x4dcdd2['channelId']===_0x5b54b9){const _0x7dc56c=_0x47356b['_threadToController']['get'](_0x4dcdd2);if(!_0x7dc56c)return void this['_pendingThreads']['push'](_0x4dcdd2);const _0x2f1076=this['_calculatePosition'](_0x4dcdd2['archivedAt']),_0x3309ad=_0x42a703['getByInnerView'](_0x7dc56c['view']);_0x3309ad['isVisible']&&_0x42a703['_visibleAnnotations']['remove'](_0x3309ad),this['_addAnnotationToArchive'](_0x3309ad,_0x2f1076);}}['_calculatePosition'](_0x1e0558){const _0x37edb0=this['editor']['config']['get']('collaboration.channelId'),_0x2d2977=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x59ada=>_0x59ada['channelId']===_0x37edb0)['findIndex'](_0x164aab=>_0x164aab['archivedAt']<_0x1e0558);return _0x2d2977<0x0||_0x2d2977>this['annotationViews']['length']?this['annotationViews']['length']:_0x2d2977-0x1;}['_toggleDialog'](){const _0x2d9582=this['editor'],_0x2631b9=_0x2d9582['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x2d9582['locale'],this['annotationViews'])),'commentsArchive'===_0x2631b9['id']?_0x2631b9['hide']():_0x2631b9['show']({'id':'commentsArchive','title':N(_0x2d9582['locale'],'COMMENTS_ARCHIVE'),'icon':_0x70ce54,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x15776d['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x3342eb,_0x379e63=!0x1){const _0x313b0d=this['editor']['locale'],_0x15d76b=this['editor']['plugins']['get']('Dialog'),_0x1556f6=new _0x3342eb(_0x313b0d);return _0x1556f6['bind']('isEnabled')['to'](this,'isEnabled'),_0x1556f6['bind']('isOn')['to'](_0x15d76b,'id',_0x473840=>'commentsArchive'===_0x473840),_0x1556f6['set']({'label':N(_0x313b0d,'COMMENTS_ARCHIVE'),'icon':_0x70ce54,'isToggleable':!0x0}),_0x379e63&&(_0x1556f6['tooltip']=!0x0),this['listenTo'](_0x1556f6,'execute',()=>this['_toggleDialog']()),_0x1556f6;}['_hideDialogOnAnnotationEscape']=_0xddc35a=>{const _0xc5d9d9=_0xddc35a['source'];if(!this['annotationViews']['has'](_0xc5d9d9['view']))return;const _0x17c9c3=this['editor']['plugins']['get']('Dialog');_0x17c9c3['isOpen']&&'commentsArchive'===_0x17c9c3['id']&&(_0x17c9c3['hide'](),_0xddc35a['stop']());};}class Comments extends _0x13c17d{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,Comment,CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,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};