@ckeditor/ckeditor5-comments 45.1.0 → 45.2.0-alpha.0

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 _0x39e708,ContextPlugin as _0x3c22fb,PendingActions as ht,Command as _0xfbedbc,Plugin as _0x3e155f,Context as _0x49d7c6}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x33434e,uid as _0x1fe468,KeystrokeHandler as jt,FocusTracker as _0x4b4d8d,diff as _0x4f7541,Collection as _0x508354,Rect as _0x44e78c,CKEditorError as _0x369546,first as _0x38b0a5,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x2ff123,keyCodes as _0x5d23d3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x38f705,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x41339c,trimHtml as _0x394005,LateFocusDropdownButtonView as _0x44c954,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x357028}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0xaf86be}from'es-toolkit/compat';import{IconUndo as _0x544892,IconCheck as _0x5a8293,IconPencil as _0x7d29fe,IconRemoveComment as _0x5ec47b,IconThreeVerticalDots as _0x1024e2,IconAddComment as _0x5dec5b,IconCommentsArchive as _0x4c7eff}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Vt,InlineEditableUIView as $t,EditorUI as Rt,View as kt,FocusCycler as _0x12ac84,ButtonView as _0x5ae41a,ViewCollection as _0x143e0c,createDropdown as _0x245262,ListView as _0x25b9d2,focusChildOnDropdownOpen as _0x29a31f,ListItemView as _0x4f5f53,MenuBarMenuListItemButtonView as _0x39588d,BodyCollection as _0x3b4750,BalloonPanelView as _0x1e208c,ContextualBalloon as _0x12283a,Dialog as _0x19a869,DialogViewPosition as _0x513643}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x37f8d0}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 _0x201029}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0xd6cd62}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x33434e(){['model'];['view'];constructor(_0x2de246,_0x15ad44){super(),this['model']=_0x2de246,this['model']['_isAttached']=!0x0,this['view']=_0x15ad44,this['listenTo'](_0x15ad44,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x15ad44,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x15ad44,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x15ad44,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x15ad44,'addComment',(_0x101850,_0x1474bb)=>this['addComment'](_0x1474bb)),this['listenTo'](_0x15ad44,'updateComment',(_0x4ad832,_0xd1443c,_0x4c802c)=>this['updateComment'](_0xd1443c,_0x4c802c)),this['listenTo'](_0x15ad44,'removeComment',(_0x391f00,_0x5edcb6)=>this['removeComment'](_0x5edcb6));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x497444){this['model']['addComment']({'content':_0x497444,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x53af3c,_0x158cf1){this['model']['getComment'](_0x53af3c)['update']({'content':_0x158cf1});}['removeComment'](_0x3c302a){this['model']['getComment'](_0x3c302a)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x317c71,_0x5ca864,_0x311b13){const t=_0x317c71['t'];switch(_0x5ca864){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'},_0x311b13);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'},_0x311b13);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'},_0x311b13);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'},_0x311b13);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x311b13);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'},_0x311b13);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'},_0x311b13);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'},_0x311b13);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(_0x5b2fde,_0x30d3ae){super(_0x5b2fde);const _0x45e503=_0x1fe468();this['main']=this['createCollection'](),this['editable']=new $t(_0x5b2fde,_0x30d3ae,void 0x0,{'label':()=>E(_0x5b2fde,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x5b2fde['uiLanguageDirection'],'lang':_0x5b2fde['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x45e503},'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(_0x41be12){super(_0x41be12),this['view']=new Ut(_0x41be12['locale'],_0x41be12['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3484b4=this['editor']['editing']['view'],_0x5d9518=this['view']['editable'],_0xda33e3=_0x3484b4['document']['getRoot']();_0x5d9518['name']=_0xda33e3['rootName'],this['view']['render']();const _0x9f0399=_0x5d9518['element'];this['setEditableElement'](_0x5d9518['name'],_0x9f0399),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3484b4['attachDomRoot'](_0x9f0399),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Nt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Qt extends/* #__PURE__ -- @preserve */
25
- _0x33434e(_0x39e708){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Nt)());constructor(_0x170a8a={}){function _0x5f1dad(_0x59b2c7){return _0x59b2c7['map'](_0x3deb16=>String['fromCharCode'](_0x3deb16))['join']('');}(_0x170a8a=Object['assign']({},_0x170a8a))['plugins']||(_0x170a8a['plugins']=Qt['defaultPlugins']),super(_0x170a8a),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[_0x5f1dad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f1dad([0x76,0x69,0x65,0x77])][_0x5f1dad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f1dad([0x61,0x75,0x74,0x6f]),this[_0x5f1dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5f1dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f1dad([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5f1dad([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5f1dad([0x6f,0x6b])});}['create'](){const _0x550e63=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x550e63))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0xf09929=>{const _0x289ff0=this['model']['document']['getRoot'](),_0x4d88e9=_0x289ff0&&_0x289ff0['getChild'](_0x289ff0['childCount']-0x1);_0xf09929['setSelection'](_0x4d88e9,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x1f84e3=this['editing']['view'],_0x4d2a9e=_0x1f84e3['document']['getRoot'](),_0x3a488a=_0x4d2a9e['getChild'](0x0);_0x4d2a9e['childCount']>0x1||!_0x3a488a||'p'!=_0x3a488a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x1f84e3,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3a488a['placeholder']=this['placeholder']),Ft({'view':_0x1f84e3,'element':_0x3a488a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3a488a);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x26279e,_0x5da9e6={}){super(_0x26279e),this['editor']=null,this['_editorConfig']=_0x5da9e6,this['set']('value',_0x5da9e6['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x26279e,'Reply...')),this['set']('submitLabel',E(_0x26279e,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x4b4d8d(),this['focusCycler']=new _0x12ac84({'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',(_0x37b780,_0x384e31)=>{this['cancelButtonView']['fire']('execute'),_0x384e31();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4f69d3,_0x308fba)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x308fba());}),this['on']('submit',(_0x51fe49,_0x108350)=>{_0x108350['length']>0xfde8?(alert(E(_0x26279e,'TOO_LONG_COMMENT_ALERT',[_0x108350['length'],0xfde8])),_0x51fe49['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 _0xb14fcb=this['editor'];this['element']['insertBefore'](_0xb14fcb['ui']['element'],this['element']['firstChild']),_0xb14fcb['model']['document']['on']('change',()=>this['value']=_0xb14fcb['getData']()),_0xb14fcb['bind']('placeholder')['to'](this),this['focusables']['add'](_0xb14fcb['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x12d8f7){-0x1===_0x12d8f7?(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:_0x1c7edf}=this,_0x18e2e8=new _0x5ae41a(_0x1c7edf);return _0x18e2e8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x18e2e8['withText']=!0x0,_0x18e2e8['bind']('label')['to'](this,'submitLabel'),_0x18e2e8['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x18e2e8['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x581724,_0x18af9b)=>!_0x18af9b&&!!_0x581724['trim']()),_0x18e2e8;}['_createCancelButton'](){const {locale:_0x1bea75}=this,_0x11be9e=new _0x5ae41a(_0x1bea75);return _0x11be9e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x11be9e['label']=E(_0x1bea75,'Cancel'),_0x11be9e['withText']=!0x0,_0x11be9e['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x11be9e;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x54c886=>{this['focusTracker']['add'](_0x54c886['element']);}),this['focusables']['on']('change',(_0x45c721,_0x4fdae8)=>{for(const _0x48f851 of Array['from'](_0x4fdae8['added'])['reverse']())this['focusTracker']['add'](_0x48f851['element']);});}}class ie extends kt{constructor(_0x3ff7cc,_0x53acca,_0x5810c3){super(_0x3ff7cc),this['commentInputView']=new os(_0x3ff7cc,_0x5810c3),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x33e949,_0x1432c1)=>_0x33e949||!!_0x1432c1),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 _0x38f705(_0x3ff7cc,_0x53acca),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'](_0x3214e6){this['commentInputView']['focus'](_0x3214e6);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x28bf92,_0x577513)=>{const {submitButtonView:_0x13902e,cancelButtonView:_0xed5927,editor:_0x5e944b}=this['commentInputView'];[_0x13902e['element'],_0xed5927['element'],_0x5e944b?_0x5e944b['editing']['view']['getDomRoot']():null]['filter'](_0x17e8a2=>_0x17e8a2)['some'](_0xc5420f=>_0xc5420f['contains'](_0x577513['target']))||(this['focus'](),_0x577513['preventDefault']());});}}class cs extends kt{constructor(_0x19d4ec){super(_0x19d4ec);const _0x59a16f=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x59a16f['to']('count',_0x510cc0=>E(_0x19d4ec,'NUMBER_OF_COMMENTS',_0x510cc0))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5c6f26,_0x3bad9c,_0x1f2d04){super(_0x5c6f26);const _0x454dde=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x3bad9c['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x3bad9c,this['_config']=_0x1f2d04,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4b4d8d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x12ac84({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5451ef=>this['commentViews']['map'](_0x4cbe7f=>_0x4cbe7f['element'])['includes'](_0x5451ef['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x5c6f26),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x327ddc=>_0x327ddc-this['_config']['maxCommentsWhenCollapsed']);for(const _0x226f56 of _0x3bad9c['comments'])this['_handleNewCommentModel'](_0x226f56);this['_handleInfoComment'](),this['listenTo'](_0x3bad9c['comments'],'add',(_0x4a9628,_0x5c59c2)=>{const _0x2a1302=this['_calculatePosition'](_0x5c59c2);this['length']++,this['_handleNewCommentModel'](_0x5c59c2,_0x2a1302),this['refreshVisibleViews']();}),this['listenTo'](_0x3bad9c['comments'],'remove',(_0x31049a,_0x4cd4b5)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4cd4b5),this['refreshVisibleViews']();}),this['listenTo'](_0x3bad9c,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x3bad9c,'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',_0x454dde['if']('length','ck-hidden',_0x2987d7=>!_0x2987d7)],'aria-label':E(_0x5c6f26,'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'](_0x1a3c5c){-0x1===_0x1a3c5c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x1c3c9a of this['commentViews'])_0x1c3c9a['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x2a706b,_0xa7a9c1){const _0x4598cf=new this['_config']['CommentView'](this['locale'],_0x2a706b,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4598cf['viewUid']=_0x2a706b['id'],_0x4598cf['delegate']('removeComment')['to'](this),_0x4598cf['delegate']('updateComment')['to'](this),_0x4598cf['delegate']('resolveCommentThread')['to'](this),_0x4598cf['delegate']('editorReady')['to'](this),_0x4598cf['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4598cf,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4598cf,_0xa7a9c1);}['_calculatePosition'](_0x4c64ee){const _0x1abf11=this['_model']['_findOptimalIndex'](_0x4c64ee);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x4c64ee['authoredAt']?_0x1abf11-0x1:_0x1abf11:_0x1abf11-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x5bdfcc={'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'],_0x5bdfcc,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x5bdfcc));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3321cf){const _0x4c398c=this['commentViews']['remove'](_0x3321cf['id']);this['stopListening'](_0x4c398c),_0x4c398c['isEditMode']&&this['_updateHasDirtyComment'](),_0x4c398c['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1d93ec=>_0x1d93ec['isEditMode']);}['_rearrangeCollapse'](){const _0x4550c2=function(_0x1cf6f1){const _0x360528=new _0x508354();for(const _0x56d30f of _0x1cf6f1)_0x360528['add'](_0x56d30f);return _0x360528;}(this['commentViews']),_0x16b154=this['_collapsedCommentsView']['count'];for(let _0x119105=0x1;_0x119105<=_0x16b154;_0x119105++)_0x4550c2['remove'](0x1);for(const _0x3aa320 of _0x4550c2)_0x3aa320['collapse']();_0x16b154>0x0&&_0x4550c2['add'](this['_collapsedCommentsView'],0x1),ns(_0x4f7541(Array['from'](this['visibleViews']),Array['from'](_0x4550c2)),this['visibleViews'],_0x4550c2);}['_rearrangeExpand'](){ns(_0x4f7541(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1014c0 of this['visibleViews'])_0x1014c0['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x17a7b5=>{this['focusTracker']['add'](_0x17a7b5['element']),this['keystrokes']['listenTo'](_0x17a7b5['element']);}),this['commentViews']['on']('change',(_0x136bc3,_0x2dca82)=>{for(const _0x303628 of _0x2dca82['removed'])this['focusTracker']['remove'](_0x303628['element']),this['keystrokes']['stopListening'](_0x303628['element']);for(const _0x3b7832 of Array['from'](_0x2dca82['added'])['reverse']())this['focusTracker']['add'](_0x3b7832['element']),this['keystrokes']['listenTo'](_0x3b7832['element']);});}}function ns(_0x1d9541,_0x44e964,_0x385b79){let _0x3adbfc=0x0;for(const _0x1f5845 of _0x1d9541)switch(_0x1f5845){case'insert':_0x44e964['add'](_0x385b79['get'](_0x3adbfc),_0x3adbfc),_0x3adbfc++;break;case'delete':_0x44e964['remove'](_0x3adbfc);break;case'equal':_0x3adbfc++;}}class as extends kt{constructor(_0x5ba5f9){super(_0x5ba5f9);const _0x3e930d=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3e930d['to']('contextValue',_0x12e3b8=>E(_0x5ba5f9,'THREAD_CONTEXT_LABEL',_0x12e3b8)),'tabindex':-0x1},'children':[{'text':_0x3e930d['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5ad86b,_0x511e91){super(_0x5ad86b);const _0x1244ef=this['bindTemplate'];this['_model']=_0x511e91,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4b4d8d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x12ac84({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x44c61e=>!!_0x44c61e),this['bind']('contextValue')['to'](this['_model'],'context',_0x4979ba=>_0x4979ba&&_0x4979ba['value']?this['_trimContextValue'](_0x4979ba['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',_0x1244ef['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 _0x38a71e=new _0x5ae41a(this['locale']);return _0x38a71e['label']=E(this['locale'],'Reopen'),_0x38a71e['tooltip']=E(this['locale'],'Reopen'),_0x38a71e['icon']=_0x544892,_0x38a71e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xe28897=>!_0xe28897),_0x38a71e['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3ca9b2,_0x8fb1ed)=>_0x3ca9b2&&_0x8fb1ed),_0x38a71e['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x38a71e;}['_trimContextValue'](_0x14c394){if(_0x14c394['length']<0x96)return _0x14c394;const _0x3cb21d=_0x14c394['lastIndexOf']('\x20',0x93);return _0x14c394['substring'](0x0,_0x3cb21d>-0x1?_0x3cb21d:0x93)+'...';}['_attachContextActions'](){const _0xcaff90=this['element']['querySelector']('.ck-context'),_0x4bcff3=_0xcaff90['querySelector']('.ck-context__value');this['listenTo'](_0xcaff90,'mouseenter',()=>{_0x4bcff3['offsetWidth']<_0x4bcff3['scrollWidth']&&_0xcaff90['classList']['add']('overlay');}),this['listenTo'](_0xcaff90,'mouseleave',()=>{_0xcaff90['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5d25b5 of this['focusables'])this['focusTracker']['add'](_0x5d25b5['element']),this['keystrokes']['listenTo'](_0x5d25b5['element']);}['_createContextView'](){const _0x5e2bbb=new as(this['locale']);return _0x5e2bbb['bind']('contextValue')['to'](this),_0x5e2bbb;}}class ts extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4b08b6,_0x523917,_0x15e179,_0x11068d){super(_0x4b08b6),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x523917,this['_localUser']=_0x15e179,this['_config']=_0x11068d,this['commentThreadHeaderView']=new Xt(_0x4b08b6,_0x523917),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x4b08b6,E(_0x4b08b6,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x4b08b6,_0x523917,Object['assign']({'CommentView':this['_config']['CommentView']},_0x11068d)),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',(_0x4d84b7,_0x33be3d)=>_0x4d84b7||!!_0x33be3d),this['bind']('isUnlinked')['to'](_0x523917,'unlinkedAt',_0x59f925=>!!_0x59f925),this['bind']('ariaLabel')['to'](this,'length',_0x1688fa=>{const _0x5a2028=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x1688fa,_0x5a2028]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4b4d8d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x12ac84({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x247172=>_0x247172['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 _0x2a4e9e=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2f0da1=_0x2a4e9e['commentInputView'];return _0x2a4e9e['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x2f0da1,'value',(_0xc1e284,_0x20b439,_0xb64642,_0x134db3,_0x48c4dc)=>!!_0x48c4dc||!!_0x134db3&&_0xb64642&&!_0x20b439||_0xc1e284&&_0xb64642&&!_0x20b439),_0x2f0da1['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x279f77,_0x2b7982,_0x2b6802)=>{let _0x5394ff;return _0x5394ff=_0x2b6802&&_0x2b7982?'Reply\x20to\x20reopen\x20discussion...':_0x279f77?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x5394ff);}),_0x2f0da1['bind']('submitLabel')['to'](this,'length',_0x2489d2=>E(this['locale'],_0x2489d2?'Reply':'Comment')),_0x2f0da1['on']('submit',(_0x1a3659,_0x556a3a)=>{this['fire']('addComment',_0x556a3a),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x2f0da1['on']('cancel',()=>{this['focus']();}),_0x2f0da1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2f0da1['on']('cancel',_0x1bbfb1=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x1bbfb1['stop']());}),this['on']('change:isActive',(_0x10b24e,_0x418cbc,_0xdbb901)=>{_0xdbb901||this['length']||_0x2f0da1['value']||this['fire']('removeCommentThread');}),_0x2a4e9e;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(ts){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x348d82,_0x45b428,_0x440b5c,_0x267d33){super(_0x348d82,_0x45b428,_0x440b5c,_0x267d33),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x348d82,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0xa59429,_0x3c897f,_0x3c3491)=>{_0x3c3491||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x2aea58,_0x3ea71e,_0x3be38f)=>{_0x3be38f&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1873dd=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1873dd['if']('isActive','ck-thread--active'),_0x1873dd['if']('isUnlinked','ck-thread--unlinked'),_0x1873dd['if']('isConfirm','ck-thread--remove-confirmation'),_0x1873dd['to']('actionIndicator',_0x2235d2=>_0x2235d2?'ck-thread--'+_0x2235d2:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1873dd['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 _0x438a55 of this['commentsListView']['commentViews'])_0x438a55['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x5cd2c4}=this,_0x1aedb6=this['commentsListView']['commentViews']['get'](0x0);_0x1aedb6===this['_boundFirstCommentView']||_0x1aedb6['isSystemComment']||(this['_boundFirstCommentView']=_0x1aedb6,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x1aedb6,'actionIndicator',_0x111a73=>'remove'===_0x111a73?'remove':null),_0x1aedb6['placeholder']=E(_0x5cd2c4,'Write\x20a\x20comment...'),_0x1aedb6['removeButton']['on']('execute',_0x2745fb=>{_0x2745fb['stop'](),this['showConfirm'](E(_0x5cd2c4,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x1aedb6['focus']();}),_0x1aedb6['actionBar']['add'](this['resolveButton'],0x0),_0x1aedb6['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1b39ab=new _0x41339c(this['locale']);return _0x1b39ab['label']=E(this['locale'],'Resolve'),_0x1b39ab['tooltip']=E(this['locale'],'Resolve'),_0x1b39ab['icon']=_0x5a8293,_0x1b39ab['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x1b39ab['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x26c394=>!_0x26c394),_0x1b39ab['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5b3d62,_0x3f2ccb)=>_0x5b3d62&&!_0x3f2ccb),_0x1b39ab['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x1b39ab;}['_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(_0x44b99c){super(_0x44b99c),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0xf1d7e5,_0x4dde16,_0x1e34e6)=>{this['element']['innerHTML']=_0x1e34e6;}),this['element']['innerHTML']=this['content'];}}class hs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x25e091,_0x19efea,_0xc2751f){super(_0x25e091),this['_model']=_0x19efea,this['_config']=_0xc2751f,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x19efea,'content',_0x19efea,'authoredAt',(_0x218951,_0x108d7d)=>E(_0x25e091,'COMMENT_ARIA_LABEL',[_0x19efea['author']['name'],_0xc2751f['formatDateTime'](_0x108d7d),new DOMParser()['parseFromString'](_0x218951,'text/html')['body']['textContent'],_0x19efea['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x25e091,E(_0x25e091,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x143e0c(),this['focusTracker']=new _0x4b4d8d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x12ac84({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1511a4=>_0x1511a4['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 _0xf0c193=new es(this['locale']);return _0xf0c193['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x32d6cb,_0x434b85)=>_0x434b85?_0x394005(_0x32d6cb,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x32d6cb),_0xf0c193;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x529ec8=new os(this['locale'],this['_config']['editorConfig']);return _0x529ec8['value']=this['_model']['content'],_0x529ec8['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x529ec8['submitLabel']=E(this['locale'],'Save'),_0x529ec8['on']('submit',(_0x58299d,_0x26abbf)=>{this['fire']('updateComment',this['_model']['id'],_0x26abbf),this['switchToDisplayMode'](),this['focus']();}),_0x529ec8['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x529ec8['once']('editorReady',()=>{_0x529ec8['focus']();}),_0x529ec8['createEditor'](),_0x529ec8['delegate']('editorReady')['to'](this),_0x529ec8['delegate']('editorDestroyed')['to'](this),_0x529ec8;}['_setupKeyboardNavigation'](){const _0x37075b=this['element'];this['keystrokes']['listenTo'](_0x37075b);for(const _0xd2f41d of this['focusables'])this['focusTracker']['add'](_0xd2f41d['element']),this['keystrokes']['listenTo'](_0xd2f41d['element']);this['focusables']['on']('change',(_0xf29dd8,_0x43b2b)=>{for(const _0x179dcf of _0x43b2b['removed'])this['focusTracker']['remove'](_0x179dcf['element']),this['keystrokes']['stopListening'](_0x179dcf['element']);for(const _0x191ed0 of _0x43b2b['added'])this['focusTracker']['add'](_0x191ed0['element']),this['keystrokes']['listenTo'](_0x191ed0['element']);}),this['keystrokes']['set']('enter',(_0x2f56b9,_0x5eb2f4)=>{_0x37075b===_0x2f56b9['target']&&(this['focusCycler']['focusFirst'](),_0x5eb2f4());}),this['keystrokes']['set']('esc',(_0x3fb842,_0x448acd)=>{_0x37075b!==_0x3fb842['target']&&(this['focus'](),_0x448acd());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(hs){['actionBar'];['userView'];constructor(_0x18c26a,_0x5b246d,_0x5cd9a8){super(_0x18c26a,_0x5b246d,_0x5cd9a8),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x18c26a,'Reply...')),this['bind']('authoredAt')['to'](_0x5b246d),this['bind']('resolvedAt')['to'](_0x5b246d),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 _0x38f705(_0x18c26a,_0x5b246d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x5b246d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xb53ce2=this['bindTemplate'],_0x23984a=[{'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':_0xb53ce2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xb53ce2['to']('authoredAt',_0xc68d76=>this['_config']['formatDateTime'](_0xc68d76))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0xb53ce2['if']('isEditMode','ck-comment__actions--hidden'),_0xb53ce2['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']&&_0x23984a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0xb53ce2['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0xb53ce2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0xb53ce2['if']('isEditMode','ck-comment--edit'),_0xb53ce2['if']('isSystemComment','ck-comment--info'),_0xb53ce2['to']('actionIndicator',_0x3397e4=>_0x3397e4?'ck-comment--'+_0x3397e4:'')],'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':_0x23984a}]}]};}['_createEditButton'](){const _0x3d4452=new _0x5ae41a(this['locale']);return _0x3d4452['label']=E(this['locale'],'Edit'),_0x3d4452['icon']=_0x7d29fe,_0x3d4452['withText']=!0x0,_0x3d4452['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x3d4452['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x31f9e6=>!_0x31f9e6),_0x3d4452['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x3d4452['on']('execute',()=>this['switchToEditMode']()),_0x3d4452;}['_createRemoveButton'](){const _0x3ed5a8=new _0x5ae41a(this['locale']);return _0x3ed5a8['label']=E(this['locale'],'Remove'),_0x3ed5a8['icon']=_0x5ec47b,_0x3ed5a8['withText']=!0x0,_0x3ed5a8['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3ed5a8['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xa88ebe=>!_0xa88ebe),_0x3ed5a8['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3ed5a8['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3ed5a8;}['_createDropdown'](){const _0x389289=_0x245262(this['locale'],_0x44c954),_0xd5546f=_0x389289['panelView']['children'],_0x1a0e2e=new _0x25b9d2(this['locale']),_0x1aa567=_0x389289['bindTemplate'];_0x29a31f(_0x389289,()=>this['items']['find'](_0x38b1f9=>_0x38b1f9['isVisible'])),_0x389289['extendTemplate']({'attributes':{'class':[_0x1aa567['if']('isVisible','ck-hidden',_0x254a15=>!_0x254a15)]}});const _0x10885b=(_0xfc7bd0,_0x554854=-0x1)=>{const _0x839dfd=new _0x4f5f53(this['locale']);_0x839dfd['children']['add'](_0xfc7bd0);const _0x5128c2=_0x554854>-0x1?_0x554854:_0x1a0e2e['items']['length'];_0x1a0e2e['items']['add'](_0x839dfd,_0x5128c2);const _0xa0fc24=Array['from'](this['items']);_0x389289['unbind']('isEnabled','isVisible'),_0x389289['bind']('isEnabled')['toMany'](_0xa0fc24,'isEnabled',(..._0x52bff1)=>_0x52bff1['some'](_0x4f17bc=>_0x4f17bc)),_0x389289['bind']('isVisible')['toMany'](_0xa0fc24,'isVisible',(..._0x19636f)=>_0x19636f['some'](_0x3c750e=>_0x3c750e));};_0x389289['panelPosition']='sw',_0x389289['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x1024e2});for(const _0x51af8c of this['items'])_0x10885b(_0x51af8c);return _0xd5546f['add'](_0x1a0e2e),_0x389289['listenTo'](this['items'],'add',(_0x25a70f,_0x47ef30,_0x56db7f)=>{_0x10885b(_0x47ef30,_0x56db7f);}),_0x389289['listenTo'](this['items'],'remove',(_0x3040e9,_0x5d2feb,_0x5296e6)=>{_0x1a0e2e['items']['remove'](_0x5296e6);}),_0x389289;}['_attachActions'](_0x35c4ff,_0x32381d){const _0x53be62=_0x35c4ff&&_0x35c4ff['element'];_0x53be62&&(this['listenTo'](_0x53be62,'mouseenter',()=>this['actionIndicator']=_0x32381d),this['listenTo'](_0x53be62,'focus',()=>this['actionIndicator']=_0x32381d),this['listenTo'](_0x53be62,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x53be62,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x153ee2=super['_createCommentInputView']();return _0x153ee2['bind']('placeholder')['to'](this),_0x153ee2;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x872103){const _0x56365c=Dt(_0x872103,0x1e),_0x84f353=new MutationObserver(_0x17b169=>{for(const _0x2d2d5f of _0x17b169)('attributes'==_0x2d2d5f['type']&&'class'==_0x2d2d5f['attributeName']||'childList'==_0x2d2d5f['type']||'characterData'==_0x2d2d5f['type'])&&_0x56365c();});return{'attach'(_0xd2d154){_0x84f353['observe'](_0xd2d154,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x84f353['disconnect'](),_0x56365c['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x519ceb,_0x1a00e8){super(_0x519ceb),this['id']=_0x1fe468(),this['focusTracker']=new _0x4b4d8d(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x142403,_0x243f30)=>this['fire']('Esc',_0x243f30)),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'](_0x1a00e8),this['mainView']=_0x1a00e8;const _0x5e109c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x5e109c['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 _0xe4c32d=this['element']['clientHeight'];_0xe4c32d&&(this['height']=_0xe4c32d);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x33434e(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x15cdc1,target:_0x2c84de,type:_0x2f2b24,isVisible:_0x1b4ab7=!0x0}){super(),this['view']=_0x15cdc1,this['view']['element']||this['view']['render'](),this['_type']=_0x2f2b24,this['_target']=_0x2c84de,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x508354([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x3fc8c7,_0x5a3cd1)=>{this['view']['focusTracker']['add'](_0x5a3cd1);}),this['focusableElements']['on']('remove',(_0x4f9905,_0x545db3)=>{this['view']['focusTracker']['remove'](_0x545db3);}),this['set']('isVisible',_0x1b4ab7);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x5d80ce=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x5d80ce),_0x5d80ce;}get['targetRect'](){const _0x54e323=this['target'];if(null===_0x54e323)return null;if(_0x54e323 instanceof _0x44e78c)return _0x54e323;const _0x540e33=_0x54e323['filter'](_0xf428d8=>function(_0x361009){const _0x27b846=_0x361009['offsetParent'];if(_0x27b846)return!0x0;const _0x40c001=_0x361009['getClientRects']()['item'](0x0);return!!_0x40c001;}(_0xf428d8));return 0x0===_0x540e33['length']?null:new _0x44e78c(_0x540e33[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4f96ef){this['view']['isActive']=_0x4f96ef,this['view']['mainView']['isActive']=_0x4f96ef;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x1c58a2){if(!(null===_0x1c58a2||_0x1c58a2 instanceof _0x44e78c||Array['isArray'](_0x1c58a2)&&_0x1c58a2['every'](_0x42c230=>li(_0x42c230))))throw new _0x369546('annotation-invalid-target',null,{'target':_0x1c58a2});}['_getNormalizedTarget'](){const _0x483063='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x483063)?[_0x483063]:_0x483063;}}function li(_0x41666d){return null!==_0x41666d&&'object'==typeof _0x41666d&&'nodeType'in _0x41666d&&0x1===_0x41666d['nodeType'];}class _ extends _0x508354{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x36701a=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4b4d8d(),this['_focusTracker']['on']('change:isFocused',(_0x4ec6f1,_0x5840e7,_0x130fa2)=>{_0x130fa2||this['fire']('blur');});for(const _0x556f54 of _0x36701a)this['add'](_0x556f54);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x1da403){if(this['has'](_0x1da403))throw new _0x369546('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x1da403['innerView'],_0x1da403),this['_viewToAnnotation']['set'](_0x1da403['view'],_0x1da403);for(const _0x504b6e of _0x1da403['focusableElements'])this['_focusTracker']['add'](_0x504b6e);this['listenTo'](_0x1da403['focusableElements'],'add',(_0x3d254d,_0x3e7276)=>{this['_focusTracker']['add'](_0x3e7276);}),this['listenTo'](_0x1da403['focusableElements'],'remove',(_0x5b527d,_0x5ee8b7)=>{this['_focusTracker']['remove'](_0x5ee8b7);}),this['listenTo'](_0x1da403['view']['focusTracker'],'change:isFocused',(_0x39be33,_0x25f9e7,_0x2a69d4)=>{_0x2a69d4&&this['fire']('focus',_0x1da403);}),_0x1da403['updateTargetRect']();const _0x5d27c4=this['_getOrderInContent'](_0x1da403['view']['targetRect']);return super['add'](_0x1da403,_0x5d27c4);}['remove'](_0x35c716){if(!this['has'](_0x35c716))throw new _0x369546('annotationcollection-not-existing-item',null);this['stopListening'](_0x35c716['view']['focusTracker']),this['stopListening'](_0x35c716['focusableElements']);for(const _0x153e4b of _0x35c716['focusableElements'])this['_focusTracker']['remove'](_0x153e4b);return this['_viewToAnnotation']['delete'](_0x35c716['view']),this['_innerViewToAnnotation']['delete'](_0x35c716['innerView']),super['remove'](_0x35c716);}['getByInnerView'](_0x57f89d){return this['_innerViewToAnnotation']['get'](_0x57f89d);}['getByView'](_0x5df9b3){return this['_viewToAnnotation']['get'](_0x5df9b3);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x517764 of this)_0x517764['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3efed2=Array['from'](this)['sort']((_0xbcb741,_0x4a1520)=>v(_0xbcb741['view']['targetRect'],_0x4a1520['view']['targetRect']));for(let _0xe7ce42=_0x3efed2['length']-0x1;_0xe7ce42>0x0;_0xe7ce42--){const _0x17b946=_0x3efed2[_0xe7ce42];_0xe7ce42!==this['getIndex'](_0x17b946)&&(this['remove'](_0x17b946),this['add'](_0x17b946));}}['_getOrderInContent'](_0x2bbfb9){let _0x2e1635=0x0;if(!_0x2bbfb9)return this['length'];for(const _0x40f55c of this){const _0x4f3a05=_0x40f55c['view']['targetRect'];if(_0x4f3a05){if(v(_0x2bbfb9,_0x4f3a05)<0x0)return _0x2e1635;_0x2e1635++;}}return _0x2e1635;}}function v(_0x3030e9,_0x383a49){if(null===_0x3030e9&&null===_0x383a49)return 0x0;if(null===_0x3030e9)return-0x1;if(null===_0x383a49)return 0x1;const _0x4d5717=_0x3030e9['top']-_0x383a49['top'];return 0x0==_0x4d5717?_0x3030e9['left']-_0x383a49['left']:_0x4d5717;}class O extends _0x3c22fb{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1caf0d){if(super(_0x1caf0d),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1caf0d instanceof _0x39e708){const _0x509b5b=_0x1caf0d['locale'];_0x1caf0d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x44220b){this['collection']['add'](_0x44220b);}['remove'](_0x8a1e95){this['collection']['remove'](_0x8a1e95),_0x8a1e95['destroy']();}['refreshVisibility'](){for(const _0xe33764 of this['collection'])_0xe33764['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x154ce1){return this['collection']['getByInnerView'](_0x154ce1);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2a6837 of this['collection'])_0x2a6837['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x3a4746){this['fire']('_activateAnnotation',_0x3a4746);}['createAnnotation'](_0x2e6962){return new d(_0x2e6962);}['createAnnotationView'](_0x375128,_0x69aa98){return new S(_0x375128,_0x69aa98);}['_addActiveAnnotation'](_0x318115){const _0x5a9845=new Set(this['activeAnnotations']);_0x5a9845['add'](_0x318115),this['activeAnnotations']=_0x5a9845;}['_removeActiveAnnotation'](_0x16b427){const _0x5612ca=new Set(this['activeAnnotations']);_0x5612ca['delete'](_0x16b427),this['activeAnnotations']=_0x5612ca;}['_bindAnnotationsToVisibleAnnotations'](){const _0x457e04=this['collection'],_0x2125f3=this['_visibleAnnotations'];function _0x3384a(_0x44f86c){const _0x450aa3=_0x44f86c['source'];_0x450aa3['isVisible']&&!_0x2125f3['has'](_0x450aa3)?_0x2125f3['add'](_0x450aa3):!_0x450aa3['isVisible']&&_0x2125f3['has'](_0x450aa3)&&_0x2125f3['remove'](_0x450aa3),_0x450aa3['view']['focusTracker']['remove'](_0x450aa3['view']['element']),_0x450aa3['view']['focusTracker']['add'](_0x450aa3['view']['element']);}this['listenTo'](_0x457e04,'add',(_0x2af073,_0x4b6550)=>{_0x4b6550['isVisible']&&_0x2125f3['add'](_0x4b6550),this['listenTo'](_0x4b6550,'change:isVisible',_0x3384a);}),this['listenTo'](_0x457e04,'remove',(_0x57a1c6,_0x7842c4)=>{_0x2125f3['has'](_0x7842c4)&&_0x2125f3['remove'](_0x7842c4),this['stopListening'](_0x7842c4,'change:isVisible',_0x3384a);});}['_setupEnterAnnotationKeystroke'](){const _0x442951=_0x365670=>{_0x365670['on']('ready',()=>{_0x365670['keystrokes']['set'](_0x201029,(_0x531847,_0x6a0bfc)=>{const _0xf996c7=_0x38b0a5(this['activeAnnotations']['values']());_0xf996c7&&(_0xf996c7['view']['focus'](),_0x6a0bfc());});});};this['context']instanceof _0x39e708?_0x442951(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x54dd5a,_0x38ea4b)=>{_0x442951(_0x38ea4b);});}['_setupEscapeAnnotationHandling'](){const _0x3cb405=_0x3d6f07=>{const _0x1cf8f4=_0x3d6f07['source'],_0x44a7e1=[];let _0xbed0f2;if(Array['isArray'](_0x1cf8f4['target'])){_0xbed0f2=_0x1cf8f4['target'][0x0],this['context']instanceof _0x39e708?_0x44a7e1['push'](this['context']):this['context']['editors']&&_0x44a7e1['push'](...this['context']['editors']);for(const _0x4cd897 of _0x44a7e1)for(const _0x57eec1 of _0x4cd897['editing']['view']['domRoots']['values']())if(_0x57eec1['contains'](_0xbed0f2))return void _0x4cd897['editing']['view']['focus']();_0xbed0f2['focus']();}};this['listenTo'](this['collection'],'add',(_0x17c2e1,_0x4a9250)=>{this['listenTo'](_0x4a9250,'escape',_0x3cb405,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x402285,_0x3f1600)=>{this['stopListening'](_0x3f1600,'escape',_0x3cb405);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x3c22fb{['_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(_0x37f496){super(_0x37f496),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x46bae0=this['context']['config'];_0x46bae0['define']('comments.maxCommentsWhenCollapsed',0x2),_0x46bae0['define']('comments.maxThreadTotalWeight',0x1f4),_0x46bae0['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x46bae0['define']('comments.CommentThreadView',vt),_0x46bae0['define']('comments.CommentView',gt),_0x46bae0['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x252f5f=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4a2b06,_0x31cad4)=>this['_addCommentThread'](_0x31cad4)),this['on']('submitCommentThread',(_0x5d47da,_0x177104)=>this['_submitCommentThread'](_0x177104)),this['on']('resolveCommentThread',(_0x10ee1e,_0x1a71e4)=>this['_resolveCommentThread'](_0x1a71e4)),this['on']('resolveCommentThread',(_0x2e4e34,_0x36e018)=>this['_updateActiveAnnotation'](_0x36e018),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x403813,_0x29823b)=>this['_reopenCommentThread'](_0x29823b)),this['on']('reopenCommentThread',(_0x36b942,_0x59f5ce)=>this['_updateActiveAnnotation'](_0x59f5ce),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3cf4bf,_0x477d84)=>this['_removeCommentThread'](_0x477d84)),this['on']('updateCommentThread',(_0x5a8379,_0x448d2f)=>this['_updateCommentThread'](_0x448d2f)),this['on']('updateCommentThread',(_0x1e8999,_0x276348)=>this['_updateActiveAnnotation'](_0x276348),{'priority':'lowest'}),this['on']('addComment',(_0x144d53,_0x45b68b)=>this['_addComment'](_0x45b68b)),this['on']('updateComment',(_0x550832,_0xd44983)=>this['_updateComment'](_0xd44983)),this['on']('removeComment',(_0x3f7e62,_0x2cf2ed)=>this['_removeComment'](_0x2cf2ed)),this['on']('addComment',(_0x1c0b87,{threadId:_0x506c14,isFromAdapter:_0x56cbdf})=>{if(_0x56cbdf)return;const _0x491099=this['getCommentThread'](_0x506c14),_0x23eb74=_0x491099&&this['_threadToController']['get'](_0x491099);_0x23eb74&&_0x23eb74['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x252f5f,'change:activeAnnotations',(_0x187054,_0x1941fd,_0x33fbd6)=>{const _0x1f7f7d=Array['from'](_0x33fbd6)['map'](_0x54088a=>this['_viewToController']['get'](_0x54088a['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x1f7f7d?_0x1f7f7d['model']:null;});}set['adapter'](_0x19faca){if(this['_adapter'])throw new _0x369546('commentsrepository-adapter-already-set');this['_adapter']=_0x19faca;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x553b61=Tt,threadId:_0x579ce0=_0x1fe468(),comments:_0x4aeb42=[],unlinkedAt:_0x48df3a=null,resolvedAt:_0x574375=null,resolvedBy:_0x48b21c=null,target:_0x47afeb=null,context:_0x549947=null,attributes:_0x1e0ddf={},isResolvable:_0xc6f093=!0x0,isSubmitted:_0x31b746=!0x1,isFromAdapter:_0x37a0c6=!0x1}={}){return this['fire'](bt('addCommentThread',_0x553b61),{'channelId':_0x553b61,'threadId':_0x579ce0,'comments':_0x4aeb42,'unlinkedAt':_0x48df3a,'resolvedAt':_0x574375,'resolvedBy':_0x48b21c,'target':_0x47afeb,'context':_0x549947,'attributes':_0x1e0ddf,'isFromAdapter':_0x37a0c6,'isResolvable':_0xc6f093,'isSubmitted':_0x31b746}),this['getCommentThread'](_0x579ce0);}['openNewCommentThread']({channelId:_0x3ee8a6=Tt,threadId:_0x2058c6=_0x1fe468(),target:_0x175a32,context:_0x1889f3=null,isResolvable:_0x24d556=!0x0}){if(this['_readOnlyChannels']['has'](_0x3ee8a6)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x175a32)throw new _0x369546('commentsrepository-missing-target');const _0x19d28c=this['addCommentThread']({'channelId':_0x3ee8a6,'threadId':_0x2058c6,'target':_0x175a32,'context':_0x1889f3,'isResolvable':_0x24d556});if(!_0x19d28c)return null;const _0x2f8631=this['_threadToController']['get'](_0x19d28c),_0x1ae2f3=_0x2f8631['view']['commentThreadInputView']['commentInputView'],_0x567470=this['context']['plugins']['get'](O),_0x484d42=_0x567470['getByInnerView'](_0x2f8631['view']);return _0x567470['activate'](_0x484d42),_0x1ae2f3['once']('editorReady',()=>_0x1ae2f3['focus']()),_0x19d28c;}['hasCommentThread'](_0x155903){if('string'!=typeof _0x155903)throw new _0x369546('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x155903);}['updateCommentThread']({channelId:_0x32f11b=Tt,threadId:_0x1ee6f4,context:_0x5b6e1b,unlinkedAt:_0x338930,attributes:_0x2e0f2f,isFromAdapter:_0x1c6469=!0x1}){return this['fire'](bt('updateCommentThread',_0x32f11b),{'channelId':_0x32f11b,'threadId':_0x1ee6f4,'context':_0x5b6e1b,'unlinkedAt':_0x338930,'attributes':_0x2e0f2f,'isFromAdapter':_0x1c6469}),this['getCommentThread'](_0x1ee6f4);}['getCommentThread'](_0x3ef744){if('string'!=typeof _0x3ef744)throw new _0x369546('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x3ef744);}['fetchCommentThread']({channelId:_0x130ace,threadId:_0xf0df5d}={}){const _0x238347=this['getCommentThread'](_0xf0df5d);if(_0x238347)return Promise['resolve'](_0x238347);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x369546('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x130ace,'threadId':_0xf0df5d})['then'](_0x18c82a=>this['hasCommentThread'](_0xf0df5d)?this['getCommentThread'](_0xf0df5d):_0x18c82a?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x130ace},_0x18c82a)):void 0x0)['catch'](_0x27a207=>{throw console['error'](_0x27a207),new _0x369546('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4a608a,skipNotAttached:_0x271cd3=!0x1,skipEmpty:_0x213d62=!0x1,toJSON:_0x3a68f5=!0x1}={}){const _0x2916d1=[];for(const _0x49331d of this['_threads']['values']())_0x4a608a&&_0x49331d['channelId']!==_0x4a608a||_0x271cd3&&!_0x49331d['isAttached']||_0x213d62&&0x0===_0x49331d['length']||_0x2916d1['push'](_0x49331d);return _0x3a68f5?_0x2916d1['map'](_0x19c283=>_0x19c283['toJSON']()):_0x2916d1;}['setActiveCommentThread'](_0x51d56d){const _0x4ff8b7=this['context']['plugins']['get'](O);if(!_0x51d56d)return void(this['activeCommentThread']&&_0x4ff8b7['deactivateAll']());const _0x7e7d43=this['getCommentThread'](_0x51d56d);if(!_0x7e7d43)throw new _0x369546('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x51d56d});if(!this['_threadToController']['has'](_0x7e7d43))throw new _0x369546('commentsrepository-active-not-attached',null,{'threadId':_0x51d56d});const _0x16248e=_0x4ff8b7['getByInnerView'](this['_threadToController']['get'](_0x7e7d43)['view']);_0x4ff8b7['activate'](_0x16248e);}['switchReadOnly'](_0x51fc7d,_0x3c0274){_0x51fc7d?this['_readOnlyChannels']['add'](_0x3c0274):this['_readOnlyChannels']['delete'](_0x3c0274),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x382ab3){return this['_readOnlyChannels']['has'](_0x382ab3)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x402dcf,_0x59c69a){return new Ct(_0x402dcf,_0x59c69a);}['setPermissions'](_0x52177c,_0x4cf76f=Tt){this['_permissions']['set'](_0x4cf76f,_0x52177c),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4fcba3=Tt){return this['_permissions']['has'](_0x4fcba3)?this['_permissions']['get'](_0x4fcba3):_t;}['_addCommentThread']({channelId:_0x4c1747,threadId:_0x341e8e,comments:_0x226d36,unlinkedAt:_0x10e3b3,resolvedAt:_0x2c0e41,resolvedBy:_0x4d64f6,target:_0x4f4ef0,context:_0x19cb25,attributes:_0x492174,isFromAdapter:_0x1941cd,isResolvable:_0x58b878,isSubmitted:_0x312b75}){if('string'!=typeof _0x341e8e)throw new _0x369546('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x341e8e});if(this['hasCommentThread'](_0x341e8e))throw new _0x369546('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x341e8e});const _0x1dfa58=new ui(this,{'channelId':_0x4c1747,'id':_0x341e8e,'context':_0x19cb25,'attributes':_0x492174,'unlinkedAt':_0x10e3b3,'resolvedAt':_0x2c0e41,'resolvedBy':_0x4d64f6?this['context']['plugins']['get'](it)['getUser'](_0x4d64f6):null,'isResolvable':_0x58b878,'isSubmitted':_0x312b75||_0x1941cd});this['_threads']['set'](_0x341e8e,_0x1dfa58);for(const _0x2087b9 of _0x226d36)_0x1dfa58['_add'](this['_createNewComment']({'threadId':_0x341e8e,..._0x2087b9}));return _0x4f4ef0&&_0x1dfa58['attachTo'](_0x4f4ef0),_0x1941cd||!_0x1dfa58['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4c1747,'threadId':_0x341e8e});}['_submitCommentThread']({channelId:_0xb9d4e4,threadId:_0x2deebd}){if(!this['hasCommentThread'](_0x2deebd))throw new _0x369546('commentsrepository-missing-comment-thread',this);const _0x1c0bd1=this['getCommentThread'](_0x2deebd);if(_0x1c0bd1['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0xdc530e,comments:_0x1a38dd,resolvedAt:_0x4fc343,resolvedBy:_0x2ed929,context:_0x1a0e27,attributes:_0x3ecc2b}=_0x1c0bd1,_0x1ac099=this['context']['plugins']['get']('PendingActions'),_0x38c96d=_0x1ac099['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xb9d4e4,'threadId':_0xdc530e,'comments':_0x1a38dd['map'](_0x4c44c3=>_0x4c44c3['toJSON']()),'resolvedAt':_0x4fc343,'resolvedBy':_0x2ed929?_0x2ed929['id']:_0x2ed929,'context':_0x1a0e27,'attributes':_0x3ecc2b})['then'](({comments:_0x58286})=>{_0x1ac099['remove'](_0x38c96d);for(const _0x5890aa of _0x58286)this['_updateComment']({'channelId':_0xb9d4e4,'threadId':_0x2deebd,'commentId':_0x5890aa['commentId'],'createdAt':_0x5890aa['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4bff83=>{throw console['error'](_0x4bff83),new _0x369546('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x7f6d8a,target:_0x25557c}){const _0x20c19d=this['getCommentThread'](_0x7f6d8a);if(!_0x20c19d)throw new _0x369546('commentsrepository-attach-missing-comment-thread',this);const _0x4ed881=this['context']['plugins']['get']('PendingActions'),_0x515a83=this['context']['plugins']['get'](O),_0x1cda50=this['_createCommentThreadView'](_0x20c19d),_0x4ff1ed=new Ct(_0x20c19d,_0x1cda50);let _0x18e567=null;_0x1cda50['on']('change:isDirty',(_0x1790fb,_0x4a79eb,_0x1b017d)=>{_0x1b017d?_0x18e567=_0x4ed881['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x18e567&&(_0x4ed881['remove'](_0x18e567),_0x18e567=null);}),this['_threadToController']['set'](_0x20c19d,_0x4ff1ed),this['_viewToController']['set'](_0x1cda50,_0x4ff1ed);const _0x523783=new S(this['context']['locale'],_0x1cda50);_0x523783['bind']('length')['to'](_0x1cda50),_0x523783['bind']('isDirty')['to'](_0x1cda50,'isDirty',_0x1cda50,'length',(_0x251ef1,_0x4bde01)=>_0x251ef1||!_0x4bde01),_0x523783['bind']('isActive')['to'](_0x1cda50),_0x523783['type']='comment';const _0x550c48=new d({'view':_0x523783,'target':_0x25557c,'type':'comment','isVisible':!_0x20c19d['archivedAt']});return _0x1cda50['on']('escape',()=>{_0x550c48['fire']('escape');}),this['_bindAnnotationToEditors'](_0x1cda50,_0x550c48),_0x515a83['add'](_0x550c48),_0x550c48;}['_bindAnnotationToEditors'](_0x581763,_0x4ac5d8){this['listenTo'](_0x581763,'editorReady',(_0x3fc0ac,_0x173366)=>{const _0x18ad6d=_0x173366['ui']['view']['body']['bodyCollectionContainer'];_0x4ac5d8['focusableElements']['add'](_0x18ad6d),this['context']instanceof _0x39e708&&this['context']['ui']['focusTracker']['add'](_0x18ad6d);},{'priority':'highest'}),this['listenTo'](_0x581763,'editorDestroyed',(_0x3e1203,_0x476dd3)=>{const _0x41dfda=_0x476dd3['ui']['view']['body']['bodyCollectionContainer'];_0x4ac5d8['focusableElements']['has'](_0x41dfda)&&_0x4ac5d8['focusableElements']['remove'](_0x41dfda),this['context']instanceof _0x39e708&&this['context']['ui']['focusTracker']['remove'](_0x41dfda);});}['_unbindEditors'](_0x3d9502){this['stopListening'](_0x3d9502,'editorReady'),this['stopListening'](_0x3d9502,'editorDestroyed');}['_createCommentThreadView'](_0x3bf76a){const _0x4846f4=this['context']['plugins']['get'](it),{config:_0x59275a,locale:_0x11b70b}=this['context'],_0x25c793=lt(_0x59275a['get']('locale'),_0x11b70b);return new(0x0,(_0x59275a['get']('comments'))['CommentThreadView'])(_0x11b70b,_0x3bf76a,_0x4846f4['me'],{'editorConfig':{..._0x59275a['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x59275a['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x59275a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x59275a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x59275a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25c793,'CommentView':_0x59275a['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x4f01e9,channelId:_0x505e89,resolvedAt:_0x30586e,resolvedBy:_0x1bcf99,isFromAdapter:_0x5e3580}){if(!this['hasCommentThread'](_0x4f01e9))throw new _0x369546('commentsrepository-missing-comment-thread',null,{'threadId':_0x4f01e9});const _0x327cff=this['getCommentThread'](_0x4f01e9);if(_0x327cff['isResolved'])throw new _0x369546('commentsrepository-resolved-comment-thread',null,{'threadId':_0x4f01e9});const _0x1f5a3e=this['context']['plugins']['get'](it);if(_0x327cff['resolvedBy']=_0x1f5a3e['getUser'](_0x1bcf99),_0x327cff['resolvedAt']=_0x30586e,_0x5e3580||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x615c9f=this['context']['plugins']['get']('PendingActions'),_0x1b774=_0x615c9f['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x505e89,'threadId':_0x4f01e9})['then'](({resolvedAt:_0x122314,resolvedBy:_0x17fb77})=>{_0x615c9f['remove'](_0x1b774),_0x327cff['resolvedBy']['id']!==_0x17fb77&&(_0x327cff['resolvedBy']=_0x1f5a3e['getUser'](_0x17fb77)),_0x327cff['resolvedAt']=_0x122314;})['catch'](_0x51451c=>{throw console['error'](_0x51451c),new _0x369546('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x297623,channelId:_0x351113,isFromAdapter:_0x37e067}){if(!this['hasCommentThread'](_0x297623))throw new _0x369546('commentsrepository-missing-comment-thread',null,{'threadId':_0x297623});const _0xacca59=this['getCommentThread'](_0x297623);if(!_0xacca59['isResolved'])throw new _0x369546('commentsrepository-reopen-comment-thread',null,{'threadId':_0x297623});if(_0xacca59['resolvedBy']=null,_0xacca59['resolvedAt']=null,_0x37e067||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3c418a=this['context']['plugins']['get']('PendingActions'),_0x26708b=_0x3c418a['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x351113,'threadId':_0x297623})['then'](()=>_0x3c418a['remove'](_0x26708b))['catch'](_0x5e0885=>{throw console['error'](_0x5e0885),new _0x369546('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x4f601f,isFromAdapter:_0x17dcdc}){const _0x198cd5=this['getCommentThread'](_0x4f601f);if(!_0x198cd5)throw new _0x369546('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x4f601f),this['_threads']['delete'](_0x4f601f),!_0x198cd5['isSubmitted']||_0x17dcdc||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1357e4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x178ac0}=_0x198cd5,_0x1abda2=_0x1357e4['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x178ac0,'threadId':_0x4f601f})['then'](()=>_0x1357e4['remove'](_0x1abda2))['catch'](_0x5c1a1f=>{throw console['error'](_0x5c1a1f),new _0x369546('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x359c80,unlinkedAt:_0x30dca5,context:_0x12dd9e,attributes:_0x377298,isFromAdapter:_0xf259e2}){if('string'!=typeof _0x359c80)throw new _0x369546('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x359c80});if(!this['hasCommentThread'](_0x359c80))throw new _0x369546('commentsrepository-missing-comment-thread',null,{'threadId':_0x359c80});const _0x5eedab=this['getCommentThread'](_0x359c80);let _0x49f093=!0x1;if(void 0x0!==_0x12dd9e&&_0x5eedab['context']!==_0x12dd9e&&(_0x5eedab['context']=_0x12dd9e,_0x49f093=!0x0),void 0x0!==_0x30dca5&&_0x5eedab['unlinkedAt']!==_0x30dca5&&(_0x5eedab['unlinkedAt']=_0x30dca5,_0x49f093=!0x0),_0x377298&&!wt(_0x377298,_0x5eedab['attributes'])&&(_0x5eedab['attributes']=_0x377298,_0x49f093=!0x0),!_0x49f093)return Promise['resolve']();if(!_0x5eedab['isSubmitted']||_0xf259e2||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4f4b17=this['context']['plugins']['get']('PendingActions'),{channelId:_0x396213}=_0x5eedab,_0x46e113=_0x4f4b17['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x396213,'threadId':_0x359c80,'context':_0x12dd9e,'unlinkedAt':_0x30dca5,'attributes':_0x377298})['then'](()=>_0x4f4b17['remove'](_0x46e113))['catch'](_0x208f38=>{throw console['error'](_0x208f38),new _0x369546('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x216429){const _0x15b102=this['context']['plugins']['get'](O),_0x2764da=this['getCommentThread'](_0x216429);if(_0x2764da['_isAttached']=!0x1,this['_threadToController']['has'](_0x2764da)){const _0x38b316=this['_threadToController']['get'](_0x2764da),_0x3b71a9=_0x38b316['view'],_0x1d890a=_0x15b102['getByInnerView'](_0x3b71a9);this['_threadToController']['delete'](_0x2764da),this['_viewToController']['delete'](_0x3b71a9),_0x1d890a&&_0x15b102['remove'](_0x1d890a),_0x38b316['destroy'](),_0x3b71a9['destroy']()['then'](()=>{this['_unbindEditors'](_0x3b71a9);});}}['_updateActiveAnnotation']({threadId:_0x4bc3b3,resolvedAt:_0x16be66,unlinkedAt:_0xd0b0e6}){const _0x2a3c24=!!_0x16be66,_0x408165=this['context']['plugins']['get'](O),_0x1dbbd7=this['getCommentThread'](_0x4bc3b3);if(this['_threadToController']['has'](_0x1dbbd7)){const _0x1c35fa=this['_threadToController']['get'](_0x1dbbd7)['view'],_0x58feb9=_0x408165['getByInnerView'](_0x1c35fa);_0x58feb9&&(_0x2a3c24&&_0x408165['_removeActiveAnnotation'](_0x58feb9),_0xd0b0e6?_0x58feb9['isVisible']=!0x1:_0x58feb9['refreshVisibility']());}}['_getExternalAuthor'](_0x4a621f){const _0x5ea4bb=this['context']['plugins']['get'](it),_0x39901e=pt('external:'+_0x4a621f),_0x21f756=_0x5ea4bb['getUser'](_0x39901e);return _0x21f756||_0x5ea4bb['addUser']({'id':_0x39901e,'name':_0x4a621f});}['_createNewComment']({threadId:_0x3eb359,commentId:_0x2007c1=_0x1fe468(),content:_0x5cc0cd,authorId:_0x57ac81,createdAt:_0x2e728c,attributes:_0x1c02ae}){if('string'!=typeof _0x2007c1)throw new _0x369546('commentsrepository-invalid-commentid');if('string'!=typeof _0x57ac81)throw new _0x369546('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5cc0cd||!_0x5cc0cd['trim']())throw new _0x369546('commentsrepository-invalid-comment-content');const _0x36f82c=this['context']['plugins']['get'](it)['getUser'](_0x57ac81);if(!_0x36f82c)throw new _0x369546('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x57ac81});let _0x5b4b46=null,_0x28fce8=_0x2e728c;return _0x1c02ae?.['@external']&&(_0x5b4b46=this['_getExternalAuthor'](_0x1c02ae['@external']['authorName']),_0x28fce8=new Date(_0x1c02ae['@external']['createdAt'])),new fi(this,{'threadId':_0x3eb359,'id':_0x2007c1,'author':_0x5b4b46||_0x36f82c,'creator':_0x36f82c,'content':_0x5cc0cd,'createdAt':_0x2e728c,'authoredAt':_0x28fce8,'attributes':_0x1c02ae});}['_addComment'](_0x5e692a){let {threadId:_0x252917,content:_0x1676a7,attributes:_0x5375eb,isFromAdapter:_0x213598}=_0x5e692a;const _0x594d57=this['getCommentThread'](_0x5e692a['threadId']);if(!_0x594d57)throw new _0x369546('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x20ad9e=this['_createNewComment'](_0x5e692a),{id:_0xb6f0e4}=_0x20ad9e;if(_0x594d57['_add'](_0x20ad9e),_0x213598||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x594d57['isSubmitted'])return Promise['resolve']();const _0x40ff68=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3ad0d0}=_0x594d57,_0xdd499d=_0x40ff68['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x5375eb||(_0x5375eb={}),this['adapter']['addComment']({'channelId':_0x3ad0d0,'threadId':_0x252917,'commentId':_0xb6f0e4,'content':_0x1676a7,'attributes':_0x5375eb})['then'](_0xf7f23f=>{_0x40ff68['remove'](_0xdd499d),_0xf7f23f&&this['_updateComment']({'channelId':_0x3ad0d0,'threadId':_0x252917,'commentId':_0xb6f0e4,'createdAt':_0xf7f23f['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4158eb=>{throw console['error'](_0x4158eb),new _0x369546('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x2dc7c1,commentId:_0x50d258,content:_0x47ddcb,createdAt:_0x202fa1,attributes:_0x4a73f6,isFromAdapter:_0x70cc7a}){if(void 0x0!==_0x47ddcb&&('string'!=typeof _0x47ddcb||!_0x47ddcb['trim']()['length']))throw new _0x369546('commentsrepository-update-comment-invalid-content');const _0xe97d37=this['getCommentThread'](_0x2dc7c1),_0x526fbd=_0xe97d37['getComment'](_0x50d258);if(!_0x526fbd)throw new _0x369546('commentsrepository-update-missing-comment',this);let _0x1447a7=!0x1;if(_0x47ddcb&&_0x47ddcb!==_0x526fbd['content']&&(_0x526fbd['isEditable']||_0x70cc7a)&&(_0x526fbd['content']=_0x47ddcb,_0x1447a7=!0x0),_0x202fa1&&_0x202fa1!==_0x526fbd['createdAt']&&(_0x526fbd['createdAt']=_0x202fa1,_0x526fbd['attributes']&&_0x526fbd['attributes']['@external']||(_0x526fbd['authoredAt']=_0x202fa1),_0x1447a7=!0x0),_0x4a73f6&&!wt(_0x4a73f6,_0x526fbd['attributes'])&&(_0x526fbd['attributes']=_0x4a73f6,_0x1447a7=!0x0),!_0x1447a7)return Promise['resolve']();if(_0xe97d37['fire']('commentUpdated'),_0x70cc7a||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2f2dad=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4ec7ab}=this['getCommentThread'](_0x526fbd['threadId']),_0x3e9408=_0x2f2dad['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x4ec7ab,'threadId':_0x2dc7c1,'commentId':_0x50d258,'content':_0x47ddcb,'attributes':_0x4a73f6})['then'](()=>_0x2f2dad['remove'](_0x3e9408))['catch'](_0x52cbbe=>{throw console['error'](_0x52cbbe),new _0x369546('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x25dcbe,commentId:_0x46e144,isFromAdapter:_0x59eb77}){const _0x2fc883=this['getCommentThread'](_0x25dcbe),_0x84c43c=_0x2fc883['getComment'](_0x46e144);if(!_0x84c43c)throw new _0x369546('commentsrepository-remove-missing-comment',this);if(_0x2fc883['_remove'](_0x84c43c),_0x59eb77||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x220d1e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2ae18b}=_0x2fc883,_0x1429d7=_0x220d1e['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2ae18b,'threadId':_0x25dcbe,'commentId':_0x46e144})['then'](()=>_0x220d1e['remove'](_0x1429d7))['catch'](_0x6d7fbe=>{throw console['error'](_0x6d7fbe),new _0x369546('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
- _0x33434e(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x1e90d0,_0x50525f){super();const _0x4d1777=_0x50525f['isResolvable'];this['channelId']=_0x50525f['channelId'],this['id']=_0x50525f['id'],this['comments']=new _0x508354(),this['_repository']=_0x1e90d0,this['_isAttached']=!0x1,this['_isSubmitted']=_0x50525f['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x1e90d0,'_permissions',_0x1e90d0,'_readOnlyChannels',()=>_0x1e90d0['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x1e90d0,'_permissions',()=>_0x1e90d0['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x1e90d0,'_permissions',()=>{const _0x494658=_0x1e90d0['getPermissions'](this['channelId']);return _0x494658['write']||_0x494658['admin'];}),this['bind']('isResolvable')['to'](_0x1e90d0,'_permissions',()=>_0x4d1777&&_0x1e90d0['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x50525f['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x414e1a,_0x569a28)=>_0x414e1a?_0x569a28?_0x414e1a<_0x569a28?_0x414e1a:_0x569a28:_0x414e1a:_0x569a28),this['set']('unlinkedAt',_0x50525f['unlinkedAt']||null),this['set']('resolvedAt',_0x50525f['resolvedAt']||null),this['set']('resolvedBy',_0x50525f['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x2d411e=>!!_0x2d411e),this['set']('attributes',_0x50525f['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x1be0d8,_0x2a5e90)=>_0x1be0d8+_0x2a5e90['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x333a60,id:_0x4d9fed}=this;this['_repository']['fire'](bt('submitCommentThread',_0x333a60),{'channelId':_0x333a60,'threadId':_0x4d9fed});}['setUnlinkedAt'](_0x13230a){this['_update']({'unlinkedAt':_0x13230a});}['resolve']({resolvedAt:_0x2c0267=new Date(),resolvedBy:_0x1108b9=null,isFromAdapter:_0x484dde=!0x1}={}){const _0x39ab1b=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x171f44,id:_0x2dc4f9}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x171f44),{'channelId':_0x171f44,'threadId':_0x2dc4f9,'resolvedAt':_0x2c0267,'resolvedBy':_0x1108b9||_0x39ab1b['id'],'isFromAdapter':_0x484dde});}['reopen']({isFromAdapter:_0x4b2d25=!0x1}={}){const {channelId:_0x3a9450,id:_0x2b3e5a}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x3a9450),{'channelId':_0x3a9450,'threadId':_0x2b3e5a,'isFromAdapter':_0x4b2d25});}['setContext'](_0x464229){this['context']||this['_update']({'context':_0x464229});}['setAttribute'](_0x4675ce,_0x5bfaf6){const _0x4102b8=It(this['attributes']);At(_0x4102b8,_0x4675ce,_0x5bfaf6),this['_update']({'attributes':_0x4102b8});}['removeAttribute'](_0x3fe478){const _0x33690b=It(this['attributes']);yt(_0x33690b,_0x3fe478),this['_update']({'attributes':_0x33690b});}['remove']({isFromAdapter:_0x507376=!0x1}={}){const {channelId:_0x32be02,id:_0x1fd156}=this;this['_repository']['fire'](bt('removeCommentThread',_0x32be02),{'channelId':_0x32be02,'threadId':_0x1fd156,'isFromAdapter':_0x507376});}['attachTo'](_0x30d44c){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x30d44c});}['addComment'](_0x2323c6){const {channelId:_0x5dde78,id:_0x48a089}=this;this['_repository']['fire'](bt('addComment',_0x5dde78,_0x48a089),Object['assign']({'channelId':_0x5dde78,'threadId':_0x48a089},_0x2323c6));}['getComment'](_0xdfe547){if('string'!=typeof _0xdfe547)throw new _0x369546('commentsrepository-get-comment-invalid-id',null,{'commentId':_0xdfe547});return this['comments']['get'](_0xdfe547);}['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'](_0x1a56f4=>_0x1a56f4['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3f0964){return this['listenTo'](_0x3f0964,'change:authoredAt',()=>{const _0x2caaca=this['_findOptimalIndex'](_0x3f0964),_0x4bd0f1=this['comments'];_0x2caaca-0x1!=_0x4bd0f1['getIndex'](_0x3f0964)&&_0x2caaca+0x1!=_0x4bd0f1['getIndex'](_0x3f0964)&&(this['_remove'](_0x3f0964),this['_add'](_0x3f0964));}),this['comments']['add'](_0x3f0964,this['_findOptimalIndex'](_0x3f0964));}['_update'](_0x205e18){const {channelId:_0xe30cd,id:_0x54a128}=this;this['_repository']['fire'](bt('updateCommentThread',_0xe30cd),{..._0x205e18,'channelId':_0xe30cd,'threadId':_0x54a128});}['_remove'](_0x3d1361){return this['stopListening'](_0x3d1361),_0x3d1361['destroy'](),this['comments']['remove'](_0x3d1361);}['_findOptimalIndex'](_0x50a8a8){const _0x2f6f3b=this['comments']['find'](_0x548973=>new Date(_0x548973['authoredAt'])['getTime']()>new Date(_0x50a8a8['authoredAt'])['getTime']());return _0x2f6f3b?this['comments']['getIndex'](_0x2f6f3b):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
- _0x33434e(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x4591b0,_0x1a99dc){super();const _0x19bf03=_0x4591b0['context']['plugins']['get'](it)['me'],_0x21c440=_0x4591b0['getCommentThread'](_0x1a99dc['threadId']),_0x2c9aaa=0x0===_0x21c440['comments']['length'],_0x4656ab=_0x19bf03===_0x1a99dc['author'];this['id']=_0x1a99dc['id'],this['threadId']=_0x1a99dc['threadId'],this['author']=_0x1a99dc['author'],this['creator']=_0x1a99dc['creator'],this['isExternal']=Boolean(_0x1a99dc['attributes']&&_0x1a99dc['attributes']['@external']),this['set']('content',_0x1a99dc['content']),this['createdAt']=_0x1a99dc['createdAt']||new Date(),this['set']('authoredAt',_0x1a99dc['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x21c440,'resolvedAt'),this['set']('attributes',_0x1a99dc['attributes']||{}),this['bind']('isEditable')['to'](_0x4591b0,'_permissions',()=>{const _0x547262=_0x4591b0['getPermissions'](_0x21c440['channelId'])['write'],_0x8286b1=_0x4591b0['getPermissions'](_0x21c440['channelId'])['modifyAll'];return _0x4656ab&&_0x547262||!_0x4656ab&&_0x8286b1;}),this['bind']('isRemovable')['to'](_0x21c440,'isRemovable',_0x4591b0,'_permissions',_0x53fdd7=>{const _0x4772d3=_0x4591b0['getPermissions'](_0x21c440['channelId'])['write'],_0x38e05c=_0x4591b0['getPermissions'](_0x21c440['channelId'])['modifyAll'];return _0x4656ab&&_0x4772d3||_0x53fdd7&&_0x2c9aaa||!_0x4656ab&&_0x38e05c&&!_0x2c9aaa;}),this['bind']('isReadOnly')['to'](_0x21c440,'isReadOnly'),this['_repository']=_0x4591b0;}get['weight'](){return Math['max'](function(_0x69f1d4){const _0x1306ec=document['createElement']('div');return _0x1306ec['innerHTML']=_0x69f1d4,_0x1306ec['textContent']['length'];}(this['content']),0xc8);}['update'](_0x5b40f1){const {threadId:_0xfaebd2,id:_0x28fee5}=this;if(!this['_repository']['hasCommentThread'](_0xfaebd2))throw new _0x369546('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x49a3f1}=this['_repository']['getCommentThread'](_0xfaebd2);this['_repository']['fire'](bt('updateComment',_0x49a3f1,_0xfaebd2),{'channelId':_0x49a3f1,'threadId':_0xfaebd2,'commentId':_0x28fee5,..._0x5b40f1});}['setAttribute'](_0xe51935,_0x294dab){const _0x57e274=It(this['attributes']);At(_0x57e274,_0xe51935,_0x294dab),this['update']({'attributes':_0x57e274});}['removeAttribute'](_0x56394b){const _0x40de2a=It(this['attributes']);yt(_0x40de2a,_0x56394b),this['update']({'attributes':_0x40de2a});}['remove'](_0x3dd429={}){if(!_0x3dd429['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x2ec1dc,id:_0x530eb8}=this;if(!this['_repository']['hasCommentThread'](_0x2ec1dc))throw new _0x369546('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x48db58}=this['_repository']['getCommentThread'](_0x2ec1dc);this['_repository']['fire'](bt('removeComment',_0x48db58,_0x2ec1dc),{'channelId':_0x48db58,'threadId':_0x2ec1dc,'commentId':_0x530eb8,..._0x3dd429});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x4306fb,..._0x3b5a53){for(const _0x9d648b of _0x3b5a53)void 0x0!==_0x9d648b&&(_0x4306fb+=':'+String(_0x9d648b));return _0x4306fb;}class J extends _0xfbedbc{['refresh'](){const _0x2e48e3=this['editor']['model']['document']['selection'];for(const _0x4b39dc of _0x2e48e3['getRanges']())if(this['_hasContent'](_0x4b39dc))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x260e44=_0x1fe468()}={}){const _0x1fa3d6=this['editor']['model'],_0x59b850=[];for(const _0x51f11d of _0x1fa3d6['document']['selection']['getRanges']())this['_hasContent'](_0x51f11d)&&_0x59b850['push'](this['_trimToContent'](_0x51f11d));_0x1fa3d6['change'](_0xdafa68=>{for(const _0x3311de of _0x59b850){const _0x242b53=_0x1fe468()['substr'](0x1,0x5),_0x4cc174='comment:'+_0x260e44+':'+_0x242b53;_0xdafa68['addMarker'](_0x4cc174,{'range':_0x3311de,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x1a132f){for(const _0x5b6884 of _0x1a132f['getItems']())if(this['_itemIsContent'](_0x5b6884))return!0x0;return!0x1;}['_itemIsContent'](_0x1ef5bf){return _0x1ef5bf['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x1ef5bf)&&!_0x1ef5bf['is']('element','tableCell');}['_trimToContent'](_0x3113a4){const _0x5c21f2=_0x4a7400=>!this['_itemIsContent'](_0x4a7400['item']),_0x2abce0=_0x3113a4['start']['getLastMatchingPosition'](_0x5c21f2),_0x268450=_0x3113a4['end']['getLastMatchingPosition'](_0x5c21f2,{'direction':'backward'});return this['editor']['model']['createRange'](_0x2abce0,_0x268450);}}class P extends _0x3e155f{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f01ad){super(_0x2f01ad),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x426a87=this['editor'],_0x2b1aa0=_0x426a87['model']['document']['selection'],_0x18af54=_0xaf86be(()=>this['refreshSelectedViews'](),0xa);_0x2b1aa0['on']('change:range',(_0x4f1a8e,_0x3ad0ec)=>{_0x3ad0ec['directChange']&&(_0x18af54['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x426a87['editing']['view']['document'],'change:isFocused',(_0xa8e301,_0x599438,_0x2dd614)=>{_0x2dd614&&_0x18af54();}),this['listenTo'](_0x426a87['ui']['focusTracker'],'change:isFocused',(_0x3fae32,_0x2a4e78,_0x28d1fb)=>{_0x28d1fb||_0x426a87['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x320bd5=>this['_editorAnnotationsData']['has'](_0x320bd5['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4ac42d){if(this['_editorAnnotations']['has'](_0x4ac42d['view']))return;this['_editorAnnotations']['add'](_0x4ac42d['view']),this['editor']['ui']['focusTracker']['add'](_0x4ac42d['view']['element']);const _0x7234f4=this['editor']['plugins']['get'](O);this['listenTo'](_0x7234f4['collection'],'remove',(_0x4dd6d2,_0x109682)=>{this['editor']['ui']['focusTracker']['remove'](_0x109682['view']['element']),this['_editorAnnotations']['delete'](_0x109682['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4b2a36){if('function'!=typeof _0x4b2a36)throw new _0x369546('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4b2a36);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x35ee43,annotations:_0x5f17da}){const _0x33852c=[],_0x4c2d98=this['editor']['model']['document']['selection'],_0x1af3d6=Array['from'](_0x4c2d98['getRanges']());for(const [_0x23565d,_0x548f80]of this['_editorAnnotationsData']){const _0x52c2bf=_0x5f5149(_0x548f80),_0x4a93c1=_0x5f17da['getByInnerView'](_0x23565d);_0x52c2bf&&_0x4a93c1&&_0x33852c['push']({'annotation':_0x4a93c1,'range':_0x52c2bf});}function _0x5f5149(_0x422c13){for(const _0x3b26cf of _0x422c13)for(const _0x2d56f3 of _0x1af3d6)if(_0x3b26cf['containsRange'](_0x2d56f3,!_0x4c2d98['isCollapsed']))return _0x3b26cf;return null;}return _0x33852c['sort']((_0x66cb27,_0x32aee5)=>{const _0x467ae7=_0x66cb27['range'],_0x4ab2ef=_0x32aee5['range'];if(!_0x467ae7['isEqual'](_0x4ab2ef)){if(_0x467ae7['containsRange'](_0x4ab2ef,!0x0))return 0x1;if(_0x4ab2ef['containsRange'](_0x467ae7,!0x0))return-0x1;}return _0x66cb27['annotation']==_0x35ee43?-0x1:_0x32aee5['annotation']==_0x35ee43?0x1:0x0;})['map'](_0x4823b6=>_0x4823b6['annotation']);}get['_editorAnnotationsData'](){const _0xcd9876=new Map();for(const _0x45984d of Array['from'](this['_dataCollectors']))for(const [_0x295d59,_0x1a7b0d]of _0x45984d())_0xcd9876['set'](_0x295d59,_0x1a7b0d);return _0xcd9876;}}class st extends _0x3e155f{['afterInit'](){const _0x2f8898=this['editor'];if(!_0x2f8898['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2f8898['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3e155f{constructor(_0x40e07e){super(_0x40e07e),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x18cbe7=this['editor'],_0x4ee428=_0x18cbe7['commands']['get']('importWord'),_0x2dba9a=_0x18cbe7['plugins']['get'](it);_0x4ee428&&(_0x4ee428['on']('execute',(_0x4a6338,[,_0x51523f])=>{_0x51523f['collaboration_features']={'comments':!0x0,'user_id':_0x2dba9a['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x4ee428,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x8c17,_0x49d168){const {comment_threads:_0x36b6c3}=_0x49d168;_0x36b6c3&&_0x36b6c3['forEach'](({thread_id:_0x389b0e,comments:_0x3c092a,is_resolved:_0x70ee5})=>{const _0x1b448b=new Date(),_0x354713=_0x3c092a['map'](({author:_0x4054ae,content:_0xb07e08,created_at:_0x3e8854})=>({'content':_0xb07e08,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x1b448b,'attributes':{'@external':{'authorName':_0x4054ae,'createdAt':_0x3e8854?new Date(_0x3e8854):new Date(),'source':'importWord'}}})),_0x38cb7c=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x38cb7c,'threadId':_0x389b0e,'comments':_0x354713,'resolvedAt':_0x70ee5?_0x1b448b:null});});}}class at extends _0x3e155f{constructor(_0x3bccdc){super(_0x3bccdc),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x50aca2=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x50aca2,'contentInsertion',(_0x4338df,_0x46665a)=>this['_removeMarkersWithoutThreads'](_0x46665a['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x3484be){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x3484be;const _0x51b5eb=this['editor']['plugins']['get']('CommentsRepository');for(const _0x3cba5d of _0x3484be['keys']()){const [_0x2b72ac,_0x9ca116]=_0x3cba5d['split'](':');'comment'!=_0x2b72ac||_0x51b5eb['hasCommentThread'](_0x9ca116)||_0x3484be['delete'](_0x3cba5d);}return _0x3484be;}['_registerMarkerInClipboardPipeline'](){const _0x3ef41c=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x306de7=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x306de7&&_0x3ef41c['_registerMarkerToCopy']('comment',_0x306de7);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2822ed){switch(_0x2822ed){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 _0x3e155f{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4340e0,_0x56b826)=>{if(!_0x56b826['options']['showCommentHighlights'])return null;if(_0x56b826['options']['ignoreResolvedComments']){const {id:_0xaf2dca}=er(_0x4340e0['markerName']),_0x5c29db=this['editor']['plugins']['get'](o);if(_0x5c29db['getCommentThread'](_0xaf2dca)?.['isResolved']&&_0x4340e0['item'])return _0x56b826['consumable']['consume'](_0x4340e0['item'],'addMarker:'+_0x4340e0['markerName']),_0x56b826['consumable']['consume'](_0x4340e0['item'],'removeMarker:'+_0x4340e0['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4221a1=>{_0x4221a1['on']('addMarker:comment',(_0x54c271,_0x23328e,_0x41e8f5)=>{if(!_0x41e8f5['options']['showCommentHighlights'])return;const _0x2dc1f4=_0x23328e['item'];if(!_0x2dc1f4)return;const _0x152c26=_0x41e8f5['mapper']['toViewElement'](_0x2dc1f4);this['editor']['model']['schema']['isObject'](_0x2dc1f4)&&_0x152c26&&!_0x152c26['getCustomProperty']('widget')&&_0x152c26['is']('containerElement')&&_0xd6cd62(_0x152c26,_0x41e8f5['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3e2eb4,{writer:_0x4871a8,options:_0x33abdb})=>{if(!_0x33abdb['showCommentHighlights'])return null;const _0x6c6b53=_0x4871a8['createContainerElement']('div'),_0x726064=_0x4871a8['createEmptyElement']('hr');return _0x4871a8['addClass']('ck-horizontal-line',_0x6c6b53),_0x4871a8['insert'](_0x4871a8['createPositionAt'](_0x6c6b53,0x0),_0x726064),_0x6c6b53;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x43bbce,{writer:_0xb83fcc,options:_0x2c64a3})=>{if(!_0x2c64a3['showCommentHighlights'])return null;const _0x50eeff=_0xb83fcc['createContainerElement']('span'),_0xfb28eb=_0xb83fcc['createEmptyElement']('img');return _0xb83fcc['addClass']('image-inline',_0x50eeff),_0xb83fcc['insert'](_0xb83fcc['createPositionAt'](_0x50eeff,0x0),_0xfb28eb),_0x50eeff;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1fecdf,{writer:_0x43855b,options:_0x1cdee5})=>{if(_0x1cdee5['showCommentHighlights'])return _0x43855b['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2ad5c1,_0x3b1129,_0x3874dd)=>{_0x3874dd['options']['showCommentHighlights']&&_0x2ad5c1['stop']();},{'priority':'high'});}}class r extends _0x3e155f{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(_0xa56bd4){super(_0xa56bd4),this['set']('isThreadsLoadingPaused',!0x0),_0xa56bd4['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x241983,_0x186d41,_0x4d9a35,_0x10dd8d)=>{const _0x5c11cd=_0xa56bd4['plugins']['get'](o),_0x5ab936=_0x4d9a35?er(_0x4d9a35)['id']:null;_0xa56bd4['model']['change'](()=>{if(_0x5ab936){const _0x3f250a=this['getAllMarkersForId'](_0x5ab936);for(const _0x58644e of _0x3f250a)_0xa56bd4['editing']['reconvertMarker'](_0x58644e);}if(_0x10dd8d){const {id:_0x422227}=er(_0x10dd8d),_0x2f68bd=_0x5c11cd['getCommentThread'](_0x422227);if(_0x2f68bd&&_0x2f68bd['unlinkedAt'])return;if(_0x2f68bd&&!_0x2f68bd['isAttached'])return;const _0x5e963b=this['getAllMarkersForId'](_0x422227);for(const _0x3b0e9e of _0x5e963b)_0xa56bd4['editing']['reconvertMarker'](_0x3b0e9e);}}),_0x5ab936&&this['scrollToThreadMarker'](_0x5ab936);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5c5b74=this['editor'],_0x186dc3=_0x5c5b74['plugins']['get'](o),_0x250f1e=_0x5c5b74['config']['get']('collaboration.channelId'),_0x29732a=_0x186dc3['getCommentThreads']()['filter'](_0xd6e03b=>_0xd6e03b['channelId']!==_0x250f1e);_0x5c5b74['commands']['add']('addCommentThread',new J(_0x5c5b74)),this['listenTo'](_0x5c5b74,'change:isReadOnly',(_0x4f68e5,_0x3e48da,_0x280d99)=>{_0x186dc3['switchReadOnly'](_0x280d99,_0x5c5b74['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x186dc3,ft('addCommentThread',_0x250f1e),(_0x56dc1e,{threadId:_0x20ed47})=>{const _0x301171=this['editor']['plugins']['get'](o)['getCommentThread'](_0x20ed47);_0x301171?.['unlinkedAt']&&this['_attachArchivedThread'](_0x20ed47);}),this['listenTo'](_0x186dc3,ft('removeCommentThread',_0x250f1e),(_0x2feb6e,{threadId:_0x5e58e3})=>{_0x5c5b74['model']['enqueueChange']({'isUndoable':!0x1},_0x4cb746=>{const _0x4112da=this['getAllMarkersForId'](_0x5e58e3);for(const _0x2f1257 of _0x4112da)_0x4cb746['removeMarker'](_0x2f1257);});}),this['listenTo'](_0x186dc3,ft('resolveCommentThread',_0x250f1e),(_0x14e56c,{threadId:_0x577192})=>{(this['_reconvertMarkers'](_0x577192),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x577192)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x186dc3,ft('reopenCommentThread',_0x250f1e),(_0x1cf5d4,{threadId:_0x3c23ff})=>{this['_reconvertMarkers'](_0x3c23ff);},{'priority':'low'}),this['listenTo'](_0x186dc3,ft('addComment',_0x250f1e),(_0x5e605c,{threadId:_0x21929f,isFromAdapter:_0x47f5fe})=>{const _0x51f6c3=this['getAllMarkersForId'](_0x21929f);if(_0x47f5fe||0x0==_0x51f6c3['length']||!_0x186dc3['hasCommentThread'](_0x21929f))return;0x1===_0x186dc3['getCommentThread'](_0x21929f)['length']&&_0x5c5b74['model']['enqueueChange']({'isUndoable':!0x1},_0x3b34c3=>{for(const _0x3c43f9 of _0x51f6c3)_0x3b34c3['updateMarker'](_0x3c43f9,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x29732a);}['afterInit'](){!async function(_0x2a82d0){const _0x20c6f8=_0x48f24c([0x35,0x74,0x68,0x42,0x76,0x6b,0x38,0x61,0x64,0x75,0x67,0x57,0x6d,0x5a,0x6a,0x66,0x54,0x43,0x62,0x44,0x69,0x55,0x32,0x59,0x65,0x41,0x79,0x6e,0x4c,0x70,0x58,0x4b,0x52,0x7a,0x31,0x33,0x4e,0x6f,0x30,0x53,0x48,0x46,0x47,0x36,0x4d,0x50,0x51,0x56,0x63,0x6c,0x72,0x37,0x77,0x49,0x4f,0x39,0x45,0x73,0x71,0x4a,0x78,0x34]),_0x505bce=0x60e7aa90,_0x66d76a=0x60e0cd40^_0x505bce,_0x131255=window[_0x48f24c([0x44,0x61,0x74,0x65])][_0x48f24c([0x6e,0x6f,0x77])](),_0x958cb8=_0x2a82d0[_0x48f24c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x539418=new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582bf2=>{_0x958cb8[_0x48f24c([0x6f,0x6e,0x63,0x65])](_0x48f24c([0x72,0x65,0x61,0x64,0x79]),_0x582bf2);}),_0x3cc73c={[_0x48f24c([0x6b,0x74,0x79])]:_0x48f24c([0x45,0x43]),[_0x48f24c([0x75,0x73,0x65])]:_0x48f24c([0x73,0x69,0x67]),[_0x48f24c([0x63,0x72,0x76])]:_0x48f24c([0x50,0x2d,0x32,0x35,0x36]),[_0x48f24c([0x78])]:_0x48f24c([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]),[_0x48f24c([0x79])]:_0x48f24c([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]),[_0x48f24c([0x61,0x6c,0x67])]:_0x48f24c([0x45,0x53,0x32,0x35,0x36])},_0xc27156=_0x958cb8[_0x48f24c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48f24c([0x67,0x65,0x74])](_0x48f24c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d1303(){let _0x51aab9,_0x3db590=null,_0x40f7d0=null;try{if(_0xc27156==_0x48f24c([0x47,0x50,0x4c]))return _0x48f24c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51aab9=_0x177c01(),!_0x51aab9)return _0x48f24c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51aab9[_0x48f24c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40f7d0=_0x3844aa(_0x51aab9[_0x48f24c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51aab9[_0x48f24c([0x6a,0x74,0x69])])),await _0x5b45d8()?_0x209cdc()?_0x4bce0e()?_0x48f24c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x16fbfd()?(_0x51aab9[_0x48f24c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48f24c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3db590=_0x8fdfc8(_0x48f24c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51aab9[_0x48f24c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48f24c([0x74,0x72,0x69,0x61,0x6c])&&(_0x3db590=_0x8fdfc8(_0x48f24c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x313f71()):_0x48f24c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48f24c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48f24c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x55e493){return _0x48f24c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4bce0e(){const _0x4480d7=[_0x48f24c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48f24c([0x74,0x72,0x69,0x61,0x6c])][_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51aab9[_0x48f24c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x131255/0x3e8:0xe10*_0x66d76a;return _0x51aab9[_0x48f24c([0x65,0x78,0x70])]<_0x4480d7;}function _0x209cdc(){const _0x223ff6=_0x51aab9[_0x48f24c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x223ff6)return!0x1;if(_0x223ff6[_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24c([0x2a])))return!0x0;if(_0x223ff6[_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24c([0x43,0x4d,0x54])))return!0x0;if(_0x223ff6[_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24c([0x52,0x43,0x4d,0x54]))){if(_0x1c0db7())return!0x0;if(_0x46cde1()||_0x13bb54())return!0x0;}return!0x1;}function _0x16fbfd(){const _0x3c1e69=_0x51aab9[_0x48f24c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c1e69||0x0==_0x3c1e69[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x236e96}=new URL(window[_0x48f24c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c1e69[_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x236e96))return!0x0;const _0x373d07=_0x236e96[_0x48f24c([0x73,0x70,0x6c,0x69,0x74])](_0x48f24c([0x2e]));return _0x3c1e69[_0x48f24c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4427b7=>_0x4427b7[_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24c([0x2a])))[_0x48f24c([0x6d,0x61,0x70])](_0x3e5f5b=>_0x3e5f5b[_0x48f24c([0x73,0x70,0x6c,0x69,0x74])](_0x48f24c([0x2e])))[_0x48f24c([0x73,0x6f,0x6d,0x65])](_0x27cb7d=>_0x373d07[_0x48f24c([0x65,0x76,0x65,0x72,0x79])]((_0x196281,_0x5a9cb7)=>_0x27cb7d[_0x5a9cb7]===_0x196281||_0x27cb7d[_0x5a9cb7]===_0x48f24c([0x2a])));}function _0x313f71(){return _0x3db590&&_0x40f7d0?new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x283fea,_0x50f0ba)=>{_0x3db590[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x283fea,_0x50f0ba),_0x40f7d0[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x4feb02=>{_0x4feb02!=_0x48f24c([0x56,0x61,0x6c,0x69,0x64])&&_0x283fea(_0x4feb02);},_0x50f0ba);}):_0x3db590||_0x40f7d0||_0x48f24c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3844aa(_0x427a5f,_0x248eb0){return new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a988=>{if(_0x1c6630())return _0x19a988(_0x48f24c([0x56,0x61,0x6c,0x69,0x64]));_0x30476e(),_0x958cb8[_0x48f24c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48f24c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32540d=!0x1;const _0x290b78=_0x1fe468();function _0x4050e0(_0xbfe776){return!!_0xbfe776&&(typeof _0xbfe776===_0x48f24c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xbfe776===_0x48f24c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xbfe776[_0x48f24c([0x74,0x68,0x65,0x6e])]===_0x48f24c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xbfe776[_0x48f24c([0x63,0x61,0x74,0x63,0x68])]===_0x48f24c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2cac3a(_0x2fcd69){_0x1ced67(_0x2fcd69)[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x1f2009=>{if(!_0x1f2009||_0x1f2009[_0x48f24c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48f24c([0x6f,0x6b]))return _0x48f24c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x511203(_0x3e11f9(_0x290b78+_0x248eb0))!=_0x1f2009[_0x48f24c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48f24c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48f24c([0x56,0x61,0x6c,0x69,0x64]);})[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x474721=>(_0x495f08(),_0x474721),()=>{const _0x5183dd=_0x246507();return null==_0x5183dd?(_0x495f08(),_0x48f24c([0x56,0x61,0x6c,0x69,0x64])):_0x48f24c(_0x131255-_0x5183dd>(0x44eb2e90^_0x505bce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x19a988)[_0x48f24c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19a988(_0x48f24c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34de64=0x60d14410^_0x505bce;function _0x495f08(){const _0x12cc5f=_0x48f24c([0x6c,0x6c,0x63,0x74,0x2d])+_0x511203(_0x3e11f9(_0x427a5f)),_0xdc1683=_0x503519(_0x511203(window[_0x48f24c([0x4d,0x61,0x74,0x68])][_0x48f24c([0x63,0x65,0x69,0x6c])](_0x131255/_0x34de64)));window[_0x48f24c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48f24c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12cc5f,_0xdc1683);}function _0x246507(){const _0x529b66=_0x48f24c([0x6c,0x6c,0x63,0x74,0x2d])+_0x511203(_0x3e11f9(_0x427a5f)),_0x5aaa30=window[_0x48f24c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48f24c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x529b66);return _0x5aaa30?window[_0x48f24c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x503519(_0x5aaa30),0x10)*_0x34de64:null;}function _0x1ced67(_0x45e546){return new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fe61a,_0x1cae79)=>{_0x45e546[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x3fe61a,_0x1cae79),window[_0x48f24c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cae79,0x60e67e50^_0x505bce);});}}_0x958cb8[_0x48f24c([0x6f,0x6e])](_0x48f24c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51d8af,_0x2bb171)=>{if(_0x2bb171[0x0]!=_0x427a5f)return _0x19a988(_0x48f24c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2bb171[0x1]={..._0x2bb171[0x1],[_0x48f24c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x290b78};},{[_0x48f24c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48f24c([0x68,0x69,0x67,0x68])}),_0x958cb8[_0x48f24c([0x6f,0x6e])](_0x48f24c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54968b=>{_0x4050e0(_0x54968b[_0x48f24c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32540d=!0x0,_0x2cac3a(_0x54968b[_0x48f24c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48f24c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48f24c([0x6c,0x6f,0x77])}),_0x539418[_0x48f24c([0x74,0x68,0x65,0x6e])](()=>{_0x32540d||_0x19a988(_0x48f24c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c6630(){return _0x958cb8[_0x48f24c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48f24c([0x76,0x69,0x65,0x77])][_0x48f24c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48f24c([0x61,0x75,0x74,0x6f]);}function _0x30476e(){_0x958cb8[_0x48f24c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48f24c([0x76,0x69,0x65,0x77])][_0x48f24c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48f24c([0x61,0x75,0x74,0x6f]);}}function _0x8fdfc8(_0x27751f){const _0xf92d=[new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5138a4=>setTimeout(_0x5138a4,0x60ee945c^_0x505bce)),_0x539418[_0x48f24c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x192f75=>{let _0xd4615f=0x0;_0x958cb8[_0x48f24c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f24c([0x6f,0x6e])](_0x48f24c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d527c,_0x4d42cc)=>{_0x4d42cc[0x0][_0x48f24c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd4615f++,_0xd4615f==(0x60e7ab68^_0x505bce)&&(_0x192f75(),_0x3d527c[_0x48f24c([0x6f,0x66,0x66])]());});}))];return window[_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48f24c([0x72,0x61,0x63,0x65])](_0xf92d)[_0x48f24c([0x74,0x68,0x65,0x6e])](()=>_0x27751f);}async function _0x3d7700(){await _0x539418,_0x958cb8[_0x48f24c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f24c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x84d9dc,_0x958cb8[_0x48f24c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f24c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x84d9dc,_0x958cb8[_0x48f24c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48f24c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c0db7(){return _0x166b3f(_0x48f24c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x26cc11(_0x48f24c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x48f24c([0x73,0x74,0x61,0x74,0x65])]==_0x48f24c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x46cde1(){return _0x166b3f(_0x48f24c([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 _0x13bb54(){return _0x166b3f(_0x48f24c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x271aa5(_0x5ad980){const _0x296c4c=_0x457368();_0x958cb8[_0x296c4c]=_0x48f24c([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5ad980,_0x5ad980!=_0x48f24c([0x56,0x61,0x6c,0x69,0x64])&&_0x3d7700();}function _0x457368(){const _0x1d5300=window[_0x48f24c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48f24c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48f24c([0x6e,0x6f,0x77])]())[_0x48f24c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48f24c([0x2e]),'');let _0x106740=_0x48f24c([0x74]);for(let _0x2cd29c=0x0;_0x2cd29c<_0x1d5300[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cd29c+=0x2){let _0x41d188=window[_0x48f24c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d5300[_0x48f24c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cd29c,_0x2cd29c+0x2));_0x41d188>=_0x20c6f8[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x41d188-=_0x20c6f8[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x106740+=_0x20c6f8[_0x41d188];}return _0x106740;}function _0x177c01(){const _0x1d8c7e=_0xc27156[_0x48f24c([0x73,0x70,0x6c,0x69,0x74])](_0x48f24c([0x2e]));if(0x3!=_0x1d8c7e[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2134b0(_0x1d8c7e[0x1]);function _0x2134b0(_0x3ab661){const _0x4c936d=_0x280b7b(_0x3ab661);return _0x4c936d&&_0x50c7bb()?_0x4c936d:null;function _0x50c7bb(){const _0x3a438f=_0x4c936d[_0x48f24c([0x6a,0x74,0x69])],_0x5d6668=window[_0x48f24c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a438f[_0x48f24c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a438f[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x318c92={..._0x4c936d,[_0x48f24c([0x6a,0x74,0x69])]:_0x3a438f[_0x48f24c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a438f[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x318c92[_0x48f24c([0x76,0x63])],_0x3e11f9(_0x318c92)==_0x5d6668;}}}async function _0x5b45d8(){let _0x944ec8=!0x0;try{const _0x1ce0ca=_0xc27156[_0x48f24c([0x73,0x70,0x6c,0x69,0x74])](_0x48f24c([0x2e])),[_0x5cfdc0,_0x4dafa9,_0x267797]=_0x1ce0ca;return _0x466817(_0x5cfdc0),await _0x4df255(_0x5cfdc0,_0x4dafa9,_0x267797),_0x944ec8;}catch(_0x714dd6){return!0x1;}function _0x466817(_0x431dc2){const _0x44f9b2=_0x280b7b(_0x431dc2);_0x44f9b2&&_0x44f9b2[_0x48f24c([0x61,0x6c,0x67])]==_0x48f24c([0x45,0x53,0x32,0x35,0x36])||(_0x944ec8=!0x1);}async function _0x4df255(_0x2a4a1f,_0x101e9d,_0x12310c){const _0x5699d4=window[_0x48f24c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48f24c([0x66,0x72,0x6f,0x6d])](_0x163050(_0x12310c),_0xc73474=>_0xc73474[_0x48f24c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x430935=new window[(_0x48f24c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48f24c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a4a1f+_0x48f24c([0x2e])+_0x101e9d),_0xd31f36=window[_0x48f24c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48f24c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd31f36)return;const _0x12a10f=await _0xd31f36[_0x48f24c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48f24c([0x6a,0x77,0x6b]),_0x3cc73c,{[_0x48f24c([0x6e,0x61,0x6d,0x65])]:_0x48f24c([0x45,0x43,0x44,0x53,0x41]),[_0x48f24c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48f24c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48f24c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd31f36[_0x48f24c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48f24c([0x6e,0x61,0x6d,0x65])]:_0x48f24c([0x45,0x43,0x44,0x53,0x41]),[_0x48f24c([0x68,0x61,0x73,0x68])]:{[_0x48f24c([0x6e,0x61,0x6d,0x65])]:_0x48f24c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12a10f,_0x5699d4,_0x430935)||(_0x944ec8=!0x1);}}function _0x280b7b(_0x5bf679){return _0x5bf679[_0x48f24c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48f24c([0x65,0x79]))?JSON[_0x48f24c([0x70,0x61,0x72,0x73,0x65])](_0x163050(_0x5bf679)):null;}function _0x163050(_0x2e76be){return window[_0x48f24c([0x61,0x74,0x6f,0x62])](_0x2e76be[_0x48f24c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48f24c([0x2b]))[_0x48f24c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48f24c([0x2f])));}function _0x3e11f9(_0x8fd6e0){let _0x3726ef=0x1505;function _0x38e263(_0x19435b){for(let _0x3c29b2=0x0;_0x3c29b2<_0x19435b[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c29b2++){const _0x268c5a=_0x19435b[_0x48f24c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c29b2);_0x3726ef=(_0x3726ef<<0x5)+_0x3726ef+_0x268c5a,_0x3726ef&=_0x3726ef;}}function _0x16d237(_0x434e2e){Array[_0x48f24c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x434e2e)?_0x434e2e[_0x48f24c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16d237):_0x434e2e&&typeof _0x434e2e==_0x48f24c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48f24c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x434e2e)[_0x48f24c([0x73,0x6f,0x72,0x74])]()[_0x48f24c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26d986,_0x702fbc])=>{_0x38e263(_0x26d986),_0x16d237(_0x702fbc);}):_0x38e263(window[_0x48f24c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x434e2e));}return _0x16d237(_0x8fd6e0),_0x3726ef>>>0x0;}function _0x511203(_0xf272f7){return _0xf272f7[_0x48f24c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48f24c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48f24c([0x30]));}function _0x503519(_0x4012c7){return _0x4012c7[_0x48f24c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48f24c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48f24c([0x6a,0x6f,0x69,0x6e])]('');}function _0x166b3f(_0x46c5f8){return _0x958cb8[_0x48f24c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x48f24c([0x68,0x61,0x73])](_0x46c5f8);}function _0x26cc11(_0x2f9738){return _0x958cb8[_0x48f24c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x48f24c([0x67,0x65,0x74])](_0x2f9738);}function _0x84d9dc(){}function _0x48f24c(_0x2f76f8){return _0x2f76f8['map'](_0x1266c0=>String['fromCharCode'](_0x1266c0))['join']('');}_0x271aa5(await _0x5d1303());}(this);}['destroy'](){const _0x4bafed=this['editor']['plugins']['get'](o),_0x1ff041=this['editor']['config']['get']('collaboration.channelId');for(const _0x545972 of _0x4bafed['getCommentThreads']({'channelId':_0x1ff041}))_0x4bafed['_detachCommentThread'](_0x545972['id']),_0x4bafed['_threads']['delete'](_0x545972['id']);super['destroy']();}['hasMarkerForId'](_0x41c388){return this['getAllMarkersForId'](_0x41c388)['length']>0x0;}['getAllMarkersForId'](_0x47fdfd){const _0x515916=[];for(const _0x42684f of this['editor']['model']['markers'])_0x42684f['name']['startsWith']('comment:'+_0x47fdfd)&&_0x515916['push'](_0x42684f);return _0x515916;}['scrollToThreadMarker'](_0x22abb4){const _0x435ce1=this['_getTargetForId'](_0x22abb4);_0x435ce1&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x22abb4&&rt({'target':_0x435ce1[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x252dc3){this['editor']['model']['change'](()=>{for(const _0x26944d of this['getAllMarkersForId'](_0x252dc3))this['editor']['editing']['reconvertMarker'](_0x26944d);});}['_attachArchivedThread'](_0x210a48){const _0x4447ab=this['editor']['plugins']['get'](o),_0x58c5f0=this['editor']['plugins']['get'](P),_0x4d264b=_0x4447ab['getCommentThread'](_0x210a48);if(!_0x4d264b['isAttached']){const _0x1e68cd=_0x4d264b['attachTo'](()=>this['_getTargetForId'](_0x4d264b['id']));_0x58c5f0['registerAnnotation'](_0x1e68cd),_0x4d264b['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0xc61ce=this['editor'],_0x466aaf=_0xc61ce['plugins']['get'](it);_0xc61ce['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x256412,_0x181615)=>{const {id:_0x773659}=er(_0x256412['markerName']),_0x3bfcc6=_0xc61ce['plugins']['get'](o)['getCommentThread'](_0x773659),_0x4bddd6=this['activeMarker']&&er(this['activeMarker'])['id']===_0x773659;let _0x3e6c56;if(_0x3bfcc6&&_0x3bfcc6['isResolved']&&!_0x4bddd6&&_0x256412['item'])return _0x181615['consumable']['consume'](_0x256412['item'],'addMarker:'+_0x256412['markerName']),_0x181615['consumable']['consume'](_0x256412['item'],'removeMarker:'+_0x256412['markerName']),null;const _0x49a3ad=['ck-comment-marker'];return _0x4bddd6&&_0x49a3ad['push']('ck-comment-marker--active'),_0x3e6c56=_0x3bfcc6?.['length']?_0x3bfcc6['comments']['first']['author']['id']:_0x466aaf['me']['id'],{'classes':_0x49a3ad,'attributes':{'data-comment':_0x773659,'data-author-id':_0x3e6c56}};}}),_0xc61ce['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x4cef58,{options:_0x311a1e})=>{if(_0x311a1e['showCommentHighlights'])return null;const _0x2e6336=_0xc61ce['plugins']['get'](o),_0x82da44=_0xc61ce['model']['markers']['get'](_0x4cef58),{id:_0x2042b9,part:_0x3abf8d}=er(_0x4cef58);return _0x82da44&&!_0x82da44['affectsData']||_0x311a1e['ignoreResolvedComments']&&_0x2e6336['getCommentThread'](_0x2042b9)?.['isResolved']?null:{'group':'comment','name':_0x3abf8d?_0x2042b9+':'+_0x3abf8d:_0x2042b9};}}),_0xc61ce['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3229e6,{writer:_0xe03dce})=>_0xe03dce['createElement']('$marker',{'data-name':'comment:'+_0x3229e6['getAttribute']('id')})}),_0xc61ce['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x5b4010=this['editor'],_0x55c5d0=_0x5b4010['plugins']['get'](o),_0x160395=new Set(),_0x526328=new Set();_0x5b4010['model']['document']['registerPostFixer'](_0x5a20a8=>{let _0x57ef8d=!0x1;for(const {name:_0xa5b7ac,data:_0x518382}of _0x5b4010['model']['document']['differ']['getChangedMarkers']()){const {group:_0x24416c,id:_0x386e2a}=er(_0xa5b7ac);let _0x4415a1=_0x518382['newRange'];if('comment'!==_0x24416c||!_0x4415a1)continue;const _0x1e8d3d='$graveyard'===_0x4415a1['root']['rootName'];_0x1e8d3d||(_0x4415a1=dt(_0x4415a1,_0x5b4010['model']),!_0x4415a1||_0x4415a1['isCollapsed']||!_0x518382['newRange']||_0x4415a1['isEqual'](_0x518382['newRange']))?_0x5b4010['model']['hasContent'](_0x4415a1)&&!_0x1e8d3d?this['isThreadsLoadingPaused']?_0x160395['add'](_0xa5b7ac):this['_handleThreadMarker'](_0xa5b7ac,_0x386e2a):(_0x526328['add'](_0xa5b7ac),_0x160395['delete'](_0xa5b7ac),_0x5a20a8['removeMarker'](_0xa5b7ac),_0x57ef8d=!0x0):(_0x5a20a8['updateMarker'](_0xa5b7ac,{'range':_0x4415a1}),_0x57ef8d=!0x0);}return _0x57ef8d;}),this['on']('change:isThreadsLoadingPaused',(_0xe06c67,_0x4d8488,_0xb4b5d6)=>{if(!_0xb4b5d6&&_0x160395['size'])for(const _0x5277a3 of _0x160395){const {id:_0x2de6cc}=er(_0x5277a3);_0x160395['delete'](_0x5277a3),_0x5b4010['model']['markers']['get'](_0x5277a3)&&this['_handleThreadMarker'](_0x5277a3,_0x2de6cc);}}),this['listenTo'](_0x5b4010['model']['document'],'change',()=>{for(const {name:_0x3210f8,data:{newRange:_0x5291b0}}of _0x5b4010['model']['document']['differ']['getChangedMarkers']()){const {group:_0x59ebe6,id:_0x3043be}=er(_0x3210f8);if('comment'!==_0x59ebe6)continue;const _0x386f12=_0x55c5d0['getCommentThread'](_0x3043be),_0x3dfb3b=this['hasMarkerForId'](_0x3043be);_0x386f12&&(!_0x386f12['_hasTargetInContent']&&_0x5291b0&&_0x5b4010['editing']['view']['once']('render',()=>{const _0x5e665e=_0x5b4010['plugins']['get'](O),_0x455f9d=_0x55c5d0['_threadToController']['get'](_0x386f12)['view'];_0x5e665e['getByInnerView'](_0x455f9d)['refreshVisibility']();},{'priority':'low'}),_0x386f12['_hasTargetInContent']=_0x3dfb3b||!!_0x5291b0),_0x5291b0||(_0x526328['add'](_0x3210f8),_0x160395['delete'](_0x3210f8));}for(const _0x399285 of _0x526328){const {id:_0x37fff9}=er(_0x399285),_0x1cf54c=_0x55c5d0['getCommentThread'](_0x37fff9);if(_0x160395['delete'](_0x399285),!_0x1cf54c)continue;const _0x3ffca5=this['hasMarkerForId'](_0x37fff9);_0x3ffca5||_0x1cf54c['isSubmitted']?_0x3ffca5||_0x1cf54c['unlinkedAt']||_0x1cf54c['setUnlinkedAt'](new Date()):_0x1cf54c['remove']();}_0x526328['clear']();});}['_handleInitialThreads'](_0x20e5df){_0x20e5df['forEach'](_0x14951e=>{_0x14951e['unlinkedAt']&&this['_attachArchivedThread'](_0x14951e['id']);});}['_getTargetForId'](_0x5bca8f){const _0x2161cd=this['editor'],_0x1cea7a=this['getAllMarkersForId'](_0x5bca8f);return et(_0x2161cd['editing'],_0x1cea7a);}['_getTextContext'](_0x5d4dd8){const _0x390a4b=this['getAllMarkersForId'](_0x5d4dd8);let _0xe86838='',_0x3881fd=!0x1;for(const _0x11bea3 of _0x390a4b){const _0x413c65=_0x11bea3['getRange']();for(const _0x5e44d6 of Array['from'](_0x413c65['getItems']()))_0x5e44d6['is']('$textProxy')?(_0xe86838&&_0x3881fd&&(_0xe86838+='\x20',_0x3881fd=!0x1),_0xe86838+=_0x5e44d6['data']):_0x3881fd=!0x0;_0x3881fd=!0x0;}return _0xe86838['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4ae236,_0xdc271b){const _0x557c70=this['editor'],_0x119ff3=_0x557c70['plugins']['get'](o);let _0xceb6fa=_0x119ff3['getCommentThread'](_0xdc271b);const _0x5655f5=_0x557c70['config']['get']('collaboration.channelId'),_0x5601ed=_0x557c70['plugins']['get'](P);if(_0xceb6fa&&(_0xceb6fa['unlinkedAt']&&_0xceb6fa['setUnlinkedAt'](null),_0xceb6fa['isAttached']))return _0xceb6fa;return!this['getAllMarkersForId'](_0xdc271b)[0x0]['managedUsingOperations']?_0x557c70['editing']['view']['once']('render',()=>{if(_0x119ff3['getCommentThread'](_0xdc271b))return;const _0x3a5522=_0x557c70['plugins']['get'](O);_0xceb6fa=_0x119ff3['openNewCommentThread']({'channelId':_0x5655f5,'threadId':_0xdc271b,'target':()=>this['_getTargetForId'](_0xdc271b),'context':{'type':'text','value':this['_getTextContext'](_0xdc271b)}});const _0x5eb46a=_0x119ff3['_threadToController']['get'](_0xceb6fa)['view'],_0x127cd4=_0x3a5522['getByInnerView'](_0x5eb46a);_0x127cd4&&_0x5601ed['registerAnnotation'](_0x127cd4);},{'priority':'low'}):_0x119ff3['fetchCommentThread']({'channelId':_0x5655f5,'threadId':_0xdc271b})['then'](_0x3ba8b8=>{if('destroyed'!==_0x557c70['state']){if(_0xceb6fa=_0x3ba8b8,_0xceb6fa&&!_0xceb6fa['isAttached']){const _0x108334=_0xceb6fa['attachTo'](()=>this['_getTargetForId'](_0xdc271b));_0x5601ed['registerAnnotation'](_0x108334),_0xceb6fa['isResolved']&&this['_reconvertMarkers'](_0xdc271b);}else{if(!_0xceb6fa){const _0x430b28=this['getAllMarkersForId'](_0xdc271b);_0x557c70['model']['change'](_0x59974c=>{for(const _0x6457aa of _0x430b28)_0x59974c['removeMarker'](_0x6457aa);});}}}}),_0xceb6fa;}['_handleThreadMarker'](_0x381f09,_0xde8ad6){const _0x99fecf=this['_attachMarkerToThread'](_0x381f09,_0xde8ad6);_0x99fecf&&!_0x99fecf['context']&&_0x99fecf['setContext']({'type':'text','value':this['_getTextContext'](_0xde8ad6)});}['_initAriaMarkerChangeAnnouncements'](){const _0x25d857=this['editor'];ot(_0x25d857['model'],({left:_0x51b42b,entered:_0x505726})=>{for(const _0x333a5c of _0x51b42b)if(mt(_0x333a5c)){_0x25d857['ui']['ariaLiveAnnouncer']['announce'](E(_0x25d857['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x39bc61 of _0x505726)if(mt(_0x39bc61)){_0x25d857['ui']['ariaLiveAnnouncer']['announce'](E(_0x25d857['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x357028)));break;}});}}function ft(_0x313e37,_0x4c4cc8){return _0x4c4cc8?_0x313e37+':'+_0x4c4cc8:_0x313e37;}function er(_0x279b41){const _0x2698cd=_0x279b41['split'](':');return{'group':_0x2698cd[0x0],'id':_0x2698cd[0x1],'part':_0x2698cd[0x2]};}function dt(_0x5c7921,_0x4f2ec3){const _0x2fbddb=_0x4f2ec3['schema'],_0x53dccd=_0x4f2ec3['createRange'](_0x5c7921['start']);for(const _0x10051f of _0x5c7921['getWalker']()){const {type:_0x7f38ab,item:_0x55826f,nextPosition:_0x24416e}=_0x10051f;if('text'===_0x7f38ab||_0x2fbddb['isObject'](_0x55826f)){const _0x2971fa=_0x4f2ec3['createPositionBefore'](_0x55826f);_0x53dccd['isCollapsed']&&(_0x53dccd['start']=_0x2971fa),_0x53dccd['end']=_0x24416e;}}return _0x53dccd;}function mt(_0xbdf928){return'comment'===er(_0xbdf928['name'])['group'];}class i extends _0x3e155f{['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 _0x390bfb=this['editor'],_0x5b6965=_0x390bfb['plugins']['get'](o),_0x449236=_0x390bfb['plugins']['get'](r),_0x9eb382=_0x390bfb['plugins']['get'](O),_0x178eb8=_0x390bfb['plugins']['get'](P);_0x390bfb['ui']['componentFactory']['add']('comment',()=>{const _0x3330b3=this['_createUIButton'](_0x5ae41a);return _0x3330b3['tooltip']=!0x0,_0x3330b3;}),_0x390bfb['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x39588d)),_0x178eb8['addSourceCollector'](()=>{const _0x1c5f85=[];for(const [_0x247a43,_0x2b0b33]of _0x5b6965['_threadToController']){const _0xbc1c83=_0x449236['getAllMarkersForId'](_0x247a43['id']),_0xa43dfc=_0xbc1c83['map'](_0x16003b=>_0x16003b['getRange']());_0xbc1c83['length']>0x0&&_0x1c5f85['push']([_0x2b0b33['view'],_0xa43dfc]);}return _0x1c5f85;}),this['listenTo'](_0x9eb382,'change:activeAnnotations',(_0x57eb33,_0x216a5e,_0x54f651)=>{const _0x22b906=Array['from'](_0x54f651)['map'](_0xfe2c8d=>_0xfe2c8d['innerView'])['find'](_0x4b0d64=>_0x5b6965['_viewToController']['has'](_0x4b0d64));if(!_0x22b906)return void(_0x449236['activeMarker']=null);const _0x1a88f4=_0x5b6965['_viewToController']['get'](_0x22b906)['model']['id'],_0x1ac4b3='comment:'+_0x1a88f4;_0x1a88f4&&_0x449236['hasMarkerForId'](_0x1a88f4)?_0x449236['activeMarker']=_0x1ac4b3:_0x449236['activeMarker']&&(_0x449236['activeMarker']=null);}),this['listenTo'](_0x5b6965,'removeCommentThread',(_0x296a6e,{threadId:_0x7a72aa,isFromAdapter:_0x20a71d})=>{!_0x20a71d&&_0x390bfb['ui']['focusTracker']['isFocused']&&_0x449236['hasMarkerForId'](_0x7a72aa)&&_0x390bfb['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x5b6965,'addComment',(_0x58d9c8,{threadId:_0x4d78e8,isFromAdapter:_0x1cb4df})=>{if(_0x1cb4df||!_0x449236['hasMarkerForId'](_0x4d78e8)||!_0x5b6965['hasCommentThread'](_0x4d78e8))return;0x1===_0x5b6965['getCommentThread'](_0x4d78e8)['length']&&(_0x390bfb['editing']['view']['focus'](),_0x58d9c8['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2e0b42=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29bc1b;for(const _0x16359c in _0x2e0b42){const _0xed0b5a=_0x16359c,_0xb0265=_0x2e0b42[_0xed0b5a];if('commentsLicenseKeyValid'==_0xb0265||'commentsLicenseKeyInvalid'==_0xb0265||'commentsLicenseKeyExpired'==_0xb0265||'commentsLicenseKeyDomainLimit'==_0xb0265||'commentsLicenseKeyNotAllowed'==_0xb0265||'commentsLicenseKeyEvaluationLimit'==_0xb0265||'commentsLicenseKeyTrialLimit'==_0xb0265||'commentsLicenseKeyUsageLimit'==_0xb0265){delete _0x2e0b42[_0xed0b5a],_0x29bc1b=_0xb0265,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x243186){const _0xb91d52=this['editor'],_0x29fbee=new _0x243186(_0xb91d52['locale']),_0x81fae1=_0xb91d52['commands']['get']('addCommentThread');return _0x29fbee['set']({'label':E(_0xb91d52['locale'],'Comment'),'icon':_0x5dec5b}),_0x29fbee['bind']('isEnabled')['to'](_0x81fae1),this['listenTo'](_0x29fbee,'execute',()=>{_0x81fae1['execute']();}),_0x29fbee;}}class s extends _0x3e155f{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1eb38e){super(_0x1eb38e),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x118974,_0x26b7d7,_0x1ce07b)=>{_0x1ce07b?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x283259,_0x2d1420]of this['editor']['commands'])_0x2d1420['affectsData']&&'addCommentThread'!==_0x283259&&_0x2d1420['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 _0x121d7c=this['editor']['editing']['view']['document'];this['listenTo'](_0x121d7c,'cut',_0x59e6a2=>_0x59e6a2['stop'](),{'priority':'highest'}),this['listenTo'](_0x121d7c,'clipboardInput',_0x58e5a5=>_0x58e5a5['stop'](),{'priority':'highest'}),this['listenTo'](_0x121d7c,'delete',_0x22b206=>_0x22b206['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x30fc03,_0x11fdfc]of this['editor']['commands'])_0x11fdfc['affectsData']&&'addCommentThread'!==_0x30fc03&&_0x11fdfc['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 _0x3c22fb{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58dbb8){super(_0x58dbb8),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x46ac75=this['context']['plugins']['get'](O);this['listenTo'](_0x46ac75,'_activateAnnotation',(_0x3d375d,_0x94e3ee)=>{for(const _0x4c5df7 of this['activeUIs']){const _0xcefe97=this['_uis']['get'](_0x4c5df7);(0x0,this['uisData']['get'](_0x4c5df7)['filter'])(_0x94e3ee)&&_0xcefe97['setActiveAnnotation'](_0x94e3ee);}}),this['listenTo'](_0x46ac75,'_deactivateAllAnnotations',()=>{for(const _0x1c2098 of this['activeUIs']){this['_uis']['get'](_0x1c2098)['setActiveAnnotation'](null);}}),this['listenTo'](_0x46ac75['_visibleAnnotations'],'add',(_0x303837,_0xb60e6e)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xb60e6e);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x332850){return this['activeUIs']['has'](_0x332850);}['activate'](_0x4068a4,_0x3e5355=this['defaultFilter']){const _0x576c01=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x4068a4))throw new _0x369546('annotationsuis-missing-ui',this,{'uiName':_0x4068a4});this['isActive'](_0x4068a4)&&this['deactivate'](_0x4068a4),this['activeUIs']['add'](_0x4068a4);const _0x12d9fb=new _();!function({source:_0x8c94df,target:_0x515610,filter:_0x4e381d}){for(const _0x214bd2 of _0x8c94df)_0x4e381d(_0x214bd2)&&_0x515610['add'](_0x214bd2);_0x515610['listenTo'](_0x8c94df,'add',(_0x1a70ce,_0x3feabc)=>{_0x4e381d(_0x3feabc)&&_0x515610['add'](_0x3feabc);}),_0x515610['listenTo'](_0x8c94df,'remove',(_0x344fe1,_0x4fab3d)=>{_0x515610['has'](_0x4fab3d)&&_0x515610['remove'](_0x4fab3d);});}({'source':_0x576c01['_visibleAnnotations'],'target':_0x12d9fb,'filter':_0x3e5355}),this['uisData']['set'](_0x4068a4,{'collection':_0x12d9fb,'filter':_0x3e5355});const _0x5bdde6=this['_uis']['get'](_0x4068a4);_0x5bdde6['attach'](_0x12d9fb),this['listenTo'](_0x5bdde6,'change:activeAnnotation',(_0x5a322d,_0x199e91,_0x3f058e,_0xfe5ab1)=>{_0xfe5ab1&&_0x576c01['_removeActiveAnnotation'](_0xfe5ab1),_0x3f058e&&_0x576c01['_addActiveAnnotation'](_0x3f058e);});}['deactivate'](_0x55d819){if(this['activeUIs']['delete'](_0x55d819),!this['_uis']['has'](_0x55d819))throw new _0x369546('annotationsuis-missing-ui',this,{'uiName':_0x55d819});const _0x47749c=this['_uis']['get'](_0x55d819);_0x47749c['detach'](),this['stopListening'](_0x47749c),this['uisData']['get'](_0x55d819)['collection']['destroy'](),this['uisData']['delete'](_0x55d819);}['switchTo'](_0x35575f){if(!this['_uis']['has'](_0x35575f))throw new _0x369546('annotationsuis-missing-ui',this,{'uiName':_0x35575f});const _0x59582a=this['context']['plugins']['get'](O),_0x57857e=Array['from'](_0x59582a['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x35575f);const _0x3a97a4=this['_uis']['get'](_0x35575f);_0x3a97a4['setActiveAnnotation'](_0x57857e),_0x3a97a4['_setSelectedAnnotations']&&_0x57857e&&_0x3a97a4['_setSelectedAnnotations']([_0x57857e]);}['deactivateAll'](){for(const _0x4422f2 of this['activeUIs'])this['deactivate'](_0x4422f2);}['register'](_0x5e173f,_0xa51369){if(this['_uis']['has'](_0x5e173f))throw new _0x369546('annotationsuis-register-already-registered');if('function'!=typeof _0xa51369['attach']||'function'!=typeof _0xa51369['detach']||'function'!=typeof _0xa51369['setActiveAnnotation'])throw new _0x369546('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5e173f,_0xa51369);}['refilterAnnotations'](){const _0x45e983=this['context']['plugins']['get'](O)['collection'],_0x45a974=new Map(),_0x223ccc=Array['from'](this['activeUIs']);for(const _0x536047 of this['activeUIs']){const _0x4a5d5f=this['uisData']['get'](_0x536047)['collection'];for(const _0x10cbb7 of _0x4a5d5f)_0x45a974['set'](_0x10cbb7,_0x536047);}for(const _0x1f9759 of _0x45e983){const _0x464494=_0x45a974['get'](_0x1f9759);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1f9759);const _0x37cb45=_0x223ccc['find'](_0x5c05b2=>this['uisData']['get'](_0x5c05b2)['filter'](_0x1f9759));_0x464494!==_0x37cb45&&(_0x464494&&this['uisData']['get'](_0x464494)['collection']['remove'](_0x1f9759),_0x37cb45&&this['uisData']['get'](_0x37cb45)['collection']['add'](_0x1f9759));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1c05dd){const _0xb5e53c=[];for(const _0x227166 of this['activeUIs']){(0x0,this['uisData']['get'](_0x227166)['filter'])(_0x1c05dd)&&_0xb5e53c['push'](_0x227166);}if(_0xb5e53c['length']>0x1)throw new _0x369546('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xb5e53c,'annotationType':_0x1c05dd['type']});}}const pi=xt('px');class F extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5cdb14){super(_0x5cdb14);const _0x38a456=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 _0x4b4d8d(),this['focusCycler']=new _0x12ac84({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x38a456['to']('class')],'style':{'minHeight':_0x38a456['to']('minHeight',_0x5c1843=>'number'==typeof _0x5c1843?pi(_0x5c1843+0xa):null)},'dir':_0x5cdb14['uiLanguageDirection'],'role':'application','aria-label':E(_0x5cdb14,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x5cdb14,'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',_0x552d8e=>{this['_updateItemPositionInFocusables'](_0x552d8e['source']);}),this['list']['forEach'](_0x49c327=>{this['focusTracker']['add'](_0x49c327['element']),this['_updateItemPositionInFocusables'](_0x49c327);}),this['list']['on']('change',(_0x2b1d8e,_0x27e4ef)=>{for(const _0x1e543b of _0x27e4ef['removed'])this['focusTracker']['remove'](_0x1e543b['element']),this['focusables']['remove'](_0x1e543b);for(const _0xaf5ea0 of _0x27e4ef['added'])this['focusTracker']['add'](_0xaf5ea0['element']),this['_updateItemPositionInFocusables'](_0xaf5ea0);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x37cd81){const _0x290209=this['focusables']['getIndex'](_0x37cd81);let _0x1006fb,_0x331cb8;for(const _0x4db088 of this['focusables'])if(_0x37cd81['top']<_0x4db088['top']){_0x1006fb=_0x4db088;break;}if(_0x331cb8=_0x1006fb?this['focusables']['getIndex'](_0x1006fb):this['focusables']['length'],-0x1!==_0x290209){if(_0x290209===_0x331cb8-0x1)return;this['focusables']['remove'](_0x37cd81),_0x331cb8=_0x1006fb?this['focusables']['getIndex'](_0x1006fb):this['focusables']['length'];}this['focusables']['add'](_0x37cd81,_0x331cb8);}}const Ht=xt('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x589a6d){super(_0x589a6d),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x31a39a,_0x3cfaa4)=>_0x31a39a+_0x3cfaa4),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x59a15c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x59a15c['to']('isAnimationDisabled',_0x5e4e4c=>_0x5e4e4c?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x59a15c['to']('top',_0x83705d=>Ht(_0x83705d))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x2c6b78=this['element']['clientHeight'];_0x2c6b78&&(this['height']=_0x2c6b78);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x3c22fb{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1cc4ee){super(_0x1cc4ee),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 _0x30c005=this['context']['config']['get']('sidebar.container');_0x30c005&&this['setContainer'](_0x30c005);}['setContainer'](_0x13e7ab){if(!y(_0x13e7ab))throw new _0x369546('sidebar-setcontainer-invalid-element');this['container']=_0x13e7ab;}['_attachToContainer']({viewClass:_0x561c55='',spaceBetweenItems:_0x51e86f=0x19}={}){if(!y(this['container']))throw new _0x369546('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x561c55,this['_spaceBetweenItems']=_0x51e86f;}['rearrange']({removedAnnotation:_0x1304ee,previousAnnotation:_0xf6e052,nextAnnotation:_0x2f0e58}){const _0xb1fbe=this['getSidebarItemView'](_0x1304ee);this['view']['list']['remove'](_0xb1fbe),this['_destroySidebarItemView'](_0x1304ee),_0xf6e052&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xf6e052)),_0x2f0e58&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2f0e58)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2a0d90,activatedAnnotation:_0xce8e32,disableAnimationOnActivatedAnnotation:_0x1ffda1}){if(this['_activeAnnotation']=_0xce8e32,_0x2a0d90){_0x2a0d90['isActive']=!0x1;const _0x1304d0=this['getSidebarItemView'](_0x2a0d90);_0x1304d0&&_0x1ffda1&&(_0x1304d0['isAnimationDisabled']=!0x1);}if(_0xce8e32){const _0x43ba0e=this['getSidebarItemView'](_0xce8e32);_0x43ba0e&&(_0xce8e32['isActive']=!0x0,_0x1ffda1&&(_0x43ba0e['isAnimationDisabled']=!0x0,_0x43ba0e['top']+=0x1),this['_alignToTargetRect'](_0x43ba0e));}}['_detachFromContainer'](_0x281f2b){if(this['view']['element']['remove'](),_0x281f2b){for(const _0x4871df of _0x281f2b)this['_destroySidebarItemView'](_0x4871df);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x58bd83,_0x434102){_0x434102||(_0x434102=_0x58bd83['view']);const _0x44954e=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x44954e,_0x58bd83),this['_annotationToSidebarItemView']['set'](_0x58bd83,_0x44954e),_0x44954e['content']['add'](_0x434102),this['listenTo'](_0x58bd83['view'],'change:targetRect',(_0x5a5f6f,_0x1227fd,_0x49414e)=>{const _0x85dcb1=this['_getTargetTop'](_0x58bd83,_0x49414e);_0x44954e['_targetTop']!=_0x85dcb1&&(_0x44954e['_targetTop']=_0x85dcb1,this['_setItemTop'](_0x44954e,_0x85dcb1));}),this['listenTo'](_0x44954e,'change:top',()=>{this['_recalculate'](_0x44954e,'top');}),this['listenTo'](_0x44954e,'change:bottom',()=>{this['_recalculate'](_0x44954e,'bottom');}),this['_alignToTargetRect'](_0x44954e);const _0x586e62=this['_getItemBefore'](_0x44954e);if(_0x586e62)this['_alignAfterItem'](_0x586e62,_0x44954e)||this['_alignToTargetRect'](_0x44954e);else this['_alignToTargetRect'](_0x44954e);return this['_updateLastItem'](),this['view']['list']['add'](_0x44954e),_0x44954e;}['_alignForTopChange'](_0x3f240e){if(!_0x3f240e['content']['length'])return;const _0x32a720=this['_getItemBefore'](_0x3f240e);if(!_0x32a720)return;const _0x52a98d=this['_sidebarItemViewToAnnotation']['get'](_0x32a720),_0x269f40=this['_activeAnnotation'];_0x269f40&&_0x269f40===_0x52a98d?this['_alignAfterItem'](_0x32a720,_0x3f240e):this['_alignBeforeItem'](_0x3f240e,_0x32a720);}['_alignForBottomChange'](_0x112e2a){if(!_0x112e2a['content']['length'])return;const _0x26842e=this['_getItemAfter'](_0x112e2a);if(!_0x26842e)return;const _0x3d20ca=this['_sidebarItemViewToAnnotation']['get'](_0x26842e),_0x5dee4c=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x3e6bd9=this['_activeAnnotation'];_0x3e6bd9&&_0x3e6bd9===_0x3d20ca&&_0x5dee4c?(this['_alignBeforeItem'](_0x26842e,_0x112e2a),this['_alignAfterItem'](_0x112e2a,_0x26842e)):_0x3e6bd9&&_0x3e6bd9===_0x3d20ca?this['_alignBeforeItem'](_0x26842e,_0x112e2a):this['_alignAfterItem'](_0x112e2a,_0x26842e);}['_recalculate'](_0x226eb3,_0x21e9eb){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5e8b78,changedProp:_0x150697}of this['_recalculateBuffer'])'top'===_0x150697?this['_alignForTopChange'](_0x5e8b78):this['_alignForBottomChange'](_0x5e8b78);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x226eb3,'changedProp':_0x21e9eb});}['getSidebarItemView'](_0x84b087){return this['_annotationToSidebarItemView']['get'](_0x84b087);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4fb75a){const _0x126d64=this['getSidebarItemView'](_0x4fb75a);this['stopListening'](_0x126d64),this['stopListening'](_0x4fb75a['view']),_0x126d64['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4fb75a),this['_sidebarItemViewToAnnotation']['delete'](_0x126d64);}['_createSidebarView'](){const _0x39bb02=new F(this['context']['locale']);return _0x39bb02['render'](),this['on']('change:_lastItem',(_0x392077,_0x3e0407,_0x494752,_0x36a286)=>{_0x36a286&&_0x39bb02['unbind']('minHeight'),_0x494752?_0x39bb02['bind']('minHeight')['to'](_0x494752,'bottom'):_0x39bb02['minHeight']=null;}),_0x39bb02;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x58e3f9){const _0x3b7c80=this['_sidebarItemViewToAnnotation']['get'](_0x58e3f9),_0x59bc6e=_0x3b7c80&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3b7c80)-0x1);return _0x59bc6e&&this['getSidebarItemView'](_0x59bc6e)||null;}['_getItemAfter'](_0x171c86){const _0x404f9a=this['_sidebarItemViewToAnnotation']['get'](_0x171c86),_0x8a202c=_0x404f9a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x404f9a)+0x1);return _0x8a202c&&this['getSidebarItemView'](_0x8a202c)||null;}['_alignBeforeItem'](_0x583a2e,_0x227bd8){_0x583a2e['updateHeight']();const _0x1dd7b3=R(_0x227bd8['bottom']+this['_spaceBetweenItems'],_0x583a2e['top']);return!!_0x1dd7b3&&(this['_setItemTop'](_0x227bd8,_0x227bd8['top']-_0x1dd7b3),!0x0);}['_alignAfterItem'](_0x14a19b,_0x58e18c){_0x14a19b['updateHeight']();const _0xb91480=R(_0x14a19b['bottom']+this['_spaceBetweenItems'],_0x58e18c['top']);return!!_0xb91480&&(this['_setItemTop'](_0x58e18c,_0x58e18c['top']+_0xb91480,!0x1),!0x0);}['_alignToTargetRect'](_0x5bb595){const _0x1f5624=this['_sidebarItemViewToAnnotation']['get'](_0x5bb595);if(!_0x1f5624||!_0x1f5624['target']||!_0x1f5624['targetRect'])return;const _0x463c9a=this['_getTargetTop'](_0x1f5624,_0x1f5624['targetRect']);this['_setItemTop'](_0x5bb595,_0x463c9a);}['_getTargetTop'](_0x2dfe6f,_0x4c9687){if(null===_0x4c9687)return 0x0;if(_0x2dfe6f['target']instanceof _0x44e78c)return _0x4c9687['top'];{const _0x586e31=new _0x44e78c(this['view']['element'])['top'];return _0x4c9687['top']-_0x586e31;}}['_setItemTop'](_0x10e6e0,_0x15e962,_0x1756b8=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1756b8&&(_0x15e962=Math['max'](_0x15e962,this['_getMaxAvailableTop'](_0x10e6e0))),_0x10e6e0['top']=_0x15e962;}['_getMaxAvailableTop'](_0x4d4f56){let _0x5dffe9=this['_getItemBefore'](_0x4d4f56),_0x27e778=0x0;for(;_0x5dffe9;)_0x5dffe9['updateHeight'](),_0x27e778+=this['_spaceBetweenItems']+_0x5dffe9['height'],_0x5dffe9=this['_getItemBefore'](_0x5dffe9);return _0x27e778;}}function R(_0x430b69,_0x25ded7){return Math['max'](_0x430b69-_0x25ded7,0x0);}function y(_0x308a8b){return null!==_0x308a8b&&'object'==typeof _0x308a8b&&0x1===_0x308a8b['nodeType'];}class e extends _0x3c22fb{['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(_0xe68b8a){super(_0xe68b8a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x508354(),this['_refreshPositioningDebounced']=_0xaf86be(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0xbb851e=this['context']['plugins']['get'](M),_0xc604b0=this['context']['plugins']['get'](z);_0xbb851e['register']('wideSidebar',this),_0xc604b0['container']&&_0xbb851e['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x14747e){if(_0x14747e===this['activeAnnotation'])return;const _0x17e473=this['context']['plugins']['get'](z);_0x17e473['_activeAnnotation']=_0x14747e;const _0x440d0c=this['activeAnnotation'];_0x17e473['refresh']({'blurredAnnotation':_0x440d0c,'activatedAnnotation':_0x14747e}),this['activeAnnotation']=_0x14747e;}['attach'](_0x210c3e){this['annotations']=_0x210c3e;const _0x2cf641=this['context']['plugins']['get'](z);if(_0x2cf641['_annotations']=_0x210c3e,this['isAttached'])throw new _0x369546('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2cf641,'set:container',()=>{this['detach'](),this['listenTo'](_0x2cf641,'change:container',_0x19c082=>{_0x19c082['off'](),this['attach'](_0x210c3e);});}),_0x2cf641['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x5cb994=_0x350db7=>{_0x350db7['updateTargetRect'](),_0x2cf641['addAnnotation'](_0x350db7);};for(const _0x278980 of _0x210c3e)_0x5cb994(_0x278980);this['listenTo'](_0x210c3e,'add',(_0x1b8ef3,_0x4710cc)=>{_0x5cb994(_0x4710cc);}),this['listenTo'](_0x210c3e,'remove',(_0x499079,_0x2ac414,_0x1ff13e)=>{_0x2cf641['rearrange']({'removedAnnotation':_0x2ac414,'previousAnnotation':_0x210c3e['get'](_0x1ff13e-0x1),'nextAnnotation':_0x210c3e['get'](_0x1ff13e+0x1)}),_0x2ac414===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x210c3e,'focus',(_0x3ea377,_0x518df6)=>{this['setActiveAnnotation'](_0x518df6);}),this['listenTo'](_0x210c3e,'blur',()=>{this['setActiveAnnotation'](null);});const _0xec25ed=this['context']instanceof _0x49d7c6?this['context']['editors']:new _0x508354([this['context']]);for(const _0x593236 of _0xec25ed)this['_integrateWithEditorAnnotations'](_0x593236);this['listenTo'](_0xec25ed,'add',(_0xeb55c4,_0x2eec4f)=>{this['listenTo'](_0x2eec4f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2eec4f);});}),this['listenTo'](_0xec25ed,'remove',(_0x17e0cb,_0x3879d4)=>{_0x3879d4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3879d4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x369546('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5f0cb2=this['context']['plugins']['get'](z);_0x5f0cb2['_detachFromContainer'](this['annotations']),this['stopListening'](_0x5f0cb2),this['stopListening'](this['annotations']),this['context']instanceof _0x49d7c6&&this['stopListening'](this['context']['editors']);for(const _0x395848 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x395848);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x3777fc){if(!_0x3777fc['plugins']['has']('EditorAnnotations'))return;const _0x393ff1=_0x3777fc['plugins']['get']('EditorAnnotations'),_0x50afd9=()=>{const _0x3b119e=_0x393ff1['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3b119e[0x0]||null);};this['listenTo'](_0x393ff1,'refresh',_0x50afd9),this['listenTo'](_0x393ff1,'blur',(_0x363a66,{isAnnotationTracked:_0x1544ac})=>{this['activeAnnotation']&&_0x1544ac(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x393ff1,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x35e602=>{_0x393ff1['hasDomSelection']()&&(_0x50afd9(),_0x35e602['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x393ff1);}['_destroyEditorAnnotationsIntegration'](_0x972017){this['stopListening'](_0x972017),this['_editorAnnotations']['remove'](_0x972017);}}class C extends _0x5ae41a{['counterView'];constructor(_0x1acebf){super(_0x1acebf);const _0x3ede35=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1803a8,_0xd05442)=>_0x1803a8?'...':_0xd05442['toString']()),this['set']('annotationType',''),this['icon']=_0x5dec5b,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x3ede35['to']('annotationType',_0x34f4b7=>'ck-annotation-counter__badge--'+_0x34f4b7),_0x3ede35['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3ede35['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x3c22fb{['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(_0x12bbb5){super(_0x12bbb5),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x2ff123),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x508354(),this['_refreshPositioningDebounced']=_0xaf86be(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x3b4750(this['context']['locale']),this['balloonPanelView']=new _0x1e208c(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3f8394){this['annotations']=_0x3f8394;const _0x56c44d=this['context']['plugins']['get'](z),_0x50be61=this['balloonPanelView'];if(_0x56c44d['_annotations']=_0x3f8394,this['isAttached'])throw new _0x369546('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x56c44d,'set:container',()=>{this['detach'](),this['listenTo'](_0x56c44d,'change:container',_0x47ee4b=>{_0x47ee4b['off'](),this['attach'](_0x3f8394);});}),_0x56c44d['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x538e8c=_0x3e5850=>{const _0x4bdeb2=new C(this['context']['locale']);_0x56c44d['addAnnotation'](_0x3e5850,_0x4bdeb2),this['_annotationToNarrowView']['set'](_0x3e5850,_0x4bdeb2),_0x4bdeb2['bind']('isDirty','annotationType','number')['to'](_0x3e5850['view'],'isDirty','type','length'),_0x4bdeb2['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x50be61['content']['first']!==_0x3e5850['view']?(this['_showBalloon'](_0x3e5850),_0x3e5850['view']['element']['focus'](),this['setActiveAnnotation'](_0x3e5850)):this['setActiveAnnotation'](null);});};for(const _0x25c5c5 of _0x3f8394)_0x538e8c(_0x25c5c5);this['listenTo'](_0x3f8394,'add',(_0x2f07c1,_0x4672a3)=>{_0x538e8c(_0x4672a3);}),this['listenTo'](_0x3f8394,'remove',(_0x4b1105,_0x54d8f3,_0x5dcf8d)=>{this['_annotationToNarrowView']['get'](_0x54d8f3)['destroy'](),this['_annotationToNarrowView']['delete'](_0x54d8f3),_0x56c44d['rearrange']({'removedAnnotation':_0x54d8f3,'previousAnnotation':_0x3f8394['get'](_0x5dcf8d-0x1),'nextAnnotation':_0x3f8394['get'](_0x5dcf8d+0x1)}),_0x54d8f3===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3f8394,'focus',(_0x4c51b4,_0xef05b2)=>{this['setActiveAnnotation'](_0xef05b2);}),this['listenTo'](_0x3f8394,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x239a0e,_0x1f02ce)=>{_0x1f02ce['keyCode']===_0x5d23d3['esc']&&_0x50be61['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x50be61['content']['first']),this['_hideBalloon'](),_0x1f02ce['stopPropagation'](),_0x1f02ce['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x172e67,_0x352148)=>{const _0x1739f8=_0x352148['target'];_0x50be61['isVisible']&&_0x50be61['element']['contains'](_0x1739f8)||_0x56c44d['view']['element']['contains'](_0x1739f8)||_0x172e67['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x1e1432=>_0x1e1432['contains'](_0x1739f8))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xf7c6b5=this['context']instanceof _0x49d7c6?this['context']['editors']:new _0x508354([this['context']]);for(const _0xe0123a of _0xf7c6b5)this['_integrateWithEditorAnnotations'](_0xe0123a);this['listenTo'](_0xf7c6b5,'add',(_0x414022,_0x1ae6d4)=>{this['listenTo'](_0x1ae6d4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1ae6d4);});}),this['listenTo'](_0xf7c6b5,'remove',(_0x2ef265,_0x4d91e2)=>{_0x4d91e2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4d91e2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x505038){if(_0x505038===this['activeAnnotation'])return;const _0x17e25e=this['context']['plugins']['get'](z);if(_0x17e25e['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x505038,'disableAnimationOnActivatedAnnotation':!0x0}),_0x505038)_0x17e25e['getSidebarItemView'](_0x505038)?this['_showBalloon'](_0x505038):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x505038;}['detach'](){if(!this['isAttached'])throw new _0x369546('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3d2a5d=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x478bf2=>_0x478bf2['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3d2a5d['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x49d7c6&&this['stopListening'](this['context']['editors']);for(const _0x22db69 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x22db69);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'](_0x348776){if(!_0x348776['plugins']['has']('EditorAnnotations'))return;const _0x569259=_0x348776['plugins']['get']('EditorAnnotations'),_0x1f1738=this['context']['plugins']['get'](z),_0x18b8c8=this['annotations'],_0x5edce7=this['balloonPanelView'],_0x174a61=()=>{const _0x53890b=_0x569259['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x53890b),this['setActiveAnnotation'](_0x53890b[0x0]||null);};this['listenTo'](_0x569259,'refresh',_0x174a61),this['listenTo'](_0x569259,'blur',(_0x146e70,{isAnnotationTracked:_0x51b45a})=>{this['activeAnnotation']&&_0x51b45a(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x569259,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x18b8c8,'blur',_0x29bc2f=>{_0x569259['hasDomSelection']()&&_0x29bc2f['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x12dd7d,_0x5afd48)=>{const _0xe40224=_0x5afd48['target'];_0x5edce7['isVisible']&&_0x5edce7['element']['contains'](_0xe40224)||_0x1f1738['view']['element']['contains'](_0xe40224)||this['activeAnnotation']&&_0x569259['hasDomSelection']()&&(_0x174a61(),_0x12dd7d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x569259);}['_destroyEditorAnnotationsIntegration'](_0x202550){_0x202550&&(this['stopListening'](_0x202550),this['_editorAnnotations']['remove'](_0x202550));}['_setSelectedAnnotations'](_0xca57f4){for(const _0x4be5fd of this['_selectedAnnotations'])_0xca57f4['includes'](_0x4be5fd)||this['_manuallyClosedAnnotationViews']['delete'](_0x4be5fd['view']);this['_selectedAnnotations']=_0xca57f4;}['_refreshPositioning'](){const _0x2ba47e=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x2ba47e['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x59072d){if(this['_manuallyClosedAnnotationViews']['has'](_0x59072d['view']))return;const _0x35d02e=this['balloonPanelView']['content']['first'];_0x35d02e!==_0x59072d['view']?(_0x35d02e&&this['_detachListeners'](_0x35d02e),this['_attachListeners'](_0x59072d['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x59072d['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x5803ed=this['balloonPanelView']['content']['first'],_0x998deb=_0x5803ed&&this['annotations']['getByView'](_0x5803ed);if(!_0x998deb||!this['_annotationToNarrowView']['has'](_0x998deb))return;const _0x318370=this['_annotationToNarrowView']['get'](_0x998deb)['element'],_0x1279af=(function(){const _0x392964=_0x1e208c['defaultPositions'];return[_0x392964['southArrowNorthEast'],_0x392964['northArrowSouthEast'],_0x392964['southArrowNorth'],_0x392964['northArrowSouth'],_0x392964['southArrowNorthWest'],_0x392964['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x318370,'positions':_0x1279af});}['_hideBalloon'](){const _0x583fcc=this['balloonPanelView'],_0x51e1f6=_0x583fcc['content']['first'];_0x51e1f6&&(this['_detachListeners'](_0x51e1f6),_0x583fcc['unpin'](),_0x583fcc['content']['clear']());}['_attachListeners'](_0x32e946){this['listenTo'](_0x32e946,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x32e946,'Esc',(_0x440adc,_0x3417c3)=>{this['_manuallyClosedAnnotationViews']['add'](_0x32e946),this['_hideBalloon'](),_0x3417c3();});}['_detachListeners'](_0x1eeb32){this['stopListening'](_0x1eeb32);}}class c extends _0x3e155f{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x12283a,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54cbc6){super(_0x54cbc6),_0x54cbc6['editing']['view']['addObserver'](_0x37f8d0),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x54cbc6['plugins']['get'](_0x12283a),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x552bcb=this['editor']['plugins']['get'](M);_0x552bcb['context']===this['editor']&&(_0x552bcb['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x14b228,_0x260200)=>{const _0x357861=this['_balloon'];if(this['isAttached']&&_0x357861['visibleView']){const _0x19f874=this['annotations']['getByView'](_0x357861['visibleView']);_0x19f874&&this['_closeAnnotation'](_0x19f874),_0x260200();}}));}['afterInit'](){const _0x241586=this['editor']['plugins']['get'](M);_0x241586['context']===this['editor']&&(_0x241586['hasActive']()||_0x241586['switchTo']('inline'));}['setActiveAnnotation'](_0x393cb9){_0x393cb9!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x393cb9&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x393cb9)&&this['_addAnnotationToBalloon'](_0x393cb9,!0x0),_0x393cb9['isActive']=!0x0),_0x393cb9||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x393cb9);}['attach'](_0x41d0e8){this['annotations']=_0x41d0e8;const _0x537ce7=this['editor']['plugins']['get'](M),_0x5ceb83=this['_balloon'];if(this['isAttached'])throw new _0x369546('inlineannotations-attach-already-attached',this);if(_0x537ce7['context']!==this['editor'])throw new _0x369546('inlineannotations-not-allowed-with-context',this);const _0x4b51bc=this['editor']['plugins']['get'](P);this['listenTo'](_0x4b51bc,'refresh',()=>{const _0x45a695=_0x4b51bc['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x241824,_0x30e1dc;!this['_forceRefresh']&&(_0x241824=_0x45a695,_0x30e1dc=this['_selectedAnnotations'],_0x241824['length']===_0x30e1dc['length']&&_0x241824['every'](_0x354212=>_0x30e1dc['includes'](_0x354212)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x45a695),this['setActiveAnnotation'](_0x45a695[0x0]||null));}),this['listenTo'](_0x4b51bc,'blur',(_0x35c40c,{isAnnotationTracked:_0x1786f7})=>{this['activeAnnotation']&&_0x1786f7(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2e7674,_0x430126,_0x12329c)=>{_0x12329c||this['setActiveAnnotation'](null);}),this['listenTo'](_0x41d0e8,'remove',(_0x17c7a7,_0x50e91b)=>{this['_removeAnnotationFromBalloon'](_0x50e91b),_0x50e91b===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5ceb83,'change:visibleView',(_0x23ac93,_0x446fd6,_0x29b2d0,_0x346a93)=>{_0x346a93&&this['stopListening'](_0x346a93);const _0x4d751b=_0x41d0e8['getByView'](_0x29b2d0);_0x29b2d0&&_0x4d751b&&(this['listenTo'](_0x29b2d0,'change:height',()=>{_0x5ceb83['updatePosition']();}),this['listenTo'](_0x29b2d0,'Esc',()=>{this['_closeAnnotation'](_0x4d751b),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4d751b&&this['setActiveAnnotation'](_0x4d751b));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5ceb83['visibleView']&&(_0x41d0e8['getByView'](_0x5ceb83['visibleView'])&&_0x5ceb83['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 _0x369546('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4f623b of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4f623b);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x546a4f){for(const _0xac4fe2 of this['_selectedAnnotations'])_0x546a4f['includes'](_0xac4fe2)||this['_manuallyClosed']['delete'](_0xac4fe2);for(const _0x12193f of this['annotations'])_0x546a4f['includes'](_0x12193f)||this['_removeAnnotationFromBalloon'](_0x12193f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0xf20a7d of _0x546a4f)this['_addAnnotationToBalloon'](_0xf20a7d);}this['_selectedAnnotations']=_0x546a4f;}['_addAnnotationToBalloon'](_0x1e2eaf,_0x18481b=!0x1){this['_manuallyClosed']['has'](_0x1e2eaf)||(this['_addedAnnotations']['has'](_0x1e2eaf)||this['_balloon']['hasView'](_0x1e2eaf['view'])||(this['_addedAnnotations']['add'](_0x1e2eaf),this['_balloon']['add']({'stackId':_0x1e2eaf['view']['id'],'view':_0x1e2eaf['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x1e2eaf)}})),_0x18481b&&this['_balloon']['showStack'](_0x1e2eaf['view']['id']));}['_getBalloonTargetForAnnotation'](_0x57a667){const _0x24ee38=_0x57a667['target'],_0x25c76c=this['editor']['editing']['view'],_0xaa11e=_0x25c76c['document']['selection']['getFirstRange'](),_0x43183e=_0x25c76c['domConverter']['viewRangeToDom'](_0xaa11e);if(_0x43183e['collapse'](!0x0),_0x24ee38){if(_0x24ee38 instanceof _0x44e78c)return _0x24ee38;let _0x51e8bb=[];for(const _0x5e84d1 of _0x24ee38)_0x51e8bb['push'](...(_0x5ac9c7=_0x5e84d1['getClientRects'](),Array['from'](_0x5ac9c7)['map'](DOMRect['fromRect'])));_0x51e8bb=function(_0x36d2f9){const _0x1dc275=[];let _0xab033d=_0x36d2f9[0x0];for(let _0x669baf=0x1;_0x669baf<_0x36d2f9['length'];_0x669baf++)B(_0xab033d,_0x36d2f9[_0x669baf])?_0xab033d['width']+=_0x36d2f9[_0x669baf]['width']:(_0x1dc275['push'](_0xab033d),_0xab033d=_0x36d2f9[_0x669baf]);return _0x1dc275['push'](_0xab033d),_0x1dc275;}(_0x51e8bb);const _0x37d5cc=_0x43183e['getBoundingClientRect']();return _0x51e8bb['find'](_0x3228ae=>_0x3228ae['top']<=_0x37d5cc['top']&&_0x3228ae['bottom']>=_0x37d5cc['bottom']&&_0x3228ae['left']<=_0x37d5cc['left']&&_0x3228ae['right']>=_0x37d5cc['right'])||_0x51e8bb[0x0];}var _0x5ac9c7;return _0x57a667['targetRect']||_0x43183e;}['_removeAnnotationFromBalloon'](_0x26b1a7){this['_addedAnnotations']['has'](_0x26b1a7)&&this['_balloon']['hasView'](_0x26b1a7['view'])&&(this['_addedAnnotations']['delete'](_0x26b1a7),this['_balloon']['remove'](_0x26b1a7['view']));}['_closeAnnotation'](_0x4cd9ce){this['_manuallyClosed']['add'](_0x4cd9ce),this['_removeAnnotationFromBalloon'](_0x4cd9ce);}}function B(_0x1d46ed,_0x4507f2){return _0x1d46ed['top']===_0x4507f2['top']&&_0x1d46ed['bottom']===_0x4507f2['bottom']&&_0x1d46ed['right']===_0x4507f2['left'];}class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x9d0589,_0x1154b9){super(_0x9d0589),this['set']('isEmpty',!_0x1154b9['length']),this['focusTracker']=new _0x4b4d8d(),this['_annotationViews']=_0x1154b9,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x12ac84({'focusables':_0x1154b9,'focusTracker':this['focusTracker']}),this['listenTo'](_0x1154b9,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x1154b9,'remove',(_0x1ff43a,_0x558780)=>{_0x558780['isActive']&&this['focus'](),_0x1154b9['length']||(this['isEmpty']=!0x0);});const _0x2cb856=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x9d0589,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x1154b9},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2cb856['if']('isEmpty','ck-hidden',_0x4b04e8=>!_0x4b04e8)]},'children':[{'text':E(_0x9d0589,'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 _0x3eb81c of this['_annotationViews'])this['focusTracker']['add'](_0x3eb81c['element']);this['_annotationViews']['on']('change',(_0x1c0cb4,{added:_0x39078f,removed:_0xe93fe1})=>{for(const _0x2fa897 of _0x39078f)this['focusTracker']['add'](_0x2fa897['element']);for(const _0x11cbf4 of _0xe93fe1)this['focusTracker']['remove'](_0x11cbf4['element']);});}}class f extends _0x3c22fb{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x193198){super(_0x193198),this['archivedThreads']=new _0x508354();}['init'](){const _0x377120=this['context'],_0x1e5aa8=_0x377120['plugins']['get'](o),_0x2214aa=_0x377120['plugins']['get'](O);this['listenTo'](_0x1e5aa8,'addCommentThread',(_0x1a2560,{threadId:_0x38b33c})=>{const _0x13566d=_0x1e5aa8['getCommentThread'](_0x38b33c);_0x13566d['archivedAt']&&this['archivedThreads']['add'](_0x13566d,this['_calculatePosition'](_0x13566d['archivedAt'])),this['listenTo'](_0x13566d,'change:archivedAt',(_0xc9966b,_0x5eb397,_0x2531bc)=>{_0x2531bc?this['archivedThreads']['has'](_0x13566d)||this['archivedThreads']['add'](_0x13566d,this['_calculatePosition'](_0x13566d['archivedAt'])):this['archivedThreads']['has'](_0x13566d)&&this['archivedThreads']['remove'](_0x13566d);});}),this['listenTo'](_0x1e5aa8,'removeCommentThread',(_0x1c41ab,{threadId:_0x239bd4})=>{const _0x5abfe7=_0x1e5aa8['getCommentThread'](_0x239bd4);this['stopListening'](_0x5abfe7),this['archivedThreads']['has'](_0x5abfe7)&&this['archivedThreads']['remove'](_0x5abfe7);},{'priority':'highest'}),this['listenTo'](_0x2214aa['collection'],'focus',(_0x3983e7,_0x5169aa)=>{_0x5169aa['isVisible']||(_0x5169aa['isActive']=!0x0,_0x2214aa['activate'](_0x5169aa));});}['_calculatePosition'](_0x573981){const _0x433c52=[...this['archivedThreads']]['findIndex'](_0x43bedc=>_0x43bedc['archivedAt']<_0x573981);return _0x433c52>-0x1?_0x433c52:this['archivedThreads']['length'];}}class a extends _0x3e155f{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x19a869];}constructor(_0x108425){super(_0x108425),this['annotationViews']=new _0x143e0c(),this['_pendingThreads']=[];}['init'](){const _0x472f5f=this['editor'],_0x544639=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x472f5f['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x5ae41a,!0x0)),_0x472f5f['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3239fb=this['_createCommentsArchiveButton'](_0x39588d);return _0x3239fb['set']({'role':'menuitemcheckbox'}),_0x3239fb;});const _0x625d66=_0x472f5f['plugins']['get'](f),_0x48230f=_0x472f5f['plugins']['get']('Annotations'),_0x50b9e0=_0x472f5f['plugins']['get']('CommentsRepository');_0x625d66['archivedThreads']['forEach'](_0x435812=>{this['_handleNewThread'](_0x435812);}),this['listenTo'](_0x625d66['archivedThreads'],'add',(_0x17fae0,_0x15655a)=>{this['_handleNewThread'](_0x15655a);}),this['listenTo'](_0x48230f['collection'],'add',(_0x38940c,_0x38de32)=>{const _0x308551=this['_pendingThreads']['find'](_0x10b81b=>{const _0x2888e9=_0x50b9e0['_threadToController']['get'](_0x10b81b);return _0x2888e9&&_0x38de32['innerView']===_0x2888e9['view'];});if(_0x308551){const _0x46f9cf=this['_calculatePosition'](_0x308551['archivedAt']);this['annotationViews']['add'](_0x38de32['view'],_0x46f9cf),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x308551),0x1);}}),this['listenTo'](_0x625d66['archivedThreads'],'remove',(_0x3afc6f,_0x50cda7)=>{const _0x73c92f=_0x472f5f['config']['get']('collaboration.channelId');if(!_0x73c92f||_0x50cda7['channelId']===_0x73c92f){if(this['_pendingThreads']['includes'](_0x50cda7))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x50cda7),0x1);else{const _0x23df43=_0x50b9e0['_threadToController']['get'](_0x50cda7),_0x518f50=_0x48230f['getByInnerView'](_0x23df43['view']);this['annotationViews']['remove'](_0x518f50['view']),this['stopListening'](_0x518f50['focusableElements']);}}}),this['listenTo'](_0x48230f['collection'],'add',(_0x16f834,_0x8c2612)=>{this['listenTo'](_0x8c2612,'escape',_0x544639);}),this['listenTo'](_0x48230f['collection'],'remove',(_0x4fcd7b,_0xd3ba00)=>{this['stopListening'](_0xd3ba00,'escape',_0x544639);});}['_handleNewThread'](_0x239e56){const _0x131ff9=this['editor']['plugins']['get']('CommentsRepository'),_0x31a249=this['editor']['plugins']['get']('Annotations'),_0xc3d368=this['editor']['config']['get']('collaboration.channelId');if(!_0xc3d368||_0x239e56['channelId']===_0xc3d368){const _0x6f2628=_0x131ff9['_threadToController']['get'](_0x239e56);if(!_0x6f2628)return void this['_pendingThreads']['push'](_0x239e56);const _0x449c3b=this['_calculatePosition'](_0x239e56['archivedAt']),_0x59246d=_0x31a249['getByInnerView'](_0x6f2628['view']);_0x59246d['isVisible']&&_0x31a249['_visibleAnnotations']['remove'](_0x59246d),this['annotationViews']['add'](_0x59246d['view'],_0x449c3b);}}['_calculatePosition'](_0x32ef68){const _0x319900=this['editor']['config']['get']('collaboration.channelId'),_0x47a632=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x6f4e=>_0x6f4e['channelId']===_0x319900)['findIndex'](_0x4f0aa8=>_0x4f0aa8['archivedAt']<_0x32ef68);return _0x47a632<0x0||_0x47a632>this['annotationViews']['length']?this['annotationViews']['length']:_0x47a632-0x1;}['_toggleDialog'](){const _0xbdffb=this['editor'],_0x119347=_0xbdffb['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0xbdffb['locale'],this['annotationViews'])),'commentsArchive'===_0x119347['id']?_0x119347['hide']():_0x119347['show']({'id':'commentsArchive','title':E(_0xbdffb['locale'],'COMMENTS_ARCHIVE'),'icon':_0x4c7eff,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x513643['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x579a6e,_0x93876b=!0x1){const _0x466624=this['editor']['locale'],_0x510797=this['editor']['plugins']['get']('Dialog'),_0x3d4480=new _0x579a6e(_0x466624);return _0x3d4480['bind']('isEnabled')['to'](this,'isEnabled'),_0x3d4480['bind']('isOn')['to'](_0x510797,'id',_0x1d2e40=>'commentsArchive'===_0x1d2e40),_0x3d4480['set']({'label':E(_0x466624,'COMMENTS_ARCHIVE'),'icon':_0x4c7eff,'isToggleable':!0x0}),_0x93876b&&(_0x3d4480['tooltip']=!0x0),this['listenTo'](_0x3d4480,'execute',()=>this['_toggleDialog']()),_0x3d4480;}['_hideDialogOnAnnotationEscape']=_0x390b61=>{const _0x26a845=_0x390b61['source'];if(!this['annotationViews']['has'](_0x26a845['view']))return;const _0x3b4661=this['editor']['plugins']['get']('Dialog');_0x3b4661['isOpen']&&'commentsArchive'===_0x3b4661['id']&&(_0x3b4661['hide'](),_0x390b61['stop']());};}class p extends _0x3e155f{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 _0x180d0b,ContextPlugin as _0x1318aa,PendingActions as ht,Command as _0x3906d3,Plugin as _0x387cbb,Context as _0x3fe096}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1f969f,uid as _0x437d75,KeystrokeHandler as jt,FocusTracker as _0x1e0a9c,diff as _0xb268bd,Collection as _0x41f317,Rect as _0x521279,CKEditorError as _0x3b16ef,first as _0x338d21,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x12c5b6,keyCodes as _0x16ee43}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x2e8d01,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x165d9b,trimHtml as _0x8bcdb6,LateFocusDropdownButtonView as _0x1b159b,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x10ebc1}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x5d89fe}from'es-toolkit/compat';import{IconUndo as _0x29628a,IconCheck as _0x164183,IconPencil as _0x5ea246,IconRemoveComment as _0xac44fb,IconThreeVerticalDots as _0x7d1dda,IconAddComment as _0x5e46cc,IconCommentsArchive as _0x17f915}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Vt,InlineEditableUIView as $t,EditorUI as Rt,View as kt,FocusCycler as _0x1ca448,ButtonView as _0x5134f9,ViewCollection as _0x4d7b71,createDropdown as _0x4c42d1,ListView as _0x34d210,focusChildOnDropdownOpen as _0x2a5d8c,ListItemView as _0x6b580e,MenuBarMenuListItemButtonView as _0x180ec2,BodyCollection as _0x172d8b,BalloonPanelView as _0x39e067,ContextualBalloon as _0x5f439b,Dialog as _0x2afe41,DialogViewPosition as _0x1c0c65}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x5a2c11}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 _0x298e25}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x43117b}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x1f969f(){['model'];['view'];constructor(_0x46214f,_0x5d31a1){super(),this['model']=_0x46214f,this['model']['_isAttached']=!0x0,this['view']=_0x5d31a1,this['listenTo'](_0x5d31a1,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x5d31a1,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x5d31a1,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x5d31a1,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x5d31a1,'addComment',(_0x2ec2ab,_0x1ab1ca)=>this['addComment'](_0x1ab1ca)),this['listenTo'](_0x5d31a1,'updateComment',(_0x44eeb7,_0x146553,_0x2da9d0)=>this['updateComment'](_0x146553,_0x2da9d0)),this['listenTo'](_0x5d31a1,'removeComment',(_0x58ccfb,_0x38fb32)=>this['removeComment'](_0x38fb32));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x23cef8){this['model']['addComment']({'content':_0x23cef8,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3ef7fb,_0x28be33){this['model']['getComment'](_0x3ef7fb)['update']({'content':_0x28be33});}['removeComment'](_0x125088){this['model']['getComment'](_0x125088)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0xa2cf59,_0x3dc552,_0xa13b2b){const t=_0xa2cf59['t'];switch(_0x3dc552){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'},_0xa13b2b);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'},_0xa13b2b);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'},_0xa13b2b);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'},_0xa13b2b);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0xa13b2b);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'},_0xa13b2b);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'},_0xa13b2b);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'},_0xa13b2b);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(_0x24da8b,_0x2ff5f7){super(_0x24da8b);const _0x52b1e2=_0x437d75();this['main']=this['createCollection'](),this['editable']=new $t(_0x24da8b,_0x2ff5f7,void 0x0,{'label':()=>E(_0x24da8b,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x24da8b['uiLanguageDirection'],'lang':_0x24da8b['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x52b1e2},'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(_0x133659){super(_0x133659),this['view']=new Ut(_0x133659['locale'],_0x133659['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x10c9bf=this['editor']['editing']['view'],_0x2a8024=this['view']['editable'],_0x584da5=_0x10c9bf['document']['getRoot']();_0x2a8024['name']=_0x584da5['rootName'],this['view']['render']();const _0x372a48=_0x2a8024['element'];this['setEditableElement'](_0x2a8024['name'],_0x372a48),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x10c9bf['attachDomRoot'](_0x372a48),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Nt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Qt extends/* #__PURE__ -- @preserve */
25
+ _0x1f969f(_0x180d0b){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Nt)());constructor(_0x55f216={}){function _0xedb00d(_0x5ea659){return _0x5ea659['map'](_0x48692e=>String['fromCharCode'](_0x48692e))['join']('');}(_0x55f216=Object['assign']({},_0x55f216))['plugins']||(_0x55f216['plugins']=Qt['defaultPlugins']),super(_0x55f216),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[_0xedb00d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xedb00d([0x76,0x69,0x65,0x77])][_0xedb00d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xedb00d([0x61,0x75,0x74,0x6f]),this[_0xedb00d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xedb00d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xedb00d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xedb00d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xedb00d([0x6f,0x6b])});}['create'](){const _0x5aea8f=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5aea8f))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x375d23=>{const _0xc620f1=this['model']['document']['getRoot'](),_0x25d1c2=_0xc620f1&&_0xc620f1['getChild'](_0xc620f1['childCount']-0x1);_0x375d23['setSelection'](_0x25d1c2,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x101de4=this['editing']['view'],_0x2c827a=_0x101de4['document']['getRoot'](),_0x178225=_0x2c827a['getChild'](0x0);_0x2c827a['childCount']>0x1||!_0x178225||'p'!=_0x178225['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x101de4,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x178225['placeholder']=this['placeholder']),Ft({'view':_0x101de4,'element':_0x178225,'keepOnFocus':!0x0}),this['placeholderElement']=_0x178225);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5d1c9a,_0x53ded0={}){super(_0x5d1c9a),this['editor']=null,this['_editorConfig']=_0x53ded0,this['set']('value',_0x53ded0['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x5d1c9a,'Reply...')),this['set']('submitLabel',E(_0x5d1c9a,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1e0a9c(),this['focusCycler']=new _0x1ca448({'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',(_0x4990ac,_0x3e48cd)=>{this['cancelButtonView']['fire']('execute'),_0x3e48cd();}),this['keystrokes']['set']('Ctrl+Enter',(_0x6b68aa,_0x485956)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x485956());}),this['on']('submit',(_0x19ea4d,_0x3336b1)=>{_0x3336b1['length']>0xfde8?(alert(E(_0x5d1c9a,'TOO_LONG_COMMENT_ALERT',[_0x3336b1['length'],0xfde8])),_0x19ea4d['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 _0x2f716d=this['editor'];this['element']['insertBefore'](_0x2f716d['ui']['element'],this['element']['firstChild']),_0x2f716d['model']['document']['on']('change',()=>this['value']=_0x2f716d['getData']()),_0x2f716d['bind']('placeholder')['to'](this),this['focusables']['add'](_0x2f716d['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4b4057){-0x1===_0x4b4057?(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:_0x457148}=this,_0x396de2=new _0x5134f9(_0x457148);return _0x396de2['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x396de2['withText']=!0x0,_0x396de2['bind']('label')['to'](this,'submitLabel'),_0x396de2['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x396de2['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x180075,_0x25aabf)=>!_0x25aabf&&!!_0x180075['trim']()),_0x396de2;}['_createCancelButton'](){const {locale:_0x5a59be}=this,_0x2ff87c=new _0x5134f9(_0x5a59be);return _0x2ff87c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2ff87c['label']=E(_0x5a59be,'Cancel'),_0x2ff87c['withText']=!0x0,_0x2ff87c['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2ff87c;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3c070f=>{this['focusTracker']['add'](_0x3c070f['element']);}),this['focusables']['on']('change',(_0x53e709,_0x5cc70d)=>{for(const _0x2ea00f of Array['from'](_0x5cc70d['added'])['reverse']())this['focusTracker']['add'](_0x2ea00f['element']);});}}class ie extends kt{constructor(_0x5cbeb2,_0x118b80,_0xcf53f9){super(_0x5cbeb2),this['commentInputView']=new os(_0x5cbeb2,_0xcf53f9),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x578fc1,_0x3abb79)=>_0x578fc1||!!_0x3abb79),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 _0x2e8d01(_0x5cbeb2,_0x118b80),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'](_0x1f760f){this['commentInputView']['focus'](_0x1f760f);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x790cab,_0x302cd8)=>{const {submitButtonView:_0x4be58a,cancelButtonView:_0x1b242d,editor:_0x5ece2b}=this['commentInputView'];[_0x4be58a['element'],_0x1b242d['element'],_0x5ece2b?_0x5ece2b['editing']['view']['getDomRoot']():null]['filter'](_0xf813dd=>_0xf813dd)['some'](_0x10bf0b=>_0x10bf0b['contains'](_0x302cd8['target']))||(this['focus'](),_0x302cd8['preventDefault']());});}}class cs extends kt{constructor(_0x772d4a){super(_0x772d4a);const _0x1f4394=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1f4394['to']('count',_0x368a4b=>E(_0x772d4a,'NUMBER_OF_COMMENTS',_0x368a4b))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x38e23e,_0x2f2f73,_0xcd5549){super(_0x38e23e);const _0x224604=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x2f2f73['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x2f2f73,this['_config']=_0xcd5549,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1e0a9c(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1ca448({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2e2d83=>this['commentViews']['map'](_0x30c674=>_0x30c674['element'])['includes'](_0x2e2d83['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x38e23e),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x28d611=>_0x28d611-this['_config']['maxCommentsWhenCollapsed']);for(const _0x4559a2 of _0x2f2f73['comments'])this['_handleNewCommentModel'](_0x4559a2);this['_handleInfoComment'](),this['listenTo'](_0x2f2f73['comments'],'add',(_0x28e17b,_0x3845f0)=>{const _0xfb8f14=this['_calculatePosition'](_0x3845f0);this['length']++,this['_handleNewCommentModel'](_0x3845f0,_0xfb8f14),this['refreshVisibleViews']();}),this['listenTo'](_0x2f2f73['comments'],'remove',(_0x5a9f2e,_0x4bd5ec)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4bd5ec),this['refreshVisibleViews']();}),this['listenTo'](_0x2f2f73,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x2f2f73,'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',_0x224604['if']('length','ck-hidden',_0x438daf=>!_0x438daf)],'aria-label':E(_0x38e23e,'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'](_0x5b0d2f){-0x1===_0x5b0d2f?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3cdb38 of this['commentViews'])_0x3cdb38['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x18511f,_0x3c20c9){const _0x2e8508=new this['_config']['CommentView'](this['locale'],_0x18511f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2e8508['viewUid']=_0x18511f['id'],_0x2e8508['delegate']('removeComment')['to'](this),_0x2e8508['delegate']('updateComment')['to'](this),_0x2e8508['delegate']('resolveCommentThread')['to'](this),_0x2e8508['delegate']('editorReady')['to'](this),_0x2e8508['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2e8508,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2e8508,_0x3c20c9);}['_calculatePosition'](_0x2a770d){const _0x1b68a2=this['_model']['_findOptimalIndex'](_0x2a770d);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2a770d['authoredAt']?_0x1b68a2-0x1:_0x1b68a2:_0x1b68a2-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x470a10={'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'],_0x470a10,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x470a10));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x19cebb){const _0x550ee4=this['commentViews']['remove'](_0x19cebb['id']);this['stopListening'](_0x550ee4),_0x550ee4['isEditMode']&&this['_updateHasDirtyComment'](),_0x550ee4['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x713c78=>_0x713c78['isEditMode']);}['_rearrangeCollapse'](){const _0x3f7d7a=function(_0x12e25b){const _0x3a2c7d=new _0x41f317();for(const _0x51520c of _0x12e25b)_0x3a2c7d['add'](_0x51520c);return _0x3a2c7d;}(this['commentViews']),_0x385a57=this['_collapsedCommentsView']['count'];for(let _0x4414a0=0x1;_0x4414a0<=_0x385a57;_0x4414a0++)_0x3f7d7a['remove'](0x1);for(const _0x19bc85 of _0x3f7d7a)_0x19bc85['collapse']();_0x385a57>0x0&&_0x3f7d7a['add'](this['_collapsedCommentsView'],0x1),ns(_0xb268bd(Array['from'](this['visibleViews']),Array['from'](_0x3f7d7a)),this['visibleViews'],_0x3f7d7a);}['_rearrangeExpand'](){ns(_0xb268bd(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x2980b7 of this['visibleViews'])_0x2980b7['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x66aea=>{this['focusTracker']['add'](_0x66aea['element']),this['keystrokes']['listenTo'](_0x66aea['element']);}),this['commentViews']['on']('change',(_0x17df68,_0x4809e6)=>{for(const _0x3784d1 of _0x4809e6['removed'])this['focusTracker']['remove'](_0x3784d1['element']),this['keystrokes']['stopListening'](_0x3784d1['element']);for(const _0x324885 of Array['from'](_0x4809e6['added'])['reverse']())this['focusTracker']['add'](_0x324885['element']),this['keystrokes']['listenTo'](_0x324885['element']);});}}function ns(_0x39c1d4,_0xa890cb,_0x559c5c){let _0x2b9885=0x0;for(const _0x37e131 of _0x39c1d4)switch(_0x37e131){case'insert':_0xa890cb['add'](_0x559c5c['get'](_0x2b9885),_0x2b9885),_0x2b9885++;break;case'delete':_0xa890cb['remove'](_0x2b9885);break;case'equal':_0x2b9885++;}}class as extends kt{constructor(_0x596633){super(_0x596633);const _0x4b9805=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4b9805['to']('contextValue',_0x545554=>E(_0x596633,'THREAD_CONTEXT_LABEL',_0x545554)),'tabindex':-0x1},'children':[{'text':_0x4b9805['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1b41bb,_0x5125e1){super(_0x1b41bb);const _0x4e64b6=this['bindTemplate'];this['_model']=_0x5125e1,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1e0a9c(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1ca448({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x8d069=>!!_0x8d069),this['bind']('contextValue')['to'](this['_model'],'context',_0x36430a=>_0x36430a&&_0x36430a['value']?this['_trimContextValue'](_0x36430a['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',_0x4e64b6['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 _0x11ada9=new _0x5134f9(this['locale']);return _0x11ada9['label']=E(this['locale'],'Reopen'),_0x11ada9['tooltip']=E(this['locale'],'Reopen'),_0x11ada9['icon']=_0x29628a,_0x11ada9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4973ea=>!_0x4973ea),_0x11ada9['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x40d77b,_0x4ab449)=>_0x40d77b&&_0x4ab449),_0x11ada9['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x11ada9;}['_trimContextValue'](_0x4748ef){if(_0x4748ef['length']<0x96)return _0x4748ef;const _0x2a3b5f=_0x4748ef['lastIndexOf']('\x20',0x93);return _0x4748ef['substring'](0x0,_0x2a3b5f>-0x1?_0x2a3b5f:0x93)+'...';}['_attachContextActions'](){const _0x46ad01=this['element']['querySelector']('.ck-context'),_0x2fd035=_0x46ad01['querySelector']('.ck-context__value');this['listenTo'](_0x46ad01,'mouseenter',()=>{_0x2fd035['offsetWidth']<_0x2fd035['scrollWidth']&&_0x46ad01['classList']['add']('overlay');}),this['listenTo'](_0x46ad01,'mouseleave',()=>{_0x46ad01['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x4df84b of this['focusables'])this['focusTracker']['add'](_0x4df84b['element']),this['keystrokes']['listenTo'](_0x4df84b['element']);}['_createContextView'](){const _0x3d721a=new as(this['locale']);return _0x3d721a['bind']('contextValue')['to'](this),_0x3d721a;}}class ts extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x890875,_0x33ecb3,_0x18824f,_0x187e0a){super(_0x890875),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x33ecb3,this['_localUser']=_0x18824f,this['_config']=_0x187e0a,this['commentThreadHeaderView']=new Xt(_0x890875,_0x33ecb3),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x890875,E(_0x890875,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x890875,_0x33ecb3,Object['assign']({'CommentView':this['_config']['CommentView']},_0x187e0a)),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',(_0x2e064,_0x221b07)=>_0x2e064||!!_0x221b07),this['bind']('isUnlinked')['to'](_0x33ecb3,'unlinkedAt',_0x454e2f=>!!_0x454e2f),this['bind']('ariaLabel')['to'](this,'length',_0x549660=>{const _0x8a5e5e=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x549660,_0x8a5e5e]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1e0a9c(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1ca448({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xd75b64=>_0xd75b64['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 _0x570667=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x523f4c=_0x570667['commentInputView'];return _0x570667['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x523f4c,'value',(_0x44352f,_0xa98953,_0x661de4,_0x32ea25,_0x2f7b7a)=>!!_0x2f7b7a||!!_0x32ea25&&_0x661de4&&!_0xa98953||_0x44352f&&_0x661de4&&!_0xa98953),_0x523f4c['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4622c7,_0x51d5d0,_0xdae7c4)=>{let _0x13f591;return _0x13f591=_0xdae7c4&&_0x51d5d0?'Reply\x20to\x20reopen\x20discussion...':_0x4622c7?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x13f591);}),_0x523f4c['bind']('submitLabel')['to'](this,'length',_0x3074ba=>E(this['locale'],_0x3074ba?'Reply':'Comment')),_0x523f4c['on']('submit',(_0x56c536,_0x576497)=>{this['fire']('addComment',_0x576497),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x523f4c['on']('cancel',()=>{this['focus']();}),_0x523f4c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x523f4c['on']('cancel',_0x22f4e7=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x22f4e7['stop']());}),this['on']('change:isActive',(_0x4a0ecd,_0x4f326b,_0x2bb692)=>{_0x2bb692||this['length']||_0x523f4c['value']||this['fire']('removeCommentThread');}),_0x570667;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(ts){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x1b19cb,_0x973102,_0x3386bc,_0xdf5c2){super(_0x1b19cb,_0x973102,_0x3386bc,_0xdf5c2),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1b19cb,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x28c8e2,_0xf78f05,_0x333840)=>{_0x333840||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5c09fb,_0x43e121,_0x9b2c4f)=>{_0x9b2c4f&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x3240fc=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x3240fc['if']('isActive','ck-thread--active'),_0x3240fc['if']('isUnlinked','ck-thread--unlinked'),_0x3240fc['if']('isConfirm','ck-thread--remove-confirmation'),_0x3240fc['to']('actionIndicator',_0x409ade=>_0x409ade?'ck-thread--'+_0x409ade:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3240fc['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 _0x5790ee of this['commentsListView']['commentViews'])_0x5790ee['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x229f5e}=this,_0x5b5de0=this['commentsListView']['commentViews']['get'](0x0);_0x5b5de0===this['_boundFirstCommentView']||_0x5b5de0['isSystemComment']||(this['_boundFirstCommentView']=_0x5b5de0,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x5b5de0,'actionIndicator',_0x37cce8=>'remove'===_0x37cce8?'remove':null),_0x5b5de0['placeholder']=E(_0x229f5e,'Write\x20a\x20comment...'),_0x5b5de0['removeButton']['on']('execute',_0x3a1a4d=>{_0x3a1a4d['stop'](),this['showConfirm'](E(_0x229f5e,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x5b5de0['focus']();}),_0x5b5de0['actionBar']['add'](this['resolveButton'],0x0),_0x5b5de0['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x11c1a3=new _0x165d9b(this['locale']);return _0x11c1a3['label']=E(this['locale'],'Resolve'),_0x11c1a3['tooltip']=E(this['locale'],'Resolve'),_0x11c1a3['icon']=_0x164183,_0x11c1a3['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x11c1a3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3e0c7a=>!_0x3e0c7a),_0x11c1a3['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x36da2d,_0x24f4f4)=>_0x36da2d&&!_0x24f4f4),_0x11c1a3['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x11c1a3;}['_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(_0x3b2319){super(_0x3b2319),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x10a082,_0x552dd8,_0x49a67e)=>{this['element']['innerHTML']=_0x49a67e;}),this['element']['innerHTML']=this['content'];}}class hs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x11bdbb,_0x3d9568,_0x5dc663){super(_0x11bdbb),this['_model']=_0x3d9568,this['_config']=_0x5dc663,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3d9568,'content',_0x3d9568,'authoredAt',(_0x57a90a,_0x4f2ecc)=>E(_0x11bdbb,'COMMENT_ARIA_LABEL',[_0x3d9568['author']['name'],_0x5dc663['formatDateTime'](_0x4f2ecc),new DOMParser()['parseFromString'](_0x57a90a,'text/html')['body']['textContent'],_0x3d9568['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x11bdbb,E(_0x11bdbb,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x4d7b71(),this['focusTracker']=new _0x1e0a9c(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1ca448({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1831e5=>_0x1831e5['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 _0x1295fa=new es(this['locale']);return _0x1295fa['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x537e3f,_0x361bb0)=>_0x361bb0?_0x8bcdb6(_0x537e3f,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x537e3f),_0x1295fa;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x449cc8=new os(this['locale'],this['_config']['editorConfig']);return _0x449cc8['value']=this['_model']['content'],_0x449cc8['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x449cc8['submitLabel']=E(this['locale'],'Save'),_0x449cc8['on']('submit',(_0x4b0d2e,_0x5e43f9)=>{this['fire']('updateComment',this['_model']['id'],_0x5e43f9),this['switchToDisplayMode'](),this['focus']();}),_0x449cc8['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x449cc8['once']('editorReady',()=>{_0x449cc8['focus']();}),_0x449cc8['createEditor'](),_0x449cc8['delegate']('editorReady')['to'](this),_0x449cc8['delegate']('editorDestroyed')['to'](this),_0x449cc8;}['_setupKeyboardNavigation'](){const _0x1c8950=this['element'];this['keystrokes']['listenTo'](_0x1c8950);for(const _0x194192 of this['focusables'])this['focusTracker']['add'](_0x194192['element']),this['keystrokes']['listenTo'](_0x194192['element']);this['focusables']['on']('change',(_0x4e8c8b,_0x3794ab)=>{for(const _0x213941 of _0x3794ab['removed'])this['focusTracker']['remove'](_0x213941['element']),this['keystrokes']['stopListening'](_0x213941['element']);for(const _0x454222 of _0x3794ab['added'])this['focusTracker']['add'](_0x454222['element']),this['keystrokes']['listenTo'](_0x454222['element']);}),this['keystrokes']['set']('enter',(_0x118fa5,_0x37846c)=>{_0x1c8950===_0x118fa5['target']&&(this['focusCycler']['focusFirst'](),_0x37846c());}),this['keystrokes']['set']('esc',(_0x5f1a47,_0x4144c0)=>{_0x1c8950!==_0x5f1a47['target']&&(this['focus'](),_0x4144c0());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(hs){['actionBar'];['userView'];constructor(_0x56779a,_0x2cfb5f,_0x1e9a4c){super(_0x56779a,_0x2cfb5f,_0x1e9a4c),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x56779a,'Reply...')),this['bind']('authoredAt')['to'](_0x2cfb5f),this['bind']('resolvedAt')['to'](_0x2cfb5f),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 _0x2e8d01(_0x56779a,_0x2cfb5f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2cfb5f,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x267afe=this['bindTemplate'],_0x485837=[{'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':_0x267afe['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x267afe['to']('authoredAt',_0x1cb3c7=>this['_config']['formatDateTime'](_0x1cb3c7))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x267afe['if']('isEditMode','ck-comment__actions--hidden'),_0x267afe['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']&&_0x485837['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x267afe['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x267afe['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x267afe['if']('isEditMode','ck-comment--edit'),_0x267afe['if']('isSystemComment','ck-comment--info'),_0x267afe['to']('actionIndicator',_0xb4e663=>_0xb4e663?'ck-comment--'+_0xb4e663:'')],'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':_0x485837}]}]};}['_createEditButton'](){const _0x139ebe=new _0x5134f9(this['locale']);return _0x139ebe['label']=E(this['locale'],'Edit'),_0x139ebe['icon']=_0x5ea246,_0x139ebe['withText']=!0x0,_0x139ebe['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x139ebe['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4863a9=>!_0x4863a9),_0x139ebe['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x139ebe['on']('execute',()=>this['switchToEditMode']()),_0x139ebe;}['_createRemoveButton'](){const _0x1bf789=new _0x5134f9(this['locale']);return _0x1bf789['label']=E(this['locale'],'Remove'),_0x1bf789['icon']=_0xac44fb,_0x1bf789['withText']=!0x0,_0x1bf789['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x1bf789['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x21fa59=>!_0x21fa59),_0x1bf789['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x1bf789['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x1bf789;}['_createDropdown'](){const _0x2da6cb=_0x4c42d1(this['locale'],_0x1b159b),_0x4f11dc=_0x2da6cb['panelView']['children'],_0x12c164=new _0x34d210(this['locale']),_0x568e73=_0x2da6cb['bindTemplate'];_0x2a5d8c(_0x2da6cb,()=>this['items']['find'](_0x2ae864=>_0x2ae864['isVisible'])),_0x2da6cb['extendTemplate']({'attributes':{'class':[_0x568e73['if']('isVisible','ck-hidden',_0xd6fe2f=>!_0xd6fe2f)]}});const _0x1c2a1f=(_0x3d613e,_0xdca7a=-0x1)=>{const _0x198780=new _0x6b580e(this['locale']);_0x198780['children']['add'](_0x3d613e);const _0x474186=_0xdca7a>-0x1?_0xdca7a:_0x12c164['items']['length'];_0x12c164['items']['add'](_0x198780,_0x474186);const _0x15c196=Array['from'](this['items']);_0x2da6cb['unbind']('isEnabled','isVisible'),_0x2da6cb['bind']('isEnabled')['toMany'](_0x15c196,'isEnabled',(..._0x18a5a7)=>_0x18a5a7['some'](_0x5dc375=>_0x5dc375)),_0x2da6cb['bind']('isVisible')['toMany'](_0x15c196,'isVisible',(..._0x53679c)=>_0x53679c['some'](_0x483992=>_0x483992));};_0x2da6cb['panelPosition']='sw',_0x2da6cb['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x7d1dda});for(const _0x355a70 of this['items'])_0x1c2a1f(_0x355a70);return _0x4f11dc['add'](_0x12c164),_0x2da6cb['listenTo'](this['items'],'add',(_0x225ae7,_0x5c856f,_0x315abc)=>{_0x1c2a1f(_0x5c856f,_0x315abc);}),_0x2da6cb['listenTo'](this['items'],'remove',(_0x353bb9,_0x142234,_0x4798db)=>{_0x12c164['items']['remove'](_0x4798db);}),_0x2da6cb;}['_attachActions'](_0xb992a5,_0x12c077){const _0x4e8f5f=_0xb992a5&&_0xb992a5['element'];_0x4e8f5f&&(this['listenTo'](_0x4e8f5f,'mouseenter',()=>this['actionIndicator']=_0x12c077),this['listenTo'](_0x4e8f5f,'focus',()=>this['actionIndicator']=_0x12c077),this['listenTo'](_0x4e8f5f,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4e8f5f,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x201738=super['_createCommentInputView']();return _0x201738['bind']('placeholder')['to'](this),_0x201738;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x2056a2){const _0x5e8fb8=Dt(_0x2056a2,0x1e),_0x7c9380=new MutationObserver(_0x33e71f=>{for(const _0x5f01a7 of _0x33e71f)('attributes'==_0x5f01a7['type']&&'class'==_0x5f01a7['attributeName']||'childList'==_0x5f01a7['type']||'characterData'==_0x5f01a7['type'])&&_0x5e8fb8();});return{'attach'(_0x1529af){_0x7c9380['observe'](_0x1529af,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x7c9380['disconnect'](),_0x5e8fb8['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x467f87,_0x52c5ae){super(_0x467f87),this['id']=_0x437d75(),this['focusTracker']=new _0x1e0a9c(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x62494c,_0x268717)=>this['fire']('Esc',_0x268717)),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'](_0x52c5ae),this['mainView']=_0x52c5ae;const _0x168cdd=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x168cdd['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 _0x17234e=this['element']['clientHeight'];_0x17234e&&(this['height']=_0x17234e);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x1f969f(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x5dcc58,target:_0x461ea6,type:_0x170372,isVisible:_0x278230=!0x0}){super(),this['view']=_0x5dcc58,this['view']['element']||this['view']['render'](),this['_type']=_0x170372,this['_target']=_0x461ea6,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x41f317([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x29549d,_0x2018a1)=>{this['view']['focusTracker']['add'](_0x2018a1);}),this['focusableElements']['on']('remove',(_0xc300d2,_0x157eb2)=>{this['view']['focusTracker']['remove'](_0x157eb2);}),this['set']('isVisible',_0x278230);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x2eb308=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x2eb308),_0x2eb308;}get['targetRect'](){const _0x16f529=this['target'];if(null===_0x16f529)return null;if(_0x16f529 instanceof _0x521279)return _0x16f529;const _0x3aa63e=_0x16f529['filter'](_0x1562dd=>function(_0x4cb049){const _0x4f4035=_0x4cb049['offsetParent'];if(_0x4f4035)return!0x0;const _0x3aaf8b=_0x4cb049['getClientRects']()['item'](0x0);return!!_0x3aaf8b;}(_0x1562dd));return 0x0===_0x3aa63e['length']?null:new _0x521279(_0x3aa63e[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x23cf97){this['view']['isActive']=_0x23cf97,this['view']['mainView']['isActive']=_0x23cf97;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3dad5c){if(!(null===_0x3dad5c||_0x3dad5c instanceof _0x521279||Array['isArray'](_0x3dad5c)&&_0x3dad5c['every'](_0x540868=>li(_0x540868))))throw new _0x3b16ef('annotation-invalid-target',null,{'target':_0x3dad5c});}['_getNormalizedTarget'](){const _0xf97e2='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0xf97e2)?[_0xf97e2]:_0xf97e2;}}function li(_0x58e7c3){return null!==_0x58e7c3&&'object'==typeof _0x58e7c3&&'nodeType'in _0x58e7c3&&0x1===_0x58e7c3['nodeType'];}class _ extends _0x41f317{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4c6efc=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1e0a9c(),this['_focusTracker']['on']('change:isFocused',(_0x5e6081,_0x4d22e9,_0x344d67)=>{_0x344d67||this['fire']('blur');});for(const _0x204bab of _0x4c6efc)this['add'](_0x204bab);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2df131){if(this['has'](_0x2df131))throw new _0x3b16ef('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2df131['innerView'],_0x2df131),this['_viewToAnnotation']['set'](_0x2df131['view'],_0x2df131);for(const _0x256fab of _0x2df131['focusableElements'])this['_focusTracker']['add'](_0x256fab);this['listenTo'](_0x2df131['focusableElements'],'add',(_0x390c04,_0x3901c5)=>{this['_focusTracker']['add'](_0x3901c5);}),this['listenTo'](_0x2df131['focusableElements'],'remove',(_0x21094f,_0x36e66c)=>{this['_focusTracker']['remove'](_0x36e66c);}),this['listenTo'](_0x2df131['view']['focusTracker'],'change:isFocused',(_0x46cc86,_0x3b4fa0,_0x5448f1)=>{_0x5448f1&&this['fire']('focus',_0x2df131);}),_0x2df131['updateTargetRect']();const _0x126344=this['_getOrderInContent'](_0x2df131['view']['targetRect']);return super['add'](_0x2df131,_0x126344);}['remove'](_0x1da050){if(!this['has'](_0x1da050))throw new _0x3b16ef('annotationcollection-not-existing-item',null);this['stopListening'](_0x1da050['view']['focusTracker']),this['stopListening'](_0x1da050['focusableElements']);for(const _0x1f42ab of _0x1da050['focusableElements'])this['_focusTracker']['remove'](_0x1f42ab);return this['_viewToAnnotation']['delete'](_0x1da050['view']),this['_innerViewToAnnotation']['delete'](_0x1da050['innerView']),super['remove'](_0x1da050);}['getByInnerView'](_0x300159){return this['_innerViewToAnnotation']['get'](_0x300159);}['getByView'](_0x2e28e3){return this['_viewToAnnotation']['get'](_0x2e28e3);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x11bbc9 of this)_0x11bbc9['updateTargetRect']();this['_sort']();}['_sort'](){const _0x46c884=Array['from'](this)['sort']((_0x6ab347,_0x499cbb)=>v(_0x6ab347['view']['targetRect'],_0x499cbb['view']['targetRect']));for(let _0x285666=_0x46c884['length']-0x1;_0x285666>0x0;_0x285666--){const _0x2ad9fe=_0x46c884[_0x285666];_0x285666!==this['getIndex'](_0x2ad9fe)&&(this['remove'](_0x2ad9fe),this['add'](_0x2ad9fe));}}['_getOrderInContent'](_0x5a60cf){let _0x16d35c=0x0;if(!_0x5a60cf)return this['length'];for(const _0x40759c of this){const _0x42eb00=_0x40759c['view']['targetRect'];if(_0x42eb00){if(v(_0x5a60cf,_0x42eb00)<0x0)return _0x16d35c;_0x16d35c++;}}return _0x16d35c;}}function v(_0x1c64aa,_0x13cd6e){if(null===_0x1c64aa&&null===_0x13cd6e)return 0x0;if(null===_0x1c64aa)return-0x1;if(null===_0x13cd6e)return 0x1;const _0x2e716d=_0x1c64aa['top']-_0x13cd6e['top'];return 0x0==_0x2e716d?_0x1c64aa['left']-_0x13cd6e['left']:_0x2e716d;}class O extends _0x1318aa{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x159121){if(super(_0x159121),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x159121 instanceof _0x180d0b){const _0x3f67b0=_0x159121['locale'];_0x159121['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x3f67b0,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x3f67b0,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x3f67b0,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x3f67b0,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x3f67b0,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x3f67b0,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x3f67b0,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x595c94){this['collection']['add'](_0x595c94);}['remove'](_0x5aa7ae){this['collection']['remove'](_0x5aa7ae),_0x5aa7ae['destroy']();}['refreshVisibility'](){for(const _0x39fb06 of this['collection'])_0x39fb06['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2ba79a){return this['collection']['getByInnerView'](_0x2ba79a);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3d5255 of this['collection'])_0x3d5255['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x41b4f4){this['fire']('_activateAnnotation',_0x41b4f4);}['createAnnotation'](_0x184195){return new d(_0x184195);}['createAnnotationView'](_0x486479,_0x3d1269){return new S(_0x486479,_0x3d1269);}['_addActiveAnnotation'](_0x18b01c){const _0xa472fa=new Set(this['activeAnnotations']);_0xa472fa['add'](_0x18b01c),this['activeAnnotations']=_0xa472fa;}['_removeActiveAnnotation'](_0x182fa0){const _0x36b43d=new Set(this['activeAnnotations']);_0x36b43d['delete'](_0x182fa0),this['activeAnnotations']=_0x36b43d;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5a6e27=this['collection'],_0x52fb45=this['_visibleAnnotations'];function _0x529448(_0x3c5454){const _0x45c25d=_0x3c5454['source'];_0x45c25d['isVisible']&&!_0x52fb45['has'](_0x45c25d)?_0x52fb45['add'](_0x45c25d):!_0x45c25d['isVisible']&&_0x52fb45['has'](_0x45c25d)&&_0x52fb45['remove'](_0x45c25d),_0x45c25d['view']['focusTracker']['remove'](_0x45c25d['view']['element']),_0x45c25d['view']['focusTracker']['add'](_0x45c25d['view']['element']);}this['listenTo'](_0x5a6e27,'add',(_0x556897,_0xae07b1)=>{_0xae07b1['isVisible']&&_0x52fb45['add'](_0xae07b1),this['listenTo'](_0xae07b1,'change:isVisible',_0x529448);}),this['listenTo'](_0x5a6e27,'remove',(_0x2bfd0c,_0x3b7ac4)=>{_0x52fb45['has'](_0x3b7ac4)&&_0x52fb45['remove'](_0x3b7ac4),this['stopListening'](_0x3b7ac4,'change:isVisible',_0x529448);});}['_setupEnterAnnotationKeystroke'](){const _0x493e70=_0x35dc99=>{_0x35dc99['on']('ready',()=>{_0x35dc99['keystrokes']['set'](_0x298e25,(_0x463576,_0x2d45d2)=>{const _0x510500=_0x338d21(this['activeAnnotations']['values']());_0x510500&&(_0x510500['view']['focus'](),_0x2d45d2());});});};this['context']instanceof _0x180d0b?_0x493e70(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3bf56d,_0x279122)=>{_0x493e70(_0x279122);});}['_setupEscapeAnnotationHandling'](){const _0x3ba19f=_0x5e0461=>{const _0x5bd1ce=_0x5e0461['source'],_0x2fb374=[];let _0x25d1cc;if(Array['isArray'](_0x5bd1ce['target'])){_0x25d1cc=_0x5bd1ce['target'][0x0],this['context']instanceof _0x180d0b?_0x2fb374['push'](this['context']):this['context']['editors']&&_0x2fb374['push'](...this['context']['editors']);for(const _0x231a23 of _0x2fb374)for(const _0x5a3d47 of _0x231a23['editing']['view']['domRoots']['values']())if(_0x5a3d47['contains'](_0x25d1cc))return void _0x231a23['editing']['view']['focus']();_0x25d1cc['focus']();}};this['listenTo'](this['collection'],'add',(_0xfca855,_0x4c380a)=>{this['listenTo'](_0x4c380a,'escape',_0x3ba19f,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x3c74bc,_0x26478d)=>{this['stopListening'](_0x26478d,'escape',_0x3ba19f);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x1318aa{['_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(_0x459f75){super(_0x459f75),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x4b84ad=this['context']['config'];_0x4b84ad['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4b84ad['define']('comments.maxThreadTotalWeight',0x1f4),_0x4b84ad['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4b84ad['define']('comments.CommentThreadView',vt),_0x4b84ad['define']('comments.CommentView',gt),_0x4b84ad['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x5da1ec=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x49ae0a,_0x406ea0)=>this['_addCommentThread'](_0x406ea0)),this['on']('submitCommentThread',(_0x3bb718,_0x426178)=>this['_submitCommentThread'](_0x426178)),this['on']('resolveCommentThread',(_0x17bc34,_0x329c61)=>this['_resolveCommentThread'](_0x329c61)),this['on']('resolveCommentThread',(_0x1a1e0c,_0x32f2ec)=>this['_updateActiveAnnotation'](_0x32f2ec),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x9dcf0,_0x53d14f)=>this['_reopenCommentThread'](_0x53d14f)),this['on']('reopenCommentThread',(_0x570fd8,_0x43663f)=>this['_updateActiveAnnotation'](_0x43663f),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4aaf8c,_0x27d440)=>this['_removeCommentThread'](_0x27d440)),this['on']('updateCommentThread',(_0x2228b4,_0x31e470)=>this['_updateCommentThread'](_0x31e470)),this['on']('updateCommentThread',(_0x359cc0,_0x2ff680)=>this['_updateActiveAnnotation'](_0x2ff680),{'priority':'lowest'}),this['on']('addComment',(_0x168132,_0x2e7880)=>this['_addComment'](_0x2e7880)),this['on']('updateComment',(_0x30a27b,_0x5dc0cd)=>this['_updateComment'](_0x5dc0cd)),this['on']('removeComment',(_0x154297,_0x1a54ab)=>this['_removeComment'](_0x1a54ab)),this['on']('addComment',(_0x5edc4a,{threadId:_0x3176ac,isFromAdapter:_0x12c4a3})=>{if(_0x12c4a3)return;const _0x5a6db4=this['getCommentThread'](_0x3176ac),_0x2af1ce=_0x5a6db4&&this['_threadToController']['get'](_0x5a6db4);_0x2af1ce&&_0x2af1ce['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x5da1ec,'change:activeAnnotations',(_0xc5b705,_0x22002d,_0x33d275)=>{const _0xe798cb=Array['from'](_0x33d275)['map'](_0xb5f9a5=>this['_viewToController']['get'](_0xb5f9a5['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xe798cb?_0xe798cb['model']:null;});}set['adapter'](_0x1073cf){if(this['_adapter'])throw new _0x3b16ef('commentsrepository-adapter-already-set');this['_adapter']=_0x1073cf;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x29b25b=Tt,threadId:_0x1715fe=_0x437d75(),comments:_0x2846a8=[],unlinkedAt:_0x2555d2=null,resolvedAt:_0x3d1036=null,resolvedBy:_0x4ddacc=null,target:_0x15de3a=null,context:_0x5686f1=null,attributes:_0x4ae343={},isResolvable:_0x30a8bc=!0x0,isSubmitted:_0x42566e=!0x1,isFromAdapter:_0x809116=!0x1}={}){return this['fire'](bt('addCommentThread',_0x29b25b),{'channelId':_0x29b25b,'threadId':_0x1715fe,'comments':_0x2846a8,'unlinkedAt':_0x2555d2,'resolvedAt':_0x3d1036,'resolvedBy':_0x4ddacc,'target':_0x15de3a,'context':_0x5686f1,'attributes':_0x4ae343,'isFromAdapter':_0x809116,'isResolvable':_0x30a8bc,'isSubmitted':_0x42566e}),this['getCommentThread'](_0x1715fe);}['openNewCommentThread']({channelId:_0x4581d3=Tt,threadId:_0x248b0b=_0x437d75(),target:_0x80c3d2,context:_0x16f470=null,isResolvable:_0x1fed83=!0x0}){if(this['_readOnlyChannels']['has'](_0x4581d3)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x80c3d2)throw new _0x3b16ef('commentsrepository-missing-target');const _0x1a2e8d=this['addCommentThread']({'channelId':_0x4581d3,'threadId':_0x248b0b,'target':_0x80c3d2,'context':_0x16f470,'isResolvable':_0x1fed83});if(!_0x1a2e8d)return null;const _0x51b859=this['_threadToController']['get'](_0x1a2e8d),_0x4b6de9=_0x51b859['view']['commentThreadInputView']['commentInputView'],_0x3eb0e7=this['context']['plugins']['get'](O),_0x52e259=_0x3eb0e7['getByInnerView'](_0x51b859['view']);return _0x3eb0e7['activate'](_0x52e259),_0x4b6de9['once']('editorReady',()=>_0x4b6de9['focus']()),_0x1a2e8d;}['hasCommentThread'](_0x18660e){if('string'!=typeof _0x18660e)throw new _0x3b16ef('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x18660e);}['updateCommentThread']({channelId:_0x41ebfe=Tt,threadId:_0x5640c9,context:_0x248a1c,unlinkedAt:_0x575cdd,attributes:_0x2ca657,isFromAdapter:_0x27f02d=!0x1}){return this['fire'](bt('updateCommentThread',_0x41ebfe),{'channelId':_0x41ebfe,'threadId':_0x5640c9,'context':_0x248a1c,'unlinkedAt':_0x575cdd,'attributes':_0x2ca657,'isFromAdapter':_0x27f02d}),this['getCommentThread'](_0x5640c9);}['getCommentThread'](_0x53efea){if('string'!=typeof _0x53efea)throw new _0x3b16ef('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x53efea);}['fetchCommentThread']({channelId:_0x376580,threadId:_0x1dd63b}={}){const _0x18b99b=this['getCommentThread'](_0x1dd63b);if(_0x18b99b)return Promise['resolve'](_0x18b99b);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3b16ef('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x376580,'threadId':_0x1dd63b})['then'](_0x3eaef5=>this['hasCommentThread'](_0x1dd63b)?this['getCommentThread'](_0x1dd63b):_0x3eaef5?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x376580},_0x3eaef5)):void 0x0)['catch'](_0x12267f=>{throw console['error'](_0x12267f),new _0x3b16ef('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x47177e,skipNotAttached:_0x32e539=!0x1,skipEmpty:_0x1246a5=!0x1,toJSON:_0x53897e=!0x1}={}){const _0xa452fe=[];for(const _0xf95f93 of this['_threads']['values']())_0x47177e&&_0xf95f93['channelId']!==_0x47177e||_0x32e539&&!_0xf95f93['isAttached']||_0x1246a5&&0x0===_0xf95f93['length']||_0xa452fe['push'](_0xf95f93);return _0x53897e?_0xa452fe['map'](_0x9276b3=>_0x9276b3['toJSON']()):_0xa452fe;}['setActiveCommentThread'](_0x286af1){const _0xaefcd1=this['context']['plugins']['get'](O);if(!_0x286af1)return void(this['activeCommentThread']&&_0xaefcd1['deactivateAll']());const _0x2526cb=this['getCommentThread'](_0x286af1);if(!_0x2526cb)throw new _0x3b16ef('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x286af1});if(!this['_threadToController']['has'](_0x2526cb))throw new _0x3b16ef('commentsrepository-active-not-attached',null,{'threadId':_0x286af1});const _0x3eb283=_0xaefcd1['getByInnerView'](this['_threadToController']['get'](_0x2526cb)['view']);_0xaefcd1['activate'](_0x3eb283);}['switchReadOnly'](_0x15a30b,_0x1a2fb1){_0x15a30b?this['_readOnlyChannels']['add'](_0x1a2fb1):this['_readOnlyChannels']['delete'](_0x1a2fb1),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x3fb818){return this['_readOnlyChannels']['has'](_0x3fb818)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x482f1a,_0x17469a){return new Ct(_0x482f1a,_0x17469a);}['setPermissions'](_0x493984,_0x37e237=Tt){this['_permissions']['set'](_0x37e237,_0x493984),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x5b4ee8=Tt){return this['_permissions']['has'](_0x5b4ee8)?this['_permissions']['get'](_0x5b4ee8):_t;}['_addCommentThread']({channelId:_0xd6fb6c,threadId:_0x2917a3,comments:_0x28007c,unlinkedAt:_0x501b84,resolvedAt:_0x23efa,resolvedBy:_0x3feb68,target:_0x388173,context:_0x51922e,attributes:_0x305ed3,isFromAdapter:_0x5e89e8,isResolvable:_0x519d40,isSubmitted:_0x1a7577}){if('string'!=typeof _0x2917a3)throw new _0x3b16ef('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2917a3});if(this['hasCommentThread'](_0x2917a3))throw new _0x3b16ef('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x2917a3});const _0x2afa27=new ui(this,{'channelId':_0xd6fb6c,'id':_0x2917a3,'context':_0x51922e,'attributes':_0x305ed3,'unlinkedAt':_0x501b84,'resolvedAt':_0x23efa,'resolvedBy':_0x3feb68?this['context']['plugins']['get'](it)['getUser'](_0x3feb68):null,'isResolvable':_0x519d40,'isSubmitted':_0x1a7577||_0x5e89e8});this['_threads']['set'](_0x2917a3,_0x2afa27);for(const _0x570e07 of _0x28007c)_0x2afa27['_add'](this['_createNewComment']({'threadId':_0x2917a3,..._0x570e07}));return _0x388173&&_0x2afa27['attachTo'](_0x388173),_0x5e89e8||!_0x2afa27['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0xd6fb6c,'threadId':_0x2917a3});}['_submitCommentThread']({channelId:_0x49386a,threadId:_0x56cfed}){if(!this['hasCommentThread'](_0x56cfed))throw new _0x3b16ef('commentsrepository-missing-comment-thread',this);const _0x50158b=this['getCommentThread'](_0x56cfed);if(_0x50158b['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x2fa7b1,comments:_0x3f9922,resolvedAt:_0x501b46,resolvedBy:_0x43a65c,context:_0x15a455,attributes:_0x3e51a1}=_0x50158b,_0x3ed084=this['context']['plugins']['get']('PendingActions'),_0x1da3c1=_0x3ed084['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x49386a,'threadId':_0x2fa7b1,'comments':_0x3f9922['map'](_0x4f2036=>_0x4f2036['toJSON']()),'resolvedAt':_0x501b46,'resolvedBy':_0x43a65c?_0x43a65c['id']:_0x43a65c,'context':_0x15a455,'attributes':_0x3e51a1})['then'](({comments:_0x5152f7})=>{_0x3ed084['remove'](_0x1da3c1);for(const _0x56ff42 of _0x5152f7)this['_updateComment']({'channelId':_0x49386a,'threadId':_0x56cfed,'commentId':_0x56ff42['commentId'],'createdAt':_0x56ff42['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x25cf2a=>{throw console['error'](_0x25cf2a),new _0x3b16ef('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x3acfc1,target:_0x58f2cc}){const _0x2d51c0=this['getCommentThread'](_0x3acfc1);if(!_0x2d51c0)throw new _0x3b16ef('commentsrepository-attach-missing-comment-thread',this);const _0x5f226a=this['context']['plugins']['get']('PendingActions'),_0x262383=this['context']['plugins']['get'](O),_0x14a209=this['_createCommentThreadView'](_0x2d51c0),_0x1f9ed5=new Ct(_0x2d51c0,_0x14a209);let _0x4c4ec3=null;_0x14a209['on']('change:isDirty',(_0x2a7224,_0x176a97,_0x6f95ce)=>{_0x6f95ce?_0x4c4ec3=_0x5f226a['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4c4ec3&&(_0x5f226a['remove'](_0x4c4ec3),_0x4c4ec3=null);}),this['_threadToController']['set'](_0x2d51c0,_0x1f9ed5),this['_viewToController']['set'](_0x14a209,_0x1f9ed5);const _0x1083c9=new S(this['context']['locale'],_0x14a209);_0x1083c9['bind']('length')['to'](_0x14a209),_0x1083c9['bind']('isDirty')['to'](_0x14a209,'isDirty',_0x14a209,'length',(_0x2c99e2,_0x3033e6)=>_0x2c99e2||!_0x3033e6),_0x1083c9['bind']('isActive')['to'](_0x14a209),_0x1083c9['type']='comment';const _0x5882b4=new d({'view':_0x1083c9,'target':_0x58f2cc,'type':'comment','isVisible':!_0x2d51c0['archivedAt']});return _0x14a209['on']('escape',()=>{_0x5882b4['fire']('escape');}),this['_bindAnnotationToEditors'](_0x14a209,_0x5882b4),_0x262383['add'](_0x5882b4),_0x5882b4;}['_bindAnnotationToEditors'](_0x1a1cfc,_0x4687e8){this['listenTo'](_0x1a1cfc,'editorReady',(_0x3afce8,_0x6118ca)=>{const _0x34b827=_0x6118ca['ui']['view']['body']['bodyCollectionContainer'];_0x4687e8['focusableElements']['add'](_0x34b827),this['context']instanceof _0x180d0b&&this['context']['ui']['focusTracker']['add'](_0x34b827);},{'priority':'highest'}),this['listenTo'](_0x1a1cfc,'editorDestroyed',(_0x208549,_0x1460c7)=>{const _0x137250=_0x1460c7['ui']['view']['body']['bodyCollectionContainer'];_0x4687e8['focusableElements']['has'](_0x137250)&&_0x4687e8['focusableElements']['remove'](_0x137250),this['context']instanceof _0x180d0b&&this['context']['ui']['focusTracker']['remove'](_0x137250);});}['_unbindEditors'](_0x522630){this['stopListening'](_0x522630,'editorReady'),this['stopListening'](_0x522630,'editorDestroyed');}['_createCommentThreadView'](_0x262baf){const _0x5b2b92=this['context']['plugins']['get'](it),{config:_0x5d768e,locale:_0x2df54f}=this['context'],_0x3736e6=lt(_0x5d768e['get']('locale'),_0x2df54f);return new(0x0,(_0x5d768e['get']('comments'))['CommentThreadView'])(_0x2df54f,_0x262baf,_0x5b2b92['me'],{'editorConfig':{..._0x5d768e['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x5d768e['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x5d768e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5d768e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5d768e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3736e6,'CommentView':_0x5d768e['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5b9740,channelId:_0x12c734,resolvedAt:_0x258e07,resolvedBy:_0x55286c,isFromAdapter:_0x584e24}){if(!this['hasCommentThread'](_0x5b9740))throw new _0x3b16ef('commentsrepository-missing-comment-thread',null,{'threadId':_0x5b9740});const _0x5456b0=this['getCommentThread'](_0x5b9740);if(_0x5456b0['isResolved'])throw new _0x3b16ef('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5b9740});const _0x33aee1=this['context']['plugins']['get'](it);if(_0x5456b0['resolvedBy']=_0x33aee1['getUser'](_0x55286c),_0x5456b0['resolvedAt']=_0x258e07,_0x584e24||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x43d8e0=this['context']['plugins']['get']('PendingActions'),_0x5884ed=_0x43d8e0['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x12c734,'threadId':_0x5b9740})['then'](({resolvedAt:_0x45a5f3,resolvedBy:_0x2536d9})=>{_0x43d8e0['remove'](_0x5884ed),_0x5456b0['resolvedBy']['id']!==_0x2536d9&&(_0x5456b0['resolvedBy']=_0x33aee1['getUser'](_0x2536d9)),_0x5456b0['resolvedAt']=_0x45a5f3;})['catch'](_0x1ceb14=>{throw console['error'](_0x1ceb14),new _0x3b16ef('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4d6479,channelId:_0x214a0a,isFromAdapter:_0x465006}){if(!this['hasCommentThread'](_0x4d6479))throw new _0x3b16ef('commentsrepository-missing-comment-thread',null,{'threadId':_0x4d6479});const _0x440781=this['getCommentThread'](_0x4d6479);if(!_0x440781['isResolved'])throw new _0x3b16ef('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4d6479});if(_0x440781['resolvedBy']=null,_0x440781['resolvedAt']=null,_0x465006||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x12063e=this['context']['plugins']['get']('PendingActions'),_0x4fd2d4=_0x12063e['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x214a0a,'threadId':_0x4d6479})['then'](()=>_0x12063e['remove'](_0x4fd2d4))['catch'](_0x3ca310=>{throw console['error'](_0x3ca310),new _0x3b16ef('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5494a1,isFromAdapter:_0x2bebba}){const _0x48494a=this['getCommentThread'](_0x5494a1);if(!_0x48494a)throw new _0x3b16ef('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5494a1),this['_threads']['delete'](_0x5494a1),!_0x48494a['isSubmitted']||_0x2bebba||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5ab8a8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x142122}=_0x48494a,_0x55e254=_0x5ab8a8['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x142122,'threadId':_0x5494a1})['then'](()=>_0x5ab8a8['remove'](_0x55e254))['catch'](_0x53831e=>{throw console['error'](_0x53831e),new _0x3b16ef('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x239bf3,unlinkedAt:_0x12b080,context:_0x1a1c18,attributes:_0x18f6dc,isFromAdapter:_0x25df3d}){if('string'!=typeof _0x239bf3)throw new _0x3b16ef('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x239bf3});if(!this['hasCommentThread'](_0x239bf3))throw new _0x3b16ef('commentsrepository-missing-comment-thread',null,{'threadId':_0x239bf3});const _0x38febb=this['getCommentThread'](_0x239bf3);let _0x2f5c86=!0x1;if(void 0x0!==_0x1a1c18&&_0x38febb['context']!==_0x1a1c18&&(_0x38febb['context']=_0x1a1c18,_0x2f5c86=!0x0),void 0x0!==_0x12b080&&_0x38febb['unlinkedAt']!==_0x12b080&&(_0x38febb['unlinkedAt']=_0x12b080,_0x2f5c86=!0x0),_0x18f6dc&&!wt(_0x18f6dc,_0x38febb['attributes'])&&(_0x38febb['attributes']=_0x18f6dc,_0x2f5c86=!0x0),!_0x2f5c86)return Promise['resolve']();if(!_0x38febb['isSubmitted']||_0x25df3d||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x43ad6b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x240f3a}=_0x38febb,_0x557763=_0x43ad6b['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x240f3a,'threadId':_0x239bf3,'context':_0x1a1c18,'unlinkedAt':_0x12b080,'attributes':_0x18f6dc})['then'](()=>_0x43ad6b['remove'](_0x557763))['catch'](_0x424ed0=>{throw console['error'](_0x424ed0),new _0x3b16ef('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x35154b){const _0x589a8f=this['context']['plugins']['get'](O),_0x4f65b8=this['getCommentThread'](_0x35154b);if(_0x4f65b8['_isAttached']=!0x1,this['_threadToController']['has'](_0x4f65b8)){const _0x1d5a95=this['_threadToController']['get'](_0x4f65b8),_0x364b89=_0x1d5a95['view'],_0x5877ed=_0x589a8f['getByInnerView'](_0x364b89);this['_threadToController']['delete'](_0x4f65b8),this['_viewToController']['delete'](_0x364b89),_0x5877ed&&_0x589a8f['remove'](_0x5877ed),_0x1d5a95['destroy'](),_0x364b89['destroy']()['then'](()=>{this['_unbindEditors'](_0x364b89);});}}['_updateActiveAnnotation']({threadId:_0x40c566,resolvedAt:_0x348e72,unlinkedAt:_0x402c72}){const _0x495e88=!!_0x348e72,_0x10c7e8=this['context']['plugins']['get'](O),_0x3f4e4b=this['getCommentThread'](_0x40c566);if(this['_threadToController']['has'](_0x3f4e4b)){const _0x58369f=this['_threadToController']['get'](_0x3f4e4b)['view'],_0x31f5a1=_0x10c7e8['getByInnerView'](_0x58369f);_0x31f5a1&&(_0x495e88&&_0x10c7e8['_removeActiveAnnotation'](_0x31f5a1),_0x402c72?_0x31f5a1['isVisible']=!0x1:_0x31f5a1['refreshVisibility']());}}['_getExternalAuthor'](_0x340d04){const _0x459f08=this['context']['plugins']['get'](it),_0x39d740=pt('external:'+_0x340d04),_0x29c1a5=_0x459f08['getUser'](_0x39d740);return _0x29c1a5||_0x459f08['addUser']({'id':_0x39d740,'name':_0x340d04});}['_createNewComment']({threadId:_0xdc5588,commentId:_0x11073a=_0x437d75(),content:_0x4c5f4f,authorId:_0x3b1000,createdAt:_0x1855cb,attributes:_0x440830}){if('string'!=typeof _0x11073a)throw new _0x3b16ef('commentsrepository-invalid-commentid');if('string'!=typeof _0x3b1000)throw new _0x3b16ef('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4c5f4f||!_0x4c5f4f['trim']())throw new _0x3b16ef('commentsrepository-invalid-comment-content');const _0x57c790=this['context']['plugins']['get'](it)['getUser'](_0x3b1000);if(!_0x57c790)throw new _0x3b16ef('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x3b1000});let _0x9c475=null,_0x5c9fa6=_0x1855cb;return _0x440830?.['@external']&&(_0x9c475=this['_getExternalAuthor'](_0x440830['@external']['authorName']),_0x5c9fa6=new Date(_0x440830['@external']['createdAt'])),new fi(this,{'threadId':_0xdc5588,'id':_0x11073a,'author':_0x9c475||_0x57c790,'creator':_0x57c790,'content':_0x4c5f4f,'createdAt':_0x1855cb,'authoredAt':_0x5c9fa6,'attributes':_0x440830});}['_addComment'](_0x30a33f){let {threadId:_0x544a34,content:_0x10c839,attributes:_0x1e4385,isFromAdapter:_0x34b99f}=_0x30a33f;const _0x4e339e=this['getCommentThread'](_0x30a33f['threadId']);if(!_0x4e339e)throw new _0x3b16ef('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x169ef0=this['_createNewComment'](_0x30a33f),{id:_0x5c0707}=_0x169ef0;if(_0x4e339e['_add'](_0x169ef0),_0x34b99f||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x4e339e['isSubmitted'])return Promise['resolve']();const _0x3c1ef7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x244c28}=_0x4e339e,_0xd462fd=_0x3c1ef7['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1e4385||(_0x1e4385={}),this['adapter']['addComment']({'channelId':_0x244c28,'threadId':_0x544a34,'commentId':_0x5c0707,'content':_0x10c839,'attributes':_0x1e4385})['then'](_0x4cbee8=>{_0x3c1ef7['remove'](_0xd462fd),_0x4cbee8&&this['_updateComment']({'channelId':_0x244c28,'threadId':_0x544a34,'commentId':_0x5c0707,'createdAt':_0x4cbee8['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x219538=>{throw console['error'](_0x219538),new _0x3b16ef('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x151be0,commentId:_0x4eb8f0,content:_0x3992a6,createdAt:_0x43fea9,attributes:_0x23d56f,isFromAdapter:_0x522e8d}){if(void 0x0!==_0x3992a6&&('string'!=typeof _0x3992a6||!_0x3992a6['trim']()['length']))throw new _0x3b16ef('commentsrepository-update-comment-invalid-content');const _0x4027be=this['getCommentThread'](_0x151be0),_0x3600a8=_0x4027be['getComment'](_0x4eb8f0);if(!_0x3600a8)throw new _0x3b16ef('commentsrepository-update-missing-comment',this);let _0x2775d1=!0x1;if(_0x3992a6&&_0x3992a6!==_0x3600a8['content']&&(_0x3600a8['isEditable']||_0x522e8d)&&(_0x3600a8['content']=_0x3992a6,_0x2775d1=!0x0),_0x43fea9&&_0x43fea9!==_0x3600a8['createdAt']&&(_0x3600a8['createdAt']=_0x43fea9,_0x3600a8['attributes']&&_0x3600a8['attributes']['@external']||(_0x3600a8['authoredAt']=_0x43fea9),_0x2775d1=!0x0),_0x23d56f&&!wt(_0x23d56f,_0x3600a8['attributes'])&&(_0x3600a8['attributes']=_0x23d56f,_0x2775d1=!0x0),!_0x2775d1)return Promise['resolve']();if(_0x4027be['fire']('commentUpdated'),_0x522e8d||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x1b0548=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1d2baa}=this['getCommentThread'](_0x3600a8['threadId']),_0x45397d=_0x1b0548['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x1d2baa,'threadId':_0x151be0,'commentId':_0x4eb8f0,'content':_0x3992a6,'attributes':_0x23d56f})['then'](()=>_0x1b0548['remove'](_0x45397d))['catch'](_0x346b9d=>{throw console['error'](_0x346b9d),new _0x3b16ef('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1e9886,commentId:_0x105113,isFromAdapter:_0x5ef8cc}){const _0x23c75f=this['getCommentThread'](_0x1e9886),_0x4de0de=_0x23c75f['getComment'](_0x105113);if(!_0x4de0de)throw new _0x3b16ef('commentsrepository-remove-missing-comment',this);if(_0x23c75f['_remove'](_0x4de0de),_0x5ef8cc||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0xb92baf=this['context']['plugins']['get']('PendingActions'),{channelId:_0x27c54c}=_0x23c75f,_0x1e530c=_0xb92baf['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x27c54c,'threadId':_0x1e9886,'commentId':_0x105113})['then'](()=>_0xb92baf['remove'](_0x1e530c))['catch'](_0x13740a=>{throw console['error'](_0x13740a),new _0x3b16ef('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
+ _0x1f969f(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x5a37e1,_0x7e080f){super();const _0x58e4b4=_0x7e080f['isResolvable'];this['channelId']=_0x7e080f['channelId'],this['id']=_0x7e080f['id'],this['comments']=new _0x41f317(),this['_repository']=_0x5a37e1,this['_isAttached']=!0x1,this['_isSubmitted']=_0x7e080f['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x5a37e1,'_permissions',_0x5a37e1,'_readOnlyChannels',()=>_0x5a37e1['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x5a37e1,'_permissions',()=>_0x5a37e1['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x5a37e1,'_permissions',()=>{const _0x2b950e=_0x5a37e1['getPermissions'](this['channelId']);return _0x2b950e['write']||_0x2b950e['admin'];}),this['bind']('isResolvable')['to'](_0x5a37e1,'_permissions',()=>_0x58e4b4&&_0x5a37e1['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x7e080f['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x508665,_0x2ed708)=>_0x508665?_0x2ed708?_0x508665<_0x2ed708?_0x508665:_0x2ed708:_0x508665:_0x2ed708),this['set']('unlinkedAt',_0x7e080f['unlinkedAt']||null),this['set']('resolvedAt',_0x7e080f['resolvedAt']||null),this['set']('resolvedBy',_0x7e080f['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x10926e=>!!_0x10926e),this['set']('attributes',_0x7e080f['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x526e8f,_0x10c311)=>_0x526e8f+_0x10c311['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0xc4e2d2,id:_0x39426c}=this;this['_repository']['fire'](bt('submitCommentThread',_0xc4e2d2),{'channelId':_0xc4e2d2,'threadId':_0x39426c});}['setUnlinkedAt'](_0x3be963){this['_update']({'unlinkedAt':_0x3be963});}['resolve']({resolvedAt:_0x4e7d46=new Date(),resolvedBy:_0x4ea2de=null,isFromAdapter:_0x21fd3a=!0x1}={}){const _0x4a348b=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x34b1d6,id:_0x54a684}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x34b1d6),{'channelId':_0x34b1d6,'threadId':_0x54a684,'resolvedAt':_0x4e7d46,'resolvedBy':_0x4ea2de||_0x4a348b['id'],'isFromAdapter':_0x21fd3a});}['reopen']({isFromAdapter:_0x1b16eb=!0x1}={}){const {channelId:_0x221e5c,id:_0x585007}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x221e5c),{'channelId':_0x221e5c,'threadId':_0x585007,'isFromAdapter':_0x1b16eb});}['setContext'](_0xd1b096){this['context']||this['_update']({'context':_0xd1b096});}['setAttribute'](_0x4a117f,_0x5c16df){const _0x3cc622=It(this['attributes']);At(_0x3cc622,_0x4a117f,_0x5c16df),this['_update']({'attributes':_0x3cc622});}['removeAttribute'](_0x11a3c6){const _0x4f4870=It(this['attributes']);yt(_0x4f4870,_0x11a3c6),this['_update']({'attributes':_0x4f4870});}['remove']({isFromAdapter:_0x9e5fed=!0x1}={}){const {channelId:_0x532d5f,id:_0x2fd832}=this;this['_repository']['fire'](bt('removeCommentThread',_0x532d5f),{'channelId':_0x532d5f,'threadId':_0x2fd832,'isFromAdapter':_0x9e5fed});}['attachTo'](_0x57c993){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x57c993});}['addComment'](_0x123517){const {channelId:_0x1e3e05,id:_0x32d83f}=this;this['_repository']['fire'](bt('addComment',_0x1e3e05,_0x32d83f),Object['assign']({'channelId':_0x1e3e05,'threadId':_0x32d83f},_0x123517));}['getComment'](_0x5f560b){if('string'!=typeof _0x5f560b)throw new _0x3b16ef('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x5f560b});return this['comments']['get'](_0x5f560b);}['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'](_0x168398=>_0x168398['toJSON']()),'attributes':this['attributes']};}['_add'](_0x774b8b){return this['listenTo'](_0x774b8b,'change:authoredAt',()=>{const _0xc4dfb6=this['_findOptimalIndex'](_0x774b8b),_0x3b3db2=this['comments'];_0xc4dfb6-0x1!=_0x3b3db2['getIndex'](_0x774b8b)&&_0xc4dfb6+0x1!=_0x3b3db2['getIndex'](_0x774b8b)&&(this['_remove'](_0x774b8b),this['_add'](_0x774b8b));}),this['comments']['add'](_0x774b8b,this['_findOptimalIndex'](_0x774b8b));}['_update'](_0x1fb12f){const {channelId:_0x1ffb07,id:_0x5d8ec0}=this;this['_repository']['fire'](bt('updateCommentThread',_0x1ffb07),{..._0x1fb12f,'channelId':_0x1ffb07,'threadId':_0x5d8ec0});}['_remove'](_0x149118){return this['stopListening'](_0x149118),_0x149118['destroy'](),this['comments']['remove'](_0x149118);}['_findOptimalIndex'](_0x3bf708){const _0x22dbfd=this['comments']['find'](_0x521c74=>new Date(_0x521c74['authoredAt'])['getTime']()>new Date(_0x3bf708['authoredAt'])['getTime']());return _0x22dbfd?this['comments']['getIndex'](_0x22dbfd):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
+ _0x1f969f(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x234438,_0xf4909d){super();const _0x1ae9ac=_0x234438['context']['plugins']['get'](it)['me'],_0x2f6499=_0x234438['getCommentThread'](_0xf4909d['threadId']),_0x749029=0x0===_0x2f6499['comments']['length'],_0x550776=_0x1ae9ac===_0xf4909d['author'];this['id']=_0xf4909d['id'],this['threadId']=_0xf4909d['threadId'],this['author']=_0xf4909d['author'],this['creator']=_0xf4909d['creator'],this['isExternal']=Boolean(_0xf4909d['attributes']&&_0xf4909d['attributes']['@external']),this['set']('content',_0xf4909d['content']),this['createdAt']=_0xf4909d['createdAt']||new Date(),this['set']('authoredAt',_0xf4909d['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2f6499,'resolvedAt'),this['set']('attributes',_0xf4909d['attributes']||{}),this['bind']('isEditable')['to'](_0x234438,'_permissions',()=>{const _0x13d476=_0x234438['getPermissions'](_0x2f6499['channelId'])['write'],_0x4800b1=_0x234438['getPermissions'](_0x2f6499['channelId'])['modifyAll'];return _0x550776&&_0x13d476||!_0x550776&&_0x4800b1;}),this['bind']('isRemovable')['to'](_0x2f6499,'isRemovable',_0x234438,'_permissions',_0xa5f9e7=>{const _0x42edcf=_0x234438['getPermissions'](_0x2f6499['channelId'])['write'],_0x30be21=_0x234438['getPermissions'](_0x2f6499['channelId'])['modifyAll'];return _0x550776&&_0x42edcf||_0xa5f9e7&&_0x749029||!_0x550776&&_0x30be21&&!_0x749029;}),this['bind']('isReadOnly')['to'](_0x2f6499,'isReadOnly'),this['_repository']=_0x234438;}get['weight'](){return Math['max'](function(_0x169164){const _0x4a899c=document['createElement']('div');return _0x4a899c['innerHTML']=_0x169164,_0x4a899c['textContent']['length'];}(this['content']),0xc8);}['update'](_0x1da917){const {threadId:_0x4cae1c,id:_0x53af3e}=this;if(!this['_repository']['hasCommentThread'](_0x4cae1c))throw new _0x3b16ef('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x34ba19}=this['_repository']['getCommentThread'](_0x4cae1c);this['_repository']['fire'](bt('updateComment',_0x34ba19,_0x4cae1c),{'channelId':_0x34ba19,'threadId':_0x4cae1c,'commentId':_0x53af3e,..._0x1da917});}['setAttribute'](_0x387f8d,_0x27459c){const _0x87d870=It(this['attributes']);At(_0x87d870,_0x387f8d,_0x27459c),this['update']({'attributes':_0x87d870});}['removeAttribute'](_0x703431){const _0x33960d=It(this['attributes']);yt(_0x33960d,_0x703431),this['update']({'attributes':_0x33960d});}['remove'](_0x34128={}){if(!_0x34128['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x21cbb7,id:_0x4b977b}=this;if(!this['_repository']['hasCommentThread'](_0x21cbb7))throw new _0x3b16ef('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4f79ce}=this['_repository']['getCommentThread'](_0x21cbb7);this['_repository']['fire'](bt('removeComment',_0x4f79ce,_0x21cbb7),{'channelId':_0x4f79ce,'threadId':_0x21cbb7,'commentId':_0x4b977b,..._0x34128});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x4625ad,..._0x548250){for(const _0x1f7add of _0x548250)void 0x0!==_0x1f7add&&(_0x4625ad+=':'+String(_0x1f7add));return _0x4625ad;}class J extends _0x3906d3{['refresh'](){const _0x1a5824=this['editor']['model']['document']['selection'];for(const _0x5f44cd of _0x1a5824['getRanges']())if(this['_hasContent'](_0x5f44cd))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x1854f2=_0x437d75()}={}){const _0x2cf593=this['editor']['model'],_0x221222=[];for(const _0x141eaf of _0x2cf593['document']['selection']['getRanges']())this['_hasContent'](_0x141eaf)&&_0x221222['push'](this['_trimToContent'](_0x141eaf));_0x2cf593['change'](_0x3246d9=>{for(const _0x417ae8 of _0x221222){const _0x355272=_0x437d75()['substr'](0x1,0x5),_0xff66eb='comment:'+_0x1854f2+':'+_0x355272;_0x3246d9['addMarker'](_0xff66eb,{'range':_0x417ae8,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x2507da){for(const _0x4bddef of _0x2507da['getItems']())if(this['_itemIsContent'](_0x4bddef))return!0x0;return!0x1;}['_itemIsContent'](_0x4481ad){return _0x4481ad['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4481ad)&&!_0x4481ad['is']('element','tableCell');}['_trimToContent'](_0x703e5b){const _0x39f59f=_0xb4716=>!this['_itemIsContent'](_0xb4716['item']),_0x196ac4=_0x703e5b['start']['getLastMatchingPosition'](_0x39f59f),_0xc77ab9=_0x703e5b['end']['getLastMatchingPosition'](_0x39f59f,{'direction':'backward'});return this['editor']['model']['createRange'](_0x196ac4,_0xc77ab9);}}class P extends _0x387cbb{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54c283){super(_0x54c283),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x192e7b=this['editor'],_0x46df2b=_0x192e7b['model']['document']['selection'],_0x403b4b=_0x5d89fe(()=>this['refreshSelectedViews'](),0xa);_0x46df2b['on']('change:range',(_0x385e41,_0x373859)=>{_0x373859['directChange']&&(_0x403b4b['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x192e7b['editing']['view']['document'],'change:isFocused',(_0x123824,_0x199fcd,_0x40f16a)=>{_0x40f16a&&_0x403b4b();}),this['listenTo'](_0x192e7b['ui']['focusTracker'],'change:isFocused',(_0x9d9990,_0x4b3761,_0x589394)=>{_0x589394||_0x192e7b['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x3d1413=>this['_editorAnnotationsData']['has'](_0x3d1413['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x582622){if(this['_editorAnnotations']['has'](_0x582622['view']))return;this['_editorAnnotations']['add'](_0x582622['view']),this['editor']['ui']['focusTracker']['add'](_0x582622['view']['element']);const _0x56f50a=this['editor']['plugins']['get'](O);this['listenTo'](_0x56f50a['collection'],'remove',(_0x33d4a9,_0x58c128)=>{this['editor']['ui']['focusTracker']['remove'](_0x58c128['view']['element']),this['_editorAnnotations']['delete'](_0x58c128['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x2dab12){if('function'!=typeof _0x2dab12)throw new _0x3b16ef('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x2dab12);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1955cf,annotations:_0x37827d}){const _0x49a8b1=[],_0x40a356=this['editor']['model']['document']['selection'],_0x54f476=Array['from'](_0x40a356['getRanges']());for(const [_0x190e08,_0x3cb8c6]of this['_editorAnnotationsData']){const _0x6b1cfb=_0x37c7c9(_0x3cb8c6),_0x2aea41=_0x37827d['getByInnerView'](_0x190e08);_0x6b1cfb&&_0x2aea41&&_0x49a8b1['push']({'annotation':_0x2aea41,'range':_0x6b1cfb});}function _0x37c7c9(_0x44523f){for(const _0x3451c9 of _0x44523f)for(const _0x4ac548 of _0x54f476)if(_0x3451c9['containsRange'](_0x4ac548,!_0x40a356['isCollapsed']))return _0x3451c9;return null;}return _0x49a8b1['sort']((_0x44faa2,_0x36153d)=>{const _0x4e8094=_0x44faa2['range'],_0x52703c=_0x36153d['range'];if(!_0x4e8094['isEqual'](_0x52703c)){if(_0x4e8094['containsRange'](_0x52703c,!0x0))return 0x1;if(_0x52703c['containsRange'](_0x4e8094,!0x0))return-0x1;}return _0x44faa2['annotation']==_0x1955cf?-0x1:_0x36153d['annotation']==_0x1955cf?0x1:0x0;})['map'](_0x148013=>_0x148013['annotation']);}get['_editorAnnotationsData'](){const _0x51261b=new Map();for(const _0x29d717 of Array['from'](this['_dataCollectors']))for(const [_0x13680d,_0x391558]of _0x29d717())_0x51261b['set'](_0x13680d,_0x391558);return _0x51261b;}}class st extends _0x387cbb{['afterInit'](){const _0x3e7dca=this['editor'];if(!_0x3e7dca['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3e7dca['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x387cbb{constructor(_0x2df3f1){super(_0x2df3f1),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x4ff054=this['editor'],_0x1eb00c=_0x4ff054['commands']['get']('importWord'),_0x5ed1a4=_0x4ff054['plugins']['get'](it);_0x1eb00c&&(_0x1eb00c['on']('execute',(_0x5cdfa,[,_0x40aeda])=>{_0x40aeda['collaboration_features']={'comments':!0x0,'user_id':_0x5ed1a4['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1eb00c,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x56e796,_0x13e922){const {comment_threads:_0x286d50}=_0x13e922;_0x286d50&&_0x286d50['forEach'](({thread_id:_0x36ffce,comments:_0x7ff8e3,is_resolved:_0xe24b6})=>{const _0x3530d7=new Date(),_0x5ebefb=_0x7ff8e3['map'](({author:_0x446355,content:_0x291d1f,created_at:_0x11b0d7})=>({'content':_0x291d1f,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x3530d7,'attributes':{'@external':{'authorName':_0x446355,'createdAt':_0x11b0d7?new Date(_0x11b0d7):new Date(),'source':'importWord'}}})),_0x2aa634=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x2aa634,'threadId':_0x36ffce,'comments':_0x5ebefb,'resolvedAt':_0xe24b6?_0x3530d7:null});});}}class at extends _0x387cbb{constructor(_0x26d1ee){super(_0x26d1ee),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x5d8caf=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5d8caf,'contentInsertion',(_0x51acf0,_0x2e23dc)=>this['_removeMarkersWithoutThreads'](_0x2e23dc['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x30604e){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x30604e;const _0x19b363=this['editor']['plugins']['get']('CommentsRepository');for(const _0x4cbd53 of _0x30604e['keys']()){const [_0x1e95aa,_0x5a5641]=_0x4cbd53['split'](':');'comment'!=_0x1e95aa||_0x19b363['hasCommentThread'](_0x5a5641)||_0x30604e['delete'](_0x4cbd53);}return _0x30604e;}['_registerMarkerInClipboardPipeline'](){const _0x464dcf=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x334ce9=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x334ce9&&_0x464dcf['_registerMarkerToCopy']('comment',_0x334ce9);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0xa9e945){switch(_0xa9e945){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 _0x387cbb{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x26a602,_0x261b34)=>{if(!_0x261b34['options']['showCommentHighlights'])return null;if(_0x261b34['options']['ignoreResolvedComments']){const {id:_0x467a9d}=er(_0x26a602['markerName']),_0xc787d8=this['editor']['plugins']['get'](o);if(_0xc787d8['getCommentThread'](_0x467a9d)?.['isResolved']&&_0x26a602['item'])return _0x261b34['consumable']['consume'](_0x26a602['item'],'addMarker:'+_0x26a602['markerName']),_0x261b34['consumable']['consume'](_0x26a602['item'],'removeMarker:'+_0x26a602['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x274f32=>{_0x274f32['on']('addMarker:comment',(_0xf1723,_0x3fe4ef,_0x3ad96d)=>{if(!_0x3ad96d['options']['showCommentHighlights'])return;const _0x46cbbb=_0x3fe4ef['item'];if(!_0x46cbbb)return;const _0x20f957=_0x3ad96d['mapper']['toViewElement'](_0x46cbbb);this['editor']['model']['schema']['isObject'](_0x46cbbb)&&_0x20f957&&!_0x20f957['getCustomProperty']('widget')&&_0x20f957['is']('containerElement')&&_0x43117b(_0x20f957,_0x3ad96d['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x423850,{writer:_0x311396,options:_0x3d24e1})=>{if(!_0x3d24e1['showCommentHighlights'])return null;const _0x2543a7=_0x311396['createContainerElement']('div'),_0x411b24=_0x311396['createEmptyElement']('hr');return _0x311396['addClass']('ck-horizontal-line',_0x2543a7),_0x311396['insert'](_0x311396['createPositionAt'](_0x2543a7,0x0),_0x411b24),_0x2543a7;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x2dd09a,{writer:_0x15a2ad,options:_0x198e04})=>{if(!_0x198e04['showCommentHighlights'])return null;const _0x33c82f=_0x15a2ad['createContainerElement']('span'),_0x362672=_0x15a2ad['createEmptyElement']('img');return _0x15a2ad['addClass']('image-inline',_0x33c82f),_0x15a2ad['insert'](_0x15a2ad['createPositionAt'](_0x33c82f,0x0),_0x362672),_0x33c82f;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4b7651,{writer:_0x243544,options:_0x4792af})=>{if(_0x4792af['showCommentHighlights'])return _0x243544['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x28201b,_0x5b8528,_0x50c83f)=>{_0x50c83f['options']['showCommentHighlights']&&_0x28201b['stop']();},{'priority':'high'});}}class r extends _0x387cbb{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(_0x1b7175){super(_0x1b7175),this['set']('isThreadsLoadingPaused',!0x0),_0x1b7175['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x27ae31,_0x14024d,_0x186dfe,_0x1b79b1)=>{const _0x38c194=_0x1b7175['plugins']['get'](o),_0x58cc33=_0x186dfe?er(_0x186dfe)['id']:null;_0x1b7175['model']['change'](()=>{if(_0x58cc33){const _0x4bb7b3=this['getAllMarkersForId'](_0x58cc33);for(const _0x22c7b3 of _0x4bb7b3)_0x1b7175['editing']['reconvertMarker'](_0x22c7b3);}if(_0x1b79b1){const {id:_0x160437}=er(_0x1b79b1),_0x48c60f=_0x38c194['getCommentThread'](_0x160437);if(_0x48c60f&&_0x48c60f['unlinkedAt'])return;if(_0x48c60f&&!_0x48c60f['isAttached'])return;const _0x10f406=this['getAllMarkersForId'](_0x160437);for(const _0x2f4507 of _0x10f406)_0x1b7175['editing']['reconvertMarker'](_0x2f4507);}}),_0x58cc33&&this['scrollToThreadMarker'](_0x58cc33);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5480ea=this['editor'],_0x5781f7=_0x5480ea['plugins']['get'](o),_0x27789e=_0x5480ea['config']['get']('collaboration.channelId'),_0x48891b=_0x5781f7['getCommentThreads']()['filter'](_0x70f9ed=>_0x70f9ed['channelId']!==_0x27789e);_0x5480ea['commands']['add']('addCommentThread',new J(_0x5480ea)),this['listenTo'](_0x5480ea,'change:isReadOnly',(_0x314cfa,_0x37666b,_0x5e5c3e)=>{_0x5781f7['switchReadOnly'](_0x5e5c3e,_0x5480ea['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5781f7,ft('addCommentThread',_0x27789e),(_0xf01a1f,{threadId:_0x3bc254})=>{const _0x55e43d=this['editor']['plugins']['get'](o)['getCommentThread'](_0x3bc254);_0x55e43d?.['unlinkedAt']&&this['_attachArchivedThread'](_0x3bc254);}),this['listenTo'](_0x5781f7,ft('removeCommentThread',_0x27789e),(_0x43f92b,{threadId:_0x2e6685})=>{_0x5480ea['model']['enqueueChange']({'isUndoable':!0x1},_0x3a9853=>{const _0x2270ea=this['getAllMarkersForId'](_0x2e6685);for(const _0x3f2610 of _0x2270ea)_0x3a9853['removeMarker'](_0x3f2610);});}),this['listenTo'](_0x5781f7,ft('resolveCommentThread',_0x27789e),(_0x59aed7,{threadId:_0x46b503})=>{(this['_reconvertMarkers'](_0x46b503),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x46b503)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5781f7,ft('reopenCommentThread',_0x27789e),(_0x203863,{threadId:_0x2838bb})=>{this['_reconvertMarkers'](_0x2838bb);},{'priority':'low'}),this['listenTo'](_0x5781f7,ft('addComment',_0x27789e),(_0x5b2ecc,{threadId:_0x50a778,isFromAdapter:_0x2256ef})=>{const _0x5e2f4e=this['getAllMarkersForId'](_0x50a778);if(_0x2256ef||0x0==_0x5e2f4e['length']||!_0x5781f7['hasCommentThread'](_0x50a778))return;0x1===_0x5781f7['getCommentThread'](_0x50a778)['length']&&_0x5480ea['model']['enqueueChange']({'isUndoable':!0x1},_0x238fd0=>{for(const _0x336b35 of _0x5e2f4e)_0x238fd0['updateMarker'](_0x336b35,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x48891b);}['afterInit'](){!async function(_0x295748){const _0x23f817=_0x2735cb([0x53,0x45,0x44,0x70,0x56,0x5a,0x7a,0x67,0x4f,0x39,0x74,0x4e,0x6d,0x4b,0x75,0x69,0x66,0x64,0x32,0x30,0x36,0x61,0x46,0x37,0x42,0x58,0x48,0x43,0x54,0x73,0x63,0x33,0x78,0x57,0x31,0x34,0x4c,0x6c,0x71,0x59,0x38,0x72,0x4a,0x41,0x79,0x68,0x4d,0x6a,0x55,0x76,0x47,0x62,0x6b,0x77,0x6e,0x52,0x49,0x6f,0x51,0x35,0x65,0x50]),_0x18a0a4=0x1458ce0b,_0x2f0db4=0x145fa72b^_0x18a0a4,_0x49d7da=window[_0x2735cb([0x44,0x61,0x74,0x65])][_0x2735cb([0x6e,0x6f,0x77])](),_0x1d1e8b=_0x295748[_0x2735cb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e7a14=new window[(_0x2735cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35163b=>{_0x1d1e8b[_0x2735cb([0x6f,0x6e,0x63,0x65])](_0x2735cb([0x72,0x65,0x61,0x64,0x79]),_0x35163b);}),_0x2d6da6={[_0x2735cb([0x6b,0x74,0x79])]:_0x2735cb([0x45,0x43]),[_0x2735cb([0x75,0x73,0x65])]:_0x2735cb([0x73,0x69,0x67]),[_0x2735cb([0x63,0x72,0x76])]:_0x2735cb([0x50,0x2d,0x32,0x35,0x36]),[_0x2735cb([0x78])]:_0x2735cb([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]),[_0x2735cb([0x79])]:_0x2735cb([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]),[_0x2735cb([0x61,0x6c,0x67])]:_0x2735cb([0x45,0x53,0x32,0x35,0x36])},_0x7d5259=_0x1d1e8b[_0x2735cb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2735cb([0x67,0x65,0x74])](_0x2735cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x590de1(){let _0xd24d2a,_0x20e1e5=null,_0x2a95d4=null;try{if(_0x7d5259==_0x2735cb([0x47,0x50,0x4c]))return _0x2735cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd24d2a=_0x2ed3b6(),!_0xd24d2a)return _0x2735cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd24d2a[_0x2735cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a95d4=_0x5d3fa1(_0xd24d2a[_0x2735cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd24d2a[_0x2735cb([0x6a,0x74,0x69])])),await _0x29bedd()?_0x5dd68b()?_0x1b7e40()?_0x2735cb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a0a15()?(_0xd24d2a[_0x2735cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2735cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x20e1e5=_0x1d762b(_0x2735cb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd24d2a[_0x2735cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2735cb([0x74,0x72,0x69,0x61,0x6c])&&(_0x20e1e5=_0x1d762b(_0x2735cb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3136fa()):_0x2735cb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2735cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2735cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2735cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b7e40(){const _0x2638b9=[_0x2735cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2735cb([0x74,0x72,0x69,0x61,0x6c])][_0x2735cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd24d2a[_0x2735cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49d7da/0x3e8:0xe10*_0x2f0db4;return _0xd24d2a[_0x2735cb([0x65,0x78,0x70])]<_0x2638b9;}function _0x5dd68b(){const _0x332629=_0xd24d2a[_0x2735cb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x332629)return!0x1;if(_0x332629[_0x2735cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2735cb([0x2a])))return!0x0;if(_0x332629[_0x2735cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2735cb([0x43,0x4d,0x54])))return!0x0;if(_0x332629[_0x2735cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2735cb([0x52,0x43,0x4d,0x54]))){if(_0x3ff2b3())return!0x0;if(_0x1515c1()||_0x3115f0())return!0x0;}return!0x1;}function _0x2a0a15(){const _0x1ebeed=_0xd24d2a[_0x2735cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ebeed||0x0==_0x1ebeed[_0x2735cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e703d}=new URL(window[_0x2735cb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ebeed[_0x2735cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e703d))return!0x0;const _0x573eb5=_0x2e703d[_0x2735cb([0x73,0x70,0x6c,0x69,0x74])](_0x2735cb([0x2e]));return _0x1ebeed[_0x2735cb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf51413=>_0xf51413[_0x2735cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2735cb([0x2a])))[_0x2735cb([0x6d,0x61,0x70])](_0x4e4778=>_0x4e4778[_0x2735cb([0x73,0x70,0x6c,0x69,0x74])](_0x2735cb([0x2e])))[_0x2735cb([0x73,0x6f,0x6d,0x65])](_0x413980=>_0x573eb5[_0x2735cb([0x65,0x76,0x65,0x72,0x79])]((_0x4b487e,_0x287fec)=>_0x413980[_0x287fec]===_0x4b487e||_0x413980[_0x287fec]===_0x2735cb([0x2a])));}function _0x3136fa(){return _0x20e1e5&&_0x2a95d4?new window[(_0x2735cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5edb1d,_0x3afe36)=>{_0x20e1e5[_0x2735cb([0x74,0x68,0x65,0x6e])](_0x5edb1d,_0x3afe36),_0x2a95d4[_0x2735cb([0x74,0x68,0x65,0x6e])](_0x22e59f=>{_0x22e59f!=_0x2735cb([0x56,0x61,0x6c,0x69,0x64])&&_0x5edb1d(_0x22e59f);},_0x3afe36);}):_0x20e1e5||_0x2a95d4||_0x2735cb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d3fa1(_0x4c2671,_0x3f6735){return new window[(_0x2735cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172556=>{if(_0x2860e6())return _0x172556(_0x2735cb([0x56,0x61,0x6c,0x69,0x64]));_0x1bce52(),_0x1d1e8b[_0x2735cb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2735cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x408a70=!0x1;const _0x24c2cc=_0x437d75();function _0x4fb98a(_0x6ff9ea){return!!_0x6ff9ea&&(typeof _0x6ff9ea===_0x2735cb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6ff9ea===_0x2735cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6ff9ea[_0x2735cb([0x74,0x68,0x65,0x6e])]===_0x2735cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6ff9ea[_0x2735cb([0x63,0x61,0x74,0x63,0x68])]===_0x2735cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1250da(_0x21df98){_0xc57fef(_0x21df98)[_0x2735cb([0x74,0x68,0x65,0x6e])](_0x224537=>{if(!_0x224537||_0x224537[_0x2735cb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2735cb([0x6f,0x6b]))return _0x2735cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e01f9(_0x23f628(_0x24c2cc+_0x3f6735))!=_0x224537[_0x2735cb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2735cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2735cb([0x56,0x61,0x6c,0x69,0x64]);})[_0x2735cb([0x74,0x68,0x65,0x6e])](_0x140f22=>(_0x2c5d81(),_0x140f22),()=>{const _0xb917fd=_0x3fe6eb();return null==_0xb917fd?(_0x2c5d81(),_0x2735cb([0x56,0x61,0x6c,0x69,0x64])):_0x2735cb(_0x49d7da-_0xb917fd>(0x30544a0b^_0x18a0a4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2735cb([0x74,0x68,0x65,0x6e])](_0x172556)[_0x2735cb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x172556(_0x2735cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d82b6=0x146e208b^_0x18a0a4;function _0x2c5d81(){const _0x793693=_0x2735cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e01f9(_0x23f628(_0x4c2671)),_0x238e38=_0x2861a7(_0x1e01f9(window[_0x2735cb([0x4d,0x61,0x74,0x68])][_0x2735cb([0x63,0x65,0x69,0x6c])](_0x49d7da/_0x3d82b6)));window[_0x2735cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2735cb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x793693,_0x238e38);}function _0x3fe6eb(){const _0xcc210d=_0x2735cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e01f9(_0x23f628(_0x4c2671)),_0x22cc87=window[_0x2735cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2735cb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcc210d);return _0x22cc87?window[_0x2735cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2861a7(_0x22cc87),0x10)*_0x3d82b6:null;}function _0xc57fef(_0x18a07d){return new window[(_0x2735cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x308085,_0x348c72)=>{_0x18a07d[_0x2735cb([0x74,0x68,0x65,0x6e])](_0x308085,_0x348c72),window[_0x2735cb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x348c72,0x14591acb^_0x18a0a4);});}}_0x1d1e8b[_0x2735cb([0x6f,0x6e])](_0x2735cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x346ce6,_0x16a9c3)=>{if(_0x16a9c3[0x0]!=_0x4c2671)return _0x172556(_0x2735cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16a9c3[0x1]={..._0x16a9c3[0x1],[_0x2735cb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24c2cc};},{[_0x2735cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2735cb([0x68,0x69,0x67,0x68])}),_0x1d1e8b[_0x2735cb([0x6f,0x6e])](_0x2735cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd2973b=>{_0x4fb98a(_0xd2973b[_0x2735cb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x408a70=!0x0,_0x1250da(_0xd2973b[_0x2735cb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2735cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2735cb([0x6c,0x6f,0x77])}),_0x4e7a14[_0x2735cb([0x74,0x68,0x65,0x6e])](()=>{_0x408a70||_0x172556(_0x2735cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2860e6(){return _0x1d1e8b[_0x2735cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2735cb([0x76,0x69,0x65,0x77])][_0x2735cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2735cb([0x61,0x75,0x74,0x6f]);}function _0x1bce52(){_0x1d1e8b[_0x2735cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2735cb([0x76,0x69,0x65,0x77])][_0x2735cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2735cb([0x61,0x75,0x74,0x6f]);}}function _0x1d762b(_0x64363){const _0x567e89=[new window[(_0x2735cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1753b4=>setTimeout(_0x1753b4,0x1451f0c7^_0x18a0a4)),_0x4e7a14[_0x2735cb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2735cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16f85b=>{let _0x337c46=0x0;_0x1d1e8b[_0x2735cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2735cb([0x6f,0x6e])](_0x2735cb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x129f07,_0x11fbc0)=>{_0x11fbc0[0x0][_0x2735cb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x337c46++,_0x337c46==(0x1458cff3^_0x18a0a4)&&(_0x16f85b(),_0x129f07[_0x2735cb([0x6f,0x66,0x66])]());});}))];return window[_0x2735cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2735cb([0x72,0x61,0x63,0x65])](_0x567e89)[_0x2735cb([0x74,0x68,0x65,0x6e])](()=>_0x64363);}async function _0x26e7cc(){await _0x4e7a14,_0x1d1e8b[_0x2735cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2735cb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55a20f,_0x1d1e8b[_0x2735cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2735cb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55a20f,_0x1d1e8b[_0x2735cb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2735cb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ff2b3(){return _0x8d97bc(_0x2735cb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3549b4(_0x2735cb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2735cb([0x73,0x74,0x61,0x74,0x65])]==_0x2735cb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1515c1(){return _0x8d97bc(_0x2735cb([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 _0x3115f0(){return _0x8d97bc(_0x2735cb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4542f7(_0x1ebb51){const _0x5a8bbf=_0x44b094();_0x1d1e8b[_0x5a8bbf]=_0x2735cb([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ebb51,_0x1ebb51!=_0x2735cb([0x56,0x61,0x6c,0x69,0x64])&&_0x26e7cc();}function _0x44b094(){const _0x4e84f1=window[_0x2735cb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2735cb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2735cb([0x6e,0x6f,0x77])]())[_0x2735cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2735cb([0x2e]),'');let _0x1cb9be=_0x2735cb([0x53]);for(let _0xc6c0f4=0x0;_0xc6c0f4<_0x4e84f1[_0x2735cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc6c0f4+=0x2){let _0x40c287=window[_0x2735cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e84f1[_0x2735cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc6c0f4,_0xc6c0f4+0x2));_0x40c287>=_0x23f817[_0x2735cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40c287-=_0x23f817[_0x2735cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1cb9be+=_0x23f817[_0x40c287];}return _0x1cb9be;}function _0x2ed3b6(){const _0x3d800a=_0x7d5259[_0x2735cb([0x73,0x70,0x6c,0x69,0x74])](_0x2735cb([0x2e]));if(0x3!=_0x3d800a[_0x2735cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35e91a(_0x3d800a[0x1]);function _0x35e91a(_0x2800c9){const _0x28c93e=_0xf734bd(_0x2800c9);return _0x28c93e&&_0x4ce526()?_0x28c93e:null;function _0x4ce526(){const _0x1b9368=_0x28c93e[_0x2735cb([0x6a,0x74,0x69])],_0x3fbb99=window[_0x2735cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b9368[_0x2735cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b9368[_0x2735cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4759dd={..._0x28c93e,[_0x2735cb([0x6a,0x74,0x69])]:_0x1b9368[_0x2735cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b9368[_0x2735cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4759dd[_0x2735cb([0x76,0x63])],_0x23f628(_0x4759dd)==_0x3fbb99;}}}async function _0x29bedd(){let _0x140f0e=!0x0;try{const _0x243d93=_0x7d5259[_0x2735cb([0x73,0x70,0x6c,0x69,0x74])](_0x2735cb([0x2e])),[_0x19ced5,_0x13bbc3,_0x1f254e]=_0x243d93;return _0x2c193f(_0x19ced5),await _0x5ca520(_0x19ced5,_0x13bbc3,_0x1f254e),_0x140f0e;}catch{return!0x1;}function _0x2c193f(_0x54b6fd){const _0x1e50ce=_0xf734bd(_0x54b6fd);_0x1e50ce&&_0x1e50ce[_0x2735cb([0x61,0x6c,0x67])]==_0x2735cb([0x45,0x53,0x32,0x35,0x36])||(_0x140f0e=!0x1);}async function _0x5ca520(_0x590bc9,_0x291bf6,_0x42c376){const _0x26014a=window[_0x2735cb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2735cb([0x66,0x72,0x6f,0x6d])](_0x22d8af(_0x42c376),_0x5067bc=>_0x5067bc[_0x2735cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21bb06=new window[(_0x2735cb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2735cb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x590bc9+_0x2735cb([0x2e])+_0x291bf6),_0x3f56fe=window[_0x2735cb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2735cb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f56fe)return;const _0x3faa48=await _0x3f56fe[_0x2735cb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2735cb([0x6a,0x77,0x6b]),_0x2d6da6,{[_0x2735cb([0x6e,0x61,0x6d,0x65])]:_0x2735cb([0x45,0x43,0x44,0x53,0x41]),[_0x2735cb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2735cb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2735cb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f56fe[_0x2735cb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2735cb([0x6e,0x61,0x6d,0x65])]:_0x2735cb([0x45,0x43,0x44,0x53,0x41]),[_0x2735cb([0x68,0x61,0x73,0x68])]:{[_0x2735cb([0x6e,0x61,0x6d,0x65])]:_0x2735cb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3faa48,_0x26014a,_0x21bb06)||(_0x140f0e=!0x1);}}function _0xf734bd(_0x35a06d){return _0x35a06d[_0x2735cb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2735cb([0x65,0x79]))?JSON[_0x2735cb([0x70,0x61,0x72,0x73,0x65])](_0x22d8af(_0x35a06d)):null;}function _0x22d8af(_0x338c27){return window[_0x2735cb([0x61,0x74,0x6f,0x62])](_0x338c27[_0x2735cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2735cb([0x2b]))[_0x2735cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2735cb([0x2f])));}function _0x23f628(_0x691535){let _0x6096c3=0x1505;function _0xeebca(_0x4795fa){for(let _0x235375=0x0;_0x235375<_0x4795fa[_0x2735cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x235375++){const _0x155c18=_0x4795fa[_0x2735cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x235375);_0x6096c3=(_0x6096c3<<0x5)+_0x6096c3+_0x155c18,_0x6096c3&=_0x6096c3;}}function _0x39cf42(_0x2376cf){Array[_0x2735cb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2376cf)?_0x2376cf[_0x2735cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39cf42):_0x2376cf&&typeof _0x2376cf==_0x2735cb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2735cb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2376cf)[_0x2735cb([0x73,0x6f,0x72,0x74])]()[_0x2735cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5f2d71,_0x32cbd0])=>{_0xeebca(_0x5f2d71),_0x39cf42(_0x32cbd0);}):_0xeebca(window[_0x2735cb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2376cf));}return _0x39cf42(_0x691535),_0x6096c3>>>0x0;}function _0x1e01f9(_0x102d51){return _0x102d51[_0x2735cb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2735cb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2735cb([0x30]));}function _0x2861a7(_0x4b678e){return _0x4b678e[_0x2735cb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2735cb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2735cb([0x6a,0x6f,0x69,0x6e])]('');}function _0x8d97bc(_0x477ac3){return _0x1d1e8b[_0x2735cb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2735cb([0x68,0x61,0x73])](_0x477ac3);}function _0x3549b4(_0x5e0ffc){return _0x1d1e8b[_0x2735cb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2735cb([0x67,0x65,0x74])](_0x5e0ffc);}function _0x55a20f(){}function _0x2735cb(_0x525c8c){return _0x525c8c['map'](_0x29ae27=>String['fromCharCode'](_0x29ae27))['join']('');}_0x4542f7(await _0x590de1());}(this);}['destroy'](){const _0x443693=this['editor']['plugins']['get'](o),_0x5b6a8f=this['editor']['config']['get']('collaboration.channelId');for(const _0x133615 of _0x443693['getCommentThreads']({'channelId':_0x5b6a8f}))_0x443693['_detachCommentThread'](_0x133615['id']),_0x443693['_threads']['delete'](_0x133615['id']);super['destroy']();}['hasMarkerForId'](_0x27bed6){return this['getAllMarkersForId'](_0x27bed6)['length']>0x0;}['getAllMarkersForId'](_0xa0ef85){const _0x3aadc4=[];for(const _0x114b86 of this['editor']['model']['markers'])_0x114b86['name']['startsWith']('comment:'+_0xa0ef85)&&_0x3aadc4['push'](_0x114b86);return _0x3aadc4;}['scrollToThreadMarker'](_0x990f73){const _0x40a013=this['_getTargetForId'](_0x990f73);_0x40a013&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x990f73&&rt({'target':_0x40a013[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x1657c6){this['editor']['model']['change'](()=>{for(const _0x2cc999 of this['getAllMarkersForId'](_0x1657c6))this['editor']['editing']['reconvertMarker'](_0x2cc999);});}['_attachArchivedThread'](_0x8406b5){const _0x30edff=this['editor']['plugins']['get'](o),_0x162479=this['editor']['plugins']['get'](P),_0x406b7a=_0x30edff['getCommentThread'](_0x8406b5);if(!_0x406b7a['isAttached']){const _0x5843f9=_0x406b7a['attachTo'](()=>this['_getTargetForId'](_0x406b7a['id']));_0x162479['registerAnnotation'](_0x5843f9),_0x406b7a['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x16b395=this['editor'],_0x4c64da=_0x16b395['plugins']['get'](it);_0x16b395['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x5d6c9d,_0xecb1f3)=>{const {id:_0x23c646}=er(_0x5d6c9d['markerName']),_0x5c9d85=_0x16b395['plugins']['get'](o)['getCommentThread'](_0x23c646),_0x15fb5d=this['activeMarker']&&er(this['activeMarker'])['id']===_0x23c646;let _0x711890;if(_0x5c9d85&&_0x5c9d85['isResolved']&&!_0x15fb5d&&_0x5d6c9d['item'])return _0xecb1f3['consumable']['consume'](_0x5d6c9d['item'],'addMarker:'+_0x5d6c9d['markerName']),_0xecb1f3['consumable']['consume'](_0x5d6c9d['item'],'removeMarker:'+_0x5d6c9d['markerName']),null;const _0x46e705=['ck-comment-marker'];return _0x15fb5d&&_0x46e705['push']('ck-comment-marker--active'),_0x711890=_0x5c9d85?.['length']?_0x5c9d85['comments']['first']['author']['id']:_0x4c64da['me']['id'],{'classes':_0x46e705,'attributes':{'data-comment':_0x23c646,'data-author-id':_0x711890}};}}),_0x16b395['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x518060,{options:_0x3cef00})=>{if(_0x3cef00['showCommentHighlights'])return null;const _0x12c0ec=_0x16b395['plugins']['get'](o),_0x2cec90=_0x16b395['model']['markers']['get'](_0x518060),{id:_0x400137,part:_0x4035b9}=er(_0x518060);return _0x2cec90&&!_0x2cec90['affectsData']||_0x3cef00['ignoreResolvedComments']&&_0x12c0ec['getCommentThread'](_0x400137)?.['isResolved']?null:{'group':'comment','name':_0x4035b9?_0x400137+':'+_0x4035b9:_0x400137};}}),_0x16b395['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5630de,{writer:_0x29b68a})=>_0x29b68a['createElement']('$marker',{'data-name':'comment:'+_0x5630de['getAttribute']('id')})}),_0x16b395['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3f2928=this['editor'],_0x1a5f03=_0x3f2928['plugins']['get'](o),_0x2eeadf=new Set(),_0x5c447b=new Set();_0x3f2928['model']['document']['registerPostFixer'](_0x1cc7b2=>{let _0x44836d=!0x1;for(const {name:_0x5f4330,data:_0x15c0d3}of _0x3f2928['model']['document']['differ']['getChangedMarkers']()){const {group:_0x48ab9d,id:_0x26545b}=er(_0x5f4330);let _0x55f364=_0x15c0d3['newRange'];if('comment'!==_0x48ab9d||!_0x55f364)continue;const _0x28419a='$graveyard'===_0x55f364['root']['rootName'];_0x28419a||(_0x55f364=dt(_0x55f364,_0x3f2928['model']),!_0x55f364||_0x55f364['isCollapsed']||!_0x15c0d3['newRange']||_0x55f364['isEqual'](_0x15c0d3['newRange']))?_0x3f2928['model']['hasContent'](_0x55f364)&&!_0x28419a?this['isThreadsLoadingPaused']?_0x2eeadf['add'](_0x5f4330):this['_handleThreadMarker'](_0x5f4330,_0x26545b):(_0x5c447b['add'](_0x5f4330),_0x2eeadf['delete'](_0x5f4330),_0x1cc7b2['removeMarker'](_0x5f4330),_0x44836d=!0x0):(_0x1cc7b2['updateMarker'](_0x5f4330,{'range':_0x55f364}),_0x44836d=!0x0);}return _0x44836d;}),this['on']('change:isThreadsLoadingPaused',(_0x79cca8,_0xb76b0,_0x46b6cc)=>{if(!_0x46b6cc&&_0x2eeadf['size'])for(const _0xc3af0a of _0x2eeadf){const {id:_0x55a2f1}=er(_0xc3af0a);_0x2eeadf['delete'](_0xc3af0a),_0x3f2928['model']['markers']['get'](_0xc3af0a)&&this['_handleThreadMarker'](_0xc3af0a,_0x55a2f1);}}),this['listenTo'](_0x3f2928['model']['document'],'change',()=>{for(const {name:_0x39edda,data:{newRange:_0x5f5198}}of _0x3f2928['model']['document']['differ']['getChangedMarkers']()){const {group:_0x734db4,id:_0x1d7a8e}=er(_0x39edda);if('comment'!==_0x734db4)continue;const _0x5144f0=_0x1a5f03['getCommentThread'](_0x1d7a8e),_0x33ecc7=this['hasMarkerForId'](_0x1d7a8e);_0x5144f0&&(!_0x5144f0['_hasTargetInContent']&&_0x5f5198&&_0x3f2928['editing']['view']['once']('render',()=>{const _0x2c94d6=_0x3f2928['plugins']['get'](O),_0x110b7b=_0x1a5f03['_threadToController']['get'](_0x5144f0)['view'];_0x2c94d6['getByInnerView'](_0x110b7b)['refreshVisibility']();},{'priority':'low'}),_0x5144f0['_hasTargetInContent']=_0x33ecc7||!!_0x5f5198),_0x5f5198||(_0x5c447b['add'](_0x39edda),_0x2eeadf['delete'](_0x39edda));}for(const _0x3cf388 of _0x5c447b){const {id:_0x453a2c}=er(_0x3cf388),_0x278041=_0x1a5f03['getCommentThread'](_0x453a2c);if(_0x2eeadf['delete'](_0x3cf388),!_0x278041)continue;const _0x3a9ef6=this['hasMarkerForId'](_0x453a2c);_0x3a9ef6||_0x278041['isSubmitted']?_0x3a9ef6||_0x278041['unlinkedAt']||_0x278041['setUnlinkedAt'](new Date()):_0x278041['remove']();}_0x5c447b['clear']();});}['_handleInitialThreads'](_0x1efaeb){_0x1efaeb['forEach'](_0x3b5f76=>{_0x3b5f76['unlinkedAt']&&this['_attachArchivedThread'](_0x3b5f76['id']);});}['_getTargetForId'](_0x9483be){const _0x11f87b=this['editor'],_0x53de90=this['getAllMarkersForId'](_0x9483be);return et(_0x11f87b['editing'],_0x53de90);}['_getTextContext'](_0x4c8f01){const _0x5080d7=this['getAllMarkersForId'](_0x4c8f01);let _0xf77d3e='',_0x395c50=!0x1;for(const _0x20f628 of _0x5080d7){const _0x30ee66=_0x20f628['getRange']();for(const _0x7207c8 of Array['from'](_0x30ee66['getItems']()))_0x7207c8['is']('$textProxy')?(_0xf77d3e&&_0x395c50&&(_0xf77d3e+='\x20',_0x395c50=!0x1),_0xf77d3e+=_0x7207c8['data']):_0x395c50=!0x0;_0x395c50=!0x0;}return _0xf77d3e['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x5b2d32,_0x2f0b0b){const _0x208b85=this['editor'],_0x4e6dd5=_0x208b85['plugins']['get'](o);let _0x23825f=_0x4e6dd5['getCommentThread'](_0x2f0b0b);const _0x569b99=_0x208b85['config']['get']('collaboration.channelId'),_0x453da1=_0x208b85['plugins']['get'](P);if(_0x23825f&&(_0x23825f['unlinkedAt']&&_0x23825f['setUnlinkedAt'](null),_0x23825f['isAttached']))return _0x23825f;return!this['getAllMarkersForId'](_0x2f0b0b)[0x0]['managedUsingOperations']?_0x208b85['editing']['view']['once']('render',()=>{if(_0x4e6dd5['getCommentThread'](_0x2f0b0b))return;const _0x420965=_0x208b85['plugins']['get'](O);_0x23825f=_0x4e6dd5['openNewCommentThread']({'channelId':_0x569b99,'threadId':_0x2f0b0b,'target':()=>this['_getTargetForId'](_0x2f0b0b),'context':{'type':'text','value':this['_getTextContext'](_0x2f0b0b)}});const _0x28983=_0x4e6dd5['_threadToController']['get'](_0x23825f)['view'],_0x4b35b5=_0x420965['getByInnerView'](_0x28983);_0x4b35b5&&_0x453da1['registerAnnotation'](_0x4b35b5);},{'priority':'low'}):_0x4e6dd5['fetchCommentThread']({'channelId':_0x569b99,'threadId':_0x2f0b0b})['then'](_0x241f1d=>{if('destroyed'!==_0x208b85['state']){if(_0x23825f=_0x241f1d,_0x23825f&&!_0x23825f['isAttached']){const _0x35c5ac=_0x23825f['attachTo'](()=>this['_getTargetForId'](_0x2f0b0b));_0x453da1['registerAnnotation'](_0x35c5ac),_0x23825f['isResolved']&&this['_reconvertMarkers'](_0x2f0b0b);}else{if(!_0x23825f){const _0x40576c=this['getAllMarkersForId'](_0x2f0b0b);_0x208b85['model']['change'](_0x2659eb=>{for(const _0x4398b0 of _0x40576c)_0x2659eb['removeMarker'](_0x4398b0);});}}}}),_0x23825f;}['_handleThreadMarker'](_0x2b833b,_0x4a6f3b){const _0x58ffd2=this['_attachMarkerToThread'](_0x2b833b,_0x4a6f3b);_0x58ffd2&&!_0x58ffd2['context']&&_0x58ffd2['setContext']({'type':'text','value':this['_getTextContext'](_0x4a6f3b)});}['_initAriaMarkerChangeAnnouncements'](){const _0x47d6fa=this['editor'];ot(_0x47d6fa['model'],({left:_0x58093f,entered:_0x4b6b06})=>{for(const _0x1d42ec of _0x58093f)if(mt(_0x1d42ec)){_0x47d6fa['ui']['ariaLiveAnnouncer']['announce'](E(_0x47d6fa['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x29f6cc of _0x4b6b06)if(mt(_0x29f6cc)){_0x47d6fa['ui']['ariaLiveAnnouncer']['announce'](E(_0x47d6fa['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x10ebc1)));break;}});}}function ft(_0x5bddd1,_0x18eb51){return _0x18eb51?_0x5bddd1+':'+_0x18eb51:_0x5bddd1;}function er(_0x4a6e63){const _0x356323=_0x4a6e63['split'](':');return{'group':_0x356323[0x0],'id':_0x356323[0x1],'part':_0x356323[0x2]};}function dt(_0x24d2f5,_0x99d230){const _0x2320d1=_0x99d230['schema'],_0x31db6e=_0x99d230['createRange'](_0x24d2f5['start']);for(const _0x1c0b33 of _0x24d2f5['getWalker']()){const {type:_0x1689a5,item:_0x31ca1b,nextPosition:_0x4df13c}=_0x1c0b33;if('text'===_0x1689a5||_0x2320d1['isObject'](_0x31ca1b)){const _0x2e631b=_0x99d230['createPositionBefore'](_0x31ca1b);_0x31db6e['isCollapsed']&&(_0x31db6e['start']=_0x2e631b),_0x31db6e['end']=_0x4df13c;}}return _0x31db6e;}function mt(_0x3f2218){return'comment'===er(_0x3f2218['name'])['group'];}class i extends _0x387cbb{['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 _0x231f67=this['editor'],_0x24506a=_0x231f67['plugins']['get'](o),_0x3153bd=_0x231f67['plugins']['get'](r),_0x4884d5=_0x231f67['plugins']['get'](O),_0x2b7b20=_0x231f67['plugins']['get'](P);_0x231f67['ui']['componentFactory']['add']('comment',()=>{const _0x1e3ac0=this['_createUIButton'](_0x5134f9);return _0x1e3ac0['tooltip']=!0x0,_0x1e3ac0;}),_0x231f67['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x180ec2)),_0x2b7b20['addSourceCollector'](()=>{const _0x379c30=[];for(const [_0x4290e2,_0x509079]of _0x24506a['_threadToController']){const _0x45cd9c=_0x3153bd['getAllMarkersForId'](_0x4290e2['id']),_0x4a254d=_0x45cd9c['map'](_0x551efb=>_0x551efb['getRange']());_0x45cd9c['length']>0x0&&_0x379c30['push']([_0x509079['view'],_0x4a254d]);}return _0x379c30;}),this['listenTo'](_0x4884d5,'change:activeAnnotations',(_0x4be854,_0x5cf5a1,_0x3588ea)=>{const _0x590463=Array['from'](_0x3588ea)['map'](_0x9a6c1e=>_0x9a6c1e['innerView'])['find'](_0x5b14d5=>_0x24506a['_viewToController']['has'](_0x5b14d5));if(!_0x590463)return void(_0x3153bd['activeMarker']=null);const _0x2f5544=_0x24506a['_viewToController']['get'](_0x590463)['model']['id'],_0x4425ea='comment:'+_0x2f5544;_0x2f5544&&_0x3153bd['hasMarkerForId'](_0x2f5544)?_0x3153bd['activeMarker']=_0x4425ea:_0x3153bd['activeMarker']&&(_0x3153bd['activeMarker']=null);}),this['listenTo'](_0x24506a,'removeCommentThread',(_0x2e5d79,{threadId:_0x152040,isFromAdapter:_0x59efa3})=>{!_0x59efa3&&_0x231f67['ui']['focusTracker']['isFocused']&&_0x3153bd['hasMarkerForId'](_0x152040)&&_0x231f67['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x24506a,'addComment',(_0x934270,{threadId:_0x2f8a44,isFromAdapter:_0x1bc5c1})=>{if(_0x1bc5c1||!_0x3153bd['hasMarkerForId'](_0x2f8a44)||!_0x24506a['hasCommentThread'](_0x2f8a44))return;0x1===_0x24506a['getCommentThread'](_0x2f8a44)['length']&&(_0x231f67['editing']['view']['focus'](),_0x934270['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32c0ae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12f656;for(const _0x2a2687 in _0x32c0ae){const _0x1cf358=_0x2a2687,_0x3475fa=_0x32c0ae[_0x1cf358];if('commentsLicenseKeyValid'==_0x3475fa||'commentsLicenseKeyInvalid'==_0x3475fa||'commentsLicenseKeyExpired'==_0x3475fa||'commentsLicenseKeyDomainLimit'==_0x3475fa||'commentsLicenseKeyNotAllowed'==_0x3475fa||'commentsLicenseKeyEvaluationLimit'==_0x3475fa||'commentsLicenseKeyTrialLimit'==_0x3475fa||'commentsLicenseKeyUsageLimit'==_0x3475fa){delete _0x32c0ae[_0x1cf358],_0x12f656=_0x3475fa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x12f656&&_0x32c0ae['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x12f656&&_0x32c0ae['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x12f656&&_0x32c0ae['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x12f656&&_0x32c0ae['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x12f656&&_0x32c0ae['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x12f656&&_0x32c0ae['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x12f656&&_0x32c0ae['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x3dfecc){const _0x5967d0=this['editor'],_0x424501=new _0x3dfecc(_0x5967d0['locale']),_0x225e8c=_0x5967d0['commands']['get']('addCommentThread');return _0x424501['set']({'label':E(_0x5967d0['locale'],'Comment'),'icon':_0x5e46cc}),_0x424501['bind']('isEnabled')['to'](_0x225e8c),this['listenTo'](_0x424501,'execute',()=>{_0x225e8c['execute']();}),_0x424501;}}class s extends _0x387cbb{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x51419f){super(_0x51419f),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x25621e,_0x1d54f0,_0x8f2c62)=>{_0x8f2c62?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x344609,_0x181131]of this['editor']['commands'])_0x181131['affectsData']&&'addCommentThread'!==_0x344609&&_0x181131['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 _0x192f41=this['editor']['editing']['view']['document'];this['listenTo'](_0x192f41,'cut',_0x126f7b=>_0x126f7b['stop'](),{'priority':'highest'}),this['listenTo'](_0x192f41,'clipboardInput',_0x7b4ee5=>_0x7b4ee5['stop'](),{'priority':'highest'}),this['listenTo'](_0x192f41,'delete',_0x389fb4=>_0x389fb4['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x488487,_0x359266]of this['editor']['commands'])_0x359266['affectsData']&&'addCommentThread'!==_0x488487&&_0x359266['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 _0x1318aa{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe57ae8){super(_0xe57ae8),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x436989=this['context']['plugins']['get'](O);this['listenTo'](_0x436989,'_activateAnnotation',(_0x2deef6,_0x502a91)=>{for(const _0x4130b5 of this['activeUIs']){const _0x3f169c=this['_uis']['get'](_0x4130b5);(0x0,this['uisData']['get'](_0x4130b5)['filter'])(_0x502a91)&&_0x3f169c['setActiveAnnotation'](_0x502a91);}}),this['listenTo'](_0x436989,'_deactivateAllAnnotations',()=>{for(const _0x458e07 of this['activeUIs']){this['_uis']['get'](_0x458e07)['setActiveAnnotation'](null);}}),this['listenTo'](_0x436989['_visibleAnnotations'],'add',(_0x518d3d,_0x3896bc)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3896bc);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0xd23b7d){return this['activeUIs']['has'](_0xd23b7d);}['activate'](_0x455e27,_0x15340e=this['defaultFilter']){const _0xac90d2=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x455e27))throw new _0x3b16ef('annotationsuis-missing-ui',this,{'uiName':_0x455e27});this['isActive'](_0x455e27)&&this['deactivate'](_0x455e27),this['activeUIs']['add'](_0x455e27);const _0x4f12e8=new _();!function({source:_0x2b431b,target:_0x2f5bb1,filter:_0x4f3794}){for(const _0x1819cd of _0x2b431b)_0x4f3794(_0x1819cd)&&_0x2f5bb1['add'](_0x1819cd);_0x2f5bb1['listenTo'](_0x2b431b,'add',(_0x15f881,_0x44e67c)=>{_0x4f3794(_0x44e67c)&&_0x2f5bb1['add'](_0x44e67c);}),_0x2f5bb1['listenTo'](_0x2b431b,'remove',(_0x448eb4,_0x26dccb)=>{_0x2f5bb1['has'](_0x26dccb)&&_0x2f5bb1['remove'](_0x26dccb);});}({'source':_0xac90d2['_visibleAnnotations'],'target':_0x4f12e8,'filter':_0x15340e}),this['uisData']['set'](_0x455e27,{'collection':_0x4f12e8,'filter':_0x15340e});const _0x3f1d89=this['_uis']['get'](_0x455e27);_0x3f1d89['attach'](_0x4f12e8),this['listenTo'](_0x3f1d89,'change:activeAnnotation',(_0x16ce4c,_0x4cb693,_0x33c3e9,_0x3849dc)=>{_0x3849dc&&_0xac90d2['_removeActiveAnnotation'](_0x3849dc),_0x33c3e9&&_0xac90d2['_addActiveAnnotation'](_0x33c3e9);});}['deactivate'](_0x185c34){if(this['activeUIs']['delete'](_0x185c34),!this['_uis']['has'](_0x185c34))throw new _0x3b16ef('annotationsuis-missing-ui',this,{'uiName':_0x185c34});const _0xcccf51=this['_uis']['get'](_0x185c34);_0xcccf51['detach'](),this['stopListening'](_0xcccf51),this['uisData']['get'](_0x185c34)['collection']['destroy'](),this['uisData']['delete'](_0x185c34);}['switchTo'](_0x3a2a4b){if(!this['_uis']['has'](_0x3a2a4b))throw new _0x3b16ef('annotationsuis-missing-ui',this,{'uiName':_0x3a2a4b});const _0x3969a3=this['context']['plugins']['get'](O),_0x1fcc41=Array['from'](_0x3969a3['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3a2a4b);const _0x49aaa3=this['_uis']['get'](_0x3a2a4b);_0x49aaa3['setActiveAnnotation'](_0x1fcc41),_0x49aaa3['_setSelectedAnnotations']&&_0x1fcc41&&_0x49aaa3['_setSelectedAnnotations']([_0x1fcc41]);}['deactivateAll'](){for(const _0x5462a6 of this['activeUIs'])this['deactivate'](_0x5462a6);}['register'](_0x59fc99,_0x594ca0){if(this['_uis']['has'](_0x59fc99))throw new _0x3b16ef('annotationsuis-register-already-registered');if('function'!=typeof _0x594ca0['attach']||'function'!=typeof _0x594ca0['detach']||'function'!=typeof _0x594ca0['setActiveAnnotation'])throw new _0x3b16ef('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x59fc99,_0x594ca0);}['refilterAnnotations'](){const _0x519c96=this['context']['plugins']['get'](O)['collection'],_0x127bc8=new Map(),_0x19168a=Array['from'](this['activeUIs']);for(const _0xd466c2 of this['activeUIs']){const _0x4cb00a=this['uisData']['get'](_0xd466c2)['collection'];for(const _0x58cff5 of _0x4cb00a)_0x127bc8['set'](_0x58cff5,_0xd466c2);}for(const _0x596a25 of _0x519c96){const _0x840718=_0x127bc8['get'](_0x596a25);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x596a25);const _0x1749df=_0x19168a['find'](_0x282499=>this['uisData']['get'](_0x282499)['filter'](_0x596a25));_0x840718!==_0x1749df&&(_0x840718&&this['uisData']['get'](_0x840718)['collection']['remove'](_0x596a25),_0x1749df&&this['uisData']['get'](_0x1749df)['collection']['add'](_0x596a25));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5448e6){const _0x4827d0=[];for(const _0x4d361c of this['activeUIs']){(0x0,this['uisData']['get'](_0x4d361c)['filter'])(_0x5448e6)&&_0x4827d0['push'](_0x4d361c);}if(_0x4827d0['length']>0x1)throw new _0x3b16ef('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4827d0,'annotationType':_0x5448e6['type']});}}const pi=xt('px');class F extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5707a4){super(_0x5707a4);const _0x4206c1=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 _0x1e0a9c(),this['focusCycler']=new _0x1ca448({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4206c1['to']('class')],'style':{'minHeight':_0x4206c1['to']('minHeight',_0x195147=>'number'==typeof _0x195147?pi(_0x195147+0xa):null)},'dir':_0x5707a4['uiLanguageDirection'],'role':'application','aria-label':E(_0x5707a4,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x5707a4,'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',_0x45ebbe=>{this['_updateItemPositionInFocusables'](_0x45ebbe['source']);}),this['list']['forEach'](_0x1c1120=>{this['focusTracker']['add'](_0x1c1120['element']),this['_updateItemPositionInFocusables'](_0x1c1120);}),this['list']['on']('change',(_0x267954,_0x18a435)=>{for(const _0x1f1e10 of _0x18a435['removed'])this['focusTracker']['remove'](_0x1f1e10['element']),this['focusables']['remove'](_0x1f1e10);for(const _0x3b7919 of _0x18a435['added'])this['focusTracker']['add'](_0x3b7919['element']),this['_updateItemPositionInFocusables'](_0x3b7919);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x4a1a9f){const _0x4fe9f5=this['focusables']['getIndex'](_0x4a1a9f);let _0x104284,_0x26da88;for(const _0xc0e488 of this['focusables'])if(_0x4a1a9f['top']<_0xc0e488['top']){_0x104284=_0xc0e488;break;}if(_0x26da88=_0x104284?this['focusables']['getIndex'](_0x104284):this['focusables']['length'],-0x1!==_0x4fe9f5){if(_0x4fe9f5===_0x26da88-0x1)return;this['focusables']['remove'](_0x4a1a9f),_0x26da88=_0x104284?this['focusables']['getIndex'](_0x104284):this['focusables']['length'];}this['focusables']['add'](_0x4a1a9f,_0x26da88);}}const Ht=xt('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0xb366f){super(_0xb366f),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2bb62e,_0xd95bb4)=>_0x2bb62e+_0xd95bb4),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x499b67=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x499b67['to']('isAnimationDisabled',_0x1dfde4=>_0x1dfde4?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x499b67['to']('top',_0x2f7017=>Ht(_0x2f7017))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x24928a=this['element']['clientHeight'];_0x24928a&&(this['height']=_0x24928a);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x1318aa{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26fe10){super(_0x26fe10),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 _0x4fa2aa=this['context']['config']['get']('sidebar.container');_0x4fa2aa&&this['setContainer'](_0x4fa2aa);}['setContainer'](_0x1358ce){if(!y(_0x1358ce))throw new _0x3b16ef('sidebar-setcontainer-invalid-element');this['container']=_0x1358ce;}['_attachToContainer']({viewClass:_0x351ed7='',spaceBetweenItems:_0x4c39be=0x19}={}){if(!y(this['container']))throw new _0x3b16ef('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x351ed7,this['_spaceBetweenItems']=_0x4c39be;}['rearrange']({removedAnnotation:_0x14f5ea,previousAnnotation:_0x26323f,nextAnnotation:_0x4cfc8a}){const _0x4a3826=this['getSidebarItemView'](_0x14f5ea);this['view']['list']['remove'](_0x4a3826),this['_destroySidebarItemView'](_0x14f5ea),_0x26323f&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x26323f)),_0x4cfc8a&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4cfc8a)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3ce848,activatedAnnotation:_0x8b1e78,disableAnimationOnActivatedAnnotation:_0x406cb3}){if(this['_activeAnnotation']=_0x8b1e78,_0x3ce848){_0x3ce848['isActive']=!0x1;const _0x1c1538=this['getSidebarItemView'](_0x3ce848);_0x1c1538&&_0x406cb3&&(_0x1c1538['isAnimationDisabled']=!0x1);}if(_0x8b1e78){const _0x4478d2=this['getSidebarItemView'](_0x8b1e78);_0x4478d2&&(_0x8b1e78['isActive']=!0x0,_0x406cb3&&(_0x4478d2['isAnimationDisabled']=!0x0,_0x4478d2['top']+=0x1),this['_alignToTargetRect'](_0x4478d2));}}['_detachFromContainer'](_0x500479){if(this['view']['element']['remove'](),_0x500479){for(const _0x32eb79 of _0x500479)this['_destroySidebarItemView'](_0x32eb79);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5e0335,_0x33e667){_0x33e667||(_0x33e667=_0x5e0335['view']);const _0x24488c=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x24488c,_0x5e0335),this['_annotationToSidebarItemView']['set'](_0x5e0335,_0x24488c),_0x24488c['content']['add'](_0x33e667),this['listenTo'](_0x5e0335['view'],'change:targetRect',(_0x55d745,_0x535726,_0x17effa)=>{const _0x404679=this['_getTargetTop'](_0x5e0335,_0x17effa);_0x24488c['_targetTop']!=_0x404679&&(_0x24488c['_targetTop']=_0x404679,this['_setItemTop'](_0x24488c,_0x404679));}),this['listenTo'](_0x24488c,'change:top',()=>{this['_recalculate'](_0x24488c,'top');}),this['listenTo'](_0x24488c,'change:bottom',()=>{this['_recalculate'](_0x24488c,'bottom');}),this['_alignToTargetRect'](_0x24488c);const _0x4f29d5=this['_getItemBefore'](_0x24488c);if(_0x4f29d5)this['_alignAfterItem'](_0x4f29d5,_0x24488c)||this['_alignToTargetRect'](_0x24488c);else this['_alignToTargetRect'](_0x24488c);return this['_updateLastItem'](),this['view']['list']['add'](_0x24488c),_0x24488c;}['_alignForTopChange'](_0x5bd022){if(!_0x5bd022['content']['length'])return;const _0x306cb6=this['_getItemBefore'](_0x5bd022);if(!_0x306cb6)return;const _0x332fb1=this['_sidebarItemViewToAnnotation']['get'](_0x306cb6),_0xf462c2=this['_activeAnnotation'];_0xf462c2&&_0xf462c2===_0x332fb1?this['_alignAfterItem'](_0x306cb6,_0x5bd022):this['_alignBeforeItem'](_0x5bd022,_0x306cb6);}['_alignForBottomChange'](_0x38f055){if(!_0x38f055['content']['length'])return;const _0x4c27c5=this['_getItemAfter'](_0x38f055);if(!_0x4c27c5)return;const _0x452dcf=this['_sidebarItemViewToAnnotation']['get'](_0x4c27c5),_0x530752=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0xccb116=this['_activeAnnotation'];_0xccb116&&_0xccb116===_0x452dcf&&_0x530752?(this['_alignBeforeItem'](_0x4c27c5,_0x38f055),this['_alignAfterItem'](_0x38f055,_0x4c27c5)):_0xccb116&&_0xccb116===_0x452dcf?this['_alignBeforeItem'](_0x4c27c5,_0x38f055):this['_alignAfterItem'](_0x38f055,_0x4c27c5);}['_recalculate'](_0x2af35b,_0x1b881a){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x1bae71,changedProp:_0x569bf8}of this['_recalculateBuffer'])'top'===_0x569bf8?this['_alignForTopChange'](_0x1bae71):this['_alignForBottomChange'](_0x1bae71);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2af35b,'changedProp':_0x1b881a});}['getSidebarItemView'](_0x4971da){return this['_annotationToSidebarItemView']['get'](_0x4971da);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x12c475){const _0x44d4a5=this['getSidebarItemView'](_0x12c475);this['stopListening'](_0x44d4a5),this['stopListening'](_0x12c475['view']),_0x44d4a5['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x12c475),this['_sidebarItemViewToAnnotation']['delete'](_0x44d4a5);}['_createSidebarView'](){const _0x255ed4=new F(this['context']['locale']);return _0x255ed4['render'](),this['on']('change:_lastItem',(_0x33b3d3,_0x4e4002,_0x8bf589,_0x5b3a2d)=>{_0x5b3a2d&&_0x255ed4['unbind']('minHeight'),_0x8bf589?_0x255ed4['bind']('minHeight')['to'](_0x8bf589,'bottom'):_0x255ed4['minHeight']=null;}),_0x255ed4;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x4ed8d5){const _0x1eec87=this['_sidebarItemViewToAnnotation']['get'](_0x4ed8d5),_0x52c6e0=_0x1eec87&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1eec87)-0x1);return _0x52c6e0&&this['getSidebarItemView'](_0x52c6e0)||null;}['_getItemAfter'](_0x49db49){const _0x181102=this['_sidebarItemViewToAnnotation']['get'](_0x49db49),_0x5f1c3d=_0x181102&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x181102)+0x1);return _0x5f1c3d&&this['getSidebarItemView'](_0x5f1c3d)||null;}['_alignBeforeItem'](_0x150912,_0x4017ed){_0x150912['updateHeight']();const _0x46ea06=R(_0x4017ed['bottom']+this['_spaceBetweenItems'],_0x150912['top']);return!!_0x46ea06&&(this['_setItemTop'](_0x4017ed,_0x4017ed['top']-_0x46ea06),!0x0);}['_alignAfterItem'](_0x3f75f7,_0x5963b0){_0x3f75f7['updateHeight']();const _0x496506=R(_0x3f75f7['bottom']+this['_spaceBetweenItems'],_0x5963b0['top']);return!!_0x496506&&(this['_setItemTop'](_0x5963b0,_0x5963b0['top']+_0x496506,!0x1),!0x0);}['_alignToTargetRect'](_0x289fe9){const _0x5d7e66=this['_sidebarItemViewToAnnotation']['get'](_0x289fe9);if(!_0x5d7e66||!_0x5d7e66['target']||!_0x5d7e66['targetRect'])return;const _0x2b5691=this['_getTargetTop'](_0x5d7e66,_0x5d7e66['targetRect']);this['_setItemTop'](_0x289fe9,_0x2b5691);}['_getTargetTop'](_0x5e37ca,_0x485b16){if(null===_0x485b16)return 0x0;if(_0x5e37ca['target']instanceof _0x521279)return _0x485b16['top'];{const _0x3105c4=new _0x521279(this['view']['element'])['top'];return _0x485b16['top']-_0x3105c4;}}['_setItemTop'](_0xc92fd9,_0x2e6fbf,_0x570d03=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x570d03&&(_0x2e6fbf=Math['max'](_0x2e6fbf,this['_getMaxAvailableTop'](_0xc92fd9))),_0xc92fd9['top']=_0x2e6fbf;}['_getMaxAvailableTop'](_0xb99f63){let _0x26197e=this['_getItemBefore'](_0xb99f63),_0x50a29a=0x0;for(;_0x26197e;)_0x26197e['updateHeight'](),_0x50a29a+=this['_spaceBetweenItems']+_0x26197e['height'],_0x26197e=this['_getItemBefore'](_0x26197e);return _0x50a29a;}}function R(_0x3ac2f8,_0x11cee){return Math['max'](_0x3ac2f8-_0x11cee,0x0);}function y(_0x4abb58){return null!==_0x4abb58&&'object'==typeof _0x4abb58&&0x1===_0x4abb58['nodeType'];}class e extends _0x1318aa{['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(_0x2e1446){super(_0x2e1446),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x41f317(),this['_refreshPositioningDebounced']=_0x5d89fe(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x5a5536=this['context']['plugins']['get'](M),_0x3a8615=this['context']['plugins']['get'](z);_0x5a5536['register']('wideSidebar',this),_0x3a8615['container']&&_0x5a5536['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3c62da){if(_0x3c62da===this['activeAnnotation'])return;const _0x3326f0=this['context']['plugins']['get'](z);_0x3326f0['_activeAnnotation']=_0x3c62da;const _0x55768e=this['activeAnnotation'];_0x3326f0['refresh']({'blurredAnnotation':_0x55768e,'activatedAnnotation':_0x3c62da}),this['activeAnnotation']=_0x3c62da;}['attach'](_0x1232df){this['annotations']=_0x1232df;const _0x4d89db=this['context']['plugins']['get'](z);if(_0x4d89db['_annotations']=_0x1232df,this['isAttached'])throw new _0x3b16ef('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4d89db,'set:container',()=>{this['detach'](),this['listenTo'](_0x4d89db,'change:container',_0x2d3d60=>{_0x2d3d60['off'](),this['attach'](_0x1232df);});}),_0x4d89db['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x4da5d8=_0x2c8604=>{_0x2c8604['updateTargetRect'](),_0x4d89db['addAnnotation'](_0x2c8604);};for(const _0x5dd6c5 of _0x1232df)_0x4da5d8(_0x5dd6c5);this['listenTo'](_0x1232df,'add',(_0x206a43,_0x435e69)=>{_0x4da5d8(_0x435e69);}),this['listenTo'](_0x1232df,'remove',(_0x4c4010,_0x224e47,_0x4f4228)=>{_0x4d89db['rearrange']({'removedAnnotation':_0x224e47,'previousAnnotation':_0x1232df['get'](_0x4f4228-0x1),'nextAnnotation':_0x1232df['get'](_0x4f4228+0x1)}),_0x224e47===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x1232df,'focus',(_0x2064cb,_0x8d0ceb)=>{this['setActiveAnnotation'](_0x8d0ceb);}),this['listenTo'](_0x1232df,'blur',()=>{this['setActiveAnnotation'](null);});const _0x1dd72e=this['context']instanceof _0x3fe096?this['context']['editors']:new _0x41f317([this['context']]);for(const _0x21cb5d of _0x1dd72e)this['_integrateWithEditorAnnotations'](_0x21cb5d);this['listenTo'](_0x1dd72e,'add',(_0x1f0ebe,_0x8da610)=>{this['listenTo'](_0x8da610,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x8da610);});}),this['listenTo'](_0x1dd72e,'remove',(_0x318ca0,_0x460f76)=>{_0x460f76['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x460f76['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3b16ef('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x504596=this['context']['plugins']['get'](z);_0x504596['_detachFromContainer'](this['annotations']),this['stopListening'](_0x504596),this['stopListening'](this['annotations']),this['context']instanceof _0x3fe096&&this['stopListening'](this['context']['editors']);for(const _0x142026 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x142026);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2a8ee1){if(!_0x2a8ee1['plugins']['has']('EditorAnnotations'))return;const _0x3c67a3=_0x2a8ee1['plugins']['get']('EditorAnnotations'),_0x1160b9=()=>{const _0x1344cd=_0x3c67a3['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x1344cd[0x0]||null);};this['listenTo'](_0x3c67a3,'refresh',_0x1160b9),this['listenTo'](_0x3c67a3,'blur',(_0x49e68d,{isAnnotationTracked:_0x4b9c8b})=>{this['activeAnnotation']&&_0x4b9c8b(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3c67a3,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x191790=>{_0x3c67a3['hasDomSelection']()&&(_0x1160b9(),_0x191790['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3c67a3);}['_destroyEditorAnnotationsIntegration'](_0x1ef3ec){this['stopListening'](_0x1ef3ec),this['_editorAnnotations']['remove'](_0x1ef3ec);}}class C extends _0x5134f9{['counterView'];constructor(_0x38b90a){super(_0x38b90a);const _0x27788c=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x45a62b,_0x4769e5)=>_0x45a62b?'...':_0x4769e5['toString']()),this['set']('annotationType',''),this['icon']=_0x5e46cc,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x27788c['to']('annotationType',_0x139c5a=>'ck-annotation-counter__badge--'+_0x139c5a),_0x27788c['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x27788c['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x1318aa{['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(_0x288973){super(_0x288973),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x12c5b6),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x41f317(),this['_refreshPositioningDebounced']=_0x5d89fe(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x172d8b(this['context']['locale']),this['balloonPanelView']=new _0x39e067(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3f3136){this['annotations']=_0x3f3136;const _0x154fef=this['context']['plugins']['get'](z),_0x41d1dc=this['balloonPanelView'];if(_0x154fef['_annotations']=_0x3f3136,this['isAttached'])throw new _0x3b16ef('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x154fef,'set:container',()=>{this['detach'](),this['listenTo'](_0x154fef,'change:container',_0x48356c=>{_0x48356c['off'](),this['attach'](_0x3f3136);});}),_0x154fef['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x20f016=_0x2ef98e=>{const _0x301ae0=new C(this['context']['locale']);_0x154fef['addAnnotation'](_0x2ef98e,_0x301ae0),this['_annotationToNarrowView']['set'](_0x2ef98e,_0x301ae0),_0x301ae0['bind']('isDirty','annotationType','number')['to'](_0x2ef98e['view'],'isDirty','type','length'),_0x301ae0['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x41d1dc['content']['first']!==_0x2ef98e['view']?(this['_showBalloon'](_0x2ef98e),_0x2ef98e['view']['element']['focus'](),this['setActiveAnnotation'](_0x2ef98e)):this['setActiveAnnotation'](null);});};for(const _0x4736b3 of _0x3f3136)_0x20f016(_0x4736b3);this['listenTo'](_0x3f3136,'add',(_0x212e25,_0x4d2d8d)=>{_0x20f016(_0x4d2d8d);}),this['listenTo'](_0x3f3136,'remove',(_0x34b659,_0x1f9b14,_0x53d12b)=>{this['_annotationToNarrowView']['get'](_0x1f9b14)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1f9b14),_0x154fef['rearrange']({'removedAnnotation':_0x1f9b14,'previousAnnotation':_0x3f3136['get'](_0x53d12b-0x1),'nextAnnotation':_0x3f3136['get'](_0x53d12b+0x1)}),_0x1f9b14===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3f3136,'focus',(_0x2a3fe7,_0x58fa54)=>{this['setActiveAnnotation'](_0x58fa54);}),this['listenTo'](_0x3f3136,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x4a878f,_0x5049cd)=>{_0x5049cd['keyCode']===_0x16ee43['esc']&&_0x41d1dc['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x41d1dc['content']['first']),this['_hideBalloon'](),_0x5049cd['stopPropagation'](),_0x5049cd['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x43fe5e,_0x10b6f6)=>{const _0x32f863=_0x10b6f6['target'];_0x41d1dc['isVisible']&&_0x41d1dc['element']['contains'](_0x32f863)||_0x154fef['view']['element']['contains'](_0x32f863)||_0x43fe5e['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x5c93cc=>_0x5c93cc['contains'](_0x32f863))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x555d7e=this['context']instanceof _0x3fe096?this['context']['editors']:new _0x41f317([this['context']]);for(const _0x5e2897 of _0x555d7e)this['_integrateWithEditorAnnotations'](_0x5e2897);this['listenTo'](_0x555d7e,'add',(_0x24d3da,_0x5588aa)=>{this['listenTo'](_0x5588aa,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5588aa);});}),this['listenTo'](_0x555d7e,'remove',(_0x5ed68a,_0x4a9abb)=>{_0x4a9abb['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4a9abb['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x16fae1){if(_0x16fae1===this['activeAnnotation'])return;const _0x4cf60d=this['context']['plugins']['get'](z);if(_0x4cf60d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x16fae1,'disableAnimationOnActivatedAnnotation':!0x0}),_0x16fae1)_0x4cf60d['getSidebarItemView'](_0x16fae1)?this['_showBalloon'](_0x16fae1):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x16fae1;}['detach'](){if(!this['isAttached'])throw new _0x3b16ef('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x51eec1=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x42b5c7=>_0x42b5c7['destroy']()),this['_annotationToNarrowView']['clear'](),_0x51eec1['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x3fe096&&this['stopListening'](this['context']['editors']);for(const _0x3ddbbc of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3ddbbc);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'](_0x3c3329){if(!_0x3c3329['plugins']['has']('EditorAnnotations'))return;const _0x2ee29c=_0x3c3329['plugins']['get']('EditorAnnotations'),_0x3776a6=this['context']['plugins']['get'](z),_0xdb6a87=this['annotations'],_0x46a994=this['balloonPanelView'],_0x534a0d=()=>{const _0x1b131e=_0x2ee29c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1b131e),this['setActiveAnnotation'](_0x1b131e[0x0]||null);};this['listenTo'](_0x2ee29c,'refresh',_0x534a0d),this['listenTo'](_0x2ee29c,'blur',(_0x4b39ce,{isAnnotationTracked:_0x2b3c94})=>{this['activeAnnotation']&&_0x2b3c94(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2ee29c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0xdb6a87,'blur',_0x3d0948=>{_0x2ee29c['hasDomSelection']()&&_0x3d0948['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x564627,_0x1597d9)=>{const _0x5a7325=_0x1597d9['target'];_0x46a994['isVisible']&&_0x46a994['element']['contains'](_0x5a7325)||_0x3776a6['view']['element']['contains'](_0x5a7325)||this['activeAnnotation']&&_0x2ee29c['hasDomSelection']()&&(_0x534a0d(),_0x564627['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2ee29c);}['_destroyEditorAnnotationsIntegration'](_0x77fc76){_0x77fc76&&(this['stopListening'](_0x77fc76),this['_editorAnnotations']['remove'](_0x77fc76));}['_setSelectedAnnotations'](_0x48d346){for(const _0x4902cc of this['_selectedAnnotations'])_0x48d346['includes'](_0x4902cc)||this['_manuallyClosedAnnotationViews']['delete'](_0x4902cc['view']);this['_selectedAnnotations']=_0x48d346;}['_refreshPositioning'](){const _0x36b4ac=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x36b4ac['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3b0dd3){if(this['_manuallyClosedAnnotationViews']['has'](_0x3b0dd3['view']))return;const _0x33daa0=this['balloonPanelView']['content']['first'];_0x33daa0!==_0x3b0dd3['view']?(_0x33daa0&&this['_detachListeners'](_0x33daa0),this['_attachListeners'](_0x3b0dd3['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3b0dd3['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x173416=this['balloonPanelView']['content']['first'],_0x1a0e64=_0x173416&&this['annotations']['getByView'](_0x173416);if(!_0x1a0e64||!this['_annotationToNarrowView']['has'](_0x1a0e64))return;const _0x5bef48=this['_annotationToNarrowView']['get'](_0x1a0e64)['element'],_0x5dc9f2=(function(){const _0x3a9069=_0x39e067['defaultPositions'];return[_0x3a9069['southArrowNorthEast'],_0x3a9069['northArrowSouthEast'],_0x3a9069['southArrowNorth'],_0x3a9069['northArrowSouth'],_0x3a9069['southArrowNorthWest'],_0x3a9069['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5bef48,'positions':_0x5dc9f2});}['_hideBalloon'](){const _0x3debb9=this['balloonPanelView'],_0x35c147=_0x3debb9['content']['first'];_0x35c147&&(this['_detachListeners'](_0x35c147),_0x3debb9['unpin'](),_0x3debb9['content']['clear']());}['_attachListeners'](_0x2b1855){this['listenTo'](_0x2b1855,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2b1855,'Esc',(_0x1f7eb2,_0x4f8933)=>{this['_manuallyClosedAnnotationViews']['add'](_0x2b1855),this['_hideBalloon'](),_0x4f8933();});}['_detachListeners'](_0x5bc14a){this['stopListening'](_0x5bc14a);}}class c extends _0x387cbb{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x5f439b,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24438c){super(_0x24438c),_0x24438c['editing']['view']['addObserver'](_0x5a2c11),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x24438c['plugins']['get'](_0x5f439b),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x9a29e1=this['editor']['plugins']['get'](M);_0x9a29e1['context']===this['editor']&&(_0x9a29e1['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xaefb85,_0x41b940)=>{const _0xa2afc1=this['_balloon'];if(this['isAttached']&&_0xa2afc1['visibleView']){const _0x2661cb=this['annotations']['getByView'](_0xa2afc1['visibleView']);_0x2661cb&&this['_closeAnnotation'](_0x2661cb),_0x41b940();}}));}['afterInit'](){const _0x25c6f4=this['editor']['plugins']['get'](M);_0x25c6f4['context']===this['editor']&&(_0x25c6f4['hasActive']()||_0x25c6f4['switchTo']('inline'));}['setActiveAnnotation'](_0x820a3){_0x820a3!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x820a3&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x820a3)&&this['_addAnnotationToBalloon'](_0x820a3,!0x0),_0x820a3['isActive']=!0x0),_0x820a3||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x820a3);}['attach'](_0x57ba0c){this['annotations']=_0x57ba0c;const _0x3ede31=this['editor']['plugins']['get'](M),_0x3e13f9=this['_balloon'];if(this['isAttached'])throw new _0x3b16ef('inlineannotations-attach-already-attached',this);if(_0x3ede31['context']!==this['editor'])throw new _0x3b16ef('inlineannotations-not-allowed-with-context',this);const _0x3d3ac6=this['editor']['plugins']['get'](P);this['listenTo'](_0x3d3ac6,'refresh',()=>{const _0x39a927=_0x3d3ac6['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x3b7a73,_0xf17bd3;!this['_forceRefresh']&&(_0x3b7a73=_0x39a927,_0xf17bd3=this['_selectedAnnotations'],_0x3b7a73['length']===_0xf17bd3['length']&&_0x3b7a73['every'](_0x3c84e0=>_0xf17bd3['includes'](_0x3c84e0)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x39a927),this['setActiveAnnotation'](_0x39a927[0x0]||null));}),this['listenTo'](_0x3d3ac6,'blur',(_0x299a16,{isAnnotationTracked:_0x542157})=>{this['activeAnnotation']&&_0x542157(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x41c10b,_0x6f85dc,_0x15e0b1)=>{_0x15e0b1||this['setActiveAnnotation'](null);}),this['listenTo'](_0x57ba0c,'remove',(_0x2334fc,_0x178c4e)=>{this['_removeAnnotationFromBalloon'](_0x178c4e),_0x178c4e===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3e13f9,'change:visibleView',(_0x58cc0e,_0x4d350e,_0x28039b,_0x2e8fd0)=>{_0x2e8fd0&&this['stopListening'](_0x2e8fd0);const _0x2d0cba=_0x57ba0c['getByView'](_0x28039b);_0x28039b&&_0x2d0cba&&(this['listenTo'](_0x28039b,'change:height',()=>{_0x3e13f9['updatePosition']();}),this['listenTo'](_0x28039b,'Esc',()=>{this['_closeAnnotation'](_0x2d0cba),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x2d0cba&&this['setActiveAnnotation'](_0x2d0cba));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x3e13f9['visibleView']&&(_0x57ba0c['getByView'](_0x3e13f9['visibleView'])&&_0x3e13f9['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 _0x3b16ef('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4afab5 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4afab5);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x59580c){for(const _0xcccab5 of this['_selectedAnnotations'])_0x59580c['includes'](_0xcccab5)||this['_manuallyClosed']['delete'](_0xcccab5);for(const _0x32cc0f of this['annotations'])_0x59580c['includes'](_0x32cc0f)||this['_removeAnnotationFromBalloon'](_0x32cc0f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x21a9bc of _0x59580c)this['_addAnnotationToBalloon'](_0x21a9bc);}this['_selectedAnnotations']=_0x59580c;}['_addAnnotationToBalloon'](_0x462b77,_0x4ff7fa=!0x1){this['_manuallyClosed']['has'](_0x462b77)||(this['_addedAnnotations']['has'](_0x462b77)||this['_balloon']['hasView'](_0x462b77['view'])||(this['_addedAnnotations']['add'](_0x462b77),this['_balloon']['add']({'stackId':_0x462b77['view']['id'],'view':_0x462b77['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x462b77)}})),_0x4ff7fa&&this['_balloon']['showStack'](_0x462b77['view']['id']));}['_getBalloonTargetForAnnotation'](_0x269517){const _0x2658d9=_0x269517['target'],_0xecb979=this['editor']['editing']['view'],_0x11abb9=_0xecb979['document']['selection']['getFirstRange'](),_0x2dbca6=_0xecb979['domConverter']['viewRangeToDom'](_0x11abb9);if(_0x2dbca6['collapse'](!0x0),_0x2658d9){if(_0x2658d9 instanceof _0x521279)return _0x2658d9;let _0xe73705=[];for(const _0x4c512d of _0x2658d9)_0xe73705['push'](...(_0x27ed7b=_0x4c512d['getClientRects'](),Array['from'](_0x27ed7b)['map'](DOMRect['fromRect'])));_0xe73705=function(_0x1c5eaa){const _0x2e47c7=[];let _0x4f78ff=_0x1c5eaa[0x0];for(let _0x3ea738=0x1;_0x3ea738<_0x1c5eaa['length'];_0x3ea738++)B(_0x4f78ff,_0x1c5eaa[_0x3ea738])?_0x4f78ff['width']+=_0x1c5eaa[_0x3ea738]['width']:(_0x2e47c7['push'](_0x4f78ff),_0x4f78ff=_0x1c5eaa[_0x3ea738]);return _0x2e47c7['push'](_0x4f78ff),_0x2e47c7;}(_0xe73705);const _0x2d24f5=_0x2dbca6['getBoundingClientRect']();return _0xe73705['find'](_0x477f04=>_0x477f04['top']<=_0x2d24f5['top']&&_0x477f04['bottom']>=_0x2d24f5['bottom']&&_0x477f04['left']<=_0x2d24f5['left']&&_0x477f04['right']>=_0x2d24f5['right'])||_0xe73705[0x0];}var _0x27ed7b;return _0x269517['targetRect']||_0x2dbca6;}['_removeAnnotationFromBalloon'](_0x604938){this['_addedAnnotations']['has'](_0x604938)&&this['_balloon']['hasView'](_0x604938['view'])&&(this['_addedAnnotations']['delete'](_0x604938),this['_balloon']['remove'](_0x604938['view']));}['_closeAnnotation'](_0x364620){this['_manuallyClosed']['add'](_0x364620),this['_removeAnnotationFromBalloon'](_0x364620);}}function B(_0x11fbab,_0x29be1b){return _0x11fbab['top']===_0x29be1b['top']&&_0x11fbab['bottom']===_0x29be1b['bottom']&&_0x11fbab['right']===_0x29be1b['left'];}class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x5f5c67,_0x47929f){super(_0x5f5c67),this['set']('isEmpty',!_0x47929f['length']),this['focusTracker']=new _0x1e0a9c(),this['_annotationViews']=_0x47929f,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x1ca448({'focusables':_0x47929f,'focusTracker':this['focusTracker']}),this['listenTo'](_0x47929f,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x47929f,'remove',(_0x320b4a,_0x2649c5)=>{_0x2649c5['isActive']&&this['focus'](),_0x47929f['length']||(this['isEmpty']=!0x0);});const _0x2149ba=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x5f5c67,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x47929f},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2149ba['if']('isEmpty','ck-hidden',_0x2fd893=>!_0x2fd893)]},'children':[{'text':E(_0x5f5c67,'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 _0x41695d of this['_annotationViews'])this['focusTracker']['add'](_0x41695d['element']);this['_annotationViews']['on']('change',(_0x2e7097,{added:_0x40cffb,removed:_0x1c02ca})=>{for(const _0x165a27 of _0x40cffb)this['focusTracker']['add'](_0x165a27['element']);for(const _0x1713c2 of _0x1c02ca)this['focusTracker']['remove'](_0x1713c2['element']);});}}class f extends _0x1318aa{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x401195){super(_0x401195),this['archivedThreads']=new _0x41f317();}['init'](){const _0x444710=this['context'],_0x20c12d=_0x444710['plugins']['get'](o),_0x4de498=_0x444710['plugins']['get'](O);this['listenTo'](_0x20c12d,'addCommentThread',(_0x20c9c4,{threadId:_0x1aabb3})=>{const _0x4d0770=_0x20c12d['getCommentThread'](_0x1aabb3);_0x4d0770['archivedAt']&&this['archivedThreads']['add'](_0x4d0770,this['_calculatePosition'](_0x4d0770['archivedAt'])),this['listenTo'](_0x4d0770,'change:archivedAt',(_0x4a4d2b,_0x26dd94,_0x8d2bb3)=>{_0x8d2bb3?this['archivedThreads']['has'](_0x4d0770)||this['archivedThreads']['add'](_0x4d0770,this['_calculatePosition'](_0x4d0770['archivedAt'])):this['archivedThreads']['has'](_0x4d0770)&&this['archivedThreads']['remove'](_0x4d0770);});}),this['listenTo'](_0x20c12d,'removeCommentThread',(_0x389723,{threadId:_0x494151})=>{const _0xc166cf=_0x20c12d['getCommentThread'](_0x494151);this['stopListening'](_0xc166cf),this['archivedThreads']['has'](_0xc166cf)&&this['archivedThreads']['remove'](_0xc166cf);},{'priority':'highest'}),this['listenTo'](_0x4de498['collection'],'focus',(_0xde957e,_0x54c11c)=>{_0x54c11c['isVisible']||(_0x54c11c['isActive']=!0x0,_0x4de498['activate'](_0x54c11c));});}['_calculatePosition'](_0x25110e){const _0x33a14f=[...this['archivedThreads']]['findIndex'](_0x5bfa2a=>_0x5bfa2a['archivedAt']<_0x25110e);return _0x33a14f>-0x1?_0x33a14f:this['archivedThreads']['length'];}}class a extends _0x387cbb{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x2afe41];}constructor(_0x4902f4){super(_0x4902f4),this['annotationViews']=new _0x4d7b71(),this['_pendingThreads']=[];}['init'](){const _0x1b58b8=this['editor'],_0x56f423=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1b58b8['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x5134f9,!0x0)),_0x1b58b8['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x1c1162=this['_createCommentsArchiveButton'](_0x180ec2);return _0x1c1162['set']({'role':'menuitemcheckbox'}),_0x1c1162;});const _0xa9c556=_0x1b58b8['plugins']['get'](f),_0x1a5be3=_0x1b58b8['plugins']['get']('Annotations'),_0x66111f=_0x1b58b8['plugins']['get']('CommentsRepository');_0xa9c556['archivedThreads']['forEach'](_0x3ba6dd=>{this['_handleNewThread'](_0x3ba6dd);}),this['listenTo'](_0xa9c556['archivedThreads'],'add',(_0x351f5d,_0x5d8d5f)=>{this['_handleNewThread'](_0x5d8d5f);}),this['listenTo'](_0x1a5be3['collection'],'add',(_0x569282,_0x49893f)=>{const _0x1e1da1=this['_pendingThreads']['find'](_0x5efc50=>{const _0x2b7426=_0x66111f['_threadToController']['get'](_0x5efc50);return _0x2b7426&&_0x49893f['innerView']===_0x2b7426['view'];});if(_0x1e1da1){const _0x14668a=this['_calculatePosition'](_0x1e1da1['archivedAt']);this['annotationViews']['add'](_0x49893f['view'],_0x14668a),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1e1da1),0x1);}}),this['listenTo'](_0xa9c556['archivedThreads'],'remove',(_0x8b925a,_0x347ee5)=>{const _0x2cdc74=_0x1b58b8['config']['get']('collaboration.channelId');if(!_0x2cdc74||_0x347ee5['channelId']===_0x2cdc74){if(this['_pendingThreads']['includes'](_0x347ee5))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x347ee5),0x1);else{const _0x335830=_0x66111f['_threadToController']['get'](_0x347ee5),_0x2c26e2=_0x1a5be3['getByInnerView'](_0x335830['view']);this['annotationViews']['remove'](_0x2c26e2['view']),this['stopListening'](_0x2c26e2['focusableElements']);}}}),this['listenTo'](_0x1a5be3['collection'],'add',(_0x481ce4,_0x1f151e)=>{this['listenTo'](_0x1f151e,'escape',_0x56f423);}),this['listenTo'](_0x1a5be3['collection'],'remove',(_0x39407d,_0x2a9d28)=>{this['stopListening'](_0x2a9d28,'escape',_0x56f423);});}['_handleNewThread'](_0x127d69){const _0x41919c=this['editor']['plugins']['get']('CommentsRepository'),_0x6586b8=this['editor']['plugins']['get']('Annotations'),_0x1daa9b=this['editor']['config']['get']('collaboration.channelId');if(!_0x1daa9b||_0x127d69['channelId']===_0x1daa9b){const _0x11d462=_0x41919c['_threadToController']['get'](_0x127d69);if(!_0x11d462)return void this['_pendingThreads']['push'](_0x127d69);const _0x39bebc=this['_calculatePosition'](_0x127d69['archivedAt']),_0x2924dd=_0x6586b8['getByInnerView'](_0x11d462['view']);_0x2924dd['isVisible']&&_0x6586b8['_visibleAnnotations']['remove'](_0x2924dd),this['annotationViews']['add'](_0x2924dd['view'],_0x39bebc);}}['_calculatePosition'](_0x3f464d){const _0x3f4f8e=this['editor']['config']['get']('collaboration.channelId'),_0x154dcb=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x420506=>_0x420506['channelId']===_0x3f4f8e)['findIndex'](_0x2b9511=>_0x2b9511['archivedAt']<_0x3f464d);return _0x154dcb<0x0||_0x154dcb>this['annotationViews']['length']?this['annotationViews']['length']:_0x154dcb-0x1;}['_toggleDialog'](){const _0x470e14=this['editor'],_0x4f3d43=_0x470e14['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x470e14['locale'],this['annotationViews'])),'commentsArchive'===_0x4f3d43['id']?_0x4f3d43['hide']():_0x4f3d43['show']({'id':'commentsArchive','title':E(_0x470e14['locale'],'COMMENTS_ARCHIVE'),'icon':_0x17f915,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x1c0c65['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x1289c6,_0x154d99=!0x1){const _0x3e63d2=this['editor']['locale'],_0x6eb1ce=this['editor']['plugins']['get']('Dialog'),_0x132ed4=new _0x1289c6(_0x3e63d2);return _0x132ed4['bind']('isEnabled')['to'](this,'isEnabled'),_0x132ed4['bind']('isOn')['to'](_0x6eb1ce,'id',_0x14a201=>'commentsArchive'===_0x14a201),_0x132ed4['set']({'label':E(_0x3e63d2,'COMMENTS_ARCHIVE'),'icon':_0x17f915,'isToggleable':!0x0}),_0x154d99&&(_0x132ed4['tooltip']=!0x0),this['listenTo'](_0x132ed4,'execute',()=>this['_toggleDialog']()),_0x132ed4;}['_hideDialogOnAnnotationEscape']=_0xb98b92=>{const _0xfc7f0=_0xb98b92['source'];if(!this['annotationViews']['has'](_0xfc7f0['view']))return;const _0x20ede6=this['editor']['plugins']['get']('Dialog');_0x20ede6['isOpen']&&'commentsArchive'===_0x20ede6['id']&&(_0x20ede6['hide'](),_0xb98b92['stop']());};}class p extends _0x387cbb{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};