@ckeditor/ckeditor5-comments 47.5.0-alpha.7 → 47.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +11 -11
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +19 -19
  150. package/src/annotations/annotation.js +2 -2
  151. package/src/annotations/annotationcollection.js +1 -1
  152. package/src/annotations/annotations.js +1 -1
  153. package/src/annotations/annotationsuis.js +1 -1
  154. package/src/annotations/editorannotations.js +1 -1
  155. package/src/annotations/inlineannotations.js +1 -1
  156. package/src/annotations/narrowsidebar.js +1 -1
  157. package/src/annotations/sidebar.js +1 -1
  158. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  159. package/src/annotations/view/annotationview.js +1 -1
  160. package/src/annotations/view/sidebaritemview.js +2 -2
  161. package/src/annotations/view/sidebarview.js +2 -2
  162. package/src/annotations/widesidebar.js +1 -1
  163. package/src/comments/addcommentthreadcommand.js +1 -1
  164. package/src/comments/commentsarchive.js +1 -1
  165. package/src/comments/commentsarchiveui.js +1 -1
  166. package/src/comments/commentsediting.js +1 -1
  167. package/src/comments/commentsrepository.js +3 -3
  168. package/src/comments/commentsui.js +1 -1
  169. package/src/comments/integrations/clipboard.js +1 -1
  170. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  171. package/src/comments/integrations/importword.js +1 -1
  172. package/src/comments/integrations/showcommenthighlights.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  174. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  175. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  176. package/src/comments/ui/commentthreadcontroller.js +2 -2
  177. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  178. package/src/comments/ui/view/basecommentview.js +1 -1
  179. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  180. package/src/comments/ui/view/commentcontentview.js +1 -1
  181. package/src/comments/ui/view/commentinputview.js +1 -1
  182. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  183. package/src/comments/ui/view/commentslistview.js +1 -1
  184. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  185. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  186. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  187. package/src/comments/ui/view/commentthreadview.js +2 -2
  188. package/src/comments/ui/view/commentview.js +2 -2
  189. package/src/comments.js +1 -1
  190. package/src/commentsonly.js +1 -1
  191. package/src/index.js +1 -1
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.js +1 -1
  194. package/src/utils/splitmarkername.js +1 -1
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x194368,ContextPlugin as _0x31e181,PendingActions as lt,Command as _0xd88f38,Plugin as _0x44aad5,Context as _0x3a108e}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x5f09fa,uid as _0x2303ca,KeystrokeHandler as jt,FocusTracker as _0x498468,diff as _0x32a5d2,Collection as _0x5553a1,Rect as _0x2b4e57,CKEditorError as _0x3b4517,first as _0x4a7086,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x931e8a,keyCodes as _0x4e655d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x22c90c,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x425037,trimHtml as ts,LateFocusDropdownButtonView as _0x48a7fa,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x46e498}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x3792c0}from'es-toolkit/compat';import{IconUndo as _0x5e30e1,IconCheck as _0x3f7f46,IconPencil as _0x38e6d6,IconRemoveComment as _0x3867bc,IconThreeVerticalDots as _0x143120,IconAddComment as _0xfd1104,IconCommentsArchive as _0x124175}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x2d3227,ButtonView as _0x12b664,ViewCollection as _0x547fc0,createDropdown as _0x4bd8da,ListView as _0x5bcff0,focusChildOnDropdownOpen as _0x3e49cd,ListItemView as _0x2e4180,MenuBarMenuListItemButtonView as _0x1a75ff,BodyCollection as _0x46deb9,BalloonPanelView as _0x2f75ff,ContextualBalloon as _0x1cf8f3,Dialog as _0x15e5b1,DialogViewPosition as _0x4ebefc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x492bff}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 _0x5d582f}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x5b2bd9}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x5f09fa(){['model'];['view'];constructor(_0x34fb26,_0x2ec466){super(),this['model']=_0x34fb26,this['model']['_isAttached']=!0x0,this['view']=_0x2ec466,this['listenTo'](_0x2ec466,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x2ec466,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x2ec466,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x2ec466,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x2ec466,'addComment',(_0x216fbe,_0x4e7e1c)=>this['addComment'](_0x4e7e1c)),this['listenTo'](_0x2ec466,'updateComment',(_0x5126ba,_0x59adc2,_0x5b0e99)=>this['updateComment'](_0x59adc2,_0x5b0e99)),this['listenTo'](_0x2ec466,'removeComment',(_0x1880ab,_0x5b2746)=>this['removeComment'](_0x5b2746));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x857730){this['model']['addComment']({'content':_0x857730,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3587ba,_0x2e675c){this['model']['getComment'](_0x3587ba)['update']({'content':_0x2e675c});}['removeComment'](_0x4e98f5){this['model']['getComment'](_0x4e98f5)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x8e9ebf,_0x252dad,_0x15efcc){const t=_0x8e9ebf['t'];switch(_0x252dad){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'},_0x15efcc);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'},_0x15efcc);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'},_0x15efcc);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'},_0x15efcc);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x15efcc);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'},_0x15efcc);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'},_0x15efcc);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'},_0x15efcc);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(_0x1a087f,_0x41f004){super(_0x1a087f);const _0x44495a=_0x2303ca();this['main']=this['createCollection'](),this['editable']=new Vt(_0x1a087f,_0x41f004,void 0x0,{'label':()=>N(_0x1a087f,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x1a087f['uiLanguageDirection'],'lang':_0x1a087f['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x44495a},'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(_0x57a452){super(_0x57a452),this['view']=new Rt(_0x57a452['locale'],_0x57a452['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x24f38e=this['editor']['editing']['view'],_0x23727d=this['view']['editable'],_0x4b515c=_0x24f38e['document']['getRoot']();_0x23727d['name']=_0x4b515c['rootName'],this['view']['render']();const _0x3d3f06=_0x23727d['element'];this['setEditableElement'](_0x23727d['name'],_0x3d3f06),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x24f38e['attachDomRoot'](_0x3d3f06),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x5f09fa(_0x194368){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x8c5d2e={}){function _0xbf17e1(_0x182e6a){return _0x182e6a['map'](_0x2c125a=>String['fromCharCode'](_0x2c125a))['join']('');}(_0x8c5d2e=Object['assign']({},_0x8c5d2e))['plugins']||(_0x8c5d2e['plugins']=hs['defaultPlugins']),super(_0x8c5d2e),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[_0xbf17e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbf17e1([0x76,0x69,0x65,0x77])][_0xbf17e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbf17e1([0x61,0x75,0x74,0x6f]),this[_0xbf17e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xbf17e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbf17e1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xbf17e1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xbf17e1([0x6f,0x6b])});}['create'](){const _0x4e0dba=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x4e0dba))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x2dd6f9=>{const _0x269dfd=this['model']['document']['getRoot'](),_0x2394ba=_0x269dfd&&_0x269dfd['getChild'](_0x269dfd['childCount']-0x1);_0x2dd6f9['setSelection'](_0x2394ba,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x39661d=this['editing']['view'],_0xfb5e02=_0x39661d['document']['getRoot'](),_0x4d1325=_0xfb5e02['getChild'](0x0);_0xfb5e02['childCount']>0x1||!_0x4d1325||'p'!=_0x4d1325['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x39661d,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x4d1325['placeholder']=this['placeholder']),Ft({'view':_0x39661d,'element':_0x4d1325,'keepOnFocus':!0x0}),this['placeholderElement']=_0x4d1325);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x228385,_0x42b4ca={}){super(_0x228385),this['editor']=null,this['_editorConfig']=_0x42b4ca,this['set']('value',_0x42b4ca['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x228385,'Reply...')),this['set']('submitLabel',N(_0x228385,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x498468(),this['focusCycler']=new _0x2d3227({'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',(_0x526a5c,_0x571f44)=>{this['cancelButtonView']['fire']('execute'),_0x571f44();}),this['keystrokes']['set']('Ctrl+Enter',(_0x5982ea,_0x557174)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x557174());}),this['on']('submit',(_0x3854ab,_0x4f3542)=>{_0x4f3542['length']>0xfde8?(alert(N(_0x228385,'TOO_LONG_COMMENT_ALERT',[_0x4f3542['length'],0xfde8])),_0x3854ab['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 _0x1b9b1f=this['editor'];this['element']['insertBefore'](_0x1b9b1f['ui']['element'],this['element']['firstChild']),_0x1b9b1f['model']['document']['on']('change',()=>this['value']=_0x1b9b1f['getData']()),_0x1b9b1f['bind']('placeholder')['to'](this),this['focusables']['add'](_0x1b9b1f['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x36948d){-0x1===_0x36948d?(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:_0xb761da}=this,_0x2ad012=new _0x12b664(_0xb761da);return _0x2ad012['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2ad012['withText']=!0x0,_0x2ad012['bind']('label')['to'](this,'submitLabel'),_0x2ad012['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2ad012['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x48c323,_0x2db691)=>!_0x2db691&&!!_0x48c323['trim']()),_0x2ad012;}['_createCancelButton'](){const {locale:_0x48f360}=this,_0xbe55f4=new _0x12b664(_0x48f360);return _0xbe55f4['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xbe55f4['label']=N(_0x48f360,'Cancel'),_0xbe55f4['withText']=!0x0,_0xbe55f4['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0xbe55f4;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x85882a=>{this['focusTracker']['add'](_0x85882a['element']);}),this['focusables']['on']('change',(_0xe603d2,_0x3d0aa7)=>{for(const _0x5c39fd of Array['from'](_0x3d0aa7['added'])['reverse']())this['focusTracker']['add'](_0x5c39fd['element']);});}}class ie extends kt{constructor(_0x353483,_0x3f91ba,_0x29704d){super(_0x353483),this['commentInputView']=new es(_0x353483,_0x29704d),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1325b6,_0x262ee5)=>_0x1325b6||!!_0x262ee5),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 _0x22c90c(_0x353483,_0x3f91ba),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'](_0x44a2bf){this['commentInputView']['focus'](_0x44a2bf);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x921aff,_0x851484)=>{const {submitButtonView:_0xe90bca,cancelButtonView:_0x27cb13,editor:_0x30b3a5}=this['commentInputView'];[_0xe90bca['element'],_0x27cb13['element'],_0x30b3a5?_0x30b3a5['editing']['view']['getDomRoot']():null]['filter'](_0x4f0c26=>_0x4f0c26)['some'](_0x168aee=>_0x168aee['contains'](_0x851484['target']))||(this['focus'](),_0x851484['preventDefault']());});}}class rs extends kt{constructor(_0x30b619){super(_0x30b619);const _0x366369=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x366369['to']('count',_0x4ce9af=>N(_0x30b619,'NUMBER_OF_COMMENTS',_0x4ce9af))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x246471,_0x2d6554,_0x5f065e){super(_0x246471);const _0x1e5738=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x2d6554['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x2d6554,this['_config']=_0x5f065e,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x498468(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2d3227({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x43463d=>this['commentViews']['map'](_0x300f6d=>_0x300f6d['element'])['includes'](_0x43463d['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x246471),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x9712b4=>_0x9712b4-this['_config']['maxCommentsWhenCollapsed']);for(const _0x11b446 of _0x2d6554['comments'])this['_handleNewCommentModel'](_0x11b446);this['_handleInfoComment'](),this['listenTo'](_0x2d6554['comments'],'add',(_0x3f0cff,_0x376957)=>{const _0x384296=this['_calculatePosition'](_0x376957);this['length']++,this['_handleNewCommentModel'](_0x376957,_0x384296),this['refreshVisibleViews']();}),this['listenTo'](_0x2d6554['comments'],'remove',(_0x2c30bb,_0x1baebc)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1baebc),this['refreshVisibleViews']();}),this['listenTo'](_0x2d6554,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x2d6554,'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',_0x1e5738['if']('length','ck-hidden',_0x2c34c7=>!_0x2c34c7)],'aria-label':N(_0x246471,'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'](_0x9a0d3f){-0x1===_0x9a0d3f?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x10b33c of this['commentViews'])_0x10b33c['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0xcda13d,_0x58df4f){const _0x10da72=new this['_config']['CommentView'](this['locale'],_0xcda13d,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x10da72['viewUid']=_0xcda13d['id'],_0x10da72['delegate']('removeComment')['to'](this),_0x10da72['delegate']('updateComment')['to'](this),_0x10da72['delegate']('resolveCommentThread')['to'](this),_0x10da72['delegate']('editorReady')['to'](this),_0x10da72['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x10da72,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x10da72,_0x58df4f);}['_calculatePosition'](_0x5d45e6){const _0x44b53a=this['_model']['_findOptimalIndex'](_0x5d45e6);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x5d45e6['authoredAt']?_0x44b53a-0x1:_0x44b53a:_0x44b53a-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x30ac66={'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'],_0x30ac66,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x30ac66));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4a4b39){const _0x41dfa5=this['commentViews']['remove'](_0x4a4b39['id']);this['stopListening'](_0x41dfa5),_0x41dfa5['isEditMode']&&this['_updateHasDirtyComment'](),_0x41dfa5['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x12c0b3=>_0x12c0b3['isEditMode']);}['_rearrangeCollapse'](){const _0x18a1f1=function(_0x9ef86c){const _0xc9e17b=new _0x5553a1();for(const _0x33102d of _0x9ef86c)_0xc9e17b['add'](_0x33102d);return _0xc9e17b;}(this['commentViews']),_0x17cddf=this['_collapsedCommentsView']['count'];for(let _0x15fc5d=0x1;_0x15fc5d<=_0x17cddf;_0x15fc5d++)_0x18a1f1['remove'](0x1);for(const _0xfc32f8 of _0x18a1f1)_0xfc32f8['collapse']();_0x17cddf>0x0&&_0x18a1f1['add'](this['_collapsedCommentsView'],0x1),ns(_0x32a5d2(Array['from'](this['visibleViews']),Array['from'](_0x18a1f1)),this['visibleViews'],_0x18a1f1);}['_rearrangeExpand'](){ns(_0x32a5d2(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x37d220 of this['visibleViews'])_0x37d220['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x595ed7=>{this['focusTracker']['add'](_0x595ed7['element']),this['keystrokes']['listenTo'](_0x595ed7['element']);}),this['commentViews']['on']('change',(_0x432265,_0x381abc)=>{for(const _0xf63eb0 of _0x381abc['removed'])this['focusTracker']['remove'](_0xf63eb0['element']),this['keystrokes']['stopListening'](_0xf63eb0['element']);for(const _0x3a4e0b of Array['from'](_0x381abc['added'])['reverse']())this['focusTracker']['add'](_0x3a4e0b['element']),this['keystrokes']['listenTo'](_0x3a4e0b['element']);});}}function ns(_0x12e2b3,_0x310f7c,_0x5906d3){let _0x526528=0x0;for(const _0x41f346 of _0x12e2b3)switch(_0x41f346){case'insert':_0x310f7c['add'](_0x5906d3['get'](_0x526528),_0x526528),_0x526528++;break;case'delete':_0x310f7c['remove'](_0x526528);break;case'equal':_0x526528++;}}class oe extends kt{constructor(_0x5463be){super(_0x5463be);const _0x3fdd00=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3fdd00['to']('contextValue',_0x1f0cf7=>N(_0x5463be,'THREAD_CONTEXT_LABEL',_0x1f0cf7)),'tabindex':-0x1},'children':[{'text':_0x3fdd00['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5be36a,_0xaf2d24){super(_0x5be36a);const _0x52f8e8=this['bindTemplate'];this['_model']=_0xaf2d24,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x498468(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2d3227({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x21766f=>!!_0x21766f),this['bind']('contextValue')['to'](this['_model'],'context',_0xdaf6d4=>_0xdaf6d4&&_0xdaf6d4['value']?this['_trimContextValue'](_0xdaf6d4['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',_0x52f8e8['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 _0x53fb51=new _0x12b664(this['locale']);return _0x53fb51['label']=N(this['locale'],'Reopen'),_0x53fb51['tooltip']=N(this['locale'],'Reopen'),_0x53fb51['icon']=_0x5e30e1,_0x53fb51['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2a30b8=>!_0x2a30b8),_0x53fb51['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3d36f5,_0x2a6f90)=>_0x3d36f5&&_0x2a6f90),_0x53fb51['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x53fb51;}['_trimContextValue'](_0x507d5e){if(_0x507d5e['length']<0x96)return _0x507d5e;const _0x5b0c2e=_0x507d5e['lastIndexOf']('\x20',0x93);return _0x507d5e['substring'](0x0,_0x5b0c2e>-0x1?_0x5b0c2e:0x93)+'...';}['_attachContextActions'](){const _0x552588=this['element']['querySelector']('.ck-context'),_0x1a8ce4=_0x552588['querySelector']('.ck-context__value');this['listenTo'](_0x552588,'mouseenter',()=>{_0x1a8ce4['offsetWidth']<_0x1a8ce4['scrollWidth']&&_0x552588['classList']['add']('overlay');}),this['listenTo'](_0x552588,'mouseleave',()=>{_0x552588['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x422006 of this['focusables'])this['focusTracker']['add'](_0x422006['element']),this['keystrokes']['listenTo'](_0x422006['element']);}['_createContextView'](){const _0x25ee40=new oe(this['locale']);return _0x25ee40['bind']('contextValue')['to'](this),_0x25ee40;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1f314e,_0x52f09f,_0x1a05cc,_0x36927d){super(_0x1f314e),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x52f09f,this['_localUser']=_0x1a05cc,this['_config']=_0x36927d,this['commentThreadHeaderView']=new Xt(_0x1f314e,_0x52f09f),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x1f314e,N(_0x1f314e,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1f314e,_0x52f09f,Object['assign']({'CommentView':this['_config']['CommentView']},_0x36927d)),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',(_0x5cf955,_0xfc6478)=>_0x5cf955||!!_0xfc6478),this['bind']('isUnlinked')['to'](_0x52f09f,'unlinkedAt',_0x207793=>!!_0x207793),this['bind']('ariaLabel')['to'](this,'length',_0x200094=>{const _0x10d7de=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x200094,_0x10d7de]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x498468(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2d3227({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x349c93=>_0x349c93['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 _0x3a00b2=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x313d6a=_0x3a00b2['commentInputView'];return _0x3a00b2['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x313d6a,'value',(_0x3ef195,_0x4a97b1,_0x4a0301,_0x50a46c,_0x2d485a)=>!!_0x2d485a||!!_0x50a46c&&_0x4a0301&&!_0x4a97b1||_0x3ef195&&_0x4a0301&&!_0x4a97b1),_0x313d6a['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x57e99a,_0x5e26b3,_0x31e897)=>{let _0x32c491;return _0x32c491=_0x31e897&&_0x5e26b3?'Reply\x20to\x20reopen\x20discussion...':_0x57e99a?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x32c491);}),_0x313d6a['bind']('submitLabel')['to'](this,'length',_0x1a3f68=>N(this['locale'],_0x1a3f68?'Reply':'Comment')),_0x313d6a['on']('submit',(_0x4592e5,_0x2c79e9)=>{this['fire']('addComment',_0x2c79e9),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x313d6a['on']('cancel',()=>{this['focus']();}),_0x313d6a['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x313d6a['on']('cancel',_0x31008a=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x31008a['stop']());}),this['on']('change:isActive',(_0x32fad0,_0x58cb5d,_0xf002b6)=>{_0xf002b6||this['length']||_0x313d6a['value']||this['fire']('removeCommentThread');}),_0x3a00b2;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x17cb2f,_0x49f148,_0x5a86f2,_0x29bd17){super(_0x17cb2f,_0x49f148,_0x5a86f2,_0x29bd17),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x17cb2f,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x83812a,_0x2ef0e9,_0x4901c0)=>{_0x4901c0||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x49f076,_0x13eb78,_0x1a620d)=>{_0x1a620d&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x86d065=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x86d065['if']('isActive','ck-thread--active'),_0x86d065['if']('isUnlinked','ck-thread--unlinked'),_0x86d065['to']('actionIndicator',_0x20b4a9=>_0x20b4a9?'ck-thread--'+_0x20b4a9:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x86d065['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 _0x4ca6c1 of this['commentsListView']['commentViews'])_0x4ca6c1['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3e1f34}=this,_0x29ecb1=this['commentsListView']['commentViews']['get'](0x0);_0x29ecb1===this['_boundFirstCommentView']||_0x29ecb1['isSystemComment']||(this['_boundFirstCommentView']=_0x29ecb1,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x29ecb1,'actionIndicator',_0x5dcb69=>'remove'===_0x5dcb69?'remove':null),_0x29ecb1['placeholder']=N(_0x3e1f34,'Write\x20a\x20comment...'),_0x29ecb1['removeButton']['on']('execute',_0x54d266=>{_0x54d266['stop'](),this['showConfirm'](N(_0x3e1f34,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x29ecb1['focus']();}),_0x29ecb1['actionBar']['add'](this['resolveButton'],0x0),_0x29ecb1['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x43acd4=new _0x425037(this['locale']);return _0x43acd4['label']=N(this['locale'],'Resolve'),_0x43acd4['tooltip']=N(this['locale'],'Resolve'),_0x43acd4['icon']=_0x3f7f46,_0x43acd4['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x43acd4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x472f83=>!_0x472f83),_0x43acd4['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x30a5ee,_0xbd7559)=>_0x30a5ee&&!_0xbd7559),_0x43acd4['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x43acd4;}['_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(_0x3eb832){super(_0x3eb832),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x140a36,_0x9eaecf,_0x1405d4)=>{this['element']['innerHTML']=_0x1405d4;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x139e4a,_0x17c680,_0x36ad81){super(_0x139e4a),this['_model']=_0x17c680,this['_config']=_0x36ad81,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x17c680,'content',_0x17c680,'authoredAt',(_0x1cff3e,_0x51e427)=>N(_0x139e4a,'COMMENT_ARIA_LABEL',[_0x17c680['author']['name'],_0x36ad81['formatDateTime'](_0x51e427),new DOMParser()['parseFromString'](_0x1cff3e,'text/html')['body']['textContent'],_0x17c680['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x139e4a,N(_0x139e4a,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x547fc0(),this['focusTracker']=new _0x498468(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2d3227({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x561df6=>_0x561df6['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 _0x444232=new is(this['locale']);return _0x444232['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x4067c7,_0x56aa75)=>_0x56aa75?ts(_0x4067c7,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x4067c7),_0x444232;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x191e7c=new es(this['locale'],this['_config']['editorConfig']);return _0x191e7c['value']=this['_model']['content'],_0x191e7c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x191e7c['submitLabel']=N(this['locale'],'Save'),_0x191e7c['on']('submit',(_0x1f2dd4,_0x54fc5a)=>{this['fire']('updateComment',this['_model']['id'],_0x54fc5a),this['switchToDisplayMode'](),this['focus']();}),_0x191e7c['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x191e7c['once']('editorReady',()=>{_0x191e7c['focus']();}),_0x191e7c['createEditor'](),_0x191e7c['delegate']('editorReady')['to'](this),_0x191e7c['delegate']('editorDestroyed')['to'](this),_0x191e7c;}['_setupKeyboardNavigation'](){const _0x562a04=this['element'];this['keystrokes']['listenTo'](_0x562a04);for(const _0x3fc1f7 of this['focusables'])this['focusTracker']['add'](_0x3fc1f7['element']),this['keystrokes']['listenTo'](_0x3fc1f7['element']);this['focusables']['on']('change',(_0x2e47f1,_0x40275e)=>{for(const _0x3c1943 of _0x40275e['removed'])this['focusTracker']['remove'](_0x3c1943['element']),this['keystrokes']['stopListening'](_0x3c1943['element']);for(const _0x501970 of _0x40275e['added'])this['focusTracker']['add'](_0x501970['element']),this['keystrokes']['listenTo'](_0x501970['element']);}),this['keystrokes']['set']('enter',(_0x15cdc4,_0x15b6a8)=>{_0x562a04===_0x15cdc4['target']&&(this['focusCycler']['focusFirst'](),_0x15b6a8());}),this['keystrokes']['set']('esc',(_0x2afe1e,_0x430ba7)=>{_0x562a04!==_0x2afe1e['target']&&(this['focus'](),_0x430ba7());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x323a07,_0x35af93,_0x260c73){super(_0x323a07,_0x35af93,_0x260c73),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x323a07,'Reply...')),this['bind']('authoredAt')['to'](_0x35af93),this['bind']('resolvedAt')['to'](_0x35af93),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 _0x22c90c(_0x323a07,_0x35af93['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x35af93,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x581d16=this['bindTemplate'],_0x55b567=[{'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':_0x581d16['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x581d16['to']('authoredAt',_0x946ae8=>this['_config']['formatDateTime'](_0x946ae8))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x581d16['if']('isEditMode','ck-comment__actions--hidden'),_0x581d16['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']&&_0x55b567['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x581d16['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x581d16['if']('isEditMode','ck-comment--edit'),_0x581d16['if']('isSystemComment','ck-comment--info'),_0x581d16['to']('actionIndicator',_0x33742f=>_0x33742f?'ck-comment--'+_0x33742f:'')],'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':_0x55b567}]}]};}['_createEditButton'](){const _0xfe080=new _0x12b664(this['locale']);return _0xfe080['label']=N(this['locale'],'Edit'),_0xfe080['icon']=_0x38e6d6,_0xfe080['withText']=!0x0,_0xfe080['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0xfe080['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x301dd4=>!_0x301dd4),_0xfe080['bind']('isVisible')['to'](this['_model'],'isEditable'),_0xfe080['on']('execute',()=>this['switchToEditMode']()),_0xfe080;}['_createRemoveButton'](){const _0xeafe0a=new _0x12b664(this['locale']);return _0xeafe0a['label']=N(this['locale'],'Remove'),_0xeafe0a['icon']=_0x3867bc,_0xeafe0a['withText']=!0x0,_0xeafe0a['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xeafe0a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2e827e=>!_0x2e827e),_0xeafe0a['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xeafe0a['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xeafe0a;}['_createDropdown'](){const _0x5bf10c=_0x4bd8da(this['locale'],_0x48a7fa),_0x5b2c14=_0x5bf10c['panelView']['children'],_0x222284=new _0x5bcff0(this['locale']),_0x444110=_0x5bf10c['bindTemplate'];_0x3e49cd(_0x5bf10c,()=>this['items']['find'](_0x4ce8c4=>_0x4ce8c4['isVisible'])),_0x5bf10c['extendTemplate']({'attributes':{'class':[_0x444110['if']('isVisible','ck-hidden',_0x235dfd=>!_0x235dfd)]}});const _0x2f909b=(_0x4ccb0a,_0x13186c=-0x1)=>{const _0x1a4c6e=new _0x2e4180(this['locale']);_0x1a4c6e['children']['add'](_0x4ccb0a);const _0xf44eef=_0x13186c>-0x1?_0x13186c:_0x222284['items']['length'];_0x222284['items']['add'](_0x1a4c6e,_0xf44eef);const _0x6e58cb=Array['from'](this['items']);_0x5bf10c['unbind']('isEnabled','isVisible'),_0x5bf10c['bind']('isEnabled')['toMany'](_0x6e58cb,'isEnabled',(..._0x22a7bb)=>_0x22a7bb['some'](_0xa62422=>_0xa62422)),_0x5bf10c['bind']('isVisible')['toMany'](_0x6e58cb,'isVisible',(..._0x5f276)=>_0x5f276['some'](_0x11f52b=>_0x11f52b));};_0x5bf10c['panelPosition']='sw',_0x5bf10c['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x143120});for(const _0x54703f of this['items'])_0x2f909b(_0x54703f);return _0x5b2c14['add'](_0x222284),_0x5bf10c['listenTo'](this['items'],'add',(_0x32b2cd,_0x1c8fff,_0x3d4180)=>{_0x2f909b(_0x1c8fff,_0x3d4180);}),_0x5bf10c['listenTo'](this['items'],'remove',(_0x174454,_0x2ab70f,_0x2ab035)=>{_0x222284['items']['remove'](_0x2ab035);}),_0x5bf10c;}['_attachActions'](_0x222eb3,_0x1ea8c2){const _0x4e175e=_0x222eb3&&_0x222eb3['element'];_0x4e175e&&(this['listenTo'](_0x4e175e,'mouseenter',()=>this['actionIndicator']=_0x1ea8c2),this['listenTo'](_0x4e175e,'focus',()=>this['actionIndicator']=_0x1ea8c2),this['listenTo'](_0x4e175e,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4e175e,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x4f2f86=super['_createCommentInputView']();return _0x4f2f86['bind']('placeholder')['to'](this),_0x4f2f86;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x3f0203){const _0x27b9a1=Dt(_0x3f0203,0x1e),_0x480dee=new MutationObserver(_0x2c644e=>{for(const _0x3b34ab of _0x2c644e)('attributes'==_0x3b34ab['type']&&'class'==_0x3b34ab['attributeName']||'childList'==_0x3b34ab['type']||'characterData'==_0x3b34ab['type'])&&_0x27b9a1();});return{'attach'(_0x5b8cb7){_0x480dee['observe'](_0x5b8cb7,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x480dee['disconnect'](),_0x27b9a1['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x3c4958,_0x420478){super(_0x3c4958),this['id']=_0x2303ca(),this['focusTracker']=new _0x498468(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x315530,_0x5630f6)=>this['fire']('Esc',_0x5630f6)),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'](_0x420478),this['mainView']=_0x420478;const _0x33df71=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x33df71['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 _0x4ba92e=this['element']['clientHeight'];_0x4ba92e&&(this['height']=_0x4ba92e);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x5f09fa(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x3fb4ff,target:_0x1090ea,type:_0x57f386,isVisible:_0x2d4727=!0x0}){super(),this['view']=_0x3fb4ff,this['view']['element']||this['view']['render'](),this['_type']=_0x57f386,this['_target']=_0x1090ea,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x5553a1([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x1e5310,_0x2d5265)=>{this['view']['focusTracker']['add'](_0x2d5265);}),this['focusableElements']['on']('remove',(_0xc495dc,_0x55dac3)=>{this['view']['focusTracker']['remove'](_0x55dac3);}),this['set']('isVisible',_0x2d4727);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x79825=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x79825),_0x79825;}get['targetRect'](){const _0x3160a1=this['target'];if(null===_0x3160a1)return null;if(_0x3160a1 instanceof _0x2b4e57)return _0x3160a1;const _0x5a65f2=_0x3160a1['filter'](_0x32a59f=>function(_0x419ced){const _0x1074ed=_0x419ced['offsetParent'];if(_0x1074ed)return!0x0;const _0x5a44a4=_0x419ced['getClientRects']()['item'](0x0);return!!_0x5a44a4;}(_0x32a59f));return 0x0===_0x5a65f2['length']?null:new _0x2b4e57(_0x5a65f2[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4216be){this['view']['isActive']=_0x4216be,this['view']['mainView']['isActive']=_0x4216be;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3d934e){if(!(null===_0x3d934e||_0x3d934e instanceof _0x2b4e57||Array['isArray'](_0x3d934e)&&_0x3d934e['every'](_0x46c416=>fi(_0x46c416))))throw new _0x3b4517('annotation-invalid-target',null,{'target':_0x3d934e});}['_getNormalizedTarget'](){const _0x4cb51a='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x4cb51a)?[_0x4cb51a]:_0x4cb51a;}}function fi(_0x5c9e72){return null!==_0x5c9e72&&'object'==typeof _0x5c9e72&&'nodeType'in _0x5c9e72&&0x1===_0x5c9e72['nodeType'];}class S extends _0x5553a1{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x366441=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x498468(),this['_focusTracker']['on']('change:isFocused',(_0x5e166c,_0x121286,_0x980b21)=>{_0x980b21||this['fire']('blur');});for(const _0x333a07 of _0x366441)this['add'](_0x333a07);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x457443){if(this['has'](_0x457443))throw new _0x3b4517('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x457443['innerView'],_0x457443),this['_viewToAnnotation']['set'](_0x457443['view'],_0x457443);for(const _0xdca5a6 of _0x457443['focusableElements'])this['_focusTracker']['add'](_0xdca5a6);this['listenTo'](_0x457443['focusableElements'],'add',(_0x39fcf3,_0x1c763f)=>{this['_focusTracker']['add'](_0x1c763f);}),this['listenTo'](_0x457443['focusableElements'],'remove',(_0x461f74,_0x3e0c31)=>{this['_focusTracker']['remove'](_0x3e0c31);}),this['listenTo'](_0x457443['view']['focusTracker'],'change:isFocused',(_0x16ac67,_0x5d8ae3,_0x23e477)=>{_0x23e477&&this['fire']('focus',_0x457443);}),_0x457443['updateTargetRect']();const _0x2696c6=this['_getOrderInContent'](_0x457443['view']['targetRect']);return super['add'](_0x457443,_0x2696c6);}['remove'](_0x476747){if(!this['has'](_0x476747))throw new _0x3b4517('annotationcollection-not-existing-item',null);this['stopListening'](_0x476747['view']['focusTracker']),this['stopListening'](_0x476747['focusableElements']);for(const _0xdc72ad of _0x476747['focusableElements'])this['_focusTracker']['remove'](_0xdc72ad);return this['_viewToAnnotation']['delete'](_0x476747['view']),this['_innerViewToAnnotation']['delete'](_0x476747['innerView']),super['remove'](_0x476747);}['getByInnerView'](_0x5e01c2){return this['_innerViewToAnnotation']['get'](_0x5e01c2);}['getByView'](_0x4b6464){return this['_viewToAnnotation']['get'](_0x4b6464);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x54f9ef of this)_0x54f9ef['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3d4da1=Array['from'](this)['sort']((_0x2fd6b0,_0x28356a)=>w(_0x2fd6b0['view']['targetRect'],_0x28356a['view']['targetRect']));for(let _0x581bb8=_0x3d4da1['length']-0x1;_0x581bb8>0x0;_0x581bb8--){const _0x3303d7=_0x3d4da1[_0x581bb8];_0x581bb8!==this['getIndex'](_0x3303d7)&&(this['remove'](_0x3303d7),this['add'](_0x3303d7));}}['_getOrderInContent'](_0x5aa859){let _0x831212=0x0;if(!_0x5aa859)return this['length'];for(const _0x10fb34 of this){const _0x4979ac=_0x10fb34['view']['targetRect'];if(_0x4979ac){if(w(_0x5aa859,_0x4979ac)<0x0)return _0x831212;_0x831212++;}}return _0x831212;}}function v({source:_0xf5e2bb,target:_0xdd409d,filter:_0x2859ba}){for(const _0x43d5ac of _0xf5e2bb)_0x2859ba(_0x43d5ac)&&_0xdd409d['add'](_0x43d5ac);_0xdd409d['listenTo'](_0xf5e2bb,'add',(_0x4c3acf,_0xa761c8)=>{_0x2859ba(_0xa761c8)&&_0xdd409d['add'](_0xa761c8);}),_0xdd409d['listenTo'](_0xf5e2bb,'remove',(_0x2dc24f,_0x2f65ad)=>{_0xdd409d['has'](_0x2f65ad)&&_0xdd409d['remove'](_0x2f65ad);});}function w(_0x469b8c,_0x3c417a){if(null===_0x469b8c&&null===_0x3c417a)return 0x0;if(null===_0x469b8c)return-0x1;if(null===_0x3c417a)return 0x1;const _0x2bbee0=_0x469b8c['top']-_0x3c417a['top'];return 0x0==_0x2bbee0?_0x469b8c['left']-_0x3c417a['left']:_0x2bbee0;}class y extends _0x31e181{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46ff24){if(super(_0x46ff24),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x46ff24 instanceof _0x194368){const _0x342437=_0x46ff24['locale'];_0x46ff24['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x342437,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x342437,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x342437,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x342437,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x342437,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x342437,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x342437,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x549646){this['collection']['add'](_0x549646);}['remove'](_0x507451){this['collection']['remove'](_0x507451),_0x507451['destroy']();}['refreshVisibility'](){for(const _0x5d818c of this['collection'])_0x5d818c['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x13dd8c){return this['collection']['getByInnerView'](_0x13dd8c);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2849f8 of this['collection'])_0x2849f8['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x1e731a){this['fire']('_activateAnnotation',_0x1e731a);}['createAnnotation'](_0x14ae3a){return new T(_0x14ae3a);}['createAnnotationView'](_0x532cf4,_0x3a24ed){return new E(_0x532cf4,_0x3a24ed);}['_addActiveAnnotation'](_0x10496e){const _0x54af7e=new Set(this['activeAnnotations']);_0x54af7e['add'](_0x10496e),this['activeAnnotations']=_0x54af7e;}['_removeActiveAnnotation'](_0x136acc){const _0x5a7fab=new Set(this['activeAnnotations']);_0x5a7fab['delete'](_0x136acc),this['activeAnnotations']=_0x5a7fab;}['_bindAnnotationsToVisibleAnnotations'](){const _0x556efd=this['collection'],_0x3ad044=this['_visibleAnnotations'];function _0x20e77c(_0x567b29){const _0x29ad79=_0x567b29['source'];_0x29ad79['isVisible']&&!_0x3ad044['has'](_0x29ad79)?_0x3ad044['add'](_0x29ad79):!_0x29ad79['isVisible']&&_0x3ad044['has'](_0x29ad79)&&_0x3ad044['remove'](_0x29ad79),_0x29ad79['view']['focusTracker']['remove'](_0x29ad79['view']['element']),_0x29ad79['view']['focusTracker']['add'](_0x29ad79['view']['element']);}this['listenTo'](_0x556efd,'add',(_0x19b955,_0x42ef95)=>{_0x42ef95['isVisible']&&_0x3ad044['add'](_0x42ef95),this['listenTo'](_0x42ef95,'change:isVisible',_0x20e77c);}),this['listenTo'](_0x556efd,'remove',(_0x1c369e,_0x1d4c8a)=>{_0x3ad044['has'](_0x1d4c8a)&&_0x3ad044['remove'](_0x1d4c8a),this['stopListening'](_0x1d4c8a,'change:isVisible',_0x20e77c);});}['_setupEnterAnnotationKeystroke'](){const _0xebee93=_0x322b13=>{_0x322b13['on']('ready',()=>{_0x322b13['keystrokes']['set'](_0x5d582f,(_0x36b5a2,_0x39207c)=>{const _0x42f45c=_0x4a7086(this['activeAnnotations']['values']());_0x42f45c&&(_0x42f45c['view']['focus'](),_0x39207c());});});};this['context']instanceof _0x194368?_0xebee93(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1e0c53,_0x68d6a2)=>{_0xebee93(_0x68d6a2);});}['_setupEscapeAnnotationHandling'](){const _0x35336c=_0x1df412=>{const _0x1ae924=_0x1df412['source'],_0x3cd46e=[];let _0x545835;if(Array['isArray'](_0x1ae924['target'])){_0x545835=_0x1ae924['target'][0x0],this['context']instanceof _0x194368?_0x3cd46e['push'](this['context']):this['context']['editors']&&_0x3cd46e['push'](...this['context']['editors']);for(const _0x2dbade of _0x3cd46e)for(const _0x4fd74b of _0x2dbade['editing']['view']['domRoots']['values']())if(_0x4fd74b['contains'](_0x545835))return void _0x2dbade['editing']['view']['focus']();_0x545835['focus']();}};this['listenTo'](this['collection'],'add',(_0x255f07,_0x3277e7)=>{this['listenTo'](_0x3277e7,'escape',_0x35336c,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x69d7cf,_0x1afa56)=>{this['stopListening'](_0x1afa56,'escape',_0x35336c);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x31e181{['_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(_0x354c17){super(_0x354c17),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3dd004=this['context']['config'];_0x3dd004['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3dd004['define']('comments.maxThreadTotalWeight',0x1f4),_0x3dd004['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3dd004['define']('comments.CommentThreadView',gt),_0x3dd004['define']('comments.CommentView',Tt),_0x3dd004['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3e4438=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x210a58,_0x4b94ee)=>this['_addCommentThread'](_0x4b94ee)),this['on']('submitCommentThread',(_0x3aa1b2,_0x10fcb0)=>this['_submitCommentThread'](_0x10fcb0)),this['on']('resolveCommentThread',(_0x367008,_0x501f03)=>this['_resolveCommentThread'](_0x501f03)),this['on']('resolveCommentThread',(_0x562615,_0x5de49d)=>this['_updateActiveAnnotation'](_0x5de49d),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x4d4a24,_0x25078c)=>this['_reopenCommentThread'](_0x25078c)),this['on']('reopenCommentThread',(_0x36b0f3,_0x59b99c)=>this['_updateActiveAnnotation'](_0x59b99c),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x220c97,_0x4c5dbe)=>this['_removeCommentThread'](_0x4c5dbe)),this['on']('updateCommentThread',(_0x5a2896,_0x5e9404)=>this['_updateCommentThread'](_0x5e9404)),this['on']('updateCommentThread',(_0x902088,_0x2f0e13)=>this['_updateActiveAnnotation'](_0x2f0e13),{'priority':'lowest'}),this['on']('addComment',(_0x26f938,_0x590ae4)=>this['_addComment'](_0x590ae4)),this['on']('updateComment',(_0x2e91df,_0x349e8c)=>this['_updateComment'](_0x349e8c)),this['on']('removeComment',(_0x372c72,_0x1e7b6c)=>this['_removeComment'](_0x1e7b6c)),this['on']('addComment',(_0xb3e73b,{threadId:_0x3ace31,isFromAdapter:_0x1962f2})=>{if(_0x1962f2)return;const _0x521325=this['getCommentThread'](_0x3ace31),_0x34bb1b=_0x521325&&this['_threadToController']['get'](_0x521325);_0x34bb1b&&_0x34bb1b['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3e4438,'change:activeAnnotations',(_0x7572cf,_0x73c826,_0x36790c)=>{const _0x496361=Array['from'](_0x36790c)['map'](_0x566b80=>this['_viewToController']['get'](_0x566b80['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x496361?_0x496361['model']:null;});}set['adapter'](_0x273e63){if(this['_adapter'])throw new _0x3b4517('commentsrepository-adapter-already-set');this['_adapter']=_0x273e63;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0xdeecb9=_t,threadId:_0x5404cc=_0x2303ca(),comments:_0x4a3270=[],unlinkedAt:_0x4f6838=null,resolvedAt:_0x54992e=null,resolvedBy:_0x37fb20=null,target:_0x2602a9=null,context:_0x2bfe7d=null,attributes:_0x5dd92a={},isResolvable:_0x1f40d7=!0x0,isSubmitted:_0x494efe=!0x1,isFromAdapter:_0x5d0218=!0x1}={}){return this['fire'](Nt('addCommentThread',_0xdeecb9),{'channelId':_0xdeecb9,'threadId':_0x5404cc,'comments':_0x4a3270,'unlinkedAt':_0x4f6838,'resolvedAt':_0x54992e,'resolvedBy':_0x37fb20,'target':_0x2602a9,'context':_0x2bfe7d,'attributes':_0x5dd92a,'isFromAdapter':_0x5d0218,'isResolvable':_0x1f40d7,'isSubmitted':_0x494efe}),this['getCommentThread'](_0x5404cc);}['openNewCommentThread']({channelId:_0x51011d=_t,threadId:_0xfe21a6=_0x2303ca(),target:_0x33151e,context:_0x43ffcf=null,isResolvable:_0x45282d=!0x0}){if(this['_readOnlyChannels']['has'](_0x51011d)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x33151e)throw new _0x3b4517('commentsrepository-missing-target');const _0x178e9b=this['addCommentThread']({'channelId':_0x51011d,'threadId':_0xfe21a6,'target':_0x33151e,'context':_0x43ffcf,'isResolvable':_0x45282d});if(!_0x178e9b)return null;const _0x3fa94c=this['_threadToController']['get'](_0x178e9b),_0x540012=_0x3fa94c['view']['commentThreadInputView']['commentInputView'],_0x53b264=this['context']['plugins']['get'](y),_0x12e9d2=_0x53b264['getByInnerView'](_0x3fa94c['view']);return _0x53b264['activate'](_0x12e9d2),_0x540012['once']('editorReady',()=>_0x540012['focus']()),_0x178e9b;}['hasCommentThread'](_0x17914d){if('string'!=typeof _0x17914d)throw new _0x3b4517('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x17914d);}['updateCommentThread']({channelId:_0x3b4fae=_t,threadId:_0x3447fa,context:_0x4843a1,unlinkedAt:_0x3eaf36,attributes:_0x4ad378,isFromAdapter:_0xd52e4f=!0x1}){return this['fire'](Nt('updateCommentThread',_0x3b4fae),{'channelId':_0x3b4fae,'threadId':_0x3447fa,'context':_0x4843a1,'unlinkedAt':_0x3eaf36,'attributes':_0x4ad378,'isFromAdapter':_0xd52e4f}),this['getCommentThread'](_0x3447fa);}['getCommentThread'](_0x847d2){if('string'!=typeof _0x847d2)throw new _0x3b4517('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x847d2);}['fetchCommentThread']({channelId:_0x5df136,threadId:_0x441143}={}){const _0x3a7fcd=this['getCommentThread'](_0x441143);if(_0x3a7fcd)return Promise['resolve'](_0x3a7fcd);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3b4517('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5df136,'threadId':_0x441143})['then'](_0x156c05=>this['hasCommentThread'](_0x441143)?this['getCommentThread'](_0x441143):_0x156c05?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5df136},_0x156c05)):void 0x0)['catch'](_0x5586bb=>{throw console['error'](_0x5586bb),new _0x3b4517('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x536b88,skipNotAttached:_0x233941=!0x1,skipEmpty:_0xdd35d2=!0x1,toJSON:_0x545cc9=!0x1}={}){const _0x4dbd40=[];for(const _0x466d5d of this['_threads']['values']())_0x536b88&&_0x466d5d['channelId']!==_0x536b88||_0x233941&&!_0x466d5d['isAttached']||_0xdd35d2&&0x0===_0x466d5d['length']||_0x4dbd40['push'](_0x466d5d);return _0x545cc9?_0x4dbd40['map'](_0x510162=>_0x510162['toJSON']()):_0x4dbd40;}['getAnnotationForCommentThread'](_0x431737){const _0x4359c2=this['_threadToController']['get'](_0x431737);if(!_0x4359c2)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x4359c2['view'])||null;}['getCommentThreadForAnnotation'](_0x596815){const _0x380e56=this['_viewToController']['get'](_0x596815['innerView']);return _0x380e56?_0x380e56['model']:null;}['setActiveCommentThread'](_0x845a6e){const _0x4e7bd2=this['context']['plugins']['get'](y);if(!_0x845a6e)return void(this['activeCommentThread']&&_0x4e7bd2['deactivateAll']());const _0x43cd76=this['getCommentThread'](_0x845a6e);if(!_0x43cd76)throw new _0x3b4517('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x845a6e});if(!this['_threadToController']['has'](_0x43cd76))throw new _0x3b4517('commentsrepository-active-not-attached',null,{'threadId':_0x845a6e});const _0x10b7cb=_0x4e7bd2['getByInnerView'](this['_threadToController']['get'](_0x43cd76)['view']);_0x4e7bd2['activate'](_0x10b7cb);}['switchReadOnly'](_0x2c460f,_0x4d6f4f){_0x2c460f?this['_readOnlyChannels']['add'](_0x4d6f4f):this['_readOnlyChannels']['delete'](_0x4d6f4f),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x2b092d){return this['_readOnlyChannels']['has'](_0x2b092d)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x3a3f9a,_0x17843c){return new vt(_0x3a3f9a,_0x17843c);}['setPermissions'](_0x533d8b,_0xe460df=_t){this['_permissions']['set'](_0xe460df,_0x533d8b),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x17152f=_t){return this['_permissions']['has'](_0x17152f)?this['_permissions']['get'](_0x17152f):bt;}['_addCommentThread']({channelId:_0x18fdd6,threadId:_0x257456,comments:_0x25a147,unlinkedAt:_0x3d5997,resolvedAt:_0x263567,resolvedBy:_0x12055d,target:_0x80d8c7,context:_0x627966,attributes:_0x5546a8,isFromAdapter:_0x3cce36,isResolvable:_0x5671ad,isSubmitted:_0x4c33a2}){if('string'!=typeof _0x257456)throw new _0x3b4517('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x257456});if(this['hasCommentThread'](_0x257456))throw new _0x3b4517('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x257456});const _0x360a89=new pi(this,{'channelId':_0x18fdd6,'id':_0x257456,'context':_0x627966,'attributes':_0x5546a8,'unlinkedAt':_0x3d5997,'resolvedAt':_0x263567,'resolvedBy':_0x12055d?this['context']['plugins']['get'](it)['getUser'](_0x12055d):null,'isResolvable':_0x5671ad,'isSubmitted':_0x4c33a2||_0x3cce36});this['_threads']['set'](_0x257456,_0x360a89);for(const _0x1d6e2c of _0x25a147)_0x360a89['_add'](this['_createNewComment']({'threadId':_0x257456,..._0x1d6e2c}));return _0x80d8c7&&_0x360a89['attachTo'](_0x80d8c7),_0x3cce36||!_0x360a89['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x18fdd6,'threadId':_0x257456});}['_submitCommentThread']({channelId:_0x4c7383,threadId:_0x39bc20}){if(!this['hasCommentThread'](_0x39bc20))throw new _0x3b4517('commentsrepository-missing-comment-thread',this);const _0x1cd895=this['getCommentThread'](_0x39bc20);if(_0x1cd895['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x1a6fb6,comments:_0xe4b2f,resolvedAt:_0x355551,resolvedBy:_0x57a554,context:_0x43ea2c,attributes:_0x382a45}=_0x1cd895,_0x5c18d0=this['context']['plugins']['get']('PendingActions'),_0x1d0167=_0x5c18d0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4c7383,'threadId':_0x1a6fb6,'comments':_0xe4b2f['map'](_0x4a85b8=>_0x4a85b8['toJSON']()),'resolvedAt':_0x355551,'resolvedBy':_0x57a554?_0x57a554['id']:_0x57a554,'context':_0x43ea2c,'attributes':_0x382a45})['then'](({comments:_0x136548})=>{_0x5c18d0['remove'](_0x1d0167);for(const _0x381cf3 of _0x136548)this['_updateComment']({'channelId':_0x4c7383,'threadId':_0x39bc20,'commentId':_0x381cf3['commentId'],'createdAt':_0x381cf3['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1933f2=>{throw console['error'](_0x1933f2),new _0x3b4517('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4844d7,target:_0x1990c0}){const _0x3b2242=this['getCommentThread'](_0x4844d7);if(!_0x3b2242)throw new _0x3b4517('commentsrepository-attach-missing-comment-thread',this);const _0x534adc=this['context']['plugins']['get']('PendingActions'),_0x320988=this['context']['plugins']['get'](y),_0xa31282=this['_createCommentThreadView'](_0x3b2242),_0x7e6183=new vt(_0x3b2242,_0xa31282);let _0x209587=null;_0xa31282['on']('change:isDirty',(_0x14daac,_0x54f2bf,_0x278e24)=>{_0x278e24?_0x209587=_0x534adc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x209587&&(_0x534adc['remove'](_0x209587),_0x209587=null);}),this['_threadToController']['set'](_0x3b2242,_0x7e6183),this['_viewToController']['set'](_0xa31282,_0x7e6183);const _0x4d165f=new E(this['context']['locale'],_0xa31282);_0x4d165f['bind']('length')['to'](_0xa31282),_0x4d165f['bind']('isDirty')['to'](_0xa31282,'isDirty',_0xa31282,'length',(_0x37af0f,_0x583b68)=>_0x37af0f||!_0x583b68),_0x4d165f['bind']('isActive')['to'](_0xa31282),_0x4d165f['type']='comment';const _0x157cc3=new T({'view':_0x4d165f,'target':_0x1990c0,'type':'comment','isVisible':!_0x3b2242['archivedAt']&&!!('function'==typeof _0x1990c0?_0x1990c0():_0x1990c0)});return _0xa31282['on']('escape',()=>{_0x157cc3['fire']('escape');}),this['_bindAnnotationToEditors'](_0xa31282,_0x157cc3),_0x320988['add'](_0x157cc3),_0x157cc3;}['_bindAnnotationToEditors'](_0x250778,_0x5d8959){this['listenTo'](_0x250778,'editorReady',(_0x45f658,_0x203570)=>{const _0xac0380=_0x203570['ui']['view']['body']['bodyCollectionContainer'];_0x5d8959['focusableElements']['add'](_0xac0380),this['context']instanceof _0x194368&&this['context']['ui']['focusTracker']['add'](_0xac0380);},{'priority':'highest'}),this['listenTo'](_0x250778,'editorDestroyed',(_0x472fdd,_0x41c85d)=>{const _0x49d954=_0x41c85d['ui']['view']['body']['bodyCollectionContainer'];_0x5d8959['focusableElements']['has'](_0x49d954)&&_0x5d8959['focusableElements']['remove'](_0x49d954),this['context']instanceof _0x194368&&this['context']['ui']['focusTracker']['remove'](_0x49d954);});}['_unbindEditors'](_0x342a4f){this['stopListening'](_0x342a4f,'editorReady'),this['stopListening'](_0x342a4f,'editorDestroyed');}['_createCommentThreadView'](_0x51b40f){const _0x55d7ad=this['context']['plugins']['get'](it),{config:_0x4ad8c5,locale:_0x1bb6e8}=this['context'],_0x325eab=pt(_0x4ad8c5['get']('locale'),_0x1bb6e8);return new(0x0,(_0x4ad8c5['get']('comments'))['CommentThreadView'])(_0x1bb6e8,_0x51b40f,_0x55d7ad['me'],{'editorConfig':{..._0x4ad8c5['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4ad8c5['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4ad8c5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4ad8c5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4ad8c5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x325eab,'CommentView':_0x4ad8c5['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x33589e,channelId:_0x4a50b9,resolvedAt:_0x2d8379,resolvedBy:_0x400429,isFromAdapter:_0x1748e4}){if(!this['hasCommentThread'](_0x33589e))throw new _0x3b4517('commentsrepository-missing-comment-thread',null,{'threadId':_0x33589e});const _0x217b7d=this['getCommentThread'](_0x33589e);if(_0x217b7d['isResolved'])throw new _0x3b4517('commentsrepository-resolved-comment-thread',null,{'threadId':_0x33589e});const _0x1c3248=this['context']['plugins']['get'](it);if(_0x217b7d['resolvedBy']=_0x1c3248['getUser'](_0x400429),_0x217b7d['resolvedAt']=_0x2d8379,_0x1748e4||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x459301=this['context']['plugins']['get']('PendingActions'),_0x3dc223=_0x459301['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x4a50b9,'threadId':_0x33589e})['then'](({resolvedAt:_0x15e2ec,resolvedBy:_0x405711})=>{_0x459301['remove'](_0x3dc223),_0x217b7d['resolvedBy']['id']!==_0x405711&&(_0x217b7d['resolvedBy']=_0x1c3248['getUser'](_0x405711)),_0x217b7d['resolvedAt']=_0x15e2ec;})['catch'](_0x4dd2a3=>{throw console['error'](_0x4dd2a3),new _0x3b4517('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x208f7e,channelId:_0x44addd,isFromAdapter:_0x93113b}){if(!this['hasCommentThread'](_0x208f7e))throw new _0x3b4517('commentsrepository-missing-comment-thread',null,{'threadId':_0x208f7e});const _0x4f383b=this['getCommentThread'](_0x208f7e);if(!_0x4f383b['isResolved'])throw new _0x3b4517('commentsrepository-reopen-comment-thread',null,{'threadId':_0x208f7e});if(_0x4f383b['resolvedBy']=null,_0x4f383b['resolvedAt']=null,_0x93113b||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x453c13=this['context']['plugins']['get']('PendingActions'),_0x3bab5c=_0x453c13['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x44addd,'threadId':_0x208f7e})['then'](()=>_0x453c13['remove'](_0x3bab5c))['catch'](_0x296067=>{throw console['error'](_0x296067),new _0x3b4517('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x37267d,isFromAdapter:_0x529c45}){const _0xae3c90=this['getCommentThread'](_0x37267d);if(!_0xae3c90)throw new _0x3b4517('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x37267d),this['_threads']['delete'](_0x37267d),!_0xae3c90['isSubmitted']||_0x529c45||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1019c7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x544a1a}=_0xae3c90,_0x392a80=_0x1019c7['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x544a1a,'threadId':_0x37267d})['then'](()=>_0x1019c7['remove'](_0x392a80))['catch'](_0x17c501=>{throw console['error'](_0x17c501),new _0x3b4517('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x13df40,unlinkedAt:_0x4ce804,context:_0x5a3bcc,attributes:_0x22894b,isFromAdapter:_0x1c2bb1}){if('string'!=typeof _0x13df40)throw new _0x3b4517('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x13df40});if(!this['hasCommentThread'](_0x13df40))throw new _0x3b4517('commentsrepository-missing-comment-thread',null,{'threadId':_0x13df40});const _0x461151=this['getCommentThread'](_0x13df40);let _0x502288=!0x1;if(void 0x0!==_0x5a3bcc&&_0x461151['context']!==_0x5a3bcc&&(_0x461151['context']=_0x5a3bcc,_0x502288=!0x0),void 0x0!==_0x4ce804&&_0x461151['unlinkedAt']!==_0x4ce804&&(_0x461151['unlinkedAt']=_0x4ce804,_0x502288=!0x0),_0x22894b&&!At(_0x22894b,_0x461151['attributes'])&&(_0x461151['attributes']=_0x22894b,_0x502288=!0x0),!_0x502288)return Promise['resolve']();if(!_0x461151['isSubmitted']||_0x1c2bb1||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0xa742d4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x300613}=_0x461151,_0x9d3270=_0xa742d4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x300613,'threadId':_0x13df40,'context':_0x5a3bcc,'unlinkedAt':_0x4ce804,'attributes':_0x22894b})['then'](()=>_0xa742d4['remove'](_0x9d3270))['catch'](_0x3c5609=>{throw console['error'](_0x3c5609),new _0x3b4517('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x20ef54){const _0x242ad0=this['context']['plugins']['get'](y),_0x4d0035=this['getCommentThread'](_0x20ef54);if(_0x4d0035['_isAttached']=!0x1,this['_threadToController']['has'](_0x4d0035)){const _0x2132be=this['_threadToController']['get'](_0x4d0035),_0xa4855=_0x2132be['view'],_0x34a52e=_0x242ad0['getByInnerView'](_0xa4855);this['_threadToController']['delete'](_0x4d0035),this['_viewToController']['delete'](_0xa4855),_0x34a52e&&_0x242ad0['remove'](_0x34a52e),_0x2132be['destroy'](),_0xa4855['destroy']()['then'](()=>{this['_unbindEditors'](_0xa4855);});}}['_updateActiveAnnotation']({threadId:_0x3ec2a4,resolvedAt:_0x489811,unlinkedAt:_0x19b635}){const _0x2be55f=!!_0x489811,_0xddaac7=this['context']['plugins']['get'](y),_0xdea451=this['getCommentThread'](_0x3ec2a4);if(this['_threadToController']['has'](_0xdea451)){const _0x416082=this['_threadToController']['get'](_0xdea451)['view'],_0x193b58=_0xddaac7['getByInnerView'](_0x416082);_0x193b58&&(_0x2be55f&&_0xddaac7['_removeActiveAnnotation'](_0x193b58),_0x19b635?_0x193b58['isVisible']=!0x1:_0x193b58['refreshVisibility']());}}['_getExternalAuthor'](_0x1ffdfe){const _0x5e3c23=this['context']['plugins']['get'](it),_0x370ad5=It('external:'+_0x1ffdfe),_0x276c8c=_0x5e3c23['getUser'](_0x370ad5);return _0x276c8c||_0x5e3c23['addUser']({'id':_0x370ad5,'name':_0x1ffdfe});}['_createNewComment']({threadId:_0x2563e4,commentId:_0x24e745=_0x2303ca(),content:_0x4730ff,authorId:_0x356be6,createdAt:_0x4f005f,attributes:_0x40ca22}){if('string'!=typeof _0x24e745)throw new _0x3b4517('commentsrepository-invalid-commentid');if('string'!=typeof _0x356be6)throw new _0x3b4517('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4730ff||!_0x4730ff['trim']())throw new _0x3b4517('commentsrepository-invalid-comment-content');const _0x23f445=this['context']['plugins']['get'](it)['getUser'](_0x356be6);if(!_0x23f445)throw new _0x3b4517('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x356be6});let _0xf7e85b=null,_0x1bb713=_0x4f005f;return _0x40ca22?.['@external']&&(_0xf7e85b=this['_getExternalAuthor'](_0x40ca22['@external']['authorName']),_0x1bb713=new Date(_0x40ca22['@external']['createdAt'])),new wi(this,{'threadId':_0x2563e4,'id':_0x24e745,'author':_0xf7e85b||_0x23f445,'creator':_0x23f445,'content':_0x4730ff,'createdAt':_0x4f005f,'authoredAt':_0x1bb713,'attributes':_0x40ca22});}['_addComment'](_0x53df7e){let {threadId:_0x95b5e6,content:_0x4ec096,attributes:_0x202529,isFromAdapter:_0x123b06}=_0x53df7e;const _0x37217d=this['getCommentThread'](_0x53df7e['threadId']);if(!_0x37217d)throw new _0x3b4517('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x30b55a=this['_createNewComment'](_0x53df7e),{id:_0x48db6d}=_0x30b55a;if(_0x37217d['_add'](_0x30b55a),_0x123b06||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x37217d['isSubmitted'])return Promise['resolve']();const _0x526593=this['context']['plugins']['get']('PendingActions'),{channelId:_0x9a75fa}=_0x37217d,_0x402c95=_0x526593['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x202529||(_0x202529={}),this['adapter']['addComment']({'channelId':_0x9a75fa,'threadId':_0x95b5e6,'commentId':_0x48db6d,'content':_0x4ec096,'attributes':_0x202529})['then'](_0xaa4c9c=>{_0x526593['remove'](_0x402c95),_0xaa4c9c&&this['_updateComment']({'channelId':_0x9a75fa,'threadId':_0x95b5e6,'commentId':_0x48db6d,'createdAt':_0xaa4c9c['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3c9392=>{throw console['error'](_0x3c9392),new _0x3b4517('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x357a2a,commentId:_0x55f743,content:_0x5ecea4,createdAt:_0x5de3c5,attributes:_0x38f5fd,isFromAdapter:_0x47bf8e}){if(void 0x0!==_0x5ecea4&&('string'!=typeof _0x5ecea4||!_0x5ecea4['trim']()['length']))throw new _0x3b4517('commentsrepository-update-comment-invalid-content');const _0xb660ed=this['getCommentThread'](_0x357a2a),_0x16f0e8=_0xb660ed['getComment'](_0x55f743);if(!_0x16f0e8)throw new _0x3b4517('commentsrepository-update-missing-comment',this);let _0xaa551b=!0x1;if(_0x5ecea4&&_0x5ecea4!==_0x16f0e8['content']&&(_0x16f0e8['isEditable']||_0x47bf8e)&&(_0x16f0e8['content']=_0x5ecea4,_0xaa551b=!0x0),_0x5de3c5&&_0x5de3c5!==_0x16f0e8['createdAt']&&(_0x16f0e8['createdAt']=_0x5de3c5,_0x16f0e8['attributes']&&_0x16f0e8['attributes']['@external']||(_0x16f0e8['authoredAt']=_0x5de3c5),_0xaa551b=!0x0),_0x38f5fd&&!At(_0x38f5fd,_0x16f0e8['attributes'])&&(_0x16f0e8['attributes']=_0x38f5fd,_0xaa551b=!0x0),!_0xaa551b)return Promise['resolve']();if(_0xb660ed['fire']('commentUpdated'),_0x47bf8e||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x1add4a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x198675}=this['getCommentThread'](_0x16f0e8['threadId']),_0x189be1=_0x1add4a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x198675,'threadId':_0x357a2a,'commentId':_0x55f743,'content':_0x5ecea4,'attributes':_0x38f5fd})['then'](()=>_0x1add4a['remove'](_0x189be1))['catch'](_0x5dd7bc=>{throw console['error'](_0x5dd7bc),new _0x3b4517('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0xa390cd,commentId:_0x50a5c0,isFromAdapter:_0x4d4866}){const _0x5ba02e=this['getCommentThread'](_0xa390cd),_0xb57e46=_0x5ba02e['getComment'](_0x50a5c0);if(!_0xb57e46)throw new _0x3b4517('commentsrepository-remove-missing-comment',this);if(_0x5ba02e['_remove'](_0xb57e46),_0x4d4866||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2a1c77=this['context']['plugins']['get']('PendingActions'),{channelId:_0xf9ecc7}=_0x5ba02e,_0x4d98d4=_0x2a1c77['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0xf9ecc7,'threadId':_0xa390cd,'commentId':_0x50a5c0})['then'](()=>_0x2a1c77['remove'](_0x4d98d4))['catch'](_0x3061dc=>{throw console['error'](_0x3061dc),new _0x3b4517('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x5f09fa(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x5e2cce,_0x3ee269){super();const _0x1a16f1=_0x3ee269['isResolvable'];this['channelId']=_0x3ee269['channelId'],this['id']=_0x3ee269['id'],this['comments']=new _0x5553a1(),this['_repository']=_0x5e2cce,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3ee269['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x5e2cce,'_permissions',_0x5e2cce,'_readOnlyChannels',()=>_0x5e2cce['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x5e2cce,'_permissions',()=>_0x5e2cce['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x5e2cce,'_permissions',()=>{const _0x39bd2e=_0x5e2cce['getPermissions'](this['channelId']);return _0x39bd2e['write']||_0x39bd2e['admin'];}),this['bind']('isResolvable')['to'](_0x5e2cce,'_permissions',()=>_0x1a16f1&&_0x5e2cce['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3ee269['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x3942ad,_0x2926c0)=>_0x3942ad?_0x2926c0?_0x3942ad<_0x2926c0?_0x3942ad:_0x2926c0:_0x3942ad:_0x2926c0),this['set']('unlinkedAt',_0x3ee269['unlinkedAt']||null),this['set']('resolvedAt',_0x3ee269['resolvedAt']||null),this['set']('resolvedBy',_0x3ee269['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x195465=>!!_0x195465),this['set']('attributes',_0x3ee269['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0xbc4705,_0x20f6b2)=>_0xbc4705+_0x20f6b2['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x12eef9,id:_0x2f1153}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x12eef9),{'channelId':_0x12eef9,'threadId':_0x2f1153});}['setUnlinkedAt'](_0x416ab4){this['_update']({'unlinkedAt':_0x416ab4});}['resolve']({resolvedAt:_0x2f189a=new Date(),resolvedBy:_0x2c4437='',isFromAdapter:_0x82a05a=!0x1}={}){const _0x237fe6=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x38c1bc,id:_0x188287}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x38c1bc),{'channelId':_0x38c1bc,'threadId':_0x188287,'resolvedAt':_0x2f189a,'resolvedBy':_0x2c4437||_0x237fe6['id'],'isFromAdapter':_0x82a05a});}['reopen']({isFromAdapter:_0x3f485d=!0x1}={}){const {channelId:_0x5a3048,id:_0x4a918c}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x5a3048),{'channelId':_0x5a3048,'threadId':_0x4a918c,'isFromAdapter':_0x3f485d});}['setContext'](_0x4c16b3){this['context']||this['_update']({'context':_0x4c16b3});}['setAttribute'](_0x362a73,_0x5dbe5d){const _0x13feeb=wt(this['attributes']);yt(_0x13feeb,_0x362a73,_0x5dbe5d),this['_update']({'attributes':_0x13feeb});}['removeAttribute'](_0x580ff2){const _0x44e3a6=wt(this['attributes']);Ct(_0x44e3a6,_0x580ff2),this['_update']({'attributes':_0x44e3a6});}['remove']({isFromAdapter:_0x21df61=!0x1}={}){const {channelId:_0x496dbc,id:_0x2cb2e3}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x496dbc),{'channelId':_0x496dbc,'threadId':_0x2cb2e3,'isFromAdapter':_0x21df61});}['attachTo'](_0x29eb91){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x29eb91});}['addComment'](_0x45c906){const {channelId:_0x49c152,id:_0xbb3142}=this;this['_repository']['fire'](Nt('addComment',_0x49c152,_0xbb3142),Object['assign']({'channelId':_0x49c152,'threadId':_0xbb3142},_0x45c906));}['getComment'](_0x528639){if('string'!=typeof _0x528639)throw new _0x3b4517('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x528639});return this['comments']['get'](_0x528639);}['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'](_0x47bf72=>_0x47bf72['toJSON']()),'attributes':this['attributes']};}['_add'](_0x126ee0){return this['listenTo'](_0x126ee0,'change:authoredAt',()=>{const _0x56a194=this['_findOptimalIndex'](_0x126ee0),_0x102f69=this['comments'];_0x56a194-0x1!=_0x102f69['getIndex'](_0x126ee0)&&_0x56a194+0x1!=_0x102f69['getIndex'](_0x126ee0)&&(this['_remove'](_0x126ee0),this['_add'](_0x126ee0));}),this['comments']['add'](_0x126ee0,this['_findOptimalIndex'](_0x126ee0));}['_update'](_0x2f8023){const {channelId:_0x31540b,id:_0x5018d7}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x31540b),{..._0x2f8023,'channelId':_0x31540b,'threadId':_0x5018d7});}['_remove'](_0x1af4f9){return this['stopListening'](_0x1af4f9),_0x1af4f9['destroy'](),this['comments']['remove'](_0x1af4f9);}['_findOptimalIndex'](_0x527a05){const _0x239c6e=this['comments']['find'](_0x3678c7=>new Date(_0x3678c7['authoredAt'])['getTime']()>new Date(_0x527a05['authoredAt'])['getTime']());return _0x239c6e?this['comments']['getIndex'](_0x239c6e):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x5f09fa(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x47dcdd,_0x2161f1){super();const _0x3c2a31=_0x47dcdd['context']['plugins']['get'](it)['me'],_0x12ad91=_0x47dcdd['getCommentThread'](_0x2161f1['threadId']),_0x3f765e=0x0===_0x12ad91['comments']['length'],_0x3c0cf0=_0x3c2a31===_0x2161f1['author'];this['id']=_0x2161f1['id'],this['threadId']=_0x2161f1['threadId'],this['author']=_0x2161f1['author'],this['creator']=_0x2161f1['creator'],this['isExternal']=Boolean(_0x2161f1['attributes']&&_0x2161f1['attributes']['@external']),this['set']('content',_0x2161f1['content']),this['createdAt']=_0x2161f1['createdAt']||new Date(),this['set']('authoredAt',_0x2161f1['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x12ad91,'resolvedAt'),this['set']('attributes',_0x2161f1['attributes']||{}),this['bind']('isEditable')['to'](_0x47dcdd,'_permissions',()=>{const _0x3c9ddf=_0x47dcdd['getPermissions'](_0x12ad91['channelId'])['write'],_0xf4204=_0x47dcdd['getPermissions'](_0x12ad91['channelId'])['modifyAll'];return _0x3c0cf0&&_0x3c9ddf||!_0x3c0cf0&&_0xf4204;}),this['bind']('isRemovable')['to'](_0x12ad91,'isRemovable',_0x47dcdd,'_permissions',_0x5b7b35=>{const _0x424855=_0x47dcdd['getPermissions'](_0x12ad91['channelId'])['write'],_0x4d90b5=_0x47dcdd['getPermissions'](_0x12ad91['channelId'])['modifyAll'];return _0x3c0cf0&&_0x424855||_0x5b7b35&&_0x3f765e||!_0x3c0cf0&&_0x4d90b5&&!_0x3f765e;}),this['bind']('isReadOnly')['to'](_0x12ad91,'isReadOnly'),this['_repository']=_0x47dcdd;}get['weight'](){return Math['max'](function(_0x462cc5){const _0x2c2602=document['createElement']('div');return _0x2c2602['innerHTML']=_0x462cc5,_0x2c2602['textContent']['length'];}(this['content']),0xc8);}['update'](_0x5e50db){const {threadId:_0x340a55,id:_0x28fd85}=this;if(!this['_repository']['hasCommentThread'](_0x340a55))throw new _0x3b4517('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x541185}=this['_repository']['getCommentThread'](_0x340a55);this['_repository']['fire'](Nt('updateComment',_0x541185,_0x340a55),{'channelId':_0x541185,'threadId':_0x340a55,'commentId':_0x28fd85,..._0x5e50db});}['setAttribute'](_0x593bb6,_0x8a6837){const _0x473918=wt(this['attributes']);yt(_0x473918,_0x593bb6,_0x8a6837),this['update']({'attributes':_0x473918});}['removeAttribute'](_0x2577de){const _0x58cf66=wt(this['attributes']);Ct(_0x58cf66,_0x2577de),this['update']({'attributes':_0x58cf66});}['remove'](_0x238865={}){if(!_0x238865['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x5b8e67,id:_0x52f1a6}=this;if(!this['_repository']['hasCommentThread'](_0x5b8e67))throw new _0x3b4517('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x101a4a}=this['_repository']['getCommentThread'](_0x5b8e67);this['_repository']['fire'](Nt('removeComment',_0x101a4a,_0x5b8e67),{'channelId':_0x101a4a,'threadId':_0x5b8e67,'commentId':_0x52f1a6,..._0x238865});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x271934,..._0x550c7f){for(const _0x3e62aa of _0x550c7f)void 0x0!==_0x3e62aa&&(_0x271934+=':'+String(_0x3e62aa));return _0x271934;}class ot extends _0xd88f38{constructor(_0xf85692){super(_0xf85692),this['set']('hasContent',!0x1);}['refresh'](){const _0xebb306=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5a6c2b of _0xebb306['getRanges']())if(this['_hasContent'](_0x5a6c2b))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x6e9b33=_0x2303ca(),ranges:_0x4cde54,comment:_0xf2c9ac}={}){const _0x2fda3b=this['editor']['model'],_0x5d54cc=_0x4cde54??Array['from'](_0x2fda3b['document']['selection']['getRanges']()),_0x954865=[];for(const _0x5bb207 of _0x5d54cc)this['_hasContent'](_0x5bb207)&&_0x954865['push'](this['_trimToContent'](_0x5bb207));if(!_0x954865['length'])throw new _0x3b4517('addcommentthreadcommand-incorrect-ranges',null);_0xf2c9ac&&this['_createCommentThread'](_0x6e9b33,_0xf2c9ac),this['_createMarkersFromRanges'](_0x6e9b33,_0x954865,!!_0xf2c9ac);}['_createMarkersFromRanges'](_0x3f6ceb,_0x2cf56f,_0x590722){this['editor']['model']['change'](_0x513aa2=>{for(const _0x280eff of _0x2cf56f){const _0x3289b9=_0x2303ca()['substr'](0x1,0x5),_0x287263='comment:'+_0x3f6ceb+':'+_0x3289b9;_0x513aa2['addMarker'](_0x287263,{'range':_0x280eff,'usingOperation':_0x590722,'affectsData':_0x590722});}});}['_createCommentThread'](_0x17a7d3,_0x4713aa){const _0x3398b8=this['editor']['plugins']['get']('CommentsRepository'),_0x36a7b3=this['editor']['config']['get']('collaboration.channelId'),_0x882769=this['editor']['plugins']['get']('Users')['me'];if(!_0x882769)throw new _0x3b4517('addcommentthreadcommand-user-not-found',null);_0x3398b8['addCommentThread']({'threadId':_0x17a7d3,'channelId':_0x36a7b3,'comments':[{'authorId':_0x882769['id'],'content':_0x4713aa,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x429a10){for(const _0x10648b of _0x429a10['getItems']())if(this['_itemIsContent'](_0x10648b))return!0x0;return!0x1;}['_itemIsContent'](_0x5e1e79){return _0x5e1e79['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5e1e79)&&!_0x5e1e79['is']('element','tableCell');}['_trimToContent'](_0x486c11){const _0x513f34=_0x2d9d71=>!this['_itemIsContent'](_0x2d9d71['item']),_0x20d3b6=_0x486c11['start']['getLastMatchingPosition'](_0x513f34),_0x3ab3ec=_0x486c11['end']['getLastMatchingPosition'](_0x513f34,{'direction':'backward'});return this['editor']['model']['createRange'](_0x20d3b6,_0x3ab3ec);}}class b extends _0x44aad5{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1644b8){super(_0x1644b8),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x1d1980=this['editor'],_0xdcae3=_0x1d1980['model']['document']['selection'],_0x3332c9=_0x3792c0(()=>this['refreshSelectedViews'](),0xa);_0xdcae3['on']('change:range',(_0x53685c,_0x4ba267)=>{_0x4ba267['directChange']&&(_0x3332c9['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x1d1980['editing']['view']['document'],'change:isFocused',(_0x33c765,_0x1246f8,_0x55304d)=>{_0x55304d&&_0x3332c9();}),this['listenTo'](_0x1d1980['ui']['focusTracker'],'change:isFocused',(_0x20d766,_0xdb4023,_0x35b7e3)=>{_0x35b7e3||this['fire']('blur',{'isAnnotationTracked':_0x2fc762=>this['_editorAnnotationsData']['has'](_0x2fc762['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0xa9b46a){if(this['_editorAnnotations']['has'](_0xa9b46a['view']))return;this['_editorAnnotations']['add'](_0xa9b46a['view']),this['editor']['ui']['focusTracker']['add'](_0xa9b46a['view']['element']);const _0x2c885c=this['editor']['plugins']['get'](y);this['listenTo'](_0x2c885c['collection'],'remove',(_0x2bf427,_0x197fda)=>{this['editor']['ui']['focusTracker']['remove'](_0x197fda['view']['element']),this['_editorAnnotations']['delete'](_0x197fda['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x99d400){if('function'!=typeof _0x99d400)throw new _0x3b4517('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x99d400);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0xc733cf,annotations:_0x2803ff}){const _0x49191d=[],_0x3e91b6=this['editor']['model']['document']['selection'],_0x5ca194=Array['from'](_0x3e91b6['getRanges']());for(const [_0x5994e3,_0x317e47]of this['_editorAnnotationsData']){const _0x3e830b=_0x340638(_0x317e47),_0x4d2359=_0x2803ff['getByInnerView'](_0x5994e3);_0x3e830b&&_0x4d2359&&_0x49191d['push']({'annotation':_0x4d2359,'range':_0x3e830b});}function _0x340638(_0x1b205b){for(const _0x2a585e of _0x1b205b)for(const _0x2f6d84 of _0x5ca194)if(_0x2a585e['containsRange'](_0x2f6d84,!_0x3e91b6['isCollapsed']))return _0x2a585e;return null;}return _0x49191d['sort']((_0x5cfa64,_0x20bab5)=>{const _0x2c8815=_0x5cfa64['range'],_0x1c69af=_0x20bab5['range'];if(!_0x2c8815['isEqual'](_0x1c69af)){if(_0x2c8815['containsRange'](_0x1c69af,!0x0))return 0x1;if(_0x1c69af['containsRange'](_0x2c8815,!0x0))return-0x1;}return _0x5cfa64['annotation']==_0xc733cf?-0x1:_0x20bab5['annotation']==_0xc733cf?0x1:0x0;})['map'](_0xc2237=>_0xc2237['annotation']);}get['_editorAnnotationsData'](){const _0x5c9c83=new Map();for(const _0x3f9f5a of Array['from'](this['_dataCollectors']))for(const [_0x43eeaa,_0xe4769f]of _0x3f9f5a())_0x5c9c83['set'](_0x43eeaa,_0xe4769f);return _0x5c9c83;}}class st extends _0x44aad5{['afterInit'](){const _0x227437=this['editor'];if(!_0x227437['plugins']['has']('RestrictedEditingModeEditing'))return;_0x227437['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x44aad5{constructor(_0x3ce8a8){super(_0x3ce8a8),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x28d3a4=this['editor'],_0xeada8=_0x28d3a4['commands']['get']('importWord'),_0x5668c9=_0x28d3a4['plugins']['get'](it);_0xeada8&&(_0xeada8['on']('execute',(_0x3fd452,[,_0x55b12f])=>{_0x55b12f['collaboration_features']={'comments':!0x0,'user_id':_0x5668c9['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0xeada8,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x260d6a,_0x31d9b8){const {comment_threads:_0x211b04}=_0x31d9b8;_0x211b04&&_0x211b04['forEach'](({thread_id:_0x4bae5f,comments:_0x4e3587,is_resolved:_0xadf241})=>{const _0x5b1653=new Date(),_0x31a0d8=_0x4e3587['map'](({author:_0xfc9b23,content:_0x3a59f1,created_at:_0x966c00})=>({'content':_0x3a59f1,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x5b1653,'attributes':{'@external':{'authorName':_0xfc9b23,'createdAt':_0x966c00?new Date(_0x966c00):new Date(),'source':'importWord'}}})),_0x33cec5=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x33cec5,'threadId':_0x4bae5f,'comments':_0x31a0d8,'resolvedAt':_0xadf241?_0x5b1653:null});});}}class at extends _0x44aad5{constructor(_0x47695d){super(_0x47695d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x49faaa=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x49faaa,'contentInsertion',(_0x37e8a1,_0x3dfb95)=>this['_removeMarkersWithoutThreads'](_0x3dfb95['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x1fa5f8){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x1fa5f8;const _0x366754=this['editor']['plugins']['get']('CommentsRepository');for(const _0x38d0e2 of _0x1fa5f8['keys']()){const [_0x51da4d,_0x30e411]=_0x38d0e2['split'](':');'comment'!=_0x51da4d||_0x366754['hasCommentThread'](_0x30e411)||_0x1fa5f8['delete'](_0x38d0e2);}return _0x1fa5f8;}['_registerMarkerInClipboardPipeline'](){const _0x5d6355=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x13f8b6=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x13f8b6&&_0x5d6355['_registerMarkerToCopy']('comment',_0x13f8b6);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1b708e){switch(_0x1b708e){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x3d1f52){const _0x2fd6a9=_0x3d1f52['split'](':');return{'group':_0x2fd6a9[0x0],'id':_0x2fd6a9[0x1],'part':_0x2fd6a9[0x2]};}class ut extends _0x44aad5{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4134cf,_0x5f2c47)=>{if(!_0x5f2c47['options']['showCommentHighlights'])return null;if(_0x5f2c47['options']['ignoreResolvedComments']){const {id:_0x269cb9}=ft(_0x4134cf['markerName']),_0x6588a1=this['editor']['plugins']['get'](o);if(_0x6588a1['getCommentThread'](_0x269cb9)?.['isResolved']&&_0x4134cf['item'])return _0x5f2c47['consumable']['consume'](_0x4134cf['item'],'addMarker:'+_0x4134cf['markerName']),_0x5f2c47['consumable']['consume'](_0x4134cf['item'],'removeMarker:'+_0x4134cf['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x566c70=>{_0x566c70['on']('addMarker:comment',(_0x26d070,_0x4da030,_0x5329ba)=>{if(!_0x5329ba['options']['showCommentHighlights'])return;const _0x15b35f=_0x4da030['item'];if(!_0x15b35f)return;const _0x3ff659=_0x5329ba['mapper']['toViewElement'](_0x15b35f);this['editor']['model']['schema']['isObject'](_0x15b35f)&&_0x3ff659&&!_0x3ff659['getCustomProperty']('widget')&&_0x3ff659['is']('containerElement')&&_0x5b2bd9(_0x3ff659,_0x5329ba['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3b4c31,{writer:_0x456a17,options:_0x4bc766})=>{if(!_0x4bc766['showCommentHighlights'])return null;const _0x4a29ee=_0x456a17['createContainerElement']('div'),_0xda55c=_0x456a17['createEmptyElement']('hr');return _0x456a17['addClass']('ck-horizontal-line',_0x4a29ee),_0x456a17['insert'](_0x456a17['createPositionAt'](_0x4a29ee,0x0),_0xda55c),_0x4a29ee;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x24837a,{writer:_0x27ecdf,options:_0x14df28})=>{if(!_0x14df28['showCommentHighlights'])return null;const _0x2ef785=_0x27ecdf['createContainerElement']('span'),_0x4ec946=_0x27ecdf['createEmptyElement']('img');return _0x27ecdf['addClass']('image-inline',_0x2ef785),_0x27ecdf['insert'](_0x27ecdf['createPositionAt'](_0x2ef785,0x0),_0x4ec946),_0x2ef785;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3a8d64,{writer:_0x47243e,options:_0x4f0f47})=>{if(_0x4f0f47['showCommentHighlights'])return _0x47243e['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1a8988,_0x1efd58,_0x18c5b8)=>{_0x18c5b8['options']['showCommentHighlights']&&_0x1a8988['stop']();},{'priority':'high'});}}class r extends _0x44aad5{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(_0x2159f2){super(_0x2159f2),this['set']('isThreadsLoadingPaused',!0x0),_0x2159f2['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x39975b,_0x31e063,_0x5ea206,_0x193880)=>{const _0x209469=_0x2159f2['plugins']['get'](o),_0x58011f=_0x5ea206?ft(_0x5ea206)['id']:null;_0x2159f2['model']['change'](()=>{if(_0x58011f){const _0xec0367=this['getAllMarkersForId'](_0x58011f);for(const _0x24292f of _0xec0367)_0x2159f2['editing']['reconvertMarker'](_0x24292f);}if(_0x193880){const {id:_0xdad771}=ft(_0x193880),_0xeb7cf7=_0x209469['getCommentThread'](_0xdad771);if(_0xeb7cf7&&_0xeb7cf7['unlinkedAt'])return;if(_0xeb7cf7&&!_0xeb7cf7['isAttached'])return;const _0x42a953=this['getAllMarkersForId'](_0xdad771);for(const _0x212083 of _0x42a953)_0x2159f2['editing']['reconvertMarker'](_0x212083);}}),_0x58011f&&this['scrollToThreadMarker'](_0x58011f);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5294f0=this['editor'],_0x34383a=_0x5294f0['plugins']['get'](o),_0x255faa=_0x5294f0['config']['get']('collaboration.channelId'),_0x1718ea=_0x34383a['getCommentThreads']()['filter'](_0x39f4c5=>_0x39f4c5['channelId']!==_0x255faa);_0x5294f0['commands']['add']('addCommentThread',new ot(_0x5294f0)),this['listenTo'](_0x5294f0,'change:isReadOnly',(_0x4004c9,_0x203fec,_0x430348)=>{_0x34383a['switchReadOnly'](_0x430348,_0x5294f0['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x34383a,dt('addCommentThread',_0x255faa),(_0x1b85c9,{threadId:_0x52ad7f})=>{const _0x2ec0f1=this['editor']['plugins']['get'](o)['getCommentThread'](_0x52ad7f);_0x2ec0f1?.['unlinkedAt']&&this['_attachArchivedThread'](_0x52ad7f);}),this['listenTo'](_0x34383a,dt('removeCommentThread',_0x255faa),(_0x49027f,{threadId:_0x554fb8})=>{_0x5294f0['model']['enqueueChange']({'isUndoable':!0x1},_0x18b08f=>{const _0x112ffe=this['getAllMarkersForId'](_0x554fb8);for(const _0x295534 of _0x112ffe)_0x18b08f['removeMarker'](_0x295534);});}),this['listenTo'](_0x34383a,dt('resolveCommentThread',_0x255faa),(_0x50dd00,{threadId:_0x407db1})=>{(this['_reconvertMarkers'](_0x407db1),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x407db1)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x34383a,dt('reopenCommentThread',_0x255faa),(_0x28f61f,{threadId:_0x4bf6a1})=>{this['_reconvertMarkers'](_0x4bf6a1);},{'priority':'low'}),this['listenTo'](_0x34383a,dt('addComment',_0x255faa),(_0x5b88de,{threadId:_0x99568,isFromAdapter:_0x131c7a})=>{const _0x2983c5=this['getAllMarkersForId'](_0x99568);if(_0x131c7a||0x0==_0x2983c5['length']||!_0x34383a['hasCommentThread'](_0x99568))return;0x1===_0x34383a['getCommentThread'](_0x99568)['length']&&_0x5294f0['model']['enqueueChange']({'isUndoable':!0x1},_0x4f8179=>{for(const _0x51d7bb of _0x2983c5)_0x4f8179['updateMarker'](_0x51d7bb,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x1718ea);}['afterInit'](){!async function(_0x370289){const _0x8fdb23=_0x34035d([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]),_0x5304ca=0x73460ab3,_0x12aee1=0x73418be3^_0x5304ca,_0x501d38=window[_0x34035d([0x44,0x61,0x74,0x65])][_0x34035d([0x6e,0x6f,0x77])](),_0x222929=_0x370289[_0x34035d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a69d2=new window[(_0x34035d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e7012=>{_0x222929[_0x34035d([0x6f,0x6e,0x63,0x65])](_0x34035d([0x72,0x65,0x61,0x64,0x79]),_0x2e7012);}),_0x3a3467={[_0x34035d([0x6b,0x74,0x79])]:_0x34035d([0x45,0x43]),[_0x34035d([0x75,0x73,0x65])]:_0x34035d([0x73,0x69,0x67]),[_0x34035d([0x63,0x72,0x76])]:_0x34035d([0x50,0x2d,0x32,0x35,0x36]),[_0x34035d([0x78])]:_0x34035d([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]),[_0x34035d([0x79])]:_0x34035d([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]),[_0x34035d([0x61,0x6c,0x67])]:_0x34035d([0x45,0x53,0x32,0x35,0x36])},_0x5e9187=_0x222929[_0x34035d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34035d([0x67,0x65,0x74])](_0x34035d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x19947e(){let _0x4fcaa3,_0x5774bb=null,_0x4f8ba8=null;try{if(_0x5e9187==_0x34035d([0x47,0x50,0x4c]))return _0x34035d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4fcaa3=_0x5ead6c(),!_0x4fcaa3)return _0x34035d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4fcaa3[_0x34035d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f8ba8=_0x35a1c8(_0x4fcaa3[_0x34035d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4fcaa3[_0x34035d([0x6a,0x74,0x69])])),await _0x451b97()?_0x3b646a()?_0x1f94f2()?_0x34035d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x445b6e()?(_0x4fcaa3[_0x34035d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34035d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5774bb=_0x34a87c(_0x34035d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b351c()):_0x34035d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34035d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34035d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34035d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f94f2(){const _0x517da8=[_0x34035d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34035d([0x74,0x72,0x69,0x61,0x6c])][_0x34035d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fcaa3[_0x34035d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x501d38/0x3e8:0xe10*_0x12aee1;return _0x4fcaa3[_0x34035d([0x65,0x78,0x70])]<_0x517da8;}function _0x3b646a(){const _0x78ce79=_0x4fcaa3[_0x34035d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x78ce79)return!0x1;if(_0x78ce79[_0x34035d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34035d([0x2a])))return!0x0;if(_0x78ce79[_0x34035d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34035d([0x43,0x4d,0x54])))return!0x0;if(_0x78ce79[_0x34035d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34035d([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x340854())return!0x0;if(_0x78ce79[_0x34035d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34035d([0x52,0x43,0x4d,0x54]))){if(_0x138d23())return!0x0;if(_0x2a4117()||_0x33be60())return!0x0;}return!0x1;}function _0x445b6e(){const _0x467d9f=_0x4fcaa3[_0x34035d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x467d9f||0x0==_0x467d9f[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26baf5}=new URL(window[_0x34035d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x467d9f[_0x34035d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26baf5))return!0x0;const _0x500ca0=_0x26baf5[_0x34035d([0x73,0x70,0x6c,0x69,0x74])](_0x34035d([0x2e]));return _0x467d9f[_0x34035d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b6698=>_0x5b6698[_0x34035d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34035d([0x2a])))[_0x34035d([0x6d,0x61,0x70])](_0x5889e1=>_0x5889e1[_0x34035d([0x73,0x70,0x6c,0x69,0x74])](_0x34035d([0x2e])))[_0x34035d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c3617=>_0x2c3617[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x500ca0[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34035d([0x6d,0x61,0x70])](_0xc2f0ce=>Array(_0x500ca0[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc2f0ce[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34035d([0x66,0x69,0x6c,0x6c])](_0xc2f0ce[0x0]===_0x34035d([0x2a])?_0x34035d([0x2a]):'')[_0x34035d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc2f0ce))[_0x34035d([0x73,0x6f,0x6d,0x65])](_0x36b38a=>_0x500ca0[_0x34035d([0x65,0x76,0x65,0x72,0x79])]((_0x5b8cff,_0x152314)=>_0x36b38a[_0x152314]===_0x5b8cff||_0x36b38a[_0x152314]===_0x34035d([0x2a])));}function _0x2b351c(){return _0x5774bb&&_0x4f8ba8?new window[(_0x34035d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d6668,_0xdc49b1)=>{_0x5774bb[_0x34035d([0x74,0x68,0x65,0x6e])](_0x5d6668,_0xdc49b1),_0x4f8ba8[_0x34035d([0x74,0x68,0x65,0x6e])](_0x38abfd=>{_0x38abfd!=_0x34035d([0x56,0x61,0x6c,0x69,0x64])&&_0x5d6668(_0x38abfd);},_0xdc49b1);}):_0x5774bb||_0x4f8ba8||_0x34035d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35a1c8(_0x1559df,_0x3f2df7){return new window[(_0x34035d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x143bd1=>{if(_0x4c1983())return _0x143bd1(_0x34035d([0x56,0x61,0x6c,0x69,0x64]));_0xbd3adf(),_0x222929[_0x34035d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34035d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35739e=!0x1;const _0x3f4091=_0x2303ca();function _0x36688b(_0x41fa86){return!!_0x41fa86&&(typeof _0x41fa86===_0x34035d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41fa86===_0x34035d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41fa86[_0x34035d([0x74,0x68,0x65,0x6e])]===_0x34035d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41fa86[_0x34035d([0x63,0x61,0x74,0x63,0x68])]===_0x34035d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x551068(_0x1cd1e5){_0x10d79c(_0x1cd1e5)[_0x34035d([0x74,0x68,0x65,0x6e])](_0x15e974=>{if(!_0x15e974||_0x15e974[_0x34035d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34035d([0x6f,0x6b]))return _0x34035d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35b07f(_0x1da3f1(_0x3f4091+_0x3f2df7))!=_0x15e974[_0x34035d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34035d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34035d([0x56,0x61,0x6c,0x69,0x64]);})[_0x34035d([0x74,0x68,0x65,0x6e])](_0x441d03=>(_0x1ab506(),_0x441d03),()=>{const _0x36efed=_0x405bde();return null==_0x36efed?(_0x1ab506(),_0x34035d([0x56,0x61,0x6c,0x69,0x64])):_0x34035d(_0x501d38-_0x36efed>(0x574a8eb3^_0x5304ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34035d([0x74,0x68,0x65,0x6e])](_0x143bd1)[_0x34035d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x143bd1(_0x34035d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2224b5=0x7370e433^_0x5304ca;function _0x1ab506(){const _0x274865=_0x34035d([0x6c,0x6c,0x63,0x74,0x2d])+_0x35b07f(_0x1da3f1(_0x1559df)),_0x29f511=_0x2cd075(_0x35b07f(window[_0x34035d([0x4d,0x61,0x74,0x68])][_0x34035d([0x63,0x65,0x69,0x6c])](_0x501d38/_0x2224b5)));window[_0x34035d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34035d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x274865,_0x29f511);}function _0x405bde(){const _0x37b765=_0x34035d([0x6c,0x6c,0x63,0x74,0x2d])+_0x35b07f(_0x1da3f1(_0x1559df)),_0x11ad49=window[_0x34035d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34035d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37b765);return _0x11ad49?window[_0x34035d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cd075(_0x11ad49),0x10)*_0x2224b5:null;}function _0x10d79c(_0x3a7500){return new window[(_0x34035d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b0f6e,_0xc08fa9)=>{_0x3a7500[_0x34035d([0x74,0x68,0x65,0x6e])](_0x1b0f6e,_0xc08fa9),window[_0x34035d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc08fa9,0x7347de73^_0x5304ca);});}}_0x222929[_0x34035d([0x6f,0x6e])](_0x34035d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25cde2,_0x41b37)=>{if(_0x41b37[0x0]!=_0x1559df)return _0x143bd1(_0x34035d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41b37[0x1]={..._0x41b37[0x1],[_0x34035d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f4091};},{[_0x34035d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34035d([0x68,0x69,0x67,0x68])}),_0x222929[_0x34035d([0x6f,0x6e])](_0x34035d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x174c1d=>{_0x36688b(_0x174c1d[_0x34035d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35739e=!0x0,_0x551068(_0x174c1d[_0x34035d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34035d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34035d([0x6c,0x6f,0x77])}),_0x1a69d2[_0x34035d([0x74,0x68,0x65,0x6e])](()=>{_0x35739e||_0x143bd1(_0x34035d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c1983(){return _0x222929[_0x34035d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34035d([0x76,0x69,0x65,0x77])][_0x34035d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34035d([0x61,0x75,0x74,0x6f]);}function _0xbd3adf(){_0x222929[_0x34035d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34035d([0x76,0x69,0x65,0x77])][_0x34035d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34035d([0x61,0x75,0x74,0x6f]);}}function _0x34a87c(_0x1afa3a){const _0x513e63=[new window[(_0x34035d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3685c1=>setTimeout(_0x3685c1,0x734f347f^_0x5304ca)),_0x1a69d2[_0x34035d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34035d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46f6db=>{let _0x513a0c=0x0;_0x222929[_0x34035d([0x6d,0x6f,0x64,0x65,0x6c])][_0x34035d([0x6f,0x6e])](_0x34035d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3cc849,_0x5bdf00)=>{_0x5bdf00[0x0][_0x34035d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x513a0c++,_0x513a0c==(0x73460f5b^_0x5304ca)&&(_0x46f6db(),_0x3cc849[_0x34035d([0x6f,0x66,0x66])]());});}))];return window[_0x34035d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34035d([0x72,0x61,0x63,0x65])](_0x513e63)[_0x34035d([0x74,0x68,0x65,0x6e])](()=>_0x1afa3a);}async function _0x173a23(){await _0x1a69d2,_0x222929[_0x34035d([0x6d,0x6f,0x64,0x65,0x6c])][_0x34035d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a7148,_0x222929[_0x34035d([0x6d,0x6f,0x64,0x65,0x6c])][_0x34035d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a7148,_0x222929[_0x34035d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34035d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x340854(){return window[_0x34035d([0x67,0x6c,0x6f,0x62])]&&window[_0x34035d([0x67,0x6c,0x6f,0x62])][_0x34035d([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x138d23(){return _0x288673(_0x34035d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5a99aa(_0x34035d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x34035d([0x73,0x74,0x61,0x74,0x65])]==_0x34035d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2a4117(){return _0x288673(_0x34035d([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 _0x33be60(){return _0x288673(_0x34035d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2d4b70(_0x3808be){const _0x30f5bf=_0x1eb723();_0x222929[_0x30f5bf]=_0x34035d([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3808be,_0x3808be!=_0x34035d([0x56,0x61,0x6c,0x69,0x64])&&_0x173a23();}function _0x1eb723(){const _0x102d88=window[_0x34035d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34035d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34035d([0x6e,0x6f,0x77])]())[_0x34035d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34035d([0x2e]),'');let _0x3d415e=_0x34035d([0x4b]);for(let _0x12dfe0=0x0;_0x12dfe0<_0x102d88[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12dfe0+=0x2){let _0x3f07b2=window[_0x34035d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x102d88[_0x34035d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12dfe0,_0x12dfe0+0x2));_0x3f07b2>=_0x8fdb23[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f07b2-=_0x8fdb23[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d415e+=_0x8fdb23[_0x3f07b2];}return _0x3d415e;}function _0x5ead6c(){const _0x20e96a=_0x5e9187[_0x34035d([0x73,0x70,0x6c,0x69,0x74])](_0x34035d([0x2e]));if(0x3!=_0x20e96a[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c2175(_0x20e96a[0x1]);function _0x4c2175(_0x316caa){const _0x18d69a=_0x469c25(_0x316caa);return _0x18d69a&&_0x14eecc()?_0x18d69a:null;function _0x14eecc(){const _0x4f88c1=_0x18d69a[_0x34035d([0x6a,0x74,0x69])],_0x5b5c30=window[_0x34035d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f88c1[_0x34035d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f88c1[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a9a58={..._0x18d69a,[_0x34035d([0x6a,0x74,0x69])]:_0x4f88c1[_0x34035d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f88c1[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a9a58[_0x34035d([0x76,0x63])],_0x1da3f1(_0x4a9a58)==_0x5b5c30;}}}async function _0x451b97(){let _0x162c28=!0x0;try{const _0x2ef3ad=_0x5e9187[_0x34035d([0x73,0x70,0x6c,0x69,0x74])](_0x34035d([0x2e])),[_0x3928c2,_0xde52ad,_0x5dad41]=_0x2ef3ad;return _0x1a42ee(_0x3928c2),await _0x2c4e7c(_0x3928c2,_0xde52ad,_0x5dad41),_0x162c28;}catch{return!0x1;}function _0x1a42ee(_0x5ea832){const _0x210c83=_0x469c25(_0x5ea832);_0x210c83&&_0x210c83[_0x34035d([0x61,0x6c,0x67])]==_0x34035d([0x45,0x53,0x32,0x35,0x36])||(_0x162c28=!0x1);}async function _0x2c4e7c(_0x59f2b3,_0x16558d,_0x14f37d){const _0x4db535=window[_0x34035d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34035d([0x66,0x72,0x6f,0x6d])](_0x4134d1(_0x14f37d),_0x855a4c=>_0x855a4c[_0x34035d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e4e50=new window[(_0x34035d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34035d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59f2b3+_0x34035d([0x2e])+_0x16558d),_0x1d7d54=window[_0x34035d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34035d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d7d54)return;const _0x51b551=await _0x1d7d54[_0x34035d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34035d([0x6a,0x77,0x6b]),_0x3a3467,{[_0x34035d([0x6e,0x61,0x6d,0x65])]:_0x34035d([0x45,0x43,0x44,0x53,0x41]),[_0x34035d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34035d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34035d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d7d54[_0x34035d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34035d([0x6e,0x61,0x6d,0x65])]:_0x34035d([0x45,0x43,0x44,0x53,0x41]),[_0x34035d([0x68,0x61,0x73,0x68])]:{[_0x34035d([0x6e,0x61,0x6d,0x65])]:_0x34035d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51b551,_0x4db535,_0x1e4e50)||(_0x162c28=!0x1);}}function _0x469c25(_0x3299f7){return _0x3299f7[_0x34035d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34035d([0x65,0x79]))?JSON[_0x34035d([0x70,0x61,0x72,0x73,0x65])](_0x4134d1(_0x3299f7)):null;}function _0x4134d1(_0x15912c){return window[_0x34035d([0x61,0x74,0x6f,0x62])](_0x15912c[_0x34035d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34035d([0x2b]))[_0x34035d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34035d([0x2f])));}function _0x1da3f1(_0x51598f){let _0x43da49=0x1505;function _0x44f9e1(_0x45e014){for(let _0x286e51=0x0;_0x286e51<_0x45e014[_0x34035d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x286e51++){const _0x37f9e9=_0x45e014[_0x34035d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x286e51);_0x43da49=(_0x43da49<<0x5)+_0x43da49+_0x37f9e9,_0x43da49&=_0x43da49;}}function _0x506e8d(_0x148433){Array[_0x34035d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x148433)?_0x148433[_0x34035d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x506e8d):_0x148433&&typeof _0x148433==_0x34035d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34035d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x148433)[_0x34035d([0x73,0x6f,0x72,0x74])]()[_0x34035d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ec254,_0x512e51])=>{_0x44f9e1(_0x3ec254),_0x506e8d(_0x512e51);}):_0x44f9e1(window[_0x34035d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x148433));}return _0x506e8d(_0x51598f),_0x43da49>>>0x0;}function _0x35b07f(_0x4c3e47){return _0x4c3e47[_0x34035d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34035d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34035d([0x30]));}function _0x2cd075(_0xfaf0a4){return _0xfaf0a4[_0x34035d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34035d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34035d([0x6a,0x6f,0x69,0x6e])]('');}function _0x288673(_0x189315){return _0x222929[_0x34035d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x34035d([0x68,0x61,0x73])](_0x189315);}function _0x5a99aa(_0xd63230){return _0x222929[_0x34035d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x34035d([0x67,0x65,0x74])](_0xd63230);}function _0x1a7148(){}function _0x34035d(_0x32ed18){return _0x32ed18['map'](_0x53221b=>String['fromCharCode'](_0x53221b))['join']('');}_0x2d4b70(await _0x19947e());}(this);}['destroy'](){const _0x195457=this['editor']['plugins']['get'](o),_0x2f75da=this['editor']['config']['get']('collaboration.channelId');for(const _0x1826b3 of _0x195457['getCommentThreads']({'channelId':_0x2f75da}))_0x195457['_detachCommentThread'](_0x1826b3['id']),_0x195457['_threads']['delete'](_0x1826b3['id']);super['destroy']();}['hasMarkerForId'](_0x5ccedf){return this['getAllMarkersForId'](_0x5ccedf)['length']>0x0;}['getAllMarkersForId'](_0x6e775b){const _0xc3002=[];for(const _0x333541 of this['editor']['model']['markers'])_0x333541['name']['startsWith']('comment:'+_0x6e775b)&&_0xc3002['push'](_0x333541);return _0xc3002;}['scrollToThreadMarker'](_0x513391){setTimeout(()=>{const _0x5773d1=this['_getTargetForId'](_0x513391);if(!_0x5773d1)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x513391&&nt({'target':_0x5773d1[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x808119){this['editor']['model']['change'](()=>{for(const _0x27212c of this['getAllMarkersForId'](_0x808119))this['editor']['editing']['reconvertMarker'](_0x27212c);});}['_attachArchivedThread'](_0x22cb5b){const _0x460baa=this['editor']['plugins']['get'](o),_0x3fc88f=this['editor']['plugins']['get'](b),_0x28ace6=_0x460baa['getCommentThread'](_0x22cb5b);if(!_0x28ace6['isAttached']){const _0x2399f9=_0x28ace6['attachTo'](()=>this['_getTargetForId'](_0x28ace6['id']));_0x3fc88f['registerAnnotation'](_0x2399f9),_0x28ace6['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0xc4d34f=this['editor'],_0x2d42d6=_0xc4d34f['plugins']['get'](it);_0xc4d34f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x40c5bf,_0x231b11)=>{const {id:_0x582908}=ft(_0x40c5bf['markerName']),_0x19104f=_0xc4d34f['plugins']['get'](o)['getCommentThread'](_0x582908),_0x403a1f=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x582908;let _0xc13795;if(_0x19104f&&_0x19104f['isResolved']&&!_0x403a1f&&_0x40c5bf['item'])return _0x231b11['consumable']['consume'](_0x40c5bf['item'],'addMarker:'+_0x40c5bf['markerName']),_0x231b11['consumable']['consume'](_0x40c5bf['item'],'removeMarker:'+_0x40c5bf['markerName']),null;const _0x5a81fa=['ck-comment-marker'];return _0x403a1f&&_0x5a81fa['push']('ck-comment-marker--active'),_0xc13795=_0x19104f?.['length']?_0x19104f['comments']['first']['author']['id']:_0x2d42d6['me']['id'],{'classes':_0x5a81fa,'attributes':{'data-comment':_0x582908,'data-author-id':_0xc13795}};}}),_0xc4d34f['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3f962b,{options:_0x176c5f})=>{if(_0x176c5f['showCommentHighlights'])return null;const _0x2929a6=_0xc4d34f['plugins']['get'](o),_0x50954e=_0xc4d34f['model']['markers']['get'](_0x3f962b),{id:_0x27652f,part:_0x3e5646}=ft(_0x3f962b);return _0x50954e&&!_0x50954e['affectsData']||_0x176c5f['ignoreResolvedComments']&&_0x2929a6['getCommentThread'](_0x27652f)?.['isResolved']?null:{'group':'comment','name':_0x3e5646?_0x27652f+':'+_0x3e5646:_0x27652f};}}),_0xc4d34f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x397675,{writer:_0x22dc21})=>_0x22dc21['createElement']('$marker',{'data-name':'comment:'+_0x397675['getAttribute']('id')})}),_0xc4d34f['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x33b7db=this['editor'],_0x24668f=_0x33b7db['plugins']['get'](o),_0x2f1000=new Set(),_0x1fd7b3=new Set();_0x33b7db['model']['document']['registerPostFixer'](_0x3f63e7=>{let _0x298a6c=!0x1;for(const {name:_0x31a9e9,data:_0x4a4d07}of _0x33b7db['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3221ff,id:_0x204c59}=ft(_0x31a9e9);let _0x5f85e3=_0x4a4d07['newRange'];if('comment'!==_0x3221ff||!_0x5f85e3)continue;const _0x5c3a6e='$graveyard'===_0x5f85e3['root']['rootName'];_0x5c3a6e||(_0x5f85e3=ht(_0x5f85e3,_0x33b7db['model']),!_0x5f85e3||_0x5f85e3['isCollapsed']||!_0x4a4d07['newRange']||_0x5f85e3['isEqual'](_0x4a4d07['newRange']))?_0x33b7db['model']['hasContent'](_0x5f85e3)&&!_0x5c3a6e?this['isThreadsLoadingPaused']?_0x2f1000['add'](_0x31a9e9):this['_handleThreadMarker'](_0x31a9e9,_0x204c59):(_0x1fd7b3['add'](_0x31a9e9),_0x2f1000['delete'](_0x31a9e9),_0x3f63e7['removeMarker'](_0x31a9e9),_0x298a6c=!0x0):(_0x3f63e7['updateMarker'](_0x31a9e9,{'range':_0x5f85e3}),_0x298a6c=!0x0);}return _0x298a6c;}),this['on']('change:isThreadsLoadingPaused',(_0x16a49a,_0x2758fd,_0xde200e)=>{if(!_0xde200e&&_0x2f1000['size'])for(const _0x5151f8 of _0x2f1000){const {id:_0xa360a6}=ft(_0x5151f8);_0x2f1000['delete'](_0x5151f8),_0x33b7db['model']['markers']['get'](_0x5151f8)&&this['_handleThreadMarker'](_0x5151f8,_0xa360a6);}}),this['listenTo'](_0x33b7db['model']['document'],'change',()=>{for(const {name:_0x32830f,data:{newRange:_0x23acf5}}of _0x33b7db['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1afe0d,id:_0x287fa4}=ft(_0x32830f);if('comment'!==_0x1afe0d)continue;const _0x509944=_0x24668f['getCommentThread'](_0x287fa4),_0xbc07e8=this['hasMarkerForId'](_0x287fa4);_0x509944&&(!_0x509944['_hasTargetInContent']&&_0x23acf5&&_0x33b7db['editing']['view']['once']('render',()=>{const _0x768df1=_0x33b7db['plugins']['get'](y),_0x24c22c=_0x24668f['_threadToController']['get'](_0x509944)['view'];_0x768df1['getByInnerView'](_0x24c22c)['refreshVisibility']();},{'priority':'low'}),_0x509944['_hasTargetInContent']=_0xbc07e8||!!_0x23acf5),_0x23acf5||(_0x1fd7b3['add'](_0x32830f),_0x2f1000['delete'](_0x32830f));}for(const _0x491c8d of _0x1fd7b3){const {id:_0x10bd6a}=ft(_0x491c8d),_0x365d82=_0x24668f['getCommentThread'](_0x10bd6a);if(_0x2f1000['delete'](_0x491c8d),!_0x365d82)continue;const _0x5da828=this['hasMarkerForId'](_0x10bd6a);_0x5da828||_0x365d82['isSubmitted']?_0x5da828||_0x365d82['unlinkedAt']||_0x365d82['setUnlinkedAt'](new Date()):_0x365d82['remove']();}_0x1fd7b3['clear']();});}['_handleInitialThreads'](_0x1c9016){_0x1c9016['forEach'](_0x20f1a2=>{_0x20f1a2['unlinkedAt']&&this['_attachArchivedThread'](_0x20f1a2['id']);});}['_getTargetForId'](_0x40b4ae){const _0x1041dd=this['editor'],_0x4b1e12=this['getAllMarkersForId'](_0x40b4ae);return et(_0x1041dd['editing'],_0x4b1e12);}['_getTextContext'](_0x4f5186){const _0x2b0a41=this['getAllMarkersForId'](_0x4f5186);let _0x4d9bbb='',_0x3b812e=!0x1;for(const _0x213873 of _0x2b0a41){const _0x384a00=_0x213873['getRange']();for(const _0x1ac25d of Array['from'](_0x384a00['getItems']()))_0x1ac25d['is']('$textProxy')?(_0x4d9bbb&&_0x3b812e&&(_0x4d9bbb+='\x20',_0x3b812e=!0x1),_0x4d9bbb+=_0x1ac25d['data']):_0x3b812e=!0x0;_0x3b812e=!0x0;}return _0x4d9bbb['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x565471,_0x5a072f){const _0x30ef9a=this['editor'],_0x1c54fa=_0x30ef9a['plugins']['get'](o);let _0x345f3d=_0x1c54fa['getCommentThread'](_0x5a072f);const _0x3881bb=_0x30ef9a['config']['get']('collaboration.channelId'),_0x25b780=_0x30ef9a['plugins']['get'](b);if(_0x345f3d&&(_0x345f3d['unlinkedAt']&&_0x345f3d['setUnlinkedAt'](null),_0x345f3d['isAttached']))return _0x345f3d;return!this['getAllMarkersForId'](_0x5a072f)[0x0]['managedUsingOperations']?_0x30ef9a['editing']['view']['once']('render',()=>{if(_0x1c54fa['getCommentThread'](_0x5a072f))return;const _0x442cf9=_0x30ef9a['plugins']['get'](y);_0x345f3d=_0x1c54fa['openNewCommentThread']({'channelId':_0x3881bb,'threadId':_0x5a072f,'target':()=>this['_getTargetForId'](_0x5a072f),'context':{'type':'text','value':this['_getTextContext'](_0x5a072f)}});const _0xf4b725=_0x1c54fa['_threadToController']['get'](_0x345f3d)['view'],_0xf2f2ee=_0x442cf9['getByInnerView'](_0xf4b725);_0xf2f2ee&&_0x25b780['registerAnnotation'](_0xf2f2ee);},{'priority':'low'}):_0x1c54fa['fetchCommentThread']({'channelId':_0x3881bb,'threadId':_0x5a072f})['then'](_0x452df2=>{if('destroyed'!==_0x30ef9a['state']){if(_0x345f3d=_0x452df2,_0x345f3d&&!_0x345f3d['isAttached']){const _0x371374=_0x345f3d['attachTo'](()=>this['_getTargetForId'](_0x5a072f));_0x25b780['registerAnnotation'](_0x371374),_0x345f3d['isResolved']&&this['_reconvertMarkers'](_0x5a072f);}else{if(!_0x345f3d){const _0x33e86e=this['getAllMarkersForId'](_0x5a072f);_0x30ef9a['model']['change'](_0x3d384c=>{for(const _0x961304 of _0x33e86e)_0x3d384c['removeMarker'](_0x961304);});}}}}),_0x345f3d;}['_handleThreadMarker'](_0x48d7a0,_0x21b94d){const _0x22f6c3=this['_attachMarkerToThread'](_0x48d7a0,_0x21b94d);_0x22f6c3&&!_0x22f6c3['context']&&_0x22f6c3['setContext']({'type':'text','value':this['_getTextContext'](_0x21b94d)});}['_initAriaMarkerChangeAnnouncements'](){const _0x126f05=this['editor'];rt(_0x126f05['model'],({left:_0x42390a,entered:_0x2e518d})=>{for(const _0x1810d8 of _0x42390a)if(mt(_0x1810d8)){_0x126f05['ui']['ariaLiveAnnouncer']['announce'](N(_0x126f05['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3cf2e8 of _0x2e518d)if(mt(_0x3cf2e8)){_0x126f05['ui']['ariaLiveAnnouncer']['announce'](N(_0x126f05['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x46e498)));break;}});}}function dt(_0x28a2ea,_0x353454){return _0x353454?_0x28a2ea+':'+_0x353454:_0x28a2ea;}function ht(_0x4f0d3,_0x2f09b6){const _0x2252fe=_0x2f09b6['schema'],_0xb40271=_0x2f09b6['createRange'](_0x4f0d3['start']);for(const _0x5a86a6 of _0x4f0d3['getWalker']()){const {type:_0x2f9e59,item:_0x526ed7,nextPosition:_0x49aba4}=_0x5a86a6;if('text'===_0x2f9e59||_0x2252fe['isObject'](_0x526ed7)){const _0x377adc=_0x2f09b6['createPositionBefore'](_0x526ed7);_0xb40271['isCollapsed']&&(_0xb40271['start']=_0x377adc),_0xb40271['end']=_0x49aba4;}}return _0xb40271;}function mt(_0x3dc123){return'comment'===ft(_0x3dc123['name'])['group'];}class s extends _0x44aad5{['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 _0x2b14c5=this['editor'],_0x4ed52f=_0x2b14c5['plugins']['get'](o),_0x43fce5=_0x2b14c5['plugins']['get'](r),_0xf1719f=_0x2b14c5['plugins']['get'](y),_0x5b2490=_0x2b14c5['plugins']['get'](b);_0x2b14c5['ui']['componentFactory']['add']('comment',()=>{const _0x4562d6=this['_createUIButton'](_0x12b664);return _0x4562d6['tooltip']=!0x0,_0x4562d6;}),_0x2b14c5['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x1a75ff)),_0x5b2490['addSourceCollector'](()=>{const _0x141ff3=[];for(const [_0x547151,_0x5bc14c]of _0x4ed52f['_threadToController']){const _0x2a41e4=_0x43fce5['getAllMarkersForId'](_0x547151['id']),_0x1d7e6e=_0x2a41e4['map'](_0x4a8b11=>_0x4a8b11['getRange']());_0x2a41e4['length']>0x0&&_0x141ff3['push']([_0x5bc14c['view'],_0x1d7e6e]);}return _0x141ff3;}),this['listenTo'](_0xf1719f,'change:activeAnnotations',(_0x370f16,_0x3a2ad5,_0x43ddc7)=>{const _0x4ec07d=Array['from'](_0x43ddc7)['map'](_0x2787f6=>_0x2787f6['innerView'])['find'](_0xcd63a2=>_0x4ed52f['_viewToController']['has'](_0xcd63a2));if(!_0x4ec07d)return void(_0x43fce5['activeMarker']=null);const _0x3595af=_0x4ed52f['_viewToController']['get'](_0x4ec07d)['model']['id'],_0x4f7a5d='comment:'+_0x3595af;_0x3595af&&_0x43fce5['hasMarkerForId'](_0x3595af)?_0x43fce5['activeMarker']=_0x4f7a5d:_0x43fce5['activeMarker']&&(_0x43fce5['activeMarker']=null);}),this['listenTo'](_0x4ed52f,'removeCommentThread',(_0x554d81,{threadId:_0xf23c37,isFromAdapter:_0x5a71e7})=>{!_0x5a71e7&&_0x2b14c5['ui']['focusTracker']['isFocused']&&_0x43fce5['hasMarkerForId'](_0xf23c37)&&_0x2b14c5['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x4ed52f,'addComment',(_0x539f84,{threadId:_0x561f88,isFromAdapter:_0x30b528})=>{if(_0x30b528||!_0x43fce5['hasMarkerForId'](_0x561f88)||!_0x4ed52f['hasCommentThread'](_0x561f88))return;0x1===_0x4ed52f['getCommentThread'](_0x561f88)['length']&&(_0x2b14c5['editing']['view']['focus'](),_0x539f84['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e7b21=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14638b;for(const _0x5cc35a in _0x1e7b21){const _0x59d1d7=_0x5cc35a,_0x2c21de=_0x1e7b21[_0x59d1d7];if('commentsLicenseKeyValid'==_0x2c21de||'commentsLicenseKeyInvalid'==_0x2c21de||'commentsLicenseKeyExpired'==_0x2c21de||'commentsLicenseKeyDomainLimit'==_0x2c21de||'commentsLicenseKeyNotAllowed'==_0x2c21de||'commentsLicenseKeyEvaluationLimit'==_0x2c21de||'commentsLicenseKeyUsageLimit'==_0x2c21de){delete _0x1e7b21[_0x59d1d7],_0x14638b=_0x2c21de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x14638b&&_0x1e7b21['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x14638b&&_0x1e7b21['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x14638b&&_0x1e7b21['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x14638b&&_0x1e7b21['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x14638b&&_0x1e7b21['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x14638b&&_0x1e7b21['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2c6666){const _0x152ed7=this['editor'],_0x382e3b=new _0x2c6666(_0x152ed7['locale']),_0x5d3c09=_0x152ed7['commands']['get']('addCommentThread');return _0x382e3b['set']({'label':N(_0x152ed7['locale'],'Comment'),'icon':_0xfd1104}),_0x382e3b['bind']('isEnabled')['to'](_0x5d3c09,'isEnabled',_0x5d3c09,'hasContent',(_0x2424cc,_0x50d175)=>_0x2424cc&&_0x50d175),this['listenTo'](_0x382e3b,'execute',()=>{_0x5d3c09['execute']();}),_0x382e3b;}}class i extends _0x44aad5{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x428c92){super(_0x428c92),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x24606f,_0x189060,_0x55ebda)=>{_0x55ebda?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x37490c,_0x521173]of this['editor']['commands'])_0x521173['affectsData']&&'addCommentThread'!==_0x37490c&&_0x521173['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 _0x37e866=this['editor']['editing']['view']['document'];this['listenTo'](_0x37e866,'cut',_0x2e1b8b=>_0x2e1b8b['stop'](),{'priority':'highest'}),this['listenTo'](_0x37e866,'clipboardInput',_0x320ce8=>_0x320ce8['stop'](),{'priority':'highest'}),this['listenTo'](_0x37e866,'delete',_0x5190cc=>_0x5190cc['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x3a3f50,_0x9acae0]of this['editor']['commands'])_0x9acae0['affectsData']&&'addCommentThread'!==_0x3a3f50&&_0x9acae0['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 _0x31e181{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a19cd){super(_0x5a19cd),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4a7e83=this['context']['plugins']['get'](y);this['listenTo'](_0x4a7e83,'_activateAnnotation',(_0x403dc0,_0xd9188c)=>{for(const _0x3ccd83 of this['activeUIs']){const _0x3bcb3c=this['_uis']['get'](_0x3ccd83);(0x0,this['uisData']['get'](_0x3ccd83)['filter'])(_0xd9188c)&&_0x3bcb3c['setActiveAnnotation'](_0xd9188c);}}),this['listenTo'](_0x4a7e83,'_deactivateAllAnnotations',()=>{for(const _0x52d6d3 of this['activeUIs']){this['_uis']['get'](_0x52d6d3)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4a7e83['_visibleAnnotations'],'add',(_0x34f4ee,_0x5105b5)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5105b5);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3d0244){return this['activeUIs']['has'](_0x3d0244);}['activate'](_0xb2d720,_0x35c4a2=this['defaultFilter']){const _0x5e1cdf=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0xb2d720))throw new _0x3b4517('annotationsuis-missing-ui',this,{'uiName':_0xb2d720});this['isActive'](_0xb2d720)&&this['deactivate'](_0xb2d720),this['activeUIs']['add'](_0xb2d720);const _0x6411e0=new S();v({'source':_0x5e1cdf['_visibleAnnotations'],'target':_0x6411e0,'filter':_0x35c4a2}),this['uisData']['set'](_0xb2d720,{'collection':_0x6411e0,'filter':_0x35c4a2});const _0x556fd1=this['_uis']['get'](_0xb2d720);_0x556fd1['attach'](_0x6411e0),this['listenTo'](_0x556fd1,'change:activeAnnotation',(_0x16fbb6,_0x3fad52,_0x261080,_0x3ce502)=>{_0x3ce502&&_0x5e1cdf['_removeActiveAnnotation'](_0x3ce502),_0x261080&&_0x5e1cdf['_addActiveAnnotation'](_0x261080);});}['deactivate'](_0xab1966){if(this['activeUIs']['delete'](_0xab1966),!this['_uis']['has'](_0xab1966))throw new _0x3b4517('annotationsuis-missing-ui',this,{'uiName':_0xab1966});const _0x11c7fd=this['_uis']['get'](_0xab1966);_0x11c7fd['detach'](),this['stopListening'](_0x11c7fd),this['uisData']['get'](_0xab1966)['collection']['destroy'](),this['uisData']['delete'](_0xab1966);}['switchTo'](_0x1efa41){if(!this['_uis']['has'](_0x1efa41))throw new _0x3b4517('annotationsuis-missing-ui',this,{'uiName':_0x1efa41});const _0x3740dd=this['context']['plugins']['get'](y),_0x14ceca=Array['from'](_0x3740dd['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x1efa41);const _0x2936bc=this['_uis']['get'](_0x1efa41);_0x2936bc['setActiveAnnotation'](_0x14ceca),_0x2936bc['_setSelectedAnnotations']&&_0x14ceca&&_0x2936bc['_setSelectedAnnotations']([_0x14ceca]);}['deactivateAll'](){for(const _0x276681 of this['activeUIs'])this['deactivate'](_0x276681);}['register'](_0x499f51,_0x76977f){if(this['_uis']['has'](_0x499f51))throw new _0x3b4517('annotationsuis-register-already-registered');if('function'!=typeof _0x76977f['attach']||'function'!=typeof _0x76977f['detach']||'function'!=typeof _0x76977f['setActiveAnnotation'])throw new _0x3b4517('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x499f51,_0x76977f);}['refilterAnnotations'](){const _0x2c003c=this['context']['plugins']['get'](y)['collection'],_0x524d39=new Map(),_0x2b2f2a=Array['from'](this['activeUIs']);for(const _0x16fe0e of this['activeUIs']){const _0x5bf86b=this['uisData']['get'](_0x16fe0e)['collection'];for(const _0x3a970b of _0x5bf86b)_0x524d39['set'](_0x3a970b,_0x16fe0e);}for(const _0x312cf0 of _0x2c003c){const _0x633377=_0x524d39['get'](_0x312cf0);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x312cf0);const _0x803283=_0x2b2f2a['find'](_0x1f6b81=>this['uisData']['get'](_0x1f6b81)['filter'](_0x312cf0));_0x633377!==_0x803283&&(_0x633377&&this['uisData']['get'](_0x633377)['collection']['remove'](_0x312cf0),_0x803283&&this['uisData']['get'](_0x803283)['collection']['add'](_0x312cf0));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3d1d40){const _0x626732=[];for(const _0xd4f8f8 of this['activeUIs']){(0x0,this['uisData']['get'](_0xd4f8f8)['filter'])(_0x3d1d40)&&_0x626732['push'](_0xd4f8f8);}if(_0x626732['length']>0x1)throw new _0x3b4517('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x626732,'annotationType':_0x3d1d40['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x375b1c){super(_0x375b1c);const _0xc69ec8=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 _0x498468(),this['focusCycler']=new _0x2d3227({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0xc69ec8['to']('class')],'style':{'minHeight':_0xc69ec8['to']('minHeight',_0x466a73=>'number'==typeof _0x466a73?_i(_0x466a73+0xa):null)},'dir':_0x375b1c['uiLanguageDirection'],'role':'application','aria-label':N(_0x375b1c,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x375b1c,'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',_0xb6423c=>{this['_updateItemPositionInFocusables'](_0xb6423c['source']);}),this['list']['forEach'](_0x15fcf6=>{this['focusTracker']['add'](_0x15fcf6['element']),this['_updateItemPositionInFocusables'](_0x15fcf6);}),this['list']['on']('change',(_0xd15567,_0x4c92ed)=>{for(const _0x37b0c9 of _0x4c92ed['removed'])this['focusTracker']['remove'](_0x37b0c9['element']),this['focusables']['remove'](_0x37b0c9);for(const _0x395579 of _0x4c92ed['added'])this['focusTracker']['add'](_0x395579['element']),this['_updateItemPositionInFocusables'](_0x395579);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x594d51){const _0x3b09c4=this['focusables']['getIndex'](_0x594d51);let _0x1bafef,_0x56723b;for(const _0x3ecdd4 of this['focusables'])if(_0x594d51['top']<_0x3ecdd4['top']){_0x1bafef=_0x3ecdd4;break;}if(_0x56723b=_0x1bafef?this['focusables']['getIndex'](_0x1bafef):this['focusables']['length'],-0x1!==_0x3b09c4){if(_0x3b09c4===_0x56723b-0x1)return;this['focusables']['remove'](_0x594d51),_0x56723b=_0x1bafef?this['focusables']['getIndex'](_0x1bafef):this['focusables']['length'];}this['focusables']['add'](_0x594d51,_0x56723b);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x242926){super(_0x242926),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2fa063,_0x15df7f)=>_0x2fa063+_0x15df7f),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x50b545=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x50b545['to']('isAnimationDisabled',_0x205191=>_0x205191?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x50b545['to']('top',_0x37c3ee=>Ot(_0x37c3ee))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x573251=this['element']['clientHeight'];_0x573251&&(this['height']=_0x573251);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x31e181{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32fe09){super(_0x32fe09),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 _0x819bad=this['context']['config']['get']('sidebar.container');_0x819bad&&this['setContainer'](_0x819bad);}['setContainer'](_0x2a5a7f){if(!g(_0x2a5a7f))throw new _0x3b4517('sidebar-setcontainer-invalid-element');this['container']=_0x2a5a7f;}['_attachToContainer']({viewClass:_0x3a5222='',spaceBetweenItems:_0x1c1346=0x19}={}){if(!g(this['container']))throw new _0x3b4517('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3a5222,this['_spaceBetweenItems']=_0x1c1346;}['rearrange']({removedAnnotation:_0x5ca8cc,previousAnnotation:_0x1efc51,nextAnnotation:_0x4b2133}){const _0x3761ec=this['getSidebarItemView'](_0x5ca8cc);this['view']['list']['remove'](_0x3761ec),this['_destroySidebarItemView'](_0x5ca8cc),_0x1efc51&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1efc51)),_0x4b2133&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4b2133)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x15fb77,activatedAnnotation:_0x2e757a,disableAnimationOnActivatedAnnotation:_0x199335}){if(this['_activeAnnotation']=_0x2e757a,_0x15fb77){_0x15fb77['isActive']=!0x1;const _0x2c2e78=this['getSidebarItemView'](_0x15fb77);_0x2c2e78&&_0x199335&&(_0x2c2e78['isAnimationDisabled']=!0x1);}if(_0x2e757a){const _0x8b485f=this['getSidebarItemView'](_0x2e757a);_0x8b485f&&(_0x2e757a['isActive']=!0x0,_0x199335&&(_0x8b485f['isAnimationDisabled']=!0x0,_0x8b485f['top']+=0x1),this['_alignToTargetRect'](_0x8b485f));}}['_detachFromContainer'](_0x42bda7){if(this['view']['element']['remove'](),_0x42bda7){for(const _0x40f8ac of _0x42bda7)this['_destroySidebarItemView'](_0x40f8ac);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5dd311,_0xef56fc){_0xef56fc||(_0xef56fc=_0x5dd311['view']);const _0x45e787=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x45e787,_0x5dd311),this['_annotationToSidebarItemView']['set'](_0x5dd311,_0x45e787),_0x45e787['content']['add'](_0xef56fc),this['listenTo'](_0x5dd311['view'],'change:targetRect',(_0x47fea9,_0x5b33f4,_0x84edb8)=>{const _0x25bf7d=this['_getTargetTop'](_0x5dd311,_0x84edb8);_0x45e787['_targetTop']!=_0x25bf7d&&(_0x45e787['_targetTop']=_0x25bf7d,this['_setItemTop'](_0x45e787,_0x25bf7d));}),this['listenTo'](_0x45e787,'change:top',()=>{this['_recalculate'](_0x45e787,'top');}),this['listenTo'](_0x45e787,'change:bottom',()=>{this['_recalculate'](_0x45e787,'bottom');}),this['_alignToTargetRect'](_0x45e787);const _0x415b77=this['_getItemBefore'](_0x45e787);if(_0x415b77)this['_alignAfterItem'](_0x415b77,_0x45e787)||this['_alignToTargetRect'](_0x45e787);else this['_alignToTargetRect'](_0x45e787);return this['_updateLastItem'](),this['view']['list']['add'](_0x45e787),_0x45e787;}['_alignForTopChange'](_0x422dae){if(!_0x422dae['content']['length'])return;const _0x1beca8=this['_getItemBefore'](_0x422dae);if(!_0x1beca8)return;const _0x1b55ef=this['_sidebarItemViewToAnnotation']['get'](_0x1beca8),_0x33f595=this['_activeAnnotation'];_0x33f595&&_0x33f595===_0x1b55ef?this['_alignAfterItem'](_0x1beca8,_0x422dae):this['_alignBeforeItem'](_0x422dae,_0x1beca8);}['_alignForBottomChange'](_0x2050eb){if(!_0x2050eb['content']['length'])return;const _0x5d43f6=this['_getItemAfter'](_0x2050eb);if(!_0x5d43f6)return;const _0x33edd6=this['_sidebarItemViewToAnnotation']['get'](_0x5d43f6),_0x191fd7=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x34a85e=this['_activeAnnotation'];_0x34a85e&&_0x34a85e===_0x33edd6&&_0x191fd7?(this['_alignBeforeItem'](_0x5d43f6,_0x2050eb),this['_alignAfterItem'](_0x2050eb,_0x5d43f6)):_0x34a85e&&_0x34a85e===_0x33edd6?this['_alignBeforeItem'](_0x5d43f6,_0x2050eb):this['_alignAfterItem'](_0x2050eb,_0x5d43f6);}['_recalculate'](_0x55f2f5,_0x746b70){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x495af7,changedProp:_0x9247d5}of this['_recalculateBuffer'])'top'===_0x9247d5?this['_alignForTopChange'](_0x495af7):this['_alignForBottomChange'](_0x495af7);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x55f2f5,'changedProp':_0x746b70});}['getSidebarItemView'](_0x2e4d02){return this['_annotationToSidebarItemView']['get'](_0x2e4d02);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1759f5){const _0x53480e=this['getSidebarItemView'](_0x1759f5);this['stopListening'](_0x53480e),this['stopListening'](_0x1759f5['view']),_0x53480e['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1759f5),this['_sidebarItemViewToAnnotation']['delete'](_0x53480e);}['_createSidebarView'](){const _0x4780f3=new H(this['context']['locale']);return _0x4780f3['render'](),this['on']('change:_lastItem',(_0x25d5d7,_0x5998e8,_0x569cf2,_0x2b3e1e)=>{_0x2b3e1e&&_0x4780f3['unbind']('minHeight'),_0x569cf2?_0x4780f3['bind']('minHeight')['to'](_0x569cf2,'bottom'):_0x4780f3['minHeight']=null;}),_0x4780f3;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2d89c3){const _0xe44327=this['_sidebarItemViewToAnnotation']['get'](_0x2d89c3),_0x273bbe=_0xe44327&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xe44327)-0x1);return _0x273bbe&&this['getSidebarItemView'](_0x273bbe)||null;}['_getItemAfter'](_0x3e8d94){const _0x576efe=this['_sidebarItemViewToAnnotation']['get'](_0x3e8d94),_0x5f1fda=_0x576efe&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x576efe)+0x1);return _0x5f1fda&&this['getSidebarItemView'](_0x5f1fda)||null;}['_alignBeforeItem'](_0x1a626a,_0x40fd7b){_0x1a626a['updateHeight']();const _0x52e49f=G(_0x40fd7b['bottom']+this['_spaceBetweenItems'],_0x1a626a['top']);return!!_0x52e49f&&(this['_setItemTop'](_0x40fd7b,_0x40fd7b['top']-_0x52e49f),!0x0);}['_alignAfterItem'](_0x3a862e,_0x1f841a){_0x3a862e['updateHeight']();const _0x33665f=G(_0x3a862e['bottom']+this['_spaceBetweenItems'],_0x1f841a['top']);return!!_0x33665f&&(this['_setItemTop'](_0x1f841a,_0x1f841a['top']+_0x33665f,!0x1),!0x0);}['_alignToTargetRect'](_0x4ab33e){const _0x5ef765=this['_sidebarItemViewToAnnotation']['get'](_0x4ab33e);if(!_0x5ef765||!_0x5ef765['target']||!_0x5ef765['targetRect'])return;const _0x1cfccf=this['_getTargetTop'](_0x5ef765,_0x5ef765['targetRect']);this['_setItemTop'](_0x4ab33e,_0x1cfccf);}['_getTargetTop'](_0x50441b,_0x579e59){if(null===_0x579e59)return 0x0;if(_0x50441b['target']instanceof _0x2b4e57)return _0x579e59['top'];{const _0x1439ca=new _0x2b4e57(this['view']['element'])['top'];return _0x579e59['top']-_0x1439ca;}}['_setItemTop'](_0x28751a,_0x11032e,_0x126c93=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x126c93&&(_0x11032e=Math['max'](_0x11032e,this['_getMaxAvailableTop'](_0x28751a))),_0x28751a['top']=_0x11032e;}['_getMaxAvailableTop'](_0x267b89){let _0x5c10cf=this['_getItemBefore'](_0x267b89),_0xde8b6d=0x0;for(;_0x5c10cf;)_0x5c10cf['updateHeight'](),_0xde8b6d+=this['_spaceBetweenItems']+_0x5c10cf['height'],_0x5c10cf=this['_getItemBefore'](_0x5c10cf);return _0xde8b6d;}}function G(_0x3959c6,_0x18befa){return Math['max'](_0x3959c6-_0x18befa,0x0);}function g(_0x10a1d8){return null!==_0x10a1d8&&'object'==typeof _0x10a1d8&&0x1===_0x10a1d8['nodeType'];}class e extends _0x31e181{['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(_0x3da9f9){super(_0x3da9f9),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x5553a1(),this['_refreshPositioningDebounced']=_0x3792c0(()=>{_0x3da9f9['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x126322=this['context']['plugins']['get'](j),_0x1ccb38=this['context']['plugins']['get'](z);_0x126322['register']('wideSidebar',this),_0x1ccb38['container']&&_0x126322['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3cdff4){if(_0x3cdff4===this['activeAnnotation'])return;const _0x41f4dc=this['context']['plugins']['get'](z);_0x41f4dc['_activeAnnotation']=_0x3cdff4;const _0x3899f7=this['activeAnnotation'];_0x41f4dc['refresh']({'blurredAnnotation':_0x3899f7,'activatedAnnotation':_0x3cdff4}),this['activeAnnotation']=_0x3cdff4;}['attach'](_0x5e7fcf){this['annotations']=_0x5e7fcf;const _0x1b82c7=this['context']['plugins']['get'](z);if(_0x1b82c7['_annotations']=_0x5e7fcf,this['isAttached'])throw new _0x3b4517('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1b82c7,'set:container',()=>{this['detach'](),this['listenTo'](_0x1b82c7,'change:container',_0x363ac9=>{_0x363ac9['off'](),this['attach'](_0x5e7fcf);});}),_0x1b82c7['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x202a85=_0x3fbb7f=>{_0x3fbb7f['updateTargetRect'](),_0x1b82c7['addAnnotation'](_0x3fbb7f);};for(const _0x4e2566 of _0x5e7fcf)_0x202a85(_0x4e2566);this['listenTo'](_0x5e7fcf,'add',(_0x55d477,_0x54c632)=>{_0x202a85(_0x54c632);}),this['listenTo'](_0x5e7fcf,'remove',(_0xc463f2,_0x2f561f,_0x222e2f)=>{_0x1b82c7['rearrange']({'removedAnnotation':_0x2f561f,'previousAnnotation':_0x5e7fcf['get'](_0x222e2f-0x1),'nextAnnotation':_0x5e7fcf['get'](_0x222e2f+0x1)}),_0x2f561f===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5e7fcf,'focus',(_0x2b5dc3,_0x1d5c1a)=>{this['setActiveAnnotation'](_0x1d5c1a);}),this['listenTo'](_0x5e7fcf,'blur',()=>{this['setActiveAnnotation'](null);});const _0x1a0f1a=this['context']instanceof _0x3a108e?this['context']['editors']:new _0x5553a1([this['context']]);for(const _0x5a27e5 of _0x1a0f1a)this['_integrateWithEditorAnnotations'](_0x5a27e5);this['listenTo'](_0x1a0f1a,'add',(_0x338283,_0xc43050)=>{this['listenTo'](_0xc43050,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xc43050);});}),this['listenTo'](_0x1a0f1a,'remove',(_0x28e10c,_0x4b2fac)=>{_0x4b2fac['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4b2fac['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3b4517('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5c7e3b=this['context']['plugins']['get'](z);_0x5c7e3b['_detachFromContainer'](this['annotations']),this['stopListening'](_0x5c7e3b),this['stopListening'](this['annotations']),this['context']instanceof _0x3a108e&&this['stopListening'](this['context']['editors']);for(const _0x4647bc of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4647bc);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x468ac3){if(!_0x468ac3['plugins']['has']('EditorAnnotations'))return;const _0x35244e=_0x468ac3['plugins']['get']('EditorAnnotations'),_0x2c687b=()=>{const _0x166c29=_0x35244e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x166c29[0x0]||null);};this['listenTo'](_0x35244e,'refresh',_0x2c687b),this['listenTo'](_0x35244e,'blur',(_0xb4edb3,{isAnnotationTracked:_0x8fb026})=>{this['activeAnnotation']&&_0x8fb026(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x35244e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x1b5ad4=>{_0x35244e['hasDomSelection']()&&(_0x2c687b(),_0x1b5ad4['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x35244e);}['_destroyEditorAnnotationsIntegration'](_0x59c2af){this['stopListening'](_0x59c2af),this['_editorAnnotations']['remove'](_0x59c2af);}}class C extends _0x12b664{['counterView'];constructor(_0x235b90){super(_0x235b90);const _0x3dcedb=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3253cb,_0x23223b)=>_0x3253cb?'...':_0x23223b['toString']()),this['set']('annotationType',''),this['icon']=_0xfd1104,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x3dcedb['to']('annotationType',_0x56dc7c=>'ck-annotation-counter__badge--'+_0x56dc7c),_0x3dcedb['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3dcedb['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x31e181{['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(_0x117dcf){super(_0x117dcf),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x931e8a())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x5553a1(),this['_refreshPositioningDebounced']=_0x3792c0(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x46deb9(this['context']['locale']),this['balloonPanelView']=new _0x2f75ff(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x426e84){this['annotations']=_0x426e84;const _0x1113bf=this['context']['plugins']['get'](z),_0x4a25bf=this['balloonPanelView'];if(_0x1113bf['_annotations']=_0x426e84,this['isAttached'])throw new _0x3b4517('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1113bf,'set:container',()=>{this['detach'](),this['listenTo'](_0x1113bf,'change:container',_0x27b574=>{_0x27b574['off'](),this['attach'](_0x426e84);});}),_0x1113bf['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x338c5c=_0x22c177=>{const _0x14c828=new C(this['context']['locale']);_0x1113bf['addAnnotation'](_0x22c177,_0x14c828),this['_annotationToNarrowView']['set'](_0x22c177,_0x14c828),_0x14c828['bind']('isDirty','annotationType','number')['to'](_0x22c177['view'],'isDirty','type','length'),_0x14c828['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4a25bf['content']['first']!==_0x22c177['view']?(this['_showBalloon'](_0x22c177),_0x22c177['view']['element']['focus'](),this['setActiveAnnotation'](_0x22c177)):this['setActiveAnnotation'](null);});};for(const _0x475654 of _0x426e84)_0x338c5c(_0x475654);this['listenTo'](_0x426e84,'add',(_0x4f67eb,_0x34d861)=>{_0x338c5c(_0x34d861);}),this['listenTo'](_0x426e84,'remove',(_0x210403,_0x1986bf,_0x26ede9)=>{this['_annotationToNarrowView']['get'](_0x1986bf)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1986bf),_0x1113bf['rearrange']({'removedAnnotation':_0x1986bf,'previousAnnotation':_0x426e84['get'](_0x26ede9-0x1),'nextAnnotation':_0x426e84['get'](_0x26ede9+0x1)}),_0x1986bf===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x426e84,'focus',(_0x5bffb5,_0x19e7df)=>{this['setActiveAnnotation'](_0x19e7df);}),this['listenTo'](_0x426e84,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x34fcd7,_0x2f4517)=>{_0x2f4517['keyCode']===_0x4e655d['esc']&&_0x4a25bf['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x4a25bf['content']['first']),this['_hideBalloon'](),_0x2f4517['stopPropagation'](),_0x2f4517['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x267713,_0x2e06c9)=>{const _0x288e7b=_0x2e06c9['target'];_0x4a25bf['isVisible']&&_0x4a25bf['element']['contains'](_0x288e7b)||_0x1113bf['view']['element']['contains'](_0x288e7b)||_0x267713['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x2a1603=>_0x2a1603['contains'](_0x288e7b))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x5778b9=this['context']instanceof _0x3a108e?this['context']['editors']:new _0x5553a1([this['context']]);for(const _0x29c545 of _0x5778b9)this['_integrateWithEditorAnnotations'](_0x29c545);this['listenTo'](_0x5778b9,'add',(_0x49d04e,_0x37cf18)=>{this['listenTo'](_0x37cf18,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x37cf18);});}),this['listenTo'](_0x5778b9,'remove',(_0x4bb40d,_0x5b7b1c)=>{_0x5b7b1c['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5b7b1c['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x298cbc){if(_0x298cbc===this['activeAnnotation'])return;const _0x2d3e7a=this['context']['plugins']['get'](z);if(_0x2d3e7a['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x298cbc,'disableAnimationOnActivatedAnnotation':!0x0}),_0x298cbc)_0x2d3e7a['getSidebarItemView'](_0x298cbc)?this['_showBalloon'](_0x298cbc):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x298cbc;}['detach'](){if(!this['isAttached'])throw new _0x3b4517('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1da652=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x1489f0=>_0x1489f0['destroy']()),this['_annotationToNarrowView']['clear'](),_0x1da652['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x3a108e&&this['stopListening'](this['context']['editors']);for(const _0x315d32 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x315d32);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'](_0x580850){if(!_0x580850['plugins']['has']('EditorAnnotations'))return;const _0x4e029a=_0x580850['plugins']['get']('EditorAnnotations'),_0x27bdd9=this['context']['plugins']['get'](z),_0x3284f2=this['annotations'],_0x512cda=this['balloonPanelView'],_0x4b993f=()=>{const _0x31989a=_0x4e029a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x31989a),this['setActiveAnnotation'](_0x31989a[0x0]||null);};this['listenTo'](_0x4e029a,'refresh',_0x4b993f),this['listenTo'](_0x4e029a,'blur',(_0x1fe23a,{isAnnotationTracked:_0x22d47e})=>{this['activeAnnotation']&&_0x22d47e(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4e029a,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3284f2,'blur',_0x19939c=>{_0x4e029a['hasDomSelection']()&&_0x19939c['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x4588bd,_0x3b16b4)=>{const _0x462de2=_0x3b16b4['target'];_0x512cda['isVisible']&&_0x512cda['element']['contains'](_0x462de2)||_0x27bdd9['view']['element']['contains'](_0x462de2)||this['activeAnnotation']&&_0x4e029a['hasDomSelection']()&&(_0x4b993f(),_0x4588bd['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4e029a);}['_destroyEditorAnnotationsIntegration'](_0x5ed9a0){_0x5ed9a0&&(this['stopListening'](_0x5ed9a0),this['_editorAnnotations']['remove'](_0x5ed9a0));}['_setSelectedAnnotations'](_0x274228){for(const _0x1acb45 of this['_selectedAnnotations'])_0x274228['includes'](_0x1acb45)||this['_manuallyClosedAnnotationViews']['delete'](_0x1acb45['view']);this['_selectedAnnotations']=_0x274228;}['_refreshPositioning'](){const _0x5af22e=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x5af22e['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x4db31b){if(this['_manuallyClosedAnnotationViews']['has'](_0x4db31b['view']))return;const _0x37dce0=this['balloonPanelView']['content']['first'];_0x37dce0!==_0x4db31b['view']?(_0x37dce0&&this['_detachListeners'](_0x37dce0),this['_attachListeners'](_0x4db31b['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x4db31b['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x223507=this['balloonPanelView']['content']['first'],_0xef0f72=_0x223507&&this['annotations']['getByView'](_0x223507);if(!_0xef0f72||!this['_annotationToNarrowView']['has'](_0xef0f72))return;const _0x416f83=this['_annotationToNarrowView']['get'](_0xef0f72)['element'],_0x376617=(function(){const _0x24c83b=_0x2f75ff['defaultPositions'];return[_0x24c83b['southArrowNorthEast'],_0x24c83b['northArrowSouthEast'],_0x24c83b['southArrowNorth'],_0x24c83b['northArrowSouth'],_0x24c83b['southArrowNorthWest'],_0x24c83b['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x416f83,'positions':_0x376617});}['_hideBalloon'](){const _0x111249=this['balloonPanelView'],_0x47835b=_0x111249['content']['first'];_0x47835b&&(this['_detachListeners'](_0x47835b),_0x111249['unpin'](),_0x111249['content']['clear']());}['_attachListeners'](_0x43db53){this['listenTo'](_0x43db53,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x43db53,'Esc',(_0x1248f0,_0x2b4702)=>{this['_manuallyClosedAnnotationViews']['add'](_0x43db53),this['_hideBalloon'](),_0x2b4702();});}['_detachListeners'](_0x24c521){this['stopListening'](_0x24c521);}}class c extends _0x44aad5{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x1cf8f3,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41d466){super(_0x41d466),_0x41d466['editing']['view']['addObserver'](_0x492bff),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x41d466['plugins']['get'](_0x1cf8f3),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x3792c0(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x1f12d6=this['editor']['plugins']['get'](j);_0x1f12d6['context']===this['editor']&&(_0x1f12d6['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x33be92,_0x2bb4d5)=>{const _0x1c2d47=this['_balloon'];if(this['isAttached']&&_0x1c2d47['visibleView']){const _0x1a5976=this['annotations']['getByView'](_0x1c2d47['visibleView']);_0x1a5976&&this['_closeAnnotation'](_0x1a5976),_0x2bb4d5();}}));}['afterInit'](){const _0x521386=this['editor']['plugins']['get'](j);_0x521386['context']===this['editor']&&(_0x521386['hasActive']()||_0x521386['switchTo']('inline'));}['setActiveAnnotation'](_0x48239a){_0x48239a!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x48239a&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x48239a)&&this['_addAnnotationToBalloon'](_0x48239a,!0x0),_0x48239a['isActive']=!0x0),_0x48239a||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x48239a);}['attach'](_0x292a88){this['annotations']=_0x292a88;const _0x50f962=this['editor']['plugins']['get'](j),_0x5bb499=this['_balloon'];if(this['isAttached'])throw new _0x3b4517('inlineannotations-attach-already-attached',this);if(_0x50f962['context']!==this['editor'])throw new _0x3b4517('inlineannotations-not-allowed-with-context',this);const _0x4ff6c9=this['editor']['plugins']['get'](b);this['listenTo'](_0x4ff6c9,'refresh',()=>{const _0x29a623=_0x4ff6c9['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0xcb9c6c,_0x3b64b3;!this['_forceRefresh']&&(_0xcb9c6c=_0x29a623,_0x3b64b3=this['_selectedAnnotations'],_0xcb9c6c['length']===_0x3b64b3['length']&&_0xcb9c6c['every'](_0x14498a=>_0x3b64b3['includes'](_0x14498a)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x29a623),this['setActiveAnnotation'](_0x29a623[0x0]||null));}),this['listenTo'](_0x4ff6c9,'blur',(_0x3668fd,{isAnnotationTracked:_0x83115c})=>{this['activeAnnotation']&&_0x83115c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4ff6c9,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x13a436,_0x12a96c,_0x36d80d)=>{_0x36d80d||this['setActiveAnnotation'](null);}),this['listenTo'](_0x292a88,'remove',(_0xc0901f,_0x3373e5)=>{this['_removeAnnotationFromBalloon'](_0x3373e5),_0x3373e5===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5bb499,'change:visibleView',(_0x508916,_0x281db1,_0x2825f8,_0x31f055)=>{_0x31f055&&this['stopListening'](_0x31f055);const _0x317710=_0x292a88['getByView'](_0x2825f8);_0x2825f8&&_0x317710&&(this['listenTo'](_0x2825f8,'change:height',()=>{_0x5bb499['updatePosition']();}),this['listenTo'](_0x2825f8,'Esc',()=>{this['_closeAnnotation'](_0x317710),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x317710&&this['setActiveAnnotation'](_0x317710));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5bb499['visibleView']&&(_0x292a88['getByView'](_0x5bb499['visibleView'])&&_0x5bb499['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 _0x3b4517('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x575d47 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x575d47);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x59bd9c){for(const _0x342312 of this['_selectedAnnotations'])_0x59bd9c['includes'](_0x342312)||this['_manuallyClosed']['delete'](_0x342312);for(const _0x19deaf of this['annotations'])_0x59bd9c['includes'](_0x19deaf)||this['_removeAnnotationFromBalloon'](_0x19deaf);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x3dc64f of _0x59bd9c)this['_addAnnotationToBalloon'](_0x3dc64f);}this['_selectedAnnotations']=_0x59bd9c;}['_addAnnotationToBalloon'](_0x18e4b2,_0x3777b3=!0x1){this['_manuallyClosed']['has'](_0x18e4b2)||(this['_addedAnnotations']['has'](_0x18e4b2)||this['_balloon']['hasView'](_0x18e4b2['view'])||(this['_addedAnnotations']['add'](_0x18e4b2),this['_balloon']['add']({'stackId':_0x18e4b2['view']['id'],'view':_0x18e4b2['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x18e4b2)}})),_0x3777b3&&this['_balloon']['showStack'](_0x18e4b2['view']['id']));}['_getBalloonTargetForAnnotation'](_0x256227){const _0x2cd767=_0x256227['target'],_0x9c3c45=this['editor']['editing']['view'],_0x141874=_0x9c3c45['document']['selection']['getFirstRange'](),_0x23c5c9=_0x9c3c45['domConverter']['viewRangeToDom'](_0x141874);if(_0x23c5c9['collapse'](!0x0),_0x2cd767){if(_0x2cd767 instanceof _0x2b4e57)return _0x2cd767;let _0x4e4be9=[];for(const _0x2377eb of _0x2cd767)_0x4e4be9['push'](...F(_0x2377eb['getClientRects']()));_0x4e4be9=function(_0x33f995){const _0x4ae4ab=[];let _0x265944=_0x33f995[0x0];for(let _0x18ebeb=0x1;_0x18ebeb<_0x33f995['length'];_0x18ebeb++)P(_0x265944,_0x33f995[_0x18ebeb])?_0x265944['width']+=_0x33f995[_0x18ebeb]['width']:(_0x4ae4ab['push'](_0x265944),_0x265944=_0x33f995[_0x18ebeb]);return _0x4ae4ab['push'](_0x265944),_0x4ae4ab;}(_0x4e4be9);const _0x131d46=_0x23c5c9['getBoundingClientRect']();return _0x4e4be9['find'](_0x408563=>_0x408563['top']<=_0x131d46['top']&&_0x408563['bottom']>=_0x131d46['bottom']&&_0x408563['left']<=_0x131d46['left']&&_0x408563['right']>=_0x131d46['right'])||_0x4e4be9[0x0];}return _0x256227['targetRect']||_0x23c5c9;}['_removeAnnotationFromBalloon'](_0x16450d){this['_addedAnnotations']['has'](_0x16450d)&&this['_balloon']['hasView'](_0x16450d['view'])&&(this['_addedAnnotations']['delete'](_0x16450d),this['_balloon']['remove'](_0x16450d['view']));}['_closeAnnotation'](_0x38160f){this['_manuallyClosed']['add'](_0x38160f),this['_removeAnnotationFromBalloon'](_0x38160f);}}function F(_0x691a37){return Array['from'](_0x691a37)['map'](DOMRect['fromRect']);}function P(_0x2058c1,_0x2fc40c){return _0x2058c1['top']===_0x2fc40c['top']&&_0x2058c1['bottom']===_0x2fc40c['bottom']&&_0x2058c1['right']===_0x2fc40c['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0xc25794,_0x27138e){super(_0xc25794),this['set']('isEmpty',!_0x27138e['length']),this['focusTracker']=new _0x498468(),this['_annotationViews']=_0x27138e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x2d3227({'focusables':_0x27138e,'focusTracker':this['focusTracker']}),this['listenTo'](_0x27138e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x27138e,'remove',(_0x5506b0,_0x547ff6)=>{_0x547ff6['isActive']&&this['focus'](),_0x27138e['length']||(this['isEmpty']=!0x0);});const _0x3af048=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0xc25794,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x27138e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x3af048['if']('isEmpty','ck-hidden',_0x3c66a3=>!_0x3c66a3)]},'children':[{'text':N(_0xc25794,'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 _0x15c043 of this['_annotationViews'])this['focusTracker']['add'](_0x15c043['element']);this['_annotationViews']['on']('change',(_0x3311f9,{added:_0x23f7c7,removed:_0x576e85})=>{for(const _0x3c2871 of _0x23f7c7)this['focusTracker']['add'](_0x3c2871['element']);for(const _0x551e4f of _0x576e85)this['focusTracker']['remove'](_0x551e4f['element']);});}}class p extends _0x31e181{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x31f5e9){super(_0x31f5e9),this['archivedThreads']=new _0x5553a1();}['init'](){const _0x5b1b34=this['context'],_0x4acb35=_0x5b1b34['plugins']['get'](o),_0x74ef86=_0x5b1b34['plugins']['get'](y);this['listenTo'](_0x4acb35,'addCommentThread',(_0x549ce8,{threadId:_0x2d0854})=>{const _0x85377b=_0x4acb35['getCommentThread'](_0x2d0854);_0x85377b['archivedAt']&&this['archivedThreads']['add'](_0x85377b,this['_calculatePosition'](_0x85377b['archivedAt'])),this['listenTo'](_0x85377b,'change:archivedAt',(_0x4642a3,_0x30cdff,_0x2fd086)=>{_0x2fd086?this['archivedThreads']['has'](_0x85377b)||this['archivedThreads']['add'](_0x85377b,this['_calculatePosition'](_0x85377b['archivedAt'])):this['archivedThreads']['has'](_0x85377b)&&this['archivedThreads']['remove'](_0x85377b);});}),this['listenTo'](_0x4acb35,'removeCommentThread',(_0x5e9297,{threadId:_0x5533e3})=>{const _0xb1b9a9=_0x4acb35['getCommentThread'](_0x5533e3);this['stopListening'](_0xb1b9a9),this['archivedThreads']['has'](_0xb1b9a9)&&this['archivedThreads']['remove'](_0xb1b9a9);},{'priority':'highest'}),this['listenTo'](_0x74ef86['collection'],'focus',(_0x4948e0,_0x199b76)=>{_0x199b76['isVisible']||(_0x199b76['isActive']=!0x0,_0x74ef86['activate'](_0x199b76));});}['_calculatePosition'](_0x50dbd0){const _0x3605f0=[...this['archivedThreads']]['findIndex'](_0x364156=>_0x364156['archivedAt']<_0x50dbd0);return _0x3605f0>-0x1?_0x3605f0:this['archivedThreads']['length'];}}class a extends _0x44aad5{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x15e5b1];}constructor(_0x15e984){super(_0x15e984),this['annotationViews']=new _0x547fc0(),this['_pendingThreads']=[];}['init'](){const _0x91a7bc=this['editor'],_0x478dd1=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x91a7bc['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x12b664,!0x0)),_0x91a7bc['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x8a9e72=this['_createCommentsArchiveButton'](_0x1a75ff);return _0x8a9e72['set']({'role':'menuitemcheckbox'}),_0x8a9e72;});const _0x113954=_0x91a7bc['plugins']['get'](p),_0xebdb7b=_0x91a7bc['plugins']['get']('Annotations'),_0x24de5d=_0x91a7bc['plugins']['get']('CommentsRepository');_0x113954['archivedThreads']['forEach'](_0x305826=>{this['_handleNewThread'](_0x305826);}),this['listenTo'](_0x113954['archivedThreads'],'add',(_0x4ea5ab,_0x16e1d6)=>{this['_handleNewThread'](_0x16e1d6);}),this['listenTo'](_0xebdb7b['collection'],'add',(_0x4de0d9,_0x1b18ba)=>{const _0xa45b69=this['_pendingThreads']['find'](_0x5a63cb=>{const _0x5cf60f=_0x24de5d['_threadToController']['get'](_0x5a63cb);return _0x5cf60f&&_0x1b18ba['innerView']===_0x5cf60f['view'];});if(_0xa45b69){const _0x490b75=this['_calculatePosition'](_0xa45b69['archivedAt']);this['_addAnnotationToArchive'](_0x1b18ba,_0x490b75),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xa45b69),0x1);}}),this['listenTo'](_0x113954['archivedThreads'],'remove',(_0xf660c,_0x232957)=>{const _0x1a55d8=_0x91a7bc['config']['get']('collaboration.channelId');if(!_0x1a55d8||_0x232957['channelId']===_0x1a55d8){if(this['_pendingThreads']['includes'](_0x232957))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x232957),0x1);else{const _0x38d70b=_0x24de5d['_threadToController']['get'](_0x232957),_0x458a9b=_0xebdb7b['getByInnerView'](_0x38d70b['view']);this['annotationViews']['remove'](_0x458a9b['view']),this['stopListening'](_0x458a9b),this['stopListening'](_0x458a9b['focusableElements']);}}}),this['listenTo'](_0xebdb7b['collection'],'add',(_0x2ab72a,_0x30f8b6)=>{this['listenTo'](_0x30f8b6,'escape',_0x478dd1);}),this['listenTo'](_0xebdb7b['collection'],'remove',(_0x53b623,_0x1cc6b0)=>{this['stopListening'](_0x1cc6b0,'escape',_0x478dd1);});}['_addAnnotationToArchive'](_0x37a454,_0x12ea43){this['listenTo'](_0x37a454,'set:isVisible',_0x1cd7f9=>{_0x1cd7f9['return']=!0x1,_0x1cd7f9['stop']();}),this['annotationViews']['add'](_0x37a454['view'],_0x12ea43);}['_handleNewThread'](_0x2094a5){const _0x2be43d=this['editor']['plugins']['get']('CommentsRepository'),_0x315fb0=this['editor']['plugins']['get']('Annotations'),_0x1fd49c=this['editor']['config']['get']('collaboration.channelId');if(!_0x1fd49c||_0x2094a5['channelId']===_0x1fd49c){const _0x337add=_0x2be43d['_threadToController']['get'](_0x2094a5);if(!_0x337add)return void this['_pendingThreads']['push'](_0x2094a5);const _0xfd7454=this['_calculatePosition'](_0x2094a5['archivedAt']),_0x40c084=_0x315fb0['getByInnerView'](_0x337add['view']);_0x40c084['isVisible']&&_0x315fb0['_visibleAnnotations']['remove'](_0x40c084),this['_addAnnotationToArchive'](_0x40c084,_0xfd7454);}}['_calculatePosition'](_0x195b37){const _0x5e2aa1=this['editor']['config']['get']('collaboration.channelId'),_0x5cdb99=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x4dd23e=>_0x4dd23e['channelId']===_0x5e2aa1)['findIndex'](_0x561e99=>_0x561e99['archivedAt']<_0x195b37);return _0x5cdb99<0x0||_0x5cdb99>this['annotationViews']['length']?this['annotationViews']['length']:_0x5cdb99-0x1;}['_toggleDialog'](){const _0x27e7d2=this['editor'],_0x78f05e=_0x27e7d2['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x27e7d2['locale'],this['annotationViews'])),'commentsArchive'===_0x78f05e['id']?_0x78f05e['hide']():_0x78f05e['show']({'id':'commentsArchive','title':N(_0x27e7d2['locale'],'COMMENTS_ARCHIVE'),'icon':_0x124175,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x4ebefc['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x5351ed,_0x2f0ee7=!0x1){const _0x53bf63=this['editor']['locale'],_0x5f7b3e=this['editor']['plugins']['get']('Dialog'),_0x187f03=new _0x5351ed(_0x53bf63);return _0x187f03['bind']('isEnabled')['to'](this,'isEnabled'),_0x187f03['bind']('isOn')['to'](_0x5f7b3e,'id',_0x482f9f=>'commentsArchive'===_0x482f9f),_0x187f03['set']({'label':N(_0x53bf63,'COMMENTS_ARCHIVE'),'icon':_0x124175,'isToggleable':!0x0}),_0x2f0ee7&&(_0x187f03['tooltip']=!0x0),this['listenTo'](_0x187f03,'execute',()=>this['_toggleDialog']()),_0x187f03;}['_hideDialogOnAnnotationEscape']=_0x5e90ff=>{const _0x43c5cc=_0x5e90ff['source'];if(!this['annotationViews']['has'](_0x43c5cc['view']))return;const _0x43aef8=this['editor']['plugins']['get']('Dialog');_0x43aef8['isOpen']&&'commentsArchive'===_0x43aef8['id']&&(_0x43aef8['hide'](),_0x5e90ff['stop']());};}class gi extends _0x44aad5{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
23
+ import{Editor as _0x1db22d,ContextPlugin as _0x1c3a7a,PendingActions as lt,Command as _0x2473d2,Plugin as _0x4e6af8,Context as _0x4d6d98}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1201c1,uid as _0x4552d2,KeystrokeHandler as jt,FocusTracker as _0x119ecb,diff as _0x560f87,Collection as _0x7eb5c5,Rect as _0x436169,CKEditorError as _0x13348f,first as _0x186b13,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x3935b2,keyCodes as _0x266af6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x432c69,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x10b016,trimHtml as ts,LateFocusDropdownButtonView as _0x281113,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x39c788}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x5d3d29}from'es-toolkit/compat';import{IconUndo as _0x5cccb5,IconCheck as _0x3ddff7,IconPencil as _0x57d6a5,IconRemoveComment as _0x52bd7f,IconThreeVerticalDots as _0x5a552d,IconAddComment as _0x61886d,IconCommentsArchive as _0xb693b5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x206411,ButtonView as _0x39d67e,ViewCollection as _0x42bc84,createDropdown as _0x25a7f2,ListView as _0xfa59b0,focusChildOnDropdownOpen as _0x348b07,ListItemView as _0x3923f4,MenuBarMenuListItemButtonView as _0x4dec93,BodyCollection as _0x4ce13c,BalloonPanelView as _0x1669c2,ContextualBalloon as _0x479a8f,Dialog as _0x578bd5,DialogViewPosition as _0xa729ff}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x2585d2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x337bf3}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x660b85}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x1201c1(){['model'];['view'];constructor(_0x2450c1,_0x10cbe6){super(),this['model']=_0x2450c1,this['model']['_isAttached']=!0x0,this['view']=_0x10cbe6,this['listenTo'](_0x10cbe6,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x10cbe6,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x10cbe6,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x10cbe6,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x10cbe6,'addComment',(_0x1767b2,_0x5989eb)=>this['addComment'](_0x5989eb)),this['listenTo'](_0x10cbe6,'updateComment',(_0x321a80,_0x4d0a52,_0x2bcb7f)=>this['updateComment'](_0x4d0a52,_0x2bcb7f)),this['listenTo'](_0x10cbe6,'removeComment',(_0x4a62dd,_0x25e362)=>this['removeComment'](_0x25e362));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x1d7c5a){this['model']['addComment']({'content':_0x1d7c5a,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x185d7d,_0x1416dc){this['model']['getComment'](_0x185d7d)['update']({'content':_0x1416dc});}['removeComment'](_0x26fa06){this['model']['getComment'](_0x26fa06)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x5105e0,_0x570465,_0x530dd8){const t=_0x5105e0['t'];switch(_0x570465){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x530dd8);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x530dd8);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x530dd8);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x530dd8);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x530dd8);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x530dd8);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x530dd8);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x530dd8);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x4ace00,_0x3556b4){super(_0x4ace00);const _0x1afe8f=_0x4552d2();this['main']=this['createCollection'](),this['editable']=new Vt(_0x4ace00,_0x3556b4,void 0x0,{'label':()=>N(_0x4ace00,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x4ace00['uiLanguageDirection'],'lang':_0x4ace00['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1afe8f},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x23d21c){super(_0x23d21c),this['view']=new Rt(_0x23d21c['locale'],_0x23d21c['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x98b99d=this['editor']['editing']['view'],_0x43b799=this['view']['editable'],_0x4f47f1=_0x98b99d['document']['getRoot']();_0x43b799['name']=_0x4f47f1['rootName'],this['view']['render']();const _0x5969cd=_0x43b799['element'];this['setEditableElement'](_0x43b799['name'],_0x5969cd),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x98b99d['attachDomRoot'](_0x5969cd),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x1201c1(_0x1db22d){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x574f88={}){function _0x124c9d(_0x200c03){return _0x200c03['map'](_0x157b9f=>String['fromCharCode'](_0x157b9f))['join']('');}(_0x574f88=Object['assign']({},_0x574f88))['plugins']||(_0x574f88['plugins']=hs['defaultPlugins']),super(_0x574f88),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x124c9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x124c9d([0x76,0x69,0x65,0x77])][_0x124c9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x124c9d([0x61,0x75,0x74,0x6f]),this[_0x124c9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x124c9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x124c9d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x124c9d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x124c9d([0x6f,0x6b])});}['create'](){const _0x56cfb9=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x56cfb9))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x27f686=>{const _0x7db3be=this['model']['document']['getRoot'](),_0x5b7a9a=_0x7db3be&&_0x7db3be['getChild'](_0x7db3be['childCount']-0x1);_0x27f686['setSelection'](_0x5b7a9a,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x47a75e=this['editing']['view'],_0x5a3235=_0x47a75e['document']['getRoot'](),_0x3fc54a=_0x5a3235['getChild'](0x0);_0x5a3235['childCount']>0x1||!_0x3fc54a||'p'!=_0x3fc54a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x47a75e,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3fc54a['placeholder']=this['placeholder']),Ft({'view':_0x47a75e,'element':_0x3fc54a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3fc54a);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x47638f,_0x40f7ed={}){super(_0x47638f),this['editor']=null,this['_editorConfig']=_0x40f7ed,this['set']('value',_0x40f7ed['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x47638f,'Reply...')),this['set']('submitLabel',N(_0x47638f,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x119ecb(),this['focusCycler']=new _0x206411({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x15c51a,_0x5d6546)=>{this['cancelButtonView']['fire']('execute'),_0x5d6546();}),this['keystrokes']['set']('Ctrl+Enter',(_0x27b957,_0x52d520)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x52d520());}),this['on']('submit',(_0x313651,_0x444d7b)=>{_0x444d7b['length']>0xfde8?(alert(N(_0x47638f,'TOO_LONG_COMMENT_ALERT',[_0x444d7b['length'],0xfde8])),_0x313651['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x32b7f6=this['editor'];this['element']['insertBefore'](_0x32b7f6['ui']['element'],this['element']['firstChild']),_0x32b7f6['model']['document']['on']('change',()=>this['value']=_0x32b7f6['getData']()),_0x32b7f6['bind']('placeholder')['to'](this),this['focusables']['add'](_0x32b7f6['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xe112ca){-0x1===_0xe112ca?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0xc680e2}=this,_0x4c700e=new _0x39d67e(_0xc680e2);return _0x4c700e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4c700e['withText']=!0x0,_0x4c700e['bind']('label')['to'](this,'submitLabel'),_0x4c700e['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4c700e['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x3b9655,_0x395e0c)=>!_0x395e0c&&!!_0x3b9655['trim']()),_0x4c700e;}['_createCancelButton'](){const {locale:_0x48b03a}=this,_0x2f9fac=new _0x39d67e(_0x48b03a);return _0x2f9fac['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2f9fac['label']=N(_0x48b03a,'Cancel'),_0x2f9fac['withText']=!0x0,_0x2f9fac['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2f9fac;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x392a88=>{this['focusTracker']['add'](_0x392a88['element']);}),this['focusables']['on']('change',(_0x38b99a,_0x316fac)=>{for(const _0x183be9 of Array['from'](_0x316fac['added'])['reverse']())this['focusTracker']['add'](_0x183be9['element']);});}}class ie extends kt{constructor(_0x1049bf,_0x4ecb12,_0x263436){super(_0x1049bf),this['commentInputView']=new es(_0x1049bf,_0x263436),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x44b57b,_0x855f26)=>_0x44b57b||!!_0x855f26),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x432c69(_0x1049bf,_0x4ecb12),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x3e7874){this['commentInputView']['focus'](_0x3e7874);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x10e055,_0x110de5)=>{const {submitButtonView:_0x3f1bdf,cancelButtonView:_0xe7f068,editor:_0x3cc42c}=this['commentInputView'];[_0x3f1bdf['element'],_0xe7f068['element'],_0x3cc42c?_0x3cc42c['editing']['view']['getDomRoot']():null]['filter'](_0x1933e3=>_0x1933e3)['some'](_0x6b4b36=>_0x6b4b36['contains'](_0x110de5['target']))||(this['focus'](),_0x110de5['preventDefault']());});}}class rs extends kt{constructor(_0x4f30d5){super(_0x4f30d5);const _0x5e6a38=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x5e6a38['to']('count',_0x2c9b36=>N(_0x4f30d5,'NUMBER_OF_COMMENTS',_0x2c9b36))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x1981ae,_0x1c7c07,_0x4e45f8){super(_0x1981ae);const _0x278d77=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1c7c07['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1c7c07,this['_config']=_0x4e45f8,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x119ecb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x206411({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x17c242=>this['commentViews']['map'](_0x41119e=>_0x41119e['element'])['includes'](_0x17c242['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x1981ae),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x563087=>_0x563087-this['_config']['maxCommentsWhenCollapsed']);for(const _0x185cf7 of _0x1c7c07['comments'])this['_handleNewCommentModel'](_0x185cf7);this['_handleInfoComment'](),this['listenTo'](_0x1c7c07['comments'],'add',(_0x862347,_0x3f7af0)=>{const _0x1ea98c=this['_calculatePosition'](_0x3f7af0);this['length']++,this['_handleNewCommentModel'](_0x3f7af0,_0x1ea98c),this['refreshVisibleViews']();}),this['listenTo'](_0x1c7c07['comments'],'remove',(_0x3c0f3a,_0x4ee964)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4ee964),this['refreshVisibleViews']();}),this['listenTo'](_0x1c7c07,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1c7c07,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x278d77['if']('length','ck-hidden',_0x302a7b=>!_0x302a7b)],'aria-label':N(_0x1981ae,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0xacbd0a){-0x1===_0xacbd0a?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x585f4e of this['commentViews'])_0x585f4e['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0xf6a5c,_0x543de3){const _0x2707a0=new this['_config']['CommentView'](this['locale'],_0xf6a5c,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2707a0['viewUid']=_0xf6a5c['id'],_0x2707a0['delegate']('removeComment')['to'](this),_0x2707a0['delegate']('updateComment')['to'](this),_0x2707a0['delegate']('resolveCommentThread')['to'](this),_0x2707a0['delegate']('editorReady')['to'](this),_0x2707a0['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2707a0,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2707a0,_0x543de3);}['_calculatePosition'](_0x26f07b){const _0x53fbe7=this['_model']['_findOptimalIndex'](_0x26f07b);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x26f07b['authoredAt']?_0x53fbe7-0x1:_0x53fbe7:_0x53fbe7-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x28e9e8={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x28e9e8,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x28e9e8));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3e8edb){const _0x326982=this['commentViews']['remove'](_0x3e8edb['id']);this['stopListening'](_0x326982),_0x326982['isEditMode']&&this['_updateHasDirtyComment'](),_0x326982['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x590683=>_0x590683['isEditMode']);}['_rearrangeCollapse'](){const _0x2e53e9=function(_0x18c163){const _0x29a84a=new _0x7eb5c5();for(const _0xcae96e of _0x18c163)_0x29a84a['add'](_0xcae96e);return _0x29a84a;}(this['commentViews']),_0x51c9b1=this['_collapsedCommentsView']['count'];for(let _0x2755e6=0x1;_0x2755e6<=_0x51c9b1;_0x2755e6++)_0x2e53e9['remove'](0x1);for(const _0x5acb9f of _0x2e53e9)_0x5acb9f['collapse']();_0x51c9b1>0x0&&_0x2e53e9['add'](this['_collapsedCommentsView'],0x1),ns(_0x560f87(Array['from'](this['visibleViews']),Array['from'](_0x2e53e9)),this['visibleViews'],_0x2e53e9);}['_rearrangeExpand'](){ns(_0x560f87(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0xe5ceba of this['visibleViews'])_0xe5ceba['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x5d05b5=>{this['focusTracker']['add'](_0x5d05b5['element']),this['keystrokes']['listenTo'](_0x5d05b5['element']);}),this['commentViews']['on']('change',(_0x2d7a3b,_0x3b05aa)=>{for(const _0x283c5f of _0x3b05aa['removed'])this['focusTracker']['remove'](_0x283c5f['element']),this['keystrokes']['stopListening'](_0x283c5f['element']);for(const _0x24f441 of Array['from'](_0x3b05aa['added'])['reverse']())this['focusTracker']['add'](_0x24f441['element']),this['keystrokes']['listenTo'](_0x24f441['element']);});}}function ns(_0x85a4c6,_0xd31910,_0x33b22a){let _0x3e889f=0x0;for(const _0x316bdf of _0x85a4c6)switch(_0x316bdf){case'insert':_0xd31910['add'](_0x33b22a['get'](_0x3e889f),_0x3e889f),_0x3e889f++;break;case'delete':_0xd31910['remove'](_0x3e889f);break;case'equal':_0x3e889f++;}}class oe extends kt{constructor(_0x1d96f0){super(_0x1d96f0);const _0x33059e=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x33059e['to']('contextValue',_0x16c4aa=>N(_0x1d96f0,'THREAD_CONTEXT_LABEL',_0x16c4aa)),'tabindex':-0x1},'children':[{'text':_0x33059e['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5b4c7b,_0x326ece){super(_0x5b4c7b);const _0x175d7b=this['bindTemplate'];this['_model']=_0x326ece,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x119ecb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x206411({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x4a53f3=>!!_0x4a53f3),this['bind']('contextValue')['to'](this['_model'],'context',_0x55258f=>_0x55258f&&_0x55258f['value']?this['_trimContextValue'](_0x55258f['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x175d7b['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x5894e9=new _0x39d67e(this['locale']);return _0x5894e9['label']=N(this['locale'],'Reopen'),_0x5894e9['tooltip']=N(this['locale'],'Reopen'),_0x5894e9['icon']=_0x5cccb5,_0x5894e9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x49333d=>!_0x49333d),_0x5894e9['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x22cadf,_0x516e6c)=>_0x22cadf&&_0x516e6c),_0x5894e9['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x5894e9;}['_trimContextValue'](_0x1d2fcb){if(_0x1d2fcb['length']<0x96)return _0x1d2fcb;const _0x3f743e=_0x1d2fcb['lastIndexOf']('\x20',0x93);return _0x1d2fcb['substring'](0x0,_0x3f743e>-0x1?_0x3f743e:0x93)+'...';}['_attachContextActions'](){const _0x2ba0ff=this['element']['querySelector']('.ck-context'),_0x127083=_0x2ba0ff['querySelector']('.ck-context__value');this['listenTo'](_0x2ba0ff,'mouseenter',()=>{_0x127083['offsetWidth']<_0x127083['scrollWidth']&&_0x2ba0ff['classList']['add']('overlay');}),this['listenTo'](_0x2ba0ff,'mouseleave',()=>{_0x2ba0ff['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x2964e0 of this['focusables'])this['focusTracker']['add'](_0x2964e0['element']),this['keystrokes']['listenTo'](_0x2964e0['element']);}['_createContextView'](){const _0x3d0367=new oe(this['locale']);return _0x3d0367['bind']('contextValue')['to'](this),_0x3d0367;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x42775b,_0x4654de,_0x529177,_0x5a3f5e){super(_0x42775b),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4654de,this['_localUser']=_0x529177,this['_config']=_0x5a3f5e,this['commentThreadHeaderView']=new Xt(_0x42775b,_0x4654de),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x42775b,N(_0x42775b,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x42775b,_0x4654de,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5a3f5e)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2e2673,_0x4edc89)=>_0x2e2673||!!_0x4edc89),this['bind']('isUnlinked')['to'](_0x4654de,'unlinkedAt',_0x4bcee6=>!!_0x4bcee6),this['bind']('ariaLabel')['to'](this,'length',_0x10bd24=>{const _0x187fec=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x10bd24,_0x187fec]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x119ecb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x206411({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x7b5d29=>_0x7b5d29['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x21ba40=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32c8b5=_0x21ba40['commentInputView'];return _0x21ba40['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x32c8b5,'value',(_0x5f3151,_0x29b928,_0x36014f,_0x4a9482,_0x2ef337)=>!!_0x2ef337||!!_0x4a9482&&_0x36014f&&!_0x29b928||_0x5f3151&&_0x36014f&&!_0x29b928),_0x32c8b5['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x72e2fd,_0x2f6cef,_0x52d5e9)=>{let _0x5d33c4;return _0x5d33c4=_0x52d5e9&&_0x2f6cef?'Reply\x20to\x20reopen\x20discussion...':_0x72e2fd?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x5d33c4);}),_0x32c8b5['bind']('submitLabel')['to'](this,'length',_0x4f65c6=>N(this['locale'],_0x4f65c6?'Reply':'Comment')),_0x32c8b5['on']('submit',(_0x33a34b,_0x194aac)=>{this['fire']('addComment',_0x194aac),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x32c8b5['on']('cancel',()=>{this['focus']();}),_0x32c8b5['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x32c8b5['on']('cancel',_0x4acda2=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4acda2['stop']());}),this['on']('change:isActive',(_0x21a00f,_0x46eea9,_0x192373)=>{_0x192373||this['length']||_0x32c8b5['value']||this['fire']('removeCommentThread');}),_0x21ba40;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0xb5032a,_0x110846,_0x42a7ba,_0x2db45c){super(_0xb5032a,_0x110846,_0x42a7ba,_0x2db45c),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0xb5032a,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x37c82b,_0xece177,_0x5ca2dc)=>{_0x5ca2dc||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1e98c4,_0x34402e,_0x1c7033)=>{_0x1c7033&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x21d490=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x21d490['if']('isActive','ck-thread--active'),_0x21d490['if']('isUnlinked','ck-thread--unlinked'),_0x21d490['to']('actionIndicator',_0x5babc7=>_0x5babc7?'ck-thread--'+_0x5babc7:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x21d490['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0xbeeaf4 of this['commentsListView']['commentViews'])_0xbeeaf4['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x126420}=this,_0xc56059=this['commentsListView']['commentViews']['get'](0x0);_0xc56059===this['_boundFirstCommentView']||_0xc56059['isSystemComment']||(this['_boundFirstCommentView']=_0xc56059,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0xc56059,'actionIndicator',_0x55edd7=>'remove'===_0x55edd7?'remove':null),_0xc56059['placeholder']=N(_0x126420,'Write\x20a\x20comment...'),_0xc56059['removeButton']['on']('execute',_0x360853=>{_0x360853['stop'](),this['showConfirm'](N(_0x126420,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0xc56059['focus']();}),_0xc56059['actionBar']['add'](this['resolveButton'],0x0),_0xc56059['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x318e9c=new _0x10b016(this['locale']);return _0x318e9c['label']=N(this['locale'],'Resolve'),_0x318e9c['tooltip']=N(this['locale'],'Resolve'),_0x318e9c['icon']=_0x3ddff7,_0x318e9c['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x318e9c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3a2284=>!_0x3a2284),_0x318e9c['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x731975,_0x5b12fb)=>_0x731975&&!_0x5b12fb),_0x318e9c['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x318e9c;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0x4e664a){super(_0x4e664a),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x1c5cbf,_0x21b209,_0x28c510)=>{this['element']['innerHTML']=_0x28c510;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa4f608,_0x3b0469,_0x23df92){super(_0xa4f608),this['_model']=_0x3b0469,this['_config']=_0x23df92,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3b0469,'content',_0x3b0469,'authoredAt',(_0x5a7ba7,_0x564c09)=>N(_0xa4f608,'COMMENT_ARIA_LABEL',[_0x3b0469['author']['name'],_0x23df92['formatDateTime'](_0x564c09),new DOMParser()['parseFromString'](_0x5a7ba7,'text/html')['body']['textContent'],_0x3b0469['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0xa4f608,N(_0xa4f608,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x42bc84(),this['focusTracker']=new _0x119ecb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x206411({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x26ff00=>_0x26ff00['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x224715=new is(this['locale']);return _0x224715['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x40a82e,_0x150103)=>_0x150103?ts(_0x40a82e,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x40a82e),_0x224715;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x41cb2c=new es(this['locale'],this['_config']['editorConfig']);return _0x41cb2c['value']=this['_model']['content'],_0x41cb2c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x41cb2c['submitLabel']=N(this['locale'],'Save'),_0x41cb2c['on']('submit',(_0x22567a,_0x21d3a3)=>{this['fire']('updateComment',this['_model']['id'],_0x21d3a3),this['switchToDisplayMode'](),this['focus']();}),_0x41cb2c['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x41cb2c['once']('editorReady',()=>{_0x41cb2c['focus']();}),_0x41cb2c['createEditor'](),_0x41cb2c['delegate']('editorReady')['to'](this),_0x41cb2c['delegate']('editorDestroyed')['to'](this),_0x41cb2c;}['_setupKeyboardNavigation'](){const _0x2d6ab4=this['element'];this['keystrokes']['listenTo'](_0x2d6ab4);for(const _0x15703d of this['focusables'])this['focusTracker']['add'](_0x15703d['element']),this['keystrokes']['listenTo'](_0x15703d['element']);this['focusables']['on']('change',(_0x22abef,_0x140358)=>{for(const _0x2a9c44 of _0x140358['removed'])this['focusTracker']['remove'](_0x2a9c44['element']),this['keystrokes']['stopListening'](_0x2a9c44['element']);for(const _0x139ed1 of _0x140358['added'])this['focusTracker']['add'](_0x139ed1['element']),this['keystrokes']['listenTo'](_0x139ed1['element']);}),this['keystrokes']['set']('enter',(_0x911029,_0x1b7230)=>{_0x2d6ab4===_0x911029['target']&&(this['focusCycler']['focusFirst'](),_0x1b7230());}),this['keystrokes']['set']('esc',(_0x50b0a6,_0x278d2b)=>{_0x2d6ab4!==_0x50b0a6['target']&&(this['focus'](),_0x278d2b());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x588d6c,_0x4ded9d,_0x4f6874){super(_0x588d6c,_0x4ded9d,_0x4f6874),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x588d6c,'Reply...')),this['bind']('authoredAt')['to'](_0x4ded9d),this['bind']('resolvedAt')['to'](_0x4ded9d),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x432c69(_0x588d6c,_0x4ded9d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x4ded9d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x362fc8=this['bindTemplate'],_0x5a8acd=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x362fc8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x362fc8['to']('authoredAt',_0x562ec9=>this['_config']['formatDateTime'](_0x562ec9))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x362fc8['if']('isEditMode','ck-comment__actions--hidden'),_0x362fc8['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x5a8acd['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x362fc8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x362fc8['if']('isEditMode','ck-comment--edit'),_0x362fc8['if']('isSystemComment','ck-comment--info'),_0x362fc8['to']('actionIndicator',_0x10e6c1=>_0x10e6c1?'ck-comment--'+_0x10e6c1:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x5a8acd}]}]};}['_createEditButton'](){const _0x356aad=new _0x39d67e(this['locale']);return _0x356aad['label']=N(this['locale'],'Edit'),_0x356aad['icon']=_0x57d6a5,_0x356aad['withText']=!0x0,_0x356aad['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x356aad['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x22d194=>!_0x22d194),_0x356aad['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x356aad['on']('execute',()=>this['switchToEditMode']()),_0x356aad;}['_createRemoveButton'](){const _0x2bbf8b=new _0x39d67e(this['locale']);return _0x2bbf8b['label']=N(this['locale'],'Remove'),_0x2bbf8b['icon']=_0x52bd7f,_0x2bbf8b['withText']=!0x0,_0x2bbf8b['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x2bbf8b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3796ec=>!_0x3796ec),_0x2bbf8b['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x2bbf8b['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x2bbf8b;}['_createDropdown'](){const _0x2c604c=_0x25a7f2(this['locale'],_0x281113),_0x356196=_0x2c604c['panelView']['children'],_0x4d30e2=new _0xfa59b0(this['locale']),_0x583ef3=_0x2c604c['bindTemplate'];_0x348b07(_0x2c604c,()=>this['items']['find'](_0x1eb502=>_0x1eb502['isVisible'])),_0x2c604c['extendTemplate']({'attributes':{'class':[_0x583ef3['if']('isVisible','ck-hidden',_0x3cad12=>!_0x3cad12)]}});const _0x1abcd0=(_0x47d5fe,_0x1ace47=-0x1)=>{const _0x5d1820=new _0x3923f4(this['locale']);_0x5d1820['children']['add'](_0x47d5fe);const _0x38711=_0x1ace47>-0x1?_0x1ace47:_0x4d30e2['items']['length'];_0x4d30e2['items']['add'](_0x5d1820,_0x38711);const _0x531400=Array['from'](this['items']);_0x2c604c['unbind']('isEnabled','isVisible'),_0x2c604c['bind']('isEnabled')['toMany'](_0x531400,'isEnabled',(..._0x37e491)=>_0x37e491['some'](_0x24cac8=>_0x24cac8)),_0x2c604c['bind']('isVisible')['toMany'](_0x531400,'isVisible',(..._0x4887b3)=>_0x4887b3['some'](_0x1744a3=>_0x1744a3));};_0x2c604c['panelPosition']='sw',_0x2c604c['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x5a552d});for(const _0x5d019b of this['items'])_0x1abcd0(_0x5d019b);return _0x356196['add'](_0x4d30e2),_0x2c604c['listenTo'](this['items'],'add',(_0x4e3ad8,_0x11076f,_0x12b0b7)=>{_0x1abcd0(_0x11076f,_0x12b0b7);}),_0x2c604c['listenTo'](this['items'],'remove',(_0x44eecc,_0x20901c,_0x49c0c1)=>{_0x4d30e2['items']['remove'](_0x49c0c1);}),_0x2c604c;}['_attachActions'](_0xde980e,_0x43184c){const _0x3a1641=_0xde980e&&_0xde980e['element'];_0x3a1641&&(this['listenTo'](_0x3a1641,'mouseenter',()=>this['actionIndicator']=_0x43184c),this['listenTo'](_0x3a1641,'focus',()=>this['actionIndicator']=_0x43184c),this['listenTo'](_0x3a1641,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3a1641,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xb110ac=super['_createCommentInputView']();return _0xb110ac['bind']('placeholder')['to'](this),_0xb110ac;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x1564f6){const _0x25777b=Dt(_0x1564f6,0x1e),_0x2e80fb=new MutationObserver(_0x2d458b=>{for(const _0x5e5812 of _0x2d458b)('attributes'==_0x5e5812['type']&&'class'==_0x5e5812['attributeName']||'childList'==_0x5e5812['type']||'characterData'==_0x5e5812['type'])&&_0x25777b();});return{'attach'(_0x17cf6f){_0x2e80fb['observe'](_0x17cf6f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2e80fb['disconnect'](),_0x25777b['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x3bf0cc,_0x184288){super(_0x3bf0cc),this['id']=_0x4552d2(),this['focusTracker']=new _0x119ecb(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x33c861,_0x385a36)=>this['fire']('Esc',_0x385a36)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x184288),this['mainView']=_0x184288;const _0x275e55=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x275e55['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x434786=this['element']['clientHeight'];_0x434786&&(this['height']=_0x434786);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x1201c1(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2764ba,target:_0x4d19ad,type:_0x4466d5,isVisible:_0x3b56c3=!0x0}){super(),this['view']=_0x2764ba,this['view']['element']||this['view']['render'](),this['_type']=_0x4466d5,this['_target']=_0x4d19ad,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x7eb5c5([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x1ddd50,_0x1b26f)=>{this['view']['focusTracker']['add'](_0x1b26f);}),this['focusableElements']['on']('remove',(_0x3ab8f3,_0x26352c)=>{this['view']['focusTracker']['remove'](_0x26352c);}),this['set']('isVisible',_0x3b56c3);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x554491=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x554491),_0x554491;}get['targetRect'](){const _0x2d5faa=this['target'];if(null===_0x2d5faa)return null;if(_0x2d5faa instanceof _0x436169)return _0x2d5faa;const _0x14cd6c=_0x2d5faa['filter'](_0x1f4ce9=>function(_0x47f04e){const _0x31c59e=_0x47f04e['offsetParent'];if(_0x31c59e)return!0x0;const _0x29e6d5=_0x47f04e['getClientRects']()['item'](0x0);return!!_0x29e6d5;}(_0x1f4ce9));return 0x0===_0x14cd6c['length']?null:new _0x436169(_0x14cd6c[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x58c3d6){this['view']['isActive']=_0x58c3d6,this['view']['mainView']['isActive']=_0x58c3d6;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xaa5a37){if(!(null===_0xaa5a37||_0xaa5a37 instanceof _0x436169||Array['isArray'](_0xaa5a37)&&_0xaa5a37['every'](_0x448741=>fi(_0x448741))))throw new _0x13348f('annotation-invalid-target',null,{'target':_0xaa5a37});}['_getNormalizedTarget'](){const _0x1c0ece='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x1c0ece)?[_0x1c0ece]:_0x1c0ece;}}function fi(_0x5b6137){return null!==_0x5b6137&&'object'==typeof _0x5b6137&&'nodeType'in _0x5b6137&&0x1===_0x5b6137['nodeType'];}class S extends _0x7eb5c5{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x5b5fe8=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x119ecb(),this['_focusTracker']['on']('change:isFocused',(_0x296339,_0x5729e1,_0x53934f)=>{_0x53934f||this['fire']('blur');});for(const _0x3a927b of _0x5b5fe8)this['add'](_0x3a927b);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x368f42){if(this['has'](_0x368f42))throw new _0x13348f('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x368f42['innerView'],_0x368f42),this['_viewToAnnotation']['set'](_0x368f42['view'],_0x368f42);for(const _0x450fc6 of _0x368f42['focusableElements'])this['_focusTracker']['add'](_0x450fc6);this['listenTo'](_0x368f42['focusableElements'],'add',(_0x286a6a,_0x52d654)=>{this['_focusTracker']['add'](_0x52d654);}),this['listenTo'](_0x368f42['focusableElements'],'remove',(_0x16fb3a,_0x5d3df9)=>{this['_focusTracker']['remove'](_0x5d3df9);}),this['listenTo'](_0x368f42['view']['focusTracker'],'change:isFocused',(_0x5e0657,_0x17cfa5,_0x1d13e3)=>{_0x1d13e3&&this['fire']('focus',_0x368f42);}),_0x368f42['updateTargetRect']();const _0x488d31=this['_getOrderInContent'](_0x368f42['view']['targetRect']);return super['add'](_0x368f42,_0x488d31);}['remove'](_0x1c5319){if(!this['has'](_0x1c5319))throw new _0x13348f('annotationcollection-not-existing-item',null);this['stopListening'](_0x1c5319['view']['focusTracker']),this['stopListening'](_0x1c5319['focusableElements']);for(const _0x8a710 of _0x1c5319['focusableElements'])this['_focusTracker']['remove'](_0x8a710);return this['_viewToAnnotation']['delete'](_0x1c5319['view']),this['_innerViewToAnnotation']['delete'](_0x1c5319['innerView']),super['remove'](_0x1c5319);}['getByInnerView'](_0x520724){return this['_innerViewToAnnotation']['get'](_0x520724);}['getByView'](_0x16733b){return this['_viewToAnnotation']['get'](_0x16733b);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2b7c76 of this)_0x2b7c76['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2a5279=Array['from'](this)['sort']((_0x1507bf,_0x24948f)=>w(_0x1507bf['view']['targetRect'],_0x24948f['view']['targetRect']));for(let _0x51297a=_0x2a5279['length']-0x1;_0x51297a>0x0;_0x51297a--){const _0x25fa4e=_0x2a5279[_0x51297a];_0x51297a!==this['getIndex'](_0x25fa4e)&&(this['remove'](_0x25fa4e),this['add'](_0x25fa4e));}}['_getOrderInContent'](_0x4179ea){let _0x47a9f4=0x0;if(!_0x4179ea)return this['length'];for(const _0x2d3c5f of this){const _0x1ec691=_0x2d3c5f['view']['targetRect'];if(_0x1ec691){if(w(_0x4179ea,_0x1ec691)<0x0)return _0x47a9f4;_0x47a9f4++;}}return _0x47a9f4;}}function v({source:_0x73b43d,target:_0x222e6f,filter:_0x30277b}){for(const _0x490a42 of _0x73b43d)_0x30277b(_0x490a42)&&_0x222e6f['add'](_0x490a42);_0x222e6f['listenTo'](_0x73b43d,'add',(_0x2e91f5,_0x5f0727)=>{_0x30277b(_0x5f0727)&&_0x222e6f['add'](_0x5f0727);}),_0x222e6f['listenTo'](_0x73b43d,'remove',(_0x2b4087,_0x59dc6b)=>{_0x222e6f['has'](_0x59dc6b)&&_0x222e6f['remove'](_0x59dc6b);});}function w(_0x4637a5,_0x33ac26){if(null===_0x4637a5&&null===_0x33ac26)return 0x0;if(null===_0x4637a5)return-0x1;if(null===_0x33ac26)return 0x1;const _0x34a9d5=_0x4637a5['top']-_0x33ac26['top'];return 0x0==_0x34a9d5?_0x4637a5['left']-_0x33ac26['left']:_0x34a9d5;}class y extends _0x1c3a7a{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ed53a){if(super(_0x3ed53a),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x3ed53a instanceof _0x1db22d){const _0x152a3e=_0x3ed53a['locale'];_0x3ed53a['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x152a3e,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x590ca5){this['collection']['add'](_0x590ca5);}['remove'](_0x2aecce){this['collection']['remove'](_0x2aecce),_0x2aecce['destroy']();}['refreshVisibility'](){for(const _0x4eb0c3 of this['collection'])_0x4eb0c3['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x5018b3){return this['collection']['getByInnerView'](_0x5018b3);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x35e941 of this['collection'])_0x35e941['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x58794c){this['fire']('_activateAnnotation',_0x58794c);}['createAnnotation'](_0x2586c7){return new T(_0x2586c7);}['createAnnotationView'](_0x374196,_0x17a58b){return new E(_0x374196,_0x17a58b);}['_addActiveAnnotation'](_0x479b6b){const _0x6b0e52=new Set(this['activeAnnotations']);_0x6b0e52['add'](_0x479b6b),this['activeAnnotations']=_0x6b0e52;}['_removeActiveAnnotation'](_0x202835){const _0x5eb921=new Set(this['activeAnnotations']);_0x5eb921['delete'](_0x202835),this['activeAnnotations']=_0x5eb921;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5ddf02=this['collection'],_0x29e18c=this['_visibleAnnotations'];function _0x299988(_0x507f19){const _0x136d27=_0x507f19['source'];_0x136d27['isVisible']&&!_0x29e18c['has'](_0x136d27)?_0x29e18c['add'](_0x136d27):!_0x136d27['isVisible']&&_0x29e18c['has'](_0x136d27)&&_0x29e18c['remove'](_0x136d27),_0x136d27['view']['focusTracker']['remove'](_0x136d27['view']['element']),_0x136d27['view']['focusTracker']['add'](_0x136d27['view']['element']);}this['listenTo'](_0x5ddf02,'add',(_0x1763f8,_0x3f069e)=>{_0x3f069e['isVisible']&&_0x29e18c['add'](_0x3f069e),this['listenTo'](_0x3f069e,'change:isVisible',_0x299988);}),this['listenTo'](_0x5ddf02,'remove',(_0x11a469,_0x4ba955)=>{_0x29e18c['has'](_0x4ba955)&&_0x29e18c['remove'](_0x4ba955),this['stopListening'](_0x4ba955,'change:isVisible',_0x299988);});}['_setupEnterAnnotationKeystroke'](){const _0x563af5=_0x60ffd7=>{_0x60ffd7['on']('ready',()=>{_0x60ffd7['keystrokes']['set'](_0x337bf3,(_0x466efd,_0x5e2af5)=>{const _0x12d7d6=_0x186b13(this['activeAnnotations']['values']());_0x12d7d6&&(_0x12d7d6['view']['focus'](),_0x5e2af5());});});};this['context']instanceof _0x1db22d?_0x563af5(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x4baf00,_0x23fc7f)=>{_0x563af5(_0x23fc7f);});}['_setupEscapeAnnotationHandling'](){const _0x46cead=_0x5b0954=>{const _0x242ffa=_0x5b0954['source'],_0x416850=[];let _0x150aed;if(Array['isArray'](_0x242ffa['target'])){_0x150aed=_0x242ffa['target'][0x0],this['context']instanceof _0x1db22d?_0x416850['push'](this['context']):this['context']['editors']&&_0x416850['push'](...this['context']['editors']);for(const _0x3b000b of _0x416850)for(const _0x40a540 of _0x3b000b['editing']['view']['domRoots']['values']())if(_0x40a540['contains'](_0x150aed))return void _0x3b000b['editing']['view']['focus']();_0x150aed['focus']();}};this['listenTo'](this['collection'],'add',(_0x275438,_0x59e2a3)=>{this['listenTo'](_0x59e2a3,'escape',_0x46cead,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x2dc6fb,_0x363319)=>{this['stopListening'](_0x363319,'escape',_0x46cead);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x1c3a7a{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x594eaa){super(_0x594eaa),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x46488a=this['context']['config'];_0x46488a['define']('comments.maxCommentsWhenCollapsed',0x2),_0x46488a['define']('comments.maxThreadTotalWeight',0x1f4),_0x46488a['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x46488a['define']('comments.CommentThreadView',gt),_0x46488a['define']('comments.CommentView',Tt),_0x46488a['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x30664e=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x349126,_0x75b3c0)=>this['_addCommentThread'](_0x75b3c0)),this['on']('submitCommentThread',(_0x110a1b,_0x331525)=>this['_submitCommentThread'](_0x331525)),this['on']('resolveCommentThread',(_0x174357,_0x1645bf)=>this['_resolveCommentThread'](_0x1645bf)),this['on']('resolveCommentThread',(_0x3fdce0,_0x5894ba)=>this['_updateActiveAnnotation'](_0x5894ba),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x279887,_0xe9613e)=>this['_reopenCommentThread'](_0xe9613e)),this['on']('reopenCommentThread',(_0x27680c,_0x1ad6b6)=>this['_updateActiveAnnotation'](_0x1ad6b6),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x5aad3a,_0x5d684e)=>this['_removeCommentThread'](_0x5d684e)),this['on']('updateCommentThread',(_0x28020f,_0x4a94df)=>this['_updateCommentThread'](_0x4a94df)),this['on']('updateCommentThread',(_0x1dbd45,_0x3ed453)=>this['_updateActiveAnnotation'](_0x3ed453),{'priority':'lowest'}),this['on']('addComment',(_0xb9a29e,_0x4aaf9b)=>this['_addComment'](_0x4aaf9b)),this['on']('updateComment',(_0x38c557,_0x22e481)=>this['_updateComment'](_0x22e481)),this['on']('removeComment',(_0x19abdf,_0x49409e)=>this['_removeComment'](_0x49409e)),this['on']('addComment',(_0x49d6f8,{threadId:_0x47349a,isFromAdapter:_0x4d95b7})=>{if(_0x4d95b7)return;const _0x4a3fec=this['getCommentThread'](_0x47349a),_0x44e14c=_0x4a3fec&&this['_threadToController']['get'](_0x4a3fec);_0x44e14c&&_0x44e14c['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x30664e,'change:activeAnnotations',(_0x5cebc9,_0x385320,_0xfe10c4)=>{const _0x41aa6b=Array['from'](_0xfe10c4)['map'](_0xbf5f8c=>this['_viewToController']['get'](_0xbf5f8c['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x41aa6b?_0x41aa6b['model']:null;});}set['adapter'](_0x4362c2){if(this['_adapter'])throw new _0x13348f('commentsrepository-adapter-already-set');this['_adapter']=_0x4362c2;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x37d2cb=_t,threadId:_0x6eba2=_0x4552d2(),comments:_0x398932=[],unlinkedAt:_0x56c4f1=null,resolvedAt:_0x1207f3=null,resolvedBy:_0x171f20=null,target:_0x36127b=null,context:_0x27962f=null,attributes:_0x1f6c5b={},isResolvable:_0x476cf5=!0x0,isSubmitted:_0x5d7280=!0x1,isFromAdapter:_0x1083aa=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x37d2cb),{'channelId':_0x37d2cb,'threadId':_0x6eba2,'comments':_0x398932,'unlinkedAt':_0x56c4f1,'resolvedAt':_0x1207f3,'resolvedBy':_0x171f20,'target':_0x36127b,'context':_0x27962f,'attributes':_0x1f6c5b,'isFromAdapter':_0x1083aa,'isResolvable':_0x476cf5,'isSubmitted':_0x5d7280}),this['getCommentThread'](_0x6eba2);}['openNewCommentThread']({channelId:_0x4f6a97=_t,threadId:_0x344377=_0x4552d2(),target:_0x281a0e,context:_0x358e3a=null,isResolvable:_0x2a5ebd=!0x0}){if(this['_readOnlyChannels']['has'](_0x4f6a97)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x281a0e)throw new _0x13348f('commentsrepository-missing-target');const _0x2e0883=this['addCommentThread']({'channelId':_0x4f6a97,'threadId':_0x344377,'target':_0x281a0e,'context':_0x358e3a,'isResolvable':_0x2a5ebd});if(!_0x2e0883)return null;const _0x3bf195=this['_threadToController']['get'](_0x2e0883),_0x5cab7e=_0x3bf195['view']['commentThreadInputView']['commentInputView'],_0x315967=this['context']['plugins']['get'](y),_0x41d18b=_0x315967['getByInnerView'](_0x3bf195['view']);return _0x315967['activate'](_0x41d18b),_0x5cab7e['once']('editorReady',()=>_0x5cab7e['focus']()),_0x2e0883;}['hasCommentThread'](_0x591c5b){if('string'!=typeof _0x591c5b)throw new _0x13348f('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x591c5b);}['updateCommentThread']({channelId:_0x381326=_t,threadId:_0x51c457,context:_0x584a99,unlinkedAt:_0x5ef751,attributes:_0x588142,isFromAdapter:_0x36d1a3=!0x1}){return this['fire'](Nt('updateCommentThread',_0x381326),{'channelId':_0x381326,'threadId':_0x51c457,'context':_0x584a99,'unlinkedAt':_0x5ef751,'attributes':_0x588142,'isFromAdapter':_0x36d1a3}),this['getCommentThread'](_0x51c457);}['getCommentThread'](_0x3374e){if('string'!=typeof _0x3374e)throw new _0x13348f('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x3374e);}['fetchCommentThread']({channelId:_0x511836,threadId:_0x7e92c8}={}){const _0xc12cb6=this['getCommentThread'](_0x7e92c8);if(_0xc12cb6)return Promise['resolve'](_0xc12cb6);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x13348f('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x511836,'threadId':_0x7e92c8})['then'](_0x1bf6fe=>this['hasCommentThread'](_0x7e92c8)?this['getCommentThread'](_0x7e92c8):_0x1bf6fe?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x511836},_0x1bf6fe)):void 0x0)['catch'](_0x490828=>{throw console['error'](_0x490828),new _0x13348f('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4dea8c,skipNotAttached:_0x512007=!0x1,skipEmpty:_0x51bfd1=!0x1,toJSON:_0x185267=!0x1}={}){const _0x162034=[];for(const _0x450f25 of this['_threads']['values']())_0x4dea8c&&_0x450f25['channelId']!==_0x4dea8c||_0x512007&&!_0x450f25['isAttached']||_0x51bfd1&&0x0===_0x450f25['length']||_0x162034['push'](_0x450f25);return _0x185267?_0x162034['map'](_0x48912f=>_0x48912f['toJSON']()):_0x162034;}['getAnnotationForCommentThread'](_0x5b634f){const _0x6a2fc6=this['_threadToController']['get'](_0x5b634f);if(!_0x6a2fc6)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x6a2fc6['view'])||null;}['getCommentThreadForAnnotation'](_0xeb7a8){const _0x1abf10=this['_viewToController']['get'](_0xeb7a8['innerView']);return _0x1abf10?_0x1abf10['model']:null;}['setActiveCommentThread'](_0x3f88b2){const _0x407ae6=this['context']['plugins']['get'](y);if(!_0x3f88b2)return void(this['activeCommentThread']&&_0x407ae6['deactivateAll']());const _0x153c52=this['getCommentThread'](_0x3f88b2);if(!_0x153c52)throw new _0x13348f('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3f88b2});if(!this['_threadToController']['has'](_0x153c52))throw new _0x13348f('commentsrepository-active-not-attached',null,{'threadId':_0x3f88b2});const _0x595354=_0x407ae6['getByInnerView'](this['_threadToController']['get'](_0x153c52)['view']);_0x407ae6['activate'](_0x595354);}['switchReadOnly'](_0x2a2ad5,_0x2bd910){_0x2a2ad5?this['_readOnlyChannels']['add'](_0x2bd910):this['_readOnlyChannels']['delete'](_0x2bd910),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0xe29f60){return this['_readOnlyChannels']['has'](_0xe29f60)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x3020e8,_0x11d1a6){return new vt(_0x3020e8,_0x11d1a6);}['setPermissions'](_0x196f5e,_0x1c8a17=_t){this['_permissions']['set'](_0x1c8a17,_0x196f5e),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4155f9=_t){return this['_permissions']['has'](_0x4155f9)?this['_permissions']['get'](_0x4155f9):bt;}['_addCommentThread']({channelId:_0x3b91a1,threadId:_0x549d60,comments:_0xa387c4,unlinkedAt:_0x47f42e,resolvedAt:_0x3ba9d2,resolvedBy:_0x15e6db,target:_0x5632bc,context:_0x3e6b77,attributes:_0x4238d3,isFromAdapter:_0xdb96f,isResolvable:_0x592baa,isSubmitted:_0x25deea}){if('string'!=typeof _0x549d60)throw new _0x13348f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x549d60});if(this['hasCommentThread'](_0x549d60))throw new _0x13348f('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x549d60});const _0x16675e=new pi(this,{'channelId':_0x3b91a1,'id':_0x549d60,'context':_0x3e6b77,'attributes':_0x4238d3,'unlinkedAt':_0x47f42e,'resolvedAt':_0x3ba9d2,'resolvedBy':_0x15e6db?this['context']['plugins']['get'](it)['getUser'](_0x15e6db):null,'isResolvable':_0x592baa,'isSubmitted':_0x25deea||_0xdb96f});this['_threads']['set'](_0x549d60,_0x16675e);for(const _0x1d5b15 of _0xa387c4)_0x16675e['_add'](this['_createNewComment']({'threadId':_0x549d60,..._0x1d5b15}));return _0x5632bc&&_0x16675e['attachTo'](_0x5632bc),_0xdb96f||!_0x16675e['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3b91a1,'threadId':_0x549d60});}['_submitCommentThread']({channelId:_0x2320c3,threadId:_0x1e7abd}){if(!this['hasCommentThread'](_0x1e7abd))throw new _0x13348f('commentsrepository-missing-comment-thread',this);const _0x5ecee2=this['getCommentThread'](_0x1e7abd);if(_0x5ecee2['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x4aaaa5,comments:_0x52a836,resolvedAt:_0xc0f917,resolvedBy:_0x30b7cc,context:_0x5de80e,attributes:_0x162ce0}=_0x5ecee2,_0x286813=this['context']['plugins']['get']('PendingActions'),_0x1af846=_0x286813['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x2320c3,'threadId':_0x4aaaa5,'comments':_0x52a836['map'](_0x1582c0=>_0x1582c0['toJSON']()),'resolvedAt':_0xc0f917,'resolvedBy':_0x30b7cc?_0x30b7cc['id']:_0x30b7cc,'context':_0x5de80e,'attributes':_0x162ce0})['then'](({comments:_0x339582})=>{_0x286813['remove'](_0x1af846);for(const _0x579533 of _0x339582)this['_updateComment']({'channelId':_0x2320c3,'threadId':_0x1e7abd,'commentId':_0x579533['commentId'],'createdAt':_0x579533['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2e37cf=>{throw console['error'](_0x2e37cf),new _0x13348f('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x419614,target:_0xe40597}){const _0x213a1b=this['getCommentThread'](_0x419614);if(!_0x213a1b)throw new _0x13348f('commentsrepository-attach-missing-comment-thread',this);const _0x3ae6c4=this['context']['plugins']['get']('PendingActions'),_0x2fff05=this['context']['plugins']['get'](y),_0x3a9068=this['_createCommentThreadView'](_0x213a1b),_0x39bfbd=new vt(_0x213a1b,_0x3a9068);let _0x2d8fbf=null;_0x3a9068['on']('change:isDirty',(_0x4442cd,_0x5687e7,_0x6d9bb2)=>{_0x6d9bb2?_0x2d8fbf=_0x3ae6c4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x2d8fbf&&(_0x3ae6c4['remove'](_0x2d8fbf),_0x2d8fbf=null);}),this['_threadToController']['set'](_0x213a1b,_0x39bfbd),this['_viewToController']['set'](_0x3a9068,_0x39bfbd);const _0x289881=new E(this['context']['locale'],_0x3a9068);_0x289881['bind']('length')['to'](_0x3a9068),_0x289881['bind']('isDirty')['to'](_0x3a9068,'isDirty',_0x3a9068,'length',(_0x3e9702,_0x3158b3)=>_0x3e9702||!_0x3158b3),_0x289881['bind']('isActive')['to'](_0x3a9068),_0x289881['type']='comment';const _0x3b4657=new T({'view':_0x289881,'target':_0xe40597,'type':'comment','isVisible':!_0x213a1b['archivedAt']&&!!('function'==typeof _0xe40597?_0xe40597():_0xe40597)});return _0x3a9068['on']('escape',()=>{_0x3b4657['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3a9068,_0x3b4657),_0x2fff05['add'](_0x3b4657),_0x3b4657;}['_bindAnnotationToEditors'](_0x45f027,_0x52c227){this['listenTo'](_0x45f027,'editorReady',(_0x3e75cd,_0x46bf50)=>{const _0x29fce9=_0x46bf50['ui']['view']['body']['bodyCollectionContainer'];_0x52c227['focusableElements']['add'](_0x29fce9),this['context']instanceof _0x1db22d&&this['context']['ui']['focusTracker']['add'](_0x29fce9);},{'priority':'highest'}),this['listenTo'](_0x45f027,'editorDestroyed',(_0x3e0d8b,_0x241d5b)=>{const _0x2f29f1=_0x241d5b['ui']['view']['body']['bodyCollectionContainer'];_0x52c227['focusableElements']['has'](_0x2f29f1)&&_0x52c227['focusableElements']['remove'](_0x2f29f1),this['context']instanceof _0x1db22d&&this['context']['ui']['focusTracker']['remove'](_0x2f29f1);});}['_unbindEditors'](_0xb70c4e){this['stopListening'](_0xb70c4e,'editorReady'),this['stopListening'](_0xb70c4e,'editorDestroyed');}['_createCommentThreadView'](_0x2e3a89){const _0x2096d5=this['context']['plugins']['get'](it),{config:_0x321249,locale:_0xd086ce}=this['context'],_0x2d9ae7=pt(_0x321249['get']('locale'),_0xd086ce);return new(0x0,(_0x321249['get']('comments'))['CommentThreadView'])(_0xd086ce,_0x2e3a89,_0x2096d5['me'],{'editorConfig':{..._0x321249['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x321249['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x321249['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x321249['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x321249['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d9ae7,'CommentView':_0x321249['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x29bed3,channelId:_0x55de9a,resolvedAt:_0x194cf9,resolvedBy:_0x165f51,isFromAdapter:_0x5c52b6}){if(!this['hasCommentThread'](_0x29bed3))throw new _0x13348f('commentsrepository-missing-comment-thread',null,{'threadId':_0x29bed3});const _0x26e338=this['getCommentThread'](_0x29bed3);if(_0x26e338['isResolved'])throw new _0x13348f('commentsrepository-resolved-comment-thread',null,{'threadId':_0x29bed3});const _0x2c1e3f=this['context']['plugins']['get'](it);if(_0x26e338['resolvedBy']=_0x2c1e3f['getUser'](_0x165f51),_0x26e338['resolvedAt']=_0x194cf9,_0x5c52b6||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x193804=this['context']['plugins']['get']('PendingActions'),_0x4821ba=_0x193804['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x55de9a,'threadId':_0x29bed3})['then'](({resolvedAt:_0x300a2a,resolvedBy:_0x1753d6})=>{_0x193804['remove'](_0x4821ba),_0x26e338['resolvedBy']['id']!==_0x1753d6&&(_0x26e338['resolvedBy']=_0x2c1e3f['getUser'](_0x1753d6)),_0x26e338['resolvedAt']=_0x300a2a;})['catch'](_0x1f1b32=>{throw console['error'](_0x1f1b32),new _0x13348f('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0xfff1a4,channelId:_0x5a7aef,isFromAdapter:_0x5eaa15}){if(!this['hasCommentThread'](_0xfff1a4))throw new _0x13348f('commentsrepository-missing-comment-thread',null,{'threadId':_0xfff1a4});const _0x2e5759=this['getCommentThread'](_0xfff1a4);if(!_0x2e5759['isResolved'])throw new _0x13348f('commentsrepository-reopen-comment-thread',null,{'threadId':_0xfff1a4});if(_0x2e5759['resolvedBy']=null,_0x2e5759['resolvedAt']=null,_0x5eaa15||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5a34a8=this['context']['plugins']['get']('PendingActions'),_0x4ebb74=_0x5a34a8['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5a7aef,'threadId':_0xfff1a4})['then'](()=>_0x5a34a8['remove'](_0x4ebb74))['catch'](_0x3268bc=>{throw console['error'](_0x3268bc),new _0x13348f('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x1ec64d,isFromAdapter:_0x5a5ed7}){const _0x3695aa=this['getCommentThread'](_0x1ec64d);if(!_0x3695aa)throw new _0x13348f('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x1ec64d),this['_threads']['delete'](_0x1ec64d),!_0x3695aa['isSubmitted']||_0x5a5ed7||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x34161f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3e7e8b}=_0x3695aa,_0xc8b881=_0x34161f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3e7e8b,'threadId':_0x1ec64d})['then'](()=>_0x34161f['remove'](_0xc8b881))['catch'](_0x4951f9=>{throw console['error'](_0x4951f9),new _0x13348f('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x29e4a3,unlinkedAt:_0x13fce5,context:_0x31048c,attributes:_0x585aa1,isFromAdapter:_0x3b743d}){if('string'!=typeof _0x29e4a3)throw new _0x13348f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x29e4a3});if(!this['hasCommentThread'](_0x29e4a3))throw new _0x13348f('commentsrepository-missing-comment-thread',null,{'threadId':_0x29e4a3});const _0x3ac745=this['getCommentThread'](_0x29e4a3);let _0x5360f0=!0x1;if(void 0x0!==_0x31048c&&_0x3ac745['context']!==_0x31048c&&(_0x3ac745['context']=_0x31048c,_0x5360f0=!0x0),void 0x0!==_0x13fce5&&_0x3ac745['unlinkedAt']!==_0x13fce5&&(_0x3ac745['unlinkedAt']=_0x13fce5,_0x5360f0=!0x0),_0x585aa1&&!At(_0x585aa1,_0x3ac745['attributes'])&&(_0x3ac745['attributes']=_0x585aa1,_0x5360f0=!0x0),!_0x5360f0)return Promise['resolve']();if(!_0x3ac745['isSubmitted']||_0x3b743d||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0xfc9c6c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x487a3c}=_0x3ac745,_0x3dbe2c=_0xfc9c6c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x487a3c,'threadId':_0x29e4a3,'context':_0x31048c,'unlinkedAt':_0x13fce5,'attributes':_0x585aa1})['then'](()=>_0xfc9c6c['remove'](_0x3dbe2c))['catch'](_0x344588=>{throw console['error'](_0x344588),new _0x13348f('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x4956fe){const _0x3459ea=this['context']['plugins']['get'](y),_0x2517bc=this['getCommentThread'](_0x4956fe);if(_0x2517bc['_isAttached']=!0x1,this['_threadToController']['has'](_0x2517bc)){const _0x453c4b=this['_threadToController']['get'](_0x2517bc),_0x5e7cc1=_0x453c4b['view'],_0x2cb8ce=_0x3459ea['getByInnerView'](_0x5e7cc1);this['_threadToController']['delete'](_0x2517bc),this['_viewToController']['delete'](_0x5e7cc1),_0x2cb8ce&&_0x3459ea['remove'](_0x2cb8ce),_0x453c4b['destroy'](),_0x5e7cc1['destroy']()['then'](()=>{this['_unbindEditors'](_0x5e7cc1);});}}['_updateActiveAnnotation']({threadId:_0x136789,resolvedAt:_0x197fd4,unlinkedAt:_0x115dd8}){const _0x4ab147=!!_0x197fd4,_0x1baf60=this['context']['plugins']['get'](y),_0x1ca8d1=this['getCommentThread'](_0x136789);if(this['_threadToController']['has'](_0x1ca8d1)){const _0x559a89=this['_threadToController']['get'](_0x1ca8d1)['view'],_0x1e4a08=_0x1baf60['getByInnerView'](_0x559a89);_0x1e4a08&&(_0x4ab147&&_0x1baf60['_removeActiveAnnotation'](_0x1e4a08),_0x115dd8?_0x1e4a08['isVisible']=!0x1:_0x1e4a08['refreshVisibility']());}}['_getExternalAuthor'](_0x1269f2){const _0x1fb3c5=this['context']['plugins']['get'](it),_0x4236a8=It('external:'+_0x1269f2),_0x2224dd=_0x1fb3c5['getUser'](_0x4236a8);return _0x2224dd||_0x1fb3c5['addUser']({'id':_0x4236a8,'name':_0x1269f2});}['_createNewComment']({threadId:_0x4243d9,commentId:_0x57ca8d=_0x4552d2(),content:_0x20c85a,authorId:_0x5f0e4e,createdAt:_0x446d94,attributes:_0x589029}){if('string'!=typeof _0x57ca8d)throw new _0x13348f('commentsrepository-invalid-commentid');if('string'!=typeof _0x5f0e4e)throw new _0x13348f('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x20c85a||!_0x20c85a['trim']())throw new _0x13348f('commentsrepository-invalid-comment-content');const _0x2bd760=this['context']['plugins']['get'](it)['getUser'](_0x5f0e4e);if(!_0x2bd760)throw new _0x13348f('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x5f0e4e});let _0x576437=null,_0x32633c=_0x446d94;return _0x589029?.['@external']&&(_0x576437=this['_getExternalAuthor'](_0x589029['@external']['authorName']),_0x32633c=new Date(_0x589029['@external']['createdAt'])),new wi(this,{'threadId':_0x4243d9,'id':_0x57ca8d,'author':_0x576437||_0x2bd760,'creator':_0x2bd760,'content':_0x20c85a,'createdAt':_0x446d94,'authoredAt':_0x32633c,'attributes':_0x589029});}['_addComment'](_0x181568){let {threadId:_0x13f092,content:_0x17e786,attributes:_0x3d3573,isFromAdapter:_0x2c0610}=_0x181568;const _0x33b547=this['getCommentThread'](_0x181568['threadId']);if(!_0x33b547)throw new _0x13348f('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x51aa1c=this['_createNewComment'](_0x181568),{id:_0x60dffc}=_0x51aa1c;if(_0x33b547['_add'](_0x51aa1c),_0x2c0610||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x33b547['isSubmitted'])return Promise['resolve']();const _0x567cb5=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2c1823}=_0x33b547,_0x14ac08=_0x567cb5['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3d3573||(_0x3d3573={}),this['adapter']['addComment']({'channelId':_0x2c1823,'threadId':_0x13f092,'commentId':_0x60dffc,'content':_0x17e786,'attributes':_0x3d3573})['then'](_0x2e9920=>{_0x567cb5['remove'](_0x14ac08),_0x2e9920&&this['_updateComment']({'channelId':_0x2c1823,'threadId':_0x13f092,'commentId':_0x60dffc,'createdAt':_0x2e9920['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x48f242=>{throw console['error'](_0x48f242),new _0x13348f('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x2d1827,commentId:_0xd5f60c,content:_0x3f6d1f,createdAt:_0x52b053,attributes:_0x2e4d0c,isFromAdapter:_0x9dc651}){if(void 0x0!==_0x3f6d1f&&('string'!=typeof _0x3f6d1f||!_0x3f6d1f['trim']()['length']))throw new _0x13348f('commentsrepository-update-comment-invalid-content');const _0x22b9f6=this['getCommentThread'](_0x2d1827),_0x449963=_0x22b9f6['getComment'](_0xd5f60c);if(!_0x449963)throw new _0x13348f('commentsrepository-update-missing-comment',this);let _0x40993b=!0x1;if(_0x3f6d1f&&_0x3f6d1f!==_0x449963['content']&&(_0x449963['isEditable']||_0x9dc651)&&(_0x449963['content']=_0x3f6d1f,_0x40993b=!0x0),_0x52b053&&_0x52b053!==_0x449963['createdAt']&&(_0x449963['createdAt']=_0x52b053,_0x449963['attributes']&&_0x449963['attributes']['@external']||(_0x449963['authoredAt']=_0x52b053),_0x40993b=!0x0),_0x2e4d0c&&!At(_0x2e4d0c,_0x449963['attributes'])&&(_0x449963['attributes']=_0x2e4d0c,_0x40993b=!0x0),!_0x40993b)return Promise['resolve']();if(_0x22b9f6['fire']('commentUpdated'),_0x9dc651||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x5a3610=this['context']['plugins']['get']('PendingActions'),{channelId:_0x54ad07}=this['getCommentThread'](_0x449963['threadId']),_0x38c175=_0x5a3610['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x54ad07,'threadId':_0x2d1827,'commentId':_0xd5f60c,'content':_0x3f6d1f,'attributes':_0x2e4d0c})['then'](()=>_0x5a3610['remove'](_0x38c175))['catch'](_0x4d2774=>{throw console['error'](_0x4d2774),new _0x13348f('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x552464,commentId:_0xd4065,isFromAdapter:_0x3d32e7}){const _0x169937=this['getCommentThread'](_0x552464),_0xcdbe6a=_0x169937['getComment'](_0xd4065);if(!_0xcdbe6a)throw new _0x13348f('commentsrepository-remove-missing-comment',this);if(_0x169937['_remove'](_0xcdbe6a),_0x3d32e7||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4b43b3=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5f560c}=_0x169937,_0x75cdeb=_0x4b43b3['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x5f560c,'threadId':_0x552464,'commentId':_0xd4065})['then'](()=>_0x4b43b3['remove'](_0x75cdeb))['catch'](_0x3106f2=>{throw console['error'](_0x3106f2),new _0x13348f('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x1201c1(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x23b763,_0x90b47c){super();const _0x2280c6=_0x90b47c['isResolvable'];this['channelId']=_0x90b47c['channelId'],this['id']=_0x90b47c['id'],this['comments']=new _0x7eb5c5(),this['_repository']=_0x23b763,this['_isAttached']=!0x1,this['_isSubmitted']=_0x90b47c['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x23b763,'_permissions',_0x23b763,'_readOnlyChannels',()=>_0x23b763['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x23b763,'_permissions',()=>_0x23b763['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x23b763,'_permissions',()=>{const _0x44f0b1=_0x23b763['getPermissions'](this['channelId']);return _0x44f0b1['write']||_0x44f0b1['admin'];}),this['bind']('isResolvable')['to'](_0x23b763,'_permissions',()=>_0x2280c6&&_0x23b763['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x90b47c['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x7388eb,_0x461edb)=>_0x7388eb?_0x461edb?_0x7388eb<_0x461edb?_0x7388eb:_0x461edb:_0x7388eb:_0x461edb),this['set']('unlinkedAt',_0x90b47c['unlinkedAt']||null),this['set']('resolvedAt',_0x90b47c['resolvedAt']||null),this['set']('resolvedBy',_0x90b47c['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0xb18084=>!!_0xb18084),this['set']('attributes',_0x90b47c['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x1fe00d,_0x1906f4)=>_0x1fe00d+_0x1906f4['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0xe2462e,id:_0x3f8ec4}=this;this['_repository']['fire'](Nt('submitCommentThread',_0xe2462e),{'channelId':_0xe2462e,'threadId':_0x3f8ec4});}['setUnlinkedAt'](_0x4080d1){this['_update']({'unlinkedAt':_0x4080d1});}['resolve']({resolvedAt:_0x18bb37=new Date(),resolvedBy:_0x50f503='',isFromAdapter:_0x18358f=!0x1}={}){const _0x3caca4=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x141878,id:_0x551e32}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x141878),{'channelId':_0x141878,'threadId':_0x551e32,'resolvedAt':_0x18bb37,'resolvedBy':_0x50f503||_0x3caca4['id'],'isFromAdapter':_0x18358f});}['reopen']({isFromAdapter:_0x16349c=!0x1}={}){const {channelId:_0x4d243c,id:_0x5f2447}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x4d243c),{'channelId':_0x4d243c,'threadId':_0x5f2447,'isFromAdapter':_0x16349c});}['setContext'](_0x1ee47c){this['context']||this['_update']({'context':_0x1ee47c});}['setAttribute'](_0x11858c,_0x58ff99){const _0x12ee2f=wt(this['attributes']);yt(_0x12ee2f,_0x11858c,_0x58ff99),this['_update']({'attributes':_0x12ee2f});}['removeAttribute'](_0x5ad3d0){const _0xfcff50=wt(this['attributes']);Ct(_0xfcff50,_0x5ad3d0),this['_update']({'attributes':_0xfcff50});}['remove']({isFromAdapter:_0x4755ec=!0x1}={}){const {channelId:_0x511ef2,id:_0x5b25d4}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x511ef2),{'channelId':_0x511ef2,'threadId':_0x5b25d4,'isFromAdapter':_0x4755ec});}['attachTo'](_0x11eedb){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x11eedb});}['addComment'](_0x45dd34){const {channelId:_0x181447,id:_0x26a89e}=this;this['_repository']['fire'](Nt('addComment',_0x181447,_0x26a89e),Object['assign']({'channelId':_0x181447,'threadId':_0x26a89e},_0x45dd34));}['getComment'](_0x17209a){if('string'!=typeof _0x17209a)throw new _0x13348f('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x17209a});return this['comments']['get'](_0x17209a);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x40cfd9=>_0x40cfd9['toJSON']()),'attributes':this['attributes']};}['_add'](_0x259aa7){return this['listenTo'](_0x259aa7,'change:authoredAt',()=>{const _0x5fc72b=this['_findOptimalIndex'](_0x259aa7),_0x5a1e44=this['comments'];_0x5fc72b-0x1!=_0x5a1e44['getIndex'](_0x259aa7)&&_0x5fc72b+0x1!=_0x5a1e44['getIndex'](_0x259aa7)&&(this['_remove'](_0x259aa7),this['_add'](_0x259aa7));}),this['comments']['add'](_0x259aa7,this['_findOptimalIndex'](_0x259aa7));}['_update'](_0x3e1a37){const {channelId:_0x100648,id:_0x5bd9c6}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x100648),{..._0x3e1a37,'channelId':_0x100648,'threadId':_0x5bd9c6});}['_remove'](_0x714225){return this['stopListening'](_0x714225),_0x714225['destroy'](),this['comments']['remove'](_0x714225);}['_findOptimalIndex'](_0xadef27){const _0x18747a=this['comments']['find'](_0x4dbbd2=>new Date(_0x4dbbd2['authoredAt'])['getTime']()>new Date(_0xadef27['authoredAt'])['getTime']());return _0x18747a?this['comments']['getIndex'](_0x18747a):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x1201c1(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x263aa7,_0x19b8be){super();const _0x13d077=_0x263aa7['context']['plugins']['get'](it)['me'],_0xc714f7=_0x263aa7['getCommentThread'](_0x19b8be['threadId']),_0x29c285=0x0===_0xc714f7['comments']['length'],_0x2770b6=_0x13d077===_0x19b8be['author'];this['id']=_0x19b8be['id'],this['threadId']=_0x19b8be['threadId'],this['author']=_0x19b8be['author'],this['creator']=_0x19b8be['creator'],this['isExternal']=Boolean(_0x19b8be['attributes']&&_0x19b8be['attributes']['@external']),this['set']('content',_0x19b8be['content']),this['createdAt']=_0x19b8be['createdAt']||new Date(),this['set']('authoredAt',_0x19b8be['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0xc714f7,'resolvedAt'),this['set']('attributes',_0x19b8be['attributes']||{}),this['bind']('isEditable')['to'](_0x263aa7,'_permissions',()=>{const _0x3aea68=_0x263aa7['getPermissions'](_0xc714f7['channelId'])['write'],_0x10b6a5=_0x263aa7['getPermissions'](_0xc714f7['channelId'])['modifyAll'];return _0x2770b6&&_0x3aea68||!_0x2770b6&&_0x10b6a5;}),this['bind']('isRemovable')['to'](_0xc714f7,'isRemovable',_0x263aa7,'_permissions',_0x2f2fd2=>{const _0x3d7516=_0x263aa7['getPermissions'](_0xc714f7['channelId'])['write'],_0x12caa5=_0x263aa7['getPermissions'](_0xc714f7['channelId'])['modifyAll'];return _0x2770b6&&_0x3d7516||_0x2f2fd2&&_0x29c285||!_0x2770b6&&_0x12caa5&&!_0x29c285;}),this['bind']('isReadOnly')['to'](_0xc714f7,'isReadOnly'),this['_repository']=_0x263aa7;}get['weight'](){return Math['max'](function(_0x279f58){const _0x228601=document['createElement']('div');return _0x228601['innerHTML']=_0x279f58,_0x228601['textContent']['length'];}(this['content']),0xc8);}['update'](_0x15c5b3){const {threadId:_0x536f24,id:_0x29bfb0}=this;if(!this['_repository']['hasCommentThread'](_0x536f24))throw new _0x13348f('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4bdeaf}=this['_repository']['getCommentThread'](_0x536f24);this['_repository']['fire'](Nt('updateComment',_0x4bdeaf,_0x536f24),{'channelId':_0x4bdeaf,'threadId':_0x536f24,'commentId':_0x29bfb0,..._0x15c5b3});}['setAttribute'](_0x16b141,_0x5a614a){const _0xcd7acf=wt(this['attributes']);yt(_0xcd7acf,_0x16b141,_0x5a614a),this['update']({'attributes':_0xcd7acf});}['removeAttribute'](_0x211f67){const _0x18732e=wt(this['attributes']);Ct(_0x18732e,_0x211f67),this['update']({'attributes':_0x18732e});}['remove'](_0x11b71b={}){if(!_0x11b71b['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x34e654,id:_0x38aad2}=this;if(!this['_repository']['hasCommentThread'](_0x34e654))throw new _0x13348f('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x169283}=this['_repository']['getCommentThread'](_0x34e654);this['_repository']['fire'](Nt('removeComment',_0x169283,_0x34e654),{'channelId':_0x169283,'threadId':_0x34e654,'commentId':_0x38aad2,..._0x11b71b});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x1c3d70,..._0x2ce2cd){for(const _0x251b2a of _0x2ce2cd)void 0x0!==_0x251b2a&&(_0x1c3d70+=':'+String(_0x251b2a));return _0x1c3d70;}class ot extends _0x2473d2{constructor(_0x11ec34){super(_0x11ec34),this['set']('hasContent',!0x1);}['refresh'](){const _0x5b9247=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x2219a7 of _0x5b9247['getRanges']())if(this['_hasContent'](_0x2219a7))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x27e3a0=_0x4552d2(),ranges:_0x398603,comment:_0xd7c92a}={}){const _0x19be78=this['editor']['model'],_0x51a5c5=_0x398603??Array['from'](_0x19be78['document']['selection']['getRanges']()),_0x3f022d=[];for(const _0x4d7999 of _0x51a5c5)this['_hasContent'](_0x4d7999)&&_0x3f022d['push'](this['_trimToContent'](_0x4d7999));if(!_0x3f022d['length'])throw new _0x13348f('addcommentthreadcommand-incorrect-ranges',null);_0xd7c92a&&this['_createCommentThread'](_0x27e3a0,_0xd7c92a),this['_createMarkersFromRanges'](_0x27e3a0,_0x3f022d,!!_0xd7c92a);}['_createMarkersFromRanges'](_0x23db8f,_0x3ce6ad,_0x588ba5){this['editor']['model']['change'](_0x429ecd=>{for(const _0x3b2e2d of _0x3ce6ad){const _0x5048a5=_0x4552d2()['substr'](0x1,0x5),_0x2eb9c4='comment:'+_0x23db8f+':'+_0x5048a5;_0x429ecd['addMarker'](_0x2eb9c4,{'range':_0x3b2e2d,'usingOperation':_0x588ba5,'affectsData':_0x588ba5});}});}['_createCommentThread'](_0x5e0df7,_0x1470f2){const _0x568bd8=this['editor']['plugins']['get']('CommentsRepository'),_0x21bc7c=this['editor']['config']['get']('collaboration.channelId'),_0x1eed81=this['editor']['plugins']['get']('Users')['me'];if(!_0x1eed81)throw new _0x13348f('addcommentthreadcommand-user-not-found',null);_0x568bd8['addCommentThread']({'threadId':_0x5e0df7,'channelId':_0x21bc7c,'comments':[{'authorId':_0x1eed81['id'],'content':_0x1470f2,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x6c10ca){for(const _0x409e3d of _0x6c10ca['getItems']())if(this['_itemIsContent'](_0x409e3d))return!0x0;return!0x1;}['_itemIsContent'](_0x4c904d){return _0x4c904d['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4c904d)&&!_0x4c904d['is']('element','tableCell');}['_trimToContent'](_0x331eb4){const _0x1e5e7b=_0x2da737=>!this['_itemIsContent'](_0x2da737['item']),_0x17c48e=_0x331eb4['start']['getLastMatchingPosition'](_0x1e5e7b),_0xd6cda8=_0x331eb4['end']['getLastMatchingPosition'](_0x1e5e7b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x17c48e,_0xd6cda8);}}class b extends _0x4e6af8{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd316a8){super(_0xd316a8),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4ce230=this['editor'],_0x4367b0=_0x4ce230['model']['document']['selection'],_0x26fef9=_0x5d3d29(()=>this['refreshSelectedViews'](),0xa);_0x4367b0['on']('change:range',(_0x58b193,_0x300481)=>{_0x300481['directChange']&&(_0x26fef9['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x4ce230['editing']['view']['document'],'change:isFocused',(_0x5c484f,_0x1fba97,_0x47f824)=>{_0x47f824&&_0x26fef9();}),this['listenTo'](_0x4ce230['ui']['focusTracker'],'change:isFocused',(_0x1d7e32,_0x510ea9,_0x265a1e)=>{_0x265a1e||this['fire']('blur',{'isAnnotationTracked':_0x2eade0=>this['_editorAnnotationsData']['has'](_0x2eade0['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x421661){if(this['_editorAnnotations']['has'](_0x421661['view']))return;this['_editorAnnotations']['add'](_0x421661['view']),this['editor']['ui']['focusTracker']['add'](_0x421661['view']['element']);const _0x2753ec=this['editor']['plugins']['get'](y);this['listenTo'](_0x2753ec['collection'],'remove',(_0x19aa98,_0x16efb9)=>{this['editor']['ui']['focusTracker']['remove'](_0x16efb9['view']['element']),this['_editorAnnotations']['delete'](_0x16efb9['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x11070e){if('function'!=typeof _0x11070e)throw new _0x13348f('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x11070e);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x58cf99,annotations:_0x3f208d}){const _0x2bed0c=[],_0xf5cff5=this['editor']['model']['document']['selection'],_0x3ff78e=Array['from'](_0xf5cff5['getRanges']());for(const [_0x22065e,_0x1ba3b1]of this['_editorAnnotationsData']){const _0x531cca=_0x4138a2(_0x1ba3b1),_0x50f50c=_0x3f208d['getByInnerView'](_0x22065e);_0x531cca&&_0x50f50c&&_0x2bed0c['push']({'annotation':_0x50f50c,'range':_0x531cca});}function _0x4138a2(_0x35e9e5){for(const _0x5ef173 of _0x35e9e5)for(const _0xe61484 of _0x3ff78e)if(_0x5ef173['containsRange'](_0xe61484,!_0xf5cff5['isCollapsed']))return _0x5ef173;return null;}return _0x2bed0c['sort']((_0xdc3bc2,_0x294d1f)=>{const _0x459685=_0xdc3bc2['range'],_0x405071=_0x294d1f['range'];if(!_0x459685['isEqual'](_0x405071)){if(_0x459685['containsRange'](_0x405071,!0x0))return 0x1;if(_0x405071['containsRange'](_0x459685,!0x0))return-0x1;}return _0xdc3bc2['annotation']==_0x58cf99?-0x1:_0x294d1f['annotation']==_0x58cf99?0x1:0x0;})['map'](_0x21200c=>_0x21200c['annotation']);}get['_editorAnnotationsData'](){const _0x1954ff=new Map();for(const _0x5df383 of Array['from'](this['_dataCollectors']))for(const [_0x24e680,_0x3f9b3e]of _0x5df383())_0x1954ff['set'](_0x24e680,_0x3f9b3e);return _0x1954ff;}}class st extends _0x4e6af8{['afterInit'](){const _0x35ce18=this['editor'];if(!_0x35ce18['plugins']['has']('RestrictedEditingModeEditing'))return;_0x35ce18['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x4e6af8{constructor(_0x1158d8){super(_0x1158d8),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x11ef48=this['editor'],_0x3a19ef=_0x11ef48['commands']['get']('importWord'),_0x41e1ed=_0x11ef48['plugins']['get'](it);_0x3a19ef&&(_0x3a19ef['on']('execute',(_0x83bfad,[,_0x414e5f])=>{_0x414e5f['collaboration_features']={'comments':!0x0,'user_id':_0x41e1ed['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3a19ef,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5446d5,_0x5cd6ec){const {comment_threads:_0xafa0d8}=_0x5cd6ec;_0xafa0d8&&_0xafa0d8['forEach'](({thread_id:_0x100bfc,comments:_0x2f2afb,is_resolved:_0x3cc749})=>{const _0x672c17=new Date(),_0x10ac8b=_0x2f2afb['map'](({author:_0x199923,content:_0x6ba265,created_at:_0x7421ef})=>({'content':_0x6ba265,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x672c17,'attributes':{'@external':{'authorName':_0x199923,'createdAt':_0x7421ef?new Date(_0x7421ef):new Date(),'source':'importWord'}}})),_0x3731d7=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3731d7,'threadId':_0x100bfc,'comments':_0x10ac8b,'resolvedAt':_0x3cc749?_0x672c17:null});});}}class at extends _0x4e6af8{constructor(_0x2f1ce0){super(_0x2f1ce0),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x436fce=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x436fce,'contentInsertion',(_0x59fe9c,_0x917f5d)=>this['_removeMarkersWithoutThreads'](_0x917f5d['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xcdf445){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xcdf445;const _0x1c2cbd=this['editor']['plugins']['get']('CommentsRepository');for(const _0x365956 of _0xcdf445['keys']()){const [_0x598e05,_0x410f8e]=_0x365956['split'](':');'comment'!=_0x598e05||_0x1c2cbd['hasCommentThread'](_0x410f8e)||_0xcdf445['delete'](_0x365956);}return _0xcdf445;}['_registerMarkerInClipboardPipeline'](){const _0x26eb6d=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x56257c=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x56257c&&_0x26eb6d['_registerMarkerToCopy']('comment',_0x56257c);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1a3b3a){switch(_0x1a3b3a){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2ac85e){const _0x31c21a=_0x2ac85e['split'](':');return{'group':_0x31c21a[0x0],'id':_0x31c21a[0x1],'part':_0x31c21a[0x2]};}class ut extends _0x4e6af8{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1d5099,_0x1c2f2c)=>{if(!_0x1c2f2c['options']['showCommentHighlights'])return null;if(_0x1c2f2c['options']['ignoreResolvedComments']){const {id:_0x30d49e}=ft(_0x1d5099['markerName']),_0x25f963=this['editor']['plugins']['get'](o);if(_0x25f963['getCommentThread'](_0x30d49e)?.['isResolved']&&_0x1d5099['item'])return _0x1c2f2c['consumable']['consume'](_0x1d5099['item'],'addMarker:'+_0x1d5099['markerName']),_0x1c2f2c['consumable']['consume'](_0x1d5099['item'],'removeMarker:'+_0x1d5099['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5e3b07=>{_0x5e3b07['on']('addMarker:comment',(_0x5a767c,_0x35cd2a,_0x28155b)=>{if(!_0x28155b['options']['showCommentHighlights'])return;const _0x2978a2=_0x35cd2a['item'];if(!_0x2978a2)return;const _0x28f3a8=_0x28155b['mapper']['toViewElement'](_0x2978a2);this['editor']['model']['schema']['isObject'](_0x2978a2)&&_0x28f3a8&&!_0x28f3a8['getCustomProperty']('widget')&&_0x28f3a8['is']('containerElement')&&_0x660b85(_0x28f3a8,_0x28155b['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4a5c24,{writer:_0x3879a5,options:_0xb0f25e})=>{if(!_0xb0f25e['showCommentHighlights'])return null;const _0x14872d=_0x3879a5['createContainerElement']('div'),_0x386c5a=_0x3879a5['createEmptyElement']('hr');return _0x3879a5['addClass']('ck-horizontal-line',_0x14872d),_0x3879a5['insert'](_0x3879a5['createPositionAt'](_0x14872d,0x0),_0x386c5a),_0x14872d;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x239284,{writer:_0x5535f1,options:_0x15aff5})=>{if(!_0x15aff5['showCommentHighlights'])return null;const _0x52d9bb=_0x5535f1['createContainerElement']('span'),_0x29c233=_0x5535f1['createEmptyElement']('img');return _0x5535f1['addClass']('image-inline',_0x52d9bb),_0x5535f1['insert'](_0x5535f1['createPositionAt'](_0x52d9bb,0x0),_0x29c233),_0x52d9bb;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4dcb14,{writer:_0xfe5b6,options:_0x2845d9})=>{if(_0x2845d9['showCommentHighlights'])return _0xfe5b6['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x43ae88,_0x259727,_0x430497)=>{_0x430497['options']['showCommentHighlights']&&_0x43ae88['stop']();},{'priority':'high'});}}class r extends _0x4e6af8{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe741f7){super(_0xe741f7),this['set']('isThreadsLoadingPaused',!0x0),_0xe741f7['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2e3a5a,_0x39ccc3,_0x19e54d,_0x146e6f)=>{const _0x31dea6=_0xe741f7['plugins']['get'](o),_0xde112e=_0x19e54d?ft(_0x19e54d)['id']:null;_0xe741f7['model']['change'](()=>{if(_0xde112e){const _0x240758=this['getAllMarkersForId'](_0xde112e);for(const _0x3e9002 of _0x240758)_0xe741f7['editing']['reconvertMarker'](_0x3e9002);}if(_0x146e6f){const {id:_0x3ab43a}=ft(_0x146e6f),_0x18084e=_0x31dea6['getCommentThread'](_0x3ab43a);if(_0x18084e&&_0x18084e['unlinkedAt'])return;if(_0x18084e&&!_0x18084e['isAttached'])return;const _0x5656ec=this['getAllMarkersForId'](_0x3ab43a);for(const _0x24efd6 of _0x5656ec)_0xe741f7['editing']['reconvertMarker'](_0x24efd6);}}),_0xde112e&&this['scrollToThreadMarker'](_0xde112e);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x331724=this['editor'],_0x599b79=_0x331724['plugins']['get'](o),_0x4224bd=_0x331724['config']['get']('collaboration.channelId'),_0x5313f1=_0x599b79['getCommentThreads']()['filter'](_0x4ce083=>_0x4ce083['channelId']!==_0x4224bd);_0x331724['commands']['add']('addCommentThread',new ot(_0x331724)),this['listenTo'](_0x331724,'change:isReadOnly',(_0x5ec75b,_0x4a9b29,_0x32b5c5)=>{_0x599b79['switchReadOnly'](_0x32b5c5,_0x331724['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x599b79,dt('addCommentThread',_0x4224bd),(_0x5652b4,{threadId:_0x20cbef})=>{const _0x4d2c9d=this['editor']['plugins']['get'](o)['getCommentThread'](_0x20cbef);_0x4d2c9d?.['unlinkedAt']&&this['_attachArchivedThread'](_0x20cbef);}),this['listenTo'](_0x599b79,dt('removeCommentThread',_0x4224bd),(_0x191e37,{threadId:_0x3ed752})=>{_0x331724['model']['enqueueChange']({'isUndoable':!0x1},_0x1e0f78=>{const _0x593a4a=this['getAllMarkersForId'](_0x3ed752);for(const _0x5e1200 of _0x593a4a)_0x1e0f78['removeMarker'](_0x5e1200);});}),this['listenTo'](_0x599b79,dt('resolveCommentThread',_0x4224bd),(_0xdbb53f,{threadId:_0x114a2d})=>{(this['_reconvertMarkers'](_0x114a2d),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x114a2d)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x599b79,dt('reopenCommentThread',_0x4224bd),(_0x17a53b,{threadId:_0x58c491})=>{this['_reconvertMarkers'](_0x58c491);},{'priority':'low'}),this['listenTo'](_0x599b79,dt('addComment',_0x4224bd),(_0x26ac50,{threadId:_0x2b600c,isFromAdapter:_0x5b1cde})=>{const _0x556460=this['getAllMarkersForId'](_0x2b600c);if(_0x5b1cde||0x0==_0x556460['length']||!_0x599b79['hasCommentThread'](_0x2b600c))return;0x1===_0x599b79['getCommentThread'](_0x2b600c)['length']&&_0x331724['model']['enqueueChange']({'isUndoable':!0x1},_0xca5310=>{for(const _0x1cb286 of _0x556460)_0xca5310['updateMarker'](_0x1cb286,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x5313f1);}['afterInit'](){!async function(_0x50fc8d){const _0x45fac3=_0x15c2cb([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x428fea=0x73460ab3,_0x1463de=0x73418bdb^_0x428fea,_0x108ac1=window[_0x15c2cb([0x44,0x61,0x74,0x65])][_0x15c2cb([0x6e,0x6f,0x77])](),_0xd68e01=_0x50fc8d[_0x15c2cb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50db76=new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1256=>{_0xd68e01[_0x15c2cb([0x6f,0x6e,0x63,0x65])](_0x15c2cb([0x72,0x65,0x61,0x64,0x79]),_0x4a1256);}),_0x445bf3={[_0x15c2cb([0x6b,0x74,0x79])]:_0x15c2cb([0x45,0x43]),[_0x15c2cb([0x75,0x73,0x65])]:_0x15c2cb([0x73,0x69,0x67]),[_0x15c2cb([0x63,0x72,0x76])]:_0x15c2cb([0x50,0x2d,0x32,0x35,0x36]),[_0x15c2cb([0x78])]:_0x15c2cb([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x15c2cb([0x79])]:_0x15c2cb([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x15c2cb([0x61,0x6c,0x67])]:_0x15c2cb([0x45,0x53,0x32,0x35,0x36])},_0x25753e=_0xd68e01[_0x15c2cb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15c2cb([0x67,0x65,0x74])](_0x15c2cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12a000(){let _0x38709c,_0x2710ce=null,_0x3f0c07=null;try{if(_0x25753e==_0x15c2cb([0x47,0x50,0x4c]))return _0x15c2cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38709c=_0x54992e(),!_0x38709c)return _0x15c2cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38709c[_0x15c2cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f0c07=_0x3dabc2(_0x38709c[_0x15c2cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38709c[_0x15c2cb([0x6a,0x74,0x69])])),await _0x58d62d()?_0x742419()?_0x4487a9()?_0x15c2cb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x342bd9()?(_0x38709c[_0x15c2cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15c2cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2710ce=_0x386169(_0x15c2cb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8e4d69()):_0x15c2cb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15c2cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15c2cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15c2cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4487a9(){const _0x2d10f6=[_0x15c2cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15c2cb([0x74,0x72,0x69,0x61,0x6c])][_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38709c[_0x15c2cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x108ac1/0x3e8:0xe10*_0x1463de;return _0x38709c[_0x15c2cb([0x65,0x78,0x70])]<_0x2d10f6;}function _0x742419(){const _0x444047=_0x38709c[_0x15c2cb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x444047)return!0x1;if(_0x444047[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c2cb([0x2a])))return!0x0;if(_0x444047[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c2cb([0x43,0x4d,0x54])))return!0x0;if(_0x444047[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c2cb([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x54c939())return!0x0;if(_0x444047[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c2cb([0x52,0x43,0x4d,0x54]))){if(_0x47c225())return!0x0;if(_0x5178ff()||_0x41d934())return!0x0;}return!0x1;}function _0x342bd9(){const _0x285073=_0x38709c[_0x15c2cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x285073||0x0==_0x285073[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xff1ede}=new URL(window[_0x15c2cb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x285073[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff1ede))return!0x0;const _0x4270eb=_0xff1ede[_0x15c2cb([0x73,0x70,0x6c,0x69,0x74])](_0x15c2cb([0x2e]));return _0x285073[_0x15c2cb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1af407=>_0x1af407[_0x15c2cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c2cb([0x2a])))[_0x15c2cb([0x6d,0x61,0x70])](_0x15a4ea=>_0x15a4ea[_0x15c2cb([0x73,0x70,0x6c,0x69,0x74])](_0x15c2cb([0x2e])))[_0x15c2cb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x170e9f=>_0x170e9f[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4270eb[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15c2cb([0x6d,0x61,0x70])](_0x1538c4=>Array(_0x4270eb[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1538c4[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15c2cb([0x66,0x69,0x6c,0x6c])](_0x1538c4[0x0]===_0x15c2cb([0x2a])?_0x15c2cb([0x2a]):'')[_0x15c2cb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1538c4))[_0x15c2cb([0x73,0x6f,0x6d,0x65])](_0x3e6f75=>_0x4270eb[_0x15c2cb([0x65,0x76,0x65,0x72,0x79])]((_0x3cdb95,_0x9633c)=>_0x3e6f75[_0x9633c]===_0x3cdb95||_0x3e6f75[_0x9633c]===_0x15c2cb([0x2a])));}function _0x8e4d69(){return _0x2710ce&&_0x3f0c07?new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26d319,_0x3625cf)=>{_0x2710ce[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x26d319,_0x3625cf),_0x3f0c07[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x4fb5a4=>{_0x4fb5a4!=_0x15c2cb([0x56,0x61,0x6c,0x69,0x64])&&_0x26d319(_0x4fb5a4);},_0x3625cf);}):_0x2710ce||_0x3f0c07||_0x15c2cb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3dabc2(_0x191a90,_0x2c807b){return new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bd78a=>{if(_0x110c18())return _0x4bd78a(_0x15c2cb([0x56,0x61,0x6c,0x69,0x64]));_0x434957(),_0xd68e01[_0x15c2cb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15c2cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f720d=!0x1;const _0x26238a=_0x4552d2();function _0xbad6b4(_0xf3e76b){return!!_0xf3e76b&&(typeof _0xf3e76b===_0x15c2cb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf3e76b===_0x15c2cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf3e76b[_0x15c2cb([0x74,0x68,0x65,0x6e])]===_0x15c2cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf3e76b[_0x15c2cb([0x63,0x61,0x74,0x63,0x68])]===_0x15c2cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5da3cb(_0x5aa526){_0x2526ff(_0x5aa526)[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x14bd58=>{if(!_0x14bd58||_0x14bd58[_0x15c2cb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15c2cb([0x6f,0x6b]))return _0x15c2cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c5401(_0x1fb581(_0x26238a+_0x2c807b))!=_0x14bd58[_0x15c2cb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15c2cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15c2cb([0x56,0x61,0x6c,0x69,0x64]);})[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x19166c=>(_0x268745(),_0x19166c),()=>{const _0x262dc7=_0x2eee81();return null==_0x262dc7?(_0x268745(),_0x15c2cb([0x56,0x61,0x6c,0x69,0x64])):_0x15c2cb(_0x108ac1-_0x262dc7>(0x574a8eb3^_0x428fea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x4bd78a)[_0x15c2cb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bd78a(_0x15c2cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x218cca=0x7370e433^_0x428fea;function _0x268745(){const _0x57b768=_0x15c2cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c5401(_0x1fb581(_0x191a90)),_0x268280=_0x11e662(_0x2c5401(window[_0x15c2cb([0x4d,0x61,0x74,0x68])][_0x15c2cb([0x63,0x65,0x69,0x6c])](_0x108ac1/_0x218cca)));window[_0x15c2cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15c2cb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57b768,_0x268280);}function _0x2eee81(){const _0x486f98=_0x15c2cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c5401(_0x1fb581(_0x191a90)),_0x583cf4=window[_0x15c2cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15c2cb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x486f98);return _0x583cf4?window[_0x15c2cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11e662(_0x583cf4),0x10)*_0x218cca:null;}function _0x2526ff(_0x3c276b){return new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f0103,_0x454c95)=>{_0x3c276b[_0x15c2cb([0x74,0x68,0x65,0x6e])](_0x5f0103,_0x454c95),window[_0x15c2cb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x454c95,0x7347de73^_0x428fea);});}}_0xd68e01[_0x15c2cb([0x6f,0x6e])](_0x15c2cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2eadac,_0x3e8f9c)=>{if(_0x3e8f9c[0x0]!=_0x191a90)return _0x4bd78a(_0x15c2cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e8f9c[0x1]={..._0x3e8f9c[0x1],[_0x15c2cb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26238a};},{[_0x15c2cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15c2cb([0x68,0x69,0x67,0x68])}),_0xd68e01[_0x15c2cb([0x6f,0x6e])](_0x15c2cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xafae6=>{_0xbad6b4(_0xafae6[_0x15c2cb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f720d=!0x0,_0x5da3cb(_0xafae6[_0x15c2cb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15c2cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15c2cb([0x6c,0x6f,0x77])}),_0x50db76[_0x15c2cb([0x74,0x68,0x65,0x6e])](()=>{_0x3f720d||_0x4bd78a(_0x15c2cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x110c18(){return _0xd68e01[_0x15c2cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15c2cb([0x76,0x69,0x65,0x77])][_0x15c2cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15c2cb([0x61,0x75,0x74,0x6f]);}function _0x434957(){_0xd68e01[_0x15c2cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15c2cb([0x76,0x69,0x65,0x77])][_0x15c2cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15c2cb([0x61,0x75,0x74,0x6f]);}}function _0x386169(_0x1e2bed){const _0x953c=[new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bb9ad=>setTimeout(_0x3bb9ad,0x734f347f^_0x428fea)),_0x50db76[_0x15c2cb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26d0fd=>{let _0x50f927=0x0;_0xd68e01[_0x15c2cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c2cb([0x6f,0x6e])](_0x15c2cb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x410863,_0x4836a9)=>{_0x4836a9[0x0][_0x15c2cb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50f927++,_0x50f927==(0x73460f5b^_0x428fea)&&(_0x26d0fd(),_0x410863[_0x15c2cb([0x6f,0x66,0x66])]());});}))];return window[_0x15c2cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15c2cb([0x72,0x61,0x63,0x65])](_0x953c)[_0x15c2cb([0x74,0x68,0x65,0x6e])](()=>_0x1e2bed);}async function _0x584339(){await _0x50db76,_0xd68e01[_0x15c2cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c2cb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37d233,_0xd68e01[_0x15c2cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c2cb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37d233,_0xd68e01[_0x15c2cb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15c2cb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54c939(){return window[_0x15c2cb([0x67,0x6c,0x6f,0x62])]&&window[_0x15c2cb([0x67,0x6c,0x6f,0x62])][_0x15c2cb([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x47c225(){return _0x2ac50b(_0x15c2cb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52a304(_0x15c2cb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15c2cb([0x73,0x74,0x61,0x74,0x65])]==_0x15c2cb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5178ff(){return _0x2ac50b(_0x15c2cb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x41d934(){return _0x2ac50b(_0x15c2cb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5e14a4(_0x5e4b1e){const _0x3c371f=_0x3d22e1();_0xd68e01[_0x3c371f]=_0x15c2cb([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e4b1e,_0x5e4b1e!=_0x15c2cb([0x56,0x61,0x6c,0x69,0x64])&&_0x584339();}function _0x3d22e1(){const _0x21faa8=window[_0x15c2cb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15c2cb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15c2cb([0x6e,0x6f,0x77])]())[_0x15c2cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15c2cb([0x2e]),'');let _0x163069=_0x15c2cb([0x4b]);for(let _0x20b264=0x0;_0x20b264<_0x21faa8[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20b264+=0x2){let _0xbb208a=window[_0x15c2cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21faa8[_0x15c2cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20b264,_0x20b264+0x2));_0xbb208a>=_0x45fac3[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbb208a-=_0x45fac3[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x163069+=_0x45fac3[_0xbb208a];}return _0x163069;}function _0x54992e(){const _0x2c306a=_0x25753e[_0x15c2cb([0x73,0x70,0x6c,0x69,0x74])](_0x15c2cb([0x2e]));if(0x3!=_0x2c306a[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3641d9(_0x2c306a[0x1]);function _0x3641d9(_0x3501db){const _0x163b49=_0x1464fb(_0x3501db);return _0x163b49&&_0x547a34()?_0x163b49:null;function _0x547a34(){const _0x271d08=_0x163b49[_0x15c2cb([0x6a,0x74,0x69])],_0x1a16b0=window[_0x15c2cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271d08[_0x15c2cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x271d08[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc2ae75={..._0x163b49,[_0x15c2cb([0x6a,0x74,0x69])]:_0x271d08[_0x15c2cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x271d08[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc2ae75[_0x15c2cb([0x76,0x63])],_0x1fb581(_0xc2ae75)==_0x1a16b0;}}}async function _0x58d62d(){let _0x1b1077=!0x0;try{const _0x48dd0b=_0x25753e[_0x15c2cb([0x73,0x70,0x6c,0x69,0x74])](_0x15c2cb([0x2e])),[_0x34c998,_0x462602,_0x36db5d]=_0x48dd0b;return _0x3623cf(_0x34c998),await _0x33ca32(_0x34c998,_0x462602,_0x36db5d),_0x1b1077;}catch{return!0x1;}function _0x3623cf(_0x4225fc){const _0x2b702e=_0x1464fb(_0x4225fc);_0x2b702e&&_0x2b702e[_0x15c2cb([0x61,0x6c,0x67])]==_0x15c2cb([0x45,0x53,0x32,0x35,0x36])||(_0x1b1077=!0x1);}async function _0x33ca32(_0x200c8d,_0x3dcb65,_0x281cc6){const _0x369172=window[_0x15c2cb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15c2cb([0x66,0x72,0x6f,0x6d])](_0x544690(_0x281cc6),_0x344661=>_0x344661[_0x15c2cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x212cac=new window[(_0x15c2cb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15c2cb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x200c8d+_0x15c2cb([0x2e])+_0x3dcb65),_0x389f30=window[_0x15c2cb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15c2cb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x389f30)return;const _0x5ecb38=await _0x389f30[_0x15c2cb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15c2cb([0x6a,0x77,0x6b]),_0x445bf3,{[_0x15c2cb([0x6e,0x61,0x6d,0x65])]:_0x15c2cb([0x45,0x43,0x44,0x53,0x41]),[_0x15c2cb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15c2cb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15c2cb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x389f30[_0x15c2cb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15c2cb([0x6e,0x61,0x6d,0x65])]:_0x15c2cb([0x45,0x43,0x44,0x53,0x41]),[_0x15c2cb([0x68,0x61,0x73,0x68])]:{[_0x15c2cb([0x6e,0x61,0x6d,0x65])]:_0x15c2cb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ecb38,_0x369172,_0x212cac)||(_0x1b1077=!0x1);}}function _0x1464fb(_0xa4c22b){return _0xa4c22b[_0x15c2cb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15c2cb([0x65,0x79]))?JSON[_0x15c2cb([0x70,0x61,0x72,0x73,0x65])](_0x544690(_0xa4c22b)):null;}function _0x544690(_0x159f0a){return window[_0x15c2cb([0x61,0x74,0x6f,0x62])](_0x159f0a[_0x15c2cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15c2cb([0x2b]))[_0x15c2cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15c2cb([0x2f])));}function _0x1fb581(_0x3a91ce){let _0x128b32=0x1505;function _0x203982(_0x3401c7){for(let _0x524376=0x0;_0x524376<_0x3401c7[_0x15c2cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x524376++){const _0x13a1d3=_0x3401c7[_0x15c2cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x524376);_0x128b32=(_0x128b32<<0x5)+_0x128b32+_0x13a1d3,_0x128b32&=_0x128b32;}}function _0x48e7d6(_0x259f2c){Array[_0x15c2cb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x259f2c)?_0x259f2c[_0x15c2cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48e7d6):_0x259f2c&&typeof _0x259f2c==_0x15c2cb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15c2cb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x259f2c)[_0x15c2cb([0x73,0x6f,0x72,0x74])]()[_0x15c2cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xefdacc,_0x2413c5])=>{_0x203982(_0xefdacc),_0x48e7d6(_0x2413c5);}):_0x203982(window[_0x15c2cb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x259f2c));}return _0x48e7d6(_0x3a91ce),_0x128b32>>>0x0;}function _0x2c5401(_0x2421e9){return _0x2421e9[_0x15c2cb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15c2cb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15c2cb([0x30]));}function _0x11e662(_0x49373d){return _0x49373d[_0x15c2cb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15c2cb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15c2cb([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ac50b(_0x471a99){return _0xd68e01[_0x15c2cb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15c2cb([0x68,0x61,0x73])](_0x471a99);}function _0x52a304(_0x2e8991){return _0xd68e01[_0x15c2cb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15c2cb([0x67,0x65,0x74])](_0x2e8991);}function _0x37d233(){}function _0x15c2cb(_0x4d2bb8){return _0x4d2bb8['map'](_0x613e34=>String['fromCharCode'](_0x613e34))['join']('');}_0x5e14a4(await _0x12a000());}(this);}['destroy'](){const _0x2f751c=this['editor']['plugins']['get'](o),_0x42e9be=this['editor']['config']['get']('collaboration.channelId');for(const _0x3104eb of _0x2f751c['getCommentThreads']({'channelId':_0x42e9be}))_0x2f751c['_detachCommentThread'](_0x3104eb['id']),_0x2f751c['_threads']['delete'](_0x3104eb['id']);super['destroy']();}['hasMarkerForId'](_0x4339ab){return this['getAllMarkersForId'](_0x4339ab)['length']>0x0;}['getAllMarkersForId'](_0x2b9ebe){const _0x95d2cc=[];for(const _0x136a27 of this['editor']['model']['markers'])_0x136a27['name']['startsWith']('comment:'+_0x2b9ebe)&&_0x95d2cc['push'](_0x136a27);return _0x95d2cc;}['scrollToThreadMarker'](_0x5e255a){setTimeout(()=>{const _0x473e4d=this['_getTargetForId'](_0x5e255a);if(!_0x473e4d)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5e255a&&nt({'target':_0x473e4d[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x2bae87){this['editor']['model']['change'](()=>{for(const _0x115c56 of this['getAllMarkersForId'](_0x2bae87))this['editor']['editing']['reconvertMarker'](_0x115c56);});}['_attachArchivedThread'](_0xbc799b){const _0x1b03cf=this['editor']['plugins']['get'](o),_0x573351=this['editor']['plugins']['get'](b),_0x25f325=_0x1b03cf['getCommentThread'](_0xbc799b);if(!_0x25f325['isAttached']){const _0x3b5219=_0x25f325['attachTo'](()=>this['_getTargetForId'](_0x25f325['id']));_0x573351['registerAnnotation'](_0x3b5219),_0x25f325['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x30e0a=this['editor'],_0x257b93=_0x30e0a['plugins']['get'](it);_0x30e0a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x2f18b3,_0x2a4f6f)=>{const {id:_0x5a193d}=ft(_0x2f18b3['markerName']),_0x56ac17=_0x30e0a['plugins']['get'](o)['getCommentThread'](_0x5a193d),_0x1736a7=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5a193d;let _0x580d1d;if(_0x56ac17&&_0x56ac17['isResolved']&&!_0x1736a7&&_0x2f18b3['item'])return _0x2a4f6f['consumable']['consume'](_0x2f18b3['item'],'addMarker:'+_0x2f18b3['markerName']),_0x2a4f6f['consumable']['consume'](_0x2f18b3['item'],'removeMarker:'+_0x2f18b3['markerName']),null;const _0x3cc1b9=['ck-comment-marker'];return _0x1736a7&&_0x3cc1b9['push']('ck-comment-marker--active'),_0x580d1d=_0x56ac17?.['length']?_0x56ac17['comments']['first']['author']['id']:_0x257b93['me']['id'],{'classes':_0x3cc1b9,'attributes':{'data-comment':_0x5a193d,'data-author-id':_0x580d1d}};}}),_0x30e0a['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x324d28,{options:_0x477177})=>{if(_0x477177['showCommentHighlights'])return null;const _0x69a827=_0x30e0a['plugins']['get'](o),_0xb570cf=_0x30e0a['model']['markers']['get'](_0x324d28),{id:_0xb3fa3c,part:_0x5647e4}=ft(_0x324d28);return _0xb570cf&&!_0xb570cf['affectsData']||_0x477177['ignoreResolvedComments']&&_0x69a827['getCommentThread'](_0xb3fa3c)?.['isResolved']?null:{'group':'comment','name':_0x5647e4?_0xb3fa3c+':'+_0x5647e4:_0xb3fa3c};}}),_0x30e0a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x134a20,{writer:_0x46ab57})=>_0x46ab57['createElement']('$marker',{'data-name':'comment:'+_0x134a20['getAttribute']('id')})}),_0x30e0a['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x442b4a=this['editor'],_0x2a9b37=_0x442b4a['plugins']['get'](o),_0x25d000=new Set(),_0x10975e=new Set();_0x442b4a['model']['document']['registerPostFixer'](_0xbc4582=>{let _0x5467d3=!0x1;for(const {name:_0x1fe6f6,data:_0x5e0706}of _0x442b4a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x32fb2c,id:_0xe8485d}=ft(_0x1fe6f6);let _0x35bfc2=_0x5e0706['newRange'];if('comment'!==_0x32fb2c||!_0x35bfc2)continue;const _0x972e63='$graveyard'===_0x35bfc2['root']['rootName'];_0x972e63||(_0x35bfc2=ht(_0x35bfc2,_0x442b4a['model']),!_0x35bfc2||_0x35bfc2['isCollapsed']||!_0x5e0706['newRange']||_0x35bfc2['isEqual'](_0x5e0706['newRange']))?_0x442b4a['model']['hasContent'](_0x35bfc2)&&!_0x972e63?this['isThreadsLoadingPaused']?_0x25d000['add'](_0x1fe6f6):this['_handleThreadMarker'](_0x1fe6f6,_0xe8485d):(_0x10975e['add'](_0x1fe6f6),_0x25d000['delete'](_0x1fe6f6),_0xbc4582['removeMarker'](_0x1fe6f6),_0x5467d3=!0x0):(_0xbc4582['updateMarker'](_0x1fe6f6,{'range':_0x35bfc2}),_0x5467d3=!0x0);}return _0x5467d3;}),this['on']('change:isThreadsLoadingPaused',(_0xf3f2b2,_0x223d82,_0x35f3b9)=>{if(!_0x35f3b9&&_0x25d000['size'])for(const _0x31aac4 of _0x25d000){const {id:_0x26691a}=ft(_0x31aac4);_0x25d000['delete'](_0x31aac4),_0x442b4a['model']['markers']['get'](_0x31aac4)&&this['_handleThreadMarker'](_0x31aac4,_0x26691a);}}),this['listenTo'](_0x442b4a['model']['document'],'change',()=>{for(const {name:_0x3dfd1b,data:{newRange:_0x23d6b1}}of _0x442b4a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x19b96f,id:_0x4155cc}=ft(_0x3dfd1b);if('comment'!==_0x19b96f)continue;const _0x1d170c=_0x2a9b37['getCommentThread'](_0x4155cc),_0x227081=this['hasMarkerForId'](_0x4155cc);_0x1d170c&&(!_0x1d170c['_hasTargetInContent']&&_0x23d6b1&&_0x442b4a['editing']['view']['once']('render',()=>{const _0x3178ce=_0x442b4a['plugins']['get'](y),_0x115fac=_0x2a9b37['_threadToController']['get'](_0x1d170c)['view'];_0x3178ce['getByInnerView'](_0x115fac)['refreshVisibility']();},{'priority':'low'}),_0x1d170c['_hasTargetInContent']=_0x227081||!!_0x23d6b1),_0x23d6b1||(_0x10975e['add'](_0x3dfd1b),_0x25d000['delete'](_0x3dfd1b));}for(const _0x2f15ae of _0x10975e){const {id:_0x57b4e4}=ft(_0x2f15ae),_0x5843e4=_0x2a9b37['getCommentThread'](_0x57b4e4);if(_0x25d000['delete'](_0x2f15ae),!_0x5843e4)continue;const _0x299266=this['hasMarkerForId'](_0x57b4e4);_0x299266||_0x5843e4['isSubmitted']?_0x299266||_0x5843e4['unlinkedAt']||_0x5843e4['setUnlinkedAt'](new Date()):_0x5843e4['remove']();}_0x10975e['clear']();});}['_handleInitialThreads'](_0x261ad1){_0x261ad1['forEach'](_0x287f13=>{_0x287f13['unlinkedAt']&&this['_attachArchivedThread'](_0x287f13['id']);});}['_getTargetForId'](_0x37e48c){const _0x562fc2=this['editor'],_0x4c8cb8=this['getAllMarkersForId'](_0x37e48c);return et(_0x562fc2['editing'],_0x4c8cb8);}['_getTextContext'](_0x12e3d1){const _0x2e0c39=this['getAllMarkersForId'](_0x12e3d1);let _0x4f5148='',_0x49c770=!0x1;for(const _0x9f6c1 of _0x2e0c39){const _0xcfa07c=_0x9f6c1['getRange']();for(const _0xce090d of Array['from'](_0xcfa07c['getItems']()))_0xce090d['is']('$textProxy')?(_0x4f5148&&_0x49c770&&(_0x4f5148+='\x20',_0x49c770=!0x1),_0x4f5148+=_0xce090d['data']):_0x49c770=!0x0;_0x49c770=!0x0;}return _0x4f5148['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4b6bf7,_0x22b39d){const _0x3936e8=this['editor'],_0x107a2b=_0x3936e8['plugins']['get'](o);let _0x423b19=_0x107a2b['getCommentThread'](_0x22b39d);const _0x59a452=_0x3936e8['config']['get']('collaboration.channelId'),_0x194df6=_0x3936e8['plugins']['get'](b);if(_0x423b19&&(_0x423b19['unlinkedAt']&&_0x423b19['setUnlinkedAt'](null),_0x423b19['isAttached']))return _0x423b19;return!this['getAllMarkersForId'](_0x22b39d)[0x0]['managedUsingOperations']?_0x3936e8['editing']['view']['once']('render',()=>{if(_0x107a2b['getCommentThread'](_0x22b39d))return;const _0x58ff31=_0x3936e8['plugins']['get'](y);_0x423b19=_0x107a2b['openNewCommentThread']({'channelId':_0x59a452,'threadId':_0x22b39d,'target':()=>this['_getTargetForId'](_0x22b39d),'context':{'type':'text','value':this['_getTextContext'](_0x22b39d)}});const _0x135953=_0x107a2b['_threadToController']['get'](_0x423b19)['view'],_0xe1832c=_0x58ff31['getByInnerView'](_0x135953);_0xe1832c&&_0x194df6['registerAnnotation'](_0xe1832c);},{'priority':'low'}):_0x107a2b['fetchCommentThread']({'channelId':_0x59a452,'threadId':_0x22b39d})['then'](_0x7375ff=>{if('destroyed'!==_0x3936e8['state']){if(_0x423b19=_0x7375ff,_0x423b19&&!_0x423b19['isAttached']){const _0x2cb934=_0x423b19['attachTo'](()=>this['_getTargetForId'](_0x22b39d));_0x194df6['registerAnnotation'](_0x2cb934),_0x423b19['isResolved']&&this['_reconvertMarkers'](_0x22b39d);}else{if(!_0x423b19){const _0xe95e43=this['getAllMarkersForId'](_0x22b39d);_0x3936e8['model']['change'](_0x421620=>{for(const _0x132c72 of _0xe95e43)_0x421620['removeMarker'](_0x132c72);});}}}}),_0x423b19;}['_handleThreadMarker'](_0x14d1f4,_0x41fa1c){const _0x33aa78=this['_attachMarkerToThread'](_0x14d1f4,_0x41fa1c);_0x33aa78&&!_0x33aa78['context']&&_0x33aa78['setContext']({'type':'text','value':this['_getTextContext'](_0x41fa1c)});}['_initAriaMarkerChangeAnnouncements'](){const _0xe3c49c=this['editor'];rt(_0xe3c49c['model'],({left:_0x3696b0,entered:_0x47963c})=>{for(const _0x48f78b of _0x3696b0)if(mt(_0x48f78b)){_0xe3c49c['ui']['ariaLiveAnnouncer']['announce'](N(_0xe3c49c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x1ac3fb of _0x47963c)if(mt(_0x1ac3fb)){_0xe3c49c['ui']['ariaLiveAnnouncer']['announce'](N(_0xe3c49c['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x39c788)));break;}});}}function dt(_0x1a35fd,_0x589597){return _0x589597?_0x1a35fd+':'+_0x589597:_0x1a35fd;}function ht(_0x4e3779,_0x17393a){const _0x4cfb72=_0x17393a['schema'],_0x34d10c=_0x17393a['createRange'](_0x4e3779['start']);for(const _0x3da8f5 of _0x4e3779['getWalker']()){const {type:_0x4379da,item:_0xc07899,nextPosition:_0x504f02}=_0x3da8f5;if('text'===_0x4379da||_0x4cfb72['isObject'](_0xc07899)){const _0x627495=_0x17393a['createPositionBefore'](_0xc07899);_0x34d10c['isCollapsed']&&(_0x34d10c['start']=_0x627495),_0x34d10c['end']=_0x504f02;}}return _0x34d10c;}function mt(_0x5aa749){return'comment'===ft(_0x5aa749['name'])['group'];}class s extends _0x4e6af8{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0xda0fe5=this['editor'],_0x2ff9d1=_0xda0fe5['plugins']['get'](o),_0x40455a=_0xda0fe5['plugins']['get'](r),_0x2e0686=_0xda0fe5['plugins']['get'](y),_0xeba9af=_0xda0fe5['plugins']['get'](b);_0xda0fe5['ui']['componentFactory']['add']('comment',()=>{const _0x17eb3e=this['_createUIButton'](_0x39d67e);return _0x17eb3e['tooltip']=!0x0,_0x17eb3e;}),_0xda0fe5['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x4dec93)),_0xeba9af['addSourceCollector'](()=>{const _0x105394=[];for(const [_0xa2c102,_0x318ee9]of _0x2ff9d1['_threadToController']){const _0x56c10b=_0x40455a['getAllMarkersForId'](_0xa2c102['id']),_0xf890b9=_0x56c10b['map'](_0x1353c7=>_0x1353c7['getRange']());_0x56c10b['length']>0x0&&_0x105394['push']([_0x318ee9['view'],_0xf890b9]);}return _0x105394;}),this['listenTo'](_0x2e0686,'change:activeAnnotations',(_0x12c114,_0x419200,_0x191d21)=>{const _0x534c92=Array['from'](_0x191d21)['map'](_0x2ab07c=>_0x2ab07c['innerView'])['find'](_0x237d19=>_0x2ff9d1['_viewToController']['has'](_0x237d19));if(!_0x534c92)return void(_0x40455a['activeMarker']=null);const _0x2c4162=_0x2ff9d1['_viewToController']['get'](_0x534c92)['model']['id'],_0x57654f='comment:'+_0x2c4162;_0x2c4162&&_0x40455a['hasMarkerForId'](_0x2c4162)?_0x40455a['activeMarker']=_0x57654f:_0x40455a['activeMarker']&&(_0x40455a['activeMarker']=null);}),this['listenTo'](_0x2ff9d1,'removeCommentThread',(_0x2e51d6,{threadId:_0x5c0f3d,isFromAdapter:_0x425048})=>{!_0x425048&&_0xda0fe5['ui']['focusTracker']['isFocused']&&_0x40455a['hasMarkerForId'](_0x5c0f3d)&&_0xda0fe5['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2ff9d1,'addComment',(_0x497056,{threadId:_0x491249,isFromAdapter:_0x11cf7a})=>{if(_0x11cf7a||!_0x40455a['hasMarkerForId'](_0x491249)||!_0x2ff9d1['hasCommentThread'](_0x491249))return;0x1===_0x2ff9d1['getCommentThread'](_0x491249)['length']&&(_0xda0fe5['editing']['view']['focus'](),_0x497056['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c7445=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3fea36;for(const _0xb40108 in _0x4c7445){const _0x52c126=_0xb40108,_0x4cafea=_0x4c7445[_0x52c126];if('commentsLicenseKeyValid'==_0x4cafea||'commentsLicenseKeyInvalid'==_0x4cafea||'commentsLicenseKeyExpired'==_0x4cafea||'commentsLicenseKeyDomainLimit'==_0x4cafea||'commentsLicenseKeyNotAllowed'==_0x4cafea||'commentsLicenseKeyEvaluationLimit'==_0x4cafea||'commentsLicenseKeyUsageLimit'==_0x4cafea){delete _0x4c7445[_0x52c126],_0x3fea36=_0x4cafea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3fea36&&_0x4c7445['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3fea36&&_0x4c7445['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3fea36&&_0x4c7445['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3fea36&&_0x4c7445['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3fea36&&_0x4c7445['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x3fea36&&_0x4c7445['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x77f079){const _0x2dc3d3=this['editor'],_0x142dc4=new _0x77f079(_0x2dc3d3['locale']),_0x5f5a51=_0x2dc3d3['commands']['get']('addCommentThread');return _0x142dc4['set']({'label':N(_0x2dc3d3['locale'],'Comment'),'icon':_0x61886d}),_0x142dc4['bind']('isEnabled')['to'](_0x5f5a51,'isEnabled',_0x5f5a51,'hasContent',(_0x4c98f4,_0x40d0dd)=>_0x4c98f4&&_0x40d0dd),this['listenTo'](_0x142dc4,'execute',()=>{_0x5f5a51['execute']();}),_0x142dc4;}}class i extends _0x4e6af8{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2ff148){super(_0x2ff148),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2f3cc8,_0x189353,_0x5ef5c6)=>{_0x5ef5c6?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x52114e,_0x2a4ffb]of this['editor']['commands'])_0x2a4ffb['affectsData']&&'addCommentThread'!==_0x52114e&&_0x2a4ffb['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x263805=this['editor']['editing']['view']['document'];this['listenTo'](_0x263805,'cut',_0x845fc4=>_0x845fc4['stop'](),{'priority':'highest'}),this['listenTo'](_0x263805,'clipboardInput',_0x4316e2=>_0x4316e2['stop'](),{'priority':'highest'}),this['listenTo'](_0x263805,'delete',_0x1bf188=>_0x1bf188['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x2726a5,_0x2b8cf9]of this['editor']['commands'])_0x2b8cf9['affectsData']&&'addCommentThread'!==_0x2726a5&&_0x2b8cf9['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x1c3a7a{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ee7d8){super(_0x4ee7d8),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4dc7dc=this['context']['plugins']['get'](y);this['listenTo'](_0x4dc7dc,'_activateAnnotation',(_0x49548a,_0x5e4a74)=>{for(const _0x3ea2bd of this['activeUIs']){const _0x14fc68=this['_uis']['get'](_0x3ea2bd);(0x0,this['uisData']['get'](_0x3ea2bd)['filter'])(_0x5e4a74)&&_0x14fc68['setActiveAnnotation'](_0x5e4a74);}}),this['listenTo'](_0x4dc7dc,'_deactivateAllAnnotations',()=>{for(const _0xa28353 of this['activeUIs']){this['_uis']['get'](_0xa28353)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4dc7dc['_visibleAnnotations'],'add',(_0x286c07,_0x2dfc8e)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2dfc8e);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4a3226){return this['activeUIs']['has'](_0x4a3226);}['activate'](_0x5f0f35,_0x469b26=this['defaultFilter']){const _0x43bee0=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x5f0f35))throw new _0x13348f('annotationsuis-missing-ui',this,{'uiName':_0x5f0f35});this['isActive'](_0x5f0f35)&&this['deactivate'](_0x5f0f35),this['activeUIs']['add'](_0x5f0f35);const _0x56f128=new S();v({'source':_0x43bee0['_visibleAnnotations'],'target':_0x56f128,'filter':_0x469b26}),this['uisData']['set'](_0x5f0f35,{'collection':_0x56f128,'filter':_0x469b26});const _0x31d406=this['_uis']['get'](_0x5f0f35);_0x31d406['attach'](_0x56f128),this['listenTo'](_0x31d406,'change:activeAnnotation',(_0x23ee6d,_0x9baa86,_0xbe70f8,_0x2ad5cf)=>{_0x2ad5cf&&_0x43bee0['_removeActiveAnnotation'](_0x2ad5cf),_0xbe70f8&&_0x43bee0['_addActiveAnnotation'](_0xbe70f8);});}['deactivate'](_0x364734){if(this['activeUIs']['delete'](_0x364734),!this['_uis']['has'](_0x364734))throw new _0x13348f('annotationsuis-missing-ui',this,{'uiName':_0x364734});const _0x3fc5ce=this['_uis']['get'](_0x364734);_0x3fc5ce['detach'](),this['stopListening'](_0x3fc5ce),this['uisData']['get'](_0x364734)['collection']['destroy'](),this['uisData']['delete'](_0x364734);}['switchTo'](_0x3efc1d){if(!this['_uis']['has'](_0x3efc1d))throw new _0x13348f('annotationsuis-missing-ui',this,{'uiName':_0x3efc1d});const _0x5246dd=this['context']['plugins']['get'](y),_0x2279e3=Array['from'](_0x5246dd['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3efc1d);const _0x3686ab=this['_uis']['get'](_0x3efc1d);_0x3686ab['setActiveAnnotation'](_0x2279e3),_0x3686ab['_setSelectedAnnotations']&&_0x2279e3&&_0x3686ab['_setSelectedAnnotations']([_0x2279e3]);}['deactivateAll'](){for(const _0x36a9a6 of this['activeUIs'])this['deactivate'](_0x36a9a6);}['register'](_0x21f0ae,_0x4823d0){if(this['_uis']['has'](_0x21f0ae))throw new _0x13348f('annotationsuis-register-already-registered');if('function'!=typeof _0x4823d0['attach']||'function'!=typeof _0x4823d0['detach']||'function'!=typeof _0x4823d0['setActiveAnnotation'])throw new _0x13348f('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x21f0ae,_0x4823d0);}['refilterAnnotations'](){const _0x5d9c11=this['context']['plugins']['get'](y)['collection'],_0x24f788=new Map(),_0x30c638=Array['from'](this['activeUIs']);for(const _0x39da22 of this['activeUIs']){const _0x10db17=this['uisData']['get'](_0x39da22)['collection'];for(const _0x2d69df of _0x10db17)_0x24f788['set'](_0x2d69df,_0x39da22);}for(const _0x3d6837 of _0x5d9c11){const _0x84bfb=_0x24f788['get'](_0x3d6837);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3d6837);const _0x22b2f5=_0x30c638['find'](_0x3856fc=>this['uisData']['get'](_0x3856fc)['filter'](_0x3d6837));_0x84bfb!==_0x22b2f5&&(_0x84bfb&&this['uisData']['get'](_0x84bfb)['collection']['remove'](_0x3d6837),_0x22b2f5&&this['uisData']['get'](_0x22b2f5)['collection']['add'](_0x3d6837));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xe13216){const _0x3cebf2=[];for(const _0x529add of this['activeUIs']){(0x0,this['uisData']['get'](_0x529add)['filter'])(_0xe13216)&&_0x3cebf2['push'](_0x529add);}if(_0x3cebf2['length']>0x1)throw new _0x13348f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3cebf2,'annotationType':_0xe13216['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x88c8f1){super(_0x88c8f1);const _0x1f1879=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x119ecb(),this['focusCycler']=new _0x206411({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x1f1879['to']('class')],'style':{'minHeight':_0x1f1879['to']('minHeight',_0x7d29c6=>'number'==typeof _0x7d29c6?_i(_0x7d29c6+0xa):null)},'dir':_0x88c8f1['uiLanguageDirection'],'role':'application','aria-label':N(_0x88c8f1,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x88c8f1,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0xa8bd46=>{this['_updateItemPositionInFocusables'](_0xa8bd46['source']);}),this['list']['forEach'](_0x16fd57=>{this['focusTracker']['add'](_0x16fd57['element']),this['_updateItemPositionInFocusables'](_0x16fd57);}),this['list']['on']('change',(_0x2e20ba,_0x978465)=>{for(const _0x30d02d of _0x978465['removed'])this['focusTracker']['remove'](_0x30d02d['element']),this['focusables']['remove'](_0x30d02d);for(const _0x193a5b of _0x978465['added'])this['focusTracker']['add'](_0x193a5b['element']),this['_updateItemPositionInFocusables'](_0x193a5b);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x30cd4f){const _0x6356f7=this['focusables']['getIndex'](_0x30cd4f);let _0x1954e5,_0x4149af;for(const _0x1abaab of this['focusables'])if(_0x30cd4f['top']<_0x1abaab['top']){_0x1954e5=_0x1abaab;break;}if(_0x4149af=_0x1954e5?this['focusables']['getIndex'](_0x1954e5):this['focusables']['length'],-0x1!==_0x6356f7){if(_0x6356f7===_0x4149af-0x1)return;this['focusables']['remove'](_0x30cd4f),_0x4149af=_0x1954e5?this['focusables']['getIndex'](_0x1954e5):this['focusables']['length'];}this['focusables']['add'](_0x30cd4f,_0x4149af);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1e84c3){super(_0x1e84c3),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2d6369,_0x454f6d)=>_0x2d6369+_0x454f6d),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x583376=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x583376['to']('isAnimationDisabled',_0x363f28=>_0x363f28?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x583376['to']('top',_0x11cc52=>Ot(_0x11cc52))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x56fe91=this['element']['clientHeight'];_0x56fe91&&(this['height']=_0x56fe91);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x1c3a7a{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x555dca){super(_0x555dca),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x2582ea=this['context']['config']['get']('sidebar.container');_0x2582ea&&this['setContainer'](_0x2582ea);}['setContainer'](_0x529f76){if(!g(_0x529f76))throw new _0x13348f('sidebar-setcontainer-invalid-element');this['container']=_0x529f76;}['_attachToContainer']({viewClass:_0x5c8bc8='',spaceBetweenItems:_0x5e4cb1=0x19}={}){if(!g(this['container']))throw new _0x13348f('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x5c8bc8,this['_spaceBetweenItems']=_0x5e4cb1;}['rearrange']({removedAnnotation:_0x2db2ec,previousAnnotation:_0x37c301,nextAnnotation:_0x1ce95b}){const _0x267f88=this['getSidebarItemView'](_0x2db2ec);this['view']['list']['remove'](_0x267f88),this['_destroySidebarItemView'](_0x2db2ec),_0x37c301&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x37c301)),_0x1ce95b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1ce95b)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2eca4f,activatedAnnotation:_0x5670d8,disableAnimationOnActivatedAnnotation:_0x5ebb4e}){if(this['_activeAnnotation']=_0x5670d8,_0x2eca4f){_0x2eca4f['isActive']=!0x1;const _0x23690d=this['getSidebarItemView'](_0x2eca4f);_0x23690d&&_0x5ebb4e&&(_0x23690d['isAnimationDisabled']=!0x1);}if(_0x5670d8){const _0x13a626=this['getSidebarItemView'](_0x5670d8);_0x13a626&&(_0x5670d8['isActive']=!0x0,_0x5ebb4e&&(_0x13a626['isAnimationDisabled']=!0x0,_0x13a626['top']+=0x1),this['_alignToTargetRect'](_0x13a626));}}['_detachFromContainer'](_0x593779){if(this['view']['element']['remove'](),_0x593779){for(const _0x310b96 of _0x593779)this['_destroySidebarItemView'](_0x310b96);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x563230,_0x423293){_0x423293||(_0x423293=_0x563230['view']);const _0x233ead=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x233ead,_0x563230),this['_annotationToSidebarItemView']['set'](_0x563230,_0x233ead),_0x233ead['content']['add'](_0x423293),this['listenTo'](_0x563230['view'],'change:targetRect',(_0x3db761,_0x997a43,_0x436973)=>{const _0x3df30e=this['_getTargetTop'](_0x563230,_0x436973);_0x233ead['_targetTop']!=_0x3df30e&&(_0x233ead['_targetTop']=_0x3df30e,this['_setItemTop'](_0x233ead,_0x3df30e));}),this['listenTo'](_0x233ead,'change:top',()=>{this['_recalculate'](_0x233ead,'top');}),this['listenTo'](_0x233ead,'change:bottom',()=>{this['_recalculate'](_0x233ead,'bottom');}),this['_alignToTargetRect'](_0x233ead);const _0x4a5fdf=this['_getItemBefore'](_0x233ead);if(_0x4a5fdf)this['_alignAfterItem'](_0x4a5fdf,_0x233ead)||this['_alignToTargetRect'](_0x233ead);else this['_alignToTargetRect'](_0x233ead);return this['_updateLastItem'](),this['view']['list']['add'](_0x233ead),_0x233ead;}['_alignForTopChange'](_0x2f71fe){if(!_0x2f71fe['content']['length'])return;const _0x473109=this['_getItemBefore'](_0x2f71fe);if(!_0x473109)return;const _0xeda6ba=this['_sidebarItemViewToAnnotation']['get'](_0x473109),_0x5cdc2c=this['_activeAnnotation'];_0x5cdc2c&&_0x5cdc2c===_0xeda6ba?this['_alignAfterItem'](_0x473109,_0x2f71fe):this['_alignBeforeItem'](_0x2f71fe,_0x473109);}['_alignForBottomChange'](_0x50437d){if(!_0x50437d['content']['length'])return;const _0x2c8282=this['_getItemAfter'](_0x50437d);if(!_0x2c8282)return;const _0x47d146=this['_sidebarItemViewToAnnotation']['get'](_0x2c8282),_0x568b13=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x4b993f=this['_activeAnnotation'];_0x4b993f&&_0x4b993f===_0x47d146&&_0x568b13?(this['_alignBeforeItem'](_0x2c8282,_0x50437d),this['_alignAfterItem'](_0x50437d,_0x2c8282)):_0x4b993f&&_0x4b993f===_0x47d146?this['_alignBeforeItem'](_0x2c8282,_0x50437d):this['_alignAfterItem'](_0x50437d,_0x2c8282);}['_recalculate'](_0x4eedff,_0x455546){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2ffe36,changedProp:_0x55ce3f}of this['_recalculateBuffer'])'top'===_0x55ce3f?this['_alignForTopChange'](_0x2ffe36):this['_alignForBottomChange'](_0x2ffe36);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4eedff,'changedProp':_0x455546});}['getSidebarItemView'](_0x45492d){return this['_annotationToSidebarItemView']['get'](_0x45492d);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x56eb9b){const _0x7035c6=this['getSidebarItemView'](_0x56eb9b);this['stopListening'](_0x7035c6),this['stopListening'](_0x56eb9b['view']),_0x7035c6['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x56eb9b),this['_sidebarItemViewToAnnotation']['delete'](_0x7035c6);}['_createSidebarView'](){const _0x217e87=new H(this['context']['locale']);return _0x217e87['render'](),this['on']('change:_lastItem',(_0x15b807,_0x331c9e,_0x192f93,_0x2999d6)=>{_0x2999d6&&_0x217e87['unbind']('minHeight'),_0x192f93?_0x217e87['bind']('minHeight')['to'](_0x192f93,'bottom'):_0x217e87['minHeight']=null;}),_0x217e87;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x57a14f){const _0x5a3b80=this['_sidebarItemViewToAnnotation']['get'](_0x57a14f),_0x3c2ce2=_0x5a3b80&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5a3b80)-0x1);return _0x3c2ce2&&this['getSidebarItemView'](_0x3c2ce2)||null;}['_getItemAfter'](_0x52040f){const _0x53068f=this['_sidebarItemViewToAnnotation']['get'](_0x52040f),_0x570bd9=_0x53068f&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x53068f)+0x1);return _0x570bd9&&this['getSidebarItemView'](_0x570bd9)||null;}['_alignBeforeItem'](_0x1900b8,_0x5db61c){_0x1900b8['updateHeight']();const _0x17595d=G(_0x5db61c['bottom']+this['_spaceBetweenItems'],_0x1900b8['top']);return!!_0x17595d&&(this['_setItemTop'](_0x5db61c,_0x5db61c['top']-_0x17595d),!0x0);}['_alignAfterItem'](_0x1e46e6,_0x3a1f0d){_0x1e46e6['updateHeight']();const _0x34772f=G(_0x1e46e6['bottom']+this['_spaceBetweenItems'],_0x3a1f0d['top']);return!!_0x34772f&&(this['_setItemTop'](_0x3a1f0d,_0x3a1f0d['top']+_0x34772f,!0x1),!0x0);}['_alignToTargetRect'](_0x5d48af){const _0x162f9a=this['_sidebarItemViewToAnnotation']['get'](_0x5d48af);if(!_0x162f9a||!_0x162f9a['target']||!_0x162f9a['targetRect'])return;const _0x5f3451=this['_getTargetTop'](_0x162f9a,_0x162f9a['targetRect']);this['_setItemTop'](_0x5d48af,_0x5f3451);}['_getTargetTop'](_0x318901,_0x145eb1){if(null===_0x145eb1)return 0x0;if(_0x318901['target']instanceof _0x436169)return _0x145eb1['top'];{const _0x403506=new _0x436169(this['view']['element'])['top'];return _0x145eb1['top']-_0x403506;}}['_setItemTop'](_0x4aec82,_0x237dd0,_0x223897=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x223897&&(_0x237dd0=Math['max'](_0x237dd0,this['_getMaxAvailableTop'](_0x4aec82))),_0x4aec82['top']=_0x237dd0;}['_getMaxAvailableTop'](_0x137e7d){let _0x5996ca=this['_getItemBefore'](_0x137e7d),_0xb73c4b=0x0;for(;_0x5996ca;)_0x5996ca['updateHeight'](),_0xb73c4b+=this['_spaceBetweenItems']+_0x5996ca['height'],_0x5996ca=this['_getItemBefore'](_0x5996ca);return _0xb73c4b;}}function G(_0x5009f2,_0x205d11){return Math['max'](_0x5009f2-_0x205d11,0x0);}function g(_0x51497b){return null!==_0x51497b&&'object'==typeof _0x51497b&&0x1===_0x51497b['nodeType'];}class e extends _0x1c3a7a{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46d500){super(_0x46d500),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x7eb5c5(),this['_refreshPositioningDebounced']=_0x5d3d29(()=>{_0x46d500['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x8912a4=this['context']['plugins']['get'](j),_0x17b995=this['context']['plugins']['get'](z);_0x8912a4['register']('wideSidebar',this),_0x17b995['container']&&_0x8912a4['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x47e6c4){if(_0x47e6c4===this['activeAnnotation'])return;const _0x49295c=this['context']['plugins']['get'](z);_0x49295c['_activeAnnotation']=_0x47e6c4;const _0x170714=this['activeAnnotation'];_0x49295c['refresh']({'blurredAnnotation':_0x170714,'activatedAnnotation':_0x47e6c4}),this['activeAnnotation']=_0x47e6c4;}['attach'](_0x53da4c){this['annotations']=_0x53da4c;const _0x55ec2b=this['context']['plugins']['get'](z);if(_0x55ec2b['_annotations']=_0x53da4c,this['isAttached'])throw new _0x13348f('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x55ec2b,'set:container',()=>{this['detach'](),this['listenTo'](_0x55ec2b,'change:container',_0x3c9ba9=>{_0x3c9ba9['off'](),this['attach'](_0x53da4c);});}),_0x55ec2b['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x472db7=_0x4fc463=>{_0x4fc463['updateTargetRect'](),_0x55ec2b['addAnnotation'](_0x4fc463);};for(const _0x17036f of _0x53da4c)_0x472db7(_0x17036f);this['listenTo'](_0x53da4c,'add',(_0x14dee7,_0x3fcdff)=>{_0x472db7(_0x3fcdff);}),this['listenTo'](_0x53da4c,'remove',(_0x19bc4b,_0x32d0c0,_0x1a7d31)=>{_0x55ec2b['rearrange']({'removedAnnotation':_0x32d0c0,'previousAnnotation':_0x53da4c['get'](_0x1a7d31-0x1),'nextAnnotation':_0x53da4c['get'](_0x1a7d31+0x1)}),_0x32d0c0===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x53da4c,'focus',(_0xe109ca,_0x4c052d)=>{this['setActiveAnnotation'](_0x4c052d);}),this['listenTo'](_0x53da4c,'blur',()=>{this['setActiveAnnotation'](null);});const _0x5b07bb=this['context']instanceof _0x4d6d98?this['context']['editors']:new _0x7eb5c5([this['context']]);for(const _0x4ab44a of _0x5b07bb)this['_integrateWithEditorAnnotations'](_0x4ab44a);this['listenTo'](_0x5b07bb,'add',(_0x51c6e1,_0x1c291a)=>{this['listenTo'](_0x1c291a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1c291a);});}),this['listenTo'](_0x5b07bb,'remove',(_0x1368d5,_0x1aaa56)=>{_0x1aaa56['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1aaa56['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x13348f('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x98b0dd=this['context']['plugins']['get'](z);_0x98b0dd['_detachFromContainer'](this['annotations']),this['stopListening'](_0x98b0dd),this['stopListening'](this['annotations']),this['context']instanceof _0x4d6d98&&this['stopListening'](this['context']['editors']);for(const _0x50aaa7 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x50aaa7);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2e8890){if(!_0x2e8890['plugins']['has']('EditorAnnotations'))return;const _0x4ff2f2=_0x2e8890['plugins']['get']('EditorAnnotations'),_0x52fe22=()=>{const _0x10a445=_0x4ff2f2['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x10a445[0x0]||null);};this['listenTo'](_0x4ff2f2,'refresh',_0x52fe22),this['listenTo'](_0x4ff2f2,'blur',(_0x1c5bd3,{isAnnotationTracked:_0x59a4e8})=>{this['activeAnnotation']&&_0x59a4e8(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4ff2f2,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x139f50=>{_0x4ff2f2['hasDomSelection']()&&(_0x52fe22(),_0x139f50['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4ff2f2);}['_destroyEditorAnnotationsIntegration'](_0x3ea809){this['stopListening'](_0x3ea809),this['_editorAnnotations']['remove'](_0x3ea809);}}class C extends _0x39d67e{['counterView'];constructor(_0x34606d){super(_0x34606d);const _0x148725=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x5beeee,_0xa1b43c)=>_0x5beeee?'...':_0xa1b43c['toString']()),this['set']('annotationType',''),this['icon']=_0x61886d,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x148725['to']('annotationType',_0x55dfc6=>'ck-annotation-counter__badge--'+_0x55dfc6),_0x148725['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x148725['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x1c3a7a{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6294e9){super(_0x6294e9),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x3935b2())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x7eb5c5(),this['_refreshPositioningDebounced']=_0x5d3d29(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x4ce13c(this['context']['locale']),this['balloonPanelView']=new _0x1669c2(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x30c6c0){this['annotations']=_0x30c6c0;const _0x3bf3f4=this['context']['plugins']['get'](z),_0x1d7ff8=this['balloonPanelView'];if(_0x3bf3f4['_annotations']=_0x30c6c0,this['isAttached'])throw new _0x13348f('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3bf3f4,'set:container',()=>{this['detach'](),this['listenTo'](_0x3bf3f4,'change:container',_0x1bb231=>{_0x1bb231['off'](),this['attach'](_0x30c6c0);});}),_0x3bf3f4['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4153b7=_0x2fdd6c=>{const _0x16831d=new C(this['context']['locale']);_0x3bf3f4['addAnnotation'](_0x2fdd6c,_0x16831d),this['_annotationToNarrowView']['set'](_0x2fdd6c,_0x16831d),_0x16831d['bind']('isDirty','annotationType','number')['to'](_0x2fdd6c['view'],'isDirty','type','length'),_0x16831d['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1d7ff8['content']['first']!==_0x2fdd6c['view']?(this['_showBalloon'](_0x2fdd6c),_0x2fdd6c['view']['element']['focus'](),this['setActiveAnnotation'](_0x2fdd6c)):this['setActiveAnnotation'](null);});};for(const _0xd08faf of _0x30c6c0)_0x4153b7(_0xd08faf);this['listenTo'](_0x30c6c0,'add',(_0x5593b6,_0x573f52)=>{_0x4153b7(_0x573f52);}),this['listenTo'](_0x30c6c0,'remove',(_0x577621,_0x28a6e1,_0x3cdde8)=>{this['_annotationToNarrowView']['get'](_0x28a6e1)['destroy'](),this['_annotationToNarrowView']['delete'](_0x28a6e1),_0x3bf3f4['rearrange']({'removedAnnotation':_0x28a6e1,'previousAnnotation':_0x30c6c0['get'](_0x3cdde8-0x1),'nextAnnotation':_0x30c6c0['get'](_0x3cdde8+0x1)}),_0x28a6e1===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x30c6c0,'focus',(_0x32d738,_0x2abcdd)=>{this['setActiveAnnotation'](_0x2abcdd);}),this['listenTo'](_0x30c6c0,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x146d9e,_0x5e8b1e)=>{_0x5e8b1e['keyCode']===_0x266af6['esc']&&_0x1d7ff8['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1d7ff8['content']['first']),this['_hideBalloon'](),_0x5e8b1e['stopPropagation'](),_0x5e8b1e['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x369138,_0x3a43cb)=>{const _0x250865=_0x3a43cb['target'];_0x1d7ff8['isVisible']&&_0x1d7ff8['element']['contains'](_0x250865)||_0x3bf3f4['view']['element']['contains'](_0x250865)||_0x369138['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x2b2078=>_0x2b2078['contains'](_0x250865))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x20ed14=this['context']instanceof _0x4d6d98?this['context']['editors']:new _0x7eb5c5([this['context']]);for(const _0x24fa76 of _0x20ed14)this['_integrateWithEditorAnnotations'](_0x24fa76);this['listenTo'](_0x20ed14,'add',(_0x2df62a,_0x14de08)=>{this['listenTo'](_0x14de08,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x14de08);});}),this['listenTo'](_0x20ed14,'remove',(_0x4830f2,_0x21ca41)=>{_0x21ca41['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x21ca41['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x8a56a5){if(_0x8a56a5===this['activeAnnotation'])return;const _0x3ee05d=this['context']['plugins']['get'](z);if(_0x3ee05d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x8a56a5,'disableAnimationOnActivatedAnnotation':!0x0}),_0x8a56a5)_0x3ee05d['getSidebarItemView'](_0x8a56a5)?this['_showBalloon'](_0x8a56a5):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x8a56a5;}['detach'](){if(!this['isAttached'])throw new _0x13348f('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x72c026=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x2b9970=>_0x2b9970['destroy']()),this['_annotationToNarrowView']['clear'](),_0x72c026['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4d6d98&&this['stopListening'](this['context']['editors']);for(const _0x219f98 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x219f98);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x575e52){if(!_0x575e52['plugins']['has']('EditorAnnotations'))return;const _0x1fbeae=_0x575e52['plugins']['get']('EditorAnnotations'),_0x53836c=this['context']['plugins']['get'](z),_0xeb48ba=this['annotations'],_0xcce384=this['balloonPanelView'],_0x33f698=()=>{const _0x2ac212=_0x1fbeae['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2ac212),this['setActiveAnnotation'](_0x2ac212[0x0]||null);};this['listenTo'](_0x1fbeae,'refresh',_0x33f698),this['listenTo'](_0x1fbeae,'blur',(_0x59f7c5,{isAnnotationTracked:_0x56d6c8})=>{this['activeAnnotation']&&_0x56d6c8(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1fbeae,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0xeb48ba,'blur',_0x5ecb25=>{_0x1fbeae['hasDomSelection']()&&_0x5ecb25['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x46fec7,_0x315555)=>{const _0x5d44f9=_0x315555['target'];_0xcce384['isVisible']&&_0xcce384['element']['contains'](_0x5d44f9)||_0x53836c['view']['element']['contains'](_0x5d44f9)||this['activeAnnotation']&&_0x1fbeae['hasDomSelection']()&&(_0x33f698(),_0x46fec7['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1fbeae);}['_destroyEditorAnnotationsIntegration'](_0x351617){_0x351617&&(this['stopListening'](_0x351617),this['_editorAnnotations']['remove'](_0x351617));}['_setSelectedAnnotations'](_0x58aca9){for(const _0x4b748b of this['_selectedAnnotations'])_0x58aca9['includes'](_0x4b748b)||this['_manuallyClosedAnnotationViews']['delete'](_0x4b748b['view']);this['_selectedAnnotations']=_0x58aca9;}['_refreshPositioning'](){const _0x5c9011=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x5c9011['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xba7773){if(this['_manuallyClosedAnnotationViews']['has'](_0xba7773['view']))return;const _0x154198=this['balloonPanelView']['content']['first'];_0x154198!==_0xba7773['view']?(_0x154198&&this['_detachListeners'](_0x154198),this['_attachListeners'](_0xba7773['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xba7773['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x31b1ee=this['balloonPanelView']['content']['first'],_0x350b88=_0x31b1ee&&this['annotations']['getByView'](_0x31b1ee);if(!_0x350b88||!this['_annotationToNarrowView']['has'](_0x350b88))return;const _0x55bb40=this['_annotationToNarrowView']['get'](_0x350b88)['element'],_0x4230b3=(function(){const _0x5116fc=_0x1669c2['defaultPositions'];return[_0x5116fc['southArrowNorthEast'],_0x5116fc['northArrowSouthEast'],_0x5116fc['southArrowNorth'],_0x5116fc['northArrowSouth'],_0x5116fc['southArrowNorthWest'],_0x5116fc['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x55bb40,'positions':_0x4230b3});}['_hideBalloon'](){const _0x8398fb=this['balloonPanelView'],_0x2ecb7b=_0x8398fb['content']['first'];_0x2ecb7b&&(this['_detachListeners'](_0x2ecb7b),_0x8398fb['unpin'](),_0x8398fb['content']['clear']());}['_attachListeners'](_0x4d9706){this['listenTo'](_0x4d9706,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4d9706,'Esc',(_0x16a403,_0x13c1e7)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4d9706),this['_hideBalloon'](),_0x13c1e7();});}['_detachListeners'](_0x353d49){this['stopListening'](_0x353d49);}}class c extends _0x4e6af8{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x479a8f,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a21f9){super(_0x4a21f9),_0x4a21f9['editing']['view']['addObserver'](_0x2585d2),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4a21f9['plugins']['get'](_0x479a8f),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x5d3d29(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x415029=this['editor']['plugins']['get'](j);_0x415029['context']===this['editor']&&(_0x415029['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x2e7b4b,_0x12cdc4)=>{const _0x27f8b6=this['_balloon'];if(this['isAttached']&&_0x27f8b6['visibleView']){const _0x36fab6=this['annotations']['getByView'](_0x27f8b6['visibleView']);_0x36fab6&&this['_closeAnnotation'](_0x36fab6),_0x12cdc4();}}));}['afterInit'](){const _0x306af7=this['editor']['plugins']['get'](j);_0x306af7['context']===this['editor']&&(_0x306af7['hasActive']()||_0x306af7['switchTo']('inline'));}['setActiveAnnotation'](_0x2ab0fb){_0x2ab0fb!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2ab0fb&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2ab0fb)&&this['_addAnnotationToBalloon'](_0x2ab0fb,!0x0),_0x2ab0fb['isActive']=!0x0),_0x2ab0fb||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2ab0fb);}['attach'](_0x5e5ff1){this['annotations']=_0x5e5ff1;const _0x400959=this['editor']['plugins']['get'](j),_0x2f5936=this['_balloon'];if(this['isAttached'])throw new _0x13348f('inlineannotations-attach-already-attached',this);if(_0x400959['context']!==this['editor'])throw new _0x13348f('inlineannotations-not-allowed-with-context',this);const _0x16ed2c=this['editor']['plugins']['get'](b);this['listenTo'](_0x16ed2c,'refresh',()=>{const _0x43df74=_0x16ed2c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x397a33,_0x4eb5b9;!this['_forceRefresh']&&(_0x397a33=_0x43df74,_0x4eb5b9=this['_selectedAnnotations'],_0x397a33['length']===_0x4eb5b9['length']&&_0x397a33['every'](_0x45865d=>_0x4eb5b9['includes'](_0x45865d)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x43df74),this['setActiveAnnotation'](_0x43df74[0x0]||null));}),this['listenTo'](_0x16ed2c,'blur',(_0x530bfe,{isAnnotationTracked:_0x29f75c})=>{this['activeAnnotation']&&_0x29f75c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x16ed2c,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3961c1,_0x60bdc8,_0x23f3a8)=>{_0x23f3a8||this['setActiveAnnotation'](null);}),this['listenTo'](_0x5e5ff1,'remove',(_0x30865b,_0x371782)=>{this['_removeAnnotationFromBalloon'](_0x371782),_0x371782===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2f5936,'change:visibleView',(_0x183ccc,_0x3844e6,_0x20a944,_0x1fb55d)=>{_0x1fb55d&&this['stopListening'](_0x1fb55d);const _0x503826=_0x5e5ff1['getByView'](_0x20a944);_0x20a944&&_0x503826&&(this['listenTo'](_0x20a944,'change:height',()=>{_0x2f5936['updatePosition']();}),this['listenTo'](_0x20a944,'Esc',()=>{this['_closeAnnotation'](_0x503826),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x503826&&this['setActiveAnnotation'](_0x503826));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x2f5936['visibleView']&&(_0x5e5ff1['getByView'](_0x2f5936['visibleView'])&&_0x2f5936['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x13348f('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x52a2b1 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x52a2b1);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x4a4f4f){for(const _0x3e798d of this['_selectedAnnotations'])_0x4a4f4f['includes'](_0x3e798d)||this['_manuallyClosed']['delete'](_0x3e798d);for(const _0x386514 of this['annotations'])_0x4a4f4f['includes'](_0x386514)||this['_removeAnnotationFromBalloon'](_0x386514);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x28f99e of _0x4a4f4f)this['_addAnnotationToBalloon'](_0x28f99e);}this['_selectedAnnotations']=_0x4a4f4f;}['_addAnnotationToBalloon'](_0xd2b598,_0x31ed59=!0x1){this['_manuallyClosed']['has'](_0xd2b598)||(this['_addedAnnotations']['has'](_0xd2b598)||this['_balloon']['hasView'](_0xd2b598['view'])||(this['_addedAnnotations']['add'](_0xd2b598),this['_balloon']['add']({'stackId':_0xd2b598['view']['id'],'view':_0xd2b598['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xd2b598)}})),_0x31ed59&&this['_balloon']['showStack'](_0xd2b598['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3c3e7f){const _0x247268=_0x3c3e7f['target'],_0x133be5=this['editor']['editing']['view'],_0x482c4a=_0x133be5['document']['selection']['getFirstRange'](),_0x2a9897=_0x133be5['domConverter']['viewRangeToDom'](_0x482c4a);if(_0x2a9897['collapse'](!0x0),_0x247268){if(_0x247268 instanceof _0x436169)return _0x247268;let _0x271c9f=[];for(const _0x50137e of _0x247268)_0x271c9f['push'](...F(_0x50137e['getClientRects']()));_0x271c9f=function(_0x5996e4){const _0x311f53=[];let _0x180103=_0x5996e4[0x0];for(let _0x2f4e68=0x1;_0x2f4e68<_0x5996e4['length'];_0x2f4e68++)P(_0x180103,_0x5996e4[_0x2f4e68])?_0x180103['width']+=_0x5996e4[_0x2f4e68]['width']:(_0x311f53['push'](_0x180103),_0x180103=_0x5996e4[_0x2f4e68]);return _0x311f53['push'](_0x180103),_0x311f53;}(_0x271c9f);const _0x2ba806=_0x2a9897['getBoundingClientRect']();return _0x271c9f['find'](_0x1b13ec=>_0x1b13ec['top']<=_0x2ba806['top']&&_0x1b13ec['bottom']>=_0x2ba806['bottom']&&_0x1b13ec['left']<=_0x2ba806['left']&&_0x1b13ec['right']>=_0x2ba806['right'])||_0x271c9f[0x0];}return _0x3c3e7f['targetRect']||_0x2a9897;}['_removeAnnotationFromBalloon'](_0x2aca91){this['_addedAnnotations']['has'](_0x2aca91)&&this['_balloon']['hasView'](_0x2aca91['view'])&&(this['_addedAnnotations']['delete'](_0x2aca91),this['_balloon']['remove'](_0x2aca91['view']));}['_closeAnnotation'](_0x1a4023){this['_manuallyClosed']['add'](_0x1a4023),this['_removeAnnotationFromBalloon'](_0x1a4023);}}function F(_0x22d78b){return Array['from'](_0x22d78b)['map'](DOMRect['fromRect']);}function P(_0x490046,_0x17d47a){return _0x490046['top']===_0x17d47a['top']&&_0x490046['bottom']===_0x17d47a['bottom']&&_0x490046['right']===_0x17d47a['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x2b7922,_0x43cf64){super(_0x2b7922),this['set']('isEmpty',!_0x43cf64['length']),this['focusTracker']=new _0x119ecb(),this['_annotationViews']=_0x43cf64,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x206411({'focusables':_0x43cf64,'focusTracker':this['focusTracker']}),this['listenTo'](_0x43cf64,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x43cf64,'remove',(_0xd266ab,_0x1215c7)=>{_0x1215c7['isActive']&&this['focus'](),_0x43cf64['length']||(this['isEmpty']=!0x0);});const _0x2482be=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x2b7922,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x43cf64},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2482be['if']('isEmpty','ck-hidden',_0x296dd3=>!_0x296dd3)]},'children':[{'text':N(_0x2b7922,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x5cb20a of this['_annotationViews'])this['focusTracker']['add'](_0x5cb20a['element']);this['_annotationViews']['on']('change',(_0x392c5e,{added:_0x1d9e4c,removed:_0x530cf7})=>{for(const _0x3e710c of _0x1d9e4c)this['focusTracker']['add'](_0x3e710c['element']);for(const _0x3869fd of _0x530cf7)this['focusTracker']['remove'](_0x3869fd['element']);});}}class p extends _0x1c3a7a{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x488f3e){super(_0x488f3e),this['archivedThreads']=new _0x7eb5c5();}['init'](){const _0x1d1c5f=this['context'],_0x1de003=_0x1d1c5f['plugins']['get'](o),_0xb1cfdc=_0x1d1c5f['plugins']['get'](y);this['listenTo'](_0x1de003,'addCommentThread',(_0x2027f8,{threadId:_0x4d5074})=>{const _0x3d5fa3=_0x1de003['getCommentThread'](_0x4d5074);_0x3d5fa3['archivedAt']&&this['archivedThreads']['add'](_0x3d5fa3,this['_calculatePosition'](_0x3d5fa3['archivedAt'])),this['listenTo'](_0x3d5fa3,'change:archivedAt',(_0x566f6b,_0x557c0d,_0x5dfd01)=>{_0x5dfd01?this['archivedThreads']['has'](_0x3d5fa3)||this['archivedThreads']['add'](_0x3d5fa3,this['_calculatePosition'](_0x3d5fa3['archivedAt'])):this['archivedThreads']['has'](_0x3d5fa3)&&this['archivedThreads']['remove'](_0x3d5fa3);});}),this['listenTo'](_0x1de003,'removeCommentThread',(_0x5daef3,{threadId:_0x578e90})=>{const _0x6a3170=_0x1de003['getCommentThread'](_0x578e90);this['stopListening'](_0x6a3170),this['archivedThreads']['has'](_0x6a3170)&&this['archivedThreads']['remove'](_0x6a3170);},{'priority':'highest'}),this['listenTo'](_0xb1cfdc['collection'],'focus',(_0x3fc9ee,_0x1b1025)=>{_0x1b1025['isVisible']||(_0x1b1025['isActive']=!0x0,_0xb1cfdc['activate'](_0x1b1025));});}['_calculatePosition'](_0x4a8cb9){const _0x113cff=[...this['archivedThreads']]['findIndex'](_0x31e53b=>_0x31e53b['archivedAt']<_0x4a8cb9);return _0x113cff>-0x1?_0x113cff:this['archivedThreads']['length'];}}class a extends _0x4e6af8{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x578bd5];}constructor(_0x283b53){super(_0x283b53),this['annotationViews']=new _0x42bc84(),this['_pendingThreads']=[];}['init'](){const _0x31ca77=this['editor'],_0x162580=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x31ca77['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x39d67e,!0x0)),_0x31ca77['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x471f23=this['_createCommentsArchiveButton'](_0x4dec93);return _0x471f23['set']({'role':'menuitemcheckbox'}),_0x471f23;});const _0x29019a=_0x31ca77['plugins']['get'](p),_0x13d287=_0x31ca77['plugins']['get']('Annotations'),_0x53fce6=_0x31ca77['plugins']['get']('CommentsRepository');_0x29019a['archivedThreads']['forEach'](_0x520d10=>{this['_handleNewThread'](_0x520d10);}),this['listenTo'](_0x29019a['archivedThreads'],'add',(_0x3c51ba,_0x945728)=>{this['_handleNewThread'](_0x945728);}),this['listenTo'](_0x13d287['collection'],'add',(_0x5b3f01,_0x56de02)=>{const _0x324ec1=this['_pendingThreads']['find'](_0x83237a=>{const _0x3368b9=_0x53fce6['_threadToController']['get'](_0x83237a);return _0x3368b9&&_0x56de02['innerView']===_0x3368b9['view'];});if(_0x324ec1){const _0x5e72ba=this['_calculatePosition'](_0x324ec1['archivedAt']);this['_addAnnotationToArchive'](_0x56de02,_0x5e72ba),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x324ec1),0x1);}}),this['listenTo'](_0x29019a['archivedThreads'],'remove',(_0xb7aaee,_0x514608)=>{const _0x65b4d3=_0x31ca77['config']['get']('collaboration.channelId');if(!_0x65b4d3||_0x514608['channelId']===_0x65b4d3){if(this['_pendingThreads']['includes'](_0x514608))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x514608),0x1);else{const _0x516c2c=_0x53fce6['_threadToController']['get'](_0x514608),_0x32d900=_0x13d287['getByInnerView'](_0x516c2c['view']);this['annotationViews']['remove'](_0x32d900['view']),this['stopListening'](_0x32d900),this['stopListening'](_0x32d900['focusableElements']);}}}),this['listenTo'](_0x13d287['collection'],'add',(_0x172446,_0x5b6174)=>{this['listenTo'](_0x5b6174,'escape',_0x162580);}),this['listenTo'](_0x13d287['collection'],'remove',(_0x2af214,_0xebd067)=>{this['stopListening'](_0xebd067,'escape',_0x162580);});}['_addAnnotationToArchive'](_0x40bac,_0x4b1d1d){this['listenTo'](_0x40bac,'set:isVisible',_0x519da3=>{_0x519da3['return']=!0x1,_0x519da3['stop']();}),this['annotationViews']['add'](_0x40bac['view'],_0x4b1d1d);}['_handleNewThread'](_0x4423f5){const _0x1fc15c=this['editor']['plugins']['get']('CommentsRepository'),_0x5c4c31=this['editor']['plugins']['get']('Annotations'),_0x3ffdac=this['editor']['config']['get']('collaboration.channelId');if(!_0x3ffdac||_0x4423f5['channelId']===_0x3ffdac){const _0x5dd798=_0x1fc15c['_threadToController']['get'](_0x4423f5);if(!_0x5dd798)return void this['_pendingThreads']['push'](_0x4423f5);const _0x17af9d=this['_calculatePosition'](_0x4423f5['archivedAt']),_0x37c648=_0x5c4c31['getByInnerView'](_0x5dd798['view']);_0x37c648['isVisible']&&_0x5c4c31['_visibleAnnotations']['remove'](_0x37c648),this['_addAnnotationToArchive'](_0x37c648,_0x17af9d);}}['_calculatePosition'](_0x1cf759){const _0x3bc661=this['editor']['config']['get']('collaboration.channelId'),_0xbf2efb=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x392cd4=>_0x392cd4['channelId']===_0x3bc661)['findIndex'](_0xfbe9e9=>_0xfbe9e9['archivedAt']<_0x1cf759);return _0xbf2efb<0x0||_0xbf2efb>this['annotationViews']['length']?this['annotationViews']['length']:_0xbf2efb-0x1;}['_toggleDialog'](){const _0x4c3164=this['editor'],_0x401dc4=_0x4c3164['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x4c3164['locale'],this['annotationViews'])),'commentsArchive'===_0x401dc4['id']?_0x401dc4['hide']():_0x401dc4['show']({'id':'commentsArchive','title':N(_0x4c3164['locale'],'COMMENTS_ARCHIVE'),'icon':_0xb693b5,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0xa729ff['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x51778a,_0x2a2454=!0x1){const _0x746195=this['editor']['locale'],_0x18d77b=this['editor']['plugins']['get']('Dialog'),_0x42cc0c=new _0x51778a(_0x746195);return _0x42cc0c['bind']('isEnabled')['to'](this,'isEnabled'),_0x42cc0c['bind']('isOn')['to'](_0x18d77b,'id',_0x2a9c75=>'commentsArchive'===_0x2a9c75),_0x42cc0c['set']({'label':N(_0x746195,'COMMENTS_ARCHIVE'),'icon':_0xb693b5,'isToggleable':!0x0}),_0x2a2454&&(_0x42cc0c['tooltip']=!0x0),this['listenTo'](_0x42cc0c,'execute',()=>this['_toggleDialog']()),_0x42cc0c;}['_hideDialogOnAnnotationEscape']=_0xe705a1=>{const _0xf73e5b=_0xe705a1['source'];if(!this['annotationViews']['has'](_0xf73e5b['view']))return;const _0x18c773=this['editor']['plugins']['get']('Dialog');_0x18c773['isOpen']&&'commentsArchive'===_0x18c773['id']&&(_0x18c773['hide'](),_0xe705a1['stop']());};}class gi extends _0x4e6af8{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};