@ckeditor/ckeditor5-comments 45.2.1-alpha.9 → 45.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x320740,ContextPlugin as _0x3af3fa,PendingActions as lt,Command as _0x53e501,Plugin as _0x49a43a,Context as _0x553b7b}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x5ad58d,uid as _0x5e4023,KeystrokeHandler as jt,FocusTracker as _0xa9b33,diff as _0x510946,Collection as _0x495158,Rect as _0x3bd473,CKEditorError as _0xa7d815,first as _0x570d16,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x1afcfc,keyCodes as _0xb68d27}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x23a080,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x59ad87,trimHtml as _0x42137a,LateFocusDropdownButtonView as _0x210d3f,Users as st,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x4425cc}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x36aac6}from'es-toolkit/compat';import{IconUndo as _0x33c00e,IconCheck as _0x2662aa,IconPencil as _0x8b7575,IconRemoveComment as _0x2a78ee,IconThreeVerticalDots as _0x26754a,IconAddComment as _0x41e6b5,IconCommentsArchive as _0x489df2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x1e0fed,ButtonView as _0x3b9991,ViewCollection as _0x67afca,createDropdown as _0x2839dc,ListView as _0x56ad51,focusChildOnDropdownOpen as _0x4bb64d,ListItemView as _0x170854,MenuBarMenuListItemButtonView as _0x40081d,BodyCollection as _0x43cf96,BalloonPanelView as _0x237478,ContextualBalloon as _0x21e229,Dialog as _0x38470c,DialogViewPosition as tt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x3b60be}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 _0x534cc0}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x375d8c}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x5ad58d(){['model'];['view'];constructor(_0x478097,_0x2b149c){super(),this['model']=_0x478097,this['model']['_isAttached']=!0x0,this['view']=_0x2b149c,this['listenTo'](_0x2b149c,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x2b149c,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x2b149c,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x2b149c,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x2b149c,'addComment',(_0x5e97d2,_0x466e2c)=>this['addComment'](_0x466e2c)),this['listenTo'](_0x2b149c,'updateComment',(_0x480f3c,_0x170821,_0x10a780)=>this['updateComment'](_0x170821,_0x10a780)),this['listenTo'](_0x2b149c,'removeComment',(_0x36ce5d,_0x5a1956)=>this['removeComment'](_0x5a1956));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x46abea){this['model']['addComment']({'content':_0x46abea,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x556179,_0x539567){this['model']['getComment'](_0x556179)['update']({'content':_0x539567});}['removeComment'](_0x22bf39){this['model']['getComment'](_0x22bf39)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x457baf,_0x16bb6a,_0x3e4df5){const t=_0x457baf['t'];switch(_0x16bb6a){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'},_0x3e4df5);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'},_0x3e4df5);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'},_0x3e4df5);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'},_0x3e4df5);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3e4df5);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'},_0x3e4df5);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'},_0x3e4df5);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'},_0x3e4df5);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x3b96e8,_0x4cda47){super(_0x3b96e8);const _0x27c452=_0x5e4023();this['main']=this['createCollection'](),this['editable']=new $t(_0x3b96e8,_0x4cda47,void 0x0,{'label':()=>E(_0x3b96e8,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x3b96e8['uiLanguageDirection'],'lang':_0x3b96e8['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x27c452},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Ut{['view'];constructor(_0x7a3aad){super(_0x7a3aad),this['view']=new Vt(_0x7a3aad['locale'],_0x7a3aad['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x5c7f07=this['editor']['editing']['view'],_0x10e821=this['view']['editable'],_0x2770b2=_0x5c7f07['document']['getRoot']();_0x10e821['name']=_0x2770b2['rootName'],this['view']['render']();const _0x250b83=_0x10e821['element'];this['setEditableElement'](_0x10e821['name'],_0x250b83),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5c7f07['attachDomRoot'](_0x250b83),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x5ad58d(_0x320740){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x103db8={}){function _0x67580f(_0x5c1d3b){return _0x5c1d3b['map'](_0x58ff96=>String['fromCharCode'](_0x58ff96))['join']('');}(_0x103db8=Object['assign']({},_0x103db8))['plugins']||(_0x103db8['plugins']=Rt['defaultPlugins']),super(_0x103db8),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[_0x67580f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x67580f([0x76,0x69,0x65,0x77])][_0x67580f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x67580f([0x61,0x75,0x74,0x6f]),this[_0x67580f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x67580f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x67580f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x67580f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x67580f([0x6f,0x6b])});}['create'](){const _0x1a9ac7=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x1a9ac7))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x59adfc=>{const _0xd81036=this['model']['document']['getRoot'](),_0x202a5d=_0xd81036&&_0xd81036['getChild'](_0xd81036['childCount']-0x1);_0x59adfc['setSelection'](_0x202a5d,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x407d00=this['editing']['view'],_0x39cd62=_0x407d00['document']['getRoot'](),_0x35e3fe=_0x39cd62['getChild'](0x0);_0x39cd62['childCount']>0x1||!_0x35e3fe||'p'!=_0x35e3fe['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x407d00,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x35e3fe['placeholder']=this['placeholder']),Ft({'view':_0x407d00,'element':_0x35e3fe,'keepOnFocus':!0x0}),this['placeholderElement']=_0x35e3fe);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x540f19,_0x16eb8d={}){super(_0x540f19),this['editor']=null,this['_editorConfig']=_0x16eb8d,this['set']('value',_0x16eb8d['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x540f19,'Reply...')),this['set']('submitLabel',E(_0x540f19,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0xa9b33(),this['focusCycler']=new _0x1e0fed({'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',(_0x2b9df7,_0x20b56e)=>{this['cancelButtonView']['fire']('execute'),_0x20b56e();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3f14d9,_0x2556e1)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x2556e1());}),this['on']('submit',(_0x117ef7,_0x31a935)=>{_0x31a935['length']>0xfde8?(alert(E(_0x540f19,'TOO_LONG_COMMENT_ALERT',[_0x31a935['length'],0xfde8])),_0x117ef7['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4b04d3=this['editor'];this['element']['insertBefore'](_0x4b04d3['ui']['element'],this['element']['firstChild']),_0x4b04d3['model']['document']['on']('change',()=>this['value']=_0x4b04d3['getData']()),_0x4b04d3['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4b04d3['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x9bf554){-0x1===_0x9bf554?(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:_0x2f1360}=this,_0xc2b4a5=new _0x3b9991(_0x2f1360);return _0xc2b4a5['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xc2b4a5['withText']=!0x0,_0xc2b4a5['bind']('label')['to'](this,'submitLabel'),_0xc2b4a5['on']('execute',()=>{this['fire']('submit',this['value']);}),_0xc2b4a5['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x11ac7d,_0x5624c0)=>!_0x5624c0&&!!_0x11ac7d['trim']()),_0xc2b4a5;}['_createCancelButton'](){const {locale:_0x865af0}=this,_0x48362c=new _0x3b9991(_0x865af0);return _0x48362c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x48362c['label']=E(_0x865af0,'Cancel'),_0x48362c['withText']=!0x0,_0x48362c['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x48362c;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xf96fc7=>{this['focusTracker']['add'](_0xf96fc7['element']);}),this['focusables']['on']('change',(_0x26c294,_0x5a25ac)=>{for(const _0x20ff10 of Array['from'](_0x5a25ac['added'])['reverse']())this['focusTracker']['add'](_0x20ff10['element']);});}}class ie extends kt{constructor(_0x4d4725,_0x1f85db,_0x28bcaf){super(_0x4d4725),this['commentInputView']=new hs(_0x4d4725,_0x28bcaf),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0xe8d953,_0x22d580)=>_0xe8d953||!!_0x22d580),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 _0x23a080(_0x4d4725,_0x1f85db),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'](_0x4c58c7){this['commentInputView']['focus'](_0x4c58c7);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x5124af,_0x540922)=>{const {submitButtonView:_0x399638,cancelButtonView:_0x3c9cf8,editor:_0x12a624}=this['commentInputView'];[_0x399638['element'],_0x3c9cf8['element'],_0x12a624?_0x12a624['editing']['view']['getDomRoot']():null]['filter'](_0x688c1e=>_0x688c1e)['some'](_0x5192f5=>_0x5192f5['contains'](_0x540922['target']))||(this['focus'](),_0x540922['preventDefault']());});}}class cs extends kt{constructor(_0x4cc44d){super(_0x4cc44d);const _0x411c7c=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x411c7c['to']('count',_0x4905d7=>E(_0x4cc44d,'NUMBER_OF_COMMENTS',_0x4905d7))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x4c9e92,_0x62d292,_0x4e0308){super(_0x4c9e92);const _0xdd76ca=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x62d292['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x62d292,this['_config']=_0x4e0308,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0xa9b33(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1e0fed({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x32cc75=>this['commentViews']['map'](_0x1ef36a=>_0x1ef36a['element'])['includes'](_0x32cc75['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x4c9e92),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x1fe3ff=>_0x1fe3ff-this['_config']['maxCommentsWhenCollapsed']);for(const _0x55b889 of _0x62d292['comments'])this['_handleNewCommentModel'](_0x55b889);this['_handleInfoComment'](),this['listenTo'](_0x62d292['comments'],'add',(_0xe4b361,_0x150b62)=>{const _0x2c113d=this['_calculatePosition'](_0x150b62);this['length']++,this['_handleNewCommentModel'](_0x150b62,_0x2c113d),this['refreshVisibleViews']();}),this['listenTo'](_0x62d292['comments'],'remove',(_0x243539,_0x27808f)=>{this['length']--,this['_handleRemoveCommentModel'](_0x27808f),this['refreshVisibleViews']();}),this['listenTo'](_0x62d292,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x62d292,'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',_0xdd76ca['if']('length','ck-hidden',_0xe292c7=>!_0xe292c7)],'aria-label':E(_0x4c9e92,'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'](_0x350610){-0x1===_0x350610?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x211928 of this['commentViews'])_0x211928['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x5c3e50,_0x37c133){const _0x2c302d=new this['_config']['CommentView'](this['locale'],_0x5c3e50,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2c302d['viewUid']=_0x5c3e50['id'],_0x2c302d['delegate']('removeComment')['to'](this),_0x2c302d['delegate']('updateComment')['to'](this),_0x2c302d['delegate']('resolveCommentThread')['to'](this),_0x2c302d['delegate']('editorReady')['to'](this),_0x2c302d['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2c302d,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2c302d,_0x37c133);}['_calculatePosition'](_0x28ee27){const _0x51a056=this['_model']['_findOptimalIndex'](_0x28ee27);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x28ee27['authoredAt']?_0x51a056-0x1:_0x51a056:_0x51a056-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4c45f6={'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'],_0x4c45f6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4c45f6));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3b4031){const _0xfe4fc9=this['commentViews']['remove'](_0x3b4031['id']);this['stopListening'](_0xfe4fc9),_0xfe4fc9['isEditMode']&&this['_updateHasDirtyComment'](),_0xfe4fc9['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2a0e92=>_0x2a0e92['isEditMode']);}['_rearrangeCollapse'](){const _0x402bbe=function(_0x36be5d){const _0x137dcc=new _0x495158();for(const _0x10dd75 of _0x36be5d)_0x137dcc['add'](_0x10dd75);return _0x137dcc;}(this['commentViews']),_0xe5aa3b=this['_collapsedCommentsView']['count'];for(let _0x3eb4d4=0x1;_0x3eb4d4<=_0xe5aa3b;_0x3eb4d4++)_0x402bbe['remove'](0x1);for(const _0x140d87 of _0x402bbe)_0x140d87['collapse']();_0xe5aa3b>0x0&&_0x402bbe['add'](this['_collapsedCommentsView'],0x1),as(_0x510946(Array['from'](this['visibleViews']),Array['from'](_0x402bbe)),this['visibleViews'],_0x402bbe);}['_rearrangeExpand'](){as(_0x510946(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1aad10 of this['visibleViews'])_0x1aad10['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x3b3326=>{this['focusTracker']['add'](_0x3b3326['element']),this['keystrokes']['listenTo'](_0x3b3326['element']);}),this['commentViews']['on']('change',(_0x368673,_0x160b71)=>{for(const _0x43a8c5 of _0x160b71['removed'])this['focusTracker']['remove'](_0x43a8c5['element']),this['keystrokes']['stopListening'](_0x43a8c5['element']);for(const _0x1b8e1f of Array['from'](_0x160b71['added'])['reverse']())this['focusTracker']['add'](_0x1b8e1f['element']),this['keystrokes']['listenTo'](_0x1b8e1f['element']);});}}function as(_0x22e75f,_0x3ab4c4,_0x32fae3){let _0xb316e0=0x0;for(const _0x5d60c9 of _0x22e75f)switch(_0x5d60c9){case'insert':_0x3ab4c4['add'](_0x32fae3['get'](_0xb316e0),_0xb316e0),_0xb316e0++;break;case'delete':_0x3ab4c4['remove'](_0xb316e0);break;case'equal':_0xb316e0++;}}class ls extends kt{constructor(_0x26c36a){super(_0x26c36a);const _0x146a90=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x146a90['to']('contextValue',_0x1567dd=>E(_0x26c36a,'THREAD_CONTEXT_LABEL',_0x1567dd)),'tabindex':-0x1},'children':[{'text':_0x146a90['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x316743,_0x2da13e){super(_0x316743);const _0x2b253e=this['bindTemplate'];this['_model']=_0x2da13e,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0xa9b33(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1e0fed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x26d92c=>!!_0x26d92c),this['bind']('contextValue')['to'](this['_model'],'context',_0x132fd6=>_0x132fd6&&_0x132fd6['value']?this['_trimContextValue'](_0x132fd6['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',_0x2b253e['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 _0xb75f8c=new _0x3b9991(this['locale']);return _0xb75f8c['label']=E(this['locale'],'Reopen'),_0xb75f8c['tooltip']=E(this['locale'],'Reopen'),_0xb75f8c['icon']=_0x33c00e,_0xb75f8c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3cf21c=>!_0x3cf21c),_0xb75f8c['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x527f9a,_0x57928b)=>_0x527f9a&&_0x57928b),_0xb75f8c['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0xb75f8c;}['_trimContextValue'](_0x407ff0){if(_0x407ff0['length']<0x96)return _0x407ff0;const _0x29e097=_0x407ff0['lastIndexOf']('\x20',0x93);return _0x407ff0['substring'](0x0,_0x29e097>-0x1?_0x29e097:0x93)+'...';}['_attachContextActions'](){const _0x40152e=this['element']['querySelector']('.ck-context'),_0x107982=_0x40152e['querySelector']('.ck-context__value');this['listenTo'](_0x40152e,'mouseenter',()=>{_0x107982['offsetWidth']<_0x107982['scrollWidth']&&_0x40152e['classList']['add']('overlay');}),this['listenTo'](_0x40152e,'mouseleave',()=>{_0x40152e['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x416fd9 of this['focusables'])this['focusTracker']['add'](_0x416fd9['element']),this['keystrokes']['listenTo'](_0x416fd9['element']);}['_createContextView'](){const _0x150c37=new ls(this['locale']);return _0x150c37['bind']('contextValue')['to'](this),_0x150c37;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x418a3e,_0x29778f,_0x29ce66,_0x22d24d){super(_0x418a3e),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x29778f,this['_localUser']=_0x29ce66,this['_config']=_0x22d24d,this['commentThreadHeaderView']=new Yt(_0x418a3e,_0x29778f),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x418a3e,E(_0x418a3e,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x418a3e,_0x29778f,Object['assign']({'CommentView':this['_config']['CommentView']},_0x22d24d)),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',(_0x2a6357,_0x3f7aec)=>_0x2a6357||!!_0x3f7aec),this['bind']('isUnlinked')['to'](_0x29778f,'unlinkedAt',_0x19a23d=>!!_0x19a23d),this['bind']('ariaLabel')['to'](this,'length',_0x4de3d7=>{const _0x19f7b7=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x4de3d7,_0x19f7b7]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0xa9b33(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1e0fed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x86bd3e=>_0x86bd3e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x659084=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2969f1=_0x659084['commentInputView'];return _0x659084['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x2969f1,'value',(_0x4d067c,_0x5d41d7,_0x5d19f3,_0x57ea1b,_0x495aaf)=>!!_0x495aaf||!!_0x57ea1b&&_0x5d19f3&&!_0x5d41d7||_0x4d067c&&_0x5d19f3&&!_0x5d41d7),_0x2969f1['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x49cce2,_0x316baa,_0x5d9ec1)=>{let _0x8afa2b;return _0x8afa2b=_0x5d9ec1&&_0x316baa?'Reply\x20to\x20reopen\x20discussion...':_0x49cce2?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x8afa2b);}),_0x2969f1['bind']('submitLabel')['to'](this,'length',_0x275bf2=>E(this['locale'],_0x275bf2?'Reply':'Comment')),_0x2969f1['on']('submit',(_0x271e02,_0x263b87)=>{this['fire']('addComment',_0x263b87),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x2969f1['on']('cancel',()=>{this['focus']();}),_0x2969f1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2969f1['on']('cancel',_0x9ca5d5=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x9ca5d5['stop']());}),this['on']('change:isActive',(_0x3b322b,_0xf3a28,_0x312fde)=>{_0x312fde||this['length']||_0x2969f1['value']||this['fire']('removeCommentThread');}),_0x659084;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x30aa30,_0x3f9360,_0x6a33ab,_0x104f77){super(_0x30aa30,_0x3f9360,_0x6a33ab,_0x104f77),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x30aa30,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x5194db,_0x47e291,_0x43e04d)=>{_0x43e04d||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1b91ac,_0x2aa994,_0x5a7375)=>{_0x5a7375&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5284f1=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x5284f1['if']('isActive','ck-thread--active'),_0x5284f1['if']('isUnlinked','ck-thread--unlinked'),_0x5284f1['if']('isConfirm','ck-thread--remove-confirmation'),_0x5284f1['to']('actionIndicator',_0x20bd42=>_0x20bd42?'ck-thread--'+_0x20bd42:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5284f1['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 _0x200a4c of this['commentsListView']['commentViews'])_0x200a4c['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x2c0bb5}=this,_0x322cb3=this['commentsListView']['commentViews']['get'](0x0);_0x322cb3===this['_boundFirstCommentView']||_0x322cb3['isSystemComment']||(this['_boundFirstCommentView']=_0x322cb3,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x322cb3,'actionIndicator',_0x223045=>'remove'===_0x223045?'remove':null),_0x322cb3['placeholder']=E(_0x2c0bb5,'Write\x20a\x20comment...'),_0x322cb3['removeButton']['on']('execute',_0x95228c=>{_0x95228c['stop'](),this['showConfirm'](E(_0x2c0bb5,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x322cb3['focus']();}),_0x322cb3['actionBar']['add'](this['resolveButton'],0x0),_0x322cb3['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x3c922f=new _0x59ad87(this['locale']);return _0x3c922f['label']=E(this['locale'],'Resolve'),_0x3c922f['tooltip']=E(this['locale'],'Resolve'),_0x3c922f['icon']=_0x2662aa,_0x3c922f['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x3c922f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xa967d8=>!_0xa967d8),_0x3c922f['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x7ab053,_0x51d1b7)=>_0x7ab053&&!_0x51d1b7),_0x3c922f['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x3c922f;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class os extends kt{constructor(_0x2aea23){super(_0x2aea23),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x33b067,_0x1f8668,_0x12d0c7)=>{this['element']['innerHTML']=_0x12d0c7;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x20c684,_0x10e918,_0x1bad8d){super(_0x20c684),this['_model']=_0x10e918,this['_config']=_0x1bad8d,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x10e918,'content',_0x10e918,'authoredAt',(_0x3b6ab3,_0x8f4367)=>E(_0x20c684,'COMMENT_ARIA_LABEL',[_0x10e918['author']['name'],_0x1bad8d['formatDateTime'](_0x8f4367),new DOMParser()['parseFromString'](_0x3b6ab3,'text/html')['body']['textContent'],_0x10e918['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x20c684,E(_0x20c684,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x67afca(),this['focusTracker']=new _0xa9b33(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1e0fed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5caa99=>_0x5caa99['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 _0x547d76=new os(this['locale']);return _0x547d76['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1e0856,_0x5f4009)=>_0x5f4009?_0x42137a(_0x1e0856,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1e0856),_0x547d76;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x4c46eb=new hs(this['locale'],this['_config']['editorConfig']);return _0x4c46eb['value']=this['_model']['content'],_0x4c46eb['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4c46eb['submitLabel']=E(this['locale'],'Save'),_0x4c46eb['on']('submit',(_0x5aefb5,_0x44f2fd)=>{this['fire']('updateComment',this['_model']['id'],_0x44f2fd),this['switchToDisplayMode'](),this['focus']();}),_0x4c46eb['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x4c46eb['once']('editorReady',()=>{_0x4c46eb['focus']();}),_0x4c46eb['createEditor'](),_0x4c46eb['delegate']('editorReady')['to'](this),_0x4c46eb['delegate']('editorDestroyed')['to'](this),_0x4c46eb;}['_setupKeyboardNavigation'](){const _0x55d356=this['element'];this['keystrokes']['listenTo'](_0x55d356);for(const _0x1a8e4f of this['focusables'])this['focusTracker']['add'](_0x1a8e4f['element']),this['keystrokes']['listenTo'](_0x1a8e4f['element']);this['focusables']['on']('change',(_0x175b7b,_0x3ae1bc)=>{for(const _0x32b9fe of _0x3ae1bc['removed'])this['focusTracker']['remove'](_0x32b9fe['element']),this['keystrokes']['stopListening'](_0x32b9fe['element']);for(const _0x4107f8 of _0x3ae1bc['added'])this['focusTracker']['add'](_0x4107f8['element']),this['keystrokes']['listenTo'](_0x4107f8['element']);}),this['keystrokes']['set']('enter',(_0x3b95cb,_0x1037e7)=>{_0x55d356===_0x3b95cb['target']&&(this['focusCycler']['focusFirst'](),_0x1037e7());}),this['keystrokes']['set']('esc',(_0x5d53cf,_0x42cf56)=>{_0x55d356!==_0x5d53cf['target']&&(this['focus'](),_0x42cf56());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(rs){['actionBar'];['userView'];constructor(_0x1c157a,_0x538a3c,_0x3eda97){super(_0x1c157a,_0x538a3c,_0x3eda97),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x1c157a,'Reply...')),this['bind']('authoredAt')['to'](_0x538a3c),this['bind']('resolvedAt')['to'](_0x538a3c),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 _0x23a080(_0x1c157a,_0x538a3c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x538a3c,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x178eb3=this['bindTemplate'],_0x6cd032=[{'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':_0x178eb3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x178eb3['to']('authoredAt',_0x3fb504=>this['_config']['formatDateTime'](_0x3fb504))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x178eb3['if']('isEditMode','ck-comment__actions--hidden'),_0x178eb3['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']&&_0x6cd032['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x178eb3['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x178eb3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x178eb3['if']('isEditMode','ck-comment--edit'),_0x178eb3['if']('isSystemComment','ck-comment--info'),_0x178eb3['to']('actionIndicator',_0x2b6aef=>_0x2b6aef?'ck-comment--'+_0x2b6aef:'')],'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':_0x6cd032}]}]};}['_createEditButton'](){const _0x2bb7d1=new _0x3b9991(this['locale']);return _0x2bb7d1['label']=E(this['locale'],'Edit'),_0x2bb7d1['icon']=_0x8b7575,_0x2bb7d1['withText']=!0x0,_0x2bb7d1['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2bb7d1['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x23278e=>!_0x23278e),_0x2bb7d1['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2bb7d1['on']('execute',()=>this['switchToEditMode']()),_0x2bb7d1;}['_createRemoveButton'](){const _0x43783e=new _0x3b9991(this['locale']);return _0x43783e['label']=E(this['locale'],'Remove'),_0x43783e['icon']=_0x2a78ee,_0x43783e['withText']=!0x0,_0x43783e['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x43783e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1089e8=>!_0x1089e8),_0x43783e['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x43783e['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x43783e;}['_createDropdown'](){const _0x212ec0=_0x2839dc(this['locale'],_0x210d3f),_0x507f54=_0x212ec0['panelView']['children'],_0x4997bd=new _0x56ad51(this['locale']),_0x39c8a4=_0x212ec0['bindTemplate'];_0x4bb64d(_0x212ec0,()=>this['items']['find'](_0xfd5b4d=>_0xfd5b4d['isVisible'])),_0x212ec0['extendTemplate']({'attributes':{'class':[_0x39c8a4['if']('isVisible','ck-hidden',_0x2dcddd=>!_0x2dcddd)]}});const _0x13e70a=(_0x341647,_0x5cc6c9=-0x1)=>{const _0xa1092b=new _0x170854(this['locale']);_0xa1092b['children']['add'](_0x341647);const _0x4eb0ac=_0x5cc6c9>-0x1?_0x5cc6c9:_0x4997bd['items']['length'];_0x4997bd['items']['add'](_0xa1092b,_0x4eb0ac);const _0x10da38=Array['from'](this['items']);_0x212ec0['unbind']('isEnabled','isVisible'),_0x212ec0['bind']('isEnabled')['toMany'](_0x10da38,'isEnabled',(..._0x24fd58)=>_0x24fd58['some'](_0x573f4e=>_0x573f4e)),_0x212ec0['bind']('isVisible')['toMany'](_0x10da38,'isVisible',(..._0x490de3)=>_0x490de3['some'](_0x34d294=>_0x34d294));};_0x212ec0['panelPosition']='sw',_0x212ec0['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x26754a});for(const _0x2fc57d of this['items'])_0x13e70a(_0x2fc57d);return _0x507f54['add'](_0x4997bd),_0x212ec0['listenTo'](this['items'],'add',(_0x4690d9,_0x30572d,_0x27f5a2)=>{_0x13e70a(_0x30572d,_0x27f5a2);}),_0x212ec0['listenTo'](this['items'],'remove',(_0x13d655,_0x103979,_0x18682d)=>{_0x4997bd['items']['remove'](_0x18682d);}),_0x212ec0;}['_attachActions'](_0x5cfdc1,_0x2f1cf5){const _0x1a669c=_0x5cfdc1&&_0x5cfdc1['element'];_0x1a669c&&(this['listenTo'](_0x1a669c,'mouseenter',()=>this['actionIndicator']=_0x2f1cf5),this['listenTo'](_0x1a669c,'focus',()=>this['actionIndicator']=_0x2f1cf5),this['listenTo'](_0x1a669c,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x1a669c,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xdc2bfb=super['_createCommentInputView']();return _0xdc2bfb['bind']('placeholder')['to'](this),_0xdc2bfb;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x183139){const _0x1bc42d=Dt(_0x183139,0x1e),_0x4e74b6=new MutationObserver(_0xc2ba7b=>{for(const _0x26d79c of _0xc2ba7b)('attributes'==_0x26d79c['type']&&'class'==_0x26d79c['attributeName']||'childList'==_0x26d79c['type']||'characterData'==_0x26d79c['type'])&&_0x1bc42d();});return{'attach'(_0x3c8b30){_0x4e74b6['observe'](_0x3c8b30,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4e74b6['disconnect'](),_0x1bc42d['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x180e2c,_0x3aa231){super(_0x180e2c),this['id']=_0x5e4023(),this['focusTracker']=new _0xa9b33(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x39ffac,_0x34db96)=>this['fire']('Esc',_0x34db96)),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'](_0x3aa231),this['mainView']=_0x3aa231;const _0x27e37b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x27e37b['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 _0x302a66=this['element']['clientHeight'];_0x302a66&&(this['height']=_0x302a66);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x5ad58d(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x5954c0,target:_0x4457d9,type:_0x405b18,isVisible:_0x297223=!0x0}){super(),this['view']=_0x5954c0,this['view']['element']||this['view']['render'](),this['_type']=_0x405b18,this['_target']=_0x4457d9,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x495158([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x3d19f2,_0x526bba)=>{this['view']['focusTracker']['add'](_0x526bba);}),this['focusableElements']['on']('remove',(_0x2397f7,_0x336d3b)=>{this['view']['focusTracker']['remove'](_0x336d3b);}),this['set']('isVisible',_0x297223);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x13bb33=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x13bb33),_0x13bb33;}get['targetRect'](){const _0x4e35cf=this['target'];if(null===_0x4e35cf)return null;if(_0x4e35cf instanceof _0x3bd473)return _0x4e35cf;const _0x315cf3=_0x4e35cf['filter'](_0xa15965=>function(_0x1fdb55){const _0x1c003c=_0x1fdb55['offsetParent'];if(_0x1c003c)return!0x0;const _0x1eb5ec=_0x1fdb55['getClientRects']()['item'](0x0);return!!_0x1eb5ec;}(_0xa15965));return 0x0===_0x315cf3['length']?null:new _0x3bd473(_0x315cf3[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x2ea97e){this['view']['isActive']=_0x2ea97e,this['view']['mainView']['isActive']=_0x2ea97e;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x50f03a){if(!(null===_0x50f03a||_0x50f03a instanceof _0x3bd473||Array['isArray'](_0x50f03a)&&_0x50f03a['every'](_0x30396d=>li(_0x30396d))))throw new _0xa7d815('annotation-invalid-target',null,{'target':_0x50f03a});}['_getNormalizedTarget'](){const _0x1a07df='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x1a07df)?[_0x1a07df]:_0x1a07df;}}function li(_0x351aae){return null!==_0x351aae&&'object'==typeof _0x351aae&&'nodeType'in _0x351aae&&0x1===_0x351aae['nodeType'];}class _ extends _0x495158{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x5627df=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0xa9b33(),this['_focusTracker']['on']('change:isFocused',(_0x557eb1,_0x15589c,_0x5d560c)=>{_0x5d560c||this['fire']('blur');});for(const _0x151d33 of _0x5627df)this['add'](_0x151d33);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2375a5){if(this['has'](_0x2375a5))throw new _0xa7d815('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2375a5['innerView'],_0x2375a5),this['_viewToAnnotation']['set'](_0x2375a5['view'],_0x2375a5);for(const _0xd9d6 of _0x2375a5['focusableElements'])this['_focusTracker']['add'](_0xd9d6);this['listenTo'](_0x2375a5['focusableElements'],'add',(_0x38cf5b,_0x40e01d)=>{this['_focusTracker']['add'](_0x40e01d);}),this['listenTo'](_0x2375a5['focusableElements'],'remove',(_0x2f98fb,_0x1a6050)=>{this['_focusTracker']['remove'](_0x1a6050);}),this['listenTo'](_0x2375a5['view']['focusTracker'],'change:isFocused',(_0x3a56c3,_0x2b39ec,_0x2705c0)=>{_0x2705c0&&this['fire']('focus',_0x2375a5);}),_0x2375a5['updateTargetRect']();const _0x1b364a=this['_getOrderInContent'](_0x2375a5['view']['targetRect']);return super['add'](_0x2375a5,_0x1b364a);}['remove'](_0x4cbb22){if(!this['has'](_0x4cbb22))throw new _0xa7d815('annotationcollection-not-existing-item',null);this['stopListening'](_0x4cbb22['view']['focusTracker']),this['stopListening'](_0x4cbb22['focusableElements']);for(const _0x6a5cfb of _0x4cbb22['focusableElements'])this['_focusTracker']['remove'](_0x6a5cfb);return this['_viewToAnnotation']['delete'](_0x4cbb22['view']),this['_innerViewToAnnotation']['delete'](_0x4cbb22['innerView']),super['remove'](_0x4cbb22);}['getByInnerView'](_0x435393){return this['_innerViewToAnnotation']['get'](_0x435393);}['getByView'](_0x2c7a9f){return this['_viewToAnnotation']['get'](_0x2c7a9f);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x3fa6d9 of this)_0x3fa6d9['updateTargetRect']();this['_sort']();}['_sort'](){const _0x21a5f1=Array['from'](this)['sort']((_0x43bbb3,_0x4c04ba)=>v(_0x43bbb3['view']['targetRect'],_0x4c04ba['view']['targetRect']));for(let _0x2bc2c7=_0x21a5f1['length']-0x1;_0x2bc2c7>0x0;_0x2bc2c7--){const _0x51c952=_0x21a5f1[_0x2bc2c7];_0x2bc2c7!==this['getIndex'](_0x51c952)&&(this['remove'](_0x51c952),this['add'](_0x51c952));}}['_getOrderInContent'](_0x1137fe){let _0x58e198=0x0;if(!_0x1137fe)return this['length'];for(const _0x388cc5 of this){const _0x59b383=_0x388cc5['view']['targetRect'];if(_0x59b383){if(v(_0x1137fe,_0x59b383)<0x0)return _0x58e198;_0x58e198++;}}return _0x58e198;}}function v(_0x2a59b2,_0x4cf180){if(null===_0x2a59b2&&null===_0x4cf180)return 0x0;if(null===_0x2a59b2)return-0x1;if(null===_0x4cf180)return 0x1;const _0x61bb14=_0x2a59b2['top']-_0x4cf180['top'];return 0x0==_0x61bb14?_0x2a59b2['left']-_0x4cf180['left']:_0x61bb14;}class O extends _0x3af3fa{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x515c90){if(super(_0x515c90),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x515c90 instanceof _0x320740){const _0x2f8e29=_0x515c90['locale'];_0x515c90['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x2f8e29,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x2f8e29,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x2f8e29,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x2f8e29,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x2f8e29,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x2f8e29,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x2f8e29,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x1f2cbc){this['collection']['add'](_0x1f2cbc);}['remove'](_0x485446){this['collection']['remove'](_0x485446),_0x485446['destroy']();}['refreshVisibility'](){for(const _0x397977 of this['collection'])_0x397977['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x5c9014){return this['collection']['getByInnerView'](_0x5c9014);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3afee6 of this['collection'])_0x3afee6['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0xbc5b2b){this['fire']('_activateAnnotation',_0xbc5b2b);}['createAnnotation'](_0x233fed){return new d(_0x233fed);}['createAnnotationView'](_0x4c9acb,_0x51de9c){return new S(_0x4c9acb,_0x51de9c);}['_addActiveAnnotation'](_0x1ad8fe){const _0x3093e1=new Set(this['activeAnnotations']);_0x3093e1['add'](_0x1ad8fe),this['activeAnnotations']=_0x3093e1;}['_removeActiveAnnotation'](_0x52d55d){const _0x4f923d=new Set(this['activeAnnotations']);_0x4f923d['delete'](_0x52d55d),this['activeAnnotations']=_0x4f923d;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5555eb=this['collection'],_0x11de95=this['_visibleAnnotations'];function _0x315ca1(_0x47805f){const _0x410642=_0x47805f['source'];_0x410642['isVisible']&&!_0x11de95['has'](_0x410642)?_0x11de95['add'](_0x410642):!_0x410642['isVisible']&&_0x11de95['has'](_0x410642)&&_0x11de95['remove'](_0x410642),_0x410642['view']['focusTracker']['remove'](_0x410642['view']['element']),_0x410642['view']['focusTracker']['add'](_0x410642['view']['element']);}this['listenTo'](_0x5555eb,'add',(_0x33d2d9,_0x39e7e9)=>{_0x39e7e9['isVisible']&&_0x11de95['add'](_0x39e7e9),this['listenTo'](_0x39e7e9,'change:isVisible',_0x315ca1);}),this['listenTo'](_0x5555eb,'remove',(_0x109c82,_0x4602bb)=>{_0x11de95['has'](_0x4602bb)&&_0x11de95['remove'](_0x4602bb),this['stopListening'](_0x4602bb,'change:isVisible',_0x315ca1);});}['_setupEnterAnnotationKeystroke'](){const _0x11c2ee=_0x43623f=>{_0x43623f['on']('ready',()=>{_0x43623f['keystrokes']['set'](_0x534cc0,(_0x51d702,_0x4883c9)=>{const _0xf3b144=_0x570d16(this['activeAnnotations']['values']());_0xf3b144&&(_0xf3b144['view']['focus'](),_0x4883c9());});});};this['context']instanceof _0x320740?_0x11c2ee(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x12feef,_0x35507f)=>{_0x11c2ee(_0x35507f);});}['_setupEscapeAnnotationHandling'](){const _0x4a133b=_0x4dc01b=>{const _0x541bab=_0x4dc01b['source'],_0x491dff=[];let _0x335e27;if(Array['isArray'](_0x541bab['target'])){_0x335e27=_0x541bab['target'][0x0],this['context']instanceof _0x320740?_0x491dff['push'](this['context']):this['context']['editors']&&_0x491dff['push'](...this['context']['editors']);for(const _0x369dcd of _0x491dff)for(const _0x4bd418 of _0x369dcd['editing']['view']['domRoots']['values']())if(_0x4bd418['contains'](_0x335e27))return void _0x369dcd['editing']['view']['focus']();_0x335e27['focus']();}};this['listenTo'](this['collection'],'add',(_0x4abebc,_0x816b19)=>{this['listenTo'](_0x816b19,'escape',_0x4a133b,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x549c72,_0xb77f01)=>{this['stopListening'](_0xb77f01,'escape',_0x4a133b);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x3af3fa{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[O,lt,st];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24eb90){super(_0x24eb90),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2e5341=this['context']['config'];_0x2e5341['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2e5341['define']('comments.maxThreadTotalWeight',0x1f4),_0x2e5341['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2e5341['define']('comments.CommentThreadView',gt),_0x2e5341['define']('comments.CommentView',Tt),_0x2e5341['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x4244d8=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x231a5,_0x8f493a)=>this['_addCommentThread'](_0x8f493a)),this['on']('submitCommentThread',(_0x5b4c1c,_0x51e569)=>this['_submitCommentThread'](_0x51e569)),this['on']('resolveCommentThread',(_0x20c55c,_0x3024fb)=>this['_resolveCommentThread'](_0x3024fb)),this['on']('resolveCommentThread',(_0x34ef6a,_0x32a8bf)=>this['_updateActiveAnnotation'](_0x32a8bf),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3c5e08,_0x50691b)=>this['_reopenCommentThread'](_0x50691b)),this['on']('reopenCommentThread',(_0x2e123f,_0x3c0eec)=>this['_updateActiveAnnotation'](_0x3c0eec),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x17f908,_0x384910)=>this['_removeCommentThread'](_0x384910)),this['on']('updateCommentThread',(_0x4fcfbd,_0x3e2200)=>this['_updateCommentThread'](_0x3e2200)),this['on']('updateCommentThread',(_0x1c1795,_0x83dc5)=>this['_updateActiveAnnotation'](_0x83dc5),{'priority':'lowest'}),this['on']('addComment',(_0x12242e,_0x9f2fea)=>this['_addComment'](_0x9f2fea)),this['on']('updateComment',(_0x1b5cd5,_0xf7500f)=>this['_updateComment'](_0xf7500f)),this['on']('removeComment',(_0xae9705,_0xceb6e1)=>this['_removeComment'](_0xceb6e1)),this['on']('addComment',(_0x11e970,{threadId:_0x57fb4d,isFromAdapter:_0x4f868c})=>{if(_0x4f868c)return;const _0x3e94d7=this['getCommentThread'](_0x57fb4d),_0x5e758e=_0x3e94d7&&this['_threadToController']['get'](_0x3e94d7);_0x5e758e&&_0x5e758e['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x4244d8,'change:activeAnnotations',(_0xc8cb5e,_0x50462c,_0x424598)=>{const _0x28307=Array['from'](_0x424598)['map'](_0x17591b=>this['_viewToController']['get'](_0x17591b['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x28307?_0x28307['model']:null;});}set['adapter'](_0x559157){if(this['_adapter'])throw new _0xa7d815('commentsrepository-adapter-already-set');this['_adapter']=_0x559157;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0xa70485=_t,threadId:_0x4cb0a1=_0x5e4023(),comments:_0x309809=[],unlinkedAt:_0x17fafc=null,resolvedAt:_0x15b96f=null,resolvedBy:_0x1caea0=null,target:_0x3b5ec1=null,context:_0x3229c7=null,attributes:_0x522c5a={},isResolvable:_0x30b47a=!0x0,isSubmitted:_0x4b4bf1=!0x1,isFromAdapter:_0x247022=!0x1}={}){return this['fire'](Nt('addCommentThread',_0xa70485),{'channelId':_0xa70485,'threadId':_0x4cb0a1,'comments':_0x309809,'unlinkedAt':_0x17fafc,'resolvedAt':_0x15b96f,'resolvedBy':_0x1caea0,'target':_0x3b5ec1,'context':_0x3229c7,'attributes':_0x522c5a,'isFromAdapter':_0x247022,'isResolvable':_0x30b47a,'isSubmitted':_0x4b4bf1}),this['getCommentThread'](_0x4cb0a1);}['openNewCommentThread']({channelId:_0x25e342=_t,threadId:_0xc0b0f3=_0x5e4023(),target:_0x16040c,context:_0x496827=null,isResolvable:_0x11a8f8=!0x0}){if(this['_readOnlyChannels']['has'](_0x25e342)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x16040c)throw new _0xa7d815('commentsrepository-missing-target');const _0x363519=this['addCommentThread']({'channelId':_0x25e342,'threadId':_0xc0b0f3,'target':_0x16040c,'context':_0x496827,'isResolvable':_0x11a8f8});if(!_0x363519)return null;const _0x5eeecd=this['_threadToController']['get'](_0x363519),_0x4a8b16=_0x5eeecd['view']['commentThreadInputView']['commentInputView'],_0x2ac8b7=this['context']['plugins']['get'](O),_0x189c4c=_0x2ac8b7['getByInnerView'](_0x5eeecd['view']);return _0x2ac8b7['activate'](_0x189c4c),_0x4a8b16['once']('editorReady',()=>_0x4a8b16['focus']()),_0x363519;}['hasCommentThread'](_0x2ecb0a){if('string'!=typeof _0x2ecb0a)throw new _0xa7d815('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2ecb0a);}['updateCommentThread']({channelId:_0x21a324=_t,threadId:_0x3d86a7,context:_0x2d78bc,unlinkedAt:_0x5ab4e9,attributes:_0x24dfd0,isFromAdapter:_0x451757=!0x1}){return this['fire'](Nt('updateCommentThread',_0x21a324),{'channelId':_0x21a324,'threadId':_0x3d86a7,'context':_0x2d78bc,'unlinkedAt':_0x5ab4e9,'attributes':_0x24dfd0,'isFromAdapter':_0x451757}),this['getCommentThread'](_0x3d86a7);}['getCommentThread'](_0x4b7f9d){if('string'!=typeof _0x4b7f9d)throw new _0xa7d815('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4b7f9d);}['fetchCommentThread']({channelId:_0x35a619,threadId:_0x1614af}={}){const _0x3e40bc=this['getCommentThread'](_0x1614af);if(_0x3e40bc)return Promise['resolve'](_0x3e40bc);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0xa7d815('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x35a619,'threadId':_0x1614af})['then'](_0x1e52d9=>this['hasCommentThread'](_0x1614af)?this['getCommentThread'](_0x1614af):_0x1e52d9?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x35a619},_0x1e52d9)):void 0x0)['catch'](_0x1d59fc=>{throw console['error'](_0x1d59fc),new _0xa7d815('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x12231a,skipNotAttached:_0x4aed37=!0x1,skipEmpty:_0x3d3d7c=!0x1,toJSON:_0x314b3b=!0x1}={}){const _0x44741a=[];for(const _0x139d82 of this['_threads']['values']())_0x12231a&&_0x139d82['channelId']!==_0x12231a||_0x4aed37&&!_0x139d82['isAttached']||_0x3d3d7c&&0x0===_0x139d82['length']||_0x44741a['push'](_0x139d82);return _0x314b3b?_0x44741a['map'](_0x56d289=>_0x56d289['toJSON']()):_0x44741a;}['setActiveCommentThread'](_0x4c396f){const _0x365428=this['context']['plugins']['get'](O);if(!_0x4c396f)return void(this['activeCommentThread']&&_0x365428['deactivateAll']());const _0x45d8b6=this['getCommentThread'](_0x4c396f);if(!_0x45d8b6)throw new _0xa7d815('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4c396f});if(!this['_threadToController']['has'](_0x45d8b6))throw new _0xa7d815('commentsrepository-active-not-attached',null,{'threadId':_0x4c396f});const _0x479d5a=_0x365428['getByInnerView'](this['_threadToController']['get'](_0x45d8b6)['view']);_0x365428['activate'](_0x479d5a);}['switchReadOnly'](_0x1bc062,_0x2661f4){_0x1bc062?this['_readOnlyChannels']['add'](_0x2661f4):this['_readOnlyChannels']['delete'](_0x2661f4),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x4cbfb0){return this['_readOnlyChannels']['has'](_0x4cbfb0)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x569d2b,_0x6c15){return new vt(_0x569d2b,_0x6c15);}['setPermissions'](_0x11d8f4,_0x8e8cab=_t){this['_permissions']['set'](_0x8e8cab,_0x11d8f4),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x389520=_t){return this['_permissions']['has'](_0x389520)?this['_permissions']['get'](_0x389520):bt;}['_addCommentThread']({channelId:_0x1777e0,threadId:_0x636b66,comments:_0x5aa886,unlinkedAt:_0x445905,resolvedAt:_0x274c6d,resolvedBy:_0x90a7b9,target:_0x518d29,context:_0x5a849e,attributes:_0x55af03,isFromAdapter:_0x321d09,isResolvable:_0x2d4bfc,isSubmitted:_0xc4bdc3}){if('string'!=typeof _0x636b66)throw new _0xa7d815('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x636b66});if(this['hasCommentThread'](_0x636b66))throw new _0xa7d815('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x636b66});const _0xc8373b=new ui(this,{'channelId':_0x1777e0,'id':_0x636b66,'context':_0x5a849e,'attributes':_0x55af03,'unlinkedAt':_0x445905,'resolvedAt':_0x274c6d,'resolvedBy':_0x90a7b9?this['context']['plugins']['get'](st)['getUser'](_0x90a7b9):null,'isResolvable':_0x2d4bfc,'isSubmitted':_0xc4bdc3||_0x321d09});this['_threads']['set'](_0x636b66,_0xc8373b);for(const _0x310b73 of _0x5aa886)_0xc8373b['_add'](this['_createNewComment']({'threadId':_0x636b66,..._0x310b73}));return _0x518d29&&_0xc8373b['attachTo'](_0x518d29),_0x321d09||!_0xc8373b['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1777e0,'threadId':_0x636b66});}['_submitCommentThread']({channelId:_0x4e9d40,threadId:_0x2bcf0b}){if(!this['hasCommentThread'](_0x2bcf0b))throw new _0xa7d815('commentsrepository-missing-comment-thread',this);const _0x5b3978=this['getCommentThread'](_0x2bcf0b);if(_0x5b3978['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x4aacca,comments:_0xa4229a,resolvedAt:_0x47562b,resolvedBy:_0x124be5,context:_0x1b973a,attributes:_0x52279d}=_0x5b3978,_0x2e836b=this['context']['plugins']['get']('PendingActions'),_0x13ac37=_0x2e836b['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4e9d40,'threadId':_0x4aacca,'comments':_0xa4229a['map'](_0xa10b9=>_0xa10b9['toJSON']()),'resolvedAt':_0x47562b,'resolvedBy':_0x124be5?_0x124be5['id']:_0x124be5,'context':_0x1b973a,'attributes':_0x52279d})['then'](({comments:_0x55d1ae})=>{_0x2e836b['remove'](_0x13ac37);for(const _0x3cbadb of _0x55d1ae)this['_updateComment']({'channelId':_0x4e9d40,'threadId':_0x2bcf0b,'commentId':_0x3cbadb['commentId'],'createdAt':_0x3cbadb['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x847614=>{throw console['error'](_0x847614),new _0xa7d815('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x6420b0,target:_0x547988}){const _0x331fc9=this['getCommentThread'](_0x6420b0);if(!_0x331fc9)throw new _0xa7d815('commentsrepository-attach-missing-comment-thread',this);const _0x57a3a4=this['context']['plugins']['get']('PendingActions'),_0x1a6b69=this['context']['plugins']['get'](O),_0x5cab3d=this['_createCommentThreadView'](_0x331fc9),_0x23e0d9=new vt(_0x331fc9,_0x5cab3d);let _0x40c048=null;_0x5cab3d['on']('change:isDirty',(_0x49a7e9,_0x45e2e8,_0xa067b4)=>{_0xa067b4?_0x40c048=_0x57a3a4['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x40c048&&(_0x57a3a4['remove'](_0x40c048),_0x40c048=null);}),this['_threadToController']['set'](_0x331fc9,_0x23e0d9),this['_viewToController']['set'](_0x5cab3d,_0x23e0d9);const _0x2fd694=new S(this['context']['locale'],_0x5cab3d);_0x2fd694['bind']('length')['to'](_0x5cab3d),_0x2fd694['bind']('isDirty')['to'](_0x5cab3d,'isDirty',_0x5cab3d,'length',(_0x503767,_0xeb1ffe)=>_0x503767||!_0xeb1ffe),_0x2fd694['bind']('isActive')['to'](_0x5cab3d),_0x2fd694['type']='comment';const _0x5556c1=new d({'view':_0x2fd694,'target':_0x547988,'type':'comment','isVisible':!_0x331fc9['archivedAt']});return _0x5cab3d['on']('escape',()=>{_0x5556c1['fire']('escape');}),this['_bindAnnotationToEditors'](_0x5cab3d,_0x5556c1),_0x1a6b69['add'](_0x5556c1),_0x5556c1;}['_bindAnnotationToEditors'](_0x1d36d0,_0x3223c7){this['listenTo'](_0x1d36d0,'editorReady',(_0x2dfed,_0x201169)=>{const _0x5d0905=_0x201169['ui']['view']['body']['bodyCollectionContainer'];_0x3223c7['focusableElements']['add'](_0x5d0905),this['context']instanceof _0x320740&&this['context']['ui']['focusTracker']['add'](_0x5d0905);},{'priority':'highest'}),this['listenTo'](_0x1d36d0,'editorDestroyed',(_0x480912,_0x23c433)=>{const _0x4efc09=_0x23c433['ui']['view']['body']['bodyCollectionContainer'];_0x3223c7['focusableElements']['has'](_0x4efc09)&&_0x3223c7['focusableElements']['remove'](_0x4efc09),this['context']instanceof _0x320740&&this['context']['ui']['focusTracker']['remove'](_0x4efc09);});}['_unbindEditors'](_0x434389){this['stopListening'](_0x434389,'editorReady'),this['stopListening'](_0x434389,'editorDestroyed');}['_createCommentThreadView'](_0x3d4a77){const _0x2df807=this['context']['plugins']['get'](st),{config:_0x2f90e8,locale:_0x36aecd}=this['context'],_0x35914e=pt(_0x2f90e8['get']('locale'),_0x36aecd);return new(0x0,(_0x2f90e8['get']('comments'))['CommentThreadView'])(_0x36aecd,_0x3d4a77,_0x2df807['me'],{'editorConfig':{..._0x2f90e8['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x2f90e8['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x2f90e8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2f90e8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2f90e8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x35914e,'CommentView':_0x2f90e8['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x23614b,channelId:_0x46f3f7,resolvedAt:_0x3a2f04,resolvedBy:_0x59d475,isFromAdapter:_0x5978f6}){if(!this['hasCommentThread'](_0x23614b))throw new _0xa7d815('commentsrepository-missing-comment-thread',null,{'threadId':_0x23614b});const _0x573a4a=this['getCommentThread'](_0x23614b);if(_0x573a4a['isResolved'])throw new _0xa7d815('commentsrepository-resolved-comment-thread',null,{'threadId':_0x23614b});const _0xce165b=this['context']['plugins']['get'](st);if(_0x573a4a['resolvedBy']=_0xce165b['getUser'](_0x59d475),_0x573a4a['resolvedAt']=_0x3a2f04,_0x5978f6||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x3703e0=this['context']['plugins']['get']('PendingActions'),_0x3adc03=_0x3703e0['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x46f3f7,'threadId':_0x23614b})['then'](({resolvedAt:_0x4e205e,resolvedBy:_0x3a991d})=>{_0x3703e0['remove'](_0x3adc03),_0x573a4a['resolvedBy']['id']!==_0x3a991d&&(_0x573a4a['resolvedBy']=_0xce165b['getUser'](_0x3a991d)),_0x573a4a['resolvedAt']=_0x4e205e;})['catch'](_0x144ebe=>{throw console['error'](_0x144ebe),new _0xa7d815('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1bd17f,channelId:_0x438860,isFromAdapter:_0xd43c5f}){if(!this['hasCommentThread'](_0x1bd17f))throw new _0xa7d815('commentsrepository-missing-comment-thread',null,{'threadId':_0x1bd17f});const _0x1e4a0c=this['getCommentThread'](_0x1bd17f);if(!_0x1e4a0c['isResolved'])throw new _0xa7d815('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1bd17f});if(_0x1e4a0c['resolvedBy']=null,_0x1e4a0c['resolvedAt']=null,_0xd43c5f||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x10b409=this['context']['plugins']['get']('PendingActions'),_0x27d6ca=_0x10b409['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x438860,'threadId':_0x1bd17f})['then'](()=>_0x10b409['remove'](_0x27d6ca))['catch'](_0x48e1d0=>{throw console['error'](_0x48e1d0),new _0xa7d815('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5e0306,isFromAdapter:_0x41f085}){const _0x18a07c=this['getCommentThread'](_0x5e0306);if(!_0x18a07c)throw new _0xa7d815('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5e0306),this['_threads']['delete'](_0x5e0306),!_0x18a07c['isSubmitted']||_0x41f085||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5b96d1=this['context']['plugins']['get']('PendingActions'),{channelId:_0x131d7b}=_0x18a07c,_0x462272=_0x5b96d1['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x131d7b,'threadId':_0x5e0306})['then'](()=>_0x5b96d1['remove'](_0x462272))['catch'](_0x4a1f05=>{throw console['error'](_0x4a1f05),new _0xa7d815('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x812d72,unlinkedAt:_0x27922a,context:_0x457034,attributes:_0x1ad602,isFromAdapter:_0x340c2b}){if('string'!=typeof _0x812d72)throw new _0xa7d815('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x812d72});if(!this['hasCommentThread'](_0x812d72))throw new _0xa7d815('commentsrepository-missing-comment-thread',null,{'threadId':_0x812d72});const _0x340466=this['getCommentThread'](_0x812d72);let _0x2103c5=!0x1;if(void 0x0!==_0x457034&&_0x340466['context']!==_0x457034&&(_0x340466['context']=_0x457034,_0x2103c5=!0x0),void 0x0!==_0x27922a&&_0x340466['unlinkedAt']!==_0x27922a&&(_0x340466['unlinkedAt']=_0x27922a,_0x2103c5=!0x0),_0x1ad602&&!At(_0x1ad602,_0x340466['attributes'])&&(_0x340466['attributes']=_0x1ad602,_0x2103c5=!0x0),!_0x2103c5)return Promise['resolve']();if(!_0x340466['isSubmitted']||_0x340c2b||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x2df762=this['context']['plugins']['get']('PendingActions'),{channelId:_0x34646d}=_0x340466,_0x52a24a=_0x2df762['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x34646d,'threadId':_0x812d72,'context':_0x457034,'unlinkedAt':_0x27922a,'attributes':_0x1ad602})['then'](()=>_0x2df762['remove'](_0x52a24a))['catch'](_0x5dcd31=>{throw console['error'](_0x5dcd31),new _0xa7d815('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x2731a8){const _0x27cf48=this['context']['plugins']['get'](O),_0x1a5f63=this['getCommentThread'](_0x2731a8);if(_0x1a5f63['_isAttached']=!0x1,this['_threadToController']['has'](_0x1a5f63)){const _0x5b8b24=this['_threadToController']['get'](_0x1a5f63),_0x4f8ce3=_0x5b8b24['view'],_0x1eee52=_0x27cf48['getByInnerView'](_0x4f8ce3);this['_threadToController']['delete'](_0x1a5f63),this['_viewToController']['delete'](_0x4f8ce3),_0x1eee52&&_0x27cf48['remove'](_0x1eee52),_0x5b8b24['destroy'](),_0x4f8ce3['destroy']()['then'](()=>{this['_unbindEditors'](_0x4f8ce3);});}}['_updateActiveAnnotation']({threadId:_0x2667f6,resolvedAt:_0x1fdc6e,unlinkedAt:_0x3ba272}){const _0x2e9e5f=!!_0x1fdc6e,_0x58163b=this['context']['plugins']['get'](O),_0x2aae5e=this['getCommentThread'](_0x2667f6);if(this['_threadToController']['has'](_0x2aae5e)){const _0x3e1ec8=this['_threadToController']['get'](_0x2aae5e)['view'],_0x3ca4ba=_0x58163b['getByInnerView'](_0x3e1ec8);_0x3ca4ba&&(_0x2e9e5f&&_0x58163b['_removeActiveAnnotation'](_0x3ca4ba),_0x3ba272?_0x3ca4ba['isVisible']=!0x1:_0x3ca4ba['refreshVisibility']());}}['_getExternalAuthor'](_0x474c17){const _0x5a5c5a=this['context']['plugins']['get'](st),_0x26fdbf=It('external:'+_0x474c17),_0x27772e=_0x5a5c5a['getUser'](_0x26fdbf);return _0x27772e||_0x5a5c5a['addUser']({'id':_0x26fdbf,'name':_0x474c17});}['_createNewComment']({threadId:_0x555a05,commentId:_0x3f4981=_0x5e4023(),content:_0x17bfe0,authorId:_0x386972,createdAt:_0x296c7e,attributes:_0x5f419a}){if('string'!=typeof _0x3f4981)throw new _0xa7d815('commentsrepository-invalid-commentid');if('string'!=typeof _0x386972)throw new _0xa7d815('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x17bfe0||!_0x17bfe0['trim']())throw new _0xa7d815('commentsrepository-invalid-comment-content');const _0x59f72f=this['context']['plugins']['get'](st)['getUser'](_0x386972);if(!_0x59f72f)throw new _0xa7d815('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x386972});let _0x39a995=null,_0x5d808a=_0x296c7e;return _0x5f419a?.['@external']&&(_0x39a995=this['_getExternalAuthor'](_0x5f419a['@external']['authorName']),_0x5d808a=new Date(_0x5f419a['@external']['createdAt'])),new fi(this,{'threadId':_0x555a05,'id':_0x3f4981,'author':_0x39a995||_0x59f72f,'creator':_0x59f72f,'content':_0x17bfe0,'createdAt':_0x296c7e,'authoredAt':_0x5d808a,'attributes':_0x5f419a});}['_addComment'](_0x2c24d0){let {threadId:_0x1619f8,content:_0x38866c,attributes:_0x42c823,isFromAdapter:_0xb10180}=_0x2c24d0;const _0x5b486a=this['getCommentThread'](_0x2c24d0['threadId']);if(!_0x5b486a)throw new _0xa7d815('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x4ec06b=this['_createNewComment'](_0x2c24d0),{id:_0x10f4da}=_0x4ec06b;if(_0x5b486a['_add'](_0x4ec06b),_0xb10180||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5b486a['isSubmitted'])return Promise['resolve']();const _0x4a6f43=this['context']['plugins']['get']('PendingActions'),{channelId:_0x581242}=_0x5b486a,_0x4a1d10=_0x4a6f43['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x42c823||(_0x42c823={}),this['adapter']['addComment']({'channelId':_0x581242,'threadId':_0x1619f8,'commentId':_0x10f4da,'content':_0x38866c,'attributes':_0x42c823})['then'](_0x11b817=>{_0x4a6f43['remove'](_0x4a1d10),_0x11b817&&this['_updateComment']({'channelId':_0x581242,'threadId':_0x1619f8,'commentId':_0x10f4da,'createdAt':_0x11b817['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3505cd=>{throw console['error'](_0x3505cd),new _0xa7d815('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x431baa,commentId:_0xa41a64,content:_0x4b7707,createdAt:_0x1417c9,attributes:_0x169548,isFromAdapter:_0x32371f}){if(void 0x0!==_0x4b7707&&('string'!=typeof _0x4b7707||!_0x4b7707['trim']()['length']))throw new _0xa7d815('commentsrepository-update-comment-invalid-content');const _0x3392a5=this['getCommentThread'](_0x431baa),_0x20a5e8=_0x3392a5['getComment'](_0xa41a64);if(!_0x20a5e8)throw new _0xa7d815('commentsrepository-update-missing-comment',this);let _0x12b493=!0x1;if(_0x4b7707&&_0x4b7707!==_0x20a5e8['content']&&(_0x20a5e8['isEditable']||_0x32371f)&&(_0x20a5e8['content']=_0x4b7707,_0x12b493=!0x0),_0x1417c9&&_0x1417c9!==_0x20a5e8['createdAt']&&(_0x20a5e8['createdAt']=_0x1417c9,_0x20a5e8['attributes']&&_0x20a5e8['attributes']['@external']||(_0x20a5e8['authoredAt']=_0x1417c9),_0x12b493=!0x0),_0x169548&&!At(_0x169548,_0x20a5e8['attributes'])&&(_0x20a5e8['attributes']=_0x169548,_0x12b493=!0x0),!_0x12b493)return Promise['resolve']();if(_0x3392a5['fire']('commentUpdated'),_0x32371f||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x4a6bc5=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5d9f33}=this['getCommentThread'](_0x20a5e8['threadId']),_0x7f2cbe=_0x4a6bc5['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x5d9f33,'threadId':_0x431baa,'commentId':_0xa41a64,'content':_0x4b7707,'attributes':_0x169548})['then'](()=>_0x4a6bc5['remove'](_0x7f2cbe))['catch'](_0x146e49=>{throw console['error'](_0x146e49),new _0xa7d815('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x4e2dbb,commentId:_0x3dbc14,isFromAdapter:_0x41e547}){const _0x116579=this['getCommentThread'](_0x4e2dbb),_0x301421=_0x116579['getComment'](_0x3dbc14);if(!_0x301421)throw new _0xa7d815('commentsrepository-remove-missing-comment',this);if(_0x116579['_remove'](_0x301421),_0x41e547||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x1db705=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3a7c60}=_0x116579,_0x517327=_0x1db705['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3a7c60,'threadId':_0x4e2dbb,'commentId':_0x3dbc14})['then'](()=>_0x1db705['remove'](_0x517327))['catch'](_0x55ec40=>{throw console['error'](_0x55ec40),new _0xa7d815('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
- _0x5ad58d(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x37a606,_0x501a3f){super();const _0x23d6fa=_0x501a3f['isResolvable'];this['channelId']=_0x501a3f['channelId'],this['id']=_0x501a3f['id'],this['comments']=new _0x495158(),this['_repository']=_0x37a606,this['_isAttached']=!0x1,this['_isSubmitted']=_0x501a3f['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x37a606,'_permissions',_0x37a606,'_readOnlyChannels',()=>_0x37a606['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x37a606,'_permissions',()=>_0x37a606['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x37a606,'_permissions',()=>{const _0x1533c3=_0x37a606['getPermissions'](this['channelId']);return _0x1533c3['write']||_0x1533c3['admin'];}),this['bind']('isResolvable')['to'](_0x37a606,'_permissions',()=>_0x23d6fa&&_0x37a606['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x501a3f['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1c995d,_0x11f837)=>_0x1c995d?_0x11f837?_0x1c995d<_0x11f837?_0x1c995d:_0x11f837:_0x1c995d:_0x11f837),this['set']('unlinkedAt',_0x501a3f['unlinkedAt']||null),this['set']('resolvedAt',_0x501a3f['resolvedAt']||null),this['set']('resolvedBy',_0x501a3f['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x2a5031=>!!_0x2a5031),this['set']('attributes',_0x501a3f['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x3e5db5,_0x595708)=>_0x3e5db5+_0x595708['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x316447,id:_0x2358a3}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x316447),{'channelId':_0x316447,'threadId':_0x2358a3});}['setUnlinkedAt'](_0x1db5f5){this['_update']({'unlinkedAt':_0x1db5f5});}['resolve']({resolvedAt:_0x255313=new Date(),resolvedBy:_0x4f2a27=null,isFromAdapter:_0x52876b=!0x1}={}){const _0xcab038=this['_repository']['context']['plugins']['get'](st)['me'],{channelId:_0x29adf6,id:_0x4662c1}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x29adf6),{'channelId':_0x29adf6,'threadId':_0x4662c1,'resolvedAt':_0x255313,'resolvedBy':_0x4f2a27||_0xcab038['id'],'isFromAdapter':_0x52876b});}['reopen']({isFromAdapter:_0x7e26e=!0x1}={}){const {channelId:_0x74293f,id:_0x506e8d}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x74293f),{'channelId':_0x74293f,'threadId':_0x506e8d,'isFromAdapter':_0x7e26e});}['setContext'](_0x1a89cf){this['context']||this['_update']({'context':_0x1a89cf});}['setAttribute'](_0x3c3274,_0x1916d1){const _0x173b3b=wt(this['attributes']);yt(_0x173b3b,_0x3c3274,_0x1916d1),this['_update']({'attributes':_0x173b3b});}['removeAttribute'](_0xf31315){const _0x2e19ba=wt(this['attributes']);Ct(_0x2e19ba,_0xf31315),this['_update']({'attributes':_0x2e19ba});}['remove']({isFromAdapter:_0xa110c7=!0x1}={}){const {channelId:_0x51697e,id:_0x31096c}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x51697e),{'channelId':_0x51697e,'threadId':_0x31096c,'isFromAdapter':_0xa110c7});}['attachTo'](_0x24603e){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x24603e});}['addComment'](_0x58f90e){const {channelId:_0x3ca586,id:_0x1200d6}=this;this['_repository']['fire'](Nt('addComment',_0x3ca586,_0x1200d6),Object['assign']({'channelId':_0x3ca586,'threadId':_0x1200d6},_0x58f90e));}['getComment'](_0x31f759){if('string'!=typeof _0x31f759)throw new _0xa7d815('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x31f759});return this['comments']['get'](_0x31f759);}['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'](_0xb5131f=>_0xb5131f['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5ee1dc){return this['listenTo'](_0x5ee1dc,'change:authoredAt',()=>{const _0x371c82=this['_findOptimalIndex'](_0x5ee1dc),_0x138e24=this['comments'];_0x371c82-0x1!=_0x138e24['getIndex'](_0x5ee1dc)&&_0x371c82+0x1!=_0x138e24['getIndex'](_0x5ee1dc)&&(this['_remove'](_0x5ee1dc),this['_add'](_0x5ee1dc));}),this['comments']['add'](_0x5ee1dc,this['_findOptimalIndex'](_0x5ee1dc));}['_update'](_0x3bc91d){const {channelId:_0x487d18,id:_0x2f10f0}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x487d18),{..._0x3bc91d,'channelId':_0x487d18,'threadId':_0x2f10f0});}['_remove'](_0xb03bcb){return this['stopListening'](_0xb03bcb),_0xb03bcb['destroy'](),this['comments']['remove'](_0xb03bcb);}['_findOptimalIndex'](_0x1d3da3){const _0x247af6=this['comments']['find'](_0x51d119=>new Date(_0x51d119['authoredAt'])['getTime']()>new Date(_0x1d3da3['authoredAt'])['getTime']());return _0x247af6?this['comments']['getIndex'](_0x247af6):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
- _0x5ad58d(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x6f4ab,_0x476bef){super();const _0x4df1d8=_0x6f4ab['context']['plugins']['get'](st)['me'],_0x4fcdf7=_0x6f4ab['getCommentThread'](_0x476bef['threadId']),_0x59890d=0x0===_0x4fcdf7['comments']['length'],_0x5b9385=_0x4df1d8===_0x476bef['author'];this['id']=_0x476bef['id'],this['threadId']=_0x476bef['threadId'],this['author']=_0x476bef['author'],this['creator']=_0x476bef['creator'],this['isExternal']=Boolean(_0x476bef['attributes']&&_0x476bef['attributes']['@external']),this['set']('content',_0x476bef['content']),this['createdAt']=_0x476bef['createdAt']||new Date(),this['set']('authoredAt',_0x476bef['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x4fcdf7,'resolvedAt'),this['set']('attributes',_0x476bef['attributes']||{}),this['bind']('isEditable')['to'](_0x6f4ab,'_permissions',()=>{const _0x38b331=_0x6f4ab['getPermissions'](_0x4fcdf7['channelId'])['write'],_0x4873d8=_0x6f4ab['getPermissions'](_0x4fcdf7['channelId'])['modifyAll'];return _0x5b9385&&_0x38b331||!_0x5b9385&&_0x4873d8;}),this['bind']('isRemovable')['to'](_0x4fcdf7,'isRemovable',_0x6f4ab,'_permissions',_0x23f15e=>{const _0x3098e1=_0x6f4ab['getPermissions'](_0x4fcdf7['channelId'])['write'],_0x10eaa0=_0x6f4ab['getPermissions'](_0x4fcdf7['channelId'])['modifyAll'];return _0x5b9385&&_0x3098e1||_0x23f15e&&_0x59890d||!_0x5b9385&&_0x10eaa0&&!_0x59890d;}),this['bind']('isReadOnly')['to'](_0x4fcdf7,'isReadOnly'),this['_repository']=_0x6f4ab;}get['weight'](){return Math['max'](function(_0x5ed7b3){const _0x5ef800=document['createElement']('div');return _0x5ef800['innerHTML']=_0x5ed7b3,_0x5ef800['textContent']['length'];}(this['content']),0xc8);}['update'](_0x2d8568){const {threadId:_0xce88d1,id:_0x551a18}=this;if(!this['_repository']['hasCommentThread'](_0xce88d1))throw new _0xa7d815('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x1c747b}=this['_repository']['getCommentThread'](_0xce88d1);this['_repository']['fire'](Nt('updateComment',_0x1c747b,_0xce88d1),{'channelId':_0x1c747b,'threadId':_0xce88d1,'commentId':_0x551a18,..._0x2d8568});}['setAttribute'](_0x2ab629,_0x28fe9c){const _0xa7f66f=wt(this['attributes']);yt(_0xa7f66f,_0x2ab629,_0x28fe9c),this['update']({'attributes':_0xa7f66f});}['removeAttribute'](_0x528485){const _0x48dbaa=wt(this['attributes']);Ct(_0x48dbaa,_0x528485),this['update']({'attributes':_0x48dbaa});}['remove'](_0x54a0ad={}){if(!_0x54a0ad['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x19c051,id:_0x2329fc}=this;if(!this['_repository']['hasCommentThread'](_0x19c051))throw new _0xa7d815('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x370d21}=this['_repository']['getCommentThread'](_0x19c051);this['_repository']['fire'](Nt('removeComment',_0x370d21,_0x19c051),{'channelId':_0x370d21,'threadId':_0x19c051,'commentId':_0x2329fc,..._0x54a0ad});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x249c65,..._0x2bfa2e){for(const _0x5a091c of _0x2bfa2e)void 0x0!==_0x5a091c&&(_0x249c65+=':'+String(_0x5a091c));return _0x249c65;}class K extends _0x53e501{['refresh'](){const _0x39d2a6=this['editor']['model']['document']['selection'];for(const _0x8a98ae of _0x39d2a6['getRanges']())if(this['_hasContent'](_0x8a98ae))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x5cbd92=_0x5e4023()}={}){const _0x46051d=this['editor']['model'],_0x203ac4=[];for(const _0x25bcbb of _0x46051d['document']['selection']['getRanges']())this['_hasContent'](_0x25bcbb)&&_0x203ac4['push'](this['_trimToContent'](_0x25bcbb));_0x46051d['change'](_0xcff380=>{for(const _0xd44ce2 of _0x203ac4){const _0x90a862=_0x5e4023()['substr'](0x1,0x5),_0x20bf41='comment:'+_0x5cbd92+':'+_0x90a862;_0xcff380['addMarker'](_0x20bf41,{'range':_0xd44ce2,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x35f674){for(const _0x1cb0a9 of _0x35f674['getItems']())if(this['_itemIsContent'](_0x1cb0a9))return!0x0;return!0x1;}['_itemIsContent'](_0x10e079){return _0x10e079['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x10e079)&&!_0x10e079['is']('element','tableCell');}['_trimToContent'](_0xdd56e1){const _0x2864e5=_0x4288a5=>!this['_itemIsContent'](_0x4288a5['item']),_0x2ae8df=_0xdd56e1['start']['getLastMatchingPosition'](_0x2864e5),_0x581590=_0xdd56e1['end']['getLastMatchingPosition'](_0x2864e5,{'direction':'backward'});return this['editor']['model']['createRange'](_0x2ae8df,_0x581590);}}class P extends _0x49a43a{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2da0ad){super(_0x2da0ad),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3fae56=this['editor'],_0x3c9d8a=_0x3fae56['model']['document']['selection'],_0x3c25e7=_0x36aac6(()=>this['refreshSelectedViews'](),0xa);_0x3c9d8a['on']('change:range',(_0x526e6d,_0x3f867d)=>{_0x3f867d['directChange']&&(_0x3c25e7['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3fae56['editing']['view']['document'],'change:isFocused',(_0x32be3e,_0x17f2b1,_0x4a401b)=>{_0x4a401b&&_0x3c25e7();}),this['listenTo'](_0x3fae56['ui']['focusTracker'],'change:isFocused',(_0x4fc210,_0x48c02f,_0x43549a)=>{_0x43549a||_0x3fae56['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0xcf412f=>this['_editorAnnotationsData']['has'](_0xcf412f['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x18db37){if(this['_editorAnnotations']['has'](_0x18db37['view']))return;this['_editorAnnotations']['add'](_0x18db37['view']),this['editor']['ui']['focusTracker']['add'](_0x18db37['view']['element']);const _0x5867a5=this['editor']['plugins']['get'](O);this['listenTo'](_0x5867a5['collection'],'remove',(_0x1f3a88,_0x3e6719)=>{this['editor']['ui']['focusTracker']['remove'](_0x3e6719['view']['element']),this['_editorAnnotations']['delete'](_0x3e6719['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1328ba){if('function'!=typeof _0x1328ba)throw new _0xa7d815('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1328ba);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2997d4,annotations:_0x80c25d}){const _0x2e8fd6=[],_0x100e8b=this['editor']['model']['document']['selection'],_0x27fb6b=Array['from'](_0x100e8b['getRanges']());for(const [_0x553789,_0x4601c8]of this['_editorAnnotationsData']){const _0x282926=_0x6c798a(_0x4601c8),_0x50441b=_0x80c25d['getByInnerView'](_0x553789);_0x282926&&_0x50441b&&_0x2e8fd6['push']({'annotation':_0x50441b,'range':_0x282926});}function _0x6c798a(_0x4fd067){for(const _0x438e0d of _0x4fd067)for(const _0x32ea13 of _0x27fb6b)if(_0x438e0d['containsRange'](_0x32ea13,!_0x100e8b['isCollapsed']))return _0x438e0d;return null;}return _0x2e8fd6['sort']((_0x4554f6,_0x2f076e)=>{const _0x2a8539=_0x4554f6['range'],_0x177b09=_0x2f076e['range'];if(!_0x2a8539['isEqual'](_0x177b09)){if(_0x2a8539['containsRange'](_0x177b09,!0x0))return 0x1;if(_0x177b09['containsRange'](_0x2a8539,!0x0))return-0x1;}return _0x4554f6['annotation']==_0x2997d4?-0x1:_0x2f076e['annotation']==_0x2997d4?0x1:0x0;})['map'](_0x13c946=>_0x13c946['annotation']);}get['_editorAnnotationsData'](){const _0x53bcf9=new Map();for(const _0x264708 of Array['from'](this['_dataCollectors']))for(const [_0x3939b8,_0x31ed79]of _0x264708())_0x53bcf9['set'](_0x3939b8,_0x31ed79);return _0x53bcf9;}}class ct extends _0x49a43a{['afterInit'](){const _0x2c3f4e=this['editor'];if(!_0x2c3f4e['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2c3f4e['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class at extends _0x49a43a{constructor(_0x27be1d){super(_0x27be1d),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x46a3c8=this['editor'],_0x5dba46=_0x46a3c8['commands']['get']('importWord'),_0x4367b3=_0x46a3c8['plugins']['get'](st);_0x5dba46&&(_0x5dba46['on']('execute',(_0x503f5c,[,_0x25414b])=>{_0x25414b['collaboration_features']={'comments':!0x0,'user_id':_0x4367b3['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x5dba46,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5c2d7c,_0x571461){const {comment_threads:_0x4c0b63}=_0x571461;_0x4c0b63&&_0x4c0b63['forEach'](({thread_id:_0x3a4771,comments:_0x571293,is_resolved:_0x20c07b})=>{const _0x1195ba=new Date(),_0x4da316=_0x571293['map'](({author:_0x359bb6,content:_0x2edc22,created_at:_0x5e961c})=>({'content':_0x2edc22,'authorId':this['editor']['plugins']['get'](st)['me']['id'],'createdAt':_0x1195ba,'attributes':{'@external':{'authorName':_0x359bb6,'createdAt':_0x5e961c?new Date(_0x5e961c):new Date(),'source':'importWord'}}})),_0x562940=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x562940,'threadId':_0x3a4771,'comments':_0x4da316,'resolvedAt':_0x20c07b?_0x1195ba:null});});}}class ut extends _0x49a43a{constructor(_0x15f610){super(_0x15f610),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x3541f6=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x3541f6,'contentInsertion',(_0x39d8c5,_0x114fec)=>this['_removeMarkersWithoutThreads'](_0x114fec['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x576f7d){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x576f7d;const _0x41e12b=this['editor']['plugins']['get']('CommentsRepository');for(const _0x18c747 of _0x576f7d['keys']()){const [_0x57b7ad,_0x4782e9]=_0x18c747['split'](':');'comment'!=_0x57b7ad||_0x41e12b['hasCommentThread'](_0x4782e9)||_0x576f7d['delete'](_0x18c747);}return _0x576f7d;}['_registerMarkerInClipboardPipeline'](){const _0x32cb58=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xc1015c=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xc1015c&&_0x32cb58['_registerMarkerToCopy']('comment',_0xc1015c);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x69c2e5){switch(_0x69c2e5){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ft extends _0x49a43a{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1a19cf,_0x1be426)=>{if(!_0x1be426['options']['showCommentHighlights'])return null;if(_0x1be426['options']['ignoreResolvedComments']){const {id:_0x1e8769}=er(_0x1a19cf['markerName']),_0x1d3368=this['editor']['plugins']['get'](o);if(_0x1d3368['getCommentThread'](_0x1e8769)?.['isResolved']&&_0x1a19cf['item'])return _0x1be426['consumable']['consume'](_0x1a19cf['item'],'addMarker:'+_0x1a19cf['markerName']),_0x1be426['consumable']['consume'](_0x1a19cf['item'],'removeMarker:'+_0x1a19cf['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x450cbb=>{_0x450cbb['on']('addMarker:comment',(_0x2036a9,_0x2303bf,_0x3b985d)=>{if(!_0x3b985d['options']['showCommentHighlights'])return;const _0xc84faa=_0x2303bf['item'];if(!_0xc84faa)return;const _0x456130=_0x3b985d['mapper']['toViewElement'](_0xc84faa);this['editor']['model']['schema']['isObject'](_0xc84faa)&&_0x456130&&!_0x456130['getCustomProperty']('widget')&&_0x456130['is']('containerElement')&&_0x375d8c(_0x456130,_0x3b985d['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1febc7,{writer:_0x31d551,options:_0x74e92})=>{if(!_0x74e92['showCommentHighlights'])return null;const _0x5672b1=_0x31d551['createContainerElement']('div'),_0x4d502d=_0x31d551['createEmptyElement']('hr');return _0x31d551['addClass']('ck-horizontal-line',_0x5672b1),_0x31d551['insert'](_0x31d551['createPositionAt'](_0x5672b1,0x0),_0x4d502d),_0x5672b1;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x4e7eaf,{writer:_0x115d4b,options:_0x354826})=>{if(!_0x354826['showCommentHighlights'])return null;const _0x29c7e1=_0x115d4b['createContainerElement']('span'),_0x390b6f=_0x115d4b['createEmptyElement']('img');return _0x115d4b['addClass']('image-inline',_0x29c7e1),_0x115d4b['insert'](_0x115d4b['createPositionAt'](_0x29c7e1,0x0),_0x390b6f),_0x29c7e1;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x115701,{writer:_0x416942,options:_0x19c5dc})=>{if(_0x19c5dc['showCommentHighlights'])return _0x416942['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x37ac25,_0x118727,_0x57bfe0)=>{_0x57bfe0['options']['showCommentHighlights']&&_0x37ac25['stop']();},{'priority':'high'});}}class r extends _0x49a43a{static get['requires'](){return[o,P,st,ct,at,ut,ft];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x332700){super(_0x332700),this['set']('isThreadsLoadingPaused',!0x0),_0x332700['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2be1a0,_0x125ae4,_0x505052,_0x28f656)=>{const _0x4ed9d3=_0x332700['plugins']['get'](o),_0x38cb4a=_0x505052?er(_0x505052)['id']:null;_0x332700['model']['change'](()=>{if(_0x38cb4a){const _0x5847b8=this['getAllMarkersForId'](_0x38cb4a);for(const _0x21e451 of _0x5847b8)_0x332700['editing']['reconvertMarker'](_0x21e451);}if(_0x28f656){const {id:_0x612d55}=er(_0x28f656),_0x2636a4=_0x4ed9d3['getCommentThread'](_0x612d55);if(_0x2636a4&&_0x2636a4['unlinkedAt'])return;if(_0x2636a4&&!_0x2636a4['isAttached'])return;const _0x146b49=this['getAllMarkersForId'](_0x612d55);for(const _0x31114e of _0x146b49)_0x332700['editing']['reconvertMarker'](_0x31114e);}}),_0x38cb4a&&this['scrollToThreadMarker'](_0x38cb4a);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x361d97=this['editor'],_0xd37ba4=_0x361d97['plugins']['get'](o),_0x3a3954=_0x361d97['config']['get']('collaboration.channelId'),_0xdb9e4b=_0xd37ba4['getCommentThreads']()['filter'](_0x1eaefe=>_0x1eaefe['channelId']!==_0x3a3954);_0x361d97['commands']['add']('addCommentThread',new K(_0x361d97)),this['listenTo'](_0x361d97,'change:isReadOnly',(_0x5970ef,_0x260aa5,_0xb8a084)=>{_0xd37ba4['switchReadOnly'](_0xb8a084,_0x361d97['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xd37ba4,dt('addCommentThread',_0x3a3954),(_0x2e9b3e,{threadId:_0x40a853})=>{const _0x523363=this['editor']['plugins']['get'](o)['getCommentThread'](_0x40a853);_0x523363?.['unlinkedAt']&&this['_attachArchivedThread'](_0x40a853);}),this['listenTo'](_0xd37ba4,dt('removeCommentThread',_0x3a3954),(_0x3b1e9c,{threadId:_0x17ddac})=>{_0x361d97['model']['enqueueChange']({'isUndoable':!0x1},_0x3b7bcc=>{const _0x79189d=this['getAllMarkersForId'](_0x17ddac);for(const _0x51f5e5 of _0x79189d)_0x3b7bcc['removeMarker'](_0x51f5e5);});}),this['listenTo'](_0xd37ba4,dt('resolveCommentThread',_0x3a3954),(_0x19e7de,{threadId:_0x26b2e9})=>{(this['_reconvertMarkers'](_0x26b2e9),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x26b2e9)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xd37ba4,dt('reopenCommentThread',_0x3a3954),(_0x47eff6,{threadId:_0xe9491a})=>{this['_reconvertMarkers'](_0xe9491a);},{'priority':'low'}),this['listenTo'](_0xd37ba4,dt('addComment',_0x3a3954),(_0x930e14,{threadId:_0x24e400,isFromAdapter:_0x173d42})=>{const _0x1bb84d=this['getAllMarkersForId'](_0x24e400);if(_0x173d42||0x0==_0x1bb84d['length']||!_0xd37ba4['hasCommentThread'](_0x24e400))return;0x1===_0xd37ba4['getCommentThread'](_0x24e400)['length']&&_0x361d97['model']['enqueueChange']({'isUndoable':!0x1},_0x517cca=>{for(const _0x5289bc of _0x1bb84d)_0x517cca['updateMarker'](_0x5289bc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0xdb9e4b);}['afterInit'](){!async function(_0x2e6602){const _0x729663=_0x2f1dab([0x75,0x78,0x48,0x77,0x38,0x71,0x4d,0x5a,0x45,0x51,0x54,0x74,0x64,0x61,0x31,0x50,0x46,0x6f,0x34,0x57,0x55,0x36,0x58,0x43,0x6b,0x4b,0x67,0x6a,0x79,0x70,0x39,0x63,0x6c,0x56,0x42,0x62,0x4e,0x30,0x35,0x49,0x33,0x73,0x47,0x37,0x69,0x66,0x76,0x4a,0x53,0x59,0x44,0x41,0x4f,0x4c,0x6e,0x68,0x32,0x6d,0x65,0x7a,0x72,0x52]),_0x556c7e=0x3dca299,_0x55f837=0x3dbc909^_0x556c7e,_0x5c7185=window[_0x2f1dab([0x44,0x61,0x74,0x65])][_0x2f1dab([0x6e,0x6f,0x77])](),_0x404a55=_0x2e6602[_0x2f1dab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd3c444=new window[(_0x2f1dab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24077e=>{_0x404a55[_0x2f1dab([0x6f,0x6e,0x63,0x65])](_0x2f1dab([0x72,0x65,0x61,0x64,0x79]),_0x24077e);}),_0x4da408={[_0x2f1dab([0x6b,0x74,0x79])]:_0x2f1dab([0x45,0x43]),[_0x2f1dab([0x75,0x73,0x65])]:_0x2f1dab([0x73,0x69,0x67]),[_0x2f1dab([0x63,0x72,0x76])]:_0x2f1dab([0x50,0x2d,0x32,0x35,0x36]),[_0x2f1dab([0x78])]:_0x2f1dab([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]),[_0x2f1dab([0x79])]:_0x2f1dab([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]),[_0x2f1dab([0x61,0x6c,0x67])]:_0x2f1dab([0x45,0x53,0x32,0x35,0x36])},_0x386b26=_0x404a55[_0x2f1dab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f1dab([0x67,0x65,0x74])](_0x2f1dab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34dc20(){let _0x4f8591,_0x464c18=null,_0x3effbd=null;try{if(_0x386b26==_0x2f1dab([0x47,0x50,0x4c]))return _0x2f1dab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f8591=_0x145ab4(),!_0x4f8591)return _0x2f1dab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f8591[_0x2f1dab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3effbd=_0x29cf7f(_0x4f8591[_0x2f1dab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f8591[_0x2f1dab([0x6a,0x74,0x69])])),await _0x525bb3()?_0x1bd1f5()?_0x2158ca()?_0x2f1dab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xecbc48()?(_0x4f8591[_0x2f1dab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f1dab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x464c18=_0x39995b(_0x2f1dab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f8591[_0x2f1dab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f1dab([0x74,0x72,0x69,0x61,0x6c])&&(_0x464c18=_0x39995b(_0x2f1dab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46c7()):_0x2f1dab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f1dab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f1dab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f1dab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2158ca(){const _0x329c0b=[_0x2f1dab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f1dab([0x74,0x72,0x69,0x61,0x6c])][_0x2f1dab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8591[_0x2f1dab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c7185/0x3e8:0xe10*_0x55f837;return _0x4f8591[_0x2f1dab([0x65,0x78,0x70])]<_0x329c0b;}function _0x1bd1f5(){const _0x33c090=_0x4f8591[_0x2f1dab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x33c090)return!0x1;if(_0x33c090[_0x2f1dab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1dab([0x2a])))return!0x0;if(_0x33c090[_0x2f1dab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1dab([0x43,0x4d,0x54])))return!0x0;if(_0x33c090[_0x2f1dab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1dab([0x52,0x43,0x4d,0x54]))){if(_0x437454())return!0x0;if(_0x170f5c()||_0xb72b81())return!0x0;}return!0x1;}function _0xecbc48(){const _0xe29a0c=_0x4f8591[_0x2f1dab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe29a0c||0x0==_0xe29a0c[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e6c97}=new URL(window[_0x2f1dab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe29a0c[_0x2f1dab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e6c97))return!0x0;const _0x2d9c6b=_0x1e6c97[_0x2f1dab([0x73,0x70,0x6c,0x69,0x74])](_0x2f1dab([0x2e]));return _0xe29a0c[_0x2f1dab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a21ae=>_0x3a21ae[_0x2f1dab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1dab([0x2a])))[_0x2f1dab([0x6d,0x61,0x70])](_0x4b044f=>_0x4b044f[_0x2f1dab([0x73,0x70,0x6c,0x69,0x74])](_0x2f1dab([0x2e])))[_0x2f1dab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c280e=>_0x1c280e[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d9c6b[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f1dab([0x6d,0x61,0x70])](_0xcf925c=>Array(_0x2d9c6b[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcf925c[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f1dab([0x66,0x69,0x6c,0x6c])](_0xcf925c[0x0]===_0x2f1dab([0x2a])?_0x2f1dab([0x2a]):'')[_0x2f1dab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcf925c))[_0x2f1dab([0x73,0x6f,0x6d,0x65])](_0x38561a=>_0x2d9c6b[_0x2f1dab([0x65,0x76,0x65,0x72,0x79])]((_0x1c6dec,_0x567119)=>_0x38561a[_0x567119]===_0x1c6dec||_0x38561a[_0x567119]===_0x2f1dab([0x2a])));}function _0x46c7(){return _0x464c18&&_0x3effbd?new window[(_0x2f1dab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe22791,_0x3a453f)=>{_0x464c18[_0x2f1dab([0x74,0x68,0x65,0x6e])](_0xe22791,_0x3a453f),_0x3effbd[_0x2f1dab([0x74,0x68,0x65,0x6e])](_0x58dfc5=>{_0x58dfc5!=_0x2f1dab([0x56,0x61,0x6c,0x69,0x64])&&_0xe22791(_0x58dfc5);},_0x3a453f);}):_0x464c18||_0x3effbd||_0x2f1dab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29cf7f(_0x22cc1f,_0x44832c){return new window[(_0x2f1dab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa37b67=>{if(_0x6e1b2e())return _0xa37b67(_0x2f1dab([0x56,0x61,0x6c,0x69,0x64]));_0x496c2c(),_0x404a55[_0x2f1dab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f1dab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42ff4c=!0x1;const _0x21f9b8=_0x5e4023();function _0x1ecabb(_0x308d6a){return!!_0x308d6a&&(typeof _0x308d6a===_0x2f1dab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x308d6a===_0x2f1dab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x308d6a[_0x2f1dab([0x74,0x68,0x65,0x6e])]===_0x2f1dab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x308d6a[_0x2f1dab([0x63,0x61,0x74,0x63,0x68])]===_0x2f1dab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c8672(_0x348aa3){_0x4abc26(_0x348aa3)[_0x2f1dab([0x74,0x68,0x65,0x6e])](_0x3f732a=>{if(!_0x3f732a||_0x3f732a[_0x2f1dab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f1dab([0x6f,0x6b]))return _0x2f1dab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cf98c(_0x5ac7aa(_0x21f9b8+_0x44832c))!=_0x3f732a[_0x2f1dab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f1dab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f1dab([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f1dab([0x74,0x68,0x65,0x6e])](_0x14ab45=>(_0x265518(),_0x14ab45),()=>{const _0x23ac8c=_0x3ceaae();return null==_0x23ac8c?(_0x265518(),_0x2f1dab([0x56,0x61,0x6c,0x69,0x64])):_0x2f1dab(_0x5c7185-_0x23ac8c>(0x27d02699^_0x556c7e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f1dab([0x74,0x68,0x65,0x6e])](_0xa37b67)[_0x2f1dab([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa37b67(_0x2f1dab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x45b150=0x3ea4c19^_0x556c7e;function _0x265518(){const _0x18c75f=_0x2f1dab([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cf98c(_0x5ac7aa(_0x22cc1f)),_0x8f8b9e=_0x3df6bd(_0x1cf98c(window[_0x2f1dab([0x4d,0x61,0x74,0x68])][_0x2f1dab([0x63,0x65,0x69,0x6c])](_0x5c7185/_0x45b150)));window[_0x2f1dab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f1dab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18c75f,_0x8f8b9e);}function _0x3ceaae(){const _0x1a9039=_0x2f1dab([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cf98c(_0x5ac7aa(_0x22cc1f)),_0x277d6a=window[_0x2f1dab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f1dab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a9039);return _0x277d6a?window[_0x2f1dab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3df6bd(_0x277d6a),0x10)*_0x45b150:null;}function _0x4abc26(_0x3773e3){return new window[(_0x2f1dab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29c3ec,_0x31ee9d)=>{_0x3773e3[_0x2f1dab([0x74,0x68,0x65,0x6e])](_0x29c3ec,_0x31ee9d),window[_0x2f1dab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31ee9d,0x3dd7659^_0x556c7e);});}}_0x404a55[_0x2f1dab([0x6f,0x6e])](_0x2f1dab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42fa4b,_0x2374d2)=>{if(_0x2374d2[0x0]!=_0x22cc1f)return _0xa37b67(_0x2f1dab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2374d2[0x1]={..._0x2374d2[0x1],[_0x2f1dab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21f9b8};},{[_0x2f1dab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f1dab([0x68,0x69,0x67,0x68])}),_0x404a55[_0x2f1dab([0x6f,0x6e])](_0x2f1dab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1cf996=>{_0x1ecabb(_0x1cf996[_0x2f1dab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42ff4c=!0x0,_0x4c8672(_0x1cf996[_0x2f1dab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f1dab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f1dab([0x6c,0x6f,0x77])}),_0xd3c444[_0x2f1dab([0x74,0x68,0x65,0x6e])](()=>{_0x42ff4c||_0xa37b67(_0x2f1dab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6e1b2e(){return _0x404a55[_0x2f1dab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f1dab([0x76,0x69,0x65,0x77])][_0x2f1dab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f1dab([0x61,0x75,0x74,0x6f]);}function _0x496c2c(){_0x404a55[_0x2f1dab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f1dab([0x76,0x69,0x65,0x77])][_0x2f1dab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f1dab([0x61,0x75,0x74,0x6f]);}}function _0x39995b(_0x42d1e6){const _0x305998=[new window[(_0x2f1dab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fa40=>setTimeout(_0x34fa40,0x3d59c55^_0x556c7e)),_0xd3c444[_0x2f1dab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f1dab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51bbcd=>{let _0x59968e=0x0;_0x404a55[_0x2f1dab([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1dab([0x6f,0x6e])](_0x2f1dab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x443892,_0x4e5252)=>{_0x4e5252[0x0][_0x2f1dab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59968e++,_0x59968e==(0x3dca361^_0x556c7e)&&(_0x51bbcd(),_0x443892[_0x2f1dab([0x6f,0x66,0x66])]());});}))];return window[_0x2f1dab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f1dab([0x72,0x61,0x63,0x65])](_0x305998)[_0x2f1dab([0x74,0x68,0x65,0x6e])](()=>_0x42d1e6);}async function _0xe52bf1(){await _0xd3c444,_0x404a55[_0x2f1dab([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1dab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c8174,_0x404a55[_0x2f1dab([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1dab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c8174,_0x404a55[_0x2f1dab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f1dab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x437454(){return _0x4e62c8(_0x2f1dab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3df82f(_0x2f1dab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2f1dab([0x73,0x74,0x61,0x74,0x65])]==_0x2f1dab([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x170f5c(){return _0x4e62c8(_0x2f1dab([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 _0xb72b81(){return _0x4e62c8(_0x2f1dab([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x344716(_0x11b835){const _0x12ecec=_0x4e460d();_0x404a55[_0x12ecec]=_0x2f1dab([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11b835,_0x11b835!=_0x2f1dab([0x56,0x61,0x6c,0x69,0x64])&&_0xe52bf1();}function _0x4e460d(){const _0x4b27d1=window[_0x2f1dab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f1dab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f1dab([0x6e,0x6f,0x77])]())[_0x2f1dab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f1dab([0x2e]),'');let _0x219bda=_0x2f1dab([0x75]);for(let _0x3e54ac=0x0;_0x3e54ac<_0x4b27d1[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e54ac+=0x2){let _0x1acb2f=window[_0x2f1dab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b27d1[_0x2f1dab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e54ac,_0x3e54ac+0x2));_0x1acb2f>=_0x729663[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1acb2f-=_0x729663[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x219bda+=_0x729663[_0x1acb2f];}return _0x219bda;}function _0x145ab4(){const _0x1f516a=_0x386b26[_0x2f1dab([0x73,0x70,0x6c,0x69,0x74])](_0x2f1dab([0x2e]));if(0x3!=_0x1f516a[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25a88a(_0x1f516a[0x1]);function _0x25a88a(_0x2ebc7c){const _0x33db61=_0x28c2b9(_0x2ebc7c);return _0x33db61&&_0x1f2814()?_0x33db61:null;function _0x1f2814(){const _0x45da5f=_0x33db61[_0x2f1dab([0x6a,0x74,0x69])],_0xab6352=window[_0x2f1dab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45da5f[_0x2f1dab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45da5f[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x425606={..._0x33db61,[_0x2f1dab([0x6a,0x74,0x69])]:_0x45da5f[_0x2f1dab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45da5f[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x425606[_0x2f1dab([0x76,0x63])],_0x5ac7aa(_0x425606)==_0xab6352;}}}async function _0x525bb3(){let _0x3806e9=!0x0;try{const _0x54c9aa=_0x386b26[_0x2f1dab([0x73,0x70,0x6c,0x69,0x74])](_0x2f1dab([0x2e])),[_0x41b0b7,_0x348ace,_0x556db0]=_0x54c9aa;return _0x261259(_0x41b0b7),await _0x435c68(_0x41b0b7,_0x348ace,_0x556db0),_0x3806e9;}catch{return!0x1;}function _0x261259(_0x4a4129){const _0x6f37af=_0x28c2b9(_0x4a4129);_0x6f37af&&_0x6f37af[_0x2f1dab([0x61,0x6c,0x67])]==_0x2f1dab([0x45,0x53,0x32,0x35,0x36])||(_0x3806e9=!0x1);}async function _0x435c68(_0x9b03f,_0x4918bf,_0x17ee78){const _0x1ae978=window[_0x2f1dab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f1dab([0x66,0x72,0x6f,0x6d])](_0x3ba6da(_0x17ee78),_0x1ea8a4=>_0x1ea8a4[_0x2f1dab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dfeb5=new window[(_0x2f1dab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f1dab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9b03f+_0x2f1dab([0x2e])+_0x4918bf),_0x1a3ca4=window[_0x2f1dab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f1dab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a3ca4)return;const _0x1dcd63=await _0x1a3ca4[_0x2f1dab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f1dab([0x6a,0x77,0x6b]),_0x4da408,{[_0x2f1dab([0x6e,0x61,0x6d,0x65])]:_0x2f1dab([0x45,0x43,0x44,0x53,0x41]),[_0x2f1dab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f1dab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f1dab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a3ca4[_0x2f1dab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f1dab([0x6e,0x61,0x6d,0x65])]:_0x2f1dab([0x45,0x43,0x44,0x53,0x41]),[_0x2f1dab([0x68,0x61,0x73,0x68])]:{[_0x2f1dab([0x6e,0x61,0x6d,0x65])]:_0x2f1dab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1dcd63,_0x1ae978,_0x1dfeb5)||(_0x3806e9=!0x1);}}function _0x28c2b9(_0xb24504){return _0xb24504[_0x2f1dab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f1dab([0x65,0x79]))?JSON[_0x2f1dab([0x70,0x61,0x72,0x73,0x65])](_0x3ba6da(_0xb24504)):null;}function _0x3ba6da(_0x3e8f91){return window[_0x2f1dab([0x61,0x74,0x6f,0x62])](_0x3e8f91[_0x2f1dab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f1dab([0x2b]))[_0x2f1dab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f1dab([0x2f])));}function _0x5ac7aa(_0x3e7da7){let _0x285d61=0x1505;function _0x3d1549(_0x504bba){for(let _0x2da528=0x0;_0x2da528<_0x504bba[_0x2f1dab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2da528++){const _0x2995d1=_0x504bba[_0x2f1dab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2da528);_0x285d61=(_0x285d61<<0x5)+_0x285d61+_0x2995d1,_0x285d61&=_0x285d61;}}function _0x3fe132(_0x25306b){Array[_0x2f1dab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25306b)?_0x25306b[_0x2f1dab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3fe132):_0x25306b&&typeof _0x25306b==_0x2f1dab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f1dab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25306b)[_0x2f1dab([0x73,0x6f,0x72,0x74])]()[_0x2f1dab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b9740,_0x2418ea])=>{_0x3d1549(_0x5b9740),_0x3fe132(_0x2418ea);}):_0x3d1549(window[_0x2f1dab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25306b));}return _0x3fe132(_0x3e7da7),_0x285d61>>>0x0;}function _0x1cf98c(_0x14c046){return _0x14c046[_0x2f1dab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f1dab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f1dab([0x30]));}function _0x3df6bd(_0x280fcb){return _0x280fcb[_0x2f1dab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f1dab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f1dab([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e62c8(_0x21d7a3){return _0x404a55[_0x2f1dab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f1dab([0x68,0x61,0x73])](_0x21d7a3);}function _0x3df82f(_0x44e7de){return _0x404a55[_0x2f1dab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f1dab([0x67,0x65,0x74])](_0x44e7de);}function _0x3c8174(){}function _0x2f1dab(_0x3970dc){return _0x3970dc['map'](_0x36773b=>String['fromCharCode'](_0x36773b))['join']('');}_0x344716(await _0x34dc20());}(this);}['destroy'](){const _0xc68bd2=this['editor']['plugins']['get'](o),_0x26fc02=this['editor']['config']['get']('collaboration.channelId');for(const _0x50fafb of _0xc68bd2['getCommentThreads']({'channelId':_0x26fc02}))_0xc68bd2['_detachCommentThread'](_0x50fafb['id']),_0xc68bd2['_threads']['delete'](_0x50fafb['id']);super['destroy']();}['hasMarkerForId'](_0x514c2a){return this['getAllMarkersForId'](_0x514c2a)['length']>0x0;}['getAllMarkersForId'](_0x51a90d){const _0x1d3dd3=[];for(const _0x51a1e3 of this['editor']['model']['markers'])_0x51a1e3['name']['startsWith']('comment:'+_0x51a90d)&&_0x1d3dd3['push'](_0x51a1e3);return _0x1d3dd3;}['scrollToThreadMarker'](_0x3455e4){const _0x34ad6d=this['_getTargetForId'](_0x3455e4);_0x34ad6d&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x3455e4&&rt({'target':_0x34ad6d[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x592194){this['editor']['model']['change'](()=>{for(const _0x2a5ce2 of this['getAllMarkersForId'](_0x592194))this['editor']['editing']['reconvertMarker'](_0x2a5ce2);});}['_attachArchivedThread'](_0x7541ac){const _0x2f82c4=this['editor']['plugins']['get'](o),_0x3e5591=this['editor']['plugins']['get'](P),_0x1b3955=_0x2f82c4['getCommentThread'](_0x7541ac);if(!_0x1b3955['isAttached']){const _0x4e4ef1=_0x1b3955['attachTo'](()=>this['_getTargetForId'](_0x1b3955['id']));_0x3e5591['registerAnnotation'](_0x4e4ef1),_0x1b3955['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1d6e5e=this['editor'],_0x58c63b=_0x1d6e5e['plugins']['get'](st);_0x1d6e5e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x447727,_0x5d3253)=>{const {id:_0x4d45c7}=er(_0x447727['markerName']),_0x27a2cd=_0x1d6e5e['plugins']['get'](o)['getCommentThread'](_0x4d45c7),_0x13e470=this['activeMarker']&&er(this['activeMarker'])['id']===_0x4d45c7;let _0x8973c9;if(_0x27a2cd&&_0x27a2cd['isResolved']&&!_0x13e470&&_0x447727['item'])return _0x5d3253['consumable']['consume'](_0x447727['item'],'addMarker:'+_0x447727['markerName']),_0x5d3253['consumable']['consume'](_0x447727['item'],'removeMarker:'+_0x447727['markerName']),null;const _0x22f783=['ck-comment-marker'];return _0x13e470&&_0x22f783['push']('ck-comment-marker--active'),_0x8973c9=_0x27a2cd?.['length']?_0x27a2cd['comments']['first']['author']['id']:_0x58c63b['me']['id'],{'classes':_0x22f783,'attributes':{'data-comment':_0x4d45c7,'data-author-id':_0x8973c9}};}}),_0x1d6e5e['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x28ec6a,{options:_0x45130f})=>{if(_0x45130f['showCommentHighlights'])return null;const _0x7873cb=_0x1d6e5e['plugins']['get'](o),_0x5300aa=_0x1d6e5e['model']['markers']['get'](_0x28ec6a),{id:_0x409e85,part:_0x367fe8}=er(_0x28ec6a);return _0x5300aa&&!_0x5300aa['affectsData']||_0x45130f['ignoreResolvedComments']&&_0x7873cb['getCommentThread'](_0x409e85)?.['isResolved']?null:{'group':'comment','name':_0x367fe8?_0x409e85+':'+_0x367fe8:_0x409e85};}}),_0x1d6e5e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3f6b9b,{writer:_0x3ee2f6})=>_0x3ee2f6['createElement']('$marker',{'data-name':'comment:'+_0x3f6b9b['getAttribute']('id')})}),_0x1d6e5e['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x240155=this['editor'],_0x3f379e=_0x240155['plugins']['get'](o),_0x1c104c=new Set(),_0x1b5542=new Set();_0x240155['model']['document']['registerPostFixer'](_0x1d4272=>{let _0x4352e5=!0x1;for(const {name:_0x221628,data:_0xf0bfb9}of _0x240155['model']['document']['differ']['getChangedMarkers']()){const {group:_0x306081,id:_0x38fecc}=er(_0x221628);let _0x115523=_0xf0bfb9['newRange'];if('comment'!==_0x306081||!_0x115523)continue;const _0x58d6d7='$graveyard'===_0x115523['root']['rootName'];_0x58d6d7||(_0x115523=mt(_0x115523,_0x240155['model']),!_0x115523||_0x115523['isCollapsed']||!_0xf0bfb9['newRange']||_0x115523['isEqual'](_0xf0bfb9['newRange']))?_0x240155['model']['hasContent'](_0x115523)&&!_0x58d6d7?this['isThreadsLoadingPaused']?_0x1c104c['add'](_0x221628):this['_handleThreadMarker'](_0x221628,_0x38fecc):(_0x1b5542['add'](_0x221628),_0x1c104c['delete'](_0x221628),_0x1d4272['removeMarker'](_0x221628),_0x4352e5=!0x0):(_0x1d4272['updateMarker'](_0x221628,{'range':_0x115523}),_0x4352e5=!0x0);}return _0x4352e5;}),this['on']('change:isThreadsLoadingPaused',(_0x1e1bbd,_0x31fb55,_0xa9d33b)=>{if(!_0xa9d33b&&_0x1c104c['size'])for(const _0x241c17 of _0x1c104c){const {id:_0x48a241}=er(_0x241c17);_0x1c104c['delete'](_0x241c17),_0x240155['model']['markers']['get'](_0x241c17)&&this['_handleThreadMarker'](_0x241c17,_0x48a241);}}),this['listenTo'](_0x240155['model']['document'],'change',()=>{for(const {name:_0x3c9c95,data:{newRange:_0x507cee}}of _0x240155['model']['document']['differ']['getChangedMarkers']()){const {group:_0x31b0db,id:_0x29750e}=er(_0x3c9c95);if('comment'!==_0x31b0db)continue;const _0xbff256=_0x3f379e['getCommentThread'](_0x29750e),_0x5b7489=this['hasMarkerForId'](_0x29750e);_0xbff256&&(!_0xbff256['_hasTargetInContent']&&_0x507cee&&_0x240155['editing']['view']['once']('render',()=>{const _0x2bca62=_0x240155['plugins']['get'](O),_0x19f51b=_0x3f379e['_threadToController']['get'](_0xbff256)['view'];_0x2bca62['getByInnerView'](_0x19f51b)['refreshVisibility']();},{'priority':'low'}),_0xbff256['_hasTargetInContent']=_0x5b7489||!!_0x507cee),_0x507cee||(_0x1b5542['add'](_0x3c9c95),_0x1c104c['delete'](_0x3c9c95));}for(const _0x2c257e of _0x1b5542){const {id:_0x4abd1c}=er(_0x2c257e),_0x48acbc=_0x3f379e['getCommentThread'](_0x4abd1c);if(_0x1c104c['delete'](_0x2c257e),!_0x48acbc)continue;const _0x59e247=this['hasMarkerForId'](_0x4abd1c);_0x59e247||_0x48acbc['isSubmitted']?_0x59e247||_0x48acbc['unlinkedAt']||_0x48acbc['setUnlinkedAt'](new Date()):_0x48acbc['remove']();}_0x1b5542['clear']();});}['_handleInitialThreads'](_0x3d2123){_0x3d2123['forEach'](_0x49dfa0=>{_0x49dfa0['unlinkedAt']&&this['_attachArchivedThread'](_0x49dfa0['id']);});}['_getTargetForId'](_0x413e45){const _0x19c386=this['editor'],_0xe43697=this['getAllMarkersForId'](_0x413e45);return et(_0x19c386['editing'],_0xe43697);}['_getTextContext'](_0xcf5dd3){const _0x39bbeb=this['getAllMarkersForId'](_0xcf5dd3);let _0x1876f3='',_0x3bbb2a=!0x1;for(const _0x13a639 of _0x39bbeb){const _0x2def2c=_0x13a639['getRange']();for(const _0x6be281 of Array['from'](_0x2def2c['getItems']()))_0x6be281['is']('$textProxy')?(_0x1876f3&&_0x3bbb2a&&(_0x1876f3+='\x20',_0x3bbb2a=!0x1),_0x1876f3+=_0x6be281['data']):_0x3bbb2a=!0x0;_0x3bbb2a=!0x0;}return _0x1876f3['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x182c39,_0x24c7c8){const _0xa6a236=this['editor'],_0x1ef8f2=_0xa6a236['plugins']['get'](o);let _0x3b3ab0=_0x1ef8f2['getCommentThread'](_0x24c7c8);const _0x3a5616=_0xa6a236['config']['get']('collaboration.channelId'),_0x17afa5=_0xa6a236['plugins']['get'](P);if(_0x3b3ab0&&(_0x3b3ab0['unlinkedAt']&&_0x3b3ab0['setUnlinkedAt'](null),_0x3b3ab0['isAttached']))return _0x3b3ab0;return!this['getAllMarkersForId'](_0x24c7c8)[0x0]['managedUsingOperations']?_0xa6a236['editing']['view']['once']('render',()=>{if(_0x1ef8f2['getCommentThread'](_0x24c7c8))return;const _0x1d85f4=_0xa6a236['plugins']['get'](O);_0x3b3ab0=_0x1ef8f2['openNewCommentThread']({'channelId':_0x3a5616,'threadId':_0x24c7c8,'target':()=>this['_getTargetForId'](_0x24c7c8),'context':{'type':'text','value':this['_getTextContext'](_0x24c7c8)}});const _0x32333b=_0x1ef8f2['_threadToController']['get'](_0x3b3ab0)['view'],_0x539280=_0x1d85f4['getByInnerView'](_0x32333b);_0x539280&&_0x17afa5['registerAnnotation'](_0x539280);},{'priority':'low'}):_0x1ef8f2['fetchCommentThread']({'channelId':_0x3a5616,'threadId':_0x24c7c8})['then'](_0x1ddd61=>{if('destroyed'!==_0xa6a236['state']){if(_0x3b3ab0=_0x1ddd61,_0x3b3ab0&&!_0x3b3ab0['isAttached']){const _0x3148ff=_0x3b3ab0['attachTo'](()=>this['_getTargetForId'](_0x24c7c8));_0x17afa5['registerAnnotation'](_0x3148ff),_0x3b3ab0['isResolved']&&this['_reconvertMarkers'](_0x24c7c8);}else{if(!_0x3b3ab0){const _0x531001=this['getAllMarkersForId'](_0x24c7c8);_0xa6a236['model']['change'](_0x18574d=>{for(const _0x7c9dbb of _0x531001)_0x18574d['removeMarker'](_0x7c9dbb);});}}}}),_0x3b3ab0;}['_handleThreadMarker'](_0xa2ea82,_0x28e59d){const _0x39b934=this['_attachMarkerToThread'](_0xa2ea82,_0x28e59d);_0x39b934&&!_0x39b934['context']&&_0x39b934['setContext']({'type':'text','value':this['_getTextContext'](_0x28e59d)});}['_initAriaMarkerChangeAnnouncements'](){const _0x1fe397=this['editor'];ot(_0x1fe397['model'],({left:_0x22661e,entered:_0x4d1b29})=>{for(const _0x437bb7 of _0x22661e)if(ht(_0x437bb7)){_0x1fe397['ui']['ariaLiveAnnouncer']['announce'](E(_0x1fe397['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3188dd of _0x4d1b29)if(ht(_0x3188dd)){_0x1fe397['ui']['ariaLiveAnnouncer']['announce'](E(_0x1fe397['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x4425cc)));break;}});}}function dt(_0x4328ac,_0x36b7d0){return _0x36b7d0?_0x4328ac+':'+_0x36b7d0:_0x4328ac;}function er(_0x10dfc8){const _0x3d9b2a=_0x10dfc8['split'](':');return{'group':_0x3d9b2a[0x0],'id':_0x3d9b2a[0x1],'part':_0x3d9b2a[0x2]};}function mt(_0x47d866,_0x776ff7){const _0x2e2715=_0x776ff7['schema'],_0x4b1145=_0x776ff7['createRange'](_0x47d866['start']);for(const _0x19df3f of _0x47d866['getWalker']()){const {type:_0x2cca0c,item:_0x87fbb8,nextPosition:_0x3f6140}=_0x19df3f;if('text'===_0x2cca0c||_0x2e2715['isObject'](_0x87fbb8)){const _0x504b30=_0x776ff7['createPositionBefore'](_0x87fbb8);_0x4b1145['isCollapsed']&&(_0x4b1145['start']=_0x504b30),_0x4b1145['end']=_0x3f6140;}}return _0x4b1145;}function ht(_0x88ef60){return'comment'===er(_0x88ef60['name'])['group'];}class i extends _0x49a43a{['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 _0x44bba7=this['editor'],_0x2a5a59=_0x44bba7['plugins']['get'](o),_0xafcc2a=_0x44bba7['plugins']['get'](r),_0x255305=_0x44bba7['plugins']['get'](O),_0x33463b=_0x44bba7['plugins']['get'](P);_0x44bba7['ui']['componentFactory']['add']('comment',()=>{const _0x4ad946=this['_createUIButton'](_0x3b9991);return _0x4ad946['tooltip']=!0x0,_0x4ad946;}),_0x44bba7['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x40081d)),_0x33463b['addSourceCollector'](()=>{const _0x2a0a3b=[];for(const [_0x55e7d2,_0xc7f6b3]of _0x2a5a59['_threadToController']){const _0x41096e=_0xafcc2a['getAllMarkersForId'](_0x55e7d2['id']),_0x671977=_0x41096e['map'](_0x5977fd=>_0x5977fd['getRange']());_0x41096e['length']>0x0&&_0x2a0a3b['push']([_0xc7f6b3['view'],_0x671977]);}return _0x2a0a3b;}),this['listenTo'](_0x255305,'change:activeAnnotations',(_0x1126a5,_0x56f1c3,_0x20c1c4)=>{const _0x2986a5=Array['from'](_0x20c1c4)['map'](_0x27d905=>_0x27d905['innerView'])['find'](_0x59455c=>_0x2a5a59['_viewToController']['has'](_0x59455c));if(!_0x2986a5)return void(_0xafcc2a['activeMarker']=null);const _0x2f08a2=_0x2a5a59['_viewToController']['get'](_0x2986a5)['model']['id'],_0x114ae6='comment:'+_0x2f08a2;_0x2f08a2&&_0xafcc2a['hasMarkerForId'](_0x2f08a2)?_0xafcc2a['activeMarker']=_0x114ae6:_0xafcc2a['activeMarker']&&(_0xafcc2a['activeMarker']=null);}),this['listenTo'](_0x2a5a59,'removeCommentThread',(_0x10d215,{threadId:_0x3d129b,isFromAdapter:_0x2c8e1e})=>{!_0x2c8e1e&&_0x44bba7['ui']['focusTracker']['isFocused']&&_0xafcc2a['hasMarkerForId'](_0x3d129b)&&_0x44bba7['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2a5a59,'addComment',(_0x32f577,{threadId:_0x41882f,isFromAdapter:_0x272abd})=>{if(_0x272abd||!_0xafcc2a['hasMarkerForId'](_0x41882f)||!_0x2a5a59['hasCommentThread'](_0x41882f))return;0x1===_0x2a5a59['getCommentThread'](_0x41882f)['length']&&(_0x44bba7['editing']['view']['focus'](),_0x32f577['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ad4e7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4af5ea;for(const _0x5a0856 in _0x2ad4e7){const _0x3bd090=_0x5a0856,_0x1b26d2=_0x2ad4e7[_0x3bd090];if('commentsLicenseKeyValid'==_0x1b26d2||'commentsLicenseKeyInvalid'==_0x1b26d2||'commentsLicenseKeyExpired'==_0x1b26d2||'commentsLicenseKeyDomainLimit'==_0x1b26d2||'commentsLicenseKeyNotAllowed'==_0x1b26d2||'commentsLicenseKeyEvaluationLimit'==_0x1b26d2||'commentsLicenseKeyTrialLimit'==_0x1b26d2||'commentsLicenseKeyUsageLimit'==_0x1b26d2){delete _0x2ad4e7[_0x3bd090],_0x4af5ea=_0x1b26d2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4af5ea&&_0x2ad4e7['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4af5ea&&_0x2ad4e7['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4af5ea&&_0x2ad4e7['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4af5ea&&_0x2ad4e7['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4af5ea&&_0x2ad4e7['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4af5ea&&_0x2ad4e7['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x4af5ea&&_0x2ad4e7['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x3c312b){const _0x5597d2=this['editor'],_0x1380ac=new _0x3c312b(_0x5597d2['locale']),_0x163c07=_0x5597d2['commands']['get']('addCommentThread');return _0x1380ac['set']({'label':E(_0x5597d2['locale'],'Comment'),'icon':_0x41e6b5}),_0x1380ac['bind']('isEnabled')['to'](_0x163c07),this['listenTo'](_0x1380ac,'execute',()=>{_0x163c07['execute']();}),_0x1380ac;}}class s extends _0x49a43a{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x5b98c8){super(_0x5b98c8),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1b2952,_0x44e499,_0x4525d1)=>{_0x4525d1?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x23a0ee,_0x26280d]of this['editor']['commands'])_0x26280d['affectsData']&&'addCommentThread'!==_0x23a0ee&&_0x26280d['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 _0x5cad6c=this['editor']['editing']['view']['document'];this['listenTo'](_0x5cad6c,'cut',_0x228144=>_0x228144['stop'](),{'priority':'highest'}),this['listenTo'](_0x5cad6c,'clipboardInput',_0x41c3ee=>_0x41c3ee['stop'](),{'priority':'highest'}),this['listenTo'](_0x5cad6c,'delete',_0x284bab=>_0x284bab['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0xd6e7c7,_0x348eb4]of this['editor']['commands'])_0x348eb4['affectsData']&&'addCommentThread'!==_0xd6e7c7&&_0x348eb4['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 _0x3af3fa{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf9bbbd){super(_0xf9bbbd),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x2ea86f=this['context']['plugins']['get'](O);this['listenTo'](_0x2ea86f,'_activateAnnotation',(_0x3eeda5,_0x419bdf)=>{for(const _0x5c8127 of this['activeUIs']){const _0x33e308=this['_uis']['get'](_0x5c8127);(0x0,this['uisData']['get'](_0x5c8127)['filter'])(_0x419bdf)&&_0x33e308['setActiveAnnotation'](_0x419bdf);}}),this['listenTo'](_0x2ea86f,'_deactivateAllAnnotations',()=>{for(const _0x5303b0 of this['activeUIs']){this['_uis']['get'](_0x5303b0)['setActiveAnnotation'](null);}}),this['listenTo'](_0x2ea86f['_visibleAnnotations'],'add',(_0x162186,_0x5c3f15)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5c3f15);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x1f76f7){return this['activeUIs']['has'](_0x1f76f7);}['activate'](_0x1248f5,_0x319f62=this['defaultFilter']){const _0x19fee4=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x1248f5))throw new _0xa7d815('annotationsuis-missing-ui',this,{'uiName':_0x1248f5});this['isActive'](_0x1248f5)&&this['deactivate'](_0x1248f5),this['activeUIs']['add'](_0x1248f5);const _0x45ba2c=new _();!function({source:_0x1d9caa,target:_0x295907,filter:_0x4bda11}){for(const _0x47bc12 of _0x1d9caa)_0x4bda11(_0x47bc12)&&_0x295907['add'](_0x47bc12);_0x295907['listenTo'](_0x1d9caa,'add',(_0x3a7f22,_0x3886ef)=>{_0x4bda11(_0x3886ef)&&_0x295907['add'](_0x3886ef);}),_0x295907['listenTo'](_0x1d9caa,'remove',(_0x6b461a,_0x2f1866)=>{_0x295907['has'](_0x2f1866)&&_0x295907['remove'](_0x2f1866);});}({'source':_0x19fee4['_visibleAnnotations'],'target':_0x45ba2c,'filter':_0x319f62}),this['uisData']['set'](_0x1248f5,{'collection':_0x45ba2c,'filter':_0x319f62});const _0x4b8c34=this['_uis']['get'](_0x1248f5);_0x4b8c34['attach'](_0x45ba2c),this['listenTo'](_0x4b8c34,'change:activeAnnotation',(_0x4b6e54,_0x47f0a5,_0x733f67,_0x2330db)=>{_0x2330db&&_0x19fee4['_removeActiveAnnotation'](_0x2330db),_0x733f67&&_0x19fee4['_addActiveAnnotation'](_0x733f67);});}['deactivate'](_0x4386e8){if(this['activeUIs']['delete'](_0x4386e8),!this['_uis']['has'](_0x4386e8))throw new _0xa7d815('annotationsuis-missing-ui',this,{'uiName':_0x4386e8});const _0x2a96c5=this['_uis']['get'](_0x4386e8);_0x2a96c5['detach'](),this['stopListening'](_0x2a96c5),this['uisData']['get'](_0x4386e8)['collection']['destroy'](),this['uisData']['delete'](_0x4386e8);}['switchTo'](_0x4ea06d){if(!this['_uis']['has'](_0x4ea06d))throw new _0xa7d815('annotationsuis-missing-ui',this,{'uiName':_0x4ea06d});const _0x10bd1e=this['context']['plugins']['get'](O),_0x5aae7e=Array['from'](_0x10bd1e['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4ea06d);const _0x3838af=this['_uis']['get'](_0x4ea06d);_0x3838af['setActiveAnnotation'](_0x5aae7e),_0x3838af['_setSelectedAnnotations']&&_0x5aae7e&&_0x3838af['_setSelectedAnnotations']([_0x5aae7e]);}['deactivateAll'](){for(const _0x27acd4 of this['activeUIs'])this['deactivate'](_0x27acd4);}['register'](_0x3b7ca9,_0xa6798a){if(this['_uis']['has'](_0x3b7ca9))throw new _0xa7d815('annotationsuis-register-already-registered');if('function'!=typeof _0xa6798a['attach']||'function'!=typeof _0xa6798a['detach']||'function'!=typeof _0xa6798a['setActiveAnnotation'])throw new _0xa7d815('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3b7ca9,_0xa6798a);}['refilterAnnotations'](){const _0x16ae7d=this['context']['plugins']['get'](O)['collection'],_0x1023cd=new Map(),_0x5caf96=Array['from'](this['activeUIs']);for(const _0x4a90f3 of this['activeUIs']){const _0x43bf71=this['uisData']['get'](_0x4a90f3)['collection'];for(const _0x69bfd6 of _0x43bf71)_0x1023cd['set'](_0x69bfd6,_0x4a90f3);}for(const _0x1e53b4 of _0x16ae7d){const _0x444c0f=_0x1023cd['get'](_0x1e53b4);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1e53b4);const _0x1a0ffd=_0x5caf96['find'](_0x449cef=>this['uisData']['get'](_0x449cef)['filter'](_0x1e53b4));_0x444c0f!==_0x1a0ffd&&(_0x444c0f&&this['uisData']['get'](_0x444c0f)['collection']['remove'](_0x1e53b4),_0x1a0ffd&&this['uisData']['get'](_0x1a0ffd)['collection']['add'](_0x1e53b4));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2c508a){const _0x465e23=[];for(const _0x44a724 of this['activeUIs']){(0x0,this['uisData']['get'](_0x44a724)['filter'])(_0x2c508a)&&_0x465e23['push'](_0x44a724);}if(_0x465e23['length']>0x1)throw new _0xa7d815('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x465e23,'annotationType':_0x2c508a['type']});}}const pi=xt('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x2e456e){super(_0x2e456e);const _0x5662cb=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 _0xa9b33(),this['focusCycler']=new _0x1e0fed({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x5662cb['to']('class')],'style':{'minHeight':_0x5662cb['to']('minHeight',_0x2feec1=>'number'==typeof _0x2feec1?pi(_0x2feec1+0xa):null)},'dir':_0x2e456e['uiLanguageDirection'],'role':'application','aria-label':E(_0x2e456e,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x2e456e,'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',_0x58d393=>{this['_updateItemPositionInFocusables'](_0x58d393['source']);}),this['list']['forEach'](_0x276525=>{this['focusTracker']['add'](_0x276525['element']),this['_updateItemPositionInFocusables'](_0x276525);}),this['list']['on']('change',(_0x5dd4eb,_0x563a4c)=>{for(const _0x54a88e of _0x563a4c['removed'])this['focusTracker']['remove'](_0x54a88e['element']),this['focusables']['remove'](_0x54a88e);for(const _0x2def3a of _0x563a4c['added'])this['focusTracker']['add'](_0x2def3a['element']),this['_updateItemPositionInFocusables'](_0x2def3a);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0xc49afe){const _0x1a5864=this['focusables']['getIndex'](_0xc49afe);let _0x39bd91,_0x5771c2;for(const _0x348fa2 of this['focusables'])if(_0xc49afe['top']<_0x348fa2['top']){_0x39bd91=_0x348fa2;break;}if(_0x5771c2=_0x39bd91?this['focusables']['getIndex'](_0x39bd91):this['focusables']['length'],-0x1!==_0x1a5864){if(_0x1a5864===_0x5771c2-0x1)return;this['focusables']['remove'](_0xc49afe),_0x5771c2=_0x39bd91?this['focusables']['getIndex'](_0x39bd91):this['focusables']['length'];}this['focusables']['add'](_0xc49afe,_0x5771c2);}}const Ht=xt('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x23f7d5){super(_0x23f7d5),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x3910d5,_0x1eb74a)=>_0x3910d5+_0x1eb74a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3e0a59=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3e0a59['to']('isAnimationDisabled',_0x245c3d=>_0x245c3d?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3e0a59['to']('top',_0x54a3e3=>Ht(_0x54a3e3))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x217306=this['element']['clientHeight'];_0x217306&&(this['height']=_0x217306);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x3af3fa{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f083f){super(_0x4f083f),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 _0x254459=this['context']['config']['get']('sidebar.container');_0x254459&&this['setContainer'](_0x254459);}['setContainer'](_0xf95281){if(!y(_0xf95281))throw new _0xa7d815('sidebar-setcontainer-invalid-element');this['container']=_0xf95281;}['_attachToContainer']({viewClass:_0x5a4dc8='',spaceBetweenItems:_0x2fc7f1=0x19}={}){if(!y(this['container']))throw new _0xa7d815('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x5a4dc8,this['_spaceBetweenItems']=_0x2fc7f1;}['rearrange']({removedAnnotation:_0x526627,previousAnnotation:_0x533abf,nextAnnotation:_0x4300b9}){const _0x52ad5e=this['getSidebarItemView'](_0x526627);this['view']['list']['remove'](_0x52ad5e),this['_destroySidebarItemView'](_0x526627),_0x533abf&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x533abf)),_0x4300b9&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4300b9)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3ef90f,activatedAnnotation:_0x50393a,disableAnimationOnActivatedAnnotation:_0x2c3047}){if(this['_activeAnnotation']=_0x50393a,_0x3ef90f){_0x3ef90f['isActive']=!0x1;const _0x1b0a8a=this['getSidebarItemView'](_0x3ef90f);_0x1b0a8a&&_0x2c3047&&(_0x1b0a8a['isAnimationDisabled']=!0x1);}if(_0x50393a){const _0xa74fd8=this['getSidebarItemView'](_0x50393a);_0xa74fd8&&(_0x50393a['isActive']=!0x0,_0x2c3047&&(_0xa74fd8['isAnimationDisabled']=!0x0,_0xa74fd8['top']+=0x1),this['_alignToTargetRect'](_0xa74fd8));}}['_detachFromContainer'](_0x309a34){if(this['view']['element']['remove'](),_0x309a34){for(const _0x546217 of _0x309a34)this['_destroySidebarItemView'](_0x546217);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xf6f722,_0x3bdb46){_0x3bdb46||(_0x3bdb46=_0xf6f722['view']);const _0x4c6bbd=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x4c6bbd,_0xf6f722),this['_annotationToSidebarItemView']['set'](_0xf6f722,_0x4c6bbd),_0x4c6bbd['content']['add'](_0x3bdb46),this['listenTo'](_0xf6f722['view'],'change:targetRect',(_0x530aaf,_0x35cedf,_0x80c7ed)=>{const _0x2a1450=this['_getTargetTop'](_0xf6f722,_0x80c7ed);_0x4c6bbd['_targetTop']!=_0x2a1450&&(_0x4c6bbd['_targetTop']=_0x2a1450,this['_setItemTop'](_0x4c6bbd,_0x2a1450));}),this['listenTo'](_0x4c6bbd,'change:top',()=>{this['_recalculate'](_0x4c6bbd,'top');}),this['listenTo'](_0x4c6bbd,'change:bottom',()=>{this['_recalculate'](_0x4c6bbd,'bottom');}),this['_alignToTargetRect'](_0x4c6bbd);const _0x40163b=this['_getItemBefore'](_0x4c6bbd);if(_0x40163b)this['_alignAfterItem'](_0x40163b,_0x4c6bbd)||this['_alignToTargetRect'](_0x4c6bbd);else this['_alignToTargetRect'](_0x4c6bbd);return this['_updateLastItem'](),this['view']['list']['add'](_0x4c6bbd),_0x4c6bbd;}['_alignForTopChange'](_0x3c25bc){if(!_0x3c25bc['content']['length'])return;const _0x25ea33=this['_getItemBefore'](_0x3c25bc);if(!_0x25ea33)return;const _0x208e2a=this['_sidebarItemViewToAnnotation']['get'](_0x25ea33),_0x1f3ac4=this['_activeAnnotation'];_0x1f3ac4&&_0x1f3ac4===_0x208e2a?this['_alignAfterItem'](_0x25ea33,_0x3c25bc):this['_alignBeforeItem'](_0x3c25bc,_0x25ea33);}['_alignForBottomChange'](_0x17da8e){if(!_0x17da8e['content']['length'])return;const _0x527bfd=this['_getItemAfter'](_0x17da8e);if(!_0x527bfd)return;const _0x393426=this['_sidebarItemViewToAnnotation']['get'](_0x527bfd),_0x132b63=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x345c3f=this['_activeAnnotation'];_0x345c3f&&_0x345c3f===_0x393426&&_0x132b63?(this['_alignBeforeItem'](_0x527bfd,_0x17da8e),this['_alignAfterItem'](_0x17da8e,_0x527bfd)):_0x345c3f&&_0x345c3f===_0x393426?this['_alignBeforeItem'](_0x527bfd,_0x17da8e):this['_alignAfterItem'](_0x17da8e,_0x527bfd);}['_recalculate'](_0x8b2958,_0x1c7e30){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xd5cfd8,changedProp:_0x5474d0}of this['_recalculateBuffer'])'top'===_0x5474d0?this['_alignForTopChange'](_0xd5cfd8):this['_alignForBottomChange'](_0xd5cfd8);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x8b2958,'changedProp':_0x1c7e30});}['getSidebarItemView'](_0x28cc23){return this['_annotationToSidebarItemView']['get'](_0x28cc23);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x39c0b5){const _0x13993a=this['getSidebarItemView'](_0x39c0b5);this['stopListening'](_0x13993a),this['stopListening'](_0x39c0b5['view']),_0x13993a['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x39c0b5),this['_sidebarItemViewToAnnotation']['delete'](_0x13993a);}['_createSidebarView'](){const _0x32e804=new H(this['context']['locale']);return _0x32e804['render'](),this['on']('change:_lastItem',(_0x5d1ac2,_0x394ebb,_0x1166b6,_0x3c61b5)=>{_0x3c61b5&&_0x32e804['unbind']('minHeight'),_0x1166b6?_0x32e804['bind']('minHeight')['to'](_0x1166b6,'bottom'):_0x32e804['minHeight']=null;}),_0x32e804;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5310d3){const _0x3b28f7=this['_sidebarItemViewToAnnotation']['get'](_0x5310d3),_0x27d852=_0x3b28f7&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3b28f7)-0x1);return _0x27d852&&this['getSidebarItemView'](_0x27d852)||null;}['_getItemAfter'](_0x5878f6){const _0x3133f1=this['_sidebarItemViewToAnnotation']['get'](_0x5878f6),_0x42fdab=_0x3133f1&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3133f1)+0x1);return _0x42fdab&&this['getSidebarItemView'](_0x42fdab)||null;}['_alignBeforeItem'](_0x571935,_0x4dffb3){_0x571935['updateHeight']();const _0x2c98c3=G(_0x4dffb3['bottom']+this['_spaceBetweenItems'],_0x571935['top']);return!!_0x2c98c3&&(this['_setItemTop'](_0x4dffb3,_0x4dffb3['top']-_0x2c98c3),!0x0);}['_alignAfterItem'](_0x46e7d2,_0x3f0746){_0x46e7d2['updateHeight']();const _0x52adce=G(_0x46e7d2['bottom']+this['_spaceBetweenItems'],_0x3f0746['top']);return!!_0x52adce&&(this['_setItemTop'](_0x3f0746,_0x3f0746['top']+_0x52adce,!0x1),!0x0);}['_alignToTargetRect'](_0x3da63e){const _0x123fa9=this['_sidebarItemViewToAnnotation']['get'](_0x3da63e);if(!_0x123fa9||!_0x123fa9['target']||!_0x123fa9['targetRect'])return;const _0x29dc6f=this['_getTargetTop'](_0x123fa9,_0x123fa9['targetRect']);this['_setItemTop'](_0x3da63e,_0x29dc6f);}['_getTargetTop'](_0x203106,_0x24a073){if(null===_0x24a073)return 0x0;if(_0x203106['target']instanceof _0x3bd473)return _0x24a073['top'];{const _0x56ea79=new _0x3bd473(this['view']['element'])['top'];return _0x24a073['top']-_0x56ea79;}}['_setItemTop'](_0x3b68d5,_0x19b322,_0x3540b0=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x3540b0&&(_0x19b322=Math['max'](_0x19b322,this['_getMaxAvailableTop'](_0x3b68d5))),_0x3b68d5['top']=_0x19b322;}['_getMaxAvailableTop'](_0x2db387){let _0xa7bcc3=this['_getItemBefore'](_0x2db387),_0x7ca6e9=0x0;for(;_0xa7bcc3;)_0xa7bcc3['updateHeight'](),_0x7ca6e9+=this['_spaceBetweenItems']+_0xa7bcc3['height'],_0xa7bcc3=this['_getItemBefore'](_0xa7bcc3);return _0x7ca6e9;}}function G(_0x5cba66,_0x270ad7){return Math['max'](_0x5cba66-_0x270ad7,0x0);}function y(_0x11d014){return null!==_0x11d014&&'object'==typeof _0x11d014&&0x1===_0x11d014['nodeType'];}class e extends _0x3af3fa{['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(_0x3d3535){super(_0x3d3535),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x495158(),this['_refreshPositioningDebounced']=_0x36aac6(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x5b785f=this['context']['plugins']['get'](M),_0x28f7bf=this['context']['plugins']['get'](z);_0x5b785f['register']('wideSidebar',this),_0x28f7bf['container']&&_0x5b785f['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x58d9e7){if(_0x58d9e7===this['activeAnnotation'])return;const _0x59b864=this['context']['plugins']['get'](z);_0x59b864['_activeAnnotation']=_0x58d9e7;const _0x2d9ea3=this['activeAnnotation'];_0x59b864['refresh']({'blurredAnnotation':_0x2d9ea3,'activatedAnnotation':_0x58d9e7}),this['activeAnnotation']=_0x58d9e7;}['attach'](_0x34caf0){this['annotations']=_0x34caf0;const _0x558e29=this['context']['plugins']['get'](z);if(_0x558e29['_annotations']=_0x34caf0,this['isAttached'])throw new _0xa7d815('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x558e29,'set:container',()=>{this['detach'](),this['listenTo'](_0x558e29,'change:container',_0x39c85f=>{_0x39c85f['off'](),this['attach'](_0x34caf0);});}),_0x558e29['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2cac32=_0x72654d=>{_0x72654d['updateTargetRect'](),_0x558e29['addAnnotation'](_0x72654d);};for(const _0x3d0bf5 of _0x34caf0)_0x2cac32(_0x3d0bf5);this['listenTo'](_0x34caf0,'add',(_0x260bbb,_0x3dc59e)=>{_0x2cac32(_0x3dc59e);}),this['listenTo'](_0x34caf0,'remove',(_0x197661,_0x4de267,_0x1d76e6)=>{_0x558e29['rearrange']({'removedAnnotation':_0x4de267,'previousAnnotation':_0x34caf0['get'](_0x1d76e6-0x1),'nextAnnotation':_0x34caf0['get'](_0x1d76e6+0x1)}),_0x4de267===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x34caf0,'focus',(_0x559957,_0x77d0dc)=>{this['setActiveAnnotation'](_0x77d0dc);}),this['listenTo'](_0x34caf0,'blur',()=>{this['setActiveAnnotation'](null);});const _0x9233b8=this['context']instanceof _0x553b7b?this['context']['editors']:new _0x495158([this['context']]);for(const _0x608fa of _0x9233b8)this['_integrateWithEditorAnnotations'](_0x608fa);this['listenTo'](_0x9233b8,'add',(_0x2ef682,_0x37f3f0)=>{this['listenTo'](_0x37f3f0,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x37f3f0);});}),this['listenTo'](_0x9233b8,'remove',(_0x229a5e,_0x5678f3)=>{_0x5678f3['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5678f3['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0xa7d815('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x58b440=this['context']['plugins']['get'](z);_0x58b440['_detachFromContainer'](this['annotations']),this['stopListening'](_0x58b440),this['stopListening'](this['annotations']),this['context']instanceof _0x553b7b&&this['stopListening'](this['context']['editors']);for(const _0x527040 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x527040);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2b9c73){if(!_0x2b9c73['plugins']['has']('EditorAnnotations'))return;const _0x3cb31d=_0x2b9c73['plugins']['get']('EditorAnnotations'),_0x203397=()=>{const _0x13c38f=_0x3cb31d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x13c38f[0x0]||null);};this['listenTo'](_0x3cb31d,'refresh',_0x203397),this['listenTo'](_0x3cb31d,'blur',(_0x8ef0c0,{isAnnotationTracked:_0x28522e})=>{this['activeAnnotation']&&_0x28522e(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3cb31d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x210b46=>{_0x3cb31d['hasDomSelection']()&&(_0x203397(),_0x210b46['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3cb31d);}['_destroyEditorAnnotationsIntegration'](_0x4ea2ac){this['stopListening'](_0x4ea2ac),this['_editorAnnotations']['remove'](_0x4ea2ac);}}class C extends _0x3b9991{['counterView'];constructor(_0xf6446a){super(_0xf6446a);const _0x29011f=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x45f196,_0xf532bb)=>_0x45f196?'...':_0xf532bb['toString']()),this['set']('annotationType',''),this['icon']=_0x41e6b5,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x29011f['to']('annotationType',_0xe782=>'ck-annotation-counter__badge--'+_0xe782),_0x29011f['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x29011f['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x3af3fa{['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(_0x53dfc1){super(_0x53dfc1),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x1afcfc),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x495158(),this['_refreshPositioningDebounced']=_0x36aac6(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x43cf96(this['context']['locale']),this['balloonPanelView']=new _0x237478(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x502c39){this['annotations']=_0x502c39;const _0x49b689=this['context']['plugins']['get'](z),_0x1110be=this['balloonPanelView'];if(_0x49b689['_annotations']=_0x502c39,this['isAttached'])throw new _0xa7d815('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x49b689,'set:container',()=>{this['detach'](),this['listenTo'](_0x49b689,'change:container',_0x165fcd=>{_0x165fcd['off'](),this['attach'](_0x502c39);});}),_0x49b689['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4505f1=_0x541fe8=>{const _0x2cb179=new C(this['context']['locale']);_0x49b689['addAnnotation'](_0x541fe8,_0x2cb179),this['_annotationToNarrowView']['set'](_0x541fe8,_0x2cb179),_0x2cb179['bind']('isDirty','annotationType','number')['to'](_0x541fe8['view'],'isDirty','type','length'),_0x2cb179['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1110be['content']['first']!==_0x541fe8['view']?(this['_showBalloon'](_0x541fe8),_0x541fe8['view']['element']['focus'](),this['setActiveAnnotation'](_0x541fe8)):this['setActiveAnnotation'](null);});};for(const _0x16264a of _0x502c39)_0x4505f1(_0x16264a);this['listenTo'](_0x502c39,'add',(_0x56a24b,_0x4e1aa0)=>{_0x4505f1(_0x4e1aa0);}),this['listenTo'](_0x502c39,'remove',(_0x2a3820,_0x52ebc7,_0x29258a)=>{this['_annotationToNarrowView']['get'](_0x52ebc7)['destroy'](),this['_annotationToNarrowView']['delete'](_0x52ebc7),_0x49b689['rearrange']({'removedAnnotation':_0x52ebc7,'previousAnnotation':_0x502c39['get'](_0x29258a-0x1),'nextAnnotation':_0x502c39['get'](_0x29258a+0x1)}),_0x52ebc7===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x502c39,'focus',(_0x483a3c,_0x2f0253)=>{this['setActiveAnnotation'](_0x2f0253);}),this['listenTo'](_0x502c39,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x4a9ba0,_0x25a360)=>{_0x25a360['keyCode']===_0xb68d27['esc']&&_0x1110be['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1110be['content']['first']),this['_hideBalloon'](),_0x25a360['stopPropagation'](),_0x25a360['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x41a964,_0x5c6de0)=>{const _0x1644f3=_0x5c6de0['target'];_0x1110be['isVisible']&&_0x1110be['element']['contains'](_0x1644f3)||_0x49b689['view']['element']['contains'](_0x1644f3)||_0x41a964['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x257d00=>_0x257d00['contains'](_0x1644f3))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x36c1e0=this['context']instanceof _0x553b7b?this['context']['editors']:new _0x495158([this['context']]);for(const _0x233b61 of _0x36c1e0)this['_integrateWithEditorAnnotations'](_0x233b61);this['listenTo'](_0x36c1e0,'add',(_0x16c319,_0x48821e)=>{this['listenTo'](_0x48821e,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x48821e);});}),this['listenTo'](_0x36c1e0,'remove',(_0x517346,_0x5e2719)=>{_0x5e2719['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5e2719['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x8e9ca8){if(_0x8e9ca8===this['activeAnnotation'])return;const _0x1b79fd=this['context']['plugins']['get'](z);if(_0x1b79fd['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x8e9ca8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x8e9ca8)_0x1b79fd['getSidebarItemView'](_0x8e9ca8)?this['_showBalloon'](_0x8e9ca8):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x8e9ca8;}['detach'](){if(!this['isAttached'])throw new _0xa7d815('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x20dca1=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x52cce0=>_0x52cce0['destroy']()),this['_annotationToNarrowView']['clear'](),_0x20dca1['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x553b7b&&this['stopListening'](this['context']['editors']);for(const _0x1a1458 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1a1458);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'](_0x4f77c9){if(!_0x4f77c9['plugins']['has']('EditorAnnotations'))return;const _0x1657c3=_0x4f77c9['plugins']['get']('EditorAnnotations'),_0x39a6e0=this['context']['plugins']['get'](z),_0x5ef048=this['annotations'],_0x5a9c98=this['balloonPanelView'],_0x1d1a23=()=>{const _0x515d9c=_0x1657c3['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x515d9c),this['setActiveAnnotation'](_0x515d9c[0x0]||null);};this['listenTo'](_0x1657c3,'refresh',_0x1d1a23),this['listenTo'](_0x1657c3,'blur',(_0x812905,{isAnnotationTracked:_0x260bf2})=>{this['activeAnnotation']&&_0x260bf2(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1657c3,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5ef048,'blur',_0x1528c0=>{_0x1657c3['hasDomSelection']()&&_0x1528c0['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x363bbb,_0x2b8d90)=>{const _0x588179=_0x2b8d90['target'];_0x5a9c98['isVisible']&&_0x5a9c98['element']['contains'](_0x588179)||_0x39a6e0['view']['element']['contains'](_0x588179)||this['activeAnnotation']&&_0x1657c3['hasDomSelection']()&&(_0x1d1a23(),_0x363bbb['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1657c3);}['_destroyEditorAnnotationsIntegration'](_0x3ed13e){_0x3ed13e&&(this['stopListening'](_0x3ed13e),this['_editorAnnotations']['remove'](_0x3ed13e));}['_setSelectedAnnotations'](_0x4bd126){for(const _0x203c9a of this['_selectedAnnotations'])_0x4bd126['includes'](_0x203c9a)||this['_manuallyClosedAnnotationViews']['delete'](_0x203c9a['view']);this['_selectedAnnotations']=_0x4bd126;}['_refreshPositioning'](){const _0x21053=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x21053['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x2d7e7a){if(this['_manuallyClosedAnnotationViews']['has'](_0x2d7e7a['view']))return;const _0x2585a3=this['balloonPanelView']['content']['first'];_0x2585a3!==_0x2d7e7a['view']?(_0x2585a3&&this['_detachListeners'](_0x2585a3),this['_attachListeners'](_0x2d7e7a['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x2d7e7a['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x490292=this['balloonPanelView']['content']['first'],_0x399d0e=_0x490292&&this['annotations']['getByView'](_0x490292);if(!_0x399d0e||!this['_annotationToNarrowView']['has'](_0x399d0e))return;const _0xe6da0f=this['_annotationToNarrowView']['get'](_0x399d0e)['element'],_0x5ead59=(function(){const _0x503073=_0x237478['defaultPositions'];return[_0x503073['southArrowNorthEast'],_0x503073['northArrowSouthEast'],_0x503073['southArrowNorth'],_0x503073['northArrowSouth'],_0x503073['southArrowNorthWest'],_0x503073['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xe6da0f,'positions':_0x5ead59});}['_hideBalloon'](){const _0x9a58b2=this['balloonPanelView'],_0x2afb30=_0x9a58b2['content']['first'];_0x2afb30&&(this['_detachListeners'](_0x2afb30),_0x9a58b2['unpin'](),_0x9a58b2['content']['clear']());}['_attachListeners'](_0xf70942){this['listenTo'](_0xf70942,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0xf70942,'Esc',(_0x44139b,_0x25a10b)=>{this['_manuallyClosedAnnotationViews']['add'](_0xf70942),this['_hideBalloon'](),_0x25a10b();});}['_detachListeners'](_0x129019){this['stopListening'](_0x129019);}}class c extends _0x49a43a{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x21e229,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1916ee){super(_0x1916ee),_0x1916ee['editing']['view']['addObserver'](_0x3b60be),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1916ee['plugins']['get'](_0x21e229),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x10e3c4=this['editor']['plugins']['get'](M);_0x10e3c4['context']===this['editor']&&(_0x10e3c4['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x7d47f5,_0xc79f6e)=>{const _0x42a188=this['_balloon'];if(this['isAttached']&&_0x42a188['visibleView']){const _0x5e3811=this['annotations']['getByView'](_0x42a188['visibleView']);_0x5e3811&&this['_closeAnnotation'](_0x5e3811),_0xc79f6e();}}));}['afterInit'](){const _0x163b32=this['editor']['plugins']['get'](M);_0x163b32['context']===this['editor']&&(_0x163b32['hasActive']()||_0x163b32['switchTo']('inline'));}['setActiveAnnotation'](_0x3031e9){_0x3031e9!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x3031e9&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x3031e9)&&this['_addAnnotationToBalloon'](_0x3031e9,!0x0),_0x3031e9['isActive']=!0x0),_0x3031e9||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3031e9);}['attach'](_0x3c61c2){this['annotations']=_0x3c61c2;const _0x5e2faf=this['editor']['plugins']['get'](M),_0x290d4b=this['_balloon'];if(this['isAttached'])throw new _0xa7d815('inlineannotations-attach-already-attached',this);if(_0x5e2faf['context']!==this['editor'])throw new _0xa7d815('inlineannotations-not-allowed-with-context',this);const _0x198d99=this['editor']['plugins']['get'](P);this['listenTo'](_0x198d99,'refresh',()=>{const _0x17097d=_0x198d99['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x24fa5d,_0x18c506;!this['_forceRefresh']&&(_0x24fa5d=_0x17097d,_0x18c506=this['_selectedAnnotations'],_0x24fa5d['length']===_0x18c506['length']&&_0x24fa5d['every'](_0x498224=>_0x18c506['includes'](_0x498224)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x17097d),this['setActiveAnnotation'](_0x17097d[0x0]||null));}),this['listenTo'](_0x198d99,'blur',(_0x4b2f67,{isAnnotationTracked:_0x307b8a})=>{this['activeAnnotation']&&_0x307b8a(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x242d4f,_0x58e563,_0xc087f)=>{_0xc087f||this['setActiveAnnotation'](null);}),this['listenTo'](_0x3c61c2,'remove',(_0xb1493b,_0x202b57)=>{this['_removeAnnotationFromBalloon'](_0x202b57),_0x202b57===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x290d4b,'change:visibleView',(_0x45173a,_0x450c96,_0x88cc2e,_0x34e003)=>{_0x34e003&&this['stopListening'](_0x34e003);const _0x467007=_0x3c61c2['getByView'](_0x88cc2e);_0x88cc2e&&_0x467007&&(this['listenTo'](_0x88cc2e,'change:height',()=>{_0x290d4b['updatePosition']();}),this['listenTo'](_0x88cc2e,'Esc',()=>{this['_closeAnnotation'](_0x467007),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x467007&&this['setActiveAnnotation'](_0x467007));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x290d4b['visibleView']&&(_0x3c61c2['getByView'](_0x290d4b['visibleView'])&&_0x290d4b['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 _0xa7d815('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xc66c70 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xc66c70);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x223847){for(const _0x2a5614 of this['_selectedAnnotations'])_0x223847['includes'](_0x2a5614)||this['_manuallyClosed']['delete'](_0x2a5614);for(const _0x4b2c86 of this['annotations'])_0x223847['includes'](_0x4b2c86)||this['_removeAnnotationFromBalloon'](_0x4b2c86);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5ab151 of _0x223847)this['_addAnnotationToBalloon'](_0x5ab151);}this['_selectedAnnotations']=_0x223847;}['_addAnnotationToBalloon'](_0x2aff90,_0x410c39=!0x1){this['_manuallyClosed']['has'](_0x2aff90)||(this['_addedAnnotations']['has'](_0x2aff90)||this['_balloon']['hasView'](_0x2aff90['view'])||(this['_addedAnnotations']['add'](_0x2aff90),this['_balloon']['add']({'stackId':_0x2aff90['view']['id'],'view':_0x2aff90['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2aff90)}})),_0x410c39&&this['_balloon']['showStack'](_0x2aff90['view']['id']));}['_getBalloonTargetForAnnotation'](_0x2011c4){const _0x521f39=_0x2011c4['target'],_0x124937=this['editor']['editing']['view'],_0x15cb63=_0x124937['document']['selection']['getFirstRange'](),_0x2c0c06=_0x124937['domConverter']['viewRangeToDom'](_0x15cb63);if(_0x2c0c06['collapse'](!0x0),_0x521f39){if(_0x521f39 instanceof _0x3bd473)return _0x521f39;let _0x925f30=[];for(const _0x19261c of _0x521f39)_0x925f30['push'](...B(_0x19261c['getClientRects']()));_0x925f30=function(_0x5ef4b9){const _0x990c8c=[];let _0x45a51f=_0x5ef4b9[0x0];for(let _0x1a778d=0x1;_0x1a778d<_0x5ef4b9['length'];_0x1a778d++)F(_0x45a51f,_0x5ef4b9[_0x1a778d])?_0x45a51f['width']+=_0x5ef4b9[_0x1a778d]['width']:(_0x990c8c['push'](_0x45a51f),_0x45a51f=_0x5ef4b9[_0x1a778d]);return _0x990c8c['push'](_0x45a51f),_0x990c8c;}(_0x925f30);const _0x39dc78=_0x2c0c06['getBoundingClientRect']();return _0x925f30['find'](_0x299c46=>_0x299c46['top']<=_0x39dc78['top']&&_0x299c46['bottom']>=_0x39dc78['bottom']&&_0x299c46['left']<=_0x39dc78['left']&&_0x299c46['right']>=_0x39dc78['right'])||_0x925f30[0x0];}return _0x2011c4['targetRect']||_0x2c0c06;}['_removeAnnotationFromBalloon'](_0x328a34){this['_addedAnnotations']['has'](_0x328a34)&&this['_balloon']['hasView'](_0x328a34['view'])&&(this['_addedAnnotations']['delete'](_0x328a34),this['_balloon']['remove'](_0x328a34['view']));}['_closeAnnotation'](_0x295476){this['_manuallyClosed']['add'](_0x295476),this['_removeAnnotationFromBalloon'](_0x295476);}}function B(_0x242109){return Array['from'](_0x242109)['map'](DOMRect['fromRect']);}function F(_0x2e86bf,_0x90ff3f){return _0x2e86bf['top']===_0x90ff3f['top']&&_0x2e86bf['bottom']===_0x90ff3f['bottom']&&_0x2e86bf['right']===_0x90ff3f['left'];}class it extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x570273,_0x5e5e33){super(_0x570273),this['set']('isEmpty',!_0x5e5e33['length']),this['focusTracker']=new _0xa9b33(),this['_annotationViews']=_0x5e5e33,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x1e0fed({'focusables':_0x5e5e33,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5e5e33,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5e5e33,'remove',(_0x3c3926,_0x39e52c)=>{_0x39e52c['isActive']&&this['focus'](),_0x5e5e33['length']||(this['isEmpty']=!0x0);});const _0x6d7fe7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x570273,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5e5e33},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x6d7fe7['if']('isEmpty','ck-hidden',_0x5583d6=>!_0x5583d6)]},'children':[{'text':E(_0x570273,'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 _0x3cbc6e of this['_annotationViews'])this['focusTracker']['add'](_0x3cbc6e['element']);this['_annotationViews']['on']('change',(_0x4a20d3,{added:_0x2cdba7,removed:_0x1d2173})=>{for(const _0x289d4f of _0x2cdba7)this['focusTracker']['add'](_0x289d4f['element']);for(const _0x309574 of _0x1d2173)this['focusTracker']['remove'](_0x309574['element']);});}}class f extends _0x3af3fa{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x4f39b0){super(_0x4f39b0),this['archivedThreads']=new _0x495158();}['init'](){const _0x1e7563=this['context'],_0x4ac4e7=_0x1e7563['plugins']['get'](o),_0x233f7b=_0x1e7563['plugins']['get'](O);this['listenTo'](_0x4ac4e7,'addCommentThread',(_0x5d0a49,{threadId:_0x303f2f})=>{const _0x1b6ac8=_0x4ac4e7['getCommentThread'](_0x303f2f);_0x1b6ac8['archivedAt']&&this['archivedThreads']['add'](_0x1b6ac8,this['_calculatePosition'](_0x1b6ac8['archivedAt'])),this['listenTo'](_0x1b6ac8,'change:archivedAt',(_0x4e4f7a,_0xb01475,_0x13432e)=>{_0x13432e?this['archivedThreads']['has'](_0x1b6ac8)||this['archivedThreads']['add'](_0x1b6ac8,this['_calculatePosition'](_0x1b6ac8['archivedAt'])):this['archivedThreads']['has'](_0x1b6ac8)&&this['archivedThreads']['remove'](_0x1b6ac8);});}),this['listenTo'](_0x4ac4e7,'removeCommentThread',(_0xf6f788,{threadId:_0x2995cd})=>{const _0x158063=_0x4ac4e7['getCommentThread'](_0x2995cd);this['stopListening'](_0x158063),this['archivedThreads']['has'](_0x158063)&&this['archivedThreads']['remove'](_0x158063);},{'priority':'highest'}),this['listenTo'](_0x233f7b['collection'],'focus',(_0x35437e,_0x33b435)=>{_0x33b435['isVisible']||(_0x33b435['isActive']=!0x0,_0x233f7b['activate'](_0x33b435));});}['_calculatePosition'](_0x88e141){const _0x33585d=[...this['archivedThreads']]['findIndex'](_0x37506b=>_0x37506b['archivedAt']<_0x88e141);return _0x33585d>-0x1?_0x33585d:this['archivedThreads']['length'];}}class a extends _0x49a43a{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x38470c];}constructor(_0x20e07f){super(_0x20e07f),this['annotationViews']=new _0x67afca(),this['_pendingThreads']=[];}['init'](){const _0x24bd5f=this['editor'],_0x36d190=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x24bd5f['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3b9991,!0x0)),_0x24bd5f['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x23cefd=this['_createCommentsArchiveButton'](_0x40081d);return _0x23cefd['set']({'role':'menuitemcheckbox'}),_0x23cefd;});const _0x2831f5=_0x24bd5f['plugins']['get'](f),_0x49bd6f=_0x24bd5f['plugins']['get']('Annotations'),_0x30979e=_0x24bd5f['plugins']['get']('CommentsRepository');_0x2831f5['archivedThreads']['forEach'](_0xa45541=>{this['_handleNewThread'](_0xa45541);}),this['listenTo'](_0x2831f5['archivedThreads'],'add',(_0x58aa98,_0x2aaa14)=>{this['_handleNewThread'](_0x2aaa14);}),this['listenTo'](_0x49bd6f['collection'],'add',(_0x47823f,_0x2d4bd2)=>{const _0x3f89a6=this['_pendingThreads']['find'](_0x942542=>{const _0x39af37=_0x30979e['_threadToController']['get'](_0x942542);return _0x39af37&&_0x2d4bd2['innerView']===_0x39af37['view'];});if(_0x3f89a6){const _0xe1402f=this['_calculatePosition'](_0x3f89a6['archivedAt']);this['annotationViews']['add'](_0x2d4bd2['view'],_0xe1402f),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3f89a6),0x1);}}),this['listenTo'](_0x2831f5['archivedThreads'],'remove',(_0x35803f,_0x6d0288)=>{const _0x3aacc1=_0x24bd5f['config']['get']('collaboration.channelId');if(!_0x3aacc1||_0x6d0288['channelId']===_0x3aacc1){if(this['_pendingThreads']['includes'](_0x6d0288))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x6d0288),0x1);else{const _0x233245=_0x30979e['_threadToController']['get'](_0x6d0288),_0x44aa33=_0x49bd6f['getByInnerView'](_0x233245['view']);this['annotationViews']['remove'](_0x44aa33['view']),this['stopListening'](_0x44aa33['focusableElements']);}}}),this['listenTo'](_0x49bd6f['collection'],'add',(_0x2e6a3d,_0x2c7f2a)=>{this['listenTo'](_0x2c7f2a,'escape',_0x36d190);}),this['listenTo'](_0x49bd6f['collection'],'remove',(_0xbc1436,_0xe5e92c)=>{this['stopListening'](_0xe5e92c,'escape',_0x36d190);});}['_handleNewThread'](_0x3e5ac3){const _0x478466=this['editor']['plugins']['get']('CommentsRepository'),_0x4cb1bb=this['editor']['plugins']['get']('Annotations'),_0x344488=this['editor']['config']['get']('collaboration.channelId');if(!_0x344488||_0x3e5ac3['channelId']===_0x344488){const _0x5d07f8=_0x478466['_threadToController']['get'](_0x3e5ac3);if(!_0x5d07f8)return void this['_pendingThreads']['push'](_0x3e5ac3);const _0x5dcf40=this['_calculatePosition'](_0x3e5ac3['archivedAt']),_0x360a17=_0x4cb1bb['getByInnerView'](_0x5d07f8['view']);_0x360a17['isVisible']&&_0x4cb1bb['_visibleAnnotations']['remove'](_0x360a17),this['annotationViews']['add'](_0x360a17['view'],_0x5dcf40);}}['_calculatePosition'](_0x2c3ef6){const _0x1935f2=this['editor']['config']['get']('collaboration.channelId'),_0x4c9258=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x4f806e=>_0x4f806e['channelId']===_0x1935f2)['findIndex'](_0x58c29e=>_0x58c29e['archivedAt']<_0x2c3ef6);return _0x4c9258<0x0||_0x4c9258>this['annotationViews']['length']?this['annotationViews']['length']:_0x4c9258-0x1;}['_toggleDialog'](){const _0x131983=this['editor'],_0x22f0bd=_0x131983['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new it(_0x131983['locale'],this['annotationViews'])),'commentsArchive'===_0x22f0bd['id']?_0x22f0bd['hide']():_0x22f0bd['show']({'id':'commentsArchive','title':E(_0x131983['locale'],'COMMENTS_ARCHIVE'),'icon':_0x489df2,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':tt['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x42b46a,_0x9da596=!0x1){const _0x515d42=this['editor']['locale'],_0x8f492e=this['editor']['plugins']['get']('Dialog'),_0x2789fd=new _0x42b46a(_0x515d42);return _0x2789fd['bind']('isEnabled')['to'](this,'isEnabled'),_0x2789fd['bind']('isOn')['to'](_0x8f492e,'id',_0x45f939=>'commentsArchive'===_0x45f939),_0x2789fd['set']({'label':E(_0x515d42,'COMMENTS_ARCHIVE'),'icon':_0x489df2,'isToggleable':!0x0}),_0x9da596&&(_0x2789fd['tooltip']=!0x0),this['listenTo'](_0x2789fd,'execute',()=>this['_toggleDialog']()),_0x2789fd;}['_hideDialogOnAnnotationEscape']=_0x3af0b4=>{const _0x5f399d=_0x3af0b4['source'];if(!this['annotationViews']['has'](_0x5f399d['view']))return;const _0x36df8e=this['editor']['plugins']['get']('Dialog');_0x36df8e['isOpen']&&'commentsArchive'===_0x36df8e['id']&&(_0x36df8e['hide'](),_0x3af0b4['stop']());};}class p extends _0x49a43a{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,_ as AnnotationCollection,S as AnnotationView,O as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,fi as Comment,ui as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar};
23
+ import{Editor as _0xac8302,ContextPlugin as _0x18f184,PendingActions as lt,Command as _0x58209a,Plugin as _0x454998,Context as _0x300bcf}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x56605d,uid as _0xad4cb1,KeystrokeHandler as jt,FocusTracker as _0x23af45,diff as _0x2d9a31,Collection as _0x104685,Rect as _0x272831,CKEditorError as _0x3b855d,first as _0x2bd294,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x1cb629,keyCodes as _0x4e1d06}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x2b24da,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x4094e9,trimHtml as _0xacdd3e,LateFocusDropdownButtonView as _0x7adfe0,Users as st,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x8b439e}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x250c1b}from'es-toolkit/compat';import{IconUndo as _0x50d6f8,IconCheck as _0x436e93,IconPencil as _0x3acb6e,IconRemoveComment as _0x41b314,IconThreeVerticalDots as _0x5e7bde,IconAddComment as _0x4ad487,IconCommentsArchive as _0x17b757}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x13d99f,ButtonView as _0x367ece,ViewCollection as _0x245df5,createDropdown as _0x370620,ListView as _0xfe4ad3,focusChildOnDropdownOpen as _0x599507,ListItemView as _0x17a3b1,MenuBarMenuListItemButtonView as _0x37c988,BodyCollection as _0x4f9103,BalloonPanelView as _0x5eba4e,ContextualBalloon as _0x109ba7,Dialog as _0x3afdf9,DialogViewPosition as tt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x2a0f49}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 _0x549d4b}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x55487f}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x56605d(){['model'];['view'];constructor(_0x290b99,_0x2cf670){super(),this['model']=_0x290b99,this['model']['_isAttached']=!0x0,this['view']=_0x2cf670,this['listenTo'](_0x2cf670,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x2cf670,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x2cf670,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x2cf670,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x2cf670,'addComment',(_0x5580e1,_0x5a3cca)=>this['addComment'](_0x5a3cca)),this['listenTo'](_0x2cf670,'updateComment',(_0x1892fd,_0x2ec642,_0x479718)=>this['updateComment'](_0x2ec642,_0x479718)),this['listenTo'](_0x2cf670,'removeComment',(_0x1bd512,_0x470f23)=>this['removeComment'](_0x470f23));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x30c406){this['model']['addComment']({'content':_0x30c406,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0xbebffc,_0x2678f3){this['model']['getComment'](_0xbebffc)['update']({'content':_0x2678f3});}['removeComment'](_0x695783){this['model']['getComment'](_0x695783)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x2003f2,_0x35ee8f,_0x76a761){const t=_0x2003f2['t'];switch(_0x35ee8f){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'},_0x76a761);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'},_0x76a761);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'},_0x76a761);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'},_0x76a761);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x76a761);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'},_0x76a761);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'},_0x76a761);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'},_0x76a761);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0xd7360,_0x16d82c){super(_0xd7360);const _0x40bf85=_0xad4cb1();this['main']=this['createCollection'](),this['editable']=new $t(_0xd7360,_0x16d82c,void 0x0,{'label':()=>E(_0xd7360,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xd7360['uiLanguageDirection'],'lang':_0xd7360['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x40bf85},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Ut{['view'];constructor(_0x4d2c7e){super(_0x4d2c7e),this['view']=new Vt(_0x4d2c7e['locale'],_0x4d2c7e['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x590489=this['editor']['editing']['view'],_0x43b65e=this['view']['editable'],_0x3b62af=_0x590489['document']['getRoot']();_0x43b65e['name']=_0x3b62af['rootName'],this['view']['render']();const _0x41419c=_0x43b65e['element'];this['setEditableElement'](_0x43b65e['name'],_0x41419c),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x590489['attachDomRoot'](_0x41419c),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x56605d(_0xac8302){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x1f6ff3={}){function _0x4fd76d(_0x48b906){return _0x48b906['map'](_0x122d8c=>String['fromCharCode'](_0x122d8c))['join']('');}(_0x1f6ff3=Object['assign']({},_0x1f6ff3))['plugins']||(_0x1f6ff3['plugins']=Rt['defaultPlugins']),super(_0x1f6ff3),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[_0x4fd76d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4fd76d([0x76,0x69,0x65,0x77])][_0x4fd76d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4fd76d([0x61,0x75,0x74,0x6f]),this[_0x4fd76d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4fd76d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4fd76d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4fd76d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4fd76d([0x6f,0x6b])});}['create'](){const _0x3b16b8=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x3b16b8))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x1c39be=>{const _0x5d19ec=this['model']['document']['getRoot'](),_0x5709aa=_0x5d19ec&&_0x5d19ec['getChild'](_0x5d19ec['childCount']-0x1);_0x1c39be['setSelection'](_0x5709aa,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x17535d=this['editing']['view'],_0x4d8b00=_0x17535d['document']['getRoot'](),_0x1df6a5=_0x4d8b00['getChild'](0x0);_0x4d8b00['childCount']>0x1||!_0x1df6a5||'p'!=_0x1df6a5['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x17535d,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x1df6a5['placeholder']=this['placeholder']),Ft({'view':_0x17535d,'element':_0x1df6a5,'keepOnFocus':!0x0}),this['placeholderElement']=_0x1df6a5);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x44a11e,_0x1966e2={}){super(_0x44a11e),this['editor']=null,this['_editorConfig']=_0x1966e2,this['set']('value',_0x1966e2['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x44a11e,'Reply...')),this['set']('submitLabel',E(_0x44a11e,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x23af45(),this['focusCycler']=new _0x13d99f({'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',(_0x23d112,_0x59a345)=>{this['cancelButtonView']['fire']('execute'),_0x59a345();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3ff492,_0x4740c3)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x4740c3());}),this['on']('submit',(_0x5bc498,_0x25fc43)=>{_0x25fc43['length']>0xfde8?(alert(E(_0x44a11e,'TOO_LONG_COMMENT_ALERT',[_0x25fc43['length'],0xfde8])),_0x5bc498['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x7ef5ce=this['editor'];this['element']['insertBefore'](_0x7ef5ce['ui']['element'],this['element']['firstChild']),_0x7ef5ce['model']['document']['on']('change',()=>this['value']=_0x7ef5ce['getData']()),_0x7ef5ce['bind']('placeholder')['to'](this),this['focusables']['add'](_0x7ef5ce['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4fa6ba){-0x1===_0x4fa6ba?(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:_0x3dbb7f}=this,_0x2a2394=new _0x367ece(_0x3dbb7f);return _0x2a2394['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2a2394['withText']=!0x0,_0x2a2394['bind']('label')['to'](this,'submitLabel'),_0x2a2394['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2a2394['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x59490e,_0x595a74)=>!_0x595a74&&!!_0x59490e['trim']()),_0x2a2394;}['_createCancelButton'](){const {locale:_0x19b50f}=this,_0x186d75=new _0x367ece(_0x19b50f);return _0x186d75['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x186d75['label']=E(_0x19b50f,'Cancel'),_0x186d75['withText']=!0x0,_0x186d75['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x186d75;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x5460d2=>{this['focusTracker']['add'](_0x5460d2['element']);}),this['focusables']['on']('change',(_0x94cadd,_0x52c20e)=>{for(const _0xe38c37 of Array['from'](_0x52c20e['added'])['reverse']())this['focusTracker']['add'](_0xe38c37['element']);});}}class ie extends kt{constructor(_0x20e536,_0x26a2d2,_0x37e24a){super(_0x20e536),this['commentInputView']=new hs(_0x20e536,_0x37e24a),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x3c9097,_0x35532f)=>_0x3c9097||!!_0x35532f),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 _0x2b24da(_0x20e536,_0x26a2d2),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'](_0x145001){this['commentInputView']['focus'](_0x145001);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x27518b,_0x39a8b9)=>{const {submitButtonView:_0x979d76,cancelButtonView:_0x34b1cf,editor:_0x5aafa5}=this['commentInputView'];[_0x979d76['element'],_0x34b1cf['element'],_0x5aafa5?_0x5aafa5['editing']['view']['getDomRoot']():null]['filter'](_0x1e21f8=>_0x1e21f8)['some'](_0x480af5=>_0x480af5['contains'](_0x39a8b9['target']))||(this['focus'](),_0x39a8b9['preventDefault']());});}}class cs extends kt{constructor(_0x1f278c){super(_0x1f278c);const _0x2da6fd=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2da6fd['to']('count',_0x453830=>E(_0x1f278c,'NUMBER_OF_COMMENTS',_0x453830))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x4fbe61,_0x4c6519,_0x1f166e){super(_0x4fbe61);const _0x2f775b=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x4c6519['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x4c6519,this['_config']=_0x1f166e,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x23af45(),this['keystrokes']=new jt(),this['focusCycler']=new _0x13d99f({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x51b807=>this['commentViews']['map'](_0xc6e7b2=>_0xc6e7b2['element'])['includes'](_0x51b807['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x4fbe61),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x3cb505=>_0x3cb505-this['_config']['maxCommentsWhenCollapsed']);for(const _0x19661f of _0x4c6519['comments'])this['_handleNewCommentModel'](_0x19661f);this['_handleInfoComment'](),this['listenTo'](_0x4c6519['comments'],'add',(_0x2e59af,_0x410cc4)=>{const _0x3fc829=this['_calculatePosition'](_0x410cc4);this['length']++,this['_handleNewCommentModel'](_0x410cc4,_0x3fc829),this['refreshVisibleViews']();}),this['listenTo'](_0x4c6519['comments'],'remove',(_0x3051eb,_0xd786c5)=>{this['length']--,this['_handleRemoveCommentModel'](_0xd786c5),this['refreshVisibleViews']();}),this['listenTo'](_0x4c6519,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x4c6519,'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',_0x2f775b['if']('length','ck-hidden',_0x228059=>!_0x228059)],'aria-label':E(_0x4fbe61,'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'](_0x663ffd){-0x1===_0x663ffd?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0xaa9dfe of this['commentViews'])_0xaa9dfe['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x254cd2,_0x51baea){const _0x439f84=new this['_config']['CommentView'](this['locale'],_0x254cd2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x439f84['viewUid']=_0x254cd2['id'],_0x439f84['delegate']('removeComment')['to'](this),_0x439f84['delegate']('updateComment')['to'](this),_0x439f84['delegate']('resolveCommentThread')['to'](this),_0x439f84['delegate']('editorReady')['to'](this),_0x439f84['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x439f84,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x439f84,_0x51baea);}['_calculatePosition'](_0xe77f22){const _0x52df36=this['_model']['_findOptimalIndex'](_0xe77f22);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0xe77f22['authoredAt']?_0x52df36-0x1:_0x52df36:_0x52df36-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x570df5={'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'],_0x570df5,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x570df5));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x32090a){const _0x187907=this['commentViews']['remove'](_0x32090a['id']);this['stopListening'](_0x187907),_0x187907['isEditMode']&&this['_updateHasDirtyComment'](),_0x187907['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2aa202=>_0x2aa202['isEditMode']);}['_rearrangeCollapse'](){const _0x1031b0=function(_0x20cda6){const _0x145b7c=new _0x104685();for(const _0x5b6043 of _0x20cda6)_0x145b7c['add'](_0x5b6043);return _0x145b7c;}(this['commentViews']),_0x462774=this['_collapsedCommentsView']['count'];for(let _0x29fbae=0x1;_0x29fbae<=_0x462774;_0x29fbae++)_0x1031b0['remove'](0x1);for(const _0x1fa6ec of _0x1031b0)_0x1fa6ec['collapse']();_0x462774>0x0&&_0x1031b0['add'](this['_collapsedCommentsView'],0x1),as(_0x2d9a31(Array['from'](this['visibleViews']),Array['from'](_0x1031b0)),this['visibleViews'],_0x1031b0);}['_rearrangeExpand'](){as(_0x2d9a31(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1ed50d of this['visibleViews'])_0x1ed50d['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4ae400=>{this['focusTracker']['add'](_0x4ae400['element']),this['keystrokes']['listenTo'](_0x4ae400['element']);}),this['commentViews']['on']('change',(_0x23fc69,_0xe0096d)=>{for(const _0x4d07c1 of _0xe0096d['removed'])this['focusTracker']['remove'](_0x4d07c1['element']),this['keystrokes']['stopListening'](_0x4d07c1['element']);for(const _0x461f02 of Array['from'](_0xe0096d['added'])['reverse']())this['focusTracker']['add'](_0x461f02['element']),this['keystrokes']['listenTo'](_0x461f02['element']);});}}function as(_0x4110e2,_0x40f83d,_0x1443a2){let _0xcca861=0x0;for(const _0x11a7c4 of _0x4110e2)switch(_0x11a7c4){case'insert':_0x40f83d['add'](_0x1443a2['get'](_0xcca861),_0xcca861),_0xcca861++;break;case'delete':_0x40f83d['remove'](_0xcca861);break;case'equal':_0xcca861++;}}class ls extends kt{constructor(_0x581071){super(_0x581071);const _0x34c5b9=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x34c5b9['to']('contextValue',_0xed68c3=>E(_0x581071,'THREAD_CONTEXT_LABEL',_0xed68c3)),'tabindex':-0x1},'children':[{'text':_0x34c5b9['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3e620f,_0x12ba6b){super(_0x3e620f);const _0x36a223=this['bindTemplate'];this['_model']=_0x12ba6b,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x23af45(),this['keystrokes']=new jt(),this['focusCycler']=new _0x13d99f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x513c15=>!!_0x513c15),this['bind']('contextValue')['to'](this['_model'],'context',_0x5491ab=>_0x5491ab&&_0x5491ab['value']?this['_trimContextValue'](_0x5491ab['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',_0x36a223['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 _0x2c1439=new _0x367ece(this['locale']);return _0x2c1439['label']=E(this['locale'],'Reopen'),_0x2c1439['tooltip']=E(this['locale'],'Reopen'),_0x2c1439['icon']=_0x50d6f8,_0x2c1439['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4984d1=>!_0x4984d1),_0x2c1439['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x58a9f4,_0x4f7bbc)=>_0x58a9f4&&_0x4f7bbc),_0x2c1439['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x2c1439;}['_trimContextValue'](_0x17ebca){if(_0x17ebca['length']<0x96)return _0x17ebca;const _0xbf23c8=_0x17ebca['lastIndexOf']('\x20',0x93);return _0x17ebca['substring'](0x0,_0xbf23c8>-0x1?_0xbf23c8:0x93)+'...';}['_attachContextActions'](){const _0x25685c=this['element']['querySelector']('.ck-context'),_0x14bbdd=_0x25685c['querySelector']('.ck-context__value');this['listenTo'](_0x25685c,'mouseenter',()=>{_0x14bbdd['offsetWidth']<_0x14bbdd['scrollWidth']&&_0x25685c['classList']['add']('overlay');}),this['listenTo'](_0x25685c,'mouseleave',()=>{_0x25685c['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3e9c99 of this['focusables'])this['focusTracker']['add'](_0x3e9c99['element']),this['keystrokes']['listenTo'](_0x3e9c99['element']);}['_createContextView'](){const _0x3698c4=new ls(this['locale']);return _0x3698c4['bind']('contextValue')['to'](this),_0x3698c4;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x44fc9a,_0x1d975c,_0x18748f,_0x4dde79){super(_0x44fc9a),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1d975c,this['_localUser']=_0x18748f,this['_config']=_0x4dde79,this['commentThreadHeaderView']=new Yt(_0x44fc9a,_0x1d975c),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x44fc9a,E(_0x44fc9a,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x44fc9a,_0x1d975c,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4dde79)),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',(_0x192304,_0x6119ce)=>_0x192304||!!_0x6119ce),this['bind']('isUnlinked')['to'](_0x1d975c,'unlinkedAt',_0x1da973=>!!_0x1da973),this['bind']('ariaLabel')['to'](this,'length',_0x3c9c36=>{const _0x12875e=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x3c9c36,_0x12875e]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x23af45(),this['keystrokes']=new jt(),this['focusCycler']=new _0x13d99f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x40cc86=>_0x40cc86['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x57541c=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x43773f=_0x57541c['commentInputView'];return _0x57541c['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x43773f,'value',(_0x3a0001,_0x447d4a,_0x450502,_0x5e5f8a,_0x70fb6)=>!!_0x70fb6||!!_0x5e5f8a&&_0x450502&&!_0x447d4a||_0x3a0001&&_0x450502&&!_0x447d4a),_0x43773f['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3b8e6c,_0x132f7c,_0x4f5eeb)=>{let _0x10c3c1;return _0x10c3c1=_0x4f5eeb&&_0x132f7c?'Reply\x20to\x20reopen\x20discussion...':_0x3b8e6c?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x10c3c1);}),_0x43773f['bind']('submitLabel')['to'](this,'length',_0x4185ef=>E(this['locale'],_0x4185ef?'Reply':'Comment')),_0x43773f['on']('submit',(_0x2f971f,_0x8c3331)=>{this['fire']('addComment',_0x8c3331),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x43773f['on']('cancel',()=>{this['focus']();}),_0x43773f['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x43773f['on']('cancel',_0x4104ec=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4104ec['stop']());}),this['on']('change:isActive',(_0x2ded3a,_0x543af5,_0x44333c)=>{_0x44333c||this['length']||_0x43773f['value']||this['fire']('removeCommentThread');}),_0x57541c;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x184e18,_0xee9373,_0x2ef406,_0x3998ed){super(_0x184e18,_0xee9373,_0x2ef406,_0x3998ed),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x184e18,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3e4f77,_0x49ca1d,_0x42abcc)=>{_0x42abcc||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x3d0ce9,_0x12a88c,_0xe4933f)=>{_0xe4933f&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x42c824=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x42c824['if']('isActive','ck-thread--active'),_0x42c824['if']('isUnlinked','ck-thread--unlinked'),_0x42c824['if']('isConfirm','ck-thread--remove-confirmation'),_0x42c824['to']('actionIndicator',_0x30b8d9=>_0x30b8d9?'ck-thread--'+_0x30b8d9:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x42c824['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 _0x3034ca of this['commentsListView']['commentViews'])_0x3034ca['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3b8baf}=this,_0x23a4b8=this['commentsListView']['commentViews']['get'](0x0);_0x23a4b8===this['_boundFirstCommentView']||_0x23a4b8['isSystemComment']||(this['_boundFirstCommentView']=_0x23a4b8,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x23a4b8,'actionIndicator',_0xe08cb0=>'remove'===_0xe08cb0?'remove':null),_0x23a4b8['placeholder']=E(_0x3b8baf,'Write\x20a\x20comment...'),_0x23a4b8['removeButton']['on']('execute',_0x245c60=>{_0x245c60['stop'](),this['showConfirm'](E(_0x3b8baf,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x23a4b8['focus']();}),_0x23a4b8['actionBar']['add'](this['resolveButton'],0x0),_0x23a4b8['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x4987c9=new _0x4094e9(this['locale']);return _0x4987c9['label']=E(this['locale'],'Resolve'),_0x4987c9['tooltip']=E(this['locale'],'Resolve'),_0x4987c9['icon']=_0x436e93,_0x4987c9['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x4987c9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4247af=>!_0x4247af),_0x4987c9['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2a7d28,_0x2a2fb7)=>_0x2a7d28&&!_0x2a2fb7),_0x4987c9['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x4987c9;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class os extends kt{constructor(_0x34fd1d){super(_0x34fd1d),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x1f8ab6,_0x561eb8,_0x509f28)=>{this['element']['innerHTML']=_0x509f28;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xc85e56,_0x184a2d,_0x42b90e){super(_0xc85e56),this['_model']=_0x184a2d,this['_config']=_0x42b90e,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x184a2d,'content',_0x184a2d,'authoredAt',(_0xf65d3d,_0x471569)=>E(_0xc85e56,'COMMENT_ARIA_LABEL',[_0x184a2d['author']['name'],_0x42b90e['formatDateTime'](_0x471569),new DOMParser()['parseFromString'](_0xf65d3d,'text/html')['body']['textContent'],_0x184a2d['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0xc85e56,E(_0xc85e56,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x245df5(),this['focusTracker']=new _0x23af45(),this['keystrokes']=new jt(),this['focusCycler']=new _0x13d99f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2d9cbb=>_0x2d9cbb['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 _0x492b88=new os(this['locale']);return _0x492b88['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x332352,_0x4823e4)=>_0x4823e4?_0xacdd3e(_0x332352,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x332352),_0x492b88;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x32f464=new hs(this['locale'],this['_config']['editorConfig']);return _0x32f464['value']=this['_model']['content'],_0x32f464['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x32f464['submitLabel']=E(this['locale'],'Save'),_0x32f464['on']('submit',(_0x382d41,_0x286630)=>{this['fire']('updateComment',this['_model']['id'],_0x286630),this['switchToDisplayMode'](),this['focus']();}),_0x32f464['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x32f464['once']('editorReady',()=>{_0x32f464['focus']();}),_0x32f464['createEditor'](),_0x32f464['delegate']('editorReady')['to'](this),_0x32f464['delegate']('editorDestroyed')['to'](this),_0x32f464;}['_setupKeyboardNavigation'](){const _0x3d40c2=this['element'];this['keystrokes']['listenTo'](_0x3d40c2);for(const _0x3803c1 of this['focusables'])this['focusTracker']['add'](_0x3803c1['element']),this['keystrokes']['listenTo'](_0x3803c1['element']);this['focusables']['on']('change',(_0xc522c8,_0x263586)=>{for(const _0x15ec25 of _0x263586['removed'])this['focusTracker']['remove'](_0x15ec25['element']),this['keystrokes']['stopListening'](_0x15ec25['element']);for(const _0x3c7935 of _0x263586['added'])this['focusTracker']['add'](_0x3c7935['element']),this['keystrokes']['listenTo'](_0x3c7935['element']);}),this['keystrokes']['set']('enter',(_0x1cb27d,_0x56941d)=>{_0x3d40c2===_0x1cb27d['target']&&(this['focusCycler']['focusFirst'](),_0x56941d());}),this['keystrokes']['set']('esc',(_0x3427f6,_0x541bb4)=>{_0x3d40c2!==_0x3427f6['target']&&(this['focus'](),_0x541bb4());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0x21d23a,_0x1bb5f4,_0x7a2b1f){super(_0x21d23a,_0x1bb5f4,_0x7a2b1f),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x21d23a,'Reply...')),this['bind']('authoredAt')['to'](_0x1bb5f4),this['bind']('resolvedAt')['to'](_0x1bb5f4),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 _0x2b24da(_0x21d23a,_0x1bb5f4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x1bb5f4,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x49c681=this['bindTemplate'],_0x1482df=[{'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':_0x49c681['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49c681['to']('authoredAt',_0x362d59=>this['_config']['formatDateTime'](_0x362d59))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x49c681['if']('isEditMode','ck-comment__actions--hidden'),_0x49c681['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']&&_0x1482df['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x49c681['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x49c681['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x49c681['if']('isEditMode','ck-comment--edit'),_0x49c681['if']('isSystemComment','ck-comment--info'),_0x49c681['to']('actionIndicator',_0x4799dc=>_0x4799dc?'ck-comment--'+_0x4799dc:'')],'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':_0x1482df}]}]};}['_createEditButton'](){const _0x1c75b0=new _0x367ece(this['locale']);return _0x1c75b0['label']=E(this['locale'],'Edit'),_0x1c75b0['icon']=_0x3acb6e,_0x1c75b0['withText']=!0x0,_0x1c75b0['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1c75b0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x58dd3d=>!_0x58dd3d),_0x1c75b0['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1c75b0['on']('execute',()=>this['switchToEditMode']()),_0x1c75b0;}['_createRemoveButton'](){const _0x36029a=new _0x367ece(this['locale']);return _0x36029a['label']=E(this['locale'],'Remove'),_0x36029a['icon']=_0x41b314,_0x36029a['withText']=!0x0,_0x36029a['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x36029a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x499e2f=>!_0x499e2f),_0x36029a['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x36029a['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x36029a;}['_createDropdown'](){const _0x30727d=_0x370620(this['locale'],_0x7adfe0),_0x977930=_0x30727d['panelView']['children'],_0x39f4f7=new _0xfe4ad3(this['locale']),_0x52de25=_0x30727d['bindTemplate'];_0x599507(_0x30727d,()=>this['items']['find'](_0x4bc647=>_0x4bc647['isVisible'])),_0x30727d['extendTemplate']({'attributes':{'class':[_0x52de25['if']('isVisible','ck-hidden',_0x7fec7c=>!_0x7fec7c)]}});const _0x27ba4c=(_0x2af862,_0x95f4ad=-0x1)=>{const _0x3a7033=new _0x17a3b1(this['locale']);_0x3a7033['children']['add'](_0x2af862);const _0x5f9dbf=_0x95f4ad>-0x1?_0x95f4ad:_0x39f4f7['items']['length'];_0x39f4f7['items']['add'](_0x3a7033,_0x5f9dbf);const _0x1c702c=Array['from'](this['items']);_0x30727d['unbind']('isEnabled','isVisible'),_0x30727d['bind']('isEnabled')['toMany'](_0x1c702c,'isEnabled',(..._0x47cd2f)=>_0x47cd2f['some'](_0x409b9f=>_0x409b9f)),_0x30727d['bind']('isVisible')['toMany'](_0x1c702c,'isVisible',(..._0x312a29)=>_0x312a29['some'](_0x5b970b=>_0x5b970b));};_0x30727d['panelPosition']='sw',_0x30727d['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x5e7bde});for(const _0x3f2865 of this['items'])_0x27ba4c(_0x3f2865);return _0x977930['add'](_0x39f4f7),_0x30727d['listenTo'](this['items'],'add',(_0x4a28f0,_0x3768c1,_0x40483f)=>{_0x27ba4c(_0x3768c1,_0x40483f);}),_0x30727d['listenTo'](this['items'],'remove',(_0x54d961,_0x81d24b,_0x111472)=>{_0x39f4f7['items']['remove'](_0x111472);}),_0x30727d;}['_attachActions'](_0x4e043e,_0x3760c1){const _0x3f8485=_0x4e043e&&_0x4e043e['element'];_0x3f8485&&(this['listenTo'](_0x3f8485,'mouseenter',()=>this['actionIndicator']=_0x3760c1),this['listenTo'](_0x3f8485,'focus',()=>this['actionIndicator']=_0x3760c1),this['listenTo'](_0x3f8485,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3f8485,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x1c949d=super['_createCommentInputView']();return _0x1c949d['bind']('placeholder')['to'](this),_0x1c949d;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x1a5cb4){const _0x56e6e7=Dt(_0x1a5cb4,0x1e),_0x2fe49c=new MutationObserver(_0x358370=>{for(const _0x30a239 of _0x358370)('attributes'==_0x30a239['type']&&'class'==_0x30a239['attributeName']||'childList'==_0x30a239['type']||'characterData'==_0x30a239['type'])&&_0x56e6e7();});return{'attach'(_0x543d7c){_0x2fe49c['observe'](_0x543d7c,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2fe49c['disconnect'](),_0x56e6e7['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x23588d,_0x462ae4){super(_0x23588d),this['id']=_0xad4cb1(),this['focusTracker']=new _0x23af45(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x4f0042,_0x299a8f)=>this['fire']('Esc',_0x299a8f)),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'](_0x462ae4),this['mainView']=_0x462ae4;const _0x48b0d4=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x48b0d4['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 _0x1fbdfe=this['element']['clientHeight'];_0x1fbdfe&&(this['height']=_0x1fbdfe);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x56605d(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x5ae02a,target:_0x1c3d0b,type:_0x29d408,isVisible:_0x5b2e78=!0x0}){super(),this['view']=_0x5ae02a,this['view']['element']||this['view']['render'](),this['_type']=_0x29d408,this['_target']=_0x1c3d0b,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x104685([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x291254,_0x541eb5)=>{this['view']['focusTracker']['add'](_0x541eb5);}),this['focusableElements']['on']('remove',(_0x3737b1,_0x97f4ad)=>{this['view']['focusTracker']['remove'](_0x97f4ad);}),this['set']('isVisible',_0x5b2e78);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x4c8945=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x4c8945),_0x4c8945;}get['targetRect'](){const _0x454049=this['target'];if(null===_0x454049)return null;if(_0x454049 instanceof _0x272831)return _0x454049;const _0x1152c4=_0x454049['filter'](_0x96bfc4=>function(_0x3975d5){const _0x2d368b=_0x3975d5['offsetParent'];if(_0x2d368b)return!0x0;const _0x5ea904=_0x3975d5['getClientRects']()['item'](0x0);return!!_0x5ea904;}(_0x96bfc4));return 0x0===_0x1152c4['length']?null:new _0x272831(_0x1152c4[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x952dc3){this['view']['isActive']=_0x952dc3,this['view']['mainView']['isActive']=_0x952dc3;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xfa97ab){if(!(null===_0xfa97ab||_0xfa97ab instanceof _0x272831||Array['isArray'](_0xfa97ab)&&_0xfa97ab['every'](_0x194607=>li(_0x194607))))throw new _0x3b855d('annotation-invalid-target',null,{'target':_0xfa97ab});}['_getNormalizedTarget'](){const _0x1289d3='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x1289d3)?[_0x1289d3]:_0x1289d3;}}function li(_0x87a163){return null!==_0x87a163&&'object'==typeof _0x87a163&&'nodeType'in _0x87a163&&0x1===_0x87a163['nodeType'];}class _ extends _0x104685{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2fa681=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x23af45(),this['_focusTracker']['on']('change:isFocused',(_0x4c39d9,_0x501e94,_0xe4c5ae)=>{_0xe4c5ae||this['fire']('blur');});for(const _0x196648 of _0x2fa681)this['add'](_0x196648);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x35856d){if(this['has'](_0x35856d))throw new _0x3b855d('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x35856d['innerView'],_0x35856d),this['_viewToAnnotation']['set'](_0x35856d['view'],_0x35856d);for(const _0x1d882f of _0x35856d['focusableElements'])this['_focusTracker']['add'](_0x1d882f);this['listenTo'](_0x35856d['focusableElements'],'add',(_0x3a343d,_0x5813a3)=>{this['_focusTracker']['add'](_0x5813a3);}),this['listenTo'](_0x35856d['focusableElements'],'remove',(_0x828b1e,_0x2e3d3f)=>{this['_focusTracker']['remove'](_0x2e3d3f);}),this['listenTo'](_0x35856d['view']['focusTracker'],'change:isFocused',(_0x43376d,_0x23a05d,_0x338fa5)=>{_0x338fa5&&this['fire']('focus',_0x35856d);}),_0x35856d['updateTargetRect']();const _0x5b7489=this['_getOrderInContent'](_0x35856d['view']['targetRect']);return super['add'](_0x35856d,_0x5b7489);}['remove'](_0x4b4902){if(!this['has'](_0x4b4902))throw new _0x3b855d('annotationcollection-not-existing-item',null);this['stopListening'](_0x4b4902['view']['focusTracker']),this['stopListening'](_0x4b4902['focusableElements']);for(const _0x54e893 of _0x4b4902['focusableElements'])this['_focusTracker']['remove'](_0x54e893);return this['_viewToAnnotation']['delete'](_0x4b4902['view']),this['_innerViewToAnnotation']['delete'](_0x4b4902['innerView']),super['remove'](_0x4b4902);}['getByInnerView'](_0x486d8a){return this['_innerViewToAnnotation']['get'](_0x486d8a);}['getByView'](_0x70e193){return this['_viewToAnnotation']['get'](_0x70e193);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x3953cc of this)_0x3953cc['updateTargetRect']();this['_sort']();}['_sort'](){const _0x56bd6b=Array['from'](this)['sort']((_0x1492b8,_0x51661f)=>v(_0x1492b8['view']['targetRect'],_0x51661f['view']['targetRect']));for(let _0x19759f=_0x56bd6b['length']-0x1;_0x19759f>0x0;_0x19759f--){const _0x76eeb8=_0x56bd6b[_0x19759f];_0x19759f!==this['getIndex'](_0x76eeb8)&&(this['remove'](_0x76eeb8),this['add'](_0x76eeb8));}}['_getOrderInContent'](_0x25758d){let _0x578741=0x0;if(!_0x25758d)return this['length'];for(const _0x5a7c5e of this){const _0x211d7b=_0x5a7c5e['view']['targetRect'];if(_0x211d7b){if(v(_0x25758d,_0x211d7b)<0x0)return _0x578741;_0x578741++;}}return _0x578741;}}function v(_0x2edce9,_0x106b5b){if(null===_0x2edce9&&null===_0x106b5b)return 0x0;if(null===_0x2edce9)return-0x1;if(null===_0x106b5b)return 0x1;const _0xd4a536=_0x2edce9['top']-_0x106b5b['top'];return 0x0==_0xd4a536?_0x2edce9['left']-_0x106b5b['left']:_0xd4a536;}class O extends _0x18f184{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38144a){if(super(_0x38144a),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x38144a instanceof _0xac8302){const _0x2a1b7a=_0x38144a['locale'];_0x38144a['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x2a1b7a,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x2a1b7a,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x2a1b7a,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x2a1b7a,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x2a1b7a,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x2a1b7a,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x2a1b7a,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0xa7d5cf){this['collection']['add'](_0xa7d5cf);}['remove'](_0x26bd7e){this['collection']['remove'](_0x26bd7e),_0x26bd7e['destroy']();}['refreshVisibility'](){for(const _0x568079 of this['collection'])_0x568079['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x229146){return this['collection']['getByInnerView'](_0x229146);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x5316e6 of this['collection'])_0x5316e6['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x173ef2){this['fire']('_activateAnnotation',_0x173ef2);}['createAnnotation'](_0x173ee2){return new d(_0x173ee2);}['createAnnotationView'](_0x13d9af,_0x4b7fb2){return new S(_0x13d9af,_0x4b7fb2);}['_addActiveAnnotation'](_0x5196df){const _0xb4e11c=new Set(this['activeAnnotations']);_0xb4e11c['add'](_0x5196df),this['activeAnnotations']=_0xb4e11c;}['_removeActiveAnnotation'](_0x12f911){const _0x283ce4=new Set(this['activeAnnotations']);_0x283ce4['delete'](_0x12f911),this['activeAnnotations']=_0x283ce4;}['_bindAnnotationsToVisibleAnnotations'](){const _0x52f031=this['collection'],_0x1a7f7a=this['_visibleAnnotations'];function _0x28531b(_0x382ad0){const _0x60013=_0x382ad0['source'];_0x60013['isVisible']&&!_0x1a7f7a['has'](_0x60013)?_0x1a7f7a['add'](_0x60013):!_0x60013['isVisible']&&_0x1a7f7a['has'](_0x60013)&&_0x1a7f7a['remove'](_0x60013),_0x60013['view']['focusTracker']['remove'](_0x60013['view']['element']),_0x60013['view']['focusTracker']['add'](_0x60013['view']['element']);}this['listenTo'](_0x52f031,'add',(_0x363e9e,_0x5914dc)=>{_0x5914dc['isVisible']&&_0x1a7f7a['add'](_0x5914dc),this['listenTo'](_0x5914dc,'change:isVisible',_0x28531b);}),this['listenTo'](_0x52f031,'remove',(_0x35d199,_0x2c66b9)=>{_0x1a7f7a['has'](_0x2c66b9)&&_0x1a7f7a['remove'](_0x2c66b9),this['stopListening'](_0x2c66b9,'change:isVisible',_0x28531b);});}['_setupEnterAnnotationKeystroke'](){const _0x49b9c4=_0x5a21c6=>{_0x5a21c6['on']('ready',()=>{_0x5a21c6['keystrokes']['set'](_0x549d4b,(_0x57d25c,_0x447b5c)=>{const _0x2d29f3=_0x2bd294(this['activeAnnotations']['values']());_0x2d29f3&&(_0x2d29f3['view']['focus'](),_0x447b5c());});});};this['context']instanceof _0xac8302?_0x49b9c4(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1e9168,_0xe20833)=>{_0x49b9c4(_0xe20833);});}['_setupEscapeAnnotationHandling'](){const _0x256eb3=_0x39ea98=>{const _0x8c89b2=_0x39ea98['source'],_0x2de83f=[];let _0x4b2f7f;if(Array['isArray'](_0x8c89b2['target'])){_0x4b2f7f=_0x8c89b2['target'][0x0],this['context']instanceof _0xac8302?_0x2de83f['push'](this['context']):this['context']['editors']&&_0x2de83f['push'](...this['context']['editors']);for(const _0x716625 of _0x2de83f)for(const _0x3b0952 of _0x716625['editing']['view']['domRoots']['values']())if(_0x3b0952['contains'](_0x4b2f7f))return void _0x716625['editing']['view']['focus']();_0x4b2f7f['focus']();}};this['listenTo'](this['collection'],'add',(_0x226fcf,_0x32b469)=>{this['listenTo'](_0x32b469,'escape',_0x256eb3,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1ccb24,_0x2acabc)=>{this['stopListening'](_0x2acabc,'escape',_0x256eb3);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x18f184{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[O,lt,st];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f2671){super(_0x1f2671),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x32e975=this['context']['config'];_0x32e975['define']('comments.maxCommentsWhenCollapsed',0x2),_0x32e975['define']('comments.maxThreadTotalWeight',0x1f4),_0x32e975['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x32e975['define']('comments.CommentThreadView',gt),_0x32e975['define']('comments.CommentView',Tt),_0x32e975['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x4a8108=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x1602a4,_0x34ea90)=>this['_addCommentThread'](_0x34ea90)),this['on']('submitCommentThread',(_0xc21691,_0x1fdf5c)=>this['_submitCommentThread'](_0x1fdf5c)),this['on']('resolveCommentThread',(_0x4167da,_0x49d4ee)=>this['_resolveCommentThread'](_0x49d4ee)),this['on']('resolveCommentThread',(_0xefb658,_0x53aee8)=>this['_updateActiveAnnotation'](_0x53aee8),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x533cec,_0x11b398)=>this['_reopenCommentThread'](_0x11b398)),this['on']('reopenCommentThread',(_0x270591,_0x1d9bb2)=>this['_updateActiveAnnotation'](_0x1d9bb2),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x52d4b5,_0x20eef3)=>this['_removeCommentThread'](_0x20eef3)),this['on']('updateCommentThread',(_0x813210,_0x243718)=>this['_updateCommentThread'](_0x243718)),this['on']('updateCommentThread',(_0x36c55c,_0x75a04d)=>this['_updateActiveAnnotation'](_0x75a04d),{'priority':'lowest'}),this['on']('addComment',(_0x252a79,_0x10568a)=>this['_addComment'](_0x10568a)),this['on']('updateComment',(_0xba7de6,_0x5892c8)=>this['_updateComment'](_0x5892c8)),this['on']('removeComment',(_0x3b3e11,_0x435c83)=>this['_removeComment'](_0x435c83)),this['on']('addComment',(_0x1e790d,{threadId:_0xf87707,isFromAdapter:_0x46121a})=>{if(_0x46121a)return;const _0x4a58a5=this['getCommentThread'](_0xf87707),_0x5d3fde=_0x4a58a5&&this['_threadToController']['get'](_0x4a58a5);_0x5d3fde&&_0x5d3fde['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x4a8108,'change:activeAnnotations',(_0x41b8a5,_0x8bae49,_0x138230)=>{const _0x21acb8=Array['from'](_0x138230)['map'](_0x4f2fb8=>this['_viewToController']['get'](_0x4f2fb8['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x21acb8?_0x21acb8['model']:null;});}set['adapter'](_0x2e40c0){if(this['_adapter'])throw new _0x3b855d('commentsrepository-adapter-already-set');this['_adapter']=_0x2e40c0;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5a4e83=_t,threadId:_0x1d4f72=_0xad4cb1(),comments:_0x180ca6=[],unlinkedAt:_0x12668e=null,resolvedAt:_0x47d67c=null,resolvedBy:_0x1c8d9d=null,target:_0x38c4cf=null,context:_0x5efa6e=null,attributes:_0xefe4fc={},isResolvable:_0x3fd51f=!0x0,isSubmitted:_0xcdcbaf=!0x1,isFromAdapter:_0x388684=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x5a4e83),{'channelId':_0x5a4e83,'threadId':_0x1d4f72,'comments':_0x180ca6,'unlinkedAt':_0x12668e,'resolvedAt':_0x47d67c,'resolvedBy':_0x1c8d9d,'target':_0x38c4cf,'context':_0x5efa6e,'attributes':_0xefe4fc,'isFromAdapter':_0x388684,'isResolvable':_0x3fd51f,'isSubmitted':_0xcdcbaf}),this['getCommentThread'](_0x1d4f72);}['openNewCommentThread']({channelId:_0x270b3a=_t,threadId:_0x38c7ee=_0xad4cb1(),target:_0x53112c,context:_0x3f79f5=null,isResolvable:_0x1838aa=!0x0}){if(this['_readOnlyChannels']['has'](_0x270b3a)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x53112c)throw new _0x3b855d('commentsrepository-missing-target');const _0x5ce6d7=this['addCommentThread']({'channelId':_0x270b3a,'threadId':_0x38c7ee,'target':_0x53112c,'context':_0x3f79f5,'isResolvable':_0x1838aa});if(!_0x5ce6d7)return null;const _0x55a717=this['_threadToController']['get'](_0x5ce6d7),_0x506e96=_0x55a717['view']['commentThreadInputView']['commentInputView'],_0x426640=this['context']['plugins']['get'](O),_0x1cb3c4=_0x426640['getByInnerView'](_0x55a717['view']);return _0x426640['activate'](_0x1cb3c4),_0x506e96['once']('editorReady',()=>_0x506e96['focus']()),_0x5ce6d7;}['hasCommentThread'](_0x2535ee){if('string'!=typeof _0x2535ee)throw new _0x3b855d('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2535ee);}['updateCommentThread']({channelId:_0x540941=_t,threadId:_0x419fa9,context:_0x3973ed,unlinkedAt:_0x12510f,attributes:_0x459ed2,isFromAdapter:_0x246691=!0x1}){return this['fire'](Nt('updateCommentThread',_0x540941),{'channelId':_0x540941,'threadId':_0x419fa9,'context':_0x3973ed,'unlinkedAt':_0x12510f,'attributes':_0x459ed2,'isFromAdapter':_0x246691}),this['getCommentThread'](_0x419fa9);}['getCommentThread'](_0x6d2533){if('string'!=typeof _0x6d2533)throw new _0x3b855d('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x6d2533);}['fetchCommentThread']({channelId:_0x98b7cb,threadId:_0x371b1e}={}){const _0x2ea263=this['getCommentThread'](_0x371b1e);if(_0x2ea263)return Promise['resolve'](_0x2ea263);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3b855d('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x98b7cb,'threadId':_0x371b1e})['then'](_0x52c2cb=>this['hasCommentThread'](_0x371b1e)?this['getCommentThread'](_0x371b1e):_0x52c2cb?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x98b7cb},_0x52c2cb)):void 0x0)['catch'](_0x14e64c=>{throw console['error'](_0x14e64c),new _0x3b855d('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x2377e9,skipNotAttached:_0xb3dd38=!0x1,skipEmpty:_0x568d2a=!0x1,toJSON:_0x5e3271=!0x1}={}){const _0x5822bb=[];for(const _0xd3582b of this['_threads']['values']())_0x2377e9&&_0xd3582b['channelId']!==_0x2377e9||_0xb3dd38&&!_0xd3582b['isAttached']||_0x568d2a&&0x0===_0xd3582b['length']||_0x5822bb['push'](_0xd3582b);return _0x5e3271?_0x5822bb['map'](_0x30ab6d=>_0x30ab6d['toJSON']()):_0x5822bb;}['setActiveCommentThread'](_0x476d5b){const _0x47037a=this['context']['plugins']['get'](O);if(!_0x476d5b)return void(this['activeCommentThread']&&_0x47037a['deactivateAll']());const _0x37f7c4=this['getCommentThread'](_0x476d5b);if(!_0x37f7c4)throw new _0x3b855d('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x476d5b});if(!this['_threadToController']['has'](_0x37f7c4))throw new _0x3b855d('commentsrepository-active-not-attached',null,{'threadId':_0x476d5b});const _0x5ef153=_0x47037a['getByInnerView'](this['_threadToController']['get'](_0x37f7c4)['view']);_0x47037a['activate'](_0x5ef153);}['switchReadOnly'](_0x3c1e79,_0x29f9eb){_0x3c1e79?this['_readOnlyChannels']['add'](_0x29f9eb):this['_readOnlyChannels']['delete'](_0x29f9eb),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x5a8936){return this['_readOnlyChannels']['has'](_0x5a8936)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x56f420,_0x5ac6a1){return new vt(_0x56f420,_0x5ac6a1);}['setPermissions'](_0xead98c,_0x2bc348=_t){this['_permissions']['set'](_0x2bc348,_0xead98c),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2e670f=_t){return this['_permissions']['has'](_0x2e670f)?this['_permissions']['get'](_0x2e670f):bt;}['_addCommentThread']({channelId:_0x2f96b6,threadId:_0x2393a7,comments:_0x568b86,unlinkedAt:_0x35fdc8,resolvedAt:_0x3ec282,resolvedBy:_0x400006,target:_0x4b7771,context:_0x4566e5,attributes:_0x30302a,isFromAdapter:_0x1ffb8c,isResolvable:_0x8f0776,isSubmitted:_0x4e7c26}){if('string'!=typeof _0x2393a7)throw new _0x3b855d('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2393a7});if(this['hasCommentThread'](_0x2393a7))throw new _0x3b855d('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x2393a7});const _0x5c37a4=new ui(this,{'channelId':_0x2f96b6,'id':_0x2393a7,'context':_0x4566e5,'attributes':_0x30302a,'unlinkedAt':_0x35fdc8,'resolvedAt':_0x3ec282,'resolvedBy':_0x400006?this['context']['plugins']['get'](st)['getUser'](_0x400006):null,'isResolvable':_0x8f0776,'isSubmitted':_0x4e7c26||_0x1ffb8c});this['_threads']['set'](_0x2393a7,_0x5c37a4);for(const _0x491169 of _0x568b86)_0x5c37a4['_add'](this['_createNewComment']({'threadId':_0x2393a7,..._0x491169}));return _0x4b7771&&_0x5c37a4['attachTo'](_0x4b7771),_0x1ffb8c||!_0x5c37a4['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x2f96b6,'threadId':_0x2393a7});}['_submitCommentThread']({channelId:_0x3358cd,threadId:_0x3fd2b5}){if(!this['hasCommentThread'](_0x3fd2b5))throw new _0x3b855d('commentsrepository-missing-comment-thread',this);const _0x159769=this['getCommentThread'](_0x3fd2b5);if(_0x159769['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x120939,comments:_0x5f1db8,resolvedAt:_0x70bb36,resolvedBy:_0x5014cc,context:_0x470105,attributes:_0x43b60c}=_0x159769,_0x556a08=this['context']['plugins']['get']('PendingActions'),_0xd36bab=_0x556a08['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x3358cd,'threadId':_0x120939,'comments':_0x5f1db8['map'](_0x2b2c76=>_0x2b2c76['toJSON']()),'resolvedAt':_0x70bb36,'resolvedBy':_0x5014cc?_0x5014cc['id']:_0x5014cc,'context':_0x470105,'attributes':_0x43b60c})['then'](({comments:_0x2a1a3c})=>{_0x556a08['remove'](_0xd36bab);for(const _0xf9f320 of _0x2a1a3c)this['_updateComment']({'channelId':_0x3358cd,'threadId':_0x3fd2b5,'commentId':_0xf9f320['commentId'],'createdAt':_0xf9f320['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x338037=>{throw console['error'](_0x338037),new _0x3b855d('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x5d7687,target:_0x2e5c8c}){const _0x3e2b1a=this['getCommentThread'](_0x5d7687);if(!_0x3e2b1a)throw new _0x3b855d('commentsrepository-attach-missing-comment-thread',this);const _0x252a1b=this['context']['plugins']['get']('PendingActions'),_0x4270e4=this['context']['plugins']['get'](O),_0x155315=this['_createCommentThreadView'](_0x3e2b1a),_0x347eff=new vt(_0x3e2b1a,_0x155315);let _0x182518=null;_0x155315['on']('change:isDirty',(_0x29faf5,_0x52b1e9,_0x3e2dbb)=>{_0x3e2dbb?_0x182518=_0x252a1b['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x182518&&(_0x252a1b['remove'](_0x182518),_0x182518=null);}),this['_threadToController']['set'](_0x3e2b1a,_0x347eff),this['_viewToController']['set'](_0x155315,_0x347eff);const _0x1fb14e=new S(this['context']['locale'],_0x155315);_0x1fb14e['bind']('length')['to'](_0x155315),_0x1fb14e['bind']('isDirty')['to'](_0x155315,'isDirty',_0x155315,'length',(_0x3ec014,_0x36b60e)=>_0x3ec014||!_0x36b60e),_0x1fb14e['bind']('isActive')['to'](_0x155315),_0x1fb14e['type']='comment';const _0x27f9ee=new d({'view':_0x1fb14e,'target':_0x2e5c8c,'type':'comment','isVisible':!_0x3e2b1a['archivedAt']});return _0x155315['on']('escape',()=>{_0x27f9ee['fire']('escape');}),this['_bindAnnotationToEditors'](_0x155315,_0x27f9ee),_0x4270e4['add'](_0x27f9ee),_0x27f9ee;}['_bindAnnotationToEditors'](_0x1f0d64,_0x32ce4f){this['listenTo'](_0x1f0d64,'editorReady',(_0xcc6dfd,_0xdcc370)=>{const _0x286773=_0xdcc370['ui']['view']['body']['bodyCollectionContainer'];_0x32ce4f['focusableElements']['add'](_0x286773),this['context']instanceof _0xac8302&&this['context']['ui']['focusTracker']['add'](_0x286773);},{'priority':'highest'}),this['listenTo'](_0x1f0d64,'editorDestroyed',(_0x472c48,_0x57b2e3)=>{const _0x140112=_0x57b2e3['ui']['view']['body']['bodyCollectionContainer'];_0x32ce4f['focusableElements']['has'](_0x140112)&&_0x32ce4f['focusableElements']['remove'](_0x140112),this['context']instanceof _0xac8302&&this['context']['ui']['focusTracker']['remove'](_0x140112);});}['_unbindEditors'](_0x16b4d4){this['stopListening'](_0x16b4d4,'editorReady'),this['stopListening'](_0x16b4d4,'editorDestroyed');}['_createCommentThreadView'](_0x29b43c){const _0x6b70a4=this['context']['plugins']['get'](st),{config:_0x16afb4,locale:_0x5b2029}=this['context'],_0x242a13=pt(_0x16afb4['get']('locale'),_0x5b2029);return new(0x0,(_0x16afb4['get']('comments'))['CommentThreadView'])(_0x5b2029,_0x29b43c,_0x6b70a4['me'],{'editorConfig':{..._0x16afb4['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x16afb4['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x16afb4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x16afb4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x16afb4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x242a13,'CommentView':_0x16afb4['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5d0bf3,channelId:_0x375f31,resolvedAt:_0x59204c,resolvedBy:_0xfdd4f9,isFromAdapter:_0x356b14}){if(!this['hasCommentThread'](_0x5d0bf3))throw new _0x3b855d('commentsrepository-missing-comment-thread',null,{'threadId':_0x5d0bf3});const _0x2630fe=this['getCommentThread'](_0x5d0bf3);if(_0x2630fe['isResolved'])throw new _0x3b855d('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5d0bf3});const _0x45e2b3=this['context']['plugins']['get'](st);if(_0x2630fe['resolvedBy']=_0x45e2b3['getUser'](_0xfdd4f9),_0x2630fe['resolvedAt']=_0x59204c,_0x356b14||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x1a4f98=this['context']['plugins']['get']('PendingActions'),_0x330c19=_0x1a4f98['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x375f31,'threadId':_0x5d0bf3})['then'](({resolvedAt:_0x5c878d,resolvedBy:_0x549942})=>{_0x1a4f98['remove'](_0x330c19),_0x2630fe['resolvedBy']['id']!==_0x549942&&(_0x2630fe['resolvedBy']=_0x45e2b3['getUser'](_0x549942)),_0x2630fe['resolvedAt']=_0x5c878d;})['catch'](_0x12b250=>{throw console['error'](_0x12b250),new _0x3b855d('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1a9bee,channelId:_0x3706ad,isFromAdapter:_0x1f9460}){if(!this['hasCommentThread'](_0x1a9bee))throw new _0x3b855d('commentsrepository-missing-comment-thread',null,{'threadId':_0x1a9bee});const _0x4cd841=this['getCommentThread'](_0x1a9bee);if(!_0x4cd841['isResolved'])throw new _0x3b855d('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1a9bee});if(_0x4cd841['resolvedBy']=null,_0x4cd841['resolvedAt']=null,_0x1f9460||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x58012c=this['context']['plugins']['get']('PendingActions'),_0x310cd8=_0x58012c['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x3706ad,'threadId':_0x1a9bee})['then'](()=>_0x58012c['remove'](_0x310cd8))['catch'](_0x43e52b=>{throw console['error'](_0x43e52b),new _0x3b855d('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x9758ed,isFromAdapter:_0x6e67c}){const _0x3843c6=this['getCommentThread'](_0x9758ed);if(!_0x3843c6)throw new _0x3b855d('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x9758ed),this['_threads']['delete'](_0x9758ed),!_0x3843c6['isSubmitted']||_0x6e67c||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x25e00d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x57538f}=_0x3843c6,_0x5dc5a3=_0x25e00d['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x57538f,'threadId':_0x9758ed})['then'](()=>_0x25e00d['remove'](_0x5dc5a3))['catch'](_0x340e04=>{throw console['error'](_0x340e04),new _0x3b855d('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4460f2,unlinkedAt:_0x48d246,context:_0x5e17d2,attributes:_0x52cddc,isFromAdapter:_0xcde87c}){if('string'!=typeof _0x4460f2)throw new _0x3b855d('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4460f2});if(!this['hasCommentThread'](_0x4460f2))throw new _0x3b855d('commentsrepository-missing-comment-thread',null,{'threadId':_0x4460f2});const _0x51e9c8=this['getCommentThread'](_0x4460f2);let _0x234307=!0x1;if(void 0x0!==_0x5e17d2&&_0x51e9c8['context']!==_0x5e17d2&&(_0x51e9c8['context']=_0x5e17d2,_0x234307=!0x0),void 0x0!==_0x48d246&&_0x51e9c8['unlinkedAt']!==_0x48d246&&(_0x51e9c8['unlinkedAt']=_0x48d246,_0x234307=!0x0),_0x52cddc&&!At(_0x52cddc,_0x51e9c8['attributes'])&&(_0x51e9c8['attributes']=_0x52cddc,_0x234307=!0x0),!_0x234307)return Promise['resolve']();if(!_0x51e9c8['isSubmitted']||_0xcde87c||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x561be6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2abc8a}=_0x51e9c8,_0x4ebed6=_0x561be6['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x2abc8a,'threadId':_0x4460f2,'context':_0x5e17d2,'unlinkedAt':_0x48d246,'attributes':_0x52cddc})['then'](()=>_0x561be6['remove'](_0x4ebed6))['catch'](_0x283ee8=>{throw console['error'](_0x283ee8),new _0x3b855d('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x8c5d2d){const _0x4c66ed=this['context']['plugins']['get'](O),_0x3c5747=this['getCommentThread'](_0x8c5d2d);if(_0x3c5747['_isAttached']=!0x1,this['_threadToController']['has'](_0x3c5747)){const _0x415e8d=this['_threadToController']['get'](_0x3c5747),_0x515c10=_0x415e8d['view'],_0x27720d=_0x4c66ed['getByInnerView'](_0x515c10);this['_threadToController']['delete'](_0x3c5747),this['_viewToController']['delete'](_0x515c10),_0x27720d&&_0x4c66ed['remove'](_0x27720d),_0x415e8d['destroy'](),_0x515c10['destroy']()['then'](()=>{this['_unbindEditors'](_0x515c10);});}}['_updateActiveAnnotation']({threadId:_0x292d56,resolvedAt:_0x1581e7,unlinkedAt:_0x53d603}){const _0x1781d7=!!_0x1581e7,_0x20ec3b=this['context']['plugins']['get'](O),_0x2a41ff=this['getCommentThread'](_0x292d56);if(this['_threadToController']['has'](_0x2a41ff)){const _0x58f5d3=this['_threadToController']['get'](_0x2a41ff)['view'],_0x567dc2=_0x20ec3b['getByInnerView'](_0x58f5d3);_0x567dc2&&(_0x1781d7&&_0x20ec3b['_removeActiveAnnotation'](_0x567dc2),_0x53d603?_0x567dc2['isVisible']=!0x1:_0x567dc2['refreshVisibility']());}}['_getExternalAuthor'](_0x4ec3a4){const _0x49ff84=this['context']['plugins']['get'](st),_0x41707d=It('external:'+_0x4ec3a4),_0x4dfcc0=_0x49ff84['getUser'](_0x41707d);return _0x4dfcc0||_0x49ff84['addUser']({'id':_0x41707d,'name':_0x4ec3a4});}['_createNewComment']({threadId:_0xe93161,commentId:_0xba3d9d=_0xad4cb1(),content:_0x39c09b,authorId:_0xc1b9ec,createdAt:_0x3a3e92,attributes:_0x10ec56}){if('string'!=typeof _0xba3d9d)throw new _0x3b855d('commentsrepository-invalid-commentid');if('string'!=typeof _0xc1b9ec)throw new _0x3b855d('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x39c09b||!_0x39c09b['trim']())throw new _0x3b855d('commentsrepository-invalid-comment-content');const _0x1c4e3b=this['context']['plugins']['get'](st)['getUser'](_0xc1b9ec);if(!_0x1c4e3b)throw new _0x3b855d('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0xc1b9ec});let _0x4dec83=null,_0x35e771=_0x3a3e92;return _0x10ec56?.['@external']&&(_0x4dec83=this['_getExternalAuthor'](_0x10ec56['@external']['authorName']),_0x35e771=new Date(_0x10ec56['@external']['createdAt'])),new fi(this,{'threadId':_0xe93161,'id':_0xba3d9d,'author':_0x4dec83||_0x1c4e3b,'creator':_0x1c4e3b,'content':_0x39c09b,'createdAt':_0x3a3e92,'authoredAt':_0x35e771,'attributes':_0x10ec56});}['_addComment'](_0x393fd0){let {threadId:_0x4c5092,content:_0x13be63,attributes:_0x525272,isFromAdapter:_0x5841aa}=_0x393fd0;const _0x22b4da=this['getCommentThread'](_0x393fd0['threadId']);if(!_0x22b4da)throw new _0x3b855d('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x5eb197=this['_createNewComment'](_0x393fd0),{id:_0x4b3594}=_0x5eb197;if(_0x22b4da['_add'](_0x5eb197),_0x5841aa||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x22b4da['isSubmitted'])return Promise['resolve']();const _0x5ee3db=this['context']['plugins']['get']('PendingActions'),{channelId:_0x34d67c}=_0x22b4da,_0x39f046=_0x5ee3db['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x525272||(_0x525272={}),this['adapter']['addComment']({'channelId':_0x34d67c,'threadId':_0x4c5092,'commentId':_0x4b3594,'content':_0x13be63,'attributes':_0x525272})['then'](_0x544305=>{_0x5ee3db['remove'](_0x39f046),_0x544305&&this['_updateComment']({'channelId':_0x34d67c,'threadId':_0x4c5092,'commentId':_0x4b3594,'createdAt':_0x544305['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x541fb5=>{throw console['error'](_0x541fb5),new _0x3b855d('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x3e58dc,commentId:_0x13ba0d,content:_0x28bdeb,createdAt:_0x1c7d02,attributes:_0x395477,isFromAdapter:_0x1c8820}){if(void 0x0!==_0x28bdeb&&('string'!=typeof _0x28bdeb||!_0x28bdeb['trim']()['length']))throw new _0x3b855d('commentsrepository-update-comment-invalid-content');const _0x560339=this['getCommentThread'](_0x3e58dc),_0xef6533=_0x560339['getComment'](_0x13ba0d);if(!_0xef6533)throw new _0x3b855d('commentsrepository-update-missing-comment',this);let _0x333e2d=!0x1;if(_0x28bdeb&&_0x28bdeb!==_0xef6533['content']&&(_0xef6533['isEditable']||_0x1c8820)&&(_0xef6533['content']=_0x28bdeb,_0x333e2d=!0x0),_0x1c7d02&&_0x1c7d02!==_0xef6533['createdAt']&&(_0xef6533['createdAt']=_0x1c7d02,_0xef6533['attributes']&&_0xef6533['attributes']['@external']||(_0xef6533['authoredAt']=_0x1c7d02),_0x333e2d=!0x0),_0x395477&&!At(_0x395477,_0xef6533['attributes'])&&(_0xef6533['attributes']=_0x395477,_0x333e2d=!0x0),!_0x333e2d)return Promise['resolve']();if(_0x560339['fire']('commentUpdated'),_0x1c8820||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x373fb8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2624fb}=this['getCommentThread'](_0xef6533['threadId']),_0x272f58=_0x373fb8['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x2624fb,'threadId':_0x3e58dc,'commentId':_0x13ba0d,'content':_0x28bdeb,'attributes':_0x395477})['then'](()=>_0x373fb8['remove'](_0x272f58))['catch'](_0xe8db37=>{throw console['error'](_0xe8db37),new _0x3b855d('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x294723,commentId:_0x23a0d3,isFromAdapter:_0x2ea7e7}){const _0x6fdf38=this['getCommentThread'](_0x294723),_0x1178b7=_0x6fdf38['getComment'](_0x23a0d3);if(!_0x1178b7)throw new _0x3b855d('commentsrepository-remove-missing-comment',this);if(_0x6fdf38['_remove'](_0x1178b7),_0x2ea7e7||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x24e983=this['context']['plugins']['get']('PendingActions'),{channelId:_0x417c72}=_0x6fdf38,_0x5df944=_0x24e983['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x417c72,'threadId':_0x294723,'commentId':_0x23a0d3})['then'](()=>_0x24e983['remove'](_0x5df944))['catch'](_0x51a1ea=>{throw console['error'](_0x51a1ea),new _0x3b855d('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
+ _0x56605d(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x280dbe,_0x173591){super();const _0x159292=_0x173591['isResolvable'];this['channelId']=_0x173591['channelId'],this['id']=_0x173591['id'],this['comments']=new _0x104685(),this['_repository']=_0x280dbe,this['_isAttached']=!0x1,this['_isSubmitted']=_0x173591['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x280dbe,'_permissions',_0x280dbe,'_readOnlyChannels',()=>_0x280dbe['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x280dbe,'_permissions',()=>_0x280dbe['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x280dbe,'_permissions',()=>{const _0x50a492=_0x280dbe['getPermissions'](this['channelId']);return _0x50a492['write']||_0x50a492['admin'];}),this['bind']('isResolvable')['to'](_0x280dbe,'_permissions',()=>_0x159292&&_0x280dbe['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x173591['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x5b0121,_0x1a1e2c)=>_0x5b0121?_0x1a1e2c?_0x5b0121<_0x1a1e2c?_0x5b0121:_0x1a1e2c:_0x5b0121:_0x1a1e2c),this['set']('unlinkedAt',_0x173591['unlinkedAt']||null),this['set']('resolvedAt',_0x173591['resolvedAt']||null),this['set']('resolvedBy',_0x173591['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x56a6ae=>!!_0x56a6ae),this['set']('attributes',_0x173591['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x4868d9,_0x44e879)=>_0x4868d9+_0x44e879['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x3c5622,id:_0x16394f}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x3c5622),{'channelId':_0x3c5622,'threadId':_0x16394f});}['setUnlinkedAt'](_0x6e9e80){this['_update']({'unlinkedAt':_0x6e9e80});}['resolve']({resolvedAt:_0x2f3347=new Date(),resolvedBy:_0x3d7ea3=null,isFromAdapter:_0x4b0530=!0x1}={}){const _0x5a8f08=this['_repository']['context']['plugins']['get'](st)['me'],{channelId:_0x4f671e,id:_0x906fd5}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x4f671e),{'channelId':_0x4f671e,'threadId':_0x906fd5,'resolvedAt':_0x2f3347,'resolvedBy':_0x3d7ea3||_0x5a8f08['id'],'isFromAdapter':_0x4b0530});}['reopen']({isFromAdapter:_0x2c7c7d=!0x1}={}){const {channelId:_0xca4f7,id:_0x251874}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0xca4f7),{'channelId':_0xca4f7,'threadId':_0x251874,'isFromAdapter':_0x2c7c7d});}['setContext'](_0x2d3dad){this['context']||this['_update']({'context':_0x2d3dad});}['setAttribute'](_0x2a501d,_0x43977c){const _0x8a9500=wt(this['attributes']);yt(_0x8a9500,_0x2a501d,_0x43977c),this['_update']({'attributes':_0x8a9500});}['removeAttribute'](_0x2d8b12){const _0x489bc0=wt(this['attributes']);Ct(_0x489bc0,_0x2d8b12),this['_update']({'attributes':_0x489bc0});}['remove']({isFromAdapter:_0x3cf8dc=!0x1}={}){const {channelId:_0x16eb71,id:_0x3d45da}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x16eb71),{'channelId':_0x16eb71,'threadId':_0x3d45da,'isFromAdapter':_0x3cf8dc});}['attachTo'](_0x986192){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x986192});}['addComment'](_0x29fce9){const {channelId:_0x39002a,id:_0x5c28bb}=this;this['_repository']['fire'](Nt('addComment',_0x39002a,_0x5c28bb),Object['assign']({'channelId':_0x39002a,'threadId':_0x5c28bb},_0x29fce9));}['getComment'](_0x23016c){if('string'!=typeof _0x23016c)throw new _0x3b855d('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x23016c});return this['comments']['get'](_0x23016c);}['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'](_0x2d4d03=>_0x2d4d03['toJSON']()),'attributes':this['attributes']};}['_add'](_0x54b32d){return this['listenTo'](_0x54b32d,'change:authoredAt',()=>{const _0x14c54b=this['_findOptimalIndex'](_0x54b32d),_0x4eb44=this['comments'];_0x14c54b-0x1!=_0x4eb44['getIndex'](_0x54b32d)&&_0x14c54b+0x1!=_0x4eb44['getIndex'](_0x54b32d)&&(this['_remove'](_0x54b32d),this['_add'](_0x54b32d));}),this['comments']['add'](_0x54b32d,this['_findOptimalIndex'](_0x54b32d));}['_update'](_0x267d44){const {channelId:_0x18c3ab,id:_0x29c641}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x18c3ab),{..._0x267d44,'channelId':_0x18c3ab,'threadId':_0x29c641});}['_remove'](_0xb956c6){return this['stopListening'](_0xb956c6),_0xb956c6['destroy'](),this['comments']['remove'](_0xb956c6);}['_findOptimalIndex'](_0x3a4ad5){const _0x34d8e6=this['comments']['find'](_0x3d61cc=>new Date(_0x3d61cc['authoredAt'])['getTime']()>new Date(_0x3a4ad5['authoredAt'])['getTime']());return _0x34d8e6?this['comments']['getIndex'](_0x34d8e6):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
+ _0x56605d(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x1808e5,_0x3c3919){super();const _0x59e113=_0x1808e5['context']['plugins']['get'](st)['me'],_0x3d6c07=_0x1808e5['getCommentThread'](_0x3c3919['threadId']),_0x49a674=0x0===_0x3d6c07['comments']['length'],_0x1ac363=_0x59e113===_0x3c3919['author'];this['id']=_0x3c3919['id'],this['threadId']=_0x3c3919['threadId'],this['author']=_0x3c3919['author'],this['creator']=_0x3c3919['creator'],this['isExternal']=Boolean(_0x3c3919['attributes']&&_0x3c3919['attributes']['@external']),this['set']('content',_0x3c3919['content']),this['createdAt']=_0x3c3919['createdAt']||new Date(),this['set']('authoredAt',_0x3c3919['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x3d6c07,'resolvedAt'),this['set']('attributes',_0x3c3919['attributes']||{}),this['bind']('isEditable')['to'](_0x1808e5,'_permissions',()=>{const _0x4752a0=_0x1808e5['getPermissions'](_0x3d6c07['channelId'])['write'],_0x5325a9=_0x1808e5['getPermissions'](_0x3d6c07['channelId'])['modifyAll'];return _0x1ac363&&_0x4752a0||!_0x1ac363&&_0x5325a9;}),this['bind']('isRemovable')['to'](_0x3d6c07,'isRemovable',_0x1808e5,'_permissions',_0x576b4b=>{const _0xf0dd15=_0x1808e5['getPermissions'](_0x3d6c07['channelId'])['write'],_0x583d73=_0x1808e5['getPermissions'](_0x3d6c07['channelId'])['modifyAll'];return _0x1ac363&&_0xf0dd15||_0x576b4b&&_0x49a674||!_0x1ac363&&_0x583d73&&!_0x49a674;}),this['bind']('isReadOnly')['to'](_0x3d6c07,'isReadOnly'),this['_repository']=_0x1808e5;}get['weight'](){return Math['max'](function(_0x3637f3){const _0x31c70b=document['createElement']('div');return _0x31c70b['innerHTML']=_0x3637f3,_0x31c70b['textContent']['length'];}(this['content']),0xc8);}['update'](_0x1bc969){const {threadId:_0x1b31e3,id:_0x331491}=this;if(!this['_repository']['hasCommentThread'](_0x1b31e3))throw new _0x3b855d('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x5e0ab6}=this['_repository']['getCommentThread'](_0x1b31e3);this['_repository']['fire'](Nt('updateComment',_0x5e0ab6,_0x1b31e3),{'channelId':_0x5e0ab6,'threadId':_0x1b31e3,'commentId':_0x331491,..._0x1bc969});}['setAttribute'](_0x27bc1e,_0x43ac56){const _0x1b6ef5=wt(this['attributes']);yt(_0x1b6ef5,_0x27bc1e,_0x43ac56),this['update']({'attributes':_0x1b6ef5});}['removeAttribute'](_0x3859fc){const _0x11372a=wt(this['attributes']);Ct(_0x11372a,_0x3859fc),this['update']({'attributes':_0x11372a});}['remove'](_0x418ff1={}){if(!_0x418ff1['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x4c14e3,id:_0x4b6fd9}=this;if(!this['_repository']['hasCommentThread'](_0x4c14e3))throw new _0x3b855d('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x29efb7}=this['_repository']['getCommentThread'](_0x4c14e3);this['_repository']['fire'](Nt('removeComment',_0x29efb7,_0x4c14e3),{'channelId':_0x29efb7,'threadId':_0x4c14e3,'commentId':_0x4b6fd9,..._0x418ff1});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x1830c8,..._0x2922ae){for(const _0x144feb of _0x2922ae)void 0x0!==_0x144feb&&(_0x1830c8+=':'+String(_0x144feb));return _0x1830c8;}class K extends _0x58209a{['refresh'](){const _0x49c25c=this['editor']['model']['document']['selection'];for(const _0x54e6e5 of _0x49c25c['getRanges']())if(this['_hasContent'](_0x54e6e5))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x259b49=_0xad4cb1()}={}){const _0x106e2c=this['editor']['model'],_0x12b8c2=[];for(const _0x566e8b of _0x106e2c['document']['selection']['getRanges']())this['_hasContent'](_0x566e8b)&&_0x12b8c2['push'](this['_trimToContent'](_0x566e8b));_0x106e2c['change'](_0x5670ae=>{for(const _0x3e53da of _0x12b8c2){const _0x2cb0f5=_0xad4cb1()['substr'](0x1,0x5),_0x12e011='comment:'+_0x259b49+':'+_0x2cb0f5;_0x5670ae['addMarker'](_0x12e011,{'range':_0x3e53da,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x7fa227){for(const _0x173249 of _0x7fa227['getItems']())if(this['_itemIsContent'](_0x173249))return!0x0;return!0x1;}['_itemIsContent'](_0x263e3b){return _0x263e3b['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x263e3b)&&!_0x263e3b['is']('element','tableCell');}['_trimToContent'](_0x1a7cdc){const _0x535362=_0x6a3c07=>!this['_itemIsContent'](_0x6a3c07['item']),_0x3d2499=_0x1a7cdc['start']['getLastMatchingPosition'](_0x535362),_0x57bd8c=_0x1a7cdc['end']['getLastMatchingPosition'](_0x535362,{'direction':'backward'});return this['editor']['model']['createRange'](_0x3d2499,_0x57bd8c);}}class P extends _0x454998{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2181cb){super(_0x2181cb),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5ea500=this['editor'],_0xa49b22=_0x5ea500['model']['document']['selection'],_0x37a486=_0x250c1b(()=>this['refreshSelectedViews'](),0xa);_0xa49b22['on']('change:range',(_0x2da730,_0x4d87e4)=>{_0x4d87e4['directChange']&&(_0x37a486['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5ea500['editing']['view']['document'],'change:isFocused',(_0xad1ff8,_0x254ad7,_0x5aeaf5)=>{_0x5aeaf5&&_0x37a486();}),this['listenTo'](_0x5ea500['ui']['focusTracker'],'change:isFocused',(_0x19f814,_0x24f260,_0xf800ea)=>{_0xf800ea||_0x5ea500['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x2fbddd=>this['_editorAnnotationsData']['has'](_0x2fbddd['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x58e3bf){if(this['_editorAnnotations']['has'](_0x58e3bf['view']))return;this['_editorAnnotations']['add'](_0x58e3bf['view']),this['editor']['ui']['focusTracker']['add'](_0x58e3bf['view']['element']);const _0x4194c3=this['editor']['plugins']['get'](O);this['listenTo'](_0x4194c3['collection'],'remove',(_0x3b0acc,_0x2d3db5)=>{this['editor']['ui']['focusTracker']['remove'](_0x2d3db5['view']['element']),this['_editorAnnotations']['delete'](_0x2d3db5['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x5add69){if('function'!=typeof _0x5add69)throw new _0x3b855d('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x5add69);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x51d72c,annotations:_0xe07255}){const _0x32852d=[],_0x1373ef=this['editor']['model']['document']['selection'],_0x5baa78=Array['from'](_0x1373ef['getRanges']());for(const [_0x232e3f,_0x4dda3a]of this['_editorAnnotationsData']){const _0x2905c2=_0x140bd0(_0x4dda3a),_0x589778=_0xe07255['getByInnerView'](_0x232e3f);_0x2905c2&&_0x589778&&_0x32852d['push']({'annotation':_0x589778,'range':_0x2905c2});}function _0x140bd0(_0x38469c){for(const _0x431157 of _0x38469c)for(const _0x2bc740 of _0x5baa78)if(_0x431157['containsRange'](_0x2bc740,!_0x1373ef['isCollapsed']))return _0x431157;return null;}return _0x32852d['sort']((_0x32b7b0,_0x2c3b50)=>{const _0x544991=_0x32b7b0['range'],_0x129590=_0x2c3b50['range'];if(!_0x544991['isEqual'](_0x129590)){if(_0x544991['containsRange'](_0x129590,!0x0))return 0x1;if(_0x129590['containsRange'](_0x544991,!0x0))return-0x1;}return _0x32b7b0['annotation']==_0x51d72c?-0x1:_0x2c3b50['annotation']==_0x51d72c?0x1:0x0;})['map'](_0x36b7a1=>_0x36b7a1['annotation']);}get['_editorAnnotationsData'](){const _0x277d32=new Map();for(const _0x418d33 of Array['from'](this['_dataCollectors']))for(const [_0x4057d3,_0xe021d7]of _0x418d33())_0x277d32['set'](_0x4057d3,_0xe021d7);return _0x277d32;}}class ct extends _0x454998{['afterInit'](){const _0xa2c19c=this['editor'];if(!_0xa2c19c['plugins']['has']('RestrictedEditingModeEditing'))return;_0xa2c19c['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class at extends _0x454998{constructor(_0x13e5ee){super(_0x13e5ee),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x38ffc5=this['editor'],_0x324702=_0x38ffc5['commands']['get']('importWord'),_0x52ad4f=_0x38ffc5['plugins']['get'](st);_0x324702&&(_0x324702['on']('execute',(_0x444b9b,[,_0x228e61])=>{_0x228e61['collaboration_features']={'comments':!0x0,'user_id':_0x52ad4f['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x324702,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x20179d,_0xed2518){const {comment_threads:_0x5a96ea}=_0xed2518;_0x5a96ea&&_0x5a96ea['forEach'](({thread_id:_0x5270a7,comments:_0x238076,is_resolved:_0x3dc7c3})=>{const _0x35ff7f=new Date(),_0xa9a559=_0x238076['map'](({author:_0x15b49e,content:_0x2ade5c,created_at:_0x4fcf65})=>({'content':_0x2ade5c,'authorId':this['editor']['plugins']['get'](st)['me']['id'],'createdAt':_0x35ff7f,'attributes':{'@external':{'authorName':_0x15b49e,'createdAt':_0x4fcf65?new Date(_0x4fcf65):new Date(),'source':'importWord'}}})),_0x4945fd=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4945fd,'threadId':_0x5270a7,'comments':_0xa9a559,'resolvedAt':_0x3dc7c3?_0x35ff7f:null});});}}class ut extends _0x454998{constructor(_0x13c03d){super(_0x13c03d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x4aea0e=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x4aea0e,'contentInsertion',(_0xbce7af,_0x41a641)=>this['_removeMarkersWithoutThreads'](_0x41a641['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xe1ae8b){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xe1ae8b;const _0xd95f85=this['editor']['plugins']['get']('CommentsRepository');for(const _0x4677dd of _0xe1ae8b['keys']()){const [_0x417bc0,_0x5650bb]=_0x4677dd['split'](':');'comment'!=_0x417bc0||_0xd95f85['hasCommentThread'](_0x5650bb)||_0xe1ae8b['delete'](_0x4677dd);}return _0xe1ae8b;}['_registerMarkerInClipboardPipeline'](){const _0x49f3ca=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x159a21=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x159a21&&_0x49f3ca['_registerMarkerToCopy']('comment',_0x159a21);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x305bca){switch(_0x305bca){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ft extends _0x454998{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x544b23,_0x5e8991)=>{if(!_0x5e8991['options']['showCommentHighlights'])return null;if(_0x5e8991['options']['ignoreResolvedComments']){const {id:_0x52cb89}=er(_0x544b23['markerName']),_0x3a638f=this['editor']['plugins']['get'](o);if(_0x3a638f['getCommentThread'](_0x52cb89)?.['isResolved']&&_0x544b23['item'])return _0x5e8991['consumable']['consume'](_0x544b23['item'],'addMarker:'+_0x544b23['markerName']),_0x5e8991['consumable']['consume'](_0x544b23['item'],'removeMarker:'+_0x544b23['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x257728=>{_0x257728['on']('addMarker:comment',(_0x2a2b18,_0x16bde0,_0xc6849c)=>{if(!_0xc6849c['options']['showCommentHighlights'])return;const _0x10f2db=_0x16bde0['item'];if(!_0x10f2db)return;const _0xd424b=_0xc6849c['mapper']['toViewElement'](_0x10f2db);this['editor']['model']['schema']['isObject'](_0x10f2db)&&_0xd424b&&!_0xd424b['getCustomProperty']('widget')&&_0xd424b['is']('containerElement')&&_0x55487f(_0xd424b,_0xc6849c['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x29addb,{writer:_0xb6eb4b,options:_0x5ce1f4})=>{if(!_0x5ce1f4['showCommentHighlights'])return null;const _0x59977c=_0xb6eb4b['createContainerElement']('div'),_0x36955a=_0xb6eb4b['createEmptyElement']('hr');return _0xb6eb4b['addClass']('ck-horizontal-line',_0x59977c),_0xb6eb4b['insert'](_0xb6eb4b['createPositionAt'](_0x59977c,0x0),_0x36955a),_0x59977c;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1d18cd,{writer:_0x16c80b,options:_0x49d5dc})=>{if(!_0x49d5dc['showCommentHighlights'])return null;const _0x5b48ca=_0x16c80b['createContainerElement']('span'),_0x191076=_0x16c80b['createEmptyElement']('img');return _0x16c80b['addClass']('image-inline',_0x5b48ca),_0x16c80b['insert'](_0x16c80b['createPositionAt'](_0x5b48ca,0x0),_0x191076),_0x5b48ca;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x25104e,{writer:_0x27bc8d,options:_0x4b46b9})=>{if(_0x4b46b9['showCommentHighlights'])return _0x27bc8d['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3cea4d,_0x25c603,_0x187cfe)=>{_0x187cfe['options']['showCommentHighlights']&&_0x3cea4d['stop']();},{'priority':'high'});}}class r extends _0x454998{static get['requires'](){return[o,P,st,ct,at,ut,ft];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31692a){super(_0x31692a),this['set']('isThreadsLoadingPaused',!0x0),_0x31692a['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x5a2714,_0x1253cf,_0x490126,_0x1aeadd)=>{const _0x4c0b5f=_0x31692a['plugins']['get'](o),_0x46644b=_0x490126?er(_0x490126)['id']:null;_0x31692a['model']['change'](()=>{if(_0x46644b){const _0xbf0914=this['getAllMarkersForId'](_0x46644b);for(const _0x5d930e of _0xbf0914)_0x31692a['editing']['reconvertMarker'](_0x5d930e);}if(_0x1aeadd){const {id:_0x449165}=er(_0x1aeadd),_0xba1e2e=_0x4c0b5f['getCommentThread'](_0x449165);if(_0xba1e2e&&_0xba1e2e['unlinkedAt'])return;if(_0xba1e2e&&!_0xba1e2e['isAttached'])return;const _0x3f6fcc=this['getAllMarkersForId'](_0x449165);for(const _0x33812f of _0x3f6fcc)_0x31692a['editing']['reconvertMarker'](_0x33812f);}}),_0x46644b&&this['scrollToThreadMarker'](_0x46644b);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1d1228=this['editor'],_0x15a441=_0x1d1228['plugins']['get'](o),_0x188215=_0x1d1228['config']['get']('collaboration.channelId'),_0x27230b=_0x15a441['getCommentThreads']()['filter'](_0x12591d=>_0x12591d['channelId']!==_0x188215);_0x1d1228['commands']['add']('addCommentThread',new K(_0x1d1228)),this['listenTo'](_0x1d1228,'change:isReadOnly',(_0x47ae93,_0x1ac37b,_0x3027ab)=>{_0x15a441['switchReadOnly'](_0x3027ab,_0x1d1228['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x15a441,dt('addCommentThread',_0x188215),(_0x349bf2,{threadId:_0x3a8c86})=>{const _0x4f6bd2=this['editor']['plugins']['get'](o)['getCommentThread'](_0x3a8c86);_0x4f6bd2?.['unlinkedAt']&&this['_attachArchivedThread'](_0x3a8c86);}),this['listenTo'](_0x15a441,dt('removeCommentThread',_0x188215),(_0x4a67d8,{threadId:_0x32c931})=>{_0x1d1228['model']['enqueueChange']({'isUndoable':!0x1},_0x3eec2a=>{const _0x441068=this['getAllMarkersForId'](_0x32c931);for(const _0xe0d49c of _0x441068)_0x3eec2a['removeMarker'](_0xe0d49c);});}),this['listenTo'](_0x15a441,dt('resolveCommentThread',_0x188215),(_0x1f932e,{threadId:_0xf92577})=>{(this['_reconvertMarkers'](_0xf92577),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xf92577)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x15a441,dt('reopenCommentThread',_0x188215),(_0x236a43,{threadId:_0x3e5a15})=>{this['_reconvertMarkers'](_0x3e5a15);},{'priority':'low'}),this['listenTo'](_0x15a441,dt('addComment',_0x188215),(_0xe75dd3,{threadId:_0x3085b3,isFromAdapter:_0x13302b})=>{const _0x5bfd46=this['getAllMarkersForId'](_0x3085b3);if(_0x13302b||0x0==_0x5bfd46['length']||!_0x15a441['hasCommentThread'](_0x3085b3))return;0x1===_0x15a441['getCommentThread'](_0x3085b3)['length']&&_0x1d1228['model']['enqueueChange']({'isUndoable':!0x1},_0x4f420d=>{for(const _0x3cbeba of _0x5bfd46)_0x4f420d['updateMarker'](_0x3cbeba,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x27230b);}['afterInit'](){!async function(_0x136b09){const _0x38bd23=_0x2e25d8([0x66,0x53,0x77,0x76,0x44,0x70,0x62,0x6a,0x59,0x47,0x43,0x69,0x72,0x74,0x48,0x6b,0x37,0x75,0x4a,0x4e,0x54,0x64,0x51,0x6d,0x36,0x41,0x65,0x5a,0x63,0x4d,0x6e,0x61,0x56,0x4f,0x79,0x52,0x45,0x31,0x38,0x35,0x6f,0x78,0x73,0x4c,0x57,0x49,0x46,0x7a,0x6c,0x55,0x67,0x58,0x50,0x34,0x4b,0x30,0x32,0x33,0x71,0x42,0x39,0x68]),_0x59271c=0x43a9de3d,_0x40f1d9=0x43aeac6d^_0x59271c,_0x86bcbb=window[_0x2e25d8([0x44,0x61,0x74,0x65])][_0x2e25d8([0x6e,0x6f,0x77])](),_0x48ec87=_0x136b09[_0x2e25d8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15cb21=new window[(_0x2e25d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56944d=>{_0x48ec87[_0x2e25d8([0x6f,0x6e,0x63,0x65])](_0x2e25d8([0x72,0x65,0x61,0x64,0x79]),_0x56944d);}),_0x561eef={[_0x2e25d8([0x6b,0x74,0x79])]:_0x2e25d8([0x45,0x43]),[_0x2e25d8([0x75,0x73,0x65])]:_0x2e25d8([0x73,0x69,0x67]),[_0x2e25d8([0x63,0x72,0x76])]:_0x2e25d8([0x50,0x2d,0x32,0x35,0x36]),[_0x2e25d8([0x78])]:_0x2e25d8([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]),[_0x2e25d8([0x79])]:_0x2e25d8([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]),[_0x2e25d8([0x61,0x6c,0x67])]:_0x2e25d8([0x45,0x53,0x32,0x35,0x36])},_0x1930eb=_0x48ec87[_0x2e25d8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e25d8([0x67,0x65,0x74])](_0x2e25d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f9d31(){let _0x416abd,_0x1e7ab7=null,_0x54715d=null;try{if(_0x1930eb==_0x2e25d8([0x47,0x50,0x4c]))return _0x2e25d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x416abd=_0x4546d3(),!_0x416abd)return _0x2e25d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x416abd[_0x2e25d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x54715d=_0x517ed3(_0x416abd[_0x2e25d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x416abd[_0x2e25d8([0x6a,0x74,0x69])])),await _0x540aa7()?_0x4d450f()?_0x45667d()?_0x2e25d8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58a269()?(_0x416abd[_0x2e25d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e25d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e7ab7=_0x379571(_0x2e25d8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x416abd[_0x2e25d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e25d8([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e7ab7=_0x379571(_0x2e25d8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54b308()):_0x2e25d8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e25d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e25d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e25d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45667d(){const _0x5a721f=[_0x2e25d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e25d8([0x74,0x72,0x69,0x61,0x6c])][_0x2e25d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x416abd[_0x2e25d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x86bcbb/0x3e8:0xe10*_0x40f1d9;return _0x416abd[_0x2e25d8([0x65,0x78,0x70])]<_0x5a721f;}function _0x4d450f(){const _0x1a0a83=_0x416abd[_0x2e25d8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1a0a83)return!0x1;if(_0x1a0a83[_0x2e25d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e25d8([0x2a])))return!0x0;if(_0x1a0a83[_0x2e25d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e25d8([0x43,0x4d,0x54])))return!0x0;if(_0x1a0a83[_0x2e25d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e25d8([0x52,0x43,0x4d,0x54]))){if(_0x4432db())return!0x0;if(_0x3d4772()||_0x33bb00())return!0x0;}return!0x1;}function _0x58a269(){const _0x35f964=_0x416abd[_0x2e25d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35f964||0x0==_0x35f964[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x33351a}=new URL(window[_0x2e25d8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35f964[_0x2e25d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33351a))return!0x0;const _0x2d111d=_0x33351a[_0x2e25d8([0x73,0x70,0x6c,0x69,0x74])](_0x2e25d8([0x2e]));return _0x35f964[_0x2e25d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f5057=>_0x3f5057[_0x2e25d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e25d8([0x2a])))[_0x2e25d8([0x6d,0x61,0x70])](_0x12131a=>_0x12131a[_0x2e25d8([0x73,0x70,0x6c,0x69,0x74])](_0x2e25d8([0x2e])))[_0x2e25d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c1c98=>_0x1c1c98[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d111d[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e25d8([0x6d,0x61,0x70])](_0x23eb13=>Array(_0x2d111d[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23eb13[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e25d8([0x66,0x69,0x6c,0x6c])](_0x23eb13[0x0]===_0x2e25d8([0x2a])?_0x2e25d8([0x2a]):'')[_0x2e25d8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23eb13))[_0x2e25d8([0x73,0x6f,0x6d,0x65])](_0x508bc4=>_0x2d111d[_0x2e25d8([0x65,0x76,0x65,0x72,0x79])]((_0x574222,_0x5c5b50)=>_0x508bc4[_0x5c5b50]===_0x574222||_0x508bc4[_0x5c5b50]===_0x2e25d8([0x2a])));}function _0x54b308(){return _0x1e7ab7&&_0x54715d?new window[(_0x2e25d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2974a3,_0x24a703)=>{_0x1e7ab7[_0x2e25d8([0x74,0x68,0x65,0x6e])](_0x2974a3,_0x24a703),_0x54715d[_0x2e25d8([0x74,0x68,0x65,0x6e])](_0x452387=>{_0x452387!=_0x2e25d8([0x56,0x61,0x6c,0x69,0x64])&&_0x2974a3(_0x452387);},_0x24a703);}):_0x1e7ab7||_0x54715d||_0x2e25d8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x517ed3(_0x5220c4,_0x1b096b){return new window[(_0x2e25d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dc313=>{if(_0x263634())return _0x1dc313(_0x2e25d8([0x56,0x61,0x6c,0x69,0x64]));_0x5673e9(),_0x48ec87[_0x2e25d8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e25d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x655f74=!0x1;const _0x12788b=_0xad4cb1();function _0x2c7818(_0xdb1956){return!!_0xdb1956&&(typeof _0xdb1956===_0x2e25d8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xdb1956===_0x2e25d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xdb1956[_0x2e25d8([0x74,0x68,0x65,0x6e])]===_0x2e25d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xdb1956[_0x2e25d8([0x63,0x61,0x74,0x63,0x68])]===_0x2e25d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x374087(_0x397db3){_0x174b24(_0x397db3)[_0x2e25d8([0x74,0x68,0x65,0x6e])](_0x4d33e5=>{if(!_0x4d33e5||_0x4d33e5[_0x2e25d8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e25d8([0x6f,0x6b]))return _0x2e25d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b54ad(_0x4d2d46(_0x12788b+_0x1b096b))!=_0x4d33e5[_0x2e25d8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e25d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e25d8([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e25d8([0x74,0x68,0x65,0x6e])](_0x4a4a81=>(_0x4af69b(),_0x4a4a81),()=>{const _0x343606=_0x5d399f();return null==_0x343606?(_0x4af69b(),_0x2e25d8([0x56,0x61,0x6c,0x69,0x64])):_0x2e25d8(_0x86bcbb-_0x343606>(0x67a55a3d^_0x59271c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e25d8([0x74,0x68,0x65,0x6e])](_0x1dc313)[_0x2e25d8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1dc313(_0x2e25d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56711c=0x439f30bd^_0x59271c;function _0x4af69b(){const _0x46a14b=_0x2e25d8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b54ad(_0x4d2d46(_0x5220c4)),_0xe7862=_0xd5bfe3(_0x3b54ad(window[_0x2e25d8([0x4d,0x61,0x74,0x68])][_0x2e25d8([0x63,0x65,0x69,0x6c])](_0x86bcbb/_0x56711c)));window[_0x2e25d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e25d8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46a14b,_0xe7862);}function _0x5d399f(){const _0x53d8a8=_0x2e25d8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b54ad(_0x4d2d46(_0x5220c4)),_0x24e588=window[_0x2e25d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e25d8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53d8a8);return _0x24e588?window[_0x2e25d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd5bfe3(_0x24e588),0x10)*_0x56711c:null;}function _0x174b24(_0x5d42a8){return new window[(_0x2e25d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x290b7a,_0x4f3576)=>{_0x5d42a8[_0x2e25d8([0x74,0x68,0x65,0x6e])](_0x290b7a,_0x4f3576),window[_0x2e25d8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f3576,0x43a80afd^_0x59271c);});}}_0x48ec87[_0x2e25d8([0x6f,0x6e])](_0x2e25d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15f4a5,_0x4865cd)=>{if(_0x4865cd[0x0]!=_0x5220c4)return _0x1dc313(_0x2e25d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4865cd[0x1]={..._0x4865cd[0x1],[_0x2e25d8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12788b};},{[_0x2e25d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e25d8([0x68,0x69,0x67,0x68])}),_0x48ec87[_0x2e25d8([0x6f,0x6e])](_0x2e25d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d6e04=>{_0x2c7818(_0x5d6e04[_0x2e25d8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x655f74=!0x0,_0x374087(_0x5d6e04[_0x2e25d8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e25d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e25d8([0x6c,0x6f,0x77])}),_0x15cb21[_0x2e25d8([0x74,0x68,0x65,0x6e])](()=>{_0x655f74||_0x1dc313(_0x2e25d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x263634(){return _0x48ec87[_0x2e25d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e25d8([0x76,0x69,0x65,0x77])][_0x2e25d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e25d8([0x61,0x75,0x74,0x6f]);}function _0x5673e9(){_0x48ec87[_0x2e25d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e25d8([0x76,0x69,0x65,0x77])][_0x2e25d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e25d8([0x61,0x75,0x74,0x6f]);}}function _0x379571(_0x1c7523){const _0x11a2f6=[new window[(_0x2e25d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1380bc=>setTimeout(_0x1380bc,0x43a0e0f1^_0x59271c)),_0x15cb21[_0x2e25d8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e25d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x372311=>{let _0x5d5518=0x0;_0x48ec87[_0x2e25d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e25d8([0x6f,0x6e])](_0x2e25d8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cc01f,_0x4bbd81)=>{_0x4bbd81[0x0][_0x2e25d8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d5518++,_0x5d5518==(0x43a9dfc5^_0x59271c)&&(_0x372311(),_0x1cc01f[_0x2e25d8([0x6f,0x66,0x66])]());});}))];return window[_0x2e25d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e25d8([0x72,0x61,0x63,0x65])](_0x11a2f6)[_0x2e25d8([0x74,0x68,0x65,0x6e])](()=>_0x1c7523);}async function _0x580410(){await _0x15cb21,_0x48ec87[_0x2e25d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e25d8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16d23e,_0x48ec87[_0x2e25d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e25d8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16d23e,_0x48ec87[_0x2e25d8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e25d8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4432db(){return _0x664375(_0x2e25d8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3d3f49(_0x2e25d8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2e25d8([0x73,0x74,0x61,0x74,0x65])]==_0x2e25d8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3d4772(){return _0x664375(_0x2e25d8([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 _0x33bb00(){return _0x664375(_0x2e25d8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1cbfa3(_0x1389c3){const _0x2a6af1=_0x3081ce();_0x48ec87[_0x2a6af1]=_0x2e25d8([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1389c3,_0x1389c3!=_0x2e25d8([0x56,0x61,0x6c,0x69,0x64])&&_0x580410();}function _0x3081ce(){const _0x54ce0c=window[_0x2e25d8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e25d8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e25d8([0x6e,0x6f,0x77])]())[_0x2e25d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e25d8([0x2e]),'');let _0xf627b2=_0x2e25d8([0x66]);for(let _0x3b9d8f=0x0;_0x3b9d8f<_0x54ce0c[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b9d8f+=0x2){let _0x4460d1=window[_0x2e25d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54ce0c[_0x2e25d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b9d8f,_0x3b9d8f+0x2));_0x4460d1>=_0x38bd23[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4460d1-=_0x38bd23[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf627b2+=_0x38bd23[_0x4460d1];}return _0xf627b2;}function _0x4546d3(){const _0x476766=_0x1930eb[_0x2e25d8([0x73,0x70,0x6c,0x69,0x74])](_0x2e25d8([0x2e]));if(0x3!=_0x476766[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x132afd(_0x476766[0x1]);function _0x132afd(_0x59d846){const _0x121ceb=_0x325b6d(_0x59d846);return _0x121ceb&&_0x58786a()?_0x121ceb:null;function _0x58786a(){const _0x186722=_0x121ceb[_0x2e25d8([0x6a,0x74,0x69])],_0x37f216=window[_0x2e25d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x186722[_0x2e25d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x186722[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x265343={..._0x121ceb,[_0x2e25d8([0x6a,0x74,0x69])]:_0x186722[_0x2e25d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x186722[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x265343[_0x2e25d8([0x76,0x63])],_0x4d2d46(_0x265343)==_0x37f216;}}}async function _0x540aa7(){let _0x370f7f=!0x0;try{const _0x326648=_0x1930eb[_0x2e25d8([0x73,0x70,0x6c,0x69,0x74])](_0x2e25d8([0x2e])),[_0x6fa379,_0x36cf6d,_0x3346f6]=_0x326648;return _0x5c6c54(_0x6fa379),await _0x30ce7e(_0x6fa379,_0x36cf6d,_0x3346f6),_0x370f7f;}catch{return!0x1;}function _0x5c6c54(_0x499ecf){const _0x1802ac=_0x325b6d(_0x499ecf);_0x1802ac&&_0x1802ac[_0x2e25d8([0x61,0x6c,0x67])]==_0x2e25d8([0x45,0x53,0x32,0x35,0x36])||(_0x370f7f=!0x1);}async function _0x30ce7e(_0x4e2c39,_0xfd1615,_0xf082b){const _0x229ee9=window[_0x2e25d8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e25d8([0x66,0x72,0x6f,0x6d])](_0x59bfe3(_0xf082b),_0x354438=>_0x354438[_0x2e25d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x419137=new window[(_0x2e25d8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e25d8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e2c39+_0x2e25d8([0x2e])+_0xfd1615),_0x3cf013=window[_0x2e25d8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e25d8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cf013)return;const _0x414b74=await _0x3cf013[_0x2e25d8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e25d8([0x6a,0x77,0x6b]),_0x561eef,{[_0x2e25d8([0x6e,0x61,0x6d,0x65])]:_0x2e25d8([0x45,0x43,0x44,0x53,0x41]),[_0x2e25d8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e25d8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e25d8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cf013[_0x2e25d8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e25d8([0x6e,0x61,0x6d,0x65])]:_0x2e25d8([0x45,0x43,0x44,0x53,0x41]),[_0x2e25d8([0x68,0x61,0x73,0x68])]:{[_0x2e25d8([0x6e,0x61,0x6d,0x65])]:_0x2e25d8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x414b74,_0x229ee9,_0x419137)||(_0x370f7f=!0x1);}}function _0x325b6d(_0x718a2e){return _0x718a2e[_0x2e25d8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e25d8([0x65,0x79]))?JSON[_0x2e25d8([0x70,0x61,0x72,0x73,0x65])](_0x59bfe3(_0x718a2e)):null;}function _0x59bfe3(_0x4a19a8){return window[_0x2e25d8([0x61,0x74,0x6f,0x62])](_0x4a19a8[_0x2e25d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e25d8([0x2b]))[_0x2e25d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e25d8([0x2f])));}function _0x4d2d46(_0xef94b3){let _0x2b9ec5=0x1505;function _0x5cef88(_0x5a1c53){for(let _0x105ab7=0x0;_0x105ab7<_0x5a1c53[_0x2e25d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x105ab7++){const _0x558f93=_0x5a1c53[_0x2e25d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x105ab7);_0x2b9ec5=(_0x2b9ec5<<0x5)+_0x2b9ec5+_0x558f93,_0x2b9ec5&=_0x2b9ec5;}}function _0x1270ff(_0x5addd2){Array[_0x2e25d8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5addd2)?_0x5addd2[_0x2e25d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1270ff):_0x5addd2&&typeof _0x5addd2==_0x2e25d8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e25d8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5addd2)[_0x2e25d8([0x73,0x6f,0x72,0x74])]()[_0x2e25d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22b9e0,_0x10960d])=>{_0x5cef88(_0x22b9e0),_0x1270ff(_0x10960d);}):_0x5cef88(window[_0x2e25d8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5addd2));}return _0x1270ff(_0xef94b3),_0x2b9ec5>>>0x0;}function _0x3b54ad(_0x185d59){return _0x185d59[_0x2e25d8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e25d8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e25d8([0x30]));}function _0xd5bfe3(_0x4d4433){return _0x4d4433[_0x2e25d8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e25d8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e25d8([0x6a,0x6f,0x69,0x6e])]('');}function _0x664375(_0x2649d0){return _0x48ec87[_0x2e25d8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e25d8([0x68,0x61,0x73])](_0x2649d0);}function _0x3d3f49(_0x3918ac){return _0x48ec87[_0x2e25d8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e25d8([0x67,0x65,0x74])](_0x3918ac);}function _0x16d23e(){}function _0x2e25d8(_0x5a0b3e){return _0x5a0b3e['map'](_0x47b607=>String['fromCharCode'](_0x47b607))['join']('');}_0x1cbfa3(await _0x4f9d31());}(this);}['destroy'](){const _0x563742=this['editor']['plugins']['get'](o),_0x562e6f=this['editor']['config']['get']('collaboration.channelId');for(const _0x8ce250 of _0x563742['getCommentThreads']({'channelId':_0x562e6f}))_0x563742['_detachCommentThread'](_0x8ce250['id']),_0x563742['_threads']['delete'](_0x8ce250['id']);super['destroy']();}['hasMarkerForId'](_0x206502){return this['getAllMarkersForId'](_0x206502)['length']>0x0;}['getAllMarkersForId'](_0x2e2c67){const _0xb537d5=[];for(const _0x329d1d of this['editor']['model']['markers'])_0x329d1d['name']['startsWith']('comment:'+_0x2e2c67)&&_0xb537d5['push'](_0x329d1d);return _0xb537d5;}['scrollToThreadMarker'](_0x367063){const _0x25a38e=this['_getTargetForId'](_0x367063);_0x25a38e&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x367063&&rt({'target':_0x25a38e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xd3ed3c){this['editor']['model']['change'](()=>{for(const _0x4e6799 of this['getAllMarkersForId'](_0xd3ed3c))this['editor']['editing']['reconvertMarker'](_0x4e6799);});}['_attachArchivedThread'](_0x4a2a79){const _0x4ece00=this['editor']['plugins']['get'](o),_0x24811b=this['editor']['plugins']['get'](P),_0x4ea22c=_0x4ece00['getCommentThread'](_0x4a2a79);if(!_0x4ea22c['isAttached']){const _0x4e1781=_0x4ea22c['attachTo'](()=>this['_getTargetForId'](_0x4ea22c['id']));_0x24811b['registerAnnotation'](_0x4e1781),_0x4ea22c['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x471438=this['editor'],_0x25843c=_0x471438['plugins']['get'](st);_0x471438['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x526ae3,_0x28320a)=>{const {id:_0x2ec3ea}=er(_0x526ae3['markerName']),_0x16195c=_0x471438['plugins']['get'](o)['getCommentThread'](_0x2ec3ea),_0x177b46=this['activeMarker']&&er(this['activeMarker'])['id']===_0x2ec3ea;let _0x1600dc;if(_0x16195c&&_0x16195c['isResolved']&&!_0x177b46&&_0x526ae3['item'])return _0x28320a['consumable']['consume'](_0x526ae3['item'],'addMarker:'+_0x526ae3['markerName']),_0x28320a['consumable']['consume'](_0x526ae3['item'],'removeMarker:'+_0x526ae3['markerName']),null;const _0x4aac97=['ck-comment-marker'];return _0x177b46&&_0x4aac97['push']('ck-comment-marker--active'),_0x1600dc=_0x16195c?.['length']?_0x16195c['comments']['first']['author']['id']:_0x25843c['me']['id'],{'classes':_0x4aac97,'attributes':{'data-comment':_0x2ec3ea,'data-author-id':_0x1600dc}};}}),_0x471438['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3857bf,{options:_0x6cc428})=>{if(_0x6cc428['showCommentHighlights'])return null;const _0x4fbf2c=_0x471438['plugins']['get'](o),_0x2cbf3e=_0x471438['model']['markers']['get'](_0x3857bf),{id:_0x3c24d2,part:_0x557cf7}=er(_0x3857bf);return _0x2cbf3e&&!_0x2cbf3e['affectsData']||_0x6cc428['ignoreResolvedComments']&&_0x4fbf2c['getCommentThread'](_0x3c24d2)?.['isResolved']?null:{'group':'comment','name':_0x557cf7?_0x3c24d2+':'+_0x557cf7:_0x3c24d2};}}),_0x471438['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2fcac2,{writer:_0x3b729b})=>_0x3b729b['createElement']('$marker',{'data-name':'comment:'+_0x2fcac2['getAttribute']('id')})}),_0x471438['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3b4cb6=this['editor'],_0x19042c=_0x3b4cb6['plugins']['get'](o),_0x24bbdf=new Set(),_0x1322b5=new Set();_0x3b4cb6['model']['document']['registerPostFixer'](_0x1dab95=>{let _0x35bc5d=!0x1;for(const {name:_0x1e97f9,data:_0x584a4b}of _0x3b4cb6['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5f28fa,id:_0x48838f}=er(_0x1e97f9);let _0x156f27=_0x584a4b['newRange'];if('comment'!==_0x5f28fa||!_0x156f27)continue;const _0x30bec0='$graveyard'===_0x156f27['root']['rootName'];_0x30bec0||(_0x156f27=mt(_0x156f27,_0x3b4cb6['model']),!_0x156f27||_0x156f27['isCollapsed']||!_0x584a4b['newRange']||_0x156f27['isEqual'](_0x584a4b['newRange']))?_0x3b4cb6['model']['hasContent'](_0x156f27)&&!_0x30bec0?this['isThreadsLoadingPaused']?_0x24bbdf['add'](_0x1e97f9):this['_handleThreadMarker'](_0x1e97f9,_0x48838f):(_0x1322b5['add'](_0x1e97f9),_0x24bbdf['delete'](_0x1e97f9),_0x1dab95['removeMarker'](_0x1e97f9),_0x35bc5d=!0x0):(_0x1dab95['updateMarker'](_0x1e97f9,{'range':_0x156f27}),_0x35bc5d=!0x0);}return _0x35bc5d;}),this['on']('change:isThreadsLoadingPaused',(_0x511076,_0x5520b3,_0x465097)=>{if(!_0x465097&&_0x24bbdf['size'])for(const _0x19dfd2 of _0x24bbdf){const {id:_0x1435e2}=er(_0x19dfd2);_0x24bbdf['delete'](_0x19dfd2),_0x3b4cb6['model']['markers']['get'](_0x19dfd2)&&this['_handleThreadMarker'](_0x19dfd2,_0x1435e2);}}),this['listenTo'](_0x3b4cb6['model']['document'],'change',()=>{for(const {name:_0x2a57f9,data:{newRange:_0x5632d4}}of _0x3b4cb6['model']['document']['differ']['getChangedMarkers']()){const {group:_0x29441b,id:_0x20b611}=er(_0x2a57f9);if('comment'!==_0x29441b)continue;const _0x5a5019=_0x19042c['getCommentThread'](_0x20b611),_0x2b9235=this['hasMarkerForId'](_0x20b611);_0x5a5019&&(!_0x5a5019['_hasTargetInContent']&&_0x5632d4&&_0x3b4cb6['editing']['view']['once']('render',()=>{const _0x5b7d32=_0x3b4cb6['plugins']['get'](O),_0xfa9b53=_0x19042c['_threadToController']['get'](_0x5a5019)['view'];_0x5b7d32['getByInnerView'](_0xfa9b53)['refreshVisibility']();},{'priority':'low'}),_0x5a5019['_hasTargetInContent']=_0x2b9235||!!_0x5632d4),_0x5632d4||(_0x1322b5['add'](_0x2a57f9),_0x24bbdf['delete'](_0x2a57f9));}for(const _0x618ebc of _0x1322b5){const {id:_0x467a1e}=er(_0x618ebc),_0x3540b3=_0x19042c['getCommentThread'](_0x467a1e);if(_0x24bbdf['delete'](_0x618ebc),!_0x3540b3)continue;const _0x7793f=this['hasMarkerForId'](_0x467a1e);_0x7793f||_0x3540b3['isSubmitted']?_0x7793f||_0x3540b3['unlinkedAt']||_0x3540b3['setUnlinkedAt'](new Date()):_0x3540b3['remove']();}_0x1322b5['clear']();});}['_handleInitialThreads'](_0x29890a){_0x29890a['forEach'](_0x33bc1c=>{_0x33bc1c['unlinkedAt']&&this['_attachArchivedThread'](_0x33bc1c['id']);});}['_getTargetForId'](_0x130f61){const _0x298fea=this['editor'],_0x49bf7f=this['getAllMarkersForId'](_0x130f61);return et(_0x298fea['editing'],_0x49bf7f);}['_getTextContext'](_0x162d37){const _0x2b50f2=this['getAllMarkersForId'](_0x162d37);let _0x312027='',_0x1633a0=!0x1;for(const _0x38c262 of _0x2b50f2){const _0x45e6c9=_0x38c262['getRange']();for(const _0x5ea8f2 of Array['from'](_0x45e6c9['getItems']()))_0x5ea8f2['is']('$textProxy')?(_0x312027&&_0x1633a0&&(_0x312027+='\x20',_0x1633a0=!0x1),_0x312027+=_0x5ea8f2['data']):_0x1633a0=!0x0;_0x1633a0=!0x0;}return _0x312027['substring'](0x0,0x96);}['_attachMarkerToThread'](_0xfde189,_0x60dbd9){const _0x5ae3f5=this['editor'],_0x29b572=_0x5ae3f5['plugins']['get'](o);let _0x174a02=_0x29b572['getCommentThread'](_0x60dbd9);const _0x5508c8=_0x5ae3f5['config']['get']('collaboration.channelId'),_0x46ec98=_0x5ae3f5['plugins']['get'](P);if(_0x174a02&&(_0x174a02['unlinkedAt']&&_0x174a02['setUnlinkedAt'](null),_0x174a02['isAttached']))return _0x174a02;return!this['getAllMarkersForId'](_0x60dbd9)[0x0]['managedUsingOperations']?_0x5ae3f5['editing']['view']['once']('render',()=>{if(_0x29b572['getCommentThread'](_0x60dbd9))return;const _0xd6ec41=_0x5ae3f5['plugins']['get'](O);_0x174a02=_0x29b572['openNewCommentThread']({'channelId':_0x5508c8,'threadId':_0x60dbd9,'target':()=>this['_getTargetForId'](_0x60dbd9),'context':{'type':'text','value':this['_getTextContext'](_0x60dbd9)}});const _0x3dc670=_0x29b572['_threadToController']['get'](_0x174a02)['view'],_0x40e3b1=_0xd6ec41['getByInnerView'](_0x3dc670);_0x40e3b1&&_0x46ec98['registerAnnotation'](_0x40e3b1);},{'priority':'low'}):_0x29b572['fetchCommentThread']({'channelId':_0x5508c8,'threadId':_0x60dbd9})['then'](_0x5a6b31=>{if('destroyed'!==_0x5ae3f5['state']){if(_0x174a02=_0x5a6b31,_0x174a02&&!_0x174a02['isAttached']){const _0x5627e0=_0x174a02['attachTo'](()=>this['_getTargetForId'](_0x60dbd9));_0x46ec98['registerAnnotation'](_0x5627e0),_0x174a02['isResolved']&&this['_reconvertMarkers'](_0x60dbd9);}else{if(!_0x174a02){const _0x5b5225=this['getAllMarkersForId'](_0x60dbd9);_0x5ae3f5['model']['change'](_0x1d06ff=>{for(const _0x5519e9 of _0x5b5225)_0x1d06ff['removeMarker'](_0x5519e9);});}}}}),_0x174a02;}['_handleThreadMarker'](_0x1d6b9b,_0x1fee8f){const _0x23b32e=this['_attachMarkerToThread'](_0x1d6b9b,_0x1fee8f);_0x23b32e&&!_0x23b32e['context']&&_0x23b32e['setContext']({'type':'text','value':this['_getTextContext'](_0x1fee8f)});}['_initAriaMarkerChangeAnnouncements'](){const _0xdd097a=this['editor'];ot(_0xdd097a['model'],({left:_0x222c6b,entered:_0x58ccc4})=>{for(const _0x42d5b4 of _0x222c6b)if(ht(_0x42d5b4)){_0xdd097a['ui']['ariaLiveAnnouncer']['announce'](E(_0xdd097a['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x453536 of _0x58ccc4)if(ht(_0x453536)){_0xdd097a['ui']['ariaLiveAnnouncer']['announce'](E(_0xdd097a['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x8b439e)));break;}});}}function dt(_0x2dcdef,_0x41cda1){return _0x41cda1?_0x2dcdef+':'+_0x41cda1:_0x2dcdef;}function er(_0x50aee8){const _0x1feb96=_0x50aee8['split'](':');return{'group':_0x1feb96[0x0],'id':_0x1feb96[0x1],'part':_0x1feb96[0x2]};}function mt(_0x53626e,_0x1aaf7c){const _0x2c40fb=_0x1aaf7c['schema'],_0x1054b2=_0x1aaf7c['createRange'](_0x53626e['start']);for(const _0x4240e6 of _0x53626e['getWalker']()){const {type:_0x341635,item:_0x35e218,nextPosition:_0x5c82ed}=_0x4240e6;if('text'===_0x341635||_0x2c40fb['isObject'](_0x35e218)){const _0x4affa3=_0x1aaf7c['createPositionBefore'](_0x35e218);_0x1054b2['isCollapsed']&&(_0x1054b2['start']=_0x4affa3),_0x1054b2['end']=_0x5c82ed;}}return _0x1054b2;}function ht(_0x2d987c){return'comment'===er(_0x2d987c['name'])['group'];}class i extends _0x454998{['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 _0x500b90=this['editor'],_0xe307a1=_0x500b90['plugins']['get'](o),_0x4d907d=_0x500b90['plugins']['get'](r),_0x56d8ab=_0x500b90['plugins']['get'](O),_0xa371e7=_0x500b90['plugins']['get'](P);_0x500b90['ui']['componentFactory']['add']('comment',()=>{const _0x285ad7=this['_createUIButton'](_0x367ece);return _0x285ad7['tooltip']=!0x0,_0x285ad7;}),_0x500b90['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x37c988)),_0xa371e7['addSourceCollector'](()=>{const _0x1a4269=[];for(const [_0x418b6e,_0x5753d2]of _0xe307a1['_threadToController']){const _0x24ed15=_0x4d907d['getAllMarkersForId'](_0x418b6e['id']),_0x33863b=_0x24ed15['map'](_0xe49f2d=>_0xe49f2d['getRange']());_0x24ed15['length']>0x0&&_0x1a4269['push']([_0x5753d2['view'],_0x33863b]);}return _0x1a4269;}),this['listenTo'](_0x56d8ab,'change:activeAnnotations',(_0x7d6427,_0x4dabfb,_0x57ba2a)=>{const _0x549bac=Array['from'](_0x57ba2a)['map'](_0x539d64=>_0x539d64['innerView'])['find'](_0x2230e7=>_0xe307a1['_viewToController']['has'](_0x2230e7));if(!_0x549bac)return void(_0x4d907d['activeMarker']=null);const _0x350165=_0xe307a1['_viewToController']['get'](_0x549bac)['model']['id'],_0x25a572='comment:'+_0x350165;_0x350165&&_0x4d907d['hasMarkerForId'](_0x350165)?_0x4d907d['activeMarker']=_0x25a572:_0x4d907d['activeMarker']&&(_0x4d907d['activeMarker']=null);}),this['listenTo'](_0xe307a1,'removeCommentThread',(_0x1181c2,{threadId:_0x325b99,isFromAdapter:_0x158d74})=>{!_0x158d74&&_0x500b90['ui']['focusTracker']['isFocused']&&_0x4d907d['hasMarkerForId'](_0x325b99)&&_0x500b90['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0xe307a1,'addComment',(_0x16062d,{threadId:_0x5e7d40,isFromAdapter:_0x59d8c6})=>{if(_0x59d8c6||!_0x4d907d['hasMarkerForId'](_0x5e7d40)||!_0xe307a1['hasCommentThread'](_0x5e7d40))return;0x1===_0xe307a1['getCommentThread'](_0x5e7d40)['length']&&(_0x500b90['editing']['view']['focus'](),_0x16062d['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x46116b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3aecd7;for(const _0x2003da in _0x46116b){const _0x422fad=_0x2003da,_0x3e843a=_0x46116b[_0x422fad];if('commentsLicenseKeyValid'==_0x3e843a||'commentsLicenseKeyInvalid'==_0x3e843a||'commentsLicenseKeyExpired'==_0x3e843a||'commentsLicenseKeyDomainLimit'==_0x3e843a||'commentsLicenseKeyNotAllowed'==_0x3e843a||'commentsLicenseKeyEvaluationLimit'==_0x3e843a||'commentsLicenseKeyTrialLimit'==_0x3e843a||'commentsLicenseKeyUsageLimit'==_0x3e843a){delete _0x46116b[_0x422fad],_0x3aecd7=_0x3e843a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3aecd7&&_0x46116b['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3aecd7&&_0x46116b['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3aecd7&&_0x46116b['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3aecd7&&_0x46116b['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3aecd7&&_0x46116b['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x3aecd7&&_0x46116b['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x3aecd7&&_0x46116b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x5c0cf1){const _0x44f45a=this['editor'],_0x5c63fd=new _0x5c0cf1(_0x44f45a['locale']),_0x188274=_0x44f45a['commands']['get']('addCommentThread');return _0x5c63fd['set']({'label':E(_0x44f45a['locale'],'Comment'),'icon':_0x4ad487}),_0x5c63fd['bind']('isEnabled')['to'](_0x188274),this['listenTo'](_0x5c63fd,'execute',()=>{_0x188274['execute']();}),_0x5c63fd;}}class s extends _0x454998{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x5ed0ac){super(_0x5ed0ac),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1a44a1,_0x23a7e8,_0x3304f5)=>{_0x3304f5?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5063db,_0x1546f7]of this['editor']['commands'])_0x1546f7['affectsData']&&'addCommentThread'!==_0x5063db&&_0x1546f7['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 _0x5d1c14=this['editor']['editing']['view']['document'];this['listenTo'](_0x5d1c14,'cut',_0x54d17b=>_0x54d17b['stop'](),{'priority':'highest'}),this['listenTo'](_0x5d1c14,'clipboardInput',_0x58d00d=>_0x58d00d['stop'](),{'priority':'highest'}),this['listenTo'](_0x5d1c14,'delete',_0x300b3e=>_0x300b3e['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0xbd13b2,_0x25adb6]of this['editor']['commands'])_0x25adb6['affectsData']&&'addCommentThread'!==_0xbd13b2&&_0x25adb6['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 _0x18f184{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3fbe45){super(_0x3fbe45),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x39bb00=this['context']['plugins']['get'](O);this['listenTo'](_0x39bb00,'_activateAnnotation',(_0x33d16f,_0xaa1d24)=>{for(const _0x3a2110 of this['activeUIs']){const _0x107380=this['_uis']['get'](_0x3a2110);(0x0,this['uisData']['get'](_0x3a2110)['filter'])(_0xaa1d24)&&_0x107380['setActiveAnnotation'](_0xaa1d24);}}),this['listenTo'](_0x39bb00,'_deactivateAllAnnotations',()=>{for(const _0x2dbac6 of this['activeUIs']){this['_uis']['get'](_0x2dbac6)['setActiveAnnotation'](null);}}),this['listenTo'](_0x39bb00['_visibleAnnotations'],'add',(_0x3773b7,_0xf3ccce)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xf3ccce);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x548b26){return this['activeUIs']['has'](_0x548b26);}['activate'](_0x88d65d,_0x72e3c0=this['defaultFilter']){const _0x1c127c=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x88d65d))throw new _0x3b855d('annotationsuis-missing-ui',this,{'uiName':_0x88d65d});this['isActive'](_0x88d65d)&&this['deactivate'](_0x88d65d),this['activeUIs']['add'](_0x88d65d);const _0x45b62e=new _();!function({source:_0x28afd9,target:_0x4f9121,filter:_0x5b90e8}){for(const _0x57d3b4 of _0x28afd9)_0x5b90e8(_0x57d3b4)&&_0x4f9121['add'](_0x57d3b4);_0x4f9121['listenTo'](_0x28afd9,'add',(_0x3bd403,_0x36bf78)=>{_0x5b90e8(_0x36bf78)&&_0x4f9121['add'](_0x36bf78);}),_0x4f9121['listenTo'](_0x28afd9,'remove',(_0x27572e,_0x544b09)=>{_0x4f9121['has'](_0x544b09)&&_0x4f9121['remove'](_0x544b09);});}({'source':_0x1c127c['_visibleAnnotations'],'target':_0x45b62e,'filter':_0x72e3c0}),this['uisData']['set'](_0x88d65d,{'collection':_0x45b62e,'filter':_0x72e3c0});const _0x2eb65c=this['_uis']['get'](_0x88d65d);_0x2eb65c['attach'](_0x45b62e),this['listenTo'](_0x2eb65c,'change:activeAnnotation',(_0x2c42f4,_0x43e0c1,_0x1f0148,_0x10241a)=>{_0x10241a&&_0x1c127c['_removeActiveAnnotation'](_0x10241a),_0x1f0148&&_0x1c127c['_addActiveAnnotation'](_0x1f0148);});}['deactivate'](_0xbf397){if(this['activeUIs']['delete'](_0xbf397),!this['_uis']['has'](_0xbf397))throw new _0x3b855d('annotationsuis-missing-ui',this,{'uiName':_0xbf397});const _0x4e18ea=this['_uis']['get'](_0xbf397);_0x4e18ea['detach'](),this['stopListening'](_0x4e18ea),this['uisData']['get'](_0xbf397)['collection']['destroy'](),this['uisData']['delete'](_0xbf397);}['switchTo'](_0x3e88a8){if(!this['_uis']['has'](_0x3e88a8))throw new _0x3b855d('annotationsuis-missing-ui',this,{'uiName':_0x3e88a8});const _0xf40931=this['context']['plugins']['get'](O),_0x365de0=Array['from'](_0xf40931['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3e88a8);const _0x47ebf5=this['_uis']['get'](_0x3e88a8);_0x47ebf5['setActiveAnnotation'](_0x365de0),_0x47ebf5['_setSelectedAnnotations']&&_0x365de0&&_0x47ebf5['_setSelectedAnnotations']([_0x365de0]);}['deactivateAll'](){for(const _0x40663d of this['activeUIs'])this['deactivate'](_0x40663d);}['register'](_0x48e47d,_0x4ca7c9){if(this['_uis']['has'](_0x48e47d))throw new _0x3b855d('annotationsuis-register-already-registered');if('function'!=typeof _0x4ca7c9['attach']||'function'!=typeof _0x4ca7c9['detach']||'function'!=typeof _0x4ca7c9['setActiveAnnotation'])throw new _0x3b855d('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x48e47d,_0x4ca7c9);}['refilterAnnotations'](){const _0x144ded=this['context']['plugins']['get'](O)['collection'],_0x1c6870=new Map(),_0x184034=Array['from'](this['activeUIs']);for(const _0x46a115 of this['activeUIs']){const _0x320a3e=this['uisData']['get'](_0x46a115)['collection'];for(const _0x3d4c7c of _0x320a3e)_0x1c6870['set'](_0x3d4c7c,_0x46a115);}for(const _0x2d2797 of _0x144ded){const _0x262950=_0x1c6870['get'](_0x2d2797);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2d2797);const _0xa3e16b=_0x184034['find'](_0x21cdef=>this['uisData']['get'](_0x21cdef)['filter'](_0x2d2797));_0x262950!==_0xa3e16b&&(_0x262950&&this['uisData']['get'](_0x262950)['collection']['remove'](_0x2d2797),_0xa3e16b&&this['uisData']['get'](_0xa3e16b)['collection']['add'](_0x2d2797));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x33ea9d){const _0x5dc8f1=[];for(const _0x581b99 of this['activeUIs']){(0x0,this['uisData']['get'](_0x581b99)['filter'])(_0x33ea9d)&&_0x5dc8f1['push'](_0x581b99);}if(_0x5dc8f1['length']>0x1)throw new _0x3b855d('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x5dc8f1,'annotationType':_0x33ea9d['type']});}}const pi=xt('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x50480e){super(_0x50480e);const _0x4582cc=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 _0x23af45(),this['focusCycler']=new _0x13d99f({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4582cc['to']('class')],'style':{'minHeight':_0x4582cc['to']('minHeight',_0x6cbd7c=>'number'==typeof _0x6cbd7c?pi(_0x6cbd7c+0xa):null)},'dir':_0x50480e['uiLanguageDirection'],'role':'application','aria-label':E(_0x50480e,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x50480e,'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',_0x42ff32=>{this['_updateItemPositionInFocusables'](_0x42ff32['source']);}),this['list']['forEach'](_0x35de4b=>{this['focusTracker']['add'](_0x35de4b['element']),this['_updateItemPositionInFocusables'](_0x35de4b);}),this['list']['on']('change',(_0x51b555,_0x23c272)=>{for(const _0xf0e488 of _0x23c272['removed'])this['focusTracker']['remove'](_0xf0e488['element']),this['focusables']['remove'](_0xf0e488);for(const _0x58fe41 of _0x23c272['added'])this['focusTracker']['add'](_0x58fe41['element']),this['_updateItemPositionInFocusables'](_0x58fe41);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x144c95){const _0x5efef6=this['focusables']['getIndex'](_0x144c95);let _0x1321b4,_0x238bb9;for(const _0x3e81d9 of this['focusables'])if(_0x144c95['top']<_0x3e81d9['top']){_0x1321b4=_0x3e81d9;break;}if(_0x238bb9=_0x1321b4?this['focusables']['getIndex'](_0x1321b4):this['focusables']['length'],-0x1!==_0x5efef6){if(_0x5efef6===_0x238bb9-0x1)return;this['focusables']['remove'](_0x144c95),_0x238bb9=_0x1321b4?this['focusables']['getIndex'](_0x1321b4):this['focusables']['length'];}this['focusables']['add'](_0x144c95,_0x238bb9);}}const Ht=xt('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x29fcd1){super(_0x29fcd1),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x15f18f,_0x33f960)=>_0x15f18f+_0x33f960),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x14740d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x14740d['to']('isAnimationDisabled',_0x433ecc=>_0x433ecc?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x14740d['to']('top',_0x1154eb=>Ht(_0x1154eb))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1db5fa=this['element']['clientHeight'];_0x1db5fa&&(this['height']=_0x1db5fa);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x18f184{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x777a9a){super(_0x777a9a),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 _0xbeb3c7=this['context']['config']['get']('sidebar.container');_0xbeb3c7&&this['setContainer'](_0xbeb3c7);}['setContainer'](_0x3c46c5){if(!y(_0x3c46c5))throw new _0x3b855d('sidebar-setcontainer-invalid-element');this['container']=_0x3c46c5;}['_attachToContainer']({viewClass:_0x411fc9='',spaceBetweenItems:_0x275ea1=0x19}={}){if(!y(this['container']))throw new _0x3b855d('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x411fc9,this['_spaceBetweenItems']=_0x275ea1;}['rearrange']({removedAnnotation:_0x57c596,previousAnnotation:_0x411fce,nextAnnotation:_0xd3312b}){const _0x2ef5af=this['getSidebarItemView'](_0x57c596);this['view']['list']['remove'](_0x2ef5af),this['_destroySidebarItemView'](_0x57c596),_0x411fce&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x411fce)),_0xd3312b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xd3312b)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1bd20d,activatedAnnotation:_0x4aeb58,disableAnimationOnActivatedAnnotation:_0x307d72}){if(this['_activeAnnotation']=_0x4aeb58,_0x1bd20d){_0x1bd20d['isActive']=!0x1;const _0x2c6682=this['getSidebarItemView'](_0x1bd20d);_0x2c6682&&_0x307d72&&(_0x2c6682['isAnimationDisabled']=!0x1);}if(_0x4aeb58){const _0x35e3db=this['getSidebarItemView'](_0x4aeb58);_0x35e3db&&(_0x4aeb58['isActive']=!0x0,_0x307d72&&(_0x35e3db['isAnimationDisabled']=!0x0,_0x35e3db['top']+=0x1),this['_alignToTargetRect'](_0x35e3db));}}['_detachFromContainer'](_0xc35621){if(this['view']['element']['remove'](),_0xc35621){for(const _0x621ba8 of _0xc35621)this['_destroySidebarItemView'](_0x621ba8);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3c01b8,_0x4e2099){_0x4e2099||(_0x4e2099=_0x3c01b8['view']);const _0x139620=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x139620,_0x3c01b8),this['_annotationToSidebarItemView']['set'](_0x3c01b8,_0x139620),_0x139620['content']['add'](_0x4e2099),this['listenTo'](_0x3c01b8['view'],'change:targetRect',(_0x507813,_0x43d893,_0x15ae77)=>{const _0x124623=this['_getTargetTop'](_0x3c01b8,_0x15ae77);_0x139620['_targetTop']!=_0x124623&&(_0x139620['_targetTop']=_0x124623,this['_setItemTop'](_0x139620,_0x124623));}),this['listenTo'](_0x139620,'change:top',()=>{this['_recalculate'](_0x139620,'top');}),this['listenTo'](_0x139620,'change:bottom',()=>{this['_recalculate'](_0x139620,'bottom');}),this['_alignToTargetRect'](_0x139620);const _0x33f636=this['_getItemBefore'](_0x139620);if(_0x33f636)this['_alignAfterItem'](_0x33f636,_0x139620)||this['_alignToTargetRect'](_0x139620);else this['_alignToTargetRect'](_0x139620);return this['_updateLastItem'](),this['view']['list']['add'](_0x139620),_0x139620;}['_alignForTopChange'](_0xbfb710){if(!_0xbfb710['content']['length'])return;const _0x524922=this['_getItemBefore'](_0xbfb710);if(!_0x524922)return;const _0x22c805=this['_sidebarItemViewToAnnotation']['get'](_0x524922),_0x561bf1=this['_activeAnnotation'];_0x561bf1&&_0x561bf1===_0x22c805?this['_alignAfterItem'](_0x524922,_0xbfb710):this['_alignBeforeItem'](_0xbfb710,_0x524922);}['_alignForBottomChange'](_0x32cbe9){if(!_0x32cbe9['content']['length'])return;const _0xb98eae=this['_getItemAfter'](_0x32cbe9);if(!_0xb98eae)return;const _0x5db298=this['_sidebarItemViewToAnnotation']['get'](_0xb98eae),_0x4d226d=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x50084e=this['_activeAnnotation'];_0x50084e&&_0x50084e===_0x5db298&&_0x4d226d?(this['_alignBeforeItem'](_0xb98eae,_0x32cbe9),this['_alignAfterItem'](_0x32cbe9,_0xb98eae)):_0x50084e&&_0x50084e===_0x5db298?this['_alignBeforeItem'](_0xb98eae,_0x32cbe9):this['_alignAfterItem'](_0x32cbe9,_0xb98eae);}['_recalculate'](_0x510ef8,_0x461780){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x38651e,changedProp:_0x31ae08}of this['_recalculateBuffer'])'top'===_0x31ae08?this['_alignForTopChange'](_0x38651e):this['_alignForBottomChange'](_0x38651e);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x510ef8,'changedProp':_0x461780});}['getSidebarItemView'](_0x284602){return this['_annotationToSidebarItemView']['get'](_0x284602);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0xd00451){const _0x160433=this['getSidebarItemView'](_0xd00451);this['stopListening'](_0x160433),this['stopListening'](_0xd00451['view']),_0x160433['destroy'](),this['_annotationToSidebarItemView']['delete'](_0xd00451),this['_sidebarItemViewToAnnotation']['delete'](_0x160433);}['_createSidebarView'](){const _0x3b926e=new H(this['context']['locale']);return _0x3b926e['render'](),this['on']('change:_lastItem',(_0x5cd06e,_0x254696,_0x5da4c3,_0x42ac52)=>{_0x42ac52&&_0x3b926e['unbind']('minHeight'),_0x5da4c3?_0x3b926e['bind']('minHeight')['to'](_0x5da4c3,'bottom'):_0x3b926e['minHeight']=null;}),_0x3b926e;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x361c4d){const _0x196212=this['_sidebarItemViewToAnnotation']['get'](_0x361c4d),_0x361bb4=_0x196212&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x196212)-0x1);return _0x361bb4&&this['getSidebarItemView'](_0x361bb4)||null;}['_getItemAfter'](_0xd7d27){const _0x5a57c7=this['_sidebarItemViewToAnnotation']['get'](_0xd7d27),_0x3ffc02=_0x5a57c7&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5a57c7)+0x1);return _0x3ffc02&&this['getSidebarItemView'](_0x3ffc02)||null;}['_alignBeforeItem'](_0x88822,_0x114173){_0x88822['updateHeight']();const _0xe046a5=G(_0x114173['bottom']+this['_spaceBetweenItems'],_0x88822['top']);return!!_0xe046a5&&(this['_setItemTop'](_0x114173,_0x114173['top']-_0xe046a5),!0x0);}['_alignAfterItem'](_0x5ea9bf,_0x29af0b){_0x5ea9bf['updateHeight']();const _0x4b9bd0=G(_0x5ea9bf['bottom']+this['_spaceBetweenItems'],_0x29af0b['top']);return!!_0x4b9bd0&&(this['_setItemTop'](_0x29af0b,_0x29af0b['top']+_0x4b9bd0,!0x1),!0x0);}['_alignToTargetRect'](_0x5ed7a7){const _0x151b38=this['_sidebarItemViewToAnnotation']['get'](_0x5ed7a7);if(!_0x151b38||!_0x151b38['target']||!_0x151b38['targetRect'])return;const _0x1a2862=this['_getTargetTop'](_0x151b38,_0x151b38['targetRect']);this['_setItemTop'](_0x5ed7a7,_0x1a2862);}['_getTargetTop'](_0x673787,_0xe33a3e){if(null===_0xe33a3e)return 0x0;if(_0x673787['target']instanceof _0x272831)return _0xe33a3e['top'];{const _0x46f019=new _0x272831(this['view']['element'])['top'];return _0xe33a3e['top']-_0x46f019;}}['_setItemTop'](_0x30b94b,_0x11148c,_0x4ad39b=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x4ad39b&&(_0x11148c=Math['max'](_0x11148c,this['_getMaxAvailableTop'](_0x30b94b))),_0x30b94b['top']=_0x11148c;}['_getMaxAvailableTop'](_0x32fdec){let _0x2edb43=this['_getItemBefore'](_0x32fdec),_0x13ea8f=0x0;for(;_0x2edb43;)_0x2edb43['updateHeight'](),_0x13ea8f+=this['_spaceBetweenItems']+_0x2edb43['height'],_0x2edb43=this['_getItemBefore'](_0x2edb43);return _0x13ea8f;}}function G(_0x2a03f2,_0x4d0ccf){return Math['max'](_0x2a03f2-_0x4d0ccf,0x0);}function y(_0x4b2e57){return null!==_0x4b2e57&&'object'==typeof _0x4b2e57&&0x1===_0x4b2e57['nodeType'];}class e extends _0x18f184{['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(_0x5df512){super(_0x5df512),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x104685(),this['_refreshPositioningDebounced']=_0x250c1b(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x39c675=this['context']['plugins']['get'](M),_0x528f7d=this['context']['plugins']['get'](z);_0x39c675['register']('wideSidebar',this),_0x528f7d['container']&&_0x39c675['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x24d4c8){if(_0x24d4c8===this['activeAnnotation'])return;const _0x3f31ff=this['context']['plugins']['get'](z);_0x3f31ff['_activeAnnotation']=_0x24d4c8;const _0x27dde4=this['activeAnnotation'];_0x3f31ff['refresh']({'blurredAnnotation':_0x27dde4,'activatedAnnotation':_0x24d4c8}),this['activeAnnotation']=_0x24d4c8;}['attach'](_0xc1c532){this['annotations']=_0xc1c532;const _0x24161d=this['context']['plugins']['get'](z);if(_0x24161d['_annotations']=_0xc1c532,this['isAttached'])throw new _0x3b855d('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x24161d,'set:container',()=>{this['detach'](),this['listenTo'](_0x24161d,'change:container',_0x3dd32f=>{_0x3dd32f['off'](),this['attach'](_0xc1c532);});}),_0x24161d['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x1fec42=_0x190557=>{_0x190557['updateTargetRect'](),_0x24161d['addAnnotation'](_0x190557);};for(const _0x4cfa98 of _0xc1c532)_0x1fec42(_0x4cfa98);this['listenTo'](_0xc1c532,'add',(_0x21327c,_0x1f1c6f)=>{_0x1fec42(_0x1f1c6f);}),this['listenTo'](_0xc1c532,'remove',(_0x35f9f1,_0x581d5b,_0x48559c)=>{_0x24161d['rearrange']({'removedAnnotation':_0x581d5b,'previousAnnotation':_0xc1c532['get'](_0x48559c-0x1),'nextAnnotation':_0xc1c532['get'](_0x48559c+0x1)}),_0x581d5b===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0xc1c532,'focus',(_0x4db745,_0x1c9606)=>{this['setActiveAnnotation'](_0x1c9606);}),this['listenTo'](_0xc1c532,'blur',()=>{this['setActiveAnnotation'](null);});const _0x4c6c6b=this['context']instanceof _0x300bcf?this['context']['editors']:new _0x104685([this['context']]);for(const _0x51e327 of _0x4c6c6b)this['_integrateWithEditorAnnotations'](_0x51e327);this['listenTo'](_0x4c6c6b,'add',(_0x15c32a,_0x5c3825)=>{this['listenTo'](_0x5c3825,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5c3825);});}),this['listenTo'](_0x4c6c6b,'remove',(_0x551eaf,_0x114488)=>{_0x114488['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x114488['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3b855d('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4f7f95=this['context']['plugins']['get'](z);_0x4f7f95['_detachFromContainer'](this['annotations']),this['stopListening'](_0x4f7f95),this['stopListening'](this['annotations']),this['context']instanceof _0x300bcf&&this['stopListening'](this['context']['editors']);for(const _0x40b366 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x40b366);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x372b91){if(!_0x372b91['plugins']['has']('EditorAnnotations'))return;const _0x35a13e=_0x372b91['plugins']['get']('EditorAnnotations'),_0x54d9e9=()=>{const _0x116a80=_0x35a13e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x116a80[0x0]||null);};this['listenTo'](_0x35a13e,'refresh',_0x54d9e9),this['listenTo'](_0x35a13e,'blur',(_0x1dd00f,{isAnnotationTracked:_0x15c813})=>{this['activeAnnotation']&&_0x15c813(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x35a13e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x3da9fc=>{_0x35a13e['hasDomSelection']()&&(_0x54d9e9(),_0x3da9fc['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x35a13e);}['_destroyEditorAnnotationsIntegration'](_0x510084){this['stopListening'](_0x510084),this['_editorAnnotations']['remove'](_0x510084);}}class C extends _0x367ece{['counterView'];constructor(_0x182115){super(_0x182115);const _0x65d2fa=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x35e56f,_0x350668)=>_0x35e56f?'...':_0x350668['toString']()),this['set']('annotationType',''),this['icon']=_0x4ad487,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x65d2fa['to']('annotationType',_0x2f5fc0=>'ck-annotation-counter__badge--'+_0x2f5fc0),_0x65d2fa['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x65d2fa['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x18f184{['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(_0x4135d8){super(_0x4135d8),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x1cb629),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x104685(),this['_refreshPositioningDebounced']=_0x250c1b(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x4f9103(this['context']['locale']),this['balloonPanelView']=new _0x5eba4e(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x1d91c7){this['annotations']=_0x1d91c7;const _0x1900ab=this['context']['plugins']['get'](z),_0x45edc4=this['balloonPanelView'];if(_0x1900ab['_annotations']=_0x1d91c7,this['isAttached'])throw new _0x3b855d('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1900ab,'set:container',()=>{this['detach'](),this['listenTo'](_0x1900ab,'change:container',_0x32d2d8=>{_0x32d2d8['off'](),this['attach'](_0x1d91c7);});}),_0x1900ab['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3be871=_0x56ad34=>{const _0x56cb01=new C(this['context']['locale']);_0x1900ab['addAnnotation'](_0x56ad34,_0x56cb01),this['_annotationToNarrowView']['set'](_0x56ad34,_0x56cb01),_0x56cb01['bind']('isDirty','annotationType','number')['to'](_0x56ad34['view'],'isDirty','type','length'),_0x56cb01['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x45edc4['content']['first']!==_0x56ad34['view']?(this['_showBalloon'](_0x56ad34),_0x56ad34['view']['element']['focus'](),this['setActiveAnnotation'](_0x56ad34)):this['setActiveAnnotation'](null);});};for(const _0x2a0fb9 of _0x1d91c7)_0x3be871(_0x2a0fb9);this['listenTo'](_0x1d91c7,'add',(_0x3f5a3c,_0x54a1d8)=>{_0x3be871(_0x54a1d8);}),this['listenTo'](_0x1d91c7,'remove',(_0x3f4eef,_0xd5210a,_0x2b437d)=>{this['_annotationToNarrowView']['get'](_0xd5210a)['destroy'](),this['_annotationToNarrowView']['delete'](_0xd5210a),_0x1900ab['rearrange']({'removedAnnotation':_0xd5210a,'previousAnnotation':_0x1d91c7['get'](_0x2b437d-0x1),'nextAnnotation':_0x1d91c7['get'](_0x2b437d+0x1)}),_0xd5210a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x1d91c7,'focus',(_0x5b4d2d,_0x5b68cc)=>{this['setActiveAnnotation'](_0x5b68cc);}),this['listenTo'](_0x1d91c7,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xe5ce78,_0x27bdeb)=>{_0x27bdeb['keyCode']===_0x4e1d06['esc']&&_0x45edc4['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x45edc4['content']['first']),this['_hideBalloon'](),_0x27bdeb['stopPropagation'](),_0x27bdeb['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x32d777,_0x10bb87)=>{const _0x2b305c=_0x10bb87['target'];_0x45edc4['isVisible']&&_0x45edc4['element']['contains'](_0x2b305c)||_0x1900ab['view']['element']['contains'](_0x2b305c)||_0x32d777['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x41be15=>_0x41be15['contains'](_0x2b305c))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x23603f=this['context']instanceof _0x300bcf?this['context']['editors']:new _0x104685([this['context']]);for(const _0x504d27 of _0x23603f)this['_integrateWithEditorAnnotations'](_0x504d27);this['listenTo'](_0x23603f,'add',(_0x5755bd,_0x442d80)=>{this['listenTo'](_0x442d80,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x442d80);});}),this['listenTo'](_0x23603f,'remove',(_0x483a9f,_0x2227f2)=>{_0x2227f2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2227f2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1695f0){if(_0x1695f0===this['activeAnnotation'])return;const _0x110bfc=this['context']['plugins']['get'](z);if(_0x110bfc['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1695f0,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1695f0)_0x110bfc['getSidebarItemView'](_0x1695f0)?this['_showBalloon'](_0x1695f0):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x1695f0;}['detach'](){if(!this['isAttached'])throw new _0x3b855d('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5d3a3a=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x11d57e=>_0x11d57e['destroy']()),this['_annotationToNarrowView']['clear'](),_0x5d3a3a['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x300bcf&&this['stopListening'](this['context']['editors']);for(const _0x396b0d of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x396b0d);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'](_0x3bc8ab){if(!_0x3bc8ab['plugins']['has']('EditorAnnotations'))return;const _0x5ae04e=_0x3bc8ab['plugins']['get']('EditorAnnotations'),_0x4cdb82=this['context']['plugins']['get'](z),_0x1683e2=this['annotations'],_0x553066=this['balloonPanelView'],_0x4e0b1d=()=>{const _0x56d157=_0x5ae04e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x56d157),this['setActiveAnnotation'](_0x56d157[0x0]||null);};this['listenTo'](_0x5ae04e,'refresh',_0x4e0b1d),this['listenTo'](_0x5ae04e,'blur',(_0x16761f,{isAnnotationTracked:_0xa25e3c})=>{this['activeAnnotation']&&_0xa25e3c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x5ae04e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1683e2,'blur',_0x1f7a69=>{_0x5ae04e['hasDomSelection']()&&_0x1f7a69['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0xdda906,_0x347c8b)=>{const _0x5133fe=_0x347c8b['target'];_0x553066['isVisible']&&_0x553066['element']['contains'](_0x5133fe)||_0x4cdb82['view']['element']['contains'](_0x5133fe)||this['activeAnnotation']&&_0x5ae04e['hasDomSelection']()&&(_0x4e0b1d(),_0xdda906['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x5ae04e);}['_destroyEditorAnnotationsIntegration'](_0x5e1f91){_0x5e1f91&&(this['stopListening'](_0x5e1f91),this['_editorAnnotations']['remove'](_0x5e1f91));}['_setSelectedAnnotations'](_0x33c578){for(const _0x44d372 of this['_selectedAnnotations'])_0x33c578['includes'](_0x44d372)||this['_manuallyClosedAnnotationViews']['delete'](_0x44d372['view']);this['_selectedAnnotations']=_0x33c578;}['_refreshPositioning'](){const _0x4682ae=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x4682ae['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x1a0206){if(this['_manuallyClosedAnnotationViews']['has'](_0x1a0206['view']))return;const _0x54b458=this['balloonPanelView']['content']['first'];_0x54b458!==_0x1a0206['view']?(_0x54b458&&this['_detachListeners'](_0x54b458),this['_attachListeners'](_0x1a0206['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x1a0206['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x378913=this['balloonPanelView']['content']['first'],_0x14d4ef=_0x378913&&this['annotations']['getByView'](_0x378913);if(!_0x14d4ef||!this['_annotationToNarrowView']['has'](_0x14d4ef))return;const _0xe0bf3a=this['_annotationToNarrowView']['get'](_0x14d4ef)['element'],_0x341ff4=(function(){const _0xcfc36a=_0x5eba4e['defaultPositions'];return[_0xcfc36a['southArrowNorthEast'],_0xcfc36a['northArrowSouthEast'],_0xcfc36a['southArrowNorth'],_0xcfc36a['northArrowSouth'],_0xcfc36a['southArrowNorthWest'],_0xcfc36a['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xe0bf3a,'positions':_0x341ff4});}['_hideBalloon'](){const _0xec68af=this['balloonPanelView'],_0x1ad347=_0xec68af['content']['first'];_0x1ad347&&(this['_detachListeners'](_0x1ad347),_0xec68af['unpin'](),_0xec68af['content']['clear']());}['_attachListeners'](_0x4a35ed){this['listenTo'](_0x4a35ed,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4a35ed,'Esc',(_0x424393,_0x2e11d3)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4a35ed),this['_hideBalloon'](),_0x2e11d3();});}['_detachListeners'](_0x4fea06){this['stopListening'](_0x4fea06);}}class c extends _0x454998{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x109ba7,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x208831){super(_0x208831),_0x208831['editing']['view']['addObserver'](_0x2a0f49),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x208831['plugins']['get'](_0x109ba7),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x523f18=this['editor']['plugins']['get'](M);_0x523f18['context']===this['editor']&&(_0x523f18['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x4dcd8e,_0x448f70)=>{const _0xdcce32=this['_balloon'];if(this['isAttached']&&_0xdcce32['visibleView']){const _0x5786b7=this['annotations']['getByView'](_0xdcce32['visibleView']);_0x5786b7&&this['_closeAnnotation'](_0x5786b7),_0x448f70();}}));}['afterInit'](){const _0x14706b=this['editor']['plugins']['get'](M);_0x14706b['context']===this['editor']&&(_0x14706b['hasActive']()||_0x14706b['switchTo']('inline'));}['setActiveAnnotation'](_0x1aa392){_0x1aa392!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1aa392&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1aa392)&&this['_addAnnotationToBalloon'](_0x1aa392,!0x0),_0x1aa392['isActive']=!0x0),_0x1aa392||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1aa392);}['attach'](_0xda74f4){this['annotations']=_0xda74f4;const _0x583bdf=this['editor']['plugins']['get'](M),_0x5623e3=this['_balloon'];if(this['isAttached'])throw new _0x3b855d('inlineannotations-attach-already-attached',this);if(_0x583bdf['context']!==this['editor'])throw new _0x3b855d('inlineannotations-not-allowed-with-context',this);const _0x57fb8b=this['editor']['plugins']['get'](P);this['listenTo'](_0x57fb8b,'refresh',()=>{const _0xf36645=_0x57fb8b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x4e36eb,_0x19c33f;!this['_forceRefresh']&&(_0x4e36eb=_0xf36645,_0x19c33f=this['_selectedAnnotations'],_0x4e36eb['length']===_0x19c33f['length']&&_0x4e36eb['every'](_0x32e7a6=>_0x19c33f['includes'](_0x32e7a6)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0xf36645),this['setActiveAnnotation'](_0xf36645[0x0]||null));}),this['listenTo'](_0x57fb8b,'blur',(_0x27d0d9,{isAnnotationTracked:_0x361b1a})=>{this['activeAnnotation']&&_0x361b1a(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x4e8c5e,_0x311ef2,_0x214c52)=>{_0x214c52||this['setActiveAnnotation'](null);}),this['listenTo'](_0xda74f4,'remove',(_0x4800de,_0x5173f0)=>{this['_removeAnnotationFromBalloon'](_0x5173f0),_0x5173f0===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5623e3,'change:visibleView',(_0x32425,_0x436bc2,_0x750ab3,_0x32bd03)=>{_0x32bd03&&this['stopListening'](_0x32bd03);const _0x4f617e=_0xda74f4['getByView'](_0x750ab3);_0x750ab3&&_0x4f617e&&(this['listenTo'](_0x750ab3,'change:height',()=>{_0x5623e3['updatePosition']();}),this['listenTo'](_0x750ab3,'Esc',()=>{this['_closeAnnotation'](_0x4f617e),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4f617e&&this['setActiveAnnotation'](_0x4f617e));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5623e3['visibleView']&&(_0xda74f4['getByView'](_0x5623e3['visibleView'])&&_0x5623e3['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 _0x3b855d('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x2c567b of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x2c567b);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x242891){for(const _0x4e3c30 of this['_selectedAnnotations'])_0x242891['includes'](_0x4e3c30)||this['_manuallyClosed']['delete'](_0x4e3c30);for(const _0x398905 of this['annotations'])_0x242891['includes'](_0x398905)||this['_removeAnnotationFromBalloon'](_0x398905);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5e1d7c of _0x242891)this['_addAnnotationToBalloon'](_0x5e1d7c);}this['_selectedAnnotations']=_0x242891;}['_addAnnotationToBalloon'](_0x45e384,_0x2e665a=!0x1){this['_manuallyClosed']['has'](_0x45e384)||(this['_addedAnnotations']['has'](_0x45e384)||this['_balloon']['hasView'](_0x45e384['view'])||(this['_addedAnnotations']['add'](_0x45e384),this['_balloon']['add']({'stackId':_0x45e384['view']['id'],'view':_0x45e384['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x45e384)}})),_0x2e665a&&this['_balloon']['showStack'](_0x45e384['view']['id']));}['_getBalloonTargetForAnnotation'](_0x55f428){const _0x2d5bdf=_0x55f428['target'],_0x103912=this['editor']['editing']['view'],_0x1c9e31=_0x103912['document']['selection']['getFirstRange'](),_0x34225b=_0x103912['domConverter']['viewRangeToDom'](_0x1c9e31);if(_0x34225b['collapse'](!0x0),_0x2d5bdf){if(_0x2d5bdf instanceof _0x272831)return _0x2d5bdf;let _0x52df5e=[];for(const _0x2bdada of _0x2d5bdf)_0x52df5e['push'](...B(_0x2bdada['getClientRects']()));_0x52df5e=function(_0x3f7528){const _0x3cb04c=[];let _0x2d23f7=_0x3f7528[0x0];for(let _0x544e91=0x1;_0x544e91<_0x3f7528['length'];_0x544e91++)F(_0x2d23f7,_0x3f7528[_0x544e91])?_0x2d23f7['width']+=_0x3f7528[_0x544e91]['width']:(_0x3cb04c['push'](_0x2d23f7),_0x2d23f7=_0x3f7528[_0x544e91]);return _0x3cb04c['push'](_0x2d23f7),_0x3cb04c;}(_0x52df5e);const _0xcebee9=_0x34225b['getBoundingClientRect']();return _0x52df5e['find'](_0x587d0b=>_0x587d0b['top']<=_0xcebee9['top']&&_0x587d0b['bottom']>=_0xcebee9['bottom']&&_0x587d0b['left']<=_0xcebee9['left']&&_0x587d0b['right']>=_0xcebee9['right'])||_0x52df5e[0x0];}return _0x55f428['targetRect']||_0x34225b;}['_removeAnnotationFromBalloon'](_0x4c394a){this['_addedAnnotations']['has'](_0x4c394a)&&this['_balloon']['hasView'](_0x4c394a['view'])&&(this['_addedAnnotations']['delete'](_0x4c394a),this['_balloon']['remove'](_0x4c394a['view']));}['_closeAnnotation'](_0xfe4705){this['_manuallyClosed']['add'](_0xfe4705),this['_removeAnnotationFromBalloon'](_0xfe4705);}}function B(_0x366bef){return Array['from'](_0x366bef)['map'](DOMRect['fromRect']);}function F(_0x2fcabb,_0xa72395){return _0x2fcabb['top']===_0xa72395['top']&&_0x2fcabb['bottom']===_0xa72395['bottom']&&_0x2fcabb['right']===_0xa72395['left'];}class it extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x8d4fc1,_0x2402c7){super(_0x8d4fc1),this['set']('isEmpty',!_0x2402c7['length']),this['focusTracker']=new _0x23af45(),this['_annotationViews']=_0x2402c7,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x13d99f({'focusables':_0x2402c7,'focusTracker':this['focusTracker']}),this['listenTo'](_0x2402c7,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x2402c7,'remove',(_0x32cdc9,_0x256b11)=>{_0x256b11['isActive']&&this['focus'](),_0x2402c7['length']||(this['isEmpty']=!0x0);});const _0x11953c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x8d4fc1,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x2402c7},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x11953c['if']('isEmpty','ck-hidden',_0x5ddc74=>!_0x5ddc74)]},'children':[{'text':E(_0x8d4fc1,'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 _0xd3f9f5 of this['_annotationViews'])this['focusTracker']['add'](_0xd3f9f5['element']);this['_annotationViews']['on']('change',(_0x510e01,{added:_0x299550,removed:_0x4f3337})=>{for(const _0x1a8afa of _0x299550)this['focusTracker']['add'](_0x1a8afa['element']);for(const _0x4dce7e of _0x4f3337)this['focusTracker']['remove'](_0x4dce7e['element']);});}}class f extends _0x18f184{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0xa0cf82){super(_0xa0cf82),this['archivedThreads']=new _0x104685();}['init'](){const _0x31032e=this['context'],_0x16934f=_0x31032e['plugins']['get'](o),_0x570f74=_0x31032e['plugins']['get'](O);this['listenTo'](_0x16934f,'addCommentThread',(_0x5a6c9f,{threadId:_0x34baad})=>{const _0x3504b6=_0x16934f['getCommentThread'](_0x34baad);_0x3504b6['archivedAt']&&this['archivedThreads']['add'](_0x3504b6,this['_calculatePosition'](_0x3504b6['archivedAt'])),this['listenTo'](_0x3504b6,'change:archivedAt',(_0xfa0754,_0x301a49,_0x2c9336)=>{_0x2c9336?this['archivedThreads']['has'](_0x3504b6)||this['archivedThreads']['add'](_0x3504b6,this['_calculatePosition'](_0x3504b6['archivedAt'])):this['archivedThreads']['has'](_0x3504b6)&&this['archivedThreads']['remove'](_0x3504b6);});}),this['listenTo'](_0x16934f,'removeCommentThread',(_0x14c379,{threadId:_0x252853})=>{const _0x4aa41f=_0x16934f['getCommentThread'](_0x252853);this['stopListening'](_0x4aa41f),this['archivedThreads']['has'](_0x4aa41f)&&this['archivedThreads']['remove'](_0x4aa41f);},{'priority':'highest'}),this['listenTo'](_0x570f74['collection'],'focus',(_0x3d5510,_0x51b508)=>{_0x51b508['isVisible']||(_0x51b508['isActive']=!0x0,_0x570f74['activate'](_0x51b508));});}['_calculatePosition'](_0x301876){const _0x48ff90=[...this['archivedThreads']]['findIndex'](_0x20650b=>_0x20650b['archivedAt']<_0x301876);return _0x48ff90>-0x1?_0x48ff90:this['archivedThreads']['length'];}}class a extends _0x454998{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x3afdf9];}constructor(_0x42f296){super(_0x42f296),this['annotationViews']=new _0x245df5(),this['_pendingThreads']=[];}['init'](){const _0x5c38d6=this['editor'],_0x2df15b=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x5c38d6['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x367ece,!0x0)),_0x5c38d6['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x4b9faa=this['_createCommentsArchiveButton'](_0x37c988);return _0x4b9faa['set']({'role':'menuitemcheckbox'}),_0x4b9faa;});const _0x4b41ef=_0x5c38d6['plugins']['get'](f),_0x17fcb8=_0x5c38d6['plugins']['get']('Annotations'),_0x521b80=_0x5c38d6['plugins']['get']('CommentsRepository');_0x4b41ef['archivedThreads']['forEach'](_0x49eeb0=>{this['_handleNewThread'](_0x49eeb0);}),this['listenTo'](_0x4b41ef['archivedThreads'],'add',(_0x37de12,_0x24c22d)=>{this['_handleNewThread'](_0x24c22d);}),this['listenTo'](_0x17fcb8['collection'],'add',(_0xaf51d1,_0x277ffe)=>{const _0x547564=this['_pendingThreads']['find'](_0x2ae67c=>{const _0x3b376c=_0x521b80['_threadToController']['get'](_0x2ae67c);return _0x3b376c&&_0x277ffe['innerView']===_0x3b376c['view'];});if(_0x547564){const _0x344c11=this['_calculatePosition'](_0x547564['archivedAt']);this['annotationViews']['add'](_0x277ffe['view'],_0x344c11),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x547564),0x1);}}),this['listenTo'](_0x4b41ef['archivedThreads'],'remove',(_0x194f7d,_0x23c95e)=>{const _0x158e56=_0x5c38d6['config']['get']('collaboration.channelId');if(!_0x158e56||_0x23c95e['channelId']===_0x158e56){if(this['_pendingThreads']['includes'](_0x23c95e))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x23c95e),0x1);else{const _0xb99e0e=_0x521b80['_threadToController']['get'](_0x23c95e),_0x731148=_0x17fcb8['getByInnerView'](_0xb99e0e['view']);this['annotationViews']['remove'](_0x731148['view']),this['stopListening'](_0x731148['focusableElements']);}}}),this['listenTo'](_0x17fcb8['collection'],'add',(_0x20361c,_0x222a49)=>{this['listenTo'](_0x222a49,'escape',_0x2df15b);}),this['listenTo'](_0x17fcb8['collection'],'remove',(_0x56c1ad,_0x876417)=>{this['stopListening'](_0x876417,'escape',_0x2df15b);});}['_handleNewThread'](_0x1ce2d7){const _0x5b09bb=this['editor']['plugins']['get']('CommentsRepository'),_0x498246=this['editor']['plugins']['get']('Annotations'),_0x4f7d23=this['editor']['config']['get']('collaboration.channelId');if(!_0x4f7d23||_0x1ce2d7['channelId']===_0x4f7d23){const _0x27b8c2=_0x5b09bb['_threadToController']['get'](_0x1ce2d7);if(!_0x27b8c2)return void this['_pendingThreads']['push'](_0x1ce2d7);const _0x216ead=this['_calculatePosition'](_0x1ce2d7['archivedAt']),_0x445490=_0x498246['getByInnerView'](_0x27b8c2['view']);_0x445490['isVisible']&&_0x498246['_visibleAnnotations']['remove'](_0x445490),this['annotationViews']['add'](_0x445490['view'],_0x216ead);}}['_calculatePosition'](_0x300e84){const _0x4b575e=this['editor']['config']['get']('collaboration.channelId'),_0x4b1ed2=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x5e9aab=>_0x5e9aab['channelId']===_0x4b575e)['findIndex'](_0x416d29=>_0x416d29['archivedAt']<_0x300e84);return _0x4b1ed2<0x0||_0x4b1ed2>this['annotationViews']['length']?this['annotationViews']['length']:_0x4b1ed2-0x1;}['_toggleDialog'](){const _0x4dca63=this['editor'],_0x80c2a7=_0x4dca63['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new it(_0x4dca63['locale'],this['annotationViews'])),'commentsArchive'===_0x80c2a7['id']?_0x80c2a7['hide']():_0x80c2a7['show']({'id':'commentsArchive','title':E(_0x4dca63['locale'],'COMMENTS_ARCHIVE'),'icon':_0x17b757,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':tt['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x8d00c7,_0x570e97=!0x1){const _0x406e66=this['editor']['locale'],_0x5275ae=this['editor']['plugins']['get']('Dialog'),_0x254d05=new _0x8d00c7(_0x406e66);return _0x254d05['bind']('isEnabled')['to'](this,'isEnabled'),_0x254d05['bind']('isOn')['to'](_0x5275ae,'id',_0x45129b=>'commentsArchive'===_0x45129b),_0x254d05['set']({'label':E(_0x406e66,'COMMENTS_ARCHIVE'),'icon':_0x17b757,'isToggleable':!0x0}),_0x570e97&&(_0x254d05['tooltip']=!0x0),this['listenTo'](_0x254d05,'execute',()=>this['_toggleDialog']()),_0x254d05;}['_hideDialogOnAnnotationEscape']=_0x19776d=>{const _0x47a352=_0x19776d['source'];if(!this['annotationViews']['has'](_0x47a352['view']))return;const _0x4930b3=this['editor']['plugins']['get']('Dialog');_0x4930b3['isOpen']&&'commentsArchive'===_0x4930b3['id']&&(_0x4930b3['hide'](),_0x19776d['stop']());};}class p extends _0x454998{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,_ as AnnotationCollection,S as AnnotationView,O as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,fi as Comment,ui as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar};