@ckeditor/ckeditor5-comments 45.2.0 → 45.2.1-alpha.1

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 _0x1f4cfd,ContextPlugin as _0x29aebb,PendingActions as ht,Command as _0x2663db,Plugin as _0x44c3b9,Context as _0x106841}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x2621e6,uid as _0x2d4b73,KeystrokeHandler as jt,FocusTracker as _0x355188,diff as _0x2236a8,Collection as _0x2d8e4d,Rect as _0x1694f4,CKEditorError as _0x4813ff,first as _0x273d1a,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x56f1fb,keyCodes as _0x366093}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x4c2bd2,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x50854c,trimHtml as _0x2496da,LateFocusDropdownButtonView as _0x4a94cc,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x5b26b4}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x51b2e8}from'es-toolkit/compat';import{IconUndo as _0x54791e,IconCheck as _0x57d49c,IconPencil as _0x3abff9,IconRemoveComment as _0x21ca4e,IconThreeVerticalDots as _0x45c7ed,IconAddComment as _0x465f2d,IconCommentsArchive as _0x471d32}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Vt,InlineEditableUIView as $t,EditorUI as Rt,View as kt,FocusCycler as _0x346817,ButtonView as _0x11514e,ViewCollection as _0x3b3b3c,createDropdown as _0x39ce0f,ListView as _0x562f1b,focusChildOnDropdownOpen as _0x226139,ListItemView as _0x6bed2,MenuBarMenuListItemButtonView as _0x116ef4,BodyCollection as _0x21e681,BalloonPanelView as _0x687bfe,ContextualBalloon as _0x1067eb,Dialog as _0x181830,DialogViewPosition as _0x3f3697}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x32b46f}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 _0x73fcb6}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x2ad6b4}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x2621e6(){['model'];['view'];constructor(_0x2dc464,_0x4b6744){super(),this['model']=_0x2dc464,this['model']['_isAttached']=!0x0,this['view']=_0x4b6744,this['listenTo'](_0x4b6744,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4b6744,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4b6744,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4b6744,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4b6744,'addComment',(_0x3d1b12,_0x3f333e)=>this['addComment'](_0x3f333e)),this['listenTo'](_0x4b6744,'updateComment',(_0x35d9bd,_0x13dde6,_0x44623d)=>this['updateComment'](_0x13dde6,_0x44623d)),this['listenTo'](_0x4b6744,'removeComment',(_0x596439,_0x1fed92)=>this['removeComment'](_0x1fed92));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x15d15a){this['model']['addComment']({'content':_0x15d15a,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x13ebf9,_0x471bc0){this['model']['getComment'](_0x13ebf9)['update']({'content':_0x471bc0});}['removeComment'](_0x54a099){this['model']['getComment'](_0x54a099)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x34fa83,_0x4513f6,_0x1f16cb){const t=_0x34fa83['t'];switch(_0x4513f6){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'},_0x1f16cb);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'},_0x1f16cb);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'},_0x1f16cb);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'},_0x1f16cb);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x1f16cb);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'},_0x1f16cb);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'},_0x1f16cb);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'},_0x1f16cb);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(_0x33efe7,_0x173f51){super(_0x33efe7);const _0x369dcf=_0x2d4b73();this['main']=this['createCollection'](),this['editable']=new $t(_0x33efe7,_0x173f51,void 0x0,{'label':()=>E(_0x33efe7,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x33efe7['uiLanguageDirection'],'lang':_0x33efe7['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x369dcf},'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(_0x7b285a){super(_0x7b285a),this['view']=new Ut(_0x7b285a['locale'],_0x7b285a['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x28bdb8=this['editor']['editing']['view'],_0x3b25f1=this['view']['editable'],_0x392f3c=_0x28bdb8['document']['getRoot']();_0x3b25f1['name']=_0x392f3c['rootName'],this['view']['render']();const _0xfa4afc=_0x3b25f1['element'];this['setEditableElement'](_0x3b25f1['name'],_0xfa4afc),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x28bdb8['attachDomRoot'](_0xfa4afc),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Nt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Qt extends/* #__PURE__ -- @preserve */
25
- _0x2621e6(_0x1f4cfd){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Nt)());constructor(_0x2880e6={}){function _0xf0037e(_0x2b64e2){return _0x2b64e2['map'](_0xe46ecf=>String['fromCharCode'](_0xe46ecf))['join']('');}(_0x2880e6=Object['assign']({},_0x2880e6))['plugins']||(_0x2880e6['plugins']=Qt['defaultPlugins']),super(_0x2880e6),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[_0xf0037e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf0037e([0x76,0x69,0x65,0x77])][_0xf0037e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf0037e([0x61,0x75,0x74,0x6f]),this[_0xf0037e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xf0037e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf0037e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xf0037e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xf0037e([0x6f,0x6b])});}['create'](){const _0x33f15b=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x33f15b))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x4598da=>{const _0x29d424=this['model']['document']['getRoot'](),_0x2e19e5=_0x29d424&&_0x29d424['getChild'](_0x29d424['childCount']-0x1);_0x4598da['setSelection'](_0x2e19e5,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x3bd306=this['editing']['view'],_0x51b409=_0x3bd306['document']['getRoot'](),_0x236d58=_0x51b409['getChild'](0x0);_0x51b409['childCount']>0x1||!_0x236d58||'p'!=_0x236d58['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x3bd306,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x236d58['placeholder']=this['placeholder']),Ft({'view':_0x3bd306,'element':_0x236d58,'keepOnFocus':!0x0}),this['placeholderElement']=_0x236d58);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x32ac0e,_0x2e0232={}){super(_0x32ac0e),this['editor']=null,this['_editorConfig']=_0x2e0232,this['set']('value',_0x2e0232['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x32ac0e,'Reply...')),this['set']('submitLabel',E(_0x32ac0e,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x355188(),this['focusCycler']=new _0x346817({'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',(_0x5d76b8,_0x3596de)=>{this['cancelButtonView']['fire']('execute'),_0x3596de();}),this['keystrokes']['set']('Ctrl+Enter',(_0x85c1f3,_0x59b06d)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x59b06d());}),this['on']('submit',(_0x10f77c,_0x44772a)=>{_0x44772a['length']>0xfde8?(alert(E(_0x32ac0e,'TOO_LONG_COMMENT_ALERT',[_0x44772a['length'],0xfde8])),_0x10f77c['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 _0x7b9801=this['editor'];this['element']['insertBefore'](_0x7b9801['ui']['element'],this['element']['firstChild']),_0x7b9801['model']['document']['on']('change',()=>this['value']=_0x7b9801['getData']()),_0x7b9801['bind']('placeholder')['to'](this),this['focusables']['add'](_0x7b9801['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x29d11b){-0x1===_0x29d11b?(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:_0x455ad8}=this,_0x1b3585=new _0x11514e(_0x455ad8);return _0x1b3585['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x1b3585['withText']=!0x0,_0x1b3585['bind']('label')['to'](this,'submitLabel'),_0x1b3585['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x1b3585['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2abed7,_0xa17ccc)=>!_0xa17ccc&&!!_0x2abed7['trim']()),_0x1b3585;}['_createCancelButton'](){const {locale:_0x44f2bd}=this,_0xe7a32f=new _0x11514e(_0x44f2bd);return _0xe7a32f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xe7a32f['label']=E(_0x44f2bd,'Cancel'),_0xe7a32f['withText']=!0x0,_0xe7a32f['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0xe7a32f;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3f7627=>{this['focusTracker']['add'](_0x3f7627['element']);}),this['focusables']['on']('change',(_0x2f27b6,_0x34a175)=>{for(const _0x5f086a of Array['from'](_0x34a175['added'])['reverse']())this['focusTracker']['add'](_0x5f086a['element']);});}}class ie extends kt{constructor(_0x265588,_0x5c2113,_0x225802){super(_0x265588),this['commentInputView']=new os(_0x265588,_0x225802),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x20d73c,_0x1a95d9)=>_0x20d73c||!!_0x1a95d9),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 _0x4c2bd2(_0x265588,_0x5c2113),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'](_0xe3a35f){this['commentInputView']['focus'](_0xe3a35f);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x125f8c,_0x2718eb)=>{const {submitButtonView:_0x3f005b,cancelButtonView:_0xc7d4c4,editor:_0x3eb508}=this['commentInputView'];[_0x3f005b['element'],_0xc7d4c4['element'],_0x3eb508?_0x3eb508['editing']['view']['getDomRoot']():null]['filter'](_0x3e42ec=>_0x3e42ec)['some'](_0x4f35d4=>_0x4f35d4['contains'](_0x2718eb['target']))||(this['focus'](),_0x2718eb['preventDefault']());});}}class cs extends kt{constructor(_0x391787){super(_0x391787);const _0x243089=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x243089['to']('count',_0x3d1958=>E(_0x391787,'NUMBER_OF_COMMENTS',_0x3d1958))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x340b76,_0x1cfc27,_0x480895){super(_0x340b76);const _0x14aca6=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1cfc27['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1cfc27,this['_config']=_0x480895,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x355188(),this['keystrokes']=new jt(),this['focusCycler']=new _0x346817({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3e6a7c=>this['commentViews']['map'](_0x3c9999=>_0x3c9999['element'])['includes'](_0x3e6a7c['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x340b76),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x991b47=>_0x991b47-this['_config']['maxCommentsWhenCollapsed']);for(const _0x284fe3 of _0x1cfc27['comments'])this['_handleNewCommentModel'](_0x284fe3);this['_handleInfoComment'](),this['listenTo'](_0x1cfc27['comments'],'add',(_0x3593af,_0x50135a)=>{const _0x22c607=this['_calculatePosition'](_0x50135a);this['length']++,this['_handleNewCommentModel'](_0x50135a,_0x22c607),this['refreshVisibleViews']();}),this['listenTo'](_0x1cfc27['comments'],'remove',(_0x2dbe6d,_0x58f621)=>{this['length']--,this['_handleRemoveCommentModel'](_0x58f621),this['refreshVisibleViews']();}),this['listenTo'](_0x1cfc27,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1cfc27,'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',_0x14aca6['if']('length','ck-hidden',_0x29ff61=>!_0x29ff61)],'aria-label':E(_0x340b76,'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'](_0x488ce8){-0x1===_0x488ce8?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3891ec of this['commentViews'])_0x3891ec['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0xb78afe,_0x2febda){const _0x4b557f=new this['_config']['CommentView'](this['locale'],_0xb78afe,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4b557f['viewUid']=_0xb78afe['id'],_0x4b557f['delegate']('removeComment')['to'](this),_0x4b557f['delegate']('updateComment')['to'](this),_0x4b557f['delegate']('resolveCommentThread')['to'](this),_0x4b557f['delegate']('editorReady')['to'](this),_0x4b557f['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4b557f,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4b557f,_0x2febda);}['_calculatePosition'](_0x528330){const _0x1e5b7c=this['_model']['_findOptimalIndex'](_0x528330);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x528330['authoredAt']?_0x1e5b7c-0x1:_0x1e5b7c:_0x1e5b7c-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4f7d98={'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'],_0x4f7d98,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4f7d98));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x1ed624){const _0x1372a1=this['commentViews']['remove'](_0x1ed624['id']);this['stopListening'](_0x1372a1),_0x1372a1['isEditMode']&&this['_updateHasDirtyComment'](),_0x1372a1['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x3b1967=>_0x3b1967['isEditMode']);}['_rearrangeCollapse'](){const _0x2e501a=function(_0x29acfe){const _0x156e28=new _0x2d8e4d();for(const _0x315920 of _0x29acfe)_0x156e28['add'](_0x315920);return _0x156e28;}(this['commentViews']),_0xd40651=this['_collapsedCommentsView']['count'];for(let _0x175c49=0x1;_0x175c49<=_0xd40651;_0x175c49++)_0x2e501a['remove'](0x1);for(const _0x15214e of _0x2e501a)_0x15214e['collapse']();_0xd40651>0x0&&_0x2e501a['add'](this['_collapsedCommentsView'],0x1),ns(_0x2236a8(Array['from'](this['visibleViews']),Array['from'](_0x2e501a)),this['visibleViews'],_0x2e501a);}['_rearrangeExpand'](){ns(_0x2236a8(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x57c757 of this['visibleViews'])_0x57c757['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x111815=>{this['focusTracker']['add'](_0x111815['element']),this['keystrokes']['listenTo'](_0x111815['element']);}),this['commentViews']['on']('change',(_0x36f139,_0x2150c0)=>{for(const _0xed99ca of _0x2150c0['removed'])this['focusTracker']['remove'](_0xed99ca['element']),this['keystrokes']['stopListening'](_0xed99ca['element']);for(const _0x57a42a of Array['from'](_0x2150c0['added'])['reverse']())this['focusTracker']['add'](_0x57a42a['element']),this['keystrokes']['listenTo'](_0x57a42a['element']);});}}function ns(_0xd906de,_0x146a65,_0x582bd9){let _0x34dc89=0x0;for(const _0x4a7a00 of _0xd906de)switch(_0x4a7a00){case'insert':_0x146a65['add'](_0x582bd9['get'](_0x34dc89),_0x34dc89),_0x34dc89++;break;case'delete':_0x146a65['remove'](_0x34dc89);break;case'equal':_0x34dc89++;}}class as extends kt{constructor(_0x43f5eb){super(_0x43f5eb);const _0x58da9d=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x58da9d['to']('contextValue',_0xaa8105=>E(_0x43f5eb,'THREAD_CONTEXT_LABEL',_0xaa8105)),'tabindex':-0x1},'children':[{'text':_0x58da9d['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x573b3c,_0x4f5412){super(_0x573b3c);const _0x5686a7=this['bindTemplate'];this['_model']=_0x4f5412,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x355188(),this['keystrokes']=new jt(),this['focusCycler']=new _0x346817({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x10cfc4=>!!_0x10cfc4),this['bind']('contextValue')['to'](this['_model'],'context',_0x338ae0=>_0x338ae0&&_0x338ae0['value']?this['_trimContextValue'](_0x338ae0['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',_0x5686a7['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 _0x1417d0=new _0x11514e(this['locale']);return _0x1417d0['label']=E(this['locale'],'Reopen'),_0x1417d0['tooltip']=E(this['locale'],'Reopen'),_0x1417d0['icon']=_0x54791e,_0x1417d0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x30053e=>!_0x30053e),_0x1417d0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x53cc71,_0x1f14d0)=>_0x53cc71&&_0x1f14d0),_0x1417d0['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x1417d0;}['_trimContextValue'](_0x2f50ef){if(_0x2f50ef['length']<0x96)return _0x2f50ef;const _0x2f8f4d=_0x2f50ef['lastIndexOf']('\x20',0x93);return _0x2f50ef['substring'](0x0,_0x2f8f4d>-0x1?_0x2f8f4d:0x93)+'...';}['_attachContextActions'](){const _0x571961=this['element']['querySelector']('.ck-context'),_0xba95d1=_0x571961['querySelector']('.ck-context__value');this['listenTo'](_0x571961,'mouseenter',()=>{_0xba95d1['offsetWidth']<_0xba95d1['scrollWidth']&&_0x571961['classList']['add']('overlay');}),this['listenTo'](_0x571961,'mouseleave',()=>{_0x571961['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3971fe of this['focusables'])this['focusTracker']['add'](_0x3971fe['element']),this['keystrokes']['listenTo'](_0x3971fe['element']);}['_createContextView'](){const _0x4f9927=new as(this['locale']);return _0x4f9927['bind']('contextValue')['to'](this),_0x4f9927;}}class ts extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x238e13,_0x399854,_0x370fe9,_0x519a63){super(_0x238e13),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x399854,this['_localUser']=_0x370fe9,this['_config']=_0x519a63,this['commentThreadHeaderView']=new Xt(_0x238e13,_0x399854),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x238e13,E(_0x238e13,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x238e13,_0x399854,Object['assign']({'CommentView':this['_config']['CommentView']},_0x519a63)),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',(_0x3f6e3b,_0x4b0eae)=>_0x3f6e3b||!!_0x4b0eae),this['bind']('isUnlinked')['to'](_0x399854,'unlinkedAt',_0x18b963=>!!_0x18b963),this['bind']('ariaLabel')['to'](this,'length',_0x524946=>{const _0x1c0148=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x524946,_0x1c0148]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x355188(),this['keystrokes']=new jt(),this['focusCycler']=new _0x346817({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x465765=>_0x465765['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 _0x4ab72b=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x33d8e4=_0x4ab72b['commentInputView'];return _0x4ab72b['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x33d8e4,'value',(_0x17a750,_0x3d7fcc,_0x32f0a5,_0x1892a,_0x35e89d)=>!!_0x35e89d||!!_0x1892a&&_0x32f0a5&&!_0x3d7fcc||_0x17a750&&_0x32f0a5&&!_0x3d7fcc),_0x33d8e4['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x495cb8,_0x19dbcf,_0x538a7d)=>{let _0x419232;return _0x419232=_0x538a7d&&_0x19dbcf?'Reply\x20to\x20reopen\x20discussion...':_0x495cb8?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x419232);}),_0x33d8e4['bind']('submitLabel')['to'](this,'length',_0x345d4b=>E(this['locale'],_0x345d4b?'Reply':'Comment')),_0x33d8e4['on']('submit',(_0x1ce0ce,_0x2cf68d)=>{this['fire']('addComment',_0x2cf68d),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x33d8e4['on']('cancel',()=>{this['focus']();}),_0x33d8e4['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x33d8e4['on']('cancel',_0x5a6ed6=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x5a6ed6['stop']());}),this['on']('change:isActive',(_0xbd3a9d,_0x3b9cb5,_0x4a2f3d)=>{_0x4a2f3d||this['length']||_0x33d8e4['value']||this['fire']('removeCommentThread');}),_0x4ab72b;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(ts){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x56c053,_0x27e2e1,_0x323496,_0x125842){super(_0x56c053,_0x27e2e1,_0x323496,_0x125842),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x56c053,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0xed0c15,_0x10189a,_0x42392f)=>{_0x42392f||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1affb9,_0x1ee90c,_0x5a1bf7)=>{_0x5a1bf7&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x510077=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x510077['if']('isActive','ck-thread--active'),_0x510077['if']('isUnlinked','ck-thread--unlinked'),_0x510077['if']('isConfirm','ck-thread--remove-confirmation'),_0x510077['to']('actionIndicator',_0x5f1154=>_0x5f1154?'ck-thread--'+_0x5f1154:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x510077['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 _0xae4048 of this['commentsListView']['commentViews'])_0xae4048['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3241e2}=this,_0x4abe2e=this['commentsListView']['commentViews']['get'](0x0);_0x4abe2e===this['_boundFirstCommentView']||_0x4abe2e['isSystemComment']||(this['_boundFirstCommentView']=_0x4abe2e,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x4abe2e,'actionIndicator',_0x1b8698=>'remove'===_0x1b8698?'remove':null),_0x4abe2e['placeholder']=E(_0x3241e2,'Write\x20a\x20comment...'),_0x4abe2e['removeButton']['on']('execute',_0x370c98=>{_0x370c98['stop'](),this['showConfirm'](E(_0x3241e2,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x4abe2e['focus']();}),_0x4abe2e['actionBar']['add'](this['resolveButton'],0x0),_0x4abe2e['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0xbd2b75=new _0x50854c(this['locale']);return _0xbd2b75['label']=E(this['locale'],'Resolve'),_0xbd2b75['tooltip']=E(this['locale'],'Resolve'),_0xbd2b75['icon']=_0x57d49c,_0xbd2b75['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0xbd2b75['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4eb317=>!_0x4eb317),_0xbd2b75['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4a885f,_0x4f976)=>_0x4a885f&&!_0x4f976),_0xbd2b75['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0xbd2b75;}['_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(_0x30fe06){super(_0x30fe06),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x5cfd6b,_0x52e049,_0x36c970)=>{this['element']['innerHTML']=_0x36c970;}),this['element']['innerHTML']=this['content'];}}class hs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ae632,_0x502706,_0xe18c3){super(_0x3ae632),this['_model']=_0x502706,this['_config']=_0xe18c3,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x502706,'content',_0x502706,'authoredAt',(_0x9f74ab,_0x4206d3)=>E(_0x3ae632,'COMMENT_ARIA_LABEL',[_0x502706['author']['name'],_0xe18c3['formatDateTime'](_0x4206d3),new DOMParser()['parseFromString'](_0x9f74ab,'text/html')['body']['textContent'],_0x502706['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x3ae632,E(_0x3ae632,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x3b3b3c(),this['focusTracker']=new _0x355188(),this['keystrokes']=new jt(),this['focusCycler']=new _0x346817({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x36a6c3=>_0x36a6c3['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 _0x5327be=new es(this['locale']);return _0x5327be['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x16c26c,_0x48cfa2)=>_0x48cfa2?_0x2496da(_0x16c26c,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x16c26c),_0x5327be;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1960c5=new os(this['locale'],this['_config']['editorConfig']);return _0x1960c5['value']=this['_model']['content'],_0x1960c5['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1960c5['submitLabel']=E(this['locale'],'Save'),_0x1960c5['on']('submit',(_0x58cc8f,_0x1442df)=>{this['fire']('updateComment',this['_model']['id'],_0x1442df),this['switchToDisplayMode'](),this['focus']();}),_0x1960c5['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1960c5['once']('editorReady',()=>{_0x1960c5['focus']();}),_0x1960c5['createEditor'](),_0x1960c5['delegate']('editorReady')['to'](this),_0x1960c5['delegate']('editorDestroyed')['to'](this),_0x1960c5;}['_setupKeyboardNavigation'](){const _0x42155c=this['element'];this['keystrokes']['listenTo'](_0x42155c);for(const _0xd915de of this['focusables'])this['focusTracker']['add'](_0xd915de['element']),this['keystrokes']['listenTo'](_0xd915de['element']);this['focusables']['on']('change',(_0x312491,_0x54ba8e)=>{for(const _0x4d95a5 of _0x54ba8e['removed'])this['focusTracker']['remove'](_0x4d95a5['element']),this['keystrokes']['stopListening'](_0x4d95a5['element']);for(const _0x91889 of _0x54ba8e['added'])this['focusTracker']['add'](_0x91889['element']),this['keystrokes']['listenTo'](_0x91889['element']);}),this['keystrokes']['set']('enter',(_0x1b8492,_0x3569ea)=>{_0x42155c===_0x1b8492['target']&&(this['focusCycler']['focusFirst'](),_0x3569ea());}),this['keystrokes']['set']('esc',(_0x19036b,_0x1eea0b)=>{_0x42155c!==_0x19036b['target']&&(this['focus'](),_0x1eea0b());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(hs){['actionBar'];['userView'];constructor(_0x3200e3,_0x49c3f2,_0x2797fe){super(_0x3200e3,_0x49c3f2,_0x2797fe),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x3200e3,'Reply...')),this['bind']('authoredAt')['to'](_0x49c3f2),this['bind']('resolvedAt')['to'](_0x49c3f2),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 _0x4c2bd2(_0x3200e3,_0x49c3f2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x49c3f2,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2a0557=this['bindTemplate'],_0x4dba9c=[{'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':_0x2a0557['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a0557['to']('authoredAt',_0x1f45d9=>this['_config']['formatDateTime'](_0x1f45d9))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2a0557['if']('isEditMode','ck-comment__actions--hidden'),_0x2a0557['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']&&_0x4dba9c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2a0557['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x2a0557['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2a0557['if']('isEditMode','ck-comment--edit'),_0x2a0557['if']('isSystemComment','ck-comment--info'),_0x2a0557['to']('actionIndicator',_0x3d64d1=>_0x3d64d1?'ck-comment--'+_0x3d64d1:'')],'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':_0x4dba9c}]}]};}['_createEditButton'](){const _0x1156be=new _0x11514e(this['locale']);return _0x1156be['label']=E(this['locale'],'Edit'),_0x1156be['icon']=_0x3abff9,_0x1156be['withText']=!0x0,_0x1156be['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1156be['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4794aa=>!_0x4794aa),_0x1156be['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1156be['on']('execute',()=>this['switchToEditMode']()),_0x1156be;}['_createRemoveButton'](){const _0x4ffd4a=new _0x11514e(this['locale']);return _0x4ffd4a['label']=E(this['locale'],'Remove'),_0x4ffd4a['icon']=_0x21ca4e,_0x4ffd4a['withText']=!0x0,_0x4ffd4a['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x4ffd4a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1de895=>!_0x1de895),_0x4ffd4a['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x4ffd4a['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x4ffd4a;}['_createDropdown'](){const _0x3f72f2=_0x39ce0f(this['locale'],_0x4a94cc),_0x10bcde=_0x3f72f2['panelView']['children'],_0x5e0bae=new _0x562f1b(this['locale']),_0x3432c1=_0x3f72f2['bindTemplate'];_0x226139(_0x3f72f2,()=>this['items']['find'](_0x179020=>_0x179020['isVisible'])),_0x3f72f2['extendTemplate']({'attributes':{'class':[_0x3432c1['if']('isVisible','ck-hidden',_0x410118=>!_0x410118)]}});const _0x52c8f2=(_0xfb8028,_0x23bc6e=-0x1)=>{const _0x300424=new _0x6bed2(this['locale']);_0x300424['children']['add'](_0xfb8028);const _0x1ffcf3=_0x23bc6e>-0x1?_0x23bc6e:_0x5e0bae['items']['length'];_0x5e0bae['items']['add'](_0x300424,_0x1ffcf3);const _0x5be031=Array['from'](this['items']);_0x3f72f2['unbind']('isEnabled','isVisible'),_0x3f72f2['bind']('isEnabled')['toMany'](_0x5be031,'isEnabled',(..._0x4cd7db)=>_0x4cd7db['some'](_0x51275a=>_0x51275a)),_0x3f72f2['bind']('isVisible')['toMany'](_0x5be031,'isVisible',(..._0x2d6242)=>_0x2d6242['some'](_0x7df1c=>_0x7df1c));};_0x3f72f2['panelPosition']='sw',_0x3f72f2['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x45c7ed});for(const _0x569bc7 of this['items'])_0x52c8f2(_0x569bc7);return _0x10bcde['add'](_0x5e0bae),_0x3f72f2['listenTo'](this['items'],'add',(_0x25ae07,_0x5b22bf,_0x246d8d)=>{_0x52c8f2(_0x5b22bf,_0x246d8d);}),_0x3f72f2['listenTo'](this['items'],'remove',(_0x1c7bbd,_0x5da469,_0x150fba)=>{_0x5e0bae['items']['remove'](_0x150fba);}),_0x3f72f2;}['_attachActions'](_0x193d61,_0xab8738){const _0x2e979d=_0x193d61&&_0x193d61['element'];_0x2e979d&&(this['listenTo'](_0x2e979d,'mouseenter',()=>this['actionIndicator']=_0xab8738),this['listenTo'](_0x2e979d,'focus',()=>this['actionIndicator']=_0xab8738),this['listenTo'](_0x2e979d,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x2e979d,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x44eee3=super['_createCommentInputView']();return _0x44eee3['bind']('placeholder')['to'](this),_0x44eee3;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x2e66a0){const _0x373ca6=Dt(_0x2e66a0,0x1e),_0x31461d=new MutationObserver(_0xaa3c82=>{for(const _0x41bdd5 of _0xaa3c82)('attributes'==_0x41bdd5['type']&&'class'==_0x41bdd5['attributeName']||'childList'==_0x41bdd5['type']||'characterData'==_0x41bdd5['type'])&&_0x373ca6();});return{'attach'(_0x1a5b91){_0x31461d['observe'](_0x1a5b91,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x31461d['disconnect'](),_0x373ca6['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x221eea,_0x3e25f4){super(_0x221eea),this['id']=_0x2d4b73(),this['focusTracker']=new _0x355188(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0xb8fea8,_0x5b8a0d)=>this['fire']('Esc',_0x5b8a0d)),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'](_0x3e25f4),this['mainView']=_0x3e25f4;const _0x3371d0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x3371d0['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 _0x3e0f97=this['element']['clientHeight'];_0x3e0f97&&(this['height']=_0x3e0f97);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x2621e6(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x43097a,target:_0x59b200,type:_0x35595c,isVisible:_0x1b56ed=!0x0}){super(),this['view']=_0x43097a,this['view']['element']||this['view']['render'](),this['_type']=_0x35595c,this['_target']=_0x59b200,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x2d8e4d([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x52b8ca,_0x4e0bbb)=>{this['view']['focusTracker']['add'](_0x4e0bbb);}),this['focusableElements']['on']('remove',(_0xc5ea49,_0x16bfaa)=>{this['view']['focusTracker']['remove'](_0x16bfaa);}),this['set']('isVisible',_0x1b56ed);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0xd6a58f=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0xd6a58f),_0xd6a58f;}get['targetRect'](){const _0x4b2c7e=this['target'];if(null===_0x4b2c7e)return null;if(_0x4b2c7e instanceof _0x1694f4)return _0x4b2c7e;const _0x4ab6f3=_0x4b2c7e['filter'](_0x2eb819=>function(_0x15c6a2){const _0x4f4ae6=_0x15c6a2['offsetParent'];if(_0x4f4ae6)return!0x0;const _0x183118=_0x15c6a2['getClientRects']()['item'](0x0);return!!_0x183118;}(_0x2eb819));return 0x0===_0x4ab6f3['length']?null:new _0x1694f4(_0x4ab6f3[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x2b9d85){this['view']['isActive']=_0x2b9d85,this['view']['mainView']['isActive']=_0x2b9d85;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x49cd8f){if(!(null===_0x49cd8f||_0x49cd8f instanceof _0x1694f4||Array['isArray'](_0x49cd8f)&&_0x49cd8f['every'](_0x251a75=>li(_0x251a75))))throw new _0x4813ff('annotation-invalid-target',null,{'target':_0x49cd8f});}['_getNormalizedTarget'](){const _0x5b0267='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x5b0267)?[_0x5b0267]:_0x5b0267;}}function li(_0x3d8a56){return null!==_0x3d8a56&&'object'==typeof _0x3d8a56&&'nodeType'in _0x3d8a56&&0x1===_0x3d8a56['nodeType'];}class _ extends _0x2d8e4d{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4f4787=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x355188(),this['_focusTracker']['on']('change:isFocused',(_0x2ddad1,_0x288423,_0x89f3ae)=>{_0x89f3ae||this['fire']('blur');});for(const _0x218de5 of _0x4f4787)this['add'](_0x218de5);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x508c38){if(this['has'](_0x508c38))throw new _0x4813ff('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x508c38['innerView'],_0x508c38),this['_viewToAnnotation']['set'](_0x508c38['view'],_0x508c38);for(const _0x4027fb of _0x508c38['focusableElements'])this['_focusTracker']['add'](_0x4027fb);this['listenTo'](_0x508c38['focusableElements'],'add',(_0xe18faa,_0x5be398)=>{this['_focusTracker']['add'](_0x5be398);}),this['listenTo'](_0x508c38['focusableElements'],'remove',(_0x27a95a,_0x49ce7c)=>{this['_focusTracker']['remove'](_0x49ce7c);}),this['listenTo'](_0x508c38['view']['focusTracker'],'change:isFocused',(_0x5b53bd,_0x2cd4c7,_0x42d8f8)=>{_0x42d8f8&&this['fire']('focus',_0x508c38);}),_0x508c38['updateTargetRect']();const _0xd737dd=this['_getOrderInContent'](_0x508c38['view']['targetRect']);return super['add'](_0x508c38,_0xd737dd);}['remove'](_0x2ade82){if(!this['has'](_0x2ade82))throw new _0x4813ff('annotationcollection-not-existing-item',null);this['stopListening'](_0x2ade82['view']['focusTracker']),this['stopListening'](_0x2ade82['focusableElements']);for(const _0x4fa013 of _0x2ade82['focusableElements'])this['_focusTracker']['remove'](_0x4fa013);return this['_viewToAnnotation']['delete'](_0x2ade82['view']),this['_innerViewToAnnotation']['delete'](_0x2ade82['innerView']),super['remove'](_0x2ade82);}['getByInnerView'](_0x5945b8){return this['_innerViewToAnnotation']['get'](_0x5945b8);}['getByView'](_0x565d39){return this['_viewToAnnotation']['get'](_0x565d39);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x357d14 of this)_0x357d14['updateTargetRect']();this['_sort']();}['_sort'](){const _0x1f05c6=Array['from'](this)['sort']((_0x1cd1a0,_0x17f9da)=>v(_0x1cd1a0['view']['targetRect'],_0x17f9da['view']['targetRect']));for(let _0x4df2a2=_0x1f05c6['length']-0x1;_0x4df2a2>0x0;_0x4df2a2--){const _0x125d63=_0x1f05c6[_0x4df2a2];_0x4df2a2!==this['getIndex'](_0x125d63)&&(this['remove'](_0x125d63),this['add'](_0x125d63));}}['_getOrderInContent'](_0xf1f099){let _0xf0853a=0x0;if(!_0xf1f099)return this['length'];for(const _0x3b8340 of this){const _0x4d5ecd=_0x3b8340['view']['targetRect'];if(_0x4d5ecd){if(v(_0xf1f099,_0x4d5ecd)<0x0)return _0xf0853a;_0xf0853a++;}}return _0xf0853a;}}function v(_0x284b2e,_0x58abbe){if(null===_0x284b2e&&null===_0x58abbe)return 0x0;if(null===_0x284b2e)return-0x1;if(null===_0x58abbe)return 0x1;const _0x3bddc2=_0x284b2e['top']-_0x58abbe['top'];return 0x0==_0x3bddc2?_0x284b2e['left']-_0x58abbe['left']:_0x3bddc2;}class O extends _0x29aebb{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50f924){if(super(_0x50f924),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x50f924 instanceof _0x1f4cfd){const _0x42e184=_0x50f924['locale'];_0x50f924['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x42e184,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x42e184,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x42e184,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x42e184,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x42e184,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x42e184,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x42e184,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x23f7e1){this['collection']['add'](_0x23f7e1);}['remove'](_0x2e0917){this['collection']['remove'](_0x2e0917),_0x2e0917['destroy']();}['refreshVisibility'](){for(const _0x181023 of this['collection'])_0x181023['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x20d120){return this['collection']['getByInnerView'](_0x20d120);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x546d05 of this['collection'])_0x546d05['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x69fdec){this['fire']('_activateAnnotation',_0x69fdec);}['createAnnotation'](_0x4e47bf){return new d(_0x4e47bf);}['createAnnotationView'](_0x2dff78,_0x2b640f){return new S(_0x2dff78,_0x2b640f);}['_addActiveAnnotation'](_0xceba67){const _0x3c0405=new Set(this['activeAnnotations']);_0x3c0405['add'](_0xceba67),this['activeAnnotations']=_0x3c0405;}['_removeActiveAnnotation'](_0x2f4b86){const _0x38d1e0=new Set(this['activeAnnotations']);_0x38d1e0['delete'](_0x2f4b86),this['activeAnnotations']=_0x38d1e0;}['_bindAnnotationsToVisibleAnnotations'](){const _0x29f48a=this['collection'],_0x7279b2=this['_visibleAnnotations'];function _0x2bdaad(_0x50f05c){const _0x297fa3=_0x50f05c['source'];_0x297fa3['isVisible']&&!_0x7279b2['has'](_0x297fa3)?_0x7279b2['add'](_0x297fa3):!_0x297fa3['isVisible']&&_0x7279b2['has'](_0x297fa3)&&_0x7279b2['remove'](_0x297fa3),_0x297fa3['view']['focusTracker']['remove'](_0x297fa3['view']['element']),_0x297fa3['view']['focusTracker']['add'](_0x297fa3['view']['element']);}this['listenTo'](_0x29f48a,'add',(_0x3dac6b,_0x2c423b)=>{_0x2c423b['isVisible']&&_0x7279b2['add'](_0x2c423b),this['listenTo'](_0x2c423b,'change:isVisible',_0x2bdaad);}),this['listenTo'](_0x29f48a,'remove',(_0x1ba817,_0x416d3c)=>{_0x7279b2['has'](_0x416d3c)&&_0x7279b2['remove'](_0x416d3c),this['stopListening'](_0x416d3c,'change:isVisible',_0x2bdaad);});}['_setupEnterAnnotationKeystroke'](){const _0x4120de=_0x3c1035=>{_0x3c1035['on']('ready',()=>{_0x3c1035['keystrokes']['set'](_0x73fcb6,(_0x1c97dd,_0x4ae6ad)=>{const _0x3c35f9=_0x273d1a(this['activeAnnotations']['values']());_0x3c35f9&&(_0x3c35f9['view']['focus'](),_0x4ae6ad());});});};this['context']instanceof _0x1f4cfd?_0x4120de(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0xdac1f,_0x5ca29a)=>{_0x4120de(_0x5ca29a);});}['_setupEscapeAnnotationHandling'](){const _0x5e4729=_0x22095f=>{const _0x58bd3b=_0x22095f['source'],_0x1443a5=[];let _0x4860d8;if(Array['isArray'](_0x58bd3b['target'])){_0x4860d8=_0x58bd3b['target'][0x0],this['context']instanceof _0x1f4cfd?_0x1443a5['push'](this['context']):this['context']['editors']&&_0x1443a5['push'](...this['context']['editors']);for(const _0x404cd7 of _0x1443a5)for(const _0x18faf4 of _0x404cd7['editing']['view']['domRoots']['values']())if(_0x18faf4['contains'](_0x4860d8))return void _0x404cd7['editing']['view']['focus']();_0x4860d8['focus']();}};this['listenTo'](this['collection'],'add',(_0x341cfc,_0x41a5e8)=>{this['listenTo'](_0x41a5e8,'escape',_0x5e4729,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x52e967,_0x4cff0f)=>{this['stopListening'](_0x4cff0f,'escape',_0x5e4729);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x29aebb{['_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(_0x523e4a){super(_0x523e4a),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1c6595=this['context']['config'];_0x1c6595['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1c6595['define']('comments.maxThreadTotalWeight',0x1f4),_0x1c6595['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1c6595['define']('comments.CommentThreadView',vt),_0x1c6595['define']('comments.CommentView',gt),_0x1c6595['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x21e932=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x15cc0d,_0x1b4858)=>this['_addCommentThread'](_0x1b4858)),this['on']('submitCommentThread',(_0x1dcf53,_0x296ebe)=>this['_submitCommentThread'](_0x296ebe)),this['on']('resolveCommentThread',(_0x30f805,_0x4929ed)=>this['_resolveCommentThread'](_0x4929ed)),this['on']('resolveCommentThread',(_0x16282d,_0x37cbaa)=>this['_updateActiveAnnotation'](_0x37cbaa),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x268ce8,_0x13a4a4)=>this['_reopenCommentThread'](_0x13a4a4)),this['on']('reopenCommentThread',(_0x20cc03,_0xe2c8af)=>this['_updateActiveAnnotation'](_0xe2c8af),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3132b1,_0xce41a4)=>this['_removeCommentThread'](_0xce41a4)),this['on']('updateCommentThread',(_0x491b9e,_0x4ff459)=>this['_updateCommentThread'](_0x4ff459)),this['on']('updateCommentThread',(_0x39aa03,_0x57afa6)=>this['_updateActiveAnnotation'](_0x57afa6),{'priority':'lowest'}),this['on']('addComment',(_0x2bb7d1,_0x31ca47)=>this['_addComment'](_0x31ca47)),this['on']('updateComment',(_0x1b85e0,_0x5e3a89)=>this['_updateComment'](_0x5e3a89)),this['on']('removeComment',(_0x2a1003,_0x4b97a6)=>this['_removeComment'](_0x4b97a6)),this['on']('addComment',(_0x1e1ebc,{threadId:_0x3122f8,isFromAdapter:_0x2b8e1e})=>{if(_0x2b8e1e)return;const _0x35a720=this['getCommentThread'](_0x3122f8),_0xbf75b3=_0x35a720&&this['_threadToController']['get'](_0x35a720);_0xbf75b3&&_0xbf75b3['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x21e932,'change:activeAnnotations',(_0x5de95b,_0x216e03,_0x2fb378)=>{const _0x3442fe=Array['from'](_0x2fb378)['map'](_0x2ac066=>this['_viewToController']['get'](_0x2ac066['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3442fe?_0x3442fe['model']:null;});}set['adapter'](_0x3f85f3){if(this['_adapter'])throw new _0x4813ff('commentsrepository-adapter-already-set');this['_adapter']=_0x3f85f3;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x22f81f=Tt,threadId:_0x54ba58=_0x2d4b73(),comments:_0x3d5f15=[],unlinkedAt:_0xecd0eb=null,resolvedAt:_0x5c1061=null,resolvedBy:_0x219cea=null,target:_0x77ccc8=null,context:_0x5926a9=null,attributes:_0x5689c6={},isResolvable:_0x38f302=!0x0,isSubmitted:_0x53a111=!0x1,isFromAdapter:_0x4a6027=!0x1}={}){return this['fire'](bt('addCommentThread',_0x22f81f),{'channelId':_0x22f81f,'threadId':_0x54ba58,'comments':_0x3d5f15,'unlinkedAt':_0xecd0eb,'resolvedAt':_0x5c1061,'resolvedBy':_0x219cea,'target':_0x77ccc8,'context':_0x5926a9,'attributes':_0x5689c6,'isFromAdapter':_0x4a6027,'isResolvable':_0x38f302,'isSubmitted':_0x53a111}),this['getCommentThread'](_0x54ba58);}['openNewCommentThread']({channelId:_0x441862=Tt,threadId:_0x17e413=_0x2d4b73(),target:_0x32fa8c,context:_0x3db0db=null,isResolvable:_0x3ad4cc=!0x0}){if(this['_readOnlyChannels']['has'](_0x441862)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x32fa8c)throw new _0x4813ff('commentsrepository-missing-target');const _0x42eb17=this['addCommentThread']({'channelId':_0x441862,'threadId':_0x17e413,'target':_0x32fa8c,'context':_0x3db0db,'isResolvable':_0x3ad4cc});if(!_0x42eb17)return null;const _0x2d4995=this['_threadToController']['get'](_0x42eb17),_0x37e9fc=_0x2d4995['view']['commentThreadInputView']['commentInputView'],_0x1bfdbf=this['context']['plugins']['get'](O),_0x12c9a6=_0x1bfdbf['getByInnerView'](_0x2d4995['view']);return _0x1bfdbf['activate'](_0x12c9a6),_0x37e9fc['once']('editorReady',()=>_0x37e9fc['focus']()),_0x42eb17;}['hasCommentThread'](_0xfbd1a2){if('string'!=typeof _0xfbd1a2)throw new _0x4813ff('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0xfbd1a2);}['updateCommentThread']({channelId:_0x53dc29=Tt,threadId:_0x172c9d,context:_0x3a92d3,unlinkedAt:_0x3eb7df,attributes:_0x850e62,isFromAdapter:_0xb0e018=!0x1}){return this['fire'](bt('updateCommentThread',_0x53dc29),{'channelId':_0x53dc29,'threadId':_0x172c9d,'context':_0x3a92d3,'unlinkedAt':_0x3eb7df,'attributes':_0x850e62,'isFromAdapter':_0xb0e018}),this['getCommentThread'](_0x172c9d);}['getCommentThread'](_0x9876f7){if('string'!=typeof _0x9876f7)throw new _0x4813ff('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x9876f7);}['fetchCommentThread']({channelId:_0x466947,threadId:_0x1a401c}={}){const _0x2bc514=this['getCommentThread'](_0x1a401c);if(_0x2bc514)return Promise['resolve'](_0x2bc514);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4813ff('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x466947,'threadId':_0x1a401c})['then'](_0x2e92f5=>this['hasCommentThread'](_0x1a401c)?this['getCommentThread'](_0x1a401c):_0x2e92f5?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x466947},_0x2e92f5)):void 0x0)['catch'](_0x44cf50=>{throw console['error'](_0x44cf50),new _0x4813ff('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x3a1a10,skipNotAttached:_0x1be6d7=!0x1,skipEmpty:_0x538296=!0x1,toJSON:_0x296654=!0x1}={}){const _0x5da180=[];for(const _0x5d38bb of this['_threads']['values']())_0x3a1a10&&_0x5d38bb['channelId']!==_0x3a1a10||_0x1be6d7&&!_0x5d38bb['isAttached']||_0x538296&&0x0===_0x5d38bb['length']||_0x5da180['push'](_0x5d38bb);return _0x296654?_0x5da180['map'](_0x432e63=>_0x432e63['toJSON']()):_0x5da180;}['setActiveCommentThread'](_0x20a972){const _0x29c0e7=this['context']['plugins']['get'](O);if(!_0x20a972)return void(this['activeCommentThread']&&_0x29c0e7['deactivateAll']());const _0x2ecb97=this['getCommentThread'](_0x20a972);if(!_0x2ecb97)throw new _0x4813ff('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x20a972});if(!this['_threadToController']['has'](_0x2ecb97))throw new _0x4813ff('commentsrepository-active-not-attached',null,{'threadId':_0x20a972});const _0x346af6=_0x29c0e7['getByInnerView'](this['_threadToController']['get'](_0x2ecb97)['view']);_0x29c0e7['activate'](_0x346af6);}['switchReadOnly'](_0x300c72,_0x361371){_0x300c72?this['_readOnlyChannels']['add'](_0x361371):this['_readOnlyChannels']['delete'](_0x361371),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1a9697){return this['_readOnlyChannels']['has'](_0x1a9697)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x32d951,_0x33ce9b){return new Ct(_0x32d951,_0x33ce9b);}['setPermissions'](_0x534803,_0x3d5d59=Tt){this['_permissions']['set'](_0x3d5d59,_0x534803),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x42589b=Tt){return this['_permissions']['has'](_0x42589b)?this['_permissions']['get'](_0x42589b):_t;}['_addCommentThread']({channelId:_0x1ea59c,threadId:_0x169d30,comments:_0x5dceda,unlinkedAt:_0x16ba89,resolvedAt:_0xca60bc,resolvedBy:_0x31594d,target:_0x27f50b,context:_0x47c005,attributes:_0x59c281,isFromAdapter:_0x1b9105,isResolvable:_0x30056c,isSubmitted:_0x5c57a7}){if('string'!=typeof _0x169d30)throw new _0x4813ff('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x169d30});if(this['hasCommentThread'](_0x169d30))throw new _0x4813ff('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x169d30});const _0x38b943=new ui(this,{'channelId':_0x1ea59c,'id':_0x169d30,'context':_0x47c005,'attributes':_0x59c281,'unlinkedAt':_0x16ba89,'resolvedAt':_0xca60bc,'resolvedBy':_0x31594d?this['context']['plugins']['get'](it)['getUser'](_0x31594d):null,'isResolvable':_0x30056c,'isSubmitted':_0x5c57a7||_0x1b9105});this['_threads']['set'](_0x169d30,_0x38b943);for(const _0x9f9408 of _0x5dceda)_0x38b943['_add'](this['_createNewComment']({'threadId':_0x169d30,..._0x9f9408}));return _0x27f50b&&_0x38b943['attachTo'](_0x27f50b),_0x1b9105||!_0x38b943['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1ea59c,'threadId':_0x169d30});}['_submitCommentThread']({channelId:_0x46228b,threadId:_0x54cd64}){if(!this['hasCommentThread'](_0x54cd64))throw new _0x4813ff('commentsrepository-missing-comment-thread',this);const _0x584905=this['getCommentThread'](_0x54cd64);if(_0x584905['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x25b704,comments:_0x24fb77,resolvedAt:_0x2071e7,resolvedBy:_0x128888,context:_0x4a05dc,attributes:_0x10255e}=_0x584905,_0xfe1ce1=this['context']['plugins']['get']('PendingActions'),_0x297faf=_0xfe1ce1['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x46228b,'threadId':_0x25b704,'comments':_0x24fb77['map'](_0x5bf8b8=>_0x5bf8b8['toJSON']()),'resolvedAt':_0x2071e7,'resolvedBy':_0x128888?_0x128888['id']:_0x128888,'context':_0x4a05dc,'attributes':_0x10255e})['then'](({comments:_0x5a808c})=>{_0xfe1ce1['remove'](_0x297faf);for(const _0x7ecb3a of _0x5a808c)this['_updateComment']({'channelId':_0x46228b,'threadId':_0x54cd64,'commentId':_0x7ecb3a['commentId'],'createdAt':_0x7ecb3a['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x517846=>{throw console['error'](_0x517846),new _0x4813ff('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x2f615e,target:_0xe2deae}){const _0x2c4824=this['getCommentThread'](_0x2f615e);if(!_0x2c4824)throw new _0x4813ff('commentsrepository-attach-missing-comment-thread',this);const _0x4c8639=this['context']['plugins']['get']('PendingActions'),_0x5ab42a=this['context']['plugins']['get'](O),_0x32a003=this['_createCommentThreadView'](_0x2c4824),_0x5516e3=new Ct(_0x2c4824,_0x32a003);let _0x54c93e=null;_0x32a003['on']('change:isDirty',(_0x24b30b,_0x3eb4c3,_0x400aba)=>{_0x400aba?_0x54c93e=_0x4c8639['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x54c93e&&(_0x4c8639['remove'](_0x54c93e),_0x54c93e=null);}),this['_threadToController']['set'](_0x2c4824,_0x5516e3),this['_viewToController']['set'](_0x32a003,_0x5516e3);const _0xc874e8=new S(this['context']['locale'],_0x32a003);_0xc874e8['bind']('length')['to'](_0x32a003),_0xc874e8['bind']('isDirty')['to'](_0x32a003,'isDirty',_0x32a003,'length',(_0x27fee3,_0x313784)=>_0x27fee3||!_0x313784),_0xc874e8['bind']('isActive')['to'](_0x32a003),_0xc874e8['type']='comment';const _0x197be8=new d({'view':_0xc874e8,'target':_0xe2deae,'type':'comment','isVisible':!_0x2c4824['archivedAt']});return _0x32a003['on']('escape',()=>{_0x197be8['fire']('escape');}),this['_bindAnnotationToEditors'](_0x32a003,_0x197be8),_0x5ab42a['add'](_0x197be8),_0x197be8;}['_bindAnnotationToEditors'](_0x3dc8e1,_0x3cacc2){this['listenTo'](_0x3dc8e1,'editorReady',(_0x132890,_0x55a242)=>{const _0x5be270=_0x55a242['ui']['view']['body']['bodyCollectionContainer'];_0x3cacc2['focusableElements']['add'](_0x5be270),this['context']instanceof _0x1f4cfd&&this['context']['ui']['focusTracker']['add'](_0x5be270);},{'priority':'highest'}),this['listenTo'](_0x3dc8e1,'editorDestroyed',(_0x205d9b,_0x1b0e41)=>{const _0x44bdc4=_0x1b0e41['ui']['view']['body']['bodyCollectionContainer'];_0x3cacc2['focusableElements']['has'](_0x44bdc4)&&_0x3cacc2['focusableElements']['remove'](_0x44bdc4),this['context']instanceof _0x1f4cfd&&this['context']['ui']['focusTracker']['remove'](_0x44bdc4);});}['_unbindEditors'](_0x29c233){this['stopListening'](_0x29c233,'editorReady'),this['stopListening'](_0x29c233,'editorDestroyed');}['_createCommentThreadView'](_0x414bfe){const _0x919dae=this['context']['plugins']['get'](it),{config:_0x25300f,locale:_0x5dc87c}=this['context'],_0x381cb0=lt(_0x25300f['get']('locale'),_0x5dc87c);return new(0x0,(_0x25300f['get']('comments'))['CommentThreadView'])(_0x5dc87c,_0x414bfe,_0x919dae['me'],{'editorConfig':{..._0x25300f['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x25300f['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x25300f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x25300f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x25300f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x381cb0,'CommentView':_0x25300f['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x490533,channelId:_0x1a3427,resolvedAt:_0xc9ead4,resolvedBy:_0x35ca2a,isFromAdapter:_0x4ade2e}){if(!this['hasCommentThread'](_0x490533))throw new _0x4813ff('commentsrepository-missing-comment-thread',null,{'threadId':_0x490533});const _0xb5b41e=this['getCommentThread'](_0x490533);if(_0xb5b41e['isResolved'])throw new _0x4813ff('commentsrepository-resolved-comment-thread',null,{'threadId':_0x490533});const _0x3e7a98=this['context']['plugins']['get'](it);if(_0xb5b41e['resolvedBy']=_0x3e7a98['getUser'](_0x35ca2a),_0xb5b41e['resolvedAt']=_0xc9ead4,_0x4ade2e||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x3614c1=this['context']['plugins']['get']('PendingActions'),_0x1cd322=_0x3614c1['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1a3427,'threadId':_0x490533})['then'](({resolvedAt:_0x39b226,resolvedBy:_0x3a9551})=>{_0x3614c1['remove'](_0x1cd322),_0xb5b41e['resolvedBy']['id']!==_0x3a9551&&(_0xb5b41e['resolvedBy']=_0x3e7a98['getUser'](_0x3a9551)),_0xb5b41e['resolvedAt']=_0x39b226;})['catch'](_0x42197e=>{throw console['error'](_0x42197e),new _0x4813ff('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x393d77,channelId:_0x1080b9,isFromAdapter:_0x5263c2}){if(!this['hasCommentThread'](_0x393d77))throw new _0x4813ff('commentsrepository-missing-comment-thread',null,{'threadId':_0x393d77});const _0x517e5f=this['getCommentThread'](_0x393d77);if(!_0x517e5f['isResolved'])throw new _0x4813ff('commentsrepository-reopen-comment-thread',null,{'threadId':_0x393d77});if(_0x517e5f['resolvedBy']=null,_0x517e5f['resolvedAt']=null,_0x5263c2||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x119962=this['context']['plugins']['get']('PendingActions'),_0x1009ba=_0x119962['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x1080b9,'threadId':_0x393d77})['then'](()=>_0x119962['remove'](_0x1009ba))['catch'](_0x2dbc05=>{throw console['error'](_0x2dbc05),new _0x4813ff('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x268033,isFromAdapter:_0x4b0106}){const _0x1e18e5=this['getCommentThread'](_0x268033);if(!_0x1e18e5)throw new _0x4813ff('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x268033),this['_threads']['delete'](_0x268033),!_0x1e18e5['isSubmitted']||_0x4b0106||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x3a46e3=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2cbd96}=_0x1e18e5,_0x4738ef=_0x3a46e3['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x2cbd96,'threadId':_0x268033})['then'](()=>_0x3a46e3['remove'](_0x4738ef))['catch'](_0x1c1e89=>{throw console['error'](_0x1c1e89),new _0x4813ff('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1302ff,unlinkedAt:_0x1c049a,context:_0x451bcd,attributes:_0x3b064c,isFromAdapter:_0x271a96}){if('string'!=typeof _0x1302ff)throw new _0x4813ff('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1302ff});if(!this['hasCommentThread'](_0x1302ff))throw new _0x4813ff('commentsrepository-missing-comment-thread',null,{'threadId':_0x1302ff});const _0x34aaba=this['getCommentThread'](_0x1302ff);let _0xd0f85=!0x1;if(void 0x0!==_0x451bcd&&_0x34aaba['context']!==_0x451bcd&&(_0x34aaba['context']=_0x451bcd,_0xd0f85=!0x0),void 0x0!==_0x1c049a&&_0x34aaba['unlinkedAt']!==_0x1c049a&&(_0x34aaba['unlinkedAt']=_0x1c049a,_0xd0f85=!0x0),_0x3b064c&&!wt(_0x3b064c,_0x34aaba['attributes'])&&(_0x34aaba['attributes']=_0x3b064c,_0xd0f85=!0x0),!_0xd0f85)return Promise['resolve']();if(!_0x34aaba['isSubmitted']||_0x271a96||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x395e4d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x80c660}=_0x34aaba,_0xffd107=_0x395e4d['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x80c660,'threadId':_0x1302ff,'context':_0x451bcd,'unlinkedAt':_0x1c049a,'attributes':_0x3b064c})['then'](()=>_0x395e4d['remove'](_0xffd107))['catch'](_0x1462f7=>{throw console['error'](_0x1462f7),new _0x4813ff('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x385bc8){const _0x4b8d1b=this['context']['plugins']['get'](O),_0x579a7d=this['getCommentThread'](_0x385bc8);if(_0x579a7d['_isAttached']=!0x1,this['_threadToController']['has'](_0x579a7d)){const _0x5e212c=this['_threadToController']['get'](_0x579a7d),_0x215754=_0x5e212c['view'],_0x2707eb=_0x4b8d1b['getByInnerView'](_0x215754);this['_threadToController']['delete'](_0x579a7d),this['_viewToController']['delete'](_0x215754),_0x2707eb&&_0x4b8d1b['remove'](_0x2707eb),_0x5e212c['destroy'](),_0x215754['destroy']()['then'](()=>{this['_unbindEditors'](_0x215754);});}}['_updateActiveAnnotation']({threadId:_0x473822,resolvedAt:_0x60375c,unlinkedAt:_0x50e674}){const _0x1517b6=!!_0x60375c,_0x8867af=this['context']['plugins']['get'](O),_0x42146a=this['getCommentThread'](_0x473822);if(this['_threadToController']['has'](_0x42146a)){const _0x42edc5=this['_threadToController']['get'](_0x42146a)['view'],_0x1b1f46=_0x8867af['getByInnerView'](_0x42edc5);_0x1b1f46&&(_0x1517b6&&_0x8867af['_removeActiveAnnotation'](_0x1b1f46),_0x50e674?_0x1b1f46['isVisible']=!0x1:_0x1b1f46['refreshVisibility']());}}['_getExternalAuthor'](_0x51daa4){const _0x43b514=this['context']['plugins']['get'](it),_0x144121=pt('external:'+_0x51daa4),_0x53449c=_0x43b514['getUser'](_0x144121);return _0x53449c||_0x43b514['addUser']({'id':_0x144121,'name':_0x51daa4});}['_createNewComment']({threadId:_0x13e573,commentId:_0x416a4e=_0x2d4b73(),content:_0x128fc5,authorId:_0x35f957,createdAt:_0x2d2d37,attributes:_0x467ad1}){if('string'!=typeof _0x416a4e)throw new _0x4813ff('commentsrepository-invalid-commentid');if('string'!=typeof _0x35f957)throw new _0x4813ff('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x128fc5||!_0x128fc5['trim']())throw new _0x4813ff('commentsrepository-invalid-comment-content');const _0x5746e8=this['context']['plugins']['get'](it)['getUser'](_0x35f957);if(!_0x5746e8)throw new _0x4813ff('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x35f957});let _0x11e168=null,_0x585698=_0x2d2d37;return _0x467ad1?.['@external']&&(_0x11e168=this['_getExternalAuthor'](_0x467ad1['@external']['authorName']),_0x585698=new Date(_0x467ad1['@external']['createdAt'])),new fi(this,{'threadId':_0x13e573,'id':_0x416a4e,'author':_0x11e168||_0x5746e8,'creator':_0x5746e8,'content':_0x128fc5,'createdAt':_0x2d2d37,'authoredAt':_0x585698,'attributes':_0x467ad1});}['_addComment'](_0x1e9fbf){let {threadId:_0x5f1984,content:_0xcf4ed6,attributes:_0x3364c0,isFromAdapter:_0x301789}=_0x1e9fbf;const _0x2627f3=this['getCommentThread'](_0x1e9fbf['threadId']);if(!_0x2627f3)throw new _0x4813ff('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x2706e9=this['_createNewComment'](_0x1e9fbf),{id:_0x4d5701}=_0x2706e9;if(_0x2627f3['_add'](_0x2706e9),_0x301789||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x2627f3['isSubmitted'])return Promise['resolve']();const _0x4a6413=this['context']['plugins']['get']('PendingActions'),{channelId:_0x51eeda}=_0x2627f3,_0x2a557d=_0x4a6413['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3364c0||(_0x3364c0={}),this['adapter']['addComment']({'channelId':_0x51eeda,'threadId':_0x5f1984,'commentId':_0x4d5701,'content':_0xcf4ed6,'attributes':_0x3364c0})['then'](_0x1f1959=>{_0x4a6413['remove'](_0x2a557d),_0x1f1959&&this['_updateComment']({'channelId':_0x51eeda,'threadId':_0x5f1984,'commentId':_0x4d5701,'createdAt':_0x1f1959['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3662c0=>{throw console['error'](_0x3662c0),new _0x4813ff('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x5d97d8,commentId:_0x469068,content:_0x3ff9bf,createdAt:_0x280a0a,attributes:_0x195a60,isFromAdapter:_0x5cdfa3}){if(void 0x0!==_0x3ff9bf&&('string'!=typeof _0x3ff9bf||!_0x3ff9bf['trim']()['length']))throw new _0x4813ff('commentsrepository-update-comment-invalid-content');const _0x4ccb64=this['getCommentThread'](_0x5d97d8),_0x3ae932=_0x4ccb64['getComment'](_0x469068);if(!_0x3ae932)throw new _0x4813ff('commentsrepository-update-missing-comment',this);let _0x48d885=!0x1;if(_0x3ff9bf&&_0x3ff9bf!==_0x3ae932['content']&&(_0x3ae932['isEditable']||_0x5cdfa3)&&(_0x3ae932['content']=_0x3ff9bf,_0x48d885=!0x0),_0x280a0a&&_0x280a0a!==_0x3ae932['createdAt']&&(_0x3ae932['createdAt']=_0x280a0a,_0x3ae932['attributes']&&_0x3ae932['attributes']['@external']||(_0x3ae932['authoredAt']=_0x280a0a),_0x48d885=!0x0),_0x195a60&&!wt(_0x195a60,_0x3ae932['attributes'])&&(_0x3ae932['attributes']=_0x195a60,_0x48d885=!0x0),!_0x48d885)return Promise['resolve']();if(_0x4ccb64['fire']('commentUpdated'),_0x5cdfa3||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x127684=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5a4750}=this['getCommentThread'](_0x3ae932['threadId']),_0x4bbcf5=_0x127684['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x5a4750,'threadId':_0x5d97d8,'commentId':_0x469068,'content':_0x3ff9bf,'attributes':_0x195a60})['then'](()=>_0x127684['remove'](_0x4bbcf5))['catch'](_0x1b5981=>{throw console['error'](_0x1b5981),new _0x4813ff('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x499d83,commentId:_0x5c8827,isFromAdapter:_0x2250ee}){const _0x5768ce=this['getCommentThread'](_0x499d83),_0x1d6a35=_0x5768ce['getComment'](_0x5c8827);if(!_0x1d6a35)throw new _0x4813ff('commentsrepository-remove-missing-comment',this);if(_0x5768ce['_remove'](_0x1d6a35),_0x2250ee||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4e1674=this['context']['plugins']['get']('PendingActions'),{channelId:_0x44a1dd}=_0x5768ce,_0x1cf7b7=_0x4e1674['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x44a1dd,'threadId':_0x499d83,'commentId':_0x5c8827})['then'](()=>_0x4e1674['remove'](_0x1cf7b7))['catch'](_0xac4f3b=>{throw console['error'](_0xac4f3b),new _0x4813ff('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
- _0x2621e6(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x1896bf,_0x19245d){super();const _0x1151f8=_0x19245d['isResolvable'];this['channelId']=_0x19245d['channelId'],this['id']=_0x19245d['id'],this['comments']=new _0x2d8e4d(),this['_repository']=_0x1896bf,this['_isAttached']=!0x1,this['_isSubmitted']=_0x19245d['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x1896bf,'_permissions',_0x1896bf,'_readOnlyChannels',()=>_0x1896bf['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x1896bf,'_permissions',()=>_0x1896bf['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x1896bf,'_permissions',()=>{const _0x4a2f1e=_0x1896bf['getPermissions'](this['channelId']);return _0x4a2f1e['write']||_0x4a2f1e['admin'];}),this['bind']('isResolvable')['to'](_0x1896bf,'_permissions',()=>_0x1151f8&&_0x1896bf['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x19245d['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x19f7ae,_0x1d2d08)=>_0x19f7ae?_0x1d2d08?_0x19f7ae<_0x1d2d08?_0x19f7ae:_0x1d2d08:_0x19f7ae:_0x1d2d08),this['set']('unlinkedAt',_0x19245d['unlinkedAt']||null),this['set']('resolvedAt',_0x19245d['resolvedAt']||null),this['set']('resolvedBy',_0x19245d['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x3e48e8=>!!_0x3e48e8),this['set']('attributes',_0x19245d['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x4a0d63,_0x3574df)=>_0x4a0d63+_0x3574df['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x11a498,id:_0x210d27}=this;this['_repository']['fire'](bt('submitCommentThread',_0x11a498),{'channelId':_0x11a498,'threadId':_0x210d27});}['setUnlinkedAt'](_0x30b0e5){this['_update']({'unlinkedAt':_0x30b0e5});}['resolve']({resolvedAt:_0x23ffd9=new Date(),resolvedBy:_0x5a3ac0=null,isFromAdapter:_0x5de416=!0x1}={}){const _0x42c340=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x293939,id:_0x4d34f7}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x293939),{'channelId':_0x293939,'threadId':_0x4d34f7,'resolvedAt':_0x23ffd9,'resolvedBy':_0x5a3ac0||_0x42c340['id'],'isFromAdapter':_0x5de416});}['reopen']({isFromAdapter:_0x3e5b1f=!0x1}={}){const {channelId:_0x397b26,id:_0x58ab30}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x397b26),{'channelId':_0x397b26,'threadId':_0x58ab30,'isFromAdapter':_0x3e5b1f});}['setContext'](_0x3bce8b){this['context']||this['_update']({'context':_0x3bce8b});}['setAttribute'](_0xa6745c,_0x47253b){const _0x4dcefd=It(this['attributes']);At(_0x4dcefd,_0xa6745c,_0x47253b),this['_update']({'attributes':_0x4dcefd});}['removeAttribute'](_0x212436){const _0x2b4706=It(this['attributes']);yt(_0x2b4706,_0x212436),this['_update']({'attributes':_0x2b4706});}['remove']({isFromAdapter:_0x4cd09a=!0x1}={}){const {channelId:_0x5c482e,id:_0x40ea28}=this;this['_repository']['fire'](bt('removeCommentThread',_0x5c482e),{'channelId':_0x5c482e,'threadId':_0x40ea28,'isFromAdapter':_0x4cd09a});}['attachTo'](_0x4df439){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x4df439});}['addComment'](_0x5a896f){const {channelId:_0x2f7fcc,id:_0x31946a}=this;this['_repository']['fire'](bt('addComment',_0x2f7fcc,_0x31946a),Object['assign']({'channelId':_0x2f7fcc,'threadId':_0x31946a},_0x5a896f));}['getComment'](_0x1b00af){if('string'!=typeof _0x1b00af)throw new _0x4813ff('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x1b00af});return this['comments']['get'](_0x1b00af);}['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'](_0x2ba409=>_0x2ba409['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5474dd){return this['listenTo'](_0x5474dd,'change:authoredAt',()=>{const _0x455da6=this['_findOptimalIndex'](_0x5474dd),_0x4f86a5=this['comments'];_0x455da6-0x1!=_0x4f86a5['getIndex'](_0x5474dd)&&_0x455da6+0x1!=_0x4f86a5['getIndex'](_0x5474dd)&&(this['_remove'](_0x5474dd),this['_add'](_0x5474dd));}),this['comments']['add'](_0x5474dd,this['_findOptimalIndex'](_0x5474dd));}['_update'](_0x29e069){const {channelId:_0xae2cf,id:_0x2627c4}=this;this['_repository']['fire'](bt('updateCommentThread',_0xae2cf),{..._0x29e069,'channelId':_0xae2cf,'threadId':_0x2627c4});}['_remove'](_0x2d4fda){return this['stopListening'](_0x2d4fda),_0x2d4fda['destroy'](),this['comments']['remove'](_0x2d4fda);}['_findOptimalIndex'](_0x2064a2){const _0x39f9f6=this['comments']['find'](_0x22b0b1=>new Date(_0x22b0b1['authoredAt'])['getTime']()>new Date(_0x2064a2['authoredAt'])['getTime']());return _0x39f9f6?this['comments']['getIndex'](_0x39f9f6):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
- _0x2621e6(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3655a1,_0x3ad2f3){super();const _0x199bac=_0x3655a1['context']['plugins']['get'](it)['me'],_0x873f6b=_0x3655a1['getCommentThread'](_0x3ad2f3['threadId']),_0x26f149=0x0===_0x873f6b['comments']['length'],_0x2acd14=_0x199bac===_0x3ad2f3['author'];this['id']=_0x3ad2f3['id'],this['threadId']=_0x3ad2f3['threadId'],this['author']=_0x3ad2f3['author'],this['creator']=_0x3ad2f3['creator'],this['isExternal']=Boolean(_0x3ad2f3['attributes']&&_0x3ad2f3['attributes']['@external']),this['set']('content',_0x3ad2f3['content']),this['createdAt']=_0x3ad2f3['createdAt']||new Date(),this['set']('authoredAt',_0x3ad2f3['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x873f6b,'resolvedAt'),this['set']('attributes',_0x3ad2f3['attributes']||{}),this['bind']('isEditable')['to'](_0x3655a1,'_permissions',()=>{const _0x813f00=_0x3655a1['getPermissions'](_0x873f6b['channelId'])['write'],_0x2704ab=_0x3655a1['getPermissions'](_0x873f6b['channelId'])['modifyAll'];return _0x2acd14&&_0x813f00||!_0x2acd14&&_0x2704ab;}),this['bind']('isRemovable')['to'](_0x873f6b,'isRemovable',_0x3655a1,'_permissions',_0x30304d=>{const _0x198b02=_0x3655a1['getPermissions'](_0x873f6b['channelId'])['write'],_0x12fe9b=_0x3655a1['getPermissions'](_0x873f6b['channelId'])['modifyAll'];return _0x2acd14&&_0x198b02||_0x30304d&&_0x26f149||!_0x2acd14&&_0x12fe9b&&!_0x26f149;}),this['bind']('isReadOnly')['to'](_0x873f6b,'isReadOnly'),this['_repository']=_0x3655a1;}get['weight'](){return Math['max'](function(_0x59dd37){const _0x1d1e5f=document['createElement']('div');return _0x1d1e5f['innerHTML']=_0x59dd37,_0x1d1e5f['textContent']['length'];}(this['content']),0xc8);}['update'](_0x532abd){const {threadId:_0x4fdcc3,id:_0x45f0f9}=this;if(!this['_repository']['hasCommentThread'](_0x4fdcc3))throw new _0x4813ff('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x177531}=this['_repository']['getCommentThread'](_0x4fdcc3);this['_repository']['fire'](bt('updateComment',_0x177531,_0x4fdcc3),{'channelId':_0x177531,'threadId':_0x4fdcc3,'commentId':_0x45f0f9,..._0x532abd});}['setAttribute'](_0x2d63bc,_0x8108fc){const _0x4f535e=It(this['attributes']);At(_0x4f535e,_0x2d63bc,_0x8108fc),this['update']({'attributes':_0x4f535e});}['removeAttribute'](_0x352d24){const _0x47a2ee=It(this['attributes']);yt(_0x47a2ee,_0x352d24),this['update']({'attributes':_0x47a2ee});}['remove'](_0x10daf0={}){if(!_0x10daf0['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x552fc8,id:_0x521f05}=this;if(!this['_repository']['hasCommentThread'](_0x552fc8))throw new _0x4813ff('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0xae0d24}=this['_repository']['getCommentThread'](_0x552fc8);this['_repository']['fire'](bt('removeComment',_0xae0d24,_0x552fc8),{'channelId':_0xae0d24,'threadId':_0x552fc8,'commentId':_0x521f05,..._0x10daf0});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x3cca4c,..._0xf92295){for(const _0x22a184 of _0xf92295)void 0x0!==_0x22a184&&(_0x3cca4c+=':'+String(_0x22a184));return _0x3cca4c;}class J extends _0x2663db{['refresh'](){const _0x55fe2d=this['editor']['model']['document']['selection'];for(const _0x5c2698 of _0x55fe2d['getRanges']())if(this['_hasContent'](_0x5c2698))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x6244a=_0x2d4b73()}={}){const _0x286607=this['editor']['model'],_0x53b94e=[];for(const _0x872099 of _0x286607['document']['selection']['getRanges']())this['_hasContent'](_0x872099)&&_0x53b94e['push'](this['_trimToContent'](_0x872099));_0x286607['change'](_0x29899a=>{for(const _0x13cbc2 of _0x53b94e){const _0x1b2df3=_0x2d4b73()['substr'](0x1,0x5),_0x1d4e64='comment:'+_0x6244a+':'+_0x1b2df3;_0x29899a['addMarker'](_0x1d4e64,{'range':_0x13cbc2,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3cda9c){for(const _0x275eba of _0x3cda9c['getItems']())if(this['_itemIsContent'](_0x275eba))return!0x0;return!0x1;}['_itemIsContent'](_0x3fe677){return _0x3fe677['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3fe677)&&!_0x3fe677['is']('element','tableCell');}['_trimToContent'](_0x5c1d21){const _0x14797b=_0x17dbe4=>!this['_itemIsContent'](_0x17dbe4['item']),_0x4342d4=_0x5c1d21['start']['getLastMatchingPosition'](_0x14797b),_0x16bc1b=_0x5c1d21['end']['getLastMatchingPosition'](_0x14797b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x4342d4,_0x16bc1b);}}class P extends _0x44c3b9{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a9138){super(_0x2a9138),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x12363d=this['editor'],_0x4c56b7=_0x12363d['model']['document']['selection'],_0x3f7044=_0x51b2e8(()=>this['refreshSelectedViews'](),0xa);_0x4c56b7['on']('change:range',(_0x483407,_0x1a16c7)=>{_0x1a16c7['directChange']&&(_0x3f7044['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x12363d['editing']['view']['document'],'change:isFocused',(_0xc31cea,_0x21ac2a,_0x19c6cd)=>{_0x19c6cd&&_0x3f7044();}),this['listenTo'](_0x12363d['ui']['focusTracker'],'change:isFocused',(_0x2984dd,_0x566823,_0x42cb7d)=>{_0x42cb7d||_0x12363d['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x30ae20=>this['_editorAnnotationsData']['has'](_0x30ae20['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0xe63179){if(this['_editorAnnotations']['has'](_0xe63179['view']))return;this['_editorAnnotations']['add'](_0xe63179['view']),this['editor']['ui']['focusTracker']['add'](_0xe63179['view']['element']);const _0x2d03f4=this['editor']['plugins']['get'](O);this['listenTo'](_0x2d03f4['collection'],'remove',(_0x395a2c,_0x2e326e)=>{this['editor']['ui']['focusTracker']['remove'](_0x2e326e['view']['element']),this['_editorAnnotations']['delete'](_0x2e326e['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x3787fa){if('function'!=typeof _0x3787fa)throw new _0x4813ff('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x3787fa);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x596bff,annotations:_0x1dc49f}){const _0xce22f3=[],_0x54276c=this['editor']['model']['document']['selection'],_0x6c219d=Array['from'](_0x54276c['getRanges']());for(const [_0x216c60,_0xd4e35d]of this['_editorAnnotationsData']){const _0x23e96f=_0xa65c95(_0xd4e35d),_0x3fd2c5=_0x1dc49f['getByInnerView'](_0x216c60);_0x23e96f&&_0x3fd2c5&&_0xce22f3['push']({'annotation':_0x3fd2c5,'range':_0x23e96f});}function _0xa65c95(_0x28bb54){for(const _0x1e349 of _0x28bb54)for(const _0x1220b9 of _0x6c219d)if(_0x1e349['containsRange'](_0x1220b9,!_0x54276c['isCollapsed']))return _0x1e349;return null;}return _0xce22f3['sort']((_0x4578ed,_0x2aec95)=>{const _0x4cdc72=_0x4578ed['range'],_0x2e3ada=_0x2aec95['range'];if(!_0x4cdc72['isEqual'](_0x2e3ada)){if(_0x4cdc72['containsRange'](_0x2e3ada,!0x0))return 0x1;if(_0x2e3ada['containsRange'](_0x4cdc72,!0x0))return-0x1;}return _0x4578ed['annotation']==_0x596bff?-0x1:_0x2aec95['annotation']==_0x596bff?0x1:0x0;})['map'](_0x11e121=>_0x11e121['annotation']);}get['_editorAnnotationsData'](){const _0x167bfa=new Map();for(const _0x28e7c6 of Array['from'](this['_dataCollectors']))for(const [_0x158238,_0x589b3e]of _0x28e7c6())_0x167bfa['set'](_0x158238,_0x589b3e);return _0x167bfa;}}class st extends _0x44c3b9{['afterInit'](){const _0x22766b=this['editor'];if(!_0x22766b['plugins']['has']('RestrictedEditingModeEditing'))return;_0x22766b['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x44c3b9{constructor(_0x5b9e9c){super(_0x5b9e9c),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x17868e=this['editor'],_0x278baa=_0x17868e['commands']['get']('importWord'),_0x5e753b=_0x17868e['plugins']['get'](it);_0x278baa&&(_0x278baa['on']('execute',(_0x332115,[,_0x37a66b])=>{_0x37a66b['collaboration_features']={'comments':!0x0,'user_id':_0x5e753b['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x278baa,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x2f5594,_0x20dd1a){const {comment_threads:_0x18c33a}=_0x20dd1a;_0x18c33a&&_0x18c33a['forEach'](({thread_id:_0x57abad,comments:_0x3d1b53,is_resolved:_0x4d27c9})=>{const _0x5dd756=new Date(),_0x327889=_0x3d1b53['map'](({author:_0x3ddb99,content:_0x3c561c,created_at:_0x3971f2})=>({'content':_0x3c561c,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x5dd756,'attributes':{'@external':{'authorName':_0x3ddb99,'createdAt':_0x3971f2?new Date(_0x3971f2):new Date(),'source':'importWord'}}})),_0x3daea5=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3daea5,'threadId':_0x57abad,'comments':_0x327889,'resolvedAt':_0x4d27c9?_0x5dd756:null});});}}class at extends _0x44c3b9{constructor(_0x404c51){super(_0x404c51),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x983864=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x983864,'contentInsertion',(_0x4b9c68,_0x5c5ce4)=>this['_removeMarkersWithoutThreads'](_0x5c5ce4['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x40251f){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x40251f;const _0x455532=this['editor']['plugins']['get']('CommentsRepository');for(const _0x53b012 of _0x40251f['keys']()){const [_0x1e5e02,_0x65ebcb]=_0x53b012['split'](':');'comment'!=_0x1e5e02||_0x455532['hasCommentThread'](_0x65ebcb)||_0x40251f['delete'](_0x53b012);}return _0x40251f;}['_registerMarkerInClipboardPipeline'](){const _0x2c233e=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x30cfbe=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x30cfbe&&_0x2c233e['_registerMarkerToCopy']('comment',_0x30cfbe);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x175322){switch(_0x175322){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 _0x44c3b9{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x245d95,_0x2df2ea)=>{if(!_0x2df2ea['options']['showCommentHighlights'])return null;if(_0x2df2ea['options']['ignoreResolvedComments']){const {id:_0x3bc13d}=er(_0x245d95['markerName']),_0x3011a1=this['editor']['plugins']['get'](o);if(_0x3011a1['getCommentThread'](_0x3bc13d)?.['isResolved']&&_0x245d95['item'])return _0x2df2ea['consumable']['consume'](_0x245d95['item'],'addMarker:'+_0x245d95['markerName']),_0x2df2ea['consumable']['consume'](_0x245d95['item'],'removeMarker:'+_0x245d95['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x517257=>{_0x517257['on']('addMarker:comment',(_0x52a253,_0x4b8e7d,_0x4d7ed8)=>{if(!_0x4d7ed8['options']['showCommentHighlights'])return;const _0x265799=_0x4b8e7d['item'];if(!_0x265799)return;const _0x56b651=_0x4d7ed8['mapper']['toViewElement'](_0x265799);this['editor']['model']['schema']['isObject'](_0x265799)&&_0x56b651&&!_0x56b651['getCustomProperty']('widget')&&_0x56b651['is']('containerElement')&&_0x2ad6b4(_0x56b651,_0x4d7ed8['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b0894,{writer:_0x43e322,options:_0x43f706})=>{if(!_0x43f706['showCommentHighlights'])return null;const _0x1e0d2b=_0x43e322['createContainerElement']('div'),_0x22a99a=_0x43e322['createEmptyElement']('hr');return _0x43e322['addClass']('ck-horizontal-line',_0x1e0d2b),_0x43e322['insert'](_0x43e322['createPositionAt'](_0x1e0d2b,0x0),_0x22a99a),_0x1e0d2b;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x3af8a5,{writer:_0x3fa047,options:_0x53cb8c})=>{if(!_0x53cb8c['showCommentHighlights'])return null;const _0x5aa168=_0x3fa047['createContainerElement']('span'),_0x4a0fc7=_0x3fa047['createEmptyElement']('img');return _0x3fa047['addClass']('image-inline',_0x5aa168),_0x3fa047['insert'](_0x3fa047['createPositionAt'](_0x5aa168,0x0),_0x4a0fc7),_0x5aa168;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x11fd7c,{writer:_0x2b6d18,options:_0x3fd579})=>{if(_0x3fd579['showCommentHighlights'])return _0x2b6d18['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0xeba2e4,_0x2d3dd5,_0x45d0a3)=>{_0x45d0a3['options']['showCommentHighlights']&&_0xeba2e4['stop']();},{'priority':'high'});}}class r extends _0x44c3b9{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(_0x38ebdd){super(_0x38ebdd),this['set']('isThreadsLoadingPaused',!0x0),_0x38ebdd['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2c977c,_0x28ae5b,_0x36cde5,_0xb027f2)=>{const _0x2ee4e5=_0x38ebdd['plugins']['get'](o),_0x4607e4=_0x36cde5?er(_0x36cde5)['id']:null;_0x38ebdd['model']['change'](()=>{if(_0x4607e4){const _0x4a2921=this['getAllMarkersForId'](_0x4607e4);for(const _0x4d51a3 of _0x4a2921)_0x38ebdd['editing']['reconvertMarker'](_0x4d51a3);}if(_0xb027f2){const {id:_0xc614d4}=er(_0xb027f2),_0x58282=_0x2ee4e5['getCommentThread'](_0xc614d4);if(_0x58282&&_0x58282['unlinkedAt'])return;if(_0x58282&&!_0x58282['isAttached'])return;const _0x580779=this['getAllMarkersForId'](_0xc614d4);for(const _0x331de3 of _0x580779)_0x38ebdd['editing']['reconvertMarker'](_0x331de3);}}),_0x4607e4&&this['scrollToThreadMarker'](_0x4607e4);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x12c3cf=this['editor'],_0x540fd8=_0x12c3cf['plugins']['get'](o),_0x58b760=_0x12c3cf['config']['get']('collaboration.channelId'),_0x4e5ed9=_0x540fd8['getCommentThreads']()['filter'](_0x543ec7=>_0x543ec7['channelId']!==_0x58b760);_0x12c3cf['commands']['add']('addCommentThread',new J(_0x12c3cf)),this['listenTo'](_0x12c3cf,'change:isReadOnly',(_0x5b1699,_0x2f983e,_0x49088d)=>{_0x540fd8['switchReadOnly'](_0x49088d,_0x12c3cf['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x540fd8,ft('addCommentThread',_0x58b760),(_0x3c9462,{threadId:_0x2f5865})=>{const _0x3c4172=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2f5865);_0x3c4172?.['unlinkedAt']&&this['_attachArchivedThread'](_0x2f5865);}),this['listenTo'](_0x540fd8,ft('removeCommentThread',_0x58b760),(_0x3d2038,{threadId:_0x6eaa5d})=>{_0x12c3cf['model']['enqueueChange']({'isUndoable':!0x1},_0x891010=>{const _0x35b8c9=this['getAllMarkersForId'](_0x6eaa5d);for(const _0x2c8d51 of _0x35b8c9)_0x891010['removeMarker'](_0x2c8d51);});}),this['listenTo'](_0x540fd8,ft('resolveCommentThread',_0x58b760),(_0x22f7b2,{threadId:_0x3e3d89})=>{(this['_reconvertMarkers'](_0x3e3d89),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x3e3d89)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x540fd8,ft('reopenCommentThread',_0x58b760),(_0x44033e,{threadId:_0x150130})=>{this['_reconvertMarkers'](_0x150130);},{'priority':'low'}),this['listenTo'](_0x540fd8,ft('addComment',_0x58b760),(_0x29a53e,{threadId:_0x2f84e8,isFromAdapter:_0x2a5f39})=>{const _0x46c14b=this['getAllMarkersForId'](_0x2f84e8);if(_0x2a5f39||0x0==_0x46c14b['length']||!_0x540fd8['hasCommentThread'](_0x2f84e8))return;0x1===_0x540fd8['getCommentThread'](_0x2f84e8)['length']&&_0x12c3cf['model']['enqueueChange']({'isUndoable':!0x1},_0x47a6b8=>{for(const _0x1327ba of _0x46c14b)_0x47a6b8['updateMarker'](_0x1327ba,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4e5ed9);}['afterInit'](){!async function(_0x896219){const _0x582d74=_0x108a7a([0x78,0x38,0x63,0x49,0x4b,0x69,0x71,0x44,0x59,0x79,0x68,0x5a,0x70,0x39,0x6e,0x66,0x73,0x72,0x41,0x52,0x56,0x6b,0x74,0x77,0x61,0x54,0x42,0x34,0x62,0x30,0x58,0x51,0x32,0x45,0x37,0x57,0x4e,0x31,0x46,0x75,0x50,0x6d,0x4f,0x36,0x53,0x6f,0x65,0x47,0x67,0x4d,0x6a,0x43,0x55,0x4c,0x35,0x4a,0x64,0x76,0x6c,0x33,0x48,0x7a]),_0x4ad004=0x7dfde4fb,_0x4604e6=0x7dfa8d33^_0x4ad004,_0x484868=window[_0x108a7a([0x44,0x61,0x74,0x65])][_0x108a7a([0x6e,0x6f,0x77])](),_0x58c517=_0x896219[_0x108a7a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c406a=new window[(_0x108a7a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187e40=>{_0x58c517[_0x108a7a([0x6f,0x6e,0x63,0x65])](_0x108a7a([0x72,0x65,0x61,0x64,0x79]),_0x187e40);}),_0x10de0c={[_0x108a7a([0x6b,0x74,0x79])]:_0x108a7a([0x45,0x43]),[_0x108a7a([0x75,0x73,0x65])]:_0x108a7a([0x73,0x69,0x67]),[_0x108a7a([0x63,0x72,0x76])]:_0x108a7a([0x50,0x2d,0x32,0x35,0x36]),[_0x108a7a([0x78])]:_0x108a7a([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]),[_0x108a7a([0x79])]:_0x108a7a([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]),[_0x108a7a([0x61,0x6c,0x67])]:_0x108a7a([0x45,0x53,0x32,0x35,0x36])},_0x13a9a1=_0x58c517[_0x108a7a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x108a7a([0x67,0x65,0x74])](_0x108a7a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5214ed(){let _0x20d4ff,_0x2be1ee=null,_0x37802a=null;try{if(_0x13a9a1==_0x108a7a([0x47,0x50,0x4c]))return _0x108a7a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20d4ff=_0xd89421(),!_0x20d4ff)return _0x108a7a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20d4ff[_0x108a7a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37802a=_0x15eb5d(_0x20d4ff[_0x108a7a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20d4ff[_0x108a7a([0x6a,0x74,0x69])])),await _0xefc190()?_0x2fb549()?_0x4ed548()?_0x108a7a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x106e97()?(_0x20d4ff[_0x108a7a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x108a7a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2be1ee=_0x45c270(_0x108a7a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20d4ff[_0x108a7a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x108a7a([0x74,0x72,0x69,0x61,0x6c])&&(_0x2be1ee=_0x45c270(_0x108a7a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37a3ff()):_0x108a7a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x108a7a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x108a7a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x108a7a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4ed548(){const _0x370f18=[_0x108a7a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x108a7a([0x74,0x72,0x69,0x61,0x6c])][_0x108a7a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20d4ff[_0x108a7a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x484868/0x3e8:0xe10*_0x4604e6;return _0x20d4ff[_0x108a7a([0x65,0x78,0x70])]<_0x370f18;}function _0x2fb549(){const _0x411662=_0x20d4ff[_0x108a7a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x411662)return!0x1;if(_0x411662[_0x108a7a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x108a7a([0x2a])))return!0x0;if(_0x411662[_0x108a7a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x108a7a([0x43,0x4d,0x54])))return!0x0;if(_0x411662[_0x108a7a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x108a7a([0x52,0x43,0x4d,0x54]))){if(_0x34b11e())return!0x0;if(_0x351d1d()||_0x35b172())return!0x0;}return!0x1;}function _0x106e97(){const _0x24f662=_0x20d4ff[_0x108a7a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24f662||0x0==_0x24f662[_0x108a7a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3bece6}=new URL(window[_0x108a7a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24f662[_0x108a7a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bece6))return!0x0;const _0x40af27=_0x3bece6[_0x108a7a([0x73,0x70,0x6c,0x69,0x74])](_0x108a7a([0x2e]));return _0x24f662[_0x108a7a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c5246=>_0x3c5246[_0x108a7a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x108a7a([0x2a])))[_0x108a7a([0x6d,0x61,0x70])](_0x518cab=>_0x518cab[_0x108a7a([0x73,0x70,0x6c,0x69,0x74])](_0x108a7a([0x2e])))[_0x108a7a([0x73,0x6f,0x6d,0x65])](_0x14eb89=>_0x40af27[_0x108a7a([0x65,0x76,0x65,0x72,0x79])]((_0x19bd62,_0x19f4c2)=>_0x14eb89[_0x19f4c2]===_0x19bd62||_0x14eb89[_0x19f4c2]===_0x108a7a([0x2a])));}function _0x37a3ff(){return _0x2be1ee&&_0x37802a?new window[(_0x108a7a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x99a3bb,_0xd6f2aa)=>{_0x2be1ee[_0x108a7a([0x74,0x68,0x65,0x6e])](_0x99a3bb,_0xd6f2aa),_0x37802a[_0x108a7a([0x74,0x68,0x65,0x6e])](_0x3a1aef=>{_0x3a1aef!=_0x108a7a([0x56,0x61,0x6c,0x69,0x64])&&_0x99a3bb(_0x3a1aef);},_0xd6f2aa);}):_0x2be1ee||_0x37802a||_0x108a7a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15eb5d(_0x54c009,_0x42b610){return new window[(_0x108a7a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d0729=>{if(_0xf10402())return _0x4d0729(_0x108a7a([0x56,0x61,0x6c,0x69,0x64]));_0x1f16c0(),_0x58c517[_0x108a7a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x108a7a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d7b67=!0x1;const _0x465241=_0x2d4b73();function _0x1a9385(_0x4a26de){return!!_0x4a26de&&(typeof _0x4a26de===_0x108a7a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a26de===_0x108a7a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a26de[_0x108a7a([0x74,0x68,0x65,0x6e])]===_0x108a7a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a26de[_0x108a7a([0x63,0x61,0x74,0x63,0x68])]===_0x108a7a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5121d7(_0x1b1d67){_0x10b626(_0x1b1d67)[_0x108a7a([0x74,0x68,0x65,0x6e])](_0x2d628a=>{if(!_0x2d628a||_0x2d628a[_0x108a7a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x108a7a([0x6f,0x6b]))return _0x108a7a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2871b4(_0x4f0b61(_0x465241+_0x42b610))!=_0x2d628a[_0x108a7a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x108a7a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x108a7a([0x56,0x61,0x6c,0x69,0x64]);})[_0x108a7a([0x74,0x68,0x65,0x6e])](_0x605be=>(_0x40ea82(),_0x605be),()=>{const _0x2daf81=_0x5b3a0c();return null==_0x2daf81?(_0x40ea82(),_0x108a7a([0x56,0x61,0x6c,0x69,0x64])):_0x108a7a(_0x484868-_0x2daf81>(0x59f160fb^_0x4ad004)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x108a7a([0x74,0x68,0x65,0x6e])](_0x4d0729)[_0x108a7a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d0729(_0x108a7a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24284f=0x7dcb0a7b^_0x4ad004;function _0x40ea82(){const _0x572aa4=_0x108a7a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2871b4(_0x4f0b61(_0x54c009)),_0x39c585=_0x2bab2d(_0x2871b4(window[_0x108a7a([0x4d,0x61,0x74,0x68])][_0x108a7a([0x63,0x65,0x69,0x6c])](_0x484868/_0x24284f)));window[_0x108a7a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x108a7a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x572aa4,_0x39c585);}function _0x5b3a0c(){const _0x2feb69=_0x108a7a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2871b4(_0x4f0b61(_0x54c009)),_0x1bc0e6=window[_0x108a7a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x108a7a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2feb69);return _0x1bc0e6?window[_0x108a7a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bab2d(_0x1bc0e6),0x10)*_0x24284f:null;}function _0x10b626(_0x54befc){return new window[(_0x108a7a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x150482,_0xf99107)=>{_0x54befc[_0x108a7a([0x74,0x68,0x65,0x6e])](_0x150482,_0xf99107),window[_0x108a7a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf99107,0x7dfc303b^_0x4ad004);});}}_0x58c517[_0x108a7a([0x6f,0x6e])](_0x108a7a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x256950,_0xf9ff28)=>{if(_0xf9ff28[0x0]!=_0x54c009)return _0x4d0729(_0x108a7a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf9ff28[0x1]={..._0xf9ff28[0x1],[_0x108a7a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x465241};},{[_0x108a7a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x108a7a([0x68,0x69,0x67,0x68])}),_0x58c517[_0x108a7a([0x6f,0x6e])](_0x108a7a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a1ef7=>{_0x1a9385(_0x2a1ef7[_0x108a7a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d7b67=!0x0,_0x5121d7(_0x2a1ef7[_0x108a7a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x108a7a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x108a7a([0x6c,0x6f,0x77])}),_0x1c406a[_0x108a7a([0x74,0x68,0x65,0x6e])](()=>{_0x1d7b67||_0x4d0729(_0x108a7a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf10402(){return _0x58c517[_0x108a7a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x108a7a([0x76,0x69,0x65,0x77])][_0x108a7a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x108a7a([0x61,0x75,0x74,0x6f]);}function _0x1f16c0(){_0x58c517[_0x108a7a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x108a7a([0x76,0x69,0x65,0x77])][_0x108a7a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x108a7a([0x61,0x75,0x74,0x6f]);}}function _0x45c270(_0x1bc5b5){const _0x31cf20=[new window[(_0x108a7a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35150e=>setTimeout(_0x35150e,0x7df4da37^_0x4ad004)),_0x1c406a[_0x108a7a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x108a7a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1801a7=>{let _0x569e48=0x0;_0x58c517[_0x108a7a([0x6d,0x6f,0x64,0x65,0x6c])][_0x108a7a([0x6f,0x6e])](_0x108a7a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x264d72,_0x2e49dc)=>{_0x2e49dc[0x0][_0x108a7a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x569e48++,_0x569e48==(0x7dfde503^_0x4ad004)&&(_0x1801a7(),_0x264d72[_0x108a7a([0x6f,0x66,0x66])]());});}))];return window[_0x108a7a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x108a7a([0x72,0x61,0x63,0x65])](_0x31cf20)[_0x108a7a([0x74,0x68,0x65,0x6e])](()=>_0x1bc5b5);}async function _0x32e885(){await _0x1c406a,_0x58c517[_0x108a7a([0x6d,0x6f,0x64,0x65,0x6c])][_0x108a7a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1fd72e,_0x58c517[_0x108a7a([0x6d,0x6f,0x64,0x65,0x6c])][_0x108a7a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1fd72e,_0x58c517[_0x108a7a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x108a7a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34b11e(){return _0x4baa08(_0x108a7a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x12db90(_0x108a7a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x108a7a([0x73,0x74,0x61,0x74,0x65])]==_0x108a7a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x351d1d(){return _0x4baa08(_0x108a7a([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 _0x35b172(){return _0x4baa08(_0x108a7a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3d8376(_0x165d03){const _0x496ce9=_0x21e0a2();_0x58c517[_0x496ce9]=_0x108a7a([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x165d03,_0x165d03!=_0x108a7a([0x56,0x61,0x6c,0x69,0x64])&&_0x32e885();}function _0x21e0a2(){const _0x4cdb5f=window[_0x108a7a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x108a7a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x108a7a([0x6e,0x6f,0x77])]())[_0x108a7a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x108a7a([0x2e]),'');let _0x2612d1=_0x108a7a([0x78]);for(let _0x1279d4=0x0;_0x1279d4<_0x4cdb5f[_0x108a7a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1279d4+=0x2){let _0x570d48=window[_0x108a7a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cdb5f[_0x108a7a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1279d4,_0x1279d4+0x2));_0x570d48>=_0x582d74[_0x108a7a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x570d48-=_0x582d74[_0x108a7a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2612d1+=_0x582d74[_0x570d48];}return _0x2612d1;}function _0xd89421(){const _0x38a4b8=_0x13a9a1[_0x108a7a([0x73,0x70,0x6c,0x69,0x74])](_0x108a7a([0x2e]));if(0x3!=_0x38a4b8[_0x108a7a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe698c(_0x38a4b8[0x1]);function _0xe698c(_0x3b9c60){const _0x5a445b=_0x32019d(_0x3b9c60);return _0x5a445b&&_0x506306()?_0x5a445b:null;function _0x506306(){const _0x5ed0a8=_0x5a445b[_0x108a7a([0x6a,0x74,0x69])],_0x23820d=window[_0x108a7a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ed0a8[_0x108a7a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ed0a8[_0x108a7a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x447624={..._0x5a445b,[_0x108a7a([0x6a,0x74,0x69])]:_0x5ed0a8[_0x108a7a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ed0a8[_0x108a7a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x447624[_0x108a7a([0x76,0x63])],_0x4f0b61(_0x447624)==_0x23820d;}}}async function _0xefc190(){let _0x54a186=!0x0;try{const _0x155db6=_0x13a9a1[_0x108a7a([0x73,0x70,0x6c,0x69,0x74])](_0x108a7a([0x2e])),[_0x419273,_0x2a8085,_0x50f353]=_0x155db6;return _0x440512(_0x419273),await _0x46fcfa(_0x419273,_0x2a8085,_0x50f353),_0x54a186;}catch{return!0x1;}function _0x440512(_0x4ad6a4){const _0x1798a0=_0x32019d(_0x4ad6a4);_0x1798a0&&_0x1798a0[_0x108a7a([0x61,0x6c,0x67])]==_0x108a7a([0x45,0x53,0x32,0x35,0x36])||(_0x54a186=!0x1);}async function _0x46fcfa(_0x955a27,_0x39e52c,_0x5425e5){const _0x2fcc40=window[_0x108a7a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x108a7a([0x66,0x72,0x6f,0x6d])](_0x3ae551(_0x5425e5),_0x351402=>_0x351402[_0x108a7a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x554273=new window[(_0x108a7a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x108a7a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x955a27+_0x108a7a([0x2e])+_0x39e52c),_0x228260=window[_0x108a7a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x108a7a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x228260)return;const _0x17b3f2=await _0x228260[_0x108a7a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x108a7a([0x6a,0x77,0x6b]),_0x10de0c,{[_0x108a7a([0x6e,0x61,0x6d,0x65])]:_0x108a7a([0x45,0x43,0x44,0x53,0x41]),[_0x108a7a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x108a7a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x108a7a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x228260[_0x108a7a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x108a7a([0x6e,0x61,0x6d,0x65])]:_0x108a7a([0x45,0x43,0x44,0x53,0x41]),[_0x108a7a([0x68,0x61,0x73,0x68])]:{[_0x108a7a([0x6e,0x61,0x6d,0x65])]:_0x108a7a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x17b3f2,_0x2fcc40,_0x554273)||(_0x54a186=!0x1);}}function _0x32019d(_0xd0c4f8){return _0xd0c4f8[_0x108a7a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x108a7a([0x65,0x79]))?JSON[_0x108a7a([0x70,0x61,0x72,0x73,0x65])](_0x3ae551(_0xd0c4f8)):null;}function _0x3ae551(_0x3841fe){return window[_0x108a7a([0x61,0x74,0x6f,0x62])](_0x3841fe[_0x108a7a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x108a7a([0x2b]))[_0x108a7a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x108a7a([0x2f])));}function _0x4f0b61(_0x2d5736){let _0x1739bf=0x1505;function _0x233fac(_0x21389b){for(let _0x52e5b5=0x0;_0x52e5b5<_0x21389b[_0x108a7a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52e5b5++){const _0x3f3ad7=_0x21389b[_0x108a7a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x52e5b5);_0x1739bf=(_0x1739bf<<0x5)+_0x1739bf+_0x3f3ad7,_0x1739bf&=_0x1739bf;}}function _0x5882bb(_0x3342df){Array[_0x108a7a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3342df)?_0x3342df[_0x108a7a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5882bb):_0x3342df&&typeof _0x3342df==_0x108a7a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x108a7a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3342df)[_0x108a7a([0x73,0x6f,0x72,0x74])]()[_0x108a7a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x372f3d,_0x5536f0])=>{_0x233fac(_0x372f3d),_0x5882bb(_0x5536f0);}):_0x233fac(window[_0x108a7a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3342df));}return _0x5882bb(_0x2d5736),_0x1739bf>>>0x0;}function _0x2871b4(_0x119b20){return _0x119b20[_0x108a7a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x108a7a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x108a7a([0x30]));}function _0x2bab2d(_0xaf5fd1){return _0xaf5fd1[_0x108a7a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x108a7a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x108a7a([0x6a,0x6f,0x69,0x6e])]('');}function _0x4baa08(_0x36ded8){return _0x58c517[_0x108a7a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x108a7a([0x68,0x61,0x73])](_0x36ded8);}function _0x12db90(_0x2873bd){return _0x58c517[_0x108a7a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x108a7a([0x67,0x65,0x74])](_0x2873bd);}function _0x1fd72e(){}function _0x108a7a(_0x18a086){return _0x18a086['map'](_0x57f522=>String['fromCharCode'](_0x57f522))['join']('');}_0x3d8376(await _0x5214ed());}(this);}['destroy'](){const _0x197d93=this['editor']['plugins']['get'](o),_0x33886b=this['editor']['config']['get']('collaboration.channelId');for(const _0x12aa80 of _0x197d93['getCommentThreads']({'channelId':_0x33886b}))_0x197d93['_detachCommentThread'](_0x12aa80['id']),_0x197d93['_threads']['delete'](_0x12aa80['id']);super['destroy']();}['hasMarkerForId'](_0xc7a4a7){return this['getAllMarkersForId'](_0xc7a4a7)['length']>0x0;}['getAllMarkersForId'](_0x284901){const _0x1f1808=[];for(const _0x47814f of this['editor']['model']['markers'])_0x47814f['name']['startsWith']('comment:'+_0x284901)&&_0x1f1808['push'](_0x47814f);return _0x1f1808;}['scrollToThreadMarker'](_0x34148e){const _0x44c162=this['_getTargetForId'](_0x34148e);_0x44c162&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x34148e&&rt({'target':_0x44c162[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x406eff){this['editor']['model']['change'](()=>{for(const _0x2c1258 of this['getAllMarkersForId'](_0x406eff))this['editor']['editing']['reconvertMarker'](_0x2c1258);});}['_attachArchivedThread'](_0x51c06f){const _0x10013b=this['editor']['plugins']['get'](o),_0x1f71a0=this['editor']['plugins']['get'](P),_0x5b3eac=_0x10013b['getCommentThread'](_0x51c06f);if(!_0x5b3eac['isAttached']){const _0x5209a1=_0x5b3eac['attachTo'](()=>this['_getTargetForId'](_0x5b3eac['id']));_0x1f71a0['registerAnnotation'](_0x5209a1),_0x5b3eac['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1dc354=this['editor'],_0x46eaeb=_0x1dc354['plugins']['get'](it);_0x1dc354['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x55437b,_0x34d629)=>{const {id:_0x108a3c}=er(_0x55437b['markerName']),_0x53387d=_0x1dc354['plugins']['get'](o)['getCommentThread'](_0x108a3c),_0x22d913=this['activeMarker']&&er(this['activeMarker'])['id']===_0x108a3c;let _0x3cfa33;if(_0x53387d&&_0x53387d['isResolved']&&!_0x22d913&&_0x55437b['item'])return _0x34d629['consumable']['consume'](_0x55437b['item'],'addMarker:'+_0x55437b['markerName']),_0x34d629['consumable']['consume'](_0x55437b['item'],'removeMarker:'+_0x55437b['markerName']),null;const _0x193bc5=['ck-comment-marker'];return _0x22d913&&_0x193bc5['push']('ck-comment-marker--active'),_0x3cfa33=_0x53387d?.['length']?_0x53387d['comments']['first']['author']['id']:_0x46eaeb['me']['id'],{'classes':_0x193bc5,'attributes':{'data-comment':_0x108a3c,'data-author-id':_0x3cfa33}};}}),_0x1dc354['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x17ff08,{options:_0x430bb3})=>{if(_0x430bb3['showCommentHighlights'])return null;const _0x551b36=_0x1dc354['plugins']['get'](o),_0x38e793=_0x1dc354['model']['markers']['get'](_0x17ff08),{id:_0x458af7,part:_0x15272f}=er(_0x17ff08);return _0x38e793&&!_0x38e793['affectsData']||_0x430bb3['ignoreResolvedComments']&&_0x551b36['getCommentThread'](_0x458af7)?.['isResolved']?null:{'group':'comment','name':_0x15272f?_0x458af7+':'+_0x15272f:_0x458af7};}}),_0x1dc354['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2c3035,{writer:_0x661790})=>_0x661790['createElement']('$marker',{'data-name':'comment:'+_0x2c3035['getAttribute']('id')})}),_0x1dc354['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x5cfa18=this['editor'],_0x2b66f9=_0x5cfa18['plugins']['get'](o),_0x4ea182=new Set(),_0x4b892c=new Set();_0x5cfa18['model']['document']['registerPostFixer'](_0x36d68f=>{let _0x49312c=!0x1;for(const {name:_0x4ec165,data:_0x2300bf}of _0x5cfa18['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1ddd48,id:_0x4b8e1a}=er(_0x4ec165);let _0x11b22b=_0x2300bf['newRange'];if('comment'!==_0x1ddd48||!_0x11b22b)continue;const _0x545bcb='$graveyard'===_0x11b22b['root']['rootName'];_0x545bcb||(_0x11b22b=dt(_0x11b22b,_0x5cfa18['model']),!_0x11b22b||_0x11b22b['isCollapsed']||!_0x2300bf['newRange']||_0x11b22b['isEqual'](_0x2300bf['newRange']))?_0x5cfa18['model']['hasContent'](_0x11b22b)&&!_0x545bcb?this['isThreadsLoadingPaused']?_0x4ea182['add'](_0x4ec165):this['_handleThreadMarker'](_0x4ec165,_0x4b8e1a):(_0x4b892c['add'](_0x4ec165),_0x4ea182['delete'](_0x4ec165),_0x36d68f['removeMarker'](_0x4ec165),_0x49312c=!0x0):(_0x36d68f['updateMarker'](_0x4ec165,{'range':_0x11b22b}),_0x49312c=!0x0);}return _0x49312c;}),this['on']('change:isThreadsLoadingPaused',(_0x301d31,_0x1fe75b,_0x3a34d4)=>{if(!_0x3a34d4&&_0x4ea182['size'])for(const _0x5736d0 of _0x4ea182){const {id:_0x3fa89d}=er(_0x5736d0);_0x4ea182['delete'](_0x5736d0),_0x5cfa18['model']['markers']['get'](_0x5736d0)&&this['_handleThreadMarker'](_0x5736d0,_0x3fa89d);}}),this['listenTo'](_0x5cfa18['model']['document'],'change',()=>{for(const {name:_0x5ba757,data:{newRange:_0x2ffed8}}of _0x5cfa18['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5ebbb7,id:_0x8fcaf3}=er(_0x5ba757);if('comment'!==_0x5ebbb7)continue;const _0x355cca=_0x2b66f9['getCommentThread'](_0x8fcaf3),_0x42ab3f=this['hasMarkerForId'](_0x8fcaf3);_0x355cca&&(!_0x355cca['_hasTargetInContent']&&_0x2ffed8&&_0x5cfa18['editing']['view']['once']('render',()=>{const _0x2f12f7=_0x5cfa18['plugins']['get'](O),_0x56a776=_0x2b66f9['_threadToController']['get'](_0x355cca)['view'];_0x2f12f7['getByInnerView'](_0x56a776)['refreshVisibility']();},{'priority':'low'}),_0x355cca['_hasTargetInContent']=_0x42ab3f||!!_0x2ffed8),_0x2ffed8||(_0x4b892c['add'](_0x5ba757),_0x4ea182['delete'](_0x5ba757));}for(const _0x2eb4a6 of _0x4b892c){const {id:_0x2586d6}=er(_0x2eb4a6),_0x3fb850=_0x2b66f9['getCommentThread'](_0x2586d6);if(_0x4ea182['delete'](_0x2eb4a6),!_0x3fb850)continue;const _0x6b0120=this['hasMarkerForId'](_0x2586d6);_0x6b0120||_0x3fb850['isSubmitted']?_0x6b0120||_0x3fb850['unlinkedAt']||_0x3fb850['setUnlinkedAt'](new Date()):_0x3fb850['remove']();}_0x4b892c['clear']();});}['_handleInitialThreads'](_0x1b33c4){_0x1b33c4['forEach'](_0x4a1e61=>{_0x4a1e61['unlinkedAt']&&this['_attachArchivedThread'](_0x4a1e61['id']);});}['_getTargetForId'](_0x30c843){const _0x580bc9=this['editor'],_0x59afee=this['getAllMarkersForId'](_0x30c843);return et(_0x580bc9['editing'],_0x59afee);}['_getTextContext'](_0x56a4c3){const _0x5bf472=this['getAllMarkersForId'](_0x56a4c3);let _0x15ad6='',_0x1da606=!0x1;for(const _0x497386 of _0x5bf472){const _0x313527=_0x497386['getRange']();for(const _0x2f7391 of Array['from'](_0x313527['getItems']()))_0x2f7391['is']('$textProxy')?(_0x15ad6&&_0x1da606&&(_0x15ad6+='\x20',_0x1da606=!0x1),_0x15ad6+=_0x2f7391['data']):_0x1da606=!0x0;_0x1da606=!0x0;}return _0x15ad6['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x15fff1,_0x1cdf80){const _0x1d8dfa=this['editor'],_0x4cdd6e=_0x1d8dfa['plugins']['get'](o);let _0x5359a5=_0x4cdd6e['getCommentThread'](_0x1cdf80);const _0xb38578=_0x1d8dfa['config']['get']('collaboration.channelId'),_0x5b45d8=_0x1d8dfa['plugins']['get'](P);if(_0x5359a5&&(_0x5359a5['unlinkedAt']&&_0x5359a5['setUnlinkedAt'](null),_0x5359a5['isAttached']))return _0x5359a5;return!this['getAllMarkersForId'](_0x1cdf80)[0x0]['managedUsingOperations']?_0x1d8dfa['editing']['view']['once']('render',()=>{if(_0x4cdd6e['getCommentThread'](_0x1cdf80))return;const _0x130a54=_0x1d8dfa['plugins']['get'](O);_0x5359a5=_0x4cdd6e['openNewCommentThread']({'channelId':_0xb38578,'threadId':_0x1cdf80,'target':()=>this['_getTargetForId'](_0x1cdf80),'context':{'type':'text','value':this['_getTextContext'](_0x1cdf80)}});const _0x131b42=_0x4cdd6e['_threadToController']['get'](_0x5359a5)['view'],_0x2897ca=_0x130a54['getByInnerView'](_0x131b42);_0x2897ca&&_0x5b45d8['registerAnnotation'](_0x2897ca);},{'priority':'low'}):_0x4cdd6e['fetchCommentThread']({'channelId':_0xb38578,'threadId':_0x1cdf80})['then'](_0x17fc1b=>{if('destroyed'!==_0x1d8dfa['state']){if(_0x5359a5=_0x17fc1b,_0x5359a5&&!_0x5359a5['isAttached']){const _0x2a14f7=_0x5359a5['attachTo'](()=>this['_getTargetForId'](_0x1cdf80));_0x5b45d8['registerAnnotation'](_0x2a14f7),_0x5359a5['isResolved']&&this['_reconvertMarkers'](_0x1cdf80);}else{if(!_0x5359a5){const _0x47b016=this['getAllMarkersForId'](_0x1cdf80);_0x1d8dfa['model']['change'](_0xd781cb=>{for(const _0x1c46d5 of _0x47b016)_0xd781cb['removeMarker'](_0x1c46d5);});}}}}),_0x5359a5;}['_handleThreadMarker'](_0x5a7be9,_0x2382a2){const _0x47fe09=this['_attachMarkerToThread'](_0x5a7be9,_0x2382a2);_0x47fe09&&!_0x47fe09['context']&&_0x47fe09['setContext']({'type':'text','value':this['_getTextContext'](_0x2382a2)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4aaeea=this['editor'];ot(_0x4aaeea['model'],({left:_0x27fda6,entered:_0x373481})=>{for(const _0x529683 of _0x27fda6)if(mt(_0x529683)){_0x4aaeea['ui']['ariaLiveAnnouncer']['announce'](E(_0x4aaeea['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x70162d of _0x373481)if(mt(_0x70162d)){_0x4aaeea['ui']['ariaLiveAnnouncer']['announce'](E(_0x4aaeea['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x5b26b4)));break;}});}}function ft(_0x5cc9e7,_0x5a6249){return _0x5a6249?_0x5cc9e7+':'+_0x5a6249:_0x5cc9e7;}function er(_0x2efe4f){const _0xea3129=_0x2efe4f['split'](':');return{'group':_0xea3129[0x0],'id':_0xea3129[0x1],'part':_0xea3129[0x2]};}function dt(_0x527975,_0x50e714){const _0x2ed58a=_0x50e714['schema'],_0x42f235=_0x50e714['createRange'](_0x527975['start']);for(const _0x3218fd of _0x527975['getWalker']()){const {type:_0x25cf84,item:_0x2e3b8b,nextPosition:_0x53092a}=_0x3218fd;if('text'===_0x25cf84||_0x2ed58a['isObject'](_0x2e3b8b)){const _0x2e6b01=_0x50e714['createPositionBefore'](_0x2e3b8b);_0x42f235['isCollapsed']&&(_0x42f235['start']=_0x2e6b01),_0x42f235['end']=_0x53092a;}}return _0x42f235;}function mt(_0x4f48f6){return'comment'===er(_0x4f48f6['name'])['group'];}class i extends _0x44c3b9{['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 _0x2135ea=this['editor'],_0x246da4=_0x2135ea['plugins']['get'](o),_0x49a8ed=_0x2135ea['plugins']['get'](r),_0x1c3bee=_0x2135ea['plugins']['get'](O),_0x5ebb6a=_0x2135ea['plugins']['get'](P);_0x2135ea['ui']['componentFactory']['add']('comment',()=>{const _0x4b0d43=this['_createUIButton'](_0x11514e);return _0x4b0d43['tooltip']=!0x0,_0x4b0d43;}),_0x2135ea['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x116ef4)),_0x5ebb6a['addSourceCollector'](()=>{const _0x1fa5ed=[];for(const [_0x2f4ad5,_0x153c38]of _0x246da4['_threadToController']){const _0x431e8c=_0x49a8ed['getAllMarkersForId'](_0x2f4ad5['id']),_0x6588c9=_0x431e8c['map'](_0x10b046=>_0x10b046['getRange']());_0x431e8c['length']>0x0&&_0x1fa5ed['push']([_0x153c38['view'],_0x6588c9]);}return _0x1fa5ed;}),this['listenTo'](_0x1c3bee,'change:activeAnnotations',(_0x641a2,_0x4148a7,_0x478f29)=>{const _0x4a8fc6=Array['from'](_0x478f29)['map'](_0x954a8c=>_0x954a8c['innerView'])['find'](_0x1faa5b=>_0x246da4['_viewToController']['has'](_0x1faa5b));if(!_0x4a8fc6)return void(_0x49a8ed['activeMarker']=null);const _0x5997be=_0x246da4['_viewToController']['get'](_0x4a8fc6)['model']['id'],_0x5377a8='comment:'+_0x5997be;_0x5997be&&_0x49a8ed['hasMarkerForId'](_0x5997be)?_0x49a8ed['activeMarker']=_0x5377a8:_0x49a8ed['activeMarker']&&(_0x49a8ed['activeMarker']=null);}),this['listenTo'](_0x246da4,'removeCommentThread',(_0x5383a2,{threadId:_0x94091c,isFromAdapter:_0x2ae0a5})=>{!_0x2ae0a5&&_0x2135ea['ui']['focusTracker']['isFocused']&&_0x49a8ed['hasMarkerForId'](_0x94091c)&&_0x2135ea['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x246da4,'addComment',(_0x23c258,{threadId:_0x488316,isFromAdapter:_0x54cce7})=>{if(_0x54cce7||!_0x49a8ed['hasMarkerForId'](_0x488316)||!_0x246da4['hasCommentThread'](_0x488316))return;0x1===_0x246da4['getCommentThread'](_0x488316)['length']&&(_0x2135ea['editing']['view']['focus'](),_0x23c258['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x34a122=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3cfa2e;for(const _0x3f8d76 in _0x34a122){const _0x34d74f=_0x3f8d76,_0x3c1e2f=_0x34a122[_0x34d74f];if('commentsLicenseKeyValid'==_0x3c1e2f||'commentsLicenseKeyInvalid'==_0x3c1e2f||'commentsLicenseKeyExpired'==_0x3c1e2f||'commentsLicenseKeyDomainLimit'==_0x3c1e2f||'commentsLicenseKeyNotAllowed'==_0x3c1e2f||'commentsLicenseKeyEvaluationLimit'==_0x3c1e2f||'commentsLicenseKeyTrialLimit'==_0x3c1e2f||'commentsLicenseKeyUsageLimit'==_0x3c1e2f){delete _0x34a122[_0x34d74f],_0x3cfa2e=_0x3c1e2f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3cfa2e&&_0x34a122['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3cfa2e&&_0x34a122['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3cfa2e&&_0x34a122['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3cfa2e&&_0x34a122['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3cfa2e&&_0x34a122['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x3cfa2e&&_0x34a122['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x3cfa2e&&_0x34a122['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x234167){const _0x480801=this['editor'],_0xf534ed=new _0x234167(_0x480801['locale']),_0x5ef3fd=_0x480801['commands']['get']('addCommentThread');return _0xf534ed['set']({'label':E(_0x480801['locale'],'Comment'),'icon':_0x465f2d}),_0xf534ed['bind']('isEnabled')['to'](_0x5ef3fd),this['listenTo'](_0xf534ed,'execute',()=>{_0x5ef3fd['execute']();}),_0xf534ed;}}class s extends _0x44c3b9{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1bf1bd){super(_0x1bf1bd),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2b846b,_0x4f3b41,_0x571bd6)=>{_0x571bd6?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5ddd4e,_0x5eadc8]of this['editor']['commands'])_0x5eadc8['affectsData']&&'addCommentThread'!==_0x5ddd4e&&_0x5eadc8['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 _0x26790f=this['editor']['editing']['view']['document'];this['listenTo'](_0x26790f,'cut',_0x354fe7=>_0x354fe7['stop'](),{'priority':'highest'}),this['listenTo'](_0x26790f,'clipboardInput',_0x1ae566=>_0x1ae566['stop'](),{'priority':'highest'}),this['listenTo'](_0x26790f,'delete',_0x4f1cd9=>_0x4f1cd9['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5bc866,_0x5ada11]of this['editor']['commands'])_0x5ada11['affectsData']&&'addCommentThread'!==_0x5bc866&&_0x5ada11['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 _0x29aebb{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d30d9){super(_0x4d30d9),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x57f867=this['context']['plugins']['get'](O);this['listenTo'](_0x57f867,'_activateAnnotation',(_0xcc4f9d,_0x577a8b)=>{for(const _0x48b62d of this['activeUIs']){const _0x2c479c=this['_uis']['get'](_0x48b62d);(0x0,this['uisData']['get'](_0x48b62d)['filter'])(_0x577a8b)&&_0x2c479c['setActiveAnnotation'](_0x577a8b);}}),this['listenTo'](_0x57f867,'_deactivateAllAnnotations',()=>{for(const _0x4d54c6 of this['activeUIs']){this['_uis']['get'](_0x4d54c6)['setActiveAnnotation'](null);}}),this['listenTo'](_0x57f867['_visibleAnnotations'],'add',(_0x1be292,_0x17a512)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x17a512);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x53545a){return this['activeUIs']['has'](_0x53545a);}['activate'](_0x12d6dd,_0x3f842c=this['defaultFilter']){const _0x12ae65=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x12d6dd))throw new _0x4813ff('annotationsuis-missing-ui',this,{'uiName':_0x12d6dd});this['isActive'](_0x12d6dd)&&this['deactivate'](_0x12d6dd),this['activeUIs']['add'](_0x12d6dd);const _0x20f34d=new _();!function({source:_0x248aad,target:_0x4a9638,filter:_0x5ecc75}){for(const _0x3764e0 of _0x248aad)_0x5ecc75(_0x3764e0)&&_0x4a9638['add'](_0x3764e0);_0x4a9638['listenTo'](_0x248aad,'add',(_0x2251ed,_0x114bd2)=>{_0x5ecc75(_0x114bd2)&&_0x4a9638['add'](_0x114bd2);}),_0x4a9638['listenTo'](_0x248aad,'remove',(_0x565ba5,_0x4313b9)=>{_0x4a9638['has'](_0x4313b9)&&_0x4a9638['remove'](_0x4313b9);});}({'source':_0x12ae65['_visibleAnnotations'],'target':_0x20f34d,'filter':_0x3f842c}),this['uisData']['set'](_0x12d6dd,{'collection':_0x20f34d,'filter':_0x3f842c});const _0xdbe109=this['_uis']['get'](_0x12d6dd);_0xdbe109['attach'](_0x20f34d),this['listenTo'](_0xdbe109,'change:activeAnnotation',(_0x31e407,_0xc781d8,_0x24a463,_0x2df603)=>{_0x2df603&&_0x12ae65['_removeActiveAnnotation'](_0x2df603),_0x24a463&&_0x12ae65['_addActiveAnnotation'](_0x24a463);});}['deactivate'](_0x3b1252){if(this['activeUIs']['delete'](_0x3b1252),!this['_uis']['has'](_0x3b1252))throw new _0x4813ff('annotationsuis-missing-ui',this,{'uiName':_0x3b1252});const _0x19bad6=this['_uis']['get'](_0x3b1252);_0x19bad6['detach'](),this['stopListening'](_0x19bad6),this['uisData']['get'](_0x3b1252)['collection']['destroy'](),this['uisData']['delete'](_0x3b1252);}['switchTo'](_0x5cca1c){if(!this['_uis']['has'](_0x5cca1c))throw new _0x4813ff('annotationsuis-missing-ui',this,{'uiName':_0x5cca1c});const _0x293074=this['context']['plugins']['get'](O),_0x264ce7=Array['from'](_0x293074['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x5cca1c);const _0xe081dc=this['_uis']['get'](_0x5cca1c);_0xe081dc['setActiveAnnotation'](_0x264ce7),_0xe081dc['_setSelectedAnnotations']&&_0x264ce7&&_0xe081dc['_setSelectedAnnotations']([_0x264ce7]);}['deactivateAll'](){for(const _0x3ad215 of this['activeUIs'])this['deactivate'](_0x3ad215);}['register'](_0x2bf5d0,_0x34aabe){if(this['_uis']['has'](_0x2bf5d0))throw new _0x4813ff('annotationsuis-register-already-registered');if('function'!=typeof _0x34aabe['attach']||'function'!=typeof _0x34aabe['detach']||'function'!=typeof _0x34aabe['setActiveAnnotation'])throw new _0x4813ff('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x2bf5d0,_0x34aabe);}['refilterAnnotations'](){const _0xc06f70=this['context']['plugins']['get'](O)['collection'],_0x3696d5=new Map(),_0x480620=Array['from'](this['activeUIs']);for(const _0x509583 of this['activeUIs']){const _0x29ed4a=this['uisData']['get'](_0x509583)['collection'];for(const _0x1a20ce of _0x29ed4a)_0x3696d5['set'](_0x1a20ce,_0x509583);}for(const _0x32548b of _0xc06f70){const _0x1cc30f=_0x3696d5['get'](_0x32548b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x32548b);const _0x2e94f3=_0x480620['find'](_0x3d854c=>this['uisData']['get'](_0x3d854c)['filter'](_0x32548b));_0x1cc30f!==_0x2e94f3&&(_0x1cc30f&&this['uisData']['get'](_0x1cc30f)['collection']['remove'](_0x32548b),_0x2e94f3&&this['uisData']['get'](_0x2e94f3)['collection']['add'](_0x32548b));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x12f8c7){const _0x512f5e=[];for(const _0x5cba2b of this['activeUIs']){(0x0,this['uisData']['get'](_0x5cba2b)['filter'])(_0x12f8c7)&&_0x512f5e['push'](_0x5cba2b);}if(_0x512f5e['length']>0x1)throw new _0x4813ff('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x512f5e,'annotationType':_0x12f8c7['type']});}}const pi=xt('px');class F extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x57088d){super(_0x57088d);const _0x189bf8=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 _0x355188(),this['focusCycler']=new _0x346817({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x189bf8['to']('class')],'style':{'minHeight':_0x189bf8['to']('minHeight',_0x20d609=>'number'==typeof _0x20d609?pi(_0x20d609+0xa):null)},'dir':_0x57088d['uiLanguageDirection'],'role':'application','aria-label':E(_0x57088d,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x57088d,'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',_0x5bf564=>{this['_updateItemPositionInFocusables'](_0x5bf564['source']);}),this['list']['forEach'](_0x35cae9=>{this['focusTracker']['add'](_0x35cae9['element']),this['_updateItemPositionInFocusables'](_0x35cae9);}),this['list']['on']('change',(_0x24a630,_0xf1d99f)=>{for(const _0x159a66 of _0xf1d99f['removed'])this['focusTracker']['remove'](_0x159a66['element']),this['focusables']['remove'](_0x159a66);for(const _0x2ac67a of _0xf1d99f['added'])this['focusTracker']['add'](_0x2ac67a['element']),this['_updateItemPositionInFocusables'](_0x2ac67a);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x264250){const _0x507baa=this['focusables']['getIndex'](_0x264250);let _0x418b36,_0x4c1add;for(const _0xd5bcfd of this['focusables'])if(_0x264250['top']<_0xd5bcfd['top']){_0x418b36=_0xd5bcfd;break;}if(_0x4c1add=_0x418b36?this['focusables']['getIndex'](_0x418b36):this['focusables']['length'],-0x1!==_0x507baa){if(_0x507baa===_0x4c1add-0x1)return;this['focusables']['remove'](_0x264250),_0x4c1add=_0x418b36?this['focusables']['getIndex'](_0x418b36):this['focusables']['length'];}this['focusables']['add'](_0x264250,_0x4c1add);}}const Ht=xt('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x210781){super(_0x210781),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5bcc8f,_0xed3189)=>_0x5bcc8f+_0xed3189),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x4dfaea=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x4dfaea['to']('isAnimationDisabled',_0x3d6ca9=>_0x3d6ca9?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x4dfaea['to']('top',_0x30e24e=>Ht(_0x30e24e))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x18a5aa=this['element']['clientHeight'];_0x18a5aa&&(this['height']=_0x18a5aa);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x29aebb{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b6ae3){super(_0x4b6ae3),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 _0x523e22=this['context']['config']['get']('sidebar.container');_0x523e22&&this['setContainer'](_0x523e22);}['setContainer'](_0x47adbe){if(!y(_0x47adbe))throw new _0x4813ff('sidebar-setcontainer-invalid-element');this['container']=_0x47adbe;}['_attachToContainer']({viewClass:_0x9a3828='',spaceBetweenItems:_0x2abc1a=0x19}={}){if(!y(this['container']))throw new _0x4813ff('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x9a3828,this['_spaceBetweenItems']=_0x2abc1a;}['rearrange']({removedAnnotation:_0x39f828,previousAnnotation:_0x39b39b,nextAnnotation:_0x19ce8f}){const _0x2b52ba=this['getSidebarItemView'](_0x39f828);this['view']['list']['remove'](_0x2b52ba),this['_destroySidebarItemView'](_0x39f828),_0x39b39b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x39b39b)),_0x19ce8f&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x19ce8f)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xc235c4,activatedAnnotation:_0x3902ba,disableAnimationOnActivatedAnnotation:_0x2f0c0f}){if(this['_activeAnnotation']=_0x3902ba,_0xc235c4){_0xc235c4['isActive']=!0x1;const _0x2bd645=this['getSidebarItemView'](_0xc235c4);_0x2bd645&&_0x2f0c0f&&(_0x2bd645['isAnimationDisabled']=!0x1);}if(_0x3902ba){const _0x5426b6=this['getSidebarItemView'](_0x3902ba);_0x5426b6&&(_0x3902ba['isActive']=!0x0,_0x2f0c0f&&(_0x5426b6['isAnimationDisabled']=!0x0,_0x5426b6['top']+=0x1),this['_alignToTargetRect'](_0x5426b6));}}['_detachFromContainer'](_0xf7d9bc){if(this['view']['element']['remove'](),_0xf7d9bc){for(const _0x3516fb of _0xf7d9bc)this['_destroySidebarItemView'](_0x3516fb);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x4a0b4b,_0x293781){_0x293781||(_0x293781=_0x4a0b4b['view']);const _0x398328=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x398328,_0x4a0b4b),this['_annotationToSidebarItemView']['set'](_0x4a0b4b,_0x398328),_0x398328['content']['add'](_0x293781),this['listenTo'](_0x4a0b4b['view'],'change:targetRect',(_0xaffc1,_0x478fb9,_0x32b70b)=>{const _0x3d2a76=this['_getTargetTop'](_0x4a0b4b,_0x32b70b);_0x398328['_targetTop']!=_0x3d2a76&&(_0x398328['_targetTop']=_0x3d2a76,this['_setItemTop'](_0x398328,_0x3d2a76));}),this['listenTo'](_0x398328,'change:top',()=>{this['_recalculate'](_0x398328,'top');}),this['listenTo'](_0x398328,'change:bottom',()=>{this['_recalculate'](_0x398328,'bottom');}),this['_alignToTargetRect'](_0x398328);const _0x499f3f=this['_getItemBefore'](_0x398328);if(_0x499f3f)this['_alignAfterItem'](_0x499f3f,_0x398328)||this['_alignToTargetRect'](_0x398328);else this['_alignToTargetRect'](_0x398328);return this['_updateLastItem'](),this['view']['list']['add'](_0x398328),_0x398328;}['_alignForTopChange'](_0x508ca0){if(!_0x508ca0['content']['length'])return;const _0x18f071=this['_getItemBefore'](_0x508ca0);if(!_0x18f071)return;const _0xe210c4=this['_sidebarItemViewToAnnotation']['get'](_0x18f071),_0x42952c=this['_activeAnnotation'];_0x42952c&&_0x42952c===_0xe210c4?this['_alignAfterItem'](_0x18f071,_0x508ca0):this['_alignBeforeItem'](_0x508ca0,_0x18f071);}['_alignForBottomChange'](_0x212c21){if(!_0x212c21['content']['length'])return;const _0x30f279=this['_getItemAfter'](_0x212c21);if(!_0x30f279)return;const _0x185d7a=this['_sidebarItemViewToAnnotation']['get'](_0x30f279),_0x58e629=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x99ef26=this['_activeAnnotation'];_0x99ef26&&_0x99ef26===_0x185d7a&&_0x58e629?(this['_alignBeforeItem'](_0x30f279,_0x212c21),this['_alignAfterItem'](_0x212c21,_0x30f279)):_0x99ef26&&_0x99ef26===_0x185d7a?this['_alignBeforeItem'](_0x30f279,_0x212c21):this['_alignAfterItem'](_0x212c21,_0x30f279);}['_recalculate'](_0xe8f7c9,_0x6683eb){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x13d82,changedProp:_0x3a30e7}of this['_recalculateBuffer'])'top'===_0x3a30e7?this['_alignForTopChange'](_0x13d82):this['_alignForBottomChange'](_0x13d82);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0xe8f7c9,'changedProp':_0x6683eb});}['getSidebarItemView'](_0x2e5db1){return this['_annotationToSidebarItemView']['get'](_0x2e5db1);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x53780e){const _0x116854=this['getSidebarItemView'](_0x53780e);this['stopListening'](_0x116854),this['stopListening'](_0x53780e['view']),_0x116854['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x53780e),this['_sidebarItemViewToAnnotation']['delete'](_0x116854);}['_createSidebarView'](){const _0x1827fe=new F(this['context']['locale']);return _0x1827fe['render'](),this['on']('change:_lastItem',(_0x4a9c97,_0x3e6281,_0x2ab93a,_0x2572a0)=>{_0x2572a0&&_0x1827fe['unbind']('minHeight'),_0x2ab93a?_0x1827fe['bind']('minHeight')['to'](_0x2ab93a,'bottom'):_0x1827fe['minHeight']=null;}),_0x1827fe;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x37fa6b){const _0x1c6e0c=this['_sidebarItemViewToAnnotation']['get'](_0x37fa6b),_0x51efbd=_0x1c6e0c&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1c6e0c)-0x1);return _0x51efbd&&this['getSidebarItemView'](_0x51efbd)||null;}['_getItemAfter'](_0x1d0f37){const _0x5be66f=this['_sidebarItemViewToAnnotation']['get'](_0x1d0f37),_0x314b79=_0x5be66f&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5be66f)+0x1);return _0x314b79&&this['getSidebarItemView'](_0x314b79)||null;}['_alignBeforeItem'](_0xb21ee0,_0x3ef7bf){_0xb21ee0['updateHeight']();const _0x1ec3b1=R(_0x3ef7bf['bottom']+this['_spaceBetweenItems'],_0xb21ee0['top']);return!!_0x1ec3b1&&(this['_setItemTop'](_0x3ef7bf,_0x3ef7bf['top']-_0x1ec3b1),!0x0);}['_alignAfterItem'](_0x390fd6,_0x537899){_0x390fd6['updateHeight']();const _0x173e7c=R(_0x390fd6['bottom']+this['_spaceBetweenItems'],_0x537899['top']);return!!_0x173e7c&&(this['_setItemTop'](_0x537899,_0x537899['top']+_0x173e7c,!0x1),!0x0);}['_alignToTargetRect'](_0x477e31){const _0x1bd131=this['_sidebarItemViewToAnnotation']['get'](_0x477e31);if(!_0x1bd131||!_0x1bd131['target']||!_0x1bd131['targetRect'])return;const _0x34d79d=this['_getTargetTop'](_0x1bd131,_0x1bd131['targetRect']);this['_setItemTop'](_0x477e31,_0x34d79d);}['_getTargetTop'](_0x5ca527,_0x844ce6){if(null===_0x844ce6)return 0x0;if(_0x5ca527['target']instanceof _0x1694f4)return _0x844ce6['top'];{const _0xc49871=new _0x1694f4(this['view']['element'])['top'];return _0x844ce6['top']-_0xc49871;}}['_setItemTop'](_0x3806f6,_0x412a88,_0x1d879e=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1d879e&&(_0x412a88=Math['max'](_0x412a88,this['_getMaxAvailableTop'](_0x3806f6))),_0x3806f6['top']=_0x412a88;}['_getMaxAvailableTop'](_0x1e2725){let _0xcf8278=this['_getItemBefore'](_0x1e2725),_0x11ad54=0x0;for(;_0xcf8278;)_0xcf8278['updateHeight'](),_0x11ad54+=this['_spaceBetweenItems']+_0xcf8278['height'],_0xcf8278=this['_getItemBefore'](_0xcf8278);return _0x11ad54;}}function R(_0x4eb323,_0x16d914){return Math['max'](_0x4eb323-_0x16d914,0x0);}function y(_0xd62250){return null!==_0xd62250&&'object'==typeof _0xd62250&&0x1===_0xd62250['nodeType'];}class e extends _0x29aebb{['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(_0x5ad59e){super(_0x5ad59e),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x2d8e4d(),this['_refreshPositioningDebounced']=_0x51b2e8(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x969e6d=this['context']['plugins']['get'](M),_0x41b216=this['context']['plugins']['get'](z);_0x969e6d['register']('wideSidebar',this),_0x41b216['container']&&_0x969e6d['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x189958){if(_0x189958===this['activeAnnotation'])return;const _0x95a68e=this['context']['plugins']['get'](z);_0x95a68e['_activeAnnotation']=_0x189958;const _0x411ad2=this['activeAnnotation'];_0x95a68e['refresh']({'blurredAnnotation':_0x411ad2,'activatedAnnotation':_0x189958}),this['activeAnnotation']=_0x189958;}['attach'](_0x2ce8a5){this['annotations']=_0x2ce8a5;const _0x4d0027=this['context']['plugins']['get'](z);if(_0x4d0027['_annotations']=_0x2ce8a5,this['isAttached'])throw new _0x4813ff('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4d0027,'set:container',()=>{this['detach'](),this['listenTo'](_0x4d0027,'change:container',_0x49322e=>{_0x49322e['off'](),this['attach'](_0x2ce8a5);});}),_0x4d0027['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x4373d2=_0x56ff9c=>{_0x56ff9c['updateTargetRect'](),_0x4d0027['addAnnotation'](_0x56ff9c);};for(const _0x6c50ee of _0x2ce8a5)_0x4373d2(_0x6c50ee);this['listenTo'](_0x2ce8a5,'add',(_0x308684,_0x37e3fa)=>{_0x4373d2(_0x37e3fa);}),this['listenTo'](_0x2ce8a5,'remove',(_0x48a787,_0x80176b,_0x557d3f)=>{_0x4d0027['rearrange']({'removedAnnotation':_0x80176b,'previousAnnotation':_0x2ce8a5['get'](_0x557d3f-0x1),'nextAnnotation':_0x2ce8a5['get'](_0x557d3f+0x1)}),_0x80176b===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x2ce8a5,'focus',(_0xdd4bca,_0x42b8e6)=>{this['setActiveAnnotation'](_0x42b8e6);}),this['listenTo'](_0x2ce8a5,'blur',()=>{this['setActiveAnnotation'](null);});const _0x13b17d=this['context']instanceof _0x106841?this['context']['editors']:new _0x2d8e4d([this['context']]);for(const _0x5d3c92 of _0x13b17d)this['_integrateWithEditorAnnotations'](_0x5d3c92);this['listenTo'](_0x13b17d,'add',(_0x346079,_0x5b9c04)=>{this['listenTo'](_0x5b9c04,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5b9c04);});}),this['listenTo'](_0x13b17d,'remove',(_0x5678cb,_0x3b6039)=>{_0x3b6039['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3b6039['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4813ff('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3a9bb1=this['context']['plugins']['get'](z);_0x3a9bb1['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3a9bb1),this['stopListening'](this['annotations']),this['context']instanceof _0x106841&&this['stopListening'](this['context']['editors']);for(const _0x4de914 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4de914);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x4e7aae){if(!_0x4e7aae['plugins']['has']('EditorAnnotations'))return;const _0x20e6b4=_0x4e7aae['plugins']['get']('EditorAnnotations'),_0xd78a68=()=>{const _0x32add8=_0x20e6b4['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x32add8[0x0]||null);};this['listenTo'](_0x20e6b4,'refresh',_0xd78a68),this['listenTo'](_0x20e6b4,'blur',(_0x3f29dd,{isAnnotationTracked:_0x9a1fb2})=>{this['activeAnnotation']&&_0x9a1fb2(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x20e6b4,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x367b37=>{_0x20e6b4['hasDomSelection']()&&(_0xd78a68(),_0x367b37['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x20e6b4);}['_destroyEditorAnnotationsIntegration'](_0x5a3d9b){this['stopListening'](_0x5a3d9b),this['_editorAnnotations']['remove'](_0x5a3d9b);}}class C extends _0x11514e{['counterView'];constructor(_0x301507){super(_0x301507);const _0x322493=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x49ddf1,_0x1a218a)=>_0x49ddf1?'...':_0x1a218a['toString']()),this['set']('annotationType',''),this['icon']=_0x465f2d,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x322493['to']('annotationType',_0x3ff2c4=>'ck-annotation-counter__badge--'+_0x3ff2c4),_0x322493['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x322493['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x29aebb{['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(_0x2e4c34){super(_0x2e4c34),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x56f1fb),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x2d8e4d(),this['_refreshPositioningDebounced']=_0x51b2e8(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x21e681(this['context']['locale']),this['balloonPanelView']=new _0x687bfe(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x25beef){this['annotations']=_0x25beef;const _0x4e1cf5=this['context']['plugins']['get'](z),_0x4f827c=this['balloonPanelView'];if(_0x4e1cf5['_annotations']=_0x25beef,this['isAttached'])throw new _0x4813ff('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4e1cf5,'set:container',()=>{this['detach'](),this['listenTo'](_0x4e1cf5,'change:container',_0x39d09b=>{_0x39d09b['off'](),this['attach'](_0x25beef);});}),_0x4e1cf5['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x155fce=_0x166740=>{const _0x20d08f=new C(this['context']['locale']);_0x4e1cf5['addAnnotation'](_0x166740,_0x20d08f),this['_annotationToNarrowView']['set'](_0x166740,_0x20d08f),_0x20d08f['bind']('isDirty','annotationType','number')['to'](_0x166740['view'],'isDirty','type','length'),_0x20d08f['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4f827c['content']['first']!==_0x166740['view']?(this['_showBalloon'](_0x166740),_0x166740['view']['element']['focus'](),this['setActiveAnnotation'](_0x166740)):this['setActiveAnnotation'](null);});};for(const _0x2ea982 of _0x25beef)_0x155fce(_0x2ea982);this['listenTo'](_0x25beef,'add',(_0x4d1a3f,_0xd7ca53)=>{_0x155fce(_0xd7ca53);}),this['listenTo'](_0x25beef,'remove',(_0x24ff46,_0x4c64d7,_0x1e35ba)=>{this['_annotationToNarrowView']['get'](_0x4c64d7)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4c64d7),_0x4e1cf5['rearrange']({'removedAnnotation':_0x4c64d7,'previousAnnotation':_0x25beef['get'](_0x1e35ba-0x1),'nextAnnotation':_0x25beef['get'](_0x1e35ba+0x1)}),_0x4c64d7===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x25beef,'focus',(_0x269d14,_0x29d231)=>{this['setActiveAnnotation'](_0x29d231);}),this['listenTo'](_0x25beef,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xb784f8,_0x5235cf)=>{_0x5235cf['keyCode']===_0x366093['esc']&&_0x4f827c['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x4f827c['content']['first']),this['_hideBalloon'](),_0x5235cf['stopPropagation'](),_0x5235cf['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0xf2effd,_0x1dfebb)=>{const _0x52983d=_0x1dfebb['target'];_0x4f827c['isVisible']&&_0x4f827c['element']['contains'](_0x52983d)||_0x4e1cf5['view']['element']['contains'](_0x52983d)||_0xf2effd['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x397728=>_0x397728['contains'](_0x52983d))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2e19d5=this['context']instanceof _0x106841?this['context']['editors']:new _0x2d8e4d([this['context']]);for(const _0x3498a7 of _0x2e19d5)this['_integrateWithEditorAnnotations'](_0x3498a7);this['listenTo'](_0x2e19d5,'add',(_0x1638ef,_0x42c798)=>{this['listenTo'](_0x42c798,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x42c798);});}),this['listenTo'](_0x2e19d5,'remove',(_0x3ba6d7,_0x2310e4)=>{_0x2310e4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2310e4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2a4bac){if(_0x2a4bac===this['activeAnnotation'])return;const _0x45a5b4=this['context']['plugins']['get'](z);if(_0x45a5b4['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2a4bac,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2a4bac)_0x45a5b4['getSidebarItemView'](_0x2a4bac)?this['_showBalloon'](_0x2a4bac):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2a4bac;}['detach'](){if(!this['isAttached'])throw new _0x4813ff('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x305f04=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x50099a=>_0x50099a['destroy']()),this['_annotationToNarrowView']['clear'](),_0x305f04['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x106841&&this['stopListening'](this['context']['editors']);for(const _0x5bc398 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5bc398);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'](_0x50c701){if(!_0x50c701['plugins']['has']('EditorAnnotations'))return;const _0x75cd0e=_0x50c701['plugins']['get']('EditorAnnotations'),_0x52eeae=this['context']['plugins']['get'](z),_0x5203da=this['annotations'],_0x974324=this['balloonPanelView'],_0x51d717=()=>{const _0x426f7c=_0x75cd0e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x426f7c),this['setActiveAnnotation'](_0x426f7c[0x0]||null);};this['listenTo'](_0x75cd0e,'refresh',_0x51d717),this['listenTo'](_0x75cd0e,'blur',(_0x48befd,{isAnnotationTracked:_0x5b1420})=>{this['activeAnnotation']&&_0x5b1420(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x75cd0e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5203da,'blur',_0x39de57=>{_0x75cd0e['hasDomSelection']()&&_0x39de57['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0xa312cb,_0x17ace5)=>{const _0x8e55c2=_0x17ace5['target'];_0x974324['isVisible']&&_0x974324['element']['contains'](_0x8e55c2)||_0x52eeae['view']['element']['contains'](_0x8e55c2)||this['activeAnnotation']&&_0x75cd0e['hasDomSelection']()&&(_0x51d717(),_0xa312cb['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x75cd0e);}['_destroyEditorAnnotationsIntegration'](_0xbc4307){_0xbc4307&&(this['stopListening'](_0xbc4307),this['_editorAnnotations']['remove'](_0xbc4307));}['_setSelectedAnnotations'](_0x138e11){for(const _0x10aa22 of this['_selectedAnnotations'])_0x138e11['includes'](_0x10aa22)||this['_manuallyClosedAnnotationViews']['delete'](_0x10aa22['view']);this['_selectedAnnotations']=_0x138e11;}['_refreshPositioning'](){const _0x8b237=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x8b237['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x335db1){if(this['_manuallyClosedAnnotationViews']['has'](_0x335db1['view']))return;const _0x19cd52=this['balloonPanelView']['content']['first'];_0x19cd52!==_0x335db1['view']?(_0x19cd52&&this['_detachListeners'](_0x19cd52),this['_attachListeners'](_0x335db1['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x335db1['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x483d8e=this['balloonPanelView']['content']['first'],_0x47a4ac=_0x483d8e&&this['annotations']['getByView'](_0x483d8e);if(!_0x47a4ac||!this['_annotationToNarrowView']['has'](_0x47a4ac))return;const _0x5c7c81=this['_annotationToNarrowView']['get'](_0x47a4ac)['element'],_0x22e21d=(function(){const _0x534300=_0x687bfe['defaultPositions'];return[_0x534300['southArrowNorthEast'],_0x534300['northArrowSouthEast'],_0x534300['southArrowNorth'],_0x534300['northArrowSouth'],_0x534300['southArrowNorthWest'],_0x534300['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5c7c81,'positions':_0x22e21d});}['_hideBalloon'](){const _0xf6de39=this['balloonPanelView'],_0x16e8fe=_0xf6de39['content']['first'];_0x16e8fe&&(this['_detachListeners'](_0x16e8fe),_0xf6de39['unpin'](),_0xf6de39['content']['clear']());}['_attachListeners'](_0x57f0a1){this['listenTo'](_0x57f0a1,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x57f0a1,'Esc',(_0x5dd5e7,_0x288e26)=>{this['_manuallyClosedAnnotationViews']['add'](_0x57f0a1),this['_hideBalloon'](),_0x288e26();});}['_detachListeners'](_0x4d971a){this['stopListening'](_0x4d971a);}}class c extends _0x44c3b9{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x1067eb,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x362326){super(_0x362326),_0x362326['editing']['view']['addObserver'](_0x32b46f),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x362326['plugins']['get'](_0x1067eb),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x4ade0d=this['editor']['plugins']['get'](M);_0x4ade0d['context']===this['editor']&&(_0x4ade0d['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x456158,_0x4b2e0b)=>{const _0x4eccaa=this['_balloon'];if(this['isAttached']&&_0x4eccaa['visibleView']){const _0x31f971=this['annotations']['getByView'](_0x4eccaa['visibleView']);_0x31f971&&this['_closeAnnotation'](_0x31f971),_0x4b2e0b();}}));}['afterInit'](){const _0x57dcd4=this['editor']['plugins']['get'](M);_0x57dcd4['context']===this['editor']&&(_0x57dcd4['hasActive']()||_0x57dcd4['switchTo']('inline'));}['setActiveAnnotation'](_0x59a5db){_0x59a5db!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x59a5db&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x59a5db)&&this['_addAnnotationToBalloon'](_0x59a5db,!0x0),_0x59a5db['isActive']=!0x0),_0x59a5db||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x59a5db);}['attach'](_0x12d43c){this['annotations']=_0x12d43c;const _0x359afc=this['editor']['plugins']['get'](M),_0x312510=this['_balloon'];if(this['isAttached'])throw new _0x4813ff('inlineannotations-attach-already-attached',this);if(_0x359afc['context']!==this['editor'])throw new _0x4813ff('inlineannotations-not-allowed-with-context',this);const _0x4397cd=this['editor']['plugins']['get'](P);this['listenTo'](_0x4397cd,'refresh',()=>{const _0x349337=_0x4397cd['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x10a2bb,_0x6b36cd;!this['_forceRefresh']&&(_0x10a2bb=_0x349337,_0x6b36cd=this['_selectedAnnotations'],_0x10a2bb['length']===_0x6b36cd['length']&&_0x10a2bb['every'](_0x1bbb96=>_0x6b36cd['includes'](_0x1bbb96)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x349337),this['setActiveAnnotation'](_0x349337[0x0]||null));}),this['listenTo'](_0x4397cd,'blur',(_0x40af57,{isAnnotationTracked:_0x89beb1})=>{this['activeAnnotation']&&_0x89beb1(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x54bae2,_0x3e7453,_0x3ee5ad)=>{_0x3ee5ad||this['setActiveAnnotation'](null);}),this['listenTo'](_0x12d43c,'remove',(_0x47c7a3,_0x1eecb8)=>{this['_removeAnnotationFromBalloon'](_0x1eecb8),_0x1eecb8===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x312510,'change:visibleView',(_0x1ac2eb,_0x76b1a,_0xa18af1,_0x5169df)=>{_0x5169df&&this['stopListening'](_0x5169df);const _0x322d6a=_0x12d43c['getByView'](_0xa18af1);_0xa18af1&&_0x322d6a&&(this['listenTo'](_0xa18af1,'change:height',()=>{_0x312510['updatePosition']();}),this['listenTo'](_0xa18af1,'Esc',()=>{this['_closeAnnotation'](_0x322d6a),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x322d6a&&this['setActiveAnnotation'](_0x322d6a));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x312510['visibleView']&&(_0x12d43c['getByView'](_0x312510['visibleView'])&&_0x312510['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 _0x4813ff('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x170cd7 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x170cd7);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xdf7799){for(const _0x3dcf69 of this['_selectedAnnotations'])_0xdf7799['includes'](_0x3dcf69)||this['_manuallyClosed']['delete'](_0x3dcf69);for(const _0xa8b7dc of this['annotations'])_0xdf7799['includes'](_0xa8b7dc)||this['_removeAnnotationFromBalloon'](_0xa8b7dc);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x30496f of _0xdf7799)this['_addAnnotationToBalloon'](_0x30496f);}this['_selectedAnnotations']=_0xdf7799;}['_addAnnotationToBalloon'](_0xdfc6bf,_0x552c35=!0x1){this['_manuallyClosed']['has'](_0xdfc6bf)||(this['_addedAnnotations']['has'](_0xdfc6bf)||this['_balloon']['hasView'](_0xdfc6bf['view'])||(this['_addedAnnotations']['add'](_0xdfc6bf),this['_balloon']['add']({'stackId':_0xdfc6bf['view']['id'],'view':_0xdfc6bf['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xdfc6bf)}})),_0x552c35&&this['_balloon']['showStack'](_0xdfc6bf['view']['id']));}['_getBalloonTargetForAnnotation'](_0xb975b9){const _0x308dd5=_0xb975b9['target'],_0x1da980=this['editor']['editing']['view'],_0x29dbcf=_0x1da980['document']['selection']['getFirstRange'](),_0x3ffe39=_0x1da980['domConverter']['viewRangeToDom'](_0x29dbcf);if(_0x3ffe39['collapse'](!0x0),_0x308dd5){if(_0x308dd5 instanceof _0x1694f4)return _0x308dd5;let _0xd81c65=[];for(const _0x4f2e4c of _0x308dd5)_0xd81c65['push'](...(_0x52f806=_0x4f2e4c['getClientRects'](),Array['from'](_0x52f806)['map'](DOMRect['fromRect'])));_0xd81c65=function(_0x56b0fb){const _0x24bed8=[];let _0x4cada3=_0x56b0fb[0x0];for(let _0x515ab4=0x1;_0x515ab4<_0x56b0fb['length'];_0x515ab4++)B(_0x4cada3,_0x56b0fb[_0x515ab4])?_0x4cada3['width']+=_0x56b0fb[_0x515ab4]['width']:(_0x24bed8['push'](_0x4cada3),_0x4cada3=_0x56b0fb[_0x515ab4]);return _0x24bed8['push'](_0x4cada3),_0x24bed8;}(_0xd81c65);const _0x517a15=_0x3ffe39['getBoundingClientRect']();return _0xd81c65['find'](_0xf81f7c=>_0xf81f7c['top']<=_0x517a15['top']&&_0xf81f7c['bottom']>=_0x517a15['bottom']&&_0xf81f7c['left']<=_0x517a15['left']&&_0xf81f7c['right']>=_0x517a15['right'])||_0xd81c65[0x0];}var _0x52f806;return _0xb975b9['targetRect']||_0x3ffe39;}['_removeAnnotationFromBalloon'](_0x4f2051){this['_addedAnnotations']['has'](_0x4f2051)&&this['_balloon']['hasView'](_0x4f2051['view'])&&(this['_addedAnnotations']['delete'](_0x4f2051),this['_balloon']['remove'](_0x4f2051['view']));}['_closeAnnotation'](_0xb43db9){this['_manuallyClosed']['add'](_0xb43db9),this['_removeAnnotationFromBalloon'](_0xb43db9);}}function B(_0x3cfe3b,_0x1c9925){return _0x3cfe3b['top']===_0x1c9925['top']&&_0x3cfe3b['bottom']===_0x1c9925['bottom']&&_0x3cfe3b['right']===_0x1c9925['left'];}class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1f63aa,_0x28adc6){super(_0x1f63aa),this['set']('isEmpty',!_0x28adc6['length']),this['focusTracker']=new _0x355188(),this['_annotationViews']=_0x28adc6,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x346817({'focusables':_0x28adc6,'focusTracker':this['focusTracker']}),this['listenTo'](_0x28adc6,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x28adc6,'remove',(_0x4c2407,_0x1e23ac)=>{_0x1e23ac['isActive']&&this['focus'](),_0x28adc6['length']||(this['isEmpty']=!0x0);});const _0x47a311=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x1f63aa,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x28adc6},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x47a311['if']('isEmpty','ck-hidden',_0x54c03c=>!_0x54c03c)]},'children':[{'text':E(_0x1f63aa,'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 _0x3e492f of this['_annotationViews'])this['focusTracker']['add'](_0x3e492f['element']);this['_annotationViews']['on']('change',(_0x12168b,{added:_0x510ed8,removed:_0x5c73db})=>{for(const _0x4497b1 of _0x510ed8)this['focusTracker']['add'](_0x4497b1['element']);for(const _0x15ca9d of _0x5c73db)this['focusTracker']['remove'](_0x15ca9d['element']);});}}class f extends _0x29aebb{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x2ba602){super(_0x2ba602),this['archivedThreads']=new _0x2d8e4d();}['init'](){const _0x294951=this['context'],_0x4b8db7=_0x294951['plugins']['get'](o),_0x8203eb=_0x294951['plugins']['get'](O);this['listenTo'](_0x4b8db7,'addCommentThread',(_0x2a9004,{threadId:_0x59b30e})=>{const _0x4541df=_0x4b8db7['getCommentThread'](_0x59b30e);_0x4541df['archivedAt']&&this['archivedThreads']['add'](_0x4541df,this['_calculatePosition'](_0x4541df['archivedAt'])),this['listenTo'](_0x4541df,'change:archivedAt',(_0x1310e8,_0x4cbf8c,_0x56c045)=>{_0x56c045?this['archivedThreads']['has'](_0x4541df)||this['archivedThreads']['add'](_0x4541df,this['_calculatePosition'](_0x4541df['archivedAt'])):this['archivedThreads']['has'](_0x4541df)&&this['archivedThreads']['remove'](_0x4541df);});}),this['listenTo'](_0x4b8db7,'removeCommentThread',(_0x5e1b7a,{threadId:_0x4e5a87})=>{const _0x592b5e=_0x4b8db7['getCommentThread'](_0x4e5a87);this['stopListening'](_0x592b5e),this['archivedThreads']['has'](_0x592b5e)&&this['archivedThreads']['remove'](_0x592b5e);},{'priority':'highest'}),this['listenTo'](_0x8203eb['collection'],'focus',(_0x5c6aa9,_0x2ba4f5)=>{_0x2ba4f5['isVisible']||(_0x2ba4f5['isActive']=!0x0,_0x8203eb['activate'](_0x2ba4f5));});}['_calculatePosition'](_0x2b60db){const _0x59c650=[...this['archivedThreads']]['findIndex'](_0xd17c69=>_0xd17c69['archivedAt']<_0x2b60db);return _0x59c650>-0x1?_0x59c650:this['archivedThreads']['length'];}}class a extends _0x44c3b9{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x181830];}constructor(_0x477149){super(_0x477149),this['annotationViews']=new _0x3b3b3c(),this['_pendingThreads']=[];}['init'](){const _0x1abfe9=this['editor'],_0x8fb511=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1abfe9['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x11514e,!0x0)),_0x1abfe9['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x48242d=this['_createCommentsArchiveButton'](_0x116ef4);return _0x48242d['set']({'role':'menuitemcheckbox'}),_0x48242d;});const _0x77d46e=_0x1abfe9['plugins']['get'](f),_0x3e3f32=_0x1abfe9['plugins']['get']('Annotations'),_0x30e31f=_0x1abfe9['plugins']['get']('CommentsRepository');_0x77d46e['archivedThreads']['forEach'](_0x575fcc=>{this['_handleNewThread'](_0x575fcc);}),this['listenTo'](_0x77d46e['archivedThreads'],'add',(_0x532b81,_0x908df0)=>{this['_handleNewThread'](_0x908df0);}),this['listenTo'](_0x3e3f32['collection'],'add',(_0x1575a0,_0x226923)=>{const _0x177f18=this['_pendingThreads']['find'](_0x5e5f0f=>{const _0x1a5913=_0x30e31f['_threadToController']['get'](_0x5e5f0f);return _0x1a5913&&_0x226923['innerView']===_0x1a5913['view'];});if(_0x177f18){const _0x5bd337=this['_calculatePosition'](_0x177f18['archivedAt']);this['annotationViews']['add'](_0x226923['view'],_0x5bd337),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x177f18),0x1);}}),this['listenTo'](_0x77d46e['archivedThreads'],'remove',(_0x43c7c4,_0x2c54e4)=>{const _0x40364b=_0x1abfe9['config']['get']('collaboration.channelId');if(!_0x40364b||_0x2c54e4['channelId']===_0x40364b){if(this['_pendingThreads']['includes'](_0x2c54e4))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2c54e4),0x1);else{const _0x27e9ed=_0x30e31f['_threadToController']['get'](_0x2c54e4),_0x594cee=_0x3e3f32['getByInnerView'](_0x27e9ed['view']);this['annotationViews']['remove'](_0x594cee['view']),this['stopListening'](_0x594cee['focusableElements']);}}}),this['listenTo'](_0x3e3f32['collection'],'add',(_0x56d1ab,_0x2377cb)=>{this['listenTo'](_0x2377cb,'escape',_0x8fb511);}),this['listenTo'](_0x3e3f32['collection'],'remove',(_0x1587b8,_0x3bdf28)=>{this['stopListening'](_0x3bdf28,'escape',_0x8fb511);});}['_handleNewThread'](_0x419e62){const _0x5b9f9e=this['editor']['plugins']['get']('CommentsRepository'),_0x47d821=this['editor']['plugins']['get']('Annotations'),_0x3f35d7=this['editor']['config']['get']('collaboration.channelId');if(!_0x3f35d7||_0x419e62['channelId']===_0x3f35d7){const _0x248ec8=_0x5b9f9e['_threadToController']['get'](_0x419e62);if(!_0x248ec8)return void this['_pendingThreads']['push'](_0x419e62);const _0x3b2602=this['_calculatePosition'](_0x419e62['archivedAt']),_0x131283=_0x47d821['getByInnerView'](_0x248ec8['view']);_0x131283['isVisible']&&_0x47d821['_visibleAnnotations']['remove'](_0x131283),this['annotationViews']['add'](_0x131283['view'],_0x3b2602);}}['_calculatePosition'](_0x3848e3){const _0xba933a=this['editor']['config']['get']('collaboration.channelId'),_0x1145a3=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x271929=>_0x271929['channelId']===_0xba933a)['findIndex'](_0x42537f=>_0x42537f['archivedAt']<_0x3848e3);return _0x1145a3<0x0||_0x1145a3>this['annotationViews']['length']?this['annotationViews']['length']:_0x1145a3-0x1;}['_toggleDialog'](){const _0x2e5bc1=this['editor'],_0x503e07=_0x2e5bc1['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x2e5bc1['locale'],this['annotationViews'])),'commentsArchive'===_0x503e07['id']?_0x503e07['hide']():_0x503e07['show']({'id':'commentsArchive','title':E(_0x2e5bc1['locale'],'COMMENTS_ARCHIVE'),'icon':_0x471d32,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3f3697['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x2598ed,_0x497d29=!0x1){const _0x2d81e2=this['editor']['locale'],_0x59a69c=this['editor']['plugins']['get']('Dialog'),_0xbc4cfa=new _0x2598ed(_0x2d81e2);return _0xbc4cfa['bind']('isEnabled')['to'](this,'isEnabled'),_0xbc4cfa['bind']('isOn')['to'](_0x59a69c,'id',_0x28a94e=>'commentsArchive'===_0x28a94e),_0xbc4cfa['set']({'label':E(_0x2d81e2,'COMMENTS_ARCHIVE'),'icon':_0x471d32,'isToggleable':!0x0}),_0x497d29&&(_0xbc4cfa['tooltip']=!0x0),this['listenTo'](_0xbc4cfa,'execute',()=>this['_toggleDialog']()),_0xbc4cfa;}['_hideDialogOnAnnotationEscape']=_0x3e8ac4=>{const _0x264eb6=_0x3e8ac4['source'];if(!this['annotationViews']['has'](_0x264eb6['view']))return;const _0x2f62c6=this['editor']['plugins']['get']('Dialog');_0x2f62c6['isOpen']&&'commentsArchive'===_0x2f62c6['id']&&(_0x2f62c6['hide'](),_0x3e8ac4['stop']());};}class p extends _0x44c3b9{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 _0x53b75b,ContextPlugin as _0x4d0391,PendingActions as ht,Command as _0x1c82f3,Plugin as _0x51209d,Context as _0x16f11a}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x434faf,uid as _0x356753,KeystrokeHandler as jt,FocusTracker as _0x29f230,diff as _0x4d771c,Collection as _0x3eedb8,Rect as _0x597a13,CKEditorError as _0x3b0292,first as _0x185237,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x56e90a,keyCodes as _0x10e4b0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x122288,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x29d828,trimHtml as _0x7e2601,LateFocusDropdownButtonView as _0xa15546,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x3621fc}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x4724d7}from'es-toolkit/compat';import{IconUndo as _0x2b5243,IconCheck as _0x42c630,IconPencil as _0x4d1fe3,IconRemoveComment as _0x3a2054,IconThreeVerticalDots as _0x30e1c0,IconAddComment as _0x40f967,IconCommentsArchive as _0x1442de}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Vt,InlineEditableUIView as $t,EditorUI as Rt,View as kt,FocusCycler as _0x8029a4,ButtonView as _0x3f387b,ViewCollection as _0x3ce2be,createDropdown as _0x63d55e,ListView as _0x246810,focusChildOnDropdownOpen as _0x44cdc,ListItemView as _0xc714aa,MenuBarMenuListItemButtonView as _0x370a9d,BodyCollection as _0x432c40,BalloonPanelView as _0x46863b,ContextualBalloon as _0x4831a8,Dialog as _0x36c7ab,DialogViewPosition as _0x3e1e67}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x1d8e6f}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 _0x52545c}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x264321}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x434faf(){['model'];['view'];constructor(_0x182371,_0x4e5fea){super(),this['model']=_0x182371,this['model']['_isAttached']=!0x0,this['view']=_0x4e5fea,this['listenTo'](_0x4e5fea,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4e5fea,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4e5fea,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4e5fea,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4e5fea,'addComment',(_0x15b76a,_0x1f8a90)=>this['addComment'](_0x1f8a90)),this['listenTo'](_0x4e5fea,'updateComment',(_0x27f65f,_0x2ecf14,_0x3a24f2)=>this['updateComment'](_0x2ecf14,_0x3a24f2)),this['listenTo'](_0x4e5fea,'removeComment',(_0x1fa2af,_0x5c6e8f)=>this['removeComment'](_0x5c6e8f));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x555f88){this['model']['addComment']({'content':_0x555f88,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x1d2bdd,_0x87edbb){this['model']['getComment'](_0x1d2bdd)['update']({'content':_0x87edbb});}['removeComment'](_0x25f2c0){this['model']['getComment'](_0x25f2c0)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x2d85e0,_0x25388d,_0x41a491){const t=_0x2d85e0['t'];switch(_0x25388d){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'},_0x41a491);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'},_0x41a491);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'},_0x41a491);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'},_0x41a491);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x41a491);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'},_0x41a491);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'},_0x41a491);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'},_0x41a491);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(_0x4fd6d5,_0x105130){super(_0x4fd6d5);const _0xc4e311=_0x356753();this['main']=this['createCollection'](),this['editable']=new $t(_0x4fd6d5,_0x105130,void 0x0,{'label':()=>E(_0x4fd6d5,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x4fd6d5['uiLanguageDirection'],'lang':_0x4fd6d5['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0xc4e311},'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(_0x35ae5b){super(_0x35ae5b),this['view']=new Ut(_0x35ae5b['locale'],_0x35ae5b['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x463803=this['editor']['editing']['view'],_0x126a07=this['view']['editable'],_0x19a0dc=_0x463803['document']['getRoot']();_0x126a07['name']=_0x19a0dc['rootName'],this['view']['render']();const _0x187b22=_0x126a07['element'];this['setEditableElement'](_0x126a07['name'],_0x187b22),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x463803['attachDomRoot'](_0x187b22),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Nt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Qt extends/* #__PURE__ -- @preserve */
25
+ _0x434faf(_0x53b75b){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Nt)());constructor(_0x221111={}){function _0x2c0d27(_0x628f55){return _0x628f55['map'](_0x28abe3=>String['fromCharCode'](_0x28abe3))['join']('');}(_0x221111=Object['assign']({},_0x221111))['plugins']||(_0x221111['plugins']=Qt['defaultPlugins']),super(_0x221111),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[_0x2c0d27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0d27([0x76,0x69,0x65,0x77])][_0x2c0d27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c0d27([0x61,0x75,0x74,0x6f]),this[_0x2c0d27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c0d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c0d27([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c0d27([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c0d27([0x6f,0x6b])});}['create'](){const _0x59395f=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x59395f))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x15d831=>{const _0x265e0b=this['model']['document']['getRoot'](),_0x2dcb45=_0x265e0b&&_0x265e0b['getChild'](_0x265e0b['childCount']-0x1);_0x15d831['setSelection'](_0x2dcb45,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0xe0b2e2=this['editing']['view'],_0x20812a=_0xe0b2e2['document']['getRoot'](),_0x179231=_0x20812a['getChild'](0x0);_0x20812a['childCount']>0x1||!_0x179231||'p'!=_0x179231['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0xe0b2e2,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x179231['placeholder']=this['placeholder']),Ft({'view':_0xe0b2e2,'element':_0x179231,'keepOnFocus':!0x0}),this['placeholderElement']=_0x179231);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x2563f3,_0x512a05={}){super(_0x2563f3),this['editor']=null,this['_editorConfig']=_0x512a05,this['set']('value',_0x512a05['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x2563f3,'Reply...')),this['set']('submitLabel',E(_0x2563f3,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x29f230(),this['focusCycler']=new _0x8029a4({'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',(_0x4f8761,_0x84fdcf)=>{this['cancelButtonView']['fire']('execute'),_0x84fdcf();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4b74dd,_0x1c2b4c)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x1c2b4c());}),this['on']('submit',(_0x4026c9,_0x1dc56e)=>{_0x1dc56e['length']>0xfde8?(alert(E(_0x2563f3,'TOO_LONG_COMMENT_ALERT',[_0x1dc56e['length'],0xfde8])),_0x4026c9['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 _0xd114ff=this['editor'];this['element']['insertBefore'](_0xd114ff['ui']['element'],this['element']['firstChild']),_0xd114ff['model']['document']['on']('change',()=>this['value']=_0xd114ff['getData']()),_0xd114ff['bind']('placeholder')['to'](this),this['focusables']['add'](_0xd114ff['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x578f27){-0x1===_0x578f27?(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:_0x54de78}=this,_0x92c8f6=new _0x3f387b(_0x54de78);return _0x92c8f6['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x92c8f6['withText']=!0x0,_0x92c8f6['bind']('label')['to'](this,'submitLabel'),_0x92c8f6['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x92c8f6['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4e7959,_0x88eea3)=>!_0x88eea3&&!!_0x4e7959['trim']()),_0x92c8f6;}['_createCancelButton'](){const {locale:_0xa300ff}=this,_0x7af1ac=new _0x3f387b(_0xa300ff);return _0x7af1ac['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x7af1ac['label']=E(_0xa300ff,'Cancel'),_0x7af1ac['withText']=!0x0,_0x7af1ac['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x7af1ac;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xe793c0=>{this['focusTracker']['add'](_0xe793c0['element']);}),this['focusables']['on']('change',(_0x33b10c,_0x22db9d)=>{for(const _0x4a3804 of Array['from'](_0x22db9d['added'])['reverse']())this['focusTracker']['add'](_0x4a3804['element']);});}}class ie extends kt{constructor(_0x140d46,_0x38a970,_0x536df1){super(_0x140d46),this['commentInputView']=new os(_0x140d46,_0x536df1),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x391159,_0x3753b7)=>_0x391159||!!_0x3753b7),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 _0x122288(_0x140d46,_0x38a970),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'](_0x5850a6){this['commentInputView']['focus'](_0x5850a6);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x449d54,_0x57db24)=>{const {submitButtonView:_0x54f36b,cancelButtonView:_0x50365e,editor:_0x25934c}=this['commentInputView'];[_0x54f36b['element'],_0x50365e['element'],_0x25934c?_0x25934c['editing']['view']['getDomRoot']():null]['filter'](_0x513661=>_0x513661)['some'](_0x2c08c2=>_0x2c08c2['contains'](_0x57db24['target']))||(this['focus'](),_0x57db24['preventDefault']());});}}class cs extends kt{constructor(_0x3a99cc){super(_0x3a99cc);const _0x51a5a7=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x51a5a7['to']('count',_0x201134=>E(_0x3a99cc,'NUMBER_OF_COMMENTS',_0x201134))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x9d6632,_0x485cad,_0x1427a5){super(_0x9d6632);const _0x3f2d4f=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x485cad['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x485cad,this['_config']=_0x1427a5,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x29f230(),this['keystrokes']=new jt(),this['focusCycler']=new _0x8029a4({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4298ff=>this['commentViews']['map'](_0x142eb3=>_0x142eb3['element'])['includes'](_0x4298ff['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x9d6632),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x2de9c2=>_0x2de9c2-this['_config']['maxCommentsWhenCollapsed']);for(const _0x44e37c of _0x485cad['comments'])this['_handleNewCommentModel'](_0x44e37c);this['_handleInfoComment'](),this['listenTo'](_0x485cad['comments'],'add',(_0x4d65a9,_0xd45f83)=>{const _0x17aa89=this['_calculatePosition'](_0xd45f83);this['length']++,this['_handleNewCommentModel'](_0xd45f83,_0x17aa89),this['refreshVisibleViews']();}),this['listenTo'](_0x485cad['comments'],'remove',(_0x351a85,_0x8a6039)=>{this['length']--,this['_handleRemoveCommentModel'](_0x8a6039),this['refreshVisibleViews']();}),this['listenTo'](_0x485cad,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x485cad,'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',_0x3f2d4f['if']('length','ck-hidden',_0x228142=>!_0x228142)],'aria-label':E(_0x9d6632,'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'](_0x1fbb78){-0x1===_0x1fbb78?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4f81a1 of this['commentViews'])_0x4f81a1['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x76109b,_0x4b017f){const _0x3576a0=new this['_config']['CommentView'](this['locale'],_0x76109b,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x3576a0['viewUid']=_0x76109b['id'],_0x3576a0['delegate']('removeComment')['to'](this),_0x3576a0['delegate']('updateComment')['to'](this),_0x3576a0['delegate']('resolveCommentThread')['to'](this),_0x3576a0['delegate']('editorReady')['to'](this),_0x3576a0['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x3576a0,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x3576a0,_0x4b017f);}['_calculatePosition'](_0xef91dc){const _0x387534=this['_model']['_findOptimalIndex'](_0xef91dc);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0xef91dc['authoredAt']?_0x387534-0x1:_0x387534:_0x387534-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x44abec={'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'],_0x44abec,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x44abec));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x2f8e9d){const _0x3c1df9=this['commentViews']['remove'](_0x2f8e9d['id']);this['stopListening'](_0x3c1df9),_0x3c1df9['isEditMode']&&this['_updateHasDirtyComment'](),_0x3c1df9['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0xd31d58=>_0xd31d58['isEditMode']);}['_rearrangeCollapse'](){const _0x5e30fd=function(_0x31f4fc){const _0x19ed78=new _0x3eedb8();for(const _0x1c7052 of _0x31f4fc)_0x19ed78['add'](_0x1c7052);return _0x19ed78;}(this['commentViews']),_0x319efa=this['_collapsedCommentsView']['count'];for(let _0x4a9eaa=0x1;_0x4a9eaa<=_0x319efa;_0x4a9eaa++)_0x5e30fd['remove'](0x1);for(const _0x28b743 of _0x5e30fd)_0x28b743['collapse']();_0x319efa>0x0&&_0x5e30fd['add'](this['_collapsedCommentsView'],0x1),ns(_0x4d771c(Array['from'](this['visibleViews']),Array['from'](_0x5e30fd)),this['visibleViews'],_0x5e30fd);}['_rearrangeExpand'](){ns(_0x4d771c(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1ca275 of this['visibleViews'])_0x1ca275['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x3b8479=>{this['focusTracker']['add'](_0x3b8479['element']),this['keystrokes']['listenTo'](_0x3b8479['element']);}),this['commentViews']['on']('change',(_0x20afc4,_0x41b321)=>{for(const _0x6b718b of _0x41b321['removed'])this['focusTracker']['remove'](_0x6b718b['element']),this['keystrokes']['stopListening'](_0x6b718b['element']);for(const _0x40739a of Array['from'](_0x41b321['added'])['reverse']())this['focusTracker']['add'](_0x40739a['element']),this['keystrokes']['listenTo'](_0x40739a['element']);});}}function ns(_0x2842b5,_0x37a49e,_0x3c5a1e){let _0x3ff8c1=0x0;for(const _0x3b9d1e of _0x2842b5)switch(_0x3b9d1e){case'insert':_0x37a49e['add'](_0x3c5a1e['get'](_0x3ff8c1),_0x3ff8c1),_0x3ff8c1++;break;case'delete':_0x37a49e['remove'](_0x3ff8c1);break;case'equal':_0x3ff8c1++;}}class as extends kt{constructor(_0x1ff495){super(_0x1ff495);const _0x3d4199=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3d4199['to']('contextValue',_0xb5e6a8=>E(_0x1ff495,'THREAD_CONTEXT_LABEL',_0xb5e6a8)),'tabindex':-0x1},'children':[{'text':_0x3d4199['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x117071,_0x48a5f9){super(_0x117071);const _0x54e91d=this['bindTemplate'];this['_model']=_0x48a5f9,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x29f230(),this['keystrokes']=new jt(),this['focusCycler']=new _0x8029a4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0xde9a75=>!!_0xde9a75),this['bind']('contextValue')['to'](this['_model'],'context',_0x5bfcfb=>_0x5bfcfb&&_0x5bfcfb['value']?this['_trimContextValue'](_0x5bfcfb['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',_0x54e91d['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 _0x4394eb=new _0x3f387b(this['locale']);return _0x4394eb['label']=E(this['locale'],'Reopen'),_0x4394eb['tooltip']=E(this['locale'],'Reopen'),_0x4394eb['icon']=_0x2b5243,_0x4394eb['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3966da=>!_0x3966da),_0x4394eb['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x588f3a,_0xe10b2f)=>_0x588f3a&&_0xe10b2f),_0x4394eb['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x4394eb;}['_trimContextValue'](_0x14ecec){if(_0x14ecec['length']<0x96)return _0x14ecec;const _0x1dae7e=_0x14ecec['lastIndexOf']('\x20',0x93);return _0x14ecec['substring'](0x0,_0x1dae7e>-0x1?_0x1dae7e:0x93)+'...';}['_attachContextActions'](){const _0x177e14=this['element']['querySelector']('.ck-context'),_0x255d00=_0x177e14['querySelector']('.ck-context__value');this['listenTo'](_0x177e14,'mouseenter',()=>{_0x255d00['offsetWidth']<_0x255d00['scrollWidth']&&_0x177e14['classList']['add']('overlay');}),this['listenTo'](_0x177e14,'mouseleave',()=>{_0x177e14['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x11f958 of this['focusables'])this['focusTracker']['add'](_0x11f958['element']),this['keystrokes']['listenTo'](_0x11f958['element']);}['_createContextView'](){const _0x48b291=new as(this['locale']);return _0x48b291['bind']('contextValue')['to'](this),_0x48b291;}}class ts extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x17fc43,_0x219994,_0x5b6eb3,_0x54fc14){super(_0x17fc43),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x219994,this['_localUser']=_0x5b6eb3,this['_config']=_0x54fc14,this['commentThreadHeaderView']=new Xt(_0x17fc43,_0x219994),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x17fc43,E(_0x17fc43,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x17fc43,_0x219994,Object['assign']({'CommentView':this['_config']['CommentView']},_0x54fc14)),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',(_0x192362,_0x4a1783)=>_0x192362||!!_0x4a1783),this['bind']('isUnlinked')['to'](_0x219994,'unlinkedAt',_0x449889=>!!_0x449889),this['bind']('ariaLabel')['to'](this,'length',_0x430dab=>{const _0x3c0a90=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x430dab,_0x3c0a90]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x29f230(),this['keystrokes']=new jt(),this['focusCycler']=new _0x8029a4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x19e47d=>_0x19e47d['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 _0x6dc012=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x51902c=_0x6dc012['commentInputView'];return _0x6dc012['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x51902c,'value',(_0x55597d,_0x37ea60,_0x1a4d27,_0x5532b5,_0x319b16)=>!!_0x319b16||!!_0x5532b5&&_0x1a4d27&&!_0x37ea60||_0x55597d&&_0x1a4d27&&!_0x37ea60),_0x51902c['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x177b66,_0x5a1c83,_0x1d004c)=>{let _0x4d19ff;return _0x4d19ff=_0x1d004c&&_0x5a1c83?'Reply\x20to\x20reopen\x20discussion...':_0x177b66?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x4d19ff);}),_0x51902c['bind']('submitLabel')['to'](this,'length',_0x20089f=>E(this['locale'],_0x20089f?'Reply':'Comment')),_0x51902c['on']('submit',(_0x19be7e,_0x29001b)=>{this['fire']('addComment',_0x29001b),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x51902c['on']('cancel',()=>{this['focus']();}),_0x51902c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x51902c['on']('cancel',_0x55d048=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x55d048['stop']());}),this['on']('change:isActive',(_0x101c46,_0x237d2c,_0x29b50a)=>{_0x29b50a||this['length']||_0x51902c['value']||this['fire']('removeCommentThread');}),_0x6dc012;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(ts){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x6d7435,_0x39f7da,_0xa89e68,_0x4fd83c){super(_0x6d7435,_0x39f7da,_0xa89e68,_0x4fd83c),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x6d7435,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x20d2a0,_0x2de89f,_0x3f30f9)=>{_0x3f30f9||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1c59ce,_0x4e954d,_0x3e54bc)=>{_0x3e54bc&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x128643=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x128643['if']('isActive','ck-thread--active'),_0x128643['if']('isUnlinked','ck-thread--unlinked'),_0x128643['if']('isConfirm','ck-thread--remove-confirmation'),_0x128643['to']('actionIndicator',_0x7c3878=>_0x7c3878?'ck-thread--'+_0x7c3878:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x128643['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 _0x218ea3 of this['commentsListView']['commentViews'])_0x218ea3['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x580234}=this,_0x139c6c=this['commentsListView']['commentViews']['get'](0x0);_0x139c6c===this['_boundFirstCommentView']||_0x139c6c['isSystemComment']||(this['_boundFirstCommentView']=_0x139c6c,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x139c6c,'actionIndicator',_0x5b7595=>'remove'===_0x5b7595?'remove':null),_0x139c6c['placeholder']=E(_0x580234,'Write\x20a\x20comment...'),_0x139c6c['removeButton']['on']('execute',_0xc5d7c0=>{_0xc5d7c0['stop'](),this['showConfirm'](E(_0x580234,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x139c6c['focus']();}),_0x139c6c['actionBar']['add'](this['resolveButton'],0x0),_0x139c6c['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x350452=new _0x29d828(this['locale']);return _0x350452['label']=E(this['locale'],'Resolve'),_0x350452['tooltip']=E(this['locale'],'Resolve'),_0x350452['icon']=_0x42c630,_0x350452['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x350452['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2a78d3=>!_0x2a78d3),_0x350452['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x26556a,_0x2ecc02)=>_0x26556a&&!_0x2ecc02),_0x350452['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x350452;}['_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(_0x13b6e4){super(_0x13b6e4),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x223778,_0x399183,_0x140e09)=>{this['element']['innerHTML']=_0x140e09;}),this['element']['innerHTML']=this['content'];}}class hs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1fe20a,_0x9b9d5c,_0x583ba0){super(_0x1fe20a),this['_model']=_0x9b9d5c,this['_config']=_0x583ba0,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x9b9d5c,'content',_0x9b9d5c,'authoredAt',(_0x4b4998,_0x249ad4)=>E(_0x1fe20a,'COMMENT_ARIA_LABEL',[_0x9b9d5c['author']['name'],_0x583ba0['formatDateTime'](_0x249ad4),new DOMParser()['parseFromString'](_0x4b4998,'text/html')['body']['textContent'],_0x9b9d5c['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x1fe20a,E(_0x1fe20a,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x3ce2be(),this['focusTracker']=new _0x29f230(),this['keystrokes']=new jt(),this['focusCycler']=new _0x8029a4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xabecc1=>_0xabecc1['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 _0xe296f9=new es(this['locale']);return _0xe296f9['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x2ff206,_0x14492c)=>_0x14492c?_0x7e2601(_0x2ff206,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x2ff206),_0xe296f9;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1c40fa=new os(this['locale'],this['_config']['editorConfig']);return _0x1c40fa['value']=this['_model']['content'],_0x1c40fa['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1c40fa['submitLabel']=E(this['locale'],'Save'),_0x1c40fa['on']('submit',(_0x4f3236,_0x23f3aa)=>{this['fire']('updateComment',this['_model']['id'],_0x23f3aa),this['switchToDisplayMode'](),this['focus']();}),_0x1c40fa['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1c40fa['once']('editorReady',()=>{_0x1c40fa['focus']();}),_0x1c40fa['createEditor'](),_0x1c40fa['delegate']('editorReady')['to'](this),_0x1c40fa['delegate']('editorDestroyed')['to'](this),_0x1c40fa;}['_setupKeyboardNavigation'](){const _0x2c36ad=this['element'];this['keystrokes']['listenTo'](_0x2c36ad);for(const _0x446283 of this['focusables'])this['focusTracker']['add'](_0x446283['element']),this['keystrokes']['listenTo'](_0x446283['element']);this['focusables']['on']('change',(_0x12370c,_0x463c9d)=>{for(const _0x1269e5 of _0x463c9d['removed'])this['focusTracker']['remove'](_0x1269e5['element']),this['keystrokes']['stopListening'](_0x1269e5['element']);for(const _0x429dac of _0x463c9d['added'])this['focusTracker']['add'](_0x429dac['element']),this['keystrokes']['listenTo'](_0x429dac['element']);}),this['keystrokes']['set']('enter',(_0x2828c2,_0x42ce1d)=>{_0x2c36ad===_0x2828c2['target']&&(this['focusCycler']['focusFirst'](),_0x42ce1d());}),this['keystrokes']['set']('esc',(_0x529364,_0x561de9)=>{_0x2c36ad!==_0x529364['target']&&(this['focus'](),_0x561de9());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(hs){['actionBar'];['userView'];constructor(_0x412a56,_0x770470,_0x76c6b){super(_0x412a56,_0x770470,_0x76c6b),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x412a56,'Reply...')),this['bind']('authoredAt')['to'](_0x770470),this['bind']('resolvedAt')['to'](_0x770470),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 _0x122288(_0x412a56,_0x770470['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x770470,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5999c9=this['bindTemplate'],_0x49da36=[{'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':_0x5999c9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5999c9['to']('authoredAt',_0x464121=>this['_config']['formatDateTime'](_0x464121))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5999c9['if']('isEditMode','ck-comment__actions--hidden'),_0x5999c9['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']&&_0x49da36['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5999c9['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x5999c9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5999c9['if']('isEditMode','ck-comment--edit'),_0x5999c9['if']('isSystemComment','ck-comment--info'),_0x5999c9['to']('actionIndicator',_0x15f203=>_0x15f203?'ck-comment--'+_0x15f203:'')],'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':_0x49da36}]}]};}['_createEditButton'](){const _0x4e7317=new _0x3f387b(this['locale']);return _0x4e7317['label']=E(this['locale'],'Edit'),_0x4e7317['icon']=_0x4d1fe3,_0x4e7317['withText']=!0x0,_0x4e7317['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x4e7317['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3eda9c=>!_0x3eda9c),_0x4e7317['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x4e7317['on']('execute',()=>this['switchToEditMode']()),_0x4e7317;}['_createRemoveButton'](){const _0x453063=new _0x3f387b(this['locale']);return _0x453063['label']=E(this['locale'],'Remove'),_0x453063['icon']=_0x3a2054,_0x453063['withText']=!0x0,_0x453063['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x453063['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x302fcb=>!_0x302fcb),_0x453063['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x453063['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x453063;}['_createDropdown'](){const _0x11fc77=_0x63d55e(this['locale'],_0xa15546),_0x3f5528=_0x11fc77['panelView']['children'],_0xb4eab7=new _0x246810(this['locale']),_0x302255=_0x11fc77['bindTemplate'];_0x44cdc(_0x11fc77,()=>this['items']['find'](_0x19445e=>_0x19445e['isVisible'])),_0x11fc77['extendTemplate']({'attributes':{'class':[_0x302255['if']('isVisible','ck-hidden',_0x23e71f=>!_0x23e71f)]}});const _0x2861ac=(_0x2a66ed,_0x168bae=-0x1)=>{const _0x2fa6ef=new _0xc714aa(this['locale']);_0x2fa6ef['children']['add'](_0x2a66ed);const _0x5755db=_0x168bae>-0x1?_0x168bae:_0xb4eab7['items']['length'];_0xb4eab7['items']['add'](_0x2fa6ef,_0x5755db);const _0xba1046=Array['from'](this['items']);_0x11fc77['unbind']('isEnabled','isVisible'),_0x11fc77['bind']('isEnabled')['toMany'](_0xba1046,'isEnabled',(..._0x485671)=>_0x485671['some'](_0x32c340=>_0x32c340)),_0x11fc77['bind']('isVisible')['toMany'](_0xba1046,'isVisible',(..._0x4da4ed)=>_0x4da4ed['some'](_0x26398c=>_0x26398c));};_0x11fc77['panelPosition']='sw',_0x11fc77['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x30e1c0});for(const _0x51e78f of this['items'])_0x2861ac(_0x51e78f);return _0x3f5528['add'](_0xb4eab7),_0x11fc77['listenTo'](this['items'],'add',(_0x580c5e,_0xbf8acc,_0x53eb1a)=>{_0x2861ac(_0xbf8acc,_0x53eb1a);}),_0x11fc77['listenTo'](this['items'],'remove',(_0x332f65,_0x473a31,_0x49032a)=>{_0xb4eab7['items']['remove'](_0x49032a);}),_0x11fc77;}['_attachActions'](_0x2f3277,_0x43ee78){const _0x401828=_0x2f3277&&_0x2f3277['element'];_0x401828&&(this['listenTo'](_0x401828,'mouseenter',()=>this['actionIndicator']=_0x43ee78),this['listenTo'](_0x401828,'focus',()=>this['actionIndicator']=_0x43ee78),this['listenTo'](_0x401828,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x401828,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x1268f8=super['_createCommentInputView']();return _0x1268f8['bind']('placeholder')['to'](this),_0x1268f8;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x26f5f9){const _0x5cf898=Dt(_0x26f5f9,0x1e),_0x257d68=new MutationObserver(_0x3fc939=>{for(const _0x5534ac of _0x3fc939)('attributes'==_0x5534ac['type']&&'class'==_0x5534ac['attributeName']||'childList'==_0x5534ac['type']||'characterData'==_0x5534ac['type'])&&_0x5cf898();});return{'attach'(_0x55f95b){_0x257d68['observe'](_0x55f95b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x257d68['disconnect'](),_0x5cf898['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x590226,_0x28a4d5){super(_0x590226),this['id']=_0x356753(),this['focusTracker']=new _0x29f230(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x25b578,_0x799ac5)=>this['fire']('Esc',_0x799ac5)),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'](_0x28a4d5),this['mainView']=_0x28a4d5;const _0x44b620=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x44b620['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 _0x21f549=this['element']['clientHeight'];_0x21f549&&(this['height']=_0x21f549);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x434faf(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x53af5c,target:_0x44f590,type:_0x17e4c1,isVisible:_0xbb9d4d=!0x0}){super(),this['view']=_0x53af5c,this['view']['element']||this['view']['render'](),this['_type']=_0x17e4c1,this['_target']=_0x44f590,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3eedb8([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x5ab584,_0x3ae0c0)=>{this['view']['focusTracker']['add'](_0x3ae0c0);}),this['focusableElements']['on']('remove',(_0x526b17,_0x106997)=>{this['view']['focusTracker']['remove'](_0x106997);}),this['set']('isVisible',_0xbb9d4d);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3d0bc9=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x3d0bc9),_0x3d0bc9;}get['targetRect'](){const _0x5ce8f9=this['target'];if(null===_0x5ce8f9)return null;if(_0x5ce8f9 instanceof _0x597a13)return _0x5ce8f9;const _0x417646=_0x5ce8f9['filter'](_0x710811=>function(_0x245798){const _0x37e980=_0x245798['offsetParent'];if(_0x37e980)return!0x0;const _0x212d3e=_0x245798['getClientRects']()['item'](0x0);return!!_0x212d3e;}(_0x710811));return 0x0===_0x417646['length']?null:new _0x597a13(_0x417646[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3fb75b){this['view']['isActive']=_0x3fb75b,this['view']['mainView']['isActive']=_0x3fb75b;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x472437){if(!(null===_0x472437||_0x472437 instanceof _0x597a13||Array['isArray'](_0x472437)&&_0x472437['every'](_0x1947e8=>li(_0x1947e8))))throw new _0x3b0292('annotation-invalid-target',null,{'target':_0x472437});}['_getNormalizedTarget'](){const _0x1a6705='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x1a6705)?[_0x1a6705]:_0x1a6705;}}function li(_0x2ca505){return null!==_0x2ca505&&'object'==typeof _0x2ca505&&'nodeType'in _0x2ca505&&0x1===_0x2ca505['nodeType'];}class _ extends _0x3eedb8{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x26a062=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x29f230(),this['_focusTracker']['on']('change:isFocused',(_0x849020,_0xe7873c,_0x174cdb)=>{_0x174cdb||this['fire']('blur');});for(const _0x151cff of _0x26a062)this['add'](_0x151cff);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x403c59){if(this['has'](_0x403c59))throw new _0x3b0292('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x403c59['innerView'],_0x403c59),this['_viewToAnnotation']['set'](_0x403c59['view'],_0x403c59);for(const _0x4c857f of _0x403c59['focusableElements'])this['_focusTracker']['add'](_0x4c857f);this['listenTo'](_0x403c59['focusableElements'],'add',(_0xa9e048,_0x1cc3b8)=>{this['_focusTracker']['add'](_0x1cc3b8);}),this['listenTo'](_0x403c59['focusableElements'],'remove',(_0x596a96,_0x15d9a8)=>{this['_focusTracker']['remove'](_0x15d9a8);}),this['listenTo'](_0x403c59['view']['focusTracker'],'change:isFocused',(_0x1ddadd,_0x17e8bb,_0x560f7c)=>{_0x560f7c&&this['fire']('focus',_0x403c59);}),_0x403c59['updateTargetRect']();const _0x11b4d4=this['_getOrderInContent'](_0x403c59['view']['targetRect']);return super['add'](_0x403c59,_0x11b4d4);}['remove'](_0x423f29){if(!this['has'](_0x423f29))throw new _0x3b0292('annotationcollection-not-existing-item',null);this['stopListening'](_0x423f29['view']['focusTracker']),this['stopListening'](_0x423f29['focusableElements']);for(const _0x19d256 of _0x423f29['focusableElements'])this['_focusTracker']['remove'](_0x19d256);return this['_viewToAnnotation']['delete'](_0x423f29['view']),this['_innerViewToAnnotation']['delete'](_0x423f29['innerView']),super['remove'](_0x423f29);}['getByInnerView'](_0x26e798){return this['_innerViewToAnnotation']['get'](_0x26e798);}['getByView'](_0x57188b){return this['_viewToAnnotation']['get'](_0x57188b);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5cfbcc of this)_0x5cfbcc['updateTargetRect']();this['_sort']();}['_sort'](){const _0x57851d=Array['from'](this)['sort']((_0x35a32d,_0x3794e1)=>v(_0x35a32d['view']['targetRect'],_0x3794e1['view']['targetRect']));for(let _0x4581f7=_0x57851d['length']-0x1;_0x4581f7>0x0;_0x4581f7--){const _0x46e94d=_0x57851d[_0x4581f7];_0x4581f7!==this['getIndex'](_0x46e94d)&&(this['remove'](_0x46e94d),this['add'](_0x46e94d));}}['_getOrderInContent'](_0x5cd320){let _0x2b5acb=0x0;if(!_0x5cd320)return this['length'];for(const _0x8389d4 of this){const _0x275024=_0x8389d4['view']['targetRect'];if(_0x275024){if(v(_0x5cd320,_0x275024)<0x0)return _0x2b5acb;_0x2b5acb++;}}return _0x2b5acb;}}function v(_0xe0658f,_0x336e85){if(null===_0xe0658f&&null===_0x336e85)return 0x0;if(null===_0xe0658f)return-0x1;if(null===_0x336e85)return 0x1;const _0x2c7f17=_0xe0658f['top']-_0x336e85['top'];return 0x0==_0x2c7f17?_0xe0658f['left']-_0x336e85['left']:_0x2c7f17;}class O extends _0x4d0391{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x391ded){if(super(_0x391ded),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x391ded instanceof _0x53b75b){const _0x500eb2=_0x391ded['locale'];_0x391ded['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x500eb2,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x500eb2,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x500eb2,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x500eb2,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x500eb2,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x500eb2,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x500eb2,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x5af26d){this['collection']['add'](_0x5af26d);}['remove'](_0x37d9fa){this['collection']['remove'](_0x37d9fa),_0x37d9fa['destroy']();}['refreshVisibility'](){for(const _0x1fdd5c of this['collection'])_0x1fdd5c['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x450ada){return this['collection']['getByInnerView'](_0x450ada);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x31b0bf of this['collection'])_0x31b0bf['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x7e635b){this['fire']('_activateAnnotation',_0x7e635b);}['createAnnotation'](_0x133eb4){return new d(_0x133eb4);}['createAnnotationView'](_0x506052,_0x51313d){return new S(_0x506052,_0x51313d);}['_addActiveAnnotation'](_0x160373){const _0x959734=new Set(this['activeAnnotations']);_0x959734['add'](_0x160373),this['activeAnnotations']=_0x959734;}['_removeActiveAnnotation'](_0x477071){const _0x46d24d=new Set(this['activeAnnotations']);_0x46d24d['delete'](_0x477071),this['activeAnnotations']=_0x46d24d;}['_bindAnnotationsToVisibleAnnotations'](){const _0x1e05df=this['collection'],_0x46ae5e=this['_visibleAnnotations'];function _0x5aa12e(_0x15dd6c){const _0x3c4b46=_0x15dd6c['source'];_0x3c4b46['isVisible']&&!_0x46ae5e['has'](_0x3c4b46)?_0x46ae5e['add'](_0x3c4b46):!_0x3c4b46['isVisible']&&_0x46ae5e['has'](_0x3c4b46)&&_0x46ae5e['remove'](_0x3c4b46),_0x3c4b46['view']['focusTracker']['remove'](_0x3c4b46['view']['element']),_0x3c4b46['view']['focusTracker']['add'](_0x3c4b46['view']['element']);}this['listenTo'](_0x1e05df,'add',(_0x381f4d,_0x1d3850)=>{_0x1d3850['isVisible']&&_0x46ae5e['add'](_0x1d3850),this['listenTo'](_0x1d3850,'change:isVisible',_0x5aa12e);}),this['listenTo'](_0x1e05df,'remove',(_0x52cb3e,_0x4123de)=>{_0x46ae5e['has'](_0x4123de)&&_0x46ae5e['remove'](_0x4123de),this['stopListening'](_0x4123de,'change:isVisible',_0x5aa12e);});}['_setupEnterAnnotationKeystroke'](){const _0x2d4882=_0x287cba=>{_0x287cba['on']('ready',()=>{_0x287cba['keystrokes']['set'](_0x52545c,(_0x90847a,_0x5a20c0)=>{const _0x5c0646=_0x185237(this['activeAnnotations']['values']());_0x5c0646&&(_0x5c0646['view']['focus'](),_0x5a20c0());});});};this['context']instanceof _0x53b75b?_0x2d4882(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x57106c,_0x4aad8e)=>{_0x2d4882(_0x4aad8e);});}['_setupEscapeAnnotationHandling'](){const _0x231919=_0x25ccb4=>{const _0x5736f2=_0x25ccb4['source'],_0x9774e3=[];let _0x54d93e;if(Array['isArray'](_0x5736f2['target'])){_0x54d93e=_0x5736f2['target'][0x0],this['context']instanceof _0x53b75b?_0x9774e3['push'](this['context']):this['context']['editors']&&_0x9774e3['push'](...this['context']['editors']);for(const _0x562df8 of _0x9774e3)for(const _0x574049 of _0x562df8['editing']['view']['domRoots']['values']())if(_0x574049['contains'](_0x54d93e))return void _0x562df8['editing']['view']['focus']();_0x54d93e['focus']();}};this['listenTo'](this['collection'],'add',(_0x195136,_0x15eaf5)=>{this['listenTo'](_0x15eaf5,'escape',_0x231919,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x516791,_0x159bd1)=>{this['stopListening'](_0x159bd1,'escape',_0x231919);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x4d0391{['_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(_0x226edb){super(_0x226edb),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x19375d=this['context']['config'];_0x19375d['define']('comments.maxCommentsWhenCollapsed',0x2),_0x19375d['define']('comments.maxThreadTotalWeight',0x1f4),_0x19375d['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x19375d['define']('comments.CommentThreadView',vt),_0x19375d['define']('comments.CommentView',gt),_0x19375d['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x25d9fa=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x3fadc8,_0x1c148b)=>this['_addCommentThread'](_0x1c148b)),this['on']('submitCommentThread',(_0x29d26e,_0x1b1987)=>this['_submitCommentThread'](_0x1b1987)),this['on']('resolveCommentThread',(_0x576225,_0x28ad78)=>this['_resolveCommentThread'](_0x28ad78)),this['on']('resolveCommentThread',(_0x2b04d4,_0x5f2bea)=>this['_updateActiveAnnotation'](_0x5f2bea),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x507073,_0x2f9ee9)=>this['_reopenCommentThread'](_0x2f9ee9)),this['on']('reopenCommentThread',(_0x2517c8,_0x40342a)=>this['_updateActiveAnnotation'](_0x40342a),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x390322,_0x1ec34a)=>this['_removeCommentThread'](_0x1ec34a)),this['on']('updateCommentThread',(_0x577485,_0x1f469b)=>this['_updateCommentThread'](_0x1f469b)),this['on']('updateCommentThread',(_0x479fde,_0x52fd3e)=>this['_updateActiveAnnotation'](_0x52fd3e),{'priority':'lowest'}),this['on']('addComment',(_0x6c804d,_0x43db61)=>this['_addComment'](_0x43db61)),this['on']('updateComment',(_0x4fb704,_0x3a959d)=>this['_updateComment'](_0x3a959d)),this['on']('removeComment',(_0x5ee52d,_0x3b4705)=>this['_removeComment'](_0x3b4705)),this['on']('addComment',(_0x2b3076,{threadId:_0x3ff66f,isFromAdapter:_0x2c2aba})=>{if(_0x2c2aba)return;const _0x4faee1=this['getCommentThread'](_0x3ff66f),_0x1c3b7a=_0x4faee1&&this['_threadToController']['get'](_0x4faee1);_0x1c3b7a&&_0x1c3b7a['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x25d9fa,'change:activeAnnotations',(_0x533997,_0x32dd2f,_0x337976)=>{const _0x3393e4=Array['from'](_0x337976)['map'](_0x11eaaa=>this['_viewToController']['get'](_0x11eaaa['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3393e4?_0x3393e4['model']:null;});}set['adapter'](_0x3d9f17){if(this['_adapter'])throw new _0x3b0292('commentsrepository-adapter-already-set');this['_adapter']=_0x3d9f17;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x3242b2=Tt,threadId:_0x8a6e23=_0x356753(),comments:_0x14022c=[],unlinkedAt:_0x350b8e=null,resolvedAt:_0xe73360=null,resolvedBy:_0x5f37e7=null,target:_0x56f101=null,context:_0x170d85=null,attributes:_0x7b88ad={},isResolvable:_0x5b888e=!0x0,isSubmitted:_0x32c216=!0x1,isFromAdapter:_0x3c2428=!0x1}={}){return this['fire'](bt('addCommentThread',_0x3242b2),{'channelId':_0x3242b2,'threadId':_0x8a6e23,'comments':_0x14022c,'unlinkedAt':_0x350b8e,'resolvedAt':_0xe73360,'resolvedBy':_0x5f37e7,'target':_0x56f101,'context':_0x170d85,'attributes':_0x7b88ad,'isFromAdapter':_0x3c2428,'isResolvable':_0x5b888e,'isSubmitted':_0x32c216}),this['getCommentThread'](_0x8a6e23);}['openNewCommentThread']({channelId:_0x5f4fea=Tt,threadId:_0x1fcd4b=_0x356753(),target:_0x473c4f,context:_0x1c9c3e=null,isResolvable:_0x294e29=!0x0}){if(this['_readOnlyChannels']['has'](_0x5f4fea)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x473c4f)throw new _0x3b0292('commentsrepository-missing-target');const _0x54f8b3=this['addCommentThread']({'channelId':_0x5f4fea,'threadId':_0x1fcd4b,'target':_0x473c4f,'context':_0x1c9c3e,'isResolvable':_0x294e29});if(!_0x54f8b3)return null;const _0x1570b7=this['_threadToController']['get'](_0x54f8b3),_0x555fc5=_0x1570b7['view']['commentThreadInputView']['commentInputView'],_0xa734a3=this['context']['plugins']['get'](O),_0x7808b1=_0xa734a3['getByInnerView'](_0x1570b7['view']);return _0xa734a3['activate'](_0x7808b1),_0x555fc5['once']('editorReady',()=>_0x555fc5['focus']()),_0x54f8b3;}['hasCommentThread'](_0x234c92){if('string'!=typeof _0x234c92)throw new _0x3b0292('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x234c92);}['updateCommentThread']({channelId:_0x56f5cc=Tt,threadId:_0x506e81,context:_0x173f92,unlinkedAt:_0x40e6e5,attributes:_0x291789,isFromAdapter:_0x58fe4c=!0x1}){return this['fire'](bt('updateCommentThread',_0x56f5cc),{'channelId':_0x56f5cc,'threadId':_0x506e81,'context':_0x173f92,'unlinkedAt':_0x40e6e5,'attributes':_0x291789,'isFromAdapter':_0x58fe4c}),this['getCommentThread'](_0x506e81);}['getCommentThread'](_0x255095){if('string'!=typeof _0x255095)throw new _0x3b0292('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x255095);}['fetchCommentThread']({channelId:_0x561423,threadId:_0x11c8bb}={}){const _0x3d62e0=this['getCommentThread'](_0x11c8bb);if(_0x3d62e0)return Promise['resolve'](_0x3d62e0);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3b0292('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x561423,'threadId':_0x11c8bb})['then'](_0x1ecaf8=>this['hasCommentThread'](_0x11c8bb)?this['getCommentThread'](_0x11c8bb):_0x1ecaf8?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x561423},_0x1ecaf8)):void 0x0)['catch'](_0x4a2413=>{throw console['error'](_0x4a2413),new _0x3b0292('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x23ae56,skipNotAttached:_0x2323b7=!0x1,skipEmpty:_0x3d8572=!0x1,toJSON:_0x262727=!0x1}={}){const _0x12eb3f=[];for(const _0x5d054a of this['_threads']['values']())_0x23ae56&&_0x5d054a['channelId']!==_0x23ae56||_0x2323b7&&!_0x5d054a['isAttached']||_0x3d8572&&0x0===_0x5d054a['length']||_0x12eb3f['push'](_0x5d054a);return _0x262727?_0x12eb3f['map'](_0x14a72d=>_0x14a72d['toJSON']()):_0x12eb3f;}['setActiveCommentThread'](_0x4c0c99){const _0x362977=this['context']['plugins']['get'](O);if(!_0x4c0c99)return void(this['activeCommentThread']&&_0x362977['deactivateAll']());const _0x5e39c9=this['getCommentThread'](_0x4c0c99);if(!_0x5e39c9)throw new _0x3b0292('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4c0c99});if(!this['_threadToController']['has'](_0x5e39c9))throw new _0x3b0292('commentsrepository-active-not-attached',null,{'threadId':_0x4c0c99});const _0x502b1b=_0x362977['getByInnerView'](this['_threadToController']['get'](_0x5e39c9)['view']);_0x362977['activate'](_0x502b1b);}['switchReadOnly'](_0x21ec62,_0x2464ed){_0x21ec62?this['_readOnlyChannels']['add'](_0x2464ed):this['_readOnlyChannels']['delete'](_0x2464ed),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x407a38){return this['_readOnlyChannels']['has'](_0x407a38)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x13665a,_0x2dada5){return new Ct(_0x13665a,_0x2dada5);}['setPermissions'](_0x14cd4a,_0x455743=Tt){this['_permissions']['set'](_0x455743,_0x14cd4a),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x39cc72=Tt){return this['_permissions']['has'](_0x39cc72)?this['_permissions']['get'](_0x39cc72):_t;}['_addCommentThread']({channelId:_0x140de0,threadId:_0x8f91e0,comments:_0x2cbf8d,unlinkedAt:_0x43ae81,resolvedAt:_0x506c09,resolvedBy:_0x1eb70d,target:_0x47302d,context:_0x2f88f9,attributes:_0x5e8bf6,isFromAdapter:_0x1419e9,isResolvable:_0x539126,isSubmitted:_0x3f7fc7}){if('string'!=typeof _0x8f91e0)throw new _0x3b0292('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x8f91e0});if(this['hasCommentThread'](_0x8f91e0))throw new _0x3b0292('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x8f91e0});const _0xcf754c=new ui(this,{'channelId':_0x140de0,'id':_0x8f91e0,'context':_0x2f88f9,'attributes':_0x5e8bf6,'unlinkedAt':_0x43ae81,'resolvedAt':_0x506c09,'resolvedBy':_0x1eb70d?this['context']['plugins']['get'](it)['getUser'](_0x1eb70d):null,'isResolvable':_0x539126,'isSubmitted':_0x3f7fc7||_0x1419e9});this['_threads']['set'](_0x8f91e0,_0xcf754c);for(const _0xf9b612 of _0x2cbf8d)_0xcf754c['_add'](this['_createNewComment']({'threadId':_0x8f91e0,..._0xf9b612}));return _0x47302d&&_0xcf754c['attachTo'](_0x47302d),_0x1419e9||!_0xcf754c['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x140de0,'threadId':_0x8f91e0});}['_submitCommentThread']({channelId:_0x3804ca,threadId:_0x4d5da5}){if(!this['hasCommentThread'](_0x4d5da5))throw new _0x3b0292('commentsrepository-missing-comment-thread',this);const _0x43e799=this['getCommentThread'](_0x4d5da5);if(_0x43e799['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x4effe3,comments:_0x4ef263,resolvedAt:_0x3df856,resolvedBy:_0x3e1937,context:_0x4009af,attributes:_0x19946a}=_0x43e799,_0x59cd6f=this['context']['plugins']['get']('PendingActions'),_0x2c7140=_0x59cd6f['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x3804ca,'threadId':_0x4effe3,'comments':_0x4ef263['map'](_0x29d097=>_0x29d097['toJSON']()),'resolvedAt':_0x3df856,'resolvedBy':_0x3e1937?_0x3e1937['id']:_0x3e1937,'context':_0x4009af,'attributes':_0x19946a})['then'](({comments:_0x52f563})=>{_0x59cd6f['remove'](_0x2c7140);for(const _0x2468ef of _0x52f563)this['_updateComment']({'channelId':_0x3804ca,'threadId':_0x4d5da5,'commentId':_0x2468ef['commentId'],'createdAt':_0x2468ef['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3d5edc=>{throw console['error'](_0x3d5edc),new _0x3b0292('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x55edb9,target:_0x190334}){const _0x566061=this['getCommentThread'](_0x55edb9);if(!_0x566061)throw new _0x3b0292('commentsrepository-attach-missing-comment-thread',this);const _0x9d7601=this['context']['plugins']['get']('PendingActions'),_0x23cde8=this['context']['plugins']['get'](O),_0x5b4ff5=this['_createCommentThreadView'](_0x566061),_0x1100b7=new Ct(_0x566061,_0x5b4ff5);let _0x887291=null;_0x5b4ff5['on']('change:isDirty',(_0xdb7a71,_0x3c6bb6,_0x27fadf)=>{_0x27fadf?_0x887291=_0x9d7601['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x887291&&(_0x9d7601['remove'](_0x887291),_0x887291=null);}),this['_threadToController']['set'](_0x566061,_0x1100b7),this['_viewToController']['set'](_0x5b4ff5,_0x1100b7);const _0x58d435=new S(this['context']['locale'],_0x5b4ff5);_0x58d435['bind']('length')['to'](_0x5b4ff5),_0x58d435['bind']('isDirty')['to'](_0x5b4ff5,'isDirty',_0x5b4ff5,'length',(_0x13d254,_0x9ecfd4)=>_0x13d254||!_0x9ecfd4),_0x58d435['bind']('isActive')['to'](_0x5b4ff5),_0x58d435['type']='comment';const _0x97001e=new d({'view':_0x58d435,'target':_0x190334,'type':'comment','isVisible':!_0x566061['archivedAt']});return _0x5b4ff5['on']('escape',()=>{_0x97001e['fire']('escape');}),this['_bindAnnotationToEditors'](_0x5b4ff5,_0x97001e),_0x23cde8['add'](_0x97001e),_0x97001e;}['_bindAnnotationToEditors'](_0x5f2fa4,_0x173f6b){this['listenTo'](_0x5f2fa4,'editorReady',(_0x1496e8,_0x47c066)=>{const _0x48d4c4=_0x47c066['ui']['view']['body']['bodyCollectionContainer'];_0x173f6b['focusableElements']['add'](_0x48d4c4),this['context']instanceof _0x53b75b&&this['context']['ui']['focusTracker']['add'](_0x48d4c4);},{'priority':'highest'}),this['listenTo'](_0x5f2fa4,'editorDestroyed',(_0x4e4277,_0x16db9c)=>{const _0x4cd3d2=_0x16db9c['ui']['view']['body']['bodyCollectionContainer'];_0x173f6b['focusableElements']['has'](_0x4cd3d2)&&_0x173f6b['focusableElements']['remove'](_0x4cd3d2),this['context']instanceof _0x53b75b&&this['context']['ui']['focusTracker']['remove'](_0x4cd3d2);});}['_unbindEditors'](_0x4910c6){this['stopListening'](_0x4910c6,'editorReady'),this['stopListening'](_0x4910c6,'editorDestroyed');}['_createCommentThreadView'](_0x4ff492){const _0x8d938=this['context']['plugins']['get'](it),{config:_0x57e054,locale:_0x4939da}=this['context'],_0x4f19ca=lt(_0x57e054['get']('locale'),_0x4939da);return new(0x0,(_0x57e054['get']('comments'))['CommentThreadView'])(_0x4939da,_0x4ff492,_0x8d938['me'],{'editorConfig':{..._0x57e054['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x57e054['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x57e054['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x57e054['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x57e054['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4f19ca,'CommentView':_0x57e054['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x54f5c5,channelId:_0xdae903,resolvedAt:_0x28c205,resolvedBy:_0x256aba,isFromAdapter:_0x5d7922}){if(!this['hasCommentThread'](_0x54f5c5))throw new _0x3b0292('commentsrepository-missing-comment-thread',null,{'threadId':_0x54f5c5});const _0x2a1e03=this['getCommentThread'](_0x54f5c5);if(_0x2a1e03['isResolved'])throw new _0x3b0292('commentsrepository-resolved-comment-thread',null,{'threadId':_0x54f5c5});const _0x2cddb3=this['context']['plugins']['get'](it);if(_0x2a1e03['resolvedBy']=_0x2cddb3['getUser'](_0x256aba),_0x2a1e03['resolvedAt']=_0x28c205,_0x5d7922||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x13affe=this['context']['plugins']['get']('PendingActions'),_0x249f06=_0x13affe['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0xdae903,'threadId':_0x54f5c5})['then'](({resolvedAt:_0xe64139,resolvedBy:_0x44a1a1})=>{_0x13affe['remove'](_0x249f06),_0x2a1e03['resolvedBy']['id']!==_0x44a1a1&&(_0x2a1e03['resolvedBy']=_0x2cddb3['getUser'](_0x44a1a1)),_0x2a1e03['resolvedAt']=_0xe64139;})['catch'](_0x479c69=>{throw console['error'](_0x479c69),new _0x3b0292('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0xee1401,channelId:_0x453eed,isFromAdapter:_0x3a90f1}){if(!this['hasCommentThread'](_0xee1401))throw new _0x3b0292('commentsrepository-missing-comment-thread',null,{'threadId':_0xee1401});const _0x508c11=this['getCommentThread'](_0xee1401);if(!_0x508c11['isResolved'])throw new _0x3b0292('commentsrepository-reopen-comment-thread',null,{'threadId':_0xee1401});if(_0x508c11['resolvedBy']=null,_0x508c11['resolvedAt']=null,_0x3a90f1||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1de527=this['context']['plugins']['get']('PendingActions'),_0x3ffa36=_0x1de527['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x453eed,'threadId':_0xee1401})['then'](()=>_0x1de527['remove'](_0x3ffa36))['catch'](_0x2f70cf=>{throw console['error'](_0x2f70cf),new _0x3b0292('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x8e1ea7,isFromAdapter:_0x59a761}){const _0x42d475=this['getCommentThread'](_0x8e1ea7);if(!_0x42d475)throw new _0x3b0292('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x8e1ea7),this['_threads']['delete'](_0x8e1ea7),!_0x42d475['isSubmitted']||_0x59a761||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x4a5465=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4104fc}=_0x42d475,_0xe89402=_0x4a5465['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x4104fc,'threadId':_0x8e1ea7})['then'](()=>_0x4a5465['remove'](_0xe89402))['catch'](_0x19e3d4=>{throw console['error'](_0x19e3d4),new _0x3b0292('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x13ea1b,unlinkedAt:_0x43d0c0,context:_0x2a5f77,attributes:_0x34e187,isFromAdapter:_0x204df4}){if('string'!=typeof _0x13ea1b)throw new _0x3b0292('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x13ea1b});if(!this['hasCommentThread'](_0x13ea1b))throw new _0x3b0292('commentsrepository-missing-comment-thread',null,{'threadId':_0x13ea1b});const _0x573ed1=this['getCommentThread'](_0x13ea1b);let _0x5121f1=!0x1;if(void 0x0!==_0x2a5f77&&_0x573ed1['context']!==_0x2a5f77&&(_0x573ed1['context']=_0x2a5f77,_0x5121f1=!0x0),void 0x0!==_0x43d0c0&&_0x573ed1['unlinkedAt']!==_0x43d0c0&&(_0x573ed1['unlinkedAt']=_0x43d0c0,_0x5121f1=!0x0),_0x34e187&&!wt(_0x34e187,_0x573ed1['attributes'])&&(_0x573ed1['attributes']=_0x34e187,_0x5121f1=!0x0),!_0x5121f1)return Promise['resolve']();if(!_0x573ed1['isSubmitted']||_0x204df4||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x44df17=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1f47b4}=_0x573ed1,_0x155615=_0x44df17['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1f47b4,'threadId':_0x13ea1b,'context':_0x2a5f77,'unlinkedAt':_0x43d0c0,'attributes':_0x34e187})['then'](()=>_0x44df17['remove'](_0x155615))['catch'](_0x1106c4=>{throw console['error'](_0x1106c4),new _0x3b0292('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x4e2c22){const _0x2210c6=this['context']['plugins']['get'](O),_0x41247f=this['getCommentThread'](_0x4e2c22);if(_0x41247f['_isAttached']=!0x1,this['_threadToController']['has'](_0x41247f)){const _0x54f2a5=this['_threadToController']['get'](_0x41247f),_0x4b7e49=_0x54f2a5['view'],_0x2e3ac0=_0x2210c6['getByInnerView'](_0x4b7e49);this['_threadToController']['delete'](_0x41247f),this['_viewToController']['delete'](_0x4b7e49),_0x2e3ac0&&_0x2210c6['remove'](_0x2e3ac0),_0x54f2a5['destroy'](),_0x4b7e49['destroy']()['then'](()=>{this['_unbindEditors'](_0x4b7e49);});}}['_updateActiveAnnotation']({threadId:_0x5d5fb9,resolvedAt:_0x27d19e,unlinkedAt:_0xfdc290}){const _0x10dcd1=!!_0x27d19e,_0x508677=this['context']['plugins']['get'](O),_0x4a0027=this['getCommentThread'](_0x5d5fb9);if(this['_threadToController']['has'](_0x4a0027)){const _0x1d6ffa=this['_threadToController']['get'](_0x4a0027)['view'],_0x1054e1=_0x508677['getByInnerView'](_0x1d6ffa);_0x1054e1&&(_0x10dcd1&&_0x508677['_removeActiveAnnotation'](_0x1054e1),_0xfdc290?_0x1054e1['isVisible']=!0x1:_0x1054e1['refreshVisibility']());}}['_getExternalAuthor'](_0xa8b81f){const _0x4325ee=this['context']['plugins']['get'](it),_0x1580e5=pt('external:'+_0xa8b81f),_0x23b737=_0x4325ee['getUser'](_0x1580e5);return _0x23b737||_0x4325ee['addUser']({'id':_0x1580e5,'name':_0xa8b81f});}['_createNewComment']({threadId:_0xb2acf4,commentId:_0x511e93=_0x356753(),content:_0x9952ff,authorId:_0x1a5cf5,createdAt:_0x2b7402,attributes:_0x4587bb}){if('string'!=typeof _0x511e93)throw new _0x3b0292('commentsrepository-invalid-commentid');if('string'!=typeof _0x1a5cf5)throw new _0x3b0292('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x9952ff||!_0x9952ff['trim']())throw new _0x3b0292('commentsrepository-invalid-comment-content');const _0x413ec4=this['context']['plugins']['get'](it)['getUser'](_0x1a5cf5);if(!_0x413ec4)throw new _0x3b0292('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1a5cf5});let _0xb7c976=null,_0x5044a6=_0x2b7402;return _0x4587bb?.['@external']&&(_0xb7c976=this['_getExternalAuthor'](_0x4587bb['@external']['authorName']),_0x5044a6=new Date(_0x4587bb['@external']['createdAt'])),new fi(this,{'threadId':_0xb2acf4,'id':_0x511e93,'author':_0xb7c976||_0x413ec4,'creator':_0x413ec4,'content':_0x9952ff,'createdAt':_0x2b7402,'authoredAt':_0x5044a6,'attributes':_0x4587bb});}['_addComment'](_0x40e7da){let {threadId:_0x1e5b73,content:_0x39b79a,attributes:_0x5e48df,isFromAdapter:_0x149a45}=_0x40e7da;const _0x22057d=this['getCommentThread'](_0x40e7da['threadId']);if(!_0x22057d)throw new _0x3b0292('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x37858f=this['_createNewComment'](_0x40e7da),{id:_0x237afe}=_0x37858f;if(_0x22057d['_add'](_0x37858f),_0x149a45||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x22057d['isSubmitted'])return Promise['resolve']();const _0x5089c6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2db981}=_0x22057d,_0x446741=_0x5089c6['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x5e48df||(_0x5e48df={}),this['adapter']['addComment']({'channelId':_0x2db981,'threadId':_0x1e5b73,'commentId':_0x237afe,'content':_0x39b79a,'attributes':_0x5e48df})['then'](_0x3d7cbe=>{_0x5089c6['remove'](_0x446741),_0x3d7cbe&&this['_updateComment']({'channelId':_0x2db981,'threadId':_0x1e5b73,'commentId':_0x237afe,'createdAt':_0x3d7cbe['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x9779c2=>{throw console['error'](_0x9779c2),new _0x3b0292('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x36e757,commentId:_0x44d428,content:_0x1eaf69,createdAt:_0x2699f9,attributes:_0x111cd8,isFromAdapter:_0xca95d9}){if(void 0x0!==_0x1eaf69&&('string'!=typeof _0x1eaf69||!_0x1eaf69['trim']()['length']))throw new _0x3b0292('commentsrepository-update-comment-invalid-content');const _0x480874=this['getCommentThread'](_0x36e757),_0x8b175a=_0x480874['getComment'](_0x44d428);if(!_0x8b175a)throw new _0x3b0292('commentsrepository-update-missing-comment',this);let _0x547a5f=!0x1;if(_0x1eaf69&&_0x1eaf69!==_0x8b175a['content']&&(_0x8b175a['isEditable']||_0xca95d9)&&(_0x8b175a['content']=_0x1eaf69,_0x547a5f=!0x0),_0x2699f9&&_0x2699f9!==_0x8b175a['createdAt']&&(_0x8b175a['createdAt']=_0x2699f9,_0x8b175a['attributes']&&_0x8b175a['attributes']['@external']||(_0x8b175a['authoredAt']=_0x2699f9),_0x547a5f=!0x0),_0x111cd8&&!wt(_0x111cd8,_0x8b175a['attributes'])&&(_0x8b175a['attributes']=_0x111cd8,_0x547a5f=!0x0),!_0x547a5f)return Promise['resolve']();if(_0x480874['fire']('commentUpdated'),_0xca95d9||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x343480=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1fe9df}=this['getCommentThread'](_0x8b175a['threadId']),_0x4bbef8=_0x343480['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x1fe9df,'threadId':_0x36e757,'commentId':_0x44d428,'content':_0x1eaf69,'attributes':_0x111cd8})['then'](()=>_0x343480['remove'](_0x4bbef8))['catch'](_0xf252e8=>{throw console['error'](_0xf252e8),new _0x3b0292('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x135136,commentId:_0x2a0237,isFromAdapter:_0x43d5e7}){const _0x487ece=this['getCommentThread'](_0x135136),_0x1d7ae3=_0x487ece['getComment'](_0x2a0237);if(!_0x1d7ae3)throw new _0x3b0292('commentsrepository-remove-missing-comment',this);if(_0x487ece['_remove'](_0x1d7ae3),_0x43d5e7||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x15e508=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1798bb}=_0x487ece,_0x21ab31=_0x15e508['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1798bb,'threadId':_0x135136,'commentId':_0x2a0237})['then'](()=>_0x15e508['remove'](_0x21ab31))['catch'](_0x5446b6=>{throw console['error'](_0x5446b6),new _0x3b0292('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
+ _0x434faf(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0xb4ed08,_0x4c3128){super();const _0x477898=_0x4c3128['isResolvable'];this['channelId']=_0x4c3128['channelId'],this['id']=_0x4c3128['id'],this['comments']=new _0x3eedb8(),this['_repository']=_0xb4ed08,this['_isAttached']=!0x1,this['_isSubmitted']=_0x4c3128['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0xb4ed08,'_permissions',_0xb4ed08,'_readOnlyChannels',()=>_0xb4ed08['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0xb4ed08,'_permissions',()=>_0xb4ed08['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0xb4ed08,'_permissions',()=>{const _0x6f342f=_0xb4ed08['getPermissions'](this['channelId']);return _0x6f342f['write']||_0x6f342f['admin'];}),this['bind']('isResolvable')['to'](_0xb4ed08,'_permissions',()=>_0x477898&&_0xb4ed08['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x4c3128['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x16a4d8,_0x2cb23b)=>_0x16a4d8?_0x2cb23b?_0x16a4d8<_0x2cb23b?_0x16a4d8:_0x2cb23b:_0x16a4d8:_0x2cb23b),this['set']('unlinkedAt',_0x4c3128['unlinkedAt']||null),this['set']('resolvedAt',_0x4c3128['resolvedAt']||null),this['set']('resolvedBy',_0x4c3128['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5cc13b=>!!_0x5cc13b),this['set']('attributes',_0x4c3128['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x29dda2,_0x1813c5)=>_0x29dda2+_0x1813c5['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x421261,id:_0x134813}=this;this['_repository']['fire'](bt('submitCommentThread',_0x421261),{'channelId':_0x421261,'threadId':_0x134813});}['setUnlinkedAt'](_0x2a939d){this['_update']({'unlinkedAt':_0x2a939d});}['resolve']({resolvedAt:_0x132574=new Date(),resolvedBy:_0x2a82a6=null,isFromAdapter:_0x2ccdeb=!0x1}={}){const _0x34180d=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4c7cae,id:_0x80c7db}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x4c7cae),{'channelId':_0x4c7cae,'threadId':_0x80c7db,'resolvedAt':_0x132574,'resolvedBy':_0x2a82a6||_0x34180d['id'],'isFromAdapter':_0x2ccdeb});}['reopen']({isFromAdapter:_0x4dc0e1=!0x1}={}){const {channelId:_0x148e05,id:_0x4e50c4}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x148e05),{'channelId':_0x148e05,'threadId':_0x4e50c4,'isFromAdapter':_0x4dc0e1});}['setContext'](_0x2d1f5a){this['context']||this['_update']({'context':_0x2d1f5a});}['setAttribute'](_0x1523c4,_0x449dc8){const _0x4ca55c=It(this['attributes']);At(_0x4ca55c,_0x1523c4,_0x449dc8),this['_update']({'attributes':_0x4ca55c});}['removeAttribute'](_0x113cc5){const _0x10b466=It(this['attributes']);yt(_0x10b466,_0x113cc5),this['_update']({'attributes':_0x10b466});}['remove']({isFromAdapter:_0x16485e=!0x1}={}){const {channelId:_0x46ff2c,id:_0x588210}=this;this['_repository']['fire'](bt('removeCommentThread',_0x46ff2c),{'channelId':_0x46ff2c,'threadId':_0x588210,'isFromAdapter':_0x16485e});}['attachTo'](_0x421c7f){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x421c7f});}['addComment'](_0x3cb907){const {channelId:_0x5e3829,id:_0xa7e9b8}=this;this['_repository']['fire'](bt('addComment',_0x5e3829,_0xa7e9b8),Object['assign']({'channelId':_0x5e3829,'threadId':_0xa7e9b8},_0x3cb907));}['getComment'](_0x2ae672){if('string'!=typeof _0x2ae672)throw new _0x3b0292('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2ae672});return this['comments']['get'](_0x2ae672);}['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'](_0x3a3d13=>_0x3a3d13['toJSON']()),'attributes':this['attributes']};}['_add'](_0x56c228){return this['listenTo'](_0x56c228,'change:authoredAt',()=>{const _0x447885=this['_findOptimalIndex'](_0x56c228),_0x18b0e7=this['comments'];_0x447885-0x1!=_0x18b0e7['getIndex'](_0x56c228)&&_0x447885+0x1!=_0x18b0e7['getIndex'](_0x56c228)&&(this['_remove'](_0x56c228),this['_add'](_0x56c228));}),this['comments']['add'](_0x56c228,this['_findOptimalIndex'](_0x56c228));}['_update'](_0xfb4322){const {channelId:_0x40fda0,id:_0x3c58dd}=this;this['_repository']['fire'](bt('updateCommentThread',_0x40fda0),{..._0xfb4322,'channelId':_0x40fda0,'threadId':_0x3c58dd});}['_remove'](_0x312129){return this['stopListening'](_0x312129),_0x312129['destroy'](),this['comments']['remove'](_0x312129);}['_findOptimalIndex'](_0x227062){const _0x23b03f=this['comments']['find'](_0x24616f=>new Date(_0x24616f['authoredAt'])['getTime']()>new Date(_0x227062['authoredAt'])['getTime']());return _0x23b03f?this['comments']['getIndex'](_0x23b03f):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
+ _0x434faf(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x4b1868,_0x1649dc){super();const _0x4f5eaf=_0x4b1868['context']['plugins']['get'](it)['me'],_0x9f82b=_0x4b1868['getCommentThread'](_0x1649dc['threadId']),_0x1a6601=0x0===_0x9f82b['comments']['length'],_0x42430a=_0x4f5eaf===_0x1649dc['author'];this['id']=_0x1649dc['id'],this['threadId']=_0x1649dc['threadId'],this['author']=_0x1649dc['author'],this['creator']=_0x1649dc['creator'],this['isExternal']=Boolean(_0x1649dc['attributes']&&_0x1649dc['attributes']['@external']),this['set']('content',_0x1649dc['content']),this['createdAt']=_0x1649dc['createdAt']||new Date(),this['set']('authoredAt',_0x1649dc['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x9f82b,'resolvedAt'),this['set']('attributes',_0x1649dc['attributes']||{}),this['bind']('isEditable')['to'](_0x4b1868,'_permissions',()=>{const _0x5f4e5a=_0x4b1868['getPermissions'](_0x9f82b['channelId'])['write'],_0x53f21f=_0x4b1868['getPermissions'](_0x9f82b['channelId'])['modifyAll'];return _0x42430a&&_0x5f4e5a||!_0x42430a&&_0x53f21f;}),this['bind']('isRemovable')['to'](_0x9f82b,'isRemovable',_0x4b1868,'_permissions',_0x3a8474=>{const _0x180bc9=_0x4b1868['getPermissions'](_0x9f82b['channelId'])['write'],_0x3c46e3=_0x4b1868['getPermissions'](_0x9f82b['channelId'])['modifyAll'];return _0x42430a&&_0x180bc9||_0x3a8474&&_0x1a6601||!_0x42430a&&_0x3c46e3&&!_0x1a6601;}),this['bind']('isReadOnly')['to'](_0x9f82b,'isReadOnly'),this['_repository']=_0x4b1868;}get['weight'](){return Math['max'](function(_0x55a866){const _0x132b3d=document['createElement']('div');return _0x132b3d['innerHTML']=_0x55a866,_0x132b3d['textContent']['length'];}(this['content']),0xc8);}['update'](_0x171ca6){const {threadId:_0x516751,id:_0x187ec6}=this;if(!this['_repository']['hasCommentThread'](_0x516751))throw new _0x3b0292('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0xd4e650}=this['_repository']['getCommentThread'](_0x516751);this['_repository']['fire'](bt('updateComment',_0xd4e650,_0x516751),{'channelId':_0xd4e650,'threadId':_0x516751,'commentId':_0x187ec6,..._0x171ca6});}['setAttribute'](_0xabe0e,_0x4f4dd1){const _0x3f0a82=It(this['attributes']);At(_0x3f0a82,_0xabe0e,_0x4f4dd1),this['update']({'attributes':_0x3f0a82});}['removeAttribute'](_0x31e507){const _0x157447=It(this['attributes']);yt(_0x157447,_0x31e507),this['update']({'attributes':_0x157447});}['remove'](_0x3c6eef={}){if(!_0x3c6eef['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x63227e,id:_0x4639f3}=this;if(!this['_repository']['hasCommentThread'](_0x63227e))throw new _0x3b0292('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x5f0c84}=this['_repository']['getCommentThread'](_0x63227e);this['_repository']['fire'](bt('removeComment',_0x5f0c84,_0x63227e),{'channelId':_0x5f0c84,'threadId':_0x63227e,'commentId':_0x4639f3,..._0x3c6eef});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x1b6546,..._0x364999){for(const _0x5a256e of _0x364999)void 0x0!==_0x5a256e&&(_0x1b6546+=':'+String(_0x5a256e));return _0x1b6546;}class J extends _0x1c82f3{['refresh'](){const _0x38fedc=this['editor']['model']['document']['selection'];for(const _0xfed6dd of _0x38fedc['getRanges']())if(this['_hasContent'](_0xfed6dd))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x41c8e7=_0x356753()}={}){const _0x575479=this['editor']['model'],_0x2de668=[];for(const _0x5dc4f4 of _0x575479['document']['selection']['getRanges']())this['_hasContent'](_0x5dc4f4)&&_0x2de668['push'](this['_trimToContent'](_0x5dc4f4));_0x575479['change'](_0x11be9e=>{for(const _0x537dc3 of _0x2de668){const _0x540496=_0x356753()['substr'](0x1,0x5),_0x49feb6='comment:'+_0x41c8e7+':'+_0x540496;_0x11be9e['addMarker'](_0x49feb6,{'range':_0x537dc3,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x5c0c59){for(const _0x5a296d of _0x5c0c59['getItems']())if(this['_itemIsContent'](_0x5a296d))return!0x0;return!0x1;}['_itemIsContent'](_0x5c6ee9){return _0x5c6ee9['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5c6ee9)&&!_0x5c6ee9['is']('element','tableCell');}['_trimToContent'](_0x48c9f3){const _0x8408c=_0x1808f4=>!this['_itemIsContent'](_0x1808f4['item']),_0x266701=_0x48c9f3['start']['getLastMatchingPosition'](_0x8408c),_0xde1db3=_0x48c9f3['end']['getLastMatchingPosition'](_0x8408c,{'direction':'backward'});return this['editor']['model']['createRange'](_0x266701,_0xde1db3);}}class P extends _0x51209d{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7d74c6){super(_0x7d74c6),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3b7c27=this['editor'],_0x2b4619=_0x3b7c27['model']['document']['selection'],_0x150d52=_0x4724d7(()=>this['refreshSelectedViews'](),0xa);_0x2b4619['on']('change:range',(_0x171aee,_0x5c33f7)=>{_0x5c33f7['directChange']&&(_0x150d52['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3b7c27['editing']['view']['document'],'change:isFocused',(_0x473fdb,_0x38402e,_0x3e0833)=>{_0x3e0833&&_0x150d52();}),this['listenTo'](_0x3b7c27['ui']['focusTracker'],'change:isFocused',(_0x38d4de,_0x4d5b17,_0x4101a8)=>{_0x4101a8||_0x3b7c27['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x399ede=>this['_editorAnnotationsData']['has'](_0x399ede['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x2b7ab1){if(this['_editorAnnotations']['has'](_0x2b7ab1['view']))return;this['_editorAnnotations']['add'](_0x2b7ab1['view']),this['editor']['ui']['focusTracker']['add'](_0x2b7ab1['view']['element']);const _0x5c86a7=this['editor']['plugins']['get'](O);this['listenTo'](_0x5c86a7['collection'],'remove',(_0x206775,_0x3d746d)=>{this['editor']['ui']['focusTracker']['remove'](_0x3d746d['view']['element']),this['_editorAnnotations']['delete'](_0x3d746d['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1143a4){if('function'!=typeof _0x1143a4)throw new _0x3b0292('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1143a4);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4a3e9d,annotations:_0xcfe9d}){const _0x2aca15=[],_0x49a014=this['editor']['model']['document']['selection'],_0xed396b=Array['from'](_0x49a014['getRanges']());for(const [_0xea38dc,_0x574aef]of this['_editorAnnotationsData']){const _0x118471=_0x2a16b7(_0x574aef),_0x33a7f1=_0xcfe9d['getByInnerView'](_0xea38dc);_0x118471&&_0x33a7f1&&_0x2aca15['push']({'annotation':_0x33a7f1,'range':_0x118471});}function _0x2a16b7(_0x14ec64){for(const _0x49b4ff of _0x14ec64)for(const _0x43a1bb of _0xed396b)if(_0x49b4ff['containsRange'](_0x43a1bb,!_0x49a014['isCollapsed']))return _0x49b4ff;return null;}return _0x2aca15['sort']((_0x5c83f3,_0x4f973d)=>{const _0x30dc36=_0x5c83f3['range'],_0x5bf836=_0x4f973d['range'];if(!_0x30dc36['isEqual'](_0x5bf836)){if(_0x30dc36['containsRange'](_0x5bf836,!0x0))return 0x1;if(_0x5bf836['containsRange'](_0x30dc36,!0x0))return-0x1;}return _0x5c83f3['annotation']==_0x4a3e9d?-0x1:_0x4f973d['annotation']==_0x4a3e9d?0x1:0x0;})['map'](_0x4f438a=>_0x4f438a['annotation']);}get['_editorAnnotationsData'](){const _0x3e9638=new Map();for(const _0x30aec2 of Array['from'](this['_dataCollectors']))for(const [_0x2f1623,_0x5d6816]of _0x30aec2())_0x3e9638['set'](_0x2f1623,_0x5d6816);return _0x3e9638;}}class st extends _0x51209d{['afterInit'](){const _0x56f9a8=this['editor'];if(!_0x56f9a8['plugins']['has']('RestrictedEditingModeEditing'))return;_0x56f9a8['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x51209d{constructor(_0x1fa6c3){super(_0x1fa6c3),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x614af8=this['editor'],_0x463fc5=_0x614af8['commands']['get']('importWord'),_0x264fef=_0x614af8['plugins']['get'](it);_0x463fc5&&(_0x463fc5['on']('execute',(_0x55a432,[,_0x57b4a1])=>{_0x57b4a1['collaboration_features']={'comments':!0x0,'user_id':_0x264fef['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x463fc5,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x281d77,_0x5a50ec){const {comment_threads:_0x2c96a3}=_0x5a50ec;_0x2c96a3&&_0x2c96a3['forEach'](({thread_id:_0x274d5f,comments:_0x217571,is_resolved:_0x3f4792})=>{const _0x228900=new Date(),_0x5e8e44=_0x217571['map'](({author:_0x593a31,content:_0x19dcb2,created_at:_0x4e509c})=>({'content':_0x19dcb2,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x228900,'attributes':{'@external':{'authorName':_0x593a31,'createdAt':_0x4e509c?new Date(_0x4e509c):new Date(),'source':'importWord'}}})),_0x1af6e8=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x1af6e8,'threadId':_0x274d5f,'comments':_0x5e8e44,'resolvedAt':_0x3f4792?_0x228900:null});});}}class at extends _0x51209d{constructor(_0x176235){super(_0x176235),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x47dfa6=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x47dfa6,'contentInsertion',(_0x271a7f,_0x5a22a5)=>this['_removeMarkersWithoutThreads'](_0x5a22a5['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4b051b){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4b051b;const _0x5450ea=this['editor']['plugins']['get']('CommentsRepository');for(const _0x1ecce5 of _0x4b051b['keys']()){const [_0x5447d9,_0x224799]=_0x1ecce5['split'](':');'comment'!=_0x5447d9||_0x5450ea['hasCommentThread'](_0x224799)||_0x4b051b['delete'](_0x1ecce5);}return _0x4b051b;}['_registerMarkerInClipboardPipeline'](){const _0x169ea1=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1c6229=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1c6229&&_0x169ea1['_registerMarkerToCopy']('comment',_0x1c6229);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x44da7f){switch(_0x44da7f){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 _0x51209d{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4db678,_0x3f1525)=>{if(!_0x3f1525['options']['showCommentHighlights'])return null;if(_0x3f1525['options']['ignoreResolvedComments']){const {id:_0x27c55b}=er(_0x4db678['markerName']),_0x15e6b1=this['editor']['plugins']['get'](o);if(_0x15e6b1['getCommentThread'](_0x27c55b)?.['isResolved']&&_0x4db678['item'])return _0x3f1525['consumable']['consume'](_0x4db678['item'],'addMarker:'+_0x4db678['markerName']),_0x3f1525['consumable']['consume'](_0x4db678['item'],'removeMarker:'+_0x4db678['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5fa7c3=>{_0x5fa7c3['on']('addMarker:comment',(_0x87f81,_0x53e66f,_0x83b7d9)=>{if(!_0x83b7d9['options']['showCommentHighlights'])return;const _0xb0565f=_0x53e66f['item'];if(!_0xb0565f)return;const _0x55a6ed=_0x83b7d9['mapper']['toViewElement'](_0xb0565f);this['editor']['model']['schema']['isObject'](_0xb0565f)&&_0x55a6ed&&!_0x55a6ed['getCustomProperty']('widget')&&_0x55a6ed['is']('containerElement')&&_0x264321(_0x55a6ed,_0x83b7d9['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x24e010,{writer:_0x24e954,options:_0x2af17b})=>{if(!_0x2af17b['showCommentHighlights'])return null;const _0x39b85a=_0x24e954['createContainerElement']('div'),_0x473a19=_0x24e954['createEmptyElement']('hr');return _0x24e954['addClass']('ck-horizontal-line',_0x39b85a),_0x24e954['insert'](_0x24e954['createPositionAt'](_0x39b85a,0x0),_0x473a19),_0x39b85a;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x4bd256,{writer:_0xeb6ad7,options:_0x880365})=>{if(!_0x880365['showCommentHighlights'])return null;const _0x4ad095=_0xeb6ad7['createContainerElement']('span'),_0x1fdce4=_0xeb6ad7['createEmptyElement']('img');return _0xeb6ad7['addClass']('image-inline',_0x4ad095),_0xeb6ad7['insert'](_0xeb6ad7['createPositionAt'](_0x4ad095,0x0),_0x1fdce4),_0x4ad095;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2fb23e,{writer:_0x3e2c73,options:_0x173daa})=>{if(_0x173daa['showCommentHighlights'])return _0x3e2c73['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4494d4,_0x59692a,_0x182b92)=>{_0x182b92['options']['showCommentHighlights']&&_0x4494d4['stop']();},{'priority':'high'});}}class r extends _0x51209d{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(_0x183971){super(_0x183971),this['set']('isThreadsLoadingPaused',!0x0),_0x183971['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x412634,_0x30b90d,_0x5dc325,_0x5216d2)=>{const _0x1da6f4=_0x183971['plugins']['get'](o),_0x4d2683=_0x5dc325?er(_0x5dc325)['id']:null;_0x183971['model']['change'](()=>{if(_0x4d2683){const _0x3c3c90=this['getAllMarkersForId'](_0x4d2683);for(const _0x28f6df of _0x3c3c90)_0x183971['editing']['reconvertMarker'](_0x28f6df);}if(_0x5216d2){const {id:_0x47a613}=er(_0x5216d2),_0x1f417f=_0x1da6f4['getCommentThread'](_0x47a613);if(_0x1f417f&&_0x1f417f['unlinkedAt'])return;if(_0x1f417f&&!_0x1f417f['isAttached'])return;const _0x1f61f2=this['getAllMarkersForId'](_0x47a613);for(const _0x51c21e of _0x1f61f2)_0x183971['editing']['reconvertMarker'](_0x51c21e);}}),_0x4d2683&&this['scrollToThreadMarker'](_0x4d2683);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x805efe=this['editor'],_0x2d8d80=_0x805efe['plugins']['get'](o),_0x30c112=_0x805efe['config']['get']('collaboration.channelId'),_0xc01981=_0x2d8d80['getCommentThreads']()['filter'](_0x1214d7=>_0x1214d7['channelId']!==_0x30c112);_0x805efe['commands']['add']('addCommentThread',new J(_0x805efe)),this['listenTo'](_0x805efe,'change:isReadOnly',(_0x59a727,_0x23f981,_0x1902da)=>{_0x2d8d80['switchReadOnly'](_0x1902da,_0x805efe['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x2d8d80,ft('addCommentThread',_0x30c112),(_0x280560,{threadId:_0x4e0495})=>{const _0x2533f2=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4e0495);_0x2533f2?.['unlinkedAt']&&this['_attachArchivedThread'](_0x4e0495);}),this['listenTo'](_0x2d8d80,ft('removeCommentThread',_0x30c112),(_0x42d463,{threadId:_0x20352c})=>{_0x805efe['model']['enqueueChange']({'isUndoable':!0x1},_0x5652a7=>{const _0x2a92b2=this['getAllMarkersForId'](_0x20352c);for(const _0xa4fce of _0x2a92b2)_0x5652a7['removeMarker'](_0xa4fce);});}),this['listenTo'](_0x2d8d80,ft('resolveCommentThread',_0x30c112),(_0x3f065b,{threadId:_0xe98075})=>{(this['_reconvertMarkers'](_0xe98075),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xe98075)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x2d8d80,ft('reopenCommentThread',_0x30c112),(_0x40b9df,{threadId:_0x2dc27b})=>{this['_reconvertMarkers'](_0x2dc27b);},{'priority':'low'}),this['listenTo'](_0x2d8d80,ft('addComment',_0x30c112),(_0x36b168,{threadId:_0x111bd2,isFromAdapter:_0x187d49})=>{const _0x1eba47=this['getAllMarkersForId'](_0x111bd2);if(_0x187d49||0x0==_0x1eba47['length']||!_0x2d8d80['hasCommentThread'](_0x111bd2))return;0x1===_0x2d8d80['getCommentThread'](_0x111bd2)['length']&&_0x805efe['model']['enqueueChange']({'isUndoable':!0x1},_0x1daf8f=>{for(const _0x2b3a44 of _0x1eba47)_0x1daf8f['updateMarker'](_0x2b3a44,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0xc01981);}['afterInit'](){!async function(_0x32a754){const _0x5d17a7=_0x2d8e6e([0x50,0x6f,0x71,0x7a,0x47,0x31,0x79,0x52,0x41,0x66,0x6e,0x61,0x42,0x33,0x77,0x48,0x75,0x6a,0x38,0x56,0x4f,0x74,0x30,0x76,0x35,0x73,0x4b,0x55,0x72,0x62,0x45,0x6d,0x37,0x6c,0x32,0x69,0x6b,0x67,0x4d,0x43,0x51,0x44,0x63,0x68,0x5a,0x54,0x78,0x49,0x53,0x4e,0x58,0x65,0x34,0x70,0x4c,0x36,0x39,0x57,0x4a,0x59,0x64,0x46]),_0x227753=0x32bda18b,_0x49fd93=0x32bacb33^_0x227753,_0x5afd8b=window[_0x2d8e6e([0x44,0x61,0x74,0x65])][_0x2d8e6e([0x6e,0x6f,0x77])](),_0xdccdc5=_0x32a754[_0x2d8e6e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44d3c9=new window[(_0x2d8e6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe7024=>{_0xdccdc5[_0x2d8e6e([0x6f,0x6e,0x63,0x65])](_0x2d8e6e([0x72,0x65,0x61,0x64,0x79]),_0xe7024);}),_0x572517={[_0x2d8e6e([0x6b,0x74,0x79])]:_0x2d8e6e([0x45,0x43]),[_0x2d8e6e([0x75,0x73,0x65])]:_0x2d8e6e([0x73,0x69,0x67]),[_0x2d8e6e([0x63,0x72,0x76])]:_0x2d8e6e([0x50,0x2d,0x32,0x35,0x36]),[_0x2d8e6e([0x78])]:_0x2d8e6e([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]),[_0x2d8e6e([0x79])]:_0x2d8e6e([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]),[_0x2d8e6e([0x61,0x6c,0x67])]:_0x2d8e6e([0x45,0x53,0x32,0x35,0x36])},_0x491dac=_0xdccdc5[_0x2d8e6e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d8e6e([0x67,0x65,0x74])](_0x2d8e6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8624eb(){let _0xb7b176,_0x2da52f=null,_0x231a8c=null;try{if(_0x491dac==_0x2d8e6e([0x47,0x50,0x4c]))return _0x2d8e6e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb7b176=_0x3909bc(),!_0xb7b176)return _0x2d8e6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb7b176[_0x2d8e6e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x231a8c=_0x28ad25(_0xb7b176[_0x2d8e6e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb7b176[_0x2d8e6e([0x6a,0x74,0x69])])),await _0xa37e01()?_0x9d3697()?_0x46d6e0()?_0x2d8e6e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x20ca4b()?(_0xb7b176[_0x2d8e6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d8e6e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2da52f=_0x27d9a0(_0x2d8e6e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xb7b176[_0x2d8e6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d8e6e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2da52f=_0x27d9a0(_0x2d8e6e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ff01()):_0x2d8e6e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d8e6e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d8e6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2d8e6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46d6e0(){const _0x1d429f=[_0x2d8e6e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d8e6e([0x74,0x72,0x69,0x61,0x6c])][_0x2d8e6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb7b176[_0x2d8e6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5afd8b/0x3e8:0xe10*_0x49fd93;return _0xb7b176[_0x2d8e6e([0x65,0x78,0x70])]<_0x1d429f;}function _0x9d3697(){const _0x3d8a1f=_0xb7b176[_0x2d8e6e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3d8a1f)return!0x1;if(_0x3d8a1f[_0x2d8e6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d8e6e([0x2a])))return!0x0;if(_0x3d8a1f[_0x2d8e6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d8e6e([0x43,0x4d,0x54])))return!0x0;if(_0x3d8a1f[_0x2d8e6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d8e6e([0x52,0x43,0x4d,0x54]))){if(_0x3a9fe0())return!0x0;if(_0x4604bb()||_0x2c5099())return!0x0;}return!0x1;}function _0x20ca4b(){const _0x102b4e=_0xb7b176[_0x2d8e6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x102b4e||0x0==_0x102b4e[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f4fb9}=new URL(window[_0x2d8e6e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x102b4e[_0x2d8e6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f4fb9))return!0x0;const _0x72af48=_0x1f4fb9[_0x2d8e6e([0x73,0x70,0x6c,0x69,0x74])](_0x2d8e6e([0x2e]));return _0x102b4e[_0x2d8e6e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a8a85=>_0x4a8a85[_0x2d8e6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d8e6e([0x2a])))[_0x2d8e6e([0x6d,0x61,0x70])](_0x23345c=>_0x23345c[_0x2d8e6e([0x73,0x70,0x6c,0x69,0x74])](_0x2d8e6e([0x2e])))[_0x2d8e6e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20a800=>_0x20a800[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x72af48[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d8e6e([0x6d,0x61,0x70])](_0x3f4960=>Array(_0x72af48[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f4960[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d8e6e([0x66,0x69,0x6c,0x6c])](_0x3f4960[0x0]===_0x2d8e6e([0x2a])?_0x2d8e6e([0x2a]):'')[_0x2d8e6e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f4960))[_0x2d8e6e([0x73,0x6f,0x6d,0x65])](_0x5ebf06=>_0x72af48[_0x2d8e6e([0x65,0x76,0x65,0x72,0x79])]((_0x14b57d,_0x5065f9)=>_0x5ebf06[_0x5065f9]===_0x14b57d||_0x5ebf06[_0x5065f9]===_0x2d8e6e([0x2a])));}function _0x3ff01(){return _0x2da52f&&_0x231a8c?new window[(_0x2d8e6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x381936,_0x2458dc)=>{_0x2da52f[_0x2d8e6e([0x74,0x68,0x65,0x6e])](_0x381936,_0x2458dc),_0x231a8c[_0x2d8e6e([0x74,0x68,0x65,0x6e])](_0x31a982=>{_0x31a982!=_0x2d8e6e([0x56,0x61,0x6c,0x69,0x64])&&_0x381936(_0x31a982);},_0x2458dc);}):_0x2da52f||_0x231a8c||_0x2d8e6e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28ad25(_0x3d69f5,_0x2488fa){return new window[(_0x2d8e6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9d3bf3=>{if(_0x3a6c49())return _0x9d3bf3(_0x2d8e6e([0x56,0x61,0x6c,0x69,0x64]));_0x1c914d(),_0xdccdc5[_0x2d8e6e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d8e6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x650753=!0x1;const _0x10d84b=_0x356753();function _0x2f1989(_0x17be9d){return!!_0x17be9d&&(typeof _0x17be9d===_0x2d8e6e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17be9d===_0x2d8e6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17be9d[_0x2d8e6e([0x74,0x68,0x65,0x6e])]===_0x2d8e6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17be9d[_0x2d8e6e([0x63,0x61,0x74,0x63,0x68])]===_0x2d8e6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x885c8b(_0x477796){_0x423023(_0x477796)[_0x2d8e6e([0x74,0x68,0x65,0x6e])](_0x3a2831=>{if(!_0x3a2831||_0x3a2831[_0x2d8e6e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d8e6e([0x6f,0x6b]))return _0x2d8e6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1bafa5(_0x4bdf27(_0x10d84b+_0x2488fa))!=_0x3a2831[_0x2d8e6e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d8e6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d8e6e([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d8e6e([0x74,0x68,0x65,0x6e])](_0x63e1ca=>(_0x102e87(),_0x63e1ca),()=>{const _0x413c45=_0x571760();return null==_0x413c45?(_0x102e87(),_0x2d8e6e([0x56,0x61,0x6c,0x69,0x64])):_0x2d8e6e(_0x5afd8b-_0x413c45>(0x16b1258b^_0x227753)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d8e6e([0x74,0x68,0x65,0x6e])](_0x9d3bf3)[_0x2d8e6e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9d3bf3(_0x2d8e6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35bc14=0x328b4f0b^_0x227753;function _0x102e87(){const _0x5f5490=_0x2d8e6e([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bafa5(_0x4bdf27(_0x3d69f5)),_0x37c663=_0x1aca84(_0x1bafa5(window[_0x2d8e6e([0x4d,0x61,0x74,0x68])][_0x2d8e6e([0x63,0x65,0x69,0x6c])](_0x5afd8b/_0x35bc14)));window[_0x2d8e6e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d8e6e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f5490,_0x37c663);}function _0x571760(){const _0x54bfbf=_0x2d8e6e([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bafa5(_0x4bdf27(_0x3d69f5)),_0x4d7902=window[_0x2d8e6e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d8e6e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54bfbf);return _0x4d7902?window[_0x2d8e6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aca84(_0x4d7902),0x10)*_0x35bc14:null;}function _0x423023(_0x21638e){return new window[(_0x2d8e6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d7084,_0x41c273)=>{_0x21638e[_0x2d8e6e([0x74,0x68,0x65,0x6e])](_0x3d7084,_0x41c273),window[_0x2d8e6e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41c273,0x32bc754b^_0x227753);});}}_0xdccdc5[_0x2d8e6e([0x6f,0x6e])](_0x2d8e6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18b96b,_0x28f9ad)=>{if(_0x28f9ad[0x0]!=_0x3d69f5)return _0x9d3bf3(_0x2d8e6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28f9ad[0x1]={..._0x28f9ad[0x1],[_0x2d8e6e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10d84b};},{[_0x2d8e6e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d8e6e([0x68,0x69,0x67,0x68])}),_0xdccdc5[_0x2d8e6e([0x6f,0x6e])](_0x2d8e6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x349b46=>{_0x2f1989(_0x349b46[_0x2d8e6e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x650753=!0x0,_0x885c8b(_0x349b46[_0x2d8e6e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d8e6e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d8e6e([0x6c,0x6f,0x77])}),_0x44d3c9[_0x2d8e6e([0x74,0x68,0x65,0x6e])](()=>{_0x650753||_0x9d3bf3(_0x2d8e6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a6c49(){return _0xdccdc5[_0x2d8e6e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d8e6e([0x76,0x69,0x65,0x77])][_0x2d8e6e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d8e6e([0x61,0x75,0x74,0x6f]);}function _0x1c914d(){_0xdccdc5[_0x2d8e6e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d8e6e([0x76,0x69,0x65,0x77])][_0x2d8e6e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d8e6e([0x61,0x75,0x74,0x6f]);}}function _0x27d9a0(_0x4977fd){const _0x54fc3b=[new window[(_0x2d8e6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x137420=>setTimeout(_0x137420,0x32b49f47^_0x227753)),_0x44d3c9[_0x2d8e6e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d8e6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x436513=>{let _0x4fbdbf=0x0;_0xdccdc5[_0x2d8e6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d8e6e([0x6f,0x6e])](_0x2d8e6e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x588064,_0x46eb0a)=>{_0x46eb0a[0x0][_0x2d8e6e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fbdbf++,_0x4fbdbf==(0x32bda073^_0x227753)&&(_0x436513(),_0x588064[_0x2d8e6e([0x6f,0x66,0x66])]());});}))];return window[_0x2d8e6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d8e6e([0x72,0x61,0x63,0x65])](_0x54fc3b)[_0x2d8e6e([0x74,0x68,0x65,0x6e])](()=>_0x4977fd);}async function _0x5decf0(){await _0x44d3c9,_0xdccdc5[_0x2d8e6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d8e6e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42d591,_0xdccdc5[_0x2d8e6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d8e6e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42d591,_0xdccdc5[_0x2d8e6e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d8e6e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a9fe0(){return _0x3df86f(_0x2d8e6e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x66a368(_0x2d8e6e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2d8e6e([0x73,0x74,0x61,0x74,0x65])]==_0x2d8e6e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4604bb(){return _0x3df86f(_0x2d8e6e([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 _0x2c5099(){return _0x3df86f(_0x2d8e6e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1a6f9e(_0x32b9d1){const _0x2ceab8=_0x2c5e26();_0xdccdc5[_0x2ceab8]=_0x2d8e6e([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x32b9d1,_0x32b9d1!=_0x2d8e6e([0x56,0x61,0x6c,0x69,0x64])&&_0x5decf0();}function _0x2c5e26(){const _0x1e85a6=window[_0x2d8e6e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d8e6e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d8e6e([0x6e,0x6f,0x77])]())[_0x2d8e6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d8e6e([0x2e]),'');let _0x465c7f=_0x2d8e6e([0x50]);for(let _0x3b660c=0x0;_0x3b660c<_0x1e85a6[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b660c+=0x2){let _0x4db987=window[_0x2d8e6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e85a6[_0x2d8e6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b660c,_0x3b660c+0x2));_0x4db987>=_0x5d17a7[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4db987-=_0x5d17a7[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x465c7f+=_0x5d17a7[_0x4db987];}return _0x465c7f;}function _0x3909bc(){const _0x5bed00=_0x491dac[_0x2d8e6e([0x73,0x70,0x6c,0x69,0x74])](_0x2d8e6e([0x2e]));if(0x3!=_0x5bed00[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d8cf9(_0x5bed00[0x1]);function _0x3d8cf9(_0x1c0616){const _0x1fe986=_0x596628(_0x1c0616);return _0x1fe986&&_0x1ce398()?_0x1fe986:null;function _0x1ce398(){const _0x3a95b3=_0x1fe986[_0x2d8e6e([0x6a,0x74,0x69])],_0x55363f=window[_0x2d8e6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a95b3[_0x2d8e6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a95b3[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x35b9d2={..._0x1fe986,[_0x2d8e6e([0x6a,0x74,0x69])]:_0x3a95b3[_0x2d8e6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a95b3[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x35b9d2[_0x2d8e6e([0x76,0x63])],_0x4bdf27(_0x35b9d2)==_0x55363f;}}}async function _0xa37e01(){let _0x275413=!0x0;try{const _0x4b3467=_0x491dac[_0x2d8e6e([0x73,0x70,0x6c,0x69,0x74])](_0x2d8e6e([0x2e])),[_0x42c5ae,_0x1ae352,_0x5578aa]=_0x4b3467;return _0x2dc307(_0x42c5ae),await _0x19ad13(_0x42c5ae,_0x1ae352,_0x5578aa),_0x275413;}catch{return!0x1;}function _0x2dc307(_0x52941a){const _0x439d6c=_0x596628(_0x52941a);_0x439d6c&&_0x439d6c[_0x2d8e6e([0x61,0x6c,0x67])]==_0x2d8e6e([0x45,0x53,0x32,0x35,0x36])||(_0x275413=!0x1);}async function _0x19ad13(_0x583f9e,_0x4d4989,_0x48b6a2){const _0x3675ce=window[_0x2d8e6e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d8e6e([0x66,0x72,0x6f,0x6d])](_0x6d4e58(_0x48b6a2),_0x55fe7b=>_0x55fe7b[_0x2d8e6e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2612b1=new window[(_0x2d8e6e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d8e6e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x583f9e+_0x2d8e6e([0x2e])+_0x4d4989),_0xc8f243=window[_0x2d8e6e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d8e6e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc8f243)return;const _0x3d502a=await _0xc8f243[_0x2d8e6e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d8e6e([0x6a,0x77,0x6b]),_0x572517,{[_0x2d8e6e([0x6e,0x61,0x6d,0x65])]:_0x2d8e6e([0x45,0x43,0x44,0x53,0x41]),[_0x2d8e6e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d8e6e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d8e6e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc8f243[_0x2d8e6e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d8e6e([0x6e,0x61,0x6d,0x65])]:_0x2d8e6e([0x45,0x43,0x44,0x53,0x41]),[_0x2d8e6e([0x68,0x61,0x73,0x68])]:{[_0x2d8e6e([0x6e,0x61,0x6d,0x65])]:_0x2d8e6e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d502a,_0x3675ce,_0x2612b1)||(_0x275413=!0x1);}}function _0x596628(_0x4aad59){return _0x4aad59[_0x2d8e6e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d8e6e([0x65,0x79]))?JSON[_0x2d8e6e([0x70,0x61,0x72,0x73,0x65])](_0x6d4e58(_0x4aad59)):null;}function _0x6d4e58(_0x2c8517){return window[_0x2d8e6e([0x61,0x74,0x6f,0x62])](_0x2c8517[_0x2d8e6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d8e6e([0x2b]))[_0x2d8e6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d8e6e([0x2f])));}function _0x4bdf27(_0x4bbc41){let _0x5d9430=0x1505;function _0x103732(_0x3abe83){for(let _0x4c977a=0x0;_0x4c977a<_0x3abe83[_0x2d8e6e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c977a++){const _0x4eee88=_0x3abe83[_0x2d8e6e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c977a);_0x5d9430=(_0x5d9430<<0x5)+_0x5d9430+_0x4eee88,_0x5d9430&=_0x5d9430;}}function _0x1756a4(_0x2b0525){Array[_0x2d8e6e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b0525)?_0x2b0525[_0x2d8e6e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1756a4):_0x2b0525&&typeof _0x2b0525==_0x2d8e6e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d8e6e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b0525)[_0x2d8e6e([0x73,0x6f,0x72,0x74])]()[_0x2d8e6e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d8964,_0x189a29])=>{_0x103732(_0x2d8964),_0x1756a4(_0x189a29);}):_0x103732(window[_0x2d8e6e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b0525));}return _0x1756a4(_0x4bbc41),_0x5d9430>>>0x0;}function _0x1bafa5(_0xedd6ed){return _0xedd6ed[_0x2d8e6e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d8e6e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d8e6e([0x30]));}function _0x1aca84(_0x5cc95d){return _0x5cc95d[_0x2d8e6e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d8e6e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d8e6e([0x6a,0x6f,0x69,0x6e])]('');}function _0x3df86f(_0x396c75){return _0xdccdc5[_0x2d8e6e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d8e6e([0x68,0x61,0x73])](_0x396c75);}function _0x66a368(_0x1df0cf){return _0xdccdc5[_0x2d8e6e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d8e6e([0x67,0x65,0x74])](_0x1df0cf);}function _0x42d591(){}function _0x2d8e6e(_0x273552){return _0x273552['map'](_0xacc0db=>String['fromCharCode'](_0xacc0db))['join']('');}_0x1a6f9e(await _0x8624eb());}(this);}['destroy'](){const _0x2b1700=this['editor']['plugins']['get'](o),_0x1ba515=this['editor']['config']['get']('collaboration.channelId');for(const _0x131465 of _0x2b1700['getCommentThreads']({'channelId':_0x1ba515}))_0x2b1700['_detachCommentThread'](_0x131465['id']),_0x2b1700['_threads']['delete'](_0x131465['id']);super['destroy']();}['hasMarkerForId'](_0x2b967b){return this['getAllMarkersForId'](_0x2b967b)['length']>0x0;}['getAllMarkersForId'](_0x3b2aae){const _0x4a3c8b=[];for(const _0x48cd98 of this['editor']['model']['markers'])_0x48cd98['name']['startsWith']('comment:'+_0x3b2aae)&&_0x4a3c8b['push'](_0x48cd98);return _0x4a3c8b;}['scrollToThreadMarker'](_0x33961c){const _0x4a3cc5=this['_getTargetForId'](_0x33961c);_0x4a3cc5&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x33961c&&rt({'target':_0x4a3cc5[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x9161d2){this['editor']['model']['change'](()=>{for(const _0x309d05 of this['getAllMarkersForId'](_0x9161d2))this['editor']['editing']['reconvertMarker'](_0x309d05);});}['_attachArchivedThread'](_0x48c802){const _0x14285d=this['editor']['plugins']['get'](o),_0x1fbd57=this['editor']['plugins']['get'](P),_0x529948=_0x14285d['getCommentThread'](_0x48c802);if(!_0x529948['isAttached']){const _0xa329c9=_0x529948['attachTo'](()=>this['_getTargetForId'](_0x529948['id']));_0x1fbd57['registerAnnotation'](_0xa329c9),_0x529948['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x9cc945=this['editor'],_0xa4372c=_0x9cc945['plugins']['get'](it);_0x9cc945['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x6a7bee,_0x35af37)=>{const {id:_0xb936ca}=er(_0x6a7bee['markerName']),_0x2da9a1=_0x9cc945['plugins']['get'](o)['getCommentThread'](_0xb936ca),_0x3d1d6e=this['activeMarker']&&er(this['activeMarker'])['id']===_0xb936ca;let _0x242113;if(_0x2da9a1&&_0x2da9a1['isResolved']&&!_0x3d1d6e&&_0x6a7bee['item'])return _0x35af37['consumable']['consume'](_0x6a7bee['item'],'addMarker:'+_0x6a7bee['markerName']),_0x35af37['consumable']['consume'](_0x6a7bee['item'],'removeMarker:'+_0x6a7bee['markerName']),null;const _0x3def3d=['ck-comment-marker'];return _0x3d1d6e&&_0x3def3d['push']('ck-comment-marker--active'),_0x242113=_0x2da9a1?.['length']?_0x2da9a1['comments']['first']['author']['id']:_0xa4372c['me']['id'],{'classes':_0x3def3d,'attributes':{'data-comment':_0xb936ca,'data-author-id':_0x242113}};}}),_0x9cc945['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x2aee51,{options:_0x4f1f2f})=>{if(_0x4f1f2f['showCommentHighlights'])return null;const _0x1eef8c=_0x9cc945['plugins']['get'](o),_0x41dd34=_0x9cc945['model']['markers']['get'](_0x2aee51),{id:_0x50c83a,part:_0x5cedbb}=er(_0x2aee51);return _0x41dd34&&!_0x41dd34['affectsData']||_0x4f1f2f['ignoreResolvedComments']&&_0x1eef8c['getCommentThread'](_0x50c83a)?.['isResolved']?null:{'group':'comment','name':_0x5cedbb?_0x50c83a+':'+_0x5cedbb:_0x50c83a};}}),_0x9cc945['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x17b53f,{writer:_0x2e5864})=>_0x2e5864['createElement']('$marker',{'data-name':'comment:'+_0x17b53f['getAttribute']('id')})}),_0x9cc945['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x370863=this['editor'],_0x501928=_0x370863['plugins']['get'](o),_0x3b8513=new Set(),_0x4916d9=new Set();_0x370863['model']['document']['registerPostFixer'](_0x2e8d08=>{let _0x25fabb=!0x1;for(const {name:_0x2c74fb,data:_0x399311}of _0x370863['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2ead08,id:_0x479b66}=er(_0x2c74fb);let _0x363e63=_0x399311['newRange'];if('comment'!==_0x2ead08||!_0x363e63)continue;const _0x3400ea='$graveyard'===_0x363e63['root']['rootName'];_0x3400ea||(_0x363e63=dt(_0x363e63,_0x370863['model']),!_0x363e63||_0x363e63['isCollapsed']||!_0x399311['newRange']||_0x363e63['isEqual'](_0x399311['newRange']))?_0x370863['model']['hasContent'](_0x363e63)&&!_0x3400ea?this['isThreadsLoadingPaused']?_0x3b8513['add'](_0x2c74fb):this['_handleThreadMarker'](_0x2c74fb,_0x479b66):(_0x4916d9['add'](_0x2c74fb),_0x3b8513['delete'](_0x2c74fb),_0x2e8d08['removeMarker'](_0x2c74fb),_0x25fabb=!0x0):(_0x2e8d08['updateMarker'](_0x2c74fb,{'range':_0x363e63}),_0x25fabb=!0x0);}return _0x25fabb;}),this['on']('change:isThreadsLoadingPaused',(_0x39b089,_0x74e0c8,_0x5bf6f5)=>{if(!_0x5bf6f5&&_0x3b8513['size'])for(const _0x1e9f27 of _0x3b8513){const {id:_0xadf434}=er(_0x1e9f27);_0x3b8513['delete'](_0x1e9f27),_0x370863['model']['markers']['get'](_0x1e9f27)&&this['_handleThreadMarker'](_0x1e9f27,_0xadf434);}}),this['listenTo'](_0x370863['model']['document'],'change',()=>{for(const {name:_0x62c0e8,data:{newRange:_0x5bff52}}of _0x370863['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3479e5,id:_0x39cce2}=er(_0x62c0e8);if('comment'!==_0x3479e5)continue;const _0x2d62c0=_0x501928['getCommentThread'](_0x39cce2),_0x50120b=this['hasMarkerForId'](_0x39cce2);_0x2d62c0&&(!_0x2d62c0['_hasTargetInContent']&&_0x5bff52&&_0x370863['editing']['view']['once']('render',()=>{const _0x331f5f=_0x370863['plugins']['get'](O),_0x314dc5=_0x501928['_threadToController']['get'](_0x2d62c0)['view'];_0x331f5f['getByInnerView'](_0x314dc5)['refreshVisibility']();},{'priority':'low'}),_0x2d62c0['_hasTargetInContent']=_0x50120b||!!_0x5bff52),_0x5bff52||(_0x4916d9['add'](_0x62c0e8),_0x3b8513['delete'](_0x62c0e8));}for(const _0x330587 of _0x4916d9){const {id:_0x4245e9}=er(_0x330587),_0x5c6a15=_0x501928['getCommentThread'](_0x4245e9);if(_0x3b8513['delete'](_0x330587),!_0x5c6a15)continue;const _0x5b2acc=this['hasMarkerForId'](_0x4245e9);_0x5b2acc||_0x5c6a15['isSubmitted']?_0x5b2acc||_0x5c6a15['unlinkedAt']||_0x5c6a15['setUnlinkedAt'](new Date()):_0x5c6a15['remove']();}_0x4916d9['clear']();});}['_handleInitialThreads'](_0xc2ac3a){_0xc2ac3a['forEach'](_0x59343c=>{_0x59343c['unlinkedAt']&&this['_attachArchivedThread'](_0x59343c['id']);});}['_getTargetForId'](_0x463956){const _0x3ab285=this['editor'],_0x555653=this['getAllMarkersForId'](_0x463956);return et(_0x3ab285['editing'],_0x555653);}['_getTextContext'](_0x337fb0){const _0x45594f=this['getAllMarkersForId'](_0x337fb0);let _0x5eac24='',_0x2847a5=!0x1;for(const _0x3b3c9a of _0x45594f){const _0x53940c=_0x3b3c9a['getRange']();for(const _0x878e9f of Array['from'](_0x53940c['getItems']()))_0x878e9f['is']('$textProxy')?(_0x5eac24&&_0x2847a5&&(_0x5eac24+='\x20',_0x2847a5=!0x1),_0x5eac24+=_0x878e9f['data']):_0x2847a5=!0x0;_0x2847a5=!0x0;}return _0x5eac24['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x319e71,_0x10ef4d){const _0xe1cb2d=this['editor'],_0x2a8eef=_0xe1cb2d['plugins']['get'](o);let _0x23baa6=_0x2a8eef['getCommentThread'](_0x10ef4d);const _0x29ab1b=_0xe1cb2d['config']['get']('collaboration.channelId'),_0x3a2944=_0xe1cb2d['plugins']['get'](P);if(_0x23baa6&&(_0x23baa6['unlinkedAt']&&_0x23baa6['setUnlinkedAt'](null),_0x23baa6['isAttached']))return _0x23baa6;return!this['getAllMarkersForId'](_0x10ef4d)[0x0]['managedUsingOperations']?_0xe1cb2d['editing']['view']['once']('render',()=>{if(_0x2a8eef['getCommentThread'](_0x10ef4d))return;const _0xcd0b42=_0xe1cb2d['plugins']['get'](O);_0x23baa6=_0x2a8eef['openNewCommentThread']({'channelId':_0x29ab1b,'threadId':_0x10ef4d,'target':()=>this['_getTargetForId'](_0x10ef4d),'context':{'type':'text','value':this['_getTextContext'](_0x10ef4d)}});const _0x272a8d=_0x2a8eef['_threadToController']['get'](_0x23baa6)['view'],_0x27868c=_0xcd0b42['getByInnerView'](_0x272a8d);_0x27868c&&_0x3a2944['registerAnnotation'](_0x27868c);},{'priority':'low'}):_0x2a8eef['fetchCommentThread']({'channelId':_0x29ab1b,'threadId':_0x10ef4d})['then'](_0x32f5bc=>{if('destroyed'!==_0xe1cb2d['state']){if(_0x23baa6=_0x32f5bc,_0x23baa6&&!_0x23baa6['isAttached']){const _0x6f9b9c=_0x23baa6['attachTo'](()=>this['_getTargetForId'](_0x10ef4d));_0x3a2944['registerAnnotation'](_0x6f9b9c),_0x23baa6['isResolved']&&this['_reconvertMarkers'](_0x10ef4d);}else{if(!_0x23baa6){const _0x3a784b=this['getAllMarkersForId'](_0x10ef4d);_0xe1cb2d['model']['change'](_0x2e7082=>{for(const _0x496904 of _0x3a784b)_0x2e7082['removeMarker'](_0x496904);});}}}}),_0x23baa6;}['_handleThreadMarker'](_0x1f26ec,_0x384d88){const _0x5a2ae7=this['_attachMarkerToThread'](_0x1f26ec,_0x384d88);_0x5a2ae7&&!_0x5a2ae7['context']&&_0x5a2ae7['setContext']({'type':'text','value':this['_getTextContext'](_0x384d88)});}['_initAriaMarkerChangeAnnouncements'](){const _0x494052=this['editor'];ot(_0x494052['model'],({left:_0x21346a,entered:_0x3e1f07})=>{for(const _0x50a0f5 of _0x21346a)if(mt(_0x50a0f5)){_0x494052['ui']['ariaLiveAnnouncer']['announce'](E(_0x494052['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x4b3926 of _0x3e1f07)if(mt(_0x4b3926)){_0x494052['ui']['ariaLiveAnnouncer']['announce'](E(_0x494052['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x3621fc)));break;}});}}function ft(_0x388986,_0x5b79d5){return _0x5b79d5?_0x388986+':'+_0x5b79d5:_0x388986;}function er(_0x239992){const _0xac46c9=_0x239992['split'](':');return{'group':_0xac46c9[0x0],'id':_0xac46c9[0x1],'part':_0xac46c9[0x2]};}function dt(_0x21bf50,_0x270a75){const _0x58617a=_0x270a75['schema'],_0x3ab495=_0x270a75['createRange'](_0x21bf50['start']);for(const _0x268e3 of _0x21bf50['getWalker']()){const {type:_0x1e16d2,item:_0x2e536a,nextPosition:_0x3625fa}=_0x268e3;if('text'===_0x1e16d2||_0x58617a['isObject'](_0x2e536a)){const _0x39a922=_0x270a75['createPositionBefore'](_0x2e536a);_0x3ab495['isCollapsed']&&(_0x3ab495['start']=_0x39a922),_0x3ab495['end']=_0x3625fa;}}return _0x3ab495;}function mt(_0x59bd00){return'comment'===er(_0x59bd00['name'])['group'];}class i extends _0x51209d{['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 _0x4e3b99=this['editor'],_0x23ed2f=_0x4e3b99['plugins']['get'](o),_0x176a1c=_0x4e3b99['plugins']['get'](r),_0x572aca=_0x4e3b99['plugins']['get'](O),_0x5c9349=_0x4e3b99['plugins']['get'](P);_0x4e3b99['ui']['componentFactory']['add']('comment',()=>{const _0x527780=this['_createUIButton'](_0x3f387b);return _0x527780['tooltip']=!0x0,_0x527780;}),_0x4e3b99['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x370a9d)),_0x5c9349['addSourceCollector'](()=>{const _0x4b5929=[];for(const [_0x1b9408,_0x371792]of _0x23ed2f['_threadToController']){const _0x1a83e6=_0x176a1c['getAllMarkersForId'](_0x1b9408['id']),_0x2def5a=_0x1a83e6['map'](_0x3b4072=>_0x3b4072['getRange']());_0x1a83e6['length']>0x0&&_0x4b5929['push']([_0x371792['view'],_0x2def5a]);}return _0x4b5929;}),this['listenTo'](_0x572aca,'change:activeAnnotations',(_0x2ea590,_0x916173,_0x27914a)=>{const _0x27a693=Array['from'](_0x27914a)['map'](_0x5e17a8=>_0x5e17a8['innerView'])['find'](_0x5eebb4=>_0x23ed2f['_viewToController']['has'](_0x5eebb4));if(!_0x27a693)return void(_0x176a1c['activeMarker']=null);const _0x2de179=_0x23ed2f['_viewToController']['get'](_0x27a693)['model']['id'],_0x33de19='comment:'+_0x2de179;_0x2de179&&_0x176a1c['hasMarkerForId'](_0x2de179)?_0x176a1c['activeMarker']=_0x33de19:_0x176a1c['activeMarker']&&(_0x176a1c['activeMarker']=null);}),this['listenTo'](_0x23ed2f,'removeCommentThread',(_0x28dbd1,{threadId:_0x225c55,isFromAdapter:_0x33abb9})=>{!_0x33abb9&&_0x4e3b99['ui']['focusTracker']['isFocused']&&_0x176a1c['hasMarkerForId'](_0x225c55)&&_0x4e3b99['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x23ed2f,'addComment',(_0x38267f,{threadId:_0x23c478,isFromAdapter:_0x55bd7b})=>{if(_0x55bd7b||!_0x176a1c['hasMarkerForId'](_0x23c478)||!_0x23ed2f['hasCommentThread'](_0x23c478))return;0x1===_0x23ed2f['getCommentThread'](_0x23c478)['length']&&(_0x4e3b99['editing']['view']['focus'](),_0x38267f['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x24b630=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ebb54;for(const _0x321501 in _0x24b630){const _0x4af5e2=_0x321501,_0x379bec=_0x24b630[_0x4af5e2];if('commentsLicenseKeyValid'==_0x379bec||'commentsLicenseKeyInvalid'==_0x379bec||'commentsLicenseKeyExpired'==_0x379bec||'commentsLicenseKeyDomainLimit'==_0x379bec||'commentsLicenseKeyNotAllowed'==_0x379bec||'commentsLicenseKeyEvaluationLimit'==_0x379bec||'commentsLicenseKeyTrialLimit'==_0x379bec||'commentsLicenseKeyUsageLimit'==_0x379bec){delete _0x24b630[_0x4af5e2],_0x4ebb54=_0x379bec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4ebb54&&_0x24b630['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4ebb54&&_0x24b630['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4ebb54&&_0x24b630['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4ebb54&&_0x24b630['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4ebb54&&_0x24b630['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4ebb54&&_0x24b630['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x4ebb54&&_0x24b630['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x49179d){const _0x14747c=this['editor'],_0x403fca=new _0x49179d(_0x14747c['locale']),_0x24a177=_0x14747c['commands']['get']('addCommentThread');return _0x403fca['set']({'label':E(_0x14747c['locale'],'Comment'),'icon':_0x40f967}),_0x403fca['bind']('isEnabled')['to'](_0x24a177),this['listenTo'](_0x403fca,'execute',()=>{_0x24a177['execute']();}),_0x403fca;}}class s extends _0x51209d{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2ce8f8){super(_0x2ce8f8),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x17a769,_0x5cb691,_0x1007e6)=>{_0x1007e6?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x3cea71,_0x102c30]of this['editor']['commands'])_0x102c30['affectsData']&&'addCommentThread'!==_0x3cea71&&_0x102c30['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 _0x1cb508=this['editor']['editing']['view']['document'];this['listenTo'](_0x1cb508,'cut',_0x351511=>_0x351511['stop'](),{'priority':'highest'}),this['listenTo'](_0x1cb508,'clipboardInput',_0xd79f2=>_0xd79f2['stop'](),{'priority':'highest'}),this['listenTo'](_0x1cb508,'delete',_0x3258ac=>_0x3258ac['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x41cf17,_0x2fc954]of this['editor']['commands'])_0x2fc954['affectsData']&&'addCommentThread'!==_0x41cf17&&_0x2fc954['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 _0x4d0391{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23c62d){super(_0x23c62d),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4be358=this['context']['plugins']['get'](O);this['listenTo'](_0x4be358,'_activateAnnotation',(_0x3aad09,_0x234880)=>{for(const _0x617826 of this['activeUIs']){const _0x2c4bab=this['_uis']['get'](_0x617826);(0x0,this['uisData']['get'](_0x617826)['filter'])(_0x234880)&&_0x2c4bab['setActiveAnnotation'](_0x234880);}}),this['listenTo'](_0x4be358,'_deactivateAllAnnotations',()=>{for(const _0x27cb1c of this['activeUIs']){this['_uis']['get'](_0x27cb1c)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4be358['_visibleAnnotations'],'add',(_0x4ef824,_0x2ec401)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2ec401);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x1521ff){return this['activeUIs']['has'](_0x1521ff);}['activate'](_0x5436c7,_0x97b7b=this['defaultFilter']){const _0x914802=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x5436c7))throw new _0x3b0292('annotationsuis-missing-ui',this,{'uiName':_0x5436c7});this['isActive'](_0x5436c7)&&this['deactivate'](_0x5436c7),this['activeUIs']['add'](_0x5436c7);const _0x340a45=new _();!function({source:_0x20b5dc,target:_0x5b2691,filter:_0x56496b}){for(const _0x241d85 of _0x20b5dc)_0x56496b(_0x241d85)&&_0x5b2691['add'](_0x241d85);_0x5b2691['listenTo'](_0x20b5dc,'add',(_0x5da73c,_0x8f4fd3)=>{_0x56496b(_0x8f4fd3)&&_0x5b2691['add'](_0x8f4fd3);}),_0x5b2691['listenTo'](_0x20b5dc,'remove',(_0x35af02,_0x1b1adb)=>{_0x5b2691['has'](_0x1b1adb)&&_0x5b2691['remove'](_0x1b1adb);});}({'source':_0x914802['_visibleAnnotations'],'target':_0x340a45,'filter':_0x97b7b}),this['uisData']['set'](_0x5436c7,{'collection':_0x340a45,'filter':_0x97b7b});const _0x26b16d=this['_uis']['get'](_0x5436c7);_0x26b16d['attach'](_0x340a45),this['listenTo'](_0x26b16d,'change:activeAnnotation',(_0x38b316,_0x166981,_0x368d60,_0x30fdc1)=>{_0x30fdc1&&_0x914802['_removeActiveAnnotation'](_0x30fdc1),_0x368d60&&_0x914802['_addActiveAnnotation'](_0x368d60);});}['deactivate'](_0x235852){if(this['activeUIs']['delete'](_0x235852),!this['_uis']['has'](_0x235852))throw new _0x3b0292('annotationsuis-missing-ui',this,{'uiName':_0x235852});const _0x29f64c=this['_uis']['get'](_0x235852);_0x29f64c['detach'](),this['stopListening'](_0x29f64c),this['uisData']['get'](_0x235852)['collection']['destroy'](),this['uisData']['delete'](_0x235852);}['switchTo'](_0x1ff6fe){if(!this['_uis']['has'](_0x1ff6fe))throw new _0x3b0292('annotationsuis-missing-ui',this,{'uiName':_0x1ff6fe});const _0x514188=this['context']['plugins']['get'](O),_0x17a85a=Array['from'](_0x514188['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x1ff6fe);const _0x4271c4=this['_uis']['get'](_0x1ff6fe);_0x4271c4['setActiveAnnotation'](_0x17a85a),_0x4271c4['_setSelectedAnnotations']&&_0x17a85a&&_0x4271c4['_setSelectedAnnotations']([_0x17a85a]);}['deactivateAll'](){for(const _0x1d943b of this['activeUIs'])this['deactivate'](_0x1d943b);}['register'](_0x4057b8,_0x1385c9){if(this['_uis']['has'](_0x4057b8))throw new _0x3b0292('annotationsuis-register-already-registered');if('function'!=typeof _0x1385c9['attach']||'function'!=typeof _0x1385c9['detach']||'function'!=typeof _0x1385c9['setActiveAnnotation'])throw new _0x3b0292('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x4057b8,_0x1385c9);}['refilterAnnotations'](){const _0x34e74d=this['context']['plugins']['get'](O)['collection'],_0x3edac4=new Map(),_0x39f9e9=Array['from'](this['activeUIs']);for(const _0x17bf4c of this['activeUIs']){const _0xb6f4b6=this['uisData']['get'](_0x17bf4c)['collection'];for(const _0x5682fc of _0xb6f4b6)_0x3edac4['set'](_0x5682fc,_0x17bf4c);}for(const _0x365611 of _0x34e74d){const _0x51aa7d=_0x3edac4['get'](_0x365611);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x365611);const _0x13f86b=_0x39f9e9['find'](_0x32ae09=>this['uisData']['get'](_0x32ae09)['filter'](_0x365611));_0x51aa7d!==_0x13f86b&&(_0x51aa7d&&this['uisData']['get'](_0x51aa7d)['collection']['remove'](_0x365611),_0x13f86b&&this['uisData']['get'](_0x13f86b)['collection']['add'](_0x365611));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x429d1a){const _0x148137=[];for(const _0x58c551 of this['activeUIs']){(0x0,this['uisData']['get'](_0x58c551)['filter'])(_0x429d1a)&&_0x148137['push'](_0x58c551);}if(_0x148137['length']>0x1)throw new _0x3b0292('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x148137,'annotationType':_0x429d1a['type']});}}const pi=xt('px');class F extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x2e32f1){super(_0x2e32f1);const _0x23fc81=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 _0x29f230(),this['focusCycler']=new _0x8029a4({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x23fc81['to']('class')],'style':{'minHeight':_0x23fc81['to']('minHeight',_0x57946=>'number'==typeof _0x57946?pi(_0x57946+0xa):null)},'dir':_0x2e32f1['uiLanguageDirection'],'role':'application','aria-label':E(_0x2e32f1,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x2e32f1,'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',_0x3f2133=>{this['_updateItemPositionInFocusables'](_0x3f2133['source']);}),this['list']['forEach'](_0x4b2bc9=>{this['focusTracker']['add'](_0x4b2bc9['element']),this['_updateItemPositionInFocusables'](_0x4b2bc9);}),this['list']['on']('change',(_0x4630f7,_0x457b95)=>{for(const _0x103627 of _0x457b95['removed'])this['focusTracker']['remove'](_0x103627['element']),this['focusables']['remove'](_0x103627);for(const _0x53c571 of _0x457b95['added'])this['focusTracker']['add'](_0x53c571['element']),this['_updateItemPositionInFocusables'](_0x53c571);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x285f1e){const _0x377525=this['focusables']['getIndex'](_0x285f1e);let _0x42f22b,_0x58091e;for(const _0x1e2f62 of this['focusables'])if(_0x285f1e['top']<_0x1e2f62['top']){_0x42f22b=_0x1e2f62;break;}if(_0x58091e=_0x42f22b?this['focusables']['getIndex'](_0x42f22b):this['focusables']['length'],-0x1!==_0x377525){if(_0x377525===_0x58091e-0x1)return;this['focusables']['remove'](_0x285f1e),_0x58091e=_0x42f22b?this['focusables']['getIndex'](_0x42f22b):this['focusables']['length'];}this['focusables']['add'](_0x285f1e,_0x58091e);}}const Ht=xt('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x154092){super(_0x154092),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x121e2d,_0x4c65f6)=>_0x121e2d+_0x4c65f6),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x2574ce=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x2574ce['to']('isAnimationDisabled',_0x338a73=>_0x338a73?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x2574ce['to']('top',_0x1454ad=>Ht(_0x1454ad))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x345f02=this['element']['clientHeight'];_0x345f02&&(this['height']=_0x345f02);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x4d0391{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d8246){super(_0x4d8246),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 _0x326710=this['context']['config']['get']('sidebar.container');_0x326710&&this['setContainer'](_0x326710);}['setContainer'](_0x5c8839){if(!y(_0x5c8839))throw new _0x3b0292('sidebar-setcontainer-invalid-element');this['container']=_0x5c8839;}['_attachToContainer']({viewClass:_0x11eac4='',spaceBetweenItems:_0x57c27c=0x19}={}){if(!y(this['container']))throw new _0x3b0292('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x11eac4,this['_spaceBetweenItems']=_0x57c27c;}['rearrange']({removedAnnotation:_0xf4ff95,previousAnnotation:_0x405a36,nextAnnotation:_0x54887f}){const _0xa3f19d=this['getSidebarItemView'](_0xf4ff95);this['view']['list']['remove'](_0xa3f19d),this['_destroySidebarItemView'](_0xf4ff95),_0x405a36&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x405a36)),_0x54887f&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x54887f)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1f0488,activatedAnnotation:_0x579599,disableAnimationOnActivatedAnnotation:_0x160e71}){if(this['_activeAnnotation']=_0x579599,_0x1f0488){_0x1f0488['isActive']=!0x1;const _0x1a5a80=this['getSidebarItemView'](_0x1f0488);_0x1a5a80&&_0x160e71&&(_0x1a5a80['isAnimationDisabled']=!0x1);}if(_0x579599){const _0x4d674d=this['getSidebarItemView'](_0x579599);_0x4d674d&&(_0x579599['isActive']=!0x0,_0x160e71&&(_0x4d674d['isAnimationDisabled']=!0x0,_0x4d674d['top']+=0x1),this['_alignToTargetRect'](_0x4d674d));}}['_detachFromContainer'](_0x11ea78){if(this['view']['element']['remove'](),_0x11ea78){for(const _0x4363ce of _0x11ea78)this['_destroySidebarItemView'](_0x4363ce);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xbeb062,_0x43c2e8){_0x43c2e8||(_0x43c2e8=_0xbeb062['view']);const _0x3bdd0f=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x3bdd0f,_0xbeb062),this['_annotationToSidebarItemView']['set'](_0xbeb062,_0x3bdd0f),_0x3bdd0f['content']['add'](_0x43c2e8),this['listenTo'](_0xbeb062['view'],'change:targetRect',(_0x57e025,_0x3ba329,_0x3b02ff)=>{const _0x384fae=this['_getTargetTop'](_0xbeb062,_0x3b02ff);_0x3bdd0f['_targetTop']!=_0x384fae&&(_0x3bdd0f['_targetTop']=_0x384fae,this['_setItemTop'](_0x3bdd0f,_0x384fae));}),this['listenTo'](_0x3bdd0f,'change:top',()=>{this['_recalculate'](_0x3bdd0f,'top');}),this['listenTo'](_0x3bdd0f,'change:bottom',()=>{this['_recalculate'](_0x3bdd0f,'bottom');}),this['_alignToTargetRect'](_0x3bdd0f);const _0x548c13=this['_getItemBefore'](_0x3bdd0f);if(_0x548c13)this['_alignAfterItem'](_0x548c13,_0x3bdd0f)||this['_alignToTargetRect'](_0x3bdd0f);else this['_alignToTargetRect'](_0x3bdd0f);return this['_updateLastItem'](),this['view']['list']['add'](_0x3bdd0f),_0x3bdd0f;}['_alignForTopChange'](_0x3e1d74){if(!_0x3e1d74['content']['length'])return;const _0x7cebc6=this['_getItemBefore'](_0x3e1d74);if(!_0x7cebc6)return;const _0x316e5a=this['_sidebarItemViewToAnnotation']['get'](_0x7cebc6),_0x156942=this['_activeAnnotation'];_0x156942&&_0x156942===_0x316e5a?this['_alignAfterItem'](_0x7cebc6,_0x3e1d74):this['_alignBeforeItem'](_0x3e1d74,_0x7cebc6);}['_alignForBottomChange'](_0x2d407f){if(!_0x2d407f['content']['length'])return;const _0x326ee0=this['_getItemAfter'](_0x2d407f);if(!_0x326ee0)return;const _0x5ded4b=this['_sidebarItemViewToAnnotation']['get'](_0x326ee0),_0x57a012=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x5b68b0=this['_activeAnnotation'];_0x5b68b0&&_0x5b68b0===_0x5ded4b&&_0x57a012?(this['_alignBeforeItem'](_0x326ee0,_0x2d407f),this['_alignAfterItem'](_0x2d407f,_0x326ee0)):_0x5b68b0&&_0x5b68b0===_0x5ded4b?this['_alignBeforeItem'](_0x326ee0,_0x2d407f):this['_alignAfterItem'](_0x2d407f,_0x326ee0);}['_recalculate'](_0x18a13a,_0x4416be){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x553877,changedProp:_0x563c9a}of this['_recalculateBuffer'])'top'===_0x563c9a?this['_alignForTopChange'](_0x553877):this['_alignForBottomChange'](_0x553877);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x18a13a,'changedProp':_0x4416be});}['getSidebarItemView'](_0x3a41c5){return this['_annotationToSidebarItemView']['get'](_0x3a41c5);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x32e587){const _0x2452fb=this['getSidebarItemView'](_0x32e587);this['stopListening'](_0x2452fb),this['stopListening'](_0x32e587['view']),_0x2452fb['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x32e587),this['_sidebarItemViewToAnnotation']['delete'](_0x2452fb);}['_createSidebarView'](){const _0x538a67=new F(this['context']['locale']);return _0x538a67['render'](),this['on']('change:_lastItem',(_0x21334d,_0x313359,_0x4f566c,_0x32e299)=>{_0x32e299&&_0x538a67['unbind']('minHeight'),_0x4f566c?_0x538a67['bind']('minHeight')['to'](_0x4f566c,'bottom'):_0x538a67['minHeight']=null;}),_0x538a67;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x1d6018){const _0x43f478=this['_sidebarItemViewToAnnotation']['get'](_0x1d6018),_0x313af0=_0x43f478&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x43f478)-0x1);return _0x313af0&&this['getSidebarItemView'](_0x313af0)||null;}['_getItemAfter'](_0xd86084){const _0x55813a=this['_sidebarItemViewToAnnotation']['get'](_0xd86084),_0x366f8a=_0x55813a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x55813a)+0x1);return _0x366f8a&&this['getSidebarItemView'](_0x366f8a)||null;}['_alignBeforeItem'](_0x62d42d,_0x3e3a49){_0x62d42d['updateHeight']();const _0x12b1ad=R(_0x3e3a49['bottom']+this['_spaceBetweenItems'],_0x62d42d['top']);return!!_0x12b1ad&&(this['_setItemTop'](_0x3e3a49,_0x3e3a49['top']-_0x12b1ad),!0x0);}['_alignAfterItem'](_0x5ee42d,_0x53dda1){_0x5ee42d['updateHeight']();const _0x3d8972=R(_0x5ee42d['bottom']+this['_spaceBetweenItems'],_0x53dda1['top']);return!!_0x3d8972&&(this['_setItemTop'](_0x53dda1,_0x53dda1['top']+_0x3d8972,!0x1),!0x0);}['_alignToTargetRect'](_0x4a085b){const _0x3001de=this['_sidebarItemViewToAnnotation']['get'](_0x4a085b);if(!_0x3001de||!_0x3001de['target']||!_0x3001de['targetRect'])return;const _0x4e31bd=this['_getTargetTop'](_0x3001de,_0x3001de['targetRect']);this['_setItemTop'](_0x4a085b,_0x4e31bd);}['_getTargetTop'](_0xca78fd,_0x2b1dc5){if(null===_0x2b1dc5)return 0x0;if(_0xca78fd['target']instanceof _0x597a13)return _0x2b1dc5['top'];{const _0x1fec69=new _0x597a13(this['view']['element'])['top'];return _0x2b1dc5['top']-_0x1fec69;}}['_setItemTop'](_0x3e514f,_0x321046,_0x2a060f=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x2a060f&&(_0x321046=Math['max'](_0x321046,this['_getMaxAvailableTop'](_0x3e514f))),_0x3e514f['top']=_0x321046;}['_getMaxAvailableTop'](_0x4c5c52){let _0x328030=this['_getItemBefore'](_0x4c5c52),_0x132d42=0x0;for(;_0x328030;)_0x328030['updateHeight'](),_0x132d42+=this['_spaceBetweenItems']+_0x328030['height'],_0x328030=this['_getItemBefore'](_0x328030);return _0x132d42;}}function R(_0xe0b3e0,_0xeb4f4d){return Math['max'](_0xe0b3e0-_0xeb4f4d,0x0);}function y(_0x50f632){return null!==_0x50f632&&'object'==typeof _0x50f632&&0x1===_0x50f632['nodeType'];}class e extends _0x4d0391{['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(_0x1291bb){super(_0x1291bb),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x3eedb8(),this['_refreshPositioningDebounced']=_0x4724d7(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x539072=this['context']['plugins']['get'](M),_0x1d187b=this['context']['plugins']['get'](z);_0x539072['register']('wideSidebar',this),_0x1d187b['container']&&_0x539072['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x2da0d1){if(_0x2da0d1===this['activeAnnotation'])return;const _0x51519b=this['context']['plugins']['get'](z);_0x51519b['_activeAnnotation']=_0x2da0d1;const _0xf3533d=this['activeAnnotation'];_0x51519b['refresh']({'blurredAnnotation':_0xf3533d,'activatedAnnotation':_0x2da0d1}),this['activeAnnotation']=_0x2da0d1;}['attach'](_0x2e8010){this['annotations']=_0x2e8010;const _0x54e193=this['context']['plugins']['get'](z);if(_0x54e193['_annotations']=_0x2e8010,this['isAttached'])throw new _0x3b0292('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x54e193,'set:container',()=>{this['detach'](),this['listenTo'](_0x54e193,'change:container',_0x4557f7=>{_0x4557f7['off'](),this['attach'](_0x2e8010);});}),_0x54e193['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x230f4f=_0x5ba389=>{_0x5ba389['updateTargetRect'](),_0x54e193['addAnnotation'](_0x5ba389);};for(const _0x59f892 of _0x2e8010)_0x230f4f(_0x59f892);this['listenTo'](_0x2e8010,'add',(_0x3dc2cb,_0x16d3cf)=>{_0x230f4f(_0x16d3cf);}),this['listenTo'](_0x2e8010,'remove',(_0x15fa16,_0x2e4a51,_0x2f1f2d)=>{_0x54e193['rearrange']({'removedAnnotation':_0x2e4a51,'previousAnnotation':_0x2e8010['get'](_0x2f1f2d-0x1),'nextAnnotation':_0x2e8010['get'](_0x2f1f2d+0x1)}),_0x2e4a51===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x2e8010,'focus',(_0xc34871,_0x35319c)=>{this['setActiveAnnotation'](_0x35319c);}),this['listenTo'](_0x2e8010,'blur',()=>{this['setActiveAnnotation'](null);});const _0x45b7d0=this['context']instanceof _0x16f11a?this['context']['editors']:new _0x3eedb8([this['context']]);for(const _0x282a30 of _0x45b7d0)this['_integrateWithEditorAnnotations'](_0x282a30);this['listenTo'](_0x45b7d0,'add',(_0x4821c9,_0x2f8ab5)=>{this['listenTo'](_0x2f8ab5,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2f8ab5);});}),this['listenTo'](_0x45b7d0,'remove',(_0x52ef2c,_0xf33dc5)=>{_0xf33dc5['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xf33dc5['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3b0292('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xada6fa=this['context']['plugins']['get'](z);_0xada6fa['_detachFromContainer'](this['annotations']),this['stopListening'](_0xada6fa),this['stopListening'](this['annotations']),this['context']instanceof _0x16f11a&&this['stopListening'](this['context']['editors']);for(const _0x2419f9 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2419f9);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x493bc2){if(!_0x493bc2['plugins']['has']('EditorAnnotations'))return;const _0x2f26e4=_0x493bc2['plugins']['get']('EditorAnnotations'),_0x5fd2d1=()=>{const _0x30b5c7=_0x2f26e4['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x30b5c7[0x0]||null);};this['listenTo'](_0x2f26e4,'refresh',_0x5fd2d1),this['listenTo'](_0x2f26e4,'blur',(_0x33fee8,{isAnnotationTracked:_0x1ed41f})=>{this['activeAnnotation']&&_0x1ed41f(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2f26e4,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x159676=>{_0x2f26e4['hasDomSelection']()&&(_0x5fd2d1(),_0x159676['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2f26e4);}['_destroyEditorAnnotationsIntegration'](_0x39213d){this['stopListening'](_0x39213d),this['_editorAnnotations']['remove'](_0x39213d);}}class C extends _0x3f387b{['counterView'];constructor(_0xbda410){super(_0xbda410);const _0x153de5=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3a0a3d,_0xb05bf8)=>_0x3a0a3d?'...':_0xb05bf8['toString']()),this['set']('annotationType',''),this['icon']=_0x40f967,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x153de5['to']('annotationType',_0x57eb2f=>'ck-annotation-counter__badge--'+_0x57eb2f),_0x153de5['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x153de5['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x4d0391{['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(_0x5ae1aa){super(_0x5ae1aa),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x56e90a),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x3eedb8(),this['_refreshPositioningDebounced']=_0x4724d7(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x432c40(this['context']['locale']),this['balloonPanelView']=new _0x46863b(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x570499){this['annotations']=_0x570499;const _0x47c569=this['context']['plugins']['get'](z),_0x175296=this['balloonPanelView'];if(_0x47c569['_annotations']=_0x570499,this['isAttached'])throw new _0x3b0292('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x47c569,'set:container',()=>{this['detach'](),this['listenTo'](_0x47c569,'change:container',_0x5b811d=>{_0x5b811d['off'](),this['attach'](_0x570499);});}),_0x47c569['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x36ad14=_0x52f800=>{const _0x58d5fc=new C(this['context']['locale']);_0x47c569['addAnnotation'](_0x52f800,_0x58d5fc),this['_annotationToNarrowView']['set'](_0x52f800,_0x58d5fc),_0x58d5fc['bind']('isDirty','annotationType','number')['to'](_0x52f800['view'],'isDirty','type','length'),_0x58d5fc['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x175296['content']['first']!==_0x52f800['view']?(this['_showBalloon'](_0x52f800),_0x52f800['view']['element']['focus'](),this['setActiveAnnotation'](_0x52f800)):this['setActiveAnnotation'](null);});};for(const _0x1d6734 of _0x570499)_0x36ad14(_0x1d6734);this['listenTo'](_0x570499,'add',(_0x423ae9,_0x4ef860)=>{_0x36ad14(_0x4ef860);}),this['listenTo'](_0x570499,'remove',(_0xdc18c5,_0x5d5544,_0x429448)=>{this['_annotationToNarrowView']['get'](_0x5d5544)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5d5544),_0x47c569['rearrange']({'removedAnnotation':_0x5d5544,'previousAnnotation':_0x570499['get'](_0x429448-0x1),'nextAnnotation':_0x570499['get'](_0x429448+0x1)}),_0x5d5544===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x570499,'focus',(_0x2e918c,_0x5a1d93)=>{this['setActiveAnnotation'](_0x5a1d93);}),this['listenTo'](_0x570499,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x535a0a,_0x2e9589)=>{_0x2e9589['keyCode']===_0x10e4b0['esc']&&_0x175296['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x175296['content']['first']),this['_hideBalloon'](),_0x2e9589['stopPropagation'](),_0x2e9589['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x42d448,_0x79ae21)=>{const _0x1d2b36=_0x79ae21['target'];_0x175296['isVisible']&&_0x175296['element']['contains'](_0x1d2b36)||_0x47c569['view']['element']['contains'](_0x1d2b36)||_0x42d448['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4550ea=>_0x4550ea['contains'](_0x1d2b36))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x6f3016=this['context']instanceof _0x16f11a?this['context']['editors']:new _0x3eedb8([this['context']]);for(const _0xba8ff3 of _0x6f3016)this['_integrateWithEditorAnnotations'](_0xba8ff3);this['listenTo'](_0x6f3016,'add',(_0x4b9370,_0x45a30b)=>{this['listenTo'](_0x45a30b,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x45a30b);});}),this['listenTo'](_0x6f3016,'remove',(_0x472b43,_0x2f2629)=>{_0x2f2629['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2f2629['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5b9d7b){if(_0x5b9d7b===this['activeAnnotation'])return;const _0x294be6=this['context']['plugins']['get'](z);if(_0x294be6['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5b9d7b,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5b9d7b)_0x294be6['getSidebarItemView'](_0x5b9d7b)?this['_showBalloon'](_0x5b9d7b):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5b9d7b;}['detach'](){if(!this['isAttached'])throw new _0x3b0292('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x294838=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x1d14dc=>_0x1d14dc['destroy']()),this['_annotationToNarrowView']['clear'](),_0x294838['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x16f11a&&this['stopListening'](this['context']['editors']);for(const _0x1453cd of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1453cd);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'](_0x2fadf6){if(!_0x2fadf6['plugins']['has']('EditorAnnotations'))return;const _0x2ed371=_0x2fadf6['plugins']['get']('EditorAnnotations'),_0x1eeca9=this['context']['plugins']['get'](z),_0x1e14ff=this['annotations'],_0x3312bb=this['balloonPanelView'],_0x10d2f2=()=>{const _0x556380=_0x2ed371['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x556380),this['setActiveAnnotation'](_0x556380[0x0]||null);};this['listenTo'](_0x2ed371,'refresh',_0x10d2f2),this['listenTo'](_0x2ed371,'blur',(_0x264dc0,{isAnnotationTracked:_0x40f976})=>{this['activeAnnotation']&&_0x40f976(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2ed371,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1e14ff,'blur',_0x1c7847=>{_0x2ed371['hasDomSelection']()&&_0x1c7847['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x4d33e6,_0x1629a3)=>{const _0x1d3d0b=_0x1629a3['target'];_0x3312bb['isVisible']&&_0x3312bb['element']['contains'](_0x1d3d0b)||_0x1eeca9['view']['element']['contains'](_0x1d3d0b)||this['activeAnnotation']&&_0x2ed371['hasDomSelection']()&&(_0x10d2f2(),_0x4d33e6['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2ed371);}['_destroyEditorAnnotationsIntegration'](_0x4b4cb0){_0x4b4cb0&&(this['stopListening'](_0x4b4cb0),this['_editorAnnotations']['remove'](_0x4b4cb0));}['_setSelectedAnnotations'](_0x2a473d){for(const _0xf8c0d of this['_selectedAnnotations'])_0x2a473d['includes'](_0xf8c0d)||this['_manuallyClosedAnnotationViews']['delete'](_0xf8c0d['view']);this['_selectedAnnotations']=_0x2a473d;}['_refreshPositioning'](){const _0x34e58a=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x34e58a['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3a7994){if(this['_manuallyClosedAnnotationViews']['has'](_0x3a7994['view']))return;const _0x5cf204=this['balloonPanelView']['content']['first'];_0x5cf204!==_0x3a7994['view']?(_0x5cf204&&this['_detachListeners'](_0x5cf204),this['_attachListeners'](_0x3a7994['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3a7994['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x250d0c=this['balloonPanelView']['content']['first'],_0x41f48d=_0x250d0c&&this['annotations']['getByView'](_0x250d0c);if(!_0x41f48d||!this['_annotationToNarrowView']['has'](_0x41f48d))return;const _0x51aab7=this['_annotationToNarrowView']['get'](_0x41f48d)['element'],_0x715e55=(function(){const _0x28753b=_0x46863b['defaultPositions'];return[_0x28753b['southArrowNorthEast'],_0x28753b['northArrowSouthEast'],_0x28753b['southArrowNorth'],_0x28753b['northArrowSouth'],_0x28753b['southArrowNorthWest'],_0x28753b['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x51aab7,'positions':_0x715e55});}['_hideBalloon'](){const _0x31d493=this['balloonPanelView'],_0x159fdf=_0x31d493['content']['first'];_0x159fdf&&(this['_detachListeners'](_0x159fdf),_0x31d493['unpin'](),_0x31d493['content']['clear']());}['_attachListeners'](_0x3cee2c){this['listenTo'](_0x3cee2c,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x3cee2c,'Esc',(_0x212383,_0x2baa8a)=>{this['_manuallyClosedAnnotationViews']['add'](_0x3cee2c),this['_hideBalloon'](),_0x2baa8a();});}['_detachListeners'](_0x356d01){this['stopListening'](_0x356d01);}}class c extends _0x51209d{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x4831a8,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfb5a2e){super(_0xfb5a2e),_0xfb5a2e['editing']['view']['addObserver'](_0x1d8e6f),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0xfb5a2e['plugins']['get'](_0x4831a8),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x5f381c=this['editor']['plugins']['get'](M);_0x5f381c['context']===this['editor']&&(_0x5f381c['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x41b912,_0x135825)=>{const _0x34bc21=this['_balloon'];if(this['isAttached']&&_0x34bc21['visibleView']){const _0x3ae432=this['annotations']['getByView'](_0x34bc21['visibleView']);_0x3ae432&&this['_closeAnnotation'](_0x3ae432),_0x135825();}}));}['afterInit'](){const _0x2d7de0=this['editor']['plugins']['get'](M);_0x2d7de0['context']===this['editor']&&(_0x2d7de0['hasActive']()||_0x2d7de0['switchTo']('inline'));}['setActiveAnnotation'](_0x531788){_0x531788!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x531788&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x531788)&&this['_addAnnotationToBalloon'](_0x531788,!0x0),_0x531788['isActive']=!0x0),_0x531788||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x531788);}['attach'](_0xc8e95){this['annotations']=_0xc8e95;const _0x355324=this['editor']['plugins']['get'](M),_0x5ba547=this['_balloon'];if(this['isAttached'])throw new _0x3b0292('inlineannotations-attach-already-attached',this);if(_0x355324['context']!==this['editor'])throw new _0x3b0292('inlineannotations-not-allowed-with-context',this);const _0x2e2168=this['editor']['plugins']['get'](P);this['listenTo'](_0x2e2168,'refresh',()=>{const _0x2956df=_0x2e2168['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x539c26,_0x562c77;!this['_forceRefresh']&&(_0x539c26=_0x2956df,_0x562c77=this['_selectedAnnotations'],_0x539c26['length']===_0x562c77['length']&&_0x539c26['every'](_0x54e469=>_0x562c77['includes'](_0x54e469)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2956df),this['setActiveAnnotation'](_0x2956df[0x0]||null));}),this['listenTo'](_0x2e2168,'blur',(_0x36ad36,{isAnnotationTracked:_0x262eaf})=>{this['activeAnnotation']&&_0x262eaf(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2a23c6,_0x3df146,_0x26b5fb)=>{_0x26b5fb||this['setActiveAnnotation'](null);}),this['listenTo'](_0xc8e95,'remove',(_0x23502a,_0x160008)=>{this['_removeAnnotationFromBalloon'](_0x160008),_0x160008===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5ba547,'change:visibleView',(_0x5d566c,_0x1426fb,_0x4ed8b6,_0x5b53f6)=>{_0x5b53f6&&this['stopListening'](_0x5b53f6);const _0x19b5a2=_0xc8e95['getByView'](_0x4ed8b6);_0x4ed8b6&&_0x19b5a2&&(this['listenTo'](_0x4ed8b6,'change:height',()=>{_0x5ba547['updatePosition']();}),this['listenTo'](_0x4ed8b6,'Esc',()=>{this['_closeAnnotation'](_0x19b5a2),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x19b5a2&&this['setActiveAnnotation'](_0x19b5a2));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5ba547['visibleView']&&(_0xc8e95['getByView'](_0x5ba547['visibleView'])&&_0x5ba547['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 _0x3b0292('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4bb69f of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4bb69f);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x2a0e71){for(const _0x519b37 of this['_selectedAnnotations'])_0x2a0e71['includes'](_0x519b37)||this['_manuallyClosed']['delete'](_0x519b37);for(const _0x40d2e4 of this['annotations'])_0x2a0e71['includes'](_0x40d2e4)||this['_removeAnnotationFromBalloon'](_0x40d2e4);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x50b4ee of _0x2a0e71)this['_addAnnotationToBalloon'](_0x50b4ee);}this['_selectedAnnotations']=_0x2a0e71;}['_addAnnotationToBalloon'](_0x1b2ad1,_0x3e247a=!0x1){this['_manuallyClosed']['has'](_0x1b2ad1)||(this['_addedAnnotations']['has'](_0x1b2ad1)||this['_balloon']['hasView'](_0x1b2ad1['view'])||(this['_addedAnnotations']['add'](_0x1b2ad1),this['_balloon']['add']({'stackId':_0x1b2ad1['view']['id'],'view':_0x1b2ad1['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x1b2ad1)}})),_0x3e247a&&this['_balloon']['showStack'](_0x1b2ad1['view']['id']));}['_getBalloonTargetForAnnotation'](_0x437b6a){const _0x3f8a00=_0x437b6a['target'],_0x16a359=this['editor']['editing']['view'],_0x97b586=_0x16a359['document']['selection']['getFirstRange'](),_0x57ba77=_0x16a359['domConverter']['viewRangeToDom'](_0x97b586);if(_0x57ba77['collapse'](!0x0),_0x3f8a00){if(_0x3f8a00 instanceof _0x597a13)return _0x3f8a00;let _0x629451=[];for(const _0x3e3e3f of _0x3f8a00)_0x629451['push'](...(_0xb4170d=_0x3e3e3f['getClientRects'](),Array['from'](_0xb4170d)['map'](DOMRect['fromRect'])));_0x629451=function(_0x1d2987){const _0x126a9e=[];let _0x270187=_0x1d2987[0x0];for(let _0x2e31a5=0x1;_0x2e31a5<_0x1d2987['length'];_0x2e31a5++)B(_0x270187,_0x1d2987[_0x2e31a5])?_0x270187['width']+=_0x1d2987[_0x2e31a5]['width']:(_0x126a9e['push'](_0x270187),_0x270187=_0x1d2987[_0x2e31a5]);return _0x126a9e['push'](_0x270187),_0x126a9e;}(_0x629451);const _0x47053d=_0x57ba77['getBoundingClientRect']();return _0x629451['find'](_0x5c9e87=>_0x5c9e87['top']<=_0x47053d['top']&&_0x5c9e87['bottom']>=_0x47053d['bottom']&&_0x5c9e87['left']<=_0x47053d['left']&&_0x5c9e87['right']>=_0x47053d['right'])||_0x629451[0x0];}var _0xb4170d;return _0x437b6a['targetRect']||_0x57ba77;}['_removeAnnotationFromBalloon'](_0xae6a33){this['_addedAnnotations']['has'](_0xae6a33)&&this['_balloon']['hasView'](_0xae6a33['view'])&&(this['_addedAnnotations']['delete'](_0xae6a33),this['_balloon']['remove'](_0xae6a33['view']));}['_closeAnnotation'](_0x18d866){this['_manuallyClosed']['add'](_0x18d866),this['_removeAnnotationFromBalloon'](_0x18d866);}}function B(_0xd4f41a,_0x40174d){return _0xd4f41a['top']===_0x40174d['top']&&_0xd4f41a['bottom']===_0x40174d['bottom']&&_0xd4f41a['right']===_0x40174d['left'];}class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x10f876,_0x396638){super(_0x10f876),this['set']('isEmpty',!_0x396638['length']),this['focusTracker']=new _0x29f230(),this['_annotationViews']=_0x396638,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x8029a4({'focusables':_0x396638,'focusTracker':this['focusTracker']}),this['listenTo'](_0x396638,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x396638,'remove',(_0x2d9b5c,_0x1e66f5)=>{_0x1e66f5['isActive']&&this['focus'](),_0x396638['length']||(this['isEmpty']=!0x0);});const _0x1a3007=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x10f876,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x396638},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x1a3007['if']('isEmpty','ck-hidden',_0x27a8ab=>!_0x27a8ab)]},'children':[{'text':E(_0x10f876,'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 _0x1ef59b of this['_annotationViews'])this['focusTracker']['add'](_0x1ef59b['element']);this['_annotationViews']['on']('change',(_0x4409bd,{added:_0x1559b0,removed:_0x4430f6})=>{for(const _0x253c7c of _0x1559b0)this['focusTracker']['add'](_0x253c7c['element']);for(const _0x47a161 of _0x4430f6)this['focusTracker']['remove'](_0x47a161['element']);});}}class f extends _0x4d0391{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x1c0e0b){super(_0x1c0e0b),this['archivedThreads']=new _0x3eedb8();}['init'](){const _0x2bd4a2=this['context'],_0x37c3cb=_0x2bd4a2['plugins']['get'](o),_0x1623e9=_0x2bd4a2['plugins']['get'](O);this['listenTo'](_0x37c3cb,'addCommentThread',(_0x1d784a,{threadId:_0x819e41})=>{const _0x378673=_0x37c3cb['getCommentThread'](_0x819e41);_0x378673['archivedAt']&&this['archivedThreads']['add'](_0x378673,this['_calculatePosition'](_0x378673['archivedAt'])),this['listenTo'](_0x378673,'change:archivedAt',(_0x1f1a7b,_0x4c7e66,_0x3a416d)=>{_0x3a416d?this['archivedThreads']['has'](_0x378673)||this['archivedThreads']['add'](_0x378673,this['_calculatePosition'](_0x378673['archivedAt'])):this['archivedThreads']['has'](_0x378673)&&this['archivedThreads']['remove'](_0x378673);});}),this['listenTo'](_0x37c3cb,'removeCommentThread',(_0x21d68b,{threadId:_0x29328d})=>{const _0x5c9331=_0x37c3cb['getCommentThread'](_0x29328d);this['stopListening'](_0x5c9331),this['archivedThreads']['has'](_0x5c9331)&&this['archivedThreads']['remove'](_0x5c9331);},{'priority':'highest'}),this['listenTo'](_0x1623e9['collection'],'focus',(_0x330444,_0x2a0a27)=>{_0x2a0a27['isVisible']||(_0x2a0a27['isActive']=!0x0,_0x1623e9['activate'](_0x2a0a27));});}['_calculatePosition'](_0xcab64c){const _0x3115bb=[...this['archivedThreads']]['findIndex'](_0x4acee2=>_0x4acee2['archivedAt']<_0xcab64c);return _0x3115bb>-0x1?_0x3115bb:this['archivedThreads']['length'];}}class a extends _0x51209d{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x36c7ab];}constructor(_0x38bac2){super(_0x38bac2),this['annotationViews']=new _0x3ce2be(),this['_pendingThreads']=[];}['init'](){const _0x18d870=this['editor'],_0x12e8a4=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x18d870['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3f387b,!0x0)),_0x18d870['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x7301b=this['_createCommentsArchiveButton'](_0x370a9d);return _0x7301b['set']({'role':'menuitemcheckbox'}),_0x7301b;});const _0x421d7c=_0x18d870['plugins']['get'](f),_0x27de58=_0x18d870['plugins']['get']('Annotations'),_0x26d177=_0x18d870['plugins']['get']('CommentsRepository');_0x421d7c['archivedThreads']['forEach'](_0xfddd39=>{this['_handleNewThread'](_0xfddd39);}),this['listenTo'](_0x421d7c['archivedThreads'],'add',(_0x59405b,_0x530c6b)=>{this['_handleNewThread'](_0x530c6b);}),this['listenTo'](_0x27de58['collection'],'add',(_0x4c8b7b,_0x39ec31)=>{const _0x43430e=this['_pendingThreads']['find'](_0xf020d7=>{const _0x911630=_0x26d177['_threadToController']['get'](_0xf020d7);return _0x911630&&_0x39ec31['innerView']===_0x911630['view'];});if(_0x43430e){const _0x2d6944=this['_calculatePosition'](_0x43430e['archivedAt']);this['annotationViews']['add'](_0x39ec31['view'],_0x2d6944),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x43430e),0x1);}}),this['listenTo'](_0x421d7c['archivedThreads'],'remove',(_0x3f4884,_0x133427)=>{const _0x595b95=_0x18d870['config']['get']('collaboration.channelId');if(!_0x595b95||_0x133427['channelId']===_0x595b95){if(this['_pendingThreads']['includes'](_0x133427))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x133427),0x1);else{const _0x41f0ca=_0x26d177['_threadToController']['get'](_0x133427),_0x290dae=_0x27de58['getByInnerView'](_0x41f0ca['view']);this['annotationViews']['remove'](_0x290dae['view']),this['stopListening'](_0x290dae['focusableElements']);}}}),this['listenTo'](_0x27de58['collection'],'add',(_0x230ecd,_0x54a5b7)=>{this['listenTo'](_0x54a5b7,'escape',_0x12e8a4);}),this['listenTo'](_0x27de58['collection'],'remove',(_0x350c43,_0x1db637)=>{this['stopListening'](_0x1db637,'escape',_0x12e8a4);});}['_handleNewThread'](_0x5cac44){const _0x2184bb=this['editor']['plugins']['get']('CommentsRepository'),_0x3fa2f0=this['editor']['plugins']['get']('Annotations'),_0x2cfd14=this['editor']['config']['get']('collaboration.channelId');if(!_0x2cfd14||_0x5cac44['channelId']===_0x2cfd14){const _0x331aaf=_0x2184bb['_threadToController']['get'](_0x5cac44);if(!_0x331aaf)return void this['_pendingThreads']['push'](_0x5cac44);const _0x53f428=this['_calculatePosition'](_0x5cac44['archivedAt']),_0x254dc6=_0x3fa2f0['getByInnerView'](_0x331aaf['view']);_0x254dc6['isVisible']&&_0x3fa2f0['_visibleAnnotations']['remove'](_0x254dc6),this['annotationViews']['add'](_0x254dc6['view'],_0x53f428);}}['_calculatePosition'](_0xb0452d){const _0x556777=this['editor']['config']['get']('collaboration.channelId'),_0x4778ac=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x2e0d03=>_0x2e0d03['channelId']===_0x556777)['findIndex'](_0x1bcc3d=>_0x1bcc3d['archivedAt']<_0xb0452d);return _0x4778ac<0x0||_0x4778ac>this['annotationViews']['length']?this['annotationViews']['length']:_0x4778ac-0x1;}['_toggleDialog'](){const _0x535f8a=this['editor'],_0x499a35=_0x535f8a['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x535f8a['locale'],this['annotationViews'])),'commentsArchive'===_0x499a35['id']?_0x499a35['hide']():_0x499a35['show']({'id':'commentsArchive','title':E(_0x535f8a['locale'],'COMMENTS_ARCHIVE'),'icon':_0x1442de,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3e1e67['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x180206,_0x4364e7=!0x1){const _0x1c40f5=this['editor']['locale'],_0x5c610e=this['editor']['plugins']['get']('Dialog'),_0x3d8475=new _0x180206(_0x1c40f5);return _0x3d8475['bind']('isEnabled')['to'](this,'isEnabled'),_0x3d8475['bind']('isOn')['to'](_0x5c610e,'id',_0xb9992=>'commentsArchive'===_0xb9992),_0x3d8475['set']({'label':E(_0x1c40f5,'COMMENTS_ARCHIVE'),'icon':_0x1442de,'isToggleable':!0x0}),_0x4364e7&&(_0x3d8475['tooltip']=!0x0),this['listenTo'](_0x3d8475,'execute',()=>this['_toggleDialog']()),_0x3d8475;}['_hideDialogOnAnnotationEscape']=_0x54e56f=>{const _0x7790ed=_0x54e56f['source'];if(!this['annotationViews']['has'](_0x7790ed['view']))return;const _0x2d56ec=this['editor']['plugins']['get']('Dialog');_0x2d56ec['isOpen']&&'commentsArchive'===_0x2d56ec['id']&&(_0x2d56ec['hide'](),_0x54e56f['stop']());};}class p extends _0x51209d{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};