@ckeditor/ckeditor5-comments 43.3.1 → 44.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -6
- package/build/comments.js +1 -1
- package/dist/augmentation.d.ts +8 -1
- package/dist/comments/commentsarchiveui.d.ts +7 -0
- package/dist/comments/commentsediting.d.ts +4 -0
- package/dist/comments/commentsrepository.d.ts +1 -6
- package/dist/comments/commentsui.d.ts +4 -0
- package/dist/index-editor.css +37 -37
- package/dist/index.css +46 -46
- package/dist/index.d.ts +1 -0
- 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 +15 -15
- 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/augmentation.d.ts +8 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +7 -0
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +4 -0
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1 -6
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.d.ts +4 -0
- 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/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.d.ts +1 -0
- 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
|
-
((()=>Vt)());constructor(_0x1ef422={}){(_0x1ef422=Object['assign']({},_0x1ef422))['plugins']||(_0x1ef422['plugins']=Xt['defaultPlugins']),super(_0x1ef422),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']();}['create'](){const _0x4ee7ca=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x4ee7ca))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x568580=>{const _0x46c29d=this['model']['document']['getRoot'](),_0x2d0c10=_0x46c29d&&_0x46c29d['getChild'](_0x46c29d['childCount']-0x1);_0x568580['setSelection'](_0x2d0c10,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x4b370a=this['editing']['view'],_0xe1267=_0x4b370a['document']['getRoot'](),_0x210bd3=_0xe1267['getChild'](0x0);_0xe1267['childCount']>0x1||!_0x210bd3||'p'!=_0x210bd3['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(Bt(_0x4b370a,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x210bd3['placeholder']=this['placeholder']),zt({'view':_0x4b370a,'element':_0x210bd3,'keepOnFocus':!0x0}),this['placeholderElement']=_0x210bd3);}}class rs extends _t{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x570183,_0x5777d8={}){super(_0x570183),this['editor']=null,this['_editorConfig']=_0x5777d8,this['set']('value',_0x5777d8['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x570183,'Reply...')),this['set']('submitLabel',S(_0x570183,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new Et(),this['focusTracker']=new _0x465762(),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',(_0x2fc58e,_0x30e212)=>{this['cancelButtonView']['fire']('execute'),_0x30e212();}),this['keystrokes']['set']('Ctrl+Enter',(_0x365590,_0x3a6288)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3a6288());}),this['on']('submit',(_0xf9f7c0,_0x1eaabb)=>{_0x1eaabb['length']>0xfde8?(alert(S(_0x570183,'TOO_LONG_COMMENT_ALERT',[_0x1eaabb['length'],0xfde8])),_0xf9f7c0['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Xt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x459823=this['editor'];this['element']['insertBefore'](_0x459823['ui']['element'],this['element']['firstChild']),_0x459823['model']['document']['on']('change',()=>this['value']=_0x459823['getData']()),_0x459823['bind']('placeholder')['to'](this),this['focusables']['add'](_0x459823['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x158581){-0x1===_0x158581?(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:_0x3842d8}=this,_0x2cbf85=new _0x1c4b84(_0x3842d8);return _0x2cbf85['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2cbf85['withText']=!0x0,_0x2cbf85['bind']('label')['to'](this,'submitLabel'),_0x2cbf85['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2cbf85['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x18ccf1,_0x731e67)=>!_0x731e67&&!!_0x18ccf1['trim']()),_0x2cbf85;}['_createCancelButton'](){const {locale:_0xbcb6b1}=this,_0x10a883=new _0x1c4b84(_0xbcb6b1);return _0x10a883['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x10a883['label']=S(_0xbcb6b1,'Cancel'),_0x10a883['withText']=!0x0,_0x10a883['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x10a883;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x39ea62=>{this['focusTracker']['add'](_0x39ea62['element']);}),this['focusables']['on']('change',(_0x41b604,_0x4fe318)=>{for(const _0x2f6a24 of Array['from'](_0x4fe318['added'])['reverse']())this['focusTracker']['add'](_0x2f6a24['element']);});}}class Pt extends _t{constructor(_0x55c5b1,_0x12d3f4,_0x51be09){super(_0x55c5b1),this['commentInputView']=new rs(_0x55c5b1,_0x51be09),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1e335c,_0x22e340)=>_0x1e335c||!!_0x22e340),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 _0xcaa168(_0x55c5b1,_0x12d3f4),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'](_0x1712a3){this['commentInputView']['focus'](_0x1712a3);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x39c881,_0x2be8a7)=>{const {submitButtonView:_0x4dfc42,cancelButtonView:_0x2b225e,editor:_0x5d92c2}=this['commentInputView'];[_0x4dfc42['element'],_0x2b225e['element'],_0x5d92c2?_0x5d92c2['editing']['view']['getDomRoot']():null]['filter'](_0x32c206=>_0x32c206)['some'](_0x195247=>_0x195247['contains'](_0x2be8a7['target']))||(this['focus'](),_0x2be8a7['preventDefault']());});}}class cs extends _t{constructor(_0x2ddbec){super(_0x2ddbec);const _0x472f62=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x472f62['to']('count',_0x3c10fe=>S(_0x2ddbec,'NUMBER_OF_COMMENTS',_0x3c10fe))}]});}}class xt extends _t{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0xbd9baf,_0x1fd924,_0x3f69fa){super(_0xbd9baf);const _0xfe9f42=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1fd924['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1fd924,this['_config']=_0x3f69fa,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x465762(),this['keystrokes']=new Et(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1ac3cf=>this['commentViews']['map'](_0x7824d4=>_0x7824d4['element'])['includes'](_0x1ac3cf['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0xbd9baf),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x42617a=>_0x42617a-this['_config']['maxCommentsWhenCollapsed']);for(const _0x358d9d of _0x1fd924['comments'])this['_handleNewCommentModel'](_0x358d9d);this['_handleInfoComment'](),this['listenTo'](_0x1fd924['comments'],'add',(_0x252e7c,_0xb56e3d)=>{const _0x47718e=this['_calculatePosition'](_0xb56e3d);this['length']++,this['_handleNewCommentModel'](_0xb56e3d,_0x47718e),this['refreshVisibleViews']();}),this['listenTo'](_0x1fd924['comments'],'remove',(_0x465ba7,_0x124035)=>{this['length']--,this['_handleRemoveCommentModel'](_0x124035),this['refreshVisibleViews']();}),this['listenTo'](_0x1fd924,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1fd924,'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',_0xfe9f42['if']('length','ck-hidden',_0x565268=>!_0x565268)],'aria-label':S(_0xbd9baf,'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'](_0x51f798){-0x1===_0x51f798?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4e6150 of this['commentViews'])_0x4e6150['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x4a3aec,_0x1524ba){const _0x416762=new this['_config']['CommentView'](this['locale'],_0x4a3aec,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x416762['viewUid']=_0x4a3aec['id'],_0x416762['delegate']('removeComment')['to'](this),_0x416762['delegate']('updateComment')['to'](this),_0x416762['delegate']('resolveCommentThread')['to'](this),_0x416762['delegate']('editorReady')['to'](this),_0x416762['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x416762,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x416762,_0x1524ba);}['_calculatePosition'](_0x5b22fd){const _0x25614e=this['_model']['_findOptimalIndex'](_0x5b22fd);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x5b22fd['authoredAt']?_0x25614e-0x1:_0x25614e:_0x25614e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3b66e8={'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'],_0x3b66e8,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3b66e8));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x292f81){const _0x1640ad=this['commentViews']['remove'](_0x292f81['id']);this['stopListening'](_0x1640ad),_0x1640ad['isEditMode']&&this['_updateHasDirtyComment'](),_0x1640ad['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2c0035=>_0x2c0035['isEditMode']);}['_rearrangeCollapse'](){const _0x49ff70=function(_0x5c1ca5){const _0x1457ee=new _0x82816a();for(const _0x4694bc of _0x5c1ca5)_0x1457ee['add'](_0x4694bc);return _0x1457ee;}(this['commentViews']),_0x36d318=this['_collapsedCommentsView']['count'];for(let _0x30a450=0x1;_0x30a450<=_0x36d318;_0x30a450++)_0x49ff70['remove'](0x1);for(const _0x5d5f3d of _0x49ff70)_0x5d5f3d['collapse']();_0x36d318>0x0&&_0x49ff70['add'](this['_collapsedCommentsView'],0x1),ms(_0x440c02(Array['from'](this['visibleViews']),Array['from'](_0x49ff70)),this['visibleViews'],_0x49ff70);}['_rearrangeExpand'](){ms(_0x440c02(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x282674 of this['visibleViews'])_0x282674['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x28aaf9=>{this['focusTracker']['add'](_0x28aaf9['element']),this['keystrokes']['listenTo'](_0x28aaf9['element']);}),this['commentViews']['on']('change',(_0x178c5f,_0x191247)=>{for(const _0x52b3c6 of _0x191247['removed'])this['focusTracker']['remove'](_0x52b3c6['element']),this['keystrokes']['stopListening'](_0x52b3c6['element']);for(const _0x262462 of Array['from'](_0x191247['added'])['reverse']())this['focusTracker']['add'](_0x262462['element']),this['keystrokes']['listenTo'](_0x262462['element']);});}}function ms(_0x475eaa,_0x471bbc,_0x548b55){let _0x4652c7=0x0;for(const _0x263356 of _0x475eaa)switch(_0x263356){case'insert':_0x471bbc['add'](_0x548b55['get'](_0x4652c7),_0x4652c7),_0x4652c7++;break;case'delete':_0x471bbc['remove'](_0x4652c7);break;case'equal':_0x4652c7++;}}class ls extends _t{constructor(_0x12c98e){super(_0x12c98e);const _0x4a04a2=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4a04a2['to']('contextValue',_0x2cacd2=>S(_0x12c98e,'THREAD_CONTEXT_LABEL',_0x2cacd2)),'tabindex':-0x1},'children':[{'text':_0x4a04a2['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class ts extends _t{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xb8e4d,_0x1c84bc){super(_0xb8e4d);const _0x1dec89=this['bindTemplate'];this['_model']=_0x1c84bc,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x465762(),this['keystrokes']=new Et(),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',_0x279912=>!!_0x279912),this['bind']('contextValue')['to'](this['_model'],'context',_0x87e9db=>_0x87e9db&&_0x87e9db['value']?this['_trimContextValue'](_0x87e9db['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',_0x1dec89['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 _0x41f8e9=new _0x1c4b84(this['locale']);return _0x41f8e9['label']=S(this['locale'],'Reopen'),_0x41f8e9['tooltip']=S(this['locale'],'Reopen'),_0x41f8e9['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>',_0x41f8e9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x417a74=>!_0x417a74),_0x41f8e9['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5d8d40,_0x5bf837)=>_0x5d8d40&&_0x5bf837),_0x41f8e9['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x41f8e9;}['_trimContextValue'](_0x55fb31){if(_0x55fb31['length']<0x96)return _0x55fb31;const _0x4e53df=_0x55fb31['lastIndexOf']('\x20',0x93);return _0x55fb31['substring'](0x0,_0x4e53df>-0x1?_0x4e53df:0x93)+'...';}['_attachContextActions'](){const _0x168017=this['element']['querySelector']('.ck-context'),_0x70062=_0x168017['querySelector']('.ck-context__value');this['listenTo'](_0x168017,'mouseenter',()=>{_0x70062['offsetWidth']<_0x70062['scrollWidth']&&_0x168017['classList']['add']('overlay');}),this['listenTo'](_0x168017,'mouseleave',()=>{_0x168017['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x177c8c of this['focusables'])this['focusTracker']['add'](_0x177c8c['element']),this['keystrokes']['listenTo'](_0x177c8c['element']);}['_createContextView'](){const _0x4d8337=new ls(this['locale']);return _0x4d8337['bind']('contextValue')['to'](this),_0x4d8337;}}class es extends _t{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x45fe84,_0x33bb02,_0x188eaf,_0x41b613){super(_0x45fe84),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x33bb02,this['_localUser']=_0x188eaf,this['_config']=_0x41b613,this['commentThreadHeaderView']=new ts(_0x45fe84,_0x33bb02),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new _0x252e69(_0x45fe84,S(_0x45fe84,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new xt(_0x45fe84,_0x33bb02,Object['assign']({'CommentView':this['_config']['CommentView']},_0x41b613)),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',(_0x8c3e68,_0x405ed2)=>_0x8c3e68||!!_0x405ed2),this['bind']('isUnlinked')['to'](_0x33bb02,'unlinkedAt',_0x7d4e8c=>!!_0x7d4e8c),this['bind']('ariaLabel')['to'](this,'length',_0x59ff05=>{const _0xa0dc65=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x59ff05,_0xa0dc65]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x465762(),this['keystrokes']=new Et(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x37adb3=>_0x37adb3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x532d9a(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x27280b=new Pt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x51ea99=_0x27280b['commentInputView'];return _0x27280b['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x51ea99,'value',(_0x5c4c82,_0x41a29f,_0x565bc0,_0x4dca88,_0x5abc39)=>!!_0x5abc39||!!_0x4dca88&&_0x565bc0&&!_0x41a29f||_0x5c4c82&&_0x565bc0&&!_0x41a29f),_0x51ea99['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3067b2,_0x2c00e9,_0x111712)=>{let _0x109d56;return _0x109d56=_0x111712&&_0x2c00e9?'Reply\x20to\x20reopen\x20discussion...':_0x3067b2?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x109d56);}),_0x51ea99['bind']('submitLabel')['to'](this,'length',_0x474874=>S(this['locale'],_0x474874?'Reply':'Comment')),_0x51ea99['on']('submit',(_0x521f78,_0x5cad42)=>{this['fire']('addComment',_0x5cad42),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x51ea99['on']('cancel',()=>{this['focus']();}),_0x51ea99['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x51ea99['on']('cancel',_0x273a94=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x273a94['stop']());}),this['on']('change:isActive',(_0x41ad2e,_0x4b9c02,_0x11083a)=>{_0x11083a||this['length']||_0x51ea99['value']||this['fire']('removeCommentThread');}),_0x27280b;}}class Ct extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(
|
|
28
|
-
ti(
|
|
29
|
-
_0x226f8d(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1703e8,target:_0x286b7d,type:_0xa37040,isVisible:_0x2d5c3e=!0x0}){super(),this['view']=_0x1703e8,this['view']['element']||this['view']['render'](),this['_type']=_0xa37040,this['_target']=_0x286b7d,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x82816a([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x1739d,_0x4420e2)=>{this['view']['focusTracker']['add'](_0x4420e2);}),this['focusableElements']['on']('remove',(_0x17c5c4,_0x543f60)=>{this['view']['focusTracker']['remove'](_0x543f60);}),this['set']('isVisible',_0x2d5c3e);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x42dcc0=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x42dcc0),_0x42dcc0;}get['targetRect'](){const _0x4afd80=this['target'];if(null===_0x4afd80)return null;if(_0x4afd80 instanceof _0x5239f0)return _0x4afd80;const _0x39d3c0=_0x4afd80['filter'](_0x4d0e5f=>function(_0x2236c7){const _0x5a5354=_0x2236c7['offsetParent'];if(_0x5a5354)return!0x0;const _0x54e2a6=_0x2236c7['getClientRects']()['item'](0x0);return!!_0x54e2a6;}(_0x4d0e5f));return 0x0===_0x39d3c0['length']?null:new _0x5239f0(_0x39d3c0[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x12d145){this['view']['isActive']=_0x12d145,this['view']['mainView']['isActive']=_0x12d145;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x37e740){if(!(null===_0x37e740||_0x37e740 instanceof _0x5239f0||Array['isArray'](_0x37e740)&&_0x37e740['every'](_0x46bfe8=>ee(_0x46bfe8))))throw new _0x4f0fc3('annotation-invalid-target',null,{'target':_0x37e740});}['_getNormalizedTarget'](){const _0x235493='function'==typeof this['_target']?this['_target']():this['_target'];return ee(_0x235493)?[_0x235493]:_0x235493;}}function ee(_0x50ce52){return null!==_0x50ce52&&'object'==typeof _0x50ce52&&'nodeType'in _0x50ce52&&0x1===_0x50ce52['nodeType'];}class x extends _0x82816a{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x415804=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x465762(),this['_focusTracker']['on']('change:isFocused',(_0x5443aa,_0x2018a4,_0x468bd2)=>{_0x468bd2||this['fire']('blur');});for(const _0x257c8d of _0x415804)this['add'](_0x257c8d);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x5b8176){if(this['has'](_0x5b8176))throw new _0x4f0fc3('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x5b8176['innerView'],_0x5b8176),this['_viewToAnnotation']['set'](_0x5b8176['view'],_0x5b8176);for(const _0xea101 of _0x5b8176['focusableElements'])this['_focusTracker']['add'](_0xea101);this['listenTo'](_0x5b8176['focusableElements'],'add',(_0x553c69,_0x4df00e)=>{this['_focusTracker']['add'](_0x4df00e);}),this['listenTo'](_0x5b8176['focusableElements'],'remove',(_0x436a2e,_0x2c9c9e)=>{this['_focusTracker']['remove'](_0x2c9c9e);}),this['listenTo'](_0x5b8176['view']['focusTracker'],'change:isFocused',(_0x30be99,_0x363371,_0x3329d9)=>{_0x3329d9&&this['fire']('focus',_0x5b8176);}),_0x5b8176['updateTargetRect']();const _0x316ab5=this['_getOrderInContent'](_0x5b8176['view']['targetRect']);return super['add'](_0x5b8176,_0x316ab5);}['remove'](_0xffcfb){if(!this['has'](_0xffcfb))throw new _0x4f0fc3('annotationcollection-not-existing-item',null);this['stopListening'](_0xffcfb['view']['focusTracker']),this['stopListening'](_0xffcfb['focusableElements']);for(const _0x5ab802 of _0xffcfb['focusableElements'])this['_focusTracker']['remove'](_0x5ab802);return this['_viewToAnnotation']['delete'](_0xffcfb['view']),this['_innerViewToAnnotation']['delete'](_0xffcfb['innerView']),super['remove'](_0xffcfb);}['getByInnerView'](_0x52ed05){return this['_innerViewToAnnotation']['get'](_0x52ed05);}['getByView'](_0xcb0221){return this['_viewToAnnotation']['get'](_0xcb0221);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5c435d of this)_0x5c435d['updateTargetRect']();this['_sort']();}['_sort'](){const _0x157cf3=Array['from'](this)['sort']((_0x319f4e,_0x1c17b8)=>v(_0x319f4e['view']['targetRect'],_0x1c17b8['view']['targetRect']));for(let _0x5a760c=_0x157cf3['length']-0x1;_0x5a760c>0x0;_0x5a760c--){const _0x35d153=_0x157cf3[_0x5a760c];_0x5a760c!==this['getIndex'](_0x35d153)&&(this['remove'](_0x35d153),this['add'](_0x35d153));}}['_getOrderInContent'](_0x3a55ed){let _0x4cc19b=0x0;if(!_0x3a55ed)return this['length'];for(const _0x26b32d of this){const _0x27b04d=_0x26b32d['view']['targetRect'];if(_0x27b04d){if(v(_0x3a55ed,_0x27b04d)<0x0)return _0x4cc19b;_0x4cc19b++;}}return _0x4cc19b;}}function v(_0x3ad85b,_0x583466){if(null===_0x3ad85b&&null===_0x583466)return 0x0;if(null===_0x3ad85b)return-0x1;if(null===_0x583466)return 0x1;const _0x50b7b6=_0x3ad85b['top']-_0x583466['top'];return 0x0==_0x50b7b6?_0x3ad85b['left']-_0x583466['left']:_0x50b7b6;}class N extends _0x5c60c1{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x383e88){if(super(_0x383e88),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x383e88 instanceof _0x1fac51){const _0x1ea5d0=_0x383e88['locale'];_0x383e88['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x22cc60){this['collection']['add'](_0x22cc60);}['remove'](_0x924405){this['collection']['remove'](_0x924405),_0x924405['destroy']();}['refreshVisibility'](){for(const _0x3d1a68 of this['collection'])_0x3d1a68['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x23a694){return this['collection']['getByInnerView'](_0x23a694);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0xfa34e3 of this['collection'])_0xfa34e3['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x52a509){this['fire']('_activateAnnotation',_0x52a509);}['createAnnotation'](_0x1dbc62){return new d(_0x1dbc62);}['createAnnotationView'](_0x47d696,_0xc1c909){return new T(_0x47d696,_0xc1c909);}['_addActiveAnnotation'](_0xa69ed1){const _0x2a43b0=new Set(this['activeAnnotations']);_0x2a43b0['add'](_0xa69ed1),this['activeAnnotations']=_0x2a43b0;}['_removeActiveAnnotation'](_0x455a66){const _0x47daaf=new Set(this['activeAnnotations']);_0x47daaf['delete'](_0x455a66),this['activeAnnotations']=_0x47daaf;}['_bindAnnotationsToVisibleAnnotations'](){const _0x44721e=this['collection'],_0x40660b=this['_visibleAnnotations'];function _0x17ed7f(_0x470256){const _0x5f5b94=_0x470256['source'];_0x5f5b94['isVisible']&&!_0x40660b['has'](_0x5f5b94)?_0x40660b['add'](_0x5f5b94):!_0x5f5b94['isVisible']&&_0x40660b['has'](_0x5f5b94)&&_0x40660b['remove'](_0x5f5b94),_0x5f5b94['view']['focusTracker']['remove'](_0x5f5b94['view']['element']),_0x5f5b94['view']['focusTracker']['add'](_0x5f5b94['view']['element']);}this['listenTo'](_0x44721e,'add',(_0x34dbfe,_0x1bb630)=>{_0x1bb630['isVisible']&&_0x40660b['add'](_0x1bb630),this['listenTo'](_0x1bb630,'change:isVisible',_0x17ed7f);}),this['listenTo'](_0x44721e,'remove',(_0x4c9b60,_0x4c4cc9)=>{_0x40660b['has'](_0x4c4cc9)&&_0x40660b['remove'](_0x4c4cc9),this['stopListening'](_0x4c4cc9,'change:isVisible',_0x17ed7f);});}['_setupEnterAnnotationKeystroke'](){const _0x11ca4b=_0x9db7d4=>{_0x9db7d4['on']('ready',()=>{_0x9db7d4['keystrokes']['set'](_0x27f8e2,(_0x28ecc2,_0x1f58ee)=>{const _0x1c5d28=_0x1b259d(this['activeAnnotations']['values']());_0x1c5d28&&(_0x1c5d28['view']['focus'](),_0x1f58ee());});});};this['context']instanceof _0x1fac51?_0x11ca4b(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1a20e5,_0xb28806)=>{_0x11ca4b(_0xb28806);});}['_setupEscapeAnnotationHandling'](){const _0x511305=_0x327896=>{const _0x8026dd=_0x327896['source'],_0x5c4b7e=[];let _0x4d3eee;if(Array['isArray'](_0x8026dd['target'])){_0x4d3eee=_0x8026dd['target'][0x0],this['context']instanceof _0x1fac51?_0x5c4b7e['push'](this['context']):this['context']['editors']&&_0x5c4b7e['push'](...this['context']['editors']);for(const _0x57d2b7 of _0x5c4b7e)for(const _0x5f1dcb of _0x57d2b7['editing']['view']['domRoots']['values']())if(_0x5f1dcb['contains'](_0x4d3eee))return void _0x57d2b7['editing']['view']['focus']();_0x4d3eee['focus']();}};this['listenTo'](this['collection'],'add',(_0x4be628,_0x21f6b7)=>{this['listenTo'](_0x21f6b7,'escape',_0x511305,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x3c9146,_0x52e76f)=>{this['stopListening'](_0x52e76f,'escape',_0x511305);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x5c60c1{['licenseKey'];['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ae82b){super(_0x5ae82b),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map()),this['licenseKey']=this['context']['config']['get']('licenseKey');const _0x1b8809=this['context']['config'];_0x1b8809['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1b8809['define']('comments.maxThreadTotalWeight',0x1f4),_0x1b8809['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1b8809['define']('comments.CommentThreadView',Ct),_0x1b8809['define']('comments.CommentView',vt),_0x1b8809['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x369254=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x23ba1f,_0x44aea6)=>this['_addCommentThread'](_0x44aea6)),this['on']('submitCommentThread',(_0x1a2966,_0xbc8386)=>this['_submitCommentThread'](_0xbc8386)),this['on']('resolveCommentThread',(_0x325405,_0x226753)=>this['_resolveCommentThread'](_0x226753)),this['on']('resolveCommentThread',(_0x550413,_0x542f08)=>this['_updateActiveAnnotation'](_0x542f08),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x205137,_0x35e8ef)=>this['_reopenCommentThread'](_0x35e8ef)),this['on']('reopenCommentThread',(_0x3c61ae,_0xd8084)=>this['_updateActiveAnnotation'](_0xd8084),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3a15af,_0x483499)=>this['_removeCommentThread'](_0x483499)),this['on']('updateCommentThread',(_0x3485f,_0x45a88c)=>this['_updateCommentThread'](_0x45a88c)),this['on']('updateCommentThread',(_0x2eef6e,_0x41929c)=>this['_updateActiveAnnotation'](_0x41929c),{'priority':'lowest'}),this['on']('addComment',(_0x3e22f6,_0xd2e73b)=>this['_addComment'](_0xd2e73b)),this['on']('updateComment',(_0x496003,_0x5b352e)=>this['_updateComment'](_0x5b352e)),this['on']('removeComment',(_0x55d4cd,_0x128b2c)=>this['_removeComment'](_0x128b2c)),this['on']('addComment',(_0x464d34,{threadId:_0x3e23af,isFromAdapter:_0x5e6e34})=>{if(_0x5e6e34)return;const _0x1b83ac=this['getCommentThread'](_0x3e23af),_0x4bee7a=_0x1b83ac&&this['_threadToController']['get'](_0x1b83ac);_0x4bee7a&&_0x4bee7a['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x369254,'change:activeAnnotations',(_0x114ccb,_0x2431b4,_0x2ccceb)=>{const _0x35b4b4=Array['from'](_0x2ccceb)['map'](_0x50c8c3=>this['_viewToController']['get'](_0x50c8c3['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x35b4b4?_0x35b4b4['model']:null;});}['afterInit'](){!function(_0x1923ac){function _0x5a3299(_0x4aabf3,_0x3e3be5,_0x55c83c){const _0x450e5b={};_0x450e5b[_0x5a67dd([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])]={0x10:0xa,0x18:0xc,0x20:0xe},_0x450e5b[_0x5a67dd([0x72,0x63,0x6f,0x6e])]=[0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,0x2f,0x5e,0xbc,0x63,0xc6,0x97,0x35,0x6a,0xd4,0xb3,0x7d,0xfa,0xef,0xc5,0x91],_0x450e5b[_0x5a67dd([0x53])]=[0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x1,0x67,0x2b,0xfe,0xd7,0xab,0x76,0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0,0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15,0x4,0xc7,0x23,0xc3,0x18,0x96,0x5,0x9a,0x7,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75,0x9,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84,0x53,0xd1,0x0,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf,0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x2,0x7f,0x50,0x3c,0x9f,0xa8,0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2,0xcd,0xc,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73,0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0xb,0xdb,0xe0,0x32,0x3a,0xa,0x49,0x6,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79,0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x8,0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a,0x70,0x3e,0xb5,0x66,0x48,0x3,0xf6,0xe,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e,0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf,0x8c,0xa1,0x89,0xd,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0xf,0xb0,0x54,0xbb,0x16],_0x450e5b[_0x5a67dd([0x54,0x31])]=[0xc66363a5,0xf87c7c84,0xee777799,0xf67b7b8d,0xfff2f20d,0xd66b6bbd,0xde6f6fb1,0x91c5c554,0x60303050,0x2010103,0xce6767a9,0x562b2b7d,0xe7fefe19,0xb5d7d762,0x4dababe6,0xec76769a,0x8fcaca45,0x1f82829d,0x89c9c940,0xfa7d7d87,0xeffafa15,0xb25959eb,0x8e4747c9,0xfbf0f00b,0x41adadec,0xb3d4d467,0x5fa2a2fd,0x45afafea,0x239c9cbf,0x53a4a4f7,0xe4727296,0x9bc0c05b,0x75b7b7c2,0xe1fdfd1c,0x3d9393ae,0x4c26266a,0x6c36365a,0x7e3f3f41,0xf5f7f702,0x83cccc4f,0x6834345c,0x51a5a5f4,0xd1e5e534,0xf9f1f108,0xe2717193,0xabd8d873,0x62313153,0x2a15153f,0x804040c,0x95c7c752,0x46232365,0x9dc3c35e,0x30181828,0x379696a1,0xa05050f,0x2f9a9ab5,0xe070709,0x24121236,0x1b80809b,0xdfe2e23d,0xcdebeb26,0x4e272769,0x7fb2b2cd,0xea75759f,0x1209091b,0x1d83839e,0x582c2c74,0x341a1a2e,0x361b1b2d,0xdc6e6eb2,0xb45a5aee,0x5ba0a0fb,0xa45252f6,0x763b3b4d,0xb7d6d661,0x7db3b3ce,0x5229297b,0xdde3e33e,0x5e2f2f71,0x13848497,0xa65353f5,0xb9d1d168,0x0,0xc1eded2c,0x40202060,0xe3fcfc1f,0x79b1b1c8,0xb65b5bed,0xd46a6abe,0x8dcbcb46,0x67bebed9,0x7239394b,0x944a4ade,0x984c4cd4,0xb05858e8,0x85cfcf4a,0xbbd0d06b,0xc5efef2a,0x4faaaae5,0xedfbfb16,0x864343c5,0x9a4d4dd7,0x66333355,0x11858594,0x8a4545cf,0xe9f9f910,0x4020206,0xfe7f7f81,0xa05050f0,0x783c3c44,0x259f9fba,0x4ba8a8e3,0xa25151f3,0x5da3a3fe,0x804040c0,0x58f8f8a,0x3f9292ad,0x219d9dbc,0x70383848,0xf1f5f504,0x63bcbcdf,0x77b6b6c1,0xafdada75,0x42212163,0x20101030,0xe5ffff1a,0xfdf3f30e,0xbfd2d26d,0x81cdcd4c,0x180c0c14,0x26131335,0xc3ecec2f,0xbe5f5fe1,0x359797a2,0x884444cc,0x2e171739,0x93c4c457,0x55a7a7f2,0xfc7e7e82,0x7a3d3d47,0xc86464ac,0xba5d5de7,0x3219192b,0xe6737395,0xc06060a0,0x19818198,0x9e4f4fd1,0xa3dcdc7f,0x44222266,0x542a2a7e,0x3b9090ab,0xb888883,0x8c4646ca,0xc7eeee29,0x6bb8b8d3,0x2814143c,0xa7dede79,0xbc5e5ee2,0x160b0b1d,0xaddbdb76,0xdbe0e03b,0x64323256,0x743a3a4e,0x140a0a1e,0x924949db,0xc06060a,0x4824246c,0xb85c5ce4,0x9fc2c25d,0xbdd3d36e,0x43acacef,0xc46262a6,0x399191a8,0x319595a4,0xd3e4e437,0xf279798b,0xd5e7e732,0x8bc8c843,0x6e373759,0xda6d6db7,0x18d8d8c,0xb1d5d564,0x9c4e4ed2,0x49a9a9e0,0xd86c6cb4,0xac5656fa,0xf3f4f407,0xcfeaea25,0xca6565af,0xf47a7a8e,0x47aeaee9,0x10080818,0x6fbabad5,0xf0787888,0x4a25256f,0x5c2e2e72,0x381c1c24,0x57a6a6f1,0x73b4b4c7,0x97c6c651,0xcbe8e823,0xa1dddd7c,0xe874749c,0x3e1f1f21,0x964b4bdd,0x61bdbddc,0xd8b8b86,0xf8a8a85,0xe0707090,0x7c3e3e42,0x71b5b5c4,0xcc6666aa,0x904848d8,0x6030305,0xf7f6f601,0x1c0e0e12,0xc26161a3,0x6a35355f,0xae5757f9,0x69b9b9d0,0x17868691,0x99c1c158,0x3a1d1d27,0x279e9eb9,0xd9e1e138,0xebf8f813,0x2b9898b3,0x22111133,0xd26969bb,0xa9d9d970,0x78e8e89,0x339494a7,0x2d9b9bb6,0x3c1e1e22,0x15878792,0xc9e9e920,0x87cece49,0xaa5555ff,0x50282878,0xa5dfdf7a,0x38c8c8f,0x59a1a1f8,0x9898980,0x1a0d0d17,0x65bfbfda,0xd7e6e631,0x844242c6,0xd06868b8,0x824141c3,0x299999b0,0x5a2d2d77,0x1e0f0f11,0x7bb0b0cb,0xa85454fc,0x6dbbbbd6,0x2c16163a],_0x450e5b[_0x5a67dd([0x54,0x32])]=[0xa5c66363,0x84f87c7c,0x99ee7777,0x8df67b7b,0xdfff2f2,0xbdd66b6b,0xb1de6f6f,0x5491c5c5,0x50603030,0x3020101,0xa9ce6767,0x7d562b2b,0x19e7fefe,0x62b5d7d7,0xe64dabab,0x9aec7676,0x458fcaca,0x9d1f8282,0x4089c9c9,0x87fa7d7d,0x15effafa,0xebb25959,0xc98e4747,0xbfbf0f0,0xec41adad,0x67b3d4d4,0xfd5fa2a2,0xea45afaf,0xbf239c9c,0xf753a4a4,0x96e47272,0x5b9bc0c0,0xc275b7b7,0x1ce1fdfd,0xae3d9393,0x6a4c2626,0x5a6c3636,0x417e3f3f,0x2f5f7f7,0x4f83cccc,0x5c683434,0xf451a5a5,0x34d1e5e5,0x8f9f1f1,0x93e27171,0x73abd8d8,0x53623131,0x3f2a1515,0xc080404,0x5295c7c7,0x65462323,0x5e9dc3c3,0x28301818,0xa1379696,0xf0a0505,0xb52f9a9a,0x90e0707,0x36241212,0x9b1b8080,0x3ddfe2e2,0x26cdebeb,0x694e2727,0xcd7fb2b2,0x9fea7575,0x1b120909,0x9e1d8383,0x74582c2c,0x2e341a1a,0x2d361b1b,0xb2dc6e6e,0xeeb45a5a,0xfb5ba0a0,0xf6a45252,0x4d763b3b,0x61b7d6d6,0xce7db3b3,0x7b522929,0x3edde3e3,0x715e2f2f,0x97138484,0xf5a65353,0x68b9d1d1,0x0,0x2cc1eded,0x60402020,0x1fe3fcfc,0xc879b1b1,0xedb65b5b,0xbed46a6a,0x468dcbcb,0xd967bebe,0x4b723939,0xde944a4a,0xd4984c4c,0xe8b05858,0x4a85cfcf,0x6bbbd0d0,0x2ac5efef,0xe54faaaa,0x16edfbfb,0xc5864343,0xd79a4d4d,0x55663333,0x94118585,0xcf8a4545,0x10e9f9f9,0x6040202,0x81fe7f7f,0xf0a05050,0x44783c3c,0xba259f9f,0xe34ba8a8,0xf3a25151,0xfe5da3a3,0xc0804040,0x8a058f8f,0xad3f9292,0xbc219d9d,0x48703838,0x4f1f5f5,0xdf63bcbc,0xc177b6b6,0x75afdada,0x63422121,0x30201010,0x1ae5ffff,0xefdf3f3,0x6dbfd2d2,0x4c81cdcd,0x14180c0c,0x35261313,0x2fc3ecec,0xe1be5f5f,0xa2359797,0xcc884444,0x392e1717,0x5793c4c4,0xf255a7a7,0x82fc7e7e,0x477a3d3d,0xacc86464,0xe7ba5d5d,0x2b321919,0x95e67373,0xa0c06060,0x98198181,0xd19e4f4f,0x7fa3dcdc,0x66442222,0x7e542a2a,0xab3b9090,0x830b8888,0xca8c4646,0x29c7eeee,0xd36bb8b8,0x3c281414,0x79a7dede,0xe2bc5e5e,0x1d160b0b,0x76addbdb,0x3bdbe0e0,0x56643232,0x4e743a3a,0x1e140a0a,0xdb924949,0xa0c0606,0x6c482424,0xe4b85c5c,0x5d9fc2c2,0x6ebdd3d3,0xef43acac,0xa6c46262,0xa8399191,0xa4319595,0x37d3e4e4,0x8bf27979,0x32d5e7e7,0x438bc8c8,0x596e3737,0xb7da6d6d,0x8c018d8d,0x64b1d5d5,0xd29c4e4e,0xe049a9a9,0xb4d86c6c,0xfaac5656,0x7f3f4f4,0x25cfeaea,0xafca6565,0x8ef47a7a,0xe947aeae,0x18100808,0xd56fbaba,0x88f07878,0x6f4a2525,0x725c2e2e,0x24381c1c,0xf157a6a6,0xc773b4b4,0x5197c6c6,0x23cbe8e8,0x7ca1dddd,0x9ce87474,0x213e1f1f,0xdd964b4b,0xdc61bdbd,0x860d8b8b,0x850f8a8a,0x90e07070,0x427c3e3e,0xc471b5b5,0xaacc6666,0xd8904848,0x5060303,0x1f7f6f6,0x121c0e0e,0xa3c26161,0x5f6a3535,0xf9ae5757,0xd069b9b9,0x91178686,0x5899c1c1,0x273a1d1d,0xb9279e9e,0x38d9e1e1,0x13ebf8f8,0xb32b9898,0x33221111,0xbbd26969,0x70a9d9d9,0x89078e8e,0xa7339494,0xb62d9b9b,0x223c1e1e,0x92158787,0x20c9e9e9,0x4987cece,0xffaa5555,0x78502828,0x7aa5dfdf,0x8f038c8c,0xf859a1a1,0x80098989,0x171a0d0d,0xda65bfbf,0x31d7e6e6,0xc6844242,0xb8d06868,0xc3824141,0xb0299999,0x775a2d2d,0x111e0f0f,0xcb7bb0b0,0xfca85454,0xd66dbbbb,0x3a2c1616],_0x450e5b[_0x5a67dd([0x54,0x33])]=[0x63a5c663,0x7c84f87c,0x7799ee77,0x7b8df67b,0xf20dfff2,0x6bbdd66b,0x6fb1de6f,0xc55491c5,0x30506030,0x1030201,0x67a9ce67,0x2b7d562b,0xfe19e7fe,0xd762b5d7,0xabe64dab,0x769aec76,0xca458fca,0x829d1f82,0xc94089c9,0x7d87fa7d,0xfa15effa,0x59ebb259,0x47c98e47,0xf00bfbf0,0xadec41ad,0xd467b3d4,0xa2fd5fa2,0xafea45af,0x9cbf239c,0xa4f753a4,0x7296e472,0xc05b9bc0,0xb7c275b7,0xfd1ce1fd,0x93ae3d93,0x266a4c26,0x365a6c36,0x3f417e3f,0xf702f5f7,0xcc4f83cc,0x345c6834,0xa5f451a5,0xe534d1e5,0xf108f9f1,0x7193e271,0xd873abd8,0x31536231,0x153f2a15,0x40c0804,0xc75295c7,0x23654623,0xc35e9dc3,0x18283018,0x96a13796,0x50f0a05,0x9ab52f9a,0x7090e07,0x12362412,0x809b1b80,0xe23ddfe2,0xeb26cdeb,0x27694e27,0xb2cd7fb2,0x759fea75,0x91b1209,0x839e1d83,0x2c74582c,0x1a2e341a,0x1b2d361b,0x6eb2dc6e,0x5aeeb45a,0xa0fb5ba0,0x52f6a452,0x3b4d763b,0xd661b7d6,0xb3ce7db3,0x297b5229,0xe33edde3,0x2f715e2f,0x84971384,0x53f5a653,0xd168b9d1,0x0,0xed2cc1ed,0x20604020,0xfc1fe3fc,0xb1c879b1,0x5bedb65b,0x6abed46a,0xcb468dcb,0xbed967be,0x394b7239,0x4ade944a,0x4cd4984c,0x58e8b058,0xcf4a85cf,0xd06bbbd0,0xef2ac5ef,0xaae54faa,0xfb16edfb,0x43c58643,0x4dd79a4d,0x33556633,0x85941185,0x45cf8a45,0xf910e9f9,0x2060402,0x7f81fe7f,0x50f0a050,0x3c44783c,0x9fba259f,0xa8e34ba8,0x51f3a251,0xa3fe5da3,0x40c08040,0x8f8a058f,0x92ad3f92,0x9dbc219d,0x38487038,0xf504f1f5,0xbcdf63bc,0xb6c177b6,0xda75afda,0x21634221,0x10302010,0xff1ae5ff,0xf30efdf3,0xd26dbfd2,0xcd4c81cd,0xc14180c,0x13352613,0xec2fc3ec,0x5fe1be5f,0x97a23597,0x44cc8844,0x17392e17,0xc45793c4,0xa7f255a7,0x7e82fc7e,0x3d477a3d,0x64acc864,0x5de7ba5d,0x192b3219,0x7395e673,0x60a0c060,0x81981981,0x4fd19e4f,0xdc7fa3dc,0x22664422,0x2a7e542a,0x90ab3b90,0x88830b88,0x46ca8c46,0xee29c7ee,0xb8d36bb8,0x143c2814,0xde79a7de,0x5ee2bc5e,0xb1d160b,0xdb76addb,0xe03bdbe0,0x32566432,0x3a4e743a,0xa1e140a,0x49db9249,0x60a0c06,0x246c4824,0x5ce4b85c,0xc25d9fc2,0xd36ebdd3,0xacef43ac,0x62a6c462,0x91a83991,0x95a43195,0xe437d3e4,0x798bf279,0xe732d5e7,0xc8438bc8,0x37596e37,0x6db7da6d,0x8d8c018d,0xd564b1d5,0x4ed29c4e,0xa9e049a9,0x6cb4d86c,0x56faac56,0xf407f3f4,0xea25cfea,0x65afca65,0x7a8ef47a,0xaee947ae,0x8181008,0xbad56fba,0x7888f078,0x256f4a25,0x2e725c2e,0x1c24381c,0xa6f157a6,0xb4c773b4,0xc65197c6,0xe823cbe8,0xdd7ca1dd,0x749ce874,0x1f213e1f,0x4bdd964b,0xbddc61bd,0x8b860d8b,0x8a850f8a,0x7090e070,0x3e427c3e,0xb5c471b5,0x66aacc66,0x48d89048,0x3050603,0xf601f7f6,0xe121c0e,0x61a3c261,0x355f6a35,0x57f9ae57,0xb9d069b9,0x86911786,0xc15899c1,0x1d273a1d,0x9eb9279e,0xe138d9e1,0xf813ebf8,0x98b32b98,0x11332211,0x69bbd269,0xd970a9d9,0x8e89078e,0x94a73394,0x9bb62d9b,0x1e223c1e,0x87921587,0xe920c9e9,0xce4987ce,0x55ffaa55,0x28785028,0xdf7aa5df,0x8c8f038c,0xa1f859a1,0x89800989,0xd171a0d,0xbfda65bf,0xe631d7e6,0x42c68442,0x68b8d068,0x41c38241,0x99b02999,0x2d775a2d,0xf111e0f,0xb0cb7bb0,0x54fca854,0xbbd66dbb,0x163a2c16],_0x450e5b[_0x5a67dd([0x54,0x34])]=[0x6363a5c6,0x7c7c84f8,0x777799ee,0x7b7b8df6,0xf2f20dff,0x6b6bbdd6,0x6f6fb1de,0xc5c55491,0x30305060,0x1010302,0x6767a9ce,0x2b2b7d56,0xfefe19e7,0xd7d762b5,0xababe64d,0x76769aec,0xcaca458f,0x82829d1f,0xc9c94089,0x7d7d87fa,0xfafa15ef,0x5959ebb2,0x4747c98e,0xf0f00bfb,0xadadec41,0xd4d467b3,0xa2a2fd5f,0xafafea45,0x9c9cbf23,0xa4a4f753,0x727296e4,0xc0c05b9b,0xb7b7c275,0xfdfd1ce1,0x9393ae3d,0x26266a4c,0x36365a6c,0x3f3f417e,0xf7f702f5,0xcccc4f83,0x34345c68,0xa5a5f451,0xe5e534d1,0xf1f108f9,0x717193e2,0xd8d873ab,0x31315362,0x15153f2a,0x4040c08,0xc7c75295,0x23236546,0xc3c35e9d,0x18182830,0x9696a137,0x5050f0a,0x9a9ab52f,0x707090e,0x12123624,0x80809b1b,0xe2e23ddf,0xebeb26cd,0x2727694e,0xb2b2cd7f,0x75759fea,0x9091b12,0x83839e1d,0x2c2c7458,0x1a1a2e34,0x1b1b2d36,0x6e6eb2dc,0x5a5aeeb4,0xa0a0fb5b,0x5252f6a4,0x3b3b4d76,0xd6d661b7,0xb3b3ce7d,0x29297b52,0xe3e33edd,0x2f2f715e,0x84849713,0x5353f5a6,0xd1d168b9,0x0,0xeded2cc1,0x20206040,0xfcfc1fe3,0xb1b1c879,0x5b5bedb6,0x6a6abed4,0xcbcb468d,0xbebed967,0x39394b72,0x4a4ade94,0x4c4cd498,0x5858e8b0,0xcfcf4a85,0xd0d06bbb,0xefef2ac5,0xaaaae54f,0xfbfb16ed,0x4343c586,0x4d4dd79a,0x33335566,0x85859411,0x4545cf8a,0xf9f910e9,0x2020604,0x7f7f81fe,0x5050f0a0,0x3c3c4478,0x9f9fba25,0xa8a8e34b,0x5151f3a2,0xa3a3fe5d,0x4040c080,0x8f8f8a05,0x9292ad3f,0x9d9dbc21,0x38384870,0xf5f504f1,0xbcbcdf63,0xb6b6c177,0xdada75af,0x21216342,0x10103020,0xffff1ae5,0xf3f30efd,0xd2d26dbf,0xcdcd4c81,0xc0c1418,0x13133526,0xecec2fc3,0x5f5fe1be,0x9797a235,0x4444cc88,0x1717392e,0xc4c45793,0xa7a7f255,0x7e7e82fc,0x3d3d477a,0x6464acc8,0x5d5de7ba,0x19192b32,0x737395e6,0x6060a0c0,0x81819819,0x4f4fd19e,0xdcdc7fa3,0x22226644,0x2a2a7e54,0x9090ab3b,0x8888830b,0x4646ca8c,0xeeee29c7,0xb8b8d36b,0x14143c28,0xdede79a7,0x5e5ee2bc,0xb0b1d16,0xdbdb76ad,0xe0e03bdb,0x32325664,0x3a3a4e74,0xa0a1e14,0x4949db92,0x6060a0c,0x24246c48,0x5c5ce4b8,0xc2c25d9f,0xd3d36ebd,0xacacef43,0x6262a6c4,0x9191a839,0x9595a431,0xe4e437d3,0x79798bf2,0xe7e732d5,0xc8c8438b,0x3737596e,0x6d6db7da,0x8d8d8c01,0xd5d564b1,0x4e4ed29c,0xa9a9e049,0x6c6cb4d8,0x5656faac,0xf4f407f3,0xeaea25cf,0x6565afca,0x7a7a8ef4,0xaeaee947,0x8081810,0xbabad56f,0x787888f0,0x25256f4a,0x2e2e725c,0x1c1c2438,0xa6a6f157,0xb4b4c773,0xc6c65197,0xe8e823cb,0xdddd7ca1,0x74749ce8,0x1f1f213e,0x4b4bdd96,0xbdbddc61,0x8b8b860d,0x8a8a850f,0x707090e0,0x3e3e427c,0xb5b5c471,0x6666aacc,0x4848d890,0x3030506,0xf6f601f7,0xe0e121c,0x6161a3c2,0x35355f6a,0x5757f9ae,0xb9b9d069,0x86869117,0xc1c15899,0x1d1d273a,0x9e9eb927,0xe1e138d9,0xf8f813eb,0x9898b32b,0x11113322,0x6969bbd2,0xd9d970a9,0x8e8e8907,0x9494a733,0x9b9bb62d,0x1e1e223c,0x87879215,0xe9e920c9,0xcece4987,0x5555ffaa,0x28287850,0xdfdf7aa5,0x8c8c8f03,0xa1a1f859,0x89898009,0xd0d171a,0xbfbfda65,0xe6e631d7,0x4242c684,0x6868b8d0,0x4141c382,0x9999b029,0x2d2d775a,0xf0f111e,0xb0b0cb7b,0x5454fca8,0xbbbbd66d,0x16163a2c],_0x450e5b[_0x5a67dd([0x55,0x31])]=[0x0,0xe090d0b,0x1c121a16,0x121b171d,0x3824342c,0x362d3927,0x24362e3a,0x2a3f2331,0x70486858,0x7e416553,0x6c5a724e,0x62537f45,0x486c5c74,0x4665517f,0x547e4662,0x5a774b69,0xe090d0b0,0xee99ddbb,0xfc82caa6,0xf28bc7ad,0xd8b4e49c,0xd6bde997,0xc4a6fe8a,0xcaaff381,0x90d8b8e8,0x9ed1b5e3,0x8ccaa2fe,0x82c3aff5,0xa8fc8cc4,0xa6f581cf,0xb4ee96d2,0xbae79bd9,0xdb3bbb7b,0xd532b670,0xc729a16d,0xc920ac66,0xe31f8f57,0xed16825c,0xff0d9541,0xf104984a,0xab73d323,0xa57ade28,0xb761c935,0xb968c43e,0x9357e70f,0x9d5eea04,0x8f45fd19,0x814cf012,0x3bab6bcb,0x35a266c0,0x27b971dd,0x29b07cd6,0x38f5fe7,0xd8652ec,0x1f9d45f1,0x119448fa,0x4be30393,0x45ea0e98,0x57f11985,0x59f8148e,0x73c737bf,0x7dce3ab4,0x6fd52da9,0x61dc20a2,0xad766df6,0xa37f60fd,0xb16477e0,0xbf6d7aeb,0x955259da,0x9b5b54d1,0x894043cc,0x87494ec7,0xdd3e05ae,0xd33708a5,0xc12c1fb8,0xcf2512b3,0xe51a3182,0xeb133c89,0xf9082b94,0xf701269f,0x4de6bd46,0x43efb04d,0x51f4a750,0x5ffdaa5b,0x75c2896a,0x7bcb8461,0x69d0937c,0x67d99e77,0x3daed51e,0x33a7d815,0x21bccf08,0x2fb5c203,0x58ae132,0xb83ec39,0x1998fb24,0x1791f62f,0x764dd68d,0x7844db86,0x6a5fcc9b,0x6456c190,0x4e69e2a1,0x4060efaa,0x527bf8b7,0x5c72f5bc,0x605bed5,0x80cb3de,0x1a17a4c3,0x141ea9c8,0x3e218af9,0x302887f2,0x223390ef,0x2c3a9de4,0x96dd063d,0x98d40b36,0x8acf1c2b,0x84c61120,0xaef93211,0xa0f03f1a,0xb2eb2807,0xbce2250c,0xe6956e65,0xe89c636e,0xfa877473,0xf48e7978,0xdeb15a49,0xd0b85742,0xc2a3405f,0xccaa4d54,0x41ecdaf7,0x4fe5d7fc,0x5dfec0e1,0x53f7cdea,0x79c8eedb,0x77c1e3d0,0x65daf4cd,0x6bd3f9c6,0x31a4b2af,0x3fadbfa4,0x2db6a8b9,0x23bfa5b2,0x9808683,0x7898b88,0x15929c95,0x1b9b919e,0xa17c0a47,0xaf75074c,0xbd6e1051,0xb3671d5a,0x99583e6b,0x97513360,0x854a247d,0x8b432976,0xd134621f,0xdf3d6f14,0xcd267809,0xc32f7502,0xe9105633,0xe7195b38,0xf5024c25,0xfb0b412e,0x9ad7618c,0x94de6c87,0x86c57b9a,0x88cc7691,0xa2f355a0,0xacfa58ab,0xbee14fb6,0xb0e842bd,0xea9f09d4,0xe49604df,0xf68d13c2,0xf8841ec9,0xd2bb3df8,0xdcb230f3,0xcea927ee,0xc0a02ae5,0x7a47b13c,0x744ebc37,0x6655ab2a,0x685ca621,0x42638510,0x4c6a881b,0x5e719f06,0x5078920d,0xa0fd964,0x406d46f,0x161dc372,0x1814ce79,0x322bed48,0x3c22e043,0x2e39f75e,0x2030fa55,0xec9ab701,0xe293ba0a,0xf088ad17,0xfe81a01c,0xd4be832d,0xdab78e26,0xc8ac993b,0xc6a59430,0x9cd2df59,0x92dbd252,0x80c0c54f,0x8ec9c844,0xa4f6eb75,0xaaffe67e,0xb8e4f163,0xb6edfc68,0xc0a67b1,0x2036aba,0x10187da7,0x1e1170ac,0x342e539d,0x3a275e96,0x283c498b,0x26354480,0x7c420fe9,0x724b02e2,0x605015ff,0x6e5918f4,0x44663bc5,0x4a6f36ce,0x587421d3,0x567d2cd8,0x37a10c7a,0x39a80171,0x2bb3166c,0x25ba1b67,0xf853856,0x18c355d,0x13972240,0x1d9e2f4b,0x47e96422,0x49e06929,0x5bfb7e34,0x55f2733f,0x7fcd500e,0x71c45d05,0x63df4a18,0x6dd64713,0xd731dcca,0xd938d1c1,0xcb23c6dc,0xc52acbd7,0xef15e8e6,0xe11ce5ed,0xf307f2f0,0xfd0efffb,0xa779b492,0xa970b999,0xbb6bae84,0xb562a38f,0x9f5d80be,0x91548db5,0x834f9aa8,0x8d4697a3],_0x450e5b[_0x5a67dd([0x55,0x32])]=[0x0,0xb0e090d,0x161c121a,0x1d121b17,0x2c382434,0x27362d39,0x3a24362e,0x312a3f23,0x58704868,0x537e4165,0x4e6c5a72,0x4562537f,0x74486c5c,0x7f466551,0x62547e46,0x695a774b,0xb0e090d0,0xbbee99dd,0xa6fc82ca,0xadf28bc7,0x9cd8b4e4,0x97d6bde9,0x8ac4a6fe,0x81caaff3,0xe890d8b8,0xe39ed1b5,0xfe8ccaa2,0xf582c3af,0xc4a8fc8c,0xcfa6f581,0xd2b4ee96,0xd9bae79b,0x7bdb3bbb,0x70d532b6,0x6dc729a1,0x66c920ac,0x57e31f8f,0x5ced1682,0x41ff0d95,0x4af10498,0x23ab73d3,0x28a57ade,0x35b761c9,0x3eb968c4,0xf9357e7,0x49d5eea,0x198f45fd,0x12814cf0,0xcb3bab6b,0xc035a266,0xdd27b971,0xd629b07c,0xe7038f5f,0xec0d8652,0xf11f9d45,0xfa119448,0x934be303,0x9845ea0e,0x8557f119,0x8e59f814,0xbf73c737,0xb47dce3a,0xa96fd52d,0xa261dc20,0xf6ad766d,0xfda37f60,0xe0b16477,0xebbf6d7a,0xda955259,0xd19b5b54,0xcc894043,0xc787494e,0xaedd3e05,0xa5d33708,0xb8c12c1f,0xb3cf2512,0x82e51a31,0x89eb133c,0x94f9082b,0x9ff70126,0x464de6bd,0x4d43efb0,0x5051f4a7,0x5b5ffdaa,0x6a75c289,0x617bcb84,0x7c69d093,0x7767d99e,0x1e3daed5,0x1533a7d8,0x821bccf,0x32fb5c2,0x32058ae1,0x390b83ec,0x241998fb,0x2f1791f6,0x8d764dd6,0x867844db,0x9b6a5fcc,0x906456c1,0xa14e69e2,0xaa4060ef,0xb7527bf8,0xbc5c72f5,0xd50605be,0xde080cb3,0xc31a17a4,0xc8141ea9,0xf93e218a,0xf2302887,0xef223390,0xe42c3a9d,0x3d96dd06,0x3698d40b,0x2b8acf1c,0x2084c611,0x11aef932,0x1aa0f03f,0x7b2eb28,0xcbce225,0x65e6956e,0x6ee89c63,0x73fa8774,0x78f48e79,0x49deb15a,0x42d0b857,0x5fc2a340,0x54ccaa4d,0xf741ecda,0xfc4fe5d7,0xe15dfec0,0xea53f7cd,0xdb79c8ee,0xd077c1e3,0xcd65daf4,0xc66bd3f9,0xaf31a4b2,0xa43fadbf,0xb92db6a8,0xb223bfa5,0x83098086,0x8807898b,0x9515929c,0x9e1b9b91,0x47a17c0a,0x4caf7507,0x51bd6e10,0x5ab3671d,0x6b99583e,0x60975133,0x7d854a24,0x768b4329,0x1fd13462,0x14df3d6f,0x9cd2678,0x2c32f75,0x33e91056,0x38e7195b,0x25f5024c,0x2efb0b41,0x8c9ad761,0x8794de6c,0x9a86c57b,0x9188cc76,0xa0a2f355,0xabacfa58,0xb6bee14f,0xbdb0e842,0xd4ea9f09,0xdfe49604,0xc2f68d13,0xc9f8841e,0xf8d2bb3d,0xf3dcb230,0xeecea927,0xe5c0a02a,0x3c7a47b1,0x37744ebc,0x2a6655ab,0x21685ca6,0x10426385,0x1b4c6a88,0x65e719f,0xd507892,0x640a0fd9,0x6f0406d4,0x72161dc3,0x791814ce,0x48322bed,0x433c22e0,0x5e2e39f7,0x552030fa,0x1ec9ab7,0xae293ba,0x17f088ad,0x1cfe81a0,0x2dd4be83,0x26dab78e,0x3bc8ac99,0x30c6a594,0x599cd2df,0x5292dbd2,0x4f80c0c5,0x448ec9c8,0x75a4f6eb,0x7eaaffe6,0x63b8e4f1,0x68b6edfc,0xb10c0a67,0xba02036a,0xa710187d,0xac1e1170,0x9d342e53,0x963a275e,0x8b283c49,0x80263544,0xe97c420f,0xe2724b02,0xff605015,0xf46e5918,0xc544663b,0xce4a6f36,0xd3587421,0xd8567d2c,0x7a37a10c,0x7139a801,0x6c2bb316,0x6725ba1b,0x560f8538,0x5d018c35,0x40139722,0x4b1d9e2f,0x2247e964,0x2949e069,0x345bfb7e,0x3f55f273,0xe7fcd50,0x571c45d,0x1863df4a,0x136dd647,0xcad731dc,0xc1d938d1,0xdccb23c6,0xd7c52acb,0xe6ef15e8,0xede11ce5,0xf0f307f2,0xfbfd0eff,0x92a779b4,0x99a970b9,0x84bb6bae,0x8fb562a3,0xbe9f5d80,0xb591548d,0xa8834f9a,0xa38d4697],_0x450e5b[_0x5a67dd([0x55,0x33])]=[0x0,0xd0b0e09,0x1a161c12,0x171d121b,0x342c3824,0x3927362d,0x2e3a2436,0x23312a3f,0x68587048,0x65537e41,0x724e6c5a,0x7f456253,0x5c74486c,0x517f4665,0x4662547e,0x4b695a77,0xd0b0e090,0xddbbee99,0xcaa6fc82,0xc7adf28b,0xe49cd8b4,0xe997d6bd,0xfe8ac4a6,0xf381caaf,0xb8e890d8,0xb5e39ed1,0xa2fe8cca,0xaff582c3,0x8cc4a8fc,0x81cfa6f5,0x96d2b4ee,0x9bd9bae7,0xbb7bdb3b,0xb670d532,0xa16dc729,0xac66c920,0x8f57e31f,0x825ced16,0x9541ff0d,0x984af104,0xd323ab73,0xde28a57a,0xc935b761,0xc43eb968,0xe70f9357,0xea049d5e,0xfd198f45,0xf012814c,0x6bcb3bab,0x66c035a2,0x71dd27b9,0x7cd629b0,0x5fe7038f,0x52ec0d86,0x45f11f9d,0x48fa1194,0x3934be3,0xe9845ea,0x198557f1,0x148e59f8,0x37bf73c7,0x3ab47dce,0x2da96fd5,0x20a261dc,0x6df6ad76,0x60fda37f,0x77e0b164,0x7aebbf6d,0x59da9552,0x54d19b5b,0x43cc8940,0x4ec78749,0x5aedd3e,0x8a5d337,0x1fb8c12c,0x12b3cf25,0x3182e51a,0x3c89eb13,0x2b94f908,0x269ff701,0xbd464de6,0xb04d43ef,0xa75051f4,0xaa5b5ffd,0x896a75c2,0x84617bcb,0x937c69d0,0x9e7767d9,0xd51e3dae,0xd81533a7,0xcf0821bc,0xc2032fb5,0xe132058a,0xec390b83,0xfb241998,0xf62f1791,0xd68d764d,0xdb867844,0xcc9b6a5f,0xc1906456,0xe2a14e69,0xefaa4060,0xf8b7527b,0xf5bc5c72,0xbed50605,0xb3de080c,0xa4c31a17,0xa9c8141e,0x8af93e21,0x87f23028,0x90ef2233,0x9de42c3a,0x63d96dd,0xb3698d4,0x1c2b8acf,0x112084c6,0x3211aef9,0x3f1aa0f0,0x2807b2eb,0x250cbce2,0x6e65e695,0x636ee89c,0x7473fa87,0x7978f48e,0x5a49deb1,0x5742d0b8,0x405fc2a3,0x4d54ccaa,0xdaf741ec,0xd7fc4fe5,0xc0e15dfe,0xcdea53f7,0xeedb79c8,0xe3d077c1,0xf4cd65da,0xf9c66bd3,0xb2af31a4,0xbfa43fad,0xa8b92db6,0xa5b223bf,0x86830980,0x8b880789,0x9c951592,0x919e1b9b,0xa47a17c,0x74caf75,0x1051bd6e,0x1d5ab367,0x3e6b9958,0x33609751,0x247d854a,0x29768b43,0x621fd134,0x6f14df3d,0x7809cd26,0x7502c32f,0x5633e910,0x5b38e719,0x4c25f502,0x412efb0b,0x618c9ad7,0x6c8794de,0x7b9a86c5,0x769188cc,0x55a0a2f3,0x58abacfa,0x4fb6bee1,0x42bdb0e8,0x9d4ea9f,0x4dfe496,0x13c2f68d,0x1ec9f884,0x3df8d2bb,0x30f3dcb2,0x27eecea9,0x2ae5c0a0,0xb13c7a47,0xbc37744e,0xab2a6655,0xa621685c,0x85104263,0x881b4c6a,0x9f065e71,0x920d5078,0xd9640a0f,0xd46f0406,0xc372161d,0xce791814,0xed48322b,0xe0433c22,0xf75e2e39,0xfa552030,0xb701ec9a,0xba0ae293,0xad17f088,0xa01cfe81,0x832dd4be,0x8e26dab7,0x993bc8ac,0x9430c6a5,0xdf599cd2,0xd25292db,0xc54f80c0,0xc8448ec9,0xeb75a4f6,0xe67eaaff,0xf163b8e4,0xfc68b6ed,0x67b10c0a,0x6aba0203,0x7da71018,0x70ac1e11,0x539d342e,0x5e963a27,0x498b283c,0x44802635,0xfe97c42,0x2e2724b,0x15ff6050,0x18f46e59,0x3bc54466,0x36ce4a6f,0x21d35874,0x2cd8567d,0xc7a37a1,0x17139a8,0x166c2bb3,0x1b6725ba,0x38560f85,0x355d018c,0x22401397,0x2f4b1d9e,0x642247e9,0x692949e0,0x7e345bfb,0x733f55f2,0x500e7fcd,0x5d0571c4,0x4a1863df,0x47136dd6,0xdccad731,0xd1c1d938,0xc6dccb23,0xcbd7c52a,0xe8e6ef15,0xe5ede11c,0xf2f0f307,0xfffbfd0e,0xb492a779,0xb999a970,0xae84bb6b,0xa38fb562,0x80be9f5d,0x8db59154,0x9aa8834f,0x97a38d46],_0x450e5b[_0x5a67dd([0x55,0x34])]=[0x0,0x90d0b0e,0x121a161c,0x1b171d12,0x24342c38,0x2d392736,0x362e3a24,0x3f23312a,0x48685870,0x4165537e,0x5a724e6c,0x537f4562,0x6c5c7448,0x65517f46,0x7e466254,0x774b695a,0x90d0b0e0,0x99ddbbee,0x82caa6fc,0x8bc7adf2,0xb4e49cd8,0xbde997d6,0xa6fe8ac4,0xaff381ca,0xd8b8e890,0xd1b5e39e,0xcaa2fe8c,0xc3aff582,0xfc8cc4a8,0xf581cfa6,0xee96d2b4,0xe79bd9ba,0x3bbb7bdb,0x32b670d5,0x29a16dc7,0x20ac66c9,0x1f8f57e3,0x16825ced,0xd9541ff,0x4984af1,0x73d323ab,0x7ade28a5,0x61c935b7,0x68c43eb9,0x57e70f93,0x5eea049d,0x45fd198f,0x4cf01281,0xab6bcb3b,0xa266c035,0xb971dd27,0xb07cd629,0x8f5fe703,0x8652ec0d,0x9d45f11f,0x9448fa11,0xe303934b,0xea0e9845,0xf1198557,0xf8148e59,0xc737bf73,0xce3ab47d,0xd52da96f,0xdc20a261,0x766df6ad,0x7f60fda3,0x6477e0b1,0x6d7aebbf,0x5259da95,0x5b54d19b,0x4043cc89,0x494ec787,0x3e05aedd,0x3708a5d3,0x2c1fb8c1,0x2512b3cf,0x1a3182e5,0x133c89eb,0x82b94f9,0x1269ff7,0xe6bd464d,0xefb04d43,0xf4a75051,0xfdaa5b5f,0xc2896a75,0xcb84617b,0xd0937c69,0xd99e7767,0xaed51e3d,0xa7d81533,0xbccf0821,0xb5c2032f,0x8ae13205,0x83ec390b,0x98fb2419,0x91f62f17,0x4dd68d76,0x44db8678,0x5fcc9b6a,0x56c19064,0x69e2a14e,0x60efaa40,0x7bf8b752,0x72f5bc5c,0x5bed506,0xcb3de08,0x17a4c31a,0x1ea9c814,0x218af93e,0x2887f230,0x3390ef22,0x3a9de42c,0xdd063d96,0xd40b3698,0xcf1c2b8a,0xc6112084,0xf93211ae,0xf03f1aa0,0xeb2807b2,0xe2250cbc,0x956e65e6,0x9c636ee8,0x877473fa,0x8e7978f4,0xb15a49de,0xb85742d0,0xa3405fc2,0xaa4d54cc,0xecdaf741,0xe5d7fc4f,0xfec0e15d,0xf7cdea53,0xc8eedb79,0xc1e3d077,0xdaf4cd65,0xd3f9c66b,0xa4b2af31,0xadbfa43f,0xb6a8b92d,0xbfa5b223,0x80868309,0x898b8807,0x929c9515,0x9b919e1b,0x7c0a47a1,0x75074caf,0x6e1051bd,0x671d5ab3,0x583e6b99,0x51336097,0x4a247d85,0x4329768b,0x34621fd1,0x3d6f14df,0x267809cd,0x2f7502c3,0x105633e9,0x195b38e7,0x24c25f5,0xb412efb,0xd7618c9a,0xde6c8794,0xc57b9a86,0xcc769188,0xf355a0a2,0xfa58abac,0xe14fb6be,0xe842bdb0,0x9f09d4ea,0x9604dfe4,0x8d13c2f6,0x841ec9f8,0xbb3df8d2,0xb230f3dc,0xa927eece,0xa02ae5c0,0x47b13c7a,0x4ebc3774,0x55ab2a66,0x5ca62168,0x63851042,0x6a881b4c,0x719f065e,0x78920d50,0xfd9640a,0x6d46f04,0x1dc37216,0x14ce7918,0x2bed4832,0x22e0433c,0x39f75e2e,0x30fa5520,0x9ab701ec,0x93ba0ae2,0x88ad17f0,0x81a01cfe,0xbe832dd4,0xb78e26da,0xac993bc8,0xa59430c6,0xd2df599c,0xdbd25292,0xc0c54f80,0xc9c8448e,0xf6eb75a4,0xffe67eaa,0xe4f163b8,0xedfc68b6,0xa67b10c,0x36aba02,0x187da710,0x1170ac1e,0x2e539d34,0x275e963a,0x3c498b28,0x35448026,0x420fe97c,0x4b02e272,0x5015ff60,0x5918f46e,0x663bc544,0x6f36ce4a,0x7421d358,0x7d2cd856,0xa10c7a37,0xa8017139,0xb3166c2b,0xba1b6725,0x8538560f,0x8c355d01,0x97224013,0x9e2f4b1d,0xe9642247,0xe0692949,0xfb7e345b,0xf2733f55,0xcd500e7f,0xc45d0571,0xdf4a1863,0xd647136d,0x31dccad7,0x38d1c1d9,0x23c6dccb,0x2acbd7c5,0x15e8e6ef,0x1ce5ede1,0x7f2f0f3,0xefffbfd,0x79b492a7,0x70b999a9,0x6bae84bb,0x62a38fb5,0x5d80be9f,0x548db591,0x4f9aa883,0x4697a38d];const _0x8334ae=new Uint8Array(0x10);for(let _0x25a2fa=0xf;_0x25a2fa>=0x0;--_0x25a2fa)_0x8334ae[_0x25a2fa]=_0x55c83c%0x100,_0x55c83c=parseInt(_0x55c83c/0x100);let _0x204c87=null,_0x16e669=0x10;const _0x1d19f6=new Uint8Array(_0x3e3be5),_0x37f8f4=[],_0x14dbbe=[];_0x144ddb();for(let _0x3a931c=0x0;_0x3a931c<_0x4aabf3[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a931c++)0x10===_0x16e669&&(_0x204c87=_0x1a4df8(_0x8334ae),_0x16e669=0x0,_0x4d46b5(_0x8334ae)),_0x4aabf3[_0x3a931c]^=_0x204c87[_0x16e669++];return _0x4aabf3;function _0xb8e351(_0x27c096){const _0x24050d=[];for(let _0x40c258=0x0;_0x40c258<_0x27c096[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40c258+=0x4)_0x24050d[_0x5a67dd([0x70,0x75,0x73,0x68])](_0x27c096[_0x40c258]<<0x18|_0x27c096[_0x40c258+0x1]<<0x10|_0x27c096[_0x40c258+0x2]<<0x8|_0x27c096[_0x40c258+0x3]);return _0x24050d;}function _0x4d46b5(_0x980b02){for(let _0x34f19c=0xf;_0x34f19c>=0x0;_0x34f19c--){if(0xff!==_0x980b02[_0x34f19c]){_0x980b02[_0x34f19c]++;break;}_0x980b02[_0x34f19c]=0x0;}}function _0x1a4df8(_0x3617bf){const _0x43f23b=_0x37f8f4[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x1,_0x862a26=[0x0,0x0,0x0,0x0];let t=_0xb8e351(_0x3617bf);for(let _0x15d833=0x0;_0x15d833<0x4;_0x15d833++)t[_0x15d833]^=_0x37f8f4[0x0][_0x15d833];for(let _0x22a86b=0x1;_0x22a86b<_0x43f23b;_0x22a86b++){for(let _0x1aad20=0x0;_0x1aad20<0x4;_0x1aad20++)_0x862a26[_0x1aad20]=_0x450e5b[_0x5a67dd([0x54,0x31])][t[_0x1aad20]>>0x18&0xff]^_0x450e5b[_0x5a67dd([0x54,0x32])][t[(_0x1aad20+0x1)%0x4]>>0x10&0xff]^_0x450e5b[_0x5a67dd([0x54,0x33])][t[(_0x1aad20+0x2)%0x4]>>0x8&0xff]^_0x450e5b[_0x5a67dd([0x54,0x34])][0xff&t[(_0x1aad20+0x3)%0x4]]^_0x37f8f4[_0x22a86b][_0x1aad20];t=_0x862a26[_0x5a67dd([0x73,0x6c,0x69,0x63,0x65])]();}const _0x411e92=new Uint8Array(0x10);let _0x54844e;for(let _0x575552=0x0;_0x575552<0x4;_0x575552++)_0x54844e=_0x37f8f4[_0x43f23b][_0x575552],_0x411e92[0x4*_0x575552]=0xff&(_0x450e5b[_0x5a67dd([0x53])][t[_0x575552]>>0x18&0xff]^_0x54844e>>0x18),_0x411e92[0x4*_0x575552+0x1]=0xff&(_0x450e5b[_0x5a67dd([0x53])][t[(_0x575552+0x1)%0x4]>>0x10&0xff]^_0x54844e>>0x10),_0x411e92[0x4*_0x575552+0x2]=0xff&(_0x450e5b[_0x5a67dd([0x53])][t[(_0x575552+0x2)%0x4]>>0x8&0xff]^_0x54844e>>0x8),_0x411e92[0x4*_0x575552+0x3]=0xff&(_0x450e5b[_0x5a67dd([0x53])][0xff&t[(_0x575552+0x3)%0x4]]^_0x54844e);return _0x411e92;}function _0x144ddb(){const _0x47ccb6=_0x450e5b[_0x5a67dd([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])][_0x1d19f6[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]];for(let _0x5e5c89=0x0;_0x5e5c89<=_0x47ccb6;_0x5e5c89++)_0x37f8f4[_0x5a67dd([0x70,0x75,0x73,0x68])]([0x0,0x0,0x0,0x0]),_0x14dbbe[_0x5a67dd([0x70,0x75,0x73,0x68])]([0x0,0x0,0x0,0x0]);const _0x4784f5=0x4*(_0x47ccb6+0x1),_0x55831a=_0x1d19f6[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]/0x4,_0x449083=_0xb8e351(_0x1d19f6);let _0x4ed7a0;for(let _0x2de90a=0x0;_0x2de90a<_0x55831a;_0x2de90a++)_0x4ed7a0=_0x2de90a>>0x2,_0x37f8f4[_0x4ed7a0][_0x2de90a%0x4]=_0x449083[_0x2de90a],_0x14dbbe[_0x47ccb6-_0x4ed7a0][_0x2de90a%0x4]=_0x449083[_0x2de90a];let _0x4d9e9a,_0xbe246a=0x0,t=_0x55831a;for(;t<_0x4784f5;){_0x4d9e9a=_0x449083[_0x55831a-0x1],_0x449083[0x0]^=_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x10&0xff]<<0x18^_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x8&0xff]<<0x10^_0x450e5b[_0x5a67dd([0x53])][0xff&_0x4d9e9a]<<0x8^_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x18&0xff]^_0x450e5b[_0x5a67dd([0x72,0x63,0x6f,0x6e])][_0xbe246a]<<0x18,_0xbe246a+=0x1;for(let _0x1a653d=0x1;_0x1a653d<_0x55831a/0x2;_0x1a653d++)_0x449083[_0x1a653d]^=_0x449083[_0x1a653d-0x1];_0x4d9e9a=_0x449083[_0x55831a/0x2-0x1],_0x449083[_0x55831a/0x2]^=_0x450e5b[_0x5a67dd([0x53])][0xff&_0x4d9e9a]^_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x8&0xff]<<0x8^_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x10&0xff]<<0x10^_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x18&0xff]<<0x18;for(let _0xd0e928=_0x55831a/0x2+0x1;_0xd0e928<_0x55831a;_0xd0e928++)_0x449083[_0xd0e928]^=_0x449083[_0xd0e928-0x1];let _0x460fd8,_0x93922a,_0x1d6b87=0x0;for(;_0x1d6b87<_0x55831a&&t<_0x4784f5;)_0x460fd8=t>>0x2,_0x93922a=t%0x4,_0x37f8f4[_0x460fd8][_0x93922a]=_0x449083[_0x1d6b87],_0x14dbbe[_0x47ccb6-_0x460fd8][_0x93922a]=_0x449083[_0x1d6b87++],t++;}for(let _0x543cda=0x1;_0x543cda<_0x47ccb6;_0x543cda++)for(let _0x1ac895=0x0;_0x1ac895<0x4;_0x1ac895++)_0x4d9e9a=_0x14dbbe[_0x543cda][_0x1ac895],_0x14dbbe[_0x543cda][_0x1ac895]=_0x450e5b[_0x5a67dd([0x55,0x31])][_0x4d9e9a>>0x18&0xff]^_0x450e5b[_0x5a67dd([0x55,0x32])][_0x4d9e9a>>0x10&0xff]^_0x450e5b[_0x5a67dd([0x55,0x33])][_0x4d9e9a>>0x8&0xff]^_0x450e5b[_0x5a67dd([0x55,0x34])][0xff&_0x4d9e9a];}}function _0x5a67dd(_0x2e203f){return _0x2e203f['map'](_0x137047=>String['fromCharCode'](_0x137047))['join']('');}(_0x7e9c4a=>{function _0x29499b(){const _0xc97e4b=[{[_0x5a67dd([0x69,0x64])]:0x1,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]:[{[_0x5a67dd([0x69,0x64])]:0x2,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x20,0x43,0x68,0x61,0x6e,0x67,0x65,0x73]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x5a67dd([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x5a67dd([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}}],[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x5a67dd([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x5a67dd([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}},{[_0x5a67dd([0x69,0x64])]:0x3,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x50,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x50,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x6f,0x6f,0x6b,0x75,0x70]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x5a67dd([0x69,0x64])]:0x4,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x20,0x48,0x69,0x73,0x74,0x6f,0x72,0x79]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x5a67dd([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x5a67dd([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}},{[_0x5a67dd([0x69,0x64])]:0x5,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x20,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x64,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0x6,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x46,0x6f,0x72,0x6d,0x61,0x74,0x20,0x50,0x61,0x69,0x6e,0x74,0x65,0x72]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x46,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0x7,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x53,0x6c,0x61,0x73,0x68,0x20,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x53,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0x8,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x61,0x62,0x6c,0x65,0x20,0x6f,0x66,0x20,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x74,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0x9,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc,0xe]}},{[_0x5a67dd([0x69,0x64])]:0xa,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x50,0x61,0x73,0x74,0x65,0x20,0x66,0x72,0x6f,0x6d,0x20,0x4f,0x66,0x66,0x69,0x63,0x65,0x20,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x50,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x72]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0xb,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x41,0x49,0x20,0x41,0x73,0x73,0x69,0x73,0x74,0x61,0x6e,0x74]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x41,0x49,0x41,0x73,0x73,0x69,0x73,0x74,0x61,0x6e,0x74,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x5a67dd([0x69,0x64])]:0xc,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x50,0x72,0x6f,0x64,0x75,0x63,0x74,0x69,0x76,0x69,0x74,0x79,0x20,0x70,0x61,0x63,0x6b])},{[_0x5a67dd([0x69,0x64])]:0xd,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x43,0x61,0x73,0x65,0x20,0x43,0x68,0x61,0x6e,0x67,0x65]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x43,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0xe,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x44,0x72,0x75,0x70,0x61,0x6c,0x20,0x70,0x61,0x63,0x6b]),[_0x5a67dd([0x66,0x6f,0x72,0x62,0x69,0x64,0x64,0x65,0x6e,0x48,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x66,0x6f,0x72,0x62,0x69,0x64,0x64,0x65,0x6e,0x48,0x61,0x6e,0x64,0x6c,0x65,0x72,0x46,0x6f,0x72,0x44,0x72,0x75,0x70,0x61,0x6c])},{[_0x5a67dd([0x69,0x64])]:0xf,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x4d,0x75,0x6c,0x74,0x69,0x20,0x4c,0x65,0x76,0x65,0x6c,0x20,0x4c,0x69,0x73,0x74]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x4d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x5a67dd([0x69,0x64])]:0x10,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x4d,0x65,0x72,0x67,0x65,0x20,0x46,0x69,0x65,0x6c,0x64,0x73]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x4d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}}];return _0x5a4061(_0xc97e4b),_0xc97e4b;function _0x26fddd(_0xbada5b){return 0x1<<_0xbada5b-0x1;}function _0x5a4061(_0x2e7eb4){_0x2e7eb4[_0x5a67dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x425bce=>{_0x425bce[_0x5a67dd([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]=_0x26fddd(_0x425bce[_0x5a67dd([0x69,0x64])]),_0x3dbbcd(_0x425bce)&&_0x425bce[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]&&_0x5a4061(_0x425bce[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]);});}}function _0x3dbbcd(_0xa5a31d){return _0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])in _0xa5a31d;}const _0x5a9b57=[0x1,0x55,0x4e,0x73,0xc6,0xff,0x32,0x70,0x53,0x57,0xa1],_0x163172=[0x7f,0x22,0x6,0xd3,0xa7,0x56,0x92,0xc7,0x84,0xa0,0x12];function _0x5d975d(_0x27fc90){const _0x262a55=[0x1d,0xdd,0xaf,0x5a,0xe7,0x85,0xef,0xf0,0x4b,0xb4];return _0x543d2d(_0x27fc90,new Uint8Array([..._0x5a9b57,..._0x262a55,..._0x163172]));}function _0x543d2d(_0x12b5a8,_0x45bcb8){const _0x66de49=_0x11f5d8(_0x12b5a8),_0x22adb4=Array[_0x5a67dd([0x66,0x72,0x6f,0x6d])](_0x3a3029(_0x66de49)),_0x194b55=_0x22adb4[_0x5a67dd([0x70,0x6f,0x70])](),_0x566f74=_0x22adb4[_0x5a67dd([0x70,0x6f,0x70])]();return _0x4bfb16(_0x5a3299(_0x22adb4,_0x45bcb8,_0x566f74+0x100*_0x194b55));}function _0x11f5d8(_0x2b3cef){const _0x30418a=atob(_0x2b3cef),[_0x71d47d,_0xc7db38]=_0x30418a[_0x5a67dd([0x73,0x70,0x6c,0x69,0x74])](_0x5a67dd([0x2d]));try{if(atob(_0xc7db38))return atob(_0x71d47d);}catch(_0x1df870){}return _0x30418a;}function _0x3eac9b(_0x7cd5a8){try{const _0x3d70a9=_0x5d975d(_0x7cd5a8),_0x15ae23=JSON[_0x5a67dd([0x70,0x61,0x72,0x73,0x65])](_0x3d70a9),_0x358b9c=parseInt(_0x15ae23[_0x5a67dd([0x31])]),_0x2945d3=_0x15ae23[_0x5a67dd([0x32])]||'',_0x401511=parseInt(_0x15ae23[_0x5a67dd([0x33])]),_0xd963fb=parseInt(_0x15ae23[_0x5a67dd([0x34])])||0x0,_0x212737=parseInt(_0x15ae23[_0x5a67dd([0x35])])||0x0;return{[_0x5a67dd([0x70,0x72,0x6f,0x64,0x75,0x63,0x74,0x4e,0x61,0x6d,0x65])]:_0x2945d3,[_0x5a67dd([0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x50,0x6c,0x75,0x67,0x69,0x6e,0x73])]:_0xd963fb,[_0x5a67dd([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])]:_0x358b9c,[_0x5a67dd([0x69,0x73,0x54,0x72,0x69,0x61,0x6c])]:_0x401511,[_0x5a67dd([0x69,0x73,0x49,0x6e,0x74,0x65,0x72,0x6e,0x61,0x6c])]:_0x212737};}catch(_0x5a3153){return null;}}const _0x3001e2=_0x29499b(),_0xa63dd3={[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])]:_0x4f9f82,[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73])]:_0x457a16,[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79])]:_0x340819},_0x4aa0b5=_0x7e9c4a[_0x5a67dd([0x63,0x6f,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x6f,0x72])][_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])],_0x41dd6e=_0x5a67dd([0x63,0x6f,0x6e,0x74,0x65,0x78,0x74])in _0x7e9c4a?_0x7e9c4a['context']:_0x7e9c4a['editor'],_0x4fef9d=_0x5a67dd([0x34,0x30,0x34,0x38,0x32,0x32,0x31,0x32]),_0x580e23=_0x5a67dd([0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39]),_0x4438df=_0x41dd6e['config']['get'](_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x249ffb=_0x3001e2[_0x5a67dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dbbcd)[_0x5a67dd([0x66,0x69,0x6e,0x64])](_0x57f801=>_0x57f801[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]===_0x4aa0b5);function _0x1d670a(_0x500f64,_0x10e216){_0xa63dd3[_0x10e216[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]](_0x500f64,_0x10e216),_0x10e216[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]&&_0x10e216[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])][_0x5a67dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49fd19=>_0x59f785(_0x41dd6e,_0x49fd19[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]))[_0x5a67dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e1e67=>_0x1d670a(_0x500f64,_0x3e1e67));}function _0x4f9f82(_0x26d1dd,_0x218ab9){_0x254996(_0x4749d3(_0x26d1dd,_0x218ab9),_0x218ab9);}function _0x457a16(_0x1660d1,_0x4380c3){function _0x314585(_0x1c3e2b,_0x34471c){try{if(_0x59f785(_0x41dd6e,_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))&&_0x1c3e2b){const _0x5d3be8=_0x23617b(_0x41dd6e,_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))[_0x5a67dd([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])];if(parseInt(_0x5d3be8)/0x2>_0x1c3e2b[_0x5a67dd([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])])return _0x4f7d47(_0x34471c[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}return _0x4749d3(_0x1c3e2b,_0x34471c);}catch(_0x580f92){return _0x4f7d47(_0x34471c[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}_0x254996(_0x314585(_0x1660d1,_0x4380c3),_0x4380c3);}function _0x340819(_0x5ad37c,_0xec3b1c){const _0xae597c=_0x163172[0x0]*_0x5a9b57[0x1],_0x8ea88a=_0x163172[0x0]*_0x5a9b57[0x2],_0x276fed=_0x163172[0x2]*_0x5a9b57[0x2];_0x59f785(_0x41dd6e,_0x5a67dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x23617b(_0x41dd6e,_0x5a67dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a67dd([0x73,0x74,0x61,0x74,0x65])]==_0x5a67dd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64])&&(window[_0x39c6d9()]=_0x276fed);function _0x3cfe6a(_0x277c55,_0x3a690c){try{return _0x53a718()?_0x4f7d47(_0x3a690c[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x56,0x61,0x6c,0x69,0x64])):_0x4749d3(_0x277c55,_0x3a690c);}catch(_0x33a1c7){return _0x4f7d47(_0x3a690c[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}function _0x1d1805(_0xd39ce3,_0x245aea){const _0x18d81f=0x7;if(_0xd39ce3==_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]))_0x38cdf5();else{if(_0xd39ce3==_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c])){const _0xbfab80=_0xdc038e();_0xbfab80&&_0x217052(_0xbfab80,_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);const _0x468491=_0x513bac();window[_0x5a67dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](()=>{_0x217052(_0x5a67dd([0x74,0x69,0x6d,0x65]),_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);},_0x468491);const _0x568fa9=_0x23617b(_0x41dd6e,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x5a67dd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];_0x568fa9[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x18d81f?_0x217052(_0x5a67dd([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]),_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]):_0x568fa9['on'](_0x5a67dd([0x61,0x64,0x64]),()=>{_0x568fa9[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x18d81f&&_0x217052(_0x5a67dd([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]),_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);});}}}function _0xdc038e(){if(!_0x59f785(_0x41dd6e,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72])))return!0x1;for(const _0x2c67ae in window)if(Number['isNaN'](Number(_0x2c67ae))){if(window[_0x2c67ae]===_0xae597c)return _0x5a67dd([0x74,0x69,0x6d,0x65]);if(window[_0x2c67ae]===_0x8ea88a)return _0x5a67dd([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]);}return!0x1;}function _0x53a718(){if(!_0x59f785(_0x41dd6e,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72])))return!0x1;for(const _0x264b2e in window)if(Number['isNaN'](Number(_0x264b2e))&&window[_0x264b2e]===_0x276fed)return!0x0;return!0x1;}function _0x217052(_0x27391d,_0x2cbf42){_0x38cdf5(),_0x4f7d47(_0x2cbf42+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a])+_0x27391d),window[_0x39c6d9()]=_0x27391d===_0x5a67dd([0x74,0x69,0x6d,0x65])?_0xae597c:_0x8ea88a;}function _0x513bac(){let _0x2541b9=_0x163172[0x6]*_0x5a9b57[0x8]*_0x5a9b57[0x6];return _0x59f785(_0x41dd6e,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&(_0x2541b9/=0xa),_0x2541b9;}function _0x38cdf5(){const _0xdfffe0=_0x41dd6e;function _0x53c1c8(){_0x59f785(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))&&(_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x5a67dd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5a67dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x5a67dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x5a67dd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5a2e1c,_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x5a67dd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5a2e1c,_0xdfffe0[_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a67dd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a2e1c,_0xdfffe0[_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a67dd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a2e1c,_0xdfffe0[_0x5a67dd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c]))),_0x59f785(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&(_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x5a67dd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5a67dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x5a67dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x5a67dd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5a2e1c,_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x5a67dd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5a2e1c);}_0xdfffe0[_0x5a67dd([0x73,0x74,0x61,0x74,0x65])]==_0x5a67dd([0x72,0x65,0x61,0x64,0x79])?_0x53c1c8():_0xdfffe0[_0x5a67dd([0x6f,0x6e,0x63,0x65])](_0x5a67dd([0x72,0x65,0x61,0x64,0x79]),()=>{if(_0x59f785(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))&&_0x53c1c8(),_0x59f785(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xfc6dc1=_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79])),_0x1dd16a=_0xfc6dc1['getRevision'](0x0),_0x3ec402=_0xfc6dc1['getEarlierVisibleRevision'](_0x1dd16a[_0x5a67dd([0x69,0x64])]);_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x5a67dd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1dd16a[_0x5a67dd([0x69,0x64])],_0x3ec402?_0x3ec402[_0x5a67dd([0x69,0x64])]:null,0x1)['then'](()=>_0x53c1c8());}});}_0x1d1805(_0x3cfe6a(_0x5ad37c,_0xec3b1c),_0xec3b1c);}function _0x4749d3(_0x5ba1b0,_0x573bbd){try{return _0x1bda77(_0x573bbd)?_0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x56,0x61,0x6c,0x69,0x64])):_0x5ba1b0&&_0x5a27cf(_0x5ba1b0[_0x5a67dd([0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x50,0x6c,0x75,0x67,0x69,0x6e,0x73])],_0x573bbd)?_0x5ba1b0[_0x5a67dd([0x69,0x73,0x49,0x6e,0x74,0x65,0x72,0x6e,0x61,0x6c])]&&!window[_0x5a67dd([0x6f,0x70,0x65,0x6e])][_0x5a67dd([0x63,0x6c,0x6f,0x73,0x65,0x64])]||parseInt(_0x4fef9d)/0x2>_0x5ba1b0[_0x5a67dd([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])]?_0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])):_0x5ba1b0[_0x5a67dd([0x69,0x73,0x54,0x72,0x69,0x61,0x6c])]?_0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c])):_0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x56,0x61,0x6c,0x69,0x64])):_0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}catch(_0x26a17a){return _0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}function _0x254996(_0x2b8be3,_0x34d802){if(_0x41dd6e instanceof _0x19199a){const _0x28294a=_0x41dd6e;_0x2b8be3==_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?_0x3552f1(_0x28294a):_0x2b8be3==_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c])&&window[_0x5a67dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](()=>{_0x3552f1(_0x28294a),_0x4f7d47(_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x74,0x69,0x6d,0x65]));},_0x163172[0x6]*_0x5a9b57[0x8]*_0x5a9b57[0x6]),_0x28294a[_0x5a67dd([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])][_0x5a67dd([0x6f,0x6e])](_0x5a67dd([0x61,0x64,0x64]),(_0x2a8d55,_0x43af20)=>{_0x2b8be3!=_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])&&_0x2b8be3!=_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x74,0x69,0x6d,0x65])&&_0x2b8be3!=_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x6f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73])||_0x5558c0(_0x43af20);});}else{const _0x31cf21=_0x41dd6e;_0x2b8be3==_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?_0x5558c0(_0x31cf21):_0x2b8be3==_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c])&&_0x31cf21[_0x5a67dd([0x6f,0x6e])](_0x5a67dd([0x72,0x65,0x61,0x64,0x79]),()=>{let _0x4684c3=0x0;_0x31cf21[_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a67dd([0x6f,0x6e])](_0x5a67dd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28bb0f,_0x145c66)=>{_0x145c66[0x0][_0x5a67dd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4684c3++,0x1f8===_0x4684c3&&(_0x5558c0(_0x31cf21),_0x4f7d47(_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x6f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73])),_0x28bb0f[_0x5a67dd([0x6f,0x66,0x66])]());},{'priority':_0x5a67dd([0x68,0x69,0x67,0x68,0x65,0x73,0x74])});});}}function _0x4f7d47(_0x574e3f){const _0x3d1cd6=_0x39c6d9();return _0x41dd6e[_0x3d1cd6]=_0x574e3f,_0x574e3f;}function _0x39c6d9(){const _0xe73227=String(window[_0x5a67dd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a67dd([0x6e,0x6f,0x77])]())[_0x5a67dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a67dd([0x2e]),'');let _0x5bb9bf='';for(let _0x1c0b2f=0x0;_0x1c0b2f<_0xe73227[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c0b2f+=0x2){let _0x105da3=parseInt(_0xe73227[_0x5a67dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c0b2f,_0x1c0b2f+0x2));_0x105da3>=_0x580e23[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x105da3-=_0x580e23[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5bb9bf+=_0x580e23[_0x105da3];}return _0x5bb9bf;}function _0x3552f1(_0x4f3a63){for(const _0x3d122f of _0x4f3a63[_0x5a67dd([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])])_0x5558c0(_0x3d122f);_0x23617b(_0x4f3a63,_0x5a67dd([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x5a67dd([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])](!0x0),_0x23617b(_0x4f3a63,_0x5a67dd([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x5a67dd([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])]=_0x5a2e1c;}function _0x5558c0(_0x3c26b2){function _0x2ff75b(){_0x3c26b2[_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a67dd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a2e1c,_0x3c26b2[_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a67dd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a2e1c,_0x3c26b2[_0x5a67dd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c]));}_0x3c26b2[_0x5a67dd([0x73,0x74,0x61,0x74,0x65])]==_0x5a67dd([0x72,0x65,0x61,0x64,0x79])?_0x2ff75b():_0x3c26b2[_0x5a67dd([0x6f,0x6e,0x63,0x65])](_0x5a67dd([0x72,0x65,0x61,0x64,0x79]),()=>_0x2ff75b());}function _0x5a2e1c(){return null;}function _0x5a27cf(_0x27c2d4,_0x55d520){const _0x21589d=!!(_0x27c2d4&_0x55d520[_0x5a67dd([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]),_0x47e33f=_0x38df77(_0x27c2d4,_0x55d520);return _0x21589d||_0x47e33f;}function _0x38df77(_0x496f02,_0x248934){const _0x2d160f=(_0x248934[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]||{})[_0x5a67dd([0x66,0x67,0x69])]||null;return!!_0x2d160f&&_0x3001e2[_0x5a67dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x433b1e=>_0x2d160f[_0x5a67dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x433b1e[_0x5a67dd([0x69,0x64])]))[_0x5a67dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x595c37=>!_0x79dca9(_0x595c37))[_0x5a67dd([0x73,0x6f,0x6d,0x65])](_0xef2ab2=>!!(_0x496f02&_0xef2ab2[_0x5a67dd([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]));}function _0x79dca9(_0x36a69){const _0x3f0ccd={[_0x5a67dd([0x66,0x6f,0x72,0x62,0x69,0x64,0x64,0x65,0x6e,0x48,0x61,0x6e,0x64,0x6c,0x65,0x72,0x46,0x6f,0x72,0x44,0x72,0x75,0x70,0x61,0x6c])]:_0x243d71};return!!_0x36a69['forbiddenHandler']&&_0x3f0ccd[_0x36a69['forbiddenHandler']]();}function _0x243d71(){return!window[_0x5a67dd([0x44,0x72,0x75,0x70,0x61,0x6c])]||!_0x59f785(_0x41dd6e,_0x5a67dd([0x64,0x72,0x75,0x70,0x61,0x6c,0x50,0x6f,0x77,0x65,0x72,0x65,0x64,0x42,0x79]));}function _0x1bda77(_0x2886eb){if(!_0x59f785(_0x41dd6e,_0x2886eb[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]))return!0x0;const _0x3486a1=_0x2886eb[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]||{},_0xeef6a8=_0x3486a1[_0x5a67dd([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]||!0x1,_0x4e1bd0=_0x3486a1[_0x5a67dd([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]||!0x1,_0x2f5a26=_0x3486a1[_0x5a67dd([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]||!0x1;if(_0x59f785(_0x41dd6e,_0x5a67dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x23617b(_0x41dd6e,_0x5a67dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a67dd([0x73,0x74,0x61,0x74,0x65])]==_0x5a67dd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64])&&_0xeef6a8)return!0x0;if(_0x59f785(_0x41dd6e,_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]))&&_0x23617b(_0x41dd6e,_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]))[_0x5a67dd([0x72,0x65,0x73,0x75,0x6c,0x74])]==_0x5a67dd([0x65,0x6e,0x64])&&_0x4e1bd0)return!0x0;return!(!_0x59f785(_0x41dd6e,_0x5a67dd([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]))||_0x23617b(_0x41dd6e,_0x5a67dd([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]))[_0x5a67dd([0x72,0x65,0x73,0x75,0x6c,0x74])]!=_0x5a67dd([0x65,0x6e,0x64])||!_0x2f5a26);}function _0x59f785(_0x38672a,_0x51ed0c){return _0x38672a[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a67dd([0x68,0x61,0x73])](_0x51ed0c);}function _0x23617b(_0x5367c8,_0x419915){return _0x5367c8[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a67dd([0x67,0x65,0x74])](_0x419915);}function _0x4bfb16(_0x266d8e){let _0x5ae7c1='';for(const _0x43810c of _0x266d8e)_0x5ae7c1+=String[_0x5a67dd([0x66,0x72,0x6f,0x6d,0x43,0x68,0x61,0x72,0x43,0x6f,0x64,0x65])](_0x43810c);return _0x5ae7c1;}function _0x3a3029(_0x597681){const _0x288cea=new Uint8Array(_0x597681[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]);for(let _0x289b47=0x0;_0x289b47<_0x597681[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x289b47++)_0x288cea[_0x289b47]=_0x597681[_0x5a67dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x289b47);return _0x288cea;}_0x249ffb&&_0x1d670a(_0x3eac9b(_0x4438df),_0x249ffb);})(_0x1923ac);}(this);}set['adapter'](_0x2c5c98){if(this['_adapter'])throw new _0x4f0fc3('commentsrepository-adapter-already-set');this['_adapter']=_0x2c5c98;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x2cfbcc=gt,threadId:_0x28aaaf=_0xa10dd(),comments:_0x45e1b8=[],unlinkedAt:_0x537e7c=null,resolvedAt:_0x4c6b8e=null,resolvedBy:_0x557e27=null,target:_0x112842=null,context:_0x58e0a1=null,attributes:_0x1baa5c={},isResolvable:_0x4010b0=!0x0,isSubmitted:_0xb3b663=!0x1,isFromAdapter:_0x53dc8e=!0x1}={}){return this['fire'](bt('addCommentThread',_0x2cfbcc),{'channelId':_0x2cfbcc,'threadId':_0x28aaaf,'comments':_0x45e1b8,'unlinkedAt':_0x537e7c,'resolvedAt':_0x4c6b8e,'resolvedBy':_0x557e27,'target':_0x112842,'context':_0x58e0a1,'attributes':_0x1baa5c,'isFromAdapter':_0x53dc8e,'isResolvable':_0x4010b0,'isSubmitted':_0xb3b663}),this['getCommentThread'](_0x28aaaf);}['openNewCommentThread']({channelId:_0x46e141=gt,threadId:_0x52a481=_0xa10dd(),target:_0x174f90,context:_0x243ee6=null,isResolvable:_0x5c01d1=!0x0}){if(this['_readOnlyChannels']['has'](_0x46e141)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x174f90)throw new _0x4f0fc3('commentsrepository-missing-target');const _0xbb22f6=this['addCommentThread']({'channelId':_0x46e141,'threadId':_0x52a481,'target':_0x174f90,'context':_0x243ee6,'isResolvable':_0x5c01d1});if(!_0xbb22f6)return null;const _0xbd10fc=this['_threadToController']['get'](_0xbb22f6),_0x5ce338=_0xbd10fc['view']['commentThreadInputView']['commentInputView'],_0x446e73=this['context']['plugins']['get'](N),_0x1483b1=_0x446e73['getByInnerView'](_0xbd10fc['view']);return _0x446e73['activate'](_0x1483b1),_0x5ce338['once']('editorReady',()=>_0x5ce338['focus']()),_0xbb22f6;}['hasCommentThread'](_0x3cf7df){if('string'!=typeof _0x3cf7df)throw new _0x4f0fc3('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x3cf7df);}['updateCommentThread']({channelId:_0x9f6bd=gt,threadId:_0x304e38,context:_0x1d39a6,unlinkedAt:_0x2bb1e8,attributes:_0x876070,isFromAdapter:_0x3276a6=!0x1}){return this['fire'](bt('updateCommentThread',_0x9f6bd),{'channelId':_0x9f6bd,'threadId':_0x304e38,'context':_0x1d39a6,'unlinkedAt':_0x2bb1e8,'attributes':_0x876070,'isFromAdapter':_0x3276a6}),this['getCommentThread'](_0x304e38);}['getCommentThread'](_0x5e7864){if('string'!=typeof _0x5e7864)throw new _0x4f0fc3('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x5e7864);}['fetchCommentThread']({channelId:_0x512059,threadId:_0x568e81}={}){const _0x967221=this['getCommentThread'](_0x568e81);if(_0x967221)return Promise['resolve'](_0x967221);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4f0fc3('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x512059,'threadId':_0x568e81})['then'](_0x3fa8d6=>this['hasCommentThread'](_0x568e81)?this['getCommentThread'](_0x568e81):_0x3fa8d6?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x512059},_0x3fa8d6)):void 0x0)['catch'](_0x6685b2=>{throw console['error'](_0x6685b2),new _0x4f0fc3('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1227be,skipNotAttached:_0x43b13c=!0x1,skipEmpty:_0x306db0=!0x1,toJSON:_0x52561e=!0x1}={}){const _0x6d88bc=[];for(const _0x4b807e of this['_threads']['values']())_0x1227be&&_0x4b807e['channelId']!==_0x1227be||_0x43b13c&&!_0x4b807e['isAttached']||_0x306db0&&0x0===_0x4b807e['length']||_0x6d88bc['push'](_0x4b807e);return _0x52561e?_0x6d88bc['map'](_0x1394d8=>_0x1394d8['toJSON']()):_0x6d88bc;}['setActiveCommentThread'](_0xc1f52a){const _0x5e03ba=this['context']['plugins']['get'](N);if(!_0xc1f52a)return void(this['activeCommentThread']&&_0x5e03ba['deactivateAll']());const _0x4ef6f9=this['getCommentThread'](_0xc1f52a);if(!_0x4ef6f9)throw new _0x4f0fc3('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xc1f52a});if(!this['_threadToController']['has'](_0x4ef6f9))throw new _0x4f0fc3('commentsrepository-active-not-attached',null,{'threadId':_0xc1f52a});const _0x500b89=_0x5e03ba['getByInnerView'](this['_threadToController']['get'](_0x4ef6f9)['view']);_0x5e03ba['activate'](_0x500b89);}['switchReadOnly'](_0x1756a7,_0x5b71ae){_0x1756a7?this['_readOnlyChannels']['add'](_0x5b71ae):this['_readOnlyChannels']['delete'](_0x5b71ae),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x36bcc5){return this['_readOnlyChannels']['has'](_0x36bcc5)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x15c87f,_0x3981db){return new At(_0x15c87f,_0x3981db);}['setPermissions'](_0x18fc6a,_0x23a1b9=gt){this['_permissions']['set'](_0x23a1b9,_0x18fc6a),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1fd47d=gt){return this['_permissions']['has'](_0x1fd47d)?this['_permissions']['get'](_0x1fd47d):Tt;}['_addCommentThread']({channelId:_0x1e716b,threadId:_0xe08337,comments:_0x4eaf92,unlinkedAt:_0x4b185e,resolvedAt:_0x50e41d,resolvedBy:_0x20f0ba,target:_0x5ef736,context:_0x45ef01,attributes:_0x595ae1,isFromAdapter:_0x3da988,isResolvable:_0x4b801c,isSubmitted:_0x581a64}){if('string'!=typeof _0xe08337)throw new _0x4f0fc3('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xe08337});if(this['hasCommentThread'](_0xe08337))throw new _0x4f0fc3('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0xe08337});const _0x54f5e5=new ie(this,{'channelId':_0x1e716b,'id':_0xe08337,'context':_0x45ef01,'attributes':_0x595ae1,'unlinkedAt':_0x4b185e,'resolvedAt':_0x50e41d,'resolvedBy':_0x20f0ba?this['context']['plugins']['get'](it)['getUser'](_0x20f0ba):null,'isResolvable':_0x4b801c,'isSubmitted':_0x581a64||_0x3da988});this['_threads']['set'](_0xe08337,_0x54f5e5);for(const _0x4feaa8 of _0x4eaf92)_0x54f5e5['_add'](this['_createNewComment']({'threadId':_0xe08337,..._0x4feaa8}));return _0x5ef736&&_0x54f5e5['attachTo'](_0x5ef736),_0x3da988||!_0x54f5e5['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1e716b,'threadId':_0xe08337});}['_submitCommentThread']({channelId:_0x8244aa,threadId:_0x24e5f4}){if(!this['hasCommentThread'](_0x24e5f4))throw new _0x4f0fc3('commentsrepository-missing-comment-thread',this);const _0x30ec53=this['getCommentThread'](_0x24e5f4);if(_0x30ec53['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x32e45b,comments:_0x2c97eb,resolvedAt:_0x7e4826,resolvedBy:_0x4b0f6e,context:_0x23dc68,attributes:_0x144deb}=_0x30ec53,_0xc79cf3=this['context']['plugins']['get']('PendingActions'),_0xa38c5e=_0xc79cf3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x8244aa,'threadId':_0x32e45b,'comments':_0x2c97eb['map'](_0x2d90c1=>_0x2d90c1['toJSON']()),'resolvedAt':_0x7e4826,'resolvedBy':_0x4b0f6e?_0x4b0f6e['id']:_0x4b0f6e,'context':_0x23dc68,'attributes':_0x144deb})['then'](({comments:_0x33e543})=>{_0xc79cf3['remove'](_0xa38c5e);for(const _0x194575 of _0x33e543)this['_updateComment']({'channelId':_0x8244aa,'threadId':_0x24e5f4,'commentId':_0x194575['commentId'],'createdAt':_0x194575['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x143e5f=>{throw console['error'](_0x143e5f),new _0x4f0fc3('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4223b3,target:_0x1903f2}){const _0x2da36e=this['getCommentThread'](_0x4223b3);if(!_0x2da36e)throw new _0x4f0fc3('commentsrepository-attach-missing-comment-thread',this);const _0x1f6599=this['context']['plugins']['get']('PendingActions'),_0x3a458a=this['context']['plugins']['get'](N),_0x4bed66=this['_createCommentThreadView'](_0x2da36e),_0x1451df=new At(_0x2da36e,_0x4bed66);let _0x10fd1c=null;_0x4bed66['on']('change:isDirty',(_0x5b33b4,_0x49601e,_0x16c5ad)=>{_0x16c5ad?_0x10fd1c=_0x1f6599['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x10fd1c&&(_0x1f6599['remove'](_0x10fd1c),_0x10fd1c=null);}),this['_threadToController']['set'](_0x2da36e,_0x1451df),this['_viewToController']['set'](_0x4bed66,_0x1451df);const _0x38a856=new T(this['context']['locale'],_0x4bed66);_0x38a856['bind']('length')['to'](_0x4bed66),_0x38a856['bind']('isDirty')['to'](_0x4bed66,'isDirty',_0x4bed66,'length',(_0x414989,_0x4a10aa)=>_0x414989||!_0x4a10aa),_0x38a856['bind']('isActive')['to'](_0x4bed66),_0x38a856['type']='comment';const _0x3d8620=new d({'view':_0x38a856,'target':_0x1903f2,'type':'comment','isVisible':!_0x2da36e['isResolved']});return _0x4bed66['on']('escape',()=>{_0x3d8620['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4bed66,_0x3d8620),_0x3a458a['add'](_0x3d8620),_0x3d8620;}['_bindAnnotationToEditors'](_0x1dab32,_0x25508c){this['listenTo'](_0x1dab32,'editorReady',(_0x23e084,_0x3a9fbd)=>{const _0x2ee3f0=_0x3a9fbd['ui']['view']['body']['bodyCollectionContainer'];_0x25508c['focusableElements']['add'](_0x2ee3f0),this['context']instanceof _0x1fac51&&this['context']['ui']['focusTracker']['add'](_0x2ee3f0);},{'priority':'highest'}),this['listenTo'](_0x1dab32,'editorDestroyed',(_0x2d7038,_0x31024f)=>{const _0x46e73a=_0x31024f['ui']['view']['body']['bodyCollectionContainer'];_0x25508c['focusableElements']['has'](_0x46e73a)&&_0x25508c['focusableElements']['remove'](_0x46e73a),this['context']instanceof _0x1fac51&&this['context']['ui']['focusTracker']['remove'](_0x46e73a);});}['_unbindEditors'](_0x3cc90b){this['stopListening'](_0x3cc90b,'editorReady'),this['stopListening'](_0x3cc90b,'editorDestroyed');}['_createCommentThreadView'](_0x170e7c){const _0x262f54=this['context']['plugins']['get'](it),{config:_0x407a1d,locale:_0x393fa9}=this['context'],_0x255353=ut(_0x407a1d['get']('locale'));return new(0x0,(_0x407a1d['get']('comments'))['CommentThreadView'])(_0x393fa9,_0x170e7c,_0x262f54['me'],{'editorConfig':{..._0x407a1d['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x407a1d['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x407a1d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x407a1d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x407a1d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x255353,'CommentView':_0x407a1d['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x18282b,channelId:_0x40329d,resolvedAt:_0x4a963a,resolvedBy:_0x140b05,isFromAdapter:_0x247ffc}){if(!this['hasCommentThread'](_0x18282b))throw new _0x4f0fc3('commentsrepository-missing-comment-thread',null,{'threadId':_0x18282b});const _0x4bef08=this['getCommentThread'](_0x18282b);if(_0x4bef08['isResolved'])throw new _0x4f0fc3('commentsrepository-resolved-comment-thread',null,{'threadId':_0x18282b});const _0x24ac6b=this['context']['plugins']['get'](it);if(_0x4bef08['resolvedBy']=_0x24ac6b['getUser'](_0x140b05),_0x4bef08['resolvedAt']=_0x4a963a,_0x247ffc||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x308746=this['context']['plugins']['get']('PendingActions'),_0x32e3b0=_0x308746['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x40329d,'threadId':_0x18282b})['then'](({resolvedAt:_0x5ba86b,resolvedBy:_0x398a5f})=>{_0x308746['remove'](_0x32e3b0),_0x4bef08['resolvedBy']['id']!==_0x398a5f&&(_0x4bef08['resolvedBy']=_0x24ac6b['getUser'](_0x398a5f)),_0x4bef08['resolvedAt']=_0x5ba86b;})['catch'](_0x2afa40=>{throw console['error'](_0x2afa40),new _0x4f0fc3('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x173ad2,channelId:_0x536033,isFromAdapter:_0x8acbe8}){if(!this['hasCommentThread'](_0x173ad2))throw new _0x4f0fc3('commentsrepository-missing-comment-thread',null,{'threadId':_0x173ad2});const _0x132b1f=this['getCommentThread'](_0x173ad2);if(!_0x132b1f['isResolved'])throw new _0x4f0fc3('commentsrepository-reopen-comment-thread',null,{'threadId':_0x173ad2});if(_0x132b1f['resolvedBy']=null,_0x132b1f['resolvedAt']=null,_0x8acbe8||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x108da2=this['context']['plugins']['get']('PendingActions'),_0x10c434=_0x108da2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x536033,'threadId':_0x173ad2})['then'](()=>_0x108da2['remove'](_0x10c434))['catch'](_0x2e08a2=>{throw console['error'](_0x2e08a2),new _0x4f0fc3('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x397f79,isFromAdapter:_0x8b340b}){const _0x28bc3b=this['getCommentThread'](_0x397f79);if(!_0x28bc3b)throw new _0x4f0fc3('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x397f79),this['_threads']['delete'](_0x397f79),!_0x28bc3b['isSubmitted']||_0x8b340b||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x72dd20=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1dc4b5}=_0x28bc3b,_0x46f4e8=_0x72dd20['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1dc4b5,'threadId':_0x397f79})['then'](()=>_0x72dd20['remove'](_0x46f4e8))['catch'](_0x1053ee=>{throw console['error'](_0x1053ee),new _0x4f0fc3('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1d3768,unlinkedAt:_0x436dc1,context:_0x2321ed,attributes:_0x4469a5,isFromAdapter:_0x451092}){if('string'!=typeof _0x1d3768)throw new _0x4f0fc3('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1d3768});if(!this['hasCommentThread'](_0x1d3768))throw new _0x4f0fc3('commentsrepository-missing-comment-thread',null,{'threadId':_0x1d3768});const _0x492def=this['getCommentThread'](_0x1d3768);let _0x493f23=!0x1;if(void 0x0!==_0x2321ed&&_0x492def['context']!==_0x2321ed&&(_0x492def['context']=_0x2321ed,_0x493f23=!0x0),void 0x0!==_0x436dc1&&_0x492def['unlinkedAt']!==_0x436dc1&&(_0x492def['unlinkedAt']=_0x436dc1,_0x493f23=!0x0),_0x4469a5&&!It(_0x4469a5,_0x492def['attributes'])&&(_0x492def['attributes']=_0x4469a5,_0x493f23=!0x0),!_0x493f23)return Promise['resolve']();if(!_0x492def['isSubmitted']||_0x451092||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x913c2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x444491}=_0x492def,_0x46c238=_0x913c2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x444491,'threadId':_0x1d3768,'context':_0x2321ed,'unlinkedAt':_0x436dc1,'attributes':_0x4469a5})['then'](()=>_0x913c2['remove'](_0x46c238))['catch'](_0x2a965a=>{throw console['error'](_0x2a965a),new _0x4f0fc3('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x3013e0){const _0x4fc090=this['context']['plugins']['get'](N),_0x4d4c7f=this['getCommentThread'](_0x3013e0);if(this['_threadToController']['has'](_0x4d4c7f)){const _0x160277=this['_threadToController']['get'](_0x4d4c7f),_0x3e89cc=_0x160277['view'],_0x19fdc5=_0x4fc090['getByInnerView'](_0x3e89cc);this['_threadToController']['delete'](_0x4d4c7f),this['_viewToController']['delete'](_0x3e89cc),_0x19fdc5&&_0x4fc090['remove'](_0x19fdc5),_0x160277['destroy'](),_0x3e89cc['destroy']()['then'](()=>{this['_unbindEditors'](_0x3e89cc);});}}['_updateActiveAnnotation']({threadId:_0x7f2328,resolvedAt:_0x325eaa}){const _0x7ba68c=!!_0x325eaa,_0x2ef99e=this['context']['plugins']['get'](N),_0x19a3a5=this['getCommentThread'](_0x7f2328);if(this['_threadToController']['has'](_0x19a3a5)){const _0x43fad9=this['_threadToController']['get'](_0x19a3a5)['view'],_0xf8e1d5=_0x2ef99e['getByInnerView'](_0x43fad9);_0xf8e1d5&&(_0x7ba68c&&_0x2ef99e['_removeActiveAnnotation'](_0xf8e1d5),_0xf8e1d5['refreshVisibility']());}}['_getExternalAuthor'](_0x4059de){const _0x19033b=this['context']['plugins']['get'](it),_0x51cd0a=ft('external:'+_0x4059de),_0x3f7bb6=_0x19033b['getUser'](_0x51cd0a);return _0x3f7bb6||_0x19033b['addUser']({'id':_0x51cd0a,'name':_0x4059de});}['_createNewComment']({threadId:_0x2888a9,commentId:_0x35fc2f=_0xa10dd(),content:_0xf74f26,authorId:_0x456802,createdAt:_0x50301b,attributes:_0x107bc7}){if('string'!=typeof _0x35fc2f)throw new _0x4f0fc3('commentsrepository-invalid-commentid');if('string'!=typeof _0x456802)throw new _0x4f0fc3('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0xf74f26||!_0xf74f26['trim']())throw new _0x4f0fc3('commentsrepository-invalid-comment-content');const _0x4e8c50=this['context']['plugins']['get'](it)['getUser'](_0x456802);if(!_0x4e8c50)throw new _0x4f0fc3('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x456802});let _0x10a75a=null,_0x2531b4=_0x50301b;return _0x107bc7&&_0x107bc7['@external']&&(_0x10a75a=this['_getExternalAuthor'](_0x107bc7['@external']['authorName']),_0x2531b4=new Date(_0x107bc7['@external']['createdAt'])),new se(this,{'threadId':_0x2888a9,'id':_0x35fc2f,'author':_0x10a75a||_0x4e8c50,'creator':_0x4e8c50,'content':_0xf74f26,'createdAt':_0x50301b,'authoredAt':_0x2531b4,'attributes':_0x107bc7});}['_addComment'](_0x5befee){let {threadId:_0x3addd4,content:_0x1b8af6,attributes:_0x29c49e,isFromAdapter:_0x516664}=_0x5befee;const _0x4bc29e=this['getCommentThread'](_0x5befee['threadId']);if(!_0x4bc29e)throw new _0x4f0fc3('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x6fa3c9=this['_createNewComment'](_0x5befee),{id:_0x1dae5d}=_0x6fa3c9;if(_0x4bc29e['_add'](_0x6fa3c9),_0x516664||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x4bc29e['isSubmitted'])return Promise['resolve']();const _0x442b19=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4f0bed}=_0x4bc29e,_0x28b9cd=_0x442b19['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x29c49e||(_0x29c49e={}),this['adapter']['addComment']({'channelId':_0x4f0bed,'threadId':_0x3addd4,'commentId':_0x1dae5d,'content':_0x1b8af6,'attributes':_0x29c49e})['then'](_0x4bdcfa=>{_0x442b19['remove'](_0x28b9cd),_0x4bdcfa&&this['_updateComment']({'channelId':_0x4f0bed,'threadId':_0x3addd4,'commentId':_0x1dae5d,'createdAt':_0x4bdcfa['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x56626f=>{throw console['error'](_0x56626f),new _0x4f0fc3('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x24c7b3,commentId:_0x47582f,content:_0x86762,createdAt:_0xabd188,attributes:_0x418a1d,isFromAdapter:_0x2c7e6a}){if(void 0x0!==_0x86762&&('string'!=typeof _0x86762||!_0x86762['trim']()['length']))throw new _0x4f0fc3('commentsrepository-update-comment-invalid-content');const _0x279ada=this['getCommentThread'](_0x24c7b3),_0xed3009=_0x279ada['getComment'](_0x47582f);if(!_0xed3009)throw new _0x4f0fc3('commentsrepository-update-missing-comment',this);let _0x1126f9=!0x1;if(_0x86762&&_0x86762!==_0xed3009['content']&&(_0xed3009['isEditable']||_0x2c7e6a)&&(_0xed3009['content']=_0x86762,_0x1126f9=!0x0),_0xabd188&&_0xabd188!==_0xed3009['createdAt']&&(_0xed3009['createdAt']=_0xabd188,_0xed3009['attributes']&&_0xed3009['attributes']['@external']||(_0xed3009['authoredAt']=_0xabd188),_0x1126f9=!0x0),_0x418a1d&&!It(_0x418a1d,_0xed3009['attributes'])&&(_0xed3009['attributes']=_0x418a1d,_0x1126f9=!0x0),!_0x1126f9)return Promise['resolve']();if(_0x279ada['fire']('commentUpdated'),_0x2c7e6a||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x49b12a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x47f288}=this['getCommentThread'](_0xed3009['threadId']),_0x25e83e=_0x49b12a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x47f288,'threadId':_0x24c7b3,'commentId':_0x47582f,'content':_0x86762,'attributes':_0x418a1d})['then'](()=>_0x49b12a['remove'](_0x25e83e))['catch'](_0x1cadd0=>{throw console['error'](_0x1cadd0),new _0x4f0fc3('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x4c6d57,commentId:_0x5b52a3,isFromAdapter:_0x18162a}){const _0x430615=this['getCommentThread'](_0x4c6d57),_0x574589=_0x430615['getComment'](_0x5b52a3);if(!_0x574589)throw new _0x4f0fc3('commentsrepository-remove-missing-comment',this);if(_0x430615['_remove'](_0x574589),_0x18162a||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2bc61f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x35f71c}=_0x430615,_0x1386ac=_0x2bc61f['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x35f71c,'threadId':_0x4c6d57,'commentId':_0x5b52a3})['then'](()=>_0x2bc61f['remove'](_0x1386ac))['catch'](_0x126f66=>{throw console['error'](_0x126f66),new _0x4f0fc3('commentsrepository-remove-comment-internal-error',this);});}}class ie extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x226f8d(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x16022c,_0x5b6108){super();const _0x3f77d4=_0x16022c['context']['plugins']['get'](it)['me'],_0x368a64=_0x16022c['getCommentThread'](_0x5b6108['threadId']),_0x5c801d=0x0===_0x368a64['comments']['length'],_0x1714a9=_0x3f77d4===_0x5b6108['author'];this['id']=_0x5b6108['id'],this['threadId']=_0x5b6108['threadId'],this['author']=_0x5b6108['author'],this['creator']=_0x5b6108['creator'],this['isExternal']=Boolean(_0x5b6108['attributes']&&_0x5b6108['attributes']['@external']),this['set']('content',_0x5b6108['content']),this['createdAt']=_0x5b6108['createdAt']||new Date(),this['set']('authoredAt',_0x5b6108['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x368a64,'resolvedAt'),this['set']('attributes',_0x5b6108['attributes']||{}),this['bind']('isEditable')['to'](_0x16022c,'_permissions',()=>{const _0x33189f=_0x16022c['getPermissions'](_0x368a64['channelId'])['write'],_0x27fc7e=_0x16022c['getPermissions'](_0x368a64['channelId'])['modifyAll'];return _0x1714a9&&_0x33189f||!_0x1714a9&&_0x27fc7e;}),this['bind']('isRemovable')['to'](_0x368a64,'isRemovable',_0x16022c,'_permissions',_0x9f6d1=>{const _0x3419e9=_0x16022c['getPermissions'](_0x368a64['channelId'])['write'],_0x51e8df=_0x16022c['getPermissions'](_0x368a64['channelId'])['modifyAll'];return _0x1714a9&&_0x3419e9||_0x9f6d1&&_0x5c801d||!_0x1714a9&&_0x51e8df&&!_0x5c801d;}),this['bind']('isReadOnly')['to'](_0x368a64,'isReadOnly'),this['_repository']=_0x16022c;}get['weight'](){return Math['max'](function(_0x39858c){const _0x1d6ba6=document['createElement']('div');return _0x1d6ba6['innerHTML']=_0x39858c,_0x1d6ba6['textContent']['length'];}(this['content']),0xc8);}['update'](_0x39cf7e){const {threadId:_0xf2d717,id:_0x134476}=this;if(!this['_repository']['hasCommentThread'](_0xf2d717))throw new _0x4f0fc3('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x49e528}=this['_repository']['getCommentThread'](_0xf2d717);this['_repository']['fire'](bt('updateComment',_0x49e528,_0xf2d717),{'channelId':_0x49e528,'threadId':_0xf2d717,'commentId':_0x134476,..._0x39cf7e});}['setAttribute'](_0x34dbcd,_0x596748){const _0x35e48b=pt(this['attributes']);wt(_0x35e48b,_0x34dbcd,_0x596748),this['update']({'attributes':_0x35e48b});}['removeAttribute'](_0x298b3d){const _0x4a12b5=pt(this['attributes']);yt(_0x4a12b5,_0x298b3d),this['update']({'attributes':_0x4a12b5});}['remove'](_0x1fea42={}){if(!_0x1fea42['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x50cc0b,id:_0x59e3f9}=this;if(!this['_repository']['hasCommentThread'](_0x50cc0b))throw new _0x4f0fc3('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1aa0ef}=this['_repository']['getCommentThread'](_0x50cc0b);this['_repository']['fire'](bt('removeComment',_0x1aa0ef,_0x50cc0b),{'channelId':_0x1aa0ef,'threadId':_0x50cc0b,'commentId':_0x59e3f9,..._0x1fea42});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x2734fc,..._0x2a3494){for(const _0x4c0058 of _0x2a3494)void 0x0!==_0x4c0058&&(_0x2734fc+=':'+String(_0x4c0058));return _0x2734fc;}class J extends _0x26acaa{['refresh'](){const _0x5bbff6=this['editor']['model']['document']['selection'];for(const _0x482cec of _0x5bbff6['getRanges']())if(this['_hasContent'](_0x482cec))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x541db7=_0xa10dd()}={}){const _0x4676ce=this['editor']['model'],_0x4e9ab9=[];for(const _0x4a4ac2 of _0x4676ce['document']['selection']['getRanges']())this['_hasContent'](_0x4a4ac2)&&_0x4e9ab9['push'](this['_trimToContent'](_0x4a4ac2));_0x4676ce['change'](_0x4a3fb3=>{for(const _0x1f614c of _0x4e9ab9){const _0x1a728a=_0xa10dd()['substr'](0x1,0x5),_0x5df521='comment:'+_0x541db7+':'+_0x1a728a;_0x4a3fb3['addMarker'](_0x5df521,{'range':_0x1f614c,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x1fbe27){for(const _0x4d6294 of _0x1fbe27['getItems']())if(this['_itemIsContent'](_0x4d6294))return!0x0;return!0x1;}['_itemIsContent'](_0xe0c5e7){return _0xe0c5e7['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xe0c5e7)&&!_0xe0c5e7['is']('element','tableCell');}['_trimToContent'](_0xde2105){const _0x2dc466=_0xa31a41=>!this['_itemIsContent'](_0xa31a41['item']),_0x265b99=_0xde2105['start']['getLastMatchingPosition'](_0x2dc466),_0x4ee79f=_0xde2105['end']['getLastMatchingPosition'](_0x2dc466,{'direction':'backward'});return this['editor']['model']['createRange'](_0x265b99,_0x4ee79f);}}class P extends _0x5d682a{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a2053){super(_0x3a2053),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4852d5=this['editor'],_0x53e742=_0x4852d5['model']['document']['selection'],_0x580829=_0x1eb64a(()=>this['refreshSelectedViews'](),0xa);_0x53e742['on']('change:range',(_0x2f87c0,_0x4226e4)=>{_0x4226e4['directChange']&&(_0x580829['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x4852d5['editing']['view']['document'],'change:isFocused',(_0x119b60,_0x815ef7,_0x1b366d)=>{_0x1b366d&&_0x580829();}),this['listenTo'](_0x4852d5['ui']['focusTracker'],'change:isFocused',(_0x382e88,_0x34b38f,_0x2c33c3)=>{_0x2c33c3||_0x4852d5['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x1f0e55=>this['_editorAnnotationsData']['has'](_0x1f0e55['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x5992e5){if(this['_editorAnnotations']['has'](_0x5992e5['view']))return;this['_editorAnnotations']['add'](_0x5992e5['view']),this['editor']['ui']['focusTracker']['add'](_0x5992e5['view']['element']);const _0x85f878=this['editor']['plugins']['get'](N);this['listenTo'](_0x85f878['collection'],'remove',(_0x29c4de,_0xb3759b)=>{this['editor']['ui']['focusTracker']['remove'](_0xb3759b['view']['element']),this['_editorAnnotations']['delete'](_0xb3759b['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x41ec09){if('function'!=typeof _0x41ec09)throw new _0x4f0fc3('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x41ec09);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3c28fa,annotations:_0x43d7c2}){const _0x586a8e=[],_0x1b1246=this['editor']['model']['document']['selection'],_0x553749=Array['from'](_0x1b1246['getRanges']());for(const [_0x5dac1d,_0x3272f9]of this['_editorAnnotationsData']){const _0x38dc31=_0x20062e(_0x3272f9),_0xd5583c=_0x43d7c2['getByInnerView'](_0x5dac1d);_0x38dc31&&_0xd5583c&&_0x586a8e['push']({'annotation':_0xd5583c,'range':_0x38dc31});}function _0x20062e(_0x3d8498){for(const _0x5c5d9f of _0x3d8498)for(const _0x38b5ec of _0x553749)if(_0x5c5d9f['containsRange'](_0x38b5ec,!_0x1b1246['isCollapsed']))return _0x5c5d9f;return null;}return _0x586a8e['sort']((_0x2e98b2,_0x3628ae)=>{const _0x3ebd5f=_0x2e98b2['range'],_0x206880=_0x3628ae['range'];if(!_0x3ebd5f['isEqual'](_0x206880)){if(_0x3ebd5f['containsRange'](_0x206880,!0x0))return 0x1;if(_0x206880['containsRange'](_0x3ebd5f,!0x0))return-0x1;}return _0x2e98b2['annotation']==_0x3c28fa?-0x1:_0x3628ae['annotation']==_0x3c28fa?0x1:0x0;})['map'](_0x5f2170=>_0x5f2170['annotation']);}get['_editorAnnotationsData'](){const _0x3fb3ea=new Map();for(const _0x1fb43d of Array['from'](this['_dataCollectors']))for(const [_0x59cf15,_0x4a6898]of _0x1fb43d())_0x3fb3ea['set'](_0x59cf15,_0x4a6898);return _0x3fb3ea;}}class st extends _0x5d682a{['afterInit'](){const _0x5ea372=this['editor'];if(!_0x5ea372['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5ea372['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class at extends _0x5d682a{constructor(_0x5764f8){super(_0x5764f8),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x564709=this['editor'],_0x1e9369=_0x564709['commands']['get']('importWord'),_0x20ee73=_0x564709['plugins']['get'](it);_0x1e9369&&(_0x1e9369['on']('execute',(_0x119558,[,_0x26fb3c])=>{_0x26fb3c['collaboration_features']={'comments':!0x0,'user_id':_0x20ee73['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1e9369,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x34436a,_0x21033a){const {comment_threads:_0x41e4c4}=_0x21033a;_0x41e4c4&&_0x41e4c4['forEach'](({thread_id:_0x33eda2,comments:_0x56f525,is_resolved:_0x388beb})=>{const _0x51c11c=new Date(),_0x447a4b=_0x56f525['map'](({author:_0xb0020a,content:_0x1b8471,created_at:_0x4bdc8d})=>({'content':_0x1b8471,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x51c11c,'attributes':{'@external':{'authorName':_0xb0020a,'createdAt':_0x4bdc8d?new Date(_0x4bdc8d):new Date(),'source':'importWord'}}})),_0x159ffc=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x159ffc,'threadId':_0x33eda2,'comments':_0x447a4b,'resolvedAt':_0x388beb?_0x51c11c:null});});}}class ct extends _0x5d682a{constructor(_0x56e7f8){super(_0x56e7f8),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Rt,Mt];}['afterInit'](){const _0x2fe177=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2fe177,'contentInsertion',(_0x29693c,_0x3bcf2a)=>this['_removeMarkersWithoutThreads'](_0x3bcf2a['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x471a6f){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x471a6f;const _0x4e4003=this['editor']['plugins']['get']('CommentsRepository');for(const _0x59f08a of _0x471a6f['keys']()){const [_0x19d484,_0xb69704]=_0x59f08a['split'](':');'comment'!=_0x19d484||_0x4e4003['hasCommentThread'](_0xb69704)||_0x471a6f['delete'](_0x59f08a);}return _0x471a6f;}['_registerMarkerInClipboardPipeline'](){const _0x1ed59f=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2af021=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2af021&&_0x1ed59f['_registerMarkerToCopy']('comment',_0x2af021);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x3d8260){switch(_0x3d8260){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x5d682a{static get['requires'](){return[o,P,it,st,at,ct];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1490b1){super(_0x1490b1),this['set']('isThreadsLoadingPaused',!0x0),_0x1490b1['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x5af0f5,_0x58aa52,_0x52612f,_0x4691dc)=>{const _0x5e0646=_0x52612f?ne(_0x52612f)['id']:null;if(_0x1490b1['model']['change'](()=>{if(_0x5e0646){const _0x1722a1=this['getAllMarkersForId'](_0x5e0646);for(const _0xa6f277 of _0x1722a1)_0x1490b1['editing']['reconvertMarker'](_0xa6f277);}if(_0x4691dc){const {id:_0x4a9faa}=ne(_0x4691dc),_0x49dc16=this['getAllMarkersForId'](_0x4a9faa);for(const _0x5a8534 of _0x49dc16)_0x1490b1['editing']['reconvertMarker'](_0x5a8534);}}),_0x5e0646){const _0x3cbb86=_0x1490b1['plugins']['get'](o)['getCommentThread'](_0x5e0646);_0x3cbb86&&_0x3cbb86['isResolved']&&this['scrollToThreadMarker'](_0x5e0646);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x260560=this['editor'],_0x6ac8ed=_0x260560['plugins']['get'](o),_0x32380f=_0x260560['config']['get']('collaboration.channelId');_0x260560['commands']['add']('addCommentThread',new J(_0x260560)),this['listenTo'](_0x260560,'change:isReadOnly',(_0x20ef46,_0x11c413,_0x10e026)=>{_0x6ac8ed['switchReadOnly'](_0x10e026,_0x260560['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x6ac8ed,mt('addCommentThread',_0x32380f),(_0x23ba55,{threadId:_0x14dbaf})=>{const _0x2dcaf8=this['editor']['plugins']['get'](o)['getCommentThread'](_0x14dbaf);_0x2dcaf8&&_0x2dcaf8['unlinkedAt']&&this['_attachArchivedThread'](_0x14dbaf);}),this['listenTo'](_0x6ac8ed,mt('removeCommentThread',_0x32380f),(_0x261842,{threadId:_0x9844bd})=>{_0x260560['model']['enqueueChange']({'isUndoable':!0x1},_0x161760=>{const _0x3f141c=this['getAllMarkersForId'](_0x9844bd);for(const _0x1a05e8 of _0x3f141c)_0x161760['removeMarker'](_0x1a05e8);});}),this['listenTo'](_0x6ac8ed,mt('resolveCommentThread',_0x32380f),(_0x18f2eb,{threadId:_0x46fee8})=>{(this['_reconvertMarkers'](_0x46fee8),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x46fee8)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x6ac8ed,mt('reopenCommentThread',_0x32380f),(_0x45e70b,{threadId:_0x5dc58d})=>{this['_reconvertMarkers'](_0x5dc58d);},{'priority':'low'}),this['listenTo'](_0x6ac8ed,mt('addComment',_0x32380f),(_0x15ceb5,{threadId:_0x257f41,isFromAdapter:_0x560e9f})=>{const _0xbcb079=this['getAllMarkersForId'](_0x257f41);if(_0x560e9f||0x0==_0xbcb079['length']||!_0x6ac8ed['hasCommentThread'](_0x257f41))return;0x1===_0x6ac8ed['getCommentThread'](_0x257f41)['length']&&_0x260560['model']['enqueueChange']({'isUndoable':!0x1},_0x309eda=>{for(const _0x5f4878 of _0xbcb079)_0x309eda['updateMarker'](_0x5f4878,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0x1a6c24=this['editor']['plugins']['get'](o),_0x37855d=this['editor']['config']['get']('collaboration.channelId');for(const _0x4ec9db of _0x1a6c24['getCommentThreads']({'channelId':_0x37855d}))_0x1a6c24['_detachCommentThread'](_0x4ec9db['id']),_0x1a6c24['_threads']['delete'](_0x4ec9db['id']);super['destroy']();}['hasMarkerForId'](_0x39301d){return this['getAllMarkersForId'](_0x39301d)['length']>0x0;}['getAllMarkersForId'](_0x261f02){const _0x4a9035=[];for(const _0x4900c8 of this['editor']['model']['markers'])_0x4900c8['name']['startsWith']('comment:'+_0x261f02)&&_0x4a9035['push'](_0x4900c8);return _0x4a9035;}['scrollToThreadMarker'](_0x53e679){const _0x3edd4e=this['_getTargetForId'](_0x53e679);_0x3edd4e&&setTimeout(()=>{this['activeMarker']&&ne(this['activeMarker'])['id']===_0x53e679&&rt({'target':_0x3edd4e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x8a3a07){this['editor']['model']['change'](()=>{for(const _0x28ce92 of this['getAllMarkersForId'](_0x8a3a07))this['editor']['editing']['reconvertMarker'](_0x28ce92);});}['_attachArchivedThread'](_0x3b1131){const _0x4b9bc6=this['editor']['plugins']['get'](o),_0x317f80=this['editor']['plugins']['get'](P),_0x10c17e=_0x4b9bc6['getCommentThread'](_0x3b1131);if(!_0x10c17e['isAttached']){const _0x3a434d=_0x10c17e['attachTo'](()=>this['_getTargetForId'](_0x10c17e['id']));_0x317f80['registerAnnotation'](_0x3a434d),_0x10c17e['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x26b4ac=this['editor'],_0x27ac79=_0x26b4ac['plugins']['get'](it);_0x26b4ac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xcd2f14,_0x570cc5)=>{const {id:_0x2a5252}=ne(_0xcd2f14['markerName']),_0x408169=_0x26b4ac['plugins']['get'](o)['getCommentThread'](_0x2a5252),_0xbc9853=this['activeMarker']&&ne(this['activeMarker'])['id']===_0x2a5252;let _0x4d1b3e;if(_0x408169&&_0x408169['isResolved']&&!_0xbc9853&&_0xcd2f14['item'])return _0x570cc5['consumable']['consume'](_0xcd2f14['item'],'addMarker:'+_0xcd2f14['markerName']),_0x570cc5['consumable']['consume'](_0xcd2f14['item'],'removeMarker:'+_0xcd2f14['markerName']),null;const _0x47c180=['ck-comment-marker'];return _0xbc9853&&_0x47c180['push']('ck-comment-marker--active'),_0x4d1b3e=_0x408169&&_0x408169['length']?_0x408169['comments']['first']['author']['id']:_0x27ac79['me']['id'],{'classes':_0x47c180,'attributes':{'data-comment':_0x2a5252,'data-author-id':_0x4d1b3e}};}}),_0x26b4ac['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x45fd8c,{options:_0x26b265})=>{const _0x4ad9d8=_0x26b4ac['plugins']['get'](o),_0x161b75=_0x26b4ac['model']['markers']['get'](_0x45fd8c),{id:_0x41789c,part:_0x21910e}=ne(_0x45fd8c);if(_0x161b75&&!_0x161b75['affectsData'])return null;if(_0x26b265['ignoreResolvedComments']){const _0x296878=_0x4ad9d8['getCommentThread'](_0x41789c);if(_0x296878&&_0x296878['isResolved'])return null;}return{'group':'comment','name':_0x21910e?_0x41789c+':'+_0x21910e:_0x41789c};}}),_0x26b4ac['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x171bee,{writer:_0x20ee5a})=>_0x20ee5a['createElement']('$marker',{'data-name':'comment:'+_0x171bee['getAttribute']('id')})}),_0x26b4ac['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x186e77=this['editor'],_0x32720f=_0x186e77['plugins']['get'](o),_0x12d578=new Set(),_0x3413e2=new Set();_0x186e77['model']['document']['registerPostFixer'](_0x59d8c6=>{let _0x48413e=!0x1;for(const {name:_0x4f8ae9,data:_0x1b8b69}of _0x186e77['model']['document']['differ']['getChangedMarkers']()){const {group:_0x75be2c,id:_0x2ec82a}=ne(_0x4f8ae9);let _0x119766=_0x1b8b69['newRange'];if('comment'!==_0x75be2c||!_0x119766)continue;const _0x1d1473='$graveyard'===_0x119766['root']['rootName'];_0x1d1473||(_0x119766=dt(_0x119766,_0x186e77['model']),!_0x119766||_0x119766['isCollapsed']||!_0x1b8b69['newRange']||_0x119766['isEqual'](_0x1b8b69['newRange']))?_0x186e77['model']['hasContent'](_0x119766)&&!_0x1d1473?this['isThreadsLoadingPaused']?_0x12d578['add'](_0x4f8ae9):this['_handleThreadMarker'](_0x4f8ae9,_0x2ec82a):(_0x3413e2['add'](_0x4f8ae9),_0x12d578['delete'](_0x4f8ae9),_0x59d8c6['removeMarker'](_0x4f8ae9),_0x48413e=!0x0):(_0x59d8c6['updateMarker'](_0x4f8ae9,{'range':_0x119766}),_0x48413e=!0x0);}return _0x48413e;}),this['on']('change:isThreadsLoadingPaused',(_0x3c05a9,_0x1f52d8,_0x36b25f)=>{if(!_0x36b25f&&_0x12d578['size'])for(const _0x16d9f2 of _0x12d578){const {id:_0x34bbde}=ne(_0x16d9f2);_0x12d578['delete'](_0x16d9f2),_0x186e77['model']['markers']['get'](_0x16d9f2)&&this['_handleThreadMarker'](_0x16d9f2,_0x34bbde);}}),this['listenTo'](_0x186e77['model']['document'],'change',(_0x2f241f,_0x3bd322)=>{for(const {name:_0x37af2a,data:{newRange:_0x133192}}of _0x186e77['model']['document']['differ']['getChangedMarkers']()){const {group:_0xd736b8,id:_0x39082e}=ne(_0x37af2a);if('comment'!==_0xd736b8)continue;const _0x5ed506=_0x32720f['getCommentThread'](_0x39082e),_0x4d09b9=this['hasMarkerForId'](_0x39082e);_0x5ed506&&(!_0x5ed506['_hasTargetInContent']&&_0x133192&&_0x186e77['editing']['view']['once']('render',()=>{const _0x6bb58f=_0x186e77['plugins']['get'](N),_0x1c5d98=_0x32720f['_threadToController']['get'](_0x5ed506)['view'];_0x6bb58f['getByInnerView'](_0x1c5d98)['refreshVisibility']();},{'priority':'low'}),_0x5ed506['_hasTargetInContent']=_0x4d09b9||!!_0x133192),_0x133192||(_0x3413e2['add'](_0x37af2a),_0x12d578['delete'](_0x37af2a));}if(_0x3bd322['isLocal'])for(const _0x4f8add of _0x3413e2){const {id:_0x183f90}=ne(_0x4f8add),_0x36db05=_0x32720f['getCommentThread'](_0x183f90),_0x4ad052=this['hasMarkerForId'](_0x183f90);_0x12d578['delete'](_0x4f8add),!_0x36db05||_0x4ad052||_0x36db05['unlinkedAt']||_0x36db05['setUnlinkedAt'](new Date());}_0x3413e2['clear']();});}['_getTargetForId'](_0x3bd8e6){const _0x75a2b3=this['editor'],_0x420b82=this['getAllMarkersForId'](_0x3bd8e6);return nt(_0x75a2b3['editing'],_0x420b82);}['_getTextContext'](_0x490d5c){const _0x1ca384=this['getAllMarkersForId'](_0x490d5c);let _0x26e0d2='',_0x1feb97=!0x1;for(const _0x525616 of _0x1ca384){const _0x4366cb=_0x525616['getRange']();for(const _0x867c0c of Array['from'](_0x4366cb['getItems']()))_0x867c0c['is']('$textProxy')?(_0x26e0d2&&_0x1feb97&&(_0x26e0d2+='\x20',_0x1feb97=!0x1),_0x26e0d2+=_0x867c0c['data']):_0x1feb97=!0x0;_0x1feb97=!0x0;}return _0x26e0d2['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x5e5b94,_0x30105b){const _0x11da19=this['editor'],_0x45ae7e=_0x11da19['plugins']['get'](o);let _0x57d591=_0x45ae7e['getCommentThread'](_0x30105b);const _0x482af5=_0x11da19['config']['get']('collaboration.channelId'),_0x29efd5=_0x11da19['plugins']['get'](P);if(_0x57d591&&(_0x57d591['unlinkedAt']&&_0x57d591['setUnlinkedAt'](null),_0x57d591['isAttached']))return _0x57d591;return!this['getAllMarkersForId'](_0x30105b)[0x0]['managedUsingOperations']?_0x11da19['editing']['view']['once']('render',()=>{if(_0x45ae7e['getCommentThread'](_0x30105b))return;const _0x15c2d6=_0x11da19['plugins']['get'](N);_0x57d591=_0x45ae7e['openNewCommentThread']({'channelId':_0x482af5,'threadId':_0x30105b,'target':()=>this['_getTargetForId'](_0x30105b),'context':{'type':'text','value':this['_getTextContext'](_0x30105b)}});const _0x38a665=_0x45ae7e['_threadToController']['get'](_0x57d591)['view'],_0x64095d=_0x15c2d6['getByInnerView'](_0x38a665);_0x64095d&&_0x29efd5['registerAnnotation'](_0x64095d);},{'priority':'low'}):_0x45ae7e['fetchCommentThread']({'channelId':_0x482af5,'threadId':_0x30105b})['then'](_0x19e413=>{if('destroyed'!==_0x11da19['state']){if(_0x57d591=_0x19e413,_0x57d591&&!_0x57d591['isAttached']){const _0x27b382=_0x57d591['attachTo'](()=>this['_getTargetForId'](_0x30105b));_0x29efd5['registerAnnotation'](_0x27b382),_0x57d591['isResolved']&&this['_reconvertMarkers'](_0x30105b);}else{if(!_0x57d591){const _0x467b04=this['getAllMarkersForId'](_0x30105b);_0x11da19['model']['change'](_0x4ce679=>{for(const _0xd190b5 of _0x467b04)_0x4ce679['removeMarker'](_0xd190b5);});}}}}),_0x57d591;}['_handleThreadMarker'](_0x495b48,_0x451a15){const _0x49a943=this['_attachMarkerToThread'](_0x495b48,_0x451a15);_0x49a943&&!_0x49a943['context']&&_0x49a943['setContext']({'type':'text','value':this['_getTextContext'](_0x451a15)});}['_initAriaMarkerChangeAnnouncements'](){const _0x296fbb=this['editor'];ot(_0x296fbb['model'],({left:_0x4800cf,entered:_0xa7db9d})=>{for(const _0x2bab81 of _0x4800cf)if(ht(_0x2bab81)){_0x296fbb['ui']['ariaLiveAnnouncer']['announce'](S(_0x296fbb['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x577960 of _0xa7db9d)if(ht(_0x577960)){_0x296fbb['ui']['ariaLiveAnnouncer']['announce'](S(_0x296fbb['locale'],'ENTER_COMMENT_ANNOUNCEMENT',et(te)));break;}});}}function mt(_0xc170d6,_0x70051f){return _0x70051f?_0xc170d6+':'+_0x70051f:_0xc170d6;}function ne(_0x14b495){const _0x311322=_0x14b495['split'](':');return{'group':_0x311322[0x0],'id':_0x311322[0x1],'part':_0x311322[0x2]};}function dt(_0x161fc5,_0x1144f1){const _0x52b1a6=_0x1144f1['schema'],_0x2390d6=_0x1144f1['createRange'](_0x161fc5['start']);for(const _0xaeb3b8 of _0x161fc5['getWalker']()){const {type:_0x37768c,item:_0x3c9514,nextPosition:_0xd50504}=_0xaeb3b8;if('text'===_0x37768c||_0x52b1a6['isObject'](_0x3c9514)){const _0xb1b7ee=_0x1144f1['createPositionBefore'](_0x3c9514);_0x2390d6['isCollapsed']&&(_0x2390d6['start']=_0xb1b7ee),_0x2390d6['end']=_0xd50504;}}return _0x2390d6;}function ht(_0x1bd6e5){return'comment'===ne(_0x1bd6e5['name'])['group'];}var kt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x5d682a{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 xt;}get['CommentThreadInputView'](){return Pt;}['init'](){const _0x4707db=this['editor'],_0x5d2b46=_0x4707db['plugins']['get'](o),_0x17af76=_0x4707db['plugins']['get'](r),_0x49d5d0=_0x4707db['plugins']['get'](N),_0x5b11a3=_0x4707db['plugins']['get'](P);_0x4707db['ui']['componentFactory']['add']('comment',()=>{const _0x39c0fb=this['_createUIButton'](_0x1c4b84);return _0x39c0fb['tooltip']=!0x0,_0x39c0fb;}),_0x4707db['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x5ce43a)),_0x5b11a3['addSourceCollector'](()=>{const _0x1a72d3=[];for(const [_0x41a4e0,_0x547859]of _0x5d2b46['_threadToController']){const _0x49282c=_0x17af76['getAllMarkersForId'](_0x41a4e0['id']),_0x4361a0=_0x49282c['map'](_0x5e376e=>_0x5e376e['getRange']());_0x49282c['length']>0x0&&_0x1a72d3['push']([_0x547859['view'],_0x4361a0]);}return _0x1a72d3;}),this['listenTo'](_0x49d5d0,'change:activeAnnotations',(_0x141a81,_0x41604a,_0x57d2f0)=>{const _0x16e96f=Array['from'](_0x57d2f0)['map'](_0x334833=>_0x334833['innerView'])['find'](_0x3c5702=>_0x5d2b46['_viewToController']['has'](_0x3c5702));if(!_0x16e96f)return void(_0x17af76['activeMarker']=null);const _0x443064=_0x5d2b46['_viewToController']['get'](_0x16e96f)['model']['id'],_0x5a051b='comment:'+_0x443064;_0x443064&&_0x17af76['hasMarkerForId'](_0x443064)?_0x17af76['activeMarker']=_0x5a051b:_0x17af76['activeMarker']&&(_0x17af76['activeMarker']=null);}),this['listenTo'](_0x5d2b46,'removeCommentThread',(_0x691e69,{threadId:_0x3de5dc,isFromAdapter:_0x49d530})=>{!_0x49d530&&_0x4707db['ui']['focusTracker']['isFocused']&&_0x17af76['hasMarkerForId'](_0x3de5dc)&&_0x4707db['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x5d2b46,'addComment',(_0xde9282,{threadId:_0x28aea0,isFromAdapter:_0x4da5a2})=>{if(_0x4da5a2||!_0x17af76['hasMarkerForId'](_0x28aea0)||!_0x5d2b46['hasCommentThread'](_0x28aea0))return;0x1===_0x5d2b46['getCommentThread'](_0x28aea0)['length']&&(_0x4707db['editing']['view']['focus'](),_0xde9282['stop']());},{'priority':'low'});}['_createUIButton'](_0x4fa52c){const _0x1a6110=this['editor'],_0x73990f=new _0x4fa52c(_0x1a6110['locale']),_0xe36251=_0x1a6110['commands']['get']('addCommentThread');return _0x73990f['set']({'label':S(_0x1a6110['locale'],'Comment'),'icon':kt}),_0x73990f['bind']('isEnabled')['to'](_0xe36251),this['listenTo'](_0x73990f,'execute',()=>_0xe36251['execute']()),_0x73990f;}}class s extends _0x5d682a{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x3653c0){super(_0x3653c0),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x3fc805,_0x21f771,_0x38c6f7)=>{_0x38c6f7?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x4ded60,_0x331471]of this['editor']['commands'])_0x331471['affectsData']&&'addCommentThread'!==_0x4ded60&&_0x331471['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0xa7b105=this['editor']['editing']['view']['document'];this['listenTo'](_0xa7b105,'cut',_0x2dfe4a=>_0x2dfe4a['stop'](),{'priority':'highest'}),this['listenTo'](_0xa7b105,'clipboardInput',_0xf165fe=>_0xf165fe['stop'](),{'priority':'highest'}),this['listenTo'](_0xa7b105,'delete',_0x4870e8=>_0x4870e8['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1345de,_0x115ed3]of this['editor']['commands'])_0x115ed3['affectsData']&&'addCommentThread'!==_0x1345de&&_0x115ed3['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x5c60c1{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4805ff){super(_0x4805ff),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x31267e=this['context']['plugins']['get'](N);this['listenTo'](_0x31267e,'_activateAnnotation',(_0x1db9cd,_0x28c579)=>{for(const _0x37d5b7 of this['activeUIs']){const _0x3548ed=this['_uis']['get'](_0x37d5b7);(0x0,this['_uisData']['get'](_0x37d5b7)['filter'])(_0x28c579)&&_0x3548ed['setActiveAnnotation'](_0x28c579);}}),this['listenTo'](_0x31267e,'_deactivateAllAnnotations',()=>{for(const _0x54c983 of this['activeUIs']){this['_uis']['get'](_0x54c983)['setActiveAnnotation'](null);}}),this['listenTo'](_0x31267e['_visibleAnnotations'],'add',(_0x22c49f,_0x483eed)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x483eed);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x325682){return this['activeUIs']['has'](_0x325682);}['activate'](_0x266a4d,_0x49587d=()=>!0x0){const _0x37c95a=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x266a4d))throw new _0x4f0fc3('annotationsuis-missing-ui',this,{'uiName':_0x266a4d});this['isActive'](_0x266a4d)&&this['deactivate'](_0x266a4d),this['activeUIs']['add'](_0x266a4d);const _0x1eb4b8=new x();!function({source:_0x5d3c07,target:_0x28bfbc,filter:_0xd5d625}){for(const _0x5f2fb5 of _0x5d3c07)_0xd5d625(_0x5f2fb5)&&_0x28bfbc['add'](_0x5f2fb5);_0x28bfbc['listenTo'](_0x5d3c07,'add',(_0x1bfe61,_0x2e6cb9)=>{_0xd5d625(_0x2e6cb9)&&_0x28bfbc['add'](_0x2e6cb9);}),_0x28bfbc['listenTo'](_0x5d3c07,'remove',(_0x46d8eb,_0xcd3eeb)=>{_0x28bfbc['has'](_0xcd3eeb)&&_0x28bfbc['remove'](_0xcd3eeb);});}({'source':_0x37c95a['_visibleAnnotations'],'target':_0x1eb4b8,'filter':_0x49587d}),this['_uisData']['set'](_0x266a4d,{'collection':_0x1eb4b8,'filter':_0x49587d});const _0x456764=this['_uis']['get'](_0x266a4d);_0x456764['attach'](_0x1eb4b8),this['listenTo'](_0x456764,'change:activeAnnotation',(_0x1572e1,_0x339b9e,_0x225598,_0x4599b5)=>{_0x4599b5&&_0x37c95a['_removeActiveAnnotation'](_0x4599b5),_0x225598&&_0x37c95a['_addActiveAnnotation'](_0x225598);});}['deactivate'](_0x5b9a51){if(this['activeUIs']['delete'](_0x5b9a51),!this['_uis']['has'](_0x5b9a51))throw new _0x4f0fc3('annotationsuis-missing-ui',this,{'uiName':_0x5b9a51});const _0x377514=this['_uis']['get'](_0x5b9a51);_0x377514['detach'](),this['stopListening'](_0x377514),this['_uisData']['get'](_0x5b9a51)['collection']['destroy'](),this['_uisData']['delete'](_0x5b9a51);}['switchTo'](_0x390fd0){if(!this['_uis']['has'](_0x390fd0))throw new _0x4f0fc3('annotationsuis-missing-ui',this,{'uiName':_0x390fd0});const _0xaf5e6b=this['context']['plugins']['get'](N),_0x254aac=Array['from'](_0xaf5e6b['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x390fd0);const _0x1b4f7b=this['_uis']['get'](_0x390fd0);_0x1b4f7b['setActiveAnnotation'](_0x254aac),_0x1b4f7b['_setSelectedAnnotations']&&_0x254aac&&_0x1b4f7b['_setSelectedAnnotations']([_0x254aac]);}['deactivateAll'](){for(const _0x325109 of this['activeUIs'])this['deactivate'](_0x325109);}['register'](_0x56f714,_0x32a6f7){if(this['_uis']['has'](_0x56f714))throw new _0x4f0fc3('annotationsuis-register-already-registered');if('function'!=typeof _0x32a6f7['attach']||'function'!=typeof _0x32a6f7['detach']||'function'!=typeof _0x32a6f7['setActiveAnnotation'])throw new _0x4f0fc3('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x56f714,_0x32a6f7);}['refilterAnnotations'](){const _0x61b031=this['context']['plugins']['get'](N)['collection'],_0x2d4386=new Map(),_0x3843f5=Array['from'](this['activeUIs']);for(const _0x1de41d of this['activeUIs']){const _0x48ce94=this['_uisData']['get'](_0x1de41d)['collection'];for(const _0x17df64 of _0x48ce94)_0x2d4386['set'](_0x17df64,_0x1de41d);}for(const _0x411a69 of _0x61b031){const _0x57333d=_0x2d4386['get'](_0x411a69);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x411a69);const _0x5eedb8=_0x3843f5['find'](_0x14b756=>this['_uisData']['get'](_0x14b756)['filter'](_0x411a69));_0x57333d!==_0x5eedb8&&(_0x57333d&&this['_uisData']['get'](_0x57333d)['collection']['remove'](_0x411a69),_0x5eedb8&&this['_uisData']['get'](_0x5eedb8)['collection']['add'](_0x411a69));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5054c5){const _0x29a6ed=[];for(const _0x39815d of this['activeUIs']){(0x0,this['_uisData']['get'](_0x39815d)['filter'])(_0x5054c5)&&_0x29a6ed['push'](_0x39815d);}if(_0x29a6ed['length']>0x1)throw new _0x4f0fc3('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x29a6ed,'annotationType':_0x5054c5['type']});}}const oe=Ht('px');class V extends _t{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x516edb){super(_0x516edb);const _0x7cd4ec=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 _0x465762(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x7cd4ec['to']('class')],'style':{'minHeight':_0x7cd4ec['to']('minHeight',_0x779f9e=>'number'==typeof _0x779f9e?oe(_0x779f9e+0xa):null)},'dir':_0x516edb['uiLanguageDirection'],'role':'application','aria-label':S(_0x516edb,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x516edb,'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',_0x507ace=>{this['_updateItemPositionInFocusables'](_0x507ace['source']);}),this['list']['forEach'](_0x54cd48=>{this['focusTracker']['add'](_0x54cd48['element']),this['_updateItemPositionInFocusables'](_0x54cd48);}),this['list']['on']('change',(_0xa83a0d,_0x18eb1e)=>{for(const _0xa9ac54 of _0x18eb1e['removed'])this['focusTracker']['remove'](_0xa9ac54['element']),this['focusables']['remove'](_0xa9ac54);for(const _0xe6fc7d of _0x18eb1e['added'])this['focusTracker']['add'](_0xe6fc7d['element']),this['_updateItemPositionInFocusables'](_0xe6fc7d);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x2af5f9){const _0x56dfb6=this['focusables']['getIndex'](_0x2af5f9);let _0x273a60,_0x1d9b1f;for(const _0x50bb42 of this['focusables'])if(_0x2af5f9['top']<_0x50bb42['top']){_0x273a60=_0x50bb42;break;}if(_0x1d9b1f=_0x273a60?this['focusables']['getIndex'](_0x273a60):this['focusables']['length'],-0x1!==_0x56dfb6){if(_0x56dfb6===_0x1d9b1f-0x1)return;this['focusables']['remove'](_0x2af5f9),_0x1d9b1f=_0x273a60?this['focusables']['getIndex'](_0x273a60):this['focusables']['length'];}this['focusables']['add'](_0x2af5f9,_0x1d9b1f);}}const qt=Ht('px');class H extends _t{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3bf38b){super(_0x3bf38b),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x266bc4,_0x24c9aa)=>_0x266bc4+_0x24c9aa),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x30a395=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x30a395['to']('isAnimationDisabled',_0x420ee8=>_0x420ee8?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x30a395['to']('top',_0x1701cf=>qt(_0x1701cf))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x58b4d6=this['element']['clientHeight'];_0x58b4d6&&(this['height']=_0x58b4d6);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x5c60c1{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24eaca){super(_0x24eaca),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 _0x59a395=this['context']['config']['get']('sidebar.container');_0x59a395&&this['setContainer'](_0x59a395);}['setContainer'](_0xd23557){if(!y(_0xd23557))throw new _0x4f0fc3('sidebar-setcontainer-invalid-element');this['container']=_0xd23557;}['_attachToContainer']({viewClass:_0x9f9b12='',spaceBetweenItems:_0x25e9e6=0x19}={}){if(!y(this['container']))throw new _0x4f0fc3('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x9f9b12,this['_spaceBetweenItems']=_0x25e9e6;}['rearrange']({removedAnnotation:_0x1929a5,previousAnnotation:_0x4cd0bf,nextAnnotation:_0x546772}){const _0x131e65=this['getSidebarItemView'](_0x1929a5);this['view']['list']['remove'](_0x131e65),this['_destroySidebarItemView'](_0x1929a5),_0x4cd0bf&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4cd0bf)),_0x546772&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x546772)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x55c0a1,activatedAnnotation:_0x574a98,disableAnimationOnActivatedAnnotation:_0x5844e3}){if(this['_activeAnnotation']=_0x574a98,_0x55c0a1){_0x55c0a1['isActive']=!0x1;const _0x500be2=this['getSidebarItemView'](_0x55c0a1);_0x500be2&&_0x5844e3&&(_0x500be2['isAnimationDisabled']=!0x1);}if(_0x574a98){const _0x3d713e=this['getSidebarItemView'](_0x574a98);_0x3d713e&&(_0x574a98['isActive']=!0x0,_0x5844e3&&(_0x3d713e['isAnimationDisabled']=!0x0,_0x3d713e['top']+=0x1),this['_alignToTargetRect'](_0x3d713e));}}['_detachFromContainer'](_0x56ab58){if(this['view']['element']['remove'](),_0x56ab58){for(const _0x560f01 of _0x56ab58)this['_destroySidebarItemView'](_0x560f01);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x108067,_0x349342){_0x349342||(_0x349342=_0x108067['view']);const _0x1dd600=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x1dd600,_0x108067),this['_annotationToSidebarItemView']['set'](_0x108067,_0x1dd600),_0x1dd600['content']['add'](_0x349342),this['listenTo'](_0x108067['view'],'change:targetRect',(_0x40bce7,_0x5f69a6,_0x26c5ad)=>{const _0x53e4a2=this['_getTargetTop'](_0x108067,_0x26c5ad);_0x1dd600['_targetTop']!=_0x53e4a2&&(_0x1dd600['_targetTop']=_0x53e4a2,this['_setItemTop'](_0x1dd600,_0x53e4a2));}),this['listenTo'](_0x1dd600,'change:top',()=>{this['_recalculate'](_0x1dd600,'top');}),this['listenTo'](_0x1dd600,'change:bottom',()=>{this['_recalculate'](_0x1dd600,'bottom');}),this['_alignToTargetRect'](_0x1dd600);const _0x55a495=this['_getItemBefore'](_0x1dd600);if(_0x55a495)this['_alignAfterItem'](_0x55a495,_0x1dd600)||this['_alignToTargetRect'](_0x1dd600);else this['_alignToTargetRect'](_0x1dd600);return this['_updateLastItem'](),this['view']['list']['add'](_0x1dd600),_0x1dd600;}['_alignForTopChange'](_0x3e6d36){if(!_0x3e6d36['content']['length'])return;const _0x56c07a=this['_getItemBefore'](_0x3e6d36);if(!_0x56c07a)return;const _0x4610bc=this['_sidebarItemViewToAnnotation']['get'](_0x56c07a),_0x8c78ff=this['_activeAnnotation'];_0x8c78ff&&_0x8c78ff===_0x4610bc?this['_alignAfterItem'](_0x56c07a,_0x3e6d36):this['_alignBeforeItem'](_0x3e6d36,_0x56c07a);}['_alignForBottomChange'](_0x30e63d){if(!_0x30e63d['content']['length'])return;const _0x338baf=this['_getItemAfter'](_0x30e63d);if(!_0x338baf)return;const _0x38667b=this['_sidebarItemViewToAnnotation']['get'](_0x338baf),_0x2b9cc0=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x75ffe3=this['_activeAnnotation'];_0x75ffe3&&_0x75ffe3===_0x38667b&&_0x2b9cc0?(this['_alignBeforeItem'](_0x338baf,_0x30e63d),this['_alignAfterItem'](_0x30e63d,_0x338baf)):_0x75ffe3&&_0x75ffe3===_0x38667b?this['_alignBeforeItem'](_0x338baf,_0x30e63d):this['_alignAfterItem'](_0x30e63d,_0x338baf);}['_recalculate'](_0x507c42,_0xbe23d){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x61f1e7,changedProp:_0x44155f}of this['_recalculateBuffer'])'top'===_0x44155f?this['_alignForTopChange'](_0x61f1e7):this['_alignForBottomChange'](_0x61f1e7);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x507c42,'changedProp':_0xbe23d});}['getSidebarItemView'](_0x17ad66){return this['_annotationToSidebarItemView']['get'](_0x17ad66);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x27185f){const _0x5f3599=this['getSidebarItemView'](_0x27185f);this['stopListening'](_0x5f3599),this['stopListening'](_0x27185f['view']),_0x5f3599['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x27185f),this['_sidebarItemViewToAnnotation']['delete'](_0x5f3599);}['_createSidebarView'](){const _0x931276=new V(this['context']['locale']);return _0x931276['render'](),this['on']('change:_lastItem',(_0x874c8b,_0x2a6148,_0x680e59,_0x284266)=>{_0x284266&&_0x931276['unbind']('minHeight'),_0x680e59?_0x931276['bind']('minHeight')['to'](_0x680e59,'bottom'):_0x931276['minHeight']=null;}),_0x931276;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0xc09028){const _0x17eda6=this['_sidebarItemViewToAnnotation']['get'](_0xc09028),_0x52cbd0=_0x17eda6&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x17eda6)-0x1);return _0x52cbd0&&this['getSidebarItemView'](_0x52cbd0)||null;}['_getItemAfter'](_0x29ed5d){const _0x41a2d9=this['_sidebarItemViewToAnnotation']['get'](_0x29ed5d),_0x6df59e=_0x41a2d9&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x41a2d9)+0x1);return _0x6df59e&&this['getSidebarItemView'](_0x6df59e)||null;}['_alignBeforeItem'](_0x1eae6b,_0x2634c2){_0x1eae6b['updateHeight']();const _0x4c418e=R(_0x2634c2['bottom']+this['_spaceBetweenItems'],_0x1eae6b['top']);return!!_0x4c418e&&(this['_setItemTop'](_0x2634c2,_0x2634c2['top']-_0x4c418e),!0x0);}['_alignAfterItem'](_0x46051c,_0x11631b){_0x46051c['updateHeight']();const _0x185383=R(_0x46051c['bottom']+this['_spaceBetweenItems'],_0x11631b['top']);return!!_0x185383&&(this['_setItemTop'](_0x11631b,_0x11631b['top']+_0x185383,!0x1),!0x0);}['_alignToTargetRect'](_0x1f492c){const _0x2771aa=this['_sidebarItemViewToAnnotation']['get'](_0x1f492c);if(!_0x2771aa||!_0x2771aa['target']||!_0x2771aa['targetRect'])return;const _0x1a2c75=this['_getTargetTop'](_0x2771aa,_0x2771aa['targetRect']);this['_setItemTop'](_0x1f492c,_0x1a2c75);}['_getTargetTop'](_0x56b676,_0x3d22c6){if(null===_0x3d22c6)return 0x0;if(_0x56b676['target']instanceof _0x5239f0)return _0x3d22c6['top'];{const _0x1ad475=new _0x5239f0(this['view']['element'])['top'];return _0x3d22c6['top']-_0x1ad475;}}['_setItemTop'](_0x5abbd4,_0x2417e8,_0x58a876=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x58a876&&(_0x2417e8=Math['max'](_0x2417e8,this['_getMaxAvailableTop'](_0x5abbd4))),_0x5abbd4['top']=_0x2417e8;}['_getMaxAvailableTop'](_0x44de82){let _0x1d65f8=this['_getItemBefore'](_0x44de82),_0xf388d=0x0;for(;_0x1d65f8;)_0x1d65f8['updateHeight'](),_0xf388d+=this['_spaceBetweenItems']+_0x1d65f8['height'],_0x1d65f8=this['_getItemBefore'](_0x1d65f8);return _0xf388d;}}function R(_0xc8c18d,_0x22b05b){return Math['max'](_0xc8c18d-_0x22b05b,0x0);}function y(_0x203388){return null!==_0x203388&&'object'==typeof _0x203388&&0x1===_0x203388['nodeType'];}class e extends _0x5c60c1{['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(_0x110c1b){super(_0x110c1b),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x82816a(),this['_refreshPositioningDebounced']=_0x1eb64a(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x533cb6=this['context']['plugins']['get'](M),_0x10b072=this['context']['plugins']['get'](z);_0x533cb6['register']('wideSidebar',this),_0x10b072['container']&&_0x533cb6['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x45695f){if(_0x45695f===this['activeAnnotation'])return;const _0x189030=this['context']['plugins']['get'](z);_0x189030['_activeAnnotation']=_0x45695f;const _0x5fa1ad=this['activeAnnotation'];this['activeAnnotation']=_0x45695f,_0x189030['refresh']({'blurredAnnotation':_0x5fa1ad,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x363408){this['annotations']=_0x363408;const _0xe65fb3=this['context']['plugins']['get'](z);if(_0xe65fb3['_annotations']=_0x363408,this['isAttached'])throw new _0x4f0fc3('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xe65fb3,'set:container',()=>{this['detach'](),this['listenTo'](_0xe65fb3,'change:container',_0xfeb6f5=>{_0xfeb6f5['off'](),this['attach'](_0x363408);});}),_0xe65fb3['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x39e8eb=_0xe5299f=>{_0xe5299f['updateTargetRect'](),_0xe65fb3['addAnnotation'](_0xe5299f);};for(const _0x154744 of _0x363408)_0x39e8eb(_0x154744);this['listenTo'](_0x363408,'add',(_0x230745,_0x2888bb)=>{_0x39e8eb(_0x2888bb);}),this['listenTo'](_0x363408,'remove',(_0x269866,_0x5488aa,_0xdbf0e5)=>{_0xe65fb3['rearrange']({'removedAnnotation':_0x5488aa,'previousAnnotation':_0x363408['get'](_0xdbf0e5-0x1),'nextAnnotation':_0x363408['get'](_0xdbf0e5+0x1)}),_0x5488aa===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x363408,'focus',(_0x4a5687,_0x1613e2)=>{this['setActiveAnnotation'](_0x1613e2);}),this['listenTo'](_0x363408,'blur',()=>{this['setActiveAnnotation'](null);});const _0x4cbd0d=this['context']instanceof _0x19199a?this['context']['editors']:new _0x82816a([this['context']]);for(const _0x19bf42 of _0x4cbd0d)this['_integrateWithEditorAnnotations'](_0x19bf42);this['listenTo'](_0x4cbd0d,'add',(_0x103421,_0x5564bf)=>{this['listenTo'](_0x5564bf,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5564bf);});}),this['listenTo'](_0x4cbd0d,'remove',(_0x1553d7,_0x30a03d)=>{_0x30a03d['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x30a03d['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4f0fc3('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x26a3dc=this['context']['plugins']['get'](z);_0x26a3dc['_detachFromContainer'](this['annotations']),this['stopListening'](_0x26a3dc),this['stopListening'](this['annotations']),this['context']instanceof _0x19199a&&this['stopListening'](this['context']['editors']);for(const _0x1bc952 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1bc952);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x350e7d){if(!_0x350e7d['plugins']['has']('EditorAnnotations'))return;const _0x3d7edd=_0x350e7d['plugins']['get']('EditorAnnotations'),_0x1e2f30=()=>{const _0x2e5ad2=_0x3d7edd['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x2e5ad2[0x0]||null);};this['listenTo'](_0x3d7edd,'refresh',_0x1e2f30),this['listenTo'](_0x3d7edd,'blur',(_0x29145c,{isAnnotationTracked:_0x2c8296})=>{this['activeAnnotation']&&_0x2c8296(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3d7edd,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x41407a=>{_0x3d7edd['hasDomSelection']()&&(_0x1e2f30(),_0x41407a['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3d7edd);}['_destroyEditorAnnotationsIntegration'](_0x318681){this['stopListening'](_0x318681),this['_editorAnnotations']['remove'](_0x318681);}}class D extends _0x1c4b84{['counterView'];constructor(_0xa59784){super(_0xa59784);const _0x3d0cc5=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1ebca7,_0x38a439)=>_0x1ebca7?'...':_0x38a439['toString']()),this['set']('annotationType',''),this['icon']=kt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _t(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x3d0cc5['to']('annotationType',_0x458177=>'ck-annotation-counter__badge--'+_0x458177),_0x3d0cc5['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3d0cc5['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x5c60c1{['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(_0xa25271){super(_0xa25271),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0xee441c),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x82816a(),this['_refreshPositioningDebounced']=_0x1eb64a(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x555bf2(this['context']['locale']),this['balloonPanelView']=new _0x15415b(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x5ef6d6){this['annotations']=_0x5ef6d6;const _0x288976=this['context']['plugins']['get'](z),_0x1ab6c1=this['balloonPanelView'];if(_0x288976['_annotations']=_0x5ef6d6,this['isAttached'])throw new _0x4f0fc3('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x288976,'set:container',()=>{this['detach'](),this['listenTo'](_0x288976,'change:container',_0xc859a3=>{_0xc859a3['off'](),this['attach'](_0x5ef6d6);});}),_0x288976['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x490eed=_0x591473=>{const _0x3e8092=new D(this['context']['locale']);_0x288976['addAnnotation'](_0x591473,_0x3e8092),this['_annotationToNarrowView']['set'](_0x591473,_0x3e8092),_0x3e8092['bind']('isDirty','annotationType','number')['to'](_0x591473['view'],'isDirty','type','length'),_0x3e8092['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1ab6c1['content']['first']!==_0x591473['view']?(this['_showBalloon'](_0x591473),_0x591473['view']['element']['focus'](),this['setActiveAnnotation'](_0x591473)):this['setActiveAnnotation'](null);});};for(const _0x15f944 of _0x5ef6d6)_0x490eed(_0x15f944);this['listenTo'](_0x5ef6d6,'add',(_0x5e953c,_0x1a6259)=>{_0x490eed(_0x1a6259);}),this['listenTo'](_0x5ef6d6,'remove',(_0x1d5a76,_0x5cae85,_0xe7fdbb)=>{this['_annotationToNarrowView']['get'](_0x5cae85)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5cae85),_0x288976['rearrange']({'removedAnnotation':_0x5cae85,'previousAnnotation':_0x5ef6d6['get'](_0xe7fdbb-0x1),'nextAnnotation':_0x5ef6d6['get'](_0xe7fdbb+0x1)}),_0x5cae85===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5ef6d6,'focus',(_0x1ee1c9,_0x5f424f)=>{this['setActiveAnnotation'](_0x5f424f);}),this['listenTo'](_0x5ef6d6,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x4688a0,_0x5cbe78)=>{_0x5cbe78['keyCode']===_0x106a68['esc']&&_0x1ab6c1['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1ab6c1['content']['first']),this['_hideBalloon'](),_0x5cbe78['stopPropagation'](),_0x5cbe78['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x293b4b,_0x2d4807)=>{const _0x58a6a7=_0x2d4807['target'];_0x1ab6c1['isVisible']&&_0x1ab6c1['element']['contains'](_0x58a6a7)||_0x288976['view']['element']['contains'](_0x58a6a7)||_0x293b4b['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x31a0a4=>_0x31a0a4['contains'](_0x58a6a7))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x7780e0=this['context']instanceof _0x19199a?this['context']['editors']:new _0x82816a([this['context']]);for(const _0x4da204 of _0x7780e0)this['_integrateWithEditorAnnotations'](_0x4da204);this['listenTo'](_0x7780e0,'add',(_0x3a3ecc,_0x1be20c)=>{this['listenTo'](_0x1be20c,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1be20c);});}),this['listenTo'](_0x7780e0,'remove',(_0x4dbcd8,_0x53f946)=>{_0x53f946['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x53f946['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5d4d4a){if(_0x5d4d4a===this['activeAnnotation'])return;const _0x47c1c0=this['context']['plugins']['get'](z);if(_0x47c1c0['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5d4d4a,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5d4d4a)_0x47c1c0['getSidebarItemView'](_0x5d4d4a)?this['_showBalloon'](_0x5d4d4a):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5d4d4a;}['detach'](){if(!this['isAttached'])throw new _0x4f0fc3('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x12ea2a=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5efa3a=>_0x5efa3a['destroy']()),this['_annotationToNarrowView']['clear'](),_0x12ea2a['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x19199a&&this['stopListening'](this['context']['editors']);for(const _0x150b50 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x150b50);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'](_0x25e7bd){if(!_0x25e7bd['plugins']['has']('EditorAnnotations'))return;const _0x3e7aee=_0x25e7bd['plugins']['get']('EditorAnnotations'),_0xdae151=this['context']['plugins']['get'](z),_0x20df6b=this['annotations'],_0x13214c=this['balloonPanelView'],_0x8ae124=()=>{const _0x2450d4=_0x3e7aee['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2450d4),this['setActiveAnnotation'](_0x2450d4[0x0]||null);};this['listenTo'](_0x3e7aee,'refresh',_0x8ae124),this['listenTo'](_0x3e7aee,'blur',(_0x3c0ef0,{isAnnotationTracked:_0x5bcce6})=>{this['activeAnnotation']&&_0x5bcce6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3e7aee,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x20df6b,'blur',_0x1f498b=>{_0x3e7aee['hasDomSelection']()&&_0x1f498b['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5a24ac,_0x3fc79b)=>{const _0x2c3772=_0x3fc79b['target'];_0x13214c['isVisible']&&_0x13214c['element']['contains'](_0x2c3772)||_0xdae151['view']['element']['contains'](_0x2c3772)||this['activeAnnotation']&&_0x3e7aee['hasDomSelection']()&&(_0x8ae124(),_0x5a24ac['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3e7aee);}['_destroyEditorAnnotationsIntegration'](_0x1bdea6){_0x1bdea6&&(this['stopListening'](_0x1bdea6),this['_editorAnnotations']['remove'](_0x1bdea6));}['_setSelectedAnnotations'](_0xc4f635){for(const _0x3f5d0a of this['_selectedAnnotations'])_0xc4f635['includes'](_0x3f5d0a)||this['_manuallyClosedAnnotationViews']['delete'](_0x3f5d0a['view']);this['_selectedAnnotations']=_0xc4f635;}['_refreshPositioning'](){const _0xe7c21a=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0xe7c21a['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3ffb7c){if(this['_manuallyClosedAnnotationViews']['has'](_0x3ffb7c['view']))return;const _0x4bb42a=this['balloonPanelView']['content']['first'];_0x4bb42a!==_0x3ffb7c['view']?(_0x4bb42a&&this['_detachListeners'](_0x4bb42a),this['_attachListeners'](_0x3ffb7c['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3ffb7c['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4a849d=this['balloonPanelView']['content']['first'],_0x4cc62b=_0x4a849d&&this['annotations']['getByView'](_0x4a849d);if(!_0x4cc62b||!this['_annotationToNarrowView']['has'](_0x4cc62b))return;const _0x1ec424=this['_annotationToNarrowView']['get'](_0x4cc62b)['element'],_0x5486a4=(function(){const _0x4002f8=_0x15415b['defaultPositions'];return[_0x4002f8['southArrowNorthEast'],_0x4002f8['northArrowSouthEast'],_0x4002f8['southArrowNorth'],_0x4002f8['northArrowSouth'],_0x4002f8['southArrowNorthWest'],_0x4002f8['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x1ec424,'positions':_0x5486a4});}['_hideBalloon'](){const _0x2f2f2a=this['balloonPanelView'],_0x4b8155=_0x2f2f2a['content']['first'];_0x4b8155&&(this['_detachListeners'](_0x4b8155),_0x2f2f2a['unpin'](),_0x2f2f2a['content']['clear']());}['_attachListeners'](_0x2f75e0){this['listenTo'](_0x2f75e0,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2f75e0,'Esc',(_0x26ed7b,_0x4844d8)=>{this['_manuallyClosedAnnotationViews']['add'](_0x2f75e0),this['_hideBalloon'](),_0x4844d8();});}['_detachListeners'](_0x164a9c){this['stopListening'](_0x164a9c);}}class c extends _0x5d682a{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x391d19,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x326fb3){super(_0x326fb3),_0x326fb3['editing']['view']['addObserver'](_0x301a94),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x326fb3['plugins']['get'](_0x391d19),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x415dc1=this['editor']['plugins']['get'](M);_0x415dc1['context']===this['editor']&&(_0x415dc1['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x31f130,_0x3ed819)=>{const _0x5b0ad8=this['_balloon'];if(this['isAttached']&&_0x5b0ad8['visibleView']){const _0x3daa9b=this['annotations']['getByView'](_0x5b0ad8['visibleView']);_0x3daa9b&&this['_closeAnnotation'](_0x3daa9b),_0x3ed819();}}));}['afterInit'](){const _0xcf3325=this['editor']['plugins']['get'](M);_0xcf3325['context']===this['editor']&&(_0xcf3325['hasActive']()||_0xcf3325['switchTo']('inline'));}['setActiveAnnotation'](_0x109616){_0x109616!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x109616&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x109616)&&this['_addAnnotationToBalloon'](_0x109616,!0x0),_0x109616['isActive']=!0x0),_0x109616||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x109616);}['attach'](_0x1c3397){this['annotations']=_0x1c3397;const _0x214071=this['editor']['plugins']['get'](M),_0x349385=this['_balloon'];if(this['isAttached'])throw new _0x4f0fc3('inlineannotations-attach-already-attached',this);if(_0x214071['context']!==this['editor'])throw new _0x4f0fc3('inlineannotations-not-allowed-with-context',this);const _0xb21c9=this['editor']['plugins']['get'](P);this['listenTo'](_0xb21c9,'refresh',()=>{const _0x34c7c4=_0xb21c9['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x2ade63,_0xea8430;!this['_forceRefresh']&&(_0x2ade63=_0x34c7c4,_0xea8430=this['_selectedAnnotations'],_0x2ade63['length']===_0xea8430['length']&&_0x2ade63['every'](_0x2f7b2e=>_0xea8430['includes'](_0x2f7b2e)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x34c7c4),this['setActiveAnnotation'](_0x34c7c4[0x0]||null));}),this['listenTo'](_0xb21c9,'blur',(_0x2b0cc1,{isAnnotationTracked:_0x5b7256})=>{this['activeAnnotation']&&_0x5b7256(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x4a6357,_0x32141d,_0x408e26)=>{_0x408e26||this['setActiveAnnotation'](null);}),this['listenTo'](_0x1c3397,'remove',(_0x542dc1,_0x36788c)=>{this['_removeAnnotationFromBalloon'](_0x36788c),_0x36788c===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x349385,'change:visibleView',(_0x5a3dbb,_0x46e3f1,_0x3eaad5,_0x75e5dc)=>{_0x75e5dc&&this['stopListening'](_0x75e5dc);const _0x14b59f=_0x1c3397['getByView'](_0x3eaad5);_0x3eaad5&&_0x14b59f&&(this['listenTo'](_0x3eaad5,'change:height',()=>{_0x349385['updatePosition']();}),this['listenTo'](_0x3eaad5,'Esc',()=>{this['_closeAnnotation'](_0x14b59f),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x14b59f&&this['setActiveAnnotation'](_0x14b59f));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x349385['visibleView']&&(_0x1c3397['getByView'](_0x349385['visibleView'])&&_0x349385['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 _0x4f0fc3('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x467b43 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x467b43);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x363045){for(const _0x355f85 of this['_selectedAnnotations'])_0x363045['includes'](_0x355f85)||this['_manuallyClosed']['delete'](_0x355f85);for(const _0x103555 of this['annotations'])_0x363045['includes'](_0x103555)||this['_removeAnnotationFromBalloon'](_0x103555);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x3417cf of _0x363045)this['_addAnnotationToBalloon'](_0x3417cf);}this['_selectedAnnotations']=_0x363045;}['_addAnnotationToBalloon'](_0x49f15a,_0xe22ef6=!0x1){this['_manuallyClosed']['has'](_0x49f15a)||(this['_addedAnnotations']['has'](_0x49f15a)||this['_balloon']['hasView'](_0x49f15a['view'])||(this['_addedAnnotations']['add'](_0x49f15a),this['_balloon']['add']({'stackId':_0x49f15a['view']['id'],'view':_0x49f15a['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x49f15a)}})),_0xe22ef6&&this['_balloon']['showStack'](_0x49f15a['view']['id']));}['_getBalloonTargetForAnnotation'](_0x2a3912){const _0x2b98dc=_0x2a3912['target'],_0x3e1fe7=this['editor']['editing']['view'],_0x5386cf=_0x3e1fe7['document']['selection']['getFirstRange'](),_0x169cdf=_0x3e1fe7['domConverter']['viewRangeToDom'](_0x5386cf);if(_0x169cdf['collapse'](!0x0),_0x2b98dc){if(_0x2b98dc instanceof _0x5239f0)return _0x2b98dc;let _0x16f7f4=[];for(const _0x42dc4d of _0x2b98dc)_0x16f7f4['push'](...(_0x522ebc=_0x42dc4d['getClientRects'](),Array['from'](_0x522ebc)['map'](DOMRect['fromRect'])));_0x16f7f4=function(_0x482e85){const _0x3b8da3=[];let _0xb1d73b=_0x482e85[0x0];for(let _0x36c23c=0x1;_0x36c23c<_0x482e85['length'];_0x36c23c++)b(_0xb1d73b,_0x482e85[_0x36c23c])?_0xb1d73b['width']+=_0x482e85[_0x36c23c]['width']:(_0x3b8da3['push'](_0xb1d73b),_0xb1d73b=_0x482e85[_0x36c23c]);return _0x3b8da3['push'](_0xb1d73b),_0x3b8da3;}(_0x16f7f4);const _0x3d77a1=_0x169cdf['getBoundingClientRect']();return _0x16f7f4['find'](_0x491a79=>_0x491a79['top']<=_0x3d77a1['top']&&_0x491a79['bottom']>=_0x3d77a1['bottom']&&_0x491a79['left']<=_0x3d77a1['left']&&_0x491a79['right']>=_0x3d77a1['right'])||_0x16f7f4[0x0];}var _0x522ebc;return _0x2a3912['targetRect']||_0x169cdf;}['_removeAnnotationFromBalloon'](_0x218d4a){this['_addedAnnotations']['has'](_0x218d4a)&&this['_balloon']['hasView'](_0x218d4a['view'])&&(this['_addedAnnotations']['delete'](_0x218d4a),this['_balloon']['remove'](_0x218d4a['view']));}['_closeAnnotation'](_0x3cd741){this['_manuallyClosed']['add'](_0x3cd741),this['_removeAnnotationFromBalloon'](_0x3cd741);}}function b(_0x4d2ab0,_0x10173b){return _0x4d2ab0['top']===_0x10173b['top']&&_0x4d2ab0['bottom']===_0x10173b['bottom']&&_0x4d2ab0['right']===_0x10173b['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends _t{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x39f9a3,_0x54440b){super(_0x39f9a3),this['set']('isEmpty',!_0x54440b['length']),this['focusTracker']=new _0x465762(),this['_annotationViews']=_0x54440b,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x54440b,'focusTracker':this['focusTracker']}),this['listenTo'](_0x54440b,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x54440b,'remove',(_0x52d06c,_0x2949f5)=>{_0x2949f5['isActive']&&this['focus'](),_0x54440b['length']||(this['isEmpty']=!0x0);});const _0x2ab9f6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x39f9a3,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x54440b},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2ab9f6['if']('isEmpty','ck-hidden',_0x11ed52=>!_0x11ed52)]},'children':[{'text':S(_0x39f9a3,'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 _0x475945 of this['_annotationViews'])this['focusTracker']['add'](_0x475945['element']);this['_annotationViews']['on']('change',(_0x52560e,{added:_0x21c322,removed:_0x5ab7f1})=>{for(const _0x4e3888 of _0x21c322)this['focusTracker']['add'](_0x4e3888['element']);for(const _0x1c3dda of _0x5ab7f1)this['focusTracker']['remove'](_0x1c3dda['element']);});}}class f extends _0x5c60c1{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x11a557){super(_0x11a557),this['archivedThreads']=new _0x82816a();}['init'](){const _0x5279ed=this['context'],_0x1dacb6=_0x5279ed['plugins']['get'](o),_0xcf46e3=_0x5279ed['plugins']['get'](N);this['listenTo'](_0x1dacb6,'addCommentThread',(_0x45b750,{threadId:_0x4e30fc})=>{const _0x586ec8=_0x1dacb6['getCommentThread'](_0x4e30fc);_0x586ec8['archivedAt']&&this['archivedThreads']['add'](_0x586ec8,this['_calculatePosition'](_0x586ec8['archivedAt'])),this['listenTo'](_0x586ec8,'change:archivedAt',(_0x1d4860,_0x46dd33,_0x5e0c12)=>{_0x5e0c12?this['archivedThreads']['has'](_0x586ec8)||this['archivedThreads']['add'](_0x586ec8,this['_calculatePosition'](_0x586ec8['archivedAt'])):this['archivedThreads']['has'](_0x586ec8)&&this['archivedThreads']['remove'](_0x586ec8);});}),this['listenTo'](_0x1dacb6,'removeCommentThread',(_0x471437,{threadId:_0x148f8b})=>{const _0x504917=_0x1dacb6['getCommentThread'](_0x148f8b);this['stopListening'](_0x504917),this['archivedThreads']['has'](_0x504917)&&this['archivedThreads']['remove'](_0x504917);},{'priority':'highest'}),this['listenTo'](_0xcf46e3['collection'],'focus',(_0x10945d,_0x30efdf)=>{_0x30efdf['isVisible']||(_0x30efdf['isActive']=!0x0,_0xcf46e3['activate'](_0x30efdf));});}['_calculatePosition'](_0x81fb47){const _0x10332a=[...this['archivedThreads']]['findIndex'](_0x44b3bf=>_0x44b3bf['archivedAt']<_0x81fb47);return _0x10332a>-0x1?_0x10332a:this['archivedThreads']['length'];}}class a extends _0x5d682a{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x44ebc3];}constructor(_0x20e88f){super(_0x20e88f),this['annotationViews']=new _0x8b0193(),this['_pendingThreads']=[];}['init'](){const _0x37a934=this['editor'],_0x259acd=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x37a934['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x1c4b84,!0x0)),_0x37a934['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x27f284=this['_createCommentsArchiveButton'](_0x5ce43a);return _0x27f284['set']({'role':'menuitemcheckbox'}),_0x27f284;});const _0x2185c4=_0x37a934['plugins']['get'](f),_0x780a94=_0x37a934['plugins']['get']('Annotations'),_0x526494=_0x37a934['plugins']['get']('CommentsRepository');this['listenTo'](_0x2185c4['archivedThreads'],'add',(_0x380b1e,_0x52ec14)=>{const _0x205ab0=_0x37a934['config']['get']('collaboration.channelId');if(!_0x205ab0||_0x52ec14['channelId']===_0x205ab0){const _0x51744b=_0x526494['_threadToController']['get'](_0x52ec14);if(!_0x51744b)return void this['_pendingThreads']['push'](_0x52ec14);const _0x1575cb=this['_calculatePosition'](_0x52ec14['archivedAt']),_0x1bba98=_0x780a94['getByInnerView'](_0x51744b['view']);_0x1bba98['isVisible']&&_0x780a94['_visibleAnnotations']['remove'](_0x1bba98),this['annotationViews']['add'](_0x1bba98['view'],_0x1575cb);}}),this['listenTo'](_0x780a94['collection'],'add',(_0x40608f,_0x33c4f6)=>{const _0xeb08a8=this['_pendingThreads']['find'](_0x24448c=>{const _0x3b435e=_0x526494['_threadToController']['get'](_0x24448c);return _0x3b435e&&_0x33c4f6['innerView']===_0x3b435e['view'];});if(_0xeb08a8){const _0x2c2b6c=this['_calculatePosition'](_0xeb08a8['archivedAt']);this['annotationViews']['add'](_0x33c4f6['view'],_0x2c2b6c),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xeb08a8),0x1);}}),this['listenTo'](_0x2185c4['archivedThreads'],'remove',(_0x21b636,_0x1db7bb)=>{const _0x1332ba=_0x37a934['config']['get']('collaboration.channelId');if(!_0x1332ba||_0x1db7bb['channelId']===_0x1332ba){const _0x82ee93=_0x526494['_threadToController']['get'](_0x1db7bb),_0xc0d966=_0x780a94['getByInnerView'](_0x82ee93['view']);this['annotationViews']['remove'](_0xc0d966['view']),this['stopListening'](_0xc0d966['focusableElements']);}}),this['listenTo'](_0x780a94['collection'],'add',(_0x4f8c6b,_0x57f256)=>{this['listenTo'](_0x57f256,'escape',_0x259acd);}),this['listenTo'](_0x780a94['collection'],'remove',(_0x3a5323,_0x5b04bf)=>{this['stopListening'](_0x5b04bf,'escape',_0x259acd);});}['_calculatePosition'](_0x5f2304){const _0x3541c0=this['editor']['config']['get']('collaboration.channelId'),_0x3437b1=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x37a205=>_0x37a205['channelId']===_0x3541c0)['findIndex'](_0x3c0c27=>_0x3c0c27['archivedAt']<_0x5f2304);return _0x3437b1<0x0||_0x3437b1>this['annotationViews']['length']?this['annotationViews']['length']:_0x3437b1-0x1;}['_toggleDialog'](){const _0x1ebeea=this['editor'],_0xb4ecf3=_0x1ebeea['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x1ebeea['locale'],this['annotationViews'])),'commentsArchive'===_0xb4ecf3['id']?_0xb4ecf3['hide']():_0xb4ecf3['show']({'id':'commentsArchive','title':S(_0x1ebeea['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x486e51['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0xdb2e6e,_0x4dbd18=!0x1){const _0x50e96e=this['editor']['locale'],_0x58e791=this['editor']['plugins']['get']('Dialog'),_0x329ddb=new _0xdb2e6e(_0x50e96e);return _0x329ddb['bind']('isEnabled')['to'](this,'isEnabled'),_0x329ddb['bind']('isOn')['to'](_0x58e791,'id',_0x556479=>'commentsArchive'===_0x556479),_0x329ddb['set']({'label':S(_0x50e96e,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x4dbd18&&(_0x329ddb['tooltip']=!0x0),this['listenTo'](_0x329ddb,'execute',()=>this['_toggleDialog']()),_0x329ddb;}['_hideDialogOnAnnotationEscape']=_0x13bcc9=>{const _0x2c980d=_0x13bcc9['source'];if(!this['annotationViews']['has'](_0x2c980d['view']))return;const _0x1b6b07=this['editor']['plugins']['get']('Dialog');_0x1b6b07['isOpen']&&'commentsArchive'===_0x1b6b07['id']&&(_0x1b6b07['hide'](),_0x13bcc9['stop']());};}class p extends _0x5d682a{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,es as BaseCommentThreadView,ns as BaseCommentView,se as Comment,ie as CommentThread,At as CommentThreadController,Pt as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,xt 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 _0x316bab,icons as _0x2516ac,ContextPlugin as _0x323088,PendingActions as ht,Command as _0x3f3719,Plugin as _0x37624c,Context as _0x319680}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x23b86c,uid as _0x4b8453,KeystrokeHandler as jt,FocusTracker as _0x90f2b9,diff as _0xf48b38,Collection as _0x375c29,Rect as _0x462831,CKEditorError as _0x2e3068,first as _0x17dd4b,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x1a4f4c,keyCodes as _0x2e683c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x287a20,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x1ba71,trimHtml as _0x3f847f,LateFocusDropdownButtonView as _0x20cfd5,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x3ef24c}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x257b89}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0xbee2d6,ViewCollection as _0x150f1d,createDropdown as _0x3ed904,ListView as _0x5d06f9,focusChildOnDropdownOpen as _0x1acc4d,ListItemView as _0x15ba76,MenuBarMenuListItemButtonView as _0x107f58,BodyCollection as _0x532a7d,BalloonPanelView as _0x3e384d,ContextualBalloon as _0x5538ca,Dialog as _0x2709cc,DialogViewPosition as _0x18760c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x29326f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x160036}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x23b86c(){['model'];['view'];constructor(_0x410dba,_0x10781e){super(),this['model']=_0x410dba,this['model']['_isAttached']=!0x0,this['view']=_0x10781e,this['listenTo'](_0x10781e,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x10781e,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x10781e,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x10781e,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x10781e,'addComment',(_0xd0e797,_0x26dc31)=>this['addComment'](_0x26dc31)),this['listenTo'](_0x10781e,'updateComment',(_0x5c3db4,_0x289f85,_0x24b1e8)=>this['updateComment'](_0x289f85,_0x24b1e8)),this['listenTo'](_0x10781e,'removeComment',(_0x368c0e,_0x5c4bf0)=>this['removeComment'](_0x5c4bf0));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x56db9e){this['model']['addComment']({'content':_0x56db9e,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x4a77a6,_0x5f54ef){this['model']['getComment'](_0x4a77a6)['update']({'content':_0x5f54ef});}['removeComment'](_0x3d1e8a){this['model']['getComment'](_0x3d1e8a)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x392ed5,_0x1b9fe4,_0x4aa77a){const t=_0x392ed5['t'];switch(_0x1b9fe4){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'},_0x4aa77a);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'},_0x4aa77a);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'},_0x4aa77a);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'},_0x4aa77a);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4aa77a);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'},_0x4aa77a);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'},_0x4aa77a);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'},_0x4aa77a);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x5b478e,_0x5a85a9){super(_0x5b478e);const _0x2e8709=_0x4b8453();this['main']=this['createCollection'](),this['editable']=new $t(_0x5b478e,_0x5a85a9,void 0x0,{'label':()=>S(_0x5b478e,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x5b478e['uiLanguageDirection'],'lang':_0x5b478e['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x2e8709},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Ut{['view'];constructor(_0x31ec00){super(_0x31ec00),this['view']=new Vt(_0x31ec00['locale'],_0x31ec00['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2be372=this['editor']['editing']['view'],_0x21ba83=this['view']['editable'],_0x283c17=_0x2be372['document']['getRoot']();_0x21ba83['name']=_0x283c17['rootName'],this['view']['render']();const _0x93453f=_0x21ba83['element'];this['setEditableElement'](_0x21ba83['name'],_0x93453f),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2be372['attachDomRoot'](_0x93453f),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x23b86c(_0x316bab){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Qt)());constructor(_0xe525b2={}){function _0x4340c5(_0x22768f){return _0x22768f['map'](_0x1b343c=>String['fromCharCode'](_0x1b343c))['join']('');}(_0xe525b2=Object['assign']({},_0xe525b2))['plugins']||(_0xe525b2['plugins']=Rt['defaultPlugins']),super(_0xe525b2),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[_0x4340c5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4340c5([0x76,0x69,0x65,0x77])][_0x4340c5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4340c5([0x61,0x75,0x74,0x6f]),this[_0x4340c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4340c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4340c5([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4340c5([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4340c5([0x6f,0x6b])});}['create'](){const _0x580405=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x580405))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5c3189=>{const _0x131c23=this['model']['document']['getRoot'](),_0x4b4029=_0x131c23&&_0x131c23['getChild'](_0x131c23['childCount']-0x1);_0x5c3189['setSelection'](_0x4b4029,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x12f2ba=this['editing']['view'],_0x5cefd1=_0x12f2ba['document']['getRoot'](),_0x222b81=_0x5cefd1['getChild'](0x0);_0x5cefd1['childCount']>0x1||!_0x222b81||'p'!=_0x222b81['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x12f2ba,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x222b81['placeholder']=this['placeholder']),St({'view':_0x12f2ba,'element':_0x222b81,'keepOnFocus':!0x0}),this['placeholderElement']=_0x222b81);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4fe2c1,_0x5ce2ab={}){super(_0x4fe2c1),this['editor']=null,this['_editorConfig']=_0x5ce2ab,this['set']('value',_0x5ce2ab['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x4fe2c1,'Reply...')),this['set']('submitLabel',S(_0x4fe2c1,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x90f2b9(),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',(_0x20100f,_0x454873)=>{this['cancelButtonView']['fire']('execute'),_0x454873();}),this['keystrokes']['set']('Ctrl+Enter',(_0x180e6a,_0x71ac9c)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x71ac9c());}),this['on']('submit',(_0x263531,_0x4c8c15)=>{_0x4c8c15['length']>0xfde8?(alert(S(_0x4fe2c1,'TOO_LONG_COMMENT_ALERT',[_0x4c8c15['length'],0xfde8])),_0x263531['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x16ac10=this['editor'];this['element']['insertBefore'](_0x16ac10['ui']['element'],this['element']['firstChild']),_0x16ac10['model']['document']['on']('change',()=>this['value']=_0x16ac10['getData']()),_0x16ac10['bind']('placeholder')['to'](this),this['focusables']['add'](_0x16ac10['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x5be1e8){-0x1===_0x5be1e8?(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:_0x4112fa}=this,_0x4731d3=new _0xbee2d6(_0x4112fa);return _0x4731d3['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4731d3['withText']=!0x0,_0x4731d3['bind']('label')['to'](this,'submitLabel'),_0x4731d3['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4731d3['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x116b7,_0x58e780)=>!_0x58e780&&!!_0x116b7['trim']()),_0x4731d3;}['_createCancelButton'](){const {locale:_0x101abe}=this,_0x5690b1=new _0xbee2d6(_0x101abe);return _0x5690b1['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x5690b1['label']=S(_0x101abe,'Cancel'),_0x5690b1['withText']=!0x0,_0x5690b1['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x5690b1;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4a0934=>{this['focusTracker']['add'](_0x4a0934['element']);}),this['focusables']['on']('change',(_0x293ee2,_0x5cc4f7)=>{for(const _0x13993a of Array['from'](_0x5cc4f7['added'])['reverse']())this['focusTracker']['add'](_0x13993a['element']);});}}class ie extends kt{constructor(_0x5a4f1c,_0x250f92,_0x4bbfd0){super(_0x5a4f1c),this['commentInputView']=new hs(_0x5a4f1c,_0x4bbfd0),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x19e605,_0x44e340)=>_0x19e605||!!_0x44e340),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 _0x287a20(_0x5a4f1c,_0x250f92),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'](_0x341a23){this['commentInputView']['focus'](_0x341a23);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x4cf696,_0xaad1b5)=>{const {submitButtonView:_0x5e30c3,cancelButtonView:_0x5b8770,editor:_0x403594}=this['commentInputView'];[_0x5e30c3['element'],_0x5b8770['element'],_0x403594?_0x403594['editing']['view']['getDomRoot']():null]['filter'](_0x5ce418=>_0x5ce418)['some'](_0x44ebdf=>_0x44ebdf['contains'](_0xaad1b5['target']))||(this['focus'](),_0xaad1b5['preventDefault']());});}}class cs extends kt{constructor(_0x5d9c1b){super(_0x5d9c1b);const _0x169758=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x169758['to']('count',_0x2648c5=>S(_0x5d9c1b,'NUMBER_OF_COMMENTS',_0x2648c5))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x38fa60,_0x21a56c,_0x47d70f){super(_0x38fa60);const _0x459dd2=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x21a56c['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x21a56c,this['_config']=_0x47d70f,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x90f2b9(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3113d4=>this['commentViews']['map'](_0x133d04=>_0x133d04['element'])['includes'](_0x3113d4['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x38fa60),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x59d66f=>_0x59d66f-this['_config']['maxCommentsWhenCollapsed']);for(const _0x198dd4 of _0x21a56c['comments'])this['_handleNewCommentModel'](_0x198dd4);this['_handleInfoComment'](),this['listenTo'](_0x21a56c['comments'],'add',(_0x503397,_0x51a773)=>{const _0x55ac07=this['_calculatePosition'](_0x51a773);this['length']++,this['_handleNewCommentModel'](_0x51a773,_0x55ac07),this['refreshVisibleViews']();}),this['listenTo'](_0x21a56c['comments'],'remove',(_0x3053ae,_0x4bbf16)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4bbf16),this['refreshVisibleViews']();}),this['listenTo'](_0x21a56c,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x21a56c,'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',_0x459dd2['if']('length','ck-hidden',_0x14c8e5=>!_0x14c8e5)],'aria-label':S(_0x38fa60,'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'](_0x4cb3b5){-0x1===_0x4cb3b5?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4e15ff of this['commentViews'])_0x4e15ff['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x245201,_0x4a6808){const _0x31c881=new this['_config']['CommentView'](this['locale'],_0x245201,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x31c881['viewUid']=_0x245201['id'],_0x31c881['delegate']('removeComment')['to'](this),_0x31c881['delegate']('updateComment')['to'](this),_0x31c881['delegate']('resolveCommentThread')['to'](this),_0x31c881['delegate']('editorReady')['to'](this),_0x31c881['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x31c881,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x31c881,_0x4a6808);}['_calculatePosition'](_0x4f8aa0){const _0xbef58=this['_model']['_findOptimalIndex'](_0x4f8aa0);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x4f8aa0['authoredAt']?_0xbef58-0x1:_0xbef58:_0xbef58-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x234f4b={'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'],_0x234f4b,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x234f4b));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3792cd){const _0x875a3=this['commentViews']['remove'](_0x3792cd['id']);this['stopListening'](_0x875a3),_0x875a3['isEditMode']&&this['_updateHasDirtyComment'](),_0x875a3['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1d5081=>_0x1d5081['isEditMode']);}['_rearrangeCollapse'](){const _0xd0cb4f=function(_0x237188){const _0x1495be=new _0x375c29();for(const _0x1b49e1 of _0x237188)_0x1495be['add'](_0x1b49e1);return _0x1495be;}(this['commentViews']),_0x2faf46=this['_collapsedCommentsView']['count'];for(let _0x40953c=0x1;_0x40953c<=_0x2faf46;_0x40953c++)_0xd0cb4f['remove'](0x1);for(const _0x552698 of _0xd0cb4f)_0x552698['collapse']();_0x2faf46>0x0&&_0xd0cb4f['add'](this['_collapsedCommentsView'],0x1),ns(_0xf48b38(Array['from'](this['visibleViews']),Array['from'](_0xd0cb4f)),this['visibleViews'],_0xd0cb4f);}['_rearrangeExpand'](){ns(_0xf48b38(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x5d4f9c of this['visibleViews'])_0x5d4f9c['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x5e4a2c=>{this['focusTracker']['add'](_0x5e4a2c['element']),this['keystrokes']['listenTo'](_0x5e4a2c['element']);}),this['commentViews']['on']('change',(_0x3ea71d,_0x239284)=>{for(const _0xedd0a0 of _0x239284['removed'])this['focusTracker']['remove'](_0xedd0a0['element']),this['keystrokes']['stopListening'](_0xedd0a0['element']);for(const _0x2afcab of Array['from'](_0x239284['added'])['reverse']())this['focusTracker']['add'](_0x2afcab['element']),this['keystrokes']['listenTo'](_0x2afcab['element']);});}}function ns(_0x21658e,_0x5f3e14,_0x58da64){let _0x4b267e=0x0;for(const _0x5336d6 of _0x21658e)switch(_0x5336d6){case'insert':_0x5f3e14['add'](_0x58da64['get'](_0x4b267e),_0x4b267e),_0x4b267e++;break;case'delete':_0x5f3e14['remove'](_0x4b267e);break;case'equal':_0x4b267e++;}}class as extends kt{constructor(_0x3485a1){super(_0x3485a1);const _0x315bb5=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x315bb5['to']('contextValue',_0x35647c=>S(_0x3485a1,'THREAD_CONTEXT_LABEL',_0x35647c)),'tabindex':-0x1},'children':[{'text':_0x315bb5['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3e2cd7,_0x2f4190){super(_0x3e2cd7);const _0x32f5b2=this['bindTemplate'];this['_model']=_0x2f4190,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x90f2b9(),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',_0x76d11b=>!!_0x76d11b),this['bind']('contextValue')['to'](this['_model'],'context',_0x245609=>_0x245609&&_0x245609['value']?this['_trimContextValue'](_0x245609['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',_0x32f5b2['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 _0xf07885=new _0xbee2d6(this['locale']);return _0xf07885['label']=S(this['locale'],'Reopen'),_0xf07885['tooltip']=S(this['locale'],'Reopen'),_0xf07885['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>',_0xf07885['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1c3f76=>!_0x1c3f76),_0xf07885['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x477932,_0x44f6a3)=>_0x477932&&_0x44f6a3),_0xf07885['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0xf07885;}['_trimContextValue'](_0x2a5ac0){if(_0x2a5ac0['length']<0x96)return _0x2a5ac0;const _0x38f900=_0x2a5ac0['lastIndexOf']('\x20',0x93);return _0x2a5ac0['substring'](0x0,_0x38f900>-0x1?_0x38f900:0x93)+'...';}['_attachContextActions'](){const _0x11a3cf=this['element']['querySelector']('.ck-context'),_0x19a6e0=_0x11a3cf['querySelector']('.ck-context__value');this['listenTo'](_0x11a3cf,'mouseenter',()=>{_0x19a6e0['offsetWidth']<_0x19a6e0['scrollWidth']&&_0x11a3cf['classList']['add']('overlay');}),this['listenTo'](_0x11a3cf,'mouseleave',()=>{_0x11a3cf['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x12cc2d of this['focusables'])this['focusTracker']['add'](_0x12cc2d['element']),this['keystrokes']['listenTo'](_0x12cc2d['element']);}['_createContextView'](){const _0x2f6323=new as(this['locale']);return _0x2f6323['bind']('contextValue')['to'](this),_0x2f6323;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5c4a19,_0x5c1ed0,_0x15b424,_0xe679c2){super(_0x5c4a19),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5c1ed0,this['_localUser']=_0x15b424,this['_config']=_0xe679c2,this['commentThreadHeaderView']=new Yt(_0x5c4a19,_0x5c1ed0),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x5c4a19,S(_0x5c4a19,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x5c4a19,_0x5c1ed0,Object['assign']({'CommentView':this['_config']['CommentView']},_0xe679c2)),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',(_0x13482a,_0x185961)=>_0x13482a||!!_0x185961),this['bind']('isUnlinked')['to'](_0x5c1ed0,'unlinkedAt',_0x430a5a=>!!_0x430a5a),this['bind']('ariaLabel')['to'](this,'length',_0xa830d4=>{const _0x23f99a=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0xa830d4,_0x23f99a]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x90f2b9(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1a2d57=>_0x1a2d57['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x3fdb7d=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x806087=_0x3fdb7d['commentInputView'];return _0x3fdb7d['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x806087,'value',(_0x1f04ed,_0x1b6dd7,_0x152835,_0x3a79ae,_0xbfe103)=>!!_0xbfe103||!!_0x3a79ae&&_0x152835&&!_0x1b6dd7||_0x1f04ed&&_0x152835&&!_0x1b6dd7),_0x806087['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x13f565,_0x5c659c,_0x26292a)=>{let _0x1b55bd;return _0x1b55bd=_0x26292a&&_0x5c659c?'Reply\x20to\x20reopen\x20discussion...':_0x13f565?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x1b55bd);}),_0x806087['bind']('submitLabel')['to'](this,'length',_0xd746db=>S(this['locale'],_0xd746db?'Reply':'Comment')),_0x806087['on']('submit',(_0x3d2589,_0x380907)=>{this['fire']('addComment',_0x380907),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x806087['on']('cancel',()=>{this['focus']();}),_0x806087['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x806087['on']('cancel',_0x59f73c=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x59f73c['stop']());}),this['on']('change:isActive',(_0xdcb3e6,_0xbc5564,_0x458c7f)=>{_0x458c7f||this['length']||_0x806087['value']||this['fire']('removeCommentThread');}),_0x3fdb7d;}}class Ct extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x413ef7,_0x1a0da7,_0x2612ca,_0x507ed6){super(_0x413ef7,_0x1a0da7,_0x2612ca,_0x507ed6),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x413ef7,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x66d63c,_0x547a67,_0x3ff8fb)=>{_0x3ff8fb||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0xc533c2,_0x2366a8,_0x41fd4d)=>{_0x41fd4d&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1a17f5=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1a17f5['if']('isActive','ck-thread--active'),_0x1a17f5['if']('isUnlinked','ck-thread--unlinked'),_0x1a17f5['if']('isConfirm','ck-thread--remove-confirmation'),_0x1a17f5['to']('actionIndicator',_0x5d77cf=>_0x5d77cf?'ck-thread--'+_0x5d77cf:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1a17f5['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 _0x217308 of this['commentsListView']['commentViews'])_0x217308['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x22b8a9}=this,_0x25f11d=this['commentsListView']['commentViews']['get'](0x0);_0x25f11d===this['_boundFirstCommentView']||_0x25f11d['isSystemComment']||(this['_boundFirstCommentView']=_0x25f11d,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x25f11d,'actionIndicator',_0x4662dd=>'remove'===_0x4662dd?'remove':null),_0x25f11d['placeholder']=S(_0x22b8a9,'Write\x20a\x20comment...'),_0x25f11d['removeButton']['on']('execute',_0x1fe454=>{_0x1fe454['stop'](),this['showConfirm'](S(_0x22b8a9,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x25f11d['focus']();}),_0x25f11d['actionBar']['add'](this['resolveButton'],0x0),_0x25f11d['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x936f15=new _0x1ba71(this['locale']);return _0x936f15['label']=S(this['locale'],'Resolve'),_0x936f15['tooltip']=S(this['locale'],'Resolve'),_0x936f15['icon']=_0x2516ac['check'],_0x936f15['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x936f15['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x88a6c9=>!_0x88a6c9),_0x936f15['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x261777,_0x5913ce)=>_0x261777&&!_0x5913ce),_0x936f15['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x936f15;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x36f32f){super(_0x36f32f),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x271bd9,_0x1cc8b4,_0x332323)=>{this['element']['innerHTML']=_0x332323;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x9197c6,_0x4327c3,_0x444096){super(_0x9197c6),this['_model']=_0x4327c3,this['_config']=_0x444096,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x4327c3,'content',_0x4327c3,'authoredAt',(_0x329bce,_0xea8e2d)=>S(_0x9197c6,'COMMENT_ARIA_LABEL',[_0x4327c3['author']['name'],_0x444096['formatDateTime'](_0xea8e2d),new DOMParser()['parseFromString'](_0x329bce,'text/html')['body']['textContent'],_0x4327c3['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x9197c6,S(_0x9197c6,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x150f1d(),this['focusTracker']=new _0x90f2b9(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5676c6=>_0x5676c6['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 _0x41bf8f=new es(this['locale']);return _0x41bf8f['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1f0773,_0x257d4b)=>_0x257d4b?_0x3f847f(_0x1f0773,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1f0773),_0x41bf8f;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x4b708e=new hs(this['locale'],this['_config']['editorConfig']);return _0x4b708e['value']=this['_model']['content'],_0x4b708e['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4b708e['submitLabel']=S(this['locale'],'Save'),_0x4b708e['on']('submit',(_0x56a5cf,_0x39219f)=>{this['fire']('updateComment',this['_model']['id'],_0x39219f),this['switchToDisplayMode'](),this['focus']();}),_0x4b708e['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x4b708e['once']('editorReady',()=>{_0x4b708e['focus']();}),_0x4b708e['createEditor'](),_0x4b708e['delegate']('editorReady')['to'](this),_0x4b708e['delegate']('editorDestroyed')['to'](this),_0x4b708e;}['_setupKeyboardNavigation'](){const _0x11b657=this['element'];this['keystrokes']['listenTo'](_0x11b657);for(const _0x53a211 of this['focusables'])this['focusTracker']['add'](_0x53a211['element']),this['keystrokes']['listenTo'](_0x53a211['element']);this['focusables']['on']('change',(_0x5d862c,_0x369485)=>{for(const _0x481005 of _0x369485['removed'])this['focusTracker']['remove'](_0x481005['element']),this['keystrokes']['stopListening'](_0x481005['element']);for(const _0xc48fe6 of _0x369485['added'])this['focusTracker']['add'](_0xc48fe6['element']),this['keystrokes']['listenTo'](_0xc48fe6['element']);}),this['keystrokes']['set']('enter',(_0x5a8b9d,_0x3be421)=>{_0x11b657===_0x5a8b9d['target']&&(this['focusCycler']['focusFirst'](),_0x3be421());}),this['keystrokes']['set']('esc',(_0x464f2d,_0x3c8e53)=>{_0x11b657!==_0x464f2d['target']&&(this['focus'](),_0x3c8e53());});}}class vt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(os){['actionBar'];['userView'];constructor(_0xa7fe9f,_0x3ec5d7,_0x13fbf5){super(_0xa7fe9f,_0x3ec5d7,_0x13fbf5),this['set']('actionIndicator',null),this['set']('placeholder',S(_0xa7fe9f,'Reply...')),this['bind']('authoredAt')['to'](_0x3ec5d7),this['bind']('resolvedAt')['to'](_0x3ec5d7),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 _0x287a20(_0xa7fe9f,_0x3ec5d7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3ec5d7,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1f7e88=this['bindTemplate'],_0x44bebb=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x1f7e88['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1f7e88['to']('authoredAt',_0x5ef104=>this['_config']['formatDateTime'](_0x5ef104))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x1f7e88['if']('isEditMode','ck-comment__actions--hidden'),_0x1f7e88['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']&&_0x44bebb['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x1f7e88['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x1f7e88['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x1f7e88['if']('isEditMode','ck-comment--edit'),_0x1f7e88['if']('isSystemComment','ck-comment--info'),_0x1f7e88['to']('actionIndicator',_0x1bffa0=>_0x1bffa0?'ck-comment--'+_0x1bffa0:'')],'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':_0x44bebb}]}]};}['_createEditButton'](){const _0x19f9fc=new _0xbee2d6(this['locale']);return _0x19f9fc['label']=S(this['locale'],'Edit'),_0x19f9fc['icon']=_0x2516ac['pencil'],_0x19f9fc['withText']=!0x0,_0x19f9fc['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x19f9fc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5df442=>!_0x5df442),_0x19f9fc['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x19f9fc['on']('execute',()=>this['switchToEditMode']()),_0x19f9fc;}['_createRemoveButton'](){const _0x1d33d0=new _0xbee2d6(this['locale']);return _0x1d33d0['label']=S(this['locale'],'Remove'),_0x1d33d0['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x1d33d0['withText']=!0x0,_0x1d33d0['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x1d33d0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x395d1f=>!_0x395d1f),_0x1d33d0['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x1d33d0['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x1d33d0;}['_createDropdown'](){const _0x5d455c=_0x3ed904(this['locale'],_0x20cfd5),_0x5e45ca=_0x5d455c['panelView']['children'],_0xf2f8ff=new _0x5d06f9(this['locale']),_0x724438=_0x5d455c['bindTemplate'];_0x1acc4d(_0x5d455c,()=>this['items']['find'](_0xac9346=>_0xac9346['isVisible'])),_0x5d455c['extendTemplate']({'attributes':{'class':[_0x724438['if']('isVisible','ck-hidden',_0x442975=>!_0x442975)]}});const _0x28ed88=(_0x260949,_0x3dde24=-0x1)=>{const _0x6333c4=new _0x15ba76(this['locale']);_0x6333c4['children']['add'](_0x260949);const _0x31fbc5=_0x3dde24>-0x1?_0x3dde24:_0xf2f8ff['items']['length'];_0xf2f8ff['items']['add'](_0x6333c4,_0x31fbc5);const _0x1d280b=Array['from'](this['items']);_0x5d455c['unbind']('isEnabled','isVisible'),_0x5d455c['bind']('isEnabled')['toMany'](_0x1d280b,'isEnabled',(..._0x518e40)=>_0x518e40['some'](_0x2c827b=>_0x2c827b)),_0x5d455c['bind']('isVisible')['toMany'](_0x1d280b,'isVisible',(..._0x13a2e4)=>_0x13a2e4['some'](_0xf31c54=>_0xf31c54));};_0x5d455c['panelPosition']='sw',_0x5d455c['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x2516ac['threeVerticalDots']});for(const _0x524dbb of this['items'])_0x28ed88(_0x524dbb);return _0x5e45ca['add'](_0xf2f8ff),_0x5d455c['listenTo'](this['items'],'add',(_0xdbb996,_0x553ddc,_0x4067ac)=>{_0x28ed88(_0x553ddc,_0x4067ac);}),_0x5d455c['listenTo'](this['items'],'remove',(_0x92c621,_0x578f38,_0x46a5a3)=>{_0xf2f8ff['items']['remove'](_0x46a5a3);}),_0x5d455c;}['_attachActions'](_0x24b714,_0x54e7ae){const _0x20e770=_0x24b714&&_0x24b714['element'];_0x20e770&&(this['listenTo'](_0x20e770,'mouseenter',()=>this['actionIndicator']=_0x54e7ae),this['listenTo'](_0x20e770,'focus',()=>this['actionIndicator']=_0x54e7ae),this['listenTo'](_0x20e770,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x20e770,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x397610=super['_createCommentInputView']();return _0x397610['bind']('placeholder')['to'](this),_0x397610;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x3d2765){const _0x1f6d01=bt(_0x3d2765,0x1e),_0x5dfd02=new MutationObserver(_0x5172c9=>{for(const _0x5062bc of _0x5172c9)('attributes'==_0x5062bc['type']&&'class'==_0x5062bc['attributeName']||'childList'==_0x5062bc['type']||'characterData'==_0x5062bc['type'])&&_0x1f6d01();});return{'attach'(_0x3b0f66){_0x5dfd02['observe'](_0x3b0f66,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5dfd02['disconnect'](),_0x1f6d01['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x180e14,_0x3b8ac5){super(_0x180e14),this['id']=_0x4b8453(),this['focusTracker']=new _0x90f2b9(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x5166dc,_0x3cbdba)=>this['fire']('Esc',_0x3cbdba)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x3b8ac5),this['mainView']=_0x3b8ac5;const _0x1202b8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x1202b8['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 _0x454174=this['element']['clientHeight'];_0x454174&&(this['height']=_0x454174);}}class d extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x23b86c(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x24ac0a,target:_0xd61be6,type:_0x108412,isVisible:_0x5bd95a=!0x0}){super(),this['view']=_0x24ac0a,this['view']['element']||this['view']['render'](),this['_type']=_0x108412,this['_target']=_0xd61be6,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x375c29([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x5cff53,_0x2d8aeb)=>{this['view']['focusTracker']['add'](_0x2d8aeb);}),this['focusableElements']['on']('remove',(_0x445f73,_0xd12aa3)=>{this['view']['focusTracker']['remove'](_0xd12aa3);}),this['set']('isVisible',_0x5bd95a);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x56afee=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x56afee),_0x56afee;}get['targetRect'](){const _0x31d865=this['target'];if(null===_0x31d865)return null;if(_0x31d865 instanceof _0x462831)return _0x31d865;const _0x344ddd=_0x31d865['filter'](_0x55ac22=>function(_0x48b424){const _0x3db70c=_0x48b424['offsetParent'];if(_0x3db70c)return!0x0;const _0x35c58f=_0x48b424['getClientRects']()['item'](0x0);return!!_0x35c58f;}(_0x55ac22));return 0x0===_0x344ddd['length']?null:new _0x462831(_0x344ddd[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3d00d2){this['view']['isActive']=_0x3d00d2,this['view']['mainView']['isActive']=_0x3d00d2;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x4c39b6){if(!(null===_0x4c39b6||_0x4c39b6 instanceof _0x462831||Array['isArray'](_0x4c39b6)&&_0x4c39b6['every'](_0x3875ff=>ne(_0x3875ff))))throw new _0x2e3068('annotation-invalid-target',null,{'target':_0x4c39b6});}['_getNormalizedTarget'](){const _0x16c0e4='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x16c0e4)?[_0x16c0e4]:_0x16c0e4;}}function ne(_0xfaf795){return null!==_0xfaf795&&'object'==typeof _0xfaf795&&'nodeType'in _0xfaf795&&0x1===_0xfaf795['nodeType'];}class x extends _0x375c29{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x51e950=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x90f2b9(),this['_focusTracker']['on']('change:isFocused',(_0x41cb11,_0x3e78b0,_0xb15e80)=>{_0xb15e80||this['fire']('blur');});for(const _0x327722 of _0x51e950)this['add'](_0x327722);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x4a1e30){if(this['has'](_0x4a1e30))throw new _0x2e3068('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x4a1e30['innerView'],_0x4a1e30),this['_viewToAnnotation']['set'](_0x4a1e30['view'],_0x4a1e30);for(const _0x52a5e9 of _0x4a1e30['focusableElements'])this['_focusTracker']['add'](_0x52a5e9);this['listenTo'](_0x4a1e30['focusableElements'],'add',(_0x46144e,_0xa85208)=>{this['_focusTracker']['add'](_0xa85208);}),this['listenTo'](_0x4a1e30['focusableElements'],'remove',(_0x2f7165,_0x37aef8)=>{this['_focusTracker']['remove'](_0x37aef8);}),this['listenTo'](_0x4a1e30['view']['focusTracker'],'change:isFocused',(_0x3cc809,_0x2aacdc,_0x589db0)=>{_0x589db0&&this['fire']('focus',_0x4a1e30);}),_0x4a1e30['updateTargetRect']();const _0x39569c=this['_getOrderInContent'](_0x4a1e30['view']['targetRect']);return super['add'](_0x4a1e30,_0x39569c);}['remove'](_0x523a9b){if(!this['has'](_0x523a9b))throw new _0x2e3068('annotationcollection-not-existing-item',null);this['stopListening'](_0x523a9b['view']['focusTracker']),this['stopListening'](_0x523a9b['focusableElements']);for(const _0x577356 of _0x523a9b['focusableElements'])this['_focusTracker']['remove'](_0x577356);return this['_viewToAnnotation']['delete'](_0x523a9b['view']),this['_innerViewToAnnotation']['delete'](_0x523a9b['innerView']),super['remove'](_0x523a9b);}['getByInnerView'](_0xe011a){return this['_innerViewToAnnotation']['get'](_0xe011a);}['getByView'](_0x3b5f02){return this['_viewToAnnotation']['get'](_0x3b5f02);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2bc257 of this)_0x2bc257['updateTargetRect']();this['_sort']();}['_sort'](){const _0x1bc2c6=Array['from'](this)['sort']((_0x1f79f9,_0x4e1871)=>v(_0x1f79f9['view']['targetRect'],_0x4e1871['view']['targetRect']));for(let _0xd0371=_0x1bc2c6['length']-0x1;_0xd0371>0x0;_0xd0371--){const _0x224ee4=_0x1bc2c6[_0xd0371];_0xd0371!==this['getIndex'](_0x224ee4)&&(this['remove'](_0x224ee4),this['add'](_0x224ee4));}}['_getOrderInContent'](_0x26d085){let _0x36350f=0x0;if(!_0x26d085)return this['length'];for(const _0xb87e11 of this){const _0x23cd6d=_0xb87e11['view']['targetRect'];if(_0x23cd6d){if(v(_0x26d085,_0x23cd6d)<0x0)return _0x36350f;_0x36350f++;}}return _0x36350f;}}function v(_0x17ba5f,_0x2a06a8){if(null===_0x17ba5f&&null===_0x2a06a8)return 0x0;if(null===_0x17ba5f)return-0x1;if(null===_0x2a06a8)return 0x1;const _0x19861f=_0x17ba5f['top']-_0x2a06a8['top'];return 0x0==_0x19861f?_0x17ba5f['left']-_0x2a06a8['left']:_0x19861f;}class N extends _0x323088{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e70f4){if(super(_0x4e70f4),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4e70f4 instanceof _0x316bab){const _0x8d6606=_0x4e70f4['locale'];_0x4e70f4['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x8d6606,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x8d6606,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x8d6606,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x8d6606,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x8d6606,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x8d6606,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x8d6606,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x13049b){this['collection']['add'](_0x13049b);}['remove'](_0x5024d8){this['collection']['remove'](_0x5024d8),_0x5024d8['destroy']();}['refreshVisibility'](){for(const _0x4a5c32 of this['collection'])_0x4a5c32['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x167dcf){return this['collection']['getByInnerView'](_0x167dcf);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1be425 of this['collection'])_0x1be425['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x3266a2){this['fire']('_activateAnnotation',_0x3266a2);}['createAnnotation'](_0x38bcc7){return new d(_0x38bcc7);}['createAnnotationView'](_0x3f8f67,_0x26882b){return new T(_0x3f8f67,_0x26882b);}['_addActiveAnnotation'](_0x4a9dcd){const _0x14563c=new Set(this['activeAnnotations']);_0x14563c['add'](_0x4a9dcd),this['activeAnnotations']=_0x14563c;}['_removeActiveAnnotation'](_0x172605){const _0x1c6b82=new Set(this['activeAnnotations']);_0x1c6b82['delete'](_0x172605),this['activeAnnotations']=_0x1c6b82;}['_bindAnnotationsToVisibleAnnotations'](){const _0x921ac7=this['collection'],_0x260b32=this['_visibleAnnotations'];function _0x155d90(_0x5e13a0){const _0xe03657=_0x5e13a0['source'];_0xe03657['isVisible']&&!_0x260b32['has'](_0xe03657)?_0x260b32['add'](_0xe03657):!_0xe03657['isVisible']&&_0x260b32['has'](_0xe03657)&&_0x260b32['remove'](_0xe03657),_0xe03657['view']['focusTracker']['remove'](_0xe03657['view']['element']),_0xe03657['view']['focusTracker']['add'](_0xe03657['view']['element']);}this['listenTo'](_0x921ac7,'add',(_0x4ef6fc,_0x396eb0)=>{_0x396eb0['isVisible']&&_0x260b32['add'](_0x396eb0),this['listenTo'](_0x396eb0,'change:isVisible',_0x155d90);}),this['listenTo'](_0x921ac7,'remove',(_0xa7cd57,_0x541f7c)=>{_0x260b32['has'](_0x541f7c)&&_0x260b32['remove'](_0x541f7c),this['stopListening'](_0x541f7c,'change:isVisible',_0x155d90);});}['_setupEnterAnnotationKeystroke'](){const _0x35745e=_0x4e3d96=>{_0x4e3d96['on']('ready',()=>{_0x4e3d96['keystrokes']['set'](_0x160036,(_0x12d4d6,_0xa3cda5)=>{const _0x1504a5=_0x17dd4b(this['activeAnnotations']['values']());_0x1504a5&&(_0x1504a5['view']['focus'](),_0xa3cda5());});});};this['context']instanceof _0x316bab?_0x35745e(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1eca3b,_0x10256d)=>{_0x35745e(_0x10256d);});}['_setupEscapeAnnotationHandling'](){const _0x42ba32=_0x34ff37=>{const _0x4acacc=_0x34ff37['source'],_0x51551d=[];let _0x53ad21;if(Array['isArray'](_0x4acacc['target'])){_0x53ad21=_0x4acacc['target'][0x0],this['context']instanceof _0x316bab?_0x51551d['push'](this['context']):this['context']['editors']&&_0x51551d['push'](...this['context']['editors']);for(const _0x3b9472 of _0x51551d)for(const _0x979f5b of _0x3b9472['editing']['view']['domRoots']['values']())if(_0x979f5b['contains'](_0x53ad21))return void _0x3b9472['editing']['view']['focus']();_0x53ad21['focus']();}};this['listenTo'](this['collection'],'add',(_0x5147b4,_0xfea922)=>{this['listenTo'](_0xfea922,'escape',_0x42ba32,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x99d06f,_0x27051c)=>{this['stopListening'](_0x27051c,'escape',_0x42ba32);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x323088{['_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(_0x388e12){super(_0x388e12),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0xa3390=this['context']['config'];_0xa3390['define']('comments.maxCommentsWhenCollapsed',0x2),_0xa3390['define']('comments.maxThreadTotalWeight',0x1f4),_0xa3390['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0xa3390['define']('comments.CommentThreadView',Ct),_0xa3390['define']('comments.CommentView',vt),_0xa3390['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x5a9f41=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x16b7c4,_0x301d55)=>this['_addCommentThread'](_0x301d55)),this['on']('submitCommentThread',(_0x3f4276,_0x576dcb)=>this['_submitCommentThread'](_0x576dcb)),this['on']('resolveCommentThread',(_0x1263d3,_0x52d5cf)=>this['_resolveCommentThread'](_0x52d5cf)),this['on']('resolveCommentThread',(_0x335e7d,_0x556e49)=>this['_updateActiveAnnotation'](_0x556e49),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x46ebb8,_0x1b9239)=>this['_reopenCommentThread'](_0x1b9239)),this['on']('reopenCommentThread',(_0xfe496b,_0x5cb8f9)=>this['_updateActiveAnnotation'](_0x5cb8f9),{'priority':'lowest'}),this['on']('removeCommentThread',(_0xfd9a45,_0xbc435e)=>this['_removeCommentThread'](_0xbc435e)),this['on']('updateCommentThread',(_0x521e84,_0x3d1871)=>this['_updateCommentThread'](_0x3d1871)),this['on']('updateCommentThread',(_0x1bf203,_0x8b2813)=>this['_updateActiveAnnotation'](_0x8b2813),{'priority':'lowest'}),this['on']('addComment',(_0x3bfb68,_0x208743)=>this['_addComment'](_0x208743)),this['on']('updateComment',(_0x419b47,_0x527b08)=>this['_updateComment'](_0x527b08)),this['on']('removeComment',(_0x4caacb,_0x5409b8)=>this['_removeComment'](_0x5409b8)),this['on']('addComment',(_0x1e9e99,{threadId:_0x4fc69e,isFromAdapter:_0x19cb49})=>{if(_0x19cb49)return;const _0x44ee43=this['getCommentThread'](_0x4fc69e),_0x5c3286=_0x44ee43&&this['_threadToController']['get'](_0x44ee43);_0x5c3286&&_0x5c3286['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x5a9f41,'change:activeAnnotations',(_0x57682b,_0x328548,_0x30361b)=>{const _0x4752c6=Array['from'](_0x30361b)['map'](_0x4a1626=>this['_viewToController']['get'](_0x4a1626['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x4752c6?_0x4752c6['model']:null;});}set['adapter'](_0x179191){if(this['_adapter'])throw new _0x2e3068('commentsrepository-adapter-already-set');this['_adapter']=_0x179191;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4c70fe=gt,threadId:_0x5ad62d=_0x4b8453(),comments:_0x2e505a=[],unlinkedAt:_0x1617f1=null,resolvedAt:_0x5dc887=null,resolvedBy:_0x69ab8d=null,target:_0x4dd260=null,context:_0x4e86fe=null,attributes:_0x235247={},isResolvable:_0x315a71=!0x0,isSubmitted:_0x76eb4d=!0x1,isFromAdapter:_0x464399=!0x1}={}){return this['fire'](_t('addCommentThread',_0x4c70fe),{'channelId':_0x4c70fe,'threadId':_0x5ad62d,'comments':_0x2e505a,'unlinkedAt':_0x1617f1,'resolvedAt':_0x5dc887,'resolvedBy':_0x69ab8d,'target':_0x4dd260,'context':_0x4e86fe,'attributes':_0x235247,'isFromAdapter':_0x464399,'isResolvable':_0x315a71,'isSubmitted':_0x76eb4d}),this['getCommentThread'](_0x5ad62d);}['openNewCommentThread']({channelId:_0x4fa27b=gt,threadId:_0xdd467d=_0x4b8453(),target:_0x3e5348,context:_0x31b71e=null,isResolvable:_0x3350cb=!0x0}){if(this['_readOnlyChannels']['has'](_0x4fa27b)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x3e5348)throw new _0x2e3068('commentsrepository-missing-target');const _0x4e558c=this['addCommentThread']({'channelId':_0x4fa27b,'threadId':_0xdd467d,'target':_0x3e5348,'context':_0x31b71e,'isResolvable':_0x3350cb});if(!_0x4e558c)return null;const _0x1efa9a=this['_threadToController']['get'](_0x4e558c),_0xa534ac=_0x1efa9a['view']['commentThreadInputView']['commentInputView'],_0x2cd080=this['context']['plugins']['get'](N),_0x5d7e0b=_0x2cd080['getByInnerView'](_0x1efa9a['view']);return _0x2cd080['activate'](_0x5d7e0b),_0xa534ac['once']('editorReady',()=>_0xa534ac['focus']()),_0x4e558c;}['hasCommentThread'](_0xa64ea7){if('string'!=typeof _0xa64ea7)throw new _0x2e3068('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0xa64ea7);}['updateCommentThread']({channelId:_0x256d50=gt,threadId:_0xcab328,context:_0xa9e45b,unlinkedAt:_0x1a1b42,attributes:_0x104ac4,isFromAdapter:_0x49fceb=!0x1}){return this['fire'](_t('updateCommentThread',_0x256d50),{'channelId':_0x256d50,'threadId':_0xcab328,'context':_0xa9e45b,'unlinkedAt':_0x1a1b42,'attributes':_0x104ac4,'isFromAdapter':_0x49fceb}),this['getCommentThread'](_0xcab328);}['getCommentThread'](_0x2da914){if('string'!=typeof _0x2da914)throw new _0x2e3068('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2da914);}['fetchCommentThread']({channelId:_0x248369,threadId:_0xde0644}={}){const _0x439356=this['getCommentThread'](_0xde0644);if(_0x439356)return Promise['resolve'](_0x439356);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2e3068('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x248369,'threadId':_0xde0644})['then'](_0x14a239=>this['hasCommentThread'](_0xde0644)?this['getCommentThread'](_0xde0644):_0x14a239?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x248369},_0x14a239)):void 0x0)['catch'](_0x53f450=>{throw console['error'](_0x53f450),new _0x2e3068('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5d505b,skipNotAttached:_0x1edef8=!0x1,skipEmpty:_0x2556cc=!0x1,toJSON:_0x25da0f=!0x1}={}){const _0x52c247=[];for(const _0x47b10c of this['_threads']['values']())_0x5d505b&&_0x47b10c['channelId']!==_0x5d505b||_0x1edef8&&!_0x47b10c['isAttached']||_0x2556cc&&0x0===_0x47b10c['length']||_0x52c247['push'](_0x47b10c);return _0x25da0f?_0x52c247['map'](_0x168e41=>_0x168e41['toJSON']()):_0x52c247;}['setActiveCommentThread'](_0x393969){const _0x4a2bc9=this['context']['plugins']['get'](N);if(!_0x393969)return void(this['activeCommentThread']&&_0x4a2bc9['deactivateAll']());const _0x51e73d=this['getCommentThread'](_0x393969);if(!_0x51e73d)throw new _0x2e3068('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x393969});if(!this['_threadToController']['has'](_0x51e73d))throw new _0x2e3068('commentsrepository-active-not-attached',null,{'threadId':_0x393969});const _0x3d1bab=_0x4a2bc9['getByInnerView'](this['_threadToController']['get'](_0x51e73d)['view']);_0x4a2bc9['activate'](_0x3d1bab);}['switchReadOnly'](_0x317090,_0x5812f1){_0x317090?this['_readOnlyChannels']['add'](_0x5812f1):this['_readOnlyChannels']['delete'](_0x5812f1),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x5f48a7){return this['_readOnlyChannels']['has'](_0x5f48a7)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x110b17,_0x1f15dd){return new yt(_0x110b17,_0x1f15dd);}['setPermissions'](_0xa428bd,_0x382958=gt){this['_permissions']['set'](_0x382958,_0xa428bd),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x10f1ea=gt){return this['_permissions']['has'](_0x10f1ea)?this['_permissions']['get'](_0x10f1ea):Tt;}['_addCommentThread']({channelId:_0x388931,threadId:_0x49a831,comments:_0x31b24d,unlinkedAt:_0x5da151,resolvedAt:_0x459408,resolvedBy:_0x2eb0c1,target:_0x4ea50c,context:_0x335335,attributes:_0x36b925,isFromAdapter:_0x585391,isResolvable:_0x3d2900,isSubmitted:_0x31de89}){if('string'!=typeof _0x49a831)throw new _0x2e3068('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x49a831});if(this['hasCommentThread'](_0x49a831))throw new _0x2e3068('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x49a831});const _0x165a1e=new oe(this,{'channelId':_0x388931,'id':_0x49a831,'context':_0x335335,'attributes':_0x36b925,'unlinkedAt':_0x5da151,'resolvedAt':_0x459408,'resolvedBy':_0x2eb0c1?this['context']['plugins']['get'](it)['getUser'](_0x2eb0c1):null,'isResolvable':_0x3d2900,'isSubmitted':_0x31de89||_0x585391});this['_threads']['set'](_0x49a831,_0x165a1e);for(const _0x1cf064 of _0x31b24d)_0x165a1e['_add'](this['_createNewComment']({'threadId':_0x49a831,..._0x1cf064}));return _0x4ea50c&&_0x165a1e['attachTo'](_0x4ea50c),_0x585391||!_0x165a1e['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x388931,'threadId':_0x49a831});}['_submitCommentThread']({channelId:_0x2a9512,threadId:_0xb37ead}){if(!this['hasCommentThread'](_0xb37ead))throw new _0x2e3068('commentsrepository-missing-comment-thread',this);const _0x318df4=this['getCommentThread'](_0xb37ead);if(_0x318df4['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x53cb14,comments:_0x40b9f3,resolvedAt:_0x12feb8,resolvedBy:_0x35e306,context:_0x61cf9e,attributes:_0x484d3a}=_0x318df4,_0x2e6e53=this['context']['plugins']['get']('PendingActions'),_0x113cc2=_0x2e6e53['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x2a9512,'threadId':_0x53cb14,'comments':_0x40b9f3['map'](_0x14b0ae=>_0x14b0ae['toJSON']()),'resolvedAt':_0x12feb8,'resolvedBy':_0x35e306?_0x35e306['id']:_0x35e306,'context':_0x61cf9e,'attributes':_0x484d3a})['then'](({comments:_0x38a18e})=>{_0x2e6e53['remove'](_0x113cc2);for(const _0x4d4d9c of _0x38a18e)this['_updateComment']({'channelId':_0x2a9512,'threadId':_0xb37ead,'commentId':_0x4d4d9c['commentId'],'createdAt':_0x4d4d9c['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1c3e43=>{throw console['error'](_0x1c3e43),new _0x2e3068('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x51156c,target:_0x5a4a07}){const _0x26afcd=this['getCommentThread'](_0x51156c);if(!_0x26afcd)throw new _0x2e3068('commentsrepository-attach-missing-comment-thread',this);const _0x43dd26=this['context']['plugins']['get']('PendingActions'),_0x311cba=this['context']['plugins']['get'](N),_0x4d3ba3=this['_createCommentThreadView'](_0x26afcd),_0x54cd74=new yt(_0x26afcd,_0x4d3ba3);let _0x577ebd=null;_0x4d3ba3['on']('change:isDirty',(_0x559ea9,_0x4be162,_0x2b7b25)=>{_0x2b7b25?_0x577ebd=_0x43dd26['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x577ebd&&(_0x43dd26['remove'](_0x577ebd),_0x577ebd=null);}),this['_threadToController']['set'](_0x26afcd,_0x54cd74),this['_viewToController']['set'](_0x4d3ba3,_0x54cd74);const _0x40fa7d=new T(this['context']['locale'],_0x4d3ba3);_0x40fa7d['bind']('length')['to'](_0x4d3ba3),_0x40fa7d['bind']('isDirty')['to'](_0x4d3ba3,'isDirty',_0x4d3ba3,'length',(_0x27285e,_0x50f5d8)=>_0x27285e||!_0x50f5d8),_0x40fa7d['bind']('isActive')['to'](_0x4d3ba3),_0x40fa7d['type']='comment';const _0x3ebb68=new d({'view':_0x40fa7d,'target':_0x5a4a07,'type':'comment','isVisible':!_0x26afcd['isResolved']});return _0x4d3ba3['on']('escape',()=>{_0x3ebb68['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4d3ba3,_0x3ebb68),_0x311cba['add'](_0x3ebb68),_0x3ebb68;}['_bindAnnotationToEditors'](_0x3dc3bd,_0x361c13){this['listenTo'](_0x3dc3bd,'editorReady',(_0x48275c,_0x1c166c)=>{const _0x167c1a=_0x1c166c['ui']['view']['body']['bodyCollectionContainer'];_0x361c13['focusableElements']['add'](_0x167c1a),this['context']instanceof _0x316bab&&this['context']['ui']['focusTracker']['add'](_0x167c1a);},{'priority':'highest'}),this['listenTo'](_0x3dc3bd,'editorDestroyed',(_0x1b95cf,_0x5c31fa)=>{const _0x4b7643=_0x5c31fa['ui']['view']['body']['bodyCollectionContainer'];_0x361c13['focusableElements']['has'](_0x4b7643)&&_0x361c13['focusableElements']['remove'](_0x4b7643),this['context']instanceof _0x316bab&&this['context']['ui']['focusTracker']['remove'](_0x4b7643);});}['_unbindEditors'](_0x251bca){this['stopListening'](_0x251bca,'editorReady'),this['stopListening'](_0x251bca,'editorDestroyed');}['_createCommentThreadView'](_0x353075){const _0x52f3e1=this['context']['plugins']['get'](it),{config:_0x5c11dc,locale:_0xf2b57}=this['context'],_0x246f99=mt(_0x5c11dc['get']('locale'));return new(0x0,(_0x5c11dc['get']('comments'))['CommentThreadView'])(_0xf2b57,_0x353075,_0x52f3e1['me'],{'editorConfig':{..._0x5c11dc['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x5c11dc['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x5c11dc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5c11dc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5c11dc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x246f99,'CommentView':_0x5c11dc['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5b58ad,channelId:_0x463e67,resolvedAt:_0x5df324,resolvedBy:_0x1adfdc,isFromAdapter:_0x2428d2}){if(!this['hasCommentThread'](_0x5b58ad))throw new _0x2e3068('commentsrepository-missing-comment-thread',null,{'threadId':_0x5b58ad});const _0x4a20fa=this['getCommentThread'](_0x5b58ad);if(_0x4a20fa['isResolved'])throw new _0x2e3068('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5b58ad});const _0x347a46=this['context']['plugins']['get'](it);if(_0x4a20fa['resolvedBy']=_0x347a46['getUser'](_0x1adfdc),_0x4a20fa['resolvedAt']=_0x5df324,_0x2428d2||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x2a5c34=this['context']['plugins']['get']('PendingActions'),_0x58b6fa=_0x2a5c34['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x463e67,'threadId':_0x5b58ad})['then'](({resolvedAt:_0x58821c,resolvedBy:_0x14378b})=>{_0x2a5c34['remove'](_0x58b6fa),_0x4a20fa['resolvedBy']['id']!==_0x14378b&&(_0x4a20fa['resolvedBy']=_0x347a46['getUser'](_0x14378b)),_0x4a20fa['resolvedAt']=_0x58821c;})['catch'](_0xc85326=>{throw console['error'](_0xc85326),new _0x2e3068('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x510377,channelId:_0x2cd543,isFromAdapter:_0x4b3c52}){if(!this['hasCommentThread'](_0x510377))throw new _0x2e3068('commentsrepository-missing-comment-thread',null,{'threadId':_0x510377});const _0x54a922=this['getCommentThread'](_0x510377);if(!_0x54a922['isResolved'])throw new _0x2e3068('commentsrepository-reopen-comment-thread',null,{'threadId':_0x510377});if(_0x54a922['resolvedBy']=null,_0x54a922['resolvedAt']=null,_0x4b3c52||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x38cec4=this['context']['plugins']['get']('PendingActions'),_0x3744fb=_0x38cec4['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x2cd543,'threadId':_0x510377})['then'](()=>_0x38cec4['remove'](_0x3744fb))['catch'](_0x4f455a=>{throw console['error'](_0x4f455a),new _0x2e3068('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x1314c0,isFromAdapter:_0x148aa6}){const _0xa55a1a=this['getCommentThread'](_0x1314c0);if(!_0xa55a1a)throw new _0x2e3068('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x1314c0),this['_threads']['delete'](_0x1314c0),!_0xa55a1a['isSubmitted']||_0x148aa6||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5e9057=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5c8b25}=_0xa55a1a,_0x579981=_0x5e9057['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x5c8b25,'threadId':_0x1314c0})['then'](()=>_0x5e9057['remove'](_0x579981))['catch'](_0x27d373=>{throw console['error'](_0x27d373),new _0x2e3068('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0xe1a114,unlinkedAt:_0x5d3996,context:_0x42fc9a,attributes:_0x584cbe,isFromAdapter:_0x38e064}){if('string'!=typeof _0xe1a114)throw new _0x2e3068('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xe1a114});if(!this['hasCommentThread'](_0xe1a114))throw new _0x2e3068('commentsrepository-missing-comment-thread',null,{'threadId':_0xe1a114});const _0x21474c=this['getCommentThread'](_0xe1a114);let _0x5e75c2=!0x1;if(void 0x0!==_0x42fc9a&&_0x21474c['context']!==_0x42fc9a&&(_0x21474c['context']=_0x42fc9a,_0x5e75c2=!0x0),void 0x0!==_0x5d3996&&_0x21474c['unlinkedAt']!==_0x5d3996&&(_0x21474c['unlinkedAt']=_0x5d3996,_0x5e75c2=!0x0),_0x584cbe&&!It(_0x584cbe,_0x21474c['attributes'])&&(_0x21474c['attributes']=_0x584cbe,_0x5e75c2=!0x0),!_0x5e75c2)return Promise['resolve']();if(!_0x21474c['isSubmitted']||_0x38e064||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x17bea7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5010ef}=_0x21474c,_0x4e174b=_0x17bea7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x5010ef,'threadId':_0xe1a114,'context':_0x42fc9a,'unlinkedAt':_0x5d3996,'attributes':_0x584cbe})['then'](()=>_0x17bea7['remove'](_0x4e174b))['catch'](_0x4c3f8a=>{throw console['error'](_0x4c3f8a),new _0x2e3068('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x2c5056){const _0x399f69=this['context']['plugins']['get'](N),_0x469b23=this['getCommentThread'](_0x2c5056);if(this['_threadToController']['has'](_0x469b23)){const _0x7e3d7b=this['_threadToController']['get'](_0x469b23),_0x950c88=_0x7e3d7b['view'],_0x39f879=_0x399f69['getByInnerView'](_0x950c88);this['_threadToController']['delete'](_0x469b23),this['_viewToController']['delete'](_0x950c88),_0x39f879&&_0x399f69['remove'](_0x39f879),_0x7e3d7b['destroy'](),_0x950c88['destroy']()['then'](()=>{this['_unbindEditors'](_0x950c88);});}}['_updateActiveAnnotation']({threadId:_0x19be13,resolvedAt:_0x33c70d}){const _0x154555=!!_0x33c70d,_0x57d162=this['context']['plugins']['get'](N),_0x31da83=this['getCommentThread'](_0x19be13);if(this['_threadToController']['has'](_0x31da83)){const _0x5bf145=this['_threadToController']['get'](_0x31da83)['view'],_0x30bd36=_0x57d162['getByInnerView'](_0x5bf145);_0x30bd36&&(_0x154555&&_0x57d162['_removeActiveAnnotation'](_0x30bd36),_0x30bd36['refreshVisibility']());}}['_getExternalAuthor'](_0x39bce8){const _0x58117a=this['context']['plugins']['get'](it),_0x3e450f=lt('external:'+_0x39bce8),_0x77df8a=_0x58117a['getUser'](_0x3e450f);return _0x77df8a||_0x58117a['addUser']({'id':_0x3e450f,'name':_0x39bce8});}['_createNewComment']({threadId:_0xd37d10,commentId:_0x3ab344=_0x4b8453(),content:_0x516fd7,authorId:_0x2c63ae,createdAt:_0x4822f0,attributes:_0x321e0c}){if('string'!=typeof _0x3ab344)throw new _0x2e3068('commentsrepository-invalid-commentid');if('string'!=typeof _0x2c63ae)throw new _0x2e3068('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x516fd7||!_0x516fd7['trim']())throw new _0x2e3068('commentsrepository-invalid-comment-content');const _0x52117b=this['context']['plugins']['get'](it)['getUser'](_0x2c63ae);if(!_0x52117b)throw new _0x2e3068('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x2c63ae});let _0x3fd3e7=null,_0x576aef=_0x4822f0;return _0x321e0c&&_0x321e0c['@external']&&(_0x3fd3e7=this['_getExternalAuthor'](_0x321e0c['@external']['authorName']),_0x576aef=new Date(_0x321e0c['@external']['createdAt'])),new re(this,{'threadId':_0xd37d10,'id':_0x3ab344,'author':_0x3fd3e7||_0x52117b,'creator':_0x52117b,'content':_0x516fd7,'createdAt':_0x4822f0,'authoredAt':_0x576aef,'attributes':_0x321e0c});}['_addComment'](_0xf2c7de){let {threadId:_0x19e223,content:_0x397d7b,attributes:_0xfa1ebd,isFromAdapter:_0x3f03e8}=_0xf2c7de;const _0x369f8b=this['getCommentThread'](_0xf2c7de['threadId']);if(!_0x369f8b)throw new _0x2e3068('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x334b73=this['_createNewComment'](_0xf2c7de),{id:_0x53075f}=_0x334b73;if(_0x369f8b['_add'](_0x334b73),_0x3f03e8||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x369f8b['isSubmitted'])return Promise['resolve']();const _0x475a7c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x35b415}=_0x369f8b,_0x174333=_0x475a7c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0xfa1ebd||(_0xfa1ebd={}),this['adapter']['addComment']({'channelId':_0x35b415,'threadId':_0x19e223,'commentId':_0x53075f,'content':_0x397d7b,'attributes':_0xfa1ebd})['then'](_0xdb94a0=>{_0x475a7c['remove'](_0x174333),_0xdb94a0&&this['_updateComment']({'channelId':_0x35b415,'threadId':_0x19e223,'commentId':_0x53075f,'createdAt':_0xdb94a0['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3b7c8c=>{throw console['error'](_0x3b7c8c),new _0x2e3068('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x175b6f,commentId:_0x471105,content:_0x56565f,createdAt:_0x278e50,attributes:_0x373c9f,isFromAdapter:_0xb7ac52}){if(void 0x0!==_0x56565f&&('string'!=typeof _0x56565f||!_0x56565f['trim']()['length']))throw new _0x2e3068('commentsrepository-update-comment-invalid-content');const _0x8435b9=this['getCommentThread'](_0x175b6f),_0x1eeb5b=_0x8435b9['getComment'](_0x471105);if(!_0x1eeb5b)throw new _0x2e3068('commentsrepository-update-missing-comment',this);let _0x14a1ba=!0x1;if(_0x56565f&&_0x56565f!==_0x1eeb5b['content']&&(_0x1eeb5b['isEditable']||_0xb7ac52)&&(_0x1eeb5b['content']=_0x56565f,_0x14a1ba=!0x0),_0x278e50&&_0x278e50!==_0x1eeb5b['createdAt']&&(_0x1eeb5b['createdAt']=_0x278e50,_0x1eeb5b['attributes']&&_0x1eeb5b['attributes']['@external']||(_0x1eeb5b['authoredAt']=_0x278e50),_0x14a1ba=!0x0),_0x373c9f&&!It(_0x373c9f,_0x1eeb5b['attributes'])&&(_0x1eeb5b['attributes']=_0x373c9f,_0x14a1ba=!0x0),!_0x14a1ba)return Promise['resolve']();if(_0x8435b9['fire']('commentUpdated'),_0xb7ac52||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x5c04b2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x36b65b}=this['getCommentThread'](_0x1eeb5b['threadId']),_0x1cfc8e=_0x5c04b2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x36b65b,'threadId':_0x175b6f,'commentId':_0x471105,'content':_0x56565f,'attributes':_0x373c9f})['then'](()=>_0x5c04b2['remove'](_0x1cfc8e))['catch'](_0x3f721a=>{throw console['error'](_0x3f721a),new _0x2e3068('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x77acd9,commentId:_0x1b96df,isFromAdapter:_0xb96f43}){const _0x350d6f=this['getCommentThread'](_0x77acd9),_0x76c24=_0x350d6f['getComment'](_0x1b96df);if(!_0x76c24)throw new _0x2e3068('commentsrepository-remove-missing-comment',this);if(_0x350d6f['_remove'](_0x76c24),_0xb96f43||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0xca0ccf=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2106ab}=_0x350d6f,_0x6b54e8=_0xca0ccf['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2106ab,'threadId':_0x77acd9,'commentId':_0x1b96df})['then'](()=>_0xca0ccf['remove'](_0x6b54e8))['catch'](_0xa1066e=>{throw console['error'](_0xa1066e),new _0x2e3068('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x23b86c(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x28143f,_0x3c93e7){super();const _0x3a4e3b=_0x3c93e7['isResolvable'];this['channelId']=_0x3c93e7['channelId'],this['id']=_0x3c93e7['id'],this['comments']=new _0x375c29(),this['_repository']=_0x28143f,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3c93e7['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x28143f,'_permissions',_0x28143f,'_readOnlyChannels',()=>_0x28143f['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x28143f,'_permissions',()=>_0x28143f['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x28143f,'_permissions',()=>{const _0x1e47c9=_0x28143f['getPermissions'](this['channelId']);return _0x1e47c9['write']||_0x1e47c9['admin'];}),this['bind']('isResolvable')['to'](_0x28143f,'_permissions',()=>_0x3a4e3b&&_0x28143f['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3c93e7['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x44b5b3,_0x517cb8)=>_0x44b5b3?_0x517cb8?_0x44b5b3<_0x517cb8?_0x44b5b3:_0x517cb8:_0x44b5b3:_0x517cb8),this['set']('unlinkedAt',_0x3c93e7['unlinkedAt']||null),this['set']('resolvedAt',_0x3c93e7['resolvedAt']||null),this['set']('resolvedBy',_0x3c93e7['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x307066=>!!_0x307066),this['set']('attributes',_0x3c93e7['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x21842c,_0x2502ee)=>_0x21842c+_0x2502ee['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0xf2a5f9,id:_0x234ae9}=this;this['_repository']['fire'](_t('submitCommentThread',_0xf2a5f9),{'channelId':_0xf2a5f9,'threadId':_0x234ae9});}['setUnlinkedAt'](_0x1bc807){this['_update']({'unlinkedAt':_0x1bc807});}['resolve']({resolvedAt:_0xec54f2=new Date(),resolvedBy:_0x46299b=null,isFromAdapter:_0x15ad02=!0x1}={}){const _0x119dc4=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x2e2b45,id:_0xcf1aed}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x2e2b45),{'channelId':_0x2e2b45,'threadId':_0xcf1aed,'resolvedAt':_0xec54f2,'resolvedBy':_0x46299b||_0x119dc4['id'],'isFromAdapter':_0x15ad02});}['reopen']({isFromAdapter:_0x1c2972=!0x1}={}){const {channelId:_0x21d5db,id:_0x1f4394}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x21d5db),{'channelId':_0x21d5db,'threadId':_0x1f4394,'isFromAdapter':_0x1c2972});}['setContext'](_0x5819fa){this['context']||this['_update']({'context':_0x5819fa});}['setAttribute'](_0x23dd6c,_0xa6bfa8){const _0x682058=pt(this['attributes']);wt(_0x682058,_0x23dd6c,_0xa6bfa8),this['_update']({'attributes':_0x682058});}['removeAttribute'](_0xc5c423){const _0x736618=pt(this['attributes']);At(_0x736618,_0xc5c423),this['_update']({'attributes':_0x736618});}['remove']({isFromAdapter:_0x16ff73=!0x1}={}){const {channelId:_0x37c82b,id:_0x387b02}=this;this['_repository']['fire'](_t('removeCommentThread',_0x37c82b),{'channelId':_0x37c82b,'threadId':_0x387b02,'isFromAdapter':_0x16ff73});}['attachTo'](_0x51ccf0){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x51ccf0});}['addComment'](_0xda3964){const {channelId:_0x34c6fe,id:_0x2bc562}=this;this['_repository']['fire'](_t('addComment',_0x34c6fe,_0x2bc562),Object['assign']({'channelId':_0x34c6fe,'threadId':_0x2bc562},_0xda3964));}['getComment'](_0x2905f2){if('string'!=typeof _0x2905f2)throw new _0x2e3068('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2905f2});return this['comments']['get'](_0x2905f2);}['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'](_0x2e25c9=>_0x2e25c9['toJSON']()),'attributes':this['attributes']};}['_add'](_0x110555){return this['listenTo'](_0x110555,'change:authoredAt',()=>{const _0x421664=this['_findOptimalIndex'](_0x110555),_0x5f34a8=this['comments'];_0x421664-0x1!=_0x5f34a8['getIndex'](_0x110555)&&_0x421664+0x1!=_0x5f34a8['getIndex'](_0x110555)&&(this['_remove'](_0x110555),this['_add'](_0x110555));}),this['comments']['add'](_0x110555,this['_findOptimalIndex'](_0x110555));}['_update'](_0x413aee){const {channelId:_0x4ce77b,id:_0x251868}=this;this['_repository']['fire'](_t('updateCommentThread',_0x4ce77b),{..._0x413aee,'channelId':_0x4ce77b,'threadId':_0x251868});}['_remove'](_0x79a226){return this['stopListening'](_0x79a226),_0x79a226['destroy'](),this['comments']['remove'](_0x79a226);}['_findOptimalIndex'](_0x3b0ec0){const _0x3a9a52=this['comments']['find'](_0x339458=>new Date(_0x339458['authoredAt'])['getTime']()>new Date(_0x3b0ec0['authoredAt'])['getTime']());return _0x3a9a52?this['comments']['getIndex'](_0x3a9a52):this['length'];}}class re extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x23b86c(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0xfbb2f2,_0x4e0c19){super();const _0x164cf5=_0xfbb2f2['context']['plugins']['get'](it)['me'],_0x5d7e49=_0xfbb2f2['getCommentThread'](_0x4e0c19['threadId']),_0x25723b=0x0===_0x5d7e49['comments']['length'],_0x57fd2d=_0x164cf5===_0x4e0c19['author'];this['id']=_0x4e0c19['id'],this['threadId']=_0x4e0c19['threadId'],this['author']=_0x4e0c19['author'],this['creator']=_0x4e0c19['creator'],this['isExternal']=Boolean(_0x4e0c19['attributes']&&_0x4e0c19['attributes']['@external']),this['set']('content',_0x4e0c19['content']),this['createdAt']=_0x4e0c19['createdAt']||new Date(),this['set']('authoredAt',_0x4e0c19['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5d7e49,'resolvedAt'),this['set']('attributes',_0x4e0c19['attributes']||{}),this['bind']('isEditable')['to'](_0xfbb2f2,'_permissions',()=>{const _0x1c296d=_0xfbb2f2['getPermissions'](_0x5d7e49['channelId'])['write'],_0x156cd3=_0xfbb2f2['getPermissions'](_0x5d7e49['channelId'])['modifyAll'];return _0x57fd2d&&_0x1c296d||!_0x57fd2d&&_0x156cd3;}),this['bind']('isRemovable')['to'](_0x5d7e49,'isRemovable',_0xfbb2f2,'_permissions',_0xa83e37=>{const _0x1be988=_0xfbb2f2['getPermissions'](_0x5d7e49['channelId'])['write'],_0x222042=_0xfbb2f2['getPermissions'](_0x5d7e49['channelId'])['modifyAll'];return _0x57fd2d&&_0x1be988||_0xa83e37&&_0x25723b||!_0x57fd2d&&_0x222042&&!_0x25723b;}),this['bind']('isReadOnly')['to'](_0x5d7e49,'isReadOnly'),this['_repository']=_0xfbb2f2;}get['weight'](){return Math['max'](function(_0x1624db){const _0x49d8c4=document['createElement']('div');return _0x49d8c4['innerHTML']=_0x1624db,_0x49d8c4['textContent']['length'];}(this['content']),0xc8);}['update'](_0x51e3a9){const {threadId:_0x4665a4,id:_0x33f54a}=this;if(!this['_repository']['hasCommentThread'](_0x4665a4))throw new _0x2e3068('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4cded9}=this['_repository']['getCommentThread'](_0x4665a4);this['_repository']['fire'](_t('updateComment',_0x4cded9,_0x4665a4),{'channelId':_0x4cded9,'threadId':_0x4665a4,'commentId':_0x33f54a,..._0x51e3a9});}['setAttribute'](_0x350af7,_0x37941a){const _0xfe48b9=pt(this['attributes']);wt(_0xfe48b9,_0x350af7,_0x37941a),this['update']({'attributes':_0xfe48b9});}['removeAttribute'](_0x43925d){const _0x1c7018=pt(this['attributes']);At(_0x1c7018,_0x43925d),this['update']({'attributes':_0x1c7018});}['remove'](_0x1baa6b={}){if(!_0x1baa6b['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x3c120f,id:_0x2b69c9}=this;if(!this['_repository']['hasCommentThread'](_0x3c120f))throw new _0x2e3068('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x5244b5}=this['_repository']['getCommentThread'](_0x3c120f);this['_repository']['fire'](_t('removeComment',_0x5244b5,_0x3c120f),{'channelId':_0x5244b5,'threadId':_0x3c120f,'commentId':_0x2b69c9,..._0x1baa6b});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x3dbbc7,..._0x4ed24d){for(const _0x4e8526 of _0x4ed24d)void 0x0!==_0x4e8526&&(_0x3dbbc7+=':'+String(_0x4e8526));return _0x3dbbc7;}class J extends _0x3f3719{['refresh'](){const _0x5d2f3a=this['editor']['model']['document']['selection'];for(const _0x802d86 of _0x5d2f3a['getRanges']())if(this['_hasContent'](_0x802d86))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x385afd=_0x4b8453()}={}){const _0x325e0e=this['editor']['model'],_0x1331b5=[];for(const _0x2ae90e of _0x325e0e['document']['selection']['getRanges']())this['_hasContent'](_0x2ae90e)&&_0x1331b5['push'](this['_trimToContent'](_0x2ae90e));_0x325e0e['change'](_0x26a3d7=>{for(const _0x41f5e0 of _0x1331b5){const _0x1946b6=_0x4b8453()['substr'](0x1,0x5),_0x57c84='comment:'+_0x385afd+':'+_0x1946b6;_0x26a3d7['addMarker'](_0x57c84,{'range':_0x41f5e0,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x5c8267){for(const _0x13f0a1 of _0x5c8267['getItems']())if(this['_itemIsContent'](_0x13f0a1))return!0x0;return!0x1;}['_itemIsContent'](_0x5566b3){return _0x5566b3['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5566b3)&&!_0x5566b3['is']('element','tableCell');}['_trimToContent'](_0x561c06){const _0x1f9a76=_0x138c5c=>!this['_itemIsContent'](_0x138c5c['item']),_0x428174=_0x561c06['start']['getLastMatchingPosition'](_0x1f9a76),_0x260553=_0x561c06['end']['getLastMatchingPosition'](_0x1f9a76,{'direction':'backward'});return this['editor']['model']['createRange'](_0x428174,_0x260553);}}class P extends _0x37624c{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38e762){super(_0x38e762),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x1557f7=this['editor'],_0x1dd476=_0x1557f7['model']['document']['selection'],_0x5b68e0=_0x257b89(()=>this['refreshSelectedViews'](),0xa);_0x1dd476['on']('change:range',(_0x2adebf,_0x528b7d)=>{_0x528b7d['directChange']&&(_0x5b68e0['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x1557f7['editing']['view']['document'],'change:isFocused',(_0x4ba91f,_0x1cfb1d,_0x4f54bc)=>{_0x4f54bc&&_0x5b68e0();}),this['listenTo'](_0x1557f7['ui']['focusTracker'],'change:isFocused',(_0x5c9bfc,_0x1886a8,_0x155098)=>{_0x155098||_0x1557f7['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x1ae6a0=>this['_editorAnnotationsData']['has'](_0x1ae6a0['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x169d3d){if(this['_editorAnnotations']['has'](_0x169d3d['view']))return;this['_editorAnnotations']['add'](_0x169d3d['view']),this['editor']['ui']['focusTracker']['add'](_0x169d3d['view']['element']);const _0x32d02d=this['editor']['plugins']['get'](N);this['listenTo'](_0x32d02d['collection'],'remove',(_0x4bd803,_0x10c9fb)=>{this['editor']['ui']['focusTracker']['remove'](_0x10c9fb['view']['element']),this['_editorAnnotations']['delete'](_0x10c9fb['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x11a8ab){if('function'!=typeof _0x11a8ab)throw new _0x2e3068('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x11a8ab);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1603c2,annotations:_0x280c7f}){const _0x103e19=[],_0x3ffba7=this['editor']['model']['document']['selection'],_0x280d3c=Array['from'](_0x3ffba7['getRanges']());for(const [_0x4c3d30,_0xbdd3f9]of this['_editorAnnotationsData']){const _0x538846=_0x1f575a(_0xbdd3f9),_0xdd5c37=_0x280c7f['getByInnerView'](_0x4c3d30);_0x538846&&_0xdd5c37&&_0x103e19['push']({'annotation':_0xdd5c37,'range':_0x538846});}function _0x1f575a(_0x3452ed){for(const _0x2d1143 of _0x3452ed)for(const _0x5a7373 of _0x280d3c)if(_0x2d1143['containsRange'](_0x5a7373,!_0x3ffba7['isCollapsed']))return _0x2d1143;return null;}return _0x103e19['sort']((_0x324777,_0x27a00c)=>{const _0x2692e4=_0x324777['range'],_0x347ed6=_0x27a00c['range'];if(!_0x2692e4['isEqual'](_0x347ed6)){if(_0x2692e4['containsRange'](_0x347ed6,!0x0))return 0x1;if(_0x347ed6['containsRange'](_0x2692e4,!0x0))return-0x1;}return _0x324777['annotation']==_0x1603c2?-0x1:_0x27a00c['annotation']==_0x1603c2?0x1:0x0;})['map'](_0x3d5418=>_0x3d5418['annotation']);}get['_editorAnnotationsData'](){const _0x5677a0=new Map();for(const _0x5a6941 of Array['from'](this['_dataCollectors']))for(const [_0x26ec1c,_0x105df9]of _0x5a6941())_0x5677a0['set'](_0x26ec1c,_0x105df9);return _0x5677a0;}}class st extends _0x37624c{['afterInit'](){const _0x1b22e8=this['editor'];if(!_0x1b22e8['plugins']['has']('RestrictedEditingModeEditing'))return;_0x1b22e8['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x37624c{constructor(_0x27b5ae){super(_0x27b5ae),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0xebdc75=this['editor'],_0x1a8772=_0xebdc75['commands']['get']('importWord'),_0x986c47=_0xebdc75['plugins']['get'](it);_0x1a8772&&(_0x1a8772['on']('execute',(_0x34cf98,[,_0x3b2803])=>{_0x3b2803['collaboration_features']={'comments':!0x0,'user_id':_0x986c47['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1a8772,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x42e68a,_0x1d3ef5){const {comment_threads:_0x3d5143}=_0x1d3ef5;_0x3d5143&&_0x3d5143['forEach'](({thread_id:_0x386fdf,comments:_0x11b139,is_resolved:_0x4d5b5a})=>{const _0x457e7b=new Date(),_0x268194=_0x11b139['map'](({author:_0x8456b5,content:_0x56ec41,created_at:_0x3da9a2})=>({'content':_0x56ec41,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x457e7b,'attributes':{'@external':{'authorName':_0x8456b5,'createdAt':_0x3da9a2?new Date(_0x3da9a2):new Date(),'source':'importWord'}}})),_0x116bf9=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x116bf9,'threadId':_0x386fdf,'comments':_0x268194,'resolvedAt':_0x4d5b5a?_0x457e7b:null});});}}class at extends _0x37624c{constructor(_0x507974){super(_0x507974),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x45bbed=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x45bbed,'contentInsertion',(_0x1be8a3,_0x44131b)=>this['_removeMarkersWithoutThreads'](_0x44131b['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x3f6b97){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x3f6b97;const _0x524a35=this['editor']['plugins']['get']('CommentsRepository');for(const _0x484700 of _0x3f6b97['keys']()){const [_0x4fb08b,_0xc1ed17]=_0x484700['split'](':');'comment'!=_0x4fb08b||_0x524a35['hasCommentThread'](_0xc1ed17)||_0x3f6b97['delete'](_0x484700);}return _0x3f6b97;}['_registerMarkerInClipboardPipeline'](){const _0x391077=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1bb5b0=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1bb5b0&&_0x391077['_registerMarkerToCopy']('comment',_0x1bb5b0);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x25af4c){switch(_0x25af4c){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x37624c{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ae7a7){super(_0x3ae7a7),this['set']('isThreadsLoadingPaused',!0x0),_0x3ae7a7['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x5df4f2,_0x2c7a0c,_0x169378,_0x1754ad)=>{const _0x125625=_0x169378?he(_0x169378)['id']:null;if(_0x3ae7a7['model']['change'](()=>{if(_0x125625){const _0x3f50d0=this['getAllMarkersForId'](_0x125625);for(const _0x1b5d1f of _0x3f50d0)_0x3ae7a7['editing']['reconvertMarker'](_0x1b5d1f);}if(_0x1754ad){const {id:_0x55639a}=he(_0x1754ad),_0x2b8aba=this['getAllMarkersForId'](_0x55639a);for(const _0x21767a of _0x2b8aba)_0x3ae7a7['editing']['reconvertMarker'](_0x21767a);}}),_0x125625){const _0x5b31da=_0x3ae7a7['plugins']['get'](o)['getCommentThread'](_0x125625);_0x5b31da&&_0x5b31da['isResolved']&&this['scrollToThreadMarker'](_0x125625);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x50e593=this['editor'],_0x23ad77=_0x50e593['plugins']['get'](o),_0x2250bc=_0x50e593['config']['get']('collaboration.channelId');_0x50e593['commands']['add']('addCommentThread',new J(_0x50e593)),this['listenTo'](_0x50e593,'change:isReadOnly',(_0x2e061b,_0x1f562a,_0x19fbb2)=>{_0x23ad77['switchReadOnly'](_0x19fbb2,_0x50e593['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x23ad77,ut('addCommentThread',_0x2250bc),(_0x1bc3df,{threadId:_0x2f2f24})=>{const _0x31ae37=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2f2f24);_0x31ae37&&_0x31ae37['unlinkedAt']&&this['_attachArchivedThread'](_0x2f2f24);}),this['listenTo'](_0x23ad77,ut('removeCommentThread',_0x2250bc),(_0x166884,{threadId:_0x354126})=>{_0x50e593['model']['enqueueChange']({'isUndoable':!0x1},_0x2df305=>{const _0x450197=this['getAllMarkersForId'](_0x354126);for(const _0x1b531d of _0x450197)_0x2df305['removeMarker'](_0x1b531d);});}),this['listenTo'](_0x23ad77,ut('resolveCommentThread',_0x2250bc),(_0x3911c1,{threadId:_0x3440ce})=>{(this['_reconvertMarkers'](_0x3440ce),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x3440ce)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x23ad77,ut('reopenCommentThread',_0x2250bc),(_0x2d7573,{threadId:_0x1d9781})=>{this['_reconvertMarkers'](_0x1d9781);},{'priority':'low'}),this['listenTo'](_0x23ad77,ut('addComment',_0x2250bc),(_0x3a73af,{threadId:_0x5310a4,isFromAdapter:_0x37f33c})=>{const _0x3d9ff3=this['getAllMarkersForId'](_0x5310a4);if(_0x37f33c||0x0==_0x3d9ff3['length']||!_0x23ad77['hasCommentThread'](_0x5310a4))return;0x1===_0x23ad77['getCommentThread'](_0x5310a4)['length']&&_0x50e593['model']['enqueueChange']({'isUndoable':!0x1},_0x12e1ce=>{for(const _0x59b5fb of _0x3d9ff3)_0x12e1ce['updateMarker'](_0x59b5fb,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x3e2775){const _0x3a8e28=_0x59a6a0([0x38,0x51,0x63,0x53,0x5a,0x79,0x6c,0x4d,0x7a,0x42,0x54,0x4f,0x44,0x56,0x4b,0x45,0x69,0x6b,0x33,0x4e,0x74,0x6a,0x36,0x34,0x70,0x72,0x37,0x77,0x48,0x4a,0x65,0x32,0x58,0x64,0x6f,0x31,0x47,0x55,0x43,0x57,0x39,0x71,0x75,0x52,0x4c,0x73,0x68,0x41,0x50,0x46,0x49,0x66,0x6e,0x61,0x6d,0x30,0x59,0x62,0x76,0x78,0x67,0x35]),_0xf230b2=0x6771a1f6,_0x146037=0x6776f69e^_0xf230b2,_0x2c5b4=window[_0x59a6a0([0x44,0x61,0x74,0x65])][_0x59a6a0([0x6e,0x6f,0x77])](),_0x49efce=_0x3e2775[_0x59a6a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x41d83e=new window[(_0x59a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x538233=>{_0x49efce[_0x59a6a0([0x6f,0x6e,0x63,0x65])](_0x59a6a0([0x72,0x65,0x61,0x64,0x79]),_0x538233);}),_0x4ca603={[_0x59a6a0([0x6b,0x74,0x79])]:_0x59a6a0([0x45,0x43]),[_0x59a6a0([0x75,0x73,0x65])]:_0x59a6a0([0x73,0x69,0x67]),[_0x59a6a0([0x63,0x72,0x76])]:_0x59a6a0([0x50,0x2d,0x32,0x35,0x36]),[_0x59a6a0([0x78])]:_0x59a6a0([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]),[_0x59a6a0([0x79])]:_0x59a6a0([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]),[_0x59a6a0([0x61,0x6c,0x67])]:_0x59a6a0([0x45,0x53,0x32,0x35,0x36])},_0x69c710=_0x49efce[_0x59a6a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59a6a0([0x67,0x65,0x74])](_0x59a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xded48e(){let _0x58eee2,_0xfd295f=null,_0x2b0dcc=null;try{if(_0x69c710==_0x59a6a0([0x47,0x50,0x4c]))return _0x59a6a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58eee2=_0x2aabbf(),!_0x58eee2)return _0x59a6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58eee2[_0x59a6a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b0dcc=_0x1329e6(_0x58eee2[_0x59a6a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58eee2[_0x59a6a0([0x6a,0x74,0x69])])),await _0x1f4693()?_0x4f64ce()?_0x58afc9()?_0x59a6a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cecca()?(_0x58eee2[_0x59a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59a6a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xfd295f=_0x52ee67(_0x59a6a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58eee2[_0x59a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59a6a0([0x74,0x72,0x69,0x61,0x6c])&&(_0xfd295f=_0x52ee67(_0x59a6a0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x58eee2[_0x59a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59a6a0([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xfd295f=_0x52ee67(_0x59a6a0([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5baff9()):_0x59a6a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59a6a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59a6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1ce5de){return _0x59a6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58afc9(){const _0x31be99=[_0x59a6a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59a6a0([0x74,0x72,0x69,0x61,0x6c])][_0x59a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58eee2[_0x59a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c5b4/0x3e8:0xe10*_0x146037;return _0x58eee2[_0x59a6a0([0x65,0x78,0x70])]<_0x31be99;}function _0x4f64ce(){const _0x2f06ce=_0x58eee2[_0x59a6a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f06ce&&(!!_0x2f06ce[_0x59a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a6a0([0x2a]))||(!!_0x2f06ce[_0x59a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a6a0([0x43,0x4d,0x54]))||!(!_0x2f06ce[_0x59a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a6a0([0x52,0x43,0x4d,0x54]))||!_0x158b98())));}function _0x4cecca(){const _0x20c623=_0x58eee2[_0x59a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20c623||0x0==_0x20c623[_0x59a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x845d65}=new URL(window[_0x59a6a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20c623[_0x59a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x845d65))return!0x0;const _0x57aaec=_0x845d65[_0x59a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x59a6a0([0x2e]));return _0x20c623[_0x59a6a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfaf094=>_0xfaf094[_0x59a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a6a0([0x2a])))[_0x59a6a0([0x6d,0x61,0x70])](_0x8c08a2=>_0x8c08a2[_0x59a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x59a6a0([0x2e])))[_0x59a6a0([0x73,0x6f,0x6d,0x65])](_0x4799b8=>_0x57aaec[_0x59a6a0([0x65,0x76,0x65,0x72,0x79])]((_0x29f5bf,_0x29bed9)=>_0x4799b8[_0x29bed9]===_0x29f5bf||_0x4799b8[_0x29bed9]===_0x59a6a0([0x2a])));}function _0x5baff9(){return _0xfd295f&&_0x2b0dcc?new window[(_0x59a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57dc42,_0x1c7271)=>{_0xfd295f[_0x59a6a0([0x74,0x68,0x65,0x6e])](_0x57dc42,_0x1c7271),_0x2b0dcc[_0x59a6a0([0x74,0x68,0x65,0x6e])](_0x38920e=>{_0x38920e!=_0x59a6a0([0x56,0x61,0x6c,0x69,0x64])&&_0x57dc42(_0x38920e);},_0x1c7271);}):_0xfd295f||_0x2b0dcc||_0x59a6a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1329e6(_0x5523fc,_0x54aabd){return new window[(_0x59a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49579a=>{if(_0x2a85a6())return _0x49579a(_0x59a6a0([0x56,0x61,0x6c,0x69,0x64]));_0x10237d(),_0x49efce[_0x59a6a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59a6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x33b712=!0x1;const _0x1fb1e9=_0x4b8453();function _0x5dd9b9(_0x527869){return!!_0x527869&&(typeof _0x527869===_0x59a6a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x527869===_0x59a6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x527869[_0x59a6a0([0x74,0x68,0x65,0x6e])]===_0x59a6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x527869[_0x59a6a0([0x63,0x61,0x74,0x63,0x68])]===_0x59a6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x294ebb(_0x34368f){_0x13773b(_0x34368f)[_0x59a6a0([0x74,0x68,0x65,0x6e])](_0x39e895=>{if(!_0x39e895||_0x39e895[_0x59a6a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59a6a0([0x6f,0x6b]))return _0x59a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10991e(_0x2ae461(_0x1fb1e9+_0x54aabd))!=_0x39e895[_0x59a6a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59a6a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x59a6a0([0x74,0x68,0x65,0x6e])](_0x51f705=>(_0x4ec333(),_0x51f705),()=>{const _0x2e3aa3=_0x4fcb4a();return null==_0x2e3aa3?(_0x4ec333(),_0x59a6a0([0x56,0x61,0x6c,0x69,0x64])):_0x59a6a0(_0x2c5b4-_0x2e3aa3>(0x437d25f6^_0xf230b2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59a6a0([0x74,0x68,0x65,0x6e])](_0x49579a)[_0x59a6a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49579a(_0x59a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e9820=0x67474f76^_0xf230b2;function _0x4ec333(){const _0x5c3200=_0x59a6a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x10991e(_0x2ae461(_0x5523fc)),_0x3dd7b0=_0x20edc0(_0x10991e(window[_0x59a6a0([0x4d,0x61,0x74,0x68])][_0x59a6a0([0x63,0x65,0x69,0x6c])](_0x2c5b4/_0x4e9820)));window[_0x59a6a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59a6a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c3200,_0x3dd7b0);}function _0x4fcb4a(){const _0x2a9abc=_0x59a6a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x10991e(_0x2ae461(_0x5523fc)),_0x22cec2=window[_0x59a6a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59a6a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a9abc);return _0x22cec2?window[_0x59a6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20edc0(_0x22cec2),0x10)*_0x4e9820:null;}function _0x13773b(_0x3d8de9){return new window[(_0x59a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14c2a5,_0x226dbe)=>{_0x3d8de9[_0x59a6a0([0x74,0x68,0x65,0x6e])](_0x14c2a5,_0x226dbe),window[_0x59a6a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x226dbe,0x67707536^_0xf230b2);});}}_0x49efce[_0x59a6a0([0x6f,0x6e])](_0x59a6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x508f88,_0x14d8fe)=>{if(_0x14d8fe[0x0]!=_0x5523fc)return _0x49579a(_0x59a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14d8fe[0x1]={..._0x14d8fe[0x1],[_0x59a6a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1fb1e9};},{[_0x59a6a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59a6a0([0x68,0x69,0x67,0x68])}),_0x49efce[_0x59a6a0([0x6f,0x6e])](_0x59a6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x475e14=>{_0x5dd9b9(_0x475e14[_0x59a6a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x33b712=!0x0,_0x294ebb(_0x475e14[_0x59a6a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59a6a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59a6a0([0x6c,0x6f,0x77])}),_0x41d83e[_0x59a6a0([0x74,0x68,0x65,0x6e])](()=>{_0x33b712||_0x49579a(_0x59a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a85a6(){return _0x49efce[_0x59a6a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59a6a0([0x76,0x69,0x65,0x77])][_0x59a6a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59a6a0([0x61,0x75,0x74,0x6f]);}function _0x10237d(){_0x49efce[_0x59a6a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59a6a0([0x76,0x69,0x65,0x77])][_0x59a6a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59a6a0([0x61,0x75,0x74,0x6f]);}}function _0x52ee67(_0x334a5d){const _0x493be0=[new window[(_0x59a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54e4f3=>setTimeout(_0x54e4f3,0x67789f3a^_0xf230b2)),_0x41d83e[_0x59a6a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c99fa=>{let _0x14995e=0x0;_0x49efce[_0x59a6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x59a6a0([0x6f,0x6e])](_0x59a6a0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51df68,_0x1e9369)=>{_0x1e9369[0x0][_0x59a6a0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14995e++,_0x14995e==(0x6771a00e^_0xf230b2)&&(_0x3c99fa(),_0x51df68[_0x59a6a0([0x6f,0x66,0x66])]());});}))];return window[_0x59a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59a6a0([0x72,0x61,0x63,0x65])](_0x493be0)[_0x59a6a0([0x74,0x68,0x65,0x6e])](()=>_0x334a5d);}async function _0x2c00f1(){await _0x41d83e,_0x49efce[_0x59a6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x59a6a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x488a12,_0x49efce[_0x59a6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x59a6a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x488a12,_0x49efce[_0x59a6a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59a6a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x158b98(){return _0x3c1916(_0x59a6a0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x34e569(_0x59a6a0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59a6a0([0x73,0x74,0x61,0x74,0x65])]==_0x59a6a0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2f7bdc(_0x50cdf0){const _0x252804=_0x4d00ff();_0x49efce[_0x252804]=_0x59a6a0([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50cdf0,_0x50cdf0!=_0x59a6a0([0x56,0x61,0x6c,0x69,0x64])&&_0x2c00f1();}function _0x4d00ff(){const _0x5c0782=window[_0x59a6a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59a6a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59a6a0([0x6e,0x6f,0x77])]())[_0x59a6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59a6a0([0x2e]),'');let _0x877853=_0x59a6a0([0x51]);for(let _0x4ca7a8=0x0;_0x4ca7a8<_0x5c0782[_0x59a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ca7a8+=0x2){let _0x3d2b75=window[_0x59a6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c0782[_0x59a6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ca7a8,_0x4ca7a8+0x2));_0x3d2b75>=_0x3a8e28[_0x59a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3d2b75-=_0x3a8e28[_0x59a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x877853+=_0x3a8e28[_0x3d2b75];}return _0x877853;}function _0x2aabbf(){const _0x3777b0=_0x69c710[_0x59a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x59a6a0([0x2e]));if(0x3!=_0x3777b0[_0x59a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x75eee0(_0x3777b0[0x1]);function _0x75eee0(_0xbefad4){const _0x3e436b=_0x2de5a7(_0xbefad4);return _0x3e436b&&_0x39d8db()?_0x3e436b:null;function _0x39d8db(){const _0x245886=_0x3e436b[_0x59a6a0([0x6a,0x74,0x69])],_0x169c84=window[_0x59a6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x245886[_0x59a6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x245886[_0x59a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf6e8b8={..._0x3e436b,[_0x59a6a0([0x6a,0x74,0x69])]:_0x245886[_0x59a6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x245886[_0x59a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf6e8b8[_0x59a6a0([0x76,0x63])],_0x2ae461(_0xf6e8b8)==_0x169c84;}}}async function _0x1f4693(){let _0x115358=!0x0;try{const _0xf332ab=_0x69c710[_0x59a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x59a6a0([0x2e])),[_0x11e3c2,_0x1812dd,_0x2b654c]=_0xf332ab;return _0x2ab9bd(_0x11e3c2),await _0x4e1197(_0x11e3c2,_0x1812dd,_0x2b654c),_0x115358;}catch(_0x5ef58b){return!0x1;}function _0x2ab9bd(_0x1ae3e0){const _0x37f025=_0x2de5a7(_0x1ae3e0);_0x37f025&&_0x37f025[_0x59a6a0([0x61,0x6c,0x67])]==_0x59a6a0([0x45,0x53,0x32,0x35,0x36])||(_0x115358=!0x1);}async function _0x4e1197(_0x377e72,_0x26b2a4,_0x4067a0){const _0x534257=window[_0x59a6a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59a6a0([0x66,0x72,0x6f,0x6d])](_0x123002(_0x4067a0),_0x15d420=>_0x15d420[_0x59a6a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xea7194=new window[(_0x59a6a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59a6a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x377e72+_0x59a6a0([0x2e])+_0x26b2a4),_0x108564=window[_0x59a6a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59a6a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x108564)return;const _0x48f965=await _0x108564[_0x59a6a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59a6a0([0x6a,0x77,0x6b]),_0x4ca603,{[_0x59a6a0([0x6e,0x61,0x6d,0x65])]:_0x59a6a0([0x45,0x43,0x44,0x53,0x41]),[_0x59a6a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59a6a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59a6a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x108564[_0x59a6a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59a6a0([0x6e,0x61,0x6d,0x65])]:_0x59a6a0([0x45,0x43,0x44,0x53,0x41]),[_0x59a6a0([0x68,0x61,0x73,0x68])]:{[_0x59a6a0([0x6e,0x61,0x6d,0x65])]:_0x59a6a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48f965,_0x534257,_0xea7194)||(_0x115358=!0x1);}}function _0x2de5a7(_0x1ebc6c){return _0x1ebc6c[_0x59a6a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59a6a0([0x65,0x79]))?JSON[_0x59a6a0([0x70,0x61,0x72,0x73,0x65])](_0x123002(_0x1ebc6c)):null;}function _0x123002(_0x110668){return window[_0x59a6a0([0x61,0x74,0x6f,0x62])](_0x110668[_0x59a6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59a6a0([0x2b]))[_0x59a6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59a6a0([0x2f])));}function _0x2ae461(_0xff70ff){let _0x2b3ff4=0x1505;function _0x38f44d(_0x510c15){for(let _0x25f0b5=0x0;_0x25f0b5<_0x510c15[_0x59a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25f0b5++){const _0xea233f=_0x510c15[_0x59a6a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25f0b5);_0x2b3ff4=(_0x2b3ff4<<0x5)+_0x2b3ff4+_0xea233f,_0x2b3ff4&=_0x2b3ff4;}}function _0x5b701f(_0x314de5){Array[_0x59a6a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x314de5)?_0x314de5[_0x59a6a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b701f):_0x314de5&&typeof _0x314de5==_0x59a6a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59a6a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x314de5)[_0x59a6a0([0x73,0x6f,0x72,0x74])]()[_0x59a6a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5cf480,_0x2c8916])=>{_0x38f44d(_0x5cf480),_0x5b701f(_0x2c8916);}):_0x38f44d(window[_0x59a6a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x314de5));}return _0x5b701f(_0xff70ff),_0x2b3ff4>>>0x0;}function _0x10991e(_0x590f40){return _0x590f40[_0x59a6a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59a6a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59a6a0([0x30]));}function _0x20edc0(_0x2bac01){return _0x2bac01[_0x59a6a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59a6a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59a6a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c1916(_0x4de5f7){return _0x49efce[_0x59a6a0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59a6a0([0x68,0x61,0x73])](_0x4de5f7);}function _0x34e569(_0x23ddd1){return _0x49efce[_0x59a6a0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59a6a0([0x67,0x65,0x74])](_0x23ddd1);}function _0x488a12(){}function _0x59a6a0(_0x4f2356){return _0x4f2356['map'](_0x4923db=>String['fromCharCode'](_0x4923db))['join']('');}_0x2f7bdc(await _0xded48e());}(this);}['destroy'](){const _0x536d44=this['editor']['plugins']['get'](o),_0x3456e2=this['editor']['config']['get']('collaboration.channelId');for(const _0x52777d of _0x536d44['getCommentThreads']({'channelId':_0x3456e2}))_0x536d44['_detachCommentThread'](_0x52777d['id']),_0x536d44['_threads']['delete'](_0x52777d['id']);super['destroy']();}['hasMarkerForId'](_0x5069a2){return this['getAllMarkersForId'](_0x5069a2)['length']>0x0;}['getAllMarkersForId'](_0x53e58a){const _0x40f39f=[];for(const _0x55b88b of this['editor']['model']['markers'])_0x55b88b['name']['startsWith']('comment:'+_0x53e58a)&&_0x40f39f['push'](_0x55b88b);return _0x40f39f;}['scrollToThreadMarker'](_0x36a3fb){const _0x2ec23d=this['_getTargetForId'](_0x36a3fb);_0x2ec23d&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x36a3fb&&rt({'target':_0x2ec23d[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x5f464d){this['editor']['model']['change'](()=>{for(const _0x2e26a9 of this['getAllMarkersForId'](_0x5f464d))this['editor']['editing']['reconvertMarker'](_0x2e26a9);});}['_attachArchivedThread'](_0x1fc076){const _0x24e62b=this['editor']['plugins']['get'](o),_0x4d4c7d=this['editor']['plugins']['get'](P),_0x525237=_0x24e62b['getCommentThread'](_0x1fc076);if(!_0x525237['isAttached']){const _0x2f2118=_0x525237['attachTo'](()=>this['_getTargetForId'](_0x525237['id']));_0x4d4c7d['registerAnnotation'](_0x2f2118),_0x525237['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x4faadb=this['editor'],_0x305c15=_0x4faadb['plugins']['get'](it);_0x4faadb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x651a1d,_0x6d97d7)=>{const {id:_0x2d329d}=he(_0x651a1d['markerName']),_0x137c60=_0x4faadb['plugins']['get'](o)['getCommentThread'](_0x2d329d),_0x1b385e=this['activeMarker']&&he(this['activeMarker'])['id']===_0x2d329d;let _0x198420;if(_0x137c60&&_0x137c60['isResolved']&&!_0x1b385e&&_0x651a1d['item'])return _0x6d97d7['consumable']['consume'](_0x651a1d['item'],'addMarker:'+_0x651a1d['markerName']),_0x6d97d7['consumable']['consume'](_0x651a1d['item'],'removeMarker:'+_0x651a1d['markerName']),null;const _0x215ccb=['ck-comment-marker'];return _0x1b385e&&_0x215ccb['push']('ck-comment-marker--active'),_0x198420=_0x137c60&&_0x137c60['length']?_0x137c60['comments']['first']['author']['id']:_0x305c15['me']['id'],{'classes':_0x215ccb,'attributes':{'data-comment':_0x2d329d,'data-author-id':_0x198420}};}}),_0x4faadb['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x2a7e08,{options:_0x2e14bc})=>{const _0x3c02aa=_0x4faadb['plugins']['get'](o),_0x41f470=_0x4faadb['model']['markers']['get'](_0x2a7e08),{id:_0x11e285,part:_0x13c011}=he(_0x2a7e08);if(_0x41f470&&!_0x41f470['affectsData'])return null;if(_0x2e14bc['ignoreResolvedComments']){const _0xc9476f=_0x3c02aa['getCommentThread'](_0x11e285);if(_0xc9476f&&_0xc9476f['isResolved'])return null;}return{'group':'comment','name':_0x13c011?_0x11e285+':'+_0x13c011:_0x11e285};}}),_0x4faadb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x1ddcb0,{writer:_0x295cfd})=>_0x295cfd['createElement']('$marker',{'data-name':'comment:'+_0x1ddcb0['getAttribute']('id')})}),_0x4faadb['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x45d162=this['editor'],_0x52f648=_0x45d162['plugins']['get'](o),_0x5c1429=new Set(),_0x5de663=new Set();_0x45d162['model']['document']['registerPostFixer'](_0x2dec77=>{let _0x4d1fe3=!0x1;for(const {name:_0x3434c7,data:_0x20b8c7}of _0x45d162['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4d6b3e,id:_0x35b42c}=he(_0x3434c7);let _0x452626=_0x20b8c7['newRange'];if('comment'!==_0x4d6b3e||!_0x452626)continue;const _0x578ef0='$graveyard'===_0x452626['root']['rootName'];_0x578ef0||(_0x452626=ft(_0x452626,_0x45d162['model']),!_0x452626||_0x452626['isCollapsed']||!_0x20b8c7['newRange']||_0x452626['isEqual'](_0x20b8c7['newRange']))?_0x45d162['model']['hasContent'](_0x452626)&&!_0x578ef0?this['isThreadsLoadingPaused']?_0x5c1429['add'](_0x3434c7):this['_handleThreadMarker'](_0x3434c7,_0x35b42c):(_0x5de663['add'](_0x3434c7),_0x5c1429['delete'](_0x3434c7),_0x2dec77['removeMarker'](_0x3434c7),_0x4d1fe3=!0x0):(_0x2dec77['updateMarker'](_0x3434c7,{'range':_0x452626}),_0x4d1fe3=!0x0);}return _0x4d1fe3;}),this['on']('change:isThreadsLoadingPaused',(_0x5b236f,_0x222eeb,_0x5f1d24)=>{if(!_0x5f1d24&&_0x5c1429['size'])for(const _0x1b3a65 of _0x5c1429){const {id:_0x51b66d}=he(_0x1b3a65);_0x5c1429['delete'](_0x1b3a65),_0x45d162['model']['markers']['get'](_0x1b3a65)&&this['_handleThreadMarker'](_0x1b3a65,_0x51b66d);}}),this['listenTo'](_0x45d162['model']['document'],'change',(_0x2dd7b9,_0x2e59f6)=>{for(const {name:_0x3909ce,data:{newRange:_0x14782c}}of _0x45d162['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3d51dc,id:_0x45739c}=he(_0x3909ce);if('comment'!==_0x3d51dc)continue;const _0x49de34=_0x52f648['getCommentThread'](_0x45739c),_0x3829a0=this['hasMarkerForId'](_0x45739c);_0x49de34&&(!_0x49de34['_hasTargetInContent']&&_0x14782c&&_0x45d162['editing']['view']['once']('render',()=>{const _0x4dfbda=_0x45d162['plugins']['get'](N),_0x787611=_0x52f648['_threadToController']['get'](_0x49de34)['view'];_0x4dfbda['getByInnerView'](_0x787611)['refreshVisibility']();},{'priority':'low'}),_0x49de34['_hasTargetInContent']=_0x3829a0||!!_0x14782c),_0x14782c||(_0x5de663['add'](_0x3909ce),_0x5c1429['delete'](_0x3909ce));}if(_0x2e59f6['isLocal'])for(const _0x38cf7e of _0x5de663){const {id:_0x2974c3}=he(_0x38cf7e),_0x3c2ad6=_0x52f648['getCommentThread'](_0x2974c3),_0x12b3a6=this['hasMarkerForId'](_0x2974c3);_0x5c1429['delete'](_0x38cf7e),!_0x3c2ad6||_0x12b3a6||_0x3c2ad6['unlinkedAt']||_0x3c2ad6['setUnlinkedAt'](new Date());}_0x5de663['clear']();});}['_getTargetForId'](_0x2dfe47){const _0x25a5c4=this['editor'],_0x2eeaf7=this['getAllMarkersForId'](_0x2dfe47);return et(_0x25a5c4['editing'],_0x2eeaf7);}['_getTextContext'](_0x49a87b){const _0xd2249d=this['getAllMarkersForId'](_0x49a87b);let _0x9341ff='',_0x354bb7=!0x1;for(const _0x531602 of _0xd2249d){const _0x9c4305=_0x531602['getRange']();for(const _0x26cad9 of Array['from'](_0x9c4305['getItems']()))_0x26cad9['is']('$textProxy')?(_0x9341ff&&_0x354bb7&&(_0x9341ff+='\x20',_0x354bb7=!0x1),_0x9341ff+=_0x26cad9['data']):_0x354bb7=!0x0;_0x354bb7=!0x0;}return _0x9341ff['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x22cdff,_0x42ad34){const _0x2337b9=this['editor'],_0x59b38b=_0x2337b9['plugins']['get'](o);let _0x3bd42c=_0x59b38b['getCommentThread'](_0x42ad34);const _0x58a904=_0x2337b9['config']['get']('collaboration.channelId'),_0x3bd1c8=_0x2337b9['plugins']['get'](P);if(_0x3bd42c&&(_0x3bd42c['unlinkedAt']&&_0x3bd42c['setUnlinkedAt'](null),_0x3bd42c['isAttached']))return _0x3bd42c;return!this['getAllMarkersForId'](_0x42ad34)[0x0]['managedUsingOperations']?_0x2337b9['editing']['view']['once']('render',()=>{if(_0x59b38b['getCommentThread'](_0x42ad34))return;const _0x12fe65=_0x2337b9['plugins']['get'](N);_0x3bd42c=_0x59b38b['openNewCommentThread']({'channelId':_0x58a904,'threadId':_0x42ad34,'target':()=>this['_getTargetForId'](_0x42ad34),'context':{'type':'text','value':this['_getTextContext'](_0x42ad34)}});const _0x40b4a0=_0x59b38b['_threadToController']['get'](_0x3bd42c)['view'],_0xca3134=_0x12fe65['getByInnerView'](_0x40b4a0);_0xca3134&&_0x3bd1c8['registerAnnotation'](_0xca3134);},{'priority':'low'}):_0x59b38b['fetchCommentThread']({'channelId':_0x58a904,'threadId':_0x42ad34})['then'](_0x33c94e=>{if('destroyed'!==_0x2337b9['state']){if(_0x3bd42c=_0x33c94e,_0x3bd42c&&!_0x3bd42c['isAttached']){const _0x34aacb=_0x3bd42c['attachTo'](()=>this['_getTargetForId'](_0x42ad34));_0x3bd1c8['registerAnnotation'](_0x34aacb),_0x3bd42c['isResolved']&&this['_reconvertMarkers'](_0x42ad34);}else{if(!_0x3bd42c){const _0x3b65af=this['getAllMarkersForId'](_0x42ad34);_0x2337b9['model']['change'](_0x3d3e6d=>{for(const _0xc0890f of _0x3b65af)_0x3d3e6d['removeMarker'](_0xc0890f);});}}}}),_0x3bd42c;}['_handleThreadMarker'](_0x5a53c6,_0x311dba){const _0x321b87=this['_attachMarkerToThread'](_0x5a53c6,_0x311dba);_0x321b87&&!_0x321b87['context']&&_0x321b87['setContext']({'type':'text','value':this['_getTextContext'](_0x311dba)});}['_initAriaMarkerChangeAnnouncements'](){const _0x50176a=this['editor'];ot(_0x50176a['model'],({left:_0x3887e8,entered:_0x14c796})=>{for(const _0x34e81a of _0x3887e8)if(dt(_0x34e81a)){_0x50176a['ui']['ariaLiveAnnouncer']['announce'](S(_0x50176a['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3d4052 of _0x14c796)if(dt(_0x3d4052)){_0x50176a['ui']['ariaLiveAnnouncer']['announce'](S(_0x50176a['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x3ef24c)));break;}});}}function ut(_0x81186f,_0x28ba70){return _0x28ba70?_0x81186f+':'+_0x28ba70:_0x81186f;}function he(_0x352008){const _0xafd210=_0x352008['split'](':');return{'group':_0xafd210[0x0],'id':_0xafd210[0x1],'part':_0xafd210[0x2]};}function ft(_0x1dda81,_0x523098){const _0x54e12b=_0x523098['schema'],_0x3ad83b=_0x523098['createRange'](_0x1dda81['start']);for(const _0xcd8725 of _0x1dda81['getWalker']()){const {type:_0x9261be,item:_0x47e35d,nextPosition:_0x31e735}=_0xcd8725;if('text'===_0x9261be||_0x54e12b['isObject'](_0x47e35d)){const _0x3837d9=_0x523098['createPositionBefore'](_0x47e35d);_0x3ad83b['isCollapsed']&&(_0x3ad83b['start']=_0x3837d9),_0x3ad83b['end']=_0x31e735;}}return _0x3ad83b;}function dt(_0x275c5b){return'comment'===he(_0x275c5b['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x37624c{['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 _0x25f2b6=this['editor'],_0x75a4e4=_0x25f2b6['plugins']['get'](o),_0x28cd7b=_0x25f2b6['plugins']['get'](r),_0x1b4bab=_0x25f2b6['plugins']['get'](N),_0x47124a=_0x25f2b6['plugins']['get'](P);_0x25f2b6['ui']['componentFactory']['add']('comment',()=>{const _0xb5cff5=this['_createUIButton'](_0xbee2d6);return _0xb5cff5['tooltip']=!0x0,_0xb5cff5;}),_0x25f2b6['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x107f58)),_0x47124a['addSourceCollector'](()=>{const _0x3ef55d=[];for(const [_0x14892d,_0x3dda1b]of _0x75a4e4['_threadToController']){const _0x48f2f0=_0x28cd7b['getAllMarkersForId'](_0x14892d['id']),_0x109062=_0x48f2f0['map'](_0x57eb63=>_0x57eb63['getRange']());_0x48f2f0['length']>0x0&&_0x3ef55d['push']([_0x3dda1b['view'],_0x109062]);}return _0x3ef55d;}),this['listenTo'](_0x1b4bab,'change:activeAnnotations',(_0x51a084,_0x3a67a4,_0xc05599)=>{const _0x217dae=Array['from'](_0xc05599)['map'](_0x24e6ff=>_0x24e6ff['innerView'])['find'](_0x45ac8c=>_0x75a4e4['_viewToController']['has'](_0x45ac8c));if(!_0x217dae)return void(_0x28cd7b['activeMarker']=null);const _0x3d8eb1=_0x75a4e4['_viewToController']['get'](_0x217dae)['model']['id'],_0x4f39d7='comment:'+_0x3d8eb1;_0x3d8eb1&&_0x28cd7b['hasMarkerForId'](_0x3d8eb1)?_0x28cd7b['activeMarker']=_0x4f39d7:_0x28cd7b['activeMarker']&&(_0x28cd7b['activeMarker']=null);}),this['listenTo'](_0x75a4e4,'removeCommentThread',(_0x580c76,{threadId:_0x13f503,isFromAdapter:_0x151b9e})=>{!_0x151b9e&&_0x25f2b6['ui']['focusTracker']['isFocused']&&_0x28cd7b['hasMarkerForId'](_0x13f503)&&_0x25f2b6['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x75a4e4,'addComment',(_0x398f9f,{threadId:_0x39652a,isFromAdapter:_0x21d5d9})=>{if(_0x21d5d9||!_0x28cd7b['hasMarkerForId'](_0x39652a)||!_0x75a4e4['hasCommentThread'](_0x39652a))return;0x1===_0x75a4e4['getCommentThread'](_0x39652a)['length']&&(_0x25f2b6['editing']['view']['focus'](),_0x398f9f['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x22d138=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23d942;for(const _0x2a37fc in _0x22d138){const _0x4cca94=_0x2a37fc,_0x2bbade=_0x22d138[_0x4cca94];if('commentsLicenseKeyValid'==_0x2bbade||'commentsLicenseKeyInvalid'==_0x2bbade||'commentsLicenseKeyExpired'==_0x2bbade||'commentsLicenseKeyDomainLimit'==_0x2bbade||'commentsLicenseKeyNotAllowed'==_0x2bbade||'commentsLicenseKeyEvaluationLimit'==_0x2bbade||'commentsLicenseKeyTrialLimit'==_0x2bbade||'commentsLicenseKeyDevelopmentLimit'==_0x2bbade||'commentsLicenseKeyUsageLimit'==_0x2bbade){delete _0x22d138[_0x4cca94],_0x23d942=_0x2bbade,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x23d942&&_0x22d138['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x23d942&&_0x22d138['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x23d942&&_0x22d138['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x23d942&&_0x22d138['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x23d942&&_0x22d138['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x23d942&&_0x22d138['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x23d942&&_0x22d138['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x23d942&&_0x22d138['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x26eea5){const _0x520b5d=this['editor'],_0x536aa1=new _0x26eea5(_0x520b5d['locale']),_0x2e4f9d=_0x520b5d['commands']['get']('addCommentThread');return _0x536aa1['set']({'label':S(_0x520b5d['locale'],'Comment'),'icon':xt}),_0x536aa1['bind']('isEnabled')['to'](_0x2e4f9d),this['listenTo'](_0x536aa1,'execute',()=>_0x2e4f9d['execute']()),_0x536aa1;}}class s extends _0x37624c{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1ff4cc){super(_0x1ff4cc),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1ba3c4,_0x52dea0,_0x1ea5f9)=>{_0x1ea5f9?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x53946d,_0x478d57]of this['editor']['commands'])_0x478d57['affectsData']&&'addCommentThread'!==_0x53946d&&_0x478d57['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x329685=this['editor']['editing']['view']['document'];this['listenTo'](_0x329685,'cut',_0x5e836c=>_0x5e836c['stop'](),{'priority':'highest'}),this['listenTo'](_0x329685,'clipboardInput',_0x1a0a86=>_0x1a0a86['stop'](),{'priority':'highest'}),this['listenTo'](_0x329685,'delete',_0x16c713=>_0x16c713['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0xbaf416,_0x21e1c5]of this['editor']['commands'])_0x21e1c5['affectsData']&&'addCommentThread'!==_0xbaf416&&_0x21e1c5['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x323088{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x368356){super(_0x368356),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x442ca6=this['context']['plugins']['get'](N);this['listenTo'](_0x442ca6,'_activateAnnotation',(_0x445e31,_0x1a2f61)=>{for(const _0x4bce3e of this['activeUIs']){const _0x474447=this['_uis']['get'](_0x4bce3e);(0x0,this['_uisData']['get'](_0x4bce3e)['filter'])(_0x1a2f61)&&_0x474447['setActiveAnnotation'](_0x1a2f61);}}),this['listenTo'](_0x442ca6,'_deactivateAllAnnotations',()=>{for(const _0x48881b of this['activeUIs']){this['_uis']['get'](_0x48881b)['setActiveAnnotation'](null);}}),this['listenTo'](_0x442ca6['_visibleAnnotations'],'add',(_0x2b96e3,_0x128a07)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x128a07);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x1dfdc3){return this['activeUIs']['has'](_0x1dfdc3);}['activate'](_0x1266ee,_0x2f3cdd=()=>!0x0){const _0x1fa798=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x1266ee))throw new _0x2e3068('annotationsuis-missing-ui',this,{'uiName':_0x1266ee});this['isActive'](_0x1266ee)&&this['deactivate'](_0x1266ee),this['activeUIs']['add'](_0x1266ee);const _0x415c9c=new x();!function({source:_0x4d7eec,target:_0x4fa2ae,filter:_0x47c8f6}){for(const _0x47d552 of _0x4d7eec)_0x47c8f6(_0x47d552)&&_0x4fa2ae['add'](_0x47d552);_0x4fa2ae['listenTo'](_0x4d7eec,'add',(_0x28c989,_0x5c404b)=>{_0x47c8f6(_0x5c404b)&&_0x4fa2ae['add'](_0x5c404b);}),_0x4fa2ae['listenTo'](_0x4d7eec,'remove',(_0x3799b9,_0x57a3ae)=>{_0x4fa2ae['has'](_0x57a3ae)&&_0x4fa2ae['remove'](_0x57a3ae);});}({'source':_0x1fa798['_visibleAnnotations'],'target':_0x415c9c,'filter':_0x2f3cdd}),this['_uisData']['set'](_0x1266ee,{'collection':_0x415c9c,'filter':_0x2f3cdd});const _0x38966b=this['_uis']['get'](_0x1266ee);_0x38966b['attach'](_0x415c9c),this['listenTo'](_0x38966b,'change:activeAnnotation',(_0xe748f,_0x233348,_0x45f7a5,_0xa3d185)=>{_0xa3d185&&_0x1fa798['_removeActiveAnnotation'](_0xa3d185),_0x45f7a5&&_0x1fa798['_addActiveAnnotation'](_0x45f7a5);});}['deactivate'](_0x4ac883){if(this['activeUIs']['delete'](_0x4ac883),!this['_uis']['has'](_0x4ac883))throw new _0x2e3068('annotationsuis-missing-ui',this,{'uiName':_0x4ac883});const _0x16e075=this['_uis']['get'](_0x4ac883);_0x16e075['detach'](),this['stopListening'](_0x16e075),this['_uisData']['get'](_0x4ac883)['collection']['destroy'](),this['_uisData']['delete'](_0x4ac883);}['switchTo'](_0x822606){if(!this['_uis']['has'](_0x822606))throw new _0x2e3068('annotationsuis-missing-ui',this,{'uiName':_0x822606});const _0x4c8421=this['context']['plugins']['get'](N),_0x40fd3d=Array['from'](_0x4c8421['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x822606);const _0x3c428e=this['_uis']['get'](_0x822606);_0x3c428e['setActiveAnnotation'](_0x40fd3d),_0x3c428e['_setSelectedAnnotations']&&_0x40fd3d&&_0x3c428e['_setSelectedAnnotations']([_0x40fd3d]);}['deactivateAll'](){for(const _0x36f143 of this['activeUIs'])this['deactivate'](_0x36f143);}['register'](_0x3301bd,_0xa8b060){if(this['_uis']['has'](_0x3301bd))throw new _0x2e3068('annotationsuis-register-already-registered');if('function'!=typeof _0xa8b060['attach']||'function'!=typeof _0xa8b060['detach']||'function'!=typeof _0xa8b060['setActiveAnnotation'])throw new _0x2e3068('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3301bd,_0xa8b060);}['refilterAnnotations'](){const _0x6f162d=this['context']['plugins']['get'](N)['collection'],_0x4c1197=new Map(),_0x414e98=Array['from'](this['activeUIs']);for(const _0x3b6ad1 of this['activeUIs']){const _0x244987=this['_uisData']['get'](_0x3b6ad1)['collection'];for(const _0x50c8f8 of _0x244987)_0x4c1197['set'](_0x50c8f8,_0x3b6ad1);}for(const _0x4d2d12 of _0x6f162d){const _0x5842d7=_0x4c1197['get'](_0x4d2d12);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4d2d12);const _0x46d39a=_0x414e98['find'](_0xc31078=>this['_uisData']['get'](_0xc31078)['filter'](_0x4d2d12));_0x5842d7!==_0x46d39a&&(_0x5842d7&&this['_uisData']['get'](_0x5842d7)['collection']['remove'](_0x4d2d12),_0x46d39a&&this['_uisData']['get'](_0x46d39a)['collection']['add'](_0x4d2d12));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x36ddc1){const _0x3d8fe8=[];for(const _0x59d45d of this['activeUIs']){(0x0,this['_uisData']['get'](_0x59d45d)['filter'])(_0x36ddc1)&&_0x3d8fe8['push'](_0x59d45d);}if(_0x3d8fe8['length']>0x1)throw new _0x2e3068('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3d8fe8,'annotationType':_0x36ddc1['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x30b893){super(_0x30b893);const _0x390673=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 _0x90f2b9(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x390673['to']('class')],'style':{'minHeight':_0x390673['to']('minHeight',_0x1bbfbd=>'number'==typeof _0x1bbfbd?ae(_0x1bbfbd+0xa):null)},'dir':_0x30b893['uiLanguageDirection'],'role':'application','aria-label':S(_0x30b893,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x30b893,'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',_0x338873=>{this['_updateItemPositionInFocusables'](_0x338873['source']);}),this['list']['forEach'](_0x32b993=>{this['focusTracker']['add'](_0x32b993['element']),this['_updateItemPositionInFocusables'](_0x32b993);}),this['list']['on']('change',(_0x2fbdf8,_0x41bd11)=>{for(const _0x4f76a5 of _0x41bd11['removed'])this['focusTracker']['remove'](_0x4f76a5['element']),this['focusables']['remove'](_0x4f76a5);for(const _0x5144d5 of _0x41bd11['added'])this['focusTracker']['add'](_0x5144d5['element']),this['_updateItemPositionInFocusables'](_0x5144d5);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x170da9){const _0x26cf6d=this['focusables']['getIndex'](_0x170da9);let _0x4d4541,_0x14ee03;for(const _0x1259c1 of this['focusables'])if(_0x170da9['top']<_0x1259c1['top']){_0x4d4541=_0x1259c1;break;}if(_0x14ee03=_0x4d4541?this['focusables']['getIndex'](_0x4d4541):this['focusables']['length'],-0x1!==_0x26cf6d){if(_0x26cf6d===_0x14ee03-0x1)return;this['focusables']['remove'](_0x170da9),_0x14ee03=_0x4d4541?this['focusables']['getIndex'](_0x4d4541):this['focusables']['length'];}this['focusables']['add'](_0x170da9,_0x14ee03);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0xba1b48){super(_0xba1b48),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x351570,_0x54a260)=>_0x351570+_0x54a260),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x54f219=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x54f219['to']('isAnimationDisabled',_0xf5cd0=>_0xf5cd0?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x54f219['to']('top',_0x3f3e0e=>qt(_0x3f3e0e))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x50cd58=this['element']['clientHeight'];_0x50cd58&&(this['height']=_0x50cd58);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x323088{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f8661){super(_0x3f8661),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 _0x19f608=this['context']['config']['get']('sidebar.container');_0x19f608&&this['setContainer'](_0x19f608);}['setContainer'](_0x21a910){if(!y(_0x21a910))throw new _0x2e3068('sidebar-setcontainer-invalid-element');this['container']=_0x21a910;}['_attachToContainer']({viewClass:_0x6cb2a1='',spaceBetweenItems:_0x3f6b48=0x19}={}){if(!y(this['container']))throw new _0x2e3068('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x6cb2a1,this['_spaceBetweenItems']=_0x3f6b48;}['rearrange']({removedAnnotation:_0x3d1b4e,previousAnnotation:_0x56d751,nextAnnotation:_0x209b00}){const _0x29d140=this['getSidebarItemView'](_0x3d1b4e);this['view']['list']['remove'](_0x29d140),this['_destroySidebarItemView'](_0x3d1b4e),_0x56d751&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x56d751)),_0x209b00&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x209b00)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x5bc9a8,activatedAnnotation:_0x447932,disableAnimationOnActivatedAnnotation:_0x127da1}){if(this['_activeAnnotation']=_0x447932,_0x5bc9a8){_0x5bc9a8['isActive']=!0x1;const _0x4e8e01=this['getSidebarItemView'](_0x5bc9a8);_0x4e8e01&&_0x127da1&&(_0x4e8e01['isAnimationDisabled']=!0x1);}if(_0x447932){const _0x4dfe74=this['getSidebarItemView'](_0x447932);_0x4dfe74&&(_0x447932['isActive']=!0x0,_0x127da1&&(_0x4dfe74['isAnimationDisabled']=!0x0,_0x4dfe74['top']+=0x1),this['_alignToTargetRect'](_0x4dfe74));}}['_detachFromContainer'](_0x3a51a0){if(this['view']['element']['remove'](),_0x3a51a0){for(const _0x17fda4 of _0x3a51a0)this['_destroySidebarItemView'](_0x17fda4);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5bca53,_0x22c617){_0x22c617||(_0x22c617=_0x5bca53['view']);const _0x5862c9=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x5862c9,_0x5bca53),this['_annotationToSidebarItemView']['set'](_0x5bca53,_0x5862c9),_0x5862c9['content']['add'](_0x22c617),this['listenTo'](_0x5bca53['view'],'change:targetRect',(_0x22f9cb,_0x3308df,_0x4748c7)=>{const _0x264208=this['_getTargetTop'](_0x5bca53,_0x4748c7);_0x5862c9['_targetTop']!=_0x264208&&(_0x5862c9['_targetTop']=_0x264208,this['_setItemTop'](_0x5862c9,_0x264208));}),this['listenTo'](_0x5862c9,'change:top',()=>{this['_recalculate'](_0x5862c9,'top');}),this['listenTo'](_0x5862c9,'change:bottom',()=>{this['_recalculate'](_0x5862c9,'bottom');}),this['_alignToTargetRect'](_0x5862c9);const _0x3b49a5=this['_getItemBefore'](_0x5862c9);if(_0x3b49a5)this['_alignAfterItem'](_0x3b49a5,_0x5862c9)||this['_alignToTargetRect'](_0x5862c9);else this['_alignToTargetRect'](_0x5862c9);return this['_updateLastItem'](),this['view']['list']['add'](_0x5862c9),_0x5862c9;}['_alignForTopChange'](_0xa6c0c1){if(!_0xa6c0c1['content']['length'])return;const _0x440bc9=this['_getItemBefore'](_0xa6c0c1);if(!_0x440bc9)return;const _0x17d1f8=this['_sidebarItemViewToAnnotation']['get'](_0x440bc9),_0x34e784=this['_activeAnnotation'];_0x34e784&&_0x34e784===_0x17d1f8?this['_alignAfterItem'](_0x440bc9,_0xa6c0c1):this['_alignBeforeItem'](_0xa6c0c1,_0x440bc9);}['_alignForBottomChange'](_0x58d44d){if(!_0x58d44d['content']['length'])return;const _0x76f47a=this['_getItemAfter'](_0x58d44d);if(!_0x76f47a)return;const _0x3876ab=this['_sidebarItemViewToAnnotation']['get'](_0x76f47a),_0x450676=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x516861=this['_activeAnnotation'];_0x516861&&_0x516861===_0x3876ab&&_0x450676?(this['_alignBeforeItem'](_0x76f47a,_0x58d44d),this['_alignAfterItem'](_0x58d44d,_0x76f47a)):_0x516861&&_0x516861===_0x3876ab?this['_alignBeforeItem'](_0x76f47a,_0x58d44d):this['_alignAfterItem'](_0x58d44d,_0x76f47a);}['_recalculate'](_0x31d58e,_0x5ecbad){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x4f4db0,changedProp:_0x166151}of this['_recalculateBuffer'])'top'===_0x166151?this['_alignForTopChange'](_0x4f4db0):this['_alignForBottomChange'](_0x4f4db0);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x31d58e,'changedProp':_0x5ecbad});}['getSidebarItemView'](_0x242085){return this['_annotationToSidebarItemView']['get'](_0x242085);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0xcda25b){const _0x336195=this['getSidebarItemView'](_0xcda25b);this['stopListening'](_0x336195),this['stopListening'](_0xcda25b['view']),_0x336195['destroy'](),this['_annotationToSidebarItemView']['delete'](_0xcda25b),this['_sidebarItemViewToAnnotation']['delete'](_0x336195);}['_createSidebarView'](){const _0x161a79=new V(this['context']['locale']);return _0x161a79['render'](),this['on']('change:_lastItem',(_0x9ec484,_0xbee8fa,_0x89eb7a,_0x3b7138)=>{_0x3b7138&&_0x161a79['unbind']('minHeight'),_0x89eb7a?_0x161a79['bind']('minHeight')['to'](_0x89eb7a,'bottom'):_0x161a79['minHeight']=null;}),_0x161a79;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3ab534){const _0x1e0e4c=this['_sidebarItemViewToAnnotation']['get'](_0x3ab534),_0x5e8ad0=_0x1e0e4c&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1e0e4c)-0x1);return _0x5e8ad0&&this['getSidebarItemView'](_0x5e8ad0)||null;}['_getItemAfter'](_0x5b95af){const _0x474551=this['_sidebarItemViewToAnnotation']['get'](_0x5b95af),_0x375632=_0x474551&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x474551)+0x1);return _0x375632&&this['getSidebarItemView'](_0x375632)||null;}['_alignBeforeItem'](_0x53e3fc,_0x308679){_0x53e3fc['updateHeight']();const _0x43401f=R(_0x308679['bottom']+this['_spaceBetweenItems'],_0x53e3fc['top']);return!!_0x43401f&&(this['_setItemTop'](_0x308679,_0x308679['top']-_0x43401f),!0x0);}['_alignAfterItem'](_0x4800e2,_0x2a8aae){_0x4800e2['updateHeight']();const _0x43df5b=R(_0x4800e2['bottom']+this['_spaceBetweenItems'],_0x2a8aae['top']);return!!_0x43df5b&&(this['_setItemTop'](_0x2a8aae,_0x2a8aae['top']+_0x43df5b,!0x1),!0x0);}['_alignToTargetRect'](_0x3d7374){const _0x534249=this['_sidebarItemViewToAnnotation']['get'](_0x3d7374);if(!_0x534249||!_0x534249['target']||!_0x534249['targetRect'])return;const _0x2b8bd9=this['_getTargetTop'](_0x534249,_0x534249['targetRect']);this['_setItemTop'](_0x3d7374,_0x2b8bd9);}['_getTargetTop'](_0x2a0224,_0x4822c1){if(null===_0x4822c1)return 0x0;if(_0x2a0224['target']instanceof _0x462831)return _0x4822c1['top'];{const _0x12724c=new _0x462831(this['view']['element'])['top'];return _0x4822c1['top']-_0x12724c;}}['_setItemTop'](_0xed2fb4,_0x24f334,_0x27212d=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x27212d&&(_0x24f334=Math['max'](_0x24f334,this['_getMaxAvailableTop'](_0xed2fb4))),_0xed2fb4['top']=_0x24f334;}['_getMaxAvailableTop'](_0x548340){let _0x54bf65=this['_getItemBefore'](_0x548340),_0x27a184=0x0;for(;_0x54bf65;)_0x54bf65['updateHeight'](),_0x27a184+=this['_spaceBetweenItems']+_0x54bf65['height'],_0x54bf65=this['_getItemBefore'](_0x54bf65);return _0x27a184;}}function R(_0x3ad29c,_0x35fe3c){return Math['max'](_0x3ad29c-_0x35fe3c,0x0);}function y(_0x593c8c){return null!==_0x593c8c&&'object'==typeof _0x593c8c&&0x1===_0x593c8c['nodeType'];}class e extends _0x323088{['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(_0x8bb68d){super(_0x8bb68d),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x375c29(),this['_refreshPositioningDebounced']=_0x257b89(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x5005d1=this['context']['plugins']['get'](M),_0x26ffd5=this['context']['plugins']['get'](z);_0x5005d1['register']('wideSidebar',this),_0x26ffd5['container']&&_0x5005d1['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x5e3dff){if(_0x5e3dff===this['activeAnnotation'])return;const _0x29ebdc=this['context']['plugins']['get'](z);_0x29ebdc['_activeAnnotation']=_0x5e3dff;const _0x27ab58=this['activeAnnotation'];this['activeAnnotation']=_0x5e3dff,_0x29ebdc['refresh']({'blurredAnnotation':_0x27ab58,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x53878f){this['annotations']=_0x53878f;const _0x2e8b36=this['context']['plugins']['get'](z);if(_0x2e8b36['_annotations']=_0x53878f,this['isAttached'])throw new _0x2e3068('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2e8b36,'set:container',()=>{this['detach'](),this['listenTo'](_0x2e8b36,'change:container',_0x1d6a17=>{_0x1d6a17['off'](),this['attach'](_0x53878f);});}),_0x2e8b36['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3fb4c1=_0x22715c=>{_0x22715c['updateTargetRect'](),_0x2e8b36['addAnnotation'](_0x22715c);};for(const _0x524553 of _0x53878f)_0x3fb4c1(_0x524553);this['listenTo'](_0x53878f,'add',(_0x3ca45c,_0x328e5a)=>{_0x3fb4c1(_0x328e5a);}),this['listenTo'](_0x53878f,'remove',(_0x43b58f,_0x2c784d,_0x2505db)=>{_0x2e8b36['rearrange']({'removedAnnotation':_0x2c784d,'previousAnnotation':_0x53878f['get'](_0x2505db-0x1),'nextAnnotation':_0x53878f['get'](_0x2505db+0x1)}),_0x2c784d===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x53878f,'focus',(_0x22b01c,_0x36015d)=>{this['setActiveAnnotation'](_0x36015d);}),this['listenTo'](_0x53878f,'blur',()=>{this['setActiveAnnotation'](null);});const _0x3fc1cd=this['context']instanceof _0x319680?this['context']['editors']:new _0x375c29([this['context']]);for(const _0x55e01a of _0x3fc1cd)this['_integrateWithEditorAnnotations'](_0x55e01a);this['listenTo'](_0x3fc1cd,'add',(_0x51a27b,_0x465a87)=>{this['listenTo'](_0x465a87,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x465a87);});}),this['listenTo'](_0x3fc1cd,'remove',(_0x73ac2e,_0x26e2aa)=>{_0x26e2aa['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x26e2aa['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2e3068('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x886e94=this['context']['plugins']['get'](z);_0x886e94['_detachFromContainer'](this['annotations']),this['stopListening'](_0x886e94),this['stopListening'](this['annotations']),this['context']instanceof _0x319680&&this['stopListening'](this['context']['editors']);for(const _0x7926c5 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x7926c5);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x485ad4){if(!_0x485ad4['plugins']['has']('EditorAnnotations'))return;const _0x2fa146=_0x485ad4['plugins']['get']('EditorAnnotations'),_0xc86d5=()=>{const _0x4e1439=_0x2fa146['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4e1439[0x0]||null);};this['listenTo'](_0x2fa146,'refresh',_0xc86d5),this['listenTo'](_0x2fa146,'blur',(_0x2c260b,{isAnnotationTracked:_0x1cb4b8})=>{this['activeAnnotation']&&_0x1cb4b8(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2fa146,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x2a7dd3=>{_0x2fa146['hasDomSelection']()&&(_0xc86d5(),_0x2a7dd3['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2fa146);}['_destroyEditorAnnotationsIntegration'](_0x1a05c5){this['stopListening'](_0x1a05c5),this['_editorAnnotations']['remove'](_0x1a05c5);}}class D extends _0xbee2d6{['counterView'];constructor(_0x51e7c1){super(_0x51e7c1);const _0x322cd3=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x5b5c9d,_0x13f4ec)=>_0x5b5c9d?'...':_0x13f4ec['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',_0x322cd3['to']('annotationType',_0x4cc2ff=>'ck-annotation-counter__badge--'+_0x4cc2ff),_0x322cd3['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x322cd3['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x323088{['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(_0x51aa85){super(_0x51aa85),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x1a4f4c),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x375c29(),this['_refreshPositioningDebounced']=_0x257b89(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x532a7d(this['context']['locale']),this['balloonPanelView']=new _0x3e384d(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x5d2151){this['annotations']=_0x5d2151;const _0x5daf0c=this['context']['plugins']['get'](z),_0xa30151=this['balloonPanelView'];if(_0x5daf0c['_annotations']=_0x5d2151,this['isAttached'])throw new _0x2e3068('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5daf0c,'set:container',()=>{this['detach'](),this['listenTo'](_0x5daf0c,'change:container',_0x11247d=>{_0x11247d['off'](),this['attach'](_0x5d2151);});}),_0x5daf0c['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x20393f=_0x40c0e7=>{const _0x2a5c3e=new D(this['context']['locale']);_0x5daf0c['addAnnotation'](_0x40c0e7,_0x2a5c3e),this['_annotationToNarrowView']['set'](_0x40c0e7,_0x2a5c3e),_0x2a5c3e['bind']('isDirty','annotationType','number')['to'](_0x40c0e7['view'],'isDirty','type','length'),_0x2a5c3e['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0xa30151['content']['first']!==_0x40c0e7['view']?(this['_showBalloon'](_0x40c0e7),_0x40c0e7['view']['element']['focus'](),this['setActiveAnnotation'](_0x40c0e7)):this['setActiveAnnotation'](null);});};for(const _0x64054a of _0x5d2151)_0x20393f(_0x64054a);this['listenTo'](_0x5d2151,'add',(_0xf84110,_0x4074b7)=>{_0x20393f(_0x4074b7);}),this['listenTo'](_0x5d2151,'remove',(_0x59846b,_0x252a74,_0x4d4ef6)=>{this['_annotationToNarrowView']['get'](_0x252a74)['destroy'](),this['_annotationToNarrowView']['delete'](_0x252a74),_0x5daf0c['rearrange']({'removedAnnotation':_0x252a74,'previousAnnotation':_0x5d2151['get'](_0x4d4ef6-0x1),'nextAnnotation':_0x5d2151['get'](_0x4d4ef6+0x1)}),_0x252a74===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5d2151,'focus',(_0xe0278,_0x21bf58)=>{this['setActiveAnnotation'](_0x21bf58);}),this['listenTo'](_0x5d2151,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x57b67c,_0x2329eb)=>{_0x2329eb['keyCode']===_0x2e683c['esc']&&_0xa30151['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0xa30151['content']['first']),this['_hideBalloon'](),_0x2329eb['stopPropagation'](),_0x2329eb['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x114bde,_0x5bff16)=>{const _0x5c07f8=_0x5bff16['target'];_0xa30151['isVisible']&&_0xa30151['element']['contains'](_0x5c07f8)||_0x5daf0c['view']['element']['contains'](_0x5c07f8)||_0x114bde['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x31b271=>_0x31b271['contains'](_0x5c07f8))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x47a9cd=this['context']instanceof _0x319680?this['context']['editors']:new _0x375c29([this['context']]);for(const _0x740560 of _0x47a9cd)this['_integrateWithEditorAnnotations'](_0x740560);this['listenTo'](_0x47a9cd,'add',(_0x4d73cf,_0x518fba)=>{this['listenTo'](_0x518fba,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x518fba);});}),this['listenTo'](_0x47a9cd,'remove',(_0x16e4fa,_0x5396ba)=>{_0x5396ba['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5396ba['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x322183){if(_0x322183===this['activeAnnotation'])return;const _0x943b63=this['context']['plugins']['get'](z);if(_0x943b63['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x322183,'disableAnimationOnActivatedAnnotation':!0x0}),_0x322183)_0x943b63['getSidebarItemView'](_0x322183)?this['_showBalloon'](_0x322183):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x322183;}['detach'](){if(!this['isAttached'])throw new _0x2e3068('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x302595=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x588bf2=>_0x588bf2['destroy']()),this['_annotationToNarrowView']['clear'](),_0x302595['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x319680&&this['stopListening'](this['context']['editors']);for(const _0xc3f9c2 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0xc3f9c2);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'](_0x59db1b){if(!_0x59db1b['plugins']['has']('EditorAnnotations'))return;const _0x11863e=_0x59db1b['plugins']['get']('EditorAnnotations'),_0x413740=this['context']['plugins']['get'](z),_0x25aa13=this['annotations'],_0x945e6d=this['balloonPanelView'],_0x146ca7=()=>{const _0x2104d9=_0x11863e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2104d9),this['setActiveAnnotation'](_0x2104d9[0x0]||null);};this['listenTo'](_0x11863e,'refresh',_0x146ca7),this['listenTo'](_0x11863e,'blur',(_0x2b44b8,{isAnnotationTracked:_0x47f7ea})=>{this['activeAnnotation']&&_0x47f7ea(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x11863e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x25aa13,'blur',_0x45d9e2=>{_0x11863e['hasDomSelection']()&&_0x45d9e2['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x235e9f,_0xa969af)=>{const _0xde6e2d=_0xa969af['target'];_0x945e6d['isVisible']&&_0x945e6d['element']['contains'](_0xde6e2d)||_0x413740['view']['element']['contains'](_0xde6e2d)||this['activeAnnotation']&&_0x11863e['hasDomSelection']()&&(_0x146ca7(),_0x235e9f['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x11863e);}['_destroyEditorAnnotationsIntegration'](_0x491ed3){_0x491ed3&&(this['stopListening'](_0x491ed3),this['_editorAnnotations']['remove'](_0x491ed3));}['_setSelectedAnnotations'](_0x53c4e3){for(const _0x17ca59 of this['_selectedAnnotations'])_0x53c4e3['includes'](_0x17ca59)||this['_manuallyClosedAnnotationViews']['delete'](_0x17ca59['view']);this['_selectedAnnotations']=_0x53c4e3;}['_refreshPositioning'](){const _0xdb48db=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0xdb48db['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x1ba136){if(this['_manuallyClosedAnnotationViews']['has'](_0x1ba136['view']))return;const _0x37d43a=this['balloonPanelView']['content']['first'];_0x37d43a!==_0x1ba136['view']?(_0x37d43a&&this['_detachListeners'](_0x37d43a),this['_attachListeners'](_0x1ba136['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x1ba136['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x2073e6=this['balloonPanelView']['content']['first'],_0x11430d=_0x2073e6&&this['annotations']['getByView'](_0x2073e6);if(!_0x11430d||!this['_annotationToNarrowView']['has'](_0x11430d))return;const _0xa7458e=this['_annotationToNarrowView']['get'](_0x11430d)['element'],_0x3808bc=(function(){const _0x1221e6=_0x3e384d['defaultPositions'];return[_0x1221e6['southArrowNorthEast'],_0x1221e6['northArrowSouthEast'],_0x1221e6['southArrowNorth'],_0x1221e6['northArrowSouth'],_0x1221e6['southArrowNorthWest'],_0x1221e6['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xa7458e,'positions':_0x3808bc});}['_hideBalloon'](){const _0x170054=this['balloonPanelView'],_0x23418d=_0x170054['content']['first'];_0x23418d&&(this['_detachListeners'](_0x23418d),_0x170054['unpin'](),_0x170054['content']['clear']());}['_attachListeners'](_0x9ce0fc){this['listenTo'](_0x9ce0fc,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x9ce0fc,'Esc',(_0x6a07d9,_0x9cdfcf)=>{this['_manuallyClosedAnnotationViews']['add'](_0x9ce0fc),this['_hideBalloon'](),_0x9cdfcf();});}['_detachListeners'](_0x3daa9c){this['stopListening'](_0x3daa9c);}}class c extends _0x37624c{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x5538ca,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c445c){super(_0x2c445c),_0x2c445c['editing']['view']['addObserver'](_0x29326f),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x2c445c['plugins']['get'](_0x5538ca),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x3baf0f=this['editor']['plugins']['get'](M);_0x3baf0f['context']===this['editor']&&(_0x3baf0f['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x571074,_0xe56dc6)=>{const _0x4e8dde=this['_balloon'];if(this['isAttached']&&_0x4e8dde['visibleView']){const _0x35cc02=this['annotations']['getByView'](_0x4e8dde['visibleView']);_0x35cc02&&this['_closeAnnotation'](_0x35cc02),_0xe56dc6();}}));}['afterInit'](){const _0x4abec2=this['editor']['plugins']['get'](M);_0x4abec2['context']===this['editor']&&(_0x4abec2['hasActive']()||_0x4abec2['switchTo']('inline'));}['setActiveAnnotation'](_0x45bf2b){_0x45bf2b!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x45bf2b&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x45bf2b)&&this['_addAnnotationToBalloon'](_0x45bf2b,!0x0),_0x45bf2b['isActive']=!0x0),_0x45bf2b||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x45bf2b);}['attach'](_0x2d1683){this['annotations']=_0x2d1683;const _0xb1659b=this['editor']['plugins']['get'](M),_0x46c312=this['_balloon'];if(this['isAttached'])throw new _0x2e3068('inlineannotations-attach-already-attached',this);if(_0xb1659b['context']!==this['editor'])throw new _0x2e3068('inlineannotations-not-allowed-with-context',this);const _0x37e931=this['editor']['plugins']['get'](P);this['listenTo'](_0x37e931,'refresh',()=>{const _0x593edf=_0x37e931['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x4944c3,_0x6f9862;!this['_forceRefresh']&&(_0x4944c3=_0x593edf,_0x6f9862=this['_selectedAnnotations'],_0x4944c3['length']===_0x6f9862['length']&&_0x4944c3['every'](_0x5418d9=>_0x6f9862['includes'](_0x5418d9)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x593edf),this['setActiveAnnotation'](_0x593edf[0x0]||null));}),this['listenTo'](_0x37e931,'blur',(_0x3b90d2,{isAnnotationTracked:_0x5963b6})=>{this['activeAnnotation']&&_0x5963b6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x591404,_0x5d0661,_0x43d0b4)=>{_0x43d0b4||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2d1683,'remove',(_0x39547c,_0x2698fa)=>{this['_removeAnnotationFromBalloon'](_0x2698fa),_0x2698fa===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x46c312,'change:visibleView',(_0x33e9a0,_0x7453df,_0x273c2c,_0x506d41)=>{_0x506d41&&this['stopListening'](_0x506d41);const _0x55073b=_0x2d1683['getByView'](_0x273c2c);_0x273c2c&&_0x55073b&&(this['listenTo'](_0x273c2c,'change:height',()=>{_0x46c312['updatePosition']();}),this['listenTo'](_0x273c2c,'Esc',()=>{this['_closeAnnotation'](_0x55073b),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x55073b&&this['setActiveAnnotation'](_0x55073b));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x46c312['visibleView']&&(_0x2d1683['getByView'](_0x46c312['visibleView'])&&_0x46c312['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 _0x2e3068('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x51958f of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x51958f);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xde3add){for(const _0xce63ca of this['_selectedAnnotations'])_0xde3add['includes'](_0xce63ca)||this['_manuallyClosed']['delete'](_0xce63ca);for(const _0xc8a5d of this['annotations'])_0xde3add['includes'](_0xc8a5d)||this['_removeAnnotationFromBalloon'](_0xc8a5d);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0xa221c4 of _0xde3add)this['_addAnnotationToBalloon'](_0xa221c4);}this['_selectedAnnotations']=_0xde3add;}['_addAnnotationToBalloon'](_0x14e520,_0x4afd4d=!0x1){this['_manuallyClosed']['has'](_0x14e520)||(this['_addedAnnotations']['has'](_0x14e520)||this['_balloon']['hasView'](_0x14e520['view'])||(this['_addedAnnotations']['add'](_0x14e520),this['_balloon']['add']({'stackId':_0x14e520['view']['id'],'view':_0x14e520['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x14e520)}})),_0x4afd4d&&this['_balloon']['showStack'](_0x14e520['view']['id']));}['_getBalloonTargetForAnnotation'](_0x12d556){const _0x54d3a4=_0x12d556['target'],_0x3f43fb=this['editor']['editing']['view'],_0x2fd0bf=_0x3f43fb['document']['selection']['getFirstRange'](),_0x3dd177=_0x3f43fb['domConverter']['viewRangeToDom'](_0x2fd0bf);if(_0x3dd177['collapse'](!0x0),_0x54d3a4){if(_0x54d3a4 instanceof _0x462831)return _0x54d3a4;let _0x36d87b=[];for(const _0x3f408c of _0x54d3a4)_0x36d87b['push'](...(_0x6b5a53=_0x3f408c['getClientRects'](),Array['from'](_0x6b5a53)['map'](DOMRect['fromRect'])));_0x36d87b=function(_0x43f0b5){const _0x3ae8b7=[];let _0x3a8ece=_0x43f0b5[0x0];for(let _0x1e5b8b=0x1;_0x1e5b8b<_0x43f0b5['length'];_0x1e5b8b++)b(_0x3a8ece,_0x43f0b5[_0x1e5b8b])?_0x3a8ece['width']+=_0x43f0b5[_0x1e5b8b]['width']:(_0x3ae8b7['push'](_0x3a8ece),_0x3a8ece=_0x43f0b5[_0x1e5b8b]);return _0x3ae8b7['push'](_0x3a8ece),_0x3ae8b7;}(_0x36d87b);const _0x9a598f=_0x3dd177['getBoundingClientRect']();return _0x36d87b['find'](_0x87351b=>_0x87351b['top']<=_0x9a598f['top']&&_0x87351b['bottom']>=_0x9a598f['bottom']&&_0x87351b['left']<=_0x9a598f['left']&&_0x87351b['right']>=_0x9a598f['right'])||_0x36d87b[0x0];}var _0x6b5a53;return _0x12d556['targetRect']||_0x3dd177;}['_removeAnnotationFromBalloon'](_0x67ee2d){this['_addedAnnotations']['has'](_0x67ee2d)&&this['_balloon']['hasView'](_0x67ee2d['view'])&&(this['_addedAnnotations']['delete'](_0x67ee2d),this['_balloon']['remove'](_0x67ee2d['view']));}['_closeAnnotation'](_0x19ad4d){this['_manuallyClosed']['add'](_0x19ad4d),this['_removeAnnotationFromBalloon'](_0x19ad4d);}}function b(_0x26a657,_0x35a74a){return _0x26a657['top']===_0x35a74a['top']&&_0x26a657['bottom']===_0x35a74a['bottom']&&_0x26a657['right']===_0x35a74a['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x2ca4a7,_0x3ffe81){super(_0x2ca4a7),this['set']('isEmpty',!_0x3ffe81['length']),this['focusTracker']=new _0x90f2b9(),this['_annotationViews']=_0x3ffe81,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x3ffe81,'focusTracker':this['focusTracker']}),this['listenTo'](_0x3ffe81,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x3ffe81,'remove',(_0xfc232b,_0x28f5af)=>{_0x28f5af['isActive']&&this['focus'](),_0x3ffe81['length']||(this['isEmpty']=!0x0);});const _0x44f830=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x2ca4a7,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x3ffe81},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x44f830['if']('isEmpty','ck-hidden',_0x16ae56=>!_0x16ae56)]},'children':[{'text':S(_0x2ca4a7,'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 _0x2f87c4 of this['_annotationViews'])this['focusTracker']['add'](_0x2f87c4['element']);this['_annotationViews']['on']('change',(_0x4a83e3,{added:_0x5afbae,removed:_0x3e3310})=>{for(const _0x1c5345 of _0x5afbae)this['focusTracker']['add'](_0x1c5345['element']);for(const _0x496813 of _0x3e3310)this['focusTracker']['remove'](_0x496813['element']);});}}class f extends _0x323088{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x20faa5){super(_0x20faa5),this['archivedThreads']=new _0x375c29();}['init'](){const _0x7f04bf=this['context'],_0x39e071=_0x7f04bf['plugins']['get'](o),_0x336539=_0x7f04bf['plugins']['get'](N);this['listenTo'](_0x39e071,'addCommentThread',(_0x278655,{threadId:_0x5d1e12})=>{const _0x1c0140=_0x39e071['getCommentThread'](_0x5d1e12);_0x1c0140['archivedAt']&&this['archivedThreads']['add'](_0x1c0140,this['_calculatePosition'](_0x1c0140['archivedAt'])),this['listenTo'](_0x1c0140,'change:archivedAt',(_0x1135d0,_0x1b1d8b,_0x494eab)=>{_0x494eab?this['archivedThreads']['has'](_0x1c0140)||this['archivedThreads']['add'](_0x1c0140,this['_calculatePosition'](_0x1c0140['archivedAt'])):this['archivedThreads']['has'](_0x1c0140)&&this['archivedThreads']['remove'](_0x1c0140);});}),this['listenTo'](_0x39e071,'removeCommentThread',(_0x1f19c0,{threadId:_0x2c59e9})=>{const _0x4770db=_0x39e071['getCommentThread'](_0x2c59e9);this['stopListening'](_0x4770db),this['archivedThreads']['has'](_0x4770db)&&this['archivedThreads']['remove'](_0x4770db);},{'priority':'highest'}),this['listenTo'](_0x336539['collection'],'focus',(_0x57b640,_0x35a959)=>{_0x35a959['isVisible']||(_0x35a959['isActive']=!0x0,_0x336539['activate'](_0x35a959));});}['_calculatePosition'](_0x4c394d){const _0x129d59=[...this['archivedThreads']]['findIndex'](_0x406fa1=>_0x406fa1['archivedAt']<_0x4c394d);return _0x129d59>-0x1?_0x129d59:this['archivedThreads']['length'];}}class a extends _0x37624c{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x2709cc];}constructor(_0x415294){super(_0x415294),this['annotationViews']=new _0x150f1d(),this['_pendingThreads']=[];}['init'](){const _0x129100=this['editor'],_0x1f51b6=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x129100['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0xbee2d6,!0x0)),_0x129100['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0xa8ee88=this['_createCommentsArchiveButton'](_0x107f58);return _0xa8ee88['set']({'role':'menuitemcheckbox'}),_0xa8ee88;});const _0x370cd2=_0x129100['plugins']['get'](f),_0x53469c=_0x129100['plugins']['get']('Annotations'),_0xd0515f=_0x129100['plugins']['get']('CommentsRepository');this['listenTo'](_0x370cd2['archivedThreads'],'add',(_0x267594,_0x3565d3)=>{const _0x113888=_0x129100['config']['get']('collaboration.channelId');if(!_0x113888||_0x3565d3['channelId']===_0x113888){const _0x2a7b18=_0xd0515f['_threadToController']['get'](_0x3565d3);if(!_0x2a7b18)return void this['_pendingThreads']['push'](_0x3565d3);const _0x3b2e21=this['_calculatePosition'](_0x3565d3['archivedAt']),_0x1a69f9=_0x53469c['getByInnerView'](_0x2a7b18['view']);_0x1a69f9['isVisible']&&_0x53469c['_visibleAnnotations']['remove'](_0x1a69f9),this['annotationViews']['add'](_0x1a69f9['view'],_0x3b2e21);}}),this['listenTo'](_0x53469c['collection'],'add',(_0x1165cf,_0x3e0185)=>{const _0x2c914e=this['_pendingThreads']['find'](_0x35d0bf=>{const _0x353e35=_0xd0515f['_threadToController']['get'](_0x35d0bf);return _0x353e35&&_0x3e0185['innerView']===_0x353e35['view'];});if(_0x2c914e){const _0x10670d=this['_calculatePosition'](_0x2c914e['archivedAt']);this['annotationViews']['add'](_0x3e0185['view'],_0x10670d),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2c914e),0x1);}}),this['listenTo'](_0x370cd2['archivedThreads'],'remove',(_0x2d3163,_0x4e9328)=>{const _0x3c3fbf=_0x129100['config']['get']('collaboration.channelId');if(!_0x3c3fbf||_0x4e9328['channelId']===_0x3c3fbf){const _0x325715=_0xd0515f['_threadToController']['get'](_0x4e9328),_0x37f081=_0x53469c['getByInnerView'](_0x325715['view']);this['annotationViews']['remove'](_0x37f081['view']),this['stopListening'](_0x37f081['focusableElements']);}}),this['listenTo'](_0x53469c['collection'],'add',(_0x99d004,_0x3fe061)=>{this['listenTo'](_0x3fe061,'escape',_0x1f51b6);}),this['listenTo'](_0x53469c['collection'],'remove',(_0x162311,_0x37788b)=>{this['stopListening'](_0x37788b,'escape',_0x1f51b6);});}['_calculatePosition'](_0x13a43a){const _0x6d0ff8=this['editor']['config']['get']('collaboration.channelId'),_0x244e9c=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x36c203=>_0x36c203['channelId']===_0x6d0ff8)['findIndex'](_0x32c3cd=>_0x32c3cd['archivedAt']<_0x13a43a);return _0x244e9c<0x0||_0x244e9c>this['annotationViews']['length']?this['annotationViews']['length']:_0x244e9c-0x1;}['_toggleDialog'](){const _0x1aa4fd=this['editor'],_0x818d55=_0x1aa4fd['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x1aa4fd['locale'],this['annotationViews'])),'commentsArchive'===_0x818d55['id']?_0x818d55['hide']():_0x818d55['show']({'id':'commentsArchive','title':S(_0x1aa4fd['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x18760c['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x44eeda,_0x29a80e=!0x1){const _0x34f117=this['editor']['locale'],_0x53052f=this['editor']['plugins']['get']('Dialog'),_0x43d511=new _0x44eeda(_0x34f117);return _0x43d511['bind']('isEnabled')['to'](this,'isEnabled'),_0x43d511['bind']('isOn')['to'](_0x53052f,'id',_0xa563d7=>'commentsArchive'===_0xa563d7),_0x43d511['set']({'label':S(_0x34f117,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x29a80e&&(_0x43d511['tooltip']=!0x0),this['listenTo'](_0x43d511,'execute',()=>this['_toggleDialog']()),_0x43d511;}['_hideDialogOnAnnotationEscape']=_0xa888df=>{const _0x2decc8=_0xa888df['source'];if(!this['annotationViews']['has'](_0x2decc8['view']))return;const _0x47c9db=this['editor']['plugins']['get']('Dialog');_0x47c9db['isOpen']&&'commentsArchive'===_0x47c9db['id']&&(_0x47c9db['hide'](),_0xa888df['stop']());};}class p extends _0x37624c{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,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};
|