@ckeditor/ckeditor5-comments 0.0.0-nightly-20241115.0 → 0.0.0-nightly-20241117.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) 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/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +15 -15
  148. package/src/annotations/annotation.js +2 -2
  149. package/src/annotations/annotationcollection.js +1 -1
  150. package/src/annotations/annotations.js +1 -1
  151. package/src/annotations/annotationsuis.js +1 -1
  152. package/src/annotations/editorannotations.js +1 -1
  153. package/src/annotations/inlineannotations.js +1 -1
  154. package/src/annotations/narrowsidebar.js +1 -1
  155. package/src/annotations/sidebar.js +1 -1
  156. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  157. package/src/annotations/view/annotationview.js +1 -1
  158. package/src/annotations/view/sidebaritemview.js +1 -1
  159. package/src/annotations/view/sidebarview.js +1 -1
  160. package/src/annotations/widesidebar.js +1 -1
  161. package/src/comments/addcommentthreadcommand.js +1 -1
  162. package/src/comments/commentsarchive.js +1 -1
  163. package/src/comments/commentsarchiveui.js +1 -1
  164. package/src/comments/commentsediting.js +1 -1
  165. package/src/comments/commentsrepository.js +3 -3
  166. package/src/comments/commentsui.js +1 -1
  167. package/src/comments/integrations/clipboard.js +1 -1
  168. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  169. package/src/comments/integrations/importword.js +1 -1
  170. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  171. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  172. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  173. package/src/comments/ui/commentthreadcontroller.js +2 -2
  174. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  175. package/src/comments/ui/view/basecommentview.js +1 -1
  176. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  177. package/src/comments/ui/view/commentcontentview.js +1 -1
  178. package/src/comments/ui/view/commentinputview.js +1 -1
  179. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  180. package/src/comments/ui/view/commentslistview.js +1 -1
  181. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  182. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  183. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  184. package/src/comments/ui/view/commentthreadview.js +2 -2
  185. package/src/comments/ui/view/commentview.js +2 -2
  186. package/src/comments.js +1 -1
  187. package/src/commentsonly.js +1 -1
  188. package/src/index.js +1 -1
  189. package/src/utils/common-translations.js +1 -1
  190. 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 _0x405072,icons as _0x76e100,ContextPlugin as _0x18e15c,PendingActions as ht,Command as _0x1cc93c,Plugin as _0x278642,Context as _0xf7a3ee}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x4b3b0f,uid as _0x319432,KeystrokeHandler as jt,FocusTracker as _0x21d3e7,diff as _0x2b57d5,Collection as _0x1eeea7,Rect as _0x8d8dd5,CKEditorError as _0x173c60,first as _0x1b7f73,priorities as Wt,scrollViewportToShowTarget as ot,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x323ec6,keyCodes as _0x4d31aa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5c6633,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x38aeda,trimHtml as _0x171e76,LateFocusDropdownButtonView as _0x512421,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x5c306f}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x2ef6cc}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x13c52f,ViewCollection as _0x32be5d,createDropdown as _0x45a245,ListView as _0x5e2782,focusChildOnDropdownOpen as _0x57b6ac,ListItemView as _0x3577c7,MenuBarMenuListItemButtonView as _0x4cb8b6,BodyCollection as _0x4f2f29,BalloonPanelView as _0x2e0bf4,ContextualBalloon as _0x1a042a,Dialog as _0x2211e3,DialogViewPosition as _0x314e1d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x185e63}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x417e9e}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
- _0x4b3b0f(){['model'];['view'];constructor(_0x7ea78f,_0x1da996){super(),this['model']=_0x7ea78f,this['model']['_isAttached']=!0x0,this['view']=_0x1da996,this['listenTo'](_0x1da996,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x1da996,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x1da996,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x1da996,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x1da996,'addComment',(_0x463e4a,_0x396ecc)=>this['addComment'](_0x396ecc)),this['listenTo'](_0x1da996,'updateComment',(_0x134f25,_0x145895,_0x574641)=>this['updateComment'](_0x145895,_0x574641)),this['listenTo'](_0x1da996,'removeComment',(_0x4b53a7,_0x5ae655)=>this['removeComment'](_0x5ae655));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x140495){this['model']['addComment']({'content':_0x140495,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x456a98,_0x2de46a){this['model']['getComment'](_0x456a98)['update']({'content':_0x2de46a});}['removeComment'](_0x376c95){this['model']['getComment'](_0x376c95)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x5146a2,_0x31dee4,_0x3a4e43){const t=_0x5146a2['t'];switch(_0x31dee4){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'},_0x3a4e43);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'},_0x3a4e43);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'},_0x3a4e43);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'},_0x3a4e43);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3a4e43);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'},_0x3a4e43);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'},_0x3a4e43);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'},_0x3a4e43);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(_0x5c4503,_0x25eebf){super(_0x5c4503);const _0x38d8e1=_0x319432();this['main']=this['createCollection'](),this['editable']=new $t(_0x5c4503,_0x25eebf,void 0x0,{'label':()=>S(_0x5c4503,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x5c4503['uiLanguageDirection'],'lang':_0x5c4503['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x38d8e1},'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(_0x49628b){super(_0x49628b),this['view']=new Vt(_0x49628b['locale'],_0x49628b['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1f3586=this['editor']['editing']['view'],_0x37921f=this['view']['editable'],_0xfbbc1b=_0x1f3586['document']['getRoot']();_0x37921f['name']=_0xfbbc1b['rootName'],this['view']['render']();const _0x485477=_0x37921f['element'];this['setEditableElement'](_0x37921f['name'],_0x485477),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1f3586['attachDomRoot'](_0x485477),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x4b3b0f(_0x405072){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x3fc2eb={}){function _0x1bc1da(_0x2b19c9){return _0x2b19c9['map'](_0x3699bf=>String['fromCharCode'](_0x3699bf))['join']('');}(_0x3fc2eb=Object['assign']({},_0x3fc2eb))['plugins']||(_0x3fc2eb['plugins']=Rt['defaultPlugins']),super(_0x3fc2eb),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[_0x1bc1da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bc1da([0x76,0x69,0x65,0x77])][_0x1bc1da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bc1da([0x61,0x75,0x74,0x6f]),this[_0x1bc1da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1bc1da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bc1da([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1bc1da([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1bc1da([0x6f,0x6b])});}['create'](){const _0x42c967=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x42c967))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x481a87=>{const _0x2ffa6f=this['model']['document']['getRoot'](),_0x10831a=_0x2ffa6f&&_0x2ffa6f['getChild'](_0x2ffa6f['childCount']-0x1);_0x481a87['setSelection'](_0x10831a,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2ae8c6=this['editing']['view'],_0x427e1b=_0x2ae8c6['document']['getRoot'](),_0x5d7a27=_0x427e1b['getChild'](0x0);_0x427e1b['childCount']>0x1||!_0x5d7a27||'p'!=_0x5d7a27['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x2ae8c6,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x5d7a27['placeholder']=this['placeholder']),St({'view':_0x2ae8c6,'element':_0x5d7a27,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5d7a27);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x397a2c,_0x9fa218={}){super(_0x397a2c),this['editor']=null,this['_editorConfig']=_0x9fa218,this['set']('value',_0x9fa218['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x397a2c,'Reply...')),this['set']('submitLabel',S(_0x397a2c,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x21d3e7(),this['focusCycler']=new Ft({'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',(_0x4bc663,_0x110630)=>{this['cancelButtonView']['fire']('execute'),_0x110630();}),this['keystrokes']['set']('Ctrl+Enter',(_0x342648,_0x597f7d)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x597f7d());}),this['on']('submit',(_0x1c168c,_0x368f86)=>{_0x368f86['length']>0xfde8?(alert(S(_0x397a2c,'TOO_LONG_COMMENT_ALERT',[_0x368f86['length'],0xfde8])),_0x1c168c['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 _0x37fc04=this['editor'];this['element']['insertBefore'](_0x37fc04['ui']['element'],this['element']['firstChild']),_0x37fc04['model']['document']['on']('change',()=>this['value']=_0x37fc04['getData']()),_0x37fc04['bind']('placeholder')['to'](this),this['focusables']['add'](_0x37fc04['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x37af09){-0x1===_0x37af09?(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:_0x2b207c}=this,_0x3e601b=new _0x13c52f(_0x2b207c);return _0x3e601b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3e601b['withText']=!0x0,_0x3e601b['bind']('label')['to'](this,'submitLabel'),_0x3e601b['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3e601b['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x3c193b,_0x1cf734)=>!_0x1cf734&&!!_0x3c193b['trim']()),_0x3e601b;}['_createCancelButton'](){const {locale:_0x11caeb}=this,_0x2f276a=new _0x13c52f(_0x11caeb);return _0x2f276a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2f276a['label']=S(_0x11caeb,'Cancel'),_0x2f276a['withText']=!0x0,_0x2f276a['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2f276a;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x17460a=>{this['focusTracker']['add'](_0x17460a['element']);}),this['focusables']['on']('change',(_0x447341,_0x23a74b)=>{for(const _0x24028a of Array['from'](_0x23a74b['added'])['reverse']())this['focusTracker']['add'](_0x24028a['element']);});}}class ie extends kt{constructor(_0x405329,_0x5dd249,_0x29f63e){super(_0x405329),this['commentInputView']=new hs(_0x405329,_0x29f63e),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x128441,_0x228d35)=>_0x128441||!!_0x228d35),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 _0x5c6633(_0x405329,_0x5dd249),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'](_0x1edf0f){this['commentInputView']['focus'](_0x1edf0f);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x184b6a,_0x2dc7f0)=>{const {submitButtonView:_0x3daf14,cancelButtonView:_0x29a187,editor:_0x242ba0}=this['commentInputView'];[_0x3daf14['element'],_0x29a187['element'],_0x242ba0?_0x242ba0['editing']['view']['getDomRoot']():null]['filter'](_0x54d7c6=>_0x54d7c6)['some'](_0x10232a=>_0x10232a['contains'](_0x2dc7f0['target']))||(this['focus'](),_0x2dc7f0['preventDefault']());});}}class cs extends kt{constructor(_0x12293c){super(_0x12293c);const _0x41d5d1=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x41d5d1['to']('count',_0x5c1843=>S(_0x12293c,'NUMBER_OF_COMMENTS',_0x5c1843))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x257b03,_0x1b41c7,_0x404d13){super(_0x257b03);const _0x455992=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1b41c7['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1b41c7,this['_config']=_0x404d13,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x21d3e7(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x204651=>this['commentViews']['map'](_0x90bece=>_0x90bece['element'])['includes'](_0x204651['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x257b03),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0xe7e550=>_0xe7e550-this['_config']['maxCommentsWhenCollapsed']);for(const _0x1ddb66 of _0x1b41c7['comments'])this['_handleNewCommentModel'](_0x1ddb66);this['_handleInfoComment'](),this['listenTo'](_0x1b41c7['comments'],'add',(_0x1f69af,_0x917244)=>{const _0x171642=this['_calculatePosition'](_0x917244);this['length']++,this['_handleNewCommentModel'](_0x917244,_0x171642),this['refreshVisibleViews']();}),this['listenTo'](_0x1b41c7['comments'],'remove',(_0x566b86,_0x9e761)=>{this['length']--,this['_handleRemoveCommentModel'](_0x9e761),this['refreshVisibleViews']();}),this['listenTo'](_0x1b41c7,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1b41c7,'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',_0x455992['if']('length','ck-hidden',_0x1d1cfa=>!_0x1d1cfa)],'aria-label':S(_0x257b03,'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'](_0x533549){-0x1===_0x533549?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x5ec3b4 of this['commentViews'])_0x5ec3b4['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x257724,_0x374dd7){const _0x565793=new this['_config']['CommentView'](this['locale'],_0x257724,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x565793['viewUid']=_0x257724['id'],_0x565793['delegate']('removeComment')['to'](this),_0x565793['delegate']('updateComment')['to'](this),_0x565793['delegate']('resolveCommentThread')['to'](this),_0x565793['delegate']('editorReady')['to'](this),_0x565793['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x565793,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x565793,_0x374dd7);}['_calculatePosition'](_0x533ccd){const _0x573ff8=this['_model']['_findOptimalIndex'](_0x533ccd);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x533ccd['authoredAt']?_0x573ff8-0x1:_0x573ff8:_0x573ff8-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x12127e={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x12127e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x12127e));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5c9b88){const _0xcc5c9f=this['commentViews']['remove'](_0x5c9b88['id']);this['stopListening'](_0xcc5c9f),_0xcc5c9f['isEditMode']&&this['_updateHasDirtyComment'](),_0xcc5c9f['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x4038ff=>_0x4038ff['isEditMode']);}['_rearrangeCollapse'](){const _0x46e9fc=function(_0x7efeb4){const _0xeb7fd7=new _0x1eeea7();for(const _0x268c55 of _0x7efeb4)_0xeb7fd7['add'](_0x268c55);return _0xeb7fd7;}(this['commentViews']),_0x5523dd=this['_collapsedCommentsView']['count'];for(let _0x2da828=0x1;_0x2da828<=_0x5523dd;_0x2da828++)_0x46e9fc['remove'](0x1);for(const _0x5587d0 of _0x46e9fc)_0x5587d0['collapse']();_0x5523dd>0x0&&_0x46e9fc['add'](this['_collapsedCommentsView'],0x1),ns(_0x2b57d5(Array['from'](this['visibleViews']),Array['from'](_0x46e9fc)),this['visibleViews'],_0x46e9fc);}['_rearrangeExpand'](){ns(_0x2b57d5(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4ecfe1 of this['visibleViews'])_0x4ecfe1['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4d1924=>{this['focusTracker']['add'](_0x4d1924['element']),this['keystrokes']['listenTo'](_0x4d1924['element']);}),this['commentViews']['on']('change',(_0x4c775f,_0x6b86da)=>{for(const _0x481b4c of _0x6b86da['removed'])this['focusTracker']['remove'](_0x481b4c['element']),this['keystrokes']['stopListening'](_0x481b4c['element']);for(const _0x161bcb of Array['from'](_0x6b86da['added'])['reverse']())this['focusTracker']['add'](_0x161bcb['element']),this['keystrokes']['listenTo'](_0x161bcb['element']);});}}function ns(_0x4051b8,_0x4c8c77,_0xb8aa){let _0x191ab7=0x0;for(const _0x2b4d43 of _0x4051b8)switch(_0x2b4d43){case'insert':_0x4c8c77['add'](_0xb8aa['get'](_0x191ab7),_0x191ab7),_0x191ab7++;break;case'delete':_0x4c8c77['remove'](_0x191ab7);break;case'equal':_0x191ab7++;}}class as extends kt{constructor(_0x2d7371){super(_0x2d7371);const _0x33ad41=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x33ad41['to']('contextValue',_0x34272b=>S(_0x2d7371,'THREAD_CONTEXT_LABEL',_0x34272b)),'tabindex':-0x1},'children':[{'text':_0x33ad41['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x403eb7,_0x54fa23){super(_0x403eb7);const _0x7df214=this['bindTemplate'];this['_model']=_0x54fa23,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x21d3e7(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x4f20a3=>!!_0x4f20a3),this['bind']('contextValue')['to'](this['_model'],'context',_0x50a7be=>_0x50a7be&&_0x50a7be['value']?this['_trimContextValue'](_0x50a7be['value']):S(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',_0x7df214['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 _0x16d5b8=new _0x13c52f(this['locale']);return _0x16d5b8['label']=S(this['locale'],'Reopen'),_0x16d5b8['tooltip']=S(this['locale'],'Reopen'),_0x16d5b8['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x16d5b8['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x930dcf=>!_0x930dcf),_0x16d5b8['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5966e2,_0x19acc9)=>_0x5966e2&&_0x19acc9),_0x16d5b8['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x16d5b8;}['_trimContextValue'](_0x2ebf40){if(_0x2ebf40['length']<0x96)return _0x2ebf40;const _0x79ca80=_0x2ebf40['lastIndexOf']('\x20',0x93);return _0x2ebf40['substring'](0x0,_0x79ca80>-0x1?_0x79ca80:0x93)+'...';}['_attachContextActions'](){const _0x497de1=this['element']['querySelector']('.ck-context'),_0x580785=_0x497de1['querySelector']('.ck-context__value');this['listenTo'](_0x497de1,'mouseenter',()=>{_0x580785['offsetWidth']<_0x580785['scrollWidth']&&_0x497de1['classList']['add']('overlay');}),this['listenTo'](_0x497de1,'mouseleave',()=>{_0x497de1['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x42236b of this['focusables'])this['focusTracker']['add'](_0x42236b['element']),this['keystrokes']['listenTo'](_0x42236b['element']);}['_createContextView'](){const _0x1468d2=new as(this['locale']);return _0x1468d2['bind']('contextValue')['to'](this),_0x1468d2;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x554125,_0x35157d,_0x3efdae,_0x23ce5c){super(_0x554125),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x35157d,this['_localUser']=_0x3efdae,this['_config']=_0x23ce5c,this['commentThreadHeaderView']=new Yt(_0x554125,_0x35157d),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x554125,S(_0x554125,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x554125,_0x35157d,Object['assign']({'CommentView':this['_config']['CommentView']},_0x23ce5c)),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',(_0x480f82,_0x28ca85)=>_0x480f82||!!_0x28ca85),this['bind']('isUnlinked')['to'](_0x35157d,'unlinkedAt',_0x392f15=>!!_0x392f15),this['bind']('ariaLabel')['to'](this,'length',_0x57423e=>{const _0x468bed=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x57423e,_0x468bed]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x21d3e7(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x25510a=>_0x25510a['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 _0x3e836a=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4e398a=_0x3e836a['commentInputView'];return _0x3e836a['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x4e398a,'value',(_0x3e065a,_0x153b8f,_0x437404,_0x2bcaaa,_0x19c02d)=>!!_0x19c02d||!!_0x2bcaaa&&_0x437404&&!_0x153b8f||_0x3e065a&&_0x437404&&!_0x153b8f),_0x4e398a['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x577ef5,_0x4fb909,_0x5757e0)=>{let _0x4c91de;return _0x4c91de=_0x5757e0&&_0x4fb909?'Reply\x20to\x20reopen\x20discussion...':_0x577ef5?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x4c91de);}),_0x4e398a['bind']('submitLabel')['to'](this,'length',_0x2e75f5=>S(this['locale'],_0x2e75f5?'Reply':'Comment')),_0x4e398a['on']('submit',(_0xde13cc,_0x5bc7ff)=>{this['fire']('addComment',_0x5bc7ff),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x4e398a['on']('cancel',()=>{this['focus']();}),_0x4e398a['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4e398a['on']('cancel',_0x4154ec=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4154ec['stop']());}),this['on']('change:isActive',(_0x4f1e97,_0x49c308,_0x504bca)=>{_0x504bca||this['length']||_0x4e398a['value']||this['fire']('removeCommentThread');}),_0x3e836a;}}class Ct extends/* #__PURE__ -- @preserve */
27
- ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4cb29b,_0x2b5455,_0x3aa997,_0xddb6d7){super(_0x4cb29b,_0x2b5455,_0x3aa997,_0xddb6d7),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4cb29b,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x596107,_0xa8e3d7,_0x4f689d)=>{_0x4f689d||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1bbf90,_0x45106b,_0xbd68bf)=>{_0xbd68bf&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x4d2e98=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x4d2e98['if']('isActive','ck-thread--active'),_0x4d2e98['if']('isUnlinked','ck-thread--unlinked'),_0x4d2e98['if']('isConfirm','ck-thread--remove-confirmation'),_0x4d2e98['to']('actionIndicator',_0x983fb5=>_0x983fb5?'ck-thread--'+_0x983fb5:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4d2e98['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 _0x242d4a of this['commentsListView']['commentViews'])_0x242d4a['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0xfa0b9c}=this,_0xcb3f0b=this['commentsListView']['commentViews']['get'](0x0);_0xcb3f0b===this['_boundFirstCommentView']||_0xcb3f0b['isSystemComment']||(this['_boundFirstCommentView']=_0xcb3f0b,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0xcb3f0b,'actionIndicator',_0x2412d0=>'remove'===_0x2412d0?'remove':null),_0xcb3f0b['placeholder']=S(_0xfa0b9c,'Write\x20a\x20comment...'),_0xcb3f0b['removeButton']['on']('execute',_0xa899ee=>{_0xa899ee['stop'](),this['showConfirm'](S(_0xfa0b9c,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0xcb3f0b['focus']();}),_0xcb3f0b['actionBar']['add'](this['resolveButton'],0x0),_0xcb3f0b['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x54181f=new _0x38aeda(this['locale']);return _0x54181f['label']=S(this['locale'],'Resolve'),_0x54181f['tooltip']=S(this['locale'],'Resolve'),_0x54181f['icon']=_0x76e100['check'],_0x54181f['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x54181f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x21f52b=>!_0x21f52b),_0x54181f['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x392fde,_0x2e03ca)=>_0x392fde&&!_0x2e03ca),_0x54181f['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x54181f;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x3548d9){super(_0x3548d9),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x4b573c,_0x436abb,_0x5131f2)=>{this['element']['innerHTML']=_0x5131f2;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x553293,_0x64f24a,_0x1e6824){super(_0x553293),this['_model']=_0x64f24a,this['_config']=_0x1e6824,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x64f24a,'content',_0x64f24a,'authoredAt',(_0x54cb13,_0x4cdfce)=>S(_0x553293,'COMMENT_ARIA_LABEL',[_0x64f24a['author']['name'],_0x1e6824['formatDateTime'](_0x4cdfce),new DOMParser()['parseFromString'](_0x54cb13,'text/html')['body']['textContent'],_0x64f24a['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x553293,S(_0x553293,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x32be5d(),this['focusTracker']=new _0x21d3e7(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3ac6b2=>_0x3ac6b2['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']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x2598a7=new es(this['locale']);return _0x2598a7['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1745aa,_0x451b7c)=>_0x451b7c?_0x171e76(_0x1745aa,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1745aa),_0x2598a7;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1eed65=new hs(this['locale'],this['_config']['editorConfig']);return _0x1eed65['value']=this['_model']['content'],_0x1eed65['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1eed65['submitLabel']=S(this['locale'],'Save'),_0x1eed65['on']('submit',(_0x12ff1c,_0x4df418)=>{this['fire']('updateComment',this['_model']['id'],_0x4df418),this['switchToDisplayMode'](),this['focus']();}),_0x1eed65['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1eed65['once']('editorReady',()=>{_0x1eed65['focus']();}),_0x1eed65['createEditor'](),_0x1eed65['delegate']('editorReady')['to'](this),_0x1eed65['delegate']('editorDestroyed')['to'](this),_0x1eed65;}['_setupKeyboardNavigation'](){const _0x3d5e4f=this['element'];this['keystrokes']['listenTo'](_0x3d5e4f);for(const _0x1f9213 of this['focusables'])this['focusTracker']['add'](_0x1f9213['element']),this['keystrokes']['listenTo'](_0x1f9213['element']);this['focusables']['on']('change',(_0xe643c9,_0x444b3d)=>{for(const _0xd11294 of _0x444b3d['removed'])this['focusTracker']['remove'](_0xd11294['element']),this['keystrokes']['stopListening'](_0xd11294['element']);for(const _0x353d1d of _0x444b3d['added'])this['focusTracker']['add'](_0x353d1d['element']),this['keystrokes']['listenTo'](_0x353d1d['element']);}),this['keystrokes']['set']('enter',(_0xe2c404,_0x428357)=>{_0x3d5e4f===_0xe2c404['target']&&(this['focusCycler']['focusFirst'](),_0x428357());}),this['keystrokes']['set']('esc',(_0x1feb33,_0x2044c9)=>{_0x3d5e4f!==_0x1feb33['target']&&(this['focus'](),_0x2044c9());});}}class vt extends/* #__PURE__ -- @preserve */
28
- ti(os){['actionBar'];['userView'];constructor(_0x3c9bb4,_0x1fd6ec,_0x2d475e){super(_0x3c9bb4,_0x1fd6ec,_0x2d475e),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x3c9bb4,'Reply...')),this['bind']('authoredAt')['to'](_0x1fd6ec),this['bind']('resolvedAt')['to'](_0x1fd6ec),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 _0x5c6633(_0x3c9bb4,_0x1fd6ec['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x1fd6ec,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x566ea9=this['bindTemplate'],_0x5f2a1c=[{'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']}},{'tag':'time','attributes':{'datetime':_0x566ea9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x566ea9['to']('authoredAt',_0x3f1bbd=>this['_config']['formatDateTime'](_0x3f1bbd))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x566ea9['if']('isEditMode','ck-comment__actions--hidden'),_0x566ea9['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']&&_0x5f2a1c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x566ea9['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x566ea9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x566ea9['if']('isEditMode','ck-comment--edit'),_0x566ea9['if']('isSystemComment','ck-comment--info'),_0x566ea9['to']('actionIndicator',_0x5e4252=>_0x5e4252?'ck-comment--'+_0x5e4252:'')],'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':_0x5f2a1c}]}]};}['_createEditButton'](){const _0x36994c=new _0x13c52f(this['locale']);return _0x36994c['label']=S(this['locale'],'Edit'),_0x36994c['icon']=_0x76e100['pencil'],_0x36994c['withText']=!0x0,_0x36994c['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x36994c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4907cc=>!_0x4907cc),_0x36994c['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x36994c['on']('execute',()=>this['switchToEditMode']()),_0x36994c;}['_createRemoveButton'](){const _0x265bf3=new _0x13c52f(this['locale']);return _0x265bf3['label']=S(this['locale'],'Remove'),_0x265bf3['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x265bf3['withText']=!0x0,_0x265bf3['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x265bf3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5c9507=>!_0x5c9507),_0x265bf3['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x265bf3['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x265bf3;}['_createDropdown'](){const _0x4bbb62=_0x45a245(this['locale'],_0x512421),_0x50db42=_0x4bbb62['panelView']['children'],_0x343159=new _0x5e2782(this['locale']),_0xfe5a46=_0x4bbb62['bindTemplate'];_0x57b6ac(_0x4bbb62,()=>this['items']['find'](_0x591e62=>_0x591e62['isVisible'])),_0x4bbb62['extendTemplate']({'attributes':{'class':[_0xfe5a46['if']('isVisible','ck-hidden',_0x51b0a9=>!_0x51b0a9)]}});const _0x5ae15a=(_0x245c2e,_0x1cca1d=-0x1)=>{const _0x1d0089=new _0x3577c7(this['locale']);_0x1d0089['children']['add'](_0x245c2e);const _0x41b47e=_0x1cca1d>-0x1?_0x1cca1d:_0x343159['items']['length'];_0x343159['items']['add'](_0x1d0089,_0x41b47e);const _0x17e326=Array['from'](this['items']);_0x4bbb62['unbind']('isEnabled','isVisible'),_0x4bbb62['bind']('isEnabled')['toMany'](_0x17e326,'isEnabled',(..._0x3c359c)=>_0x3c359c['some'](_0x4436c4=>_0x4436c4)),_0x4bbb62['bind']('isVisible')['toMany'](_0x17e326,'isVisible',(..._0x4a24f0)=>_0x4a24f0['some'](_0x356f10=>_0x356f10));};_0x4bbb62['panelPosition']='sw',_0x4bbb62['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x76e100['threeVerticalDots']});for(const _0x224c38 of this['items'])_0x5ae15a(_0x224c38);return _0x50db42['add'](_0x343159),_0x4bbb62['listenTo'](this['items'],'add',(_0x720ee7,_0x87c8d3,_0x13ac6a)=>{_0x5ae15a(_0x87c8d3,_0x13ac6a);}),_0x4bbb62['listenTo'](this['items'],'remove',(_0x218be3,_0x4ede89,_0x5a9809)=>{_0x343159['items']['remove'](_0x5a9809);}),_0x4bbb62;}['_attachActions'](_0x2752ff,_0x58b02b){const _0x5d7e12=_0x2752ff&&_0x2752ff['element'];_0x5d7e12&&(this['listenTo'](_0x5d7e12,'mouseenter',()=>this['actionIndicator']=_0x58b02b),this['listenTo'](_0x5d7e12,'focus',()=>this['actionIndicator']=_0x58b02b),this['listenTo'](_0x5d7e12,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x5d7e12,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x1cb6c8=super['_createCommentInputView']();return _0x1cb6c8['bind']('placeholder')['to'](this),_0x1cb6c8;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x5a1b5c){const _0x469712=bt(_0x5a1b5c,0x1e),_0x22257c=new MutationObserver(_0xdc48fe=>{for(const _0x32fa8f of _0xdc48fe)('attributes'==_0x32fa8f['type']&&'class'==_0x32fa8f['attributeName']||'childList'==_0x32fa8f['type']||'characterData'==_0x32fa8f['type'])&&_0x469712();});return{'attach'(_0x2dac86){_0x22257c['observe'](_0x2dac86,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x22257c['disconnect'](),_0x469712['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x59d5e1,_0x3cdda7){super(_0x59d5e1),this['id']=_0x319432(),this['focusTracker']=new _0x21d3e7(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x69184c,_0xe69900)=>this['fire']('Esc',_0xe69900)),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']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x3cdda7),this['mainView']=_0x3cdda7;const _0x4c612e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4c612e['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 _0x2db36d=this['element']['clientHeight'];_0x2db36d&&(this['height']=_0x2db36d);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x4b3b0f(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2cac6c,target:_0x3e9689,type:_0xd7f1d2,isVisible:_0xc0ab85=!0x0}){super(),this['view']=_0x2cac6c,this['view']['element']||this['view']['render'](),this['_type']=_0xd7f1d2,this['_target']=_0x3e9689,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1eeea7([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x31b0f9,_0x29ab28)=>{this['view']['focusTracker']['add'](_0x29ab28);}),this['focusableElements']['on']('remove',(_0x28a8f1,_0x243b0d)=>{this['view']['focusTracker']['remove'](_0x243b0d);}),this['set']('isVisible',_0xc0ab85);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x5827cc=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x5827cc),_0x5827cc;}get['targetRect'](){const _0x2fd308=this['target'];if(null===_0x2fd308)return null;if(_0x2fd308 instanceof _0x8d8dd5)return _0x2fd308;const _0x5e176a=_0x2fd308['filter'](_0xd88779=>function(_0x2fdecf){const _0x58dd8c=_0x2fdecf['offsetParent'];if(_0x58dd8c)return!0x0;const _0x2e1cc8=_0x2fdecf['getClientRects']()['item'](0x0);return!!_0x2e1cc8;}(_0xd88779));return 0x0===_0x5e176a['length']?null:new _0x8d8dd5(_0x5e176a[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x1a086){this['view']['isActive']=_0x1a086,this['view']['mainView']['isActive']=_0x1a086;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x53b245){if(!(null===_0x53b245||_0x53b245 instanceof _0x8d8dd5||Array['isArray'](_0x53b245)&&_0x53b245['every'](_0x1f8faa=>ne(_0x1f8faa))))throw new _0x173c60('annotation-invalid-target',null,{'target':_0x53b245});}['_getNormalizedTarget'](){const _0x97b410='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x97b410)?[_0x97b410]:_0x97b410;}}function ne(_0xad0128){return null!==_0xad0128&&'object'==typeof _0xad0128&&'nodeType'in _0xad0128&&0x1===_0xad0128['nodeType'];}class x extends _0x1eeea7{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4eea06=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x21d3e7(),this['_focusTracker']['on']('change:isFocused',(_0x552ca2,_0x117c6b,_0xdfa1ea)=>{_0xdfa1ea||this['fire']('blur');});for(const _0x4c6cd2 of _0x4eea06)this['add'](_0x4c6cd2);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x51277e){if(this['has'](_0x51277e))throw new _0x173c60('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x51277e['innerView'],_0x51277e),this['_viewToAnnotation']['set'](_0x51277e['view'],_0x51277e);for(const _0x165f09 of _0x51277e['focusableElements'])this['_focusTracker']['add'](_0x165f09);this['listenTo'](_0x51277e['focusableElements'],'add',(_0x467df4,_0x5a801f)=>{this['_focusTracker']['add'](_0x5a801f);}),this['listenTo'](_0x51277e['focusableElements'],'remove',(_0x5badf1,_0x4c6f6d)=>{this['_focusTracker']['remove'](_0x4c6f6d);}),this['listenTo'](_0x51277e['view']['focusTracker'],'change:isFocused',(_0x3f1a73,_0x2fb79f,_0x587b04)=>{_0x587b04&&this['fire']('focus',_0x51277e);}),_0x51277e['updateTargetRect']();const _0x8be824=this['_getOrderInContent'](_0x51277e['view']['targetRect']);return super['add'](_0x51277e,_0x8be824);}['remove'](_0x3e47d0){if(!this['has'](_0x3e47d0))throw new _0x173c60('annotationcollection-not-existing-item',null);this['stopListening'](_0x3e47d0['view']['focusTracker']),this['stopListening'](_0x3e47d0['focusableElements']);for(const _0x1350f3 of _0x3e47d0['focusableElements'])this['_focusTracker']['remove'](_0x1350f3);return this['_viewToAnnotation']['delete'](_0x3e47d0['view']),this['_innerViewToAnnotation']['delete'](_0x3e47d0['innerView']),super['remove'](_0x3e47d0);}['getByInnerView'](_0x27f0c6){return this['_innerViewToAnnotation']['get'](_0x27f0c6);}['getByView'](_0x1c3423){return this['_viewToAnnotation']['get'](_0x1c3423);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1fbf60 of this)_0x1fbf60['updateTargetRect']();this['_sort']();}['_sort'](){const _0x510ca3=Array['from'](this)['sort']((_0x5f50eb,_0x18aeb3)=>v(_0x5f50eb['view']['targetRect'],_0x18aeb3['view']['targetRect']));for(let _0x36c309=_0x510ca3['length']-0x1;_0x36c309>0x0;_0x36c309--){const _0x4de946=_0x510ca3[_0x36c309];_0x36c309!==this['getIndex'](_0x4de946)&&(this['remove'](_0x4de946),this['add'](_0x4de946));}}['_getOrderInContent'](_0x245a42){let _0x1d915a=0x0;if(!_0x245a42)return this['length'];for(const _0x5e4cdb of this){const _0x515500=_0x5e4cdb['view']['targetRect'];if(_0x515500){if(v(_0x245a42,_0x515500)<0x0)return _0x1d915a;_0x1d915a++;}}return _0x1d915a;}}function v(_0xa09524,_0x251646){if(null===_0xa09524&&null===_0x251646)return 0x0;if(null===_0xa09524)return-0x1;if(null===_0x251646)return 0x1;const _0x26c532=_0xa09524['top']-_0x251646['top'];return 0x0==_0x26c532?_0xa09524['left']-_0x251646['left']:_0x26c532;}class N extends _0x18e15c{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ada6b){if(super(_0x1ada6b),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1ada6b instanceof _0x405072){const _0xba2fa3=_0x1ada6b['locale'];_0x1ada6b['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0xba2fa3,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0xba2fa3,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0xba2fa3,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0xba2fa3,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0xba2fa3,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0xba2fa3,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0xba2fa3,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x13c7b5){this['collection']['add'](_0x13c7b5);}['remove'](_0x34a6c5){this['collection']['remove'](_0x34a6c5),_0x34a6c5['destroy']();}['refreshVisibility'](){for(const _0x37d65e of this['collection'])_0x37d65e['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x5f3315){return this['collection']['getByInnerView'](_0x5f3315);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x54bd54 of this['collection'])_0x54bd54['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x3441f1){this['fire']('_activateAnnotation',_0x3441f1);}['createAnnotation'](_0x1ba2e9){return new d(_0x1ba2e9);}['createAnnotationView'](_0x573402,_0x1991a5){return new T(_0x573402,_0x1991a5);}['_addActiveAnnotation'](_0x2a20e6){const _0x2344da=new Set(this['activeAnnotations']);_0x2344da['add'](_0x2a20e6),this['activeAnnotations']=_0x2344da;}['_removeActiveAnnotation'](_0x259bbf){const _0x45252c=new Set(this['activeAnnotations']);_0x45252c['delete'](_0x259bbf),this['activeAnnotations']=_0x45252c;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4da4ce=this['collection'],_0x5de144=this['_visibleAnnotations'];function _0x3aac9f(_0x3eb9cb){const _0x5c80ac=_0x3eb9cb['source'];_0x5c80ac['isVisible']&&!_0x5de144['has'](_0x5c80ac)?_0x5de144['add'](_0x5c80ac):!_0x5c80ac['isVisible']&&_0x5de144['has'](_0x5c80ac)&&_0x5de144['remove'](_0x5c80ac),_0x5c80ac['view']['focusTracker']['remove'](_0x5c80ac['view']['element']),_0x5c80ac['view']['focusTracker']['add'](_0x5c80ac['view']['element']);}this['listenTo'](_0x4da4ce,'add',(_0x29052f,_0x12ab92)=>{_0x12ab92['isVisible']&&_0x5de144['add'](_0x12ab92),this['listenTo'](_0x12ab92,'change:isVisible',_0x3aac9f);}),this['listenTo'](_0x4da4ce,'remove',(_0x8b50de,_0x2b2a0f)=>{_0x5de144['has'](_0x2b2a0f)&&_0x5de144['remove'](_0x2b2a0f),this['stopListening'](_0x2b2a0f,'change:isVisible',_0x3aac9f);});}['_setupEnterAnnotationKeystroke'](){const _0x3751a7=_0x40a687=>{_0x40a687['on']('ready',()=>{_0x40a687['keystrokes']['set'](_0x417e9e,(_0x32aba7,_0x469690)=>{const _0x1934ad=_0x1b7f73(this['activeAnnotations']['values']());_0x1934ad&&(_0x1934ad['view']['focus'](),_0x469690());});});};this['context']instanceof _0x405072?_0x3751a7(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1938e7,_0x36180e)=>{_0x3751a7(_0x36180e);});}['_setupEscapeAnnotationHandling'](){const _0x5ea6ed=_0x2e0f4e=>{const _0x3a4db3=_0x2e0f4e['source'],_0x146c9e=[];let _0x106b5b;if(Array['isArray'](_0x3a4db3['target'])){_0x106b5b=_0x3a4db3['target'][0x0],this['context']instanceof _0x405072?_0x146c9e['push'](this['context']):this['context']['editors']&&_0x146c9e['push'](...this['context']['editors']);for(const _0x5394e6 of _0x146c9e)for(const _0x49d6af of _0x5394e6['editing']['view']['domRoots']['values']())if(_0x49d6af['contains'](_0x106b5b))return void _0x5394e6['editing']['view']['focus']();_0x106b5b['focus']();}};this['listenTo'](this['collection'],'add',(_0x5eb7d6,_0x2f8e56)=>{this['listenTo'](_0x2f8e56,'escape',_0x5ea6ed,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x34d480,_0x58e07f)=>{this['stopListening'](_0x58e07f,'escape',_0x5ea6ed);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x18e15c{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x462e6c){super(_0x462e6c),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2b78b3=this['context']['config'];_0x2b78b3['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2b78b3['define']('comments.maxThreadTotalWeight',0x1f4),_0x2b78b3['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2b78b3['define']('comments.CommentThreadView',Ct),_0x2b78b3['define']('comments.CommentView',vt),_0x2b78b3['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x1ddfc8=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x34c27f,_0x9d23d6)=>this['_addCommentThread'](_0x9d23d6)),this['on']('submitCommentThread',(_0x44f3d9,_0xe75091)=>this['_submitCommentThread'](_0xe75091)),this['on']('resolveCommentThread',(_0x4e72a2,_0x232de5)=>this['_resolveCommentThread'](_0x232de5)),this['on']('resolveCommentThread',(_0x5c2e90,_0x30dbd2)=>this['_updateActiveAnnotation'](_0x30dbd2),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x4ab071,_0x4c8b3e)=>this['_reopenCommentThread'](_0x4c8b3e)),this['on']('reopenCommentThread',(_0x5daa8b,_0x3e1efd)=>this['_updateActiveAnnotation'](_0x3e1efd),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x6273ba,_0x2cd786)=>this['_removeCommentThread'](_0x2cd786)),this['on']('updateCommentThread',(_0x153603,_0x2e34f2)=>this['_updateCommentThread'](_0x2e34f2)),this['on']('updateCommentThread',(_0x13e30f,_0x300e0a)=>this['_updateActiveAnnotation'](_0x300e0a),{'priority':'lowest'}),this['on']('addComment',(_0x26921d,_0x21ccf6)=>this['_addComment'](_0x21ccf6)),this['on']('updateComment',(_0x5c8cb4,_0x353e11)=>this['_updateComment'](_0x353e11)),this['on']('removeComment',(_0x295892,_0x1f98dc)=>this['_removeComment'](_0x1f98dc)),this['on']('addComment',(_0x187545,{threadId:_0x355b36,isFromAdapter:_0x4db0ef})=>{if(_0x4db0ef)return;const _0x19a6a7=this['getCommentThread'](_0x355b36),_0x2cc5fe=_0x19a6a7&&this['_threadToController']['get'](_0x19a6a7);_0x2cc5fe&&_0x2cc5fe['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x1ddfc8,'change:activeAnnotations',(_0xd058f8,_0x242cd2,_0x38b8c0)=>{const _0x3096d7=Array['from'](_0x38b8c0)['map'](_0xbccb61=>this['_viewToController']['get'](_0xbccb61['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3096d7?_0x3096d7['model']:null;});}set['adapter'](_0x122063){if(this['_adapter'])throw new _0x173c60('commentsrepository-adapter-already-set');this['_adapter']=_0x122063;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x48c761=gt,threadId:_0x38a252=_0x319432(),comments:_0x40a487=[],unlinkedAt:_0x33f5c9=null,resolvedAt:_0x3ac83d=null,resolvedBy:_0x2129c4=null,target:_0x29cedb=null,context:_0x35c6c9=null,attributes:_0x2be2ea={},isResolvable:_0x4933ee=!0x0,isSubmitted:_0x12f4f0=!0x1,isFromAdapter:_0x5f2daf=!0x1}={}){return this['fire'](_t('addCommentThread',_0x48c761),{'channelId':_0x48c761,'threadId':_0x38a252,'comments':_0x40a487,'unlinkedAt':_0x33f5c9,'resolvedAt':_0x3ac83d,'resolvedBy':_0x2129c4,'target':_0x29cedb,'context':_0x35c6c9,'attributes':_0x2be2ea,'isFromAdapter':_0x5f2daf,'isResolvable':_0x4933ee,'isSubmitted':_0x12f4f0}),this['getCommentThread'](_0x38a252);}['openNewCommentThread']({channelId:_0x2b15c8=gt,threadId:_0x45ae8b=_0x319432(),target:_0x456f26,context:_0x3a3288=null,isResolvable:_0x12b4e7=!0x0}){if(this['_readOnlyChannels']['has'](_0x2b15c8)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x456f26)throw new _0x173c60('commentsrepository-missing-target');const _0x13d2eb=this['addCommentThread']({'channelId':_0x2b15c8,'threadId':_0x45ae8b,'target':_0x456f26,'context':_0x3a3288,'isResolvable':_0x12b4e7});if(!_0x13d2eb)return null;const _0x54f387=this['_threadToController']['get'](_0x13d2eb),_0x14b469=_0x54f387['view']['commentThreadInputView']['commentInputView'],_0x51bd15=this['context']['plugins']['get'](N),_0x34e9e5=_0x51bd15['getByInnerView'](_0x54f387['view']);return _0x51bd15['activate'](_0x34e9e5),_0x14b469['once']('editorReady',()=>_0x14b469['focus']()),_0x13d2eb;}['hasCommentThread'](_0x1b2867){if('string'!=typeof _0x1b2867)throw new _0x173c60('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x1b2867);}['updateCommentThread']({channelId:_0x575c65=gt,threadId:_0x5a9ce0,context:_0x34f63a,unlinkedAt:_0x50d38f,attributes:_0x5eb4bb,isFromAdapter:_0x1bd273=!0x1}){return this['fire'](_t('updateCommentThread',_0x575c65),{'channelId':_0x575c65,'threadId':_0x5a9ce0,'context':_0x34f63a,'unlinkedAt':_0x50d38f,'attributes':_0x5eb4bb,'isFromAdapter':_0x1bd273}),this['getCommentThread'](_0x5a9ce0);}['getCommentThread'](_0x1a78ce){if('string'!=typeof _0x1a78ce)throw new _0x173c60('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x1a78ce);}['fetchCommentThread']({channelId:_0x540bb8,threadId:_0x3fd090}={}){const _0x48d317=this['getCommentThread'](_0x3fd090);if(_0x48d317)return Promise['resolve'](_0x48d317);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x173c60('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x540bb8,'threadId':_0x3fd090})['then'](_0x1069f5=>this['hasCommentThread'](_0x3fd090)?this['getCommentThread'](_0x3fd090):_0x1069f5?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x540bb8},_0x1069f5)):void 0x0)['catch'](_0x1e97f8=>{throw console['error'](_0x1e97f8),new _0x173c60('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5ecdb6,skipNotAttached:_0x1ee72c=!0x1,skipEmpty:_0x17818b=!0x1,toJSON:_0xca3325=!0x1}={}){const _0x526c7e=[];for(const _0x2ee42a of this['_threads']['values']())_0x5ecdb6&&_0x2ee42a['channelId']!==_0x5ecdb6||_0x1ee72c&&!_0x2ee42a['isAttached']||_0x17818b&&0x0===_0x2ee42a['length']||_0x526c7e['push'](_0x2ee42a);return _0xca3325?_0x526c7e['map'](_0x5badfb=>_0x5badfb['toJSON']()):_0x526c7e;}['setActiveCommentThread'](_0x9e9ccf){const _0x31abb2=this['context']['plugins']['get'](N);if(!_0x9e9ccf)return void(this['activeCommentThread']&&_0x31abb2['deactivateAll']());const _0x19e2d0=this['getCommentThread'](_0x9e9ccf);if(!_0x19e2d0)throw new _0x173c60('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x9e9ccf});if(!this['_threadToController']['has'](_0x19e2d0))throw new _0x173c60('commentsrepository-active-not-attached',null,{'threadId':_0x9e9ccf});const _0x199d5c=_0x31abb2['getByInnerView'](this['_threadToController']['get'](_0x19e2d0)['view']);_0x31abb2['activate'](_0x199d5c);}['switchReadOnly'](_0x43a803,_0x2a3f2c){_0x43a803?this['_readOnlyChannels']['add'](_0x2a3f2c):this['_readOnlyChannels']['delete'](_0x2a3f2c),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x22d0f8){return this['_readOnlyChannels']['has'](_0x22d0f8)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x203196,_0x56c47e){return new yt(_0x203196,_0x56c47e);}['setPermissions'](_0x382df2,_0x150ee6=gt){this['_permissions']['set'](_0x150ee6,_0x382df2),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x34aa20=gt){return this['_permissions']['has'](_0x34aa20)?this['_permissions']['get'](_0x34aa20):Tt;}['_addCommentThread']({channelId:_0x5b4948,threadId:_0xc9c7b2,comments:_0x1e0c65,unlinkedAt:_0x53d5cf,resolvedAt:_0x4f40e8,resolvedBy:_0x5e8b88,target:_0x36fc84,context:_0x3053ab,attributes:_0x520ff1,isFromAdapter:_0x383ba1,isResolvable:_0x17de10,isSubmitted:_0x144220}){if('string'!=typeof _0xc9c7b2)throw new _0x173c60('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xc9c7b2});if(this['hasCommentThread'](_0xc9c7b2))throw new _0x173c60('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0xc9c7b2});const _0x32336a=new oe(this,{'channelId':_0x5b4948,'id':_0xc9c7b2,'context':_0x3053ab,'attributes':_0x520ff1,'unlinkedAt':_0x53d5cf,'resolvedAt':_0x4f40e8,'resolvedBy':_0x5e8b88?this['context']['plugins']['get'](it)['getUser'](_0x5e8b88):null,'isResolvable':_0x17de10,'isSubmitted':_0x144220||_0x383ba1});this['_threads']['set'](_0xc9c7b2,_0x32336a);for(const _0x9bdf84 of _0x1e0c65)_0x32336a['_add'](this['_createNewComment']({'threadId':_0xc9c7b2,..._0x9bdf84}));return _0x36fc84&&_0x32336a['attachTo'](_0x36fc84),_0x383ba1||!_0x32336a['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x5b4948,'threadId':_0xc9c7b2});}['_submitCommentThread']({channelId:_0x4c6ca,threadId:_0x3161a5}){if(!this['hasCommentThread'](_0x3161a5))throw new _0x173c60('commentsrepository-missing-comment-thread',this);const _0x33751f=this['getCommentThread'](_0x3161a5);if(_0x33751f['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x11ea00,comments:_0x461cfb,resolvedAt:_0x6b2682,resolvedBy:_0x555e76,context:_0x46e05e,attributes:_0x4ec0f8}=_0x33751f,_0x250e98=this['context']['plugins']['get']('PendingActions'),_0x8ded6f=_0x250e98['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4c6ca,'threadId':_0x11ea00,'comments':_0x461cfb['map'](_0x447dde=>_0x447dde['toJSON']()),'resolvedAt':_0x6b2682,'resolvedBy':_0x555e76?_0x555e76['id']:_0x555e76,'context':_0x46e05e,'attributes':_0x4ec0f8})['then'](({comments:_0x35ab68})=>{_0x250e98['remove'](_0x8ded6f);for(const _0x5853af of _0x35ab68)this['_updateComment']({'channelId':_0x4c6ca,'threadId':_0x3161a5,'commentId':_0x5853af['commentId'],'createdAt':_0x5853af['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2e4cbc=>{throw console['error'](_0x2e4cbc),new _0x173c60('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x3e0ab7,target:_0x19d45a}){const _0x3e7dc2=this['getCommentThread'](_0x3e0ab7);if(!_0x3e7dc2)throw new _0x173c60('commentsrepository-attach-missing-comment-thread',this);const _0x3668fe=this['context']['plugins']['get']('PendingActions'),_0x5ca1c4=this['context']['plugins']['get'](N),_0x31508c=this['_createCommentThreadView'](_0x3e7dc2),_0x2a4058=new yt(_0x3e7dc2,_0x31508c);let _0xbadab6=null;_0x31508c['on']('change:isDirty',(_0x31af20,_0xae989a,_0x52f4ae)=>{_0x52f4ae?_0xbadab6=_0x3668fe['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0xbadab6&&(_0x3668fe['remove'](_0xbadab6),_0xbadab6=null);}),this['_threadToController']['set'](_0x3e7dc2,_0x2a4058),this['_viewToController']['set'](_0x31508c,_0x2a4058);const _0x3d427e=new T(this['context']['locale'],_0x31508c);_0x3d427e['bind']('length')['to'](_0x31508c),_0x3d427e['bind']('isDirty')['to'](_0x31508c,'isDirty',_0x31508c,'length',(_0x2950e8,_0x41131d)=>_0x2950e8||!_0x41131d),_0x3d427e['bind']('isActive')['to'](_0x31508c),_0x3d427e['type']='comment';const _0x2839b0=new d({'view':_0x3d427e,'target':_0x19d45a,'type':'comment','isVisible':!_0x3e7dc2['isResolved']});return _0x31508c['on']('escape',()=>{_0x2839b0['fire']('escape');}),this['_bindAnnotationToEditors'](_0x31508c,_0x2839b0),_0x5ca1c4['add'](_0x2839b0),_0x2839b0;}['_bindAnnotationToEditors'](_0x35a66f,_0x4b41e3){this['listenTo'](_0x35a66f,'editorReady',(_0x1ad5a8,_0x4bcb5e)=>{const _0x40ceee=_0x4bcb5e['ui']['view']['body']['bodyCollectionContainer'];_0x4b41e3['focusableElements']['add'](_0x40ceee),this['context']instanceof _0x405072&&this['context']['ui']['focusTracker']['add'](_0x40ceee);},{'priority':'highest'}),this['listenTo'](_0x35a66f,'editorDestroyed',(_0x16dc70,_0x38c846)=>{const _0x36a6b3=_0x38c846['ui']['view']['body']['bodyCollectionContainer'];_0x4b41e3['focusableElements']['has'](_0x36a6b3)&&_0x4b41e3['focusableElements']['remove'](_0x36a6b3),this['context']instanceof _0x405072&&this['context']['ui']['focusTracker']['remove'](_0x36a6b3);});}['_unbindEditors'](_0xf251d3){this['stopListening'](_0xf251d3,'editorReady'),this['stopListening'](_0xf251d3,'editorDestroyed');}['_createCommentThreadView'](_0x1dec67){const _0x113cea=this['context']['plugins']['get'](it),{config:_0x2ba8df,locale:_0x506336}=this['context'],_0x541fd5=mt(_0x2ba8df['get']('locale'));return new(0x0,(_0x2ba8df['get']('comments'))['CommentThreadView'])(_0x506336,_0x1dec67,_0x113cea['me'],{'editorConfig':{..._0x2ba8df['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x2ba8df['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x2ba8df['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2ba8df['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2ba8df['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x541fd5,'CommentView':_0x2ba8df['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x2c1244,channelId:_0x28f7f0,resolvedAt:_0x2ee318,resolvedBy:_0x2616d5,isFromAdapter:_0x2dc263}){if(!this['hasCommentThread'](_0x2c1244))throw new _0x173c60('commentsrepository-missing-comment-thread',null,{'threadId':_0x2c1244});const _0x36e9c1=this['getCommentThread'](_0x2c1244);if(_0x36e9c1['isResolved'])throw new _0x173c60('commentsrepository-resolved-comment-thread',null,{'threadId':_0x2c1244});const _0x5e1e58=this['context']['plugins']['get'](it);if(_0x36e9c1['resolvedBy']=_0x5e1e58['getUser'](_0x2616d5),_0x36e9c1['resolvedAt']=_0x2ee318,_0x2dc263||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x583e48=this['context']['plugins']['get']('PendingActions'),_0x5a49fa=_0x583e48['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x28f7f0,'threadId':_0x2c1244})['then'](({resolvedAt:_0x27fade,resolvedBy:_0x5d1f29})=>{_0x583e48['remove'](_0x5a49fa),_0x36e9c1['resolvedBy']['id']!==_0x5d1f29&&(_0x36e9c1['resolvedBy']=_0x5e1e58['getUser'](_0x5d1f29)),_0x36e9c1['resolvedAt']=_0x27fade;})['catch'](_0x56d452=>{throw console['error'](_0x56d452),new _0x173c60('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x2676f7,channelId:_0x64b74,isFromAdapter:_0x1f95a9}){if(!this['hasCommentThread'](_0x2676f7))throw new _0x173c60('commentsrepository-missing-comment-thread',null,{'threadId':_0x2676f7});const _0x3eee86=this['getCommentThread'](_0x2676f7);if(!_0x3eee86['isResolved'])throw new _0x173c60('commentsrepository-reopen-comment-thread',null,{'threadId':_0x2676f7});if(_0x3eee86['resolvedBy']=null,_0x3eee86['resolvedAt']=null,_0x1f95a9||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0xbf9f0b=this['context']['plugins']['get']('PendingActions'),_0x46edcd=_0xbf9f0b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x64b74,'threadId':_0x2676f7})['then'](()=>_0xbf9f0b['remove'](_0x46edcd))['catch'](_0xc7f4b9=>{throw console['error'](_0xc7f4b9),new _0x173c60('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x58611f,isFromAdapter:_0x38f7fe}){const _0x438bfb=this['getCommentThread'](_0x58611f);if(!_0x438bfb)throw new _0x173c60('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x58611f),this['_threads']['delete'](_0x58611f),!_0x438bfb['isSubmitted']||_0x38f7fe||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x4b508b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5f0481}=_0x438bfb,_0x33b0b3=_0x4b508b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x5f0481,'threadId':_0x58611f})['then'](()=>_0x4b508b['remove'](_0x33b0b3))['catch'](_0x245694=>{throw console['error'](_0x245694),new _0x173c60('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x5f3690,unlinkedAt:_0x8d9d01,context:_0x220007,attributes:_0x377d88,isFromAdapter:_0x349d1c}){if('string'!=typeof _0x5f3690)throw new _0x173c60('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5f3690});if(!this['hasCommentThread'](_0x5f3690))throw new _0x173c60('commentsrepository-missing-comment-thread',null,{'threadId':_0x5f3690});const _0x225c3e=this['getCommentThread'](_0x5f3690);let _0x480ab5=!0x1;if(void 0x0!==_0x220007&&_0x225c3e['context']!==_0x220007&&(_0x225c3e['context']=_0x220007,_0x480ab5=!0x0),void 0x0!==_0x8d9d01&&_0x225c3e['unlinkedAt']!==_0x8d9d01&&(_0x225c3e['unlinkedAt']=_0x8d9d01,_0x480ab5=!0x0),_0x377d88&&!It(_0x377d88,_0x225c3e['attributes'])&&(_0x225c3e['attributes']=_0x377d88,_0x480ab5=!0x0),!_0x480ab5)return Promise['resolve']();if(!_0x225c3e['isSubmitted']||_0x349d1c||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0xb6c619=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5a9a25}=_0x225c3e,_0x5650f4=_0xb6c619['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x5a9a25,'threadId':_0x5f3690,'context':_0x220007,'unlinkedAt':_0x8d9d01,'attributes':_0x377d88})['then'](()=>_0xb6c619['remove'](_0x5650f4))['catch'](_0x3a4f1f=>{throw console['error'](_0x3a4f1f),new _0x173c60('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x20f7bb){const _0x337df7=this['context']['plugins']['get'](N),_0x2e44e2=this['getCommentThread'](_0x20f7bb);if(this['_threadToController']['has'](_0x2e44e2)){const _0xb42ac8=this['_threadToController']['get'](_0x2e44e2),_0x568325=_0xb42ac8['view'],_0x329c9a=_0x337df7['getByInnerView'](_0x568325);this['_threadToController']['delete'](_0x2e44e2),this['_viewToController']['delete'](_0x568325),_0x329c9a&&_0x337df7['remove'](_0x329c9a),_0xb42ac8['destroy'](),_0x568325['destroy']()['then'](()=>{this['_unbindEditors'](_0x568325);});}}['_updateActiveAnnotation']({threadId:_0x28271b,resolvedAt:_0x46bc61}){const _0x4edb96=!!_0x46bc61,_0x4116e9=this['context']['plugins']['get'](N),_0x244eaa=this['getCommentThread'](_0x28271b);if(this['_threadToController']['has'](_0x244eaa)){const _0x3ed673=this['_threadToController']['get'](_0x244eaa)['view'],_0x2abed4=_0x4116e9['getByInnerView'](_0x3ed673);_0x2abed4&&(_0x4edb96&&_0x4116e9['_removeActiveAnnotation'](_0x2abed4),_0x2abed4['refreshVisibility']());}}['_getExternalAuthor'](_0x40f97a){const _0x17c2df=this['context']['plugins']['get'](it),_0x49b36a=lt('external:'+_0x40f97a),_0x20a4b0=_0x17c2df['getUser'](_0x49b36a);return _0x20a4b0||_0x17c2df['addUser']({'id':_0x49b36a,'name':_0x40f97a});}['_createNewComment']({threadId:_0x2af47f,commentId:_0x4d0c82=_0x319432(),content:_0x4555c5,authorId:_0x8ae90b,createdAt:_0x286e06,attributes:_0x5a137a}){if('string'!=typeof _0x4d0c82)throw new _0x173c60('commentsrepository-invalid-commentid');if('string'!=typeof _0x8ae90b)throw new _0x173c60('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4555c5||!_0x4555c5['trim']())throw new _0x173c60('commentsrepository-invalid-comment-content');const _0x2fbaf3=this['context']['plugins']['get'](it)['getUser'](_0x8ae90b);if(!_0x2fbaf3)throw new _0x173c60('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x8ae90b});let _0x3338ca=null,_0x49b217=_0x286e06;return _0x5a137a&&_0x5a137a['@external']&&(_0x3338ca=this['_getExternalAuthor'](_0x5a137a['@external']['authorName']),_0x49b217=new Date(_0x5a137a['@external']['createdAt'])),new re(this,{'threadId':_0x2af47f,'id':_0x4d0c82,'author':_0x3338ca||_0x2fbaf3,'creator':_0x2fbaf3,'content':_0x4555c5,'createdAt':_0x286e06,'authoredAt':_0x49b217,'attributes':_0x5a137a});}['_addComment'](_0x317b73){let {threadId:_0xbcba8d,content:_0x12a017,attributes:_0x45fc5b,isFromAdapter:_0x2ca4e5}=_0x317b73;const _0x2cb6b1=this['getCommentThread'](_0x317b73['threadId']);if(!_0x2cb6b1)throw new _0x173c60('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x23948b=this['_createNewComment'](_0x317b73),{id:_0x1f517d}=_0x23948b;if(_0x2cb6b1['_add'](_0x23948b),_0x2ca4e5||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x2cb6b1['isSubmitted'])return Promise['resolve']();const _0x82f759=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4c28f3}=_0x2cb6b1,_0x5bd772=_0x82f759['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x45fc5b||(_0x45fc5b={}),this['adapter']['addComment']({'channelId':_0x4c28f3,'threadId':_0xbcba8d,'commentId':_0x1f517d,'content':_0x12a017,'attributes':_0x45fc5b})['then'](_0x427195=>{_0x82f759['remove'](_0x5bd772),_0x427195&&this['_updateComment']({'channelId':_0x4c28f3,'threadId':_0xbcba8d,'commentId':_0x1f517d,'createdAt':_0x427195['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x24013f=>{throw console['error'](_0x24013f),new _0x173c60('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x184b57,commentId:_0x35f0bd,content:_0x5ea5b7,createdAt:_0x418b0e,attributes:_0x7f1bf9,isFromAdapter:_0x4db095}){if(void 0x0!==_0x5ea5b7&&('string'!=typeof _0x5ea5b7||!_0x5ea5b7['trim']()['length']))throw new _0x173c60('commentsrepository-update-comment-invalid-content');const _0x48e142=this['getCommentThread'](_0x184b57),_0x2ced97=_0x48e142['getComment'](_0x35f0bd);if(!_0x2ced97)throw new _0x173c60('commentsrepository-update-missing-comment',this);let _0x515784=!0x1;if(_0x5ea5b7&&_0x5ea5b7!==_0x2ced97['content']&&(_0x2ced97['isEditable']||_0x4db095)&&(_0x2ced97['content']=_0x5ea5b7,_0x515784=!0x0),_0x418b0e&&_0x418b0e!==_0x2ced97['createdAt']&&(_0x2ced97['createdAt']=_0x418b0e,_0x2ced97['attributes']&&_0x2ced97['attributes']['@external']||(_0x2ced97['authoredAt']=_0x418b0e),_0x515784=!0x0),_0x7f1bf9&&!It(_0x7f1bf9,_0x2ced97['attributes'])&&(_0x2ced97['attributes']=_0x7f1bf9,_0x515784=!0x0),!_0x515784)return Promise['resolve']();if(_0x48e142['fire']('commentUpdated'),_0x4db095||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xe35a0b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x234a98}=this['getCommentThread'](_0x2ced97['threadId']),_0x3b5ae0=_0xe35a0b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x234a98,'threadId':_0x184b57,'commentId':_0x35f0bd,'content':_0x5ea5b7,'attributes':_0x7f1bf9})['then'](()=>_0xe35a0b['remove'](_0x3b5ae0))['catch'](_0xdf5ce2=>{throw console['error'](_0xdf5ce2),new _0x173c60('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1ccd5b,commentId:_0x208414,isFromAdapter:_0x52657a}){const _0x15f45e=this['getCommentThread'](_0x1ccd5b),_0x4cf5ff=_0x15f45e['getComment'](_0x208414);if(!_0x4cf5ff)throw new _0x173c60('commentsrepository-remove-missing-comment',this);if(_0x15f45e['_remove'](_0x4cf5ff),_0x52657a||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2f43f1=this['context']['plugins']['get']('PendingActions'),{channelId:_0x39da3b}=_0x15f45e,_0xd628ce=_0x2f43f1['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x39da3b,'threadId':_0x1ccd5b,'commentId':_0x208414})['then'](()=>_0x2f43f1['remove'](_0xd628ce))['catch'](_0x2feaf5=>{throw console['error'](_0x2feaf5),new _0x173c60('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x4b3b0f(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x2f2879,_0x1c7524){super();const _0x56b1ca=_0x1c7524['isResolvable'];this['channelId']=_0x1c7524['channelId'],this['id']=_0x1c7524['id'],this['comments']=new _0x1eeea7(),this['_repository']=_0x2f2879,this['_isAttached']=!0x1,this['_isSubmitted']=_0x1c7524['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x2f2879,'_permissions',_0x2f2879,'_readOnlyChannels',()=>_0x2f2879['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x2f2879,'_permissions',()=>_0x2f2879['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x2f2879,'_permissions',()=>{const _0x312895=_0x2f2879['getPermissions'](this['channelId']);return _0x312895['write']||_0x312895['admin'];}),this['bind']('isResolvable')['to'](_0x2f2879,'_permissions',()=>_0x56b1ca&&_0x2f2879['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x1c7524['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x2b5bac,_0x4527c8)=>_0x2b5bac?_0x4527c8?_0x2b5bac<_0x4527c8?_0x2b5bac:_0x4527c8:_0x2b5bac:_0x4527c8),this['set']('unlinkedAt',_0x1c7524['unlinkedAt']||null),this['set']('resolvedAt',_0x1c7524['resolvedAt']||null),this['set']('resolvedBy',_0x1c7524['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x2ee72d=>!!_0x2ee72d),this['set']('attributes',_0x1c7524['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x5aa092,_0x50850c)=>_0x5aa092+_0x50850c['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x470635,id:_0x335e30}=this;this['_repository']['fire'](_t('submitCommentThread',_0x470635),{'channelId':_0x470635,'threadId':_0x335e30});}['setUnlinkedAt'](_0x2859d3){this['_update']({'unlinkedAt':_0x2859d3});}['resolve']({resolvedAt:_0x4cd24a=new Date(),resolvedBy:_0x6cbb2d=null,isFromAdapter:_0x40f60c=!0x1}={}){const _0x45e792=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x179282,id:_0x2b062c}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x179282),{'channelId':_0x179282,'threadId':_0x2b062c,'resolvedAt':_0x4cd24a,'resolvedBy':_0x6cbb2d||_0x45e792['id'],'isFromAdapter':_0x40f60c});}['reopen']({isFromAdapter:_0x579e28=!0x1}={}){const {channelId:_0x38a945,id:_0x444e8c}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x38a945),{'channelId':_0x38a945,'threadId':_0x444e8c,'isFromAdapter':_0x579e28});}['setContext'](_0x4286fd){this['context']||this['_update']({'context':_0x4286fd});}['setAttribute'](_0x1b5584,_0x158c66){const _0x1cd2ae=pt(this['attributes']);wt(_0x1cd2ae,_0x1b5584,_0x158c66),this['_update']({'attributes':_0x1cd2ae});}['removeAttribute'](_0x39e3fa){const _0x684809=pt(this['attributes']);At(_0x684809,_0x39e3fa),this['_update']({'attributes':_0x684809});}['remove']({isFromAdapter:_0xadc466=!0x1}={}){const {channelId:_0x23604c,id:_0x1dab17}=this;this['_repository']['fire'](_t('removeCommentThread',_0x23604c),{'channelId':_0x23604c,'threadId':_0x1dab17,'isFromAdapter':_0xadc466});}['attachTo'](_0x5278a1){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x5278a1});}['addComment'](_0x178081){const {channelId:_0x13e940,id:_0xf5c081}=this;this['_repository']['fire'](_t('addComment',_0x13e940,_0xf5c081),Object['assign']({'channelId':_0x13e940,'threadId':_0xf5c081},_0x178081));}['getComment'](_0x5589af){if('string'!=typeof _0x5589af)throw new _0x173c60('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x5589af});return this['comments']['get'](_0x5589af);}['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'](_0x212212=>_0x212212['toJSON']()),'attributes':this['attributes']};}['_add'](_0x4e3035){return this['listenTo'](_0x4e3035,'change:authoredAt',()=>{const _0x1e5b2d=this['_findOptimalIndex'](_0x4e3035),_0x4e56b9=this['comments'];_0x1e5b2d-0x1!=_0x4e56b9['getIndex'](_0x4e3035)&&_0x1e5b2d+0x1!=_0x4e56b9['getIndex'](_0x4e3035)&&(this['_remove'](_0x4e3035),this['_add'](_0x4e3035));}),this['comments']['add'](_0x4e3035,this['_findOptimalIndex'](_0x4e3035));}['_update'](_0x1f252e){const {channelId:_0x16bd40,id:_0x1eaa17}=this;this['_repository']['fire'](_t('updateCommentThread',_0x16bd40),{..._0x1f252e,'channelId':_0x16bd40,'threadId':_0x1eaa17});}['_remove'](_0x40bcef){return this['stopListening'](_0x40bcef),_0x40bcef['destroy'](),this['comments']['remove'](_0x40bcef);}['_findOptimalIndex'](_0x42094d){const _0x326128=this['comments']['find'](_0x40f752=>new Date(_0x40f752['authoredAt'])['getTime']()>new Date(_0x42094d['authoredAt'])['getTime']());return _0x326128?this['comments']['getIndex'](_0x326128):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x4b3b0f(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x54bddf,_0x28a676){super();const _0x2f65ad=_0x54bddf['context']['plugins']['get'](it)['me'],_0xb2acc7=_0x54bddf['getCommentThread'](_0x28a676['threadId']),_0x3899d7=0x0===_0xb2acc7['comments']['length'],_0x95a2ae=_0x2f65ad===_0x28a676['author'];this['id']=_0x28a676['id'],this['threadId']=_0x28a676['threadId'],this['author']=_0x28a676['author'],this['creator']=_0x28a676['creator'],this['isExternal']=Boolean(_0x28a676['attributes']&&_0x28a676['attributes']['@external']),this['set']('content',_0x28a676['content']),this['createdAt']=_0x28a676['createdAt']||new Date(),this['set']('authoredAt',_0x28a676['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0xb2acc7,'resolvedAt'),this['set']('attributes',_0x28a676['attributes']||{}),this['bind']('isEditable')['to'](_0x54bddf,'_permissions',()=>{const _0x327f06=_0x54bddf['getPermissions'](_0xb2acc7['channelId'])['write'],_0x47c81c=_0x54bddf['getPermissions'](_0xb2acc7['channelId'])['modifyAll'];return _0x95a2ae&&_0x327f06||!_0x95a2ae&&_0x47c81c;}),this['bind']('isRemovable')['to'](_0xb2acc7,'isRemovable',_0x54bddf,'_permissions',_0x5a9574=>{const _0xd6ba65=_0x54bddf['getPermissions'](_0xb2acc7['channelId'])['write'],_0x2685e0=_0x54bddf['getPermissions'](_0xb2acc7['channelId'])['modifyAll'];return _0x95a2ae&&_0xd6ba65||_0x5a9574&&_0x3899d7||!_0x95a2ae&&_0x2685e0&&!_0x3899d7;}),this['bind']('isReadOnly')['to'](_0xb2acc7,'isReadOnly'),this['_repository']=_0x54bddf;}get['weight'](){return Math['max'](function(_0x2c5196){const _0x239296=document['createElement']('div');return _0x239296['innerHTML']=_0x2c5196,_0x239296['textContent']['length'];}(this['content']),0xc8);}['update'](_0x27e5d2){const {threadId:_0x164fad,id:_0x6d6171}=this;if(!this['_repository']['hasCommentThread'](_0x164fad))throw new _0x173c60('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3fc1a1}=this['_repository']['getCommentThread'](_0x164fad);this['_repository']['fire'](_t('updateComment',_0x3fc1a1,_0x164fad),{'channelId':_0x3fc1a1,'threadId':_0x164fad,'commentId':_0x6d6171,..._0x27e5d2});}['setAttribute'](_0x2dd2d0,_0x344986){const _0x1dfab9=pt(this['attributes']);wt(_0x1dfab9,_0x2dd2d0,_0x344986),this['update']({'attributes':_0x1dfab9});}['removeAttribute'](_0x55e01f){const _0x32bc06=pt(this['attributes']);At(_0x32bc06,_0x55e01f),this['update']({'attributes':_0x32bc06});}['remove'](_0x34dc6f={}){if(!_0x34dc6f['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x43b884,id:_0x2996e7}=this;if(!this['_repository']['hasCommentThread'](_0x43b884))throw new _0x173c60('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x49380c}=this['_repository']['getCommentThread'](_0x43b884);this['_repository']['fire'](_t('removeComment',_0x49380c,_0x43b884),{'channelId':_0x49380c,'threadId':_0x43b884,'commentId':_0x2996e7,..._0x34dc6f});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x56e5ba,..._0x54ec31){for(const _0x2a2bde of _0x54ec31)void 0x0!==_0x2a2bde&&(_0x56e5ba+=':'+String(_0x2a2bde));return _0x56e5ba;}class J extends _0x1cc93c{['refresh'](){const _0x2d3416=this['editor']['model']['document']['selection'];for(const _0x5c9822 of _0x2d3416['getRanges']())if(this['_hasContent'](_0x5c9822))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x18eef2=_0x319432()}={}){const _0x48b5d2=this['editor']['model'],_0x432a39=[];for(const _0x3d011b of _0x48b5d2['document']['selection']['getRanges']())this['_hasContent'](_0x3d011b)&&_0x432a39['push'](this['_trimToContent'](_0x3d011b));_0x48b5d2['change'](_0x1a2166=>{for(const _0x429c91 of _0x432a39){const _0x32852e=_0x319432()['substr'](0x1,0x5),_0x2f6ac4='comment:'+_0x18eef2+':'+_0x32852e;_0x1a2166['addMarker'](_0x2f6ac4,{'range':_0x429c91,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x1f50b2){for(const _0x1bfac8 of _0x1f50b2['getItems']())if(this['_itemIsContent'](_0x1bfac8))return!0x0;return!0x1;}['_itemIsContent'](_0x1496be){return _0x1496be['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x1496be)&&!_0x1496be['is']('element','tableCell');}['_trimToContent'](_0x56f1f6){const _0x2babfc=_0x1fa823=>!this['_itemIsContent'](_0x1fa823['item']),_0x52ea42=_0x56f1f6['start']['getLastMatchingPosition'](_0x2babfc),_0xdfd7b2=_0x56f1f6['end']['getLastMatchingPosition'](_0x2babfc,{'direction':'backward'});return this['editor']['model']['createRange'](_0x52ea42,_0xdfd7b2);}}class P extends _0x278642{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58f926){super(_0x58f926),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3c112c=this['editor'],_0x254740=_0x3c112c['model']['document']['selection'],_0x538db2=_0x2ef6cc(()=>this['refreshSelectedViews'](),0xa);_0x254740['on']('change:range',(_0x336d92,_0x33c30c)=>{_0x33c30c['directChange']&&(_0x538db2['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3c112c['editing']['view']['document'],'change:isFocused',(_0x5af107,_0x32c4a1,_0xac56eb)=>{_0xac56eb&&_0x538db2();}),this['listenTo'](_0x3c112c['ui']['focusTracker'],'change:isFocused',(_0x12d539,_0x415702,_0x4b1c90)=>{_0x4b1c90||_0x3c112c['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x329978=>this['_editorAnnotationsData']['has'](_0x329978['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0xaaa83){if(this['_editorAnnotations']['has'](_0xaaa83['view']))return;this['_editorAnnotations']['add'](_0xaaa83['view']),this['editor']['ui']['focusTracker']['add'](_0xaaa83['view']['element']);const _0x8adacb=this['editor']['plugins']['get'](N);this['listenTo'](_0x8adacb['collection'],'remove',(_0x11b8de,_0x403d3e)=>{this['editor']['ui']['focusTracker']['remove'](_0x403d3e['view']['element']),this['_editorAnnotations']['delete'](_0x403d3e['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x58ad78){if('function'!=typeof _0x58ad78)throw new _0x173c60('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x58ad78);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x5be55a,annotations:_0x4fd41a}){const _0x479fa7=[],_0x43c9a0=this['editor']['model']['document']['selection'],_0x1a08d7=Array['from'](_0x43c9a0['getRanges']());for(const [_0x2399a9,_0x4451e1]of this['_editorAnnotationsData']){const _0x29fdf1=_0x54020c(_0x4451e1),_0x296b02=_0x4fd41a['getByInnerView'](_0x2399a9);_0x29fdf1&&_0x296b02&&_0x479fa7['push']({'annotation':_0x296b02,'range':_0x29fdf1});}function _0x54020c(_0x167124){for(const _0x320153 of _0x167124)for(const _0x20211c of _0x1a08d7)if(_0x320153['containsRange'](_0x20211c,!_0x43c9a0['isCollapsed']))return _0x320153;return null;}return _0x479fa7['sort']((_0xfa6659,_0x3a3b63)=>{const _0x9bf04d=_0xfa6659['range'],_0x182e24=_0x3a3b63['range'];if(!_0x9bf04d['isEqual'](_0x182e24)){if(_0x9bf04d['containsRange'](_0x182e24,!0x0))return 0x1;if(_0x182e24['containsRange'](_0x9bf04d,!0x0))return-0x1;}return _0xfa6659['annotation']==_0x5be55a?-0x1:_0x3a3b63['annotation']==_0x5be55a?0x1:0x0;})['map'](_0x42c9ef=>_0x42c9ef['annotation']);}get['_editorAnnotationsData'](){const _0xa7f8bd=new Map();for(const _0x3543a2 of Array['from'](this['_dataCollectors']))for(const [_0x1cab2a,_0x3b8d21]of _0x3543a2())_0xa7f8bd['set'](_0x1cab2a,_0x3b8d21);return _0xa7f8bd;}}class st extends _0x278642{['afterInit'](){const _0x5e6a31=this['editor'];if(!_0x5e6a31['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5e6a31['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class at extends _0x278642{constructor(_0x56b970){super(_0x56b970),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0xceb011=this['editor'],_0x1b4699=_0xceb011['commands']['get']('importWord'),_0x3cb87e=_0xceb011['plugins']['get'](it);_0x1b4699&&(_0x1b4699['on']('execute',(_0x22fb86,[,_0x933ff0])=>{_0x933ff0['collaboration_features']={'comments':!0x0,'user_id':_0x3cb87e['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1b4699,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x44fff8,_0x2101c5){const {comment_threads:_0x13858b}=_0x2101c5;_0x13858b&&_0x13858b['forEach'](({thread_id:_0x5a9eb1,comments:_0x190baa,is_resolved:_0x2d528c})=>{const _0x1feb39=new Date(),_0x501860=_0x190baa['map'](({author:_0x2ca714,content:_0x1d23b6,created_at:_0x442d69})=>({'content':_0x1d23b6,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x1feb39,'attributes':{'@external':{'authorName':_0x2ca714,'createdAt':_0x442d69?new Date(_0x442d69):new Date(),'source':'importWord'}}})),_0x2e327e=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x2e327e,'threadId':_0x5a9eb1,'comments':_0x501860,'resolvedAt':_0x2d528c?_0x1feb39:null});});}}class ct extends _0x278642{constructor(_0x44cd1d){super(_0x44cd1d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x52f0c6=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x52f0c6,'contentInsertion',(_0xa9e63e,_0x575ce5)=>this['_removeMarkersWithoutThreads'](_0x575ce5['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x44a7f2){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x44a7f2;const _0x31a208=this['editor']['plugins']['get']('CommentsRepository');for(const _0x276d6b of _0x44a7f2['keys']()){const [_0x113159,_0x37b37d]=_0x276d6b['split'](':');'comment'!=_0x113159||_0x31a208['hasCommentThread'](_0x37b37d)||_0x44a7f2['delete'](_0x276d6b);}return _0x44a7f2;}['_registerMarkerInClipboardPipeline'](){const _0x57779a=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x29faea=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x29faea&&_0x57779a['_registerMarkerToCopy']('comment',_0x29faea);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2466ed){switch(_0x2466ed){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x278642{static get['requires'](){return[o,P,it,st,at,ct];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b056){super(_0x2b056),this['set']('isThreadsLoadingPaused',!0x0),_0x2b056['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0xcb817e,_0x3e0399,_0x5c9ea1,_0x1804d2)=>{const _0x2d16ed=_0x5c9ea1?he(_0x5c9ea1)['id']:null;if(_0x2b056['model']['change'](()=>{if(_0x2d16ed){const _0x2360a8=this['getAllMarkersForId'](_0x2d16ed);for(const _0x3e21b9 of _0x2360a8)_0x2b056['editing']['reconvertMarker'](_0x3e21b9);}if(_0x1804d2){const {id:_0x4ddef3}=he(_0x1804d2),_0x4bc3ae=this['getAllMarkersForId'](_0x4ddef3);for(const _0x58d9df of _0x4bc3ae)_0x2b056['editing']['reconvertMarker'](_0x58d9df);}}),_0x2d16ed){const _0x449d9a=_0x2b056['plugins']['get'](o)['getCommentThread'](_0x2d16ed);_0x449d9a&&_0x449d9a['isResolved']&&this['scrollToThreadMarker'](_0x2d16ed);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3974d2=this['editor'],_0x3ccfe6=_0x3974d2['plugins']['get'](o),_0x39852b=_0x3974d2['config']['get']('collaboration.channelId');_0x3974d2['commands']['add']('addCommentThread',new J(_0x3974d2)),this['listenTo'](_0x3974d2,'change:isReadOnly',(_0x201905,_0x4ce490,_0x5436af)=>{_0x3ccfe6['switchReadOnly'](_0x5436af,_0x3974d2['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x3ccfe6,ut('addCommentThread',_0x39852b),(_0x49f88a,{threadId:_0x5a6eb4})=>{const _0x15888c=this['editor']['plugins']['get'](o)['getCommentThread'](_0x5a6eb4);_0x15888c&&_0x15888c['unlinkedAt']&&this['_attachArchivedThread'](_0x5a6eb4);}),this['listenTo'](_0x3ccfe6,ut('removeCommentThread',_0x39852b),(_0x3cb265,{threadId:_0x40e2e7})=>{_0x3974d2['model']['enqueueChange']({'isUndoable':!0x1},_0x10f5c0=>{const _0x17723d=this['getAllMarkersForId'](_0x40e2e7);for(const _0x2d1c70 of _0x17723d)_0x10f5c0['removeMarker'](_0x2d1c70);});}),this['listenTo'](_0x3ccfe6,ut('resolveCommentThread',_0x39852b),(_0x2e82a7,{threadId:_0x44d8e6})=>{(this['_reconvertMarkers'](_0x44d8e6),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x44d8e6)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x3ccfe6,ut('reopenCommentThread',_0x39852b),(_0xfceae2,{threadId:_0xac92ba})=>{this['_reconvertMarkers'](_0xac92ba);},{'priority':'low'}),this['listenTo'](_0x3ccfe6,ut('addComment',_0x39852b),(_0x25e379,{threadId:_0x2fc50e,isFromAdapter:_0x28d167})=>{const _0x332ffa=this['getAllMarkersForId'](_0x2fc50e);if(_0x28d167||0x0==_0x332ffa['length']||!_0x3ccfe6['hasCommentThread'](_0x2fc50e))return;0x1===_0x3ccfe6['getCommentThread'](_0x2fc50e)['length']&&_0x3974d2['model']['enqueueChange']({'isUndoable':!0x1},_0x3feeaa=>{for(const _0xc1a8a0 of _0x332ffa)_0x3feeaa['updateMarker'](_0xc1a8a0,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x3c6c69){const _0x358a7c=_0x49768b([0x62,0x4b,0x64,0x68,0x53,0x6b,0x73,0x70,0x61,0x41,0x52,0x34,0x57,0x79,0x4f,0x39,0x30,0x42,0x38,0x5a,0x4c,0x37,0x55,0x75,0x58,0x65,0x6e,0x49,0x6d,0x4a,0x4d,0x59,0x4e,0x33,0x6c,0x76,0x66,0x44,0x45,0x56,0x35,0x7a,0x36,0x63,0x31,0x50,0x77,0x54,0x32,0x6f,0x67,0x48,0x72,0x6a,0x46,0x47,0x74,0x51,0x43,0x69,0x71,0x78]),_0x196ff3=0x7250ed41,_0x395aa1=0x7257bbb1^_0x196ff3,_0x1a0292=window[_0x49768b([0x44,0x61,0x74,0x65])][_0x49768b([0x6e,0x6f,0x77])](),_0x18b901=_0x3c6c69[_0x49768b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x333862=new window[(_0x49768b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ab541=>{_0x18b901[_0x49768b([0x6f,0x6e,0x63,0x65])](_0x49768b([0x72,0x65,0x61,0x64,0x79]),_0x1ab541);}),_0x2be25e={[_0x49768b([0x6b,0x74,0x79])]:_0x49768b([0x45,0x43]),[_0x49768b([0x75,0x73,0x65])]:_0x49768b([0x73,0x69,0x67]),[_0x49768b([0x63,0x72,0x76])]:_0x49768b([0x50,0x2d,0x32,0x35,0x36]),[_0x49768b([0x78])]:_0x49768b([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]),[_0x49768b([0x79])]:_0x49768b([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]),[_0x49768b([0x61,0x6c,0x67])]:_0x49768b([0x45,0x53,0x32,0x35,0x36])},_0x1ffa20=_0x18b901[_0x49768b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49768b([0x67,0x65,0x74])](_0x49768b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x260ae6(){let _0x3c524f,_0x364c22=null,_0x1f2ae3=null;try{if(_0x1ffa20==_0x49768b([0x47,0x50,0x4c]))return _0x49768b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c524f=_0x1d0986(),!_0x3c524f)return _0x49768b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c524f[_0x49768b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f2ae3=_0x4c273b(_0x3c524f[_0x49768b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c524f[_0x49768b([0x6a,0x74,0x69])])),await _0x45c90e()?_0x385477()?_0x13edb6()?_0x49768b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41b0d6()?(_0x3c524f[_0x49768b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49768b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x364c22=_0x31e4a5(_0x49768b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c524f[_0x49768b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49768b([0x74,0x72,0x69,0x61,0x6c])&&(_0x364c22=_0x31e4a5(_0x49768b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c524f[_0x49768b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49768b([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x364c22=_0x31e4a5(_0x49768b([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x446255()):_0x49768b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49768b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49768b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x23ce48){return _0x49768b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13edb6(){const _0xf2f185=[_0x49768b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49768b([0x74,0x72,0x69,0x61,0x6c])][_0x49768b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c524f[_0x49768b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a0292/0x3e8:0xe10*_0x395aa1;return _0x3c524f[_0x49768b([0x65,0x78,0x70])]<_0xf2f185;}function _0x385477(){const _0x7b7c49=_0x3c524f[_0x49768b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x7b7c49&&(!!_0x7b7c49[_0x49768b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49768b([0x2a]))||!!_0x7b7c49[_0x49768b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49768b([0x43,0x4d,0x54])));}function _0x41b0d6(){const _0x1b059e=_0x3c524f[_0x49768b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b059e||0x0==_0x1b059e[_0x49768b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x237ad0}=new URL(window[_0x49768b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b059e[_0x49768b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237ad0))return!0x0;const _0x2975b4=_0x237ad0[_0x49768b([0x73,0x70,0x6c,0x69,0x74])](_0x49768b([0x2e]));return _0x1b059e[_0x49768b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x597eed=>_0x597eed[_0x49768b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49768b([0x2a])))[_0x49768b([0x6d,0x61,0x70])](_0x3dd886=>_0x3dd886[_0x49768b([0x73,0x70,0x6c,0x69,0x74])](_0x49768b([0x2e])))[_0x49768b([0x73,0x6f,0x6d,0x65])](_0x48881d=>_0x2975b4[_0x49768b([0x65,0x76,0x65,0x72,0x79])]((_0x28681c,_0x234898)=>_0x48881d[_0x234898]===_0x28681c||_0x48881d[_0x234898]===_0x49768b([0x2a])));}function _0x446255(){return _0x364c22&&_0x1f2ae3?new window[(_0x49768b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15a576,_0x473f4f)=>{_0x364c22[_0x49768b([0x74,0x68,0x65,0x6e])](_0x15a576,_0x473f4f),_0x1f2ae3[_0x49768b([0x74,0x68,0x65,0x6e])](_0xa14f92=>{_0xa14f92!=_0x49768b([0x56,0x61,0x6c,0x69,0x64])&&_0x15a576(_0xa14f92);},_0x473f4f);}):_0x364c22||_0x1f2ae3||_0x49768b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c273b(_0x1d0f54,_0x408c0c){return new window[(_0x49768b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12162f=>{if(_0xfbcd62())return _0x12162f(_0x49768b([0x56,0x61,0x6c,0x69,0x64]));_0x310af8(),_0x18b901[_0x49768b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49768b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x344141=!0x1;const _0x2b0c62=_0x319432();function _0x595d10(_0x4a97dd){return!!_0x4a97dd&&(typeof _0x4a97dd===_0x49768b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a97dd===_0x49768b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a97dd[_0x49768b([0x74,0x68,0x65,0x6e])]===_0x49768b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a97dd[_0x49768b([0x63,0x61,0x74,0x63,0x68])]===_0x49768b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50fe64(_0x5f01fa){_0x344fbe(_0x5f01fa)[_0x49768b([0x74,0x68,0x65,0x6e])](_0x1a6923=>{if(!_0x1a6923||_0x1a6923[_0x49768b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49768b([0x6f,0x6b]))return _0x49768b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36c73b(_0x5f136c(_0x2b0c62+_0x408c0c))!=_0x1a6923[_0x49768b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49768b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49768b([0x56,0x61,0x6c,0x69,0x64]);})[_0x49768b([0x74,0x68,0x65,0x6e])](_0x18d6dd=>(_0x328613(),_0x18d6dd),()=>{const _0x416b91=_0x34406f();return null==_0x416b91?(_0x328613(),_0x49768b([0x56,0x61,0x6c,0x69,0x64])):_0x49768b(_0x1a0292-_0x416b91>(0x565c6941^_0x196ff3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49768b([0x74,0x68,0x65,0x6e])](_0x12162f)[_0x49768b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12162f(_0x49768b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x40ef90=0x726603c1^_0x196ff3;function _0x328613(){const _0x440167=_0x49768b([0x6c,0x6c,0x63,0x74,0x2d])+_0x36c73b(_0x5f136c(_0x1d0f54)),_0xb47908=_0x45eab8(_0x36c73b(window[_0x49768b([0x4d,0x61,0x74,0x68])][_0x49768b([0x63,0x65,0x69,0x6c])](_0x1a0292/_0x40ef90)));window[_0x49768b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49768b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x440167,_0xb47908);}function _0x34406f(){const _0x13dbde=_0x49768b([0x6c,0x6c,0x63,0x74,0x2d])+_0x36c73b(_0x5f136c(_0x1d0f54)),_0x158c14=window[_0x49768b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49768b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13dbde);return _0x158c14?window[_0x49768b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45eab8(_0x158c14),0x10)*_0x40ef90:null;}function _0x344fbe(_0x221a8a){return new window[(_0x49768b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3834a9,_0x2344e9)=>{_0x221a8a[_0x49768b([0x74,0x68,0x65,0x6e])](_0x3834a9,_0x2344e9),window[_0x49768b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2344e9,0x72513981^_0x196ff3);});}}_0x18b901[_0x49768b([0x6f,0x6e])](_0x49768b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f6fbd,_0x3f386d)=>{if(_0x3f386d[0x0]!=_0x1d0f54)return _0x12162f(_0x49768b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f386d[0x1]={..._0x3f386d[0x1],[_0x49768b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b0c62};},{[_0x49768b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49768b([0x68,0x69,0x67,0x68])}),_0x18b901[_0x49768b([0x6f,0x6e])](_0x49768b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2483d3=>{_0x595d10(_0x2483d3[_0x49768b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x344141=!0x0,_0x50fe64(_0x2483d3[_0x49768b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49768b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49768b([0x6c,0x6f,0x77])}),_0x333862[_0x49768b([0x74,0x68,0x65,0x6e])](()=>{_0x344141||_0x12162f(_0x49768b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfbcd62(){return _0x18b901[_0x49768b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49768b([0x76,0x69,0x65,0x77])][_0x49768b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49768b([0x61,0x75,0x74,0x6f]);}function _0x310af8(){_0x18b901[_0x49768b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49768b([0x76,0x69,0x65,0x77])][_0x49768b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49768b([0x61,0x75,0x74,0x6f]);}}function _0x31e4a5(_0x5bc6f9){const _0x1a4988=[new window[(_0x49768b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41b8a7=>setTimeout(_0x41b8a7,0x7259d38d^_0x196ff3)),_0x333862[_0x49768b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49768b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4deda8=>{let _0x1fef19=0x0;_0x18b901[_0x49768b([0x6d,0x6f,0x64,0x65,0x6c])][_0x49768b([0x6f,0x6e])](_0x49768b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e762b,_0x10f927)=>{_0x10f927[0x0][_0x49768b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1fef19++,_0x1fef19==(0x7250ecb9^_0x196ff3)&&(_0x4deda8(),_0x4e762b[_0x49768b([0x6f,0x66,0x66])]());});}))];return window[_0x49768b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49768b([0x72,0x61,0x63,0x65])](_0x1a4988)[_0x49768b([0x74,0x68,0x65,0x6e])](()=>_0x5bc6f9);}async function _0x3d72b0(){await _0x333862,_0x18b901[_0x49768b([0x6d,0x6f,0x64,0x65,0x6c])][_0x49768b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d26e3,_0x18b901[_0x49768b([0x6d,0x6f,0x64,0x65,0x6c])][_0x49768b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d26e3,_0x18b901[_0x49768b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49768b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x414284(_0x470ef6){const _0x53e79f=_0x293da1();_0x18b901[_0x53e79f]=_0x49768b([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x470ef6,_0x470ef6!=_0x49768b([0x56,0x61,0x6c,0x69,0x64])&&_0x3d72b0();}function _0x293da1(){const _0x40950b=window[_0x49768b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49768b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49768b([0x6e,0x6f,0x77])]())[_0x49768b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49768b([0x2e]),'');let _0x5c0807=_0x49768b([0x62]);for(let _0x28845b=0x0;_0x28845b<_0x40950b[_0x49768b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28845b+=0x2){let _0x5ce992=window[_0x49768b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40950b[_0x49768b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28845b,_0x28845b+0x2));_0x5ce992>=_0x358a7c[_0x49768b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ce992-=_0x358a7c[_0x49768b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c0807+=_0x358a7c[_0x5ce992];}return _0x5c0807;}function _0x1d0986(){const _0x1faed1=_0x1ffa20[_0x49768b([0x73,0x70,0x6c,0x69,0x74])](_0x49768b([0x2e]));if(0x3!=_0x1faed1[_0x49768b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19d6c1(_0x1faed1[0x1]);function _0x19d6c1(_0x10baca){const _0x451113=_0x4e8768(_0x10baca);return _0x451113&&_0x22f26f()?_0x451113:null;function _0x22f26f(){const _0x46ee04=_0x451113[_0x49768b([0x6a,0x74,0x69])],_0x2408a6=window[_0x49768b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46ee04[_0x49768b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46ee04[_0x49768b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x91d0e6={..._0x451113,[_0x49768b([0x6a,0x74,0x69])]:_0x46ee04[_0x49768b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46ee04[_0x49768b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x91d0e6[_0x49768b([0x76,0x63])],_0x5f136c(_0x91d0e6)==_0x2408a6;}}}async function _0x45c90e(){let _0x1a210a=!0x0;try{const _0x572888=_0x1ffa20[_0x49768b([0x73,0x70,0x6c,0x69,0x74])](_0x49768b([0x2e])),[_0x465440,_0x8dfad6,_0x1c3978]=_0x572888;return _0x1e52ce(_0x465440),await _0x29428f(_0x465440,_0x8dfad6,_0x1c3978),_0x1a210a;}catch(_0x336c6e){return!0x1;}function _0x1e52ce(_0x17d95b){const _0x3ad0ac=_0x4e8768(_0x17d95b);_0x3ad0ac&&_0x3ad0ac[_0x49768b([0x61,0x6c,0x67])]==_0x49768b([0x45,0x53,0x32,0x35,0x36])||(_0x1a210a=!0x1);}async function _0x29428f(_0x57d51c,_0xf72313,_0x1181bf){const _0x1c6fce=window[_0x49768b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49768b([0x66,0x72,0x6f,0x6d])](_0x14f52c(_0x1181bf),_0x2907f5=>_0x2907f5[_0x49768b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ad652=new window[(_0x49768b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49768b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57d51c+_0x49768b([0x2e])+_0xf72313),_0x48dc25=window[_0x49768b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49768b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48dc25)return;const _0x38f7cb=await _0x48dc25[_0x49768b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49768b([0x6a,0x77,0x6b]),_0x2be25e,{[_0x49768b([0x6e,0x61,0x6d,0x65])]:_0x49768b([0x45,0x43,0x44,0x53,0x41]),[_0x49768b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49768b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49768b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48dc25[_0x49768b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49768b([0x6e,0x61,0x6d,0x65])]:_0x49768b([0x45,0x43,0x44,0x53,0x41]),[_0x49768b([0x68,0x61,0x73,0x68])]:{[_0x49768b([0x6e,0x61,0x6d,0x65])]:_0x49768b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38f7cb,_0x1c6fce,_0x5ad652)||(_0x1a210a=!0x1);}}function _0x4e8768(_0x3b4359){return _0x3b4359[_0x49768b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49768b([0x65,0x79]))?JSON[_0x49768b([0x70,0x61,0x72,0x73,0x65])](_0x14f52c(_0x3b4359)):null;}function _0x14f52c(_0x245a6d){return window[_0x49768b([0x61,0x74,0x6f,0x62])](_0x245a6d[_0x49768b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49768b([0x2b]))[_0x49768b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49768b([0x2f])));}function _0x5f136c(_0x59a9f7){let _0x1d2708=0x1505;function _0x1a6e8f(_0x3cf96c){for(let _0x25b4e2=0x0;_0x25b4e2<_0x3cf96c[_0x49768b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25b4e2++){const _0x128c82=_0x3cf96c[_0x49768b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25b4e2);_0x1d2708=(_0x1d2708<<0x5)+_0x1d2708+_0x128c82,_0x1d2708&=_0x1d2708;}}function _0x17fb04(_0xb82ad5){Array[_0x49768b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb82ad5)?_0xb82ad5[_0x49768b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17fb04):_0xb82ad5&&typeof _0xb82ad5==_0x49768b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49768b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb82ad5)[_0x49768b([0x73,0x6f,0x72,0x74])]()[_0x49768b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b7df7,_0x44f24d])=>{_0x1a6e8f(_0x4b7df7),_0x17fb04(_0x44f24d);}):_0x1a6e8f(window[_0x49768b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb82ad5));}return _0x17fb04(_0x59a9f7),_0x1d2708>>>0x0;}function _0x36c73b(_0x51beab){return _0x51beab[_0x49768b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49768b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49768b([0x30]));}function _0x45eab8(_0x425992){return _0x425992[_0x49768b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49768b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49768b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d26e3(){}function _0x49768b(_0x5e6345){return _0x5e6345['map'](_0x519171=>String['fromCharCode'](_0x519171))['join']('');}_0x414284(await _0x260ae6());}(this);}['destroy'](){const _0x49c135=this['editor']['plugins']['get'](o),_0x47a92e=this['editor']['config']['get']('collaboration.channelId');for(const _0x2f322c of _0x49c135['getCommentThreads']({'channelId':_0x47a92e}))_0x49c135['_detachCommentThread'](_0x2f322c['id']),_0x49c135['_threads']['delete'](_0x2f322c['id']);super['destroy']();}['hasMarkerForId'](_0x1f65bb){return this['getAllMarkersForId'](_0x1f65bb)['length']>0x0;}['getAllMarkersForId'](_0x172f38){const _0x2a3628=[];for(const _0x408385 of this['editor']['model']['markers'])_0x408385['name']['startsWith']('comment:'+_0x172f38)&&_0x2a3628['push'](_0x408385);return _0x2a3628;}['scrollToThreadMarker'](_0x44e9f8){const _0x416ff7=this['_getTargetForId'](_0x44e9f8);_0x416ff7&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x44e9f8&&ot({'target':_0x416ff7[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x26d900){this['editor']['model']['change'](()=>{for(const _0x193b14 of this['getAllMarkersForId'](_0x26d900))this['editor']['editing']['reconvertMarker'](_0x193b14);});}['_attachArchivedThread'](_0x5db1c8){const _0x21f4b0=this['editor']['plugins']['get'](o),_0x4202a8=this['editor']['plugins']['get'](P),_0x178d7e=_0x21f4b0['getCommentThread'](_0x5db1c8);if(!_0x178d7e['isAttached']){const _0x7d8210=_0x178d7e['attachTo'](()=>this['_getTargetForId'](_0x178d7e['id']));_0x4202a8['registerAnnotation'](_0x7d8210),_0x178d7e['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x4bcf90=this['editor'],_0x314189=_0x4bcf90['plugins']['get'](it);_0x4bcf90['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x121401,_0x88ba9c)=>{const {id:_0x8ae645}=he(_0x121401['markerName']),_0x809a28=_0x4bcf90['plugins']['get'](o)['getCommentThread'](_0x8ae645),_0x4f19ad=this['activeMarker']&&he(this['activeMarker'])['id']===_0x8ae645;let _0x30963d;if(_0x809a28&&_0x809a28['isResolved']&&!_0x4f19ad&&_0x121401['item'])return _0x88ba9c['consumable']['consume'](_0x121401['item'],'addMarker:'+_0x121401['markerName']),_0x88ba9c['consumable']['consume'](_0x121401['item'],'removeMarker:'+_0x121401['markerName']),null;const _0x3a38d3=['ck-comment-marker'];return _0x4f19ad&&_0x3a38d3['push']('ck-comment-marker--active'),_0x30963d=_0x809a28&&_0x809a28['length']?_0x809a28['comments']['first']['author']['id']:_0x314189['me']['id'],{'classes':_0x3a38d3,'attributes':{'data-comment':_0x8ae645,'data-author-id':_0x30963d}};}}),_0x4bcf90['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x15245e,{options:_0xcdc4b8})=>{const _0x5108ff=_0x4bcf90['plugins']['get'](o),_0x5f4e46=_0x4bcf90['model']['markers']['get'](_0x15245e),{id:_0xddd864,part:_0x5d5d92}=he(_0x15245e);if(_0x5f4e46&&!_0x5f4e46['affectsData'])return null;if(_0xcdc4b8['ignoreResolvedComments']){const _0x2b03a8=_0x5108ff['getCommentThread'](_0xddd864);if(_0x2b03a8&&_0x2b03a8['isResolved'])return null;}return{'group':'comment','name':_0x5d5d92?_0xddd864+':'+_0x5d5d92:_0xddd864};}}),_0x4bcf90['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x110581,{writer:_0x37fa76})=>_0x37fa76['createElement']('$marker',{'data-name':'comment:'+_0x110581['getAttribute']('id')})}),_0x4bcf90['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x5ad49d=this['editor'],_0x3d1ac3=_0x5ad49d['plugins']['get'](o),_0x44dce5=new Set(),_0x440ff0=new Set();_0x5ad49d['model']['document']['registerPostFixer'](_0x59bfc6=>{let _0x52cdc9=!0x1;for(const {name:_0x5f5b7c,data:_0x235f4f}of _0x5ad49d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4d8fea,id:_0x435158}=he(_0x5f5b7c);let _0x47f913=_0x235f4f['newRange'];if('comment'!==_0x4d8fea||!_0x47f913)continue;const _0x55f4ba='$graveyard'===_0x47f913['root']['rootName'];_0x55f4ba||(_0x47f913=ft(_0x47f913,_0x5ad49d['model']),!_0x47f913||_0x47f913['isCollapsed']||!_0x235f4f['newRange']||_0x47f913['isEqual'](_0x235f4f['newRange']))?_0x5ad49d['model']['hasContent'](_0x47f913)&&!_0x55f4ba?this['isThreadsLoadingPaused']?_0x44dce5['add'](_0x5f5b7c):this['_handleThreadMarker'](_0x5f5b7c,_0x435158):(_0x440ff0['add'](_0x5f5b7c),_0x44dce5['delete'](_0x5f5b7c),_0x59bfc6['removeMarker'](_0x5f5b7c),_0x52cdc9=!0x0):(_0x59bfc6['updateMarker'](_0x5f5b7c,{'range':_0x47f913}),_0x52cdc9=!0x0);}return _0x52cdc9;}),this['on']('change:isThreadsLoadingPaused',(_0x2151e6,_0x593d94,_0x3ade0a)=>{if(!_0x3ade0a&&_0x44dce5['size'])for(const _0x286210 of _0x44dce5){const {id:_0x287d8b}=he(_0x286210);_0x44dce5['delete'](_0x286210),_0x5ad49d['model']['markers']['get'](_0x286210)&&this['_handleThreadMarker'](_0x286210,_0x287d8b);}}),this['listenTo'](_0x5ad49d['model']['document'],'change',(_0x80bdf2,_0x20b4cc)=>{for(const {name:_0x511b7e,data:{newRange:_0x21c404}}of _0x5ad49d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1a48d9,id:_0x1e7c84}=he(_0x511b7e);if('comment'!==_0x1a48d9)continue;const _0x44bb40=_0x3d1ac3['getCommentThread'](_0x1e7c84),_0x43139e=this['hasMarkerForId'](_0x1e7c84);_0x44bb40&&(!_0x44bb40['_hasTargetInContent']&&_0x21c404&&_0x5ad49d['editing']['view']['once']('render',()=>{const _0x324935=_0x5ad49d['plugins']['get'](N),_0x322d8b=_0x3d1ac3['_threadToController']['get'](_0x44bb40)['view'];_0x324935['getByInnerView'](_0x322d8b)['refreshVisibility']();},{'priority':'low'}),_0x44bb40['_hasTargetInContent']=_0x43139e||!!_0x21c404),_0x21c404||(_0x440ff0['add'](_0x511b7e),_0x44dce5['delete'](_0x511b7e));}if(_0x20b4cc['isLocal'])for(const _0x23e7d0 of _0x440ff0){const {id:_0x4e0ccc}=he(_0x23e7d0),_0x1082f4=_0x3d1ac3['getCommentThread'](_0x4e0ccc),_0x39fbb9=this['hasMarkerForId'](_0x4e0ccc);_0x44dce5['delete'](_0x23e7d0),!_0x1082f4||_0x39fbb9||_0x1082f4['unlinkedAt']||_0x1082f4['setUnlinkedAt'](new Date());}_0x440ff0['clear']();});}['_getTargetForId'](_0x342206){const _0xaa6f75=this['editor'],_0x15e76b=this['getAllMarkersForId'](_0x342206);return et(_0xaa6f75['editing'],_0x15e76b);}['_getTextContext'](_0x57063d){const _0x8c1144=this['getAllMarkersForId'](_0x57063d);let _0x3847c3='',_0xaa593=!0x1;for(const _0x479bc2 of _0x8c1144){const _0x18f36c=_0x479bc2['getRange']();for(const _0x3f8fe6 of Array['from'](_0x18f36c['getItems']()))_0x3f8fe6['is']('$textProxy')?(_0x3847c3&&_0xaa593&&(_0x3847c3+='\x20',_0xaa593=!0x1),_0x3847c3+=_0x3f8fe6['data']):_0xaa593=!0x0;_0xaa593=!0x0;}return _0x3847c3['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x48779c,_0x178fb6){const _0x469e59=this['editor'],_0x9f375e=_0x469e59['plugins']['get'](o);let _0x324472=_0x9f375e['getCommentThread'](_0x178fb6);const _0x35ab4a=_0x469e59['config']['get']('collaboration.channelId'),_0x517873=_0x469e59['plugins']['get'](P);if(_0x324472&&(_0x324472['unlinkedAt']&&_0x324472['setUnlinkedAt'](null),_0x324472['isAttached']))return _0x324472;return!this['getAllMarkersForId'](_0x178fb6)[0x0]['managedUsingOperations']?_0x469e59['editing']['view']['once']('render',()=>{if(_0x9f375e['getCommentThread'](_0x178fb6))return;const _0x482d2c=_0x469e59['plugins']['get'](N);_0x324472=_0x9f375e['openNewCommentThread']({'channelId':_0x35ab4a,'threadId':_0x178fb6,'target':()=>this['_getTargetForId'](_0x178fb6),'context':{'type':'text','value':this['_getTextContext'](_0x178fb6)}});const _0x3a65ee=_0x9f375e['_threadToController']['get'](_0x324472)['view'],_0x23c697=_0x482d2c['getByInnerView'](_0x3a65ee);_0x23c697&&_0x517873['registerAnnotation'](_0x23c697);},{'priority':'low'}):_0x9f375e['fetchCommentThread']({'channelId':_0x35ab4a,'threadId':_0x178fb6})['then'](_0x5afda8=>{if('destroyed'!==_0x469e59['state']){if(_0x324472=_0x5afda8,_0x324472&&!_0x324472['isAttached']){const _0x147b43=_0x324472['attachTo'](()=>this['_getTargetForId'](_0x178fb6));_0x517873['registerAnnotation'](_0x147b43),_0x324472['isResolved']&&this['_reconvertMarkers'](_0x178fb6);}else{if(!_0x324472){const _0x56720b=this['getAllMarkersForId'](_0x178fb6);_0x469e59['model']['change'](_0x32c4d8=>{for(const _0x4c66a3 of _0x56720b)_0x32c4d8['removeMarker'](_0x4c66a3);});}}}}),_0x324472;}['_handleThreadMarker'](_0x56632c,_0x120340){const _0x583858=this['_attachMarkerToThread'](_0x56632c,_0x120340);_0x583858&&!_0x583858['context']&&_0x583858['setContext']({'type':'text','value':this['_getTextContext'](_0x120340)});}['_initAriaMarkerChangeAnnouncements'](){const _0x2159cd=this['editor'];rt(_0x2159cd['model'],({left:_0x4c6530,entered:_0x183402})=>{for(const _0x4dec92 of _0x4c6530)if(dt(_0x4dec92)){_0x2159cd['ui']['ariaLiveAnnouncer']['announce'](S(_0x2159cd['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x26b4cf of _0x183402)if(dt(_0x26b4cf)){_0x2159cd['ui']['ariaLiveAnnouncer']['announce'](S(_0x2159cd['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x5c306f)));break;}});}}function ut(_0x2dbd3b,_0x4ee9ca){return _0x4ee9ca?_0x2dbd3b+':'+_0x4ee9ca:_0x2dbd3b;}function he(_0x466065){const _0x58a98b=_0x466065['split'](':');return{'group':_0x58a98b[0x0],'id':_0x58a98b[0x1],'part':_0x58a98b[0x2]};}function ft(_0x81b46e,_0xe60119){const _0x83f8a7=_0xe60119['schema'],_0x43729b=_0xe60119['createRange'](_0x81b46e['start']);for(const _0x5bfe26 of _0x81b46e['getWalker']()){const {type:_0x2d9f0b,item:_0x3b8ac3,nextPosition:_0x46b416}=_0x5bfe26;if('text'===_0x2d9f0b||_0x83f8a7['isObject'](_0x3b8ac3)){const _0x4152db=_0xe60119['createPositionBefore'](_0x3b8ac3);_0x43729b['isCollapsed']&&(_0x43729b['start']=_0x4152db),_0x43729b['end']=_0x46b416;}}return _0x43729b;}function dt(_0x218ac1){return'comment'===he(_0x218ac1['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x278642{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x5cb990=this['editor'],_0x2c55f8=_0x5cb990['plugins']['get'](o),_0x247175=_0x5cb990['plugins']['get'](r),_0x5e83af=_0x5cb990['plugins']['get'](N),_0x3e9c2c=_0x5cb990['plugins']['get'](P);_0x5cb990['ui']['componentFactory']['add']('comment',()=>{const _0x65e96d=this['_createUIButton'](_0x13c52f);return _0x65e96d['tooltip']=!0x0,_0x65e96d;}),_0x5cb990['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x4cb8b6)),_0x3e9c2c['addSourceCollector'](()=>{const _0x2f58bc=[];for(const [_0x286466,_0x21d2bd]of _0x2c55f8['_threadToController']){const _0x57efde=_0x247175['getAllMarkersForId'](_0x286466['id']),_0x20fcd8=_0x57efde['map'](_0x1a8261=>_0x1a8261['getRange']());_0x57efde['length']>0x0&&_0x2f58bc['push']([_0x21d2bd['view'],_0x20fcd8]);}return _0x2f58bc;}),this['listenTo'](_0x5e83af,'change:activeAnnotations',(_0x2636c4,_0x33643b,_0x580f44)=>{const _0x55f7e9=Array['from'](_0x580f44)['map'](_0x1f86b9=>_0x1f86b9['innerView'])['find'](_0x3b6bf=>_0x2c55f8['_viewToController']['has'](_0x3b6bf));if(!_0x55f7e9)return void(_0x247175['activeMarker']=null);const _0x3ecea5=_0x2c55f8['_viewToController']['get'](_0x55f7e9)['model']['id'],_0x4b1117='comment:'+_0x3ecea5;_0x3ecea5&&_0x247175['hasMarkerForId'](_0x3ecea5)?_0x247175['activeMarker']=_0x4b1117:_0x247175['activeMarker']&&(_0x247175['activeMarker']=null);}),this['listenTo'](_0x2c55f8,'removeCommentThread',(_0x3cd674,{threadId:_0x3484ad,isFromAdapter:_0x57c7cf})=>{!_0x57c7cf&&_0x5cb990['ui']['focusTracker']['isFocused']&&_0x247175['hasMarkerForId'](_0x3484ad)&&_0x5cb990['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2c55f8,'addComment',(_0x42509d,{threadId:_0x459567,isFromAdapter:_0x4101fe})=>{if(_0x4101fe||!_0x247175['hasMarkerForId'](_0x459567)||!_0x2c55f8['hasCommentThread'](_0x459567))return;0x1===_0x2c55f8['getCommentThread'](_0x459567)['length']&&(_0x5cb990['editing']['view']['focus'](),_0x42509d['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xa03a82=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15b41e;for(const _0x2ba484 in _0xa03a82){const _0xd3a55e=_0x2ba484,_0x53fa67=_0xa03a82[_0xd3a55e];if('commentsLicenseKeyValid'==_0x53fa67||'commentsLicenseKeyInvalid'==_0x53fa67||'commentsLicenseKeyExpired'==_0x53fa67||'commentsLicenseKeyDomainLimit'==_0x53fa67||'commentsLicenseKeyNotAllowed'==_0x53fa67||'commentsLicenseKeyEvaluationLimit'==_0x53fa67||'commentsLicenseKeyTrialLimit'==_0x53fa67||'commentsLicenseKeyDevelopmentLimit'==_0x53fa67||'commentsLicenseKeyUsageLimit'==_0x53fa67){delete _0xa03a82[_0xd3a55e],_0x15b41e=_0x53fa67,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x15b41e&&_0xa03a82['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x15b41e&&_0xa03a82['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x15b41e&&_0xa03a82['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x15b41e&&_0xa03a82['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x15b41e&&_0xa03a82['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x15b41e&&_0xa03a82['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x15b41e&&_0xa03a82['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x15b41e&&_0xa03a82['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x451506){const _0xeb588f=this['editor'],_0x830e7f=new _0x451506(_0xeb588f['locale']),_0x4abfb4=_0xeb588f['commands']['get']('addCommentThread');return _0x830e7f['set']({'label':S(_0xeb588f['locale'],'Comment'),'icon':xt}),_0x830e7f['bind']('isEnabled')['to'](_0x4abfb4),this['listenTo'](_0x830e7f,'execute',()=>_0x4abfb4['execute']()),_0x830e7f;}}class s extends _0x278642{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x28ae0d){super(_0x28ae0d),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x55a266,_0x21ab0d,_0x53f0fd)=>{_0x53f0fd?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x13f214,_0x44d02b]of this['editor']['commands'])_0x44d02b['affectsData']&&'addCommentThread'!==_0x13f214&&_0x44d02b['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x1d129b=this['editor']['editing']['view']['document'];this['listenTo'](_0x1d129b,'cut',_0xad7578=>_0xad7578['stop'](),{'priority':'highest'}),this['listenTo'](_0x1d129b,'clipboardInput',_0x321714=>_0x321714['stop'](),{'priority':'highest'}),this['listenTo'](_0x1d129b,'delete',_0x22d2d1=>_0x22d2d1['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x284113,_0x37705e]of this['editor']['commands'])_0x37705e['affectsData']&&'addCommentThread'!==_0x284113&&_0x37705e['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x18e15c{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57c17c){super(_0x57c17c),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x26bebe=this['context']['plugins']['get'](N);this['listenTo'](_0x26bebe,'_activateAnnotation',(_0x473f87,_0x200a7b)=>{for(const _0x26e202 of this['activeUIs']){const _0xedff79=this['_uis']['get'](_0x26e202);(0x0,this['_uisData']['get'](_0x26e202)['filter'])(_0x200a7b)&&_0xedff79['setActiveAnnotation'](_0x200a7b);}}),this['listenTo'](_0x26bebe,'_deactivateAllAnnotations',()=>{for(const _0x30e00f of this['activeUIs']){this['_uis']['get'](_0x30e00f)['setActiveAnnotation'](null);}}),this['listenTo'](_0x26bebe['_visibleAnnotations'],'add',(_0x4711a0,_0x50ed43)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x50ed43);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4c5fa8){return this['activeUIs']['has'](_0x4c5fa8);}['activate'](_0x1988eb,_0xd960c=()=>!0x0){const _0x347e3b=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x1988eb))throw new _0x173c60('annotationsuis-missing-ui',this,{'uiName':_0x1988eb});this['isActive'](_0x1988eb)&&this['deactivate'](_0x1988eb),this['activeUIs']['add'](_0x1988eb);const _0x379623=new x();!function({source:_0x42ad4f,target:_0x67fbb7,filter:_0x27507b}){for(const _0x556d0d of _0x42ad4f)_0x27507b(_0x556d0d)&&_0x67fbb7['add'](_0x556d0d);_0x67fbb7['listenTo'](_0x42ad4f,'add',(_0x599b36,_0x3b339d)=>{_0x27507b(_0x3b339d)&&_0x67fbb7['add'](_0x3b339d);}),_0x67fbb7['listenTo'](_0x42ad4f,'remove',(_0x61b461,_0x325d6a)=>{_0x67fbb7['has'](_0x325d6a)&&_0x67fbb7['remove'](_0x325d6a);});}({'source':_0x347e3b['_visibleAnnotations'],'target':_0x379623,'filter':_0xd960c}),this['_uisData']['set'](_0x1988eb,{'collection':_0x379623,'filter':_0xd960c});const _0x26a896=this['_uis']['get'](_0x1988eb);_0x26a896['attach'](_0x379623),this['listenTo'](_0x26a896,'change:activeAnnotation',(_0x1b0e15,_0x3dedb8,_0x23c3d8,_0x800936)=>{_0x800936&&_0x347e3b['_removeActiveAnnotation'](_0x800936),_0x23c3d8&&_0x347e3b['_addActiveAnnotation'](_0x23c3d8);});}['deactivate'](_0x30789e){if(this['activeUIs']['delete'](_0x30789e),!this['_uis']['has'](_0x30789e))throw new _0x173c60('annotationsuis-missing-ui',this,{'uiName':_0x30789e});const _0x2bc500=this['_uis']['get'](_0x30789e);_0x2bc500['detach'](),this['stopListening'](_0x2bc500),this['_uisData']['get'](_0x30789e)['collection']['destroy'](),this['_uisData']['delete'](_0x30789e);}['switchTo'](_0x255e67){if(!this['_uis']['has'](_0x255e67))throw new _0x173c60('annotationsuis-missing-ui',this,{'uiName':_0x255e67});const _0x37bb62=this['context']['plugins']['get'](N),_0x2bc6be=Array['from'](_0x37bb62['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x255e67);const _0x53050d=this['_uis']['get'](_0x255e67);_0x53050d['setActiveAnnotation'](_0x2bc6be),_0x53050d['_setSelectedAnnotations']&&_0x2bc6be&&_0x53050d['_setSelectedAnnotations']([_0x2bc6be]);}['deactivateAll'](){for(const _0x289ef0 of this['activeUIs'])this['deactivate'](_0x289ef0);}['register'](_0x4463ae,_0x218818){if(this['_uis']['has'](_0x4463ae))throw new _0x173c60('annotationsuis-register-already-registered');if('function'!=typeof _0x218818['attach']||'function'!=typeof _0x218818['detach']||'function'!=typeof _0x218818['setActiveAnnotation'])throw new _0x173c60('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x4463ae,_0x218818);}['refilterAnnotations'](){const _0x47c3cd=this['context']['plugins']['get'](N)['collection'],_0x54eff7=new Map(),_0x4de9f7=Array['from'](this['activeUIs']);for(const _0x578b41 of this['activeUIs']){const _0x500358=this['_uisData']['get'](_0x578b41)['collection'];for(const _0x24e159 of _0x500358)_0x54eff7['set'](_0x24e159,_0x578b41);}for(const _0x1fc59b of _0x47c3cd){const _0x2c8a95=_0x54eff7['get'](_0x1fc59b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1fc59b);const _0x5d7c3d=_0x4de9f7['find'](_0x24ff47=>this['_uisData']['get'](_0x24ff47)['filter'](_0x1fc59b));_0x2c8a95!==_0x5d7c3d&&(_0x2c8a95&&this['_uisData']['get'](_0x2c8a95)['collection']['remove'](_0x1fc59b),_0x5d7c3d&&this['_uisData']['get'](_0x5d7c3d)['collection']['add'](_0x1fc59b));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xfd59c9){const _0x504be7=[];for(const _0x46a2f6 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x46a2f6)['filter'])(_0xfd59c9)&&_0x504be7['push'](_0x46a2f6);}if(_0x504be7['length']>0x1)throw new _0x173c60('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x504be7,'annotationType':_0xfd59c9['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5424ea){super(_0x5424ea);const _0x359987=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 _0x21d3e7(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x359987['to']('class')],'style':{'minHeight':_0x359987['to']('minHeight',_0x39d0b0=>'number'==typeof _0x39d0b0?ae(_0x39d0b0+0xa):null)},'dir':_0x5424ea['uiLanguageDirection'],'role':'application','aria-label':S(_0x5424ea,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x5424ea,'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',_0x49814a=>{this['_updateItemPositionInFocusables'](_0x49814a['source']);}),this['list']['forEach'](_0x266ec4=>{this['focusTracker']['add'](_0x266ec4['element']),this['_updateItemPositionInFocusables'](_0x266ec4);}),this['list']['on']('change',(_0x2081f4,_0x3de6a0)=>{for(const _0x252b29 of _0x3de6a0['removed'])this['focusTracker']['remove'](_0x252b29['element']),this['focusables']['remove'](_0x252b29);for(const _0x2da344 of _0x3de6a0['added'])this['focusTracker']['add'](_0x2da344['element']),this['_updateItemPositionInFocusables'](_0x2da344);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x415c02){const _0x5ce24b=this['focusables']['getIndex'](_0x415c02);let _0xe8895b,_0x38999a;for(const _0x227117 of this['focusables'])if(_0x415c02['top']<_0x227117['top']){_0xe8895b=_0x227117;break;}if(_0x38999a=_0xe8895b?this['focusables']['getIndex'](_0xe8895b):this['focusables']['length'],-0x1!==_0x5ce24b){if(_0x5ce24b===_0x38999a-0x1)return;this['focusables']['remove'](_0x415c02),_0x38999a=_0xe8895b?this['focusables']['getIndex'](_0xe8895b):this['focusables']['length'];}this['focusables']['add'](_0x415c02,_0x38999a);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x20af8b){super(_0x20af8b),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0xf3928,_0x5bfb98)=>_0xf3928+_0x5bfb98),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x4a638a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x4a638a['to']('isAnimationDisabled',_0x474fb3=>_0x474fb3?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x4a638a['to']('top',_0x2621b1=>qt(_0x2621b1))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x4cee6a=this['element']['clientHeight'];_0x4cee6a&&(this['height']=_0x4cee6a);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x18e15c{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49c106){super(_0x49c106),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 _0x5a7e2e=this['context']['config']['get']('sidebar.container');_0x5a7e2e&&this['setContainer'](_0x5a7e2e);}['setContainer'](_0x1b36da){if(!y(_0x1b36da))throw new _0x173c60('sidebar-setcontainer-invalid-element');this['container']=_0x1b36da;}['_attachToContainer']({viewClass:_0xc8b3dc='',spaceBetweenItems:_0x5cfa95=0x19}={}){if(!y(this['container']))throw new _0x173c60('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0xc8b3dc,this['_spaceBetweenItems']=_0x5cfa95;}['rearrange']({removedAnnotation:_0x5a1764,previousAnnotation:_0x2e07a9,nextAnnotation:_0x366590}){const _0x549921=this['getSidebarItemView'](_0x5a1764);this['view']['list']['remove'](_0x549921),this['_destroySidebarItemView'](_0x5a1764),_0x2e07a9&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2e07a9)),_0x366590&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x366590)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x13fcd6,activatedAnnotation:_0x38135a,disableAnimationOnActivatedAnnotation:_0x1f7adc}){if(this['_activeAnnotation']=_0x38135a,_0x13fcd6){_0x13fcd6['isActive']=!0x1;const _0x608a4c=this['getSidebarItemView'](_0x13fcd6);_0x608a4c&&_0x1f7adc&&(_0x608a4c['isAnimationDisabled']=!0x1);}if(_0x38135a){const _0x1ec976=this['getSidebarItemView'](_0x38135a);_0x1ec976&&(_0x38135a['isActive']=!0x0,_0x1f7adc&&(_0x1ec976['isAnimationDisabled']=!0x0,_0x1ec976['top']+=0x1),this['_alignToTargetRect'](_0x1ec976));}}['_detachFromContainer'](_0x2c47c8){if(this['view']['element']['remove'](),_0x2c47c8){for(const _0x2b1245 of _0x2c47c8)this['_destroySidebarItemView'](_0x2b1245);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x282148,_0x173249){_0x173249||(_0x173249=_0x282148['view']);const _0x36ab61=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x36ab61,_0x282148),this['_annotationToSidebarItemView']['set'](_0x282148,_0x36ab61),_0x36ab61['content']['add'](_0x173249),this['listenTo'](_0x282148['view'],'change:targetRect',(_0x2a0c1d,_0x289722,_0x2516ce)=>{const _0x4a4550=this['_getTargetTop'](_0x282148,_0x2516ce);_0x36ab61['_targetTop']!=_0x4a4550&&(_0x36ab61['_targetTop']=_0x4a4550,this['_setItemTop'](_0x36ab61,_0x4a4550));}),this['listenTo'](_0x36ab61,'change:top',()=>{this['_recalculate'](_0x36ab61,'top');}),this['listenTo'](_0x36ab61,'change:bottom',()=>{this['_recalculate'](_0x36ab61,'bottom');}),this['_alignToTargetRect'](_0x36ab61);const _0x5ab379=this['_getItemBefore'](_0x36ab61);if(_0x5ab379)this['_alignAfterItem'](_0x5ab379,_0x36ab61)||this['_alignToTargetRect'](_0x36ab61);else this['_alignToTargetRect'](_0x36ab61);return this['_updateLastItem'](),this['view']['list']['add'](_0x36ab61),_0x36ab61;}['_alignForTopChange'](_0x139c21){if(!_0x139c21['content']['length'])return;const _0x550267=this['_getItemBefore'](_0x139c21);if(!_0x550267)return;const _0x217489=this['_sidebarItemViewToAnnotation']['get'](_0x550267),_0x53b502=this['_activeAnnotation'];_0x53b502&&_0x53b502===_0x217489?this['_alignAfterItem'](_0x550267,_0x139c21):this['_alignBeforeItem'](_0x139c21,_0x550267);}['_alignForBottomChange'](_0x197135){if(!_0x197135['content']['length'])return;const _0x25e19f=this['_getItemAfter'](_0x197135);if(!_0x25e19f)return;const _0x540ad2=this['_sidebarItemViewToAnnotation']['get'](_0x25e19f),_0x5f1b79=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x5bee6f=this['_activeAnnotation'];_0x5bee6f&&_0x5bee6f===_0x540ad2&&_0x5f1b79?(this['_alignBeforeItem'](_0x25e19f,_0x197135),this['_alignAfterItem'](_0x197135,_0x25e19f)):_0x5bee6f&&_0x5bee6f===_0x540ad2?this['_alignBeforeItem'](_0x25e19f,_0x197135):this['_alignAfterItem'](_0x197135,_0x25e19f);}['_recalculate'](_0x4868bd,_0x4fe099){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2da492,changedProp:_0x221586}of this['_recalculateBuffer'])'top'===_0x221586?this['_alignForTopChange'](_0x2da492):this['_alignForBottomChange'](_0x2da492);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4868bd,'changedProp':_0x4fe099});}['getSidebarItemView'](_0x4aa533){return this['_annotationToSidebarItemView']['get'](_0x4aa533);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2c0f95){const _0x5c9f0d=this['getSidebarItemView'](_0x2c0f95);this['stopListening'](_0x5c9f0d),this['stopListening'](_0x2c0f95['view']),_0x5c9f0d['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2c0f95),this['_sidebarItemViewToAnnotation']['delete'](_0x5c9f0d);}['_createSidebarView'](){const _0x52392a=new V(this['context']['locale']);return _0x52392a['render'](),this['on']('change:_lastItem',(_0xbb7a28,_0x3b109e,_0x467d98,_0x448759)=>{_0x448759&&_0x52392a['unbind']('minHeight'),_0x467d98?_0x52392a['bind']('minHeight')['to'](_0x467d98,'bottom'):_0x52392a['minHeight']=null;}),_0x52392a;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2a06d2){const _0x156f2f=this['_sidebarItemViewToAnnotation']['get'](_0x2a06d2),_0x294edf=_0x156f2f&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x156f2f)-0x1);return _0x294edf&&this['getSidebarItemView'](_0x294edf)||null;}['_getItemAfter'](_0xe7230e){const _0xf33be9=this['_sidebarItemViewToAnnotation']['get'](_0xe7230e),_0x3fb5d6=_0xf33be9&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xf33be9)+0x1);return _0x3fb5d6&&this['getSidebarItemView'](_0x3fb5d6)||null;}['_alignBeforeItem'](_0x3e7c07,_0x3ab47d){_0x3e7c07['updateHeight']();const _0x418fc5=R(_0x3ab47d['bottom']+this['_spaceBetweenItems'],_0x3e7c07['top']);return!!_0x418fc5&&(this['_setItemTop'](_0x3ab47d,_0x3ab47d['top']-_0x418fc5),!0x0);}['_alignAfterItem'](_0x40c6b1,_0x1f44e2){_0x40c6b1['updateHeight']();const _0x1d16d5=R(_0x40c6b1['bottom']+this['_spaceBetweenItems'],_0x1f44e2['top']);return!!_0x1d16d5&&(this['_setItemTop'](_0x1f44e2,_0x1f44e2['top']+_0x1d16d5,!0x1),!0x0);}['_alignToTargetRect'](_0x9dcaf6){const _0x19be57=this['_sidebarItemViewToAnnotation']['get'](_0x9dcaf6);if(!_0x19be57||!_0x19be57['target']||!_0x19be57['targetRect'])return;const _0x1527e6=this['_getTargetTop'](_0x19be57,_0x19be57['targetRect']);this['_setItemTop'](_0x9dcaf6,_0x1527e6);}['_getTargetTop'](_0x225e9f,_0x2c175f){if(null===_0x2c175f)return 0x0;if(_0x225e9f['target']instanceof _0x8d8dd5)return _0x2c175f['top'];{const _0x553c20=new _0x8d8dd5(this['view']['element'])['top'];return _0x2c175f['top']-_0x553c20;}}['_setItemTop'](_0x27f57b,_0x3f0562,_0x49fafa=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x49fafa&&(_0x3f0562=Math['max'](_0x3f0562,this['_getMaxAvailableTop'](_0x27f57b))),_0x27f57b['top']=_0x3f0562;}['_getMaxAvailableTop'](_0x5a8c55){let _0x182568=this['_getItemBefore'](_0x5a8c55),_0x4d8af7=0x0;for(;_0x182568;)_0x182568['updateHeight'](),_0x4d8af7+=this['_spaceBetweenItems']+_0x182568['height'],_0x182568=this['_getItemBefore'](_0x182568);return _0x4d8af7;}}function R(_0xeb8c7f,_0x447bc6){return Math['max'](_0xeb8c7f-_0x447bc6,0x0);}function y(_0x1de010){return null!==_0x1de010&&'object'==typeof _0x1de010&&0x1===_0x1de010['nodeType'];}class e extends _0x18e15c{['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(_0x2b0907){super(_0x2b0907),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1eeea7(),this['_refreshPositioningDebounced']=_0x2ef6cc(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x3452a9=this['context']['plugins']['get'](M),_0x544313=this['context']['plugins']['get'](z);_0x3452a9['register']('wideSidebar',this),_0x544313['container']&&_0x3452a9['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x8e685d){if(_0x8e685d===this['activeAnnotation'])return;const _0x17e485=this['context']['plugins']['get'](z);_0x17e485['_activeAnnotation']=_0x8e685d;const _0x56cda8=this['activeAnnotation'];this['activeAnnotation']=_0x8e685d,_0x17e485['refresh']({'blurredAnnotation':_0x56cda8,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x5d0a6f){this['annotations']=_0x5d0a6f;const _0xdf6a49=this['context']['plugins']['get'](z);if(_0xdf6a49['_annotations']=_0x5d0a6f,this['isAttached'])throw new _0x173c60('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xdf6a49,'set:container',()=>{this['detach'](),this['listenTo'](_0xdf6a49,'change:container',_0x5fbb7=>{_0x5fbb7['off'](),this['attach'](_0x5d0a6f);});}),_0xdf6a49['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0xd7663=_0x2a9351=>{_0x2a9351['updateTargetRect'](),_0xdf6a49['addAnnotation'](_0x2a9351);};for(const _0x562463 of _0x5d0a6f)_0xd7663(_0x562463);this['listenTo'](_0x5d0a6f,'add',(_0x4cf99e,_0xe8aa5d)=>{_0xd7663(_0xe8aa5d);}),this['listenTo'](_0x5d0a6f,'remove',(_0x4a86d2,_0x291c00,_0x283fe5)=>{_0xdf6a49['rearrange']({'removedAnnotation':_0x291c00,'previousAnnotation':_0x5d0a6f['get'](_0x283fe5-0x1),'nextAnnotation':_0x5d0a6f['get'](_0x283fe5+0x1)}),_0x291c00===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5d0a6f,'focus',(_0x1080eb,_0x2211df)=>{this['setActiveAnnotation'](_0x2211df);}),this['listenTo'](_0x5d0a6f,'blur',()=>{this['setActiveAnnotation'](null);});const _0x17b19c=this['context']instanceof _0xf7a3ee?this['context']['editors']:new _0x1eeea7([this['context']]);for(const _0x5d8db6 of _0x17b19c)this['_integrateWithEditorAnnotations'](_0x5d8db6);this['listenTo'](_0x17b19c,'add',(_0x1cebb7,_0x1260df)=>{this['listenTo'](_0x1260df,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1260df);});}),this['listenTo'](_0x17b19c,'remove',(_0x27b5af,_0x3e1265)=>{_0x3e1265['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3e1265['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x173c60('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3fa05f=this['context']['plugins']['get'](z);_0x3fa05f['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3fa05f),this['stopListening'](this['annotations']),this['context']instanceof _0xf7a3ee&&this['stopListening'](this['context']['editors']);for(const _0x31372b of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x31372b);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x40e0c6){if(!_0x40e0c6['plugins']['has']('EditorAnnotations'))return;const _0x29b34e=_0x40e0c6['plugins']['get']('EditorAnnotations'),_0x41b3a1=()=>{const _0x2318b3=_0x29b34e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x2318b3[0x0]||null);};this['listenTo'](_0x29b34e,'refresh',_0x41b3a1),this['listenTo'](_0x29b34e,'blur',(_0xdb476b,{isAnnotationTracked:_0x50433b})=>{this['activeAnnotation']&&_0x50433b(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x29b34e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x2a44b6=>{_0x29b34e['hasDomSelection']()&&(_0x41b3a1(),_0x2a44b6['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x29b34e);}['_destroyEditorAnnotationsIntegration'](_0x218908){this['stopListening'](_0x218908),this['_editorAnnotations']['remove'](_0x218908);}}class D extends _0x13c52f{['counterView'];constructor(_0x2267cb){super(_0x2267cb);const _0x2f8496=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x595223,_0x31e61a)=>_0x595223?'...':_0x31e61a['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x2f8496['to']('annotationType',_0x3efc4a=>'ck-annotation-counter__badge--'+_0x3efc4a),_0x2f8496['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2f8496['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x18e15c{['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(_0x59f652){super(_0x59f652),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x323ec6),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1eeea7(),this['_refreshPositioningDebounced']=_0x2ef6cc(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x4f2f29(this['context']['locale']),this['balloonPanelView']=new _0x2e0bf4(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x14102d){this['annotations']=_0x14102d;const _0x3f8122=this['context']['plugins']['get'](z),_0x3649cd=this['balloonPanelView'];if(_0x3f8122['_annotations']=_0x14102d,this['isAttached'])throw new _0x173c60('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3f8122,'set:container',()=>{this['detach'](),this['listenTo'](_0x3f8122,'change:container',_0x3f901e=>{_0x3f901e['off'](),this['attach'](_0x14102d);});}),_0x3f8122['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x132836=_0x6fb155=>{const _0x1e9438=new D(this['context']['locale']);_0x3f8122['addAnnotation'](_0x6fb155,_0x1e9438),this['_annotationToNarrowView']['set'](_0x6fb155,_0x1e9438),_0x1e9438['bind']('isDirty','annotationType','number')['to'](_0x6fb155['view'],'isDirty','type','length'),_0x1e9438['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x3649cd['content']['first']!==_0x6fb155['view']?(this['_showBalloon'](_0x6fb155),_0x6fb155['view']['element']['focus'](),this['setActiveAnnotation'](_0x6fb155)):this['setActiveAnnotation'](null);});};for(const _0x4f943c of _0x14102d)_0x132836(_0x4f943c);this['listenTo'](_0x14102d,'add',(_0x2cec21,_0x4ff0ff)=>{_0x132836(_0x4ff0ff);}),this['listenTo'](_0x14102d,'remove',(_0x3abd4f,_0x4128a8,_0x50e832)=>{this['_annotationToNarrowView']['get'](_0x4128a8)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4128a8),_0x3f8122['rearrange']({'removedAnnotation':_0x4128a8,'previousAnnotation':_0x14102d['get'](_0x50e832-0x1),'nextAnnotation':_0x14102d['get'](_0x50e832+0x1)}),_0x4128a8===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x14102d,'focus',(_0x55342e,_0x28fdaf)=>{this['setActiveAnnotation'](_0x28fdaf);}),this['listenTo'](_0x14102d,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x376aa1,_0x54bc34)=>{_0x54bc34['keyCode']===_0x4d31aa['esc']&&_0x3649cd['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x3649cd['content']['first']),this['_hideBalloon'](),_0x54bc34['stopPropagation'](),_0x54bc34['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x5255bc,_0x17164c)=>{const _0x5cad31=_0x17164c['target'];_0x3649cd['isVisible']&&_0x3649cd['element']['contains'](_0x5cad31)||_0x3f8122['view']['element']['contains'](_0x5cad31)||_0x5255bc['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0xbed358=>_0xbed358['contains'](_0x5cad31))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x35fb6f=this['context']instanceof _0xf7a3ee?this['context']['editors']:new _0x1eeea7([this['context']]);for(const _0x115633 of _0x35fb6f)this['_integrateWithEditorAnnotations'](_0x115633);this['listenTo'](_0x35fb6f,'add',(_0x52eb01,_0x271998)=>{this['listenTo'](_0x271998,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x271998);});}),this['listenTo'](_0x35fb6f,'remove',(_0x5ea092,_0x20a3b2)=>{_0x20a3b2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x20a3b2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x3a3750){if(_0x3a3750===this['activeAnnotation'])return;const _0x12cba1=this['context']['plugins']['get'](z);if(_0x12cba1['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x3a3750,'disableAnimationOnActivatedAnnotation':!0x0}),_0x3a3750)_0x12cba1['getSidebarItemView'](_0x3a3750)?this['_showBalloon'](_0x3a3750):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x3a3750;}['detach'](){if(!this['isAttached'])throw new _0x173c60('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xdabcac=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0xb2e2ba=>_0xb2e2ba['destroy']()),this['_annotationToNarrowView']['clear'](),_0xdabcac['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0xf7a3ee&&this['stopListening'](this['context']['editors']);for(const _0xe9428e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0xe9428e);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'](_0x23a252){if(!_0x23a252['plugins']['has']('EditorAnnotations'))return;const _0xf01179=_0x23a252['plugins']['get']('EditorAnnotations'),_0x620cb7=this['context']['plugins']['get'](z),_0x3788e5=this['annotations'],_0x3776a3=this['balloonPanelView'],_0xaebb4d=()=>{const _0x198916=_0xf01179['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x198916),this['setActiveAnnotation'](_0x198916[0x0]||null);};this['listenTo'](_0xf01179,'refresh',_0xaebb4d),this['listenTo'](_0xf01179,'blur',(_0x582139,{isAnnotationTracked:_0x20f563})=>{this['activeAnnotation']&&_0x20f563(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0xf01179,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3788e5,'blur',_0x988bde=>{_0xf01179['hasDomSelection']()&&_0x988bde['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x3fec3d,_0x30cd53)=>{const _0x261fbc=_0x30cd53['target'];_0x3776a3['isVisible']&&_0x3776a3['element']['contains'](_0x261fbc)||_0x620cb7['view']['element']['contains'](_0x261fbc)||this['activeAnnotation']&&_0xf01179['hasDomSelection']()&&(_0xaebb4d(),_0x3fec3d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0xf01179);}['_destroyEditorAnnotationsIntegration'](_0x463438){_0x463438&&(this['stopListening'](_0x463438),this['_editorAnnotations']['remove'](_0x463438));}['_setSelectedAnnotations'](_0x5858de){for(const _0x4068c3 of this['_selectedAnnotations'])_0x5858de['includes'](_0x4068c3)||this['_manuallyClosedAnnotationViews']['delete'](_0x4068c3['view']);this['_selectedAnnotations']=_0x5858de;}['_refreshPositioning'](){const _0xc3c17f=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0xc3c17f['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x4081d6){if(this['_manuallyClosedAnnotationViews']['has'](_0x4081d6['view']))return;const _0x5f48b1=this['balloonPanelView']['content']['first'];_0x5f48b1!==_0x4081d6['view']?(_0x5f48b1&&this['_detachListeners'](_0x5f48b1),this['_attachListeners'](_0x4081d6['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x4081d6['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x52aad6=this['balloonPanelView']['content']['first'],_0x40f144=_0x52aad6&&this['annotations']['getByView'](_0x52aad6);if(!_0x40f144||!this['_annotationToNarrowView']['has'](_0x40f144))return;const _0x38f6dc=this['_annotationToNarrowView']['get'](_0x40f144)['element'],_0xdd6f34=(function(){const _0x9ddefc=_0x2e0bf4['defaultPositions'];return[_0x9ddefc['southArrowNorthEast'],_0x9ddefc['northArrowSouthEast'],_0x9ddefc['southArrowNorth'],_0x9ddefc['northArrowSouth'],_0x9ddefc['southArrowNorthWest'],_0x9ddefc['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x38f6dc,'positions':_0xdd6f34});}['_hideBalloon'](){const _0x2b5cbc=this['balloonPanelView'],_0x572280=_0x2b5cbc['content']['first'];_0x572280&&(this['_detachListeners'](_0x572280),_0x2b5cbc['unpin'](),_0x2b5cbc['content']['clear']());}['_attachListeners'](_0x125ed5){this['listenTo'](_0x125ed5,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x125ed5,'Esc',(_0x5bb1c5,_0x4137e3)=>{this['_manuallyClosedAnnotationViews']['add'](_0x125ed5),this['_hideBalloon'](),_0x4137e3();});}['_detachListeners'](_0x1fa330){this['stopListening'](_0x1fa330);}}class c extends _0x278642{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x1a042a,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x73eae4){super(_0x73eae4),_0x73eae4['editing']['view']['addObserver'](_0x185e63),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x73eae4['plugins']['get'](_0x1a042a),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x3204a8=this['editor']['plugins']['get'](M);_0x3204a8['context']===this['editor']&&(_0x3204a8['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xa52acd,_0x20b32b)=>{const _0x288ece=this['_balloon'];if(this['isAttached']&&_0x288ece['visibleView']){const _0x3b7cca=this['annotations']['getByView'](_0x288ece['visibleView']);_0x3b7cca&&this['_closeAnnotation'](_0x3b7cca),_0x20b32b();}}));}['afterInit'](){const _0x3b12e3=this['editor']['plugins']['get'](M);_0x3b12e3['context']===this['editor']&&(_0x3b12e3['hasActive']()||_0x3b12e3['switchTo']('inline'));}['setActiveAnnotation'](_0x3d6961){_0x3d6961!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x3d6961&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x3d6961)&&this['_addAnnotationToBalloon'](_0x3d6961,!0x0),_0x3d6961['isActive']=!0x0),_0x3d6961||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3d6961);}['attach'](_0x5ee2da){this['annotations']=_0x5ee2da;const _0x4a0384=this['editor']['plugins']['get'](M),_0xddc79a=this['_balloon'];if(this['isAttached'])throw new _0x173c60('inlineannotations-attach-already-attached',this);if(_0x4a0384['context']!==this['editor'])throw new _0x173c60('inlineannotations-not-allowed-with-context',this);const _0x2be1bf=this['editor']['plugins']['get'](P);this['listenTo'](_0x2be1bf,'refresh',()=>{const _0x2db992=_0x2be1bf['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x50ee4b,_0x5ef839;!this['_forceRefresh']&&(_0x50ee4b=_0x2db992,_0x5ef839=this['_selectedAnnotations'],_0x50ee4b['length']===_0x5ef839['length']&&_0x50ee4b['every'](_0x4fd101=>_0x5ef839['includes'](_0x4fd101)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2db992),this['setActiveAnnotation'](_0x2db992[0x0]||null));}),this['listenTo'](_0x2be1bf,'blur',(_0xf13c2e,{isAnnotationTracked:_0x40fcef})=>{this['activeAnnotation']&&_0x40fcef(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x180c46,_0x5f5546,_0x5bbf98)=>{_0x5bbf98||this['setActiveAnnotation'](null);}),this['listenTo'](_0x5ee2da,'remove',(_0x4309ab,_0x4386d2)=>{this['_removeAnnotationFromBalloon'](_0x4386d2),_0x4386d2===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xddc79a,'change:visibleView',(_0x29ab97,_0x3be5fd,_0x2d14d3,_0x473654)=>{_0x473654&&this['stopListening'](_0x473654);const _0x9feb75=_0x5ee2da['getByView'](_0x2d14d3);_0x2d14d3&&_0x9feb75&&(this['listenTo'](_0x2d14d3,'change:height',()=>{_0xddc79a['updatePosition']();}),this['listenTo'](_0x2d14d3,'Esc',()=>{this['_closeAnnotation'](_0x9feb75),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x9feb75&&this['setActiveAnnotation'](_0x9feb75));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0xddc79a['visibleView']&&(_0x5ee2da['getByView'](_0xddc79a['visibleView'])&&_0xddc79a['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 _0x173c60('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1f41d8 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1f41d8);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x5eb0ac){for(const _0x12377d of this['_selectedAnnotations'])_0x5eb0ac['includes'](_0x12377d)||this['_manuallyClosed']['delete'](_0x12377d);for(const _0x2440ab of this['annotations'])_0x5eb0ac['includes'](_0x2440ab)||this['_removeAnnotationFromBalloon'](_0x2440ab);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x1cf133 of _0x5eb0ac)this['_addAnnotationToBalloon'](_0x1cf133);}this['_selectedAnnotations']=_0x5eb0ac;}['_addAnnotationToBalloon'](_0x334747,_0x15b6e8=!0x1){this['_manuallyClosed']['has'](_0x334747)||(this['_addedAnnotations']['has'](_0x334747)||this['_balloon']['hasView'](_0x334747['view'])||(this['_addedAnnotations']['add'](_0x334747),this['_balloon']['add']({'stackId':_0x334747['view']['id'],'view':_0x334747['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x334747)}})),_0x15b6e8&&this['_balloon']['showStack'](_0x334747['view']['id']));}['_getBalloonTargetForAnnotation'](_0xa62b66){const _0xe468fc=_0xa62b66['target'],_0x5144b2=this['editor']['editing']['view'],_0x5ac80d=_0x5144b2['document']['selection']['getFirstRange'](),_0x486934=_0x5144b2['domConverter']['viewRangeToDom'](_0x5ac80d);if(_0x486934['collapse'](!0x0),_0xe468fc){if(_0xe468fc instanceof _0x8d8dd5)return _0xe468fc;let _0x15ebed=[];for(const _0x453a88 of _0xe468fc)_0x15ebed['push'](...(_0x49835a=_0x453a88['getClientRects'](),Array['from'](_0x49835a)['map'](DOMRect['fromRect'])));_0x15ebed=function(_0xc7cbc6){const _0x322fb4=[];let _0x1bb760=_0xc7cbc6[0x0];for(let _0x536bd4=0x1;_0x536bd4<_0xc7cbc6['length'];_0x536bd4++)b(_0x1bb760,_0xc7cbc6[_0x536bd4])?_0x1bb760['width']+=_0xc7cbc6[_0x536bd4]['width']:(_0x322fb4['push'](_0x1bb760),_0x1bb760=_0xc7cbc6[_0x536bd4]);return _0x322fb4['push'](_0x1bb760),_0x322fb4;}(_0x15ebed);const _0x894256=_0x486934['getBoundingClientRect']();return _0x15ebed['find'](_0x1193ad=>_0x1193ad['top']<=_0x894256['top']&&_0x1193ad['bottom']>=_0x894256['bottom']&&_0x1193ad['left']<=_0x894256['left']&&_0x1193ad['right']>=_0x894256['right'])||_0x15ebed[0x0];}var _0x49835a;return _0xa62b66['targetRect']||_0x486934;}['_removeAnnotationFromBalloon'](_0x18a33c){this['_addedAnnotations']['has'](_0x18a33c)&&this['_balloon']['hasView'](_0x18a33c['view'])&&(this['_addedAnnotations']['delete'](_0x18a33c),this['_balloon']['remove'](_0x18a33c['view']));}['_closeAnnotation'](_0x5c913f){this['_manuallyClosed']['add'](_0x5c913f),this['_removeAnnotationFromBalloon'](_0x5c913f);}}function b(_0x3fcfc3,_0x18a3f3){return _0x3fcfc3['top']===_0x18a3f3['top']&&_0x3fcfc3['bottom']===_0x18a3f3['bottom']&&_0x3fcfc3['right']===_0x18a3f3['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x3c3d21,_0x1dab9a){super(_0x3c3d21),this['set']('isEmpty',!_0x1dab9a['length']),this['focusTracker']=new _0x21d3e7(),this['_annotationViews']=_0x1dab9a,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x1dab9a,'focusTracker':this['focusTracker']}),this['listenTo'](_0x1dab9a,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x1dab9a,'remove',(_0x2eb5ae,_0x4c3594)=>{_0x4c3594['isActive']&&this['focus'](),_0x1dab9a['length']||(this['isEmpty']=!0x0);});const _0x56b4e7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x3c3d21,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x1dab9a},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x56b4e7['if']('isEmpty','ck-hidden',_0x33bd2f=>!_0x33bd2f)]},'children':[{'text':S(_0x3c3d21,'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 _0x5c4299 of this['_annotationViews'])this['focusTracker']['add'](_0x5c4299['element']);this['_annotationViews']['on']('change',(_0x5d5c3d,{added:_0x5c6127,removed:_0x263c35})=>{for(const _0x3289ae of _0x5c6127)this['focusTracker']['add'](_0x3289ae['element']);for(const _0x4afb85 of _0x263c35)this['focusTracker']['remove'](_0x4afb85['element']);});}}class f extends _0x18e15c{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0xede70b){super(_0xede70b),this['archivedThreads']=new _0x1eeea7();}['init'](){const _0x4439e3=this['context'],_0x20973a=_0x4439e3['plugins']['get'](o),_0x30d867=_0x4439e3['plugins']['get'](N);this['listenTo'](_0x20973a,'addCommentThread',(_0xbf92e3,{threadId:_0x114f75})=>{const _0x3dec68=_0x20973a['getCommentThread'](_0x114f75);_0x3dec68['archivedAt']&&this['archivedThreads']['add'](_0x3dec68,this['_calculatePosition'](_0x3dec68['archivedAt'])),this['listenTo'](_0x3dec68,'change:archivedAt',(_0xd89fab,_0x14951e,_0x4258e5)=>{_0x4258e5?this['archivedThreads']['has'](_0x3dec68)||this['archivedThreads']['add'](_0x3dec68,this['_calculatePosition'](_0x3dec68['archivedAt'])):this['archivedThreads']['has'](_0x3dec68)&&this['archivedThreads']['remove'](_0x3dec68);});}),this['listenTo'](_0x20973a,'removeCommentThread',(_0x243017,{threadId:_0x4c8bcf})=>{const _0x4753b7=_0x20973a['getCommentThread'](_0x4c8bcf);this['stopListening'](_0x4753b7),this['archivedThreads']['has'](_0x4753b7)&&this['archivedThreads']['remove'](_0x4753b7);},{'priority':'highest'}),this['listenTo'](_0x30d867['collection'],'focus',(_0x3b79aa,_0x509d41)=>{_0x509d41['isVisible']||(_0x509d41['isActive']=!0x0,_0x30d867['activate'](_0x509d41));});}['_calculatePosition'](_0x479305){const _0x38fb78=[...this['archivedThreads']]['findIndex'](_0x433fab=>_0x433fab['archivedAt']<_0x479305);return _0x38fb78>-0x1?_0x38fb78:this['archivedThreads']['length'];}}class a extends _0x278642{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x2211e3];}constructor(_0x326b5c){super(_0x326b5c),this['annotationViews']=new _0x32be5d(),this['_pendingThreads']=[];}['init'](){const _0x2b769d=this['editor'],_0x21e085=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x2b769d['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x13c52f,!0x0)),_0x2b769d['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x1e2588=this['_createCommentsArchiveButton'](_0x4cb8b6);return _0x1e2588['set']({'role':'menuitemcheckbox'}),_0x1e2588;});const _0x484640=_0x2b769d['plugins']['get'](f),_0xddcd33=_0x2b769d['plugins']['get']('Annotations'),_0x320683=_0x2b769d['plugins']['get']('CommentsRepository');this['listenTo'](_0x484640['archivedThreads'],'add',(_0x536e1a,_0xb6fe1a)=>{const _0x187efb=_0x2b769d['config']['get']('collaboration.channelId');if(!_0x187efb||_0xb6fe1a['channelId']===_0x187efb){const _0x58be8a=_0x320683['_threadToController']['get'](_0xb6fe1a);if(!_0x58be8a)return void this['_pendingThreads']['push'](_0xb6fe1a);const _0x5f1890=this['_calculatePosition'](_0xb6fe1a['archivedAt']),_0x15d278=_0xddcd33['getByInnerView'](_0x58be8a['view']);_0x15d278['isVisible']&&_0xddcd33['_visibleAnnotations']['remove'](_0x15d278),this['annotationViews']['add'](_0x15d278['view'],_0x5f1890);}}),this['listenTo'](_0xddcd33['collection'],'add',(_0x4e7d16,_0x3fcfb5)=>{const _0xfb359d=this['_pendingThreads']['find'](_0x2f629d=>{const _0x1d1434=_0x320683['_threadToController']['get'](_0x2f629d);return _0x1d1434&&_0x3fcfb5['innerView']===_0x1d1434['view'];});if(_0xfb359d){const _0x14b503=this['_calculatePosition'](_0xfb359d['archivedAt']);this['annotationViews']['add'](_0x3fcfb5['view'],_0x14b503),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xfb359d),0x1);}}),this['listenTo'](_0x484640['archivedThreads'],'remove',(_0x29431b,_0xf8b8d1)=>{const _0x15d00d=_0x2b769d['config']['get']('collaboration.channelId');if(!_0x15d00d||_0xf8b8d1['channelId']===_0x15d00d){const _0x76d22b=_0x320683['_threadToController']['get'](_0xf8b8d1),_0x3b1d76=_0xddcd33['getByInnerView'](_0x76d22b['view']);this['annotationViews']['remove'](_0x3b1d76['view']),this['stopListening'](_0x3b1d76['focusableElements']);}}),this['listenTo'](_0xddcd33['collection'],'add',(_0x21abb5,_0xdcf58e)=>{this['listenTo'](_0xdcf58e,'escape',_0x21e085);}),this['listenTo'](_0xddcd33['collection'],'remove',(_0x674ce,_0x512a06)=>{this['stopListening'](_0x512a06,'escape',_0x21e085);});}['_calculatePosition'](_0x2d1348){const _0x556d1f=this['editor']['config']['get']('collaboration.channelId'),_0x24e714=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x2b2afc=>_0x2b2afc['channelId']===_0x556d1f)['findIndex'](_0x587663=>_0x587663['archivedAt']<_0x2d1348);return _0x24e714<0x0||_0x24e714>this['annotationViews']['length']?this['annotationViews']['length']:_0x24e714-0x1;}['_toggleDialog'](){const _0x1087f5=this['editor'],_0x1cf076=_0x1087f5['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x1087f5['locale'],this['annotationViews'])),'commentsArchive'===_0x1cf076['id']?_0x1cf076['hide']():_0x1cf076['show']({'id':'commentsArchive','title':S(_0x1087f5['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x314e1d['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x4623fe,_0x48c4e0=!0x1){const _0x5c7cc3=this['editor']['locale'],_0x1ad31f=this['editor']['plugins']['get']('Dialog'),_0x31b778=new _0x4623fe(_0x5c7cc3);return _0x31b778['bind']('isEnabled')['to'](this,'isEnabled'),_0x31b778['bind']('isOn')['to'](_0x1ad31f,'id',_0x2cb11f=>'commentsArchive'===_0x2cb11f),_0x31b778['set']({'label':S(_0x5c7cc3,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x48c4e0&&(_0x31b778['tooltip']=!0x0),this['listenTo'](_0x31b778,'execute',()=>this['_toggleDialog']()),_0x31b778;}['_hideDialogOnAnnotationEscape']=_0x2588f0=>{const _0x44e0fb=_0x2588f0['source'];if(!this['annotationViews']['has'](_0x44e0fb['view']))return;const _0x94a57=this['editor']['plugins']['get']('Dialog');_0x94a57['isOpen']&&'commentsArchive'===_0x94a57['id']&&(_0x94a57['hide'](),_0x2588f0['stop']());};}class p extends _0x278642{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,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
23
+ import{Editor as _0x429efb,icons as _0x31e1d4,ContextPlugin as _0x4a32ff,PendingActions as ht,Command as _0x376e85,Plugin as _0x997b8b,Context as _0x486c4f}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x3e9afd,uid as _0x2d3bc5,KeystrokeHandler as jt,FocusTracker as _0x1a276b,Collection as _0x430692,diff as _0x31c694,Rect as _0x35cc55,CKEditorError as _0x3e0d86,first as _0x3e0fea,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x143092,keyCodes as _0xd5a4f4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0xc93dfc,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x180bd5,trimHtml as _0x385929,LateFocusDropdownButtonView as _0x5e7703,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x29f90c}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,cloneDeep as pt,set as wt,unset as At,isEqual as It,debounce as _0x2d6425}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x2a3273,ViewCollection as _0x2e2f29,createDropdown as _0x4e4ba2,ListView as _0x48f6b2,focusChildOnDropdownOpen as _0x3731e5,ListItemView as _0x1967b6,MenuBarMenuListItemButtonView as _0x276496,BodyCollection as _0x2601a1,BalloonPanelView as _0x4118b7,ContextualBalloon as _0x2de981,Dialog as _0x2a2ba4,DialogViewPosition as _0xb56ab9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x41ceec}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x3a6a6e}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
+ _0x3e9afd(){['model'];['view'];constructor(_0x3eb9be,_0x504aac){super(),this['model']=_0x3eb9be,this['model']['_isAttached']=!0x0,this['view']=_0x504aac,this['listenTo'](_0x504aac,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x504aac,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x504aac,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x504aac,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x504aac,'addComment',(_0x3f9ea1,_0xc694b7)=>this['addComment'](_0xc694b7)),this['listenTo'](_0x504aac,'updateComment',(_0x56f532,_0x11de9d,_0x574d4a)=>this['updateComment'](_0x11de9d,_0x574d4a)),this['listenTo'](_0x504aac,'removeComment',(_0x5ee0ca,_0x503857)=>this['removeComment'](_0x503857));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x5671b4){this['model']['addComment']({'content':_0x5671b4,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x4f471d,_0x1ea6ec){this['model']['getComment'](_0x4f471d)['update']({'content':_0x1ea6ec});}['removeComment'](_0x54a4b0){this['model']['getComment'](_0x54a4b0)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0xd4d616,_0x5d29e0,_0x4b3155){const t=_0xd4d616['t'];switch(_0x5d29e0){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'},_0x4b3155);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'},_0x4b3155);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'},_0x4b3155);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'},_0x4b3155);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4b3155);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'},_0x4b3155);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'},_0x4b3155);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'},_0x4b3155);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(_0x1516ae,_0xd17aa8){super(_0x1516ae);const _0x12d961=_0x2d3bc5();this['main']=this['createCollection'](),this['editable']=new $t(_0x1516ae,_0xd17aa8,void 0x0,{'label':()=>S(_0x1516ae,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x1516ae['uiLanguageDirection'],'lang':_0x1516ae['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x12d961},'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(_0xb95ae7){super(_0xb95ae7),this['view']=new Vt(_0xb95ae7['locale'],_0xb95ae7['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3b4951=this['editor']['editing']['view'],_0x1a9563=this['view']['editable'],_0x56e038=_0x3b4951['document']['getRoot']();_0x1a9563['name']=_0x56e038['rootName'],this['view']['render']();const _0x4fe9f2=_0x1a9563['element'];this['setEditableElement'](_0x1a9563['name'],_0x4fe9f2),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3b4951['attachDomRoot'](_0x4fe9f2),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x3e9afd(_0x429efb){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x23d673={}){function _0x336162(_0x188163){return _0x188163['map'](_0x49f26c=>String['fromCharCode'](_0x49f26c))['join']('');}(_0x23d673=Object['assign']({},_0x23d673))['plugins']||(_0x23d673['plugins']=Rt['defaultPlugins']),super(_0x23d673),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[_0x336162([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x336162([0x76,0x69,0x65,0x77])][_0x336162([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x336162([0x61,0x75,0x74,0x6f]),this[_0x336162([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x336162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x336162([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x336162([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x336162([0x6f,0x6b])});}['create'](){const _0x594710=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x594710))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x14f802=>{const _0x54bb95=this['model']['document']['getRoot'](),_0x524a21=_0x54bb95&&_0x54bb95['getChild'](_0x54bb95['childCount']-0x1);_0x14f802['setSelection'](_0x524a21,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2509df=this['editing']['view'],_0x2417d4=_0x2509df['document']['getRoot'](),_0x4eb1b4=_0x2417d4['getChild'](0x0);_0x2417d4['childCount']>0x1||!_0x4eb1b4||'p'!=_0x4eb1b4['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x2509df,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x4eb1b4['placeholder']=this['placeholder']),St({'view':_0x2509df,'element':_0x4eb1b4,'keepOnFocus':!0x0}),this['placeholderElement']=_0x4eb1b4);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5ea8a4,_0x5e8b71={}){super(_0x5ea8a4),this['editor']=null,this['_editorConfig']=_0x5e8b71,this['set']('value',_0x5e8b71['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x5ea8a4,'Reply...')),this['set']('submitLabel',S(_0x5ea8a4,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1a276b(),this['focusCycler']=new Ft({'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',(_0x1ad624,_0x1816e8)=>{this['cancelButtonView']['fire']('execute'),_0x1816e8();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3eef1f,_0xcf878b)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0xcf878b());}),this['on']('submit',(_0x5b4171,_0x1415a5)=>{_0x1415a5['length']>0xfde8?(alert(S(_0x5ea8a4,'TOO_LONG_COMMENT_ALERT',[_0x1415a5['length'],0xfde8])),_0x5b4171['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 _0x1723e4=this['editor'];this['element']['insertBefore'](_0x1723e4['ui']['element'],this['element']['firstChild']),_0x1723e4['model']['document']['on']('change',()=>this['value']=_0x1723e4['getData']()),_0x1723e4['bind']('placeholder')['to'](this),this['focusables']['add'](_0x1723e4['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x5aabce){-0x1===_0x5aabce?(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:_0x5745ea}=this,_0x33b54a=new _0x2a3273(_0x5745ea);return _0x33b54a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x33b54a['withText']=!0x0,_0x33b54a['bind']('label')['to'](this,'submitLabel'),_0x33b54a['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x33b54a['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x355a01,_0x3843d1)=>!_0x3843d1&&!!_0x355a01['trim']()),_0x33b54a;}['_createCancelButton'](){const {locale:_0x3530af}=this,_0x2192a5=new _0x2a3273(_0x3530af);return _0x2192a5['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2192a5['label']=S(_0x3530af,'Cancel'),_0x2192a5['withText']=!0x0,_0x2192a5['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2192a5;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x35d3aa=>{this['focusTracker']['add'](_0x35d3aa['element']);}),this['focusables']['on']('change',(_0x3358ce,_0x1aa151)=>{for(const _0x45cffc of Array['from'](_0x1aa151['added'])['reverse']())this['focusTracker']['add'](_0x45cffc['element']);});}}class ie extends kt{constructor(_0x1eafec,_0x19b04a,_0x3161c2){super(_0x1eafec),this['commentInputView']=new hs(_0x1eafec,_0x3161c2),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4f236d,_0x3ef39e)=>_0x4f236d||!!_0x3ef39e),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 _0xc93dfc(_0x1eafec,_0x19b04a),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'](_0x5d1e4a){this['commentInputView']['focus'](_0x5d1e4a);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x131455,_0x1e4152)=>{const {submitButtonView:_0xda8f4a,cancelButtonView:_0x527df6,editor:_0x47fd11}=this['commentInputView'];[_0xda8f4a['element'],_0x527df6['element'],_0x47fd11?_0x47fd11['editing']['view']['getDomRoot']():null]['filter'](_0x95cd81=>_0x95cd81)['some'](_0x19e50c=>_0x19e50c['contains'](_0x1e4152['target']))||(this['focus'](),_0x1e4152['preventDefault']());});}}class cs extends kt{constructor(_0xbceb09){super(_0xbceb09);const _0xf20584=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0xf20584['to']('count',_0x19cc07=>S(_0xbceb09,'NUMBER_OF_COMMENTS',_0x19cc07))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x508063,_0x5c6cbe,_0xd6de8b){super(_0x508063);const _0xad4e7=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x5c6cbe['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x5c6cbe,this['_config']=_0xd6de8b,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1a276b(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x569cd7=>this['commentViews']['map'](_0x1b4341=>_0x1b4341['element'])['includes'](_0x569cd7['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x508063),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x540ed0=>_0x540ed0-this['_config']['maxCommentsWhenCollapsed']);for(const _0x67bdd4 of _0x5c6cbe['comments'])this['_handleNewCommentModel'](_0x67bdd4);this['_handleInfoComment'](),this['listenTo'](_0x5c6cbe['comments'],'add',(_0x225e67,_0x1869aa)=>{const _0x138093=this['_calculatePosition'](_0x1869aa);this['length']++,this['_handleNewCommentModel'](_0x1869aa,_0x138093),this['refreshVisibleViews']();}),this['listenTo'](_0x5c6cbe['comments'],'remove',(_0x3cc21f,_0xe9f3fd)=>{this['length']--,this['_handleRemoveCommentModel'](_0xe9f3fd),this['refreshVisibleViews']();}),this['listenTo'](_0x5c6cbe,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x5c6cbe,'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',_0xad4e7['if']('length','ck-hidden',_0x62ee94=>!_0x62ee94)],'aria-label':S(_0x508063,'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'](_0x5545ce){-0x1===_0x5545ce?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3443a3 of this['commentViews'])_0x3443a3['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x5997e7,_0x227e6b){const _0x5b319e=new this['_config']['CommentView'](this['locale'],_0x5997e7,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x5b319e['viewUid']=_0x5997e7['id'],_0x5b319e['delegate']('removeComment')['to'](this),_0x5b319e['delegate']('updateComment')['to'](this),_0x5b319e['delegate']('resolveCommentThread')['to'](this),_0x5b319e['delegate']('editorReady')['to'](this),_0x5b319e['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x5b319e,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x5b319e,_0x227e6b);}['_calculatePosition'](_0x238eac){const _0x4fe97b=this['_model']['_findOptimalIndex'](_0x238eac);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x238eac['authoredAt']?_0x4fe97b-0x1:_0x4fe97b:_0x4fe97b-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x15cdcf={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x15cdcf,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x15cdcf));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x491bd2){const _0x54651d=this['commentViews']['remove'](_0x491bd2['id']);this['stopListening'](_0x54651d),_0x54651d['isEditMode']&&this['_updateHasDirtyComment'](),_0x54651d['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x4c11af=>_0x4c11af['isEditMode']);}['_rearrangeCollapse'](){const _0x12af70=function(_0x12194d){const _0x92b68a=new _0x430692();for(const _0x3a4416 of _0x12194d)_0x92b68a['add'](_0x3a4416);return _0x92b68a;}(this['commentViews']),_0x5a53e5=this['_collapsedCommentsView']['count'];for(let _0x47024c=0x1;_0x47024c<=_0x5a53e5;_0x47024c++)_0x12af70['remove'](0x1);for(const _0x5119d6 of _0x12af70)_0x5119d6['collapse']();_0x5a53e5>0x0&&_0x12af70['add'](this['_collapsedCommentsView'],0x1),ns(_0x31c694(Array['from'](this['visibleViews']),Array['from'](_0x12af70)),this['visibleViews'],_0x12af70);}['_rearrangeExpand'](){ns(_0x31c694(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4a24ea of this['visibleViews'])_0x4a24ea['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x67abb2=>{this['focusTracker']['add'](_0x67abb2['element']),this['keystrokes']['listenTo'](_0x67abb2['element']);}),this['commentViews']['on']('change',(_0x2ede26,_0x137ac7)=>{for(const _0x9188bf of _0x137ac7['removed'])this['focusTracker']['remove'](_0x9188bf['element']),this['keystrokes']['stopListening'](_0x9188bf['element']);for(const _0x5e00f1 of Array['from'](_0x137ac7['added'])['reverse']())this['focusTracker']['add'](_0x5e00f1['element']),this['keystrokes']['listenTo'](_0x5e00f1['element']);});}}function ns(_0x5158dd,_0x22383a,_0x580043){let _0xcd8047=0x0;for(const _0x4c13ce of _0x5158dd)switch(_0x4c13ce){case'insert':_0x22383a['add'](_0x580043['get'](_0xcd8047),_0xcd8047),_0xcd8047++;break;case'delete':_0x22383a['remove'](_0xcd8047);break;case'equal':_0xcd8047++;}}class as extends kt{constructor(_0x42c1e6){super(_0x42c1e6);const _0x1acff7=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1acff7['to']('contextValue',_0x303484=>S(_0x42c1e6,'THREAD_CONTEXT_LABEL',_0x303484)),'tabindex':-0x1},'children':[{'text':_0x1acff7['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1cbbf9,_0x1bdd3d){super(_0x1cbbf9);const _0x4c55dc=this['bindTemplate'];this['_model']=_0x1bdd3d,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1a276b(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x350d21=>!!_0x350d21),this['bind']('contextValue')['to'](this['_model'],'context',_0x5e67f9=>_0x5e67f9&&_0x5e67f9['value']?this['_trimContextValue'](_0x5e67f9['value']):S(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',_0x4c55dc['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 _0x35ac10=new _0x2a3273(this['locale']);return _0x35ac10['label']=S(this['locale'],'Reopen'),_0x35ac10['tooltip']=S(this['locale'],'Reopen'),_0x35ac10['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x35ac10['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x33b03a=>!_0x33b03a),_0x35ac10['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5290d0,_0x31ef7b)=>_0x5290d0&&_0x31ef7b),_0x35ac10['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x35ac10;}['_trimContextValue'](_0x3614aa){if(_0x3614aa['length']<0x96)return _0x3614aa;const _0x10d55b=_0x3614aa['lastIndexOf']('\x20',0x93);return _0x3614aa['substring'](0x0,_0x10d55b>-0x1?_0x10d55b:0x93)+'...';}['_attachContextActions'](){const _0x1e41fb=this['element']['querySelector']('.ck-context'),_0x464ec0=_0x1e41fb['querySelector']('.ck-context__value');this['listenTo'](_0x1e41fb,'mouseenter',()=>{_0x464ec0['offsetWidth']<_0x464ec0['scrollWidth']&&_0x1e41fb['classList']['add']('overlay');}),this['listenTo'](_0x1e41fb,'mouseleave',()=>{_0x1e41fb['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x327596 of this['focusables'])this['focusTracker']['add'](_0x327596['element']),this['keystrokes']['listenTo'](_0x327596['element']);}['_createContextView'](){const _0x4a5878=new as(this['locale']);return _0x4a5878['bind']('contextValue')['to'](this),_0x4a5878;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1dd3c0,_0x1ce8a1,_0x47140,_0x1a423d){super(_0x1dd3c0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1ce8a1,this['_localUser']=_0x47140,this['_config']=_0x1a423d,this['commentThreadHeaderView']=new Yt(_0x1dd3c0,_0x1ce8a1),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x1dd3c0,S(_0x1dd3c0,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1dd3c0,_0x1ce8a1,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1a423d)),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',(_0x3aa0e7,_0x557b30)=>_0x3aa0e7||!!_0x557b30),this['bind']('isUnlinked')['to'](_0x1ce8a1,'unlinkedAt',_0x174fad=>!!_0x174fad),this['bind']('ariaLabel')['to'](this,'length',_0x2ba62c=>{const _0x433757=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x2ba62c,_0x433757]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1a276b(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4c9109=>_0x4c9109['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 _0x1d01c4=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d2381=_0x1d01c4['commentInputView'];return _0x1d01c4['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5d2381,'value',(_0x3b5b36,_0x4747e7,_0x198262,_0x44763e,_0x4ddc1c)=>!!_0x4ddc1c||!!_0x44763e&&_0x198262&&!_0x4747e7||_0x3b5b36&&_0x198262&&!_0x4747e7),_0x5d2381['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x53a70b,_0x55ad9d,_0x451ec7)=>{let _0x8cfc8f;return _0x8cfc8f=_0x451ec7&&_0x55ad9d?'Reply\x20to\x20reopen\x20discussion...':_0x53a70b?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x8cfc8f);}),_0x5d2381['bind']('submitLabel')['to'](this,'length',_0x2dd69d=>S(this['locale'],_0x2dd69d?'Reply':'Comment')),_0x5d2381['on']('submit',(_0xed5c31,_0x5172f4)=>{this['fire']('addComment',_0x5172f4),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5d2381['on']('cancel',()=>{this['focus']();}),_0x5d2381['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5d2381['on']('cancel',_0x21f629=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x21f629['stop']());}),this['on']('change:isActive',(_0x43ce31,_0x55b924,_0x54a3e4)=>{_0x54a3e4||this['length']||_0x5d2381['value']||this['fire']('removeCommentThread');}),_0x1d01c4;}}class Ct extends/* #__PURE__ -- @preserve */
27
+ ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x114dd3,_0x3d7d3,_0x389a10,_0x3fc2ab){super(_0x114dd3,_0x3d7d3,_0x389a10,_0x3fc2ab),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x114dd3,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x363995,_0x4f1e60,_0x5451ef)=>{_0x5451ef||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x514806,_0x1c9927,_0x439eeb)=>{_0x439eeb&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x498e89=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x498e89['if']('isActive','ck-thread--active'),_0x498e89['if']('isUnlinked','ck-thread--unlinked'),_0x498e89['if']('isConfirm','ck-thread--remove-confirmation'),_0x498e89['to']('actionIndicator',_0x33d96e=>_0x33d96e?'ck-thread--'+_0x33d96e:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x498e89['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 _0x2b3067 of this['commentsListView']['commentViews'])_0x2b3067['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0xb90f51}=this,_0x3565ff=this['commentsListView']['commentViews']['get'](0x0);_0x3565ff===this['_boundFirstCommentView']||_0x3565ff['isSystemComment']||(this['_boundFirstCommentView']=_0x3565ff,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3565ff,'actionIndicator',_0x478192=>'remove'===_0x478192?'remove':null),_0x3565ff['placeholder']=S(_0xb90f51,'Write\x20a\x20comment...'),_0x3565ff['removeButton']['on']('execute',_0x7e88cd=>{_0x7e88cd['stop'](),this['showConfirm'](S(_0xb90f51,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3565ff['focus']();}),_0x3565ff['actionBar']['add'](this['resolveButton'],0x0),_0x3565ff['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0xa0d7f0=new _0x180bd5(this['locale']);return _0xa0d7f0['label']=S(this['locale'],'Resolve'),_0xa0d7f0['tooltip']=S(this['locale'],'Resolve'),_0xa0d7f0['icon']=_0x31e1d4['check'],_0xa0d7f0['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0xa0d7f0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x21bbc5=>!_0x21bbc5),_0xa0d7f0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2e8058,_0x2f0cb8)=>_0x2e8058&&!_0x2f0cb8),_0xa0d7f0['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0xa0d7f0;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x352b26){super(_0x352b26),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x19cd5a,_0x460eb0,_0x547a33)=>{this['element']['innerHTML']=_0x547a33;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1ed3d7,_0x485212,_0x6f0e5b){super(_0x1ed3d7),this['_model']=_0x485212,this['_config']=_0x6f0e5b,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x485212,'content',_0x485212,'authoredAt',(_0xa13817,_0x26ef1a)=>S(_0x1ed3d7,'COMMENT_ARIA_LABEL',[_0x485212['author']['name'],_0x6f0e5b['formatDateTime'](_0x26ef1a),new DOMParser()['parseFromString'](_0xa13817,'text/html')['body']['textContent'],_0x485212['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x1ed3d7,S(_0x1ed3d7,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x2e2f29(),this['focusTracker']=new _0x1a276b(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5cbe00=>_0x5cbe00['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']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x3ffb8b=new es(this['locale']);return _0x3ffb8b['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x3375a3,_0x1f8bf4)=>_0x1f8bf4?_0x385929(_0x3375a3,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x3375a3),_0x3ffb8b;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x32b89b=new hs(this['locale'],this['_config']['editorConfig']);return _0x32b89b['value']=this['_model']['content'],_0x32b89b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x32b89b['submitLabel']=S(this['locale'],'Save'),_0x32b89b['on']('submit',(_0x2d97bc,_0x1c2848)=>{this['fire']('updateComment',this['_model']['id'],_0x1c2848),this['switchToDisplayMode'](),this['focus']();}),_0x32b89b['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x32b89b['once']('editorReady',()=>{_0x32b89b['focus']();}),_0x32b89b['createEditor'](),_0x32b89b['delegate']('editorReady')['to'](this),_0x32b89b['delegate']('editorDestroyed')['to'](this),_0x32b89b;}['_setupKeyboardNavigation'](){const _0x3d06c4=this['element'];this['keystrokes']['listenTo'](_0x3d06c4);for(const _0x1c58c0 of this['focusables'])this['focusTracker']['add'](_0x1c58c0['element']),this['keystrokes']['listenTo'](_0x1c58c0['element']);this['focusables']['on']('change',(_0x324fec,_0x31ad92)=>{for(const _0x417ffb of _0x31ad92['removed'])this['focusTracker']['remove'](_0x417ffb['element']),this['keystrokes']['stopListening'](_0x417ffb['element']);for(const _0x1ccb14 of _0x31ad92['added'])this['focusTracker']['add'](_0x1ccb14['element']),this['keystrokes']['listenTo'](_0x1ccb14['element']);}),this['keystrokes']['set']('enter',(_0x2093ca,_0x4622f5)=>{_0x3d06c4===_0x2093ca['target']&&(this['focusCycler']['focusFirst'](),_0x4622f5());}),this['keystrokes']['set']('esc',(_0x29ec2e,_0x4f7c6f)=>{_0x3d06c4!==_0x29ec2e['target']&&(this['focus'](),_0x4f7c6f());});}}class vt extends/* #__PURE__ -- @preserve */
28
+ ti(os){['actionBar'];['userView'];constructor(_0x542473,_0x30d4e2,_0x34ec42){super(_0x542473,_0x30d4e2,_0x34ec42),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x542473,'Reply...')),this['bind']('authoredAt')['to'](_0x30d4e2),this['bind']('resolvedAt')['to'](_0x30d4e2),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 _0xc93dfc(_0x542473,_0x30d4e2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x30d4e2,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4a2ac8=this['bindTemplate'],_0x1f8aed=[{'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']}},{'tag':'time','attributes':{'datetime':_0x4a2ac8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4a2ac8['to']('authoredAt',_0x2ed287=>this['_config']['formatDateTime'](_0x2ed287))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x4a2ac8['if']('isEditMode','ck-comment__actions--hidden'),_0x4a2ac8['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']&&_0x1f8aed['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x4a2ac8['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x4a2ac8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x4a2ac8['if']('isEditMode','ck-comment--edit'),_0x4a2ac8['if']('isSystemComment','ck-comment--info'),_0x4a2ac8['to']('actionIndicator',_0x123ded=>_0x123ded?'ck-comment--'+_0x123ded:'')],'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':_0x1f8aed}]}]};}['_createEditButton'](){const _0x422916=new _0x2a3273(this['locale']);return _0x422916['label']=S(this['locale'],'Edit'),_0x422916['icon']=_0x31e1d4['pencil'],_0x422916['withText']=!0x0,_0x422916['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x422916['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x87f2d4=>!_0x87f2d4),_0x422916['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x422916['on']('execute',()=>this['switchToEditMode']()),_0x422916;}['_createRemoveButton'](){const _0x538646=new _0x2a3273(this['locale']);return _0x538646['label']=S(this['locale'],'Remove'),_0x538646['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x538646['withText']=!0x0,_0x538646['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x538646['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x346a65=>!_0x346a65),_0x538646['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x538646['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x538646;}['_createDropdown'](){const _0xb81ecb=_0x4e4ba2(this['locale'],_0x5e7703),_0x4bf495=_0xb81ecb['panelView']['children'],_0x89d99c=new _0x48f6b2(this['locale']),_0x42f75c=_0xb81ecb['bindTemplate'];_0x3731e5(_0xb81ecb,()=>this['items']['find'](_0x1f9fe6=>_0x1f9fe6['isVisible'])),_0xb81ecb['extendTemplate']({'attributes':{'class':[_0x42f75c['if']('isVisible','ck-hidden',_0x4cb703=>!_0x4cb703)]}});const _0x2bff8a=(_0x389e06,_0x58e46a=-0x1)=>{const _0x50d708=new _0x1967b6(this['locale']);_0x50d708['children']['add'](_0x389e06);const _0x52caf7=_0x58e46a>-0x1?_0x58e46a:_0x89d99c['items']['length'];_0x89d99c['items']['add'](_0x50d708,_0x52caf7);const _0x3d0f64=Array['from'](this['items']);_0xb81ecb['unbind']('isEnabled','isVisible'),_0xb81ecb['bind']('isEnabled')['toMany'](_0x3d0f64,'isEnabled',(..._0x154c23)=>_0x154c23['some'](_0x5c3757=>_0x5c3757)),_0xb81ecb['bind']('isVisible')['toMany'](_0x3d0f64,'isVisible',(..._0x5857c5)=>_0x5857c5['some'](_0x537f71=>_0x537f71));};_0xb81ecb['panelPosition']='sw',_0xb81ecb['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x31e1d4['threeVerticalDots']});for(const _0x1b0fa3 of this['items'])_0x2bff8a(_0x1b0fa3);return _0x4bf495['add'](_0x89d99c),_0xb81ecb['listenTo'](this['items'],'add',(_0x526e7c,_0x256bef,_0x55523a)=>{_0x2bff8a(_0x256bef,_0x55523a);}),_0xb81ecb['listenTo'](this['items'],'remove',(_0x9be2f2,_0x192844,_0x5e2fbb)=>{_0x89d99c['items']['remove'](_0x5e2fbb);}),_0xb81ecb;}['_attachActions'](_0x232b16,_0x8fa247){const _0xeaceb1=_0x232b16&&_0x232b16['element'];_0xeaceb1&&(this['listenTo'](_0xeaceb1,'mouseenter',()=>this['actionIndicator']=_0x8fa247),this['listenTo'](_0xeaceb1,'focus',()=>this['actionIndicator']=_0x8fa247),this['listenTo'](_0xeaceb1,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0xeaceb1,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x12060a=super['_createCommentInputView']();return _0x12060a['bind']('placeholder')['to'](this),_0x12060a;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x13855f){const _0x10b16d=bt(_0x13855f,0x1e),_0x3f2b54=new MutationObserver(_0x201adf=>{for(const _0x3a181b of _0x201adf)('attributes'==_0x3a181b['type']&&'class'==_0x3a181b['attributeName']||'childList'==_0x3a181b['type']||'characterData'==_0x3a181b['type'])&&_0x10b16d();});return{'attach'(_0x5cb6e3){_0x3f2b54['observe'](_0x5cb6e3,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3f2b54['disconnect'](),_0x10b16d['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x5305b9,_0x3a17f8){super(_0x5305b9),this['id']=_0x2d3bc5(),this['focusTracker']=new _0x1a276b(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x59711e,_0x1fa66b)=>this['fire']('Esc',_0x1fa66b)),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']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x3a17f8),this['mainView']=_0x3a17f8;const _0xe902d5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0xe902d5['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 _0x1bfc98=this['element']['clientHeight'];_0x1bfc98&&(this['height']=_0x1bfc98);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x3e9afd(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2cc401,target:_0x4c1543,type:_0x497dd5,isVisible:_0x1aee56=!0x0}){super(),this['view']=_0x2cc401,this['view']['element']||this['view']['render'](),this['_type']=_0x497dd5,this['_target']=_0x4c1543,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x430692([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0xc51367,_0x28428c)=>{this['view']['focusTracker']['add'](_0x28428c);}),this['focusableElements']['on']('remove',(_0x2d8e3d,_0x4bb958)=>{this['view']['focusTracker']['remove'](_0x4bb958);}),this['set']('isVisible',_0x1aee56);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x2080ae=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x2080ae),_0x2080ae;}get['targetRect'](){const _0x476a38=this['target'];if(null===_0x476a38)return null;if(_0x476a38 instanceof _0x35cc55)return _0x476a38;const _0xfcfae7=_0x476a38['filter'](_0x128565=>function(_0x58c126){const _0x50e778=_0x58c126['offsetParent'];if(_0x50e778)return!0x0;const _0x50dd00=_0x58c126['getClientRects']()['item'](0x0);return!!_0x50dd00;}(_0x128565));return 0x0===_0xfcfae7['length']?null:new _0x35cc55(_0xfcfae7[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x45e1f0){this['view']['isActive']=_0x45e1f0,this['view']['mainView']['isActive']=_0x45e1f0;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x5e046d){if(!(null===_0x5e046d||_0x5e046d instanceof _0x35cc55||Array['isArray'](_0x5e046d)&&_0x5e046d['every'](_0x29836b=>ne(_0x29836b))))throw new _0x3e0d86('annotation-invalid-target',null,{'target':_0x5e046d});}['_getNormalizedTarget'](){const _0x41b73f='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x41b73f)?[_0x41b73f]:_0x41b73f;}}function ne(_0x5dbed9){return null!==_0x5dbed9&&'object'==typeof _0x5dbed9&&'nodeType'in _0x5dbed9&&0x1===_0x5dbed9['nodeType'];}class x extends _0x430692{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x59995c=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1a276b(),this['_focusTracker']['on']('change:isFocused',(_0x507144,_0x23ce21,_0x11c181)=>{_0x11c181||this['fire']('blur');});for(const _0x45b22d of _0x59995c)this['add'](_0x45b22d);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x36acfb){if(this['has'](_0x36acfb))throw new _0x3e0d86('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x36acfb['innerView'],_0x36acfb),this['_viewToAnnotation']['set'](_0x36acfb['view'],_0x36acfb);for(const _0xd30da3 of _0x36acfb['focusableElements'])this['_focusTracker']['add'](_0xd30da3);this['listenTo'](_0x36acfb['focusableElements'],'add',(_0x5b6f36,_0x17f9d2)=>{this['_focusTracker']['add'](_0x17f9d2);}),this['listenTo'](_0x36acfb['focusableElements'],'remove',(_0x378faa,_0x1088b7)=>{this['_focusTracker']['remove'](_0x1088b7);}),this['listenTo'](_0x36acfb['view']['focusTracker'],'change:isFocused',(_0x139700,_0x4c1adf,_0x587eba)=>{_0x587eba&&this['fire']('focus',_0x36acfb);}),_0x36acfb['updateTargetRect']();const _0x662f8e=this['_getOrderInContent'](_0x36acfb['view']['targetRect']);return super['add'](_0x36acfb,_0x662f8e);}['remove'](_0x273f81){if(!this['has'](_0x273f81))throw new _0x3e0d86('annotationcollection-not-existing-item',null);this['stopListening'](_0x273f81['view']['focusTracker']),this['stopListening'](_0x273f81['focusableElements']);for(const _0x3d65cc of _0x273f81['focusableElements'])this['_focusTracker']['remove'](_0x3d65cc);return this['_viewToAnnotation']['delete'](_0x273f81['view']),this['_innerViewToAnnotation']['delete'](_0x273f81['innerView']),super['remove'](_0x273f81);}['getByInnerView'](_0x185372){return this['_innerViewToAnnotation']['get'](_0x185372);}['getByView'](_0xb38108){return this['_viewToAnnotation']['get'](_0xb38108);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x42ea2a of this)_0x42ea2a['updateTargetRect']();this['_sort']();}['_sort'](){const _0x162f14=Array['from'](this)['sort']((_0x3f7733,_0x3292c2)=>v(_0x3f7733['view']['targetRect'],_0x3292c2['view']['targetRect']));for(let _0x36641d=_0x162f14['length']-0x1;_0x36641d>0x0;_0x36641d--){const _0x1540b8=_0x162f14[_0x36641d];_0x36641d!==this['getIndex'](_0x1540b8)&&(this['remove'](_0x1540b8),this['add'](_0x1540b8));}}['_getOrderInContent'](_0x3e96f9){let _0xc2197a=0x0;if(!_0x3e96f9)return this['length'];for(const _0x1243a3 of this){const _0x397556=_0x1243a3['view']['targetRect'];if(_0x397556){if(v(_0x3e96f9,_0x397556)<0x0)return _0xc2197a;_0xc2197a++;}}return _0xc2197a;}}function v(_0x50f1eb,_0x44c5ac){if(null===_0x50f1eb&&null===_0x44c5ac)return 0x0;if(null===_0x50f1eb)return-0x1;if(null===_0x44c5ac)return 0x1;const _0x535962=_0x50f1eb['top']-_0x44c5ac['top'];return 0x0==_0x535962?_0x50f1eb['left']-_0x44c5ac['left']:_0x535962;}class N extends _0x4a32ff{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b6a7a){if(super(_0x5b6a7a),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x5b6a7a instanceof _0x429efb){const _0x272b32=_0x5b6a7a['locale'];_0x5b6a7a['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x272b32,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x272b32,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x272b32,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x272b32,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x272b32,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x272b32,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x272b32,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x16354b){this['collection']['add'](_0x16354b);}['remove'](_0x30b4e4){this['collection']['remove'](_0x30b4e4),_0x30b4e4['destroy']();}['refreshVisibility'](){for(const _0x4a4a5d of this['collection'])_0x4a4a5d['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x49c563){return this['collection']['getByInnerView'](_0x49c563);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1bf226 of this['collection'])_0x1bf226['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x3e57d8){this['fire']('_activateAnnotation',_0x3e57d8);}['createAnnotation'](_0x162b8f){return new d(_0x162b8f);}['createAnnotationView'](_0x1ed013,_0x3a62c9){return new T(_0x1ed013,_0x3a62c9);}['_addActiveAnnotation'](_0x12f3f0){const _0x2ef1d7=new Set(this['activeAnnotations']);_0x2ef1d7['add'](_0x12f3f0),this['activeAnnotations']=_0x2ef1d7;}['_removeActiveAnnotation'](_0x42b23b){const _0x21c577=new Set(this['activeAnnotations']);_0x21c577['delete'](_0x42b23b),this['activeAnnotations']=_0x21c577;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4962f1=this['collection'],_0x3dc7aa=this['_visibleAnnotations'];function _0x3a1570(_0x5d3383){const _0x430b53=_0x5d3383['source'];_0x430b53['isVisible']&&!_0x3dc7aa['has'](_0x430b53)?_0x3dc7aa['add'](_0x430b53):!_0x430b53['isVisible']&&_0x3dc7aa['has'](_0x430b53)&&_0x3dc7aa['remove'](_0x430b53),_0x430b53['view']['focusTracker']['remove'](_0x430b53['view']['element']),_0x430b53['view']['focusTracker']['add'](_0x430b53['view']['element']);}this['listenTo'](_0x4962f1,'add',(_0xd1b660,_0x381178)=>{_0x381178['isVisible']&&_0x3dc7aa['add'](_0x381178),this['listenTo'](_0x381178,'change:isVisible',_0x3a1570);}),this['listenTo'](_0x4962f1,'remove',(_0x19070c,_0x28543c)=>{_0x3dc7aa['has'](_0x28543c)&&_0x3dc7aa['remove'](_0x28543c),this['stopListening'](_0x28543c,'change:isVisible',_0x3a1570);});}['_setupEnterAnnotationKeystroke'](){const _0x501b54=_0x1a1358=>{_0x1a1358['on']('ready',()=>{_0x1a1358['keystrokes']['set'](_0x3a6a6e,(_0x363c09,_0x100813)=>{const _0x2bb9a9=_0x3e0fea(this['activeAnnotations']['values']());_0x2bb9a9&&(_0x2bb9a9['view']['focus'](),_0x100813());});});};this['context']instanceof _0x429efb?_0x501b54(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3db974,_0x517845)=>{_0x501b54(_0x517845);});}['_setupEscapeAnnotationHandling'](){const _0x3b3d1d=_0x574f82=>{const _0x301ac6=_0x574f82['source'],_0x246720=[];let _0x5a2c1a;if(Array['isArray'](_0x301ac6['target'])){_0x5a2c1a=_0x301ac6['target'][0x0],this['context']instanceof _0x429efb?_0x246720['push'](this['context']):this['context']['editors']&&_0x246720['push'](...this['context']['editors']);for(const _0x51bf21 of _0x246720)for(const _0x51800a of _0x51bf21['editing']['view']['domRoots']['values']())if(_0x51800a['contains'](_0x5a2c1a))return void _0x51bf21['editing']['view']['focus']();_0x5a2c1a['focus']();}};this['listenTo'](this['collection'],'add',(_0x5cc5da,_0x1085a0)=>{this['listenTo'](_0x1085a0,'escape',_0x3b3d1d,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x294815,_0x3348d7)=>{this['stopListening'](_0x3348d7,'escape',_0x3b3d1d);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x4a32ff{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cbe5b){super(_0x5cbe5b),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x30235e=this['context']['config'];_0x30235e['define']('comments.maxCommentsWhenCollapsed',0x2),_0x30235e['define']('comments.maxThreadTotalWeight',0x1f4),_0x30235e['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x30235e['define']('comments.CommentThreadView',Ct),_0x30235e['define']('comments.CommentView',vt),_0x30235e['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x47bbb3=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0xa351d6,_0x6dd002)=>this['_addCommentThread'](_0x6dd002)),this['on']('submitCommentThread',(_0x440492,_0x18236a)=>this['_submitCommentThread'](_0x18236a)),this['on']('resolveCommentThread',(_0x2f0f08,_0x5129a6)=>this['_resolveCommentThread'](_0x5129a6)),this['on']('resolveCommentThread',(_0x44f8be,_0x407ef1)=>this['_updateActiveAnnotation'](_0x407ef1),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0xbde736,_0x36cdd0)=>this['_reopenCommentThread'](_0x36cdd0)),this['on']('reopenCommentThread',(_0x48f573,_0x225160)=>this['_updateActiveAnnotation'](_0x225160),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x1290b1,_0x45af73)=>this['_removeCommentThread'](_0x45af73)),this['on']('updateCommentThread',(_0x32e452,_0x47cb71)=>this['_updateCommentThread'](_0x47cb71)),this['on']('updateCommentThread',(_0x1abcee,_0x4f8935)=>this['_updateActiveAnnotation'](_0x4f8935),{'priority':'lowest'}),this['on']('addComment',(_0x234554,_0x5e031c)=>this['_addComment'](_0x5e031c)),this['on']('updateComment',(_0x1c6f8d,_0x3f6a68)=>this['_updateComment'](_0x3f6a68)),this['on']('removeComment',(_0x1b6c2a,_0x506fc6)=>this['_removeComment'](_0x506fc6)),this['on']('addComment',(_0x225cc4,{threadId:_0x20e2e9,isFromAdapter:_0x23690a})=>{if(_0x23690a)return;const _0x2cdf82=this['getCommentThread'](_0x20e2e9),_0x335b90=_0x2cdf82&&this['_threadToController']['get'](_0x2cdf82);_0x335b90&&_0x335b90['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x47bbb3,'change:activeAnnotations',(_0x39c1c9,_0x36a38f,_0x1f05be)=>{const _0xbff232=Array['from'](_0x1f05be)['map'](_0x25f15a=>this['_viewToController']['get'](_0x25f15a['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xbff232?_0xbff232['model']:null;});}set['adapter'](_0x2d235e){if(this['_adapter'])throw new _0x3e0d86('commentsrepository-adapter-already-set');this['_adapter']=_0x2d235e;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x1def7b=gt,threadId:_0x238cae=_0x2d3bc5(),comments:_0x2517d7=[],unlinkedAt:_0x457e3d=null,resolvedAt:_0x1e2806=null,resolvedBy:_0x47a9fc=null,target:_0x4a6c33=null,context:_0x291cc4=null,attributes:_0x18c3eb={},isResolvable:_0x21db36=!0x0,isSubmitted:_0x7e34cd=!0x1,isFromAdapter:_0x4bdcbb=!0x1}={}){return this['fire'](_t('addCommentThread',_0x1def7b),{'channelId':_0x1def7b,'threadId':_0x238cae,'comments':_0x2517d7,'unlinkedAt':_0x457e3d,'resolvedAt':_0x1e2806,'resolvedBy':_0x47a9fc,'target':_0x4a6c33,'context':_0x291cc4,'attributes':_0x18c3eb,'isFromAdapter':_0x4bdcbb,'isResolvable':_0x21db36,'isSubmitted':_0x7e34cd}),this['getCommentThread'](_0x238cae);}['openNewCommentThread']({channelId:_0x2f6a5e=gt,threadId:_0x5ac1fd=_0x2d3bc5(),target:_0x5e1616,context:_0x13705e=null,isResolvable:_0x863cf=!0x0}){if(this['_readOnlyChannels']['has'](_0x2f6a5e)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x5e1616)throw new _0x3e0d86('commentsrepository-missing-target');const _0x34abf7=this['addCommentThread']({'channelId':_0x2f6a5e,'threadId':_0x5ac1fd,'target':_0x5e1616,'context':_0x13705e,'isResolvable':_0x863cf});if(!_0x34abf7)return null;const _0x11dff4=this['_threadToController']['get'](_0x34abf7),_0x2b6a00=_0x11dff4['view']['commentThreadInputView']['commentInputView'],_0x396ff9=this['context']['plugins']['get'](N),_0x5360eb=_0x396ff9['getByInnerView'](_0x11dff4['view']);return _0x396ff9['activate'](_0x5360eb),_0x2b6a00['once']('editorReady',()=>_0x2b6a00['focus']()),_0x34abf7;}['hasCommentThread'](_0x96bb8){if('string'!=typeof _0x96bb8)throw new _0x3e0d86('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x96bb8);}['updateCommentThread']({channelId:_0x35d585=gt,threadId:_0xbcfffd,context:_0x5e7583,unlinkedAt:_0x108568,attributes:_0x427559,isFromAdapter:_0x2393fd=!0x1}){return this['fire'](_t('updateCommentThread',_0x35d585),{'channelId':_0x35d585,'threadId':_0xbcfffd,'context':_0x5e7583,'unlinkedAt':_0x108568,'attributes':_0x427559,'isFromAdapter':_0x2393fd}),this['getCommentThread'](_0xbcfffd);}['getCommentThread'](_0x4fd1fb){if('string'!=typeof _0x4fd1fb)throw new _0x3e0d86('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4fd1fb);}['fetchCommentThread']({channelId:_0x386089,threadId:_0x5af63b}={}){const _0x1e0ae9=this['getCommentThread'](_0x5af63b);if(_0x1e0ae9)return Promise['resolve'](_0x1e0ae9);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3e0d86('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x386089,'threadId':_0x5af63b})['then'](_0xf618c2=>this['hasCommentThread'](_0x5af63b)?this['getCommentThread'](_0x5af63b):_0xf618c2?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x386089},_0xf618c2)):void 0x0)['catch'](_0x53c4ff=>{throw console['error'](_0x53c4ff),new _0x3e0d86('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x23c3e1,skipNotAttached:_0x16c094=!0x1,skipEmpty:_0x2560af=!0x1,toJSON:_0x53a3be=!0x1}={}){const _0x50a437=[];for(const _0x3cd36f of this['_threads']['values']())_0x23c3e1&&_0x3cd36f['channelId']!==_0x23c3e1||_0x16c094&&!_0x3cd36f['isAttached']||_0x2560af&&0x0===_0x3cd36f['length']||_0x50a437['push'](_0x3cd36f);return _0x53a3be?_0x50a437['map'](_0x466373=>_0x466373['toJSON']()):_0x50a437;}['setActiveCommentThread'](_0x30e8f8){const _0xfdb4ac=this['context']['plugins']['get'](N);if(!_0x30e8f8)return void(this['activeCommentThread']&&_0xfdb4ac['deactivateAll']());const _0x33dbc5=this['getCommentThread'](_0x30e8f8);if(!_0x33dbc5)throw new _0x3e0d86('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x30e8f8});if(!this['_threadToController']['has'](_0x33dbc5))throw new _0x3e0d86('commentsrepository-active-not-attached',null,{'threadId':_0x30e8f8});const _0x505d7b=_0xfdb4ac['getByInnerView'](this['_threadToController']['get'](_0x33dbc5)['view']);_0xfdb4ac['activate'](_0x505d7b);}['switchReadOnly'](_0x2ad495,_0x58c793){_0x2ad495?this['_readOnlyChannels']['add'](_0x58c793):this['_readOnlyChannels']['delete'](_0x58c793),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x2743e3){return this['_readOnlyChannels']['has'](_0x2743e3)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4ad7d1,_0x247eaa){return new yt(_0x4ad7d1,_0x247eaa);}['setPermissions'](_0x5d20b1,_0x4839b0=gt){this['_permissions']['set'](_0x4839b0,_0x5d20b1),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x140c9f=gt){return this['_permissions']['has'](_0x140c9f)?this['_permissions']['get'](_0x140c9f):Tt;}['_addCommentThread']({channelId:_0x429a02,threadId:_0x5bb52c,comments:_0x1a0494,unlinkedAt:_0x4c8b08,resolvedAt:_0xfc74a3,resolvedBy:_0x3d0201,target:_0x3191b7,context:_0x27a4e5,attributes:_0x357f83,isFromAdapter:_0x47a11c,isResolvable:_0x596a1c,isSubmitted:_0x675bce}){if('string'!=typeof _0x5bb52c)throw new _0x3e0d86('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5bb52c});if(this['hasCommentThread'](_0x5bb52c))throw new _0x3e0d86('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x5bb52c});const _0x1a7fe5=new oe(this,{'channelId':_0x429a02,'id':_0x5bb52c,'context':_0x27a4e5,'attributes':_0x357f83,'unlinkedAt':_0x4c8b08,'resolvedAt':_0xfc74a3,'resolvedBy':_0x3d0201?this['context']['plugins']['get'](it)['getUser'](_0x3d0201):null,'isResolvable':_0x596a1c,'isSubmitted':_0x675bce||_0x47a11c});this['_threads']['set'](_0x5bb52c,_0x1a7fe5);for(const _0x3aac59 of _0x1a0494)_0x1a7fe5['_add'](this['_createNewComment']({'threadId':_0x5bb52c,..._0x3aac59}));return _0x3191b7&&_0x1a7fe5['attachTo'](_0x3191b7),_0x47a11c||!_0x1a7fe5['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x429a02,'threadId':_0x5bb52c});}['_submitCommentThread']({channelId:_0x22a8b4,threadId:_0xee03de}){if(!this['hasCommentThread'](_0xee03de))throw new _0x3e0d86('commentsrepository-missing-comment-thread',this);const _0x2351ed=this['getCommentThread'](_0xee03de);if(_0x2351ed['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x22de91,comments:_0x1bca7b,resolvedAt:_0xa4938a,resolvedBy:_0x3d086d,context:_0x187378,attributes:_0x6d4ef}=_0x2351ed,_0xd8551=this['context']['plugins']['get']('PendingActions'),_0x96f90d=_0xd8551['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x22a8b4,'threadId':_0x22de91,'comments':_0x1bca7b['map'](_0xfee3f6=>_0xfee3f6['toJSON']()),'resolvedAt':_0xa4938a,'resolvedBy':_0x3d086d?_0x3d086d['id']:_0x3d086d,'context':_0x187378,'attributes':_0x6d4ef})['then'](({comments:_0x1f113b})=>{_0xd8551['remove'](_0x96f90d);for(const _0x33e25b of _0x1f113b)this['_updateComment']({'channelId':_0x22a8b4,'threadId':_0xee03de,'commentId':_0x33e25b['commentId'],'createdAt':_0x33e25b['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x8d5cf1=>{throw console['error'](_0x8d5cf1),new _0x3e0d86('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x592a3a,target:_0x15ad9c}){const _0xfeef9d=this['getCommentThread'](_0x592a3a);if(!_0xfeef9d)throw new _0x3e0d86('commentsrepository-attach-missing-comment-thread',this);const _0x2e064d=this['context']['plugins']['get']('PendingActions'),_0x1f0d29=this['context']['plugins']['get'](N),_0x37068a=this['_createCommentThreadView'](_0xfeef9d),_0x3ae035=new yt(_0xfeef9d,_0x37068a);let _0x288920=null;_0x37068a['on']('change:isDirty',(_0x1bd697,_0x1b93f5,_0x5efa6a)=>{_0x5efa6a?_0x288920=_0x2e064d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x288920&&(_0x2e064d['remove'](_0x288920),_0x288920=null);}),this['_threadToController']['set'](_0xfeef9d,_0x3ae035),this['_viewToController']['set'](_0x37068a,_0x3ae035);const _0x40bb08=new T(this['context']['locale'],_0x37068a);_0x40bb08['bind']('length')['to'](_0x37068a),_0x40bb08['bind']('isDirty')['to'](_0x37068a,'isDirty',_0x37068a,'length',(_0xe08c1c,_0x194c1c)=>_0xe08c1c||!_0x194c1c),_0x40bb08['bind']('isActive')['to'](_0x37068a),_0x40bb08['type']='comment';const _0x3295ae=new d({'view':_0x40bb08,'target':_0x15ad9c,'type':'comment','isVisible':!_0xfeef9d['isResolved']});return _0x37068a['on']('escape',()=>{_0x3295ae['fire']('escape');}),this['_bindAnnotationToEditors'](_0x37068a,_0x3295ae),_0x1f0d29['add'](_0x3295ae),_0x3295ae;}['_bindAnnotationToEditors'](_0x1e09cb,_0x422c6a){this['listenTo'](_0x1e09cb,'editorReady',(_0x5df975,_0x37e6e9)=>{const _0x1cdfde=_0x37e6e9['ui']['view']['body']['bodyCollectionContainer'];_0x422c6a['focusableElements']['add'](_0x1cdfde),this['context']instanceof _0x429efb&&this['context']['ui']['focusTracker']['add'](_0x1cdfde);},{'priority':'highest'}),this['listenTo'](_0x1e09cb,'editorDestroyed',(_0x2866d1,_0x15297e)=>{const _0x4470cb=_0x15297e['ui']['view']['body']['bodyCollectionContainer'];_0x422c6a['focusableElements']['has'](_0x4470cb)&&_0x422c6a['focusableElements']['remove'](_0x4470cb),this['context']instanceof _0x429efb&&this['context']['ui']['focusTracker']['remove'](_0x4470cb);});}['_unbindEditors'](_0x9b23d5){this['stopListening'](_0x9b23d5,'editorReady'),this['stopListening'](_0x9b23d5,'editorDestroyed');}['_createCommentThreadView'](_0x37da1f){const _0x22920a=this['context']['plugins']['get'](it),{config:_0x5563f3,locale:_0x564000}=this['context'],_0x2f8756=mt(_0x5563f3['get']('locale'));return new(0x0,(_0x5563f3['get']('comments'))['CommentThreadView'])(_0x564000,_0x37da1f,_0x22920a['me'],{'editorConfig':{..._0x5563f3['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x5563f3['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x5563f3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5563f3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5563f3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2f8756,'CommentView':_0x5563f3['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x30920e,channelId:_0x2c2918,resolvedAt:_0x1fdb74,resolvedBy:_0x1475b8,isFromAdapter:_0x5cc685}){if(!this['hasCommentThread'](_0x30920e))throw new _0x3e0d86('commentsrepository-missing-comment-thread',null,{'threadId':_0x30920e});const _0x553701=this['getCommentThread'](_0x30920e);if(_0x553701['isResolved'])throw new _0x3e0d86('commentsrepository-resolved-comment-thread',null,{'threadId':_0x30920e});const _0x56fb7a=this['context']['plugins']['get'](it);if(_0x553701['resolvedBy']=_0x56fb7a['getUser'](_0x1475b8),_0x553701['resolvedAt']=_0x1fdb74,_0x5cc685||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x4aec7b=this['context']['plugins']['get']('PendingActions'),_0x149a48=_0x4aec7b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x2c2918,'threadId':_0x30920e})['then'](({resolvedAt:_0x16e991,resolvedBy:_0xab5a2c})=>{_0x4aec7b['remove'](_0x149a48),_0x553701['resolvedBy']['id']!==_0xab5a2c&&(_0x553701['resolvedBy']=_0x56fb7a['getUser'](_0xab5a2c)),_0x553701['resolvedAt']=_0x16e991;})['catch'](_0x443372=>{throw console['error'](_0x443372),new _0x3e0d86('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x392e33,channelId:_0x48a28c,isFromAdapter:_0x13152f}){if(!this['hasCommentThread'](_0x392e33))throw new _0x3e0d86('commentsrepository-missing-comment-thread',null,{'threadId':_0x392e33});const _0x3a3e53=this['getCommentThread'](_0x392e33);if(!_0x3a3e53['isResolved'])throw new _0x3e0d86('commentsrepository-reopen-comment-thread',null,{'threadId':_0x392e33});if(_0x3a3e53['resolvedBy']=null,_0x3a3e53['resolvedAt']=null,_0x13152f||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x33cffd=this['context']['plugins']['get']('PendingActions'),_0x5c1826=_0x33cffd['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x48a28c,'threadId':_0x392e33})['then'](()=>_0x33cffd['remove'](_0x5c1826))['catch'](_0x193dc2=>{throw console['error'](_0x193dc2),new _0x3e0d86('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x13be97,isFromAdapter:_0x2b0604}){const _0x19668d=this['getCommentThread'](_0x13be97);if(!_0x19668d)throw new _0x3e0d86('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x13be97),this['_threads']['delete'](_0x13be97),!_0x19668d['isSubmitted']||_0x2b0604||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x262244=this['context']['plugins']['get']('PendingActions'),{channelId:_0x663b89}=_0x19668d,_0x160a9a=_0x262244['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x663b89,'threadId':_0x13be97})['then'](()=>_0x262244['remove'](_0x160a9a))['catch'](_0x278fe0=>{throw console['error'](_0x278fe0),new _0x3e0d86('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x6422c1,unlinkedAt:_0x961ae8,context:_0x55278a,attributes:_0x367ac3,isFromAdapter:_0x264e96}){if('string'!=typeof _0x6422c1)throw new _0x3e0d86('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x6422c1});if(!this['hasCommentThread'](_0x6422c1))throw new _0x3e0d86('commentsrepository-missing-comment-thread',null,{'threadId':_0x6422c1});const _0x4dbdcf=this['getCommentThread'](_0x6422c1);let _0x3a5a98=!0x1;if(void 0x0!==_0x55278a&&_0x4dbdcf['context']!==_0x55278a&&(_0x4dbdcf['context']=_0x55278a,_0x3a5a98=!0x0),void 0x0!==_0x961ae8&&_0x4dbdcf['unlinkedAt']!==_0x961ae8&&(_0x4dbdcf['unlinkedAt']=_0x961ae8,_0x3a5a98=!0x0),_0x367ac3&&!It(_0x367ac3,_0x4dbdcf['attributes'])&&(_0x4dbdcf['attributes']=_0x367ac3,_0x3a5a98=!0x0),!_0x3a5a98)return Promise['resolve']();if(!_0x4dbdcf['isSubmitted']||_0x264e96||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x403f38=this['context']['plugins']['get']('PendingActions'),{channelId:_0x16ee1f}=_0x4dbdcf,_0x904a82=_0x403f38['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x16ee1f,'threadId':_0x6422c1,'context':_0x55278a,'unlinkedAt':_0x961ae8,'attributes':_0x367ac3})['then'](()=>_0x403f38['remove'](_0x904a82))['catch'](_0x52dd11=>{throw console['error'](_0x52dd11),new _0x3e0d86('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x3e107a){const _0x50dea4=this['context']['plugins']['get'](N),_0x4de04b=this['getCommentThread'](_0x3e107a);if(this['_threadToController']['has'](_0x4de04b)){const _0x4ca8c9=this['_threadToController']['get'](_0x4de04b),_0x292cde=_0x4ca8c9['view'],_0x4343d5=_0x50dea4['getByInnerView'](_0x292cde);this['_threadToController']['delete'](_0x4de04b),this['_viewToController']['delete'](_0x292cde),_0x4343d5&&_0x50dea4['remove'](_0x4343d5),_0x4ca8c9['destroy'](),_0x292cde['destroy']()['then'](()=>{this['_unbindEditors'](_0x292cde);});}}['_updateActiveAnnotation']({threadId:_0x43f326,resolvedAt:_0x28ba1a}){const _0x1ff894=!!_0x28ba1a,_0x442aba=this['context']['plugins']['get'](N),_0x28b196=this['getCommentThread'](_0x43f326);if(this['_threadToController']['has'](_0x28b196)){const _0x380b2e=this['_threadToController']['get'](_0x28b196)['view'],_0x3c496d=_0x442aba['getByInnerView'](_0x380b2e);_0x3c496d&&(_0x1ff894&&_0x442aba['_removeActiveAnnotation'](_0x3c496d),_0x3c496d['refreshVisibility']());}}['_getExternalAuthor'](_0x7502bb){const _0x3a4d72=this['context']['plugins']['get'](it),_0xd25dc3=lt('external:'+_0x7502bb),_0x430265=_0x3a4d72['getUser'](_0xd25dc3);return _0x430265||_0x3a4d72['addUser']({'id':_0xd25dc3,'name':_0x7502bb});}['_createNewComment']({threadId:_0xa055a6,commentId:_0x181542=_0x2d3bc5(),content:_0x645f05,authorId:_0x234d7d,createdAt:_0xcb6b76,attributes:_0x1ef765}){if('string'!=typeof _0x181542)throw new _0x3e0d86('commentsrepository-invalid-commentid');if('string'!=typeof _0x234d7d)throw new _0x3e0d86('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x645f05||!_0x645f05['trim']())throw new _0x3e0d86('commentsrepository-invalid-comment-content');const _0x83cad9=this['context']['plugins']['get'](it)['getUser'](_0x234d7d);if(!_0x83cad9)throw new _0x3e0d86('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x234d7d});let _0xbd8bc8=null,_0x2c2210=_0xcb6b76;return _0x1ef765&&_0x1ef765['@external']&&(_0xbd8bc8=this['_getExternalAuthor'](_0x1ef765['@external']['authorName']),_0x2c2210=new Date(_0x1ef765['@external']['createdAt'])),new re(this,{'threadId':_0xa055a6,'id':_0x181542,'author':_0xbd8bc8||_0x83cad9,'creator':_0x83cad9,'content':_0x645f05,'createdAt':_0xcb6b76,'authoredAt':_0x2c2210,'attributes':_0x1ef765});}['_addComment'](_0x1f3429){let {threadId:_0x2f667e,content:_0x34a46e,attributes:_0x4cc811,isFromAdapter:_0x469454}=_0x1f3429;const _0x1a5946=this['getCommentThread'](_0x1f3429['threadId']);if(!_0x1a5946)throw new _0x3e0d86('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x3bb2ad=this['_createNewComment'](_0x1f3429),{id:_0x22a3b5}=_0x3bb2ad;if(_0x1a5946['_add'](_0x3bb2ad),_0x469454||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x1a5946['isSubmitted'])return Promise['resolve']();const _0x2e2f78=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3d7192}=_0x1a5946,_0x530645=_0x2e2f78['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x4cc811||(_0x4cc811={}),this['adapter']['addComment']({'channelId':_0x3d7192,'threadId':_0x2f667e,'commentId':_0x22a3b5,'content':_0x34a46e,'attributes':_0x4cc811})['then'](_0x202611=>{_0x2e2f78['remove'](_0x530645),_0x202611&&this['_updateComment']({'channelId':_0x3d7192,'threadId':_0x2f667e,'commentId':_0x22a3b5,'createdAt':_0x202611['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3739c9=>{throw console['error'](_0x3739c9),new _0x3e0d86('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x45ba11,commentId:_0xaeea7b,content:_0x1dddd8,createdAt:_0x35d994,attributes:_0x3fa509,isFromAdapter:_0x335579}){if(void 0x0!==_0x1dddd8&&('string'!=typeof _0x1dddd8||!_0x1dddd8['trim']()['length']))throw new _0x3e0d86('commentsrepository-update-comment-invalid-content');const _0x901a00=this['getCommentThread'](_0x45ba11),_0x10ec09=_0x901a00['getComment'](_0xaeea7b);if(!_0x10ec09)throw new _0x3e0d86('commentsrepository-update-missing-comment',this);let _0x3373f4=!0x1;if(_0x1dddd8&&_0x1dddd8!==_0x10ec09['content']&&(_0x10ec09['isEditable']||_0x335579)&&(_0x10ec09['content']=_0x1dddd8,_0x3373f4=!0x0),_0x35d994&&_0x35d994!==_0x10ec09['createdAt']&&(_0x10ec09['createdAt']=_0x35d994,_0x10ec09['attributes']&&_0x10ec09['attributes']['@external']||(_0x10ec09['authoredAt']=_0x35d994),_0x3373f4=!0x0),_0x3fa509&&!It(_0x3fa509,_0x10ec09['attributes'])&&(_0x10ec09['attributes']=_0x3fa509,_0x3373f4=!0x0),!_0x3373f4)return Promise['resolve']();if(_0x901a00['fire']('commentUpdated'),_0x335579||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x4f9d94=this['context']['plugins']['get']('PendingActions'),{channelId:_0x6f2aba}=this['getCommentThread'](_0x10ec09['threadId']),_0x14da2c=_0x4f9d94['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x6f2aba,'threadId':_0x45ba11,'commentId':_0xaeea7b,'content':_0x1dddd8,'attributes':_0x3fa509})['then'](()=>_0x4f9d94['remove'](_0x14da2c))['catch'](_0xdc3bb3=>{throw console['error'](_0xdc3bb3),new _0x3e0d86('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x576ad2,commentId:_0x43aa97,isFromAdapter:_0x49b891}){const _0x31e2e8=this['getCommentThread'](_0x576ad2),_0xead2e2=_0x31e2e8['getComment'](_0x43aa97);if(!_0xead2e2)throw new _0x3e0d86('commentsrepository-remove-missing-comment',this);if(_0x31e2e8['_remove'](_0xead2e2),_0x49b891||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x3d549c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2efd64}=_0x31e2e8,_0x50c751=_0x3d549c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2efd64,'threadId':_0x576ad2,'commentId':_0x43aa97})['then'](()=>_0x3d549c['remove'](_0x50c751))['catch'](_0x2f58cc=>{throw console['error'](_0x2f58cc),new _0x3e0d86('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x3e9afd(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x560452,_0x4f7e90){super();const _0x3ebe4d=_0x4f7e90['isResolvable'];this['channelId']=_0x4f7e90['channelId'],this['id']=_0x4f7e90['id'],this['comments']=new _0x430692(),this['_repository']=_0x560452,this['_isAttached']=!0x1,this['_isSubmitted']=_0x4f7e90['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x560452,'_permissions',_0x560452,'_readOnlyChannels',()=>_0x560452['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x560452,'_permissions',()=>_0x560452['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x560452,'_permissions',()=>{const _0x1341c7=_0x560452['getPermissions'](this['channelId']);return _0x1341c7['write']||_0x1341c7['admin'];}),this['bind']('isResolvable')['to'](_0x560452,'_permissions',()=>_0x3ebe4d&&_0x560452['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x4f7e90['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x5961fd,_0x31a138)=>_0x5961fd?_0x31a138?_0x5961fd<_0x31a138?_0x5961fd:_0x31a138:_0x5961fd:_0x31a138),this['set']('unlinkedAt',_0x4f7e90['unlinkedAt']||null),this['set']('resolvedAt',_0x4f7e90['resolvedAt']||null),this['set']('resolvedBy',_0x4f7e90['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x57f95b=>!!_0x57f95b),this['set']('attributes',_0x4f7e90['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x229dde,_0x284adb)=>_0x229dde+_0x284adb['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x31b00f,id:_0x24ab25}=this;this['_repository']['fire'](_t('submitCommentThread',_0x31b00f),{'channelId':_0x31b00f,'threadId':_0x24ab25});}['setUnlinkedAt'](_0x27241f){this['_update']({'unlinkedAt':_0x27241f});}['resolve']({resolvedAt:_0x4c1b19=new Date(),resolvedBy:_0x12ce77=null,isFromAdapter:_0x471350=!0x1}={}){const _0xd4fb33=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4a5c40,id:_0x3759d1}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x4a5c40),{'channelId':_0x4a5c40,'threadId':_0x3759d1,'resolvedAt':_0x4c1b19,'resolvedBy':_0x12ce77||_0xd4fb33['id'],'isFromAdapter':_0x471350});}['reopen']({isFromAdapter:_0x47bdea=!0x1}={}){const {channelId:_0x482c00,id:_0x2dfd5f}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x482c00),{'channelId':_0x482c00,'threadId':_0x2dfd5f,'isFromAdapter':_0x47bdea});}['setContext'](_0x35b765){this['context']||this['_update']({'context':_0x35b765});}['setAttribute'](_0x404f8c,_0x10dda8){const _0x18498f=pt(this['attributes']);wt(_0x18498f,_0x404f8c,_0x10dda8),this['_update']({'attributes':_0x18498f});}['removeAttribute'](_0xef9a3){const _0x13cad9=pt(this['attributes']);At(_0x13cad9,_0xef9a3),this['_update']({'attributes':_0x13cad9});}['remove']({isFromAdapter:_0x1f132e=!0x1}={}){const {channelId:_0x3bd713,id:_0x58bf3a}=this;this['_repository']['fire'](_t('removeCommentThread',_0x3bd713),{'channelId':_0x3bd713,'threadId':_0x58bf3a,'isFromAdapter':_0x1f132e});}['attachTo'](_0x57203e){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x57203e});}['addComment'](_0x500d21){const {channelId:_0x88d42f,id:_0xfeaad2}=this;this['_repository']['fire'](_t('addComment',_0x88d42f,_0xfeaad2),Object['assign']({'channelId':_0x88d42f,'threadId':_0xfeaad2},_0x500d21));}['getComment'](_0x5d8f96){if('string'!=typeof _0x5d8f96)throw new _0x3e0d86('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x5d8f96});return this['comments']['get'](_0x5d8f96);}['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'](_0x2723c7=>_0x2723c7['toJSON']()),'attributes':this['attributes']};}['_add'](_0x108b0d){return this['listenTo'](_0x108b0d,'change:authoredAt',()=>{const _0x3f75ea=this['_findOptimalIndex'](_0x108b0d),_0x35f1c5=this['comments'];_0x3f75ea-0x1!=_0x35f1c5['getIndex'](_0x108b0d)&&_0x3f75ea+0x1!=_0x35f1c5['getIndex'](_0x108b0d)&&(this['_remove'](_0x108b0d),this['_add'](_0x108b0d));}),this['comments']['add'](_0x108b0d,this['_findOptimalIndex'](_0x108b0d));}['_update'](_0x2daa48){const {channelId:_0x1ca571,id:_0x42ed70}=this;this['_repository']['fire'](_t('updateCommentThread',_0x1ca571),{..._0x2daa48,'channelId':_0x1ca571,'threadId':_0x42ed70});}['_remove'](_0x37a814){return this['stopListening'](_0x37a814),_0x37a814['destroy'](),this['comments']['remove'](_0x37a814);}['_findOptimalIndex'](_0x139347){const _0x5e895f=this['comments']['find'](_0xe18282=>new Date(_0xe18282['authoredAt'])['getTime']()>new Date(_0x139347['authoredAt'])['getTime']());return _0x5e895f?this['comments']['getIndex'](_0x5e895f):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x3e9afd(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x13c744,_0xa76e4b){super();const _0x17bf36=_0x13c744['context']['plugins']['get'](it)['me'],_0x59f41e=_0x13c744['getCommentThread'](_0xa76e4b['threadId']),_0x3e40bb=0x0===_0x59f41e['comments']['length'],_0x25dcba=_0x17bf36===_0xa76e4b['author'];this['id']=_0xa76e4b['id'],this['threadId']=_0xa76e4b['threadId'],this['author']=_0xa76e4b['author'],this['creator']=_0xa76e4b['creator'],this['isExternal']=Boolean(_0xa76e4b['attributes']&&_0xa76e4b['attributes']['@external']),this['set']('content',_0xa76e4b['content']),this['createdAt']=_0xa76e4b['createdAt']||new Date(),this['set']('authoredAt',_0xa76e4b['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x59f41e,'resolvedAt'),this['set']('attributes',_0xa76e4b['attributes']||{}),this['bind']('isEditable')['to'](_0x13c744,'_permissions',()=>{const _0x4490e2=_0x13c744['getPermissions'](_0x59f41e['channelId'])['write'],_0x3b5550=_0x13c744['getPermissions'](_0x59f41e['channelId'])['modifyAll'];return _0x25dcba&&_0x4490e2||!_0x25dcba&&_0x3b5550;}),this['bind']('isRemovable')['to'](_0x59f41e,'isRemovable',_0x13c744,'_permissions',_0x39759a=>{const _0x4495a2=_0x13c744['getPermissions'](_0x59f41e['channelId'])['write'],_0x1794b1=_0x13c744['getPermissions'](_0x59f41e['channelId'])['modifyAll'];return _0x25dcba&&_0x4495a2||_0x39759a&&_0x3e40bb||!_0x25dcba&&_0x1794b1&&!_0x3e40bb;}),this['bind']('isReadOnly')['to'](_0x59f41e,'isReadOnly'),this['_repository']=_0x13c744;}get['weight'](){return Math['max'](function(_0x194c2f){const _0x3445c5=document['createElement']('div');return _0x3445c5['innerHTML']=_0x194c2f,_0x3445c5['textContent']['length'];}(this['content']),0xc8);}['update'](_0x4e3550){const {threadId:_0xaaefd,id:_0x16b53d}=this;if(!this['_repository']['hasCommentThread'](_0xaaefd))throw new _0x3e0d86('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x352939}=this['_repository']['getCommentThread'](_0xaaefd);this['_repository']['fire'](_t('updateComment',_0x352939,_0xaaefd),{'channelId':_0x352939,'threadId':_0xaaefd,'commentId':_0x16b53d,..._0x4e3550});}['setAttribute'](_0x1cc2f1,_0xf320a1){const _0x3591d7=pt(this['attributes']);wt(_0x3591d7,_0x1cc2f1,_0xf320a1),this['update']({'attributes':_0x3591d7});}['removeAttribute'](_0x232c75){const _0x34390a=pt(this['attributes']);At(_0x34390a,_0x232c75),this['update']({'attributes':_0x34390a});}['remove'](_0xe70e9a={}){if(!_0xe70e9a['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x11eec5,id:_0x5f9af}=this;if(!this['_repository']['hasCommentThread'](_0x11eec5))throw new _0x3e0d86('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x31559b}=this['_repository']['getCommentThread'](_0x11eec5);this['_repository']['fire'](_t('removeComment',_0x31559b,_0x11eec5),{'channelId':_0x31559b,'threadId':_0x11eec5,'commentId':_0x5f9af,..._0xe70e9a});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x3568b9,..._0x5da13b){for(const _0x3db87c of _0x5da13b)void 0x0!==_0x3db87c&&(_0x3568b9+=':'+String(_0x3db87c));return _0x3568b9;}class J extends _0x376e85{['refresh'](){const _0xe9532f=this['editor']['model']['document']['selection'];for(const _0x23b3e7 of _0xe9532f['getRanges']())if(this['_hasContent'](_0x23b3e7))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0xd66ff=_0x2d3bc5()}={}){const _0x2b25e7=this['editor']['model'],_0x405c9a=[];for(const _0x5640d7 of _0x2b25e7['document']['selection']['getRanges']())this['_hasContent'](_0x5640d7)&&_0x405c9a['push'](this['_trimToContent'](_0x5640d7));_0x2b25e7['change'](_0x4882ae=>{for(const _0x225f34 of _0x405c9a){const _0xab011e=_0x2d3bc5()['substr'](0x1,0x5),_0x5555dd='comment:'+_0xd66ff+':'+_0xab011e;_0x4882ae['addMarker'](_0x5555dd,{'range':_0x225f34,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x176981){for(const _0x307f45 of _0x176981['getItems']())if(this['_itemIsContent'](_0x307f45))return!0x0;return!0x1;}['_itemIsContent'](_0x5ad6a4){return _0x5ad6a4['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5ad6a4)&&!_0x5ad6a4['is']('element','tableCell');}['_trimToContent'](_0x3d373e){const _0x32d842=_0x8cc044=>!this['_itemIsContent'](_0x8cc044['item']),_0x1ed37d=_0x3d373e['start']['getLastMatchingPosition'](_0x32d842),_0x93cf36=_0x3d373e['end']['getLastMatchingPosition'](_0x32d842,{'direction':'backward'});return this['editor']['model']['createRange'](_0x1ed37d,_0x93cf36);}}class P extends _0x997b8b{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32e3b8){super(_0x32e3b8),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3adbb2=this['editor'],_0x2bcaa0=_0x3adbb2['model']['document']['selection'],_0x5d342f=_0x2d6425(()=>this['refreshSelectedViews'](),0xa);_0x2bcaa0['on']('change:range',(_0x1fe758,_0x4d0bbf)=>{_0x4d0bbf['directChange']&&(_0x5d342f['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3adbb2['editing']['view']['document'],'change:isFocused',(_0x1f6d99,_0x566ab5,_0x509de4)=>{_0x509de4&&_0x5d342f();}),this['listenTo'](_0x3adbb2['ui']['focusTracker'],'change:isFocused',(_0x43f2dc,_0x4f8731,_0x43410f)=>{_0x43410f||_0x3adbb2['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x5d87ae=>this['_editorAnnotationsData']['has'](_0x5d87ae['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x2d1c69){if(this['_editorAnnotations']['has'](_0x2d1c69['view']))return;this['_editorAnnotations']['add'](_0x2d1c69['view']),this['editor']['ui']['focusTracker']['add'](_0x2d1c69['view']['element']);const _0x3fcc07=this['editor']['plugins']['get'](N);this['listenTo'](_0x3fcc07['collection'],'remove',(_0xbb8cfd,_0x281a08)=>{this['editor']['ui']['focusTracker']['remove'](_0x281a08['view']['element']),this['_editorAnnotations']['delete'](_0x281a08['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x23882f){if('function'!=typeof _0x23882f)throw new _0x3e0d86('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x23882f);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3d694d,annotations:_0x5497c1}){const _0x350a9=[],_0x31393c=this['editor']['model']['document']['selection'],_0x2d58eb=Array['from'](_0x31393c['getRanges']());for(const [_0x2af692,_0x3d4ace]of this['_editorAnnotationsData']){const _0x113763=_0x5a39db(_0x3d4ace),_0xb4b441=_0x5497c1['getByInnerView'](_0x2af692);_0x113763&&_0xb4b441&&_0x350a9['push']({'annotation':_0xb4b441,'range':_0x113763});}function _0x5a39db(_0x265888){for(const _0x116a91 of _0x265888)for(const _0x4b11cb of _0x2d58eb)if(_0x116a91['containsRange'](_0x4b11cb,!_0x31393c['isCollapsed']))return _0x116a91;return null;}return _0x350a9['sort']((_0x4770dc,_0x59847e)=>{const _0x17e7b7=_0x4770dc['range'],_0x1607be=_0x59847e['range'];if(!_0x17e7b7['isEqual'](_0x1607be)){if(_0x17e7b7['containsRange'](_0x1607be,!0x0))return 0x1;if(_0x1607be['containsRange'](_0x17e7b7,!0x0))return-0x1;}return _0x4770dc['annotation']==_0x3d694d?-0x1:_0x59847e['annotation']==_0x3d694d?0x1:0x0;})['map'](_0xbffc4e=>_0xbffc4e['annotation']);}get['_editorAnnotationsData'](){const _0x2b998c=new Map();for(const _0x5d9b18 of Array['from'](this['_dataCollectors']))for(const [_0x39a1ef,_0x314dac]of _0x5d9b18())_0x2b998c['set'](_0x39a1ef,_0x314dac);return _0x2b998c;}}class st extends _0x997b8b{['afterInit'](){const _0x1e1f8d=this['editor'];if(!_0x1e1f8d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x1e1f8d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x997b8b{constructor(_0x3e5b3f){super(_0x3e5b3f),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x3b9148=this['editor'],_0x1fbf13=_0x3b9148['commands']['get']('importWord'),_0x6b5426=_0x3b9148['plugins']['get'](it);_0x1fbf13&&(_0x1fbf13['on']('execute',(_0xf362d8,[,_0x5e219b])=>{_0x5e219b['collaboration_features']={'comments':!0x0,'user_id':_0x6b5426['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1fbf13,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5ca8a6,_0x4c1995){const {comment_threads:_0x49a034}=_0x4c1995;_0x49a034&&_0x49a034['forEach'](({thread_id:_0x563a99,comments:_0x44fd5b,is_resolved:_0x376fd6})=>{const _0x4bae96=new Date(),_0x4f43f6=_0x44fd5b['map'](({author:_0x506f90,content:_0x5ef398,created_at:_0x4ebf7c})=>({'content':_0x5ef398,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x4bae96,'attributes':{'@external':{'authorName':_0x506f90,'createdAt':_0x4ebf7c?new Date(_0x4ebf7c):new Date(),'source':'importWord'}}})),_0x4fe729=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4fe729,'threadId':_0x563a99,'comments':_0x4f43f6,'resolvedAt':_0x376fd6?_0x4bae96:null});});}}class at extends _0x997b8b{constructor(_0x20dfa6){super(_0x20dfa6),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x5e7517=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5e7517,'contentInsertion',(_0x4ca873,_0x9a4e1c)=>this['_removeMarkersWithoutThreads'](_0x9a4e1c['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xe7a69d){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xe7a69d;const _0x391fab=this['editor']['plugins']['get']('CommentsRepository');for(const _0x59d05d of _0xe7a69d['keys']()){const [_0x56dc56,_0x2fbd66]=_0x59d05d['split'](':');'comment'!=_0x56dc56||_0x391fab['hasCommentThread'](_0x2fbd66)||_0xe7a69d['delete'](_0x59d05d);}return _0xe7a69d;}['_registerMarkerInClipboardPipeline'](){const _0x544e67=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x22d7a0=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x22d7a0&&_0x544e67['_registerMarkerToCopy']('comment',_0x22d7a0);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x360c54){switch(_0x360c54){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x997b8b{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb3ca4c){super(_0xb3ca4c),this['set']('isThreadsLoadingPaused',!0x0),_0xb3ca4c['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0xef2033,_0x106f33,_0x46eb2a,_0x247401)=>{const _0x138d2a=_0x46eb2a?he(_0x46eb2a)['id']:null;if(_0xb3ca4c['model']['change'](()=>{if(_0x138d2a){const _0x28e772=this['getAllMarkersForId'](_0x138d2a);for(const _0x326482 of _0x28e772)_0xb3ca4c['editing']['reconvertMarker'](_0x326482);}if(_0x247401){const {id:_0x11f042}=he(_0x247401),_0x114c97=this['getAllMarkersForId'](_0x11f042);for(const _0x5bbc2c of _0x114c97)_0xb3ca4c['editing']['reconvertMarker'](_0x5bbc2c);}}),_0x138d2a){const _0x2955f5=_0xb3ca4c['plugins']['get'](o)['getCommentThread'](_0x138d2a);_0x2955f5&&_0x2955f5['isResolved']&&this['scrollToThreadMarker'](_0x138d2a);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x22447b=this['editor'],_0x3b1921=_0x22447b['plugins']['get'](o),_0x2bb62f=_0x22447b['config']['get']('collaboration.channelId');_0x22447b['commands']['add']('addCommentThread',new J(_0x22447b)),this['listenTo'](_0x22447b,'change:isReadOnly',(_0x271a98,_0x560afe,_0x29638b)=>{_0x3b1921['switchReadOnly'](_0x29638b,_0x22447b['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x3b1921,ut('addCommentThread',_0x2bb62f),(_0x3a0dde,{threadId:_0x5d187a})=>{const _0x5d8961=this['editor']['plugins']['get'](o)['getCommentThread'](_0x5d187a);_0x5d8961&&_0x5d8961['unlinkedAt']&&this['_attachArchivedThread'](_0x5d187a);}),this['listenTo'](_0x3b1921,ut('removeCommentThread',_0x2bb62f),(_0x150b20,{threadId:_0x1eb9df})=>{_0x22447b['model']['enqueueChange']({'isUndoable':!0x1},_0x4fd213=>{const _0x65d1e8=this['getAllMarkersForId'](_0x1eb9df);for(const _0x38e550 of _0x65d1e8)_0x4fd213['removeMarker'](_0x38e550);});}),this['listenTo'](_0x3b1921,ut('resolveCommentThread',_0x2bb62f),(_0x21efa6,{threadId:_0x564840})=>{(this['_reconvertMarkers'](_0x564840),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x564840)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x3b1921,ut('reopenCommentThread',_0x2bb62f),(_0xcc5bfd,{threadId:_0xe49f2c})=>{this['_reconvertMarkers'](_0xe49f2c);},{'priority':'low'}),this['listenTo'](_0x3b1921,ut('addComment',_0x2bb62f),(_0x483841,{threadId:_0x241521,isFromAdapter:_0x39f6e7})=>{const _0x1c656b=this['getAllMarkersForId'](_0x241521);if(_0x39f6e7||0x0==_0x1c656b['length']||!_0x3b1921['hasCommentThread'](_0x241521))return;0x1===_0x3b1921['getCommentThread'](_0x241521)['length']&&_0x22447b['model']['enqueueChange']({'isUndoable':!0x1},_0x2cefb0=>{for(const _0x2a59c9 of _0x1c656b)_0x2cefb0['updateMarker'](_0x2a59c9,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x444ef3){const _0x281e81=_0x5a0514([0x4f,0x46,0x70,0x4a,0x36,0x78,0x6e,0x74,0x55,0x47,0x54,0x39,0x58,0x57,0x66,0x64,0x44,0x38,0x42,0x69,0x32,0x4d,0x37,0x53,0x63,0x77,0x43,0x34,0x51,0x52,0x6b,0x72,0x30,0x59,0x41,0x75,0x4c,0x4b,0x50,0x73,0x62,0x6d,0x56,0x61,0x7a,0x65,0x67,0x45,0x6c,0x31,0x49,0x76,0x5a,0x71,0x6f,0x6a,0x68,0x4e,0x79,0x35,0x33,0x48]),_0x1e1c26=0x354691bc,_0x405443=0x3541c69c^_0x1e1c26,_0x59c5d2=window[_0x5a0514([0x44,0x61,0x74,0x65])][_0x5a0514([0x6e,0x6f,0x77])](),_0x414e42=_0x444ef3[_0x5a0514([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46b8f4=new window[(_0x5a0514([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f5778=>{_0x414e42[_0x5a0514([0x6f,0x6e,0x63,0x65])](_0x5a0514([0x72,0x65,0x61,0x64,0x79]),_0x4f5778);}),_0x241d08={[_0x5a0514([0x6b,0x74,0x79])]:_0x5a0514([0x45,0x43]),[_0x5a0514([0x75,0x73,0x65])]:_0x5a0514([0x73,0x69,0x67]),[_0x5a0514([0x63,0x72,0x76])]:_0x5a0514([0x50,0x2d,0x32,0x35,0x36]),[_0x5a0514([0x78])]:_0x5a0514([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]),[_0x5a0514([0x79])]:_0x5a0514([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]),[_0x5a0514([0x61,0x6c,0x67])]:_0x5a0514([0x45,0x53,0x32,0x35,0x36])},_0x1a9912=_0x414e42[_0x5a0514([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a0514([0x67,0x65,0x74])](_0x5a0514([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28e8fb(){let _0x53a9a5,_0x31b845=null,_0x1b58ac=null;try{if(_0x1a9912==_0x5a0514([0x47,0x50,0x4c]))return _0x5a0514([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53a9a5=_0x257848(),!_0x53a9a5)return _0x5a0514([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53a9a5[_0x5a0514([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b58ac=_0x23516c(_0x53a9a5[_0x5a0514([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53a9a5[_0x5a0514([0x6a,0x74,0x69])])),await _0x5c96d7()?_0x5e80a0()?_0x2d3119()?_0x5a0514([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7c1ca2()?(_0x53a9a5[_0x5a0514([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a0514([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31b845=_0x369e06(_0x5a0514([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53a9a5[_0x5a0514([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a0514([0x74,0x72,0x69,0x61,0x6c])&&(_0x31b845=_0x369e06(_0x5a0514([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x53a9a5[_0x5a0514([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a0514([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x31b845=_0x369e06(_0x5a0514([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c3322()):_0x5a0514([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a0514([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a0514([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x75d14d){return _0x5a0514([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d3119(){const _0x9da2be=[_0x5a0514([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a0514([0x74,0x72,0x69,0x61,0x6c])][_0x5a0514([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a9a5[_0x5a0514([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59c5d2/0x3e8:0xe10*_0x405443;return _0x53a9a5[_0x5a0514([0x65,0x78,0x70])]<_0x9da2be;}function _0x5e80a0(){const _0x2a155c=_0x53a9a5[_0x5a0514([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a155c&&(!!_0x2a155c[_0x5a0514([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0514([0x2a]))||(!!_0x2a155c[_0x5a0514([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0514([0x43,0x4d,0x54]))||!(!_0x2a155c[_0x5a0514([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0514([0x52,0x43,0x4d,0x54]))||!_0xb6f882())));}function _0x7c1ca2(){const _0x329a45=_0x53a9a5[_0x5a0514([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x329a45||0x0==_0x329a45[_0x5a0514([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x313839}=new URL(window[_0x5a0514([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x329a45[_0x5a0514([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x313839))return!0x0;const _0x287731=_0x313839[_0x5a0514([0x73,0x70,0x6c,0x69,0x74])](_0x5a0514([0x2e]));return _0x329a45[_0x5a0514([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14eb12=>_0x14eb12[_0x5a0514([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0514([0x2a])))[_0x5a0514([0x6d,0x61,0x70])](_0x4d7e36=>_0x4d7e36[_0x5a0514([0x73,0x70,0x6c,0x69,0x74])](_0x5a0514([0x2e])))[_0x5a0514([0x73,0x6f,0x6d,0x65])](_0x2a7c59=>_0x287731[_0x5a0514([0x65,0x76,0x65,0x72,0x79])]((_0x4c29e2,_0x549264)=>_0x2a7c59[_0x549264]===_0x4c29e2||_0x2a7c59[_0x549264]===_0x5a0514([0x2a])));}function _0x1c3322(){return _0x31b845&&_0x1b58ac?new window[(_0x5a0514([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a0f0f,_0x5ca8ef)=>{_0x31b845[_0x5a0514([0x74,0x68,0x65,0x6e])](_0x1a0f0f,_0x5ca8ef),_0x1b58ac[_0x5a0514([0x74,0x68,0x65,0x6e])](_0x265017=>{_0x265017!=_0x5a0514([0x56,0x61,0x6c,0x69,0x64])&&_0x1a0f0f(_0x265017);},_0x5ca8ef);}):_0x31b845||_0x1b58ac||_0x5a0514([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23516c(_0x492ca4,_0xf1de1d){return new window[(_0x5a0514([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40a9b0=>{if(_0x57eac6())return _0x40a9b0(_0x5a0514([0x56,0x61,0x6c,0x69,0x64]));_0x4e1fe0(),_0x414e42[_0x5a0514([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a0514([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x485152=!0x1;const _0x5308e=_0x2d3bc5();function _0x3a5332(_0x7bb40f){return!!_0x7bb40f&&(typeof _0x7bb40f===_0x5a0514([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7bb40f===_0x5a0514([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7bb40f[_0x5a0514([0x74,0x68,0x65,0x6e])]===_0x5a0514([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7bb40f[_0x5a0514([0x63,0x61,0x74,0x63,0x68])]===_0x5a0514([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f5a98(_0xdef9ab){_0x143a44(_0xdef9ab)[_0x5a0514([0x74,0x68,0x65,0x6e])](_0x4eee16=>{if(!_0x4eee16||_0x4eee16[_0x5a0514([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a0514([0x6f,0x6b]))return _0x5a0514([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c7d77(_0x4cf837(_0x5308e+_0xf1de1d))!=_0x4eee16[_0x5a0514([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a0514([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a0514([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a0514([0x74,0x68,0x65,0x6e])](_0x19c6f5=>(_0x4d9490(),_0x19c6f5),()=>{const _0x45f153=_0x1f4e0d();return null==_0x45f153?(_0x4d9490(),_0x5a0514([0x56,0x61,0x6c,0x69,0x64])):_0x5a0514(_0x59c5d2-_0x45f153>(0x114a15bc^_0x1e1c26)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a0514([0x74,0x68,0x65,0x6e])](_0x40a9b0)[_0x5a0514([0x63,0x61,0x74,0x63,0x68])](()=>{_0x40a9b0(_0x5a0514([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23cb6b=0x35707f3c^_0x1e1c26;function _0x4d9490(){const _0x1fc3aa=_0x5a0514([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c7d77(_0x4cf837(_0x492ca4)),_0x14224e=_0x1ff3f7(_0x4c7d77(window[_0x5a0514([0x4d,0x61,0x74,0x68])][_0x5a0514([0x63,0x65,0x69,0x6c])](_0x59c5d2/_0x23cb6b)));window[_0x5a0514([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a0514([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fc3aa,_0x14224e);}function _0x1f4e0d(){const _0x5d7147=_0x5a0514([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c7d77(_0x4cf837(_0x492ca4)),_0x2a7e51=window[_0x5a0514([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a0514([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d7147);return _0x2a7e51?window[_0x5a0514([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ff3f7(_0x2a7e51),0x10)*_0x23cb6b:null;}function _0x143a44(_0x741f8e){return new window[(_0x5a0514([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7ffbf7,_0x3e3ade)=>{_0x741f8e[_0x5a0514([0x74,0x68,0x65,0x6e])](_0x7ffbf7,_0x3e3ade),window[_0x5a0514([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e3ade,0x3547457c^_0x1e1c26);});}}_0x414e42[_0x5a0514([0x6f,0x6e])](_0x5a0514([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3260ba,_0x2d139e)=>{if(_0x2d139e[0x0]!=_0x492ca4)return _0x40a9b0(_0x5a0514([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d139e[0x1]={..._0x2d139e[0x1],[_0x5a0514([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5308e};},{[_0x5a0514([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a0514([0x68,0x69,0x67,0x68])}),_0x414e42[_0x5a0514([0x6f,0x6e])](_0x5a0514([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e1f3d=>{_0x3a5332(_0x1e1f3d[_0x5a0514([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x485152=!0x0,_0x1f5a98(_0x1e1f3d[_0x5a0514([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a0514([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a0514([0x6c,0x6f,0x77])}),_0x46b8f4[_0x5a0514([0x74,0x68,0x65,0x6e])](()=>{_0x485152||_0x40a9b0(_0x5a0514([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57eac6(){return _0x414e42[_0x5a0514([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a0514([0x76,0x69,0x65,0x77])][_0x5a0514([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a0514([0x61,0x75,0x74,0x6f]);}function _0x4e1fe0(){_0x414e42[_0x5a0514([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a0514([0x76,0x69,0x65,0x77])][_0x5a0514([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a0514([0x61,0x75,0x74,0x6f]);}}function _0x369e06(_0x17fffe){const _0x44b269=[new window[(_0x5a0514([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x326eb8=>setTimeout(_0x326eb8,0x354faf70^_0x1e1c26)),_0x46b8f4[_0x5a0514([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a0514([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a75c2=>{let _0x14099a=0x0;_0x414e42[_0x5a0514([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a0514([0x6f,0x6e])](_0x5a0514([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52419a,_0x3afe5d)=>{_0x3afe5d[0x0][_0x5a0514([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14099a++,_0x14099a==(0x35469044^_0x1e1c26)&&(_0x5a75c2(),_0x52419a[_0x5a0514([0x6f,0x66,0x66])]());});}))];return window[_0x5a0514([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a0514([0x72,0x61,0x63,0x65])](_0x44b269)[_0x5a0514([0x74,0x68,0x65,0x6e])](()=>_0x17fffe);}async function _0x52a485(){await _0x46b8f4,_0x414e42[_0x5a0514([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a0514([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b2a83,_0x414e42[_0x5a0514([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a0514([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b2a83,_0x414e42[_0x5a0514([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a0514([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb6f882(){return _0x21e90d(_0x5a0514([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x27dd5c(_0x5a0514([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a0514([0x73,0x74,0x61,0x74,0x65])]==_0x5a0514([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5409de(_0x5a69d1){const _0x54d7d0=_0x57f9f2();_0x414e42[_0x54d7d0]=_0x5a0514([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a69d1,_0x5a69d1!=_0x5a0514([0x56,0x61,0x6c,0x69,0x64])&&_0x52a485();}function _0x57f9f2(){const _0x143290=window[_0x5a0514([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a0514([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a0514([0x6e,0x6f,0x77])]())[_0x5a0514([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a0514([0x2e]),'');let _0x21300c=_0x5a0514([0x4f]);for(let _0x5ca9ba=0x0;_0x5ca9ba<_0x143290[_0x5a0514([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ca9ba+=0x2){let _0x2dda9e=window[_0x5a0514([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x143290[_0x5a0514([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ca9ba,_0x5ca9ba+0x2));_0x2dda9e>=_0x281e81[_0x5a0514([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2dda9e-=_0x281e81[_0x5a0514([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21300c+=_0x281e81[_0x2dda9e];}return _0x21300c;}function _0x257848(){const _0x265d5e=_0x1a9912[_0x5a0514([0x73,0x70,0x6c,0x69,0x74])](_0x5a0514([0x2e]));if(0x3!=_0x265d5e[_0x5a0514([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a97c7(_0x265d5e[0x1]);function _0x3a97c7(_0xb876d3){const _0x13eccb=_0x3429a4(_0xb876d3);return _0x13eccb&&_0x256930()?_0x13eccb:null;function _0x256930(){const _0x73f40e=_0x13eccb[_0x5a0514([0x6a,0x74,0x69])],_0x11a6b6=window[_0x5a0514([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x73f40e[_0x5a0514([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x73f40e[_0x5a0514([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x268d98={..._0x13eccb,[_0x5a0514([0x6a,0x74,0x69])]:_0x73f40e[_0x5a0514([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x73f40e[_0x5a0514([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x268d98[_0x5a0514([0x76,0x63])],_0x4cf837(_0x268d98)==_0x11a6b6;}}}async function _0x5c96d7(){let _0x3da26b=!0x0;try{const _0x47b771=_0x1a9912[_0x5a0514([0x73,0x70,0x6c,0x69,0x74])](_0x5a0514([0x2e])),[_0x59cd1c,_0x5878b4,_0x46ebfe]=_0x47b771;return _0x53d31f(_0x59cd1c),await _0x7bec87(_0x59cd1c,_0x5878b4,_0x46ebfe),_0x3da26b;}catch(_0xa6d525){return!0x1;}function _0x53d31f(_0x25c555){const _0x1cbc5d=_0x3429a4(_0x25c555);_0x1cbc5d&&_0x1cbc5d[_0x5a0514([0x61,0x6c,0x67])]==_0x5a0514([0x45,0x53,0x32,0x35,0x36])||(_0x3da26b=!0x1);}async function _0x7bec87(_0x6c0b01,_0x53e0de,_0x178a1b){const _0x18f523=window[_0x5a0514([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a0514([0x66,0x72,0x6f,0x6d])](_0x518000(_0x178a1b),_0x13e92c=>_0x13e92c[_0x5a0514([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e25a4=new window[(_0x5a0514([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a0514([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6c0b01+_0x5a0514([0x2e])+_0x53e0de),_0x336a67=window[_0x5a0514([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a0514([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x336a67)return;const _0x466376=await _0x336a67[_0x5a0514([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a0514([0x6a,0x77,0x6b]),_0x241d08,{[_0x5a0514([0x6e,0x61,0x6d,0x65])]:_0x5a0514([0x45,0x43,0x44,0x53,0x41]),[_0x5a0514([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a0514([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a0514([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x336a67[_0x5a0514([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a0514([0x6e,0x61,0x6d,0x65])]:_0x5a0514([0x45,0x43,0x44,0x53,0x41]),[_0x5a0514([0x68,0x61,0x73,0x68])]:{[_0x5a0514([0x6e,0x61,0x6d,0x65])]:_0x5a0514([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x466376,_0x18f523,_0x2e25a4)||(_0x3da26b=!0x1);}}function _0x3429a4(_0x571222){return _0x571222[_0x5a0514([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a0514([0x65,0x79]))?JSON[_0x5a0514([0x70,0x61,0x72,0x73,0x65])](_0x518000(_0x571222)):null;}function _0x518000(_0x21d964){return window[_0x5a0514([0x61,0x74,0x6f,0x62])](_0x21d964[_0x5a0514([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a0514([0x2b]))[_0x5a0514([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a0514([0x2f])));}function _0x4cf837(_0x427eb7){let _0x58e3d9=0x1505;function _0x4499b9(_0x522ed1){for(let _0x17d47d=0x0;_0x17d47d<_0x522ed1[_0x5a0514([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17d47d++){const _0x4504bf=_0x522ed1[_0x5a0514([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17d47d);_0x58e3d9=(_0x58e3d9<<0x5)+_0x58e3d9+_0x4504bf,_0x58e3d9&=_0x58e3d9;}}function _0x2fa632(_0x1fcca8){Array[_0x5a0514([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1fcca8)?_0x1fcca8[_0x5a0514([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fa632):_0x1fcca8&&typeof _0x1fcca8==_0x5a0514([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a0514([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1fcca8)[_0x5a0514([0x73,0x6f,0x72,0x74])]()[_0x5a0514([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x128cc8,_0x35f2b9])=>{_0x4499b9(_0x128cc8),_0x2fa632(_0x35f2b9);}):_0x4499b9(window[_0x5a0514([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1fcca8));}return _0x2fa632(_0x427eb7),_0x58e3d9>>>0x0;}function _0x4c7d77(_0x2fef18){return _0x2fef18[_0x5a0514([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a0514([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a0514([0x30]));}function _0x1ff3f7(_0x354e6f){return _0x354e6f[_0x5a0514([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a0514([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a0514([0x6a,0x6f,0x69,0x6e])]('');}function _0x21e90d(_0x4c3ca0){return _0x414e42[_0x5a0514([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a0514([0x68,0x61,0x73])](_0x4c3ca0);}function _0x27dd5c(_0x400b95){return _0x414e42[_0x5a0514([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a0514([0x67,0x65,0x74])](_0x400b95);}function _0x1b2a83(){}function _0x5a0514(_0xbaa5dc){return _0xbaa5dc['map'](_0x707935=>String['fromCharCode'](_0x707935))['join']('');}_0x5409de(await _0x28e8fb());}(this);}['destroy'](){const _0xb9d732=this['editor']['plugins']['get'](o),_0x353892=this['editor']['config']['get']('collaboration.channelId');for(const _0x5a76f4 of _0xb9d732['getCommentThreads']({'channelId':_0x353892}))_0xb9d732['_detachCommentThread'](_0x5a76f4['id']),_0xb9d732['_threads']['delete'](_0x5a76f4['id']);super['destroy']();}['hasMarkerForId'](_0xf6ad95){return this['getAllMarkersForId'](_0xf6ad95)['length']>0x0;}['getAllMarkersForId'](_0x239fdb){const _0x470010=[];for(const _0x55fdd6 of this['editor']['model']['markers'])_0x55fdd6['name']['startsWith']('comment:'+_0x239fdb)&&_0x470010['push'](_0x55fdd6);return _0x470010;}['scrollToThreadMarker'](_0x5b4033){const _0x4894c5=this['_getTargetForId'](_0x5b4033);_0x4894c5&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x5b4033&&rt({'target':_0x4894c5[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x1321c4){this['editor']['model']['change'](()=>{for(const _0x38fd0c of this['getAllMarkersForId'](_0x1321c4))this['editor']['editing']['reconvertMarker'](_0x38fd0c);});}['_attachArchivedThread'](_0x2a6255){const _0x2f4f38=this['editor']['plugins']['get'](o),_0x22a844=this['editor']['plugins']['get'](P),_0x28ab84=_0x2f4f38['getCommentThread'](_0x2a6255);if(!_0x28ab84['isAttached']){const _0x55212c=_0x28ab84['attachTo'](()=>this['_getTargetForId'](_0x28ab84['id']));_0x22a844['registerAnnotation'](_0x55212c),_0x28ab84['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x258e42=this['editor'],_0x3b0816=_0x258e42['plugins']['get'](it);_0x258e42['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x55292d,_0x5b3d8d)=>{const {id:_0x4c016b}=he(_0x55292d['markerName']),_0x33835c=_0x258e42['plugins']['get'](o)['getCommentThread'](_0x4c016b),_0x7ef90c=this['activeMarker']&&he(this['activeMarker'])['id']===_0x4c016b;let _0x4cf6cd;if(_0x33835c&&_0x33835c['isResolved']&&!_0x7ef90c&&_0x55292d['item'])return _0x5b3d8d['consumable']['consume'](_0x55292d['item'],'addMarker:'+_0x55292d['markerName']),_0x5b3d8d['consumable']['consume'](_0x55292d['item'],'removeMarker:'+_0x55292d['markerName']),null;const _0x89fd1=['ck-comment-marker'];return _0x7ef90c&&_0x89fd1['push']('ck-comment-marker--active'),_0x4cf6cd=_0x33835c&&_0x33835c['length']?_0x33835c['comments']['first']['author']['id']:_0x3b0816['me']['id'],{'classes':_0x89fd1,'attributes':{'data-comment':_0x4c016b,'data-author-id':_0x4cf6cd}};}}),_0x258e42['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3fc027,{options:_0x2d64c8})=>{const _0x1a8678=_0x258e42['plugins']['get'](o),_0x77c86f=_0x258e42['model']['markers']['get'](_0x3fc027),{id:_0x373426,part:_0xeb10f9}=he(_0x3fc027);if(_0x77c86f&&!_0x77c86f['affectsData'])return null;if(_0x2d64c8['ignoreResolvedComments']){const _0x1feef1=_0x1a8678['getCommentThread'](_0x373426);if(_0x1feef1&&_0x1feef1['isResolved'])return null;}return{'group':'comment','name':_0xeb10f9?_0x373426+':'+_0xeb10f9:_0x373426};}}),_0x258e42['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x168d8c,{writer:_0x1554ad})=>_0x1554ad['createElement']('$marker',{'data-name':'comment:'+_0x168d8c['getAttribute']('id')})}),_0x258e42['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x1c928b=this['editor'],_0x5a1920=_0x1c928b['plugins']['get'](o),_0x50a02d=new Set(),_0xc0f19c=new Set();_0x1c928b['model']['document']['registerPostFixer'](_0x5f5a2c=>{let _0x352960=!0x1;for(const {name:_0x4fbca8,data:_0xae6d33}of _0x1c928b['model']['document']['differ']['getChangedMarkers']()){const {group:_0x58287d,id:_0x71c351}=he(_0x4fbca8);let _0x13d4bf=_0xae6d33['newRange'];if('comment'!==_0x58287d||!_0x13d4bf)continue;const _0x2c7ca3='$graveyard'===_0x13d4bf['root']['rootName'];_0x2c7ca3||(_0x13d4bf=ft(_0x13d4bf,_0x1c928b['model']),!_0x13d4bf||_0x13d4bf['isCollapsed']||!_0xae6d33['newRange']||_0x13d4bf['isEqual'](_0xae6d33['newRange']))?_0x1c928b['model']['hasContent'](_0x13d4bf)&&!_0x2c7ca3?this['isThreadsLoadingPaused']?_0x50a02d['add'](_0x4fbca8):this['_handleThreadMarker'](_0x4fbca8,_0x71c351):(_0xc0f19c['add'](_0x4fbca8),_0x50a02d['delete'](_0x4fbca8),_0x5f5a2c['removeMarker'](_0x4fbca8),_0x352960=!0x0):(_0x5f5a2c['updateMarker'](_0x4fbca8,{'range':_0x13d4bf}),_0x352960=!0x0);}return _0x352960;}),this['on']('change:isThreadsLoadingPaused',(_0xd1e54a,_0x389a8a,_0xbbbda9)=>{if(!_0xbbbda9&&_0x50a02d['size'])for(const _0x32837d of _0x50a02d){const {id:_0x514ae1}=he(_0x32837d);_0x50a02d['delete'](_0x32837d),_0x1c928b['model']['markers']['get'](_0x32837d)&&this['_handleThreadMarker'](_0x32837d,_0x514ae1);}}),this['listenTo'](_0x1c928b['model']['document'],'change',(_0x10ced0,_0x5e7561)=>{for(const {name:_0x25a900,data:{newRange:_0x739d4b}}of _0x1c928b['model']['document']['differ']['getChangedMarkers']()){const {group:_0x64e958,id:_0x2220e6}=he(_0x25a900);if('comment'!==_0x64e958)continue;const _0x59c200=_0x5a1920['getCommentThread'](_0x2220e6),_0x117364=this['hasMarkerForId'](_0x2220e6);_0x59c200&&(!_0x59c200['_hasTargetInContent']&&_0x739d4b&&_0x1c928b['editing']['view']['once']('render',()=>{const _0xca7acb=_0x1c928b['plugins']['get'](N),_0x53bed4=_0x5a1920['_threadToController']['get'](_0x59c200)['view'];_0xca7acb['getByInnerView'](_0x53bed4)['refreshVisibility']();},{'priority':'low'}),_0x59c200['_hasTargetInContent']=_0x117364||!!_0x739d4b),_0x739d4b||(_0xc0f19c['add'](_0x25a900),_0x50a02d['delete'](_0x25a900));}if(_0x5e7561['isLocal'])for(const _0x7025ad of _0xc0f19c){const {id:_0x148d47}=he(_0x7025ad),_0x352f3e=_0x5a1920['getCommentThread'](_0x148d47),_0x14d4d0=this['hasMarkerForId'](_0x148d47);_0x50a02d['delete'](_0x7025ad),!_0x352f3e||_0x14d4d0||_0x352f3e['unlinkedAt']||_0x352f3e['setUnlinkedAt'](new Date());}_0xc0f19c['clear']();});}['_getTargetForId'](_0x4391e3){const _0x32e3b0=this['editor'],_0x5b81e5=this['getAllMarkersForId'](_0x4391e3);return et(_0x32e3b0['editing'],_0x5b81e5);}['_getTextContext'](_0x1ca37d){const _0x5a18a0=this['getAllMarkersForId'](_0x1ca37d);let _0x57b819='',_0x17f2c9=!0x1;for(const _0x3cd54a of _0x5a18a0){const _0x3c4a28=_0x3cd54a['getRange']();for(const _0x4a88df of Array['from'](_0x3c4a28['getItems']()))_0x4a88df['is']('$textProxy')?(_0x57b819&&_0x17f2c9&&(_0x57b819+='\x20',_0x17f2c9=!0x1),_0x57b819+=_0x4a88df['data']):_0x17f2c9=!0x0;_0x17f2c9=!0x0;}return _0x57b819['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4d778e,_0x108324){const _0x5b5915=this['editor'],_0x55cac2=_0x5b5915['plugins']['get'](o);let _0x5e953b=_0x55cac2['getCommentThread'](_0x108324);const _0x5a4013=_0x5b5915['config']['get']('collaboration.channelId'),_0x3ba3ea=_0x5b5915['plugins']['get'](P);if(_0x5e953b&&(_0x5e953b['unlinkedAt']&&_0x5e953b['setUnlinkedAt'](null),_0x5e953b['isAttached']))return _0x5e953b;return!this['getAllMarkersForId'](_0x108324)[0x0]['managedUsingOperations']?_0x5b5915['editing']['view']['once']('render',()=>{if(_0x55cac2['getCommentThread'](_0x108324))return;const _0x27b304=_0x5b5915['plugins']['get'](N);_0x5e953b=_0x55cac2['openNewCommentThread']({'channelId':_0x5a4013,'threadId':_0x108324,'target':()=>this['_getTargetForId'](_0x108324),'context':{'type':'text','value':this['_getTextContext'](_0x108324)}});const _0x588c83=_0x55cac2['_threadToController']['get'](_0x5e953b)['view'],_0x6e7f80=_0x27b304['getByInnerView'](_0x588c83);_0x6e7f80&&_0x3ba3ea['registerAnnotation'](_0x6e7f80);},{'priority':'low'}):_0x55cac2['fetchCommentThread']({'channelId':_0x5a4013,'threadId':_0x108324})['then'](_0x2c8447=>{if('destroyed'!==_0x5b5915['state']){if(_0x5e953b=_0x2c8447,_0x5e953b&&!_0x5e953b['isAttached']){const _0xfca19c=_0x5e953b['attachTo'](()=>this['_getTargetForId'](_0x108324));_0x3ba3ea['registerAnnotation'](_0xfca19c),_0x5e953b['isResolved']&&this['_reconvertMarkers'](_0x108324);}else{if(!_0x5e953b){const _0x46d4c2=this['getAllMarkersForId'](_0x108324);_0x5b5915['model']['change'](_0x29df4a=>{for(const _0x38376f of _0x46d4c2)_0x29df4a['removeMarker'](_0x38376f);});}}}}),_0x5e953b;}['_handleThreadMarker'](_0xc81c2b,_0xe5c721){const _0x316d86=this['_attachMarkerToThread'](_0xc81c2b,_0xe5c721);_0x316d86&&!_0x316d86['context']&&_0x316d86['setContext']({'type':'text','value':this['_getTextContext'](_0xe5c721)});}['_initAriaMarkerChangeAnnouncements'](){const _0x591346=this['editor'];ot(_0x591346['model'],({left:_0x48d551,entered:_0x45cdde})=>{for(const _0x3fdcd7 of _0x48d551)if(dt(_0x3fdcd7)){_0x591346['ui']['ariaLiveAnnouncer']['announce'](S(_0x591346['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x5b731b of _0x45cdde)if(dt(_0x5b731b)){_0x591346['ui']['ariaLiveAnnouncer']['announce'](S(_0x591346['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x29f90c)));break;}});}}function ut(_0x2a0147,_0x2eda2c){return _0x2eda2c?_0x2a0147+':'+_0x2eda2c:_0x2a0147;}function he(_0x49276f){const _0x6fcc8c=_0x49276f['split'](':');return{'group':_0x6fcc8c[0x0],'id':_0x6fcc8c[0x1],'part':_0x6fcc8c[0x2]};}function ft(_0x1a81d6,_0x4a1db5){const _0x20fa2a=_0x4a1db5['schema'],_0x7a6b62=_0x4a1db5['createRange'](_0x1a81d6['start']);for(const _0x46c38d of _0x1a81d6['getWalker']()){const {type:_0x295e3d,item:_0x5d4ef6,nextPosition:_0x3a8543}=_0x46c38d;if('text'===_0x295e3d||_0x20fa2a['isObject'](_0x5d4ef6)){const _0x44e59b=_0x4a1db5['createPositionBefore'](_0x5d4ef6);_0x7a6b62['isCollapsed']&&(_0x7a6b62['start']=_0x44e59b),_0x7a6b62['end']=_0x3a8543;}}return _0x7a6b62;}function dt(_0x30bf8e){return'comment'===he(_0x30bf8e['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x997b8b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x38a9eb=this['editor'],_0x1c6c5c=_0x38a9eb['plugins']['get'](o),_0x9867f3=_0x38a9eb['plugins']['get'](r),_0x4444e9=_0x38a9eb['plugins']['get'](N),_0x5746c8=_0x38a9eb['plugins']['get'](P);_0x38a9eb['ui']['componentFactory']['add']('comment',()=>{const _0x3d3a4c=this['_createUIButton'](_0x2a3273);return _0x3d3a4c['tooltip']=!0x0,_0x3d3a4c;}),_0x38a9eb['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x276496)),_0x5746c8['addSourceCollector'](()=>{const _0x75bb13=[];for(const [_0x31cf28,_0x2fb616]of _0x1c6c5c['_threadToController']){const _0x4ea1bf=_0x9867f3['getAllMarkersForId'](_0x31cf28['id']),_0xf6321d=_0x4ea1bf['map'](_0x46e69e=>_0x46e69e['getRange']());_0x4ea1bf['length']>0x0&&_0x75bb13['push']([_0x2fb616['view'],_0xf6321d]);}return _0x75bb13;}),this['listenTo'](_0x4444e9,'change:activeAnnotations',(_0x1a1cc5,_0x20b563,_0x409f3a)=>{const _0x51d578=Array['from'](_0x409f3a)['map'](_0x4c53af=>_0x4c53af['innerView'])['find'](_0x1cd681=>_0x1c6c5c['_viewToController']['has'](_0x1cd681));if(!_0x51d578)return void(_0x9867f3['activeMarker']=null);const _0x37c69a=_0x1c6c5c['_viewToController']['get'](_0x51d578)['model']['id'],_0x5e422f='comment:'+_0x37c69a;_0x37c69a&&_0x9867f3['hasMarkerForId'](_0x37c69a)?_0x9867f3['activeMarker']=_0x5e422f:_0x9867f3['activeMarker']&&(_0x9867f3['activeMarker']=null);}),this['listenTo'](_0x1c6c5c,'removeCommentThread',(_0x14f415,{threadId:_0x4d4da0,isFromAdapter:_0x3b4d55})=>{!_0x3b4d55&&_0x38a9eb['ui']['focusTracker']['isFocused']&&_0x9867f3['hasMarkerForId'](_0x4d4da0)&&_0x38a9eb['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1c6c5c,'addComment',(_0x1bd873,{threadId:_0x374395,isFromAdapter:_0x3cf757})=>{if(_0x3cf757||!_0x9867f3['hasMarkerForId'](_0x374395)||!_0x1c6c5c['hasCommentThread'](_0x374395))return;0x1===_0x1c6c5c['getCommentThread'](_0x374395)['length']&&(_0x38a9eb['editing']['view']['focus'](),_0x1bd873['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e15a2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4eadef;for(const _0x4d733e in _0x3e15a2){const _0x1d1e9d=_0x4d733e,_0x162fe0=_0x3e15a2[_0x1d1e9d];if('commentsLicenseKeyValid'==_0x162fe0||'commentsLicenseKeyInvalid'==_0x162fe0||'commentsLicenseKeyExpired'==_0x162fe0||'commentsLicenseKeyDomainLimit'==_0x162fe0||'commentsLicenseKeyNotAllowed'==_0x162fe0||'commentsLicenseKeyEvaluationLimit'==_0x162fe0||'commentsLicenseKeyTrialLimit'==_0x162fe0||'commentsLicenseKeyDevelopmentLimit'==_0x162fe0||'commentsLicenseKeyUsageLimit'==_0x162fe0){delete _0x3e15a2[_0x1d1e9d],_0x4eadef=_0x162fe0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4eadef&&_0x3e15a2['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4eadef&&_0x3e15a2['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4eadef&&_0x3e15a2['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4eadef&&_0x3e15a2['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4eadef&&_0x3e15a2['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4eadef&&_0x3e15a2['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x4eadef&&_0x3e15a2['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x4eadef&&_0x3e15a2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x3a89a7){const _0x476a4e=this['editor'],_0x5a8d9b=new _0x3a89a7(_0x476a4e['locale']),_0x2cb1fe=_0x476a4e['commands']['get']('addCommentThread');return _0x5a8d9b['set']({'label':S(_0x476a4e['locale'],'Comment'),'icon':xt}),_0x5a8d9b['bind']('isEnabled')['to'](_0x2cb1fe),this['listenTo'](_0x5a8d9b,'execute',()=>_0x2cb1fe['execute']()),_0x5a8d9b;}}class s extends _0x997b8b{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x5b0c5e){super(_0x5b0c5e),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2fbec5,_0x44545a,_0x3c202a)=>{_0x3c202a?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0xaa1248,_0x4ea1b7]of this['editor']['commands'])_0x4ea1b7['affectsData']&&'addCommentThread'!==_0xaa1248&&_0x4ea1b7['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x1710ba=this['editor']['editing']['view']['document'];this['listenTo'](_0x1710ba,'cut',_0x5e0bc4=>_0x5e0bc4['stop'](),{'priority':'highest'}),this['listenTo'](_0x1710ba,'clipboardInput',_0x21a13b=>_0x21a13b['stop'](),{'priority':'highest'}),this['listenTo'](_0x1710ba,'delete',_0x18dbaa=>_0x18dbaa['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0xb2db74,_0x21bd5d]of this['editor']['commands'])_0x21bd5d['affectsData']&&'addCommentThread'!==_0xb2db74&&_0x21bd5d['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x4a32ff{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16d1c4){super(_0x16d1c4),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x5697b3=this['context']['plugins']['get'](N);this['listenTo'](_0x5697b3,'_activateAnnotation',(_0xcd4a8f,_0x23b8f8)=>{for(const _0x5eae7f of this['activeUIs']){const _0xa8203f=this['_uis']['get'](_0x5eae7f);(0x0,this['_uisData']['get'](_0x5eae7f)['filter'])(_0x23b8f8)&&_0xa8203f['setActiveAnnotation'](_0x23b8f8);}}),this['listenTo'](_0x5697b3,'_deactivateAllAnnotations',()=>{for(const _0x1ee700 of this['activeUIs']){this['_uis']['get'](_0x1ee700)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5697b3['_visibleAnnotations'],'add',(_0x591599,_0x270126)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x270126);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x22361f){return this['activeUIs']['has'](_0x22361f);}['activate'](_0x351a76,_0x2338af=()=>!0x0){const _0x535452=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x351a76))throw new _0x3e0d86('annotationsuis-missing-ui',this,{'uiName':_0x351a76});this['isActive'](_0x351a76)&&this['deactivate'](_0x351a76),this['activeUIs']['add'](_0x351a76);const _0xc002df=new x();!function({source:_0x185b66,target:_0x4dd014,filter:_0x5295c5}){for(const _0x5a5ecb of _0x185b66)_0x5295c5(_0x5a5ecb)&&_0x4dd014['add'](_0x5a5ecb);_0x4dd014['listenTo'](_0x185b66,'add',(_0x25e6f9,_0x1cc54d)=>{_0x5295c5(_0x1cc54d)&&_0x4dd014['add'](_0x1cc54d);}),_0x4dd014['listenTo'](_0x185b66,'remove',(_0x472276,_0x3811e2)=>{_0x4dd014['has'](_0x3811e2)&&_0x4dd014['remove'](_0x3811e2);});}({'source':_0x535452['_visibleAnnotations'],'target':_0xc002df,'filter':_0x2338af}),this['_uisData']['set'](_0x351a76,{'collection':_0xc002df,'filter':_0x2338af});const _0x2cde23=this['_uis']['get'](_0x351a76);_0x2cde23['attach'](_0xc002df),this['listenTo'](_0x2cde23,'change:activeAnnotation',(_0x55eb73,_0x5eca39,_0x9ecd60,_0x3a2d11)=>{_0x3a2d11&&_0x535452['_removeActiveAnnotation'](_0x3a2d11),_0x9ecd60&&_0x535452['_addActiveAnnotation'](_0x9ecd60);});}['deactivate'](_0x544773){if(this['activeUIs']['delete'](_0x544773),!this['_uis']['has'](_0x544773))throw new _0x3e0d86('annotationsuis-missing-ui',this,{'uiName':_0x544773});const _0x35b407=this['_uis']['get'](_0x544773);_0x35b407['detach'](),this['stopListening'](_0x35b407),this['_uisData']['get'](_0x544773)['collection']['destroy'](),this['_uisData']['delete'](_0x544773);}['switchTo'](_0x4a5c21){if(!this['_uis']['has'](_0x4a5c21))throw new _0x3e0d86('annotationsuis-missing-ui',this,{'uiName':_0x4a5c21});const _0x9d595a=this['context']['plugins']['get'](N),_0x43fc1f=Array['from'](_0x9d595a['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4a5c21);const _0x56c540=this['_uis']['get'](_0x4a5c21);_0x56c540['setActiveAnnotation'](_0x43fc1f),_0x56c540['_setSelectedAnnotations']&&_0x43fc1f&&_0x56c540['_setSelectedAnnotations']([_0x43fc1f]);}['deactivateAll'](){for(const _0x361088 of this['activeUIs'])this['deactivate'](_0x361088);}['register'](_0x28e379,_0x51bf16){if(this['_uis']['has'](_0x28e379))throw new _0x3e0d86('annotationsuis-register-already-registered');if('function'!=typeof _0x51bf16['attach']||'function'!=typeof _0x51bf16['detach']||'function'!=typeof _0x51bf16['setActiveAnnotation'])throw new _0x3e0d86('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x28e379,_0x51bf16);}['refilterAnnotations'](){const _0x128734=this['context']['plugins']['get'](N)['collection'],_0x8cd02e=new Map(),_0x36478f=Array['from'](this['activeUIs']);for(const _0x10e734 of this['activeUIs']){const _0x38cf2e=this['_uisData']['get'](_0x10e734)['collection'];for(const _0x4365a6 of _0x38cf2e)_0x8cd02e['set'](_0x4365a6,_0x10e734);}for(const _0x2d24b0 of _0x128734){const _0x3bc6a1=_0x8cd02e['get'](_0x2d24b0);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2d24b0);const _0x243547=_0x36478f['find'](_0x45e926=>this['_uisData']['get'](_0x45e926)['filter'](_0x2d24b0));_0x3bc6a1!==_0x243547&&(_0x3bc6a1&&this['_uisData']['get'](_0x3bc6a1)['collection']['remove'](_0x2d24b0),_0x243547&&this['_uisData']['get'](_0x243547)['collection']['add'](_0x2d24b0));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xcf73b2){const _0x3d872c=[];for(const _0xbf03fb of this['activeUIs']){(0x0,this['_uisData']['get'](_0xbf03fb)['filter'])(_0xcf73b2)&&_0x3d872c['push'](_0xbf03fb);}if(_0x3d872c['length']>0x1)throw new _0x3e0d86('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3d872c,'annotationType':_0xcf73b2['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x7a7c09){super(_0x7a7c09);const _0x53195e=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 _0x1a276b(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x53195e['to']('class')],'style':{'minHeight':_0x53195e['to']('minHeight',_0xb5c09c=>'number'==typeof _0xb5c09c?ae(_0xb5c09c+0xa):null)},'dir':_0x7a7c09['uiLanguageDirection'],'role':'application','aria-label':S(_0x7a7c09,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x7a7c09,'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',_0x590cc9=>{this['_updateItemPositionInFocusables'](_0x590cc9['source']);}),this['list']['forEach'](_0x571914=>{this['focusTracker']['add'](_0x571914['element']),this['_updateItemPositionInFocusables'](_0x571914);}),this['list']['on']('change',(_0x114895,_0x190483)=>{for(const _0x16b880 of _0x190483['removed'])this['focusTracker']['remove'](_0x16b880['element']),this['focusables']['remove'](_0x16b880);for(const _0x571ca4 of _0x190483['added'])this['focusTracker']['add'](_0x571ca4['element']),this['_updateItemPositionInFocusables'](_0x571ca4);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x315516){const _0x3cc1be=this['focusables']['getIndex'](_0x315516);let _0x519e4f,_0x2693d9;for(const _0x371474 of this['focusables'])if(_0x315516['top']<_0x371474['top']){_0x519e4f=_0x371474;break;}if(_0x2693d9=_0x519e4f?this['focusables']['getIndex'](_0x519e4f):this['focusables']['length'],-0x1!==_0x3cc1be){if(_0x3cc1be===_0x2693d9-0x1)return;this['focusables']['remove'](_0x315516),_0x2693d9=_0x519e4f?this['focusables']['getIndex'](_0x519e4f):this['focusables']['length'];}this['focusables']['add'](_0x315516,_0x2693d9);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x41b60d){super(_0x41b60d),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5a8215,_0x4c8073)=>_0x5a8215+_0x4c8073),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x4f0a83=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x4f0a83['to']('isAnimationDisabled',_0x1c689f=>_0x1c689f?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x4f0a83['to']('top',_0x6f1030=>qt(_0x6f1030))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x247c74=this['element']['clientHeight'];_0x247c74&&(this['height']=_0x247c74);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x4a32ff{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x581aaf){super(_0x581aaf),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 _0x528722=this['context']['config']['get']('sidebar.container');_0x528722&&this['setContainer'](_0x528722);}['setContainer'](_0x4784cd){if(!y(_0x4784cd))throw new _0x3e0d86('sidebar-setcontainer-invalid-element');this['container']=_0x4784cd;}['_attachToContainer']({viewClass:_0x220246='',spaceBetweenItems:_0x1f6386=0x19}={}){if(!y(this['container']))throw new _0x3e0d86('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x220246,this['_spaceBetweenItems']=_0x1f6386;}['rearrange']({removedAnnotation:_0x5491df,previousAnnotation:_0x50dcfe,nextAnnotation:_0x18b6c7}){const _0x245930=this['getSidebarItemView'](_0x5491df);this['view']['list']['remove'](_0x245930),this['_destroySidebarItemView'](_0x5491df),_0x50dcfe&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x50dcfe)),_0x18b6c7&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x18b6c7)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x5ca811,activatedAnnotation:_0xba3ee,disableAnimationOnActivatedAnnotation:_0xc402e6}){if(this['_activeAnnotation']=_0xba3ee,_0x5ca811){_0x5ca811['isActive']=!0x1;const _0x51e135=this['getSidebarItemView'](_0x5ca811);_0x51e135&&_0xc402e6&&(_0x51e135['isAnimationDisabled']=!0x1);}if(_0xba3ee){const _0x19597b=this['getSidebarItemView'](_0xba3ee);_0x19597b&&(_0xba3ee['isActive']=!0x0,_0xc402e6&&(_0x19597b['isAnimationDisabled']=!0x0,_0x19597b['top']+=0x1),this['_alignToTargetRect'](_0x19597b));}}['_detachFromContainer'](_0x21acf9){if(this['view']['element']['remove'](),_0x21acf9){for(const _0x33cb58 of _0x21acf9)this['_destroySidebarItemView'](_0x33cb58);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x1ab377,_0x1b35aa){_0x1b35aa||(_0x1b35aa=_0x1ab377['view']);const _0x383448=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x383448,_0x1ab377),this['_annotationToSidebarItemView']['set'](_0x1ab377,_0x383448),_0x383448['content']['add'](_0x1b35aa),this['listenTo'](_0x1ab377['view'],'change:targetRect',(_0xb3909c,_0x5415ab,_0x4ffc6d)=>{const _0x24e7e6=this['_getTargetTop'](_0x1ab377,_0x4ffc6d);_0x383448['_targetTop']!=_0x24e7e6&&(_0x383448['_targetTop']=_0x24e7e6,this['_setItemTop'](_0x383448,_0x24e7e6));}),this['listenTo'](_0x383448,'change:top',()=>{this['_recalculate'](_0x383448,'top');}),this['listenTo'](_0x383448,'change:bottom',()=>{this['_recalculate'](_0x383448,'bottom');}),this['_alignToTargetRect'](_0x383448);const _0x2be790=this['_getItemBefore'](_0x383448);if(_0x2be790)this['_alignAfterItem'](_0x2be790,_0x383448)||this['_alignToTargetRect'](_0x383448);else this['_alignToTargetRect'](_0x383448);return this['_updateLastItem'](),this['view']['list']['add'](_0x383448),_0x383448;}['_alignForTopChange'](_0x3527af){if(!_0x3527af['content']['length'])return;const _0x363c62=this['_getItemBefore'](_0x3527af);if(!_0x363c62)return;const _0x4b6e0d=this['_sidebarItemViewToAnnotation']['get'](_0x363c62),_0x153203=this['_activeAnnotation'];_0x153203&&_0x153203===_0x4b6e0d?this['_alignAfterItem'](_0x363c62,_0x3527af):this['_alignBeforeItem'](_0x3527af,_0x363c62);}['_alignForBottomChange'](_0x22018f){if(!_0x22018f['content']['length'])return;const _0x38a90e=this['_getItemAfter'](_0x22018f);if(!_0x38a90e)return;const _0x17cab6=this['_sidebarItemViewToAnnotation']['get'](_0x38a90e),_0x4905ac=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2bf60f=this['_activeAnnotation'];_0x2bf60f&&_0x2bf60f===_0x17cab6&&_0x4905ac?(this['_alignBeforeItem'](_0x38a90e,_0x22018f),this['_alignAfterItem'](_0x22018f,_0x38a90e)):_0x2bf60f&&_0x2bf60f===_0x17cab6?this['_alignBeforeItem'](_0x38a90e,_0x22018f):this['_alignAfterItem'](_0x22018f,_0x38a90e);}['_recalculate'](_0x1d1fdb,_0x59f541){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x289231,changedProp:_0x3b04c4}of this['_recalculateBuffer'])'top'===_0x3b04c4?this['_alignForTopChange'](_0x289231):this['_alignForBottomChange'](_0x289231);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x1d1fdb,'changedProp':_0x59f541});}['getSidebarItemView'](_0x576a19){return this['_annotationToSidebarItemView']['get'](_0x576a19);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x31f1d4){const _0x1294b6=this['getSidebarItemView'](_0x31f1d4);this['stopListening'](_0x1294b6),this['stopListening'](_0x31f1d4['view']),_0x1294b6['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x31f1d4),this['_sidebarItemViewToAnnotation']['delete'](_0x1294b6);}['_createSidebarView'](){const _0x3791e6=new V(this['context']['locale']);return _0x3791e6['render'](),this['on']('change:_lastItem',(_0x5e639b,_0x56e6ff,_0x2a4676,_0x3dba5b)=>{_0x3dba5b&&_0x3791e6['unbind']('minHeight'),_0x2a4676?_0x3791e6['bind']('minHeight')['to'](_0x2a4676,'bottom'):_0x3791e6['minHeight']=null;}),_0x3791e6;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x396110){const _0x5a2a4f=this['_sidebarItemViewToAnnotation']['get'](_0x396110),_0x4639ff=_0x5a2a4f&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5a2a4f)-0x1);return _0x4639ff&&this['getSidebarItemView'](_0x4639ff)||null;}['_getItemAfter'](_0x5915ed){const _0x230aed=this['_sidebarItemViewToAnnotation']['get'](_0x5915ed),_0x1b387a=_0x230aed&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x230aed)+0x1);return _0x1b387a&&this['getSidebarItemView'](_0x1b387a)||null;}['_alignBeforeItem'](_0x3d0b06,_0x291e71){_0x3d0b06['updateHeight']();const _0x439079=R(_0x291e71['bottom']+this['_spaceBetweenItems'],_0x3d0b06['top']);return!!_0x439079&&(this['_setItemTop'](_0x291e71,_0x291e71['top']-_0x439079),!0x0);}['_alignAfterItem'](_0x11bb39,_0x57641c){_0x11bb39['updateHeight']();const _0x52edde=R(_0x11bb39['bottom']+this['_spaceBetweenItems'],_0x57641c['top']);return!!_0x52edde&&(this['_setItemTop'](_0x57641c,_0x57641c['top']+_0x52edde,!0x1),!0x0);}['_alignToTargetRect'](_0x3631bf){const _0x1efd72=this['_sidebarItemViewToAnnotation']['get'](_0x3631bf);if(!_0x1efd72||!_0x1efd72['target']||!_0x1efd72['targetRect'])return;const _0x105fbf=this['_getTargetTop'](_0x1efd72,_0x1efd72['targetRect']);this['_setItemTop'](_0x3631bf,_0x105fbf);}['_getTargetTop'](_0x2f2044,_0x2e9b91){if(null===_0x2e9b91)return 0x0;if(_0x2f2044['target']instanceof _0x35cc55)return _0x2e9b91['top'];{const _0x5c533f=new _0x35cc55(this['view']['element'])['top'];return _0x2e9b91['top']-_0x5c533f;}}['_setItemTop'](_0x25c20b,_0x2fa25b,_0x15fea0=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x15fea0&&(_0x2fa25b=Math['max'](_0x2fa25b,this['_getMaxAvailableTop'](_0x25c20b))),_0x25c20b['top']=_0x2fa25b;}['_getMaxAvailableTop'](_0x2246b1){let _0x3df9f1=this['_getItemBefore'](_0x2246b1),_0x38682d=0x0;for(;_0x3df9f1;)_0x3df9f1['updateHeight'](),_0x38682d+=this['_spaceBetweenItems']+_0x3df9f1['height'],_0x3df9f1=this['_getItemBefore'](_0x3df9f1);return _0x38682d;}}function R(_0x3b2e27,_0x9ce371){return Math['max'](_0x3b2e27-_0x9ce371,0x0);}function y(_0x12190d){return null!==_0x12190d&&'object'==typeof _0x12190d&&0x1===_0x12190d['nodeType'];}class e extends _0x4a32ff{['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(_0x449648){super(_0x449648),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x430692(),this['_refreshPositioningDebounced']=_0x2d6425(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2c91ce=this['context']['plugins']['get'](M),_0x408305=this['context']['plugins']['get'](z);_0x2c91ce['register']('wideSidebar',this),_0x408305['container']&&_0x2c91ce['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x388dd9){if(_0x388dd9===this['activeAnnotation'])return;const _0x598a9c=this['context']['plugins']['get'](z);_0x598a9c['_activeAnnotation']=_0x388dd9;const _0x201bdd=this['activeAnnotation'];this['activeAnnotation']=_0x388dd9,_0x598a9c['refresh']({'blurredAnnotation':_0x201bdd,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x5b33d1){this['annotations']=_0x5b33d1;const _0x19e2f8=this['context']['plugins']['get'](z);if(_0x19e2f8['_annotations']=_0x5b33d1,this['isAttached'])throw new _0x3e0d86('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x19e2f8,'set:container',()=>{this['detach'](),this['listenTo'](_0x19e2f8,'change:container',_0x5f110d=>{_0x5f110d['off'](),this['attach'](_0x5b33d1);});}),_0x19e2f8['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x1e45eb=_0x65b863=>{_0x65b863['updateTargetRect'](),_0x19e2f8['addAnnotation'](_0x65b863);};for(const _0x12da37 of _0x5b33d1)_0x1e45eb(_0x12da37);this['listenTo'](_0x5b33d1,'add',(_0x4ac9ba,_0x5e1923)=>{_0x1e45eb(_0x5e1923);}),this['listenTo'](_0x5b33d1,'remove',(_0x501585,_0x33a9c5,_0x4b67fc)=>{_0x19e2f8['rearrange']({'removedAnnotation':_0x33a9c5,'previousAnnotation':_0x5b33d1['get'](_0x4b67fc-0x1),'nextAnnotation':_0x5b33d1['get'](_0x4b67fc+0x1)}),_0x33a9c5===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5b33d1,'focus',(_0x15a15f,_0x38ef7c)=>{this['setActiveAnnotation'](_0x38ef7c);}),this['listenTo'](_0x5b33d1,'blur',()=>{this['setActiveAnnotation'](null);});const _0x154523=this['context']instanceof _0x486c4f?this['context']['editors']:new _0x430692([this['context']]);for(const _0x32b01a of _0x154523)this['_integrateWithEditorAnnotations'](_0x32b01a);this['listenTo'](_0x154523,'add',(_0x4dc25a,_0x1542f5)=>{this['listenTo'](_0x1542f5,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1542f5);});}),this['listenTo'](_0x154523,'remove',(_0x548d20,_0x576238)=>{_0x576238['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x576238['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3e0d86('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x493434=this['context']['plugins']['get'](z);_0x493434['_detachFromContainer'](this['annotations']),this['stopListening'](_0x493434),this['stopListening'](this['annotations']),this['context']instanceof _0x486c4f&&this['stopListening'](this['context']['editors']);for(const _0x3ed78c of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3ed78c);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x46e739){if(!_0x46e739['plugins']['has']('EditorAnnotations'))return;const _0x2c3783=_0x46e739['plugins']['get']('EditorAnnotations'),_0x23863e=()=>{const _0x58191a=_0x2c3783['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x58191a[0x0]||null);};this['listenTo'](_0x2c3783,'refresh',_0x23863e),this['listenTo'](_0x2c3783,'blur',(_0x2afdc8,{isAnnotationTracked:_0xe5793b})=>{this['activeAnnotation']&&_0xe5793b(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2c3783,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x4ccf84=>{_0x2c3783['hasDomSelection']()&&(_0x23863e(),_0x4ccf84['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2c3783);}['_destroyEditorAnnotationsIntegration'](_0xdc2969){this['stopListening'](_0xdc2969),this['_editorAnnotations']['remove'](_0xdc2969);}}class D extends _0x2a3273{['counterView'];constructor(_0xf29967){super(_0xf29967);const _0x3538d2=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0xe79ac8,_0x4bf95d)=>_0xe79ac8?'...':_0x4bf95d['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x3538d2['to']('annotationType',_0x486af2=>'ck-annotation-counter__badge--'+_0x486af2),_0x3538d2['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3538d2['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x4a32ff{['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(_0xa94574){super(_0xa94574),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x143092),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x430692(),this['_refreshPositioningDebounced']=_0x2d6425(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x2601a1(this['context']['locale']),this['balloonPanelView']=new _0x4118b7(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x5bebc2){this['annotations']=_0x5bebc2;const _0x5fc4fb=this['context']['plugins']['get'](z),_0x1b5de5=this['balloonPanelView'];if(_0x5fc4fb['_annotations']=_0x5bebc2,this['isAttached'])throw new _0x3e0d86('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5fc4fb,'set:container',()=>{this['detach'](),this['listenTo'](_0x5fc4fb,'change:container',_0x35dd6c=>{_0x35dd6c['off'](),this['attach'](_0x5bebc2);});}),_0x5fc4fb['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x594d54=_0x425c19=>{const _0x12bf50=new D(this['context']['locale']);_0x5fc4fb['addAnnotation'](_0x425c19,_0x12bf50),this['_annotationToNarrowView']['set'](_0x425c19,_0x12bf50),_0x12bf50['bind']('isDirty','annotationType','number')['to'](_0x425c19['view'],'isDirty','type','length'),_0x12bf50['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1b5de5['content']['first']!==_0x425c19['view']?(this['_showBalloon'](_0x425c19),_0x425c19['view']['element']['focus'](),this['setActiveAnnotation'](_0x425c19)):this['setActiveAnnotation'](null);});};for(const _0x12336d of _0x5bebc2)_0x594d54(_0x12336d);this['listenTo'](_0x5bebc2,'add',(_0x16b314,_0x220a06)=>{_0x594d54(_0x220a06);}),this['listenTo'](_0x5bebc2,'remove',(_0x1f9cda,_0x3eb55b,_0x2c2761)=>{this['_annotationToNarrowView']['get'](_0x3eb55b)['destroy'](),this['_annotationToNarrowView']['delete'](_0x3eb55b),_0x5fc4fb['rearrange']({'removedAnnotation':_0x3eb55b,'previousAnnotation':_0x5bebc2['get'](_0x2c2761-0x1),'nextAnnotation':_0x5bebc2['get'](_0x2c2761+0x1)}),_0x3eb55b===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5bebc2,'focus',(_0x356a37,_0xcabc95)=>{this['setActiveAnnotation'](_0xcabc95);}),this['listenTo'](_0x5bebc2,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x459e1d,_0xcb7879)=>{_0xcb7879['keyCode']===_0xd5a4f4['esc']&&_0x1b5de5['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1b5de5['content']['first']),this['_hideBalloon'](),_0xcb7879['stopPropagation'](),_0xcb7879['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1f8bea,_0x44c1d1)=>{const _0x293371=_0x44c1d1['target'];_0x1b5de5['isVisible']&&_0x1b5de5['element']['contains'](_0x293371)||_0x5fc4fb['view']['element']['contains'](_0x293371)||_0x1f8bea['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x5154ee=>_0x5154ee['contains'](_0x293371))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x141232=this['context']instanceof _0x486c4f?this['context']['editors']:new _0x430692([this['context']]);for(const _0x46c656 of _0x141232)this['_integrateWithEditorAnnotations'](_0x46c656);this['listenTo'](_0x141232,'add',(_0x467371,_0x1e5e7b)=>{this['listenTo'](_0x1e5e7b,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1e5e7b);});}),this['listenTo'](_0x141232,'remove',(_0x112764,_0x45435d)=>{_0x45435d['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x45435d['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1ec337){if(_0x1ec337===this['activeAnnotation'])return;const _0x976f3a=this['context']['plugins']['get'](z);if(_0x976f3a['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1ec337,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1ec337)_0x976f3a['getSidebarItemView'](_0x1ec337)?this['_showBalloon'](_0x1ec337):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x1ec337;}['detach'](){if(!this['isAttached'])throw new _0x3e0d86('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3852b7=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x277b11=>_0x277b11['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3852b7['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x486c4f&&this['stopListening'](this['context']['editors']);for(const _0x56c2fd of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x56c2fd);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'](_0x28c855){if(!_0x28c855['plugins']['has']('EditorAnnotations'))return;const _0x336a13=_0x28c855['plugins']['get']('EditorAnnotations'),_0x58ec1c=this['context']['plugins']['get'](z),_0x4c6806=this['annotations'],_0x2651b4=this['balloonPanelView'],_0x3e5b0c=()=>{const _0xddda3c=_0x336a13['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0xddda3c),this['setActiveAnnotation'](_0xddda3c[0x0]||null);};this['listenTo'](_0x336a13,'refresh',_0x3e5b0c),this['listenTo'](_0x336a13,'blur',(_0x147334,{isAnnotationTracked:_0x2e7f2a})=>{this['activeAnnotation']&&_0x2e7f2a(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x336a13,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x4c6806,'blur',_0x20dcf4=>{_0x336a13['hasDomSelection']()&&_0x20dcf4['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x2496cb,_0x493f3a)=>{const _0x30fa7b=_0x493f3a['target'];_0x2651b4['isVisible']&&_0x2651b4['element']['contains'](_0x30fa7b)||_0x58ec1c['view']['element']['contains'](_0x30fa7b)||this['activeAnnotation']&&_0x336a13['hasDomSelection']()&&(_0x3e5b0c(),_0x2496cb['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x336a13);}['_destroyEditorAnnotationsIntegration'](_0x5c904b){_0x5c904b&&(this['stopListening'](_0x5c904b),this['_editorAnnotations']['remove'](_0x5c904b));}['_setSelectedAnnotations'](_0x187105){for(const _0x534118 of this['_selectedAnnotations'])_0x187105['includes'](_0x534118)||this['_manuallyClosedAnnotationViews']['delete'](_0x534118['view']);this['_selectedAnnotations']=_0x187105;}['_refreshPositioning'](){const _0xec6d6b=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0xec6d6b['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x12661f){if(this['_manuallyClosedAnnotationViews']['has'](_0x12661f['view']))return;const _0x532fb8=this['balloonPanelView']['content']['first'];_0x532fb8!==_0x12661f['view']?(_0x532fb8&&this['_detachListeners'](_0x532fb8),this['_attachListeners'](_0x12661f['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x12661f['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x896775=this['balloonPanelView']['content']['first'],_0x38f14a=_0x896775&&this['annotations']['getByView'](_0x896775);if(!_0x38f14a||!this['_annotationToNarrowView']['has'](_0x38f14a))return;const _0x56fdb8=this['_annotationToNarrowView']['get'](_0x38f14a)['element'],_0x2542e8=(function(){const _0x5bb545=_0x4118b7['defaultPositions'];return[_0x5bb545['southArrowNorthEast'],_0x5bb545['northArrowSouthEast'],_0x5bb545['southArrowNorth'],_0x5bb545['northArrowSouth'],_0x5bb545['southArrowNorthWest'],_0x5bb545['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x56fdb8,'positions':_0x2542e8});}['_hideBalloon'](){const _0x425576=this['balloonPanelView'],_0x48355f=_0x425576['content']['first'];_0x48355f&&(this['_detachListeners'](_0x48355f),_0x425576['unpin'](),_0x425576['content']['clear']());}['_attachListeners'](_0x113922){this['listenTo'](_0x113922,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x113922,'Esc',(_0x4245a7,_0x293497)=>{this['_manuallyClosedAnnotationViews']['add'](_0x113922),this['_hideBalloon'](),_0x293497();});}['_detachListeners'](_0x504141){this['stopListening'](_0x504141);}}class c extends _0x997b8b{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x2de981,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x378b92){super(_0x378b92),_0x378b92['editing']['view']['addObserver'](_0x41ceec),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x378b92['plugins']['get'](_0x2de981),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x2f5984=this['editor']['plugins']['get'](M);_0x2f5984['context']===this['editor']&&(_0x2f5984['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x233af7,_0x117034)=>{const _0x1ddc93=this['_balloon'];if(this['isAttached']&&_0x1ddc93['visibleView']){const _0x3a0a03=this['annotations']['getByView'](_0x1ddc93['visibleView']);_0x3a0a03&&this['_closeAnnotation'](_0x3a0a03),_0x117034();}}));}['afterInit'](){const _0xde6c07=this['editor']['plugins']['get'](M);_0xde6c07['context']===this['editor']&&(_0xde6c07['hasActive']()||_0xde6c07['switchTo']('inline'));}['setActiveAnnotation'](_0x166f64){_0x166f64!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x166f64&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x166f64)&&this['_addAnnotationToBalloon'](_0x166f64,!0x0),_0x166f64['isActive']=!0x0),_0x166f64||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x166f64);}['attach'](_0x2b9467){this['annotations']=_0x2b9467;const _0x8f2ace=this['editor']['plugins']['get'](M),_0x4047f3=this['_balloon'];if(this['isAttached'])throw new _0x3e0d86('inlineannotations-attach-already-attached',this);if(_0x8f2ace['context']!==this['editor'])throw new _0x3e0d86('inlineannotations-not-allowed-with-context',this);const _0x506d4a=this['editor']['plugins']['get'](P);this['listenTo'](_0x506d4a,'refresh',()=>{const _0x5193ce=_0x506d4a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x55ab6d,_0x1d0e70;!this['_forceRefresh']&&(_0x55ab6d=_0x5193ce,_0x1d0e70=this['_selectedAnnotations'],_0x55ab6d['length']===_0x1d0e70['length']&&_0x55ab6d['every'](_0x2e3f29=>_0x1d0e70['includes'](_0x2e3f29)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x5193ce),this['setActiveAnnotation'](_0x5193ce[0x0]||null));}),this['listenTo'](_0x506d4a,'blur',(_0x557f81,{isAnnotationTracked:_0x273a5d})=>{this['activeAnnotation']&&_0x273a5d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x410b70,_0x401b6e,_0x43e370)=>{_0x43e370||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2b9467,'remove',(_0x459eef,_0x316480)=>{this['_removeAnnotationFromBalloon'](_0x316480),_0x316480===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4047f3,'change:visibleView',(_0x3fc2da,_0x2105e5,_0x1b14aa,_0x508490)=>{_0x508490&&this['stopListening'](_0x508490);const _0x55084f=_0x2b9467['getByView'](_0x1b14aa);_0x1b14aa&&_0x55084f&&(this['listenTo'](_0x1b14aa,'change:height',()=>{_0x4047f3['updatePosition']();}),this['listenTo'](_0x1b14aa,'Esc',()=>{this['_closeAnnotation'](_0x55084f),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x55084f&&this['setActiveAnnotation'](_0x55084f));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4047f3['visibleView']&&(_0x2b9467['getByView'](_0x4047f3['visibleView'])&&_0x4047f3['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 _0x3e0d86('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x55ff14 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x55ff14);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x5aa5ef){for(const _0x45155d of this['_selectedAnnotations'])_0x5aa5ef['includes'](_0x45155d)||this['_manuallyClosed']['delete'](_0x45155d);for(const _0x46b91d of this['annotations'])_0x5aa5ef['includes'](_0x46b91d)||this['_removeAnnotationFromBalloon'](_0x46b91d);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x31ce0d of _0x5aa5ef)this['_addAnnotationToBalloon'](_0x31ce0d);}this['_selectedAnnotations']=_0x5aa5ef;}['_addAnnotationToBalloon'](_0x5401dd,_0x2c30c4=!0x1){this['_manuallyClosed']['has'](_0x5401dd)||(this['_addedAnnotations']['has'](_0x5401dd)||this['_balloon']['hasView'](_0x5401dd['view'])||(this['_addedAnnotations']['add'](_0x5401dd),this['_balloon']['add']({'stackId':_0x5401dd['view']['id'],'view':_0x5401dd['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5401dd)}})),_0x2c30c4&&this['_balloon']['showStack'](_0x5401dd['view']['id']));}['_getBalloonTargetForAnnotation'](_0x54b523){const _0x29061b=_0x54b523['target'],_0x721b73=this['editor']['editing']['view'],_0x20e780=_0x721b73['document']['selection']['getFirstRange'](),_0x1c9ad5=_0x721b73['domConverter']['viewRangeToDom'](_0x20e780);if(_0x1c9ad5['collapse'](!0x0),_0x29061b){if(_0x29061b instanceof _0x35cc55)return _0x29061b;let _0x51df7c=[];for(const _0x258c3d of _0x29061b)_0x51df7c['push'](...(_0x2d8c2a=_0x258c3d['getClientRects'](),Array['from'](_0x2d8c2a)['map'](DOMRect['fromRect'])));_0x51df7c=function(_0x51564c){const _0x3f48b6=[];let _0x3c5db3=_0x51564c[0x0];for(let _0x56b362=0x1;_0x56b362<_0x51564c['length'];_0x56b362++)b(_0x3c5db3,_0x51564c[_0x56b362])?_0x3c5db3['width']+=_0x51564c[_0x56b362]['width']:(_0x3f48b6['push'](_0x3c5db3),_0x3c5db3=_0x51564c[_0x56b362]);return _0x3f48b6['push'](_0x3c5db3),_0x3f48b6;}(_0x51df7c);const _0x2b3b5b=_0x1c9ad5['getBoundingClientRect']();return _0x51df7c['find'](_0x59752f=>_0x59752f['top']<=_0x2b3b5b['top']&&_0x59752f['bottom']>=_0x2b3b5b['bottom']&&_0x59752f['left']<=_0x2b3b5b['left']&&_0x59752f['right']>=_0x2b3b5b['right'])||_0x51df7c[0x0];}var _0x2d8c2a;return _0x54b523['targetRect']||_0x1c9ad5;}['_removeAnnotationFromBalloon'](_0xc5a2d){this['_addedAnnotations']['has'](_0xc5a2d)&&this['_balloon']['hasView'](_0xc5a2d['view'])&&(this['_addedAnnotations']['delete'](_0xc5a2d),this['_balloon']['remove'](_0xc5a2d['view']));}['_closeAnnotation'](_0x3a8d29){this['_manuallyClosed']['add'](_0x3a8d29),this['_removeAnnotationFromBalloon'](_0x3a8d29);}}function b(_0x2cc067,_0x32b114){return _0x2cc067['top']===_0x32b114['top']&&_0x2cc067['bottom']===_0x32b114['bottom']&&_0x2cc067['right']===_0x32b114['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x12549e,_0x3b023c){super(_0x12549e),this['set']('isEmpty',!_0x3b023c['length']),this['focusTracker']=new _0x1a276b(),this['_annotationViews']=_0x3b023c,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x3b023c,'focusTracker':this['focusTracker']}),this['listenTo'](_0x3b023c,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x3b023c,'remove',(_0xf5c0f2,_0x4cefc8)=>{_0x4cefc8['isActive']&&this['focus'](),_0x3b023c['length']||(this['isEmpty']=!0x0);});const _0x5cf834=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x12549e,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x3b023c},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x5cf834['if']('isEmpty','ck-hidden',_0x434300=>!_0x434300)]},'children':[{'text':S(_0x12549e,'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 _0x2c9658 of this['_annotationViews'])this['focusTracker']['add'](_0x2c9658['element']);this['_annotationViews']['on']('change',(_0x758e24,{added:_0x139dd9,removed:_0x5778cb})=>{for(const _0xa60510 of _0x139dd9)this['focusTracker']['add'](_0xa60510['element']);for(const _0x288641 of _0x5778cb)this['focusTracker']['remove'](_0x288641['element']);});}}class f extends _0x4a32ff{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x430328){super(_0x430328),this['archivedThreads']=new _0x430692();}['init'](){const _0x1fbf36=this['context'],_0x1cb170=_0x1fbf36['plugins']['get'](o),_0x2f58f3=_0x1fbf36['plugins']['get'](N);this['listenTo'](_0x1cb170,'addCommentThread',(_0x1f7c9f,{threadId:_0x5181ad})=>{const _0x18bb8b=_0x1cb170['getCommentThread'](_0x5181ad);_0x18bb8b['archivedAt']&&this['archivedThreads']['add'](_0x18bb8b,this['_calculatePosition'](_0x18bb8b['archivedAt'])),this['listenTo'](_0x18bb8b,'change:archivedAt',(_0xe9396a,_0x3fafeb,_0x2dad63)=>{_0x2dad63?this['archivedThreads']['has'](_0x18bb8b)||this['archivedThreads']['add'](_0x18bb8b,this['_calculatePosition'](_0x18bb8b['archivedAt'])):this['archivedThreads']['has'](_0x18bb8b)&&this['archivedThreads']['remove'](_0x18bb8b);});}),this['listenTo'](_0x1cb170,'removeCommentThread',(_0x1586a3,{threadId:_0x50eb0a})=>{const _0x58173e=_0x1cb170['getCommentThread'](_0x50eb0a);this['stopListening'](_0x58173e),this['archivedThreads']['has'](_0x58173e)&&this['archivedThreads']['remove'](_0x58173e);},{'priority':'highest'}),this['listenTo'](_0x2f58f3['collection'],'focus',(_0x55d4c9,_0x300fd7)=>{_0x300fd7['isVisible']||(_0x300fd7['isActive']=!0x0,_0x2f58f3['activate'](_0x300fd7));});}['_calculatePosition'](_0xafcb61){const _0x150921=[...this['archivedThreads']]['findIndex'](_0x5c5655=>_0x5c5655['archivedAt']<_0xafcb61);return _0x150921>-0x1?_0x150921:this['archivedThreads']['length'];}}class a extends _0x997b8b{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x2a2ba4];}constructor(_0x576e2e){super(_0x576e2e),this['annotationViews']=new _0x2e2f29(),this['_pendingThreads']=[];}['init'](){const _0x5afe13=this['editor'],_0x31072e=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x5afe13['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x2a3273,!0x0)),_0x5afe13['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2e4508=this['_createCommentsArchiveButton'](_0x276496);return _0x2e4508['set']({'role':'menuitemcheckbox'}),_0x2e4508;});const _0x4e7f52=_0x5afe13['plugins']['get'](f),_0x8d7b37=_0x5afe13['plugins']['get']('Annotations'),_0xbd9162=_0x5afe13['plugins']['get']('CommentsRepository');this['listenTo'](_0x4e7f52['archivedThreads'],'add',(_0x5342be,_0x5d5133)=>{const _0x466815=_0x5afe13['config']['get']('collaboration.channelId');if(!_0x466815||_0x5d5133['channelId']===_0x466815){const _0x483d4f=_0xbd9162['_threadToController']['get'](_0x5d5133);if(!_0x483d4f)return void this['_pendingThreads']['push'](_0x5d5133);const _0x24b1d1=this['_calculatePosition'](_0x5d5133['archivedAt']),_0x5a228b=_0x8d7b37['getByInnerView'](_0x483d4f['view']);_0x5a228b['isVisible']&&_0x8d7b37['_visibleAnnotations']['remove'](_0x5a228b),this['annotationViews']['add'](_0x5a228b['view'],_0x24b1d1);}}),this['listenTo'](_0x8d7b37['collection'],'add',(_0x3c3d5e,_0x13cdff)=>{const _0xa51b8c=this['_pendingThreads']['find'](_0x357f82=>{const _0x30f852=_0xbd9162['_threadToController']['get'](_0x357f82);return _0x30f852&&_0x13cdff['innerView']===_0x30f852['view'];});if(_0xa51b8c){const _0x5c27e0=this['_calculatePosition'](_0xa51b8c['archivedAt']);this['annotationViews']['add'](_0x13cdff['view'],_0x5c27e0),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xa51b8c),0x1);}}),this['listenTo'](_0x4e7f52['archivedThreads'],'remove',(_0x1f6f09,_0x3ff206)=>{const _0x1e6cff=_0x5afe13['config']['get']('collaboration.channelId');if(!_0x1e6cff||_0x3ff206['channelId']===_0x1e6cff){const _0x46b832=_0xbd9162['_threadToController']['get'](_0x3ff206),_0x50fc0f=_0x8d7b37['getByInnerView'](_0x46b832['view']);this['annotationViews']['remove'](_0x50fc0f['view']),this['stopListening'](_0x50fc0f['focusableElements']);}}),this['listenTo'](_0x8d7b37['collection'],'add',(_0x28cf27,_0x592808)=>{this['listenTo'](_0x592808,'escape',_0x31072e);}),this['listenTo'](_0x8d7b37['collection'],'remove',(_0x39aa7d,_0x2e0514)=>{this['stopListening'](_0x2e0514,'escape',_0x31072e);});}['_calculatePosition'](_0x5aaa6b){const _0x3341c7=this['editor']['config']['get']('collaboration.channelId'),_0x45fce1=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x4dd458=>_0x4dd458['channelId']===_0x3341c7)['findIndex'](_0x5cbc4c=>_0x5cbc4c['archivedAt']<_0x5aaa6b);return _0x45fce1<0x0||_0x45fce1>this['annotationViews']['length']?this['annotationViews']['length']:_0x45fce1-0x1;}['_toggleDialog'](){const _0x45d05a=this['editor'],_0x25df22=_0x45d05a['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x45d05a['locale'],this['annotationViews'])),'commentsArchive'===_0x25df22['id']?_0x25df22['hide']():_0x25df22['show']({'id':'commentsArchive','title':S(_0x45d05a['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0xb56ab9['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x44df06,_0x19beed=!0x1){const _0x4274e6=this['editor']['locale'],_0x3de74=this['editor']['plugins']['get']('Dialog'),_0x35052c=new _0x44df06(_0x4274e6);return _0x35052c['bind']('isEnabled')['to'](this,'isEnabled'),_0x35052c['bind']('isOn')['to'](_0x3de74,'id',_0x398da7=>'commentsArchive'===_0x398da7),_0x35052c['set']({'label':S(_0x4274e6,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x19beed&&(_0x35052c['tooltip']=!0x0),this['listenTo'](_0x35052c,'execute',()=>this['_toggleDialog']()),_0x35052c;}['_hideDialogOnAnnotationEscape']=_0x21fddd=>{const _0x3bda7=_0x21fddd['source'];if(!this['annotationViews']['has'](_0x3bda7['view']))return;const _0x2f17d4=this['editor']['plugins']['get']('Dialog');_0x2f17d4['isOpen']&&'commentsArchive'===_0x2f17d4['id']&&(_0x2f17d4['hide'](),_0x21fddd['stop']());};}class p extends _0x997b8b{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,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};