@ckeditor/ckeditor5-comments 44.2.0-alpha.11 → 44.2.0-alpha.13
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.
- package/build/comments.js +1 -1
- package/dist/index.js +9 -9
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +17 -17
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/integrations/showcommenthighlights.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +1 -1
- 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
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
((()=>Rt)());constructor(_0x29a2f8={}){function _0x54b56e(_0x37c31e){return _0x37c31e['map'](_0x11fccb=>String['fromCharCode'](_0x11fccb))['join']('');}(_0x29a2f8=Object['assign']({},_0x29a2f8))['plugins']||(_0x29a2f8['plugins']=Ut['defaultPlugins']),super(_0x29a2f8),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[_0x54b56e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b56e([0x76,0x69,0x65,0x77])][_0x54b56e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54b56e([0x61,0x75,0x74,0x6f]),this[_0x54b56e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x54b56e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54b56e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x54b56e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x54b56e([0x6f,0x6b])});}['create'](){const _0xf87a4e=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xf87a4e))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x14b655=>{const _0x23bcb7=this['model']['document']['getRoot'](),_0x5d3095=_0x23bcb7&&_0x23bcb7['getChild'](_0x23bcb7['childCount']-0x1);_0x14b655['setSelection'](_0x5d3095,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0xa95192=this['editing']['view'],_0x27562e=_0xa95192['document']['getRoot'](),_0x1e0075=_0x27562e['getChild'](0x0);_0x27562e['childCount']>0x1||!_0x1e0075||'p'!=_0x1e0075['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0xa95192,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x1e0075['placeholder']=this['placeholder']),St({'view':_0xa95192,'element':_0x1e0075,'keepOnFocus':!0x0}),this['placeholderElement']=_0x1e0075);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x58617a,_0x2d4142={}){super(_0x58617a),this['editor']=null,this['_editorConfig']=_0x2d4142,this['set']('value',_0x2d4142['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x58617a,'Reply...')),this['set']('submitLabel',S(_0x58617a,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x3df93e(),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',(_0x4f33a1,_0x517e31)=>{this['cancelButtonView']['fire']('execute'),_0x517e31();}),this['keystrokes']['set']('Ctrl+Enter',(_0x2e62c0,_0x56cb06)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x56cb06());}),this['on']('submit',(_0x3b8993,_0x30079b)=>{_0x30079b['length']>0xfde8?(alert(S(_0x58617a,'TOO_LONG_COMMENT_ALERT',[_0x30079b['length'],0xfde8])),_0x3b8993['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x668c97=this['editor'];this['element']['insertBefore'](_0x668c97['ui']['element'],this['element']['firstChild']),_0x668c97['model']['document']['on']('change',()=>this['value']=_0x668c97['getData']()),_0x668c97['bind']('placeholder')['to'](this),this['focusables']['add'](_0x668c97['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4b1d51){-0x1===_0x4b1d51?(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:_0x517f8d}=this,_0xf82b3a=new _0x4752b8(_0x517f8d);return _0xf82b3a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xf82b3a['withText']=!0x0,_0xf82b3a['bind']('label')['to'](this,'submitLabel'),_0xf82b3a['on']('execute',()=>{this['fire']('submit',this['value']);}),_0xf82b3a['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4e6951,_0x2f9353)=>!_0x2f9353&&!!_0x4e6951['trim']()),_0xf82b3a;}['_createCancelButton'](){const {locale:_0x53e754}=this,_0x4f0b92=new _0x4752b8(_0x53e754);return _0x4f0b92['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x4f0b92['label']=S(_0x53e754,'Cancel'),_0x4f0b92['withText']=!0x0,_0x4f0b92['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x4f0b92;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x1999cf=>{this['focusTracker']['add'](_0x1999cf['element']);}),this['focusables']['on']('change',(_0x21447e,_0x29b796)=>{for(const _0x12275a of Array['from'](_0x29b796['added'])['reverse']())this['focusTracker']['add'](_0x12275a['element']);});}}class ie extends kt{constructor(_0x2af3da,_0x2a677c,_0x21009a){super(_0x2af3da),this['commentInputView']=new os(_0x2af3da,_0x21009a),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x13d207,_0x3eadb9)=>_0x13d207||!!_0x3eadb9),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 _0x59b69d(_0x2af3da,_0x2a677c),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'](_0x58b4d7){this['commentInputView']['focus'](_0x58b4d7);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x37b889,_0x47ed8f)=>{const {submitButtonView:_0x5e511b,cancelButtonView:_0x3440e4,editor:_0x12141a}=this['commentInputView'];[_0x5e511b['element'],_0x3440e4['element'],_0x12141a?_0x12141a['editing']['view']['getDomRoot']():null]['filter'](_0x50cd19=>_0x50cd19)['some'](_0x4976b3=>_0x4976b3['contains'](_0x47ed8f['target']))||(this['focus'](),_0x47ed8f['preventDefault']());});}}class cs extends kt{constructor(_0x1d848e){super(_0x1d848e);const _0x36b3e2=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x36b3e2['to']('count',_0x439f0b=>S(_0x1d848e,'NUMBER_OF_COMMENTS',_0x439f0b))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5b96ed,_0x13d24e,_0x31343c){super(_0x5b96ed);const _0x2814d3=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x13d24e['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x13d24e,this['_config']=_0x31343c,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x3df93e(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5029e1=>this['commentViews']['map'](_0x57172c=>_0x57172c['element'])['includes'](_0x5029e1['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x5b96ed),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x140ae3=>_0x140ae3-this['_config']['maxCommentsWhenCollapsed']);for(const _0xe6aede of _0x13d24e['comments'])this['_handleNewCommentModel'](_0xe6aede);this['_handleInfoComment'](),this['listenTo'](_0x13d24e['comments'],'add',(_0x31af6d,_0x57023e)=>{const _0x1a6f9f=this['_calculatePosition'](_0x57023e);this['length']++,this['_handleNewCommentModel'](_0x57023e,_0x1a6f9f),this['refreshVisibleViews']();}),this['listenTo'](_0x13d24e['comments'],'remove',(_0x5f1bb1,_0x42b8bb)=>{this['length']--,this['_handleRemoveCommentModel'](_0x42b8bb),this['refreshVisibleViews']();}),this['listenTo'](_0x13d24e,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x13d24e,'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',_0x2814d3['if']('length','ck-hidden',_0x293f01=>!_0x293f01)],'aria-label':S(_0x5b96ed,'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'](_0x10c15e){-0x1===_0x10c15e?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x1120b9 of this['commentViews'])_0x1120b9['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x2479e5,_0x50e9d2){const _0x426554=new this['_config']['CommentView'](this['locale'],_0x2479e5,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x426554['viewUid']=_0x2479e5['id'],_0x426554['delegate']('removeComment')['to'](this),_0x426554['delegate']('updateComment')['to'](this),_0x426554['delegate']('resolveCommentThread')['to'](this),_0x426554['delegate']('editorReady')['to'](this),_0x426554['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x426554,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x426554,_0x50e9d2);}['_calculatePosition'](_0x1adfde){const _0x49a0be=this['_model']['_findOptimalIndex'](_0x1adfde);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x1adfde['authoredAt']?_0x49a0be-0x1:_0x49a0be:_0x49a0be-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3acde6={'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'],_0x3acde6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3acde6));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0xc190ca){const _0x16f0b6=this['commentViews']['remove'](_0xc190ca['id']);this['stopListening'](_0x16f0b6),_0x16f0b6['isEditMode']&&this['_updateHasDirtyComment'](),_0x16f0b6['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2e7e0c=>_0x2e7e0c['isEditMode']);}['_rearrangeCollapse'](){const _0x7a53d7=function(_0x4b17a9){const _0xa38b4c=new _0x37a79d();for(const _0x5ef34b of _0x4b17a9)_0xa38b4c['add'](_0x5ef34b);return _0xa38b4c;}(this['commentViews']),_0x495253=this['_collapsedCommentsView']['count'];for(let _0xde31f8=0x1;_0xde31f8<=_0x495253;_0xde31f8++)_0x7a53d7['remove'](0x1);for(const _0x28decb of _0x7a53d7)_0x28decb['collapse']();_0x495253>0x0&&_0x7a53d7['add'](this['_collapsedCommentsView'],0x1),as(_0xa1f073(Array['from'](this['visibleViews']),Array['from'](_0x7a53d7)),this['visibleViews'],_0x7a53d7);}['_rearrangeExpand'](){as(_0xa1f073(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x48f882 of this['visibleViews'])_0x48f882['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2d19b8=>{this['focusTracker']['add'](_0x2d19b8['element']),this['keystrokes']['listenTo'](_0x2d19b8['element']);}),this['commentViews']['on']('change',(_0x226fa2,_0x595780)=>{for(const _0x41b0f7 of _0x595780['removed'])this['focusTracker']['remove'](_0x41b0f7['element']),this['keystrokes']['stopListening'](_0x41b0f7['element']);for(const _0x18740c of Array['from'](_0x595780['added'])['reverse']())this['focusTracker']['add'](_0x18740c['element']),this['keystrokes']['listenTo'](_0x18740c['element']);});}}function as(_0x5d9651,_0x1ae433,_0x124496){let _0x51a9ac=0x0;for(const _0x2e8fc5 of _0x5d9651)switch(_0x2e8fc5){case'insert':_0x1ae433['add'](_0x124496['get'](_0x51a9ac),_0x51a9ac),_0x51a9ac++;break;case'delete':_0x1ae433['remove'](_0x51a9ac);break;case'equal':_0x51a9ac++;}}class ls extends kt{constructor(_0x1974d5){super(_0x1974d5);const _0x50529f=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x50529f['to']('contextValue',_0x2e8f0c=>S(_0x1974d5,'THREAD_CONTEXT_LABEL',_0x2e8f0c)),'tabindex':-0x1},'children':[{'text':_0x50529f['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xfb33b7,_0xc6ae20){super(_0xfb33b7);const _0x5490b4=this['bindTemplate'];this['_model']=_0xc6ae20,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x3df93e(),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',_0x547ceb=>!!_0x547ceb),this['bind']('contextValue')['to'](this['_model'],'context',_0x58b227=>_0x58b227&&_0x58b227['value']?this['_trimContextValue'](_0x58b227['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',_0x5490b4['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 _0x692914=new _0x4752b8(this['locale']);return _0x692914['label']=S(this['locale'],'Reopen'),_0x692914['tooltip']=S(this['locale'],'Reopen'),_0x692914['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>',_0x692914['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3fe680=>!_0x3fe680),_0x692914['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x54e07b,_0x5b96d0)=>_0x54e07b&&_0x5b96d0),_0x692914['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x692914;}['_trimContextValue'](_0x55b775){if(_0x55b775['length']<0x96)return _0x55b775;const _0x194cb7=_0x55b775['lastIndexOf']('\x20',0x93);return _0x55b775['substring'](0x0,_0x194cb7>-0x1?_0x194cb7:0x93)+'...';}['_attachContextActions'](){const _0xcfe16a=this['element']['querySelector']('.ck-context'),_0x5b6bd5=_0xcfe16a['querySelector']('.ck-context__value');this['listenTo'](_0xcfe16a,'mouseenter',()=>{_0x5b6bd5['offsetWidth']<_0x5b6bd5['scrollWidth']&&_0xcfe16a['classList']['add']('overlay');}),this['listenTo'](_0xcfe16a,'mouseleave',()=>{_0xcfe16a['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x6665df of this['focusables'])this['focusTracker']['add'](_0x6665df['element']),this['keystrokes']['listenTo'](_0x6665df['element']);}['_createContextView'](){const _0x5f5a09=new ls(this['locale']);return _0x5f5a09['bind']('contextValue')['to'](this),_0x5f5a09;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x8e1b12,_0x4ba530,_0x17c8a0,_0x14bdc9){super(_0x8e1b12),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4ba530,this['_localUser']=_0x17c8a0,this['_config']=_0x14bdc9,this['commentThreadHeaderView']=new Zt(_0x8e1b12,_0x4ba530),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x8e1b12,S(_0x8e1b12,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x8e1b12,_0x4ba530,Object['assign']({'CommentView':this['_config']['CommentView']},_0x14bdc9)),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',(_0x2d7e65,_0x39d45f)=>_0x2d7e65||!!_0x39d45f),this['bind']('isUnlinked')['to'](_0x4ba530,'unlinkedAt',_0x47c893=>!!_0x47c893),this['bind']('ariaLabel')['to'](this,'length',_0x4aad36=>{const _0x4a2a01=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x4aad36,_0x4a2a01]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x3df93e(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5ec6d3=>_0x5ec6d3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0xcfc7e1(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1a8a5d=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5927fb=_0x1a8a5d['commentInputView'];return _0x1a8a5d['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5927fb,'value',(_0x2cec16,_0x4376cd,_0xf61cdc,_0x237bf3,_0x3ea4f2)=>!!_0x3ea4f2||!!_0x237bf3&&_0xf61cdc&&!_0x4376cd||_0x2cec16&&_0xf61cdc&&!_0x4376cd),_0x5927fb['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x414cc7,_0x54622a,_0x17d8ea)=>{let _0x2474e3;return _0x2474e3=_0x17d8ea&&_0x54622a?'Reply\x20to\x20reopen\x20discussion...':_0x414cc7?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x2474e3);}),_0x5927fb['bind']('submitLabel')['to'](this,'length',_0x2a0669=>S(this['locale'],_0x2a0669?'Reply':'Comment')),_0x5927fb['on']('submit',(_0x4a20c6,_0x518bc5)=>{this['fire']('addComment',_0x518bc5),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5927fb['on']('cancel',()=>{this['focus']();}),_0x5927fb['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5927fb['on']('cancel',_0x5ba58e=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x5ba58e['stop']());}),this['on']('change:isActive',(_0x2a7e45,_0x33ee78,_0x4b52e2)=>{_0x4b52e2||this['length']||_0x5927fb['value']||this['fire']('removeCommentThread');}),_0x1a8a5d;}}class vt extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(
|
|
28
|
-
ti(rs){['actionBar'];['userView'];constructor(
|
|
29
|
-
_0x4e846b(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x5a47e6,target:_0x59fe62,type:_0x761741,isVisible:_0x57c6ba=!0x0}){super(),this['view']=_0x5a47e6,this['view']['element']||this['view']['render'](),this['_type']=_0x761741,this['_target']=_0x59fe62,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x37a79d([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x5afa8b,_0x27d589)=>{this['view']['focusTracker']['add'](_0x27d589);}),this['focusableElements']['on']('remove',(_0x1e8085,_0x176b50)=>{this['view']['focusTracker']['remove'](_0x176b50);}),this['set']('isVisible',_0x57c6ba);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3fb553=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x3fb553),_0x3fb553;}get['targetRect'](){const _0x461f56=this['target'];if(null===_0x461f56)return null;if(_0x461f56 instanceof _0xe31f70)return _0x461f56;const _0x1aa6da=_0x461f56['filter'](_0x5c75f0=>function(_0x10d72c){const _0x19b29f=_0x10d72c['offsetParent'];if(_0x19b29f)return!0x0;const _0x50ad38=_0x10d72c['getClientRects']()['item'](0x0);return!!_0x50ad38;}(_0x5c75f0));return 0x0===_0x1aa6da['length']?null:new _0xe31f70(_0x1aa6da[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x190000){this['view']['isActive']=_0x190000,this['view']['mainView']['isActive']=_0x190000;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x526b5f){if(!(null===_0x526b5f||_0x526b5f instanceof _0xe31f70||Array['isArray'](_0x526b5f)&&_0x526b5f['every'](_0x1f0850=>ne(_0x1f0850))))throw new _0x1d5645('annotation-invalid-target',null,{'target':_0x526b5f});}['_getNormalizedTarget'](){const _0x23a1af='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x23a1af)?[_0x23a1af]:_0x23a1af;}}function ne(_0x683863){return null!==_0x683863&&'object'==typeof _0x683863&&'nodeType'in _0x683863&&0x1===_0x683863['nodeType'];}class x extends _0x37a79d{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x3ff0ab=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x3df93e(),this['_focusTracker']['on']('change:isFocused',(_0x311d1c,_0x2e5a65,_0x7def3)=>{_0x7def3||this['fire']('blur');});for(const _0x1674b9 of _0x3ff0ab)this['add'](_0x1674b9);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x968f03){if(this['has'](_0x968f03))throw new _0x1d5645('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x968f03['innerView'],_0x968f03),this['_viewToAnnotation']['set'](_0x968f03['view'],_0x968f03);for(const _0x341153 of _0x968f03['focusableElements'])this['_focusTracker']['add'](_0x341153);this['listenTo'](_0x968f03['focusableElements'],'add',(_0x496cbb,_0x304b15)=>{this['_focusTracker']['add'](_0x304b15);}),this['listenTo'](_0x968f03['focusableElements'],'remove',(_0xc6440c,_0x5cf441)=>{this['_focusTracker']['remove'](_0x5cf441);}),this['listenTo'](_0x968f03['view']['focusTracker'],'change:isFocused',(_0x5f2ec5,_0x3a6418,_0x2e1a5a)=>{_0x2e1a5a&&this['fire']('focus',_0x968f03);}),_0x968f03['updateTargetRect']();const _0x10143d=this['_getOrderInContent'](_0x968f03['view']['targetRect']);return super['add'](_0x968f03,_0x10143d);}['remove'](_0xd0e39e){if(!this['has'](_0xd0e39e))throw new _0x1d5645('annotationcollection-not-existing-item',null);this['stopListening'](_0xd0e39e['view']['focusTracker']),this['stopListening'](_0xd0e39e['focusableElements']);for(const _0xba0145 of _0xd0e39e['focusableElements'])this['_focusTracker']['remove'](_0xba0145);return this['_viewToAnnotation']['delete'](_0xd0e39e['view']),this['_innerViewToAnnotation']['delete'](_0xd0e39e['innerView']),super['remove'](_0xd0e39e);}['getByInnerView'](_0x1db0b4){return this['_innerViewToAnnotation']['get'](_0x1db0b4);}['getByView'](_0x1cc450){return this['_viewToAnnotation']['get'](_0x1cc450);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x30809d of this)_0x30809d['updateTargetRect']();this['_sort']();}['_sort'](){const _0x516513=Array['from'](this)['sort']((_0xf2831b,_0x421c0b)=>v(_0xf2831b['view']['targetRect'],_0x421c0b['view']['targetRect']));for(let _0x313524=_0x516513['length']-0x1;_0x313524>0x0;_0x313524--){const _0x42c71a=_0x516513[_0x313524];_0x313524!==this['getIndex'](_0x42c71a)&&(this['remove'](_0x42c71a),this['add'](_0x42c71a));}}['_getOrderInContent'](_0x1c54b9){let _0x540ae7=0x0;if(!_0x1c54b9)return this['length'];for(const _0x3294e3 of this){const _0x5c3083=_0x3294e3['view']['targetRect'];if(_0x5c3083){if(v(_0x1c54b9,_0x5c3083)<0x0)return _0x540ae7;_0x540ae7++;}}return _0x540ae7;}}function v(_0x45978a,_0x52cf52){if(null===_0x45978a&&null===_0x52cf52)return 0x0;if(null===_0x45978a)return-0x1;if(null===_0x52cf52)return 0x1;const _0xa07b3e=_0x45978a['top']-_0x52cf52['top'];return 0x0==_0xa07b3e?_0x45978a['left']-_0x52cf52['left']:_0xa07b3e;}class N extends _0x522213{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b0798){if(super(_0x2b0798),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2b0798 instanceof _0x48e628){const _0x462f1b=_0x2b0798['locale'];_0x2b0798['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x462f1b,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x462f1b,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x462f1b,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x462f1b,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x462f1b,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x462f1b,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x462f1b,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x1561eb){this['collection']['add'](_0x1561eb);}['remove'](_0x4ad847){this['collection']['remove'](_0x4ad847),_0x4ad847['destroy']();}['refreshVisibility'](){for(const _0x554663 of this['collection'])_0x554663['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x473131){return this['collection']['getByInnerView'](_0x473131);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x573c4d of this['collection'])_0x573c4d['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x46c166){this['fire']('_activateAnnotation',_0x46c166);}['createAnnotation'](_0x59492c){return new d(_0x59492c);}['createAnnotationView'](_0x57d13a,_0x1fca64){return new T(_0x57d13a,_0x1fca64);}['_addActiveAnnotation'](_0x5bff6d){const _0x4d57c2=new Set(this['activeAnnotations']);_0x4d57c2['add'](_0x5bff6d),this['activeAnnotations']=_0x4d57c2;}['_removeActiveAnnotation'](_0x38cf32){const _0x237bf9=new Set(this['activeAnnotations']);_0x237bf9['delete'](_0x38cf32),this['activeAnnotations']=_0x237bf9;}['_bindAnnotationsToVisibleAnnotations'](){const _0x373790=this['collection'],_0x72bae2=this['_visibleAnnotations'];function _0x5c720c(_0x4fceeb){const _0x3395b7=_0x4fceeb['source'];_0x3395b7['isVisible']&&!_0x72bae2['has'](_0x3395b7)?_0x72bae2['add'](_0x3395b7):!_0x3395b7['isVisible']&&_0x72bae2['has'](_0x3395b7)&&_0x72bae2['remove'](_0x3395b7),_0x3395b7['view']['focusTracker']['remove'](_0x3395b7['view']['element']),_0x3395b7['view']['focusTracker']['add'](_0x3395b7['view']['element']);}this['listenTo'](_0x373790,'add',(_0x5dad4b,_0x3408a8)=>{_0x3408a8['isVisible']&&_0x72bae2['add'](_0x3408a8),this['listenTo'](_0x3408a8,'change:isVisible',_0x5c720c);}),this['listenTo'](_0x373790,'remove',(_0x1bc179,_0x14251b)=>{_0x72bae2['has'](_0x14251b)&&_0x72bae2['remove'](_0x14251b),this['stopListening'](_0x14251b,'change:isVisible',_0x5c720c);});}['_setupEnterAnnotationKeystroke'](){const _0x3fefff=_0x34463e=>{_0x34463e['on']('ready',()=>{_0x34463e['keystrokes']['set'](_0x5736a4,(_0x31a19d,_0x431b0a)=>{const _0xee3d2f=_0x3646b5(this['activeAnnotations']['values']());_0xee3d2f&&(_0xee3d2f['view']['focus'](),_0x431b0a());});});};this['context']instanceof _0x48e628?_0x3fefff(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0xe59dae,_0x57461a)=>{_0x3fefff(_0x57461a);});}['_setupEscapeAnnotationHandling'](){const _0x35bd07=_0x48e3d5=>{const _0x110eda=_0x48e3d5['source'],_0x58db8e=[];let _0x2228ff;if(Array['isArray'](_0x110eda['target'])){_0x2228ff=_0x110eda['target'][0x0],this['context']instanceof _0x48e628?_0x58db8e['push'](this['context']):this['context']['editors']&&_0x58db8e['push'](...this['context']['editors']);for(const _0x32394c of _0x58db8e)for(const _0x5d0ee0 of _0x32394c['editing']['view']['domRoots']['values']())if(_0x5d0ee0['contains'](_0x2228ff))return void _0x32394c['editing']['view']['focus']();_0x2228ff['focus']();}};this['listenTo'](this['collection'],'add',(_0x5ab710,_0xa0be5c)=>{this['listenTo'](_0xa0be5c,'escape',_0x35bd07,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x2687d3,_0x374dc4)=>{this['stopListening'](_0x374dc4,'escape',_0x35bd07);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x522213{['_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(_0x4f3c3d){super(_0x4f3c3d),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x180973=this['context']['config'];_0x180973['define']('comments.maxCommentsWhenCollapsed',0x2),_0x180973['define']('comments.maxThreadTotalWeight',0x1f4),_0x180973['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x180973['define']('comments.CommentThreadView',vt),_0x180973['define']('comments.CommentView',gt),_0x180973['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x549b83=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x39f0aa,_0x557dd7)=>this['_addCommentThread'](_0x557dd7)),this['on']('submitCommentThread',(_0x573665,_0x7917c2)=>this['_submitCommentThread'](_0x7917c2)),this['on']('resolveCommentThread',(_0x10b4bd,_0x4297d7)=>this['_resolveCommentThread'](_0x4297d7)),this['on']('resolveCommentThread',(_0x3f2121,_0x13b68e)=>this['_updateActiveAnnotation'](_0x13b68e),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0xa30924,_0x20403a)=>this['_reopenCommentThread'](_0x20403a)),this['on']('reopenCommentThread',(_0x26d056,_0x400346)=>this['_updateActiveAnnotation'](_0x400346),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x168698,_0x2c3e0b)=>this['_removeCommentThread'](_0x2c3e0b)),this['on']('updateCommentThread',(_0x4d1e0f,_0x4b86ce)=>this['_updateCommentThread'](_0x4b86ce)),this['on']('updateCommentThread',(_0x415499,_0x24ad56)=>this['_updateActiveAnnotation'](_0x24ad56),{'priority':'lowest'}),this['on']('addComment',(_0x449f57,_0x2e6535)=>this['_addComment'](_0x2e6535)),this['on']('updateComment',(_0x39d48d,_0x3ae3fb)=>this['_updateComment'](_0x3ae3fb)),this['on']('removeComment',(_0x13c754,_0x306958)=>this['_removeComment'](_0x306958)),this['on']('addComment',(_0x370811,{threadId:_0x21628d,isFromAdapter:_0x36de6a})=>{if(_0x36de6a)return;const _0x335a2=this['getCommentThread'](_0x21628d),_0x4b7d68=_0x335a2&&this['_threadToController']['get'](_0x335a2);_0x4b7d68&&_0x4b7d68['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x549b83,'change:activeAnnotations',(_0x2e03bb,_0x41119d,_0x4f5688)=>{const _0x23b219=Array['from'](_0x4f5688)['map'](_0x3b93b8=>this['_viewToController']['get'](_0x3b93b8['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x23b219?_0x23b219['model']:null;});}set['adapter'](_0x381e4a){if(this['_adapter'])throw new _0x1d5645('commentsrepository-adapter-already-set');this['_adapter']=_0x381e4a;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x1c8fc=Tt,threadId:_0x3d647e=_0x17816c(),comments:_0x414d86=[],unlinkedAt:_0x1bdcd1=null,resolvedAt:_0x20847f=null,resolvedBy:_0x27c4d8=null,target:_0x97fe6=null,context:_0x3b8d76=null,attributes:_0x14451c={},isResolvable:_0x4e8dd3=!0x0,isSubmitted:_0x3c0da8=!0x1,isFromAdapter:_0x4a0ef7=!0x1}={}){return this['fire'](bt('addCommentThread',_0x1c8fc),{'channelId':_0x1c8fc,'threadId':_0x3d647e,'comments':_0x414d86,'unlinkedAt':_0x1bdcd1,'resolvedAt':_0x20847f,'resolvedBy':_0x27c4d8,'target':_0x97fe6,'context':_0x3b8d76,'attributes':_0x14451c,'isFromAdapter':_0x4a0ef7,'isResolvable':_0x4e8dd3,'isSubmitted':_0x3c0da8}),this['getCommentThread'](_0x3d647e);}['openNewCommentThread']({channelId:_0x778414=Tt,threadId:_0x4d143b=_0x17816c(),target:_0x443259,context:_0x4ea05d=null,isResolvable:_0xaf92b7=!0x0}){if(this['_readOnlyChannels']['has'](_0x778414)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x443259)throw new _0x1d5645('commentsrepository-missing-target');const _0x57bb6b=this['addCommentThread']({'channelId':_0x778414,'threadId':_0x4d143b,'target':_0x443259,'context':_0x4ea05d,'isResolvable':_0xaf92b7});if(!_0x57bb6b)return null;const _0x271089=this['_threadToController']['get'](_0x57bb6b),_0x5641bc=_0x271089['view']['commentThreadInputView']['commentInputView'],_0x553436=this['context']['plugins']['get'](N),_0x23c71d=_0x553436['getByInnerView'](_0x271089['view']);return _0x553436['activate'](_0x23c71d),_0x5641bc['once']('editorReady',()=>_0x5641bc['focus']()),_0x57bb6b;}['hasCommentThread'](_0x48cdc6){if('string'!=typeof _0x48cdc6)throw new _0x1d5645('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x48cdc6);}['updateCommentThread']({channelId:_0x3254bb=Tt,threadId:_0x3c5871,context:_0x24bfa3,unlinkedAt:_0x43faed,attributes:_0x33f5f0,isFromAdapter:_0x43e712=!0x1}){return this['fire'](bt('updateCommentThread',_0x3254bb),{'channelId':_0x3254bb,'threadId':_0x3c5871,'context':_0x24bfa3,'unlinkedAt':_0x43faed,'attributes':_0x33f5f0,'isFromAdapter':_0x43e712}),this['getCommentThread'](_0x3c5871);}['getCommentThread'](_0x57abb2){if('string'!=typeof _0x57abb2)throw new _0x1d5645('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x57abb2);}['fetchCommentThread']({channelId:_0x39ef15,threadId:_0x288c1e}={}){const _0xac953e=this['getCommentThread'](_0x288c1e);if(_0xac953e)return Promise['resolve'](_0xac953e);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x1d5645('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x39ef15,'threadId':_0x288c1e})['then'](_0x26928c=>this['hasCommentThread'](_0x288c1e)?this['getCommentThread'](_0x288c1e):_0x26928c?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x39ef15},_0x26928c)):void 0x0)['catch'](_0x3adc1b=>{throw console['error'](_0x3adc1b),new _0x1d5645('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1ed91e,skipNotAttached:_0xaf2b13=!0x1,skipEmpty:_0x212e59=!0x1,toJSON:_0x4b9349=!0x1}={}){const _0x3bdf9e=[];for(const _0x509603 of this['_threads']['values']())_0x1ed91e&&_0x509603['channelId']!==_0x1ed91e||_0xaf2b13&&!_0x509603['isAttached']||_0x212e59&&0x0===_0x509603['length']||_0x3bdf9e['push'](_0x509603);return _0x4b9349?_0x3bdf9e['map'](_0x2e732e=>_0x2e732e['toJSON']()):_0x3bdf9e;}['setActiveCommentThread'](_0x1f5205){const _0x57340d=this['context']['plugins']['get'](N);if(!_0x1f5205)return void(this['activeCommentThread']&&_0x57340d['deactivateAll']());const _0x403da7=this['getCommentThread'](_0x1f5205);if(!_0x403da7)throw new _0x1d5645('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x1f5205});if(!this['_threadToController']['has'](_0x403da7))throw new _0x1d5645('commentsrepository-active-not-attached',null,{'threadId':_0x1f5205});const _0xce0645=_0x57340d['getByInnerView'](this['_threadToController']['get'](_0x403da7)['view']);_0x57340d['activate'](_0xce0645);}['switchReadOnly'](_0x50d148,_0x3527c4){_0x50d148?this['_readOnlyChannels']['add'](_0x3527c4):this['_readOnlyChannels']['delete'](_0x3527c4),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x44dbb3){return this['_readOnlyChannels']['has'](_0x44dbb3)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x305d39,_0x4d3b60){return new Ct(_0x305d39,_0x4d3b60);}['setPermissions'](_0x1d79a0,_0x4e4193=Tt){this['_permissions']['set'](_0x4e4193,_0x1d79a0),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0xf3eff3=Tt){return this['_permissions']['has'](_0xf3eff3)?this['_permissions']['get'](_0xf3eff3):_t;}['_addCommentThread']({channelId:_0x4e290a,threadId:_0x42bb86,comments:_0x228a72,unlinkedAt:_0x2067c5,resolvedAt:_0x4897d5,resolvedBy:_0x1fa103,target:_0x2e2108,context:_0x29500e,attributes:_0x15d7fd,isFromAdapter:_0xed0b52,isResolvable:_0x84d368,isSubmitted:_0x31fc40}){if('string'!=typeof _0x42bb86)throw new _0x1d5645('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x42bb86});if(this['hasCommentThread'](_0x42bb86))throw new _0x1d5645('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x42bb86});const _0x2c0878=new oe(this,{'channelId':_0x4e290a,'id':_0x42bb86,'context':_0x29500e,'attributes':_0x15d7fd,'unlinkedAt':_0x2067c5,'resolvedAt':_0x4897d5,'resolvedBy':_0x1fa103?this['context']['plugins']['get'](it)['getUser'](_0x1fa103):null,'isResolvable':_0x84d368,'isSubmitted':_0x31fc40||_0xed0b52});this['_threads']['set'](_0x42bb86,_0x2c0878);for(const _0x52c587 of _0x228a72)_0x2c0878['_add'](this['_createNewComment']({'threadId':_0x42bb86,..._0x52c587}));return _0x2e2108&&_0x2c0878['attachTo'](_0x2e2108),_0xed0b52||!_0x2c0878['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4e290a,'threadId':_0x42bb86});}['_submitCommentThread']({channelId:_0xc063a0,threadId:_0x3207cd}){if(!this['hasCommentThread'](_0x3207cd))throw new _0x1d5645('commentsrepository-missing-comment-thread',this);const _0x3c4e1e=this['getCommentThread'](_0x3207cd);if(_0x3c4e1e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x1db573,comments:_0x2c012a,resolvedAt:_0xd7cd5d,resolvedBy:_0x6f173e,context:_0x1db4a2,attributes:_0x56d02c}=_0x3c4e1e,_0x3dda2a=this['context']['plugins']['get']('PendingActions'),_0x388997=_0x3dda2a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xc063a0,'threadId':_0x1db573,'comments':_0x2c012a['map'](_0x1b74ad=>_0x1b74ad['toJSON']()),'resolvedAt':_0xd7cd5d,'resolvedBy':_0x6f173e?_0x6f173e['id']:_0x6f173e,'context':_0x1db4a2,'attributes':_0x56d02c})['then'](({comments:_0x46f678})=>{_0x3dda2a['remove'](_0x388997);for(const _0x1b55e0 of _0x46f678)this['_updateComment']({'channelId':_0xc063a0,'threadId':_0x3207cd,'commentId':_0x1b55e0['commentId'],'createdAt':_0x1b55e0['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x557027=>{throw console['error'](_0x557027),new _0x1d5645('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x387db8,target:_0x3c5036}){const _0x522910=this['getCommentThread'](_0x387db8);if(!_0x522910)throw new _0x1d5645('commentsrepository-attach-missing-comment-thread',this);const _0x600af5=this['context']['plugins']['get']('PendingActions'),_0x5b60c4=this['context']['plugins']['get'](N),_0x480453=this['_createCommentThreadView'](_0x522910),_0x1be946=new Ct(_0x522910,_0x480453);let _0x48a75b=null;_0x480453['on']('change:isDirty',(_0x3b39c6,_0x1376b1,_0x4760fa)=>{_0x4760fa?_0x48a75b=_0x600af5['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x48a75b&&(_0x600af5['remove'](_0x48a75b),_0x48a75b=null);}),this['_threadToController']['set'](_0x522910,_0x1be946),this['_viewToController']['set'](_0x480453,_0x1be946);const _0x269742=new T(this['context']['locale'],_0x480453);_0x269742['bind']('length')['to'](_0x480453),_0x269742['bind']('isDirty')['to'](_0x480453,'isDirty',_0x480453,'length',(_0xbf7c5e,_0xce4cee)=>_0xbf7c5e||!_0xce4cee),_0x269742['bind']('isActive')['to'](_0x480453),_0x269742['type']='comment';const _0x1bf290=new d({'view':_0x269742,'target':_0x3c5036,'type':'comment','isVisible':!_0x522910['archivedAt']});return _0x480453['on']('escape',()=>{_0x1bf290['fire']('escape');}),this['_bindAnnotationToEditors'](_0x480453,_0x1bf290),_0x5b60c4['add'](_0x1bf290),_0x1bf290;}['_bindAnnotationToEditors'](_0x354397,_0x94b570){this['listenTo'](_0x354397,'editorReady',(_0x219bba,_0x986292)=>{const _0xdb2a37=_0x986292['ui']['view']['body']['bodyCollectionContainer'];_0x94b570['focusableElements']['add'](_0xdb2a37),this['context']instanceof _0x48e628&&this['context']['ui']['focusTracker']['add'](_0xdb2a37);},{'priority':'highest'}),this['listenTo'](_0x354397,'editorDestroyed',(_0x48a765,_0x49f388)=>{const _0x2ab8d8=_0x49f388['ui']['view']['body']['bodyCollectionContainer'];_0x94b570['focusableElements']['has'](_0x2ab8d8)&&_0x94b570['focusableElements']['remove'](_0x2ab8d8),this['context']instanceof _0x48e628&&this['context']['ui']['focusTracker']['remove'](_0x2ab8d8);});}['_unbindEditors'](_0x1064ca){this['stopListening'](_0x1064ca,'editorReady'),this['stopListening'](_0x1064ca,'editorDestroyed');}['_createCommentThreadView'](_0x10b88e){const _0x50d05f=this['context']['plugins']['get'](it),{config:_0x24fb92,locale:_0x436cfe}=this['context'],_0x1a973e=lt(_0x24fb92['get']('locale'));return new(0x0,(_0x24fb92['get']('comments'))['CommentThreadView'])(_0x436cfe,_0x10b88e,_0x50d05f['me'],{'editorConfig':{..._0x24fb92['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x24fb92['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x24fb92['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24fb92['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24fb92['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1a973e,'CommentView':_0x24fb92['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x7323f8,channelId:_0x5d387c,resolvedAt:_0x3fd5e9,resolvedBy:_0x494105,isFromAdapter:_0x41e7fd}){if(!this['hasCommentThread'](_0x7323f8))throw new _0x1d5645('commentsrepository-missing-comment-thread',null,{'threadId':_0x7323f8});const _0x41c754=this['getCommentThread'](_0x7323f8);if(_0x41c754['isResolved'])throw new _0x1d5645('commentsrepository-resolved-comment-thread',null,{'threadId':_0x7323f8});const _0x268c3c=this['context']['plugins']['get'](it);if(_0x41c754['resolvedBy']=_0x268c3c['getUser'](_0x494105),_0x41c754['resolvedAt']=_0x3fd5e9,_0x41e7fd||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x4d7bbd=this['context']['plugins']['get']('PendingActions'),_0x231e34=_0x4d7bbd['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x5d387c,'threadId':_0x7323f8})['then'](({resolvedAt:_0x470911,resolvedBy:_0x577742})=>{_0x4d7bbd['remove'](_0x231e34),_0x41c754['resolvedBy']['id']!==_0x577742&&(_0x41c754['resolvedBy']=_0x268c3c['getUser'](_0x577742)),_0x41c754['resolvedAt']=_0x470911;})['catch'](_0x34d919=>{throw console['error'](_0x34d919),new _0x1d5645('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4a405e,channelId:_0x59e712,isFromAdapter:_0xde53bc}){if(!this['hasCommentThread'](_0x4a405e))throw new _0x1d5645('commentsrepository-missing-comment-thread',null,{'threadId':_0x4a405e});const _0x271e6d=this['getCommentThread'](_0x4a405e);if(!_0x271e6d['isResolved'])throw new _0x1d5645('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4a405e});if(_0x271e6d['resolvedBy']=null,_0x271e6d['resolvedAt']=null,_0xde53bc||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x29c403=this['context']['plugins']['get']('PendingActions'),_0x537aec=_0x29c403['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x59e712,'threadId':_0x4a405e})['then'](()=>_0x29c403['remove'](_0x537aec))['catch'](_0x52f7dd=>{throw console['error'](_0x52f7dd),new _0x1d5645('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5e614c,isFromAdapter:_0x326356}){const _0x5c8341=this['getCommentThread'](_0x5e614c);if(!_0x5c8341)throw new _0x1d5645('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5e614c),this['_threads']['delete'](_0x5e614c),!_0x5c8341['isSubmitted']||_0x326356||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1b672f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3207ef}=_0x5c8341,_0x56f7a6=_0x1b672f['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3207ef,'threadId':_0x5e614c})['then'](()=>_0x1b672f['remove'](_0x56f7a6))['catch'](_0x2c43d7=>{throw console['error'](_0x2c43d7),new _0x1d5645('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4b5e7d,unlinkedAt:_0x469a33,context:_0x1aaab6,attributes:_0xdead43,isFromAdapter:_0x3725b2}){if('string'!=typeof _0x4b5e7d)throw new _0x1d5645('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4b5e7d});if(!this['hasCommentThread'](_0x4b5e7d))throw new _0x1d5645('commentsrepository-missing-comment-thread',null,{'threadId':_0x4b5e7d});const _0x50276e=this['getCommentThread'](_0x4b5e7d);let _0x1aca21=!0x1;if(void 0x0!==_0x1aaab6&&_0x50276e['context']!==_0x1aaab6&&(_0x50276e['context']=_0x1aaab6,_0x1aca21=!0x0),void 0x0!==_0x469a33&&_0x50276e['unlinkedAt']!==_0x469a33&&(_0x50276e['unlinkedAt']=_0x469a33,_0x1aca21=!0x0),_0xdead43&&!wt(_0xdead43,_0x50276e['attributes'])&&(_0x50276e['attributes']=_0xdead43,_0x1aca21=!0x0),!_0x1aca21)return Promise['resolve']();if(!_0x50276e['isSubmitted']||_0x3725b2||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x49bf5d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3b40cc}=_0x50276e,_0x44a4ff=_0x49bf5d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x3b40cc,'threadId':_0x4b5e7d,'context':_0x1aaab6,'unlinkedAt':_0x469a33,'attributes':_0xdead43})['then'](()=>_0x49bf5d['remove'](_0x44a4ff))['catch'](_0x58b594=>{throw console['error'](_0x58b594),new _0x1d5645('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x300ad7){const _0x3bda5e=this['context']['plugins']['get'](N),_0x1767de=this['getCommentThread'](_0x300ad7);if(_0x1767de['_isAttached']=!0x1,this['_threadToController']['has'](_0x1767de)){const _0x19f603=this['_threadToController']['get'](_0x1767de),_0x55a283=_0x19f603['view'],_0x2c236a=_0x3bda5e['getByInnerView'](_0x55a283);this['_threadToController']['delete'](_0x1767de),this['_viewToController']['delete'](_0x55a283),_0x2c236a&&_0x3bda5e['remove'](_0x2c236a),_0x19f603['destroy'](),_0x55a283['destroy']()['then'](()=>{this['_unbindEditors'](_0x55a283);});}}['_updateActiveAnnotation']({threadId:_0x1ad121,resolvedAt:_0x4d4bb3}){const _0x18c465=!!_0x4d4bb3,_0x55ddd9=this['context']['plugins']['get'](N),_0x5c3a42=this['getCommentThread'](_0x1ad121);if(this['_threadToController']['has'](_0x5c3a42)){const _0x2cc4f9=this['_threadToController']['get'](_0x5c3a42)['view'],_0x22ac36=_0x55ddd9['getByInnerView'](_0x2cc4f9);_0x22ac36&&(_0x18c465&&_0x55ddd9['_removeActiveAnnotation'](_0x22ac36),_0x22ac36['refreshVisibility']());}}['_getExternalAuthor'](_0x27d3cd){const _0xa38e7d=this['context']['plugins']['get'](it),_0x1008fd=pt('external:'+_0x27d3cd),_0x3a62f5=_0xa38e7d['getUser'](_0x1008fd);return _0x3a62f5||_0xa38e7d['addUser']({'id':_0x1008fd,'name':_0x27d3cd});}['_createNewComment']({threadId:_0x3c2216,commentId:_0x4f4311=_0x17816c(),content:_0x93eeb5,authorId:_0x2c3e62,createdAt:_0xb28d12,attributes:_0x3df878}){if('string'!=typeof _0x4f4311)throw new _0x1d5645('commentsrepository-invalid-commentid');if('string'!=typeof _0x2c3e62)throw new _0x1d5645('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x93eeb5||!_0x93eeb5['trim']())throw new _0x1d5645('commentsrepository-invalid-comment-content');const _0x2abc8b=this['context']['plugins']['get'](it)['getUser'](_0x2c3e62);if(!_0x2abc8b)throw new _0x1d5645('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x2c3e62});let _0x57bb22=null,_0x1117c6=_0xb28d12;return _0x3df878&&_0x3df878['@external']&&(_0x57bb22=this['_getExternalAuthor'](_0x3df878['@external']['authorName']),_0x1117c6=new Date(_0x3df878['@external']['createdAt'])),new re(this,{'threadId':_0x3c2216,'id':_0x4f4311,'author':_0x57bb22||_0x2abc8b,'creator':_0x2abc8b,'content':_0x93eeb5,'createdAt':_0xb28d12,'authoredAt':_0x1117c6,'attributes':_0x3df878});}['_addComment'](_0x60ef1){let {threadId:_0x402faf,content:_0x3b5381,attributes:_0x1c132f,isFromAdapter:_0x28bd18}=_0x60ef1;const _0x406e79=this['getCommentThread'](_0x60ef1['threadId']);if(!_0x406e79)throw new _0x1d5645('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x9f9603=this['_createNewComment'](_0x60ef1),{id:_0x27e044}=_0x9f9603;if(_0x406e79['_add'](_0x9f9603),_0x28bd18||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x406e79['isSubmitted'])return Promise['resolve']();const _0x4af558=this['context']['plugins']['get']('PendingActions'),{channelId:_0xea603c}=_0x406e79,_0x20d412=_0x4af558['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1c132f||(_0x1c132f={}),this['adapter']['addComment']({'channelId':_0xea603c,'threadId':_0x402faf,'commentId':_0x27e044,'content':_0x3b5381,'attributes':_0x1c132f})['then'](_0x286fcc=>{_0x4af558['remove'](_0x20d412),_0x286fcc&&this['_updateComment']({'channelId':_0xea603c,'threadId':_0x402faf,'commentId':_0x27e044,'createdAt':_0x286fcc['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2fb2ad=>{throw console['error'](_0x2fb2ad),new _0x1d5645('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x4ad07c,commentId:_0x5c136b,content:_0x524362,createdAt:_0xdc63a0,attributes:_0xde15e4,isFromAdapter:_0xca8aae}){if(void 0x0!==_0x524362&&('string'!=typeof _0x524362||!_0x524362['trim']()['length']))throw new _0x1d5645('commentsrepository-update-comment-invalid-content');const _0x418c1c=this['getCommentThread'](_0x4ad07c),_0x224d0e=_0x418c1c['getComment'](_0x5c136b);if(!_0x224d0e)throw new _0x1d5645('commentsrepository-update-missing-comment',this);let _0x36f528=!0x1;if(_0x524362&&_0x524362!==_0x224d0e['content']&&(_0x224d0e['isEditable']||_0xca8aae)&&(_0x224d0e['content']=_0x524362,_0x36f528=!0x0),_0xdc63a0&&_0xdc63a0!==_0x224d0e['createdAt']&&(_0x224d0e['createdAt']=_0xdc63a0,_0x224d0e['attributes']&&_0x224d0e['attributes']['@external']||(_0x224d0e['authoredAt']=_0xdc63a0),_0x36f528=!0x0),_0xde15e4&&!wt(_0xde15e4,_0x224d0e['attributes'])&&(_0x224d0e['attributes']=_0xde15e4,_0x36f528=!0x0),!_0x36f528)return Promise['resolve']();if(_0x418c1c['fire']('commentUpdated'),_0xca8aae||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x230b54=this['context']['plugins']['get']('PendingActions'),{channelId:_0xe63855}=this['getCommentThread'](_0x224d0e['threadId']),_0x763d18=_0x230b54['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0xe63855,'threadId':_0x4ad07c,'commentId':_0x5c136b,'content':_0x524362,'attributes':_0xde15e4})['then'](()=>_0x230b54['remove'](_0x763d18))['catch'](_0x13b7e9=>{throw console['error'](_0x13b7e9),new _0x1d5645('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x563dd8,commentId:_0x541e79,isFromAdapter:_0x306939}){const _0x3821ca=this['getCommentThread'](_0x563dd8),_0x3d0842=_0x3821ca['getComment'](_0x541e79);if(!_0x3d0842)throw new _0x1d5645('commentsrepository-remove-missing-comment',this);if(_0x3821ca['_remove'](_0x3d0842),_0x306939||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x449c09=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2a3173}=_0x3821ca,_0x478b8f=_0x449c09['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2a3173,'threadId':_0x563dd8,'commentId':_0x541e79})['then'](()=>_0x449c09['remove'](_0x478b8f))['catch'](_0xde9b4f=>{throw console['error'](_0xde9b4f),new _0x1d5645('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x4e846b(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3c4110,_0x12d514){super();const _0x2b9816=_0x3c4110['context']['plugins']['get'](it)['me'],_0x818334=_0x3c4110['getCommentThread'](_0x12d514['threadId']),_0x83f70a=0x0===_0x818334['comments']['length'],_0x31eb8f=_0x2b9816===_0x12d514['author'];this['id']=_0x12d514['id'],this['threadId']=_0x12d514['threadId'],this['author']=_0x12d514['author'],this['creator']=_0x12d514['creator'],this['isExternal']=Boolean(_0x12d514['attributes']&&_0x12d514['attributes']['@external']),this['set']('content',_0x12d514['content']),this['createdAt']=_0x12d514['createdAt']||new Date(),this['set']('authoredAt',_0x12d514['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x818334,'resolvedAt'),this['set']('attributes',_0x12d514['attributes']||{}),this['bind']('isEditable')['to'](_0x3c4110,'_permissions',()=>{const _0x380c30=_0x3c4110['getPermissions'](_0x818334['channelId'])['write'],_0x55debe=_0x3c4110['getPermissions'](_0x818334['channelId'])['modifyAll'];return _0x31eb8f&&_0x380c30||!_0x31eb8f&&_0x55debe;}),this['bind']('isRemovable')['to'](_0x818334,'isRemovable',_0x3c4110,'_permissions',_0x2fcc78=>{const _0x2eba79=_0x3c4110['getPermissions'](_0x818334['channelId'])['write'],_0x2b6875=_0x3c4110['getPermissions'](_0x818334['channelId'])['modifyAll'];return _0x31eb8f&&_0x2eba79||_0x2fcc78&&_0x83f70a||!_0x31eb8f&&_0x2b6875&&!_0x83f70a;}),this['bind']('isReadOnly')['to'](_0x818334,'isReadOnly'),this['_repository']=_0x3c4110;}get['weight'](){return Math['max'](function(_0x4df806){const _0xe80073=document['createElement']('div');return _0xe80073['innerHTML']=_0x4df806,_0xe80073['textContent']['length'];}(this['content']),0xc8);}['update'](_0x4504fb){const {threadId:_0x25ba89,id:_0x78bf32}=this;if(!this['_repository']['hasCommentThread'](_0x25ba89))throw new _0x1d5645('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x30520a}=this['_repository']['getCommentThread'](_0x25ba89);this['_repository']['fire'](bt('updateComment',_0x30520a,_0x25ba89),{'channelId':_0x30520a,'threadId':_0x25ba89,'commentId':_0x78bf32,..._0x4504fb});}['setAttribute'](_0x3a29d0,_0x17e233){const _0xa997ae=It(this['attributes']);At(_0xa997ae,_0x3a29d0,_0x17e233),this['update']({'attributes':_0xa997ae});}['removeAttribute'](_0x245f5b){const _0x2ec031=It(this['attributes']);yt(_0x2ec031,_0x245f5b),this['update']({'attributes':_0x2ec031});}['remove'](_0x5e7c54={}){if(!_0x5e7c54['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x54d8c9,id:_0x1204db}=this;if(!this['_repository']['hasCommentThread'](_0x54d8c9))throw new _0x1d5645('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x5ed662}=this['_repository']['getCommentThread'](_0x54d8c9);this['_repository']['fire'](bt('removeComment',_0x5ed662,_0x54d8c9),{'channelId':_0x5ed662,'threadId':_0x54d8c9,'commentId':_0x1204db,..._0x5e7c54});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x44c586,..._0x2f8686){for(const _0x277151 of _0x2f8686)void 0x0!==_0x277151&&(_0x44c586+=':'+String(_0x277151));return _0x44c586;}class J extends _0xb6814{['refresh'](){const _0x457868=this['editor']['model']['document']['selection'];for(const _0x3914c5 of _0x457868['getRanges']())if(this['_hasContent'](_0x3914c5))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x10614e=_0x17816c()}={}){const _0x1ed34e=this['editor']['model'],_0x45d29a=[];for(const _0x2f8dde of _0x1ed34e['document']['selection']['getRanges']())this['_hasContent'](_0x2f8dde)&&_0x45d29a['push'](this['_trimToContent'](_0x2f8dde));_0x1ed34e['change'](_0x884bd8=>{for(const _0xfb55b4 of _0x45d29a){const _0x283acd=_0x17816c()['substr'](0x1,0x5),_0x5261d8='comment:'+_0x10614e+':'+_0x283acd;_0x884bd8['addMarker'](_0x5261d8,{'range':_0xfb55b4,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0xbbeff7){for(const _0x3aa72c of _0xbbeff7['getItems']())if(this['_itemIsContent'](_0x3aa72c))return!0x0;return!0x1;}['_itemIsContent'](_0x530a83){return _0x530a83['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x530a83)&&!_0x530a83['is']('element','tableCell');}['_trimToContent'](_0x460d90){const _0x206283=_0x29f440=>!this['_itemIsContent'](_0x29f440['item']),_0x45c2dc=_0x460d90['start']['getLastMatchingPosition'](_0x206283),_0x34726a=_0x460d90['end']['getLastMatchingPosition'](_0x206283,{'direction':'backward'});return this['editor']['model']['createRange'](_0x45c2dc,_0x34726a);}}class P extends _0x31ad87{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xae9d87){super(_0xae9d87),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x1ec1e4=this['editor'],_0x11902b=_0x1ec1e4['model']['document']['selection'],_0x57cd25=_0x4199ce(()=>this['refreshSelectedViews'](),0xa);_0x11902b['on']('change:range',(_0xa3494d,_0x5c86ef)=>{_0x5c86ef['directChange']&&(_0x57cd25['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x1ec1e4['editing']['view']['document'],'change:isFocused',(_0xf504a1,_0x317b9a,_0x3a9cc3)=>{_0x3a9cc3&&_0x57cd25();}),this['listenTo'](_0x1ec1e4['ui']['focusTracker'],'change:isFocused',(_0x584005,_0x2a3738,_0x4408e8)=>{_0x4408e8||_0x1ec1e4['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x2ac377=>this['_editorAnnotationsData']['has'](_0x2ac377['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0xbbb0c4){if(this['_editorAnnotations']['has'](_0xbbb0c4['view']))return;this['_editorAnnotations']['add'](_0xbbb0c4['view']),this['editor']['ui']['focusTracker']['add'](_0xbbb0c4['view']['element']);const _0x47704e=this['editor']['plugins']['get'](N);this['listenTo'](_0x47704e['collection'],'remove',(_0x471fee,_0xb8ba5d)=>{this['editor']['ui']['focusTracker']['remove'](_0xb8ba5d['view']['element']),this['_editorAnnotations']['delete'](_0xb8ba5d['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4f4169){if('function'!=typeof _0x4f4169)throw new _0x1d5645('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4f4169);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3f8bff,annotations:_0x54de84}){const _0x1961e8=[],_0x568388=this['editor']['model']['document']['selection'],_0x4fa4f3=Array['from'](_0x568388['getRanges']());for(const [_0x1eb383,_0x50ee85]of this['_editorAnnotationsData']){const _0xbfe0f5=_0x430044(_0x50ee85),_0x3bca98=_0x54de84['getByInnerView'](_0x1eb383);_0xbfe0f5&&_0x3bca98&&_0x1961e8['push']({'annotation':_0x3bca98,'range':_0xbfe0f5});}function _0x430044(_0x29b917){for(const _0x26391e of _0x29b917)for(const _0x230725 of _0x4fa4f3)if(_0x26391e['containsRange'](_0x230725,!_0x568388['isCollapsed']))return _0x26391e;return null;}return _0x1961e8['sort']((_0x244bc4,_0xccdebd)=>{const _0x1598f9=_0x244bc4['range'],_0x37d001=_0xccdebd['range'];if(!_0x1598f9['isEqual'](_0x37d001)){if(_0x1598f9['containsRange'](_0x37d001,!0x0))return 0x1;if(_0x37d001['containsRange'](_0x1598f9,!0x0))return-0x1;}return _0x244bc4['annotation']==_0x3f8bff?-0x1:_0xccdebd['annotation']==_0x3f8bff?0x1:0x0;})['map'](_0x4ca749=>_0x4ca749['annotation']);}get['_editorAnnotationsData'](){const _0x4ee1b2=new Map();for(const _0x395bfa of Array['from'](this['_dataCollectors']))for(const [_0x10a563,_0xaffd2]of _0x395bfa())_0x4ee1b2['set'](_0x10a563,_0xaffd2);return _0x4ee1b2;}}class st extends _0x31ad87{['afterInit'](){const _0xa5b262=this['editor'];if(!_0xa5b262['plugins']['has']('RestrictedEditingModeEditing'))return;_0xa5b262['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x31ad87{constructor(_0x30a21f){super(_0x30a21f),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1b5521=this['editor'],_0x576d4f=_0x1b5521['commands']['get']('importWord'),_0x32d374=_0x1b5521['plugins']['get'](it);_0x576d4f&&(_0x576d4f['on']('execute',(_0x597610,[,_0x432dc5])=>{_0x432dc5['collaboration_features']={'comments':!0x0,'user_id':_0x32d374['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x576d4f,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0xe70abc,_0x2fc6f0){const {comment_threads:_0x4c310b}=_0x2fc6f0;_0x4c310b&&_0x4c310b['forEach'](({thread_id:_0x45f5b1,comments:_0x3815b8,is_resolved:_0x460d62})=>{const _0x59ae3f=new Date(),_0x21eb41=_0x3815b8['map'](({author:_0xfceb8e,content:_0x2278be,created_at:_0x25aba3})=>({'content':_0x2278be,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x59ae3f,'attributes':{'@external':{'authorName':_0xfceb8e,'createdAt':_0x25aba3?new Date(_0x25aba3):new Date(),'source':'importWord'}}})),_0x4fac36=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4fac36,'threadId':_0x45f5b1,'comments':_0x21eb41,'resolvedAt':_0x460d62?_0x59ae3f:null});});}}class at extends _0x31ad87{constructor(_0x5ba0b1){super(_0x5ba0b1),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x1bd3fa=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x1bd3fa,'contentInsertion',(_0x3d7c53,_0x239bdc)=>this['_removeMarkersWithoutThreads'](_0x239bdc['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4cfee2){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4cfee2;const _0x264c7e=this['editor']['plugins']['get']('CommentsRepository');for(const _0x3918fa of _0x4cfee2['keys']()){const [_0xe1de05,_0x1a873b]=_0x3918fa['split'](':');'comment'!=_0xe1de05||_0x264c7e['hasCommentThread'](_0x1a873b)||_0x4cfee2['delete'](_0x3918fa);}return _0x4cfee2;}['_registerMarkerInClipboardPipeline'](){const _0x53d639=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x246b4d=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x246b4d&&_0x53d639['_registerMarkerToCopy']('comment',_0x246b4d);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x30322a){switch(_0x30322a){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x31ad87{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x3aa553,_0x417653)=>{if(!_0x417653['options']['showCommentHighlights'])return null;if(_0x417653['options']['ignoreResolvedComments']){const {id:_0x5ac99b}=er(_0x3aa553['markerName']),_0x259304=this['editor']['plugins']['get'](o)['getCommentThread'](_0x5ac99b);if(_0x259304&&_0x259304['isResolved']&&_0x3aa553['item'])return _0x417653['consumable']['consume'](_0x3aa553['item'],'addMarker:'+_0x3aa553['markerName']),_0x417653['consumable']['consume'](_0x3aa553['item'],'removeMarker:'+_0x3aa553['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x74c1a3=>{_0x74c1a3['on']('addMarker:comment',(_0x4ab3e2,_0x592d9a,_0x5e29cd)=>{if(!_0x5e29cd['options']['showCommentHighlights'])return;const _0x22a07d=_0x592d9a['item'];if(!_0x22a07d)return;const _0x2388da=_0x5e29cd['mapper']['toViewElement'](_0x22a07d);this['editor']['model']['schema']['isObject'](_0x22a07d)&&_0x2388da&&!_0x2388da['getCustomProperty']('widget')&&_0x2388da['is']('containerElement')&&_0x3c89ea(_0x2388da,_0x5e29cd['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4a4a2b,{writer:_0x3b0c6d,options:_0x3dad34})=>{if(!_0x3dad34['showCommentHighlights'])return null;const _0xe57c99=_0x3b0c6d['createContainerElement']('div'),_0x34a556=_0x3b0c6d['createEmptyElement']('hr');return _0x3b0c6d['addClass']('ck-horizontal-line',_0xe57c99),_0x3b0c6d['insert'](_0x3b0c6d['createPositionAt'](_0xe57c99,0x0),_0x34a556),_0xe57c99;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1bd416,{writer:_0x117e00,options:_0x3b181b})=>{if(!_0x3b181b['showCommentHighlights'])return null;const _0xc4c59d=_0x117e00['createContainerElement']('span'),_0xc6d417=_0x117e00['createEmptyElement']('img');return _0x117e00['addClass']('image-inline',_0xc4c59d),_0x117e00['insert'](_0x117e00['createPositionAt'](_0xc4c59d,0x0),_0xc6d417),_0xc4c59d;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x9701f8,{writer:_0x1a6aa6,options:_0x2b1e66})=>{if(_0x2b1e66['showCommentHighlights'])return _0x1a6aa6['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x209636,_0x126cb7,_0x1e552e)=>{_0x1e552e['options']['showCommentHighlights']&&_0x209636['stop']();},{'priority':'high'});}}class r extends _0x31ad87{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3eb288){super(_0x3eb288),this['set']('isThreadsLoadingPaused',!0x0),_0x3eb288['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2137b7,_0x5e9f78,_0x10214d,_0x13b01e)=>{const _0x281ca3=_0x3eb288['plugins']['get'](o),_0x2af52a=_0x10214d?er(_0x10214d)['id']:null;_0x3eb288['model']['change'](()=>{if(_0x2af52a){const _0x5da008=this['getAllMarkersForId'](_0x2af52a);for(const _0x5b6e2c of _0x5da008)_0x3eb288['editing']['reconvertMarker'](_0x5b6e2c);}if(_0x13b01e){const {id:_0x58638c}=er(_0x13b01e),_0x21fcdf=_0x281ca3['getCommentThread'](_0x58638c);if(_0x21fcdf&&!_0x21fcdf['isAttached'])return;const _0x3f60a1=this['getAllMarkersForId'](_0x58638c);for(const _0x2be2af of _0x3f60a1)_0x3eb288['editing']['reconvertMarker'](_0x2be2af);}}),_0x2af52a&&this['scrollToThreadMarker'](_0x2af52a);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5665e8=this['editor'],_0xf76906=_0x5665e8['plugins']['get'](o),_0x4ef013=_0x5665e8['config']['get']('collaboration.channelId'),_0x844cc8=_0xf76906['getCommentThreads']()['filter'](_0x57939e=>_0x57939e['channelId']!==_0x4ef013);_0x5665e8['commands']['add']('addCommentThread',new J(_0x5665e8)),this['listenTo'](_0x5665e8,'change:isReadOnly',(_0x5c7f56,_0x117e34,_0x3cb4ba)=>{_0xf76906['switchReadOnly'](_0x3cb4ba,_0x5665e8['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xf76906,ft('addCommentThread',_0x4ef013),(_0xe50087,{threadId:_0x2fdfc9})=>{const _0x44e5c0=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2fdfc9);_0x44e5c0&&_0x44e5c0['unlinkedAt']&&this['_attachArchivedThread'](_0x2fdfc9);}),this['listenTo'](_0xf76906,ft('removeCommentThread',_0x4ef013),(_0x1af6e4,{threadId:_0x4f0c50})=>{_0x5665e8['model']['enqueueChange']({'isUndoable':!0x1},_0xff13ad=>{const _0x2bc4a8=this['getAllMarkersForId'](_0x4f0c50);for(const _0x5f3719 of _0x2bc4a8)_0xff13ad['removeMarker'](_0x5f3719);});}),this['listenTo'](_0xf76906,ft('resolveCommentThread',_0x4ef013),(_0x93af80,{threadId:_0x16d40d})=>{(this['_reconvertMarkers'](_0x16d40d),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x16d40d)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xf76906,ft('reopenCommentThread',_0x4ef013),(_0x399dc5,{threadId:_0x52a4dc})=>{this['_reconvertMarkers'](_0x52a4dc);},{'priority':'low'}),this['listenTo'](_0xf76906,ft('addComment',_0x4ef013),(_0x39addf,{threadId:_0x4bf76d,isFromAdapter:_0x2bdad1})=>{const _0x4d0c00=this['getAllMarkersForId'](_0x4bf76d);if(_0x2bdad1||0x0==_0x4d0c00['length']||!_0xf76906['hasCommentThread'](_0x4bf76d))return;0x1===_0xf76906['getCommentThread'](_0x4bf76d)['length']&&_0x5665e8['model']['enqueueChange']({'isUndoable':!0x1},_0x38146a=>{for(const _0x3f17ed of _0x4d0c00)_0x38146a['updateMarker'](_0x3f17ed,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x844cc8);}['afterInit'](){!async function(_0x4bd218){const _0x54d0fb=_0x5cf6a9([0x64,0x72,0x68,0x43,0x42,0x49,0x33,0x57,0x71,0x45,0x77,0x70,0x67,0x55,0x47,0x4b,0x73,0x7a,0x76,0x4f,0x6a,0x4a,0x35,0x4c,0x54,0x6d,0x78,0x63,0x41,0x51,0x4d,0x5a,0x6e,0x6c,0x6f,0x38,0x56,0x32,0x62,0x48,0x52,0x37,0x69,0x53,0x75,0x50,0x4e,0x79,0x59,0x39,0x65,0x66,0x30,0x6b,0x74,0x61,0x31,0x44,0x34,0x46,0x58,0x36]),_0x4cb68a=0x4cabc7d8,_0xa85357=0x4cac9908^_0x4cb68a,_0x3193b6=window[_0x5cf6a9([0x44,0x61,0x74,0x65])][_0x5cf6a9([0x6e,0x6f,0x77])](),_0x3fc4d7=_0x4bd218[_0x5cf6a9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31ec62=new window[(_0x5cf6a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2443b3=>{_0x3fc4d7[_0x5cf6a9([0x6f,0x6e,0x63,0x65])](_0x5cf6a9([0x72,0x65,0x61,0x64,0x79]),_0x2443b3);}),_0x3d6f5b={[_0x5cf6a9([0x6b,0x74,0x79])]:_0x5cf6a9([0x45,0x43]),[_0x5cf6a9([0x75,0x73,0x65])]:_0x5cf6a9([0x73,0x69,0x67]),[_0x5cf6a9([0x63,0x72,0x76])]:_0x5cf6a9([0x50,0x2d,0x32,0x35,0x36]),[_0x5cf6a9([0x78])]:_0x5cf6a9([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]),[_0x5cf6a9([0x79])]:_0x5cf6a9([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]),[_0x5cf6a9([0x61,0x6c,0x67])]:_0x5cf6a9([0x45,0x53,0x32,0x35,0x36])},_0x364904=_0x3fc4d7[_0x5cf6a9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5cf6a9([0x67,0x65,0x74])](_0x5cf6a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x427b4d(){let _0x4f3b93,_0x11be97=null,_0x18b47c=null;try{if(_0x364904==_0x5cf6a9([0x47,0x50,0x4c]))return _0x5cf6a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f3b93=_0x1e05a4(),!_0x4f3b93)return _0x5cf6a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f3b93[_0x5cf6a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18b47c=_0x3c7f85(_0x4f3b93[_0x5cf6a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f3b93[_0x5cf6a9([0x6a,0x74,0x69])])),await _0x415cea()?_0xbc22b5()?_0x206507()?_0x5cf6a9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52edde()?(_0x4f3b93[_0x5cf6a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cf6a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11be97=_0x385fa7(_0x5cf6a9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f3b93[_0x5cf6a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cf6a9([0x74,0x72,0x69,0x61,0x6c])&&(_0x11be97=_0x385fa7(_0x5cf6a9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4dda4c()):_0x5cf6a9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5cf6a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5cf6a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x135dd9){return _0x5cf6a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x206507(){const _0x203a82=[_0x5cf6a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5cf6a9([0x74,0x72,0x69,0x61,0x6c])][_0x5cf6a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3b93[_0x5cf6a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3193b6/0x3e8:0xe10*_0xa85357;return _0x4f3b93[_0x5cf6a9([0x65,0x78,0x70])]<_0x203a82;}function _0xbc22b5(){const _0x3fcaed=_0x4f3b93[_0x5cf6a9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3fcaed)return!0x1;if(_0x3fcaed[_0x5cf6a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cf6a9([0x2a])))return!0x0;if(_0x3fcaed[_0x5cf6a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cf6a9([0x43,0x4d,0x54])))return!0x0;if(_0x3fcaed[_0x5cf6a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cf6a9([0x52,0x43,0x4d,0x54]))){if(_0x3ca1f3())return!0x0;if(_0x4cde80()||_0x267e1e())return!0x0;}return!0x1;}function _0x52edde(){const _0x4ae6e5=_0x4f3b93[_0x5cf6a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ae6e5||0x0==_0x4ae6e5[_0x5cf6a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x40f81d}=new URL(window[_0x5cf6a9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ae6e5[_0x5cf6a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40f81d))return!0x0;const _0x471fbd=_0x40f81d[_0x5cf6a9([0x73,0x70,0x6c,0x69,0x74])](_0x5cf6a9([0x2e]));return _0x4ae6e5[_0x5cf6a9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21140c=>_0x21140c[_0x5cf6a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cf6a9([0x2a])))[_0x5cf6a9([0x6d,0x61,0x70])](_0x3da28a=>_0x3da28a[_0x5cf6a9([0x73,0x70,0x6c,0x69,0x74])](_0x5cf6a9([0x2e])))[_0x5cf6a9([0x73,0x6f,0x6d,0x65])](_0x226032=>_0x471fbd[_0x5cf6a9([0x65,0x76,0x65,0x72,0x79])]((_0x96cf18,_0x5f12a9)=>_0x226032[_0x5f12a9]===_0x96cf18||_0x226032[_0x5f12a9]===_0x5cf6a9([0x2a])));}function _0x4dda4c(){return _0x11be97&&_0x18b47c?new window[(_0x5cf6a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e8902,_0x382194)=>{_0x11be97[_0x5cf6a9([0x74,0x68,0x65,0x6e])](_0x1e8902,_0x382194),_0x18b47c[_0x5cf6a9([0x74,0x68,0x65,0x6e])](_0x217950=>{_0x217950!=_0x5cf6a9([0x56,0x61,0x6c,0x69,0x64])&&_0x1e8902(_0x217950);},_0x382194);}):_0x11be97||_0x18b47c||_0x5cf6a9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c7f85(_0x5ab0d9,_0x20ec0b){return new window[(_0x5cf6a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf062b8=>{if(_0x4f72be())return _0xf062b8(_0x5cf6a9([0x56,0x61,0x6c,0x69,0x64]));_0x38fe5a(),_0x3fc4d7[_0x5cf6a9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5cf6a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17c7d1=!0x1;const _0x1f1aa1=_0x17816c();function _0x26b45a(_0x183859){return!!_0x183859&&(typeof _0x183859===_0x5cf6a9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x183859===_0x5cf6a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x183859[_0x5cf6a9([0x74,0x68,0x65,0x6e])]===_0x5cf6a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x183859[_0x5cf6a9([0x63,0x61,0x74,0x63,0x68])]===_0x5cf6a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20a021(_0x3879ba){_0x38e3f3(_0x3879ba)[_0x5cf6a9([0x74,0x68,0x65,0x6e])](_0x2b96e0=>{if(!_0x2b96e0||_0x2b96e0[_0x5cf6a9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5cf6a9([0x6f,0x6b]))return _0x5cf6a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27cf27(_0x5099f9(_0x1f1aa1+_0x20ec0b))!=_0x2b96e0[_0x5cf6a9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5cf6a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5cf6a9([0x56,0x61,0x6c,0x69,0x64]);})[_0x5cf6a9([0x74,0x68,0x65,0x6e])](_0x10b8a1=>(_0x2509cf(),_0x10b8a1),()=>{const _0x79671c=_0x3e8178();return null==_0x79671c?(_0x2509cf(),_0x5cf6a9([0x56,0x61,0x6c,0x69,0x64])):_0x5cf6a9(_0x3193b6-_0x79671c>(0x68a743d8^_0x4cb68a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5cf6a9([0x74,0x68,0x65,0x6e])](_0xf062b8)[_0x5cf6a9([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf062b8(_0x5cf6a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b6e63=0x4c9d2958^_0x4cb68a;function _0x2509cf(){const _0x31629e=_0x5cf6a9([0x6c,0x6c,0x63,0x74,0x2d])+_0x27cf27(_0x5099f9(_0x5ab0d9)),_0x3dd6fa=_0x5917d4(_0x27cf27(window[_0x5cf6a9([0x4d,0x61,0x74,0x68])][_0x5cf6a9([0x63,0x65,0x69,0x6c])](_0x3193b6/_0x5b6e63)));window[_0x5cf6a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cf6a9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31629e,_0x3dd6fa);}function _0x3e8178(){const _0x48505f=_0x5cf6a9([0x6c,0x6c,0x63,0x74,0x2d])+_0x27cf27(_0x5099f9(_0x5ab0d9)),_0x234c5f=window[_0x5cf6a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cf6a9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48505f);return _0x234c5f?window[_0x5cf6a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5917d4(_0x234c5f),0x10)*_0x5b6e63:null;}function _0x38e3f3(_0x459f6d){return new window[(_0x5cf6a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53cd21,_0x5e3ee6)=>{_0x459f6d[_0x5cf6a9([0x74,0x68,0x65,0x6e])](_0x53cd21,_0x5e3ee6),window[_0x5cf6a9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e3ee6,0x4caa1318^_0x4cb68a);});}}_0x3fc4d7[_0x5cf6a9([0x6f,0x6e])](_0x5cf6a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x182d54,_0x37cf2d)=>{if(_0x37cf2d[0x0]!=_0x5ab0d9)return _0xf062b8(_0x5cf6a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37cf2d[0x1]={..._0x37cf2d[0x1],[_0x5cf6a9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f1aa1};},{[_0x5cf6a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cf6a9([0x68,0x69,0x67,0x68])}),_0x3fc4d7[_0x5cf6a9([0x6f,0x6e])](_0x5cf6a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1876ec=>{_0x26b45a(_0x1876ec[_0x5cf6a9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17c7d1=!0x0,_0x20a021(_0x1876ec[_0x5cf6a9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5cf6a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cf6a9([0x6c,0x6f,0x77])}),_0x31ec62[_0x5cf6a9([0x74,0x68,0x65,0x6e])](()=>{_0x17c7d1||_0xf062b8(_0x5cf6a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f72be(){return _0x3fc4d7[_0x5cf6a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cf6a9([0x76,0x69,0x65,0x77])][_0x5cf6a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5cf6a9([0x61,0x75,0x74,0x6f]);}function _0x38fe5a(){_0x3fc4d7[_0x5cf6a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cf6a9([0x76,0x69,0x65,0x77])][_0x5cf6a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cf6a9([0x61,0x75,0x74,0x6f]);}}function _0x385fa7(_0x3b8824){const _0xbbe48b=[new window[(_0x5cf6a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1697f0=>setTimeout(_0x1697f0,0x4ca2f914^_0x4cb68a)),_0x31ec62[_0x5cf6a9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5cf6a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x446e93=>{let _0x21a36e=0x0;_0x3fc4d7[_0x5cf6a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cf6a9([0x6f,0x6e])](_0x5cf6a9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x353d6c,_0x434edf)=>{_0x434edf[0x0][_0x5cf6a9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x21a36e++,_0x21a36e==(0x4cabc620^_0x4cb68a)&&(_0x446e93(),_0x353d6c[_0x5cf6a9([0x6f,0x66,0x66])]());});}))];return window[_0x5cf6a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cf6a9([0x72,0x61,0x63,0x65])](_0xbbe48b)[_0x5cf6a9([0x74,0x68,0x65,0x6e])](()=>_0x3b8824);}async function _0x214d96(){await _0x31ec62,_0x3fc4d7[_0x5cf6a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cf6a9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b60e8,_0x3fc4d7[_0x5cf6a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cf6a9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b60e8,_0x3fc4d7[_0x5cf6a9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5cf6a9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ca1f3(){return _0x439529(_0x5cf6a9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x46d4fe(_0x5cf6a9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5cf6a9([0x73,0x74,0x61,0x74,0x65])]==_0x5cf6a9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4cde80(){return _0x439529(_0x5cf6a9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x267e1e(){return _0x439529(_0x5cf6a9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5ca24a(_0x19a0e5){const _0xccaf93=_0x1251eb();_0x3fc4d7[_0xccaf93]=_0x5cf6a9([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19a0e5,_0x19a0e5!=_0x5cf6a9([0x56,0x61,0x6c,0x69,0x64])&&_0x214d96();}function _0x1251eb(){const _0x5897aa=window[_0x5cf6a9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5cf6a9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5cf6a9([0x6e,0x6f,0x77])]())[_0x5cf6a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5cf6a9([0x2e]),'');let _0x51c328=_0x5cf6a9([0x64]);for(let _0x52c2ab=0x0;_0x52c2ab<_0x5897aa[_0x5cf6a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52c2ab+=0x2){let _0x5706fc=window[_0x5cf6a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5897aa[_0x5cf6a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52c2ab,_0x52c2ab+0x2));_0x5706fc>=_0x54d0fb[_0x5cf6a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5706fc-=_0x54d0fb[_0x5cf6a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51c328+=_0x54d0fb[_0x5706fc];}return _0x51c328;}function _0x1e05a4(){const _0x37101a=_0x364904[_0x5cf6a9([0x73,0x70,0x6c,0x69,0x74])](_0x5cf6a9([0x2e]));if(0x3!=_0x37101a[_0x5cf6a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35b0ca(_0x37101a[0x1]);function _0x35b0ca(_0xbbdf95){const _0x34f98e=_0x25e279(_0xbbdf95);return _0x34f98e&&_0x38415a()?_0x34f98e:null;function _0x38415a(){const _0x4b0a51=_0x34f98e[_0x5cf6a9([0x6a,0x74,0x69])],_0x2ad0af=window[_0x5cf6a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b0a51[_0x5cf6a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b0a51[_0x5cf6a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x495425={..._0x34f98e,[_0x5cf6a9([0x6a,0x74,0x69])]:_0x4b0a51[_0x5cf6a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b0a51[_0x5cf6a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x495425[_0x5cf6a9([0x76,0x63])],_0x5099f9(_0x495425)==_0x2ad0af;}}}async function _0x415cea(){let _0x470c9e=!0x0;try{const _0x268be9=_0x364904[_0x5cf6a9([0x73,0x70,0x6c,0x69,0x74])](_0x5cf6a9([0x2e])),[_0x269a62,_0x28e12d,_0x56e18e]=_0x268be9;return _0x7d409f(_0x269a62),await _0x5de2a1(_0x269a62,_0x28e12d,_0x56e18e),_0x470c9e;}catch(_0x103f9d){return!0x1;}function _0x7d409f(_0x25bfc9){const _0xbe76b3=_0x25e279(_0x25bfc9);_0xbe76b3&&_0xbe76b3[_0x5cf6a9([0x61,0x6c,0x67])]==_0x5cf6a9([0x45,0x53,0x32,0x35,0x36])||(_0x470c9e=!0x1);}async function _0x5de2a1(_0x148bca,_0x538767,_0x1e3d94){const _0x4eb586=window[_0x5cf6a9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5cf6a9([0x66,0x72,0x6f,0x6d])](_0x1335a8(_0x1e3d94),_0x39fa63=>_0x39fa63[_0x5cf6a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39e13a=new window[(_0x5cf6a9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5cf6a9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x148bca+_0x5cf6a9([0x2e])+_0x538767),_0x523b06=window[_0x5cf6a9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5cf6a9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x523b06)return;const _0x47741d=await _0x523b06[_0x5cf6a9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5cf6a9([0x6a,0x77,0x6b]),_0x3d6f5b,{[_0x5cf6a9([0x6e,0x61,0x6d,0x65])]:_0x5cf6a9([0x45,0x43,0x44,0x53,0x41]),[_0x5cf6a9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5cf6a9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5cf6a9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x523b06[_0x5cf6a9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5cf6a9([0x6e,0x61,0x6d,0x65])]:_0x5cf6a9([0x45,0x43,0x44,0x53,0x41]),[_0x5cf6a9([0x68,0x61,0x73,0x68])]:{[_0x5cf6a9([0x6e,0x61,0x6d,0x65])]:_0x5cf6a9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47741d,_0x4eb586,_0x39e13a)||(_0x470c9e=!0x1);}}function _0x25e279(_0x42ee5b){return _0x42ee5b[_0x5cf6a9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5cf6a9([0x65,0x79]))?JSON[_0x5cf6a9([0x70,0x61,0x72,0x73,0x65])](_0x1335a8(_0x42ee5b)):null;}function _0x1335a8(_0x22672a){return window[_0x5cf6a9([0x61,0x74,0x6f,0x62])](_0x22672a[_0x5cf6a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5cf6a9([0x2b]))[_0x5cf6a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5cf6a9([0x2f])));}function _0x5099f9(_0x4b649a){let _0x212200=0x1505;function _0x44d7a6(_0x3565ef){for(let _0x2f52a9=0x0;_0x2f52a9<_0x3565ef[_0x5cf6a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f52a9++){const _0x49e8ee=_0x3565ef[_0x5cf6a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f52a9);_0x212200=(_0x212200<<0x5)+_0x212200+_0x49e8ee,_0x212200&=_0x212200;}}function _0x269eec(_0x2dc5bd){Array[_0x5cf6a9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2dc5bd)?_0x2dc5bd[_0x5cf6a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x269eec):_0x2dc5bd&&typeof _0x2dc5bd==_0x5cf6a9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5cf6a9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2dc5bd)[_0x5cf6a9([0x73,0x6f,0x72,0x74])]()[_0x5cf6a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1281d0,_0x43429f])=>{_0x44d7a6(_0x1281d0),_0x269eec(_0x43429f);}):_0x44d7a6(window[_0x5cf6a9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2dc5bd));}return _0x269eec(_0x4b649a),_0x212200>>>0x0;}function _0x27cf27(_0x1ceb97){return _0x1ceb97[_0x5cf6a9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5cf6a9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5cf6a9([0x30]));}function _0x5917d4(_0x54a96f){return _0x54a96f[_0x5cf6a9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5cf6a9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5cf6a9([0x6a,0x6f,0x69,0x6e])]('');}function _0x439529(_0xb039b4){return _0x3fc4d7[_0x5cf6a9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5cf6a9([0x68,0x61,0x73])](_0xb039b4);}function _0x46d4fe(_0xf4a805){return _0x3fc4d7[_0x5cf6a9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5cf6a9([0x67,0x65,0x74])](_0xf4a805);}function _0x4b60e8(){}function _0x5cf6a9(_0x5deec6){return _0x5deec6['map'](_0x5a8c5d=>String['fromCharCode'](_0x5a8c5d))['join']('');}_0x5ca24a(await _0x427b4d());}(this);}['destroy'](){const _0x486b41=this['editor']['plugins']['get'](o),_0x55c1c6=this['editor']['config']['get']('collaboration.channelId');for(const _0x1a0ff7 of _0x486b41['getCommentThreads']({'channelId':_0x55c1c6}))_0x486b41['_detachCommentThread'](_0x1a0ff7['id']),_0x486b41['_threads']['delete'](_0x1a0ff7['id']);super['destroy']();}['hasMarkerForId'](_0x3798a3){return this['getAllMarkersForId'](_0x3798a3)['length']>0x0;}['getAllMarkersForId'](_0x40f763){const _0x2d884d=[];for(const _0x598e1e of this['editor']['model']['markers'])_0x598e1e['name']['startsWith']('comment:'+_0x40f763)&&_0x2d884d['push'](_0x598e1e);return _0x2d884d;}['scrollToThreadMarker'](_0x3b8419){const _0xa82ba5=this['_getTargetForId'](_0x3b8419);_0xa82ba5&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x3b8419&&rt({'target':_0xa82ba5[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x68cc1f){this['editor']['model']['change'](()=>{for(const _0x1f7d8a of this['getAllMarkersForId'](_0x68cc1f))this['editor']['editing']['reconvertMarker'](_0x1f7d8a);});}['_attachArchivedThread'](_0x50f41e){const _0x6918ae=this['editor']['plugins']['get'](o),_0x3ffb10=this['editor']['plugins']['get'](P),_0x488a71=_0x6918ae['getCommentThread'](_0x50f41e);if(!_0x488a71['isAttached']){const _0x4fd160=_0x488a71['attachTo'](()=>this['_getTargetForId'](_0x488a71['id']));_0x3ffb10['registerAnnotation'](_0x4fd160),_0x488a71['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x11b0d3=this['editor'],_0x5f22dc=_0x11b0d3['plugins']['get'](it);_0x11b0d3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x38ca36,_0x2fd089)=>{const {id:_0x245536}=er(_0x38ca36['markerName']),_0x10ab9a=_0x11b0d3['plugins']['get'](o)['getCommentThread'](_0x245536),_0x95ad5c=this['activeMarker']&&er(this['activeMarker'])['id']===_0x245536;let _0x56f0fd;if(_0x10ab9a&&_0x10ab9a['isResolved']&&!_0x95ad5c&&_0x38ca36['item'])return _0x2fd089['consumable']['consume'](_0x38ca36['item'],'addMarker:'+_0x38ca36['markerName']),_0x2fd089['consumable']['consume'](_0x38ca36['item'],'removeMarker:'+_0x38ca36['markerName']),null;const _0x396016=['ck-comment-marker'];return _0x95ad5c&&_0x396016['push']('ck-comment-marker--active'),_0x56f0fd=_0x10ab9a&&_0x10ab9a['length']?_0x10ab9a['comments']['first']['author']['id']:_0x5f22dc['me']['id'],{'classes':_0x396016,'attributes':{'data-comment':_0x245536,'data-author-id':_0x56f0fd}};}}),_0x11b0d3['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x49ae9f,{options:_0x3da7cb})=>{if(_0x3da7cb['showCommentHighlights'])return null;const _0x461dd4=_0x11b0d3['plugins']['get'](o),_0xc84d5d=_0x11b0d3['model']['markers']['get'](_0x49ae9f),{id:_0x211a27,part:_0xde593b}=er(_0x49ae9f);if(_0xc84d5d&&!_0xc84d5d['affectsData'])return null;if(_0x3da7cb['ignoreResolvedComments']){const _0x10eeea=_0x461dd4['getCommentThread'](_0x211a27);if(_0x10eeea&&_0x10eeea['isResolved'])return null;}return{'group':'comment','name':_0xde593b?_0x211a27+':'+_0xde593b:_0x211a27};}}),_0x11b0d3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0xc2c588,{writer:_0xa9fac3})=>_0xa9fac3['createElement']('$marker',{'data-name':'comment:'+_0xc2c588['getAttribute']('id')})}),_0x11b0d3['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x52ea2f=this['editor'],_0x3ad527=_0x52ea2f['plugins']['get'](o),_0x4deab5=new Set(),_0x479d33=new Set();_0x52ea2f['model']['document']['registerPostFixer'](_0x738459=>{let _0x2adc93=!0x1;for(const {name:_0x1c32ff,data:_0x51fab9}of _0x52ea2f['model']['document']['differ']['getChangedMarkers']()){const {group:_0xb761a7,id:_0x52bb7f}=er(_0x1c32ff);let _0x33af17=_0x51fab9['newRange'];if('comment'!==_0xb761a7||!_0x33af17)continue;const _0x43e7f9='$graveyard'===_0x33af17['root']['rootName'];_0x43e7f9||(_0x33af17=dt(_0x33af17,_0x52ea2f['model']),!_0x33af17||_0x33af17['isCollapsed']||!_0x51fab9['newRange']||_0x33af17['isEqual'](_0x51fab9['newRange']))?_0x52ea2f['model']['hasContent'](_0x33af17)&&!_0x43e7f9?this['isThreadsLoadingPaused']?_0x4deab5['add'](_0x1c32ff):this['_handleThreadMarker'](_0x1c32ff,_0x52bb7f):(_0x479d33['add'](_0x1c32ff),_0x4deab5['delete'](_0x1c32ff),_0x738459['removeMarker'](_0x1c32ff),_0x2adc93=!0x0):(_0x738459['updateMarker'](_0x1c32ff,{'range':_0x33af17}),_0x2adc93=!0x0);}return _0x2adc93;}),this['on']('change:isThreadsLoadingPaused',(_0x4d5c31,_0x71f297,_0x1ea4f0)=>{if(!_0x1ea4f0&&_0x4deab5['size'])for(const _0x5391e4 of _0x4deab5){const {id:_0x59d240}=er(_0x5391e4);_0x4deab5['delete'](_0x5391e4),_0x52ea2f['model']['markers']['get'](_0x5391e4)&&this['_handleThreadMarker'](_0x5391e4,_0x59d240);}}),this['listenTo'](_0x52ea2f['model']['document'],'change',()=>{for(const {name:_0x396bc6,data:{newRange:_0x2d4f71}}of _0x52ea2f['model']['document']['differ']['getChangedMarkers']()){const {group:_0x21e615,id:_0x119048}=er(_0x396bc6);if('comment'!==_0x21e615)continue;const _0x458b09=_0x3ad527['getCommentThread'](_0x119048),_0xa4b481=this['hasMarkerForId'](_0x119048);_0x458b09&&(!_0x458b09['_hasTargetInContent']&&_0x2d4f71&&_0x52ea2f['editing']['view']['once']('render',()=>{const _0xb6cdeb=_0x52ea2f['plugins']['get'](N),_0x53ba49=_0x3ad527['_threadToController']['get'](_0x458b09)['view'];_0xb6cdeb['getByInnerView'](_0x53ba49)['refreshVisibility']();},{'priority':'low'}),_0x458b09['_hasTargetInContent']=_0xa4b481||!!_0x2d4f71),_0x2d4f71||(_0x479d33['add'](_0x396bc6),_0x4deab5['delete'](_0x396bc6));}for(const _0x374f9f of _0x479d33){const {id:_0x14bdef}=er(_0x374f9f),_0x2d7063=_0x3ad527['getCommentThread'](_0x14bdef);if(_0x4deab5['delete'](_0x374f9f),!_0x2d7063)continue;const _0x27fdd0=this['hasMarkerForId'](_0x14bdef);_0x27fdd0||_0x2d7063['isSubmitted']?_0x27fdd0||_0x2d7063['unlinkedAt']||_0x2d7063['setUnlinkedAt'](new Date()):_0x2d7063['remove']();}_0x479d33['clear']();});}['_handleInitialThreads'](_0x503d60){_0x503d60['forEach'](_0x44bc44=>{_0x44bc44['unlinkedAt']&&this['_attachArchivedThread'](_0x44bc44['id']);});}['_getTargetForId'](_0x3d44e8){const _0x13e621=this['editor'],_0x27f4a1=this['getAllMarkersForId'](_0x3d44e8);return et(_0x13e621['editing'],_0x27f4a1);}['_getTextContext'](_0x4dec57){const _0x92c9c5=this['getAllMarkersForId'](_0x4dec57);let _0x32ffa8='',_0x461794=!0x1;for(const _0x1f1559 of _0x92c9c5){const _0x341518=_0x1f1559['getRange']();for(const _0x1fb789 of Array['from'](_0x341518['getItems']()))_0x1fb789['is']('$textProxy')?(_0x32ffa8&&_0x461794&&(_0x32ffa8+='\x20',_0x461794=!0x1),_0x32ffa8+=_0x1fb789['data']):_0x461794=!0x0;_0x461794=!0x0;}return _0x32ffa8['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x57f075,_0x4e2642){const _0x56e533=this['editor'],_0x37dfac=_0x56e533['plugins']['get'](o);let _0x546032=_0x37dfac['getCommentThread'](_0x4e2642);const _0x3174d4=_0x56e533['config']['get']('collaboration.channelId'),_0x4875ed=_0x56e533['plugins']['get'](P);if(_0x546032&&(_0x546032['unlinkedAt']&&_0x546032['setUnlinkedAt'](null),_0x546032['isAttached']))return _0x546032;return!this['getAllMarkersForId'](_0x4e2642)[0x0]['managedUsingOperations']?_0x56e533['editing']['view']['once']('render',()=>{if(_0x37dfac['getCommentThread'](_0x4e2642))return;const _0x65a576=_0x56e533['plugins']['get'](N);_0x546032=_0x37dfac['openNewCommentThread']({'channelId':_0x3174d4,'threadId':_0x4e2642,'target':()=>this['_getTargetForId'](_0x4e2642),'context':{'type':'text','value':this['_getTextContext'](_0x4e2642)}});const _0x4758db=_0x37dfac['_threadToController']['get'](_0x546032)['view'],_0x1f86f5=_0x65a576['getByInnerView'](_0x4758db);_0x1f86f5&&_0x4875ed['registerAnnotation'](_0x1f86f5);},{'priority':'low'}):_0x37dfac['fetchCommentThread']({'channelId':_0x3174d4,'threadId':_0x4e2642})['then'](_0x55d1bd=>{if('destroyed'!==_0x56e533['state']){if(_0x546032=_0x55d1bd,_0x546032&&!_0x546032['isAttached']){const _0x391c9c=_0x546032['attachTo'](()=>this['_getTargetForId'](_0x4e2642));_0x4875ed['registerAnnotation'](_0x391c9c),_0x546032['isResolved']&&this['_reconvertMarkers'](_0x4e2642);}else{if(!_0x546032){const _0x336bd4=this['getAllMarkersForId'](_0x4e2642);_0x56e533['model']['change'](_0x25e4c4=>{for(const _0x57be64 of _0x336bd4)_0x25e4c4['removeMarker'](_0x57be64);});}}}}),_0x546032;}['_handleThreadMarker'](_0x1c7e27,_0x1331f8){const _0x4dc9d3=this['_attachMarkerToThread'](_0x1c7e27,_0x1331f8);_0x4dc9d3&&!_0x4dc9d3['context']&&_0x4dc9d3['setContext']({'type':'text','value':this['_getTextContext'](_0x1331f8)});}['_initAriaMarkerChangeAnnouncements'](){const _0x1c591a=this['editor'];ot(_0x1c591a['model'],({left:_0x22a38b,entered:_0x285af4})=>{for(const _0x1923a7 of _0x22a38b)if(mt(_0x1923a7)){_0x1c591a['ui']['ariaLiveAnnouncer']['announce'](S(_0x1c591a['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x29b2bf of _0x285af4)if(mt(_0x29b2bf)){_0x1c591a['ui']['ariaLiveAnnouncer']['announce'](S(_0x1c591a['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x290a9e)));break;}});}}function ft(_0x41988b,_0x52e4ec){return _0x52e4ec?_0x41988b+':'+_0x52e4ec:_0x41988b;}function er(_0x5cae72){const _0x35a0c5=_0x5cae72['split'](':');return{'group':_0x35a0c5[0x0],'id':_0x35a0c5[0x1],'part':_0x35a0c5[0x2]};}function dt(_0x587f71,_0x4547ad){const _0xc842f8=_0x4547ad['schema'],_0x6705dd=_0x4547ad['createRange'](_0x587f71['start']);for(const _0x43e11c of _0x587f71['getWalker']()){const {type:_0x40d8d3,item:_0x239b83,nextPosition:_0x5df665}=_0x43e11c;if('text'===_0x40d8d3||_0xc842f8['isObject'](_0x239b83)){const _0x1b9eb4=_0x4547ad['createPositionBefore'](_0x239b83);_0x6705dd['isCollapsed']&&(_0x6705dd['start']=_0x1b9eb4),_0x6705dd['end']=_0x5df665;}}return _0x6705dd;}function mt(_0x2315df){return'comment'===er(_0x2315df['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-2025,\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 _0x31ad87{['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 _0xe3b7b0=this['editor'],_0x493ad2=_0xe3b7b0['plugins']['get'](o),_0x110899=_0xe3b7b0['plugins']['get'](r),_0x260fae=_0xe3b7b0['plugins']['get'](N),_0x2f3fa0=_0xe3b7b0['plugins']['get'](P);_0xe3b7b0['ui']['componentFactory']['add']('comment',()=>{const _0x557c32=this['_createUIButton'](_0x4752b8);return _0x557c32['tooltip']=!0x0,_0x557c32;}),_0xe3b7b0['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x9e1f8c)),_0x2f3fa0['addSourceCollector'](()=>{const _0x3776a0=[];for(const [_0x286c5b,_0xcf8b64]of _0x493ad2['_threadToController']){const _0x10ae21=_0x110899['getAllMarkersForId'](_0x286c5b['id']),_0x24f89f=_0x10ae21['map'](_0x1132df=>_0x1132df['getRange']());_0x10ae21['length']>0x0&&_0x3776a0['push']([_0xcf8b64['view'],_0x24f89f]);}return _0x3776a0;}),this['listenTo'](_0x260fae,'change:activeAnnotations',(_0x116b0e,_0xbc1dcf,_0x5dbe36)=>{const _0xc095c9=Array['from'](_0x5dbe36)['map'](_0x4aeaed=>_0x4aeaed['innerView'])['find'](_0x5af36c=>_0x493ad2['_viewToController']['has'](_0x5af36c));if(!_0xc095c9)return void(_0x110899['activeMarker']=null);const _0x4ea926=_0x493ad2['_viewToController']['get'](_0xc095c9)['model']['id'],_0x4dcfd6='comment:'+_0x4ea926;_0x4ea926&&_0x110899['hasMarkerForId'](_0x4ea926)?_0x110899['activeMarker']=_0x4dcfd6:_0x110899['activeMarker']&&(_0x110899['activeMarker']=null);}),this['listenTo'](_0x493ad2,'removeCommentThread',(_0x5a20c4,{threadId:_0x5c06c6,isFromAdapter:_0x3e32c8})=>{!_0x3e32c8&&_0xe3b7b0['ui']['focusTracker']['isFocused']&&_0x110899['hasMarkerForId'](_0x5c06c6)&&_0xe3b7b0['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x493ad2,'addComment',(_0x334d25,{threadId:_0x476287,isFromAdapter:_0x185b43})=>{if(_0x185b43||!_0x110899['hasMarkerForId'](_0x476287)||!_0x493ad2['hasCommentThread'](_0x476287))return;0x1===_0x493ad2['getCommentThread'](_0x476287)['length']&&(_0xe3b7b0['editing']['view']['focus'](),_0x334d25['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x17eeab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4dd918;for(const _0x4cba62 in _0x17eeab){const _0x13d753=_0x4cba62,_0x39e7e6=_0x17eeab[_0x13d753];if('commentsLicenseKeyValid'==_0x39e7e6||'commentsLicenseKeyInvalid'==_0x39e7e6||'commentsLicenseKeyExpired'==_0x39e7e6||'commentsLicenseKeyDomainLimit'==_0x39e7e6||'commentsLicenseKeyNotAllowed'==_0x39e7e6||'commentsLicenseKeyEvaluationLimit'==_0x39e7e6||'commentsLicenseKeyTrialLimit'==_0x39e7e6||'commentsLicenseKeyUsageLimit'==_0x39e7e6){delete _0x17eeab[_0x13d753],_0x4dd918=_0x39e7e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4dd918&&_0x17eeab['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4dd918&&_0x17eeab['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4dd918&&_0x17eeab['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4dd918&&_0x17eeab['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4dd918&&_0x17eeab['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4dd918&&_0x17eeab['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x4dd918&&_0x17eeab['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x27382b){const _0x4cde6f=this['editor'],_0x102a9b=new _0x27382b(_0x4cde6f['locale']),_0x4fae68=_0x4cde6f['commands']['get']('addCommentThread');return _0x102a9b['set']({'label':S(_0x4cde6f['locale'],'Comment'),'icon':xt}),_0x102a9b['bind']('isEnabled')['to'](_0x4fae68),this['listenTo'](_0x102a9b,'execute',()=>{_0x4cde6f['editing']['view']['focus'](),_0x4fae68['execute']();}),_0x102a9b;}}class s extends _0x31ad87{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x37d290){super(_0x37d290),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x28cd7a,_0x558c10,_0x37dc7b)=>{_0x37dc7b?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x27dbac,_0xe4c0a0]of this['editor']['commands'])_0xe4c0a0['affectsData']&&'addCommentThread'!==_0x27dbac&&_0xe4c0a0['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x35b16e=this['editor']['editing']['view']['document'];this['listenTo'](_0x35b16e,'cut',_0x2d09d9=>_0x2d09d9['stop'](),{'priority':'highest'}),this['listenTo'](_0x35b16e,'clipboardInput',_0x19b920=>_0x19b920['stop'](),{'priority':'highest'}),this['listenTo'](_0x35b16e,'delete',_0x1cff15=>_0x1cff15['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x36e255,_0x4bd171]of this['editor']['commands'])_0x4bd171['affectsData']&&'addCommentThread'!==_0x36e255&&_0x4bd171['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x522213{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49b5a6){super(_0x49b5a6),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x5a1bd2=this['context']['plugins']['get'](N);this['listenTo'](_0x5a1bd2,'_activateAnnotation',(_0x2b4866,_0x5b0122)=>{for(const _0x5f2aeb of this['activeUIs']){const _0x2751ef=this['_uis']['get'](_0x5f2aeb);(0x0,this['_uisData']['get'](_0x5f2aeb)['filter'])(_0x5b0122)&&_0x2751ef['setActiveAnnotation'](_0x5b0122);}}),this['listenTo'](_0x5a1bd2,'_deactivateAllAnnotations',()=>{for(const _0x41a15d of this['activeUIs']){this['_uis']['get'](_0x41a15d)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5a1bd2['_visibleAnnotations'],'add',(_0x109372,_0x58710f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x58710f);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3b70eb){return this['activeUIs']['has'](_0x3b70eb);}['activate'](_0x514808,_0x459664=()=>!0x0){const _0x37ee09=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x514808))throw new _0x1d5645('annotationsuis-missing-ui',this,{'uiName':_0x514808});this['isActive'](_0x514808)&&this['deactivate'](_0x514808),this['activeUIs']['add'](_0x514808);const _0x25ba8f=new x();!function({source:_0x2695d0,target:_0x39c9be,filter:_0x3a1abb}){for(const _0x59d50d of _0x2695d0)_0x3a1abb(_0x59d50d)&&_0x39c9be['add'](_0x59d50d);_0x39c9be['listenTo'](_0x2695d0,'add',(_0x13338b,_0x34dd8d)=>{_0x3a1abb(_0x34dd8d)&&_0x39c9be['add'](_0x34dd8d);}),_0x39c9be['listenTo'](_0x2695d0,'remove',(_0xb66385,_0x5bddae)=>{_0x39c9be['has'](_0x5bddae)&&_0x39c9be['remove'](_0x5bddae);});}({'source':_0x37ee09['_visibleAnnotations'],'target':_0x25ba8f,'filter':_0x459664}),this['_uisData']['set'](_0x514808,{'collection':_0x25ba8f,'filter':_0x459664});const _0x64bced=this['_uis']['get'](_0x514808);_0x64bced['attach'](_0x25ba8f),this['listenTo'](_0x64bced,'change:activeAnnotation',(_0x29feaf,_0x41dfdb,_0x3a32d9,_0x3b018d)=>{_0x3b018d&&_0x37ee09['_removeActiveAnnotation'](_0x3b018d),_0x3a32d9&&_0x37ee09['_addActiveAnnotation'](_0x3a32d9);});}['deactivate'](_0x31af60){if(this['activeUIs']['delete'](_0x31af60),!this['_uis']['has'](_0x31af60))throw new _0x1d5645('annotationsuis-missing-ui',this,{'uiName':_0x31af60});const _0x580362=this['_uis']['get'](_0x31af60);_0x580362['detach'](),this['stopListening'](_0x580362),this['_uisData']['get'](_0x31af60)['collection']['destroy'](),this['_uisData']['delete'](_0x31af60);}['switchTo'](_0x42959e){if(!this['_uis']['has'](_0x42959e))throw new _0x1d5645('annotationsuis-missing-ui',this,{'uiName':_0x42959e});const _0x48eff8=this['context']['plugins']['get'](N),_0x4a691e=Array['from'](_0x48eff8['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x42959e);const _0x2fe40=this['_uis']['get'](_0x42959e);_0x2fe40['setActiveAnnotation'](_0x4a691e),_0x2fe40['_setSelectedAnnotations']&&_0x4a691e&&_0x2fe40['_setSelectedAnnotations']([_0x4a691e]);}['deactivateAll'](){for(const _0x4c7803 of this['activeUIs'])this['deactivate'](_0x4c7803);}['register'](_0x224038,_0x3ceabd){if(this['_uis']['has'](_0x224038))throw new _0x1d5645('annotationsuis-register-already-registered');if('function'!=typeof _0x3ceabd['attach']||'function'!=typeof _0x3ceabd['detach']||'function'!=typeof _0x3ceabd['setActiveAnnotation'])throw new _0x1d5645('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x224038,_0x3ceabd);}['refilterAnnotations'](){const _0x45b882=this['context']['plugins']['get'](N)['collection'],_0x5a42be=new Map(),_0x26c5d4=Array['from'](this['activeUIs']);for(const _0x4a18a1 of this['activeUIs']){const _0x5deb77=this['_uisData']['get'](_0x4a18a1)['collection'];for(const _0x14b4c5 of _0x5deb77)_0x5a42be['set'](_0x14b4c5,_0x4a18a1);}for(const _0x4bd1a6 of _0x45b882){const _0x58cb69=_0x5a42be['get'](_0x4bd1a6);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4bd1a6);const _0x56bf6a=_0x26c5d4['find'](_0x13df2f=>this['_uisData']['get'](_0x13df2f)['filter'](_0x4bd1a6));_0x58cb69!==_0x56bf6a&&(_0x58cb69&&this['_uisData']['get'](_0x58cb69)['collection']['remove'](_0x4bd1a6),_0x56bf6a&&this['_uisData']['get'](_0x56bf6a)['collection']['add'](_0x4bd1a6));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2d5e39){const _0x310cb1=[];for(const _0x18ad0f of this['activeUIs']){(0x0,this['_uisData']['get'](_0x18ad0f)['filter'])(_0x2d5e39)&&_0x310cb1['push'](_0x18ad0f);}if(_0x310cb1['length']>0x1)throw new _0x1d5645('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x310cb1,'annotationType':_0x2d5e39['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0xe38872){super(_0xe38872);const _0x2fcf51=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 _0x3df93e(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2fcf51['to']('class')],'style':{'minHeight':_0x2fcf51['to']('minHeight',_0x2e98e1=>'number'==typeof _0x2e98e1?he(_0x2e98e1+0xa):null)},'dir':_0xe38872['uiLanguageDirection'],'role':'application','aria-label':S(_0xe38872,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0xe38872,'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',_0xb9a161=>{this['_updateItemPositionInFocusables'](_0xb9a161['source']);}),this['list']['forEach'](_0x5b6409=>{this['focusTracker']['add'](_0x5b6409['element']),this['_updateItemPositionInFocusables'](_0x5b6409);}),this['list']['on']('change',(_0x16c23d,_0x510883)=>{for(const _0x15cfac of _0x510883['removed'])this['focusTracker']['remove'](_0x15cfac['element']),this['focusables']['remove'](_0x15cfac);for(const _0x2ef3b2 of _0x510883['added'])this['focusTracker']['add'](_0x2ef3b2['element']),this['_updateItemPositionInFocusables'](_0x2ef3b2);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0xef891b){const _0x3f74dc=this['focusables']['getIndex'](_0xef891b);let _0x39fb37,_0x417759;for(const _0x555809 of this['focusables'])if(_0xef891b['top']<_0x555809['top']){_0x39fb37=_0x555809;break;}if(_0x417759=_0x39fb37?this['focusables']['getIndex'](_0x39fb37):this['focusables']['length'],-0x1!==_0x3f74dc){if(_0x3f74dc===_0x417759-0x1)return;this['focusables']['remove'](_0xef891b),_0x417759=_0x39fb37?this['focusables']['getIndex'](_0x39fb37):this['focusables']['length'];}this['focusables']['add'](_0xef891b,_0x417759);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2ea49f){super(_0x2ea49f),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x65e815,_0x3889d0)=>_0x65e815+_0x3889d0),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x6bd06f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x6bd06f['to']('isAnimationDisabled',_0xd9c522=>_0xd9c522?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x6bd06f['to']('top',_0x10f95e=>qt(_0x10f95e))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3203b6=this['element']['clientHeight'];_0x3203b6&&(this['height']=_0x3203b6);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x522213{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x229d0c){super(_0x229d0c),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 _0x95dccc=this['context']['config']['get']('sidebar.container');_0x95dccc&&this['setContainer'](_0x95dccc);}['setContainer'](_0x95746f){if(!y(_0x95746f))throw new _0x1d5645('sidebar-setcontainer-invalid-element');this['container']=_0x95746f;}['_attachToContainer']({viewClass:_0x2663ff='',spaceBetweenItems:_0x184708=0x19}={}){if(!y(this['container']))throw new _0x1d5645('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x2663ff,this['_spaceBetweenItems']=_0x184708;}['rearrange']({removedAnnotation:_0x13b631,previousAnnotation:_0x5c30bd,nextAnnotation:_0x2201dd}){const _0x1d8f72=this['getSidebarItemView'](_0x13b631);this['view']['list']['remove'](_0x1d8f72),this['_destroySidebarItemView'](_0x13b631),_0x5c30bd&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5c30bd)),_0x2201dd&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2201dd)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3c82bb,activatedAnnotation:_0x4ffc66,disableAnimationOnActivatedAnnotation:_0x1649f1}){if(this['_activeAnnotation']=_0x4ffc66,_0x3c82bb){_0x3c82bb['isActive']=!0x1;const _0x17d0e9=this['getSidebarItemView'](_0x3c82bb);_0x17d0e9&&_0x1649f1&&(_0x17d0e9['isAnimationDisabled']=!0x1);}if(_0x4ffc66){const _0xb94946=this['getSidebarItemView'](_0x4ffc66);_0xb94946&&(_0x4ffc66['isActive']=!0x0,_0x1649f1&&(_0xb94946['isAnimationDisabled']=!0x0,_0xb94946['top']+=0x1),this['_alignToTargetRect'](_0xb94946));}}['_detachFromContainer'](_0x585bad){if(this['view']['element']['remove'](),_0x585bad){for(const _0x3974b0 of _0x585bad)this['_destroySidebarItemView'](_0x3974b0);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5a2808,_0x3d018d){_0x3d018d||(_0x3d018d=_0x5a2808['view']);const _0x33931a=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x33931a,_0x5a2808),this['_annotationToSidebarItemView']['set'](_0x5a2808,_0x33931a),_0x33931a['content']['add'](_0x3d018d),this['listenTo'](_0x5a2808['view'],'change:targetRect',(_0x5832ae,_0x3fd4c6,_0x204bb7)=>{const _0x5d988b=this['_getTargetTop'](_0x5a2808,_0x204bb7);_0x33931a['_targetTop']!=_0x5d988b&&(_0x33931a['_targetTop']=_0x5d988b,this['_setItemTop'](_0x33931a,_0x5d988b));}),this['listenTo'](_0x33931a,'change:top',()=>{this['_recalculate'](_0x33931a,'top');}),this['listenTo'](_0x33931a,'change:bottom',()=>{this['_recalculate'](_0x33931a,'bottom');}),this['_alignToTargetRect'](_0x33931a);const _0x1d8bdd=this['_getItemBefore'](_0x33931a);if(_0x1d8bdd)this['_alignAfterItem'](_0x1d8bdd,_0x33931a)||this['_alignToTargetRect'](_0x33931a);else this['_alignToTargetRect'](_0x33931a);return this['_updateLastItem'](),this['view']['list']['add'](_0x33931a),_0x33931a;}['_alignForTopChange'](_0x55fd5f){if(!_0x55fd5f['content']['length'])return;const _0x4d7ebf=this['_getItemBefore'](_0x55fd5f);if(!_0x4d7ebf)return;const _0x55d371=this['_sidebarItemViewToAnnotation']['get'](_0x4d7ebf),_0x1ce5a7=this['_activeAnnotation'];_0x1ce5a7&&_0x1ce5a7===_0x55d371?this['_alignAfterItem'](_0x4d7ebf,_0x55fd5f):this['_alignBeforeItem'](_0x55fd5f,_0x4d7ebf);}['_alignForBottomChange'](_0x2cc195){if(!_0x2cc195['content']['length'])return;const _0x6886f7=this['_getItemAfter'](_0x2cc195);if(!_0x6886f7)return;const _0x143e55=this['_sidebarItemViewToAnnotation']['get'](_0x6886f7),_0x1f5931=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x50c64f=this['_activeAnnotation'];_0x50c64f&&_0x50c64f===_0x143e55&&_0x1f5931?(this['_alignBeforeItem'](_0x6886f7,_0x2cc195),this['_alignAfterItem'](_0x2cc195,_0x6886f7)):_0x50c64f&&_0x50c64f===_0x143e55?this['_alignBeforeItem'](_0x6886f7,_0x2cc195):this['_alignAfterItem'](_0x2cc195,_0x6886f7);}['_recalculate'](_0xde035f,_0x251117){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2b15df,changedProp:_0x2e5a3e}of this['_recalculateBuffer'])'top'===_0x2e5a3e?this['_alignForTopChange'](_0x2b15df):this['_alignForBottomChange'](_0x2b15df);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0xde035f,'changedProp':_0x251117});}['getSidebarItemView'](_0x1d9ce7){return this['_annotationToSidebarItemView']['get'](_0x1d9ce7);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5debd8){const _0x4bed04=this['getSidebarItemView'](_0x5debd8);this['stopListening'](_0x4bed04),this['stopListening'](_0x5debd8['view']),_0x4bed04['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5debd8),this['_sidebarItemViewToAnnotation']['delete'](_0x4bed04);}['_createSidebarView'](){const _0x519596=new V(this['context']['locale']);return _0x519596['render'](),this['on']('change:_lastItem',(_0x406140,_0x378247,_0x29264b,_0x4433ba)=>{_0x4433ba&&_0x519596['unbind']('minHeight'),_0x29264b?_0x519596['bind']('minHeight')['to'](_0x29264b,'bottom'):_0x519596['minHeight']=null;}),_0x519596;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5ee62d){const _0x1cbc8b=this['_sidebarItemViewToAnnotation']['get'](_0x5ee62d),_0x142660=_0x1cbc8b&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1cbc8b)-0x1);return _0x142660&&this['getSidebarItemView'](_0x142660)||null;}['_getItemAfter'](_0x22a8da){const _0x13a9f0=this['_sidebarItemViewToAnnotation']['get'](_0x22a8da),_0x3bf60a=_0x13a9f0&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x13a9f0)+0x1);return _0x3bf60a&&this['getSidebarItemView'](_0x3bf60a)||null;}['_alignBeforeItem'](_0xa097cf,_0xdfcb81){_0xa097cf['updateHeight']();const _0x3874cd=R(_0xdfcb81['bottom']+this['_spaceBetweenItems'],_0xa097cf['top']);return!!_0x3874cd&&(this['_setItemTop'](_0xdfcb81,_0xdfcb81['top']-_0x3874cd),!0x0);}['_alignAfterItem'](_0x1c1b3c,_0x4c2c68){_0x1c1b3c['updateHeight']();const _0x585fcf=R(_0x1c1b3c['bottom']+this['_spaceBetweenItems'],_0x4c2c68['top']);return!!_0x585fcf&&(this['_setItemTop'](_0x4c2c68,_0x4c2c68['top']+_0x585fcf,!0x1),!0x0);}['_alignToTargetRect'](_0xdeda19){const _0x3a6b3b=this['_sidebarItemViewToAnnotation']['get'](_0xdeda19);if(!_0x3a6b3b||!_0x3a6b3b['target']||!_0x3a6b3b['targetRect'])return;const _0x22a9df=this['_getTargetTop'](_0x3a6b3b,_0x3a6b3b['targetRect']);this['_setItemTop'](_0xdeda19,_0x22a9df);}['_getTargetTop'](_0x2cfd99,_0x573c37){if(null===_0x573c37)return 0x0;if(_0x2cfd99['target']instanceof _0xe31f70)return _0x573c37['top'];{const _0x1297f5=new _0xe31f70(this['view']['element'])['top'];return _0x573c37['top']-_0x1297f5;}}['_setItemTop'](_0xd47a72,_0x392f8c,_0x351c62=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x351c62&&(_0x392f8c=Math['max'](_0x392f8c,this['_getMaxAvailableTop'](_0xd47a72))),_0xd47a72['top']=_0x392f8c;}['_getMaxAvailableTop'](_0x517970){let _0x3608e6=this['_getItemBefore'](_0x517970),_0x1c8ce5=0x0;for(;_0x3608e6;)_0x3608e6['updateHeight'](),_0x1c8ce5+=this['_spaceBetweenItems']+_0x3608e6['height'],_0x3608e6=this['_getItemBefore'](_0x3608e6);return _0x1c8ce5;}}function R(_0x55adad,_0x42e07e){return Math['max'](_0x55adad-_0x42e07e,0x0);}function y(_0x2c9b92){return null!==_0x2c9b92&&'object'==typeof _0x2c9b92&&0x1===_0x2c9b92['nodeType'];}class e extends _0x522213{['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(_0x13386b){super(_0x13386b),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x37a79d(),this['_refreshPositioningDebounced']=_0x4199ce(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x4d76c0=this['context']['plugins']['get'](M),_0x4fc384=this['context']['plugins']['get'](z);_0x4d76c0['register']('wideSidebar',this),_0x4fc384['container']&&_0x4d76c0['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x2870e3){if(_0x2870e3===this['activeAnnotation'])return;const _0x12f2d6=this['context']['plugins']['get'](z);_0x12f2d6['_activeAnnotation']=_0x2870e3;const _0x725141=this['activeAnnotation'];_0x12f2d6['refresh']({'blurredAnnotation':_0x725141,'activatedAnnotation':_0x2870e3}),this['activeAnnotation']=_0x2870e3;}['attach'](_0x29b457){this['annotations']=_0x29b457;const _0xfcc5fc=this['context']['plugins']['get'](z);if(_0xfcc5fc['_annotations']=_0x29b457,this['isAttached'])throw new _0x1d5645('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xfcc5fc,'set:container',()=>{this['detach'](),this['listenTo'](_0xfcc5fc,'change:container',_0x5155ed=>{_0x5155ed['off'](),this['attach'](_0x29b457);});}),_0xfcc5fc['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x97f112=_0x1b6ad5=>{_0x1b6ad5['updateTargetRect'](),_0xfcc5fc['addAnnotation'](_0x1b6ad5);};for(const _0x25154b of _0x29b457)_0x97f112(_0x25154b);this['listenTo'](_0x29b457,'add',(_0x30f12d,_0x5090fa)=>{_0x97f112(_0x5090fa);}),this['listenTo'](_0x29b457,'remove',(_0x2fe402,_0x233d96,_0xf5fc7)=>{_0xfcc5fc['rearrange']({'removedAnnotation':_0x233d96,'previousAnnotation':_0x29b457['get'](_0xf5fc7-0x1),'nextAnnotation':_0x29b457['get'](_0xf5fc7+0x1)}),_0x233d96===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x29b457,'focus',(_0x577169,_0x4821a3)=>{this['setActiveAnnotation'](_0x4821a3);}),this['listenTo'](_0x29b457,'blur',()=>{this['setActiveAnnotation'](null);});const _0x556820=this['context']instanceof _0x34e4b6?this['context']['editors']:new _0x37a79d([this['context']]);for(const _0x281d3d of _0x556820)this['_integrateWithEditorAnnotations'](_0x281d3d);this['listenTo'](_0x556820,'add',(_0x1e0d98,_0x4738b7)=>{this['listenTo'](_0x4738b7,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4738b7);});}),this['listenTo'](_0x556820,'remove',(_0x430c4d,_0x43c2c2)=>{_0x43c2c2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x43c2c2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x1d5645('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x215ab3=this['context']['plugins']['get'](z);_0x215ab3['_detachFromContainer'](this['annotations']),this['stopListening'](_0x215ab3),this['stopListening'](this['annotations']),this['context']instanceof _0x34e4b6&&this['stopListening'](this['context']['editors']);for(const _0x454d16 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x454d16);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0xef9540){if(!_0xef9540['plugins']['has']('EditorAnnotations'))return;const _0x44364d=_0xef9540['plugins']['get']('EditorAnnotations'),_0xe4f144=()=>{const _0x1a1b2a=_0x44364d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x1a1b2a[0x0]||null);};this['listenTo'](_0x44364d,'refresh',_0xe4f144),this['listenTo'](_0x44364d,'blur',(_0x3922dc,{isAnnotationTracked:_0x4f60b3})=>{this['activeAnnotation']&&_0x4f60b3(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x44364d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x53b9ed=>{_0x44364d['hasDomSelection']()&&(_0xe4f144(),_0x53b9ed['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x44364d);}['_destroyEditorAnnotationsIntegration'](_0x424c78){this['stopListening'](_0x424c78),this['_editorAnnotations']['remove'](_0x424c78);}}class D extends _0x4752b8{['counterView'];constructor(_0x30ab66){super(_0x30ab66);const _0x295238=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4b99e1,_0x4599a2)=>_0x4b99e1?'...':_0x4599a2['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',_0x295238['to']('annotationType',_0x2200c8=>'ck-annotation-counter__badge--'+_0x2200c8),_0x295238['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x295238['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x522213{['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(_0x41120a){super(_0x41120a),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x133219),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x37a79d(),this['_refreshPositioningDebounced']=_0x4199ce(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x1e1ab6(this['context']['locale']),this['balloonPanelView']=new _0x3bf000(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4e6de2){this['annotations']=_0x4e6de2;const _0x12c809=this['context']['plugins']['get'](z),_0x1f3b28=this['balloonPanelView'];if(_0x12c809['_annotations']=_0x4e6de2,this['isAttached'])throw new _0x1d5645('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x12c809,'set:container',()=>{this['detach'](),this['listenTo'](_0x12c809,'change:container',_0x5159fb=>{_0x5159fb['off'](),this['attach'](_0x4e6de2);});}),_0x12c809['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x104796=_0x1c2988=>{const _0x26d195=new D(this['context']['locale']);_0x12c809['addAnnotation'](_0x1c2988,_0x26d195),this['_annotationToNarrowView']['set'](_0x1c2988,_0x26d195),_0x26d195['bind']('isDirty','annotationType','number')['to'](_0x1c2988['view'],'isDirty','type','length'),_0x26d195['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1f3b28['content']['first']!==_0x1c2988['view']?(this['_showBalloon'](_0x1c2988),_0x1c2988['view']['element']['focus'](),this['setActiveAnnotation'](_0x1c2988)):this['setActiveAnnotation'](null);});};for(const _0x327134 of _0x4e6de2)_0x104796(_0x327134);this['listenTo'](_0x4e6de2,'add',(_0x2aeba8,_0x23456f)=>{_0x104796(_0x23456f);}),this['listenTo'](_0x4e6de2,'remove',(_0x565cd1,_0x15a798,_0x418b5e)=>{this['_annotationToNarrowView']['get'](_0x15a798)['destroy'](),this['_annotationToNarrowView']['delete'](_0x15a798),_0x12c809['rearrange']({'removedAnnotation':_0x15a798,'previousAnnotation':_0x4e6de2['get'](_0x418b5e-0x1),'nextAnnotation':_0x4e6de2['get'](_0x418b5e+0x1)}),_0x15a798===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4e6de2,'focus',(_0x4e07d3,_0x273df0)=>{this['setActiveAnnotation'](_0x273df0);}),this['listenTo'](_0x4e6de2,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x172b30,_0x5e02ff)=>{_0x5e02ff['keyCode']===_0x1ae71a['esc']&&_0x1f3b28['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1f3b28['content']['first']),this['_hideBalloon'](),_0x5e02ff['stopPropagation'](),_0x5e02ff['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x5ae011,_0x3cdba8)=>{const _0x3f289d=_0x3cdba8['target'];_0x1f3b28['isVisible']&&_0x1f3b28['element']['contains'](_0x3f289d)||_0x12c809['view']['element']['contains'](_0x3f289d)||_0x5ae011['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x28700f=>_0x28700f['contains'](_0x3f289d))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x4c28df=this['context']instanceof _0x34e4b6?this['context']['editors']:new _0x37a79d([this['context']]);for(const _0x29943a of _0x4c28df)this['_integrateWithEditorAnnotations'](_0x29943a);this['listenTo'](_0x4c28df,'add',(_0x190033,_0x21ce14)=>{this['listenTo'](_0x21ce14,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x21ce14);});}),this['listenTo'](_0x4c28df,'remove',(_0x3546ca,_0x1cd60f)=>{_0x1cd60f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1cd60f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x42bdec){if(_0x42bdec===this['activeAnnotation'])return;const _0x22754c=this['context']['plugins']['get'](z);if(_0x22754c['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x42bdec,'disableAnimationOnActivatedAnnotation':!0x0}),_0x42bdec)_0x22754c['getSidebarItemView'](_0x42bdec)?this['_showBalloon'](_0x42bdec):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x42bdec;}['detach'](){if(!this['isAttached'])throw new _0x1d5645('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x181e59=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5509bb=>_0x5509bb['destroy']()),this['_annotationToNarrowView']['clear'](),_0x181e59['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x34e4b6&&this['stopListening'](this['context']['editors']);for(const _0x59c470 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x59c470);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'](_0x2afccf){if(!_0x2afccf['plugins']['has']('EditorAnnotations'))return;const _0x1e17c8=_0x2afccf['plugins']['get']('EditorAnnotations'),_0x2ff73f=this['context']['plugins']['get'](z),_0x52c10c=this['annotations'],_0x8624fa=this['balloonPanelView'],_0x47eaba=()=>{const _0x254822=_0x1e17c8['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x254822),this['setActiveAnnotation'](_0x254822[0x0]||null);};this['listenTo'](_0x1e17c8,'refresh',_0x47eaba),this['listenTo'](_0x1e17c8,'blur',(_0x2c8979,{isAnnotationTracked:_0x2372a6})=>{this['activeAnnotation']&&_0x2372a6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1e17c8,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x52c10c,'blur',_0x5b43c2=>{_0x1e17c8['hasDomSelection']()&&_0x5b43c2['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x4f0796,_0x3b8bff)=>{const _0x2545d8=_0x3b8bff['target'];_0x8624fa['isVisible']&&_0x8624fa['element']['contains'](_0x2545d8)||_0x2ff73f['view']['element']['contains'](_0x2545d8)||this['activeAnnotation']&&_0x1e17c8['hasDomSelection']()&&(_0x47eaba(),_0x4f0796['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1e17c8);}['_destroyEditorAnnotationsIntegration'](_0x39d2ab){_0x39d2ab&&(this['stopListening'](_0x39d2ab),this['_editorAnnotations']['remove'](_0x39d2ab));}['_setSelectedAnnotations'](_0x9b9006){for(const _0x333de2 of this['_selectedAnnotations'])_0x9b9006['includes'](_0x333de2)||this['_manuallyClosedAnnotationViews']['delete'](_0x333de2['view']);this['_selectedAnnotations']=_0x9b9006;}['_refreshPositioning'](){const _0x2455db=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x2455db['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x470f2e){if(this['_manuallyClosedAnnotationViews']['has'](_0x470f2e['view']))return;const _0xdddc79=this['balloonPanelView']['content']['first'];_0xdddc79!==_0x470f2e['view']?(_0xdddc79&&this['_detachListeners'](_0xdddc79),this['_attachListeners'](_0x470f2e['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x470f2e['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x16e70c=this['balloonPanelView']['content']['first'],_0x5d2931=_0x16e70c&&this['annotations']['getByView'](_0x16e70c);if(!_0x5d2931||!this['_annotationToNarrowView']['has'](_0x5d2931))return;const _0x229e3c=this['_annotationToNarrowView']['get'](_0x5d2931)['element'],_0x1de75a=(function(){const _0x1890ea=_0x3bf000['defaultPositions'];return[_0x1890ea['southArrowNorthEast'],_0x1890ea['northArrowSouthEast'],_0x1890ea['southArrowNorth'],_0x1890ea['northArrowSouth'],_0x1890ea['southArrowNorthWest'],_0x1890ea['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x229e3c,'positions':_0x1de75a});}['_hideBalloon'](){const _0x71abec=this['balloonPanelView'],_0x128e8a=_0x71abec['content']['first'];_0x128e8a&&(this['_detachListeners'](_0x128e8a),_0x71abec['unpin'](),_0x71abec['content']['clear']());}['_attachListeners'](_0xcbbc09){this['listenTo'](_0xcbbc09,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0xcbbc09,'Esc',(_0x2a85f3,_0x2cd425)=>{this['_manuallyClosedAnnotationViews']['add'](_0xcbbc09),this['_hideBalloon'](),_0x2cd425();});}['_detachListeners'](_0x4e127d){this['stopListening'](_0x4e127d);}}class c extends _0x31ad87{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x18cd64,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf15c20){super(_0xf15c20),_0xf15c20['editing']['view']['addObserver'](_0x202b66),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0xf15c20['plugins']['get'](_0x18cd64),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x8c7216=this['editor']['plugins']['get'](M);_0x8c7216['context']===this['editor']&&(_0x8c7216['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x3e579d,_0x35283b)=>{const _0x1868b1=this['_balloon'];if(this['isAttached']&&_0x1868b1['visibleView']){const _0x1fcfb2=this['annotations']['getByView'](_0x1868b1['visibleView']);_0x1fcfb2&&this['_closeAnnotation'](_0x1fcfb2),_0x35283b();}}));}['afterInit'](){const _0x5ad771=this['editor']['plugins']['get'](M);_0x5ad771['context']===this['editor']&&(_0x5ad771['hasActive']()||_0x5ad771['switchTo']('inline'));}['setActiveAnnotation'](_0x31818b){_0x31818b!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x31818b&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x31818b)&&this['_addAnnotationToBalloon'](_0x31818b,!0x0),_0x31818b['isActive']=!0x0),_0x31818b||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x31818b);}['attach'](_0x56909f){this['annotations']=_0x56909f;const _0x381ab0=this['editor']['plugins']['get'](M),_0x4ae6d0=this['_balloon'];if(this['isAttached'])throw new _0x1d5645('inlineannotations-attach-already-attached',this);if(_0x381ab0['context']!==this['editor'])throw new _0x1d5645('inlineannotations-not-allowed-with-context',this);const _0x4ab2ee=this['editor']['plugins']['get'](P);this['listenTo'](_0x4ab2ee,'refresh',()=>{const _0x54f6d3=_0x4ab2ee['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x4e87ca,_0x8b9fd;!this['_forceRefresh']&&(_0x4e87ca=_0x54f6d3,_0x8b9fd=this['_selectedAnnotations'],_0x4e87ca['length']===_0x8b9fd['length']&&_0x4e87ca['every'](_0x41c062=>_0x8b9fd['includes'](_0x41c062)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x54f6d3),this['setActiveAnnotation'](_0x54f6d3[0x0]||null));}),this['listenTo'](_0x4ab2ee,'blur',(_0x354c72,{isAnnotationTracked:_0x4b7ee0})=>{this['activeAnnotation']&&_0x4b7ee0(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x5ef51a,_0x2b6387,_0x5ba6d3)=>{_0x5ba6d3||this['setActiveAnnotation'](null);}),this['listenTo'](_0x56909f,'remove',(_0x616366,_0x2fbcbb)=>{this['_removeAnnotationFromBalloon'](_0x2fbcbb),_0x2fbcbb===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4ae6d0,'change:visibleView',(_0x215f98,_0x4a8e39,_0x273aee,_0xf546f6)=>{_0xf546f6&&this['stopListening'](_0xf546f6);const _0x10d48d=_0x56909f['getByView'](_0x273aee);_0x273aee&&_0x10d48d&&(this['listenTo'](_0x273aee,'change:height',()=>{_0x4ae6d0['updatePosition']();}),this['listenTo'](_0x273aee,'Esc',()=>{this['_closeAnnotation'](_0x10d48d),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x10d48d&&this['setActiveAnnotation'](_0x10d48d));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4ae6d0['visibleView']&&(_0x56909f['getByView'](_0x4ae6d0['visibleView'])&&_0x4ae6d0['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 _0x1d5645('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xf86c5f of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xf86c5f);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x287bb6){for(const _0x8dfea6 of this['_selectedAnnotations'])_0x287bb6['includes'](_0x8dfea6)||this['_manuallyClosed']['delete'](_0x8dfea6);for(const _0x59c48f of this['annotations'])_0x287bb6['includes'](_0x59c48f)||this['_removeAnnotationFromBalloon'](_0x59c48f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x2b0176 of _0x287bb6)this['_addAnnotationToBalloon'](_0x2b0176);}this['_selectedAnnotations']=_0x287bb6;}['_addAnnotationToBalloon'](_0x18104d,_0x370403=!0x1){this['_manuallyClosed']['has'](_0x18104d)||(this['_addedAnnotations']['has'](_0x18104d)||this['_balloon']['hasView'](_0x18104d['view'])||(this['_addedAnnotations']['add'](_0x18104d),this['_balloon']['add']({'stackId':_0x18104d['view']['id'],'view':_0x18104d['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x18104d)}})),_0x370403&&this['_balloon']['showStack'](_0x18104d['view']['id']));}['_getBalloonTargetForAnnotation'](_0x57049b){const _0x557dff=_0x57049b['target'],_0x1ed903=this['editor']['editing']['view'],_0x56705f=_0x1ed903['document']['selection']['getFirstRange'](),_0x14f10c=_0x1ed903['domConverter']['viewRangeToDom'](_0x56705f);if(_0x14f10c['collapse'](!0x0),_0x557dff){if(_0x557dff instanceof _0xe31f70)return _0x557dff;let _0x41cfc3=[];for(const _0x4ef59d of _0x557dff)_0x41cfc3['push'](...(_0x577ef6=_0x4ef59d['getClientRects'](),Array['from'](_0x577ef6)['map'](DOMRect['fromRect'])));_0x41cfc3=function(_0x12939a){const _0x50d496=[];let _0x327ab4=_0x12939a[0x0];for(let _0x5e0e32=0x1;_0x5e0e32<_0x12939a['length'];_0x5e0e32++)b(_0x327ab4,_0x12939a[_0x5e0e32])?_0x327ab4['width']+=_0x12939a[_0x5e0e32]['width']:(_0x50d496['push'](_0x327ab4),_0x327ab4=_0x12939a[_0x5e0e32]);return _0x50d496['push'](_0x327ab4),_0x50d496;}(_0x41cfc3);const _0x1f662f=_0x14f10c['getBoundingClientRect']();return _0x41cfc3['find'](_0xf67b27=>_0xf67b27['top']<=_0x1f662f['top']&&_0xf67b27['bottom']>=_0x1f662f['bottom']&&_0xf67b27['left']<=_0x1f662f['left']&&_0xf67b27['right']>=_0x1f662f['right'])||_0x41cfc3[0x0];}var _0x577ef6;return _0x57049b['targetRect']||_0x14f10c;}['_removeAnnotationFromBalloon'](_0x1f4117){this['_addedAnnotations']['has'](_0x1f4117)&&this['_balloon']['hasView'](_0x1f4117['view'])&&(this['_addedAnnotations']['delete'](_0x1f4117),this['_balloon']['remove'](_0x1f4117['view']));}['_closeAnnotation'](_0x3fd453){this['_manuallyClosed']['add'](_0x3fd453),this['_removeAnnotationFromBalloon'](_0x3fd453);}}function b(_0x4ef70a,_0x32a78d){return _0x4ef70a['top']===_0x32a78d['top']&&_0x4ef70a['bottom']===_0x32a78d['bottom']&&_0x4ef70a['right']===_0x32a78d['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-2025,\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(_0x54136f,_0x5d131a){super(_0x54136f),this['set']('isEmpty',!_0x5d131a['length']),this['focusTracker']=new _0x3df93e(),this['_annotationViews']=_0x5d131a,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x5d131a,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5d131a,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5d131a,'remove',(_0x1d6055,_0x404eea)=>{_0x404eea['isActive']&&this['focus'](),_0x5d131a['length']||(this['isEmpty']=!0x0);});const _0x44ef87=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x54136f,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5d131a},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x44ef87['if']('isEmpty','ck-hidden',_0x257718=>!_0x257718)]},'children':[{'text':S(_0x54136f,'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 _0x2a0f16 of this['_annotationViews'])this['focusTracker']['add'](_0x2a0f16['element']);this['_annotationViews']['on']('change',(_0x461211,{added:_0x93bf2c,removed:_0x2bbc94})=>{for(const _0x47f584 of _0x93bf2c)this['focusTracker']['add'](_0x47f584['element']);for(const _0x21f934 of _0x2bbc94)this['focusTracker']['remove'](_0x21f934['element']);});}}class f extends _0x522213{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x2e4435){super(_0x2e4435),this['archivedThreads']=new _0x37a79d();}['init'](){const _0x4bb2b1=this['context'],_0x13441e=_0x4bb2b1['plugins']['get'](o),_0x453fc2=_0x4bb2b1['plugins']['get'](N);this['listenTo'](_0x13441e,'addCommentThread',(_0x9e4a7e,{threadId:_0x5071b7})=>{const _0x34516a=_0x13441e['getCommentThread'](_0x5071b7);_0x34516a['archivedAt']&&this['archivedThreads']['add'](_0x34516a,this['_calculatePosition'](_0x34516a['archivedAt'])),this['listenTo'](_0x34516a,'change:archivedAt',(_0x1eda29,_0x5c113f,_0x25073a)=>{_0x25073a?this['archivedThreads']['has'](_0x34516a)||this['archivedThreads']['add'](_0x34516a,this['_calculatePosition'](_0x34516a['archivedAt'])):this['archivedThreads']['has'](_0x34516a)&&this['archivedThreads']['remove'](_0x34516a);});}),this['listenTo'](_0x13441e,'removeCommentThread',(_0x81539d,{threadId:_0x1d688c})=>{const _0x761e8c=_0x13441e['getCommentThread'](_0x1d688c);this['stopListening'](_0x761e8c),this['archivedThreads']['has'](_0x761e8c)&&this['archivedThreads']['remove'](_0x761e8c);},{'priority':'highest'}),this['listenTo'](_0x453fc2['collection'],'focus',(_0x46f477,_0x4235cb)=>{_0x4235cb['isVisible']||(_0x4235cb['isActive']=!0x0,_0x453fc2['activate'](_0x4235cb));});}['_calculatePosition'](_0x1ed922){const _0x3c1f17=[...this['archivedThreads']]['findIndex'](_0x403b46=>_0x403b46['archivedAt']<_0x1ed922);return _0x3c1f17>-0x1?_0x3c1f17:this['archivedThreads']['length'];}}class a extends _0x31ad87{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x48f606];}constructor(_0x5cb267){super(_0x5cb267),this['annotationViews']=new _0x327dd6(),this['_pendingThreads']=[];}['init'](){const _0x6d3db7=this['editor'],_0x5e340b=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x6d3db7['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x4752b8,!0x0)),_0x6d3db7['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x136510=this['_createCommentsArchiveButton'](_0x9e1f8c);return _0x136510['set']({'role':'menuitemcheckbox'}),_0x136510;});const _0x10d008=_0x6d3db7['plugins']['get'](f),_0x1ca9d2=_0x6d3db7['plugins']['get']('Annotations'),_0x1b8b56=_0x6d3db7['plugins']['get']('CommentsRepository');_0x10d008['archivedThreads']['forEach'](_0x203e97=>{this['_handleNewThread'](_0x203e97);}),this['listenTo'](_0x10d008['archivedThreads'],'add',(_0xf7eb41,_0x561fed)=>{this['_handleNewThread'](_0x561fed);}),this['listenTo'](_0x1ca9d2['collection'],'add',(_0x1e03b4,_0x8660c0)=>{const _0x303a87=this['_pendingThreads']['find'](_0x4a76cd=>{const _0x461ae8=_0x1b8b56['_threadToController']['get'](_0x4a76cd);return _0x461ae8&&_0x8660c0['innerView']===_0x461ae8['view'];});if(_0x303a87){const _0x49686c=this['_calculatePosition'](_0x303a87['archivedAt']);this['annotationViews']['add'](_0x8660c0['view'],_0x49686c),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x303a87),0x1);}}),this['listenTo'](_0x10d008['archivedThreads'],'remove',(_0x1d1543,_0x1514b)=>{const _0x2336eb=_0x6d3db7['config']['get']('collaboration.channelId');if(!_0x2336eb||_0x1514b['channelId']===_0x2336eb){const _0x4f3789=_0x1b8b56['_threadToController']['get'](_0x1514b),_0x56e7b8=_0x1ca9d2['getByInnerView'](_0x4f3789['view']);this['annotationViews']['remove'](_0x56e7b8['view']),this['stopListening'](_0x56e7b8['focusableElements']);}}),this['listenTo'](_0x1ca9d2['collection'],'add',(_0x5aa9e2,_0x377853)=>{this['listenTo'](_0x377853,'escape',_0x5e340b);}),this['listenTo'](_0x1ca9d2['collection'],'remove',(_0x429693,_0x208fda)=>{this['stopListening'](_0x208fda,'escape',_0x5e340b);});}['_handleNewThread'](_0x2a6c6e){const _0x59a01b=this['editor']['plugins']['get']('CommentsRepository'),_0x49c1f2=this['editor']['plugins']['get']('Annotations'),_0x239894=this['editor']['config']['get']('collaboration.channelId');if(!_0x239894||_0x2a6c6e['channelId']===_0x239894){const _0x40c458=_0x59a01b['_threadToController']['get'](_0x2a6c6e);if(!_0x40c458)return void this['_pendingThreads']['push'](_0x2a6c6e);const _0x42dd22=this['_calculatePosition'](_0x2a6c6e['archivedAt']),_0x43a83d=_0x49c1f2['getByInnerView'](_0x40c458['view']);_0x43a83d['isVisible']&&_0x49c1f2['_visibleAnnotations']['remove'](_0x43a83d),this['annotationViews']['add'](_0x43a83d['view'],_0x42dd22);}}['_calculatePosition'](_0x29a8c7){const _0x144841=this['editor']['config']['get']('collaboration.channelId'),_0x2c2131=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x13ce81=>_0x13ce81['channelId']===_0x144841)['findIndex'](_0x14bf9b=>_0x14bf9b['archivedAt']<_0x29a8c7);return _0x2c2131<0x0||_0x2c2131>this['annotationViews']['length']?this['annotationViews']['length']:_0x2c2131-0x1;}['_toggleDialog'](){const _0x335ac6=this['editor'],_0x1642c2=_0x335ac6['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x335ac6['locale'],this['annotationViews'])),'commentsArchive'===_0x1642c2['id']?_0x1642c2['hide']():_0x1642c2['show']({'id':'commentsArchive','title':S(_0x335ac6['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x1de267['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0xb11745,_0x5d3c60=!0x1){const _0x58a995=this['editor']['locale'],_0x4428a4=this['editor']['plugins']['get']('Dialog'),_0x2c2afe=new _0xb11745(_0x58a995);return _0x2c2afe['bind']('isEnabled')['to'](this,'isEnabled'),_0x2c2afe['bind']('isOn')['to'](_0x4428a4,'id',_0x53be35=>'commentsArchive'===_0x53be35),_0x2c2afe['set']({'label':S(_0x58a995,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x5d3c60&&(_0x2c2afe['tooltip']=!0x0),this['listenTo'](_0x2c2afe,'execute',()=>this['_toggleDialog']()),_0x2c2afe;}['_hideDialogOnAnnotationEscape']=_0x181e9d=>{const _0x7f3a71=_0x181e9d['source'];if(!this['annotationViews']['has'](_0x7f3a71['view']))return;const _0x3e0aa2=this['editor']['plugins']['get']('Dialog');_0x3e0aa2['isOpen']&&'commentsArchive'===_0x3e0aa2['id']&&(_0x3e0aa2['hide'](),_0x181e9d['stop']());};}class p extends _0x31ad87{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,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
|
|
23
|
+
import{Editor as _0x213630,icons as _0x367246,ContextPlugin as _0x2202fd,PendingActions as ht,Command as _0x4ef206,Plugin as _0x399bf5,Context as _0x2badc3}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1c8171,uid as _0x567062,KeystrokeHandler as jt,FocusTracker as _0x44b40c,diff as _0x4e25ba,Collection as _0x3dbdfa,Rect as _0x38f653,CKEditorError as _0x18900f,first as _0xee77ec,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x2a1702,keyCodes as _0xdb3ba0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x343769,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x44c80b,ConfirmMixin as ti,LateFocusButtonView as _0x1f382a,trimHtml as _0x383a3e,LateFocusDropdownButtonView as _0x2133b5,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x5ccfe8}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x107122}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x2060e4,ViewCollection as _0xc86170,createDropdown as _0x105978,ListView as _0x554a3c,focusChildOnDropdownOpen as _0x1e9093,ListItemView as _0x38638f,MenuBarMenuListItemButtonView as _0x234f00,BodyCollection as _0x55167b,BalloonPanelView as _0x29e13a,ContextualBalloon as _0x17d05f,Dialog as _0x5e7835,DialogViewPosition as _0x31eced}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x1b0633}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 Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x2b3754}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x4ee768}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1c8171(){['model'];['view'];constructor(_0x3b8022,_0x3ddfea){super(),this['model']=_0x3b8022,this['model']['_isAttached']=!0x0,this['view']=_0x3ddfea,this['listenTo'](_0x3ddfea,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x3ddfea,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x3ddfea,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x3ddfea,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x3ddfea,'addComment',(_0x5b470e,_0x29d264)=>this['addComment'](_0x29d264)),this['listenTo'](_0x3ddfea,'updateComment',(_0x15a3c4,_0x13bb94,_0x57c526)=>this['updateComment'](_0x13bb94,_0x57c526)),this['listenTo'](_0x3ddfea,'removeComment',(_0x22f7e6,_0x59cfc0)=>this['removeComment'](_0x59cfc0));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x12391f){this['model']['addComment']({'content':_0x12391f,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x335ba5,_0x573145){this['model']['getComment'](_0x335ba5)['update']({'content':_0x573145});}['removeComment'](_0x210743){this['model']['getComment'](_0x210743)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0xc2afa4,_0x4cbbac,_0x43c9eb){const t=_0xc2afa4['t'];switch(_0x4cbbac){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'},_0x43c9eb);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'},_0x43c9eb);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'},_0x43c9eb);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'},_0x43c9eb);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x43c9eb);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'},_0x43c9eb);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'},_0x43c9eb);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'},_0x43c9eb);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 Xt extends Yt{['main'];['editable'];constructor(_0x29596c,_0x461618){super(_0x29596c);const _0x40f8b6=_0x567062();this['main']=this['createCollection'](),this['editable']=new $t(_0x29596c,_0x461618,void 0x0,{'label':()=>S(_0x29596c,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x29596c['uiLanguageDirection'],'lang':_0x29596c['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x40f8b6},'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 Vt{['view'];constructor(_0x26df81){super(_0x26df81),this['view']=new Xt(_0x26df81['locale'],_0x26df81['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1f2f86=this['editor']['editing']['view'],_0x29ab0f=this['view']['editable'],_0x59b069=_0x1f2f86['document']['getRoot']();_0x29ab0f['name']=_0x59b069['rootName'],this['view']['render']();const _0x110e8d=_0x29ab0f['element'];this['setEditableElement'](_0x29ab0f['name'],_0x110e8d),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1f2f86['attachDomRoot'](_0x110e8d),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1c8171(_0x213630){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Rt)());constructor(_0x381b95={}){function _0x558b47(_0x17552a){return _0x17552a['map'](_0x47296a=>String['fromCharCode'](_0x47296a))['join']('');}(_0x381b95=Object['assign']({},_0x381b95))['plugins']||(_0x381b95['plugins']=Ut['defaultPlugins']),super(_0x381b95),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[_0x558b47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x558b47([0x76,0x69,0x65,0x77])][_0x558b47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x558b47([0x61,0x75,0x74,0x6f]),this[_0x558b47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x558b47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x558b47([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x558b47([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x558b47([0x6f,0x6b])});}['create'](){const _0x5d031f=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5d031f))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5b412d=>{const _0x54c929=this['model']['document']['getRoot'](),_0x4300d7=_0x54c929&&_0x54c929['getChild'](_0x54c929['childCount']-0x1);_0x5b412d['setSelection'](_0x4300d7,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2b6eca=this['editing']['view'],_0x1c98f1=_0x2b6eca['document']['getRoot'](),_0x23d3c8=_0x1c98f1['getChild'](0x0);_0x1c98f1['childCount']>0x1||!_0x23d3c8||'p'!=_0x23d3c8['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x2b6eca,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x23d3c8['placeholder']=this['placeholder']),St({'view':_0x2b6eca,'element':_0x23d3c8,'keepOnFocus':!0x0}),this['placeholderElement']=_0x23d3c8);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x60ba34,_0xe6a339={}){super(_0x60ba34),this['editor']=null,this['_editorConfig']=_0xe6a339,this['set']('value',_0xe6a339['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x60ba34,'Reply...')),this['set']('submitLabel',S(_0x60ba34,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x44b40c(),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',(_0x165489,_0x548a8b)=>{this['cancelButtonView']['fire']('execute'),_0x548a8b();}),this['keystrokes']['set']('Ctrl+Enter',(_0x307e9d,_0x551268)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x551268());}),this['on']('submit',(_0xe41be7,_0x2bf9f6)=>{_0x2bf9f6['length']>0xfde8?(alert(S(_0x60ba34,'TOO_LONG_COMMENT_ALERT',[_0x2bf9f6['length'],0xfde8])),_0xe41be7['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x712e73=this['editor'];this['element']['insertBefore'](_0x712e73['ui']['element'],this['element']['firstChild']),_0x712e73['model']['document']['on']('change',()=>this['value']=_0x712e73['getData']()),_0x712e73['bind']('placeholder')['to'](this),this['focusables']['add'](_0x712e73['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1b247a){-0x1===_0x1b247a?(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:_0x252d39}=this,_0x2dec3f=new _0x2060e4(_0x252d39);return _0x2dec3f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2dec3f['withText']=!0x0,_0x2dec3f['bind']('label')['to'](this,'submitLabel'),_0x2dec3f['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2dec3f['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4a5a75,_0x14228e)=>!_0x14228e&&!!_0x4a5a75['trim']()),_0x2dec3f;}['_createCancelButton'](){const {locale:_0x361057}=this,_0x173af7=new _0x2060e4(_0x361057);return _0x173af7['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x173af7['label']=S(_0x361057,'Cancel'),_0x173af7['withText']=!0x0,_0x173af7['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x173af7;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xa95453=>{this['focusTracker']['add'](_0xa95453['element']);}),this['focusables']['on']('change',(_0x6fff31,_0x40d9cc)=>{for(const _0x43b8f5 of Array['from'](_0x40d9cc['added'])['reverse']())this['focusTracker']['add'](_0x43b8f5['element']);});}}class ie extends kt{constructor(_0x2321a3,_0x25e9fe,_0x924f79){super(_0x2321a3),this['commentInputView']=new os(_0x2321a3,_0x924f79),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x418130,_0x107dbf)=>_0x418130||!!_0x107dbf),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 _0x343769(_0x2321a3,_0x25e9fe),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'](_0x281497){this['commentInputView']['focus'](_0x281497);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x472917,_0x113d08)=>{const {submitButtonView:_0x1ae04f,cancelButtonView:_0x52c3b0,editor:_0x218cc9}=this['commentInputView'];[_0x1ae04f['element'],_0x52c3b0['element'],_0x218cc9?_0x218cc9['editing']['view']['getDomRoot']():null]['filter'](_0x5c1698=>_0x5c1698)['some'](_0x1bc2dc=>_0x1bc2dc['contains'](_0x113d08['target']))||(this['focus'](),_0x113d08['preventDefault']());});}}class cs extends kt{constructor(_0x1e26e6){super(_0x1e26e6);const _0x24a0f4=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x24a0f4['to']('count',_0xec0952=>S(_0x1e26e6,'NUMBER_OF_COMMENTS',_0xec0952))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0xbe1c94,_0x2e2856,_0xc4d6b1){super(_0xbe1c94);const _0x31614c=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x2e2856['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x2e2856,this['_config']=_0xc4d6b1,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x44b40c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1f253e=>this['commentViews']['map'](_0x389142=>_0x389142['element'])['includes'](_0x1f253e['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0xbe1c94),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x171b90=>_0x171b90-this['_config']['maxCommentsWhenCollapsed']);for(const _0x214223 of _0x2e2856['comments'])this['_handleNewCommentModel'](_0x214223);this['_handleInfoComment'](),this['listenTo'](_0x2e2856['comments'],'add',(_0x53b5d0,_0x3b1196)=>{const _0x24c7c6=this['_calculatePosition'](_0x3b1196);this['length']++,this['_handleNewCommentModel'](_0x3b1196,_0x24c7c6),this['refreshVisibleViews']();}),this['listenTo'](_0x2e2856['comments'],'remove',(_0x3a5460,_0x331d7f)=>{this['length']--,this['_handleRemoveCommentModel'](_0x331d7f),this['refreshVisibleViews']();}),this['listenTo'](_0x2e2856,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x2e2856,'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',_0x31614c['if']('length','ck-hidden',_0x2ba0aa=>!_0x2ba0aa)],'aria-label':S(_0xbe1c94,'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'](_0x2e701d){-0x1===_0x2e701d?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x10c7b0 of this['commentViews'])_0x10c7b0['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x30f813,_0x3ae766){const _0x58c53e=new this['_config']['CommentView'](this['locale'],_0x30f813,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x58c53e['viewUid']=_0x30f813['id'],_0x58c53e['delegate']('removeComment')['to'](this),_0x58c53e['delegate']('updateComment')['to'](this),_0x58c53e['delegate']('resolveCommentThread')['to'](this),_0x58c53e['delegate']('editorReady')['to'](this),_0x58c53e['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x58c53e,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x58c53e,_0x3ae766);}['_calculatePosition'](_0x2d330f){const _0x38441c=this['_model']['_findOptimalIndex'](_0x2d330f);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2d330f['authoredAt']?_0x38441c-0x1:_0x38441c:_0x38441c-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x5cb0f1={'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'],_0x5cb0f1,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x5cb0f1));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x7e3529){const _0x2ae773=this['commentViews']['remove'](_0x7e3529['id']);this['stopListening'](_0x2ae773),_0x2ae773['isEditMode']&&this['_updateHasDirtyComment'](),_0x2ae773['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2235f9=>_0x2235f9['isEditMode']);}['_rearrangeCollapse'](){const _0x1b128e=function(_0x159ff3){const _0x8cb09=new _0x3dbdfa();for(const _0x577da3 of _0x159ff3)_0x8cb09['add'](_0x577da3);return _0x8cb09;}(this['commentViews']),_0x1349ba=this['_collapsedCommentsView']['count'];for(let _0x1a9065=0x1;_0x1a9065<=_0x1349ba;_0x1a9065++)_0x1b128e['remove'](0x1);for(const _0x39cb05 of _0x1b128e)_0x39cb05['collapse']();_0x1349ba>0x0&&_0x1b128e['add'](this['_collapsedCommentsView'],0x1),as(_0x4e25ba(Array['from'](this['visibleViews']),Array['from'](_0x1b128e)),this['visibleViews'],_0x1b128e);}['_rearrangeExpand'](){as(_0x4e25ba(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x515867 of this['visibleViews'])_0x515867['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x36eadf=>{this['focusTracker']['add'](_0x36eadf['element']),this['keystrokes']['listenTo'](_0x36eadf['element']);}),this['commentViews']['on']('change',(_0x23e965,_0x5c249c)=>{for(const _0x44bd24 of _0x5c249c['removed'])this['focusTracker']['remove'](_0x44bd24['element']),this['keystrokes']['stopListening'](_0x44bd24['element']);for(const _0x5bd29d of Array['from'](_0x5c249c['added'])['reverse']())this['focusTracker']['add'](_0x5bd29d['element']),this['keystrokes']['listenTo'](_0x5bd29d['element']);});}}function as(_0x1b4f03,_0x204ad6,_0x560e65){let _0x51ba8e=0x0;for(const _0x55412e of _0x1b4f03)switch(_0x55412e){case'insert':_0x204ad6['add'](_0x560e65['get'](_0x51ba8e),_0x51ba8e),_0x51ba8e++;break;case'delete':_0x204ad6['remove'](_0x51ba8e);break;case'equal':_0x51ba8e++;}}class ls extends kt{constructor(_0x1e1b74){super(_0x1e1b74);const _0x1a00c7=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1a00c7['to']('contextValue',_0x135a99=>S(_0x1e1b74,'THREAD_CONTEXT_LABEL',_0x135a99)),'tabindex':-0x1},'children':[{'text':_0x1a00c7['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x477bcb,_0x432587){super(_0x477bcb);const _0x44ef0a=this['bindTemplate'];this['_model']=_0x432587,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x44b40c(),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',_0x3e543d=>!!_0x3e543d),this['bind']('contextValue')['to'](this['_model'],'context',_0x2e8059=>_0x2e8059&&_0x2e8059['value']?this['_trimContextValue'](_0x2e8059['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',_0x44ef0a['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 _0x572792=new _0x2060e4(this['locale']);return _0x572792['label']=S(this['locale'],'Reopen'),_0x572792['tooltip']=S(this['locale'],'Reopen'),_0x572792['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>',_0x572792['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x168e84=>!_0x168e84),_0x572792['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x30f8af,_0x1645f4)=>_0x30f8af&&_0x1645f4),_0x572792['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x572792;}['_trimContextValue'](_0x2f84e7){if(_0x2f84e7['length']<0x96)return _0x2f84e7;const _0xd1bc13=_0x2f84e7['lastIndexOf']('\x20',0x93);return _0x2f84e7['substring'](0x0,_0xd1bc13>-0x1?_0xd1bc13:0x93)+'...';}['_attachContextActions'](){const _0x1d72c6=this['element']['querySelector']('.ck-context'),_0x10dc78=_0x1d72c6['querySelector']('.ck-context__value');this['listenTo'](_0x1d72c6,'mouseenter',()=>{_0x10dc78['offsetWidth']<_0x10dc78['scrollWidth']&&_0x1d72c6['classList']['add']('overlay');}),this['listenTo'](_0x1d72c6,'mouseleave',()=>{_0x1d72c6['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x52ece8 of this['focusables'])this['focusTracker']['add'](_0x52ece8['element']),this['keystrokes']['listenTo'](_0x52ece8['element']);}['_createContextView'](){const _0x5e7998=new ls(this['locale']);return _0x5e7998['bind']('contextValue')['to'](this),_0x5e7998;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xe1300e,_0x49b2bf,_0x4402a7,_0x5747d3){super(_0xe1300e),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x49b2bf,this['_localUser']=_0x4402a7,this['_config']=_0x5747d3,this['commentThreadHeaderView']=new Zt(_0xe1300e,_0x49b2bf),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0xe1300e,S(_0xe1300e,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xe1300e,_0x49b2bf,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5747d3)),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',(_0x5cc4d9,_0x1b8ec3)=>_0x5cc4d9||!!_0x1b8ec3),this['bind']('isUnlinked')['to'](_0x49b2bf,'unlinkedAt',_0x1f7fe4=>!!_0x1f7fe4),this['bind']('ariaLabel')['to'](this,'length',_0x4a8b5c=>{const _0xd2a00c=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x4a8b5c,_0xd2a00c]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x44b40c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1addbe=>_0x1addbe['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x44c80b(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1ecbd2=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x8b3147=_0x1ecbd2['commentInputView'];return _0x1ecbd2['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x8b3147,'value',(_0x19bd9f,_0x28dcea,_0x255656,_0x58bb89,_0x4bbd80)=>!!_0x4bbd80||!!_0x58bb89&&_0x255656&&!_0x28dcea||_0x19bd9f&&_0x255656&&!_0x28dcea),_0x8b3147['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4d00d2,_0x8cc078,_0x4c01e2)=>{let _0x3cd754;return _0x3cd754=_0x4c01e2&&_0x8cc078?'Reply\x20to\x20reopen\x20discussion...':_0x4d00d2?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x3cd754);}),_0x8b3147['bind']('submitLabel')['to'](this,'length',_0x510fec=>S(this['locale'],_0x510fec?'Reply':'Comment')),_0x8b3147['on']('submit',(_0x59d940,_0x3a09b7)=>{this['fire']('addComment',_0x3a09b7),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x8b3147['on']('cancel',()=>{this['focus']();}),_0x8b3147['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x8b3147['on']('cancel',_0x3c116f=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3c116f['stop']());}),this['on']('change:isActive',(_0x4dcbbe,_0x3746de,_0x14fc07)=>{_0x14fc07||this['length']||_0x8b3147['value']||this['fire']('removeCommentThread');}),_0x1ecbd2;}}class vt extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x93063c,_0x542477,_0x861333,_0x18d3c6){super(_0x93063c,_0x542477,_0x861333,_0x18d3c6),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x93063c,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3a4995,_0x3ff549,_0x534fea)=>{_0x534fea||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x618110,_0x3056c2,_0xc6a1a3)=>{_0xc6a1a3&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0xc7853b=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0xc7853b['if']('isActive','ck-thread--active'),_0xc7853b['if']('isUnlinked','ck-thread--unlinked'),_0xc7853b['if']('isConfirm','ck-thread--remove-confirmation'),_0xc7853b['to']('actionIndicator',_0x2f0567=>_0x2f0567?'ck-thread--'+_0x2f0567:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xc7853b['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 _0x2243dc of this['commentsListView']['commentViews'])_0x2243dc['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x442ef7}=this,_0x1585fb=this['commentsListView']['commentViews']['get'](0x0);_0x1585fb===this['_boundFirstCommentView']||_0x1585fb['isSystemComment']||(this['_boundFirstCommentView']=_0x1585fb,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x1585fb,'actionIndicator',_0x152f0f=>'remove'===_0x152f0f?'remove':null),_0x1585fb['placeholder']=S(_0x442ef7,'Write\x20a\x20comment...'),_0x1585fb['removeButton']['on']('execute',_0x37f500=>{_0x37f500['stop'](),this['showConfirm'](S(_0x442ef7,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x1585fb['focus']();}),_0x1585fb['actionBar']['add'](this['resolveButton'],0x0),_0x1585fb['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x595220=new _0x1f382a(this['locale']);return _0x595220['label']=S(this['locale'],'Resolve'),_0x595220['tooltip']=S(this['locale'],'Resolve'),_0x595220['icon']=_0x367246['check'],_0x595220['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x595220['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x19110f=>!_0x19110f),_0x595220['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x533538,_0x5a8223)=>_0x533538&&!_0x5a8223),_0x595220['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x595220;}['_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 hs extends kt{constructor(_0x590631){super(_0x590631),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x4d29f7,_0x18f739,_0x5ccade)=>{this['element']['innerHTML']=_0x5ccade;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5d05a7,_0x5505fe,_0x506198){super(_0x5d05a7),this['_model']=_0x5505fe,this['_config']=_0x506198,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x5505fe,'content',_0x5505fe,'authoredAt',(_0x4a9556,_0x18d7d5)=>S(_0x5d05a7,'COMMENT_ARIA_LABEL',[_0x5505fe['author']['name'],_0x506198['formatDateTime'](_0x18d7d5),new DOMParser()['parseFromString'](_0x4a9556,'text/html')['body']['textContent'],_0x5505fe['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x5d05a7,S(_0x5d05a7,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xc86170(),this['focusTracker']=new _0x44b40c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4a908e=>_0x4a908e['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 _0x436b6b=new hs(this['locale']);return _0x436b6b['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x38d7a8,_0x16dd07)=>_0x16dd07?_0x383a3e(_0x38d7a8,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x38d7a8),_0x436b6b;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x2643f1=new os(this['locale'],this['_config']['editorConfig']);return _0x2643f1['value']=this['_model']['content'],_0x2643f1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2643f1['submitLabel']=S(this['locale'],'Save'),_0x2643f1['on']('submit',(_0x2bcf60,_0x53ec66)=>{this['fire']('updateComment',this['_model']['id'],_0x53ec66),this['switchToDisplayMode'](),this['focus']();}),_0x2643f1['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x2643f1['once']('editorReady',()=>{_0x2643f1['focus']();}),_0x2643f1['createEditor'](),_0x2643f1['delegate']('editorReady')['to'](this),_0x2643f1['delegate']('editorDestroyed')['to'](this),_0x2643f1;}['_setupKeyboardNavigation'](){const _0x4474e4=this['element'];this['keystrokes']['listenTo'](_0x4474e4);for(const _0x2bd282 of this['focusables'])this['focusTracker']['add'](_0x2bd282['element']),this['keystrokes']['listenTo'](_0x2bd282['element']);this['focusables']['on']('change',(_0x2ea16c,_0x1a15c3)=>{for(const _0x5514cd of _0x1a15c3['removed'])this['focusTracker']['remove'](_0x5514cd['element']),this['keystrokes']['stopListening'](_0x5514cd['element']);for(const _0x3809d6 of _0x1a15c3['added'])this['focusTracker']['add'](_0x3809d6['element']),this['keystrokes']['listenTo'](_0x3809d6['element']);}),this['keystrokes']['set']('enter',(_0x34e9fc,_0x35ca06)=>{_0x4474e4===_0x34e9fc['target']&&(this['focusCycler']['focusFirst'](),_0x35ca06());}),this['keystrokes']['set']('esc',(_0x151fa3,_0x5917ea)=>{_0x4474e4!==_0x151fa3['target']&&(this['focus'](),_0x5917ea());});}}class gt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(rs){['actionBar'];['userView'];constructor(_0x38a650,_0x21649d,_0x3de57e){super(_0x38a650,_0x21649d,_0x3de57e),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x38a650,'Reply...')),this['bind']('authoredAt')['to'](_0x21649d),this['bind']('resolvedAt')['to'](_0x21649d),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 _0x343769(_0x38a650,_0x21649d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x21649d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x52dc0e=this['bindTemplate'],_0x3b7b89=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x52dc0e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x52dc0e['to']('authoredAt',_0x67b7b4=>this['_config']['formatDateTime'](_0x67b7b4))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x52dc0e['if']('isEditMode','ck-comment__actions--hidden'),_0x52dc0e['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']&&_0x3b7b89['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x52dc0e['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x52dc0e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x52dc0e['if']('isEditMode','ck-comment--edit'),_0x52dc0e['if']('isSystemComment','ck-comment--info'),_0x52dc0e['to']('actionIndicator',_0x337422=>_0x337422?'ck-comment--'+_0x337422:'')],'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':_0x3b7b89}]}]};}['_createEditButton'](){const _0x5d85f3=new _0x2060e4(this['locale']);return _0x5d85f3['label']=S(this['locale'],'Edit'),_0x5d85f3['icon']=_0x367246['pencil'],_0x5d85f3['withText']=!0x0,_0x5d85f3['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x5d85f3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x59a583=>!_0x59a583),_0x5d85f3['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x5d85f3['on']('execute',()=>this['switchToEditMode']()),_0x5d85f3;}['_createRemoveButton'](){const _0x1d63b5=new _0x2060e4(this['locale']);return _0x1d63b5['label']=S(this['locale'],'Remove'),_0x1d63b5['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-2025,\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',_0x1d63b5['withText']=!0x0,_0x1d63b5['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x1d63b5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x58fe72=>!_0x58fe72),_0x1d63b5['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x1d63b5['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x1d63b5;}['_createDropdown'](){const _0x51c324=_0x105978(this['locale'],_0x2133b5),_0x5bc9b7=_0x51c324['panelView']['children'],_0x1d2f6d=new _0x554a3c(this['locale']),_0x592b1e=_0x51c324['bindTemplate'];_0x1e9093(_0x51c324,()=>this['items']['find'](_0x450f7f=>_0x450f7f['isVisible'])),_0x51c324['extendTemplate']({'attributes':{'class':[_0x592b1e['if']('isVisible','ck-hidden',_0xfcaada=>!_0xfcaada)]}});const _0x2f4bda=(_0x3874a6,_0x4274a1=-0x1)=>{const _0x508f9e=new _0x38638f(this['locale']);_0x508f9e['children']['add'](_0x3874a6);const _0x192622=_0x4274a1>-0x1?_0x4274a1:_0x1d2f6d['items']['length'];_0x1d2f6d['items']['add'](_0x508f9e,_0x192622);const _0x54cbb7=Array['from'](this['items']);_0x51c324['unbind']('isEnabled','isVisible'),_0x51c324['bind']('isEnabled')['toMany'](_0x54cbb7,'isEnabled',(..._0x456703)=>_0x456703['some'](_0x1a0269=>_0x1a0269)),_0x51c324['bind']('isVisible')['toMany'](_0x54cbb7,'isVisible',(..._0x4b6bea)=>_0x4b6bea['some'](_0x15d533=>_0x15d533));};_0x51c324['panelPosition']='sw',_0x51c324['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x367246['threeVerticalDots']});for(const _0x82ff61 of this['items'])_0x2f4bda(_0x82ff61);return _0x5bc9b7['add'](_0x1d2f6d),_0x51c324['listenTo'](this['items'],'add',(_0x3c835a,_0x52cceb,_0x3df41b)=>{_0x2f4bda(_0x52cceb,_0x3df41b);}),_0x51c324['listenTo'](this['items'],'remove',(_0x56a3da,_0x20314d,_0x131266)=>{_0x1d2f6d['items']['remove'](_0x131266);}),_0x51c324;}['_attachActions'](_0x6f2791,_0x5b462f){const _0x4df16d=_0x6f2791&&_0x6f2791['element'];_0x4df16d&&(this['listenTo'](_0x4df16d,'mouseenter',()=>this['actionIndicator']=_0x5b462f),this['listenTo'](_0x4df16d,'focus',()=>this['actionIndicator']=_0x5b462f),this['listenTo'](_0x4df16d,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4df16d,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xfdaf83=super['_createCommentInputView']();return _0xfdaf83['bind']('placeholder')['to'](this),_0xfdaf83;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x44906d){const _0x4d23db=Dt(_0x44906d,0x1e),_0x4619b2=new MutationObserver(_0x536ec0=>{for(const _0x50fcaf of _0x536ec0)('attributes'==_0x50fcaf['type']&&'class'==_0x50fcaf['attributeName']||'childList'==_0x50fcaf['type']||'characterData'==_0x50fcaf['type'])&&_0x4d23db();});return{'attach'(_0x637b63){_0x4619b2['observe'](_0x637b63,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4619b2['disconnect'](),_0x4d23db['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x2ac3d5,_0x4ae63a){super(_0x2ac3d5),this['id']=_0x567062(),this['focusTracker']=new _0x44b40c(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x57fa03,_0x2f2086)=>this['fire']('Esc',_0x2f2086)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x4ae63a),this['mainView']=_0x4ae63a;const _0xcb8a12=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0xcb8a12['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 _0x4552c6=this['element']['clientHeight'];_0x4552c6&&(this['height']=_0x4552c6);}}class d extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x1c8171(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x11b3fa,target:_0x3ddb11,type:_0x1098e9,isVisible:_0x53ee3c=!0x0}){super(),this['view']=_0x11b3fa,this['view']['element']||this['view']['render'](),this['_type']=_0x1098e9,this['_target']=_0x3ddb11,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3dbdfa([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x47ff6b,_0x24c170)=>{this['view']['focusTracker']['add'](_0x24c170);}),this['focusableElements']['on']('remove',(_0x29c9d7,_0x3ae788)=>{this['view']['focusTracker']['remove'](_0x3ae788);}),this['set']('isVisible',_0x53ee3c);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x18de00=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x18de00),_0x18de00;}get['targetRect'](){const _0x3e8582=this['target'];if(null===_0x3e8582)return null;if(_0x3e8582 instanceof _0x38f653)return _0x3e8582;const _0x1d3da8=_0x3e8582['filter'](_0x1ce307=>function(_0x12e7c6){const _0x2b6091=_0x12e7c6['offsetParent'];if(_0x2b6091)return!0x0;const _0x5db1fe=_0x12e7c6['getClientRects']()['item'](0x0);return!!_0x5db1fe;}(_0x1ce307));return 0x0===_0x1d3da8['length']?null:new _0x38f653(_0x1d3da8[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5e97b0){this['view']['isActive']=_0x5e97b0,this['view']['mainView']['isActive']=_0x5e97b0;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x1a4804){if(!(null===_0x1a4804||_0x1a4804 instanceof _0x38f653||Array['isArray'](_0x1a4804)&&_0x1a4804['every'](_0x1b1a6e=>ne(_0x1b1a6e))))throw new _0x18900f('annotation-invalid-target',null,{'target':_0x1a4804});}['_getNormalizedTarget'](){const _0x3034f0='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x3034f0)?[_0x3034f0]:_0x3034f0;}}function ne(_0x87bb2d){return null!==_0x87bb2d&&'object'==typeof _0x87bb2d&&'nodeType'in _0x87bb2d&&0x1===_0x87bb2d['nodeType'];}class x extends _0x3dbdfa{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4b9d78=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x44b40c(),this['_focusTracker']['on']('change:isFocused',(_0x90d749,_0x2d36df,_0x2e1ca7)=>{_0x2e1ca7||this['fire']('blur');});for(const _0x1c2063 of _0x4b9d78)this['add'](_0x1c2063);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x43e9cc){if(this['has'](_0x43e9cc))throw new _0x18900f('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x43e9cc['innerView'],_0x43e9cc),this['_viewToAnnotation']['set'](_0x43e9cc['view'],_0x43e9cc);for(const _0x4d2671 of _0x43e9cc['focusableElements'])this['_focusTracker']['add'](_0x4d2671);this['listenTo'](_0x43e9cc['focusableElements'],'add',(_0x319721,_0x3595ef)=>{this['_focusTracker']['add'](_0x3595ef);}),this['listenTo'](_0x43e9cc['focusableElements'],'remove',(_0x14a353,_0x23da64)=>{this['_focusTracker']['remove'](_0x23da64);}),this['listenTo'](_0x43e9cc['view']['focusTracker'],'change:isFocused',(_0x4d0fba,_0x419593,_0x163e47)=>{_0x163e47&&this['fire']('focus',_0x43e9cc);}),_0x43e9cc['updateTargetRect']();const _0x5184c0=this['_getOrderInContent'](_0x43e9cc['view']['targetRect']);return super['add'](_0x43e9cc,_0x5184c0);}['remove'](_0x9d5b20){if(!this['has'](_0x9d5b20))throw new _0x18900f('annotationcollection-not-existing-item',null);this['stopListening'](_0x9d5b20['view']['focusTracker']),this['stopListening'](_0x9d5b20['focusableElements']);for(const _0x4d9b53 of _0x9d5b20['focusableElements'])this['_focusTracker']['remove'](_0x4d9b53);return this['_viewToAnnotation']['delete'](_0x9d5b20['view']),this['_innerViewToAnnotation']['delete'](_0x9d5b20['innerView']),super['remove'](_0x9d5b20);}['getByInnerView'](_0x14c4b7){return this['_innerViewToAnnotation']['get'](_0x14c4b7);}['getByView'](_0x2777b8){return this['_viewToAnnotation']['get'](_0x2777b8);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x176684 of this)_0x176684['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2a8333=Array['from'](this)['sort']((_0x298483,_0x596c10)=>v(_0x298483['view']['targetRect'],_0x596c10['view']['targetRect']));for(let _0x3b78a5=_0x2a8333['length']-0x1;_0x3b78a5>0x0;_0x3b78a5--){const _0x4dce9c=_0x2a8333[_0x3b78a5];_0x3b78a5!==this['getIndex'](_0x4dce9c)&&(this['remove'](_0x4dce9c),this['add'](_0x4dce9c));}}['_getOrderInContent'](_0x4fe1f7){let _0x4edc33=0x0;if(!_0x4fe1f7)return this['length'];for(const _0x54d507 of this){const _0xc51e64=_0x54d507['view']['targetRect'];if(_0xc51e64){if(v(_0x4fe1f7,_0xc51e64)<0x0)return _0x4edc33;_0x4edc33++;}}return _0x4edc33;}}function v(_0x33b977,_0x27df39){if(null===_0x33b977&&null===_0x27df39)return 0x0;if(null===_0x33b977)return-0x1;if(null===_0x27df39)return 0x1;const _0x370fd9=_0x33b977['top']-_0x27df39['top'];return 0x0==_0x370fd9?_0x33b977['left']-_0x27df39['left']:_0x370fd9;}class N extends _0x2202fd{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15f821){if(super(_0x15f821),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x15f821 instanceof _0x213630){const _0x27301f=_0x15f821['locale'];_0x15f821['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x615daf){this['collection']['add'](_0x615daf);}['remove'](_0x50592d){this['collection']['remove'](_0x50592d),_0x50592d['destroy']();}['refreshVisibility'](){for(const _0x1de1fc of this['collection'])_0x1de1fc['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x120af0){return this['collection']['getByInnerView'](_0x120af0);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1fa65c of this['collection'])_0x1fa65c['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x215d84){this['fire']('_activateAnnotation',_0x215d84);}['createAnnotation'](_0x3dcbf0){return new d(_0x3dcbf0);}['createAnnotationView'](_0x2eb04b,_0x572bde){return new T(_0x2eb04b,_0x572bde);}['_addActiveAnnotation'](_0x23033c){const _0x4a1573=new Set(this['activeAnnotations']);_0x4a1573['add'](_0x23033c),this['activeAnnotations']=_0x4a1573;}['_removeActiveAnnotation'](_0x25078e){const _0x25071e=new Set(this['activeAnnotations']);_0x25071e['delete'](_0x25078e),this['activeAnnotations']=_0x25071e;}['_bindAnnotationsToVisibleAnnotations'](){const _0x1bd472=this['collection'],_0x12aa0b=this['_visibleAnnotations'];function _0x3017e8(_0x58fafd){const _0x47b605=_0x58fafd['source'];_0x47b605['isVisible']&&!_0x12aa0b['has'](_0x47b605)?_0x12aa0b['add'](_0x47b605):!_0x47b605['isVisible']&&_0x12aa0b['has'](_0x47b605)&&_0x12aa0b['remove'](_0x47b605),_0x47b605['view']['focusTracker']['remove'](_0x47b605['view']['element']),_0x47b605['view']['focusTracker']['add'](_0x47b605['view']['element']);}this['listenTo'](_0x1bd472,'add',(_0xe1a7e2,_0x27b0eb)=>{_0x27b0eb['isVisible']&&_0x12aa0b['add'](_0x27b0eb),this['listenTo'](_0x27b0eb,'change:isVisible',_0x3017e8);}),this['listenTo'](_0x1bd472,'remove',(_0x56a5ed,_0x2817b9)=>{_0x12aa0b['has'](_0x2817b9)&&_0x12aa0b['remove'](_0x2817b9),this['stopListening'](_0x2817b9,'change:isVisible',_0x3017e8);});}['_setupEnterAnnotationKeystroke'](){const _0x5e91f1=_0x1bfa64=>{_0x1bfa64['on']('ready',()=>{_0x1bfa64['keystrokes']['set'](_0x2b3754,(_0x66e8b2,_0x20d185)=>{const _0x240978=_0xee77ec(this['activeAnnotations']['values']());_0x240978&&(_0x240978['view']['focus'](),_0x20d185());});});};this['context']instanceof _0x213630?_0x5e91f1(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3369cd,_0x3853a9)=>{_0x5e91f1(_0x3853a9);});}['_setupEscapeAnnotationHandling'](){const _0x629321=_0x255e7c=>{const _0x17a603=_0x255e7c['source'],_0x2e6c0f=[];let _0x1e2751;if(Array['isArray'](_0x17a603['target'])){_0x1e2751=_0x17a603['target'][0x0],this['context']instanceof _0x213630?_0x2e6c0f['push'](this['context']):this['context']['editors']&&_0x2e6c0f['push'](...this['context']['editors']);for(const _0x5314c1 of _0x2e6c0f)for(const _0x178d20 of _0x5314c1['editing']['view']['domRoots']['values']())if(_0x178d20['contains'](_0x1e2751))return void _0x5314c1['editing']['view']['focus']();_0x1e2751['focus']();}};this['listenTo'](this['collection'],'add',(_0x4be22d,_0x37fe41)=>{this['listenTo'](_0x37fe41,'escape',_0x629321,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x4d9dea,_0x527663)=>{this['stopListening'](_0x527663,'escape',_0x629321);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2202fd{['_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(_0x4507f6){super(_0x4507f6),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x416869=this['context']['config'];_0x416869['define']('comments.maxCommentsWhenCollapsed',0x2),_0x416869['define']('comments.maxThreadTotalWeight',0x1f4),_0x416869['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x416869['define']('comments.CommentThreadView',vt),_0x416869['define']('comments.CommentView',gt),_0x416869['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x55fc8f=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x3514cc,_0x40ab2b)=>this['_addCommentThread'](_0x40ab2b)),this['on']('submitCommentThread',(_0x3f7479,_0x375965)=>this['_submitCommentThread'](_0x375965)),this['on']('resolveCommentThread',(_0x5767cd,_0x1637f1)=>this['_resolveCommentThread'](_0x1637f1)),this['on']('resolveCommentThread',(_0x2a3fe8,_0x4a9293)=>this['_updateActiveAnnotation'](_0x4a9293),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3a52f7,_0x1a7d30)=>this['_reopenCommentThread'](_0x1a7d30)),this['on']('reopenCommentThread',(_0x2c3a89,_0x53c80e)=>this['_updateActiveAnnotation'](_0x53c80e),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x5726f3,_0x4c1168)=>this['_removeCommentThread'](_0x4c1168)),this['on']('updateCommentThread',(_0x20df4d,_0x3eb8e7)=>this['_updateCommentThread'](_0x3eb8e7)),this['on']('updateCommentThread',(_0x2f332f,_0x313564)=>this['_updateActiveAnnotation'](_0x313564),{'priority':'lowest'}),this['on']('addComment',(_0x4ae99c,_0x2a6fba)=>this['_addComment'](_0x2a6fba)),this['on']('updateComment',(_0x30e21d,_0x3ece0f)=>this['_updateComment'](_0x3ece0f)),this['on']('removeComment',(_0x5828a6,_0x2c96a6)=>this['_removeComment'](_0x2c96a6)),this['on']('addComment',(_0x3bcd7d,{threadId:_0xd50b33,isFromAdapter:_0x221d66})=>{if(_0x221d66)return;const _0x11df75=this['getCommentThread'](_0xd50b33),_0x56f3e4=_0x11df75&&this['_threadToController']['get'](_0x11df75);_0x56f3e4&&_0x56f3e4['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x55fc8f,'change:activeAnnotations',(_0x2f4f58,_0x53be08,_0x2af2c7)=>{const _0x399141=Array['from'](_0x2af2c7)['map'](_0x46a729=>this['_viewToController']['get'](_0x46a729['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x399141?_0x399141['model']:null;});}set['adapter'](_0x33c397){if(this['_adapter'])throw new _0x18900f('commentsrepository-adapter-already-set');this['_adapter']=_0x33c397;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x433259=Tt,threadId:_0x36d14a=_0x567062(),comments:_0x13d7ea=[],unlinkedAt:_0x1ab64c=null,resolvedAt:_0x377a9f=null,resolvedBy:_0x114c0e=null,target:_0x5b0111=null,context:_0x4d9feb=null,attributes:_0x4aa5fa={},isResolvable:_0x7e97dc=!0x0,isSubmitted:_0xccbcec=!0x1,isFromAdapter:_0x22d925=!0x1}={}){return this['fire'](bt('addCommentThread',_0x433259),{'channelId':_0x433259,'threadId':_0x36d14a,'comments':_0x13d7ea,'unlinkedAt':_0x1ab64c,'resolvedAt':_0x377a9f,'resolvedBy':_0x114c0e,'target':_0x5b0111,'context':_0x4d9feb,'attributes':_0x4aa5fa,'isFromAdapter':_0x22d925,'isResolvable':_0x7e97dc,'isSubmitted':_0xccbcec}),this['getCommentThread'](_0x36d14a);}['openNewCommentThread']({channelId:_0x377aef=Tt,threadId:_0x52374f=_0x567062(),target:_0x3df28e,context:_0x225a65=null,isResolvable:_0x2fde37=!0x0}){if(this['_readOnlyChannels']['has'](_0x377aef)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x3df28e)throw new _0x18900f('commentsrepository-missing-target');const _0x3e1e8a=this['addCommentThread']({'channelId':_0x377aef,'threadId':_0x52374f,'target':_0x3df28e,'context':_0x225a65,'isResolvable':_0x2fde37});if(!_0x3e1e8a)return null;const _0x4a2ecb=this['_threadToController']['get'](_0x3e1e8a),_0x281612=_0x4a2ecb['view']['commentThreadInputView']['commentInputView'],_0x48893b=this['context']['plugins']['get'](N),_0x9e4b1f=_0x48893b['getByInnerView'](_0x4a2ecb['view']);return _0x48893b['activate'](_0x9e4b1f),_0x281612['once']('editorReady',()=>_0x281612['focus']()),_0x3e1e8a;}['hasCommentThread'](_0x568f09){if('string'!=typeof _0x568f09)throw new _0x18900f('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x568f09);}['updateCommentThread']({channelId:_0x5b7e34=Tt,threadId:_0x2307ed,context:_0x2488c6,unlinkedAt:_0x128c2f,attributes:_0x309385,isFromAdapter:_0x40497e=!0x1}){return this['fire'](bt('updateCommentThread',_0x5b7e34),{'channelId':_0x5b7e34,'threadId':_0x2307ed,'context':_0x2488c6,'unlinkedAt':_0x128c2f,'attributes':_0x309385,'isFromAdapter':_0x40497e}),this['getCommentThread'](_0x2307ed);}['getCommentThread'](_0x115bbd){if('string'!=typeof _0x115bbd)throw new _0x18900f('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x115bbd);}['fetchCommentThread']({channelId:_0x1ff66e,threadId:_0x289388}={}){const _0x3c7fee=this['getCommentThread'](_0x289388);if(_0x3c7fee)return Promise['resolve'](_0x3c7fee);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x18900f('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x1ff66e,'threadId':_0x289388})['then'](_0x4cd761=>this['hasCommentThread'](_0x289388)?this['getCommentThread'](_0x289388):_0x4cd761?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x1ff66e},_0x4cd761)):void 0x0)['catch'](_0x4024c8=>{throw console['error'](_0x4024c8),new _0x18900f('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x462cfa,skipNotAttached:_0x2ae592=!0x1,skipEmpty:_0x4c27f7=!0x1,toJSON:_0x1d2e4b=!0x1}={}){const _0xd7f943=[];for(const _0x218a42 of this['_threads']['values']())_0x462cfa&&_0x218a42['channelId']!==_0x462cfa||_0x2ae592&&!_0x218a42['isAttached']||_0x4c27f7&&0x0===_0x218a42['length']||_0xd7f943['push'](_0x218a42);return _0x1d2e4b?_0xd7f943['map'](_0x2fc84e=>_0x2fc84e['toJSON']()):_0xd7f943;}['setActiveCommentThread'](_0x511365){const _0x5165d8=this['context']['plugins']['get'](N);if(!_0x511365)return void(this['activeCommentThread']&&_0x5165d8['deactivateAll']());const _0x59e83d=this['getCommentThread'](_0x511365);if(!_0x59e83d)throw new _0x18900f('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x511365});if(!this['_threadToController']['has'](_0x59e83d))throw new _0x18900f('commentsrepository-active-not-attached',null,{'threadId':_0x511365});const _0x15b484=_0x5165d8['getByInnerView'](this['_threadToController']['get'](_0x59e83d)['view']);_0x5165d8['activate'](_0x15b484);}['switchReadOnly'](_0x6e6eea,_0x92d716){_0x6e6eea?this['_readOnlyChannels']['add'](_0x92d716):this['_readOnlyChannels']['delete'](_0x92d716),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x490f39){return this['_readOnlyChannels']['has'](_0x490f39)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x13deb9,_0x420273){return new Ct(_0x13deb9,_0x420273);}['setPermissions'](_0x593f79,_0x313e18=Tt){this['_permissions']['set'](_0x313e18,_0x593f79),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2a3ace=Tt){return this['_permissions']['has'](_0x2a3ace)?this['_permissions']['get'](_0x2a3ace):_t;}['_addCommentThread']({channelId:_0x36b7f5,threadId:_0x2374b8,comments:_0x5887a5,unlinkedAt:_0x24964b,resolvedAt:_0x2b28ca,resolvedBy:_0x43ac91,target:_0x13b9f9,context:_0x490ba7,attributes:_0x2ec971,isFromAdapter:_0x4527f0,isResolvable:_0x52b7e0,isSubmitted:_0x71b6b8}){if('string'!=typeof _0x2374b8)throw new _0x18900f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2374b8});if(this['hasCommentThread'](_0x2374b8))throw new _0x18900f('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x2374b8});const _0x1305be=new oe(this,{'channelId':_0x36b7f5,'id':_0x2374b8,'context':_0x490ba7,'attributes':_0x2ec971,'unlinkedAt':_0x24964b,'resolvedAt':_0x2b28ca,'resolvedBy':_0x43ac91?this['context']['plugins']['get'](it)['getUser'](_0x43ac91):null,'isResolvable':_0x52b7e0,'isSubmitted':_0x71b6b8||_0x4527f0});this['_threads']['set'](_0x2374b8,_0x1305be);for(const _0x431666 of _0x5887a5)_0x1305be['_add'](this['_createNewComment']({'threadId':_0x2374b8,..._0x431666}));return _0x13b9f9&&_0x1305be['attachTo'](_0x13b9f9),_0x4527f0||!_0x1305be['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x36b7f5,'threadId':_0x2374b8});}['_submitCommentThread']({channelId:_0x309045,threadId:_0x334730}){if(!this['hasCommentThread'](_0x334730))throw new _0x18900f('commentsrepository-missing-comment-thread',this);const _0x21095e=this['getCommentThread'](_0x334730);if(_0x21095e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x10ba4e,comments:_0x50c661,resolvedAt:_0x25c58e,resolvedBy:_0x5acae2,context:_0x32a301,attributes:_0x2455a5}=_0x21095e,_0x59a018=this['context']['plugins']['get']('PendingActions'),_0x5f5770=_0x59a018['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x309045,'threadId':_0x10ba4e,'comments':_0x50c661['map'](_0x4b1821=>_0x4b1821['toJSON']()),'resolvedAt':_0x25c58e,'resolvedBy':_0x5acae2?_0x5acae2['id']:_0x5acae2,'context':_0x32a301,'attributes':_0x2455a5})['then'](({comments:_0xf8ad94})=>{_0x59a018['remove'](_0x5f5770);for(const _0xa7bafd of _0xf8ad94)this['_updateComment']({'channelId':_0x309045,'threadId':_0x334730,'commentId':_0xa7bafd['commentId'],'createdAt':_0xa7bafd['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3853c7=>{throw console['error'](_0x3853c7),new _0x18900f('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x8ae1ba,target:_0x22f4c8}){const _0x44d241=this['getCommentThread'](_0x8ae1ba);if(!_0x44d241)throw new _0x18900f('commentsrepository-attach-missing-comment-thread',this);const _0x4ea1c2=this['context']['plugins']['get']('PendingActions'),_0x51ccd9=this['context']['plugins']['get'](N),_0x37ee78=this['_createCommentThreadView'](_0x44d241),_0x39f5b5=new Ct(_0x44d241,_0x37ee78);let _0x488426=null;_0x37ee78['on']('change:isDirty',(_0x514821,_0x5e37c5,_0x2e71f8)=>{_0x2e71f8?_0x488426=_0x4ea1c2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x488426&&(_0x4ea1c2['remove'](_0x488426),_0x488426=null);}),this['_threadToController']['set'](_0x44d241,_0x39f5b5),this['_viewToController']['set'](_0x37ee78,_0x39f5b5);const _0x2ced45=new T(this['context']['locale'],_0x37ee78);_0x2ced45['bind']('length')['to'](_0x37ee78),_0x2ced45['bind']('isDirty')['to'](_0x37ee78,'isDirty',_0x37ee78,'length',(_0x51967f,_0x1a8b7f)=>_0x51967f||!_0x1a8b7f),_0x2ced45['bind']('isActive')['to'](_0x37ee78),_0x2ced45['type']='comment';const _0x4df60d=new d({'view':_0x2ced45,'target':_0x22f4c8,'type':'comment','isVisible':!_0x44d241['archivedAt']});return _0x37ee78['on']('escape',()=>{_0x4df60d['fire']('escape');}),this['_bindAnnotationToEditors'](_0x37ee78,_0x4df60d),_0x51ccd9['add'](_0x4df60d),_0x4df60d;}['_bindAnnotationToEditors'](_0x59ad26,_0x4910de){this['listenTo'](_0x59ad26,'editorReady',(_0x2258fb,_0x3f0aaf)=>{const _0x150a28=_0x3f0aaf['ui']['view']['body']['bodyCollectionContainer'];_0x4910de['focusableElements']['add'](_0x150a28),this['context']instanceof _0x213630&&this['context']['ui']['focusTracker']['add'](_0x150a28);},{'priority':'highest'}),this['listenTo'](_0x59ad26,'editorDestroyed',(_0x309591,_0x3016bc)=>{const _0x1032af=_0x3016bc['ui']['view']['body']['bodyCollectionContainer'];_0x4910de['focusableElements']['has'](_0x1032af)&&_0x4910de['focusableElements']['remove'](_0x1032af),this['context']instanceof _0x213630&&this['context']['ui']['focusTracker']['remove'](_0x1032af);});}['_unbindEditors'](_0x222ea6){this['stopListening'](_0x222ea6,'editorReady'),this['stopListening'](_0x222ea6,'editorDestroyed');}['_createCommentThreadView'](_0x51a9f1){const _0x458f78=this['context']['plugins']['get'](it),{config:_0x41e0b8,locale:_0x462ac2}=this['context'],_0x3af938=lt(_0x41e0b8['get']('locale'));return new(0x0,(_0x41e0b8['get']('comments'))['CommentThreadView'])(_0x462ac2,_0x51a9f1,_0x458f78['me'],{'editorConfig':{..._0x41e0b8['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x41e0b8['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x41e0b8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x41e0b8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x41e0b8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3af938,'CommentView':_0x41e0b8['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x4be6ca,channelId:_0xd077e1,resolvedAt:_0x4e9e4d,resolvedBy:_0x5a9dcc,isFromAdapter:_0x3a6961}){if(!this['hasCommentThread'](_0x4be6ca))throw new _0x18900f('commentsrepository-missing-comment-thread',null,{'threadId':_0x4be6ca});const _0x46f8c5=this['getCommentThread'](_0x4be6ca);if(_0x46f8c5['isResolved'])throw new _0x18900f('commentsrepository-resolved-comment-thread',null,{'threadId':_0x4be6ca});const _0x3a6380=this['context']['plugins']['get'](it);if(_0x46f8c5['resolvedBy']=_0x3a6380['getUser'](_0x5a9dcc),_0x46f8c5['resolvedAt']=_0x4e9e4d,_0x3a6961||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x34fced=this['context']['plugins']['get']('PendingActions'),_0x229c59=_0x34fced['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0xd077e1,'threadId':_0x4be6ca})['then'](({resolvedAt:_0x521cef,resolvedBy:_0x39265b})=>{_0x34fced['remove'](_0x229c59),_0x46f8c5['resolvedBy']['id']!==_0x39265b&&(_0x46f8c5['resolvedBy']=_0x3a6380['getUser'](_0x39265b)),_0x46f8c5['resolvedAt']=_0x521cef;})['catch'](_0x4c9a75=>{throw console['error'](_0x4c9a75),new _0x18900f('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x255b49,channelId:_0x23072a,isFromAdapter:_0xe02db6}){if(!this['hasCommentThread'](_0x255b49))throw new _0x18900f('commentsrepository-missing-comment-thread',null,{'threadId':_0x255b49});const _0x1ae4a4=this['getCommentThread'](_0x255b49);if(!_0x1ae4a4['isResolved'])throw new _0x18900f('commentsrepository-reopen-comment-thread',null,{'threadId':_0x255b49});if(_0x1ae4a4['resolvedBy']=null,_0x1ae4a4['resolvedAt']=null,_0xe02db6||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2534b7=this['context']['plugins']['get']('PendingActions'),_0x3f489e=_0x2534b7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x23072a,'threadId':_0x255b49})['then'](()=>_0x2534b7['remove'](_0x3f489e))['catch'](_0xe84135=>{throw console['error'](_0xe84135),new _0x18900f('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x2839ed,isFromAdapter:_0x4fd014}){const _0x3f3435=this['getCommentThread'](_0x2839ed);if(!_0x3f3435)throw new _0x18900f('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x2839ed),this['_threads']['delete'](_0x2839ed),!_0x3f3435['isSubmitted']||_0x4fd014||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x135915=this['context']['plugins']['get']('PendingActions'),{channelId:_0x50600b}=_0x3f3435,_0x5cc2f9=_0x135915['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x50600b,'threadId':_0x2839ed})['then'](()=>_0x135915['remove'](_0x5cc2f9))['catch'](_0x489c64=>{throw console['error'](_0x489c64),new _0x18900f('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x2ff36c,unlinkedAt:_0x545317,context:_0x1e838a,attributes:_0x2150af,isFromAdapter:_0x5bc910}){if('string'!=typeof _0x2ff36c)throw new _0x18900f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2ff36c});if(!this['hasCommentThread'](_0x2ff36c))throw new _0x18900f('commentsrepository-missing-comment-thread',null,{'threadId':_0x2ff36c});const _0x1b1836=this['getCommentThread'](_0x2ff36c);let _0x37d262=!0x1;if(void 0x0!==_0x1e838a&&_0x1b1836['context']!==_0x1e838a&&(_0x1b1836['context']=_0x1e838a,_0x37d262=!0x0),void 0x0!==_0x545317&&_0x1b1836['unlinkedAt']!==_0x545317&&(_0x1b1836['unlinkedAt']=_0x545317,_0x37d262=!0x0),_0x2150af&&!wt(_0x2150af,_0x1b1836['attributes'])&&(_0x1b1836['attributes']=_0x2150af,_0x37d262=!0x0),!_0x37d262)return Promise['resolve']();if(!_0x1b1836['isSubmitted']||_0x5bc910||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4dafc0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x272800}=_0x1b1836,_0x3b7760=_0x4dafc0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x272800,'threadId':_0x2ff36c,'context':_0x1e838a,'unlinkedAt':_0x545317,'attributes':_0x2150af})['then'](()=>_0x4dafc0['remove'](_0x3b7760))['catch'](_0xe783dd=>{throw console['error'](_0xe783dd),new _0x18900f('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xbb7e3a){const _0x42892e=this['context']['plugins']['get'](N),_0x36f737=this['getCommentThread'](_0xbb7e3a);if(_0x36f737['_isAttached']=!0x1,this['_threadToController']['has'](_0x36f737)){const _0x111c71=this['_threadToController']['get'](_0x36f737),_0x479af7=_0x111c71['view'],_0x28b9e3=_0x42892e['getByInnerView'](_0x479af7);this['_threadToController']['delete'](_0x36f737),this['_viewToController']['delete'](_0x479af7),_0x28b9e3&&_0x42892e['remove'](_0x28b9e3),_0x111c71['destroy'](),_0x479af7['destroy']()['then'](()=>{this['_unbindEditors'](_0x479af7);});}}['_updateActiveAnnotation']({threadId:_0x54f87c,resolvedAt:_0x17460c}){const _0x25577d=!!_0x17460c,_0x5b519f=this['context']['plugins']['get'](N),_0x4492d2=this['getCommentThread'](_0x54f87c);if(this['_threadToController']['has'](_0x4492d2)){const _0x479518=this['_threadToController']['get'](_0x4492d2)['view'],_0x13dd57=_0x5b519f['getByInnerView'](_0x479518);_0x13dd57&&(_0x25577d&&_0x5b519f['_removeActiveAnnotation'](_0x13dd57),_0x13dd57['refreshVisibility']());}}['_getExternalAuthor'](_0x3fa400){const _0xf73b1e=this['context']['plugins']['get'](it),_0x1063bf=pt('external:'+_0x3fa400),_0x42e5a8=_0xf73b1e['getUser'](_0x1063bf);return _0x42e5a8||_0xf73b1e['addUser']({'id':_0x1063bf,'name':_0x3fa400});}['_createNewComment']({threadId:_0x563a1d,commentId:_0x1b1ad8=_0x567062(),content:_0x2a34a5,authorId:_0x1af03a,createdAt:_0x21d874,attributes:_0x4891f4}){if('string'!=typeof _0x1b1ad8)throw new _0x18900f('commentsrepository-invalid-commentid');if('string'!=typeof _0x1af03a)throw new _0x18900f('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2a34a5||!_0x2a34a5['trim']())throw new _0x18900f('commentsrepository-invalid-comment-content');const _0x5209ed=this['context']['plugins']['get'](it)['getUser'](_0x1af03a);if(!_0x5209ed)throw new _0x18900f('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1af03a});let _0x48ac3d=null,_0x15b10a=_0x21d874;return _0x4891f4&&_0x4891f4['@external']&&(_0x48ac3d=this['_getExternalAuthor'](_0x4891f4['@external']['authorName']),_0x15b10a=new Date(_0x4891f4['@external']['createdAt'])),new re(this,{'threadId':_0x563a1d,'id':_0x1b1ad8,'author':_0x48ac3d||_0x5209ed,'creator':_0x5209ed,'content':_0x2a34a5,'createdAt':_0x21d874,'authoredAt':_0x15b10a,'attributes':_0x4891f4});}['_addComment'](_0x308be7){let {threadId:_0x534f31,content:_0x3d3a96,attributes:_0x7ff81c,isFromAdapter:_0x5e0b66}=_0x308be7;const _0x1607c2=this['getCommentThread'](_0x308be7['threadId']);if(!_0x1607c2)throw new _0x18900f('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x25785b=this['_createNewComment'](_0x308be7),{id:_0x344f47}=_0x25785b;if(_0x1607c2['_add'](_0x25785b),_0x5e0b66||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x1607c2['isSubmitted'])return Promise['resolve']();const _0xbb00e8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1c07ce}=_0x1607c2,_0x222afc=_0xbb00e8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x7ff81c||(_0x7ff81c={}),this['adapter']['addComment']({'channelId':_0x1c07ce,'threadId':_0x534f31,'commentId':_0x344f47,'content':_0x3d3a96,'attributes':_0x7ff81c})['then'](_0x51d39b=>{_0xbb00e8['remove'](_0x222afc),_0x51d39b&&this['_updateComment']({'channelId':_0x1c07ce,'threadId':_0x534f31,'commentId':_0x344f47,'createdAt':_0x51d39b['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xf05cda=>{throw console['error'](_0xf05cda),new _0x18900f('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0xfdecfe,commentId:_0x351919,content:_0x228b71,createdAt:_0x4334d0,attributes:_0x4a6be7,isFromAdapter:_0x5c544a}){if(void 0x0!==_0x228b71&&('string'!=typeof _0x228b71||!_0x228b71['trim']()['length']))throw new _0x18900f('commentsrepository-update-comment-invalid-content');const _0x37dfd7=this['getCommentThread'](_0xfdecfe),_0x14637b=_0x37dfd7['getComment'](_0x351919);if(!_0x14637b)throw new _0x18900f('commentsrepository-update-missing-comment',this);let _0x43c3fb=!0x1;if(_0x228b71&&_0x228b71!==_0x14637b['content']&&(_0x14637b['isEditable']||_0x5c544a)&&(_0x14637b['content']=_0x228b71,_0x43c3fb=!0x0),_0x4334d0&&_0x4334d0!==_0x14637b['createdAt']&&(_0x14637b['createdAt']=_0x4334d0,_0x14637b['attributes']&&_0x14637b['attributes']['@external']||(_0x14637b['authoredAt']=_0x4334d0),_0x43c3fb=!0x0),_0x4a6be7&&!wt(_0x4a6be7,_0x14637b['attributes'])&&(_0x14637b['attributes']=_0x4a6be7,_0x43c3fb=!0x0),!_0x43c3fb)return Promise['resolve']();if(_0x37dfd7['fire']('commentUpdated'),_0x5c544a||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xb4f797=this['context']['plugins']['get']('PendingActions'),{channelId:_0x26beb2}=this['getCommentThread'](_0x14637b['threadId']),_0x9cd9bf=_0xb4f797['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x26beb2,'threadId':_0xfdecfe,'commentId':_0x351919,'content':_0x228b71,'attributes':_0x4a6be7})['then'](()=>_0xb4f797['remove'](_0x9cd9bf))['catch'](_0x1b8583=>{throw console['error'](_0x1b8583),new _0x18900f('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2c4b68,commentId:_0x2a9ed3,isFromAdapter:_0x304c5a}){const _0x55724a=this['getCommentThread'](_0x2c4b68),_0x587a84=_0x55724a['getComment'](_0x2a9ed3);if(!_0x587a84)throw new _0x18900f('commentsrepository-remove-missing-comment',this);if(_0x55724a['_remove'](_0x587a84),_0x304c5a||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x278061=this['context']['plugins']['get']('PendingActions'),{channelId:_0x36f497}=_0x55724a,_0x5ef042=_0x278061['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x36f497,'threadId':_0x2c4b68,'commentId':_0x2a9ed3})['then'](()=>_0x278061['remove'](_0x5ef042))['catch'](_0x263971=>{throw console['error'](_0x263971),new _0x18900f('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x1c8171(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4d174f,_0x4ec3f8){super();const _0x2a2dac=_0x4ec3f8['isResolvable'];this['channelId']=_0x4ec3f8['channelId'],this['id']=_0x4ec3f8['id'],this['comments']=new _0x3dbdfa(),this['_repository']=_0x4d174f,this['_isAttached']=!0x1,this['_isSubmitted']=_0x4ec3f8['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4d174f,'_permissions',_0x4d174f,'_readOnlyChannels',()=>_0x4d174f['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4d174f,'_permissions',()=>_0x4d174f['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4d174f,'_permissions',()=>{const _0x205180=_0x4d174f['getPermissions'](this['channelId']);return _0x205180['write']||_0x205180['admin'];}),this['bind']('isResolvable')['to'](_0x4d174f,'_permissions',()=>_0x2a2dac&&_0x4d174f['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x4ec3f8['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1fdcf1,_0x12d32b)=>_0x1fdcf1?_0x12d32b?_0x1fdcf1<_0x12d32b?_0x1fdcf1:_0x12d32b:_0x1fdcf1:_0x12d32b),this['set']('unlinkedAt',_0x4ec3f8['unlinkedAt']||null),this['set']('resolvedAt',_0x4ec3f8['resolvedAt']||null),this['set']('resolvedBy',_0x4ec3f8['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x3ac2a8=>!!_0x3ac2a8),this['set']('attributes',_0x4ec3f8['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x3d41f4,_0x28dddc)=>_0x3d41f4+_0x28dddc['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x3461ae,id:_0x3b0730}=this;this['_repository']['fire'](bt('submitCommentThread',_0x3461ae),{'channelId':_0x3461ae,'threadId':_0x3b0730});}['setUnlinkedAt'](_0x78466){this['_update']({'unlinkedAt':_0x78466});}['resolve']({resolvedAt:_0x4496d0=new Date(),resolvedBy:_0x10faa7=null,isFromAdapter:_0x959298=!0x1}={}){const _0x181a27=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x174e66,id:_0x4872f5}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x174e66),{'channelId':_0x174e66,'threadId':_0x4872f5,'resolvedAt':_0x4496d0,'resolvedBy':_0x10faa7||_0x181a27['id'],'isFromAdapter':_0x959298});}['reopen']({isFromAdapter:_0x261758=!0x1}={}){const {channelId:_0x11343f,id:_0x5bfb69}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x11343f),{'channelId':_0x11343f,'threadId':_0x5bfb69,'isFromAdapter':_0x261758});}['setContext'](_0x3b6ef2){this['context']||this['_update']({'context':_0x3b6ef2});}['setAttribute'](_0xf1cd02,_0x35d5ef){const _0x5bd583=It(this['attributes']);At(_0x5bd583,_0xf1cd02,_0x35d5ef),this['_update']({'attributes':_0x5bd583});}['removeAttribute'](_0x507dd9){const _0x13f8fd=It(this['attributes']);yt(_0x13f8fd,_0x507dd9),this['_update']({'attributes':_0x13f8fd});}['remove']({isFromAdapter:_0x50d260=!0x1}={}){const {channelId:_0x33063a,id:_0x5a418b}=this;this['_repository']['fire'](bt('removeCommentThread',_0x33063a),{'channelId':_0x33063a,'threadId':_0x5a418b,'isFromAdapter':_0x50d260});}['attachTo'](_0x11e5a3){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x11e5a3});}['addComment'](_0x48bd0b){const {channelId:_0x5a2919,id:_0xa3d0a1}=this;this['_repository']['fire'](bt('addComment',_0x5a2919,_0xa3d0a1),Object['assign']({'channelId':_0x5a2919,'threadId':_0xa3d0a1},_0x48bd0b));}['getComment'](_0x46e11d){if('string'!=typeof _0x46e11d)throw new _0x18900f('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x46e11d});return this['comments']['get'](_0x46e11d);}['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'](_0x5871d0=>_0x5871d0['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3028e5){return this['listenTo'](_0x3028e5,'change:authoredAt',()=>{const _0xe6e2dd=this['_findOptimalIndex'](_0x3028e5),_0x4c0038=this['comments'];_0xe6e2dd-0x1!=_0x4c0038['getIndex'](_0x3028e5)&&_0xe6e2dd+0x1!=_0x4c0038['getIndex'](_0x3028e5)&&(this['_remove'](_0x3028e5),this['_add'](_0x3028e5));}),this['comments']['add'](_0x3028e5,this['_findOptimalIndex'](_0x3028e5));}['_update'](_0x2e17dd){const {channelId:_0x4531dc,id:_0x288f5a}=this;this['_repository']['fire'](bt('updateCommentThread',_0x4531dc),{..._0x2e17dd,'channelId':_0x4531dc,'threadId':_0x288f5a});}['_remove'](_0x3ed8f2){return this['stopListening'](_0x3ed8f2),_0x3ed8f2['destroy'](),this['comments']['remove'](_0x3ed8f2);}['_findOptimalIndex'](_0xb0221b){const _0x3b7e30=this['comments']['find'](_0x2a11ad=>new Date(_0x2a11ad['authoredAt'])['getTime']()>new Date(_0xb0221b['authoredAt'])['getTime']());return _0x3b7e30?this['comments']['getIndex'](_0x3b7e30):this['length'];}}class re extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x1c8171(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5d9f3d,_0x3199de){super();const _0xe79f10=_0x5d9f3d['context']['plugins']['get'](it)['me'],_0x147c00=_0x5d9f3d['getCommentThread'](_0x3199de['threadId']),_0x243bcc=0x0===_0x147c00['comments']['length'],_0x49c46a=_0xe79f10===_0x3199de['author'];this['id']=_0x3199de['id'],this['threadId']=_0x3199de['threadId'],this['author']=_0x3199de['author'],this['creator']=_0x3199de['creator'],this['isExternal']=Boolean(_0x3199de['attributes']&&_0x3199de['attributes']['@external']),this['set']('content',_0x3199de['content']),this['createdAt']=_0x3199de['createdAt']||new Date(),this['set']('authoredAt',_0x3199de['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x147c00,'resolvedAt'),this['set']('attributes',_0x3199de['attributes']||{}),this['bind']('isEditable')['to'](_0x5d9f3d,'_permissions',()=>{const _0x6640e3=_0x5d9f3d['getPermissions'](_0x147c00['channelId'])['write'],_0x3d640b=_0x5d9f3d['getPermissions'](_0x147c00['channelId'])['modifyAll'];return _0x49c46a&&_0x6640e3||!_0x49c46a&&_0x3d640b;}),this['bind']('isRemovable')['to'](_0x147c00,'isRemovable',_0x5d9f3d,'_permissions',_0x3bd01a=>{const _0x3af208=_0x5d9f3d['getPermissions'](_0x147c00['channelId'])['write'],_0x456704=_0x5d9f3d['getPermissions'](_0x147c00['channelId'])['modifyAll'];return _0x49c46a&&_0x3af208||_0x3bd01a&&_0x243bcc||!_0x49c46a&&_0x456704&&!_0x243bcc;}),this['bind']('isReadOnly')['to'](_0x147c00,'isReadOnly'),this['_repository']=_0x5d9f3d;}get['weight'](){return Math['max'](function(_0x51f454){const _0x38c1e8=document['createElement']('div');return _0x38c1e8['innerHTML']=_0x51f454,_0x38c1e8['textContent']['length'];}(this['content']),0xc8);}['update'](_0x26b630){const {threadId:_0x3ebad8,id:_0x539a0d}=this;if(!this['_repository']['hasCommentThread'](_0x3ebad8))throw new _0x18900f('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3897ac}=this['_repository']['getCommentThread'](_0x3ebad8);this['_repository']['fire'](bt('updateComment',_0x3897ac,_0x3ebad8),{'channelId':_0x3897ac,'threadId':_0x3ebad8,'commentId':_0x539a0d,..._0x26b630});}['setAttribute'](_0x175ed0,_0x760feb){const _0x8ed319=It(this['attributes']);At(_0x8ed319,_0x175ed0,_0x760feb),this['update']({'attributes':_0x8ed319});}['removeAttribute'](_0x22140a){const _0x5e496b=It(this['attributes']);yt(_0x5e496b,_0x22140a),this['update']({'attributes':_0x5e496b});}['remove'](_0x2ba8f1={}){if(!_0x2ba8f1['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x36cb61,id:_0x3703f0}=this;if(!this['_repository']['hasCommentThread'](_0x36cb61))throw new _0x18900f('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x54488c}=this['_repository']['getCommentThread'](_0x36cb61);this['_repository']['fire'](bt('removeComment',_0x54488c,_0x36cb61),{'channelId':_0x54488c,'threadId':_0x36cb61,'commentId':_0x3703f0,..._0x2ba8f1});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x652f21,..._0x9ede47){for(const _0x1524f4 of _0x9ede47)void 0x0!==_0x1524f4&&(_0x652f21+=':'+String(_0x1524f4));return _0x652f21;}class J extends _0x4ef206{['refresh'](){const _0x319a3c=this['editor']['model']['document']['selection'];for(const _0x179931 of _0x319a3c['getRanges']())if(this['_hasContent'](_0x179931))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x9d04b=_0x567062()}={}){const _0x52f5b5=this['editor']['model'],_0x4f678c=[];for(const _0x1479d of _0x52f5b5['document']['selection']['getRanges']())this['_hasContent'](_0x1479d)&&_0x4f678c['push'](this['_trimToContent'](_0x1479d));_0x52f5b5['change'](_0x2fb7c2=>{for(const _0x3b5097 of _0x4f678c){const _0x242a75=_0x567062()['substr'](0x1,0x5),_0x22a3d6='comment:'+_0x9d04b+':'+_0x242a75;_0x2fb7c2['addMarker'](_0x22a3d6,{'range':_0x3b5097,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x4abdbe){for(const _0x31c5d9 of _0x4abdbe['getItems']())if(this['_itemIsContent'](_0x31c5d9))return!0x0;return!0x1;}['_itemIsContent'](_0x3cfb7e){return _0x3cfb7e['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3cfb7e)&&!_0x3cfb7e['is']('element','tableCell');}['_trimToContent'](_0x2f0939){const _0x4d6644=_0x3b4351=>!this['_itemIsContent'](_0x3b4351['item']),_0x2deea3=_0x2f0939['start']['getLastMatchingPosition'](_0x4d6644),_0x5a5568=_0x2f0939['end']['getLastMatchingPosition'](_0x4d6644,{'direction':'backward'});return this['editor']['model']['createRange'](_0x2deea3,_0x5a5568);}}class P extends _0x399bf5{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a73ac){super(_0x4a73ac),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x324299=this['editor'],_0x267e24=_0x324299['model']['document']['selection'],_0x19f2fc=_0x107122(()=>this['refreshSelectedViews'](),0xa);_0x267e24['on']('change:range',(_0x26729d,_0x219365)=>{_0x219365['directChange']&&(_0x19f2fc['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x324299['editing']['view']['document'],'change:isFocused',(_0x2cea00,_0x39c4d2,_0x2fe01a)=>{_0x2fe01a&&_0x19f2fc();}),this['listenTo'](_0x324299['ui']['focusTracker'],'change:isFocused',(_0x283f23,_0xa6ed78,_0x16acdc)=>{_0x16acdc||_0x324299['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x306eec=>this['_editorAnnotationsData']['has'](_0x306eec['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x41334c){if(this['_editorAnnotations']['has'](_0x41334c['view']))return;this['_editorAnnotations']['add'](_0x41334c['view']),this['editor']['ui']['focusTracker']['add'](_0x41334c['view']['element']);const _0x4a074f=this['editor']['plugins']['get'](N);this['listenTo'](_0x4a074f['collection'],'remove',(_0x3cfcf4,_0x32b17c)=>{this['editor']['ui']['focusTracker']['remove'](_0x32b17c['view']['element']),this['_editorAnnotations']['delete'](_0x32b17c['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x12e929){if('function'!=typeof _0x12e929)throw new _0x18900f('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x12e929);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x5526a8,annotations:_0x588d4f}){const _0x124d38=[],_0x560314=this['editor']['model']['document']['selection'],_0x1231e4=Array['from'](_0x560314['getRanges']());for(const [_0xe3d896,_0x50dbb0]of this['_editorAnnotationsData']){const _0x10bc1e=_0x5718d9(_0x50dbb0),_0x16c34d=_0x588d4f['getByInnerView'](_0xe3d896);_0x10bc1e&&_0x16c34d&&_0x124d38['push']({'annotation':_0x16c34d,'range':_0x10bc1e});}function _0x5718d9(_0x3333e2){for(const _0x58a6af of _0x3333e2)for(const _0x117401 of _0x1231e4)if(_0x58a6af['containsRange'](_0x117401,!_0x560314['isCollapsed']))return _0x58a6af;return null;}return _0x124d38['sort']((_0x157d4c,_0x66a9b4)=>{const _0x1cc17=_0x157d4c['range'],_0x500391=_0x66a9b4['range'];if(!_0x1cc17['isEqual'](_0x500391)){if(_0x1cc17['containsRange'](_0x500391,!0x0))return 0x1;if(_0x500391['containsRange'](_0x1cc17,!0x0))return-0x1;}return _0x157d4c['annotation']==_0x5526a8?-0x1:_0x66a9b4['annotation']==_0x5526a8?0x1:0x0;})['map'](_0x12ccce=>_0x12ccce['annotation']);}get['_editorAnnotationsData'](){const _0xb2531=new Map();for(const _0x41f7d5 of Array['from'](this['_dataCollectors']))for(const [_0x21261d,_0x3fa4f6]of _0x41f7d5())_0xb2531['set'](_0x21261d,_0x3fa4f6);return _0xb2531;}}class st extends _0x399bf5{['afterInit'](){const _0x4bf6bc=this['editor'];if(!_0x4bf6bc['plugins']['has']('RestrictedEditingModeEditing'))return;_0x4bf6bc['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x399bf5{constructor(_0x53abc5){super(_0x53abc5),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x5ebf95=this['editor'],_0x516a5d=_0x5ebf95['commands']['get']('importWord'),_0x254a37=_0x5ebf95['plugins']['get'](it);_0x516a5d&&(_0x516a5d['on']('execute',(_0x5a59ee,[,_0x33043a])=>{_0x33043a['collaboration_features']={'comments':!0x0,'user_id':_0x254a37['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x516a5d,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x30cf11,_0x1b0f43){const {comment_threads:_0x3b7bc0}=_0x1b0f43;_0x3b7bc0&&_0x3b7bc0['forEach'](({thread_id:_0x44ab39,comments:_0x2fbcae,is_resolved:_0x2f8de9})=>{const _0x2cc13a=new Date(),_0x374cd0=_0x2fbcae['map'](({author:_0x2fcd48,content:_0x4d24c4,created_at:_0xbea17f})=>({'content':_0x4d24c4,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x2cc13a,'attributes':{'@external':{'authorName':_0x2fcd48,'createdAt':_0xbea17f?new Date(_0xbea17f):new Date(),'source':'importWord'}}})),_0x3a9215=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3a9215,'threadId':_0x44ab39,'comments':_0x374cd0,'resolvedAt':_0x2f8de9?_0x2cc13a:null});});}}class at extends _0x399bf5{constructor(_0x4a8f6f){super(_0x4a8f6f),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x5ed966=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5ed966,'contentInsertion',(_0x4557d8,_0xb05a1d)=>this['_removeMarkersWithoutThreads'](_0xb05a1d['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xb39e65){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xb39e65;const _0x35863f=this['editor']['plugins']['get']('CommentsRepository');for(const _0x9dd2c6 of _0xb39e65['keys']()){const [_0x44fd77,_0xcf9964]=_0x9dd2c6['split'](':');'comment'!=_0x44fd77||_0x35863f['hasCommentThread'](_0xcf9964)||_0xb39e65['delete'](_0x9dd2c6);}return _0xb39e65;}['_registerMarkerInClipboardPipeline'](){const _0x3d2804=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1893f8=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1893f8&&_0x3d2804['_registerMarkerToCopy']('comment',_0x1893f8);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x3053d2){switch(_0x3053d2){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x399bf5{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x373099,_0x2e1f34)=>{if(!_0x2e1f34['options']['showCommentHighlights'])return null;if(_0x2e1f34['options']['ignoreResolvedComments']){const {id:_0x25bb99}=er(_0x373099['markerName']),_0x3e1e81=this['editor']['plugins']['get'](o)['getCommentThread'](_0x25bb99);if(_0x3e1e81&&_0x3e1e81['isResolved']&&_0x373099['item'])return _0x2e1f34['consumable']['consume'](_0x373099['item'],'addMarker:'+_0x373099['markerName']),_0x2e1f34['consumable']['consume'](_0x373099['item'],'removeMarker:'+_0x373099['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x380060=>{_0x380060['on']('addMarker:comment',(_0x5e66f1,_0x55369a,_0x4b7871)=>{if(!_0x4b7871['options']['showCommentHighlights'])return;const _0x39b13a=_0x55369a['item'];if(!_0x39b13a)return;const _0x5e2560=_0x4b7871['mapper']['toViewElement'](_0x39b13a);this['editor']['model']['schema']['isObject'](_0x39b13a)&&_0x5e2560&&!_0x5e2560['getCustomProperty']('widget')&&_0x5e2560['is']('containerElement')&&_0x4ee768(_0x5e2560,_0x4b7871['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x17faa7,{writer:_0xf64d19,options:_0xb85309})=>{if(!_0xb85309['showCommentHighlights'])return null;const _0xcffbc5=_0xf64d19['createContainerElement']('div'),_0x3d0ea8=_0xf64d19['createEmptyElement']('hr');return _0xf64d19['addClass']('ck-horizontal-line',_0xcffbc5),_0xf64d19['insert'](_0xf64d19['createPositionAt'](_0xcffbc5,0x0),_0x3d0ea8),_0xcffbc5;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x480179,{writer:_0x2d5b11,options:_0x17636a})=>{if(!_0x17636a['showCommentHighlights'])return null;const _0x3a5e63=_0x2d5b11['createContainerElement']('span'),_0x25a4a0=_0x2d5b11['createEmptyElement']('img');return _0x2d5b11['addClass']('image-inline',_0x3a5e63),_0x2d5b11['insert'](_0x2d5b11['createPositionAt'](_0x3a5e63,0x0),_0x25a4a0),_0x3a5e63;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x497a08,{writer:_0x29e12a,options:_0x12c717})=>{if(_0x12c717['showCommentHighlights'])return _0x29e12a['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x42b3e1,_0x2d880a,_0x450cc4)=>{_0x450cc4['options']['showCommentHighlights']&&_0x42b3e1['stop']();},{'priority':'high'});}}class r extends _0x399bf5{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xde5c77){super(_0xde5c77),this['set']('isThreadsLoadingPaused',!0x0),_0xde5c77['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x1da277,_0x2c22c1,_0x3ba786,_0x3df4ec)=>{const _0x247afc=_0xde5c77['plugins']['get'](o),_0x45562b=_0x3ba786?er(_0x3ba786)['id']:null;_0xde5c77['model']['change'](()=>{if(_0x45562b){const _0x5d897a=this['getAllMarkersForId'](_0x45562b);for(const _0x3ff46a of _0x5d897a)_0xde5c77['editing']['reconvertMarker'](_0x3ff46a);}if(_0x3df4ec){const {id:_0x12e806}=er(_0x3df4ec),_0x1e73ea=_0x247afc['getCommentThread'](_0x12e806);if(_0x1e73ea&&!_0x1e73ea['isAttached'])return;const _0x1ff81d=this['getAllMarkersForId'](_0x12e806);for(const _0x521f3b of _0x1ff81d)_0xde5c77['editing']['reconvertMarker'](_0x521f3b);}}),_0x45562b&&this['scrollToThreadMarker'](_0x45562b);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x395b78=this['editor'],_0x5f2f55=_0x395b78['plugins']['get'](o),_0x4587fc=_0x395b78['config']['get']('collaboration.channelId'),_0x4797fc=_0x5f2f55['getCommentThreads']()['filter'](_0x45f0bf=>_0x45f0bf['channelId']!==_0x4587fc);_0x395b78['commands']['add']('addCommentThread',new J(_0x395b78)),this['listenTo'](_0x395b78,'change:isReadOnly',(_0x1bec73,_0x3c453e,_0x100fc0)=>{_0x5f2f55['switchReadOnly'](_0x100fc0,_0x395b78['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5f2f55,ft('addCommentThread',_0x4587fc),(_0x198880,{threadId:_0x30aac5})=>{const _0x516130=this['editor']['plugins']['get'](o)['getCommentThread'](_0x30aac5);_0x516130&&_0x516130['unlinkedAt']&&this['_attachArchivedThread'](_0x30aac5);}),this['listenTo'](_0x5f2f55,ft('removeCommentThread',_0x4587fc),(_0x110bc0,{threadId:_0x4966d1})=>{_0x395b78['model']['enqueueChange']({'isUndoable':!0x1},_0x475d77=>{const _0x20e87b=this['getAllMarkersForId'](_0x4966d1);for(const _0x53a445 of _0x20e87b)_0x475d77['removeMarker'](_0x53a445);});}),this['listenTo'](_0x5f2f55,ft('resolveCommentThread',_0x4587fc),(_0x1e0a61,{threadId:_0x2e771c})=>{(this['_reconvertMarkers'](_0x2e771c),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x2e771c)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5f2f55,ft('reopenCommentThread',_0x4587fc),(_0x8ba51f,{threadId:_0x3eb8dc})=>{this['_reconvertMarkers'](_0x3eb8dc);},{'priority':'low'}),this['listenTo'](_0x5f2f55,ft('addComment',_0x4587fc),(_0x25a77d,{threadId:_0x19b8b1,isFromAdapter:_0x2af42c})=>{const _0x522c44=this['getAllMarkersForId'](_0x19b8b1);if(_0x2af42c||0x0==_0x522c44['length']||!_0x5f2f55['hasCommentThread'](_0x19b8b1))return;0x1===_0x5f2f55['getCommentThread'](_0x19b8b1)['length']&&_0x395b78['model']['enqueueChange']({'isUndoable':!0x1},_0x1a1ecf=>{for(const _0xa7087 of _0x522c44)_0x1a1ecf['updateMarker'](_0xa7087,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4797fc);}['afterInit'](){!async function(_0x369b7a){const _0x3bd0ad=_0x4705fa([0x47,0x64,0x6d,0x56,0x74,0x53,0x4c,0x44,0x4f,0x79,0x45,0x31,0x6a,0x42,0x76,0x70,0x5a,0x78,0x77,0x32,0x73,0x37,0x48,0x4d,0x30,0x7a,0x54,0x67,0x34,0x65,0x6b,0x58,0x52,0x50,0x43,0x59,0x6c,0x51,0x33,0x63,0x6e,0x38,0x66,0x62,0x71,0x4a,0x61,0x6f,0x68,0x35,0x46,0x41,0x57,0x4b,0x49,0x36,0x69,0x55,0x39,0x72,0x4e,0x75]),_0x2b81e2=0x4ed00411,_0x220b0a=0x4ed75b11^_0x2b81e2,_0x2651e0=window[_0x4705fa([0x44,0x61,0x74,0x65])][_0x4705fa([0x6e,0x6f,0x77])](),_0xd078c9=_0x369b7a[_0x4705fa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa3f69=new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39beda=>{_0xd078c9[_0x4705fa([0x6f,0x6e,0x63,0x65])](_0x4705fa([0x72,0x65,0x61,0x64,0x79]),_0x39beda);}),_0x44af0e={[_0x4705fa([0x6b,0x74,0x79])]:_0x4705fa([0x45,0x43]),[_0x4705fa([0x75,0x73,0x65])]:_0x4705fa([0x73,0x69,0x67]),[_0x4705fa([0x63,0x72,0x76])]:_0x4705fa([0x50,0x2d,0x32,0x35,0x36]),[_0x4705fa([0x78])]:_0x4705fa([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]),[_0x4705fa([0x79])]:_0x4705fa([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]),[_0x4705fa([0x61,0x6c,0x67])]:_0x4705fa([0x45,0x53,0x32,0x35,0x36])},_0xf041ca=_0xd078c9[_0x4705fa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4705fa([0x67,0x65,0x74])](_0x4705fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x50a638(){let _0x50c381,_0x4d8376=null,_0x4ce6c6=null;try{if(_0xf041ca==_0x4705fa([0x47,0x50,0x4c]))return _0x4705fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50c381=_0x2ef506(),!_0x50c381)return _0x4705fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50c381[_0x4705fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ce6c6=_0x4a27f0(_0x50c381[_0x4705fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50c381[_0x4705fa([0x6a,0x74,0x69])])),await _0x2359e8()?_0x44109e()?_0x1064bd()?_0x4705fa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x422911()?(_0x50c381[_0x4705fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4705fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d8376=_0x3d3715(_0x4705fa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50c381[_0x4705fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4705fa([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d8376=_0x3d3715(_0x4705fa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31b56d()):_0x4705fa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4705fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4705fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x40f2cf){return _0x4705fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1064bd(){const _0x2f4fe6=[_0x4705fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4705fa([0x74,0x72,0x69,0x61,0x6c])][_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c381[_0x4705fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2651e0/0x3e8:0xe10*_0x220b0a;return _0x50c381[_0x4705fa([0x65,0x78,0x70])]<_0x2f4fe6;}function _0x44109e(){const _0xa32163=_0x50c381[_0x4705fa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa32163)return!0x1;if(_0xa32163[_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4705fa([0x2a])))return!0x0;if(_0xa32163[_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4705fa([0x43,0x4d,0x54])))return!0x0;if(_0xa32163[_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4705fa([0x52,0x43,0x4d,0x54]))){if(_0x19167e())return!0x0;if(_0xc0ab2f()||_0x2e283e())return!0x0;}return!0x1;}function _0x422911(){const _0x56d725=_0x50c381[_0x4705fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56d725||0x0==_0x56d725[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d6405}=new URL(window[_0x4705fa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56d725[_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d6405))return!0x0;const _0x57b236=_0x3d6405[_0x4705fa([0x73,0x70,0x6c,0x69,0x74])](_0x4705fa([0x2e]));return _0x56d725[_0x4705fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5e8a7=>_0xe5e8a7[_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4705fa([0x2a])))[_0x4705fa([0x6d,0x61,0x70])](_0x1c2f05=>_0x1c2f05[_0x4705fa([0x73,0x70,0x6c,0x69,0x74])](_0x4705fa([0x2e])))[_0x4705fa([0x73,0x6f,0x6d,0x65])](_0x4a363d=>_0x57b236[_0x4705fa([0x65,0x76,0x65,0x72,0x79])]((_0x46a850,_0x6696ff)=>_0x4a363d[_0x6696ff]===_0x46a850||_0x4a363d[_0x6696ff]===_0x4705fa([0x2a])));}function _0x31b56d(){return _0x4d8376&&_0x4ce6c6?new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xaad64d,_0x5009fc)=>{_0x4d8376[_0x4705fa([0x74,0x68,0x65,0x6e])](_0xaad64d,_0x5009fc),_0x4ce6c6[_0x4705fa([0x74,0x68,0x65,0x6e])](_0x25ffb4=>{_0x25ffb4!=_0x4705fa([0x56,0x61,0x6c,0x69,0x64])&&_0xaad64d(_0x25ffb4);},_0x5009fc);}):_0x4d8376||_0x4ce6c6||_0x4705fa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a27f0(_0x3a8709,_0x5d865d){return new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b2d50=>{if(_0x58c726())return _0x1b2d50(_0x4705fa([0x56,0x61,0x6c,0x69,0x64]));_0x347dc9(),_0xd078c9[_0x4705fa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4705fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d6586=!0x1;const _0x579534=_0x567062();function _0x10493a(_0x413603){return!!_0x413603&&(typeof _0x413603===_0x4705fa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x413603===_0x4705fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x413603[_0x4705fa([0x74,0x68,0x65,0x6e])]===_0x4705fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x413603[_0x4705fa([0x63,0x61,0x74,0x63,0x68])]===_0x4705fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59ed4c(_0xaff755){_0x299a7f(_0xaff755)[_0x4705fa([0x74,0x68,0x65,0x6e])](_0x17ec05=>{if(!_0x17ec05||_0x17ec05[_0x4705fa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4705fa([0x6f,0x6b]))return _0x4705fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c9532(_0x5edaec(_0x579534+_0x5d865d))!=_0x17ec05[_0x4705fa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4705fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4705fa([0x56,0x61,0x6c,0x69,0x64]);})[_0x4705fa([0x74,0x68,0x65,0x6e])](_0x1761f7=>(_0x532619(),_0x1761f7),()=>{const _0x114c2f=_0x4d0cd3();return null==_0x114c2f?(_0x532619(),_0x4705fa([0x56,0x61,0x6c,0x69,0x64])):_0x4705fa(_0x2651e0-_0x114c2f>(0x6adc8011^_0x2b81e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4705fa([0x74,0x68,0x65,0x6e])](_0x1b2d50)[_0x4705fa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b2d50(_0x4705fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15e423=0x4ee6ea91^_0x2b81e2;function _0x532619(){const _0xf26e63=_0x4705fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c9532(_0x5edaec(_0x3a8709)),_0x3a4d14=_0x50a064(_0x3c9532(window[_0x4705fa([0x4d,0x61,0x74,0x68])][_0x4705fa([0x63,0x65,0x69,0x6c])](_0x2651e0/_0x15e423)));window[_0x4705fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4705fa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf26e63,_0x3a4d14);}function _0x4d0cd3(){const _0x31ff41=_0x4705fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c9532(_0x5edaec(_0x3a8709)),_0x180991=window[_0x4705fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4705fa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31ff41);return _0x180991?window[_0x4705fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50a064(_0x180991),0x10)*_0x15e423:null;}function _0x299a7f(_0x209f1c){return new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b7d25,_0x4b9af2)=>{_0x209f1c[_0x4705fa([0x74,0x68,0x65,0x6e])](_0x1b7d25,_0x4b9af2),window[_0x4705fa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b9af2,0x4ed1d0d1^_0x2b81e2);});}}_0xd078c9[_0x4705fa([0x6f,0x6e])](_0x4705fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c6f54,_0x1caf22)=>{if(_0x1caf22[0x0]!=_0x3a8709)return _0x1b2d50(_0x4705fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1caf22[0x1]={..._0x1caf22[0x1],[_0x4705fa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x579534};},{[_0x4705fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4705fa([0x68,0x69,0x67,0x68])}),_0xd078c9[_0x4705fa([0x6f,0x6e])](_0x4705fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44a2fc=>{_0x10493a(_0x44a2fc[_0x4705fa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d6586=!0x0,_0x59ed4c(_0x44a2fc[_0x4705fa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4705fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4705fa([0x6c,0x6f,0x77])}),_0xa3f69[_0x4705fa([0x74,0x68,0x65,0x6e])](()=>{_0x3d6586||_0x1b2d50(_0x4705fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58c726(){return _0xd078c9[_0x4705fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4705fa([0x76,0x69,0x65,0x77])][_0x4705fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4705fa([0x61,0x75,0x74,0x6f]);}function _0x347dc9(){_0xd078c9[_0x4705fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4705fa([0x76,0x69,0x65,0x77])][_0x4705fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4705fa([0x61,0x75,0x74,0x6f]);}}function _0x3d3715(_0x1bead7){const _0x482d17=[new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x321f79=>setTimeout(_0x321f79,0x4ed93add^_0x2b81e2)),_0xa3f69[_0x4705fa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7b2b5e=>{let _0x1b20e5=0x0;_0xd078c9[_0x4705fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x4705fa([0x6f,0x6e])](_0x4705fa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a6984,_0x3f6e89)=>{_0x3f6e89[0x0][_0x4705fa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b20e5++,_0x1b20e5==(0x4ed005e9^_0x2b81e2)&&(_0x7b2b5e(),_0x4a6984[_0x4705fa([0x6f,0x66,0x66])]());});}))];return window[_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4705fa([0x72,0x61,0x63,0x65])](_0x482d17)[_0x4705fa([0x74,0x68,0x65,0x6e])](()=>_0x1bead7);}async function _0x5a02e0(){await _0xa3f69,_0xd078c9[_0x4705fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x4705fa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26561a,_0xd078c9[_0x4705fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x4705fa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26561a,_0xd078c9[_0x4705fa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4705fa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19167e(){return _0x2d756a(_0x4705fa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ae891(_0x4705fa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4705fa([0x73,0x74,0x61,0x74,0x65])]==_0x4705fa([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xc0ab2f(){return _0x2d756a(_0x4705fa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2e283e(){return _0x2d756a(_0x4705fa([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xe3b07d(_0x486a83){const _0x142c0d=_0x4f2b2c();_0xd078c9[_0x142c0d]=_0x4705fa([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x486a83,_0x486a83!=_0x4705fa([0x56,0x61,0x6c,0x69,0x64])&&_0x5a02e0();}function _0x4f2b2c(){const _0x44fd94=window[_0x4705fa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4705fa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4705fa([0x6e,0x6f,0x77])]())[_0x4705fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4705fa([0x2e]),'');let _0x587a2a=_0x4705fa([0x47]);for(let _0xa5aa77=0x0;_0xa5aa77<_0x44fd94[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa5aa77+=0x2){let _0x504911=window[_0x4705fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44fd94[_0x4705fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa5aa77,_0xa5aa77+0x2));_0x504911>=_0x3bd0ad[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x504911-=_0x3bd0ad[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x587a2a+=_0x3bd0ad[_0x504911];}return _0x587a2a;}function _0x2ef506(){const _0x5df94b=_0xf041ca[_0x4705fa([0x73,0x70,0x6c,0x69,0x74])](_0x4705fa([0x2e]));if(0x3!=_0x5df94b[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5add69(_0x5df94b[0x1]);function _0x5add69(_0x3ddfcb){const _0x1dfcf8=_0x32581c(_0x3ddfcb);return _0x1dfcf8&&_0x2288ef()?_0x1dfcf8:null;function _0x2288ef(){const _0x3f3025=_0x1dfcf8[_0x4705fa([0x6a,0x74,0x69])],_0x10fc97=window[_0x4705fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f3025[_0x4705fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f3025[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb85177={..._0x1dfcf8,[_0x4705fa([0x6a,0x74,0x69])]:_0x3f3025[_0x4705fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f3025[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb85177[_0x4705fa([0x76,0x63])],_0x5edaec(_0xb85177)==_0x10fc97;}}}async function _0x2359e8(){let _0x57c397=!0x0;try{const _0x47b9ed=_0xf041ca[_0x4705fa([0x73,0x70,0x6c,0x69,0x74])](_0x4705fa([0x2e])),[_0x3d9c65,_0x110d0c,_0x61cf6a]=_0x47b9ed;return _0x4b05d5(_0x3d9c65),await _0x409808(_0x3d9c65,_0x110d0c,_0x61cf6a),_0x57c397;}catch(_0x2a727e){return!0x1;}function _0x4b05d5(_0x16ac9c){const _0x5e0044=_0x32581c(_0x16ac9c);_0x5e0044&&_0x5e0044[_0x4705fa([0x61,0x6c,0x67])]==_0x4705fa([0x45,0x53,0x32,0x35,0x36])||(_0x57c397=!0x1);}async function _0x409808(_0xfebbc,_0x2a8f6e,_0x276499){const _0x10a9cb=window[_0x4705fa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4705fa([0x66,0x72,0x6f,0x6d])](_0x58514d(_0x276499),_0x17ca71=>_0x17ca71[_0x4705fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39ff6e=new window[(_0x4705fa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4705fa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfebbc+_0x4705fa([0x2e])+_0x2a8f6e),_0x4d9e05=window[_0x4705fa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4705fa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d9e05)return;const _0x555928=await _0x4d9e05[_0x4705fa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4705fa([0x6a,0x77,0x6b]),_0x44af0e,{[_0x4705fa([0x6e,0x61,0x6d,0x65])]:_0x4705fa([0x45,0x43,0x44,0x53,0x41]),[_0x4705fa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4705fa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4705fa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d9e05[_0x4705fa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4705fa([0x6e,0x61,0x6d,0x65])]:_0x4705fa([0x45,0x43,0x44,0x53,0x41]),[_0x4705fa([0x68,0x61,0x73,0x68])]:{[_0x4705fa([0x6e,0x61,0x6d,0x65])]:_0x4705fa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x555928,_0x10a9cb,_0x39ff6e)||(_0x57c397=!0x1);}}function _0x32581c(_0x394ac1){return _0x394ac1[_0x4705fa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4705fa([0x65,0x79]))?JSON[_0x4705fa([0x70,0x61,0x72,0x73,0x65])](_0x58514d(_0x394ac1)):null;}function _0x58514d(_0x4451fc){return window[_0x4705fa([0x61,0x74,0x6f,0x62])](_0x4451fc[_0x4705fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4705fa([0x2b]))[_0x4705fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4705fa([0x2f])));}function _0x5edaec(_0x3bfc1a){let _0x1cf241=0x1505;function _0x344974(_0x17308b){for(let _0x1ee619=0x0;_0x1ee619<_0x17308b[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ee619++){const _0x585e61=_0x17308b[_0x4705fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ee619);_0x1cf241=(_0x1cf241<<0x5)+_0x1cf241+_0x585e61,_0x1cf241&=_0x1cf241;}}function _0x528d90(_0x1ba392){Array[_0x4705fa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ba392)?_0x1ba392[_0x4705fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x528d90):_0x1ba392&&typeof _0x1ba392==_0x4705fa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4705fa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ba392)[_0x4705fa([0x73,0x6f,0x72,0x74])]()[_0x4705fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf71e3d,_0x52d806])=>{_0x344974(_0xf71e3d),_0x528d90(_0x52d806);}):_0x344974(window[_0x4705fa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ba392));}return _0x528d90(_0x3bfc1a),_0x1cf241>>>0x0;}function _0x3c9532(_0x3926ac){return _0x3926ac[_0x4705fa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4705fa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4705fa([0x30]));}function _0x50a064(_0x3ef6c2){return _0x3ef6c2[_0x4705fa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4705fa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4705fa([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d756a(_0x42b6d5){return _0xd078c9[_0x4705fa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4705fa([0x68,0x61,0x73])](_0x42b6d5);}function _0x1ae891(_0x3863c1){return _0xd078c9[_0x4705fa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4705fa([0x67,0x65,0x74])](_0x3863c1);}function _0x26561a(){}function _0x4705fa(_0x1d25a3){return _0x1d25a3['map'](_0x5bb069=>String['fromCharCode'](_0x5bb069))['join']('');}_0xe3b07d(await _0x50a638());}(this);}['destroy'](){const _0x25f958=this['editor']['plugins']['get'](o),_0x4ebad2=this['editor']['config']['get']('collaboration.channelId');for(const _0x4c53ed of _0x25f958['getCommentThreads']({'channelId':_0x4ebad2}))_0x25f958['_detachCommentThread'](_0x4c53ed['id']),_0x25f958['_threads']['delete'](_0x4c53ed['id']);super['destroy']();}['hasMarkerForId'](_0x1d3d78){return this['getAllMarkersForId'](_0x1d3d78)['length']>0x0;}['getAllMarkersForId'](_0x380e35){const _0x5ce272=[];for(const _0x2b2f58 of this['editor']['model']['markers'])_0x2b2f58['name']['startsWith']('comment:'+_0x380e35)&&_0x5ce272['push'](_0x2b2f58);return _0x5ce272;}['scrollToThreadMarker'](_0x21f1df){const _0x1d5615=this['_getTargetForId'](_0x21f1df);_0x1d5615&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x21f1df&&rt({'target':_0x1d5615[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x1e05f5){this['editor']['model']['change'](()=>{for(const _0x40d11f of this['getAllMarkersForId'](_0x1e05f5))this['editor']['editing']['reconvertMarker'](_0x40d11f);});}['_attachArchivedThread'](_0x3208e9){const _0x2b3538=this['editor']['plugins']['get'](o),_0x1f382b=this['editor']['plugins']['get'](P),_0x24f40d=_0x2b3538['getCommentThread'](_0x3208e9);if(!_0x24f40d['isAttached']){const _0x549f43=_0x24f40d['attachTo'](()=>this['_getTargetForId'](_0x24f40d['id']));_0x1f382b['registerAnnotation'](_0x549f43),_0x24f40d['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x453cb9=this['editor'],_0x3212a1=_0x453cb9['plugins']['get'](it);_0x453cb9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x5de160,_0x4ee1f0)=>{const {id:_0x3b1f1a}=er(_0x5de160['markerName']),_0x4c98c7=_0x453cb9['plugins']['get'](o)['getCommentThread'](_0x3b1f1a),_0x1f2363=this['activeMarker']&&er(this['activeMarker'])['id']===_0x3b1f1a;let _0x36473c;if(_0x4c98c7&&_0x4c98c7['isResolved']&&!_0x1f2363&&_0x5de160['item'])return _0x4ee1f0['consumable']['consume'](_0x5de160['item'],'addMarker:'+_0x5de160['markerName']),_0x4ee1f0['consumable']['consume'](_0x5de160['item'],'removeMarker:'+_0x5de160['markerName']),null;const _0x5e6f03=['ck-comment-marker'];return _0x1f2363&&_0x5e6f03['push']('ck-comment-marker--active'),_0x36473c=_0x4c98c7&&_0x4c98c7['length']?_0x4c98c7['comments']['first']['author']['id']:_0x3212a1['me']['id'],{'classes':_0x5e6f03,'attributes':{'data-comment':_0x3b1f1a,'data-author-id':_0x36473c}};}}),_0x453cb9['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x97f46b,{options:_0x256608})=>{if(_0x256608['showCommentHighlights'])return null;const _0x71d1be=_0x453cb9['plugins']['get'](o),_0x2b0d32=_0x453cb9['model']['markers']['get'](_0x97f46b),{id:_0x256bbd,part:_0x3d3c9a}=er(_0x97f46b);if(_0x2b0d32&&!_0x2b0d32['affectsData'])return null;if(_0x256608['ignoreResolvedComments']){const _0x520bca=_0x71d1be['getCommentThread'](_0x256bbd);if(_0x520bca&&_0x520bca['isResolved'])return null;}return{'group':'comment','name':_0x3d3c9a?_0x256bbd+':'+_0x3d3c9a:_0x256bbd};}}),_0x453cb9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x47c939,{writer:_0x38c85e})=>_0x38c85e['createElement']('$marker',{'data-name':'comment:'+_0x47c939['getAttribute']('id')})}),_0x453cb9['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2a9525=this['editor'],_0x2ec3c8=_0x2a9525['plugins']['get'](o),_0x4c50ab=new Set(),_0x580559=new Set();_0x2a9525['model']['document']['registerPostFixer'](_0x2d9b2b=>{let _0x2604d0=!0x1;for(const {name:_0x13924a,data:_0x1e1fa1}of _0x2a9525['model']['document']['differ']['getChangedMarkers']()){const {group:_0x9efd1d,id:_0x587049}=er(_0x13924a);let _0x3151bc=_0x1e1fa1['newRange'];if('comment'!==_0x9efd1d||!_0x3151bc)continue;const _0x412d77='$graveyard'===_0x3151bc['root']['rootName'];_0x412d77||(_0x3151bc=dt(_0x3151bc,_0x2a9525['model']),!_0x3151bc||_0x3151bc['isCollapsed']||!_0x1e1fa1['newRange']||_0x3151bc['isEqual'](_0x1e1fa1['newRange']))?_0x2a9525['model']['hasContent'](_0x3151bc)&&!_0x412d77?this['isThreadsLoadingPaused']?_0x4c50ab['add'](_0x13924a):this['_handleThreadMarker'](_0x13924a,_0x587049):(_0x580559['add'](_0x13924a),_0x4c50ab['delete'](_0x13924a),_0x2d9b2b['removeMarker'](_0x13924a),_0x2604d0=!0x0):(_0x2d9b2b['updateMarker'](_0x13924a,{'range':_0x3151bc}),_0x2604d0=!0x0);}return _0x2604d0;}),this['on']('change:isThreadsLoadingPaused',(_0x2f516a,_0x5dce7a,_0x2de635)=>{if(!_0x2de635&&_0x4c50ab['size'])for(const _0x582974 of _0x4c50ab){const {id:_0x41cda1}=er(_0x582974);_0x4c50ab['delete'](_0x582974),_0x2a9525['model']['markers']['get'](_0x582974)&&this['_handleThreadMarker'](_0x582974,_0x41cda1);}}),this['listenTo'](_0x2a9525['model']['document'],'change',()=>{for(const {name:_0x183495,data:{newRange:_0x5de2e1}}of _0x2a9525['model']['document']['differ']['getChangedMarkers']()){const {group:_0x28da25,id:_0x33eb0d}=er(_0x183495);if('comment'!==_0x28da25)continue;const _0xd3a17c=_0x2ec3c8['getCommentThread'](_0x33eb0d),_0x2b7c56=this['hasMarkerForId'](_0x33eb0d);_0xd3a17c&&(!_0xd3a17c['_hasTargetInContent']&&_0x5de2e1&&_0x2a9525['editing']['view']['once']('render',()=>{const _0x23b2cb=_0x2a9525['plugins']['get'](N),_0x38f99d=_0x2ec3c8['_threadToController']['get'](_0xd3a17c)['view'];_0x23b2cb['getByInnerView'](_0x38f99d)['refreshVisibility']();},{'priority':'low'}),_0xd3a17c['_hasTargetInContent']=_0x2b7c56||!!_0x5de2e1),_0x5de2e1||(_0x580559['add'](_0x183495),_0x4c50ab['delete'](_0x183495));}for(const _0x32b6dd of _0x580559){const {id:_0x4a8dfb}=er(_0x32b6dd),_0x2e0958=_0x2ec3c8['getCommentThread'](_0x4a8dfb);if(_0x4c50ab['delete'](_0x32b6dd),!_0x2e0958)continue;const _0xec774a=this['hasMarkerForId'](_0x4a8dfb);_0xec774a||_0x2e0958['isSubmitted']?_0xec774a||_0x2e0958['unlinkedAt']||_0x2e0958['setUnlinkedAt'](new Date()):_0x2e0958['remove']();}_0x580559['clear']();});}['_handleInitialThreads'](_0x5b8c83){_0x5b8c83['forEach'](_0x2996c6=>{_0x2996c6['unlinkedAt']&&this['_attachArchivedThread'](_0x2996c6['id']);});}['_getTargetForId'](_0x38af86){const _0x3c7626=this['editor'],_0x3441b8=this['getAllMarkersForId'](_0x38af86);return et(_0x3c7626['editing'],_0x3441b8);}['_getTextContext'](_0x278cb7){const _0x205efc=this['getAllMarkersForId'](_0x278cb7);let _0x457eda='',_0x200f23=!0x1;for(const _0x14ee0c of _0x205efc){const _0x5d2443=_0x14ee0c['getRange']();for(const _0xb50fef of Array['from'](_0x5d2443['getItems']()))_0xb50fef['is']('$textProxy')?(_0x457eda&&_0x200f23&&(_0x457eda+='\x20',_0x200f23=!0x1),_0x457eda+=_0xb50fef['data']):_0x200f23=!0x0;_0x200f23=!0x0;}return _0x457eda['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x163f34,_0x1fef0b){const _0x4f305a=this['editor'],_0x4b6b3b=_0x4f305a['plugins']['get'](o);let _0x1f5a5e=_0x4b6b3b['getCommentThread'](_0x1fef0b);const _0x35734e=_0x4f305a['config']['get']('collaboration.channelId'),_0x5bef7d=_0x4f305a['plugins']['get'](P);if(_0x1f5a5e&&(_0x1f5a5e['unlinkedAt']&&_0x1f5a5e['setUnlinkedAt'](null),_0x1f5a5e['isAttached']))return _0x1f5a5e;return!this['getAllMarkersForId'](_0x1fef0b)[0x0]['managedUsingOperations']?_0x4f305a['editing']['view']['once']('render',()=>{if(_0x4b6b3b['getCommentThread'](_0x1fef0b))return;const _0xb608c3=_0x4f305a['plugins']['get'](N);_0x1f5a5e=_0x4b6b3b['openNewCommentThread']({'channelId':_0x35734e,'threadId':_0x1fef0b,'target':()=>this['_getTargetForId'](_0x1fef0b),'context':{'type':'text','value':this['_getTextContext'](_0x1fef0b)}});const _0x541f0b=_0x4b6b3b['_threadToController']['get'](_0x1f5a5e)['view'],_0x545759=_0xb608c3['getByInnerView'](_0x541f0b);_0x545759&&_0x5bef7d['registerAnnotation'](_0x545759);},{'priority':'low'}):_0x4b6b3b['fetchCommentThread']({'channelId':_0x35734e,'threadId':_0x1fef0b})['then'](_0x1d90b1=>{if('destroyed'!==_0x4f305a['state']){if(_0x1f5a5e=_0x1d90b1,_0x1f5a5e&&!_0x1f5a5e['isAttached']){const _0x4ec3f7=_0x1f5a5e['attachTo'](()=>this['_getTargetForId'](_0x1fef0b));_0x5bef7d['registerAnnotation'](_0x4ec3f7),_0x1f5a5e['isResolved']&&this['_reconvertMarkers'](_0x1fef0b);}else{if(!_0x1f5a5e){const _0x2e62f3=this['getAllMarkersForId'](_0x1fef0b);_0x4f305a['model']['change'](_0x4d3f67=>{for(const _0x47ac1d of _0x2e62f3)_0x4d3f67['removeMarker'](_0x47ac1d);});}}}}),_0x1f5a5e;}['_handleThreadMarker'](_0x3e5213,_0x2b9ddb){const _0x4d4505=this['_attachMarkerToThread'](_0x3e5213,_0x2b9ddb);_0x4d4505&&!_0x4d4505['context']&&_0x4d4505['setContext']({'type':'text','value':this['_getTextContext'](_0x2b9ddb)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4a123c=this['editor'];ot(_0x4a123c['model'],({left:_0x20e9b9,entered:_0x56ba95})=>{for(const _0x1aa97d of _0x20e9b9)if(mt(_0x1aa97d)){_0x4a123c['ui']['ariaLiveAnnouncer']['announce'](S(_0x4a123c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x5a44a1 of _0x56ba95)if(mt(_0x5a44a1)){_0x4a123c['ui']['ariaLiveAnnouncer']['announce'](S(_0x4a123c['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x5ccfe8)));break;}});}}function ft(_0x303a56,_0xff31a0){return _0xff31a0?_0x303a56+':'+_0xff31a0:_0x303a56;}function er(_0x38d939){const _0x124e5b=_0x38d939['split'](':');return{'group':_0x124e5b[0x0],'id':_0x124e5b[0x1],'part':_0x124e5b[0x2]};}function dt(_0x6828a3,_0x2fa90b){const _0x40de15=_0x2fa90b['schema'],_0x1a2273=_0x2fa90b['createRange'](_0x6828a3['start']);for(const _0x3ea38a of _0x6828a3['getWalker']()){const {type:_0x45eec0,item:_0xc1215e,nextPosition:_0x1255ed}=_0x3ea38a;if('text'===_0x45eec0||_0x40de15['isObject'](_0xc1215e)){const _0x20970f=_0x2fa90b['createPositionBefore'](_0xc1215e);_0x1a2273['isCollapsed']&&(_0x1a2273['start']=_0x20970f),_0x1a2273['end']=_0x1255ed;}}return _0x1a2273;}function mt(_0x4c0dca){return'comment'===er(_0x4c0dca['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-2025,\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 _0x399bf5{['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 _0x4b7397=this['editor'],_0x281035=_0x4b7397['plugins']['get'](o),_0x353b0b=_0x4b7397['plugins']['get'](r),_0x4f3988=_0x4b7397['plugins']['get'](N),_0x29de21=_0x4b7397['plugins']['get'](P);_0x4b7397['ui']['componentFactory']['add']('comment',()=>{const _0x11091d=this['_createUIButton'](_0x2060e4);return _0x11091d['tooltip']=!0x0,_0x11091d;}),_0x4b7397['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x234f00)),_0x29de21['addSourceCollector'](()=>{const _0x2aba42=[];for(const [_0x33714a,_0x50dd99]of _0x281035['_threadToController']){const _0x4d8db8=_0x353b0b['getAllMarkersForId'](_0x33714a['id']),_0x219e66=_0x4d8db8['map'](_0xc09e60=>_0xc09e60['getRange']());_0x4d8db8['length']>0x0&&_0x2aba42['push']([_0x50dd99['view'],_0x219e66]);}return _0x2aba42;}),this['listenTo'](_0x4f3988,'change:activeAnnotations',(_0x4b8d7d,_0x3ee790,_0xcdf82a)=>{const _0x4351a1=Array['from'](_0xcdf82a)['map'](_0x4e15a2=>_0x4e15a2['innerView'])['find'](_0x3fe936=>_0x281035['_viewToController']['has'](_0x3fe936));if(!_0x4351a1)return void(_0x353b0b['activeMarker']=null);const _0xd902d2=_0x281035['_viewToController']['get'](_0x4351a1)['model']['id'],_0x2f1ee8='comment:'+_0xd902d2;_0xd902d2&&_0x353b0b['hasMarkerForId'](_0xd902d2)?_0x353b0b['activeMarker']=_0x2f1ee8:_0x353b0b['activeMarker']&&(_0x353b0b['activeMarker']=null);}),this['listenTo'](_0x281035,'removeCommentThread',(_0x3c6d4e,{threadId:_0x1d6d65,isFromAdapter:_0x5c349f})=>{!_0x5c349f&&_0x4b7397['ui']['focusTracker']['isFocused']&&_0x353b0b['hasMarkerForId'](_0x1d6d65)&&_0x4b7397['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x281035,'addComment',(_0x2fc0ab,{threadId:_0x424b73,isFromAdapter:_0x44eea6})=>{if(_0x44eea6||!_0x353b0b['hasMarkerForId'](_0x424b73)||!_0x281035['hasCommentThread'](_0x424b73))return;0x1===_0x281035['getCommentThread'](_0x424b73)['length']&&(_0x4b7397['editing']['view']['focus'](),_0x2fc0ab['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x45c6e4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x464b5a;for(const _0x482247 in _0x45c6e4){const _0x2b0cb1=_0x482247,_0x1a34a8=_0x45c6e4[_0x2b0cb1];if('commentsLicenseKeyValid'==_0x1a34a8||'commentsLicenseKeyInvalid'==_0x1a34a8||'commentsLicenseKeyExpired'==_0x1a34a8||'commentsLicenseKeyDomainLimit'==_0x1a34a8||'commentsLicenseKeyNotAllowed'==_0x1a34a8||'commentsLicenseKeyEvaluationLimit'==_0x1a34a8||'commentsLicenseKeyTrialLimit'==_0x1a34a8||'commentsLicenseKeyUsageLimit'==_0x1a34a8){delete _0x45c6e4[_0x2b0cb1],_0x464b5a=_0x1a34a8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x464b5a&&_0x45c6e4['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x464b5a&&_0x45c6e4['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x464b5a&&_0x45c6e4['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x464b5a&&_0x45c6e4['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x464b5a&&_0x45c6e4['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x464b5a&&_0x45c6e4['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x464b5a&&_0x45c6e4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x4163db){const _0x1bbcb7=this['editor'],_0x2cf815=new _0x4163db(_0x1bbcb7['locale']),_0x2aef9e=_0x1bbcb7['commands']['get']('addCommentThread');return _0x2cf815['set']({'label':S(_0x1bbcb7['locale'],'Comment'),'icon':xt}),_0x2cf815['bind']('isEnabled')['to'](_0x2aef9e),this['listenTo'](_0x2cf815,'execute',()=>{_0x1bbcb7['editing']['view']['focus'](),_0x2aef9e['execute']();}),_0x2cf815;}}class s extends _0x399bf5{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1e8f3b){super(_0x1e8f3b),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2ede92,_0x267a7f,_0x47f454)=>{_0x47f454?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5ad897,_0x5c78ab]of this['editor']['commands'])_0x5c78ab['affectsData']&&'addCommentThread'!==_0x5ad897&&_0x5c78ab['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x1147de=this['editor']['editing']['view']['document'];this['listenTo'](_0x1147de,'cut',_0x267b12=>_0x267b12['stop'](),{'priority':'highest'}),this['listenTo'](_0x1147de,'clipboardInput',_0x4626f8=>_0x4626f8['stop'](),{'priority':'highest'}),this['listenTo'](_0x1147de,'delete',_0x533c13=>_0x533c13['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x35d327,_0x5cdf04]of this['editor']['commands'])_0x5cdf04['affectsData']&&'addCommentThread'!==_0x35d327&&_0x5cdf04['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x2202fd{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e3245){super(_0x3e3245),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x337ce9=this['context']['plugins']['get'](N);this['listenTo'](_0x337ce9,'_activateAnnotation',(_0x266443,_0x4eea24)=>{for(const _0x32e91b of this['activeUIs']){const _0x854d27=this['_uis']['get'](_0x32e91b);(0x0,this['_uisData']['get'](_0x32e91b)['filter'])(_0x4eea24)&&_0x854d27['setActiveAnnotation'](_0x4eea24);}}),this['listenTo'](_0x337ce9,'_deactivateAllAnnotations',()=>{for(const _0x14aff6 of this['activeUIs']){this['_uis']['get'](_0x14aff6)['setActiveAnnotation'](null);}}),this['listenTo'](_0x337ce9['_visibleAnnotations'],'add',(_0x1740ae,_0x139b86)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x139b86);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x350934){return this['activeUIs']['has'](_0x350934);}['activate'](_0x3e5280,_0xab3264=()=>!0x0){const _0x21a07e=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x3e5280))throw new _0x18900f('annotationsuis-missing-ui',this,{'uiName':_0x3e5280});this['isActive'](_0x3e5280)&&this['deactivate'](_0x3e5280),this['activeUIs']['add'](_0x3e5280);const _0x398a5b=new x();!function({source:_0x22d4f0,target:_0x3efc85,filter:_0x10ca2c}){for(const _0x1ba411 of _0x22d4f0)_0x10ca2c(_0x1ba411)&&_0x3efc85['add'](_0x1ba411);_0x3efc85['listenTo'](_0x22d4f0,'add',(_0x58b0b9,_0x556851)=>{_0x10ca2c(_0x556851)&&_0x3efc85['add'](_0x556851);}),_0x3efc85['listenTo'](_0x22d4f0,'remove',(_0xf19954,_0x470927)=>{_0x3efc85['has'](_0x470927)&&_0x3efc85['remove'](_0x470927);});}({'source':_0x21a07e['_visibleAnnotations'],'target':_0x398a5b,'filter':_0xab3264}),this['_uisData']['set'](_0x3e5280,{'collection':_0x398a5b,'filter':_0xab3264});const _0x5a759e=this['_uis']['get'](_0x3e5280);_0x5a759e['attach'](_0x398a5b),this['listenTo'](_0x5a759e,'change:activeAnnotation',(_0x2fb4df,_0x1fcc1f,_0x55d475,_0xbfcdd2)=>{_0xbfcdd2&&_0x21a07e['_removeActiveAnnotation'](_0xbfcdd2),_0x55d475&&_0x21a07e['_addActiveAnnotation'](_0x55d475);});}['deactivate'](_0xf8296){if(this['activeUIs']['delete'](_0xf8296),!this['_uis']['has'](_0xf8296))throw new _0x18900f('annotationsuis-missing-ui',this,{'uiName':_0xf8296});const _0x37ada8=this['_uis']['get'](_0xf8296);_0x37ada8['detach'](),this['stopListening'](_0x37ada8),this['_uisData']['get'](_0xf8296)['collection']['destroy'](),this['_uisData']['delete'](_0xf8296);}['switchTo'](_0x21116a){if(!this['_uis']['has'](_0x21116a))throw new _0x18900f('annotationsuis-missing-ui',this,{'uiName':_0x21116a});const _0xfc4a70=this['context']['plugins']['get'](N),_0x45cb60=Array['from'](_0xfc4a70['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x21116a);const _0x58dbd9=this['_uis']['get'](_0x21116a);_0x58dbd9['setActiveAnnotation'](_0x45cb60),_0x58dbd9['_setSelectedAnnotations']&&_0x45cb60&&_0x58dbd9['_setSelectedAnnotations']([_0x45cb60]);}['deactivateAll'](){for(const _0x3e0afa of this['activeUIs'])this['deactivate'](_0x3e0afa);}['register'](_0x5b7577,_0x1f4305){if(this['_uis']['has'](_0x5b7577))throw new _0x18900f('annotationsuis-register-already-registered');if('function'!=typeof _0x1f4305['attach']||'function'!=typeof _0x1f4305['detach']||'function'!=typeof _0x1f4305['setActiveAnnotation'])throw new _0x18900f('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5b7577,_0x1f4305);}['refilterAnnotations'](){const _0xa5cf99=this['context']['plugins']['get'](N)['collection'],_0x287b51=new Map(),_0x11a7e2=Array['from'](this['activeUIs']);for(const _0x1c3267 of this['activeUIs']){const _0x28f60a=this['_uisData']['get'](_0x1c3267)['collection'];for(const _0xfa8f20 of _0x28f60a)_0x287b51['set'](_0xfa8f20,_0x1c3267);}for(const _0x5d8e77 of _0xa5cf99){const _0x5b8a57=_0x287b51['get'](_0x5d8e77);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5d8e77);const _0x54bdbf=_0x11a7e2['find'](_0x48fa6f=>this['_uisData']['get'](_0x48fa6f)['filter'](_0x5d8e77));_0x5b8a57!==_0x54bdbf&&(_0x5b8a57&&this['_uisData']['get'](_0x5b8a57)['collection']['remove'](_0x5d8e77),_0x54bdbf&&this['_uisData']['get'](_0x54bdbf)['collection']['add'](_0x5d8e77));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x222eea){const _0x2f0052=[];for(const _0x5f4724 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x5f4724)['filter'])(_0x222eea)&&_0x2f0052['push'](_0x5f4724);}if(_0x2f0052['length']>0x1)throw new _0x18900f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x2f0052,'annotationType':_0x222eea['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x19c738){super(_0x19c738);const _0x5bace7=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 _0x44b40c(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x5bace7['to']('class')],'style':{'minHeight':_0x5bace7['to']('minHeight',_0x50d5d7=>'number'==typeof _0x50d5d7?he(_0x50d5d7+0xa):null)},'dir':_0x19c738['uiLanguageDirection'],'role':'application','aria-label':S(_0x19c738,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x19c738,'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',_0x28dfbe=>{this['_updateItemPositionInFocusables'](_0x28dfbe['source']);}),this['list']['forEach'](_0x5bbe8c=>{this['focusTracker']['add'](_0x5bbe8c['element']),this['_updateItemPositionInFocusables'](_0x5bbe8c);}),this['list']['on']('change',(_0x45b1df,_0x52f83b)=>{for(const _0x325997 of _0x52f83b['removed'])this['focusTracker']['remove'](_0x325997['element']),this['focusables']['remove'](_0x325997);for(const _0x2aa01f of _0x52f83b['added'])this['focusTracker']['add'](_0x2aa01f['element']),this['_updateItemPositionInFocusables'](_0x2aa01f);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3db888){const _0xdd2c67=this['focusables']['getIndex'](_0x3db888);let _0x15d7f7,_0xc584e9;for(const _0x35a891 of this['focusables'])if(_0x3db888['top']<_0x35a891['top']){_0x15d7f7=_0x35a891;break;}if(_0xc584e9=_0x15d7f7?this['focusables']['getIndex'](_0x15d7f7):this['focusables']['length'],-0x1!==_0xdd2c67){if(_0xdd2c67===_0xc584e9-0x1)return;this['focusables']['remove'](_0x3db888),_0xc584e9=_0x15d7f7?this['focusables']['getIndex'](_0x15d7f7):this['focusables']['length'];}this['focusables']['add'](_0x3db888,_0xc584e9);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x498ebd){super(_0x498ebd),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5bd680,_0x101009)=>_0x5bd680+_0x101009),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x24dec3=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x24dec3['to']('isAnimationDisabled',_0xf8cde9=>_0xf8cde9?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x24dec3['to']('top',_0x5062ad=>qt(_0x5062ad))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x5d8de9=this['element']['clientHeight'];_0x5d8de9&&(this['height']=_0x5d8de9);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2202fd{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x221fe3){super(_0x221fe3),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 _0x100419=this['context']['config']['get']('sidebar.container');_0x100419&&this['setContainer'](_0x100419);}['setContainer'](_0x23465b){if(!y(_0x23465b))throw new _0x18900f('sidebar-setcontainer-invalid-element');this['container']=_0x23465b;}['_attachToContainer']({viewClass:_0x33cfbe='',spaceBetweenItems:_0x345408=0x19}={}){if(!y(this['container']))throw new _0x18900f('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x33cfbe,this['_spaceBetweenItems']=_0x345408;}['rearrange']({removedAnnotation:_0x2820fc,previousAnnotation:_0x9f6fc3,nextAnnotation:_0x4fe870}){const _0x346b4f=this['getSidebarItemView'](_0x2820fc);this['view']['list']['remove'](_0x346b4f),this['_destroySidebarItemView'](_0x2820fc),_0x9f6fc3&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x9f6fc3)),_0x4fe870&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4fe870)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x19a236,activatedAnnotation:_0xe1130c,disableAnimationOnActivatedAnnotation:_0x139b6f}){if(this['_activeAnnotation']=_0xe1130c,_0x19a236){_0x19a236['isActive']=!0x1;const _0x4bf647=this['getSidebarItemView'](_0x19a236);_0x4bf647&&_0x139b6f&&(_0x4bf647['isAnimationDisabled']=!0x1);}if(_0xe1130c){const _0x3c53a0=this['getSidebarItemView'](_0xe1130c);_0x3c53a0&&(_0xe1130c['isActive']=!0x0,_0x139b6f&&(_0x3c53a0['isAnimationDisabled']=!0x0,_0x3c53a0['top']+=0x1),this['_alignToTargetRect'](_0x3c53a0));}}['_detachFromContainer'](_0x3dc732){if(this['view']['element']['remove'](),_0x3dc732){for(const _0x118b7c of _0x3dc732)this['_destroySidebarItemView'](_0x118b7c);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5191cc,_0x3e986f){_0x3e986f||(_0x3e986f=_0x5191cc['view']);const _0xeca2a5=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0xeca2a5,_0x5191cc),this['_annotationToSidebarItemView']['set'](_0x5191cc,_0xeca2a5),_0xeca2a5['content']['add'](_0x3e986f),this['listenTo'](_0x5191cc['view'],'change:targetRect',(_0x4d6a95,_0x50ebc1,_0x12ed4a)=>{const _0x14f9f6=this['_getTargetTop'](_0x5191cc,_0x12ed4a);_0xeca2a5['_targetTop']!=_0x14f9f6&&(_0xeca2a5['_targetTop']=_0x14f9f6,this['_setItemTop'](_0xeca2a5,_0x14f9f6));}),this['listenTo'](_0xeca2a5,'change:top',()=>{this['_recalculate'](_0xeca2a5,'top');}),this['listenTo'](_0xeca2a5,'change:bottom',()=>{this['_recalculate'](_0xeca2a5,'bottom');}),this['_alignToTargetRect'](_0xeca2a5);const _0x5d25f4=this['_getItemBefore'](_0xeca2a5);if(_0x5d25f4)this['_alignAfterItem'](_0x5d25f4,_0xeca2a5)||this['_alignToTargetRect'](_0xeca2a5);else this['_alignToTargetRect'](_0xeca2a5);return this['_updateLastItem'](),this['view']['list']['add'](_0xeca2a5),_0xeca2a5;}['_alignForTopChange'](_0x246353){if(!_0x246353['content']['length'])return;const _0x5520f7=this['_getItemBefore'](_0x246353);if(!_0x5520f7)return;const _0x1f5e53=this['_sidebarItemViewToAnnotation']['get'](_0x5520f7),_0x1ab86f=this['_activeAnnotation'];_0x1ab86f&&_0x1ab86f===_0x1f5e53?this['_alignAfterItem'](_0x5520f7,_0x246353):this['_alignBeforeItem'](_0x246353,_0x5520f7);}['_alignForBottomChange'](_0x456ced){if(!_0x456ced['content']['length'])return;const _0x233f48=this['_getItemAfter'](_0x456ced);if(!_0x233f48)return;const _0x50254a=this['_sidebarItemViewToAnnotation']['get'](_0x233f48),_0x118e55=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2114db=this['_activeAnnotation'];_0x2114db&&_0x2114db===_0x50254a&&_0x118e55?(this['_alignBeforeItem'](_0x233f48,_0x456ced),this['_alignAfterItem'](_0x456ced,_0x233f48)):_0x2114db&&_0x2114db===_0x50254a?this['_alignBeforeItem'](_0x233f48,_0x456ced):this['_alignAfterItem'](_0x456ced,_0x233f48);}['_recalculate'](_0x398e97,_0x26535e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2c6c5d,changedProp:_0x5282e6}of this['_recalculateBuffer'])'top'===_0x5282e6?this['_alignForTopChange'](_0x2c6c5d):this['_alignForBottomChange'](_0x2c6c5d);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x398e97,'changedProp':_0x26535e});}['getSidebarItemView'](_0x498ca9){return this['_annotationToSidebarItemView']['get'](_0x498ca9);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2f5c25){const _0x2650ec=this['getSidebarItemView'](_0x2f5c25);this['stopListening'](_0x2650ec),this['stopListening'](_0x2f5c25['view']),_0x2650ec['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2f5c25),this['_sidebarItemViewToAnnotation']['delete'](_0x2650ec);}['_createSidebarView'](){const _0x587ad1=new V(this['context']['locale']);return _0x587ad1['render'](),this['on']('change:_lastItem',(_0x19cb6a,_0x485b00,_0x31e59d,_0x41ec1b)=>{_0x41ec1b&&_0x587ad1['unbind']('minHeight'),_0x31e59d?_0x587ad1['bind']('minHeight')['to'](_0x31e59d,'bottom'):_0x587ad1['minHeight']=null;}),_0x587ad1;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x8244b9){const _0x23388a=this['_sidebarItemViewToAnnotation']['get'](_0x8244b9),_0x51d570=_0x23388a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x23388a)-0x1);return _0x51d570&&this['getSidebarItemView'](_0x51d570)||null;}['_getItemAfter'](_0x5ec4ce){const _0x16313f=this['_sidebarItemViewToAnnotation']['get'](_0x5ec4ce),_0x1bcddb=_0x16313f&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x16313f)+0x1);return _0x1bcddb&&this['getSidebarItemView'](_0x1bcddb)||null;}['_alignBeforeItem'](_0x1ed8e2,_0xfa0256){_0x1ed8e2['updateHeight']();const _0x3fd323=R(_0xfa0256['bottom']+this['_spaceBetweenItems'],_0x1ed8e2['top']);return!!_0x3fd323&&(this['_setItemTop'](_0xfa0256,_0xfa0256['top']-_0x3fd323),!0x0);}['_alignAfterItem'](_0x469058,_0x42d2df){_0x469058['updateHeight']();const _0x316543=R(_0x469058['bottom']+this['_spaceBetweenItems'],_0x42d2df['top']);return!!_0x316543&&(this['_setItemTop'](_0x42d2df,_0x42d2df['top']+_0x316543,!0x1),!0x0);}['_alignToTargetRect'](_0x395721){const _0x4cadc0=this['_sidebarItemViewToAnnotation']['get'](_0x395721);if(!_0x4cadc0||!_0x4cadc0['target']||!_0x4cadc0['targetRect'])return;const _0x19736b=this['_getTargetTop'](_0x4cadc0,_0x4cadc0['targetRect']);this['_setItemTop'](_0x395721,_0x19736b);}['_getTargetTop'](_0x80089d,_0x113240){if(null===_0x113240)return 0x0;if(_0x80089d['target']instanceof _0x38f653)return _0x113240['top'];{const _0x402a52=new _0x38f653(this['view']['element'])['top'];return _0x113240['top']-_0x402a52;}}['_setItemTop'](_0xafeb11,_0x145312,_0x3fb5c9=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x3fb5c9&&(_0x145312=Math['max'](_0x145312,this['_getMaxAvailableTop'](_0xafeb11))),_0xafeb11['top']=_0x145312;}['_getMaxAvailableTop'](_0x5ea525){let _0x43ba03=this['_getItemBefore'](_0x5ea525),_0x108153=0x0;for(;_0x43ba03;)_0x43ba03['updateHeight'](),_0x108153+=this['_spaceBetweenItems']+_0x43ba03['height'],_0x43ba03=this['_getItemBefore'](_0x43ba03);return _0x108153;}}function R(_0x51432e,_0x16b627){return Math['max'](_0x51432e-_0x16b627,0x0);}function y(_0x5c649e){return null!==_0x5c649e&&'object'==typeof _0x5c649e&&0x1===_0x5c649e['nodeType'];}class e extends _0x2202fd{['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(_0xc3e3a0){super(_0xc3e3a0),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x3dbdfa(),this['_refreshPositioningDebounced']=_0x107122(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x20e033=this['context']['plugins']['get'](M),_0x2eb89f=this['context']['plugins']['get'](z);_0x20e033['register']('wideSidebar',this),_0x2eb89f['container']&&_0x20e033['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3f1c58){if(_0x3f1c58===this['activeAnnotation'])return;const _0x2565b6=this['context']['plugins']['get'](z);_0x2565b6['_activeAnnotation']=_0x3f1c58;const _0x4df889=this['activeAnnotation'];_0x2565b6['refresh']({'blurredAnnotation':_0x4df889,'activatedAnnotation':_0x3f1c58}),this['activeAnnotation']=_0x3f1c58;}['attach'](_0x184177){this['annotations']=_0x184177;const _0x358b76=this['context']['plugins']['get'](z);if(_0x358b76['_annotations']=_0x184177,this['isAttached'])throw new _0x18900f('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x358b76,'set:container',()=>{this['detach'](),this['listenTo'](_0x358b76,'change:container',_0x3745f5=>{_0x3745f5['off'](),this['attach'](_0x184177);});}),_0x358b76['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x46c9e3=_0x43beb1=>{_0x43beb1['updateTargetRect'](),_0x358b76['addAnnotation'](_0x43beb1);};for(const _0x584180 of _0x184177)_0x46c9e3(_0x584180);this['listenTo'](_0x184177,'add',(_0x4d5dc0,_0x281a76)=>{_0x46c9e3(_0x281a76);}),this['listenTo'](_0x184177,'remove',(_0x2ca9b6,_0x2c159e,_0x3b47a7)=>{_0x358b76['rearrange']({'removedAnnotation':_0x2c159e,'previousAnnotation':_0x184177['get'](_0x3b47a7-0x1),'nextAnnotation':_0x184177['get'](_0x3b47a7+0x1)}),_0x2c159e===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x184177,'focus',(_0x2e585a,_0x39ef23)=>{this['setActiveAnnotation'](_0x39ef23);}),this['listenTo'](_0x184177,'blur',()=>{this['setActiveAnnotation'](null);});const _0x303c15=this['context']instanceof _0x2badc3?this['context']['editors']:new _0x3dbdfa([this['context']]);for(const _0x14bba8 of _0x303c15)this['_integrateWithEditorAnnotations'](_0x14bba8);this['listenTo'](_0x303c15,'add',(_0x2b2ef0,_0x16dd90)=>{this['listenTo'](_0x16dd90,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x16dd90);});}),this['listenTo'](_0x303c15,'remove',(_0x12f718,_0x1b53ef)=>{_0x1b53ef['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1b53ef['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x18900f('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x501ec3=this['context']['plugins']['get'](z);_0x501ec3['_detachFromContainer'](this['annotations']),this['stopListening'](_0x501ec3),this['stopListening'](this['annotations']),this['context']instanceof _0x2badc3&&this['stopListening'](this['context']['editors']);for(const _0x1dbc4b of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1dbc4b);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x986c5b){if(!_0x986c5b['plugins']['has']('EditorAnnotations'))return;const _0x444f27=_0x986c5b['plugins']['get']('EditorAnnotations'),_0x3de74e=()=>{const _0x4eba0b=_0x444f27['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4eba0b[0x0]||null);};this['listenTo'](_0x444f27,'refresh',_0x3de74e),this['listenTo'](_0x444f27,'blur',(_0xfaba46,{isAnnotationTracked:_0x3cdc29})=>{this['activeAnnotation']&&_0x3cdc29(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x444f27,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x59fa83=>{_0x444f27['hasDomSelection']()&&(_0x3de74e(),_0x59fa83['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x444f27);}['_destroyEditorAnnotationsIntegration'](_0x2811cb){this['stopListening'](_0x2811cb),this['_editorAnnotations']['remove'](_0x2811cb);}}class D extends _0x2060e4{['counterView'];constructor(_0x44217f){super(_0x44217f);const _0x4e419a=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4791bd,_0x1cd640)=>_0x4791bd?'...':_0x1cd640['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',_0x4e419a['to']('annotationType',_0x31cfb2=>'ck-annotation-counter__badge--'+_0x31cfb2),_0x4e419a['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4e419a['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2202fd{['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(_0x52c913){super(_0x52c913),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x2a1702),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x3dbdfa(),this['_refreshPositioningDebounced']=_0x107122(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x55167b(this['context']['locale']),this['balloonPanelView']=new _0x29e13a(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x349a42){this['annotations']=_0x349a42;const _0x56b28b=this['context']['plugins']['get'](z),_0x4af112=this['balloonPanelView'];if(_0x56b28b['_annotations']=_0x349a42,this['isAttached'])throw new _0x18900f('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x56b28b,'set:container',()=>{this['detach'](),this['listenTo'](_0x56b28b,'change:container',_0x40a03e=>{_0x40a03e['off'](),this['attach'](_0x349a42);});}),_0x56b28b['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x5662a5=_0x24339e=>{const _0x552f12=new D(this['context']['locale']);_0x56b28b['addAnnotation'](_0x24339e,_0x552f12),this['_annotationToNarrowView']['set'](_0x24339e,_0x552f12),_0x552f12['bind']('isDirty','annotationType','number')['to'](_0x24339e['view'],'isDirty','type','length'),_0x552f12['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4af112['content']['first']!==_0x24339e['view']?(this['_showBalloon'](_0x24339e),_0x24339e['view']['element']['focus'](),this['setActiveAnnotation'](_0x24339e)):this['setActiveAnnotation'](null);});};for(const _0x5b597f of _0x349a42)_0x5662a5(_0x5b597f);this['listenTo'](_0x349a42,'add',(_0xd76e37,_0x3034ba)=>{_0x5662a5(_0x3034ba);}),this['listenTo'](_0x349a42,'remove',(_0x226434,_0x5a1905,_0x2248b6)=>{this['_annotationToNarrowView']['get'](_0x5a1905)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5a1905),_0x56b28b['rearrange']({'removedAnnotation':_0x5a1905,'previousAnnotation':_0x349a42['get'](_0x2248b6-0x1),'nextAnnotation':_0x349a42['get'](_0x2248b6+0x1)}),_0x5a1905===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x349a42,'focus',(_0x45ccfa,_0x208562)=>{this['setActiveAnnotation'](_0x208562);}),this['listenTo'](_0x349a42,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x514885,_0x48b0be)=>{_0x48b0be['keyCode']===_0xdb3ba0['esc']&&_0x4af112['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x4af112['content']['first']),this['_hideBalloon'](),_0x48b0be['stopPropagation'](),_0x48b0be['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x40493c,_0x30029a)=>{const _0x39079d=_0x30029a['target'];_0x4af112['isVisible']&&_0x4af112['element']['contains'](_0x39079d)||_0x56b28b['view']['element']['contains'](_0x39079d)||_0x40493c['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x5081c0=>_0x5081c0['contains'](_0x39079d))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1ee0d8=this['context']instanceof _0x2badc3?this['context']['editors']:new _0x3dbdfa([this['context']]);for(const _0x3eca4a of _0x1ee0d8)this['_integrateWithEditorAnnotations'](_0x3eca4a);this['listenTo'](_0x1ee0d8,'add',(_0x26b981,_0x5b0b12)=>{this['listenTo'](_0x5b0b12,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5b0b12);});}),this['listenTo'](_0x1ee0d8,'remove',(_0x3c6f15,_0x52c542)=>{_0x52c542['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x52c542['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x42c9b4){if(_0x42c9b4===this['activeAnnotation'])return;const _0x39d433=this['context']['plugins']['get'](z);if(_0x39d433['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x42c9b4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x42c9b4)_0x39d433['getSidebarItemView'](_0x42c9b4)?this['_showBalloon'](_0x42c9b4):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x42c9b4;}['detach'](){if(!this['isAttached'])throw new _0x18900f('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2ffa61=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x1e61bd=>_0x1e61bd['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2ffa61['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2badc3&&this['stopListening'](this['context']['editors']);for(const _0x5bd32e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5bd32e);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'](_0x4c8480){if(!_0x4c8480['plugins']['has']('EditorAnnotations'))return;const _0x462105=_0x4c8480['plugins']['get']('EditorAnnotations'),_0x24e793=this['context']['plugins']['get'](z),_0xbb1d8f=this['annotations'],_0x378a85=this['balloonPanelView'],_0x2cc430=()=>{const _0x8230af=_0x462105['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x8230af),this['setActiveAnnotation'](_0x8230af[0x0]||null);};this['listenTo'](_0x462105,'refresh',_0x2cc430),this['listenTo'](_0x462105,'blur',(_0xc8e997,{isAnnotationTracked:_0x530771})=>{this['activeAnnotation']&&_0x530771(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x462105,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0xbb1d8f,'blur',_0xabb98b=>{_0x462105['hasDomSelection']()&&_0xabb98b['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x3eb1b4,_0x2b9b6a)=>{const _0x46b2df=_0x2b9b6a['target'];_0x378a85['isVisible']&&_0x378a85['element']['contains'](_0x46b2df)||_0x24e793['view']['element']['contains'](_0x46b2df)||this['activeAnnotation']&&_0x462105['hasDomSelection']()&&(_0x2cc430(),_0x3eb1b4['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x462105);}['_destroyEditorAnnotationsIntegration'](_0xb1db37){_0xb1db37&&(this['stopListening'](_0xb1db37),this['_editorAnnotations']['remove'](_0xb1db37));}['_setSelectedAnnotations'](_0x389c5f){for(const _0x1c4fc5 of this['_selectedAnnotations'])_0x389c5f['includes'](_0x1c4fc5)||this['_manuallyClosedAnnotationViews']['delete'](_0x1c4fc5['view']);this['_selectedAnnotations']=_0x389c5f;}['_refreshPositioning'](){const _0x229f68=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x229f68['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x35abdd){if(this['_manuallyClosedAnnotationViews']['has'](_0x35abdd['view']))return;const _0x2973ed=this['balloonPanelView']['content']['first'];_0x2973ed!==_0x35abdd['view']?(_0x2973ed&&this['_detachListeners'](_0x2973ed),this['_attachListeners'](_0x35abdd['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x35abdd['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x48757c=this['balloonPanelView']['content']['first'],_0x2881d2=_0x48757c&&this['annotations']['getByView'](_0x48757c);if(!_0x2881d2||!this['_annotationToNarrowView']['has'](_0x2881d2))return;const _0x3ca0df=this['_annotationToNarrowView']['get'](_0x2881d2)['element'],_0x541082=(function(){const _0x2d994b=_0x29e13a['defaultPositions'];return[_0x2d994b['southArrowNorthEast'],_0x2d994b['northArrowSouthEast'],_0x2d994b['southArrowNorth'],_0x2d994b['northArrowSouth'],_0x2d994b['southArrowNorthWest'],_0x2d994b['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x3ca0df,'positions':_0x541082});}['_hideBalloon'](){const _0x1a172a=this['balloonPanelView'],_0x405383=_0x1a172a['content']['first'];_0x405383&&(this['_detachListeners'](_0x405383),_0x1a172a['unpin'](),_0x1a172a['content']['clear']());}['_attachListeners'](_0x7cab2){this['listenTo'](_0x7cab2,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x7cab2,'Esc',(_0x556c0e,_0x3e0ab5)=>{this['_manuallyClosedAnnotationViews']['add'](_0x7cab2),this['_hideBalloon'](),_0x3e0ab5();});}['_detachListeners'](_0x4d2e27){this['stopListening'](_0x4d2e27);}}class c extends _0x399bf5{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x17d05f,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bae4f){super(_0x5bae4f),_0x5bae4f['editing']['view']['addObserver'](_0x1b0633),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x5bae4f['plugins']['get'](_0x17d05f),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x257c8f=this['editor']['plugins']['get'](M);_0x257c8f['context']===this['editor']&&(_0x257c8f['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x110ba7,_0x1c423e)=>{const _0x3373c6=this['_balloon'];if(this['isAttached']&&_0x3373c6['visibleView']){const _0x4d2aa3=this['annotations']['getByView'](_0x3373c6['visibleView']);_0x4d2aa3&&this['_closeAnnotation'](_0x4d2aa3),_0x1c423e();}}));}['afterInit'](){const _0x34948e=this['editor']['plugins']['get'](M);_0x34948e['context']===this['editor']&&(_0x34948e['hasActive']()||_0x34948e['switchTo']('inline'));}['setActiveAnnotation'](_0x192ec7){_0x192ec7!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x192ec7&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x192ec7)&&this['_addAnnotationToBalloon'](_0x192ec7,!0x0),_0x192ec7['isActive']=!0x0),_0x192ec7||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x192ec7);}['attach'](_0x145811){this['annotations']=_0x145811;const _0x266da3=this['editor']['plugins']['get'](M),_0x29e4ff=this['_balloon'];if(this['isAttached'])throw new _0x18900f('inlineannotations-attach-already-attached',this);if(_0x266da3['context']!==this['editor'])throw new _0x18900f('inlineannotations-not-allowed-with-context',this);const _0x513655=this['editor']['plugins']['get'](P);this['listenTo'](_0x513655,'refresh',()=>{const _0x201037=_0x513655['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x54f081,_0x453634;!this['_forceRefresh']&&(_0x54f081=_0x201037,_0x453634=this['_selectedAnnotations'],_0x54f081['length']===_0x453634['length']&&_0x54f081['every'](_0x3e727c=>_0x453634['includes'](_0x3e727c)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x201037),this['setActiveAnnotation'](_0x201037[0x0]||null));}),this['listenTo'](_0x513655,'blur',(_0x286eea,{isAnnotationTracked:_0x5a7fce})=>{this['activeAnnotation']&&_0x5a7fce(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3c103e,_0x1ba9af,_0x574e20)=>{_0x574e20||this['setActiveAnnotation'](null);}),this['listenTo'](_0x145811,'remove',(_0x3ff78a,_0x3db59c)=>{this['_removeAnnotationFromBalloon'](_0x3db59c),_0x3db59c===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x29e4ff,'change:visibleView',(_0x3219ea,_0x1bf5f9,_0x49a2fb,_0x36fea0)=>{_0x36fea0&&this['stopListening'](_0x36fea0);const _0xb423cc=_0x145811['getByView'](_0x49a2fb);_0x49a2fb&&_0xb423cc&&(this['listenTo'](_0x49a2fb,'change:height',()=>{_0x29e4ff['updatePosition']();}),this['listenTo'](_0x49a2fb,'Esc',()=>{this['_closeAnnotation'](_0xb423cc),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xb423cc&&this['setActiveAnnotation'](_0xb423cc));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x29e4ff['visibleView']&&(_0x145811['getByView'](_0x29e4ff['visibleView'])&&_0x29e4ff['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 _0x18900f('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4800ae of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4800ae);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x368fd6){for(const _0x5580d4 of this['_selectedAnnotations'])_0x368fd6['includes'](_0x5580d4)||this['_manuallyClosed']['delete'](_0x5580d4);for(const _0x4b564f of this['annotations'])_0x368fd6['includes'](_0x4b564f)||this['_removeAnnotationFromBalloon'](_0x4b564f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5ab7f0 of _0x368fd6)this['_addAnnotationToBalloon'](_0x5ab7f0);}this['_selectedAnnotations']=_0x368fd6;}['_addAnnotationToBalloon'](_0xf16133,_0x2a0ce7=!0x1){this['_manuallyClosed']['has'](_0xf16133)||(this['_addedAnnotations']['has'](_0xf16133)||this['_balloon']['hasView'](_0xf16133['view'])||(this['_addedAnnotations']['add'](_0xf16133),this['_balloon']['add']({'stackId':_0xf16133['view']['id'],'view':_0xf16133['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xf16133)}})),_0x2a0ce7&&this['_balloon']['showStack'](_0xf16133['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3d8349){const _0x2cf73e=_0x3d8349['target'],_0x5a0b68=this['editor']['editing']['view'],_0x47624e=_0x5a0b68['document']['selection']['getFirstRange'](),_0x1c22e9=_0x5a0b68['domConverter']['viewRangeToDom'](_0x47624e);if(_0x1c22e9['collapse'](!0x0),_0x2cf73e){if(_0x2cf73e instanceof _0x38f653)return _0x2cf73e;let _0x5b6f57=[];for(const _0x1ded0d of _0x2cf73e)_0x5b6f57['push'](...(_0x46c2fe=_0x1ded0d['getClientRects'](),Array['from'](_0x46c2fe)['map'](DOMRect['fromRect'])));_0x5b6f57=function(_0x357ae3){const _0x5cddea=[];let _0x49d588=_0x357ae3[0x0];for(let _0x5789e8=0x1;_0x5789e8<_0x357ae3['length'];_0x5789e8++)b(_0x49d588,_0x357ae3[_0x5789e8])?_0x49d588['width']+=_0x357ae3[_0x5789e8]['width']:(_0x5cddea['push'](_0x49d588),_0x49d588=_0x357ae3[_0x5789e8]);return _0x5cddea['push'](_0x49d588),_0x5cddea;}(_0x5b6f57);const _0x21bfd9=_0x1c22e9['getBoundingClientRect']();return _0x5b6f57['find'](_0x5288a8=>_0x5288a8['top']<=_0x21bfd9['top']&&_0x5288a8['bottom']>=_0x21bfd9['bottom']&&_0x5288a8['left']<=_0x21bfd9['left']&&_0x5288a8['right']>=_0x21bfd9['right'])||_0x5b6f57[0x0];}var _0x46c2fe;return _0x3d8349['targetRect']||_0x1c22e9;}['_removeAnnotationFromBalloon'](_0x49869f){this['_addedAnnotations']['has'](_0x49869f)&&this['_balloon']['hasView'](_0x49869f['view'])&&(this['_addedAnnotations']['delete'](_0x49869f),this['_balloon']['remove'](_0x49869f['view']));}['_closeAnnotation'](_0x551866){this['_manuallyClosed']['add'](_0x551866),this['_removeAnnotationFromBalloon'](_0x551866);}}function b(_0x4f0508,_0x32bfb1){return _0x4f0508['top']===_0x32bfb1['top']&&_0x4f0508['bottom']===_0x32bfb1['bottom']&&_0x4f0508['right']===_0x32bfb1['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-2025,\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(_0x380cbc,_0x51a1d0){super(_0x380cbc),this['set']('isEmpty',!_0x51a1d0['length']),this['focusTracker']=new _0x44b40c(),this['_annotationViews']=_0x51a1d0,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x51a1d0,'focusTracker':this['focusTracker']}),this['listenTo'](_0x51a1d0,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x51a1d0,'remove',(_0x2bb2cb,_0x533547)=>{_0x533547['isActive']&&this['focus'](),_0x51a1d0['length']||(this['isEmpty']=!0x0);});const _0x3cbd45=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x380cbc,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x51a1d0},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x3cbd45['if']('isEmpty','ck-hidden',_0x22d058=>!_0x22d058)]},'children':[{'text':S(_0x380cbc,'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 _0x4e5a8f of this['_annotationViews'])this['focusTracker']['add'](_0x4e5a8f['element']);this['_annotationViews']['on']('change',(_0x2cc926,{added:_0x29a8b2,removed:_0x531002})=>{for(const _0x8335d9 of _0x29a8b2)this['focusTracker']['add'](_0x8335d9['element']);for(const _0x2811e1 of _0x531002)this['focusTracker']['remove'](_0x2811e1['element']);});}}class f extends _0x2202fd{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x5adb5c){super(_0x5adb5c),this['archivedThreads']=new _0x3dbdfa();}['init'](){const _0x52ca2a=this['context'],_0x1a6aa6=_0x52ca2a['plugins']['get'](o),_0x2b4f35=_0x52ca2a['plugins']['get'](N);this['listenTo'](_0x1a6aa6,'addCommentThread',(_0xc5f087,{threadId:_0x52ee12})=>{const _0x1f2852=_0x1a6aa6['getCommentThread'](_0x52ee12);_0x1f2852['archivedAt']&&this['archivedThreads']['add'](_0x1f2852,this['_calculatePosition'](_0x1f2852['archivedAt'])),this['listenTo'](_0x1f2852,'change:archivedAt',(_0x5ac2dc,_0x552542,_0x55c272)=>{_0x55c272?this['archivedThreads']['has'](_0x1f2852)||this['archivedThreads']['add'](_0x1f2852,this['_calculatePosition'](_0x1f2852['archivedAt'])):this['archivedThreads']['has'](_0x1f2852)&&this['archivedThreads']['remove'](_0x1f2852);});}),this['listenTo'](_0x1a6aa6,'removeCommentThread',(_0x1e97fc,{threadId:_0x1f4aa0})=>{const _0x3424b8=_0x1a6aa6['getCommentThread'](_0x1f4aa0);this['stopListening'](_0x3424b8),this['archivedThreads']['has'](_0x3424b8)&&this['archivedThreads']['remove'](_0x3424b8);},{'priority':'highest'}),this['listenTo'](_0x2b4f35['collection'],'focus',(_0x1b50e6,_0x13c6af)=>{_0x13c6af['isVisible']||(_0x13c6af['isActive']=!0x0,_0x2b4f35['activate'](_0x13c6af));});}['_calculatePosition'](_0x54baf7){const _0x33289c=[...this['archivedThreads']]['findIndex'](_0x5c6222=>_0x5c6222['archivedAt']<_0x54baf7);return _0x33289c>-0x1?_0x33289c:this['archivedThreads']['length'];}}class a extends _0x399bf5{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x5e7835];}constructor(_0x153d51){super(_0x153d51),this['annotationViews']=new _0xc86170(),this['_pendingThreads']=[];}['init'](){const _0x1f8326=this['editor'],_0x395773=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1f8326['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x2060e4,!0x0)),_0x1f8326['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x445214=this['_createCommentsArchiveButton'](_0x234f00);return _0x445214['set']({'role':'menuitemcheckbox'}),_0x445214;});const _0x52157e=_0x1f8326['plugins']['get'](f),_0x306592=_0x1f8326['plugins']['get']('Annotations'),_0x2342ca=_0x1f8326['plugins']['get']('CommentsRepository');_0x52157e['archivedThreads']['forEach'](_0xd32866=>{this['_handleNewThread'](_0xd32866);}),this['listenTo'](_0x52157e['archivedThreads'],'add',(_0x4837db,_0x2eb45e)=>{this['_handleNewThread'](_0x2eb45e);}),this['listenTo'](_0x306592['collection'],'add',(_0x2e2381,_0x2ad146)=>{const _0x3a767a=this['_pendingThreads']['find'](_0x27f9ae=>{const _0x1e6015=_0x2342ca['_threadToController']['get'](_0x27f9ae);return _0x1e6015&&_0x2ad146['innerView']===_0x1e6015['view'];});if(_0x3a767a){const _0x6293f6=this['_calculatePosition'](_0x3a767a['archivedAt']);this['annotationViews']['add'](_0x2ad146['view'],_0x6293f6),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3a767a),0x1);}}),this['listenTo'](_0x52157e['archivedThreads'],'remove',(_0x464ce7,_0x124dbd)=>{const _0x44a3c3=_0x1f8326['config']['get']('collaboration.channelId');if(!_0x44a3c3||_0x124dbd['channelId']===_0x44a3c3){const _0x5ae6f5=_0x2342ca['_threadToController']['get'](_0x124dbd),_0x23810f=_0x306592['getByInnerView'](_0x5ae6f5['view']);this['annotationViews']['remove'](_0x23810f['view']),this['stopListening'](_0x23810f['focusableElements']);}}),this['listenTo'](_0x306592['collection'],'add',(_0x23a2f6,_0x2fd269)=>{this['listenTo'](_0x2fd269,'escape',_0x395773);}),this['listenTo'](_0x306592['collection'],'remove',(_0x3c949e,_0x1b480e)=>{this['stopListening'](_0x1b480e,'escape',_0x395773);});}['_handleNewThread'](_0x59f0fe){const _0x52d598=this['editor']['plugins']['get']('CommentsRepository'),_0x1a4312=this['editor']['plugins']['get']('Annotations'),_0x483624=this['editor']['config']['get']('collaboration.channelId');if(!_0x483624||_0x59f0fe['channelId']===_0x483624){const _0x11ff1d=_0x52d598['_threadToController']['get'](_0x59f0fe);if(!_0x11ff1d)return void this['_pendingThreads']['push'](_0x59f0fe);const _0x555be3=this['_calculatePosition'](_0x59f0fe['archivedAt']),_0x4be126=_0x1a4312['getByInnerView'](_0x11ff1d['view']);_0x4be126['isVisible']&&_0x1a4312['_visibleAnnotations']['remove'](_0x4be126),this['annotationViews']['add'](_0x4be126['view'],_0x555be3);}}['_calculatePosition'](_0x2f7e7c){const _0x3330c0=this['editor']['config']['get']('collaboration.channelId'),_0x119dbc=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x2d2a5a=>_0x2d2a5a['channelId']===_0x3330c0)['findIndex'](_0x5aefd=>_0x5aefd['archivedAt']<_0x2f7e7c);return _0x119dbc<0x0||_0x119dbc>this['annotationViews']['length']?this['annotationViews']['length']:_0x119dbc-0x1;}['_toggleDialog'](){const _0x2cef75=this['editor'],_0x1454ea=_0x2cef75['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x2cef75['locale'],this['annotationViews'])),'commentsArchive'===_0x1454ea['id']?_0x1454ea['hide']():_0x1454ea['show']({'id':'commentsArchive','title':S(_0x2cef75['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x31eced['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x48cc03,_0x4547f6=!0x1){const _0x494595=this['editor']['locale'],_0x44a439=this['editor']['plugins']['get']('Dialog'),_0x531760=new _0x48cc03(_0x494595);return _0x531760['bind']('isEnabled')['to'](this,'isEnabled'),_0x531760['bind']('isOn')['to'](_0x44a439,'id',_0xf194b8=>'commentsArchive'===_0xf194b8),_0x531760['set']({'label':S(_0x494595,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x4547f6&&(_0x531760['tooltip']=!0x0),this['listenTo'](_0x531760,'execute',()=>this['_toggleDialog']()),_0x531760;}['_hideDialogOnAnnotationEscape']=_0x5bf0fd=>{const _0x2571e2=_0x5bf0fd['source'];if(!this['annotationViews']['has'](_0x2571e2['view']))return;const _0x2e8474=this['editor']['plugins']['get']('Dialog');_0x2e8474['isOpen']&&'commentsArchive'===_0x2e8474['id']&&(_0x2e8474['hide'](),_0x5bf0fd['stop']());};}class p extends _0x399bf5{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,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
|