@ckeditor/ckeditor5-comments 47.4.0-alpha.3 → 47.4.0-alpha.5

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 _0x2f4066,ContextPlugin as _0x1b2bbd,PendingActions as pt,Command as _0x46611b,Plugin as _0x2a5e1f,Context as _0x431a91}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x558b12,uid as _0x1995a1,KeystrokeHandler as jt,FocusTracker as _0x4caa2d,diff as _0x5beb37,Collection as _0x526483,Rect as _0x47ead6,CKEditorError as _0x56607d,first as _0x36c406,priorities as Wt,scrollViewportToShowTarget as ot,getEnvKeystrokeText as nt,toUnit as Dt,DomEmitterMixin as _0x5a737d,keyCodes as _0x3973e8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x571309,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x49074a,trimHtml as ts,LateFocusDropdownButtonView as _0x27e89e,Users as st,getDateTimeFormatter as It,hashObject as wt,getAllMarkersDomElementsSorted as it,surroundingMarkersDetector as et,FOCUS_ANNOTATION_KEYSTROKE as _0x168eac}from'ckeditor5-collaboration/dist/index.js';import{throttle as _0x164460,isEqual as yt,cloneDeep as At,set as Ct,unset as vt,debounce as _0x5ecd8f}from'es-toolkit/compat';import{IconUndo as _0x3ffce2,IconCheck as _0x17f5ba,IconPencil as _0x51cc86,IconRemoveComment as _0x23f35d,IconThreeVerticalDots as _0x5c2a10,IconAddComment as _0x47c879,IconCommentsArchive as _0x19c659}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x296577,ButtonView as _0x1af70f,ViewCollection as _0x25e068,createDropdown as _0x4b0183,ListView as _0x5d3a4e,focusChildOnDropdownOpen as _0x493b96,ListItemView as _0x368cbf,MenuBarMenuListItemButtonView as _0x498650,BodyCollection as _0x4fb94d,BalloonPanelView as _0x4d9f9b,ContextualBalloon as _0x1115cb,Dialog as _0x1afb04,DialogViewPosition as _0x3422a1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x18721f}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 _0x155695}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x30a956}from'@ckeditor/ckeditor5-widget/dist/index.js';class gt extends/* #__PURE__ -- @preserve */
24
- _0x558b12(){['model'];['view'];constructor(_0x341736,_0x48d66c){super(),this['model']=_0x341736,this['model']['_isAttached']=!0x0,this['view']=_0x48d66c,this['listenTo'](_0x48d66c,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x48d66c,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x48d66c,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x48d66c,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x48d66c,'addComment',(_0xdf3d0d,_0xda10af)=>this['addComment'](_0xda10af)),this['listenTo'](_0x48d66c,'updateComment',(_0x10adf8,_0x57c83c,_0x30fd24)=>this['updateComment'](_0x57c83c,_0x30fd24)),this['listenTo'](_0x48d66c,'removeComment',(_0x506078,_0x4edbc4)=>this['removeComment'](_0x4edbc4));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x82e5b1){this['model']['addComment']({'content':_0x82e5b1,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0xdf1ecd,_0x3eebf4){this['model']['getComment'](_0xdf1ecd)['update']({'content':_0x3eebf4});}['removeComment'](_0x43dd6b){this['model']['getComment'](_0x43dd6b)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x4d447a,_0x37b48c,_0x26936b){const t=_0x4d447a['t'];switch(_0x37b48c){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'},_0x26936b);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'},_0x26936b);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'},_0x26936b);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'},_0x26936b);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x26936b);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'},_0x26936b);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'},_0x26936b);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'},_0x26936b);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(_0x3ae710,_0x2d12e0){super(_0x3ae710);const _0xd9421e=_0x1995a1();this['main']=this['createCollection'](),this['editable']=new Vt(_0x3ae710,_0x2d12e0,void 0x0,{'label':()=>N(_0x3ae710,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x3ae710['uiLanguageDirection'],'lang':_0x3ae710['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0xd9421e},'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 Ot extends Ut{['view'];constructor(_0x494d29){super(_0x494d29),this['view']=new Rt(_0x494d29['locale'],_0x494d29['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x14a2f2=this['editor']['editing']['view'],_0x3a398d=this['view']['editable'],_0x5a74b5=_0x14a2f2['document']['getRoot']();_0x3a398d['name']=_0x5a74b5['rootName'],this['view']['render']();const _0x71b1b7=_0x3a398d['element'];this['setEditableElement'](_0x3a398d['name'],_0x71b1b7),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x14a2f2['attachDomRoot'](_0x71b1b7),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x558b12(_0x2f4066){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0xe30f91={}){function _0x1c7d75(_0x202b82){return _0x202b82['map'](_0x2c78f7=>String['fromCharCode'](_0x2c78f7))['join']('');}(_0xe30f91=Object['assign']({},_0xe30f91))['plugins']||(_0xe30f91['plugins']=hs['defaultPlugins']),super(_0xe30f91),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x1c7d75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c7d75([0x76,0x69,0x65,0x77])][_0x1c7d75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c7d75([0x61,0x75,0x74,0x6f]),this[_0x1c7d75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c7d75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c7d75([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c7d75([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c7d75([0x6f,0x6b])});}['create'](){const _0x52720f=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x52720f))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x1f3cae=>{const _0x5114e2=this['model']['document']['getRoot'](),_0x2e172e=_0x5114e2&&_0x5114e2['getChild'](_0x5114e2['childCount']-0x1);_0x1f3cae['setSelection'](_0x2e172e,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x392cca=this['editing']['view'],_0x2bf718=_0x392cca['document']['getRoot'](),_0x38689a=_0x2bf718['getChild'](0x0);_0x2bf718['childCount']>0x1||!_0x38689a||'p'!=_0x38689a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x392cca,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x38689a['placeholder']=this['placeholder']),Ft({'view':_0x392cca,'element':_0x38689a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x38689a);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x45cb8a,_0x10aace={}){super(_0x45cb8a),this['editor']=null,this['_editorConfig']=_0x10aace,this['set']('value',_0x10aace['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x45cb8a,'Reply...')),this['set']('submitLabel',N(_0x45cb8a,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x4caa2d(),this['focusCycler']=new _0x296577({'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',(_0x27ce51,_0x4b4a55)=>{this['cancelButtonView']['fire']('execute'),_0x4b4a55();}),this['keystrokes']['set']('Ctrl+Enter',(_0x456e30,_0xe170ce)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0xe170ce());}),this['on']('submit',(_0x3d0fbe,_0x23e127)=>{_0x23e127['length']>0xfde8?(alert(N(_0x45cb8a,'TOO_LONG_COMMENT_ALERT',[_0x23e127['length'],0xfde8])),_0x3d0fbe['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 _0x251277=this['editor'];this['element']['insertBefore'](_0x251277['ui']['element'],this['element']['firstChild']),_0x251277['model']['document']['on']('change',()=>this['value']=_0x251277['getData']()),_0x251277['bind']('placeholder')['to'](this),this['focusables']['add'](_0x251277['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x7f25ba){-0x1===_0x7f25ba?(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:_0x15ee69}=this,_0x4ba936=new _0x1af70f(_0x15ee69);return _0x4ba936['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4ba936['withText']=!0x0,_0x4ba936['bind']('label')['to'](this,'submitLabel'),_0x4ba936['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4ba936['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x580e7e,_0x17b139)=>!_0x17b139&&!!_0x580e7e['trim']()),_0x4ba936;}['_createCancelButton'](){const {locale:_0x5975d9}=this,_0x2c480d=new _0x1af70f(_0x5975d9);return _0x2c480d['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2c480d['label']=N(_0x5975d9,'Cancel'),_0x2c480d['withText']=!0x0,_0x2c480d['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2c480d;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x2969f2=>{this['focusTracker']['add'](_0x2969f2['element']);}),this['focusables']['on']('change',(_0x8c5c50,_0xc86ce5)=>{for(const _0x1c9cf0 of Array['from'](_0xc86ce5['added'])['reverse']())this['focusTracker']['add'](_0x1c9cf0['element']);});}}class ie extends kt{constructor(_0x3b8939,_0x2a4863,_0x269c1e){super(_0x3b8939),this['commentInputView']=new es(_0x3b8939,_0x269c1e),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x206636,_0x287322)=>_0x206636||!!_0x287322),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 _0x571309(_0x3b8939,_0x2a4863),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'](_0x4b29de){this['commentInputView']['focus'](_0x4b29de);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x3576bb,_0x77cfc8)=>{const {submitButtonView:_0x1fea46,cancelButtonView:_0x1133de,editor:_0x392f5e}=this['commentInputView'];[_0x1fea46['element'],_0x1133de['element'],_0x392f5e?_0x392f5e['editing']['view']['getDomRoot']():null]['filter'](_0x44005d=>_0x44005d)['some'](_0x50cbfd=>_0x50cbfd['contains'](_0x77cfc8['target']))||(this['focus'](),_0x77cfc8['preventDefault']());});}}class rs extends kt{constructor(_0x1b3514){super(_0x1b3514);const _0x26870a=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x26870a['to']('count',_0x362d2a=>N(_0x1b3514,'NUMBER_OF_COMMENTS',_0x362d2a))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x541986,_0x4aea7c,_0x25eaff){super(_0x541986);const _0x1ddcb0=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x4aea7c['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x4aea7c,this['_config']=_0x25eaff,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4caa2d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x296577({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x393cb1=>this['commentViews']['map'](_0x2256ee=>_0x2256ee['element'])['includes'](_0x393cb1['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x541986),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x4d185d=>_0x4d185d-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5501f9 of _0x4aea7c['comments'])this['_handleNewCommentModel'](_0x5501f9);this['_handleInfoComment'](),this['listenTo'](_0x4aea7c['comments'],'add',(_0x40fa7f,_0x1b8cf3)=>{const _0x3b6cfd=this['_calculatePosition'](_0x1b8cf3);this['length']++,this['_handleNewCommentModel'](_0x1b8cf3,_0x3b6cfd),this['refreshVisibleViews']();}),this['listenTo'](_0x4aea7c['comments'],'remove',(_0x53c69c,_0x1a997f)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1a997f),this['refreshVisibleViews']();}),this['listenTo'](_0x4aea7c,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x4aea7c,'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',_0x1ddcb0['if']('length','ck-hidden',_0x54e439=>!_0x54e439)],'aria-label':N(_0x541986,'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'](_0x5bf590){-0x1===_0x5bf590?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4e6a6d of this['commentViews'])_0x4e6a6d['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x4cd84e,_0x33f864){const _0x4fa32b=new this['_config']['CommentView'](this['locale'],_0x4cd84e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4fa32b['viewUid']=_0x4cd84e['id'],_0x4fa32b['delegate']('removeComment')['to'](this),_0x4fa32b['delegate']('updateComment')['to'](this),_0x4fa32b['delegate']('resolveCommentThread')['to'](this),_0x4fa32b['delegate']('editorReady')['to'](this),_0x4fa32b['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4fa32b,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4fa32b,_0x33f864);}['_calculatePosition'](_0x3b6b5d){const _0xfae59e=this['_model']['_findOptimalIndex'](_0x3b6b5d);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x3b6b5d['authoredAt']?_0xfae59e-0x1:_0xfae59e:_0xfae59e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x79be99={'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'],_0x79be99,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x79be99));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4c70c3){const _0x30b2da=this['commentViews']['remove'](_0x4c70c3['id']);this['stopListening'](_0x30b2da),_0x30b2da['isEditMode']&&this['_updateHasDirtyComment'](),_0x30b2da['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x4461be=>_0x4461be['isEditMode']);}['_rearrangeCollapse'](){const _0x3ba43b=function(_0xe5c411){const _0x257933=new _0x526483();for(const _0x50dfe6 of _0xe5c411)_0x257933['add'](_0x50dfe6);return _0x257933;}(this['commentViews']),_0x5d2a8c=this['_collapsedCommentsView']['count'];for(let _0x2399e3=0x1;_0x2399e3<=_0x5d2a8c;_0x2399e3++)_0x3ba43b['remove'](0x1);for(const _0x56c804 of _0x3ba43b)_0x56c804['collapse']();_0x5d2a8c>0x0&&_0x3ba43b['add'](this['_collapsedCommentsView'],0x1),ns(_0x5beb37(Array['from'](this['visibleViews']),Array['from'](_0x3ba43b)),this['visibleViews'],_0x3ba43b);}['_rearrangeExpand'](){ns(_0x5beb37(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x60b2a1 of this['visibleViews'])_0x60b2a1['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x404e0c=>{this['focusTracker']['add'](_0x404e0c['element']),this['keystrokes']['listenTo'](_0x404e0c['element']);}),this['commentViews']['on']('change',(_0xd0291b,_0x201ca2)=>{for(const _0x3600d9 of _0x201ca2['removed'])this['focusTracker']['remove'](_0x3600d9['element']),this['keystrokes']['stopListening'](_0x3600d9['element']);for(const _0xdba6af of Array['from'](_0x201ca2['added'])['reverse']())this['focusTracker']['add'](_0xdba6af['element']),this['keystrokes']['listenTo'](_0xdba6af['element']);});}}function ns(_0x3cff9c,_0x570a7a,_0x5ce5df){let _0x24218e=0x0;for(const _0x5548b2 of _0x3cff9c)switch(_0x5548b2){case'insert':_0x570a7a['add'](_0x5ce5df['get'](_0x24218e),_0x24218e),_0x24218e++;break;case'delete':_0x570a7a['remove'](_0x24218e);break;case'equal':_0x24218e++;}}class oe extends kt{constructor(_0x4a3fc4){super(_0x4a3fc4);const _0x415bbc=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x415bbc['to']('contextValue',_0x3d83ae=>N(_0x4a3fc4,'THREAD_CONTEXT_LABEL',_0x3d83ae)),'tabindex':-0x1},'children':[{'text':_0x415bbc['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x39fab1,_0x4d5578){super(_0x39fab1);const _0x4a76eb=this['bindTemplate'];this['_model']=_0x4d5578,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4caa2d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x296577({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x1f25e4=>!!_0x1f25e4),this['bind']('contextValue')['to'](this['_model'],'context',_0xfd73cf=>_0xfd73cf&&_0xfd73cf['value']?this['_trimContextValue'](_0xfd73cf['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',_0x4a76eb['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 _0x2559f8=new _0x1af70f(this['locale']);return _0x2559f8['label']=N(this['locale'],'Reopen'),_0x2559f8['tooltip']=N(this['locale'],'Reopen'),_0x2559f8['icon']=_0x3ffce2,_0x2559f8['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x821733=>!_0x821733),_0x2559f8['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x307d85,_0x1e49e2)=>_0x307d85&&_0x1e49e2),_0x2559f8['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x2559f8;}['_trimContextValue'](_0x59ce41){if(_0x59ce41['length']<0x96)return _0x59ce41;const _0x22e0ee=_0x59ce41['lastIndexOf']('\x20',0x93);return _0x59ce41['substring'](0x0,_0x22e0ee>-0x1?_0x22e0ee:0x93)+'...';}['_attachContextActions'](){const _0x2bfa8d=this['element']['querySelector']('.ck-context'),_0x907ca3=_0x2bfa8d['querySelector']('.ck-context__value');this['listenTo'](_0x2bfa8d,'mouseenter',()=>{_0x907ca3['offsetWidth']<_0x907ca3['scrollWidth']&&_0x2bfa8d['classList']['add']('overlay');}),this['listenTo'](_0x2bfa8d,'mouseleave',()=>{_0x2bfa8d['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x310530 of this['focusables'])this['focusTracker']['add'](_0x310530['element']),this['keystrokes']['listenTo'](_0x310530['element']);}['_createContextView'](){const _0x537452=new oe(this['locale']);return _0x537452['bind']('contextValue')['to'](this),_0x537452;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x19a46c,_0x2a20fd,_0x9cee03,_0x11d008){super(_0x19a46c),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x2a20fd,this['_localUser']=_0x9cee03,this['_config']=_0x11d008,this['commentThreadHeaderView']=new Xt(_0x19a46c,_0x2a20fd),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x19a46c,N(_0x19a46c,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x19a46c,_0x2a20fd,Object['assign']({'CommentView':this['_config']['CommentView']},_0x11d008)),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',(_0x802e0c,_0x173a88)=>_0x802e0c||!!_0x173a88),this['bind']('isUnlinked')['to'](_0x2a20fd,'unlinkedAt',_0x49737a=>!!_0x49737a),this['bind']('ariaLabel')['to'](this,'length',_0x557959=>{const _0x6972d9=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x557959,_0x6972d9]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4caa2d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x296577({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4f6483=>_0x4f6483['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 _0x27e8c2=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x38758c=_0x27e8c2['commentInputView'];return _0x27e8c2['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x38758c,'value',(_0xaad831,_0x55e860,_0x1e96fa,_0x5e3171,_0x50bebc)=>!!_0x50bebc||!!_0x5e3171&&_0x1e96fa&&!_0x55e860||_0xaad831&&_0x1e96fa&&!_0x55e860),_0x38758c['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x646971,_0x29c1d5,_0x268e30)=>{let _0x27d829;return _0x27d829=_0x268e30&&_0x29c1d5?'Reply\x20to\x20reopen\x20discussion...':_0x646971?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x27d829);}),_0x38758c['bind']('submitLabel')['to'](this,'length',_0x4f2fb5=>N(this['locale'],_0x4f2fb5?'Reply':'Comment')),_0x38758c['on']('submit',(_0x516054,_0x4d1397)=>{this['fire']('addComment',_0x4d1397),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x38758c['on']('cancel',()=>{this['focus']();}),_0x38758c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x38758c['on']('cancel',_0x25c171=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x25c171['stop']());}),this['on']('change:isActive',(_0x5c8cfa,_0x470b7f,_0x38ef3b)=>{_0x38ef3b||this['length']||_0x38758c['value']||this['fire']('removeCommentThread');}),_0x27e8c2;}}class Tt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x324533,_0x4e025b,_0x31f584,_0x131f34){super(_0x324533,_0x4e025b,_0x31f584,_0x131f34),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x324533,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x1fd87b,_0x157be0,_0x4ddf11)=>{_0x4ddf11||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x58450c,_0x553cb9,_0x548b0a)=>{_0x548b0a&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1ba8cb=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1ba8cb['if']('isActive','ck-thread--active'),_0x1ba8cb['if']('isUnlinked','ck-thread--unlinked'),_0x1ba8cb['to']('actionIndicator',_0x3ab04c=>_0x3ab04c?'ck-thread--'+_0x3ab04c:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1ba8cb['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 _0x5c768d of this['commentsListView']['commentViews'])_0x5c768d['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x22c491}=this,_0x15fdd0=this['commentsListView']['commentViews']['get'](0x0);_0x15fdd0===this['_boundFirstCommentView']||_0x15fdd0['isSystemComment']||(this['_boundFirstCommentView']=_0x15fdd0,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x15fdd0,'actionIndicator',_0x4e3875=>'remove'===_0x4e3875?'remove':null),_0x15fdd0['placeholder']=N(_0x22c491,'Write\x20a\x20comment...'),_0x15fdd0['removeButton']['on']('execute',_0x168caa=>{_0x168caa['stop'](),this['showConfirm'](N(_0x22c491,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x15fdd0['focus']();}),_0x15fdd0['actionBar']['add'](this['resolveButton'],0x0),_0x15fdd0['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x11c0df=new _0x49074a(this['locale']);return _0x11c0df['label']=N(this['locale'],'Resolve'),_0x11c0df['tooltip']=N(this['locale'],'Resolve'),_0x11c0df['icon']=_0x17f5ba,_0x11c0df['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x11c0df['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4bbe27=>!_0x4bbe27),_0x11c0df['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0xf0698a,_0x2cca9c)=>_0xf0698a&&!_0x2cca9c),_0x11c0df['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x11c0df;}['_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(_0x1f718e){super(_0x1f718e),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x5a3db5,_0x4d4ecd,_0x543bed)=>{this['element']['innerHTML']=_0x543bed;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x46deb3,_0x43ff1b,_0x1ad57c){super(_0x46deb3),this['_model']=_0x43ff1b,this['_config']=_0x1ad57c,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x43ff1b,'content',_0x43ff1b,'authoredAt',(_0x2443b9,_0x282144)=>N(_0x46deb3,'COMMENT_ARIA_LABEL',[_0x43ff1b['author']['name'],_0x1ad57c['formatDateTime'](_0x282144),new DOMParser()['parseFromString'](_0x2443b9,'text/html')['body']['textContent'],_0x43ff1b['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x46deb3,N(_0x46deb3,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x25e068(),this['focusTracker']=new _0x4caa2d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x296577({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2d3ebc=>_0x2d3ebc['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 _0x2b12e3=new is(this['locale']);return _0x2b12e3['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x394190,_0x247ff1)=>_0x247ff1?ts(_0x394190,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x394190),_0x2b12e3;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x2b7f8d=new es(this['locale'],this['_config']['editorConfig']);return _0x2b7f8d['value']=this['_model']['content'],_0x2b7f8d['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2b7f8d['submitLabel']=N(this['locale'],'Save'),_0x2b7f8d['on']('submit',(_0x21b54b,_0x3cd00c)=>{this['fire']('updateComment',this['_model']['id'],_0x3cd00c),this['switchToDisplayMode'](),this['focus']();}),_0x2b7f8d['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x2b7f8d['once']('editorReady',()=>{_0x2b7f8d['focus']();}),_0x2b7f8d['createEditor'](),_0x2b7f8d['delegate']('editorReady')['to'](this),_0x2b7f8d['delegate']('editorDestroyed')['to'](this),_0x2b7f8d;}['_setupKeyboardNavigation'](){const _0x291f99=this['element'];this['keystrokes']['listenTo'](_0x291f99);for(const _0x36b011 of this['focusables'])this['focusTracker']['add'](_0x36b011['element']),this['keystrokes']['listenTo'](_0x36b011['element']);this['focusables']['on']('change',(_0x35c45c,_0x252ea3)=>{for(const _0x46ae8c of _0x252ea3['removed'])this['focusTracker']['remove'](_0x46ae8c['element']),this['keystrokes']['stopListening'](_0x46ae8c['element']);for(const _0x456692 of _0x252ea3['added'])this['focusTracker']['add'](_0x456692['element']),this['keystrokes']['listenTo'](_0x456692['element']);}),this['keystrokes']['set']('enter',(_0xca75ea,_0x32a19b)=>{_0x291f99===_0xca75ea['target']&&(this['focusCycler']['focusFirst'](),_0x32a19b());}),this['keystrokes']['set']('esc',(_0x3c080d,_0x2f5830)=>{_0x291f99!==_0x3c080d['target']&&(this['focus'](),_0x2f5830());});}}class _t extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x3d5203,_0x117f1f,_0x55f86){super(_0x3d5203,_0x117f1f,_0x55f86),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x3d5203,'Reply...')),this['bind']('authoredAt')['to'](_0x117f1f),this['bind']('resolvedAt')['to'](_0x117f1f),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 _0x571309(_0x3d5203,_0x117f1f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x117f1f,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2ff7f0=this['bindTemplate'],_0x19fa22=[{'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':_0x2ff7f0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2ff7f0['to']('authoredAt',_0x5c0b48=>this['_config']['formatDateTime'](_0x5c0b48))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2ff7f0['if']('isEditMode','ck-comment__actions--hidden'),_0x2ff7f0['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']&&_0x19fa22['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x2ff7f0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2ff7f0['if']('isEditMode','ck-comment--edit'),_0x2ff7f0['if']('isSystemComment','ck-comment--info'),_0x2ff7f0['to']('actionIndicator',_0x53cda0=>_0x53cda0?'ck-comment--'+_0x53cda0:'')],'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':_0x19fa22}]}]};}['_createEditButton'](){const _0x4c37ef=new _0x1af70f(this['locale']);return _0x4c37ef['label']=N(this['locale'],'Edit'),_0x4c37ef['icon']=_0x51cc86,_0x4c37ef['withText']=!0x0,_0x4c37ef['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x4c37ef['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1d3097=>!_0x1d3097),_0x4c37ef['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x4c37ef['on']('execute',()=>this['switchToEditMode']()),_0x4c37ef;}['_createRemoveButton'](){const _0x14b8a5=new _0x1af70f(this['locale']);return _0x14b8a5['label']=N(this['locale'],'Remove'),_0x14b8a5['icon']=_0x23f35d,_0x14b8a5['withText']=!0x0,_0x14b8a5['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x14b8a5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2f2b3a=>!_0x2f2b3a),_0x14b8a5['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x14b8a5['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x14b8a5;}['_createDropdown'](){const _0x3117ad=_0x4b0183(this['locale'],_0x27e89e),_0x4c1956=_0x3117ad['panelView']['children'],_0x22b71f=new _0x5d3a4e(this['locale']),_0x18641d=_0x3117ad['bindTemplate'];_0x493b96(_0x3117ad,()=>this['items']['find'](_0x4a4473=>_0x4a4473['isVisible'])),_0x3117ad['extendTemplate']({'attributes':{'class':[_0x18641d['if']('isVisible','ck-hidden',_0x383816=>!_0x383816)]}});const _0x9eb173=(_0x33af6e,_0xf4e6=-0x1)=>{const _0x4ee34e=new _0x368cbf(this['locale']);_0x4ee34e['children']['add'](_0x33af6e);const _0x206a69=_0xf4e6>-0x1?_0xf4e6:_0x22b71f['items']['length'];_0x22b71f['items']['add'](_0x4ee34e,_0x206a69);const _0x5d66ac=Array['from'](this['items']);_0x3117ad['unbind']('isEnabled','isVisible'),_0x3117ad['bind']('isEnabled')['toMany'](_0x5d66ac,'isEnabled',(..._0x270290)=>_0x270290['some'](_0x1d102d=>_0x1d102d)),_0x3117ad['bind']('isVisible')['toMany'](_0x5d66ac,'isVisible',(..._0x207ade)=>_0x207ade['some'](_0x4ccd7f=>_0x4ccd7f));};_0x3117ad['panelPosition']='sw',_0x3117ad['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x5c2a10});for(const _0x5a0c13 of this['items'])_0x9eb173(_0x5a0c13);return _0x4c1956['add'](_0x22b71f),_0x3117ad['listenTo'](this['items'],'add',(_0x78c2c6,_0x53e063,_0x192082)=>{_0x9eb173(_0x53e063,_0x192082);}),_0x3117ad['listenTo'](this['items'],'remove',(_0xbf1354,_0x1decd9,_0x13d501)=>{_0x22b71f['items']['remove'](_0x13d501);}),_0x3117ad;}['_attachActions'](_0x685bf3,_0x1d007b){const _0x7d8a3c=_0x685bf3&&_0x685bf3['element'];_0x7d8a3c&&(this['listenTo'](_0x7d8a3c,'mouseenter',()=>this['actionIndicator']=_0x1d007b),this['listenTo'](_0x7d8a3c,'focus',()=>this['actionIndicator']=_0x1d007b),this['listenTo'](_0x7d8a3c,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x7d8a3c,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x33a348=super['_createCommentInputView']();return _0x33a348['bind']('placeholder')['to'](this),_0x33a348;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Et(_0x51b804){const _0x2fd87a=_0x164460(_0x51b804,0x1e),_0x2ea8b7=new MutationObserver(_0x13d829=>{for(const _0x46d3d0 of _0x13d829)('attributes'==_0x46d3d0['type']&&'class'==_0x46d3d0['attributeName']||'childList'==_0x46d3d0['type']||'characterData'==_0x46d3d0['type'])&&_0x2fd87a();});return{'attach'(_0x50e925){_0x2ea8b7['observe'](_0x50e925,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2ea8b7['disconnect'](),_0x2fd87a['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x41e1f3,_0x20311b){super(_0x41e1f3),this['id']=_0x1995a1(),this['focusTracker']=new _0x4caa2d(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x2beb9f,_0x4493fd)=>this['fire']('Esc',_0x4493fd)),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']=Et(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x20311b),this['mainView']=_0x20311b;const _0x29ad2d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x29ad2d['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 _0x3f34fe=this['element']['clientHeight'];_0x3f34fe&&(this['height']=_0x3f34fe);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x558b12(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x42e831,target:_0x44b38c,type:_0x2ff2ed,isVisible:_0x1488a9=!0x0}){super(),this['view']=_0x42e831,this['view']['element']||this['view']['render'](),this['_type']=_0x2ff2ed,this['_target']=_0x44b38c,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x526483([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x35860a,_0x53c60d)=>{this['view']['focusTracker']['add'](_0x53c60d);}),this['focusableElements']['on']('remove',(_0x3f6ec4,_0x138484)=>{this['view']['focusTracker']['remove'](_0x138484);}),this['set']('isVisible',_0x1488a9);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x4a5711=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x4a5711),_0x4a5711;}get['targetRect'](){const _0x4dcdf3=this['target'];if(null===_0x4dcdf3)return null;if(_0x4dcdf3 instanceof _0x47ead6)return _0x4dcdf3;const _0x4e5069=_0x4dcdf3['filter'](_0x5f8d7d=>function(_0x2fb77f){const _0xb9df2c=_0x2fb77f['offsetParent'];if(_0xb9df2c)return!0x0;const _0x488cef=_0x2fb77f['getClientRects']()['item'](0x0);return!!_0x488cef;}(_0x5f8d7d));return 0x0===_0x4e5069['length']?null:new _0x47ead6(_0x4e5069[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x539bc8){this['view']['isActive']=_0x539bc8,this['view']['mainView']['isActive']=_0x539bc8;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x22a976){if(!(null===_0x22a976||_0x22a976 instanceof _0x47ead6||Array['isArray'](_0x22a976)&&_0x22a976['every'](_0x77342c=>fi(_0x77342c))))throw new _0x56607d('annotation-invalid-target',null,{'target':_0x22a976});}['_getNormalizedTarget'](){const _0x4433a7='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x4433a7)?[_0x4433a7]:_0x4433a7;}}function fi(_0x399339){return null!==_0x399339&&'object'==typeof _0x399339&&'nodeType'in _0x399339&&0x1===_0x399339['nodeType'];}class S extends _0x526483{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x88d815=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4caa2d(),this['_focusTracker']['on']('change:isFocused',(_0xbd3d22,_0x4f9738,_0x17c326)=>{_0x17c326||this['fire']('blur');});for(const _0x195a3a of _0x88d815)this['add'](_0x195a3a);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x139d1f){if(this['has'](_0x139d1f))throw new _0x56607d('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x139d1f['innerView'],_0x139d1f),this['_viewToAnnotation']['set'](_0x139d1f['view'],_0x139d1f);for(const _0x3ccff1 of _0x139d1f['focusableElements'])this['_focusTracker']['add'](_0x3ccff1);this['listenTo'](_0x139d1f['focusableElements'],'add',(_0x4bf6c2,_0x510b91)=>{this['_focusTracker']['add'](_0x510b91);}),this['listenTo'](_0x139d1f['focusableElements'],'remove',(_0x254f3d,_0x845f05)=>{this['_focusTracker']['remove'](_0x845f05);}),this['listenTo'](_0x139d1f['view']['focusTracker'],'change:isFocused',(_0x17347d,_0x3e8073,_0x184154)=>{_0x184154&&this['fire']('focus',_0x139d1f);}),_0x139d1f['updateTargetRect']();const _0x5800c4=this['_getOrderInContent'](_0x139d1f['view']['targetRect']);return super['add'](_0x139d1f,_0x5800c4);}['remove'](_0x38af82){if(!this['has'](_0x38af82))throw new _0x56607d('annotationcollection-not-existing-item',null);this['stopListening'](_0x38af82['view']['focusTracker']),this['stopListening'](_0x38af82['focusableElements']);for(const _0x22ed14 of _0x38af82['focusableElements'])this['_focusTracker']['remove'](_0x22ed14);return this['_viewToAnnotation']['delete'](_0x38af82['view']),this['_innerViewToAnnotation']['delete'](_0x38af82['innerView']),super['remove'](_0x38af82);}['getByInnerView'](_0x101272){return this['_innerViewToAnnotation']['get'](_0x101272);}['getByView'](_0x2d3e0b){return this['_viewToAnnotation']['get'](_0x2d3e0b);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x37a5e8 of this)_0x37a5e8['updateTargetRect']();this['_sort']();}['_sort'](){const _0xbc9c09=Array['from'](this)['sort']((_0x1062e9,_0x2e075b)=>w(_0x1062e9['view']['targetRect'],_0x2e075b['view']['targetRect']));for(let _0x417a75=_0xbc9c09['length']-0x1;_0x417a75>0x0;_0x417a75--){const _0x7e46c8=_0xbc9c09[_0x417a75];_0x417a75!==this['getIndex'](_0x7e46c8)&&(this['remove'](_0x7e46c8),this['add'](_0x7e46c8));}}['_getOrderInContent'](_0x127032){let _0x26b376=0x0;if(!_0x127032)return this['length'];for(const _0x4d02ad of this){const _0x29e55b=_0x4d02ad['view']['targetRect'];if(_0x29e55b){if(w(_0x127032,_0x29e55b)<0x0)return _0x26b376;_0x26b376++;}}return _0x26b376;}}function v({source:_0x4d31a2,target:_0x11f9a5,filter:_0x1dcf0f}){for(const _0x5866be of _0x4d31a2)_0x1dcf0f(_0x5866be)&&_0x11f9a5['add'](_0x5866be);_0x11f9a5['listenTo'](_0x4d31a2,'add',(_0x47684e,_0x1eb5db)=>{_0x1dcf0f(_0x1eb5db)&&_0x11f9a5['add'](_0x1eb5db);}),_0x11f9a5['listenTo'](_0x4d31a2,'remove',(_0x3db561,_0x2e02d6)=>{_0x11f9a5['has'](_0x2e02d6)&&_0x11f9a5['remove'](_0x2e02d6);});}function w(_0x4057f1,_0xb61f07){if(null===_0x4057f1&&null===_0xb61f07)return 0x0;if(null===_0x4057f1)return-0x1;if(null===_0xb61f07)return 0x1;const _0x789291=_0x4057f1['top']-_0xb61f07['top'];return 0x0==_0x789291?_0x4057f1['left']-_0xb61f07['left']:_0x789291;}class y extends _0x1b2bbd{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f731f){if(super(_0x1f731f),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1f731f instanceof _0x2f4066){const _0x343d16=_0x1f731f['locale'];_0x1f731f['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x343d16,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x343d16,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x343d16,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x343d16,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x343d16,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x343d16,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x343d16,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x4a90d8){this['collection']['add'](_0x4a90d8);}['remove'](_0x5bb895){this['collection']['remove'](_0x5bb895),_0x5bb895['destroy']();}['refreshVisibility'](){for(const _0x5ca173 of this['collection'])_0x5ca173['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x456311){return this['collection']['getByInnerView'](_0x456311);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x325c26 of this['collection'])_0x325c26['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x3ff49d){this['fire']('_activateAnnotation',_0x3ff49d);}['createAnnotation'](_0x572299){return new T(_0x572299);}['createAnnotationView'](_0x416195,_0x6d1a2c){return new E(_0x416195,_0x6d1a2c);}['_addActiveAnnotation'](_0x258008){const _0x342207=new Set(this['activeAnnotations']);_0x342207['add'](_0x258008),this['activeAnnotations']=_0x342207;}['_removeActiveAnnotation'](_0x98508c){const _0x11a954=new Set(this['activeAnnotations']);_0x11a954['delete'](_0x98508c),this['activeAnnotations']=_0x11a954;}['_bindAnnotationsToVisibleAnnotations'](){const _0x26c6f8=this['collection'],_0x480e72=this['_visibleAnnotations'];function _0x51fc3b(_0x1919db){const _0x4de98a=_0x1919db['source'];_0x4de98a['isVisible']&&!_0x480e72['has'](_0x4de98a)?_0x480e72['add'](_0x4de98a):!_0x4de98a['isVisible']&&_0x480e72['has'](_0x4de98a)&&_0x480e72['remove'](_0x4de98a),_0x4de98a['view']['focusTracker']['remove'](_0x4de98a['view']['element']),_0x4de98a['view']['focusTracker']['add'](_0x4de98a['view']['element']);}this['listenTo'](_0x26c6f8,'add',(_0x214600,_0xcc67ad)=>{_0xcc67ad['isVisible']&&_0x480e72['add'](_0xcc67ad),this['listenTo'](_0xcc67ad,'change:isVisible',_0x51fc3b);}),this['listenTo'](_0x26c6f8,'remove',(_0x4fc88c,_0x114426)=>{_0x480e72['has'](_0x114426)&&_0x480e72['remove'](_0x114426),this['stopListening'](_0x114426,'change:isVisible',_0x51fc3b);});}['_setupEnterAnnotationKeystroke'](){const _0x52187a=_0x6e9977=>{_0x6e9977['on']('ready',()=>{_0x6e9977['keystrokes']['set'](_0x155695,(_0x484137,_0x54030a)=>{const _0x2caac0=_0x36c406(this['activeAnnotations']['values']());_0x2caac0&&(_0x2caac0['view']['focus'](),_0x54030a());});});};this['context']instanceof _0x2f4066?_0x52187a(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x328921,_0x358715)=>{_0x52187a(_0x358715);});}['_setupEscapeAnnotationHandling'](){const _0x27c66c=_0x271ed5=>{const _0x15feae=_0x271ed5['source'],_0x28abcb=[];let _0x6c6020;if(Array['isArray'](_0x15feae['target'])){_0x6c6020=_0x15feae['target'][0x0],this['context']instanceof _0x2f4066?_0x28abcb['push'](this['context']):this['context']['editors']&&_0x28abcb['push'](...this['context']['editors']);for(const _0x2dca4e of _0x28abcb)for(const _0x220ba0 of _0x2dca4e['editing']['view']['domRoots']['values']())if(_0x220ba0['contains'](_0x6c6020))return void _0x2dca4e['editing']['view']['focus']();_0x6c6020['focus']();}};this['listenTo'](this['collection'],'add',(_0x117cbf,_0x595153)=>{this['listenTo'](_0x595153,'escape',_0x27c66c,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x41cfeb,_0x565b0d)=>{this['stopListening'](_0x565b0d,'escape',_0x27c66c);});}}const bt=Symbol('noChannel'),Nt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x1b2bbd{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,pt,st];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x398657){super(_0x398657),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x50b79e=this['context']['config'];_0x50b79e['define']('comments.maxCommentsWhenCollapsed',0x2),_0x50b79e['define']('comments.maxThreadTotalWeight',0x1f4),_0x50b79e['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x50b79e['define']('comments.CommentThreadView',Tt),_0x50b79e['define']('comments.CommentView',_t),_0x50b79e['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x4dc3b1=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x1bb378,_0x316898)=>this['_addCommentThread'](_0x316898)),this['on']('submitCommentThread',(_0x35b02e,_0x222e00)=>this['_submitCommentThread'](_0x222e00)),this['on']('resolveCommentThread',(_0x261b7b,_0x4e6b5e)=>this['_resolveCommentThread'](_0x4e6b5e)),this['on']('resolveCommentThread',(_0x413c50,_0x290159)=>this['_updateActiveAnnotation'](_0x290159),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x377b8d,_0x22db8f)=>this['_reopenCommentThread'](_0x22db8f)),this['on']('reopenCommentThread',(_0x1ec52c,_0x407ab9)=>this['_updateActiveAnnotation'](_0x407ab9),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4c685e,_0x15e215)=>this['_removeCommentThread'](_0x15e215)),this['on']('updateCommentThread',(_0x2ed20f,_0x3d9cb5)=>this['_updateCommentThread'](_0x3d9cb5)),this['on']('updateCommentThread',(_0x26b859,_0x158a50)=>this['_updateActiveAnnotation'](_0x158a50),{'priority':'lowest'}),this['on']('addComment',(_0x181eb5,_0x1ccf0d)=>this['_addComment'](_0x1ccf0d)),this['on']('updateComment',(_0x1e8ef2,_0x366020)=>this['_updateComment'](_0x366020)),this['on']('removeComment',(_0x83115d,_0x438b6c)=>this['_removeComment'](_0x438b6c)),this['on']('addComment',(_0x56c1e9,{threadId:_0x2f9a1f,isFromAdapter:_0xa9b5af})=>{if(_0xa9b5af)return;const _0x2612fb=this['getCommentThread'](_0x2f9a1f),_0x4800ac=_0x2612fb&&this['_threadToController']['get'](_0x2612fb);_0x4800ac&&_0x4800ac['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x4dc3b1,'change:activeAnnotations',(_0x3f3639,_0x54676f,_0x490908)=>{const _0xc602f3=Array['from'](_0x490908)['map'](_0x11ecfa=>this['_viewToController']['get'](_0x11ecfa['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xc602f3?_0xc602f3['model']:null;});}set['adapter'](_0x3d516a){if(this['_adapter'])throw new _0x56607d('commentsrepository-adapter-already-set');this['_adapter']=_0x3d516a;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x581b78=bt,threadId:_0x4a8e0d=_0x1995a1(),comments:_0x2d891f=[],unlinkedAt:_0x260682=null,resolvedAt:_0xe386f9=null,resolvedBy:_0x5b123f=null,target:_0x52244b=null,context:_0x114e88=null,attributes:_0x19da82={},isResolvable:_0x2d9320=!0x0,isSubmitted:_0x37b8d4=!0x1,isFromAdapter:_0x2e032d=!0x1}={}){return this['fire'](xt('addCommentThread',_0x581b78),{'channelId':_0x581b78,'threadId':_0x4a8e0d,'comments':_0x2d891f,'unlinkedAt':_0x260682,'resolvedAt':_0xe386f9,'resolvedBy':_0x5b123f,'target':_0x52244b,'context':_0x114e88,'attributes':_0x19da82,'isFromAdapter':_0x2e032d,'isResolvable':_0x2d9320,'isSubmitted':_0x37b8d4}),this['getCommentThread'](_0x4a8e0d);}['openNewCommentThread']({channelId:_0x2480f2=bt,threadId:_0x14511e=_0x1995a1(),target:_0x471220,context:_0x1ef1a8=null,isResolvable:_0x35ec20=!0x0}){if(this['_readOnlyChannels']['has'](_0x2480f2)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x471220)throw new _0x56607d('commentsrepository-missing-target');const _0x414c40=this['addCommentThread']({'channelId':_0x2480f2,'threadId':_0x14511e,'target':_0x471220,'context':_0x1ef1a8,'isResolvable':_0x35ec20});if(!_0x414c40)return null;const _0x2fd4dc=this['_threadToController']['get'](_0x414c40),_0x2c80e6=_0x2fd4dc['view']['commentThreadInputView']['commentInputView'],_0xf7ad06=this['context']['plugins']['get'](y),_0x3b0b84=_0xf7ad06['getByInnerView'](_0x2fd4dc['view']);return _0xf7ad06['activate'](_0x3b0b84),_0x2c80e6['once']('editorReady',()=>_0x2c80e6['focus']()),_0x414c40;}['hasCommentThread'](_0x37d65e){if('string'!=typeof _0x37d65e)throw new _0x56607d('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x37d65e);}['updateCommentThread']({channelId:_0x315f89=bt,threadId:_0x5c256f,context:_0x1a3d54,unlinkedAt:_0x30afca,attributes:_0x32754b,isFromAdapter:_0x414c5f=!0x1}){return this['fire'](xt('updateCommentThread',_0x315f89),{'channelId':_0x315f89,'threadId':_0x5c256f,'context':_0x1a3d54,'unlinkedAt':_0x30afca,'attributes':_0x32754b,'isFromAdapter':_0x414c5f}),this['getCommentThread'](_0x5c256f);}['getCommentThread'](_0x5d8d21){if('string'!=typeof _0x5d8d21)throw new _0x56607d('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x5d8d21);}['fetchCommentThread']({channelId:_0xe14e18,threadId:_0x25dd28}={}){const _0x341bc9=this['getCommentThread'](_0x25dd28);if(_0x341bc9)return Promise['resolve'](_0x341bc9);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x56607d('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0xe14e18,'threadId':_0x25dd28})['then'](_0x3884f7=>this['hasCommentThread'](_0x25dd28)?this['getCommentThread'](_0x25dd28):_0x3884f7?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0xe14e18},_0x3884f7)):void 0x0)['catch'](_0x3e5449=>{throw console['error'](_0x3e5449),new _0x56607d('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x2acac2,skipNotAttached:_0x48f0d2=!0x1,skipEmpty:_0xfdc7e7=!0x1,toJSON:_0x168a5a=!0x1}={}){const _0x360285=[];for(const _0x4f95f6 of this['_threads']['values']())_0x2acac2&&_0x4f95f6['channelId']!==_0x2acac2||_0x48f0d2&&!_0x4f95f6['isAttached']||_0xfdc7e7&&0x0===_0x4f95f6['length']||_0x360285['push'](_0x4f95f6);return _0x168a5a?_0x360285['map'](_0x51ca09=>_0x51ca09['toJSON']()):_0x360285;}['getAnnotationForCommentThread'](_0x45e390){const _0x2f0c3b=this['_threadToController']['get'](_0x45e390);if(!_0x2f0c3b)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x2f0c3b['view'])||null;}['getCommentThreadForAnnotation'](_0x2851ef){const _0x217f97=this['_viewToController']['get'](_0x2851ef['innerView']);return _0x217f97?_0x217f97['model']:null;}['setActiveCommentThread'](_0x2bac42){const _0x2694e3=this['context']['plugins']['get'](y);if(!_0x2bac42)return void(this['activeCommentThread']&&_0x2694e3['deactivateAll']());const _0x3fed1b=this['getCommentThread'](_0x2bac42);if(!_0x3fed1b)throw new _0x56607d('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x2bac42});if(!this['_threadToController']['has'](_0x3fed1b))throw new _0x56607d('commentsrepository-active-not-attached',null,{'threadId':_0x2bac42});const _0x1d22e9=_0x2694e3['getByInnerView'](this['_threadToController']['get'](_0x3fed1b)['view']);_0x2694e3['activate'](_0x1d22e9);}['switchReadOnly'](_0xbda3dd,_0x516c68){_0xbda3dd?this['_readOnlyChannels']['add'](_0x516c68):this['_readOnlyChannels']['delete'](_0x516c68),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x5289cf){return this['_readOnlyChannels']['has'](_0x5289cf)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0xc6a30,_0x20208e){return new gt(_0xc6a30,_0x20208e);}['setPermissions'](_0x128cd3,_0x1ca074=bt){this['_permissions']['set'](_0x1ca074,_0x128cd3),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x158cd2=bt){return this['_permissions']['has'](_0x158cd2)?this['_permissions']['get'](_0x158cd2):Nt;}['_addCommentThread']({channelId:_0x2651ff,threadId:_0x26a75d,comments:_0x2da949,unlinkedAt:_0x557c4d,resolvedAt:_0xfcd210,resolvedBy:_0x326124,target:_0x5672bc,context:_0xd14dad,attributes:_0x17b48d,isFromAdapter:_0x18d159,isResolvable:_0x2fc372,isSubmitted:_0x30793e}){if('string'!=typeof _0x26a75d)throw new _0x56607d('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x26a75d});if(this['hasCommentThread'](_0x26a75d))throw new _0x56607d('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x26a75d});const _0x111d9f=new pi(this,{'channelId':_0x2651ff,'id':_0x26a75d,'context':_0xd14dad,'attributes':_0x17b48d,'unlinkedAt':_0x557c4d,'resolvedAt':_0xfcd210,'resolvedBy':_0x326124?this['context']['plugins']['get'](st)['getUser'](_0x326124):null,'isResolvable':_0x2fc372,'isSubmitted':_0x30793e||_0x18d159});this['_threads']['set'](_0x26a75d,_0x111d9f);for(const _0x5a4730 of _0x2da949)_0x111d9f['_add'](this['_createNewComment']({'threadId':_0x26a75d,..._0x5a4730}));return _0x5672bc&&_0x111d9f['attachTo'](_0x5672bc),_0x18d159||!_0x111d9f['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x2651ff,'threadId':_0x26a75d});}['_submitCommentThread']({channelId:_0x17d42a,threadId:_0x378cc2}){if(!this['hasCommentThread'](_0x378cc2))throw new _0x56607d('commentsrepository-missing-comment-thread',this);const _0x423454=this['getCommentThread'](_0x378cc2);if(_0x423454['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x3e908f,comments:_0x4a8a90,resolvedAt:_0x318a9a,resolvedBy:_0x11e0ec,context:_0x516287,attributes:_0x4dff94}=_0x423454,_0x290aff=this['context']['plugins']['get']('PendingActions'),_0x1cc65a=_0x290aff['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x17d42a,'threadId':_0x3e908f,'comments':_0x4a8a90['map'](_0x2f8a75=>_0x2f8a75['toJSON']()),'resolvedAt':_0x318a9a,'resolvedBy':_0x11e0ec?_0x11e0ec['id']:_0x11e0ec,'context':_0x516287,'attributes':_0x4dff94})['then'](({comments:_0x4f9a48})=>{_0x290aff['remove'](_0x1cc65a);for(const _0x2592b0 of _0x4f9a48)this['_updateComment']({'channelId':_0x17d42a,'threadId':_0x378cc2,'commentId':_0x2592b0['commentId'],'createdAt':_0x2592b0['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xabc318=>{throw console['error'](_0xabc318),new _0x56607d('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4051ab,target:_0x3ebc8d}){const _0xf8cbbd=this['getCommentThread'](_0x4051ab);if(!_0xf8cbbd)throw new _0x56607d('commentsrepository-attach-missing-comment-thread',this);const _0x5b6242=this['context']['plugins']['get']('PendingActions'),_0x3c918e=this['context']['plugins']['get'](y),_0x3215cc=this['_createCommentThreadView'](_0xf8cbbd),_0x3ed71e=new gt(_0xf8cbbd,_0x3215cc);let _0x3fac87=null;_0x3215cc['on']('change:isDirty',(_0xd52106,_0x57b94d,_0x6cfee3)=>{_0x6cfee3?_0x3fac87=_0x5b6242['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x3fac87&&(_0x5b6242['remove'](_0x3fac87),_0x3fac87=null);}),this['_threadToController']['set'](_0xf8cbbd,_0x3ed71e),this['_viewToController']['set'](_0x3215cc,_0x3ed71e);const _0x307289=new E(this['context']['locale'],_0x3215cc);_0x307289['bind']('length')['to'](_0x3215cc),_0x307289['bind']('isDirty')['to'](_0x3215cc,'isDirty',_0x3215cc,'length',(_0x4db444,_0x3703ae)=>_0x4db444||!_0x3703ae),_0x307289['bind']('isActive')['to'](_0x3215cc),_0x307289['type']='comment';const _0x555d86=new T({'view':_0x307289,'target':_0x3ebc8d,'type':'comment','isVisible':!_0xf8cbbd['archivedAt']&&!!('function'==typeof _0x3ebc8d?_0x3ebc8d():_0x3ebc8d)});return _0x3215cc['on']('escape',()=>{_0x555d86['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3215cc,_0x555d86),_0x3c918e['add'](_0x555d86),_0x555d86;}['_bindAnnotationToEditors'](_0x17cee8,_0x4f3c3c){this['listenTo'](_0x17cee8,'editorReady',(_0x3807a8,_0x531a4e)=>{const _0x316b2d=_0x531a4e['ui']['view']['body']['bodyCollectionContainer'];_0x4f3c3c['focusableElements']['add'](_0x316b2d),this['context']instanceof _0x2f4066&&this['context']['ui']['focusTracker']['add'](_0x316b2d);},{'priority':'highest'}),this['listenTo'](_0x17cee8,'editorDestroyed',(_0x1230b5,_0x2c7f77)=>{const _0x379f12=_0x2c7f77['ui']['view']['body']['bodyCollectionContainer'];_0x4f3c3c['focusableElements']['has'](_0x379f12)&&_0x4f3c3c['focusableElements']['remove'](_0x379f12),this['context']instanceof _0x2f4066&&this['context']['ui']['focusTracker']['remove'](_0x379f12);});}['_unbindEditors'](_0x5d4c43){this['stopListening'](_0x5d4c43,'editorReady'),this['stopListening'](_0x5d4c43,'editorDestroyed');}['_createCommentThreadView'](_0x4947a5){const _0x2c21f5=this['context']['plugins']['get'](st),{config:_0x552302,locale:_0x56a8e8}=this['context'],_0x374b49=It(_0x552302['get']('locale'),_0x56a8e8);return new(0x0,(_0x552302['get']('comments'))['CommentThreadView'])(_0x56a8e8,_0x4947a5,_0x2c21f5['me'],{'editorConfig':{..._0x552302['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x552302['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x552302['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x552302['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x552302['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x374b49,'CommentView':_0x552302['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x4944aa,channelId:_0x176480,resolvedAt:_0x16a6ce,resolvedBy:_0x5cff36,isFromAdapter:_0x520a72}){if(!this['hasCommentThread'](_0x4944aa))throw new _0x56607d('commentsrepository-missing-comment-thread',null,{'threadId':_0x4944aa});const _0x35aac6=this['getCommentThread'](_0x4944aa);if(_0x35aac6['isResolved'])throw new _0x56607d('commentsrepository-resolved-comment-thread',null,{'threadId':_0x4944aa});const _0x51011b=this['context']['plugins']['get'](st);if(_0x35aac6['resolvedBy']=_0x51011b['getUser'](_0x5cff36),_0x35aac6['resolvedAt']=_0x16a6ce,_0x520a72||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5a04ca=this['context']['plugins']['get']('PendingActions'),_0xf48fbf=_0x5a04ca['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x176480,'threadId':_0x4944aa})['then'](({resolvedAt:_0x2b547,resolvedBy:_0x12b4e7})=>{_0x5a04ca['remove'](_0xf48fbf),_0x35aac6['resolvedBy']['id']!==_0x12b4e7&&(_0x35aac6['resolvedBy']=_0x51011b['getUser'](_0x12b4e7)),_0x35aac6['resolvedAt']=_0x2b547;})['catch'](_0x267320=>{throw console['error'](_0x267320),new _0x56607d('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x37fd11,channelId:_0x3959a0,isFromAdapter:_0x441634}){if(!this['hasCommentThread'](_0x37fd11))throw new _0x56607d('commentsrepository-missing-comment-thread',null,{'threadId':_0x37fd11});const _0x235dd5=this['getCommentThread'](_0x37fd11);if(!_0x235dd5['isResolved'])throw new _0x56607d('commentsrepository-reopen-comment-thread',null,{'threadId':_0x37fd11});if(_0x235dd5['resolvedBy']=null,_0x235dd5['resolvedAt']=null,_0x441634||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5a19fd=this['context']['plugins']['get']('PendingActions'),_0x57ca11=_0x5a19fd['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x3959a0,'threadId':_0x37fd11})['then'](()=>_0x5a19fd['remove'](_0x57ca11))['catch'](_0x4a07ae=>{throw console['error'](_0x4a07ae),new _0x56607d('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5d843e,isFromAdapter:_0x8c7302}){const _0x567190=this['getCommentThread'](_0x5d843e);if(!_0x567190)throw new _0x56607d('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5d843e),this['_threads']['delete'](_0x5d843e),!_0x567190['isSubmitted']||_0x8c7302||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x175bc0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x438ec6}=_0x567190,_0xfaf9a9=_0x175bc0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x438ec6,'threadId':_0x5d843e})['then'](()=>_0x175bc0['remove'](_0xfaf9a9))['catch'](_0x3b8ae2=>{throw console['error'](_0x3b8ae2),new _0x56607d('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x393ebc,unlinkedAt:_0x1c2895,context:_0x26260c,attributes:_0x1aa098,isFromAdapter:_0x540251}){if('string'!=typeof _0x393ebc)throw new _0x56607d('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x393ebc});if(!this['hasCommentThread'](_0x393ebc))throw new _0x56607d('commentsrepository-missing-comment-thread',null,{'threadId':_0x393ebc});const _0x288cfb=this['getCommentThread'](_0x393ebc);let _0x57365f=!0x1;if(void 0x0!==_0x26260c&&_0x288cfb['context']!==_0x26260c&&(_0x288cfb['context']=_0x26260c,_0x57365f=!0x0),void 0x0!==_0x1c2895&&_0x288cfb['unlinkedAt']!==_0x1c2895&&(_0x288cfb['unlinkedAt']=_0x1c2895,_0x57365f=!0x0),_0x1aa098&&!yt(_0x1aa098,_0x288cfb['attributes'])&&(_0x288cfb['attributes']=_0x1aa098,_0x57365f=!0x0),!_0x57365f)return Promise['resolve']();if(!_0x288cfb['isSubmitted']||_0x540251||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x47af45=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5d1a2f}=_0x288cfb,_0x3e41ec=_0x47af45['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x5d1a2f,'threadId':_0x393ebc,'context':_0x26260c,'unlinkedAt':_0x1c2895,'attributes':_0x1aa098})['then'](()=>_0x47af45['remove'](_0x3e41ec))['catch'](_0x221ad7=>{throw console['error'](_0x221ad7),new _0x56607d('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x45e9aa){const _0x5eab27=this['context']['plugins']['get'](y),_0x371ca5=this['getCommentThread'](_0x45e9aa);if(_0x371ca5['_isAttached']=!0x1,this['_threadToController']['has'](_0x371ca5)){const _0x509fe3=this['_threadToController']['get'](_0x371ca5),_0x38035a=_0x509fe3['view'],_0x20eabb=_0x5eab27['getByInnerView'](_0x38035a);this['_threadToController']['delete'](_0x371ca5),this['_viewToController']['delete'](_0x38035a),_0x20eabb&&_0x5eab27['remove'](_0x20eabb),_0x509fe3['destroy'](),_0x38035a['destroy']()['then'](()=>{this['_unbindEditors'](_0x38035a);});}}['_updateActiveAnnotation']({threadId:_0x3d88b0,resolvedAt:_0x3799e8,unlinkedAt:_0x303e3e}){const _0x48980e=!!_0x3799e8,_0x28a14a=this['context']['plugins']['get'](y),_0x511047=this['getCommentThread'](_0x3d88b0);if(this['_threadToController']['has'](_0x511047)){const _0x5011ea=this['_threadToController']['get'](_0x511047)['view'],_0x31aeea=_0x28a14a['getByInnerView'](_0x5011ea);_0x31aeea&&(_0x48980e&&_0x28a14a['_removeActiveAnnotation'](_0x31aeea),_0x303e3e?_0x31aeea['isVisible']=!0x1:_0x31aeea['refreshVisibility']());}}['_getExternalAuthor'](_0x148d57){const _0x11eb48=this['context']['plugins']['get'](st),_0x54d8e2=wt('external:'+_0x148d57),_0x9a50a3=_0x11eb48['getUser'](_0x54d8e2);return _0x9a50a3||_0x11eb48['addUser']({'id':_0x54d8e2,'name':_0x148d57});}['_createNewComment']({threadId:_0x252f4b,commentId:_0x15434a=_0x1995a1(),content:_0x2bdea1,authorId:_0x985050,createdAt:_0x458167,attributes:_0x33adc6}){if('string'!=typeof _0x15434a)throw new _0x56607d('commentsrepository-invalid-commentid');if('string'!=typeof _0x985050)throw new _0x56607d('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2bdea1||!_0x2bdea1['trim']())throw new _0x56607d('commentsrepository-invalid-comment-content');const _0x4b2bb1=this['context']['plugins']['get'](st)['getUser'](_0x985050);if(!_0x4b2bb1)throw new _0x56607d('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x985050});let _0x160c7c=null,_0x3039fd=_0x458167;return _0x33adc6?.['@external']&&(_0x160c7c=this['_getExternalAuthor'](_0x33adc6['@external']['authorName']),_0x3039fd=new Date(_0x33adc6['@external']['createdAt'])),new wi(this,{'threadId':_0x252f4b,'id':_0x15434a,'author':_0x160c7c||_0x4b2bb1,'creator':_0x4b2bb1,'content':_0x2bdea1,'createdAt':_0x458167,'authoredAt':_0x3039fd,'attributes':_0x33adc6});}['_addComment'](_0xbe469){let {threadId:_0x430933,content:_0x734f91,attributes:_0x2b25b3,isFromAdapter:_0x809c6c}=_0xbe469;const _0x3addb3=this['getCommentThread'](_0xbe469['threadId']);if(!_0x3addb3)throw new _0x56607d('commentsrepository-add-comment-to-missing-comment-thread',this);const _0xb678d4=this['_createNewComment'](_0xbe469),{id:_0xfb5785}=_0xb678d4;if(_0x3addb3['_add'](_0xb678d4),_0x809c6c||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x3addb3['isSubmitted'])return Promise['resolve']();const _0x126a8a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5b027f}=_0x3addb3,_0x508b3b=_0x126a8a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x2b25b3||(_0x2b25b3={}),this['adapter']['addComment']({'channelId':_0x5b027f,'threadId':_0x430933,'commentId':_0xfb5785,'content':_0x734f91,'attributes':_0x2b25b3})['then'](_0x2652a2=>{_0x126a8a['remove'](_0x508b3b),_0x2652a2&&this['_updateComment']({'channelId':_0x5b027f,'threadId':_0x430933,'commentId':_0xfb5785,'createdAt':_0x2652a2['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xb4930a=>{throw console['error'](_0xb4930a),new _0x56607d('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x15ea65,commentId:_0x306e73,content:_0x49e337,createdAt:_0x46ffaf,attributes:_0x44e29c,isFromAdapter:_0x4cfa70}){if(void 0x0!==_0x49e337&&('string'!=typeof _0x49e337||!_0x49e337['trim']()['length']))throw new _0x56607d('commentsrepository-update-comment-invalid-content');const _0x4d981c=this['getCommentThread'](_0x15ea65),_0x329625=_0x4d981c['getComment'](_0x306e73);if(!_0x329625)throw new _0x56607d('commentsrepository-update-missing-comment',this);let _0x361b26=!0x1;if(_0x49e337&&_0x49e337!==_0x329625['content']&&(_0x329625['isEditable']||_0x4cfa70)&&(_0x329625['content']=_0x49e337,_0x361b26=!0x0),_0x46ffaf&&_0x46ffaf!==_0x329625['createdAt']&&(_0x329625['createdAt']=_0x46ffaf,_0x329625['attributes']&&_0x329625['attributes']['@external']||(_0x329625['authoredAt']=_0x46ffaf),_0x361b26=!0x0),_0x44e29c&&!yt(_0x44e29c,_0x329625['attributes'])&&(_0x329625['attributes']=_0x44e29c,_0x361b26=!0x0),!_0x361b26)return Promise['resolve']();if(_0x4d981c['fire']('commentUpdated'),_0x4cfa70||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x4c7078=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5ab623}=this['getCommentThread'](_0x329625['threadId']),_0x3b6c91=_0x4c7078['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x5ab623,'threadId':_0x15ea65,'commentId':_0x306e73,'content':_0x49e337,'attributes':_0x44e29c})['then'](()=>_0x4c7078['remove'](_0x3b6c91))['catch'](_0x29d8d1=>{throw console['error'](_0x29d8d1),new _0x56607d('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x4840c0,commentId:_0x2cb98a,isFromAdapter:_0x480805}){const _0x1d4aad=this['getCommentThread'](_0x4840c0),_0xc46186=_0x1d4aad['getComment'](_0x2cb98a);if(!_0xc46186)throw new _0x56607d('commentsrepository-remove-missing-comment',this);if(_0x1d4aad['_remove'](_0xc46186),_0x480805||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x438754=this['context']['plugins']['get']('PendingActions'),{channelId:_0x25bef5}=_0x1d4aad,_0x125908=_0x438754['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x25bef5,'threadId':_0x4840c0,'commentId':_0x2cb98a})['then'](()=>_0x438754['remove'](_0x125908))['catch'](_0x302182=>{throw console['error'](_0x302182),new _0x56607d('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x558b12(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x35a958,_0x92a107){super();const _0x341fff=_0x92a107['isResolvable'];this['channelId']=_0x92a107['channelId'],this['id']=_0x92a107['id'],this['comments']=new _0x526483(),this['_repository']=_0x35a958,this['_isAttached']=!0x1,this['_isSubmitted']=_0x92a107['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x35a958,'_permissions',_0x35a958,'_readOnlyChannels',()=>_0x35a958['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x35a958,'_permissions',()=>_0x35a958['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x35a958,'_permissions',()=>{const _0x151cb0=_0x35a958['getPermissions'](this['channelId']);return _0x151cb0['write']||_0x151cb0['admin'];}),this['bind']('isResolvable')['to'](_0x35a958,'_permissions',()=>_0x341fff&&_0x35a958['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x92a107['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x525ac9,_0x59b116)=>_0x525ac9?_0x59b116?_0x525ac9<_0x59b116?_0x525ac9:_0x59b116:_0x525ac9:_0x59b116),this['set']('unlinkedAt',_0x92a107['unlinkedAt']||null),this['set']('resolvedAt',_0x92a107['resolvedAt']||null),this['set']('resolvedBy',_0x92a107['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x16f203=>!!_0x16f203),this['set']('attributes',_0x92a107['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x1c5876,_0x2bbc7b)=>_0x1c5876+_0x2bbc7b['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2d946b,id:_0x306ff0}=this;this['_repository']['fire'](xt('submitCommentThread',_0x2d946b),{'channelId':_0x2d946b,'threadId':_0x306ff0});}['setUnlinkedAt'](_0x5b293c){this['_update']({'unlinkedAt':_0x5b293c});}['resolve']({resolvedAt:_0x3d5a87=new Date(),resolvedBy:_0x75c8df='',isFromAdapter:_0x2ef2c0=!0x1}={}){const _0x33047e=this['_repository']['context']['plugins']['get'](st)['me'],{channelId:_0x3b648f,id:_0x3aeddb}=this;this['_repository']['fire'](xt('resolveCommentThread',_0x3b648f),{'channelId':_0x3b648f,'threadId':_0x3aeddb,'resolvedAt':_0x3d5a87,'resolvedBy':_0x75c8df||_0x33047e['id'],'isFromAdapter':_0x2ef2c0});}['reopen']({isFromAdapter:_0x21d2bf=!0x1}={}){const {channelId:_0x5617c0,id:_0x477309}=this;this['_repository']['fire'](xt('reopenCommentThread',_0x5617c0),{'channelId':_0x5617c0,'threadId':_0x477309,'isFromAdapter':_0x21d2bf});}['setContext'](_0x275f01){this['context']||this['_update']({'context':_0x275f01});}['setAttribute'](_0x26f95e,_0x3a24af){const _0x342889=At(this['attributes']);Ct(_0x342889,_0x26f95e,_0x3a24af),this['_update']({'attributes':_0x342889});}['removeAttribute'](_0x2ac542){const _0x20d959=At(this['attributes']);vt(_0x20d959,_0x2ac542),this['_update']({'attributes':_0x20d959});}['remove']({isFromAdapter:_0x273d54=!0x1}={}){const {channelId:_0x501bdc,id:_0x107fba}=this;this['_repository']['fire'](xt('removeCommentThread',_0x501bdc),{'channelId':_0x501bdc,'threadId':_0x107fba,'isFromAdapter':_0x273d54});}['attachTo'](_0x136d2d){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x136d2d});}['addComment'](_0xf08a09){const {channelId:_0x386db8,id:_0x5f4d0b}=this;this['_repository']['fire'](xt('addComment',_0x386db8,_0x5f4d0b),Object['assign']({'channelId':_0x386db8,'threadId':_0x5f4d0b},_0xf08a09));}['getComment'](_0x151018){if('string'!=typeof _0x151018)throw new _0x56607d('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x151018});return this['comments']['get'](_0x151018);}['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'](_0x53af1c=>_0x53af1c['toJSON']()),'attributes':this['attributes']};}['_add'](_0x4361a1){return this['listenTo'](_0x4361a1,'change:authoredAt',()=>{const _0x345dbc=this['_findOptimalIndex'](_0x4361a1),_0x235040=this['comments'];_0x345dbc-0x1!=_0x235040['getIndex'](_0x4361a1)&&_0x345dbc+0x1!=_0x235040['getIndex'](_0x4361a1)&&(this['_remove'](_0x4361a1),this['_add'](_0x4361a1));}),this['comments']['add'](_0x4361a1,this['_findOptimalIndex'](_0x4361a1));}['_update'](_0x5e11b0){const {channelId:_0x12329e,id:_0x47a3ba}=this;this['_repository']['fire'](xt('updateCommentThread',_0x12329e),{..._0x5e11b0,'channelId':_0x12329e,'threadId':_0x47a3ba});}['_remove'](_0x9b2109){return this['stopListening'](_0x9b2109),_0x9b2109['destroy'](),this['comments']['remove'](_0x9b2109);}['_findOptimalIndex'](_0x357352){const _0x511fdb=this['comments']['find'](_0x2e61bc=>new Date(_0x2e61bc['authoredAt'])['getTime']()>new Date(_0x357352['authoredAt'])['getTime']());return _0x511fdb?this['comments']['getIndex'](_0x511fdb):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x558b12(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x187e47,_0xad86e6){super();const _0x42c310=_0x187e47['context']['plugins']['get'](st)['me'],_0x2d78db=_0x187e47['getCommentThread'](_0xad86e6['threadId']),_0x385d85=0x0===_0x2d78db['comments']['length'],_0x329d75=_0x42c310===_0xad86e6['author'];this['id']=_0xad86e6['id'],this['threadId']=_0xad86e6['threadId'],this['author']=_0xad86e6['author'],this['creator']=_0xad86e6['creator'],this['isExternal']=Boolean(_0xad86e6['attributes']&&_0xad86e6['attributes']['@external']),this['set']('content',_0xad86e6['content']),this['createdAt']=_0xad86e6['createdAt']||new Date(),this['set']('authoredAt',_0xad86e6['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2d78db,'resolvedAt'),this['set']('attributes',_0xad86e6['attributes']||{}),this['bind']('isEditable')['to'](_0x187e47,'_permissions',()=>{const _0x455d11=_0x187e47['getPermissions'](_0x2d78db['channelId'])['write'],_0x1735ed=_0x187e47['getPermissions'](_0x2d78db['channelId'])['modifyAll'];return _0x329d75&&_0x455d11||!_0x329d75&&_0x1735ed;}),this['bind']('isRemovable')['to'](_0x2d78db,'isRemovable',_0x187e47,'_permissions',_0x8ed31e=>{const _0x28d59c=_0x187e47['getPermissions'](_0x2d78db['channelId'])['write'],_0xa55ea5=_0x187e47['getPermissions'](_0x2d78db['channelId'])['modifyAll'];return _0x329d75&&_0x28d59c||_0x8ed31e&&_0x385d85||!_0x329d75&&_0xa55ea5&&!_0x385d85;}),this['bind']('isReadOnly')['to'](_0x2d78db,'isReadOnly'),this['_repository']=_0x187e47;}get['weight'](){return Math['max'](function(_0x559b1b){const _0x315308=document['createElement']('div');return _0x315308['innerHTML']=_0x559b1b,_0x315308['textContent']['length'];}(this['content']),0xc8);}['update'](_0x486497){const {threadId:_0x5d3a4c,id:_0xf2dfde}=this;if(!this['_repository']['hasCommentThread'](_0x5d3a4c))throw new _0x56607d('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x16112a}=this['_repository']['getCommentThread'](_0x5d3a4c);this['_repository']['fire'](xt('updateComment',_0x16112a,_0x5d3a4c),{'channelId':_0x16112a,'threadId':_0x5d3a4c,'commentId':_0xf2dfde,..._0x486497});}['setAttribute'](_0x167ef5,_0x516e1f){const _0x30bd8c=At(this['attributes']);Ct(_0x30bd8c,_0x167ef5,_0x516e1f),this['update']({'attributes':_0x30bd8c});}['removeAttribute'](_0x46add8){const _0x4e0647=At(this['attributes']);vt(_0x4e0647,_0x46add8),this['update']({'attributes':_0x4e0647});}['remove'](_0x3427dd={}){if(!_0x3427dd['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x24d2a8,id:_0x111d3e}=this;if(!this['_repository']['hasCommentThread'](_0x24d2a8))throw new _0x56607d('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x13468c}=this['_repository']['getCommentThread'](_0x24d2a8);this['_repository']['fire'](xt('removeComment',_0x13468c,_0x24d2a8),{'channelId':_0x13468c,'threadId':_0x24d2a8,'commentId':_0x111d3e,..._0x3427dd});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function xt(_0x101940,..._0x1acbac){for(const _0x4d3df0 of _0x1acbac)void 0x0!==_0x4d3df0&&(_0x101940+=':'+String(_0x4d3df0));return _0x101940;}class rt extends _0x46611b{constructor(_0x984a8f){super(_0x984a8f),this['set']('hasContent',!0x1);}['refresh'](){const _0x397ac5=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x1aa794 of _0x397ac5['getRanges']())if(this['_hasContent'](_0x1aa794))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x361e51=_0x1995a1(),ranges:_0x3c051d,comment:_0x13cf73}={}){const _0x57343f=this['editor']['model'],_0x5b390c=_0x3c051d??Array['from'](_0x57343f['document']['selection']['getRanges']()),_0x2909da=[];for(const _0x39a41e of _0x5b390c)this['_hasContent'](_0x39a41e)&&_0x2909da['push'](this['_trimToContent'](_0x39a41e));if(!_0x2909da['length'])throw new _0x56607d('addcommentthreadcommand-incorrect-ranges',null);_0x13cf73&&this['_createCommentThread'](_0x361e51,_0x13cf73),this['_createMarkersFromRanges'](_0x361e51,_0x2909da,!!_0x13cf73);}['_createMarkersFromRanges'](_0x484cf2,_0x40b6f3,_0x449d60){this['editor']['model']['change'](_0x1d776a=>{for(const _0x4261f7 of _0x40b6f3){const _0x374ccb=_0x1995a1()['substr'](0x1,0x5),_0x3986fb='comment:'+_0x484cf2+':'+_0x374ccb;_0x1d776a['addMarker'](_0x3986fb,{'range':_0x4261f7,'usingOperation':_0x449d60,'affectsData':_0x449d60});}});}['_createCommentThread'](_0x643def,_0x4b0edf){const _0x112093=this['editor']['plugins']['get']('CommentsRepository'),_0x54a340=this['editor']['config']['get']('collaboration.channelId'),_0x4917ba=this['editor']['plugins']['get']('Users')['me'];if(!_0x4917ba)throw new _0x56607d('addcommentthreadcommand-user-not-found',null);_0x112093['addCommentThread']({'threadId':_0x643def,'channelId':_0x54a340,'comments':[{'authorId':_0x4917ba['id'],'content':_0x4b0edf,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x5c8bcb){for(const _0x494f48 of _0x5c8bcb['getItems']())if(this['_itemIsContent'](_0x494f48))return!0x0;return!0x1;}['_itemIsContent'](_0xc273c8){return _0xc273c8['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xc273c8)&&!_0xc273c8['is']('element','tableCell');}['_trimToContent'](_0x485856){const _0x9e193d=_0x336646=>!this['_itemIsContent'](_0x336646['item']),_0x1b11c9=_0x485856['start']['getLastMatchingPosition'](_0x9e193d),_0x9a3d5f=_0x485856['end']['getLastMatchingPosition'](_0x9e193d,{'direction':'backward'});return this['editor']['model']['createRange'](_0x1b11c9,_0x9a3d5f);}}class b extends _0x2a5e1f{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23a38b){super(_0x23a38b),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5493a3=this['editor'],_0x3a4e40=_0x5493a3['model']['document']['selection'],_0x410635=_0x5ecd8f(()=>this['refreshSelectedViews'](),0xa);_0x3a4e40['on']('change:range',(_0x14efc0,_0x2484f8)=>{_0x2484f8['directChange']&&(_0x410635['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5493a3['editing']['view']['document'],'change:isFocused',(_0x394f36,_0x52bef5,_0x35ad74)=>{_0x35ad74&&_0x410635();}),this['listenTo'](_0x5493a3['ui']['focusTracker'],'change:isFocused',(_0x524ac6,_0x5bbc72,_0x4d7432)=>{_0x4d7432||this['fire']('blur',{'isAnnotationTracked':_0xd2ae28=>this['_editorAnnotationsData']['has'](_0xd2ae28['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x3417f3){if(this['_editorAnnotations']['has'](_0x3417f3['view']))return;this['_editorAnnotations']['add'](_0x3417f3['view']),this['editor']['ui']['focusTracker']['add'](_0x3417f3['view']['element']);const _0x3b06b7=this['editor']['plugins']['get'](y);this['listenTo'](_0x3b06b7['collection'],'remove',(_0x359c0b,_0x27814b)=>{this['editor']['ui']['focusTracker']['remove'](_0x27814b['view']['element']),this['_editorAnnotations']['delete'](_0x27814b['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x33baca){if('function'!=typeof _0x33baca)throw new _0x56607d('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x33baca);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x51d3f8,annotations:_0x5a0fb6}){const _0x1f6ad7=[],_0x133364=this['editor']['model']['document']['selection'],_0x3b3fbc=Array['from'](_0x133364['getRanges']());for(const [_0xf6451f,_0x4cb2a9]of this['_editorAnnotationsData']){const _0xf1e78c=_0x3bdd99(_0x4cb2a9),_0x4686fa=_0x5a0fb6['getByInnerView'](_0xf6451f);_0xf1e78c&&_0x4686fa&&_0x1f6ad7['push']({'annotation':_0x4686fa,'range':_0xf1e78c});}function _0x3bdd99(_0x2d273e){for(const _0x21f508 of _0x2d273e)for(const _0x2d66ba of _0x3b3fbc)if(_0x21f508['containsRange'](_0x2d66ba,!_0x133364['isCollapsed']))return _0x21f508;return null;}return _0x1f6ad7['sort']((_0x2e8640,_0x34e9cc)=>{const _0x4f47bd=_0x2e8640['range'],_0x12ef65=_0x34e9cc['range'];if(!_0x4f47bd['isEqual'](_0x12ef65)){if(_0x4f47bd['containsRange'](_0x12ef65,!0x0))return 0x1;if(_0x12ef65['containsRange'](_0x4f47bd,!0x0))return-0x1;}return _0x2e8640['annotation']==_0x51d3f8?-0x1:_0x34e9cc['annotation']==_0x51d3f8?0x1:0x0;})['map'](_0x333c45=>_0x333c45['annotation']);}get['_editorAnnotationsData'](){const _0x1745f9=new Map();for(const _0x35ef3f of Array['from'](this['_dataCollectors']))for(const [_0x226bab,_0x19c52a]of _0x35ef3f())_0x1745f9['set'](_0x226bab,_0x19c52a);return _0x1745f9;}}class ct extends _0x2a5e1f{['afterInit'](){const _0x15256c=this['editor'];if(!_0x15256c['plugins']['has']('RestrictedEditingModeEditing'))return;_0x15256c['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class at extends _0x2a5e1f{constructor(_0x2d409f){super(_0x2d409f),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x69064b=this['editor'],_0xc2c6a2=_0x69064b['commands']['get']('importWord'),_0x5266a3=_0x69064b['plugins']['get'](st);_0xc2c6a2&&(_0xc2c6a2['on']('execute',(_0x496964,[,_0x7d2a9b])=>{_0x7d2a9b['collaboration_features']={'comments':!0x0,'user_id':_0x5266a3['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0xc2c6a2,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5a41be,_0x3fdab6){const {comment_threads:_0x167d62}=_0x3fdab6;_0x167d62&&_0x167d62['forEach'](({thread_id:_0x9692e2,comments:_0x494855,is_resolved:_0x5284e3})=>{const _0x225b29=new Date(),_0x49d29a=_0x494855['map'](({author:_0x2f6027,content:_0x22ef42,created_at:_0x377fb4})=>({'content':_0x22ef42,'authorId':this['editor']['plugins']['get'](st)['me']['id'],'createdAt':_0x225b29,'attributes':{'@external':{'authorName':_0x2f6027,'createdAt':_0x377fb4?new Date(_0x377fb4):new Date(),'source':'importWord'}}})),_0xf4596d=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xf4596d,'threadId':_0x9692e2,'comments':_0x49d29a,'resolvedAt':_0x5284e3?_0x225b29:null});});}}class ut extends _0x2a5e1f{constructor(_0x1c33e8){super(_0x1c33e8),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x219ec6=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x219ec6,'contentInsertion',(_0x3652aa,_0x9e74c5)=>this['_removeMarkersWithoutThreads'](_0x9e74c5['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x5b854a){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x5b854a;const _0x2fb7b7=this['editor']['plugins']['get']('CommentsRepository');for(const _0x2910a5 of _0x5b854a['keys']()){const [_0x138173,_0x4dbcee]=_0x2910a5['split'](':');'comment'!=_0x138173||_0x2fb7b7['hasCommentThread'](_0x4dbcee)||_0x5b854a['delete'](_0x2910a5);}return _0x5b854a;}['_registerMarkerInClipboardPipeline'](){const _0x5c2ff4=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x4feaf8=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x4feaf8&&_0x5c2ff4['_registerMarkerToCopy']('comment',_0x4feaf8);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x291899){switch(_0x291899){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function dt(_0x53d734){const _0x1992c6=_0x53d734['split'](':');return{'group':_0x1992c6[0x0],'id':_0x1992c6[0x1],'part':_0x1992c6[0x2]};}class ft extends _0x2a5e1f{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x570a48,_0x272e88)=>{if(!_0x272e88['options']['showCommentHighlights'])return null;if(_0x272e88['options']['ignoreResolvedComments']){const {id:_0x26558d}=dt(_0x570a48['markerName']),_0x24950d=this['editor']['plugins']['get'](o);if(_0x24950d['getCommentThread'](_0x26558d)?.['isResolved']&&_0x570a48['item'])return _0x272e88['consumable']['consume'](_0x570a48['item'],'addMarker:'+_0x570a48['markerName']),_0x272e88['consumable']['consume'](_0x570a48['item'],'removeMarker:'+_0x570a48['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2c1815=>{_0x2c1815['on']('addMarker:comment',(_0x1441e8,_0x85d4f6,_0x18ac8f)=>{if(!_0x18ac8f['options']['showCommentHighlights'])return;const _0x1e837e=_0x85d4f6['item'];if(!_0x1e837e)return;const _0x1ad231=_0x18ac8f['mapper']['toViewElement'](_0x1e837e);this['editor']['model']['schema']['isObject'](_0x1e837e)&&_0x1ad231&&!_0x1ad231['getCustomProperty']('widget')&&_0x1ad231['is']('containerElement')&&_0x30a956(_0x1ad231,_0x18ac8f['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x28bbad,{writer:_0x25933b,options:_0xf1e82b})=>{if(!_0xf1e82b['showCommentHighlights'])return null;const _0x528316=_0x25933b['createContainerElement']('div'),_0x45216f=_0x25933b['createEmptyElement']('hr');return _0x25933b['addClass']('ck-horizontal-line',_0x528316),_0x25933b['insert'](_0x25933b['createPositionAt'](_0x528316,0x0),_0x45216f),_0x528316;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0xf8764e,{writer:_0x59ac62,options:_0x3011f1})=>{if(!_0x3011f1['showCommentHighlights'])return null;const _0x473a8c=_0x59ac62['createContainerElement']('span'),_0x365099=_0x59ac62['createEmptyElement']('img');return _0x59ac62['addClass']('image-inline',_0x473a8c),_0x59ac62['insert'](_0x59ac62['createPositionAt'](_0x473a8c,0x0),_0x365099),_0x473a8c;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4c8032,{writer:_0x44db19,options:_0x2810b6})=>{if(_0x2810b6['showCommentHighlights'])return _0x44db19['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2f01bf,_0x7ca2fe,_0x4b37a8)=>{_0x4b37a8['options']['showCommentHighlights']&&_0x2f01bf['stop']();},{'priority':'high'});}}class r extends _0x2a5e1f{static get['requires'](){return[o,b,st,ct,at,ut,ft];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e2be6){super(_0x1e2be6),this['set']('isThreadsLoadingPaused',!0x0),_0x1e2be6['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x198afb,_0x243bbe,_0x267418,_0x47b92c)=>{const _0x3a04b7=_0x1e2be6['plugins']['get'](o),_0x397c79=_0x267418?dt(_0x267418)['id']:null;_0x1e2be6['model']['change'](()=>{if(_0x397c79){const _0x138735=this['getAllMarkersForId'](_0x397c79);for(const _0xbce7d2 of _0x138735)_0x1e2be6['editing']['reconvertMarker'](_0xbce7d2);}if(_0x47b92c){const {id:_0x5de7bb}=dt(_0x47b92c),_0x4b197f=_0x3a04b7['getCommentThread'](_0x5de7bb);if(_0x4b197f&&_0x4b197f['unlinkedAt'])return;if(_0x4b197f&&!_0x4b197f['isAttached'])return;const _0x2ee5b1=this['getAllMarkersForId'](_0x5de7bb);for(const _0x892f0f of _0x2ee5b1)_0x1e2be6['editing']['reconvertMarker'](_0x892f0f);}}),_0x397c79&&this['scrollToThreadMarker'](_0x397c79);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x556132=this['editor'],_0xc2ce9f=_0x556132['plugins']['get'](o),_0x38242a=_0x556132['config']['get']('collaboration.channelId'),_0x3f4ddc=_0xc2ce9f['getCommentThreads']()['filter'](_0x21c6a7=>_0x21c6a7['channelId']!==_0x38242a);_0x556132['commands']['add']('addCommentThread',new rt(_0x556132)),this['listenTo'](_0x556132,'change:isReadOnly',(_0x58f466,_0x52203c,_0x97f67f)=>{_0xc2ce9f['switchReadOnly'](_0x97f67f,_0x556132['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xc2ce9f,ht('addCommentThread',_0x38242a),(_0x13b341,{threadId:_0x58d64a})=>{const _0x28c9a8=this['editor']['plugins']['get'](o)['getCommentThread'](_0x58d64a);_0x28c9a8?.['unlinkedAt']&&this['_attachArchivedThread'](_0x58d64a);}),this['listenTo'](_0xc2ce9f,ht('removeCommentThread',_0x38242a),(_0x40596f,{threadId:_0x43d878})=>{_0x556132['model']['enqueueChange']({'isUndoable':!0x1},_0x1e1f4a=>{const _0x1ff7b8=this['getAllMarkersForId'](_0x43d878);for(const _0x4a204f of _0x1ff7b8)_0x1e1f4a['removeMarker'](_0x4a204f);});}),this['listenTo'](_0xc2ce9f,ht('resolveCommentThread',_0x38242a),(_0x43bb6a,{threadId:_0xa4e7e4})=>{(this['_reconvertMarkers'](_0xa4e7e4),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xa4e7e4)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xc2ce9f,ht('reopenCommentThread',_0x38242a),(_0x3773c2,{threadId:_0x11c075})=>{this['_reconvertMarkers'](_0x11c075);},{'priority':'low'}),this['listenTo'](_0xc2ce9f,ht('addComment',_0x38242a),(_0x2e8063,{threadId:_0x1383a8,isFromAdapter:_0x19f859})=>{const _0x113a23=this['getAllMarkersForId'](_0x1383a8);if(_0x19f859||0x0==_0x113a23['length']||!_0xc2ce9f['hasCommentThread'](_0x1383a8))return;0x1===_0xc2ce9f['getCommentThread'](_0x1383a8)['length']&&_0x556132['model']['enqueueChange']({'isUndoable':!0x1},_0x528caa=>{for(const _0x37fe09 of _0x113a23)_0x528caa['updateMarker'](_0x37fe09,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x3f4ddc);}['afterInit'](){!async function(_0x5955fc){const _0x56ee4e=_0x290e01([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]),_0x5d4aba=0x73460ab3,_0x2d7253=0x73417433^_0x5d4aba,_0x2960da=window[_0x290e01([0x44,0x61,0x74,0x65])][_0x290e01([0x6e,0x6f,0x77])](),_0x3c2a63=_0x5955fc[_0x290e01([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x407e9b=new window[(_0x290e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e838f=>{_0x3c2a63[_0x290e01([0x6f,0x6e,0x63,0x65])](_0x290e01([0x72,0x65,0x61,0x64,0x79]),_0x1e838f);}),_0x7af8c8={[_0x290e01([0x6b,0x74,0x79])]:_0x290e01([0x45,0x43]),[_0x290e01([0x75,0x73,0x65])]:_0x290e01([0x73,0x69,0x67]),[_0x290e01([0x63,0x72,0x76])]:_0x290e01([0x50,0x2d,0x32,0x35,0x36]),[_0x290e01([0x78])]:_0x290e01([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]),[_0x290e01([0x79])]:_0x290e01([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]),[_0x290e01([0x61,0x6c,0x67])]:_0x290e01([0x45,0x53,0x32,0x35,0x36])},_0x15160a=_0x3c2a63[_0x290e01([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x290e01([0x67,0x65,0x74])](_0x290e01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e92b8(){let _0x41fa41,_0x1d193c=null,_0x38f92a=null;try{if(_0x15160a==_0x290e01([0x47,0x50,0x4c]))return _0x290e01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41fa41=_0x349d67(),!_0x41fa41)return _0x290e01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41fa41[_0x290e01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38f92a=_0x25b9ed(_0x41fa41[_0x290e01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41fa41[_0x290e01([0x6a,0x74,0x69])])),await _0x218604()?_0x57f17a()?_0x2d6728()?_0x290e01([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54aa92()?(_0x41fa41[_0x290e01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x290e01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d193c=_0x1c23cc(_0x290e01([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fe4e0()):_0x290e01([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x290e01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x290e01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x290e01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d6728(){const _0x45c8c0=[_0x290e01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x290e01([0x74,0x72,0x69,0x61,0x6c])][_0x290e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41fa41[_0x290e01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2960da/0x3e8:0xe10*_0x2d7253;return _0x41fa41[_0x290e01([0x65,0x78,0x70])]<_0x45c8c0;}function _0x57f17a(){const _0x543830=_0x41fa41[_0x290e01([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x543830)return!0x1;if(_0x543830[_0x290e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290e01([0x2a])))return!0x0;if(_0x543830[_0x290e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290e01([0x43,0x4d,0x54])))return!0x0;if(_0x543830[_0x290e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290e01([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x3365b8())return!0x0;if(_0x543830[_0x290e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290e01([0x52,0x43,0x4d,0x54]))){if(_0x325968())return!0x0;if(_0x11bbaa()||_0x5bfd17())return!0x0;}return!0x1;}function _0x54aa92(){const _0xfa4ac0=_0x41fa41[_0x290e01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfa4ac0||0x0==_0xfa4ac0[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d114d}=new URL(window[_0x290e01([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xfa4ac0[_0x290e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d114d))return!0x0;const _0x1091e1=_0x3d114d[_0x290e01([0x73,0x70,0x6c,0x69,0x74])](_0x290e01([0x2e]));return _0xfa4ac0[_0x290e01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e3a17=>_0x1e3a17[_0x290e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290e01([0x2a])))[_0x290e01([0x6d,0x61,0x70])](_0x2e8eea=>_0x2e8eea[_0x290e01([0x73,0x70,0x6c,0x69,0x74])](_0x290e01([0x2e])))[_0x290e01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2cdedd=>_0x2cdedd[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1091e1[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x290e01([0x6d,0x61,0x70])](_0xfa0b8f=>Array(_0x1091e1[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfa0b8f[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x290e01([0x66,0x69,0x6c,0x6c])](_0xfa0b8f[0x0]===_0x290e01([0x2a])?_0x290e01([0x2a]):'')[_0x290e01([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfa0b8f))[_0x290e01([0x73,0x6f,0x6d,0x65])](_0x3b72eb=>_0x1091e1[_0x290e01([0x65,0x76,0x65,0x72,0x79])]((_0x54a835,_0x455a3e)=>_0x3b72eb[_0x455a3e]===_0x54a835||_0x3b72eb[_0x455a3e]===_0x290e01([0x2a])));}function _0x2fe4e0(){return _0x1d193c&&_0x38f92a?new window[(_0x290e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3355d3,_0x2ee512)=>{_0x1d193c[_0x290e01([0x74,0x68,0x65,0x6e])](_0x3355d3,_0x2ee512),_0x38f92a[_0x290e01([0x74,0x68,0x65,0x6e])](_0x1bd4d5=>{_0x1bd4d5!=_0x290e01([0x56,0x61,0x6c,0x69,0x64])&&_0x3355d3(_0x1bd4d5);},_0x2ee512);}):_0x1d193c||_0x38f92a||_0x290e01([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25b9ed(_0x101705,_0x3963aa){return new window[(_0x290e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ba363=>{if(_0x170109())return _0x2ba363(_0x290e01([0x56,0x61,0x6c,0x69,0x64]));_0x14e4f4(),_0x3c2a63[_0x290e01([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x290e01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9bb1b9=!0x1;const _0x528348=_0x1995a1();function _0x27c74b(_0x170947){return!!_0x170947&&(typeof _0x170947===_0x290e01([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x170947===_0x290e01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x170947[_0x290e01([0x74,0x68,0x65,0x6e])]===_0x290e01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x170947[_0x290e01([0x63,0x61,0x74,0x63,0x68])]===_0x290e01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37319c(_0x40399b){_0x5f5578(_0x40399b)[_0x290e01([0x74,0x68,0x65,0x6e])](_0x34392a=>{if(!_0x34392a||_0x34392a[_0x290e01([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x290e01([0x6f,0x6b]))return _0x290e01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1823fd(_0xd64894(_0x528348+_0x3963aa))!=_0x34392a[_0x290e01([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x290e01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x290e01([0x56,0x61,0x6c,0x69,0x64]);})[_0x290e01([0x74,0x68,0x65,0x6e])](_0x3812a0=>(_0xb7d75b(),_0x3812a0),()=>{const _0x4412a8=_0x9aa18b();return null==_0x4412a8?(_0xb7d75b(),_0x290e01([0x56,0x61,0x6c,0x69,0x64])):_0x290e01(_0x2960da-_0x4412a8>(0x574a8eb3^_0x5d4aba)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x290e01([0x74,0x68,0x65,0x6e])](_0x2ba363)[_0x290e01([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ba363(_0x290e01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c0e06=0x7370e433^_0x5d4aba;function _0xb7d75b(){const _0x481cd4=_0x290e01([0x6c,0x6c,0x63,0x74,0x2d])+_0x1823fd(_0xd64894(_0x101705)),_0x21468e=_0x457fdd(_0x1823fd(window[_0x290e01([0x4d,0x61,0x74,0x68])][_0x290e01([0x63,0x65,0x69,0x6c])](_0x2960da/_0x4c0e06)));window[_0x290e01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x290e01([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x481cd4,_0x21468e);}function _0x9aa18b(){const _0x59274f=_0x290e01([0x6c,0x6c,0x63,0x74,0x2d])+_0x1823fd(_0xd64894(_0x101705)),_0x1aebac=window[_0x290e01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x290e01([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59274f);return _0x1aebac?window[_0x290e01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x457fdd(_0x1aebac),0x10)*_0x4c0e06:null;}function _0x5f5578(_0x2f76c6){return new window[(_0x290e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x461f7b,_0x5f4a56)=>{_0x2f76c6[_0x290e01([0x74,0x68,0x65,0x6e])](_0x461f7b,_0x5f4a56),window[_0x290e01([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f4a56,0x7347de73^_0x5d4aba);});}}_0x3c2a63[_0x290e01([0x6f,0x6e])](_0x290e01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x568657,_0x35e979)=>{if(_0x35e979[0x0]!=_0x101705)return _0x2ba363(_0x290e01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35e979[0x1]={..._0x35e979[0x1],[_0x290e01([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x528348};},{[_0x290e01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x290e01([0x68,0x69,0x67,0x68])}),_0x3c2a63[_0x290e01([0x6f,0x6e])](_0x290e01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e1d27=>{_0x27c74b(_0x4e1d27[_0x290e01([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9bb1b9=!0x0,_0x37319c(_0x4e1d27[_0x290e01([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x290e01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x290e01([0x6c,0x6f,0x77])}),_0x407e9b[_0x290e01([0x74,0x68,0x65,0x6e])](()=>{_0x9bb1b9||_0x2ba363(_0x290e01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x170109(){return _0x3c2a63[_0x290e01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x290e01([0x76,0x69,0x65,0x77])][_0x290e01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x290e01([0x61,0x75,0x74,0x6f]);}function _0x14e4f4(){_0x3c2a63[_0x290e01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x290e01([0x76,0x69,0x65,0x77])][_0x290e01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x290e01([0x61,0x75,0x74,0x6f]);}}function _0x1c23cc(_0x3ad1ce){const _0x4d015c=[new window[(_0x290e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x348119=>setTimeout(_0x348119,0x734f347f^_0x5d4aba)),_0x407e9b[_0x290e01([0x74,0x68,0x65,0x6e])](()=>new window[(_0x290e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5265fc=>{let _0xbf081=0x0;_0x3c2a63[_0x290e01([0x6d,0x6f,0x64,0x65,0x6c])][_0x290e01([0x6f,0x6e])](_0x290e01([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46ec16,_0x11cf6b)=>{_0x11cf6b[0x0][_0x290e01([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xbf081++,_0xbf081==(0x73460f5b^_0x5d4aba)&&(_0x5265fc(),_0x46ec16[_0x290e01([0x6f,0x66,0x66])]());});}))];return window[_0x290e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x290e01([0x72,0x61,0x63,0x65])](_0x4d015c)[_0x290e01([0x74,0x68,0x65,0x6e])](()=>_0x3ad1ce);}async function _0x554c22(){await _0x407e9b,_0x3c2a63[_0x290e01([0x6d,0x6f,0x64,0x65,0x6c])][_0x290e01([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xdf4005,_0x3c2a63[_0x290e01([0x6d,0x6f,0x64,0x65,0x6c])][_0x290e01([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xdf4005,_0x3c2a63[_0x290e01([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x290e01([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3365b8(){return window[_0x290e01([0x67,0x6c,0x6f,0x62])]&&window[_0x290e01([0x67,0x6c,0x6f,0x62])][_0x290e01([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x325968(){return _0xebb2a8(_0x290e01([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x40838b(_0x290e01([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x290e01([0x73,0x74,0x61,0x74,0x65])]==_0x290e01([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x11bbaa(){return _0xebb2a8(_0x290e01([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 _0x5bfd17(){return _0xebb2a8(_0x290e01([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x450ded(_0x45ff28){const _0x95b82d=_0x31820a();_0x3c2a63[_0x95b82d]=_0x290e01([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45ff28,_0x45ff28!=_0x290e01([0x56,0x61,0x6c,0x69,0x64])&&_0x554c22();}function _0x31820a(){const _0x22cfa0=window[_0x290e01([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x290e01([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x290e01([0x6e,0x6f,0x77])]())[_0x290e01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x290e01([0x2e]),'');let _0x2471a8=_0x290e01([0x4b]);for(let _0x35ea01=0x0;_0x35ea01<_0x22cfa0[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35ea01+=0x2){let _0x4333bd=window[_0x290e01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22cfa0[_0x290e01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35ea01,_0x35ea01+0x2));_0x4333bd>=_0x56ee4e[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4333bd-=_0x56ee4e[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2471a8+=_0x56ee4e[_0x4333bd];}return _0x2471a8;}function _0x349d67(){const _0x2dbffa=_0x15160a[_0x290e01([0x73,0x70,0x6c,0x69,0x74])](_0x290e01([0x2e]));if(0x3!=_0x2dbffa[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18e607(_0x2dbffa[0x1]);function _0x18e607(_0x393aea){const _0x72d791=_0x20ec6b(_0x393aea);return _0x72d791&&_0xbd2560()?_0x72d791:null;function _0xbd2560(){const _0x513f54=_0x72d791[_0x290e01([0x6a,0x74,0x69])],_0x12f9d4=window[_0x290e01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x513f54[_0x290e01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x513f54[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x47f0ca={..._0x72d791,[_0x290e01([0x6a,0x74,0x69])]:_0x513f54[_0x290e01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x513f54[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x47f0ca[_0x290e01([0x76,0x63])],_0xd64894(_0x47f0ca)==_0x12f9d4;}}}async function _0x218604(){let _0x45f220=!0x0;try{const _0x24f732=_0x15160a[_0x290e01([0x73,0x70,0x6c,0x69,0x74])](_0x290e01([0x2e])),[_0x35a854,_0xbdb043,_0x5a5343]=_0x24f732;return _0x5bb878(_0x35a854),await _0x1da793(_0x35a854,_0xbdb043,_0x5a5343),_0x45f220;}catch{return!0x1;}function _0x5bb878(_0x23ce73){const _0x5494bd=_0x20ec6b(_0x23ce73);_0x5494bd&&_0x5494bd[_0x290e01([0x61,0x6c,0x67])]==_0x290e01([0x45,0x53,0x32,0x35,0x36])||(_0x45f220=!0x1);}async function _0x1da793(_0x36b1cf,_0x3f16a6,_0x3587a2){const _0x3d2642=window[_0x290e01([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x290e01([0x66,0x72,0x6f,0x6d])](_0x48a657(_0x3587a2),_0x128a3c=>_0x128a3c[_0x290e01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47766b=new window[(_0x290e01([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x290e01([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36b1cf+_0x290e01([0x2e])+_0x3f16a6),_0x337f59=window[_0x290e01([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x290e01([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x337f59)return;const _0x2343b0=await _0x337f59[_0x290e01([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x290e01([0x6a,0x77,0x6b]),_0x7af8c8,{[_0x290e01([0x6e,0x61,0x6d,0x65])]:_0x290e01([0x45,0x43,0x44,0x53,0x41]),[_0x290e01([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x290e01([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x290e01([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x337f59[_0x290e01([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x290e01([0x6e,0x61,0x6d,0x65])]:_0x290e01([0x45,0x43,0x44,0x53,0x41]),[_0x290e01([0x68,0x61,0x73,0x68])]:{[_0x290e01([0x6e,0x61,0x6d,0x65])]:_0x290e01([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2343b0,_0x3d2642,_0x47766b)||(_0x45f220=!0x1);}}function _0x20ec6b(_0x43fa37){return _0x43fa37[_0x290e01([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x290e01([0x65,0x79]))?JSON[_0x290e01([0x70,0x61,0x72,0x73,0x65])](_0x48a657(_0x43fa37)):null;}function _0x48a657(_0x3572b5){return window[_0x290e01([0x61,0x74,0x6f,0x62])](_0x3572b5[_0x290e01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x290e01([0x2b]))[_0x290e01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x290e01([0x2f])));}function _0xd64894(_0x3e126e){let _0x1014d1=0x1505;function _0x3b64be(_0x3f5a85){for(let _0x533e88=0x0;_0x533e88<_0x3f5a85[_0x290e01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x533e88++){const _0x53b229=_0x3f5a85[_0x290e01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x533e88);_0x1014d1=(_0x1014d1<<0x5)+_0x1014d1+_0x53b229,_0x1014d1&=_0x1014d1;}}function _0x30d82c(_0x4b6bfc){Array[_0x290e01([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b6bfc)?_0x4b6bfc[_0x290e01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30d82c):_0x4b6bfc&&typeof _0x4b6bfc==_0x290e01([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x290e01([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b6bfc)[_0x290e01([0x73,0x6f,0x72,0x74])]()[_0x290e01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x34e195,_0x31cfde])=>{_0x3b64be(_0x34e195),_0x30d82c(_0x31cfde);}):_0x3b64be(window[_0x290e01([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b6bfc));}return _0x30d82c(_0x3e126e),_0x1014d1>>>0x0;}function _0x1823fd(_0x3a113a){return _0x3a113a[_0x290e01([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x290e01([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x290e01([0x30]));}function _0x457fdd(_0x23571b){return _0x23571b[_0x290e01([0x73,0x70,0x6c,0x69,0x74])]('')[_0x290e01([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x290e01([0x6a,0x6f,0x69,0x6e])]('');}function _0xebb2a8(_0x104afb){return _0x3c2a63[_0x290e01([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x290e01([0x68,0x61,0x73])](_0x104afb);}function _0x40838b(_0x3aabc5){return _0x3c2a63[_0x290e01([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x290e01([0x67,0x65,0x74])](_0x3aabc5);}function _0xdf4005(){}function _0x290e01(_0x5a43eb){return _0x5a43eb['map'](_0xfd4fbd=>String['fromCharCode'](_0xfd4fbd))['join']('');}_0x450ded(await _0x4e92b8());}(this);}['destroy'](){const _0x479d1e=this['editor']['plugins']['get'](o),_0x1af618=this['editor']['config']['get']('collaboration.channelId');for(const _0xc962b5 of _0x479d1e['getCommentThreads']({'channelId':_0x1af618}))_0x479d1e['_detachCommentThread'](_0xc962b5['id']),_0x479d1e['_threads']['delete'](_0xc962b5['id']);super['destroy']();}['hasMarkerForId'](_0x3f1ee6){return this['getAllMarkersForId'](_0x3f1ee6)['length']>0x0;}['getAllMarkersForId'](_0x2b548b){const _0x2663d4=[];for(const _0x2856d4 of this['editor']['model']['markers'])_0x2856d4['name']['startsWith']('comment:'+_0x2b548b)&&_0x2663d4['push'](_0x2856d4);return _0x2663d4;}['scrollToThreadMarker'](_0x4360b3){setTimeout(()=>{const _0x3fcf60=this['_getTargetForId'](_0x4360b3);if(!_0x3fcf60)return;this['activeMarker']&&dt(this['activeMarker'])['id']===_0x4360b3&&ot({'target':_0x3fcf60[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x48733c){this['editor']['model']['change'](()=>{for(const _0x1672b2 of this['getAllMarkersForId'](_0x48733c))this['editor']['editing']['reconvertMarker'](_0x1672b2);});}['_attachArchivedThread'](_0x596b5b){const _0x4baa7f=this['editor']['plugins']['get'](o),_0x34544e=this['editor']['plugins']['get'](b),_0x200a24=_0x4baa7f['getCommentThread'](_0x596b5b);if(!_0x200a24['isAttached']){const _0xc0f239=_0x200a24['attachTo'](()=>this['_getTargetForId'](_0x200a24['id']));_0x34544e['registerAnnotation'](_0xc0f239),_0x200a24['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x25e31d=this['editor'],_0x57a24a=_0x25e31d['plugins']['get'](st);_0x25e31d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x3f54da,_0x4b99da)=>{const {id:_0x524480}=dt(_0x3f54da['markerName']),_0x44be3d=_0x25e31d['plugins']['get'](o)['getCommentThread'](_0x524480),_0x49d5df=this['activeMarker']&&dt(this['activeMarker'])['id']===_0x524480;let _0x404e34;if(_0x44be3d&&_0x44be3d['isResolved']&&!_0x49d5df&&_0x3f54da['item'])return _0x4b99da['consumable']['consume'](_0x3f54da['item'],'addMarker:'+_0x3f54da['markerName']),_0x4b99da['consumable']['consume'](_0x3f54da['item'],'removeMarker:'+_0x3f54da['markerName']),null;const _0x3cc728=['ck-comment-marker'];return _0x49d5df&&_0x3cc728['push']('ck-comment-marker--active'),_0x404e34=_0x44be3d?.['length']?_0x44be3d['comments']['first']['author']['id']:_0x57a24a['me']['id'],{'classes':_0x3cc728,'attributes':{'data-comment':_0x524480,'data-author-id':_0x404e34}};}}),_0x25e31d['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1033f7,{options:_0xbefd92})=>{if(_0xbefd92['showCommentHighlights'])return null;const _0x1a5a2e=_0x25e31d['plugins']['get'](o),_0x4cc21a=_0x25e31d['model']['markers']['get'](_0x1033f7),{id:_0x3a8c61,part:_0x4af79e}=dt(_0x1033f7);return _0x4cc21a&&!_0x4cc21a['affectsData']||_0xbefd92['ignoreResolvedComments']&&_0x1a5a2e['getCommentThread'](_0x3a8c61)?.['isResolved']?null:{'group':'comment','name':_0x4af79e?_0x3a8c61+':'+_0x4af79e:_0x3a8c61};}}),_0x25e31d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x4bdf7b,{writer:_0x4815ee})=>_0x4815ee['createElement']('$marker',{'data-name':'comment:'+_0x4bdf7b['getAttribute']('id')})}),_0x25e31d['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0xdad6e1=this['editor'],_0xb21e14=_0xdad6e1['plugins']['get'](o),_0x30d680=new Set(),_0x453527=new Set();_0xdad6e1['model']['document']['registerPostFixer'](_0x1f9780=>{let _0x294c48=!0x1;for(const {name:_0x25fddd,data:_0x531f55}of _0xdad6e1['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2f9139,id:_0x4606d7}=dt(_0x25fddd);let _0x58b91a=_0x531f55['newRange'];if('comment'!==_0x2f9139||!_0x58b91a)continue;const _0x3c67c7='$graveyard'===_0x58b91a['root']['rootName'];_0x3c67c7||(_0x58b91a=mt(_0x58b91a,_0xdad6e1['model']),!_0x58b91a||_0x58b91a['isCollapsed']||!_0x531f55['newRange']||_0x58b91a['isEqual'](_0x531f55['newRange']))?_0xdad6e1['model']['hasContent'](_0x58b91a)&&!_0x3c67c7?this['isThreadsLoadingPaused']?_0x30d680['add'](_0x25fddd):this['_handleThreadMarker'](_0x25fddd,_0x4606d7):(_0x453527['add'](_0x25fddd),_0x30d680['delete'](_0x25fddd),_0x1f9780['removeMarker'](_0x25fddd),_0x294c48=!0x0):(_0x1f9780['updateMarker'](_0x25fddd,{'range':_0x58b91a}),_0x294c48=!0x0);}return _0x294c48;}),this['on']('change:isThreadsLoadingPaused',(_0x430014,_0x285b14,_0x555596)=>{if(!_0x555596&&_0x30d680['size'])for(const _0x1e1985 of _0x30d680){const {id:_0x1c9bea}=dt(_0x1e1985);_0x30d680['delete'](_0x1e1985),_0xdad6e1['model']['markers']['get'](_0x1e1985)&&this['_handleThreadMarker'](_0x1e1985,_0x1c9bea);}}),this['listenTo'](_0xdad6e1['model']['document'],'change',()=>{for(const {name:_0x29cf4c,data:{newRange:_0x30baea}}of _0xdad6e1['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4fe6ca,id:_0x47dbcc}=dt(_0x29cf4c);if('comment'!==_0x4fe6ca)continue;const _0x42bbb3=_0xb21e14['getCommentThread'](_0x47dbcc),_0x25f553=this['hasMarkerForId'](_0x47dbcc);_0x42bbb3&&(!_0x42bbb3['_hasTargetInContent']&&_0x30baea&&_0xdad6e1['editing']['view']['once']('render',()=>{const _0x4eb3cb=_0xdad6e1['plugins']['get'](y),_0x195a27=_0xb21e14['_threadToController']['get'](_0x42bbb3)['view'];_0x4eb3cb['getByInnerView'](_0x195a27)['refreshVisibility']();},{'priority':'low'}),_0x42bbb3['_hasTargetInContent']=_0x25f553||!!_0x30baea),_0x30baea||(_0x453527['add'](_0x29cf4c),_0x30d680['delete'](_0x29cf4c));}for(const _0x5df9e5 of _0x453527){const {id:_0x25c1fa}=dt(_0x5df9e5),_0x3ecd9d=_0xb21e14['getCommentThread'](_0x25c1fa);if(_0x30d680['delete'](_0x5df9e5),!_0x3ecd9d)continue;const _0x129123=this['hasMarkerForId'](_0x25c1fa);_0x129123||_0x3ecd9d['isSubmitted']?_0x129123||_0x3ecd9d['unlinkedAt']||_0x3ecd9d['setUnlinkedAt'](new Date()):_0x3ecd9d['remove']();}_0x453527['clear']();});}['_handleInitialThreads'](_0xae5026){_0xae5026['forEach'](_0x41fb03=>{_0x41fb03['unlinkedAt']&&this['_attachArchivedThread'](_0x41fb03['id']);});}['_getTargetForId'](_0x366a20){const _0x51f9c3=this['editor'],_0x1e1638=this['getAllMarkersForId'](_0x366a20);return it(_0x51f9c3['editing'],_0x1e1638);}['_getTextContext'](_0x18c2d2){const _0x1cf83f=this['getAllMarkersForId'](_0x18c2d2);let _0x477ae0='',_0x2e3dd1=!0x1;for(const _0x2e3605 of _0x1cf83f){const _0x555441=_0x2e3605['getRange']();for(const _0x20b3d4 of Array['from'](_0x555441['getItems']()))_0x20b3d4['is']('$textProxy')?(_0x477ae0&&_0x2e3dd1&&(_0x477ae0+='\x20',_0x2e3dd1=!0x1),_0x477ae0+=_0x20b3d4['data']):_0x2e3dd1=!0x0;_0x2e3dd1=!0x0;}return _0x477ae0['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x383796,_0x1e4216){const _0x32fb94=this['editor'],_0x5850a4=_0x32fb94['plugins']['get'](o);let _0x14a567=_0x5850a4['getCommentThread'](_0x1e4216);const _0x56e775=_0x32fb94['config']['get']('collaboration.channelId'),_0x287d73=_0x32fb94['plugins']['get'](b);if(_0x14a567&&(_0x14a567['unlinkedAt']&&_0x14a567['setUnlinkedAt'](null),_0x14a567['isAttached']))return _0x14a567;return!this['getAllMarkersForId'](_0x1e4216)[0x0]['managedUsingOperations']?_0x32fb94['editing']['view']['once']('render',()=>{if(_0x5850a4['getCommentThread'](_0x1e4216))return;const _0x5ebd1f=_0x32fb94['plugins']['get'](y);_0x14a567=_0x5850a4['openNewCommentThread']({'channelId':_0x56e775,'threadId':_0x1e4216,'target':()=>this['_getTargetForId'](_0x1e4216),'context':{'type':'text','value':this['_getTextContext'](_0x1e4216)}});const _0x3520c2=_0x5850a4['_threadToController']['get'](_0x14a567)['view'],_0x2d627c=_0x5ebd1f['getByInnerView'](_0x3520c2);_0x2d627c&&_0x287d73['registerAnnotation'](_0x2d627c);},{'priority':'low'}):_0x5850a4['fetchCommentThread']({'channelId':_0x56e775,'threadId':_0x1e4216})['then'](_0x30ab6d=>{if('destroyed'!==_0x32fb94['state']){if(_0x14a567=_0x30ab6d,_0x14a567&&!_0x14a567['isAttached']){const _0x10543b=_0x14a567['attachTo'](()=>this['_getTargetForId'](_0x1e4216));_0x287d73['registerAnnotation'](_0x10543b),_0x14a567['isResolved']&&this['_reconvertMarkers'](_0x1e4216);}else{if(!_0x14a567){const _0x48a4a5=this['getAllMarkersForId'](_0x1e4216);_0x32fb94['model']['change'](_0x25a378=>{for(const _0x55ca86 of _0x48a4a5)_0x25a378['removeMarker'](_0x55ca86);});}}}}),_0x14a567;}['_handleThreadMarker'](_0x422348,_0x127051){const _0x1141df=this['_attachMarkerToThread'](_0x422348,_0x127051);_0x1141df&&!_0x1141df['context']&&_0x1141df['setContext']({'type':'text','value':this['_getTextContext'](_0x127051)});}['_initAriaMarkerChangeAnnouncements'](){const _0x229512=this['editor'];et(_0x229512['model'],({left:_0x2338f7,entered:_0x527a93})=>{for(const _0x5e9f08 of _0x2338f7)if(lt(_0x5e9f08)){_0x229512['ui']['ariaLiveAnnouncer']['announce'](N(_0x229512['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x5caf27 of _0x527a93)if(lt(_0x5caf27)){_0x229512['ui']['ariaLiveAnnouncer']['announce'](N(_0x229512['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x168eac)));break;}});}}function ht(_0x597c7f,_0xe1b0a1){return _0xe1b0a1?_0x597c7f+':'+_0xe1b0a1:_0x597c7f;}function mt(_0x358d7a,_0x430c91){const _0x2fc4c7=_0x430c91['schema'],_0x23f4e5=_0x430c91['createRange'](_0x358d7a['start']);for(const _0x211e7e of _0x358d7a['getWalker']()){const {type:_0x3e9acd,item:_0x3db598,nextPosition:_0x39406c}=_0x211e7e;if('text'===_0x3e9acd||_0x2fc4c7['isObject'](_0x3db598)){const _0x45b1c1=_0x430c91['createPositionBefore'](_0x3db598);_0x23f4e5['isCollapsed']&&(_0x23f4e5['start']=_0x45b1c1),_0x23f4e5['end']=_0x39406c;}}return _0x23f4e5;}function lt(_0x2f2caf){return'comment'===dt(_0x2f2caf['name'])['group'];}class s extends _0x2a5e1f{['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 _0x25a593=this['editor'],_0x1635fe=_0x25a593['plugins']['get'](o),_0x4c3637=_0x25a593['plugins']['get'](r),_0x3b4c39=_0x25a593['plugins']['get'](y),_0x2619a7=_0x25a593['plugins']['get'](b);_0x25a593['ui']['componentFactory']['add']('comment',()=>{const _0x40cf09=this['_createUIButton'](_0x1af70f);return _0x40cf09['tooltip']=!0x0,_0x40cf09;}),_0x25a593['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x498650)),_0x2619a7['addSourceCollector'](()=>{const _0x28d615=[];for(const [_0x50cb33,_0x1e6130]of _0x1635fe['_threadToController']){const _0x21982e=_0x4c3637['getAllMarkersForId'](_0x50cb33['id']),_0x9f197=_0x21982e['map'](_0x2fde42=>_0x2fde42['getRange']());_0x21982e['length']>0x0&&_0x28d615['push']([_0x1e6130['view'],_0x9f197]);}return _0x28d615;}),this['listenTo'](_0x3b4c39,'change:activeAnnotations',(_0x3035d9,_0xe2c4c3,_0x380584)=>{const _0x1a6f8=Array['from'](_0x380584)['map'](_0x5531aa=>_0x5531aa['innerView'])['find'](_0x4cba08=>_0x1635fe['_viewToController']['has'](_0x4cba08));if(!_0x1a6f8)return void(_0x4c3637['activeMarker']=null);const _0x5798dc=_0x1635fe['_viewToController']['get'](_0x1a6f8)['model']['id'],_0x5f236e='comment:'+_0x5798dc;_0x5798dc&&_0x4c3637['hasMarkerForId'](_0x5798dc)?_0x4c3637['activeMarker']=_0x5f236e:_0x4c3637['activeMarker']&&(_0x4c3637['activeMarker']=null);}),this['listenTo'](_0x1635fe,'removeCommentThread',(_0x12a813,{threadId:_0x3e9f41,isFromAdapter:_0x393d9b})=>{!_0x393d9b&&_0x25a593['ui']['focusTracker']['isFocused']&&_0x4c3637['hasMarkerForId'](_0x3e9f41)&&_0x25a593['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1635fe,'addComment',(_0x345b92,{threadId:_0x268b95,isFromAdapter:_0x2271c2})=>{if(_0x2271c2||!_0x4c3637['hasMarkerForId'](_0x268b95)||!_0x1635fe['hasCommentThread'](_0x268b95))return;0x1===_0x1635fe['getCommentThread'](_0x268b95)['length']&&(_0x25a593['editing']['view']['focus'](),_0x345b92['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ce037=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d6354;for(const _0xd03695 in _0x1ce037){const _0x28e7c1=_0xd03695,_0x3a0cde=_0x1ce037[_0x28e7c1];if('commentsLicenseKeyValid'==_0x3a0cde||'commentsLicenseKeyInvalid'==_0x3a0cde||'commentsLicenseKeyExpired'==_0x3a0cde||'commentsLicenseKeyDomainLimit'==_0x3a0cde||'commentsLicenseKeyNotAllowed'==_0x3a0cde||'commentsLicenseKeyEvaluationLimit'==_0x3a0cde||'commentsLicenseKeyUsageLimit'==_0x3a0cde){delete _0x1ce037[_0x28e7c1],_0x3d6354=_0x3a0cde,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3d6354&&_0x1ce037['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3d6354&&_0x1ce037['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3d6354&&_0x1ce037['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3d6354&&_0x1ce037['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3d6354&&_0x1ce037['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x3d6354&&_0x1ce037['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x580de0){const _0x50a6c7=this['editor'],_0xc03f2c=new _0x580de0(_0x50a6c7['locale']),_0x36fce1=_0x50a6c7['commands']['get']('addCommentThread');return _0xc03f2c['set']({'label':N(_0x50a6c7['locale'],'Comment'),'icon':_0x47c879}),_0xc03f2c['bind']('isEnabled')['to'](_0x36fce1,'isEnabled',_0x36fce1,'hasContent',(_0xeb68d4,_0x417280)=>_0xeb68d4&&_0x417280),this['listenTo'](_0xc03f2c,'execute',()=>{_0x36fce1['execute']();}),_0xc03f2c;}}class i extends _0x2a5e1f{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x564c15){super(_0x564c15),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0xc03a67,_0x155aa,_0x150e95)=>{_0x150e95?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x18b509,_0x5452cf]of this['editor']['commands'])_0x5452cf['affectsData']&&'addCommentThread'!==_0x18b509&&_0x5452cf['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 _0x2e83d5=this['editor']['editing']['view']['document'];this['listenTo'](_0x2e83d5,'cut',_0x2f4e25=>_0x2f4e25['stop'](),{'priority':'highest'}),this['listenTo'](_0x2e83d5,'clipboardInput',_0x3612b5=>_0x3612b5['stop'](),{'priority':'highest'}),this['listenTo'](_0x2e83d5,'delete',_0x241fcd=>_0x241fcd['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x40cae7,_0x2233a8]of this['editor']['commands'])_0x2233a8['affectsData']&&'addCommentThread'!==_0x40cae7&&_0x2233a8['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 _0x1b2bbd{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15b927){super(_0x15b927),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x283147=this['context']['plugins']['get'](y);this['listenTo'](_0x283147,'_activateAnnotation',(_0x1a7611,_0x46b8de)=>{for(const _0x59403f of this['activeUIs']){const _0x313af3=this['_uis']['get'](_0x59403f);(0x0,this['uisData']['get'](_0x59403f)['filter'])(_0x46b8de)&&_0x313af3['setActiveAnnotation'](_0x46b8de);}}),this['listenTo'](_0x283147,'_deactivateAllAnnotations',()=>{for(const _0x941c42 of this['activeUIs']){this['_uis']['get'](_0x941c42)['setActiveAnnotation'](null);}}),this['listenTo'](_0x283147['_visibleAnnotations'],'add',(_0x535a27,_0x5d0c61)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5d0c61);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x121bb7){return this['activeUIs']['has'](_0x121bb7);}['activate'](_0x466e56,_0x3049de=this['defaultFilter']){const _0x171b8d=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x466e56))throw new _0x56607d('annotationsuis-missing-ui',this,{'uiName':_0x466e56});this['isActive'](_0x466e56)&&this['deactivate'](_0x466e56),this['activeUIs']['add'](_0x466e56);const _0x496d66=new S();v({'source':_0x171b8d['_visibleAnnotations'],'target':_0x496d66,'filter':_0x3049de}),this['uisData']['set'](_0x466e56,{'collection':_0x496d66,'filter':_0x3049de});const _0x1f09a7=this['_uis']['get'](_0x466e56);_0x1f09a7['attach'](_0x496d66),this['listenTo'](_0x1f09a7,'change:activeAnnotation',(_0x3eb1c8,_0x19b103,_0x190dcd,_0x42fd83)=>{_0x42fd83&&_0x171b8d['_removeActiveAnnotation'](_0x42fd83),_0x190dcd&&_0x171b8d['_addActiveAnnotation'](_0x190dcd);});}['deactivate'](_0x2f0ce5){if(this['activeUIs']['delete'](_0x2f0ce5),!this['_uis']['has'](_0x2f0ce5))throw new _0x56607d('annotationsuis-missing-ui',this,{'uiName':_0x2f0ce5});const _0x5cf7ea=this['_uis']['get'](_0x2f0ce5);_0x5cf7ea['detach'](),this['stopListening'](_0x5cf7ea),this['uisData']['get'](_0x2f0ce5)['collection']['destroy'](),this['uisData']['delete'](_0x2f0ce5);}['switchTo'](_0x245a59){if(!this['_uis']['has'](_0x245a59))throw new _0x56607d('annotationsuis-missing-ui',this,{'uiName':_0x245a59});const _0x48ff33=this['context']['plugins']['get'](y),_0x2a7489=Array['from'](_0x48ff33['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x245a59);const _0x232b0c=this['_uis']['get'](_0x245a59);_0x232b0c['setActiveAnnotation'](_0x2a7489),_0x232b0c['_setSelectedAnnotations']&&_0x2a7489&&_0x232b0c['_setSelectedAnnotations']([_0x2a7489]);}['deactivateAll'](){for(const _0x4aa631 of this['activeUIs'])this['deactivate'](_0x4aa631);}['register'](_0x4f1be3,_0x3556cd){if(this['_uis']['has'](_0x4f1be3))throw new _0x56607d('annotationsuis-register-already-registered');if('function'!=typeof _0x3556cd['attach']||'function'!=typeof _0x3556cd['detach']||'function'!=typeof _0x3556cd['setActiveAnnotation'])throw new _0x56607d('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x4f1be3,_0x3556cd);}['refilterAnnotations'](){const _0x427cde=this['context']['plugins']['get'](y)['collection'],_0x1c15a7=new Map(),_0x1f0caa=Array['from'](this['activeUIs']);for(const _0x1a1e0e of this['activeUIs']){const _0x1db1d8=this['uisData']['get'](_0x1a1e0e)['collection'];for(const _0x146c68 of _0x1db1d8)_0x1c15a7['set'](_0x146c68,_0x1a1e0e);}for(const _0x586777 of _0x427cde){const _0x3b4ec8=_0x1c15a7['get'](_0x586777);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x586777);const _0x1eeac5=_0x1f0caa['find'](_0x2dd746=>this['uisData']['get'](_0x2dd746)['filter'](_0x586777));_0x3b4ec8!==_0x1eeac5&&(_0x3b4ec8&&this['uisData']['get'](_0x3b4ec8)['collection']['remove'](_0x586777),_0x1eeac5&&this['uisData']['get'](_0x1eeac5)['collection']['add'](_0x586777));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1e8c8b){const _0x200d1d=[];for(const _0x3a0561 of this['activeUIs']){(0x0,this['uisData']['get'](_0x3a0561)['filter'])(_0x1e8c8b)&&_0x200d1d['push'](_0x3a0561);}if(_0x200d1d['length']>0x1)throw new _0x56607d('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x200d1d,'annotationType':_0x1e8c8b['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Dt('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x3f6f51){super(_0x3f6f51);const _0x343170=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 _0x4caa2d(),this['focusCycler']=new _0x296577({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x343170['to']('class')],'style':{'minHeight':_0x343170['to']('minHeight',_0x8cee5a=>'number'==typeof _0x8cee5a?_i(_0x8cee5a+0xa):null)},'dir':_0x3f6f51['uiLanguageDirection'],'role':'application','aria-label':N(_0x3f6f51,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x3f6f51,'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',_0x3fd809=>{this['_updateItemPositionInFocusables'](_0x3fd809['source']);}),this['list']['forEach'](_0x7ad85c=>{this['focusTracker']['add'](_0x7ad85c['element']),this['_updateItemPositionInFocusables'](_0x7ad85c);}),this['list']['on']('change',(_0xf579c,_0x143866)=>{for(const _0x15cffd of _0x143866['removed'])this['focusTracker']['remove'](_0x15cffd['element']),this['focusables']['remove'](_0x15cffd);for(const _0x556de4 of _0x143866['added'])this['focusTracker']['add'](_0x556de4['element']),this['_updateItemPositionInFocusables'](_0x556de4);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x1c7aff){const _0x2b5f18=this['focusables']['getIndex'](_0x1c7aff);let _0x238a59,_0x191747;for(const _0x4c576a of this['focusables'])if(_0x1c7aff['top']<_0x4c576a['top']){_0x238a59=_0x4c576a;break;}if(_0x191747=_0x238a59?this['focusables']['getIndex'](_0x238a59):this['focusables']['length'],-0x1!==_0x2b5f18){if(_0x2b5f18===_0x191747-0x1)return;this['focusables']['remove'](_0x1c7aff),_0x191747=_0x238a59?this['focusables']['getIndex'](_0x238a59):this['focusables']['length'];}this['focusables']['add'](_0x1c7aff,_0x191747);}}const Ht=/* #__PURE__ -- @preserve */
33
- Dt('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x5ed0a3){super(_0x5ed0a3),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x3a8ae8,_0xe15e58)=>_0x3a8ae8+_0xe15e58),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Et(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3c77eb=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3c77eb['to']('isAnimationDisabled',_0xf93814=>_0xf93814?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3c77eb['to']('top',_0x1c6b7b=>Ht(_0x1c6b7b))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3a05f1=this['element']['clientHeight'];_0x3a05f1&&(this['height']=_0x3a05f1);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x1b2bbd{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x397234){super(_0x397234),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 _0x255dd9=this['context']['config']['get']('sidebar.container');_0x255dd9&&this['setContainer'](_0x255dd9);}['setContainer'](_0x49eb48){if(!g(_0x49eb48))throw new _0x56607d('sidebar-setcontainer-invalid-element');this['container']=_0x49eb48;}['_attachToContainer']({viewClass:_0xec16df='',spaceBetweenItems:_0x30e982=0x19}={}){if(!g(this['container']))throw new _0x56607d('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0xec16df,this['_spaceBetweenItems']=_0x30e982;}['rearrange']({removedAnnotation:_0x174ea4,previousAnnotation:_0x365b8e,nextAnnotation:_0x3ae37c}){const _0x1ba359=this['getSidebarItemView'](_0x174ea4);this['view']['list']['remove'](_0x1ba359),this['_destroySidebarItemView'](_0x174ea4),_0x365b8e&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x365b8e)),_0x3ae37c&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3ae37c)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x30182e,activatedAnnotation:_0x27a21d,disableAnimationOnActivatedAnnotation:_0x3dad45}){if(this['_activeAnnotation']=_0x27a21d,_0x30182e){_0x30182e['isActive']=!0x1;const _0x4ae999=this['getSidebarItemView'](_0x30182e);_0x4ae999&&_0x3dad45&&(_0x4ae999['isAnimationDisabled']=!0x1);}if(_0x27a21d){const _0x10a960=this['getSidebarItemView'](_0x27a21d);_0x10a960&&(_0x27a21d['isActive']=!0x0,_0x3dad45&&(_0x10a960['isAnimationDisabled']=!0x0,_0x10a960['top']+=0x1),this['_alignToTargetRect'](_0x10a960));}}['_detachFromContainer'](_0x4ae69e){if(this['view']['element']['remove'](),_0x4ae69e){for(const _0x44dbb8 of _0x4ae69e)this['_destroySidebarItemView'](_0x44dbb8);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x127bae,_0x3cad02){_0x3cad02||(_0x3cad02=_0x127bae['view']);const _0x41df3f=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x41df3f,_0x127bae),this['_annotationToSidebarItemView']['set'](_0x127bae,_0x41df3f),_0x41df3f['content']['add'](_0x3cad02),this['listenTo'](_0x127bae['view'],'change:targetRect',(_0x5b10ae,_0xd89a13,_0x41ed8d)=>{const _0x4dcf48=this['_getTargetTop'](_0x127bae,_0x41ed8d);_0x41df3f['_targetTop']!=_0x4dcf48&&(_0x41df3f['_targetTop']=_0x4dcf48,this['_setItemTop'](_0x41df3f,_0x4dcf48));}),this['listenTo'](_0x41df3f,'change:top',()=>{this['_recalculate'](_0x41df3f,'top');}),this['listenTo'](_0x41df3f,'change:bottom',()=>{this['_recalculate'](_0x41df3f,'bottom');}),this['_alignToTargetRect'](_0x41df3f);const _0x42fb65=this['_getItemBefore'](_0x41df3f);if(_0x42fb65)this['_alignAfterItem'](_0x42fb65,_0x41df3f)||this['_alignToTargetRect'](_0x41df3f);else this['_alignToTargetRect'](_0x41df3f);return this['_updateLastItem'](),this['view']['list']['add'](_0x41df3f),_0x41df3f;}['_alignForTopChange'](_0x221472){if(!_0x221472['content']['length'])return;const _0x3b590e=this['_getItemBefore'](_0x221472);if(!_0x3b590e)return;const _0x85a8f7=this['_sidebarItemViewToAnnotation']['get'](_0x3b590e),_0x1eb11b=this['_activeAnnotation'];_0x1eb11b&&_0x1eb11b===_0x85a8f7?this['_alignAfterItem'](_0x3b590e,_0x221472):this['_alignBeforeItem'](_0x221472,_0x3b590e);}['_alignForBottomChange'](_0x5b288f){if(!_0x5b288f['content']['length'])return;const _0x3d760f=this['_getItemAfter'](_0x5b288f);if(!_0x3d760f)return;const _0x76b261=this['_sidebarItemViewToAnnotation']['get'](_0x3d760f),_0x4e299a=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x43625a=this['_activeAnnotation'];_0x43625a&&_0x43625a===_0x76b261&&_0x4e299a?(this['_alignBeforeItem'](_0x3d760f,_0x5b288f),this['_alignAfterItem'](_0x5b288f,_0x3d760f)):_0x43625a&&_0x43625a===_0x76b261?this['_alignBeforeItem'](_0x3d760f,_0x5b288f):this['_alignAfterItem'](_0x5b288f,_0x3d760f);}['_recalculate'](_0x4c27ad,_0x1d24e5){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x57a045,changedProp:_0x1e33ce}of this['_recalculateBuffer'])'top'===_0x1e33ce?this['_alignForTopChange'](_0x57a045):this['_alignForBottomChange'](_0x57a045);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4c27ad,'changedProp':_0x1d24e5});}['getSidebarItemView'](_0x2de657){return this['_annotationToSidebarItemView']['get'](_0x2de657);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4b624e){const _0x4f8aaf=this['getSidebarItemView'](_0x4b624e);this['stopListening'](_0x4f8aaf),this['stopListening'](_0x4b624e['view']),_0x4f8aaf['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4b624e),this['_sidebarItemViewToAnnotation']['delete'](_0x4f8aaf);}['_createSidebarView'](){const _0x13a057=new H(this['context']['locale']);return _0x13a057['render'](),this['on']('change:_lastItem',(_0x5de21f,_0x328ad3,_0x2a23ce,_0x206a24)=>{_0x206a24&&_0x13a057['unbind']('minHeight'),_0x2a23ce?_0x13a057['bind']('minHeight')['to'](_0x2a23ce,'bottom'):_0x13a057['minHeight']=null;}),_0x13a057;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x56fd7e){const _0xee8788=this['_sidebarItemViewToAnnotation']['get'](_0x56fd7e),_0x2713f8=_0xee8788&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xee8788)-0x1);return _0x2713f8&&this['getSidebarItemView'](_0x2713f8)||null;}['_getItemAfter'](_0x3b535e){const _0x539607=this['_sidebarItemViewToAnnotation']['get'](_0x3b535e),_0xc435da=_0x539607&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x539607)+0x1);return _0xc435da&&this['getSidebarItemView'](_0xc435da)||null;}['_alignBeforeItem'](_0x193266,_0x22cad1){_0x193266['updateHeight']();const _0x7fa6e7=G(_0x22cad1['bottom']+this['_spaceBetweenItems'],_0x193266['top']);return!!_0x7fa6e7&&(this['_setItemTop'](_0x22cad1,_0x22cad1['top']-_0x7fa6e7),!0x0);}['_alignAfterItem'](_0x18544d,_0x324a89){_0x18544d['updateHeight']();const _0x391d21=G(_0x18544d['bottom']+this['_spaceBetweenItems'],_0x324a89['top']);return!!_0x391d21&&(this['_setItemTop'](_0x324a89,_0x324a89['top']+_0x391d21,!0x1),!0x0);}['_alignToTargetRect'](_0x3b9369){const _0x121365=this['_sidebarItemViewToAnnotation']['get'](_0x3b9369);if(!_0x121365||!_0x121365['target']||!_0x121365['targetRect'])return;const _0x485434=this['_getTargetTop'](_0x121365,_0x121365['targetRect']);this['_setItemTop'](_0x3b9369,_0x485434);}['_getTargetTop'](_0x56fd14,_0x2c9342){if(null===_0x2c9342)return 0x0;if(_0x56fd14['target']instanceof _0x47ead6)return _0x2c9342['top'];{const _0x11b1e1=new _0x47ead6(this['view']['element'])['top'];return _0x2c9342['top']-_0x11b1e1;}}['_setItemTop'](_0x1e7665,_0x598762,_0x51ec04=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x51ec04&&(_0x598762=Math['max'](_0x598762,this['_getMaxAvailableTop'](_0x1e7665))),_0x1e7665['top']=_0x598762;}['_getMaxAvailableTop'](_0x492ec1){let _0x5b1daf=this['_getItemBefore'](_0x492ec1),_0x50f8df=0x0;for(;_0x5b1daf;)_0x5b1daf['updateHeight'](),_0x50f8df+=this['_spaceBetweenItems']+_0x5b1daf['height'],_0x5b1daf=this['_getItemBefore'](_0x5b1daf);return _0x50f8df;}}function G(_0x28df36,_0x37c04a){return Math['max'](_0x28df36-_0x37c04a,0x0);}function g(_0x38d31f){return null!==_0x38d31f&&'object'==typeof _0x38d31f&&0x1===_0x38d31f['nodeType'];}class e extends _0x1b2bbd{['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(_0x5a5c4c){super(_0x5a5c4c),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x526483(),this['_refreshPositioningDebounced']=_0x5ecd8f(()=>{_0x5a5c4c['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x3446c0=this['context']['plugins']['get'](j),_0x535505=this['context']['plugins']['get'](z);_0x3446c0['register']('wideSidebar',this),_0x535505['container']&&_0x3446c0['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x219b37){if(_0x219b37===this['activeAnnotation'])return;const _0xd2ffc0=this['context']['plugins']['get'](z);_0xd2ffc0['_activeAnnotation']=_0x219b37;const _0x571976=this['activeAnnotation'];_0xd2ffc0['refresh']({'blurredAnnotation':_0x571976,'activatedAnnotation':_0x219b37}),this['activeAnnotation']=_0x219b37;}['attach'](_0x607571){this['annotations']=_0x607571;const _0x54337f=this['context']['plugins']['get'](z);if(_0x54337f['_annotations']=_0x607571,this['isAttached'])throw new _0x56607d('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x54337f,'set:container',()=>{this['detach'](),this['listenTo'](_0x54337f,'change:container',_0x1c3222=>{_0x1c3222['off'](),this['attach'](_0x607571);});}),_0x54337f['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x38e28f=_0x1e6b16=>{_0x1e6b16['updateTargetRect'](),_0x54337f['addAnnotation'](_0x1e6b16);};for(const _0x3b3a2f of _0x607571)_0x38e28f(_0x3b3a2f);this['listenTo'](_0x607571,'add',(_0x13d4a8,_0x582767)=>{_0x38e28f(_0x582767);}),this['listenTo'](_0x607571,'remove',(_0x4881c1,_0x10a43a,_0x3a6669)=>{_0x54337f['rearrange']({'removedAnnotation':_0x10a43a,'previousAnnotation':_0x607571['get'](_0x3a6669-0x1),'nextAnnotation':_0x607571['get'](_0x3a6669+0x1)}),_0x10a43a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x607571,'focus',(_0x135ffc,_0xd8cb0a)=>{this['setActiveAnnotation'](_0xd8cb0a);}),this['listenTo'](_0x607571,'blur',()=>{this['setActiveAnnotation'](null);});const _0x5450d6=this['context']instanceof _0x431a91?this['context']['editors']:new _0x526483([this['context']]);for(const _0x450916 of _0x5450d6)this['_integrateWithEditorAnnotations'](_0x450916);this['listenTo'](_0x5450d6,'add',(_0x3c4b06,_0xca5b03)=>{this['listenTo'](_0xca5b03,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xca5b03);});}),this['listenTo'](_0x5450d6,'remove',(_0x3e670d,_0x3e6a85)=>{_0x3e6a85['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3e6a85['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x56607d('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x18a0f8=this['context']['plugins']['get'](z);_0x18a0f8['_detachFromContainer'](this['annotations']),this['stopListening'](_0x18a0f8),this['stopListening'](this['annotations']),this['context']instanceof _0x431a91&&this['stopListening'](this['context']['editors']);for(const _0x313923 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x313923);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2acc6d){if(!_0x2acc6d['plugins']['has']('EditorAnnotations'))return;const _0x46e78e=_0x2acc6d['plugins']['get']('EditorAnnotations'),_0x2a8f26=()=>{const _0x111ec0=_0x46e78e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x111ec0[0x0]||null);};this['listenTo'](_0x46e78e,'refresh',_0x2a8f26),this['listenTo'](_0x46e78e,'blur',(_0x8770fc,{isAnnotationTracked:_0x38c600})=>{this['activeAnnotation']&&_0x38c600(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x46e78e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x3c6121=>{_0x46e78e['hasDomSelection']()&&(_0x2a8f26(),_0x3c6121['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x46e78e);}['_destroyEditorAnnotationsIntegration'](_0x5926eb){this['stopListening'](_0x5926eb),this['_editorAnnotations']['remove'](_0x5926eb);}}class C extends _0x1af70f{['counterView'];constructor(_0x449091){super(_0x449091);const _0x42c2db=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4e76f9,_0x32a27e)=>_0x4e76f9?'...':_0x32a27e['toString']()),this['set']('annotationType',''),this['icon']=_0x47c879,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x42c2db['to']('annotationType',_0x5850e1=>'ck-annotation-counter__badge--'+_0x5850e1),_0x42c2db['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x42c2db['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x1b2bbd{['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(_0x56b34d){super(_0x56b34d),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x5a737d())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x526483(),this['_refreshPositioningDebounced']=_0x5ecd8f(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x4fb94d(this['context']['locale']),this['balloonPanelView']=new _0x4d9f9b(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x486943){this['annotations']=_0x486943;const _0x5c5906=this['context']['plugins']['get'](z),_0x4e9ac5=this['balloonPanelView'];if(_0x5c5906['_annotations']=_0x486943,this['isAttached'])throw new _0x56607d('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5c5906,'set:container',()=>{this['detach'](),this['listenTo'](_0x5c5906,'change:container',_0x5a45f3=>{_0x5a45f3['off'](),this['attach'](_0x486943);});}),_0x5c5906['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x22b6b7=_0x33a7c2=>{const _0x5ee671=new C(this['context']['locale']);_0x5c5906['addAnnotation'](_0x33a7c2,_0x5ee671),this['_annotationToNarrowView']['set'](_0x33a7c2,_0x5ee671),_0x5ee671['bind']('isDirty','annotationType','number')['to'](_0x33a7c2['view'],'isDirty','type','length'),_0x5ee671['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4e9ac5['content']['first']!==_0x33a7c2['view']?(this['_showBalloon'](_0x33a7c2),_0x33a7c2['view']['element']['focus'](),this['setActiveAnnotation'](_0x33a7c2)):this['setActiveAnnotation'](null);});};for(const _0x502561 of _0x486943)_0x22b6b7(_0x502561);this['listenTo'](_0x486943,'add',(_0x12072e,_0x1808d3)=>{_0x22b6b7(_0x1808d3);}),this['listenTo'](_0x486943,'remove',(_0x3fd148,_0x59d2f8,_0x4b4a5b)=>{this['_annotationToNarrowView']['get'](_0x59d2f8)['destroy'](),this['_annotationToNarrowView']['delete'](_0x59d2f8),_0x5c5906['rearrange']({'removedAnnotation':_0x59d2f8,'previousAnnotation':_0x486943['get'](_0x4b4a5b-0x1),'nextAnnotation':_0x486943['get'](_0x4b4a5b+0x1)}),_0x59d2f8===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x486943,'focus',(_0x3fa553,_0x250330)=>{this['setActiveAnnotation'](_0x250330);}),this['listenTo'](_0x486943,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x16c0bb,_0x137012)=>{_0x137012['keyCode']===_0x3973e8['esc']&&_0x4e9ac5['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x4e9ac5['content']['first']),this['_hideBalloon'](),_0x137012['stopPropagation'](),_0x137012['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x484ee8,_0x1cbda9)=>{const _0x55c0e3=_0x1cbda9['target'];_0x4e9ac5['isVisible']&&_0x4e9ac5['element']['contains'](_0x55c0e3)||_0x5c5906['view']['element']['contains'](_0x55c0e3)||_0x484ee8['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4e9b21=>_0x4e9b21['contains'](_0x55c0e3))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x5d7be4=this['context']instanceof _0x431a91?this['context']['editors']:new _0x526483([this['context']]);for(const _0x1dc314 of _0x5d7be4)this['_integrateWithEditorAnnotations'](_0x1dc314);this['listenTo'](_0x5d7be4,'add',(_0xf8d964,_0x543e55)=>{this['listenTo'](_0x543e55,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x543e55);});}),this['listenTo'](_0x5d7be4,'remove',(_0x5dcb3c,_0x4ebccb)=>{_0x4ebccb['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4ebccb['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x408d49){if(_0x408d49===this['activeAnnotation'])return;const _0x338aec=this['context']['plugins']['get'](z);if(_0x338aec['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x408d49,'disableAnimationOnActivatedAnnotation':!0x0}),_0x408d49)_0x338aec['getSidebarItemView'](_0x408d49)?this['_showBalloon'](_0x408d49):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x408d49;}['detach'](){if(!this['isAttached'])throw new _0x56607d('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x117f0c=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0xf2234e=>_0xf2234e['destroy']()),this['_annotationToNarrowView']['clear'](),_0x117f0c['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x431a91&&this['stopListening'](this['context']['editors']);for(const _0xb77ff8 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0xb77ff8);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'](_0x46f46e){if(!_0x46f46e['plugins']['has']('EditorAnnotations'))return;const _0x496869=_0x46f46e['plugins']['get']('EditorAnnotations'),_0x2e3a2b=this['context']['plugins']['get'](z),_0x4a7093=this['annotations'],_0x152636=this['balloonPanelView'],_0x2b3140=()=>{const _0x408de8=_0x496869['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x408de8),this['setActiveAnnotation'](_0x408de8[0x0]||null);};this['listenTo'](_0x496869,'refresh',_0x2b3140),this['listenTo'](_0x496869,'blur',(_0x391330,{isAnnotationTracked:_0x33f4b6})=>{this['activeAnnotation']&&_0x33f4b6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x496869,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x4a7093,'blur',_0x31838e=>{_0x496869['hasDomSelection']()&&_0x31838e['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x93b446,_0x30a5df)=>{const _0x5b1ef1=_0x30a5df['target'];_0x152636['isVisible']&&_0x152636['element']['contains'](_0x5b1ef1)||_0x2e3a2b['view']['element']['contains'](_0x5b1ef1)||this['activeAnnotation']&&_0x496869['hasDomSelection']()&&(_0x2b3140(),_0x93b446['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x496869);}['_destroyEditorAnnotationsIntegration'](_0x12d2ad){_0x12d2ad&&(this['stopListening'](_0x12d2ad),this['_editorAnnotations']['remove'](_0x12d2ad));}['_setSelectedAnnotations'](_0x2fa410){for(const _0x15088f of this['_selectedAnnotations'])_0x2fa410['includes'](_0x15088f)||this['_manuallyClosedAnnotationViews']['delete'](_0x15088f['view']);this['_selectedAnnotations']=_0x2fa410;}['_refreshPositioning'](){const _0xe1c544=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0xe1c544['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x179dd6){if(this['_manuallyClosedAnnotationViews']['has'](_0x179dd6['view']))return;const _0x46fae0=this['balloonPanelView']['content']['first'];_0x46fae0!==_0x179dd6['view']?(_0x46fae0&&this['_detachListeners'](_0x46fae0),this['_attachListeners'](_0x179dd6['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x179dd6['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x1459fb=this['balloonPanelView']['content']['first'],_0x4ca2d8=_0x1459fb&&this['annotations']['getByView'](_0x1459fb);if(!_0x4ca2d8||!this['_annotationToNarrowView']['has'](_0x4ca2d8))return;const _0x1da5aa=this['_annotationToNarrowView']['get'](_0x4ca2d8)['element'],_0x4be1be=(function(){const _0x4c47a5=_0x4d9f9b['defaultPositions'];return[_0x4c47a5['southArrowNorthEast'],_0x4c47a5['northArrowSouthEast'],_0x4c47a5['southArrowNorth'],_0x4c47a5['northArrowSouth'],_0x4c47a5['southArrowNorthWest'],_0x4c47a5['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x1da5aa,'positions':_0x4be1be});}['_hideBalloon'](){const _0x3cc8a8=this['balloonPanelView'],_0x58389f=_0x3cc8a8['content']['first'];_0x58389f&&(this['_detachListeners'](_0x58389f),_0x3cc8a8['unpin'](),_0x3cc8a8['content']['clear']());}['_attachListeners'](_0x554bdb){this['listenTo'](_0x554bdb,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x554bdb,'Esc',(_0x127b9d,_0x5c615d)=>{this['_manuallyClosedAnnotationViews']['add'](_0x554bdb),this['_hideBalloon'](),_0x5c615d();});}['_detachListeners'](_0x5f2fa8){this['stopListening'](_0x5f2fa8);}}class c extends _0x2a5e1f{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x1115cb,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4790f4){super(_0x4790f4),_0x4790f4['editing']['view']['addObserver'](_0x18721f),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4790f4['plugins']['get'](_0x1115cb),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xcca4aa=this['editor']['plugins']['get'](j);_0xcca4aa['context']===this['editor']&&(_0xcca4aa['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x2a056a,_0x20b59f)=>{const _0x4745c2=this['_balloon'];if(this['isAttached']&&_0x4745c2['visibleView']){const _0x35332d=this['annotations']['getByView'](_0x4745c2['visibleView']);_0x35332d&&this['_closeAnnotation'](_0x35332d),_0x20b59f();}}));}['afterInit'](){const _0x7a6f4e=this['editor']['plugins']['get'](j);_0x7a6f4e['context']===this['editor']&&(_0x7a6f4e['hasActive']()||_0x7a6f4e['switchTo']('inline'));}['setActiveAnnotation'](_0x1c2635){_0x1c2635!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1c2635&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1c2635)&&this['_addAnnotationToBalloon'](_0x1c2635,!0x0),_0x1c2635['isActive']=!0x0),_0x1c2635||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1c2635);}['attach'](_0x44e959){this['annotations']=_0x44e959;const _0x5d09cf=this['editor']['plugins']['get'](j),_0x2c6f47=this['_balloon'];if(this['isAttached'])throw new _0x56607d('inlineannotations-attach-already-attached',this);if(_0x5d09cf['context']!==this['editor'])throw new _0x56607d('inlineannotations-not-allowed-with-context',this);const _0x1b4e5f=this['editor']['plugins']['get'](b);this['listenTo'](_0x1b4e5f,'refresh',()=>{const _0x677e18=_0x1b4e5f['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x3c4a7a,_0x16f6ea;!this['_forceRefresh']&&(_0x3c4a7a=_0x677e18,_0x16f6ea=this['_selectedAnnotations'],_0x3c4a7a['length']===_0x16f6ea['length']&&_0x3c4a7a['every'](_0x31d426=>_0x16f6ea['includes'](_0x31d426)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x677e18),this['setActiveAnnotation'](_0x677e18[0x0]||null));}),this['listenTo'](_0x1b4e5f,'blur',(_0x5aba4c,{isAnnotationTracked:_0x2347ec})=>{this['activeAnnotation']&&_0x2347ec(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1973f6,_0x17fc65,_0x3370c5)=>{_0x3370c5||this['setActiveAnnotation'](null);}),this['listenTo'](_0x44e959,'remove',(_0x6de457,_0x499e28)=>{this['_removeAnnotationFromBalloon'](_0x499e28),_0x499e28===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2c6f47,'change:visibleView',(_0x174c96,_0x5c7cf4,_0x35835d,_0x37c757)=>{_0x37c757&&this['stopListening'](_0x37c757);const _0x323645=_0x44e959['getByView'](_0x35835d);_0x35835d&&_0x323645&&(this['listenTo'](_0x35835d,'change:height',()=>{_0x2c6f47['updatePosition']();}),this['listenTo'](_0x35835d,'Esc',()=>{this['_closeAnnotation'](_0x323645),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x323645&&this['setActiveAnnotation'](_0x323645));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x2c6f47['visibleView']&&(_0x44e959['getByView'](_0x2c6f47['visibleView'])&&_0x2c6f47['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 _0x56607d('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x59553a of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x59553a);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x49e495){for(const _0x37c8a8 of this['_selectedAnnotations'])_0x49e495['includes'](_0x37c8a8)||this['_manuallyClosed']['delete'](_0x37c8a8);for(const _0x41e728 of this['annotations'])_0x49e495['includes'](_0x41e728)||this['_removeAnnotationFromBalloon'](_0x41e728);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x614f76 of _0x49e495)this['_addAnnotationToBalloon'](_0x614f76);}this['_selectedAnnotations']=_0x49e495;}['_addAnnotationToBalloon'](_0x2248f0,_0x35a2b6=!0x1){this['_manuallyClosed']['has'](_0x2248f0)||(this['_addedAnnotations']['has'](_0x2248f0)||this['_balloon']['hasView'](_0x2248f0['view'])||(this['_addedAnnotations']['add'](_0x2248f0),this['_balloon']['add']({'stackId':_0x2248f0['view']['id'],'view':_0x2248f0['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2248f0)}})),_0x35a2b6&&this['_balloon']['showStack'](_0x2248f0['view']['id']));}['_getBalloonTargetForAnnotation'](_0x517c2d){const _0x29ce56=_0x517c2d['target'],_0xa7b7b5=this['editor']['editing']['view'],_0x3bdd5d=_0xa7b7b5['document']['selection']['getFirstRange'](),_0x27ce05=_0xa7b7b5['domConverter']['viewRangeToDom'](_0x3bdd5d);if(_0x27ce05['collapse'](!0x0),_0x29ce56){if(_0x29ce56 instanceof _0x47ead6)return _0x29ce56;let _0x924353=[];for(const _0xc7f527 of _0x29ce56)_0x924353['push'](...F(_0xc7f527['getClientRects']()));_0x924353=function(_0xfda3e5){const _0x3d7f26=[];let _0x43425d=_0xfda3e5[0x0];for(let _0x537900=0x1;_0x537900<_0xfda3e5['length'];_0x537900++)P(_0x43425d,_0xfda3e5[_0x537900])?_0x43425d['width']+=_0xfda3e5[_0x537900]['width']:(_0x3d7f26['push'](_0x43425d),_0x43425d=_0xfda3e5[_0x537900]);return _0x3d7f26['push'](_0x43425d),_0x3d7f26;}(_0x924353);const _0x239c63=_0x27ce05['getBoundingClientRect']();return _0x924353['find'](_0x37dad4=>_0x37dad4['top']<=_0x239c63['top']&&_0x37dad4['bottom']>=_0x239c63['bottom']&&_0x37dad4['left']<=_0x239c63['left']&&_0x37dad4['right']>=_0x239c63['right'])||_0x924353[0x0];}return _0x517c2d['targetRect']||_0x27ce05;}['_removeAnnotationFromBalloon'](_0x124c36){this['_addedAnnotations']['has'](_0x124c36)&&this['_balloon']['hasView'](_0x124c36['view'])&&(this['_addedAnnotations']['delete'](_0x124c36),this['_balloon']['remove'](_0x124c36['view']));}['_closeAnnotation'](_0x1b4bf9){this['_manuallyClosed']['add'](_0x1b4bf9),this['_removeAnnotationFromBalloon'](_0x1b4bf9);}}function F(_0x3392e6){return Array['from'](_0x3392e6)['map'](DOMRect['fromRect']);}function P(_0x5e7a3c,_0x5224d4){return _0x5e7a3c['top']===_0x5224d4['top']&&_0x5e7a3c['bottom']===_0x5224d4['bottom']&&_0x5e7a3c['right']===_0x5224d4['left'];}class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1b1122,_0x57ffb0){super(_0x1b1122),this['set']('isEmpty',!_0x57ffb0['length']),this['focusTracker']=new _0x4caa2d(),this['_annotationViews']=_0x57ffb0,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x296577({'focusables':_0x57ffb0,'focusTracker':this['focusTracker']}),this['listenTo'](_0x57ffb0,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x57ffb0,'remove',(_0x299003,_0x24d04a)=>{_0x24d04a['isActive']&&this['focus'](),_0x57ffb0['length']||(this['isEmpty']=!0x0);});const _0x315cf4=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x1b1122,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x57ffb0},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x315cf4['if']('isEmpty','ck-hidden',_0x586956=>!_0x586956)]},'children':[{'text':N(_0x1b1122,'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 _0x392aff of this['_annotationViews'])this['focusTracker']['add'](_0x392aff['element']);this['_annotationViews']['on']('change',(_0x4a69f0,{added:_0x62f8d1,removed:_0x5632f5})=>{for(const _0x182864 of _0x62f8d1)this['focusTracker']['add'](_0x182864['element']);for(const _0x46c8ca of _0x5632f5)this['focusTracker']['remove'](_0x46c8ca['element']);});}}class p extends _0x1b2bbd{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x29bbd3){super(_0x29bbd3),this['archivedThreads']=new _0x526483();}['init'](){const _0x4496a4=this['context'],_0x4d982b=_0x4496a4['plugins']['get'](o),_0x1785f5=_0x4496a4['plugins']['get'](y);this['listenTo'](_0x4d982b,'addCommentThread',(_0x2931ec,{threadId:_0x1ea5a6})=>{const _0x15c4c3=_0x4d982b['getCommentThread'](_0x1ea5a6);_0x15c4c3['archivedAt']&&this['archivedThreads']['add'](_0x15c4c3,this['_calculatePosition'](_0x15c4c3['archivedAt'])),this['listenTo'](_0x15c4c3,'change:archivedAt',(_0x4f7cec,_0x13fa03,_0x2cb8b5)=>{_0x2cb8b5?this['archivedThreads']['has'](_0x15c4c3)||this['archivedThreads']['add'](_0x15c4c3,this['_calculatePosition'](_0x15c4c3['archivedAt'])):this['archivedThreads']['has'](_0x15c4c3)&&this['archivedThreads']['remove'](_0x15c4c3);});}),this['listenTo'](_0x4d982b,'removeCommentThread',(_0x22fc8c,{threadId:_0x44aed2})=>{const _0xfea7d=_0x4d982b['getCommentThread'](_0x44aed2);this['stopListening'](_0xfea7d),this['archivedThreads']['has'](_0xfea7d)&&this['archivedThreads']['remove'](_0xfea7d);},{'priority':'highest'}),this['listenTo'](_0x1785f5['collection'],'focus',(_0x5c5695,_0x554891)=>{_0x554891['isVisible']||(_0x554891['isActive']=!0x0,_0x1785f5['activate'](_0x554891));});}['_calculatePosition'](_0x5b38cf){const _0x27a6b8=[...this['archivedThreads']]['findIndex'](_0x418f00=>_0x418f00['archivedAt']<_0x5b38cf);return _0x27a6b8>-0x1?_0x27a6b8:this['archivedThreads']['length'];}}class a extends _0x2a5e1f{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x1afb04];}constructor(_0x22f6b9){super(_0x22f6b9),this['annotationViews']=new _0x25e068(),this['_pendingThreads']=[];}['init'](){const _0x590fa5=this['editor'],_0x3edba9=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x590fa5['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x1af70f,!0x0)),_0x590fa5['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x229df4=this['_createCommentsArchiveButton'](_0x498650);return _0x229df4['set']({'role':'menuitemcheckbox'}),_0x229df4;});const _0x33aa32=_0x590fa5['plugins']['get'](p),_0x3d820e=_0x590fa5['plugins']['get']('Annotations'),_0x1a8ed8=_0x590fa5['plugins']['get']('CommentsRepository');_0x33aa32['archivedThreads']['forEach'](_0x457c1a=>{this['_handleNewThread'](_0x457c1a);}),this['listenTo'](_0x33aa32['archivedThreads'],'add',(_0x44fec4,_0x519636)=>{this['_handleNewThread'](_0x519636);}),this['listenTo'](_0x3d820e['collection'],'add',(_0x208918,_0xb913b7)=>{const _0x65347e=this['_pendingThreads']['find'](_0x5eb530=>{const _0x2a0964=_0x1a8ed8['_threadToController']['get'](_0x5eb530);return _0x2a0964&&_0xb913b7['innerView']===_0x2a0964['view'];});if(_0x65347e){const _0x265eef=this['_calculatePosition'](_0x65347e['archivedAt']);this['_addAnnotationToArchive'](_0xb913b7,_0x265eef),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x65347e),0x1);}}),this['listenTo'](_0x33aa32['archivedThreads'],'remove',(_0x4ab0a2,_0x42286d)=>{const _0x543f9a=_0x590fa5['config']['get']('collaboration.channelId');if(!_0x543f9a||_0x42286d['channelId']===_0x543f9a){if(this['_pendingThreads']['includes'](_0x42286d))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x42286d),0x1);else{const _0x3aba35=_0x1a8ed8['_threadToController']['get'](_0x42286d),_0x3f67d9=_0x3d820e['getByInnerView'](_0x3aba35['view']);this['annotationViews']['remove'](_0x3f67d9['view']),this['stopListening'](_0x3f67d9),this['stopListening'](_0x3f67d9['focusableElements']);}}}),this['listenTo'](_0x3d820e['collection'],'add',(_0xd7e35,_0x4cdc76)=>{this['listenTo'](_0x4cdc76,'escape',_0x3edba9);}),this['listenTo'](_0x3d820e['collection'],'remove',(_0x5b82ac,_0x290f62)=>{this['stopListening'](_0x290f62,'escape',_0x3edba9);});}['_addAnnotationToArchive'](_0x4a6dcd,_0x3d901a){this['listenTo'](_0x4a6dcd,'set:isVisible',_0x30d79b=>{_0x30d79b['return']=!0x1,_0x30d79b['stop']();}),this['annotationViews']['add'](_0x4a6dcd['view'],_0x3d901a);}['_handleNewThread'](_0x12c350){const _0x105a04=this['editor']['plugins']['get']('CommentsRepository'),_0x5f3e2d=this['editor']['plugins']['get']('Annotations'),_0x24b04c=this['editor']['config']['get']('collaboration.channelId');if(!_0x24b04c||_0x12c350['channelId']===_0x24b04c){const _0x4c70a9=_0x105a04['_threadToController']['get'](_0x12c350);if(!_0x4c70a9)return void this['_pendingThreads']['push'](_0x12c350);const _0x68da82=this['_calculatePosition'](_0x12c350['archivedAt']),_0x6ec334=_0x5f3e2d['getByInnerView'](_0x4c70a9['view']);_0x6ec334['isVisible']&&_0x5f3e2d['_visibleAnnotations']['remove'](_0x6ec334),this['_addAnnotationToArchive'](_0x6ec334,_0x68da82);}}['_calculatePosition'](_0x161750){const _0x44ee9c=this['editor']['config']['get']('collaboration.channelId'),_0x1a71e5=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x52c10a=>_0x52c10a['channelId']===_0x44ee9c)['findIndex'](_0x3f9ab7=>_0x3f9ab7['archivedAt']<_0x161750);return _0x1a71e5<0x0||_0x1a71e5>this['annotationViews']['length']?this['annotationViews']['length']:_0x1a71e5-0x1;}['_toggleDialog'](){const _0x598aa5=this['editor'],_0x446381=_0x598aa5['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x598aa5['locale'],this['annotationViews'])),'commentsArchive'===_0x446381['id']?_0x446381['hide']():_0x446381['show']({'id':'commentsArchive','title':N(_0x598aa5['locale'],'COMMENTS_ARCHIVE'),'icon':_0x19c659,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3422a1['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x9bdd44,_0x32c4be=!0x1){const _0x91660c=this['editor']['locale'],_0x1cf7c3=this['editor']['plugins']['get']('Dialog'),_0x24875f=new _0x9bdd44(_0x91660c);return _0x24875f['bind']('isEnabled')['to'](this,'isEnabled'),_0x24875f['bind']('isOn')['to'](_0x1cf7c3,'id',_0x736757=>'commentsArchive'===_0x736757),_0x24875f['set']({'label':N(_0x91660c,'COMMENTS_ARCHIVE'),'icon':_0x19c659,'isToggleable':!0x0}),_0x32c4be&&(_0x24875f['tooltip']=!0x0),this['listenTo'](_0x24875f,'execute',()=>this['_toggleDialog']()),_0x24875f;}['_hideDialogOnAnnotationEscape']=_0x1dd74b=>{const _0x3c76ad=_0x1dd74b['source'];if(!this['annotationViews']['has'](_0x3c76ad['view']))return;const _0x13db9b=this['editor']['plugins']['get']('Dialog');_0x13db9b['isOpen']&&'commentsArchive'===_0x13db9b['id']&&(_0x13db9b['hide'](),_0x1dd74b['stop']());};}class gi extends _0x2a5e1f{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{rt 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,gt as CommentThreadController,ie as CommentThreadInputView,Tt as CommentThreadView,_t 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 _0xf60486,ContextPlugin as _0x4b682f,PendingActions as lt,Command as _0x14f0aa,Plugin as _0xc00a87,Context as _0x5d9522}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x70c1ad,uid as _0x2e35e1,KeystrokeHandler as jt,FocusTracker as _0x22fbb8,diff as _0x11ee0c,Collection as _0x236aed,Rect as _0x2767ff,CKEditorError as _0x4000c2,first as _0x507315,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x5743fa,keyCodes as _0x46e1a0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1eb990,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x3a5e2f,trimHtml as ts,LateFocusDropdownButtonView as _0x3735fe,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x433cbb}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x51e02f}from'es-toolkit/compat';import{IconUndo as _0x15be80,IconCheck as _0x2ad987,IconPencil as _0x4eaf7c,IconRemoveComment as _0x415646,IconThreeVerticalDots as _0x243f07,IconAddComment as _0x2a98df,IconCommentsArchive as _0x5d05ce}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x329626,ButtonView as _0x19a4ce,ViewCollection as _0x12e523,createDropdown as _0x27ddc6,ListView as _0x4af2d5,focusChildOnDropdownOpen as _0x5631c1,ListItemView as _0x3f5f88,MenuBarMenuListItemButtonView as _0x171cc0,BodyCollection as _0x5a1f0d,BalloonPanelView as _0x46579c,ContextualBalloon as _0x296170,Dialog as _0x1972a5,DialogViewPosition as _0x20ca1c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0xf0bc54}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 _0xb096fc}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x32dbb5}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x70c1ad(){['model'];['view'];constructor(_0x3f346a,_0x468cf4){super(),this['model']=_0x3f346a,this['model']['_isAttached']=!0x0,this['view']=_0x468cf4,this['listenTo'](_0x468cf4,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x468cf4,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x468cf4,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x468cf4,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x468cf4,'addComment',(_0x3f9582,_0x513688)=>this['addComment'](_0x513688)),this['listenTo'](_0x468cf4,'updateComment',(_0x4ec6c7,_0x2b7ea6,_0x126d9f)=>this['updateComment'](_0x2b7ea6,_0x126d9f)),this['listenTo'](_0x468cf4,'removeComment',(_0xb0e4ef,_0x3bc207)=>this['removeComment'](_0x3bc207));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x580d5c){this['model']['addComment']({'content':_0x580d5c,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x132eed,_0x4ae474){this['model']['getComment'](_0x132eed)['update']({'content':_0x4ae474});}['removeComment'](_0x1af6f7){this['model']['getComment'](_0x1af6f7)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0xc33ea0,_0x2f4cb7,_0x186d67){const t=_0xc33ea0['t'];switch(_0x2f4cb7){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'},_0x186d67);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'},_0x186d67);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'},_0x186d67);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'},_0x186d67);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x186d67);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'},_0x186d67);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'},_0x186d67);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'},_0x186d67);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(_0xb2b353,_0x89a705){super(_0xb2b353);const _0x16c165=_0x2e35e1();this['main']=this['createCollection'](),this['editable']=new Vt(_0xb2b353,_0x89a705,void 0x0,{'label':()=>N(_0xb2b353,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xb2b353['uiLanguageDirection'],'lang':_0xb2b353['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x16c165},'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(_0x4b68ac){super(_0x4b68ac),this['view']=new Rt(_0x4b68ac['locale'],_0x4b68ac['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3c99e5=this['editor']['editing']['view'],_0x13f549=this['view']['editable'],_0x1462db=_0x3c99e5['document']['getRoot']();_0x13f549['name']=_0x1462db['rootName'],this['view']['render']();const _0x139cf3=_0x13f549['element'];this['setEditableElement'](_0x13f549['name'],_0x139cf3),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3c99e5['attachDomRoot'](_0x139cf3),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x70c1ad(_0xf60486){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x5597c8={}){function _0x2d30f3(_0x93ed77){return _0x93ed77['map'](_0x42b712=>String['fromCharCode'](_0x42b712))['join']('');}(_0x5597c8=Object['assign']({},_0x5597c8))['plugins']||(_0x5597c8['plugins']=hs['defaultPlugins']),super(_0x5597c8),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[_0x2d30f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d30f3([0x76,0x69,0x65,0x77])][_0x2d30f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d30f3([0x61,0x75,0x74,0x6f]),this[_0x2d30f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2d30f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d30f3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2d30f3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2d30f3([0x6f,0x6b])});}['create'](){const _0x4ac5c6=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x4ac5c6))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x436b62=>{const _0x44c5e1=this['model']['document']['getRoot'](),_0x317be8=_0x44c5e1&&_0x44c5e1['getChild'](_0x44c5e1['childCount']-0x1);_0x436b62['setSelection'](_0x317be8,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2ae3f7=this['editing']['view'],_0x12a3a3=_0x2ae3f7['document']['getRoot'](),_0x3174dc=_0x12a3a3['getChild'](0x0);_0x12a3a3['childCount']>0x1||!_0x3174dc||'p'!=_0x3174dc['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x2ae3f7,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3174dc['placeholder']=this['placeholder']),Ft({'view':_0x2ae3f7,'element':_0x3174dc,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3174dc);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3fd855,_0x40aacd={}){super(_0x3fd855),this['editor']=null,this['_editorConfig']=_0x40aacd,this['set']('value',_0x40aacd['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x3fd855,'Reply...')),this['set']('submitLabel',N(_0x3fd855,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x22fbb8(),this['focusCycler']=new _0x329626({'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',(_0x56cf91,_0x596001)=>{this['cancelButtonView']['fire']('execute'),_0x596001();}),this['keystrokes']['set']('Ctrl+Enter',(_0x27bdb5,_0x30581c)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x30581c());}),this['on']('submit',(_0x1cb218,_0x26b8c2)=>{_0x26b8c2['length']>0xfde8?(alert(N(_0x3fd855,'TOO_LONG_COMMENT_ALERT',[_0x26b8c2['length'],0xfde8])),_0x1cb218['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 _0x3aae5b=this['editor'];this['element']['insertBefore'](_0x3aae5b['ui']['element'],this['element']['firstChild']),_0x3aae5b['model']['document']['on']('change',()=>this['value']=_0x3aae5b['getData']()),_0x3aae5b['bind']('placeholder')['to'](this),this['focusables']['add'](_0x3aae5b['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2170bb){-0x1===_0x2170bb?(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:_0x56f402}=this,_0x50a1a1=new _0x19a4ce(_0x56f402);return _0x50a1a1['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x50a1a1['withText']=!0x0,_0x50a1a1['bind']('label')['to'](this,'submitLabel'),_0x50a1a1['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x50a1a1['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x171af,_0x58429e)=>!_0x58429e&&!!_0x171af['trim']()),_0x50a1a1;}['_createCancelButton'](){const {locale:_0x564002}=this,_0xf8f0cb=new _0x19a4ce(_0x564002);return _0xf8f0cb['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xf8f0cb['label']=N(_0x564002,'Cancel'),_0xf8f0cb['withText']=!0x0,_0xf8f0cb['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0xf8f0cb;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x39efd4=>{this['focusTracker']['add'](_0x39efd4['element']);}),this['focusables']['on']('change',(_0x2fdb19,_0xb9b04)=>{for(const _0x4bba8e of Array['from'](_0xb9b04['added'])['reverse']())this['focusTracker']['add'](_0x4bba8e['element']);});}}class ie extends kt{constructor(_0x44f7e9,_0x333abe,_0x1b0d4d){super(_0x44f7e9),this['commentInputView']=new es(_0x44f7e9,_0x1b0d4d),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2f776e,_0x34b9f2)=>_0x2f776e||!!_0x34b9f2),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 _0x1eb990(_0x44f7e9,_0x333abe),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'](_0x51e35c){this['commentInputView']['focus'](_0x51e35c);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x8a527b,_0x5885dc)=>{const {submitButtonView:_0x27a3f6,cancelButtonView:_0x14df86,editor:_0x15f6d4}=this['commentInputView'];[_0x27a3f6['element'],_0x14df86['element'],_0x15f6d4?_0x15f6d4['editing']['view']['getDomRoot']():null]['filter'](_0x40faab=>_0x40faab)['some'](_0x130013=>_0x130013['contains'](_0x5885dc['target']))||(this['focus'](),_0x5885dc['preventDefault']());});}}class rs extends kt{constructor(_0x4f5404){super(_0x4f5404);const _0x112b5a=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x112b5a['to']('count',_0x3b4b6b=>N(_0x4f5404,'NUMBER_OF_COMMENTS',_0x3b4b6b))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2f041e,_0x4ffda1,_0x59939a){super(_0x2f041e);const _0x439297=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x4ffda1['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x4ffda1,this['_config']=_0x59939a,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x22fbb8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x329626({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x23415a=>this['commentViews']['map'](_0x1988e0=>_0x1988e0['element'])['includes'](_0x23415a['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x2f041e),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x24891c=>_0x24891c-this['_config']['maxCommentsWhenCollapsed']);for(const _0x6cf611 of _0x4ffda1['comments'])this['_handleNewCommentModel'](_0x6cf611);this['_handleInfoComment'](),this['listenTo'](_0x4ffda1['comments'],'add',(_0x2d101a,_0x598541)=>{const _0x4f188d=this['_calculatePosition'](_0x598541);this['length']++,this['_handleNewCommentModel'](_0x598541,_0x4f188d),this['refreshVisibleViews']();}),this['listenTo'](_0x4ffda1['comments'],'remove',(_0x351703,_0x2b0413)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2b0413),this['refreshVisibleViews']();}),this['listenTo'](_0x4ffda1,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x4ffda1,'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',_0x439297['if']('length','ck-hidden',_0x52ae17=>!_0x52ae17)],'aria-label':N(_0x2f041e,'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'](_0x217800){-0x1===_0x217800?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0xa0751 of this['commentViews'])_0xa0751['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1bdd13,_0x1e82f6){const _0x481484=new this['_config']['CommentView'](this['locale'],_0x1bdd13,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x481484['viewUid']=_0x1bdd13['id'],_0x481484['delegate']('removeComment')['to'](this),_0x481484['delegate']('updateComment')['to'](this),_0x481484['delegate']('resolveCommentThread')['to'](this),_0x481484['delegate']('editorReady')['to'](this),_0x481484['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x481484,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x481484,_0x1e82f6);}['_calculatePosition'](_0x2df633){const _0x46bccb=this['_model']['_findOptimalIndex'](_0x2df633);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2df633['authoredAt']?_0x46bccb-0x1:_0x46bccb:_0x46bccb-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x1e60aa={'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'],_0x1e60aa,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x1e60aa));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5d8849){const _0x5bfef3=this['commentViews']['remove'](_0x5d8849['id']);this['stopListening'](_0x5bfef3),_0x5bfef3['isEditMode']&&this['_updateHasDirtyComment'](),_0x5bfef3['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x16eeb9=>_0x16eeb9['isEditMode']);}['_rearrangeCollapse'](){const _0x2951bd=function(_0x2ef2c0){const _0x2290e6=new _0x236aed();for(const _0x1f6b8a of _0x2ef2c0)_0x2290e6['add'](_0x1f6b8a);return _0x2290e6;}(this['commentViews']),_0x50b4db=this['_collapsedCommentsView']['count'];for(let _0x146590=0x1;_0x146590<=_0x50b4db;_0x146590++)_0x2951bd['remove'](0x1);for(const _0x10e5a4 of _0x2951bd)_0x10e5a4['collapse']();_0x50b4db>0x0&&_0x2951bd['add'](this['_collapsedCommentsView'],0x1),ns(_0x11ee0c(Array['from'](this['visibleViews']),Array['from'](_0x2951bd)),this['visibleViews'],_0x2951bd);}['_rearrangeExpand'](){ns(_0x11ee0c(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x3180f6 of this['visibleViews'])_0x3180f6['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x20a8bb=>{this['focusTracker']['add'](_0x20a8bb['element']),this['keystrokes']['listenTo'](_0x20a8bb['element']);}),this['commentViews']['on']('change',(_0x497707,_0x183ff9)=>{for(const _0x26fcd6 of _0x183ff9['removed'])this['focusTracker']['remove'](_0x26fcd6['element']),this['keystrokes']['stopListening'](_0x26fcd6['element']);for(const _0x327a2c of Array['from'](_0x183ff9['added'])['reverse']())this['focusTracker']['add'](_0x327a2c['element']),this['keystrokes']['listenTo'](_0x327a2c['element']);});}}function ns(_0x46ee01,_0x4e5685,_0x27f769){let _0x286ca5=0x0;for(const _0x542466 of _0x46ee01)switch(_0x542466){case'insert':_0x4e5685['add'](_0x27f769['get'](_0x286ca5),_0x286ca5),_0x286ca5++;break;case'delete':_0x4e5685['remove'](_0x286ca5);break;case'equal':_0x286ca5++;}}class oe extends kt{constructor(_0x252c05){super(_0x252c05);const _0x31432e=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x31432e['to']('contextValue',_0x471b10=>N(_0x252c05,'THREAD_CONTEXT_LABEL',_0x471b10)),'tabindex':-0x1},'children':[{'text':_0x31432e['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1c0272,_0x526aca){super(_0x1c0272);const _0x52391c=this['bindTemplate'];this['_model']=_0x526aca,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x22fbb8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x329626({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x2ca7c1=>!!_0x2ca7c1),this['bind']('contextValue')['to'](this['_model'],'context',_0x27e4da=>_0x27e4da&&_0x27e4da['value']?this['_trimContextValue'](_0x27e4da['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',_0x52391c['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 _0x7a6fdc=new _0x19a4ce(this['locale']);return _0x7a6fdc['label']=N(this['locale'],'Reopen'),_0x7a6fdc['tooltip']=N(this['locale'],'Reopen'),_0x7a6fdc['icon']=_0x15be80,_0x7a6fdc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xff3bc1=>!_0xff3bc1),_0x7a6fdc['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x12c3cd,_0x2ad2ef)=>_0x12c3cd&&_0x2ad2ef),_0x7a6fdc['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x7a6fdc;}['_trimContextValue'](_0x17d968){if(_0x17d968['length']<0x96)return _0x17d968;const _0x1f119a=_0x17d968['lastIndexOf']('\x20',0x93);return _0x17d968['substring'](0x0,_0x1f119a>-0x1?_0x1f119a:0x93)+'...';}['_attachContextActions'](){const _0x855c70=this['element']['querySelector']('.ck-context'),_0x20ef60=_0x855c70['querySelector']('.ck-context__value');this['listenTo'](_0x855c70,'mouseenter',()=>{_0x20ef60['offsetWidth']<_0x20ef60['scrollWidth']&&_0x855c70['classList']['add']('overlay');}),this['listenTo'](_0x855c70,'mouseleave',()=>{_0x855c70['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x403e9f of this['focusables'])this['focusTracker']['add'](_0x403e9f['element']),this['keystrokes']['listenTo'](_0x403e9f['element']);}['_createContextView'](){const _0x4dfeab=new oe(this['locale']);return _0x4dfeab['bind']('contextValue')['to'](this),_0x4dfeab;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4e854f,_0x5dd5c7,_0x252128,_0x4e8775){super(_0x4e854f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5dd5c7,this['_localUser']=_0x252128,this['_config']=_0x4e8775,this['commentThreadHeaderView']=new Xt(_0x4e854f,_0x5dd5c7),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x4e854f,N(_0x4e854f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x4e854f,_0x5dd5c7,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4e8775)),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',(_0x2d48ec,_0x3055f0)=>_0x2d48ec||!!_0x3055f0),this['bind']('isUnlinked')['to'](_0x5dd5c7,'unlinkedAt',_0x271b00=>!!_0x271b00),this['bind']('ariaLabel')['to'](this,'length',_0x4556ea=>{const _0x400d2b=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x4556ea,_0x400d2b]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x22fbb8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x329626({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4fa2e4=>_0x4fa2e4['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 _0x1654b4=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15b0aa=_0x1654b4['commentInputView'];return _0x1654b4['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x15b0aa,'value',(_0x2671d8,_0x54a46a,_0x1bacd7,_0x13d336,_0x44def5)=>!!_0x44def5||!!_0x13d336&&_0x1bacd7&&!_0x54a46a||_0x2671d8&&_0x1bacd7&&!_0x54a46a),_0x15b0aa['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5c03ab,_0x4c1c5b,_0x4a1abb)=>{let _0xb2f298;return _0xb2f298=_0x4a1abb&&_0x4c1c5b?'Reply\x20to\x20reopen\x20discussion...':_0x5c03ab?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0xb2f298);}),_0x15b0aa['bind']('submitLabel')['to'](this,'length',_0xa8f245=>N(this['locale'],_0xa8f245?'Reply':'Comment')),_0x15b0aa['on']('submit',(_0x1b9764,_0x3c50ab)=>{this['fire']('addComment',_0x3c50ab),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x15b0aa['on']('cancel',()=>{this['focus']();}),_0x15b0aa['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x15b0aa['on']('cancel',_0x3788ea=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3788ea['stop']());}),this['on']('change:isActive',(_0x53e57c,_0x379f65,_0x54a8e3)=>{_0x54a8e3||this['length']||_0x15b0aa['value']||this['fire']('removeCommentThread');}),_0x1654b4;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4a5ee9,_0x202788,_0x213b61,_0x1aded2){super(_0x4a5ee9,_0x202788,_0x213b61,_0x1aded2),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4a5ee9,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2672d5,_0x2b1591,_0x595cff)=>{_0x595cff||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x42a56d,_0x5adf06,_0x599b57)=>{_0x599b57&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x24fa58=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x24fa58['if']('isActive','ck-thread--active'),_0x24fa58['if']('isUnlinked','ck-thread--unlinked'),_0x24fa58['to']('actionIndicator',_0xeb0dde=>_0xeb0dde?'ck-thread--'+_0xeb0dde:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x24fa58['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 _0x2107c0 of this['commentsListView']['commentViews'])_0x2107c0['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x32e7c9}=this,_0x321cd3=this['commentsListView']['commentViews']['get'](0x0);_0x321cd3===this['_boundFirstCommentView']||_0x321cd3['isSystemComment']||(this['_boundFirstCommentView']=_0x321cd3,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x321cd3,'actionIndicator',_0x296cde=>'remove'===_0x296cde?'remove':null),_0x321cd3['placeholder']=N(_0x32e7c9,'Write\x20a\x20comment...'),_0x321cd3['removeButton']['on']('execute',_0x374ce1=>{_0x374ce1['stop'](),this['showConfirm'](N(_0x32e7c9,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x321cd3['focus']();}),_0x321cd3['actionBar']['add'](this['resolveButton'],0x0),_0x321cd3['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x33f2b4=new _0x3a5e2f(this['locale']);return _0x33f2b4['label']=N(this['locale'],'Resolve'),_0x33f2b4['tooltip']=N(this['locale'],'Resolve'),_0x33f2b4['icon']=_0x2ad987,_0x33f2b4['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x33f2b4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x45a827=>!_0x45a827),_0x33f2b4['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19f930,_0x14aaf8)=>_0x19f930&&!_0x14aaf8),_0x33f2b4['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x33f2b4;}['_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(_0x4dae1d){super(_0x4dae1d),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x16bd9c,_0x6a68ca,_0x1321f1)=>{this['element']['innerHTML']=_0x1321f1;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x387bf1,_0x493c56,_0x3b9a3d){super(_0x387bf1),this['_model']=_0x493c56,this['_config']=_0x3b9a3d,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x493c56,'content',_0x493c56,'authoredAt',(_0x42a96a,_0x55f6e7)=>N(_0x387bf1,'COMMENT_ARIA_LABEL',[_0x493c56['author']['name'],_0x3b9a3d['formatDateTime'](_0x55f6e7),new DOMParser()['parseFromString'](_0x42a96a,'text/html')['body']['textContent'],_0x493c56['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x387bf1,N(_0x387bf1,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x12e523(),this['focusTracker']=new _0x22fbb8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x329626({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x282e56=>_0x282e56['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 _0x2911e1=new is(this['locale']);return _0x2911e1['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1403b5,_0xfff799)=>_0xfff799?ts(_0x1403b5,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1403b5),_0x2911e1;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x27f67c=new es(this['locale'],this['_config']['editorConfig']);return _0x27f67c['value']=this['_model']['content'],_0x27f67c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x27f67c['submitLabel']=N(this['locale'],'Save'),_0x27f67c['on']('submit',(_0x278498,_0x11844e)=>{this['fire']('updateComment',this['_model']['id'],_0x11844e),this['switchToDisplayMode'](),this['focus']();}),_0x27f67c['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x27f67c['once']('editorReady',()=>{_0x27f67c['focus']();}),_0x27f67c['createEditor'](),_0x27f67c['delegate']('editorReady')['to'](this),_0x27f67c['delegate']('editorDestroyed')['to'](this),_0x27f67c;}['_setupKeyboardNavigation'](){const _0x4d2db2=this['element'];this['keystrokes']['listenTo'](_0x4d2db2);for(const _0x221e7d of this['focusables'])this['focusTracker']['add'](_0x221e7d['element']),this['keystrokes']['listenTo'](_0x221e7d['element']);this['focusables']['on']('change',(_0x2d7bb7,_0x1dd6e8)=>{for(const _0xc752b6 of _0x1dd6e8['removed'])this['focusTracker']['remove'](_0xc752b6['element']),this['keystrokes']['stopListening'](_0xc752b6['element']);for(const _0x375711 of _0x1dd6e8['added'])this['focusTracker']['add'](_0x375711['element']),this['keystrokes']['listenTo'](_0x375711['element']);}),this['keystrokes']['set']('enter',(_0x8fcb8a,_0xbea66f)=>{_0x4d2db2===_0x8fcb8a['target']&&(this['focusCycler']['focusFirst'](),_0xbea66f());}),this['keystrokes']['set']('esc',(_0x18fb50,_0x1bc926)=>{_0x4d2db2!==_0x18fb50['target']&&(this['focus'](),_0x1bc926());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x553b03,_0x5b463d,_0x12a758){super(_0x553b03,_0x5b463d,_0x12a758),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x553b03,'Reply...')),this['bind']('authoredAt')['to'](_0x5b463d),this['bind']('resolvedAt')['to'](_0x5b463d),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 _0x1eb990(_0x553b03,_0x5b463d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x5b463d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3a3a7f=this['bindTemplate'],_0x3d671c=[{'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':_0x3a3a7f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3a3a7f['to']('authoredAt',_0x25a18b=>this['_config']['formatDateTime'](_0x25a18b))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x3a3a7f['if']('isEditMode','ck-comment__actions--hidden'),_0x3a3a7f['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']&&_0x3d671c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x3a3a7f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x3a3a7f['if']('isEditMode','ck-comment--edit'),_0x3a3a7f['if']('isSystemComment','ck-comment--info'),_0x3a3a7f['to']('actionIndicator',_0x5dfb3e=>_0x5dfb3e?'ck-comment--'+_0x5dfb3e:'')],'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':_0x3d671c}]}]};}['_createEditButton'](){const _0x193125=new _0x19a4ce(this['locale']);return _0x193125['label']=N(this['locale'],'Edit'),_0x193125['icon']=_0x4eaf7c,_0x193125['withText']=!0x0,_0x193125['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x193125['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x361b57=>!_0x361b57),_0x193125['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x193125['on']('execute',()=>this['switchToEditMode']()),_0x193125;}['_createRemoveButton'](){const _0x67d49c=new _0x19a4ce(this['locale']);return _0x67d49c['label']=N(this['locale'],'Remove'),_0x67d49c['icon']=_0x415646,_0x67d49c['withText']=!0x0,_0x67d49c['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x67d49c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x349816=>!_0x349816),_0x67d49c['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x67d49c['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x67d49c;}['_createDropdown'](){const _0x1efaf5=_0x27ddc6(this['locale'],_0x3735fe),_0x3a9834=_0x1efaf5['panelView']['children'],_0x20ce3a=new _0x4af2d5(this['locale']),_0x5f5346=_0x1efaf5['bindTemplate'];_0x5631c1(_0x1efaf5,()=>this['items']['find'](_0xef65cc=>_0xef65cc['isVisible'])),_0x1efaf5['extendTemplate']({'attributes':{'class':[_0x5f5346['if']('isVisible','ck-hidden',_0x410e90=>!_0x410e90)]}});const _0x5d84c1=(_0x50b037,_0x4dfaaa=-0x1)=>{const _0x68636c=new _0x3f5f88(this['locale']);_0x68636c['children']['add'](_0x50b037);const _0x122572=_0x4dfaaa>-0x1?_0x4dfaaa:_0x20ce3a['items']['length'];_0x20ce3a['items']['add'](_0x68636c,_0x122572);const _0xf635fb=Array['from'](this['items']);_0x1efaf5['unbind']('isEnabled','isVisible'),_0x1efaf5['bind']('isEnabled')['toMany'](_0xf635fb,'isEnabled',(..._0x22c806)=>_0x22c806['some'](_0x4d927b=>_0x4d927b)),_0x1efaf5['bind']('isVisible')['toMany'](_0xf635fb,'isVisible',(..._0x24d6d4)=>_0x24d6d4['some'](_0x461db1=>_0x461db1));};_0x1efaf5['panelPosition']='sw',_0x1efaf5['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x243f07});for(const _0x49de92 of this['items'])_0x5d84c1(_0x49de92);return _0x3a9834['add'](_0x20ce3a),_0x1efaf5['listenTo'](this['items'],'add',(_0x507b8d,_0x59f09a,_0x3983da)=>{_0x5d84c1(_0x59f09a,_0x3983da);}),_0x1efaf5['listenTo'](this['items'],'remove',(_0x1c026d,_0x53862b,_0x2beba3)=>{_0x20ce3a['items']['remove'](_0x2beba3);}),_0x1efaf5;}['_attachActions'](_0x15f737,_0x7a897f){const _0x399bc1=_0x15f737&&_0x15f737['element'];_0x399bc1&&(this['listenTo'](_0x399bc1,'mouseenter',()=>this['actionIndicator']=_0x7a897f),this['listenTo'](_0x399bc1,'focus',()=>this['actionIndicator']=_0x7a897f),this['listenTo'](_0x399bc1,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x399bc1,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x1321f9=super['_createCommentInputView']();return _0x1321f9['bind']('placeholder')['to'](this),_0x1321f9;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x5e63ea){const _0x12267a=Dt(_0x5e63ea,0x1e),_0x85f823=new MutationObserver(_0x1b448c=>{for(const _0x2acf67 of _0x1b448c)('attributes'==_0x2acf67['type']&&'class'==_0x2acf67['attributeName']||'childList'==_0x2acf67['type']||'characterData'==_0x2acf67['type'])&&_0x12267a();});return{'attach'(_0x123483){_0x85f823['observe'](_0x123483,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x85f823['disconnect'](),_0x12267a['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x16eb35,_0x2288f5){super(_0x16eb35),this['id']=_0x2e35e1(),this['focusTracker']=new _0x22fbb8(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x5e6573,_0x40d52d)=>this['fire']('Esc',_0x40d52d)),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'](_0x2288f5),this['mainView']=_0x2288f5;const _0x5b81f8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x5b81f8['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 _0x277f47=this['element']['clientHeight'];_0x277f47&&(this['height']=_0x277f47);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x70c1ad(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x89802e,target:_0x1c9c9c,type:_0x391631,isVisible:_0x35f592=!0x0}){super(),this['view']=_0x89802e,this['view']['element']||this['view']['render'](),this['_type']=_0x391631,this['_target']=_0x1c9c9c,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x236aed([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x47a52b,_0x85ab78)=>{this['view']['focusTracker']['add'](_0x85ab78);}),this['focusableElements']['on']('remove',(_0x594d46,_0x205f37)=>{this['view']['focusTracker']['remove'](_0x205f37);}),this['set']('isVisible',_0x35f592);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x14b3fd=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x14b3fd),_0x14b3fd;}get['targetRect'](){const _0x6875e7=this['target'];if(null===_0x6875e7)return null;if(_0x6875e7 instanceof _0x2767ff)return _0x6875e7;const _0x26c024=_0x6875e7['filter'](_0x3a17b8=>function(_0x277d44){const _0x32f746=_0x277d44['offsetParent'];if(_0x32f746)return!0x0;const _0x1817b3=_0x277d44['getClientRects']()['item'](0x0);return!!_0x1817b3;}(_0x3a17b8));return 0x0===_0x26c024['length']?null:new _0x2767ff(_0x26c024[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3245b1){this['view']['isActive']=_0x3245b1,this['view']['mainView']['isActive']=_0x3245b1;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x466931){if(!(null===_0x466931||_0x466931 instanceof _0x2767ff||Array['isArray'](_0x466931)&&_0x466931['every'](_0x44f31c=>fi(_0x44f31c))))throw new _0x4000c2('annotation-invalid-target',null,{'target':_0x466931});}['_getNormalizedTarget'](){const _0x3f5544='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x3f5544)?[_0x3f5544]:_0x3f5544;}}function fi(_0x5b2266){return null!==_0x5b2266&&'object'==typeof _0x5b2266&&'nodeType'in _0x5b2266&&0x1===_0x5b2266['nodeType'];}class S extends _0x236aed{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x25c196=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x22fbb8(),this['_focusTracker']['on']('change:isFocused',(_0x56d4f0,_0x2f7c74,_0x1ca074)=>{_0x1ca074||this['fire']('blur');});for(const _0x2e965f of _0x25c196)this['add'](_0x2e965f);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x5e69c5){if(this['has'](_0x5e69c5))throw new _0x4000c2('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x5e69c5['innerView'],_0x5e69c5),this['_viewToAnnotation']['set'](_0x5e69c5['view'],_0x5e69c5);for(const _0x4c8010 of _0x5e69c5['focusableElements'])this['_focusTracker']['add'](_0x4c8010);this['listenTo'](_0x5e69c5['focusableElements'],'add',(_0x164533,_0xfd5b71)=>{this['_focusTracker']['add'](_0xfd5b71);}),this['listenTo'](_0x5e69c5['focusableElements'],'remove',(_0x2b6db1,_0x2a56b3)=>{this['_focusTracker']['remove'](_0x2a56b3);}),this['listenTo'](_0x5e69c5['view']['focusTracker'],'change:isFocused',(_0x1448cc,_0x42591d,_0x4a6708)=>{_0x4a6708&&this['fire']('focus',_0x5e69c5);}),_0x5e69c5['updateTargetRect']();const _0x2f3657=this['_getOrderInContent'](_0x5e69c5['view']['targetRect']);return super['add'](_0x5e69c5,_0x2f3657);}['remove'](_0x7c2eac){if(!this['has'](_0x7c2eac))throw new _0x4000c2('annotationcollection-not-existing-item',null);this['stopListening'](_0x7c2eac['view']['focusTracker']),this['stopListening'](_0x7c2eac['focusableElements']);for(const _0x47b738 of _0x7c2eac['focusableElements'])this['_focusTracker']['remove'](_0x47b738);return this['_viewToAnnotation']['delete'](_0x7c2eac['view']),this['_innerViewToAnnotation']['delete'](_0x7c2eac['innerView']),super['remove'](_0x7c2eac);}['getByInnerView'](_0x31ea9d){return this['_innerViewToAnnotation']['get'](_0x31ea9d);}['getByView'](_0x22f9e0){return this['_viewToAnnotation']['get'](_0x22f9e0);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x576d27 of this)_0x576d27['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2d055c=Array['from'](this)['sort']((_0x57e4ee,_0x268ea1)=>w(_0x57e4ee['view']['targetRect'],_0x268ea1['view']['targetRect']));for(let _0x4189f9=_0x2d055c['length']-0x1;_0x4189f9>0x0;_0x4189f9--){const _0x38b9f8=_0x2d055c[_0x4189f9];_0x4189f9!==this['getIndex'](_0x38b9f8)&&(this['remove'](_0x38b9f8),this['add'](_0x38b9f8));}}['_getOrderInContent'](_0x442b5a){let _0x1ff187=0x0;if(!_0x442b5a)return this['length'];for(const _0x124224 of this){const _0x210af4=_0x124224['view']['targetRect'];if(_0x210af4){if(w(_0x442b5a,_0x210af4)<0x0)return _0x1ff187;_0x1ff187++;}}return _0x1ff187;}}function v({source:_0x56a40b,target:_0x319f4e,filter:_0x1506c7}){for(const _0x28e100 of _0x56a40b)_0x1506c7(_0x28e100)&&_0x319f4e['add'](_0x28e100);_0x319f4e['listenTo'](_0x56a40b,'add',(_0x100c0c,_0x5ea43e)=>{_0x1506c7(_0x5ea43e)&&_0x319f4e['add'](_0x5ea43e);}),_0x319f4e['listenTo'](_0x56a40b,'remove',(_0x4eeee1,_0x34b20b)=>{_0x319f4e['has'](_0x34b20b)&&_0x319f4e['remove'](_0x34b20b);});}function w(_0x4c4d55,_0x362a82){if(null===_0x4c4d55&&null===_0x362a82)return 0x0;if(null===_0x4c4d55)return-0x1;if(null===_0x362a82)return 0x1;const _0x18b8ef=_0x4c4d55['top']-_0x362a82['top'];return 0x0==_0x18b8ef?_0x4c4d55['left']-_0x362a82['left']:_0x18b8ef;}class y extends _0x4b682f{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbaf88f){if(super(_0xbaf88f),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0xbaf88f instanceof _0xf60486){const _0x3fc1a8=_0xbaf88f['locale'];_0xbaf88f['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x325d1){this['collection']['add'](_0x325d1);}['remove'](_0x4e0838){this['collection']['remove'](_0x4e0838),_0x4e0838['destroy']();}['refreshVisibility'](){for(const _0x361b89 of this['collection'])_0x361b89['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x57778d){return this['collection']['getByInnerView'](_0x57778d);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x5b740d of this['collection'])_0x5b740d['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x5731b0){this['fire']('_activateAnnotation',_0x5731b0);}['createAnnotation'](_0x390719){return new T(_0x390719);}['createAnnotationView'](_0x2af8d3,_0x14119e){return new E(_0x2af8d3,_0x14119e);}['_addActiveAnnotation'](_0x1322ff){const _0x1d0d17=new Set(this['activeAnnotations']);_0x1d0d17['add'](_0x1322ff),this['activeAnnotations']=_0x1d0d17;}['_removeActiveAnnotation'](_0x2cd07b){const _0x2369f2=new Set(this['activeAnnotations']);_0x2369f2['delete'](_0x2cd07b),this['activeAnnotations']=_0x2369f2;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3b29de=this['collection'],_0x35187b=this['_visibleAnnotations'];function _0x222f32(_0x247b0d){const _0x2c72cb=_0x247b0d['source'];_0x2c72cb['isVisible']&&!_0x35187b['has'](_0x2c72cb)?_0x35187b['add'](_0x2c72cb):!_0x2c72cb['isVisible']&&_0x35187b['has'](_0x2c72cb)&&_0x35187b['remove'](_0x2c72cb),_0x2c72cb['view']['focusTracker']['remove'](_0x2c72cb['view']['element']),_0x2c72cb['view']['focusTracker']['add'](_0x2c72cb['view']['element']);}this['listenTo'](_0x3b29de,'add',(_0x5904b5,_0x155aa5)=>{_0x155aa5['isVisible']&&_0x35187b['add'](_0x155aa5),this['listenTo'](_0x155aa5,'change:isVisible',_0x222f32);}),this['listenTo'](_0x3b29de,'remove',(_0x34ca19,_0x3214dd)=>{_0x35187b['has'](_0x3214dd)&&_0x35187b['remove'](_0x3214dd),this['stopListening'](_0x3214dd,'change:isVisible',_0x222f32);});}['_setupEnterAnnotationKeystroke'](){const _0x1fc73b=_0x5062db=>{_0x5062db['on']('ready',()=>{_0x5062db['keystrokes']['set'](_0xb096fc,(_0x2262b1,_0x4ff38d)=>{const _0x5ddd9d=_0x507315(this['activeAnnotations']['values']());_0x5ddd9d&&(_0x5ddd9d['view']['focus'](),_0x4ff38d());});});};this['context']instanceof _0xf60486?_0x1fc73b(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x567633,_0xca0fba)=>{_0x1fc73b(_0xca0fba);});}['_setupEscapeAnnotationHandling'](){const _0x5a79b4=_0xe0bbfa=>{const _0x3c79b7=_0xe0bbfa['source'],_0x4a5e3b=[];let _0x1e62a1;if(Array['isArray'](_0x3c79b7['target'])){_0x1e62a1=_0x3c79b7['target'][0x0],this['context']instanceof _0xf60486?_0x4a5e3b['push'](this['context']):this['context']['editors']&&_0x4a5e3b['push'](...this['context']['editors']);for(const _0x3582ed of _0x4a5e3b)for(const _0x31cf2c of _0x3582ed['editing']['view']['domRoots']['values']())if(_0x31cf2c['contains'](_0x1e62a1))return void _0x3582ed['editing']['view']['focus']();_0x1e62a1['focus']();}};this['listenTo'](this['collection'],'add',(_0x4df3e0,_0x4b70b9)=>{this['listenTo'](_0x4b70b9,'escape',_0x5a79b4,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x56385e,_0xd6e50d)=>{this['stopListening'](_0xd6e50d,'escape',_0x5a79b4);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x4b682f{['_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(_0x20c331){super(_0x20c331),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3d81fd=this['context']['config'];_0x3d81fd['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3d81fd['define']('comments.maxThreadTotalWeight',0x1f4),_0x3d81fd['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3d81fd['define']('comments.CommentThreadView',gt),_0x3d81fd['define']('comments.CommentView',Tt),_0x3d81fd['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x55481e=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x894a8f,_0x56dc47)=>this['_addCommentThread'](_0x56dc47)),this['on']('submitCommentThread',(_0x1684f6,_0x462088)=>this['_submitCommentThread'](_0x462088)),this['on']('resolveCommentThread',(_0x1b7b7c,_0x3f72f2)=>this['_resolveCommentThread'](_0x3f72f2)),this['on']('resolveCommentThread',(_0x115a4a,_0x3d19b0)=>this['_updateActiveAnnotation'](_0x3d19b0),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x6c92f9,_0x35be3f)=>this['_reopenCommentThread'](_0x35be3f)),this['on']('reopenCommentThread',(_0xdffde3,_0x417ff3)=>this['_updateActiveAnnotation'](_0x417ff3),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x310a58,_0x11e638)=>this['_removeCommentThread'](_0x11e638)),this['on']('updateCommentThread',(_0x12f5ba,_0xe7d671)=>this['_updateCommentThread'](_0xe7d671)),this['on']('updateCommentThread',(_0x5f24ee,_0x35b42e)=>this['_updateActiveAnnotation'](_0x35b42e),{'priority':'lowest'}),this['on']('addComment',(_0x186cc0,_0x1eba57)=>this['_addComment'](_0x1eba57)),this['on']('updateComment',(_0x1a5e96,_0x4775c4)=>this['_updateComment'](_0x4775c4)),this['on']('removeComment',(_0x4f54cd,_0x26d6fc)=>this['_removeComment'](_0x26d6fc)),this['on']('addComment',(_0x45f084,{threadId:_0x500d8d,isFromAdapter:_0x2f8c64})=>{if(_0x2f8c64)return;const _0x517e9b=this['getCommentThread'](_0x500d8d),_0x58a1d7=_0x517e9b&&this['_threadToController']['get'](_0x517e9b);_0x58a1d7&&_0x58a1d7['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x55481e,'change:activeAnnotations',(_0x4c2822,_0x363163,_0x1f8ac2)=>{const _0x246743=Array['from'](_0x1f8ac2)['map'](_0x4a4af0=>this['_viewToController']['get'](_0x4a4af0['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x246743?_0x246743['model']:null;});}set['adapter'](_0x2c9acb){if(this['_adapter'])throw new _0x4000c2('commentsrepository-adapter-already-set');this['_adapter']=_0x2c9acb;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x21aaec=_t,threadId:_0x117bc1=_0x2e35e1(),comments:_0x301541=[],unlinkedAt:_0x3c6b7b=null,resolvedAt:_0xce14a4=null,resolvedBy:_0x3acce3=null,target:_0x47bda4=null,context:_0x56df83=null,attributes:_0x15677a={},isResolvable:_0x50ae81=!0x0,isSubmitted:_0x5bf74b=!0x1,isFromAdapter:_0x5e7943=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x21aaec),{'channelId':_0x21aaec,'threadId':_0x117bc1,'comments':_0x301541,'unlinkedAt':_0x3c6b7b,'resolvedAt':_0xce14a4,'resolvedBy':_0x3acce3,'target':_0x47bda4,'context':_0x56df83,'attributes':_0x15677a,'isFromAdapter':_0x5e7943,'isResolvable':_0x50ae81,'isSubmitted':_0x5bf74b}),this['getCommentThread'](_0x117bc1);}['openNewCommentThread']({channelId:_0x328bee=_t,threadId:_0x5e4e91=_0x2e35e1(),target:_0x16a917,context:_0x10d953=null,isResolvable:_0x286931=!0x0}){if(this['_readOnlyChannels']['has'](_0x328bee)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x16a917)throw new _0x4000c2('commentsrepository-missing-target');const _0xcdd271=this['addCommentThread']({'channelId':_0x328bee,'threadId':_0x5e4e91,'target':_0x16a917,'context':_0x10d953,'isResolvable':_0x286931});if(!_0xcdd271)return null;const _0x5da369=this['_threadToController']['get'](_0xcdd271),_0x25c982=_0x5da369['view']['commentThreadInputView']['commentInputView'],_0x15fef6=this['context']['plugins']['get'](y),_0x28d182=_0x15fef6['getByInnerView'](_0x5da369['view']);return _0x15fef6['activate'](_0x28d182),_0x25c982['once']('editorReady',()=>_0x25c982['focus']()),_0xcdd271;}['hasCommentThread'](_0x4096f4){if('string'!=typeof _0x4096f4)throw new _0x4000c2('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4096f4);}['updateCommentThread']({channelId:_0x55c811=_t,threadId:_0x3af244,context:_0x3b44f1,unlinkedAt:_0x58f77a,attributes:_0x4c0dd3,isFromAdapter:_0xec7e52=!0x1}){return this['fire'](Nt('updateCommentThread',_0x55c811),{'channelId':_0x55c811,'threadId':_0x3af244,'context':_0x3b44f1,'unlinkedAt':_0x58f77a,'attributes':_0x4c0dd3,'isFromAdapter':_0xec7e52}),this['getCommentThread'](_0x3af244);}['getCommentThread'](_0x4fba81){if('string'!=typeof _0x4fba81)throw new _0x4000c2('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4fba81);}['fetchCommentThread']({channelId:_0x1a3bd8,threadId:_0x1f08c7}={}){const _0x95380b=this['getCommentThread'](_0x1f08c7);if(_0x95380b)return Promise['resolve'](_0x95380b);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4000c2('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x1a3bd8,'threadId':_0x1f08c7})['then'](_0x48ad1a=>this['hasCommentThread'](_0x1f08c7)?this['getCommentThread'](_0x1f08c7):_0x48ad1a?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x1a3bd8},_0x48ad1a)):void 0x0)['catch'](_0x20d30a=>{throw console['error'](_0x20d30a),new _0x4000c2('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x18d54a,skipNotAttached:_0x2278ce=!0x1,skipEmpty:_0x34e2ee=!0x1,toJSON:_0x31fcac=!0x1}={}){const _0x517f51=[];for(const _0x3683d4 of this['_threads']['values']())_0x18d54a&&_0x3683d4['channelId']!==_0x18d54a||_0x2278ce&&!_0x3683d4['isAttached']||_0x34e2ee&&0x0===_0x3683d4['length']||_0x517f51['push'](_0x3683d4);return _0x31fcac?_0x517f51['map'](_0xb2a3ed=>_0xb2a3ed['toJSON']()):_0x517f51;}['getAnnotationForCommentThread'](_0x38d09f){const _0x4c72e0=this['_threadToController']['get'](_0x38d09f);if(!_0x4c72e0)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x4c72e0['view'])||null;}['getCommentThreadForAnnotation'](_0x1030b1){const _0x777fd7=this['_viewToController']['get'](_0x1030b1['innerView']);return _0x777fd7?_0x777fd7['model']:null;}['setActiveCommentThread'](_0x17d863){const _0x502d60=this['context']['plugins']['get'](y);if(!_0x17d863)return void(this['activeCommentThread']&&_0x502d60['deactivateAll']());const _0x4eadd8=this['getCommentThread'](_0x17d863);if(!_0x4eadd8)throw new _0x4000c2('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x17d863});if(!this['_threadToController']['has'](_0x4eadd8))throw new _0x4000c2('commentsrepository-active-not-attached',null,{'threadId':_0x17d863});const _0x2b7397=_0x502d60['getByInnerView'](this['_threadToController']['get'](_0x4eadd8)['view']);_0x502d60['activate'](_0x2b7397);}['switchReadOnly'](_0x4b964c,_0x5d5975){_0x4b964c?this['_readOnlyChannels']['add'](_0x5d5975):this['_readOnlyChannels']['delete'](_0x5d5975),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x516a07){return this['_readOnlyChannels']['has'](_0x516a07)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4b5bdb,_0x4d48f2){return new vt(_0x4b5bdb,_0x4d48f2);}['setPermissions'](_0x210380,_0x41a89a=_t){this['_permissions']['set'](_0x41a89a,_0x210380),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3705c0=_t){return this['_permissions']['has'](_0x3705c0)?this['_permissions']['get'](_0x3705c0):bt;}['_addCommentThread']({channelId:_0x21bc9f,threadId:_0x24e1be,comments:_0x40d7fc,unlinkedAt:_0x4a10a9,resolvedAt:_0x4adc7f,resolvedBy:_0x430c58,target:_0x5862d1,context:_0x5f46a9,attributes:_0x3c993a,isFromAdapter:_0x46fc59,isResolvable:_0x264075,isSubmitted:_0x39d48f}){if('string'!=typeof _0x24e1be)throw new _0x4000c2('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x24e1be});if(this['hasCommentThread'](_0x24e1be))throw new _0x4000c2('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x24e1be});const _0x521eb2=new pi(this,{'channelId':_0x21bc9f,'id':_0x24e1be,'context':_0x5f46a9,'attributes':_0x3c993a,'unlinkedAt':_0x4a10a9,'resolvedAt':_0x4adc7f,'resolvedBy':_0x430c58?this['context']['plugins']['get'](it)['getUser'](_0x430c58):null,'isResolvable':_0x264075,'isSubmitted':_0x39d48f||_0x46fc59});this['_threads']['set'](_0x24e1be,_0x521eb2);for(const _0x51627c of _0x40d7fc)_0x521eb2['_add'](this['_createNewComment']({'threadId':_0x24e1be,..._0x51627c}));return _0x5862d1&&_0x521eb2['attachTo'](_0x5862d1),_0x46fc59||!_0x521eb2['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x21bc9f,'threadId':_0x24e1be});}['_submitCommentThread']({channelId:_0x34ed5a,threadId:_0x49391b}){if(!this['hasCommentThread'](_0x49391b))throw new _0x4000c2('commentsrepository-missing-comment-thread',this);const _0x270e77=this['getCommentThread'](_0x49391b);if(_0x270e77['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5ee5be,comments:_0x3c701c,resolvedAt:_0x5a3a09,resolvedBy:_0x24934f,context:_0x51b33a,attributes:_0x52093a}=_0x270e77,_0x172566=this['context']['plugins']['get']('PendingActions'),_0x272f18=_0x172566['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x34ed5a,'threadId':_0x5ee5be,'comments':_0x3c701c['map'](_0x1b48f5=>_0x1b48f5['toJSON']()),'resolvedAt':_0x5a3a09,'resolvedBy':_0x24934f?_0x24934f['id']:_0x24934f,'context':_0x51b33a,'attributes':_0x52093a})['then'](({comments:_0x113c2b})=>{_0x172566['remove'](_0x272f18);for(const _0x824c8e of _0x113c2b)this['_updateComment']({'channelId':_0x34ed5a,'threadId':_0x49391b,'commentId':_0x824c8e['commentId'],'createdAt':_0x824c8e['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x49a02e=>{throw console['error'](_0x49a02e),new _0x4000c2('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x372fb1,target:_0x1d1b67}){const _0xb10278=this['getCommentThread'](_0x372fb1);if(!_0xb10278)throw new _0x4000c2('commentsrepository-attach-missing-comment-thread',this);const _0x20b6d7=this['context']['plugins']['get']('PendingActions'),_0x1a4b51=this['context']['plugins']['get'](y),_0x25a114=this['_createCommentThreadView'](_0xb10278),_0x4358c3=new vt(_0xb10278,_0x25a114);let _0x625834=null;_0x25a114['on']('change:isDirty',(_0x4136c8,_0x276a71,_0x126b5a)=>{_0x126b5a?_0x625834=_0x20b6d7['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x625834&&(_0x20b6d7['remove'](_0x625834),_0x625834=null);}),this['_threadToController']['set'](_0xb10278,_0x4358c3),this['_viewToController']['set'](_0x25a114,_0x4358c3);const _0xc08090=new E(this['context']['locale'],_0x25a114);_0xc08090['bind']('length')['to'](_0x25a114),_0xc08090['bind']('isDirty')['to'](_0x25a114,'isDirty',_0x25a114,'length',(_0x589aeb,_0x4982d4)=>_0x589aeb||!_0x4982d4),_0xc08090['bind']('isActive')['to'](_0x25a114),_0xc08090['type']='comment';const _0x1f3026=new T({'view':_0xc08090,'target':_0x1d1b67,'type':'comment','isVisible':!_0xb10278['archivedAt']&&!!('function'==typeof _0x1d1b67?_0x1d1b67():_0x1d1b67)});return _0x25a114['on']('escape',()=>{_0x1f3026['fire']('escape');}),this['_bindAnnotationToEditors'](_0x25a114,_0x1f3026),_0x1a4b51['add'](_0x1f3026),_0x1f3026;}['_bindAnnotationToEditors'](_0x48953f,_0x566c9d){this['listenTo'](_0x48953f,'editorReady',(_0x1eaed8,_0x320c92)=>{const _0xe99c59=_0x320c92['ui']['view']['body']['bodyCollectionContainer'];_0x566c9d['focusableElements']['add'](_0xe99c59),this['context']instanceof _0xf60486&&this['context']['ui']['focusTracker']['add'](_0xe99c59);},{'priority':'highest'}),this['listenTo'](_0x48953f,'editorDestroyed',(_0x1edcba,_0x3c1db8)=>{const _0x5e3ef8=_0x3c1db8['ui']['view']['body']['bodyCollectionContainer'];_0x566c9d['focusableElements']['has'](_0x5e3ef8)&&_0x566c9d['focusableElements']['remove'](_0x5e3ef8),this['context']instanceof _0xf60486&&this['context']['ui']['focusTracker']['remove'](_0x5e3ef8);});}['_unbindEditors'](_0x33b18c){this['stopListening'](_0x33b18c,'editorReady'),this['stopListening'](_0x33b18c,'editorDestroyed');}['_createCommentThreadView'](_0x5023a2){const _0x16004d=this['context']['plugins']['get'](it),{config:_0x1f71f8,locale:_0x43738a}=this['context'],_0x2293c0=pt(_0x1f71f8['get']('locale'),_0x43738a);return new(0x0,(_0x1f71f8['get']('comments'))['CommentThreadView'])(_0x43738a,_0x5023a2,_0x16004d['me'],{'editorConfig':{..._0x1f71f8['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x1f71f8['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x1f71f8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1f71f8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1f71f8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2293c0,'CommentView':_0x1f71f8['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x14d275,channelId:_0x5169de,resolvedAt:_0x29287e,resolvedBy:_0x22e9ca,isFromAdapter:_0x35e984}){if(!this['hasCommentThread'](_0x14d275))throw new _0x4000c2('commentsrepository-missing-comment-thread',null,{'threadId':_0x14d275});const _0x162016=this['getCommentThread'](_0x14d275);if(_0x162016['isResolved'])throw new _0x4000c2('commentsrepository-resolved-comment-thread',null,{'threadId':_0x14d275});const _0xeba651=this['context']['plugins']['get'](it);if(_0x162016['resolvedBy']=_0xeba651['getUser'](_0x22e9ca),_0x162016['resolvedAt']=_0x29287e,_0x35e984||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x1b741d=this['context']['plugins']['get']('PendingActions'),_0x27cb02=_0x1b741d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x5169de,'threadId':_0x14d275})['then'](({resolvedAt:_0x52415f,resolvedBy:_0x3e4d5b})=>{_0x1b741d['remove'](_0x27cb02),_0x162016['resolvedBy']['id']!==_0x3e4d5b&&(_0x162016['resolvedBy']=_0xeba651['getUser'](_0x3e4d5b)),_0x162016['resolvedAt']=_0x52415f;})['catch'](_0x324b91=>{throw console['error'](_0x324b91),new _0x4000c2('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x32f6ed,channelId:_0x3dd945,isFromAdapter:_0x169717}){if(!this['hasCommentThread'](_0x32f6ed))throw new _0x4000c2('commentsrepository-missing-comment-thread',null,{'threadId':_0x32f6ed});const _0x50231b=this['getCommentThread'](_0x32f6ed);if(!_0x50231b['isResolved'])throw new _0x4000c2('commentsrepository-reopen-comment-thread',null,{'threadId':_0x32f6ed});if(_0x50231b['resolvedBy']=null,_0x50231b['resolvedAt']=null,_0x169717||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2753d7=this['context']['plugins']['get']('PendingActions'),_0x11a258=_0x2753d7['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x3dd945,'threadId':_0x32f6ed})['then'](()=>_0x2753d7['remove'](_0x11a258))['catch'](_0x4369fa=>{throw console['error'](_0x4369fa),new _0x4000c2('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x38bc34,isFromAdapter:_0x1a0ccc}){const _0x4c46be=this['getCommentThread'](_0x38bc34);if(!_0x4c46be)throw new _0x4000c2('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x38bc34),this['_threads']['delete'](_0x38bc34),!_0x4c46be['isSubmitted']||_0x1a0ccc||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5a8e88=this['context']['plugins']['get']('PendingActions'),{channelId:_0x300aab}=_0x4c46be,_0x550b1d=_0x5a8e88['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x300aab,'threadId':_0x38bc34})['then'](()=>_0x5a8e88['remove'](_0x550b1d))['catch'](_0x28f41f=>{throw console['error'](_0x28f41f),new _0x4000c2('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4c77a9,unlinkedAt:_0x571b14,context:_0x4d5025,attributes:_0x164a49,isFromAdapter:_0x419c34}){if('string'!=typeof _0x4c77a9)throw new _0x4000c2('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4c77a9});if(!this['hasCommentThread'](_0x4c77a9))throw new _0x4000c2('commentsrepository-missing-comment-thread',null,{'threadId':_0x4c77a9});const _0x33416c=this['getCommentThread'](_0x4c77a9);let _0x268729=!0x1;if(void 0x0!==_0x4d5025&&_0x33416c['context']!==_0x4d5025&&(_0x33416c['context']=_0x4d5025,_0x268729=!0x0),void 0x0!==_0x571b14&&_0x33416c['unlinkedAt']!==_0x571b14&&(_0x33416c['unlinkedAt']=_0x571b14,_0x268729=!0x0),_0x164a49&&!At(_0x164a49,_0x33416c['attributes'])&&(_0x33416c['attributes']=_0x164a49,_0x268729=!0x0),!_0x268729)return Promise['resolve']();if(!_0x33416c['isSubmitted']||_0x419c34||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4f96b2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x56e8b2}=_0x33416c,_0x3fd826=_0x4f96b2['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x56e8b2,'threadId':_0x4c77a9,'context':_0x4d5025,'unlinkedAt':_0x571b14,'attributes':_0x164a49})['then'](()=>_0x4f96b2['remove'](_0x3fd826))['catch'](_0x2338b=>{throw console['error'](_0x2338b),new _0x4000c2('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x2e150d){const _0x1654d0=this['context']['plugins']['get'](y),_0x3f6299=this['getCommentThread'](_0x2e150d);if(_0x3f6299['_isAttached']=!0x1,this['_threadToController']['has'](_0x3f6299)){const _0x1f9f07=this['_threadToController']['get'](_0x3f6299),_0x39d386=_0x1f9f07['view'],_0x5555ea=_0x1654d0['getByInnerView'](_0x39d386);this['_threadToController']['delete'](_0x3f6299),this['_viewToController']['delete'](_0x39d386),_0x5555ea&&_0x1654d0['remove'](_0x5555ea),_0x1f9f07['destroy'](),_0x39d386['destroy']()['then'](()=>{this['_unbindEditors'](_0x39d386);});}}['_updateActiveAnnotation']({threadId:_0x46d69d,resolvedAt:_0x51502e,unlinkedAt:_0x9bab60}){const _0xa14487=!!_0x51502e,_0x451f36=this['context']['plugins']['get'](y),_0x211720=this['getCommentThread'](_0x46d69d);if(this['_threadToController']['has'](_0x211720)){const _0x30445d=this['_threadToController']['get'](_0x211720)['view'],_0x277d84=_0x451f36['getByInnerView'](_0x30445d);_0x277d84&&(_0xa14487&&_0x451f36['_removeActiveAnnotation'](_0x277d84),_0x9bab60?_0x277d84['isVisible']=!0x1:_0x277d84['refreshVisibility']());}}['_getExternalAuthor'](_0x3857f9){const _0x44bbf1=this['context']['plugins']['get'](it),_0x59bba8=It('external:'+_0x3857f9),_0xf5c1e7=_0x44bbf1['getUser'](_0x59bba8);return _0xf5c1e7||_0x44bbf1['addUser']({'id':_0x59bba8,'name':_0x3857f9});}['_createNewComment']({threadId:_0x2acc48,commentId:_0x84e023=_0x2e35e1(),content:_0xaa8a21,authorId:_0x246398,createdAt:_0x733ee0,attributes:_0x313416}){if('string'!=typeof _0x84e023)throw new _0x4000c2('commentsrepository-invalid-commentid');if('string'!=typeof _0x246398)throw new _0x4000c2('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0xaa8a21||!_0xaa8a21['trim']())throw new _0x4000c2('commentsrepository-invalid-comment-content');const _0x4546d8=this['context']['plugins']['get'](it)['getUser'](_0x246398);if(!_0x4546d8)throw new _0x4000c2('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x246398});let _0x1e5b21=null,_0x39c8ee=_0x733ee0;return _0x313416?.['@external']&&(_0x1e5b21=this['_getExternalAuthor'](_0x313416['@external']['authorName']),_0x39c8ee=new Date(_0x313416['@external']['createdAt'])),new wi(this,{'threadId':_0x2acc48,'id':_0x84e023,'author':_0x1e5b21||_0x4546d8,'creator':_0x4546d8,'content':_0xaa8a21,'createdAt':_0x733ee0,'authoredAt':_0x39c8ee,'attributes':_0x313416});}['_addComment'](_0x2a9acc){let {threadId:_0x7454fb,content:_0x36ae9b,attributes:_0x4db46f,isFromAdapter:_0x40f894}=_0x2a9acc;const _0x57d59b=this['getCommentThread'](_0x2a9acc['threadId']);if(!_0x57d59b)throw new _0x4000c2('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x4b22af=this['_createNewComment'](_0x2a9acc),{id:_0x20a008}=_0x4b22af;if(_0x57d59b['_add'](_0x4b22af),_0x40f894||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x57d59b['isSubmitted'])return Promise['resolve']();const _0x4b441d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3771e1}=_0x57d59b,_0x2d0d4f=_0x4b441d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x4db46f||(_0x4db46f={}),this['adapter']['addComment']({'channelId':_0x3771e1,'threadId':_0x7454fb,'commentId':_0x20a008,'content':_0x36ae9b,'attributes':_0x4db46f})['then'](_0x2e16af=>{_0x4b441d['remove'](_0x2d0d4f),_0x2e16af&&this['_updateComment']({'channelId':_0x3771e1,'threadId':_0x7454fb,'commentId':_0x20a008,'createdAt':_0x2e16af['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5cb130=>{throw console['error'](_0x5cb130),new _0x4000c2('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x1fb979,commentId:_0x344d69,content:_0x26acdd,createdAt:_0x4df7ff,attributes:_0x8200f6,isFromAdapter:_0x2cdcfe}){if(void 0x0!==_0x26acdd&&('string'!=typeof _0x26acdd||!_0x26acdd['trim']()['length']))throw new _0x4000c2('commentsrepository-update-comment-invalid-content');const _0x4831ae=this['getCommentThread'](_0x1fb979),_0x1bf03b=_0x4831ae['getComment'](_0x344d69);if(!_0x1bf03b)throw new _0x4000c2('commentsrepository-update-missing-comment',this);let _0x2c161b=!0x1;if(_0x26acdd&&_0x26acdd!==_0x1bf03b['content']&&(_0x1bf03b['isEditable']||_0x2cdcfe)&&(_0x1bf03b['content']=_0x26acdd,_0x2c161b=!0x0),_0x4df7ff&&_0x4df7ff!==_0x1bf03b['createdAt']&&(_0x1bf03b['createdAt']=_0x4df7ff,_0x1bf03b['attributes']&&_0x1bf03b['attributes']['@external']||(_0x1bf03b['authoredAt']=_0x4df7ff),_0x2c161b=!0x0),_0x8200f6&&!At(_0x8200f6,_0x1bf03b['attributes'])&&(_0x1bf03b['attributes']=_0x8200f6,_0x2c161b=!0x0),!_0x2c161b)return Promise['resolve']();if(_0x4831ae['fire']('commentUpdated'),_0x2cdcfe||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2f40ae=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1df232}=this['getCommentThread'](_0x1bf03b['threadId']),_0x520ca0=_0x2f40ae['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x1df232,'threadId':_0x1fb979,'commentId':_0x344d69,'content':_0x26acdd,'attributes':_0x8200f6})['then'](()=>_0x2f40ae['remove'](_0x520ca0))['catch'](_0x55d652=>{throw console['error'](_0x55d652),new _0x4000c2('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x48ea02,commentId:_0x5a8e23,isFromAdapter:_0x2b74b6}){const _0x3559ce=this['getCommentThread'](_0x48ea02),_0x44fe82=_0x3559ce['getComment'](_0x5a8e23);if(!_0x44fe82)throw new _0x4000c2('commentsrepository-remove-missing-comment',this);if(_0x3559ce['_remove'](_0x44fe82),_0x2b74b6||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2ed214=this['context']['plugins']['get']('PendingActions'),{channelId:_0x549c25}=_0x3559ce,_0x5d501f=_0x2ed214['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x549c25,'threadId':_0x48ea02,'commentId':_0x5a8e23})['then'](()=>_0x2ed214['remove'](_0x5d501f))['catch'](_0x1d5a6d=>{throw console['error'](_0x1d5a6d),new _0x4000c2('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x70c1ad(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0xa07b4c,_0x18d8ae){super();const _0x33f32a=_0x18d8ae['isResolvable'];this['channelId']=_0x18d8ae['channelId'],this['id']=_0x18d8ae['id'],this['comments']=new _0x236aed(),this['_repository']=_0xa07b4c,this['_isAttached']=!0x1,this['_isSubmitted']=_0x18d8ae['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0xa07b4c,'_permissions',_0xa07b4c,'_readOnlyChannels',()=>_0xa07b4c['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0xa07b4c,'_permissions',()=>_0xa07b4c['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0xa07b4c,'_permissions',()=>{const _0xdcbd0a=_0xa07b4c['getPermissions'](this['channelId']);return _0xdcbd0a['write']||_0xdcbd0a['admin'];}),this['bind']('isResolvable')['to'](_0xa07b4c,'_permissions',()=>_0x33f32a&&_0xa07b4c['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x18d8ae['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x22a6ff,_0x12ec4d)=>_0x22a6ff?_0x12ec4d?_0x22a6ff<_0x12ec4d?_0x22a6ff:_0x12ec4d:_0x22a6ff:_0x12ec4d),this['set']('unlinkedAt',_0x18d8ae['unlinkedAt']||null),this['set']('resolvedAt',_0x18d8ae['resolvedAt']||null),this['set']('resolvedBy',_0x18d8ae['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x259ce4=>!!_0x259ce4),this['set']('attributes',_0x18d8ae['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x243929,_0x24c259)=>_0x243929+_0x24c259['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x5f5662,id:_0x21671f}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x5f5662),{'channelId':_0x5f5662,'threadId':_0x21671f});}['setUnlinkedAt'](_0x4d3ac9){this['_update']({'unlinkedAt':_0x4d3ac9});}['resolve']({resolvedAt:_0x183cad=new Date(),resolvedBy:_0x36364f='',isFromAdapter:_0x3008da=!0x1}={}){const _0x212e68=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4e6f9d,id:_0x16e1af}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x4e6f9d),{'channelId':_0x4e6f9d,'threadId':_0x16e1af,'resolvedAt':_0x183cad,'resolvedBy':_0x36364f||_0x212e68['id'],'isFromAdapter':_0x3008da});}['reopen']({isFromAdapter:_0x1b21e4=!0x1}={}){const {channelId:_0x4fd896,id:_0x22580f}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x4fd896),{'channelId':_0x4fd896,'threadId':_0x22580f,'isFromAdapter':_0x1b21e4});}['setContext'](_0x44ecb2){this['context']||this['_update']({'context':_0x44ecb2});}['setAttribute'](_0x3a5140,_0x1f9078){const _0x5e1423=wt(this['attributes']);yt(_0x5e1423,_0x3a5140,_0x1f9078),this['_update']({'attributes':_0x5e1423});}['removeAttribute'](_0x2e1a7e){const _0x32c85b=wt(this['attributes']);Ct(_0x32c85b,_0x2e1a7e),this['_update']({'attributes':_0x32c85b});}['remove']({isFromAdapter:_0x541a7c=!0x1}={}){const {channelId:_0xef6479,id:_0x334cac}=this;this['_repository']['fire'](Nt('removeCommentThread',_0xef6479),{'channelId':_0xef6479,'threadId':_0x334cac,'isFromAdapter':_0x541a7c});}['attachTo'](_0xc668c4){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0xc668c4});}['addComment'](_0x1b1acb){const {channelId:_0x581b8f,id:_0x4da915}=this;this['_repository']['fire'](Nt('addComment',_0x581b8f,_0x4da915),Object['assign']({'channelId':_0x581b8f,'threadId':_0x4da915},_0x1b1acb));}['getComment'](_0x5e60c3){if('string'!=typeof _0x5e60c3)throw new _0x4000c2('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x5e60c3});return this['comments']['get'](_0x5e60c3);}['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'](_0x42fe29=>_0x42fe29['toJSON']()),'attributes':this['attributes']};}['_add'](_0x24dffc){return this['listenTo'](_0x24dffc,'change:authoredAt',()=>{const _0x19e857=this['_findOptimalIndex'](_0x24dffc),_0x54aedb=this['comments'];_0x19e857-0x1!=_0x54aedb['getIndex'](_0x24dffc)&&_0x19e857+0x1!=_0x54aedb['getIndex'](_0x24dffc)&&(this['_remove'](_0x24dffc),this['_add'](_0x24dffc));}),this['comments']['add'](_0x24dffc,this['_findOptimalIndex'](_0x24dffc));}['_update'](_0x5d05eb){const {channelId:_0x588803,id:_0x7fda36}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x588803),{..._0x5d05eb,'channelId':_0x588803,'threadId':_0x7fda36});}['_remove'](_0x37bcd9){return this['stopListening'](_0x37bcd9),_0x37bcd9['destroy'](),this['comments']['remove'](_0x37bcd9);}['_findOptimalIndex'](_0x4ced88){const _0x35dc8c=this['comments']['find'](_0x237f3a=>new Date(_0x237f3a['authoredAt'])['getTime']()>new Date(_0x4ced88['authoredAt'])['getTime']());return _0x35dc8c?this['comments']['getIndex'](_0x35dc8c):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x70c1ad(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x57cafe,_0x5df848){super();const _0x5b96c5=_0x57cafe['context']['plugins']['get'](it)['me'],_0x2fc08f=_0x57cafe['getCommentThread'](_0x5df848['threadId']),_0x64ef4f=0x0===_0x2fc08f['comments']['length'],_0x6bffe9=_0x5b96c5===_0x5df848['author'];this['id']=_0x5df848['id'],this['threadId']=_0x5df848['threadId'],this['author']=_0x5df848['author'],this['creator']=_0x5df848['creator'],this['isExternal']=Boolean(_0x5df848['attributes']&&_0x5df848['attributes']['@external']),this['set']('content',_0x5df848['content']),this['createdAt']=_0x5df848['createdAt']||new Date(),this['set']('authoredAt',_0x5df848['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2fc08f,'resolvedAt'),this['set']('attributes',_0x5df848['attributes']||{}),this['bind']('isEditable')['to'](_0x57cafe,'_permissions',()=>{const _0x5ae8b4=_0x57cafe['getPermissions'](_0x2fc08f['channelId'])['write'],_0xe6b963=_0x57cafe['getPermissions'](_0x2fc08f['channelId'])['modifyAll'];return _0x6bffe9&&_0x5ae8b4||!_0x6bffe9&&_0xe6b963;}),this['bind']('isRemovable')['to'](_0x2fc08f,'isRemovable',_0x57cafe,'_permissions',_0x33c6a6=>{const _0x3ce207=_0x57cafe['getPermissions'](_0x2fc08f['channelId'])['write'],_0x2f9604=_0x57cafe['getPermissions'](_0x2fc08f['channelId'])['modifyAll'];return _0x6bffe9&&_0x3ce207||_0x33c6a6&&_0x64ef4f||!_0x6bffe9&&_0x2f9604&&!_0x64ef4f;}),this['bind']('isReadOnly')['to'](_0x2fc08f,'isReadOnly'),this['_repository']=_0x57cafe;}get['weight'](){return Math['max'](function(_0x7c3ab1){const _0xff32f1=document['createElement']('div');return _0xff32f1['innerHTML']=_0x7c3ab1,_0xff32f1['textContent']['length'];}(this['content']),0xc8);}['update'](_0x11a2e7){const {threadId:_0x3a4894,id:_0x3c4357}=this;if(!this['_repository']['hasCommentThread'](_0x3a4894))throw new _0x4000c2('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x16db9c}=this['_repository']['getCommentThread'](_0x3a4894);this['_repository']['fire'](Nt('updateComment',_0x16db9c,_0x3a4894),{'channelId':_0x16db9c,'threadId':_0x3a4894,'commentId':_0x3c4357,..._0x11a2e7});}['setAttribute'](_0x4abb82,_0x307971){const _0x18d08d=wt(this['attributes']);yt(_0x18d08d,_0x4abb82,_0x307971),this['update']({'attributes':_0x18d08d});}['removeAttribute'](_0xa77559){const _0x2ca721=wt(this['attributes']);Ct(_0x2ca721,_0xa77559),this['update']({'attributes':_0x2ca721});}['remove'](_0x25eab3={}){if(!_0x25eab3['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x17d832,id:_0xd3e8cd}=this;if(!this['_repository']['hasCommentThread'](_0x17d832))throw new _0x4000c2('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4671d6}=this['_repository']['getCommentThread'](_0x17d832);this['_repository']['fire'](Nt('removeComment',_0x4671d6,_0x17d832),{'channelId':_0x4671d6,'threadId':_0x17d832,'commentId':_0xd3e8cd,..._0x25eab3});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x22bc56,..._0x4f5d50){for(const _0x1ded5f of _0x4f5d50)void 0x0!==_0x1ded5f&&(_0x22bc56+=':'+String(_0x1ded5f));return _0x22bc56;}class ot extends _0x14f0aa{constructor(_0x383dc5){super(_0x383dc5),this['set']('hasContent',!0x1);}['refresh'](){const _0x37b7d8=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0xd465a8 of _0x37b7d8['getRanges']())if(this['_hasContent'](_0xd465a8))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x4548c1=_0x2e35e1(),ranges:_0x17fab1,comment:_0x2d39e1}={}){const _0x169098=this['editor']['model'],_0x4d56ee=_0x17fab1??Array['from'](_0x169098['document']['selection']['getRanges']()),_0x24edbc=[];for(const _0xae996e of _0x4d56ee)this['_hasContent'](_0xae996e)&&_0x24edbc['push'](this['_trimToContent'](_0xae996e));if(!_0x24edbc['length'])throw new _0x4000c2('addcommentthreadcommand-incorrect-ranges',null);_0x2d39e1&&this['_createCommentThread'](_0x4548c1,_0x2d39e1),this['_createMarkersFromRanges'](_0x4548c1,_0x24edbc,!!_0x2d39e1);}['_createMarkersFromRanges'](_0x17cb28,_0x324075,_0x224f1f){this['editor']['model']['change'](_0x4c3490=>{for(const _0x32b373 of _0x324075){const _0x359e0a=_0x2e35e1()['substr'](0x1,0x5),_0x2629f7='comment:'+_0x17cb28+':'+_0x359e0a;_0x4c3490['addMarker'](_0x2629f7,{'range':_0x32b373,'usingOperation':_0x224f1f,'affectsData':_0x224f1f});}});}['_createCommentThread'](_0xc8f1c2,_0xa17ad1){const _0xf2e177=this['editor']['plugins']['get']('CommentsRepository'),_0x201642=this['editor']['config']['get']('collaboration.channelId'),_0x45de28=this['editor']['plugins']['get']('Users')['me'];if(!_0x45de28)throw new _0x4000c2('addcommentthreadcommand-user-not-found',null);_0xf2e177['addCommentThread']({'threadId':_0xc8f1c2,'channelId':_0x201642,'comments':[{'authorId':_0x45de28['id'],'content':_0xa17ad1,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x19c645){for(const _0x11ccc8 of _0x19c645['getItems']())if(this['_itemIsContent'](_0x11ccc8))return!0x0;return!0x1;}['_itemIsContent'](_0x1f16db){return _0x1f16db['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x1f16db)&&!_0x1f16db['is']('element','tableCell');}['_trimToContent'](_0x485d83){const _0x2fb6d8=_0x5f4074=>!this['_itemIsContent'](_0x5f4074['item']),_0x321200=_0x485d83['start']['getLastMatchingPosition'](_0x2fb6d8),_0x4b77fd=_0x485d83['end']['getLastMatchingPosition'](_0x2fb6d8,{'direction':'backward'});return this['editor']['model']['createRange'](_0x321200,_0x4b77fd);}}class b extends _0xc00a87{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x361783){super(_0x361783),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x141876=this['editor'],_0x3d68d9=_0x141876['model']['document']['selection'],_0xec4e9a=_0x51e02f(()=>this['refreshSelectedViews'](),0xa);_0x3d68d9['on']('change:range',(_0x395fb1,_0x5881f0)=>{_0x5881f0['directChange']&&(_0xec4e9a['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x141876['editing']['view']['document'],'change:isFocused',(_0x16cccc,_0x2721b8,_0x497919)=>{_0x497919&&_0xec4e9a();}),this['listenTo'](_0x141876['ui']['focusTracker'],'change:isFocused',(_0x362319,_0x52c526,_0xda193a)=>{_0xda193a||this['fire']('blur',{'isAnnotationTracked':_0x333846=>this['_editorAnnotationsData']['has'](_0x333846['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4ec4f7){if(this['_editorAnnotations']['has'](_0x4ec4f7['view']))return;this['_editorAnnotations']['add'](_0x4ec4f7['view']),this['editor']['ui']['focusTracker']['add'](_0x4ec4f7['view']['element']);const _0x1083f5=this['editor']['plugins']['get'](y);this['listenTo'](_0x1083f5['collection'],'remove',(_0x540557,_0x18a26a)=>{this['editor']['ui']['focusTracker']['remove'](_0x18a26a['view']['element']),this['_editorAnnotations']['delete'](_0x18a26a['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x487a13){if('function'!=typeof _0x487a13)throw new _0x4000c2('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x487a13);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x10354a,annotations:_0x40b3c3}){const _0x1df11a=[],_0x3e5653=this['editor']['model']['document']['selection'],_0x257b76=Array['from'](_0x3e5653['getRanges']());for(const [_0x2e4066,_0xc9de92]of this['_editorAnnotationsData']){const _0x241227=_0x24b0ec(_0xc9de92),_0x57cd6b=_0x40b3c3['getByInnerView'](_0x2e4066);_0x241227&&_0x57cd6b&&_0x1df11a['push']({'annotation':_0x57cd6b,'range':_0x241227});}function _0x24b0ec(_0x450e78){for(const _0x15bd5c of _0x450e78)for(const _0x4ddffb of _0x257b76)if(_0x15bd5c['containsRange'](_0x4ddffb,!_0x3e5653['isCollapsed']))return _0x15bd5c;return null;}return _0x1df11a['sort']((_0x45fc8c,_0x5e92eb)=>{const _0x1e4175=_0x45fc8c['range'],_0x205d04=_0x5e92eb['range'];if(!_0x1e4175['isEqual'](_0x205d04)){if(_0x1e4175['containsRange'](_0x205d04,!0x0))return 0x1;if(_0x205d04['containsRange'](_0x1e4175,!0x0))return-0x1;}return _0x45fc8c['annotation']==_0x10354a?-0x1:_0x5e92eb['annotation']==_0x10354a?0x1:0x0;})['map'](_0x137139=>_0x137139['annotation']);}get['_editorAnnotationsData'](){const _0x4257c1=new Map();for(const _0x5e13bc of Array['from'](this['_dataCollectors']))for(const [_0x28cf04,_0x283a6e]of _0x5e13bc())_0x4257c1['set'](_0x28cf04,_0x283a6e);return _0x4257c1;}}class st extends _0xc00a87{['afterInit'](){const _0x5ba2de=this['editor'];if(!_0x5ba2de['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5ba2de['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0xc00a87{constructor(_0x4f50ac){super(_0x4f50ac),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1300de=this['editor'],_0x3e7eee=_0x1300de['commands']['get']('importWord'),_0x3b78f4=_0x1300de['plugins']['get'](it);_0x3e7eee&&(_0x3e7eee['on']('execute',(_0x142b85,[,_0x6b76dd])=>{_0x6b76dd['collaboration_features']={'comments':!0x0,'user_id':_0x3b78f4['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3e7eee,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x48c80c,_0x1fcd81){const {comment_threads:_0x473c46}=_0x1fcd81;_0x473c46&&_0x473c46['forEach'](({thread_id:_0x1b3e75,comments:_0x223cad,is_resolved:_0x1c9be4})=>{const _0x43ec0e=new Date(),_0x5d4cfe=_0x223cad['map'](({author:_0x16c767,content:_0x45735b,created_at:_0xe67e9e})=>({'content':_0x45735b,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x43ec0e,'attributes':{'@external':{'authorName':_0x16c767,'createdAt':_0xe67e9e?new Date(_0xe67e9e):new Date(),'source':'importWord'}}})),_0xca34a6=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xca34a6,'threadId':_0x1b3e75,'comments':_0x5d4cfe,'resolvedAt':_0x1c9be4?_0x43ec0e:null});});}}class at extends _0xc00a87{constructor(_0x3383c8){super(_0x3383c8),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x30b402=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x30b402,'contentInsertion',(_0x53a39a,_0x4ef26d)=>this['_removeMarkersWithoutThreads'](_0x4ef26d['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xe7261a){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xe7261a;const _0x201050=this['editor']['plugins']['get']('CommentsRepository');for(const _0xa8539c of _0xe7261a['keys']()){const [_0x3602bd,_0x3cf002]=_0xa8539c['split'](':');'comment'!=_0x3602bd||_0x201050['hasCommentThread'](_0x3cf002)||_0xe7261a['delete'](_0xa8539c);}return _0xe7261a;}['_registerMarkerInClipboardPipeline'](){const _0x3a656b=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x31837c=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x31837c&&_0x3a656b['_registerMarkerToCopy']('comment',_0x31837c);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4ab135){switch(_0x4ab135){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2b49f9){const _0x3ff803=_0x2b49f9['split'](':');return{'group':_0x3ff803[0x0],'id':_0x3ff803[0x1],'part':_0x3ff803[0x2]};}class ut extends _0xc00a87{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1eec3d,_0x5126c3)=>{if(!_0x5126c3['options']['showCommentHighlights'])return null;if(_0x5126c3['options']['ignoreResolvedComments']){const {id:_0x5de683}=ft(_0x1eec3d['markerName']),_0xb98094=this['editor']['plugins']['get'](o);if(_0xb98094['getCommentThread'](_0x5de683)?.['isResolved']&&_0x1eec3d['item'])return _0x5126c3['consumable']['consume'](_0x1eec3d['item'],'addMarker:'+_0x1eec3d['markerName']),_0x5126c3['consumable']['consume'](_0x1eec3d['item'],'removeMarker:'+_0x1eec3d['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x23ac9b=>{_0x23ac9b['on']('addMarker:comment',(_0x561521,_0x2032c2,_0x1e96a8)=>{if(!_0x1e96a8['options']['showCommentHighlights'])return;const _0x4221e3=_0x2032c2['item'];if(!_0x4221e3)return;const _0x503a2c=_0x1e96a8['mapper']['toViewElement'](_0x4221e3);this['editor']['model']['schema']['isObject'](_0x4221e3)&&_0x503a2c&&!_0x503a2c['getCustomProperty']('widget')&&_0x503a2c['is']('containerElement')&&_0x32dbb5(_0x503a2c,_0x1e96a8['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3fe7c5,{writer:_0x55dda8,options:_0x3c0911})=>{if(!_0x3c0911['showCommentHighlights'])return null;const _0x55eba5=_0x55dda8['createContainerElement']('div'),_0x195c05=_0x55dda8['createEmptyElement']('hr');return _0x55dda8['addClass']('ck-horizontal-line',_0x55eba5),_0x55dda8['insert'](_0x55dda8['createPositionAt'](_0x55eba5,0x0),_0x195c05),_0x55eba5;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1d307e,{writer:_0x331c76,options:_0x1dcb15})=>{if(!_0x1dcb15['showCommentHighlights'])return null;const _0x4d352a=_0x331c76['createContainerElement']('span'),_0x1a1523=_0x331c76['createEmptyElement']('img');return _0x331c76['addClass']('image-inline',_0x4d352a),_0x331c76['insert'](_0x331c76['createPositionAt'](_0x4d352a,0x0),_0x1a1523),_0x4d352a;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d411f,{writer:_0x15490a,options:_0x787615})=>{if(_0x787615['showCommentHighlights'])return _0x15490a['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x37e449,_0x12b89a,_0x35f110)=>{_0x35f110['options']['showCommentHighlights']&&_0x37e449['stop']();},{'priority':'high'});}}class r extends _0xc00a87{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(_0xfa37a4){super(_0xfa37a4),this['set']('isThreadsLoadingPaused',!0x0),_0xfa37a4['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x433c87,_0x28b18f,_0xff905d,_0x8cd583)=>{const _0xddf309=_0xfa37a4['plugins']['get'](o),_0x588fc9=_0xff905d?ft(_0xff905d)['id']:null;_0xfa37a4['model']['change'](()=>{if(_0x588fc9){const _0xa37ad2=this['getAllMarkersForId'](_0x588fc9);for(const _0x42af66 of _0xa37ad2)_0xfa37a4['editing']['reconvertMarker'](_0x42af66);}if(_0x8cd583){const {id:_0x5c7e98}=ft(_0x8cd583),_0x430b7b=_0xddf309['getCommentThread'](_0x5c7e98);if(_0x430b7b&&_0x430b7b['unlinkedAt'])return;if(_0x430b7b&&!_0x430b7b['isAttached'])return;const _0x15b0bc=this['getAllMarkersForId'](_0x5c7e98);for(const _0x4f5d99 of _0x15b0bc)_0xfa37a4['editing']['reconvertMarker'](_0x4f5d99);}}),_0x588fc9&&this['scrollToThreadMarker'](_0x588fc9);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x37b467=this['editor'],_0x510aff=_0x37b467['plugins']['get'](o),_0x1a44be=_0x37b467['config']['get']('collaboration.channelId'),_0xe9a3ec=_0x510aff['getCommentThreads']()['filter'](_0x2976a2=>_0x2976a2['channelId']!==_0x1a44be);_0x37b467['commands']['add']('addCommentThread',new ot(_0x37b467)),this['listenTo'](_0x37b467,'change:isReadOnly',(_0x379232,_0x3e5bba,_0x52adb8)=>{_0x510aff['switchReadOnly'](_0x52adb8,_0x37b467['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x510aff,dt('addCommentThread',_0x1a44be),(_0x1bd640,{threadId:_0x3942af})=>{const _0x429424=this['editor']['plugins']['get'](o)['getCommentThread'](_0x3942af);_0x429424?.['unlinkedAt']&&this['_attachArchivedThread'](_0x3942af);}),this['listenTo'](_0x510aff,dt('removeCommentThread',_0x1a44be),(_0x591b27,{threadId:_0x241a7e})=>{_0x37b467['model']['enqueueChange']({'isUndoable':!0x1},_0x698e0a=>{const _0x434aef=this['getAllMarkersForId'](_0x241a7e);for(const _0x42cc86 of _0x434aef)_0x698e0a['removeMarker'](_0x42cc86);});}),this['listenTo'](_0x510aff,dt('resolveCommentThread',_0x1a44be),(_0x3af8e8,{threadId:_0x5d42c8})=>{(this['_reconvertMarkers'](_0x5d42c8),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x5d42c8)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x510aff,dt('reopenCommentThread',_0x1a44be),(_0x16e5d8,{threadId:_0x147b28})=>{this['_reconvertMarkers'](_0x147b28);},{'priority':'low'}),this['listenTo'](_0x510aff,dt('addComment',_0x1a44be),(_0x310466,{threadId:_0x3b0aaa,isFromAdapter:_0x5e07fa})=>{const _0x369a81=this['getAllMarkersForId'](_0x3b0aaa);if(_0x5e07fa||0x0==_0x369a81['length']||!_0x510aff['hasCommentThread'](_0x3b0aaa))return;0x1===_0x510aff['getCommentThread'](_0x3b0aaa)['length']&&_0x37b467['model']['enqueueChange']({'isUndoable':!0x1},_0x5d6c5e=>{for(const _0x529e80 of _0x369a81)_0x5d6c5e['updateMarker'](_0x529e80,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0xe9a3ec);}['afterInit'](){!async function(_0x4a4f5d){const _0x421cba=_0x560da8([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]),_0x19a2f2=0x73460ab3,_0x3b090e=0x73417403^_0x19a2f2,_0x13ab9b=window[_0x560da8([0x44,0x61,0x74,0x65])][_0x560da8([0x6e,0x6f,0x77])](),_0x59b929=_0x4a4f5d[_0x560da8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x83a268=new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd75e7=>{_0x59b929[_0x560da8([0x6f,0x6e,0x63,0x65])](_0x560da8([0x72,0x65,0x61,0x64,0x79]),_0xd75e7);}),_0x856ed4={[_0x560da8([0x6b,0x74,0x79])]:_0x560da8([0x45,0x43]),[_0x560da8([0x75,0x73,0x65])]:_0x560da8([0x73,0x69,0x67]),[_0x560da8([0x63,0x72,0x76])]:_0x560da8([0x50,0x2d,0x32,0x35,0x36]),[_0x560da8([0x78])]:_0x560da8([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]),[_0x560da8([0x79])]:_0x560da8([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]),[_0x560da8([0x61,0x6c,0x67])]:_0x560da8([0x45,0x53,0x32,0x35,0x36])},_0x4fc65d=_0x59b929[_0x560da8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x560da8([0x67,0x65,0x74])](_0x560da8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5efa05(){let _0x3bbcb6,_0x15fa99=null,_0x19ebc9=null;try{if(_0x4fc65d==_0x560da8([0x47,0x50,0x4c]))return _0x560da8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3bbcb6=_0x244ebc(),!_0x3bbcb6)return _0x560da8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3bbcb6[_0x560da8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x19ebc9=_0x112c32(_0x3bbcb6[_0x560da8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3bbcb6[_0x560da8([0x6a,0x74,0x69])])),await _0x113dc2()?_0x1f8d5d()?_0x3f6be6()?_0x560da8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39491e()?(_0x3bbcb6[_0x560da8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x560da8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x15fa99=_0x3dc5b8(_0x560da8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x176cc5()):_0x560da8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x560da8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x560da8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x560da8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f6be6(){const _0x27b6b9=[_0x560da8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x560da8([0x74,0x72,0x69,0x61,0x6c])][_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bbcb6[_0x560da8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13ab9b/0x3e8:0xe10*_0x3b090e;return _0x3bbcb6[_0x560da8([0x65,0x78,0x70])]<_0x27b6b9;}function _0x1f8d5d(){const _0x5dc2cd=_0x3bbcb6[_0x560da8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5dc2cd)return!0x1;if(_0x5dc2cd[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560da8([0x2a])))return!0x0;if(_0x5dc2cd[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560da8([0x43,0x4d,0x54])))return!0x0;if(_0x5dc2cd[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560da8([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x5b9ef4())return!0x0;if(_0x5dc2cd[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560da8([0x52,0x43,0x4d,0x54]))){if(_0x22ff6a())return!0x0;if(_0x1f6617()||_0x55e741())return!0x0;}return!0x1;}function _0x39491e(){const _0x876770=_0x3bbcb6[_0x560da8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x876770||0x0==_0x876770[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x124350}=new URL(window[_0x560da8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x876770[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x124350))return!0x0;const _0x40aad6=_0x124350[_0x560da8([0x73,0x70,0x6c,0x69,0x74])](_0x560da8([0x2e]));return _0x876770[_0x560da8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x546077=>_0x546077[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560da8([0x2a])))[_0x560da8([0x6d,0x61,0x70])](_0x4cc198=>_0x4cc198[_0x560da8([0x73,0x70,0x6c,0x69,0x74])](_0x560da8([0x2e])))[_0x560da8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d6b78=>_0x3d6b78[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40aad6[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x560da8([0x6d,0x61,0x70])](_0x42adc8=>Array(_0x40aad6[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42adc8[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x560da8([0x66,0x69,0x6c,0x6c])](_0x42adc8[0x0]===_0x560da8([0x2a])?_0x560da8([0x2a]):'')[_0x560da8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42adc8))[_0x560da8([0x73,0x6f,0x6d,0x65])](_0x3a0247=>_0x40aad6[_0x560da8([0x65,0x76,0x65,0x72,0x79])]((_0x4d8ce8,_0x128615)=>_0x3a0247[_0x128615]===_0x4d8ce8||_0x3a0247[_0x128615]===_0x560da8([0x2a])));}function _0x176cc5(){return _0x15fa99&&_0x19ebc9?new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d37c1,_0x301085)=>{_0x15fa99[_0x560da8([0x74,0x68,0x65,0x6e])](_0x2d37c1,_0x301085),_0x19ebc9[_0x560da8([0x74,0x68,0x65,0x6e])](_0x13a0d1=>{_0x13a0d1!=_0x560da8([0x56,0x61,0x6c,0x69,0x64])&&_0x2d37c1(_0x13a0d1);},_0x301085);}):_0x15fa99||_0x19ebc9||_0x560da8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x112c32(_0x59a055,_0x72b883){return new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x372eba=>{if(_0x2b9419())return _0x372eba(_0x560da8([0x56,0x61,0x6c,0x69,0x64]));_0x29c821(),_0x59b929[_0x560da8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x560da8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4dfd7e=!0x1;const _0x5922e1=_0x2e35e1();function _0xc4c9e9(_0xeb606b){return!!_0xeb606b&&(typeof _0xeb606b===_0x560da8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xeb606b===_0x560da8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xeb606b[_0x560da8([0x74,0x68,0x65,0x6e])]===_0x560da8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xeb606b[_0x560da8([0x63,0x61,0x74,0x63,0x68])]===_0x560da8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2343f2(_0x1897aa){_0x77ec38(_0x1897aa)[_0x560da8([0x74,0x68,0x65,0x6e])](_0xb09ab2=>{if(!_0xb09ab2||_0xb09ab2[_0x560da8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x560da8([0x6f,0x6b]))return _0x560da8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22a504(_0x5aec07(_0x5922e1+_0x72b883))!=_0xb09ab2[_0x560da8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x560da8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x560da8([0x56,0x61,0x6c,0x69,0x64]);})[_0x560da8([0x74,0x68,0x65,0x6e])](_0x1fe5d2=>(_0x52b446(),_0x1fe5d2),()=>{const _0x286f9a=_0x5e6e4e();return null==_0x286f9a?(_0x52b446(),_0x560da8([0x56,0x61,0x6c,0x69,0x64])):_0x560da8(_0x13ab9b-_0x286f9a>(0x574a8eb3^_0x19a2f2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x560da8([0x74,0x68,0x65,0x6e])](_0x372eba)[_0x560da8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x372eba(_0x560da8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e2a34=0x7370e433^_0x19a2f2;function _0x52b446(){const _0x270cb8=_0x560da8([0x6c,0x6c,0x63,0x74,0x2d])+_0x22a504(_0x5aec07(_0x59a055)),_0x5cd205=_0x38a480(_0x22a504(window[_0x560da8([0x4d,0x61,0x74,0x68])][_0x560da8([0x63,0x65,0x69,0x6c])](_0x13ab9b/_0x2e2a34)));window[_0x560da8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x560da8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x270cb8,_0x5cd205);}function _0x5e6e4e(){const _0x4e238b=_0x560da8([0x6c,0x6c,0x63,0x74,0x2d])+_0x22a504(_0x5aec07(_0x59a055)),_0xb4ac93=window[_0x560da8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x560da8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e238b);return _0xb4ac93?window[_0x560da8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38a480(_0xb4ac93),0x10)*_0x2e2a34:null;}function _0x77ec38(_0x39074e){return new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2fdbeb,_0x266d59)=>{_0x39074e[_0x560da8([0x74,0x68,0x65,0x6e])](_0x2fdbeb,_0x266d59),window[_0x560da8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x266d59,0x7347de73^_0x19a2f2);});}}_0x59b929[_0x560da8([0x6f,0x6e])](_0x560da8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c4960,_0x2d49e2)=>{if(_0x2d49e2[0x0]!=_0x59a055)return _0x372eba(_0x560da8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d49e2[0x1]={..._0x2d49e2[0x1],[_0x560da8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5922e1};},{[_0x560da8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x560da8([0x68,0x69,0x67,0x68])}),_0x59b929[_0x560da8([0x6f,0x6e])](_0x560da8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51a4f6=>{_0xc4c9e9(_0x51a4f6[_0x560da8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4dfd7e=!0x0,_0x2343f2(_0x51a4f6[_0x560da8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x560da8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x560da8([0x6c,0x6f,0x77])}),_0x83a268[_0x560da8([0x74,0x68,0x65,0x6e])](()=>{_0x4dfd7e||_0x372eba(_0x560da8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b9419(){return _0x59b929[_0x560da8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x560da8([0x76,0x69,0x65,0x77])][_0x560da8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x560da8([0x61,0x75,0x74,0x6f]);}function _0x29c821(){_0x59b929[_0x560da8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x560da8([0x76,0x69,0x65,0x77])][_0x560da8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x560da8([0x61,0x75,0x74,0x6f]);}}function _0x3dc5b8(_0x35ce59){const _0x212479=[new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb91a45=>setTimeout(_0xb91a45,0x734f347f^_0x19a2f2)),_0x83a268[_0x560da8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f38a7=>{let _0x31841a=0x0;_0x59b929[_0x560da8([0x6d,0x6f,0x64,0x65,0x6c])][_0x560da8([0x6f,0x6e])](_0x560da8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38b70e,_0x4e69ab)=>{_0x4e69ab[0x0][_0x560da8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31841a++,_0x31841a==(0x73460f5b^_0x19a2f2)&&(_0x2f38a7(),_0x38b70e[_0x560da8([0x6f,0x66,0x66])]());});}))];return window[_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x560da8([0x72,0x61,0x63,0x65])](_0x212479)[_0x560da8([0x74,0x68,0x65,0x6e])](()=>_0x35ce59);}async function _0x3b5ce2(){await _0x83a268,_0x59b929[_0x560da8([0x6d,0x6f,0x64,0x65,0x6c])][_0x560da8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e5c68,_0x59b929[_0x560da8([0x6d,0x6f,0x64,0x65,0x6c])][_0x560da8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e5c68,_0x59b929[_0x560da8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x560da8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b9ef4(){return window[_0x560da8([0x67,0x6c,0x6f,0x62])]&&window[_0x560da8([0x67,0x6c,0x6f,0x62])][_0x560da8([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x22ff6a(){return _0x3455d6(_0x560da8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x370a81(_0x560da8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x560da8([0x73,0x74,0x61,0x74,0x65])]==_0x560da8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1f6617(){return _0x3455d6(_0x560da8([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 _0x55e741(){return _0x3455d6(_0x560da8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4548cf(_0x3d6994){const _0x8f493=_0x17037a();_0x59b929[_0x8f493]=_0x560da8([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d6994,_0x3d6994!=_0x560da8([0x56,0x61,0x6c,0x69,0x64])&&_0x3b5ce2();}function _0x17037a(){const _0x1ad373=window[_0x560da8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x560da8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x560da8([0x6e,0x6f,0x77])]())[_0x560da8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x560da8([0x2e]),'');let _0x1732b9=_0x560da8([0x4b]);for(let _0x3ef9e0=0x0;_0x3ef9e0<_0x1ad373[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ef9e0+=0x2){let _0x5c73b4=window[_0x560da8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ad373[_0x560da8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ef9e0,_0x3ef9e0+0x2));_0x5c73b4>=_0x421cba[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c73b4-=_0x421cba[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1732b9+=_0x421cba[_0x5c73b4];}return _0x1732b9;}function _0x244ebc(){const _0x4d102e=_0x4fc65d[_0x560da8([0x73,0x70,0x6c,0x69,0x74])](_0x560da8([0x2e]));if(0x3!=_0x4d102e[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x518e4b(_0x4d102e[0x1]);function _0x518e4b(_0x3ce095){const _0x42d770=_0x175bfc(_0x3ce095);return _0x42d770&&_0x11bbc6()?_0x42d770:null;function _0x11bbc6(){const _0xff92d9=_0x42d770[_0x560da8([0x6a,0x74,0x69])],_0x135e1a=window[_0x560da8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xff92d9[_0x560da8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xff92d9[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f385d={..._0x42d770,[_0x560da8([0x6a,0x74,0x69])]:_0xff92d9[_0x560da8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xff92d9[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f385d[_0x560da8([0x76,0x63])],_0x5aec07(_0x2f385d)==_0x135e1a;}}}async function _0x113dc2(){let _0x2b89e6=!0x0;try{const _0x112133=_0x4fc65d[_0x560da8([0x73,0x70,0x6c,0x69,0x74])](_0x560da8([0x2e])),[_0x1840cd,_0x3f126,_0x46ca5d]=_0x112133;return _0x264f3b(_0x1840cd),await _0x103fac(_0x1840cd,_0x3f126,_0x46ca5d),_0x2b89e6;}catch{return!0x1;}function _0x264f3b(_0x200bfa){const _0x1af164=_0x175bfc(_0x200bfa);_0x1af164&&_0x1af164[_0x560da8([0x61,0x6c,0x67])]==_0x560da8([0x45,0x53,0x32,0x35,0x36])||(_0x2b89e6=!0x1);}async function _0x103fac(_0x48fcdb,_0x5c05c8,_0x4e92cc){const _0x2606b7=window[_0x560da8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x560da8([0x66,0x72,0x6f,0x6d])](_0x24709a(_0x4e92cc),_0x3c7c78=>_0x3c7c78[_0x560da8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x360c44=new window[(_0x560da8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x560da8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48fcdb+_0x560da8([0x2e])+_0x5c05c8),_0x21ea7d=window[_0x560da8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x560da8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21ea7d)return;const _0x4de1a3=await _0x21ea7d[_0x560da8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x560da8([0x6a,0x77,0x6b]),_0x856ed4,{[_0x560da8([0x6e,0x61,0x6d,0x65])]:_0x560da8([0x45,0x43,0x44,0x53,0x41]),[_0x560da8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x560da8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x560da8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21ea7d[_0x560da8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x560da8([0x6e,0x61,0x6d,0x65])]:_0x560da8([0x45,0x43,0x44,0x53,0x41]),[_0x560da8([0x68,0x61,0x73,0x68])]:{[_0x560da8([0x6e,0x61,0x6d,0x65])]:_0x560da8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4de1a3,_0x2606b7,_0x360c44)||(_0x2b89e6=!0x1);}}function _0x175bfc(_0x15c51c){return _0x15c51c[_0x560da8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x560da8([0x65,0x79]))?JSON[_0x560da8([0x70,0x61,0x72,0x73,0x65])](_0x24709a(_0x15c51c)):null;}function _0x24709a(_0xdddac9){return window[_0x560da8([0x61,0x74,0x6f,0x62])](_0xdddac9[_0x560da8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x560da8([0x2b]))[_0x560da8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x560da8([0x2f])));}function _0x5aec07(_0x5251cf){let _0x346a6e=0x1505;function _0x47b54d(_0x4b3823){for(let _0x276f2e=0x0;_0x276f2e<_0x4b3823[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x276f2e++){const _0x3b8f9c=_0x4b3823[_0x560da8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x276f2e);_0x346a6e=(_0x346a6e<<0x5)+_0x346a6e+_0x3b8f9c,_0x346a6e&=_0x346a6e;}}function _0x3e3484(_0x41ce23){Array[_0x560da8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41ce23)?_0x41ce23[_0x560da8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e3484):_0x41ce23&&typeof _0x41ce23==_0x560da8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x560da8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41ce23)[_0x560da8([0x73,0x6f,0x72,0x74])]()[_0x560da8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x256deb,_0x546f74])=>{_0x47b54d(_0x256deb),_0x3e3484(_0x546f74);}):_0x47b54d(window[_0x560da8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41ce23));}return _0x3e3484(_0x5251cf),_0x346a6e>>>0x0;}function _0x22a504(_0x4deda8){return _0x4deda8[_0x560da8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x560da8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x560da8([0x30]));}function _0x38a480(_0x16bc0a){return _0x16bc0a[_0x560da8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x560da8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x560da8([0x6a,0x6f,0x69,0x6e])]('');}function _0x3455d6(_0xbbabc0){return _0x59b929[_0x560da8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x560da8([0x68,0x61,0x73])](_0xbbabc0);}function _0x370a81(_0xec7c30){return _0x59b929[_0x560da8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x560da8([0x67,0x65,0x74])](_0xec7c30);}function _0x4e5c68(){}function _0x560da8(_0x1cbc0f){return _0x1cbc0f['map'](_0x476e1a=>String['fromCharCode'](_0x476e1a))['join']('');}_0x4548cf(await _0x5efa05());}(this);}['destroy'](){const _0x1cfd75=this['editor']['plugins']['get'](o),_0x2ebba5=this['editor']['config']['get']('collaboration.channelId');for(const _0x577bc8 of _0x1cfd75['getCommentThreads']({'channelId':_0x2ebba5}))_0x1cfd75['_detachCommentThread'](_0x577bc8['id']),_0x1cfd75['_threads']['delete'](_0x577bc8['id']);super['destroy']();}['hasMarkerForId'](_0x1c319c){return this['getAllMarkersForId'](_0x1c319c)['length']>0x0;}['getAllMarkersForId'](_0x14d7de){const _0x4d592a=[];for(const _0x5d0dc0 of this['editor']['model']['markers'])_0x5d0dc0['name']['startsWith']('comment:'+_0x14d7de)&&_0x4d592a['push'](_0x5d0dc0);return _0x4d592a;}['scrollToThreadMarker'](_0x492106){setTimeout(()=>{const _0x2da500=this['_getTargetForId'](_0x492106);if(!_0x2da500)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x492106&&nt({'target':_0x2da500[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x2c07eb){this['editor']['model']['change'](()=>{for(const _0x1ab06d of this['getAllMarkersForId'](_0x2c07eb))this['editor']['editing']['reconvertMarker'](_0x1ab06d);});}['_attachArchivedThread'](_0x402b93){const _0x4dc550=this['editor']['plugins']['get'](o),_0x26cf0f=this['editor']['plugins']['get'](b),_0xe6cfbd=_0x4dc550['getCommentThread'](_0x402b93);if(!_0xe6cfbd['isAttached']){const _0x5e89f1=_0xe6cfbd['attachTo'](()=>this['_getTargetForId'](_0xe6cfbd['id']));_0x26cf0f['registerAnnotation'](_0x5e89f1),_0xe6cfbd['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x20ded6=this['editor'],_0x365e98=_0x20ded6['plugins']['get'](it);_0x20ded6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x11e275,_0x3b3a9c)=>{const {id:_0x4b827d}=ft(_0x11e275['markerName']),_0x5919dc=_0x20ded6['plugins']['get'](o)['getCommentThread'](_0x4b827d),_0x14011e=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x4b827d;let _0x553ad6;if(_0x5919dc&&_0x5919dc['isResolved']&&!_0x14011e&&_0x11e275['item'])return _0x3b3a9c['consumable']['consume'](_0x11e275['item'],'addMarker:'+_0x11e275['markerName']),_0x3b3a9c['consumable']['consume'](_0x11e275['item'],'removeMarker:'+_0x11e275['markerName']),null;const _0x5f02d8=['ck-comment-marker'];return _0x14011e&&_0x5f02d8['push']('ck-comment-marker--active'),_0x553ad6=_0x5919dc?.['length']?_0x5919dc['comments']['first']['author']['id']:_0x365e98['me']['id'],{'classes':_0x5f02d8,'attributes':{'data-comment':_0x4b827d,'data-author-id':_0x553ad6}};}}),_0x20ded6['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x10daa6,{options:_0x22ae07})=>{if(_0x22ae07['showCommentHighlights'])return null;const _0x13ed3c=_0x20ded6['plugins']['get'](o),_0x3474b5=_0x20ded6['model']['markers']['get'](_0x10daa6),{id:_0x492457,part:_0x1f39c5}=ft(_0x10daa6);return _0x3474b5&&!_0x3474b5['affectsData']||_0x22ae07['ignoreResolvedComments']&&_0x13ed3c['getCommentThread'](_0x492457)?.['isResolved']?null:{'group':'comment','name':_0x1f39c5?_0x492457+':'+_0x1f39c5:_0x492457};}}),_0x20ded6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5c7bab,{writer:_0x28066b})=>_0x28066b['createElement']('$marker',{'data-name':'comment:'+_0x5c7bab['getAttribute']('id')})}),_0x20ded6['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x1ba0aa=this['editor'],_0xa09431=_0x1ba0aa['plugins']['get'](o),_0x599861=new Set(),_0x4360af=new Set();_0x1ba0aa['model']['document']['registerPostFixer'](_0x4c6147=>{let _0x4fffc6=!0x1;for(const {name:_0x5c13f4,data:_0x379075}of _0x1ba0aa['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2280c9,id:_0x38ca1c}=ft(_0x5c13f4);let _0x585753=_0x379075['newRange'];if('comment'!==_0x2280c9||!_0x585753)continue;const _0x3602b8='$graveyard'===_0x585753['root']['rootName'];_0x3602b8||(_0x585753=ht(_0x585753,_0x1ba0aa['model']),!_0x585753||_0x585753['isCollapsed']||!_0x379075['newRange']||_0x585753['isEqual'](_0x379075['newRange']))?_0x1ba0aa['model']['hasContent'](_0x585753)&&!_0x3602b8?this['isThreadsLoadingPaused']?_0x599861['add'](_0x5c13f4):this['_handleThreadMarker'](_0x5c13f4,_0x38ca1c):(_0x4360af['add'](_0x5c13f4),_0x599861['delete'](_0x5c13f4),_0x4c6147['removeMarker'](_0x5c13f4),_0x4fffc6=!0x0):(_0x4c6147['updateMarker'](_0x5c13f4,{'range':_0x585753}),_0x4fffc6=!0x0);}return _0x4fffc6;}),this['on']('change:isThreadsLoadingPaused',(_0x39aafa,_0x466f4b,_0x12a4f8)=>{if(!_0x12a4f8&&_0x599861['size'])for(const _0x36593 of _0x599861){const {id:_0xc8b194}=ft(_0x36593);_0x599861['delete'](_0x36593),_0x1ba0aa['model']['markers']['get'](_0x36593)&&this['_handleThreadMarker'](_0x36593,_0xc8b194);}}),this['listenTo'](_0x1ba0aa['model']['document'],'change',()=>{for(const {name:_0x407646,data:{newRange:_0x4a7981}}of _0x1ba0aa['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3a702a,id:_0x137fad}=ft(_0x407646);if('comment'!==_0x3a702a)continue;const _0x1d8e92=_0xa09431['getCommentThread'](_0x137fad),_0x42d680=this['hasMarkerForId'](_0x137fad);_0x1d8e92&&(!_0x1d8e92['_hasTargetInContent']&&_0x4a7981&&_0x1ba0aa['editing']['view']['once']('render',()=>{const _0x15c261=_0x1ba0aa['plugins']['get'](y),_0x2ff880=_0xa09431['_threadToController']['get'](_0x1d8e92)['view'];_0x15c261['getByInnerView'](_0x2ff880)['refreshVisibility']();},{'priority':'low'}),_0x1d8e92['_hasTargetInContent']=_0x42d680||!!_0x4a7981),_0x4a7981||(_0x4360af['add'](_0x407646),_0x599861['delete'](_0x407646));}for(const _0x4b6fb2 of _0x4360af){const {id:_0x21f222}=ft(_0x4b6fb2),_0x29466e=_0xa09431['getCommentThread'](_0x21f222);if(_0x599861['delete'](_0x4b6fb2),!_0x29466e)continue;const _0xf44a62=this['hasMarkerForId'](_0x21f222);_0xf44a62||_0x29466e['isSubmitted']?_0xf44a62||_0x29466e['unlinkedAt']||_0x29466e['setUnlinkedAt'](new Date()):_0x29466e['remove']();}_0x4360af['clear']();});}['_handleInitialThreads'](_0x16f9ba){_0x16f9ba['forEach'](_0x10e08e=>{_0x10e08e['unlinkedAt']&&this['_attachArchivedThread'](_0x10e08e['id']);});}['_getTargetForId'](_0x25cfa8){const _0x7a604d=this['editor'],_0x397c13=this['getAllMarkersForId'](_0x25cfa8);return et(_0x7a604d['editing'],_0x397c13);}['_getTextContext'](_0x5a45fe){const _0x7ec4ab=this['getAllMarkersForId'](_0x5a45fe);let _0x442097='',_0x320b1b=!0x1;for(const _0xf8a1ee of _0x7ec4ab){const _0x2cbfb2=_0xf8a1ee['getRange']();for(const _0x44720e of Array['from'](_0x2cbfb2['getItems']()))_0x44720e['is']('$textProxy')?(_0x442097&&_0x320b1b&&(_0x442097+='\x20',_0x320b1b=!0x1),_0x442097+=_0x44720e['data']):_0x320b1b=!0x0;_0x320b1b=!0x0;}return _0x442097['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3d93b6,_0x2ef231){const _0x999a73=this['editor'],_0x349179=_0x999a73['plugins']['get'](o);let _0x53d571=_0x349179['getCommentThread'](_0x2ef231);const _0x59d8e0=_0x999a73['config']['get']('collaboration.channelId'),_0x109ec6=_0x999a73['plugins']['get'](b);if(_0x53d571&&(_0x53d571['unlinkedAt']&&_0x53d571['setUnlinkedAt'](null),_0x53d571['isAttached']))return _0x53d571;return!this['getAllMarkersForId'](_0x2ef231)[0x0]['managedUsingOperations']?_0x999a73['editing']['view']['once']('render',()=>{if(_0x349179['getCommentThread'](_0x2ef231))return;const _0x458ab5=_0x999a73['plugins']['get'](y);_0x53d571=_0x349179['openNewCommentThread']({'channelId':_0x59d8e0,'threadId':_0x2ef231,'target':()=>this['_getTargetForId'](_0x2ef231),'context':{'type':'text','value':this['_getTextContext'](_0x2ef231)}});const _0xf4f7b8=_0x349179['_threadToController']['get'](_0x53d571)['view'],_0x4542d0=_0x458ab5['getByInnerView'](_0xf4f7b8);_0x4542d0&&_0x109ec6['registerAnnotation'](_0x4542d0);},{'priority':'low'}):_0x349179['fetchCommentThread']({'channelId':_0x59d8e0,'threadId':_0x2ef231})['then'](_0x135f21=>{if('destroyed'!==_0x999a73['state']){if(_0x53d571=_0x135f21,_0x53d571&&!_0x53d571['isAttached']){const _0x320bbf=_0x53d571['attachTo'](()=>this['_getTargetForId'](_0x2ef231));_0x109ec6['registerAnnotation'](_0x320bbf),_0x53d571['isResolved']&&this['_reconvertMarkers'](_0x2ef231);}else{if(!_0x53d571){const _0x7fea75=this['getAllMarkersForId'](_0x2ef231);_0x999a73['model']['change'](_0x3f64c2=>{for(const _0xb057e0 of _0x7fea75)_0x3f64c2['removeMarker'](_0xb057e0);});}}}}),_0x53d571;}['_handleThreadMarker'](_0x3d33b4,_0x2f25d9){const _0x139739=this['_attachMarkerToThread'](_0x3d33b4,_0x2f25d9);_0x139739&&!_0x139739['context']&&_0x139739['setContext']({'type':'text','value':this['_getTextContext'](_0x2f25d9)});}['_initAriaMarkerChangeAnnouncements'](){const _0x264c99=this['editor'];rt(_0x264c99['model'],({left:_0x20676a,entered:_0x29c845})=>{for(const _0x333b26 of _0x20676a)if(mt(_0x333b26)){_0x264c99['ui']['ariaLiveAnnouncer']['announce'](N(_0x264c99['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x8b9b79 of _0x29c845)if(mt(_0x8b9b79)){_0x264c99['ui']['ariaLiveAnnouncer']['announce'](N(_0x264c99['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x433cbb)));break;}});}}function dt(_0x408819,_0x344c32){return _0x344c32?_0x408819+':'+_0x344c32:_0x408819;}function ht(_0x2e9f3e,_0x519c7b){const _0x5e37e9=_0x519c7b['schema'],_0x175385=_0x519c7b['createRange'](_0x2e9f3e['start']);for(const _0x52830e of _0x2e9f3e['getWalker']()){const {type:_0x3fe3ba,item:_0x37260b,nextPosition:_0x294257}=_0x52830e;if('text'===_0x3fe3ba||_0x5e37e9['isObject'](_0x37260b)){const _0x34fd35=_0x519c7b['createPositionBefore'](_0x37260b);_0x175385['isCollapsed']&&(_0x175385['start']=_0x34fd35),_0x175385['end']=_0x294257;}}return _0x175385;}function mt(_0x33c2dc){return'comment'===ft(_0x33c2dc['name'])['group'];}class s extends _0xc00a87{['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 _0x5b6ac8=this['editor'],_0x243213=_0x5b6ac8['plugins']['get'](o),_0x58e1ea=_0x5b6ac8['plugins']['get'](r),_0x4526c5=_0x5b6ac8['plugins']['get'](y),_0x1a76f0=_0x5b6ac8['plugins']['get'](b);_0x5b6ac8['ui']['componentFactory']['add']('comment',()=>{const _0x186ebc=this['_createUIButton'](_0x19a4ce);return _0x186ebc['tooltip']=!0x0,_0x186ebc;}),_0x5b6ac8['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x171cc0)),_0x1a76f0['addSourceCollector'](()=>{const _0x40dce6=[];for(const [_0x3621cb,_0x45a7da]of _0x243213['_threadToController']){const _0x212709=_0x58e1ea['getAllMarkersForId'](_0x3621cb['id']),_0x15e7b0=_0x212709['map'](_0x11d4ba=>_0x11d4ba['getRange']());_0x212709['length']>0x0&&_0x40dce6['push']([_0x45a7da['view'],_0x15e7b0]);}return _0x40dce6;}),this['listenTo'](_0x4526c5,'change:activeAnnotations',(_0x41877a,_0x2c6f21,_0x2814b6)=>{const _0x3ed872=Array['from'](_0x2814b6)['map'](_0x37b5aa=>_0x37b5aa['innerView'])['find'](_0x30a826=>_0x243213['_viewToController']['has'](_0x30a826));if(!_0x3ed872)return void(_0x58e1ea['activeMarker']=null);const _0x220c30=_0x243213['_viewToController']['get'](_0x3ed872)['model']['id'],_0x4d9e5b='comment:'+_0x220c30;_0x220c30&&_0x58e1ea['hasMarkerForId'](_0x220c30)?_0x58e1ea['activeMarker']=_0x4d9e5b:_0x58e1ea['activeMarker']&&(_0x58e1ea['activeMarker']=null);}),this['listenTo'](_0x243213,'removeCommentThread',(_0x58da15,{threadId:_0x3cc54d,isFromAdapter:_0x418cec})=>{!_0x418cec&&_0x5b6ac8['ui']['focusTracker']['isFocused']&&_0x58e1ea['hasMarkerForId'](_0x3cc54d)&&_0x5b6ac8['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x243213,'addComment',(_0x51efe6,{threadId:_0x456ba9,isFromAdapter:_0x3fa8bd})=>{if(_0x3fa8bd||!_0x58e1ea['hasMarkerForId'](_0x456ba9)||!_0x243213['hasCommentThread'](_0x456ba9))return;0x1===_0x243213['getCommentThread'](_0x456ba9)['length']&&(_0x5b6ac8['editing']['view']['focus'](),_0x51efe6['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c2b2d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x547e9d;for(const _0x5973cb in _0x3c2b2d){const _0x15f4ec=_0x5973cb,_0x247580=_0x3c2b2d[_0x15f4ec];if('commentsLicenseKeyValid'==_0x247580||'commentsLicenseKeyInvalid'==_0x247580||'commentsLicenseKeyExpired'==_0x247580||'commentsLicenseKeyDomainLimit'==_0x247580||'commentsLicenseKeyNotAllowed'==_0x247580||'commentsLicenseKeyEvaluationLimit'==_0x247580||'commentsLicenseKeyUsageLimit'==_0x247580){delete _0x3c2b2d[_0x15f4ec],_0x547e9d=_0x247580,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xfc5a23){const _0x50b942=this['editor'],_0x5582d8=new _0xfc5a23(_0x50b942['locale']),_0x941f7b=_0x50b942['commands']['get']('addCommentThread');return _0x5582d8['set']({'label':N(_0x50b942['locale'],'Comment'),'icon':_0x2a98df}),_0x5582d8['bind']('isEnabled')['to'](_0x941f7b,'isEnabled',_0x941f7b,'hasContent',(_0x5626f2,_0xb5b9c7)=>_0x5626f2&&_0xb5b9c7),this['listenTo'](_0x5582d8,'execute',()=>{_0x941f7b['execute']();}),_0x5582d8;}}class i extends _0xc00a87{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x54ab5e){super(_0x54ab5e),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x371250,_0x424858,_0xae0030)=>{_0xae0030?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x38ba77,_0x28492b]of this['editor']['commands'])_0x28492b['affectsData']&&'addCommentThread'!==_0x38ba77&&_0x28492b['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 _0x10cef1=this['editor']['editing']['view']['document'];this['listenTo'](_0x10cef1,'cut',_0x55025b=>_0x55025b['stop'](),{'priority':'highest'}),this['listenTo'](_0x10cef1,'clipboardInput',_0xd649b=>_0xd649b['stop'](),{'priority':'highest'}),this['listenTo'](_0x10cef1,'delete',_0x33fdf9=>_0x33fdf9['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x46fbb6,_0x36a3c6]of this['editor']['commands'])_0x36a3c6['affectsData']&&'addCommentThread'!==_0x46fbb6&&_0x36a3c6['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 _0x4b682f{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdc6ae){super(_0xdc6ae),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x130ad4=this['context']['plugins']['get'](y);this['listenTo'](_0x130ad4,'_activateAnnotation',(_0x22a1d6,_0x196959)=>{for(const _0x24e8c2 of this['activeUIs']){const _0x143d4=this['_uis']['get'](_0x24e8c2);(0x0,this['uisData']['get'](_0x24e8c2)['filter'])(_0x196959)&&_0x143d4['setActiveAnnotation'](_0x196959);}}),this['listenTo'](_0x130ad4,'_deactivateAllAnnotations',()=>{for(const _0x108f1c of this['activeUIs']){this['_uis']['get'](_0x108f1c)['setActiveAnnotation'](null);}}),this['listenTo'](_0x130ad4['_visibleAnnotations'],'add',(_0x589b55,_0x1869c2)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1869c2);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x29360e){return this['activeUIs']['has'](_0x29360e);}['activate'](_0x2815b1,_0x45222a=this['defaultFilter']){const _0x14e4cf=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x2815b1))throw new _0x4000c2('annotationsuis-missing-ui',this,{'uiName':_0x2815b1});this['isActive'](_0x2815b1)&&this['deactivate'](_0x2815b1),this['activeUIs']['add'](_0x2815b1);const _0x3bab7e=new S();v({'source':_0x14e4cf['_visibleAnnotations'],'target':_0x3bab7e,'filter':_0x45222a}),this['uisData']['set'](_0x2815b1,{'collection':_0x3bab7e,'filter':_0x45222a});const _0x3e6a27=this['_uis']['get'](_0x2815b1);_0x3e6a27['attach'](_0x3bab7e),this['listenTo'](_0x3e6a27,'change:activeAnnotation',(_0x350906,_0x28b81b,_0x3ea3b0,_0x43d75a)=>{_0x43d75a&&_0x14e4cf['_removeActiveAnnotation'](_0x43d75a),_0x3ea3b0&&_0x14e4cf['_addActiveAnnotation'](_0x3ea3b0);});}['deactivate'](_0x266c05){if(this['activeUIs']['delete'](_0x266c05),!this['_uis']['has'](_0x266c05))throw new _0x4000c2('annotationsuis-missing-ui',this,{'uiName':_0x266c05});const _0x5cf0de=this['_uis']['get'](_0x266c05);_0x5cf0de['detach'](),this['stopListening'](_0x5cf0de),this['uisData']['get'](_0x266c05)['collection']['destroy'](),this['uisData']['delete'](_0x266c05);}['switchTo'](_0x18c149){if(!this['_uis']['has'](_0x18c149))throw new _0x4000c2('annotationsuis-missing-ui',this,{'uiName':_0x18c149});const _0x174410=this['context']['plugins']['get'](y),_0x3d8484=Array['from'](_0x174410['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x18c149);const _0xaaad14=this['_uis']['get'](_0x18c149);_0xaaad14['setActiveAnnotation'](_0x3d8484),_0xaaad14['_setSelectedAnnotations']&&_0x3d8484&&_0xaaad14['_setSelectedAnnotations']([_0x3d8484]);}['deactivateAll'](){for(const _0xa278dc of this['activeUIs'])this['deactivate'](_0xa278dc);}['register'](_0x3fb3df,_0x32c57b){if(this['_uis']['has'](_0x3fb3df))throw new _0x4000c2('annotationsuis-register-already-registered');if('function'!=typeof _0x32c57b['attach']||'function'!=typeof _0x32c57b['detach']||'function'!=typeof _0x32c57b['setActiveAnnotation'])throw new _0x4000c2('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3fb3df,_0x32c57b);}['refilterAnnotations'](){const _0x9c8e03=this['context']['plugins']['get'](y)['collection'],_0x1ac20e=new Map(),_0x14c15a=Array['from'](this['activeUIs']);for(const _0x1eadb4 of this['activeUIs']){const _0x40e160=this['uisData']['get'](_0x1eadb4)['collection'];for(const _0xed50dd of _0x40e160)_0x1ac20e['set'](_0xed50dd,_0x1eadb4);}for(const _0x476cf2 of _0x9c8e03){const _0x6b9586=_0x1ac20e['get'](_0x476cf2);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x476cf2);const _0x43a0b5=_0x14c15a['find'](_0xac37b2=>this['uisData']['get'](_0xac37b2)['filter'](_0x476cf2));_0x6b9586!==_0x43a0b5&&(_0x6b9586&&this['uisData']['get'](_0x6b9586)['collection']['remove'](_0x476cf2),_0x43a0b5&&this['uisData']['get'](_0x43a0b5)['collection']['add'](_0x476cf2));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x51de37){const _0x49f1f7=[];for(const _0x1ec22e of this['activeUIs']){(0x0,this['uisData']['get'](_0x1ec22e)['filter'])(_0x51de37)&&_0x49f1f7['push'](_0x1ec22e);}if(_0x49f1f7['length']>0x1)throw new _0x4000c2('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x49f1f7,'annotationType':_0x51de37['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5267fc){super(_0x5267fc);const _0x2e028a=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 _0x22fbb8(),this['focusCycler']=new _0x329626({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2e028a['to']('class')],'style':{'minHeight':_0x2e028a['to']('minHeight',_0x45c364=>'number'==typeof _0x45c364?_i(_0x45c364+0xa):null)},'dir':_0x5267fc['uiLanguageDirection'],'role':'application','aria-label':N(_0x5267fc,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x5267fc,'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',_0x2b74fb=>{this['_updateItemPositionInFocusables'](_0x2b74fb['source']);}),this['list']['forEach'](_0x277d7a=>{this['focusTracker']['add'](_0x277d7a['element']),this['_updateItemPositionInFocusables'](_0x277d7a);}),this['list']['on']('change',(_0x47c2d7,_0x5154bc)=>{for(const _0x10ddd0 of _0x5154bc['removed'])this['focusTracker']['remove'](_0x10ddd0['element']),this['focusables']['remove'](_0x10ddd0);for(const _0x45cc5e of _0x5154bc['added'])this['focusTracker']['add'](_0x45cc5e['element']),this['_updateItemPositionInFocusables'](_0x45cc5e);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x42344e){const _0xdb3179=this['focusables']['getIndex'](_0x42344e);let _0x614eb4,_0x2a83e7;for(const _0x35d209 of this['focusables'])if(_0x42344e['top']<_0x35d209['top']){_0x614eb4=_0x35d209;break;}if(_0x2a83e7=_0x614eb4?this['focusables']['getIndex'](_0x614eb4):this['focusables']['length'],-0x1!==_0xdb3179){if(_0xdb3179===_0x2a83e7-0x1)return;this['focusables']['remove'](_0x42344e),_0x2a83e7=_0x614eb4?this['focusables']['getIndex'](_0x614eb4):this['focusables']['length'];}this['focusables']['add'](_0x42344e,_0x2a83e7);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2b453e){super(_0x2b453e),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x217f78,_0xc3df6a)=>_0x217f78+_0xc3df6a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x14decc=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x14decc['to']('isAnimationDisabled',_0x412e6e=>_0x412e6e?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x14decc['to']('top',_0x421733=>Ot(_0x421733))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x5d4edc=this['element']['clientHeight'];_0x5d4edc&&(this['height']=_0x5d4edc);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x4b682f{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1df383){super(_0x1df383),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 _0x293859=this['context']['config']['get']('sidebar.container');_0x293859&&this['setContainer'](_0x293859);}['setContainer'](_0x78815d){if(!g(_0x78815d))throw new _0x4000c2('sidebar-setcontainer-invalid-element');this['container']=_0x78815d;}['_attachToContainer']({viewClass:_0x4887c3='',spaceBetweenItems:_0x468907=0x19}={}){if(!g(this['container']))throw new _0x4000c2('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x4887c3,this['_spaceBetweenItems']=_0x468907;}['rearrange']({removedAnnotation:_0x599252,previousAnnotation:_0x537cf7,nextAnnotation:_0x195a0d}){const _0x7bf28a=this['getSidebarItemView'](_0x599252);this['view']['list']['remove'](_0x7bf28a),this['_destroySidebarItemView'](_0x599252),_0x537cf7&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x537cf7)),_0x195a0d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x195a0d)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x54524f,activatedAnnotation:_0x295f26,disableAnimationOnActivatedAnnotation:_0x513f15}){if(this['_activeAnnotation']=_0x295f26,_0x54524f){_0x54524f['isActive']=!0x1;const _0x4fb0b1=this['getSidebarItemView'](_0x54524f);_0x4fb0b1&&_0x513f15&&(_0x4fb0b1['isAnimationDisabled']=!0x1);}if(_0x295f26){const _0x437be7=this['getSidebarItemView'](_0x295f26);_0x437be7&&(_0x295f26['isActive']=!0x0,_0x513f15&&(_0x437be7['isAnimationDisabled']=!0x0,_0x437be7['top']+=0x1),this['_alignToTargetRect'](_0x437be7));}}['_detachFromContainer'](_0x25412f){if(this['view']['element']['remove'](),_0x25412f){for(const _0x3726d7 of _0x25412f)this['_destroySidebarItemView'](_0x3726d7);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2d4ead,_0x4c9d04){_0x4c9d04||(_0x4c9d04=_0x2d4ead['view']);const _0x356e9a=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x356e9a,_0x2d4ead),this['_annotationToSidebarItemView']['set'](_0x2d4ead,_0x356e9a),_0x356e9a['content']['add'](_0x4c9d04),this['listenTo'](_0x2d4ead['view'],'change:targetRect',(_0x3f8fa1,_0x619bf9,_0x4cd5f5)=>{const _0x39b6e3=this['_getTargetTop'](_0x2d4ead,_0x4cd5f5);_0x356e9a['_targetTop']!=_0x39b6e3&&(_0x356e9a['_targetTop']=_0x39b6e3,this['_setItemTop'](_0x356e9a,_0x39b6e3));}),this['listenTo'](_0x356e9a,'change:top',()=>{this['_recalculate'](_0x356e9a,'top');}),this['listenTo'](_0x356e9a,'change:bottom',()=>{this['_recalculate'](_0x356e9a,'bottom');}),this['_alignToTargetRect'](_0x356e9a);const _0x29ccd5=this['_getItemBefore'](_0x356e9a);if(_0x29ccd5)this['_alignAfterItem'](_0x29ccd5,_0x356e9a)||this['_alignToTargetRect'](_0x356e9a);else this['_alignToTargetRect'](_0x356e9a);return this['_updateLastItem'](),this['view']['list']['add'](_0x356e9a),_0x356e9a;}['_alignForTopChange'](_0x2b05dc){if(!_0x2b05dc['content']['length'])return;const _0x37c9bb=this['_getItemBefore'](_0x2b05dc);if(!_0x37c9bb)return;const _0x3f15aa=this['_sidebarItemViewToAnnotation']['get'](_0x37c9bb),_0x1dc4b8=this['_activeAnnotation'];_0x1dc4b8&&_0x1dc4b8===_0x3f15aa?this['_alignAfterItem'](_0x37c9bb,_0x2b05dc):this['_alignBeforeItem'](_0x2b05dc,_0x37c9bb);}['_alignForBottomChange'](_0x3eb444){if(!_0x3eb444['content']['length'])return;const _0x2346c7=this['_getItemAfter'](_0x3eb444);if(!_0x2346c7)return;const _0x26a1dd=this['_sidebarItemViewToAnnotation']['get'](_0x2346c7),_0x424ad0=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x161961=this['_activeAnnotation'];_0x161961&&_0x161961===_0x26a1dd&&_0x424ad0?(this['_alignBeforeItem'](_0x2346c7,_0x3eb444),this['_alignAfterItem'](_0x3eb444,_0x2346c7)):_0x161961&&_0x161961===_0x26a1dd?this['_alignBeforeItem'](_0x2346c7,_0x3eb444):this['_alignAfterItem'](_0x3eb444,_0x2346c7);}['_recalculate'](_0x2537c1,_0x34b389){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x244706,changedProp:_0x55c4b1}of this['_recalculateBuffer'])'top'===_0x55c4b1?this['_alignForTopChange'](_0x244706):this['_alignForBottomChange'](_0x244706);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2537c1,'changedProp':_0x34b389});}['getSidebarItemView'](_0x2136a9){return this['_annotationToSidebarItemView']['get'](_0x2136a9);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5141fb){const _0xc7d8c2=this['getSidebarItemView'](_0x5141fb);this['stopListening'](_0xc7d8c2),this['stopListening'](_0x5141fb['view']),_0xc7d8c2['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5141fb),this['_sidebarItemViewToAnnotation']['delete'](_0xc7d8c2);}['_createSidebarView'](){const _0x34c728=new H(this['context']['locale']);return _0x34c728['render'](),this['on']('change:_lastItem',(_0x3a52b9,_0x12df11,_0x5d34a0,_0x3d2ef6)=>{_0x3d2ef6&&_0x34c728['unbind']('minHeight'),_0x5d34a0?_0x34c728['bind']('minHeight')['to'](_0x5d34a0,'bottom'):_0x34c728['minHeight']=null;}),_0x34c728;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x177573){const _0xe7d80a=this['_sidebarItemViewToAnnotation']['get'](_0x177573),_0xb8870c=_0xe7d80a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xe7d80a)-0x1);return _0xb8870c&&this['getSidebarItemView'](_0xb8870c)||null;}['_getItemAfter'](_0x560aec){const _0x1d6ecf=this['_sidebarItemViewToAnnotation']['get'](_0x560aec),_0x585e77=_0x1d6ecf&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1d6ecf)+0x1);return _0x585e77&&this['getSidebarItemView'](_0x585e77)||null;}['_alignBeforeItem'](_0x1a2a75,_0x1e3c7c){_0x1a2a75['updateHeight']();const _0x4cc8ac=G(_0x1e3c7c['bottom']+this['_spaceBetweenItems'],_0x1a2a75['top']);return!!_0x4cc8ac&&(this['_setItemTop'](_0x1e3c7c,_0x1e3c7c['top']-_0x4cc8ac),!0x0);}['_alignAfterItem'](_0xe703e4,_0x56e5de){_0xe703e4['updateHeight']();const _0x21fb21=G(_0xe703e4['bottom']+this['_spaceBetweenItems'],_0x56e5de['top']);return!!_0x21fb21&&(this['_setItemTop'](_0x56e5de,_0x56e5de['top']+_0x21fb21,!0x1),!0x0);}['_alignToTargetRect'](_0x381f1b){const _0x3d2c48=this['_sidebarItemViewToAnnotation']['get'](_0x381f1b);if(!_0x3d2c48||!_0x3d2c48['target']||!_0x3d2c48['targetRect'])return;const _0x5e8f4d=this['_getTargetTop'](_0x3d2c48,_0x3d2c48['targetRect']);this['_setItemTop'](_0x381f1b,_0x5e8f4d);}['_getTargetTop'](_0x44e64f,_0x3ba72f){if(null===_0x3ba72f)return 0x0;if(_0x44e64f['target']instanceof _0x2767ff)return _0x3ba72f['top'];{const _0x3be07d=new _0x2767ff(this['view']['element'])['top'];return _0x3ba72f['top']-_0x3be07d;}}['_setItemTop'](_0x32c86c,_0x590b98,_0x3c35f9=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x3c35f9&&(_0x590b98=Math['max'](_0x590b98,this['_getMaxAvailableTop'](_0x32c86c))),_0x32c86c['top']=_0x590b98;}['_getMaxAvailableTop'](_0x1c752b){let _0x59c0ec=this['_getItemBefore'](_0x1c752b),_0x43ccd2=0x0;for(;_0x59c0ec;)_0x59c0ec['updateHeight'](),_0x43ccd2+=this['_spaceBetweenItems']+_0x59c0ec['height'],_0x59c0ec=this['_getItemBefore'](_0x59c0ec);return _0x43ccd2;}}function G(_0x1926bf,_0x3961ad){return Math['max'](_0x1926bf-_0x3961ad,0x0);}function g(_0x576990){return null!==_0x576990&&'object'==typeof _0x576990&&0x1===_0x576990['nodeType'];}class e extends _0x4b682f{['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(_0x15df6e){super(_0x15df6e),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x236aed(),this['_refreshPositioningDebounced']=_0x51e02f(()=>{_0x15df6e['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x48b23d=this['context']['plugins']['get'](j),_0x6785c=this['context']['plugins']['get'](z);_0x48b23d['register']('wideSidebar',this),_0x6785c['container']&&_0x48b23d['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x1e7489){if(_0x1e7489===this['activeAnnotation'])return;const _0x56a955=this['context']['plugins']['get'](z);_0x56a955['_activeAnnotation']=_0x1e7489;const _0x5ef1bf=this['activeAnnotation'];_0x56a955['refresh']({'blurredAnnotation':_0x5ef1bf,'activatedAnnotation':_0x1e7489}),this['activeAnnotation']=_0x1e7489;}['attach'](_0x5c8f1){this['annotations']=_0x5c8f1;const _0x3c412e=this['context']['plugins']['get'](z);if(_0x3c412e['_annotations']=_0x5c8f1,this['isAttached'])throw new _0x4000c2('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3c412e,'set:container',()=>{this['detach'](),this['listenTo'](_0x3c412e,'change:container',_0xe56543=>{_0xe56543['off'](),this['attach'](_0x5c8f1);});}),_0x3c412e['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x12ecf0=_0x5b9878=>{_0x5b9878['updateTargetRect'](),_0x3c412e['addAnnotation'](_0x5b9878);};for(const _0x46e3f1 of _0x5c8f1)_0x12ecf0(_0x46e3f1);this['listenTo'](_0x5c8f1,'add',(_0x58e039,_0x58b4c9)=>{_0x12ecf0(_0x58b4c9);}),this['listenTo'](_0x5c8f1,'remove',(_0x38a551,_0x20eaa9,_0x4c40d6)=>{_0x3c412e['rearrange']({'removedAnnotation':_0x20eaa9,'previousAnnotation':_0x5c8f1['get'](_0x4c40d6-0x1),'nextAnnotation':_0x5c8f1['get'](_0x4c40d6+0x1)}),_0x20eaa9===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5c8f1,'focus',(_0x24a474,_0x1d4f6f)=>{this['setActiveAnnotation'](_0x1d4f6f);}),this['listenTo'](_0x5c8f1,'blur',()=>{this['setActiveAnnotation'](null);});const _0x14858c=this['context']instanceof _0x5d9522?this['context']['editors']:new _0x236aed([this['context']]);for(const _0x46fbe6 of _0x14858c)this['_integrateWithEditorAnnotations'](_0x46fbe6);this['listenTo'](_0x14858c,'add',(_0x3d300a,_0x11ea10)=>{this['listenTo'](_0x11ea10,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x11ea10);});}),this['listenTo'](_0x14858c,'remove',(_0x51a624,_0xad8d87)=>{_0xad8d87['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xad8d87['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4000c2('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5019ad=this['context']['plugins']['get'](z);_0x5019ad['_detachFromContainer'](this['annotations']),this['stopListening'](_0x5019ad),this['stopListening'](this['annotations']),this['context']instanceof _0x5d9522&&this['stopListening'](this['context']['editors']);for(const _0x1f095c of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1f095c);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2f8337){if(!_0x2f8337['plugins']['has']('EditorAnnotations'))return;const _0x24c63f=_0x2f8337['plugins']['get']('EditorAnnotations'),_0x12c619=()=>{const _0x2482ed=_0x24c63f['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x2482ed[0x0]||null);};this['listenTo'](_0x24c63f,'refresh',_0x12c619),this['listenTo'](_0x24c63f,'blur',(_0x2bc1be,{isAnnotationTracked:_0x50280a})=>{this['activeAnnotation']&&_0x50280a(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x24c63f,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x4221a6=>{_0x24c63f['hasDomSelection']()&&(_0x12c619(),_0x4221a6['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x24c63f);}['_destroyEditorAnnotationsIntegration'](_0x35dac1){this['stopListening'](_0x35dac1),this['_editorAnnotations']['remove'](_0x35dac1);}}class C extends _0x19a4ce{['counterView'];constructor(_0x248208){super(_0x248208);const _0x358fcd=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1ac209,_0x3a6ac9)=>_0x1ac209?'...':_0x3a6ac9['toString']()),this['set']('annotationType',''),this['icon']=_0x2a98df,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x358fcd['to']('annotationType',_0x589b42=>'ck-annotation-counter__badge--'+_0x589b42),_0x358fcd['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x358fcd['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x4b682f{['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(_0x11d1d8){super(_0x11d1d8),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x5743fa())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x236aed(),this['_refreshPositioningDebounced']=_0x51e02f(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x5a1f0d(this['context']['locale']),this['balloonPanelView']=new _0x46579c(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x346321){this['annotations']=_0x346321;const _0x79904b=this['context']['plugins']['get'](z),_0x2de207=this['balloonPanelView'];if(_0x79904b['_annotations']=_0x346321,this['isAttached'])throw new _0x4000c2('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x79904b,'set:container',()=>{this['detach'](),this['listenTo'](_0x79904b,'change:container',_0x369123=>{_0x369123['off'](),this['attach'](_0x346321);});}),_0x79904b['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x963e67=_0x1b0028=>{const _0x4c0cf9=new C(this['context']['locale']);_0x79904b['addAnnotation'](_0x1b0028,_0x4c0cf9),this['_annotationToNarrowView']['set'](_0x1b0028,_0x4c0cf9),_0x4c0cf9['bind']('isDirty','annotationType','number')['to'](_0x1b0028['view'],'isDirty','type','length'),_0x4c0cf9['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x2de207['content']['first']!==_0x1b0028['view']?(this['_showBalloon'](_0x1b0028),_0x1b0028['view']['element']['focus'](),this['setActiveAnnotation'](_0x1b0028)):this['setActiveAnnotation'](null);});};for(const _0xe39a71 of _0x346321)_0x963e67(_0xe39a71);this['listenTo'](_0x346321,'add',(_0x378c84,_0x2d28ee)=>{_0x963e67(_0x2d28ee);}),this['listenTo'](_0x346321,'remove',(_0x82fb65,_0x4a31e6,_0x57cb3a)=>{this['_annotationToNarrowView']['get'](_0x4a31e6)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4a31e6),_0x79904b['rearrange']({'removedAnnotation':_0x4a31e6,'previousAnnotation':_0x346321['get'](_0x57cb3a-0x1),'nextAnnotation':_0x346321['get'](_0x57cb3a+0x1)}),_0x4a31e6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x346321,'focus',(_0x36e102,_0x196fc3)=>{this['setActiveAnnotation'](_0x196fc3);}),this['listenTo'](_0x346321,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x2e29d8,_0x270f69)=>{_0x270f69['keyCode']===_0x46e1a0['esc']&&_0x2de207['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x2de207['content']['first']),this['_hideBalloon'](),_0x270f69['stopPropagation'](),_0x270f69['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x2f8945,_0x40b466)=>{const _0x430b59=_0x40b466['target'];_0x2de207['isVisible']&&_0x2de207['element']['contains'](_0x430b59)||_0x79904b['view']['element']['contains'](_0x430b59)||_0x2f8945['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x8c8216=>_0x8c8216['contains'](_0x430b59))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xcd57ff=this['context']instanceof _0x5d9522?this['context']['editors']:new _0x236aed([this['context']]);for(const _0x34137c of _0xcd57ff)this['_integrateWithEditorAnnotations'](_0x34137c);this['listenTo'](_0xcd57ff,'add',(_0xf27793,_0x5e1f7e)=>{this['listenTo'](_0x5e1f7e,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5e1f7e);});}),this['listenTo'](_0xcd57ff,'remove',(_0x2e4a54,_0x5af42a)=>{_0x5af42a['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5af42a['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x4bacd6){if(_0x4bacd6===this['activeAnnotation'])return;const _0x2f1c01=this['context']['plugins']['get'](z);if(_0x2f1c01['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4bacd6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4bacd6)_0x2f1c01['getSidebarItemView'](_0x4bacd6)?this['_showBalloon'](_0x4bacd6):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x4bacd6;}['detach'](){if(!this['isAttached'])throw new _0x4000c2('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x456ff1=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x4ce8d6=>_0x4ce8d6['destroy']()),this['_annotationToNarrowView']['clear'](),_0x456ff1['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x5d9522&&this['stopListening'](this['context']['editors']);for(const _0x3f3c6d of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3f3c6d);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'](_0x4ca695){if(!_0x4ca695['plugins']['has']('EditorAnnotations'))return;const _0x202f15=_0x4ca695['plugins']['get']('EditorAnnotations'),_0x66e099=this['context']['plugins']['get'](z),_0x552842=this['annotations'],_0x341c86=this['balloonPanelView'],_0x4822a3=()=>{const _0x40971e=_0x202f15['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x40971e),this['setActiveAnnotation'](_0x40971e[0x0]||null);};this['listenTo'](_0x202f15,'refresh',_0x4822a3),this['listenTo'](_0x202f15,'blur',(_0x5344fd,{isAnnotationTracked:_0x5697bc})=>{this['activeAnnotation']&&_0x5697bc(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x202f15,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x552842,'blur',_0x5ba7cc=>{_0x202f15['hasDomSelection']()&&_0x5ba7cc['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x2b78a8,_0x33f134)=>{const _0x36679c=_0x33f134['target'];_0x341c86['isVisible']&&_0x341c86['element']['contains'](_0x36679c)||_0x66e099['view']['element']['contains'](_0x36679c)||this['activeAnnotation']&&_0x202f15['hasDomSelection']()&&(_0x4822a3(),_0x2b78a8['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x202f15);}['_destroyEditorAnnotationsIntegration'](_0x33bab2){_0x33bab2&&(this['stopListening'](_0x33bab2),this['_editorAnnotations']['remove'](_0x33bab2));}['_setSelectedAnnotations'](_0x5d94dd){for(const _0x2bf512 of this['_selectedAnnotations'])_0x5d94dd['includes'](_0x2bf512)||this['_manuallyClosedAnnotationViews']['delete'](_0x2bf512['view']);this['_selectedAnnotations']=_0x5d94dd;}['_refreshPositioning'](){const _0x390230=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x390230['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x10d6cb){if(this['_manuallyClosedAnnotationViews']['has'](_0x10d6cb['view']))return;const _0x37d8c5=this['balloonPanelView']['content']['first'];_0x37d8c5!==_0x10d6cb['view']?(_0x37d8c5&&this['_detachListeners'](_0x37d8c5),this['_attachListeners'](_0x10d6cb['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x10d6cb['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0xf3a608=this['balloonPanelView']['content']['first'],_0x119718=_0xf3a608&&this['annotations']['getByView'](_0xf3a608);if(!_0x119718||!this['_annotationToNarrowView']['has'](_0x119718))return;const _0x375bf1=this['_annotationToNarrowView']['get'](_0x119718)['element'],_0x54c1da=(function(){const _0x109173=_0x46579c['defaultPositions'];return[_0x109173['southArrowNorthEast'],_0x109173['northArrowSouthEast'],_0x109173['southArrowNorth'],_0x109173['northArrowSouth'],_0x109173['southArrowNorthWest'],_0x109173['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x375bf1,'positions':_0x54c1da});}['_hideBalloon'](){const _0x2a15ea=this['balloonPanelView'],_0x3e7234=_0x2a15ea['content']['first'];_0x3e7234&&(this['_detachListeners'](_0x3e7234),_0x2a15ea['unpin'](),_0x2a15ea['content']['clear']());}['_attachListeners'](_0x436d4f){this['listenTo'](_0x436d4f,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x436d4f,'Esc',(_0x9d9a96,_0x1f8b9b)=>{this['_manuallyClosedAnnotationViews']['add'](_0x436d4f),this['_hideBalloon'](),_0x1f8b9b();});}['_detachListeners'](_0x2c3eeb){this['stopListening'](_0x2c3eeb);}}class c extends _0xc00a87{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x296170,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb8782f){super(_0xb8782f),_0xb8782f['editing']['view']['addObserver'](_0xf0bc54),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0xb8782f['plugins']['get'](_0x296170),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x8fc44a=this['editor']['plugins']['get'](j);_0x8fc44a['context']===this['editor']&&(_0x8fc44a['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x58b0f8,_0x326b93)=>{const _0x1b33ec=this['_balloon'];if(this['isAttached']&&_0x1b33ec['visibleView']){const _0x622fd8=this['annotations']['getByView'](_0x1b33ec['visibleView']);_0x622fd8&&this['_closeAnnotation'](_0x622fd8),_0x326b93();}}));}['afterInit'](){const _0x7b7f89=this['editor']['plugins']['get'](j);_0x7b7f89['context']===this['editor']&&(_0x7b7f89['hasActive']()||_0x7b7f89['switchTo']('inline'));}['setActiveAnnotation'](_0x2ca70c){_0x2ca70c!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2ca70c&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2ca70c)&&this['_addAnnotationToBalloon'](_0x2ca70c,!0x0),_0x2ca70c['isActive']=!0x0),_0x2ca70c||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2ca70c);}['attach'](_0x5f33e7){this['annotations']=_0x5f33e7;const _0x5a314c=this['editor']['plugins']['get'](j),_0x5a163b=this['_balloon'];if(this['isAttached'])throw new _0x4000c2('inlineannotations-attach-already-attached',this);if(_0x5a314c['context']!==this['editor'])throw new _0x4000c2('inlineannotations-not-allowed-with-context',this);const _0x43cc66=this['editor']['plugins']['get'](b);this['listenTo'](_0x43cc66,'refresh',()=>{const _0x33193a=_0x43cc66['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x31d37e,_0x4cf9a8;!this['_forceRefresh']&&(_0x31d37e=_0x33193a,_0x4cf9a8=this['_selectedAnnotations'],_0x31d37e['length']===_0x4cf9a8['length']&&_0x31d37e['every'](_0x3ef602=>_0x4cf9a8['includes'](_0x3ef602)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x33193a),this['setActiveAnnotation'](_0x33193a[0x0]||null));}),this['listenTo'](_0x43cc66,'blur',(_0x31adb5,{isAnnotationTracked:_0x23d774})=>{this['activeAnnotation']&&_0x23d774(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x451b7,_0x3e8424,_0x62cf8a)=>{_0x62cf8a||this['setActiveAnnotation'](null);}),this['listenTo'](_0x5f33e7,'remove',(_0x1a0d5f,_0x5e5949)=>{this['_removeAnnotationFromBalloon'](_0x5e5949),_0x5e5949===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5a163b,'change:visibleView',(_0x27ca39,_0x4689ac,_0x4feb5f,_0x21ec16)=>{_0x21ec16&&this['stopListening'](_0x21ec16);const _0x46e582=_0x5f33e7['getByView'](_0x4feb5f);_0x4feb5f&&_0x46e582&&(this['listenTo'](_0x4feb5f,'change:height',()=>{_0x5a163b['updatePosition']();}),this['listenTo'](_0x4feb5f,'Esc',()=>{this['_closeAnnotation'](_0x46e582),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x46e582&&this['setActiveAnnotation'](_0x46e582));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5a163b['visibleView']&&(_0x5f33e7['getByView'](_0x5a163b['visibleView'])&&_0x5a163b['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 _0x4000c2('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x57f178 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x57f178);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x1f6e11){for(const _0xc07180 of this['_selectedAnnotations'])_0x1f6e11['includes'](_0xc07180)||this['_manuallyClosed']['delete'](_0xc07180);for(const _0x1312ca of this['annotations'])_0x1f6e11['includes'](_0x1312ca)||this['_removeAnnotationFromBalloon'](_0x1312ca);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x481380 of _0x1f6e11)this['_addAnnotationToBalloon'](_0x481380);}this['_selectedAnnotations']=_0x1f6e11;}['_addAnnotationToBalloon'](_0x5a57be,_0x4de29b=!0x1){this['_manuallyClosed']['has'](_0x5a57be)||(this['_addedAnnotations']['has'](_0x5a57be)||this['_balloon']['hasView'](_0x5a57be['view'])||(this['_addedAnnotations']['add'](_0x5a57be),this['_balloon']['add']({'stackId':_0x5a57be['view']['id'],'view':_0x5a57be['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5a57be)}})),_0x4de29b&&this['_balloon']['showStack'](_0x5a57be['view']['id']));}['_getBalloonTargetForAnnotation'](_0xd3dbdf){const _0x3c45a7=_0xd3dbdf['target'],_0x1eb482=this['editor']['editing']['view'],_0x505ddc=_0x1eb482['document']['selection']['getFirstRange'](),_0x233917=_0x1eb482['domConverter']['viewRangeToDom'](_0x505ddc);if(_0x233917['collapse'](!0x0),_0x3c45a7){if(_0x3c45a7 instanceof _0x2767ff)return _0x3c45a7;let _0x204424=[];for(const _0x2414ae of _0x3c45a7)_0x204424['push'](...F(_0x2414ae['getClientRects']()));_0x204424=function(_0x544737){const _0x16c366=[];let _0x42c59c=_0x544737[0x0];for(let _0x12916f=0x1;_0x12916f<_0x544737['length'];_0x12916f++)P(_0x42c59c,_0x544737[_0x12916f])?_0x42c59c['width']+=_0x544737[_0x12916f]['width']:(_0x16c366['push'](_0x42c59c),_0x42c59c=_0x544737[_0x12916f]);return _0x16c366['push'](_0x42c59c),_0x16c366;}(_0x204424);const _0x54a280=_0x233917['getBoundingClientRect']();return _0x204424['find'](_0x50b314=>_0x50b314['top']<=_0x54a280['top']&&_0x50b314['bottom']>=_0x54a280['bottom']&&_0x50b314['left']<=_0x54a280['left']&&_0x50b314['right']>=_0x54a280['right'])||_0x204424[0x0];}return _0xd3dbdf['targetRect']||_0x233917;}['_removeAnnotationFromBalloon'](_0x18634c){this['_addedAnnotations']['has'](_0x18634c)&&this['_balloon']['hasView'](_0x18634c['view'])&&(this['_addedAnnotations']['delete'](_0x18634c),this['_balloon']['remove'](_0x18634c['view']));}['_closeAnnotation'](_0x2503ce){this['_manuallyClosed']['add'](_0x2503ce),this['_removeAnnotationFromBalloon'](_0x2503ce);}}function F(_0x32a9e3){return Array['from'](_0x32a9e3)['map'](DOMRect['fromRect']);}function P(_0xc5d22e,_0x351be9){return _0xc5d22e['top']===_0x351be9['top']&&_0xc5d22e['bottom']===_0x351be9['bottom']&&_0xc5d22e['right']===_0x351be9['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x4ce75e,_0x2690b7){super(_0x4ce75e),this['set']('isEmpty',!_0x2690b7['length']),this['focusTracker']=new _0x22fbb8(),this['_annotationViews']=_0x2690b7,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x329626({'focusables':_0x2690b7,'focusTracker':this['focusTracker']}),this['listenTo'](_0x2690b7,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x2690b7,'remove',(_0x37da69,_0x377784)=>{_0x377784['isActive']&&this['focus'](),_0x2690b7['length']||(this['isEmpty']=!0x0);});const _0x5abce8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x4ce75e,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x2690b7},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x5abce8['if']('isEmpty','ck-hidden',_0x24e980=>!_0x24e980)]},'children':[{'text':N(_0x4ce75e,'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 _0x98272b of this['_annotationViews'])this['focusTracker']['add'](_0x98272b['element']);this['_annotationViews']['on']('change',(_0x86de5,{added:_0x4f2706,removed:_0x36a710})=>{for(const _0x18a818 of _0x4f2706)this['focusTracker']['add'](_0x18a818['element']);for(const _0x54b016 of _0x36a710)this['focusTracker']['remove'](_0x54b016['element']);});}}class p extends _0x4b682f{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x49ccfc){super(_0x49ccfc),this['archivedThreads']=new _0x236aed();}['init'](){const _0x3f63e8=this['context'],_0x46eec3=_0x3f63e8['plugins']['get'](o),_0x58ae86=_0x3f63e8['plugins']['get'](y);this['listenTo'](_0x46eec3,'addCommentThread',(_0x368851,{threadId:_0x2533f2})=>{const _0x879f88=_0x46eec3['getCommentThread'](_0x2533f2);_0x879f88['archivedAt']&&this['archivedThreads']['add'](_0x879f88,this['_calculatePosition'](_0x879f88['archivedAt'])),this['listenTo'](_0x879f88,'change:archivedAt',(_0x48336d,_0x5c21d0,_0x28da5c)=>{_0x28da5c?this['archivedThreads']['has'](_0x879f88)||this['archivedThreads']['add'](_0x879f88,this['_calculatePosition'](_0x879f88['archivedAt'])):this['archivedThreads']['has'](_0x879f88)&&this['archivedThreads']['remove'](_0x879f88);});}),this['listenTo'](_0x46eec3,'removeCommentThread',(_0x50a1ed,{threadId:_0x473ada})=>{const _0x234136=_0x46eec3['getCommentThread'](_0x473ada);this['stopListening'](_0x234136),this['archivedThreads']['has'](_0x234136)&&this['archivedThreads']['remove'](_0x234136);},{'priority':'highest'}),this['listenTo'](_0x58ae86['collection'],'focus',(_0x1baabe,_0x56efa0)=>{_0x56efa0['isVisible']||(_0x56efa0['isActive']=!0x0,_0x58ae86['activate'](_0x56efa0));});}['_calculatePosition'](_0x180e42){const _0x224811=[...this['archivedThreads']]['findIndex'](_0x2f0c48=>_0x2f0c48['archivedAt']<_0x180e42);return _0x224811>-0x1?_0x224811:this['archivedThreads']['length'];}}class a extends _0xc00a87{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x1972a5];}constructor(_0x6f326a){super(_0x6f326a),this['annotationViews']=new _0x12e523(),this['_pendingThreads']=[];}['init'](){const _0x2fac43=this['editor'],_0x32e50c=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x2fac43['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x19a4ce,!0x0)),_0x2fac43['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3b4ffe=this['_createCommentsArchiveButton'](_0x171cc0);return _0x3b4ffe['set']({'role':'menuitemcheckbox'}),_0x3b4ffe;});const _0x361138=_0x2fac43['plugins']['get'](p),_0x36980c=_0x2fac43['plugins']['get']('Annotations'),_0x25f6a2=_0x2fac43['plugins']['get']('CommentsRepository');_0x361138['archivedThreads']['forEach'](_0x20fbfc=>{this['_handleNewThread'](_0x20fbfc);}),this['listenTo'](_0x361138['archivedThreads'],'add',(_0x4787ca,_0x319074)=>{this['_handleNewThread'](_0x319074);}),this['listenTo'](_0x36980c['collection'],'add',(_0x25cf35,_0x58b830)=>{const _0x21116b=this['_pendingThreads']['find'](_0x3dbd15=>{const _0x470744=_0x25f6a2['_threadToController']['get'](_0x3dbd15);return _0x470744&&_0x58b830['innerView']===_0x470744['view'];});if(_0x21116b){const _0x48af8a=this['_calculatePosition'](_0x21116b['archivedAt']);this['_addAnnotationToArchive'](_0x58b830,_0x48af8a),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x21116b),0x1);}}),this['listenTo'](_0x361138['archivedThreads'],'remove',(_0xa50b,_0x5cde5c)=>{const _0x476701=_0x2fac43['config']['get']('collaboration.channelId');if(!_0x476701||_0x5cde5c['channelId']===_0x476701){if(this['_pendingThreads']['includes'](_0x5cde5c))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x5cde5c),0x1);else{const _0x5233ed=_0x25f6a2['_threadToController']['get'](_0x5cde5c),_0x3d3487=_0x36980c['getByInnerView'](_0x5233ed['view']);this['annotationViews']['remove'](_0x3d3487['view']),this['stopListening'](_0x3d3487),this['stopListening'](_0x3d3487['focusableElements']);}}}),this['listenTo'](_0x36980c['collection'],'add',(_0x37b479,_0x15c279)=>{this['listenTo'](_0x15c279,'escape',_0x32e50c);}),this['listenTo'](_0x36980c['collection'],'remove',(_0x53f905,_0x372622)=>{this['stopListening'](_0x372622,'escape',_0x32e50c);});}['_addAnnotationToArchive'](_0x382462,_0x50df0a){this['listenTo'](_0x382462,'set:isVisible',_0x1b1c72=>{_0x1b1c72['return']=!0x1,_0x1b1c72['stop']();}),this['annotationViews']['add'](_0x382462['view'],_0x50df0a);}['_handleNewThread'](_0x66fb10){const _0x6a1fd1=this['editor']['plugins']['get']('CommentsRepository'),_0x52647d=this['editor']['plugins']['get']('Annotations'),_0x1fc7e9=this['editor']['config']['get']('collaboration.channelId');if(!_0x1fc7e9||_0x66fb10['channelId']===_0x1fc7e9){const _0x7fb462=_0x6a1fd1['_threadToController']['get'](_0x66fb10);if(!_0x7fb462)return void this['_pendingThreads']['push'](_0x66fb10);const _0x46177d=this['_calculatePosition'](_0x66fb10['archivedAt']),_0x471a53=_0x52647d['getByInnerView'](_0x7fb462['view']);_0x471a53['isVisible']&&_0x52647d['_visibleAnnotations']['remove'](_0x471a53),this['_addAnnotationToArchive'](_0x471a53,_0x46177d);}}['_calculatePosition'](_0xb5bf4d){const _0x4d9ee0=this['editor']['config']['get']('collaboration.channelId'),_0x15e295=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x344e43=>_0x344e43['channelId']===_0x4d9ee0)['findIndex'](_0x2183e8=>_0x2183e8['archivedAt']<_0xb5bf4d);return _0x15e295<0x0||_0x15e295>this['annotationViews']['length']?this['annotationViews']['length']:_0x15e295-0x1;}['_toggleDialog'](){const _0x230663=this['editor'],_0xc8eba=_0x230663['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x230663['locale'],this['annotationViews'])),'commentsArchive'===_0xc8eba['id']?_0xc8eba['hide']():_0xc8eba['show']({'id':'commentsArchive','title':N(_0x230663['locale'],'COMMENTS_ARCHIVE'),'icon':_0x5d05ce,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x20ca1c['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x39c2d9,_0x3b5b79=!0x1){const _0x14ad53=this['editor']['locale'],_0x2c7b12=this['editor']['plugins']['get']('Dialog'),_0x14413d=new _0x39c2d9(_0x14ad53);return _0x14413d['bind']('isEnabled')['to'](this,'isEnabled'),_0x14413d['bind']('isOn')['to'](_0x2c7b12,'id',_0x2eb517=>'commentsArchive'===_0x2eb517),_0x14413d['set']({'label':N(_0x14ad53,'COMMENTS_ARCHIVE'),'icon':_0x5d05ce,'isToggleable':!0x0}),_0x3b5b79&&(_0x14413d['tooltip']=!0x0),this['listenTo'](_0x14413d,'execute',()=>this['_toggleDialog']()),_0x14413d;}['_hideDialogOnAnnotationEscape']=_0x1e0c62=>{const _0x5bd4bd=_0x1e0c62['source'];if(!this['annotationViews']['has'](_0x5bd4bd['view']))return;const _0x3cab00=this['editor']['plugins']['get']('Dialog');_0x3cab00['isOpen']&&'commentsArchive'===_0x3cab00['id']&&(_0x3cab00['hide'](),_0x1e0c62['stop']());};}class gi extends _0xc00a87{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};