@ckeditor/ckeditor5-comments 47.6.0-alpha.1 → 47.6.0-alpha.2

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 _0x3db27d,ContextPlugin as _0x43ff48,PendingActions as lt,Command as _0x3077e4,Plugin as _0x478bf2,Context as _0x4aa052}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x5df269,uid as _0x1ce077,KeystrokeHandler as jt,FocusTracker as _0x67b3fd,diff as _0x2c46da,Collection as _0x842883,Rect as _0x221bff,CKEditorError as _0x552662,first as _0x32a71d,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x122649,keyCodes as _0x25b2ac}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x38294c,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x3a4bb7,trimHtml as ts,LateFocusDropdownButtonView as _0x44e940,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x368341}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x391904}from'es-toolkit/compat';import{IconUndo as _0x5dbd54,IconCheck as _0x3ac145,IconPencil as _0x34e1c9,IconRemoveComment as _0x5eeb8f,IconThreeVerticalDots as _0x13e749,IconAddComment as _0x3ab7aa,IconCommentsArchive as _0x2e02cd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x19c5c8,ButtonView as _0x503639,ViewCollection as _0x3aecc1,createDropdown as _0x552229,ListView as _0x4289d3,focusChildOnDropdownOpen as _0x238596,ListItemView as _0x489e41,MenuBarMenuListItemButtonView as _0x6f0215,BodyCollection as _0x125bcc,BalloonPanelView as _0x3ec0f5,ContextualBalloon as _0x235f3d,Dialog as _0x104467,DialogViewPosition as _0x493476}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x14edff}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 _0x894944}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x2da229}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x5df269(){['model'];['view'];constructor(_0x371a6d,_0x437bf6){super(),this['model']=_0x371a6d,this['model']['_isAttached']=!0x0,this['view']=_0x437bf6,this['listenTo'](_0x437bf6,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x437bf6,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x437bf6,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x437bf6,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x437bf6,'addComment',(_0x4b7cce,_0x34176c)=>this['addComment'](_0x34176c)),this['listenTo'](_0x437bf6,'updateComment',(_0x4ad6c3,_0x1a8f3a,_0x3cd412)=>this['updateComment'](_0x1a8f3a,_0x3cd412)),this['listenTo'](_0x437bf6,'removeComment',(_0x499a5c,_0x42da92)=>this['removeComment'](_0x42da92));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x68920){this['model']['addComment']({'content':_0x68920,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x5d61cc,_0x1e6962){this['model']['getComment'](_0x5d61cc)['update']({'content':_0x1e6962});}['removeComment'](_0x24bff5){this['model']['getComment'](_0x24bff5)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x5c8cca,_0x28f56f,_0x3dc982){const t=_0x5c8cca['t'];switch(_0x28f56f){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'},_0x3dc982);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'},_0x3dc982);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'},_0x3dc982);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'},_0x3dc982);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3dc982);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'},_0x3dc982);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'},_0x3dc982);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'},_0x3dc982);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(_0x4b2859,_0x4082f3){super(_0x4b2859);const _0x163a91=_0x1ce077();this['main']=this['createCollection'](),this['editable']=new Vt(_0x4b2859,_0x4082f3,void 0x0,{'label':()=>N(_0x4b2859,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x4b2859['uiLanguageDirection'],'lang':_0x4b2859['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x163a91},'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(_0x2bc50a){super(_0x2bc50a),this['view']=new Rt(_0x2bc50a['locale'],_0x2bc50a['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1a0a8c=this['editor']['editing']['view'],_0x86979d=this['view']['editable'],_0x422b34=_0x1a0a8c['document']['getRoot']();_0x86979d['name']=_0x422b34['rootName'],this['view']['render']();const _0x51722e=_0x86979d['element'];this['setEditableElement'](_0x86979d['name'],_0x51722e),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1a0a8c['attachDomRoot'](_0x51722e),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x5df269(_0x3db27d){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x1dbf21={}){function _0x4eb94f(_0x1472a8){return _0x1472a8['map'](_0x20c6ff=>String['fromCharCode'](_0x20c6ff))['join']('');}(_0x1dbf21=Object['assign']({},_0x1dbf21))['plugins']||(_0x1dbf21['plugins']=hs['defaultPlugins']),super(_0x1dbf21),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[_0x4eb94f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eb94f([0x76,0x69,0x65,0x77])][_0x4eb94f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4eb94f([0x61,0x75,0x74,0x6f]),this[_0x4eb94f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4eb94f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4eb94f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4eb94f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4eb94f([0x6f,0x6b])});}['create'](){const _0x55f08f=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x55f08f))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x301127=>{const _0x3e6343=this['model']['document']['getRoot'](),_0x52a664=_0x3e6343&&_0x3e6343['getChild'](_0x3e6343['childCount']-0x1);_0x301127['setSelection'](_0x52a664,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x50a74a=this['editing']['view'],_0x490cee=_0x50a74a['document']['getRoot'](),_0x1b7de7=_0x490cee['getChild'](0x0);_0x490cee['childCount']>0x1||!_0x1b7de7||'p'!=_0x1b7de7['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x50a74a,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x1b7de7['placeholder']=this['placeholder']),Ft({'view':_0x50a74a,'element':_0x1b7de7,'keepOnFocus':!0x0}),this['placeholderElement']=_0x1b7de7);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5d71ce,_0x107d8={}){super(_0x5d71ce),this['editor']=null,this['_editorConfig']=_0x107d8,this['set']('value',_0x107d8['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x5d71ce,'Reply...')),this['set']('submitLabel',N(_0x5d71ce,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x67b3fd(),this['focusCycler']=new _0x19c5c8({'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',(_0x291234,_0x5a5532)=>{this['cancelButtonView']['fire']('execute'),_0x5a5532();}),this['keystrokes']['set']('Ctrl+Enter',(_0x206b23,_0x2fe014)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x2fe014());}),this['on']('submit',(_0xce463f,_0x214402)=>{_0x214402['length']>0xfde8?(alert(N(_0x5d71ce,'TOO_LONG_COMMENT_ALERT',[_0x214402['length'],0xfde8])),_0xce463f['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 _0x1b6af1=this['editor'];this['element']['insertBefore'](_0x1b6af1['ui']['element'],this['element']['firstChild']),_0x1b6af1['model']['document']['on']('change',()=>this['value']=_0x1b6af1['getData']()),_0x1b6af1['bind']('placeholder')['to'](this),this['focusables']['add'](_0x1b6af1['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x5622f5){-0x1===_0x5622f5?(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:_0xd76785}=this,_0x3e5a5a=new _0x503639(_0xd76785);return _0x3e5a5a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3e5a5a['withText']=!0x0,_0x3e5a5a['bind']('label')['to'](this,'submitLabel'),_0x3e5a5a['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3e5a5a['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xec12bb,_0x56ca30)=>!_0x56ca30&&!!_0xec12bb['trim']()),_0x3e5a5a;}['_createCancelButton'](){const {locale:_0x59e02c}=this,_0x6c70f6=new _0x503639(_0x59e02c);return _0x6c70f6['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x6c70f6['label']=N(_0x59e02c,'Cancel'),_0x6c70f6['withText']=!0x0,_0x6c70f6['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x6c70f6;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x454b86=>{this['focusTracker']['add'](_0x454b86['element']);}),this['focusables']['on']('change',(_0x4d1c2b,_0x18f691)=>{for(const _0x1bf06e of Array['from'](_0x18f691['added'])['reverse']())this['focusTracker']['add'](_0x1bf06e['element']);});}}class ie extends kt{constructor(_0x3800c3,_0x185b64,_0xfea823){super(_0x3800c3),this['commentInputView']=new es(_0x3800c3,_0xfea823),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x5d06e9,_0x2fdcc7)=>_0x5d06e9||!!_0x2fdcc7),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 _0x38294c(_0x3800c3,_0x185b64),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'](_0x4d39b4){this['commentInputView']['focus'](_0x4d39b4);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x525e61,_0x32df85)=>{const {submitButtonView:_0x304ca1,cancelButtonView:_0x317a68,editor:_0x56dc63}=this['commentInputView'];[_0x304ca1['element'],_0x317a68['element'],_0x56dc63?_0x56dc63['editing']['view']['getDomRoot']():null]['filter'](_0x212717=>_0x212717)['some'](_0x1122eb=>_0x1122eb['contains'](_0x32df85['target']))||(this['focus'](),_0x32df85['preventDefault']());});}}class rs extends kt{constructor(_0x42e2d9){super(_0x42e2d9);const _0x5e30a2=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x5e30a2['to']('count',_0x2b278f=>N(_0x42e2d9,'NUMBER_OF_COMMENTS',_0x2b278f))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0xa89f3a,_0x1a3ad3,_0x37166d){super(_0xa89f3a);const _0x1ef3d2=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1a3ad3['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1a3ad3,this['_config']=_0x37166d,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x67b3fd(),this['keystrokes']=new jt(),this['focusCycler']=new _0x19c5c8({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1d4a47=>this['commentViews']['map'](_0x2e5607=>_0x2e5607['element'])['includes'](_0x1d4a47['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0xa89f3a),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x4edb1f=>_0x4edb1f-this['_config']['maxCommentsWhenCollapsed']);for(const _0x475e1d of _0x1a3ad3['comments'])this['_handleNewCommentModel'](_0x475e1d);this['_handleInfoComment'](),this['listenTo'](_0x1a3ad3['comments'],'add',(_0x58a39c,_0x568b36)=>{const _0x3c0355=this['_calculatePosition'](_0x568b36);this['length']++,this['_handleNewCommentModel'](_0x568b36,_0x3c0355),this['refreshVisibleViews']();}),this['listenTo'](_0x1a3ad3['comments'],'remove',(_0x1b436b,_0x30fba8)=>{this['length']--,this['_handleRemoveCommentModel'](_0x30fba8),this['refreshVisibleViews']();}),this['listenTo'](_0x1a3ad3,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1a3ad3,'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',_0x1ef3d2['if']('length','ck-hidden',_0x358255=>!_0x358255)],'aria-label':N(_0xa89f3a,'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'](_0x1850c8){-0x1===_0x1850c8?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x328e7d of this['commentViews'])_0x328e7d['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x2d8234,_0x43ee02){const _0x436934=new this['_config']['CommentView'](this['locale'],_0x2d8234,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x436934['viewUid']=_0x2d8234['id'],_0x436934['delegate']('removeComment')['to'](this),_0x436934['delegate']('updateComment')['to'](this),_0x436934['delegate']('resolveCommentThread')['to'](this),_0x436934['delegate']('editorReady')['to'](this),_0x436934['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x436934,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x436934,_0x43ee02);}['_calculatePosition'](_0x1eb1c3){const _0x28c0b4=this['_model']['_findOptimalIndex'](_0x1eb1c3);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x1eb1c3['authoredAt']?_0x28c0b4-0x1:_0x28c0b4:_0x28c0b4-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0xe23921={'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'],_0xe23921,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0xe23921));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x55327b){const _0x2de31e=this['commentViews']['remove'](_0x55327b['id']);this['stopListening'](_0x2de31e),_0x2de31e['isEditMode']&&this['_updateHasDirtyComment'](),_0x2de31e['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x5217b2=>_0x5217b2['isEditMode']);}['_rearrangeCollapse'](){const _0x1fcc51=function(_0x4a4b3f){const _0x57e8db=new _0x842883();for(const _0x1a4db1 of _0x4a4b3f)_0x57e8db['add'](_0x1a4db1);return _0x57e8db;}(this['commentViews']),_0x836d24=this['_collapsedCommentsView']['count'];for(let _0x57f79d=0x1;_0x57f79d<=_0x836d24;_0x57f79d++)_0x1fcc51['remove'](0x1);for(const _0x54ef0a of _0x1fcc51)_0x54ef0a['collapse']();_0x836d24>0x0&&_0x1fcc51['add'](this['_collapsedCommentsView'],0x1),ns(_0x2c46da(Array['from'](this['visibleViews']),Array['from'](_0x1fcc51)),this['visibleViews'],_0x1fcc51);}['_rearrangeExpand'](){ns(_0x2c46da(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1a6213 of this['visibleViews'])_0x1a6213['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2fd65f=>{this['focusTracker']['add'](_0x2fd65f['element']),this['keystrokes']['listenTo'](_0x2fd65f['element']);}),this['commentViews']['on']('change',(_0x3247b2,_0x4a1c90)=>{for(const _0x438a52 of _0x4a1c90['removed'])this['focusTracker']['remove'](_0x438a52['element']),this['keystrokes']['stopListening'](_0x438a52['element']);for(const _0x284881 of Array['from'](_0x4a1c90['added'])['reverse']())this['focusTracker']['add'](_0x284881['element']),this['keystrokes']['listenTo'](_0x284881['element']);});}}function ns(_0x4e9ac0,_0x31f750,_0x3555a6){let _0x442119=0x0;for(const _0x47610d of _0x4e9ac0)switch(_0x47610d){case'insert':_0x31f750['add'](_0x3555a6['get'](_0x442119),_0x442119),_0x442119++;break;case'delete':_0x31f750['remove'](_0x442119);break;case'equal':_0x442119++;}}class oe extends kt{constructor(_0x29266f){super(_0x29266f);const _0x325e5b=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x325e5b['to']('contextValue',_0x5bca93=>N(_0x29266f,'THREAD_CONTEXT_LABEL',_0x5bca93)),'tabindex':-0x1},'children':[{'text':_0x325e5b['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x115d1d,_0x22e667){super(_0x115d1d);const _0x3a1520=this['bindTemplate'];this['_model']=_0x22e667,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x67b3fd(),this['keystrokes']=new jt(),this['focusCycler']=new _0x19c5c8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x5e017a=>!!_0x5e017a),this['bind']('contextValue')['to'](this['_model'],'context',_0xb974db=>_0xb974db&&_0xb974db['value']?this['_trimContextValue'](_0xb974db['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',_0x3a1520['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 _0x1fe44b=new _0x503639(this['locale']);return _0x1fe44b['label']=N(this['locale'],'Reopen'),_0x1fe44b['tooltip']=N(this['locale'],'Reopen'),_0x1fe44b['icon']=_0x5dbd54,_0x1fe44b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3fdd59=>!_0x3fdd59),_0x1fe44b['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3a76a3,_0x1ff37a)=>_0x3a76a3&&_0x1ff37a),_0x1fe44b['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x1fe44b;}['_trimContextValue'](_0x5601af){if(_0x5601af['length']<0x96)return _0x5601af;const _0x36660c=_0x5601af['lastIndexOf']('\x20',0x93);return _0x5601af['substring'](0x0,_0x36660c>-0x1?_0x36660c:0x93)+'...';}['_attachContextActions'](){const _0x27a0d0=this['element']['querySelector']('.ck-context'),_0x5da9b3=_0x27a0d0['querySelector']('.ck-context__value');this['listenTo'](_0x27a0d0,'mouseenter',()=>{_0x5da9b3['offsetWidth']<_0x5da9b3['scrollWidth']&&_0x27a0d0['classList']['add']('overlay');}),this['listenTo'](_0x27a0d0,'mouseleave',()=>{_0x27a0d0['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x2677ab of this['focusables'])this['focusTracker']['add'](_0x2677ab['element']),this['keystrokes']['listenTo'](_0x2677ab['element']);}['_createContextView'](){const _0x251647=new oe(this['locale']);return _0x251647['bind']('contextValue')['to'](this),_0x251647;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3a494f,_0x34f844,_0x1c61c9,_0x3b733e){super(_0x3a494f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x34f844,this['_localUser']=_0x1c61c9,this['_config']=_0x3b733e,this['commentThreadHeaderView']=new Xt(_0x3a494f,_0x34f844),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x3a494f,N(_0x3a494f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x3a494f,_0x34f844,Object['assign']({'CommentView':this['_config']['CommentView']},_0x3b733e)),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',(_0xdd3d8d,_0x1437fc)=>_0xdd3d8d||!!_0x1437fc),this['bind']('isUnlinked')['to'](_0x34f844,'unlinkedAt',_0x6c6bfb=>!!_0x6c6bfb),this['bind']('ariaLabel')['to'](this,'length',_0x6d7c4e=>{const _0x34074c=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x6d7c4e,_0x34074c]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x67b3fd(),this['keystrokes']=new jt(),this['focusCycler']=new _0x19c5c8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xe96758=>_0xe96758['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 _0x3b25e4=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5df8e8=_0x3b25e4['commentInputView'];return _0x3b25e4['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5df8e8,'value',(_0x33002f,_0x440792,_0x5c6b6d,_0x5cac80,_0x5dcbae)=>!!_0x5dcbae||!!_0x5cac80&&_0x5c6b6d&&!_0x440792||_0x33002f&&_0x5c6b6d&&!_0x440792),_0x5df8e8['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x88f8c8,_0x1def43,_0xb7ea61)=>{let _0x3f5a59;return _0x3f5a59=_0xb7ea61&&_0x1def43?'Reply\x20to\x20reopen\x20discussion...':_0x88f8c8?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x3f5a59);}),_0x5df8e8['bind']('submitLabel')['to'](this,'length',_0x51a309=>N(this['locale'],_0x51a309?'Reply':'Comment')),_0x5df8e8['on']('submit',(_0x40722a,_0x7fc92)=>{this['fire']('addComment',_0x7fc92),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5df8e8['on']('cancel',()=>{this['focus']();}),_0x5df8e8['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5df8e8['on']('cancel',_0x3c7f69=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3c7f69['stop']());}),this['on']('change:isActive',(_0x259bb1,_0x21b454,_0x4040da)=>{_0x4040da||this['length']||_0x5df8e8['value']||this['fire']('removeCommentThread');}),_0x3b25e4;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x43fe43,_0x5a0a60,_0xfbd1a2,_0xb5379e){super(_0x43fe43,_0x5a0a60,_0xfbd1a2,_0xb5379e),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x43fe43,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4fd735,_0x216366,_0x23d86)=>{_0x23d86||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x19c5ca,_0x3c8804,_0x598029)=>{_0x598029&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x51458c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x51458c['if']('isActive','ck-thread--active'),_0x51458c['if']('isUnlinked','ck-thread--unlinked'),_0x51458c['to']('actionIndicator',_0x3007a2=>_0x3007a2?'ck-thread--'+_0x3007a2:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x51458c['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 _0x7e13a0 of this['commentsListView']['commentViews'])_0x7e13a0['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3092ec}=this,_0x4eca34=this['commentsListView']['commentViews']['get'](0x0);_0x4eca34===this['_boundFirstCommentView']||_0x4eca34['isSystemComment']||(this['_boundFirstCommentView']=_0x4eca34,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x4eca34,'actionIndicator',_0x45fa4f=>'remove'===_0x45fa4f?'remove':null),_0x4eca34['placeholder']=N(_0x3092ec,'Write\x20a\x20comment...'),_0x4eca34['removeButton']['on']('execute',_0x178e3e=>{_0x178e3e['stop'](),this['showConfirm'](N(_0x3092ec,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x4eca34['focus']();}),_0x4eca34['actionBar']['add'](this['resolveButton'],0x0),_0x4eca34['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x15a066=new _0x3a4bb7(this['locale']);return _0x15a066['label']=N(this['locale'],'Resolve'),_0x15a066['tooltip']=N(this['locale'],'Resolve'),_0x15a066['icon']=_0x3ac145,_0x15a066['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x15a066['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x24f20c=>!_0x24f20c),_0x15a066['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5bfca3,_0xd6bbe7)=>_0x5bfca3&&!_0xd6bbe7),_0x15a066['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x15a066;}['_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(_0x202186){super(_0x202186),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x4580aa,_0x41e782,_0x5a131f)=>{this['element']['innerHTML']=_0x5a131f;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4a1bc9,_0x99cc89,_0x4b17c8){super(_0x4a1bc9),this['_model']=_0x99cc89,this['_config']=_0x4b17c8,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x99cc89,'content',_0x99cc89,'authoredAt',(_0x3262d1,_0x3b2f55)=>N(_0x4a1bc9,'COMMENT_ARIA_LABEL',[_0x99cc89['author']['name'],_0x4b17c8['formatDateTime'](_0x3b2f55),new DOMParser()['parseFromString'](_0x3262d1,'text/html')['body']['textContent'],_0x99cc89['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x4a1bc9,N(_0x4a1bc9,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x3aecc1(),this['focusTracker']=new _0x67b3fd(),this['keystrokes']=new jt(),this['focusCycler']=new _0x19c5c8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x24380e=>_0x24380e['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 _0x454490=new is(this['locale']);return _0x454490['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x5746b6,_0x37c58a)=>_0x37c58a?ts(_0x5746b6,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x5746b6),_0x454490;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x22f189=new es(this['locale'],this['_config']['editorConfig']);return _0x22f189['value']=this['_model']['content'],_0x22f189['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x22f189['submitLabel']=N(this['locale'],'Save'),_0x22f189['on']('submit',(_0x3fdbfd,_0x118f04)=>{this['fire']('updateComment',this['_model']['id'],_0x118f04),this['switchToDisplayMode'](),this['focus']();}),_0x22f189['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x22f189['once']('editorReady',()=>{_0x22f189['focus']();}),_0x22f189['createEditor'](),_0x22f189['delegate']('editorReady')['to'](this),_0x22f189['delegate']('editorDestroyed')['to'](this),_0x22f189;}['_setupKeyboardNavigation'](){const _0x5dfc06=this['element'];this['keystrokes']['listenTo'](_0x5dfc06);for(const _0x4cfb1c of this['focusables'])this['focusTracker']['add'](_0x4cfb1c['element']),this['keystrokes']['listenTo'](_0x4cfb1c['element']);this['focusables']['on']('change',(_0xf112ca,_0x2b4c6d)=>{for(const _0x1e6951 of _0x2b4c6d['removed'])this['focusTracker']['remove'](_0x1e6951['element']),this['keystrokes']['stopListening'](_0x1e6951['element']);for(const _0x5756b0 of _0x2b4c6d['added'])this['focusTracker']['add'](_0x5756b0['element']),this['keystrokes']['listenTo'](_0x5756b0['element']);}),this['keystrokes']['set']('enter',(_0x870576,_0x1a7d32)=>{_0x5dfc06===_0x870576['target']&&(this['focusCycler']['focusFirst'](),_0x1a7d32());}),this['keystrokes']['set']('esc',(_0x318da0,_0x5491bc)=>{_0x5dfc06!==_0x318da0['target']&&(this['focus'](),_0x5491bc());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x2c0648,_0x5cbce3,_0x2331c8){super(_0x2c0648,_0x5cbce3,_0x2331c8),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x2c0648,'Reply...')),this['bind']('authoredAt')['to'](_0x5cbce3),this['bind']('resolvedAt')['to'](_0x5cbce3),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 _0x38294c(_0x2c0648,_0x5cbce3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x5cbce3,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x347834=this['bindTemplate'],_0x9a970c=[{'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':_0x347834['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x347834['to']('authoredAt',_0x3545d4=>this['_config']['formatDateTime'](_0x3545d4))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x347834['if']('isEditMode','ck-comment__actions--hidden'),_0x347834['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']&&_0x9a970c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x347834['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x347834['if']('isEditMode','ck-comment--edit'),_0x347834['if']('isSystemComment','ck-comment--info'),_0x347834['to']('actionIndicator',_0x394ced=>_0x394ced?'ck-comment--'+_0x394ced:'')],'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':_0x9a970c}]}]};}['_createEditButton'](){const _0x59a729=new _0x503639(this['locale']);return _0x59a729['label']=N(this['locale'],'Edit'),_0x59a729['icon']=_0x34e1c9,_0x59a729['withText']=!0x0,_0x59a729['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x59a729['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x423c98=>!_0x423c98),_0x59a729['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x59a729['on']('execute',()=>this['switchToEditMode']()),_0x59a729;}['_createRemoveButton'](){const _0xcbd632=new _0x503639(this['locale']);return _0xcbd632['label']=N(this['locale'],'Remove'),_0xcbd632['icon']=_0x5eeb8f,_0xcbd632['withText']=!0x0,_0xcbd632['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xcbd632['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x22edae=>!_0x22edae),_0xcbd632['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xcbd632['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xcbd632;}['_createDropdown'](){const _0x51381b=_0x552229(this['locale'],_0x44e940),_0x535ac5=_0x51381b['panelView']['children'],_0x2facde=new _0x4289d3(this['locale']),_0x106179=_0x51381b['bindTemplate'];_0x238596(_0x51381b,()=>this['items']['find'](_0x2a8c88=>_0x2a8c88['isVisible'])),_0x51381b['extendTemplate']({'attributes':{'class':[_0x106179['if']('isVisible','ck-hidden',_0xf5766=>!_0xf5766)]}});const _0x5e6875=(_0x301328,_0x51dd19=-0x1)=>{const _0x276532=new _0x489e41(this['locale']);_0x276532['children']['add'](_0x301328);const _0x43f47d=_0x51dd19>-0x1?_0x51dd19:_0x2facde['items']['length'];_0x2facde['items']['add'](_0x276532,_0x43f47d);const _0x324b82=Array['from'](this['items']);_0x51381b['unbind']('isEnabled','isVisible'),_0x51381b['bind']('isEnabled')['toMany'](_0x324b82,'isEnabled',(..._0x4aecc4)=>_0x4aecc4['some'](_0x15f878=>_0x15f878)),_0x51381b['bind']('isVisible')['toMany'](_0x324b82,'isVisible',(..._0x201cbe)=>_0x201cbe['some'](_0x110008=>_0x110008));};_0x51381b['panelPosition']='sw',_0x51381b['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x13e749});for(const _0x2a6475 of this['items'])_0x5e6875(_0x2a6475);return _0x535ac5['add'](_0x2facde),_0x51381b['listenTo'](this['items'],'add',(_0x242639,_0x3223b5,_0x1ffe0a)=>{_0x5e6875(_0x3223b5,_0x1ffe0a);}),_0x51381b['listenTo'](this['items'],'remove',(_0x377262,_0x185c5d,_0x5102cb)=>{_0x2facde['items']['remove'](_0x5102cb);}),_0x51381b;}['_attachActions'](_0x2e0ef9,_0x4e29b7){const _0x1ba3a5=_0x2e0ef9&&_0x2e0ef9['element'];_0x1ba3a5&&(this['listenTo'](_0x1ba3a5,'mouseenter',()=>this['actionIndicator']=_0x4e29b7),this['listenTo'](_0x1ba3a5,'focus',()=>this['actionIndicator']=_0x4e29b7),this['listenTo'](_0x1ba3a5,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x1ba3a5,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x184b62=super['_createCommentInputView']();return _0x184b62['bind']('placeholder')['to'](this),_0x184b62;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x3f81c0){const _0x2f072c=Dt(_0x3f81c0,0x1e),_0x230dee=new MutationObserver(_0xe4a26c=>{for(const _0x59d3e4 of _0xe4a26c)('attributes'==_0x59d3e4['type']&&'class'==_0x59d3e4['attributeName']||'childList'==_0x59d3e4['type']||'characterData'==_0x59d3e4['type'])&&_0x2f072c();});return{'attach'(_0x236d18){_0x230dee['observe'](_0x236d18,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x230dee['disconnect'](),_0x2f072c['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x2350dc,_0x2c237a){super(_0x2350dc),this['id']=_0x1ce077(),this['focusTracker']=new _0x67b3fd(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x20f56c,_0x455a59)=>this['fire']('Esc',_0x455a59)),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'](_0x2c237a),this['mainView']=_0x2c237a;const _0xbafb7c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0xbafb7c['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 _0x25a8a5=this['element']['clientHeight'];_0x25a8a5&&(this['height']=_0x25a8a5);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x5df269(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2351a5,target:_0x528998,type:_0x4de8fe,isVisible:_0x56a0c1=!0x0}){super(),this['view']=_0x2351a5,this['view']['element']||this['view']['render'](),this['_type']=_0x4de8fe,this['_target']=_0x528998,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x842883([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x318649,_0x591835)=>{this['view']['focusTracker']['add'](_0x591835);}),this['focusableElements']['on']('remove',(_0x180045,_0x3281e7)=>{this['view']['focusTracker']['remove'](_0x3281e7);}),this['set']('isVisible',_0x56a0c1);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3348eb=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x3348eb),_0x3348eb;}get['targetRect'](){const _0x27c902=this['target'];if(null===_0x27c902)return null;if(_0x27c902 instanceof _0x221bff)return _0x27c902;const _0x126ed2=_0x27c902['filter'](_0x485986=>function(_0x5c93a6){const _0x247f4=_0x5c93a6['offsetParent'];if(_0x247f4)return!0x0;const _0xdd38bf=_0x5c93a6['getClientRects']()['item'](0x0);return!!_0xdd38bf;}(_0x485986));return 0x0===_0x126ed2['length']?null:new _0x221bff(_0x126ed2[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x1af421){this['view']['isActive']=_0x1af421,this['view']['mainView']['isActive']=_0x1af421;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x316889){if(!(null===_0x316889||_0x316889 instanceof _0x221bff||Array['isArray'](_0x316889)&&_0x316889['every'](_0xb57c1a=>fi(_0xb57c1a))))throw new _0x552662('annotation-invalid-target',null,{'target':_0x316889});}['_getNormalizedTarget'](){const _0x356b5d='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x356b5d)?[_0x356b5d]:_0x356b5d;}}function fi(_0x537c8a){return null!==_0x537c8a&&'object'==typeof _0x537c8a&&'nodeType'in _0x537c8a&&0x1===_0x537c8a['nodeType'];}class S extends _0x842883{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x5ebffe=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x67b3fd(),this['_focusTracker']['on']('change:isFocused',(_0x228622,_0x48af20,_0x57c2fa)=>{_0x57c2fa||this['fire']('blur');});for(const _0x2d034e of _0x5ebffe)this['add'](_0x2d034e);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x313039){if(this['has'](_0x313039))throw new _0x552662('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x313039['innerView'],_0x313039),this['_viewToAnnotation']['set'](_0x313039['view'],_0x313039);for(const _0x34f474 of _0x313039['focusableElements'])this['_focusTracker']['add'](_0x34f474);this['listenTo'](_0x313039['focusableElements'],'add',(_0x541d0f,_0x4eaa2b)=>{this['_focusTracker']['add'](_0x4eaa2b);}),this['listenTo'](_0x313039['focusableElements'],'remove',(_0x180c7e,_0x209693)=>{this['_focusTracker']['remove'](_0x209693);}),this['listenTo'](_0x313039['view']['focusTracker'],'change:isFocused',(_0x1cca38,_0x50bec6,_0x5e7269)=>{_0x5e7269&&this['fire']('focus',_0x313039);}),_0x313039['updateTargetRect']();const _0x4e2831=this['_getOrderInContent'](_0x313039['view']['targetRect']);return super['add'](_0x313039,_0x4e2831);}['remove'](_0x363418){if(!this['has'](_0x363418))throw new _0x552662('annotationcollection-not-existing-item',null);this['stopListening'](_0x363418['view']['focusTracker']),this['stopListening'](_0x363418['focusableElements']);for(const _0xcc7b88 of _0x363418['focusableElements'])this['_focusTracker']['remove'](_0xcc7b88);return this['_viewToAnnotation']['delete'](_0x363418['view']),this['_innerViewToAnnotation']['delete'](_0x363418['innerView']),super['remove'](_0x363418);}['getByInnerView'](_0x593a14){return this['_innerViewToAnnotation']['get'](_0x593a14);}['getByView'](_0xde776f){return this['_viewToAnnotation']['get'](_0xde776f);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x371884 of this)_0x371884['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3c45b1=Array['from'](this)['sort']((_0x3b00cf,_0x560be0)=>w(_0x3b00cf['view']['targetRect'],_0x560be0['view']['targetRect']));for(let _0x28d85e=_0x3c45b1['length']-0x1;_0x28d85e>0x0;_0x28d85e--){const _0x2dc4df=_0x3c45b1[_0x28d85e];_0x28d85e!==this['getIndex'](_0x2dc4df)&&(this['remove'](_0x2dc4df),this['add'](_0x2dc4df));}}['_getOrderInContent'](_0x28b776){let _0x5687c7=0x0;if(!_0x28b776)return this['length'];for(const _0x353821 of this){const _0x1e4dd5=_0x353821['view']['targetRect'];if(_0x1e4dd5){if(w(_0x28b776,_0x1e4dd5)<0x0)return _0x5687c7;_0x5687c7++;}}return _0x5687c7;}}function v({source:_0x232d48,target:_0x235588,filter:_0x20b293}){for(const _0x54aaa4 of _0x232d48)_0x20b293(_0x54aaa4)&&_0x235588['add'](_0x54aaa4);_0x235588['listenTo'](_0x232d48,'add',(_0x167313,_0x2183e3)=>{_0x20b293(_0x2183e3)&&_0x235588['add'](_0x2183e3);}),_0x235588['listenTo'](_0x232d48,'remove',(_0x5e389d,_0x46bb12)=>{_0x235588['has'](_0x46bb12)&&_0x235588['remove'](_0x46bb12);});}function w(_0x2950f4,_0x5949dd){if(null===_0x2950f4&&null===_0x5949dd)return 0x0;if(null===_0x2950f4)return-0x1;if(null===_0x5949dd)return 0x1;const _0x1016a4=_0x2950f4['top']-_0x5949dd['top'];return 0x0==_0x1016a4?_0x2950f4['left']-_0x5949dd['left']:_0x1016a4;}class y extends _0x43ff48{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb075f){if(super(_0xeb075f),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0xeb075f instanceof _0x3db27d){const _0xd87e3b=_0xeb075f['locale'];_0xeb075f['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0xd87e3b,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0xd87e3b,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0xd87e3b,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0xd87e3b,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0xd87e3b,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0xd87e3b,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0xd87e3b,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3405b8){this['collection']['add'](_0x3405b8);}['remove'](_0x4fe9a8){this['collection']['remove'](_0x4fe9a8),_0x4fe9a8['destroy']();}['refreshVisibility'](){for(const _0x236af6 of this['collection'])_0x236af6['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2be777){return this['collection']['getByInnerView'](_0x2be777);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1e5ca8 of this['collection'])_0x1e5ca8['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x14fc3f){this['fire']('_activateAnnotation',_0x14fc3f);}['createAnnotation'](_0x572d8c){return new T(_0x572d8c);}['createAnnotationView'](_0x174455,_0x448b75){return new E(_0x174455,_0x448b75);}['_addActiveAnnotation'](_0x7e00fe){const _0x4a9150=new Set(this['activeAnnotations']);_0x4a9150['add'](_0x7e00fe),this['activeAnnotations']=_0x4a9150;}['_removeActiveAnnotation'](_0xcf5a60){const _0x5352d6=new Set(this['activeAnnotations']);_0x5352d6['delete'](_0xcf5a60),this['activeAnnotations']=_0x5352d6;}['_bindAnnotationsToVisibleAnnotations'](){const _0x39d6ad=this['collection'],_0x2c847e=this['_visibleAnnotations'];function _0x11f74b(_0x100a38){const _0x418f42=_0x100a38['source'];_0x418f42['isVisible']&&!_0x2c847e['has'](_0x418f42)?_0x2c847e['add'](_0x418f42):!_0x418f42['isVisible']&&_0x2c847e['has'](_0x418f42)&&_0x2c847e['remove'](_0x418f42),_0x418f42['view']['focusTracker']['remove'](_0x418f42['view']['element']),_0x418f42['view']['focusTracker']['add'](_0x418f42['view']['element']);}this['listenTo'](_0x39d6ad,'add',(_0x43f8b9,_0x51cd53)=>{_0x51cd53['isVisible']&&_0x2c847e['add'](_0x51cd53),this['listenTo'](_0x51cd53,'change:isVisible',_0x11f74b);}),this['listenTo'](_0x39d6ad,'remove',(_0x2f1902,_0x4d8f32)=>{_0x2c847e['has'](_0x4d8f32)&&_0x2c847e['remove'](_0x4d8f32),this['stopListening'](_0x4d8f32,'change:isVisible',_0x11f74b);});}['_setupEnterAnnotationKeystroke'](){const _0x4737e1=_0x315a18=>{_0x315a18['on']('ready',()=>{_0x315a18['keystrokes']['set'](_0x894944,(_0x4863a7,_0x271da0)=>{const _0x12aba7=_0x32a71d(this['activeAnnotations']['values']());_0x12aba7&&(_0x12aba7['view']['focus'](),_0x271da0());});});};this['context']instanceof _0x3db27d?_0x4737e1(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x13de0d,_0x3994b9)=>{_0x4737e1(_0x3994b9);});}['_setupEscapeAnnotationHandling'](){const _0x36a60b=_0x32b98b=>{const _0x325a24=_0x32b98b['source'],_0xf3670f=[];let _0x3e5a65;if(Array['isArray'](_0x325a24['target'])){_0x3e5a65=_0x325a24['target'][0x0],this['context']instanceof _0x3db27d?_0xf3670f['push'](this['context']):this['context']['editors']&&_0xf3670f['push'](...this['context']['editors']);for(const _0x3568ce of _0xf3670f)for(const _0x491324 of _0x3568ce['editing']['view']['domRoots']['values']())if(_0x491324['contains'](_0x3e5a65))return void _0x3568ce['editing']['view']['focus']();_0x3e5a65['focus']();}};this['listenTo'](this['collection'],'add',(_0x5bf4f9,_0x105fee)=>{this['listenTo'](_0x105fee,'escape',_0x36a60b,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x44ffaf,_0x6a0bd5)=>{this['stopListening'](_0x6a0bd5,'escape',_0x36a60b);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x43ff48{['_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(_0x1ee196){super(_0x1ee196),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x23ba06=this['context']['config'];_0x23ba06['define']('comments.maxCommentsWhenCollapsed',0x2),_0x23ba06['define']('comments.maxThreadTotalWeight',0x1f4),_0x23ba06['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x23ba06['define']('comments.CommentThreadView',gt),_0x23ba06['define']('comments.CommentView',Tt),_0x23ba06['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x202813=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x2f400b,_0x3e5864)=>this['_addCommentThread'](_0x3e5864)),this['on']('submitCommentThread',(_0x4ebbd2,_0x561f64)=>this['_submitCommentThread'](_0x561f64)),this['on']('resolveCommentThread',(_0xbdda93,_0x307b9f)=>this['_resolveCommentThread'](_0x307b9f)),this['on']('resolveCommentThread',(_0x46be1f,_0x268832)=>this['_updateActiveAnnotation'](_0x268832),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x48b631,_0x59ca82)=>this['_reopenCommentThread'](_0x59ca82)),this['on']('reopenCommentThread',(_0x5739aa,_0x446c98)=>this['_updateActiveAnnotation'](_0x446c98),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x353d16,_0x135657)=>this['_removeCommentThread'](_0x135657)),this['on']('updateCommentThread',(_0x1c023f,_0x3167f6)=>this['_updateCommentThread'](_0x3167f6)),this['on']('updateCommentThread',(_0xa397e3,_0x4dde91)=>this['_updateActiveAnnotation'](_0x4dde91),{'priority':'lowest'}),this['on']('addComment',(_0x1f8c08,_0x90d25a)=>this['_addComment'](_0x90d25a)),this['on']('updateComment',(_0xa7c4e1,_0x313ddc)=>this['_updateComment'](_0x313ddc)),this['on']('removeComment',(_0x4b656d,_0x25e943)=>this['_removeComment'](_0x25e943)),this['on']('addComment',(_0x1b8b02,{threadId:_0x19aa64,isFromAdapter:_0x5cafc})=>{if(_0x5cafc)return;const _0x23bf99=this['getCommentThread'](_0x19aa64),_0x1fb7e7=_0x23bf99&&this['_threadToController']['get'](_0x23bf99);_0x1fb7e7&&_0x1fb7e7['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x202813,'change:activeAnnotations',(_0x2faea1,_0x4c0a3e,_0x20b615)=>{const _0xe699f1=Array['from'](_0x20b615)['map'](_0x24dcf6=>this['_viewToController']['get'](_0x24dcf6['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xe699f1?_0xe699f1['model']:null;});}set['adapter'](_0x53686b){if(this['_adapter'])throw new _0x552662('commentsrepository-adapter-already-set');this['_adapter']=_0x53686b;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5b2e7e=_t,threadId:_0xaf6907=_0x1ce077(),comments:_0x2fefd7=[],unlinkedAt:_0x5e9312=null,resolvedAt:_0x299b6b=null,resolvedBy:_0x5e4c8b=null,target:_0x527f01=null,context:_0x3a68c8=null,attributes:_0x43e4e5={},isResolvable:_0x2becb0=!0x0,isSubmitted:_0x142150=!0x1,isFromAdapter:_0x1c340c=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x5b2e7e),{'channelId':_0x5b2e7e,'threadId':_0xaf6907,'comments':_0x2fefd7,'unlinkedAt':_0x5e9312,'resolvedAt':_0x299b6b,'resolvedBy':_0x5e4c8b,'target':_0x527f01,'context':_0x3a68c8,'attributes':_0x43e4e5,'isFromAdapter':_0x1c340c,'isResolvable':_0x2becb0,'isSubmitted':_0x142150}),this['getCommentThread'](_0xaf6907);}['openNewCommentThread']({channelId:_0x5995da=_t,threadId:_0x2db3d8=_0x1ce077(),target:_0xdf9a77,context:_0x3a441e=null,isResolvable:_0x237c2c=!0x0}){if(this['_readOnlyChannels']['has'](_0x5995da)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0xdf9a77)throw new _0x552662('commentsrepository-missing-target');const _0x21008f=this['addCommentThread']({'channelId':_0x5995da,'threadId':_0x2db3d8,'target':_0xdf9a77,'context':_0x3a441e,'isResolvable':_0x237c2c});if(!_0x21008f)return null;const _0x3f69c7=this['_threadToController']['get'](_0x21008f),_0x33134d=_0x3f69c7['view']['commentThreadInputView']['commentInputView'],_0x345ccf=this['context']['plugins']['get'](y),_0x5e5692=_0x345ccf['getByInnerView'](_0x3f69c7['view']);return _0x345ccf['activate'](_0x5e5692),_0x33134d['once']('editorReady',()=>_0x33134d['focus']()),_0x21008f;}['hasCommentThread'](_0x4c3d30){if('string'!=typeof _0x4c3d30)throw new _0x552662('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4c3d30);}['updateCommentThread']({channelId:_0x165189=_t,threadId:_0x5186ae,context:_0x627c50,unlinkedAt:_0x2cc842,attributes:_0x3876ab,isFromAdapter:_0x2a91d2=!0x1}){return this['fire'](Nt('updateCommentThread',_0x165189),{'channelId':_0x165189,'threadId':_0x5186ae,'context':_0x627c50,'unlinkedAt':_0x2cc842,'attributes':_0x3876ab,'isFromAdapter':_0x2a91d2}),this['getCommentThread'](_0x5186ae);}['getCommentThread'](_0x2b8244){if('string'!=typeof _0x2b8244)throw new _0x552662('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2b8244);}['fetchCommentThread']({channelId:_0x8f9ebc,threadId:_0x250f61}={}){const _0x5bd4e7=this['getCommentThread'](_0x250f61);if(_0x5bd4e7)return Promise['resolve'](_0x5bd4e7);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x552662('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x8f9ebc,'threadId':_0x250f61})['then'](_0x4b0334=>this['hasCommentThread'](_0x250f61)?this['getCommentThread'](_0x250f61):_0x4b0334?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x8f9ebc},_0x4b0334)):void 0x0)['catch'](_0x99102e=>{throw console['error'](_0x99102e),new _0x552662('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1e8c64,skipNotAttached:_0x236a74=!0x1,skipEmpty:_0x536d78=!0x1,toJSON:_0xc438b2=!0x1}={}){const _0x2114c0=[];for(const _0x47974b of this['_threads']['values']())_0x1e8c64&&_0x47974b['channelId']!==_0x1e8c64||_0x236a74&&!_0x47974b['isAttached']||_0x536d78&&0x0===_0x47974b['length']||_0x2114c0['push'](_0x47974b);return _0xc438b2?_0x2114c0['map'](_0x1cb853=>_0x1cb853['toJSON']()):_0x2114c0;}['getAnnotationForCommentThread'](_0x22f524){const _0x108d85=this['_threadToController']['get'](_0x22f524);if(!_0x108d85)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x108d85['view'])||null;}['getCommentThreadForAnnotation'](_0x4ed316){const _0x44d007=this['_viewToController']['get'](_0x4ed316['innerView']);return _0x44d007?_0x44d007['model']:null;}['setActiveCommentThread'](_0x1c8046){const _0xc715c9=this['context']['plugins']['get'](y);if(!_0x1c8046)return void(this['activeCommentThread']&&_0xc715c9['deactivateAll']());const _0x5e6350=this['getCommentThread'](_0x1c8046);if(!_0x5e6350)throw new _0x552662('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x1c8046});if(!this['_threadToController']['has'](_0x5e6350))throw new _0x552662('commentsrepository-active-not-attached',null,{'threadId':_0x1c8046});const _0x53a72e=_0xc715c9['getByInnerView'](this['_threadToController']['get'](_0x5e6350)['view']);_0xc715c9['activate'](_0x53a72e);}['switchReadOnly'](_0x29fa90,_0x6d7b95){_0x29fa90?this['_readOnlyChannels']['add'](_0x6d7b95):this['_readOnlyChannels']['delete'](_0x6d7b95),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x386d92){return this['_readOnlyChannels']['has'](_0x386d92)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x51a1f6,_0x426ef5){return new vt(_0x51a1f6,_0x426ef5);}['setPermissions'](_0x528a3f,_0x29dbcc=_t){this['_permissions']['set'](_0x29dbcc,_0x528a3f),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x50fcfa=_t){return this['_permissions']['has'](_0x50fcfa)?this['_permissions']['get'](_0x50fcfa):bt;}['_addCommentThread']({channelId:_0x17be1b,threadId:_0x46b6c5,comments:_0x5b5c70,unlinkedAt:_0x3d3db8,resolvedAt:_0x2734bd,resolvedBy:_0x18beac,target:_0x3f88a4,context:_0x549073,attributes:_0x458f80,isFromAdapter:_0x36947f,isResolvable:_0x277cfc,isSubmitted:_0x2a1ca3}){if('string'!=typeof _0x46b6c5)throw new _0x552662('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x46b6c5});if(this['hasCommentThread'](_0x46b6c5))throw new _0x552662('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x46b6c5});const _0x42933e=new pi(this,{'channelId':_0x17be1b,'id':_0x46b6c5,'context':_0x549073,'attributes':_0x458f80,'unlinkedAt':_0x3d3db8,'resolvedAt':_0x2734bd,'resolvedBy':_0x18beac?this['context']['plugins']['get'](it)['getUser'](_0x18beac):null,'isResolvable':_0x277cfc,'isSubmitted':_0x2a1ca3||_0x36947f});this['_threads']['set'](_0x46b6c5,_0x42933e);for(const _0x33b8ee of _0x5b5c70)_0x42933e['_add'](this['_createNewComment']({'threadId':_0x46b6c5,..._0x33b8ee}));return _0x3f88a4&&_0x42933e['attachTo'](_0x3f88a4),_0x36947f||!_0x42933e['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x17be1b,'threadId':_0x46b6c5});}['_submitCommentThread']({channelId:_0x12aaff,threadId:_0x4d1534}){if(!this['hasCommentThread'](_0x4d1534))throw new _0x552662('commentsrepository-missing-comment-thread',this);const _0x2db813=this['getCommentThread'](_0x4d1534);if(_0x2db813['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x59446b,comments:_0x39d317,resolvedAt:_0x27b71f,resolvedBy:_0x55e6f6,context:_0x11d414,attributes:_0x3993fc}=_0x2db813,_0x4c1f25=this['context']['plugins']['get']('PendingActions'),_0xc9c5ef=_0x4c1f25['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x12aaff,'threadId':_0x59446b,'comments':_0x39d317['map'](_0xaed718=>_0xaed718['toJSON']()),'resolvedAt':_0x27b71f,'resolvedBy':_0x55e6f6?_0x55e6f6['id']:_0x55e6f6,'context':_0x11d414,'attributes':_0x3993fc})['then'](({comments:_0x318edf})=>{_0x4c1f25['remove'](_0xc9c5ef);for(const _0x37a8e8 of _0x318edf)this['_updateComment']({'channelId':_0x12aaff,'threadId':_0x4d1534,'commentId':_0x37a8e8['commentId'],'createdAt':_0x37a8e8['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x442227=>{throw console['error'](_0x442227),new _0x552662('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x27a42f,target:_0xa7dcd2}){const _0x40267b=this['getCommentThread'](_0x27a42f);if(!_0x40267b)throw new _0x552662('commentsrepository-attach-missing-comment-thread',this);const _0x567082=this['context']['plugins']['get']('PendingActions'),_0x505c48=this['context']['plugins']['get'](y),_0x49f85c=this['_createCommentThreadView'](_0x40267b),_0x552610=new vt(_0x40267b,_0x49f85c);let _0x53f8d0=null;_0x49f85c['on']('change:isDirty',(_0x3d2696,_0x563a67,_0x46fd81)=>{_0x46fd81?_0x53f8d0=_0x567082['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x53f8d0&&(_0x567082['remove'](_0x53f8d0),_0x53f8d0=null);}),this['_threadToController']['set'](_0x40267b,_0x552610),this['_viewToController']['set'](_0x49f85c,_0x552610);const _0x1792b0=new E(this['context']['locale'],_0x49f85c);_0x1792b0['bind']('length')['to'](_0x49f85c),_0x1792b0['bind']('isDirty')['to'](_0x49f85c,'isDirty',_0x49f85c,'length',(_0xd7c40,_0x25c4e8)=>_0xd7c40||!_0x25c4e8),_0x1792b0['bind']('isActive')['to'](_0x49f85c),_0x1792b0['type']='comment';const _0x43897a=new T({'view':_0x1792b0,'target':_0xa7dcd2,'type':'comment','isVisible':!_0x40267b['archivedAt']&&!!('function'==typeof _0xa7dcd2?_0xa7dcd2():_0xa7dcd2)});return _0x49f85c['on']('escape',()=>{_0x43897a['fire']('escape');}),this['_bindAnnotationToEditors'](_0x49f85c,_0x43897a),_0x505c48['add'](_0x43897a),_0x43897a;}['_bindAnnotationToEditors'](_0xb928ea,_0x4c829b){this['listenTo'](_0xb928ea,'editorReady',(_0x20edda,_0x4001f4)=>{const _0x5a619a=_0x4001f4['ui']['view']['body']['bodyCollectionContainer'];_0x4c829b['focusableElements']['add'](_0x5a619a),this['context']instanceof _0x3db27d&&this['context']['ui']['focusTracker']['add'](_0x5a619a);},{'priority':'highest'}),this['listenTo'](_0xb928ea,'editorDestroyed',(_0x174579,_0x4583eb)=>{const _0x2ad4c7=_0x4583eb['ui']['view']['body']['bodyCollectionContainer'];_0x4c829b['focusableElements']['has'](_0x2ad4c7)&&_0x4c829b['focusableElements']['remove'](_0x2ad4c7),this['context']instanceof _0x3db27d&&this['context']['ui']['focusTracker']['remove'](_0x2ad4c7);});}['_unbindEditors'](_0x9aa023){this['stopListening'](_0x9aa023,'editorReady'),this['stopListening'](_0x9aa023,'editorDestroyed');}['_createCommentThreadView'](_0x6330e2){const _0x585ebd=this['context']['plugins']['get'](it),{config:_0x3f3834,locale:_0x1360ac}=this['context'],_0x238b0f=pt(_0x3f3834['get']('locale'),_0x1360ac);return new(0x0,(_0x3f3834['get']('comments'))['CommentThreadView'])(_0x1360ac,_0x6330e2,_0x585ebd['me'],{'editorConfig':{..._0x3f3834['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x3f3834['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x3f3834['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3f3834['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3f3834['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x238b0f,'CommentView':_0x3f3834['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x2a80df,channelId:_0xd8c0b4,resolvedAt:_0x3f0267,resolvedBy:_0x57e6c4,isFromAdapter:_0xbd7f52}){if(!this['hasCommentThread'](_0x2a80df))throw new _0x552662('commentsrepository-missing-comment-thread',null,{'threadId':_0x2a80df});const _0x276f4d=this['getCommentThread'](_0x2a80df);if(_0x276f4d['isResolved'])throw new _0x552662('commentsrepository-resolved-comment-thread',null,{'threadId':_0x2a80df});const _0x2a19a4=this['context']['plugins']['get'](it);if(_0x276f4d['resolvedBy']=_0x2a19a4['getUser'](_0x57e6c4),_0x276f4d['resolvedAt']=_0x3f0267,_0xbd7f52||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x3271ef=this['context']['plugins']['get']('PendingActions'),_0x2dc723=_0x3271ef['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0xd8c0b4,'threadId':_0x2a80df})['then'](({resolvedAt:_0x421c41,resolvedBy:_0x429bad})=>{_0x3271ef['remove'](_0x2dc723),_0x276f4d['resolvedBy']['id']!==_0x429bad&&(_0x276f4d['resolvedBy']=_0x2a19a4['getUser'](_0x429bad)),_0x276f4d['resolvedAt']=_0x421c41;})['catch'](_0x1f2b99=>{throw console['error'](_0x1f2b99),new _0x552662('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x5255d4,channelId:_0x5f3e15,isFromAdapter:_0xf6065}){if(!this['hasCommentThread'](_0x5255d4))throw new _0x552662('commentsrepository-missing-comment-thread',null,{'threadId':_0x5255d4});const _0x152c0e=this['getCommentThread'](_0x5255d4);if(!_0x152c0e['isResolved'])throw new _0x552662('commentsrepository-reopen-comment-thread',null,{'threadId':_0x5255d4});if(_0x152c0e['resolvedBy']=null,_0x152c0e['resolvedAt']=null,_0xf6065||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2a2640=this['context']['plugins']['get']('PendingActions'),_0x5cc6ff=_0x2a2640['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5f3e15,'threadId':_0x5255d4})['then'](()=>_0x2a2640['remove'](_0x5cc6ff))['catch'](_0x599ae6=>{throw console['error'](_0x599ae6),new _0x552662('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x58c5b3,isFromAdapter:_0x272db5}){const _0x50218d=this['getCommentThread'](_0x58c5b3);if(!_0x50218d)throw new _0x552662('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x58c5b3),this['_threads']['delete'](_0x58c5b3),!_0x50218d['isSubmitted']||_0x272db5||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x258c80=this['context']['plugins']['get']('PendingActions'),{channelId:_0x33ad9e}=_0x50218d,_0x42f1d7=_0x258c80['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x33ad9e,'threadId':_0x58c5b3})['then'](()=>_0x258c80['remove'](_0x42f1d7))['catch'](_0x2e58dc=>{throw console['error'](_0x2e58dc),new _0x552662('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x5e088c,unlinkedAt:_0x372ffa,context:_0x316548,attributes:_0x32619a,isFromAdapter:_0x3406ef}){if('string'!=typeof _0x5e088c)throw new _0x552662('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5e088c});if(!this['hasCommentThread'](_0x5e088c))throw new _0x552662('commentsrepository-missing-comment-thread',null,{'threadId':_0x5e088c});const _0x3f9d3f=this['getCommentThread'](_0x5e088c);let _0x589377=!0x1;if(void 0x0!==_0x316548&&_0x3f9d3f['context']!==_0x316548&&(_0x3f9d3f['context']=_0x316548,_0x589377=!0x0),void 0x0!==_0x372ffa&&_0x3f9d3f['unlinkedAt']!==_0x372ffa&&(_0x3f9d3f['unlinkedAt']=_0x372ffa,_0x589377=!0x0),_0x32619a&&!At(_0x32619a,_0x3f9d3f['attributes'])&&(_0x3f9d3f['attributes']=_0x32619a,_0x589377=!0x0),!_0x589377)return Promise['resolve']();if(!_0x3f9d3f['isSubmitted']||_0x3406ef||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x858a49=this['context']['plugins']['get']('PendingActions'),{channelId:_0x23f011}=_0x3f9d3f,_0x50d315=_0x858a49['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x23f011,'threadId':_0x5e088c,'context':_0x316548,'unlinkedAt':_0x372ffa,'attributes':_0x32619a})['then'](()=>_0x858a49['remove'](_0x50d315))['catch'](_0x21a495=>{throw console['error'](_0x21a495),new _0x552662('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x2bc693){const _0x4b1284=this['context']['plugins']['get'](y),_0x574c58=this['getCommentThread'](_0x2bc693);if(_0x574c58['_isAttached']=!0x1,this['_threadToController']['has'](_0x574c58)){const _0x11b032=this['_threadToController']['get'](_0x574c58),_0x21d068=_0x11b032['view'],_0x504dd1=_0x4b1284['getByInnerView'](_0x21d068);this['_threadToController']['delete'](_0x574c58),this['_viewToController']['delete'](_0x21d068),_0x504dd1&&_0x4b1284['remove'](_0x504dd1),_0x11b032['destroy'](),_0x21d068['destroy']()['then'](()=>{this['_unbindEditors'](_0x21d068);});}}['_updateActiveAnnotation']({threadId:_0x53da21,resolvedAt:_0x263f86,unlinkedAt:_0x1aae3d}){const _0x454f16=!!_0x263f86,_0x5663a1=this['context']['plugins']['get'](y),_0x116062=this['getCommentThread'](_0x53da21);if(this['_threadToController']['has'](_0x116062)){const _0x27da2b=this['_threadToController']['get'](_0x116062)['view'],_0x2895e5=_0x5663a1['getByInnerView'](_0x27da2b);_0x2895e5&&(_0x454f16&&_0x5663a1['_removeActiveAnnotation'](_0x2895e5),_0x1aae3d?_0x2895e5['isVisible']=!0x1:_0x2895e5['refreshVisibility']());}}['_getExternalAuthor'](_0x2b46c9){const _0x53e895=this['context']['plugins']['get'](it),_0x9ece39=It('external:'+_0x2b46c9),_0x3e54ac=_0x53e895['getUser'](_0x9ece39);return _0x3e54ac||_0x53e895['addUser']({'id':_0x9ece39,'name':_0x2b46c9});}['_createNewComment']({threadId:_0x1cff09,commentId:_0x564339=_0x1ce077(),content:_0x55d7e7,authorId:_0x48a533,createdAt:_0x59201a,attributes:_0x186207}){if('string'!=typeof _0x564339)throw new _0x552662('commentsrepository-invalid-commentid');if('string'!=typeof _0x48a533)throw new _0x552662('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x55d7e7||!_0x55d7e7['trim']())throw new _0x552662('commentsrepository-invalid-comment-content');const _0x18c1c8=this['context']['plugins']['get'](it)['getUser'](_0x48a533);if(!_0x18c1c8)throw new _0x552662('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x48a533});let _0x5a654d=null,_0x48c242=_0x59201a;return _0x186207?.['@external']&&(_0x5a654d=this['_getExternalAuthor'](_0x186207['@external']['authorName']),_0x48c242=new Date(_0x186207['@external']['createdAt'])),new wi(this,{'threadId':_0x1cff09,'id':_0x564339,'author':_0x5a654d||_0x18c1c8,'creator':_0x18c1c8,'content':_0x55d7e7,'createdAt':_0x59201a,'authoredAt':_0x48c242,'attributes':_0x186207});}['_addComment'](_0x13aadf){let {threadId:_0x2f9307,content:_0x3c768b,attributes:_0x2ae798,isFromAdapter:_0xc4120c}=_0x13aadf;const _0x30f314=this['getCommentThread'](_0x13aadf['threadId']);if(!_0x30f314)throw new _0x552662('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x4904f4=this['_createNewComment'](_0x13aadf),{id:_0x1f0751}=_0x4904f4;if(_0x30f314['_add'](_0x4904f4),_0xc4120c||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x30f314['isSubmitted'])return Promise['resolve']();const _0x53e63e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4dea9d}=_0x30f314,_0x2248a5=_0x53e63e['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x2ae798||(_0x2ae798={}),this['adapter']['addComment']({'channelId':_0x4dea9d,'threadId':_0x2f9307,'commentId':_0x1f0751,'content':_0x3c768b,'attributes':_0x2ae798})['then'](_0x31fbf6=>{_0x53e63e['remove'](_0x2248a5),_0x31fbf6&&this['_updateComment']({'channelId':_0x4dea9d,'threadId':_0x2f9307,'commentId':_0x1f0751,'createdAt':_0x31fbf6['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x360ca5=>{throw console['error'](_0x360ca5),new _0x552662('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x5e5fd7,commentId:_0x2e4a94,content:_0x3b7fa3,createdAt:_0x41b47c,attributes:_0x294489,isFromAdapter:_0x441d12}){if(void 0x0!==_0x3b7fa3&&('string'!=typeof _0x3b7fa3||!_0x3b7fa3['trim']()['length']))throw new _0x552662('commentsrepository-update-comment-invalid-content');const _0x3d7a9d=this['getCommentThread'](_0x5e5fd7),_0x5d84b1=_0x3d7a9d['getComment'](_0x2e4a94);if(!_0x5d84b1)throw new _0x552662('commentsrepository-update-missing-comment',this);let _0xf9db09=!0x1;if(_0x3b7fa3&&_0x3b7fa3!==_0x5d84b1['content']&&(_0x5d84b1['isEditable']||_0x441d12)&&(_0x5d84b1['content']=_0x3b7fa3,_0xf9db09=!0x0),_0x41b47c&&_0x41b47c!==_0x5d84b1['createdAt']&&(_0x5d84b1['createdAt']=_0x41b47c,_0x5d84b1['attributes']&&_0x5d84b1['attributes']['@external']||(_0x5d84b1['authoredAt']=_0x41b47c),_0xf9db09=!0x0),_0x294489&&!At(_0x294489,_0x5d84b1['attributes'])&&(_0x5d84b1['attributes']=_0x294489,_0xf9db09=!0x0),!_0xf9db09)return Promise['resolve']();if(_0x3d7a9d['fire']('commentUpdated'),_0x441d12||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x125684=this['context']['plugins']['get']('PendingActions'),{channelId:_0xd207f7}=this['getCommentThread'](_0x5d84b1['threadId']),_0x5a9b9f=_0x125684['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0xd207f7,'threadId':_0x5e5fd7,'commentId':_0x2e4a94,'content':_0x3b7fa3,'attributes':_0x294489})['then'](()=>_0x125684['remove'](_0x5a9b9f))['catch'](_0x258d8a=>{throw console['error'](_0x258d8a),new _0x552662('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x25d00d,commentId:_0x17ab0a,isFromAdapter:_0x2ee1d2}){const _0x354f84=this['getCommentThread'](_0x25d00d),_0x329f2e=_0x354f84['getComment'](_0x17ab0a);if(!_0x329f2e)throw new _0x552662('commentsrepository-remove-missing-comment',this);if(_0x354f84['_remove'](_0x329f2e),_0x2ee1d2||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x46f081=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2d93c5}=_0x354f84,_0x4b6d50=_0x46f081['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2d93c5,'threadId':_0x25d00d,'commentId':_0x17ab0a})['then'](()=>_0x46f081['remove'](_0x4b6d50))['catch'](_0xa1c11b=>{throw console['error'](_0xa1c11b),new _0x552662('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x5df269(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x2cc89e,_0x5bc3a7){super();const _0x39a6e8=_0x5bc3a7['isResolvable'];this['channelId']=_0x5bc3a7['channelId'],this['id']=_0x5bc3a7['id'],this['comments']=new _0x842883(),this['_repository']=_0x2cc89e,this['_isAttached']=!0x1,this['_isSubmitted']=_0x5bc3a7['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x2cc89e,'_permissions',_0x2cc89e,'_readOnlyChannels',()=>_0x2cc89e['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x2cc89e,'_permissions',()=>_0x2cc89e['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x2cc89e,'_permissions',()=>{const _0x277be7=_0x2cc89e['getPermissions'](this['channelId']);return _0x277be7['write']||_0x277be7['admin'];}),this['bind']('isResolvable')['to'](_0x2cc89e,'_permissions',()=>_0x39a6e8&&_0x2cc89e['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x5bc3a7['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4450b3,_0xbb30bf)=>_0x4450b3?_0xbb30bf?_0x4450b3<_0xbb30bf?_0x4450b3:_0xbb30bf:_0x4450b3:_0xbb30bf),this['set']('unlinkedAt',_0x5bc3a7['unlinkedAt']||null),this['set']('resolvedAt',_0x5bc3a7['resolvedAt']||null),this['set']('resolvedBy',_0x5bc3a7['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x52680e=>!!_0x52680e),this['set']('attributes',_0x5bc3a7['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0xd5a43b,_0x520585)=>_0xd5a43b+_0x520585['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x108e14,id:_0x2ee77b}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x108e14),{'channelId':_0x108e14,'threadId':_0x2ee77b});}['setUnlinkedAt'](_0x58b24b){this['_update']({'unlinkedAt':_0x58b24b});}['resolve']({resolvedAt:_0x906c59=new Date(),resolvedBy:_0x4db9be='',isFromAdapter:_0x91ea22=!0x1}={}){const _0x14310d=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x2b080e,id:_0x574b0c}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x2b080e),{'channelId':_0x2b080e,'threadId':_0x574b0c,'resolvedAt':_0x906c59,'resolvedBy':_0x4db9be||_0x14310d['id'],'isFromAdapter':_0x91ea22});}['reopen']({isFromAdapter:_0xb4673d=!0x1}={}){const {channelId:_0x203e2f,id:_0x2e2049}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x203e2f),{'channelId':_0x203e2f,'threadId':_0x2e2049,'isFromAdapter':_0xb4673d});}['setContext'](_0x2ce9fc){this['context']||this['_update']({'context':_0x2ce9fc});}['setAttribute'](_0x5301f7,_0x3c202f){const _0x134c3c=wt(this['attributes']);yt(_0x134c3c,_0x5301f7,_0x3c202f),this['_update']({'attributes':_0x134c3c});}['removeAttribute'](_0x30d326){const _0x2f06d8=wt(this['attributes']);Ct(_0x2f06d8,_0x30d326),this['_update']({'attributes':_0x2f06d8});}['remove']({isFromAdapter:_0x4f53c9=!0x1}={}){const {channelId:_0x47ef41,id:_0x57cdd4}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x47ef41),{'channelId':_0x47ef41,'threadId':_0x57cdd4,'isFromAdapter':_0x4f53c9});}['attachTo'](_0xbc5a97){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0xbc5a97});}['addComment'](_0xe3b187){const {channelId:_0x123a52,id:_0x30300f}=this;this['_repository']['fire'](Nt('addComment',_0x123a52,_0x30300f),Object['assign']({'channelId':_0x123a52,'threadId':_0x30300f},_0xe3b187));}['getComment'](_0x153834){if('string'!=typeof _0x153834)throw new _0x552662('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x153834});return this['comments']['get'](_0x153834);}['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'](_0x210301=>_0x210301['toJSON']()),'attributes':this['attributes']};}['_add'](_0x275ffc){return this['listenTo'](_0x275ffc,'change:authoredAt',()=>{const _0x52a008=this['_findOptimalIndex'](_0x275ffc),_0x524a52=this['comments'];_0x52a008-0x1!=_0x524a52['getIndex'](_0x275ffc)&&_0x52a008+0x1!=_0x524a52['getIndex'](_0x275ffc)&&(this['_remove'](_0x275ffc),this['_add'](_0x275ffc));}),this['comments']['add'](_0x275ffc,this['_findOptimalIndex'](_0x275ffc));}['_update'](_0x4fad0e){const {channelId:_0x5a7003,id:_0x28f0bd}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x5a7003),{..._0x4fad0e,'channelId':_0x5a7003,'threadId':_0x28f0bd});}['_remove'](_0x46c585){return this['stopListening'](_0x46c585),_0x46c585['destroy'](),this['comments']['remove'](_0x46c585);}['_findOptimalIndex'](_0x4149a5){const _0x5abf1c=this['comments']['find'](_0x4a9297=>new Date(_0x4a9297['authoredAt'])['getTime']()>new Date(_0x4149a5['authoredAt'])['getTime']());return _0x5abf1c?this['comments']['getIndex'](_0x5abf1c):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x5df269(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x51a780,_0x4d3881){super();const _0xaa440f=_0x51a780['context']['plugins']['get'](it)['me'],_0x5e9a47=_0x51a780['getCommentThread'](_0x4d3881['threadId']),_0x31edeb=0x0===_0x5e9a47['comments']['length'],_0x152228=_0xaa440f===_0x4d3881['author'];this['id']=_0x4d3881['id'],this['threadId']=_0x4d3881['threadId'],this['author']=_0x4d3881['author'],this['creator']=_0x4d3881['creator'],this['isExternal']=Boolean(_0x4d3881['attributes']&&_0x4d3881['attributes']['@external']),this['set']('content',_0x4d3881['content']),this['createdAt']=_0x4d3881['createdAt']||new Date(),this['set']('authoredAt',_0x4d3881['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5e9a47,'resolvedAt'),this['set']('attributes',_0x4d3881['attributes']||{}),this['bind']('isEditable')['to'](_0x51a780,'_permissions',()=>{const _0x588a78=_0x51a780['getPermissions'](_0x5e9a47['channelId'])['write'],_0x4c0fe9=_0x51a780['getPermissions'](_0x5e9a47['channelId'])['modifyAll'];return _0x152228&&_0x588a78||!_0x152228&&_0x4c0fe9;}),this['bind']('isRemovable')['to'](_0x5e9a47,'isRemovable',_0x51a780,'_permissions',_0x2c85d4=>{const _0x51cc7d=_0x51a780['getPermissions'](_0x5e9a47['channelId'])['write'],_0xddaecd=_0x51a780['getPermissions'](_0x5e9a47['channelId'])['modifyAll'];return _0x152228&&_0x51cc7d||_0x2c85d4&&_0x31edeb||!_0x152228&&_0xddaecd&&!_0x31edeb;}),this['bind']('isReadOnly')['to'](_0x5e9a47,'isReadOnly'),this['_repository']=_0x51a780;}get['weight'](){return Math['max'](function(_0x3e6a91){const _0x510fac=document['createElement']('div');return _0x510fac['innerHTML']=_0x3e6a91,_0x510fac['textContent']['length'];}(this['content']),0xc8);}['update'](_0x37953e){const {threadId:_0x1a54dc,id:_0x1e952e}=this;if(!this['_repository']['hasCommentThread'](_0x1a54dc))throw new _0x552662('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x20ab19}=this['_repository']['getCommentThread'](_0x1a54dc);this['_repository']['fire'](Nt('updateComment',_0x20ab19,_0x1a54dc),{'channelId':_0x20ab19,'threadId':_0x1a54dc,'commentId':_0x1e952e,..._0x37953e});}['setAttribute'](_0x9a453c,_0xad673c){const _0x9cf80e=wt(this['attributes']);yt(_0x9cf80e,_0x9a453c,_0xad673c),this['update']({'attributes':_0x9cf80e});}['removeAttribute'](_0x4fb5ad){const _0x5ae9b3=wt(this['attributes']);Ct(_0x5ae9b3,_0x4fb5ad),this['update']({'attributes':_0x5ae9b3});}['remove'](_0x357a61={}){if(!_0x357a61['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x3028fb,id:_0x44cd73}=this;if(!this['_repository']['hasCommentThread'](_0x3028fb))throw new _0x552662('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x22e44f}=this['_repository']['getCommentThread'](_0x3028fb);this['_repository']['fire'](Nt('removeComment',_0x22e44f,_0x3028fb),{'channelId':_0x22e44f,'threadId':_0x3028fb,'commentId':_0x44cd73,..._0x357a61});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x3340ec,..._0x2ec4d3){for(const _0x11b1f3 of _0x2ec4d3)void 0x0!==_0x11b1f3&&(_0x3340ec+=':'+String(_0x11b1f3));return _0x3340ec;}class ot extends _0x3077e4{constructor(_0x3fcba5){super(_0x3fcba5),this['set']('hasContent',!0x1);}['refresh'](){const _0x357cd4=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5873cf of _0x357cd4['getRanges']())if(this['_hasContent'](_0x5873cf))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x18aee1=_0x1ce077(),ranges:_0x18ee82,comment:_0x1e5f0f}={}){const _0x40d544=this['editor']['model'],_0x2077e9=_0x18ee82??Array['from'](_0x40d544['document']['selection']['getRanges']()),_0x5c5c40=[];for(const _0x515ff5 of _0x2077e9)this['_hasContent'](_0x515ff5)&&_0x5c5c40['push'](this['_trimToContent'](_0x515ff5));if(!_0x5c5c40['length'])throw new _0x552662('addcommentthreadcommand-incorrect-ranges',null);_0x1e5f0f&&this['_createCommentThread'](_0x18aee1,_0x1e5f0f),this['_createMarkersFromRanges'](_0x18aee1,_0x5c5c40,!!_0x1e5f0f);}['_createMarkersFromRanges'](_0x957a04,_0x40a116,_0x16a96f){this['editor']['model']['change'](_0x5ab125=>{for(const _0x424a91 of _0x40a116){const _0x17623e=_0x1ce077()['substr'](0x1,0x5),_0x103082='comment:'+_0x957a04+':'+_0x17623e;_0x5ab125['addMarker'](_0x103082,{'range':_0x424a91,'usingOperation':_0x16a96f,'affectsData':_0x16a96f});}});}['_createCommentThread'](_0x4e37d8,_0x2b372b){const _0x19e08a=this['editor']['plugins']['get']('CommentsRepository'),_0xec98c3=this['editor']['config']['get']('collaboration.channelId'),_0x266a65=this['editor']['plugins']['get']('Users')['me'];if(!_0x266a65)throw new _0x552662('addcommentthreadcommand-user-not-found',null);_0x19e08a['addCommentThread']({'threadId':_0x4e37d8,'channelId':_0xec98c3,'comments':[{'authorId':_0x266a65['id'],'content':_0x2b372b,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x4ce182){for(const _0x44b12d of _0x4ce182['getItems']())if(this['_itemIsContent'](_0x44b12d))return!0x0;return!0x1;}['_itemIsContent'](_0x207517){return _0x207517['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x207517)&&!_0x207517['is']('element','tableCell');}['_trimToContent'](_0x57d5f8){const _0x4cddce=_0x3ac8be=>!this['_itemIsContent'](_0x3ac8be['item']),_0x483080=_0x57d5f8['start']['getLastMatchingPosition'](_0x4cddce),_0x29479c=_0x57d5f8['end']['getLastMatchingPosition'](_0x4cddce,{'direction':'backward'});return this['editor']['model']['createRange'](_0x483080,_0x29479c);}}class b extends _0x478bf2{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c4157){super(_0x2c4157),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x17406a=this['editor'],_0x505ddb=_0x17406a['model']['document']['selection'],_0x297291=_0x391904(()=>this['refreshSelectedViews'](),0xa);_0x505ddb['on']('change:range',(_0x7ea7e8,_0xd3e0e1)=>{_0xd3e0e1['directChange']&&(_0x297291['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x17406a['editing']['view']['document'],'change:isFocused',(_0x5f53ec,_0x3d63d9,_0x5e377d)=>{_0x5e377d&&_0x297291();}),this['listenTo'](_0x17406a['ui']['focusTracker'],'change:isFocused',(_0x4ac68a,_0x481ec5,_0x4f2752)=>{_0x4f2752||this['fire']('blur',{'isAnnotationTracked':_0x57af65=>this['_editorAnnotationsData']['has'](_0x57af65['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x148b6e){if(this['_editorAnnotations']['has'](_0x148b6e['view']))return;this['_editorAnnotations']['add'](_0x148b6e['view']),this['editor']['ui']['focusTracker']['add'](_0x148b6e['view']['element']);const _0x2747d9=this['editor']['plugins']['get'](y);this['listenTo'](_0x2747d9['collection'],'remove',(_0x1147e6,_0x3ba2a6)=>{this['editor']['ui']['focusTracker']['remove'](_0x3ba2a6['view']['element']),this['_editorAnnotations']['delete'](_0x3ba2a6['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1f5706){if('function'!=typeof _0x1f5706)throw new _0x552662('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1f5706);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x464f83,annotations:_0x2e9f0b}){const _0x3e207d=[],_0x390e15=this['editor']['model']['document']['selection'],_0xa9e08=Array['from'](_0x390e15['getRanges']());for(const [_0xe8800a,_0x4e7671]of this['_editorAnnotationsData']){const _0xeafce7=_0x50be3e(_0x4e7671),_0x2fe634=_0x2e9f0b['getByInnerView'](_0xe8800a);_0xeafce7&&_0x2fe634&&_0x3e207d['push']({'annotation':_0x2fe634,'range':_0xeafce7});}function _0x50be3e(_0x4a435f){for(const _0x51687c of _0x4a435f)for(const _0x372c51 of _0xa9e08)if(_0x51687c['containsRange'](_0x372c51,!_0x390e15['isCollapsed']))return _0x51687c;return null;}return _0x3e207d['sort']((_0x4ec48c,_0x3840ba)=>{const _0x3f911e=_0x4ec48c['range'],_0x56e398=_0x3840ba['range'];if(!_0x3f911e['isEqual'](_0x56e398)){if(_0x3f911e['containsRange'](_0x56e398,!0x0))return 0x1;if(_0x56e398['containsRange'](_0x3f911e,!0x0))return-0x1;}return _0x4ec48c['annotation']==_0x464f83?-0x1:_0x3840ba['annotation']==_0x464f83?0x1:0x0;})['map'](_0x50bfc0=>_0x50bfc0['annotation']);}get['_editorAnnotationsData'](){const _0x245061=new Map();for(const _0x4c05cc of Array['from'](this['_dataCollectors']))for(const [_0x516ab3,_0x325cc2]of _0x4c05cc())_0x245061['set'](_0x516ab3,_0x325cc2);return _0x245061;}}class st extends _0x478bf2{['afterInit'](){const _0x2d3ff=this['editor'];if(!_0x2d3ff['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2d3ff['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x478bf2{constructor(_0x48704e){super(_0x48704e),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x18fe6e=this['editor'],_0x2f797e=_0x18fe6e['commands']['get']('importWord'),_0x2ee75c=_0x18fe6e['plugins']['get'](it);_0x2f797e&&(_0x2f797e['on']('execute',(_0xbdde68,[,_0x14d8df])=>{_0x14d8df['collaboration_features']={'comments':!0x0,'user_id':_0x2ee75c['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2f797e,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x38078c,_0x31e114){const {comment_threads:_0x5efdc2}=_0x31e114;_0x5efdc2&&_0x5efdc2['forEach'](({thread_id:_0x4ab98d,comments:_0x3d56b6,is_resolved:_0x2ed0a7})=>{const _0x3d6610=new Date(),_0x49ddb8=_0x3d56b6['map'](({author:_0x5b7d3f,content:_0x598fb8,created_at:_0x36ca8d})=>({'content':_0x598fb8,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x3d6610,'attributes':{'@external':{'authorName':_0x5b7d3f,'createdAt':_0x36ca8d?new Date(_0x36ca8d):new Date(),'source':'importWord'}}})),_0x898fa5=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x898fa5,'threadId':_0x4ab98d,'comments':_0x49ddb8,'resolvedAt':_0x2ed0a7?_0x3d6610:null});});}}class at extends _0x478bf2{constructor(_0x509f8a){super(_0x509f8a),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x3e4f60=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x3e4f60,'contentInsertion',(_0x2fde46,_0xb3dfe5)=>this['_removeMarkersWithoutThreads'](_0xb3dfe5['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4bc30f){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4bc30f;const _0x3d52e7=this['editor']['plugins']['get']('CommentsRepository');for(const _0x1d0b41 of _0x4bc30f['keys']()){const [_0x38f0fb,_0x448642]=_0x1d0b41['split'](':');'comment'!=_0x38f0fb||_0x3d52e7['hasCommentThread'](_0x448642)||_0x4bc30f['delete'](_0x1d0b41);}return _0x4bc30f;}['_registerMarkerInClipboardPipeline'](){const _0x224f47=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x17b352=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x17b352&&_0x224f47['_registerMarkerToCopy']('comment',_0x17b352);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x332daf){switch(_0x332daf){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2a7537){const _0x5118f4=_0x2a7537['split'](':');return{'group':_0x5118f4[0x0],'id':_0x5118f4[0x1],'part':_0x5118f4[0x2]};}class ut extends _0x478bf2{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0xa90f52,_0x288c4e)=>{if(!_0x288c4e['options']['showCommentHighlights'])return null;if(_0x288c4e['options']['ignoreResolvedComments']){const {id:_0x4a9379}=ft(_0xa90f52['markerName']),_0x3fd945=this['editor']['plugins']['get'](o);if(_0x3fd945['getCommentThread'](_0x4a9379)?.['isResolved']&&_0xa90f52['item'])return _0x288c4e['consumable']['consume'](_0xa90f52['item'],'addMarker:'+_0xa90f52['markerName']),_0x288c4e['consumable']['consume'](_0xa90f52['item'],'removeMarker:'+_0xa90f52['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x475cd8=>{_0x475cd8['on']('addMarker:comment',(_0x1a14d9,_0x1ddfe8,_0x5ccd8a)=>{if(!_0x5ccd8a['options']['showCommentHighlights'])return;const _0x5a735a=_0x1ddfe8['item'];if(!_0x5a735a)return;const _0x289c23=_0x5ccd8a['mapper']['toViewElement'](_0x5a735a);this['editor']['model']['schema']['isObject'](_0x5a735a)&&_0x289c23&&!_0x289c23['getCustomProperty']('widget')&&_0x289c23['is']('containerElement')&&_0x2da229(_0x289c23,_0x5ccd8a['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x555fb3,{writer:_0x49bace,options:_0x1f0b9c})=>{if(!_0x1f0b9c['showCommentHighlights'])return null;const _0x175c10=_0x49bace['createContainerElement']('div'),_0xeae1d4=_0x49bace['createEmptyElement']('hr');return _0x49bace['addClass']('ck-horizontal-line',_0x175c10),_0x49bace['insert'](_0x49bace['createPositionAt'](_0x175c10,0x0),_0xeae1d4),_0x175c10;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x2ff924,{writer:_0x11e2f0,options:_0x502523})=>{if(!_0x502523['showCommentHighlights'])return null;const _0x203d63=_0x11e2f0['createContainerElement']('span'),_0x1570c0=_0x11e2f0['createEmptyElement']('img');return _0x11e2f0['addClass']('image-inline',_0x203d63),_0x11e2f0['insert'](_0x11e2f0['createPositionAt'](_0x203d63,0x0),_0x1570c0),_0x203d63;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x279d45,{writer:_0x1a7cbd,options:_0x49ebbe})=>{if(_0x49ebbe['showCommentHighlights'])return _0x1a7cbd['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3a74dd,_0x1078f4,_0x1bff27)=>{_0x1bff27['options']['showCommentHighlights']&&_0x3a74dd['stop']();},{'priority':'high'});}}class r extends _0x478bf2{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(_0x12dba9){super(_0x12dba9),this['set']('isThreadsLoadingPaused',!0x0),_0x12dba9['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3e9135,_0x1f89b6,_0x5013a4,_0x295319)=>{const _0x16c9fb=_0x12dba9['plugins']['get'](o),_0x23c8cc=_0x5013a4?ft(_0x5013a4)['id']:null;_0x12dba9['model']['change'](()=>{if(_0x23c8cc){const _0x4322fd=this['getAllMarkersForId'](_0x23c8cc);for(const _0x3ae123 of _0x4322fd)_0x12dba9['editing']['reconvertMarker'](_0x3ae123);}if(_0x295319){const {id:_0x10814f}=ft(_0x295319),_0x449b80=_0x16c9fb['getCommentThread'](_0x10814f);if(_0x449b80&&_0x449b80['unlinkedAt'])return;if(_0x449b80&&!_0x449b80['isAttached'])return;const _0x328b57=this['getAllMarkersForId'](_0x10814f);for(const _0x28bd1a of _0x328b57)_0x12dba9['editing']['reconvertMarker'](_0x28bd1a);}}),_0x23c8cc&&this['scrollToThreadMarker'](_0x23c8cc);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x52e6b1=this['editor'],_0xa4c4a8=_0x52e6b1['plugins']['get'](o),_0x3be37e=_0x52e6b1['config']['get']('collaboration.channelId'),_0x56a946=_0xa4c4a8['getCommentThreads']()['filter'](_0x4559a1=>_0x4559a1['channelId']!==_0x3be37e);_0x52e6b1['commands']['add']('addCommentThread',new ot(_0x52e6b1)),this['listenTo'](_0x52e6b1,'change:isReadOnly',(_0x4f9e78,_0x304d4d,_0x160954)=>{_0xa4c4a8['switchReadOnly'](_0x160954,_0x52e6b1['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xa4c4a8,dt('addCommentThread',_0x3be37e),(_0x4f9154,{threadId:_0x54c681})=>{const _0x28c1c4=this['editor']['plugins']['get'](o)['getCommentThread'](_0x54c681);_0x28c1c4?.['unlinkedAt']&&this['_attachArchivedThread'](_0x54c681);}),this['listenTo'](_0xa4c4a8,dt('removeCommentThread',_0x3be37e),(_0x1ca99d,{threadId:_0x231810})=>{_0x52e6b1['model']['enqueueChange']({'isUndoable':!0x1},_0x589444=>{const _0x3e1237=this['getAllMarkersForId'](_0x231810);for(const _0x33f4b5 of _0x3e1237)_0x589444['removeMarker'](_0x33f4b5);});}),this['listenTo'](_0xa4c4a8,dt('resolveCommentThread',_0x3be37e),(_0x1b58ce,{threadId:_0x43327b})=>{(this['_reconvertMarkers'](_0x43327b),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x43327b)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xa4c4a8,dt('reopenCommentThread',_0x3be37e),(_0x44a80d,{threadId:_0x5a7bfa})=>{this['_reconvertMarkers'](_0x5a7bfa);},{'priority':'low'}),this['listenTo'](_0xa4c4a8,dt('addComment',_0x3be37e),(_0x1c621f,{threadId:_0x33c0d3,isFromAdapter:_0x60d8c})=>{const _0x576772=this['getAllMarkersForId'](_0x33c0d3);if(_0x60d8c||0x0==_0x576772['length']||!_0xa4c4a8['hasCommentThread'](_0x33c0d3))return;0x1===_0xa4c4a8['getCommentThread'](_0x33c0d3)['length']&&_0x52e6b1['model']['enqueueChange']({'isUndoable':!0x1},_0x32e3ec=>{for(const _0x48b5c4 of _0x576772)_0x32e3ec['updateMarker'](_0x48b5c4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x56a946);}['afterInit'](){!async function(_0x26b03d){const _0x55c8c1=_0x4f3a13([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]),_0x138ece=0x73460ab3,_0x198ba6=0x73418863^_0x138ece,_0x102ac9=window[_0x4f3a13([0x44,0x61,0x74,0x65])][_0x4f3a13([0x6e,0x6f,0x77])](),_0x4759f8=_0x26b03d[_0x4f3a13([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e4f84=new window[(_0x4f3a13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a9094=>{_0x4759f8[_0x4f3a13([0x6f,0x6e,0x63,0x65])](_0x4f3a13([0x72,0x65,0x61,0x64,0x79]),_0x2a9094);}),_0x3ac5d5={[_0x4f3a13([0x6b,0x74,0x79])]:_0x4f3a13([0x45,0x43]),[_0x4f3a13([0x75,0x73,0x65])]:_0x4f3a13([0x73,0x69,0x67]),[_0x4f3a13([0x63,0x72,0x76])]:_0x4f3a13([0x50,0x2d,0x32,0x35,0x36]),[_0x4f3a13([0x78])]:_0x4f3a13([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]),[_0x4f3a13([0x79])]:_0x4f3a13([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]),[_0x4f3a13([0x61,0x6c,0x67])]:_0x4f3a13([0x45,0x53,0x32,0x35,0x36])},_0x5017e0=_0x4759f8[_0x4f3a13([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f3a13([0x67,0x65,0x74])](_0x4f3a13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d18cb(){let _0x27cea7,_0xe470be=null,_0x221af4=null;try{if(_0x5017e0==_0x4f3a13([0x47,0x50,0x4c]))return _0x4f3a13([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27cea7=_0x3d4e8a(),!_0x27cea7)return _0x4f3a13([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27cea7[_0x4f3a13([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x221af4=_0x1175a8(_0x27cea7[_0x4f3a13([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27cea7[_0x4f3a13([0x6a,0x74,0x69])])),await _0x4f4d7c()?_0x4652b8()?_0xe89da2()?_0x4f3a13([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e6deb()?(_0x27cea7[_0x4f3a13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f3a13([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe470be=_0x107f5c(_0x4f3a13([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x376632()):_0x4f3a13([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f3a13([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f3a13([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f3a13([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe89da2(){const _0x1ebbe0=[_0x4f3a13([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f3a13([0x74,0x72,0x69,0x61,0x6c])][_0x4f3a13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27cea7[_0x4f3a13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x102ac9/0x3e8:0xe10*_0x198ba6;return _0x27cea7[_0x4f3a13([0x65,0x78,0x70])]<_0x1ebbe0;}function _0x4652b8(){const _0x550001=_0x27cea7[_0x4f3a13([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x550001)return!0x1;if(_0x550001[_0x4f3a13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3a13([0x2a])))return!0x0;if(_0x550001[_0x4f3a13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3a13([0x43,0x4d,0x54])))return!0x0;if(_0x550001[_0x4f3a13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3a13([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x1dc2fe())return!0x0;if(_0x550001[_0x4f3a13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3a13([0x52,0x43,0x4d,0x54]))){if(_0x21d872())return!0x0;if(_0x581dc7()||_0x349474())return!0x0;}return!0x1;}function _0x4e6deb(){const _0x3d91b6=_0x27cea7[_0x4f3a13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d91b6||0x0==_0x3d91b6[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x140c8e}=new URL(window[_0x4f3a13([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d91b6[_0x4f3a13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140c8e))return!0x0;const _0x56ec3a=_0x140c8e[_0x4f3a13([0x73,0x70,0x6c,0x69,0x74])](_0x4f3a13([0x2e]));return _0x3d91b6[_0x4f3a13([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50ba8a=>_0x50ba8a[_0x4f3a13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3a13([0x2a])))[_0x4f3a13([0x6d,0x61,0x70])](_0x5981bf=>_0x5981bf[_0x4f3a13([0x73,0x70,0x6c,0x69,0x74])](_0x4f3a13([0x2e])))[_0x4f3a13([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11820b=>_0x11820b[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56ec3a[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f3a13([0x6d,0x61,0x70])](_0x19b4b3=>Array(_0x56ec3a[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19b4b3[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f3a13([0x66,0x69,0x6c,0x6c])](_0x19b4b3[0x0]===_0x4f3a13([0x2a])?_0x4f3a13([0x2a]):'')[_0x4f3a13([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19b4b3))[_0x4f3a13([0x73,0x6f,0x6d,0x65])](_0x2fec75=>_0x56ec3a[_0x4f3a13([0x65,0x76,0x65,0x72,0x79])]((_0x257b0b,_0x562e54)=>_0x2fec75[_0x562e54]===_0x257b0b||_0x2fec75[_0x562e54]===_0x4f3a13([0x2a])));}function _0x376632(){return _0xe470be&&_0x221af4?new window[(_0x4f3a13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3080,_0x3ae0d8)=>{_0xe470be[_0x4f3a13([0x74,0x68,0x65,0x6e])](_0x1c3080,_0x3ae0d8),_0x221af4[_0x4f3a13([0x74,0x68,0x65,0x6e])](_0xda3712=>{_0xda3712!=_0x4f3a13([0x56,0x61,0x6c,0x69,0x64])&&_0x1c3080(_0xda3712);},_0x3ae0d8);}):_0xe470be||_0x221af4||_0x4f3a13([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1175a8(_0x34bbde,_0x47a24b){return new window[(_0x4f3a13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4472c3=>{if(_0x18ec70())return _0x4472c3(_0x4f3a13([0x56,0x61,0x6c,0x69,0x64]));_0x2809d(),_0x4759f8[_0x4f3a13([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f3a13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x230bb1=!0x1;const _0x2c94dd=_0x1ce077();function _0x4060ff(_0x517113){return!!_0x517113&&(typeof _0x517113===_0x4f3a13([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x517113===_0x4f3a13([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x517113[_0x4f3a13([0x74,0x68,0x65,0x6e])]===_0x4f3a13([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x517113[_0x4f3a13([0x63,0x61,0x74,0x63,0x68])]===_0x4f3a13([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x482ccc(_0x3107bf){_0x1e0018(_0x3107bf)[_0x4f3a13([0x74,0x68,0x65,0x6e])](_0x2a9d47=>{if(!_0x2a9d47||_0x2a9d47[_0x4f3a13([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f3a13([0x6f,0x6b]))return _0x4f3a13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb90cd5(_0x54c29c(_0x2c94dd+_0x47a24b))!=_0x2a9d47[_0x4f3a13([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f3a13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f3a13([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f3a13([0x74,0x68,0x65,0x6e])](_0x369fc9=>(_0x30bbe5(),_0x369fc9),()=>{const _0x3d5b63=_0x30ce11();return null==_0x3d5b63?(_0x30bbe5(),_0x4f3a13([0x56,0x61,0x6c,0x69,0x64])):_0x4f3a13(_0x102ac9-_0x3d5b63>(0x574a8eb3^_0x138ece)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f3a13([0x74,0x68,0x65,0x6e])](_0x4472c3)[_0x4f3a13([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4472c3(_0x4f3a13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b03e1=0x7370e433^_0x138ece;function _0x30bbe5(){const _0x153d6f=_0x4f3a13([0x6c,0x6c,0x63,0x74,0x2d])+_0xb90cd5(_0x54c29c(_0x34bbde)),_0x31d47a=_0xb7627a(_0xb90cd5(window[_0x4f3a13([0x4d,0x61,0x74,0x68])][_0x4f3a13([0x63,0x65,0x69,0x6c])](_0x102ac9/_0x2b03e1)));window[_0x4f3a13([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f3a13([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x153d6f,_0x31d47a);}function _0x30ce11(){const _0x38a4b1=_0x4f3a13([0x6c,0x6c,0x63,0x74,0x2d])+_0xb90cd5(_0x54c29c(_0x34bbde)),_0x21538a=window[_0x4f3a13([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f3a13([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38a4b1);return _0x21538a?window[_0x4f3a13([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb7627a(_0x21538a),0x10)*_0x2b03e1:null;}function _0x1e0018(_0x27e94c){return new window[(_0x4f3a13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf7c95f,_0x4c4562)=>{_0x27e94c[_0x4f3a13([0x74,0x68,0x65,0x6e])](_0xf7c95f,_0x4c4562),window[_0x4f3a13([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c4562,0x7347de73^_0x138ece);});}}_0x4759f8[_0x4f3a13([0x6f,0x6e])](_0x4f3a13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c946d,_0x247969)=>{if(_0x247969[0x0]!=_0x34bbde)return _0x4472c3(_0x4f3a13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x247969[0x1]={..._0x247969[0x1],[_0x4f3a13([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c94dd};},{[_0x4f3a13([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f3a13([0x68,0x69,0x67,0x68])}),_0x4759f8[_0x4f3a13([0x6f,0x6e])](_0x4f3a13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5bed1b=>{_0x4060ff(_0x5bed1b[_0x4f3a13([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x230bb1=!0x0,_0x482ccc(_0x5bed1b[_0x4f3a13([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f3a13([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f3a13([0x6c,0x6f,0x77])}),_0x3e4f84[_0x4f3a13([0x74,0x68,0x65,0x6e])](()=>{_0x230bb1||_0x4472c3(_0x4f3a13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18ec70(){return _0x4759f8[_0x4f3a13([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f3a13([0x76,0x69,0x65,0x77])][_0x4f3a13([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f3a13([0x61,0x75,0x74,0x6f]);}function _0x2809d(){_0x4759f8[_0x4f3a13([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f3a13([0x76,0x69,0x65,0x77])][_0x4f3a13([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f3a13([0x61,0x75,0x74,0x6f]);}}function _0x107f5c(_0x420260){const _0x25a049=[new window[(_0x4f3a13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc53993=>setTimeout(_0xc53993,0x734f347f^_0x138ece)),_0x3e4f84[_0x4f3a13([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f3a13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe419fb=>{let _0x3f0e9b=0x0;_0x4759f8[_0x4f3a13([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f3a13([0x6f,0x6e])](_0x4f3a13([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3559be,_0x2b635e)=>{_0x2b635e[0x0][_0x4f3a13([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f0e9b++,_0x3f0e9b==(0x73460f5b^_0x138ece)&&(_0xe419fb(),_0x3559be[_0x4f3a13([0x6f,0x66,0x66])]());});}))];return window[_0x4f3a13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f3a13([0x72,0x61,0x63,0x65])](_0x25a049)[_0x4f3a13([0x74,0x68,0x65,0x6e])](()=>_0x420260);}async function _0x29743c(){await _0x3e4f84,_0x4759f8[_0x4f3a13([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f3a13([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3dbda7,_0x4759f8[_0x4f3a13([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f3a13([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3dbda7,_0x4759f8[_0x4f3a13([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f3a13([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1dc2fe(){return window[_0x4f3a13([0x67,0x6c,0x6f,0x62])]&&window[_0x4f3a13([0x67,0x6c,0x6f,0x62])][_0x4f3a13([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x21d872(){return _0x20b764(_0x4f3a13([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x53fbc4(_0x4f3a13([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f3a13([0x73,0x74,0x61,0x74,0x65])]==_0x4f3a13([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x581dc7(){return _0x20b764(_0x4f3a13([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 _0x349474(){return _0x20b764(_0x4f3a13([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1d5ba9(_0xf8ea5c){const _0x2494b1=_0x49b6bb();_0x4759f8[_0x2494b1]=_0x4f3a13([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf8ea5c,_0xf8ea5c!=_0x4f3a13([0x56,0x61,0x6c,0x69,0x64])&&_0x29743c();}function _0x49b6bb(){const _0x2a8084=window[_0x4f3a13([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f3a13([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f3a13([0x6e,0x6f,0x77])]())[_0x4f3a13([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f3a13([0x2e]),'');let _0x3d59e2=_0x4f3a13([0x4b]);for(let _0x5234fb=0x0;_0x5234fb<_0x2a8084[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5234fb+=0x2){let _0x15ba14=window[_0x4f3a13([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a8084[_0x4f3a13([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5234fb,_0x5234fb+0x2));_0x15ba14>=_0x55c8c1[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15ba14-=_0x55c8c1[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d59e2+=_0x55c8c1[_0x15ba14];}return _0x3d59e2;}function _0x3d4e8a(){const _0x5aa23d=_0x5017e0[_0x4f3a13([0x73,0x70,0x6c,0x69,0x74])](_0x4f3a13([0x2e]));if(0x3!=_0x5aa23d[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e1c1b(_0x5aa23d[0x1]);function _0x3e1c1b(_0x401038){const _0x417d9f=_0x188fb6(_0x401038);return _0x417d9f&&_0x2e552e()?_0x417d9f:null;function _0x2e552e(){const _0x3f7075=_0x417d9f[_0x4f3a13([0x6a,0x74,0x69])],_0x526556=window[_0x4f3a13([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f7075[_0x4f3a13([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f7075[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c5669={..._0x417d9f,[_0x4f3a13([0x6a,0x74,0x69])]:_0x3f7075[_0x4f3a13([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f7075[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c5669[_0x4f3a13([0x76,0x63])],_0x54c29c(_0x1c5669)==_0x526556;}}}async function _0x4f4d7c(){let _0x1664f4=!0x0;try{const _0x908d4e=_0x5017e0[_0x4f3a13([0x73,0x70,0x6c,0x69,0x74])](_0x4f3a13([0x2e])),[_0x398cc8,_0x28b763,_0x4bf607]=_0x908d4e;return _0x596ca0(_0x398cc8),await _0x4374e5(_0x398cc8,_0x28b763,_0x4bf607),_0x1664f4;}catch{return!0x1;}function _0x596ca0(_0xfed627){const _0x315d2b=_0x188fb6(_0xfed627);_0x315d2b&&_0x315d2b[_0x4f3a13([0x61,0x6c,0x67])]==_0x4f3a13([0x45,0x53,0x32,0x35,0x36])||(_0x1664f4=!0x1);}async function _0x4374e5(_0x318151,_0x30e47e,_0x532fa6){const _0x233547=window[_0x4f3a13([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f3a13([0x66,0x72,0x6f,0x6d])](_0x50829b(_0x532fa6),_0x40f890=>_0x40f890[_0x4f3a13([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4143b0=new window[(_0x4f3a13([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f3a13([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x318151+_0x4f3a13([0x2e])+_0x30e47e),_0x33dbfe=window[_0x4f3a13([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f3a13([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33dbfe)return;const _0x4581bc=await _0x33dbfe[_0x4f3a13([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f3a13([0x6a,0x77,0x6b]),_0x3ac5d5,{[_0x4f3a13([0x6e,0x61,0x6d,0x65])]:_0x4f3a13([0x45,0x43,0x44,0x53,0x41]),[_0x4f3a13([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f3a13([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f3a13([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33dbfe[_0x4f3a13([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f3a13([0x6e,0x61,0x6d,0x65])]:_0x4f3a13([0x45,0x43,0x44,0x53,0x41]),[_0x4f3a13([0x68,0x61,0x73,0x68])]:{[_0x4f3a13([0x6e,0x61,0x6d,0x65])]:_0x4f3a13([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4581bc,_0x233547,_0x4143b0)||(_0x1664f4=!0x1);}}function _0x188fb6(_0x1733f1){return _0x1733f1[_0x4f3a13([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f3a13([0x65,0x79]))?JSON[_0x4f3a13([0x70,0x61,0x72,0x73,0x65])](_0x50829b(_0x1733f1)):null;}function _0x50829b(_0x2b2aa5){return window[_0x4f3a13([0x61,0x74,0x6f,0x62])](_0x2b2aa5[_0x4f3a13([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f3a13([0x2b]))[_0x4f3a13([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f3a13([0x2f])));}function _0x54c29c(_0x3c0fdb){let _0x56a36b=0x1505;function _0x1bf96c(_0x513028){for(let _0x5bdd7c=0x0;_0x5bdd7c<_0x513028[_0x4f3a13([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bdd7c++){const _0x5763e5=_0x513028[_0x4f3a13([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bdd7c);_0x56a36b=(_0x56a36b<<0x5)+_0x56a36b+_0x5763e5,_0x56a36b&=_0x56a36b;}}function _0x13233d(_0x1e0d30){Array[_0x4f3a13([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e0d30)?_0x1e0d30[_0x4f3a13([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x13233d):_0x1e0d30&&typeof _0x1e0d30==_0x4f3a13([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f3a13([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e0d30)[_0x4f3a13([0x73,0x6f,0x72,0x74])]()[_0x4f3a13([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44fcc4,_0x42a4e9])=>{_0x1bf96c(_0x44fcc4),_0x13233d(_0x42a4e9);}):_0x1bf96c(window[_0x4f3a13([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e0d30));}return _0x13233d(_0x3c0fdb),_0x56a36b>>>0x0;}function _0xb90cd5(_0x484ebf){return _0x484ebf[_0x4f3a13([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f3a13([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f3a13([0x30]));}function _0xb7627a(_0x33d8a5){return _0x33d8a5[_0x4f3a13([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f3a13([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f3a13([0x6a,0x6f,0x69,0x6e])]('');}function _0x20b764(_0x1719b0){return _0x4759f8[_0x4f3a13([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f3a13([0x68,0x61,0x73])](_0x1719b0);}function _0x53fbc4(_0x2950b0){return _0x4759f8[_0x4f3a13([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f3a13([0x67,0x65,0x74])](_0x2950b0);}function _0x3dbda7(){}function _0x4f3a13(_0x5e2176){return _0x5e2176['map'](_0x32000e=>String['fromCharCode'](_0x32000e))['join']('');}_0x1d5ba9(await _0x5d18cb());}(this);}['destroy'](){const _0xd7d18b=this['editor']['plugins']['get'](o),_0x2cd3e9=this['editor']['config']['get']('collaboration.channelId');for(const _0x1c8cbc of _0xd7d18b['getCommentThreads']({'channelId':_0x2cd3e9}))_0xd7d18b['_detachCommentThread'](_0x1c8cbc['id']),_0xd7d18b['_threads']['delete'](_0x1c8cbc['id']);super['destroy']();}['hasMarkerForId'](_0x37ebcd){return this['getAllMarkersForId'](_0x37ebcd)['length']>0x0;}['getAllMarkersForId'](_0x2ec829){const _0x27af99=[];for(const _0x2a5bda of this['editor']['model']['markers'])_0x2a5bda['name']['startsWith']('comment:'+_0x2ec829)&&_0x27af99['push'](_0x2a5bda);return _0x27af99;}['scrollToThreadMarker'](_0x7d2f2f){setTimeout(()=>{const _0x6f5053=this['_getTargetForId'](_0x7d2f2f);if(!_0x6f5053)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x7d2f2f&&nt({'target':_0x6f5053[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x49a450){this['editor']['model']['change'](()=>{for(const _0x249411 of this['getAllMarkersForId'](_0x49a450))this['editor']['editing']['reconvertMarker'](_0x249411);});}['_attachArchivedThread'](_0x3a2ceb){const _0x18d8e0=this['editor']['plugins']['get'](o),_0x3e95dc=this['editor']['plugins']['get'](b),_0x3e5956=_0x18d8e0['getCommentThread'](_0x3a2ceb);if(!_0x3e5956['isAttached']){const _0x537339=_0x3e5956['attachTo'](()=>this['_getTargetForId'](_0x3e5956['id']));_0x3e95dc['registerAnnotation'](_0x537339),_0x3e5956['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x4d642e=this['editor'],_0x411d4d=_0x4d642e['plugins']['get'](it);_0x4d642e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xeb6509,_0x5e03ee)=>{const {id:_0x35fb3b}=ft(_0xeb6509['markerName']),_0x2a8eaf=_0x4d642e['plugins']['get'](o)['getCommentThread'](_0x35fb3b),_0x28f3e6=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x35fb3b;let _0x243352;if(_0x2a8eaf&&_0x2a8eaf['isResolved']&&!_0x28f3e6&&_0xeb6509['item'])return _0x5e03ee['consumable']['consume'](_0xeb6509['item'],'addMarker:'+_0xeb6509['markerName']),_0x5e03ee['consumable']['consume'](_0xeb6509['item'],'removeMarker:'+_0xeb6509['markerName']),null;const _0x235f89=['ck-comment-marker'];return _0x28f3e6&&_0x235f89['push']('ck-comment-marker--active'),_0x243352=_0x2a8eaf?.['length']?_0x2a8eaf['comments']['first']['author']['id']:_0x411d4d['me']['id'],{'classes':_0x235f89,'attributes':{'data-comment':_0x35fb3b,'data-author-id':_0x243352}};}}),_0x4d642e['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x59b7c4,{options:_0x2a4c86})=>{if(_0x2a4c86['showCommentHighlights'])return null;const _0x12a621=_0x4d642e['plugins']['get'](o),_0xa71ab6=_0x4d642e['model']['markers']['get'](_0x59b7c4),{id:_0xd9178e,part:_0x2998fa}=ft(_0x59b7c4);return _0xa71ab6&&!_0xa71ab6['affectsData']||_0x2a4c86['ignoreResolvedComments']&&_0x12a621['getCommentThread'](_0xd9178e)?.['isResolved']?null:{'group':'comment','name':_0x2998fa?_0xd9178e+':'+_0x2998fa:_0xd9178e};}}),_0x4d642e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x12c594,{writer:_0x144e2e})=>_0x144e2e['createElement']('$marker',{'data-name':'comment:'+_0x12c594['getAttribute']('id')})}),_0x4d642e['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3a1589=this['editor'],_0x449029=_0x3a1589['plugins']['get'](o),_0x16d84e=new Set(),_0x556575=new Set();_0x3a1589['model']['document']['registerPostFixer'](_0x1888df=>{let _0x219aac=!0x1;for(const {name:_0x2d31d4,data:_0x5193b4}of _0x3a1589['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4e6054,id:_0x2695e1}=ft(_0x2d31d4);let _0x265298=_0x5193b4['newRange'];if('comment'!==_0x4e6054||!_0x265298)continue;const _0x293694='$graveyard'===_0x265298['root']['rootName'];_0x293694||(_0x265298=ht(_0x265298,_0x3a1589['model']),!_0x265298||_0x265298['isCollapsed']||!_0x5193b4['newRange']||_0x265298['isEqual'](_0x5193b4['newRange']))?_0x3a1589['model']['hasContent'](_0x265298)&&!_0x293694?this['isThreadsLoadingPaused']?_0x16d84e['add'](_0x2d31d4):this['_handleThreadMarker'](_0x2d31d4,_0x2695e1):(_0x556575['add'](_0x2d31d4),_0x16d84e['delete'](_0x2d31d4),_0x1888df['removeMarker'](_0x2d31d4),_0x219aac=!0x0):(_0x1888df['updateMarker'](_0x2d31d4,{'range':_0x265298}),_0x219aac=!0x0);}return _0x219aac;}),this['on']('change:isThreadsLoadingPaused',(_0x4e2c84,_0x1e5c4f,_0x111aaf)=>{if(!_0x111aaf&&_0x16d84e['size'])for(const _0x3028da of _0x16d84e){const {id:_0x1a1428}=ft(_0x3028da);_0x16d84e['delete'](_0x3028da),_0x3a1589['model']['markers']['get'](_0x3028da)&&this['_handleThreadMarker'](_0x3028da,_0x1a1428);}}),this['listenTo'](_0x3a1589['model']['document'],'change',()=>{for(const {name:_0x29000f,data:{newRange:_0x2ca045}}of _0x3a1589['model']['document']['differ']['getChangedMarkers']()){const {group:_0x49050c,id:_0x181a8a}=ft(_0x29000f);if('comment'!==_0x49050c)continue;const _0x158773=_0x449029['getCommentThread'](_0x181a8a),_0x1be735=this['hasMarkerForId'](_0x181a8a);_0x158773&&(!_0x158773['_hasTargetInContent']&&_0x2ca045&&_0x3a1589['editing']['view']['once']('render',()=>{const _0x4d75c2=_0x3a1589['plugins']['get'](y),_0x171bac=_0x449029['_threadToController']['get'](_0x158773)['view'];_0x4d75c2['getByInnerView'](_0x171bac)['refreshVisibility']();},{'priority':'low'}),_0x158773['_hasTargetInContent']=_0x1be735||!!_0x2ca045),_0x2ca045||(_0x556575['add'](_0x29000f),_0x16d84e['delete'](_0x29000f));}for(const _0x149553 of _0x556575){const {id:_0x33a22f}=ft(_0x149553),_0x1f4957=_0x449029['getCommentThread'](_0x33a22f);if(_0x16d84e['delete'](_0x149553),!_0x1f4957)continue;const _0x181794=this['hasMarkerForId'](_0x33a22f);_0x181794||_0x1f4957['isSubmitted']?_0x181794||_0x1f4957['unlinkedAt']||_0x1f4957['setUnlinkedAt'](new Date()):_0x1f4957['remove']();}_0x556575['clear']();});}['_handleInitialThreads'](_0x47ae1f){_0x47ae1f['forEach'](_0x5d137c=>{_0x5d137c['unlinkedAt']&&this['_attachArchivedThread'](_0x5d137c['id']);});}['_getTargetForId'](_0xdf630){const _0x2d2b73=this['editor'],_0x3950a1=this['getAllMarkersForId'](_0xdf630);return et(_0x2d2b73['editing'],_0x3950a1);}['_getTextContext'](_0x2cc5dd){const _0x1e1a68=this['getAllMarkersForId'](_0x2cc5dd);let _0x372d7d='',_0x7fccc9=!0x1;for(const _0x21060d of _0x1e1a68){const _0x18dab3=_0x21060d['getRange']();for(const _0x2d0ace of Array['from'](_0x18dab3['getItems']()))_0x2d0ace['is']('$textProxy')?(_0x372d7d&&_0x7fccc9&&(_0x372d7d+='\x20',_0x7fccc9=!0x1),_0x372d7d+=_0x2d0ace['data']):_0x7fccc9=!0x0;_0x7fccc9=!0x0;}return _0x372d7d['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x195c20,_0x29f88b){const _0x5447bb=this['editor'],_0xf3a8c2=_0x5447bb['plugins']['get'](o);let _0x432113=_0xf3a8c2['getCommentThread'](_0x29f88b);const _0x5e2889=_0x5447bb['config']['get']('collaboration.channelId'),_0x3ccfd5=_0x5447bb['plugins']['get'](b);if(_0x432113&&(_0x432113['unlinkedAt']&&_0x432113['setUnlinkedAt'](null),_0x432113['isAttached']))return _0x432113;return!this['getAllMarkersForId'](_0x29f88b)[0x0]['managedUsingOperations']?_0x5447bb['editing']['view']['once']('render',()=>{if(_0xf3a8c2['getCommentThread'](_0x29f88b))return;const _0x1adf10=_0x5447bb['plugins']['get'](y);_0x432113=_0xf3a8c2['openNewCommentThread']({'channelId':_0x5e2889,'threadId':_0x29f88b,'target':()=>this['_getTargetForId'](_0x29f88b),'context':{'type':'text','value':this['_getTextContext'](_0x29f88b)}});const _0x2a634f=_0xf3a8c2['_threadToController']['get'](_0x432113)['view'],_0x2c2ba6=_0x1adf10['getByInnerView'](_0x2a634f);_0x2c2ba6&&_0x3ccfd5['registerAnnotation'](_0x2c2ba6);},{'priority':'low'}):_0xf3a8c2['fetchCommentThread']({'channelId':_0x5e2889,'threadId':_0x29f88b})['then'](_0x37f054=>{if('destroyed'!==_0x5447bb['state']){if(_0x432113=_0x37f054,_0x432113&&!_0x432113['isAttached']){const _0x39bfef=_0x432113['attachTo'](()=>this['_getTargetForId'](_0x29f88b));_0x3ccfd5['registerAnnotation'](_0x39bfef),_0x432113['isResolved']&&this['_reconvertMarkers'](_0x29f88b);}else{if(!_0x432113){const _0x51bf38=this['getAllMarkersForId'](_0x29f88b);_0x5447bb['model']['change'](_0x4d4af9=>{for(const _0x253592 of _0x51bf38)_0x4d4af9['removeMarker'](_0x253592);});}}}}),_0x432113;}['_handleThreadMarker'](_0x1d4338,_0x2d74cc){const _0x5e7bca=this['_attachMarkerToThread'](_0x1d4338,_0x2d74cc);_0x5e7bca&&!_0x5e7bca['context']&&_0x5e7bca['setContext']({'type':'text','value':this['_getTextContext'](_0x2d74cc)});}['_initAriaMarkerChangeAnnouncements'](){const _0x316c13=this['editor'];rt(_0x316c13['model'],({left:_0x890b1f,entered:_0x6bff26})=>{for(const _0x5dd99d of _0x890b1f)if(mt(_0x5dd99d)){_0x316c13['ui']['ariaLiveAnnouncer']['announce'](N(_0x316c13['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x29df52 of _0x6bff26)if(mt(_0x29df52)){_0x316c13['ui']['ariaLiveAnnouncer']['announce'](N(_0x316c13['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x368341)));break;}});}}function dt(_0x47e308,_0x16e6ef){return _0x16e6ef?_0x47e308+':'+_0x16e6ef:_0x47e308;}function ht(_0x21d340,_0x5baf60){const _0x47f7fc=_0x5baf60['schema'],_0x1545f3=_0x5baf60['createRange'](_0x21d340['start']);for(const _0x543120 of _0x21d340['getWalker']()){const {type:_0x307f71,item:_0x48bf18,nextPosition:_0x551a71}=_0x543120;if('text'===_0x307f71||_0x47f7fc['isObject'](_0x48bf18)){const _0x5915ef=_0x5baf60['createPositionBefore'](_0x48bf18);_0x1545f3['isCollapsed']&&(_0x1545f3['start']=_0x5915ef),_0x1545f3['end']=_0x551a71;}}return _0x1545f3;}function mt(_0x5d2ba1){return'comment'===ft(_0x5d2ba1['name'])['group'];}class s extends _0x478bf2{['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 _0x4cee2b=this['editor'],_0x3ece75=_0x4cee2b['plugins']['get'](o),_0x2cccb8=_0x4cee2b['plugins']['get'](r),_0x580b2f=_0x4cee2b['plugins']['get'](y),_0x36a140=_0x4cee2b['plugins']['get'](b);_0x4cee2b['ui']['componentFactory']['add']('comment',()=>{const _0x15df81=this['_createUIButton'](_0x503639);return _0x15df81['tooltip']=!0x0,_0x15df81;}),_0x4cee2b['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x6f0215)),_0x36a140['addSourceCollector'](()=>{const _0xcd5212=[];for(const [_0x65ae1e,_0x451fd4]of _0x3ece75['_threadToController']){const _0x25aaa0=_0x2cccb8['getAllMarkersForId'](_0x65ae1e['id']),_0x31f58b=_0x25aaa0['map'](_0x24ae68=>_0x24ae68['getRange']());_0x25aaa0['length']>0x0&&_0xcd5212['push']([_0x451fd4['view'],_0x31f58b]);}return _0xcd5212;}),this['listenTo'](_0x580b2f,'change:activeAnnotations',(_0xc4ff0d,_0x3b8d29,_0x5c84d5)=>{const _0x108bcf=Array['from'](_0x5c84d5)['map'](_0x4809c9=>_0x4809c9['innerView'])['find'](_0x59edac=>_0x3ece75['_viewToController']['has'](_0x59edac));if(!_0x108bcf)return void(_0x2cccb8['activeMarker']=null);const _0x2f63f8=_0x3ece75['_viewToController']['get'](_0x108bcf)['model']['id'],_0x59bcfa='comment:'+_0x2f63f8;_0x2f63f8&&_0x2cccb8['hasMarkerForId'](_0x2f63f8)?_0x2cccb8['activeMarker']=_0x59bcfa:_0x2cccb8['activeMarker']&&(_0x2cccb8['activeMarker']=null);}),this['listenTo'](_0x3ece75,'removeCommentThread',(_0x11bb9f,{threadId:_0x1a6648,isFromAdapter:_0x125eb9})=>{!_0x125eb9&&_0x4cee2b['ui']['focusTracker']['isFocused']&&_0x2cccb8['hasMarkerForId'](_0x1a6648)&&_0x4cee2b['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3ece75,'addComment',(_0x2ba8bf,{threadId:_0x4f2b3b,isFromAdapter:_0x795b58})=>{if(_0x795b58||!_0x2cccb8['hasMarkerForId'](_0x4f2b3b)||!_0x3ece75['hasCommentThread'](_0x4f2b3b))return;0x1===_0x3ece75['getCommentThread'](_0x4f2b3b)['length']&&(_0x4cee2b['editing']['view']['focus'](),_0x2ba8bf['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x223e8d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27de6a;for(const _0x481897 in _0x223e8d){const _0x5d4245=_0x481897,_0x4eee6e=_0x223e8d[_0x5d4245];if('commentsLicenseKeyValid'==_0x4eee6e||'commentsLicenseKeyInvalid'==_0x4eee6e||'commentsLicenseKeyExpired'==_0x4eee6e||'commentsLicenseKeyDomainLimit'==_0x4eee6e||'commentsLicenseKeyNotAllowed'==_0x4eee6e||'commentsLicenseKeyEvaluationLimit'==_0x4eee6e||'commentsLicenseKeyUsageLimit'==_0x4eee6e){delete _0x223e8d[_0x5d4245],_0x27de6a=_0x4eee6e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x27de6a&&_0x223e8d['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x27de6a&&_0x223e8d['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x27de6a&&_0x223e8d['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x27de6a&&_0x223e8d['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x27de6a&&_0x223e8d['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x27de6a&&_0x223e8d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x55c30e){const _0x20b552=this['editor'],_0x182d3f=new _0x55c30e(_0x20b552['locale']),_0x176844=_0x20b552['commands']['get']('addCommentThread');return _0x182d3f['set']({'label':N(_0x20b552['locale'],'Comment'),'icon':_0x3ab7aa}),_0x182d3f['bind']('isEnabled')['to'](_0x176844,'isEnabled',_0x176844,'hasContent',(_0x2b0678,_0x41c55d)=>_0x2b0678&&_0x41c55d),this['listenTo'](_0x182d3f,'execute',()=>{_0x176844['execute']();}),_0x182d3f;}}class i extends _0x478bf2{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x3781ed){super(_0x3781ed),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x3e95ac,_0x15f411,_0x4383a1)=>{_0x4383a1?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x3003e8,_0x15cd1c]of this['editor']['commands'])_0x15cd1c['affectsData']&&'addCommentThread'!==_0x3003e8&&_0x15cd1c['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 _0x2a0147=this['editor']['editing']['view']['document'];this['listenTo'](_0x2a0147,'cut',_0x1bace7=>_0x1bace7['stop'](),{'priority':'highest'}),this['listenTo'](_0x2a0147,'clipboardInput',_0x108038=>_0x108038['stop'](),{'priority':'highest'}),this['listenTo'](_0x2a0147,'delete',_0x32da1c=>_0x32da1c['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x4eef11,_0x2fccf1]of this['editor']['commands'])_0x2fccf1['affectsData']&&'addCommentThread'!==_0x4eef11&&_0x2fccf1['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 _0x43ff48{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40492d){super(_0x40492d),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x5ddb5f=this['context']['plugins']['get'](y);this['listenTo'](_0x5ddb5f,'_activateAnnotation',(_0x40dd03,_0x69a226)=>{for(const _0x51dc4a of this['activeUIs']){const _0x6bb06=this['_uis']['get'](_0x51dc4a);(0x0,this['uisData']['get'](_0x51dc4a)['filter'])(_0x69a226)&&_0x6bb06['setActiveAnnotation'](_0x69a226);}}),this['listenTo'](_0x5ddb5f,'_deactivateAllAnnotations',()=>{for(const _0x3671b6 of this['activeUIs']){this['_uis']['get'](_0x3671b6)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5ddb5f['_visibleAnnotations'],'add',(_0x19b319,_0x33e44a)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x33e44a);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x14ee27){return this['activeUIs']['has'](_0x14ee27);}['activate'](_0x2ecc00,_0x10b9ed=this['defaultFilter']){const _0x552104=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x2ecc00))throw new _0x552662('annotationsuis-missing-ui',this,{'uiName':_0x2ecc00});this['isActive'](_0x2ecc00)&&this['deactivate'](_0x2ecc00),this['activeUIs']['add'](_0x2ecc00);const _0x21446e=new S();v({'source':_0x552104['_visibleAnnotations'],'target':_0x21446e,'filter':_0x10b9ed}),this['uisData']['set'](_0x2ecc00,{'collection':_0x21446e,'filter':_0x10b9ed});const _0x276af8=this['_uis']['get'](_0x2ecc00);_0x276af8['attach'](_0x21446e),this['listenTo'](_0x276af8,'change:activeAnnotation',(_0x8c199a,_0x56420c,_0x3bf5dc,_0x46065e)=>{_0x46065e&&_0x552104['_removeActiveAnnotation'](_0x46065e),_0x3bf5dc&&_0x552104['_addActiveAnnotation'](_0x3bf5dc);});}['deactivate'](_0x181343){if(this['activeUIs']['delete'](_0x181343),!this['_uis']['has'](_0x181343))throw new _0x552662('annotationsuis-missing-ui',this,{'uiName':_0x181343});const _0x505034=this['_uis']['get'](_0x181343);_0x505034['detach'](),this['stopListening'](_0x505034),this['uisData']['get'](_0x181343)['collection']['destroy'](),this['uisData']['delete'](_0x181343);}['switchTo'](_0x2d01e1){if(!this['_uis']['has'](_0x2d01e1))throw new _0x552662('annotationsuis-missing-ui',this,{'uiName':_0x2d01e1});const _0x7ef749=this['context']['plugins']['get'](y),_0xd57159=Array['from'](_0x7ef749['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x2d01e1);const _0x3fcb98=this['_uis']['get'](_0x2d01e1);_0x3fcb98['setActiveAnnotation'](_0xd57159),_0x3fcb98['_setSelectedAnnotations']&&_0xd57159&&_0x3fcb98['_setSelectedAnnotations']([_0xd57159]);}['deactivateAll'](){for(const _0x582047 of this['activeUIs'])this['deactivate'](_0x582047);}['register'](_0x1531c5,_0x5e438e){if(this['_uis']['has'](_0x1531c5))throw new _0x552662('annotationsuis-register-already-registered');if('function'!=typeof _0x5e438e['attach']||'function'!=typeof _0x5e438e['detach']||'function'!=typeof _0x5e438e['setActiveAnnotation'])throw new _0x552662('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1531c5,_0x5e438e);}['refilterAnnotations'](){const _0x274c33=this['context']['plugins']['get'](y)['collection'],_0xa87f3c=new Map(),_0x42e6af=Array['from'](this['activeUIs']);for(const _0x41db8f of this['activeUIs']){const _0x32fa40=this['uisData']['get'](_0x41db8f)['collection'];for(const _0x391587 of _0x32fa40)_0xa87f3c['set'](_0x391587,_0x41db8f);}for(const _0x2c2fa3 of _0x274c33){const _0x1faba8=_0xa87f3c['get'](_0x2c2fa3);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2c2fa3);const _0x4bffa8=_0x42e6af['find'](_0x345e49=>this['uisData']['get'](_0x345e49)['filter'](_0x2c2fa3));_0x1faba8!==_0x4bffa8&&(_0x1faba8&&this['uisData']['get'](_0x1faba8)['collection']['remove'](_0x2c2fa3),_0x4bffa8&&this['uisData']['get'](_0x4bffa8)['collection']['add'](_0x2c2fa3));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x67779c){const _0x3403ae=[];for(const _0x2a2b65 of this['activeUIs']){(0x0,this['uisData']['get'](_0x2a2b65)['filter'])(_0x67779c)&&_0x3403ae['push'](_0x2a2b65);}if(_0x3403ae['length']>0x1)throw new _0x552662('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3403ae,'annotationType':_0x67779c['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0xfda54d){super(_0xfda54d);const _0x21084b=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 _0x67b3fd(),this['focusCycler']=new _0x19c5c8({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x21084b['to']('class')],'style':{'minHeight':_0x21084b['to']('minHeight',_0x25e75d=>'number'==typeof _0x25e75d?_i(_0x25e75d+0xa):null)},'dir':_0xfda54d['uiLanguageDirection'],'role':'application','aria-label':N(_0xfda54d,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0xfda54d,'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',_0x5cad37=>{this['_updateItemPositionInFocusables'](_0x5cad37['source']);}),this['list']['forEach'](_0x24a02a=>{this['focusTracker']['add'](_0x24a02a['element']),this['_updateItemPositionInFocusables'](_0x24a02a);}),this['list']['on']('change',(_0x2b3c11,_0x4dd0ef)=>{for(const _0x5c591b of _0x4dd0ef['removed'])this['focusTracker']['remove'](_0x5c591b['element']),this['focusables']['remove'](_0x5c591b);for(const _0x18e692 of _0x4dd0ef['added'])this['focusTracker']['add'](_0x18e692['element']),this['_updateItemPositionInFocusables'](_0x18e692);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x25e704){const _0x4dc186=this['focusables']['getIndex'](_0x25e704);let _0x2c3e73,_0x183a92;for(const _0x1e6b14 of this['focusables'])if(_0x25e704['top']<_0x1e6b14['top']){_0x2c3e73=_0x1e6b14;break;}if(_0x183a92=_0x2c3e73?this['focusables']['getIndex'](_0x2c3e73):this['focusables']['length'],-0x1!==_0x4dc186){if(_0x4dc186===_0x183a92-0x1)return;this['focusables']['remove'](_0x25e704),_0x183a92=_0x2c3e73?this['focusables']['getIndex'](_0x2c3e73):this['focusables']['length'];}this['focusables']['add'](_0x25e704,_0x183a92);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1e93e1){super(_0x1e93e1),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x18df39,_0x126234)=>_0x18df39+_0x126234),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x215c1c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x215c1c['to']('isAnimationDisabled',_0x47d003=>_0x47d003?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x215c1c['to']('top',_0x5e1af1=>Ot(_0x5e1af1))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x504e73=this['element']['clientHeight'];_0x504e73&&(this['height']=_0x504e73);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x43ff48{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x371e50){super(_0x371e50),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 _0xddb7df=this['context']['config']['get']('sidebar.container');_0xddb7df&&this['setContainer'](_0xddb7df);}['setContainer'](_0x513c54){if(!g(_0x513c54))throw new _0x552662('sidebar-setcontainer-invalid-element');this['container']=_0x513c54;}['_attachToContainer']({viewClass:_0x19fcdd='',spaceBetweenItems:_0x519e41=0x19}={}){if(!g(this['container']))throw new _0x552662('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x19fcdd,this['_spaceBetweenItems']=_0x519e41;}['rearrange']({removedAnnotation:_0x228c99,previousAnnotation:_0x5c8d39,nextAnnotation:_0x30bfe4}){const _0x1692f0=this['getSidebarItemView'](_0x228c99);this['view']['list']['remove'](_0x1692f0),this['_destroySidebarItemView'](_0x228c99),_0x5c8d39&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5c8d39)),_0x30bfe4&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x30bfe4)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2597bf,activatedAnnotation:_0xf61ae,disableAnimationOnActivatedAnnotation:_0x3a6206}){if(this['_activeAnnotation']=_0xf61ae,_0x2597bf){_0x2597bf['isActive']=!0x1;const _0x246cb9=this['getSidebarItemView'](_0x2597bf);_0x246cb9&&_0x3a6206&&(_0x246cb9['isAnimationDisabled']=!0x1);}if(_0xf61ae){const _0x181c06=this['getSidebarItemView'](_0xf61ae);_0x181c06&&(_0xf61ae['isActive']=!0x0,_0x3a6206&&(_0x181c06['isAnimationDisabled']=!0x0,_0x181c06['top']+=0x1),this['_alignToTargetRect'](_0x181c06));}}['_detachFromContainer'](_0x487573){if(this['view']['element']['remove'](),_0x487573){for(const _0x2595b8 of _0x487573)this['_destroySidebarItemView'](_0x2595b8);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x45537b,_0x2974d5){_0x2974d5||(_0x2974d5=_0x45537b['view']);const _0xb86964=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0xb86964,_0x45537b),this['_annotationToSidebarItemView']['set'](_0x45537b,_0xb86964),_0xb86964['content']['add'](_0x2974d5),this['listenTo'](_0x45537b['view'],'change:targetRect',(_0x23aab7,_0x1257ec,_0x24f78b)=>{const _0x3fe6f3=this['_getTargetTop'](_0x45537b,_0x24f78b);_0xb86964['_targetTop']!=_0x3fe6f3&&(_0xb86964['_targetTop']=_0x3fe6f3,this['_setItemTop'](_0xb86964,_0x3fe6f3));}),this['listenTo'](_0xb86964,'change:top',()=>{this['_recalculate'](_0xb86964,'top');}),this['listenTo'](_0xb86964,'change:bottom',()=>{this['_recalculate'](_0xb86964,'bottom');}),this['_alignToTargetRect'](_0xb86964);const _0x4a151a=this['_getItemBefore'](_0xb86964);if(_0x4a151a)this['_alignAfterItem'](_0x4a151a,_0xb86964)||this['_alignToTargetRect'](_0xb86964);else this['_alignToTargetRect'](_0xb86964);return this['_updateLastItem'](),this['view']['list']['add'](_0xb86964),_0xb86964;}['_alignForTopChange'](_0x29ada4){if(!_0x29ada4['content']['length'])return;const _0x1ccb00=this['_getItemBefore'](_0x29ada4);if(!_0x1ccb00)return;const _0x83eb0b=this['_sidebarItemViewToAnnotation']['get'](_0x1ccb00),_0x526a16=this['_activeAnnotation'];_0x526a16&&_0x526a16===_0x83eb0b?this['_alignAfterItem'](_0x1ccb00,_0x29ada4):this['_alignBeforeItem'](_0x29ada4,_0x1ccb00);}['_alignForBottomChange'](_0x29b83d){if(!_0x29b83d['content']['length'])return;const _0x22eebb=this['_getItemAfter'](_0x29b83d);if(!_0x22eebb)return;const _0x2c16bf=this['_sidebarItemViewToAnnotation']['get'](_0x22eebb),_0x506304=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x14571c=this['_activeAnnotation'];_0x14571c&&_0x14571c===_0x2c16bf&&_0x506304?(this['_alignBeforeItem'](_0x22eebb,_0x29b83d),this['_alignAfterItem'](_0x29b83d,_0x22eebb)):_0x14571c&&_0x14571c===_0x2c16bf?this['_alignBeforeItem'](_0x22eebb,_0x29b83d):this['_alignAfterItem'](_0x29b83d,_0x22eebb);}['_recalculate'](_0x447216,_0x2110a5){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xb2921f,changedProp:_0x4924e3}of this['_recalculateBuffer'])'top'===_0x4924e3?this['_alignForTopChange'](_0xb2921f):this['_alignForBottomChange'](_0xb2921f);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x447216,'changedProp':_0x2110a5});}['getSidebarItemView'](_0x150af4){return this['_annotationToSidebarItemView']['get'](_0x150af4);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x22f87f){const _0x1171c0=this['getSidebarItemView'](_0x22f87f);this['stopListening'](_0x1171c0),this['stopListening'](_0x22f87f['view']),_0x1171c0['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x22f87f),this['_sidebarItemViewToAnnotation']['delete'](_0x1171c0);}['_createSidebarView'](){const _0x293724=new H(this['context']['locale']);return _0x293724['render'](),this['on']('change:_lastItem',(_0x50366c,_0x3db9a8,_0x516c15,_0x345a92)=>{_0x345a92&&_0x293724['unbind']('minHeight'),_0x516c15?_0x293724['bind']('minHeight')['to'](_0x516c15,'bottom'):_0x293724['minHeight']=null;}),_0x293724;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x33f94e){const _0x4adacb=this['_sidebarItemViewToAnnotation']['get'](_0x33f94e),_0x317e7a=_0x4adacb&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4adacb)-0x1);return _0x317e7a&&this['getSidebarItemView'](_0x317e7a)||null;}['_getItemAfter'](_0x2cc543){const _0x58e209=this['_sidebarItemViewToAnnotation']['get'](_0x2cc543),_0x5aadcc=_0x58e209&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x58e209)+0x1);return _0x5aadcc&&this['getSidebarItemView'](_0x5aadcc)||null;}['_alignBeforeItem'](_0x4c1754,_0x5cb4d7){_0x4c1754['updateHeight']();const _0x130559=G(_0x5cb4d7['bottom']+this['_spaceBetweenItems'],_0x4c1754['top']);return!!_0x130559&&(this['_setItemTop'](_0x5cb4d7,_0x5cb4d7['top']-_0x130559),!0x0);}['_alignAfterItem'](_0x3ad64d,_0x31143c){_0x3ad64d['updateHeight']();const _0x338f0f=G(_0x3ad64d['bottom']+this['_spaceBetweenItems'],_0x31143c['top']);return!!_0x338f0f&&(this['_setItemTop'](_0x31143c,_0x31143c['top']+_0x338f0f,!0x1),!0x0);}['_alignToTargetRect'](_0x58ac9a){const _0x10e130=this['_sidebarItemViewToAnnotation']['get'](_0x58ac9a);if(!_0x10e130||!_0x10e130['target']||!_0x10e130['targetRect'])return;const _0x300134=this['_getTargetTop'](_0x10e130,_0x10e130['targetRect']);this['_setItemTop'](_0x58ac9a,_0x300134);}['_getTargetTop'](_0x11b9c6,_0x1109f3){if(null===_0x1109f3)return 0x0;if(_0x11b9c6['target']instanceof _0x221bff)return _0x1109f3['top'];{const _0x1251b1=new _0x221bff(this['view']['element'])['top'];return _0x1109f3['top']-_0x1251b1;}}['_setItemTop'](_0x274680,_0x138acb,_0x502230=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x502230&&(_0x138acb=Math['max'](_0x138acb,this['_getMaxAvailableTop'](_0x274680))),_0x274680['top']=_0x138acb;}['_getMaxAvailableTop'](_0x163a6d){let _0xb0226=this['_getItemBefore'](_0x163a6d),_0x318ca7=0x0;for(;_0xb0226;)_0xb0226['updateHeight'](),_0x318ca7+=this['_spaceBetweenItems']+_0xb0226['height'],_0xb0226=this['_getItemBefore'](_0xb0226);return _0x318ca7;}}function G(_0x4aaf14,_0x5315c0){return Math['max'](_0x4aaf14-_0x5315c0,0x0);}function g(_0x84a6e5){return null!==_0x84a6e5&&'object'==typeof _0x84a6e5&&0x1===_0x84a6e5['nodeType'];}class e extends _0x43ff48{['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(_0x2f7eb4){super(_0x2f7eb4),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x842883(),this['_refreshPositioningDebounced']=_0x391904(()=>{_0x2f7eb4['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x5339d0=this['context']['plugins']['get'](j),_0x21480c=this['context']['plugins']['get'](z);_0x5339d0['register']('wideSidebar',this),_0x21480c['container']&&_0x5339d0['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4887f1){if(_0x4887f1===this['activeAnnotation'])return;const _0x10e5c5=this['context']['plugins']['get'](z);_0x10e5c5['_activeAnnotation']=_0x4887f1;const _0x2da9cc=this['activeAnnotation'];_0x10e5c5['refresh']({'blurredAnnotation':_0x2da9cc,'activatedAnnotation':_0x4887f1}),this['activeAnnotation']=_0x4887f1;}['attach'](_0x58fbdb){this['annotations']=_0x58fbdb;const _0x2357e1=this['context']['plugins']['get'](z);if(_0x2357e1['_annotations']=_0x58fbdb,this['isAttached'])throw new _0x552662('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2357e1,'set:container',()=>{this['detach'](),this['listenTo'](_0x2357e1,'change:container',_0x10df38=>{_0x10df38['off'](),this['attach'](_0x58fbdb);});}),_0x2357e1['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x249047=_0x3d0ca2=>{_0x3d0ca2['updateTargetRect'](),_0x2357e1['addAnnotation'](_0x3d0ca2);};for(const _0x56119d of _0x58fbdb)_0x249047(_0x56119d);this['listenTo'](_0x58fbdb,'add',(_0x368e2c,_0x1c21fc)=>{_0x249047(_0x1c21fc);}),this['listenTo'](_0x58fbdb,'remove',(_0x3c9e2f,_0x560aaf,_0x558015)=>{_0x2357e1['rearrange']({'removedAnnotation':_0x560aaf,'previousAnnotation':_0x58fbdb['get'](_0x558015-0x1),'nextAnnotation':_0x58fbdb['get'](_0x558015+0x1)}),_0x560aaf===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x58fbdb,'focus',(_0x3505a7,_0x3a3d13)=>{this['setActiveAnnotation'](_0x3a3d13);}),this['listenTo'](_0x58fbdb,'blur',()=>{this['setActiveAnnotation'](null);});const _0x24e595=this['context']instanceof _0x4aa052?this['context']['editors']:new _0x842883([this['context']]);for(const _0x56c247 of _0x24e595)this['_integrateWithEditorAnnotations'](_0x56c247);this['listenTo'](_0x24e595,'add',(_0x42be1a,_0x3dc466)=>{this['listenTo'](_0x3dc466,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3dc466);});}),this['listenTo'](_0x24e595,'remove',(_0x5b8e59,_0x416375)=>{_0x416375['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x416375['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x552662('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x17bb91=this['context']['plugins']['get'](z);_0x17bb91['_detachFromContainer'](this['annotations']),this['stopListening'](_0x17bb91),this['stopListening'](this['annotations']),this['context']instanceof _0x4aa052&&this['stopListening'](this['context']['editors']);for(const _0xd3cbf6 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0xd3cbf6);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x119099){if(!_0x119099['plugins']['has']('EditorAnnotations'))return;const _0x1c354a=_0x119099['plugins']['get']('EditorAnnotations'),_0xa91ad7=()=>{const _0x439d0b=_0x1c354a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x439d0b[0x0]||null);};this['listenTo'](_0x1c354a,'refresh',_0xa91ad7),this['listenTo'](_0x1c354a,'blur',(_0xa40863,{isAnnotationTracked:_0x1b9746})=>{this['activeAnnotation']&&_0x1b9746(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1c354a,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x3b1986=>{_0x1c354a['hasDomSelection']()&&(_0xa91ad7(),_0x3b1986['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1c354a);}['_destroyEditorAnnotationsIntegration'](_0x6cf8c8){this['stopListening'](_0x6cf8c8),this['_editorAnnotations']['remove'](_0x6cf8c8);}}class C extends _0x503639{['counterView'];constructor(_0x532d13){super(_0x532d13);const _0x150297=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4f10e5,_0x1168d7)=>_0x4f10e5?'...':_0x1168d7['toString']()),this['set']('annotationType',''),this['icon']=_0x3ab7aa,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x150297['to']('annotationType',_0x416a4e=>'ck-annotation-counter__badge--'+_0x416a4e),_0x150297['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x150297['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x43ff48{['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(_0x4d0cfc){super(_0x4d0cfc),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x122649())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x842883(),this['_refreshPositioningDebounced']=_0x391904(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x125bcc(this['context']['locale']),this['balloonPanelView']=new _0x3ec0f5(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x59125b){this['annotations']=_0x59125b;const _0xea4f60=this['context']['plugins']['get'](z),_0x571cc8=this['balloonPanelView'];if(_0xea4f60['_annotations']=_0x59125b,this['isAttached'])throw new _0x552662('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xea4f60,'set:container',()=>{this['detach'](),this['listenTo'](_0xea4f60,'change:container',_0xdffeca=>{_0xdffeca['off'](),this['attach'](_0x59125b);});}),_0xea4f60['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2acc20=_0xa8f2de=>{const _0x39092e=new C(this['context']['locale']);_0xea4f60['addAnnotation'](_0xa8f2de,_0x39092e),this['_annotationToNarrowView']['set'](_0xa8f2de,_0x39092e),_0x39092e['bind']('isDirty','annotationType','number')['to'](_0xa8f2de['view'],'isDirty','type','length'),_0x39092e['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x571cc8['content']['first']!==_0xa8f2de['view']?(this['_showBalloon'](_0xa8f2de),_0xa8f2de['view']['element']['focus'](),this['setActiveAnnotation'](_0xa8f2de)):this['setActiveAnnotation'](null);});};for(const _0x1acf38 of _0x59125b)_0x2acc20(_0x1acf38);this['listenTo'](_0x59125b,'add',(_0x2ca830,_0x517688)=>{_0x2acc20(_0x517688);}),this['listenTo'](_0x59125b,'remove',(_0x47fecc,_0x331817,_0x489b7b)=>{this['_annotationToNarrowView']['get'](_0x331817)['destroy'](),this['_annotationToNarrowView']['delete'](_0x331817),_0xea4f60['rearrange']({'removedAnnotation':_0x331817,'previousAnnotation':_0x59125b['get'](_0x489b7b-0x1),'nextAnnotation':_0x59125b['get'](_0x489b7b+0x1)}),_0x331817===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x59125b,'focus',(_0x17a08c,_0x51da76)=>{this['setActiveAnnotation'](_0x51da76);}),this['listenTo'](_0x59125b,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x59c7b0,_0x3d04e2)=>{_0x3d04e2['keyCode']===_0x25b2ac['esc']&&_0x571cc8['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x571cc8['content']['first']),this['_hideBalloon'](),_0x3d04e2['stopPropagation'](),_0x3d04e2['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x8140a,_0x3ffd75)=>{const _0xae1a1e=_0x3ffd75['target'];_0x571cc8['isVisible']&&_0x571cc8['element']['contains'](_0xae1a1e)||_0xea4f60['view']['element']['contains'](_0xae1a1e)||_0x8140a['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0xc17966=>_0xc17966['contains'](_0xae1a1e))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x594056=this['context']instanceof _0x4aa052?this['context']['editors']:new _0x842883([this['context']]);for(const _0x4256e1 of _0x594056)this['_integrateWithEditorAnnotations'](_0x4256e1);this['listenTo'](_0x594056,'add',(_0x4f36ae,_0x3a28ec)=>{this['listenTo'](_0x3a28ec,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3a28ec);});}),this['listenTo'](_0x594056,'remove',(_0x4ec56,_0x4a6feb)=>{_0x4a6feb['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4a6feb['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x25e580){if(_0x25e580===this['activeAnnotation'])return;const _0x29a4fc=this['context']['plugins']['get'](z);if(_0x29a4fc['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x25e580,'disableAnimationOnActivatedAnnotation':!0x0}),_0x25e580)_0x29a4fc['getSidebarItemView'](_0x25e580)?this['_showBalloon'](_0x25e580):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x25e580;}['detach'](){if(!this['isAttached'])throw new _0x552662('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x591827=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5f1e74=>_0x5f1e74['destroy']()),this['_annotationToNarrowView']['clear'](),_0x591827['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4aa052&&this['stopListening'](this['context']['editors']);for(const _0x124c9b of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x124c9b);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'](_0x2ecd23){if(!_0x2ecd23['plugins']['has']('EditorAnnotations'))return;const _0x5ef940=_0x2ecd23['plugins']['get']('EditorAnnotations'),_0x592089=this['context']['plugins']['get'](z),_0x3fb5ee=this['annotations'],_0x58a469=this['balloonPanelView'],_0x54ca52=()=>{const _0x295874=_0x5ef940['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x295874),this['setActiveAnnotation'](_0x295874[0x0]||null);};this['listenTo'](_0x5ef940,'refresh',_0x54ca52),this['listenTo'](_0x5ef940,'blur',(_0xdcaddd,{isAnnotationTracked:_0x415037})=>{this['activeAnnotation']&&_0x415037(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x5ef940,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3fb5ee,'blur',_0x468f2d=>{_0x5ef940['hasDomSelection']()&&_0x468f2d['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x212877,_0x50c87b)=>{const _0x23e25c=_0x50c87b['target'];_0x58a469['isVisible']&&_0x58a469['element']['contains'](_0x23e25c)||_0x592089['view']['element']['contains'](_0x23e25c)||this['activeAnnotation']&&_0x5ef940['hasDomSelection']()&&(_0x54ca52(),_0x212877['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x5ef940);}['_destroyEditorAnnotationsIntegration'](_0x125f9d){_0x125f9d&&(this['stopListening'](_0x125f9d),this['_editorAnnotations']['remove'](_0x125f9d));}['_setSelectedAnnotations'](_0x1e562f){for(const _0x3f109e of this['_selectedAnnotations'])_0x1e562f['includes'](_0x3f109e)||this['_manuallyClosedAnnotationViews']['delete'](_0x3f109e['view']);this['_selectedAnnotations']=_0x1e562f;}['_refreshPositioning'](){const _0x37d17d=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x37d17d['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x2bcb22){if(this['_manuallyClosedAnnotationViews']['has'](_0x2bcb22['view']))return;const _0x3850da=this['balloonPanelView']['content']['first'];_0x3850da!==_0x2bcb22['view']?(_0x3850da&&this['_detachListeners'](_0x3850da),this['_attachListeners'](_0x2bcb22['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x2bcb22['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x53b909=this['balloonPanelView']['content']['first'],_0x6013fe=_0x53b909&&this['annotations']['getByView'](_0x53b909);if(!_0x6013fe||!this['_annotationToNarrowView']['has'](_0x6013fe))return;const _0x2819a2=this['_annotationToNarrowView']['get'](_0x6013fe)['element'],_0x1b5e6e=(function(){const _0xd5b076=_0x3ec0f5['defaultPositions'];return[_0xd5b076['southArrowNorthEast'],_0xd5b076['northArrowSouthEast'],_0xd5b076['southArrowNorth'],_0xd5b076['northArrowSouth'],_0xd5b076['southArrowNorthWest'],_0xd5b076['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x2819a2,'positions':_0x1b5e6e});}['_hideBalloon'](){const _0x361fa6=this['balloonPanelView'],_0x1b9420=_0x361fa6['content']['first'];_0x1b9420&&(this['_detachListeners'](_0x1b9420),_0x361fa6['unpin'](),_0x361fa6['content']['clear']());}['_attachListeners'](_0x296e9a){this['listenTo'](_0x296e9a,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x296e9a,'Esc',(_0x3b1ca3,_0x1b76df)=>{this['_manuallyClosedAnnotationViews']['add'](_0x296e9a),this['_hideBalloon'](),_0x1b76df();});}['_detachListeners'](_0x2fa906){this['stopListening'](_0x2fa906);}}class c extends _0x478bf2{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x235f3d,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31921a){super(_0x31921a),_0x31921a['editing']['view']['addObserver'](_0x14edff),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x31921a['plugins']['get'](_0x235f3d),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x391904(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x424703=this['editor']['plugins']['get'](j);_0x424703['context']===this['editor']&&(_0x424703['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xc229b1,_0x589803)=>{const _0x3a41ea=this['_balloon'];if(this['isAttached']&&_0x3a41ea['visibleView']){const _0x226865=this['annotations']['getByView'](_0x3a41ea['visibleView']);_0x226865&&this['_closeAnnotation'](_0x226865),_0x589803();}}));}['afterInit'](){const _0x1be0a2=this['editor']['plugins']['get'](j);_0x1be0a2['context']===this['editor']&&(_0x1be0a2['hasActive']()||_0x1be0a2['switchTo']('inline'));}['setActiveAnnotation'](_0x53b0e2){_0x53b0e2!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x53b0e2&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x53b0e2)&&this['_addAnnotationToBalloon'](_0x53b0e2,!0x0),_0x53b0e2['isActive']=!0x0),_0x53b0e2||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x53b0e2);}['attach'](_0x2b8b29){this['annotations']=_0x2b8b29;const _0x454788=this['editor']['plugins']['get'](j),_0x22583f=this['_balloon'];if(this['isAttached'])throw new _0x552662('inlineannotations-attach-already-attached',this);if(_0x454788['context']!==this['editor'])throw new _0x552662('inlineannotations-not-allowed-with-context',this);const _0x1322f4=this['editor']['plugins']['get'](b);this['listenTo'](_0x1322f4,'refresh',()=>{const _0x57544a=_0x1322f4['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x3602fb,_0x46f283;!this['_forceRefresh']&&(_0x3602fb=_0x57544a,_0x46f283=this['_selectedAnnotations'],_0x3602fb['length']===_0x46f283['length']&&_0x3602fb['every'](_0xffc28d=>_0x46f283['includes'](_0xffc28d)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x57544a),this['setActiveAnnotation'](_0x57544a[0x0]||null));}),this['listenTo'](_0x1322f4,'blur',(_0x2339c9,{isAnnotationTracked:_0x1bd371})=>{this['activeAnnotation']&&_0x1bd371(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1322f4,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x11029b,_0x171284,_0x4846ad)=>{_0x4846ad||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2b8b29,'remove',(_0x4dcabf,_0x490033)=>{this['_removeAnnotationFromBalloon'](_0x490033),_0x490033===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x22583f,'change:visibleView',(_0x3e8c70,_0x2efac6,_0x494ac5,_0x538f99)=>{_0x538f99&&this['stopListening'](_0x538f99);const _0x56e811=_0x2b8b29['getByView'](_0x494ac5);_0x494ac5&&_0x56e811&&(this['listenTo'](_0x494ac5,'change:height',()=>{_0x22583f['updatePosition']();}),this['listenTo'](_0x494ac5,'Esc',()=>{this['_closeAnnotation'](_0x56e811),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x56e811&&this['setActiveAnnotation'](_0x56e811));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x22583f['visibleView']&&(_0x2b8b29['getByView'](_0x22583f['visibleView'])&&_0x22583f['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 _0x552662('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xeda3e1 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xeda3e1);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x3a205c){for(const _0x1ba4d4 of this['_selectedAnnotations'])_0x3a205c['includes'](_0x1ba4d4)||this['_manuallyClosed']['delete'](_0x1ba4d4);for(const _0x372c8c of this['annotations'])_0x3a205c['includes'](_0x372c8c)||this['_removeAnnotationFromBalloon'](_0x372c8c);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x1ccf65 of _0x3a205c)this['_addAnnotationToBalloon'](_0x1ccf65);}this['_selectedAnnotations']=_0x3a205c;}['_addAnnotationToBalloon'](_0x319c95,_0xbbb124=!0x1){this['_manuallyClosed']['has'](_0x319c95)||(this['_addedAnnotations']['has'](_0x319c95)||this['_balloon']['hasView'](_0x319c95['view'])||(this['_addedAnnotations']['add'](_0x319c95),this['_balloon']['add']({'stackId':_0x319c95['view']['id'],'view':_0x319c95['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x319c95)}})),_0xbbb124&&this['_balloon']['showStack'](_0x319c95['view']['id']));}['_getBalloonTargetForAnnotation'](_0xce2923){const _0x516e3d=_0xce2923['target'],_0x1dbbaf=this['editor']['editing']['view'],_0x6d753=_0x1dbbaf['document']['selection']['getFirstRange'](),_0x217ed2=_0x1dbbaf['domConverter']['viewRangeToDom'](_0x6d753);if(_0x217ed2['collapse'](!0x0),_0x516e3d){if(_0x516e3d instanceof _0x221bff)return _0x516e3d;let _0x4e769c=[];for(const _0x35f05c of _0x516e3d)_0x4e769c['push'](...F(_0x35f05c['getClientRects']()));_0x4e769c=function(_0x27a1b0){const _0x14a450=[];let _0x1f2ed5=_0x27a1b0[0x0];for(let _0x42ce00=0x1;_0x42ce00<_0x27a1b0['length'];_0x42ce00++)P(_0x1f2ed5,_0x27a1b0[_0x42ce00])?_0x1f2ed5['width']+=_0x27a1b0[_0x42ce00]['width']:(_0x14a450['push'](_0x1f2ed5),_0x1f2ed5=_0x27a1b0[_0x42ce00]);return _0x14a450['push'](_0x1f2ed5),_0x14a450;}(_0x4e769c);const _0x2e693f=_0x217ed2['getBoundingClientRect']();return _0x4e769c['find'](_0x429234=>_0x429234['top']<=_0x2e693f['top']&&_0x429234['bottom']>=_0x2e693f['bottom']&&_0x429234['left']<=_0x2e693f['left']&&_0x429234['right']>=_0x2e693f['right'])||_0x4e769c[0x0];}return _0xce2923['targetRect']||_0x217ed2;}['_removeAnnotationFromBalloon'](_0x5f2c0f){this['_addedAnnotations']['has'](_0x5f2c0f)&&this['_balloon']['hasView'](_0x5f2c0f['view'])&&(this['_addedAnnotations']['delete'](_0x5f2c0f),this['_balloon']['remove'](_0x5f2c0f['view']));}['_closeAnnotation'](_0x4df32d){this['_manuallyClosed']['add'](_0x4df32d),this['_removeAnnotationFromBalloon'](_0x4df32d);}}function F(_0x171a7c){return Array['from'](_0x171a7c)['map'](DOMRect['fromRect']);}function P(_0x39c4fe,_0xc6f783){return _0x39c4fe['top']===_0xc6f783['top']&&_0x39c4fe['bottom']===_0xc6f783['bottom']&&_0x39c4fe['right']===_0xc6f783['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x37ef2e,_0x38c3b8){super(_0x37ef2e),this['set']('isEmpty',!_0x38c3b8['length']),this['focusTracker']=new _0x67b3fd(),this['_annotationViews']=_0x38c3b8,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x19c5c8({'focusables':_0x38c3b8,'focusTracker':this['focusTracker']}),this['listenTo'](_0x38c3b8,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x38c3b8,'remove',(_0x23ef70,_0x398e17)=>{_0x398e17['isActive']&&this['focus'](),_0x38c3b8['length']||(this['isEmpty']=!0x0);});const _0x2759aa=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x37ef2e,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x38c3b8},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2759aa['if']('isEmpty','ck-hidden',_0x33e478=>!_0x33e478)]},'children':[{'text':N(_0x37ef2e,'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 _0xa264d9 of this['_annotationViews'])this['focusTracker']['add'](_0xa264d9['element']);this['_annotationViews']['on']('change',(_0x3f1c0b,{added:_0x2770ce,removed:_0x39f56b})=>{for(const _0x573bb9 of _0x2770ce)this['focusTracker']['add'](_0x573bb9['element']);for(const _0x4219c9 of _0x39f56b)this['focusTracker']['remove'](_0x4219c9['element']);});}}class p extends _0x43ff48{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x4e839e){super(_0x4e839e),this['archivedThreads']=new _0x842883();}['init'](){const _0x1af90f=this['context'],_0x453921=_0x1af90f['plugins']['get'](o),_0x209ff1=_0x1af90f['plugins']['get'](y);this['listenTo'](_0x453921,'addCommentThread',(_0x11fb37,{threadId:_0x2b9ce7})=>{const _0x141c59=_0x453921['getCommentThread'](_0x2b9ce7);_0x141c59['archivedAt']&&this['archivedThreads']['add'](_0x141c59,this['_calculatePosition'](_0x141c59['archivedAt'])),this['listenTo'](_0x141c59,'change:archivedAt',(_0x1dc11b,_0x28e716,_0x48f63a)=>{_0x48f63a?this['archivedThreads']['has'](_0x141c59)||this['archivedThreads']['add'](_0x141c59,this['_calculatePosition'](_0x141c59['archivedAt'])):this['archivedThreads']['has'](_0x141c59)&&this['archivedThreads']['remove'](_0x141c59);});}),this['listenTo'](_0x453921,'removeCommentThread',(_0x3f4bc1,{threadId:_0x139839})=>{const _0x3447c8=_0x453921['getCommentThread'](_0x139839);this['stopListening'](_0x3447c8),this['archivedThreads']['has'](_0x3447c8)&&this['archivedThreads']['remove'](_0x3447c8);},{'priority':'highest'}),this['listenTo'](_0x209ff1['collection'],'focus',(_0x57f9bf,_0x231bd0)=>{_0x231bd0['isVisible']||(_0x231bd0['isActive']=!0x0,_0x209ff1['activate'](_0x231bd0));});}['_calculatePosition'](_0x291e89){const _0x403cef=[...this['archivedThreads']]['findIndex'](_0x56b291=>_0x56b291['archivedAt']<_0x291e89);return _0x403cef>-0x1?_0x403cef:this['archivedThreads']['length'];}}class a extends _0x478bf2{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x104467];}constructor(_0x7287b9){super(_0x7287b9),this['annotationViews']=new _0x3aecc1(),this['_pendingThreads']=[];}['init'](){const _0x4cf87f=this['editor'],_0x273733=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x4cf87f['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x503639,!0x0)),_0x4cf87f['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x465a3e=this['_createCommentsArchiveButton'](_0x6f0215);return _0x465a3e['set']({'role':'menuitemcheckbox'}),_0x465a3e;});const _0x199ef6=_0x4cf87f['plugins']['get'](p),_0x5331d3=_0x4cf87f['plugins']['get']('Annotations'),_0x661e0d=_0x4cf87f['plugins']['get']('CommentsRepository');_0x199ef6['archivedThreads']['forEach'](_0x5d2f1d=>{this['_handleNewThread'](_0x5d2f1d);}),this['listenTo'](_0x199ef6['archivedThreads'],'add',(_0x4e6376,_0x39bb89)=>{this['_handleNewThread'](_0x39bb89);}),this['listenTo'](_0x5331d3['collection'],'add',(_0x264aa1,_0x33f966)=>{const _0x201824=this['_pendingThreads']['find'](_0x110c63=>{const _0x3f9383=_0x661e0d['_threadToController']['get'](_0x110c63);return _0x3f9383&&_0x33f966['innerView']===_0x3f9383['view'];});if(_0x201824){const _0x46de72=this['_calculatePosition'](_0x201824['archivedAt']);this['_addAnnotationToArchive'](_0x33f966,_0x46de72),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x201824),0x1);}}),this['listenTo'](_0x199ef6['archivedThreads'],'remove',(_0xbe38f9,_0x11a48c)=>{const _0x54f7b9=_0x4cf87f['config']['get']('collaboration.channelId');if(!_0x54f7b9||_0x11a48c['channelId']===_0x54f7b9){if(this['_pendingThreads']['includes'](_0x11a48c))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x11a48c),0x1);else{const _0x48c19e=_0x661e0d['_threadToController']['get'](_0x11a48c),_0x117583=_0x5331d3['getByInnerView'](_0x48c19e['view']);this['annotationViews']['remove'](_0x117583['view']),this['stopListening'](_0x117583),this['stopListening'](_0x117583['focusableElements']);}}}),this['listenTo'](_0x5331d3['collection'],'add',(_0x1b0d17,_0x819808)=>{this['listenTo'](_0x819808,'escape',_0x273733);}),this['listenTo'](_0x5331d3['collection'],'remove',(_0x5505d7,_0x5c3367)=>{this['stopListening'](_0x5c3367,'escape',_0x273733);});}['_addAnnotationToArchive'](_0xa98ec3,_0x275599){this['listenTo'](_0xa98ec3,'set:isVisible',_0x12f437=>{_0x12f437['return']=!0x1,_0x12f437['stop']();}),this['annotationViews']['add'](_0xa98ec3['view'],_0x275599);}['_handleNewThread'](_0x16c645){const _0x4528db=this['editor']['plugins']['get']('CommentsRepository'),_0x11987c=this['editor']['plugins']['get']('Annotations'),_0x26b75f=this['editor']['config']['get']('collaboration.channelId');if(!_0x26b75f||_0x16c645['channelId']===_0x26b75f){const _0x5b8b17=_0x4528db['_threadToController']['get'](_0x16c645);if(!_0x5b8b17)return void this['_pendingThreads']['push'](_0x16c645);const _0xcca8a1=this['_calculatePosition'](_0x16c645['archivedAt']),_0x1d8537=_0x11987c['getByInnerView'](_0x5b8b17['view']);_0x1d8537['isVisible']&&_0x11987c['_visibleAnnotations']['remove'](_0x1d8537),this['_addAnnotationToArchive'](_0x1d8537,_0xcca8a1);}}['_calculatePosition'](_0x15162b){const _0xafcc18=this['editor']['config']['get']('collaboration.channelId'),_0x3ebf11=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x429f92=>_0x429f92['channelId']===_0xafcc18)['findIndex'](_0x19f4ad=>_0x19f4ad['archivedAt']<_0x15162b);return _0x3ebf11<0x0||_0x3ebf11>this['annotationViews']['length']?this['annotationViews']['length']:_0x3ebf11-0x1;}['_toggleDialog'](){const _0x290c66=this['editor'],_0x4c7c76=_0x290c66['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x290c66['locale'],this['annotationViews'])),'commentsArchive'===_0x4c7c76['id']?_0x4c7c76['hide']():_0x4c7c76['show']({'id':'commentsArchive','title':N(_0x290c66['locale'],'COMMENTS_ARCHIVE'),'icon':_0x2e02cd,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x493476['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x12b9b0,_0x1de393=!0x1){const _0x41f6de=this['editor']['locale'],_0x1c0faa=this['editor']['plugins']['get']('Dialog'),_0x29cfc8=new _0x12b9b0(_0x41f6de);return _0x29cfc8['bind']('isEnabled')['to'](this,'isEnabled'),_0x29cfc8['bind']('isOn')['to'](_0x1c0faa,'id',_0xf92c8=>'commentsArchive'===_0xf92c8),_0x29cfc8['set']({'label':N(_0x41f6de,'COMMENTS_ARCHIVE'),'icon':_0x2e02cd,'isToggleable':!0x0}),_0x1de393&&(_0x29cfc8['tooltip']=!0x0),this['listenTo'](_0x29cfc8,'execute',()=>this['_toggleDialog']()),_0x29cfc8;}['_hideDialogOnAnnotationEscape']=_0x188bd9=>{const _0x4a799b=_0x188bd9['source'];if(!this['annotationViews']['has'](_0x4a799b['view']))return;const _0x1ff8f3=this['editor']['plugins']['get']('Dialog');_0x1ff8f3['isOpen']&&'commentsArchive'===_0x1ff8f3['id']&&(_0x1ff8f3['hide'](),_0x188bd9['stop']());};}class gi extends _0x478bf2{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
23
+ import{Editor as _0x22aa3e,ContextPlugin as _0x5bb154,PendingActions as lt,Command as _0x37788d,Plugin as _0x4d61fb,Context as _0x11113e}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0xe27a3f,uid as _0x5920b0,KeystrokeHandler as jt,FocusTracker as _0x151ecd,diff as _0x1c7c0c,Collection as _0x4b4c8c,Rect as _0x318b84,CKEditorError as _0x2df15f,first as _0x50c98e,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x48ff8e,keyCodes as _0x4f6592}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x49f966,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x1a271c,trimHtml as ts,LateFocusDropdownButtonView as _0x4b288f,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x1e512c}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x1734fd}from'es-toolkit/compat';import{IconUndo as _0x217818,IconCheck as _0x4346b3,IconPencil as _0x4bdc0a,IconRemoveComment as _0x405af1,IconThreeVerticalDots as _0x3be590,IconAddComment as _0x5ba027,IconCommentsArchive as _0x51a018}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x4e2b55,ButtonView as _0xabb329,ViewCollection as _0xb0c59c,createDropdown as _0x3e1b91,ListView as _0x2106f2,focusChildOnDropdownOpen as _0x47d6ad,ListItemView as _0x5c7563,MenuBarMenuListItemButtonView as _0x2c6989,BodyCollection as _0x50ea24,BalloonPanelView as _0x2d08b9,ContextualBalloon as _0x5b4ed0,Dialog as _0x5a4ac0,DialogViewPosition as _0x39f908}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x431698}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 _0x267ea4}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x41480f}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0xe27a3f(){['model'];['view'];constructor(_0x3db603,_0x10a033){super(),this['model']=_0x3db603,this['model']['_isAttached']=!0x0,this['view']=_0x10a033,this['listenTo'](_0x10a033,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x10a033,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x10a033,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x10a033,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x10a033,'addComment',(_0x1f0118,_0x116a64)=>this['addComment'](_0x116a64)),this['listenTo'](_0x10a033,'updateComment',(_0x3956dc,_0x4d148e,_0x2cff1)=>this['updateComment'](_0x4d148e,_0x2cff1)),this['listenTo'](_0x10a033,'removeComment',(_0x7518ac,_0xb7db3)=>this['removeComment'](_0xb7db3));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x331e5d){this['model']['addComment']({'content':_0x331e5d,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x18bb53,_0x417fd1){this['model']['getComment'](_0x18bb53)['update']({'content':_0x417fd1});}['removeComment'](_0x3438c3){this['model']['getComment'](_0x3438c3)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x3c4fbb,_0x5199f9,_0x466729){const t=_0x3c4fbb['t'];switch(_0x5199f9){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'},_0x466729);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'},_0x466729);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'},_0x466729);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'},_0x466729);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x466729);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'},_0x466729);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'},_0x466729);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'},_0x466729);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(_0x3224a9,_0x10c1e7){super(_0x3224a9);const _0x3d8f98=_0x5920b0();this['main']=this['createCollection'](),this['editable']=new Vt(_0x3224a9,_0x10c1e7,void 0x0,{'label':()=>N(_0x3224a9,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x3224a9['uiLanguageDirection'],'lang':_0x3224a9['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x3d8f98},'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(_0x55ad78){super(_0x55ad78),this['view']=new Rt(_0x55ad78['locale'],_0x55ad78['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2ac8c2=this['editor']['editing']['view'],_0xa7ffe5=this['view']['editable'],_0x5dda8c=_0x2ac8c2['document']['getRoot']();_0xa7ffe5['name']=_0x5dda8c['rootName'],this['view']['render']();const _0x27b0c0=_0xa7ffe5['element'];this['setEditableElement'](_0xa7ffe5['name'],_0x27b0c0),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2ac8c2['attachDomRoot'](_0x27b0c0),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0xe27a3f(_0x22aa3e){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x4d883d={}){function _0x4dbb8f(_0x5df770){return _0x5df770['map'](_0x45c7d6=>String['fromCharCode'](_0x45c7d6))['join']('');}(_0x4d883d=Object['assign']({},_0x4d883d))['plugins']||(_0x4d883d['plugins']=hs['defaultPlugins']),super(_0x4d883d),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[_0x4dbb8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4dbb8f([0x76,0x69,0x65,0x77])][_0x4dbb8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4dbb8f([0x61,0x75,0x74,0x6f]),this[_0x4dbb8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4dbb8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4dbb8f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4dbb8f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4dbb8f([0x6f,0x6b])});}['create'](){const _0xbc472d=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xbc472d))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x51c3a1=>{const _0xd97cf0=this['model']['document']['getRoot'](),_0x2d11cc=_0xd97cf0&&_0xd97cf0['getChild'](_0xd97cf0['childCount']-0x1);_0x51c3a1['setSelection'](_0x2d11cc,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x1b5959=this['editing']['view'],_0x37c700=_0x1b5959['document']['getRoot'](),_0x5715bf=_0x37c700['getChild'](0x0);_0x37c700['childCount']>0x1||!_0x5715bf||'p'!=_0x5715bf['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x1b5959,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x5715bf['placeholder']=this['placeholder']),Ft({'view':_0x1b5959,'element':_0x5715bf,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5715bf);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3d5767,_0x3c036a={}){super(_0x3d5767),this['editor']=null,this['_editorConfig']=_0x3c036a,this['set']('value',_0x3c036a['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x3d5767,'Reply...')),this['set']('submitLabel',N(_0x3d5767,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x151ecd(),this['focusCycler']=new _0x4e2b55({'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',(_0x23b80f,_0x1b1d91)=>{this['cancelButtonView']['fire']('execute'),_0x1b1d91();}),this['keystrokes']['set']('Ctrl+Enter',(_0x1faa51,_0x314649)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x314649());}),this['on']('submit',(_0x15b6e3,_0x4a0272)=>{_0x4a0272['length']>0xfde8?(alert(N(_0x3d5767,'TOO_LONG_COMMENT_ALERT',[_0x4a0272['length'],0xfde8])),_0x15b6e3['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 _0x76e994=this['editor'];this['element']['insertBefore'](_0x76e994['ui']['element'],this['element']['firstChild']),_0x76e994['model']['document']['on']('change',()=>this['value']=_0x76e994['getData']()),_0x76e994['bind']('placeholder')['to'](this),this['focusables']['add'](_0x76e994['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x5bfd7c){-0x1===_0x5bfd7c?(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:_0x39a547}=this,_0x1c9c15=new _0xabb329(_0x39a547);return _0x1c9c15['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x1c9c15['withText']=!0x0,_0x1c9c15['bind']('label')['to'](this,'submitLabel'),_0x1c9c15['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x1c9c15['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x38bb3f,_0x3d8884)=>!_0x3d8884&&!!_0x38bb3f['trim']()),_0x1c9c15;}['_createCancelButton'](){const {locale:_0x1f14b4}=this,_0x40a54f=new _0xabb329(_0x1f14b4);return _0x40a54f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x40a54f['label']=N(_0x1f14b4,'Cancel'),_0x40a54f['withText']=!0x0,_0x40a54f['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x40a54f;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x592e22=>{this['focusTracker']['add'](_0x592e22['element']);}),this['focusables']['on']('change',(_0x2ccbb7,_0xe7696)=>{for(const _0x297e82 of Array['from'](_0xe7696['added'])['reverse']())this['focusTracker']['add'](_0x297e82['element']);});}}class ie extends kt{constructor(_0x4bb21f,_0x1c870d,_0x39bb80){super(_0x4bb21f),this['commentInputView']=new es(_0x4bb21f,_0x39bb80),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x127d81,_0x19513e)=>_0x127d81||!!_0x19513e),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 _0x49f966(_0x4bb21f,_0x1c870d),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'](_0x3df23e){this['commentInputView']['focus'](_0x3df23e);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x5277d5,_0x55c8e)=>{const {submitButtonView:_0x4d1cfa,cancelButtonView:_0x792c54,editor:_0x22b0b3}=this['commentInputView'];[_0x4d1cfa['element'],_0x792c54['element'],_0x22b0b3?_0x22b0b3['editing']['view']['getDomRoot']():null]['filter'](_0x4d281d=>_0x4d281d)['some'](_0x115ee3=>_0x115ee3['contains'](_0x55c8e['target']))||(this['focus'](),_0x55c8e['preventDefault']());});}}class rs extends kt{constructor(_0x3fb945){super(_0x3fb945);const _0x19f7e9=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x19f7e9['to']('count',_0x556cce=>N(_0x3fb945,'NUMBER_OF_COMMENTS',_0x556cce))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x1bc7f7,_0x7b3095,_0x14fae4){super(_0x1bc7f7);const _0x58e195=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x7b3095['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x7b3095,this['_config']=_0x14fae4,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x151ecd(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4e2b55({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3b1690=>this['commentViews']['map'](_0x5e088e=>_0x5e088e['element'])['includes'](_0x3b1690['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x1bc7f7),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x2c7c03=>_0x2c7c03-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5f007d of _0x7b3095['comments'])this['_handleNewCommentModel'](_0x5f007d);this['_handleInfoComment'](),this['listenTo'](_0x7b3095['comments'],'add',(_0x53801b,_0x513bab)=>{const _0x2c6fa4=this['_calculatePosition'](_0x513bab);this['length']++,this['_handleNewCommentModel'](_0x513bab,_0x2c6fa4),this['refreshVisibleViews']();}),this['listenTo'](_0x7b3095['comments'],'remove',(_0x2ce1a8,_0x301fe4)=>{this['length']--,this['_handleRemoveCommentModel'](_0x301fe4),this['refreshVisibleViews']();}),this['listenTo'](_0x7b3095,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x7b3095,'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',_0x58e195['if']('length','ck-hidden',_0x2781fd=>!_0x2781fd)],'aria-label':N(_0x1bc7f7,'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'](_0x11304a){-0x1===_0x11304a?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x509bf7 of this['commentViews'])_0x509bf7['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x552702,_0x1eab9c){const _0x292d45=new this['_config']['CommentView'](this['locale'],_0x552702,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x292d45['viewUid']=_0x552702['id'],_0x292d45['delegate']('removeComment')['to'](this),_0x292d45['delegate']('updateComment')['to'](this),_0x292d45['delegate']('resolveCommentThread')['to'](this),_0x292d45['delegate']('editorReady')['to'](this),_0x292d45['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x292d45,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x292d45,_0x1eab9c);}['_calculatePosition'](_0x7f6f76){const _0x3060cf=this['_model']['_findOptimalIndex'](_0x7f6f76);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x7f6f76['authoredAt']?_0x3060cf-0x1:_0x3060cf:_0x3060cf-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3e52ec={'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'],_0x3e52ec,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3e52ec));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x1f739c){const _0x59ce1a=this['commentViews']['remove'](_0x1f739c['id']);this['stopListening'](_0x59ce1a),_0x59ce1a['isEditMode']&&this['_updateHasDirtyComment'](),_0x59ce1a['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x28ea06=>_0x28ea06['isEditMode']);}['_rearrangeCollapse'](){const _0x1343ed=function(_0x23acbc){const _0x4a7077=new _0x4b4c8c();for(const _0x237aea of _0x23acbc)_0x4a7077['add'](_0x237aea);return _0x4a7077;}(this['commentViews']),_0x20589c=this['_collapsedCommentsView']['count'];for(let _0x4c05ad=0x1;_0x4c05ad<=_0x20589c;_0x4c05ad++)_0x1343ed['remove'](0x1);for(const _0x15c651 of _0x1343ed)_0x15c651['collapse']();_0x20589c>0x0&&_0x1343ed['add'](this['_collapsedCommentsView'],0x1),ns(_0x1c7c0c(Array['from'](this['visibleViews']),Array['from'](_0x1343ed)),this['visibleViews'],_0x1343ed);}['_rearrangeExpand'](){ns(_0x1c7c0c(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x514795 of this['visibleViews'])_0x514795['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x119dcd=>{this['focusTracker']['add'](_0x119dcd['element']),this['keystrokes']['listenTo'](_0x119dcd['element']);}),this['commentViews']['on']('change',(_0x33c0bc,_0x4e6532)=>{for(const _0x419a16 of _0x4e6532['removed'])this['focusTracker']['remove'](_0x419a16['element']),this['keystrokes']['stopListening'](_0x419a16['element']);for(const _0x2500d7 of Array['from'](_0x4e6532['added'])['reverse']())this['focusTracker']['add'](_0x2500d7['element']),this['keystrokes']['listenTo'](_0x2500d7['element']);});}}function ns(_0x23b6fe,_0x59aff2,_0x13723f){let _0x4a5861=0x0;for(const _0x377e69 of _0x23b6fe)switch(_0x377e69){case'insert':_0x59aff2['add'](_0x13723f['get'](_0x4a5861),_0x4a5861),_0x4a5861++;break;case'delete':_0x59aff2['remove'](_0x4a5861);break;case'equal':_0x4a5861++;}}class oe extends kt{constructor(_0x3c5499){super(_0x3c5499);const _0x4aca33=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4aca33['to']('contextValue',_0x171bba=>N(_0x3c5499,'THREAD_CONTEXT_LABEL',_0x171bba)),'tabindex':-0x1},'children':[{'text':_0x4aca33['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2ca89b,_0x54c094){super(_0x2ca89b);const _0x53e4b4=this['bindTemplate'];this['_model']=_0x54c094,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x151ecd(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4e2b55({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x5c7c99=>!!_0x5c7c99),this['bind']('contextValue')['to'](this['_model'],'context',_0x158479=>_0x158479&&_0x158479['value']?this['_trimContextValue'](_0x158479['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',_0x53e4b4['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 _0x5e2ad5=new _0xabb329(this['locale']);return _0x5e2ad5['label']=N(this['locale'],'Reopen'),_0x5e2ad5['tooltip']=N(this['locale'],'Reopen'),_0x5e2ad5['icon']=_0x217818,_0x5e2ad5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x92b75f=>!_0x92b75f),_0x5e2ad5['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2d750e,_0x410b8c)=>_0x2d750e&&_0x410b8c),_0x5e2ad5['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x5e2ad5;}['_trimContextValue'](_0x3d6005){if(_0x3d6005['length']<0x96)return _0x3d6005;const _0x48ee79=_0x3d6005['lastIndexOf']('\x20',0x93);return _0x3d6005['substring'](0x0,_0x48ee79>-0x1?_0x48ee79:0x93)+'...';}['_attachContextActions'](){const _0x5cd65f=this['element']['querySelector']('.ck-context'),_0x4a2987=_0x5cd65f['querySelector']('.ck-context__value');this['listenTo'](_0x5cd65f,'mouseenter',()=>{_0x4a2987['offsetWidth']<_0x4a2987['scrollWidth']&&_0x5cd65f['classList']['add']('overlay');}),this['listenTo'](_0x5cd65f,'mouseleave',()=>{_0x5cd65f['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0xd2ce47 of this['focusables'])this['focusTracker']['add'](_0xd2ce47['element']),this['keystrokes']['listenTo'](_0xd2ce47['element']);}['_createContextView'](){const _0x2ddfee=new oe(this['locale']);return _0x2ddfee['bind']('contextValue')['to'](this),_0x2ddfee;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5c2b28,_0x1c49d9,_0x5bc04b,_0x258c4e){super(_0x5c2b28),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1c49d9,this['_localUser']=_0x5bc04b,this['_config']=_0x258c4e,this['commentThreadHeaderView']=new Xt(_0x5c2b28,_0x1c49d9),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x5c2b28,N(_0x5c2b28,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x5c2b28,_0x1c49d9,Object['assign']({'CommentView':this['_config']['CommentView']},_0x258c4e)),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',(_0x55947d,_0x5baa17)=>_0x55947d||!!_0x5baa17),this['bind']('isUnlinked')['to'](_0x1c49d9,'unlinkedAt',_0x398cd0=>!!_0x398cd0),this['bind']('ariaLabel')['to'](this,'length',_0x2141fa=>{const _0x2cf1e6=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x2141fa,_0x2cf1e6]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x151ecd(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4e2b55({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x9a236=>_0x9a236['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 _0x1781f1=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2ef0c7=_0x1781f1['commentInputView'];return _0x1781f1['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x2ef0c7,'value',(_0x3608c1,_0x224fb5,_0x944a6a,_0xe44725,_0x55fe72)=>!!_0x55fe72||!!_0xe44725&&_0x944a6a&&!_0x224fb5||_0x3608c1&&_0x944a6a&&!_0x224fb5),_0x2ef0c7['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4908cc,_0x300287,_0xfc9199)=>{let _0x4fb520;return _0x4fb520=_0xfc9199&&_0x300287?'Reply\x20to\x20reopen\x20discussion...':_0x4908cc?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x4fb520);}),_0x2ef0c7['bind']('submitLabel')['to'](this,'length',_0x4890d2=>N(this['locale'],_0x4890d2?'Reply':'Comment')),_0x2ef0c7['on']('submit',(_0x1a57b2,_0x179890)=>{this['fire']('addComment',_0x179890),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x2ef0c7['on']('cancel',()=>{this['focus']();}),_0x2ef0c7['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2ef0c7['on']('cancel',_0x392a24=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x392a24['stop']());}),this['on']('change:isActive',(_0x27f1e7,_0x497c06,_0x590b6f)=>{_0x590b6f||this['length']||_0x2ef0c7['value']||this['fire']('removeCommentThread');}),_0x1781f1;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x402f09,_0x5c510d,_0x327ea6,_0x4d7afd){super(_0x402f09,_0x5c510d,_0x327ea6,_0x4d7afd),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x402f09,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0xc67d57,_0x8b21b,_0x290e0d)=>{_0x290e0d||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x8b128,_0x123d1c,_0x5e4b53)=>{_0x5e4b53&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x29081a=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x29081a['if']('isActive','ck-thread--active'),_0x29081a['if']('isUnlinked','ck-thread--unlinked'),_0x29081a['to']('actionIndicator',_0x3a9416=>_0x3a9416?'ck-thread--'+_0x3a9416:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x29081a['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 _0xb7cc8a of this['commentsListView']['commentViews'])_0xb7cc8a['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x4bbf1b}=this,_0x3fbafa=this['commentsListView']['commentViews']['get'](0x0);_0x3fbafa===this['_boundFirstCommentView']||_0x3fbafa['isSystemComment']||(this['_boundFirstCommentView']=_0x3fbafa,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3fbafa,'actionIndicator',_0x2167a0=>'remove'===_0x2167a0?'remove':null),_0x3fbafa['placeholder']=N(_0x4bbf1b,'Write\x20a\x20comment...'),_0x3fbafa['removeButton']['on']('execute',_0x5e6e6a=>{_0x5e6e6a['stop'](),this['showConfirm'](N(_0x4bbf1b,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3fbafa['focus']();}),_0x3fbafa['actionBar']['add'](this['resolveButton'],0x0),_0x3fbafa['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x31842e=new _0x1a271c(this['locale']);return _0x31842e['label']=N(this['locale'],'Resolve'),_0x31842e['tooltip']=N(this['locale'],'Resolve'),_0x31842e['icon']=_0x4346b3,_0x31842e['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x31842e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3ef18b=>!_0x3ef18b),_0x31842e['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x371f2f,_0x51ffb1)=>_0x371f2f&&!_0x51ffb1),_0x31842e['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x31842e;}['_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(_0xbf44f4){super(_0xbf44f4),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x3a64e7,_0x443824,_0x52a734)=>{this['element']['innerHTML']=_0x52a734;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3b63af,_0x1c0a2f,_0x5e41c6){super(_0x3b63af),this['_model']=_0x1c0a2f,this['_config']=_0x5e41c6,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x1c0a2f,'content',_0x1c0a2f,'authoredAt',(_0x564e61,_0x16d991)=>N(_0x3b63af,'COMMENT_ARIA_LABEL',[_0x1c0a2f['author']['name'],_0x5e41c6['formatDateTime'](_0x16d991),new DOMParser()['parseFromString'](_0x564e61,'text/html')['body']['textContent'],_0x1c0a2f['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x3b63af,N(_0x3b63af,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xb0c59c(),this['focusTracker']=new _0x151ecd(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4e2b55({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x211f62=>_0x211f62['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 _0x315fa4=new is(this['locale']);return _0x315fa4['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x6959dd,_0x50b85f)=>_0x50b85f?ts(_0x6959dd,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x6959dd),_0x315fa4;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x5b4665=new es(this['locale'],this['_config']['editorConfig']);return _0x5b4665['value']=this['_model']['content'],_0x5b4665['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5b4665['submitLabel']=N(this['locale'],'Save'),_0x5b4665['on']('submit',(_0x11336e,_0x54ce88)=>{this['fire']('updateComment',this['_model']['id'],_0x54ce88),this['switchToDisplayMode'](),this['focus']();}),_0x5b4665['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x5b4665['once']('editorReady',()=>{_0x5b4665['focus']();}),_0x5b4665['createEditor'](),_0x5b4665['delegate']('editorReady')['to'](this),_0x5b4665['delegate']('editorDestroyed')['to'](this),_0x5b4665;}['_setupKeyboardNavigation'](){const _0x39e51c=this['element'];this['keystrokes']['listenTo'](_0x39e51c);for(const _0x4058ed of this['focusables'])this['focusTracker']['add'](_0x4058ed['element']),this['keystrokes']['listenTo'](_0x4058ed['element']);this['focusables']['on']('change',(_0x416d92,_0x220375)=>{for(const _0x3381d4 of _0x220375['removed'])this['focusTracker']['remove'](_0x3381d4['element']),this['keystrokes']['stopListening'](_0x3381d4['element']);for(const _0x2f7675 of _0x220375['added'])this['focusTracker']['add'](_0x2f7675['element']),this['keystrokes']['listenTo'](_0x2f7675['element']);}),this['keystrokes']['set']('enter',(_0xbd617b,_0x18cc3a)=>{_0x39e51c===_0xbd617b['target']&&(this['focusCycler']['focusFirst'](),_0x18cc3a());}),this['keystrokes']['set']('esc',(_0x4a5a02,_0x54cbed)=>{_0x39e51c!==_0x4a5a02['target']&&(this['focus'](),_0x54cbed());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x138fc8,_0x4752f2,_0x1b8c57){super(_0x138fc8,_0x4752f2,_0x1b8c57),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x138fc8,'Reply...')),this['bind']('authoredAt')['to'](_0x4752f2),this['bind']('resolvedAt')['to'](_0x4752f2),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 _0x49f966(_0x138fc8,_0x4752f2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x4752f2,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x32bb5b=this['bindTemplate'],_0x467399=[{'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':_0x32bb5b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x32bb5b['to']('authoredAt',_0x3cfac7=>this['_config']['formatDateTime'](_0x3cfac7))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x32bb5b['if']('isEditMode','ck-comment__actions--hidden'),_0x32bb5b['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']&&_0x467399['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x32bb5b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x32bb5b['if']('isEditMode','ck-comment--edit'),_0x32bb5b['if']('isSystemComment','ck-comment--info'),_0x32bb5b['to']('actionIndicator',_0xb0fa80=>_0xb0fa80?'ck-comment--'+_0xb0fa80:'')],'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':_0x467399}]}]};}['_createEditButton'](){const _0x38c2a5=new _0xabb329(this['locale']);return _0x38c2a5['label']=N(this['locale'],'Edit'),_0x38c2a5['icon']=_0x4bdc0a,_0x38c2a5['withText']=!0x0,_0x38c2a5['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x38c2a5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x12b2a4=>!_0x12b2a4),_0x38c2a5['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x38c2a5['on']('execute',()=>this['switchToEditMode']()),_0x38c2a5;}['_createRemoveButton'](){const _0x3ec930=new _0xabb329(this['locale']);return _0x3ec930['label']=N(this['locale'],'Remove'),_0x3ec930['icon']=_0x405af1,_0x3ec930['withText']=!0x0,_0x3ec930['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3ec930['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x19da96=>!_0x19da96),_0x3ec930['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3ec930['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3ec930;}['_createDropdown'](){const _0x45ec7c=_0x3e1b91(this['locale'],_0x4b288f),_0x4045ce=_0x45ec7c['panelView']['children'],_0x962551=new _0x2106f2(this['locale']),_0x2356f0=_0x45ec7c['bindTemplate'];_0x47d6ad(_0x45ec7c,()=>this['items']['find'](_0x27f587=>_0x27f587['isVisible'])),_0x45ec7c['extendTemplate']({'attributes':{'class':[_0x2356f0['if']('isVisible','ck-hidden',_0x22c120=>!_0x22c120)]}});const _0x793fca=(_0x140d02,_0xde5296=-0x1)=>{const _0xd077eb=new _0x5c7563(this['locale']);_0xd077eb['children']['add'](_0x140d02);const _0x2df641=_0xde5296>-0x1?_0xde5296:_0x962551['items']['length'];_0x962551['items']['add'](_0xd077eb,_0x2df641);const _0x5038b0=Array['from'](this['items']);_0x45ec7c['unbind']('isEnabled','isVisible'),_0x45ec7c['bind']('isEnabled')['toMany'](_0x5038b0,'isEnabled',(..._0x375352)=>_0x375352['some'](_0x9d5424=>_0x9d5424)),_0x45ec7c['bind']('isVisible')['toMany'](_0x5038b0,'isVisible',(..._0x575f64)=>_0x575f64['some'](_0x28d610=>_0x28d610));};_0x45ec7c['panelPosition']='sw',_0x45ec7c['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x3be590});for(const _0x579b88 of this['items'])_0x793fca(_0x579b88);return _0x4045ce['add'](_0x962551),_0x45ec7c['listenTo'](this['items'],'add',(_0x2bef68,_0x59a071,_0x3901d8)=>{_0x793fca(_0x59a071,_0x3901d8);}),_0x45ec7c['listenTo'](this['items'],'remove',(_0x1c78ef,_0x2b36dc,_0x10d587)=>{_0x962551['items']['remove'](_0x10d587);}),_0x45ec7c;}['_attachActions'](_0x503a6e,_0x2ac73c){const _0x321e0d=_0x503a6e&&_0x503a6e['element'];_0x321e0d&&(this['listenTo'](_0x321e0d,'mouseenter',()=>this['actionIndicator']=_0x2ac73c),this['listenTo'](_0x321e0d,'focus',()=>this['actionIndicator']=_0x2ac73c),this['listenTo'](_0x321e0d,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x321e0d,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x226595=super['_createCommentInputView']();return _0x226595['bind']('placeholder')['to'](this),_0x226595;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x81785f){const _0x4da824=Dt(_0x81785f,0x1e),_0x158c77=new MutationObserver(_0x105107=>{for(const _0x3d38e6 of _0x105107)('attributes'==_0x3d38e6['type']&&'class'==_0x3d38e6['attributeName']||'childList'==_0x3d38e6['type']||'characterData'==_0x3d38e6['type'])&&_0x4da824();});return{'attach'(_0x591e29){_0x158c77['observe'](_0x591e29,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x158c77['disconnect'](),_0x4da824['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x538ce5,_0x1270e6){super(_0x538ce5),this['id']=_0x5920b0(),this['focusTracker']=new _0x151ecd(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x3f8b70,_0x45aecf)=>this['fire']('Esc',_0x45aecf)),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'](_0x1270e6),this['mainView']=_0x1270e6;const _0x4abe0c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4abe0c['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 _0x11ed6d=this['element']['clientHeight'];_0x11ed6d&&(this['height']=_0x11ed6d);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0xe27a3f(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x26b67b,target:_0x460eb8,type:_0x4cc6c7,isVisible:_0x30e3ed=!0x0}){super(),this['view']=_0x26b67b,this['view']['element']||this['view']['render'](),this['_type']=_0x4cc6c7,this['_target']=_0x460eb8,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x4b4c8c([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x7b4f61,_0x12eedc)=>{this['view']['focusTracker']['add'](_0x12eedc);}),this['focusableElements']['on']('remove',(_0x1bb03f,_0x1b23b4)=>{this['view']['focusTracker']['remove'](_0x1b23b4);}),this['set']('isVisible',_0x30e3ed);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0xba943c=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0xba943c),_0xba943c;}get['targetRect'](){const _0x454496=this['target'];if(null===_0x454496)return null;if(_0x454496 instanceof _0x318b84)return _0x454496;const _0x7acc9c=_0x454496['filter'](_0x312916=>function(_0x2938b2){const _0x74aea7=_0x2938b2['offsetParent'];if(_0x74aea7)return!0x0;const _0x235acf=_0x2938b2['getClientRects']()['item'](0x0);return!!_0x235acf;}(_0x312916));return 0x0===_0x7acc9c['length']?null:new _0x318b84(_0x7acc9c[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x28d0e6){this['view']['isActive']=_0x28d0e6,this['view']['mainView']['isActive']=_0x28d0e6;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3a59b4){if(!(null===_0x3a59b4||_0x3a59b4 instanceof _0x318b84||Array['isArray'](_0x3a59b4)&&_0x3a59b4['every'](_0x414c23=>fi(_0x414c23))))throw new _0x2df15f('annotation-invalid-target',null,{'target':_0x3a59b4});}['_getNormalizedTarget'](){const _0x2750a8='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x2750a8)?[_0x2750a8]:_0x2750a8;}}function fi(_0x15a17d){return null!==_0x15a17d&&'object'==typeof _0x15a17d&&'nodeType'in _0x15a17d&&0x1===_0x15a17d['nodeType'];}class S extends _0x4b4c8c{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0xfebb62=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x151ecd(),this['_focusTracker']['on']('change:isFocused',(_0x1c81da,_0x58b73f,_0x2848c6)=>{_0x2848c6||this['fire']('blur');});for(const _0xc60e7c of _0xfebb62)this['add'](_0xc60e7c);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0xa85e5){if(this['has'](_0xa85e5))throw new _0x2df15f('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0xa85e5['innerView'],_0xa85e5),this['_viewToAnnotation']['set'](_0xa85e5['view'],_0xa85e5);for(const _0x407f62 of _0xa85e5['focusableElements'])this['_focusTracker']['add'](_0x407f62);this['listenTo'](_0xa85e5['focusableElements'],'add',(_0x49e4ca,_0x20e8f9)=>{this['_focusTracker']['add'](_0x20e8f9);}),this['listenTo'](_0xa85e5['focusableElements'],'remove',(_0x1d35d9,_0x25f4f5)=>{this['_focusTracker']['remove'](_0x25f4f5);}),this['listenTo'](_0xa85e5['view']['focusTracker'],'change:isFocused',(_0x5c0801,_0x4c03cd,_0x3880fa)=>{_0x3880fa&&this['fire']('focus',_0xa85e5);}),_0xa85e5['updateTargetRect']();const _0x1f2809=this['_getOrderInContent'](_0xa85e5['view']['targetRect']);return super['add'](_0xa85e5,_0x1f2809);}['remove'](_0x19c8ce){if(!this['has'](_0x19c8ce))throw new _0x2df15f('annotationcollection-not-existing-item',null);this['stopListening'](_0x19c8ce['view']['focusTracker']),this['stopListening'](_0x19c8ce['focusableElements']);for(const _0x37af5c of _0x19c8ce['focusableElements'])this['_focusTracker']['remove'](_0x37af5c);return this['_viewToAnnotation']['delete'](_0x19c8ce['view']),this['_innerViewToAnnotation']['delete'](_0x19c8ce['innerView']),super['remove'](_0x19c8ce);}['getByInnerView'](_0x2aebc3){return this['_innerViewToAnnotation']['get'](_0x2aebc3);}['getByView'](_0x4fee82){return this['_viewToAnnotation']['get'](_0x4fee82);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x16a479 of this)_0x16a479['updateTargetRect']();this['_sort']();}['_sort'](){const _0x58f86f=Array['from'](this)['sort']((_0x5073b2,_0x245541)=>w(_0x5073b2['view']['targetRect'],_0x245541['view']['targetRect']));for(let _0x181e08=_0x58f86f['length']-0x1;_0x181e08>0x0;_0x181e08--){const _0x3fa58e=_0x58f86f[_0x181e08];_0x181e08!==this['getIndex'](_0x3fa58e)&&(this['remove'](_0x3fa58e),this['add'](_0x3fa58e));}}['_getOrderInContent'](_0xa8b908){let _0x548625=0x0;if(!_0xa8b908)return this['length'];for(const _0x320e1e of this){const _0x24ed06=_0x320e1e['view']['targetRect'];if(_0x24ed06){if(w(_0xa8b908,_0x24ed06)<0x0)return _0x548625;_0x548625++;}}return _0x548625;}}function v({source:_0x555ea0,target:_0xf68413,filter:_0xb4b881}){for(const _0x247b5c of _0x555ea0)_0xb4b881(_0x247b5c)&&_0xf68413['add'](_0x247b5c);_0xf68413['listenTo'](_0x555ea0,'add',(_0x5dd3e3,_0x5ca0b9)=>{_0xb4b881(_0x5ca0b9)&&_0xf68413['add'](_0x5ca0b9);}),_0xf68413['listenTo'](_0x555ea0,'remove',(_0xc4517d,_0x3f86a1)=>{_0xf68413['has'](_0x3f86a1)&&_0xf68413['remove'](_0x3f86a1);});}function w(_0x129196,_0x249cd7){if(null===_0x129196&&null===_0x249cd7)return 0x0;if(null===_0x129196)return-0x1;if(null===_0x249cd7)return 0x1;const _0xd5a2bf=_0x129196['top']-_0x249cd7['top'];return 0x0==_0xd5a2bf?_0x129196['left']-_0x249cd7['left']:_0xd5a2bf;}class y extends _0x5bb154{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6f76af){if(super(_0x6f76af),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x6f76af instanceof _0x22aa3e){const _0x2379bb=_0x6f76af['locale'];_0x6f76af['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x2379bb,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x2379bb,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x2379bb,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x2379bb,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x2379bb,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x2379bb,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x2379bb,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x580d94){this['collection']['add'](_0x580d94);}['remove'](_0x373508){this['collection']['remove'](_0x373508),_0x373508['destroy']();}['refreshVisibility'](){for(const _0xf2fd96 of this['collection'])_0xf2fd96['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x23ac14){return this['collection']['getByInnerView'](_0x23ac14);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x44f99d of this['collection'])_0x44f99d['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x53e2dc){this['fire']('_activateAnnotation',_0x53e2dc);}['createAnnotation'](_0xe86e6a){return new T(_0xe86e6a);}['createAnnotationView'](_0x82a06a,_0x5cc663){return new E(_0x82a06a,_0x5cc663);}['_addActiveAnnotation'](_0x143434){const _0x585462=new Set(this['activeAnnotations']);_0x585462['add'](_0x143434),this['activeAnnotations']=_0x585462;}['_removeActiveAnnotation'](_0x1120dd){const _0x57ba7c=new Set(this['activeAnnotations']);_0x57ba7c['delete'](_0x1120dd),this['activeAnnotations']=_0x57ba7c;}['_bindAnnotationsToVisibleAnnotations'](){const _0x476a61=this['collection'],_0x4ef81b=this['_visibleAnnotations'];function _0x181bc1(_0x401436){const _0x21d664=_0x401436['source'];_0x21d664['isVisible']&&!_0x4ef81b['has'](_0x21d664)?_0x4ef81b['add'](_0x21d664):!_0x21d664['isVisible']&&_0x4ef81b['has'](_0x21d664)&&_0x4ef81b['remove'](_0x21d664),_0x21d664['view']['focusTracker']['remove'](_0x21d664['view']['element']),_0x21d664['view']['focusTracker']['add'](_0x21d664['view']['element']);}this['listenTo'](_0x476a61,'add',(_0x312b4c,_0x26fffa)=>{_0x26fffa['isVisible']&&_0x4ef81b['add'](_0x26fffa),this['listenTo'](_0x26fffa,'change:isVisible',_0x181bc1);}),this['listenTo'](_0x476a61,'remove',(_0x442122,_0x58c74c)=>{_0x4ef81b['has'](_0x58c74c)&&_0x4ef81b['remove'](_0x58c74c),this['stopListening'](_0x58c74c,'change:isVisible',_0x181bc1);});}['_setupEnterAnnotationKeystroke'](){const _0x532e88=_0x4fcca1=>{_0x4fcca1['on']('ready',()=>{_0x4fcca1['keystrokes']['set'](_0x267ea4,(_0x4173ad,_0x550289)=>{const _0x19c4fe=_0x50c98e(this['activeAnnotations']['values']());_0x19c4fe&&(_0x19c4fe['view']['focus'](),_0x550289());});});};this['context']instanceof _0x22aa3e?_0x532e88(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3c2c9f,_0x1644d5)=>{_0x532e88(_0x1644d5);});}['_setupEscapeAnnotationHandling'](){const _0x4532fa=_0x8c42eb=>{const _0x2f6ce3=_0x8c42eb['source'],_0x38b3cb=[];let _0x2e6448;if(Array['isArray'](_0x2f6ce3['target'])){_0x2e6448=_0x2f6ce3['target'][0x0],this['context']instanceof _0x22aa3e?_0x38b3cb['push'](this['context']):this['context']['editors']&&_0x38b3cb['push'](...this['context']['editors']);for(const _0x636bcc of _0x38b3cb)for(const _0xe7f613 of _0x636bcc['editing']['view']['domRoots']['values']())if(_0xe7f613['contains'](_0x2e6448))return void _0x636bcc['editing']['view']['focus']();_0x2e6448['focus']();}};this['listenTo'](this['collection'],'add',(_0x57e9bd,_0x3dd502)=>{this['listenTo'](_0x3dd502,'escape',_0x4532fa,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1c638a,_0x5aa895)=>{this['stopListening'](_0x5aa895,'escape',_0x4532fa);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x5bb154{['_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(_0x13f149){super(_0x13f149),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2b27f7=this['context']['config'];_0x2b27f7['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2b27f7['define']('comments.maxThreadTotalWeight',0x1f4),_0x2b27f7['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2b27f7['define']('comments.CommentThreadView',gt),_0x2b27f7['define']('comments.CommentView',Tt),_0x2b27f7['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x130e7b=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x52e3db,_0x249a38)=>this['_addCommentThread'](_0x249a38)),this['on']('submitCommentThread',(_0x133ef2,_0x24dc01)=>this['_submitCommentThread'](_0x24dc01)),this['on']('resolveCommentThread',(_0x431e87,_0x175391)=>this['_resolveCommentThread'](_0x175391)),this['on']('resolveCommentThread',(_0xd3e8af,_0x2a99d7)=>this['_updateActiveAnnotation'](_0x2a99d7),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x1d8ee1,_0x37d7af)=>this['_reopenCommentThread'](_0x37d7af)),this['on']('reopenCommentThread',(_0x3cce1e,_0xcb71b8)=>this['_updateActiveAnnotation'](_0xcb71b8),{'priority':'lowest'}),this['on']('removeCommentThread',(_0xfe1377,_0x408511)=>this['_removeCommentThread'](_0x408511)),this['on']('updateCommentThread',(_0x37c7ab,_0x277941)=>this['_updateCommentThread'](_0x277941)),this['on']('updateCommentThread',(_0xcd6fa9,_0x27ee66)=>this['_updateActiveAnnotation'](_0x27ee66),{'priority':'lowest'}),this['on']('addComment',(_0xb1b8af,_0xe6934a)=>this['_addComment'](_0xe6934a)),this['on']('updateComment',(_0x5aefc1,_0x1b5e9f)=>this['_updateComment'](_0x1b5e9f)),this['on']('removeComment',(_0x1e94e1,_0x465619)=>this['_removeComment'](_0x465619)),this['on']('addComment',(_0xdfb69c,{threadId:_0x157872,isFromAdapter:_0x4cdb1a})=>{if(_0x4cdb1a)return;const _0x188f6d=this['getCommentThread'](_0x157872),_0x1fed1a=_0x188f6d&&this['_threadToController']['get'](_0x188f6d);_0x1fed1a&&_0x1fed1a['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x130e7b,'change:activeAnnotations',(_0x592735,_0x342a5c,_0x120c3a)=>{const _0x3985e1=Array['from'](_0x120c3a)['map'](_0x65bf99=>this['_viewToController']['get'](_0x65bf99['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3985e1?_0x3985e1['model']:null;});}set['adapter'](_0x1f975f){if(this['_adapter'])throw new _0x2df15f('commentsrepository-adapter-already-set');this['_adapter']=_0x1f975f;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x32ab6d=_t,threadId:_0x19d1a1=_0x5920b0(),comments:_0x301f65=[],unlinkedAt:_0x44a827=null,resolvedAt:_0x313cf1=null,resolvedBy:_0x6efaee=null,target:_0x2b9837=null,context:_0x3858f4=null,attributes:_0x53f661={},isResolvable:_0x595ed2=!0x0,isSubmitted:_0x42b024=!0x1,isFromAdapter:_0x5f1424=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x32ab6d),{'channelId':_0x32ab6d,'threadId':_0x19d1a1,'comments':_0x301f65,'unlinkedAt':_0x44a827,'resolvedAt':_0x313cf1,'resolvedBy':_0x6efaee,'target':_0x2b9837,'context':_0x3858f4,'attributes':_0x53f661,'isFromAdapter':_0x5f1424,'isResolvable':_0x595ed2,'isSubmitted':_0x42b024}),this['getCommentThread'](_0x19d1a1);}['openNewCommentThread']({channelId:_0x4c48f8=_t,threadId:_0x590d31=_0x5920b0(),target:_0x3da530,context:_0x1685bb=null,isResolvable:_0x7594f4=!0x0}){if(this['_readOnlyChannels']['has'](_0x4c48f8)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x3da530)throw new _0x2df15f('commentsrepository-missing-target');const _0x278c5a=this['addCommentThread']({'channelId':_0x4c48f8,'threadId':_0x590d31,'target':_0x3da530,'context':_0x1685bb,'isResolvable':_0x7594f4});if(!_0x278c5a)return null;const _0x18d57e=this['_threadToController']['get'](_0x278c5a),_0x1ea239=_0x18d57e['view']['commentThreadInputView']['commentInputView'],_0x4861a1=this['context']['plugins']['get'](y),_0x454219=_0x4861a1['getByInnerView'](_0x18d57e['view']);return _0x4861a1['activate'](_0x454219),_0x1ea239['once']('editorReady',()=>_0x1ea239['focus']()),_0x278c5a;}['hasCommentThread'](_0x131fdb){if('string'!=typeof _0x131fdb)throw new _0x2df15f('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x131fdb);}['updateCommentThread']({channelId:_0x7b6361=_t,threadId:_0x4937e4,context:_0x3c15ab,unlinkedAt:_0x595598,attributes:_0x533a27,isFromAdapter:_0x13889d=!0x1}){return this['fire'](Nt('updateCommentThread',_0x7b6361),{'channelId':_0x7b6361,'threadId':_0x4937e4,'context':_0x3c15ab,'unlinkedAt':_0x595598,'attributes':_0x533a27,'isFromAdapter':_0x13889d}),this['getCommentThread'](_0x4937e4);}['getCommentThread'](_0x63a30e){if('string'!=typeof _0x63a30e)throw new _0x2df15f('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x63a30e);}['fetchCommentThread']({channelId:_0x9ca4d4,threadId:_0x1fff73}={}){const _0x40f524=this['getCommentThread'](_0x1fff73);if(_0x40f524)return Promise['resolve'](_0x40f524);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2df15f('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x9ca4d4,'threadId':_0x1fff73})['then'](_0x517297=>this['hasCommentThread'](_0x1fff73)?this['getCommentThread'](_0x1fff73):_0x517297?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x9ca4d4},_0x517297)):void 0x0)['catch'](_0x40e05a=>{throw console['error'](_0x40e05a),new _0x2df15f('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x550eb8,skipNotAttached:_0x335ea5=!0x1,skipEmpty:_0xa06054=!0x1,toJSON:_0x25719e=!0x1}={}){const _0x48c66a=[];for(const _0x8c3451 of this['_threads']['values']())_0x550eb8&&_0x8c3451['channelId']!==_0x550eb8||_0x335ea5&&!_0x8c3451['isAttached']||_0xa06054&&0x0===_0x8c3451['length']||_0x48c66a['push'](_0x8c3451);return _0x25719e?_0x48c66a['map'](_0x1137c8=>_0x1137c8['toJSON']()):_0x48c66a;}['getAnnotationForCommentThread'](_0x4e66af){const _0x18a520=this['_threadToController']['get'](_0x4e66af);if(!_0x18a520)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x18a520['view'])||null;}['getCommentThreadForAnnotation'](_0x66755f){const _0x88f9ba=this['_viewToController']['get'](_0x66755f['innerView']);return _0x88f9ba?_0x88f9ba['model']:null;}['setActiveCommentThread'](_0x172e87){const _0x3b8036=this['context']['plugins']['get'](y);if(!_0x172e87)return void(this['activeCommentThread']&&_0x3b8036['deactivateAll']());const _0x2a6c96=this['getCommentThread'](_0x172e87);if(!_0x2a6c96)throw new _0x2df15f('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x172e87});if(!this['_threadToController']['has'](_0x2a6c96))throw new _0x2df15f('commentsrepository-active-not-attached',null,{'threadId':_0x172e87});const _0x284123=_0x3b8036['getByInnerView'](this['_threadToController']['get'](_0x2a6c96)['view']);_0x3b8036['activate'](_0x284123);}['switchReadOnly'](_0x154436,_0x4477ee){_0x154436?this['_readOnlyChannels']['add'](_0x4477ee):this['_readOnlyChannels']['delete'](_0x4477ee),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x45651a){return this['_readOnlyChannels']['has'](_0x45651a)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x26218b,_0x7ace55){return new vt(_0x26218b,_0x7ace55);}['setPermissions'](_0x376e86,_0x28fe88=_t){this['_permissions']['set'](_0x28fe88,_0x376e86),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x16c45d=_t){return this['_permissions']['has'](_0x16c45d)?this['_permissions']['get'](_0x16c45d):bt;}['_addCommentThread']({channelId:_0x394cf3,threadId:_0x4397c6,comments:_0xd179f,unlinkedAt:_0x1d2934,resolvedAt:_0x5b6002,resolvedBy:_0x279fcb,target:_0x1f2234,context:_0x1fa7e2,attributes:_0x37b5d2,isFromAdapter:_0x3dec3f,isResolvable:_0x544722,isSubmitted:_0x339e9d}){if('string'!=typeof _0x4397c6)throw new _0x2df15f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4397c6});if(this['hasCommentThread'](_0x4397c6))throw new _0x2df15f('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x4397c6});const _0x3e23c1=new pi(this,{'channelId':_0x394cf3,'id':_0x4397c6,'context':_0x1fa7e2,'attributes':_0x37b5d2,'unlinkedAt':_0x1d2934,'resolvedAt':_0x5b6002,'resolvedBy':_0x279fcb?this['context']['plugins']['get'](it)['getUser'](_0x279fcb):null,'isResolvable':_0x544722,'isSubmitted':_0x339e9d||_0x3dec3f});this['_threads']['set'](_0x4397c6,_0x3e23c1);for(const _0x170101 of _0xd179f)_0x3e23c1['_add'](this['_createNewComment']({'threadId':_0x4397c6,..._0x170101}));return _0x1f2234&&_0x3e23c1['attachTo'](_0x1f2234),_0x3dec3f||!_0x3e23c1['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x394cf3,'threadId':_0x4397c6});}['_submitCommentThread']({channelId:_0x4fce16,threadId:_0x4ac638}){if(!this['hasCommentThread'](_0x4ac638))throw new _0x2df15f('commentsrepository-missing-comment-thread',this);const _0x243942=this['getCommentThread'](_0x4ac638);if(_0x243942['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x38aa7d,comments:_0x1d20f3,resolvedAt:_0x35d2a6,resolvedBy:_0x4a2368,context:_0x50e101,attributes:_0x29a34d}=_0x243942,_0x41db11=this['context']['plugins']['get']('PendingActions'),_0xb7bcf5=_0x41db11['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4fce16,'threadId':_0x38aa7d,'comments':_0x1d20f3['map'](_0x22706e=>_0x22706e['toJSON']()),'resolvedAt':_0x35d2a6,'resolvedBy':_0x4a2368?_0x4a2368['id']:_0x4a2368,'context':_0x50e101,'attributes':_0x29a34d})['then'](({comments:_0x57d43d})=>{_0x41db11['remove'](_0xb7bcf5);for(const _0x5cd89e of _0x57d43d)this['_updateComment']({'channelId':_0x4fce16,'threadId':_0x4ac638,'commentId':_0x5cd89e['commentId'],'createdAt':_0x5cd89e['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x16bac3=>{throw console['error'](_0x16bac3),new _0x2df15f('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x24be91,target:_0x428829}){const _0x6662ab=this['getCommentThread'](_0x24be91);if(!_0x6662ab)throw new _0x2df15f('commentsrepository-attach-missing-comment-thread',this);const _0x312769=this['context']['plugins']['get']('PendingActions'),_0x51899a=this['context']['plugins']['get'](y),_0x57380f=this['_createCommentThreadView'](_0x6662ab),_0x231bd9=new vt(_0x6662ab,_0x57380f);let _0x3cb260=null;_0x57380f['on']('change:isDirty',(_0x5e5c5b,_0x14bf27,_0x1ae431)=>{_0x1ae431?_0x3cb260=_0x312769['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x3cb260&&(_0x312769['remove'](_0x3cb260),_0x3cb260=null);}),this['_threadToController']['set'](_0x6662ab,_0x231bd9),this['_viewToController']['set'](_0x57380f,_0x231bd9);const _0x541269=new E(this['context']['locale'],_0x57380f);_0x541269['bind']('length')['to'](_0x57380f),_0x541269['bind']('isDirty')['to'](_0x57380f,'isDirty',_0x57380f,'length',(_0x5e7d9f,_0x20837d)=>_0x5e7d9f||!_0x20837d),_0x541269['bind']('isActive')['to'](_0x57380f),_0x541269['type']='comment';const _0x589bd4=new T({'view':_0x541269,'target':_0x428829,'type':'comment','isVisible':!_0x6662ab['archivedAt']&&!!('function'==typeof _0x428829?_0x428829():_0x428829)});return _0x57380f['on']('escape',()=>{_0x589bd4['fire']('escape');}),this['_bindAnnotationToEditors'](_0x57380f,_0x589bd4),_0x51899a['add'](_0x589bd4),_0x589bd4;}['_bindAnnotationToEditors'](_0x20f399,_0x3a7e01){this['listenTo'](_0x20f399,'editorReady',(_0x1caa4d,_0x5acf2f)=>{const _0x44fa98=_0x5acf2f['ui']['view']['body']['bodyCollectionContainer'];_0x3a7e01['focusableElements']['add'](_0x44fa98),this['context']instanceof _0x22aa3e&&this['context']['ui']['focusTracker']['add'](_0x44fa98);},{'priority':'highest'}),this['listenTo'](_0x20f399,'editorDestroyed',(_0x52c749,_0x103aa7)=>{const _0x18c720=_0x103aa7['ui']['view']['body']['bodyCollectionContainer'];_0x3a7e01['focusableElements']['has'](_0x18c720)&&_0x3a7e01['focusableElements']['remove'](_0x18c720),this['context']instanceof _0x22aa3e&&this['context']['ui']['focusTracker']['remove'](_0x18c720);});}['_unbindEditors'](_0x4a9e2c){this['stopListening'](_0x4a9e2c,'editorReady'),this['stopListening'](_0x4a9e2c,'editorDestroyed');}['_createCommentThreadView'](_0x3cf501){const _0xbb23a2=this['context']['plugins']['get'](it),{config:_0x3c4b55,locale:_0x38453b}=this['context'],_0x18f366=pt(_0x3c4b55['get']('locale'),_0x38453b);return new(0x0,(_0x3c4b55['get']('comments'))['CommentThreadView'])(_0x38453b,_0x3cf501,_0xbb23a2['me'],{'editorConfig':{..._0x3c4b55['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x3c4b55['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x3c4b55['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3c4b55['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3c4b55['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x18f366,'CommentView':_0x3c4b55['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3abdc1,channelId:_0x80b4a6,resolvedAt:_0x26bfdc,resolvedBy:_0x591605,isFromAdapter:_0x2b0a30}){if(!this['hasCommentThread'](_0x3abdc1))throw new _0x2df15f('commentsrepository-missing-comment-thread',null,{'threadId':_0x3abdc1});const _0x3a4e36=this['getCommentThread'](_0x3abdc1);if(_0x3a4e36['isResolved'])throw new _0x2df15f('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3abdc1});const _0x3f5572=this['context']['plugins']['get'](it);if(_0x3a4e36['resolvedBy']=_0x3f5572['getUser'](_0x591605),_0x3a4e36['resolvedAt']=_0x26bfdc,_0x2b0a30||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x2a77cd=this['context']['plugins']['get']('PendingActions'),_0x413ecd=_0x2a77cd['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x80b4a6,'threadId':_0x3abdc1})['then'](({resolvedAt:_0x549888,resolvedBy:_0x255aa5})=>{_0x2a77cd['remove'](_0x413ecd),_0x3a4e36['resolvedBy']['id']!==_0x255aa5&&(_0x3a4e36['resolvedBy']=_0x3f5572['getUser'](_0x255aa5)),_0x3a4e36['resolvedAt']=_0x549888;})['catch'](_0x56eb5a=>{throw console['error'](_0x56eb5a),new _0x2df15f('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x283e6e,channelId:_0x2c8854,isFromAdapter:_0x5759ec}){if(!this['hasCommentThread'](_0x283e6e))throw new _0x2df15f('commentsrepository-missing-comment-thread',null,{'threadId':_0x283e6e});const _0x412bff=this['getCommentThread'](_0x283e6e);if(!_0x412bff['isResolved'])throw new _0x2df15f('commentsrepository-reopen-comment-thread',null,{'threadId':_0x283e6e});if(_0x412bff['resolvedBy']=null,_0x412bff['resolvedAt']=null,_0x5759ec||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5891a6=this['context']['plugins']['get']('PendingActions'),_0x2d8a3c=_0x5891a6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x2c8854,'threadId':_0x283e6e})['then'](()=>_0x5891a6['remove'](_0x2d8a3c))['catch'](_0xa79048=>{throw console['error'](_0xa79048),new _0x2df15f('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x3cc3c1,isFromAdapter:_0x13fc0d}){const _0x4c60f1=this['getCommentThread'](_0x3cc3c1);if(!_0x4c60f1)throw new _0x2df15f('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x3cc3c1),this['_threads']['delete'](_0x3cc3c1),!_0x4c60f1['isSubmitted']||_0x13fc0d||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0xc220d9=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1d33a9}=_0x4c60f1,_0x162edc=_0xc220d9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1d33a9,'threadId':_0x3cc3c1})['then'](()=>_0xc220d9['remove'](_0x162edc))['catch'](_0x4f3706=>{throw console['error'](_0x4f3706),new _0x2df15f('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x150978,unlinkedAt:_0x143215,context:_0x5d207c,attributes:_0x32e54c,isFromAdapter:_0x54f410}){if('string'!=typeof _0x150978)throw new _0x2df15f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x150978});if(!this['hasCommentThread'](_0x150978))throw new _0x2df15f('commentsrepository-missing-comment-thread',null,{'threadId':_0x150978});const _0xcff476=this['getCommentThread'](_0x150978);let _0x6d1d76=!0x1;if(void 0x0!==_0x5d207c&&_0xcff476['context']!==_0x5d207c&&(_0xcff476['context']=_0x5d207c,_0x6d1d76=!0x0),void 0x0!==_0x143215&&_0xcff476['unlinkedAt']!==_0x143215&&(_0xcff476['unlinkedAt']=_0x143215,_0x6d1d76=!0x0),_0x32e54c&&!At(_0x32e54c,_0xcff476['attributes'])&&(_0xcff476['attributes']=_0x32e54c,_0x6d1d76=!0x0),!_0x6d1d76)return Promise['resolve']();if(!_0xcff476['isSubmitted']||_0x54f410||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x21cacd=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4780d3}=_0xcff476,_0x14bb66=_0x21cacd['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4780d3,'threadId':_0x150978,'context':_0x5d207c,'unlinkedAt':_0x143215,'attributes':_0x32e54c})['then'](()=>_0x21cacd['remove'](_0x14bb66))['catch'](_0x77d44d=>{throw console['error'](_0x77d44d),new _0x2df15f('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1a6efd){const _0x4f558d=this['context']['plugins']['get'](y),_0x131cea=this['getCommentThread'](_0x1a6efd);if(_0x131cea['_isAttached']=!0x1,this['_threadToController']['has'](_0x131cea)){const _0x4ee60d=this['_threadToController']['get'](_0x131cea),_0x345d54=_0x4ee60d['view'],_0xf75ac4=_0x4f558d['getByInnerView'](_0x345d54);this['_threadToController']['delete'](_0x131cea),this['_viewToController']['delete'](_0x345d54),_0xf75ac4&&_0x4f558d['remove'](_0xf75ac4),_0x4ee60d['destroy'](),_0x345d54['destroy']()['then'](()=>{this['_unbindEditors'](_0x345d54);});}}['_updateActiveAnnotation']({threadId:_0x4473d2,resolvedAt:_0x2f37f9,unlinkedAt:_0x49ae0c}){const _0x4fe93f=!!_0x2f37f9,_0x2d15b9=this['context']['plugins']['get'](y),_0x307aba=this['getCommentThread'](_0x4473d2);if(this['_threadToController']['has'](_0x307aba)){const _0x212841=this['_threadToController']['get'](_0x307aba)['view'],_0x5bd487=_0x2d15b9['getByInnerView'](_0x212841);_0x5bd487&&(_0x4fe93f&&_0x2d15b9['_removeActiveAnnotation'](_0x5bd487),_0x49ae0c?_0x5bd487['isVisible']=!0x1:_0x5bd487['refreshVisibility']());}}['_getExternalAuthor'](_0x3ad67a){const _0xca5e=this['context']['plugins']['get'](it),_0x33f879=It('external:'+_0x3ad67a),_0x404677=_0xca5e['getUser'](_0x33f879);return _0x404677||_0xca5e['addUser']({'id':_0x33f879,'name':_0x3ad67a});}['_createNewComment']({threadId:_0x37a1ef,commentId:_0x519e2c=_0x5920b0(),content:_0x286253,authorId:_0x5adaad,createdAt:_0xae071,attributes:_0x1e2f3d}){if('string'!=typeof _0x519e2c)throw new _0x2df15f('commentsrepository-invalid-commentid');if('string'!=typeof _0x5adaad)throw new _0x2df15f('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x286253||!_0x286253['trim']())throw new _0x2df15f('commentsrepository-invalid-comment-content');const _0x3f8840=this['context']['plugins']['get'](it)['getUser'](_0x5adaad);if(!_0x3f8840)throw new _0x2df15f('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x5adaad});let _0x36de94=null,_0x35a0be=_0xae071;return _0x1e2f3d?.['@external']&&(_0x36de94=this['_getExternalAuthor'](_0x1e2f3d['@external']['authorName']),_0x35a0be=new Date(_0x1e2f3d['@external']['createdAt'])),new wi(this,{'threadId':_0x37a1ef,'id':_0x519e2c,'author':_0x36de94||_0x3f8840,'creator':_0x3f8840,'content':_0x286253,'createdAt':_0xae071,'authoredAt':_0x35a0be,'attributes':_0x1e2f3d});}['_addComment'](_0x12f568){let {threadId:_0x139f92,content:_0x377db2,attributes:_0x3b5b55,isFromAdapter:_0xc11ccd}=_0x12f568;const _0x2a3941=this['getCommentThread'](_0x12f568['threadId']);if(!_0x2a3941)throw new _0x2df15f('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x3490dd=this['_createNewComment'](_0x12f568),{id:_0xe43b7e}=_0x3490dd;if(_0x2a3941['_add'](_0x3490dd),_0xc11ccd||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x2a3941['isSubmitted'])return Promise['resolve']();const _0x392d28=this['context']['plugins']['get']('PendingActions'),{channelId:_0x120c50}=_0x2a3941,_0x1fde28=_0x392d28['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3b5b55||(_0x3b5b55={}),this['adapter']['addComment']({'channelId':_0x120c50,'threadId':_0x139f92,'commentId':_0xe43b7e,'content':_0x377db2,'attributes':_0x3b5b55})['then'](_0x5f3127=>{_0x392d28['remove'](_0x1fde28),_0x5f3127&&this['_updateComment']({'channelId':_0x120c50,'threadId':_0x139f92,'commentId':_0xe43b7e,'createdAt':_0x5f3127['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x277486=>{throw console['error'](_0x277486),new _0x2df15f('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x12e7fe,commentId:_0x529e9e,content:_0x185b1f,createdAt:_0x47bc3f,attributes:_0x23cb8f,isFromAdapter:_0x16674e}){if(void 0x0!==_0x185b1f&&('string'!=typeof _0x185b1f||!_0x185b1f['trim']()['length']))throw new _0x2df15f('commentsrepository-update-comment-invalid-content');const _0x4ae256=this['getCommentThread'](_0x12e7fe),_0x49234b=_0x4ae256['getComment'](_0x529e9e);if(!_0x49234b)throw new _0x2df15f('commentsrepository-update-missing-comment',this);let _0x1ac1dc=!0x1;if(_0x185b1f&&_0x185b1f!==_0x49234b['content']&&(_0x49234b['isEditable']||_0x16674e)&&(_0x49234b['content']=_0x185b1f,_0x1ac1dc=!0x0),_0x47bc3f&&_0x47bc3f!==_0x49234b['createdAt']&&(_0x49234b['createdAt']=_0x47bc3f,_0x49234b['attributes']&&_0x49234b['attributes']['@external']||(_0x49234b['authoredAt']=_0x47bc3f),_0x1ac1dc=!0x0),_0x23cb8f&&!At(_0x23cb8f,_0x49234b['attributes'])&&(_0x49234b['attributes']=_0x23cb8f,_0x1ac1dc=!0x0),!_0x1ac1dc)return Promise['resolve']();if(_0x4ae256['fire']('commentUpdated'),_0x16674e||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xf1009a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x50839d}=this['getCommentThread'](_0x49234b['threadId']),_0x51a7b5=_0xf1009a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x50839d,'threadId':_0x12e7fe,'commentId':_0x529e9e,'content':_0x185b1f,'attributes':_0x23cb8f})['then'](()=>_0xf1009a['remove'](_0x51a7b5))['catch'](_0x582d0d=>{throw console['error'](_0x582d0d),new _0x2df15f('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1726bd,commentId:_0x1cdae4,isFromAdapter:_0x248255}){const _0x37707b=this['getCommentThread'](_0x1726bd),_0x5f229d=_0x37707b['getComment'](_0x1cdae4);if(!_0x5f229d)throw new _0x2df15f('commentsrepository-remove-missing-comment',this);if(_0x37707b['_remove'](_0x5f229d),_0x248255||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x337ac4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x35b7cf}=_0x37707b,_0x1fd5af=_0x337ac4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x35b7cf,'threadId':_0x1726bd,'commentId':_0x1cdae4})['then'](()=>_0x337ac4['remove'](_0x1fd5af))['catch'](_0x2e5aed=>{throw console['error'](_0x2e5aed),new _0x2df15f('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0xe27a3f(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x46e8f2,_0x1c5d3d){super();const _0x51e12d=_0x1c5d3d['isResolvable'];this['channelId']=_0x1c5d3d['channelId'],this['id']=_0x1c5d3d['id'],this['comments']=new _0x4b4c8c(),this['_repository']=_0x46e8f2,this['_isAttached']=!0x1,this['_isSubmitted']=_0x1c5d3d['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x46e8f2,'_permissions',_0x46e8f2,'_readOnlyChannels',()=>_0x46e8f2['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x46e8f2,'_permissions',()=>_0x46e8f2['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x46e8f2,'_permissions',()=>{const _0x5a0fd2=_0x46e8f2['getPermissions'](this['channelId']);return _0x5a0fd2['write']||_0x5a0fd2['admin'];}),this['bind']('isResolvable')['to'](_0x46e8f2,'_permissions',()=>_0x51e12d&&_0x46e8f2['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x1c5d3d['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x436cfe,_0x4c0850)=>_0x436cfe?_0x4c0850?_0x436cfe<_0x4c0850?_0x436cfe:_0x4c0850:_0x436cfe:_0x4c0850),this['set']('unlinkedAt',_0x1c5d3d['unlinkedAt']||null),this['set']('resolvedAt',_0x1c5d3d['resolvedAt']||null),this['set']('resolvedBy',_0x1c5d3d['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5495f4=>!!_0x5495f4),this['set']('attributes',_0x1c5d3d['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x4e3460,_0x76da91)=>_0x4e3460+_0x76da91['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x48119a,id:_0x377f71}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x48119a),{'channelId':_0x48119a,'threadId':_0x377f71});}['setUnlinkedAt'](_0x1d1133){this['_update']({'unlinkedAt':_0x1d1133});}['resolve']({resolvedAt:_0x2884c1=new Date(),resolvedBy:_0x4c00e8='',isFromAdapter:_0x340eec=!0x1}={}){const _0x5b23de=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x2fb716,id:_0x46470e}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x2fb716),{'channelId':_0x2fb716,'threadId':_0x46470e,'resolvedAt':_0x2884c1,'resolvedBy':_0x4c00e8||_0x5b23de['id'],'isFromAdapter':_0x340eec});}['reopen']({isFromAdapter:_0x2ae928=!0x1}={}){const {channelId:_0x4399c1,id:_0x184839}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x4399c1),{'channelId':_0x4399c1,'threadId':_0x184839,'isFromAdapter':_0x2ae928});}['setContext'](_0x209391){this['context']||this['_update']({'context':_0x209391});}['setAttribute'](_0x45145d,_0x2c497f){const _0x5c26ea=wt(this['attributes']);yt(_0x5c26ea,_0x45145d,_0x2c497f),this['_update']({'attributes':_0x5c26ea});}['removeAttribute'](_0x24e0b5){const _0x261815=wt(this['attributes']);Ct(_0x261815,_0x24e0b5),this['_update']({'attributes':_0x261815});}['remove']({isFromAdapter:_0x59846f=!0x1}={}){const {channelId:_0x4b1c1b,id:_0x118608}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x4b1c1b),{'channelId':_0x4b1c1b,'threadId':_0x118608,'isFromAdapter':_0x59846f});}['attachTo'](_0x2751c2){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x2751c2});}['addComment'](_0x2fb6ad){const {channelId:_0x5918ab,id:_0x4060fc}=this;this['_repository']['fire'](Nt('addComment',_0x5918ab,_0x4060fc),Object['assign']({'channelId':_0x5918ab,'threadId':_0x4060fc},_0x2fb6ad));}['getComment'](_0x1dda2a){if('string'!=typeof _0x1dda2a)throw new _0x2df15f('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x1dda2a});return this['comments']['get'](_0x1dda2a);}['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'](_0x218a35=>_0x218a35['toJSON']()),'attributes':this['attributes']};}['_add'](_0x1e3cb0){return this['listenTo'](_0x1e3cb0,'change:authoredAt',()=>{const _0x5c0022=this['_findOptimalIndex'](_0x1e3cb0),_0x37d58e=this['comments'];_0x5c0022-0x1!=_0x37d58e['getIndex'](_0x1e3cb0)&&_0x5c0022+0x1!=_0x37d58e['getIndex'](_0x1e3cb0)&&(this['_remove'](_0x1e3cb0),this['_add'](_0x1e3cb0));}),this['comments']['add'](_0x1e3cb0,this['_findOptimalIndex'](_0x1e3cb0));}['_update'](_0x22bd4b){const {channelId:_0x2aff61,id:_0x213817}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x2aff61),{..._0x22bd4b,'channelId':_0x2aff61,'threadId':_0x213817});}['_remove'](_0xfb3630){return this['stopListening'](_0xfb3630),_0xfb3630['destroy'](),this['comments']['remove'](_0xfb3630);}['_findOptimalIndex'](_0x13ebf6){const _0x5415f1=this['comments']['find'](_0x40dc1a=>new Date(_0x40dc1a['authoredAt'])['getTime']()>new Date(_0x13ebf6['authoredAt'])['getTime']());return _0x5415f1?this['comments']['getIndex'](_0x5415f1):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0xe27a3f(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x59d0e6,_0x864f1b){super();const _0xdbe9b5=_0x59d0e6['context']['plugins']['get'](it)['me'],_0xb2bde0=_0x59d0e6['getCommentThread'](_0x864f1b['threadId']),_0x24c545=0x0===_0xb2bde0['comments']['length'],_0x14de43=_0xdbe9b5===_0x864f1b['author'];this['id']=_0x864f1b['id'],this['threadId']=_0x864f1b['threadId'],this['author']=_0x864f1b['author'],this['creator']=_0x864f1b['creator'],this['isExternal']=Boolean(_0x864f1b['attributes']&&_0x864f1b['attributes']['@external']),this['set']('content',_0x864f1b['content']),this['createdAt']=_0x864f1b['createdAt']||new Date(),this['set']('authoredAt',_0x864f1b['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0xb2bde0,'resolvedAt'),this['set']('attributes',_0x864f1b['attributes']||{}),this['bind']('isEditable')['to'](_0x59d0e6,'_permissions',()=>{const _0x2c4a36=_0x59d0e6['getPermissions'](_0xb2bde0['channelId'])['write'],_0x50fd3b=_0x59d0e6['getPermissions'](_0xb2bde0['channelId'])['modifyAll'];return _0x14de43&&_0x2c4a36||!_0x14de43&&_0x50fd3b;}),this['bind']('isRemovable')['to'](_0xb2bde0,'isRemovable',_0x59d0e6,'_permissions',_0x4a7329=>{const _0x284e2a=_0x59d0e6['getPermissions'](_0xb2bde0['channelId'])['write'],_0x1a02cf=_0x59d0e6['getPermissions'](_0xb2bde0['channelId'])['modifyAll'];return _0x14de43&&_0x284e2a||_0x4a7329&&_0x24c545||!_0x14de43&&_0x1a02cf&&!_0x24c545;}),this['bind']('isReadOnly')['to'](_0xb2bde0,'isReadOnly'),this['_repository']=_0x59d0e6;}get['weight'](){return Math['max'](function(_0x35ccf3){const _0x47fa3f=document['createElement']('div');return _0x47fa3f['innerHTML']=_0x35ccf3,_0x47fa3f['textContent']['length'];}(this['content']),0xc8);}['update'](_0x4fba85){const {threadId:_0x409361,id:_0x10fa98}=this;if(!this['_repository']['hasCommentThread'](_0x409361))throw new _0x2df15f('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x5ad8cd}=this['_repository']['getCommentThread'](_0x409361);this['_repository']['fire'](Nt('updateComment',_0x5ad8cd,_0x409361),{'channelId':_0x5ad8cd,'threadId':_0x409361,'commentId':_0x10fa98,..._0x4fba85});}['setAttribute'](_0x540cc2,_0x40a68c){const _0x49f65d=wt(this['attributes']);yt(_0x49f65d,_0x540cc2,_0x40a68c),this['update']({'attributes':_0x49f65d});}['removeAttribute'](_0x5e56e3){const _0x2daa4f=wt(this['attributes']);Ct(_0x2daa4f,_0x5e56e3),this['update']({'attributes':_0x2daa4f});}['remove'](_0x2cc34b={}){if(!_0x2cc34b['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x40a219,id:_0x2d506d}=this;if(!this['_repository']['hasCommentThread'](_0x40a219))throw new _0x2df15f('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x117d8c}=this['_repository']['getCommentThread'](_0x40a219);this['_repository']['fire'](Nt('removeComment',_0x117d8c,_0x40a219),{'channelId':_0x117d8c,'threadId':_0x40a219,'commentId':_0x2d506d,..._0x2cc34b});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x1b1f4b,..._0x4d3e7b){for(const _0x1c8af9 of _0x4d3e7b)void 0x0!==_0x1c8af9&&(_0x1b1f4b+=':'+String(_0x1c8af9));return _0x1b1f4b;}class ot extends _0x37788d{constructor(_0x12b8b0){super(_0x12b8b0),this['set']('hasContent',!0x1);}['refresh'](){const _0x3750cc=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x16c337 of _0x3750cc['getRanges']())if(this['_hasContent'](_0x16c337))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x16d98d=_0x5920b0(),ranges:_0x4debed,comment:_0x3be905}={}){const _0x195390=this['editor']['model'],_0x2c60ae=_0x4debed??Array['from'](_0x195390['document']['selection']['getRanges']()),_0x17d32c=[];for(const _0x59b239 of _0x2c60ae)this['_hasContent'](_0x59b239)&&_0x17d32c['push'](this['_trimToContent'](_0x59b239));if(!_0x17d32c['length'])throw new _0x2df15f('addcommentthreadcommand-incorrect-ranges',null);_0x3be905&&this['_createCommentThread'](_0x16d98d,_0x3be905),this['_createMarkersFromRanges'](_0x16d98d,_0x17d32c,!!_0x3be905);}['_createMarkersFromRanges'](_0x3c3f7e,_0x4de4e4,_0x5ca9b7){this['editor']['model']['change'](_0x1afc48=>{for(const _0x2f3c4d of _0x4de4e4){const _0x2a5e99=_0x5920b0()['substr'](0x1,0x5),_0x27d0fd='comment:'+_0x3c3f7e+':'+_0x2a5e99;_0x1afc48['addMarker'](_0x27d0fd,{'range':_0x2f3c4d,'usingOperation':_0x5ca9b7,'affectsData':_0x5ca9b7});}});}['_createCommentThread'](_0x5b4e4e,_0x502cdb){const _0x119b91=this['editor']['plugins']['get']('CommentsRepository'),_0x57896f=this['editor']['config']['get']('collaboration.channelId'),_0x2ee1d2=this['editor']['plugins']['get']('Users')['me'];if(!_0x2ee1d2)throw new _0x2df15f('addcommentthreadcommand-user-not-found',null);_0x119b91['addCommentThread']({'threadId':_0x5b4e4e,'channelId':_0x57896f,'comments':[{'authorId':_0x2ee1d2['id'],'content':_0x502cdb,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x555fb2){for(const _0x38d36a of _0x555fb2['getItems']())if(this['_itemIsContent'](_0x38d36a))return!0x0;return!0x1;}['_itemIsContent'](_0x36a318){return _0x36a318['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x36a318)&&!_0x36a318['is']('element','tableCell');}['_trimToContent'](_0x51ee1b){const _0x3e7223=_0x24a617=>!this['_itemIsContent'](_0x24a617['item']),_0x4a972e=_0x51ee1b['start']['getLastMatchingPosition'](_0x3e7223),_0x350cd5=_0x51ee1b['end']['getLastMatchingPosition'](_0x3e7223,{'direction':'backward'});return this['editor']['model']['createRange'](_0x4a972e,_0x350cd5);}}class b extends _0x4d61fb{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a0256){super(_0x2a0256),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x340094=this['editor'],_0x1e5448=_0x340094['model']['document']['selection'],_0x21fd3f=_0x1734fd(()=>this['refreshSelectedViews'](),0xa);_0x1e5448['on']('change:range',(_0x16a38a,_0x1bce87)=>{_0x1bce87['directChange']&&(_0x21fd3f['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x340094['editing']['view']['document'],'change:isFocused',(_0x2e9974,_0x495c8c,_0x564b1b)=>{_0x564b1b&&_0x21fd3f();}),this['listenTo'](_0x340094['ui']['focusTracker'],'change:isFocused',(_0x1e3d7e,_0x554676,_0x49e840)=>{_0x49e840||this['fire']('blur',{'isAnnotationTracked':_0x31c774=>this['_editorAnnotationsData']['has'](_0x31c774['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x42be7b){if(this['_editorAnnotations']['has'](_0x42be7b['view']))return;this['_editorAnnotations']['add'](_0x42be7b['view']),this['editor']['ui']['focusTracker']['add'](_0x42be7b['view']['element']);const _0x37bf46=this['editor']['plugins']['get'](y);this['listenTo'](_0x37bf46['collection'],'remove',(_0x4f58ab,_0x570929)=>{this['editor']['ui']['focusTracker']['remove'](_0x570929['view']['element']),this['_editorAnnotations']['delete'](_0x570929['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x26463a){if('function'!=typeof _0x26463a)throw new _0x2df15f('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x26463a);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0xecb3f8,annotations:_0x435f64}){const _0x266af6=[],_0x2d69cf=this['editor']['model']['document']['selection'],_0x582cba=Array['from'](_0x2d69cf['getRanges']());for(const [_0x5bdd34,_0x287ce6]of this['_editorAnnotationsData']){const _0x59ef49=_0x4c02ab(_0x287ce6),_0x280640=_0x435f64['getByInnerView'](_0x5bdd34);_0x59ef49&&_0x280640&&_0x266af6['push']({'annotation':_0x280640,'range':_0x59ef49});}function _0x4c02ab(_0x238b31){for(const _0x2eda62 of _0x238b31)for(const _0x5d354e of _0x582cba)if(_0x2eda62['containsRange'](_0x5d354e,!_0x2d69cf['isCollapsed']))return _0x2eda62;return null;}return _0x266af6['sort']((_0xff8f68,_0x17213a)=>{const _0xbb9d97=_0xff8f68['range'],_0x4982dc=_0x17213a['range'];if(!_0xbb9d97['isEqual'](_0x4982dc)){if(_0xbb9d97['containsRange'](_0x4982dc,!0x0))return 0x1;if(_0x4982dc['containsRange'](_0xbb9d97,!0x0))return-0x1;}return _0xff8f68['annotation']==_0xecb3f8?-0x1:_0x17213a['annotation']==_0xecb3f8?0x1:0x0;})['map'](_0xe9a7c5=>_0xe9a7c5['annotation']);}get['_editorAnnotationsData'](){const _0x3e5e2c=new Map();for(const _0x3b6955 of Array['from'](this['_dataCollectors']))for(const [_0x2d919c,_0x45013f]of _0x3b6955())_0x3e5e2c['set'](_0x2d919c,_0x45013f);return _0x3e5e2c;}}class st extends _0x4d61fb{['afterInit'](){const _0x1cc209=this['editor'];if(!_0x1cc209['plugins']['has']('RestrictedEditingModeEditing'))return;_0x1cc209['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x4d61fb{constructor(_0x2e15a0){super(_0x2e15a0),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1fb6aa=this['editor'],_0x4df519=_0x1fb6aa['commands']['get']('importWord'),_0x11b4e6=_0x1fb6aa['plugins']['get'](it);_0x4df519&&(_0x4df519['on']('execute',(_0x59fbfb,[,_0x3d4c2a])=>{_0x3d4c2a['collaboration_features']={'comments':!0x0,'user_id':_0x11b4e6['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x4df519,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x1a599e,_0xfc5b14){const {comment_threads:_0x24e95e}=_0xfc5b14;_0x24e95e&&_0x24e95e['forEach'](({thread_id:_0x1773d9,comments:_0x52b627,is_resolved:_0x5d14a5})=>{const _0x54d516=new Date(),_0x2e0d5c=_0x52b627['map'](({author:_0xf96e83,content:_0x20baa1,created_at:_0x2805c0})=>({'content':_0x20baa1,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x54d516,'attributes':{'@external':{'authorName':_0xf96e83,'createdAt':_0x2805c0?new Date(_0x2805c0):new Date(),'source':'importWord'}}})),_0x109744=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x109744,'threadId':_0x1773d9,'comments':_0x2e0d5c,'resolvedAt':_0x5d14a5?_0x54d516:null});});}}class at extends _0x4d61fb{constructor(_0x5c1336){super(_0x5c1336),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x50e1b6=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x50e1b6,'contentInsertion',(_0x24ed5c,_0x5dc598)=>this['_removeMarkersWithoutThreads'](_0x5dc598['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xb4aed1){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xb4aed1;const _0x3ec1c3=this['editor']['plugins']['get']('CommentsRepository');for(const _0x4c956c of _0xb4aed1['keys']()){const [_0x4f40e4,_0x333c3b]=_0x4c956c['split'](':');'comment'!=_0x4f40e4||_0x3ec1c3['hasCommentThread'](_0x333c3b)||_0xb4aed1['delete'](_0x4c956c);}return _0xb4aed1;}['_registerMarkerInClipboardPipeline'](){const _0x3c2b38=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1db10b=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1db10b&&_0x3c2b38['_registerMarkerToCopy']('comment',_0x1db10b);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1aa5f5){switch(_0x1aa5f5){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2aad06){const _0x52203a=_0x2aad06['split'](':');return{'group':_0x52203a[0x0],'id':_0x52203a[0x1],'part':_0x52203a[0x2]};}class ut extends _0x4d61fb{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4cb465,_0x5b15a9)=>{if(!_0x5b15a9['options']['showCommentHighlights'])return null;if(_0x5b15a9['options']['ignoreResolvedComments']){const {id:_0x54f8b7}=ft(_0x4cb465['markerName']),_0x272308=this['editor']['plugins']['get'](o);if(_0x272308['getCommentThread'](_0x54f8b7)?.['isResolved']&&_0x4cb465['item'])return _0x5b15a9['consumable']['consume'](_0x4cb465['item'],'addMarker:'+_0x4cb465['markerName']),_0x5b15a9['consumable']['consume'](_0x4cb465['item'],'removeMarker:'+_0x4cb465['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x481583=>{_0x481583['on']('addMarker:comment',(_0x31abd8,_0x2b4c64,_0x34b767)=>{if(!_0x34b767['options']['showCommentHighlights'])return;const _0x5c2b7a=_0x2b4c64['item'];if(!_0x5c2b7a)return;const _0x10c545=_0x34b767['mapper']['toViewElement'](_0x5c2b7a);this['editor']['model']['schema']['isObject'](_0x5c2b7a)&&_0x10c545&&!_0x10c545['getCustomProperty']('widget')&&_0x10c545['is']('containerElement')&&_0x41480f(_0x10c545,_0x34b767['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x446bd2,{writer:_0x1b2b8f,options:_0xe0114b})=>{if(!_0xe0114b['showCommentHighlights'])return null;const _0x2b6cce=_0x1b2b8f['createContainerElement']('div'),_0x51427f=_0x1b2b8f['createEmptyElement']('hr');return _0x1b2b8f['addClass']('ck-horizontal-line',_0x2b6cce),_0x1b2b8f['insert'](_0x1b2b8f['createPositionAt'](_0x2b6cce,0x0),_0x51427f),_0x2b6cce;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x82236e,{writer:_0x4c1981,options:_0x253a5f})=>{if(!_0x253a5f['showCommentHighlights'])return null;const _0x25928d=_0x4c1981['createContainerElement']('span'),_0x4d9202=_0x4c1981['createEmptyElement']('img');return _0x4c1981['addClass']('image-inline',_0x25928d),_0x4c1981['insert'](_0x4c1981['createPositionAt'](_0x25928d,0x0),_0x4d9202),_0x25928d;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x35b570,{writer:_0x34d30c,options:_0x40df58})=>{if(_0x40df58['showCommentHighlights'])return _0x34d30c['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x12e75b,_0x52b18c,_0x4f63ad)=>{_0x4f63ad['options']['showCommentHighlights']&&_0x12e75b['stop']();},{'priority':'high'});}}class r extends _0x4d61fb{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(_0x3aa0d5){super(_0x3aa0d5),this['set']('isThreadsLoadingPaused',!0x0),_0x3aa0d5['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x4a2f83,_0x396fb4,_0x432911,_0x393b5d)=>{const _0x563f59=_0x3aa0d5['plugins']['get'](o),_0x51ffa8=_0x432911?ft(_0x432911)['id']:null;_0x3aa0d5['model']['change'](()=>{if(_0x51ffa8){const _0x3d0666=this['getAllMarkersForId'](_0x51ffa8);for(const _0x25ea74 of _0x3d0666)_0x3aa0d5['editing']['reconvertMarker'](_0x25ea74);}if(_0x393b5d){const {id:_0xb94bfb}=ft(_0x393b5d),_0x59ed45=_0x563f59['getCommentThread'](_0xb94bfb);if(_0x59ed45&&_0x59ed45['unlinkedAt'])return;if(_0x59ed45&&!_0x59ed45['isAttached'])return;const _0x452b65=this['getAllMarkersForId'](_0xb94bfb);for(const _0x34f079 of _0x452b65)_0x3aa0d5['editing']['reconvertMarker'](_0x34f079);}}),_0x51ffa8&&this['scrollToThreadMarker'](_0x51ffa8);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2fc561=this['editor'],_0x23e131=_0x2fc561['plugins']['get'](o),_0x25646e=_0x2fc561['config']['get']('collaboration.channelId'),_0x3377bc=_0x23e131['getCommentThreads']()['filter'](_0xeedc5c=>_0xeedc5c['channelId']!==_0x25646e);_0x2fc561['commands']['add']('addCommentThread',new ot(_0x2fc561)),this['listenTo'](_0x2fc561,'change:isReadOnly',(_0x1f2091,_0x4da005,_0x107340)=>{_0x23e131['switchReadOnly'](_0x107340,_0x2fc561['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x23e131,dt('addCommentThread',_0x25646e),(_0x435f1b,{threadId:_0x28b0f4})=>{const _0x14291f=this['editor']['plugins']['get'](o)['getCommentThread'](_0x28b0f4);_0x14291f?.['unlinkedAt']&&this['_attachArchivedThread'](_0x28b0f4);}),this['listenTo'](_0x23e131,dt('removeCommentThread',_0x25646e),(_0x4ffb3d,{threadId:_0x4dd8bc})=>{_0x2fc561['model']['enqueueChange']({'isUndoable':!0x1},_0x4176b5=>{const _0x13d8c6=this['getAllMarkersForId'](_0x4dd8bc);for(const _0x24257b of _0x13d8c6)_0x4176b5['removeMarker'](_0x24257b);});}),this['listenTo'](_0x23e131,dt('resolveCommentThread',_0x25646e),(_0x8b2d87,{threadId:_0x55542e})=>{(this['_reconvertMarkers'](_0x55542e),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x55542e)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x23e131,dt('reopenCommentThread',_0x25646e),(_0x3199c3,{threadId:_0x426712})=>{this['_reconvertMarkers'](_0x426712);},{'priority':'low'}),this['listenTo'](_0x23e131,dt('addComment',_0x25646e),(_0x27675e,{threadId:_0x1916ca,isFromAdapter:_0x251ff6})=>{const _0x4c1153=this['getAllMarkersForId'](_0x1916ca);if(_0x251ff6||0x0==_0x4c1153['length']||!_0x23e131['hasCommentThread'](_0x1916ca))return;0x1===_0x23e131['getCommentThread'](_0x1916ca)['length']&&_0x2fc561['model']['enqueueChange']({'isUndoable':!0x1},_0x50dd5e=>{for(const _0x82afed of _0x4c1153)_0x50dd5e['updateMarker'](_0x82afed,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x3377bc);}['afterInit'](){!async function(_0x3d1595){const _0x393f1f=_0x32e498([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]),_0x22ce07=0x73460ab3,_0x33d639=0x7341885b^_0x22ce07,_0x1d4ad6=window[_0x32e498([0x44,0x61,0x74,0x65])][_0x32e498([0x6e,0x6f,0x77])](),_0x15c4ac=_0x3d1595[_0x32e498([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3319c1=new window[(_0x32e498([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d4168=>{_0x15c4ac[_0x32e498([0x6f,0x6e,0x63,0x65])](_0x32e498([0x72,0x65,0x61,0x64,0x79]),_0x3d4168);}),_0x4b6054={[_0x32e498([0x6b,0x74,0x79])]:_0x32e498([0x45,0x43]),[_0x32e498([0x75,0x73,0x65])]:_0x32e498([0x73,0x69,0x67]),[_0x32e498([0x63,0x72,0x76])]:_0x32e498([0x50,0x2d,0x32,0x35,0x36]),[_0x32e498([0x78])]:_0x32e498([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]),[_0x32e498([0x79])]:_0x32e498([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]),[_0x32e498([0x61,0x6c,0x67])]:_0x32e498([0x45,0x53,0x32,0x35,0x36])},_0x41a0df=_0x15c4ac[_0x32e498([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32e498([0x67,0x65,0x74])](_0x32e498([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x460945(){let _0x118226,_0x26019a=null,_0xe56701=null;try{if(_0x41a0df==_0x32e498([0x47,0x50,0x4c]))return _0x32e498([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x118226=_0x47c625(),!_0x118226)return _0x32e498([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x118226[_0x32e498([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xe56701=_0x11d11a(_0x118226[_0x32e498([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x118226[_0x32e498([0x6a,0x74,0x69])])),await _0x1e7f71()?_0x17cfc3()?_0x194a04()?_0x32e498([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c3d71()?(_0x118226[_0x32e498([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32e498([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26019a=_0x1a2fc4(_0x32e498([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b5deb()):_0x32e498([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32e498([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32e498([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32e498([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x194a04(){const _0x370671=[_0x32e498([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32e498([0x74,0x72,0x69,0x61,0x6c])][_0x32e498([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x118226[_0x32e498([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d4ad6/0x3e8:0xe10*_0x33d639;return _0x118226[_0x32e498([0x65,0x78,0x70])]<_0x370671;}function _0x17cfc3(){const _0x505ef8=_0x118226[_0x32e498([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x505ef8)return!0x1;if(_0x505ef8[_0x32e498([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32e498([0x2a])))return!0x0;if(_0x505ef8[_0x32e498([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32e498([0x43,0x4d,0x54])))return!0x0;if(_0x505ef8[_0x32e498([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32e498([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x4168fc())return!0x0;if(_0x505ef8[_0x32e498([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32e498([0x52,0x43,0x4d,0x54]))){if(_0x7ca29e())return!0x0;if(_0x410086()||_0x3636fe())return!0x0;}return!0x1;}function _0x5c3d71(){const _0x4182fc=_0x118226[_0x32e498([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4182fc||0x0==_0x4182fc[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x368941}=new URL(window[_0x32e498([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4182fc[_0x32e498([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x368941))return!0x0;const _0x59e927=_0x368941[_0x32e498([0x73,0x70,0x6c,0x69,0x74])](_0x32e498([0x2e]));return _0x4182fc[_0x32e498([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x403c39=>_0x403c39[_0x32e498([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32e498([0x2a])))[_0x32e498([0x6d,0x61,0x70])](_0x21a42b=>_0x21a42b[_0x32e498([0x73,0x70,0x6c,0x69,0x74])](_0x32e498([0x2e])))[_0x32e498([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3da9cd=>_0x3da9cd[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x59e927[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32e498([0x6d,0x61,0x70])](_0x2ad410=>Array(_0x59e927[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ad410[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32e498([0x66,0x69,0x6c,0x6c])](_0x2ad410[0x0]===_0x32e498([0x2a])?_0x32e498([0x2a]):'')[_0x32e498([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ad410))[_0x32e498([0x73,0x6f,0x6d,0x65])](_0x502cc7=>_0x59e927[_0x32e498([0x65,0x76,0x65,0x72,0x79])]((_0x5a3eb6,_0x5601ec)=>_0x502cc7[_0x5601ec]===_0x5a3eb6||_0x502cc7[_0x5601ec]===_0x32e498([0x2a])));}function _0x3b5deb(){return _0x26019a&&_0xe56701?new window[(_0x32e498([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc6e27e,_0x1f120a)=>{_0x26019a[_0x32e498([0x74,0x68,0x65,0x6e])](_0xc6e27e,_0x1f120a),_0xe56701[_0x32e498([0x74,0x68,0x65,0x6e])](_0x2a878=>{_0x2a878!=_0x32e498([0x56,0x61,0x6c,0x69,0x64])&&_0xc6e27e(_0x2a878);},_0x1f120a);}):_0x26019a||_0xe56701||_0x32e498([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11d11a(_0x22c7b2,_0x185cba){return new window[(_0x32e498([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x199f4c=>{if(_0x256b02())return _0x199f4c(_0x32e498([0x56,0x61,0x6c,0x69,0x64]));_0x23e424(),_0x15c4ac[_0x32e498([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32e498([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e8a38=!0x1;const _0x545b0e=_0x5920b0();function _0x36348a(_0x153b3f){return!!_0x153b3f&&(typeof _0x153b3f===_0x32e498([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x153b3f===_0x32e498([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x153b3f[_0x32e498([0x74,0x68,0x65,0x6e])]===_0x32e498([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x153b3f[_0x32e498([0x63,0x61,0x74,0x63,0x68])]===_0x32e498([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x546f88(_0x3b4d88){_0x4d61f4(_0x3b4d88)[_0x32e498([0x74,0x68,0x65,0x6e])](_0x116d36=>{if(!_0x116d36||_0x116d36[_0x32e498([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32e498([0x6f,0x6b]))return _0x32e498([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xed6297(_0x1e336f(_0x545b0e+_0x185cba))!=_0x116d36[_0x32e498([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32e498([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32e498([0x56,0x61,0x6c,0x69,0x64]);})[_0x32e498([0x74,0x68,0x65,0x6e])](_0x48f75e=>(_0x14db32(),_0x48f75e),()=>{const _0x52b44d=_0x52eda9();return null==_0x52b44d?(_0x14db32(),_0x32e498([0x56,0x61,0x6c,0x69,0x64])):_0x32e498(_0x1d4ad6-_0x52b44d>(0x574a8eb3^_0x22ce07)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32e498([0x74,0x68,0x65,0x6e])](_0x199f4c)[_0x32e498([0x63,0x61,0x74,0x63,0x68])](()=>{_0x199f4c(_0x32e498([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x396264=0x7370e433^_0x22ce07;function _0x14db32(){const _0xf27744=_0x32e498([0x6c,0x6c,0x63,0x74,0x2d])+_0xed6297(_0x1e336f(_0x22c7b2)),_0x831503=_0x1edc4d(_0xed6297(window[_0x32e498([0x4d,0x61,0x74,0x68])][_0x32e498([0x63,0x65,0x69,0x6c])](_0x1d4ad6/_0x396264)));window[_0x32e498([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32e498([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf27744,_0x831503);}function _0x52eda9(){const _0x2b5f5a=_0x32e498([0x6c,0x6c,0x63,0x74,0x2d])+_0xed6297(_0x1e336f(_0x22c7b2)),_0x1b6373=window[_0x32e498([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32e498([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b5f5a);return _0x1b6373?window[_0x32e498([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1edc4d(_0x1b6373),0x10)*_0x396264:null;}function _0x4d61f4(_0x2d7109){return new window[(_0x32e498([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d0b5b,_0x141bc5)=>{_0x2d7109[_0x32e498([0x74,0x68,0x65,0x6e])](_0x3d0b5b,_0x141bc5),window[_0x32e498([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x141bc5,0x7347de73^_0x22ce07);});}}_0x15c4ac[_0x32e498([0x6f,0x6e])](_0x32e498([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1da579,_0x11ff92)=>{if(_0x11ff92[0x0]!=_0x22c7b2)return _0x199f4c(_0x32e498([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11ff92[0x1]={..._0x11ff92[0x1],[_0x32e498([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x545b0e};},{[_0x32e498([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32e498([0x68,0x69,0x67,0x68])}),_0x15c4ac[_0x32e498([0x6f,0x6e])](_0x32e498([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5187b8=>{_0x36348a(_0x5187b8[_0x32e498([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e8a38=!0x0,_0x546f88(_0x5187b8[_0x32e498([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32e498([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32e498([0x6c,0x6f,0x77])}),_0x3319c1[_0x32e498([0x74,0x68,0x65,0x6e])](()=>{_0x1e8a38||_0x199f4c(_0x32e498([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x256b02(){return _0x15c4ac[_0x32e498([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32e498([0x76,0x69,0x65,0x77])][_0x32e498([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32e498([0x61,0x75,0x74,0x6f]);}function _0x23e424(){_0x15c4ac[_0x32e498([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32e498([0x76,0x69,0x65,0x77])][_0x32e498([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32e498([0x61,0x75,0x74,0x6f]);}}function _0x1a2fc4(_0x4d60a1){const _0x8ee48a=[new window[(_0x32e498([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21436f=>setTimeout(_0x21436f,0x734f347f^_0x22ce07)),_0x3319c1[_0x32e498([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32e498([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48722d=>{let _0x860bf4=0x0;_0x15c4ac[_0x32e498([0x6d,0x6f,0x64,0x65,0x6c])][_0x32e498([0x6f,0x6e])](_0x32e498([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47b57e,_0x131aae)=>{_0x131aae[0x0][_0x32e498([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x860bf4++,_0x860bf4==(0x73460f5b^_0x22ce07)&&(_0x48722d(),_0x47b57e[_0x32e498([0x6f,0x66,0x66])]());});}))];return window[_0x32e498([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32e498([0x72,0x61,0x63,0x65])](_0x8ee48a)[_0x32e498([0x74,0x68,0x65,0x6e])](()=>_0x4d60a1);}async function _0x3ae39c(){await _0x3319c1,_0x15c4ac[_0x32e498([0x6d,0x6f,0x64,0x65,0x6c])][_0x32e498([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38da27,_0x15c4ac[_0x32e498([0x6d,0x6f,0x64,0x65,0x6c])][_0x32e498([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38da27,_0x15c4ac[_0x32e498([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32e498([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4168fc(){return window[_0x32e498([0x67,0x6c,0x6f,0x62])]&&window[_0x32e498([0x67,0x6c,0x6f,0x62])][_0x32e498([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x7ca29e(){return _0x2a40ba(_0x32e498([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4ca9d4(_0x32e498([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x32e498([0x73,0x74,0x61,0x74,0x65])]==_0x32e498([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x410086(){return _0x2a40ba(_0x32e498([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 _0x3636fe(){return _0x2a40ba(_0x32e498([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1d3d61(_0x1d1160){const _0x56704d=_0x153882();_0x15c4ac[_0x56704d]=_0x32e498([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d1160,_0x1d1160!=_0x32e498([0x56,0x61,0x6c,0x69,0x64])&&_0x3ae39c();}function _0x153882(){const _0x223f0f=window[_0x32e498([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32e498([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32e498([0x6e,0x6f,0x77])]())[_0x32e498([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32e498([0x2e]),'');let _0x21eb96=_0x32e498([0x4b]);for(let _0x1da72d=0x0;_0x1da72d<_0x223f0f[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1da72d+=0x2){let _0x2ea6d7=window[_0x32e498([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x223f0f[_0x32e498([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1da72d,_0x1da72d+0x2));_0x2ea6d7>=_0x393f1f[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ea6d7-=_0x393f1f[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21eb96+=_0x393f1f[_0x2ea6d7];}return _0x21eb96;}function _0x47c625(){const _0x5bb8c0=_0x41a0df[_0x32e498([0x73,0x70,0x6c,0x69,0x74])](_0x32e498([0x2e]));if(0x3!=_0x5bb8c0[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59bdc8(_0x5bb8c0[0x1]);function _0x59bdc8(_0x33c276){const _0x560d5b=_0x3ad6dc(_0x33c276);return _0x560d5b&&_0x5c3663()?_0x560d5b:null;function _0x5c3663(){const _0x188b15=_0x560d5b[_0x32e498([0x6a,0x74,0x69])],_0x3f4696=window[_0x32e498([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x188b15[_0x32e498([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x188b15[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4dcd78={..._0x560d5b,[_0x32e498([0x6a,0x74,0x69])]:_0x188b15[_0x32e498([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x188b15[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4dcd78[_0x32e498([0x76,0x63])],_0x1e336f(_0x4dcd78)==_0x3f4696;}}}async function _0x1e7f71(){let _0xbf7937=!0x0;try{const _0x3ba577=_0x41a0df[_0x32e498([0x73,0x70,0x6c,0x69,0x74])](_0x32e498([0x2e])),[_0x176816,_0x2e004c,_0xf8fa54]=_0x3ba577;return _0x23a6e2(_0x176816),await _0x46b22c(_0x176816,_0x2e004c,_0xf8fa54),_0xbf7937;}catch{return!0x1;}function _0x23a6e2(_0x2ed7f5){const _0x37cbca=_0x3ad6dc(_0x2ed7f5);_0x37cbca&&_0x37cbca[_0x32e498([0x61,0x6c,0x67])]==_0x32e498([0x45,0x53,0x32,0x35,0x36])||(_0xbf7937=!0x1);}async function _0x46b22c(_0x3cda69,_0x5bf131,_0x27dc30){const _0x392792=window[_0x32e498([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32e498([0x66,0x72,0x6f,0x6d])](_0x393802(_0x27dc30),_0x79649c=>_0x79649c[_0x32e498([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x391870=new window[(_0x32e498([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32e498([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3cda69+_0x32e498([0x2e])+_0x5bf131),_0x5ac2b8=window[_0x32e498([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32e498([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ac2b8)return;const _0x5f1154=await _0x5ac2b8[_0x32e498([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32e498([0x6a,0x77,0x6b]),_0x4b6054,{[_0x32e498([0x6e,0x61,0x6d,0x65])]:_0x32e498([0x45,0x43,0x44,0x53,0x41]),[_0x32e498([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32e498([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32e498([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ac2b8[_0x32e498([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32e498([0x6e,0x61,0x6d,0x65])]:_0x32e498([0x45,0x43,0x44,0x53,0x41]),[_0x32e498([0x68,0x61,0x73,0x68])]:{[_0x32e498([0x6e,0x61,0x6d,0x65])]:_0x32e498([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f1154,_0x392792,_0x391870)||(_0xbf7937=!0x1);}}function _0x3ad6dc(_0x2f5386){return _0x2f5386[_0x32e498([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32e498([0x65,0x79]))?JSON[_0x32e498([0x70,0x61,0x72,0x73,0x65])](_0x393802(_0x2f5386)):null;}function _0x393802(_0x52fe95){return window[_0x32e498([0x61,0x74,0x6f,0x62])](_0x52fe95[_0x32e498([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32e498([0x2b]))[_0x32e498([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32e498([0x2f])));}function _0x1e336f(_0x2917ae){let _0x26f5b5=0x1505;function _0x39a57b(_0x53c4d8){for(let _0x1c533a=0x0;_0x1c533a<_0x53c4d8[_0x32e498([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c533a++){const _0x29ebba=_0x53c4d8[_0x32e498([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c533a);_0x26f5b5=(_0x26f5b5<<0x5)+_0x26f5b5+_0x29ebba,_0x26f5b5&=_0x26f5b5;}}function _0x4b4c52(_0x315164){Array[_0x32e498([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x315164)?_0x315164[_0x32e498([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b4c52):_0x315164&&typeof _0x315164==_0x32e498([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32e498([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x315164)[_0x32e498([0x73,0x6f,0x72,0x74])]()[_0x32e498([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd8023c,_0x50574b])=>{_0x39a57b(_0xd8023c),_0x4b4c52(_0x50574b);}):_0x39a57b(window[_0x32e498([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x315164));}return _0x4b4c52(_0x2917ae),_0x26f5b5>>>0x0;}function _0xed6297(_0x529cff){return _0x529cff[_0x32e498([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32e498([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32e498([0x30]));}function _0x1edc4d(_0x26819c){return _0x26819c[_0x32e498([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32e498([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32e498([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a40ba(_0x3a02df){return _0x15c4ac[_0x32e498([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32e498([0x68,0x61,0x73])](_0x3a02df);}function _0x4ca9d4(_0x324fdc){return _0x15c4ac[_0x32e498([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32e498([0x67,0x65,0x74])](_0x324fdc);}function _0x38da27(){}function _0x32e498(_0xaf6c08){return _0xaf6c08['map'](_0x113b8b=>String['fromCharCode'](_0x113b8b))['join']('');}_0x1d3d61(await _0x460945());}(this);}['destroy'](){const _0x4e394c=this['editor']['plugins']['get'](o),_0x26978d=this['editor']['config']['get']('collaboration.channelId');for(const _0x4dd0b9 of _0x4e394c['getCommentThreads']({'channelId':_0x26978d}))_0x4e394c['_detachCommentThread'](_0x4dd0b9['id']),_0x4e394c['_threads']['delete'](_0x4dd0b9['id']);super['destroy']();}['hasMarkerForId'](_0x1aba2c){return this['getAllMarkersForId'](_0x1aba2c)['length']>0x0;}['getAllMarkersForId'](_0xcfcde8){const _0x79d1b=[];for(const _0x182ea3 of this['editor']['model']['markers'])_0x182ea3['name']['startsWith']('comment:'+_0xcfcde8)&&_0x79d1b['push'](_0x182ea3);return _0x79d1b;}['scrollToThreadMarker'](_0x5e6bcd){setTimeout(()=>{const _0x3d013b=this['_getTargetForId'](_0x5e6bcd);if(!_0x3d013b)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5e6bcd&&nt({'target':_0x3d013b[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x2340f9){this['editor']['model']['change'](()=>{for(const _0x980109 of this['getAllMarkersForId'](_0x2340f9))this['editor']['editing']['reconvertMarker'](_0x980109);});}['_attachArchivedThread'](_0x3137b3){const _0x587863=this['editor']['plugins']['get'](o),_0x597bfb=this['editor']['plugins']['get'](b),_0x3827a7=_0x587863['getCommentThread'](_0x3137b3);if(!_0x3827a7['isAttached']){const _0x17ee85=_0x3827a7['attachTo'](()=>this['_getTargetForId'](_0x3827a7['id']));_0x597bfb['registerAnnotation'](_0x17ee85),_0x3827a7['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x431aeb=this['editor'],_0x39d4ae=_0x431aeb['plugins']['get'](it);_0x431aeb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1378a9,_0x51600b)=>{const {id:_0x5c3ded}=ft(_0x1378a9['markerName']),_0x4a1fdf=_0x431aeb['plugins']['get'](o)['getCommentThread'](_0x5c3ded),_0x49fb10=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5c3ded;let _0x53146b;if(_0x4a1fdf&&_0x4a1fdf['isResolved']&&!_0x49fb10&&_0x1378a9['item'])return _0x51600b['consumable']['consume'](_0x1378a9['item'],'addMarker:'+_0x1378a9['markerName']),_0x51600b['consumable']['consume'](_0x1378a9['item'],'removeMarker:'+_0x1378a9['markerName']),null;const _0x50b394=['ck-comment-marker'];return _0x49fb10&&_0x50b394['push']('ck-comment-marker--active'),_0x53146b=_0x4a1fdf?.['length']?_0x4a1fdf['comments']['first']['author']['id']:_0x39d4ae['me']['id'],{'classes':_0x50b394,'attributes':{'data-comment':_0x5c3ded,'data-author-id':_0x53146b}};}}),_0x431aeb['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0xd5c8e6,{options:_0x500ad3})=>{if(_0x500ad3['showCommentHighlights'])return null;const _0x2c28f4=_0x431aeb['plugins']['get'](o),_0x164a71=_0x431aeb['model']['markers']['get'](_0xd5c8e6),{id:_0x18fca7,part:_0x366b9f}=ft(_0xd5c8e6);return _0x164a71&&!_0x164a71['affectsData']||_0x500ad3['ignoreResolvedComments']&&_0x2c28f4['getCommentThread'](_0x18fca7)?.['isResolved']?null:{'group':'comment','name':_0x366b9f?_0x18fca7+':'+_0x366b9f:_0x18fca7};}}),_0x431aeb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3aac4a,{writer:_0x24c3b0})=>_0x24c3b0['createElement']('$marker',{'data-name':'comment:'+_0x3aac4a['getAttribute']('id')})}),_0x431aeb['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x31c27f=this['editor'],_0x4a3dd5=_0x31c27f['plugins']['get'](o),_0x1e3676=new Set(),_0x4b9886=new Set();_0x31c27f['model']['document']['registerPostFixer'](_0x5de05b=>{let _0x12aa8c=!0x1;for(const {name:_0x166d0e,data:_0x412621}of _0x31c27f['model']['document']['differ']['getChangedMarkers']()){const {group:_0x541252,id:_0x3a0092}=ft(_0x166d0e);let _0x258fec=_0x412621['newRange'];if('comment'!==_0x541252||!_0x258fec)continue;const _0x42ad38='$graveyard'===_0x258fec['root']['rootName'];_0x42ad38||(_0x258fec=ht(_0x258fec,_0x31c27f['model']),!_0x258fec||_0x258fec['isCollapsed']||!_0x412621['newRange']||_0x258fec['isEqual'](_0x412621['newRange']))?_0x31c27f['model']['hasContent'](_0x258fec)&&!_0x42ad38?this['isThreadsLoadingPaused']?_0x1e3676['add'](_0x166d0e):this['_handleThreadMarker'](_0x166d0e,_0x3a0092):(_0x4b9886['add'](_0x166d0e),_0x1e3676['delete'](_0x166d0e),_0x5de05b['removeMarker'](_0x166d0e),_0x12aa8c=!0x0):(_0x5de05b['updateMarker'](_0x166d0e,{'range':_0x258fec}),_0x12aa8c=!0x0);}return _0x12aa8c;}),this['on']('change:isThreadsLoadingPaused',(_0x370e5d,_0x535988,_0x5cf19a)=>{if(!_0x5cf19a&&_0x1e3676['size'])for(const _0x1b26df of _0x1e3676){const {id:_0x1679a6}=ft(_0x1b26df);_0x1e3676['delete'](_0x1b26df),_0x31c27f['model']['markers']['get'](_0x1b26df)&&this['_handleThreadMarker'](_0x1b26df,_0x1679a6);}}),this['listenTo'](_0x31c27f['model']['document'],'change',()=>{for(const {name:_0x5c496d,data:{newRange:_0x4523d5}}of _0x31c27f['model']['document']['differ']['getChangedMarkers']()){const {group:_0xee5e6c,id:_0x5083f2}=ft(_0x5c496d);if('comment'!==_0xee5e6c)continue;const _0x53d57a=_0x4a3dd5['getCommentThread'](_0x5083f2),_0x1ffba4=this['hasMarkerForId'](_0x5083f2);_0x53d57a&&(!_0x53d57a['_hasTargetInContent']&&_0x4523d5&&_0x31c27f['editing']['view']['once']('render',()=>{const _0x2fc77e=_0x31c27f['plugins']['get'](y),_0x2c61ea=_0x4a3dd5['_threadToController']['get'](_0x53d57a)['view'];_0x2fc77e['getByInnerView'](_0x2c61ea)['refreshVisibility']();},{'priority':'low'}),_0x53d57a['_hasTargetInContent']=_0x1ffba4||!!_0x4523d5),_0x4523d5||(_0x4b9886['add'](_0x5c496d),_0x1e3676['delete'](_0x5c496d));}for(const _0x50b7bf of _0x4b9886){const {id:_0x28cf95}=ft(_0x50b7bf),_0x5c0280=_0x4a3dd5['getCommentThread'](_0x28cf95);if(_0x1e3676['delete'](_0x50b7bf),!_0x5c0280)continue;const _0x5ba219=this['hasMarkerForId'](_0x28cf95);_0x5ba219||_0x5c0280['isSubmitted']?_0x5ba219||_0x5c0280['unlinkedAt']||_0x5c0280['setUnlinkedAt'](new Date()):_0x5c0280['remove']();}_0x4b9886['clear']();});}['_handleInitialThreads'](_0x52ac6e){_0x52ac6e['forEach'](_0x3a41c6=>{_0x3a41c6['unlinkedAt']&&this['_attachArchivedThread'](_0x3a41c6['id']);});}['_getTargetForId'](_0x3249a5){const _0x3fef80=this['editor'],_0x353ef9=this['getAllMarkersForId'](_0x3249a5);return et(_0x3fef80['editing'],_0x353ef9);}['_getTextContext'](_0x50c5d6){const _0x389101=this['getAllMarkersForId'](_0x50c5d6);let _0x404eaf='',_0x357b11=!0x1;for(const _0x400f85 of _0x389101){const _0x1f923a=_0x400f85['getRange']();for(const _0x4cea0e of Array['from'](_0x1f923a['getItems']()))_0x4cea0e['is']('$textProxy')?(_0x404eaf&&_0x357b11&&(_0x404eaf+='\x20',_0x357b11=!0x1),_0x404eaf+=_0x4cea0e['data']):_0x357b11=!0x0;_0x357b11=!0x0;}return _0x404eaf['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4293a0,_0x5df8f8){const _0x1b3096=this['editor'],_0xb642b=_0x1b3096['plugins']['get'](o);let _0x5491de=_0xb642b['getCommentThread'](_0x5df8f8);const _0x5c6a95=_0x1b3096['config']['get']('collaboration.channelId'),_0x4fea54=_0x1b3096['plugins']['get'](b);if(_0x5491de&&(_0x5491de['unlinkedAt']&&_0x5491de['setUnlinkedAt'](null),_0x5491de['isAttached']))return _0x5491de;return!this['getAllMarkersForId'](_0x5df8f8)[0x0]['managedUsingOperations']?_0x1b3096['editing']['view']['once']('render',()=>{if(_0xb642b['getCommentThread'](_0x5df8f8))return;const _0x4538e4=_0x1b3096['plugins']['get'](y);_0x5491de=_0xb642b['openNewCommentThread']({'channelId':_0x5c6a95,'threadId':_0x5df8f8,'target':()=>this['_getTargetForId'](_0x5df8f8),'context':{'type':'text','value':this['_getTextContext'](_0x5df8f8)}});const _0x53405a=_0xb642b['_threadToController']['get'](_0x5491de)['view'],_0x1984a9=_0x4538e4['getByInnerView'](_0x53405a);_0x1984a9&&_0x4fea54['registerAnnotation'](_0x1984a9);},{'priority':'low'}):_0xb642b['fetchCommentThread']({'channelId':_0x5c6a95,'threadId':_0x5df8f8})['then'](_0x538966=>{if('destroyed'!==_0x1b3096['state']){if(_0x5491de=_0x538966,_0x5491de&&!_0x5491de['isAttached']){const _0x48dd7a=_0x5491de['attachTo'](()=>this['_getTargetForId'](_0x5df8f8));_0x4fea54['registerAnnotation'](_0x48dd7a),_0x5491de['isResolved']&&this['_reconvertMarkers'](_0x5df8f8);}else{if(!_0x5491de){const _0x13e9a3=this['getAllMarkersForId'](_0x5df8f8);_0x1b3096['model']['change'](_0x3bc170=>{for(const _0x400a6c of _0x13e9a3)_0x3bc170['removeMarker'](_0x400a6c);});}}}}),_0x5491de;}['_handleThreadMarker'](_0xf14eba,_0x47ec3b){const _0x276c2b=this['_attachMarkerToThread'](_0xf14eba,_0x47ec3b);_0x276c2b&&!_0x276c2b['context']&&_0x276c2b['setContext']({'type':'text','value':this['_getTextContext'](_0x47ec3b)});}['_initAriaMarkerChangeAnnouncements'](){const _0x551ab5=this['editor'];rt(_0x551ab5['model'],({left:_0x3cb797,entered:_0x18c2fa})=>{for(const _0x291ed8 of _0x3cb797)if(mt(_0x291ed8)){_0x551ab5['ui']['ariaLiveAnnouncer']['announce'](N(_0x551ab5['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x33643e of _0x18c2fa)if(mt(_0x33643e)){_0x551ab5['ui']['ariaLiveAnnouncer']['announce'](N(_0x551ab5['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x1e512c)));break;}});}}function dt(_0x877f27,_0x17543c){return _0x17543c?_0x877f27+':'+_0x17543c:_0x877f27;}function ht(_0x18dd03,_0x5cf85){const _0x54c95e=_0x5cf85['schema'],_0x1a7fd1=_0x5cf85['createRange'](_0x18dd03['start']);for(const _0x2ef309 of _0x18dd03['getWalker']()){const {type:_0x226bb4,item:_0xe916ea,nextPosition:_0xb23657}=_0x2ef309;if('text'===_0x226bb4||_0x54c95e['isObject'](_0xe916ea)){const _0x43bc77=_0x5cf85['createPositionBefore'](_0xe916ea);_0x1a7fd1['isCollapsed']&&(_0x1a7fd1['start']=_0x43bc77),_0x1a7fd1['end']=_0xb23657;}}return _0x1a7fd1;}function mt(_0x4a1e88){return'comment'===ft(_0x4a1e88['name'])['group'];}class s extends _0x4d61fb{['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 _0x40c87d=this['editor'],_0x331d25=_0x40c87d['plugins']['get'](o),_0x80ab47=_0x40c87d['plugins']['get'](r),_0x410b16=_0x40c87d['plugins']['get'](y),_0x57ab83=_0x40c87d['plugins']['get'](b);_0x40c87d['ui']['componentFactory']['add']('comment',()=>{const _0x2adf22=this['_createUIButton'](_0xabb329);return _0x2adf22['tooltip']=!0x0,_0x2adf22;}),_0x40c87d['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x2c6989)),_0x57ab83['addSourceCollector'](()=>{const _0x23d4cc=[];for(const [_0x375b46,_0x59cf99]of _0x331d25['_threadToController']){const _0x34a47a=_0x80ab47['getAllMarkersForId'](_0x375b46['id']),_0x2bdbb0=_0x34a47a['map'](_0x32a33c=>_0x32a33c['getRange']());_0x34a47a['length']>0x0&&_0x23d4cc['push']([_0x59cf99['view'],_0x2bdbb0]);}return _0x23d4cc;}),this['listenTo'](_0x410b16,'change:activeAnnotations',(_0x4a72c0,_0x573623,_0x4cc669)=>{const _0xcfb649=Array['from'](_0x4cc669)['map'](_0x47a316=>_0x47a316['innerView'])['find'](_0x5aa880=>_0x331d25['_viewToController']['has'](_0x5aa880));if(!_0xcfb649)return void(_0x80ab47['activeMarker']=null);const _0x33f143=_0x331d25['_viewToController']['get'](_0xcfb649)['model']['id'],_0x13aa92='comment:'+_0x33f143;_0x33f143&&_0x80ab47['hasMarkerForId'](_0x33f143)?_0x80ab47['activeMarker']=_0x13aa92:_0x80ab47['activeMarker']&&(_0x80ab47['activeMarker']=null);}),this['listenTo'](_0x331d25,'removeCommentThread',(_0x3e338f,{threadId:_0x44d07a,isFromAdapter:_0xbe1e86})=>{!_0xbe1e86&&_0x40c87d['ui']['focusTracker']['isFocused']&&_0x80ab47['hasMarkerForId'](_0x44d07a)&&_0x40c87d['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x331d25,'addComment',(_0x16d8b5,{threadId:_0x55fdfe,isFromAdapter:_0x832998})=>{if(_0x832998||!_0x80ab47['hasMarkerForId'](_0x55fdfe)||!_0x331d25['hasCommentThread'](_0x55fdfe))return;0x1===_0x331d25['getCommentThread'](_0x55fdfe)['length']&&(_0x40c87d['editing']['view']['focus'](),_0x16d8b5['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32477b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x51cc45;for(const _0x428a14 in _0x32477b){const _0x336bfc=_0x428a14,_0x2d622a=_0x32477b[_0x336bfc];if('commentsLicenseKeyValid'==_0x2d622a||'commentsLicenseKeyInvalid'==_0x2d622a||'commentsLicenseKeyExpired'==_0x2d622a||'commentsLicenseKeyDomainLimit'==_0x2d622a||'commentsLicenseKeyNotAllowed'==_0x2d622a||'commentsLicenseKeyEvaluationLimit'==_0x2d622a||'commentsLicenseKeyUsageLimit'==_0x2d622a){delete _0x32477b[_0x336bfc],_0x51cc45=_0x2d622a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x51cc45&&_0x32477b['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x51cc45&&_0x32477b['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x51cc45&&_0x32477b['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x51cc45&&_0x32477b['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x51cc45&&_0x32477b['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x51cc45&&_0x32477b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x4b2367){const _0x10a534=this['editor'],_0x21684d=new _0x4b2367(_0x10a534['locale']),_0x2e52e7=_0x10a534['commands']['get']('addCommentThread');return _0x21684d['set']({'label':N(_0x10a534['locale'],'Comment'),'icon':_0x5ba027}),_0x21684d['bind']('isEnabled')['to'](_0x2e52e7,'isEnabled',_0x2e52e7,'hasContent',(_0x24076e,_0x191433)=>_0x24076e&&_0x191433),this['listenTo'](_0x21684d,'execute',()=>{_0x2e52e7['execute']();}),_0x21684d;}}class i extends _0x4d61fb{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x554c49){super(_0x554c49),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5d0d1b,_0x32f783,_0x1d55d5)=>{_0x1d55d5?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x543369,_0x470294]of this['editor']['commands'])_0x470294['affectsData']&&'addCommentThread'!==_0x543369&&_0x470294['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 _0x26a441=this['editor']['editing']['view']['document'];this['listenTo'](_0x26a441,'cut',_0x3030ed=>_0x3030ed['stop'](),{'priority':'highest'}),this['listenTo'](_0x26a441,'clipboardInput',_0xec13d8=>_0xec13d8['stop'](),{'priority':'highest'}),this['listenTo'](_0x26a441,'delete',_0x19635f=>_0x19635f['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1f6964,_0x2a7002]of this['editor']['commands'])_0x2a7002['affectsData']&&'addCommentThread'!==_0x1f6964&&_0x2a7002['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 _0x5bb154{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x470bb4){super(_0x470bb4),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4c016e=this['context']['plugins']['get'](y);this['listenTo'](_0x4c016e,'_activateAnnotation',(_0x303e3,_0x4bd40b)=>{for(const _0x225854 of this['activeUIs']){const _0x2748ff=this['_uis']['get'](_0x225854);(0x0,this['uisData']['get'](_0x225854)['filter'])(_0x4bd40b)&&_0x2748ff['setActiveAnnotation'](_0x4bd40b);}}),this['listenTo'](_0x4c016e,'_deactivateAllAnnotations',()=>{for(const _0x420f53 of this['activeUIs']){this['_uis']['get'](_0x420f53)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4c016e['_visibleAnnotations'],'add',(_0x2025c1,_0x4ee4df)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4ee4df);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4a6769){return this['activeUIs']['has'](_0x4a6769);}['activate'](_0x56eaa2,_0x22d662=this['defaultFilter']){const _0x2f93b4=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x56eaa2))throw new _0x2df15f('annotationsuis-missing-ui',this,{'uiName':_0x56eaa2});this['isActive'](_0x56eaa2)&&this['deactivate'](_0x56eaa2),this['activeUIs']['add'](_0x56eaa2);const _0x403899=new S();v({'source':_0x2f93b4['_visibleAnnotations'],'target':_0x403899,'filter':_0x22d662}),this['uisData']['set'](_0x56eaa2,{'collection':_0x403899,'filter':_0x22d662});const _0x1c043b=this['_uis']['get'](_0x56eaa2);_0x1c043b['attach'](_0x403899),this['listenTo'](_0x1c043b,'change:activeAnnotation',(_0x49d418,_0x2d5333,_0x1b6a63,_0x59cf24)=>{_0x59cf24&&_0x2f93b4['_removeActiveAnnotation'](_0x59cf24),_0x1b6a63&&_0x2f93b4['_addActiveAnnotation'](_0x1b6a63);});}['deactivate'](_0x43e3cb){if(this['activeUIs']['delete'](_0x43e3cb),!this['_uis']['has'](_0x43e3cb))throw new _0x2df15f('annotationsuis-missing-ui',this,{'uiName':_0x43e3cb});const _0x4ebe62=this['_uis']['get'](_0x43e3cb);_0x4ebe62['detach'](),this['stopListening'](_0x4ebe62),this['uisData']['get'](_0x43e3cb)['collection']['destroy'](),this['uisData']['delete'](_0x43e3cb);}['switchTo'](_0x49c7d6){if(!this['_uis']['has'](_0x49c7d6))throw new _0x2df15f('annotationsuis-missing-ui',this,{'uiName':_0x49c7d6});const _0x119c81=this['context']['plugins']['get'](y),_0x20f5d3=Array['from'](_0x119c81['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x49c7d6);const _0x18cdac=this['_uis']['get'](_0x49c7d6);_0x18cdac['setActiveAnnotation'](_0x20f5d3),_0x18cdac['_setSelectedAnnotations']&&_0x20f5d3&&_0x18cdac['_setSelectedAnnotations']([_0x20f5d3]);}['deactivateAll'](){for(const _0x306ab0 of this['activeUIs'])this['deactivate'](_0x306ab0);}['register'](_0x3a0fa6,_0x817f1b){if(this['_uis']['has'](_0x3a0fa6))throw new _0x2df15f('annotationsuis-register-already-registered');if('function'!=typeof _0x817f1b['attach']||'function'!=typeof _0x817f1b['detach']||'function'!=typeof _0x817f1b['setActiveAnnotation'])throw new _0x2df15f('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3a0fa6,_0x817f1b);}['refilterAnnotations'](){const _0x403411=this['context']['plugins']['get'](y)['collection'],_0x41d5fc=new Map(),_0x24bc3b=Array['from'](this['activeUIs']);for(const _0x5a8e33 of this['activeUIs']){const _0x33e678=this['uisData']['get'](_0x5a8e33)['collection'];for(const _0x4b22bc of _0x33e678)_0x41d5fc['set'](_0x4b22bc,_0x5a8e33);}for(const _0x1c3d9c of _0x403411){const _0x39fab0=_0x41d5fc['get'](_0x1c3d9c);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1c3d9c);const _0x345533=_0x24bc3b['find'](_0x472470=>this['uisData']['get'](_0x472470)['filter'](_0x1c3d9c));_0x39fab0!==_0x345533&&(_0x39fab0&&this['uisData']['get'](_0x39fab0)['collection']['remove'](_0x1c3d9c),_0x345533&&this['uisData']['get'](_0x345533)['collection']['add'](_0x1c3d9c));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1cf2d0){const _0x54f0d7=[];for(const _0x480854 of this['activeUIs']){(0x0,this['uisData']['get'](_0x480854)['filter'])(_0x1cf2d0)&&_0x54f0d7['push'](_0x480854);}if(_0x54f0d7['length']>0x1)throw new _0x2df15f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x54f0d7,'annotationType':_0x1cf2d0['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4b9d76){super(_0x4b9d76);const _0x1359b1=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 _0x151ecd(),this['focusCycler']=new _0x4e2b55({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x1359b1['to']('class')],'style':{'minHeight':_0x1359b1['to']('minHeight',_0x4e8939=>'number'==typeof _0x4e8939?_i(_0x4e8939+0xa):null)},'dir':_0x4b9d76['uiLanguageDirection'],'role':'application','aria-label':N(_0x4b9d76,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x4b9d76,'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',_0x3a5d85=>{this['_updateItemPositionInFocusables'](_0x3a5d85['source']);}),this['list']['forEach'](_0x234e78=>{this['focusTracker']['add'](_0x234e78['element']),this['_updateItemPositionInFocusables'](_0x234e78);}),this['list']['on']('change',(_0x3ab6c3,_0x14ed14)=>{for(const _0xc01edf of _0x14ed14['removed'])this['focusTracker']['remove'](_0xc01edf['element']),this['focusables']['remove'](_0xc01edf);for(const _0x5e209b of _0x14ed14['added'])this['focusTracker']['add'](_0x5e209b['element']),this['_updateItemPositionInFocusables'](_0x5e209b);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x5bab05){const _0x933a6=this['focusables']['getIndex'](_0x5bab05);let _0x4fce77,_0x4bbf05;for(const _0x4ea49b of this['focusables'])if(_0x5bab05['top']<_0x4ea49b['top']){_0x4fce77=_0x4ea49b;break;}if(_0x4bbf05=_0x4fce77?this['focusables']['getIndex'](_0x4fce77):this['focusables']['length'],-0x1!==_0x933a6){if(_0x933a6===_0x4bbf05-0x1)return;this['focusables']['remove'](_0x5bab05),_0x4bbf05=_0x4fce77?this['focusables']['getIndex'](_0x4fce77):this['focusables']['length'];}this['focusables']['add'](_0x5bab05,_0x4bbf05);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x21ebba){super(_0x21ebba),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x8cf437,_0x3fcf0c)=>_0x8cf437+_0x3fcf0c),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1a3f13=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1a3f13['to']('isAnimationDisabled',_0x898470=>_0x898470?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1a3f13['to']('top',_0x11f8a0=>Ot(_0x11f8a0))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1f4735=this['element']['clientHeight'];_0x1f4735&&(this['height']=_0x1f4735);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x5bb154{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x423d6d){super(_0x423d6d),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 _0x2256ae=this['context']['config']['get']('sidebar.container');_0x2256ae&&this['setContainer'](_0x2256ae);}['setContainer'](_0x1fe1b8){if(!g(_0x1fe1b8))throw new _0x2df15f('sidebar-setcontainer-invalid-element');this['container']=_0x1fe1b8;}['_attachToContainer']({viewClass:_0x2417d8='',spaceBetweenItems:_0x79c28d=0x19}={}){if(!g(this['container']))throw new _0x2df15f('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x2417d8,this['_spaceBetweenItems']=_0x79c28d;}['rearrange']({removedAnnotation:_0x1b18bd,previousAnnotation:_0xbdae43,nextAnnotation:_0x473b61}){const _0x87b6ba=this['getSidebarItemView'](_0x1b18bd);this['view']['list']['remove'](_0x87b6ba),this['_destroySidebarItemView'](_0x1b18bd),_0xbdae43&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xbdae43)),_0x473b61&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x473b61)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x46f0aa,activatedAnnotation:_0x5218ed,disableAnimationOnActivatedAnnotation:_0x17c7f9}){if(this['_activeAnnotation']=_0x5218ed,_0x46f0aa){_0x46f0aa['isActive']=!0x1;const _0x4ca270=this['getSidebarItemView'](_0x46f0aa);_0x4ca270&&_0x17c7f9&&(_0x4ca270['isAnimationDisabled']=!0x1);}if(_0x5218ed){const _0x7c2cce=this['getSidebarItemView'](_0x5218ed);_0x7c2cce&&(_0x5218ed['isActive']=!0x0,_0x17c7f9&&(_0x7c2cce['isAnimationDisabled']=!0x0,_0x7c2cce['top']+=0x1),this['_alignToTargetRect'](_0x7c2cce));}}['_detachFromContainer'](_0x517108){if(this['view']['element']['remove'](),_0x517108){for(const _0x5dca5f of _0x517108)this['_destroySidebarItemView'](_0x5dca5f);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x37e9f1,_0x513b18){_0x513b18||(_0x513b18=_0x37e9f1['view']);const _0x237dbc=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x237dbc,_0x37e9f1),this['_annotationToSidebarItemView']['set'](_0x37e9f1,_0x237dbc),_0x237dbc['content']['add'](_0x513b18),this['listenTo'](_0x37e9f1['view'],'change:targetRect',(_0x1c225d,_0x1acedb,_0x573c58)=>{const _0x409b70=this['_getTargetTop'](_0x37e9f1,_0x573c58);_0x237dbc['_targetTop']!=_0x409b70&&(_0x237dbc['_targetTop']=_0x409b70,this['_setItemTop'](_0x237dbc,_0x409b70));}),this['listenTo'](_0x237dbc,'change:top',()=>{this['_recalculate'](_0x237dbc,'top');}),this['listenTo'](_0x237dbc,'change:bottom',()=>{this['_recalculate'](_0x237dbc,'bottom');}),this['_alignToTargetRect'](_0x237dbc);const _0xfc881f=this['_getItemBefore'](_0x237dbc);if(_0xfc881f)this['_alignAfterItem'](_0xfc881f,_0x237dbc)||this['_alignToTargetRect'](_0x237dbc);else this['_alignToTargetRect'](_0x237dbc);return this['_updateLastItem'](),this['view']['list']['add'](_0x237dbc),_0x237dbc;}['_alignForTopChange'](_0xe79afb){if(!_0xe79afb['content']['length'])return;const _0x49f699=this['_getItemBefore'](_0xe79afb);if(!_0x49f699)return;const _0x1c76c8=this['_sidebarItemViewToAnnotation']['get'](_0x49f699),_0x163029=this['_activeAnnotation'];_0x163029&&_0x163029===_0x1c76c8?this['_alignAfterItem'](_0x49f699,_0xe79afb):this['_alignBeforeItem'](_0xe79afb,_0x49f699);}['_alignForBottomChange'](_0x9709bd){if(!_0x9709bd['content']['length'])return;const _0xbdae17=this['_getItemAfter'](_0x9709bd);if(!_0xbdae17)return;const _0x211c1f=this['_sidebarItemViewToAnnotation']['get'](_0xbdae17),_0x278401=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x5c2ab0=this['_activeAnnotation'];_0x5c2ab0&&_0x5c2ab0===_0x211c1f&&_0x278401?(this['_alignBeforeItem'](_0xbdae17,_0x9709bd),this['_alignAfterItem'](_0x9709bd,_0xbdae17)):_0x5c2ab0&&_0x5c2ab0===_0x211c1f?this['_alignBeforeItem'](_0xbdae17,_0x9709bd):this['_alignAfterItem'](_0x9709bd,_0xbdae17);}['_recalculate'](_0x564c43,_0x4db482){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x269eb2,changedProp:_0x5917a2}of this['_recalculateBuffer'])'top'===_0x5917a2?this['_alignForTopChange'](_0x269eb2):this['_alignForBottomChange'](_0x269eb2);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x564c43,'changedProp':_0x4db482});}['getSidebarItemView'](_0x6ee98){return this['_annotationToSidebarItemView']['get'](_0x6ee98);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1eb128){const _0x18514f=this['getSidebarItemView'](_0x1eb128);this['stopListening'](_0x18514f),this['stopListening'](_0x1eb128['view']),_0x18514f['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1eb128),this['_sidebarItemViewToAnnotation']['delete'](_0x18514f);}['_createSidebarView'](){const _0x18e515=new H(this['context']['locale']);return _0x18e515['render'](),this['on']('change:_lastItem',(_0x4640d7,_0x3f2d9d,_0x4ac078,_0x58dd6d)=>{_0x58dd6d&&_0x18e515['unbind']('minHeight'),_0x4ac078?_0x18e515['bind']('minHeight')['to'](_0x4ac078,'bottom'):_0x18e515['minHeight']=null;}),_0x18e515;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5841f7){const _0x47b0b7=this['_sidebarItemViewToAnnotation']['get'](_0x5841f7),_0x57225a=_0x47b0b7&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x47b0b7)-0x1);return _0x57225a&&this['getSidebarItemView'](_0x57225a)||null;}['_getItemAfter'](_0x2ca67e){const _0xf7ceca=this['_sidebarItemViewToAnnotation']['get'](_0x2ca67e),_0x127cb2=_0xf7ceca&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xf7ceca)+0x1);return _0x127cb2&&this['getSidebarItemView'](_0x127cb2)||null;}['_alignBeforeItem'](_0x4df77f,_0x4c0f04){_0x4df77f['updateHeight']();const _0x523799=G(_0x4c0f04['bottom']+this['_spaceBetweenItems'],_0x4df77f['top']);return!!_0x523799&&(this['_setItemTop'](_0x4c0f04,_0x4c0f04['top']-_0x523799),!0x0);}['_alignAfterItem'](_0x4a3f9e,_0x669798){_0x4a3f9e['updateHeight']();const _0x5abca5=G(_0x4a3f9e['bottom']+this['_spaceBetweenItems'],_0x669798['top']);return!!_0x5abca5&&(this['_setItemTop'](_0x669798,_0x669798['top']+_0x5abca5,!0x1),!0x0);}['_alignToTargetRect'](_0x4f161a){const _0x841e44=this['_sidebarItemViewToAnnotation']['get'](_0x4f161a);if(!_0x841e44||!_0x841e44['target']||!_0x841e44['targetRect'])return;const _0x255456=this['_getTargetTop'](_0x841e44,_0x841e44['targetRect']);this['_setItemTop'](_0x4f161a,_0x255456);}['_getTargetTop'](_0x2b6059,_0x10538b){if(null===_0x10538b)return 0x0;if(_0x2b6059['target']instanceof _0x318b84)return _0x10538b['top'];{const _0xca6342=new _0x318b84(this['view']['element'])['top'];return _0x10538b['top']-_0xca6342;}}['_setItemTop'](_0x1774ee,_0x5a3bb3,_0x322778=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x322778&&(_0x5a3bb3=Math['max'](_0x5a3bb3,this['_getMaxAvailableTop'](_0x1774ee))),_0x1774ee['top']=_0x5a3bb3;}['_getMaxAvailableTop'](_0x1035c8){let _0x33b887=this['_getItemBefore'](_0x1035c8),_0x39cfff=0x0;for(;_0x33b887;)_0x33b887['updateHeight'](),_0x39cfff+=this['_spaceBetweenItems']+_0x33b887['height'],_0x33b887=this['_getItemBefore'](_0x33b887);return _0x39cfff;}}function G(_0x363c3d,_0x327b86){return Math['max'](_0x363c3d-_0x327b86,0x0);}function g(_0x3da6a2){return null!==_0x3da6a2&&'object'==typeof _0x3da6a2&&0x1===_0x3da6a2['nodeType'];}class e extends _0x5bb154{['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(_0x436fc4){super(_0x436fc4),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x4b4c8c(),this['_refreshPositioningDebounced']=_0x1734fd(()=>{_0x436fc4['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x5b58b5=this['context']['plugins']['get'](j),_0x1ad47c=this['context']['plugins']['get'](z);_0x5b58b5['register']('wideSidebar',this),_0x1ad47c['container']&&_0x5b58b5['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x5dae4e){if(_0x5dae4e===this['activeAnnotation'])return;const _0x33738c=this['context']['plugins']['get'](z);_0x33738c['_activeAnnotation']=_0x5dae4e;const _0xf6285b=this['activeAnnotation'];_0x33738c['refresh']({'blurredAnnotation':_0xf6285b,'activatedAnnotation':_0x5dae4e}),this['activeAnnotation']=_0x5dae4e;}['attach'](_0x5c08a1){this['annotations']=_0x5c08a1;const _0x342986=this['context']['plugins']['get'](z);if(_0x342986['_annotations']=_0x5c08a1,this['isAttached'])throw new _0x2df15f('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x342986,'set:container',()=>{this['detach'](),this['listenTo'](_0x342986,'change:container',_0xed138e=>{_0xed138e['off'](),this['attach'](_0x5c08a1);});}),_0x342986['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3e51f3=_0x45f409=>{_0x45f409['updateTargetRect'](),_0x342986['addAnnotation'](_0x45f409);};for(const _0x25c1c5 of _0x5c08a1)_0x3e51f3(_0x25c1c5);this['listenTo'](_0x5c08a1,'add',(_0xf78c51,_0x16fa1c)=>{_0x3e51f3(_0x16fa1c);}),this['listenTo'](_0x5c08a1,'remove',(_0x375e87,_0x90255d,_0x529a26)=>{_0x342986['rearrange']({'removedAnnotation':_0x90255d,'previousAnnotation':_0x5c08a1['get'](_0x529a26-0x1),'nextAnnotation':_0x5c08a1['get'](_0x529a26+0x1)}),_0x90255d===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5c08a1,'focus',(_0x5d61b9,_0x51f5cc)=>{this['setActiveAnnotation'](_0x51f5cc);}),this['listenTo'](_0x5c08a1,'blur',()=>{this['setActiveAnnotation'](null);});const _0x56c6b0=this['context']instanceof _0x11113e?this['context']['editors']:new _0x4b4c8c([this['context']]);for(const _0x31a6f5 of _0x56c6b0)this['_integrateWithEditorAnnotations'](_0x31a6f5);this['listenTo'](_0x56c6b0,'add',(_0x44b628,_0x16ce8a)=>{this['listenTo'](_0x16ce8a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x16ce8a);});}),this['listenTo'](_0x56c6b0,'remove',(_0x38b4a3,_0x8d3ddd)=>{_0x8d3ddd['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x8d3ddd['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2df15f('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3c06a0=this['context']['plugins']['get'](z);_0x3c06a0['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3c06a0),this['stopListening'](this['annotations']),this['context']instanceof _0x11113e&&this['stopListening'](this['context']['editors']);for(const _0x3986a6 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3986a6);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1111eb){if(!_0x1111eb['plugins']['has']('EditorAnnotations'))return;const _0x5c609b=_0x1111eb['plugins']['get']('EditorAnnotations'),_0x537a92=()=>{const _0x3f5bb6=_0x5c609b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3f5bb6[0x0]||null);};this['listenTo'](_0x5c609b,'refresh',_0x537a92),this['listenTo'](_0x5c609b,'blur',(_0x2a5f30,{isAnnotationTracked:_0x1af4ee})=>{this['activeAnnotation']&&_0x1af4ee(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5c609b,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x22a31a=>{_0x5c609b['hasDomSelection']()&&(_0x537a92(),_0x22a31a['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x5c609b);}['_destroyEditorAnnotationsIntegration'](_0x75eb8f){this['stopListening'](_0x75eb8f),this['_editorAnnotations']['remove'](_0x75eb8f);}}class C extends _0xabb329{['counterView'];constructor(_0x3337b2){super(_0x3337b2);const _0x19e514=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x19d2a8,_0x5e1e45)=>_0x19d2a8?'...':_0x5e1e45['toString']()),this['set']('annotationType',''),this['icon']=_0x5ba027,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x19e514['to']('annotationType',_0xffe133=>'ck-annotation-counter__badge--'+_0xffe133),_0x19e514['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x19e514['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x5bb154{['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(_0x52d7f3){super(_0x52d7f3),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x48ff8e())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x4b4c8c(),this['_refreshPositioningDebounced']=_0x1734fd(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x50ea24(this['context']['locale']),this['balloonPanelView']=new _0x2d08b9(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x119f9c){this['annotations']=_0x119f9c;const _0x3f37fa=this['context']['plugins']['get'](z),_0x3f4083=this['balloonPanelView'];if(_0x3f37fa['_annotations']=_0x119f9c,this['isAttached'])throw new _0x2df15f('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3f37fa,'set:container',()=>{this['detach'](),this['listenTo'](_0x3f37fa,'change:container',_0x5958a6=>{_0x5958a6['off'](),this['attach'](_0x119f9c);});}),_0x3f37fa['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x347e95=_0xce6170=>{const _0x377a52=new C(this['context']['locale']);_0x3f37fa['addAnnotation'](_0xce6170,_0x377a52),this['_annotationToNarrowView']['set'](_0xce6170,_0x377a52),_0x377a52['bind']('isDirty','annotationType','number')['to'](_0xce6170['view'],'isDirty','type','length'),_0x377a52['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x3f4083['content']['first']!==_0xce6170['view']?(this['_showBalloon'](_0xce6170),_0xce6170['view']['element']['focus'](),this['setActiveAnnotation'](_0xce6170)):this['setActiveAnnotation'](null);});};for(const _0x1b0919 of _0x119f9c)_0x347e95(_0x1b0919);this['listenTo'](_0x119f9c,'add',(_0x4ab755,_0x3c1947)=>{_0x347e95(_0x3c1947);}),this['listenTo'](_0x119f9c,'remove',(_0x2eae26,_0x212d81,_0x446725)=>{this['_annotationToNarrowView']['get'](_0x212d81)['destroy'](),this['_annotationToNarrowView']['delete'](_0x212d81),_0x3f37fa['rearrange']({'removedAnnotation':_0x212d81,'previousAnnotation':_0x119f9c['get'](_0x446725-0x1),'nextAnnotation':_0x119f9c['get'](_0x446725+0x1)}),_0x212d81===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x119f9c,'focus',(_0xcae7f2,_0x14e17d)=>{this['setActiveAnnotation'](_0x14e17d);}),this['listenTo'](_0x119f9c,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5074ba,_0x4efb26)=>{_0x4efb26['keyCode']===_0x4f6592['esc']&&_0x3f4083['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x3f4083['content']['first']),this['_hideBalloon'](),_0x4efb26['stopPropagation'](),_0x4efb26['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1b6928,_0x23fe5a)=>{const _0x31ff4f=_0x23fe5a['target'];_0x3f4083['isVisible']&&_0x3f4083['element']['contains'](_0x31ff4f)||_0x3f37fa['view']['element']['contains'](_0x31ff4f)||_0x1b6928['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0xee1998=>_0xee1998['contains'](_0x31ff4f))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x3beb52=this['context']instanceof _0x11113e?this['context']['editors']:new _0x4b4c8c([this['context']]);for(const _0x17421a of _0x3beb52)this['_integrateWithEditorAnnotations'](_0x17421a);this['listenTo'](_0x3beb52,'add',(_0x1c931e,_0x118b25)=>{this['listenTo'](_0x118b25,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x118b25);});}),this['listenTo'](_0x3beb52,'remove',(_0x166d55,_0x384a10)=>{_0x384a10['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x384a10['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x39dbf8){if(_0x39dbf8===this['activeAnnotation'])return;const _0x39bdf2=this['context']['plugins']['get'](z);if(_0x39bdf2['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x39dbf8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x39dbf8)_0x39bdf2['getSidebarItemView'](_0x39dbf8)?this['_showBalloon'](_0x39dbf8):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x39dbf8;}['detach'](){if(!this['isAttached'])throw new _0x2df15f('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x41beb9=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x2519e0=>_0x2519e0['destroy']()),this['_annotationToNarrowView']['clear'](),_0x41beb9['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x11113e&&this['stopListening'](this['context']['editors']);for(const _0x2b824f of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2b824f);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'](_0x3e0d58){if(!_0x3e0d58['plugins']['has']('EditorAnnotations'))return;const _0x4e8e64=_0x3e0d58['plugins']['get']('EditorAnnotations'),_0x384c46=this['context']['plugins']['get'](z),_0x1cf934=this['annotations'],_0x2158c7=this['balloonPanelView'],_0x1404d4=()=>{const _0x1dd9e4=_0x4e8e64['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1dd9e4),this['setActiveAnnotation'](_0x1dd9e4[0x0]||null);};this['listenTo'](_0x4e8e64,'refresh',_0x1404d4),this['listenTo'](_0x4e8e64,'blur',(_0x2c644d,{isAnnotationTracked:_0x1b01be})=>{this['activeAnnotation']&&_0x1b01be(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4e8e64,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1cf934,'blur',_0x41a937=>{_0x4e8e64['hasDomSelection']()&&_0x41a937['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x55d789,_0x1b99ce)=>{const _0x246aaf=_0x1b99ce['target'];_0x2158c7['isVisible']&&_0x2158c7['element']['contains'](_0x246aaf)||_0x384c46['view']['element']['contains'](_0x246aaf)||this['activeAnnotation']&&_0x4e8e64['hasDomSelection']()&&(_0x1404d4(),_0x55d789['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4e8e64);}['_destroyEditorAnnotationsIntegration'](_0x339c15){_0x339c15&&(this['stopListening'](_0x339c15),this['_editorAnnotations']['remove'](_0x339c15));}['_setSelectedAnnotations'](_0x3b4d90){for(const _0x4f2e8b of this['_selectedAnnotations'])_0x3b4d90['includes'](_0x4f2e8b)||this['_manuallyClosedAnnotationViews']['delete'](_0x4f2e8b['view']);this['_selectedAnnotations']=_0x3b4d90;}['_refreshPositioning'](){const _0xbcd1e7=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0xbcd1e7['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xbaef06){if(this['_manuallyClosedAnnotationViews']['has'](_0xbaef06['view']))return;const _0x1239c0=this['balloonPanelView']['content']['first'];_0x1239c0!==_0xbaef06['view']?(_0x1239c0&&this['_detachListeners'](_0x1239c0),this['_attachListeners'](_0xbaef06['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xbaef06['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4a2a7b=this['balloonPanelView']['content']['first'],_0x3d5903=_0x4a2a7b&&this['annotations']['getByView'](_0x4a2a7b);if(!_0x3d5903||!this['_annotationToNarrowView']['has'](_0x3d5903))return;const _0x476361=this['_annotationToNarrowView']['get'](_0x3d5903)['element'],_0x5acd06=(function(){const _0x325a37=_0x2d08b9['defaultPositions'];return[_0x325a37['southArrowNorthEast'],_0x325a37['northArrowSouthEast'],_0x325a37['southArrowNorth'],_0x325a37['northArrowSouth'],_0x325a37['southArrowNorthWest'],_0x325a37['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x476361,'positions':_0x5acd06});}['_hideBalloon'](){const _0x206f9e=this['balloonPanelView'],_0x4203da=_0x206f9e['content']['first'];_0x4203da&&(this['_detachListeners'](_0x4203da),_0x206f9e['unpin'](),_0x206f9e['content']['clear']());}['_attachListeners'](_0x16d192){this['listenTo'](_0x16d192,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x16d192,'Esc',(_0x2f9669,_0x3b7885)=>{this['_manuallyClosedAnnotationViews']['add'](_0x16d192),this['_hideBalloon'](),_0x3b7885();});}['_detachListeners'](_0x182428){this['stopListening'](_0x182428);}}class c extends _0x4d61fb{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x5b4ed0,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f410f){super(_0x5f410f),_0x5f410f['editing']['view']['addObserver'](_0x431698),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x5f410f['plugins']['get'](_0x5b4ed0),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x1734fd(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x25f47c=this['editor']['plugins']['get'](j);_0x25f47c['context']===this['editor']&&(_0x25f47c['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x24c5e1,_0x11a693)=>{const _0x59942d=this['_balloon'];if(this['isAttached']&&_0x59942d['visibleView']){const _0x1ca5ff=this['annotations']['getByView'](_0x59942d['visibleView']);_0x1ca5ff&&this['_closeAnnotation'](_0x1ca5ff),_0x11a693();}}));}['afterInit'](){const _0x313d41=this['editor']['plugins']['get'](j);_0x313d41['context']===this['editor']&&(_0x313d41['hasActive']()||_0x313d41['switchTo']('inline'));}['setActiveAnnotation'](_0x373bc2){_0x373bc2!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x373bc2&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x373bc2)&&this['_addAnnotationToBalloon'](_0x373bc2,!0x0),_0x373bc2['isActive']=!0x0),_0x373bc2||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x373bc2);}['attach'](_0xe563b6){this['annotations']=_0xe563b6;const _0x2354ec=this['editor']['plugins']['get'](j),_0x4e303d=this['_balloon'];if(this['isAttached'])throw new _0x2df15f('inlineannotations-attach-already-attached',this);if(_0x2354ec['context']!==this['editor'])throw new _0x2df15f('inlineannotations-not-allowed-with-context',this);const _0x2d3ac1=this['editor']['plugins']['get'](b);this['listenTo'](_0x2d3ac1,'refresh',()=>{const _0x4655c1=_0x2d3ac1['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x36d88e,_0x351010;!this['_forceRefresh']&&(_0x36d88e=_0x4655c1,_0x351010=this['_selectedAnnotations'],_0x36d88e['length']===_0x351010['length']&&_0x36d88e['every'](_0x357ecc=>_0x351010['includes'](_0x357ecc)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x4655c1),this['setActiveAnnotation'](_0x4655c1[0x0]||null));}),this['listenTo'](_0x2d3ac1,'blur',(_0x1f80a7,{isAnnotationTracked:_0x448247})=>{this['activeAnnotation']&&_0x448247(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2d3ac1,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x43af9d,_0x6dcebb,_0x739eef)=>{_0x739eef||this['setActiveAnnotation'](null);}),this['listenTo'](_0xe563b6,'remove',(_0x31aef8,_0x42550f)=>{this['_removeAnnotationFromBalloon'](_0x42550f),_0x42550f===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4e303d,'change:visibleView',(_0x38f2b4,_0x509eb9,_0x186db1,_0x156472)=>{_0x156472&&this['stopListening'](_0x156472);const _0x29f3c8=_0xe563b6['getByView'](_0x186db1);_0x186db1&&_0x29f3c8&&(this['listenTo'](_0x186db1,'change:height',()=>{_0x4e303d['updatePosition']();}),this['listenTo'](_0x186db1,'Esc',()=>{this['_closeAnnotation'](_0x29f3c8),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x29f3c8&&this['setActiveAnnotation'](_0x29f3c8));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4e303d['visibleView']&&(_0xe563b6['getByView'](_0x4e303d['visibleView'])&&_0x4e303d['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 _0x2df15f('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x3101a7 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x3101a7);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x3ca644){for(const _0x2832c9 of this['_selectedAnnotations'])_0x3ca644['includes'](_0x2832c9)||this['_manuallyClosed']['delete'](_0x2832c9);for(const _0x2c1438 of this['annotations'])_0x3ca644['includes'](_0x2c1438)||this['_removeAnnotationFromBalloon'](_0x2c1438);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5054aa of _0x3ca644)this['_addAnnotationToBalloon'](_0x5054aa);}this['_selectedAnnotations']=_0x3ca644;}['_addAnnotationToBalloon'](_0x571913,_0x5743cf=!0x1){this['_manuallyClosed']['has'](_0x571913)||(this['_addedAnnotations']['has'](_0x571913)||this['_balloon']['hasView'](_0x571913['view'])||(this['_addedAnnotations']['add'](_0x571913),this['_balloon']['add']({'stackId':_0x571913['view']['id'],'view':_0x571913['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x571913)}})),_0x5743cf&&this['_balloon']['showStack'](_0x571913['view']['id']));}['_getBalloonTargetForAnnotation'](_0x403d29){const _0x45d3e2=_0x403d29['target'],_0x3cd34f=this['editor']['editing']['view'],_0x346ddc=_0x3cd34f['document']['selection']['getFirstRange'](),_0x18d4d7=_0x3cd34f['domConverter']['viewRangeToDom'](_0x346ddc);if(_0x18d4d7['collapse'](!0x0),_0x45d3e2){if(_0x45d3e2 instanceof _0x318b84)return _0x45d3e2;let _0x3416e9=[];for(const _0x10e8b6 of _0x45d3e2)_0x3416e9['push'](...F(_0x10e8b6['getClientRects']()));_0x3416e9=function(_0x2fff0e){const _0xa28886=[];let _0x13e994=_0x2fff0e[0x0];for(let _0x559315=0x1;_0x559315<_0x2fff0e['length'];_0x559315++)P(_0x13e994,_0x2fff0e[_0x559315])?_0x13e994['width']+=_0x2fff0e[_0x559315]['width']:(_0xa28886['push'](_0x13e994),_0x13e994=_0x2fff0e[_0x559315]);return _0xa28886['push'](_0x13e994),_0xa28886;}(_0x3416e9);const _0x66f3e5=_0x18d4d7['getBoundingClientRect']();return _0x3416e9['find'](_0x5f7fd1=>_0x5f7fd1['top']<=_0x66f3e5['top']&&_0x5f7fd1['bottom']>=_0x66f3e5['bottom']&&_0x5f7fd1['left']<=_0x66f3e5['left']&&_0x5f7fd1['right']>=_0x66f3e5['right'])||_0x3416e9[0x0];}return _0x403d29['targetRect']||_0x18d4d7;}['_removeAnnotationFromBalloon'](_0xc7ea3f){this['_addedAnnotations']['has'](_0xc7ea3f)&&this['_balloon']['hasView'](_0xc7ea3f['view'])&&(this['_addedAnnotations']['delete'](_0xc7ea3f),this['_balloon']['remove'](_0xc7ea3f['view']));}['_closeAnnotation'](_0x387e59){this['_manuallyClosed']['add'](_0x387e59),this['_removeAnnotationFromBalloon'](_0x387e59);}}function F(_0x427b1a){return Array['from'](_0x427b1a)['map'](DOMRect['fromRect']);}function P(_0x20ad94,_0x1c8039){return _0x20ad94['top']===_0x1c8039['top']&&_0x20ad94['bottom']===_0x1c8039['bottom']&&_0x20ad94['right']===_0x1c8039['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x2bbf54,_0x541135){super(_0x2bbf54),this['set']('isEmpty',!_0x541135['length']),this['focusTracker']=new _0x151ecd(),this['_annotationViews']=_0x541135,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x4e2b55({'focusables':_0x541135,'focusTracker':this['focusTracker']}),this['listenTo'](_0x541135,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x541135,'remove',(_0xb1e87b,_0x1d6ae7)=>{_0x1d6ae7['isActive']&&this['focus'](),_0x541135['length']||(this['isEmpty']=!0x0);});const _0x447fcd=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x2bbf54,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x541135},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x447fcd['if']('isEmpty','ck-hidden',_0x2dbe98=>!_0x2dbe98)]},'children':[{'text':N(_0x2bbf54,'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 _0xadf225 of this['_annotationViews'])this['focusTracker']['add'](_0xadf225['element']);this['_annotationViews']['on']('change',(_0x5dd584,{added:_0x307754,removed:_0x4895e4})=>{for(const _0x4759fa of _0x307754)this['focusTracker']['add'](_0x4759fa['element']);for(const _0x43fe6c of _0x4895e4)this['focusTracker']['remove'](_0x43fe6c['element']);});}}class p extends _0x5bb154{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x51edbe){super(_0x51edbe),this['archivedThreads']=new _0x4b4c8c();}['init'](){const _0x39781b=this['context'],_0x27c05a=_0x39781b['plugins']['get'](o),_0x10d937=_0x39781b['plugins']['get'](y);this['listenTo'](_0x27c05a,'addCommentThread',(_0x12e33b,{threadId:_0x58d77f})=>{const _0x2460f0=_0x27c05a['getCommentThread'](_0x58d77f);_0x2460f0['archivedAt']&&this['archivedThreads']['add'](_0x2460f0,this['_calculatePosition'](_0x2460f0['archivedAt'])),this['listenTo'](_0x2460f0,'change:archivedAt',(_0x1b7cfd,_0x5a78a9,_0x406e89)=>{_0x406e89?this['archivedThreads']['has'](_0x2460f0)||this['archivedThreads']['add'](_0x2460f0,this['_calculatePosition'](_0x2460f0['archivedAt'])):this['archivedThreads']['has'](_0x2460f0)&&this['archivedThreads']['remove'](_0x2460f0);});}),this['listenTo'](_0x27c05a,'removeCommentThread',(_0x2dfea8,{threadId:_0x1dcce6})=>{const _0x2c169e=_0x27c05a['getCommentThread'](_0x1dcce6);this['stopListening'](_0x2c169e),this['archivedThreads']['has'](_0x2c169e)&&this['archivedThreads']['remove'](_0x2c169e);},{'priority':'highest'}),this['listenTo'](_0x10d937['collection'],'focus',(_0x1048bb,_0x593a58)=>{_0x593a58['isVisible']||(_0x593a58['isActive']=!0x0,_0x10d937['activate'](_0x593a58));});}['_calculatePosition'](_0x504e68){const _0x3477ba=[...this['archivedThreads']]['findIndex'](_0x1b9afb=>_0x1b9afb['archivedAt']<_0x504e68);return _0x3477ba>-0x1?_0x3477ba:this['archivedThreads']['length'];}}class a extends _0x4d61fb{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x5a4ac0];}constructor(_0x38929f){super(_0x38929f),this['annotationViews']=new _0xb0c59c(),this['_pendingThreads']=[];}['init'](){const _0x44a101=this['editor'],_0x5da090=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x44a101['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0xabb329,!0x0)),_0x44a101['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x4a7ebe=this['_createCommentsArchiveButton'](_0x2c6989);return _0x4a7ebe['set']({'role':'menuitemcheckbox'}),_0x4a7ebe;});const _0x217ac9=_0x44a101['plugins']['get'](p),_0x1d7506=_0x44a101['plugins']['get']('Annotations'),_0x1dcb9d=_0x44a101['plugins']['get']('CommentsRepository');_0x217ac9['archivedThreads']['forEach'](_0x524e9e=>{this['_handleNewThread'](_0x524e9e);}),this['listenTo'](_0x217ac9['archivedThreads'],'add',(_0x27ba4b,_0x2b6379)=>{this['_handleNewThread'](_0x2b6379);}),this['listenTo'](_0x1d7506['collection'],'add',(_0x439aae,_0x434ef6)=>{const _0x10c218=this['_pendingThreads']['find'](_0x465b9f=>{const _0x4e44b1=_0x1dcb9d['_threadToController']['get'](_0x465b9f);return _0x4e44b1&&_0x434ef6['innerView']===_0x4e44b1['view'];});if(_0x10c218){const _0x76c4ef=this['_calculatePosition'](_0x10c218['archivedAt']);this['_addAnnotationToArchive'](_0x434ef6,_0x76c4ef),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x10c218),0x1);}}),this['listenTo'](_0x217ac9['archivedThreads'],'remove',(_0x1e7cd2,_0x9515c0)=>{const _0x390211=_0x44a101['config']['get']('collaboration.channelId');if(!_0x390211||_0x9515c0['channelId']===_0x390211){if(this['_pendingThreads']['includes'](_0x9515c0))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x9515c0),0x1);else{const _0x199bb1=_0x1dcb9d['_threadToController']['get'](_0x9515c0),_0xe57589=_0x1d7506['getByInnerView'](_0x199bb1['view']);this['annotationViews']['remove'](_0xe57589['view']),this['stopListening'](_0xe57589),this['stopListening'](_0xe57589['focusableElements']);}}}),this['listenTo'](_0x1d7506['collection'],'add',(_0x34b1c9,_0x39ecb5)=>{this['listenTo'](_0x39ecb5,'escape',_0x5da090);}),this['listenTo'](_0x1d7506['collection'],'remove',(_0x191af8,_0x2480de)=>{this['stopListening'](_0x2480de,'escape',_0x5da090);});}['_addAnnotationToArchive'](_0x235499,_0x539a26){this['listenTo'](_0x235499,'set:isVisible',_0x398628=>{_0x398628['return']=!0x1,_0x398628['stop']();}),this['annotationViews']['add'](_0x235499['view'],_0x539a26);}['_handleNewThread'](_0x59e03e){const _0xc17de2=this['editor']['plugins']['get']('CommentsRepository'),_0x268238=this['editor']['plugins']['get']('Annotations'),_0x1003aa=this['editor']['config']['get']('collaboration.channelId');if(!_0x1003aa||_0x59e03e['channelId']===_0x1003aa){const _0x5c78cb=_0xc17de2['_threadToController']['get'](_0x59e03e);if(!_0x5c78cb)return void this['_pendingThreads']['push'](_0x59e03e);const _0x1b4793=this['_calculatePosition'](_0x59e03e['archivedAt']),_0x5dd0ff=_0x268238['getByInnerView'](_0x5c78cb['view']);_0x5dd0ff['isVisible']&&_0x268238['_visibleAnnotations']['remove'](_0x5dd0ff),this['_addAnnotationToArchive'](_0x5dd0ff,_0x1b4793);}}['_calculatePosition'](_0x366435){const _0x1db1de=this['editor']['config']['get']('collaboration.channelId'),_0x3ff432=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x28ca76=>_0x28ca76['channelId']===_0x1db1de)['findIndex'](_0x4fa5e6=>_0x4fa5e6['archivedAt']<_0x366435);return _0x3ff432<0x0||_0x3ff432>this['annotationViews']['length']?this['annotationViews']['length']:_0x3ff432-0x1;}['_toggleDialog'](){const _0x562c64=this['editor'],_0x5873c0=_0x562c64['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x562c64['locale'],this['annotationViews'])),'commentsArchive'===_0x5873c0['id']?_0x5873c0['hide']():_0x5873c0['show']({'id':'commentsArchive','title':N(_0x562c64['locale'],'COMMENTS_ARCHIVE'),'icon':_0x51a018,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x39f908['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x1d6ebf,_0x4f675a=!0x1){const _0x4ba589=this['editor']['locale'],_0x3f9b8b=this['editor']['plugins']['get']('Dialog'),_0xabaad8=new _0x1d6ebf(_0x4ba589);return _0xabaad8['bind']('isEnabled')['to'](this,'isEnabled'),_0xabaad8['bind']('isOn')['to'](_0x3f9b8b,'id',_0x286825=>'commentsArchive'===_0x286825),_0xabaad8['set']({'label':N(_0x4ba589,'COMMENTS_ARCHIVE'),'icon':_0x51a018,'isToggleable':!0x0}),_0x4f675a&&(_0xabaad8['tooltip']=!0x0),this['listenTo'](_0xabaad8,'execute',()=>this['_toggleDialog']()),_0xabaad8;}['_hideDialogOnAnnotationEscape']=_0x332d59=>{const _0x3db753=_0x332d59['source'];if(!this['annotationViews']['has'](_0x3db753['view']))return;const _0x4c2389=this['editor']['plugins']['get']('Dialog');_0x4c2389['isOpen']&&'commentsArchive'===_0x4c2389['id']&&(_0x4c2389['hide'](),_0x332d59['stop']());};}class gi extends _0x4d61fb{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};