@ckeditor/ckeditor5-comments 44.2.0-alpha.15 → 44.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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(_0x326274={}){function _0x3e7d47(_0x53a79e){return _0x53a79e['map'](_0x263a50=>String['fromCharCode'](_0x263a50))['join']('');}(_0x326274=Object['assign']({},_0x326274))['plugins']||(_0x326274['plugins']=Ut['defaultPlugins']),super(_0x326274),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[_0x3e7d47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e7d47([0x76,0x69,0x65,0x77])][_0x3e7d47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e7d47([0x61,0x75,0x74,0x6f]),this[_0x3e7d47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3e7d47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e7d47([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3e7d47([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3e7d47([0x6f,0x6b])});}['create'](){const _0x493f2d=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x493f2d))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x3dcb09=>{const _0x588919=this['model']['document']['getRoot'](),_0x3d3bfc=_0x588919&&_0x588919['getChild'](_0x588919['childCount']-0x1);_0x3dcb09['setSelection'](_0x3d3bfc,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2e7e37=this['editing']['view'],_0x1f0a00=_0x2e7e37['document']['getRoot'](),_0x2c8c5a=_0x1f0a00['getChild'](0x0);_0x1f0a00['childCount']>0x1||!_0x2c8c5a||'p'!=_0x2c8c5a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x2e7e37,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x2c8c5a['placeholder']=this['placeholder']),St({'view':_0x2e7e37,'element':_0x2c8c5a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x2c8c5a);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5c1680,_0x54700f={}){super(_0x5c1680),this['editor']=null,this['_editorConfig']=_0x54700f,this['set']('value',_0x54700f['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x5c1680,'Reply...')),this['set']('submitLabel',S(_0x5c1680,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x49c33c(),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',(_0x3a9955,_0xd7758f)=>{this['cancelButtonView']['fire']('execute'),_0xd7758f();}),this['keystrokes']['set']('Ctrl+Enter',(_0x2f03e0,_0x18f706)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x18f706());}),this['on']('submit',(_0x2d0ee4,_0x3ce77a)=>{_0x3ce77a['length']>0xfde8?(alert(S(_0x5c1680,'TOO_LONG_COMMENT_ALERT',[_0x3ce77a['length'],0xfde8])),_0x2d0ee4['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 _0x5b4fd6=this['editor'];this['element']['insertBefore'](_0x5b4fd6['ui']['element'],this['element']['firstChild']),_0x5b4fd6['model']['document']['on']('change',()=>this['value']=_0x5b4fd6['getData']()),_0x5b4fd6['bind']('placeholder')['to'](this),this['focusables']['add'](_0x5b4fd6['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xa81623){-0x1===_0xa81623?(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:_0x51c7af}=this,_0x4f4ed1=new _0xa58164(_0x51c7af);return _0x4f4ed1['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4f4ed1['withText']=!0x0,_0x4f4ed1['bind']('label')['to'](this,'submitLabel'),_0x4f4ed1['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4f4ed1['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4fefe2,_0x592655)=>!_0x592655&&!!_0x4fefe2['trim']()),_0x4f4ed1;}['_createCancelButton'](){const {locale:_0x2bf377}=this,_0x31ab93=new _0xa58164(_0x2bf377);return _0x31ab93['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x31ab93['label']=S(_0x2bf377,'Cancel'),_0x31ab93['withText']=!0x0,_0x31ab93['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x31ab93;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x2dc9ce=>{this['focusTracker']['add'](_0x2dc9ce['element']);}),this['focusables']['on']('change',(_0x210c02,_0x103b94)=>{for(const _0x18e3c4 of Array['from'](_0x103b94['added'])['reverse']())this['focusTracker']['add'](_0x18e3c4['element']);});}}class ie extends kt{constructor(_0x1224f0,_0x49b201,_0x4cdff){super(_0x1224f0),this['commentInputView']=new os(_0x1224f0,_0x4cdff),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2cd5aa,_0x287cb7)=>_0x2cd5aa||!!_0x287cb7),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 _0x4a3867(_0x1224f0,_0x49b201),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'](_0x38a83c){this['commentInputView']['focus'](_0x38a83c);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x356a2a,_0x5ac931)=>{const {submitButtonView:_0x559170,cancelButtonView:_0x2012fa,editor:_0x377f9e}=this['commentInputView'];[_0x559170['element'],_0x2012fa['element'],_0x377f9e?_0x377f9e['editing']['view']['getDomRoot']():null]['filter'](_0x2f4b3c=>_0x2f4b3c)['some'](_0x32a4bb=>_0x32a4bb['contains'](_0x5ac931['target']))||(this['focus'](),_0x5ac931['preventDefault']());});}}class cs extends kt{constructor(_0x672d56){super(_0x672d56);const _0x3772d9=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x3772d9['to']('count',_0x1d597f=>S(_0x672d56,'NUMBER_OF_COMMENTS',_0x1d597f))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x44231f,_0x12a76b,_0x2052aa){super(_0x44231f);const _0x102276=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x12a76b['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x12a76b,this['_config']=_0x2052aa,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x49c33c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x288e7d=>this['commentViews']['map'](_0x1d28e9=>_0x1d28e9['element'])['includes'](_0x288e7d['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x44231f),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x3d277b=>_0x3d277b-this['_config']['maxCommentsWhenCollapsed']);for(const _0x548c1d of _0x12a76b['comments'])this['_handleNewCommentModel'](_0x548c1d);this['_handleInfoComment'](),this['listenTo'](_0x12a76b['comments'],'add',(_0x528231,_0x1f0da5)=>{const _0xa302b2=this['_calculatePosition'](_0x1f0da5);this['length']++,this['_handleNewCommentModel'](_0x1f0da5,_0xa302b2),this['refreshVisibleViews']();}),this['listenTo'](_0x12a76b['comments'],'remove',(_0x23eec6,_0x1ea9cf)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1ea9cf),this['refreshVisibleViews']();}),this['listenTo'](_0x12a76b,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x12a76b,'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',_0x102276['if']('length','ck-hidden',_0x104e4e=>!_0x104e4e)],'aria-label':S(_0x44231f,'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'](_0x4d13a3){-0x1===_0x4d13a3?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4d185f of this['commentViews'])_0x4d185f['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0xfdfc17,_0x50aba7){const _0x5805c0=new this['_config']['CommentView'](this['locale'],_0xfdfc17,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x5805c0['viewUid']=_0xfdfc17['id'],_0x5805c0['delegate']('removeComment')['to'](this),_0x5805c0['delegate']('updateComment')['to'](this),_0x5805c0['delegate']('resolveCommentThread')['to'](this),_0x5805c0['delegate']('editorReady')['to'](this),_0x5805c0['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x5805c0,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x5805c0,_0x50aba7);}['_calculatePosition'](_0x36cd43){const _0x473ede=this['_model']['_findOptimalIndex'](_0x36cd43);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x36cd43['authoredAt']?_0x473ede-0x1:_0x473ede:_0x473ede-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x11d18e={'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'],_0x11d18e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x11d18e));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3db789){const _0x4347d6=this['commentViews']['remove'](_0x3db789['id']);this['stopListening'](_0x4347d6),_0x4347d6['isEditMode']&&this['_updateHasDirtyComment'](),_0x4347d6['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2fcef7=>_0x2fcef7['isEditMode']);}['_rearrangeCollapse'](){const _0x59c1bd=function(_0x2c4d74){const _0x575a1e=new _0x3dfde1();for(const _0x1971cd of _0x2c4d74)_0x575a1e['add'](_0x1971cd);return _0x575a1e;}(this['commentViews']),_0x326db2=this['_collapsedCommentsView']['count'];for(let _0x277088=0x1;_0x277088<=_0x326db2;_0x277088++)_0x59c1bd['remove'](0x1);for(const _0x2d9e07 of _0x59c1bd)_0x2d9e07['collapse']();_0x326db2>0x0&&_0x59c1bd['add'](this['_collapsedCommentsView'],0x1),as(_0x1b7ec9(Array['from'](this['visibleViews']),Array['from'](_0x59c1bd)),this['visibleViews'],_0x59c1bd);}['_rearrangeExpand'](){as(_0x1b7ec9(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x17a2c1 of this['visibleViews'])_0x17a2c1['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x3d8a68=>{this['focusTracker']['add'](_0x3d8a68['element']),this['keystrokes']['listenTo'](_0x3d8a68['element']);}),this['commentViews']['on']('change',(_0x48a770,_0x5c02aa)=>{for(const _0x56b4cc of _0x5c02aa['removed'])this['focusTracker']['remove'](_0x56b4cc['element']),this['keystrokes']['stopListening'](_0x56b4cc['element']);for(const _0x352067 of Array['from'](_0x5c02aa['added'])['reverse']())this['focusTracker']['add'](_0x352067['element']),this['keystrokes']['listenTo'](_0x352067['element']);});}}function as(_0x26ea18,_0x46df8d,_0x39ed93){let _0x43eaac=0x0;for(const _0x18a8af of _0x26ea18)switch(_0x18a8af){case'insert':_0x46df8d['add'](_0x39ed93['get'](_0x43eaac),_0x43eaac),_0x43eaac++;break;case'delete':_0x46df8d['remove'](_0x43eaac);break;case'equal':_0x43eaac++;}}class ls extends kt{constructor(_0xf5e937){super(_0xf5e937);const _0x1c5301=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1c5301['to']('contextValue',_0x341526=>S(_0xf5e937,'THREAD_CONTEXT_LABEL',_0x341526)),'tabindex':-0x1},'children':[{'text':_0x1c5301['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x237e78,_0x211d6e){super(_0x237e78);const _0x17e356=this['bindTemplate'];this['_model']=_0x211d6e,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x49c33c(),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',_0x233014=>!!_0x233014),this['bind']('contextValue')['to'](this['_model'],'context',_0x330b09=>_0x330b09&&_0x330b09['value']?this['_trimContextValue'](_0x330b09['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',_0x17e356['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 _0x123e21=new _0xa58164(this['locale']);return _0x123e21['label']=S(this['locale'],'Reopen'),_0x123e21['tooltip']=S(this['locale'],'Reopen'),_0x123e21['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>',_0x123e21['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4212f1=>!_0x4212f1),_0x123e21['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4071df,_0x54cc51)=>_0x4071df&&_0x54cc51),_0x123e21['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x123e21;}['_trimContextValue'](_0x431d6e){if(_0x431d6e['length']<0x96)return _0x431d6e;const _0x200404=_0x431d6e['lastIndexOf']('\x20',0x93);return _0x431d6e['substring'](0x0,_0x200404>-0x1?_0x200404:0x93)+'...';}['_attachContextActions'](){const _0x3cab1d=this['element']['querySelector']('.ck-context'),_0x54ca52=_0x3cab1d['querySelector']('.ck-context__value');this['listenTo'](_0x3cab1d,'mouseenter',()=>{_0x54ca52['offsetWidth']<_0x54ca52['scrollWidth']&&_0x3cab1d['classList']['add']('overlay');}),this['listenTo'](_0x3cab1d,'mouseleave',()=>{_0x3cab1d['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x2e2645 of this['focusables'])this['focusTracker']['add'](_0x2e2645['element']),this['keystrokes']['listenTo'](_0x2e2645['element']);}['_createContextView'](){const _0x41852a=new ls(this['locale']);return _0x41852a['bind']('contextValue')['to'](this),_0x41852a;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2138c3,_0x30478a,_0x42fd3f,_0xbb8806){super(_0x2138c3),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x30478a,this['_localUser']=_0x42fd3f,this['_config']=_0xbb8806,this['commentThreadHeaderView']=new Zt(_0x2138c3,_0x30478a),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x2138c3,S(_0x2138c3,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2138c3,_0x30478a,Object['assign']({'CommentView':this['_config']['CommentView']},_0xbb8806)),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',(_0x2f3474,_0x2665b5)=>_0x2f3474||!!_0x2665b5),this['bind']('isUnlinked')['to'](_0x30478a,'unlinkedAt',_0x32c9b4=>!!_0x32c9b4),this['bind']('ariaLabel')['to'](this,'length',_0x83fe16=>{const _0x330df4=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x83fe16,_0x330df4]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x49c33c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4f02ee=>_0x4f02ee['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x233fe6(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4fc190=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x38216d=_0x4fc190['commentInputView'];return _0x4fc190['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x38216d,'value',(_0x461195,_0x3b114c,_0x51a022,_0x49d421,_0x204e4d)=>!!_0x204e4d||!!_0x49d421&&_0x51a022&&!_0x3b114c||_0x461195&&_0x51a022&&!_0x3b114c),_0x38216d['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3ae86c,_0x172080,_0x48ad06)=>{let _0x3c6964;return _0x3c6964=_0x48ad06&&_0x172080?'Reply\x20to\x20reopen\x20discussion...':_0x3ae86c?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x3c6964);}),_0x38216d['bind']('submitLabel')['to'](this,'length',_0x13322d=>S(this['locale'],_0x13322d?'Reply':'Comment')),_0x38216d['on']('submit',(_0x2b889a,_0x5352dc)=>{this['fire']('addComment',_0x5352dc),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x38216d['on']('cancel',()=>{this['focus']();}),_0x38216d['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x38216d['on']('cancel',_0x4745d8=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4745d8['stop']());}),this['on']('change:isActive',(_0x3c1af6,_0x2b3b2f,_0x2e0659)=>{_0x2e0659||this['length']||_0x38216d['value']||this['fire']('removeCommentThread');}),_0x4fc190;}}class vt extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(
|
|
28
|
-
ti(rs){['actionBar'];['userView'];constructor(
|
|
29
|
-
_0x237dcb(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x161260,target:_0x3cf34d,type:_0x544b1a,isVisible:_0x4bb829=!0x0}){super(),this['view']=_0x161260,this['view']['element']||this['view']['render'](),this['_type']=_0x544b1a,this['_target']=_0x3cf34d,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3dfde1([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x349f03,_0x5ddc78)=>{this['view']['focusTracker']['add'](_0x5ddc78);}),this['focusableElements']['on']('remove',(_0x28ae0c,_0x393340)=>{this['view']['focusTracker']['remove'](_0x393340);}),this['set']('isVisible',_0x4bb829);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x264e92=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x264e92),_0x264e92;}get['targetRect'](){const _0x25cc7c=this['target'];if(null===_0x25cc7c)return null;if(_0x25cc7c instanceof _0x161667)return _0x25cc7c;const _0x155b40=_0x25cc7c['filter'](_0x4ba1c0=>function(_0x50a9bd){const _0x2e9ff7=_0x50a9bd['offsetParent'];if(_0x2e9ff7)return!0x0;const _0x1fd2be=_0x50a9bd['getClientRects']()['item'](0x0);return!!_0x1fd2be;}(_0x4ba1c0));return 0x0===_0x155b40['length']?null:new _0x161667(_0x155b40[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x25ac62){this['view']['isActive']=_0x25ac62,this['view']['mainView']['isActive']=_0x25ac62;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x465d6d){if(!(null===_0x465d6d||_0x465d6d instanceof _0x161667||Array['isArray'](_0x465d6d)&&_0x465d6d['every'](_0x576bb8=>ne(_0x576bb8))))throw new _0x46877c('annotation-invalid-target',null,{'target':_0x465d6d});}['_getNormalizedTarget'](){const _0xa74102='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0xa74102)?[_0xa74102]:_0xa74102;}}function ne(_0x2a6240){return null!==_0x2a6240&&'object'==typeof _0x2a6240&&'nodeType'in _0x2a6240&&0x1===_0x2a6240['nodeType'];}class x extends _0x3dfde1{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x27daf5=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x49c33c(),this['_focusTracker']['on']('change:isFocused',(_0x33835f,_0x538277,_0x22f165)=>{_0x22f165||this['fire']('blur');});for(const _0x30e737 of _0x27daf5)this['add'](_0x30e737);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2d5a2a){if(this['has'](_0x2d5a2a))throw new _0x46877c('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2d5a2a['innerView'],_0x2d5a2a),this['_viewToAnnotation']['set'](_0x2d5a2a['view'],_0x2d5a2a);for(const _0x3ab689 of _0x2d5a2a['focusableElements'])this['_focusTracker']['add'](_0x3ab689);this['listenTo'](_0x2d5a2a['focusableElements'],'add',(_0x4a3f2e,_0x3e9caa)=>{this['_focusTracker']['add'](_0x3e9caa);}),this['listenTo'](_0x2d5a2a['focusableElements'],'remove',(_0x5970d2,_0x1fbec5)=>{this['_focusTracker']['remove'](_0x1fbec5);}),this['listenTo'](_0x2d5a2a['view']['focusTracker'],'change:isFocused',(_0xfedb99,_0x3eb299,_0xce78df)=>{_0xce78df&&this['fire']('focus',_0x2d5a2a);}),_0x2d5a2a['updateTargetRect']();const _0x542eed=this['_getOrderInContent'](_0x2d5a2a['view']['targetRect']);return super['add'](_0x2d5a2a,_0x542eed);}['remove'](_0x4a3582){if(!this['has'](_0x4a3582))throw new _0x46877c('annotationcollection-not-existing-item',null);this['stopListening'](_0x4a3582['view']['focusTracker']),this['stopListening'](_0x4a3582['focusableElements']);for(const _0x117235 of _0x4a3582['focusableElements'])this['_focusTracker']['remove'](_0x117235);return this['_viewToAnnotation']['delete'](_0x4a3582['view']),this['_innerViewToAnnotation']['delete'](_0x4a3582['innerView']),super['remove'](_0x4a3582);}['getByInnerView'](_0x50869f){return this['_innerViewToAnnotation']['get'](_0x50869f);}['getByView'](_0x16e486){return this['_viewToAnnotation']['get'](_0x16e486);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x413894 of this)_0x413894['updateTargetRect']();this['_sort']();}['_sort'](){const _0x1bfc9c=Array['from'](this)['sort']((_0x43a518,_0x2027d)=>v(_0x43a518['view']['targetRect'],_0x2027d['view']['targetRect']));for(let _0x3f6af6=_0x1bfc9c['length']-0x1;_0x3f6af6>0x0;_0x3f6af6--){const _0x50d28f=_0x1bfc9c[_0x3f6af6];_0x3f6af6!==this['getIndex'](_0x50d28f)&&(this['remove'](_0x50d28f),this['add'](_0x50d28f));}}['_getOrderInContent'](_0x5c2c41){let _0x50d9ff=0x0;if(!_0x5c2c41)return this['length'];for(const _0x1e21f2 of this){const _0x32ebab=_0x1e21f2['view']['targetRect'];if(_0x32ebab){if(v(_0x5c2c41,_0x32ebab)<0x0)return _0x50d9ff;_0x50d9ff++;}}return _0x50d9ff;}}function v(_0x10ddfc,_0x5aca0e){if(null===_0x10ddfc&&null===_0x5aca0e)return 0x0;if(null===_0x10ddfc)return-0x1;if(null===_0x5aca0e)return 0x1;const _0x4aecdc=_0x10ddfc['top']-_0x5aca0e['top'];return 0x0==_0x4aecdc?_0x10ddfc['left']-_0x5aca0e['left']:_0x4aecdc;}class N extends _0x33e9d1{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x559a0d){if(super(_0x559a0d),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x559a0d instanceof _0x18d916){const _0x238a6e=_0x559a0d['locale'];_0x559a0d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x238a6e,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x238a6e,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x238a6e,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x238a6e,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x238a6e,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x238a6e,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x238a6e,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3f5e78){this['collection']['add'](_0x3f5e78);}['remove'](_0x4d7693){this['collection']['remove'](_0x4d7693),_0x4d7693['destroy']();}['refreshVisibility'](){for(const _0x2f624d of this['collection'])_0x2f624d['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x53e713){return this['collection']['getByInnerView'](_0x53e713);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2c5cd5 of this['collection'])_0x2c5cd5['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x25f504){this['fire']('_activateAnnotation',_0x25f504);}['createAnnotation'](_0xbfea9b){return new d(_0xbfea9b);}['createAnnotationView'](_0xbbf263,_0x25fb45){return new T(_0xbbf263,_0x25fb45);}['_addActiveAnnotation'](_0x1c399d){const _0x4dad50=new Set(this['activeAnnotations']);_0x4dad50['add'](_0x1c399d),this['activeAnnotations']=_0x4dad50;}['_removeActiveAnnotation'](_0x1d403b){const _0x45245d=new Set(this['activeAnnotations']);_0x45245d['delete'](_0x1d403b),this['activeAnnotations']=_0x45245d;}['_bindAnnotationsToVisibleAnnotations'](){const _0x95625e=this['collection'],_0x182565=this['_visibleAnnotations'];function _0x5354b8(_0x1ae99e){const _0x16a86c=_0x1ae99e['source'];_0x16a86c['isVisible']&&!_0x182565['has'](_0x16a86c)?_0x182565['add'](_0x16a86c):!_0x16a86c['isVisible']&&_0x182565['has'](_0x16a86c)&&_0x182565['remove'](_0x16a86c),_0x16a86c['view']['focusTracker']['remove'](_0x16a86c['view']['element']),_0x16a86c['view']['focusTracker']['add'](_0x16a86c['view']['element']);}this['listenTo'](_0x95625e,'add',(_0x1a9aa7,_0x41b181)=>{_0x41b181['isVisible']&&_0x182565['add'](_0x41b181),this['listenTo'](_0x41b181,'change:isVisible',_0x5354b8);}),this['listenTo'](_0x95625e,'remove',(_0x3734ca,_0x588706)=>{_0x182565['has'](_0x588706)&&_0x182565['remove'](_0x588706),this['stopListening'](_0x588706,'change:isVisible',_0x5354b8);});}['_setupEnterAnnotationKeystroke'](){const _0x373cc4=_0x46c4e0=>{_0x46c4e0['on']('ready',()=>{_0x46c4e0['keystrokes']['set'](_0x3166fd,(_0x2da3df,_0x3f61cc)=>{const _0x5d990c=_0xbced1(this['activeAnnotations']['values']());_0x5d990c&&(_0x5d990c['view']['focus'](),_0x3f61cc());});});};this['context']instanceof _0x18d916?_0x373cc4(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x54545a,_0x4252d0)=>{_0x373cc4(_0x4252d0);});}['_setupEscapeAnnotationHandling'](){const _0x4fe1de=_0x507064=>{const _0x4718b0=_0x507064['source'],_0x337d80=[];let _0x5807e9;if(Array['isArray'](_0x4718b0['target'])){_0x5807e9=_0x4718b0['target'][0x0],this['context']instanceof _0x18d916?_0x337d80['push'](this['context']):this['context']['editors']&&_0x337d80['push'](...this['context']['editors']);for(const _0x414eb8 of _0x337d80)for(const _0xd96578 of _0x414eb8['editing']['view']['domRoots']['values']())if(_0xd96578['contains'](_0x5807e9))return void _0x414eb8['editing']['view']['focus']();_0x5807e9['focus']();}};this['listenTo'](this['collection'],'add',(_0x4e8237,_0x1e9eb8)=>{this['listenTo'](_0x1e9eb8,'escape',_0x4fe1de,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0xb316a6,_0xfe5f69)=>{this['stopListening'](_0xfe5f69,'escape',_0x4fe1de);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x33e9d1{['_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(_0x46e388){super(_0x46e388),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2deb48=this['context']['config'];_0x2deb48['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2deb48['define']('comments.maxThreadTotalWeight',0x1f4),_0x2deb48['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2deb48['define']('comments.CommentThreadView',vt),_0x2deb48['define']('comments.CommentView',gt),_0x2deb48['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x4061b3=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x627aa,_0x1a78e5)=>this['_addCommentThread'](_0x1a78e5)),this['on']('submitCommentThread',(_0x2d5164,_0x11ba2c)=>this['_submitCommentThread'](_0x11ba2c)),this['on']('resolveCommentThread',(_0x3683b6,_0x24acda)=>this['_resolveCommentThread'](_0x24acda)),this['on']('resolveCommentThread',(_0xcc513b,_0x37acb3)=>this['_updateActiveAnnotation'](_0x37acb3),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x179022,_0x109cd7)=>this['_reopenCommentThread'](_0x109cd7)),this['on']('reopenCommentThread',(_0x18de46,_0x3cc790)=>this['_updateActiveAnnotation'](_0x3cc790),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x40bfd4,_0x467586)=>this['_removeCommentThread'](_0x467586)),this['on']('updateCommentThread',(_0x10fdfe,_0x1cd5f8)=>this['_updateCommentThread'](_0x1cd5f8)),this['on']('updateCommentThread',(_0x3e349a,_0x4271e1)=>this['_updateActiveAnnotation'](_0x4271e1),{'priority':'lowest'}),this['on']('addComment',(_0x192224,_0x160888)=>this['_addComment'](_0x160888)),this['on']('updateComment',(_0x10ba69,_0x18c4fd)=>this['_updateComment'](_0x18c4fd)),this['on']('removeComment',(_0x829856,_0x125820)=>this['_removeComment'](_0x125820)),this['on']('addComment',(_0x54938b,{threadId:_0x436239,isFromAdapter:_0x1ce507})=>{if(_0x1ce507)return;const _0x59d355=this['getCommentThread'](_0x436239),_0x1f3e01=_0x59d355&&this['_threadToController']['get'](_0x59d355);_0x1f3e01&&_0x1f3e01['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x4061b3,'change:activeAnnotations',(_0x5b944c,_0x2303fc,_0x2d498f)=>{const _0x4f1045=Array['from'](_0x2d498f)['map'](_0x56f025=>this['_viewToController']['get'](_0x56f025['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x4f1045?_0x4f1045['model']:null;});}set['adapter'](_0x448fba){if(this['_adapter'])throw new _0x46877c('commentsrepository-adapter-already-set');this['_adapter']=_0x448fba;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5dec5d=Tt,threadId:_0x29556d=_0x80afb8(),comments:_0x427bd2=[],unlinkedAt:_0x5f21da=null,resolvedAt:_0x54f812=null,resolvedBy:_0x22eec2=null,target:_0x56bdcd=null,context:_0xa1cab1=null,attributes:_0x2b83c7={},isResolvable:_0x2f28f7=!0x0,isSubmitted:_0x52c98d=!0x1,isFromAdapter:_0x638904=!0x1}={}){return this['fire'](bt('addCommentThread',_0x5dec5d),{'channelId':_0x5dec5d,'threadId':_0x29556d,'comments':_0x427bd2,'unlinkedAt':_0x5f21da,'resolvedAt':_0x54f812,'resolvedBy':_0x22eec2,'target':_0x56bdcd,'context':_0xa1cab1,'attributes':_0x2b83c7,'isFromAdapter':_0x638904,'isResolvable':_0x2f28f7,'isSubmitted':_0x52c98d}),this['getCommentThread'](_0x29556d);}['openNewCommentThread']({channelId:_0xdb6f9a=Tt,threadId:_0x3e0a7b=_0x80afb8(),target:_0x7b3fe7,context:_0x15f644=null,isResolvable:_0x2069dc=!0x0}){if(this['_readOnlyChannels']['has'](_0xdb6f9a)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x7b3fe7)throw new _0x46877c('commentsrepository-missing-target');const _0x408694=this['addCommentThread']({'channelId':_0xdb6f9a,'threadId':_0x3e0a7b,'target':_0x7b3fe7,'context':_0x15f644,'isResolvable':_0x2069dc});if(!_0x408694)return null;const _0x1840a0=this['_threadToController']['get'](_0x408694),_0x427586=_0x1840a0['view']['commentThreadInputView']['commentInputView'],_0x396c58=this['context']['plugins']['get'](N),_0x5e1f1a=_0x396c58['getByInnerView'](_0x1840a0['view']);return _0x396c58['activate'](_0x5e1f1a),_0x427586['once']('editorReady',()=>_0x427586['focus']()),_0x408694;}['hasCommentThread'](_0x231d7f){if('string'!=typeof _0x231d7f)throw new _0x46877c('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x231d7f);}['updateCommentThread']({channelId:_0x5f7c2=Tt,threadId:_0x268c00,context:_0x2e79ff,unlinkedAt:_0x22129c,attributes:_0x24c04b,isFromAdapter:_0x1499fe=!0x1}){return this['fire'](bt('updateCommentThread',_0x5f7c2),{'channelId':_0x5f7c2,'threadId':_0x268c00,'context':_0x2e79ff,'unlinkedAt':_0x22129c,'attributes':_0x24c04b,'isFromAdapter':_0x1499fe}),this['getCommentThread'](_0x268c00);}['getCommentThread'](_0x4a3773){if('string'!=typeof _0x4a3773)throw new _0x46877c('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4a3773);}['fetchCommentThread']({channelId:_0x5a3f6e,threadId:_0x3c669e}={}){const _0x491e33=this['getCommentThread'](_0x3c669e);if(_0x491e33)return Promise['resolve'](_0x491e33);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x46877c('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5a3f6e,'threadId':_0x3c669e})['then'](_0x51e425=>this['hasCommentThread'](_0x3c669e)?this['getCommentThread'](_0x3c669e):_0x51e425?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5a3f6e},_0x51e425)):void 0x0)['catch'](_0x28da04=>{throw console['error'](_0x28da04),new _0x46877c('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1527e1,skipNotAttached:_0x38eac6=!0x1,skipEmpty:_0x19a507=!0x1,toJSON:_0x3ed2fe=!0x1}={}){const _0x2516aa=[];for(const _0x40d16f of this['_threads']['values']())_0x1527e1&&_0x40d16f['channelId']!==_0x1527e1||_0x38eac6&&!_0x40d16f['isAttached']||_0x19a507&&0x0===_0x40d16f['length']||_0x2516aa['push'](_0x40d16f);return _0x3ed2fe?_0x2516aa['map'](_0x22c328=>_0x22c328['toJSON']()):_0x2516aa;}['setActiveCommentThread'](_0x49637f){const _0x10688a=this['context']['plugins']['get'](N);if(!_0x49637f)return void(this['activeCommentThread']&&_0x10688a['deactivateAll']());const _0x19fd07=this['getCommentThread'](_0x49637f);if(!_0x19fd07)throw new _0x46877c('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x49637f});if(!this['_threadToController']['has'](_0x19fd07))throw new _0x46877c('commentsrepository-active-not-attached',null,{'threadId':_0x49637f});const _0x1ace15=_0x10688a['getByInnerView'](this['_threadToController']['get'](_0x19fd07)['view']);_0x10688a['activate'](_0x1ace15);}['switchReadOnly'](_0x14ecaf,_0x1fa6ba){_0x14ecaf?this['_readOnlyChannels']['add'](_0x1fa6ba):this['_readOnlyChannels']['delete'](_0x1fa6ba),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1b398b){return this['_readOnlyChannels']['has'](_0x1b398b)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x38ecd0,_0x50dc07){return new Ct(_0x38ecd0,_0x50dc07);}['setPermissions'](_0x15740e,_0x482645=Tt){this['_permissions']['set'](_0x482645,_0x15740e),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x62bcd9=Tt){return this['_permissions']['has'](_0x62bcd9)?this['_permissions']['get'](_0x62bcd9):_t;}['_addCommentThread']({channelId:_0x3927b3,threadId:_0x362b09,comments:_0x2d1cd0,unlinkedAt:_0x9d2bfe,resolvedAt:_0x5e79f6,resolvedBy:_0x11e707,target:_0x2437a3,context:_0x40d6ab,attributes:_0x36f5cb,isFromAdapter:_0x47522e,isResolvable:_0x189fad,isSubmitted:_0x17e190}){if('string'!=typeof _0x362b09)throw new _0x46877c('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x362b09});if(this['hasCommentThread'](_0x362b09))throw new _0x46877c('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x362b09});const _0x142604=new oe(this,{'channelId':_0x3927b3,'id':_0x362b09,'context':_0x40d6ab,'attributes':_0x36f5cb,'unlinkedAt':_0x9d2bfe,'resolvedAt':_0x5e79f6,'resolvedBy':_0x11e707?this['context']['plugins']['get'](it)['getUser'](_0x11e707):null,'isResolvable':_0x189fad,'isSubmitted':_0x17e190||_0x47522e});this['_threads']['set'](_0x362b09,_0x142604);for(const _0x3d49e8 of _0x2d1cd0)_0x142604['_add'](this['_createNewComment']({'threadId':_0x362b09,..._0x3d49e8}));return _0x2437a3&&_0x142604['attachTo'](_0x2437a3),_0x47522e||!_0x142604['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3927b3,'threadId':_0x362b09});}['_submitCommentThread']({channelId:_0x22a931,threadId:_0xc2abe9}){if(!this['hasCommentThread'](_0xc2abe9))throw new _0x46877c('commentsrepository-missing-comment-thread',this);const _0x30ee3e=this['getCommentThread'](_0xc2abe9);if(_0x30ee3e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x230ca8,comments:_0x4a7b85,resolvedAt:_0x571768,resolvedBy:_0x6abca2,context:_0x500e7a,attributes:_0x1e4296}=_0x30ee3e,_0x287aa2=this['context']['plugins']['get']('PendingActions'),_0x1324db=_0x287aa2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x22a931,'threadId':_0x230ca8,'comments':_0x4a7b85['map'](_0x5d6172=>_0x5d6172['toJSON']()),'resolvedAt':_0x571768,'resolvedBy':_0x6abca2?_0x6abca2['id']:_0x6abca2,'context':_0x500e7a,'attributes':_0x1e4296})['then'](({comments:_0x1ac1dd})=>{_0x287aa2['remove'](_0x1324db);for(const _0x1f9e8d of _0x1ac1dd)this['_updateComment']({'channelId':_0x22a931,'threadId':_0xc2abe9,'commentId':_0x1f9e8d['commentId'],'createdAt':_0x1f9e8d['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1dd459=>{throw console['error'](_0x1dd459),new _0x46877c('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x12e491,target:_0x3a462d}){const _0x168a2f=this['getCommentThread'](_0x12e491);if(!_0x168a2f)throw new _0x46877c('commentsrepository-attach-missing-comment-thread',this);const _0x58b16d=this['context']['plugins']['get']('PendingActions'),_0x43bf96=this['context']['plugins']['get'](N),_0x3c3df5=this['_createCommentThreadView'](_0x168a2f),_0x12acf7=new Ct(_0x168a2f,_0x3c3df5);let _0x13a583=null;_0x3c3df5['on']('change:isDirty',(_0x3d15bb,_0xb79261,_0x434266)=>{_0x434266?_0x13a583=_0x58b16d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x13a583&&(_0x58b16d['remove'](_0x13a583),_0x13a583=null);}),this['_threadToController']['set'](_0x168a2f,_0x12acf7),this['_viewToController']['set'](_0x3c3df5,_0x12acf7);const _0x26c74d=new T(this['context']['locale'],_0x3c3df5);_0x26c74d['bind']('length')['to'](_0x3c3df5),_0x26c74d['bind']('isDirty')['to'](_0x3c3df5,'isDirty',_0x3c3df5,'length',(_0x5d5fa6,_0x269756)=>_0x5d5fa6||!_0x269756),_0x26c74d['bind']('isActive')['to'](_0x3c3df5),_0x26c74d['type']='comment';const _0x564f23=new d({'view':_0x26c74d,'target':_0x3a462d,'type':'comment','isVisible':!_0x168a2f['archivedAt']});return _0x3c3df5['on']('escape',()=>{_0x564f23['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3c3df5,_0x564f23),_0x43bf96['add'](_0x564f23),_0x564f23;}['_bindAnnotationToEditors'](_0x1a8a6a,_0x354204){this['listenTo'](_0x1a8a6a,'editorReady',(_0x5dc4db,_0x589a2e)=>{const _0x26ef48=_0x589a2e['ui']['view']['body']['bodyCollectionContainer'];_0x354204['focusableElements']['add'](_0x26ef48),this['context']instanceof _0x18d916&&this['context']['ui']['focusTracker']['add'](_0x26ef48);},{'priority':'highest'}),this['listenTo'](_0x1a8a6a,'editorDestroyed',(_0xe8428e,_0x3118bd)=>{const _0x2e73e2=_0x3118bd['ui']['view']['body']['bodyCollectionContainer'];_0x354204['focusableElements']['has'](_0x2e73e2)&&_0x354204['focusableElements']['remove'](_0x2e73e2),this['context']instanceof _0x18d916&&this['context']['ui']['focusTracker']['remove'](_0x2e73e2);});}['_unbindEditors'](_0x9f1cac){this['stopListening'](_0x9f1cac,'editorReady'),this['stopListening'](_0x9f1cac,'editorDestroyed');}['_createCommentThreadView'](_0x26dd53){const _0x3e67c1=this['context']['plugins']['get'](it),{config:_0x105450,locale:_0x31d63c}=this['context'],_0x129067=lt(_0x105450['get']('locale'));return new(0x0,(_0x105450['get']('comments'))['CommentThreadView'])(_0x31d63c,_0x26dd53,_0x3e67c1['me'],{'editorConfig':{..._0x105450['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x105450['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x105450['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x105450['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x105450['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x129067,'CommentView':_0x105450['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x26101e,channelId:_0x3c00ee,resolvedAt:_0xe6958d,resolvedBy:_0x3371f5,isFromAdapter:_0x3d10af}){if(!this['hasCommentThread'](_0x26101e))throw new _0x46877c('commentsrepository-missing-comment-thread',null,{'threadId':_0x26101e});const _0x106da5=this['getCommentThread'](_0x26101e);if(_0x106da5['isResolved'])throw new _0x46877c('commentsrepository-resolved-comment-thread',null,{'threadId':_0x26101e});const _0x17a3a5=this['context']['plugins']['get'](it);if(_0x106da5['resolvedBy']=_0x17a3a5['getUser'](_0x3371f5),_0x106da5['resolvedAt']=_0xe6958d,_0x3d10af||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x18d336=this['context']['plugins']['get']('PendingActions'),_0x2bfd12=_0x18d336['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x3c00ee,'threadId':_0x26101e})['then'](({resolvedAt:_0x151a11,resolvedBy:_0x5d5a26})=>{_0x18d336['remove'](_0x2bfd12),_0x106da5['resolvedBy']['id']!==_0x5d5a26&&(_0x106da5['resolvedBy']=_0x17a3a5['getUser'](_0x5d5a26)),_0x106da5['resolvedAt']=_0x151a11;})['catch'](_0x5560c9=>{throw console['error'](_0x5560c9),new _0x46877c('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x428422,channelId:_0x1fc99b,isFromAdapter:_0x2c96fd}){if(!this['hasCommentThread'](_0x428422))throw new _0x46877c('commentsrepository-missing-comment-thread',null,{'threadId':_0x428422});const _0x41eab3=this['getCommentThread'](_0x428422);if(!_0x41eab3['isResolved'])throw new _0x46877c('commentsrepository-reopen-comment-thread',null,{'threadId':_0x428422});if(_0x41eab3['resolvedBy']=null,_0x41eab3['resolvedAt']=null,_0x2c96fd||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x4d297e=this['context']['plugins']['get']('PendingActions'),_0x10f5a5=_0x4d297e['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x1fc99b,'threadId':_0x428422})['then'](()=>_0x4d297e['remove'](_0x10f5a5))['catch'](_0x38717b=>{throw console['error'](_0x38717b),new _0x46877c('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x56054a,isFromAdapter:_0x57a671}){const _0x2bb1e2=this['getCommentThread'](_0x56054a);if(!_0x2bb1e2)throw new _0x46877c('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x56054a),this['_threads']['delete'](_0x56054a),!_0x2bb1e2['isSubmitted']||_0x57a671||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x20e62f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4aff9f}=_0x2bb1e2,_0x1df056=_0x20e62f['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x4aff9f,'threadId':_0x56054a})['then'](()=>_0x20e62f['remove'](_0x1df056))['catch'](_0x5cb3a5=>{throw console['error'](_0x5cb3a5),new _0x46877c('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x5e9eb4,unlinkedAt:_0x392056,context:_0x2e11c2,attributes:_0x2312e0,isFromAdapter:_0x4eddc2}){if('string'!=typeof _0x5e9eb4)throw new _0x46877c('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5e9eb4});if(!this['hasCommentThread'](_0x5e9eb4))throw new _0x46877c('commentsrepository-missing-comment-thread',null,{'threadId':_0x5e9eb4});const _0x29e7a7=this['getCommentThread'](_0x5e9eb4);let _0x16fc9f=!0x1;if(void 0x0!==_0x2e11c2&&_0x29e7a7['context']!==_0x2e11c2&&(_0x29e7a7['context']=_0x2e11c2,_0x16fc9f=!0x0),void 0x0!==_0x392056&&_0x29e7a7['unlinkedAt']!==_0x392056&&(_0x29e7a7['unlinkedAt']=_0x392056,_0x16fc9f=!0x0),_0x2312e0&&!wt(_0x2312e0,_0x29e7a7['attributes'])&&(_0x29e7a7['attributes']=_0x2312e0,_0x16fc9f=!0x0),!_0x16fc9f)return Promise['resolve']();if(!_0x29e7a7['isSubmitted']||_0x4eddc2||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x5e0bc6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3f21dd}=_0x29e7a7,_0x9037df=_0x5e0bc6['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x3f21dd,'threadId':_0x5e9eb4,'context':_0x2e11c2,'unlinkedAt':_0x392056,'attributes':_0x2312e0})['then'](()=>_0x5e0bc6['remove'](_0x9037df))['catch'](_0x4480fa=>{throw console['error'](_0x4480fa),new _0x46877c('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xf53f63){const _0x1b771a=this['context']['plugins']['get'](N),_0x15e3d0=this['getCommentThread'](_0xf53f63);if(_0x15e3d0['_isAttached']=!0x1,this['_threadToController']['has'](_0x15e3d0)){const _0x4dce10=this['_threadToController']['get'](_0x15e3d0),_0x4ca211=_0x4dce10['view'],_0x1d5aca=_0x1b771a['getByInnerView'](_0x4ca211);this['_threadToController']['delete'](_0x15e3d0),this['_viewToController']['delete'](_0x4ca211),_0x1d5aca&&_0x1b771a['remove'](_0x1d5aca),_0x4dce10['destroy'](),_0x4ca211['destroy']()['then'](()=>{this['_unbindEditors'](_0x4ca211);});}}['_updateActiveAnnotation']({threadId:_0x5c8ad7,resolvedAt:_0x4f7406}){const _0x4e372d=!!_0x4f7406,_0x2d418e=this['context']['plugins']['get'](N),_0x6206a0=this['getCommentThread'](_0x5c8ad7);if(this['_threadToController']['has'](_0x6206a0)){const _0x3b07bc=this['_threadToController']['get'](_0x6206a0)['view'],_0x25bbb8=_0x2d418e['getByInnerView'](_0x3b07bc);_0x25bbb8&&(_0x4e372d&&_0x2d418e['_removeActiveAnnotation'](_0x25bbb8),_0x25bbb8['refreshVisibility']());}}['_getExternalAuthor'](_0x116ccb){const _0x48d03f=this['context']['plugins']['get'](it),_0x152c38=pt('external:'+_0x116ccb),_0x33b683=_0x48d03f['getUser'](_0x152c38);return _0x33b683||_0x48d03f['addUser']({'id':_0x152c38,'name':_0x116ccb});}['_createNewComment']({threadId:_0x156fcf,commentId:_0x12e3cd=_0x80afb8(),content:_0x13dd2c,authorId:_0x1c962a,createdAt:_0x51ee50,attributes:_0x55ab84}){if('string'!=typeof _0x12e3cd)throw new _0x46877c('commentsrepository-invalid-commentid');if('string'!=typeof _0x1c962a)throw new _0x46877c('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x13dd2c||!_0x13dd2c['trim']())throw new _0x46877c('commentsrepository-invalid-comment-content');const _0x25f20f=this['context']['plugins']['get'](it)['getUser'](_0x1c962a);if(!_0x25f20f)throw new _0x46877c('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1c962a});let _0x377eaf=null,_0x3ca800=_0x51ee50;return _0x55ab84&&_0x55ab84['@external']&&(_0x377eaf=this['_getExternalAuthor'](_0x55ab84['@external']['authorName']),_0x3ca800=new Date(_0x55ab84['@external']['createdAt'])),new re(this,{'threadId':_0x156fcf,'id':_0x12e3cd,'author':_0x377eaf||_0x25f20f,'creator':_0x25f20f,'content':_0x13dd2c,'createdAt':_0x51ee50,'authoredAt':_0x3ca800,'attributes':_0x55ab84});}['_addComment'](_0x2fb8b8){let {threadId:_0x36ddfd,content:_0x5453bc,attributes:_0x1cca45,isFromAdapter:_0xb216ac}=_0x2fb8b8;const _0x59f40e=this['getCommentThread'](_0x2fb8b8['threadId']);if(!_0x59f40e)throw new _0x46877c('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x124dd2=this['_createNewComment'](_0x2fb8b8),{id:_0x4e23b3}=_0x124dd2;if(_0x59f40e['_add'](_0x124dd2),_0xb216ac||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x59f40e['isSubmitted'])return Promise['resolve']();const _0x56595d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x358abc}=_0x59f40e,_0x3ab45b=_0x56595d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1cca45||(_0x1cca45={}),this['adapter']['addComment']({'channelId':_0x358abc,'threadId':_0x36ddfd,'commentId':_0x4e23b3,'content':_0x5453bc,'attributes':_0x1cca45})['then'](_0xd88040=>{_0x56595d['remove'](_0x3ab45b),_0xd88040&&this['_updateComment']({'channelId':_0x358abc,'threadId':_0x36ddfd,'commentId':_0x4e23b3,'createdAt':_0xd88040['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x10bb5d=>{throw console['error'](_0x10bb5d),new _0x46877c('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x17c08,commentId:_0x4078e9,content:_0x2307ea,createdAt:_0x4df5c6,attributes:_0x2ea401,isFromAdapter:_0x5dc8d4}){if(void 0x0!==_0x2307ea&&('string'!=typeof _0x2307ea||!_0x2307ea['trim']()['length']))throw new _0x46877c('commentsrepository-update-comment-invalid-content');const _0x254c28=this['getCommentThread'](_0x17c08),_0x5e4846=_0x254c28['getComment'](_0x4078e9);if(!_0x5e4846)throw new _0x46877c('commentsrepository-update-missing-comment',this);let _0x2c9da5=!0x1;if(_0x2307ea&&_0x2307ea!==_0x5e4846['content']&&(_0x5e4846['isEditable']||_0x5dc8d4)&&(_0x5e4846['content']=_0x2307ea,_0x2c9da5=!0x0),_0x4df5c6&&_0x4df5c6!==_0x5e4846['createdAt']&&(_0x5e4846['createdAt']=_0x4df5c6,_0x5e4846['attributes']&&_0x5e4846['attributes']['@external']||(_0x5e4846['authoredAt']=_0x4df5c6),_0x2c9da5=!0x0),_0x2ea401&&!wt(_0x2ea401,_0x5e4846['attributes'])&&(_0x5e4846['attributes']=_0x2ea401,_0x2c9da5=!0x0),!_0x2c9da5)return Promise['resolve']();if(_0x254c28['fire']('commentUpdated'),_0x5dc8d4||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x5cc266=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5b459f}=this['getCommentThread'](_0x5e4846['threadId']),_0x581fe7=_0x5cc266['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x5b459f,'threadId':_0x17c08,'commentId':_0x4078e9,'content':_0x2307ea,'attributes':_0x2ea401})['then'](()=>_0x5cc266['remove'](_0x581fe7))['catch'](_0x6b468a=>{throw console['error'](_0x6b468a),new _0x46877c('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x342247,commentId:_0x708214,isFromAdapter:_0x59fe54}){const _0x520011=this['getCommentThread'](_0x342247),_0x34d94e=_0x520011['getComment'](_0x708214);if(!_0x34d94e)throw new _0x46877c('commentsrepository-remove-missing-comment',this);if(_0x520011['_remove'](_0x34d94e),_0x59fe54||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2af6a1=this['context']['plugins']['get']('PendingActions'),{channelId:_0x11ca29}=_0x520011,_0x57399c=_0x2af6a1['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x11ca29,'threadId':_0x342247,'commentId':_0x708214})['then'](()=>_0x2af6a1['remove'](_0x57399c))['catch'](_0x3982f3=>{throw console['error'](_0x3982f3),new _0x46877c('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x237dcb(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3ef4ed,_0x3acdb7){super();const _0xbdb985=_0x3ef4ed['context']['plugins']['get'](it)['me'],_0xa5199f=_0x3ef4ed['getCommentThread'](_0x3acdb7['threadId']),_0x2552c0=0x0===_0xa5199f['comments']['length'],_0x440850=_0xbdb985===_0x3acdb7['author'];this['id']=_0x3acdb7['id'],this['threadId']=_0x3acdb7['threadId'],this['author']=_0x3acdb7['author'],this['creator']=_0x3acdb7['creator'],this['isExternal']=Boolean(_0x3acdb7['attributes']&&_0x3acdb7['attributes']['@external']),this['set']('content',_0x3acdb7['content']),this['createdAt']=_0x3acdb7['createdAt']||new Date(),this['set']('authoredAt',_0x3acdb7['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0xa5199f,'resolvedAt'),this['set']('attributes',_0x3acdb7['attributes']||{}),this['bind']('isEditable')['to'](_0x3ef4ed,'_permissions',()=>{const _0x2c4dc0=_0x3ef4ed['getPermissions'](_0xa5199f['channelId'])['write'],_0x595bd0=_0x3ef4ed['getPermissions'](_0xa5199f['channelId'])['modifyAll'];return _0x440850&&_0x2c4dc0||!_0x440850&&_0x595bd0;}),this['bind']('isRemovable')['to'](_0xa5199f,'isRemovable',_0x3ef4ed,'_permissions',_0x4ec98f=>{const _0x121b18=_0x3ef4ed['getPermissions'](_0xa5199f['channelId'])['write'],_0x475152=_0x3ef4ed['getPermissions'](_0xa5199f['channelId'])['modifyAll'];return _0x440850&&_0x121b18||_0x4ec98f&&_0x2552c0||!_0x440850&&_0x475152&&!_0x2552c0;}),this['bind']('isReadOnly')['to'](_0xa5199f,'isReadOnly'),this['_repository']=_0x3ef4ed;}get['weight'](){return Math['max'](function(_0x4e000c){const _0x322025=document['createElement']('div');return _0x322025['innerHTML']=_0x4e000c,_0x322025['textContent']['length'];}(this['content']),0xc8);}['update'](_0x4bcf6b){const {threadId:_0x27def1,id:_0x416b7c}=this;if(!this['_repository']['hasCommentThread'](_0x27def1))throw new _0x46877c('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4fcc0b}=this['_repository']['getCommentThread'](_0x27def1);this['_repository']['fire'](bt('updateComment',_0x4fcc0b,_0x27def1),{'channelId':_0x4fcc0b,'threadId':_0x27def1,'commentId':_0x416b7c,..._0x4bcf6b});}['setAttribute'](_0x429537,_0x588c7c){const _0x2a0cad=It(this['attributes']);At(_0x2a0cad,_0x429537,_0x588c7c),this['update']({'attributes':_0x2a0cad});}['removeAttribute'](_0x57cd6f){const _0x321c20=It(this['attributes']);yt(_0x321c20,_0x57cd6f),this['update']({'attributes':_0x321c20});}['remove'](_0x8f4832={}){if(!_0x8f4832['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x4106fb,id:_0x13dd6c}=this;if(!this['_repository']['hasCommentThread'](_0x4106fb))throw new _0x46877c('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0xe87bb7}=this['_repository']['getCommentThread'](_0x4106fb);this['_repository']['fire'](bt('removeComment',_0xe87bb7,_0x4106fb),{'channelId':_0xe87bb7,'threadId':_0x4106fb,'commentId':_0x13dd6c,..._0x8f4832});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x434e22,..._0x400681){for(const _0x903b92 of _0x400681)void 0x0!==_0x903b92&&(_0x434e22+=':'+String(_0x903b92));return _0x434e22;}class J extends _0x13deff{['refresh'](){const _0x4f8cb7=this['editor']['model']['document']['selection'];for(const _0x1729d3 of _0x4f8cb7['getRanges']())if(this['_hasContent'](_0x1729d3))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0xc6f9b4=_0x80afb8()}={}){const _0x15baef=this['editor']['model'],_0xcbe3c0=[];for(const _0x40dbff of _0x15baef['document']['selection']['getRanges']())this['_hasContent'](_0x40dbff)&&_0xcbe3c0['push'](this['_trimToContent'](_0x40dbff));_0x15baef['change'](_0x58e229=>{for(const _0x3224bc of _0xcbe3c0){const _0x2cb1a5=_0x80afb8()['substr'](0x1,0x5),_0x5cc351='comment:'+_0xc6f9b4+':'+_0x2cb1a5;_0x58e229['addMarker'](_0x5cc351,{'range':_0x3224bc,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x709ecb){for(const _0x47dea2 of _0x709ecb['getItems']())if(this['_itemIsContent'](_0x47dea2))return!0x0;return!0x1;}['_itemIsContent'](_0x5a3301){return _0x5a3301['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5a3301)&&!_0x5a3301['is']('element','tableCell');}['_trimToContent'](_0x2c6f46){const _0x213f6a=_0x37dfa8=>!this['_itemIsContent'](_0x37dfa8['item']),_0x543b99=_0x2c6f46['start']['getLastMatchingPosition'](_0x213f6a),_0x4d2a20=_0x2c6f46['end']['getLastMatchingPosition'](_0x213f6a,{'direction':'backward'});return this['editor']['model']['createRange'](_0x543b99,_0x4d2a20);}}class P extends _0x173918{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5014af){super(_0x5014af),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x20b09f=this['editor'],_0x11a95f=_0x20b09f['model']['document']['selection'],_0x5f09d0=_0x413e06(()=>this['refreshSelectedViews'](),0xa);_0x11a95f['on']('change:range',(_0x537ae3,_0x2c7346)=>{_0x2c7346['directChange']&&(_0x5f09d0['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x20b09f['editing']['view']['document'],'change:isFocused',(_0x38681f,_0x337960,_0x29bc37)=>{_0x29bc37&&_0x5f09d0();}),this['listenTo'](_0x20b09f['ui']['focusTracker'],'change:isFocused',(_0x2db75c,_0x59e929,_0x37fd0a)=>{_0x37fd0a||_0x20b09f['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x22ee04=>this['_editorAnnotationsData']['has'](_0x22ee04['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x292201){if(this['_editorAnnotations']['has'](_0x292201['view']))return;this['_editorAnnotations']['add'](_0x292201['view']),this['editor']['ui']['focusTracker']['add'](_0x292201['view']['element']);const _0x5929d7=this['editor']['plugins']['get'](N);this['listenTo'](_0x5929d7['collection'],'remove',(_0x5d7661,_0x316532)=>{this['editor']['ui']['focusTracker']['remove'](_0x316532['view']['element']),this['_editorAnnotations']['delete'](_0x316532['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x507ce6){if('function'!=typeof _0x507ce6)throw new _0x46877c('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x507ce6);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1a53f5,annotations:_0x36ad7d}){const _0x4bdd12=[],_0x2a1233=this['editor']['model']['document']['selection'],_0x1aab45=Array['from'](_0x2a1233['getRanges']());for(const [_0x4d0718,_0x5bdbe7]of this['_editorAnnotationsData']){const _0xc83f26=_0x3c41e8(_0x5bdbe7),_0x547e9f=_0x36ad7d['getByInnerView'](_0x4d0718);_0xc83f26&&_0x547e9f&&_0x4bdd12['push']({'annotation':_0x547e9f,'range':_0xc83f26});}function _0x3c41e8(_0xa2a005){for(const _0x3c390d of _0xa2a005)for(const _0x45fcab of _0x1aab45)if(_0x3c390d['containsRange'](_0x45fcab,!_0x2a1233['isCollapsed']))return _0x3c390d;return null;}return _0x4bdd12['sort']((_0x4541c9,_0x2176cc)=>{const _0x21ef63=_0x4541c9['range'],_0x534561=_0x2176cc['range'];if(!_0x21ef63['isEqual'](_0x534561)){if(_0x21ef63['containsRange'](_0x534561,!0x0))return 0x1;if(_0x534561['containsRange'](_0x21ef63,!0x0))return-0x1;}return _0x4541c9['annotation']==_0x1a53f5?-0x1:_0x2176cc['annotation']==_0x1a53f5?0x1:0x0;})['map'](_0x9c7ecc=>_0x9c7ecc['annotation']);}get['_editorAnnotationsData'](){const _0x1a1987=new Map();for(const _0x3e5910 of Array['from'](this['_dataCollectors']))for(const [_0xcdf883,_0x45c8f3]of _0x3e5910())_0x1a1987['set'](_0xcdf883,_0x45c8f3);return _0x1a1987;}}class st extends _0x173918{['afterInit'](){const _0x5480f7=this['editor'];if(!_0x5480f7['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5480f7['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x173918{constructor(_0x451f5d){super(_0x451f5d),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x22bb18=this['editor'],_0x1b53ea=_0x22bb18['commands']['get']('importWord'),_0x2b67d3=_0x22bb18['plugins']['get'](it);_0x1b53ea&&(_0x1b53ea['on']('execute',(_0x21e2dc,[,_0x1c470e])=>{_0x1c470e['collaboration_features']={'comments':!0x0,'user_id':_0x2b67d3['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1b53ea,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x10b510,_0xba528d){const {comment_threads:_0x4da1f8}=_0xba528d;_0x4da1f8&&_0x4da1f8['forEach'](({thread_id:_0x413c49,comments:_0x56d68a,is_resolved:_0x16de30})=>{const _0x2e32ba=new Date(),_0x4ec3d2=_0x56d68a['map'](({author:_0x46168c,content:_0x435125,created_at:_0x34c200})=>({'content':_0x435125,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x2e32ba,'attributes':{'@external':{'authorName':_0x46168c,'createdAt':_0x34c200?new Date(_0x34c200):new Date(),'source':'importWord'}}})),_0x3e1099=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3e1099,'threadId':_0x413c49,'comments':_0x4ec3d2,'resolvedAt':_0x16de30?_0x2e32ba:null});});}}class at extends _0x173918{constructor(_0x1cd485){super(_0x1cd485),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2d7bf5=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2d7bf5,'contentInsertion',(_0x368f41,_0xd4f284)=>this['_removeMarkersWithoutThreads'](_0xd4f284['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x57bc2c){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x57bc2c;const _0x4f7053=this['editor']['plugins']['get']('CommentsRepository');for(const _0x338e8d of _0x57bc2c['keys']()){const [_0x37284b,_0xe7cf02]=_0x338e8d['split'](':');'comment'!=_0x37284b||_0x4f7053['hasCommentThread'](_0xe7cf02)||_0x57bc2c['delete'](_0x338e8d);}return _0x57bc2c;}['_registerMarkerInClipboardPipeline'](){const _0x4db63d=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x456cb0=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x456cb0&&_0x4db63d['_registerMarkerToCopy']('comment',_0x456cb0);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x53ef5d){switch(_0x53ef5d){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 _0x173918{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x14b868,_0x987230)=>{if(!_0x987230['options']['showCommentHighlights'])return null;if(_0x987230['options']['ignoreResolvedComments']){const {id:_0x58c013}=er(_0x14b868['markerName']),_0xfc7f91=this['editor']['plugins']['get'](o)['getCommentThread'](_0x58c013);if(_0xfc7f91&&_0xfc7f91['isResolved']&&_0x14b868['item'])return _0x987230['consumable']['consume'](_0x14b868['item'],'addMarker:'+_0x14b868['markerName']),_0x987230['consumable']['consume'](_0x14b868['item'],'removeMarker:'+_0x14b868['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4c6572=>{_0x4c6572['on']('addMarker:comment',(_0x136b2d,_0x395e15,_0x3a6784)=>{if(!_0x3a6784['options']['showCommentHighlights'])return;const _0xa42f24=_0x395e15['item'];if(!_0xa42f24)return;const _0x269504=_0x3a6784['mapper']['toViewElement'](_0xa42f24);this['editor']['model']['schema']['isObject'](_0xa42f24)&&_0x269504&&!_0x269504['getCustomProperty']('widget')&&_0x269504['is']('containerElement')&&_0x9a4160(_0x269504,_0x3a6784['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x120379,{writer:_0x366d13,options:_0x5498d8})=>{if(!_0x5498d8['showCommentHighlights'])return null;const _0x23bf50=_0x366d13['createContainerElement']('div'),_0x467509=_0x366d13['createEmptyElement']('hr');return _0x366d13['addClass']('ck-horizontal-line',_0x23bf50),_0x366d13['insert'](_0x366d13['createPositionAt'](_0x23bf50,0x0),_0x467509),_0x23bf50;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x3412cf,{writer:_0x29e18c,options:_0x54208b})=>{if(!_0x54208b['showCommentHighlights'])return null;const _0x3a95ce=_0x29e18c['createContainerElement']('span'),_0x520acb=_0x29e18c['createEmptyElement']('img');return _0x29e18c['addClass']('image-inline',_0x3a95ce),_0x29e18c['insert'](_0x29e18c['createPositionAt'](_0x3a95ce,0x0),_0x520acb),_0x3a95ce;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x16f306,{writer:_0x4bd44b,options:_0x113974})=>{if(_0x113974['showCommentHighlights'])return _0x4bd44b['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x211a5a,_0x3c0795,_0x3975ec)=>{_0x3975ec['options']['showCommentHighlights']&&_0x211a5a['stop']();},{'priority':'high'});}}class r extends _0x173918{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(_0x505c7f){super(_0x505c7f),this['set']('isThreadsLoadingPaused',!0x0),_0x505c7f['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x1d0615,_0x3b01e1,_0xa25608,_0x232151)=>{const _0x247ab9=_0x505c7f['plugins']['get'](o),_0x2c8b51=_0xa25608?er(_0xa25608)['id']:null;_0x505c7f['model']['change'](()=>{if(_0x2c8b51){const _0x1d4b60=this['getAllMarkersForId'](_0x2c8b51);for(const _0x40b8d2 of _0x1d4b60)_0x505c7f['editing']['reconvertMarker'](_0x40b8d2);}if(_0x232151){const {id:_0x4c2cc3}=er(_0x232151),_0x5603bc=_0x247ab9['getCommentThread'](_0x4c2cc3);if(_0x5603bc&&!_0x5603bc['isAttached'])return;const _0x14e8ce=this['getAllMarkersForId'](_0x4c2cc3);for(const _0x2bfb4 of _0x14e8ce)_0x505c7f['editing']['reconvertMarker'](_0x2bfb4);}}),_0x2c8b51&&this['scrollToThreadMarker'](_0x2c8b51);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x520bfe=this['editor'],_0x3a75f5=_0x520bfe['plugins']['get'](o),_0x3ce36e=_0x520bfe['config']['get']('collaboration.channelId'),_0x38aebb=_0x3a75f5['getCommentThreads']()['filter'](_0x1c1fb7=>_0x1c1fb7['channelId']!==_0x3ce36e);_0x520bfe['commands']['add']('addCommentThread',new J(_0x520bfe)),this['listenTo'](_0x520bfe,'change:isReadOnly',(_0x5b47a8,_0x37414d,_0x4a3cd1)=>{_0x3a75f5['switchReadOnly'](_0x4a3cd1,_0x520bfe['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x3a75f5,ft('addCommentThread',_0x3ce36e),(_0x56ade3,{threadId:_0x334958})=>{const _0xb135c0=this['editor']['plugins']['get'](o)['getCommentThread'](_0x334958);_0xb135c0&&_0xb135c0['unlinkedAt']&&this['_attachArchivedThread'](_0x334958);}),this['listenTo'](_0x3a75f5,ft('removeCommentThread',_0x3ce36e),(_0x1b50ff,{threadId:_0x167094})=>{_0x520bfe['model']['enqueueChange']({'isUndoable':!0x1},_0x34e7e5=>{const _0x22eebd=this['getAllMarkersForId'](_0x167094);for(const _0x335df1 of _0x22eebd)_0x34e7e5['removeMarker'](_0x335df1);});}),this['listenTo'](_0x3a75f5,ft('resolveCommentThread',_0x3ce36e),(_0x390e7f,{threadId:_0xd75361})=>{(this['_reconvertMarkers'](_0xd75361),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xd75361)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x3a75f5,ft('reopenCommentThread',_0x3ce36e),(_0x120a88,{threadId:_0x145d25})=>{this['_reconvertMarkers'](_0x145d25);},{'priority':'low'}),this['listenTo'](_0x3a75f5,ft('addComment',_0x3ce36e),(_0x2c003e,{threadId:_0x45be90,isFromAdapter:_0x5c2479})=>{const _0x37a250=this['getAllMarkersForId'](_0x45be90);if(_0x5c2479||0x0==_0x37a250['length']||!_0x3a75f5['hasCommentThread'](_0x45be90))return;0x1===_0x3a75f5['getCommentThread'](_0x45be90)['length']&&_0x520bfe['model']['enqueueChange']({'isUndoable':!0x1},_0x565a86=>{for(const _0x392273 of _0x37a250)_0x565a86['updateMarker'](_0x392273,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x38aebb);}['afterInit'](){!async function(_0x4edb2f){const _0x35958a=_0x3b4599([0x36,0x74,0x67,0x72,0x42,0x64,0x48,0x51,0x71,0x77,0x32,0x33,0x65,0x6c,0x68,0x38,0x78,0x75,0x39,0x4b,0x30,0x35,0x6a,0x55,0x53,0x4c,0x69,0x59,0x54,0x45,0x6b,0x44,0x43,0x7a,0x47,0x4a,0x6d,0x49,0x6e,0x6f,0x4f,0x70,0x4e,0x57,0x56,0x79,0x73,0x46,0x63,0x61,0x34,0x62,0x37,0x66,0x4d,0x58,0x5a,0x41,0x76,0x31,0x52,0x50]),_0x7c0cf0=0x145199b7,_0x3f0d13=0x1456c687^_0x7c0cf0,_0x220ff9=window[_0x3b4599([0x44,0x61,0x74,0x65])][_0x3b4599([0x6e,0x6f,0x77])](),_0x440dbc=_0x4edb2f[_0x3b4599([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ecab9=new window[(_0x3b4599([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7e3899=>{_0x440dbc[_0x3b4599([0x6f,0x6e,0x63,0x65])](_0x3b4599([0x72,0x65,0x61,0x64,0x79]),_0x7e3899);}),_0x307b12={[_0x3b4599([0x6b,0x74,0x79])]:_0x3b4599([0x45,0x43]),[_0x3b4599([0x75,0x73,0x65])]:_0x3b4599([0x73,0x69,0x67]),[_0x3b4599([0x63,0x72,0x76])]:_0x3b4599([0x50,0x2d,0x32,0x35,0x36]),[_0x3b4599([0x78])]:_0x3b4599([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]),[_0x3b4599([0x79])]:_0x3b4599([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]),[_0x3b4599([0x61,0x6c,0x67])]:_0x3b4599([0x45,0x53,0x32,0x35,0x36])},_0x5d99c0=_0x440dbc[_0x3b4599([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b4599([0x67,0x65,0x74])](_0x3b4599([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43c3c2(){let _0x35b737,_0x5c7a6f=null,_0x1ebb5a=null;try{if(_0x5d99c0==_0x3b4599([0x47,0x50,0x4c]))return _0x3b4599([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35b737=_0x55f5d7(),!_0x35b737)return _0x3b4599([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35b737[_0x3b4599([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ebb5a=_0x22ff91(_0x35b737[_0x3b4599([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35b737[_0x3b4599([0x6a,0x74,0x69])])),await _0x5957fd()?_0x3d76f9()?_0x9825cc()?_0x3b4599([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40bfdb()?(_0x35b737[_0x3b4599([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b4599([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c7a6f=_0x3ddbb8(_0x3b4599([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35b737[_0x3b4599([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b4599([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c7a6f=_0x3ddbb8(_0x3b4599([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52fe3d()):_0x3b4599([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b4599([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b4599([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x479648){return _0x3b4599([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x9825cc(){const _0x38c718=[_0x3b4599([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b4599([0x74,0x72,0x69,0x61,0x6c])][_0x3b4599([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35b737[_0x3b4599([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x220ff9/0x3e8:0xe10*_0x3f0d13;return _0x35b737[_0x3b4599([0x65,0x78,0x70])]<_0x38c718;}function _0x3d76f9(){const _0x3b5d31=_0x35b737[_0x3b4599([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3b5d31)return!0x1;if(_0x3b5d31[_0x3b4599([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b4599([0x2a])))return!0x0;if(_0x3b5d31[_0x3b4599([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b4599([0x43,0x4d,0x54])))return!0x0;if(_0x3b5d31[_0x3b4599([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b4599([0x52,0x43,0x4d,0x54]))){if(_0x3a46e4())return!0x0;if(_0xa5aef3()||_0x50bba7())return!0x0;}return!0x1;}function _0x40bfdb(){const _0x1aa47c=_0x35b737[_0x3b4599([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1aa47c||0x0==_0x1aa47c[_0x3b4599([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b09e4}=new URL(window[_0x3b4599([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1aa47c[_0x3b4599([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b09e4))return!0x0;const _0x4ba688=_0x4b09e4[_0x3b4599([0x73,0x70,0x6c,0x69,0x74])](_0x3b4599([0x2e]));return _0x1aa47c[_0x3b4599([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xccd683=>_0xccd683[_0x3b4599([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b4599([0x2a])))[_0x3b4599([0x6d,0x61,0x70])](_0x166f01=>_0x166f01[_0x3b4599([0x73,0x70,0x6c,0x69,0x74])](_0x3b4599([0x2e])))[_0x3b4599([0x73,0x6f,0x6d,0x65])](_0x5121da=>_0x4ba688[_0x3b4599([0x65,0x76,0x65,0x72,0x79])]((_0x35d058,_0x51b0e0)=>_0x5121da[_0x51b0e0]===_0x35d058||_0x5121da[_0x51b0e0]===_0x3b4599([0x2a])));}function _0x52fe3d(){return _0x5c7a6f&&_0x1ebb5a?new window[(_0x3b4599([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x466e64,_0x4b6469)=>{_0x5c7a6f[_0x3b4599([0x74,0x68,0x65,0x6e])](_0x466e64,_0x4b6469),_0x1ebb5a[_0x3b4599([0x74,0x68,0x65,0x6e])](_0x598103=>{_0x598103!=_0x3b4599([0x56,0x61,0x6c,0x69,0x64])&&_0x466e64(_0x598103);},_0x4b6469);}):_0x5c7a6f||_0x1ebb5a||_0x3b4599([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22ff91(_0xe09a12,_0x1ab83e){return new window[(_0x3b4599([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x439720=>{if(_0x483a98())return _0x439720(_0x3b4599([0x56,0x61,0x6c,0x69,0x64]));_0x9a8f95(),_0x440dbc[_0x3b4599([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b4599([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1fc72e=!0x1;const _0x1d4725=_0x80afb8();function _0x5697e1(_0x4c017c){return!!_0x4c017c&&(typeof _0x4c017c===_0x3b4599([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4c017c===_0x3b4599([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4c017c[_0x3b4599([0x74,0x68,0x65,0x6e])]===_0x3b4599([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4c017c[_0x3b4599([0x63,0x61,0x74,0x63,0x68])]===_0x3b4599([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2796d3(_0x5654be){_0x5b8482(_0x5654be)[_0x3b4599([0x74,0x68,0x65,0x6e])](_0x45678d=>{if(!_0x45678d||_0x45678d[_0x3b4599([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b4599([0x6f,0x6b]))return _0x3b4599([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f1e55(_0x3b6306(_0x1d4725+_0x1ab83e))!=_0x45678d[_0x3b4599([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b4599([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b4599([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b4599([0x74,0x68,0x65,0x6e])](_0x35c78e=>(_0x1393d4(),_0x35c78e),()=>{const _0x3628a7=_0x4cd59e();return null==_0x3628a7?(_0x1393d4(),_0x3b4599([0x56,0x61,0x6c,0x69,0x64])):_0x3b4599(_0x220ff9-_0x3628a7>(0x305d1db7^_0x7c0cf0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b4599([0x74,0x68,0x65,0x6e])](_0x439720)[_0x3b4599([0x63,0x61,0x74,0x63,0x68])](()=>{_0x439720(_0x3b4599([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16618d=0x14677737^_0x7c0cf0;function _0x1393d4(){const _0x10eda1=_0x3b4599([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f1e55(_0x3b6306(_0xe09a12)),_0x1634a2=_0x59fce2(_0x2f1e55(window[_0x3b4599([0x4d,0x61,0x74,0x68])][_0x3b4599([0x63,0x65,0x69,0x6c])](_0x220ff9/_0x16618d)));window[_0x3b4599([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b4599([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10eda1,_0x1634a2);}function _0x4cd59e(){const _0x3cceb1=_0x3b4599([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f1e55(_0x3b6306(_0xe09a12)),_0x5f1f6d=window[_0x3b4599([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b4599([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cceb1);return _0x5f1f6d?window[_0x3b4599([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59fce2(_0x5f1f6d),0x10)*_0x16618d:null;}function _0x5b8482(_0x2363b3){return new window[(_0x3b4599([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xeb045a,_0x11a9e5)=>{_0x2363b3[_0x3b4599([0x74,0x68,0x65,0x6e])](_0xeb045a,_0x11a9e5),window[_0x3b4599([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11a9e5,0x14504d77^_0x7c0cf0);});}}_0x440dbc[_0x3b4599([0x6f,0x6e])](_0x3b4599([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ecce7,_0x3c2f76)=>{if(_0x3c2f76[0x0]!=_0xe09a12)return _0x439720(_0x3b4599([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c2f76[0x1]={..._0x3c2f76[0x1],[_0x3b4599([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d4725};},{[_0x3b4599([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b4599([0x68,0x69,0x67,0x68])}),_0x440dbc[_0x3b4599([0x6f,0x6e])](_0x3b4599([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e8fd5=>{_0x5697e1(_0x4e8fd5[_0x3b4599([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1fc72e=!0x0,_0x2796d3(_0x4e8fd5[_0x3b4599([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b4599([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b4599([0x6c,0x6f,0x77])}),_0x3ecab9[_0x3b4599([0x74,0x68,0x65,0x6e])](()=>{_0x1fc72e||_0x439720(_0x3b4599([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x483a98(){return _0x440dbc[_0x3b4599([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b4599([0x76,0x69,0x65,0x77])][_0x3b4599([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b4599([0x61,0x75,0x74,0x6f]);}function _0x9a8f95(){_0x440dbc[_0x3b4599([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b4599([0x76,0x69,0x65,0x77])][_0x3b4599([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b4599([0x61,0x75,0x74,0x6f]);}}function _0x3ddbb8(_0x3441d8){const _0x833191=[new window[(_0x3b4599([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a7ba6=>setTimeout(_0x2a7ba6,0x1458a77b^_0x7c0cf0)),_0x3ecab9[_0x3b4599([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b4599([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6658=>{let _0x3c6f75=0x0;_0x440dbc[_0x3b4599([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b4599([0x6f,0x6e])](_0x3b4599([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c48fc,_0x21e377)=>{_0x21e377[0x0][_0x3b4599([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c6f75++,_0x3c6f75==(0x1451984f^_0x7c0cf0)&&(_0x4b6658(),_0x2c48fc[_0x3b4599([0x6f,0x66,0x66])]());});}))];return window[_0x3b4599([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b4599([0x72,0x61,0x63,0x65])](_0x833191)[_0x3b4599([0x74,0x68,0x65,0x6e])](()=>_0x3441d8);}async function _0xcd1f2e(){await _0x3ecab9,_0x440dbc[_0x3b4599([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b4599([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52e223,_0x440dbc[_0x3b4599([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b4599([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52e223,_0x440dbc[_0x3b4599([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b4599([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a46e4(){return _0x5878f5(_0x3b4599([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x6dd025(_0x3b4599([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b4599([0x73,0x74,0x61,0x74,0x65])]==_0x3b4599([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa5aef3(){return _0x5878f5(_0x3b4599([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 _0x50bba7(){return _0x5878f5(_0x3b4599([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x597a46(_0x35ab3c){const _0x2125e5=_0x1f76c9();_0x440dbc[_0x2125e5]=_0x3b4599([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x35ab3c,_0x35ab3c!=_0x3b4599([0x56,0x61,0x6c,0x69,0x64])&&_0xcd1f2e();}function _0x1f76c9(){const _0x40455a=window[_0x3b4599([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b4599([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b4599([0x6e,0x6f,0x77])]())[_0x3b4599([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b4599([0x2e]),'');let _0x522e47=_0x3b4599([0x74]);for(let _0x219bdc=0x0;_0x219bdc<_0x40455a[_0x3b4599([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x219bdc+=0x2){let _0x12d529=window[_0x3b4599([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40455a[_0x3b4599([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x219bdc,_0x219bdc+0x2));_0x12d529>=_0x35958a[_0x3b4599([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12d529-=_0x35958a[_0x3b4599([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x522e47+=_0x35958a[_0x12d529];}return _0x522e47;}function _0x55f5d7(){const _0x30e938=_0x5d99c0[_0x3b4599([0x73,0x70,0x6c,0x69,0x74])](_0x3b4599([0x2e]));if(0x3!=_0x30e938[_0x3b4599([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc5db34(_0x30e938[0x1]);function _0xc5db34(_0x371560){const _0x43994a=_0x16e6c4(_0x371560);return _0x43994a&&_0x136de8()?_0x43994a:null;function _0x136de8(){const _0x170068=_0x43994a[_0x3b4599([0x6a,0x74,0x69])],_0x216f8c=window[_0x3b4599([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x170068[_0x3b4599([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x170068[_0x3b4599([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48986c={..._0x43994a,[_0x3b4599([0x6a,0x74,0x69])]:_0x170068[_0x3b4599([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x170068[_0x3b4599([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48986c[_0x3b4599([0x76,0x63])],_0x3b6306(_0x48986c)==_0x216f8c;}}}async function _0x5957fd(){let _0x29ef13=!0x0;try{const _0x4ac087=_0x5d99c0[_0x3b4599([0x73,0x70,0x6c,0x69,0x74])](_0x3b4599([0x2e])),[_0x489f2d,_0x3c950d,_0x2447f4]=_0x4ac087;return _0x2f2610(_0x489f2d),await _0x446da6(_0x489f2d,_0x3c950d,_0x2447f4),_0x29ef13;}catch(_0x130990){return!0x1;}function _0x2f2610(_0xcc4540){const _0x2efa12=_0x16e6c4(_0xcc4540);_0x2efa12&&_0x2efa12[_0x3b4599([0x61,0x6c,0x67])]==_0x3b4599([0x45,0x53,0x32,0x35,0x36])||(_0x29ef13=!0x1);}async function _0x446da6(_0x19f4cb,_0x1987f8,_0x2ac1cd){const _0x5b7d6f=window[_0x3b4599([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b4599([0x66,0x72,0x6f,0x6d])](_0x56b228(_0x2ac1cd),_0x5f6237=>_0x5f6237[_0x3b4599([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x59a370=new window[(_0x3b4599([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b4599([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19f4cb+_0x3b4599([0x2e])+_0x1987f8),_0x21b040=window[_0x3b4599([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b4599([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21b040)return;const _0x5d7d9c=await _0x21b040[_0x3b4599([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b4599([0x6a,0x77,0x6b]),_0x307b12,{[_0x3b4599([0x6e,0x61,0x6d,0x65])]:_0x3b4599([0x45,0x43,0x44,0x53,0x41]),[_0x3b4599([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b4599([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b4599([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21b040[_0x3b4599([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b4599([0x6e,0x61,0x6d,0x65])]:_0x3b4599([0x45,0x43,0x44,0x53,0x41]),[_0x3b4599([0x68,0x61,0x73,0x68])]:{[_0x3b4599([0x6e,0x61,0x6d,0x65])]:_0x3b4599([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d7d9c,_0x5b7d6f,_0x59a370)||(_0x29ef13=!0x1);}}function _0x16e6c4(_0xbf2fdb){return _0xbf2fdb[_0x3b4599([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b4599([0x65,0x79]))?JSON[_0x3b4599([0x70,0x61,0x72,0x73,0x65])](_0x56b228(_0xbf2fdb)):null;}function _0x56b228(_0x381e37){return window[_0x3b4599([0x61,0x74,0x6f,0x62])](_0x381e37[_0x3b4599([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b4599([0x2b]))[_0x3b4599([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b4599([0x2f])));}function _0x3b6306(_0x2ff620){let _0x4d937d=0x1505;function _0x19e7c4(_0x3a3dd3){for(let _0x18b790=0x0;_0x18b790<_0x3a3dd3[_0x3b4599([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18b790++){const _0x50e982=_0x3a3dd3[_0x3b4599([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18b790);_0x4d937d=(_0x4d937d<<0x5)+_0x4d937d+_0x50e982,_0x4d937d&=_0x4d937d;}}function _0x359c24(_0x14dabc){Array[_0x3b4599([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x14dabc)?_0x14dabc[_0x3b4599([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x359c24):_0x14dabc&&typeof _0x14dabc==_0x3b4599([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b4599([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x14dabc)[_0x3b4599([0x73,0x6f,0x72,0x74])]()[_0x3b4599([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x436988,_0x4eddf0])=>{_0x19e7c4(_0x436988),_0x359c24(_0x4eddf0);}):_0x19e7c4(window[_0x3b4599([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x14dabc));}return _0x359c24(_0x2ff620),_0x4d937d>>>0x0;}function _0x2f1e55(_0x53daa4){return _0x53daa4[_0x3b4599([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b4599([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b4599([0x30]));}function _0x59fce2(_0x44f801){return _0x44f801[_0x3b4599([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b4599([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b4599([0x6a,0x6f,0x69,0x6e])]('');}function _0x5878f5(_0x4ec8ce){return _0x440dbc[_0x3b4599([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b4599([0x68,0x61,0x73])](_0x4ec8ce);}function _0x6dd025(_0x42848f){return _0x440dbc[_0x3b4599([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b4599([0x67,0x65,0x74])](_0x42848f);}function _0x52e223(){}function _0x3b4599(_0x4ccbed){return _0x4ccbed['map'](_0x3f027c=>String['fromCharCode'](_0x3f027c))['join']('');}_0x597a46(await _0x43c3c2());}(this);}['destroy'](){const _0x2c3632=this['editor']['plugins']['get'](o),_0x5dfa7a=this['editor']['config']['get']('collaboration.channelId');for(const _0xd5e2e9 of _0x2c3632['getCommentThreads']({'channelId':_0x5dfa7a}))_0x2c3632['_detachCommentThread'](_0xd5e2e9['id']),_0x2c3632['_threads']['delete'](_0xd5e2e9['id']);super['destroy']();}['hasMarkerForId'](_0x35c782){return this['getAllMarkersForId'](_0x35c782)['length']>0x0;}['getAllMarkersForId'](_0xadcfec){const _0x246e32=[];for(const _0x212b1e of this['editor']['model']['markers'])_0x212b1e['name']['startsWith']('comment:'+_0xadcfec)&&_0x246e32['push'](_0x212b1e);return _0x246e32;}['scrollToThreadMarker'](_0x2aed2e){const _0x5a5594=this['_getTargetForId'](_0x2aed2e);_0x5a5594&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x2aed2e&&rt({'target':_0x5a5594[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x3edcad){this['editor']['model']['change'](()=>{for(const _0x754ec7 of this['getAllMarkersForId'](_0x3edcad))this['editor']['editing']['reconvertMarker'](_0x754ec7);});}['_attachArchivedThread'](_0x327343){const _0x5b629c=this['editor']['plugins']['get'](o),_0x4b7e72=this['editor']['plugins']['get'](P),_0x31e7df=_0x5b629c['getCommentThread'](_0x327343);if(!_0x31e7df['isAttached']){const _0x34319e=_0x31e7df['attachTo'](()=>this['_getTargetForId'](_0x31e7df['id']));_0x4b7e72['registerAnnotation'](_0x34319e),_0x31e7df['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x491b95=this['editor'],_0x30c425=_0x491b95['plugins']['get'](it);_0x491b95['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x63d8ea,_0x235074)=>{const {id:_0xc2187a}=er(_0x63d8ea['markerName']),_0x2ad2c5=_0x491b95['plugins']['get'](o)['getCommentThread'](_0xc2187a),_0x361a10=this['activeMarker']&&er(this['activeMarker'])['id']===_0xc2187a;let _0x448410;if(_0x2ad2c5&&_0x2ad2c5['isResolved']&&!_0x361a10&&_0x63d8ea['item'])return _0x235074['consumable']['consume'](_0x63d8ea['item'],'addMarker:'+_0x63d8ea['markerName']),_0x235074['consumable']['consume'](_0x63d8ea['item'],'removeMarker:'+_0x63d8ea['markerName']),null;const _0x50233f=['ck-comment-marker'];return _0x361a10&&_0x50233f['push']('ck-comment-marker--active'),_0x448410=_0x2ad2c5&&_0x2ad2c5['length']?_0x2ad2c5['comments']['first']['author']['id']:_0x30c425['me']['id'],{'classes':_0x50233f,'attributes':{'data-comment':_0xc2187a,'data-author-id':_0x448410}};}}),_0x491b95['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x56da30,{options:_0x17ffbb})=>{if(_0x17ffbb['showCommentHighlights'])return null;const _0x4152ed=_0x491b95['plugins']['get'](o),_0x374775=_0x491b95['model']['markers']['get'](_0x56da30),{id:_0x2eaa9d,part:_0x37c721}=er(_0x56da30);if(_0x374775&&!_0x374775['affectsData'])return null;if(_0x17ffbb['ignoreResolvedComments']){const _0x17fc7f=_0x4152ed['getCommentThread'](_0x2eaa9d);if(_0x17fc7f&&_0x17fc7f['isResolved'])return null;}return{'group':'comment','name':_0x37c721?_0x2eaa9d+':'+_0x37c721:_0x2eaa9d};}}),_0x491b95['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x207154,{writer:_0x180257})=>_0x180257['createElement']('$marker',{'data-name':'comment:'+_0x207154['getAttribute']('id')})}),_0x491b95['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x4b0faf=this['editor'],_0x50f480=_0x4b0faf['plugins']['get'](o),_0x35774a=new Set(),_0x1150aa=new Set();_0x4b0faf['model']['document']['registerPostFixer'](_0x2ffcea=>{let _0x1f72a9=!0x1;for(const {name:_0x4efe3c,data:_0x1fda3b}of _0x4b0faf['model']['document']['differ']['getChangedMarkers']()){const {group:_0x15bc9f,id:_0x4da77f}=er(_0x4efe3c);let _0x1d278d=_0x1fda3b['newRange'];if('comment'!==_0x15bc9f||!_0x1d278d)continue;const _0xa92f8d='$graveyard'===_0x1d278d['root']['rootName'];_0xa92f8d||(_0x1d278d=dt(_0x1d278d,_0x4b0faf['model']),!_0x1d278d||_0x1d278d['isCollapsed']||!_0x1fda3b['newRange']||_0x1d278d['isEqual'](_0x1fda3b['newRange']))?_0x4b0faf['model']['hasContent'](_0x1d278d)&&!_0xa92f8d?this['isThreadsLoadingPaused']?_0x35774a['add'](_0x4efe3c):this['_handleThreadMarker'](_0x4efe3c,_0x4da77f):(_0x1150aa['add'](_0x4efe3c),_0x35774a['delete'](_0x4efe3c),_0x2ffcea['removeMarker'](_0x4efe3c),_0x1f72a9=!0x0):(_0x2ffcea['updateMarker'](_0x4efe3c,{'range':_0x1d278d}),_0x1f72a9=!0x0);}return _0x1f72a9;}),this['on']('change:isThreadsLoadingPaused',(_0xf74d21,_0x5f23b4,_0x3ae5ce)=>{if(!_0x3ae5ce&&_0x35774a['size'])for(const _0x48e2a0 of _0x35774a){const {id:_0x3437fc}=er(_0x48e2a0);_0x35774a['delete'](_0x48e2a0),_0x4b0faf['model']['markers']['get'](_0x48e2a0)&&this['_handleThreadMarker'](_0x48e2a0,_0x3437fc);}}),this['listenTo'](_0x4b0faf['model']['document'],'change',()=>{for(const {name:_0x4fa900,data:{newRange:_0x4f40d9}}of _0x4b0faf['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2dc154,id:_0x39239a}=er(_0x4fa900);if('comment'!==_0x2dc154)continue;const _0xb6087e=_0x50f480['getCommentThread'](_0x39239a),_0x2704e8=this['hasMarkerForId'](_0x39239a);_0xb6087e&&(!_0xb6087e['_hasTargetInContent']&&_0x4f40d9&&_0x4b0faf['editing']['view']['once']('render',()=>{const _0x4f1389=_0x4b0faf['plugins']['get'](N),_0x4e2161=_0x50f480['_threadToController']['get'](_0xb6087e)['view'];_0x4f1389['getByInnerView'](_0x4e2161)['refreshVisibility']();},{'priority':'low'}),_0xb6087e['_hasTargetInContent']=_0x2704e8||!!_0x4f40d9),_0x4f40d9||(_0x1150aa['add'](_0x4fa900),_0x35774a['delete'](_0x4fa900));}for(const _0x16057c of _0x1150aa){const {id:_0x7ac0af}=er(_0x16057c),_0x5249d7=_0x50f480['getCommentThread'](_0x7ac0af);if(_0x35774a['delete'](_0x16057c),!_0x5249d7)continue;const _0x4516da=this['hasMarkerForId'](_0x7ac0af);_0x4516da||_0x5249d7['isSubmitted']?_0x4516da||_0x5249d7['unlinkedAt']||_0x5249d7['setUnlinkedAt'](new Date()):_0x5249d7['remove']();}_0x1150aa['clear']();});}['_handleInitialThreads'](_0xf3e6cc){_0xf3e6cc['forEach'](_0x41d669=>{_0x41d669['unlinkedAt']&&this['_attachArchivedThread'](_0x41d669['id']);});}['_getTargetForId'](_0x36d206){const _0x3b4283=this['editor'],_0x268d5e=this['getAllMarkersForId'](_0x36d206);return et(_0x3b4283['editing'],_0x268d5e);}['_getTextContext'](_0x4eac65){const _0x907e6=this['getAllMarkersForId'](_0x4eac65);let _0x5dd4a1='',_0x2dde0c=!0x1;for(const _0x472840 of _0x907e6){const _0x51dfed=_0x472840['getRange']();for(const _0x345e12 of Array['from'](_0x51dfed['getItems']()))_0x345e12['is']('$textProxy')?(_0x5dd4a1&&_0x2dde0c&&(_0x5dd4a1+='\x20',_0x2dde0c=!0x1),_0x5dd4a1+=_0x345e12['data']):_0x2dde0c=!0x0;_0x2dde0c=!0x0;}return _0x5dd4a1['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x26aa3a,_0x13e5a6){const _0x53e190=this['editor'],_0x40c19d=_0x53e190['plugins']['get'](o);let _0x771e78=_0x40c19d['getCommentThread'](_0x13e5a6);const _0x3084f3=_0x53e190['config']['get']('collaboration.channelId'),_0x5032eb=_0x53e190['plugins']['get'](P);if(_0x771e78&&(_0x771e78['unlinkedAt']&&_0x771e78['setUnlinkedAt'](null),_0x771e78['isAttached']))return _0x771e78;return!this['getAllMarkersForId'](_0x13e5a6)[0x0]['managedUsingOperations']?_0x53e190['editing']['view']['once']('render',()=>{if(_0x40c19d['getCommentThread'](_0x13e5a6))return;const _0x22af1b=_0x53e190['plugins']['get'](N);_0x771e78=_0x40c19d['openNewCommentThread']({'channelId':_0x3084f3,'threadId':_0x13e5a6,'target':()=>this['_getTargetForId'](_0x13e5a6),'context':{'type':'text','value':this['_getTextContext'](_0x13e5a6)}});const _0x4b6cf1=_0x40c19d['_threadToController']['get'](_0x771e78)['view'],_0x583a0a=_0x22af1b['getByInnerView'](_0x4b6cf1);_0x583a0a&&_0x5032eb['registerAnnotation'](_0x583a0a);},{'priority':'low'}):_0x40c19d['fetchCommentThread']({'channelId':_0x3084f3,'threadId':_0x13e5a6})['then'](_0x306647=>{if('destroyed'!==_0x53e190['state']){if(_0x771e78=_0x306647,_0x771e78&&!_0x771e78['isAttached']){const _0x1e5468=_0x771e78['attachTo'](()=>this['_getTargetForId'](_0x13e5a6));_0x5032eb['registerAnnotation'](_0x1e5468),_0x771e78['isResolved']&&this['_reconvertMarkers'](_0x13e5a6);}else{if(!_0x771e78){const _0x259bf2=this['getAllMarkersForId'](_0x13e5a6);_0x53e190['model']['change'](_0x18564b=>{for(const _0x286d7c of _0x259bf2)_0x18564b['removeMarker'](_0x286d7c);});}}}}),_0x771e78;}['_handleThreadMarker'](_0xe0d3a1,_0x2c30fd){const _0x5e31c7=this['_attachMarkerToThread'](_0xe0d3a1,_0x2c30fd);_0x5e31c7&&!_0x5e31c7['context']&&_0x5e31c7['setContext']({'type':'text','value':this['_getTextContext'](_0x2c30fd)});}['_initAriaMarkerChangeAnnouncements'](){const _0xc9b2b9=this['editor'];ot(_0xc9b2b9['model'],({left:_0x153d2d,entered:_0x1bb8c5})=>{for(const _0x5e7777 of _0x153d2d)if(mt(_0x5e7777)){_0xc9b2b9['ui']['ariaLiveAnnouncer']['announce'](S(_0xc9b2b9['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x388b4b of _0x1bb8c5)if(mt(_0x388b4b)){_0xc9b2b9['ui']['ariaLiveAnnouncer']['announce'](S(_0xc9b2b9['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x57c227)));break;}});}}function ft(_0x16f441,_0x5991a1){return _0x5991a1?_0x16f441+':'+_0x5991a1:_0x16f441;}function er(_0x1307c){const _0x58579d=_0x1307c['split'](':');return{'group':_0x58579d[0x0],'id':_0x58579d[0x1],'part':_0x58579d[0x2]};}function dt(_0x24c920,_0x1f128f){const _0x41e764=_0x1f128f['schema'],_0x3ca6d1=_0x1f128f['createRange'](_0x24c920['start']);for(const _0x4c2ed7 of _0x24c920['getWalker']()){const {type:_0x22c003,item:_0x51d8d0,nextPosition:_0x3f209e}=_0x4c2ed7;if('text'===_0x22c003||_0x41e764['isObject'](_0x51d8d0)){const _0x3ad653=_0x1f128f['createPositionBefore'](_0x51d8d0);_0x3ca6d1['isCollapsed']&&(_0x3ca6d1['start']=_0x3ad653),_0x3ca6d1['end']=_0x3f209e;}}return _0x3ca6d1;}function mt(_0x30e1b0){return'comment'===er(_0x30e1b0['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 _0x173918{['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 _0x11b63f=this['editor'],_0xd9cd2b=_0x11b63f['plugins']['get'](o),_0x5e9c94=_0x11b63f['plugins']['get'](r),_0x4bc8ea=_0x11b63f['plugins']['get'](N),_0xd6b473=_0x11b63f['plugins']['get'](P);_0x11b63f['ui']['componentFactory']['add']('comment',()=>{const _0x276a8e=this['_createUIButton'](_0xa58164);return _0x276a8e['tooltip']=!0x0,_0x276a8e;}),_0x11b63f['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x5ee2d0)),_0xd6b473['addSourceCollector'](()=>{const _0x2d9f66=[];for(const [_0x34fd8b,_0x30d12d]of _0xd9cd2b['_threadToController']){const _0x100185=_0x5e9c94['getAllMarkersForId'](_0x34fd8b['id']),_0x2e14d4=_0x100185['map'](_0x3d59e0=>_0x3d59e0['getRange']());_0x100185['length']>0x0&&_0x2d9f66['push']([_0x30d12d['view'],_0x2e14d4]);}return _0x2d9f66;}),this['listenTo'](_0x4bc8ea,'change:activeAnnotations',(_0x2186f2,_0xa7ac64,_0x5b2bf5)=>{const _0x57beb9=Array['from'](_0x5b2bf5)['map'](_0xe932f6=>_0xe932f6['innerView'])['find'](_0x35037d=>_0xd9cd2b['_viewToController']['has'](_0x35037d));if(!_0x57beb9)return void(_0x5e9c94['activeMarker']=null);const _0x110e40=_0xd9cd2b['_viewToController']['get'](_0x57beb9)['model']['id'],_0x3a06f0='comment:'+_0x110e40;_0x110e40&&_0x5e9c94['hasMarkerForId'](_0x110e40)?_0x5e9c94['activeMarker']=_0x3a06f0:_0x5e9c94['activeMarker']&&(_0x5e9c94['activeMarker']=null);}),this['listenTo'](_0xd9cd2b,'removeCommentThread',(_0x25ee87,{threadId:_0xa17336,isFromAdapter:_0x2bf868})=>{!_0x2bf868&&_0x11b63f['ui']['focusTracker']['isFocused']&&_0x5e9c94['hasMarkerForId'](_0xa17336)&&_0x11b63f['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0xd9cd2b,'addComment',(_0x4dedf9,{threadId:_0x1b3c0b,isFromAdapter:_0x1ba3a0})=>{if(_0x1ba3a0||!_0x5e9c94['hasMarkerForId'](_0x1b3c0b)||!_0xd9cd2b['hasCommentThread'](_0x1b3c0b))return;0x1===_0xd9cd2b['getCommentThread'](_0x1b3c0b)['length']&&(_0x11b63f['editing']['view']['focus'](),_0x4dedf9['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd7a9fa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b2067;for(const _0xaff6f3 in _0xd7a9fa){const _0x16f3b9=_0xaff6f3,_0x401af8=_0xd7a9fa[_0x16f3b9];if('commentsLicenseKeyValid'==_0x401af8||'commentsLicenseKeyInvalid'==_0x401af8||'commentsLicenseKeyExpired'==_0x401af8||'commentsLicenseKeyDomainLimit'==_0x401af8||'commentsLicenseKeyNotAllowed'==_0x401af8||'commentsLicenseKeyEvaluationLimit'==_0x401af8||'commentsLicenseKeyTrialLimit'==_0x401af8||'commentsLicenseKeyUsageLimit'==_0x401af8){delete _0xd7a9fa[_0x16f3b9],_0x3b2067=_0x401af8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3b2067&&_0xd7a9fa['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3b2067&&_0xd7a9fa['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3b2067&&_0xd7a9fa['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3b2067&&_0xd7a9fa['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3b2067&&_0xd7a9fa['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x3b2067&&_0xd7a9fa['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x3b2067&&_0xd7a9fa['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x5f563e){const _0x5cfc17=this['editor'],_0x589553=new _0x5f563e(_0x5cfc17['locale']),_0x5cba27=_0x5cfc17['commands']['get']('addCommentThread');return _0x589553['set']({'label':S(_0x5cfc17['locale'],'Comment'),'icon':xt}),_0x589553['bind']('isEnabled')['to'](_0x5cba27),this['listenTo'](_0x589553,'execute',()=>{_0x5cfc17['editing']['view']['focus'](),_0x5cba27['execute']();}),_0x589553;}}class s extends _0x173918{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x18be75){super(_0x18be75),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5ed042,_0x2a7aa8,_0x8cd906)=>{_0x8cd906?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x4e2dd9,_0x305320]of this['editor']['commands'])_0x305320['affectsData']&&'addCommentThread'!==_0x4e2dd9&&_0x305320['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 _0x5cc24d=this['editor']['editing']['view']['document'];this['listenTo'](_0x5cc24d,'cut',_0x333b72=>_0x333b72['stop'](),{'priority':'highest'}),this['listenTo'](_0x5cc24d,'clipboardInput',_0x5d4d59=>_0x5d4d59['stop'](),{'priority':'highest'}),this['listenTo'](_0x5cc24d,'delete',_0x3fdc53=>_0x3fdc53['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x4b0ccf,_0x198701]of this['editor']['commands'])_0x198701['affectsData']&&'addCommentThread'!==_0x4b0ccf&&_0x198701['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 _0x33e9d1{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37f583){super(_0x37f583),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x39c953=this['context']['plugins']['get'](N);this['listenTo'](_0x39c953,'_activateAnnotation',(_0x54a2b1,_0x27218c)=>{for(const _0x29b4e9 of this['activeUIs']){const _0x5d3464=this['_uis']['get'](_0x29b4e9);(0x0,this['_uisData']['get'](_0x29b4e9)['filter'])(_0x27218c)&&_0x5d3464['setActiveAnnotation'](_0x27218c);}}),this['listenTo'](_0x39c953,'_deactivateAllAnnotations',()=>{for(const _0x54f1b1 of this['activeUIs']){this['_uis']['get'](_0x54f1b1)['setActiveAnnotation'](null);}}),this['listenTo'](_0x39c953['_visibleAnnotations'],'add',(_0x1346d6,_0x4ec1d1)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4ec1d1);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x47107b){return this['activeUIs']['has'](_0x47107b);}['activate'](_0x42b4f6,_0x5f3664=()=>!0x0){const _0x296c0d=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x42b4f6))throw new _0x46877c('annotationsuis-missing-ui',this,{'uiName':_0x42b4f6});this['isActive'](_0x42b4f6)&&this['deactivate'](_0x42b4f6),this['activeUIs']['add'](_0x42b4f6);const _0xe0f703=new x();!function({source:_0x5aac27,target:_0xbe47d8,filter:_0x93d9e1}){for(const _0x94ffd3 of _0x5aac27)_0x93d9e1(_0x94ffd3)&&_0xbe47d8['add'](_0x94ffd3);_0xbe47d8['listenTo'](_0x5aac27,'add',(_0x6318f6,_0x538577)=>{_0x93d9e1(_0x538577)&&_0xbe47d8['add'](_0x538577);}),_0xbe47d8['listenTo'](_0x5aac27,'remove',(_0x53ccbd,_0x2657f3)=>{_0xbe47d8['has'](_0x2657f3)&&_0xbe47d8['remove'](_0x2657f3);});}({'source':_0x296c0d['_visibleAnnotations'],'target':_0xe0f703,'filter':_0x5f3664}),this['_uisData']['set'](_0x42b4f6,{'collection':_0xe0f703,'filter':_0x5f3664});const _0x5ea641=this['_uis']['get'](_0x42b4f6);_0x5ea641['attach'](_0xe0f703),this['listenTo'](_0x5ea641,'change:activeAnnotation',(_0x2c9280,_0x5528da,_0x3739a7,_0x647fb0)=>{_0x647fb0&&_0x296c0d['_removeActiveAnnotation'](_0x647fb0),_0x3739a7&&_0x296c0d['_addActiveAnnotation'](_0x3739a7);});}['deactivate'](_0x2f2bc1){if(this['activeUIs']['delete'](_0x2f2bc1),!this['_uis']['has'](_0x2f2bc1))throw new _0x46877c('annotationsuis-missing-ui',this,{'uiName':_0x2f2bc1});const _0x549eb3=this['_uis']['get'](_0x2f2bc1);_0x549eb3['detach'](),this['stopListening'](_0x549eb3),this['_uisData']['get'](_0x2f2bc1)['collection']['destroy'](),this['_uisData']['delete'](_0x2f2bc1);}['switchTo'](_0x4cca6a){if(!this['_uis']['has'](_0x4cca6a))throw new _0x46877c('annotationsuis-missing-ui',this,{'uiName':_0x4cca6a});const _0x1b2463=this['context']['plugins']['get'](N),_0x3f96e6=Array['from'](_0x1b2463['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4cca6a);const _0x107b94=this['_uis']['get'](_0x4cca6a);_0x107b94['setActiveAnnotation'](_0x3f96e6),_0x107b94['_setSelectedAnnotations']&&_0x3f96e6&&_0x107b94['_setSelectedAnnotations']([_0x3f96e6]);}['deactivateAll'](){for(const _0x26472c of this['activeUIs'])this['deactivate'](_0x26472c);}['register'](_0xab171,_0x2f4aa9){if(this['_uis']['has'](_0xab171))throw new _0x46877c('annotationsuis-register-already-registered');if('function'!=typeof _0x2f4aa9['attach']||'function'!=typeof _0x2f4aa9['detach']||'function'!=typeof _0x2f4aa9['setActiveAnnotation'])throw new _0x46877c('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0xab171,_0x2f4aa9);}['refilterAnnotations'](){const _0x3e7d96=this['context']['plugins']['get'](N)['collection'],_0x116a94=new Map(),_0xe2905c=Array['from'](this['activeUIs']);for(const _0x82d1ba of this['activeUIs']){const _0x15770=this['_uisData']['get'](_0x82d1ba)['collection'];for(const _0x888c5a of _0x15770)_0x116a94['set'](_0x888c5a,_0x82d1ba);}for(const _0x37ccba of _0x3e7d96){const _0x1de064=_0x116a94['get'](_0x37ccba);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x37ccba);const _0x25b46d=_0xe2905c['find'](_0x30f8c=>this['_uisData']['get'](_0x30f8c)['filter'](_0x37ccba));_0x1de064!==_0x25b46d&&(_0x1de064&&this['_uisData']['get'](_0x1de064)['collection']['remove'](_0x37ccba),_0x25b46d&&this['_uisData']['get'](_0x25b46d)['collection']['add'](_0x37ccba));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x10f299){const _0x132332=[];for(const _0x538096 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x538096)['filter'])(_0x10f299)&&_0x132332['push'](_0x538096);}if(_0x132332['length']>0x1)throw new _0x46877c('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x132332,'annotationType':_0x10f299['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5df973){super(_0x5df973);const _0x186928=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 _0x49c33c(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x186928['to']('class')],'style':{'minHeight':_0x186928['to']('minHeight',_0x38d561=>'number'==typeof _0x38d561?he(_0x38d561+0xa):null)},'dir':_0x5df973['uiLanguageDirection'],'role':'application','aria-label':S(_0x5df973,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x5df973,'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',_0x4fff92=>{this['_updateItemPositionInFocusables'](_0x4fff92['source']);}),this['list']['forEach'](_0x96da=>{this['focusTracker']['add'](_0x96da['element']),this['_updateItemPositionInFocusables'](_0x96da);}),this['list']['on']('change',(_0x53209e,_0x59fece)=>{for(const _0x2f53c4 of _0x59fece['removed'])this['focusTracker']['remove'](_0x2f53c4['element']),this['focusables']['remove'](_0x2f53c4);for(const _0x44fc61 of _0x59fece['added'])this['focusTracker']['add'](_0x44fc61['element']),this['_updateItemPositionInFocusables'](_0x44fc61);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x2413ab){const _0x11b22d=this['focusables']['getIndex'](_0x2413ab);let _0x2cfc85,_0x3450a9;for(const _0x3a4e07 of this['focusables'])if(_0x2413ab['top']<_0x3a4e07['top']){_0x2cfc85=_0x3a4e07;break;}if(_0x3450a9=_0x2cfc85?this['focusables']['getIndex'](_0x2cfc85):this['focusables']['length'],-0x1!==_0x11b22d){if(_0x11b22d===_0x3450a9-0x1)return;this['focusables']['remove'](_0x2413ab),_0x3450a9=_0x2cfc85?this['focusables']['getIndex'](_0x2cfc85):this['focusables']['length'];}this['focusables']['add'](_0x2413ab,_0x3450a9);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2d884e){super(_0x2d884e),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x41bd7e,_0x3d0a0a)=>_0x41bd7e+_0x3d0a0a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0xbac119=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0xbac119['to']('isAnimationDisabled',_0x58dd3a=>_0x58dd3a?'ck-sidebar-item--no-animation':'')],'style':{'top':_0xbac119['to']('top',_0x56f363=>qt(_0x56f363))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x4944cf=this['element']['clientHeight'];_0x4944cf&&(this['height']=_0x4944cf);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x33e9d1{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d08d7){super(_0x5d08d7),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 _0xac6e36=this['context']['config']['get']('sidebar.container');_0xac6e36&&this['setContainer'](_0xac6e36);}['setContainer'](_0x3b5446){if(!y(_0x3b5446))throw new _0x46877c('sidebar-setcontainer-invalid-element');this['container']=_0x3b5446;}['_attachToContainer']({viewClass:_0x256c01='',spaceBetweenItems:_0x35a6f0=0x19}={}){if(!y(this['container']))throw new _0x46877c('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x256c01,this['_spaceBetweenItems']=_0x35a6f0;}['rearrange']({removedAnnotation:_0xe3e7af,previousAnnotation:_0x2214a5,nextAnnotation:_0x25232a}){const _0x411583=this['getSidebarItemView'](_0xe3e7af);this['view']['list']['remove'](_0x411583),this['_destroySidebarItemView'](_0xe3e7af),_0x2214a5&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2214a5)),_0x25232a&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x25232a)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x551920,activatedAnnotation:_0x1da339,disableAnimationOnActivatedAnnotation:_0x36c928}){if(this['_activeAnnotation']=_0x1da339,_0x551920){_0x551920['isActive']=!0x1;const _0x59615c=this['getSidebarItemView'](_0x551920);_0x59615c&&_0x36c928&&(_0x59615c['isAnimationDisabled']=!0x1);}if(_0x1da339){const _0x5d81d5=this['getSidebarItemView'](_0x1da339);_0x5d81d5&&(_0x1da339['isActive']=!0x0,_0x36c928&&(_0x5d81d5['isAnimationDisabled']=!0x0,_0x5d81d5['top']+=0x1),this['_alignToTargetRect'](_0x5d81d5));}}['_detachFromContainer'](_0x5a170e){if(this['view']['element']['remove'](),_0x5a170e){for(const _0x31df2b of _0x5a170e)this['_destroySidebarItemView'](_0x31df2b);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x57a7c3,_0x5719d2){_0x5719d2||(_0x5719d2=_0x57a7c3['view']);const _0x480f11=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x480f11,_0x57a7c3),this['_annotationToSidebarItemView']['set'](_0x57a7c3,_0x480f11),_0x480f11['content']['add'](_0x5719d2),this['listenTo'](_0x57a7c3['view'],'change:targetRect',(_0x56c311,_0x1bb093,_0x52d21f)=>{const _0x1da5b0=this['_getTargetTop'](_0x57a7c3,_0x52d21f);_0x480f11['_targetTop']!=_0x1da5b0&&(_0x480f11['_targetTop']=_0x1da5b0,this['_setItemTop'](_0x480f11,_0x1da5b0));}),this['listenTo'](_0x480f11,'change:top',()=>{this['_recalculate'](_0x480f11,'top');}),this['listenTo'](_0x480f11,'change:bottom',()=>{this['_recalculate'](_0x480f11,'bottom');}),this['_alignToTargetRect'](_0x480f11);const _0x25d932=this['_getItemBefore'](_0x480f11);if(_0x25d932)this['_alignAfterItem'](_0x25d932,_0x480f11)||this['_alignToTargetRect'](_0x480f11);else this['_alignToTargetRect'](_0x480f11);return this['_updateLastItem'](),this['view']['list']['add'](_0x480f11),_0x480f11;}['_alignForTopChange'](_0x5d540b){if(!_0x5d540b['content']['length'])return;const _0x5b5e85=this['_getItemBefore'](_0x5d540b);if(!_0x5b5e85)return;const _0x3fac02=this['_sidebarItemViewToAnnotation']['get'](_0x5b5e85),_0x2584df=this['_activeAnnotation'];_0x2584df&&_0x2584df===_0x3fac02?this['_alignAfterItem'](_0x5b5e85,_0x5d540b):this['_alignBeforeItem'](_0x5d540b,_0x5b5e85);}['_alignForBottomChange'](_0x3c5f10){if(!_0x3c5f10['content']['length'])return;const _0x1a12e5=this['_getItemAfter'](_0x3c5f10);if(!_0x1a12e5)return;const _0x532083=this['_sidebarItemViewToAnnotation']['get'](_0x1a12e5),_0xdad3f7=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x52f379=this['_activeAnnotation'];_0x52f379&&_0x52f379===_0x532083&&_0xdad3f7?(this['_alignBeforeItem'](_0x1a12e5,_0x3c5f10),this['_alignAfterItem'](_0x3c5f10,_0x1a12e5)):_0x52f379&&_0x52f379===_0x532083?this['_alignBeforeItem'](_0x1a12e5,_0x3c5f10):this['_alignAfterItem'](_0x3c5f10,_0x1a12e5);}['_recalculate'](_0x22f932,_0x39e066){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x121dc2,changedProp:_0x3e69ba}of this['_recalculateBuffer'])'top'===_0x3e69ba?this['_alignForTopChange'](_0x121dc2):this['_alignForBottomChange'](_0x121dc2);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x22f932,'changedProp':_0x39e066});}['getSidebarItemView'](_0x210032){return this['_annotationToSidebarItemView']['get'](_0x210032);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1ea0ea){const _0x103251=this['getSidebarItemView'](_0x1ea0ea);this['stopListening'](_0x103251),this['stopListening'](_0x1ea0ea['view']),_0x103251['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1ea0ea),this['_sidebarItemViewToAnnotation']['delete'](_0x103251);}['_createSidebarView'](){const _0xc63de9=new V(this['context']['locale']);return _0xc63de9['render'](),this['on']('change:_lastItem',(_0x2812cf,_0x502e05,_0x52807c,_0x102200)=>{_0x102200&&_0xc63de9['unbind']('minHeight'),_0x52807c?_0xc63de9['bind']('minHeight')['to'](_0x52807c,'bottom'):_0xc63de9['minHeight']=null;}),_0xc63de9;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x17837e){const _0x45cea0=this['_sidebarItemViewToAnnotation']['get'](_0x17837e),_0x32d867=_0x45cea0&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x45cea0)-0x1);return _0x32d867&&this['getSidebarItemView'](_0x32d867)||null;}['_getItemAfter'](_0x2851f8){const _0x50bd6d=this['_sidebarItemViewToAnnotation']['get'](_0x2851f8),_0x3c786c=_0x50bd6d&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x50bd6d)+0x1);return _0x3c786c&&this['getSidebarItemView'](_0x3c786c)||null;}['_alignBeforeItem'](_0x2e6285,_0x5688b2){_0x2e6285['updateHeight']();const _0x5a6edd=R(_0x5688b2['bottom']+this['_spaceBetweenItems'],_0x2e6285['top']);return!!_0x5a6edd&&(this['_setItemTop'](_0x5688b2,_0x5688b2['top']-_0x5a6edd),!0x0);}['_alignAfterItem'](_0x443240,_0x301fbb){_0x443240['updateHeight']();const _0x5a2002=R(_0x443240['bottom']+this['_spaceBetweenItems'],_0x301fbb['top']);return!!_0x5a2002&&(this['_setItemTop'](_0x301fbb,_0x301fbb['top']+_0x5a2002,!0x1),!0x0);}['_alignToTargetRect'](_0x1620f1){const _0x5a3b9e=this['_sidebarItemViewToAnnotation']['get'](_0x1620f1);if(!_0x5a3b9e||!_0x5a3b9e['target']||!_0x5a3b9e['targetRect'])return;const _0x4585fa=this['_getTargetTop'](_0x5a3b9e,_0x5a3b9e['targetRect']);this['_setItemTop'](_0x1620f1,_0x4585fa);}['_getTargetTop'](_0x55fd87,_0x5505d8){if(null===_0x5505d8)return 0x0;if(_0x55fd87['target']instanceof _0x161667)return _0x5505d8['top'];{const _0x35168f=new _0x161667(this['view']['element'])['top'];return _0x5505d8['top']-_0x35168f;}}['_setItemTop'](_0x26b236,_0x5cf682,_0x421392=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x421392&&(_0x5cf682=Math['max'](_0x5cf682,this['_getMaxAvailableTop'](_0x26b236))),_0x26b236['top']=_0x5cf682;}['_getMaxAvailableTop'](_0x19443d){let _0x57da94=this['_getItemBefore'](_0x19443d),_0x562024=0x0;for(;_0x57da94;)_0x57da94['updateHeight'](),_0x562024+=this['_spaceBetweenItems']+_0x57da94['height'],_0x57da94=this['_getItemBefore'](_0x57da94);return _0x562024;}}function R(_0x30d104,_0x27588c){return Math['max'](_0x30d104-_0x27588c,0x0);}function y(_0x1e6261){return null!==_0x1e6261&&'object'==typeof _0x1e6261&&0x1===_0x1e6261['nodeType'];}class e extends _0x33e9d1{['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(_0x966f23){super(_0x966f23),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x3dfde1(),this['_refreshPositioningDebounced']=_0x413e06(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x3d44a4=this['context']['plugins']['get'](M),_0xd415f6=this['context']['plugins']['get'](z);_0x3d44a4['register']('wideSidebar',this),_0xd415f6['container']&&_0x3d44a4['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x422dcd){if(_0x422dcd===this['activeAnnotation'])return;const _0x119573=this['context']['plugins']['get'](z);_0x119573['_activeAnnotation']=_0x422dcd;const _0x2345ec=this['activeAnnotation'];_0x119573['refresh']({'blurredAnnotation':_0x2345ec,'activatedAnnotation':_0x422dcd}),this['activeAnnotation']=_0x422dcd;}['attach'](_0x506495){this['annotations']=_0x506495;const _0x251383=this['context']['plugins']['get'](z);if(_0x251383['_annotations']=_0x506495,this['isAttached'])throw new _0x46877c('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x251383,'set:container',()=>{this['detach'](),this['listenTo'](_0x251383,'change:container',_0x51974a=>{_0x51974a['off'](),this['attach'](_0x506495);});}),_0x251383['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x5c6db4=_0x50e038=>{_0x50e038['updateTargetRect'](),_0x251383['addAnnotation'](_0x50e038);};for(const _0x3164d5 of _0x506495)_0x5c6db4(_0x3164d5);this['listenTo'](_0x506495,'add',(_0x55088a,_0x222460)=>{_0x5c6db4(_0x222460);}),this['listenTo'](_0x506495,'remove',(_0x3b4dcb,_0x3a4428,_0x3663aa)=>{_0x251383['rearrange']({'removedAnnotation':_0x3a4428,'previousAnnotation':_0x506495['get'](_0x3663aa-0x1),'nextAnnotation':_0x506495['get'](_0x3663aa+0x1)}),_0x3a4428===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x506495,'focus',(_0x122226,_0x4e8915)=>{this['setActiveAnnotation'](_0x4e8915);}),this['listenTo'](_0x506495,'blur',()=>{this['setActiveAnnotation'](null);});const _0x27fd36=this['context']instanceof _0x3b8b32?this['context']['editors']:new _0x3dfde1([this['context']]);for(const _0x37e1be of _0x27fd36)this['_integrateWithEditorAnnotations'](_0x37e1be);this['listenTo'](_0x27fd36,'add',(_0x56c8c3,_0x590c1a)=>{this['listenTo'](_0x590c1a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x590c1a);});}),this['listenTo'](_0x27fd36,'remove',(_0x5cd96b,_0x2a51c0)=>{_0x2a51c0['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2a51c0['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x46877c('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x50f4e1=this['context']['plugins']['get'](z);_0x50f4e1['_detachFromContainer'](this['annotations']),this['stopListening'](_0x50f4e1),this['stopListening'](this['annotations']),this['context']instanceof _0x3b8b32&&this['stopListening'](this['context']['editors']);for(const _0x36bd5d of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x36bd5d);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1a8b92){if(!_0x1a8b92['plugins']['has']('EditorAnnotations'))return;const _0x25ee86=_0x1a8b92['plugins']['get']('EditorAnnotations'),_0x27e9fa=()=>{const _0x486a51=_0x25ee86['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x486a51[0x0]||null);};this['listenTo'](_0x25ee86,'refresh',_0x27e9fa),this['listenTo'](_0x25ee86,'blur',(_0x2ed375,{isAnnotationTracked:_0xcb4f59})=>{this['activeAnnotation']&&_0xcb4f59(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x25ee86,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x2855fc=>{_0x25ee86['hasDomSelection']()&&(_0x27e9fa(),_0x2855fc['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x25ee86);}['_destroyEditorAnnotationsIntegration'](_0x1280e2){this['stopListening'](_0x1280e2),this['_editorAnnotations']['remove'](_0x1280e2);}}class D extends _0xa58164{['counterView'];constructor(_0x38babf){super(_0x38babf);const _0x1df9cc=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x40f782,_0xff6251)=>_0x40f782?'...':_0xff6251['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',_0x1df9cc['to']('annotationType',_0x5910f2=>'ck-annotation-counter__badge--'+_0x5910f2),_0x1df9cc['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1df9cc['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x33e9d1{['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(_0x37c73a){super(_0x37c73a),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x1bd456),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x3dfde1(),this['_refreshPositioningDebounced']=_0x413e06(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x5880c8(this['context']['locale']),this['balloonPanelView']=new _0x11bdb4(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x8c78b3){this['annotations']=_0x8c78b3;const _0x200dcf=this['context']['plugins']['get'](z),_0xe8676b=this['balloonPanelView'];if(_0x200dcf['_annotations']=_0x8c78b3,this['isAttached'])throw new _0x46877c('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x200dcf,'set:container',()=>{this['detach'](),this['listenTo'](_0x200dcf,'change:container',_0x534170=>{_0x534170['off'](),this['attach'](_0x8c78b3);});}),_0x200dcf['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x52da0f=_0x557a98=>{const _0x3ae7ce=new D(this['context']['locale']);_0x200dcf['addAnnotation'](_0x557a98,_0x3ae7ce),this['_annotationToNarrowView']['set'](_0x557a98,_0x3ae7ce),_0x3ae7ce['bind']('isDirty','annotationType','number')['to'](_0x557a98['view'],'isDirty','type','length'),_0x3ae7ce['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0xe8676b['content']['first']!==_0x557a98['view']?(this['_showBalloon'](_0x557a98),_0x557a98['view']['element']['focus'](),this['setActiveAnnotation'](_0x557a98)):this['setActiveAnnotation'](null);});};for(const _0xf84e1 of _0x8c78b3)_0x52da0f(_0xf84e1);this['listenTo'](_0x8c78b3,'add',(_0x3dcbf,_0x30d6f7)=>{_0x52da0f(_0x30d6f7);}),this['listenTo'](_0x8c78b3,'remove',(_0x2454c9,_0x1ae82b,_0x491646)=>{this['_annotationToNarrowView']['get'](_0x1ae82b)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1ae82b),_0x200dcf['rearrange']({'removedAnnotation':_0x1ae82b,'previousAnnotation':_0x8c78b3['get'](_0x491646-0x1),'nextAnnotation':_0x8c78b3['get'](_0x491646+0x1)}),_0x1ae82b===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x8c78b3,'focus',(_0x147fb3,_0xd41f98)=>{this['setActiveAnnotation'](_0xd41f98);}),this['listenTo'](_0x8c78b3,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x24d344,_0x1e6254)=>{_0x1e6254['keyCode']===_0x473d67['esc']&&_0xe8676b['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0xe8676b['content']['first']),this['_hideBalloon'](),_0x1e6254['stopPropagation'](),_0x1e6254['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x2b1c3c,_0x31b91f)=>{const _0x52c620=_0x31b91f['target'];_0xe8676b['isVisible']&&_0xe8676b['element']['contains'](_0x52c620)||_0x200dcf['view']['element']['contains'](_0x52c620)||_0x2b1c3c['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x56a0df=>_0x56a0df['contains'](_0x52c620))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x5ae847=this['context']instanceof _0x3b8b32?this['context']['editors']:new _0x3dfde1([this['context']]);for(const _0x11777f of _0x5ae847)this['_integrateWithEditorAnnotations'](_0x11777f);this['listenTo'](_0x5ae847,'add',(_0x42bad9,_0x2384b5)=>{this['listenTo'](_0x2384b5,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2384b5);});}),this['listenTo'](_0x5ae847,'remove',(_0x19ba67,_0x1ab57a)=>{_0x1ab57a['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1ab57a['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x39e716){if(_0x39e716===this['activeAnnotation'])return;const _0x1e2e36=this['context']['plugins']['get'](z);if(_0x1e2e36['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x39e716,'disableAnimationOnActivatedAnnotation':!0x0}),_0x39e716)_0x1e2e36['getSidebarItemView'](_0x39e716)?this['_showBalloon'](_0x39e716):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x39e716;}['detach'](){if(!this['isAttached'])throw new _0x46877c('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x39b6f6=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0xb40b53=>_0xb40b53['destroy']()),this['_annotationToNarrowView']['clear'](),_0x39b6f6['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x3b8b32&&this['stopListening'](this['context']['editors']);for(const _0x1f0e99 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1f0e99);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'](_0x50a0bd){if(!_0x50a0bd['plugins']['has']('EditorAnnotations'))return;const _0x5c6658=_0x50a0bd['plugins']['get']('EditorAnnotations'),_0x1f9e1d=this['context']['plugins']['get'](z),_0xc84873=this['annotations'],_0x534c55=this['balloonPanelView'],_0x632140=()=>{const _0x29fa3f=_0x5c6658['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x29fa3f),this['setActiveAnnotation'](_0x29fa3f[0x0]||null);};this['listenTo'](_0x5c6658,'refresh',_0x632140),this['listenTo'](_0x5c6658,'blur',(_0x436bf8,{isAnnotationTracked:_0x3f8b22})=>{this['activeAnnotation']&&_0x3f8b22(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x5c6658,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0xc84873,'blur',_0x21c8d=>{_0x5c6658['hasDomSelection']()&&_0x21c8d['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x305f34,_0x41a0fa)=>{const _0x467df1=_0x41a0fa['target'];_0x534c55['isVisible']&&_0x534c55['element']['contains'](_0x467df1)||_0x1f9e1d['view']['element']['contains'](_0x467df1)||this['activeAnnotation']&&_0x5c6658['hasDomSelection']()&&(_0x632140(),_0x305f34['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x5c6658);}['_destroyEditorAnnotationsIntegration'](_0x469e8f){_0x469e8f&&(this['stopListening'](_0x469e8f),this['_editorAnnotations']['remove'](_0x469e8f));}['_setSelectedAnnotations'](_0x15207c){for(const _0x16abac of this['_selectedAnnotations'])_0x15207c['includes'](_0x16abac)||this['_manuallyClosedAnnotationViews']['delete'](_0x16abac['view']);this['_selectedAnnotations']=_0x15207c;}['_refreshPositioning'](){const _0x339b9e=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x339b9e['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x250ee0){if(this['_manuallyClosedAnnotationViews']['has'](_0x250ee0['view']))return;const _0x954bee=this['balloonPanelView']['content']['first'];_0x954bee!==_0x250ee0['view']?(_0x954bee&&this['_detachListeners'](_0x954bee),this['_attachListeners'](_0x250ee0['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x250ee0['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x50fcd5=this['balloonPanelView']['content']['first'],_0x29515b=_0x50fcd5&&this['annotations']['getByView'](_0x50fcd5);if(!_0x29515b||!this['_annotationToNarrowView']['has'](_0x29515b))return;const _0x3309c0=this['_annotationToNarrowView']['get'](_0x29515b)['element'],_0x5bf427=(function(){const _0x23daa9=_0x11bdb4['defaultPositions'];return[_0x23daa9['southArrowNorthEast'],_0x23daa9['northArrowSouthEast'],_0x23daa9['southArrowNorth'],_0x23daa9['northArrowSouth'],_0x23daa9['southArrowNorthWest'],_0x23daa9['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x3309c0,'positions':_0x5bf427});}['_hideBalloon'](){const _0x14c381=this['balloonPanelView'],_0x225e57=_0x14c381['content']['first'];_0x225e57&&(this['_detachListeners'](_0x225e57),_0x14c381['unpin'](),_0x14c381['content']['clear']());}['_attachListeners'](_0x4f9bb2){this['listenTo'](_0x4f9bb2,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4f9bb2,'Esc',(_0x20f734,_0x43e23e)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4f9bb2),this['_hideBalloon'](),_0x43e23e();});}['_detachListeners'](_0x4abb22){this['stopListening'](_0x4abb22);}}class c extends _0x173918{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x87c948,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b581b){super(_0x5b581b),_0x5b581b['editing']['view']['addObserver'](_0x4889c7),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x5b581b['plugins']['get'](_0x87c948),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x2acaf1=this['editor']['plugins']['get'](M);_0x2acaf1['context']===this['editor']&&(_0x2acaf1['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x5237a3,_0x5d1797)=>{const _0x316782=this['_balloon'];if(this['isAttached']&&_0x316782['visibleView']){const _0x19a019=this['annotations']['getByView'](_0x316782['visibleView']);_0x19a019&&this['_closeAnnotation'](_0x19a019),_0x5d1797();}}));}['afterInit'](){const _0x238ead=this['editor']['plugins']['get'](M);_0x238ead['context']===this['editor']&&(_0x238ead['hasActive']()||_0x238ead['switchTo']('inline'));}['setActiveAnnotation'](_0x589681){_0x589681!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x589681&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x589681)&&this['_addAnnotationToBalloon'](_0x589681,!0x0),_0x589681['isActive']=!0x0),_0x589681||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x589681);}['attach'](_0x26b873){this['annotations']=_0x26b873;const _0x4329d7=this['editor']['plugins']['get'](M),_0x258de6=this['_balloon'];if(this['isAttached'])throw new _0x46877c('inlineannotations-attach-already-attached',this);if(_0x4329d7['context']!==this['editor'])throw new _0x46877c('inlineannotations-not-allowed-with-context',this);const _0x53eeb3=this['editor']['plugins']['get'](P);this['listenTo'](_0x53eeb3,'refresh',()=>{const _0x1fcc58=_0x53eeb3['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x567141,_0x9189c3;!this['_forceRefresh']&&(_0x567141=_0x1fcc58,_0x9189c3=this['_selectedAnnotations'],_0x567141['length']===_0x9189c3['length']&&_0x567141['every'](_0x12557a=>_0x9189c3['includes'](_0x12557a)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x1fcc58),this['setActiveAnnotation'](_0x1fcc58[0x0]||null));}),this['listenTo'](_0x53eeb3,'blur',(_0x59ed8f,{isAnnotationTracked:_0x4ad8df})=>{this['activeAnnotation']&&_0x4ad8df(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x294ecb,_0x10a4e4,_0x16955a)=>{_0x16955a||this['setActiveAnnotation'](null);}),this['listenTo'](_0x26b873,'remove',(_0x4eaceb,_0x263e01)=>{this['_removeAnnotationFromBalloon'](_0x263e01),_0x263e01===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x258de6,'change:visibleView',(_0x5a2cc2,_0x16b746,_0x21dbc1,_0x10abf2)=>{_0x10abf2&&this['stopListening'](_0x10abf2);const _0x2ebb68=_0x26b873['getByView'](_0x21dbc1);_0x21dbc1&&_0x2ebb68&&(this['listenTo'](_0x21dbc1,'change:height',()=>{_0x258de6['updatePosition']();}),this['listenTo'](_0x21dbc1,'Esc',()=>{this['_closeAnnotation'](_0x2ebb68),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x2ebb68&&this['setActiveAnnotation'](_0x2ebb68));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x258de6['visibleView']&&(_0x26b873['getByView'](_0x258de6['visibleView'])&&_0x258de6['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 _0x46877c('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x3afddc of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x3afddc);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x4473ea){for(const _0x3ed477 of this['_selectedAnnotations'])_0x4473ea['includes'](_0x3ed477)||this['_manuallyClosed']['delete'](_0x3ed477);for(const _0x565fd7 of this['annotations'])_0x4473ea['includes'](_0x565fd7)||this['_removeAnnotationFromBalloon'](_0x565fd7);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4bd126 of _0x4473ea)this['_addAnnotationToBalloon'](_0x4bd126);}this['_selectedAnnotations']=_0x4473ea;}['_addAnnotationToBalloon'](_0x4c6ab8,_0x10105a=!0x1){this['_manuallyClosed']['has'](_0x4c6ab8)||(this['_addedAnnotations']['has'](_0x4c6ab8)||this['_balloon']['hasView'](_0x4c6ab8['view'])||(this['_addedAnnotations']['add'](_0x4c6ab8),this['_balloon']['add']({'stackId':_0x4c6ab8['view']['id'],'view':_0x4c6ab8['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x4c6ab8)}})),_0x10105a&&this['_balloon']['showStack'](_0x4c6ab8['view']['id']));}['_getBalloonTargetForAnnotation'](_0x143959){const _0x5665f3=_0x143959['target'],_0x2fbf24=this['editor']['editing']['view'],_0x37918c=_0x2fbf24['document']['selection']['getFirstRange'](),_0x4dbe67=_0x2fbf24['domConverter']['viewRangeToDom'](_0x37918c);if(_0x4dbe67['collapse'](!0x0),_0x5665f3){if(_0x5665f3 instanceof _0x161667)return _0x5665f3;let _0x2a52d3=[];for(const _0x157e61 of _0x5665f3)_0x2a52d3['push'](...(_0x1dd3b6=_0x157e61['getClientRects'](),Array['from'](_0x1dd3b6)['map'](DOMRect['fromRect'])));_0x2a52d3=function(_0x252663){const _0x15792e=[];let _0x58c82d=_0x252663[0x0];for(let _0x694d31=0x1;_0x694d31<_0x252663['length'];_0x694d31++)b(_0x58c82d,_0x252663[_0x694d31])?_0x58c82d['width']+=_0x252663[_0x694d31]['width']:(_0x15792e['push'](_0x58c82d),_0x58c82d=_0x252663[_0x694d31]);return _0x15792e['push'](_0x58c82d),_0x15792e;}(_0x2a52d3);const _0x3cfe39=_0x4dbe67['getBoundingClientRect']();return _0x2a52d3['find'](_0x3bede7=>_0x3bede7['top']<=_0x3cfe39['top']&&_0x3bede7['bottom']>=_0x3cfe39['bottom']&&_0x3bede7['left']<=_0x3cfe39['left']&&_0x3bede7['right']>=_0x3cfe39['right'])||_0x2a52d3[0x0];}var _0x1dd3b6;return _0x143959['targetRect']||_0x4dbe67;}['_removeAnnotationFromBalloon'](_0x29e193){this['_addedAnnotations']['has'](_0x29e193)&&this['_balloon']['hasView'](_0x29e193['view'])&&(this['_addedAnnotations']['delete'](_0x29e193),this['_balloon']['remove'](_0x29e193['view']));}['_closeAnnotation'](_0x42e346){this['_manuallyClosed']['add'](_0x42e346),this['_removeAnnotationFromBalloon'](_0x42e346);}}function b(_0x15d49c,_0x1e5015){return _0x15d49c['top']===_0x1e5015['top']&&_0x15d49c['bottom']===_0x1e5015['bottom']&&_0x15d49c['right']===_0x1e5015['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(_0x555665,_0x1397ac){super(_0x555665),this['set']('isEmpty',!_0x1397ac['length']),this['focusTracker']=new _0x49c33c(),this['_annotationViews']=_0x1397ac,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x1397ac,'focusTracker':this['focusTracker']}),this['listenTo'](_0x1397ac,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x1397ac,'remove',(_0x53a2ba,_0x3c3f19)=>{_0x3c3f19['isActive']&&this['focus'](),_0x1397ac['length']||(this['isEmpty']=!0x0);});const _0x59b44e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x555665,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x1397ac},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x59b44e['if']('isEmpty','ck-hidden',_0x2df7c8=>!_0x2df7c8)]},'children':[{'text':S(_0x555665,'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 _0x2202a6 of this['_annotationViews'])this['focusTracker']['add'](_0x2202a6['element']);this['_annotationViews']['on']('change',(_0x188192,{added:_0x3975f9,removed:_0x1b9a4f})=>{for(const _0x8341fb of _0x3975f9)this['focusTracker']['add'](_0x8341fb['element']);for(const _0x4ade2f of _0x1b9a4f)this['focusTracker']['remove'](_0x4ade2f['element']);});}}class f extends _0x33e9d1{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x350330){super(_0x350330),this['archivedThreads']=new _0x3dfde1();}['init'](){const _0x2309e1=this['context'],_0x115a94=_0x2309e1['plugins']['get'](o),_0x560b18=_0x2309e1['plugins']['get'](N);this['listenTo'](_0x115a94,'addCommentThread',(_0x2f1856,{threadId:_0x55ff18})=>{const _0x378222=_0x115a94['getCommentThread'](_0x55ff18);_0x378222['archivedAt']&&this['archivedThreads']['add'](_0x378222,this['_calculatePosition'](_0x378222['archivedAt'])),this['listenTo'](_0x378222,'change:archivedAt',(_0x4df45a,_0x5a9782,_0x4fcdd4)=>{_0x4fcdd4?this['archivedThreads']['has'](_0x378222)||this['archivedThreads']['add'](_0x378222,this['_calculatePosition'](_0x378222['archivedAt'])):this['archivedThreads']['has'](_0x378222)&&this['archivedThreads']['remove'](_0x378222);});}),this['listenTo'](_0x115a94,'removeCommentThread',(_0x3b4448,{threadId:_0x294487})=>{const _0x32d8df=_0x115a94['getCommentThread'](_0x294487);this['stopListening'](_0x32d8df),this['archivedThreads']['has'](_0x32d8df)&&this['archivedThreads']['remove'](_0x32d8df);},{'priority':'highest'}),this['listenTo'](_0x560b18['collection'],'focus',(_0x186b8e,_0x4419b5)=>{_0x4419b5['isVisible']||(_0x4419b5['isActive']=!0x0,_0x560b18['activate'](_0x4419b5));});}['_calculatePosition'](_0x4db83c){const _0x5e76c5=[...this['archivedThreads']]['findIndex'](_0x18fd2d=>_0x18fd2d['archivedAt']<_0x4db83c);return _0x5e76c5>-0x1?_0x5e76c5:this['archivedThreads']['length'];}}class a extends _0x173918{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x340f84];}constructor(_0x29739d){super(_0x29739d),this['annotationViews']=new _0x3eb844(),this['_pendingThreads']=[];}['init'](){const _0x8f4df9=this['editor'],_0x379211=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x8f4df9['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0xa58164,!0x0)),_0x8f4df9['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x45e82f=this['_createCommentsArchiveButton'](_0x5ee2d0);return _0x45e82f['set']({'role':'menuitemcheckbox'}),_0x45e82f;});const _0x1f835f=_0x8f4df9['plugins']['get'](f),_0x36ca72=_0x8f4df9['plugins']['get']('Annotations'),_0x50af3d=_0x8f4df9['plugins']['get']('CommentsRepository');_0x1f835f['archivedThreads']['forEach'](_0x22612c=>{this['_handleNewThread'](_0x22612c);}),this['listenTo'](_0x1f835f['archivedThreads'],'add',(_0x199277,_0x504b76)=>{this['_handleNewThread'](_0x504b76);}),this['listenTo'](_0x36ca72['collection'],'add',(_0x53ede8,_0x37077b)=>{const _0x598bea=this['_pendingThreads']['find'](_0x209755=>{const _0x25c7d9=_0x50af3d['_threadToController']['get'](_0x209755);return _0x25c7d9&&_0x37077b['innerView']===_0x25c7d9['view'];});if(_0x598bea){const _0x4946a0=this['_calculatePosition'](_0x598bea['archivedAt']);this['annotationViews']['add'](_0x37077b['view'],_0x4946a0),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x598bea),0x1);}}),this['listenTo'](_0x1f835f['archivedThreads'],'remove',(_0x4b5d5a,_0x52468f)=>{const _0x4a5473=_0x8f4df9['config']['get']('collaboration.channelId');if(!_0x4a5473||_0x52468f['channelId']===_0x4a5473){const _0x12770c=_0x50af3d['_threadToController']['get'](_0x52468f),_0x4180bc=_0x36ca72['getByInnerView'](_0x12770c['view']);this['annotationViews']['remove'](_0x4180bc['view']),this['stopListening'](_0x4180bc['focusableElements']);}}),this['listenTo'](_0x36ca72['collection'],'add',(_0x319542,_0x313755)=>{this['listenTo'](_0x313755,'escape',_0x379211);}),this['listenTo'](_0x36ca72['collection'],'remove',(_0x567e4e,_0x78c735)=>{this['stopListening'](_0x78c735,'escape',_0x379211);});}['_handleNewThread'](_0x1de1f4){const _0x281e3c=this['editor']['plugins']['get']('CommentsRepository'),_0x1900cb=this['editor']['plugins']['get']('Annotations'),_0xcbc44b=this['editor']['config']['get']('collaboration.channelId');if(!_0xcbc44b||_0x1de1f4['channelId']===_0xcbc44b){const _0x1b144e=_0x281e3c['_threadToController']['get'](_0x1de1f4);if(!_0x1b144e)return void this['_pendingThreads']['push'](_0x1de1f4);const _0x5da154=this['_calculatePosition'](_0x1de1f4['archivedAt']),_0x4b37ae=_0x1900cb['getByInnerView'](_0x1b144e['view']);_0x4b37ae['isVisible']&&_0x1900cb['_visibleAnnotations']['remove'](_0x4b37ae),this['annotationViews']['add'](_0x4b37ae['view'],_0x5da154);}}['_calculatePosition'](_0x4993cb){const _0x4951a1=this['editor']['config']['get']('collaboration.channelId'),_0x2b9822=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x29d0c8=>_0x29d0c8['channelId']===_0x4951a1)['findIndex'](_0x16b22a=>_0x16b22a['archivedAt']<_0x4993cb);return _0x2b9822<0x0||_0x2b9822>this['annotationViews']['length']?this['annotationViews']['length']:_0x2b9822-0x1;}['_toggleDialog'](){const _0x3bf402=this['editor'],_0x12d56d=_0x3bf402['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x3bf402['locale'],this['annotationViews'])),'commentsArchive'===_0x12d56d['id']?_0x12d56d['hide']():_0x12d56d['show']({'id':'commentsArchive','title':S(_0x3bf402['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0xb6be1['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x381051,_0x2c1de4=!0x1){const _0x535356=this['editor']['locale'],_0x539ff1=this['editor']['plugins']['get']('Dialog'),_0x1a1f02=new _0x381051(_0x535356);return _0x1a1f02['bind']('isEnabled')['to'](this,'isEnabled'),_0x1a1f02['bind']('isOn')['to'](_0x539ff1,'id',_0x1ec7b7=>'commentsArchive'===_0x1ec7b7),_0x1a1f02['set']({'label':S(_0x535356,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x2c1de4&&(_0x1a1f02['tooltip']=!0x0),this['listenTo'](_0x1a1f02,'execute',()=>this['_toggleDialog']()),_0x1a1f02;}['_hideDialogOnAnnotationEscape']=_0x2cae62=>{const _0x1010ff=_0x2cae62['source'];if(!this['annotationViews']['has'](_0x1010ff['view']))return;const _0x5c7a42=this['editor']['plugins']['get']('Dialog');_0x5c7a42['isOpen']&&'commentsArchive'===_0x5c7a42['id']&&(_0x5c7a42['hide'](),_0x2cae62['stop']());};}class p extends _0x173918{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 _0x20caa5,icons as _0x43d847,ContextPlugin as _0x116717,PendingActions as ht,Command as _0x152bdf,Plugin as _0x2e0f95,Context as _0x36db86}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x2050f1,uid as _0x29dbf2,KeystrokeHandler as jt,FocusTracker as _0x7eedc7,diff as _0x3ac489,Collection as _0x28280b,Rect as _0x107475,CKEditorError as _0x38a082,first as _0xc495b8,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0xce5bed,keyCodes as _0x36516c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x282181,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x21d6e9,ConfirmMixin as ti,LateFocusButtonView as _0x891221,trimHtml as _0x279400,LateFocusDropdownButtonView as _0x2b412f,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x4591d8}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0xe850d8}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x33cfdf,ViewCollection as _0x35bed3,createDropdown as _0x529455,ListView as _0x374ebe,focusChildOnDropdownOpen as _0x5e550a,ListItemView as _0x3f4b66,MenuBarMenuListItemButtonView as _0x568100,BodyCollection as _0x2b26c4,BalloonPanelView as _0x16e3e1,ContextualBalloon as _0x9b9fa3,Dialog as _0x15a48a,DialogViewPosition as _0x354aa5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x4a6627}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 _0x47e0fb}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x434054}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2050f1(){['model'];['view'];constructor(_0x40ae20,_0x3d9cf7){super(),this['model']=_0x40ae20,this['model']['_isAttached']=!0x0,this['view']=_0x3d9cf7,this['listenTo'](_0x3d9cf7,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x3d9cf7,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x3d9cf7,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x3d9cf7,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x3d9cf7,'addComment',(_0x58a127,_0x3eca61)=>this['addComment'](_0x3eca61)),this['listenTo'](_0x3d9cf7,'updateComment',(_0x4b2510,_0x577b75,_0xca3e68)=>this['updateComment'](_0x577b75,_0xca3e68)),this['listenTo'](_0x3d9cf7,'removeComment',(_0xd305bd,_0x14966e)=>this['removeComment'](_0x14966e));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x499862){this['model']['addComment']({'content':_0x499862,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3c1ff9,_0x59fb87){this['model']['getComment'](_0x3c1ff9)['update']({'content':_0x59fb87});}['removeComment'](_0x44a200){this['model']['getComment'](_0x44a200)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0xc2ccfb,_0x2ab923,_0x2af013){const t=_0xc2ccfb['t'];switch(_0x2ab923){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'},_0x2af013);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'},_0x2af013);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'},_0x2af013);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'},_0x2af013);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2af013);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'},_0x2af013);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'},_0x2af013);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'},_0x2af013);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(_0xbdcc5f,_0xef3ead){super(_0xbdcc5f);const _0x469ed6=_0x29dbf2();this['main']=this['createCollection'](),this['editable']=new $t(_0xbdcc5f,_0xef3ead,void 0x0,{'label':()=>S(_0xbdcc5f,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xbdcc5f['uiLanguageDirection'],'lang':_0xbdcc5f['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x469ed6},'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(_0x1dbe63){super(_0x1dbe63),this['view']=new Xt(_0x1dbe63['locale'],_0x1dbe63['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3bd9bf=this['editor']['editing']['view'],_0x296283=this['view']['editable'],_0x3b18a2=_0x3bd9bf['document']['getRoot']();_0x296283['name']=_0x3b18a2['rootName'],this['view']['render']();const _0xf44fa1=_0x296283['element'];this['setEditableElement'](_0x296283['name'],_0xf44fa1),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3bd9bf['attachDomRoot'](_0xf44fa1),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2050f1(_0x20caa5){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Rt)());constructor(_0x39679e={}){function _0x1bba1b(_0x23baa8){return _0x23baa8['map'](_0x304c12=>String['fromCharCode'](_0x304c12))['join']('');}(_0x39679e=Object['assign']({},_0x39679e))['plugins']||(_0x39679e['plugins']=Ut['defaultPlugins']),super(_0x39679e),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[_0x1bba1b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bba1b([0x76,0x69,0x65,0x77])][_0x1bba1b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bba1b([0x61,0x75,0x74,0x6f]),this[_0x1bba1b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1bba1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bba1b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1bba1b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1bba1b([0x6f,0x6b])});}['create'](){const _0x5b74d0=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5b74d0))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x385b27=>{const _0xe5dad2=this['model']['document']['getRoot'](),_0x10ea6d=_0xe5dad2&&_0xe5dad2['getChild'](_0xe5dad2['childCount']-0x1);_0x385b27['setSelection'](_0x10ea6d,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x4c04a8=this['editing']['view'],_0x7c2f40=_0x4c04a8['document']['getRoot'](),_0xc1cad7=_0x7c2f40['getChild'](0x0);_0x7c2f40['childCount']>0x1||!_0xc1cad7||'p'!=_0xc1cad7['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x4c04a8,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0xc1cad7['placeholder']=this['placeholder']),St({'view':_0x4c04a8,'element':_0xc1cad7,'keepOnFocus':!0x0}),this['placeholderElement']=_0xc1cad7);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x2e27f3,_0x5d292f={}){super(_0x2e27f3),this['editor']=null,this['_editorConfig']=_0x5d292f,this['set']('value',_0x5d292f['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x2e27f3,'Reply...')),this['set']('submitLabel',S(_0x2e27f3,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x7eedc7(),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',(_0x35d0c9,_0x9b97f9)=>{this['cancelButtonView']['fire']('execute'),_0x9b97f9();}),this['keystrokes']['set']('Ctrl+Enter',(_0x15986d,_0x14e684)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x14e684());}),this['on']('submit',(_0x1c4836,_0x105c43)=>{_0x105c43['length']>0xfde8?(alert(S(_0x2e27f3,'TOO_LONG_COMMENT_ALERT',[_0x105c43['length'],0xfde8])),_0x1c4836['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 _0x102851=this['editor'];this['element']['insertBefore'](_0x102851['ui']['element'],this['element']['firstChild']),_0x102851['model']['document']['on']('change',()=>this['value']=_0x102851['getData']()),_0x102851['bind']('placeholder')['to'](this),this['focusables']['add'](_0x102851['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x373923){-0x1===_0x373923?(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:_0x1d0dab}=this,_0x5546a5=new _0x33cfdf(_0x1d0dab);return _0x5546a5['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x5546a5['withText']=!0x0,_0x5546a5['bind']('label')['to'](this,'submitLabel'),_0x5546a5['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x5546a5['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x380b44,_0x9710b5)=>!_0x9710b5&&!!_0x380b44['trim']()),_0x5546a5;}['_createCancelButton'](){const {locale:_0x4a2bb3}=this,_0xd6ebed=new _0x33cfdf(_0x4a2bb3);return _0xd6ebed['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xd6ebed['label']=S(_0x4a2bb3,'Cancel'),_0xd6ebed['withText']=!0x0,_0xd6ebed['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0xd6ebed;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x44ac57=>{this['focusTracker']['add'](_0x44ac57['element']);}),this['focusables']['on']('change',(_0x132dba,_0x15c6f5)=>{for(const _0xf43f07 of Array['from'](_0x15c6f5['added'])['reverse']())this['focusTracker']['add'](_0xf43f07['element']);});}}class ie extends kt{constructor(_0x20b1e7,_0x503f92,_0x7b9941){super(_0x20b1e7),this['commentInputView']=new os(_0x20b1e7,_0x7b9941),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1387be,_0x365056)=>_0x1387be||!!_0x365056),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 _0x282181(_0x20b1e7,_0x503f92),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'](_0x910c50){this['commentInputView']['focus'](_0x910c50);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x3a621f,_0x109aa2)=>{const {submitButtonView:_0xeffd74,cancelButtonView:_0x4259bc,editor:_0x29e152}=this['commentInputView'];[_0xeffd74['element'],_0x4259bc['element'],_0x29e152?_0x29e152['editing']['view']['getDomRoot']():null]['filter'](_0x2c8094=>_0x2c8094)['some'](_0xf0e17c=>_0xf0e17c['contains'](_0x109aa2['target']))||(this['focus'](),_0x109aa2['preventDefault']());});}}class cs extends kt{constructor(_0x15cf39){super(_0x15cf39);const _0x485d01=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x485d01['to']('count',_0x196e3f=>S(_0x15cf39,'NUMBER_OF_COMMENTS',_0x196e3f))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0xdb6da1,_0x4444b0,_0x516604){super(_0xdb6da1);const _0x372a70=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x4444b0['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x4444b0,this['_config']=_0x516604,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x7eedc7(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x54eb59=>this['commentViews']['map'](_0x4a04d2=>_0x4a04d2['element'])['includes'](_0x54eb59['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0xdb6da1),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x5914b1=>_0x5914b1-this['_config']['maxCommentsWhenCollapsed']);for(const _0x255ef5 of _0x4444b0['comments'])this['_handleNewCommentModel'](_0x255ef5);this['_handleInfoComment'](),this['listenTo'](_0x4444b0['comments'],'add',(_0x158293,_0x2090bc)=>{const _0x5be411=this['_calculatePosition'](_0x2090bc);this['length']++,this['_handleNewCommentModel'](_0x2090bc,_0x5be411),this['refreshVisibleViews']();}),this['listenTo'](_0x4444b0['comments'],'remove',(_0xe0eb8c,_0x230793)=>{this['length']--,this['_handleRemoveCommentModel'](_0x230793),this['refreshVisibleViews']();}),this['listenTo'](_0x4444b0,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x4444b0,'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',_0x372a70['if']('length','ck-hidden',_0x292d95=>!_0x292d95)],'aria-label':S(_0xdb6da1,'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'](_0xc075){-0x1===_0xc075?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x19327e of this['commentViews'])_0x19327e['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x2de25e,_0x19acef){const _0x217f6f=new this['_config']['CommentView'](this['locale'],_0x2de25e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x217f6f['viewUid']=_0x2de25e['id'],_0x217f6f['delegate']('removeComment')['to'](this),_0x217f6f['delegate']('updateComment')['to'](this),_0x217f6f['delegate']('resolveCommentThread')['to'](this),_0x217f6f['delegate']('editorReady')['to'](this),_0x217f6f['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x217f6f,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x217f6f,_0x19acef);}['_calculatePosition'](_0x2f2737){const _0x5ea112=this['_model']['_findOptimalIndex'](_0x2f2737);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2f2737['authoredAt']?_0x5ea112-0x1:_0x5ea112:_0x5ea112-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x5173ef={'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'],_0x5173ef,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x5173ef));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x49c5b7){const _0x384825=this['commentViews']['remove'](_0x49c5b7['id']);this['stopListening'](_0x384825),_0x384825['isEditMode']&&this['_updateHasDirtyComment'](),_0x384825['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x485bad=>_0x485bad['isEditMode']);}['_rearrangeCollapse'](){const _0x1626ca=function(_0x532bcb){const _0x50daa9=new _0x28280b();for(const _0x41c6a8 of _0x532bcb)_0x50daa9['add'](_0x41c6a8);return _0x50daa9;}(this['commentViews']),_0xfc60af=this['_collapsedCommentsView']['count'];for(let _0x461610=0x1;_0x461610<=_0xfc60af;_0x461610++)_0x1626ca['remove'](0x1);for(const _0x3a3f49 of _0x1626ca)_0x3a3f49['collapse']();_0xfc60af>0x0&&_0x1626ca['add'](this['_collapsedCommentsView'],0x1),as(_0x3ac489(Array['from'](this['visibleViews']),Array['from'](_0x1626ca)),this['visibleViews'],_0x1626ca);}['_rearrangeExpand'](){as(_0x3ac489(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x48f31e of this['visibleViews'])_0x48f31e['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x1cd485=>{this['focusTracker']['add'](_0x1cd485['element']),this['keystrokes']['listenTo'](_0x1cd485['element']);}),this['commentViews']['on']('change',(_0x586de2,_0xe2f987)=>{for(const _0x12ff99 of _0xe2f987['removed'])this['focusTracker']['remove'](_0x12ff99['element']),this['keystrokes']['stopListening'](_0x12ff99['element']);for(const _0x1ada54 of Array['from'](_0xe2f987['added'])['reverse']())this['focusTracker']['add'](_0x1ada54['element']),this['keystrokes']['listenTo'](_0x1ada54['element']);});}}function as(_0x1d6ff4,_0x47d309,_0x460dfa){let _0x597767=0x0;for(const _0x287ec7 of _0x1d6ff4)switch(_0x287ec7){case'insert':_0x47d309['add'](_0x460dfa['get'](_0x597767),_0x597767),_0x597767++;break;case'delete':_0x47d309['remove'](_0x597767);break;case'equal':_0x597767++;}}class ls extends kt{constructor(_0x3dd8f3){super(_0x3dd8f3);const _0x1e08c0=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1e08c0['to']('contextValue',_0x1558a8=>S(_0x3dd8f3,'THREAD_CONTEXT_LABEL',_0x1558a8)),'tabindex':-0x1},'children':[{'text':_0x1e08c0['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xa3e11c,_0x478e8d){super(_0xa3e11c);const _0x16c02c=this['bindTemplate'];this['_model']=_0x478e8d,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x7eedc7(),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',_0x5cd2ca=>!!_0x5cd2ca),this['bind']('contextValue')['to'](this['_model'],'context',_0x4d3187=>_0x4d3187&&_0x4d3187['value']?this['_trimContextValue'](_0x4d3187['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',_0x16c02c['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 _0x3a91ed=new _0x33cfdf(this['locale']);return _0x3a91ed['label']=S(this['locale'],'Reopen'),_0x3a91ed['tooltip']=S(this['locale'],'Reopen'),_0x3a91ed['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>',_0x3a91ed['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1a4b3c=>!_0x1a4b3c),_0x3a91ed['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x36bbf5,_0x3683b0)=>_0x36bbf5&&_0x3683b0),_0x3a91ed['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3a91ed;}['_trimContextValue'](_0x38d31b){if(_0x38d31b['length']<0x96)return _0x38d31b;const _0x58b67e=_0x38d31b['lastIndexOf']('\x20',0x93);return _0x38d31b['substring'](0x0,_0x58b67e>-0x1?_0x58b67e:0x93)+'...';}['_attachContextActions'](){const _0x4c5f31=this['element']['querySelector']('.ck-context'),_0xa0abc8=_0x4c5f31['querySelector']('.ck-context__value');this['listenTo'](_0x4c5f31,'mouseenter',()=>{_0xa0abc8['offsetWidth']<_0xa0abc8['scrollWidth']&&_0x4c5f31['classList']['add']('overlay');}),this['listenTo'](_0x4c5f31,'mouseleave',()=>{_0x4c5f31['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x770c68 of this['focusables'])this['focusTracker']['add'](_0x770c68['element']),this['keystrokes']['listenTo'](_0x770c68['element']);}['_createContextView'](){const _0x2fdbf2=new ls(this['locale']);return _0x2fdbf2['bind']('contextValue')['to'](this),_0x2fdbf2;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x16b527,_0x234152,_0x1c0a7d,_0x33e5d8){super(_0x16b527),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x234152,this['_localUser']=_0x1c0a7d,this['_config']=_0x33e5d8,this['commentThreadHeaderView']=new Zt(_0x16b527,_0x234152),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x16b527,S(_0x16b527,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x16b527,_0x234152,Object['assign']({'CommentView':this['_config']['CommentView']},_0x33e5d8)),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',(_0x3e6359,_0x4c7623)=>_0x3e6359||!!_0x4c7623),this['bind']('isUnlinked')['to'](_0x234152,'unlinkedAt',_0x18b61a=>!!_0x18b61a),this['bind']('ariaLabel')['to'](this,'length',_0x526df9=>{const _0x342be8=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x526df9,_0x342be8]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x7eedc7(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb1ec3e=>_0xb1ec3e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x21d6e9(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4b2a36=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5ee57b=_0x4b2a36['commentInputView'];return _0x4b2a36['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5ee57b,'value',(_0x5a1871,_0x2740f1,_0x22f2b1,_0x1b0f30,_0x5aa9b7)=>!!_0x5aa9b7||!!_0x1b0f30&&_0x22f2b1&&!_0x2740f1||_0x5a1871&&_0x22f2b1&&!_0x2740f1),_0x5ee57b['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2ed3ab,_0x3cc527,_0x28dc13)=>{let _0x341aa6;return _0x341aa6=_0x28dc13&&_0x3cc527?'Reply\x20to\x20reopen\x20discussion...':_0x2ed3ab?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x341aa6);}),_0x5ee57b['bind']('submitLabel')['to'](this,'length',_0x3223dd=>S(this['locale'],_0x3223dd?'Reply':'Comment')),_0x5ee57b['on']('submit',(_0x1d855f,_0x105ac8)=>{this['fire']('addComment',_0x105ac8),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5ee57b['on']('cancel',()=>{this['focus']();}),_0x5ee57b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5ee57b['on']('cancel',_0x24fd13=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x24fd13['stop']());}),this['on']('change:isActive',(_0x375d3a,_0x16e084,_0xac7e90)=>{_0xac7e90||this['length']||_0x5ee57b['value']||this['fire']('removeCommentThread');}),_0x4b2a36;}}class vt extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x5a7bed,_0x369381,_0x5ab3cc,_0x955c11){super(_0x5a7bed,_0x369381,_0x5ab3cc,_0x955c11),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x5a7bed,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x19477a,_0x17ecda,_0x395aa3)=>{_0x395aa3||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x3f8c2e,_0x307b7b,_0x317e14)=>{_0x317e14&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x3fcc49=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x3fcc49['if']('isActive','ck-thread--active'),_0x3fcc49['if']('isUnlinked','ck-thread--unlinked'),_0x3fcc49['if']('isConfirm','ck-thread--remove-confirmation'),_0x3fcc49['to']('actionIndicator',_0xdef686=>_0xdef686?'ck-thread--'+_0xdef686:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3fcc49['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 _0x331166 of this['commentsListView']['commentViews'])_0x331166['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x4bfc96}=this,_0x11e808=this['commentsListView']['commentViews']['get'](0x0);_0x11e808===this['_boundFirstCommentView']||_0x11e808['isSystemComment']||(this['_boundFirstCommentView']=_0x11e808,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x11e808,'actionIndicator',_0x5ddf96=>'remove'===_0x5ddf96?'remove':null),_0x11e808['placeholder']=S(_0x4bfc96,'Write\x20a\x20comment...'),_0x11e808['removeButton']['on']('execute',_0x56a0ca=>{_0x56a0ca['stop'](),this['showConfirm'](S(_0x4bfc96,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x11e808['focus']();}),_0x11e808['actionBar']['add'](this['resolveButton'],0x0),_0x11e808['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x236b2d=new _0x891221(this['locale']);return _0x236b2d['label']=S(this['locale'],'Resolve'),_0x236b2d['tooltip']=S(this['locale'],'Resolve'),_0x236b2d['icon']=_0x43d847['check'],_0x236b2d['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x236b2d['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x25b5c2=>!_0x25b5c2),_0x236b2d['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5eda35,_0x2a77d7)=>_0x5eda35&&!_0x2a77d7),_0x236b2d['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x236b2d;}['_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(_0x158e89){super(_0x158e89),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x2b18ca,_0x622d0f,_0x459620)=>{this['element']['innerHTML']=_0x459620;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x123274,_0x40949e,_0x1b0a97){super(_0x123274),this['_model']=_0x40949e,this['_config']=_0x1b0a97,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x40949e,'content',_0x40949e,'authoredAt',(_0x32dfbd,_0x3a2a0a)=>S(_0x123274,'COMMENT_ARIA_LABEL',[_0x40949e['author']['name'],_0x1b0a97['formatDateTime'](_0x3a2a0a),new DOMParser()['parseFromString'](_0x32dfbd,'text/html')['body']['textContent'],_0x40949e['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x123274,S(_0x123274,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x35bed3(),this['focusTracker']=new _0x7eedc7(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xbb05dd=>_0xbb05dd['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 _0x527a47=new hs(this['locale']);return _0x527a47['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x588c42,_0x4a023c)=>_0x4a023c?_0x279400(_0x588c42,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x588c42),_0x527a47;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x9bfebf=new os(this['locale'],this['_config']['editorConfig']);return _0x9bfebf['value']=this['_model']['content'],_0x9bfebf['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x9bfebf['submitLabel']=S(this['locale'],'Save'),_0x9bfebf['on']('submit',(_0x5d4ac6,_0x5b7005)=>{this['fire']('updateComment',this['_model']['id'],_0x5b7005),this['switchToDisplayMode'](),this['focus']();}),_0x9bfebf['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x9bfebf['once']('editorReady',()=>{_0x9bfebf['focus']();}),_0x9bfebf['createEditor'](),_0x9bfebf['delegate']('editorReady')['to'](this),_0x9bfebf['delegate']('editorDestroyed')['to'](this),_0x9bfebf;}['_setupKeyboardNavigation'](){const _0x24bde3=this['element'];this['keystrokes']['listenTo'](_0x24bde3);for(const _0x3c510a of this['focusables'])this['focusTracker']['add'](_0x3c510a['element']),this['keystrokes']['listenTo'](_0x3c510a['element']);this['focusables']['on']('change',(_0x310875,_0x531f32)=>{for(const _0x338f36 of _0x531f32['removed'])this['focusTracker']['remove'](_0x338f36['element']),this['keystrokes']['stopListening'](_0x338f36['element']);for(const _0x382223 of _0x531f32['added'])this['focusTracker']['add'](_0x382223['element']),this['keystrokes']['listenTo'](_0x382223['element']);}),this['keystrokes']['set']('enter',(_0x4336c8,_0x3d36e2)=>{_0x24bde3===_0x4336c8['target']&&(this['focusCycler']['focusFirst'](),_0x3d36e2());}),this['keystrokes']['set']('esc',(_0x5ad654,_0x40a5a7)=>{_0x24bde3!==_0x5ad654['target']&&(this['focus'](),_0x40a5a7());});}}class gt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(rs){['actionBar'];['userView'];constructor(_0xb1f1d6,_0x12176a,_0x4f8ee0){super(_0xb1f1d6,_0x12176a,_0x4f8ee0),this['set']('actionIndicator',null),this['set']('placeholder',S(_0xb1f1d6,'Reply...')),this['bind']('authoredAt')['to'](_0x12176a),this['bind']('resolvedAt')['to'](_0x12176a),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 _0x282181(_0xb1f1d6,_0x12176a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x12176a,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4ac8bc=this['bindTemplate'],_0x511225=[{'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':_0x4ac8bc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4ac8bc['to']('authoredAt',_0x572a8e=>this['_config']['formatDateTime'](_0x572a8e))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x4ac8bc['if']('isEditMode','ck-comment__actions--hidden'),_0x4ac8bc['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']&&_0x511225['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x4ac8bc['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x4ac8bc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x4ac8bc['if']('isEditMode','ck-comment--edit'),_0x4ac8bc['if']('isSystemComment','ck-comment--info'),_0x4ac8bc['to']('actionIndicator',_0x1ecd32=>_0x1ecd32?'ck-comment--'+_0x1ecd32:'')],'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':_0x511225}]}]};}['_createEditButton'](){const _0x56d74c=new _0x33cfdf(this['locale']);return _0x56d74c['label']=S(this['locale'],'Edit'),_0x56d74c['icon']=_0x43d847['pencil'],_0x56d74c['withText']=!0x0,_0x56d74c['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x56d74c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x21bdd7=>!_0x21bdd7),_0x56d74c['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x56d74c['on']('execute',()=>this['switchToEditMode']()),_0x56d74c;}['_createRemoveButton'](){const _0x3eddea=new _0x33cfdf(this['locale']);return _0x3eddea['label']=S(this['locale'],'Remove'),_0x3eddea['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',_0x3eddea['withText']=!0x0,_0x3eddea['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3eddea['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4193aa=>!_0x4193aa),_0x3eddea['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3eddea['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3eddea;}['_createDropdown'](){const _0x2fbceb=_0x529455(this['locale'],_0x2b412f),_0x886a56=_0x2fbceb['panelView']['children'],_0x588a1a=new _0x374ebe(this['locale']),_0x36683c=_0x2fbceb['bindTemplate'];_0x5e550a(_0x2fbceb,()=>this['items']['find'](_0x4257c9=>_0x4257c9['isVisible'])),_0x2fbceb['extendTemplate']({'attributes':{'class':[_0x36683c['if']('isVisible','ck-hidden',_0x226633=>!_0x226633)]}});const _0x44c63c=(_0x26586e,_0x5de3be=-0x1)=>{const _0x4d2eb7=new _0x3f4b66(this['locale']);_0x4d2eb7['children']['add'](_0x26586e);const _0x26b72a=_0x5de3be>-0x1?_0x5de3be:_0x588a1a['items']['length'];_0x588a1a['items']['add'](_0x4d2eb7,_0x26b72a);const _0x201f84=Array['from'](this['items']);_0x2fbceb['unbind']('isEnabled','isVisible'),_0x2fbceb['bind']('isEnabled')['toMany'](_0x201f84,'isEnabled',(..._0x3a51e7)=>_0x3a51e7['some'](_0x28b616=>_0x28b616)),_0x2fbceb['bind']('isVisible')['toMany'](_0x201f84,'isVisible',(..._0xfd91b9)=>_0xfd91b9['some'](_0x38cb5d=>_0x38cb5d));};_0x2fbceb['panelPosition']='sw',_0x2fbceb['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x43d847['threeVerticalDots']});for(const _0x2acb11 of this['items'])_0x44c63c(_0x2acb11);return _0x886a56['add'](_0x588a1a),_0x2fbceb['listenTo'](this['items'],'add',(_0x49cf5a,_0x25ccb4,_0x29e218)=>{_0x44c63c(_0x25ccb4,_0x29e218);}),_0x2fbceb['listenTo'](this['items'],'remove',(_0x4fc79b,_0x2d1fc2,_0x584152)=>{_0x588a1a['items']['remove'](_0x584152);}),_0x2fbceb;}['_attachActions'](_0x15bf6f,_0x22f9d5){const _0x58262f=_0x15bf6f&&_0x15bf6f['element'];_0x58262f&&(this['listenTo'](_0x58262f,'mouseenter',()=>this['actionIndicator']=_0x22f9d5),this['listenTo'](_0x58262f,'focus',()=>this['actionIndicator']=_0x22f9d5),this['listenTo'](_0x58262f,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x58262f,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x2161ae=super['_createCommentInputView']();return _0x2161ae['bind']('placeholder')['to'](this),_0x2161ae;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x56aada){const _0x1d039b=Dt(_0x56aada,0x1e),_0x229219=new MutationObserver(_0x5255df=>{for(const _0x213fcc of _0x5255df)('attributes'==_0x213fcc['type']&&'class'==_0x213fcc['attributeName']||'childList'==_0x213fcc['type']||'characterData'==_0x213fcc['type'])&&_0x1d039b();});return{'attach'(_0x17c30d){_0x229219['observe'](_0x17c30d,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x229219['disconnect'](),_0x1d039b['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x140b10,_0x11aa4e){super(_0x140b10),this['id']=_0x29dbf2(),this['focusTracker']=new _0x7eedc7(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x26e33a,_0x1a0edb)=>this['fire']('Esc',_0x1a0edb)),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'](_0x11aa4e),this['mainView']=_0x11aa4e;const _0x9b5da6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x9b5da6['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 _0x4c7784=this['element']['clientHeight'];_0x4c7784&&(this['height']=_0x4c7784);}}class d extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x2050f1(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x3ee644,target:_0x3983c1,type:_0x1913d6,isVisible:_0x335f5f=!0x0}){super(),this['view']=_0x3ee644,this['view']['element']||this['view']['render'](),this['_type']=_0x1913d6,this['_target']=_0x3983c1,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x28280b([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x591738,_0x41508c)=>{this['view']['focusTracker']['add'](_0x41508c);}),this['focusableElements']['on']('remove',(_0x554591,_0x376294)=>{this['view']['focusTracker']['remove'](_0x376294);}),this['set']('isVisible',_0x335f5f);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x4e93a1=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x4e93a1),_0x4e93a1;}get['targetRect'](){const _0x47f495=this['target'];if(null===_0x47f495)return null;if(_0x47f495 instanceof _0x107475)return _0x47f495;const _0x58e1bb=_0x47f495['filter'](_0x515be6=>function(_0xf16e6e){const _0x2eb590=_0xf16e6e['offsetParent'];if(_0x2eb590)return!0x0;const _0x5567c3=_0xf16e6e['getClientRects']()['item'](0x0);return!!_0x5567c3;}(_0x515be6));return 0x0===_0x58e1bb['length']?null:new _0x107475(_0x58e1bb[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3d01e5){this['view']['isActive']=_0x3d01e5,this['view']['mainView']['isActive']=_0x3d01e5;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x542baa){if(!(null===_0x542baa||_0x542baa instanceof _0x107475||Array['isArray'](_0x542baa)&&_0x542baa['every'](_0x25d84a=>ne(_0x25d84a))))throw new _0x38a082('annotation-invalid-target',null,{'target':_0x542baa});}['_getNormalizedTarget'](){const _0x45bc13='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x45bc13)?[_0x45bc13]:_0x45bc13;}}function ne(_0x3b9b03){return null!==_0x3b9b03&&'object'==typeof _0x3b9b03&&'nodeType'in _0x3b9b03&&0x1===_0x3b9b03['nodeType'];}class x extends _0x28280b{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x138e26=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x7eedc7(),this['_focusTracker']['on']('change:isFocused',(_0x213c3a,_0x367b4c,_0x509f80)=>{_0x509f80||this['fire']('blur');});for(const _0x4fd0c9 of _0x138e26)this['add'](_0x4fd0c9);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x430b18){if(this['has'](_0x430b18))throw new _0x38a082('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x430b18['innerView'],_0x430b18),this['_viewToAnnotation']['set'](_0x430b18['view'],_0x430b18);for(const _0x4646a1 of _0x430b18['focusableElements'])this['_focusTracker']['add'](_0x4646a1);this['listenTo'](_0x430b18['focusableElements'],'add',(_0x507ef6,_0x5679e6)=>{this['_focusTracker']['add'](_0x5679e6);}),this['listenTo'](_0x430b18['focusableElements'],'remove',(_0x453c7e,_0x6368ea)=>{this['_focusTracker']['remove'](_0x6368ea);}),this['listenTo'](_0x430b18['view']['focusTracker'],'change:isFocused',(_0x23f3b9,_0x2dc2be,_0x32c6bb)=>{_0x32c6bb&&this['fire']('focus',_0x430b18);}),_0x430b18['updateTargetRect']();const _0x27f28a=this['_getOrderInContent'](_0x430b18['view']['targetRect']);return super['add'](_0x430b18,_0x27f28a);}['remove'](_0x4b1f3c){if(!this['has'](_0x4b1f3c))throw new _0x38a082('annotationcollection-not-existing-item',null);this['stopListening'](_0x4b1f3c['view']['focusTracker']),this['stopListening'](_0x4b1f3c['focusableElements']);for(const _0x5903ca of _0x4b1f3c['focusableElements'])this['_focusTracker']['remove'](_0x5903ca);return this['_viewToAnnotation']['delete'](_0x4b1f3c['view']),this['_innerViewToAnnotation']['delete'](_0x4b1f3c['innerView']),super['remove'](_0x4b1f3c);}['getByInnerView'](_0x32c47c){return this['_innerViewToAnnotation']['get'](_0x32c47c);}['getByView'](_0x50b3fd){return this['_viewToAnnotation']['get'](_0x50b3fd);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x318c8b of this)_0x318c8b['updateTargetRect']();this['_sort']();}['_sort'](){const _0x14a8c6=Array['from'](this)['sort']((_0x4c2908,_0x5d4450)=>v(_0x4c2908['view']['targetRect'],_0x5d4450['view']['targetRect']));for(let _0x34927e=_0x14a8c6['length']-0x1;_0x34927e>0x0;_0x34927e--){const _0x4be30f=_0x14a8c6[_0x34927e];_0x34927e!==this['getIndex'](_0x4be30f)&&(this['remove'](_0x4be30f),this['add'](_0x4be30f));}}['_getOrderInContent'](_0x11ec6a){let _0x530eb7=0x0;if(!_0x11ec6a)return this['length'];for(const _0x407355 of this){const _0x1aa7fd=_0x407355['view']['targetRect'];if(_0x1aa7fd){if(v(_0x11ec6a,_0x1aa7fd)<0x0)return _0x530eb7;_0x530eb7++;}}return _0x530eb7;}}function v(_0x43f1bd,_0xd8028f){if(null===_0x43f1bd&&null===_0xd8028f)return 0x0;if(null===_0x43f1bd)return-0x1;if(null===_0xd8028f)return 0x1;const _0x1e607d=_0x43f1bd['top']-_0xd8028f['top'];return 0x0==_0x1e607d?_0x43f1bd['left']-_0xd8028f['left']:_0x1e607d;}class N extends _0x116717{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53a0b2){if(super(_0x53a0b2),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x53a0b2 instanceof _0x20caa5){const _0x27e0e5=_0x53a0b2['locale'];_0x53a0b2['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x27e0e5,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x27e0e5,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x27e0e5,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x27e0e5,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x27e0e5,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x27e0e5,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x27e0e5,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x4b9156){this['collection']['add'](_0x4b9156);}['remove'](_0x26c85b){this['collection']['remove'](_0x26c85b),_0x26c85b['destroy']();}['refreshVisibility'](){for(const _0x246aed of this['collection'])_0x246aed['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x198514){return this['collection']['getByInnerView'](_0x198514);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x21819d of this['collection'])_0x21819d['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2ab54f){this['fire']('_activateAnnotation',_0x2ab54f);}['createAnnotation'](_0x5a6a5b){return new d(_0x5a6a5b);}['createAnnotationView'](_0x44235d,_0x37c43b){return new T(_0x44235d,_0x37c43b);}['_addActiveAnnotation'](_0x297c95){const _0x34f8a6=new Set(this['activeAnnotations']);_0x34f8a6['add'](_0x297c95),this['activeAnnotations']=_0x34f8a6;}['_removeActiveAnnotation'](_0x401427){const _0x371887=new Set(this['activeAnnotations']);_0x371887['delete'](_0x401427),this['activeAnnotations']=_0x371887;}['_bindAnnotationsToVisibleAnnotations'](){const _0x22e176=this['collection'],_0x460dbd=this['_visibleAnnotations'];function _0x45823c(_0x573d8f){const _0x3353b3=_0x573d8f['source'];_0x3353b3['isVisible']&&!_0x460dbd['has'](_0x3353b3)?_0x460dbd['add'](_0x3353b3):!_0x3353b3['isVisible']&&_0x460dbd['has'](_0x3353b3)&&_0x460dbd['remove'](_0x3353b3),_0x3353b3['view']['focusTracker']['remove'](_0x3353b3['view']['element']),_0x3353b3['view']['focusTracker']['add'](_0x3353b3['view']['element']);}this['listenTo'](_0x22e176,'add',(_0x1ef5d4,_0x205d5a)=>{_0x205d5a['isVisible']&&_0x460dbd['add'](_0x205d5a),this['listenTo'](_0x205d5a,'change:isVisible',_0x45823c);}),this['listenTo'](_0x22e176,'remove',(_0x45a1a7,_0x2f8e31)=>{_0x460dbd['has'](_0x2f8e31)&&_0x460dbd['remove'](_0x2f8e31),this['stopListening'](_0x2f8e31,'change:isVisible',_0x45823c);});}['_setupEnterAnnotationKeystroke'](){const _0x555ee4=_0x284554=>{_0x284554['on']('ready',()=>{_0x284554['keystrokes']['set'](_0x47e0fb,(_0x3e935e,_0x22f074)=>{const _0x567dcd=_0xc495b8(this['activeAnnotations']['values']());_0x567dcd&&(_0x567dcd['view']['focus'](),_0x22f074());});});};this['context']instanceof _0x20caa5?_0x555ee4(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x30f429,_0x37c221)=>{_0x555ee4(_0x37c221);});}['_setupEscapeAnnotationHandling'](){const _0x3ae98a=_0x473642=>{const _0x4804a3=_0x473642['source'],_0x302674=[];let _0x2c1228;if(Array['isArray'](_0x4804a3['target'])){_0x2c1228=_0x4804a3['target'][0x0],this['context']instanceof _0x20caa5?_0x302674['push'](this['context']):this['context']['editors']&&_0x302674['push'](...this['context']['editors']);for(const _0x30f280 of _0x302674)for(const _0x487cde of _0x30f280['editing']['view']['domRoots']['values']())if(_0x487cde['contains'](_0x2c1228))return void _0x30f280['editing']['view']['focus']();_0x2c1228['focus']();}};this['listenTo'](this['collection'],'add',(_0x1ba22e,_0x2325f5)=>{this['listenTo'](_0x2325f5,'escape',_0x3ae98a,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x10e67b,_0x1da14c)=>{this['stopListening'](_0x1da14c,'escape',_0x3ae98a);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x116717{['_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(_0x380e5c){super(_0x380e5c),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1c035d=this['context']['config'];_0x1c035d['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1c035d['define']('comments.maxThreadTotalWeight',0x1f4),_0x1c035d['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1c035d['define']('comments.CommentThreadView',vt),_0x1c035d['define']('comments.CommentView',gt),_0x1c035d['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x14a689=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x18ec17,_0x3301ce)=>this['_addCommentThread'](_0x3301ce)),this['on']('submitCommentThread',(_0x2ae23c,_0x464d3a)=>this['_submitCommentThread'](_0x464d3a)),this['on']('resolveCommentThread',(_0x5c66de,_0x4f3d2a)=>this['_resolveCommentThread'](_0x4f3d2a)),this['on']('resolveCommentThread',(_0x2b8190,_0x146310)=>this['_updateActiveAnnotation'](_0x146310),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x37db09,_0xc374b2)=>this['_reopenCommentThread'](_0xc374b2)),this['on']('reopenCommentThread',(_0x5e123a,_0x2f5dab)=>this['_updateActiveAnnotation'](_0x2f5dab),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x5b2554,_0x4ee166)=>this['_removeCommentThread'](_0x4ee166)),this['on']('updateCommentThread',(_0x573a9c,_0x1c0042)=>this['_updateCommentThread'](_0x1c0042)),this['on']('updateCommentThread',(_0x42cae0,_0x4a5874)=>this['_updateActiveAnnotation'](_0x4a5874),{'priority':'lowest'}),this['on']('addComment',(_0x58c9c0,_0x384bfe)=>this['_addComment'](_0x384bfe)),this['on']('updateComment',(_0x27e27d,_0x23d947)=>this['_updateComment'](_0x23d947)),this['on']('removeComment',(_0x563c04,_0x1fdb38)=>this['_removeComment'](_0x1fdb38)),this['on']('addComment',(_0x2ddf29,{threadId:_0x3ea58e,isFromAdapter:_0x4cbb13})=>{if(_0x4cbb13)return;const _0x1bd1a1=this['getCommentThread'](_0x3ea58e),_0x17bab9=_0x1bd1a1&&this['_threadToController']['get'](_0x1bd1a1);_0x17bab9&&_0x17bab9['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x14a689,'change:activeAnnotations',(_0x38553c,_0x18ffb5,_0x469281)=>{const _0x28373=Array['from'](_0x469281)['map'](_0x27bf76=>this['_viewToController']['get'](_0x27bf76['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x28373?_0x28373['model']:null;});}set['adapter'](_0x5a8453){if(this['_adapter'])throw new _0x38a082('commentsrepository-adapter-already-set');this['_adapter']=_0x5a8453;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5c9247=Tt,threadId:_0x3c8bdb=_0x29dbf2(),comments:_0x24d23c=[],unlinkedAt:_0x4d5236=null,resolvedAt:_0x3ed26c=null,resolvedBy:_0x39fce0=null,target:_0x15bff1=null,context:_0xcffd0c=null,attributes:_0x430d5f={},isResolvable:_0x2e04e8=!0x0,isSubmitted:_0x7a4536=!0x1,isFromAdapter:_0x16c8d1=!0x1}={}){return this['fire'](bt('addCommentThread',_0x5c9247),{'channelId':_0x5c9247,'threadId':_0x3c8bdb,'comments':_0x24d23c,'unlinkedAt':_0x4d5236,'resolvedAt':_0x3ed26c,'resolvedBy':_0x39fce0,'target':_0x15bff1,'context':_0xcffd0c,'attributes':_0x430d5f,'isFromAdapter':_0x16c8d1,'isResolvable':_0x2e04e8,'isSubmitted':_0x7a4536}),this['getCommentThread'](_0x3c8bdb);}['openNewCommentThread']({channelId:_0x49e7d9=Tt,threadId:_0x235e5d=_0x29dbf2(),target:_0x597994,context:_0x5ee109=null,isResolvable:_0x2f13e7=!0x0}){if(this['_readOnlyChannels']['has'](_0x49e7d9)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x597994)throw new _0x38a082('commentsrepository-missing-target');const _0xf38d7c=this['addCommentThread']({'channelId':_0x49e7d9,'threadId':_0x235e5d,'target':_0x597994,'context':_0x5ee109,'isResolvable':_0x2f13e7});if(!_0xf38d7c)return null;const _0x22a882=this['_threadToController']['get'](_0xf38d7c),_0x1b798f=_0x22a882['view']['commentThreadInputView']['commentInputView'],_0x483a28=this['context']['plugins']['get'](N),_0x3a80c4=_0x483a28['getByInnerView'](_0x22a882['view']);return _0x483a28['activate'](_0x3a80c4),_0x1b798f['once']('editorReady',()=>_0x1b798f['focus']()),_0xf38d7c;}['hasCommentThread'](_0x498745){if('string'!=typeof _0x498745)throw new _0x38a082('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x498745);}['updateCommentThread']({channelId:_0x5de4c1=Tt,threadId:_0x562218,context:_0x3a86ae,unlinkedAt:_0x26be4a,attributes:_0x58bfe4,isFromAdapter:_0x56fd33=!0x1}){return this['fire'](bt('updateCommentThread',_0x5de4c1),{'channelId':_0x5de4c1,'threadId':_0x562218,'context':_0x3a86ae,'unlinkedAt':_0x26be4a,'attributes':_0x58bfe4,'isFromAdapter':_0x56fd33}),this['getCommentThread'](_0x562218);}['getCommentThread'](_0x287f9e){if('string'!=typeof _0x287f9e)throw new _0x38a082('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x287f9e);}['fetchCommentThread']({channelId:_0x2581f2,threadId:_0x1248f4}={}){const _0x45be6e=this['getCommentThread'](_0x1248f4);if(_0x45be6e)return Promise['resolve'](_0x45be6e);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x38a082('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x2581f2,'threadId':_0x1248f4})['then'](_0x2321ea=>this['hasCommentThread'](_0x1248f4)?this['getCommentThread'](_0x1248f4):_0x2321ea?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x2581f2},_0x2321ea)):void 0x0)['catch'](_0x8c277a=>{throw console['error'](_0x8c277a),new _0x38a082('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x53e71f,skipNotAttached:_0x141693=!0x1,skipEmpty:_0x5bf1cb=!0x1,toJSON:_0x4dfe0a=!0x1}={}){const _0x559e82=[];for(const _0x3ebde6 of this['_threads']['values']())_0x53e71f&&_0x3ebde6['channelId']!==_0x53e71f||_0x141693&&!_0x3ebde6['isAttached']||_0x5bf1cb&&0x0===_0x3ebde6['length']||_0x559e82['push'](_0x3ebde6);return _0x4dfe0a?_0x559e82['map'](_0x33929d=>_0x33929d['toJSON']()):_0x559e82;}['setActiveCommentThread'](_0x4a12d0){const _0x498662=this['context']['plugins']['get'](N);if(!_0x4a12d0)return void(this['activeCommentThread']&&_0x498662['deactivateAll']());const _0x2223e7=this['getCommentThread'](_0x4a12d0);if(!_0x2223e7)throw new _0x38a082('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4a12d0});if(!this['_threadToController']['has'](_0x2223e7))throw new _0x38a082('commentsrepository-active-not-attached',null,{'threadId':_0x4a12d0});const _0x40840e=_0x498662['getByInnerView'](this['_threadToController']['get'](_0x2223e7)['view']);_0x498662['activate'](_0x40840e);}['switchReadOnly'](_0x3a1c75,_0x9e8563){_0x3a1c75?this['_readOnlyChannels']['add'](_0x9e8563):this['_readOnlyChannels']['delete'](_0x9e8563),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x3a07a4){return this['_readOnlyChannels']['has'](_0x3a07a4)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x369573,_0x2cfcec){return new Ct(_0x369573,_0x2cfcec);}['setPermissions'](_0x55c5f4,_0x319ce4=Tt){this['_permissions']['set'](_0x319ce4,_0x55c5f4),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x125b27=Tt){return this['_permissions']['has'](_0x125b27)?this['_permissions']['get'](_0x125b27):_t;}['_addCommentThread']({channelId:_0x1ea653,threadId:_0x12f205,comments:_0x5e32c0,unlinkedAt:_0x12df36,resolvedAt:_0x1e9b38,resolvedBy:_0xed8ba2,target:_0x166777,context:_0x153449,attributes:_0x249115,isFromAdapter:_0x58c1f0,isResolvable:_0x5ddfbf,isSubmitted:_0x1c74da}){if('string'!=typeof _0x12f205)throw new _0x38a082('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x12f205});if(this['hasCommentThread'](_0x12f205))throw new _0x38a082('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x12f205});const _0x7800e7=new oe(this,{'channelId':_0x1ea653,'id':_0x12f205,'context':_0x153449,'attributes':_0x249115,'unlinkedAt':_0x12df36,'resolvedAt':_0x1e9b38,'resolvedBy':_0xed8ba2?this['context']['plugins']['get'](it)['getUser'](_0xed8ba2):null,'isResolvable':_0x5ddfbf,'isSubmitted':_0x1c74da||_0x58c1f0});this['_threads']['set'](_0x12f205,_0x7800e7);for(const _0x617d6c of _0x5e32c0)_0x7800e7['_add'](this['_createNewComment']({'threadId':_0x12f205,..._0x617d6c}));return _0x166777&&_0x7800e7['attachTo'](_0x166777),_0x58c1f0||!_0x7800e7['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1ea653,'threadId':_0x12f205});}['_submitCommentThread']({channelId:_0x536b06,threadId:_0x4d2c4e}){if(!this['hasCommentThread'](_0x4d2c4e))throw new _0x38a082('commentsrepository-missing-comment-thread',this);const _0x15e111=this['getCommentThread'](_0x4d2c4e);if(_0x15e111['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x2913b8,comments:_0x2b2995,resolvedAt:_0x158b98,resolvedBy:_0x23ed70,context:_0x566be6,attributes:_0x3dda93}=_0x15e111,_0x37e5a2=this['context']['plugins']['get']('PendingActions'),_0x1c93b8=_0x37e5a2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x536b06,'threadId':_0x2913b8,'comments':_0x2b2995['map'](_0x4642fd=>_0x4642fd['toJSON']()),'resolvedAt':_0x158b98,'resolvedBy':_0x23ed70?_0x23ed70['id']:_0x23ed70,'context':_0x566be6,'attributes':_0x3dda93})['then'](({comments:_0x3b6411})=>{_0x37e5a2['remove'](_0x1c93b8);for(const _0x392e81 of _0x3b6411)this['_updateComment']({'channelId':_0x536b06,'threadId':_0x4d2c4e,'commentId':_0x392e81['commentId'],'createdAt':_0x392e81['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x26378d=>{throw console['error'](_0x26378d),new _0x38a082('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x581791,target:_0x5cfbe6}){const _0x4835c8=this['getCommentThread'](_0x581791);if(!_0x4835c8)throw new _0x38a082('commentsrepository-attach-missing-comment-thread',this);const _0x13f86d=this['context']['plugins']['get']('PendingActions'),_0x434f2b=this['context']['plugins']['get'](N),_0x23d51f=this['_createCommentThreadView'](_0x4835c8),_0x57eccf=new Ct(_0x4835c8,_0x23d51f);let _0x1192ce=null;_0x23d51f['on']('change:isDirty',(_0x54bd34,_0x16ce66,_0x12f682)=>{_0x12f682?_0x1192ce=_0x13f86d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x1192ce&&(_0x13f86d['remove'](_0x1192ce),_0x1192ce=null);}),this['_threadToController']['set'](_0x4835c8,_0x57eccf),this['_viewToController']['set'](_0x23d51f,_0x57eccf);const _0x582b53=new T(this['context']['locale'],_0x23d51f);_0x582b53['bind']('length')['to'](_0x23d51f),_0x582b53['bind']('isDirty')['to'](_0x23d51f,'isDirty',_0x23d51f,'length',(_0x3ef651,_0x46ba75)=>_0x3ef651||!_0x46ba75),_0x582b53['bind']('isActive')['to'](_0x23d51f),_0x582b53['type']='comment';const _0x1afd2b=new d({'view':_0x582b53,'target':_0x5cfbe6,'type':'comment','isVisible':!_0x4835c8['archivedAt']});return _0x23d51f['on']('escape',()=>{_0x1afd2b['fire']('escape');}),this['_bindAnnotationToEditors'](_0x23d51f,_0x1afd2b),_0x434f2b['add'](_0x1afd2b),_0x1afd2b;}['_bindAnnotationToEditors'](_0x3cd16a,_0x3c373e){this['listenTo'](_0x3cd16a,'editorReady',(_0x305295,_0x1c2ab1)=>{const _0x162aa7=_0x1c2ab1['ui']['view']['body']['bodyCollectionContainer'];_0x3c373e['focusableElements']['add'](_0x162aa7),this['context']instanceof _0x20caa5&&this['context']['ui']['focusTracker']['add'](_0x162aa7);},{'priority':'highest'}),this['listenTo'](_0x3cd16a,'editorDestroyed',(_0xcc35e6,_0x34643f)=>{const _0x5b1d83=_0x34643f['ui']['view']['body']['bodyCollectionContainer'];_0x3c373e['focusableElements']['has'](_0x5b1d83)&&_0x3c373e['focusableElements']['remove'](_0x5b1d83),this['context']instanceof _0x20caa5&&this['context']['ui']['focusTracker']['remove'](_0x5b1d83);});}['_unbindEditors'](_0x37fa49){this['stopListening'](_0x37fa49,'editorReady'),this['stopListening'](_0x37fa49,'editorDestroyed');}['_createCommentThreadView'](_0x5cd45b){const _0x3070ce=this['context']['plugins']['get'](it),{config:_0x13bda9,locale:_0x313cde}=this['context'],_0x382896=lt(_0x13bda9['get']('locale'));return new(0x0,(_0x13bda9['get']('comments'))['CommentThreadView'])(_0x313cde,_0x5cd45b,_0x3070ce['me'],{'editorConfig':{..._0x13bda9['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x13bda9['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x13bda9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x13bda9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x13bda9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x382896,'CommentView':_0x13bda9['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x1c60d1,channelId:_0x4ebfc1,resolvedAt:_0x93674a,resolvedBy:_0xf84591,isFromAdapter:_0x5916c2}){if(!this['hasCommentThread'](_0x1c60d1))throw new _0x38a082('commentsrepository-missing-comment-thread',null,{'threadId':_0x1c60d1});const _0x3c40a2=this['getCommentThread'](_0x1c60d1);if(_0x3c40a2['isResolved'])throw new _0x38a082('commentsrepository-resolved-comment-thread',null,{'threadId':_0x1c60d1});const _0x53baf6=this['context']['plugins']['get'](it);if(_0x3c40a2['resolvedBy']=_0x53baf6['getUser'](_0xf84591),_0x3c40a2['resolvedAt']=_0x93674a,_0x5916c2||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x484ed8=this['context']['plugins']['get']('PendingActions'),_0x1e16ff=_0x484ed8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x4ebfc1,'threadId':_0x1c60d1})['then'](({resolvedAt:_0x269f1f,resolvedBy:_0x144c22})=>{_0x484ed8['remove'](_0x1e16ff),_0x3c40a2['resolvedBy']['id']!==_0x144c22&&(_0x3c40a2['resolvedBy']=_0x53baf6['getUser'](_0x144c22)),_0x3c40a2['resolvedAt']=_0x269f1f;})['catch'](_0x4d66f5=>{throw console['error'](_0x4d66f5),new _0x38a082('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x17a1e9,channelId:_0x4b2f10,isFromAdapter:_0x40733d}){if(!this['hasCommentThread'](_0x17a1e9))throw new _0x38a082('commentsrepository-missing-comment-thread',null,{'threadId':_0x17a1e9});const _0x1c4e0a=this['getCommentThread'](_0x17a1e9);if(!_0x1c4e0a['isResolved'])throw new _0x38a082('commentsrepository-reopen-comment-thread',null,{'threadId':_0x17a1e9});if(_0x1c4e0a['resolvedBy']=null,_0x1c4e0a['resolvedAt']=null,_0x40733d||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x9e4c94=this['context']['plugins']['get']('PendingActions'),_0x2848b9=_0x9e4c94['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x4b2f10,'threadId':_0x17a1e9})['then'](()=>_0x9e4c94['remove'](_0x2848b9))['catch'](_0x50e6c0=>{throw console['error'](_0x50e6c0),new _0x38a082('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x2789c4,isFromAdapter:_0x5eb4b8}){const _0x3b9d5f=this['getCommentThread'](_0x2789c4);if(!_0x3b9d5f)throw new _0x38a082('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x2789c4),this['_threads']['delete'](_0x2789c4),!_0x3b9d5f['isSubmitted']||_0x5eb4b8||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x336b38=this['context']['plugins']['get']('PendingActions'),{channelId:_0x237a23}=_0x3b9d5f,_0x52b3d4=_0x336b38['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x237a23,'threadId':_0x2789c4})['then'](()=>_0x336b38['remove'](_0x52b3d4))['catch'](_0x34a07e=>{throw console['error'](_0x34a07e),new _0x38a082('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4fe736,unlinkedAt:_0x2c3208,context:_0x4cf4b5,attributes:_0xfb8cbb,isFromAdapter:_0x52cc17}){if('string'!=typeof _0x4fe736)throw new _0x38a082('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4fe736});if(!this['hasCommentThread'](_0x4fe736))throw new _0x38a082('commentsrepository-missing-comment-thread',null,{'threadId':_0x4fe736});const _0x1a027e=this['getCommentThread'](_0x4fe736);let _0x106536=!0x1;if(void 0x0!==_0x4cf4b5&&_0x1a027e['context']!==_0x4cf4b5&&(_0x1a027e['context']=_0x4cf4b5,_0x106536=!0x0),void 0x0!==_0x2c3208&&_0x1a027e['unlinkedAt']!==_0x2c3208&&(_0x1a027e['unlinkedAt']=_0x2c3208,_0x106536=!0x0),_0xfb8cbb&&!wt(_0xfb8cbb,_0x1a027e['attributes'])&&(_0x1a027e['attributes']=_0xfb8cbb,_0x106536=!0x0),!_0x106536)return Promise['resolve']();if(!_0x1a027e['isSubmitted']||_0x52cc17||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x35c43c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x428a01}=_0x1a027e,_0x11c812=_0x35c43c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x428a01,'threadId':_0x4fe736,'context':_0x4cf4b5,'unlinkedAt':_0x2c3208,'attributes':_0xfb8cbb})['then'](()=>_0x35c43c['remove'](_0x11c812))['catch'](_0x265fdb=>{throw console['error'](_0x265fdb),new _0x38a082('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x56c27b){const _0x50985a=this['context']['plugins']['get'](N),_0x1016bd=this['getCommentThread'](_0x56c27b);if(_0x1016bd['_isAttached']=!0x1,this['_threadToController']['has'](_0x1016bd)){const _0xb88e2e=this['_threadToController']['get'](_0x1016bd),_0x4b6efb=_0xb88e2e['view'],_0x45ce8c=_0x50985a['getByInnerView'](_0x4b6efb);this['_threadToController']['delete'](_0x1016bd),this['_viewToController']['delete'](_0x4b6efb),_0x45ce8c&&_0x50985a['remove'](_0x45ce8c),_0xb88e2e['destroy'](),_0x4b6efb['destroy']()['then'](()=>{this['_unbindEditors'](_0x4b6efb);});}}['_updateActiveAnnotation']({threadId:_0x122c3a,resolvedAt:_0xe8d2dc}){const _0x311839=!!_0xe8d2dc,_0x4150f7=this['context']['plugins']['get'](N),_0x3ded13=this['getCommentThread'](_0x122c3a);if(this['_threadToController']['has'](_0x3ded13)){const _0xdb07b=this['_threadToController']['get'](_0x3ded13)['view'],_0x5022c7=_0x4150f7['getByInnerView'](_0xdb07b);_0x5022c7&&(_0x311839&&_0x4150f7['_removeActiveAnnotation'](_0x5022c7),_0x5022c7['refreshVisibility']());}}['_getExternalAuthor'](_0x3bee86){const _0x2e5eb1=this['context']['plugins']['get'](it),_0x3d072f=pt('external:'+_0x3bee86),_0xaf0c61=_0x2e5eb1['getUser'](_0x3d072f);return _0xaf0c61||_0x2e5eb1['addUser']({'id':_0x3d072f,'name':_0x3bee86});}['_createNewComment']({threadId:_0x194d9d,commentId:_0x520b47=_0x29dbf2(),content:_0x136fd0,authorId:_0x1c202a,createdAt:_0x22d469,attributes:_0x224483}){if('string'!=typeof _0x520b47)throw new _0x38a082('commentsrepository-invalid-commentid');if('string'!=typeof _0x1c202a)throw new _0x38a082('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x136fd0||!_0x136fd0['trim']())throw new _0x38a082('commentsrepository-invalid-comment-content');const _0x5a4748=this['context']['plugins']['get'](it)['getUser'](_0x1c202a);if(!_0x5a4748)throw new _0x38a082('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1c202a});let _0x1f07a6=null,_0x3147de=_0x22d469;return _0x224483&&_0x224483['@external']&&(_0x1f07a6=this['_getExternalAuthor'](_0x224483['@external']['authorName']),_0x3147de=new Date(_0x224483['@external']['createdAt'])),new re(this,{'threadId':_0x194d9d,'id':_0x520b47,'author':_0x1f07a6||_0x5a4748,'creator':_0x5a4748,'content':_0x136fd0,'createdAt':_0x22d469,'authoredAt':_0x3147de,'attributes':_0x224483});}['_addComment'](_0x3550d0){let {threadId:_0x2094bc,content:_0x39747f,attributes:_0xc6908c,isFromAdapter:_0x20cda6}=_0x3550d0;const _0x13d3f4=this['getCommentThread'](_0x3550d0['threadId']);if(!_0x13d3f4)throw new _0x38a082('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x31d8c5=this['_createNewComment'](_0x3550d0),{id:_0x2ec308}=_0x31d8c5;if(_0x13d3f4['_add'](_0x31d8c5),_0x20cda6||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x13d3f4['isSubmitted'])return Promise['resolve']();const _0x4585bc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1aa7a0}=_0x13d3f4,_0x6a32a2=_0x4585bc['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0xc6908c||(_0xc6908c={}),this['adapter']['addComment']({'channelId':_0x1aa7a0,'threadId':_0x2094bc,'commentId':_0x2ec308,'content':_0x39747f,'attributes':_0xc6908c})['then'](_0xbf1e62=>{_0x4585bc['remove'](_0x6a32a2),_0xbf1e62&&this['_updateComment']({'channelId':_0x1aa7a0,'threadId':_0x2094bc,'commentId':_0x2ec308,'createdAt':_0xbf1e62['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x208854=>{throw console['error'](_0x208854),new _0x38a082('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x56610f,commentId:_0x4cd99c,content:_0x21506e,createdAt:_0x32e4b8,attributes:_0x303c60,isFromAdapter:_0x2de9cd}){if(void 0x0!==_0x21506e&&('string'!=typeof _0x21506e||!_0x21506e['trim']()['length']))throw new _0x38a082('commentsrepository-update-comment-invalid-content');const _0x40c93b=this['getCommentThread'](_0x56610f),_0x3dbcc8=_0x40c93b['getComment'](_0x4cd99c);if(!_0x3dbcc8)throw new _0x38a082('commentsrepository-update-missing-comment',this);let _0x323e2e=!0x1;if(_0x21506e&&_0x21506e!==_0x3dbcc8['content']&&(_0x3dbcc8['isEditable']||_0x2de9cd)&&(_0x3dbcc8['content']=_0x21506e,_0x323e2e=!0x0),_0x32e4b8&&_0x32e4b8!==_0x3dbcc8['createdAt']&&(_0x3dbcc8['createdAt']=_0x32e4b8,_0x3dbcc8['attributes']&&_0x3dbcc8['attributes']['@external']||(_0x3dbcc8['authoredAt']=_0x32e4b8),_0x323e2e=!0x0),_0x303c60&&!wt(_0x303c60,_0x3dbcc8['attributes'])&&(_0x3dbcc8['attributes']=_0x303c60,_0x323e2e=!0x0),!_0x323e2e)return Promise['resolve']();if(_0x40c93b['fire']('commentUpdated'),_0x2de9cd||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x5df18b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4a809b}=this['getCommentThread'](_0x3dbcc8['threadId']),_0x3c451f=_0x5df18b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x4a809b,'threadId':_0x56610f,'commentId':_0x4cd99c,'content':_0x21506e,'attributes':_0x303c60})['then'](()=>_0x5df18b['remove'](_0x3c451f))['catch'](_0x1d2ee7=>{throw console['error'](_0x1d2ee7),new _0x38a082('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3c6dd1,commentId:_0x3ce195,isFromAdapter:_0x1d8ee5}){const _0x52b68d=this['getCommentThread'](_0x3c6dd1),_0x402ced=_0x52b68d['getComment'](_0x3ce195);if(!_0x402ced)throw new _0x38a082('commentsrepository-remove-missing-comment',this);if(_0x52b68d['_remove'](_0x402ced),_0x1d8ee5||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x5f0356=this['context']['plugins']['get']('PendingActions'),{channelId:_0x54a912}=_0x52b68d,_0x5dc828=_0x5f0356['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x54a912,'threadId':_0x3c6dd1,'commentId':_0x3ce195})['then'](()=>_0x5f0356['remove'](_0x5dc828))['catch'](_0x36eeb7=>{throw console['error'](_0x36eeb7),new _0x38a082('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x2050f1(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x3a3537,_0x397f6e){super();const _0x287995=_0x397f6e['isResolvable'];this['channelId']=_0x397f6e['channelId'],this['id']=_0x397f6e['id'],this['comments']=new _0x28280b(),this['_repository']=_0x3a3537,this['_isAttached']=!0x1,this['_isSubmitted']=_0x397f6e['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x3a3537,'_permissions',_0x3a3537,'_readOnlyChannels',()=>_0x3a3537['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x3a3537,'_permissions',()=>_0x3a3537['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x3a3537,'_permissions',()=>{const _0x3c0236=_0x3a3537['getPermissions'](this['channelId']);return _0x3c0236['write']||_0x3c0236['admin'];}),this['bind']('isResolvable')['to'](_0x3a3537,'_permissions',()=>_0x287995&&_0x3a3537['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x397f6e['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4482a6,_0x5e140f)=>_0x4482a6?_0x5e140f?_0x4482a6<_0x5e140f?_0x4482a6:_0x5e140f:_0x4482a6:_0x5e140f),this['set']('unlinkedAt',_0x397f6e['unlinkedAt']||null),this['set']('resolvedAt',_0x397f6e['resolvedAt']||null),this['set']('resolvedBy',_0x397f6e['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x4c59dc=>!!_0x4c59dc),this['set']('attributes',_0x397f6e['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x4952f4,_0x123531)=>_0x4952f4+_0x123531['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0xca0721,id:_0x32c048}=this;this['_repository']['fire'](bt('submitCommentThread',_0xca0721),{'channelId':_0xca0721,'threadId':_0x32c048});}['setUnlinkedAt'](_0x5934d2){this['_update']({'unlinkedAt':_0x5934d2});}['resolve']({resolvedAt:_0x5b9e61=new Date(),resolvedBy:_0x1bff41=null,isFromAdapter:_0x1b954f=!0x1}={}){const _0x27e380=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x565bb6,id:_0x25a21c}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x565bb6),{'channelId':_0x565bb6,'threadId':_0x25a21c,'resolvedAt':_0x5b9e61,'resolvedBy':_0x1bff41||_0x27e380['id'],'isFromAdapter':_0x1b954f});}['reopen']({isFromAdapter:_0x36b48d=!0x1}={}){const {channelId:_0x42d3da,id:_0x591318}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x42d3da),{'channelId':_0x42d3da,'threadId':_0x591318,'isFromAdapter':_0x36b48d});}['setContext'](_0x255678){this['context']||this['_update']({'context':_0x255678});}['setAttribute'](_0x4d2b54,_0x56adc6){const _0x2dd07b=It(this['attributes']);At(_0x2dd07b,_0x4d2b54,_0x56adc6),this['_update']({'attributes':_0x2dd07b});}['removeAttribute'](_0xb93a3d){const _0x5c641b=It(this['attributes']);yt(_0x5c641b,_0xb93a3d),this['_update']({'attributes':_0x5c641b});}['remove']({isFromAdapter:_0x2104c6=!0x1}={}){const {channelId:_0x30569f,id:_0x168af8}=this;this['_repository']['fire'](bt('removeCommentThread',_0x30569f),{'channelId':_0x30569f,'threadId':_0x168af8,'isFromAdapter':_0x2104c6});}['attachTo'](_0x509ef4){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x509ef4});}['addComment'](_0xc28468){const {channelId:_0x40ad89,id:_0x1bca51}=this;this['_repository']['fire'](bt('addComment',_0x40ad89,_0x1bca51),Object['assign']({'channelId':_0x40ad89,'threadId':_0x1bca51},_0xc28468));}['getComment'](_0x27991b){if('string'!=typeof _0x27991b)throw new _0x38a082('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x27991b});return this['comments']['get'](_0x27991b);}['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'](_0x1b15aa=>_0x1b15aa['toJSON']()),'attributes':this['attributes']};}['_add'](_0x16d6b6){return this['listenTo'](_0x16d6b6,'change:authoredAt',()=>{const _0x7ce2f0=this['_findOptimalIndex'](_0x16d6b6),_0x29a26c=this['comments'];_0x7ce2f0-0x1!=_0x29a26c['getIndex'](_0x16d6b6)&&_0x7ce2f0+0x1!=_0x29a26c['getIndex'](_0x16d6b6)&&(this['_remove'](_0x16d6b6),this['_add'](_0x16d6b6));}),this['comments']['add'](_0x16d6b6,this['_findOptimalIndex'](_0x16d6b6));}['_update'](_0x29fc6b){const {channelId:_0x586e69,id:_0x3fbac1}=this;this['_repository']['fire'](bt('updateCommentThread',_0x586e69),{..._0x29fc6b,'channelId':_0x586e69,'threadId':_0x3fbac1});}['_remove'](_0x3b2924){return this['stopListening'](_0x3b2924),_0x3b2924['destroy'](),this['comments']['remove'](_0x3b2924);}['_findOptimalIndex'](_0x51a302){const _0x649aa1=this['comments']['find'](_0x9d87ca=>new Date(_0x9d87ca['authoredAt'])['getTime']()>new Date(_0x51a302['authoredAt'])['getTime']());return _0x649aa1?this['comments']['getIndex'](_0x649aa1):this['length'];}}class re extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x2050f1(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x868038,_0x5ba19e){super();const _0x4be1b1=_0x868038['context']['plugins']['get'](it)['me'],_0x4fcb18=_0x868038['getCommentThread'](_0x5ba19e['threadId']),_0x40d00d=0x0===_0x4fcb18['comments']['length'],_0x184b2b=_0x4be1b1===_0x5ba19e['author'];this['id']=_0x5ba19e['id'],this['threadId']=_0x5ba19e['threadId'],this['author']=_0x5ba19e['author'],this['creator']=_0x5ba19e['creator'],this['isExternal']=Boolean(_0x5ba19e['attributes']&&_0x5ba19e['attributes']['@external']),this['set']('content',_0x5ba19e['content']),this['createdAt']=_0x5ba19e['createdAt']||new Date(),this['set']('authoredAt',_0x5ba19e['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x4fcb18,'resolvedAt'),this['set']('attributes',_0x5ba19e['attributes']||{}),this['bind']('isEditable')['to'](_0x868038,'_permissions',()=>{const _0x3c8c92=_0x868038['getPermissions'](_0x4fcb18['channelId'])['write'],_0x1fd6df=_0x868038['getPermissions'](_0x4fcb18['channelId'])['modifyAll'];return _0x184b2b&&_0x3c8c92||!_0x184b2b&&_0x1fd6df;}),this['bind']('isRemovable')['to'](_0x4fcb18,'isRemovable',_0x868038,'_permissions',_0x33d964=>{const _0x24e7d8=_0x868038['getPermissions'](_0x4fcb18['channelId'])['write'],_0x2874e9=_0x868038['getPermissions'](_0x4fcb18['channelId'])['modifyAll'];return _0x184b2b&&_0x24e7d8||_0x33d964&&_0x40d00d||!_0x184b2b&&_0x2874e9&&!_0x40d00d;}),this['bind']('isReadOnly')['to'](_0x4fcb18,'isReadOnly'),this['_repository']=_0x868038;}get['weight'](){return Math['max'](function(_0x5b01aa){const _0x226032=document['createElement']('div');return _0x226032['innerHTML']=_0x5b01aa,_0x226032['textContent']['length'];}(this['content']),0xc8);}['update'](_0x2c2d1c){const {threadId:_0x27a588,id:_0x4129a6}=this;if(!this['_repository']['hasCommentThread'](_0x27a588))throw new _0x38a082('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4e3f7e}=this['_repository']['getCommentThread'](_0x27a588);this['_repository']['fire'](bt('updateComment',_0x4e3f7e,_0x27a588),{'channelId':_0x4e3f7e,'threadId':_0x27a588,'commentId':_0x4129a6,..._0x2c2d1c});}['setAttribute'](_0x304372,_0x58c332){const _0x375f03=It(this['attributes']);At(_0x375f03,_0x304372,_0x58c332),this['update']({'attributes':_0x375f03});}['removeAttribute'](_0x536e0e){const _0x10a95a=It(this['attributes']);yt(_0x10a95a,_0x536e0e),this['update']({'attributes':_0x10a95a});}['remove'](_0x2177e3={}){if(!_0x2177e3['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0xbc3460,id:_0xa6c055}=this;if(!this['_repository']['hasCommentThread'](_0xbc3460))throw new _0x38a082('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x3c1cb2}=this['_repository']['getCommentThread'](_0xbc3460);this['_repository']['fire'](bt('removeComment',_0x3c1cb2,_0xbc3460),{'channelId':_0x3c1cb2,'threadId':_0xbc3460,'commentId':_0xa6c055,..._0x2177e3});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x2ad4d8,..._0x295038){for(const _0x19ab3a of _0x295038)void 0x0!==_0x19ab3a&&(_0x2ad4d8+=':'+String(_0x19ab3a));return _0x2ad4d8;}class J extends _0x152bdf{['refresh'](){const _0xdae25f=this['editor']['model']['document']['selection'];for(const _0x28812f of _0xdae25f['getRanges']())if(this['_hasContent'](_0x28812f))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x2e0155=_0x29dbf2()}={}){const _0x1f60f8=this['editor']['model'],_0x46a169=[];for(const _0x57d3b3 of _0x1f60f8['document']['selection']['getRanges']())this['_hasContent'](_0x57d3b3)&&_0x46a169['push'](this['_trimToContent'](_0x57d3b3));_0x1f60f8['change'](_0x159d63=>{for(const _0x405acb of _0x46a169){const _0x2adc16=_0x29dbf2()['substr'](0x1,0x5),_0x4f9067='comment:'+_0x2e0155+':'+_0x2adc16;_0x159d63['addMarker'](_0x4f9067,{'range':_0x405acb,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x184357){for(const _0x528c91 of _0x184357['getItems']())if(this['_itemIsContent'](_0x528c91))return!0x0;return!0x1;}['_itemIsContent'](_0xc3436b){return _0xc3436b['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xc3436b)&&!_0xc3436b['is']('element','tableCell');}['_trimToContent'](_0x1368b4){const _0x276c2f=_0x109b9e=>!this['_itemIsContent'](_0x109b9e['item']),_0xd41c4a=_0x1368b4['start']['getLastMatchingPosition'](_0x276c2f),_0x91b101=_0x1368b4['end']['getLastMatchingPosition'](_0x276c2f,{'direction':'backward'});return this['editor']['model']['createRange'](_0xd41c4a,_0x91b101);}}class P extends _0x2e0f95{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cc2c3){super(_0x5cc2c3),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4eeb51=this['editor'],_0x8dd4e0=_0x4eeb51['model']['document']['selection'],_0x145eac=_0xe850d8(()=>this['refreshSelectedViews'](),0xa);_0x8dd4e0['on']('change:range',(_0x3eb7a8,_0x3b56fb)=>{_0x3b56fb['directChange']&&(_0x145eac['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x4eeb51['editing']['view']['document'],'change:isFocused',(_0x3920e1,_0x256177,_0x51c570)=>{_0x51c570&&_0x145eac();}),this['listenTo'](_0x4eeb51['ui']['focusTracker'],'change:isFocused',(_0x295495,_0xa31fec,_0x3e0759)=>{_0x3e0759||_0x4eeb51['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x54e5e9=>this['_editorAnnotationsData']['has'](_0x54e5e9['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x920877){if(this['_editorAnnotations']['has'](_0x920877['view']))return;this['_editorAnnotations']['add'](_0x920877['view']),this['editor']['ui']['focusTracker']['add'](_0x920877['view']['element']);const _0x442843=this['editor']['plugins']['get'](N);this['listenTo'](_0x442843['collection'],'remove',(_0x3bb3db,_0x2585a0)=>{this['editor']['ui']['focusTracker']['remove'](_0x2585a0['view']['element']),this['_editorAnnotations']['delete'](_0x2585a0['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x22e038){if('function'!=typeof _0x22e038)throw new _0x38a082('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x22e038);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x5416e6,annotations:_0x1fc3ce}){const _0xf39b92=[],_0x49b6cd=this['editor']['model']['document']['selection'],_0x1243df=Array['from'](_0x49b6cd['getRanges']());for(const [_0x1012bf,_0x1f5b3f]of this['_editorAnnotationsData']){const _0x19be7f=_0x352424(_0x1f5b3f),_0x25489a=_0x1fc3ce['getByInnerView'](_0x1012bf);_0x19be7f&&_0x25489a&&_0xf39b92['push']({'annotation':_0x25489a,'range':_0x19be7f});}function _0x352424(_0x119ce5){for(const _0x34c412 of _0x119ce5)for(const _0x3d0e04 of _0x1243df)if(_0x34c412['containsRange'](_0x3d0e04,!_0x49b6cd['isCollapsed']))return _0x34c412;return null;}return _0xf39b92['sort']((_0x4da2a5,_0x30a3d5)=>{const _0x5d0d56=_0x4da2a5['range'],_0x33e622=_0x30a3d5['range'];if(!_0x5d0d56['isEqual'](_0x33e622)){if(_0x5d0d56['containsRange'](_0x33e622,!0x0))return 0x1;if(_0x33e622['containsRange'](_0x5d0d56,!0x0))return-0x1;}return _0x4da2a5['annotation']==_0x5416e6?-0x1:_0x30a3d5['annotation']==_0x5416e6?0x1:0x0;})['map'](_0x1b137d=>_0x1b137d['annotation']);}get['_editorAnnotationsData'](){const _0x55751d=new Map();for(const _0x2aa6d8 of Array['from'](this['_dataCollectors']))for(const [_0x381c7b,_0x55782d]of _0x2aa6d8())_0x55751d['set'](_0x381c7b,_0x55782d);return _0x55751d;}}class st extends _0x2e0f95{['afterInit'](){const _0x531880=this['editor'];if(!_0x531880['plugins']['has']('RestrictedEditingModeEditing'))return;_0x531880['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x2e0f95{constructor(_0x5d53bd){super(_0x5d53bd),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2a5283=this['editor'],_0x344498=_0x2a5283['commands']['get']('importWord'),_0x352b9b=_0x2a5283['plugins']['get'](it);_0x344498&&(_0x344498['on']('execute',(_0x24346c,[,_0x5c4037])=>{_0x5c4037['collaboration_features']={'comments':!0x0,'user_id':_0x352b9b['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x344498,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4715cb,_0x226cdb){const {comment_threads:_0x28236f}=_0x226cdb;_0x28236f&&_0x28236f['forEach'](({thread_id:_0x4abfd4,comments:_0x35d275,is_resolved:_0x34e32f})=>{const _0x417e55=new Date(),_0x1be11b=_0x35d275['map'](({author:_0x5799e1,content:_0x213402,created_at:_0x408032})=>({'content':_0x213402,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x417e55,'attributes':{'@external':{'authorName':_0x5799e1,'createdAt':_0x408032?new Date(_0x408032):new Date(),'source':'importWord'}}})),_0xcec813=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xcec813,'threadId':_0x4abfd4,'comments':_0x1be11b,'resolvedAt':_0x34e32f?_0x417e55:null});});}}class at extends _0x2e0f95{constructor(_0x596dce){super(_0x596dce),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x3aafa0=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x3aafa0,'contentInsertion',(_0x1eec8b,_0x17006a)=>this['_removeMarkersWithoutThreads'](_0x17006a['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x1223c5){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x1223c5;const _0x18565d=this['editor']['plugins']['get']('CommentsRepository');for(const _0x375168 of _0x1223c5['keys']()){const [_0x6d609,_0x34df88]=_0x375168['split'](':');'comment'!=_0x6d609||_0x18565d['hasCommentThread'](_0x34df88)||_0x1223c5['delete'](_0x375168);}return _0x1223c5;}['_registerMarkerInClipboardPipeline'](){const _0x1065b1=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x5ded0b=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x5ded0b&&_0x1065b1['_registerMarkerToCopy']('comment',_0x5ded0b);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x35f0c5){switch(_0x35f0c5){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 _0x2e0f95{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x683465,_0x338325)=>{if(!_0x338325['options']['showCommentHighlights'])return null;if(_0x338325['options']['ignoreResolvedComments']){const {id:_0x16b228}=er(_0x683465['markerName']),_0x14db73=this['editor']['plugins']['get'](o)['getCommentThread'](_0x16b228);if(_0x14db73&&_0x14db73['isResolved']&&_0x683465['item'])return _0x338325['consumable']['consume'](_0x683465['item'],'addMarker:'+_0x683465['markerName']),_0x338325['consumable']['consume'](_0x683465['item'],'removeMarker:'+_0x683465['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x464aba=>{_0x464aba['on']('addMarker:comment',(_0x2719e6,_0x40672b,_0x35f5ba)=>{if(!_0x35f5ba['options']['showCommentHighlights'])return;const _0x10d3cb=_0x40672b['item'];if(!_0x10d3cb)return;const _0x2cfbd5=_0x35f5ba['mapper']['toViewElement'](_0x10d3cb);this['editor']['model']['schema']['isObject'](_0x10d3cb)&&_0x2cfbd5&&!_0x2cfbd5['getCustomProperty']('widget')&&_0x2cfbd5['is']('containerElement')&&_0x434054(_0x2cfbd5,_0x35f5ba['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x442c7f,{writer:_0x241263,options:_0x578548})=>{if(!_0x578548['showCommentHighlights'])return null;const _0x1462b3=_0x241263['createContainerElement']('div'),_0x33f8e3=_0x241263['createEmptyElement']('hr');return _0x241263['addClass']('ck-horizontal-line',_0x1462b3),_0x241263['insert'](_0x241263['createPositionAt'](_0x1462b3,0x0),_0x33f8e3),_0x1462b3;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1d6d8d,{writer:_0x33fd11,options:_0x1370dd})=>{if(!_0x1370dd['showCommentHighlights'])return null;const _0x2d9b36=_0x33fd11['createContainerElement']('span'),_0x2651ba=_0x33fd11['createEmptyElement']('img');return _0x33fd11['addClass']('image-inline',_0x2d9b36),_0x33fd11['insert'](_0x33fd11['createPositionAt'](_0x2d9b36,0x0),_0x2651ba),_0x2d9b36;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x201bba,{writer:_0x5c4a36,options:_0x51d3dd})=>{if(_0x51d3dd['showCommentHighlights'])return _0x5c4a36['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5d3dca,_0x5700a7,_0x4218f4)=>{_0x4218f4['options']['showCommentHighlights']&&_0x5d3dca['stop']();},{'priority':'high'});}}class r extends _0x2e0f95{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(_0x493732){super(_0x493732),this['set']('isThreadsLoadingPaused',!0x0),_0x493732['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x4a4ab3,_0x27723c,_0x4b4710,_0x3a35f6)=>{const _0x3c1c35=_0x493732['plugins']['get'](o),_0x22d63e=_0x4b4710?er(_0x4b4710)['id']:null;_0x493732['model']['change'](()=>{if(_0x22d63e){const _0x5c87f6=this['getAllMarkersForId'](_0x22d63e);for(const _0x5e4b87 of _0x5c87f6)_0x493732['editing']['reconvertMarker'](_0x5e4b87);}if(_0x3a35f6){const {id:_0xdffaf}=er(_0x3a35f6),_0x3604c4=_0x3c1c35['getCommentThread'](_0xdffaf);if(_0x3604c4&&!_0x3604c4['isAttached'])return;const _0x2e5e82=this['getAllMarkersForId'](_0xdffaf);for(const _0x8d1af7 of _0x2e5e82)_0x493732['editing']['reconvertMarker'](_0x8d1af7);}}),_0x22d63e&&this['scrollToThreadMarker'](_0x22d63e);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x553585=this['editor'],_0x4ce440=_0x553585['plugins']['get'](o),_0x826368=_0x553585['config']['get']('collaboration.channelId'),_0x47c07b=_0x4ce440['getCommentThreads']()['filter'](_0x45ce7c=>_0x45ce7c['channelId']!==_0x826368);_0x553585['commands']['add']('addCommentThread',new J(_0x553585)),this['listenTo'](_0x553585,'change:isReadOnly',(_0x2744d6,_0x32e245,_0x40a1e1)=>{_0x4ce440['switchReadOnly'](_0x40a1e1,_0x553585['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x4ce440,ft('addCommentThread',_0x826368),(_0x4dee14,{threadId:_0x14a451})=>{const _0x1c40d0=this['editor']['plugins']['get'](o)['getCommentThread'](_0x14a451);_0x1c40d0&&_0x1c40d0['unlinkedAt']&&this['_attachArchivedThread'](_0x14a451);}),this['listenTo'](_0x4ce440,ft('removeCommentThread',_0x826368),(_0x17af23,{threadId:_0x3cf746})=>{_0x553585['model']['enqueueChange']({'isUndoable':!0x1},_0x44f43b=>{const _0x5ecce2=this['getAllMarkersForId'](_0x3cf746);for(const _0x5e760d of _0x5ecce2)_0x44f43b['removeMarker'](_0x5e760d);});}),this['listenTo'](_0x4ce440,ft('resolveCommentThread',_0x826368),(_0x144052,{threadId:_0x4c332f})=>{(this['_reconvertMarkers'](_0x4c332f),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4c332f)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x4ce440,ft('reopenCommentThread',_0x826368),(_0x43b37a,{threadId:_0x2969f8})=>{this['_reconvertMarkers'](_0x2969f8);},{'priority':'low'}),this['listenTo'](_0x4ce440,ft('addComment',_0x826368),(_0x119c72,{threadId:_0x41209d,isFromAdapter:_0xae2570})=>{const _0x49414b=this['getAllMarkersForId'](_0x41209d);if(_0xae2570||0x0==_0x49414b['length']||!_0x4ce440['hasCommentThread'](_0x41209d))return;0x1===_0x4ce440['getCommentThread'](_0x41209d)['length']&&_0x553585['model']['enqueueChange']({'isUndoable':!0x1},_0x23e58a=>{for(const _0x2fc6ee of _0x49414b)_0x23e58a['updateMarker'](_0x2fc6ee,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x47c07b);}['afterInit'](){!async function(_0x241eac){const _0x39f033=_0x481e80([0x52,0x31,0x49,0x38,0x4d,0x42,0x4a,0x47,0x33,0x6d,0x77,0x34,0x5a,0x6f,0x48,0x50,0x79,0x4f,0x6b,0x59,0x4b,0x6c,0x35,0x64,0x68,0x70,0x39,0x57,0x63,0x62,0x45,0x67,0x55,0x6e,0x69,0x65,0x56,0x66,0x54,0x74,0x76,0x4c,0x71,0x78,0x46,0x30,0x41,0x72,0x58,0x44,0x43,0x32,0x7a,0x53,0x37,0x75,0x73,0x4e,0x6a,0x61,0x36,0x51]),_0x50fcba=0x767ccd01,_0x214e24=0x767b9311^_0x50fcba,_0x5e746c=window[_0x481e80([0x44,0x61,0x74,0x65])][_0x481e80([0x6e,0x6f,0x77])](),_0x123867=_0x241eac[_0x481e80([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd5ea09=new window[(_0x481e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xca20b9=>{_0x123867[_0x481e80([0x6f,0x6e,0x63,0x65])](_0x481e80([0x72,0x65,0x61,0x64,0x79]),_0xca20b9);}),_0x200ab6={[_0x481e80([0x6b,0x74,0x79])]:_0x481e80([0x45,0x43]),[_0x481e80([0x75,0x73,0x65])]:_0x481e80([0x73,0x69,0x67]),[_0x481e80([0x63,0x72,0x76])]:_0x481e80([0x50,0x2d,0x32,0x35,0x36]),[_0x481e80([0x78])]:_0x481e80([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]),[_0x481e80([0x79])]:_0x481e80([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]),[_0x481e80([0x61,0x6c,0x67])]:_0x481e80([0x45,0x53,0x32,0x35,0x36])},_0x14ce08=_0x123867[_0x481e80([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x481e80([0x67,0x65,0x74])](_0x481e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x50bab1(){let _0x3df6bd,_0x164e15=null,_0x1a0f7f=null;try{if(_0x14ce08==_0x481e80([0x47,0x50,0x4c]))return _0x481e80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3df6bd=_0x5412bf(),!_0x3df6bd)return _0x481e80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3df6bd[_0x481e80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a0f7f=_0x3eea10(_0x3df6bd[_0x481e80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3df6bd[_0x481e80([0x6a,0x74,0x69])])),await _0x2a46eb()?_0x1d567a()?_0xd391b1()?_0x481e80([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x106e29()?(_0x3df6bd[_0x481e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x481e80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x164e15=_0x299cdc(_0x481e80([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3df6bd[_0x481e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x481e80([0x74,0x72,0x69,0x61,0x6c])&&(_0x164e15=_0x299cdc(_0x481e80([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e1eb9()):_0x481e80([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x481e80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x481e80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1ceb44){return _0x481e80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd391b1(){const _0x13223e=[_0x481e80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x481e80([0x74,0x72,0x69,0x61,0x6c])][_0x481e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3df6bd[_0x481e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e746c/0x3e8:0xe10*_0x214e24;return _0x3df6bd[_0x481e80([0x65,0x78,0x70])]<_0x13223e;}function _0x1d567a(){const _0x4efbc1=_0x3df6bd[_0x481e80([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4efbc1)return!0x1;if(_0x4efbc1[_0x481e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x481e80([0x2a])))return!0x0;if(_0x4efbc1[_0x481e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x481e80([0x43,0x4d,0x54])))return!0x0;if(_0x4efbc1[_0x481e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x481e80([0x52,0x43,0x4d,0x54]))){if(_0x39bcb2())return!0x0;if(_0x103a89()||_0x475273())return!0x0;}return!0x1;}function _0x106e29(){const _0xc81175=_0x3df6bd[_0x481e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc81175||0x0==_0xc81175[_0x481e80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd7b642}=new URL(window[_0x481e80([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc81175[_0x481e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7b642))return!0x0;const _0x4d083b=_0xd7b642[_0x481e80([0x73,0x70,0x6c,0x69,0x74])](_0x481e80([0x2e]));return _0xc81175[_0x481e80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x573244=>_0x573244[_0x481e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x481e80([0x2a])))[_0x481e80([0x6d,0x61,0x70])](_0x350788=>_0x350788[_0x481e80([0x73,0x70,0x6c,0x69,0x74])](_0x481e80([0x2e])))[_0x481e80([0x73,0x6f,0x6d,0x65])](_0x2128bd=>_0x4d083b[_0x481e80([0x65,0x76,0x65,0x72,0x79])]((_0x4b52fd,_0x3036e2)=>_0x2128bd[_0x3036e2]===_0x4b52fd||_0x2128bd[_0x3036e2]===_0x481e80([0x2a])));}function _0x4e1eb9(){return _0x164e15&&_0x1a0f7f?new window[(_0x481e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46d060,_0x358a94)=>{_0x164e15[_0x481e80([0x74,0x68,0x65,0x6e])](_0x46d060,_0x358a94),_0x1a0f7f[_0x481e80([0x74,0x68,0x65,0x6e])](_0x298509=>{_0x298509!=_0x481e80([0x56,0x61,0x6c,0x69,0x64])&&_0x46d060(_0x298509);},_0x358a94);}):_0x164e15||_0x1a0f7f||_0x481e80([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3eea10(_0x41b4ec,_0x4f31ba){return new window[(_0x481e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a7daf=>{if(_0x41e265())return _0x5a7daf(_0x481e80([0x56,0x61,0x6c,0x69,0x64]));_0x4b16ce(),_0x123867[_0x481e80([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x481e80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4703c2=!0x1;const _0x11663c=_0x29dbf2();function _0x391910(_0x4a1e03){return!!_0x4a1e03&&(typeof _0x4a1e03===_0x481e80([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a1e03===_0x481e80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a1e03[_0x481e80([0x74,0x68,0x65,0x6e])]===_0x481e80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a1e03[_0x481e80([0x63,0x61,0x74,0x63,0x68])]===_0x481e80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16c68a(_0x40d602){_0x179b1c(_0x40d602)[_0x481e80([0x74,0x68,0x65,0x6e])](_0x3b10f0=>{if(!_0x3b10f0||_0x3b10f0[_0x481e80([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x481e80([0x6f,0x6b]))return _0x481e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36aa73(_0xb28803(_0x11663c+_0x4f31ba))!=_0x3b10f0[_0x481e80([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x481e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x481e80([0x56,0x61,0x6c,0x69,0x64]);})[_0x481e80([0x74,0x68,0x65,0x6e])](_0x9ea93=>(_0x67ee73(),_0x9ea93),()=>{const _0x6bbbae=_0x2b3e0a();return null==_0x6bbbae?(_0x67ee73(),_0x481e80([0x56,0x61,0x6c,0x69,0x64])):_0x481e80(_0x5e746c-_0x6bbbae>(0x52704901^_0x50fcba)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x481e80([0x74,0x68,0x65,0x6e])](_0x5a7daf)[_0x481e80([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a7daf(_0x481e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ac430=0x764a2381^_0x50fcba;function _0x67ee73(){const _0x4ce5b3=_0x481e80([0x6c,0x6c,0x63,0x74,0x2d])+_0x36aa73(_0xb28803(_0x41b4ec)),_0x5aa9a8=_0x5d06c5(_0x36aa73(window[_0x481e80([0x4d,0x61,0x74,0x68])][_0x481e80([0x63,0x65,0x69,0x6c])](_0x5e746c/_0x1ac430)));window[_0x481e80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x481e80([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ce5b3,_0x5aa9a8);}function _0x2b3e0a(){const _0x3f4c93=_0x481e80([0x6c,0x6c,0x63,0x74,0x2d])+_0x36aa73(_0xb28803(_0x41b4ec)),_0x119a8a=window[_0x481e80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x481e80([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f4c93);return _0x119a8a?window[_0x481e80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d06c5(_0x119a8a),0x10)*_0x1ac430:null;}function _0x179b1c(_0x36176f){return new window[(_0x481e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ffe99,_0x595e53)=>{_0x36176f[_0x481e80([0x74,0x68,0x65,0x6e])](_0x4ffe99,_0x595e53),window[_0x481e80([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x595e53,0x767d19c1^_0x50fcba);});}}_0x123867[_0x481e80([0x6f,0x6e])](_0x481e80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x276cea,_0x426cce)=>{if(_0x426cce[0x0]!=_0x41b4ec)return _0x5a7daf(_0x481e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x426cce[0x1]={..._0x426cce[0x1],[_0x481e80([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11663c};},{[_0x481e80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x481e80([0x68,0x69,0x67,0x68])}),_0x123867[_0x481e80([0x6f,0x6e])](_0x481e80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9bfd13=>{_0x391910(_0x9bfd13[_0x481e80([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4703c2=!0x0,_0x16c68a(_0x9bfd13[_0x481e80([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x481e80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x481e80([0x6c,0x6f,0x77])}),_0xd5ea09[_0x481e80([0x74,0x68,0x65,0x6e])](()=>{_0x4703c2||_0x5a7daf(_0x481e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41e265(){return _0x123867[_0x481e80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x481e80([0x76,0x69,0x65,0x77])][_0x481e80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x481e80([0x61,0x75,0x74,0x6f]);}function _0x4b16ce(){_0x123867[_0x481e80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x481e80([0x76,0x69,0x65,0x77])][_0x481e80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x481e80([0x61,0x75,0x74,0x6f]);}}function _0x299cdc(_0x4b8010){const _0x3c9af6=[new window[(_0x481e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37c419=>setTimeout(_0x37c419,0x7675f3cd^_0x50fcba)),_0xd5ea09[_0x481e80([0x74,0x68,0x65,0x6e])](()=>new window[(_0x481e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473e38=>{let _0x4e850f=0x0;_0x123867[_0x481e80([0x6d,0x6f,0x64,0x65,0x6c])][_0x481e80([0x6f,0x6e])](_0x481e80([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ca380,_0x54f18b)=>{_0x54f18b[0x0][_0x481e80([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e850f++,_0x4e850f==(0x767cccf9^_0x50fcba)&&(_0x473e38(),_0x5ca380[_0x481e80([0x6f,0x66,0x66])]());});}))];return window[_0x481e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x481e80([0x72,0x61,0x63,0x65])](_0x3c9af6)[_0x481e80([0x74,0x68,0x65,0x6e])](()=>_0x4b8010);}async function _0x1cd282(){await _0xd5ea09,_0x123867[_0x481e80([0x6d,0x6f,0x64,0x65,0x6c])][_0x481e80([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x573633,_0x123867[_0x481e80([0x6d,0x6f,0x64,0x65,0x6c])][_0x481e80([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x573633,_0x123867[_0x481e80([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x481e80([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39bcb2(){return _0x4d31a7(_0x481e80([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1df437(_0x481e80([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x481e80([0x73,0x74,0x61,0x74,0x65])]==_0x481e80([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x103a89(){return _0x4d31a7(_0x481e80([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 _0x475273(){return _0x4d31a7(_0x481e80([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9d2f61(_0x50e863){const _0x280d53=_0x28108b();_0x123867[_0x280d53]=_0x481e80([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50e863,_0x50e863!=_0x481e80([0x56,0x61,0x6c,0x69,0x64])&&_0x1cd282();}function _0x28108b(){const _0x3a9ad0=window[_0x481e80([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x481e80([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x481e80([0x6e,0x6f,0x77])]())[_0x481e80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x481e80([0x2e]),'');let _0x45f289=_0x481e80([0x52]);for(let _0x277f4a=0x0;_0x277f4a<_0x3a9ad0[_0x481e80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x277f4a+=0x2){let _0x2bf2f0=window[_0x481e80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a9ad0[_0x481e80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x277f4a,_0x277f4a+0x2));_0x2bf2f0>=_0x39f033[_0x481e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2bf2f0-=_0x39f033[_0x481e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45f289+=_0x39f033[_0x2bf2f0];}return _0x45f289;}function _0x5412bf(){const _0x19e648=_0x14ce08[_0x481e80([0x73,0x70,0x6c,0x69,0x74])](_0x481e80([0x2e]));if(0x3!=_0x19e648[_0x481e80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f31a6(_0x19e648[0x1]);function _0x5f31a6(_0x280601){const _0x110a75=_0x4a9662(_0x280601);return _0x110a75&&_0x4cb047()?_0x110a75:null;function _0x4cb047(){const _0x2dae40=_0x110a75[_0x481e80([0x6a,0x74,0x69])],_0x2a1f10=window[_0x481e80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dae40[_0x481e80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2dae40[_0x481e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16e070={..._0x110a75,[_0x481e80([0x6a,0x74,0x69])]:_0x2dae40[_0x481e80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2dae40[_0x481e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16e070[_0x481e80([0x76,0x63])],_0xb28803(_0x16e070)==_0x2a1f10;}}}async function _0x2a46eb(){let _0x304d92=!0x0;try{const _0x140425=_0x14ce08[_0x481e80([0x73,0x70,0x6c,0x69,0x74])](_0x481e80([0x2e])),[_0x48f70f,_0x5a1ba2,_0x446e32]=_0x140425;return _0x2d3cca(_0x48f70f),await _0x38fd4b(_0x48f70f,_0x5a1ba2,_0x446e32),_0x304d92;}catch(_0x51a63e){return!0x1;}function _0x2d3cca(_0x2dff4d){const _0x5a213b=_0x4a9662(_0x2dff4d);_0x5a213b&&_0x5a213b[_0x481e80([0x61,0x6c,0x67])]==_0x481e80([0x45,0x53,0x32,0x35,0x36])||(_0x304d92=!0x1);}async function _0x38fd4b(_0x43bde4,_0x51ec37,_0x395a76){const _0x3fc025=window[_0x481e80([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x481e80([0x66,0x72,0x6f,0x6d])](_0x134f8a(_0x395a76),_0x3a8dd2=>_0x3a8dd2[_0x481e80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43bb2a=new window[(_0x481e80([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x481e80([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43bde4+_0x481e80([0x2e])+_0x51ec37),_0x24f7ac=window[_0x481e80([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x481e80([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24f7ac)return;const _0x4e1175=await _0x24f7ac[_0x481e80([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x481e80([0x6a,0x77,0x6b]),_0x200ab6,{[_0x481e80([0x6e,0x61,0x6d,0x65])]:_0x481e80([0x45,0x43,0x44,0x53,0x41]),[_0x481e80([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x481e80([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x481e80([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24f7ac[_0x481e80([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x481e80([0x6e,0x61,0x6d,0x65])]:_0x481e80([0x45,0x43,0x44,0x53,0x41]),[_0x481e80([0x68,0x61,0x73,0x68])]:{[_0x481e80([0x6e,0x61,0x6d,0x65])]:_0x481e80([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e1175,_0x3fc025,_0x43bb2a)||(_0x304d92=!0x1);}}function _0x4a9662(_0x2ff392){return _0x2ff392[_0x481e80([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x481e80([0x65,0x79]))?JSON[_0x481e80([0x70,0x61,0x72,0x73,0x65])](_0x134f8a(_0x2ff392)):null;}function _0x134f8a(_0x47a500){return window[_0x481e80([0x61,0x74,0x6f,0x62])](_0x47a500[_0x481e80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x481e80([0x2b]))[_0x481e80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x481e80([0x2f])));}function _0xb28803(_0x1722c8){let _0x10de01=0x1505;function _0x2028f1(_0x20c531){for(let _0x3dfe39=0x0;_0x3dfe39<_0x20c531[_0x481e80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dfe39++){const _0x19d3a0=_0x20c531[_0x481e80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3dfe39);_0x10de01=(_0x10de01<<0x5)+_0x10de01+_0x19d3a0,_0x10de01&=_0x10de01;}}function _0x24b893(_0xae136a){Array[_0x481e80([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xae136a)?_0xae136a[_0x481e80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24b893):_0xae136a&&typeof _0xae136a==_0x481e80([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x481e80([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xae136a)[_0x481e80([0x73,0x6f,0x72,0x74])]()[_0x481e80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb4d094,_0x3a2e02])=>{_0x2028f1(_0xb4d094),_0x24b893(_0x3a2e02);}):_0x2028f1(window[_0x481e80([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xae136a));}return _0x24b893(_0x1722c8),_0x10de01>>>0x0;}function _0x36aa73(_0x264ef8){return _0x264ef8[_0x481e80([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x481e80([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x481e80([0x30]));}function _0x5d06c5(_0x213d19){return _0x213d19[_0x481e80([0x73,0x70,0x6c,0x69,0x74])]('')[_0x481e80([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x481e80([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d31a7(_0x522f85){return _0x123867[_0x481e80([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x481e80([0x68,0x61,0x73])](_0x522f85);}function _0x1df437(_0x368f60){return _0x123867[_0x481e80([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x481e80([0x67,0x65,0x74])](_0x368f60);}function _0x573633(){}function _0x481e80(_0x37a6ac){return _0x37a6ac['map'](_0x5a1c97=>String['fromCharCode'](_0x5a1c97))['join']('');}_0x9d2f61(await _0x50bab1());}(this);}['destroy'](){const _0x291e0b=this['editor']['plugins']['get'](o),_0xd2b45f=this['editor']['config']['get']('collaboration.channelId');for(const _0x1729f4 of _0x291e0b['getCommentThreads']({'channelId':_0xd2b45f}))_0x291e0b['_detachCommentThread'](_0x1729f4['id']),_0x291e0b['_threads']['delete'](_0x1729f4['id']);super['destroy']();}['hasMarkerForId'](_0x397a37){return this['getAllMarkersForId'](_0x397a37)['length']>0x0;}['getAllMarkersForId'](_0x301d8a){const _0x287caa=[];for(const _0xa285ef of this['editor']['model']['markers'])_0xa285ef['name']['startsWith']('comment:'+_0x301d8a)&&_0x287caa['push'](_0xa285ef);return _0x287caa;}['scrollToThreadMarker'](_0x321504){const _0x50c318=this['_getTargetForId'](_0x321504);_0x50c318&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x321504&&rt({'target':_0x50c318[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x281c4a){this['editor']['model']['change'](()=>{for(const _0x51f17a of this['getAllMarkersForId'](_0x281c4a))this['editor']['editing']['reconvertMarker'](_0x51f17a);});}['_attachArchivedThread'](_0x56b1fe){const _0x553c2e=this['editor']['plugins']['get'](o),_0x21bbaf=this['editor']['plugins']['get'](P),_0x1575e0=_0x553c2e['getCommentThread'](_0x56b1fe);if(!_0x1575e0['isAttached']){const _0x28f8f3=_0x1575e0['attachTo'](()=>this['_getTargetForId'](_0x1575e0['id']));_0x21bbaf['registerAnnotation'](_0x28f8f3),_0x1575e0['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x26402b=this['editor'],_0x59b538=_0x26402b['plugins']['get'](it);_0x26402b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x3721fa,_0x1c148d)=>{const {id:_0x34de2e}=er(_0x3721fa['markerName']),_0x28697c=_0x26402b['plugins']['get'](o)['getCommentThread'](_0x34de2e),_0x87af8c=this['activeMarker']&&er(this['activeMarker'])['id']===_0x34de2e;let _0x5ae672;if(_0x28697c&&_0x28697c['isResolved']&&!_0x87af8c&&_0x3721fa['item'])return _0x1c148d['consumable']['consume'](_0x3721fa['item'],'addMarker:'+_0x3721fa['markerName']),_0x1c148d['consumable']['consume'](_0x3721fa['item'],'removeMarker:'+_0x3721fa['markerName']),null;const _0x474c1e=['ck-comment-marker'];return _0x87af8c&&_0x474c1e['push']('ck-comment-marker--active'),_0x5ae672=_0x28697c&&_0x28697c['length']?_0x28697c['comments']['first']['author']['id']:_0x59b538['me']['id'],{'classes':_0x474c1e,'attributes':{'data-comment':_0x34de2e,'data-author-id':_0x5ae672}};}}),_0x26402b['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x563636,{options:_0x134801})=>{if(_0x134801['showCommentHighlights'])return null;const _0x2e68aa=_0x26402b['plugins']['get'](o),_0xf986f5=_0x26402b['model']['markers']['get'](_0x563636),{id:_0x58541b,part:_0x109741}=er(_0x563636);if(_0xf986f5&&!_0xf986f5['affectsData'])return null;if(_0x134801['ignoreResolvedComments']){const _0x3271d9=_0x2e68aa['getCommentThread'](_0x58541b);if(_0x3271d9&&_0x3271d9['isResolved'])return null;}return{'group':'comment','name':_0x109741?_0x58541b+':'+_0x109741:_0x58541b};}}),_0x26402b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x48498,{writer:_0x5dba9f})=>_0x5dba9f['createElement']('$marker',{'data-name':'comment:'+_0x48498['getAttribute']('id')})}),_0x26402b['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x44a712=this['editor'],_0x403311=_0x44a712['plugins']['get'](o),_0x3dc7e2=new Set(),_0x527161=new Set();_0x44a712['model']['document']['registerPostFixer'](_0x292aa3=>{let _0x2f1ca5=!0x1;for(const {name:_0xe6a875,data:_0x4bab39}of _0x44a712['model']['document']['differ']['getChangedMarkers']()){const {group:_0xea94fa,id:_0x2cab8}=er(_0xe6a875);let _0x17b92=_0x4bab39['newRange'];if('comment'!==_0xea94fa||!_0x17b92)continue;const _0x4c0b3d='$graveyard'===_0x17b92['root']['rootName'];_0x4c0b3d||(_0x17b92=dt(_0x17b92,_0x44a712['model']),!_0x17b92||_0x17b92['isCollapsed']||!_0x4bab39['newRange']||_0x17b92['isEqual'](_0x4bab39['newRange']))?_0x44a712['model']['hasContent'](_0x17b92)&&!_0x4c0b3d?this['isThreadsLoadingPaused']?_0x3dc7e2['add'](_0xe6a875):this['_handleThreadMarker'](_0xe6a875,_0x2cab8):(_0x527161['add'](_0xe6a875),_0x3dc7e2['delete'](_0xe6a875),_0x292aa3['removeMarker'](_0xe6a875),_0x2f1ca5=!0x0):(_0x292aa3['updateMarker'](_0xe6a875,{'range':_0x17b92}),_0x2f1ca5=!0x0);}return _0x2f1ca5;}),this['on']('change:isThreadsLoadingPaused',(_0x34bff4,_0x138ec0,_0x3695f6)=>{if(!_0x3695f6&&_0x3dc7e2['size'])for(const _0x41f2dd of _0x3dc7e2){const {id:_0x183685}=er(_0x41f2dd);_0x3dc7e2['delete'](_0x41f2dd),_0x44a712['model']['markers']['get'](_0x41f2dd)&&this['_handleThreadMarker'](_0x41f2dd,_0x183685);}}),this['listenTo'](_0x44a712['model']['document'],'change',()=>{for(const {name:_0x42001a,data:{newRange:_0x4c2456}}of _0x44a712['model']['document']['differ']['getChangedMarkers']()){const {group:_0x31ada2,id:_0x14f976}=er(_0x42001a);if('comment'!==_0x31ada2)continue;const _0x43433c=_0x403311['getCommentThread'](_0x14f976),_0x3b7054=this['hasMarkerForId'](_0x14f976);_0x43433c&&(!_0x43433c['_hasTargetInContent']&&_0x4c2456&&_0x44a712['editing']['view']['once']('render',()=>{const _0xda677b=_0x44a712['plugins']['get'](N),_0xf35d83=_0x403311['_threadToController']['get'](_0x43433c)['view'];_0xda677b['getByInnerView'](_0xf35d83)['refreshVisibility']();},{'priority':'low'}),_0x43433c['_hasTargetInContent']=_0x3b7054||!!_0x4c2456),_0x4c2456||(_0x527161['add'](_0x42001a),_0x3dc7e2['delete'](_0x42001a));}for(const _0x2743eb of _0x527161){const {id:_0x3aae03}=er(_0x2743eb),_0x5a197c=_0x403311['getCommentThread'](_0x3aae03);if(_0x3dc7e2['delete'](_0x2743eb),!_0x5a197c)continue;const _0x48e82f=this['hasMarkerForId'](_0x3aae03);_0x48e82f||_0x5a197c['isSubmitted']?_0x48e82f||_0x5a197c['unlinkedAt']||_0x5a197c['setUnlinkedAt'](new Date()):_0x5a197c['remove']();}_0x527161['clear']();});}['_handleInitialThreads'](_0x16aab8){_0x16aab8['forEach'](_0x3dc73e=>{_0x3dc73e['unlinkedAt']&&this['_attachArchivedThread'](_0x3dc73e['id']);});}['_getTargetForId'](_0x5cfaf7){const _0x2bcad9=this['editor'],_0x3a4083=this['getAllMarkersForId'](_0x5cfaf7);return et(_0x2bcad9['editing'],_0x3a4083);}['_getTextContext'](_0x11e7f2){const _0x4a3ae1=this['getAllMarkersForId'](_0x11e7f2);let _0x82d03c='',_0x403a99=!0x1;for(const _0x161450 of _0x4a3ae1){const _0x502709=_0x161450['getRange']();for(const _0x2cc89b of Array['from'](_0x502709['getItems']()))_0x2cc89b['is']('$textProxy')?(_0x82d03c&&_0x403a99&&(_0x82d03c+='\x20',_0x403a99=!0x1),_0x82d03c+=_0x2cc89b['data']):_0x403a99=!0x0;_0x403a99=!0x0;}return _0x82d03c['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x42a9cd,_0x118afa){const _0x4fbce8=this['editor'],_0x2a3233=_0x4fbce8['plugins']['get'](o);let _0x2cc912=_0x2a3233['getCommentThread'](_0x118afa);const _0x28a85e=_0x4fbce8['config']['get']('collaboration.channelId'),_0xb83611=_0x4fbce8['plugins']['get'](P);if(_0x2cc912&&(_0x2cc912['unlinkedAt']&&_0x2cc912['setUnlinkedAt'](null),_0x2cc912['isAttached']))return _0x2cc912;return!this['getAllMarkersForId'](_0x118afa)[0x0]['managedUsingOperations']?_0x4fbce8['editing']['view']['once']('render',()=>{if(_0x2a3233['getCommentThread'](_0x118afa))return;const _0xa07ff8=_0x4fbce8['plugins']['get'](N);_0x2cc912=_0x2a3233['openNewCommentThread']({'channelId':_0x28a85e,'threadId':_0x118afa,'target':()=>this['_getTargetForId'](_0x118afa),'context':{'type':'text','value':this['_getTextContext'](_0x118afa)}});const _0x3fdf0b=_0x2a3233['_threadToController']['get'](_0x2cc912)['view'],_0x1c9352=_0xa07ff8['getByInnerView'](_0x3fdf0b);_0x1c9352&&_0xb83611['registerAnnotation'](_0x1c9352);},{'priority':'low'}):_0x2a3233['fetchCommentThread']({'channelId':_0x28a85e,'threadId':_0x118afa})['then'](_0xedb127=>{if('destroyed'!==_0x4fbce8['state']){if(_0x2cc912=_0xedb127,_0x2cc912&&!_0x2cc912['isAttached']){const _0x528b70=_0x2cc912['attachTo'](()=>this['_getTargetForId'](_0x118afa));_0xb83611['registerAnnotation'](_0x528b70),_0x2cc912['isResolved']&&this['_reconvertMarkers'](_0x118afa);}else{if(!_0x2cc912){const _0x3940a0=this['getAllMarkersForId'](_0x118afa);_0x4fbce8['model']['change'](_0x2bbbc0=>{for(const _0x49f0cf of _0x3940a0)_0x2bbbc0['removeMarker'](_0x49f0cf);});}}}}),_0x2cc912;}['_handleThreadMarker'](_0x299b6a,_0x2de79e){const _0x2a2583=this['_attachMarkerToThread'](_0x299b6a,_0x2de79e);_0x2a2583&&!_0x2a2583['context']&&_0x2a2583['setContext']({'type':'text','value':this['_getTextContext'](_0x2de79e)});}['_initAriaMarkerChangeAnnouncements'](){const _0xdb720e=this['editor'];ot(_0xdb720e['model'],({left:_0x43fd6a,entered:_0xa835fb})=>{for(const _0x48cee1 of _0x43fd6a)if(mt(_0x48cee1)){_0xdb720e['ui']['ariaLiveAnnouncer']['announce'](S(_0xdb720e['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x7e5ab7 of _0xa835fb)if(mt(_0x7e5ab7)){_0xdb720e['ui']['ariaLiveAnnouncer']['announce'](S(_0xdb720e['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x4591d8)));break;}});}}function ft(_0x5122b1,_0x4491c1){return _0x4491c1?_0x5122b1+':'+_0x4491c1:_0x5122b1;}function er(_0x164d9f){const _0x434654=_0x164d9f['split'](':');return{'group':_0x434654[0x0],'id':_0x434654[0x1],'part':_0x434654[0x2]};}function dt(_0x3991b2,_0x14e05e){const _0x2af40f=_0x14e05e['schema'],_0x7e6844=_0x14e05e['createRange'](_0x3991b2['start']);for(const _0x28dfa5 of _0x3991b2['getWalker']()){const {type:_0x561df6,item:_0x366f66,nextPosition:_0x1931fc}=_0x28dfa5;if('text'===_0x561df6||_0x2af40f['isObject'](_0x366f66)){const _0x46dd2a=_0x14e05e['createPositionBefore'](_0x366f66);_0x7e6844['isCollapsed']&&(_0x7e6844['start']=_0x46dd2a),_0x7e6844['end']=_0x1931fc;}}return _0x7e6844;}function mt(_0x5de7c2){return'comment'===er(_0x5de7c2['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 _0x2e0f95{['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 _0x17709b=this['editor'],_0x2861b4=_0x17709b['plugins']['get'](o),_0x3a3ea7=_0x17709b['plugins']['get'](r),_0x8adde0=_0x17709b['plugins']['get'](N),_0x518d84=_0x17709b['plugins']['get'](P);_0x17709b['ui']['componentFactory']['add']('comment',()=>{const _0x3c7863=this['_createUIButton'](_0x33cfdf);return _0x3c7863['tooltip']=!0x0,_0x3c7863;}),_0x17709b['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x568100)),_0x518d84['addSourceCollector'](()=>{const _0x3cf64c=[];for(const [_0x4d7f20,_0x1a9c10]of _0x2861b4['_threadToController']){const _0x3ee412=_0x3a3ea7['getAllMarkersForId'](_0x4d7f20['id']),_0x155b81=_0x3ee412['map'](_0x3f94de=>_0x3f94de['getRange']());_0x3ee412['length']>0x0&&_0x3cf64c['push']([_0x1a9c10['view'],_0x155b81]);}return _0x3cf64c;}),this['listenTo'](_0x8adde0,'change:activeAnnotations',(_0x4a9409,_0x1dbe19,_0x40d8ef)=>{const _0x167060=Array['from'](_0x40d8ef)['map'](_0x597002=>_0x597002['innerView'])['find'](_0x38a396=>_0x2861b4['_viewToController']['has'](_0x38a396));if(!_0x167060)return void(_0x3a3ea7['activeMarker']=null);const _0x4b1179=_0x2861b4['_viewToController']['get'](_0x167060)['model']['id'],_0xc48f92='comment:'+_0x4b1179;_0x4b1179&&_0x3a3ea7['hasMarkerForId'](_0x4b1179)?_0x3a3ea7['activeMarker']=_0xc48f92:_0x3a3ea7['activeMarker']&&(_0x3a3ea7['activeMarker']=null);}),this['listenTo'](_0x2861b4,'removeCommentThread',(_0x146ed2,{threadId:_0x1a92bb,isFromAdapter:_0x237712})=>{!_0x237712&&_0x17709b['ui']['focusTracker']['isFocused']&&_0x3a3ea7['hasMarkerForId'](_0x1a92bb)&&_0x17709b['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2861b4,'addComment',(_0x45c43d,{threadId:_0x4d2486,isFromAdapter:_0x2aefeb})=>{if(_0x2aefeb||!_0x3a3ea7['hasMarkerForId'](_0x4d2486)||!_0x2861b4['hasCommentThread'](_0x4d2486))return;0x1===_0x2861b4['getCommentThread'](_0x4d2486)['length']&&(_0x17709b['editing']['view']['focus'](),_0x45c43d['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ee7d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x841d03;for(const _0x1a5464 in _0x2ee7d3){const _0xa11610=_0x1a5464,_0x3d5360=_0x2ee7d3[_0xa11610];if('commentsLicenseKeyValid'==_0x3d5360||'commentsLicenseKeyInvalid'==_0x3d5360||'commentsLicenseKeyExpired'==_0x3d5360||'commentsLicenseKeyDomainLimit'==_0x3d5360||'commentsLicenseKeyNotAllowed'==_0x3d5360||'commentsLicenseKeyEvaluationLimit'==_0x3d5360||'commentsLicenseKeyTrialLimit'==_0x3d5360||'commentsLicenseKeyUsageLimit'==_0x3d5360){delete _0x2ee7d3[_0xa11610],_0x841d03=_0x3d5360,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x841d03&&_0x2ee7d3['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x841d03&&_0x2ee7d3['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x841d03&&_0x2ee7d3['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x841d03&&_0x2ee7d3['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x841d03&&_0x2ee7d3['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x841d03&&_0x2ee7d3['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x841d03&&_0x2ee7d3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xfb948a){const _0xc0dea0=this['editor'],_0x56f45f=new _0xfb948a(_0xc0dea0['locale']),_0x95babd=_0xc0dea0['commands']['get']('addCommentThread');return _0x56f45f['set']({'label':S(_0xc0dea0['locale'],'Comment'),'icon':xt}),_0x56f45f['bind']('isEnabled')['to'](_0x95babd),this['listenTo'](_0x56f45f,'execute',()=>{_0xc0dea0['editing']['view']['focus'](),_0x95babd['execute']();}),_0x56f45f;}}class s extends _0x2e0f95{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x404aee){super(_0x404aee),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x36942e,_0x422c53,_0x3908a1)=>{_0x3908a1?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x567a1b,_0x5e2473]of this['editor']['commands'])_0x5e2473['affectsData']&&'addCommentThread'!==_0x567a1b&&_0x5e2473['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 _0x5032b6=this['editor']['editing']['view']['document'];this['listenTo'](_0x5032b6,'cut',_0x4d57ce=>_0x4d57ce['stop'](),{'priority':'highest'}),this['listenTo'](_0x5032b6,'clipboardInput',_0x4cb84c=>_0x4cb84c['stop'](),{'priority':'highest'}),this['listenTo'](_0x5032b6,'delete',_0x284bd9=>_0x284bd9['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1efdba,_0x21ba94]of this['editor']['commands'])_0x21ba94['affectsData']&&'addCommentThread'!==_0x1efdba&&_0x21ba94['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 _0x116717{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15db80){super(_0x15db80),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x51b236=this['context']['plugins']['get'](N);this['listenTo'](_0x51b236,'_activateAnnotation',(_0x44ad53,_0x3db970)=>{for(const _0x48447c of this['activeUIs']){const _0x625508=this['_uis']['get'](_0x48447c);(0x0,this['_uisData']['get'](_0x48447c)['filter'])(_0x3db970)&&_0x625508['setActiveAnnotation'](_0x3db970);}}),this['listenTo'](_0x51b236,'_deactivateAllAnnotations',()=>{for(const _0x187609 of this['activeUIs']){this['_uis']['get'](_0x187609)['setActiveAnnotation'](null);}}),this['listenTo'](_0x51b236['_visibleAnnotations'],'add',(_0x462037,_0x39ddaa)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x39ddaa);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x5c1272){return this['activeUIs']['has'](_0x5c1272);}['activate'](_0x253036,_0x243dc6=()=>!0x0){const _0x11eefb=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x253036))throw new _0x38a082('annotationsuis-missing-ui',this,{'uiName':_0x253036});this['isActive'](_0x253036)&&this['deactivate'](_0x253036),this['activeUIs']['add'](_0x253036);const _0x36b041=new x();!function({source:_0x15f408,target:_0x1ebc6c,filter:_0x41bbb8}){for(const _0xe7e224 of _0x15f408)_0x41bbb8(_0xe7e224)&&_0x1ebc6c['add'](_0xe7e224);_0x1ebc6c['listenTo'](_0x15f408,'add',(_0x2eea2b,_0x447e91)=>{_0x41bbb8(_0x447e91)&&_0x1ebc6c['add'](_0x447e91);}),_0x1ebc6c['listenTo'](_0x15f408,'remove',(_0x417665,_0x5220d8)=>{_0x1ebc6c['has'](_0x5220d8)&&_0x1ebc6c['remove'](_0x5220d8);});}({'source':_0x11eefb['_visibleAnnotations'],'target':_0x36b041,'filter':_0x243dc6}),this['_uisData']['set'](_0x253036,{'collection':_0x36b041,'filter':_0x243dc6});const _0x381905=this['_uis']['get'](_0x253036);_0x381905['attach'](_0x36b041),this['listenTo'](_0x381905,'change:activeAnnotation',(_0x59540d,_0x131403,_0x311583,_0x31b8da)=>{_0x31b8da&&_0x11eefb['_removeActiveAnnotation'](_0x31b8da),_0x311583&&_0x11eefb['_addActiveAnnotation'](_0x311583);});}['deactivate'](_0x27941e){if(this['activeUIs']['delete'](_0x27941e),!this['_uis']['has'](_0x27941e))throw new _0x38a082('annotationsuis-missing-ui',this,{'uiName':_0x27941e});const _0x32a1c7=this['_uis']['get'](_0x27941e);_0x32a1c7['detach'](),this['stopListening'](_0x32a1c7),this['_uisData']['get'](_0x27941e)['collection']['destroy'](),this['_uisData']['delete'](_0x27941e);}['switchTo'](_0x3bbc4a){if(!this['_uis']['has'](_0x3bbc4a))throw new _0x38a082('annotationsuis-missing-ui',this,{'uiName':_0x3bbc4a});const _0x369993=this['context']['plugins']['get'](N),_0x310bcb=Array['from'](_0x369993['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3bbc4a);const _0xb60ec4=this['_uis']['get'](_0x3bbc4a);_0xb60ec4['setActiveAnnotation'](_0x310bcb),_0xb60ec4['_setSelectedAnnotations']&&_0x310bcb&&_0xb60ec4['_setSelectedAnnotations']([_0x310bcb]);}['deactivateAll'](){for(const _0x38452a of this['activeUIs'])this['deactivate'](_0x38452a);}['register'](_0x276ac2,_0x22f770){if(this['_uis']['has'](_0x276ac2))throw new _0x38a082('annotationsuis-register-already-registered');if('function'!=typeof _0x22f770['attach']||'function'!=typeof _0x22f770['detach']||'function'!=typeof _0x22f770['setActiveAnnotation'])throw new _0x38a082('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x276ac2,_0x22f770);}['refilterAnnotations'](){const _0x61d212=this['context']['plugins']['get'](N)['collection'],_0x14053d=new Map(),_0xa5fdc=Array['from'](this['activeUIs']);for(const _0x1a4212 of this['activeUIs']){const _0x1b163a=this['_uisData']['get'](_0x1a4212)['collection'];for(const _0x373ca5 of _0x1b163a)_0x14053d['set'](_0x373ca5,_0x1a4212);}for(const _0x5bb330 of _0x61d212){const _0x57a254=_0x14053d['get'](_0x5bb330);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5bb330);const _0x5881be=_0xa5fdc['find'](_0x3a5da4=>this['_uisData']['get'](_0x3a5da4)['filter'](_0x5bb330));_0x57a254!==_0x5881be&&(_0x57a254&&this['_uisData']['get'](_0x57a254)['collection']['remove'](_0x5bb330),_0x5881be&&this['_uisData']['get'](_0x5881be)['collection']['add'](_0x5bb330));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2f863e){const _0x484007=[];for(const _0x5f3ebe of this['activeUIs']){(0x0,this['_uisData']['get'](_0x5f3ebe)['filter'])(_0x2f863e)&&_0x484007['push'](_0x5f3ebe);}if(_0x484007['length']>0x1)throw new _0x38a082('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x484007,'annotationType':_0x2f863e['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x1b65a4){super(_0x1b65a4);const _0x2de14e=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 _0x7eedc7(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2de14e['to']('class')],'style':{'minHeight':_0x2de14e['to']('minHeight',_0x5a46fa=>'number'==typeof _0x5a46fa?he(_0x5a46fa+0xa):null)},'dir':_0x1b65a4['uiLanguageDirection'],'role':'application','aria-label':S(_0x1b65a4,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x1b65a4,'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',_0x29af18=>{this['_updateItemPositionInFocusables'](_0x29af18['source']);}),this['list']['forEach'](_0x5e93ca=>{this['focusTracker']['add'](_0x5e93ca['element']),this['_updateItemPositionInFocusables'](_0x5e93ca);}),this['list']['on']('change',(_0x130518,_0x1ea383)=>{for(const _0x5e49f8 of _0x1ea383['removed'])this['focusTracker']['remove'](_0x5e49f8['element']),this['focusables']['remove'](_0x5e49f8);for(const _0x4214ad of _0x1ea383['added'])this['focusTracker']['add'](_0x4214ad['element']),this['_updateItemPositionInFocusables'](_0x4214ad);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x5f7e44){const _0x3956fd=this['focusables']['getIndex'](_0x5f7e44);let _0xd35855,_0x1a2ae2;for(const _0x593e83 of this['focusables'])if(_0x5f7e44['top']<_0x593e83['top']){_0xd35855=_0x593e83;break;}if(_0x1a2ae2=_0xd35855?this['focusables']['getIndex'](_0xd35855):this['focusables']['length'],-0x1!==_0x3956fd){if(_0x3956fd===_0x1a2ae2-0x1)return;this['focusables']['remove'](_0x5f7e44),_0x1a2ae2=_0xd35855?this['focusables']['getIndex'](_0xd35855):this['focusables']['length'];}this['focusables']['add'](_0x5f7e44,_0x1a2ae2);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1af181){super(_0x1af181),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x810b36,_0x7bdcb8)=>_0x810b36+_0x7bdcb8),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x5d6759=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x5d6759['to']('isAnimationDisabled',_0x19eaf3=>_0x19eaf3?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5d6759['to']('top',_0x55d003=>qt(_0x55d003))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xec03ee=this['element']['clientHeight'];_0xec03ee&&(this['height']=_0xec03ee);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x116717{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x544493){super(_0x544493),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 _0x42801a=this['context']['config']['get']('sidebar.container');_0x42801a&&this['setContainer'](_0x42801a);}['setContainer'](_0x575dd9){if(!y(_0x575dd9))throw new _0x38a082('sidebar-setcontainer-invalid-element');this['container']=_0x575dd9;}['_attachToContainer']({viewClass:_0x47e71c='',spaceBetweenItems:_0x33cbc2=0x19}={}){if(!y(this['container']))throw new _0x38a082('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x47e71c,this['_spaceBetweenItems']=_0x33cbc2;}['rearrange']({removedAnnotation:_0x2c7113,previousAnnotation:_0x4cddf2,nextAnnotation:_0x1d177c}){const _0x2f20f6=this['getSidebarItemView'](_0x2c7113);this['view']['list']['remove'](_0x2f20f6),this['_destroySidebarItemView'](_0x2c7113),_0x4cddf2&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4cddf2)),_0x1d177c&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1d177c)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xf7fd53,activatedAnnotation:_0x19064b,disableAnimationOnActivatedAnnotation:_0x440fcc}){if(this['_activeAnnotation']=_0x19064b,_0xf7fd53){_0xf7fd53['isActive']=!0x1;const _0x384ace=this['getSidebarItemView'](_0xf7fd53);_0x384ace&&_0x440fcc&&(_0x384ace['isAnimationDisabled']=!0x1);}if(_0x19064b){const _0x4624d4=this['getSidebarItemView'](_0x19064b);_0x4624d4&&(_0x19064b['isActive']=!0x0,_0x440fcc&&(_0x4624d4['isAnimationDisabled']=!0x0,_0x4624d4['top']+=0x1),this['_alignToTargetRect'](_0x4624d4));}}['_detachFromContainer'](_0x1fd823){if(this['view']['element']['remove'](),_0x1fd823){for(const _0x18f868 of _0x1fd823)this['_destroySidebarItemView'](_0x18f868);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x1aff8b,_0x2553ca){_0x2553ca||(_0x2553ca=_0x1aff8b['view']);const _0x10357a=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x10357a,_0x1aff8b),this['_annotationToSidebarItemView']['set'](_0x1aff8b,_0x10357a),_0x10357a['content']['add'](_0x2553ca),this['listenTo'](_0x1aff8b['view'],'change:targetRect',(_0x5bf42d,_0x4b4bd6,_0x4b313b)=>{const _0x1f970a=this['_getTargetTop'](_0x1aff8b,_0x4b313b);_0x10357a['_targetTop']!=_0x1f970a&&(_0x10357a['_targetTop']=_0x1f970a,this['_setItemTop'](_0x10357a,_0x1f970a));}),this['listenTo'](_0x10357a,'change:top',()=>{this['_recalculate'](_0x10357a,'top');}),this['listenTo'](_0x10357a,'change:bottom',()=>{this['_recalculate'](_0x10357a,'bottom');}),this['_alignToTargetRect'](_0x10357a);const _0x35aa8d=this['_getItemBefore'](_0x10357a);if(_0x35aa8d)this['_alignAfterItem'](_0x35aa8d,_0x10357a)||this['_alignToTargetRect'](_0x10357a);else this['_alignToTargetRect'](_0x10357a);return this['_updateLastItem'](),this['view']['list']['add'](_0x10357a),_0x10357a;}['_alignForTopChange'](_0x442c34){if(!_0x442c34['content']['length'])return;const _0xe68bcd=this['_getItemBefore'](_0x442c34);if(!_0xe68bcd)return;const _0xb8151d=this['_sidebarItemViewToAnnotation']['get'](_0xe68bcd),_0x265cc9=this['_activeAnnotation'];_0x265cc9&&_0x265cc9===_0xb8151d?this['_alignAfterItem'](_0xe68bcd,_0x442c34):this['_alignBeforeItem'](_0x442c34,_0xe68bcd);}['_alignForBottomChange'](_0x2e6213){if(!_0x2e6213['content']['length'])return;const _0x43a940=this['_getItemAfter'](_0x2e6213);if(!_0x43a940)return;const _0x371c14=this['_sidebarItemViewToAnnotation']['get'](_0x43a940),_0xe96ab4=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x53cd77=this['_activeAnnotation'];_0x53cd77&&_0x53cd77===_0x371c14&&_0xe96ab4?(this['_alignBeforeItem'](_0x43a940,_0x2e6213),this['_alignAfterItem'](_0x2e6213,_0x43a940)):_0x53cd77&&_0x53cd77===_0x371c14?this['_alignBeforeItem'](_0x43a940,_0x2e6213):this['_alignAfterItem'](_0x2e6213,_0x43a940);}['_recalculate'](_0x5370fd,_0x3c6bac){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x1781b2,changedProp:_0x3fe23a}of this['_recalculateBuffer'])'top'===_0x3fe23a?this['_alignForTopChange'](_0x1781b2):this['_alignForBottomChange'](_0x1781b2);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5370fd,'changedProp':_0x3c6bac});}['getSidebarItemView'](_0x33c8ad){return this['_annotationToSidebarItemView']['get'](_0x33c8ad);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2da69e){const _0x15745c=this['getSidebarItemView'](_0x2da69e);this['stopListening'](_0x15745c),this['stopListening'](_0x2da69e['view']),_0x15745c['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2da69e),this['_sidebarItemViewToAnnotation']['delete'](_0x15745c);}['_createSidebarView'](){const _0x3a4bba=new V(this['context']['locale']);return _0x3a4bba['render'](),this['on']('change:_lastItem',(_0x2f700c,_0x4d4c23,_0x538e9d,_0x462751)=>{_0x462751&&_0x3a4bba['unbind']('minHeight'),_0x538e9d?_0x3a4bba['bind']('minHeight')['to'](_0x538e9d,'bottom'):_0x3a4bba['minHeight']=null;}),_0x3a4bba;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5aa09c){const _0x43d078=this['_sidebarItemViewToAnnotation']['get'](_0x5aa09c),_0x15f325=_0x43d078&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x43d078)-0x1);return _0x15f325&&this['getSidebarItemView'](_0x15f325)||null;}['_getItemAfter'](_0x813475){const _0x4a6f74=this['_sidebarItemViewToAnnotation']['get'](_0x813475),_0x1cac4f=_0x4a6f74&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4a6f74)+0x1);return _0x1cac4f&&this['getSidebarItemView'](_0x1cac4f)||null;}['_alignBeforeItem'](_0x5d87c8,_0x33762f){_0x5d87c8['updateHeight']();const _0x7db4fb=R(_0x33762f['bottom']+this['_spaceBetweenItems'],_0x5d87c8['top']);return!!_0x7db4fb&&(this['_setItemTop'](_0x33762f,_0x33762f['top']-_0x7db4fb),!0x0);}['_alignAfterItem'](_0x299c2b,_0xb41ba1){_0x299c2b['updateHeight']();const _0x7d380d=R(_0x299c2b['bottom']+this['_spaceBetweenItems'],_0xb41ba1['top']);return!!_0x7d380d&&(this['_setItemTop'](_0xb41ba1,_0xb41ba1['top']+_0x7d380d,!0x1),!0x0);}['_alignToTargetRect'](_0x53b9b1){const _0x567cf1=this['_sidebarItemViewToAnnotation']['get'](_0x53b9b1);if(!_0x567cf1||!_0x567cf1['target']||!_0x567cf1['targetRect'])return;const _0x3c6b29=this['_getTargetTop'](_0x567cf1,_0x567cf1['targetRect']);this['_setItemTop'](_0x53b9b1,_0x3c6b29);}['_getTargetTop'](_0x342fbe,_0x3a8f0c){if(null===_0x3a8f0c)return 0x0;if(_0x342fbe['target']instanceof _0x107475)return _0x3a8f0c['top'];{const _0x4846e1=new _0x107475(this['view']['element'])['top'];return _0x3a8f0c['top']-_0x4846e1;}}['_setItemTop'](_0x49c5bb,_0x423bcf,_0x1800fb=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1800fb&&(_0x423bcf=Math['max'](_0x423bcf,this['_getMaxAvailableTop'](_0x49c5bb))),_0x49c5bb['top']=_0x423bcf;}['_getMaxAvailableTop'](_0x5d7e35){let _0x2c897b=this['_getItemBefore'](_0x5d7e35),_0x296454=0x0;for(;_0x2c897b;)_0x2c897b['updateHeight'](),_0x296454+=this['_spaceBetweenItems']+_0x2c897b['height'],_0x2c897b=this['_getItemBefore'](_0x2c897b);return _0x296454;}}function R(_0x1e8724,_0x357a97){return Math['max'](_0x1e8724-_0x357a97,0x0);}function y(_0x1b7f22){return null!==_0x1b7f22&&'object'==typeof _0x1b7f22&&0x1===_0x1b7f22['nodeType'];}class e extends _0x116717{['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(_0x380d64){super(_0x380d64),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x28280b(),this['_refreshPositioningDebounced']=_0xe850d8(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x348abc=this['context']['plugins']['get'](M),_0x2c8211=this['context']['plugins']['get'](z);_0x348abc['register']('wideSidebar',this),_0x2c8211['container']&&_0x348abc['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x1e9f92){if(_0x1e9f92===this['activeAnnotation'])return;const _0x389395=this['context']['plugins']['get'](z);_0x389395['_activeAnnotation']=_0x1e9f92;const _0x115022=this['activeAnnotation'];_0x389395['refresh']({'blurredAnnotation':_0x115022,'activatedAnnotation':_0x1e9f92}),this['activeAnnotation']=_0x1e9f92;}['attach'](_0x12972d){this['annotations']=_0x12972d;const _0x3025c5=this['context']['plugins']['get'](z);if(_0x3025c5['_annotations']=_0x12972d,this['isAttached'])throw new _0x38a082('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3025c5,'set:container',()=>{this['detach'](),this['listenTo'](_0x3025c5,'change:container',_0xb18768=>{_0xb18768['off'](),this['attach'](_0x12972d);});}),_0x3025c5['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2ca4fb=_0x87e5bc=>{_0x87e5bc['updateTargetRect'](),_0x3025c5['addAnnotation'](_0x87e5bc);};for(const _0x33b52a of _0x12972d)_0x2ca4fb(_0x33b52a);this['listenTo'](_0x12972d,'add',(_0x97cc97,_0x5786a4)=>{_0x2ca4fb(_0x5786a4);}),this['listenTo'](_0x12972d,'remove',(_0x5ee2e9,_0x209ac7,_0x15465e)=>{_0x3025c5['rearrange']({'removedAnnotation':_0x209ac7,'previousAnnotation':_0x12972d['get'](_0x15465e-0x1),'nextAnnotation':_0x12972d['get'](_0x15465e+0x1)}),_0x209ac7===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x12972d,'focus',(_0x8bcd9,_0x41ee58)=>{this['setActiveAnnotation'](_0x41ee58);}),this['listenTo'](_0x12972d,'blur',()=>{this['setActiveAnnotation'](null);});const _0x3dd0a5=this['context']instanceof _0x36db86?this['context']['editors']:new _0x28280b([this['context']]);for(const _0x34cbea of _0x3dd0a5)this['_integrateWithEditorAnnotations'](_0x34cbea);this['listenTo'](_0x3dd0a5,'add',(_0x440113,_0x2867d3)=>{this['listenTo'](_0x2867d3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2867d3);});}),this['listenTo'](_0x3dd0a5,'remove',(_0x17ca57,_0x469fbd)=>{_0x469fbd['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x469fbd['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x38a082('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2c99a7=this['context']['plugins']['get'](z);_0x2c99a7['_detachFromContainer'](this['annotations']),this['stopListening'](_0x2c99a7),this['stopListening'](this['annotations']),this['context']instanceof _0x36db86&&this['stopListening'](this['context']['editors']);for(const _0x391638 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x391638);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x51b90e){if(!_0x51b90e['plugins']['has']('EditorAnnotations'))return;const _0x59f86b=_0x51b90e['plugins']['get']('EditorAnnotations'),_0x5d3621=()=>{const _0x242676=_0x59f86b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x242676[0x0]||null);};this['listenTo'](_0x59f86b,'refresh',_0x5d3621),this['listenTo'](_0x59f86b,'blur',(_0x75e851,{isAnnotationTracked:_0x8f5e79})=>{this['activeAnnotation']&&_0x8f5e79(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x59f86b,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x38a210=>{_0x59f86b['hasDomSelection']()&&(_0x5d3621(),_0x38a210['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x59f86b);}['_destroyEditorAnnotationsIntegration'](_0x41c1ac){this['stopListening'](_0x41c1ac),this['_editorAnnotations']['remove'](_0x41c1ac);}}class D extends _0x33cfdf{['counterView'];constructor(_0x187bff){super(_0x187bff);const _0x30629a=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x357050,_0x8da11d)=>_0x357050?'...':_0x8da11d['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',_0x30629a['to']('annotationType',_0x27ab08=>'ck-annotation-counter__badge--'+_0x27ab08),_0x30629a['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x30629a['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x116717{['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(_0xaa3f1a){super(_0xaa3f1a),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0xce5bed),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x28280b(),this['_refreshPositioningDebounced']=_0xe850d8(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x2b26c4(this['context']['locale']),this['balloonPanelView']=new _0x16e3e1(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x194485){this['annotations']=_0x194485;const _0x29c131=this['context']['plugins']['get'](z),_0x336aba=this['balloonPanelView'];if(_0x29c131['_annotations']=_0x194485,this['isAttached'])throw new _0x38a082('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x29c131,'set:container',()=>{this['detach'](),this['listenTo'](_0x29c131,'change:container',_0x5c550f=>{_0x5c550f['off'](),this['attach'](_0x194485);});}),_0x29c131['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x25b7a0=_0x2c8f15=>{const _0x5c6c09=new D(this['context']['locale']);_0x29c131['addAnnotation'](_0x2c8f15,_0x5c6c09),this['_annotationToNarrowView']['set'](_0x2c8f15,_0x5c6c09),_0x5c6c09['bind']('isDirty','annotationType','number')['to'](_0x2c8f15['view'],'isDirty','type','length'),_0x5c6c09['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x336aba['content']['first']!==_0x2c8f15['view']?(this['_showBalloon'](_0x2c8f15),_0x2c8f15['view']['element']['focus'](),this['setActiveAnnotation'](_0x2c8f15)):this['setActiveAnnotation'](null);});};for(const _0xabc3d2 of _0x194485)_0x25b7a0(_0xabc3d2);this['listenTo'](_0x194485,'add',(_0x1da466,_0x3f3d29)=>{_0x25b7a0(_0x3f3d29);}),this['listenTo'](_0x194485,'remove',(_0x816e48,_0x4f35ef,_0x48551c)=>{this['_annotationToNarrowView']['get'](_0x4f35ef)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4f35ef),_0x29c131['rearrange']({'removedAnnotation':_0x4f35ef,'previousAnnotation':_0x194485['get'](_0x48551c-0x1),'nextAnnotation':_0x194485['get'](_0x48551c+0x1)}),_0x4f35ef===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x194485,'focus',(_0x121d30,_0x13c7da)=>{this['setActiveAnnotation'](_0x13c7da);}),this['listenTo'](_0x194485,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x337fcc,_0x247453)=>{_0x247453['keyCode']===_0x36516c['esc']&&_0x336aba['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x336aba['content']['first']),this['_hideBalloon'](),_0x247453['stopPropagation'](),_0x247453['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x15fb09,_0x5300b7)=>{const _0xf99fac=_0x5300b7['target'];_0x336aba['isVisible']&&_0x336aba['element']['contains'](_0xf99fac)||_0x29c131['view']['element']['contains'](_0xf99fac)||_0x15fb09['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x48b7b3=>_0x48b7b3['contains'](_0xf99fac))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1622d2=this['context']instanceof _0x36db86?this['context']['editors']:new _0x28280b([this['context']]);for(const _0x13a86a of _0x1622d2)this['_integrateWithEditorAnnotations'](_0x13a86a);this['listenTo'](_0x1622d2,'add',(_0x1b626e,_0x193006)=>{this['listenTo'](_0x193006,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x193006);});}),this['listenTo'](_0x1622d2,'remove',(_0x13ba52,_0x8deab3)=>{_0x8deab3['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x8deab3['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x319ca1){if(_0x319ca1===this['activeAnnotation'])return;const _0x16d686=this['context']['plugins']['get'](z);if(_0x16d686['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x319ca1,'disableAnimationOnActivatedAnnotation':!0x0}),_0x319ca1)_0x16d686['getSidebarItemView'](_0x319ca1)?this['_showBalloon'](_0x319ca1):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x319ca1;}['detach'](){if(!this['isAttached'])throw new _0x38a082('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x37f469=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x3c384d=>_0x3c384d['destroy']()),this['_annotationToNarrowView']['clear'](),_0x37f469['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x36db86&&this['stopListening'](this['context']['editors']);for(const _0x1e4b6d of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1e4b6d);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'](_0x5e60ba){if(!_0x5e60ba['plugins']['has']('EditorAnnotations'))return;const _0x567d0e=_0x5e60ba['plugins']['get']('EditorAnnotations'),_0x116192=this['context']['plugins']['get'](z),_0x43b6f2=this['annotations'],_0x748229=this['balloonPanelView'],_0x1bd61f=()=>{const _0xeccf5a=_0x567d0e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0xeccf5a),this['setActiveAnnotation'](_0xeccf5a[0x0]||null);};this['listenTo'](_0x567d0e,'refresh',_0x1bd61f),this['listenTo'](_0x567d0e,'blur',(_0x8dc702,{isAnnotationTracked:_0x1e3017})=>{this['activeAnnotation']&&_0x1e3017(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x567d0e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x43b6f2,'blur',_0x5176c1=>{_0x567d0e['hasDomSelection']()&&_0x5176c1['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x121ab8,_0x1d16a7)=>{const _0x2c6e59=_0x1d16a7['target'];_0x748229['isVisible']&&_0x748229['element']['contains'](_0x2c6e59)||_0x116192['view']['element']['contains'](_0x2c6e59)||this['activeAnnotation']&&_0x567d0e['hasDomSelection']()&&(_0x1bd61f(),_0x121ab8['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x567d0e);}['_destroyEditorAnnotationsIntegration'](_0x1e4ba8){_0x1e4ba8&&(this['stopListening'](_0x1e4ba8),this['_editorAnnotations']['remove'](_0x1e4ba8));}['_setSelectedAnnotations'](_0x4a7b33){for(const _0x4d81f1 of this['_selectedAnnotations'])_0x4a7b33['includes'](_0x4d81f1)||this['_manuallyClosedAnnotationViews']['delete'](_0x4d81f1['view']);this['_selectedAnnotations']=_0x4a7b33;}['_refreshPositioning'](){const _0xc1e14f=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0xc1e14f['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xa97b49){if(this['_manuallyClosedAnnotationViews']['has'](_0xa97b49['view']))return;const _0x3a3780=this['balloonPanelView']['content']['first'];_0x3a3780!==_0xa97b49['view']?(_0x3a3780&&this['_detachListeners'](_0x3a3780),this['_attachListeners'](_0xa97b49['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xa97b49['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x822384=this['balloonPanelView']['content']['first'],_0x175658=_0x822384&&this['annotations']['getByView'](_0x822384);if(!_0x175658||!this['_annotationToNarrowView']['has'](_0x175658))return;const _0x19be23=this['_annotationToNarrowView']['get'](_0x175658)['element'],_0x3da459=(function(){const _0x5d7865=_0x16e3e1['defaultPositions'];return[_0x5d7865['southArrowNorthEast'],_0x5d7865['northArrowSouthEast'],_0x5d7865['southArrowNorth'],_0x5d7865['northArrowSouth'],_0x5d7865['southArrowNorthWest'],_0x5d7865['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x19be23,'positions':_0x3da459});}['_hideBalloon'](){const _0x52dc01=this['balloonPanelView'],_0x1302df=_0x52dc01['content']['first'];_0x1302df&&(this['_detachListeners'](_0x1302df),_0x52dc01['unpin'](),_0x52dc01['content']['clear']());}['_attachListeners'](_0x16b7e6){this['listenTo'](_0x16b7e6,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x16b7e6,'Esc',(_0x487f38,_0x2f66a9)=>{this['_manuallyClosedAnnotationViews']['add'](_0x16b7e6),this['_hideBalloon'](),_0x2f66a9();});}['_detachListeners'](_0x52d2c7){this['stopListening'](_0x52d2c7);}}class c extends _0x2e0f95{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x9b9fa3,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14662d){super(_0x14662d),_0x14662d['editing']['view']['addObserver'](_0x4a6627),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x14662d['plugins']['get'](_0x9b9fa3),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x255068=this['editor']['plugins']['get'](M);_0x255068['context']===this['editor']&&(_0x255068['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x535354,_0x6ca347)=>{const _0x5ea489=this['_balloon'];if(this['isAttached']&&_0x5ea489['visibleView']){const _0x4cd1af=this['annotations']['getByView'](_0x5ea489['visibleView']);_0x4cd1af&&this['_closeAnnotation'](_0x4cd1af),_0x6ca347();}}));}['afterInit'](){const _0x1d25e5=this['editor']['plugins']['get'](M);_0x1d25e5['context']===this['editor']&&(_0x1d25e5['hasActive']()||_0x1d25e5['switchTo']('inline'));}['setActiveAnnotation'](_0x43fbb9){_0x43fbb9!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x43fbb9&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x43fbb9)&&this['_addAnnotationToBalloon'](_0x43fbb9,!0x0),_0x43fbb9['isActive']=!0x0),_0x43fbb9||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x43fbb9);}['attach'](_0x11ac87){this['annotations']=_0x11ac87;const _0x5b5176=this['editor']['plugins']['get'](M),_0x5c0f65=this['_balloon'];if(this['isAttached'])throw new _0x38a082('inlineannotations-attach-already-attached',this);if(_0x5b5176['context']!==this['editor'])throw new _0x38a082('inlineannotations-not-allowed-with-context',this);const _0x43c471=this['editor']['plugins']['get'](P);this['listenTo'](_0x43c471,'refresh',()=>{const _0x1e020a=_0x43c471['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x28f455,_0x4440fe;!this['_forceRefresh']&&(_0x28f455=_0x1e020a,_0x4440fe=this['_selectedAnnotations'],_0x28f455['length']===_0x4440fe['length']&&_0x28f455['every'](_0x369994=>_0x4440fe['includes'](_0x369994)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x1e020a),this['setActiveAnnotation'](_0x1e020a[0x0]||null));}),this['listenTo'](_0x43c471,'blur',(_0x539a4f,{isAnnotationTracked:_0xf272b6})=>{this['activeAnnotation']&&_0xf272b6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x183f73,_0x3fd5e0,_0x48d686)=>{_0x48d686||this['setActiveAnnotation'](null);}),this['listenTo'](_0x11ac87,'remove',(_0x48a6d8,_0x48bc20)=>{this['_removeAnnotationFromBalloon'](_0x48bc20),_0x48bc20===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5c0f65,'change:visibleView',(_0x43fdf6,_0x208a0b,_0x5052a4,_0x4c903e)=>{_0x4c903e&&this['stopListening'](_0x4c903e);const _0x41a70e=_0x11ac87['getByView'](_0x5052a4);_0x5052a4&&_0x41a70e&&(this['listenTo'](_0x5052a4,'change:height',()=>{_0x5c0f65['updatePosition']();}),this['listenTo'](_0x5052a4,'Esc',()=>{this['_closeAnnotation'](_0x41a70e),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x41a70e&&this['setActiveAnnotation'](_0x41a70e));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5c0f65['visibleView']&&(_0x11ac87['getByView'](_0x5c0f65['visibleView'])&&_0x5c0f65['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 _0x38a082('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x9001c9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x9001c9);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x4bfafe){for(const _0x4c7312 of this['_selectedAnnotations'])_0x4bfafe['includes'](_0x4c7312)||this['_manuallyClosed']['delete'](_0x4c7312);for(const _0x14edaa of this['annotations'])_0x4bfafe['includes'](_0x14edaa)||this['_removeAnnotationFromBalloon'](_0x14edaa);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x2b41c3 of _0x4bfafe)this['_addAnnotationToBalloon'](_0x2b41c3);}this['_selectedAnnotations']=_0x4bfafe;}['_addAnnotationToBalloon'](_0xe34320,_0x4e982d=!0x1){this['_manuallyClosed']['has'](_0xe34320)||(this['_addedAnnotations']['has'](_0xe34320)||this['_balloon']['hasView'](_0xe34320['view'])||(this['_addedAnnotations']['add'](_0xe34320),this['_balloon']['add']({'stackId':_0xe34320['view']['id'],'view':_0xe34320['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xe34320)}})),_0x4e982d&&this['_balloon']['showStack'](_0xe34320['view']['id']));}['_getBalloonTargetForAnnotation'](_0x1ec37f){const _0x30d646=_0x1ec37f['target'],_0x51b65e=this['editor']['editing']['view'],_0x3a563f=_0x51b65e['document']['selection']['getFirstRange'](),_0x2b0987=_0x51b65e['domConverter']['viewRangeToDom'](_0x3a563f);if(_0x2b0987['collapse'](!0x0),_0x30d646){if(_0x30d646 instanceof _0x107475)return _0x30d646;let _0x42accf=[];for(const _0x5cb540 of _0x30d646)_0x42accf['push'](...(_0x525169=_0x5cb540['getClientRects'](),Array['from'](_0x525169)['map'](DOMRect['fromRect'])));_0x42accf=function(_0x2317b8){const _0x229edd=[];let _0x212f75=_0x2317b8[0x0];for(let _0x1daffb=0x1;_0x1daffb<_0x2317b8['length'];_0x1daffb++)b(_0x212f75,_0x2317b8[_0x1daffb])?_0x212f75['width']+=_0x2317b8[_0x1daffb]['width']:(_0x229edd['push'](_0x212f75),_0x212f75=_0x2317b8[_0x1daffb]);return _0x229edd['push'](_0x212f75),_0x229edd;}(_0x42accf);const _0x363593=_0x2b0987['getBoundingClientRect']();return _0x42accf['find'](_0x52a1e2=>_0x52a1e2['top']<=_0x363593['top']&&_0x52a1e2['bottom']>=_0x363593['bottom']&&_0x52a1e2['left']<=_0x363593['left']&&_0x52a1e2['right']>=_0x363593['right'])||_0x42accf[0x0];}var _0x525169;return _0x1ec37f['targetRect']||_0x2b0987;}['_removeAnnotationFromBalloon'](_0x3b1dce){this['_addedAnnotations']['has'](_0x3b1dce)&&this['_balloon']['hasView'](_0x3b1dce['view'])&&(this['_addedAnnotations']['delete'](_0x3b1dce),this['_balloon']['remove'](_0x3b1dce['view']));}['_closeAnnotation'](_0x519fbf){this['_manuallyClosed']['add'](_0x519fbf),this['_removeAnnotationFromBalloon'](_0x519fbf);}}function b(_0x215e77,_0x53c85b){return _0x215e77['top']===_0x53c85b['top']&&_0x215e77['bottom']===_0x53c85b['bottom']&&_0x215e77['right']===_0x53c85b['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(_0x2ca10e,_0x235c61){super(_0x2ca10e),this['set']('isEmpty',!_0x235c61['length']),this['focusTracker']=new _0x7eedc7(),this['_annotationViews']=_0x235c61,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x235c61,'focusTracker':this['focusTracker']}),this['listenTo'](_0x235c61,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x235c61,'remove',(_0x1aaf82,_0x863656)=>{_0x863656['isActive']&&this['focus'](),_0x235c61['length']||(this['isEmpty']=!0x0);});const _0xe95096=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x2ca10e,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x235c61},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0xe95096['if']('isEmpty','ck-hidden',_0x559762=>!_0x559762)]},'children':[{'text':S(_0x2ca10e,'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 _0x2a41da of this['_annotationViews'])this['focusTracker']['add'](_0x2a41da['element']);this['_annotationViews']['on']('change',(_0x2255c8,{added:_0xff8082,removed:_0x35b8ba})=>{for(const _0xeb4b43 of _0xff8082)this['focusTracker']['add'](_0xeb4b43['element']);for(const _0xc041db of _0x35b8ba)this['focusTracker']['remove'](_0xc041db['element']);});}}class f extends _0x116717{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x45bd04){super(_0x45bd04),this['archivedThreads']=new _0x28280b();}['init'](){const _0x5afe64=this['context'],_0x22d056=_0x5afe64['plugins']['get'](o),_0x135bca=_0x5afe64['plugins']['get'](N);this['listenTo'](_0x22d056,'addCommentThread',(_0x4c2f16,{threadId:_0x1d2f45})=>{const _0x569c3e=_0x22d056['getCommentThread'](_0x1d2f45);_0x569c3e['archivedAt']&&this['archivedThreads']['add'](_0x569c3e,this['_calculatePosition'](_0x569c3e['archivedAt'])),this['listenTo'](_0x569c3e,'change:archivedAt',(_0x5ce8f3,_0xff25a8,_0x2b5e65)=>{_0x2b5e65?this['archivedThreads']['has'](_0x569c3e)||this['archivedThreads']['add'](_0x569c3e,this['_calculatePosition'](_0x569c3e['archivedAt'])):this['archivedThreads']['has'](_0x569c3e)&&this['archivedThreads']['remove'](_0x569c3e);});}),this['listenTo'](_0x22d056,'removeCommentThread',(_0x4f3c49,{threadId:_0x49390d})=>{const _0xc8b5cf=_0x22d056['getCommentThread'](_0x49390d);this['stopListening'](_0xc8b5cf),this['archivedThreads']['has'](_0xc8b5cf)&&this['archivedThreads']['remove'](_0xc8b5cf);},{'priority':'highest'}),this['listenTo'](_0x135bca['collection'],'focus',(_0x1d22dd,_0x5b0c4f)=>{_0x5b0c4f['isVisible']||(_0x5b0c4f['isActive']=!0x0,_0x135bca['activate'](_0x5b0c4f));});}['_calculatePosition'](_0x4d7f81){const _0x22ce7b=[...this['archivedThreads']]['findIndex'](_0x2c10b7=>_0x2c10b7['archivedAt']<_0x4d7f81);return _0x22ce7b>-0x1?_0x22ce7b:this['archivedThreads']['length'];}}class a extends _0x2e0f95{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x15a48a];}constructor(_0x22a84a){super(_0x22a84a),this['annotationViews']=new _0x35bed3(),this['_pendingThreads']=[];}['init'](){const _0x2a53b3=this['editor'],_0x3fd3f0=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x2a53b3['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x33cfdf,!0x0)),_0x2a53b3['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x56c83b=this['_createCommentsArchiveButton'](_0x568100);return _0x56c83b['set']({'role':'menuitemcheckbox'}),_0x56c83b;});const _0x3bbf9b=_0x2a53b3['plugins']['get'](f),_0x36ab66=_0x2a53b3['plugins']['get']('Annotations'),_0xa24f7c=_0x2a53b3['plugins']['get']('CommentsRepository');_0x3bbf9b['archivedThreads']['forEach'](_0x51d393=>{this['_handleNewThread'](_0x51d393);}),this['listenTo'](_0x3bbf9b['archivedThreads'],'add',(_0xcd3014,_0x49941c)=>{this['_handleNewThread'](_0x49941c);}),this['listenTo'](_0x36ab66['collection'],'add',(_0x2313d4,_0x118fa8)=>{const _0x57d886=this['_pendingThreads']['find'](_0x1bedd8=>{const _0xd099b7=_0xa24f7c['_threadToController']['get'](_0x1bedd8);return _0xd099b7&&_0x118fa8['innerView']===_0xd099b7['view'];});if(_0x57d886){const _0x23d9e8=this['_calculatePosition'](_0x57d886['archivedAt']);this['annotationViews']['add'](_0x118fa8['view'],_0x23d9e8),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x57d886),0x1);}}),this['listenTo'](_0x3bbf9b['archivedThreads'],'remove',(_0xeae1db,_0x7228bc)=>{const _0x9f1744=_0x2a53b3['config']['get']('collaboration.channelId');if(!_0x9f1744||_0x7228bc['channelId']===_0x9f1744){const _0xd8c816=_0xa24f7c['_threadToController']['get'](_0x7228bc),_0x4d5390=_0x36ab66['getByInnerView'](_0xd8c816['view']);this['annotationViews']['remove'](_0x4d5390['view']),this['stopListening'](_0x4d5390['focusableElements']);}}),this['listenTo'](_0x36ab66['collection'],'add',(_0x3c2140,_0x5ce19b)=>{this['listenTo'](_0x5ce19b,'escape',_0x3fd3f0);}),this['listenTo'](_0x36ab66['collection'],'remove',(_0x5b0bc6,_0x41ec4b)=>{this['stopListening'](_0x41ec4b,'escape',_0x3fd3f0);});}['_handleNewThread'](_0x39b816){const _0x5f50f8=this['editor']['plugins']['get']('CommentsRepository'),_0x29bc6e=this['editor']['plugins']['get']('Annotations'),_0x168c65=this['editor']['config']['get']('collaboration.channelId');if(!_0x168c65||_0x39b816['channelId']===_0x168c65){const _0x5626a4=_0x5f50f8['_threadToController']['get'](_0x39b816);if(!_0x5626a4)return void this['_pendingThreads']['push'](_0x39b816);const _0x12c817=this['_calculatePosition'](_0x39b816['archivedAt']),_0x171368=_0x29bc6e['getByInnerView'](_0x5626a4['view']);_0x171368['isVisible']&&_0x29bc6e['_visibleAnnotations']['remove'](_0x171368),this['annotationViews']['add'](_0x171368['view'],_0x12c817);}}['_calculatePosition'](_0x4407ae){const _0x2460a1=this['editor']['config']['get']('collaboration.channelId'),_0x1630a9=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x320002=>_0x320002['channelId']===_0x2460a1)['findIndex'](_0x45a417=>_0x45a417['archivedAt']<_0x4407ae);return _0x1630a9<0x0||_0x1630a9>this['annotationViews']['length']?this['annotationViews']['length']:_0x1630a9-0x1;}['_toggleDialog'](){const _0x909104=this['editor'],_0x52a06d=_0x909104['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x909104['locale'],this['annotationViews'])),'commentsArchive'===_0x52a06d['id']?_0x52a06d['hide']():_0x52a06d['show']({'id':'commentsArchive','title':S(_0x909104['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x354aa5['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x48237d,_0x5eec86=!0x1){const _0x1e23e3=this['editor']['locale'],_0x2eea6f=this['editor']['plugins']['get']('Dialog'),_0x2e2256=new _0x48237d(_0x1e23e3);return _0x2e2256['bind']('isEnabled')['to'](this,'isEnabled'),_0x2e2256['bind']('isOn')['to'](_0x2eea6f,'id',_0x3ef09d=>'commentsArchive'===_0x3ef09d),_0x2e2256['set']({'label':S(_0x1e23e3,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x5eec86&&(_0x2e2256['tooltip']=!0x0),this['listenTo'](_0x2e2256,'execute',()=>this['_toggleDialog']()),_0x2e2256;}['_hideDialogOnAnnotationEscape']=_0x80cc4d=>{const _0x396442=_0x80cc4d['source'];if(!this['annotationViews']['has'](_0x396442['view']))return;const _0x51f6f7=this['editor']['plugins']['get']('Dialog');_0x51f6f7['isOpen']&&'commentsArchive'===_0x51f6f7['id']&&(_0x51f6f7['hide'](),_0x80cc4d['stop']());};}class p extends _0x2e0f95{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};
|