@ckeditor/ckeditor5-comments 45.2.1-alpha.0 → 45.2.1-alpha.10

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 (193) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +9 -9
  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 +18 -18
  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 +1 -1
  161. package/src/annotations/view/sidebarview.js +1 -1
  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
package/dist/index.js CHANGED
@@ -20,12 +20,12 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x206de1,ContextPlugin as _0x119d87,PendingActions as ht,Command as _0x45efbb,Plugin as _0x5d6037,Context as _0xa578e9}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x47af62,uid as _0x529d92,KeystrokeHandler as jt,FocusTracker as _0xa2a08e,diff as _0x371894,Collection as _0x4c2a37,Rect as _0x487b14,CKEditorError as _0x336dea,first as _0x38c3de,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x41f773,keyCodes as _0x48670c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x4cdcc0,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x2d768e,trimHtml as _0x274b93,LateFocusDropdownButtonView as _0x4b3840,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x37300b}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x11684c}from'es-toolkit/compat';import{IconUndo as _0x283892,IconCheck as _0x20134b,IconPencil as _0xb739e5,IconRemoveComment as _0x2d7484,IconThreeVerticalDots as _0x42dff5,IconAddComment as _0x9b756,IconCommentsArchive as _0x454ed4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Vt,InlineEditableUIView as $t,EditorUI as Rt,View as kt,FocusCycler as _0x4869b6,ButtonView as _0x3b6043,ViewCollection as _0x516608,createDropdown as _0x227181,ListView as _0x1ab736,focusChildOnDropdownOpen as _0x2847d6,ListItemView as _0x3463aa,MenuBarMenuListItemButtonView as _0x15c224,BodyCollection as _0x16bc51,BalloonPanelView as _0x1c7653,ContextualBalloon as _0x5892c5,Dialog as _0x3a5fff,DialogViewPosition as _0x406a14}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x403803}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 Et}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Gt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Jt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Kt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x307cec}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x19ea7a}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x47af62(){['model'];['view'];constructor(_0x59964a,_0x3250e0){super(),this['model']=_0x59964a,this['model']['_isAttached']=!0x0,this['view']=_0x3250e0,this['listenTo'](_0x3250e0,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x3250e0,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x3250e0,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x3250e0,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x3250e0,'addComment',(_0x3e0c17,_0x4974d3)=>this['addComment'](_0x4974d3)),this['listenTo'](_0x3250e0,'updateComment',(_0x241a25,_0x326243,_0x4bb8ae)=>this['updateComment'](_0x326243,_0x4bb8ae)),this['listenTo'](_0x3250e0,'removeComment',(_0x2a321a,_0x1d3e33)=>this['removeComment'](_0x1d3e33));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x5393a0){this['model']['addComment']({'content':_0x5393a0,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x581879,_0x2bffc5){this['model']['getComment'](_0x581879)['update']({'content':_0x2bffc5});}['removeComment'](_0x14fe4e){this['model']['getComment'](_0x14fe4e)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x1f2b59,_0xf532dc,_0x232814){const t=_0x1f2b59['t'];switch(_0xf532dc){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'},_0x232814);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'},_0x232814);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'},_0x232814);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'},_0x232814);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x232814);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'},_0x232814);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'},_0x232814);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'},_0x232814);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 Ut extends Vt{['main'];['editable'];constructor(_0x5c9d51,_0x240f81){super(_0x5c9d51);const _0x380454=_0x529d92();this['main']=this['createCollection'](),this['editable']=new $t(_0x5c9d51,_0x240f81,void 0x0,{'label':()=>E(_0x5c9d51,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x5c9d51['uiLanguageDirection'],'lang':_0x5c9d51['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x380454},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Rt{['view'];constructor(_0x4dd2da){super(_0x4dd2da),this['view']=new Ut(_0x4dd2da['locale'],_0x4dd2da['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x4466ed=this['editor']['editing']['view'],_0x36390a=this['view']['editable'],_0xece868=_0x4466ed['document']['getRoot']();_0x36390a['name']=_0xece868['rootName'],this['view']['render']();const _0x5a728e=_0x36390a['element'];this['setEditableElement'](_0x36390a['name'],_0x5a728e),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4466ed['attachDomRoot'](_0x5a728e),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Nt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Qt extends/* #__PURE__ -- @preserve */
25
- _0x47af62(_0x206de1){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Nt)());constructor(_0x5bbeb7={}){function _0x4df216(_0x2b1ba5){return _0x2b1ba5['map'](_0x403169=>String['fromCharCode'](_0x403169))['join']('');}(_0x5bbeb7=Object['assign']({},_0x5bbeb7))['plugins']||(_0x5bbeb7['plugins']=Qt['defaultPlugins']),super(_0x5bbeb7),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x4df216([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4df216([0x76,0x69,0x65,0x77])][_0x4df216([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4df216([0x61,0x75,0x74,0x6f]),this[_0x4df216([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4df216([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4df216([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4df216([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4df216([0x6f,0x6b])});}['create'](){const _0x43e51f=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x43e51f))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x37db52=>{const _0x5fd2cc=this['model']['document']['getRoot'](),_0x34e4ab=_0x5fd2cc&&_0x5fd2cc['getChild'](_0x5fd2cc['childCount']-0x1);_0x37db52['setSelection'](_0x34e4ab,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x793a44=this['editing']['view'],_0x1eadff=_0x793a44['document']['getRoot'](),_0x430eaf=_0x1eadff['getChild'](0x0);_0x1eadff['childCount']>0x1||!_0x430eaf||'p'!=_0x430eaf['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x793a44,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x430eaf['placeholder']=this['placeholder']),Ft({'view':_0x793a44,'element':_0x430eaf,'keepOnFocus':!0x0}),this['placeholderElement']=_0x430eaf);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3466de,_0x3f727a={}){super(_0x3466de),this['editor']=null,this['_editorConfig']=_0x3f727a,this['set']('value',_0x3f727a['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x3466de,'Reply...')),this['set']('submitLabel',E(_0x3466de,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0xa2a08e(),this['focusCycler']=new _0x4869b6({'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',(_0x3c1e23,_0xff63f5)=>{this['cancelButtonView']['fire']('execute'),_0xff63f5();}),this['keystrokes']['set']('Ctrl+Enter',(_0x55cd06,_0x13eae2)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x13eae2());}),this['on']('submit',(_0x2006f7,_0x21426b)=>{_0x21426b['length']>0xfde8?(alert(E(_0x3466de,'TOO_LONG_COMMENT_ALERT',[_0x21426b['length'],0xfde8])),_0x2006f7['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Qt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x1a7c32=this['editor'];this['element']['insertBefore'](_0x1a7c32['ui']['element'],this['element']['firstChild']),_0x1a7c32['model']['document']['on']('change',()=>this['value']=_0x1a7c32['getData']()),_0x1a7c32['bind']('placeholder')['to'](this),this['focusables']['add'](_0x1a7c32['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1d2829){-0x1===_0x1d2829?(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:_0x1eca3b}=this,_0x3dfb64=new _0x3b6043(_0x1eca3b);return _0x3dfb64['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3dfb64['withText']=!0x0,_0x3dfb64['bind']('label')['to'](this,'submitLabel'),_0x3dfb64['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3dfb64['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xa98671,_0x360874)=>!_0x360874&&!!_0xa98671['trim']()),_0x3dfb64;}['_createCancelButton'](){const {locale:_0x3d6294}=this,_0x47da09=new _0x3b6043(_0x3d6294);return _0x47da09['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x47da09['label']=E(_0x3d6294,'Cancel'),_0x47da09['withText']=!0x0,_0x47da09['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x47da09;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xb3a931=>{this['focusTracker']['add'](_0xb3a931['element']);}),this['focusables']['on']('change',(_0x3c0985,_0x201c35)=>{for(const _0x373cd1 of Array['from'](_0x201c35['added'])['reverse']())this['focusTracker']['add'](_0x373cd1['element']);});}}class ie extends kt{constructor(_0xe0edcd,_0x5e86a4,_0x590be4){super(_0xe0edcd),this['commentInputView']=new os(_0xe0edcd,_0x590be4),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2b59b2,_0x189c10)=>_0x2b59b2||!!_0x189c10),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 _0x4cdcc0(_0xe0edcd,_0x5e86a4),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'](_0x23dc01){this['commentInputView']['focus'](_0x23dc01);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x5c1e6f,_0x5ddc9f)=>{const {submitButtonView:_0x245a58,cancelButtonView:_0x3e7033,editor:_0x58938c}=this['commentInputView'];[_0x245a58['element'],_0x3e7033['element'],_0x58938c?_0x58938c['editing']['view']['getDomRoot']():null]['filter'](_0x2d46e6=>_0x2d46e6)['some'](_0x55eb36=>_0x55eb36['contains'](_0x5ddc9f['target']))||(this['focus'](),_0x5ddc9f['preventDefault']());});}}class cs extends kt{constructor(_0x2a9814){super(_0x2a9814);const _0x1689cb=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1689cb['to']('count',_0x1ef3c9=>E(_0x2a9814,'NUMBER_OF_COMMENTS',_0x1ef3c9))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x3a09de,_0x45229c,_0x5bd4a4){super(_0x3a09de);const _0x5e84c0=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x45229c['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x45229c,this['_config']=_0x5bd4a4,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0xa2a08e(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4869b6({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x15d131=>this['commentViews']['map'](_0xb14cd2=>_0xb14cd2['element'])['includes'](_0x15d131['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x3a09de),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x264ec8=>_0x264ec8-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5d6ad9 of _0x45229c['comments'])this['_handleNewCommentModel'](_0x5d6ad9);this['_handleInfoComment'](),this['listenTo'](_0x45229c['comments'],'add',(_0x5362a2,_0x5ae4f0)=>{const _0x2ce91a=this['_calculatePosition'](_0x5ae4f0);this['length']++,this['_handleNewCommentModel'](_0x5ae4f0,_0x2ce91a),this['refreshVisibleViews']();}),this['listenTo'](_0x45229c['comments'],'remove',(_0x39878c,_0x40a942)=>{this['length']--,this['_handleRemoveCommentModel'](_0x40a942),this['refreshVisibleViews']();}),this['listenTo'](_0x45229c,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x45229c,'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',_0x5e84c0['if']('length','ck-hidden',_0x1ca098=>!_0x1ca098)],'aria-label':E(_0x3a09de,'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'](_0x1946ff){-0x1===_0x1946ff?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x9567d2 of this['commentViews'])_0x9567d2['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1fe0c2,_0x48bff1){const _0x145e34=new this['_config']['CommentView'](this['locale'],_0x1fe0c2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x145e34['viewUid']=_0x1fe0c2['id'],_0x145e34['delegate']('removeComment')['to'](this),_0x145e34['delegate']('updateComment')['to'](this),_0x145e34['delegate']('resolveCommentThread')['to'](this),_0x145e34['delegate']('editorReady')['to'](this),_0x145e34['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x145e34,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x145e34,_0x48bff1);}['_calculatePosition'](_0x426bb8){const _0x11894e=this['_model']['_findOptimalIndex'](_0x426bb8);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x426bb8['authoredAt']?_0x11894e-0x1:_0x11894e:_0x11894e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x454dc1={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':E(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x454dc1,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x454dc1));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4b052d){const _0xbd13fa=this['commentViews']['remove'](_0x4b052d['id']);this['stopListening'](_0xbd13fa),_0xbd13fa['isEditMode']&&this['_updateHasDirtyComment'](),_0xbd13fa['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0xfab16f=>_0xfab16f['isEditMode']);}['_rearrangeCollapse'](){const _0x334bac=function(_0xcef491){const _0x1ab09c=new _0x4c2a37();for(const _0x32da5f of _0xcef491)_0x1ab09c['add'](_0x32da5f);return _0x1ab09c;}(this['commentViews']),_0x4cb938=this['_collapsedCommentsView']['count'];for(let _0x1ceb3d=0x1;_0x1ceb3d<=_0x4cb938;_0x1ceb3d++)_0x334bac['remove'](0x1);for(const _0x38ea51 of _0x334bac)_0x38ea51['collapse']();_0x4cb938>0x0&&_0x334bac['add'](this['_collapsedCommentsView'],0x1),ns(_0x371894(Array['from'](this['visibleViews']),Array['from'](_0x334bac)),this['visibleViews'],_0x334bac);}['_rearrangeExpand'](){ns(_0x371894(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x850fc4 of this['visibleViews'])_0x850fc4['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x26edf6=>{this['focusTracker']['add'](_0x26edf6['element']),this['keystrokes']['listenTo'](_0x26edf6['element']);}),this['commentViews']['on']('change',(_0x503d5c,_0x29d43a)=>{for(const _0x4a4ce2 of _0x29d43a['removed'])this['focusTracker']['remove'](_0x4a4ce2['element']),this['keystrokes']['stopListening'](_0x4a4ce2['element']);for(const _0x2afa84 of Array['from'](_0x29d43a['added'])['reverse']())this['focusTracker']['add'](_0x2afa84['element']),this['keystrokes']['listenTo'](_0x2afa84['element']);});}}function ns(_0x13c5c8,_0x96103b,_0x1e64b2){let _0x4a9f8c=0x0;for(const _0x127804 of _0x13c5c8)switch(_0x127804){case'insert':_0x96103b['add'](_0x1e64b2['get'](_0x4a9f8c),_0x4a9f8c),_0x4a9f8c++;break;case'delete':_0x96103b['remove'](_0x4a9f8c);break;case'equal':_0x4a9f8c++;}}class as extends kt{constructor(_0x425163){super(_0x425163);const _0x10162c=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x10162c['to']('contextValue',_0x128809=>E(_0x425163,'THREAD_CONTEXT_LABEL',_0x128809)),'tabindex':-0x1},'children':[{'text':_0x10162c['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x380af4,_0x25d7fc){super(_0x380af4);const _0x12a59b=this['bindTemplate'];this['_model']=_0x25d7fc,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0xa2a08e(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4869b6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x14aae8=>!!_0x14aae8),this['bind']('contextValue')['to'](this['_model'],'context',_0x1723c1=>_0x1723c1&&_0x1723c1['value']?this['_trimContextValue'](_0x1723c1['value']):E(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',_0x12a59b['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 _0x1827f5=new _0x3b6043(this['locale']);return _0x1827f5['label']=E(this['locale'],'Reopen'),_0x1827f5['tooltip']=E(this['locale'],'Reopen'),_0x1827f5['icon']=_0x283892,_0x1827f5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4ac16e=>!_0x4ac16e),_0x1827f5['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x246445,_0x126b8b)=>_0x246445&&_0x126b8b),_0x1827f5['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x1827f5;}['_trimContextValue'](_0x412298){if(_0x412298['length']<0x96)return _0x412298;const _0x263217=_0x412298['lastIndexOf']('\x20',0x93);return _0x412298['substring'](0x0,_0x263217>-0x1?_0x263217:0x93)+'...';}['_attachContextActions'](){const _0x1364b2=this['element']['querySelector']('.ck-context'),_0x103334=_0x1364b2['querySelector']('.ck-context__value');this['listenTo'](_0x1364b2,'mouseenter',()=>{_0x103334['offsetWidth']<_0x103334['scrollWidth']&&_0x1364b2['classList']['add']('overlay');}),this['listenTo'](_0x1364b2,'mouseleave',()=>{_0x1364b2['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x2dee57 of this['focusables'])this['focusTracker']['add'](_0x2dee57['element']),this['keystrokes']['listenTo'](_0x2dee57['element']);}['_createContextView'](){const _0x5dea62=new as(this['locale']);return _0x5dea62['bind']('contextValue')['to'](this),_0x5dea62;}}class ts extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x31c9eb,_0xd5c5da,_0x27ffd3,_0xebd87e){super(_0x31c9eb),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xd5c5da,this['_localUser']=_0x27ffd3,this['_config']=_0xebd87e,this['commentThreadHeaderView']=new Xt(_0x31c9eb,_0xd5c5da),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x31c9eb,E(_0x31c9eb,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x31c9eb,_0xd5c5da,Object['assign']({'CommentView':this['_config']['CommentView']},_0xebd87e)),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',(_0x98e873,_0x385170)=>_0x98e873||!!_0x385170),this['bind']('isUnlinked')['to'](_0xd5c5da,'unlinkedAt',_0x52b0f3=>!!_0x52b0f3),this['bind']('ariaLabel')['to'](this,'length',_0xc4c48b=>{const _0x327e05=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0xc4c48b,_0x327e05]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0xa2a08e(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4869b6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x440595=>_0x440595['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 _0xde1a9a=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x517bba=_0xde1a9a['commentInputView'];return _0xde1a9a['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x517bba,'value',(_0x4a6a1d,_0x1e0969,_0x3458e8,_0xd8a990,_0x28b5be)=>!!_0x28b5be||!!_0xd8a990&&_0x3458e8&&!_0x1e0969||_0x4a6a1d&&_0x3458e8&&!_0x1e0969),_0x517bba['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2ae582,_0xbbce1,_0x2e9a0c)=>{let _0x15de3e;return _0x15de3e=_0x2e9a0c&&_0xbbce1?'Reply\x20to\x20reopen\x20discussion...':_0x2ae582?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x15de3e);}),_0x517bba['bind']('submitLabel')['to'](this,'length',_0x4231fa=>E(this['locale'],_0x4231fa?'Reply':'Comment')),_0x517bba['on']('submit',(_0x47dced,_0x361fe9)=>{this['fire']('addComment',_0x361fe9),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x517bba['on']('cancel',()=>{this['focus']();}),_0x517bba['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x517bba['on']('cancel',_0x796170=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x796170['stop']());}),this['on']('change:isActive',(_0x5246f2,_0x1cd23f,_0x12d52f)=>{_0x12d52f||this['length']||_0x517bba['value']||this['fire']('removeCommentThread');}),_0xde1a9a;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(ts){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x439529,_0x1b4c93,_0x3956aa,_0x59961e){super(_0x439529,_0x1b4c93,_0x3956aa,_0x59961e),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x439529,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x488887,_0x11bd03,_0x54ee81)=>{_0x54ee81||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1df91b,_0x51d296,_0x7514c1)=>{_0x7514c1&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x4ba864=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x4ba864['if']('isActive','ck-thread--active'),_0x4ba864['if']('isUnlinked','ck-thread--unlinked'),_0x4ba864['if']('isConfirm','ck-thread--remove-confirmation'),_0x4ba864['to']('actionIndicator',_0x5d1940=>_0x5d1940?'ck-thread--'+_0x5d1940:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4ba864['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 _0x2e93fb of this['commentsListView']['commentViews'])_0x2e93fb['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0xc5d29a}=this,_0x3f22a9=this['commentsListView']['commentViews']['get'](0x0);_0x3f22a9===this['_boundFirstCommentView']||_0x3f22a9['isSystemComment']||(this['_boundFirstCommentView']=_0x3f22a9,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3f22a9,'actionIndicator',_0x182c5c=>'remove'===_0x182c5c?'remove':null),_0x3f22a9['placeholder']=E(_0xc5d29a,'Write\x20a\x20comment...'),_0x3f22a9['removeButton']['on']('execute',_0x343171=>{_0x343171['stop'](),this['showConfirm'](E(_0xc5d29a,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3f22a9['focus']();}),_0x3f22a9['actionBar']['add'](this['resolveButton'],0x0),_0x3f22a9['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x150d5d=new _0x2d768e(this['locale']);return _0x150d5d['label']=E(this['locale'],'Resolve'),_0x150d5d['tooltip']=E(this['locale'],'Resolve'),_0x150d5d['icon']=_0x20134b,_0x150d5d['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x150d5d['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3f1691=>!_0x3f1691),_0x150d5d['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x26547f,_0xb4e462)=>_0x26547f&&!_0xb4e462),_0x150d5d['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x150d5d;}['_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 es extends kt{constructor(_0x5638e4){super(_0x5638e4),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x19bcb0,_0x49a874,_0x4182a6)=>{this['element']['innerHTML']=_0x4182a6;}),this['element']['innerHTML']=this['content'];}}class hs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4c9dc1,_0x1228ea,_0x566df4){super(_0x4c9dc1),this['_model']=_0x1228ea,this['_config']=_0x566df4,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x1228ea,'content',_0x1228ea,'authoredAt',(_0x1867c5,_0x11e7f8)=>E(_0x4c9dc1,'COMMENT_ARIA_LABEL',[_0x1228ea['author']['name'],_0x566df4['formatDateTime'](_0x11e7f8),new DOMParser()['parseFromString'](_0x1867c5,'text/html')['body']['textContent'],_0x1228ea['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x4c9dc1,E(_0x4c9dc1,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x516608(),this['focusTracker']=new _0xa2a08e(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4869b6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5ae612=>_0x5ae612['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']?E(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):E(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?E(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):E(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x4ef043=new es(this['locale']);return _0x4ef043['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1ec0c9,_0x383a90)=>_0x383a90?_0x274b93(_0x1ec0c9,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1ec0c9),_0x4ef043;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x397d1e=new os(this['locale'],this['_config']['editorConfig']);return _0x397d1e['value']=this['_model']['content'],_0x397d1e['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x397d1e['submitLabel']=E(this['locale'],'Save'),_0x397d1e['on']('submit',(_0xb507d8,_0x5b2ff9)=>{this['fire']('updateComment',this['_model']['id'],_0x5b2ff9),this['switchToDisplayMode'](),this['focus']();}),_0x397d1e['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x397d1e['once']('editorReady',()=>{_0x397d1e['focus']();}),_0x397d1e['createEditor'](),_0x397d1e['delegate']('editorReady')['to'](this),_0x397d1e['delegate']('editorDestroyed')['to'](this),_0x397d1e;}['_setupKeyboardNavigation'](){const _0x364b8b=this['element'];this['keystrokes']['listenTo'](_0x364b8b);for(const _0x559150 of this['focusables'])this['focusTracker']['add'](_0x559150['element']),this['keystrokes']['listenTo'](_0x559150['element']);this['focusables']['on']('change',(_0x48681b,_0x2f224d)=>{for(const _0x375311 of _0x2f224d['removed'])this['focusTracker']['remove'](_0x375311['element']),this['keystrokes']['stopListening'](_0x375311['element']);for(const _0x5e356f of _0x2f224d['added'])this['focusTracker']['add'](_0x5e356f['element']),this['keystrokes']['listenTo'](_0x5e356f['element']);}),this['keystrokes']['set']('enter',(_0x4e307b,_0x4a1bd)=>{_0x364b8b===_0x4e307b['target']&&(this['focusCycler']['focusFirst'](),_0x4a1bd());}),this['keystrokes']['set']('esc',(_0x59b6f4,_0x244fc6)=>{_0x364b8b!==_0x59b6f4['target']&&(this['focus'](),_0x244fc6());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(hs){['actionBar'];['userView'];constructor(_0x17055c,_0x4c88ab,_0x41f2e8){super(_0x17055c,_0x4c88ab,_0x41f2e8),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x17055c,'Reply...')),this['bind']('authoredAt')['to'](_0x4c88ab),this['bind']('resolvedAt')['to'](_0x4c88ab),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 _0x4cdcc0(_0x17055c,_0x4c88ab['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x4c88ab,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x173dee=this['bindTemplate'],_0x503778=[{'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':_0x173dee['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x173dee['to']('authoredAt',_0x309853=>this['_config']['formatDateTime'](_0x309853))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x173dee['if']('isEditMode','ck-comment__actions--hidden'),_0x173dee['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']&&_0x503778['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x173dee['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x173dee['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x173dee['if']('isEditMode','ck-comment--edit'),_0x173dee['if']('isSystemComment','ck-comment--info'),_0x173dee['to']('actionIndicator',_0x2ec2a8=>_0x2ec2a8?'ck-comment--'+_0x2ec2a8:'')],'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':_0x503778}]}]};}['_createEditButton'](){const _0x1e2874=new _0x3b6043(this['locale']);return _0x1e2874['label']=E(this['locale'],'Edit'),_0x1e2874['icon']=_0xb739e5,_0x1e2874['withText']=!0x0,_0x1e2874['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1e2874['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x33b912=>!_0x33b912),_0x1e2874['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1e2874['on']('execute',()=>this['switchToEditMode']()),_0x1e2874;}['_createRemoveButton'](){const _0x1e119e=new _0x3b6043(this['locale']);return _0x1e119e['label']=E(this['locale'],'Remove'),_0x1e119e['icon']=_0x2d7484,_0x1e119e['withText']=!0x0,_0x1e119e['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x1e119e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4b8b36=>!_0x4b8b36),_0x1e119e['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x1e119e['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x1e119e;}['_createDropdown'](){const _0x4e5c02=_0x227181(this['locale'],_0x4b3840),_0x4ce0d0=_0x4e5c02['panelView']['children'],_0x16dc7c=new _0x1ab736(this['locale']),_0x3959ee=_0x4e5c02['bindTemplate'];_0x2847d6(_0x4e5c02,()=>this['items']['find'](_0x426721=>_0x426721['isVisible'])),_0x4e5c02['extendTemplate']({'attributes':{'class':[_0x3959ee['if']('isVisible','ck-hidden',_0xc19f26=>!_0xc19f26)]}});const _0x35f4da=(_0x51bcae,_0xb90e6a=-0x1)=>{const _0x58cb0f=new _0x3463aa(this['locale']);_0x58cb0f['children']['add'](_0x51bcae);const _0x486c7b=_0xb90e6a>-0x1?_0xb90e6a:_0x16dc7c['items']['length'];_0x16dc7c['items']['add'](_0x58cb0f,_0x486c7b);const _0x240236=Array['from'](this['items']);_0x4e5c02['unbind']('isEnabled','isVisible'),_0x4e5c02['bind']('isEnabled')['toMany'](_0x240236,'isEnabled',(..._0x23ea05)=>_0x23ea05['some'](_0x47431f=>_0x47431f)),_0x4e5c02['bind']('isVisible')['toMany'](_0x240236,'isVisible',(..._0x13a84d)=>_0x13a84d['some'](_0x40e962=>_0x40e962));};_0x4e5c02['panelPosition']='sw',_0x4e5c02['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x42dff5});for(const _0x234afb of this['items'])_0x35f4da(_0x234afb);return _0x4ce0d0['add'](_0x16dc7c),_0x4e5c02['listenTo'](this['items'],'add',(_0x2877f0,_0x38ff92,_0x5657de)=>{_0x35f4da(_0x38ff92,_0x5657de);}),_0x4e5c02['listenTo'](this['items'],'remove',(_0x2ab490,_0x1a0e68,_0x969751)=>{_0x16dc7c['items']['remove'](_0x969751);}),_0x4e5c02;}['_attachActions'](_0x27b17e,_0x286aad){const _0x4da080=_0x27b17e&&_0x27b17e['element'];_0x4da080&&(this['listenTo'](_0x4da080,'mouseenter',()=>this['actionIndicator']=_0x286aad),this['listenTo'](_0x4da080,'focus',()=>this['actionIndicator']=_0x286aad),this['listenTo'](_0x4da080,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4da080,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x13ba9b=super['_createCommentInputView']();return _0x13ba9b['bind']('placeholder')['to'](this),_0x13ba9b;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0xd95c3b){const _0x1b80e8=Dt(_0xd95c3b,0x1e),_0x44b6f6=new MutationObserver(_0x5c77dd=>{for(const _0x440bb9 of _0x5c77dd)('attributes'==_0x440bb9['type']&&'class'==_0x440bb9['attributeName']||'childList'==_0x440bb9['type']||'characterData'==_0x440bb9['type'])&&_0x1b80e8();});return{'attach'(_0x23791e){_0x44b6f6['observe'](_0x23791e,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x44b6f6['disconnect'](),_0x1b80e8['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x216877,_0x20baa2){super(_0x216877),this['id']=_0x529d92(),this['focusTracker']=new _0xa2a08e(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x31630c,_0x37e33e)=>this['fire']('Esc',_0x37e33e)),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']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x20baa2),this['mainView']=_0x20baa2;const _0x36c1f7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x36c1f7['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 _0x883bc1=this['element']['clientHeight'];_0x883bc1&&(this['height']=_0x883bc1);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x47af62(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x118655,target:_0x13f171,type:_0x2a02ed,isVisible:_0x147dd8=!0x0}){super(),this['view']=_0x118655,this['view']['element']||this['view']['render'](),this['_type']=_0x2a02ed,this['_target']=_0x13f171,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x4c2a37([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x5ab90b,_0x1d0c97)=>{this['view']['focusTracker']['add'](_0x1d0c97);}),this['focusableElements']['on']('remove',(_0x514d6d,_0x2099ad)=>{this['view']['focusTracker']['remove'](_0x2099ad);}),this['set']('isVisible',_0x147dd8);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x2e9697=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x2e9697),_0x2e9697;}get['targetRect'](){const _0x1355c2=this['target'];if(null===_0x1355c2)return null;if(_0x1355c2 instanceof _0x487b14)return _0x1355c2;const _0x56c48f=_0x1355c2['filter'](_0x1aa558=>function(_0x4063bf){const _0x521f9b=_0x4063bf['offsetParent'];if(_0x521f9b)return!0x0;const _0xc121a8=_0x4063bf['getClientRects']()['item'](0x0);return!!_0xc121a8;}(_0x1aa558));return 0x0===_0x56c48f['length']?null:new _0x487b14(_0x56c48f[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x30fdfc){this['view']['isActive']=_0x30fdfc,this['view']['mainView']['isActive']=_0x30fdfc;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x57a65c){if(!(null===_0x57a65c||_0x57a65c instanceof _0x487b14||Array['isArray'](_0x57a65c)&&_0x57a65c['every'](_0x134fc7=>li(_0x134fc7))))throw new _0x336dea('annotation-invalid-target',null,{'target':_0x57a65c});}['_getNormalizedTarget'](){const _0x191521='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x191521)?[_0x191521]:_0x191521;}}function li(_0x3940b1){return null!==_0x3940b1&&'object'==typeof _0x3940b1&&'nodeType'in _0x3940b1&&0x1===_0x3940b1['nodeType'];}class _ extends _0x4c2a37{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4e8d8a=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0xa2a08e(),this['_focusTracker']['on']('change:isFocused',(_0x1f8b14,_0xce605b,_0x33867a)=>{_0x33867a||this['fire']('blur');});for(const _0x275aa6 of _0x4e8d8a)this['add'](_0x275aa6);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x1da1e3){if(this['has'](_0x1da1e3))throw new _0x336dea('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x1da1e3['innerView'],_0x1da1e3),this['_viewToAnnotation']['set'](_0x1da1e3['view'],_0x1da1e3);for(const _0x515d8e of _0x1da1e3['focusableElements'])this['_focusTracker']['add'](_0x515d8e);this['listenTo'](_0x1da1e3['focusableElements'],'add',(_0x1626ef,_0x14b21e)=>{this['_focusTracker']['add'](_0x14b21e);}),this['listenTo'](_0x1da1e3['focusableElements'],'remove',(_0x381c5c,_0x54533f)=>{this['_focusTracker']['remove'](_0x54533f);}),this['listenTo'](_0x1da1e3['view']['focusTracker'],'change:isFocused',(_0x1fe735,_0x3d9fa6,_0x2b9727)=>{_0x2b9727&&this['fire']('focus',_0x1da1e3);}),_0x1da1e3['updateTargetRect']();const _0x3e47fe=this['_getOrderInContent'](_0x1da1e3['view']['targetRect']);return super['add'](_0x1da1e3,_0x3e47fe);}['remove'](_0x1e4fee){if(!this['has'](_0x1e4fee))throw new _0x336dea('annotationcollection-not-existing-item',null);this['stopListening'](_0x1e4fee['view']['focusTracker']),this['stopListening'](_0x1e4fee['focusableElements']);for(const _0x59244b of _0x1e4fee['focusableElements'])this['_focusTracker']['remove'](_0x59244b);return this['_viewToAnnotation']['delete'](_0x1e4fee['view']),this['_innerViewToAnnotation']['delete'](_0x1e4fee['innerView']),super['remove'](_0x1e4fee);}['getByInnerView'](_0x35d477){return this['_innerViewToAnnotation']['get'](_0x35d477);}['getByView'](_0xcebc01){return this['_viewToAnnotation']['get'](_0xcebc01);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2f300a of this)_0x2f300a['updateTargetRect']();this['_sort']();}['_sort'](){const _0x597b01=Array['from'](this)['sort']((_0x3eb922,_0x54ed15)=>v(_0x3eb922['view']['targetRect'],_0x54ed15['view']['targetRect']));for(let _0x51dd0d=_0x597b01['length']-0x1;_0x51dd0d>0x0;_0x51dd0d--){const _0x1d160c=_0x597b01[_0x51dd0d];_0x51dd0d!==this['getIndex'](_0x1d160c)&&(this['remove'](_0x1d160c),this['add'](_0x1d160c));}}['_getOrderInContent'](_0x29d572){let _0xc74ba3=0x0;if(!_0x29d572)return this['length'];for(const _0x198921 of this){const _0x421e90=_0x198921['view']['targetRect'];if(_0x421e90){if(v(_0x29d572,_0x421e90)<0x0)return _0xc74ba3;_0xc74ba3++;}}return _0xc74ba3;}}function v(_0x369d12,_0x5c9899){if(null===_0x369d12&&null===_0x5c9899)return 0x0;if(null===_0x369d12)return-0x1;if(null===_0x5c9899)return 0x1;const _0x32a8a7=_0x369d12['top']-_0x5c9899['top'];return 0x0==_0x32a8a7?_0x369d12['left']-_0x5c9899['left']:_0x32a8a7;}class O extends _0x119d87{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc9aca3){if(super(_0xc9aca3),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0xc9aca3 instanceof _0x206de1){const _0x4d1b51=_0xc9aca3['locale'];_0xc9aca3['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x4d1b51,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x4d1b51,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x4d1b51,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x4d1b51,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x4d1b51,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x4d1b51,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x4d1b51,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x14ab1f){this['collection']['add'](_0x14ab1f);}['remove'](_0x187ff2){this['collection']['remove'](_0x187ff2),_0x187ff2['destroy']();}['refreshVisibility'](){for(const _0x3a25c7 of this['collection'])_0x3a25c7['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x4434e4){return this['collection']['getByInnerView'](_0x4434e4);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x144142 of this['collection'])_0x144142['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2a1e9c){this['fire']('_activateAnnotation',_0x2a1e9c);}['createAnnotation'](_0x3d81f0){return new d(_0x3d81f0);}['createAnnotationView'](_0x472945,_0x49dbb0){return new S(_0x472945,_0x49dbb0);}['_addActiveAnnotation'](_0x5bae21){const _0x59c813=new Set(this['activeAnnotations']);_0x59c813['add'](_0x5bae21),this['activeAnnotations']=_0x59c813;}['_removeActiveAnnotation'](_0x3404db){const _0x1690a1=new Set(this['activeAnnotations']);_0x1690a1['delete'](_0x3404db),this['activeAnnotations']=_0x1690a1;}['_bindAnnotationsToVisibleAnnotations'](){const _0xbb5a7=this['collection'],_0x4ee9ac=this['_visibleAnnotations'];function _0x3bbbd(_0x3b800a){const _0x323546=_0x3b800a['source'];_0x323546['isVisible']&&!_0x4ee9ac['has'](_0x323546)?_0x4ee9ac['add'](_0x323546):!_0x323546['isVisible']&&_0x4ee9ac['has'](_0x323546)&&_0x4ee9ac['remove'](_0x323546),_0x323546['view']['focusTracker']['remove'](_0x323546['view']['element']),_0x323546['view']['focusTracker']['add'](_0x323546['view']['element']);}this['listenTo'](_0xbb5a7,'add',(_0x340e28,_0x450339)=>{_0x450339['isVisible']&&_0x4ee9ac['add'](_0x450339),this['listenTo'](_0x450339,'change:isVisible',_0x3bbbd);}),this['listenTo'](_0xbb5a7,'remove',(_0x4ab300,_0x41df25)=>{_0x4ee9ac['has'](_0x41df25)&&_0x4ee9ac['remove'](_0x41df25),this['stopListening'](_0x41df25,'change:isVisible',_0x3bbbd);});}['_setupEnterAnnotationKeystroke'](){const _0x3a08c9=_0x3e662b=>{_0x3e662b['on']('ready',()=>{_0x3e662b['keystrokes']['set'](_0x307cec,(_0x4c4622,_0x52b12d)=>{const _0x378638=_0x38c3de(this['activeAnnotations']['values']());_0x378638&&(_0x378638['view']['focus'](),_0x52b12d());});});};this['context']instanceof _0x206de1?_0x3a08c9(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x5284d3,_0x4edeaa)=>{_0x3a08c9(_0x4edeaa);});}['_setupEscapeAnnotationHandling'](){const _0x180d04=_0x31e7e7=>{const _0x29ebb8=_0x31e7e7['source'],_0x37f2ea=[];let _0x5c24a1;if(Array['isArray'](_0x29ebb8['target'])){_0x5c24a1=_0x29ebb8['target'][0x0],this['context']instanceof _0x206de1?_0x37f2ea['push'](this['context']):this['context']['editors']&&_0x37f2ea['push'](...this['context']['editors']);for(const _0x18dd1a of _0x37f2ea)for(const _0x1d77ff of _0x18dd1a['editing']['view']['domRoots']['values']())if(_0x1d77ff['contains'](_0x5c24a1))return void _0x18dd1a['editing']['view']['focus']();_0x5c24a1['focus']();}};this['listenTo'](this['collection'],'add',(_0x4bce92,_0x5b7132)=>{this['listenTo'](_0x5b7132,'escape',_0x180d04,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x257351,_0x1c93db)=>{this['stopListening'](_0x1c93db,'escape',_0x180d04);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x119d87{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[O,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1987fe){super(_0x1987fe),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x214a01=this['context']['config'];_0x214a01['define']('comments.maxCommentsWhenCollapsed',0x2),_0x214a01['define']('comments.maxThreadTotalWeight',0x1f4),_0x214a01['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x214a01['define']('comments.CommentThreadView',vt),_0x214a01['define']('comments.CommentView',gt),_0x214a01['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3efbbf=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x20c887,_0x5a47d2)=>this['_addCommentThread'](_0x5a47d2)),this['on']('submitCommentThread',(_0x449b9e,_0x1be2d6)=>this['_submitCommentThread'](_0x1be2d6)),this['on']('resolveCommentThread',(_0x27d658,_0x57e31a)=>this['_resolveCommentThread'](_0x57e31a)),this['on']('resolveCommentThread',(_0x4c2bf1,_0x149343)=>this['_updateActiveAnnotation'](_0x149343),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x590243,_0x3258ee)=>this['_reopenCommentThread'](_0x3258ee)),this['on']('reopenCommentThread',(_0xf879ba,_0x5577a9)=>this['_updateActiveAnnotation'](_0x5577a9),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3e1ef5,_0x1500e7)=>this['_removeCommentThread'](_0x1500e7)),this['on']('updateCommentThread',(_0x31466e,_0x1159e8)=>this['_updateCommentThread'](_0x1159e8)),this['on']('updateCommentThread',(_0x570e0b,_0x2ee7fe)=>this['_updateActiveAnnotation'](_0x2ee7fe),{'priority':'lowest'}),this['on']('addComment',(_0x178318,_0x3e00ad)=>this['_addComment'](_0x3e00ad)),this['on']('updateComment',(_0x1a0cf7,_0x10ee3f)=>this['_updateComment'](_0x10ee3f)),this['on']('removeComment',(_0x2b214f,_0x5e5657)=>this['_removeComment'](_0x5e5657)),this['on']('addComment',(_0x4d2a24,{threadId:_0x1daeca,isFromAdapter:_0x4b4753})=>{if(_0x4b4753)return;const _0x416492=this['getCommentThread'](_0x1daeca),_0x2b2fbb=_0x416492&&this['_threadToController']['get'](_0x416492);_0x2b2fbb&&_0x2b2fbb['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3efbbf,'change:activeAnnotations',(_0xdd2a61,_0x5b92ef,_0x57b45b)=>{const _0x5a2c63=Array['from'](_0x57b45b)['map'](_0x149466=>this['_viewToController']['get'](_0x149466['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5a2c63?_0x5a2c63['model']:null;});}set['adapter'](_0x3256ae){if(this['_adapter'])throw new _0x336dea('commentsrepository-adapter-already-set');this['_adapter']=_0x3256ae;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x8cba71=Tt,threadId:_0x5c3c55=_0x529d92(),comments:_0xe70dde=[],unlinkedAt:_0x1b52fc=null,resolvedAt:_0x3ff573=null,resolvedBy:_0x4416c7=null,target:_0x13c638=null,context:_0xfaca66=null,attributes:_0x122d39={},isResolvable:_0x4c0c5e=!0x0,isSubmitted:_0x250fec=!0x1,isFromAdapter:_0x34c483=!0x1}={}){return this['fire'](bt('addCommentThread',_0x8cba71),{'channelId':_0x8cba71,'threadId':_0x5c3c55,'comments':_0xe70dde,'unlinkedAt':_0x1b52fc,'resolvedAt':_0x3ff573,'resolvedBy':_0x4416c7,'target':_0x13c638,'context':_0xfaca66,'attributes':_0x122d39,'isFromAdapter':_0x34c483,'isResolvable':_0x4c0c5e,'isSubmitted':_0x250fec}),this['getCommentThread'](_0x5c3c55);}['openNewCommentThread']({channelId:_0x496d12=Tt,threadId:_0x513857=_0x529d92(),target:_0x4863df,context:_0x1b2ad9=null,isResolvable:_0x25e0ee=!0x0}){if(this['_readOnlyChannels']['has'](_0x496d12)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4863df)throw new _0x336dea('commentsrepository-missing-target');const _0x2f67cf=this['addCommentThread']({'channelId':_0x496d12,'threadId':_0x513857,'target':_0x4863df,'context':_0x1b2ad9,'isResolvable':_0x25e0ee});if(!_0x2f67cf)return null;const _0x2fca74=this['_threadToController']['get'](_0x2f67cf),_0x59e8c9=_0x2fca74['view']['commentThreadInputView']['commentInputView'],_0x24dabb=this['context']['plugins']['get'](O),_0x2cc7d1=_0x24dabb['getByInnerView'](_0x2fca74['view']);return _0x24dabb['activate'](_0x2cc7d1),_0x59e8c9['once']('editorReady',()=>_0x59e8c9['focus']()),_0x2f67cf;}['hasCommentThread'](_0x227a5c){if('string'!=typeof _0x227a5c)throw new _0x336dea('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x227a5c);}['updateCommentThread']({channelId:_0x3f2171=Tt,threadId:_0x4b8a9d,context:_0x560736,unlinkedAt:_0x2fce38,attributes:_0x1cb81b,isFromAdapter:_0x154d9c=!0x1}){return this['fire'](bt('updateCommentThread',_0x3f2171),{'channelId':_0x3f2171,'threadId':_0x4b8a9d,'context':_0x560736,'unlinkedAt':_0x2fce38,'attributes':_0x1cb81b,'isFromAdapter':_0x154d9c}),this['getCommentThread'](_0x4b8a9d);}['getCommentThread'](_0x5b81b5){if('string'!=typeof _0x5b81b5)throw new _0x336dea('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x5b81b5);}['fetchCommentThread']({channelId:_0x240c26,threadId:_0x292b69}={}){const _0x3e642d=this['getCommentThread'](_0x292b69);if(_0x3e642d)return Promise['resolve'](_0x3e642d);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x336dea('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x240c26,'threadId':_0x292b69})['then'](_0x45d271=>this['hasCommentThread'](_0x292b69)?this['getCommentThread'](_0x292b69):_0x45d271?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x240c26},_0x45d271)):void 0x0)['catch'](_0x4e0ee9=>{throw console['error'](_0x4e0ee9),new _0x336dea('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0xfcdb3b,skipNotAttached:_0x3b9941=!0x1,skipEmpty:_0x4ee09=!0x1,toJSON:_0x41f199=!0x1}={}){const _0x4747fc=[];for(const _0x2294a2 of this['_threads']['values']())_0xfcdb3b&&_0x2294a2['channelId']!==_0xfcdb3b||_0x3b9941&&!_0x2294a2['isAttached']||_0x4ee09&&0x0===_0x2294a2['length']||_0x4747fc['push'](_0x2294a2);return _0x41f199?_0x4747fc['map'](_0x365f95=>_0x365f95['toJSON']()):_0x4747fc;}['setActiveCommentThread'](_0x3b90ac){const _0x3fdc5d=this['context']['plugins']['get'](O);if(!_0x3b90ac)return void(this['activeCommentThread']&&_0x3fdc5d['deactivateAll']());const _0x4dec25=this['getCommentThread'](_0x3b90ac);if(!_0x4dec25)throw new _0x336dea('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3b90ac});if(!this['_threadToController']['has'](_0x4dec25))throw new _0x336dea('commentsrepository-active-not-attached',null,{'threadId':_0x3b90ac});const _0xcda18c=_0x3fdc5d['getByInnerView'](this['_threadToController']['get'](_0x4dec25)['view']);_0x3fdc5d['activate'](_0xcda18c);}['switchReadOnly'](_0x26a688,_0x47f6fe){_0x26a688?this['_readOnlyChannels']['add'](_0x47f6fe):this['_readOnlyChannels']['delete'](_0x47f6fe),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1a3732){return this['_readOnlyChannels']['has'](_0x1a3732)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x1dc5a2,_0x599c4f){return new Ct(_0x1dc5a2,_0x599c4f);}['setPermissions'](_0x268403,_0x1dd21d=Tt){this['_permissions']['set'](_0x1dd21d,_0x268403),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x545a38=Tt){return this['_permissions']['has'](_0x545a38)?this['_permissions']['get'](_0x545a38):_t;}['_addCommentThread']({channelId:_0x30fb2c,threadId:_0x1130c3,comments:_0x3586c4,unlinkedAt:_0x5570fa,resolvedAt:_0x3fbc56,resolvedBy:_0xa8f41d,target:_0x22fdf9,context:_0x506c3b,attributes:_0x12d6d7,isFromAdapter:_0x359a73,isResolvable:_0x17bcdf,isSubmitted:_0x31c0e9}){if('string'!=typeof _0x1130c3)throw new _0x336dea('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1130c3});if(this['hasCommentThread'](_0x1130c3))throw new _0x336dea('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x1130c3});const _0x1f359b=new ui(this,{'channelId':_0x30fb2c,'id':_0x1130c3,'context':_0x506c3b,'attributes':_0x12d6d7,'unlinkedAt':_0x5570fa,'resolvedAt':_0x3fbc56,'resolvedBy':_0xa8f41d?this['context']['plugins']['get'](it)['getUser'](_0xa8f41d):null,'isResolvable':_0x17bcdf,'isSubmitted':_0x31c0e9||_0x359a73});this['_threads']['set'](_0x1130c3,_0x1f359b);for(const _0x3f6fc1 of _0x3586c4)_0x1f359b['_add'](this['_createNewComment']({'threadId':_0x1130c3,..._0x3f6fc1}));return _0x22fdf9&&_0x1f359b['attachTo'](_0x22fdf9),_0x359a73||!_0x1f359b['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x30fb2c,'threadId':_0x1130c3});}['_submitCommentThread']({channelId:_0xc10e91,threadId:_0x5b8393}){if(!this['hasCommentThread'](_0x5b8393))throw new _0x336dea('commentsrepository-missing-comment-thread',this);const _0x4c2103=this['getCommentThread'](_0x5b8393);if(_0x4c2103['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x153977,comments:_0x5a780d,resolvedAt:_0x1bab1b,resolvedBy:_0x363df6,context:_0x524421,attributes:_0x274c31}=_0x4c2103,_0x3acdfc=this['context']['plugins']['get']('PendingActions'),_0x434bdc=_0x3acdfc['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xc10e91,'threadId':_0x153977,'comments':_0x5a780d['map'](_0x360d0b=>_0x360d0b['toJSON']()),'resolvedAt':_0x1bab1b,'resolvedBy':_0x363df6?_0x363df6['id']:_0x363df6,'context':_0x524421,'attributes':_0x274c31})['then'](({comments:_0x3ec175})=>{_0x3acdfc['remove'](_0x434bdc);for(const _0x54ee8e of _0x3ec175)this['_updateComment']({'channelId':_0xc10e91,'threadId':_0x5b8393,'commentId':_0x54ee8e['commentId'],'createdAt':_0x54ee8e['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x244564=>{throw console['error'](_0x244564),new _0x336dea('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x37dfb5,target:_0x4242ac}){const _0xb4188c=this['getCommentThread'](_0x37dfb5);if(!_0xb4188c)throw new _0x336dea('commentsrepository-attach-missing-comment-thread',this);const _0x22d31e=this['context']['plugins']['get']('PendingActions'),_0x4a6553=this['context']['plugins']['get'](O),_0x57f276=this['_createCommentThreadView'](_0xb4188c),_0x3546a8=new Ct(_0xb4188c,_0x57f276);let _0x40a9a3=null;_0x57f276['on']('change:isDirty',(_0x47780f,_0x2cc164,_0x43d879)=>{_0x43d879?_0x40a9a3=_0x22d31e['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x40a9a3&&(_0x22d31e['remove'](_0x40a9a3),_0x40a9a3=null);}),this['_threadToController']['set'](_0xb4188c,_0x3546a8),this['_viewToController']['set'](_0x57f276,_0x3546a8);const _0x2f0bf6=new S(this['context']['locale'],_0x57f276);_0x2f0bf6['bind']('length')['to'](_0x57f276),_0x2f0bf6['bind']('isDirty')['to'](_0x57f276,'isDirty',_0x57f276,'length',(_0x2a9d12,_0x553ae5)=>_0x2a9d12||!_0x553ae5),_0x2f0bf6['bind']('isActive')['to'](_0x57f276),_0x2f0bf6['type']='comment';const _0x4a8cd2=new d({'view':_0x2f0bf6,'target':_0x4242ac,'type':'comment','isVisible':!_0xb4188c['archivedAt']});return _0x57f276['on']('escape',()=>{_0x4a8cd2['fire']('escape');}),this['_bindAnnotationToEditors'](_0x57f276,_0x4a8cd2),_0x4a6553['add'](_0x4a8cd2),_0x4a8cd2;}['_bindAnnotationToEditors'](_0x452bd1,_0x308664){this['listenTo'](_0x452bd1,'editorReady',(_0x425d8b,_0x1d4bb7)=>{const _0x3443fa=_0x1d4bb7['ui']['view']['body']['bodyCollectionContainer'];_0x308664['focusableElements']['add'](_0x3443fa),this['context']instanceof _0x206de1&&this['context']['ui']['focusTracker']['add'](_0x3443fa);},{'priority':'highest'}),this['listenTo'](_0x452bd1,'editorDestroyed',(_0x2623fe,_0x14e3b6)=>{const _0x55f69e=_0x14e3b6['ui']['view']['body']['bodyCollectionContainer'];_0x308664['focusableElements']['has'](_0x55f69e)&&_0x308664['focusableElements']['remove'](_0x55f69e),this['context']instanceof _0x206de1&&this['context']['ui']['focusTracker']['remove'](_0x55f69e);});}['_unbindEditors'](_0x3d5daf){this['stopListening'](_0x3d5daf,'editorReady'),this['stopListening'](_0x3d5daf,'editorDestroyed');}['_createCommentThreadView'](_0x3236c1){const _0x53faa3=this['context']['plugins']['get'](it),{config:_0x2de7d6,locale:_0x30e4ff}=this['context'],_0x4ce166=lt(_0x2de7d6['get']('locale'),_0x30e4ff);return new(0x0,(_0x2de7d6['get']('comments'))['CommentThreadView'])(_0x30e4ff,_0x3236c1,_0x53faa3['me'],{'editorConfig':{..._0x2de7d6['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x2de7d6['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x2de7d6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2de7d6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2de7d6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4ce166,'CommentView':_0x2de7d6['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x56d41d,channelId:_0x495f21,resolvedAt:_0x5515e6,resolvedBy:_0x4d03be,isFromAdapter:_0x324052}){if(!this['hasCommentThread'](_0x56d41d))throw new _0x336dea('commentsrepository-missing-comment-thread',null,{'threadId':_0x56d41d});const _0x564656=this['getCommentThread'](_0x56d41d);if(_0x564656['isResolved'])throw new _0x336dea('commentsrepository-resolved-comment-thread',null,{'threadId':_0x56d41d});const _0x273f56=this['context']['plugins']['get'](it);if(_0x564656['resolvedBy']=_0x273f56['getUser'](_0x4d03be),_0x564656['resolvedAt']=_0x5515e6,_0x324052||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x35a3c6=this['context']['plugins']['get']('PendingActions'),_0x3751b7=_0x35a3c6['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x495f21,'threadId':_0x56d41d})['then'](({resolvedAt:_0x1da05c,resolvedBy:_0x202508})=>{_0x35a3c6['remove'](_0x3751b7),_0x564656['resolvedBy']['id']!==_0x202508&&(_0x564656['resolvedBy']=_0x273f56['getUser'](_0x202508)),_0x564656['resolvedAt']=_0x1da05c;})['catch'](_0x31d99a=>{throw console['error'](_0x31d99a),new _0x336dea('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x483b75,channelId:_0x1ea783,isFromAdapter:_0x2fd572}){if(!this['hasCommentThread'](_0x483b75))throw new _0x336dea('commentsrepository-missing-comment-thread',null,{'threadId':_0x483b75});const _0x278a7a=this['getCommentThread'](_0x483b75);if(!_0x278a7a['isResolved'])throw new _0x336dea('commentsrepository-reopen-comment-thread',null,{'threadId':_0x483b75});if(_0x278a7a['resolvedBy']=null,_0x278a7a['resolvedAt']=null,_0x2fd572||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x19b4ca=this['context']['plugins']['get']('PendingActions'),_0x29cd5c=_0x19b4ca['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x1ea783,'threadId':_0x483b75})['then'](()=>_0x19b4ca['remove'](_0x29cd5c))['catch'](_0x147657=>{throw console['error'](_0x147657),new _0x336dea('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5d95ca,isFromAdapter:_0x324cfc}){const _0x2c7e7c=this['getCommentThread'](_0x5d95ca);if(!_0x2c7e7c)throw new _0x336dea('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5d95ca),this['_threads']['delete'](_0x5d95ca),!_0x2c7e7c['isSubmitted']||_0x324cfc||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x434e0b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2e5b69}=_0x2c7e7c,_0x2a63bd=_0x434e0b['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x2e5b69,'threadId':_0x5d95ca})['then'](()=>_0x434e0b['remove'](_0x2a63bd))['catch'](_0x4c9bb8=>{throw console['error'](_0x4c9bb8),new _0x336dea('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x23f676,unlinkedAt:_0x41abf9,context:_0x2311b7,attributes:_0x41d5d9,isFromAdapter:_0x5a8b5d}){if('string'!=typeof _0x23f676)throw new _0x336dea('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x23f676});if(!this['hasCommentThread'](_0x23f676))throw new _0x336dea('commentsrepository-missing-comment-thread',null,{'threadId':_0x23f676});const _0x87fa16=this['getCommentThread'](_0x23f676);let _0xb08b5f=!0x1;if(void 0x0!==_0x2311b7&&_0x87fa16['context']!==_0x2311b7&&(_0x87fa16['context']=_0x2311b7,_0xb08b5f=!0x0),void 0x0!==_0x41abf9&&_0x87fa16['unlinkedAt']!==_0x41abf9&&(_0x87fa16['unlinkedAt']=_0x41abf9,_0xb08b5f=!0x0),_0x41d5d9&&!wt(_0x41d5d9,_0x87fa16['attributes'])&&(_0x87fa16['attributes']=_0x41d5d9,_0xb08b5f=!0x0),!_0xb08b5f)return Promise['resolve']();if(!_0x87fa16['isSubmitted']||_0x5a8b5d||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0xdba4d6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1af658}=_0x87fa16,_0x40acaa=_0xdba4d6['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1af658,'threadId':_0x23f676,'context':_0x2311b7,'unlinkedAt':_0x41abf9,'attributes':_0x41d5d9})['then'](()=>_0xdba4d6['remove'](_0x40acaa))['catch'](_0x1c10f0=>{throw console['error'](_0x1c10f0),new _0x336dea('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x24bb30){const _0xf39508=this['context']['plugins']['get'](O),_0x560700=this['getCommentThread'](_0x24bb30);if(_0x560700['_isAttached']=!0x1,this['_threadToController']['has'](_0x560700)){const _0x9c0b85=this['_threadToController']['get'](_0x560700),_0x52d691=_0x9c0b85['view'],_0x1f3439=_0xf39508['getByInnerView'](_0x52d691);this['_threadToController']['delete'](_0x560700),this['_viewToController']['delete'](_0x52d691),_0x1f3439&&_0xf39508['remove'](_0x1f3439),_0x9c0b85['destroy'](),_0x52d691['destroy']()['then'](()=>{this['_unbindEditors'](_0x52d691);});}}['_updateActiveAnnotation']({threadId:_0x395e37,resolvedAt:_0x1fa246,unlinkedAt:_0x353af9}){const _0x502a95=!!_0x1fa246,_0x1485ed=this['context']['plugins']['get'](O),_0x5a0d0a=this['getCommentThread'](_0x395e37);if(this['_threadToController']['has'](_0x5a0d0a)){const _0x29054a=this['_threadToController']['get'](_0x5a0d0a)['view'],_0x2beb08=_0x1485ed['getByInnerView'](_0x29054a);_0x2beb08&&(_0x502a95&&_0x1485ed['_removeActiveAnnotation'](_0x2beb08),_0x353af9?_0x2beb08['isVisible']=!0x1:_0x2beb08['refreshVisibility']());}}['_getExternalAuthor'](_0x12e429){const _0x5e28a2=this['context']['plugins']['get'](it),_0x10dca3=pt('external:'+_0x12e429),_0xc2b857=_0x5e28a2['getUser'](_0x10dca3);return _0xc2b857||_0x5e28a2['addUser']({'id':_0x10dca3,'name':_0x12e429});}['_createNewComment']({threadId:_0x24f3b1,commentId:_0x1aa8fb=_0x529d92(),content:_0x2ed2b4,authorId:_0x280067,createdAt:_0x73d258,attributes:_0x2c031a}){if('string'!=typeof _0x1aa8fb)throw new _0x336dea('commentsrepository-invalid-commentid');if('string'!=typeof _0x280067)throw new _0x336dea('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2ed2b4||!_0x2ed2b4['trim']())throw new _0x336dea('commentsrepository-invalid-comment-content');const _0x324df6=this['context']['plugins']['get'](it)['getUser'](_0x280067);if(!_0x324df6)throw new _0x336dea('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x280067});let _0x38ef72=null,_0x51e2fc=_0x73d258;return _0x2c031a?.['@external']&&(_0x38ef72=this['_getExternalAuthor'](_0x2c031a['@external']['authorName']),_0x51e2fc=new Date(_0x2c031a['@external']['createdAt'])),new fi(this,{'threadId':_0x24f3b1,'id':_0x1aa8fb,'author':_0x38ef72||_0x324df6,'creator':_0x324df6,'content':_0x2ed2b4,'createdAt':_0x73d258,'authoredAt':_0x51e2fc,'attributes':_0x2c031a});}['_addComment'](_0xfed3eb){let {threadId:_0x5a0670,content:_0x1d83ca,attributes:_0x303b04,isFromAdapter:_0x19b369}=_0xfed3eb;const _0x48a9f0=this['getCommentThread'](_0xfed3eb['threadId']);if(!_0x48a9f0)throw new _0x336dea('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x5d9332=this['_createNewComment'](_0xfed3eb),{id:_0x30164d}=_0x5d9332;if(_0x48a9f0['_add'](_0x5d9332),_0x19b369||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x48a9f0['isSubmitted'])return Promise['resolve']();const _0x40ca4e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x108a3e}=_0x48a9f0,_0xb427fa=_0x40ca4e['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x303b04||(_0x303b04={}),this['adapter']['addComment']({'channelId':_0x108a3e,'threadId':_0x5a0670,'commentId':_0x30164d,'content':_0x1d83ca,'attributes':_0x303b04})['then'](_0x41349c=>{_0x40ca4e['remove'](_0xb427fa),_0x41349c&&this['_updateComment']({'channelId':_0x108a3e,'threadId':_0x5a0670,'commentId':_0x30164d,'createdAt':_0x41349c['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3c44a1=>{throw console['error'](_0x3c44a1),new _0x336dea('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0xd459c5,commentId:_0xcb35c9,content:_0x55da70,createdAt:_0x324339,attributes:_0x5cbc91,isFromAdapter:_0x29d9e6}){if(void 0x0!==_0x55da70&&('string'!=typeof _0x55da70||!_0x55da70['trim']()['length']))throw new _0x336dea('commentsrepository-update-comment-invalid-content');const _0x2ab4c9=this['getCommentThread'](_0xd459c5),_0x2bd997=_0x2ab4c9['getComment'](_0xcb35c9);if(!_0x2bd997)throw new _0x336dea('commentsrepository-update-missing-comment',this);let _0x29cdf6=!0x1;if(_0x55da70&&_0x55da70!==_0x2bd997['content']&&(_0x2bd997['isEditable']||_0x29d9e6)&&(_0x2bd997['content']=_0x55da70,_0x29cdf6=!0x0),_0x324339&&_0x324339!==_0x2bd997['createdAt']&&(_0x2bd997['createdAt']=_0x324339,_0x2bd997['attributes']&&_0x2bd997['attributes']['@external']||(_0x2bd997['authoredAt']=_0x324339),_0x29cdf6=!0x0),_0x5cbc91&&!wt(_0x5cbc91,_0x2bd997['attributes'])&&(_0x2bd997['attributes']=_0x5cbc91,_0x29cdf6=!0x0),!_0x29cdf6)return Promise['resolve']();if(_0x2ab4c9['fire']('commentUpdated'),_0x29d9e6||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x4604e1=this['context']['plugins']['get']('PendingActions'),{channelId:_0x521413}=this['getCommentThread'](_0x2bd997['threadId']),_0x4dfcd8=_0x4604e1['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x521413,'threadId':_0xd459c5,'commentId':_0xcb35c9,'content':_0x55da70,'attributes':_0x5cbc91})['then'](()=>_0x4604e1['remove'](_0x4dfcd8))['catch'](_0x382e25=>{throw console['error'](_0x382e25),new _0x336dea('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2b5408,commentId:_0x51ec16,isFromAdapter:_0x477858}){const _0x9e03a8=this['getCommentThread'](_0x2b5408),_0x5b8ad1=_0x9e03a8['getComment'](_0x51ec16);if(!_0x5b8ad1)throw new _0x336dea('commentsrepository-remove-missing-comment',this);if(_0x9e03a8['_remove'](_0x5b8ad1),_0x477858||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4ed9bd=this['context']['plugins']['get']('PendingActions'),{channelId:_0x26ece5}=_0x9e03a8,_0xb11b86=_0x4ed9bd['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x26ece5,'threadId':_0x2b5408,'commentId':_0x51ec16})['then'](()=>_0x4ed9bd['remove'](_0xb11b86))['catch'](_0x2be808=>{throw console['error'](_0x2be808),new _0x336dea('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
- _0x47af62(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x139c20,_0x101e08){super();const _0x6f5cbf=_0x101e08['isResolvable'];this['channelId']=_0x101e08['channelId'],this['id']=_0x101e08['id'],this['comments']=new _0x4c2a37(),this['_repository']=_0x139c20,this['_isAttached']=!0x1,this['_isSubmitted']=_0x101e08['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x139c20,'_permissions',_0x139c20,'_readOnlyChannels',()=>_0x139c20['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x139c20,'_permissions',()=>_0x139c20['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x139c20,'_permissions',()=>{const _0x44a5c4=_0x139c20['getPermissions'](this['channelId']);return _0x44a5c4['write']||_0x44a5c4['admin'];}),this['bind']('isResolvable')['to'](_0x139c20,'_permissions',()=>_0x6f5cbf&&_0x139c20['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x101e08['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4091ac,_0x41ac38)=>_0x4091ac?_0x41ac38?_0x4091ac<_0x41ac38?_0x4091ac:_0x41ac38:_0x4091ac:_0x41ac38),this['set']('unlinkedAt',_0x101e08['unlinkedAt']||null),this['set']('resolvedAt',_0x101e08['resolvedAt']||null),this['set']('resolvedBy',_0x101e08['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x1fc969=>!!_0x1fc969),this['set']('attributes',_0x101e08['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x48fa44,_0x69aa01)=>_0x48fa44+_0x69aa01['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2f3e8c,id:_0x4d8cd4}=this;this['_repository']['fire'](bt('submitCommentThread',_0x2f3e8c),{'channelId':_0x2f3e8c,'threadId':_0x4d8cd4});}['setUnlinkedAt'](_0x35b924){this['_update']({'unlinkedAt':_0x35b924});}['resolve']({resolvedAt:_0x46195c=new Date(),resolvedBy:_0xdfa6c8=null,isFromAdapter:_0x3f245c=!0x1}={}){const _0x26e385=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x137610,id:_0x461612}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x137610),{'channelId':_0x137610,'threadId':_0x461612,'resolvedAt':_0x46195c,'resolvedBy':_0xdfa6c8||_0x26e385['id'],'isFromAdapter':_0x3f245c});}['reopen']({isFromAdapter:_0xf23fcc=!0x1}={}){const {channelId:_0x47e375,id:_0x34c849}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x47e375),{'channelId':_0x47e375,'threadId':_0x34c849,'isFromAdapter':_0xf23fcc});}['setContext'](_0x5d66d9){this['context']||this['_update']({'context':_0x5d66d9});}['setAttribute'](_0x493973,_0x19240f){const _0x5cd60c=It(this['attributes']);At(_0x5cd60c,_0x493973,_0x19240f),this['_update']({'attributes':_0x5cd60c});}['removeAttribute'](_0xca1f5a){const _0x5d8540=It(this['attributes']);yt(_0x5d8540,_0xca1f5a),this['_update']({'attributes':_0x5d8540});}['remove']({isFromAdapter:_0x37bed6=!0x1}={}){const {channelId:_0x56e776,id:_0x47bddb}=this;this['_repository']['fire'](bt('removeCommentThread',_0x56e776),{'channelId':_0x56e776,'threadId':_0x47bddb,'isFromAdapter':_0x37bed6});}['attachTo'](_0x3653a7){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x3653a7});}['addComment'](_0x808cc7){const {channelId:_0x521ed8,id:_0x1e2df6}=this;this['_repository']['fire'](bt('addComment',_0x521ed8,_0x1e2df6),Object['assign']({'channelId':_0x521ed8,'threadId':_0x1e2df6},_0x808cc7));}['getComment'](_0x26a6b0){if('string'!=typeof _0x26a6b0)throw new _0x336dea('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x26a6b0});return this['comments']['get'](_0x26a6b0);}['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'](_0x20d58d=>_0x20d58d['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3f9c1a){return this['listenTo'](_0x3f9c1a,'change:authoredAt',()=>{const _0x23ecb9=this['_findOptimalIndex'](_0x3f9c1a),_0x2c031f=this['comments'];_0x23ecb9-0x1!=_0x2c031f['getIndex'](_0x3f9c1a)&&_0x23ecb9+0x1!=_0x2c031f['getIndex'](_0x3f9c1a)&&(this['_remove'](_0x3f9c1a),this['_add'](_0x3f9c1a));}),this['comments']['add'](_0x3f9c1a,this['_findOptimalIndex'](_0x3f9c1a));}['_update'](_0xca1e55){const {channelId:_0x51566e,id:_0x2ada47}=this;this['_repository']['fire'](bt('updateCommentThread',_0x51566e),{..._0xca1e55,'channelId':_0x51566e,'threadId':_0x2ada47});}['_remove'](_0x58d7ac){return this['stopListening'](_0x58d7ac),_0x58d7ac['destroy'](),this['comments']['remove'](_0x58d7ac);}['_findOptimalIndex'](_0x27c2fa){const _0x194bef=this['comments']['find'](_0x23656e=>new Date(_0x23656e['authoredAt'])['getTime']()>new Date(_0x27c2fa['authoredAt'])['getTime']());return _0x194bef?this['comments']['getIndex'](_0x194bef):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
- _0x47af62(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x2c610c,_0x6c9aec){super();const _0x41de2a=_0x2c610c['context']['plugins']['get'](it)['me'],_0x28c2d9=_0x2c610c['getCommentThread'](_0x6c9aec['threadId']),_0x385861=0x0===_0x28c2d9['comments']['length'],_0x4e56bc=_0x41de2a===_0x6c9aec['author'];this['id']=_0x6c9aec['id'],this['threadId']=_0x6c9aec['threadId'],this['author']=_0x6c9aec['author'],this['creator']=_0x6c9aec['creator'],this['isExternal']=Boolean(_0x6c9aec['attributes']&&_0x6c9aec['attributes']['@external']),this['set']('content',_0x6c9aec['content']),this['createdAt']=_0x6c9aec['createdAt']||new Date(),this['set']('authoredAt',_0x6c9aec['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x28c2d9,'resolvedAt'),this['set']('attributes',_0x6c9aec['attributes']||{}),this['bind']('isEditable')['to'](_0x2c610c,'_permissions',()=>{const _0x547b34=_0x2c610c['getPermissions'](_0x28c2d9['channelId'])['write'],_0x5e1ab3=_0x2c610c['getPermissions'](_0x28c2d9['channelId'])['modifyAll'];return _0x4e56bc&&_0x547b34||!_0x4e56bc&&_0x5e1ab3;}),this['bind']('isRemovable')['to'](_0x28c2d9,'isRemovable',_0x2c610c,'_permissions',_0x585c61=>{const _0x380b33=_0x2c610c['getPermissions'](_0x28c2d9['channelId'])['write'],_0x5b3505=_0x2c610c['getPermissions'](_0x28c2d9['channelId'])['modifyAll'];return _0x4e56bc&&_0x380b33||_0x585c61&&_0x385861||!_0x4e56bc&&_0x5b3505&&!_0x385861;}),this['bind']('isReadOnly')['to'](_0x28c2d9,'isReadOnly'),this['_repository']=_0x2c610c;}get['weight'](){return Math['max'](function(_0x5da9a1){const _0x3521d8=document['createElement']('div');return _0x3521d8['innerHTML']=_0x5da9a1,_0x3521d8['textContent']['length'];}(this['content']),0xc8);}['update'](_0x27fd10){const {threadId:_0x57c68f,id:_0x25e6cf}=this;if(!this['_repository']['hasCommentThread'](_0x57c68f))throw new _0x336dea('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x1728b1}=this['_repository']['getCommentThread'](_0x57c68f);this['_repository']['fire'](bt('updateComment',_0x1728b1,_0x57c68f),{'channelId':_0x1728b1,'threadId':_0x57c68f,'commentId':_0x25e6cf,..._0x27fd10});}['setAttribute'](_0x273b83,_0x57d243){const _0x458c34=It(this['attributes']);At(_0x458c34,_0x273b83,_0x57d243),this['update']({'attributes':_0x458c34});}['removeAttribute'](_0x2801b9){const _0x3ec5dd=It(this['attributes']);yt(_0x3ec5dd,_0x2801b9),this['update']({'attributes':_0x3ec5dd});}['remove'](_0x52c866={}){if(!_0x52c866['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x33a62d,id:_0x16e38d}=this;if(!this['_repository']['hasCommentThread'](_0x33a62d))throw new _0x336dea('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x183350}=this['_repository']['getCommentThread'](_0x33a62d);this['_repository']['fire'](bt('removeComment',_0x183350,_0x33a62d),{'channelId':_0x183350,'threadId':_0x33a62d,'commentId':_0x16e38d,..._0x52c866});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x460948,..._0x4d1e9f){for(const _0x3754c5 of _0x4d1e9f)void 0x0!==_0x3754c5&&(_0x460948+=':'+String(_0x3754c5));return _0x460948;}class J extends _0x45efbb{['refresh'](){const _0x3e8b1c=this['editor']['model']['document']['selection'];for(const _0x1143e6 of _0x3e8b1c['getRanges']())if(this['_hasContent'](_0x1143e6))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x6b62cf=_0x529d92()}={}){const _0xf7696b=this['editor']['model'],_0x1887b4=[];for(const _0xfc701d of _0xf7696b['document']['selection']['getRanges']())this['_hasContent'](_0xfc701d)&&_0x1887b4['push'](this['_trimToContent'](_0xfc701d));_0xf7696b['change'](_0x56725c=>{for(const _0x5281d1 of _0x1887b4){const _0x1d36fa=_0x529d92()['substr'](0x1,0x5),_0x275e17='comment:'+_0x6b62cf+':'+_0x1d36fa;_0x56725c['addMarker'](_0x275e17,{'range':_0x5281d1,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x42484b){for(const _0x2a56cc of _0x42484b['getItems']())if(this['_itemIsContent'](_0x2a56cc))return!0x0;return!0x1;}['_itemIsContent'](_0x13d9d4){return _0x13d9d4['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x13d9d4)&&!_0x13d9d4['is']('element','tableCell');}['_trimToContent'](_0x3094fc){const _0x13af5b=_0x394373=>!this['_itemIsContent'](_0x394373['item']),_0x6c2ba6=_0x3094fc['start']['getLastMatchingPosition'](_0x13af5b),_0xe87f94=_0x3094fc['end']['getLastMatchingPosition'](_0x13af5b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x6c2ba6,_0xe87f94);}}class P extends _0x5d6037{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c4025){super(_0x5c4025),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x58dd46=this['editor'],_0xb8b2ce=_0x58dd46['model']['document']['selection'],_0x5e05ed=_0x11684c(()=>this['refreshSelectedViews'](),0xa);_0xb8b2ce['on']('change:range',(_0x3b57ad,_0x319c56)=>{_0x319c56['directChange']&&(_0x5e05ed['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x58dd46['editing']['view']['document'],'change:isFocused',(_0x482791,_0x21e8a3,_0x3ffb4e)=>{_0x3ffb4e&&_0x5e05ed();}),this['listenTo'](_0x58dd46['ui']['focusTracker'],'change:isFocused',(_0x53ae0b,_0x4c4339,_0x2ee0f1)=>{_0x2ee0f1||_0x58dd46['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x5960dc=>this['_editorAnnotationsData']['has'](_0x5960dc['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x31aa48){if(this['_editorAnnotations']['has'](_0x31aa48['view']))return;this['_editorAnnotations']['add'](_0x31aa48['view']),this['editor']['ui']['focusTracker']['add'](_0x31aa48['view']['element']);const _0xf9e4e9=this['editor']['plugins']['get'](O);this['listenTo'](_0xf9e4e9['collection'],'remove',(_0x99cbb5,_0x2d8b02)=>{this['editor']['ui']['focusTracker']['remove'](_0x2d8b02['view']['element']),this['_editorAnnotations']['delete'](_0x2d8b02['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x21f815){if('function'!=typeof _0x21f815)throw new _0x336dea('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x21f815);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2b7fa5,annotations:_0x3db3aa}){const _0x2a0e1b=[],_0x5bedeb=this['editor']['model']['document']['selection'],_0x106cc4=Array['from'](_0x5bedeb['getRanges']());for(const [_0x50d5ea,_0x2c8386]of this['_editorAnnotationsData']){const _0x5209f2=_0x1fab0b(_0x2c8386),_0x32a698=_0x3db3aa['getByInnerView'](_0x50d5ea);_0x5209f2&&_0x32a698&&_0x2a0e1b['push']({'annotation':_0x32a698,'range':_0x5209f2});}function _0x1fab0b(_0x5ca419){for(const _0x3d736e of _0x5ca419)for(const _0x18f8d1 of _0x106cc4)if(_0x3d736e['containsRange'](_0x18f8d1,!_0x5bedeb['isCollapsed']))return _0x3d736e;return null;}return _0x2a0e1b['sort']((_0x4c0fae,_0x42b876)=>{const _0x1bc3c8=_0x4c0fae['range'],_0x1baf95=_0x42b876['range'];if(!_0x1bc3c8['isEqual'](_0x1baf95)){if(_0x1bc3c8['containsRange'](_0x1baf95,!0x0))return 0x1;if(_0x1baf95['containsRange'](_0x1bc3c8,!0x0))return-0x1;}return _0x4c0fae['annotation']==_0x2b7fa5?-0x1:_0x42b876['annotation']==_0x2b7fa5?0x1:0x0;})['map'](_0x545ac4=>_0x545ac4['annotation']);}get['_editorAnnotationsData'](){const _0x432325=new Map();for(const _0x260d88 of Array['from'](this['_dataCollectors']))for(const [_0x2a1eaf,_0x5a78b1]of _0x260d88())_0x432325['set'](_0x2a1eaf,_0x5a78b1);return _0x432325;}}class st extends _0x5d6037{['afterInit'](){const _0x1dcdaa=this['editor'];if(!_0x1dcdaa['plugins']['has']('RestrictedEditingModeEditing'))return;_0x1dcdaa['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x5d6037{constructor(_0x317011){super(_0x317011),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x272537=this['editor'],_0x7897bb=_0x272537['commands']['get']('importWord'),_0x42be8c=_0x272537['plugins']['get'](it);_0x7897bb&&(_0x7897bb['on']('execute',(_0x486ea0,[,_0x284d3d])=>{_0x284d3d['collaboration_features']={'comments':!0x0,'user_id':_0x42be8c['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x7897bb,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x2cd571,_0x241e0f){const {comment_threads:_0x34c9e1}=_0x241e0f;_0x34c9e1&&_0x34c9e1['forEach'](({thread_id:_0x26b633,comments:_0x4ada16,is_resolved:_0x3f2c1a})=>{const _0x457b32=new Date(),_0x45b761=_0x4ada16['map'](({author:_0x4a1b79,content:_0x3862ce,created_at:_0x38ab74})=>({'content':_0x3862ce,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x457b32,'attributes':{'@external':{'authorName':_0x4a1b79,'createdAt':_0x38ab74?new Date(_0x38ab74):new Date(),'source':'importWord'}}})),_0x53379c=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x53379c,'threadId':_0x26b633,'comments':_0x45b761,'resolvedAt':_0x3f2c1a?_0x457b32:null});});}}class at extends _0x5d6037{constructor(_0x123e75){super(_0x123e75),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0xa6805=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0xa6805,'contentInsertion',(_0x16fb35,_0x1d7228)=>this['_removeMarkersWithoutThreads'](_0x1d7228['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x528674){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x528674;const _0x3bb1e0=this['editor']['plugins']['get']('CommentsRepository');for(const _0x3028e3 of _0x528674['keys']()){const [_0x2db783,_0x22bb64]=_0x3028e3['split'](':');'comment'!=_0x2db783||_0x3bb1e0['hasCommentThread'](_0x22bb64)||_0x528674['delete'](_0x3028e3);}return _0x528674;}['_registerMarkerInClipboardPipeline'](){const _0x14a897=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1d31e6=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1d31e6&&_0x14a897['_registerMarkerToCopy']('comment',_0x1d31e6);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2fbdc2){switch(_0x2fbdc2){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x5d6037{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1243ee,_0x5db7aa)=>{if(!_0x5db7aa['options']['showCommentHighlights'])return null;if(_0x5db7aa['options']['ignoreResolvedComments']){const {id:_0x35ad1f}=er(_0x1243ee['markerName']),_0x1bac77=this['editor']['plugins']['get'](o);if(_0x1bac77['getCommentThread'](_0x35ad1f)?.['isResolved']&&_0x1243ee['item'])return _0x5db7aa['consumable']['consume'](_0x1243ee['item'],'addMarker:'+_0x1243ee['markerName']),_0x5db7aa['consumable']['consume'](_0x1243ee['item'],'removeMarker:'+_0x1243ee['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3c4e71=>{_0x3c4e71['on']('addMarker:comment',(_0x1617f2,_0x5381a2,_0x3e7423)=>{if(!_0x3e7423['options']['showCommentHighlights'])return;const _0x29d534=_0x5381a2['item'];if(!_0x29d534)return;const _0x58c177=_0x3e7423['mapper']['toViewElement'](_0x29d534);this['editor']['model']['schema']['isObject'](_0x29d534)&&_0x58c177&&!_0x58c177['getCustomProperty']('widget')&&_0x58c177['is']('containerElement')&&_0x19ea7a(_0x58c177,_0x3e7423['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2f6261,{writer:_0x355047,options:_0x55f0f9})=>{if(!_0x55f0f9['showCommentHighlights'])return null;const _0x53347f=_0x355047['createContainerElement']('div'),_0x1e41a8=_0x355047['createEmptyElement']('hr');return _0x355047['addClass']('ck-horizontal-line',_0x53347f),_0x355047['insert'](_0x355047['createPositionAt'](_0x53347f,0x0),_0x1e41a8),_0x53347f;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x11f8e6,{writer:_0x56b166,options:_0x181105})=>{if(!_0x181105['showCommentHighlights'])return null;const _0x27259b=_0x56b166['createContainerElement']('span'),_0x3e9802=_0x56b166['createEmptyElement']('img');return _0x56b166['addClass']('image-inline',_0x27259b),_0x56b166['insert'](_0x56b166['createPositionAt'](_0x27259b,0x0),_0x3e9802),_0x27259b;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x531ae6,{writer:_0x45377a,options:_0x1d6566})=>{if(_0x1d6566['showCommentHighlights'])return _0x45377a['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5aa0ae,_0x45267e,_0x4f5119)=>{_0x4f5119['options']['showCommentHighlights']&&_0x5aa0ae['stop']();},{'priority':'high'});}}class r extends _0x5d6037{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x437c54){super(_0x437c54),this['set']('isThreadsLoadingPaused',!0x0),_0x437c54['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x15f014,_0x218c49,_0x6f2448,_0xa48e43)=>{const _0x3d2888=_0x437c54['plugins']['get'](o),_0x41be27=_0x6f2448?er(_0x6f2448)['id']:null;_0x437c54['model']['change'](()=>{if(_0x41be27){const _0x24e598=this['getAllMarkersForId'](_0x41be27);for(const _0x376829 of _0x24e598)_0x437c54['editing']['reconvertMarker'](_0x376829);}if(_0xa48e43){const {id:_0x50dc38}=er(_0xa48e43),_0xb12cf7=_0x3d2888['getCommentThread'](_0x50dc38);if(_0xb12cf7&&_0xb12cf7['unlinkedAt'])return;if(_0xb12cf7&&!_0xb12cf7['isAttached'])return;const _0x8f4a0b=this['getAllMarkersForId'](_0x50dc38);for(const _0x12354c of _0x8f4a0b)_0x437c54['editing']['reconvertMarker'](_0x12354c);}}),_0x41be27&&this['scrollToThreadMarker'](_0x41be27);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x199a3a=this['editor'],_0x334c03=_0x199a3a['plugins']['get'](o),_0x4a0f37=_0x199a3a['config']['get']('collaboration.channelId'),_0x3ed5e7=_0x334c03['getCommentThreads']()['filter'](_0x3a08b8=>_0x3a08b8['channelId']!==_0x4a0f37);_0x199a3a['commands']['add']('addCommentThread',new J(_0x199a3a)),this['listenTo'](_0x199a3a,'change:isReadOnly',(_0x5e5f09,_0x347786,_0x41f17f)=>{_0x334c03['switchReadOnly'](_0x41f17f,_0x199a3a['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x334c03,ft('addCommentThread',_0x4a0f37),(_0x322313,{threadId:_0x333782})=>{const _0x1a671a=this['editor']['plugins']['get'](o)['getCommentThread'](_0x333782);_0x1a671a?.['unlinkedAt']&&this['_attachArchivedThread'](_0x333782);}),this['listenTo'](_0x334c03,ft('removeCommentThread',_0x4a0f37),(_0x3e5687,{threadId:_0x49eb7b})=>{_0x199a3a['model']['enqueueChange']({'isUndoable':!0x1},_0x5e9dc1=>{const _0x492780=this['getAllMarkersForId'](_0x49eb7b);for(const _0x164f6f of _0x492780)_0x5e9dc1['removeMarker'](_0x164f6f);});}),this['listenTo'](_0x334c03,ft('resolveCommentThread',_0x4a0f37),(_0x87035a,{threadId:_0x168f90})=>{(this['_reconvertMarkers'](_0x168f90),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x168f90)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x334c03,ft('reopenCommentThread',_0x4a0f37),(_0x1ad4c1,{threadId:_0x205bd0})=>{this['_reconvertMarkers'](_0x205bd0);},{'priority':'low'}),this['listenTo'](_0x334c03,ft('addComment',_0x4a0f37),(_0x1780a4,{threadId:_0x13d7d7,isFromAdapter:_0x1a5b85})=>{const _0x8027cd=this['getAllMarkersForId'](_0x13d7d7);if(_0x1a5b85||0x0==_0x8027cd['length']||!_0x334c03['hasCommentThread'](_0x13d7d7))return;0x1===_0x334c03['getCommentThread'](_0x13d7d7)['length']&&_0x199a3a['model']['enqueueChange']({'isUndoable':!0x1},_0x4af4e1=>{for(const _0x3fc102 of _0x8027cd)_0x4af4e1['updateMarker'](_0x3fc102,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x3ed5e7);}['afterInit'](){!async function(_0x18094b){const _0x5dac7d=_0x1a7e1e([0x6e,0x30,0x45,0x37,0x6a,0x4b,0x47,0x46,0x65,0x4a,0x66,0x72,0x50,0x6c,0x6d,0x53,0x36,0x34,0x73,0x61,0x63,0x4e,0x57,0x62,0x67,0x4c,0x43,0x35,0x7a,0x6b,0x56,0x58,0x38,0x59,0x39,0x6f,0x70,0x4d,0x54,0x4f,0x75,0x48,0x71,0x52,0x55,0x68,0x49,0x32,0x74,0x77,0x64,0x76,0x41,0x79,0x42,0x31,0x33,0x5a,0x69,0x78,0x44,0x51]),_0x29522e=0xeb0af04,_0x3fbf4e=0xeb7c5a4^_0x29522e,_0x29203b=window[_0x1a7e1e([0x44,0x61,0x74,0x65])][_0x1a7e1e([0x6e,0x6f,0x77])](),_0x3554d9=_0x18094b[_0x1a7e1e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1eaa6c=new window[(_0x1a7e1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x153892=>{_0x3554d9[_0x1a7e1e([0x6f,0x6e,0x63,0x65])](_0x1a7e1e([0x72,0x65,0x61,0x64,0x79]),_0x153892);}),_0x2fe682={[_0x1a7e1e([0x6b,0x74,0x79])]:_0x1a7e1e([0x45,0x43]),[_0x1a7e1e([0x75,0x73,0x65])]:_0x1a7e1e([0x73,0x69,0x67]),[_0x1a7e1e([0x63,0x72,0x76])]:_0x1a7e1e([0x50,0x2d,0x32,0x35,0x36]),[_0x1a7e1e([0x78])]:_0x1a7e1e([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]),[_0x1a7e1e([0x79])]:_0x1a7e1e([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]),[_0x1a7e1e([0x61,0x6c,0x67])]:_0x1a7e1e([0x45,0x53,0x32,0x35,0x36])},_0x2e8f9e=_0x3554d9[_0x1a7e1e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a7e1e([0x67,0x65,0x74])](_0x1a7e1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ad015(){let _0x37f95c,_0x4addf1=null,_0x3f2481=null;try{if(_0x2e8f9e==_0x1a7e1e([0x47,0x50,0x4c]))return _0x1a7e1e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x37f95c=_0xbcced5(),!_0x37f95c)return _0x1a7e1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x37f95c[_0x1a7e1e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f2481=_0x33dd9b(_0x37f95c[_0x1a7e1e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x37f95c[_0x1a7e1e([0x6a,0x74,0x69])])),await _0x4ff77d()?_0x1abe3d()?_0x151559()?_0x1a7e1e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x332699()?(_0x37f95c[_0x1a7e1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a7e1e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4addf1=_0x26d8dd(_0x1a7e1e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x37f95c[_0x1a7e1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a7e1e([0x74,0x72,0x69,0x61,0x6c])&&(_0x4addf1=_0x26d8dd(_0x1a7e1e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x351ad2()):_0x1a7e1e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a7e1e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a7e1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a7e1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x151559(){const _0x1e5825=[_0x1a7e1e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a7e1e([0x74,0x72,0x69,0x61,0x6c])][_0x1a7e1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37f95c[_0x1a7e1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29203b/0x3e8:0xe10*_0x3fbf4e;return _0x37f95c[_0x1a7e1e([0x65,0x78,0x70])]<_0x1e5825;}function _0x1abe3d(){const _0x15fcd3=_0x37f95c[_0x1a7e1e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x15fcd3)return!0x1;if(_0x15fcd3[_0x1a7e1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7e1e([0x2a])))return!0x0;if(_0x15fcd3[_0x1a7e1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7e1e([0x43,0x4d,0x54])))return!0x0;if(_0x15fcd3[_0x1a7e1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7e1e([0x52,0x43,0x4d,0x54]))){if(_0x1095c2())return!0x0;if(_0x36f57d()||_0x28f0cf())return!0x0;}return!0x1;}function _0x332699(){const _0x22d0d9=_0x37f95c[_0x1a7e1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22d0d9||0x0==_0x22d0d9[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3eecdf}=new URL(window[_0x1a7e1e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x22d0d9[_0x1a7e1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3eecdf))return!0x0;const _0x593fad=_0x3eecdf[_0x1a7e1e([0x73,0x70,0x6c,0x69,0x74])](_0x1a7e1e([0x2e]));return _0x22d0d9[_0x1a7e1e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b29d7=>_0x4b29d7[_0x1a7e1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7e1e([0x2a])))[_0x1a7e1e([0x6d,0x61,0x70])](_0x20526f=>_0x20526f[_0x1a7e1e([0x73,0x70,0x6c,0x69,0x74])](_0x1a7e1e([0x2e])))[_0x1a7e1e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a1f39=>_0x4a1f39[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x593fad[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a7e1e([0x6d,0x61,0x70])](_0x12c38b=>Array(_0x593fad[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12c38b[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a7e1e([0x66,0x69,0x6c,0x6c])](_0x12c38b[0x0]===_0x1a7e1e([0x2a])?_0x1a7e1e([0x2a]):'')[_0x1a7e1e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12c38b))[_0x1a7e1e([0x73,0x6f,0x6d,0x65])](_0x401ea1=>_0x593fad[_0x1a7e1e([0x65,0x76,0x65,0x72,0x79])]((_0x2a9a48,_0x2e9e22)=>_0x401ea1[_0x2e9e22]===_0x2a9a48||_0x401ea1[_0x2e9e22]===_0x1a7e1e([0x2a])));}function _0x351ad2(){return _0x4addf1&&_0x3f2481?new window[(_0x1a7e1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58e9b7,_0x34026d)=>{_0x4addf1[_0x1a7e1e([0x74,0x68,0x65,0x6e])](_0x58e9b7,_0x34026d),_0x3f2481[_0x1a7e1e([0x74,0x68,0x65,0x6e])](_0x527459=>{_0x527459!=_0x1a7e1e([0x56,0x61,0x6c,0x69,0x64])&&_0x58e9b7(_0x527459);},_0x34026d);}):_0x4addf1||_0x3f2481||_0x1a7e1e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33dd9b(_0x3f060c,_0x52144f){return new window[(_0x1a7e1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f2d22=>{if(_0x1c5026())return _0x4f2d22(_0x1a7e1e([0x56,0x61,0x6c,0x69,0x64]));_0x303ab2(),_0x3554d9[_0x1a7e1e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a7e1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x274594=!0x1;const _0x4e6e66=_0x529d92();function _0x49eac8(_0x5b0438){return!!_0x5b0438&&(typeof _0x5b0438===_0x1a7e1e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b0438===_0x1a7e1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b0438[_0x1a7e1e([0x74,0x68,0x65,0x6e])]===_0x1a7e1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b0438[_0x1a7e1e([0x63,0x61,0x74,0x63,0x68])]===_0x1a7e1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x208674(_0x295e3a){_0x140c09(_0x295e3a)[_0x1a7e1e([0x74,0x68,0x65,0x6e])](_0x513748=>{if(!_0x513748||_0x513748[_0x1a7e1e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a7e1e([0x6f,0x6b]))return _0x1a7e1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f1fd0(_0x3d7521(_0x4e6e66+_0x52144f))!=_0x513748[_0x1a7e1e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a7e1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a7e1e([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a7e1e([0x74,0x68,0x65,0x6e])](_0x51b114=>(_0x2cac28(),_0x51b114),()=>{const _0x22e19c=_0x1b380c();return null==_0x22e19c?(_0x2cac28(),_0x1a7e1e([0x56,0x61,0x6c,0x69,0x64])):_0x1a7e1e(_0x29203b-_0x22e19c>(0x2abc2b04^_0x29522e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a7e1e([0x74,0x68,0x65,0x6e])](_0x4f2d22)[_0x1a7e1e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f2d22(_0x1a7e1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41ae82=0xe864184^_0x29522e;function _0x2cac28(){const _0x37b376=_0x1a7e1e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f1fd0(_0x3d7521(_0x3f060c)),_0x798d8=_0x5989b5(_0x5f1fd0(window[_0x1a7e1e([0x4d,0x61,0x74,0x68])][_0x1a7e1e([0x63,0x65,0x69,0x6c])](_0x29203b/_0x41ae82)));window[_0x1a7e1e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a7e1e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37b376,_0x798d8);}function _0x1b380c(){const _0x530fc9=_0x1a7e1e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f1fd0(_0x3d7521(_0x3f060c)),_0x5609e1=window[_0x1a7e1e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a7e1e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x530fc9);return _0x5609e1?window[_0x1a7e1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5989b5(_0x5609e1),0x10)*_0x41ae82:null;}function _0x140c09(_0x426429){return new window[(_0x1a7e1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b9b4b,_0x202162)=>{_0x426429[_0x1a7e1e([0x74,0x68,0x65,0x6e])](_0x3b9b4b,_0x202162),window[_0x1a7e1e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x202162,0xeb17bc4^_0x29522e);});}}_0x3554d9[_0x1a7e1e([0x6f,0x6e])](_0x1a7e1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x96e29a,_0x336a85)=>{if(_0x336a85[0x0]!=_0x3f060c)return _0x4f2d22(_0x1a7e1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x336a85[0x1]={..._0x336a85[0x1],[_0x1a7e1e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e6e66};},{[_0x1a7e1e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a7e1e([0x68,0x69,0x67,0x68])}),_0x3554d9[_0x1a7e1e([0x6f,0x6e])](_0x1a7e1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50fc5d=>{_0x49eac8(_0x50fc5d[_0x1a7e1e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x274594=!0x0,_0x208674(_0x50fc5d[_0x1a7e1e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a7e1e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a7e1e([0x6c,0x6f,0x77])}),_0x1eaa6c[_0x1a7e1e([0x74,0x68,0x65,0x6e])](()=>{_0x274594||_0x4f2d22(_0x1a7e1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c5026(){return _0x3554d9[_0x1a7e1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a7e1e([0x76,0x69,0x65,0x77])][_0x1a7e1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a7e1e([0x61,0x75,0x74,0x6f]);}function _0x303ab2(){_0x3554d9[_0x1a7e1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a7e1e([0x76,0x69,0x65,0x77])][_0x1a7e1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a7e1e([0x61,0x75,0x74,0x6f]);}}function _0x26d8dd(_0x3630b2){const _0x58e56b=[new window[(_0x1a7e1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x86429f=>setTimeout(_0x86429f,0xeb991c8^_0x29522e)),_0x1eaa6c[_0x1a7e1e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a7e1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f899a=>{let _0x96437=0x0;_0x3554d9[_0x1a7e1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7e1e([0x6f,0x6e])](_0x1a7e1e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x340e0c,_0xc46e8d)=>{_0xc46e8d[0x0][_0x1a7e1e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x96437++,_0x96437==(0xeb0aefc^_0x29522e)&&(_0x2f899a(),_0x340e0c[_0x1a7e1e([0x6f,0x66,0x66])]());});}))];return window[_0x1a7e1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a7e1e([0x72,0x61,0x63,0x65])](_0x58e56b)[_0x1a7e1e([0x74,0x68,0x65,0x6e])](()=>_0x3630b2);}async function _0x2339e9(){await _0x1eaa6c,_0x3554d9[_0x1a7e1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7e1e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51cc14,_0x3554d9[_0x1a7e1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7e1e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51cc14,_0x3554d9[_0x1a7e1e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a7e1e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1095c2(){return _0x28f22b(_0x1a7e1e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2a378e(_0x1a7e1e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1a7e1e([0x73,0x74,0x61,0x74,0x65])]==_0x1a7e1e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36f57d(){return _0x28f22b(_0x1a7e1e([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 _0x28f0cf(){return _0x28f22b(_0x1a7e1e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9438f5(_0x2ded19){const _0x404f66=_0x55f63e();_0x3554d9[_0x404f66]=_0x1a7e1e([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ded19,_0x2ded19!=_0x1a7e1e([0x56,0x61,0x6c,0x69,0x64])&&_0x2339e9();}function _0x55f63e(){const _0x2586b4=window[_0x1a7e1e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a7e1e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a7e1e([0x6e,0x6f,0x77])]())[_0x1a7e1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a7e1e([0x2e]),'');let _0x32c2a9=_0x1a7e1e([0x6e]);for(let _0x30a5d4=0x0;_0x30a5d4<_0x2586b4[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30a5d4+=0x2){let _0x498be9=window[_0x1a7e1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2586b4[_0x1a7e1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30a5d4,_0x30a5d4+0x2));_0x498be9>=_0x5dac7d[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x498be9-=_0x5dac7d[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32c2a9+=_0x5dac7d[_0x498be9];}return _0x32c2a9;}function _0xbcced5(){const _0x2731ee=_0x2e8f9e[_0x1a7e1e([0x73,0x70,0x6c,0x69,0x74])](_0x1a7e1e([0x2e]));if(0x3!=_0x2731ee[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49eaf3(_0x2731ee[0x1]);function _0x49eaf3(_0x24f480){const _0x3cf17c=_0x359ac8(_0x24f480);return _0x3cf17c&&_0x375107()?_0x3cf17c:null;function _0x375107(){const _0x1a6f04=_0x3cf17c[_0x1a7e1e([0x6a,0x74,0x69])],_0xc41fde=window[_0x1a7e1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a6f04[_0x1a7e1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a6f04[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x798c27={..._0x3cf17c,[_0x1a7e1e([0x6a,0x74,0x69])]:_0x1a6f04[_0x1a7e1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a6f04[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x798c27[_0x1a7e1e([0x76,0x63])],_0x3d7521(_0x798c27)==_0xc41fde;}}}async function _0x4ff77d(){let _0x38423c=!0x0;try{const _0x179246=_0x2e8f9e[_0x1a7e1e([0x73,0x70,0x6c,0x69,0x74])](_0x1a7e1e([0x2e])),[_0x2ad9b6,_0x51b1b7,_0x5785ef]=_0x179246;return _0x48be04(_0x2ad9b6),await _0x51d29a(_0x2ad9b6,_0x51b1b7,_0x5785ef),_0x38423c;}catch{return!0x1;}function _0x48be04(_0x13e3f6){const _0x1feac4=_0x359ac8(_0x13e3f6);_0x1feac4&&_0x1feac4[_0x1a7e1e([0x61,0x6c,0x67])]==_0x1a7e1e([0x45,0x53,0x32,0x35,0x36])||(_0x38423c=!0x1);}async function _0x51d29a(_0x43daf4,_0x4b3d6e,_0x20cd58){const _0x250e97=window[_0x1a7e1e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a7e1e([0x66,0x72,0x6f,0x6d])](_0x371d9c(_0x20cd58),_0x27f96b=>_0x27f96b[_0x1a7e1e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27da04=new window[(_0x1a7e1e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a7e1e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43daf4+_0x1a7e1e([0x2e])+_0x4b3d6e),_0x22bdde=window[_0x1a7e1e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a7e1e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22bdde)return;const _0x14b57f=await _0x22bdde[_0x1a7e1e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a7e1e([0x6a,0x77,0x6b]),_0x2fe682,{[_0x1a7e1e([0x6e,0x61,0x6d,0x65])]:_0x1a7e1e([0x45,0x43,0x44,0x53,0x41]),[_0x1a7e1e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a7e1e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a7e1e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22bdde[_0x1a7e1e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a7e1e([0x6e,0x61,0x6d,0x65])]:_0x1a7e1e([0x45,0x43,0x44,0x53,0x41]),[_0x1a7e1e([0x68,0x61,0x73,0x68])]:{[_0x1a7e1e([0x6e,0x61,0x6d,0x65])]:_0x1a7e1e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14b57f,_0x250e97,_0x27da04)||(_0x38423c=!0x1);}}function _0x359ac8(_0x3f1458){return _0x3f1458[_0x1a7e1e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a7e1e([0x65,0x79]))?JSON[_0x1a7e1e([0x70,0x61,0x72,0x73,0x65])](_0x371d9c(_0x3f1458)):null;}function _0x371d9c(_0x1a7847){return window[_0x1a7e1e([0x61,0x74,0x6f,0x62])](_0x1a7847[_0x1a7e1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a7e1e([0x2b]))[_0x1a7e1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a7e1e([0x2f])));}function _0x3d7521(_0x7ff91a){let _0x1e79be=0x1505;function _0x453384(_0x23b91b){for(let _0x160d9d=0x0;_0x160d9d<_0x23b91b[_0x1a7e1e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x160d9d++){const _0x235c6b=_0x23b91b[_0x1a7e1e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x160d9d);_0x1e79be=(_0x1e79be<<0x5)+_0x1e79be+_0x235c6b,_0x1e79be&=_0x1e79be;}}function _0x500557(_0x15efcb){Array[_0x1a7e1e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15efcb)?_0x15efcb[_0x1a7e1e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x500557):_0x15efcb&&typeof _0x15efcb==_0x1a7e1e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a7e1e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15efcb)[_0x1a7e1e([0x73,0x6f,0x72,0x74])]()[_0x1a7e1e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f0129,_0x3e6c0a])=>{_0x453384(_0x3f0129),_0x500557(_0x3e6c0a);}):_0x453384(window[_0x1a7e1e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15efcb));}return _0x500557(_0x7ff91a),_0x1e79be>>>0x0;}function _0x5f1fd0(_0xf0a5f5){return _0xf0a5f5[_0x1a7e1e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a7e1e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a7e1e([0x30]));}function _0x5989b5(_0x50c35e){return _0x50c35e[_0x1a7e1e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a7e1e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a7e1e([0x6a,0x6f,0x69,0x6e])]('');}function _0x28f22b(_0x3a3486){return _0x3554d9[_0x1a7e1e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a7e1e([0x68,0x61,0x73])](_0x3a3486);}function _0x2a378e(_0x6f9af5){return _0x3554d9[_0x1a7e1e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a7e1e([0x67,0x65,0x74])](_0x6f9af5);}function _0x51cc14(){}function _0x1a7e1e(_0x45dae1){return _0x45dae1['map'](_0x2e7a59=>String['fromCharCode'](_0x2e7a59))['join']('');}_0x9438f5(await _0x4ad015());}(this);}['destroy'](){const _0x2bd15d=this['editor']['plugins']['get'](o),_0x46b5fe=this['editor']['config']['get']('collaboration.channelId');for(const _0x467190 of _0x2bd15d['getCommentThreads']({'channelId':_0x46b5fe}))_0x2bd15d['_detachCommentThread'](_0x467190['id']),_0x2bd15d['_threads']['delete'](_0x467190['id']);super['destroy']();}['hasMarkerForId'](_0x3f1b9d){return this['getAllMarkersForId'](_0x3f1b9d)['length']>0x0;}['getAllMarkersForId'](_0x1a2e71){const _0x384135=[];for(const _0x2cc6d8 of this['editor']['model']['markers'])_0x2cc6d8['name']['startsWith']('comment:'+_0x1a2e71)&&_0x384135['push'](_0x2cc6d8);return _0x384135;}['scrollToThreadMarker'](_0x193fb8){const _0x40af09=this['_getTargetForId'](_0x193fb8);_0x40af09&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x193fb8&&rt({'target':_0x40af09[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x3c757f){this['editor']['model']['change'](()=>{for(const _0x22d6f6 of this['getAllMarkersForId'](_0x3c757f))this['editor']['editing']['reconvertMarker'](_0x22d6f6);});}['_attachArchivedThread'](_0x1fe684){const _0x11f39d=this['editor']['plugins']['get'](o),_0x2971f9=this['editor']['plugins']['get'](P),_0x4b82ad=_0x11f39d['getCommentThread'](_0x1fe684);if(!_0x4b82ad['isAttached']){const _0x35cf80=_0x4b82ad['attachTo'](()=>this['_getTargetForId'](_0x4b82ad['id']));_0x2971f9['registerAnnotation'](_0x35cf80),_0x4b82ad['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x326e1d=this['editor'],_0x4a0d0c=_0x326e1d['plugins']['get'](it);_0x326e1d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1d1883,_0x307963)=>{const {id:_0x4553f6}=er(_0x1d1883['markerName']),_0x2fb038=_0x326e1d['plugins']['get'](o)['getCommentThread'](_0x4553f6),_0x3f32e3=this['activeMarker']&&er(this['activeMarker'])['id']===_0x4553f6;let _0x55e5;if(_0x2fb038&&_0x2fb038['isResolved']&&!_0x3f32e3&&_0x1d1883['item'])return _0x307963['consumable']['consume'](_0x1d1883['item'],'addMarker:'+_0x1d1883['markerName']),_0x307963['consumable']['consume'](_0x1d1883['item'],'removeMarker:'+_0x1d1883['markerName']),null;const _0xb18369=['ck-comment-marker'];return _0x3f32e3&&_0xb18369['push']('ck-comment-marker--active'),_0x55e5=_0x2fb038?.['length']?_0x2fb038['comments']['first']['author']['id']:_0x4a0d0c['me']['id'],{'classes':_0xb18369,'attributes':{'data-comment':_0x4553f6,'data-author-id':_0x55e5}};}}),_0x326e1d['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x2ef7e9,{options:_0xd1c70e})=>{if(_0xd1c70e['showCommentHighlights'])return null;const _0x3daa9b=_0x326e1d['plugins']['get'](o),_0x86becd=_0x326e1d['model']['markers']['get'](_0x2ef7e9),{id:_0x5a5790,part:_0x38cca6}=er(_0x2ef7e9);return _0x86becd&&!_0x86becd['affectsData']||_0xd1c70e['ignoreResolvedComments']&&_0x3daa9b['getCommentThread'](_0x5a5790)?.['isResolved']?null:{'group':'comment','name':_0x38cca6?_0x5a5790+':'+_0x38cca6:_0x5a5790};}}),_0x326e1d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0xc736b5,{writer:_0xe4b332})=>_0xe4b332['createElement']('$marker',{'data-name':'comment:'+_0xc736b5['getAttribute']('id')})}),_0x326e1d['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x51d219=this['editor'],_0x15e5ce=_0x51d219['plugins']['get'](o),_0x220f7e=new Set(),_0x2ed37b=new Set();_0x51d219['model']['document']['registerPostFixer'](_0x54b16c=>{let _0xff6f92=!0x1;for(const {name:_0x549899,data:_0x8a1bad}of _0x51d219['model']['document']['differ']['getChangedMarkers']()){const {group:_0xf5e214,id:_0x5ceaee}=er(_0x549899);let _0x3dfb1e=_0x8a1bad['newRange'];if('comment'!==_0xf5e214||!_0x3dfb1e)continue;const _0xd9765a='$graveyard'===_0x3dfb1e['root']['rootName'];_0xd9765a||(_0x3dfb1e=dt(_0x3dfb1e,_0x51d219['model']),!_0x3dfb1e||_0x3dfb1e['isCollapsed']||!_0x8a1bad['newRange']||_0x3dfb1e['isEqual'](_0x8a1bad['newRange']))?_0x51d219['model']['hasContent'](_0x3dfb1e)&&!_0xd9765a?this['isThreadsLoadingPaused']?_0x220f7e['add'](_0x549899):this['_handleThreadMarker'](_0x549899,_0x5ceaee):(_0x2ed37b['add'](_0x549899),_0x220f7e['delete'](_0x549899),_0x54b16c['removeMarker'](_0x549899),_0xff6f92=!0x0):(_0x54b16c['updateMarker'](_0x549899,{'range':_0x3dfb1e}),_0xff6f92=!0x0);}return _0xff6f92;}),this['on']('change:isThreadsLoadingPaused',(_0x3e7c9f,_0x4744cd,_0x5cc305)=>{if(!_0x5cc305&&_0x220f7e['size'])for(const _0x2c6380 of _0x220f7e){const {id:_0x5197ce}=er(_0x2c6380);_0x220f7e['delete'](_0x2c6380),_0x51d219['model']['markers']['get'](_0x2c6380)&&this['_handleThreadMarker'](_0x2c6380,_0x5197ce);}}),this['listenTo'](_0x51d219['model']['document'],'change',()=>{for(const {name:_0x8276b5,data:{newRange:_0x493489}}of _0x51d219['model']['document']['differ']['getChangedMarkers']()){const {group:_0xb61a02,id:_0xfb1e37}=er(_0x8276b5);if('comment'!==_0xb61a02)continue;const _0x31a66b=_0x15e5ce['getCommentThread'](_0xfb1e37),_0xde7eac=this['hasMarkerForId'](_0xfb1e37);_0x31a66b&&(!_0x31a66b['_hasTargetInContent']&&_0x493489&&_0x51d219['editing']['view']['once']('render',()=>{const _0x4a810f=_0x51d219['plugins']['get'](O),_0x114c5c=_0x15e5ce['_threadToController']['get'](_0x31a66b)['view'];_0x4a810f['getByInnerView'](_0x114c5c)['refreshVisibility']();},{'priority':'low'}),_0x31a66b['_hasTargetInContent']=_0xde7eac||!!_0x493489),_0x493489||(_0x2ed37b['add'](_0x8276b5),_0x220f7e['delete'](_0x8276b5));}for(const _0x359105 of _0x2ed37b){const {id:_0x4f43d6}=er(_0x359105),_0x23d692=_0x15e5ce['getCommentThread'](_0x4f43d6);if(_0x220f7e['delete'](_0x359105),!_0x23d692)continue;const _0x8080f4=this['hasMarkerForId'](_0x4f43d6);_0x8080f4||_0x23d692['isSubmitted']?_0x8080f4||_0x23d692['unlinkedAt']||_0x23d692['setUnlinkedAt'](new Date()):_0x23d692['remove']();}_0x2ed37b['clear']();});}['_handleInitialThreads'](_0x42e4f7){_0x42e4f7['forEach'](_0x5bf776=>{_0x5bf776['unlinkedAt']&&this['_attachArchivedThread'](_0x5bf776['id']);});}['_getTargetForId'](_0x5856ea){const _0xa5e6ed=this['editor'],_0x23b549=this['getAllMarkersForId'](_0x5856ea);return et(_0xa5e6ed['editing'],_0x23b549);}['_getTextContext'](_0x299628){const _0x4cef9b=this['getAllMarkersForId'](_0x299628);let _0x278503='',_0x99cfd=!0x1;for(const _0x3705f8 of _0x4cef9b){const _0x5b5061=_0x3705f8['getRange']();for(const _0x66b009 of Array['from'](_0x5b5061['getItems']()))_0x66b009['is']('$textProxy')?(_0x278503&&_0x99cfd&&(_0x278503+='\x20',_0x99cfd=!0x1),_0x278503+=_0x66b009['data']):_0x99cfd=!0x0;_0x99cfd=!0x0;}return _0x278503['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4bcd3e,_0x55631a){const _0x55df3b=this['editor'],_0x38195b=_0x55df3b['plugins']['get'](o);let _0x4dd4b8=_0x38195b['getCommentThread'](_0x55631a);const _0x33b452=_0x55df3b['config']['get']('collaboration.channelId'),_0x24891d=_0x55df3b['plugins']['get'](P);if(_0x4dd4b8&&(_0x4dd4b8['unlinkedAt']&&_0x4dd4b8['setUnlinkedAt'](null),_0x4dd4b8['isAttached']))return _0x4dd4b8;return!this['getAllMarkersForId'](_0x55631a)[0x0]['managedUsingOperations']?_0x55df3b['editing']['view']['once']('render',()=>{if(_0x38195b['getCommentThread'](_0x55631a))return;const _0x391134=_0x55df3b['plugins']['get'](O);_0x4dd4b8=_0x38195b['openNewCommentThread']({'channelId':_0x33b452,'threadId':_0x55631a,'target':()=>this['_getTargetForId'](_0x55631a),'context':{'type':'text','value':this['_getTextContext'](_0x55631a)}});const _0x506a81=_0x38195b['_threadToController']['get'](_0x4dd4b8)['view'],_0x4c1940=_0x391134['getByInnerView'](_0x506a81);_0x4c1940&&_0x24891d['registerAnnotation'](_0x4c1940);},{'priority':'low'}):_0x38195b['fetchCommentThread']({'channelId':_0x33b452,'threadId':_0x55631a})['then'](_0x5d6abd=>{if('destroyed'!==_0x55df3b['state']){if(_0x4dd4b8=_0x5d6abd,_0x4dd4b8&&!_0x4dd4b8['isAttached']){const _0xbf669=_0x4dd4b8['attachTo'](()=>this['_getTargetForId'](_0x55631a));_0x24891d['registerAnnotation'](_0xbf669),_0x4dd4b8['isResolved']&&this['_reconvertMarkers'](_0x55631a);}else{if(!_0x4dd4b8){const _0x273847=this['getAllMarkersForId'](_0x55631a);_0x55df3b['model']['change'](_0x5ec701=>{for(const _0x4ebe50 of _0x273847)_0x5ec701['removeMarker'](_0x4ebe50);});}}}}),_0x4dd4b8;}['_handleThreadMarker'](_0x12d4d1,_0x24d5d3){const _0x346bc8=this['_attachMarkerToThread'](_0x12d4d1,_0x24d5d3);_0x346bc8&&!_0x346bc8['context']&&_0x346bc8['setContext']({'type':'text','value':this['_getTextContext'](_0x24d5d3)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5572a4=this['editor'];ot(_0x5572a4['model'],({left:_0x423410,entered:_0x1544a4})=>{for(const _0x34012e of _0x423410)if(mt(_0x34012e)){_0x5572a4['ui']['ariaLiveAnnouncer']['announce'](E(_0x5572a4['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x1455c0 of _0x1544a4)if(mt(_0x1455c0)){_0x5572a4['ui']['ariaLiveAnnouncer']['announce'](E(_0x5572a4['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x37300b)));break;}});}}function ft(_0x4416a8,_0x46dc81){return _0x46dc81?_0x4416a8+':'+_0x46dc81:_0x4416a8;}function er(_0x1ff0c0){const _0x35ee44=_0x1ff0c0['split'](':');return{'group':_0x35ee44[0x0],'id':_0x35ee44[0x1],'part':_0x35ee44[0x2]};}function dt(_0x39d9eb,_0x3c1635){const _0x18cf0b=_0x3c1635['schema'],_0x1fe6bd=_0x3c1635['createRange'](_0x39d9eb['start']);for(const _0x244d57 of _0x39d9eb['getWalker']()){const {type:_0x29dc10,item:_0x3875d6,nextPosition:_0x44cf9e}=_0x244d57;if('text'===_0x29dc10||_0x18cf0b['isObject'](_0x3875d6)){const _0x4ee398=_0x3c1635['createPositionBefore'](_0x3875d6);_0x1fe6bd['isCollapsed']&&(_0x1fe6bd['start']=_0x4ee398),_0x1fe6bd['end']=_0x44cf9e;}}return _0x1fe6bd;}function mt(_0x1c9434){return'comment'===er(_0x1c9434['name'])['group'];}class i extends _0x5d6037{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,O];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x26def1=this['editor'],_0xbb3882=_0x26def1['plugins']['get'](o),_0x43f0b4=_0x26def1['plugins']['get'](r),_0x557f04=_0x26def1['plugins']['get'](O),_0x268dc9=_0x26def1['plugins']['get'](P);_0x26def1['ui']['componentFactory']['add']('comment',()=>{const _0x1d8bb0=this['_createUIButton'](_0x3b6043);return _0x1d8bb0['tooltip']=!0x0,_0x1d8bb0;}),_0x26def1['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x15c224)),_0x268dc9['addSourceCollector'](()=>{const _0x1181fb=[];for(const [_0x445e62,_0x1da35d]of _0xbb3882['_threadToController']){const _0x4d7062=_0x43f0b4['getAllMarkersForId'](_0x445e62['id']),_0x4a51b2=_0x4d7062['map'](_0x273d5b=>_0x273d5b['getRange']());_0x4d7062['length']>0x0&&_0x1181fb['push']([_0x1da35d['view'],_0x4a51b2]);}return _0x1181fb;}),this['listenTo'](_0x557f04,'change:activeAnnotations',(_0x2866de,_0x3298fb,_0x4b203d)=>{const _0x1eabe2=Array['from'](_0x4b203d)['map'](_0xcb7c9e=>_0xcb7c9e['innerView'])['find'](_0x313fcd=>_0xbb3882['_viewToController']['has'](_0x313fcd));if(!_0x1eabe2)return void(_0x43f0b4['activeMarker']=null);const _0x4154e4=_0xbb3882['_viewToController']['get'](_0x1eabe2)['model']['id'],_0x5766d0='comment:'+_0x4154e4;_0x4154e4&&_0x43f0b4['hasMarkerForId'](_0x4154e4)?_0x43f0b4['activeMarker']=_0x5766d0:_0x43f0b4['activeMarker']&&(_0x43f0b4['activeMarker']=null);}),this['listenTo'](_0xbb3882,'removeCommentThread',(_0x295906,{threadId:_0x1b0e1e,isFromAdapter:_0x7db8af})=>{!_0x7db8af&&_0x26def1['ui']['focusTracker']['isFocused']&&_0x43f0b4['hasMarkerForId'](_0x1b0e1e)&&_0x26def1['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0xbb3882,'addComment',(_0x16260c,{threadId:_0x108c71,isFromAdapter:_0x1984c9})=>{if(_0x1984c9||!_0x43f0b4['hasMarkerForId'](_0x108c71)||!_0xbb3882['hasCommentThread'](_0x108c71))return;0x1===_0xbb3882['getCommentThread'](_0x108c71)['length']&&(_0x26def1['editing']['view']['focus'](),_0x16260c['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x39ab7e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4dd405;for(const _0x4cc289 in _0x39ab7e){const _0x1fd01d=_0x4cc289,_0x3caf9a=_0x39ab7e[_0x1fd01d];if('commentsLicenseKeyValid'==_0x3caf9a||'commentsLicenseKeyInvalid'==_0x3caf9a||'commentsLicenseKeyExpired'==_0x3caf9a||'commentsLicenseKeyDomainLimit'==_0x3caf9a||'commentsLicenseKeyNotAllowed'==_0x3caf9a||'commentsLicenseKeyEvaluationLimit'==_0x3caf9a||'commentsLicenseKeyTrialLimit'==_0x3caf9a||'commentsLicenseKeyUsageLimit'==_0x3caf9a){delete _0x39ab7e[_0x1fd01d],_0x4dd405=_0x3caf9a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4dd405&&_0x39ab7e['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4dd405&&_0x39ab7e['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4dd405&&_0x39ab7e['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4dd405&&_0x39ab7e['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4dd405&&_0x39ab7e['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4dd405&&_0x39ab7e['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x4dd405&&_0x39ab7e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x449ddf){const _0xc31e09=this['editor'],_0x5a6f6d=new _0x449ddf(_0xc31e09['locale']),_0x3d4133=_0xc31e09['commands']['get']('addCommentThread');return _0x5a6f6d['set']({'label':E(_0xc31e09['locale'],'Comment'),'icon':_0x9b756}),_0x5a6f6d['bind']('isEnabled')['to'](_0x3d4133),this['listenTo'](_0x5a6f6d,'execute',()=>{_0x3d4133['execute']();}),_0x5a6f6d;}}class s extends _0x5d6037{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x15759d){super(_0x15759d),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x59dc8c,_0x1bfed0,_0x126321)=>{_0x126321?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0xe51fcb,_0x537bd8]of this['editor']['commands'])_0x537bd8['affectsData']&&'addCommentThread'!==_0xe51fcb&&_0x537bd8['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x18dfca=this['editor']['editing']['view']['document'];this['listenTo'](_0x18dfca,'cut',_0x4f6470=>_0x4f6470['stop'](),{'priority':'highest'}),this['listenTo'](_0x18dfca,'clipboardInput',_0x38dede=>_0x38dede['stop'](),{'priority':'highest'}),this['listenTo'](_0x18dfca,'delete',_0x4c753a=>_0x4c753a['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x467578,_0x210c1f]of this['editor']['commands'])_0x210c1f['affectsData']&&'addCommentThread'!==_0x467578&&_0x210c1f['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 M extends _0x119d87{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x377cd4){super(_0x377cd4),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x3f9daa=this['context']['plugins']['get'](O);this['listenTo'](_0x3f9daa,'_activateAnnotation',(_0x101b32,_0x17f7c1)=>{for(const _0x19aa85 of this['activeUIs']){const _0x3c5791=this['_uis']['get'](_0x19aa85);(0x0,this['uisData']['get'](_0x19aa85)['filter'])(_0x17f7c1)&&_0x3c5791['setActiveAnnotation'](_0x17f7c1);}}),this['listenTo'](_0x3f9daa,'_deactivateAllAnnotations',()=>{for(const _0x54c6ee of this['activeUIs']){this['_uis']['get'](_0x54c6ee)['setActiveAnnotation'](null);}}),this['listenTo'](_0x3f9daa['_visibleAnnotations'],'add',(_0x47af77,_0x996e24)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x996e24);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x29a80f){return this['activeUIs']['has'](_0x29a80f);}['activate'](_0x20df6b,_0x425abf=this['defaultFilter']){const _0x556b0d=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x20df6b))throw new _0x336dea('annotationsuis-missing-ui',this,{'uiName':_0x20df6b});this['isActive'](_0x20df6b)&&this['deactivate'](_0x20df6b),this['activeUIs']['add'](_0x20df6b);const _0x58458d=new _();!function({source:_0x35e378,target:_0x2a8f31,filter:_0xa492e4}){for(const _0x5ea82f of _0x35e378)_0xa492e4(_0x5ea82f)&&_0x2a8f31['add'](_0x5ea82f);_0x2a8f31['listenTo'](_0x35e378,'add',(_0x1cade6,_0x58ac9d)=>{_0xa492e4(_0x58ac9d)&&_0x2a8f31['add'](_0x58ac9d);}),_0x2a8f31['listenTo'](_0x35e378,'remove',(_0xe355ff,_0x37f805)=>{_0x2a8f31['has'](_0x37f805)&&_0x2a8f31['remove'](_0x37f805);});}({'source':_0x556b0d['_visibleAnnotations'],'target':_0x58458d,'filter':_0x425abf}),this['uisData']['set'](_0x20df6b,{'collection':_0x58458d,'filter':_0x425abf});const _0x804b83=this['_uis']['get'](_0x20df6b);_0x804b83['attach'](_0x58458d),this['listenTo'](_0x804b83,'change:activeAnnotation',(_0x46be65,_0x55b13a,_0x315d0a,_0x4cbefb)=>{_0x4cbefb&&_0x556b0d['_removeActiveAnnotation'](_0x4cbefb),_0x315d0a&&_0x556b0d['_addActiveAnnotation'](_0x315d0a);});}['deactivate'](_0x59509d){if(this['activeUIs']['delete'](_0x59509d),!this['_uis']['has'](_0x59509d))throw new _0x336dea('annotationsuis-missing-ui',this,{'uiName':_0x59509d});const _0xc0ecc9=this['_uis']['get'](_0x59509d);_0xc0ecc9['detach'](),this['stopListening'](_0xc0ecc9),this['uisData']['get'](_0x59509d)['collection']['destroy'](),this['uisData']['delete'](_0x59509d);}['switchTo'](_0x235aa5){if(!this['_uis']['has'](_0x235aa5))throw new _0x336dea('annotationsuis-missing-ui',this,{'uiName':_0x235aa5});const _0x1f4f30=this['context']['plugins']['get'](O),_0x5d83cf=Array['from'](_0x1f4f30['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x235aa5);const _0x4bf161=this['_uis']['get'](_0x235aa5);_0x4bf161['setActiveAnnotation'](_0x5d83cf),_0x4bf161['_setSelectedAnnotations']&&_0x5d83cf&&_0x4bf161['_setSelectedAnnotations']([_0x5d83cf]);}['deactivateAll'](){for(const _0x513be4 of this['activeUIs'])this['deactivate'](_0x513be4);}['register'](_0x43707b,_0x53793d){if(this['_uis']['has'](_0x43707b))throw new _0x336dea('annotationsuis-register-already-registered');if('function'!=typeof _0x53793d['attach']||'function'!=typeof _0x53793d['detach']||'function'!=typeof _0x53793d['setActiveAnnotation'])throw new _0x336dea('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x43707b,_0x53793d);}['refilterAnnotations'](){const _0x485e5f=this['context']['plugins']['get'](O)['collection'],_0x4380ff=new Map(),_0x46c022=Array['from'](this['activeUIs']);for(const _0x43b56d of this['activeUIs']){const _0x8d755e=this['uisData']['get'](_0x43b56d)['collection'];for(const _0x2a1fa3 of _0x8d755e)_0x4380ff['set'](_0x2a1fa3,_0x43b56d);}for(const _0x317ef2 of _0x485e5f){const _0x3b63a7=_0x4380ff['get'](_0x317ef2);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x317ef2);const _0x13ac96=_0x46c022['find'](_0x40414e=>this['uisData']['get'](_0x40414e)['filter'](_0x317ef2));_0x3b63a7!==_0x13ac96&&(_0x3b63a7&&this['uisData']['get'](_0x3b63a7)['collection']['remove'](_0x317ef2),_0x13ac96&&this['uisData']['get'](_0x13ac96)['collection']['add'](_0x317ef2));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x17a06b){const _0x1fabf6=[];for(const _0x24f248 of this['activeUIs']){(0x0,this['uisData']['get'](_0x24f248)['filter'])(_0x17a06b)&&_0x1fabf6['push'](_0x24f248);}if(_0x1fabf6['length']>0x1)throw new _0x336dea('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1fabf6,'annotationType':_0x17a06b['type']});}}const pi=xt('px');class F extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x48024b){super(_0x48024b);const _0x152a26=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 _0xa2a08e(),this['focusCycler']=new _0x4869b6({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x152a26['to']('class')],'style':{'minHeight':_0x152a26['to']('minHeight',_0x3f732b=>'number'==typeof _0x3f732b?pi(_0x3f732b+0xa):null)},'dir':_0x48024b['uiLanguageDirection'],'role':'application','aria-label':E(_0x48024b,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x48024b,'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',_0x3c1893=>{this['_updateItemPositionInFocusables'](_0x3c1893['source']);}),this['list']['forEach'](_0x36d743=>{this['focusTracker']['add'](_0x36d743['element']),this['_updateItemPositionInFocusables'](_0x36d743);}),this['list']['on']('change',(_0x57688b,_0x440361)=>{for(const _0x5f30e7 of _0x440361['removed'])this['focusTracker']['remove'](_0x5f30e7['element']),this['focusables']['remove'](_0x5f30e7);for(const _0xf82c21 of _0x440361['added'])this['focusTracker']['add'](_0xf82c21['element']),this['_updateItemPositionInFocusables'](_0xf82c21);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x38ce3a){const _0x14602a=this['focusables']['getIndex'](_0x38ce3a);let _0x54f03d,_0x1b799c;for(const _0x19ae99 of this['focusables'])if(_0x38ce3a['top']<_0x19ae99['top']){_0x54f03d=_0x19ae99;break;}if(_0x1b799c=_0x54f03d?this['focusables']['getIndex'](_0x54f03d):this['focusables']['length'],-0x1!==_0x14602a){if(_0x14602a===_0x1b799c-0x1)return;this['focusables']['remove'](_0x38ce3a),_0x1b799c=_0x54f03d?this['focusables']['getIndex'](_0x54f03d):this['focusables']['length'];}this['focusables']['add'](_0x38ce3a,_0x1b799c);}}const Ht=xt('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x21a522){super(_0x21a522),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x59c774,_0x27b2af)=>_0x59c774+_0x27b2af),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x35b270=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x35b270['to']('isAnimationDisabled',_0x155ac7=>_0x155ac7?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x35b270['to']('top',_0x549ba6=>Ht(_0x549ba6))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3f4772=this['element']['clientHeight'];_0x3f4772&&(this['height']=_0x3f4772);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x119d87{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f0b26){super(_0x5f0b26),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 _0x21e999=this['context']['config']['get']('sidebar.container');_0x21e999&&this['setContainer'](_0x21e999);}['setContainer'](_0x3e910e){if(!y(_0x3e910e))throw new _0x336dea('sidebar-setcontainer-invalid-element');this['container']=_0x3e910e;}['_attachToContainer']({viewClass:_0x43150e='',spaceBetweenItems:_0x34451f=0x19}={}){if(!y(this['container']))throw new _0x336dea('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x43150e,this['_spaceBetweenItems']=_0x34451f;}['rearrange']({removedAnnotation:_0xd1f32c,previousAnnotation:_0x5cef21,nextAnnotation:_0xb6d765}){const _0x2210d3=this['getSidebarItemView'](_0xd1f32c);this['view']['list']['remove'](_0x2210d3),this['_destroySidebarItemView'](_0xd1f32c),_0x5cef21&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5cef21)),_0xb6d765&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xb6d765)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x265ef3,activatedAnnotation:_0x1a7c02,disableAnimationOnActivatedAnnotation:_0x13e684}){if(this['_activeAnnotation']=_0x1a7c02,_0x265ef3){_0x265ef3['isActive']=!0x1;const _0x144c15=this['getSidebarItemView'](_0x265ef3);_0x144c15&&_0x13e684&&(_0x144c15['isAnimationDisabled']=!0x1);}if(_0x1a7c02){const _0x2d0cf8=this['getSidebarItemView'](_0x1a7c02);_0x2d0cf8&&(_0x1a7c02['isActive']=!0x0,_0x13e684&&(_0x2d0cf8['isAnimationDisabled']=!0x0,_0x2d0cf8['top']+=0x1),this['_alignToTargetRect'](_0x2d0cf8));}}['_detachFromContainer'](_0x18b9b9){if(this['view']['element']['remove'](),_0x18b9b9){for(const _0x49a739 of _0x18b9b9)this['_destroySidebarItemView'](_0x49a739);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xc1b96b,_0x1d43cd){_0x1d43cd||(_0x1d43cd=_0xc1b96b['view']);const _0x2a0065=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x2a0065,_0xc1b96b),this['_annotationToSidebarItemView']['set'](_0xc1b96b,_0x2a0065),_0x2a0065['content']['add'](_0x1d43cd),this['listenTo'](_0xc1b96b['view'],'change:targetRect',(_0x5b9943,_0x27a89f,_0x2a7861)=>{const _0xb81c7d=this['_getTargetTop'](_0xc1b96b,_0x2a7861);_0x2a0065['_targetTop']!=_0xb81c7d&&(_0x2a0065['_targetTop']=_0xb81c7d,this['_setItemTop'](_0x2a0065,_0xb81c7d));}),this['listenTo'](_0x2a0065,'change:top',()=>{this['_recalculate'](_0x2a0065,'top');}),this['listenTo'](_0x2a0065,'change:bottom',()=>{this['_recalculate'](_0x2a0065,'bottom');}),this['_alignToTargetRect'](_0x2a0065);const _0x11838d=this['_getItemBefore'](_0x2a0065);if(_0x11838d)this['_alignAfterItem'](_0x11838d,_0x2a0065)||this['_alignToTargetRect'](_0x2a0065);else this['_alignToTargetRect'](_0x2a0065);return this['_updateLastItem'](),this['view']['list']['add'](_0x2a0065),_0x2a0065;}['_alignForTopChange'](_0x349b4d){if(!_0x349b4d['content']['length'])return;const _0x19d78f=this['_getItemBefore'](_0x349b4d);if(!_0x19d78f)return;const _0x108d1f=this['_sidebarItemViewToAnnotation']['get'](_0x19d78f),_0x16bc0f=this['_activeAnnotation'];_0x16bc0f&&_0x16bc0f===_0x108d1f?this['_alignAfterItem'](_0x19d78f,_0x349b4d):this['_alignBeforeItem'](_0x349b4d,_0x19d78f);}['_alignForBottomChange'](_0x2653fb){if(!_0x2653fb['content']['length'])return;const _0x4b6a89=this['_getItemAfter'](_0x2653fb);if(!_0x4b6a89)return;const _0x2d41af=this['_sidebarItemViewToAnnotation']['get'](_0x4b6a89),_0x2f3f36=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x5598c5=this['_activeAnnotation'];_0x5598c5&&_0x5598c5===_0x2d41af&&_0x2f3f36?(this['_alignBeforeItem'](_0x4b6a89,_0x2653fb),this['_alignAfterItem'](_0x2653fb,_0x4b6a89)):_0x5598c5&&_0x5598c5===_0x2d41af?this['_alignBeforeItem'](_0x4b6a89,_0x2653fb):this['_alignAfterItem'](_0x2653fb,_0x4b6a89);}['_recalculate'](_0x1e6568,_0x588508){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x333076,changedProp:_0x4ea5ef}of this['_recalculateBuffer'])'top'===_0x4ea5ef?this['_alignForTopChange'](_0x333076):this['_alignForBottomChange'](_0x333076);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x1e6568,'changedProp':_0x588508});}['getSidebarItemView'](_0x5423c0){return this['_annotationToSidebarItemView']['get'](_0x5423c0);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x173623){const _0x3cd09c=this['getSidebarItemView'](_0x173623);this['stopListening'](_0x3cd09c),this['stopListening'](_0x173623['view']),_0x3cd09c['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x173623),this['_sidebarItemViewToAnnotation']['delete'](_0x3cd09c);}['_createSidebarView'](){const _0x3eb3d1=new F(this['context']['locale']);return _0x3eb3d1['render'](),this['on']('change:_lastItem',(_0x480280,_0x2b836e,_0x517c31,_0x4473ed)=>{_0x4473ed&&_0x3eb3d1['unbind']('minHeight'),_0x517c31?_0x3eb3d1['bind']('minHeight')['to'](_0x517c31,'bottom'):_0x3eb3d1['minHeight']=null;}),_0x3eb3d1;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x33d932){const _0x2d2e83=this['_sidebarItemViewToAnnotation']['get'](_0x33d932),_0x2b7523=_0x2d2e83&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2d2e83)-0x1);return _0x2b7523&&this['getSidebarItemView'](_0x2b7523)||null;}['_getItemAfter'](_0x279114){const _0x41afd7=this['_sidebarItemViewToAnnotation']['get'](_0x279114),_0x4ae446=_0x41afd7&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x41afd7)+0x1);return _0x4ae446&&this['getSidebarItemView'](_0x4ae446)||null;}['_alignBeforeItem'](_0x2e53b4,_0x5df655){_0x2e53b4['updateHeight']();const _0x2da4a6=R(_0x5df655['bottom']+this['_spaceBetweenItems'],_0x2e53b4['top']);return!!_0x2da4a6&&(this['_setItemTop'](_0x5df655,_0x5df655['top']-_0x2da4a6),!0x0);}['_alignAfterItem'](_0x252a0e,_0x3ac5de){_0x252a0e['updateHeight']();const _0x3c834f=R(_0x252a0e['bottom']+this['_spaceBetweenItems'],_0x3ac5de['top']);return!!_0x3c834f&&(this['_setItemTop'](_0x3ac5de,_0x3ac5de['top']+_0x3c834f,!0x1),!0x0);}['_alignToTargetRect'](_0x1e936d){const _0x3bdaeb=this['_sidebarItemViewToAnnotation']['get'](_0x1e936d);if(!_0x3bdaeb||!_0x3bdaeb['target']||!_0x3bdaeb['targetRect'])return;const _0x2d450b=this['_getTargetTop'](_0x3bdaeb,_0x3bdaeb['targetRect']);this['_setItemTop'](_0x1e936d,_0x2d450b);}['_getTargetTop'](_0x125d57,_0x1d0eff){if(null===_0x1d0eff)return 0x0;if(_0x125d57['target']instanceof _0x487b14)return _0x1d0eff['top'];{const _0x35396c=new _0x487b14(this['view']['element'])['top'];return _0x1d0eff['top']-_0x35396c;}}['_setItemTop'](_0x559d9d,_0x9063f6,_0x27aa3e=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x27aa3e&&(_0x9063f6=Math['max'](_0x9063f6,this['_getMaxAvailableTop'](_0x559d9d))),_0x559d9d['top']=_0x9063f6;}['_getMaxAvailableTop'](_0x3605c8){let _0x2a6e42=this['_getItemBefore'](_0x3605c8),_0xd5356b=0x0;for(;_0x2a6e42;)_0x2a6e42['updateHeight'](),_0xd5356b+=this['_spaceBetweenItems']+_0x2a6e42['height'],_0x2a6e42=this['_getItemBefore'](_0x2a6e42);return _0xd5356b;}}function R(_0x37b976,_0x269b30){return Math['max'](_0x37b976-_0x269b30,0x0);}function y(_0x2f724c){return null!==_0x2f724c&&'object'==typeof _0x2f724c&&0x1===_0x2f724c['nodeType'];}class e extends _0x119d87{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44e3b9){super(_0x44e3b9),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x4c2a37(),this['_refreshPositioningDebounced']=_0x11684c(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x529d1f=this['context']['plugins']['get'](M),_0x388138=this['context']['plugins']['get'](z);_0x529d1f['register']('wideSidebar',this),_0x388138['container']&&_0x529d1f['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x2c9f6f){if(_0x2c9f6f===this['activeAnnotation'])return;const _0x1c1b33=this['context']['plugins']['get'](z);_0x1c1b33['_activeAnnotation']=_0x2c9f6f;const _0x591a5a=this['activeAnnotation'];_0x1c1b33['refresh']({'blurredAnnotation':_0x591a5a,'activatedAnnotation':_0x2c9f6f}),this['activeAnnotation']=_0x2c9f6f;}['attach'](_0x5ca34f){this['annotations']=_0x5ca34f;const _0xcc4041=this['context']['plugins']['get'](z);if(_0xcc4041['_annotations']=_0x5ca34f,this['isAttached'])throw new _0x336dea('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xcc4041,'set:container',()=>{this['detach'](),this['listenTo'](_0xcc4041,'change:container',_0x8d6bc8=>{_0x8d6bc8['off'](),this['attach'](_0x5ca34f);});}),_0xcc4041['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x42dc1c=_0x523fa9=>{_0x523fa9['updateTargetRect'](),_0xcc4041['addAnnotation'](_0x523fa9);};for(const _0x46af02 of _0x5ca34f)_0x42dc1c(_0x46af02);this['listenTo'](_0x5ca34f,'add',(_0x4e735e,_0x315d02)=>{_0x42dc1c(_0x315d02);}),this['listenTo'](_0x5ca34f,'remove',(_0x579505,_0x2d7309,_0x3ccb28)=>{_0xcc4041['rearrange']({'removedAnnotation':_0x2d7309,'previousAnnotation':_0x5ca34f['get'](_0x3ccb28-0x1),'nextAnnotation':_0x5ca34f['get'](_0x3ccb28+0x1)}),_0x2d7309===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5ca34f,'focus',(_0x5c8b77,_0x27b147)=>{this['setActiveAnnotation'](_0x27b147);}),this['listenTo'](_0x5ca34f,'blur',()=>{this['setActiveAnnotation'](null);});const _0x19e87f=this['context']instanceof _0xa578e9?this['context']['editors']:new _0x4c2a37([this['context']]);for(const _0xade924 of _0x19e87f)this['_integrateWithEditorAnnotations'](_0xade924);this['listenTo'](_0x19e87f,'add',(_0xe88503,_0x328716)=>{this['listenTo'](_0x328716,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x328716);});}),this['listenTo'](_0x19e87f,'remove',(_0x3cc166,_0x13dbae)=>{_0x13dbae['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x13dbae['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x336dea('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x52fcd3=this['context']['plugins']['get'](z);_0x52fcd3['_detachFromContainer'](this['annotations']),this['stopListening'](_0x52fcd3),this['stopListening'](this['annotations']),this['context']instanceof _0xa578e9&&this['stopListening'](this['context']['editors']);for(const _0x588fda of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x588fda);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x71e839){if(!_0x71e839['plugins']['has']('EditorAnnotations'))return;const _0x3151b4=_0x71e839['plugins']['get']('EditorAnnotations'),_0x13a649=()=>{const _0x33500a=_0x3151b4['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x33500a[0x0]||null);};this['listenTo'](_0x3151b4,'refresh',_0x13a649),this['listenTo'](_0x3151b4,'blur',(_0x30e963,{isAnnotationTracked:_0x3db9c8})=>{this['activeAnnotation']&&_0x3db9c8(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3151b4,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x21e325=>{_0x3151b4['hasDomSelection']()&&(_0x13a649(),_0x21e325['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3151b4);}['_destroyEditorAnnotationsIntegration'](_0xc2e9f9){this['stopListening'](_0xc2e9f9),this['_editorAnnotations']['remove'](_0xc2e9f9);}}class C extends _0x3b6043{['counterView'];constructor(_0x9483f7){super(_0x9483f7);const _0x18eed0=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x593aef,_0x2368eb)=>_0x593aef?'...':_0x2368eb['toString']()),this['set']('annotationType',''),this['icon']=_0x9b756,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x18eed0['to']('annotationType',_0x4dd475=>'ck-annotation-counter__badge--'+_0x4dd475),_0x18eed0['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x18eed0['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x119d87{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4de411){super(_0x4de411),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x41f773),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x4c2a37(),this['_refreshPositioningDebounced']=_0x11684c(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x16bc51(this['context']['locale']),this['balloonPanelView']=new _0x1c7653(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x5dfaad){this['annotations']=_0x5dfaad;const _0x17f380=this['context']['plugins']['get'](z),_0x9cff02=this['balloonPanelView'];if(_0x17f380['_annotations']=_0x5dfaad,this['isAttached'])throw new _0x336dea('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x17f380,'set:container',()=>{this['detach'](),this['listenTo'](_0x17f380,'change:container',_0x46b009=>{_0x46b009['off'](),this['attach'](_0x5dfaad);});}),_0x17f380['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4f4113=_0x2579e4=>{const _0x5a7800=new C(this['context']['locale']);_0x17f380['addAnnotation'](_0x2579e4,_0x5a7800),this['_annotationToNarrowView']['set'](_0x2579e4,_0x5a7800),_0x5a7800['bind']('isDirty','annotationType','number')['to'](_0x2579e4['view'],'isDirty','type','length'),_0x5a7800['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x9cff02['content']['first']!==_0x2579e4['view']?(this['_showBalloon'](_0x2579e4),_0x2579e4['view']['element']['focus'](),this['setActiveAnnotation'](_0x2579e4)):this['setActiveAnnotation'](null);});};for(const _0x444062 of _0x5dfaad)_0x4f4113(_0x444062);this['listenTo'](_0x5dfaad,'add',(_0x432507,_0x4e3235)=>{_0x4f4113(_0x4e3235);}),this['listenTo'](_0x5dfaad,'remove',(_0xfd44c3,_0x2b997a,_0x3a0f58)=>{this['_annotationToNarrowView']['get'](_0x2b997a)['destroy'](),this['_annotationToNarrowView']['delete'](_0x2b997a),_0x17f380['rearrange']({'removedAnnotation':_0x2b997a,'previousAnnotation':_0x5dfaad['get'](_0x3a0f58-0x1),'nextAnnotation':_0x5dfaad['get'](_0x3a0f58+0x1)}),_0x2b997a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5dfaad,'focus',(_0x1c6e59,_0x783373)=>{this['setActiveAnnotation'](_0x783373);}),this['listenTo'](_0x5dfaad,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x262d0f,_0x377af8)=>{_0x377af8['keyCode']===_0x48670c['esc']&&_0x9cff02['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x9cff02['content']['first']),this['_hideBalloon'](),_0x377af8['stopPropagation'](),_0x377af8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x30a521,_0x23cb01)=>{const _0x2d7cc6=_0x23cb01['target'];_0x9cff02['isVisible']&&_0x9cff02['element']['contains'](_0x2d7cc6)||_0x17f380['view']['element']['contains'](_0x2d7cc6)||_0x30a521['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x9c8683=>_0x9c8683['contains'](_0x2d7cc6))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x359b97=this['context']instanceof _0xa578e9?this['context']['editors']:new _0x4c2a37([this['context']]);for(const _0x50c1ca of _0x359b97)this['_integrateWithEditorAnnotations'](_0x50c1ca);this['listenTo'](_0x359b97,'add',(_0x5e159c,_0x56de3b)=>{this['listenTo'](_0x56de3b,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x56de3b);});}),this['listenTo'](_0x359b97,'remove',(_0x2af679,_0x414fcc)=>{_0x414fcc['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x414fcc['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x10487d){if(_0x10487d===this['activeAnnotation'])return;const _0x373c8e=this['context']['plugins']['get'](z);if(_0x373c8e['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x10487d,'disableAnimationOnActivatedAnnotation':!0x0}),_0x10487d)_0x373c8e['getSidebarItemView'](_0x10487d)?this['_showBalloon'](_0x10487d):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x10487d;}['detach'](){if(!this['isAttached'])throw new _0x336dea('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x53e3a8=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x4c7989=>_0x4c7989['destroy']()),this['_annotationToNarrowView']['clear'](),_0x53e3a8['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0xa578e9&&this['stopListening'](this['context']['editors']);for(const _0x1644bf of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1644bf);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'](_0x520b06){if(!_0x520b06['plugins']['has']('EditorAnnotations'))return;const _0x5d13c1=_0x520b06['plugins']['get']('EditorAnnotations'),_0x27a74b=this['context']['plugins']['get'](z),_0x1706c8=this['annotations'],_0x5061a2=this['balloonPanelView'],_0x44813f=()=>{const _0x1e53d0=_0x5d13c1['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1e53d0),this['setActiveAnnotation'](_0x1e53d0[0x0]||null);};this['listenTo'](_0x5d13c1,'refresh',_0x44813f),this['listenTo'](_0x5d13c1,'blur',(_0x391172,{isAnnotationTracked:_0x40643d})=>{this['activeAnnotation']&&_0x40643d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x5d13c1,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1706c8,'blur',_0x26f47a=>{_0x5d13c1['hasDomSelection']()&&_0x26f47a['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1ad586,_0x2b6adf)=>{const _0x4af3e4=_0x2b6adf['target'];_0x5061a2['isVisible']&&_0x5061a2['element']['contains'](_0x4af3e4)||_0x27a74b['view']['element']['contains'](_0x4af3e4)||this['activeAnnotation']&&_0x5d13c1['hasDomSelection']()&&(_0x44813f(),_0x1ad586['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x5d13c1);}['_destroyEditorAnnotationsIntegration'](_0x4db248){_0x4db248&&(this['stopListening'](_0x4db248),this['_editorAnnotations']['remove'](_0x4db248));}['_setSelectedAnnotations'](_0x53acc5){for(const _0x4509f8 of this['_selectedAnnotations'])_0x53acc5['includes'](_0x4509f8)||this['_manuallyClosedAnnotationViews']['delete'](_0x4509f8['view']);this['_selectedAnnotations']=_0x53acc5;}['_refreshPositioning'](){const _0x24fae6=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x24fae6['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3c0cff){if(this['_manuallyClosedAnnotationViews']['has'](_0x3c0cff['view']))return;const _0x5086ec=this['balloonPanelView']['content']['first'];_0x5086ec!==_0x3c0cff['view']?(_0x5086ec&&this['_detachListeners'](_0x5086ec),this['_attachListeners'](_0x3c0cff['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3c0cff['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x152f0e=this['balloonPanelView']['content']['first'],_0x2fcb70=_0x152f0e&&this['annotations']['getByView'](_0x152f0e);if(!_0x2fcb70||!this['_annotationToNarrowView']['has'](_0x2fcb70))return;const _0x59faaf=this['_annotationToNarrowView']['get'](_0x2fcb70)['element'],_0x5c204a=(function(){const _0x469658=_0x1c7653['defaultPositions'];return[_0x469658['southArrowNorthEast'],_0x469658['northArrowSouthEast'],_0x469658['southArrowNorth'],_0x469658['northArrowSouth'],_0x469658['southArrowNorthWest'],_0x469658['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x59faaf,'positions':_0x5c204a});}['_hideBalloon'](){const _0x2f4c06=this['balloonPanelView'],_0x19e29c=_0x2f4c06['content']['first'];_0x19e29c&&(this['_detachListeners'](_0x19e29c),_0x2f4c06['unpin'](),_0x2f4c06['content']['clear']());}['_attachListeners'](_0x450d16){this['listenTo'](_0x450d16,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x450d16,'Esc',(_0x3efb79,_0x1f1be5)=>{this['_manuallyClosedAnnotationViews']['add'](_0x450d16),this['_hideBalloon'](),_0x1f1be5();});}['_detachListeners'](_0x5c0cd9){this['stopListening'](_0x5c0cd9);}}class c extends _0x5d6037{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x5892c5,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11a607){super(_0x11a607),_0x11a607['editing']['view']['addObserver'](_0x403803),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x11a607['plugins']['get'](_0x5892c5),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x40ab13=this['editor']['plugins']['get'](M);_0x40ab13['context']===this['editor']&&(_0x40ab13['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x5030a8,_0x3b8767)=>{const _0x14e981=this['_balloon'];if(this['isAttached']&&_0x14e981['visibleView']){const _0x579c22=this['annotations']['getByView'](_0x14e981['visibleView']);_0x579c22&&this['_closeAnnotation'](_0x579c22),_0x3b8767();}}));}['afterInit'](){const _0x596957=this['editor']['plugins']['get'](M);_0x596957['context']===this['editor']&&(_0x596957['hasActive']()||_0x596957['switchTo']('inline'));}['setActiveAnnotation'](_0x2f0975){_0x2f0975!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2f0975&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2f0975)&&this['_addAnnotationToBalloon'](_0x2f0975,!0x0),_0x2f0975['isActive']=!0x0),_0x2f0975||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2f0975);}['attach'](_0x283f3e){this['annotations']=_0x283f3e;const _0x276959=this['editor']['plugins']['get'](M),_0x1a4918=this['_balloon'];if(this['isAttached'])throw new _0x336dea('inlineannotations-attach-already-attached',this);if(_0x276959['context']!==this['editor'])throw new _0x336dea('inlineannotations-not-allowed-with-context',this);const _0x23f47d=this['editor']['plugins']['get'](P);this['listenTo'](_0x23f47d,'refresh',()=>{const _0x786e28=_0x23f47d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x2758a6,_0x4bfe6a;!this['_forceRefresh']&&(_0x2758a6=_0x786e28,_0x4bfe6a=this['_selectedAnnotations'],_0x2758a6['length']===_0x4bfe6a['length']&&_0x2758a6['every'](_0x129520=>_0x4bfe6a['includes'](_0x129520)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x786e28),this['setActiveAnnotation'](_0x786e28[0x0]||null));}),this['listenTo'](_0x23f47d,'blur',(_0x1fdb9a,{isAnnotationTracked:_0x546b45})=>{this['activeAnnotation']&&_0x546b45(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x42eb23,_0x538f4d,_0x4d904d)=>{_0x4d904d||this['setActiveAnnotation'](null);}),this['listenTo'](_0x283f3e,'remove',(_0x342c33,_0x4fc6d8)=>{this['_removeAnnotationFromBalloon'](_0x4fc6d8),_0x4fc6d8===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1a4918,'change:visibleView',(_0x57093c,_0x59f76c,_0x35b8ec,_0x5b2129)=>{_0x5b2129&&this['stopListening'](_0x5b2129);const _0x3b9dd2=_0x283f3e['getByView'](_0x35b8ec);_0x35b8ec&&_0x3b9dd2&&(this['listenTo'](_0x35b8ec,'change:height',()=>{_0x1a4918['updatePosition']();}),this['listenTo'](_0x35b8ec,'Esc',()=>{this['_closeAnnotation'](_0x3b9dd2),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x3b9dd2&&this['setActiveAnnotation'](_0x3b9dd2));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x1a4918['visibleView']&&(_0x283f3e['getByView'](_0x1a4918['visibleView'])&&_0x1a4918['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 _0x336dea('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x33b3d6 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x33b3d6);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x543939){for(const _0x522a6b of this['_selectedAnnotations'])_0x543939['includes'](_0x522a6b)||this['_manuallyClosed']['delete'](_0x522a6b);for(const _0x1e8d41 of this['annotations'])_0x543939['includes'](_0x1e8d41)||this['_removeAnnotationFromBalloon'](_0x1e8d41);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x2e8a37 of _0x543939)this['_addAnnotationToBalloon'](_0x2e8a37);}this['_selectedAnnotations']=_0x543939;}['_addAnnotationToBalloon'](_0x571be3,_0x17fdd9=!0x1){this['_manuallyClosed']['has'](_0x571be3)||(this['_addedAnnotations']['has'](_0x571be3)||this['_balloon']['hasView'](_0x571be3['view'])||(this['_addedAnnotations']['add'](_0x571be3),this['_balloon']['add']({'stackId':_0x571be3['view']['id'],'view':_0x571be3['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x571be3)}})),_0x17fdd9&&this['_balloon']['showStack'](_0x571be3['view']['id']));}['_getBalloonTargetForAnnotation'](_0x493c6b){const _0x4ed783=_0x493c6b['target'],_0x22423c=this['editor']['editing']['view'],_0x555988=_0x22423c['document']['selection']['getFirstRange'](),_0x1c7a41=_0x22423c['domConverter']['viewRangeToDom'](_0x555988);if(_0x1c7a41['collapse'](!0x0),_0x4ed783){if(_0x4ed783 instanceof _0x487b14)return _0x4ed783;let _0x1fba32=[];for(const _0x5a59c4 of _0x4ed783)_0x1fba32['push'](...(_0x5a187a=_0x5a59c4['getClientRects'](),Array['from'](_0x5a187a)['map'](DOMRect['fromRect'])));_0x1fba32=function(_0x22b4fa){const _0x51b8e5=[];let _0x5d3fa2=_0x22b4fa[0x0];for(let _0x19de69=0x1;_0x19de69<_0x22b4fa['length'];_0x19de69++)B(_0x5d3fa2,_0x22b4fa[_0x19de69])?_0x5d3fa2['width']+=_0x22b4fa[_0x19de69]['width']:(_0x51b8e5['push'](_0x5d3fa2),_0x5d3fa2=_0x22b4fa[_0x19de69]);return _0x51b8e5['push'](_0x5d3fa2),_0x51b8e5;}(_0x1fba32);const _0x1ac92b=_0x1c7a41['getBoundingClientRect']();return _0x1fba32['find'](_0x10478f=>_0x10478f['top']<=_0x1ac92b['top']&&_0x10478f['bottom']>=_0x1ac92b['bottom']&&_0x10478f['left']<=_0x1ac92b['left']&&_0x10478f['right']>=_0x1ac92b['right'])||_0x1fba32[0x0];}var _0x5a187a;return _0x493c6b['targetRect']||_0x1c7a41;}['_removeAnnotationFromBalloon'](_0x4b6398){this['_addedAnnotations']['has'](_0x4b6398)&&this['_balloon']['hasView'](_0x4b6398['view'])&&(this['_addedAnnotations']['delete'](_0x4b6398),this['_balloon']['remove'](_0x4b6398['view']));}['_closeAnnotation'](_0x1f9478){this['_manuallyClosed']['add'](_0x1f9478),this['_removeAnnotationFromBalloon'](_0x1f9478);}}function B(_0x2da158,_0x27dac6){return _0x2da158['top']===_0x27dac6['top']&&_0x2da158['bottom']===_0x27dac6['bottom']&&_0x2da158['right']===_0x27dac6['left'];}class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x34f1c2,_0xff768){super(_0x34f1c2),this['set']('isEmpty',!_0xff768['length']),this['focusTracker']=new _0xa2a08e(),this['_annotationViews']=_0xff768,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x4869b6({'focusables':_0xff768,'focusTracker':this['focusTracker']}),this['listenTo'](_0xff768,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0xff768,'remove',(_0x2434d7,_0x842da4)=>{_0x842da4['isActive']&&this['focus'](),_0xff768['length']||(this['isEmpty']=!0x0);});const _0x329a41=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x34f1c2,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0xff768},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x329a41['if']('isEmpty','ck-hidden',_0x490509=>!_0x490509)]},'children':[{'text':E(_0x34f1c2,'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 _0x3c8247 of this['_annotationViews'])this['focusTracker']['add'](_0x3c8247['element']);this['_annotationViews']['on']('change',(_0x2d738a,{added:_0x1aade3,removed:_0x1fde63})=>{for(const _0xdbe99 of _0x1aade3)this['focusTracker']['add'](_0xdbe99['element']);for(const _0x55db1d of _0x1fde63)this['focusTracker']['remove'](_0x55db1d['element']);});}}class f extends _0x119d87{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x17d333){super(_0x17d333),this['archivedThreads']=new _0x4c2a37();}['init'](){const _0x46634b=this['context'],_0x5de2af=_0x46634b['plugins']['get'](o),_0x9a7087=_0x46634b['plugins']['get'](O);this['listenTo'](_0x5de2af,'addCommentThread',(_0x1356fa,{threadId:_0x1919dc})=>{const _0x3a49a0=_0x5de2af['getCommentThread'](_0x1919dc);_0x3a49a0['archivedAt']&&this['archivedThreads']['add'](_0x3a49a0,this['_calculatePosition'](_0x3a49a0['archivedAt'])),this['listenTo'](_0x3a49a0,'change:archivedAt',(_0x5435b5,_0x323a83,_0x325e85)=>{_0x325e85?this['archivedThreads']['has'](_0x3a49a0)||this['archivedThreads']['add'](_0x3a49a0,this['_calculatePosition'](_0x3a49a0['archivedAt'])):this['archivedThreads']['has'](_0x3a49a0)&&this['archivedThreads']['remove'](_0x3a49a0);});}),this['listenTo'](_0x5de2af,'removeCommentThread',(_0x5edb1a,{threadId:_0x3b0f68})=>{const _0x373e39=_0x5de2af['getCommentThread'](_0x3b0f68);this['stopListening'](_0x373e39),this['archivedThreads']['has'](_0x373e39)&&this['archivedThreads']['remove'](_0x373e39);},{'priority':'highest'}),this['listenTo'](_0x9a7087['collection'],'focus',(_0x551f53,_0x1e7f24)=>{_0x1e7f24['isVisible']||(_0x1e7f24['isActive']=!0x0,_0x9a7087['activate'](_0x1e7f24));});}['_calculatePosition'](_0x5daa00){const _0x23f4d9=[...this['archivedThreads']]['findIndex'](_0x32a43d=>_0x32a43d['archivedAt']<_0x5daa00);return _0x23f4d9>-0x1?_0x23f4d9:this['archivedThreads']['length'];}}class a extends _0x5d6037{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x3a5fff];}constructor(_0x3a006d){super(_0x3a006d),this['annotationViews']=new _0x516608(),this['_pendingThreads']=[];}['init'](){const _0x40cdcd=this['editor'],_0x4f6a08=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x40cdcd['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3b6043,!0x0)),_0x40cdcd['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x48d6b1=this['_createCommentsArchiveButton'](_0x15c224);return _0x48d6b1['set']({'role':'menuitemcheckbox'}),_0x48d6b1;});const _0x11bdce=_0x40cdcd['plugins']['get'](f),_0x98ba56=_0x40cdcd['plugins']['get']('Annotations'),_0x4be103=_0x40cdcd['plugins']['get']('CommentsRepository');_0x11bdce['archivedThreads']['forEach'](_0x31c55c=>{this['_handleNewThread'](_0x31c55c);}),this['listenTo'](_0x11bdce['archivedThreads'],'add',(_0x393359,_0x564c03)=>{this['_handleNewThread'](_0x564c03);}),this['listenTo'](_0x98ba56['collection'],'add',(_0x386515,_0xadce3b)=>{const _0x28fe66=this['_pendingThreads']['find'](_0xe31dc=>{const _0x313732=_0x4be103['_threadToController']['get'](_0xe31dc);return _0x313732&&_0xadce3b['innerView']===_0x313732['view'];});if(_0x28fe66){const _0x56bb1e=this['_calculatePosition'](_0x28fe66['archivedAt']);this['annotationViews']['add'](_0xadce3b['view'],_0x56bb1e),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x28fe66),0x1);}}),this['listenTo'](_0x11bdce['archivedThreads'],'remove',(_0x22ebbc,_0x292232)=>{const _0x4257d8=_0x40cdcd['config']['get']('collaboration.channelId');if(!_0x4257d8||_0x292232['channelId']===_0x4257d8){if(this['_pendingThreads']['includes'](_0x292232))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x292232),0x1);else{const _0x317d03=_0x4be103['_threadToController']['get'](_0x292232),_0x3e25a4=_0x98ba56['getByInnerView'](_0x317d03['view']);this['annotationViews']['remove'](_0x3e25a4['view']),this['stopListening'](_0x3e25a4['focusableElements']);}}}),this['listenTo'](_0x98ba56['collection'],'add',(_0x47d199,_0x29eb9a)=>{this['listenTo'](_0x29eb9a,'escape',_0x4f6a08);}),this['listenTo'](_0x98ba56['collection'],'remove',(_0x16d9f2,_0xa2418a)=>{this['stopListening'](_0xa2418a,'escape',_0x4f6a08);});}['_handleNewThread'](_0x1e0f54){const _0x3bb6f7=this['editor']['plugins']['get']('CommentsRepository'),_0x17f7d6=this['editor']['plugins']['get']('Annotations'),_0x1dfcfd=this['editor']['config']['get']('collaboration.channelId');if(!_0x1dfcfd||_0x1e0f54['channelId']===_0x1dfcfd){const _0x10cd81=_0x3bb6f7['_threadToController']['get'](_0x1e0f54);if(!_0x10cd81)return void this['_pendingThreads']['push'](_0x1e0f54);const _0x4bd17f=this['_calculatePosition'](_0x1e0f54['archivedAt']),_0x14c2b6=_0x17f7d6['getByInnerView'](_0x10cd81['view']);_0x14c2b6['isVisible']&&_0x17f7d6['_visibleAnnotations']['remove'](_0x14c2b6),this['annotationViews']['add'](_0x14c2b6['view'],_0x4bd17f);}}['_calculatePosition'](_0x374ca0){const _0x456156=this['editor']['config']['get']('collaboration.channelId'),_0x547004=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x175143=>_0x175143['channelId']===_0x456156)['findIndex'](_0x10d045=>_0x10d045['archivedAt']<_0x374ca0);return _0x547004<0x0||_0x547004>this['annotationViews']['length']?this['annotationViews']['length']:_0x547004-0x1;}['_toggleDialog'](){const _0x47a848=this['editor'],_0x1fbe78=_0x47a848['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x47a848['locale'],this['annotationViews'])),'commentsArchive'===_0x1fbe78['id']?_0x1fbe78['hide']():_0x1fbe78['show']({'id':'commentsArchive','title':E(_0x47a848['locale'],'COMMENTS_ARCHIVE'),'icon':_0x454ed4,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x406a14['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x510503,_0x19ff98=!0x1){const _0x5a157a=this['editor']['locale'],_0x3e65d0=this['editor']['plugins']['get']('Dialog'),_0x379010=new _0x510503(_0x5a157a);return _0x379010['bind']('isEnabled')['to'](this,'isEnabled'),_0x379010['bind']('isOn')['to'](_0x3e65d0,'id',_0x3705a6=>'commentsArchive'===_0x3705a6),_0x379010['set']({'label':E(_0x5a157a,'COMMENTS_ARCHIVE'),'icon':_0x454ed4,'isToggleable':!0x0}),_0x19ff98&&(_0x379010['tooltip']=!0x0),this['listenTo'](_0x379010,'execute',()=>this['_toggleDialog']()),_0x379010;}['_hideDialogOnAnnotationEscape']=_0x446515=>{const _0x257a3f=_0x446515['source'];if(!this['annotationViews']['has'](_0x257a3f['view']))return;const _0x3fe823=this['editor']['plugins']['get']('Dialog');_0x3fe823['isOpen']&&'commentsArchive'===_0x3fe823['id']&&(_0x3fe823['hide'](),_0x446515['stop']());};}class p extends _0x5d6037{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,_ as AnnotationCollection,S as AnnotationView,O as Annotations,M as AnnotationsUIs,ts as BaseCommentThreadView,hs as BaseCommentView,fi as Comment,ui as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar};
23
+ import{Editor as _0x510f43,ContextPlugin as _0x474ed3,PendingActions as lt,Command as _0x50221b,Plugin as _0x39c08c,Context as _0x2f3774}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x586f16,uid as _0x25f5e2,KeystrokeHandler as jt,FocusTracker as _0x47c1df,diff as _0x13171e,Collection as _0xe77389,Rect as _0x4a96a9,CKEditorError as _0x388981,first as _0xda7f63,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x4ddb0d,keyCodes as _0x1ffe74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x4d1a2b,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x28d0fb,trimHtml as _0x559ff4,LateFocusDropdownButtonView as _0x1b0d6e,Users as st,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x5a6ef5}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x4e3986}from'es-toolkit/compat';import{IconUndo as _0x3b57b3,IconCheck as _0x4cc545,IconPencil as _0x5914e6,IconRemoveComment as _0x96488f,IconThreeVerticalDots as _0x260a0b,IconAddComment as _0x1bf1d3,IconCommentsArchive as _0x3ca749}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x2f783a,ButtonView as _0x57ea8a,ViewCollection as _0x2335d5,createDropdown as _0x27349f,ListView as _0x4f15c6,focusChildOnDropdownOpen as _0x5b2ef7,ListItemView as _0xd0b8e8,MenuBarMenuListItemButtonView as _0x58cbad,BodyCollection as _0x230760,BalloonPanelView as _0x261e7b,ContextualBalloon as _0x47c489,Dialog as _0x524e08,DialogViewPosition as tt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x4bd5e3}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 Et}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Gt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Jt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Kt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x47530a}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x52e501}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x586f16(){['model'];['view'];constructor(_0x2cb8c8,_0x14d906){super(),this['model']=_0x2cb8c8,this['model']['_isAttached']=!0x0,this['view']=_0x14d906,this['listenTo'](_0x14d906,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x14d906,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x14d906,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x14d906,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x14d906,'addComment',(_0x252a29,_0x411333)=>this['addComment'](_0x411333)),this['listenTo'](_0x14d906,'updateComment',(_0x8c151b,_0xcfe9bb,_0x193dba)=>this['updateComment'](_0xcfe9bb,_0x193dba)),this['listenTo'](_0x14d906,'removeComment',(_0x4ec438,_0x4384ea)=>this['removeComment'](_0x4384ea));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x3d23cb){this['model']['addComment']({'content':_0x3d23cb,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0xea97d5,_0x3d12e1){this['model']['getComment'](_0xea97d5)['update']({'content':_0x3d12e1});}['removeComment'](_0x1fad42){this['model']['getComment'](_0x1fad42)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x455ad7,_0x45c516,_0x53df88){const t=_0x455ad7['t'];switch(_0x45c516){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'},_0x53df88);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'},_0x53df88);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'},_0x53df88);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'},_0x53df88);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x53df88);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'},_0x53df88);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'},_0x53df88);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'},_0x53df88);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 Vt extends Xt{['main'];['editable'];constructor(_0x4ecc9c,_0x3bfed4){super(_0x4ecc9c);const _0x4ad724=_0x25f5e2();this['main']=this['createCollection'](),this['editable']=new $t(_0x4ecc9c,_0x3bfed4,void 0x0,{'label':()=>E(_0x4ecc9c,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x4ecc9c['uiLanguageDirection'],'lang':_0x4ecc9c['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x4ad724},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Ut{['view'];constructor(_0x712bcc){super(_0x712bcc),this['view']=new Vt(_0x712bcc['locale'],_0x712bcc['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x13fe6d=this['editor']['editing']['view'],_0x1bfa6c=this['view']['editable'],_0x11e596=_0x13fe6d['document']['getRoot']();_0x1bfa6c['name']=_0x11e596['rootName'],this['view']['render']();const _0x367fb4=_0x1bfa6c['element'];this['setEditableElement'](_0x1bfa6c['name'],_0x367fb4),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x13fe6d['attachDomRoot'](_0x367fb4),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x586f16(_0x510f43){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x22d552={}){function _0x25a30b(_0x37f690){return _0x37f690['map'](_0x144c43=>String['fromCharCode'](_0x144c43))['join']('');}(_0x22d552=Object['assign']({},_0x22d552))['plugins']||(_0x22d552['plugins']=Rt['defaultPlugins']),super(_0x22d552),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x25a30b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25a30b([0x76,0x69,0x65,0x77])][_0x25a30b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25a30b([0x61,0x75,0x74,0x6f]),this[_0x25a30b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x25a30b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25a30b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x25a30b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x25a30b([0x6f,0x6b])});}['create'](){const _0x361935=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x361935))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x168905=>{const _0x4faeca=this['model']['document']['getRoot'](),_0x21b808=_0x4faeca&&_0x4faeca['getChild'](_0x4faeca['childCount']-0x1);_0x168905['setSelection'](_0x21b808,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x436b3a=this['editing']['view'],_0x58a15d=_0x436b3a['document']['getRoot'](),_0x1fd689=_0x58a15d['getChild'](0x0);_0x58a15d['childCount']>0x1||!_0x1fd689||'p'!=_0x1fd689['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x436b3a,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x1fd689['placeholder']=this['placeholder']),Ft({'view':_0x436b3a,'element':_0x1fd689,'keepOnFocus':!0x0}),this['placeholderElement']=_0x1fd689);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4be0b1,_0x18727b={}){super(_0x4be0b1),this['editor']=null,this['_editorConfig']=_0x18727b,this['set']('value',_0x18727b['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x4be0b1,'Reply...')),this['set']('submitLabel',E(_0x4be0b1,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x47c1df(),this['focusCycler']=new _0x2f783a({'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',(_0x1ae70d,_0x4d36a)=>{this['cancelButtonView']['fire']('execute'),_0x4d36a();}),this['keystrokes']['set']('Ctrl+Enter',(_0x30d9c0,_0x212f8c)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x212f8c());}),this['on']('submit',(_0x1a6da9,_0x505b3c)=>{_0x505b3c['length']>0xfde8?(alert(E(_0x4be0b1,'TOO_LONG_COMMENT_ALERT',[_0x505b3c['length'],0xfde8])),_0x1a6da9['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4ada90=this['editor'];this['element']['insertBefore'](_0x4ada90['ui']['element'],this['element']['firstChild']),_0x4ada90['model']['document']['on']('change',()=>this['value']=_0x4ada90['getData']()),_0x4ada90['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4ada90['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1ba038){-0x1===_0x1ba038?(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:_0x2230d7}=this,_0x43e213=new _0x57ea8a(_0x2230d7);return _0x43e213['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x43e213['withText']=!0x0,_0x43e213['bind']('label')['to'](this,'submitLabel'),_0x43e213['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x43e213['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x22bfee,_0x2a17a8)=>!_0x2a17a8&&!!_0x22bfee['trim']()),_0x43e213;}['_createCancelButton'](){const {locale:_0x375fe2}=this,_0x41fb7a=new _0x57ea8a(_0x375fe2);return _0x41fb7a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x41fb7a['label']=E(_0x375fe2,'Cancel'),_0x41fb7a['withText']=!0x0,_0x41fb7a['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x41fb7a;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xdf64e9=>{this['focusTracker']['add'](_0xdf64e9['element']);}),this['focusables']['on']('change',(_0x856036,_0x55a93d)=>{for(const _0x1e677b of Array['from'](_0x55a93d['added'])['reverse']())this['focusTracker']['add'](_0x1e677b['element']);});}}class ie extends kt{constructor(_0x381e2b,_0x5544b2,_0xdeb963){super(_0x381e2b),this['commentInputView']=new hs(_0x381e2b,_0xdeb963),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x21909b,_0x2ec20f)=>_0x21909b||!!_0x2ec20f),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 _0x4d1a2b(_0x381e2b,_0x5544b2),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'](_0x2f7429){this['commentInputView']['focus'](_0x2f7429);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x1933ad,_0x8f9540)=>{const {submitButtonView:_0x4db942,cancelButtonView:_0x472b57,editor:_0x1b21db}=this['commentInputView'];[_0x4db942['element'],_0x472b57['element'],_0x1b21db?_0x1b21db['editing']['view']['getDomRoot']():null]['filter'](_0xa01a18=>_0xa01a18)['some'](_0x1d9d2d=>_0x1d9d2d['contains'](_0x8f9540['target']))||(this['focus'](),_0x8f9540['preventDefault']());});}}class cs extends kt{constructor(_0x4d2a2f){super(_0x4d2a2f);const _0x254bcf=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x254bcf['to']('count',_0x428012=>E(_0x4d2a2f,'NUMBER_OF_COMMENTS',_0x428012))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x39ed70,_0x24ae26,_0x4e33fd){super(_0x39ed70);const _0x2e45d0=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x24ae26['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x24ae26,this['_config']=_0x4e33fd,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x47c1df(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2f783a({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2654f0=>this['commentViews']['map'](_0x508a79=>_0x508a79['element'])['includes'](_0x2654f0['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x39ed70),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x5b3c88=>_0x5b3c88-this['_config']['maxCommentsWhenCollapsed']);for(const _0x506c51 of _0x24ae26['comments'])this['_handleNewCommentModel'](_0x506c51);this['_handleInfoComment'](),this['listenTo'](_0x24ae26['comments'],'add',(_0x30e0e6,_0x4c9203)=>{const _0x5dc542=this['_calculatePosition'](_0x4c9203);this['length']++,this['_handleNewCommentModel'](_0x4c9203,_0x5dc542),this['refreshVisibleViews']();}),this['listenTo'](_0x24ae26['comments'],'remove',(_0x4e0afe,_0x25135b)=>{this['length']--,this['_handleRemoveCommentModel'](_0x25135b),this['refreshVisibleViews']();}),this['listenTo'](_0x24ae26,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x24ae26,'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',_0x2e45d0['if']('length','ck-hidden',_0x5b21b5=>!_0x5b21b5)],'aria-label':E(_0x39ed70,'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'](_0x29fa25){-0x1===_0x29fa25?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x2a9197 of this['commentViews'])_0x2a9197['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x32e17e,_0x5ea4af){const _0x131ae0=new this['_config']['CommentView'](this['locale'],_0x32e17e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x131ae0['viewUid']=_0x32e17e['id'],_0x131ae0['delegate']('removeComment')['to'](this),_0x131ae0['delegate']('updateComment')['to'](this),_0x131ae0['delegate']('resolveCommentThread')['to'](this),_0x131ae0['delegate']('editorReady')['to'](this),_0x131ae0['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x131ae0,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x131ae0,_0x5ea4af);}['_calculatePosition'](_0x45f46e){const _0x2a5f10=this['_model']['_findOptimalIndex'](_0x45f46e);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x45f46e['authoredAt']?_0x2a5f10-0x1:_0x2a5f10:_0x2a5f10-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4b49ab={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':E(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x4b49ab,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4b49ab));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x8aef5e){const _0x5698ec=this['commentViews']['remove'](_0x8aef5e['id']);this['stopListening'](_0x5698ec),_0x5698ec['isEditMode']&&this['_updateHasDirtyComment'](),_0x5698ec['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2a4e5c=>_0x2a4e5c['isEditMode']);}['_rearrangeCollapse'](){const _0x3a7066=function(_0x591dbf){const _0x10d78f=new _0xe77389();for(const _0x4e5c47 of _0x591dbf)_0x10d78f['add'](_0x4e5c47);return _0x10d78f;}(this['commentViews']),_0x9bfb78=this['_collapsedCommentsView']['count'];for(let _0x2608fe=0x1;_0x2608fe<=_0x9bfb78;_0x2608fe++)_0x3a7066['remove'](0x1);for(const _0x34c66d of _0x3a7066)_0x34c66d['collapse']();_0x9bfb78>0x0&&_0x3a7066['add'](this['_collapsedCommentsView'],0x1),as(_0x13171e(Array['from'](this['visibleViews']),Array['from'](_0x3a7066)),this['visibleViews'],_0x3a7066);}['_rearrangeExpand'](){as(_0x13171e(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x3464ea of this['visibleViews'])_0x3464ea['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2a1790=>{this['focusTracker']['add'](_0x2a1790['element']),this['keystrokes']['listenTo'](_0x2a1790['element']);}),this['commentViews']['on']('change',(_0x4c80f6,_0x17cfd2)=>{for(const _0x4d31c4 of _0x17cfd2['removed'])this['focusTracker']['remove'](_0x4d31c4['element']),this['keystrokes']['stopListening'](_0x4d31c4['element']);for(const _0x22369b of Array['from'](_0x17cfd2['added'])['reverse']())this['focusTracker']['add'](_0x22369b['element']),this['keystrokes']['listenTo'](_0x22369b['element']);});}}function as(_0x9ecba4,_0x50c7cc,_0x338781){let _0x2aac2b=0x0;for(const _0x5679f0 of _0x9ecba4)switch(_0x5679f0){case'insert':_0x50c7cc['add'](_0x338781['get'](_0x2aac2b),_0x2aac2b),_0x2aac2b++;break;case'delete':_0x50c7cc['remove'](_0x2aac2b);break;case'equal':_0x2aac2b++;}}class ls extends kt{constructor(_0x21fc4b){super(_0x21fc4b);const _0x4c4d96=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4c4d96['to']('contextValue',_0x5e952c=>E(_0x21fc4b,'THREAD_CONTEXT_LABEL',_0x5e952c)),'tabindex':-0x1},'children':[{'text':_0x4c4d96['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1d61c5,_0x585642){super(_0x1d61c5);const _0x3adc2f=this['bindTemplate'];this['_model']=_0x585642,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x47c1df(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2f783a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x1bd7b5=>!!_0x1bd7b5),this['bind']('contextValue')['to'](this['_model'],'context',_0x573e3d=>_0x573e3d&&_0x573e3d['value']?this['_trimContextValue'](_0x573e3d['value']):E(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',_0x3adc2f['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 _0x5536db=new _0x57ea8a(this['locale']);return _0x5536db['label']=E(this['locale'],'Reopen'),_0x5536db['tooltip']=E(this['locale'],'Reopen'),_0x5536db['icon']=_0x3b57b3,_0x5536db['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x303236=>!_0x303236),_0x5536db['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5f0f8a,_0x38b3df)=>_0x5f0f8a&&_0x38b3df),_0x5536db['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x5536db;}['_trimContextValue'](_0x3d5ad7){if(_0x3d5ad7['length']<0x96)return _0x3d5ad7;const _0x22aac5=_0x3d5ad7['lastIndexOf']('\x20',0x93);return _0x3d5ad7['substring'](0x0,_0x22aac5>-0x1?_0x22aac5:0x93)+'...';}['_attachContextActions'](){const _0x5f4ea5=this['element']['querySelector']('.ck-context'),_0x3a8f2c=_0x5f4ea5['querySelector']('.ck-context__value');this['listenTo'](_0x5f4ea5,'mouseenter',()=>{_0x3a8f2c['offsetWidth']<_0x3a8f2c['scrollWidth']&&_0x5f4ea5['classList']['add']('overlay');}),this['listenTo'](_0x5f4ea5,'mouseleave',()=>{_0x5f4ea5['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x56b7c0 of this['focusables'])this['focusTracker']['add'](_0x56b7c0['element']),this['keystrokes']['listenTo'](_0x56b7c0['element']);}['_createContextView'](){const _0x4f0e76=new ls(this['locale']);return _0x4f0e76['bind']('contextValue')['to'](this),_0x4f0e76;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x48e71a,_0x5d6cf9,_0x1bee4c,_0x519ca2){super(_0x48e71a),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5d6cf9,this['_localUser']=_0x1bee4c,this['_config']=_0x519ca2,this['commentThreadHeaderView']=new Yt(_0x48e71a,_0x5d6cf9),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x48e71a,E(_0x48e71a,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x48e71a,_0x5d6cf9,Object['assign']({'CommentView':this['_config']['CommentView']},_0x519ca2)),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',(_0x453951,_0x52cd54)=>_0x453951||!!_0x52cd54),this['bind']('isUnlinked')['to'](_0x5d6cf9,'unlinkedAt',_0x18d897=>!!_0x18d897),this['bind']('ariaLabel')['to'](this,'length',_0x4a8833=>{const _0x5bea6d=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x4a8833,_0x5bea6d]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x47c1df(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2f783a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1991ac=>_0x1991ac['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x9c47d2=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5cb7ba=_0x9c47d2['commentInputView'];return _0x9c47d2['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5cb7ba,'value',(_0x5082b3,_0x3f2a9d,_0x2d24ee,_0x6ffe43,_0x1d676c)=>!!_0x1d676c||!!_0x6ffe43&&_0x2d24ee&&!_0x3f2a9d||_0x5082b3&&_0x2d24ee&&!_0x3f2a9d),_0x5cb7ba['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1ddae3,_0x27562d,_0x4b8b2f)=>{let _0x17f219;return _0x17f219=_0x4b8b2f&&_0x27562d?'Reply\x20to\x20reopen\x20discussion...':_0x1ddae3?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x17f219);}),_0x5cb7ba['bind']('submitLabel')['to'](this,'length',_0x387e36=>E(this['locale'],_0x387e36?'Reply':'Comment')),_0x5cb7ba['on']('submit',(_0x3598c7,_0x33d7ab)=>{this['fire']('addComment',_0x33d7ab),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5cb7ba['on']('cancel',()=>{this['focus']();}),_0x5cb7ba['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5cb7ba['on']('cancel',_0x5a34c1=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x5a34c1['stop']());}),this['on']('change:isActive',(_0x379422,_0x99ff12,_0x232cb5)=>{_0x232cb5||this['length']||_0x5cb7ba['value']||this['fire']('removeCommentThread');}),_0x9c47d2;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x58ac0,_0xc8324f,_0x1bcee5,_0x50ecc6){super(_0x58ac0,_0xc8324f,_0x1bcee5,_0x50ecc6),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x58ac0,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2407c4,_0x1403fd,_0x198670)=>{_0x198670||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0xbbb331,_0x3d2a9f,_0x5671e8)=>{_0x5671e8&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1c091a=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1c091a['if']('isActive','ck-thread--active'),_0x1c091a['if']('isUnlinked','ck-thread--unlinked'),_0x1c091a['if']('isConfirm','ck-thread--remove-confirmation'),_0x1c091a['to']('actionIndicator',_0x225549=>_0x225549?'ck-thread--'+_0x225549:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1c091a['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 _0x286dbf of this['commentsListView']['commentViews'])_0x286dbf['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3f9726}=this,_0x3fe369=this['commentsListView']['commentViews']['get'](0x0);_0x3fe369===this['_boundFirstCommentView']||_0x3fe369['isSystemComment']||(this['_boundFirstCommentView']=_0x3fe369,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3fe369,'actionIndicator',_0x5c46ca=>'remove'===_0x5c46ca?'remove':null),_0x3fe369['placeholder']=E(_0x3f9726,'Write\x20a\x20comment...'),_0x3fe369['removeButton']['on']('execute',_0x4c5c5c=>{_0x4c5c5c['stop'](),this['showConfirm'](E(_0x3f9726,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3fe369['focus']();}),_0x3fe369['actionBar']['add'](this['resolveButton'],0x0),_0x3fe369['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2740bb=new _0x28d0fb(this['locale']);return _0x2740bb['label']=E(this['locale'],'Resolve'),_0x2740bb['tooltip']=E(this['locale'],'Resolve'),_0x2740bb['icon']=_0x4cc545,_0x2740bb['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2740bb['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x449e29=>!_0x449e29),_0x2740bb['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x152208,_0x47b070)=>_0x152208&&!_0x47b070),_0x2740bb['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2740bb;}['_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 os extends kt{constructor(_0x546401){super(_0x546401),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x249297,_0x4b881d,_0x3cbfaf)=>{this['element']['innerHTML']=_0x3cbfaf;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5edf85,_0x2aca01,_0x160b52){super(_0x5edf85),this['_model']=_0x2aca01,this['_config']=_0x160b52,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x2aca01,'content',_0x2aca01,'authoredAt',(_0x41c9d1,_0x2993dc)=>E(_0x5edf85,'COMMENT_ARIA_LABEL',[_0x2aca01['author']['name'],_0x160b52['formatDateTime'](_0x2993dc),new DOMParser()['parseFromString'](_0x41c9d1,'text/html')['body']['textContent'],_0x2aca01['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x5edf85,E(_0x5edf85,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x2335d5(),this['focusTracker']=new _0x47c1df(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2f783a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x25da11=>_0x25da11['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']?E(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):E(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?E(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):E(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x4aff52=new os(this['locale']);return _0x4aff52['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x114f62,_0x5aa9fc)=>_0x5aa9fc?_0x559ff4(_0x114f62,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x114f62),_0x4aff52;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x315c8b=new hs(this['locale'],this['_config']['editorConfig']);return _0x315c8b['value']=this['_model']['content'],_0x315c8b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x315c8b['submitLabel']=E(this['locale'],'Save'),_0x315c8b['on']('submit',(_0x4c1f71,_0x2f2e08)=>{this['fire']('updateComment',this['_model']['id'],_0x2f2e08),this['switchToDisplayMode'](),this['focus']();}),_0x315c8b['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x315c8b['once']('editorReady',()=>{_0x315c8b['focus']();}),_0x315c8b['createEditor'](),_0x315c8b['delegate']('editorReady')['to'](this),_0x315c8b['delegate']('editorDestroyed')['to'](this),_0x315c8b;}['_setupKeyboardNavigation'](){const _0x40ad16=this['element'];this['keystrokes']['listenTo'](_0x40ad16);for(const _0x4327fd of this['focusables'])this['focusTracker']['add'](_0x4327fd['element']),this['keystrokes']['listenTo'](_0x4327fd['element']);this['focusables']['on']('change',(_0x410007,_0x501c5e)=>{for(const _0x3c09f4 of _0x501c5e['removed'])this['focusTracker']['remove'](_0x3c09f4['element']),this['keystrokes']['stopListening'](_0x3c09f4['element']);for(const _0xb71ec9 of _0x501c5e['added'])this['focusTracker']['add'](_0xb71ec9['element']),this['keystrokes']['listenTo'](_0xb71ec9['element']);}),this['keystrokes']['set']('enter',(_0x23ab7a,_0x16c09b)=>{_0x40ad16===_0x23ab7a['target']&&(this['focusCycler']['focusFirst'](),_0x16c09b());}),this['keystrokes']['set']('esc',(_0x13e630,_0x3f89d2)=>{_0x40ad16!==_0x13e630['target']&&(this['focus'](),_0x3f89d2());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0x4bbfcb,_0x3911b1,_0x44aac2){super(_0x4bbfcb,_0x3911b1,_0x44aac2),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x4bbfcb,'Reply...')),this['bind']('authoredAt')['to'](_0x3911b1),this['bind']('resolvedAt')['to'](_0x3911b1),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 _0x4d1a2b(_0x4bbfcb,_0x3911b1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3911b1,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x17f573=this['bindTemplate'],_0x58d0cd=[{'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':_0x17f573['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x17f573['to']('authoredAt',_0x4a5ebb=>this['_config']['formatDateTime'](_0x4a5ebb))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x17f573['if']('isEditMode','ck-comment__actions--hidden'),_0x17f573['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']&&_0x58d0cd['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x17f573['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x17f573['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x17f573['if']('isEditMode','ck-comment--edit'),_0x17f573['if']('isSystemComment','ck-comment--info'),_0x17f573['to']('actionIndicator',_0xef073a=>_0xef073a?'ck-comment--'+_0xef073a:'')],'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':_0x58d0cd}]}]};}['_createEditButton'](){const _0x4d6de6=new _0x57ea8a(this['locale']);return _0x4d6de6['label']=E(this['locale'],'Edit'),_0x4d6de6['icon']=_0x5914e6,_0x4d6de6['withText']=!0x0,_0x4d6de6['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x4d6de6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2d1883=>!_0x2d1883),_0x4d6de6['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x4d6de6['on']('execute',()=>this['switchToEditMode']()),_0x4d6de6;}['_createRemoveButton'](){const _0x5a1d70=new _0x57ea8a(this['locale']);return _0x5a1d70['label']=E(this['locale'],'Remove'),_0x5a1d70['icon']=_0x96488f,_0x5a1d70['withText']=!0x0,_0x5a1d70['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5a1d70['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xa4c61e=>!_0xa4c61e),_0x5a1d70['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5a1d70['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5a1d70;}['_createDropdown'](){const _0x14c320=_0x27349f(this['locale'],_0x1b0d6e),_0x1333a2=_0x14c320['panelView']['children'],_0x26053c=new _0x4f15c6(this['locale']),_0x51f092=_0x14c320['bindTemplate'];_0x5b2ef7(_0x14c320,()=>this['items']['find'](_0x2acfb2=>_0x2acfb2['isVisible'])),_0x14c320['extendTemplate']({'attributes':{'class':[_0x51f092['if']('isVisible','ck-hidden',_0x22f204=>!_0x22f204)]}});const _0x4092df=(_0x21c706,_0x48f21e=-0x1)=>{const _0x4c1f72=new _0xd0b8e8(this['locale']);_0x4c1f72['children']['add'](_0x21c706);const _0x2a9589=_0x48f21e>-0x1?_0x48f21e:_0x26053c['items']['length'];_0x26053c['items']['add'](_0x4c1f72,_0x2a9589);const _0x466cd1=Array['from'](this['items']);_0x14c320['unbind']('isEnabled','isVisible'),_0x14c320['bind']('isEnabled')['toMany'](_0x466cd1,'isEnabled',(..._0x23f523)=>_0x23f523['some'](_0x4906e9=>_0x4906e9)),_0x14c320['bind']('isVisible')['toMany'](_0x466cd1,'isVisible',(..._0x5b39e6)=>_0x5b39e6['some'](_0x27aa44=>_0x27aa44));};_0x14c320['panelPosition']='sw',_0x14c320['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x260a0b});for(const _0x5a2694 of this['items'])_0x4092df(_0x5a2694);return _0x1333a2['add'](_0x26053c),_0x14c320['listenTo'](this['items'],'add',(_0x1b063b,_0x4e0383,_0x3e76a1)=>{_0x4092df(_0x4e0383,_0x3e76a1);}),_0x14c320['listenTo'](this['items'],'remove',(_0x19ea31,_0x5afba1,_0x1e2bb9)=>{_0x26053c['items']['remove'](_0x1e2bb9);}),_0x14c320;}['_attachActions'](_0xb90c15,_0x3c2340){const _0x3bf71c=_0xb90c15&&_0xb90c15['element'];_0x3bf71c&&(this['listenTo'](_0x3bf71c,'mouseenter',()=>this['actionIndicator']=_0x3c2340),this['listenTo'](_0x3bf71c,'focus',()=>this['actionIndicator']=_0x3c2340),this['listenTo'](_0x3bf71c,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3bf71c,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x233900=super['_createCommentInputView']();return _0x233900['bind']('placeholder')['to'](this),_0x233900;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0xcc3447){const _0x5f3aa5=Dt(_0xcc3447,0x1e),_0xeb87fd=new MutationObserver(_0x53fffe=>{for(const _0x4437a3 of _0x53fffe)('attributes'==_0x4437a3['type']&&'class'==_0x4437a3['attributeName']||'childList'==_0x4437a3['type']||'characterData'==_0x4437a3['type'])&&_0x5f3aa5();});return{'attach'(_0x283d0e){_0xeb87fd['observe'](_0x283d0e,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0xeb87fd['disconnect'](),_0x5f3aa5['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x3e1219,_0x33d135){super(_0x3e1219),this['id']=_0x25f5e2(),this['focusTracker']=new _0x47c1df(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x556fe0,_0x5abf61)=>this['fire']('Esc',_0x5abf61)),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']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x33d135),this['mainView']=_0x33d135;const _0x2c33f5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2c33f5['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 _0x34e3dc=this['element']['clientHeight'];_0x34e3dc&&(this['height']=_0x34e3dc);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x586f16(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1d4300,target:_0x1e0040,type:_0x254bc9,isVisible:_0x2ac348=!0x0}){super(),this['view']=_0x1d4300,this['view']['element']||this['view']['render'](),this['_type']=_0x254bc9,this['_target']=_0x1e0040,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0xe77389([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x169430,_0x117dcb)=>{this['view']['focusTracker']['add'](_0x117dcb);}),this['focusableElements']['on']('remove',(_0xfcd417,_0x32e060)=>{this['view']['focusTracker']['remove'](_0x32e060);}),this['set']('isVisible',_0x2ac348);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3cb585=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x3cb585),_0x3cb585;}get['targetRect'](){const _0x59e21d=this['target'];if(null===_0x59e21d)return null;if(_0x59e21d instanceof _0x4a96a9)return _0x59e21d;const _0xc15ef5=_0x59e21d['filter'](_0x22e0c6=>function(_0x4b9522){const _0x4afeb1=_0x4b9522['offsetParent'];if(_0x4afeb1)return!0x0;const _0x2500d3=_0x4b9522['getClientRects']()['item'](0x0);return!!_0x2500d3;}(_0x22e0c6));return 0x0===_0xc15ef5['length']?null:new _0x4a96a9(_0xc15ef5[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5f5085){this['view']['isActive']=_0x5f5085,this['view']['mainView']['isActive']=_0x5f5085;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x18ea89){if(!(null===_0x18ea89||_0x18ea89 instanceof _0x4a96a9||Array['isArray'](_0x18ea89)&&_0x18ea89['every'](_0x48f8b0=>li(_0x48f8b0))))throw new _0x388981('annotation-invalid-target',null,{'target':_0x18ea89});}['_getNormalizedTarget'](){const _0x532d33='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x532d33)?[_0x532d33]:_0x532d33;}}function li(_0x5a03cd){return null!==_0x5a03cd&&'object'==typeof _0x5a03cd&&'nodeType'in _0x5a03cd&&0x1===_0x5a03cd['nodeType'];}class _ extends _0xe77389{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x1eda05=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x47c1df(),this['_focusTracker']['on']('change:isFocused',(_0x44a855,_0x388905,_0x490cb3)=>{_0x490cb3||this['fire']('blur');});for(const _0x2efe6b of _0x1eda05)this['add'](_0x2efe6b);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x5b823c){if(this['has'](_0x5b823c))throw new _0x388981('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x5b823c['innerView'],_0x5b823c),this['_viewToAnnotation']['set'](_0x5b823c['view'],_0x5b823c);for(const _0xcad803 of _0x5b823c['focusableElements'])this['_focusTracker']['add'](_0xcad803);this['listenTo'](_0x5b823c['focusableElements'],'add',(_0x24b76d,_0x3a3f02)=>{this['_focusTracker']['add'](_0x3a3f02);}),this['listenTo'](_0x5b823c['focusableElements'],'remove',(_0x37ed01,_0x1ae55b)=>{this['_focusTracker']['remove'](_0x1ae55b);}),this['listenTo'](_0x5b823c['view']['focusTracker'],'change:isFocused',(_0x2838ab,_0x382e9d,_0x2129fa)=>{_0x2129fa&&this['fire']('focus',_0x5b823c);}),_0x5b823c['updateTargetRect']();const _0x1a1616=this['_getOrderInContent'](_0x5b823c['view']['targetRect']);return super['add'](_0x5b823c,_0x1a1616);}['remove'](_0x4f33d4){if(!this['has'](_0x4f33d4))throw new _0x388981('annotationcollection-not-existing-item',null);this['stopListening'](_0x4f33d4['view']['focusTracker']),this['stopListening'](_0x4f33d4['focusableElements']);for(const _0x34e0b8 of _0x4f33d4['focusableElements'])this['_focusTracker']['remove'](_0x34e0b8);return this['_viewToAnnotation']['delete'](_0x4f33d4['view']),this['_innerViewToAnnotation']['delete'](_0x4f33d4['innerView']),super['remove'](_0x4f33d4);}['getByInnerView'](_0x3ea10f){return this['_innerViewToAnnotation']['get'](_0x3ea10f);}['getByView'](_0x25a09b){return this['_viewToAnnotation']['get'](_0x25a09b);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x44cccb of this)_0x44cccb['updateTargetRect']();this['_sort']();}['_sort'](){const _0x360ebf=Array['from'](this)['sort']((_0x36f14a,_0x498e6b)=>v(_0x36f14a['view']['targetRect'],_0x498e6b['view']['targetRect']));for(let _0x396726=_0x360ebf['length']-0x1;_0x396726>0x0;_0x396726--){const _0xffb253=_0x360ebf[_0x396726];_0x396726!==this['getIndex'](_0xffb253)&&(this['remove'](_0xffb253),this['add'](_0xffb253));}}['_getOrderInContent'](_0xfa0488){let _0x702c3=0x0;if(!_0xfa0488)return this['length'];for(const _0x12b4f8 of this){const _0x59deba=_0x12b4f8['view']['targetRect'];if(_0x59deba){if(v(_0xfa0488,_0x59deba)<0x0)return _0x702c3;_0x702c3++;}}return _0x702c3;}}function v(_0x2fa704,_0x4cb262){if(null===_0x2fa704&&null===_0x4cb262)return 0x0;if(null===_0x2fa704)return-0x1;if(null===_0x4cb262)return 0x1;const _0x145c0a=_0x2fa704['top']-_0x4cb262['top'];return 0x0==_0x145c0a?_0x2fa704['left']-_0x4cb262['left']:_0x145c0a;}class O extends _0x474ed3{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e5576){if(super(_0x5e5576),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x5e5576 instanceof _0x510f43){const _0xec1e9=_0x5e5576['locale'];_0x5e5576['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0xec1e9,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0xec1e9,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0xec1e9,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0xec1e9,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0xec1e9,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0xec1e9,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0xec1e9,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x45a98d){this['collection']['add'](_0x45a98d);}['remove'](_0x2835e8){this['collection']['remove'](_0x2835e8),_0x2835e8['destroy']();}['refreshVisibility'](){for(const _0x42f277 of this['collection'])_0x42f277['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x31c5ea){return this['collection']['getByInnerView'](_0x31c5ea);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2180ed of this['collection'])_0x2180ed['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x480161){this['fire']('_activateAnnotation',_0x480161);}['createAnnotation'](_0x2b5081){return new d(_0x2b5081);}['createAnnotationView'](_0x5c4bdc,_0x100335){return new S(_0x5c4bdc,_0x100335);}['_addActiveAnnotation'](_0x32c591){const _0x2f11b9=new Set(this['activeAnnotations']);_0x2f11b9['add'](_0x32c591),this['activeAnnotations']=_0x2f11b9;}['_removeActiveAnnotation'](_0x379544){const _0x5363a6=new Set(this['activeAnnotations']);_0x5363a6['delete'](_0x379544),this['activeAnnotations']=_0x5363a6;}['_bindAnnotationsToVisibleAnnotations'](){const _0x370560=this['collection'],_0x35469c=this['_visibleAnnotations'];function _0x31e449(_0x422b10){const _0x2ec94e=_0x422b10['source'];_0x2ec94e['isVisible']&&!_0x35469c['has'](_0x2ec94e)?_0x35469c['add'](_0x2ec94e):!_0x2ec94e['isVisible']&&_0x35469c['has'](_0x2ec94e)&&_0x35469c['remove'](_0x2ec94e),_0x2ec94e['view']['focusTracker']['remove'](_0x2ec94e['view']['element']),_0x2ec94e['view']['focusTracker']['add'](_0x2ec94e['view']['element']);}this['listenTo'](_0x370560,'add',(_0x4cac99,_0x5468e6)=>{_0x5468e6['isVisible']&&_0x35469c['add'](_0x5468e6),this['listenTo'](_0x5468e6,'change:isVisible',_0x31e449);}),this['listenTo'](_0x370560,'remove',(_0xbea84e,_0x39e439)=>{_0x35469c['has'](_0x39e439)&&_0x35469c['remove'](_0x39e439),this['stopListening'](_0x39e439,'change:isVisible',_0x31e449);});}['_setupEnterAnnotationKeystroke'](){const _0xc7a26e=_0x377e9b=>{_0x377e9b['on']('ready',()=>{_0x377e9b['keystrokes']['set'](_0x47530a,(_0x57fdf5,_0x143845)=>{const _0xf324bc=_0xda7f63(this['activeAnnotations']['values']());_0xf324bc&&(_0xf324bc['view']['focus'](),_0x143845());});});};this['context']instanceof _0x510f43?_0xc7a26e(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x2f5d1e,_0x95850c)=>{_0xc7a26e(_0x95850c);});}['_setupEscapeAnnotationHandling'](){const _0xb243e9=_0x391414=>{const _0x513dba=_0x391414['source'],_0x127960=[];let _0xb51c35;if(Array['isArray'](_0x513dba['target'])){_0xb51c35=_0x513dba['target'][0x0],this['context']instanceof _0x510f43?_0x127960['push'](this['context']):this['context']['editors']&&_0x127960['push'](...this['context']['editors']);for(const _0x1fa935 of _0x127960)for(const _0x5aab35 of _0x1fa935['editing']['view']['domRoots']['values']())if(_0x5aab35['contains'](_0xb51c35))return void _0x1fa935['editing']['view']['focus']();_0xb51c35['focus']();}};this['listenTo'](this['collection'],'add',(_0x38cb7d,_0x2417f8)=>{this['listenTo'](_0x2417f8,'escape',_0xb243e9,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x500e25,_0x70c3f5)=>{this['stopListening'](_0x70c3f5,'escape',_0xb243e9);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x474ed3{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[O,lt,st];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2282f3){super(_0x2282f3),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x5a00e6=this['context']['config'];_0x5a00e6['define']('comments.maxCommentsWhenCollapsed',0x2),_0x5a00e6['define']('comments.maxThreadTotalWeight',0x1f4),_0x5a00e6['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x5a00e6['define']('comments.CommentThreadView',gt),_0x5a00e6['define']('comments.CommentView',Tt),_0x5a00e6['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3c0de6=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x5507c5,_0x3f90cf)=>this['_addCommentThread'](_0x3f90cf)),this['on']('submitCommentThread',(_0x447f17,_0x5dadc4)=>this['_submitCommentThread'](_0x5dadc4)),this['on']('resolveCommentThread',(_0xc22811,_0x2912d8)=>this['_resolveCommentThread'](_0x2912d8)),this['on']('resolveCommentThread',(_0x19db00,_0x4238dd)=>this['_updateActiveAnnotation'](_0x4238dd),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3ba7af,_0x15013f)=>this['_reopenCommentThread'](_0x15013f)),this['on']('reopenCommentThread',(_0x34d634,_0x1e736d)=>this['_updateActiveAnnotation'](_0x1e736d),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x1321b7,_0x321f17)=>this['_removeCommentThread'](_0x321f17)),this['on']('updateCommentThread',(_0x2b47e4,_0xe38eb2)=>this['_updateCommentThread'](_0xe38eb2)),this['on']('updateCommentThread',(_0x41924d,_0x7cc414)=>this['_updateActiveAnnotation'](_0x7cc414),{'priority':'lowest'}),this['on']('addComment',(_0x2fc59c,_0x4653eb)=>this['_addComment'](_0x4653eb)),this['on']('updateComment',(_0x332ca8,_0xb7cf3d)=>this['_updateComment'](_0xb7cf3d)),this['on']('removeComment',(_0x52ec46,_0x1f9744)=>this['_removeComment'](_0x1f9744)),this['on']('addComment',(_0x43c281,{threadId:_0x59b35d,isFromAdapter:_0x474cf0})=>{if(_0x474cf0)return;const _0xb0be05=this['getCommentThread'](_0x59b35d),_0x58e5c8=_0xb0be05&&this['_threadToController']['get'](_0xb0be05);_0x58e5c8&&_0x58e5c8['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3c0de6,'change:activeAnnotations',(_0x2b3c5a,_0x181ad7,_0x3e0a45)=>{const _0x13d1e6=Array['from'](_0x3e0a45)['map'](_0x448763=>this['_viewToController']['get'](_0x448763['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x13d1e6?_0x13d1e6['model']:null;});}set['adapter'](_0x3a8560){if(this['_adapter'])throw new _0x388981('commentsrepository-adapter-already-set');this['_adapter']=_0x3a8560;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x396d11=_t,threadId:_0x190066=_0x25f5e2(),comments:_0x556e7d=[],unlinkedAt:_0x8f1d5e=null,resolvedAt:_0x15045c=null,resolvedBy:_0xd220ac=null,target:_0x1522e7=null,context:_0x5d1a70=null,attributes:_0x350cde={},isResolvable:_0x42cc73=!0x0,isSubmitted:_0x3d6765=!0x1,isFromAdapter:_0x139133=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x396d11),{'channelId':_0x396d11,'threadId':_0x190066,'comments':_0x556e7d,'unlinkedAt':_0x8f1d5e,'resolvedAt':_0x15045c,'resolvedBy':_0xd220ac,'target':_0x1522e7,'context':_0x5d1a70,'attributes':_0x350cde,'isFromAdapter':_0x139133,'isResolvable':_0x42cc73,'isSubmitted':_0x3d6765}),this['getCommentThread'](_0x190066);}['openNewCommentThread']({channelId:_0x4091ac=_t,threadId:_0x216f86=_0x25f5e2(),target:_0x5632b4,context:_0x57a798=null,isResolvable:_0x2adba9=!0x0}){if(this['_readOnlyChannels']['has'](_0x4091ac)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x5632b4)throw new _0x388981('commentsrepository-missing-target');const _0x323bba=this['addCommentThread']({'channelId':_0x4091ac,'threadId':_0x216f86,'target':_0x5632b4,'context':_0x57a798,'isResolvable':_0x2adba9});if(!_0x323bba)return null;const _0x253143=this['_threadToController']['get'](_0x323bba),_0xcad498=_0x253143['view']['commentThreadInputView']['commentInputView'],_0x55d240=this['context']['plugins']['get'](O),_0x16e4f8=_0x55d240['getByInnerView'](_0x253143['view']);return _0x55d240['activate'](_0x16e4f8),_0xcad498['once']('editorReady',()=>_0xcad498['focus']()),_0x323bba;}['hasCommentThread'](_0x262e5b){if('string'!=typeof _0x262e5b)throw new _0x388981('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x262e5b);}['updateCommentThread']({channelId:_0x16e37d=_t,threadId:_0x143921,context:_0x4b44a3,unlinkedAt:_0x3d49af,attributes:_0x5900ca,isFromAdapter:_0x40f6d1=!0x1}){return this['fire'](Nt('updateCommentThread',_0x16e37d),{'channelId':_0x16e37d,'threadId':_0x143921,'context':_0x4b44a3,'unlinkedAt':_0x3d49af,'attributes':_0x5900ca,'isFromAdapter':_0x40f6d1}),this['getCommentThread'](_0x143921);}['getCommentThread'](_0x144f4b){if('string'!=typeof _0x144f4b)throw new _0x388981('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x144f4b);}['fetchCommentThread']({channelId:_0x3e80a2,threadId:_0x12e5e6}={}){const _0x1dca14=this['getCommentThread'](_0x12e5e6);if(_0x1dca14)return Promise['resolve'](_0x1dca14);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x388981('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x3e80a2,'threadId':_0x12e5e6})['then'](_0x4588fc=>this['hasCommentThread'](_0x12e5e6)?this['getCommentThread'](_0x12e5e6):_0x4588fc?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x3e80a2},_0x4588fc)):void 0x0)['catch'](_0x23483c=>{throw console['error'](_0x23483c),new _0x388981('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x477097,skipNotAttached:_0x4670b0=!0x1,skipEmpty:_0x520889=!0x1,toJSON:_0x3ce263=!0x1}={}){const _0x3a4ff5=[];for(const _0x5a3651 of this['_threads']['values']())_0x477097&&_0x5a3651['channelId']!==_0x477097||_0x4670b0&&!_0x5a3651['isAttached']||_0x520889&&0x0===_0x5a3651['length']||_0x3a4ff5['push'](_0x5a3651);return _0x3ce263?_0x3a4ff5['map'](_0x1bf9e0=>_0x1bf9e0['toJSON']()):_0x3a4ff5;}['setActiveCommentThread'](_0x3480ce){const _0x1ab4a1=this['context']['plugins']['get'](O);if(!_0x3480ce)return void(this['activeCommentThread']&&_0x1ab4a1['deactivateAll']());const _0x55aa4e=this['getCommentThread'](_0x3480ce);if(!_0x55aa4e)throw new _0x388981('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3480ce});if(!this['_threadToController']['has'](_0x55aa4e))throw new _0x388981('commentsrepository-active-not-attached',null,{'threadId':_0x3480ce});const _0x450f0b=_0x1ab4a1['getByInnerView'](this['_threadToController']['get'](_0x55aa4e)['view']);_0x1ab4a1['activate'](_0x450f0b);}['switchReadOnly'](_0x349195,_0x471d17){_0x349195?this['_readOnlyChannels']['add'](_0x471d17):this['_readOnlyChannels']['delete'](_0x471d17),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x32b7f6){return this['_readOnlyChannels']['has'](_0x32b7f6)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4993ea,_0x4e4a75){return new vt(_0x4993ea,_0x4e4a75);}['setPermissions'](_0x5afd8b,_0x5c6688=_t){this['_permissions']['set'](_0x5c6688,_0x5afd8b),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x379835=_t){return this['_permissions']['has'](_0x379835)?this['_permissions']['get'](_0x379835):bt;}['_addCommentThread']({channelId:_0x336dc3,threadId:_0x5e739f,comments:_0x70c758,unlinkedAt:_0xcae7af,resolvedAt:_0x31758e,resolvedBy:_0x3e6fab,target:_0x2b8ec4,context:_0x3c2e2d,attributes:_0x24ef72,isFromAdapter:_0x336b9f,isResolvable:_0x5da7d3,isSubmitted:_0x2ea0e4}){if('string'!=typeof _0x5e739f)throw new _0x388981('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5e739f});if(this['hasCommentThread'](_0x5e739f))throw new _0x388981('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x5e739f});const _0x32dcfa=new ui(this,{'channelId':_0x336dc3,'id':_0x5e739f,'context':_0x3c2e2d,'attributes':_0x24ef72,'unlinkedAt':_0xcae7af,'resolvedAt':_0x31758e,'resolvedBy':_0x3e6fab?this['context']['plugins']['get'](st)['getUser'](_0x3e6fab):null,'isResolvable':_0x5da7d3,'isSubmitted':_0x2ea0e4||_0x336b9f});this['_threads']['set'](_0x5e739f,_0x32dcfa);for(const _0x5b45e3 of _0x70c758)_0x32dcfa['_add'](this['_createNewComment']({'threadId':_0x5e739f,..._0x5b45e3}));return _0x2b8ec4&&_0x32dcfa['attachTo'](_0x2b8ec4),_0x336b9f||!_0x32dcfa['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x336dc3,'threadId':_0x5e739f});}['_submitCommentThread']({channelId:_0x2e6f40,threadId:_0x312ea7}){if(!this['hasCommentThread'](_0x312ea7))throw new _0x388981('commentsrepository-missing-comment-thread',this);const _0x5270bb=this['getCommentThread'](_0x312ea7);if(_0x5270bb['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x332fff,comments:_0x2cc16d,resolvedAt:_0x48b16c,resolvedBy:_0x313700,context:_0x2430b6,attributes:_0x3ac66a}=_0x5270bb,_0x33e464=this['context']['plugins']['get']('PendingActions'),_0x4c76e7=_0x33e464['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x2e6f40,'threadId':_0x332fff,'comments':_0x2cc16d['map'](_0x34b213=>_0x34b213['toJSON']()),'resolvedAt':_0x48b16c,'resolvedBy':_0x313700?_0x313700['id']:_0x313700,'context':_0x2430b6,'attributes':_0x3ac66a})['then'](({comments:_0x2f3139})=>{_0x33e464['remove'](_0x4c76e7);for(const _0x16b01a of _0x2f3139)this['_updateComment']({'channelId':_0x2e6f40,'threadId':_0x312ea7,'commentId':_0x16b01a['commentId'],'createdAt':_0x16b01a['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3e75b6=>{throw console['error'](_0x3e75b6),new _0x388981('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x24c39d,target:_0x5aebef}){const _0x253655=this['getCommentThread'](_0x24c39d);if(!_0x253655)throw new _0x388981('commentsrepository-attach-missing-comment-thread',this);const _0x398a3d=this['context']['plugins']['get']('PendingActions'),_0x45d747=this['context']['plugins']['get'](O),_0x3a818c=this['_createCommentThreadView'](_0x253655),_0x2af550=new vt(_0x253655,_0x3a818c);let _0x4b2889=null;_0x3a818c['on']('change:isDirty',(_0x2fa0f3,_0x35bb31,_0x189881)=>{_0x189881?_0x4b2889=_0x398a3d['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4b2889&&(_0x398a3d['remove'](_0x4b2889),_0x4b2889=null);}),this['_threadToController']['set'](_0x253655,_0x2af550),this['_viewToController']['set'](_0x3a818c,_0x2af550);const _0x52e85e=new S(this['context']['locale'],_0x3a818c);_0x52e85e['bind']('length')['to'](_0x3a818c),_0x52e85e['bind']('isDirty')['to'](_0x3a818c,'isDirty',_0x3a818c,'length',(_0x18f1a3,_0x438866)=>_0x18f1a3||!_0x438866),_0x52e85e['bind']('isActive')['to'](_0x3a818c),_0x52e85e['type']='comment';const _0x352924=new d({'view':_0x52e85e,'target':_0x5aebef,'type':'comment','isVisible':!_0x253655['archivedAt']});return _0x3a818c['on']('escape',()=>{_0x352924['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3a818c,_0x352924),_0x45d747['add'](_0x352924),_0x352924;}['_bindAnnotationToEditors'](_0x466226,_0x189a59){this['listenTo'](_0x466226,'editorReady',(_0x69c237,_0x45eeeb)=>{const _0x406563=_0x45eeeb['ui']['view']['body']['bodyCollectionContainer'];_0x189a59['focusableElements']['add'](_0x406563),this['context']instanceof _0x510f43&&this['context']['ui']['focusTracker']['add'](_0x406563);},{'priority':'highest'}),this['listenTo'](_0x466226,'editorDestroyed',(_0x2fea2e,_0x2931d9)=>{const _0x4eb075=_0x2931d9['ui']['view']['body']['bodyCollectionContainer'];_0x189a59['focusableElements']['has'](_0x4eb075)&&_0x189a59['focusableElements']['remove'](_0x4eb075),this['context']instanceof _0x510f43&&this['context']['ui']['focusTracker']['remove'](_0x4eb075);});}['_unbindEditors'](_0x411b72){this['stopListening'](_0x411b72,'editorReady'),this['stopListening'](_0x411b72,'editorDestroyed');}['_createCommentThreadView'](_0x284247){const _0x51b2bb=this['context']['plugins']['get'](st),{config:_0x33a0d4,locale:_0x4f1aee}=this['context'],_0x2902af=pt(_0x33a0d4['get']('locale'),_0x4f1aee);return new(0x0,(_0x33a0d4['get']('comments'))['CommentThreadView'])(_0x4f1aee,_0x284247,_0x51b2bb['me'],{'editorConfig':{..._0x33a0d4['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x33a0d4['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x33a0d4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x33a0d4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x33a0d4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2902af,'CommentView':_0x33a0d4['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x34184c,channelId:_0xfa6656,resolvedAt:_0x1f142f,resolvedBy:_0x3db919,isFromAdapter:_0xf15df4}){if(!this['hasCommentThread'](_0x34184c))throw new _0x388981('commentsrepository-missing-comment-thread',null,{'threadId':_0x34184c});const _0x3f7457=this['getCommentThread'](_0x34184c);if(_0x3f7457['isResolved'])throw new _0x388981('commentsrepository-resolved-comment-thread',null,{'threadId':_0x34184c});const _0x6404e6=this['context']['plugins']['get'](st);if(_0x3f7457['resolvedBy']=_0x6404e6['getUser'](_0x3db919),_0x3f7457['resolvedAt']=_0x1f142f,_0xf15df4||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x2d83c0=this['context']['plugins']['get']('PendingActions'),_0x5ca5da=_0x2d83c0['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0xfa6656,'threadId':_0x34184c})['then'](({resolvedAt:_0x53ce99,resolvedBy:_0x435526})=>{_0x2d83c0['remove'](_0x5ca5da),_0x3f7457['resolvedBy']['id']!==_0x435526&&(_0x3f7457['resolvedBy']=_0x6404e6['getUser'](_0x435526)),_0x3f7457['resolvedAt']=_0x53ce99;})['catch'](_0x4cccf5=>{throw console['error'](_0x4cccf5),new _0x388981('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x17fc0b,channelId:_0x525210,isFromAdapter:_0x390495}){if(!this['hasCommentThread'](_0x17fc0b))throw new _0x388981('commentsrepository-missing-comment-thread',null,{'threadId':_0x17fc0b});const _0x54f215=this['getCommentThread'](_0x17fc0b);if(!_0x54f215['isResolved'])throw new _0x388981('commentsrepository-reopen-comment-thread',null,{'threadId':_0x17fc0b});if(_0x54f215['resolvedBy']=null,_0x54f215['resolvedAt']=null,_0x390495||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0xd38e81=this['context']['plugins']['get']('PendingActions'),_0x833767=_0xd38e81['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x525210,'threadId':_0x17fc0b})['then'](()=>_0xd38e81['remove'](_0x833767))['catch'](_0x40c024=>{throw console['error'](_0x40c024),new _0x388981('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xf6174,isFromAdapter:_0x5e7bce}){const _0x11a822=this['getCommentThread'](_0xf6174);if(!_0x11a822)throw new _0x388981('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xf6174),this['_threads']['delete'](_0xf6174),!_0x11a822['isSubmitted']||_0x5e7bce||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x2f15c6=this['context']['plugins']['get']('PendingActions'),{channelId:_0xfa82fa}=_0x11a822,_0x525037=_0x2f15c6['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0xfa82fa,'threadId':_0xf6174})['then'](()=>_0x2f15c6['remove'](_0x525037))['catch'](_0x27812c=>{throw console['error'](_0x27812c),new _0x388981('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1b62c2,unlinkedAt:_0x9380bd,context:_0x1ea22a,attributes:_0x5d493c,isFromAdapter:_0x49d74f}){if('string'!=typeof _0x1b62c2)throw new _0x388981('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1b62c2});if(!this['hasCommentThread'](_0x1b62c2))throw new _0x388981('commentsrepository-missing-comment-thread',null,{'threadId':_0x1b62c2});const _0x182164=this['getCommentThread'](_0x1b62c2);let _0x39da6a=!0x1;if(void 0x0!==_0x1ea22a&&_0x182164['context']!==_0x1ea22a&&(_0x182164['context']=_0x1ea22a,_0x39da6a=!0x0),void 0x0!==_0x9380bd&&_0x182164['unlinkedAt']!==_0x9380bd&&(_0x182164['unlinkedAt']=_0x9380bd,_0x39da6a=!0x0),_0x5d493c&&!At(_0x5d493c,_0x182164['attributes'])&&(_0x182164['attributes']=_0x5d493c,_0x39da6a=!0x0),!_0x39da6a)return Promise['resolve']();if(!_0x182164['isSubmitted']||_0x49d74f||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x21061c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x45c048}=_0x182164,_0x3b60eb=_0x21061c['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x45c048,'threadId':_0x1b62c2,'context':_0x1ea22a,'unlinkedAt':_0x9380bd,'attributes':_0x5d493c})['then'](()=>_0x21061c['remove'](_0x3b60eb))['catch'](_0x5a175a=>{throw console['error'](_0x5a175a),new _0x388981('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x12e344){const _0x2ef7f4=this['context']['plugins']['get'](O),_0x36af66=this['getCommentThread'](_0x12e344);if(_0x36af66['_isAttached']=!0x1,this['_threadToController']['has'](_0x36af66)){const _0x574ba0=this['_threadToController']['get'](_0x36af66),_0x5f52c6=_0x574ba0['view'],_0x4f0c6f=_0x2ef7f4['getByInnerView'](_0x5f52c6);this['_threadToController']['delete'](_0x36af66),this['_viewToController']['delete'](_0x5f52c6),_0x4f0c6f&&_0x2ef7f4['remove'](_0x4f0c6f),_0x574ba0['destroy'](),_0x5f52c6['destroy']()['then'](()=>{this['_unbindEditors'](_0x5f52c6);});}}['_updateActiveAnnotation']({threadId:_0x48ee3d,resolvedAt:_0x5e9bcc,unlinkedAt:_0x4ef5ac}){const _0x53e191=!!_0x5e9bcc,_0x186ff3=this['context']['plugins']['get'](O),_0x9fde41=this['getCommentThread'](_0x48ee3d);if(this['_threadToController']['has'](_0x9fde41)){const _0x252a08=this['_threadToController']['get'](_0x9fde41)['view'],_0x21102f=_0x186ff3['getByInnerView'](_0x252a08);_0x21102f&&(_0x53e191&&_0x186ff3['_removeActiveAnnotation'](_0x21102f),_0x4ef5ac?_0x21102f['isVisible']=!0x1:_0x21102f['refreshVisibility']());}}['_getExternalAuthor'](_0x11170e){const _0xba1e0c=this['context']['plugins']['get'](st),_0x4c757c=It('external:'+_0x11170e),_0x3489fc=_0xba1e0c['getUser'](_0x4c757c);return _0x3489fc||_0xba1e0c['addUser']({'id':_0x4c757c,'name':_0x11170e});}['_createNewComment']({threadId:_0x513230,commentId:_0x2739e3=_0x25f5e2(),content:_0x46a2af,authorId:_0xc4aa3f,createdAt:_0x1cb33d,attributes:_0x24cc8d}){if('string'!=typeof _0x2739e3)throw new _0x388981('commentsrepository-invalid-commentid');if('string'!=typeof _0xc4aa3f)throw new _0x388981('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x46a2af||!_0x46a2af['trim']())throw new _0x388981('commentsrepository-invalid-comment-content');const _0x15f050=this['context']['plugins']['get'](st)['getUser'](_0xc4aa3f);if(!_0x15f050)throw new _0x388981('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0xc4aa3f});let _0x29d6e3=null,_0x3a96c8=_0x1cb33d;return _0x24cc8d?.['@external']&&(_0x29d6e3=this['_getExternalAuthor'](_0x24cc8d['@external']['authorName']),_0x3a96c8=new Date(_0x24cc8d['@external']['createdAt'])),new fi(this,{'threadId':_0x513230,'id':_0x2739e3,'author':_0x29d6e3||_0x15f050,'creator':_0x15f050,'content':_0x46a2af,'createdAt':_0x1cb33d,'authoredAt':_0x3a96c8,'attributes':_0x24cc8d});}['_addComment'](_0x530040){let {threadId:_0x17d814,content:_0x8c64b2,attributes:_0x49b739,isFromAdapter:_0x3c94e3}=_0x530040;const _0x24e56d=this['getCommentThread'](_0x530040['threadId']);if(!_0x24e56d)throw new _0x388981('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x3978d5=this['_createNewComment'](_0x530040),{id:_0x44653e}=_0x3978d5;if(_0x24e56d['_add'](_0x3978d5),_0x3c94e3||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x24e56d['isSubmitted'])return Promise['resolve']();const _0x1713be=this['context']['plugins']['get']('PendingActions'),{channelId:_0x319ee3}=_0x24e56d,_0x579756=_0x1713be['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x49b739||(_0x49b739={}),this['adapter']['addComment']({'channelId':_0x319ee3,'threadId':_0x17d814,'commentId':_0x44653e,'content':_0x8c64b2,'attributes':_0x49b739})['then'](_0x4b6bd5=>{_0x1713be['remove'](_0x579756),_0x4b6bd5&&this['_updateComment']({'channelId':_0x319ee3,'threadId':_0x17d814,'commentId':_0x44653e,'createdAt':_0x4b6bd5['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x6ec975=>{throw console['error'](_0x6ec975),new _0x388981('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x3c0502,commentId:_0x406428,content:_0x494259,createdAt:_0xf16abf,attributes:_0x577c16,isFromAdapter:_0x30ebbb}){if(void 0x0!==_0x494259&&('string'!=typeof _0x494259||!_0x494259['trim']()['length']))throw new _0x388981('commentsrepository-update-comment-invalid-content');const _0x40b40a=this['getCommentThread'](_0x3c0502),_0x146ed2=_0x40b40a['getComment'](_0x406428);if(!_0x146ed2)throw new _0x388981('commentsrepository-update-missing-comment',this);let _0x37055b=!0x1;if(_0x494259&&_0x494259!==_0x146ed2['content']&&(_0x146ed2['isEditable']||_0x30ebbb)&&(_0x146ed2['content']=_0x494259,_0x37055b=!0x0),_0xf16abf&&_0xf16abf!==_0x146ed2['createdAt']&&(_0x146ed2['createdAt']=_0xf16abf,_0x146ed2['attributes']&&_0x146ed2['attributes']['@external']||(_0x146ed2['authoredAt']=_0xf16abf),_0x37055b=!0x0),_0x577c16&&!At(_0x577c16,_0x146ed2['attributes'])&&(_0x146ed2['attributes']=_0x577c16,_0x37055b=!0x0),!_0x37055b)return Promise['resolve']();if(_0x40b40a['fire']('commentUpdated'),_0x30ebbb||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x1f7eba=this['context']['plugins']['get']('PendingActions'),{channelId:_0x16baa1}=this['getCommentThread'](_0x146ed2['threadId']),_0x5a4185=_0x1f7eba['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x16baa1,'threadId':_0x3c0502,'commentId':_0x406428,'content':_0x494259,'attributes':_0x577c16})['then'](()=>_0x1f7eba['remove'](_0x5a4185))['catch'](_0x21dcc2=>{throw console['error'](_0x21dcc2),new _0x388981('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3bcdcc,commentId:_0x27d1b0,isFromAdapter:_0x2087e6}){const _0x4baf92=this['getCommentThread'](_0x3bcdcc),_0x5b22c5=_0x4baf92['getComment'](_0x27d1b0);if(!_0x5b22c5)throw new _0x388981('commentsrepository-remove-missing-comment',this);if(_0x4baf92['_remove'](_0x5b22c5),_0x2087e6||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0xe5701b=this['context']['plugins']['get']('PendingActions'),{channelId:_0xa24140}=_0x4baf92,_0x3a563d=_0xe5701b['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0xa24140,'threadId':_0x3bcdcc,'commentId':_0x27d1b0})['then'](()=>_0xe5701b['remove'](_0x3a563d))['catch'](_0x125289=>{throw console['error'](_0x125289),new _0x388981('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
+ _0x586f16(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x47af4a,_0x5a5b47){super();const _0x3e1189=_0x5a5b47['isResolvable'];this['channelId']=_0x5a5b47['channelId'],this['id']=_0x5a5b47['id'],this['comments']=new _0xe77389(),this['_repository']=_0x47af4a,this['_isAttached']=!0x1,this['_isSubmitted']=_0x5a5b47['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x47af4a,'_permissions',_0x47af4a,'_readOnlyChannels',()=>_0x47af4a['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x47af4a,'_permissions',()=>_0x47af4a['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x47af4a,'_permissions',()=>{const _0x1747cd=_0x47af4a['getPermissions'](this['channelId']);return _0x1747cd['write']||_0x1747cd['admin'];}),this['bind']('isResolvable')['to'](_0x47af4a,'_permissions',()=>_0x3e1189&&_0x47af4a['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x5a5b47['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x484427,_0x224243)=>_0x484427?_0x224243?_0x484427<_0x224243?_0x484427:_0x224243:_0x484427:_0x224243),this['set']('unlinkedAt',_0x5a5b47['unlinkedAt']||null),this['set']('resolvedAt',_0x5a5b47['resolvedAt']||null),this['set']('resolvedBy',_0x5a5b47['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x4198af=>!!_0x4198af),this['set']('attributes',_0x5a5b47['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x251443,_0x5d2e31)=>_0x251443+_0x5d2e31['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x4ff83,id:_0xda1b88}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x4ff83),{'channelId':_0x4ff83,'threadId':_0xda1b88});}['setUnlinkedAt'](_0x4e8559){this['_update']({'unlinkedAt':_0x4e8559});}['resolve']({resolvedAt:_0x3b8414=new Date(),resolvedBy:_0x5b5573=null,isFromAdapter:_0x59c4bc=!0x1}={}){const _0x412c39=this['_repository']['context']['plugins']['get'](st)['me'],{channelId:_0x4f658e,id:_0x419a60}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x4f658e),{'channelId':_0x4f658e,'threadId':_0x419a60,'resolvedAt':_0x3b8414,'resolvedBy':_0x5b5573||_0x412c39['id'],'isFromAdapter':_0x59c4bc});}['reopen']({isFromAdapter:_0x10252f=!0x1}={}){const {channelId:_0x51d24d,id:_0x412794}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x51d24d),{'channelId':_0x51d24d,'threadId':_0x412794,'isFromAdapter':_0x10252f});}['setContext'](_0x360a65){this['context']||this['_update']({'context':_0x360a65});}['setAttribute'](_0x3fc5d8,_0x5cd20d){const _0xe2d410=wt(this['attributes']);yt(_0xe2d410,_0x3fc5d8,_0x5cd20d),this['_update']({'attributes':_0xe2d410});}['removeAttribute'](_0x2d3786){const _0x3b60fe=wt(this['attributes']);Ct(_0x3b60fe,_0x2d3786),this['_update']({'attributes':_0x3b60fe});}['remove']({isFromAdapter:_0x2b3320=!0x1}={}){const {channelId:_0x2360db,id:_0x1fcce8}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x2360db),{'channelId':_0x2360db,'threadId':_0x1fcce8,'isFromAdapter':_0x2b3320});}['attachTo'](_0x5e01da){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x5e01da});}['addComment'](_0x5c4bca){const {channelId:_0x4766bb,id:_0x5340d4}=this;this['_repository']['fire'](Nt('addComment',_0x4766bb,_0x5340d4),Object['assign']({'channelId':_0x4766bb,'threadId':_0x5340d4},_0x5c4bca));}['getComment'](_0x510c93){if('string'!=typeof _0x510c93)throw new _0x388981('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x510c93});return this['comments']['get'](_0x510c93);}['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'](_0x1bbdd1=>_0x1bbdd1['toJSON']()),'attributes':this['attributes']};}['_add'](_0x2e3e3c){return this['listenTo'](_0x2e3e3c,'change:authoredAt',()=>{const _0x224dde=this['_findOptimalIndex'](_0x2e3e3c),_0xc7a75=this['comments'];_0x224dde-0x1!=_0xc7a75['getIndex'](_0x2e3e3c)&&_0x224dde+0x1!=_0xc7a75['getIndex'](_0x2e3e3c)&&(this['_remove'](_0x2e3e3c),this['_add'](_0x2e3e3c));}),this['comments']['add'](_0x2e3e3c,this['_findOptimalIndex'](_0x2e3e3c));}['_update'](_0x531663){const {channelId:_0x3f5556,id:_0xa2597a}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x3f5556),{..._0x531663,'channelId':_0x3f5556,'threadId':_0xa2597a});}['_remove'](_0x40007c){return this['stopListening'](_0x40007c),_0x40007c['destroy'](),this['comments']['remove'](_0x40007c);}['_findOptimalIndex'](_0x1188d0){const _0x5c97e7=this['comments']['find'](_0x52626c=>new Date(_0x52626c['authoredAt'])['getTime']()>new Date(_0x1188d0['authoredAt'])['getTime']());return _0x5c97e7?this['comments']['getIndex'](_0x5c97e7):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
+ _0x586f16(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5e1848,_0x104be9){super();const _0x286db3=_0x5e1848['context']['plugins']['get'](st)['me'],_0x181e3e=_0x5e1848['getCommentThread'](_0x104be9['threadId']),_0x514a37=0x0===_0x181e3e['comments']['length'],_0x27db48=_0x286db3===_0x104be9['author'];this['id']=_0x104be9['id'],this['threadId']=_0x104be9['threadId'],this['author']=_0x104be9['author'],this['creator']=_0x104be9['creator'],this['isExternal']=Boolean(_0x104be9['attributes']&&_0x104be9['attributes']['@external']),this['set']('content',_0x104be9['content']),this['createdAt']=_0x104be9['createdAt']||new Date(),this['set']('authoredAt',_0x104be9['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x181e3e,'resolvedAt'),this['set']('attributes',_0x104be9['attributes']||{}),this['bind']('isEditable')['to'](_0x5e1848,'_permissions',()=>{const _0x53eaea=_0x5e1848['getPermissions'](_0x181e3e['channelId'])['write'],_0x1ade5e=_0x5e1848['getPermissions'](_0x181e3e['channelId'])['modifyAll'];return _0x27db48&&_0x53eaea||!_0x27db48&&_0x1ade5e;}),this['bind']('isRemovable')['to'](_0x181e3e,'isRemovable',_0x5e1848,'_permissions',_0x1273b5=>{const _0x27e994=_0x5e1848['getPermissions'](_0x181e3e['channelId'])['write'],_0x4e76ca=_0x5e1848['getPermissions'](_0x181e3e['channelId'])['modifyAll'];return _0x27db48&&_0x27e994||_0x1273b5&&_0x514a37||!_0x27db48&&_0x4e76ca&&!_0x514a37;}),this['bind']('isReadOnly')['to'](_0x181e3e,'isReadOnly'),this['_repository']=_0x5e1848;}get['weight'](){return Math['max'](function(_0x3c0b1a){const _0x35b967=document['createElement']('div');return _0x35b967['innerHTML']=_0x3c0b1a,_0x35b967['textContent']['length'];}(this['content']),0xc8);}['update'](_0x2b3037){const {threadId:_0x2543c9,id:_0x248cf9}=this;if(!this['_repository']['hasCommentThread'](_0x2543c9))throw new _0x388981('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3e4862}=this['_repository']['getCommentThread'](_0x2543c9);this['_repository']['fire'](Nt('updateComment',_0x3e4862,_0x2543c9),{'channelId':_0x3e4862,'threadId':_0x2543c9,'commentId':_0x248cf9,..._0x2b3037});}['setAttribute'](_0x59d6ba,_0x11021d){const _0x3bd739=wt(this['attributes']);yt(_0x3bd739,_0x59d6ba,_0x11021d),this['update']({'attributes':_0x3bd739});}['removeAttribute'](_0x13dd2b){const _0x1b2a51=wt(this['attributes']);Ct(_0x1b2a51,_0x13dd2b),this['update']({'attributes':_0x1b2a51});}['remove'](_0x4c0a43={}){if(!_0x4c0a43['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x4da5bb,id:_0x18e08a}=this;if(!this['_repository']['hasCommentThread'](_0x4da5bb))throw new _0x388981('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4456f0}=this['_repository']['getCommentThread'](_0x4da5bb);this['_repository']['fire'](Nt('removeComment',_0x4456f0,_0x4da5bb),{'channelId':_0x4456f0,'threadId':_0x4da5bb,'commentId':_0x18e08a,..._0x4c0a43});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x18c2cc,..._0x493423){for(const _0x44b571 of _0x493423)void 0x0!==_0x44b571&&(_0x18c2cc+=':'+String(_0x44b571));return _0x18c2cc;}class K extends _0x50221b{['refresh'](){const _0xb43b4=this['editor']['model']['document']['selection'];for(const _0x2a15f2 of _0xb43b4['getRanges']())if(this['_hasContent'](_0x2a15f2))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x123490=_0x25f5e2()}={}){const _0x523301=this['editor']['model'],_0x8e9610=[];for(const _0x24b9bc of _0x523301['document']['selection']['getRanges']())this['_hasContent'](_0x24b9bc)&&_0x8e9610['push'](this['_trimToContent'](_0x24b9bc));_0x523301['change'](_0x2805d6=>{for(const _0x33d1be of _0x8e9610){const _0x1ce7cc=_0x25f5e2()['substr'](0x1,0x5),_0x253ad8='comment:'+_0x123490+':'+_0x1ce7cc;_0x2805d6['addMarker'](_0x253ad8,{'range':_0x33d1be,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x418831){for(const _0x2a8cb3 of _0x418831['getItems']())if(this['_itemIsContent'](_0x2a8cb3))return!0x0;return!0x1;}['_itemIsContent'](_0x5d3600){return _0x5d3600['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5d3600)&&!_0x5d3600['is']('element','tableCell');}['_trimToContent'](_0x5d8632){const _0x3e0bfb=_0xfabfe3=>!this['_itemIsContent'](_0xfabfe3['item']),_0x2ec20d=_0x5d8632['start']['getLastMatchingPosition'](_0x3e0bfb),_0x7ae000=_0x5d8632['end']['getLastMatchingPosition'](_0x3e0bfb,{'direction':'backward'});return this['editor']['model']['createRange'](_0x2ec20d,_0x7ae000);}}class P extends _0x39c08c{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59b11a){super(_0x59b11a),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5e82ee=this['editor'],_0x2004ab=_0x5e82ee['model']['document']['selection'],_0xc8e8d4=_0x4e3986(()=>this['refreshSelectedViews'](),0xa);_0x2004ab['on']('change:range',(_0x20cdce,_0x54740a)=>{_0x54740a['directChange']&&(_0xc8e8d4['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5e82ee['editing']['view']['document'],'change:isFocused',(_0x3b02a0,_0x5320f5,_0x506b78)=>{_0x506b78&&_0xc8e8d4();}),this['listenTo'](_0x5e82ee['ui']['focusTracker'],'change:isFocused',(_0x4c9012,_0xcc5882,_0x592e2f)=>{_0x592e2f||_0x5e82ee['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x1db921=>this['_editorAnnotationsData']['has'](_0x1db921['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x346208){if(this['_editorAnnotations']['has'](_0x346208['view']))return;this['_editorAnnotations']['add'](_0x346208['view']),this['editor']['ui']['focusTracker']['add'](_0x346208['view']['element']);const _0x3b1546=this['editor']['plugins']['get'](O);this['listenTo'](_0x3b1546['collection'],'remove',(_0x1a2d70,_0x51e8a2)=>{this['editor']['ui']['focusTracker']['remove'](_0x51e8a2['view']['element']),this['_editorAnnotations']['delete'](_0x51e8a2['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4ba8be){if('function'!=typeof _0x4ba8be)throw new _0x388981('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4ba8be);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x47427e,annotations:_0x72772c}){const _0x5a5ec1=[],_0x337011=this['editor']['model']['document']['selection'],_0x417f7b=Array['from'](_0x337011['getRanges']());for(const [_0xf207ee,_0x158139]of this['_editorAnnotationsData']){const _0x41ec91=_0x4ea300(_0x158139),_0x56e4c6=_0x72772c['getByInnerView'](_0xf207ee);_0x41ec91&&_0x56e4c6&&_0x5a5ec1['push']({'annotation':_0x56e4c6,'range':_0x41ec91});}function _0x4ea300(_0x44ed51){for(const _0x2a3e7c of _0x44ed51)for(const _0x2c7c4e of _0x417f7b)if(_0x2a3e7c['containsRange'](_0x2c7c4e,!_0x337011['isCollapsed']))return _0x2a3e7c;return null;}return _0x5a5ec1['sort']((_0x5cb700,_0x415665)=>{const _0x283d34=_0x5cb700['range'],_0x1784bd=_0x415665['range'];if(!_0x283d34['isEqual'](_0x1784bd)){if(_0x283d34['containsRange'](_0x1784bd,!0x0))return 0x1;if(_0x1784bd['containsRange'](_0x283d34,!0x0))return-0x1;}return _0x5cb700['annotation']==_0x47427e?-0x1:_0x415665['annotation']==_0x47427e?0x1:0x0;})['map'](_0x2d59a6=>_0x2d59a6['annotation']);}get['_editorAnnotationsData'](){const _0x4f203c=new Map();for(const _0x170ed0 of Array['from'](this['_dataCollectors']))for(const [_0x2aeb3f,_0x403860]of _0x170ed0())_0x4f203c['set'](_0x2aeb3f,_0x403860);return _0x4f203c;}}class ct extends _0x39c08c{['afterInit'](){const _0x34abed=this['editor'];if(!_0x34abed['plugins']['has']('RestrictedEditingModeEditing'))return;_0x34abed['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class at extends _0x39c08c{constructor(_0x183bde){super(_0x183bde),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x37309d=this['editor'],_0x426c4f=_0x37309d['commands']['get']('importWord'),_0xd860b=_0x37309d['plugins']['get'](st);_0x426c4f&&(_0x426c4f['on']('execute',(_0x285059,[,_0x47cb35])=>{_0x47cb35['collaboration_features']={'comments':!0x0,'user_id':_0xd860b['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x426c4f,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5f39b0,_0x3cce11){const {comment_threads:_0x2ceac4}=_0x3cce11;_0x2ceac4&&_0x2ceac4['forEach'](({thread_id:_0x45eacb,comments:_0x49e811,is_resolved:_0x49511c})=>{const _0x3e4f96=new Date(),_0x2ad99a=_0x49e811['map'](({author:_0x3623f5,content:_0xa21236,created_at:_0x14ab5f})=>({'content':_0xa21236,'authorId':this['editor']['plugins']['get'](st)['me']['id'],'createdAt':_0x3e4f96,'attributes':{'@external':{'authorName':_0x3623f5,'createdAt':_0x14ab5f?new Date(_0x14ab5f):new Date(),'source':'importWord'}}})),_0xc460c4=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xc460c4,'threadId':_0x45eacb,'comments':_0x2ad99a,'resolvedAt':_0x49511c?_0x3e4f96:null});});}}class ut extends _0x39c08c{constructor(_0x13a5dc){super(_0x13a5dc),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x20e49f=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x20e49f,'contentInsertion',(_0x3d7b89,_0x26591a)=>this['_removeMarkersWithoutThreads'](_0x26591a['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x12107f){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x12107f;const _0x5c40d7=this['editor']['plugins']['get']('CommentsRepository');for(const _0x20f7af of _0x12107f['keys']()){const [_0x2edcf5,_0x3796c8]=_0x20f7af['split'](':');'comment'!=_0x2edcf5||_0x5c40d7['hasCommentThread'](_0x3796c8)||_0x12107f['delete'](_0x20f7af);}return _0x12107f;}['_registerMarkerInClipboardPipeline'](){const _0x256a4e=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3025c7=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3025c7&&_0x256a4e['_registerMarkerToCopy']('comment',_0x3025c7);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0xc49c21){switch(_0xc49c21){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ft extends _0x39c08c{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x36ac4f,_0x3d8722)=>{if(!_0x3d8722['options']['showCommentHighlights'])return null;if(_0x3d8722['options']['ignoreResolvedComments']){const {id:_0x2da78a}=er(_0x36ac4f['markerName']),_0x4b069b=this['editor']['plugins']['get'](o);if(_0x4b069b['getCommentThread'](_0x2da78a)?.['isResolved']&&_0x36ac4f['item'])return _0x3d8722['consumable']['consume'](_0x36ac4f['item'],'addMarker:'+_0x36ac4f['markerName']),_0x3d8722['consumable']['consume'](_0x36ac4f['item'],'removeMarker:'+_0x36ac4f['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4cae04=>{_0x4cae04['on']('addMarker:comment',(_0x294a81,_0x4aaaf6,_0x3a0e71)=>{if(!_0x3a0e71['options']['showCommentHighlights'])return;const _0x40bb6a=_0x4aaaf6['item'];if(!_0x40bb6a)return;const _0x45684f=_0x3a0e71['mapper']['toViewElement'](_0x40bb6a);this['editor']['model']['schema']['isObject'](_0x40bb6a)&&_0x45684f&&!_0x45684f['getCustomProperty']('widget')&&_0x45684f['is']('containerElement')&&_0x52e501(_0x45684f,_0x3a0e71['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ed877,{writer:_0x32e332,options:_0x134a25})=>{if(!_0x134a25['showCommentHighlights'])return null;const _0x7fa475=_0x32e332['createContainerElement']('div'),_0x51330d=_0x32e332['createEmptyElement']('hr');return _0x32e332['addClass']('ck-horizontal-line',_0x7fa475),_0x32e332['insert'](_0x32e332['createPositionAt'](_0x7fa475,0x0),_0x51330d),_0x7fa475;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x5d718f,{writer:_0xf4916,options:_0x183bbe})=>{if(!_0x183bbe['showCommentHighlights'])return null;const _0x73d417=_0xf4916['createContainerElement']('span'),_0x124c05=_0xf4916['createEmptyElement']('img');return _0xf4916['addClass']('image-inline',_0x73d417),_0xf4916['insert'](_0xf4916['createPositionAt'](_0x73d417,0x0),_0x124c05),_0x73d417;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2b14c0,{writer:_0x2f18a5,options:_0x30ec9b})=>{if(_0x30ec9b['showCommentHighlights'])return _0x2f18a5['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x31efcd,_0x231498,_0x14deba)=>{_0x14deba['options']['showCommentHighlights']&&_0x31efcd['stop']();},{'priority':'high'});}}class r extends _0x39c08c{static get['requires'](){return[o,P,st,ct,at,ut,ft];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49fa84){super(_0x49fa84),this['set']('isThreadsLoadingPaused',!0x0),_0x49fa84['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x10da69,_0xc6a585,_0x1a4366,_0x2afa0c)=>{const _0x2d4168=_0x49fa84['plugins']['get'](o),_0x2d0138=_0x1a4366?er(_0x1a4366)['id']:null;_0x49fa84['model']['change'](()=>{if(_0x2d0138){const _0x4e3327=this['getAllMarkersForId'](_0x2d0138);for(const _0x1a897d of _0x4e3327)_0x49fa84['editing']['reconvertMarker'](_0x1a897d);}if(_0x2afa0c){const {id:_0x55aa4f}=er(_0x2afa0c),_0x585aaf=_0x2d4168['getCommentThread'](_0x55aa4f);if(_0x585aaf&&_0x585aaf['unlinkedAt'])return;if(_0x585aaf&&!_0x585aaf['isAttached'])return;const _0x56fbb1=this['getAllMarkersForId'](_0x55aa4f);for(const _0x1331a4 of _0x56fbb1)_0x49fa84['editing']['reconvertMarker'](_0x1331a4);}}),_0x2d0138&&this['scrollToThreadMarker'](_0x2d0138);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x18f838=this['editor'],_0x35383b=_0x18f838['plugins']['get'](o),_0x3f777a=_0x18f838['config']['get']('collaboration.channelId'),_0x31b121=_0x35383b['getCommentThreads']()['filter'](_0x52bae6=>_0x52bae6['channelId']!==_0x3f777a);_0x18f838['commands']['add']('addCommentThread',new K(_0x18f838)),this['listenTo'](_0x18f838,'change:isReadOnly',(_0x47489a,_0x33b0c6,_0x1e3e87)=>{_0x35383b['switchReadOnly'](_0x1e3e87,_0x18f838['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x35383b,dt('addCommentThread',_0x3f777a),(_0x5e79b8,{threadId:_0xfee57})=>{const _0x3e105b=this['editor']['plugins']['get'](o)['getCommentThread'](_0xfee57);_0x3e105b?.['unlinkedAt']&&this['_attachArchivedThread'](_0xfee57);}),this['listenTo'](_0x35383b,dt('removeCommentThread',_0x3f777a),(_0x48a69c,{threadId:_0x4f1bda})=>{_0x18f838['model']['enqueueChange']({'isUndoable':!0x1},_0x391aed=>{const _0x26869b=this['getAllMarkersForId'](_0x4f1bda);for(const _0x3de91f of _0x26869b)_0x391aed['removeMarker'](_0x3de91f);});}),this['listenTo'](_0x35383b,dt('resolveCommentThread',_0x3f777a),(_0x59f3fe,{threadId:_0x446474})=>{(this['_reconvertMarkers'](_0x446474),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x446474)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x35383b,dt('reopenCommentThread',_0x3f777a),(_0xee3ac1,{threadId:_0x14f86c})=>{this['_reconvertMarkers'](_0x14f86c);},{'priority':'low'}),this['listenTo'](_0x35383b,dt('addComment',_0x3f777a),(_0x3df638,{threadId:_0x40e51c,isFromAdapter:_0x4e78b5})=>{const _0x540a72=this['getAllMarkersForId'](_0x40e51c);if(_0x4e78b5||0x0==_0x540a72['length']||!_0x35383b['hasCommentThread'](_0x40e51c))return;0x1===_0x35383b['getCommentThread'](_0x40e51c)['length']&&_0x18f838['model']['enqueueChange']({'isUndoable':!0x1},_0xaea78c=>{for(const _0x247213 of _0x540a72)_0xaea78c['updateMarker'](_0x247213,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x31b121);}['afterInit'](){!async function(_0x2467bd){const _0x46d27f=_0x5ad1b6([0x69,0x73,0x63,0x58,0x39,0x41,0x5a,0x30,0x74,0x65,0x4a,0x62,0x45,0x33,0x67,0x64,0x35,0x71,0x76,0x72,0x6e,0x59,0x49,0x61,0x66,0x4e,0x37,0x36,0x55,0x6b,0x54,0x4b,0x52,0x77,0x6c,0x34,0x4d,0x42,0x4c,0x43,0x44,0x48,0x51,0x56,0x47,0x6a,0x6d,0x32,0x38,0x7a,0x57,0x53,0x6f,0x4f,0x68,0x70,0x78,0x50,0x31,0x46,0x75,0x79]),_0x1f3ab5=0x8a7b0ee,_0x44ff1f=0x8a0db46^_0x1f3ab5,_0xf81ad7=window[_0x5ad1b6([0x44,0x61,0x74,0x65])][_0x5ad1b6([0x6e,0x6f,0x77])](),_0x4e2a8c=_0x2467bd[_0x5ad1b6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x398465=new window[(_0x5ad1b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x356359=>{_0x4e2a8c[_0x5ad1b6([0x6f,0x6e,0x63,0x65])](_0x5ad1b6([0x72,0x65,0x61,0x64,0x79]),_0x356359);}),_0x5400cb={[_0x5ad1b6([0x6b,0x74,0x79])]:_0x5ad1b6([0x45,0x43]),[_0x5ad1b6([0x75,0x73,0x65])]:_0x5ad1b6([0x73,0x69,0x67]),[_0x5ad1b6([0x63,0x72,0x76])]:_0x5ad1b6([0x50,0x2d,0x32,0x35,0x36]),[_0x5ad1b6([0x78])]:_0x5ad1b6([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]),[_0x5ad1b6([0x79])]:_0x5ad1b6([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]),[_0x5ad1b6([0x61,0x6c,0x67])]:_0x5ad1b6([0x45,0x53,0x32,0x35,0x36])},_0x2d7adc=_0x4e2a8c[_0x5ad1b6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ad1b6([0x67,0x65,0x74])](_0x5ad1b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x323787(){let _0x1321af,_0x504925=null,_0x398e59=null;try{if(_0x2d7adc==_0x5ad1b6([0x47,0x50,0x4c]))return _0x5ad1b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1321af=_0x9ebc61(),!_0x1321af)return _0x5ad1b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1321af[_0x5ad1b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x398e59=_0x41efe5(_0x1321af[_0x5ad1b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1321af[_0x5ad1b6([0x6a,0x74,0x69])])),await _0x15fcd4()?_0x102cb8()?_0x2f08ff()?_0x5ad1b6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a99d2()?(_0x1321af[_0x5ad1b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ad1b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x504925=_0x50fcc1(_0x5ad1b6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1321af[_0x5ad1b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ad1b6([0x74,0x72,0x69,0x61,0x6c])&&(_0x504925=_0x50fcc1(_0x5ad1b6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5aaa20()):_0x5ad1b6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ad1b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ad1b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ad1b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f08ff(){const _0x5eab4b=[_0x5ad1b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ad1b6([0x74,0x72,0x69,0x61,0x6c])][_0x5ad1b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1321af[_0x5ad1b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf81ad7/0x3e8:0xe10*_0x44ff1f;return _0x1321af[_0x5ad1b6([0x65,0x78,0x70])]<_0x5eab4b;}function _0x102cb8(){const _0x2fe3f2=_0x1321af[_0x5ad1b6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2fe3f2)return!0x1;if(_0x2fe3f2[_0x5ad1b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ad1b6([0x2a])))return!0x0;if(_0x2fe3f2[_0x5ad1b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ad1b6([0x43,0x4d,0x54])))return!0x0;if(_0x2fe3f2[_0x5ad1b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ad1b6([0x52,0x43,0x4d,0x54]))){if(_0x213c25())return!0x0;if(_0x172bf9()||_0x49634d())return!0x0;}return!0x1;}function _0x5a99d2(){const _0x94cfc=_0x1321af[_0x5ad1b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x94cfc||0x0==_0x94cfc[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x296b66}=new URL(window[_0x5ad1b6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x94cfc[_0x5ad1b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x296b66))return!0x0;const _0x1cb476=_0x296b66[_0x5ad1b6([0x73,0x70,0x6c,0x69,0x74])](_0x5ad1b6([0x2e]));return _0x94cfc[_0x5ad1b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a0907=>_0x2a0907[_0x5ad1b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ad1b6([0x2a])))[_0x5ad1b6([0x6d,0x61,0x70])](_0x3f0705=>_0x3f0705[_0x5ad1b6([0x73,0x70,0x6c,0x69,0x74])](_0x5ad1b6([0x2e])))[_0x5ad1b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x250d76=>_0x250d76[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1cb476[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ad1b6([0x6d,0x61,0x70])](_0xf84d64=>Array(_0x1cb476[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf84d64[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ad1b6([0x66,0x69,0x6c,0x6c])](_0xf84d64[0x0]===_0x5ad1b6([0x2a])?_0x5ad1b6([0x2a]):'')[_0x5ad1b6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf84d64))[_0x5ad1b6([0x73,0x6f,0x6d,0x65])](_0x49fc07=>_0x1cb476[_0x5ad1b6([0x65,0x76,0x65,0x72,0x79])]((_0x3b8d23,_0x59d2b7)=>_0x49fc07[_0x59d2b7]===_0x3b8d23||_0x49fc07[_0x59d2b7]===_0x5ad1b6([0x2a])));}function _0x5aaa20(){return _0x504925&&_0x398e59?new window[(_0x5ad1b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x332c03,_0x2c6473)=>{_0x504925[_0x5ad1b6([0x74,0x68,0x65,0x6e])](_0x332c03,_0x2c6473),_0x398e59[_0x5ad1b6([0x74,0x68,0x65,0x6e])](_0x39586a=>{_0x39586a!=_0x5ad1b6([0x56,0x61,0x6c,0x69,0x64])&&_0x332c03(_0x39586a);},_0x2c6473);}):_0x504925||_0x398e59||_0x5ad1b6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41efe5(_0x22f5ab,_0xaba6e4){return new window[(_0x5ad1b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfb8e0b=>{if(_0x2f4792())return _0xfb8e0b(_0x5ad1b6([0x56,0x61,0x6c,0x69,0x64]));_0x2e7a29(),_0x4e2a8c[_0x5ad1b6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ad1b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x594346=!0x1;const _0x2f49fb=_0x25f5e2();function _0x2fca16(_0x16fd31){return!!_0x16fd31&&(typeof _0x16fd31===_0x5ad1b6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16fd31===_0x5ad1b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16fd31[_0x5ad1b6([0x74,0x68,0x65,0x6e])]===_0x5ad1b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16fd31[_0x5ad1b6([0x63,0x61,0x74,0x63,0x68])]===_0x5ad1b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b03f5(_0x420647){_0x4583c6(_0x420647)[_0x5ad1b6([0x74,0x68,0x65,0x6e])](_0x508d18=>{if(!_0x508d18||_0x508d18[_0x5ad1b6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ad1b6([0x6f,0x6b]))return _0x5ad1b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c9817(_0x9a1295(_0x2f49fb+_0xaba6e4))!=_0x508d18[_0x5ad1b6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ad1b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ad1b6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ad1b6([0x74,0x68,0x65,0x6e])](_0x44c791=>(_0x43d626(),_0x44c791),()=>{const _0x96a0c7=_0x3f9fa0();return null==_0x96a0c7?(_0x43d626(),_0x5ad1b6([0x56,0x61,0x6c,0x69,0x64])):_0x5ad1b6(_0xf81ad7-_0x96a0c7>(0x2cab34ee^_0x1f3ab5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ad1b6([0x74,0x68,0x65,0x6e])](_0xfb8e0b)[_0x5ad1b6([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfb8e0b(_0x5ad1b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x337e96=0x8915e6e^_0x1f3ab5;function _0x43d626(){const _0x5c63ff=_0x5ad1b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c9817(_0x9a1295(_0x22f5ab)),_0x1b74c1=_0xf193af(_0x5c9817(window[_0x5ad1b6([0x4d,0x61,0x74,0x68])][_0x5ad1b6([0x63,0x65,0x69,0x6c])](_0xf81ad7/_0x337e96)));window[_0x5ad1b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ad1b6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c63ff,_0x1b74c1);}function _0x3f9fa0(){const _0x2081bb=_0x5ad1b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c9817(_0x9a1295(_0x22f5ab)),_0x5a7990=window[_0x5ad1b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ad1b6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2081bb);return _0x5a7990?window[_0x5ad1b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf193af(_0x5a7990),0x10)*_0x337e96:null;}function _0x4583c6(_0x2e7992){return new window[(_0x5ad1b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5835bc,_0x4ab80c)=>{_0x2e7992[_0x5ad1b6([0x74,0x68,0x65,0x6e])](_0x5835bc,_0x4ab80c),window[_0x5ad1b6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ab80c,0x8a6642e^_0x1f3ab5);});}}_0x4e2a8c[_0x5ad1b6([0x6f,0x6e])](_0x5ad1b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38aea2,_0x59f26e)=>{if(_0x59f26e[0x0]!=_0x22f5ab)return _0xfb8e0b(_0x5ad1b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x59f26e[0x1]={..._0x59f26e[0x1],[_0x5ad1b6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f49fb};},{[_0x5ad1b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ad1b6([0x68,0x69,0x67,0x68])}),_0x4e2a8c[_0x5ad1b6([0x6f,0x6e])](_0x5ad1b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5dd122=>{_0x2fca16(_0x5dd122[_0x5ad1b6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x594346=!0x0,_0x3b03f5(_0x5dd122[_0x5ad1b6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ad1b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ad1b6([0x6c,0x6f,0x77])}),_0x398465[_0x5ad1b6([0x74,0x68,0x65,0x6e])](()=>{_0x594346||_0xfb8e0b(_0x5ad1b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f4792(){return _0x4e2a8c[_0x5ad1b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ad1b6([0x76,0x69,0x65,0x77])][_0x5ad1b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ad1b6([0x61,0x75,0x74,0x6f]);}function _0x2e7a29(){_0x4e2a8c[_0x5ad1b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ad1b6([0x76,0x69,0x65,0x77])][_0x5ad1b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ad1b6([0x61,0x75,0x74,0x6f]);}}function _0x50fcc1(_0x1097b8){const _0x23262a=[new window[(_0x5ad1b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x155fe4=>setTimeout(_0x155fe4,0x8ae8e22^_0x1f3ab5)),_0x398465[_0x5ad1b6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ad1b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ba6d9=>{let _0xce01b5=0x0;_0x4e2a8c[_0x5ad1b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ad1b6([0x6f,0x6e])](_0x5ad1b6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x12a65e,_0x206929)=>{_0x206929[0x0][_0x5ad1b6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xce01b5++,_0xce01b5==(0x8a7b116^_0x1f3ab5)&&(_0x4ba6d9(),_0x12a65e[_0x5ad1b6([0x6f,0x66,0x66])]());});}))];return window[_0x5ad1b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ad1b6([0x72,0x61,0x63,0x65])](_0x23262a)[_0x5ad1b6([0x74,0x68,0x65,0x6e])](()=>_0x1097b8);}async function _0x571711(){await _0x398465,_0x4e2a8c[_0x5ad1b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ad1b6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e0609,_0x4e2a8c[_0x5ad1b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ad1b6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e0609,_0x4e2a8c[_0x5ad1b6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ad1b6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x213c25(){return _0x4861d0(_0x5ad1b6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5f4b8c(_0x5ad1b6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5ad1b6([0x73,0x74,0x61,0x74,0x65])]==_0x5ad1b6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x172bf9(){return _0x4861d0(_0x5ad1b6([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 _0x49634d(){return _0x4861d0(_0x5ad1b6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x23d458(_0x4ff3c4){const _0x16d8a9=_0x5e07a9();_0x4e2a8c[_0x16d8a9]=_0x5ad1b6([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ff3c4,_0x4ff3c4!=_0x5ad1b6([0x56,0x61,0x6c,0x69,0x64])&&_0x571711();}function _0x5e07a9(){const _0x355796=window[_0x5ad1b6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ad1b6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ad1b6([0x6e,0x6f,0x77])]())[_0x5ad1b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ad1b6([0x2e]),'');let _0x2126cc=_0x5ad1b6([0x69]);for(let _0xecd008=0x0;_0xecd008<_0x355796[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xecd008+=0x2){let _0x561cb7=window[_0x5ad1b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x355796[_0x5ad1b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xecd008,_0xecd008+0x2));_0x561cb7>=_0x46d27f[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x561cb7-=_0x46d27f[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2126cc+=_0x46d27f[_0x561cb7];}return _0x2126cc;}function _0x9ebc61(){const _0x1b9113=_0x2d7adc[_0x5ad1b6([0x73,0x70,0x6c,0x69,0x74])](_0x5ad1b6([0x2e]));if(0x3!=_0x1b9113[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59d1b6(_0x1b9113[0x1]);function _0x59d1b6(_0x9739f1){const _0x31d9a5=_0x2bc92a(_0x9739f1);return _0x31d9a5&&_0x257ceb()?_0x31d9a5:null;function _0x257ceb(){const _0x249b6a=_0x31d9a5[_0x5ad1b6([0x6a,0x74,0x69])],_0x263fa8=window[_0x5ad1b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x249b6a[_0x5ad1b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x249b6a[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d95ef={..._0x31d9a5,[_0x5ad1b6([0x6a,0x74,0x69])]:_0x249b6a[_0x5ad1b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x249b6a[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d95ef[_0x5ad1b6([0x76,0x63])],_0x9a1295(_0x5d95ef)==_0x263fa8;}}}async function _0x15fcd4(){let _0x4c3e5d=!0x0;try{const _0x58f2b1=_0x2d7adc[_0x5ad1b6([0x73,0x70,0x6c,0x69,0x74])](_0x5ad1b6([0x2e])),[_0x4ea053,_0x561ac8,_0x51d6ce]=_0x58f2b1;return _0x30ade7(_0x4ea053),await _0x22198e(_0x4ea053,_0x561ac8,_0x51d6ce),_0x4c3e5d;}catch{return!0x1;}function _0x30ade7(_0x498565){const _0x2abb85=_0x2bc92a(_0x498565);_0x2abb85&&_0x2abb85[_0x5ad1b6([0x61,0x6c,0x67])]==_0x5ad1b6([0x45,0x53,0x32,0x35,0x36])||(_0x4c3e5d=!0x1);}async function _0x22198e(_0x27ef78,_0x44807c,_0x12ab2a){const _0x4592ff=window[_0x5ad1b6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ad1b6([0x66,0x72,0x6f,0x6d])](_0x3829fe(_0x12ab2a),_0x22f2bb=>_0x22f2bb[_0x5ad1b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x324f4b=new window[(_0x5ad1b6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ad1b6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27ef78+_0x5ad1b6([0x2e])+_0x44807c),_0x5a3b7a=window[_0x5ad1b6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ad1b6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a3b7a)return;const _0xf5e1f0=await _0x5a3b7a[_0x5ad1b6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ad1b6([0x6a,0x77,0x6b]),_0x5400cb,{[_0x5ad1b6([0x6e,0x61,0x6d,0x65])]:_0x5ad1b6([0x45,0x43,0x44,0x53,0x41]),[_0x5ad1b6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ad1b6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ad1b6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a3b7a[_0x5ad1b6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ad1b6([0x6e,0x61,0x6d,0x65])]:_0x5ad1b6([0x45,0x43,0x44,0x53,0x41]),[_0x5ad1b6([0x68,0x61,0x73,0x68])]:{[_0x5ad1b6([0x6e,0x61,0x6d,0x65])]:_0x5ad1b6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf5e1f0,_0x4592ff,_0x324f4b)||(_0x4c3e5d=!0x1);}}function _0x2bc92a(_0xcff714){return _0xcff714[_0x5ad1b6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ad1b6([0x65,0x79]))?JSON[_0x5ad1b6([0x70,0x61,0x72,0x73,0x65])](_0x3829fe(_0xcff714)):null;}function _0x3829fe(_0x5d641d){return window[_0x5ad1b6([0x61,0x74,0x6f,0x62])](_0x5d641d[_0x5ad1b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ad1b6([0x2b]))[_0x5ad1b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ad1b6([0x2f])));}function _0x9a1295(_0x127b33){let _0x3d3e80=0x1505;function _0x19f11d(_0x1e4cf3){for(let _0x575f44=0x0;_0x575f44<_0x1e4cf3[_0x5ad1b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x575f44++){const _0x6a14bd=_0x1e4cf3[_0x5ad1b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x575f44);_0x3d3e80=(_0x3d3e80<<0x5)+_0x3d3e80+_0x6a14bd,_0x3d3e80&=_0x3d3e80;}}function _0x16099d(_0x3a5a7c){Array[_0x5ad1b6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a5a7c)?_0x3a5a7c[_0x5ad1b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16099d):_0x3a5a7c&&typeof _0x3a5a7c==_0x5ad1b6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ad1b6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a5a7c)[_0x5ad1b6([0x73,0x6f,0x72,0x74])]()[_0x5ad1b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56386a,_0x55cd7a])=>{_0x19f11d(_0x56386a),_0x16099d(_0x55cd7a);}):_0x19f11d(window[_0x5ad1b6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a5a7c));}return _0x16099d(_0x127b33),_0x3d3e80>>>0x0;}function _0x5c9817(_0x125a9b){return _0x125a9b[_0x5ad1b6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ad1b6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ad1b6([0x30]));}function _0xf193af(_0x176e6c){return _0x176e6c[_0x5ad1b6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ad1b6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ad1b6([0x6a,0x6f,0x69,0x6e])]('');}function _0x4861d0(_0x1b9c2f){return _0x4e2a8c[_0x5ad1b6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5ad1b6([0x68,0x61,0x73])](_0x1b9c2f);}function _0x5f4b8c(_0x1188a9){return _0x4e2a8c[_0x5ad1b6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5ad1b6([0x67,0x65,0x74])](_0x1188a9);}function _0x4e0609(){}function _0x5ad1b6(_0x5a6a8){return _0x5a6a8['map'](_0x536e6c=>String['fromCharCode'](_0x536e6c))['join']('');}_0x23d458(await _0x323787());}(this);}['destroy'](){const _0x20d091=this['editor']['plugins']['get'](o),_0x3afcab=this['editor']['config']['get']('collaboration.channelId');for(const _0x25ba0f of _0x20d091['getCommentThreads']({'channelId':_0x3afcab}))_0x20d091['_detachCommentThread'](_0x25ba0f['id']),_0x20d091['_threads']['delete'](_0x25ba0f['id']);super['destroy']();}['hasMarkerForId'](_0xf79a69){return this['getAllMarkersForId'](_0xf79a69)['length']>0x0;}['getAllMarkersForId'](_0x2e55d2){const _0x20c160=[];for(const _0x4b9e53 of this['editor']['model']['markers'])_0x4b9e53['name']['startsWith']('comment:'+_0x2e55d2)&&_0x20c160['push'](_0x4b9e53);return _0x20c160;}['scrollToThreadMarker'](_0x3d104e){const _0x5a030b=this['_getTargetForId'](_0x3d104e);_0x5a030b&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x3d104e&&rt({'target':_0x5a030b[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x30912b){this['editor']['model']['change'](()=>{for(const _0x394388 of this['getAllMarkersForId'](_0x30912b))this['editor']['editing']['reconvertMarker'](_0x394388);});}['_attachArchivedThread'](_0x3e7255){const _0x153f71=this['editor']['plugins']['get'](o),_0x528630=this['editor']['plugins']['get'](P),_0x2b8184=_0x153f71['getCommentThread'](_0x3e7255);if(!_0x2b8184['isAttached']){const _0x44e467=_0x2b8184['attachTo'](()=>this['_getTargetForId'](_0x2b8184['id']));_0x528630['registerAnnotation'](_0x44e467),_0x2b8184['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1c9a6c=this['editor'],_0x303ad1=_0x1c9a6c['plugins']['get'](st);_0x1c9a6c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x237997,_0x2741b2)=>{const {id:_0x25c64c}=er(_0x237997['markerName']),_0x4ac577=_0x1c9a6c['plugins']['get'](o)['getCommentThread'](_0x25c64c),_0x58c1c7=this['activeMarker']&&er(this['activeMarker'])['id']===_0x25c64c;let _0x15e7da;if(_0x4ac577&&_0x4ac577['isResolved']&&!_0x58c1c7&&_0x237997['item'])return _0x2741b2['consumable']['consume'](_0x237997['item'],'addMarker:'+_0x237997['markerName']),_0x2741b2['consumable']['consume'](_0x237997['item'],'removeMarker:'+_0x237997['markerName']),null;const _0x2b8e03=['ck-comment-marker'];return _0x58c1c7&&_0x2b8e03['push']('ck-comment-marker--active'),_0x15e7da=_0x4ac577?.['length']?_0x4ac577['comments']['first']['author']['id']:_0x303ad1['me']['id'],{'classes':_0x2b8e03,'attributes':{'data-comment':_0x25c64c,'data-author-id':_0x15e7da}};}}),_0x1c9a6c['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x306654,{options:_0x4728fa})=>{if(_0x4728fa['showCommentHighlights'])return null;const _0x5738e6=_0x1c9a6c['plugins']['get'](o),_0x26927d=_0x1c9a6c['model']['markers']['get'](_0x306654),{id:_0x56ac32,part:_0x174395}=er(_0x306654);return _0x26927d&&!_0x26927d['affectsData']||_0x4728fa['ignoreResolvedComments']&&_0x5738e6['getCommentThread'](_0x56ac32)?.['isResolved']?null:{'group':'comment','name':_0x174395?_0x56ac32+':'+_0x174395:_0x56ac32};}}),_0x1c9a6c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x298f14,{writer:_0x274196})=>_0x274196['createElement']('$marker',{'data-name':'comment:'+_0x298f14['getAttribute']('id')})}),_0x1c9a6c['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x42779e=this['editor'],_0x587c34=_0x42779e['plugins']['get'](o),_0x4c6a43=new Set(),_0x582dbb=new Set();_0x42779e['model']['document']['registerPostFixer'](_0x1427cb=>{let _0x2b710d=!0x1;for(const {name:_0x4af048,data:_0x288a9c}of _0x42779e['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4ad9bf,id:_0x582763}=er(_0x4af048);let _0x302267=_0x288a9c['newRange'];if('comment'!==_0x4ad9bf||!_0x302267)continue;const _0x546b25='$graveyard'===_0x302267['root']['rootName'];_0x546b25||(_0x302267=mt(_0x302267,_0x42779e['model']),!_0x302267||_0x302267['isCollapsed']||!_0x288a9c['newRange']||_0x302267['isEqual'](_0x288a9c['newRange']))?_0x42779e['model']['hasContent'](_0x302267)&&!_0x546b25?this['isThreadsLoadingPaused']?_0x4c6a43['add'](_0x4af048):this['_handleThreadMarker'](_0x4af048,_0x582763):(_0x582dbb['add'](_0x4af048),_0x4c6a43['delete'](_0x4af048),_0x1427cb['removeMarker'](_0x4af048),_0x2b710d=!0x0):(_0x1427cb['updateMarker'](_0x4af048,{'range':_0x302267}),_0x2b710d=!0x0);}return _0x2b710d;}),this['on']('change:isThreadsLoadingPaused',(_0x15740d,_0x11d8a3,_0x23bf6e)=>{if(!_0x23bf6e&&_0x4c6a43['size'])for(const _0x2307d0 of _0x4c6a43){const {id:_0x28f7b7}=er(_0x2307d0);_0x4c6a43['delete'](_0x2307d0),_0x42779e['model']['markers']['get'](_0x2307d0)&&this['_handleThreadMarker'](_0x2307d0,_0x28f7b7);}}),this['listenTo'](_0x42779e['model']['document'],'change',()=>{for(const {name:_0x5313a1,data:{newRange:_0x45556d}}of _0x42779e['model']['document']['differ']['getChangedMarkers']()){const {group:_0x311a2e,id:_0x576db5}=er(_0x5313a1);if('comment'!==_0x311a2e)continue;const _0x274e28=_0x587c34['getCommentThread'](_0x576db5),_0x7533df=this['hasMarkerForId'](_0x576db5);_0x274e28&&(!_0x274e28['_hasTargetInContent']&&_0x45556d&&_0x42779e['editing']['view']['once']('render',()=>{const _0x354e01=_0x42779e['plugins']['get'](O),_0x172b8f=_0x587c34['_threadToController']['get'](_0x274e28)['view'];_0x354e01['getByInnerView'](_0x172b8f)['refreshVisibility']();},{'priority':'low'}),_0x274e28['_hasTargetInContent']=_0x7533df||!!_0x45556d),_0x45556d||(_0x582dbb['add'](_0x5313a1),_0x4c6a43['delete'](_0x5313a1));}for(const _0x2057b2 of _0x582dbb){const {id:_0x5927c5}=er(_0x2057b2),_0x470faa=_0x587c34['getCommentThread'](_0x5927c5);if(_0x4c6a43['delete'](_0x2057b2),!_0x470faa)continue;const _0x1aa407=this['hasMarkerForId'](_0x5927c5);_0x1aa407||_0x470faa['isSubmitted']?_0x1aa407||_0x470faa['unlinkedAt']||_0x470faa['setUnlinkedAt'](new Date()):_0x470faa['remove']();}_0x582dbb['clear']();});}['_handleInitialThreads'](_0x5c5b26){_0x5c5b26['forEach'](_0x4a99a5=>{_0x4a99a5['unlinkedAt']&&this['_attachArchivedThread'](_0x4a99a5['id']);});}['_getTargetForId'](_0x5a5617){const _0xe6cfc6=this['editor'],_0x276209=this['getAllMarkersForId'](_0x5a5617);return et(_0xe6cfc6['editing'],_0x276209);}['_getTextContext'](_0x2df712){const _0x5b19e0=this['getAllMarkersForId'](_0x2df712);let _0x48bd71='',_0x1d8acb=!0x1;for(const _0x5d068b of _0x5b19e0){const _0x52c31e=_0x5d068b['getRange']();for(const _0x4b6f92 of Array['from'](_0x52c31e['getItems']()))_0x4b6f92['is']('$textProxy')?(_0x48bd71&&_0x1d8acb&&(_0x48bd71+='\x20',_0x1d8acb=!0x1),_0x48bd71+=_0x4b6f92['data']):_0x1d8acb=!0x0;_0x1d8acb=!0x0;}return _0x48bd71['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x592c39,_0x59b3eb){const _0x57b9f5=this['editor'],_0x2b9a12=_0x57b9f5['plugins']['get'](o);let _0x4de4ee=_0x2b9a12['getCommentThread'](_0x59b3eb);const _0x11639a=_0x57b9f5['config']['get']('collaboration.channelId'),_0x7ac683=_0x57b9f5['plugins']['get'](P);if(_0x4de4ee&&(_0x4de4ee['unlinkedAt']&&_0x4de4ee['setUnlinkedAt'](null),_0x4de4ee['isAttached']))return _0x4de4ee;return!this['getAllMarkersForId'](_0x59b3eb)[0x0]['managedUsingOperations']?_0x57b9f5['editing']['view']['once']('render',()=>{if(_0x2b9a12['getCommentThread'](_0x59b3eb))return;const _0x341c24=_0x57b9f5['plugins']['get'](O);_0x4de4ee=_0x2b9a12['openNewCommentThread']({'channelId':_0x11639a,'threadId':_0x59b3eb,'target':()=>this['_getTargetForId'](_0x59b3eb),'context':{'type':'text','value':this['_getTextContext'](_0x59b3eb)}});const _0x34233f=_0x2b9a12['_threadToController']['get'](_0x4de4ee)['view'],_0x1d96e2=_0x341c24['getByInnerView'](_0x34233f);_0x1d96e2&&_0x7ac683['registerAnnotation'](_0x1d96e2);},{'priority':'low'}):_0x2b9a12['fetchCommentThread']({'channelId':_0x11639a,'threadId':_0x59b3eb})['then'](_0x57bebe=>{if('destroyed'!==_0x57b9f5['state']){if(_0x4de4ee=_0x57bebe,_0x4de4ee&&!_0x4de4ee['isAttached']){const _0x2999ce=_0x4de4ee['attachTo'](()=>this['_getTargetForId'](_0x59b3eb));_0x7ac683['registerAnnotation'](_0x2999ce),_0x4de4ee['isResolved']&&this['_reconvertMarkers'](_0x59b3eb);}else{if(!_0x4de4ee){const _0x439e0c=this['getAllMarkersForId'](_0x59b3eb);_0x57b9f5['model']['change'](_0x25b0a6=>{for(const _0x57761f of _0x439e0c)_0x25b0a6['removeMarker'](_0x57761f);});}}}}),_0x4de4ee;}['_handleThreadMarker'](_0x2d34a1,_0x24a0db){const _0xcb7d3e=this['_attachMarkerToThread'](_0x2d34a1,_0x24a0db);_0xcb7d3e&&!_0xcb7d3e['context']&&_0xcb7d3e['setContext']({'type':'text','value':this['_getTextContext'](_0x24a0db)});}['_initAriaMarkerChangeAnnouncements'](){const _0x6f1184=this['editor'];ot(_0x6f1184['model'],({left:_0x54c841,entered:_0xbd16e9})=>{for(const _0x39bf42 of _0x54c841)if(ht(_0x39bf42)){_0x6f1184['ui']['ariaLiveAnnouncer']['announce'](E(_0x6f1184['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x1eddd0 of _0xbd16e9)if(ht(_0x1eddd0)){_0x6f1184['ui']['ariaLiveAnnouncer']['announce'](E(_0x6f1184['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x5a6ef5)));break;}});}}function dt(_0x399cc6,_0x180c1d){return _0x180c1d?_0x399cc6+':'+_0x180c1d:_0x399cc6;}function er(_0x314d79){const _0x35a732=_0x314d79['split'](':');return{'group':_0x35a732[0x0],'id':_0x35a732[0x1],'part':_0x35a732[0x2]};}function mt(_0x86866,_0x19b7b7){const _0x421f12=_0x19b7b7['schema'],_0x14b875=_0x19b7b7['createRange'](_0x86866['start']);for(const _0x295157 of _0x86866['getWalker']()){const {type:_0x52263b,item:_0x4a63ae,nextPosition:_0x225793}=_0x295157;if('text'===_0x52263b||_0x421f12['isObject'](_0x4a63ae)){const _0x3288c8=_0x19b7b7['createPositionBefore'](_0x4a63ae);_0x14b875['isCollapsed']&&(_0x14b875['start']=_0x3288c8),_0x14b875['end']=_0x225793;}}return _0x14b875;}function ht(_0x5eb954){return'comment'===er(_0x5eb954['name'])['group'];}class i extends _0x39c08c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,O];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x2f0182=this['editor'],_0x59b3b5=_0x2f0182['plugins']['get'](o),_0xe301b3=_0x2f0182['plugins']['get'](r),_0x2def13=_0x2f0182['plugins']['get'](O),_0x3a8936=_0x2f0182['plugins']['get'](P);_0x2f0182['ui']['componentFactory']['add']('comment',()=>{const _0x49eee7=this['_createUIButton'](_0x57ea8a);return _0x49eee7['tooltip']=!0x0,_0x49eee7;}),_0x2f0182['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x58cbad)),_0x3a8936['addSourceCollector'](()=>{const _0x266449=[];for(const [_0x102e1a,_0x3e5261]of _0x59b3b5['_threadToController']){const _0x4748b2=_0xe301b3['getAllMarkersForId'](_0x102e1a['id']),_0x23a216=_0x4748b2['map'](_0x131fa8=>_0x131fa8['getRange']());_0x4748b2['length']>0x0&&_0x266449['push']([_0x3e5261['view'],_0x23a216]);}return _0x266449;}),this['listenTo'](_0x2def13,'change:activeAnnotations',(_0x10e1f3,_0x16be4a,_0x162130)=>{const _0x331fc8=Array['from'](_0x162130)['map'](_0x1743c3=>_0x1743c3['innerView'])['find'](_0x4d4d4e=>_0x59b3b5['_viewToController']['has'](_0x4d4d4e));if(!_0x331fc8)return void(_0xe301b3['activeMarker']=null);const _0x490fc0=_0x59b3b5['_viewToController']['get'](_0x331fc8)['model']['id'],_0x13cb36='comment:'+_0x490fc0;_0x490fc0&&_0xe301b3['hasMarkerForId'](_0x490fc0)?_0xe301b3['activeMarker']=_0x13cb36:_0xe301b3['activeMarker']&&(_0xe301b3['activeMarker']=null);}),this['listenTo'](_0x59b3b5,'removeCommentThread',(_0x5475a9,{threadId:_0x3d98ba,isFromAdapter:_0x43e155})=>{!_0x43e155&&_0x2f0182['ui']['focusTracker']['isFocused']&&_0xe301b3['hasMarkerForId'](_0x3d98ba)&&_0x2f0182['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x59b3b5,'addComment',(_0x29cd29,{threadId:_0x20abd0,isFromAdapter:_0x378c7b})=>{if(_0x378c7b||!_0xe301b3['hasMarkerForId'](_0x20abd0)||!_0x59b3b5['hasCommentThread'](_0x20abd0))return;0x1===_0x59b3b5['getCommentThread'](_0x20abd0)['length']&&(_0x2f0182['editing']['view']['focus'](),_0x29cd29['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x560a15=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e7eaf;for(const _0x10eee4 in _0x560a15){const _0x1a9ea7=_0x10eee4,_0x52c3cd=_0x560a15[_0x1a9ea7];if('commentsLicenseKeyValid'==_0x52c3cd||'commentsLicenseKeyInvalid'==_0x52c3cd||'commentsLicenseKeyExpired'==_0x52c3cd||'commentsLicenseKeyDomainLimit'==_0x52c3cd||'commentsLicenseKeyNotAllowed'==_0x52c3cd||'commentsLicenseKeyEvaluationLimit'==_0x52c3cd||'commentsLicenseKeyTrialLimit'==_0x52c3cd||'commentsLicenseKeyUsageLimit'==_0x52c3cd){delete _0x560a15[_0x1a9ea7],_0x2e7eaf=_0x52c3cd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x2e7eaf&&_0x560a15['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x2e7eaf&&_0x560a15['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x2e7eaf&&_0x560a15['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x2e7eaf&&_0x560a15['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x2e7eaf&&_0x560a15['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x2e7eaf&&_0x560a15['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x2e7eaf&&_0x560a15['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x35703c){const _0x57a1a3=this['editor'],_0x285f7c=new _0x35703c(_0x57a1a3['locale']),_0x2b20bd=_0x57a1a3['commands']['get']('addCommentThread');return _0x285f7c['set']({'label':E(_0x57a1a3['locale'],'Comment'),'icon':_0x1bf1d3}),_0x285f7c['bind']('isEnabled')['to'](_0x2b20bd),this['listenTo'](_0x285f7c,'execute',()=>{_0x2b20bd['execute']();}),_0x285f7c;}}class s extends _0x39c08c{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x4e2f5a){super(_0x4e2f5a),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2ccaaa,_0x5a3f19,_0x468ece)=>{_0x468ece?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x4d4882,_0x5a3140]of this['editor']['commands'])_0x5a3140['affectsData']&&'addCommentThread'!==_0x4d4882&&_0x5a3140['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0xe81312=this['editor']['editing']['view']['document'];this['listenTo'](_0xe81312,'cut',_0x16019a=>_0x16019a['stop'](),{'priority':'highest'}),this['listenTo'](_0xe81312,'clipboardInput',_0x2174bb=>_0x2174bb['stop'](),{'priority':'highest'}),this['listenTo'](_0xe81312,'delete',_0x1d17f5=>_0x1d17f5['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0xf596e7,_0x40eef8]of this['editor']['commands'])_0x40eef8['affectsData']&&'addCommentThread'!==_0xf596e7&&_0x40eef8['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 M extends _0x474ed3{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b19f4){super(_0x1b19f4),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x35a820=this['context']['plugins']['get'](O);this['listenTo'](_0x35a820,'_activateAnnotation',(_0x28de8c,_0x51221c)=>{for(const _0xb742c2 of this['activeUIs']){const _0x69e011=this['_uis']['get'](_0xb742c2);(0x0,this['uisData']['get'](_0xb742c2)['filter'])(_0x51221c)&&_0x69e011['setActiveAnnotation'](_0x51221c);}}),this['listenTo'](_0x35a820,'_deactivateAllAnnotations',()=>{for(const _0x438b5b of this['activeUIs']){this['_uis']['get'](_0x438b5b)['setActiveAnnotation'](null);}}),this['listenTo'](_0x35a820['_visibleAnnotations'],'add',(_0x29b55d,_0x6b9dbf)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x6b9dbf);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3c8eed){return this['activeUIs']['has'](_0x3c8eed);}['activate'](_0x1f59cb,_0x45bda9=this['defaultFilter']){const _0xcaec4c=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x1f59cb))throw new _0x388981('annotationsuis-missing-ui',this,{'uiName':_0x1f59cb});this['isActive'](_0x1f59cb)&&this['deactivate'](_0x1f59cb),this['activeUIs']['add'](_0x1f59cb);const _0x28ed7d=new _();!function({source:_0x5a8be5,target:_0x46fbed,filter:_0x3f768c}){for(const _0x143b8a of _0x5a8be5)_0x3f768c(_0x143b8a)&&_0x46fbed['add'](_0x143b8a);_0x46fbed['listenTo'](_0x5a8be5,'add',(_0x4cba14,_0xfd066d)=>{_0x3f768c(_0xfd066d)&&_0x46fbed['add'](_0xfd066d);}),_0x46fbed['listenTo'](_0x5a8be5,'remove',(_0x255bcd,_0x2f5baa)=>{_0x46fbed['has'](_0x2f5baa)&&_0x46fbed['remove'](_0x2f5baa);});}({'source':_0xcaec4c['_visibleAnnotations'],'target':_0x28ed7d,'filter':_0x45bda9}),this['uisData']['set'](_0x1f59cb,{'collection':_0x28ed7d,'filter':_0x45bda9});const _0x5afcbd=this['_uis']['get'](_0x1f59cb);_0x5afcbd['attach'](_0x28ed7d),this['listenTo'](_0x5afcbd,'change:activeAnnotation',(_0x1c84e3,_0x4542b2,_0x3de156,_0x3fe7da)=>{_0x3fe7da&&_0xcaec4c['_removeActiveAnnotation'](_0x3fe7da),_0x3de156&&_0xcaec4c['_addActiveAnnotation'](_0x3de156);});}['deactivate'](_0x5f5016){if(this['activeUIs']['delete'](_0x5f5016),!this['_uis']['has'](_0x5f5016))throw new _0x388981('annotationsuis-missing-ui',this,{'uiName':_0x5f5016});const _0x4b848e=this['_uis']['get'](_0x5f5016);_0x4b848e['detach'](),this['stopListening'](_0x4b848e),this['uisData']['get'](_0x5f5016)['collection']['destroy'](),this['uisData']['delete'](_0x5f5016);}['switchTo'](_0x22c5de){if(!this['_uis']['has'](_0x22c5de))throw new _0x388981('annotationsuis-missing-ui',this,{'uiName':_0x22c5de});const _0x17b9bb=this['context']['plugins']['get'](O),_0x2cd5ae=Array['from'](_0x17b9bb['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x22c5de);const _0x1d81b2=this['_uis']['get'](_0x22c5de);_0x1d81b2['setActiveAnnotation'](_0x2cd5ae),_0x1d81b2['_setSelectedAnnotations']&&_0x2cd5ae&&_0x1d81b2['_setSelectedAnnotations']([_0x2cd5ae]);}['deactivateAll'](){for(const _0x3706b2 of this['activeUIs'])this['deactivate'](_0x3706b2);}['register'](_0x437352,_0x1e88cc){if(this['_uis']['has'](_0x437352))throw new _0x388981('annotationsuis-register-already-registered');if('function'!=typeof _0x1e88cc['attach']||'function'!=typeof _0x1e88cc['detach']||'function'!=typeof _0x1e88cc['setActiveAnnotation'])throw new _0x388981('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x437352,_0x1e88cc);}['refilterAnnotations'](){const _0x232ab2=this['context']['plugins']['get'](O)['collection'],_0xc7d062=new Map(),_0x3818a7=Array['from'](this['activeUIs']);for(const _0xcaf2d9 of this['activeUIs']){const _0x560736=this['uisData']['get'](_0xcaf2d9)['collection'];for(const _0x5dcb84 of _0x560736)_0xc7d062['set'](_0x5dcb84,_0xcaf2d9);}for(const _0x27f6d7 of _0x232ab2){const _0x44bb7f=_0xc7d062['get'](_0x27f6d7);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x27f6d7);const _0x17b9e8=_0x3818a7['find'](_0x352ffc=>this['uisData']['get'](_0x352ffc)['filter'](_0x27f6d7));_0x44bb7f!==_0x17b9e8&&(_0x44bb7f&&this['uisData']['get'](_0x44bb7f)['collection']['remove'](_0x27f6d7),_0x17b9e8&&this['uisData']['get'](_0x17b9e8)['collection']['add'](_0x27f6d7));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x308147){const _0x47553d=[];for(const _0x2a0d7d of this['activeUIs']){(0x0,this['uisData']['get'](_0x2a0d7d)['filter'])(_0x308147)&&_0x47553d['push'](_0x2a0d7d);}if(_0x47553d['length']>0x1)throw new _0x388981('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x47553d,'annotationType':_0x308147['type']});}}const pi=xt('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0xa957f1){super(_0xa957f1);const _0x4fc395=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 _0x47c1df(),this['focusCycler']=new _0x2f783a({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4fc395['to']('class')],'style':{'minHeight':_0x4fc395['to']('minHeight',_0x2da85d=>'number'==typeof _0x2da85d?pi(_0x2da85d+0xa):null)},'dir':_0xa957f1['uiLanguageDirection'],'role':'application','aria-label':E(_0xa957f1,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0xa957f1,'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',_0x441394=>{this['_updateItemPositionInFocusables'](_0x441394['source']);}),this['list']['forEach'](_0x19c1b5=>{this['focusTracker']['add'](_0x19c1b5['element']),this['_updateItemPositionInFocusables'](_0x19c1b5);}),this['list']['on']('change',(_0x14a691,_0x423334)=>{for(const _0x183050 of _0x423334['removed'])this['focusTracker']['remove'](_0x183050['element']),this['focusables']['remove'](_0x183050);for(const _0x410115 of _0x423334['added'])this['focusTracker']['add'](_0x410115['element']),this['_updateItemPositionInFocusables'](_0x410115);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x511ccf){const _0x6d9db9=this['focusables']['getIndex'](_0x511ccf);let _0x27ee93,_0xe9010e;for(const _0x3031e8 of this['focusables'])if(_0x511ccf['top']<_0x3031e8['top']){_0x27ee93=_0x3031e8;break;}if(_0xe9010e=_0x27ee93?this['focusables']['getIndex'](_0x27ee93):this['focusables']['length'],-0x1!==_0x6d9db9){if(_0x6d9db9===_0xe9010e-0x1)return;this['focusables']['remove'](_0x511ccf),_0xe9010e=_0x27ee93?this['focusables']['getIndex'](_0x27ee93):this['focusables']['length'];}this['focusables']['add'](_0x511ccf,_0xe9010e);}}const Ht=xt('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1bcdb9){super(_0x1bcdb9),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x41717b,_0x317586)=>_0x41717b+_0x317586),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x25aa07=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x25aa07['to']('isAnimationDisabled',_0xd89915=>_0xd89915?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x25aa07['to']('top',_0x393543=>Ht(_0x393543))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x4dcc9f=this['element']['clientHeight'];_0x4dcc9f&&(this['height']=_0x4dcc9f);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x474ed3{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x510761){super(_0x510761),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 _0x3db08b=this['context']['config']['get']('sidebar.container');_0x3db08b&&this['setContainer'](_0x3db08b);}['setContainer'](_0x237e2b){if(!y(_0x237e2b))throw new _0x388981('sidebar-setcontainer-invalid-element');this['container']=_0x237e2b;}['_attachToContainer']({viewClass:_0x5c4d41='',spaceBetweenItems:_0x4cd3e7=0x19}={}){if(!y(this['container']))throw new _0x388981('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x5c4d41,this['_spaceBetweenItems']=_0x4cd3e7;}['rearrange']({removedAnnotation:_0x55c701,previousAnnotation:_0x35f01c,nextAnnotation:_0x126b33}){const _0x4f2b21=this['getSidebarItemView'](_0x55c701);this['view']['list']['remove'](_0x4f2b21),this['_destroySidebarItemView'](_0x55c701),_0x35f01c&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x35f01c)),_0x126b33&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x126b33)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x52bb75,activatedAnnotation:_0x3b928c,disableAnimationOnActivatedAnnotation:_0x11a14f}){if(this['_activeAnnotation']=_0x3b928c,_0x52bb75){_0x52bb75['isActive']=!0x1;const _0x4d691b=this['getSidebarItemView'](_0x52bb75);_0x4d691b&&_0x11a14f&&(_0x4d691b['isAnimationDisabled']=!0x1);}if(_0x3b928c){const _0x22943f=this['getSidebarItemView'](_0x3b928c);_0x22943f&&(_0x3b928c['isActive']=!0x0,_0x11a14f&&(_0x22943f['isAnimationDisabled']=!0x0,_0x22943f['top']+=0x1),this['_alignToTargetRect'](_0x22943f));}}['_detachFromContainer'](_0x52ef04){if(this['view']['element']['remove'](),_0x52ef04){for(const _0x5e6c2a of _0x52ef04)this['_destroySidebarItemView'](_0x5e6c2a);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x30160c,_0x38bb8e){_0x38bb8e||(_0x38bb8e=_0x30160c['view']);const _0x3c6ec6=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x3c6ec6,_0x30160c),this['_annotationToSidebarItemView']['set'](_0x30160c,_0x3c6ec6),_0x3c6ec6['content']['add'](_0x38bb8e),this['listenTo'](_0x30160c['view'],'change:targetRect',(_0x3bf928,_0xe19379,_0x5c00f9)=>{const _0xb7c6bc=this['_getTargetTop'](_0x30160c,_0x5c00f9);_0x3c6ec6['_targetTop']!=_0xb7c6bc&&(_0x3c6ec6['_targetTop']=_0xb7c6bc,this['_setItemTop'](_0x3c6ec6,_0xb7c6bc));}),this['listenTo'](_0x3c6ec6,'change:top',()=>{this['_recalculate'](_0x3c6ec6,'top');}),this['listenTo'](_0x3c6ec6,'change:bottom',()=>{this['_recalculate'](_0x3c6ec6,'bottom');}),this['_alignToTargetRect'](_0x3c6ec6);const _0xb0f2db=this['_getItemBefore'](_0x3c6ec6);if(_0xb0f2db)this['_alignAfterItem'](_0xb0f2db,_0x3c6ec6)||this['_alignToTargetRect'](_0x3c6ec6);else this['_alignToTargetRect'](_0x3c6ec6);return this['_updateLastItem'](),this['view']['list']['add'](_0x3c6ec6),_0x3c6ec6;}['_alignForTopChange'](_0x486428){if(!_0x486428['content']['length'])return;const _0x180877=this['_getItemBefore'](_0x486428);if(!_0x180877)return;const _0x58db12=this['_sidebarItemViewToAnnotation']['get'](_0x180877),_0x3ec2ab=this['_activeAnnotation'];_0x3ec2ab&&_0x3ec2ab===_0x58db12?this['_alignAfterItem'](_0x180877,_0x486428):this['_alignBeforeItem'](_0x486428,_0x180877);}['_alignForBottomChange'](_0x5aa8c9){if(!_0x5aa8c9['content']['length'])return;const _0x498216=this['_getItemAfter'](_0x5aa8c9);if(!_0x498216)return;const _0x40e84b=this['_sidebarItemViewToAnnotation']['get'](_0x498216),_0xe26894=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x46f4d3=this['_activeAnnotation'];_0x46f4d3&&_0x46f4d3===_0x40e84b&&_0xe26894?(this['_alignBeforeItem'](_0x498216,_0x5aa8c9),this['_alignAfterItem'](_0x5aa8c9,_0x498216)):_0x46f4d3&&_0x46f4d3===_0x40e84b?this['_alignBeforeItem'](_0x498216,_0x5aa8c9):this['_alignAfterItem'](_0x5aa8c9,_0x498216);}['_recalculate'](_0x30417a,_0x514f0d){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xda2866,changedProp:_0x3c00e9}of this['_recalculateBuffer'])'top'===_0x3c00e9?this['_alignForTopChange'](_0xda2866):this['_alignForBottomChange'](_0xda2866);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x30417a,'changedProp':_0x514f0d});}['getSidebarItemView'](_0x4a35b5){return this['_annotationToSidebarItemView']['get'](_0x4a35b5);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2b2ad8){const _0x466202=this['getSidebarItemView'](_0x2b2ad8);this['stopListening'](_0x466202),this['stopListening'](_0x2b2ad8['view']),_0x466202['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2b2ad8),this['_sidebarItemViewToAnnotation']['delete'](_0x466202);}['_createSidebarView'](){const _0x1574c5=new H(this['context']['locale']);return _0x1574c5['render'](),this['on']('change:_lastItem',(_0x141379,_0x4ef0ac,_0x40b28e,_0x50bafe)=>{_0x50bafe&&_0x1574c5['unbind']('minHeight'),_0x40b28e?_0x1574c5['bind']('minHeight')['to'](_0x40b28e,'bottom'):_0x1574c5['minHeight']=null;}),_0x1574c5;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x31f5d6){const _0x16fca1=this['_sidebarItemViewToAnnotation']['get'](_0x31f5d6),_0x1061df=_0x16fca1&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x16fca1)-0x1);return _0x1061df&&this['getSidebarItemView'](_0x1061df)||null;}['_getItemAfter'](_0x1d4a40){const _0x19fcd2=this['_sidebarItemViewToAnnotation']['get'](_0x1d4a40),_0x42d04d=_0x19fcd2&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x19fcd2)+0x1);return _0x42d04d&&this['getSidebarItemView'](_0x42d04d)||null;}['_alignBeforeItem'](_0x1a3dd5,_0x3f4db1){_0x1a3dd5['updateHeight']();const _0x2dbe43=G(_0x3f4db1['bottom']+this['_spaceBetweenItems'],_0x1a3dd5['top']);return!!_0x2dbe43&&(this['_setItemTop'](_0x3f4db1,_0x3f4db1['top']-_0x2dbe43),!0x0);}['_alignAfterItem'](_0x136490,_0xefea6d){_0x136490['updateHeight']();const _0x67a417=G(_0x136490['bottom']+this['_spaceBetweenItems'],_0xefea6d['top']);return!!_0x67a417&&(this['_setItemTop'](_0xefea6d,_0xefea6d['top']+_0x67a417,!0x1),!0x0);}['_alignToTargetRect'](_0x2b4288){const _0x4a2205=this['_sidebarItemViewToAnnotation']['get'](_0x2b4288);if(!_0x4a2205||!_0x4a2205['target']||!_0x4a2205['targetRect'])return;const _0x51eb78=this['_getTargetTop'](_0x4a2205,_0x4a2205['targetRect']);this['_setItemTop'](_0x2b4288,_0x51eb78);}['_getTargetTop'](_0x3774f5,_0x31b184){if(null===_0x31b184)return 0x0;if(_0x3774f5['target']instanceof _0x4a96a9)return _0x31b184['top'];{const _0x1594bc=new _0x4a96a9(this['view']['element'])['top'];return _0x31b184['top']-_0x1594bc;}}['_setItemTop'](_0x4839e4,_0x4d2a19,_0x119bc5=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x119bc5&&(_0x4d2a19=Math['max'](_0x4d2a19,this['_getMaxAvailableTop'](_0x4839e4))),_0x4839e4['top']=_0x4d2a19;}['_getMaxAvailableTop'](_0x1b3588){let _0x4adb5d=this['_getItemBefore'](_0x1b3588),_0x89eb2e=0x0;for(;_0x4adb5d;)_0x4adb5d['updateHeight'](),_0x89eb2e+=this['_spaceBetweenItems']+_0x4adb5d['height'],_0x4adb5d=this['_getItemBefore'](_0x4adb5d);return _0x89eb2e;}}function G(_0x39dec5,_0x1d578a){return Math['max'](_0x39dec5-_0x1d578a,0x0);}function y(_0x50a3df){return null!==_0x50a3df&&'object'==typeof _0x50a3df&&0x1===_0x50a3df['nodeType'];}class e extends _0x474ed3{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a4b5e){super(_0x4a4b5e),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0xe77389(),this['_refreshPositioningDebounced']=_0x4e3986(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x4cbbe2=this['context']['plugins']['get'](M),_0x504e2a=this['context']['plugins']['get'](z);_0x4cbbe2['register']('wideSidebar',this),_0x504e2a['container']&&_0x4cbbe2['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x9a0c4){if(_0x9a0c4===this['activeAnnotation'])return;const _0x4caaf1=this['context']['plugins']['get'](z);_0x4caaf1['_activeAnnotation']=_0x9a0c4;const _0x252a17=this['activeAnnotation'];_0x4caaf1['refresh']({'blurredAnnotation':_0x252a17,'activatedAnnotation':_0x9a0c4}),this['activeAnnotation']=_0x9a0c4;}['attach'](_0x5972cd){this['annotations']=_0x5972cd;const _0xaa6e16=this['context']['plugins']['get'](z);if(_0xaa6e16['_annotations']=_0x5972cd,this['isAttached'])throw new _0x388981('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xaa6e16,'set:container',()=>{this['detach'](),this['listenTo'](_0xaa6e16,'change:container',_0x122c8e=>{_0x122c8e['off'](),this['attach'](_0x5972cd);});}),_0xaa6e16['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0xbad00d=_0x3efa01=>{_0x3efa01['updateTargetRect'](),_0xaa6e16['addAnnotation'](_0x3efa01);};for(const _0x3f874b of _0x5972cd)_0xbad00d(_0x3f874b);this['listenTo'](_0x5972cd,'add',(_0x1ab059,_0x2b89ab)=>{_0xbad00d(_0x2b89ab);}),this['listenTo'](_0x5972cd,'remove',(_0x510b7c,_0x40e41c,_0x44b5d9)=>{_0xaa6e16['rearrange']({'removedAnnotation':_0x40e41c,'previousAnnotation':_0x5972cd['get'](_0x44b5d9-0x1),'nextAnnotation':_0x5972cd['get'](_0x44b5d9+0x1)}),_0x40e41c===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5972cd,'focus',(_0x59d247,_0x5830e8)=>{this['setActiveAnnotation'](_0x5830e8);}),this['listenTo'](_0x5972cd,'blur',()=>{this['setActiveAnnotation'](null);});const _0x5326dc=this['context']instanceof _0x2f3774?this['context']['editors']:new _0xe77389([this['context']]);for(const _0x5f483b of _0x5326dc)this['_integrateWithEditorAnnotations'](_0x5f483b);this['listenTo'](_0x5326dc,'add',(_0x45e18d,_0x5dc3b5)=>{this['listenTo'](_0x5dc3b5,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5dc3b5);});}),this['listenTo'](_0x5326dc,'remove',(_0x528592,_0x1cd57b)=>{_0x1cd57b['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1cd57b['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x388981('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x424103=this['context']['plugins']['get'](z);_0x424103['_detachFromContainer'](this['annotations']),this['stopListening'](_0x424103),this['stopListening'](this['annotations']),this['context']instanceof _0x2f3774&&this['stopListening'](this['context']['editors']);for(const _0x51cd08 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x51cd08);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x24decb){if(!_0x24decb['plugins']['has']('EditorAnnotations'))return;const _0x75928=_0x24decb['plugins']['get']('EditorAnnotations'),_0x4f1fda=()=>{const _0x390fc5=_0x75928['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x390fc5[0x0]||null);};this['listenTo'](_0x75928,'refresh',_0x4f1fda),this['listenTo'](_0x75928,'blur',(_0x554e97,{isAnnotationTracked:_0xbb14b0})=>{this['activeAnnotation']&&_0xbb14b0(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x75928,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x308f06=>{_0x75928['hasDomSelection']()&&(_0x4f1fda(),_0x308f06['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x75928);}['_destroyEditorAnnotationsIntegration'](_0x1e2015){this['stopListening'](_0x1e2015),this['_editorAnnotations']['remove'](_0x1e2015);}}class C extends _0x57ea8a{['counterView'];constructor(_0x39f046){super(_0x39f046);const _0xbe1653=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x434c12,_0x5d5896)=>_0x434c12?'...':_0x5d5896['toString']()),this['set']('annotationType',''),this['icon']=_0x1bf1d3,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0xbe1653['to']('annotationType',_0x370e69=>'ck-annotation-counter__badge--'+_0x370e69),_0xbe1653['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0xbe1653['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x474ed3{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cf52f){super(_0x5cf52f),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x4ddb0d),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0xe77389(),this['_refreshPositioningDebounced']=_0x4e3986(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x230760(this['context']['locale']),this['balloonPanelView']=new _0x261e7b(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x2b7dc9){this['annotations']=_0x2b7dc9;const _0x5b9efa=this['context']['plugins']['get'](z),_0x20a6d4=this['balloonPanelView'];if(_0x5b9efa['_annotations']=_0x2b7dc9,this['isAttached'])throw new _0x388981('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5b9efa,'set:container',()=>{this['detach'](),this['listenTo'](_0x5b9efa,'change:container',_0x4a6dbb=>{_0x4a6dbb['off'](),this['attach'](_0x2b7dc9);});}),_0x5b9efa['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0xa8222f=_0x157140=>{const _0x4f7044=new C(this['context']['locale']);_0x5b9efa['addAnnotation'](_0x157140,_0x4f7044),this['_annotationToNarrowView']['set'](_0x157140,_0x4f7044),_0x4f7044['bind']('isDirty','annotationType','number')['to'](_0x157140['view'],'isDirty','type','length'),_0x4f7044['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x20a6d4['content']['first']!==_0x157140['view']?(this['_showBalloon'](_0x157140),_0x157140['view']['element']['focus'](),this['setActiveAnnotation'](_0x157140)):this['setActiveAnnotation'](null);});};for(const _0x36590f of _0x2b7dc9)_0xa8222f(_0x36590f);this['listenTo'](_0x2b7dc9,'add',(_0x28a16a,_0x3953fd)=>{_0xa8222f(_0x3953fd);}),this['listenTo'](_0x2b7dc9,'remove',(_0x1d5c7a,_0xed3273,_0x8fda3)=>{this['_annotationToNarrowView']['get'](_0xed3273)['destroy'](),this['_annotationToNarrowView']['delete'](_0xed3273),_0x5b9efa['rearrange']({'removedAnnotation':_0xed3273,'previousAnnotation':_0x2b7dc9['get'](_0x8fda3-0x1),'nextAnnotation':_0x2b7dc9['get'](_0x8fda3+0x1)}),_0xed3273===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x2b7dc9,'focus',(_0x5c13a3,_0x488a2a)=>{this['setActiveAnnotation'](_0x488a2a);}),this['listenTo'](_0x2b7dc9,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x35673f,_0x401bd4)=>{_0x401bd4['keyCode']===_0x1ffe74['esc']&&_0x20a6d4['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x20a6d4['content']['first']),this['_hideBalloon'](),_0x401bd4['stopPropagation'](),_0x401bd4['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x37bb60,_0x22b3d0)=>{const _0x144189=_0x22b3d0['target'];_0x20a6d4['isVisible']&&_0x20a6d4['element']['contains'](_0x144189)||_0x5b9efa['view']['element']['contains'](_0x144189)||_0x37bb60['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x5f1e99=>_0x5f1e99['contains'](_0x144189))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x4a0795=this['context']instanceof _0x2f3774?this['context']['editors']:new _0xe77389([this['context']]);for(const _0x5146c8 of _0x4a0795)this['_integrateWithEditorAnnotations'](_0x5146c8);this['listenTo'](_0x4a0795,'add',(_0x130509,_0x1778bc)=>{this['listenTo'](_0x1778bc,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1778bc);});}),this['listenTo'](_0x4a0795,'remove',(_0x16dbb4,_0x13efcb)=>{_0x13efcb['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x13efcb['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x85a119){if(_0x85a119===this['activeAnnotation'])return;const _0x1c7e83=this['context']['plugins']['get'](z);if(_0x1c7e83['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x85a119,'disableAnimationOnActivatedAnnotation':!0x0}),_0x85a119)_0x1c7e83['getSidebarItemView'](_0x85a119)?this['_showBalloon'](_0x85a119):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x85a119;}['detach'](){if(!this['isAttached'])throw new _0x388981('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x169d05=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x33c818=>_0x33c818['destroy']()),this['_annotationToNarrowView']['clear'](),_0x169d05['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2f3774&&this['stopListening'](this['context']['editors']);for(const _0x268d89 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x268d89);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'](_0x1be538){if(!_0x1be538['plugins']['has']('EditorAnnotations'))return;const _0x393329=_0x1be538['plugins']['get']('EditorAnnotations'),_0x1dc18e=this['context']['plugins']['get'](z),_0x14f5ca=this['annotations'],_0x180081=this['balloonPanelView'],_0x375eb1=()=>{const _0x4ba117=_0x393329['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x4ba117),this['setActiveAnnotation'](_0x4ba117[0x0]||null);};this['listenTo'](_0x393329,'refresh',_0x375eb1),this['listenTo'](_0x393329,'blur',(_0x59a598,{isAnnotationTracked:_0x42a504})=>{this['activeAnnotation']&&_0x42a504(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x393329,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x14f5ca,'blur',_0x27eb9b=>{_0x393329['hasDomSelection']()&&_0x27eb9b['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x385443,_0x32cedf)=>{const _0x1d8aa4=_0x32cedf['target'];_0x180081['isVisible']&&_0x180081['element']['contains'](_0x1d8aa4)||_0x1dc18e['view']['element']['contains'](_0x1d8aa4)||this['activeAnnotation']&&_0x393329['hasDomSelection']()&&(_0x375eb1(),_0x385443['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x393329);}['_destroyEditorAnnotationsIntegration'](_0x4e1ca3){_0x4e1ca3&&(this['stopListening'](_0x4e1ca3),this['_editorAnnotations']['remove'](_0x4e1ca3));}['_setSelectedAnnotations'](_0x30ca17){for(const _0x1557f2 of this['_selectedAnnotations'])_0x30ca17['includes'](_0x1557f2)||this['_manuallyClosedAnnotationViews']['delete'](_0x1557f2['view']);this['_selectedAnnotations']=_0x30ca17;}['_refreshPositioning'](){const _0x44040a=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x44040a['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x43d5d0){if(this['_manuallyClosedAnnotationViews']['has'](_0x43d5d0['view']))return;const _0x107266=this['balloonPanelView']['content']['first'];_0x107266!==_0x43d5d0['view']?(_0x107266&&this['_detachListeners'](_0x107266),this['_attachListeners'](_0x43d5d0['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x43d5d0['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x46b927=this['balloonPanelView']['content']['first'],_0x48b5ed=_0x46b927&&this['annotations']['getByView'](_0x46b927);if(!_0x48b5ed||!this['_annotationToNarrowView']['has'](_0x48b5ed))return;const _0x5512b7=this['_annotationToNarrowView']['get'](_0x48b5ed)['element'],_0x2e595f=(function(){const _0x89f1ae=_0x261e7b['defaultPositions'];return[_0x89f1ae['southArrowNorthEast'],_0x89f1ae['northArrowSouthEast'],_0x89f1ae['southArrowNorth'],_0x89f1ae['northArrowSouth'],_0x89f1ae['southArrowNorthWest'],_0x89f1ae['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5512b7,'positions':_0x2e595f});}['_hideBalloon'](){const _0x25cd45=this['balloonPanelView'],_0xd77bce=_0x25cd45['content']['first'];_0xd77bce&&(this['_detachListeners'](_0xd77bce),_0x25cd45['unpin'](),_0x25cd45['content']['clear']());}['_attachListeners'](_0xd8efd3){this['listenTo'](_0xd8efd3,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0xd8efd3,'Esc',(_0x52c729,_0x471b0e)=>{this['_manuallyClosedAnnotationViews']['add'](_0xd8efd3),this['_hideBalloon'](),_0x471b0e();});}['_detachListeners'](_0x516c2f){this['stopListening'](_0x516c2f);}}class c extends _0x39c08c{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x47c489,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x434651){super(_0x434651),_0x434651['editing']['view']['addObserver'](_0x4bd5e3),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x434651['plugins']['get'](_0x47c489),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x4aa6c4=this['editor']['plugins']['get'](M);_0x4aa6c4['context']===this['editor']&&(_0x4aa6c4['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x274a24,_0x12c724)=>{const _0x424874=this['_balloon'];if(this['isAttached']&&_0x424874['visibleView']){const _0x5be3ef=this['annotations']['getByView'](_0x424874['visibleView']);_0x5be3ef&&this['_closeAnnotation'](_0x5be3ef),_0x12c724();}}));}['afterInit'](){const _0x4d61f1=this['editor']['plugins']['get'](M);_0x4d61f1['context']===this['editor']&&(_0x4d61f1['hasActive']()||_0x4d61f1['switchTo']('inline'));}['setActiveAnnotation'](_0x1f7539){_0x1f7539!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1f7539&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1f7539)&&this['_addAnnotationToBalloon'](_0x1f7539,!0x0),_0x1f7539['isActive']=!0x0),_0x1f7539||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1f7539);}['attach'](_0x1f4987){this['annotations']=_0x1f4987;const _0x417336=this['editor']['plugins']['get'](M),_0x289b19=this['_balloon'];if(this['isAttached'])throw new _0x388981('inlineannotations-attach-already-attached',this);if(_0x417336['context']!==this['editor'])throw new _0x388981('inlineannotations-not-allowed-with-context',this);const _0x34cfd7=this['editor']['plugins']['get'](P);this['listenTo'](_0x34cfd7,'refresh',()=>{const _0x258577=_0x34cfd7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x26b81b,_0x2cf52b;!this['_forceRefresh']&&(_0x26b81b=_0x258577,_0x2cf52b=this['_selectedAnnotations'],_0x26b81b['length']===_0x2cf52b['length']&&_0x26b81b['every'](_0x281887=>_0x2cf52b['includes'](_0x281887)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x258577),this['setActiveAnnotation'](_0x258577[0x0]||null));}),this['listenTo'](_0x34cfd7,'blur',(_0xecc1d8,{isAnnotationTracked:_0x4f1ec5})=>{this['activeAnnotation']&&_0x4f1ec5(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1ac149,_0x3bf901,_0x4b01f1)=>{_0x4b01f1||this['setActiveAnnotation'](null);}),this['listenTo'](_0x1f4987,'remove',(_0x4ba86d,_0xe86b4e)=>{this['_removeAnnotationFromBalloon'](_0xe86b4e),_0xe86b4e===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x289b19,'change:visibleView',(_0x33ac55,_0x11b3a5,_0x6e4d9a,_0x3afc01)=>{_0x3afc01&&this['stopListening'](_0x3afc01);const _0x1e1d57=_0x1f4987['getByView'](_0x6e4d9a);_0x6e4d9a&&_0x1e1d57&&(this['listenTo'](_0x6e4d9a,'change:height',()=>{_0x289b19['updatePosition']();}),this['listenTo'](_0x6e4d9a,'Esc',()=>{this['_closeAnnotation'](_0x1e1d57),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1e1d57&&this['setActiveAnnotation'](_0x1e1d57));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x289b19['visibleView']&&(_0x1f4987['getByView'](_0x289b19['visibleView'])&&_0x289b19['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 _0x388981('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x542aff of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x542aff);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x3c3c82){for(const _0x9232a9 of this['_selectedAnnotations'])_0x3c3c82['includes'](_0x9232a9)||this['_manuallyClosed']['delete'](_0x9232a9);for(const _0x42fb16 of this['annotations'])_0x3c3c82['includes'](_0x42fb16)||this['_removeAnnotationFromBalloon'](_0x42fb16);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x3c1def of _0x3c3c82)this['_addAnnotationToBalloon'](_0x3c1def);}this['_selectedAnnotations']=_0x3c3c82;}['_addAnnotationToBalloon'](_0x49cb50,_0x2fcbb8=!0x1){this['_manuallyClosed']['has'](_0x49cb50)||(this['_addedAnnotations']['has'](_0x49cb50)||this['_balloon']['hasView'](_0x49cb50['view'])||(this['_addedAnnotations']['add'](_0x49cb50),this['_balloon']['add']({'stackId':_0x49cb50['view']['id'],'view':_0x49cb50['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x49cb50)}})),_0x2fcbb8&&this['_balloon']['showStack'](_0x49cb50['view']['id']));}['_getBalloonTargetForAnnotation'](_0x44f755){const _0x446101=_0x44f755['target'],_0x3a98ec=this['editor']['editing']['view'],_0x4043e9=_0x3a98ec['document']['selection']['getFirstRange'](),_0x3b6756=_0x3a98ec['domConverter']['viewRangeToDom'](_0x4043e9);if(_0x3b6756['collapse'](!0x0),_0x446101){if(_0x446101 instanceof _0x4a96a9)return _0x446101;let _0xb3d35c=[];for(const _0x1fc589 of _0x446101)_0xb3d35c['push'](...B(_0x1fc589['getClientRects']()));_0xb3d35c=function(_0x2ef7ac){const _0x4a2d9a=[];let _0x32d00a=_0x2ef7ac[0x0];for(let _0x2e68af=0x1;_0x2e68af<_0x2ef7ac['length'];_0x2e68af++)F(_0x32d00a,_0x2ef7ac[_0x2e68af])?_0x32d00a['width']+=_0x2ef7ac[_0x2e68af]['width']:(_0x4a2d9a['push'](_0x32d00a),_0x32d00a=_0x2ef7ac[_0x2e68af]);return _0x4a2d9a['push'](_0x32d00a),_0x4a2d9a;}(_0xb3d35c);const _0x1a5fbf=_0x3b6756['getBoundingClientRect']();return _0xb3d35c['find'](_0x5ac97d=>_0x5ac97d['top']<=_0x1a5fbf['top']&&_0x5ac97d['bottom']>=_0x1a5fbf['bottom']&&_0x5ac97d['left']<=_0x1a5fbf['left']&&_0x5ac97d['right']>=_0x1a5fbf['right'])||_0xb3d35c[0x0];}return _0x44f755['targetRect']||_0x3b6756;}['_removeAnnotationFromBalloon'](_0x3052ee){this['_addedAnnotations']['has'](_0x3052ee)&&this['_balloon']['hasView'](_0x3052ee['view'])&&(this['_addedAnnotations']['delete'](_0x3052ee),this['_balloon']['remove'](_0x3052ee['view']));}['_closeAnnotation'](_0x21193d){this['_manuallyClosed']['add'](_0x21193d),this['_removeAnnotationFromBalloon'](_0x21193d);}}function B(_0x2f0cc5){return Array['from'](_0x2f0cc5)['map'](DOMRect['fromRect']);}function F(_0x48d27e,_0x5a7888){return _0x48d27e['top']===_0x5a7888['top']&&_0x48d27e['bottom']===_0x5a7888['bottom']&&_0x48d27e['right']===_0x5a7888['left'];}class it extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x57cb80,_0x232bda){super(_0x57cb80),this['set']('isEmpty',!_0x232bda['length']),this['focusTracker']=new _0x47c1df(),this['_annotationViews']=_0x232bda,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x2f783a({'focusables':_0x232bda,'focusTracker':this['focusTracker']}),this['listenTo'](_0x232bda,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x232bda,'remove',(_0x315c02,_0x46a822)=>{_0x46a822['isActive']&&this['focus'](),_0x232bda['length']||(this['isEmpty']=!0x0);});const _0x50faed=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x57cb80,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x232bda},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x50faed['if']('isEmpty','ck-hidden',_0xc46d1=>!_0xc46d1)]},'children':[{'text':E(_0x57cb80,'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 _0x4ad1f3 of this['_annotationViews'])this['focusTracker']['add'](_0x4ad1f3['element']);this['_annotationViews']['on']('change',(_0x6648e6,{added:_0x8bbbf7,removed:_0x3a1c54})=>{for(const _0x37cff0 of _0x8bbbf7)this['focusTracker']['add'](_0x37cff0['element']);for(const _0x3c7f41 of _0x3a1c54)this['focusTracker']['remove'](_0x3c7f41['element']);});}}class f extends _0x474ed3{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x59f4ea){super(_0x59f4ea),this['archivedThreads']=new _0xe77389();}['init'](){const _0xed4f98=this['context'],_0x2e916e=_0xed4f98['plugins']['get'](o),_0x18ff1a=_0xed4f98['plugins']['get'](O);this['listenTo'](_0x2e916e,'addCommentThread',(_0x17db9f,{threadId:_0x32a5cc})=>{const _0x14e123=_0x2e916e['getCommentThread'](_0x32a5cc);_0x14e123['archivedAt']&&this['archivedThreads']['add'](_0x14e123,this['_calculatePosition'](_0x14e123['archivedAt'])),this['listenTo'](_0x14e123,'change:archivedAt',(_0x4b0e22,_0x2bea1a,_0x2b0e07)=>{_0x2b0e07?this['archivedThreads']['has'](_0x14e123)||this['archivedThreads']['add'](_0x14e123,this['_calculatePosition'](_0x14e123['archivedAt'])):this['archivedThreads']['has'](_0x14e123)&&this['archivedThreads']['remove'](_0x14e123);});}),this['listenTo'](_0x2e916e,'removeCommentThread',(_0x578246,{threadId:_0x1d8818})=>{const _0x1aeb92=_0x2e916e['getCommentThread'](_0x1d8818);this['stopListening'](_0x1aeb92),this['archivedThreads']['has'](_0x1aeb92)&&this['archivedThreads']['remove'](_0x1aeb92);},{'priority':'highest'}),this['listenTo'](_0x18ff1a['collection'],'focus',(_0xb70dea,_0x2d1989)=>{_0x2d1989['isVisible']||(_0x2d1989['isActive']=!0x0,_0x18ff1a['activate'](_0x2d1989));});}['_calculatePosition'](_0x184c34){const _0x154d29=[...this['archivedThreads']]['findIndex'](_0x1af516=>_0x1af516['archivedAt']<_0x184c34);return _0x154d29>-0x1?_0x154d29:this['archivedThreads']['length'];}}class a extends _0x39c08c{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x524e08];}constructor(_0x2f003e){super(_0x2f003e),this['annotationViews']=new _0x2335d5(),this['_pendingThreads']=[];}['init'](){const _0x16f4e=this['editor'],_0x2a39f9=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x16f4e['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x57ea8a,!0x0)),_0x16f4e['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x4d310c=this['_createCommentsArchiveButton'](_0x58cbad);return _0x4d310c['set']({'role':'menuitemcheckbox'}),_0x4d310c;});const _0xbf3b45=_0x16f4e['plugins']['get'](f),_0x22b2cb=_0x16f4e['plugins']['get']('Annotations'),_0x56ea9d=_0x16f4e['plugins']['get']('CommentsRepository');_0xbf3b45['archivedThreads']['forEach'](_0x5e34d5=>{this['_handleNewThread'](_0x5e34d5);}),this['listenTo'](_0xbf3b45['archivedThreads'],'add',(_0x4f6ed2,_0x4d1db1)=>{this['_handleNewThread'](_0x4d1db1);}),this['listenTo'](_0x22b2cb['collection'],'add',(_0x3237d1,_0x493971)=>{const _0x46625b=this['_pendingThreads']['find'](_0x5c4b05=>{const _0x4b6aa1=_0x56ea9d['_threadToController']['get'](_0x5c4b05);return _0x4b6aa1&&_0x493971['innerView']===_0x4b6aa1['view'];});if(_0x46625b){const _0xe90ecd=this['_calculatePosition'](_0x46625b['archivedAt']);this['annotationViews']['add'](_0x493971['view'],_0xe90ecd),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x46625b),0x1);}}),this['listenTo'](_0xbf3b45['archivedThreads'],'remove',(_0x3b85b2,_0x2db3ab)=>{const _0xe36c2f=_0x16f4e['config']['get']('collaboration.channelId');if(!_0xe36c2f||_0x2db3ab['channelId']===_0xe36c2f){if(this['_pendingThreads']['includes'](_0x2db3ab))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2db3ab),0x1);else{const _0x49b97d=_0x56ea9d['_threadToController']['get'](_0x2db3ab),_0x599a0e=_0x22b2cb['getByInnerView'](_0x49b97d['view']);this['annotationViews']['remove'](_0x599a0e['view']),this['stopListening'](_0x599a0e['focusableElements']);}}}),this['listenTo'](_0x22b2cb['collection'],'add',(_0x3e2667,_0x2604a8)=>{this['listenTo'](_0x2604a8,'escape',_0x2a39f9);}),this['listenTo'](_0x22b2cb['collection'],'remove',(_0x441e87,_0x4fdd31)=>{this['stopListening'](_0x4fdd31,'escape',_0x2a39f9);});}['_handleNewThread'](_0x2ab78d){const _0x4fa1e6=this['editor']['plugins']['get']('CommentsRepository'),_0x387bfc=this['editor']['plugins']['get']('Annotations'),_0x20d7f7=this['editor']['config']['get']('collaboration.channelId');if(!_0x20d7f7||_0x2ab78d['channelId']===_0x20d7f7){const _0x4a6cc5=_0x4fa1e6['_threadToController']['get'](_0x2ab78d);if(!_0x4a6cc5)return void this['_pendingThreads']['push'](_0x2ab78d);const _0x3dd7ea=this['_calculatePosition'](_0x2ab78d['archivedAt']),_0x5d6742=_0x387bfc['getByInnerView'](_0x4a6cc5['view']);_0x5d6742['isVisible']&&_0x387bfc['_visibleAnnotations']['remove'](_0x5d6742),this['annotationViews']['add'](_0x5d6742['view'],_0x3dd7ea);}}['_calculatePosition'](_0x4fba9d){const _0x2acc96=this['editor']['config']['get']('collaboration.channelId'),_0x3158e4=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x46c457=>_0x46c457['channelId']===_0x2acc96)['findIndex'](_0x37612e=>_0x37612e['archivedAt']<_0x4fba9d);return _0x3158e4<0x0||_0x3158e4>this['annotationViews']['length']?this['annotationViews']['length']:_0x3158e4-0x1;}['_toggleDialog'](){const _0x16f0db=this['editor'],_0x342495=_0x16f0db['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new it(_0x16f0db['locale'],this['annotationViews'])),'commentsArchive'===_0x342495['id']?_0x342495['hide']():_0x342495['show']({'id':'commentsArchive','title':E(_0x16f0db['locale'],'COMMENTS_ARCHIVE'),'icon':_0x3ca749,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':tt['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x4430fe,_0x4dd410=!0x1){const _0x5f3dad=this['editor']['locale'],_0x12101e=this['editor']['plugins']['get']('Dialog'),_0x50c173=new _0x4430fe(_0x5f3dad);return _0x50c173['bind']('isEnabled')['to'](this,'isEnabled'),_0x50c173['bind']('isOn')['to'](_0x12101e,'id',_0x2e9617=>'commentsArchive'===_0x2e9617),_0x50c173['set']({'label':E(_0x5f3dad,'COMMENTS_ARCHIVE'),'icon':_0x3ca749,'isToggleable':!0x0}),_0x4dd410&&(_0x50c173['tooltip']=!0x0),this['listenTo'](_0x50c173,'execute',()=>this['_toggleDialog']()),_0x50c173;}['_hideDialogOnAnnotationEscape']=_0x585684=>{const _0x15a8d2=_0x585684['source'];if(!this['annotationViews']['has'](_0x15a8d2['view']))return;const _0x6e464d=this['editor']['plugins']['get']('Dialog');_0x6e464d['isOpen']&&'commentsArchive'===_0x6e464d['id']&&(_0x6e464d['hide'](),_0x585684['stop']());};}class p extends _0x39c08c{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,_ as AnnotationCollection,S as AnnotationView,O as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,fi as Comment,ui as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar};