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

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 _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};
23
+ import{Editor as _0x4547d4,ContextPlugin as _0x1511aa,PendingActions as lt,Command as _0x4344f0,Plugin as _0x562ab1,Context as _0x1f800c}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x27f26f,uid as _0x288d35,KeystrokeHandler as jt,FocusTracker as _0x3fbfe5,diff as _0x3ac826,Collection as _0x1ce026,Rect as _0x28ea8f,CKEditorError as _0x4c975e,first as _0x666d2d,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x400570,keyCodes as _0x586f43}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x121ef4,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x1003c4,trimHtml as ts,LateFocusDropdownButtonView as _0x45d290,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x51ab26}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x192048}from'es-toolkit/compat';import{IconUndo as _0x126a71,IconCheck as _0x270843,IconPencil as _0x14a16d,IconRemoveComment as _0x3b7aa6,IconThreeVerticalDots as _0x3ad126,IconAddComment as _0x38a6cc,IconCommentsArchive as _0x49e813}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x39bd35,ButtonView as _0x2e2946,ViewCollection as _0x24b505,createDropdown as _0x35c333,ListView as _0x3d0ae5,focusChildOnDropdownOpen as _0x3ec29f,ListItemView as _0x44544a,MenuBarMenuListItemButtonView as _0x1b61d8,BodyCollection as _0x41fe53,BalloonPanelView as _0x29a8fe,ContextualBalloon as _0x3dbc3d,Dialog as _0x3ab7ac,DialogViewPosition as _0x388cbc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x4c6600}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 _0x5199de}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x272216}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x27f26f(){['model'];['view'];constructor(_0x19951e,_0x43547a){super(),this['model']=_0x19951e,this['model']['_isAttached']=!0x0,this['view']=_0x43547a,this['listenTo'](_0x43547a,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x43547a,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x43547a,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x43547a,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x43547a,'addComment',(_0x1f6403,_0x223f20)=>this['addComment'](_0x223f20)),this['listenTo'](_0x43547a,'updateComment',(_0x1d00c0,_0x5396ad,_0xcbc31e)=>this['updateComment'](_0x5396ad,_0xcbc31e)),this['listenTo'](_0x43547a,'removeComment',(_0xe40ad9,_0x51abfc)=>this['removeComment'](_0x51abfc));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x340d7e){this['model']['addComment']({'content':_0x340d7e,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x548f4f,_0x571679){this['model']['getComment'](_0x548f4f)['update']({'content':_0x571679});}['removeComment'](_0x414391){this['model']['getComment'](_0x414391)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x40bcfd,_0x185dfd,_0x55ce86){const t=_0x40bcfd['t'];switch(_0x185dfd){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'},_0x55ce86);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'},_0x55ce86);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'},_0x55ce86);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'},_0x55ce86);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x55ce86);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'},_0x55ce86);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'},_0x55ce86);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'},_0x55ce86);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(_0xe8344,_0x416a3c){super(_0xe8344);const _0x52cbc4=_0x288d35();this['main']=this['createCollection'](),this['editable']=new Vt(_0xe8344,_0x416a3c,void 0x0,{'label':()=>N(_0xe8344,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xe8344['uiLanguageDirection'],'lang':_0xe8344['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x52cbc4},'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(_0x2411fb){super(_0x2411fb),this['view']=new Rt(_0x2411fb['locale'],_0x2411fb['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1a09d4=this['editor']['editing']['view'],_0x4bce50=this['view']['editable'],_0x51967e=_0x1a09d4['document']['getRoot']();_0x4bce50['name']=_0x51967e['rootName'],this['view']['render']();const _0x54299f=_0x4bce50['element'];this['setEditableElement'](_0x4bce50['name'],_0x54299f),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1a09d4['attachDomRoot'](_0x54299f),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x27f26f(_0x4547d4){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x234790={}){function _0x24e02d(_0x9f402a){return _0x9f402a['map'](_0x377791=>String['fromCharCode'](_0x377791))['join']('');}(_0x234790=Object['assign']({},_0x234790))['plugins']||(_0x234790['plugins']=hs['defaultPlugins']),super(_0x234790),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[_0x24e02d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24e02d([0x76,0x69,0x65,0x77])][_0x24e02d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24e02d([0x61,0x75,0x74,0x6f]),this[_0x24e02d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x24e02d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24e02d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x24e02d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x24e02d([0x6f,0x6b])});}['create'](){const _0x241717=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x241717))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x2df2b4=>{const _0x27db09=this['model']['document']['getRoot'](),_0x271579=_0x27db09&&_0x27db09['getChild'](_0x27db09['childCount']-0x1);_0x2df2b4['setSelection'](_0x271579,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x45c022=this['editing']['view'],_0x11c79f=_0x45c022['document']['getRoot'](),_0x59790a=_0x11c79f['getChild'](0x0);_0x11c79f['childCount']>0x1||!_0x59790a||'p'!=_0x59790a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x45c022,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x59790a['placeholder']=this['placeholder']),Ft({'view':_0x45c022,'element':_0x59790a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x59790a);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x2b0906,_0x1a5c92={}){super(_0x2b0906),this['editor']=null,this['_editorConfig']=_0x1a5c92,this['set']('value',_0x1a5c92['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x2b0906,'Reply...')),this['set']('submitLabel',N(_0x2b0906,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x3fbfe5(),this['focusCycler']=new _0x39bd35({'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',(_0x139e91,_0x441e66)=>{this['cancelButtonView']['fire']('execute'),_0x441e66();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4cf81f,_0x569abb)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x569abb());}),this['on']('submit',(_0x315b38,_0x18931b)=>{_0x18931b['length']>0xfde8?(alert(N(_0x2b0906,'TOO_LONG_COMMENT_ALERT',[_0x18931b['length'],0xfde8])),_0x315b38['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 _0x34df1d=this['editor'];this['element']['insertBefore'](_0x34df1d['ui']['element'],this['element']['firstChild']),_0x34df1d['model']['document']['on']('change',()=>this['value']=_0x34df1d['getData']()),_0x34df1d['bind']('placeholder')['to'](this),this['focusables']['add'](_0x34df1d['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4a9635){-0x1===_0x4a9635?(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:_0x11987e}=this,_0x694e9b=new _0x2e2946(_0x11987e);return _0x694e9b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x694e9b['withText']=!0x0,_0x694e9b['bind']('label')['to'](this,'submitLabel'),_0x694e9b['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x694e9b['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x209dbb,_0x2ad6c9)=>!_0x2ad6c9&&!!_0x209dbb['trim']()),_0x694e9b;}['_createCancelButton'](){const {locale:_0x10f787}=this,_0x5a7207=new _0x2e2946(_0x10f787);return _0x5a7207['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x5a7207['label']=N(_0x10f787,'Cancel'),_0x5a7207['withText']=!0x0,_0x5a7207['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x5a7207;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x7f7cbb=>{this['focusTracker']['add'](_0x7f7cbb['element']);}),this['focusables']['on']('change',(_0xbff8d7,_0x5dad5d)=>{for(const _0x53f4c4 of Array['from'](_0x5dad5d['added'])['reverse']())this['focusTracker']['add'](_0x53f4c4['element']);});}}class ie extends kt{constructor(_0x3379c1,_0x252b01,_0x57ed2e){super(_0x3379c1),this['commentInputView']=new es(_0x3379c1,_0x57ed2e),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x76bd5,_0x346c35)=>_0x76bd5||!!_0x346c35),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 _0x121ef4(_0x3379c1,_0x252b01),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'](_0x3b685e){this['commentInputView']['focus'](_0x3b685e);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x25c936,_0x218581)=>{const {submitButtonView:_0x2ac97a,cancelButtonView:_0x111470,editor:_0x46277d}=this['commentInputView'];[_0x2ac97a['element'],_0x111470['element'],_0x46277d?_0x46277d['editing']['view']['getDomRoot']():null]['filter'](_0x39f4a6=>_0x39f4a6)['some'](_0x510158=>_0x510158['contains'](_0x218581['target']))||(this['focus'](),_0x218581['preventDefault']());});}}class rs extends kt{constructor(_0x3d1017){super(_0x3d1017);const _0x2119b8=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2119b8['to']('count',_0x56fc86=>N(_0x3d1017,'NUMBER_OF_COMMENTS',_0x56fc86))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x3526a8,_0x41c9ed,_0xd8b6da){super(_0x3526a8);const _0x2c33f0=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x41c9ed['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x41c9ed,this['_config']=_0xd8b6da,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x3fbfe5(),this['keystrokes']=new jt(),this['focusCycler']=new _0x39bd35({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x595669=>this['commentViews']['map'](_0x20b6be=>_0x20b6be['element'])['includes'](_0x595669['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x3526a8),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x4bae50=>_0x4bae50-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5afa17 of _0x41c9ed['comments'])this['_handleNewCommentModel'](_0x5afa17);this['_handleInfoComment'](),this['listenTo'](_0x41c9ed['comments'],'add',(_0x3c85f9,_0x4a53c0)=>{const _0xf9ceff=this['_calculatePosition'](_0x4a53c0);this['length']++,this['_handleNewCommentModel'](_0x4a53c0,_0xf9ceff),this['refreshVisibleViews']();}),this['listenTo'](_0x41c9ed['comments'],'remove',(_0x1b7ebb,_0x53ca67)=>{this['length']--,this['_handleRemoveCommentModel'](_0x53ca67),this['refreshVisibleViews']();}),this['listenTo'](_0x41c9ed,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x41c9ed,'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',_0x2c33f0['if']('length','ck-hidden',_0x2bd643=>!_0x2bd643)],'aria-label':N(_0x3526a8,'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'](_0x4f540d){-0x1===_0x4f540d?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0xc388f9 of this['commentViews'])_0xc388f9['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x536713,_0x5488d5){const _0x2a8808=new this['_config']['CommentView'](this['locale'],_0x536713,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2a8808['viewUid']=_0x536713['id'],_0x2a8808['delegate']('removeComment')['to'](this),_0x2a8808['delegate']('updateComment')['to'](this),_0x2a8808['delegate']('resolveCommentThread')['to'](this),_0x2a8808['delegate']('editorReady')['to'](this),_0x2a8808['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2a8808,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2a8808,_0x5488d5);}['_calculatePosition'](_0x56b08){const _0x9947aa=this['_model']['_findOptimalIndex'](_0x56b08);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x56b08['authoredAt']?_0x9947aa-0x1:_0x9947aa:_0x9947aa-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4e5c70={'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'],_0x4e5c70,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4e5c70));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x30811a){const _0x4c9c66=this['commentViews']['remove'](_0x30811a['id']);this['stopListening'](_0x4c9c66),_0x4c9c66['isEditMode']&&this['_updateHasDirtyComment'](),_0x4c9c66['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2f0ab8=>_0x2f0ab8['isEditMode']);}['_rearrangeCollapse'](){const _0x513c29=function(_0x566d34){const _0xa69cfe=new _0x1ce026();for(const _0x37007a of _0x566d34)_0xa69cfe['add'](_0x37007a);return _0xa69cfe;}(this['commentViews']),_0x35cd38=this['_collapsedCommentsView']['count'];for(let _0x171e22=0x1;_0x171e22<=_0x35cd38;_0x171e22++)_0x513c29['remove'](0x1);for(const _0x1b1c94 of _0x513c29)_0x1b1c94['collapse']();_0x35cd38>0x0&&_0x513c29['add'](this['_collapsedCommentsView'],0x1),ns(_0x3ac826(Array['from'](this['visibleViews']),Array['from'](_0x513c29)),this['visibleViews'],_0x513c29);}['_rearrangeExpand'](){ns(_0x3ac826(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0xb84bd1 of this['visibleViews'])_0xb84bd1['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x19531f=>{this['focusTracker']['add'](_0x19531f['element']),this['keystrokes']['listenTo'](_0x19531f['element']);}),this['commentViews']['on']('change',(_0x32a7bb,_0x2574da)=>{for(const _0x5f2ffa of _0x2574da['removed'])this['focusTracker']['remove'](_0x5f2ffa['element']),this['keystrokes']['stopListening'](_0x5f2ffa['element']);for(const _0x23c841 of Array['from'](_0x2574da['added'])['reverse']())this['focusTracker']['add'](_0x23c841['element']),this['keystrokes']['listenTo'](_0x23c841['element']);});}}function ns(_0x13b9c4,_0x1d3c28,_0x118c35){let _0x47056c=0x0;for(const _0x569491 of _0x13b9c4)switch(_0x569491){case'insert':_0x1d3c28['add'](_0x118c35['get'](_0x47056c),_0x47056c),_0x47056c++;break;case'delete':_0x1d3c28['remove'](_0x47056c);break;case'equal':_0x47056c++;}}class oe extends kt{constructor(_0x92e981){super(_0x92e981);const _0x5f5c5b=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x5f5c5b['to']('contextValue',_0x4bac1e=>N(_0x92e981,'THREAD_CONTEXT_LABEL',_0x4bac1e)),'tabindex':-0x1},'children':[{'text':_0x5f5c5b['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3dc69a,_0xea5d0){super(_0x3dc69a);const _0x24f544=this['bindTemplate'];this['_model']=_0xea5d0,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x3fbfe5(),this['keystrokes']=new jt(),this['focusCycler']=new _0x39bd35({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0xcc0685=>!!_0xcc0685),this['bind']('contextValue')['to'](this['_model'],'context',_0x3cf269=>_0x3cf269&&_0x3cf269['value']?this['_trimContextValue'](_0x3cf269['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',_0x24f544['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 _0x44bf69=new _0x2e2946(this['locale']);return _0x44bf69['label']=N(this['locale'],'Reopen'),_0x44bf69['tooltip']=N(this['locale'],'Reopen'),_0x44bf69['icon']=_0x126a71,_0x44bf69['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xf6d27d=>!_0xf6d27d),_0x44bf69['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x546da6,_0x36da53)=>_0x546da6&&_0x36da53),_0x44bf69['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x44bf69;}['_trimContextValue'](_0x29413a){if(_0x29413a['length']<0x96)return _0x29413a;const _0x38a28d=_0x29413a['lastIndexOf']('\x20',0x93);return _0x29413a['substring'](0x0,_0x38a28d>-0x1?_0x38a28d:0x93)+'...';}['_attachContextActions'](){const _0x1ffe30=this['element']['querySelector']('.ck-context'),_0x49a2fa=_0x1ffe30['querySelector']('.ck-context__value');this['listenTo'](_0x1ffe30,'mouseenter',()=>{_0x49a2fa['offsetWidth']<_0x49a2fa['scrollWidth']&&_0x1ffe30['classList']['add']('overlay');}),this['listenTo'](_0x1ffe30,'mouseleave',()=>{_0x1ffe30['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x28abc4 of this['focusables'])this['focusTracker']['add'](_0x28abc4['element']),this['keystrokes']['listenTo'](_0x28abc4['element']);}['_createContextView'](){const _0x5db501=new oe(this['locale']);return _0x5db501['bind']('contextValue')['to'](this),_0x5db501;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x214c76,_0x550328,_0x11fb49,_0x228a2a){super(_0x214c76),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x550328,this['_localUser']=_0x11fb49,this['_config']=_0x228a2a,this['commentThreadHeaderView']=new Xt(_0x214c76,_0x550328),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x214c76,N(_0x214c76,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x214c76,_0x550328,Object['assign']({'CommentView':this['_config']['CommentView']},_0x228a2a)),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',(_0x1ca844,_0x274076)=>_0x1ca844||!!_0x274076),this['bind']('isUnlinked')['to'](_0x550328,'unlinkedAt',_0x25b77a=>!!_0x25b77a),this['bind']('ariaLabel')['to'](this,'length',_0x19db66=>{const _0x13b9f3=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x19db66,_0x13b9f3]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x3fbfe5(),this['keystrokes']=new jt(),this['focusCycler']=new _0x39bd35({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4ca8d3=>_0x4ca8d3['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 _0x494411=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1a2a80=_0x494411['commentInputView'];return _0x494411['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x1a2a80,'value',(_0x453647,_0x25595f,_0x5a4043,_0x1e21e1,_0x5c05dd)=>!!_0x5c05dd||!!_0x1e21e1&&_0x5a4043&&!_0x25595f||_0x453647&&_0x5a4043&&!_0x25595f),_0x1a2a80['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0xd4eef8,_0x2a3737,_0x1671df)=>{let _0x2a51d8;return _0x2a51d8=_0x1671df&&_0x2a3737?'Reply\x20to\x20reopen\x20discussion...':_0xd4eef8?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x2a51d8);}),_0x1a2a80['bind']('submitLabel')['to'](this,'length',_0x3c05e8=>N(this['locale'],_0x3c05e8?'Reply':'Comment')),_0x1a2a80['on']('submit',(_0x5528cd,_0x3b89fd)=>{this['fire']('addComment',_0x3b89fd),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x1a2a80['on']('cancel',()=>{this['focus']();}),_0x1a2a80['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1a2a80['on']('cancel',_0x4515c0=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4515c0['stop']());}),this['on']('change:isActive',(_0x289347,_0x4b2a8e,_0x5c7e76)=>{_0x5c7e76||this['length']||_0x1a2a80['value']||this['fire']('removeCommentThread');}),_0x494411;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x22fece,_0x51e47b,_0x109d4a,_0xea32b6){super(_0x22fece,_0x51e47b,_0x109d4a,_0xea32b6),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x22fece,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x28758e,_0x2fe58e,_0x38db30)=>{_0x38db30||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1c3ecc,_0x62719f,_0x58d9e3)=>{_0x58d9e3&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x3a724d=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x3a724d['if']('isActive','ck-thread--active'),_0x3a724d['if']('isUnlinked','ck-thread--unlinked'),_0x3a724d['to']('actionIndicator',_0x238f1d=>_0x238f1d?'ck-thread--'+_0x238f1d:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3a724d['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 _0x381a72 of this['commentsListView']['commentViews'])_0x381a72['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x756125}=this,_0x3156a1=this['commentsListView']['commentViews']['get'](0x0);_0x3156a1===this['_boundFirstCommentView']||_0x3156a1['isSystemComment']||(this['_boundFirstCommentView']=_0x3156a1,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3156a1,'actionIndicator',_0x3d24e3=>'remove'===_0x3d24e3?'remove':null),_0x3156a1['placeholder']=N(_0x756125,'Write\x20a\x20comment...'),_0x3156a1['removeButton']['on']('execute',_0x4b0534=>{_0x4b0534['stop'](),this['showConfirm'](N(_0x756125,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3156a1['focus']();}),_0x3156a1['actionBar']['add'](this['resolveButton'],0x0),_0x3156a1['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1a3d87=new _0x1003c4(this['locale']);return _0x1a3d87['label']=N(this['locale'],'Resolve'),_0x1a3d87['tooltip']=N(this['locale'],'Resolve'),_0x1a3d87['icon']=_0x270843,_0x1a3d87['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x1a3d87['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x59efd6=>!_0x59efd6),_0x1a3d87['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x40c20e,_0x2ffaf9)=>_0x40c20e&&!_0x2ffaf9),_0x1a3d87['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x1a3d87;}['_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(_0x59504a){super(_0x59504a),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x3671f,_0x1c2d85,_0x1df810)=>{this['element']['innerHTML']=_0x1df810;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23ac70,_0xf80b60,_0x390c89){super(_0x23ac70),this['_model']=_0xf80b60,this['_config']=_0x390c89,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0xf80b60,'content',_0xf80b60,'authoredAt',(_0x3a71a1,_0x159e3a)=>N(_0x23ac70,'COMMENT_ARIA_LABEL',[_0xf80b60['author']['name'],_0x390c89['formatDateTime'](_0x159e3a),new DOMParser()['parseFromString'](_0x3a71a1,'text/html')['body']['textContent'],_0xf80b60['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x23ac70,N(_0x23ac70,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x24b505(),this['focusTracker']=new _0x3fbfe5(),this['keystrokes']=new jt(),this['focusCycler']=new _0x39bd35({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1e399a=>_0x1e399a['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 _0x405296=new is(this['locale']);return _0x405296['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x30b0e1,_0xe9ac72)=>_0xe9ac72?ts(_0x30b0e1,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x30b0e1),_0x405296;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x4ccdcb=new es(this['locale'],this['_config']['editorConfig']);return _0x4ccdcb['value']=this['_model']['content'],_0x4ccdcb['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4ccdcb['submitLabel']=N(this['locale'],'Save'),_0x4ccdcb['on']('submit',(_0x3c80f3,_0x15cebf)=>{this['fire']('updateComment',this['_model']['id'],_0x15cebf),this['switchToDisplayMode'](),this['focus']();}),_0x4ccdcb['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x4ccdcb['once']('editorReady',()=>{_0x4ccdcb['focus']();}),_0x4ccdcb['createEditor'](),_0x4ccdcb['delegate']('editorReady')['to'](this),_0x4ccdcb['delegate']('editorDestroyed')['to'](this),_0x4ccdcb;}['_setupKeyboardNavigation'](){const _0x21a6fc=this['element'];this['keystrokes']['listenTo'](_0x21a6fc);for(const _0x55813f of this['focusables'])this['focusTracker']['add'](_0x55813f['element']),this['keystrokes']['listenTo'](_0x55813f['element']);this['focusables']['on']('change',(_0x55f6a7,_0x293d4e)=>{for(const _0x56f679 of _0x293d4e['removed'])this['focusTracker']['remove'](_0x56f679['element']),this['keystrokes']['stopListening'](_0x56f679['element']);for(const _0x36c9d5 of _0x293d4e['added'])this['focusTracker']['add'](_0x36c9d5['element']),this['keystrokes']['listenTo'](_0x36c9d5['element']);}),this['keystrokes']['set']('enter',(_0x1b62fe,_0x2d75eb)=>{_0x21a6fc===_0x1b62fe['target']&&(this['focusCycler']['focusFirst'](),_0x2d75eb());}),this['keystrokes']['set']('esc',(_0x240ba0,_0x115e8d)=>{_0x21a6fc!==_0x240ba0['target']&&(this['focus'](),_0x115e8d());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x1075e0,_0x1f875b,_0x223956){super(_0x1075e0,_0x1f875b,_0x223956),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x1075e0,'Reply...')),this['bind']('authoredAt')['to'](_0x1f875b),this['bind']('resolvedAt')['to'](_0x1f875b),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 _0x121ef4(_0x1075e0,_0x1f875b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x1f875b,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x129e70=this['bindTemplate'],_0x58e19e=[{'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':_0x129e70['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x129e70['to']('authoredAt',_0x5df607=>this['_config']['formatDateTime'](_0x5df607))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x129e70['if']('isEditMode','ck-comment__actions--hidden'),_0x129e70['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']&&_0x58e19e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x129e70['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x129e70['if']('isEditMode','ck-comment--edit'),_0x129e70['if']('isSystemComment','ck-comment--info'),_0x129e70['to']('actionIndicator',_0x49a7f9=>_0x49a7f9?'ck-comment--'+_0x49a7f9:'')],'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':_0x58e19e}]}]};}['_createEditButton'](){const _0x5c41e9=new _0x2e2946(this['locale']);return _0x5c41e9['label']=N(this['locale'],'Edit'),_0x5c41e9['icon']=_0x14a16d,_0x5c41e9['withText']=!0x0,_0x5c41e9['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x5c41e9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x56b89d=>!_0x56b89d),_0x5c41e9['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x5c41e9['on']('execute',()=>this['switchToEditMode']()),_0x5c41e9;}['_createRemoveButton'](){const _0x355824=new _0x2e2946(this['locale']);return _0x355824['label']=N(this['locale'],'Remove'),_0x355824['icon']=_0x3b7aa6,_0x355824['withText']=!0x0,_0x355824['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x355824['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x27d446=>!_0x27d446),_0x355824['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x355824['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x355824;}['_createDropdown'](){const _0xd549a1=_0x35c333(this['locale'],_0x45d290),_0x6d1b80=_0xd549a1['panelView']['children'],_0x58ee06=new _0x3d0ae5(this['locale']),_0x1ead19=_0xd549a1['bindTemplate'];_0x3ec29f(_0xd549a1,()=>this['items']['find'](_0x577dc6=>_0x577dc6['isVisible'])),_0xd549a1['extendTemplate']({'attributes':{'class':[_0x1ead19['if']('isVisible','ck-hidden',_0x2e18d2=>!_0x2e18d2)]}});const _0xabe412=(_0x42bb03,_0x66b45a=-0x1)=>{const _0x48e2f0=new _0x44544a(this['locale']);_0x48e2f0['children']['add'](_0x42bb03);const _0x1b9dc0=_0x66b45a>-0x1?_0x66b45a:_0x58ee06['items']['length'];_0x58ee06['items']['add'](_0x48e2f0,_0x1b9dc0);const _0x231cfc=Array['from'](this['items']);_0xd549a1['unbind']('isEnabled','isVisible'),_0xd549a1['bind']('isEnabled')['toMany'](_0x231cfc,'isEnabled',(..._0x5207b2)=>_0x5207b2['some'](_0x52d94e=>_0x52d94e)),_0xd549a1['bind']('isVisible')['toMany'](_0x231cfc,'isVisible',(..._0x1366dc)=>_0x1366dc['some'](_0x3877f0=>_0x3877f0));};_0xd549a1['panelPosition']='sw',_0xd549a1['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x3ad126});for(const _0x48a06c of this['items'])_0xabe412(_0x48a06c);return _0x6d1b80['add'](_0x58ee06),_0xd549a1['listenTo'](this['items'],'add',(_0x2aeaf3,_0x29f3af,_0x413c33)=>{_0xabe412(_0x29f3af,_0x413c33);}),_0xd549a1['listenTo'](this['items'],'remove',(_0x49bc1f,_0x5d2db4,_0x5c799)=>{_0x58ee06['items']['remove'](_0x5c799);}),_0xd549a1;}['_attachActions'](_0x4abacd,_0x943383){const _0x494ff4=_0x4abacd&&_0x4abacd['element'];_0x494ff4&&(this['listenTo'](_0x494ff4,'mouseenter',()=>this['actionIndicator']=_0x943383),this['listenTo'](_0x494ff4,'focus',()=>this['actionIndicator']=_0x943383),this['listenTo'](_0x494ff4,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x494ff4,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x2237ae=super['_createCommentInputView']();return _0x2237ae['bind']('placeholder')['to'](this),_0x2237ae;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0xf21b7){const _0x2efed7=Dt(_0xf21b7,0x1e),_0x4aad39=new MutationObserver(_0x31d775=>{for(const _0x1f9bc4 of _0x31d775)('attributes'==_0x1f9bc4['type']&&'class'==_0x1f9bc4['attributeName']||'childList'==_0x1f9bc4['type']||'characterData'==_0x1f9bc4['type'])&&_0x2efed7();});return{'attach'(_0x29b05f){_0x4aad39['observe'](_0x29b05f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4aad39['disconnect'](),_0x2efed7['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x5e3675,_0x1d9ee4){super(_0x5e3675),this['id']=_0x288d35(),this['focusTracker']=new _0x3fbfe5(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x476363,_0xd9245a)=>this['fire']('Esc',_0xd9245a)),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'](_0x1d9ee4),this['mainView']=_0x1d9ee4;const _0x13a086=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x13a086['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 _0x4f9805=this['element']['clientHeight'];_0x4f9805&&(this['height']=_0x4f9805);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x27f26f(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x677860,target:_0x3a2a0e,type:_0xe25fe,isVisible:_0x2757c8=!0x0}){super(),this['view']=_0x677860,this['view']['element']||this['view']['render'](),this['_type']=_0xe25fe,this['_target']=_0x3a2a0e,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1ce026([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x56fb49,_0x1a4c2a)=>{this['view']['focusTracker']['add'](_0x1a4c2a);}),this['focusableElements']['on']('remove',(_0x2004cf,_0x1df1ee)=>{this['view']['focusTracker']['remove'](_0x1df1ee);}),this['set']('isVisible',_0x2757c8);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1b4666=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x1b4666),_0x1b4666;}get['targetRect'](){const _0x1b8696=this['target'];if(null===_0x1b8696)return null;if(_0x1b8696 instanceof _0x28ea8f)return _0x1b8696;const _0x204da0=_0x1b8696['filter'](_0x54085d=>function(_0x44e410){const _0x52c000=_0x44e410['offsetParent'];if(_0x52c000)return!0x0;const _0x564518=_0x44e410['getClientRects']()['item'](0x0);return!!_0x564518;}(_0x54085d));return 0x0===_0x204da0['length']?null:new _0x28ea8f(_0x204da0[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5b7e7d){this['view']['isActive']=_0x5b7e7d,this['view']['mainView']['isActive']=_0x5b7e7d;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xedb8c6){if(!(null===_0xedb8c6||_0xedb8c6 instanceof _0x28ea8f||Array['isArray'](_0xedb8c6)&&_0xedb8c6['every'](_0x3e5efa=>fi(_0x3e5efa))))throw new _0x4c975e('annotation-invalid-target',null,{'target':_0xedb8c6});}['_getNormalizedTarget'](){const _0x4b7bc3='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x4b7bc3)?[_0x4b7bc3]:_0x4b7bc3;}}function fi(_0x29dd76){return null!==_0x29dd76&&'object'==typeof _0x29dd76&&'nodeType'in _0x29dd76&&0x1===_0x29dd76['nodeType'];}class S extends _0x1ce026{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x5379b5=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x3fbfe5(),this['_focusTracker']['on']('change:isFocused',(_0x1cad7b,_0x18651e,_0x54e3e9)=>{_0x54e3e9||this['fire']('blur');});for(const _0x115b44 of _0x5379b5)this['add'](_0x115b44);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2435d5){if(this['has'](_0x2435d5))throw new _0x4c975e('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2435d5['innerView'],_0x2435d5),this['_viewToAnnotation']['set'](_0x2435d5['view'],_0x2435d5);for(const _0x60d0bb of _0x2435d5['focusableElements'])this['_focusTracker']['add'](_0x60d0bb);this['listenTo'](_0x2435d5['focusableElements'],'add',(_0x1c1748,_0x5b9f5d)=>{this['_focusTracker']['add'](_0x5b9f5d);}),this['listenTo'](_0x2435d5['focusableElements'],'remove',(_0x3069b4,_0x41f672)=>{this['_focusTracker']['remove'](_0x41f672);}),this['listenTo'](_0x2435d5['view']['focusTracker'],'change:isFocused',(_0x5acb72,_0x1a1cf9,_0x3fd8ea)=>{_0x3fd8ea&&this['fire']('focus',_0x2435d5);}),_0x2435d5['updateTargetRect']();const _0x48d6f6=this['_getOrderInContent'](_0x2435d5['view']['targetRect']);return super['add'](_0x2435d5,_0x48d6f6);}['remove'](_0x482f3d){if(!this['has'](_0x482f3d))throw new _0x4c975e('annotationcollection-not-existing-item',null);this['stopListening'](_0x482f3d['view']['focusTracker']),this['stopListening'](_0x482f3d['focusableElements']);for(const _0x546140 of _0x482f3d['focusableElements'])this['_focusTracker']['remove'](_0x546140);return this['_viewToAnnotation']['delete'](_0x482f3d['view']),this['_innerViewToAnnotation']['delete'](_0x482f3d['innerView']),super['remove'](_0x482f3d);}['getByInnerView'](_0x4edd3e){return this['_innerViewToAnnotation']['get'](_0x4edd3e);}['getByView'](_0x40b845){return this['_viewToAnnotation']['get'](_0x40b845);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0xde902c of this)_0xde902c['updateTargetRect']();this['_sort']();}['_sort'](){const _0xb24503=Array['from'](this)['sort']((_0x2562cb,_0x1097b7)=>w(_0x2562cb['view']['targetRect'],_0x1097b7['view']['targetRect']));for(let _0x1108a8=_0xb24503['length']-0x1;_0x1108a8>0x0;_0x1108a8--){const _0x59a6bd=_0xb24503[_0x1108a8];_0x1108a8!==this['getIndex'](_0x59a6bd)&&(this['remove'](_0x59a6bd),this['add'](_0x59a6bd));}}['_getOrderInContent'](_0x47de9a){let _0x53ad1d=0x0;if(!_0x47de9a)return this['length'];for(const _0x507113 of this){const _0x1fe79c=_0x507113['view']['targetRect'];if(_0x1fe79c){if(w(_0x47de9a,_0x1fe79c)<0x0)return _0x53ad1d;_0x53ad1d++;}}return _0x53ad1d;}}function v({source:_0x15e4c3,target:_0x53b682,filter:_0x22b645}){for(const _0x2e5bb0 of _0x15e4c3)_0x22b645(_0x2e5bb0)&&_0x53b682['add'](_0x2e5bb0);_0x53b682['listenTo'](_0x15e4c3,'add',(_0x393289,_0x2ad5b7)=>{_0x22b645(_0x2ad5b7)&&_0x53b682['add'](_0x2ad5b7);}),_0x53b682['listenTo'](_0x15e4c3,'remove',(_0x59c4e0,_0x431f36)=>{_0x53b682['has'](_0x431f36)&&_0x53b682['remove'](_0x431f36);});}function w(_0x533222,_0x1b062a){if(null===_0x533222&&null===_0x1b062a)return 0x0;if(null===_0x533222)return-0x1;if(null===_0x1b062a)return 0x1;const _0x116101=_0x533222['top']-_0x1b062a['top'];return 0x0==_0x116101?_0x533222['left']-_0x1b062a['left']:_0x116101;}class y extends _0x1511aa{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10d115){if(super(_0x10d115),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x10d115 instanceof _0x4547d4){const _0x625cb8=_0x10d115['locale'];_0x10d115['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x48cbfc){this['collection']['add'](_0x48cbfc);}['remove'](_0x376f44){this['collection']['remove'](_0x376f44),_0x376f44['destroy']();}['refreshVisibility'](){for(const _0x133d53 of this['collection'])_0x133d53['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x416cc8){return this['collection']['getByInnerView'](_0x416cc8);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x90db5e of this['collection'])_0x90db5e['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x5d6137){this['fire']('_activateAnnotation',_0x5d6137);}['createAnnotation'](_0x5e1529){return new T(_0x5e1529);}['createAnnotationView'](_0x25839f,_0x5c6c70){return new E(_0x25839f,_0x5c6c70);}['_addActiveAnnotation'](_0x1d82a3){const _0x102c10=new Set(this['activeAnnotations']);_0x102c10['add'](_0x1d82a3),this['activeAnnotations']=_0x102c10;}['_removeActiveAnnotation'](_0x2f5404){const _0x34bea5=new Set(this['activeAnnotations']);_0x34bea5['delete'](_0x2f5404),this['activeAnnotations']=_0x34bea5;}['_bindAnnotationsToVisibleAnnotations'](){const _0x37ddb5=this['collection'],_0x130088=this['_visibleAnnotations'];function _0x5e3d10(_0x13a9dc){const _0x446d0c=_0x13a9dc['source'];_0x446d0c['isVisible']&&!_0x130088['has'](_0x446d0c)?_0x130088['add'](_0x446d0c):!_0x446d0c['isVisible']&&_0x130088['has'](_0x446d0c)&&_0x130088['remove'](_0x446d0c),_0x446d0c['view']['focusTracker']['remove'](_0x446d0c['view']['element']),_0x446d0c['view']['focusTracker']['add'](_0x446d0c['view']['element']);}this['listenTo'](_0x37ddb5,'add',(_0x9067a1,_0x2ddfd6)=>{_0x2ddfd6['isVisible']&&_0x130088['add'](_0x2ddfd6),this['listenTo'](_0x2ddfd6,'change:isVisible',_0x5e3d10);}),this['listenTo'](_0x37ddb5,'remove',(_0x5ce5d5,_0x4a3100)=>{_0x130088['has'](_0x4a3100)&&_0x130088['remove'](_0x4a3100),this['stopListening'](_0x4a3100,'change:isVisible',_0x5e3d10);});}['_setupEnterAnnotationKeystroke'](){const _0x1e0fea=_0x55ccb2=>{_0x55ccb2['on']('ready',()=>{_0x55ccb2['keystrokes']['set'](_0x5199de,(_0x175076,_0x3c0ad6)=>{const _0x22aa14=_0x666d2d(this['activeAnnotations']['values']());_0x22aa14&&(_0x22aa14['view']['focus'](),_0x3c0ad6());});});};this['context']instanceof _0x4547d4?_0x1e0fea(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x41958b,_0x445309)=>{_0x1e0fea(_0x445309);});}['_setupEscapeAnnotationHandling'](){const _0x6657cd=_0x472529=>{const _0x35c0cb=_0x472529['source'],_0x49f403=[];let _0x26c811;if(Array['isArray'](_0x35c0cb['target'])){_0x26c811=_0x35c0cb['target'][0x0],this['context']instanceof _0x4547d4?_0x49f403['push'](this['context']):this['context']['editors']&&_0x49f403['push'](...this['context']['editors']);for(const _0x221f7e of _0x49f403)for(const _0x447fc2 of _0x221f7e['editing']['view']['domRoots']['values']())if(_0x447fc2['contains'](_0x26c811))return void _0x221f7e['editing']['view']['focus']();_0x26c811['focus']();}};this['listenTo'](this['collection'],'add',(_0x1686bc,_0x59b851)=>{this['listenTo'](_0x59b851,'escape',_0x6657cd,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0xbad892,_0x30cc0e)=>{this['stopListening'](_0x30cc0e,'escape',_0x6657cd);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x1511aa{['_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(_0x2601f7){super(_0x2601f7),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x50c20c=this['context']['config'];_0x50c20c['define']('comments.maxCommentsWhenCollapsed',0x2),_0x50c20c['define']('comments.maxThreadTotalWeight',0x1f4),_0x50c20c['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x50c20c['define']('comments.CommentThreadView',gt),_0x50c20c['define']('comments.CommentView',Tt),_0x50c20c['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x392e19=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4158ef,_0x2a20f2)=>this['_addCommentThread'](_0x2a20f2)),this['on']('submitCommentThread',(_0x48d029,_0x55f8ba)=>this['_submitCommentThread'](_0x55f8ba)),this['on']('resolveCommentThread',(_0xa29ad3,_0x4d0e4c)=>this['_resolveCommentThread'](_0x4d0e4c)),this['on']('resolveCommentThread',(_0x186c3e,_0x38c656)=>this['_updateActiveAnnotation'](_0x38c656),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x31ba82,_0x46b072)=>this['_reopenCommentThread'](_0x46b072)),this['on']('reopenCommentThread',(_0x3d7cc9,_0x58b018)=>this['_updateActiveAnnotation'](_0x58b018),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x18f141,_0x16aef2)=>this['_removeCommentThread'](_0x16aef2)),this['on']('updateCommentThread',(_0x819620,_0x227341)=>this['_updateCommentThread'](_0x227341)),this['on']('updateCommentThread',(_0x899e7e,_0x46b92e)=>this['_updateActiveAnnotation'](_0x46b92e),{'priority':'lowest'}),this['on']('addComment',(_0x1d9825,_0x378796)=>this['_addComment'](_0x378796)),this['on']('updateComment',(_0x3f932a,_0x1308f1)=>this['_updateComment'](_0x1308f1)),this['on']('removeComment',(_0x431568,_0x27b955)=>this['_removeComment'](_0x27b955)),this['on']('addComment',(_0x779d83,{threadId:_0xfb6a5c,isFromAdapter:_0x2e3ce2})=>{if(_0x2e3ce2)return;const _0x37a662=this['getCommentThread'](_0xfb6a5c),_0xb781d7=_0x37a662&&this['_threadToController']['get'](_0x37a662);_0xb781d7&&_0xb781d7['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x392e19,'change:activeAnnotations',(_0x2b837e,_0x3e8b17,_0x27e184)=>{const _0xa6515a=Array['from'](_0x27e184)['map'](_0x20fd11=>this['_viewToController']['get'](_0x20fd11['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xa6515a?_0xa6515a['model']:null;});}set['adapter'](_0x35fd8c){if(this['_adapter'])throw new _0x4c975e('commentsrepository-adapter-already-set');this['_adapter']=_0x35fd8c;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5241a8=_t,threadId:_0x186ada=_0x288d35(),comments:_0x54593f=[],unlinkedAt:_0x29445d=null,resolvedAt:_0xae983b=null,resolvedBy:_0x44751a=null,target:_0xccf447=null,context:_0x4cc6a5=null,attributes:_0x58ade1={},isResolvable:_0x14c6bd=!0x0,isSubmitted:_0x5f2fa5=!0x1,isFromAdapter:_0x3a8660=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x5241a8),{'channelId':_0x5241a8,'threadId':_0x186ada,'comments':_0x54593f,'unlinkedAt':_0x29445d,'resolvedAt':_0xae983b,'resolvedBy':_0x44751a,'target':_0xccf447,'context':_0x4cc6a5,'attributes':_0x58ade1,'isFromAdapter':_0x3a8660,'isResolvable':_0x14c6bd,'isSubmitted':_0x5f2fa5}),this['getCommentThread'](_0x186ada);}['openNewCommentThread']({channelId:_0xd6d88a=_t,threadId:_0x2f1824=_0x288d35(),target:_0x33a3bd,context:_0x29ca36=null,isResolvable:_0x22bb22=!0x0}){if(this['_readOnlyChannels']['has'](_0xd6d88a)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x33a3bd)throw new _0x4c975e('commentsrepository-missing-target');const _0x193617=this['addCommentThread']({'channelId':_0xd6d88a,'threadId':_0x2f1824,'target':_0x33a3bd,'context':_0x29ca36,'isResolvable':_0x22bb22});if(!_0x193617)return null;const _0x27f4d3=this['_threadToController']['get'](_0x193617),_0x11d37a=_0x27f4d3['view']['commentThreadInputView']['commentInputView'],_0x185ae7=this['context']['plugins']['get'](y),_0x5aba51=_0x185ae7['getByInnerView'](_0x27f4d3['view']);return _0x185ae7['activate'](_0x5aba51),_0x11d37a['once']('editorReady',()=>_0x11d37a['focus']()),_0x193617;}['hasCommentThread'](_0x58e8a1){if('string'!=typeof _0x58e8a1)throw new _0x4c975e('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x58e8a1);}['updateCommentThread']({channelId:_0x5b5e43=_t,threadId:_0x42c66c,context:_0xabc278,unlinkedAt:_0x11c407,attributes:_0x28cd55,isFromAdapter:_0x548db7=!0x1}){return this['fire'](Nt('updateCommentThread',_0x5b5e43),{'channelId':_0x5b5e43,'threadId':_0x42c66c,'context':_0xabc278,'unlinkedAt':_0x11c407,'attributes':_0x28cd55,'isFromAdapter':_0x548db7}),this['getCommentThread'](_0x42c66c);}['getCommentThread'](_0x360380){if('string'!=typeof _0x360380)throw new _0x4c975e('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x360380);}['fetchCommentThread']({channelId:_0x19ccb6,threadId:_0x3dc7e1}={}){const _0x479cc4=this['getCommentThread'](_0x3dc7e1);if(_0x479cc4)return Promise['resolve'](_0x479cc4);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4c975e('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x19ccb6,'threadId':_0x3dc7e1})['then'](_0x3d6a91=>this['hasCommentThread'](_0x3dc7e1)?this['getCommentThread'](_0x3dc7e1):_0x3d6a91?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x19ccb6},_0x3d6a91)):void 0x0)['catch'](_0x25bbb7=>{throw console['error'](_0x25bbb7),new _0x4c975e('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5835c5,skipNotAttached:_0x7701f4=!0x1,skipEmpty:_0x16aaa6=!0x1,toJSON:_0x9af8d8=!0x1}={}){const _0xb8745a=[];for(const _0x2bb96e of this['_threads']['values']())_0x5835c5&&_0x2bb96e['channelId']!==_0x5835c5||_0x7701f4&&!_0x2bb96e['isAttached']||_0x16aaa6&&0x0===_0x2bb96e['length']||_0xb8745a['push'](_0x2bb96e);return _0x9af8d8?_0xb8745a['map'](_0x3389ea=>_0x3389ea['toJSON']()):_0xb8745a;}['getAnnotationForCommentThread'](_0x5f1e85){const _0x4fc921=this['_threadToController']['get'](_0x5f1e85);if(!_0x4fc921)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x4fc921['view'])||null;}['getCommentThreadForAnnotation'](_0x49b88a){const _0x3f47db=this['_viewToController']['get'](_0x49b88a['innerView']);return _0x3f47db?_0x3f47db['model']:null;}['setActiveCommentThread'](_0x29dd2b){const _0x210e0b=this['context']['plugins']['get'](y);if(!_0x29dd2b)return void(this['activeCommentThread']&&_0x210e0b['deactivateAll']());const _0x442ac9=this['getCommentThread'](_0x29dd2b);if(!_0x442ac9)throw new _0x4c975e('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x29dd2b});if(!this['_threadToController']['has'](_0x442ac9))throw new _0x4c975e('commentsrepository-active-not-attached',null,{'threadId':_0x29dd2b});const _0x3564e2=_0x210e0b['getByInnerView'](this['_threadToController']['get'](_0x442ac9)['view']);_0x210e0b['activate'](_0x3564e2);}['switchReadOnly'](_0x54c057,_0x36b23b){_0x54c057?this['_readOnlyChannels']['add'](_0x36b23b):this['_readOnlyChannels']['delete'](_0x36b23b),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1059ed){return this['_readOnlyChannels']['has'](_0x1059ed)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0xa20998,_0x4272c8){return new vt(_0xa20998,_0x4272c8);}['setPermissions'](_0x2690e5,_0x25b46d=_t){this['_permissions']['set'](_0x25b46d,_0x2690e5),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3f9709=_t){return this['_permissions']['has'](_0x3f9709)?this['_permissions']['get'](_0x3f9709):bt;}['_addCommentThread']({channelId:_0x204d74,threadId:_0x46f640,comments:_0x413243,unlinkedAt:_0x281633,resolvedAt:_0x51632a,resolvedBy:_0x2ae319,target:_0x2b9e07,context:_0x126498,attributes:_0x1e05f1,isFromAdapter:_0x429cd3,isResolvable:_0x51a096,isSubmitted:_0x49fc61}){if('string'!=typeof _0x46f640)throw new _0x4c975e('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x46f640});if(this['hasCommentThread'](_0x46f640))throw new _0x4c975e('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x46f640});const _0x1b5c0a=new pi(this,{'channelId':_0x204d74,'id':_0x46f640,'context':_0x126498,'attributes':_0x1e05f1,'unlinkedAt':_0x281633,'resolvedAt':_0x51632a,'resolvedBy':_0x2ae319?this['context']['plugins']['get'](it)['getUser'](_0x2ae319):null,'isResolvable':_0x51a096,'isSubmitted':_0x49fc61||_0x429cd3});this['_threads']['set'](_0x46f640,_0x1b5c0a);for(const _0x121e8c of _0x413243)_0x1b5c0a['_add'](this['_createNewComment']({'threadId':_0x46f640,..._0x121e8c}));return _0x2b9e07&&_0x1b5c0a['attachTo'](_0x2b9e07),_0x429cd3||!_0x1b5c0a['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x204d74,'threadId':_0x46f640});}['_submitCommentThread']({channelId:_0x4ca0c4,threadId:_0x2424b7}){if(!this['hasCommentThread'](_0x2424b7))throw new _0x4c975e('commentsrepository-missing-comment-thread',this);const _0x20987c=this['getCommentThread'](_0x2424b7);if(_0x20987c['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x44a933,comments:_0x469bcf,resolvedAt:_0x2c260e,resolvedBy:_0x1f58c6,context:_0xb2c190,attributes:_0x1ec217}=_0x20987c,_0x503753=this['context']['plugins']['get']('PendingActions'),_0x30fb6e=_0x503753['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4ca0c4,'threadId':_0x44a933,'comments':_0x469bcf['map'](_0x27406b=>_0x27406b['toJSON']()),'resolvedAt':_0x2c260e,'resolvedBy':_0x1f58c6?_0x1f58c6['id']:_0x1f58c6,'context':_0xb2c190,'attributes':_0x1ec217})['then'](({comments:_0x18b8aa})=>{_0x503753['remove'](_0x30fb6e);for(const _0x4f1da8 of _0x18b8aa)this['_updateComment']({'channelId':_0x4ca0c4,'threadId':_0x2424b7,'commentId':_0x4f1da8['commentId'],'createdAt':_0x4f1da8['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5c99a8=>{throw console['error'](_0x5c99a8),new _0x4c975e('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x2535d8,target:_0x19ce68}){const _0x154a8e=this['getCommentThread'](_0x2535d8);if(!_0x154a8e)throw new _0x4c975e('commentsrepository-attach-missing-comment-thread',this);const _0x2bb86a=this['context']['plugins']['get']('PendingActions'),_0x395989=this['context']['plugins']['get'](y),_0x13e612=this['_createCommentThreadView'](_0x154a8e),_0x349f11=new vt(_0x154a8e,_0x13e612);let _0x55d412=null;_0x13e612['on']('change:isDirty',(_0x5c2e91,_0x1d00ff,_0x1df26c)=>{_0x1df26c?_0x55d412=_0x2bb86a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x55d412&&(_0x2bb86a['remove'](_0x55d412),_0x55d412=null);}),this['_threadToController']['set'](_0x154a8e,_0x349f11),this['_viewToController']['set'](_0x13e612,_0x349f11);const _0x3e0610=new E(this['context']['locale'],_0x13e612);_0x3e0610['bind']('length')['to'](_0x13e612),_0x3e0610['bind']('isDirty')['to'](_0x13e612,'isDirty',_0x13e612,'length',(_0x2d78ac,_0x29352e)=>_0x2d78ac||!_0x29352e),_0x3e0610['bind']('isActive')['to'](_0x13e612),_0x3e0610['type']='comment';const _0x54cee1=new T({'view':_0x3e0610,'target':_0x19ce68,'type':'comment','isVisible':!_0x154a8e['archivedAt']&&!!('function'==typeof _0x19ce68?_0x19ce68():_0x19ce68)});return _0x13e612['on']('escape',()=>{_0x54cee1['fire']('escape');}),this['_bindAnnotationToEditors'](_0x13e612,_0x54cee1),_0x395989['add'](_0x54cee1),_0x54cee1;}['_bindAnnotationToEditors'](_0x16a97b,_0x2c546a){this['listenTo'](_0x16a97b,'editorReady',(_0x138f86,_0x26b3fe)=>{const _0x18cf6b=_0x26b3fe['ui']['view']['body']['bodyCollectionContainer'];_0x2c546a['focusableElements']['add'](_0x18cf6b),this['context']instanceof _0x4547d4&&this['context']['ui']['focusTracker']['add'](_0x18cf6b);},{'priority':'highest'}),this['listenTo'](_0x16a97b,'editorDestroyed',(_0x14bc2d,_0x3f82c6)=>{const _0x3d1026=_0x3f82c6['ui']['view']['body']['bodyCollectionContainer'];_0x2c546a['focusableElements']['has'](_0x3d1026)&&_0x2c546a['focusableElements']['remove'](_0x3d1026),this['context']instanceof _0x4547d4&&this['context']['ui']['focusTracker']['remove'](_0x3d1026);});}['_unbindEditors'](_0x3a9fed){this['stopListening'](_0x3a9fed,'editorReady'),this['stopListening'](_0x3a9fed,'editorDestroyed');}['_createCommentThreadView'](_0x52c5a2){const _0x34ea0d=this['context']['plugins']['get'](it),{config:_0x267965,locale:_0x251ad2}=this['context'],_0x11f5fd=pt(_0x267965['get']('locale'),_0x251ad2);return new(0x0,(_0x267965['get']('comments'))['CommentThreadView'])(_0x251ad2,_0x52c5a2,_0x34ea0d['me'],{'editorConfig':{..._0x267965['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x267965['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x267965['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x267965['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x267965['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x11f5fd,'CommentView':_0x267965['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x12e604,channelId:_0x321e60,resolvedAt:_0x470bb4,resolvedBy:_0x214f54,isFromAdapter:_0x52bbe5}){if(!this['hasCommentThread'](_0x12e604))throw new _0x4c975e('commentsrepository-missing-comment-thread',null,{'threadId':_0x12e604});const _0x354d13=this['getCommentThread'](_0x12e604);if(_0x354d13['isResolved'])throw new _0x4c975e('commentsrepository-resolved-comment-thread',null,{'threadId':_0x12e604});const _0xd8006e=this['context']['plugins']['get'](it);if(_0x354d13['resolvedBy']=_0xd8006e['getUser'](_0x214f54),_0x354d13['resolvedAt']=_0x470bb4,_0x52bbe5||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x492334=this['context']['plugins']['get']('PendingActions'),_0x25da61=_0x492334['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x321e60,'threadId':_0x12e604})['then'](({resolvedAt:_0x3b697e,resolvedBy:_0x5bdeb8})=>{_0x492334['remove'](_0x25da61),_0x354d13['resolvedBy']['id']!==_0x5bdeb8&&(_0x354d13['resolvedBy']=_0xd8006e['getUser'](_0x5bdeb8)),_0x354d13['resolvedAt']=_0x3b697e;})['catch'](_0x3f2d4d=>{throw console['error'](_0x3f2d4d),new _0x4c975e('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3b2965,channelId:_0x135277,isFromAdapter:_0x105a3c}){if(!this['hasCommentThread'](_0x3b2965))throw new _0x4c975e('commentsrepository-missing-comment-thread',null,{'threadId':_0x3b2965});const _0x78d428=this['getCommentThread'](_0x3b2965);if(!_0x78d428['isResolved'])throw new _0x4c975e('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3b2965});if(_0x78d428['resolvedBy']=null,_0x78d428['resolvedAt']=null,_0x105a3c||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x44044a=this['context']['plugins']['get']('PendingActions'),_0x10baf2=_0x44044a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x135277,'threadId':_0x3b2965})['then'](()=>_0x44044a['remove'](_0x10baf2))['catch'](_0x10f054=>{throw console['error'](_0x10f054),new _0x4c975e('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xc08055,isFromAdapter:_0x1b7758}){const _0x434e8d=this['getCommentThread'](_0xc08055);if(!_0x434e8d)throw new _0x4c975e('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xc08055),this['_threads']['delete'](_0xc08055),!_0x434e8d['isSubmitted']||_0x1b7758||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x161100=this['context']['plugins']['get']('PendingActions'),{channelId:_0x59e5a2}=_0x434e8d,_0x3281c7=_0x161100['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x59e5a2,'threadId':_0xc08055})['then'](()=>_0x161100['remove'](_0x3281c7))['catch'](_0x469c79=>{throw console['error'](_0x469c79),new _0x4c975e('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4003b1,unlinkedAt:_0x27c880,context:_0xef979d,attributes:_0xad8923,isFromAdapter:_0x2f033c}){if('string'!=typeof _0x4003b1)throw new _0x4c975e('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4003b1});if(!this['hasCommentThread'](_0x4003b1))throw new _0x4c975e('commentsrepository-missing-comment-thread',null,{'threadId':_0x4003b1});const _0x3ea8c3=this['getCommentThread'](_0x4003b1);let _0x56cea9=!0x1;if(void 0x0!==_0xef979d&&_0x3ea8c3['context']!==_0xef979d&&(_0x3ea8c3['context']=_0xef979d,_0x56cea9=!0x0),void 0x0!==_0x27c880&&_0x3ea8c3['unlinkedAt']!==_0x27c880&&(_0x3ea8c3['unlinkedAt']=_0x27c880,_0x56cea9=!0x0),_0xad8923&&!At(_0xad8923,_0x3ea8c3['attributes'])&&(_0x3ea8c3['attributes']=_0xad8923,_0x56cea9=!0x0),!_0x56cea9)return Promise['resolve']();if(!_0x3ea8c3['isSubmitted']||_0x2f033c||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x45e778=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1ae8e2}=_0x3ea8c3,_0x13e7de=_0x45e778['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1ae8e2,'threadId':_0x4003b1,'context':_0xef979d,'unlinkedAt':_0x27c880,'attributes':_0xad8923})['then'](()=>_0x45e778['remove'](_0x13e7de))['catch'](_0x47d600=>{throw console['error'](_0x47d600),new _0x4c975e('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x43af8c){const _0x3c1a36=this['context']['plugins']['get'](y),_0x34a8a8=this['getCommentThread'](_0x43af8c);if(_0x34a8a8['_isAttached']=!0x1,this['_threadToController']['has'](_0x34a8a8)){const _0x8b3f71=this['_threadToController']['get'](_0x34a8a8),_0x3fd0e6=_0x8b3f71['view'],_0x5c30bd=_0x3c1a36['getByInnerView'](_0x3fd0e6);this['_threadToController']['delete'](_0x34a8a8),this['_viewToController']['delete'](_0x3fd0e6),_0x5c30bd&&_0x3c1a36['remove'](_0x5c30bd),_0x8b3f71['destroy'](),_0x3fd0e6['destroy']()['then'](()=>{this['_unbindEditors'](_0x3fd0e6);});}}['_updateActiveAnnotation']({threadId:_0x4eb9e8,resolvedAt:_0x24b309,unlinkedAt:_0x3f01e9}){const _0x2b5524=!!_0x24b309,_0x2455af=this['context']['plugins']['get'](y),_0x1b45e4=this['getCommentThread'](_0x4eb9e8);if(this['_threadToController']['has'](_0x1b45e4)){const _0x530d36=this['_threadToController']['get'](_0x1b45e4)['view'],_0x4ec6ca=_0x2455af['getByInnerView'](_0x530d36);_0x4ec6ca&&(_0x2b5524&&_0x2455af['_removeActiveAnnotation'](_0x4ec6ca),_0x3f01e9?_0x4ec6ca['isVisible']=!0x1:_0x4ec6ca['refreshVisibility']());}}['_getExternalAuthor'](_0x38a7b8){const _0x2cafef=this['context']['plugins']['get'](it),_0x1eacbe=It('external:'+_0x38a7b8),_0x45c78e=_0x2cafef['getUser'](_0x1eacbe);return _0x45c78e||_0x2cafef['addUser']({'id':_0x1eacbe,'name':_0x38a7b8});}['_createNewComment']({threadId:_0x5790f6,commentId:_0x47274b=_0x288d35(),content:_0x2ad3ff,authorId:_0x493e49,createdAt:_0x68f8e0,attributes:_0x43473f}){if('string'!=typeof _0x47274b)throw new _0x4c975e('commentsrepository-invalid-commentid');if('string'!=typeof _0x493e49)throw new _0x4c975e('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2ad3ff||!_0x2ad3ff['trim']())throw new _0x4c975e('commentsrepository-invalid-comment-content');const _0x41124a=this['context']['plugins']['get'](it)['getUser'](_0x493e49);if(!_0x41124a)throw new _0x4c975e('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x493e49});let _0x22fb0c=null,_0x20b1e4=_0x68f8e0;return _0x43473f?.['@external']&&(_0x22fb0c=this['_getExternalAuthor'](_0x43473f['@external']['authorName']),_0x20b1e4=new Date(_0x43473f['@external']['createdAt'])),new wi(this,{'threadId':_0x5790f6,'id':_0x47274b,'author':_0x22fb0c||_0x41124a,'creator':_0x41124a,'content':_0x2ad3ff,'createdAt':_0x68f8e0,'authoredAt':_0x20b1e4,'attributes':_0x43473f});}['_addComment'](_0x2b925e){let {threadId:_0x3e6109,content:_0x3ab6df,attributes:_0x3c6119,isFromAdapter:_0x17daec}=_0x2b925e;const _0x12632d=this['getCommentThread'](_0x2b925e['threadId']);if(!_0x12632d)throw new _0x4c975e('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x16fc1e=this['_createNewComment'](_0x2b925e),{id:_0x44f0b2}=_0x16fc1e;if(_0x12632d['_add'](_0x16fc1e),_0x17daec||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x12632d['isSubmitted'])return Promise['resolve']();const _0x5c778f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x78395f}=_0x12632d,_0x3f1c1b=_0x5c778f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3c6119||(_0x3c6119={}),this['adapter']['addComment']({'channelId':_0x78395f,'threadId':_0x3e6109,'commentId':_0x44f0b2,'content':_0x3ab6df,'attributes':_0x3c6119})['then'](_0x3da3a7=>{_0x5c778f['remove'](_0x3f1c1b),_0x3da3a7&&this['_updateComment']({'channelId':_0x78395f,'threadId':_0x3e6109,'commentId':_0x44f0b2,'createdAt':_0x3da3a7['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x178acf=>{throw console['error'](_0x178acf),new _0x4c975e('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x435e4e,commentId:_0x3d3d2b,content:_0x27c49d,createdAt:_0x25d19f,attributes:_0x2559bf,isFromAdapter:_0x50afc9}){if(void 0x0!==_0x27c49d&&('string'!=typeof _0x27c49d||!_0x27c49d['trim']()['length']))throw new _0x4c975e('commentsrepository-update-comment-invalid-content');const _0x4cfb5f=this['getCommentThread'](_0x435e4e),_0x384fed=_0x4cfb5f['getComment'](_0x3d3d2b);if(!_0x384fed)throw new _0x4c975e('commentsrepository-update-missing-comment',this);let _0x1c809e=!0x1;if(_0x27c49d&&_0x27c49d!==_0x384fed['content']&&(_0x384fed['isEditable']||_0x50afc9)&&(_0x384fed['content']=_0x27c49d,_0x1c809e=!0x0),_0x25d19f&&_0x25d19f!==_0x384fed['createdAt']&&(_0x384fed['createdAt']=_0x25d19f,_0x384fed['attributes']&&_0x384fed['attributes']['@external']||(_0x384fed['authoredAt']=_0x25d19f),_0x1c809e=!0x0),_0x2559bf&&!At(_0x2559bf,_0x384fed['attributes'])&&(_0x384fed['attributes']=_0x2559bf,_0x1c809e=!0x0),!_0x1c809e)return Promise['resolve']();if(_0x4cfb5f['fire']('commentUpdated'),_0x50afc9||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x28dce9=this['context']['plugins']['get']('PendingActions'),{channelId:_0x54d4af}=this['getCommentThread'](_0x384fed['threadId']),_0x133851=_0x28dce9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x54d4af,'threadId':_0x435e4e,'commentId':_0x3d3d2b,'content':_0x27c49d,'attributes':_0x2559bf})['then'](()=>_0x28dce9['remove'](_0x133851))['catch'](_0x265c58=>{throw console['error'](_0x265c58),new _0x4c975e('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3a91f8,commentId:_0x4af8a2,isFromAdapter:_0x1dc945}){const _0x1187ad=this['getCommentThread'](_0x3a91f8),_0x414152=_0x1187ad['getComment'](_0x4af8a2);if(!_0x414152)throw new _0x4c975e('commentsrepository-remove-missing-comment',this);if(_0x1187ad['_remove'](_0x414152),_0x1dc945||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x101678=this['context']['plugins']['get']('PendingActions'),{channelId:_0x228a95}=_0x1187ad,_0x4f05c4=_0x101678['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x228a95,'threadId':_0x3a91f8,'commentId':_0x4af8a2})['then'](()=>_0x101678['remove'](_0x4f05c4))['catch'](_0x879b87=>{throw console['error'](_0x879b87),new _0x4c975e('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x27f26f(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x231920,_0x92a65d){super();const _0x3307b9=_0x92a65d['isResolvable'];this['channelId']=_0x92a65d['channelId'],this['id']=_0x92a65d['id'],this['comments']=new _0x1ce026(),this['_repository']=_0x231920,this['_isAttached']=!0x1,this['_isSubmitted']=_0x92a65d['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x231920,'_permissions',_0x231920,'_readOnlyChannels',()=>_0x231920['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x231920,'_permissions',()=>_0x231920['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x231920,'_permissions',()=>{const _0x313996=_0x231920['getPermissions'](this['channelId']);return _0x313996['write']||_0x313996['admin'];}),this['bind']('isResolvable')['to'](_0x231920,'_permissions',()=>_0x3307b9&&_0x231920['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x92a65d['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0xa7ae71,_0x3e9b85)=>_0xa7ae71?_0x3e9b85?_0xa7ae71<_0x3e9b85?_0xa7ae71:_0x3e9b85:_0xa7ae71:_0x3e9b85),this['set']('unlinkedAt',_0x92a65d['unlinkedAt']||null),this['set']('resolvedAt',_0x92a65d['resolvedAt']||null),this['set']('resolvedBy',_0x92a65d['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x3c9cbd=>!!_0x3c9cbd),this['set']('attributes',_0x92a65d['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x19fb3a,_0x1fac83)=>_0x19fb3a+_0x1fac83['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2bb0d8,id:_0x3c7740}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x2bb0d8),{'channelId':_0x2bb0d8,'threadId':_0x3c7740});}['setUnlinkedAt'](_0x32836d){this['_update']({'unlinkedAt':_0x32836d});}['resolve']({resolvedAt:_0x4b2808=new Date(),resolvedBy:_0x1d6898='',isFromAdapter:_0x1397a1=!0x1}={}){const _0x5700dc=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x270c11,id:_0x1889ec}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x270c11),{'channelId':_0x270c11,'threadId':_0x1889ec,'resolvedAt':_0x4b2808,'resolvedBy':_0x1d6898||_0x5700dc['id'],'isFromAdapter':_0x1397a1});}['reopen']({isFromAdapter:_0x30ba67=!0x1}={}){const {channelId:_0x51eb19,id:_0xf6e122}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x51eb19),{'channelId':_0x51eb19,'threadId':_0xf6e122,'isFromAdapter':_0x30ba67});}['setContext'](_0x30679f){this['context']||this['_update']({'context':_0x30679f});}['setAttribute'](_0x284ee2,_0x2772c8){const _0x589a66=wt(this['attributes']);yt(_0x589a66,_0x284ee2,_0x2772c8),this['_update']({'attributes':_0x589a66});}['removeAttribute'](_0x4a1340){const _0x1186c3=wt(this['attributes']);Ct(_0x1186c3,_0x4a1340),this['_update']({'attributes':_0x1186c3});}['remove']({isFromAdapter:_0x4f265b=!0x1}={}){const {channelId:_0x5645bc,id:_0x599db}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x5645bc),{'channelId':_0x5645bc,'threadId':_0x599db,'isFromAdapter':_0x4f265b});}['attachTo'](_0x201534){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x201534});}['addComment'](_0x39023){const {channelId:_0x9d0aca,id:_0x4f16d1}=this;this['_repository']['fire'](Nt('addComment',_0x9d0aca,_0x4f16d1),Object['assign']({'channelId':_0x9d0aca,'threadId':_0x4f16d1},_0x39023));}['getComment'](_0x1d748b){if('string'!=typeof _0x1d748b)throw new _0x4c975e('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x1d748b});return this['comments']['get'](_0x1d748b);}['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'](_0x1ec5de=>_0x1ec5de['toJSON']()),'attributes':this['attributes']};}['_add'](_0x17221e){return this['listenTo'](_0x17221e,'change:authoredAt',()=>{const _0x5a95b1=this['_findOptimalIndex'](_0x17221e),_0xf88d97=this['comments'];_0x5a95b1-0x1!=_0xf88d97['getIndex'](_0x17221e)&&_0x5a95b1+0x1!=_0xf88d97['getIndex'](_0x17221e)&&(this['_remove'](_0x17221e),this['_add'](_0x17221e));}),this['comments']['add'](_0x17221e,this['_findOptimalIndex'](_0x17221e));}['_update'](_0x358728){const {channelId:_0x3bd664,id:_0x2e22ef}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x3bd664),{..._0x358728,'channelId':_0x3bd664,'threadId':_0x2e22ef});}['_remove'](_0x490932){return this['stopListening'](_0x490932),_0x490932['destroy'](),this['comments']['remove'](_0x490932);}['_findOptimalIndex'](_0x5954ab){const _0x34d4bc=this['comments']['find'](_0x4aa585=>new Date(_0x4aa585['authoredAt'])['getTime']()>new Date(_0x5954ab['authoredAt'])['getTime']());return _0x34d4bc?this['comments']['getIndex'](_0x34d4bc):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x27f26f(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x56a486,_0x1e78f3){super();const _0x233df2=_0x56a486['context']['plugins']['get'](it)['me'],_0xb374e9=_0x56a486['getCommentThread'](_0x1e78f3['threadId']),_0x15380f=0x0===_0xb374e9['comments']['length'],_0x123dff=_0x233df2===_0x1e78f3['author'];this['id']=_0x1e78f3['id'],this['threadId']=_0x1e78f3['threadId'],this['author']=_0x1e78f3['author'],this['creator']=_0x1e78f3['creator'],this['isExternal']=Boolean(_0x1e78f3['attributes']&&_0x1e78f3['attributes']['@external']),this['set']('content',_0x1e78f3['content']),this['createdAt']=_0x1e78f3['createdAt']||new Date(),this['set']('authoredAt',_0x1e78f3['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0xb374e9,'resolvedAt'),this['set']('attributes',_0x1e78f3['attributes']||{}),this['bind']('isEditable')['to'](_0x56a486,'_permissions',()=>{const _0x4d09c1=_0x56a486['getPermissions'](_0xb374e9['channelId'])['write'],_0x198cfb=_0x56a486['getPermissions'](_0xb374e9['channelId'])['modifyAll'];return _0x123dff&&_0x4d09c1||!_0x123dff&&_0x198cfb;}),this['bind']('isRemovable')['to'](_0xb374e9,'isRemovable',_0x56a486,'_permissions',_0x30a1d1=>{const _0x5a2428=_0x56a486['getPermissions'](_0xb374e9['channelId'])['write'],_0x37cdb1=_0x56a486['getPermissions'](_0xb374e9['channelId'])['modifyAll'];return _0x123dff&&_0x5a2428||_0x30a1d1&&_0x15380f||!_0x123dff&&_0x37cdb1&&!_0x15380f;}),this['bind']('isReadOnly')['to'](_0xb374e9,'isReadOnly'),this['_repository']=_0x56a486;}get['weight'](){return Math['max'](function(_0x3c4ee6){const _0x59162c=document['createElement']('div');return _0x59162c['innerHTML']=_0x3c4ee6,_0x59162c['textContent']['length'];}(this['content']),0xc8);}['update'](_0xf1c86d){const {threadId:_0x498326,id:_0x36b36d}=this;if(!this['_repository']['hasCommentThread'](_0x498326))throw new _0x4c975e('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x263699}=this['_repository']['getCommentThread'](_0x498326);this['_repository']['fire'](Nt('updateComment',_0x263699,_0x498326),{'channelId':_0x263699,'threadId':_0x498326,'commentId':_0x36b36d,..._0xf1c86d});}['setAttribute'](_0xa31c58,_0x633cff){const _0x1b35f2=wt(this['attributes']);yt(_0x1b35f2,_0xa31c58,_0x633cff),this['update']({'attributes':_0x1b35f2});}['removeAttribute'](_0x4ba8d5){const _0x1f8d0a=wt(this['attributes']);Ct(_0x1f8d0a,_0x4ba8d5),this['update']({'attributes':_0x1f8d0a});}['remove'](_0x5aa9ed={}){if(!_0x5aa9ed['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x31c519,id:_0x5a6fd8}=this;if(!this['_repository']['hasCommentThread'](_0x31c519))throw new _0x4c975e('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x215c06}=this['_repository']['getCommentThread'](_0x31c519);this['_repository']['fire'](Nt('removeComment',_0x215c06,_0x31c519),{'channelId':_0x215c06,'threadId':_0x31c519,'commentId':_0x5a6fd8,..._0x5aa9ed});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x47a702,..._0x332716){for(const _0x119197 of _0x332716)void 0x0!==_0x119197&&(_0x47a702+=':'+String(_0x119197));return _0x47a702;}class ot extends _0x4344f0{constructor(_0x465c94){super(_0x465c94),this['set']('hasContent',!0x1);}['refresh'](){const _0x37dbfe=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x432bbb of _0x37dbfe['getRanges']())if(this['_hasContent'](_0x432bbb))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x162e43=_0x288d35(),ranges:_0x25dfcd,comment:_0x356334}={}){const _0x343df1=this['editor']['model'],_0x369231=_0x25dfcd??Array['from'](_0x343df1['document']['selection']['getRanges']()),_0x5f2024=[];for(const _0x2fb58b of _0x369231)this['_hasContent'](_0x2fb58b)&&_0x5f2024['push'](this['_trimToContent'](_0x2fb58b));if(!_0x5f2024['length'])throw new _0x4c975e('addcommentthreadcommand-incorrect-ranges',null);_0x356334&&this['_createCommentThread'](_0x162e43,_0x356334),this['_createMarkersFromRanges'](_0x162e43,_0x5f2024,!!_0x356334);}['_createMarkersFromRanges'](_0x52c0b9,_0xfd7543,_0x3a1bea){this['editor']['model']['change'](_0x45b75c=>{for(const _0x5dbe67 of _0xfd7543){const _0x5ae4d5=_0x288d35()['substr'](0x1,0x5),_0x399e6='comment:'+_0x52c0b9+':'+_0x5ae4d5;_0x45b75c['addMarker'](_0x399e6,{'range':_0x5dbe67,'usingOperation':_0x3a1bea,'affectsData':_0x3a1bea});}});}['_createCommentThread'](_0x435ee6,_0x122fea){const _0x30c53d=this['editor']['plugins']['get']('CommentsRepository'),_0x20a260=this['editor']['config']['get']('collaboration.channelId'),_0x23ce18=this['editor']['plugins']['get']('Users')['me'];if(!_0x23ce18)throw new _0x4c975e('addcommentthreadcommand-user-not-found',null);_0x30c53d['addCommentThread']({'threadId':_0x435ee6,'channelId':_0x20a260,'comments':[{'authorId':_0x23ce18['id'],'content':_0x122fea,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x30a110){for(const _0x3bc443 of _0x30a110['getItems']())if(this['_itemIsContent'](_0x3bc443))return!0x0;return!0x1;}['_itemIsContent'](_0x175c0c){return _0x175c0c['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x175c0c)&&!_0x175c0c['is']('element','tableCell');}['_trimToContent'](_0x5c5803){const _0x147b1a=_0x4b08e6=>!this['_itemIsContent'](_0x4b08e6['item']),_0x234572=_0x5c5803['start']['getLastMatchingPosition'](_0x147b1a),_0x2cf156=_0x5c5803['end']['getLastMatchingPosition'](_0x147b1a,{'direction':'backward'});return this['editor']['model']['createRange'](_0x234572,_0x2cf156);}}class b extends _0x562ab1{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2085e9){super(_0x2085e9),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5ab26f=this['editor'],_0x12661a=_0x5ab26f['model']['document']['selection'],_0xe995ac=_0x192048(()=>this['refreshSelectedViews'](),0xa);_0x12661a['on']('change:range',(_0x34657e,_0x1eaccd)=>{_0x1eaccd['directChange']&&(_0xe995ac['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5ab26f['editing']['view']['document'],'change:isFocused',(_0x7d15f7,_0x19da1e,_0x2b2e97)=>{_0x2b2e97&&_0xe995ac();}),this['listenTo'](_0x5ab26f['ui']['focusTracker'],'change:isFocused',(_0x124d95,_0x2fbf3c,_0x50ae48)=>{_0x50ae48||this['fire']('blur',{'isAnnotationTracked':_0x4a5e05=>this['_editorAnnotationsData']['has'](_0x4a5e05['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4fcad2){if(this['_editorAnnotations']['has'](_0x4fcad2['view']))return;this['_editorAnnotations']['add'](_0x4fcad2['view']),this['editor']['ui']['focusTracker']['add'](_0x4fcad2['view']['element']);const _0x228e9f=this['editor']['plugins']['get'](y);this['listenTo'](_0x228e9f['collection'],'remove',(_0x1035fa,_0x414a44)=>{this['editor']['ui']['focusTracker']['remove'](_0x414a44['view']['element']),this['_editorAnnotations']['delete'](_0x414a44['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x463fae){if('function'!=typeof _0x463fae)throw new _0x4c975e('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x463fae);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x327627,annotations:_0x276ad3}){const _0x45ca74=[],_0x5292f8=this['editor']['model']['document']['selection'],_0x4d22b1=Array['from'](_0x5292f8['getRanges']());for(const [_0x46996a,_0x5cf46f]of this['_editorAnnotationsData']){const _0xff098f=_0x61c6ea(_0x5cf46f),_0x18507f=_0x276ad3['getByInnerView'](_0x46996a);_0xff098f&&_0x18507f&&_0x45ca74['push']({'annotation':_0x18507f,'range':_0xff098f});}function _0x61c6ea(_0x2a814e){for(const _0x395aad of _0x2a814e)for(const _0x159234 of _0x4d22b1)if(_0x395aad['containsRange'](_0x159234,!_0x5292f8['isCollapsed']))return _0x395aad;return null;}return _0x45ca74['sort']((_0xc150a5,_0x367093)=>{const _0x282258=_0xc150a5['range'],_0x121694=_0x367093['range'];if(!_0x282258['isEqual'](_0x121694)){if(_0x282258['containsRange'](_0x121694,!0x0))return 0x1;if(_0x121694['containsRange'](_0x282258,!0x0))return-0x1;}return _0xc150a5['annotation']==_0x327627?-0x1:_0x367093['annotation']==_0x327627?0x1:0x0;})['map'](_0x5272b3=>_0x5272b3['annotation']);}get['_editorAnnotationsData'](){const _0x539867=new Map();for(const _0x3e3e10 of Array['from'](this['_dataCollectors']))for(const [_0x3e1768,_0x4794bd]of _0x3e3e10())_0x539867['set'](_0x3e1768,_0x4794bd);return _0x539867;}}class st extends _0x562ab1{['afterInit'](){const _0x2d371e=this['editor'];if(!_0x2d371e['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2d371e['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x562ab1{constructor(_0x4272ad){super(_0x4272ad),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x56bee8=this['editor'],_0x12d24a=_0x56bee8['commands']['get']('importWord'),_0x39f52a=_0x56bee8['plugins']['get'](it);_0x12d24a&&(_0x12d24a['on']('execute',(_0x182832,[,_0x8ca383])=>{_0x8ca383['collaboration_features']={'comments':!0x0,'user_id':_0x39f52a['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x12d24a,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4186cf,_0x3de3a6){const {comment_threads:_0x47eef9}=_0x3de3a6;_0x47eef9&&_0x47eef9['forEach'](({thread_id:_0x2c7e3e,comments:_0x58d185,is_resolved:_0x35b263})=>{const _0x5713eb=new Date(),_0x43618=_0x58d185['map'](({author:_0x103d9e,content:_0x446da7,created_at:_0x1a023c})=>({'content':_0x446da7,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x5713eb,'attributes':{'@external':{'authorName':_0x103d9e,'createdAt':_0x1a023c?new Date(_0x1a023c):new Date(),'source':'importWord'}}})),_0xd7a479=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xd7a479,'threadId':_0x2c7e3e,'comments':_0x43618,'resolvedAt':_0x35b263?_0x5713eb:null});});}}class at extends _0x562ab1{constructor(_0x5e24c0){super(_0x5e24c0),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x381e3f=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x381e3f,'contentInsertion',(_0x352ebd,_0x50aaeb)=>this['_removeMarkersWithoutThreads'](_0x50aaeb['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x2965dc){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x2965dc;const _0x37f36b=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5a2fbf of _0x2965dc['keys']()){const [_0x22a4fd,_0x2a167f]=_0x5a2fbf['split'](':');'comment'!=_0x22a4fd||_0x37f36b['hasCommentThread'](_0x2a167f)||_0x2965dc['delete'](_0x5a2fbf);}return _0x2965dc;}['_registerMarkerInClipboardPipeline'](){const _0x390a50=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xc1cedf=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xc1cedf&&_0x390a50['_registerMarkerToCopy']('comment',_0xc1cedf);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x55e461){switch(_0x55e461){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x162195){const _0x5a0f7e=_0x162195['split'](':');return{'group':_0x5a0f7e[0x0],'id':_0x5a0f7e[0x1],'part':_0x5a0f7e[0x2]};}class ut extends _0x562ab1{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4fe259,_0x395e21)=>{if(!_0x395e21['options']['showCommentHighlights'])return null;if(_0x395e21['options']['ignoreResolvedComments']){const {id:_0xcef28}=ft(_0x4fe259['markerName']),_0x373659=this['editor']['plugins']['get'](o);if(_0x373659['getCommentThread'](_0xcef28)?.['isResolved']&&_0x4fe259['item'])return _0x395e21['consumable']['consume'](_0x4fe259['item'],'addMarker:'+_0x4fe259['markerName']),_0x395e21['consumable']['consume'](_0x4fe259['item'],'removeMarker:'+_0x4fe259['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x7d5ee9=>{_0x7d5ee9['on']('addMarker:comment',(_0xbfe4b8,_0x2fb61f,_0x5c6cd2)=>{if(!_0x5c6cd2['options']['showCommentHighlights'])return;const _0x184089=_0x2fb61f['item'];if(!_0x184089)return;const _0x78ddc3=_0x5c6cd2['mapper']['toViewElement'](_0x184089);this['editor']['model']['schema']['isObject'](_0x184089)&&_0x78ddc3&&!_0x78ddc3['getCustomProperty']('widget')&&_0x78ddc3['is']('containerElement')&&_0x272216(_0x78ddc3,_0x5c6cd2['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x282ec4,{writer:_0x5858aa,options:_0x1798ff})=>{if(!_0x1798ff['showCommentHighlights'])return null;const _0x8ce348=_0x5858aa['createContainerElement']('div'),_0x2e337a=_0x5858aa['createEmptyElement']('hr');return _0x5858aa['addClass']('ck-horizontal-line',_0x8ce348),_0x5858aa['insert'](_0x5858aa['createPositionAt'](_0x8ce348,0x0),_0x2e337a),_0x8ce348;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1e4ae7,{writer:_0xc5379b,options:_0xe17c6e})=>{if(!_0xe17c6e['showCommentHighlights'])return null;const _0x4706f0=_0xc5379b['createContainerElement']('span'),_0x193c12=_0xc5379b['createEmptyElement']('img');return _0xc5379b['addClass']('image-inline',_0x4706f0),_0xc5379b['insert'](_0xc5379b['createPositionAt'](_0x4706f0,0x0),_0x193c12),_0x4706f0;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3acae4,{writer:_0x23730c,options:_0x1a34b8})=>{if(_0x1a34b8['showCommentHighlights'])return _0x23730c['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x569868,_0x278197,_0x5a4a51)=>{_0x5a4a51['options']['showCommentHighlights']&&_0x569868['stop']();},{'priority':'high'});}}class r extends _0x562ab1{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(_0x402ff9){super(_0x402ff9),this['set']('isThreadsLoadingPaused',!0x0),_0x402ff9['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x179026,_0x39f2d9,_0x4fd378,_0x181f1b)=>{const _0x2a3c8a=_0x402ff9['plugins']['get'](o),_0x4b3c1c=_0x4fd378?ft(_0x4fd378)['id']:null;_0x402ff9['model']['change'](()=>{if(_0x4b3c1c){const _0x3da876=this['getAllMarkersForId'](_0x4b3c1c);for(const _0x2b58d3 of _0x3da876)_0x402ff9['editing']['reconvertMarker'](_0x2b58d3);}if(_0x181f1b){const {id:_0x354cf3}=ft(_0x181f1b),_0x376a6c=_0x2a3c8a['getCommentThread'](_0x354cf3);if(_0x376a6c&&_0x376a6c['unlinkedAt'])return;if(_0x376a6c&&!_0x376a6c['isAttached'])return;const _0x2f6988=this['getAllMarkersForId'](_0x354cf3);for(const _0x5b13f4 of _0x2f6988)_0x402ff9['editing']['reconvertMarker'](_0x5b13f4);}}),_0x4b3c1c&&this['scrollToThreadMarker'](_0x4b3c1c);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x35085c=this['editor'],_0x52ffb2=_0x35085c['plugins']['get'](o),_0x51f0d7=_0x35085c['config']['get']('collaboration.channelId'),_0x55dc87=_0x52ffb2['getCommentThreads']()['filter'](_0x3b1e71=>_0x3b1e71['channelId']!==_0x51f0d7);_0x35085c['commands']['add']('addCommentThread',new ot(_0x35085c)),this['listenTo'](_0x35085c,'change:isReadOnly',(_0x469903,_0x24bad7,_0x231973)=>{_0x52ffb2['switchReadOnly'](_0x231973,_0x35085c['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x52ffb2,dt('addCommentThread',_0x51f0d7),(_0x9b9114,{threadId:_0x2fbfb4})=>{const _0x43818f=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2fbfb4);_0x43818f?.['unlinkedAt']&&this['_attachArchivedThread'](_0x2fbfb4);}),this['listenTo'](_0x52ffb2,dt('removeCommentThread',_0x51f0d7),(_0x334dc9,{threadId:_0x3ea945})=>{_0x35085c['model']['enqueueChange']({'isUndoable':!0x1},_0x4ec9e1=>{const _0x49846b=this['getAllMarkersForId'](_0x3ea945);for(const _0x572f2f of _0x49846b)_0x4ec9e1['removeMarker'](_0x572f2f);});}),this['listenTo'](_0x52ffb2,dt('resolveCommentThread',_0x51f0d7),(_0x1692d4,{threadId:_0x2cd970})=>{(this['_reconvertMarkers'](_0x2cd970),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x2cd970)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x52ffb2,dt('reopenCommentThread',_0x51f0d7),(_0x592234,{threadId:_0x2427d1})=>{this['_reconvertMarkers'](_0x2427d1);},{'priority':'low'}),this['listenTo'](_0x52ffb2,dt('addComment',_0x51f0d7),(_0x16d998,{threadId:_0x1924d6,isFromAdapter:_0x55ab1b})=>{const _0x83cbda=this['getAllMarkersForId'](_0x1924d6);if(_0x55ab1b||0x0==_0x83cbda['length']||!_0x52ffb2['hasCommentThread'](_0x1924d6))return;0x1===_0x52ffb2['getCommentThread'](_0x1924d6)['length']&&_0x35085c['model']['enqueueChange']({'isUndoable':!0x1},_0x5660f7=>{for(const _0x58b549 of _0x83cbda)_0x5660f7['updateMarker'](_0x58b549,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x55dc87);}['afterInit'](){!async function(_0x49ddd5){const _0x5d663c=_0x2b388e([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]),_0x17af02=0x73460ab3,_0x21b4fd=0x734189b3^_0x17af02,_0xd558ec=window[_0x2b388e([0x44,0x61,0x74,0x65])][_0x2b388e([0x6e,0x6f,0x77])](),_0x577e05=_0x49ddd5[_0x2b388e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x214a83=new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2996ed=>{_0x577e05[_0x2b388e([0x6f,0x6e,0x63,0x65])](_0x2b388e([0x72,0x65,0x61,0x64,0x79]),_0x2996ed);}),_0x45a86e={[_0x2b388e([0x6b,0x74,0x79])]:_0x2b388e([0x45,0x43]),[_0x2b388e([0x75,0x73,0x65])]:_0x2b388e([0x73,0x69,0x67]),[_0x2b388e([0x63,0x72,0x76])]:_0x2b388e([0x50,0x2d,0x32,0x35,0x36]),[_0x2b388e([0x78])]:_0x2b388e([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]),[_0x2b388e([0x79])]:_0x2b388e([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]),[_0x2b388e([0x61,0x6c,0x67])]:_0x2b388e([0x45,0x53,0x32,0x35,0x36])},_0x54ef9e=_0x577e05[_0x2b388e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b388e([0x67,0x65,0x74])](_0x2b388e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f4768(){let _0x47f0bd,_0x4bc423=null,_0x121ac2=null;try{if(_0x54ef9e==_0x2b388e([0x47,0x50,0x4c]))return _0x2b388e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47f0bd=_0x46e20b(),!_0x47f0bd)return _0x2b388e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47f0bd[_0x2b388e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x121ac2=_0x326510(_0x47f0bd[_0x2b388e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47f0bd[_0x2b388e([0x6a,0x74,0x69])])),await _0x549ac9()?_0x2013fb()?_0x1ba978()?_0x2b388e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x552fbc()?(_0x47f0bd[_0x2b388e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b388e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bc423=_0x422799(_0x2b388e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ddf10()):_0x2b388e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b388e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b388e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b388e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ba978(){const _0xa9fc92=[_0x2b388e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b388e([0x74,0x72,0x69,0x61,0x6c])][_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47f0bd[_0x2b388e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd558ec/0x3e8:0xe10*_0x21b4fd;return _0x47f0bd[_0x2b388e([0x65,0x78,0x70])]<_0xa9fc92;}function _0x2013fb(){const _0x323f10=_0x47f0bd[_0x2b388e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x323f10)return!0x1;if(_0x323f10[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b388e([0x2a])))return!0x0;if(_0x323f10[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b388e([0x43,0x4d,0x54])))return!0x0;if(_0x323f10[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b388e([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x5e6712())return!0x0;if(_0x323f10[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b388e([0x52,0x43,0x4d,0x54]))){if(_0x492f02())return!0x0;if(_0x35bd0d()||_0x491627())return!0x0;}return!0x1;}function _0x552fbc(){const _0x4a133d=_0x47f0bd[_0x2b388e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a133d||0x0==_0x4a133d[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3bd323}=new URL(window[_0x2b388e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a133d[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bd323))return!0x0;const _0x463a6c=_0x3bd323[_0x2b388e([0x73,0x70,0x6c,0x69,0x74])](_0x2b388e([0x2e]));return _0x4a133d[_0x2b388e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c8815=>_0x4c8815[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b388e([0x2a])))[_0x2b388e([0x6d,0x61,0x70])](_0x5707ec=>_0x5707ec[_0x2b388e([0x73,0x70,0x6c,0x69,0x74])](_0x2b388e([0x2e])))[_0x2b388e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3950b6=>_0x3950b6[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x463a6c[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b388e([0x6d,0x61,0x70])](_0x54cfd7=>Array(_0x463a6c[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54cfd7[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b388e([0x66,0x69,0x6c,0x6c])](_0x54cfd7[0x0]===_0x2b388e([0x2a])?_0x2b388e([0x2a]):'')[_0x2b388e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54cfd7))[_0x2b388e([0x73,0x6f,0x6d,0x65])](_0x2d3e9b=>_0x463a6c[_0x2b388e([0x65,0x76,0x65,0x72,0x79])]((_0x3ecc14,_0x10beca)=>_0x2d3e9b[_0x10beca]===_0x3ecc14||_0x2d3e9b[_0x10beca]===_0x2b388e([0x2a])));}function _0x4ddf10(){return _0x4bc423&&_0x121ac2?new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x99ecf0,_0x39487e)=>{_0x4bc423[_0x2b388e([0x74,0x68,0x65,0x6e])](_0x99ecf0,_0x39487e),_0x121ac2[_0x2b388e([0x74,0x68,0x65,0x6e])](_0x25ce65=>{_0x25ce65!=_0x2b388e([0x56,0x61,0x6c,0x69,0x64])&&_0x99ecf0(_0x25ce65);},_0x39487e);}):_0x4bc423||_0x121ac2||_0x2b388e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x326510(_0x17f19b,_0x2661a4){return new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48def9=>{if(_0x3bebdd())return _0x48def9(_0x2b388e([0x56,0x61,0x6c,0x69,0x64]));_0x772cff(),_0x577e05[_0x2b388e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b388e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b0826=!0x1;const _0xbd3d46=_0x288d35();function _0x895157(_0x56f2d2){return!!_0x56f2d2&&(typeof _0x56f2d2===_0x2b388e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56f2d2===_0x2b388e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56f2d2[_0x2b388e([0x74,0x68,0x65,0x6e])]===_0x2b388e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56f2d2[_0x2b388e([0x63,0x61,0x74,0x63,0x68])]===_0x2b388e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20aa2b(_0x191178){_0x51257b(_0x191178)[_0x2b388e([0x74,0x68,0x65,0x6e])](_0x6e6726=>{if(!_0x6e6726||_0x6e6726[_0x2b388e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b388e([0x6f,0x6b]))return _0x2b388e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24e11b(_0x257cd8(_0xbd3d46+_0x2661a4))!=_0x6e6726[_0x2b388e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b388e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b388e([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b388e([0x74,0x68,0x65,0x6e])](_0xd8688=>(_0x1cc16b(),_0xd8688),()=>{const _0x34e5ac=_0x8f1d29();return null==_0x34e5ac?(_0x1cc16b(),_0x2b388e([0x56,0x61,0x6c,0x69,0x64])):_0x2b388e(_0xd558ec-_0x34e5ac>(0x574a8eb3^_0x17af02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b388e([0x74,0x68,0x65,0x6e])](_0x48def9)[_0x2b388e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48def9(_0x2b388e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd7ca14=0x7370e433^_0x17af02;function _0x1cc16b(){const _0x39383b=_0x2b388e([0x6c,0x6c,0x63,0x74,0x2d])+_0x24e11b(_0x257cd8(_0x17f19b)),_0x66542e=_0x4087bc(_0x24e11b(window[_0x2b388e([0x4d,0x61,0x74,0x68])][_0x2b388e([0x63,0x65,0x69,0x6c])](_0xd558ec/_0xd7ca14)));window[_0x2b388e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b388e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39383b,_0x66542e);}function _0x8f1d29(){const _0x4f51b3=_0x2b388e([0x6c,0x6c,0x63,0x74,0x2d])+_0x24e11b(_0x257cd8(_0x17f19b)),_0x2f7a90=window[_0x2b388e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b388e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f51b3);return _0x2f7a90?window[_0x2b388e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4087bc(_0x2f7a90),0x10)*_0xd7ca14:null;}function _0x51257b(_0x5040bf){return new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11c6ec,_0x440116)=>{_0x5040bf[_0x2b388e([0x74,0x68,0x65,0x6e])](_0x11c6ec,_0x440116),window[_0x2b388e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x440116,0x7347de73^_0x17af02);});}}_0x577e05[_0x2b388e([0x6f,0x6e])](_0x2b388e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e022f,_0x2f7f8e)=>{if(_0x2f7f8e[0x0]!=_0x17f19b)return _0x48def9(_0x2b388e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f7f8e[0x1]={..._0x2f7f8e[0x1],[_0x2b388e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xbd3d46};},{[_0x2b388e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b388e([0x68,0x69,0x67,0x68])}),_0x577e05[_0x2b388e([0x6f,0x6e])](_0x2b388e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x195156=>{_0x895157(_0x195156[_0x2b388e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b0826=!0x0,_0x20aa2b(_0x195156[_0x2b388e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b388e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b388e([0x6c,0x6f,0x77])}),_0x214a83[_0x2b388e([0x74,0x68,0x65,0x6e])](()=>{_0x1b0826||_0x48def9(_0x2b388e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3bebdd(){return _0x577e05[_0x2b388e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b388e([0x76,0x69,0x65,0x77])][_0x2b388e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b388e([0x61,0x75,0x74,0x6f]);}function _0x772cff(){_0x577e05[_0x2b388e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b388e([0x76,0x69,0x65,0x77])][_0x2b388e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b388e([0x61,0x75,0x74,0x6f]);}}function _0x422799(_0x3ec223){const _0x48112e=[new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4521d8=>setTimeout(_0x4521d8,0x734f347f^_0x17af02)),_0x214a83[_0x2b388e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x99169d=>{let _0x1a6e85=0x0;_0x577e05[_0x2b388e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b388e([0x6f,0x6e])](_0x2b388e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23ed31,_0x4e6839)=>{_0x4e6839[0x0][_0x2b388e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a6e85++,_0x1a6e85==(0x73460f5b^_0x17af02)&&(_0x99169d(),_0x23ed31[_0x2b388e([0x6f,0x66,0x66])]());});}))];return window[_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b388e([0x72,0x61,0x63,0x65])](_0x48112e)[_0x2b388e([0x74,0x68,0x65,0x6e])](()=>_0x3ec223);}async function _0x2e6a16(){await _0x214a83,_0x577e05[_0x2b388e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b388e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x182e1a,_0x577e05[_0x2b388e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b388e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x182e1a,_0x577e05[_0x2b388e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b388e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e6712(){return window[_0x2b388e([0x67,0x6c,0x6f,0x62])]&&window[_0x2b388e([0x67,0x6c,0x6f,0x62])][_0x2b388e([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x492f02(){return _0x41738b(_0x2b388e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x199e95(_0x2b388e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2b388e([0x73,0x74,0x61,0x74,0x65])]==_0x2b388e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x35bd0d(){return _0x41738b(_0x2b388e([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 _0x491627(){return _0x41738b(_0x2b388e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x283096(_0x32a8b8){const _0x5d26f2=_0x154125();_0x577e05[_0x5d26f2]=_0x2b388e([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x32a8b8,_0x32a8b8!=_0x2b388e([0x56,0x61,0x6c,0x69,0x64])&&_0x2e6a16();}function _0x154125(){const _0x2992f6=window[_0x2b388e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b388e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b388e([0x6e,0x6f,0x77])]())[_0x2b388e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b388e([0x2e]),'');let _0x63f3f1=_0x2b388e([0x4b]);for(let _0x45be4a=0x0;_0x45be4a<_0x2992f6[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45be4a+=0x2){let _0xb51c89=window[_0x2b388e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2992f6[_0x2b388e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45be4a,_0x45be4a+0x2));_0xb51c89>=_0x5d663c[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb51c89-=_0x5d663c[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x63f3f1+=_0x5d663c[_0xb51c89];}return _0x63f3f1;}function _0x46e20b(){const _0x145129=_0x54ef9e[_0x2b388e([0x73,0x70,0x6c,0x69,0x74])](_0x2b388e([0x2e]));if(0x3!=_0x145129[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ce9e1(_0x145129[0x1]);function _0x5ce9e1(_0x5aea49){const _0x5ed0e8=_0x7db382(_0x5aea49);return _0x5ed0e8&&_0x254ce1()?_0x5ed0e8:null;function _0x254ce1(){const _0x3adb76=_0x5ed0e8[_0x2b388e([0x6a,0x74,0x69])],_0x21a87c=window[_0x2b388e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3adb76[_0x2b388e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3adb76[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x534089={..._0x5ed0e8,[_0x2b388e([0x6a,0x74,0x69])]:_0x3adb76[_0x2b388e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3adb76[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x534089[_0x2b388e([0x76,0x63])],_0x257cd8(_0x534089)==_0x21a87c;}}}async function _0x549ac9(){let _0x48a445=!0x0;try{const _0x5d3666=_0x54ef9e[_0x2b388e([0x73,0x70,0x6c,0x69,0x74])](_0x2b388e([0x2e])),[_0x6c35a2,_0x46299d,_0x1915ae]=_0x5d3666;return _0x3c524c(_0x6c35a2),await _0x4d4524(_0x6c35a2,_0x46299d,_0x1915ae),_0x48a445;}catch{return!0x1;}function _0x3c524c(_0x441541){const _0x2dce1a=_0x7db382(_0x441541);_0x2dce1a&&_0x2dce1a[_0x2b388e([0x61,0x6c,0x67])]==_0x2b388e([0x45,0x53,0x32,0x35,0x36])||(_0x48a445=!0x1);}async function _0x4d4524(_0x392e45,_0x3dd7e4,_0x3194e8){const _0x5af355=window[_0x2b388e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b388e([0x66,0x72,0x6f,0x6d])](_0x44a40b(_0x3194e8),_0x203ff5=>_0x203ff5[_0x2b388e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x58d57d=new window[(_0x2b388e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b388e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x392e45+_0x2b388e([0x2e])+_0x3dd7e4),_0x36e113=window[_0x2b388e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b388e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36e113)return;const _0x416ef4=await _0x36e113[_0x2b388e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b388e([0x6a,0x77,0x6b]),_0x45a86e,{[_0x2b388e([0x6e,0x61,0x6d,0x65])]:_0x2b388e([0x45,0x43,0x44,0x53,0x41]),[_0x2b388e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b388e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b388e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36e113[_0x2b388e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b388e([0x6e,0x61,0x6d,0x65])]:_0x2b388e([0x45,0x43,0x44,0x53,0x41]),[_0x2b388e([0x68,0x61,0x73,0x68])]:{[_0x2b388e([0x6e,0x61,0x6d,0x65])]:_0x2b388e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x416ef4,_0x5af355,_0x58d57d)||(_0x48a445=!0x1);}}function _0x7db382(_0x848d23){return _0x848d23[_0x2b388e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b388e([0x65,0x79]))?JSON[_0x2b388e([0x70,0x61,0x72,0x73,0x65])](_0x44a40b(_0x848d23)):null;}function _0x44a40b(_0x475284){return window[_0x2b388e([0x61,0x74,0x6f,0x62])](_0x475284[_0x2b388e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b388e([0x2b]))[_0x2b388e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b388e([0x2f])));}function _0x257cd8(_0x1dac0e){let _0x4b8506=0x1505;function _0x1b4c85(_0x4eb5a7){for(let _0x391033=0x0;_0x391033<_0x4eb5a7[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x391033++){const _0x1fc4c4=_0x4eb5a7[_0x2b388e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x391033);_0x4b8506=(_0x4b8506<<0x5)+_0x4b8506+_0x1fc4c4,_0x4b8506&=_0x4b8506;}}function _0x384f6d(_0x2931d2){Array[_0x2b388e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2931d2)?_0x2931d2[_0x2b388e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x384f6d):_0x2931d2&&typeof _0x2931d2==_0x2b388e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b388e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2931d2)[_0x2b388e([0x73,0x6f,0x72,0x74])]()[_0x2b388e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a4473,_0x1918ad])=>{_0x1b4c85(_0x5a4473),_0x384f6d(_0x1918ad);}):_0x1b4c85(window[_0x2b388e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2931d2));}return _0x384f6d(_0x1dac0e),_0x4b8506>>>0x0;}function _0x24e11b(_0x30b0e2){return _0x30b0e2[_0x2b388e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b388e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b388e([0x30]));}function _0x4087bc(_0x1e8844){return _0x1e8844[_0x2b388e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b388e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b388e([0x6a,0x6f,0x69,0x6e])]('');}function _0x41738b(_0xc7a45f){return _0x577e05[_0x2b388e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b388e([0x68,0x61,0x73])](_0xc7a45f);}function _0x199e95(_0x4bfbb6){return _0x577e05[_0x2b388e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b388e([0x67,0x65,0x74])](_0x4bfbb6);}function _0x182e1a(){}function _0x2b388e(_0xeed76){return _0xeed76['map'](_0x28ae35=>String['fromCharCode'](_0x28ae35))['join']('');}_0x283096(await _0x4f4768());}(this);}['destroy'](){const _0x55d518=this['editor']['plugins']['get'](o),_0x17e3aa=this['editor']['config']['get']('collaboration.channelId');for(const _0x50a0e4 of _0x55d518['getCommentThreads']({'channelId':_0x17e3aa}))_0x55d518['_detachCommentThread'](_0x50a0e4['id']),_0x55d518['_threads']['delete'](_0x50a0e4['id']);super['destroy']();}['hasMarkerForId'](_0x372137){return this['getAllMarkersForId'](_0x372137)['length']>0x0;}['getAllMarkersForId'](_0x382cb3){const _0x4c3e03=[];for(const _0x57cca7 of this['editor']['model']['markers'])_0x57cca7['name']['startsWith']('comment:'+_0x382cb3)&&_0x4c3e03['push'](_0x57cca7);return _0x4c3e03;}['scrollToThreadMarker'](_0x45e4a2){setTimeout(()=>{const _0x180dc7=this['_getTargetForId'](_0x45e4a2);if(!_0x180dc7)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x45e4a2&&nt({'target':_0x180dc7[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x44afff){this['editor']['model']['change'](()=>{for(const _0x316e73 of this['getAllMarkersForId'](_0x44afff))this['editor']['editing']['reconvertMarker'](_0x316e73);});}['_attachArchivedThread'](_0x17104d){const _0x3cc396=this['editor']['plugins']['get'](o),_0x3accc2=this['editor']['plugins']['get'](b),_0x324569=_0x3cc396['getCommentThread'](_0x17104d);if(!_0x324569['isAttached']){const _0x3ba111=_0x324569['attachTo'](()=>this['_getTargetForId'](_0x324569['id']));_0x3accc2['registerAnnotation'](_0x3ba111),_0x324569['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x4a9299=this['editor'],_0x59c1b0=_0x4a9299['plugins']['get'](it);_0x4a9299['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4c3636,_0x3646d1)=>{const {id:_0x522e43}=ft(_0x4c3636['markerName']),_0xb5fa9=_0x4a9299['plugins']['get'](o)['getCommentThread'](_0x522e43),_0x1966fd=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x522e43;let _0x6cff7;if(_0xb5fa9&&_0xb5fa9['isResolved']&&!_0x1966fd&&_0x4c3636['item'])return _0x3646d1['consumable']['consume'](_0x4c3636['item'],'addMarker:'+_0x4c3636['markerName']),_0x3646d1['consumable']['consume'](_0x4c3636['item'],'removeMarker:'+_0x4c3636['markerName']),null;const _0x47f882=['ck-comment-marker'];return _0x1966fd&&_0x47f882['push']('ck-comment-marker--active'),_0x6cff7=_0xb5fa9?.['length']?_0xb5fa9['comments']['first']['author']['id']:_0x59c1b0['me']['id'],{'classes':_0x47f882,'attributes':{'data-comment':_0x522e43,'data-author-id':_0x6cff7}};}}),_0x4a9299['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x283f8d,{options:_0x2f5f71})=>{if(_0x2f5f71['showCommentHighlights'])return null;const _0x131839=_0x4a9299['plugins']['get'](o),_0x569c22=_0x4a9299['model']['markers']['get'](_0x283f8d),{id:_0x194ea1,part:_0x2166a3}=ft(_0x283f8d);return _0x569c22&&!_0x569c22['affectsData']||_0x2f5f71['ignoreResolvedComments']&&_0x131839['getCommentThread'](_0x194ea1)?.['isResolved']?null:{'group':'comment','name':_0x2166a3?_0x194ea1+':'+_0x2166a3:_0x194ea1};}}),_0x4a9299['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x50a9f5,{writer:_0x1a6c9b})=>_0x1a6c9b['createElement']('$marker',{'data-name':'comment:'+_0x50a9f5['getAttribute']('id')})}),_0x4a9299['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2576a5=this['editor'],_0x516488=_0x2576a5['plugins']['get'](o),_0x4b13f8=new Set(),_0x1b4de4=new Set();_0x2576a5['model']['document']['registerPostFixer'](_0x445e32=>{let _0x2f2a0c=!0x1;for(const {name:_0x297821,data:_0x44064c}of _0x2576a5['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2766f9,id:_0x3fdf7a}=ft(_0x297821);let _0x1fef07=_0x44064c['newRange'];if('comment'!==_0x2766f9||!_0x1fef07)continue;const _0x234e12='$graveyard'===_0x1fef07['root']['rootName'];_0x234e12||(_0x1fef07=ht(_0x1fef07,_0x2576a5['model']),!_0x1fef07||_0x1fef07['isCollapsed']||!_0x44064c['newRange']||_0x1fef07['isEqual'](_0x44064c['newRange']))?_0x2576a5['model']['hasContent'](_0x1fef07)&&!_0x234e12?this['isThreadsLoadingPaused']?_0x4b13f8['add'](_0x297821):this['_handleThreadMarker'](_0x297821,_0x3fdf7a):(_0x1b4de4['add'](_0x297821),_0x4b13f8['delete'](_0x297821),_0x445e32['removeMarker'](_0x297821),_0x2f2a0c=!0x0):(_0x445e32['updateMarker'](_0x297821,{'range':_0x1fef07}),_0x2f2a0c=!0x0);}return _0x2f2a0c;}),this['on']('change:isThreadsLoadingPaused',(_0x12b10b,_0x241929,_0x296aea)=>{if(!_0x296aea&&_0x4b13f8['size'])for(const _0x50baa1 of _0x4b13f8){const {id:_0xf43948}=ft(_0x50baa1);_0x4b13f8['delete'](_0x50baa1),_0x2576a5['model']['markers']['get'](_0x50baa1)&&this['_handleThreadMarker'](_0x50baa1,_0xf43948);}}),this['listenTo'](_0x2576a5['model']['document'],'change',()=>{for(const {name:_0x1f14a4,data:{newRange:_0x30d3c4}}of _0x2576a5['model']['document']['differ']['getChangedMarkers']()){const {group:_0x335ae4,id:_0xb8a33a}=ft(_0x1f14a4);if('comment'!==_0x335ae4)continue;const _0x2403a3=_0x516488['getCommentThread'](_0xb8a33a),_0xb96688=this['hasMarkerForId'](_0xb8a33a);_0x2403a3&&(!_0x2403a3['_hasTargetInContent']&&_0x30d3c4&&_0x2576a5['editing']['view']['once']('render',()=>{const _0x48a220=_0x2576a5['plugins']['get'](y),_0x5943c2=_0x516488['_threadToController']['get'](_0x2403a3)['view'];_0x48a220['getByInnerView'](_0x5943c2)['refreshVisibility']();},{'priority':'low'}),_0x2403a3['_hasTargetInContent']=_0xb96688||!!_0x30d3c4),_0x30d3c4||(_0x1b4de4['add'](_0x1f14a4),_0x4b13f8['delete'](_0x1f14a4));}for(const _0x5051b8 of _0x1b4de4){const {id:_0x11b1c0}=ft(_0x5051b8),_0x3f3fa9=_0x516488['getCommentThread'](_0x11b1c0);if(_0x4b13f8['delete'](_0x5051b8),!_0x3f3fa9)continue;const _0x3b052b=this['hasMarkerForId'](_0x11b1c0);_0x3b052b||_0x3f3fa9['isSubmitted']?_0x3b052b||_0x3f3fa9['unlinkedAt']||_0x3f3fa9['setUnlinkedAt'](new Date()):_0x3f3fa9['remove']();}_0x1b4de4['clear']();});}['_handleInitialThreads'](_0x140a16){_0x140a16['forEach'](_0x2d59cc=>{_0x2d59cc['unlinkedAt']&&this['_attachArchivedThread'](_0x2d59cc['id']);});}['_getTargetForId'](_0x2259f8){const _0x256c6d=this['editor'],_0x44ebea=this['getAllMarkersForId'](_0x2259f8);return et(_0x256c6d['editing'],_0x44ebea);}['_getTextContext'](_0xd76d91){const _0x199fcf=this['getAllMarkersForId'](_0xd76d91);let _0x47bd50='',_0x5162db=!0x1;for(const _0x8eef2c of _0x199fcf){const _0x40beda=_0x8eef2c['getRange']();for(const _0x3ed9c6 of Array['from'](_0x40beda['getItems']()))_0x3ed9c6['is']('$textProxy')?(_0x47bd50&&_0x5162db&&(_0x47bd50+='\x20',_0x5162db=!0x1),_0x47bd50+=_0x3ed9c6['data']):_0x5162db=!0x0;_0x5162db=!0x0;}return _0x47bd50['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x268ca5,_0x5f0e15){const _0x23ab48=this['editor'],_0x3cfbda=_0x23ab48['plugins']['get'](o);let _0x5da49a=_0x3cfbda['getCommentThread'](_0x5f0e15);const _0x42bc35=_0x23ab48['config']['get']('collaboration.channelId'),_0x286751=_0x23ab48['plugins']['get'](b);if(_0x5da49a&&(_0x5da49a['unlinkedAt']&&_0x5da49a['setUnlinkedAt'](null),_0x5da49a['isAttached']))return _0x5da49a;return!this['getAllMarkersForId'](_0x5f0e15)[0x0]['managedUsingOperations']?_0x23ab48['editing']['view']['once']('render',()=>{if(_0x3cfbda['getCommentThread'](_0x5f0e15))return;const _0x2b5be9=_0x23ab48['plugins']['get'](y);_0x5da49a=_0x3cfbda['openNewCommentThread']({'channelId':_0x42bc35,'threadId':_0x5f0e15,'target':()=>this['_getTargetForId'](_0x5f0e15),'context':{'type':'text','value':this['_getTextContext'](_0x5f0e15)}});const _0x55d757=_0x3cfbda['_threadToController']['get'](_0x5da49a)['view'],_0x3b1143=_0x2b5be9['getByInnerView'](_0x55d757);_0x3b1143&&_0x286751['registerAnnotation'](_0x3b1143);},{'priority':'low'}):_0x3cfbda['fetchCommentThread']({'channelId':_0x42bc35,'threadId':_0x5f0e15})['then'](_0x1659a7=>{if('destroyed'!==_0x23ab48['state']){if(_0x5da49a=_0x1659a7,_0x5da49a&&!_0x5da49a['isAttached']){const _0x50bb36=_0x5da49a['attachTo'](()=>this['_getTargetForId'](_0x5f0e15));_0x286751['registerAnnotation'](_0x50bb36),_0x5da49a['isResolved']&&this['_reconvertMarkers'](_0x5f0e15);}else{if(!_0x5da49a){const _0x4a0295=this['getAllMarkersForId'](_0x5f0e15);_0x23ab48['model']['change'](_0x3d280d=>{for(const _0xf4bef3 of _0x4a0295)_0x3d280d['removeMarker'](_0xf4bef3);});}}}}),_0x5da49a;}['_handleThreadMarker'](_0x47a4d4,_0x4078f6){const _0x39bb7a=this['_attachMarkerToThread'](_0x47a4d4,_0x4078f6);_0x39bb7a&&!_0x39bb7a['context']&&_0x39bb7a['setContext']({'type':'text','value':this['_getTextContext'](_0x4078f6)});}['_initAriaMarkerChangeAnnouncements'](){const _0x141730=this['editor'];rt(_0x141730['model'],({left:_0x1afaab,entered:_0x186211})=>{for(const _0x19d964 of _0x1afaab)if(mt(_0x19d964)){_0x141730['ui']['ariaLiveAnnouncer']['announce'](N(_0x141730['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x21ffb3 of _0x186211)if(mt(_0x21ffb3)){_0x141730['ui']['ariaLiveAnnouncer']['announce'](N(_0x141730['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x51ab26)));break;}});}}function dt(_0x2f497b,_0x5bedaa){return _0x5bedaa?_0x2f497b+':'+_0x5bedaa:_0x2f497b;}function ht(_0xafd9b2,_0x12e642){const _0x192901=_0x12e642['schema'],_0x2486f1=_0x12e642['createRange'](_0xafd9b2['start']);for(const _0x5af8c6 of _0xafd9b2['getWalker']()){const {type:_0x4d74a3,item:_0x449dbb,nextPosition:_0xadaf9a}=_0x5af8c6;if('text'===_0x4d74a3||_0x192901['isObject'](_0x449dbb)){const _0x4b7ee3=_0x12e642['createPositionBefore'](_0x449dbb);_0x2486f1['isCollapsed']&&(_0x2486f1['start']=_0x4b7ee3),_0x2486f1['end']=_0xadaf9a;}}return _0x2486f1;}function mt(_0x2dbf6c){return'comment'===ft(_0x2dbf6c['name'])['group'];}class s extends _0x562ab1{['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 _0x587d98=this['editor'],_0x4f7973=_0x587d98['plugins']['get'](o),_0x4e05f2=_0x587d98['plugins']['get'](r),_0xf6c77e=_0x587d98['plugins']['get'](y),_0x46a55f=_0x587d98['plugins']['get'](b);_0x587d98['ui']['componentFactory']['add']('comment',()=>{const _0x60e59f=this['_createUIButton'](_0x2e2946);return _0x60e59f['tooltip']=!0x0,_0x60e59f;}),_0x587d98['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x1b61d8)),_0x46a55f['addSourceCollector'](()=>{const _0x11ccb7=[];for(const [_0x2c8a12,_0x16101b]of _0x4f7973['_threadToController']){const _0x5779fb=_0x4e05f2['getAllMarkersForId'](_0x2c8a12['id']),_0x4188f7=_0x5779fb['map'](_0x6c844a=>_0x6c844a['getRange']());_0x5779fb['length']>0x0&&_0x11ccb7['push']([_0x16101b['view'],_0x4188f7]);}return _0x11ccb7;}),this['listenTo'](_0xf6c77e,'change:activeAnnotations',(_0x558c9a,_0x437222,_0x5ab12f)=>{const _0xcbd497=Array['from'](_0x5ab12f)['map'](_0x1d214d=>_0x1d214d['innerView'])['find'](_0x222816=>_0x4f7973['_viewToController']['has'](_0x222816));if(!_0xcbd497)return void(_0x4e05f2['activeMarker']=null);const _0x4e4d26=_0x4f7973['_viewToController']['get'](_0xcbd497)['model']['id'],_0x128018='comment:'+_0x4e4d26;_0x4e4d26&&_0x4e05f2['hasMarkerForId'](_0x4e4d26)?_0x4e05f2['activeMarker']=_0x128018:_0x4e05f2['activeMarker']&&(_0x4e05f2['activeMarker']=null);}),this['listenTo'](_0x4f7973,'removeCommentThread',(_0x484a58,{threadId:_0x1dfaad,isFromAdapter:_0x3e0bf4})=>{!_0x3e0bf4&&_0x587d98['ui']['focusTracker']['isFocused']&&_0x4e05f2['hasMarkerForId'](_0x1dfaad)&&_0x587d98['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x4f7973,'addComment',(_0x4bfbad,{threadId:_0x4a0171,isFromAdapter:_0x2e8bae})=>{if(_0x2e8bae||!_0x4e05f2['hasMarkerForId'](_0x4a0171)||!_0x4f7973['hasCommentThread'](_0x4a0171))return;0x1===_0x4f7973['getCommentThread'](_0x4a0171)['length']&&(_0x587d98['editing']['view']['focus'](),_0x4bfbad['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x609179=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf0c63c;for(const _0x2475ce in _0x609179){const _0xa62d09=_0x2475ce,_0x5595b7=_0x609179[_0xa62d09];if('commentsLicenseKeyValid'==_0x5595b7||'commentsLicenseKeyInvalid'==_0x5595b7||'commentsLicenseKeyExpired'==_0x5595b7||'commentsLicenseKeyDomainLimit'==_0x5595b7||'commentsLicenseKeyNotAllowed'==_0x5595b7||'commentsLicenseKeyEvaluationLimit'==_0x5595b7||'commentsLicenseKeyUsageLimit'==_0x5595b7){delete _0x609179[_0xa62d09],_0xf0c63c=_0x5595b7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0xf0c63c&&_0x609179['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0xf0c63c&&_0x609179['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0xf0c63c&&_0x609179['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0xf0c63c&&_0x609179['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0xf0c63c&&_0x609179['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0xf0c63c&&_0x609179['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xc68cca){const _0x1119fc=this['editor'],_0x29eca2=new _0xc68cca(_0x1119fc['locale']),_0x156d21=_0x1119fc['commands']['get']('addCommentThread');return _0x29eca2['set']({'label':N(_0x1119fc['locale'],'Comment'),'icon':_0x38a6cc}),_0x29eca2['bind']('isEnabled')['to'](_0x156d21,'isEnabled',_0x156d21,'hasContent',(_0x1d3e85,_0x154aee)=>_0x1d3e85&&_0x154aee),this['listenTo'](_0x29eca2,'execute',()=>{_0x156d21['execute']();}),_0x29eca2;}}class i extends _0x562ab1{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x88feeb){super(_0x88feeb),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x190526,_0x55080d,_0x424763)=>{_0x424763?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x51c100,_0x5bd99f]of this['editor']['commands'])_0x5bd99f['affectsData']&&'addCommentThread'!==_0x51c100&&_0x5bd99f['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 _0x42bec0=this['editor']['editing']['view']['document'];this['listenTo'](_0x42bec0,'cut',_0x38bd14=>_0x38bd14['stop'](),{'priority':'highest'}),this['listenTo'](_0x42bec0,'clipboardInput',_0x31b055=>_0x31b055['stop'](),{'priority':'highest'}),this['listenTo'](_0x42bec0,'delete',_0x56c514=>_0x56c514['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x24a77b,_0x296a20]of this['editor']['commands'])_0x296a20['affectsData']&&'addCommentThread'!==_0x24a77b&&_0x296a20['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 _0x1511aa{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x315ae1){super(_0x315ae1),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x2a7d11=this['context']['plugins']['get'](y);this['listenTo'](_0x2a7d11,'_activateAnnotation',(_0x3ba24e,_0x3941d2)=>{for(const _0x45b57c of this['activeUIs']){const _0x5093e4=this['_uis']['get'](_0x45b57c);(0x0,this['uisData']['get'](_0x45b57c)['filter'])(_0x3941d2)&&_0x5093e4['setActiveAnnotation'](_0x3941d2);}}),this['listenTo'](_0x2a7d11,'_deactivateAllAnnotations',()=>{for(const _0x2a6ef5 of this['activeUIs']){this['_uis']['get'](_0x2a6ef5)['setActiveAnnotation'](null);}}),this['listenTo'](_0x2a7d11['_visibleAnnotations'],'add',(_0x36d567,_0x457f87)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x457f87);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x340334){return this['activeUIs']['has'](_0x340334);}['activate'](_0x1c27fc,_0x455fde=this['defaultFilter']){const _0x5a574d=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x1c27fc))throw new _0x4c975e('annotationsuis-missing-ui',this,{'uiName':_0x1c27fc});this['isActive'](_0x1c27fc)&&this['deactivate'](_0x1c27fc),this['activeUIs']['add'](_0x1c27fc);const _0x334417=new S();v({'source':_0x5a574d['_visibleAnnotations'],'target':_0x334417,'filter':_0x455fde}),this['uisData']['set'](_0x1c27fc,{'collection':_0x334417,'filter':_0x455fde});const _0x4bbbf6=this['_uis']['get'](_0x1c27fc);_0x4bbbf6['attach'](_0x334417),this['listenTo'](_0x4bbbf6,'change:activeAnnotation',(_0x46d417,_0x390cbd,_0x30df11,_0x315c71)=>{_0x315c71&&_0x5a574d['_removeActiveAnnotation'](_0x315c71),_0x30df11&&_0x5a574d['_addActiveAnnotation'](_0x30df11);});}['deactivate'](_0x182d28){if(this['activeUIs']['delete'](_0x182d28),!this['_uis']['has'](_0x182d28))throw new _0x4c975e('annotationsuis-missing-ui',this,{'uiName':_0x182d28});const _0x37618b=this['_uis']['get'](_0x182d28);_0x37618b['detach'](),this['stopListening'](_0x37618b),this['uisData']['get'](_0x182d28)['collection']['destroy'](),this['uisData']['delete'](_0x182d28);}['switchTo'](_0x4c94da){if(!this['_uis']['has'](_0x4c94da))throw new _0x4c975e('annotationsuis-missing-ui',this,{'uiName':_0x4c94da});const _0x3f3058=this['context']['plugins']['get'](y),_0x49d401=Array['from'](_0x3f3058['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4c94da);const _0x3314e1=this['_uis']['get'](_0x4c94da);_0x3314e1['setActiveAnnotation'](_0x49d401),_0x3314e1['_setSelectedAnnotations']&&_0x49d401&&_0x3314e1['_setSelectedAnnotations']([_0x49d401]);}['deactivateAll'](){for(const _0x391b15 of this['activeUIs'])this['deactivate'](_0x391b15);}['register'](_0x4d4c27,_0x873db8){if(this['_uis']['has'](_0x4d4c27))throw new _0x4c975e('annotationsuis-register-already-registered');if('function'!=typeof _0x873db8['attach']||'function'!=typeof _0x873db8['detach']||'function'!=typeof _0x873db8['setActiveAnnotation'])throw new _0x4c975e('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x4d4c27,_0x873db8);}['refilterAnnotations'](){const _0x56d7d1=this['context']['plugins']['get'](y)['collection'],_0x5a4cd3=new Map(),_0xdfdbaf=Array['from'](this['activeUIs']);for(const _0x465ea7 of this['activeUIs']){const _0x3b66b4=this['uisData']['get'](_0x465ea7)['collection'];for(const _0x14f313 of _0x3b66b4)_0x5a4cd3['set'](_0x14f313,_0x465ea7);}for(const _0x2628f3 of _0x56d7d1){const _0x1540b5=_0x5a4cd3['get'](_0x2628f3);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2628f3);const _0x4d578f=_0xdfdbaf['find'](_0x414e8f=>this['uisData']['get'](_0x414e8f)['filter'](_0x2628f3));_0x1540b5!==_0x4d578f&&(_0x1540b5&&this['uisData']['get'](_0x1540b5)['collection']['remove'](_0x2628f3),_0x4d578f&&this['uisData']['get'](_0x4d578f)['collection']['add'](_0x2628f3));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x372ba9){const _0x52092e=[];for(const _0x5c1691 of this['activeUIs']){(0x0,this['uisData']['get'](_0x5c1691)['filter'])(_0x372ba9)&&_0x52092e['push'](_0x5c1691);}if(_0x52092e['length']>0x1)throw new _0x4c975e('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x52092e,'annotationType':_0x372ba9['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x3b9c5e){super(_0x3b9c5e);const _0x24e4b0=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 _0x3fbfe5(),this['focusCycler']=new _0x39bd35({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x24e4b0['to']('class')],'style':{'minHeight':_0x24e4b0['to']('minHeight',_0x57557b=>'number'==typeof _0x57557b?_i(_0x57557b+0xa):null)},'dir':_0x3b9c5e['uiLanguageDirection'],'role':'application','aria-label':N(_0x3b9c5e,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x3b9c5e,'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',_0x2b5642=>{this['_updateItemPositionInFocusables'](_0x2b5642['source']);}),this['list']['forEach'](_0x16b6c0=>{this['focusTracker']['add'](_0x16b6c0['element']),this['_updateItemPositionInFocusables'](_0x16b6c0);}),this['list']['on']('change',(_0xa1779b,_0x398fed)=>{for(const _0x4c05ac of _0x398fed['removed'])this['focusTracker']['remove'](_0x4c05ac['element']),this['focusables']['remove'](_0x4c05ac);for(const _0x1299a7 of _0x398fed['added'])this['focusTracker']['add'](_0x1299a7['element']),this['_updateItemPositionInFocusables'](_0x1299a7);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x5c077c){const _0x2d90c2=this['focusables']['getIndex'](_0x5c077c);let _0x68a9cb,_0x1881ba;for(const _0x4b42cf of this['focusables'])if(_0x5c077c['top']<_0x4b42cf['top']){_0x68a9cb=_0x4b42cf;break;}if(_0x1881ba=_0x68a9cb?this['focusables']['getIndex'](_0x68a9cb):this['focusables']['length'],-0x1!==_0x2d90c2){if(_0x2d90c2===_0x1881ba-0x1)return;this['focusables']['remove'](_0x5c077c),_0x1881ba=_0x68a9cb?this['focusables']['getIndex'](_0x68a9cb):this['focusables']['length'];}this['focusables']['add'](_0x5c077c,_0x1881ba);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x248ad0){super(_0x248ad0),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x37cd6d,_0x4c1291)=>_0x37cd6d+_0x4c1291),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x428edc=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x428edc['to']('isAnimationDisabled',_0x1ca54c=>_0x1ca54c?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x428edc['to']('top',_0x1601c6=>Ot(_0x1601c6))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x413ab0=this['element']['clientHeight'];_0x413ab0&&(this['height']=_0x413ab0);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x1511aa{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d7590){super(_0x1d7590),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 _0x1b2829=this['context']['config']['get']('sidebar.container');_0x1b2829&&this['setContainer'](_0x1b2829);}['setContainer'](_0x1da5db){if(!g(_0x1da5db))throw new _0x4c975e('sidebar-setcontainer-invalid-element');this['container']=_0x1da5db;}['_attachToContainer']({viewClass:_0x2d1480='',spaceBetweenItems:_0x43d8f7=0x19}={}){if(!g(this['container']))throw new _0x4c975e('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x2d1480,this['_spaceBetweenItems']=_0x43d8f7;}['rearrange']({removedAnnotation:_0x1d3d67,previousAnnotation:_0x165ab5,nextAnnotation:_0x2486c0}){const _0xfa6ca4=this['getSidebarItemView'](_0x1d3d67);this['view']['list']['remove'](_0xfa6ca4),this['_destroySidebarItemView'](_0x1d3d67),_0x165ab5&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x165ab5)),_0x2486c0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2486c0)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x20e7fe,activatedAnnotation:_0x2db1f7,disableAnimationOnActivatedAnnotation:_0x145b1d}){if(this['_activeAnnotation']=_0x2db1f7,_0x20e7fe){_0x20e7fe['isActive']=!0x1;const _0x320dfb=this['getSidebarItemView'](_0x20e7fe);_0x320dfb&&_0x145b1d&&(_0x320dfb['isAnimationDisabled']=!0x1);}if(_0x2db1f7){const _0x426481=this['getSidebarItemView'](_0x2db1f7);_0x426481&&(_0x2db1f7['isActive']=!0x0,_0x145b1d&&(_0x426481['isAnimationDisabled']=!0x0,_0x426481['top']+=0x1),this['_alignToTargetRect'](_0x426481));}}['_detachFromContainer'](_0x529990){if(this['view']['element']['remove'](),_0x529990){for(const _0x340ea4 of _0x529990)this['_destroySidebarItemView'](_0x340ea4);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x9ba1da,_0x3122cd){_0x3122cd||(_0x3122cd=_0x9ba1da['view']);const _0x43d272=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x43d272,_0x9ba1da),this['_annotationToSidebarItemView']['set'](_0x9ba1da,_0x43d272),_0x43d272['content']['add'](_0x3122cd),this['listenTo'](_0x9ba1da['view'],'change:targetRect',(_0x19909b,_0x48a3ed,_0x2ca1cc)=>{const _0x54b0f6=this['_getTargetTop'](_0x9ba1da,_0x2ca1cc);_0x43d272['_targetTop']!=_0x54b0f6&&(_0x43d272['_targetTop']=_0x54b0f6,this['_setItemTop'](_0x43d272,_0x54b0f6));}),this['listenTo'](_0x43d272,'change:top',()=>{this['_recalculate'](_0x43d272,'top');}),this['listenTo'](_0x43d272,'change:bottom',()=>{this['_recalculate'](_0x43d272,'bottom');}),this['_alignToTargetRect'](_0x43d272);const _0x4228ec=this['_getItemBefore'](_0x43d272);if(_0x4228ec)this['_alignAfterItem'](_0x4228ec,_0x43d272)||this['_alignToTargetRect'](_0x43d272);else this['_alignToTargetRect'](_0x43d272);return this['_updateLastItem'](),this['view']['list']['add'](_0x43d272),_0x43d272;}['_alignForTopChange'](_0x328aac){if(!_0x328aac['content']['length'])return;const _0x571057=this['_getItemBefore'](_0x328aac);if(!_0x571057)return;const _0x2164c3=this['_sidebarItemViewToAnnotation']['get'](_0x571057),_0x4ff163=this['_activeAnnotation'];_0x4ff163&&_0x4ff163===_0x2164c3?this['_alignAfterItem'](_0x571057,_0x328aac):this['_alignBeforeItem'](_0x328aac,_0x571057);}['_alignForBottomChange'](_0x401f01){if(!_0x401f01['content']['length'])return;const _0x913dcb=this['_getItemAfter'](_0x401f01);if(!_0x913dcb)return;const _0x39cd2b=this['_sidebarItemViewToAnnotation']['get'](_0x913dcb),_0x3d3ce8=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x31560b=this['_activeAnnotation'];_0x31560b&&_0x31560b===_0x39cd2b&&_0x3d3ce8?(this['_alignBeforeItem'](_0x913dcb,_0x401f01),this['_alignAfterItem'](_0x401f01,_0x913dcb)):_0x31560b&&_0x31560b===_0x39cd2b?this['_alignBeforeItem'](_0x913dcb,_0x401f01):this['_alignAfterItem'](_0x401f01,_0x913dcb);}['_recalculate'](_0x4675a7,_0x2b6ba5){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x58e118,changedProp:_0x591189}of this['_recalculateBuffer'])'top'===_0x591189?this['_alignForTopChange'](_0x58e118):this['_alignForBottomChange'](_0x58e118);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4675a7,'changedProp':_0x2b6ba5});}['getSidebarItemView'](_0x2d4ef0){return this['_annotationToSidebarItemView']['get'](_0x2d4ef0);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1e6201){const _0x39af5a=this['getSidebarItemView'](_0x1e6201);this['stopListening'](_0x39af5a),this['stopListening'](_0x1e6201['view']),_0x39af5a['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1e6201),this['_sidebarItemViewToAnnotation']['delete'](_0x39af5a);}['_createSidebarView'](){const _0x258adb=new H(this['context']['locale']);return _0x258adb['render'](),this['on']('change:_lastItem',(_0x962ea0,_0x253d0e,_0x2951df,_0x4513e3)=>{_0x4513e3&&_0x258adb['unbind']('minHeight'),_0x2951df?_0x258adb['bind']('minHeight')['to'](_0x2951df,'bottom'):_0x258adb['minHeight']=null;}),_0x258adb;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x489e7c){const _0x328cf8=this['_sidebarItemViewToAnnotation']['get'](_0x489e7c),_0x37e958=_0x328cf8&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x328cf8)-0x1);return _0x37e958&&this['getSidebarItemView'](_0x37e958)||null;}['_getItemAfter'](_0x50da30){const _0x16fa2e=this['_sidebarItemViewToAnnotation']['get'](_0x50da30),_0x401601=_0x16fa2e&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x16fa2e)+0x1);return _0x401601&&this['getSidebarItemView'](_0x401601)||null;}['_alignBeforeItem'](_0x4dbe1d,_0x518c94){_0x4dbe1d['updateHeight']();const _0x2beda7=G(_0x518c94['bottom']+this['_spaceBetweenItems'],_0x4dbe1d['top']);return!!_0x2beda7&&(this['_setItemTop'](_0x518c94,_0x518c94['top']-_0x2beda7),!0x0);}['_alignAfterItem'](_0x5483e2,_0x5f2359){_0x5483e2['updateHeight']();const _0x1638dc=G(_0x5483e2['bottom']+this['_spaceBetweenItems'],_0x5f2359['top']);return!!_0x1638dc&&(this['_setItemTop'](_0x5f2359,_0x5f2359['top']+_0x1638dc,!0x1),!0x0);}['_alignToTargetRect'](_0x17c779){const _0x4ed1f8=this['_sidebarItemViewToAnnotation']['get'](_0x17c779);if(!_0x4ed1f8||!_0x4ed1f8['target']||!_0x4ed1f8['targetRect'])return;const _0x4fa507=this['_getTargetTop'](_0x4ed1f8,_0x4ed1f8['targetRect']);this['_setItemTop'](_0x17c779,_0x4fa507);}['_getTargetTop'](_0x25b4ec,_0x47a0e6){if(null===_0x47a0e6)return 0x0;if(_0x25b4ec['target']instanceof _0x28ea8f)return _0x47a0e6['top'];{const _0x5ea8ca=new _0x28ea8f(this['view']['element'])['top'];return _0x47a0e6['top']-_0x5ea8ca;}}['_setItemTop'](_0x344bd9,_0x4e2d68,_0x4fdc10=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x4fdc10&&(_0x4e2d68=Math['max'](_0x4e2d68,this['_getMaxAvailableTop'](_0x344bd9))),_0x344bd9['top']=_0x4e2d68;}['_getMaxAvailableTop'](_0x3a5808){let _0x2d3c00=this['_getItemBefore'](_0x3a5808),_0x457688=0x0;for(;_0x2d3c00;)_0x2d3c00['updateHeight'](),_0x457688+=this['_spaceBetweenItems']+_0x2d3c00['height'],_0x2d3c00=this['_getItemBefore'](_0x2d3c00);return _0x457688;}}function G(_0x31fa56,_0x1978d6){return Math['max'](_0x31fa56-_0x1978d6,0x0);}function g(_0x31500d){return null!==_0x31500d&&'object'==typeof _0x31500d&&0x1===_0x31500d['nodeType'];}class e extends _0x1511aa{['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(_0x3e8341){super(_0x3e8341),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1ce026(),this['_refreshPositioningDebounced']=_0x192048(()=>{_0x3e8341['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x1cde03=this['context']['plugins']['get'](j),_0x3e2294=this['context']['plugins']['get'](z);_0x1cde03['register']('wideSidebar',this),_0x3e2294['container']&&_0x1cde03['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x441bcc){if(_0x441bcc===this['activeAnnotation'])return;const _0x248da2=this['context']['plugins']['get'](z);_0x248da2['_activeAnnotation']=_0x441bcc;const _0x4de49a=this['activeAnnotation'];_0x248da2['refresh']({'blurredAnnotation':_0x4de49a,'activatedAnnotation':_0x441bcc}),this['activeAnnotation']=_0x441bcc;}['attach'](_0x27a9a9){this['annotations']=_0x27a9a9;const _0x25c510=this['context']['plugins']['get'](z);if(_0x25c510['_annotations']=_0x27a9a9,this['isAttached'])throw new _0x4c975e('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x25c510,'set:container',()=>{this['detach'](),this['listenTo'](_0x25c510,'change:container',_0xbf657c=>{_0xbf657c['off'](),this['attach'](_0x27a9a9);});}),_0x25c510['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x376c72=_0x497955=>{_0x497955['updateTargetRect'](),_0x25c510['addAnnotation'](_0x497955);};for(const _0x240eef of _0x27a9a9)_0x376c72(_0x240eef);this['listenTo'](_0x27a9a9,'add',(_0x259f3,_0x3a7b6f)=>{_0x376c72(_0x3a7b6f);}),this['listenTo'](_0x27a9a9,'remove',(_0x36cdbf,_0x39e9e7,_0x41a88b)=>{_0x25c510['rearrange']({'removedAnnotation':_0x39e9e7,'previousAnnotation':_0x27a9a9['get'](_0x41a88b-0x1),'nextAnnotation':_0x27a9a9['get'](_0x41a88b+0x1)}),_0x39e9e7===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x27a9a9,'focus',(_0x4cd661,_0x819451)=>{this['setActiveAnnotation'](_0x819451);}),this['listenTo'](_0x27a9a9,'blur',()=>{this['setActiveAnnotation'](null);});const _0x113848=this['context']instanceof _0x1f800c?this['context']['editors']:new _0x1ce026([this['context']]);for(const _0x4a095a of _0x113848)this['_integrateWithEditorAnnotations'](_0x4a095a);this['listenTo'](_0x113848,'add',(_0x1d5abc,_0x39e881)=>{this['listenTo'](_0x39e881,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x39e881);});}),this['listenTo'](_0x113848,'remove',(_0x7706a9,_0xcdc84d)=>{_0xcdc84d['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xcdc84d['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4c975e('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3a3718=this['context']['plugins']['get'](z);_0x3a3718['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3a3718),this['stopListening'](this['annotations']),this['context']instanceof _0x1f800c&&this['stopListening'](this['context']['editors']);for(const _0x439821 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x439821);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x3edca1){if(!_0x3edca1['plugins']['has']('EditorAnnotations'))return;const _0x5598de=_0x3edca1['plugins']['get']('EditorAnnotations'),_0x18d500=()=>{const _0xe64cad=_0x5598de['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0xe64cad[0x0]||null);};this['listenTo'](_0x5598de,'refresh',_0x18d500),this['listenTo'](_0x5598de,'blur',(_0x3b8d75,{isAnnotationTracked:_0x4b9a88})=>{this['activeAnnotation']&&_0x4b9a88(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5598de,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0xb47144=>{_0x5598de['hasDomSelection']()&&(_0x18d500(),_0xb47144['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x5598de);}['_destroyEditorAnnotationsIntegration'](_0x330b87){this['stopListening'](_0x330b87),this['_editorAnnotations']['remove'](_0x330b87);}}class C extends _0x2e2946{['counterView'];constructor(_0x47ee06){super(_0x47ee06);const _0x1e26e5=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x440485,_0x1d117f)=>_0x440485?'...':_0x1d117f['toString']()),this['set']('annotationType',''),this['icon']=_0x38a6cc,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x1e26e5['to']('annotationType',_0x87b52f=>'ck-annotation-counter__badge--'+_0x87b52f),_0x1e26e5['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1e26e5['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x1511aa{['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(_0x5129bd){super(_0x5129bd),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x400570())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1ce026(),this['_refreshPositioningDebounced']=_0x192048(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x41fe53(this['context']['locale']),this['balloonPanelView']=new _0x29a8fe(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x5f4779){this['annotations']=_0x5f4779;const _0x79a9b1=this['context']['plugins']['get'](z),_0x4e006a=this['balloonPanelView'];if(_0x79a9b1['_annotations']=_0x5f4779,this['isAttached'])throw new _0x4c975e('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x79a9b1,'set:container',()=>{this['detach'](),this['listenTo'](_0x79a9b1,'change:container',_0x3d4019=>{_0x3d4019['off'](),this['attach'](_0x5f4779);});}),_0x79a9b1['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2562ba=_0x5b7537=>{const _0x440e49=new C(this['context']['locale']);_0x79a9b1['addAnnotation'](_0x5b7537,_0x440e49),this['_annotationToNarrowView']['set'](_0x5b7537,_0x440e49),_0x440e49['bind']('isDirty','annotationType','number')['to'](_0x5b7537['view'],'isDirty','type','length'),_0x440e49['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4e006a['content']['first']!==_0x5b7537['view']?(this['_showBalloon'](_0x5b7537),_0x5b7537['view']['element']['focus'](),this['setActiveAnnotation'](_0x5b7537)):this['setActiveAnnotation'](null);});};for(const _0x460ce1 of _0x5f4779)_0x2562ba(_0x460ce1);this['listenTo'](_0x5f4779,'add',(_0x3a2428,_0x50dfcf)=>{_0x2562ba(_0x50dfcf);}),this['listenTo'](_0x5f4779,'remove',(_0x591f96,_0x83887b,_0x3088ba)=>{this['_annotationToNarrowView']['get'](_0x83887b)['destroy'](),this['_annotationToNarrowView']['delete'](_0x83887b),_0x79a9b1['rearrange']({'removedAnnotation':_0x83887b,'previousAnnotation':_0x5f4779['get'](_0x3088ba-0x1),'nextAnnotation':_0x5f4779['get'](_0x3088ba+0x1)}),_0x83887b===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5f4779,'focus',(_0x314f31,_0x3a2ae5)=>{this['setActiveAnnotation'](_0x3a2ae5);}),this['listenTo'](_0x5f4779,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xf18420,_0x1da51e)=>{_0x1da51e['keyCode']===_0x586f43['esc']&&_0x4e006a['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x4e006a['content']['first']),this['_hideBalloon'](),_0x1da51e['stopPropagation'](),_0x1da51e['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x47bc39,_0x6b9093)=>{const _0x484960=_0x6b9093['target'];_0x4e006a['isVisible']&&_0x4e006a['element']['contains'](_0x484960)||_0x79a9b1['view']['element']['contains'](_0x484960)||_0x47bc39['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x499191=>_0x499191['contains'](_0x484960))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x48b1f9=this['context']instanceof _0x1f800c?this['context']['editors']:new _0x1ce026([this['context']]);for(const _0x432e6b of _0x48b1f9)this['_integrateWithEditorAnnotations'](_0x432e6b);this['listenTo'](_0x48b1f9,'add',(_0x14cefa,_0x264f4a)=>{this['listenTo'](_0x264f4a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x264f4a);});}),this['listenTo'](_0x48b1f9,'remove',(_0x42645a,_0x515016)=>{_0x515016['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x515016['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x21a8c7){if(_0x21a8c7===this['activeAnnotation'])return;const _0x15a092=this['context']['plugins']['get'](z);if(_0x15a092['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x21a8c7,'disableAnimationOnActivatedAnnotation':!0x0}),_0x21a8c7)_0x15a092['getSidebarItemView'](_0x21a8c7)?this['_showBalloon'](_0x21a8c7):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x21a8c7;}['detach'](){if(!this['isAttached'])throw new _0x4c975e('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3c290f=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x572da1=>_0x572da1['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3c290f['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x1f800c&&this['stopListening'](this['context']['editors']);for(const _0x1e6ce9 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1e6ce9);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'](_0x4f1440){if(!_0x4f1440['plugins']['has']('EditorAnnotations'))return;const _0x55142d=_0x4f1440['plugins']['get']('EditorAnnotations'),_0x423d25=this['context']['plugins']['get'](z),_0x5198f7=this['annotations'],_0x557846=this['balloonPanelView'],_0x1da922=()=>{const _0x365739=_0x55142d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x365739),this['setActiveAnnotation'](_0x365739[0x0]||null);};this['listenTo'](_0x55142d,'refresh',_0x1da922),this['listenTo'](_0x55142d,'blur',(_0x345aa7,{isAnnotationTracked:_0x3c22fc})=>{this['activeAnnotation']&&_0x3c22fc(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x55142d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5198f7,'blur',_0x96194=>{_0x55142d['hasDomSelection']()&&_0x96194['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1fd27d,_0x5b4c60)=>{const _0x31f732=_0x5b4c60['target'];_0x557846['isVisible']&&_0x557846['element']['contains'](_0x31f732)||_0x423d25['view']['element']['contains'](_0x31f732)||this['activeAnnotation']&&_0x55142d['hasDomSelection']()&&(_0x1da922(),_0x1fd27d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x55142d);}['_destroyEditorAnnotationsIntegration'](_0x160cc5){_0x160cc5&&(this['stopListening'](_0x160cc5),this['_editorAnnotations']['remove'](_0x160cc5));}['_setSelectedAnnotations'](_0x41b094){for(const _0x320ca7 of this['_selectedAnnotations'])_0x41b094['includes'](_0x320ca7)||this['_manuallyClosedAnnotationViews']['delete'](_0x320ca7['view']);this['_selectedAnnotations']=_0x41b094;}['_refreshPositioning'](){const _0xa02096=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0xa02096['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x4d9b53){if(this['_manuallyClosedAnnotationViews']['has'](_0x4d9b53['view']))return;const _0xccf44e=this['balloonPanelView']['content']['first'];_0xccf44e!==_0x4d9b53['view']?(_0xccf44e&&this['_detachListeners'](_0xccf44e),this['_attachListeners'](_0x4d9b53['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x4d9b53['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4eb110=this['balloonPanelView']['content']['first'],_0x2f4ca2=_0x4eb110&&this['annotations']['getByView'](_0x4eb110);if(!_0x2f4ca2||!this['_annotationToNarrowView']['has'](_0x2f4ca2))return;const _0x59a355=this['_annotationToNarrowView']['get'](_0x2f4ca2)['element'],_0x3c4bb3=(function(){const _0x392711=_0x29a8fe['defaultPositions'];return[_0x392711['southArrowNorthEast'],_0x392711['northArrowSouthEast'],_0x392711['southArrowNorth'],_0x392711['northArrowSouth'],_0x392711['southArrowNorthWest'],_0x392711['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x59a355,'positions':_0x3c4bb3});}['_hideBalloon'](){const _0x16c5f0=this['balloonPanelView'],_0x1fd4dc=_0x16c5f0['content']['first'];_0x1fd4dc&&(this['_detachListeners'](_0x1fd4dc),_0x16c5f0['unpin'](),_0x16c5f0['content']['clear']());}['_attachListeners'](_0x252ad7){this['listenTo'](_0x252ad7,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x252ad7,'Esc',(_0x51000c,_0x1b54c6)=>{this['_manuallyClosedAnnotationViews']['add'](_0x252ad7),this['_hideBalloon'](),_0x1b54c6();});}['_detachListeners'](_0x543b17){this['stopListening'](_0x543b17);}}class c extends _0x562ab1{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x3dbc3d,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x250c58){super(_0x250c58),_0x250c58['editing']['view']['addObserver'](_0x4c6600),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x250c58['plugins']['get'](_0x3dbc3d),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x192048(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x58d500=this['editor']['plugins']['get'](j);_0x58d500['context']===this['editor']&&(_0x58d500['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x4601ba,_0x47aa69)=>{const _0x478bd3=this['_balloon'];if(this['isAttached']&&_0x478bd3['visibleView']){const _0x59a112=this['annotations']['getByView'](_0x478bd3['visibleView']);_0x59a112&&this['_closeAnnotation'](_0x59a112),_0x47aa69();}}));}['afterInit'](){const _0x3e0c30=this['editor']['plugins']['get'](j);_0x3e0c30['context']===this['editor']&&(_0x3e0c30['hasActive']()||_0x3e0c30['switchTo']('inline'));}['setActiveAnnotation'](_0x2d789d){_0x2d789d!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2d789d&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2d789d)&&this['_addAnnotationToBalloon'](_0x2d789d,!0x0),_0x2d789d['isActive']=!0x0),_0x2d789d||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2d789d);}['attach'](_0x7e8280){this['annotations']=_0x7e8280;const _0x3fa3f7=this['editor']['plugins']['get'](j),_0x5bf4e6=this['_balloon'];if(this['isAttached'])throw new _0x4c975e('inlineannotations-attach-already-attached',this);if(_0x3fa3f7['context']!==this['editor'])throw new _0x4c975e('inlineannotations-not-allowed-with-context',this);const _0x20ac1c=this['editor']['plugins']['get'](b);this['listenTo'](_0x20ac1c,'refresh',()=>{const _0x72084b=_0x20ac1c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x636a2,_0x1b5fb6;!this['_forceRefresh']&&(_0x636a2=_0x72084b,_0x1b5fb6=this['_selectedAnnotations'],_0x636a2['length']===_0x1b5fb6['length']&&_0x636a2['every'](_0x4440df=>_0x1b5fb6['includes'](_0x4440df)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x72084b),this['setActiveAnnotation'](_0x72084b[0x0]||null));}),this['listenTo'](_0x20ac1c,'blur',(_0x360f84,{isAnnotationTracked:_0x265078})=>{this['activeAnnotation']&&_0x265078(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x20ac1c,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x5ae18f,_0x15ea90,_0x18299)=>{_0x18299||this['setActiveAnnotation'](null);}),this['listenTo'](_0x7e8280,'remove',(_0x77bb4e,_0x5b8b78)=>{this['_removeAnnotationFromBalloon'](_0x5b8b78),_0x5b8b78===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5bf4e6,'change:visibleView',(_0x514863,_0x1cf919,_0x296dde,_0x500b17)=>{_0x500b17&&this['stopListening'](_0x500b17);const _0xa7767b=_0x7e8280['getByView'](_0x296dde);_0x296dde&&_0xa7767b&&(this['listenTo'](_0x296dde,'change:height',()=>{_0x5bf4e6['updatePosition']();}),this['listenTo'](_0x296dde,'Esc',()=>{this['_closeAnnotation'](_0xa7767b),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xa7767b&&this['setActiveAnnotation'](_0xa7767b));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5bf4e6['visibleView']&&(_0x7e8280['getByView'](_0x5bf4e6['visibleView'])&&_0x5bf4e6['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 _0x4c975e('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1135f9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1135f9);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x49963a){for(const _0x57f9dc of this['_selectedAnnotations'])_0x49963a['includes'](_0x57f9dc)||this['_manuallyClosed']['delete'](_0x57f9dc);for(const _0x485509 of this['annotations'])_0x49963a['includes'](_0x485509)||this['_removeAnnotationFromBalloon'](_0x485509);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x214bdc of _0x49963a)this['_addAnnotationToBalloon'](_0x214bdc);}this['_selectedAnnotations']=_0x49963a;}['_addAnnotationToBalloon'](_0xd274d6,_0x8047e9=!0x1){this['_manuallyClosed']['has'](_0xd274d6)||(this['_addedAnnotations']['has'](_0xd274d6)||this['_balloon']['hasView'](_0xd274d6['view'])||(this['_addedAnnotations']['add'](_0xd274d6),this['_balloon']['add']({'stackId':_0xd274d6['view']['id'],'view':_0xd274d6['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xd274d6)}})),_0x8047e9&&this['_balloon']['showStack'](_0xd274d6['view']['id']));}['_getBalloonTargetForAnnotation'](_0x44cc15){const _0x2cbfef=_0x44cc15['target'],_0x2b49dc=this['editor']['editing']['view'],_0x5249fd=_0x2b49dc['document']['selection']['getFirstRange'](),_0x58af3a=_0x2b49dc['domConverter']['viewRangeToDom'](_0x5249fd);if(_0x58af3a['collapse'](!0x0),_0x2cbfef){if(_0x2cbfef instanceof _0x28ea8f)return _0x2cbfef;let _0x56aae5=[];for(const _0xfd4f39 of _0x2cbfef)_0x56aae5['push'](...F(_0xfd4f39['getClientRects']()));_0x56aae5=function(_0x187acb){const _0x1130aa=[];let _0xc2d210=_0x187acb[0x0];for(let _0x44fdca=0x1;_0x44fdca<_0x187acb['length'];_0x44fdca++)P(_0xc2d210,_0x187acb[_0x44fdca])?_0xc2d210['width']+=_0x187acb[_0x44fdca]['width']:(_0x1130aa['push'](_0xc2d210),_0xc2d210=_0x187acb[_0x44fdca]);return _0x1130aa['push'](_0xc2d210),_0x1130aa;}(_0x56aae5);const _0x109a35=_0x58af3a['getBoundingClientRect']();return _0x56aae5['find'](_0x33512c=>_0x33512c['top']<=_0x109a35['top']&&_0x33512c['bottom']>=_0x109a35['bottom']&&_0x33512c['left']<=_0x109a35['left']&&_0x33512c['right']>=_0x109a35['right'])||_0x56aae5[0x0];}return _0x44cc15['targetRect']||_0x58af3a;}['_removeAnnotationFromBalloon'](_0x443f47){this['_addedAnnotations']['has'](_0x443f47)&&this['_balloon']['hasView'](_0x443f47['view'])&&(this['_addedAnnotations']['delete'](_0x443f47),this['_balloon']['remove'](_0x443f47['view']));}['_closeAnnotation'](_0x393872){this['_manuallyClosed']['add'](_0x393872),this['_removeAnnotationFromBalloon'](_0x393872);}}function F(_0x51165f){return Array['from'](_0x51165f)['map'](DOMRect['fromRect']);}function P(_0x364285,_0x46f3ef){return _0x364285['top']===_0x46f3ef['top']&&_0x364285['bottom']===_0x46f3ef['bottom']&&_0x364285['right']===_0x46f3ef['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x160ac4,_0x301609){super(_0x160ac4),this['set']('isEmpty',!_0x301609['length']),this['focusTracker']=new _0x3fbfe5(),this['_annotationViews']=_0x301609,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x39bd35({'focusables':_0x301609,'focusTracker':this['focusTracker']}),this['listenTo'](_0x301609,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x301609,'remove',(_0x2c8aa7,_0x186c7c)=>{_0x186c7c['isActive']&&this['focus'](),_0x301609['length']||(this['isEmpty']=!0x0);});const _0x4ee43c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x160ac4,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x301609},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4ee43c['if']('isEmpty','ck-hidden',_0x3c1cf0=>!_0x3c1cf0)]},'children':[{'text':N(_0x160ac4,'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 _0x348cc0 of this['_annotationViews'])this['focusTracker']['add'](_0x348cc0['element']);this['_annotationViews']['on']('change',(_0x35fc15,{added:_0x381dab,removed:_0x54803b})=>{for(const _0x563c26 of _0x381dab)this['focusTracker']['add'](_0x563c26['element']);for(const _0xca39c0 of _0x54803b)this['focusTracker']['remove'](_0xca39c0['element']);});}}class p extends _0x1511aa{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x459550){super(_0x459550),this['archivedThreads']=new _0x1ce026();}['init'](){const _0x5c7bae=this['context'],_0x2d8996=_0x5c7bae['plugins']['get'](o),_0x56dfa7=_0x5c7bae['plugins']['get'](y);this['listenTo'](_0x2d8996,'addCommentThread',(_0x535df7,{threadId:_0x2c1cfc})=>{const _0x3eb57f=_0x2d8996['getCommentThread'](_0x2c1cfc);_0x3eb57f['archivedAt']&&this['archivedThreads']['add'](_0x3eb57f,this['_calculatePosition'](_0x3eb57f['archivedAt'])),this['listenTo'](_0x3eb57f,'change:archivedAt',(_0x3e4fba,_0x3249eb,_0x1f4a21)=>{_0x1f4a21?this['archivedThreads']['has'](_0x3eb57f)||this['archivedThreads']['add'](_0x3eb57f,this['_calculatePosition'](_0x3eb57f['archivedAt'])):this['archivedThreads']['has'](_0x3eb57f)&&this['archivedThreads']['remove'](_0x3eb57f);});}),this['listenTo'](_0x2d8996,'removeCommentThread',(_0x551dfc,{threadId:_0x2e3efd})=>{const _0x1c5be2=_0x2d8996['getCommentThread'](_0x2e3efd);this['stopListening'](_0x1c5be2),this['archivedThreads']['has'](_0x1c5be2)&&this['archivedThreads']['remove'](_0x1c5be2);},{'priority':'highest'}),this['listenTo'](_0x56dfa7['collection'],'focus',(_0x210c22,_0x2b02c8)=>{_0x2b02c8['isVisible']||(_0x2b02c8['isActive']=!0x0,_0x56dfa7['activate'](_0x2b02c8));});}['_calculatePosition'](_0x51feb7){const _0x3c1898=[...this['archivedThreads']]['findIndex'](_0x6d230d=>_0x6d230d['archivedAt']<_0x51feb7);return _0x3c1898>-0x1?_0x3c1898:this['archivedThreads']['length'];}}class a extends _0x562ab1{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x3ab7ac];}constructor(_0x4ad530){super(_0x4ad530),this['annotationViews']=new _0x24b505(),this['_pendingThreads']=[];}['init'](){const _0x29fa78=this['editor'],_0x1b1f35=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x29fa78['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x2e2946,!0x0)),_0x29fa78['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x1b7b7c=this['_createCommentsArchiveButton'](_0x1b61d8);return _0x1b7b7c['set']({'role':'menuitemcheckbox'}),_0x1b7b7c;});const _0xf35ca0=_0x29fa78['plugins']['get'](p),_0x1a7a9d=_0x29fa78['plugins']['get']('Annotations'),_0x31e35f=_0x29fa78['plugins']['get']('CommentsRepository');_0xf35ca0['archivedThreads']['forEach'](_0xfb4e04=>{this['_handleNewThread'](_0xfb4e04);}),this['listenTo'](_0xf35ca0['archivedThreads'],'add',(_0x26d9e2,_0x5b1b38)=>{this['_handleNewThread'](_0x5b1b38);}),this['listenTo'](_0x1a7a9d['collection'],'add',(_0x3da3c4,_0x4670d5)=>{const _0x1bbd43=this['_pendingThreads']['find'](_0x3c94cd=>{const _0x894b6=_0x31e35f['_threadToController']['get'](_0x3c94cd);return _0x894b6&&_0x4670d5['innerView']===_0x894b6['view'];});if(_0x1bbd43){const _0x1acef1=this['_calculatePosition'](_0x1bbd43['archivedAt']);this['_addAnnotationToArchive'](_0x4670d5,_0x1acef1),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1bbd43),0x1);}}),this['listenTo'](_0xf35ca0['archivedThreads'],'remove',(_0x574771,_0x2112bd)=>{const _0x32a9a=_0x29fa78['config']['get']('collaboration.channelId');if(!_0x32a9a||_0x2112bd['channelId']===_0x32a9a){if(this['_pendingThreads']['includes'](_0x2112bd))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2112bd),0x1);else{const _0x111a11=_0x31e35f['_threadToController']['get'](_0x2112bd),_0xe54c86=_0x1a7a9d['getByInnerView'](_0x111a11['view']);this['annotationViews']['remove'](_0xe54c86['view']),this['stopListening'](_0xe54c86),this['stopListening'](_0xe54c86['focusableElements']);}}}),this['listenTo'](_0x1a7a9d['collection'],'add',(_0x4b3a12,_0x48d44f)=>{this['listenTo'](_0x48d44f,'escape',_0x1b1f35);}),this['listenTo'](_0x1a7a9d['collection'],'remove',(_0x2dcb87,_0x461ccc)=>{this['stopListening'](_0x461ccc,'escape',_0x1b1f35);});}['_addAnnotationToArchive'](_0x2e86e6,_0x301db8){this['listenTo'](_0x2e86e6,'set:isVisible',_0x3465ee=>{_0x3465ee['return']=!0x1,_0x3465ee['stop']();}),this['annotationViews']['add'](_0x2e86e6['view'],_0x301db8);}['_handleNewThread'](_0x3e9bd2){const _0x35bd3a=this['editor']['plugins']['get']('CommentsRepository'),_0x1a4252=this['editor']['plugins']['get']('Annotations'),_0x345a0f=this['editor']['config']['get']('collaboration.channelId');if(!_0x345a0f||_0x3e9bd2['channelId']===_0x345a0f){const _0x198c6e=_0x35bd3a['_threadToController']['get'](_0x3e9bd2);if(!_0x198c6e)return void this['_pendingThreads']['push'](_0x3e9bd2);const _0xae5d05=this['_calculatePosition'](_0x3e9bd2['archivedAt']),_0x4c7c8d=_0x1a4252['getByInnerView'](_0x198c6e['view']);_0x4c7c8d['isVisible']&&_0x1a4252['_visibleAnnotations']['remove'](_0x4c7c8d),this['_addAnnotationToArchive'](_0x4c7c8d,_0xae5d05);}}['_calculatePosition'](_0x508cda){const _0x28bab8=this['editor']['config']['get']('collaboration.channelId'),_0x4b8646=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x520107=>_0x520107['channelId']===_0x28bab8)['findIndex'](_0x3b52be=>_0x3b52be['archivedAt']<_0x508cda);return _0x4b8646<0x0||_0x4b8646>this['annotationViews']['length']?this['annotationViews']['length']:_0x4b8646-0x1;}['_toggleDialog'](){const _0x2fd813=this['editor'],_0xe85600=_0x2fd813['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x2fd813['locale'],this['annotationViews'])),'commentsArchive'===_0xe85600['id']?_0xe85600['hide']():_0xe85600['show']({'id':'commentsArchive','title':N(_0x2fd813['locale'],'COMMENTS_ARCHIVE'),'icon':_0x49e813,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x388cbc['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x11dc38,_0x40fc1a=!0x1){const _0x547546=this['editor']['locale'],_0xed5a91=this['editor']['plugins']['get']('Dialog'),_0x2603f9=new _0x11dc38(_0x547546);return _0x2603f9['bind']('isEnabled')['to'](this,'isEnabled'),_0x2603f9['bind']('isOn')['to'](_0xed5a91,'id',_0x4ef39d=>'commentsArchive'===_0x4ef39d),_0x2603f9['set']({'label':N(_0x547546,'COMMENTS_ARCHIVE'),'icon':_0x49e813,'isToggleable':!0x0}),_0x40fc1a&&(_0x2603f9['tooltip']=!0x0),this['listenTo'](_0x2603f9,'execute',()=>this['_toggleDialog']()),_0x2603f9;}['_hideDialogOnAnnotationEscape']=_0x445a3e=>{const _0x34b7b1=_0x445a3e['source'];if(!this['annotationViews']['has'](_0x34b7b1['view']))return;const _0x29b70c=this['editor']['plugins']['get']('Dialog');_0x29b70c['isOpen']&&'commentsArchive'===_0x29b70c['id']&&(_0x29b70c['hide'](),_0x445a3e['stop']());};}class gi extends _0x562ab1{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};