@ckeditor/ckeditor5-comments 43.3.1-alpha.0 → 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(_0x26f489={}){(_0x26f489=Object['assign']({},_0x26f489))['plugins']||(_0x26f489['plugins']=Xt['defaultPlugins']),super(_0x26f489),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 _0x95f525=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x95f525))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x83d32a=>{const _0x173eb7=this['model']['document']['getRoot'](),_0x66137d=_0x173eb7&&_0x173eb7['getChild'](_0x173eb7['childCount']-0x1);_0x83d32a['setSelection'](_0x66137d,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x4144cc=this['editing']['view'],_0x8a6a19=_0x4144cc['document']['getRoot'](),_0x296a9c=_0x8a6a19['getChild'](0x0);_0x8a6a19['childCount']>0x1||!_0x296a9c||'p'!=_0x296a9c['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(Bt(_0x4144cc,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x296a9c['placeholder']=this['placeholder']),zt({'view':_0x4144cc,'element':_0x296a9c,'keepOnFocus':!0x0}),this['placeholderElement']=_0x296a9c);}}class rs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x23a6d9,_0xecdb3e={}){super(_0x23a6d9),this['editor']=null,this['_editorConfig']=_0xecdb3e,this['set']('value',_0xecdb3e['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x23a6d9,'Reply...')),this['set']('submitLabel',S(_0x23a6d9,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new Et(),this['focusTracker']=new _0x450a05(),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',(_0x337dc5,_0x110c3b)=>{this['cancelButtonView']['fire']('execute'),_0x110c3b();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4ad9c7,_0x4fa037)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x4fa037());}),this['on']('submit',(_0x233683,_0x45e371)=>{_0x45e371['length']>0xfde8?(alert(S(_0x23a6d9,'TOO_LONG_COMMENT_ALERT',[_0x45e371['length'],0xfde8])),_0x233683['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 _0x22e157=this['editor'];this['element']['insertBefore'](_0x22e157['ui']['element'],this['element']['firstChild']),_0x22e157['model']['document']['on']('change',()=>this['value']=_0x22e157['getData']()),_0x22e157['bind']('placeholder')['to'](this),this['focusables']['add'](_0x22e157['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x452406){-0x1===_0x452406?(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:_0x4c2642}=this,_0x20f134=new _0x576862(_0x4c2642);return _0x20f134['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x20f134['withText']=!0x0,_0x20f134['bind']('label')['to'](this,'submitLabel'),_0x20f134['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x20f134['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x5d736c,_0x4815d7)=>!_0x4815d7&&!!_0x5d736c['trim']()),_0x20f134;}['_createCancelButton'](){const {locale:_0xc4965e}=this,_0x4da7e2=new _0x576862(_0xc4965e);return _0x4da7e2['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x4da7e2['label']=S(_0xc4965e,'Cancel'),_0x4da7e2['withText']=!0x0,_0x4da7e2['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x4da7e2;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x509400=>{this['focusTracker']['add'](_0x509400['element']);}),this['focusables']['on']('change',(_0x58758e,_0x517551)=>{for(const _0x2a697a of Array['from'](_0x517551['added'])['reverse']())this['focusTracker']['add'](_0x2a697a['element']);});}}class Pt extends kt{constructor(_0x3fee30,_0x4c24a0,_0x313a48){super(_0x3fee30),this['commentInputView']=new rs(_0x3fee30,_0x313a48),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2e5ea2,_0x18fbbe)=>_0x2e5ea2||!!_0x18fbbe),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 _0x45f3be(_0x3fee30,_0x4c24a0),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'](_0x4d247b){this['commentInputView']['focus'](_0x4d247b);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x54586c,_0x195c47)=>{const {submitButtonView:_0x7d3c39,cancelButtonView:_0x42e003,editor:_0x2078f1}=this['commentInputView'];[_0x7d3c39['element'],_0x42e003['element'],_0x2078f1?_0x2078f1['editing']['view']['getDomRoot']():null]['filter'](_0x3a990d=>_0x3a990d)['some'](_0x55eff1=>_0x55eff1['contains'](_0x195c47['target']))||(this['focus'](),_0x195c47['preventDefault']());});}}class cs extends kt{constructor(_0x33ac46){super(_0x33ac46);const _0x1df1f8=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1df1f8['to']('count',_0x12e521=>S(_0x33ac46,'NUMBER_OF_COMMENTS',_0x12e521))}]});}}class xt extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x47710b,_0x6b6580,_0x3a559b){super(_0x47710b);const _0x424364=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x6b6580['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x6b6580,this['_config']=_0x3a559b,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x450a05(),this['keystrokes']=new Et(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x6586a=>this['commentViews']['map'](_0x3906b6=>_0x3906b6['element'])['includes'](_0x6586a['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x47710b),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x439a54=>_0x439a54-this['_config']['maxCommentsWhenCollapsed']);for(const _0x1874c8 of _0x6b6580['comments'])this['_handleNewCommentModel'](_0x1874c8);this['_handleInfoComment'](),this['listenTo'](_0x6b6580['comments'],'add',(_0x43e6c3,_0x1209f8)=>{const _0x105989=this['_calculatePosition'](_0x1209f8);this['length']++,this['_handleNewCommentModel'](_0x1209f8,_0x105989),this['refreshVisibleViews']();}),this['listenTo'](_0x6b6580['comments'],'remove',(_0x301085,_0x431b52)=>{this['length']--,this['_handleRemoveCommentModel'](_0x431b52),this['refreshVisibleViews']();}),this['listenTo'](_0x6b6580,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x6b6580,'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',_0x424364['if']('length','ck-hidden',_0xf938d0=>!_0xf938d0)],'aria-label':S(_0x47710b,'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'](_0x2ccbd4){-0x1===_0x2ccbd4?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x19b3aa of this['commentViews'])_0x19b3aa['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3263b5,_0x4ed4cc){const _0x39d7f3=new this['_config']['CommentView'](this['locale'],_0x3263b5,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x39d7f3['viewUid']=_0x3263b5['id'],_0x39d7f3['delegate']('removeComment')['to'](this),_0x39d7f3['delegate']('updateComment')['to'](this),_0x39d7f3['delegate']('resolveCommentThread')['to'](this),_0x39d7f3['delegate']('editorReady')['to'](this),_0x39d7f3['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x39d7f3,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x39d7f3,_0x4ed4cc);}['_calculatePosition'](_0x448769){const _0x47846d=this['_model']['_findOptimalIndex'](_0x448769);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x448769['authoredAt']?_0x47846d-0x1:_0x47846d:_0x47846d-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3e280c={'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'],_0x3e280c,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3e280c));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x29c5f9){const _0x3b4003=this['commentViews']['remove'](_0x29c5f9['id']);this['stopListening'](_0x3b4003),_0x3b4003['isEditMode']&&this['_updateHasDirtyComment'](),_0x3b4003['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x3ca490=>_0x3ca490['isEditMode']);}['_rearrangeCollapse'](){const _0x39992f=function(_0x1f65c6){const _0x579040=new _0x15524d();for(const _0xa6c994 of _0x1f65c6)_0x579040['add'](_0xa6c994);return _0x579040;}(this['commentViews']),_0x82c7f9=this['_collapsedCommentsView']['count'];for(let _0x58708e=0x1;_0x58708e<=_0x82c7f9;_0x58708e++)_0x39992f['remove'](0x1);for(const _0x5af088 of _0x39992f)_0x5af088['collapse']();_0x82c7f9>0x0&&_0x39992f['add'](this['_collapsedCommentsView'],0x1),ms(_0x194551(Array['from'](this['visibleViews']),Array['from'](_0x39992f)),this['visibleViews'],_0x39992f);}['_rearrangeExpand'](){ms(_0x194551(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x106548 of this['visibleViews'])_0x106548['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x46c24b=>{this['focusTracker']['add'](_0x46c24b['element']),this['keystrokes']['listenTo'](_0x46c24b['element']);}),this['commentViews']['on']('change',(_0x25c4c0,_0x14d105)=>{for(const _0x137d4b of _0x14d105['removed'])this['focusTracker']['remove'](_0x137d4b['element']),this['keystrokes']['stopListening'](_0x137d4b['element']);for(const _0x39e104 of Array['from'](_0x14d105['added'])['reverse']())this['focusTracker']['add'](_0x39e104['element']),this['keystrokes']['listenTo'](_0x39e104['element']);});}}function ms(_0x26db46,_0x1250c3,_0x453ff8){let _0x4d9740=0x0;for(const _0x586c39 of _0x26db46)switch(_0x586c39){case'insert':_0x1250c3['add'](_0x453ff8['get'](_0x4d9740),_0x4d9740),_0x4d9740++;break;case'delete':_0x1250c3['remove'](_0x4d9740);break;case'equal':_0x4d9740++;}}class ls extends kt{constructor(_0x5f81ed){super(_0x5f81ed);const _0x4a2e67=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4a2e67['to']('contextValue',_0xbe81b3=>S(_0x5f81ed,'THREAD_CONTEXT_LABEL',_0xbe81b3)),'tabindex':-0x1},'children':[{'text':_0x4a2e67['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class ts extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x59d547,_0x281903){super(_0x59d547);const _0x25647b=this['bindTemplate'];this['_model']=_0x281903,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x450a05(),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',_0x2397a9=>!!_0x2397a9),this['bind']('contextValue')['to'](this['_model'],'context',_0x3b05e3=>_0x3b05e3&&_0x3b05e3['value']?this['_trimContextValue'](_0x3b05e3['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',_0x25647b['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 _0x5d0c74=new _0x576862(this['locale']);return _0x5d0c74['label']=S(this['locale'],'Reopen'),_0x5d0c74['tooltip']=S(this['locale'],'Reopen'),_0x5d0c74['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>',_0x5d0c74['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1ffcec=>!_0x1ffcec),_0x5d0c74['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3ae894,_0x56a020)=>_0x3ae894&&_0x56a020),_0x5d0c74['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x5d0c74;}['_trimContextValue'](_0x4cd2a2){if(_0x4cd2a2['length']<0x96)return _0x4cd2a2;const _0x463453=_0x4cd2a2['lastIndexOf']('\x20',0x93);return _0x4cd2a2['substring'](0x0,_0x463453>-0x1?_0x463453:0x93)+'...';}['_attachContextActions'](){const _0x11160f=this['element']['querySelector']('.ck-context'),_0x11ed44=_0x11160f['querySelector']('.ck-context__value');this['listenTo'](_0x11160f,'mouseenter',()=>{_0x11ed44['offsetWidth']<_0x11ed44['scrollWidth']&&_0x11160f['classList']['add']('overlay');}),this['listenTo'](_0x11160f,'mouseleave',()=>{_0x11160f['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x623666 of this['focusables'])this['focusTracker']['add'](_0x623666['element']),this['keystrokes']['listenTo'](_0x623666['element']);}['_createContextView'](){const _0x24bf18=new ls(this['locale']);return _0x24bf18['bind']('contextValue')['to'](this),_0x24bf18;}}class es extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x614508,_0x394c00,_0x3f8944,_0x59a300){super(_0x614508),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x394c00,this['_localUser']=_0x3f8944,this['_config']=_0x59a300,this['commentThreadHeaderView']=new ts(_0x614508,_0x394c00),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new _0x23a10b(_0x614508,S(_0x614508,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new xt(_0x614508,_0x394c00,Object['assign']({'CommentView':this['_config']['CommentView']},_0x59a300)),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',(_0x4bf2ee,_0x1d58f9)=>_0x4bf2ee||!!_0x1d58f9),this['bind']('isUnlinked')['to'](_0x394c00,'unlinkedAt',_0x383be8=>!!_0x383be8),this['bind']('ariaLabel')['to'](this,'length',_0x1397cd=>{const _0x43b73a=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x1397cd,_0x43b73a]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x450a05(),this['keystrokes']=new Et(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x9be4ed=>_0x9be4ed['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x3b3c34(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x14338e=new Pt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x17cd01=_0x14338e['commentInputView'];return _0x14338e['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x17cd01,'value',(_0x5e4e82,_0x4c585a,_0x4a5540,_0x5abc0f,_0x1bde61)=>!!_0x1bde61||!!_0x5abc0f&&_0x4a5540&&!_0x4c585a||_0x5e4e82&&_0x4a5540&&!_0x4c585a),_0x17cd01['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4ee924,_0x13b9ea,_0x106d8a)=>{let _0xf5824;return _0xf5824=_0x106d8a&&_0x13b9ea?'Reply\x20to\x20reopen\x20discussion...':_0x4ee924?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0xf5824);}),_0x17cd01['bind']('submitLabel')['to'](this,'length',_0x5b393d=>S(this['locale'],_0x5b393d?'Reply':'Comment')),_0x17cd01['on']('submit',(_0x230672,_0x2e9dc0)=>{this['fire']('addComment',_0x2e9dc0),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x17cd01['on']('cancel',()=>{this['focus']();}),_0x17cd01['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x17cd01['on']('cancel',_0x3b93d1=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3b93d1['stop']());}),this['on']('change:isActive',(_0x36d8c4,_0x5639fd,_0x628c19)=>{_0x628c19||this['length']||_0x17cd01['value']||this['fire']('removeCommentThread');}),_0x14338e;}}class gt extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(
|
|
28
|
-
ti(
|
|
29
|
-
_0x16103a(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x3dae35,target:_0x32393b,type:_0x2094ad,isVisible:_0x2d8258=!0x0}){super(),this['view']=_0x3dae35,this['view']['element']||this['view']['render'](),this['_type']=_0x2094ad,this['_target']=_0x32393b,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x15524d([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x54539b,_0x28a3a6)=>{this['view']['focusTracker']['add'](_0x28a3a6);}),this['focusableElements']['on']('remove',(_0x23cc5d,_0x2466e5)=>{this['view']['focusTracker']['remove'](_0x2466e5);}),this['set']('isVisible',_0x2d8258);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x437408=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x437408),_0x437408;}get['targetRect'](){const _0x17cc1f=this['target'];if(null===_0x17cc1f)return null;if(_0x17cc1f instanceof _0x182c6f)return _0x17cc1f;const _0xd73564=_0x17cc1f['filter'](_0x24fe79=>function(_0x24c909){const _0x378199=_0x24c909['offsetParent'];if(_0x378199)return!0x0;const _0x581e8e=_0x24c909['getClientRects']()['item'](0x0);return!!_0x581e8e;}(_0x24fe79));return 0x0===_0xd73564['length']?null:new _0x182c6f(_0xd73564[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x1c2dfb){this['view']['isActive']=_0x1c2dfb,this['view']['mainView']['isActive']=_0x1c2dfb;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x41445a){if(!(null===_0x41445a||_0x41445a instanceof _0x182c6f||Array['isArray'](_0x41445a)&&_0x41445a['every'](_0x31c3f3=>ee(_0x31c3f3))))throw new _0x4cd5c0('annotation-invalid-target',null,{'target':_0x41445a});}['_getNormalizedTarget'](){const _0xa78fb8='function'==typeof this['_target']?this['_target']():this['_target'];return ee(_0xa78fb8)?[_0xa78fb8]:_0xa78fb8;}}function ee(_0x2be23a){return null!==_0x2be23a&&'object'==typeof _0x2be23a&&'nodeType'in _0x2be23a&&0x1===_0x2be23a['nodeType'];}class x extends _0x15524d{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x6bd22b=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x450a05(),this['_focusTracker']['on']('change:isFocused',(_0x33804b,_0x55d482,_0x4a5c2f)=>{_0x4a5c2f||this['fire']('blur');});for(const _0x2faeec of _0x6bd22b)this['add'](_0x2faeec);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x35e2b5){if(this['has'](_0x35e2b5))throw new _0x4cd5c0('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x35e2b5['innerView'],_0x35e2b5),this['_viewToAnnotation']['set'](_0x35e2b5['view'],_0x35e2b5);for(const _0x33e942 of _0x35e2b5['focusableElements'])this['_focusTracker']['add'](_0x33e942);this['listenTo'](_0x35e2b5['focusableElements'],'add',(_0x26ccd2,_0xe2fddc)=>{this['_focusTracker']['add'](_0xe2fddc);}),this['listenTo'](_0x35e2b5['focusableElements'],'remove',(_0x45a40d,_0x5f2821)=>{this['_focusTracker']['remove'](_0x5f2821);}),this['listenTo'](_0x35e2b5['view']['focusTracker'],'change:isFocused',(_0xa3ce5,_0x5c94d2,_0x314d8e)=>{_0x314d8e&&this['fire']('focus',_0x35e2b5);}),_0x35e2b5['updateTargetRect']();const _0x2161de=this['_getOrderInContent'](_0x35e2b5['view']['targetRect']);return super['add'](_0x35e2b5,_0x2161de);}['remove'](_0x39f024){if(!this['has'](_0x39f024))throw new _0x4cd5c0('annotationcollection-not-existing-item',null);this['stopListening'](_0x39f024['view']['focusTracker']),this['stopListening'](_0x39f024['focusableElements']);for(const _0x337c84 of _0x39f024['focusableElements'])this['_focusTracker']['remove'](_0x337c84);return this['_viewToAnnotation']['delete'](_0x39f024['view']),this['_innerViewToAnnotation']['delete'](_0x39f024['innerView']),super['remove'](_0x39f024);}['getByInnerView'](_0x5f5696){return this['_innerViewToAnnotation']['get'](_0x5f5696);}['getByView'](_0x407822){return this['_viewToAnnotation']['get'](_0x407822);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x582f4b of this)_0x582f4b['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2b3cb0=Array['from'](this)['sort']((_0x53538c,_0x228392)=>v(_0x53538c['view']['targetRect'],_0x228392['view']['targetRect']));for(let _0x13596a=_0x2b3cb0['length']-0x1;_0x13596a>0x0;_0x13596a--){const _0x58c88e=_0x2b3cb0[_0x13596a];_0x13596a!==this['getIndex'](_0x58c88e)&&(this['remove'](_0x58c88e),this['add'](_0x58c88e));}}['_getOrderInContent'](_0x17c8b8){let _0x4516ff=0x0;if(!_0x17c8b8)return this['length'];for(const _0x360b66 of this){const _0x2efdbc=_0x360b66['view']['targetRect'];if(_0x2efdbc){if(v(_0x17c8b8,_0x2efdbc)<0x0)return _0x4516ff;_0x4516ff++;}}return _0x4516ff;}}function v(_0x4c5581,_0x307dfb){if(null===_0x4c5581&&null===_0x307dfb)return 0x0;if(null===_0x4c5581)return-0x1;if(null===_0x307dfb)return 0x1;const _0x105c49=_0x4c5581['top']-_0x307dfb['top'];return 0x0==_0x105c49?_0x4c5581['left']-_0x307dfb['left']:_0x105c49;}class N extends _0x41c971{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1560ad){if(super(_0x1560ad),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1560ad instanceof _0x4a0063){const _0x3ff87a=_0x1560ad['locale'];_0x1560ad['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x3ff87a,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x3ff87a,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x3ff87a,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x3ff87a,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x3ff87a,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x3ff87a,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x3ff87a,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x484448){this['collection']['add'](_0x484448);}['remove'](_0x3ee360){this['collection']['remove'](_0x3ee360),_0x3ee360['destroy']();}['refreshVisibility'](){for(const _0x21d64e of this['collection'])_0x21d64e['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x17ef6b){return this['collection']['getByInnerView'](_0x17ef6b);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x4fd5ff of this['collection'])_0x4fd5ff['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x3752e4){this['fire']('_activateAnnotation',_0x3752e4);}['createAnnotation'](_0x45909d){return new d(_0x45909d);}['createAnnotationView'](_0x219b54,_0x1d71c0){return new T(_0x219b54,_0x1d71c0);}['_addActiveAnnotation'](_0x32f3f0){const _0x52a33f=new Set(this['activeAnnotations']);_0x52a33f['add'](_0x32f3f0),this['activeAnnotations']=_0x52a33f;}['_removeActiveAnnotation'](_0x167291){const _0x17b58b=new Set(this['activeAnnotations']);_0x17b58b['delete'](_0x167291),this['activeAnnotations']=_0x17b58b;}['_bindAnnotationsToVisibleAnnotations'](){const _0x42521d=this['collection'],_0xa6bc6d=this['_visibleAnnotations'];function _0x434d40(_0x149e3b){const _0x692b2e=_0x149e3b['source'];_0x692b2e['isVisible']&&!_0xa6bc6d['has'](_0x692b2e)?_0xa6bc6d['add'](_0x692b2e):!_0x692b2e['isVisible']&&_0xa6bc6d['has'](_0x692b2e)&&_0xa6bc6d['remove'](_0x692b2e),_0x692b2e['view']['focusTracker']['remove'](_0x692b2e['view']['element']),_0x692b2e['view']['focusTracker']['add'](_0x692b2e['view']['element']);}this['listenTo'](_0x42521d,'add',(_0x2a346d,_0x1ed03d)=>{_0x1ed03d['isVisible']&&_0xa6bc6d['add'](_0x1ed03d),this['listenTo'](_0x1ed03d,'change:isVisible',_0x434d40);}),this['listenTo'](_0x42521d,'remove',(_0x2444ea,_0xb690ca)=>{_0xa6bc6d['has'](_0xb690ca)&&_0xa6bc6d['remove'](_0xb690ca),this['stopListening'](_0xb690ca,'change:isVisible',_0x434d40);});}['_setupEnterAnnotationKeystroke'](){const _0x54f30c=_0x4ee107=>{_0x4ee107['on']('ready',()=>{_0x4ee107['keystrokes']['set'](_0xb52199,(_0x3fbf01,_0x1d5f43)=>{const _0x45c751=_0x29d358(this['activeAnnotations']['values']());_0x45c751&&(_0x45c751['view']['focus'](),_0x1d5f43());});});};this['context']instanceof _0x4a0063?_0x54f30c(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x2dadd0,_0x559c43)=>{_0x54f30c(_0x559c43);});}['_setupEscapeAnnotationHandling'](){const _0x2d1c5d=_0xe2df9=>{const _0xd66c9a=_0xe2df9['source'],_0x36259e=[];let _0x41f900;if(Array['isArray'](_0xd66c9a['target'])){_0x41f900=_0xd66c9a['target'][0x0],this['context']instanceof _0x4a0063?_0x36259e['push'](this['context']):this['context']['editors']&&_0x36259e['push'](...this['context']['editors']);for(const _0x285dee of _0x36259e)for(const _0x175bdf of _0x285dee['editing']['view']['domRoots']['values']())if(_0x175bdf['contains'](_0x41f900))return void _0x285dee['editing']['view']['focus']();_0x41f900['focus']();}};this['listenTo'](this['collection'],'add',(_0x46dbc7,_0xe6f59c)=>{this['listenTo'](_0xe6f59c,'escape',_0x2d1c5d,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x4a0521,_0x841f01)=>{this['stopListening'](_0x841f01,'escape',_0x2d1c5d);});}}const bt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x41c971{['licenseKey'];['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ut,at];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59b485){super(_0x59b485),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 _0x1aa4a4=this['context']['config'];_0x1aa4a4['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1aa4a4['define']('comments.maxThreadTotalWeight',0x1f4),_0x1aa4a4['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1aa4a4['define']('comments.CommentThreadView',gt),_0x1aa4a4['define']('comments.CommentView',Tt),_0x1aa4a4['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3c9da3=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x62ceb1,_0x596d4e)=>this['_addCommentThread'](_0x596d4e)),this['on']('submitCommentThread',(_0x410a62,_0x130577)=>this['_submitCommentThread'](_0x130577)),this['on']('resolveCommentThread',(_0x15b7a6,_0x699a7a)=>this['_resolveCommentThread'](_0x699a7a)),this['on']('resolveCommentThread',(_0x394305,_0x363c8a)=>this['_updateActiveAnnotation'](_0x363c8a),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x21e89e,_0x5e2eff)=>this['_reopenCommentThread'](_0x5e2eff)),this['on']('reopenCommentThread',(_0x3b557e,_0xe84507)=>this['_updateActiveAnnotation'](_0xe84507),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x12e10f,_0x38d1e9)=>this['_removeCommentThread'](_0x38d1e9)),this['on']('updateCommentThread',(_0x4ae771,_0x1496c5)=>this['_updateCommentThread'](_0x1496c5)),this['on']('updateCommentThread',(_0x2ef248,_0x38ec1b)=>this['_updateActiveAnnotation'](_0x38ec1b),{'priority':'lowest'}),this['on']('addComment',(_0x267d8a,_0x92ae3d)=>this['_addComment'](_0x92ae3d)),this['on']('updateComment',(_0x484472,_0xed686a)=>this['_updateComment'](_0xed686a)),this['on']('removeComment',(_0x1fe76f,_0x4fbe5f)=>this['_removeComment'](_0x4fbe5f)),this['on']('addComment',(_0x19a712,{threadId:_0x32749e,isFromAdapter:_0x3ad95d})=>{if(_0x3ad95d)return;const _0x538ca9=this['getCommentThread'](_0x32749e),_0x3e6500=_0x538ca9&&this['_threadToController']['get'](_0x538ca9);_0x3e6500&&_0x3e6500['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3c9da3,'change:activeAnnotations',(_0x2ba785,_0x3bd2e4,_0x5d5102)=>{const _0x59cb7a=Array['from'](_0x5d5102)['map'](_0x1c8692=>this['_viewToController']['get'](_0x1c8692['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x59cb7a?_0x59cb7a['model']:null;});}['afterInit'](){!function(_0x3891f6){function _0x446b52(_0x49f84e,_0x2eb27c,_0x53d749){const _0x19c160={};_0x19c160[_0x1b46ef([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])]={0x10:0xa,0x18:0xc,0x20:0xe},_0x19c160[_0x1b46ef([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],_0x19c160[_0x1b46ef([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],_0x19c160[_0x1b46ef([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],_0x19c160[_0x1b46ef([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],_0x19c160[_0x1b46ef([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],_0x19c160[_0x1b46ef([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],_0x19c160[_0x1b46ef([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],_0x19c160[_0x1b46ef([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],_0x19c160[_0x1b46ef([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],_0x19c160[_0x1b46ef([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 _0x2588c8=new Uint8Array(0x10);for(let _0x4ed807=0xf;_0x4ed807>=0x0;--_0x4ed807)_0x2588c8[_0x4ed807]=_0x53d749%0x100,_0x53d749=parseInt(_0x53d749/0x100);let _0x5a6ceb=null,_0x3c3de8=0x10;const _0x48e44f=new Uint8Array(_0x2eb27c),_0x4a6e36=[],_0x112c44=[];_0x529f2();for(let _0x1efe32=0x0;_0x1efe32<_0x49f84e[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1efe32++)0x10===_0x3c3de8&&(_0x5a6ceb=_0xc1ad9b(_0x2588c8),_0x3c3de8=0x0,_0x70293b(_0x2588c8)),_0x49f84e[_0x1efe32]^=_0x5a6ceb[_0x3c3de8++];return _0x49f84e;function _0x4114a7(_0x2a2e3e){const _0x4ae27d=[];for(let _0x905ca6=0x0;_0x905ca6<_0x2a2e3e[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x905ca6+=0x4)_0x4ae27d[_0x1b46ef([0x70,0x75,0x73,0x68])](_0x2a2e3e[_0x905ca6]<<0x18|_0x2a2e3e[_0x905ca6+0x1]<<0x10|_0x2a2e3e[_0x905ca6+0x2]<<0x8|_0x2a2e3e[_0x905ca6+0x3]);return _0x4ae27d;}function _0x70293b(_0x1ed523){for(let _0x19ce71=0xf;_0x19ce71>=0x0;_0x19ce71--){if(0xff!==_0x1ed523[_0x19ce71]){_0x1ed523[_0x19ce71]++;break;}_0x1ed523[_0x19ce71]=0x0;}}function _0xc1ad9b(_0x3f9626){const _0x28e689=_0x4a6e36[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x1,_0x20e110=[0x0,0x0,0x0,0x0];let t=_0x4114a7(_0x3f9626);for(let _0x48e539=0x0;_0x48e539<0x4;_0x48e539++)t[_0x48e539]^=_0x4a6e36[0x0][_0x48e539];for(let _0x366a8e=0x1;_0x366a8e<_0x28e689;_0x366a8e++){for(let _0x558e1c=0x0;_0x558e1c<0x4;_0x558e1c++)_0x20e110[_0x558e1c]=_0x19c160[_0x1b46ef([0x54,0x31])][t[_0x558e1c]>>0x18&0xff]^_0x19c160[_0x1b46ef([0x54,0x32])][t[(_0x558e1c+0x1)%0x4]>>0x10&0xff]^_0x19c160[_0x1b46ef([0x54,0x33])][t[(_0x558e1c+0x2)%0x4]>>0x8&0xff]^_0x19c160[_0x1b46ef([0x54,0x34])][0xff&t[(_0x558e1c+0x3)%0x4]]^_0x4a6e36[_0x366a8e][_0x558e1c];t=_0x20e110[_0x1b46ef([0x73,0x6c,0x69,0x63,0x65])]();}const _0x2573e5=new Uint8Array(0x10);let _0x15a6fe;for(let _0x25c9f8=0x0;_0x25c9f8<0x4;_0x25c9f8++)_0x15a6fe=_0x4a6e36[_0x28e689][_0x25c9f8],_0x2573e5[0x4*_0x25c9f8]=0xff&(_0x19c160[_0x1b46ef([0x53])][t[_0x25c9f8]>>0x18&0xff]^_0x15a6fe>>0x18),_0x2573e5[0x4*_0x25c9f8+0x1]=0xff&(_0x19c160[_0x1b46ef([0x53])][t[(_0x25c9f8+0x1)%0x4]>>0x10&0xff]^_0x15a6fe>>0x10),_0x2573e5[0x4*_0x25c9f8+0x2]=0xff&(_0x19c160[_0x1b46ef([0x53])][t[(_0x25c9f8+0x2)%0x4]>>0x8&0xff]^_0x15a6fe>>0x8),_0x2573e5[0x4*_0x25c9f8+0x3]=0xff&(_0x19c160[_0x1b46ef([0x53])][0xff&t[(_0x25c9f8+0x3)%0x4]]^_0x15a6fe);return _0x2573e5;}function _0x529f2(){const _0x65e463=_0x19c160[_0x1b46ef([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])][_0x48e44f[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]];for(let _0x4ca2d8=0x0;_0x4ca2d8<=_0x65e463;_0x4ca2d8++)_0x4a6e36[_0x1b46ef([0x70,0x75,0x73,0x68])]([0x0,0x0,0x0,0x0]),_0x112c44[_0x1b46ef([0x70,0x75,0x73,0x68])]([0x0,0x0,0x0,0x0]);const _0x491309=0x4*(_0x65e463+0x1),_0x6fde45=_0x48e44f[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]/0x4,_0x4d86ce=_0x4114a7(_0x48e44f);let _0x4f7c6b;for(let _0x1f1bf2=0x0;_0x1f1bf2<_0x6fde45;_0x1f1bf2++)_0x4f7c6b=_0x1f1bf2>>0x2,_0x4a6e36[_0x4f7c6b][_0x1f1bf2%0x4]=_0x4d86ce[_0x1f1bf2],_0x112c44[_0x65e463-_0x4f7c6b][_0x1f1bf2%0x4]=_0x4d86ce[_0x1f1bf2];let _0x3789ef,_0x50a863=0x0,t=_0x6fde45;for(;t<_0x491309;){_0x3789ef=_0x4d86ce[_0x6fde45-0x1],_0x4d86ce[0x0]^=_0x19c160[_0x1b46ef([0x53])][_0x3789ef>>0x10&0xff]<<0x18^_0x19c160[_0x1b46ef([0x53])][_0x3789ef>>0x8&0xff]<<0x10^_0x19c160[_0x1b46ef([0x53])][0xff&_0x3789ef]<<0x8^_0x19c160[_0x1b46ef([0x53])][_0x3789ef>>0x18&0xff]^_0x19c160[_0x1b46ef([0x72,0x63,0x6f,0x6e])][_0x50a863]<<0x18,_0x50a863+=0x1;for(let _0x5b5bc4=0x1;_0x5b5bc4<_0x6fde45/0x2;_0x5b5bc4++)_0x4d86ce[_0x5b5bc4]^=_0x4d86ce[_0x5b5bc4-0x1];_0x3789ef=_0x4d86ce[_0x6fde45/0x2-0x1],_0x4d86ce[_0x6fde45/0x2]^=_0x19c160[_0x1b46ef([0x53])][0xff&_0x3789ef]^_0x19c160[_0x1b46ef([0x53])][_0x3789ef>>0x8&0xff]<<0x8^_0x19c160[_0x1b46ef([0x53])][_0x3789ef>>0x10&0xff]<<0x10^_0x19c160[_0x1b46ef([0x53])][_0x3789ef>>0x18&0xff]<<0x18;for(let _0x5f4c4f=_0x6fde45/0x2+0x1;_0x5f4c4f<_0x6fde45;_0x5f4c4f++)_0x4d86ce[_0x5f4c4f]^=_0x4d86ce[_0x5f4c4f-0x1];let _0x13b06b,_0x1d4fa5,_0x4600a0=0x0;for(;_0x4600a0<_0x6fde45&&t<_0x491309;)_0x13b06b=t>>0x2,_0x1d4fa5=t%0x4,_0x4a6e36[_0x13b06b][_0x1d4fa5]=_0x4d86ce[_0x4600a0],_0x112c44[_0x65e463-_0x13b06b][_0x1d4fa5]=_0x4d86ce[_0x4600a0++],t++;}for(let _0xc59f67=0x1;_0xc59f67<_0x65e463;_0xc59f67++)for(let _0xce77f5=0x0;_0xce77f5<0x4;_0xce77f5++)_0x3789ef=_0x112c44[_0xc59f67][_0xce77f5],_0x112c44[_0xc59f67][_0xce77f5]=_0x19c160[_0x1b46ef([0x55,0x31])][_0x3789ef>>0x18&0xff]^_0x19c160[_0x1b46ef([0x55,0x32])][_0x3789ef>>0x10&0xff]^_0x19c160[_0x1b46ef([0x55,0x33])][_0x3789ef>>0x8&0xff]^_0x19c160[_0x1b46ef([0x55,0x34])][0xff&_0x3789ef];}}function _0x1b46ef(_0x52fc68){return _0x52fc68['map'](_0x12dbf1=>String['fromCharCode'](_0x12dbf1))['join']('');}(_0x375226=>{function _0x386d67(){const _0x20e067=[{[_0x1b46ef([0x69,0x64])]:0x1,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]:[{[_0x1b46ef([0x69,0x64])]:0x2,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x54,0x72,0x61,0x63,0x6b,0x20,0x43,0x68,0x61,0x6e,0x67,0x65,0x73]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([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]),[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x1b46ef([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x1b46ef([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}}],[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x1b46ef([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x1b46ef([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}},{[_0x1b46ef([0x69,0x64])]:0x3,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x50,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x50,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x6f,0x6f,0x6b,0x75,0x70]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x1b46ef([0x69,0x64])]:0x4,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x20,0x48,0x69,0x73,0x74,0x6f,0x72,0x79]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([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]),[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x1b46ef([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x1b46ef([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}},{[_0x1b46ef([0x69,0x64])]:0x5,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x20,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x55,0x49]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([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]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x66,0x67,0x69])]:[0xc]}},{[_0x1b46ef([0x69,0x64])]:0x6,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x46,0x6f,0x72,0x6d,0x61,0x74,0x20,0x50,0x61,0x69,0x6e,0x74,0x65,0x72]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x46,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x55,0x49]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x66,0x67,0x69])]:[0xc]}},{[_0x1b46ef([0x69,0x64])]:0x7,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x53,0x6c,0x61,0x73,0x68,0x20,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x53,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x55,0x49]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x66,0x67,0x69])]:[0xc]}},{[_0x1b46ef([0x69,0x64])]:0x8,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x54,0x61,0x62,0x6c,0x65,0x20,0x6f,0x66,0x20,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x54,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([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]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x66,0x67,0x69])]:[0xc]}},{[_0x1b46ef([0x69,0x64])]:0x9,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x55,0x49]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x66,0x67,0x69])]:[0xc,0xe]}},{[_0x1b46ef([0x69,0x64])]:0xa,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([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]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([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]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([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]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x66,0x67,0x69])]:[0xc]}},{[_0x1b46ef([0x69,0x64])]:0xb,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x41,0x49,0x20,0x41,0x73,0x73,0x69,0x73,0x74,0x61,0x6e,0x74]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x41,0x49,0x41,0x73,0x73,0x69,0x73,0x74,0x61,0x6e,0x74,0x55,0x49]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x1b46ef([0x69,0x64])]:0xc,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x50,0x72,0x6f,0x64,0x75,0x63,0x74,0x69,0x76,0x69,0x74,0x79,0x20,0x70,0x61,0x63,0x6b])},{[_0x1b46ef([0x69,0x64])]:0xd,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x43,0x61,0x73,0x65,0x20,0x43,0x68,0x61,0x6e,0x67,0x65]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x43,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x55,0x49]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x66,0x67,0x69])]:[0xc]}},{[_0x1b46ef([0x69,0x64])]:0xe,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x44,0x72,0x75,0x70,0x61,0x6c,0x20,0x70,0x61,0x63,0x6b]),[_0x1b46ef([0x66,0x6f,0x72,0x62,0x69,0x64,0x64,0x65,0x6e,0x48,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([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])},{[_0x1b46ef([0x69,0x64])]:0xf,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x4d,0x75,0x6c,0x74,0x69,0x20,0x4c,0x65,0x76,0x65,0x6c,0x20,0x4c,0x69,0x73,0x74]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x4d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x1b46ef([0x69,0x64])]:0x10,[_0x1b46ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x4d,0x65,0x72,0x67,0x65,0x20,0x46,0x69,0x65,0x6c,0x64,0x73]),[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x1b46ef([0x4d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x55,0x49]),[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x1b46ef([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x1b46ef([0x66,0x67,0x69])]:[0xc]}}];return _0x37ae53(_0x20e067),_0x20e067;function _0x13d742(_0x38a55d){return 0x1<<_0x38a55d-0x1;}function _0x37ae53(_0x4bac24){_0x4bac24[_0x1b46ef([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30b4cf=>{_0x30b4cf[_0x1b46ef([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]=_0x13d742(_0x30b4cf[_0x1b46ef([0x69,0x64])]),_0x1119a3(_0x30b4cf)&&_0x30b4cf[_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]&&_0x37ae53(_0x30b4cf[_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]);});}}function _0x1119a3(_0x19ad4e){return _0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])in _0x19ad4e;}const _0xc70a57=[0x1,0x55,0x4e,0x73,0xc6,0xff,0x32,0x70,0x53,0x57,0xa1],_0x335786=[0x7f,0x22,0x6,0xd3,0xa7,0x56,0x92,0xc7,0x84,0xa0,0x12];function _0x16f40c(_0x104d25){const _0x52f3aa=[0x1d,0xdd,0xaf,0x5a,0xe7,0x85,0xef,0xf0,0x4b,0xb4];return _0x152147(_0x104d25,new Uint8Array([..._0xc70a57,..._0x52f3aa,..._0x335786]));}function _0x152147(_0x248cd9,_0x1d3e10){const _0x51d728=_0x23181c(_0x248cd9),_0x4b2b62=Array[_0x1b46ef([0x66,0x72,0x6f,0x6d])](_0x11c090(_0x51d728)),_0x5d13bb=_0x4b2b62[_0x1b46ef([0x70,0x6f,0x70])](),_0x1a61e8=_0x4b2b62[_0x1b46ef([0x70,0x6f,0x70])]();return _0x30979d(_0x446b52(_0x4b2b62,_0x1d3e10,_0x1a61e8+0x100*_0x5d13bb));}function _0x23181c(_0x5334f1){const _0x342933=atob(_0x5334f1),[_0x329e74,_0x3a1d5c]=_0x342933[_0x1b46ef([0x73,0x70,0x6c,0x69,0x74])](_0x1b46ef([0x2d]));try{if(atob(_0x3a1d5c))return atob(_0x329e74);}catch(_0x343e52){}return _0x342933;}function _0x506749(_0x4ecc3e){try{const _0x2dd593=_0x16f40c(_0x4ecc3e),_0x3f9b48=JSON[_0x1b46ef([0x70,0x61,0x72,0x73,0x65])](_0x2dd593),_0x3830aa=parseInt(_0x3f9b48[_0x1b46ef([0x31])]),_0x5cf79c=_0x3f9b48[_0x1b46ef([0x32])]||'',_0x1f8d2f=parseInt(_0x3f9b48[_0x1b46ef([0x33])]),_0x531849=parseInt(_0x3f9b48[_0x1b46ef([0x34])])||0x0,_0x3a1f9a=parseInt(_0x3f9b48[_0x1b46ef([0x35])])||0x0;return{[_0x1b46ef([0x70,0x72,0x6f,0x64,0x75,0x63,0x74,0x4e,0x61,0x6d,0x65])]:_0x5cf79c,[_0x1b46ef([0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x50,0x6c,0x75,0x67,0x69,0x6e,0x73])]:_0x531849,[_0x1b46ef([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])]:_0x3830aa,[_0x1b46ef([0x69,0x73,0x54,0x72,0x69,0x61,0x6c])]:_0x1f8d2f,[_0x1b46ef([0x69,0x73,0x49,0x6e,0x74,0x65,0x72,0x6e,0x61,0x6c])]:_0x3a1f9a};}catch(_0x577076){return null;}}const _0x16fe2f=_0x386d67(),_0x3762cb={[_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])]:_0x2330b6,[_0x1b46ef([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])]:_0x374f65,[_0x1b46ef([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])]:_0x34c52c},_0xe5e800=_0x375226[_0x1b46ef([0x63,0x6f,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x6f,0x72])][_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])],_0x4fc31b=_0x1b46ef([0x63,0x6f,0x6e,0x74,0x65,0x78,0x74])in _0x375226?_0x375226['context']:_0x375226['editor'],_0x29f3cf=_0x1b46ef([0x34,0x30,0x34,0x38,0x32,0x32,0x31,0x32]),_0x366e1b=_0x1b46ef([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]),_0x703161=_0x4fc31b['config']['get'](_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x447d9c=_0x16fe2f[_0x1b46ef([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1119a3)[_0x1b46ef([0x66,0x69,0x6e,0x64])](_0x171d07=>_0x171d07[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]===_0xe5e800);function _0x4504eb(_0x179a32,_0x2b3171){_0x3762cb[_0x2b3171[_0x1b46ef([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]](_0x179a32,_0x2b3171),_0x2b3171[_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]&&_0x2b3171[_0x1b46ef([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])][_0x1b46ef([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4150d4=>_0x119a65(_0x4fc31b,_0x4150d4[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]))[_0x1b46ef([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22cfef=>_0x4504eb(_0x179a32,_0x22cfef));}function _0x2330b6(_0x45b582,_0x25f348){_0x3ecd5e(_0x5bf13f(_0x45b582,_0x25f348),_0x25f348);}function _0x374f65(_0x428236,_0x1265c4){function _0x57a085(_0xfe8374,_0x4849b6){try{if(_0x119a65(_0x4fc31b,_0x1b46ef([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))&&_0xfe8374){const _0x3685eb=_0x5ba041(_0x4fc31b,_0x1b46ef([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))[_0x1b46ef([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])];if(parseInt(_0x3685eb)/0x2>_0xfe8374[_0x1b46ef([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])])return _0x38c3b6(_0x4849b6[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}return _0x5bf13f(_0xfe8374,_0x4849b6);}catch(_0x5a0b57){return _0x38c3b6(_0x4849b6[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}_0x3ecd5e(_0x57a085(_0x428236,_0x1265c4),_0x1265c4);}function _0x34c52c(_0x186fa1,_0x7c6874){const _0x2f9df0=_0x335786[0x0]*_0xc70a57[0x1],_0x3743bd=_0x335786[0x0]*_0xc70a57[0x2],_0x3fa09f=_0x335786[0x2]*_0xc70a57[0x2];_0x119a65(_0x4fc31b,_0x1b46ef([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5ba041(_0x4fc31b,_0x1b46ef([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1b46ef([0x73,0x74,0x61,0x74,0x65])]==_0x1b46ef([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64])&&(window[_0x26a69a()]=_0x3fa09f);function _0x1e30cf(_0x4b120d,_0x2f6963){try{return _0x58b926()?_0x38c3b6(_0x2f6963[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x56,0x61,0x6c,0x69,0x64])):_0x5bf13f(_0x4b120d,_0x2f6963);}catch(_0x574d07){return _0x38c3b6(_0x2f6963[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}function _0x457dcf(_0x1af79b,_0x8d1bbb){const _0x180731=0x7;if(_0x1af79b==_0x8d1bbb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]))_0x44cca4();else{if(_0x1af79b==_0x8d1bbb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x54,0x72,0x69,0x61,0x6c])){const _0x38957e=_0x46cda2();_0x38957e&&_0x134413(_0x38957e,_0x8d1bbb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);const _0x5e4954=_0x51cc0c();window[_0x1b46ef([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](()=>{_0x134413(_0x1b46ef([0x74,0x69,0x6d,0x65]),_0x8d1bbb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);},_0x5e4954);const _0x1a96df=_0x5ba041(_0x4fc31b,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x1b46ef([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];_0x1a96df[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x180731?_0x134413(_0x1b46ef([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]),_0x8d1bbb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]):_0x1a96df['on'](_0x1b46ef([0x61,0x64,0x64]),()=>{_0x1a96df[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x180731&&_0x134413(_0x1b46ef([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]),_0x8d1bbb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);});}}}function _0x46cda2(){if(!_0x119a65(_0x4fc31b,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72])))return!0x1;for(const _0x298734 in window)if(Number['isNaN'](Number(_0x298734))){if(window[_0x298734]===_0x2f9df0)return _0x1b46ef([0x74,0x69,0x6d,0x65]);if(window[_0x298734]===_0x3743bd)return _0x1b46ef([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]);}return!0x1;}function _0x58b926(){if(!_0x119a65(_0x4fc31b,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72])))return!0x1;for(const _0x58d46e in window)if(Number['isNaN'](Number(_0x58d46e))&&window[_0x58d46e]===_0x3fa09f)return!0x0;return!0x1;}function _0x134413(_0x47be63,_0x48ae8c){_0x44cca4(),_0x38c3b6(_0x48ae8c+_0x1b46ef([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a])+_0x47be63),window[_0x26a69a()]=_0x47be63===_0x1b46ef([0x74,0x69,0x6d,0x65])?_0x2f9df0:_0x3743bd;}function _0x51cc0c(){let _0x4cf4bb=_0x335786[0x6]*_0xc70a57[0x8]*_0xc70a57[0x6];return _0x119a65(_0x4fc31b,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&(_0x4cf4bb/=0xa),_0x4cf4bb;}function _0x44cca4(){const _0x1da7ab=_0x4fc31b;function _0xd69321(){_0x119a65(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))&&(_0x5ba041(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x1b46ef([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1b46ef([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5ba041(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x1b46ef([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5ba041(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x1b46ef([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x53080a,_0x5ba041(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x1b46ef([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x53080a,_0x1da7ab[_0x1b46ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b46ef([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53080a,_0x1da7ab[_0x1b46ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b46ef([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53080a,_0x1da7ab[_0x1b46ef([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b46ef([0x6d,0x6f,0x64,0x65,0x6c]))),_0x119a65(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&(_0x5ba041(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x1b46ef([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1b46ef([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5ba041(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x1b46ef([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5ba041(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x1b46ef([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x53080a,_0x5ba041(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x1b46ef([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x53080a);}_0x1da7ab[_0x1b46ef([0x73,0x74,0x61,0x74,0x65])]==_0x1b46ef([0x72,0x65,0x61,0x64,0x79])?_0xd69321():_0x1da7ab[_0x1b46ef([0x6f,0x6e,0x63,0x65])](_0x1b46ef([0x72,0x65,0x61,0x64,0x79]),()=>{if(_0x119a65(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))&&_0xd69321(),_0x119a65(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x433853=_0x5ba041(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79])),_0x5bd302=_0x433853['getRevision'](0x0),_0xe19a2c=_0x433853['getEarlierVisibleRevision'](_0x5bd302[_0x1b46ef([0x69,0x64])]);_0x5ba041(_0x1da7ab,_0x1b46ef([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x1b46ef([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5bd302[_0x1b46ef([0x69,0x64])],_0xe19a2c?_0xe19a2c[_0x1b46ef([0x69,0x64])]:null,0x1)['then'](()=>_0xd69321());}});}_0x457dcf(_0x1e30cf(_0x186fa1,_0x7c6874),_0x7c6874);}function _0x5bf13f(_0x5d41b3,_0x2eec5e){try{return _0x491a34(_0x2eec5e)?_0x38c3b6(_0x2eec5e[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x56,0x61,0x6c,0x69,0x64])):_0x5d41b3&&_0x4214c0(_0x5d41b3[_0x1b46ef([0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x50,0x6c,0x75,0x67,0x69,0x6e,0x73])],_0x2eec5e)?_0x5d41b3[_0x1b46ef([0x69,0x73,0x49,0x6e,0x74,0x65,0x72,0x6e,0x61,0x6c])]&&!window[_0x1b46ef([0x6f,0x70,0x65,0x6e])][_0x1b46ef([0x63,0x6c,0x6f,0x73,0x65,0x64])]||parseInt(_0x29f3cf)/0x2>_0x5d41b3[_0x1b46ef([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])]?_0x38c3b6(_0x2eec5e[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])):_0x5d41b3[_0x1b46ef([0x69,0x73,0x54,0x72,0x69,0x61,0x6c])]?_0x38c3b6(_0x2eec5e[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x54,0x72,0x69,0x61,0x6c])):_0x38c3b6(_0x2eec5e[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x56,0x61,0x6c,0x69,0x64])):_0x38c3b6(_0x2eec5e[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}catch(_0xcd81f8){return _0x38c3b6(_0x2eec5e[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}function _0x3ecd5e(_0x4b2c64,_0x3d0cfb){if(_0x4fc31b instanceof _0x2401c5){const _0x13f960=_0x4fc31b;_0x4b2c64==_0x3d0cfb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?_0x38f0ed(_0x13f960):_0x4b2c64==_0x3d0cfb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x54,0x72,0x69,0x61,0x6c])&&window[_0x1b46ef([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](()=>{_0x38f0ed(_0x13f960),_0x38c3b6(_0x3d0cfb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x74,0x69,0x6d,0x65]));},_0x335786[0x6]*_0xc70a57[0x8]*_0xc70a57[0x6]),_0x13f960[_0x1b46ef([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])][_0x1b46ef([0x6f,0x6e])](_0x1b46ef([0x61,0x64,0x64]),(_0x4bd76d,_0x16c1d7)=>{_0x4b2c64!=_0x3d0cfb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])&&_0x4b2c64!=_0x3d0cfb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x74,0x69,0x6d,0x65])&&_0x4b2c64!=_0x3d0cfb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x6f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73])||_0x8eb479(_0x16c1d7);});}else{const _0x5b41cc=_0x4fc31b;_0x4b2c64==_0x3d0cfb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?_0x8eb479(_0x5b41cc):_0x4b2c64==_0x3d0cfb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x54,0x72,0x69,0x61,0x6c])&&_0x5b41cc[_0x1b46ef([0x6f,0x6e])](_0x1b46ef([0x72,0x65,0x61,0x64,0x79]),()=>{let _0x5e2655=0x0;_0x5b41cc[_0x1b46ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b46ef([0x6f,0x6e])](_0x1b46ef([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41da17,_0x9fad4)=>{_0x9fad4[0x0][_0x1b46ef([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e2655++,0x1f8===_0x5e2655&&(_0x8eb479(_0x5b41cc),_0x38c3b6(_0x3d0cfb[_0x1b46ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x1b46ef([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x6f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73])),_0x41da17[_0x1b46ef([0x6f,0x66,0x66])]());},{'priority':_0x1b46ef([0x68,0x69,0x67,0x68,0x65,0x73,0x74])});});}}function _0x38c3b6(_0x78a4a8){const _0x4aaecc=_0x26a69a();return _0x4fc31b[_0x4aaecc]=_0x78a4a8,_0x78a4a8;}function _0x26a69a(){const _0x52e82c=String(window[_0x1b46ef([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b46ef([0x6e,0x6f,0x77])]())[_0x1b46ef([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b46ef([0x2e]),'');let _0x32b5fa='';for(let _0x5a2f4e=0x0;_0x5a2f4e<_0x52e82c[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a2f4e+=0x2){let _0x52f90b=parseInt(_0x52e82c[_0x1b46ef([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a2f4e,_0x5a2f4e+0x2));_0x52f90b>=_0x366e1b[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52f90b-=_0x366e1b[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32b5fa+=_0x366e1b[_0x52f90b];}return _0x32b5fa;}function _0x38f0ed(_0xe00ff8){for(const _0x2d809a of _0xe00ff8[_0x1b46ef([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])])_0x8eb479(_0x2d809a);_0x5ba041(_0xe00ff8,_0x1b46ef([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x1b46ef([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])](!0x0),_0x5ba041(_0xe00ff8,_0x1b46ef([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x1b46ef([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])]=_0x53080a;}function _0x8eb479(_0x16744c){function _0x4063fb(){_0x16744c[_0x1b46ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b46ef([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53080a,_0x16744c[_0x1b46ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b46ef([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53080a,_0x16744c[_0x1b46ef([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b46ef([0x6d,0x6f,0x64,0x65,0x6c]));}_0x16744c[_0x1b46ef([0x73,0x74,0x61,0x74,0x65])]==_0x1b46ef([0x72,0x65,0x61,0x64,0x79])?_0x4063fb():_0x16744c[_0x1b46ef([0x6f,0x6e,0x63,0x65])](_0x1b46ef([0x72,0x65,0x61,0x64,0x79]),()=>_0x4063fb());}function _0x53080a(){return null;}function _0x4214c0(_0x424864,_0x4886f4){const _0x599901=!!(_0x424864&_0x4886f4[_0x1b46ef([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]),_0xf2ca19=_0x5a26d9(_0x424864,_0x4886f4);return _0x599901||_0xf2ca19;}function _0x5a26d9(_0x25c609,_0x40a89d){const _0x391894=(_0x40a89d[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]||{})[_0x1b46ef([0x66,0x67,0x69])]||null;return!!_0x391894&&_0x16fe2f[_0x1b46ef([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fae40=>_0x391894[_0x1b46ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fae40[_0x1b46ef([0x69,0x64])]))[_0x1b46ef([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fb02d=>!_0x552972(_0x2fb02d))[_0x1b46ef([0x73,0x6f,0x6d,0x65])](_0x292462=>!!(_0x25c609&_0x292462[_0x1b46ef([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]));}function _0x552972(_0x34c2c8){const _0x51eddb={[_0x1b46ef([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])]:_0x5e8ace};return!!_0x34c2c8['forbiddenHandler']&&_0x51eddb[_0x34c2c8['forbiddenHandler']]();}function _0x5e8ace(){return!window[_0x1b46ef([0x44,0x72,0x75,0x70,0x61,0x6c])]||!_0x119a65(_0x4fc31b,_0x1b46ef([0x64,0x72,0x75,0x70,0x61,0x6c,0x50,0x6f,0x77,0x65,0x72,0x65,0x64,0x42,0x79]));}function _0x491a34(_0x2b303a){if(!_0x119a65(_0x4fc31b,_0x2b303a[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]))return!0x0;const _0xdcc0af=_0x2b303a[_0x1b46ef([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]||{},_0x441bb0=_0xdcc0af[_0x1b46ef([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]||!0x1,_0x3f4b04=_0xdcc0af[_0x1b46ef([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]||!0x1,_0x512dc6=_0xdcc0af[_0x1b46ef([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]||!0x1;if(_0x119a65(_0x4fc31b,_0x1b46ef([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5ba041(_0x4fc31b,_0x1b46ef([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1b46ef([0x73,0x74,0x61,0x74,0x65])]==_0x1b46ef([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64])&&_0x441bb0)return!0x0;if(_0x119a65(_0x4fc31b,_0x1b46ef([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]))&&_0x5ba041(_0x4fc31b,_0x1b46ef([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]))[_0x1b46ef([0x72,0x65,0x73,0x75,0x6c,0x74])]==_0x1b46ef([0x65,0x6e,0x64])&&_0x3f4b04)return!0x0;return!(!_0x119a65(_0x4fc31b,_0x1b46ef([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]))||_0x5ba041(_0x4fc31b,_0x1b46ef([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]))[_0x1b46ef([0x72,0x65,0x73,0x75,0x6c,0x74])]!=_0x1b46ef([0x65,0x6e,0x64])||!_0x512dc6);}function _0x119a65(_0x4131d6,_0x12bb79){return _0x4131d6[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1b46ef([0x68,0x61,0x73])](_0x12bb79);}function _0x5ba041(_0x4d0351,_0x5c84a8){return _0x4d0351[_0x1b46ef([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1b46ef([0x67,0x65,0x74])](_0x5c84a8);}function _0x30979d(_0x239685){let _0x2dec9d='';for(const _0x53d784 of _0x239685)_0x2dec9d+=String[_0x1b46ef([0x66,0x72,0x6f,0x6d,0x43,0x68,0x61,0x72,0x43,0x6f,0x64,0x65])](_0x53d784);return _0x2dec9d;}function _0x11c090(_0x49afa2){const _0x32c8f8=new Uint8Array(_0x49afa2[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]);for(let _0x28e51e=0x0;_0x28e51e<_0x49afa2[_0x1b46ef([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28e51e++)_0x32c8f8[_0x28e51e]=_0x49afa2[_0x1b46ef([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28e51e);return _0x32c8f8;}_0x447d9c&&_0x4504eb(_0x506749(_0x703161),_0x447d9c);})(_0x3891f6);}(this);}set['adapter'](_0x4dad86){if(this['_adapter'])throw new _0x4cd5c0('commentsrepository-adapter-already-set');this['_adapter']=_0x4dad86;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x230a3e=bt,threadId:_0x118b39=_0x1f2324(),comments:_0x39f001=[],unlinkedAt:_0x27d477=null,resolvedAt:_0x7bf58a=null,resolvedBy:_0xa79b66=null,target:_0x58cd02=null,context:_0x44e4be=null,attributes:_0x5debf5={},isResolvable:_0x5bcf02=!0x0,isSubmitted:_0xe8ea5c=!0x1,isFromAdapter:_0x499866=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x230a3e),{'channelId':_0x230a3e,'threadId':_0x118b39,'comments':_0x39f001,'unlinkedAt':_0x27d477,'resolvedAt':_0x7bf58a,'resolvedBy':_0xa79b66,'target':_0x58cd02,'context':_0x44e4be,'attributes':_0x5debf5,'isFromAdapter':_0x499866,'isResolvable':_0x5bcf02,'isSubmitted':_0xe8ea5c}),this['getCommentThread'](_0x118b39);}['openNewCommentThread']({channelId:_0x44b828=bt,threadId:_0x436ba6=_0x1f2324(),target:_0x5be433,context:_0x1a62ca=null,isResolvable:_0x26aa0f=!0x0}){if(this['_readOnlyChannels']['has'](_0x44b828)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x5be433)throw new _0x4cd5c0('commentsrepository-missing-target');const _0x2e5b4a=this['addCommentThread']({'channelId':_0x44b828,'threadId':_0x436ba6,'target':_0x5be433,'context':_0x1a62ca,'isResolvable':_0x26aa0f});if(!_0x2e5b4a)return null;const _0x591e0d=this['_threadToController']['get'](_0x2e5b4a),_0x21581c=_0x591e0d['view']['commentThreadInputView']['commentInputView'],_0x4d77c5=this['context']['plugins']['get'](N),_0x109806=_0x4d77c5['getByInnerView'](_0x591e0d['view']);return _0x4d77c5['activate'](_0x109806),_0x21581c['once']('editorReady',()=>_0x21581c['focus']()),_0x2e5b4a;}['hasCommentThread'](_0x2819ec){if('string'!=typeof _0x2819ec)throw new _0x4cd5c0('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2819ec);}['updateCommentThread']({channelId:_0x299a9a=bt,threadId:_0x754162,context:_0x1aec17,unlinkedAt:_0x3ef90a,attributes:_0x2228da,isFromAdapter:_0x1bbda7=!0x1}){return this['fire'](Nt('updateCommentThread',_0x299a9a),{'channelId':_0x299a9a,'threadId':_0x754162,'context':_0x1aec17,'unlinkedAt':_0x3ef90a,'attributes':_0x2228da,'isFromAdapter':_0x1bbda7}),this['getCommentThread'](_0x754162);}['getCommentThread'](_0x28eb45){if('string'!=typeof _0x28eb45)throw new _0x4cd5c0('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x28eb45);}['fetchCommentThread']({channelId:_0x2371e8,threadId:_0x59bda9}={}){const _0x59d8ff=this['getCommentThread'](_0x59bda9);if(_0x59d8ff)return Promise['resolve'](_0x59d8ff);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4cd5c0('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x2371e8,'threadId':_0x59bda9})['then'](_0x506d93=>this['hasCommentThread'](_0x59bda9)?this['getCommentThread'](_0x59bda9):_0x506d93?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x2371e8},_0x506d93)):void 0x0)['catch'](_0x55d971=>{throw console['error'](_0x55d971),new _0x4cd5c0('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x33b10e,skipNotAttached:_0x9ab008=!0x1,skipEmpty:_0x3fa138=!0x1,toJSON:_0x2a8264=!0x1}={}){const _0x2e2e26=[];for(const _0x49c364 of this['_threads']['values']())_0x33b10e&&_0x49c364['channelId']!==_0x33b10e||_0x9ab008&&!_0x49c364['isAttached']||_0x3fa138&&0x0===_0x49c364['length']||_0x2e2e26['push'](_0x49c364);return _0x2a8264?_0x2e2e26['map'](_0x44c8a2=>_0x44c8a2['toJSON']()):_0x2e2e26;}['setActiveCommentThread'](_0x3c019d){const _0x225831=this['context']['plugins']['get'](N);if(!_0x3c019d)return void(this['activeCommentThread']&&_0x225831['deactivateAll']());const _0x506cd8=this['getCommentThread'](_0x3c019d);if(!_0x506cd8)throw new _0x4cd5c0('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3c019d});if(!this['_threadToController']['has'](_0x506cd8))throw new _0x4cd5c0('commentsrepository-active-not-attached',null,{'threadId':_0x3c019d});const _0x34ca58=_0x225831['getByInnerView'](this['_threadToController']['get'](_0x506cd8)['view']);_0x225831['activate'](_0x34ca58);}['switchReadOnly'](_0x263377,_0x1dced8){_0x263377?this['_readOnlyChannels']['add'](_0x1dced8):this['_readOnlyChannels']['delete'](_0x1dced8),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x590903){return this['_readOnlyChannels']['has'](_0x590903)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x3a7e20,_0x811d3d){return new vt(_0x3a7e20,_0x811d3d);}['setPermissions'](_0x58a94d,_0x502cf7=bt){this['_permissions']['set'](_0x502cf7,_0x58a94d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1b7f4=bt){return this['_permissions']['has'](_0x1b7f4)?this['_permissions']['get'](_0x1b7f4):_t;}['_addCommentThread']({channelId:_0x5c4deb,threadId:_0xa445bb,comments:_0x3cb96a,unlinkedAt:_0x2143ea,resolvedAt:_0xd3c0dd,resolvedBy:_0x5969af,target:_0x107990,context:_0x4520fa,attributes:_0x2206bb,isFromAdapter:_0x3c4aeb,isResolvable:_0x357b41,isSubmitted:_0x1ec6b3}){if('string'!=typeof _0xa445bb)throw new _0x4cd5c0('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xa445bb});if(this['hasCommentThread'](_0xa445bb))throw new _0x4cd5c0('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0xa445bb});const _0x2a338e=new ie(this,{'channelId':_0x5c4deb,'id':_0xa445bb,'context':_0x4520fa,'attributes':_0x2206bb,'unlinkedAt':_0x2143ea,'resolvedAt':_0xd3c0dd,'resolvedBy':_0x5969af?this['context']['plugins']['get'](at)['getUser'](_0x5969af):null,'isResolvable':_0x357b41,'isSubmitted':_0x1ec6b3||_0x3c4aeb});this['_threads']['set'](_0xa445bb,_0x2a338e);for(const _0x2186d3 of _0x3cb96a)_0x2a338e['_add'](this['_createNewComment']({'threadId':_0xa445bb,..._0x2186d3}));return _0x107990&&_0x2a338e['attachTo'](_0x107990),_0x3c4aeb||!_0x2a338e['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x5c4deb,'threadId':_0xa445bb});}['_submitCommentThread']({channelId:_0x1b4876,threadId:_0x1d00c1}){if(!this['hasCommentThread'](_0x1d00c1))throw new _0x4cd5c0('commentsrepository-missing-comment-thread',this);const _0x50f6c2=this['getCommentThread'](_0x1d00c1);if(_0x50f6c2['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x3bc17c,comments:_0x3d41c1,resolvedAt:_0x258304,resolvedBy:_0x3ad21b,context:_0x1e72a9,attributes:_0x40764d}=_0x50f6c2,_0x1d7018=this['context']['plugins']['get']('PendingActions'),_0xb2fefa=_0x1d7018['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1b4876,'threadId':_0x3bc17c,'comments':_0x3d41c1['map'](_0x54a3ca=>_0x54a3ca['toJSON']()),'resolvedAt':_0x258304,'resolvedBy':_0x3ad21b?_0x3ad21b['id']:_0x3ad21b,'context':_0x1e72a9,'attributes':_0x40764d})['then'](({comments:_0x52faab})=>{_0x1d7018['remove'](_0xb2fefa);for(const _0x27bddb of _0x52faab)this['_updateComment']({'channelId':_0x1b4876,'threadId':_0x1d00c1,'commentId':_0x27bddb['commentId'],'createdAt':_0x27bddb['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xad892=>{throw console['error'](_0xad892),new _0x4cd5c0('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0xfa56bb,target:_0xe9a758}){const _0x418075=this['getCommentThread'](_0xfa56bb);if(!_0x418075)throw new _0x4cd5c0('commentsrepository-attach-missing-comment-thread',this);const _0x56110d=this['context']['plugins']['get']('PendingActions'),_0x17b83f=this['context']['plugins']['get'](N),_0x37bc50=this['_createCommentThreadView'](_0x418075),_0x464286=new vt(_0x418075,_0x37bc50);let _0x34eecc=null;_0x37bc50['on']('change:isDirty',(_0x19f80a,_0x229cee,_0x5eb057)=>{_0x5eb057?_0x34eecc=_0x56110d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x34eecc&&(_0x56110d['remove'](_0x34eecc),_0x34eecc=null);}),this['_threadToController']['set'](_0x418075,_0x464286),this['_viewToController']['set'](_0x37bc50,_0x464286);const _0x233c5b=new T(this['context']['locale'],_0x37bc50);_0x233c5b['bind']('length')['to'](_0x37bc50),_0x233c5b['bind']('isDirty')['to'](_0x37bc50,'isDirty',_0x37bc50,'length',(_0x3bfcdf,_0x2b03da)=>_0x3bfcdf||!_0x2b03da),_0x233c5b['bind']('isActive')['to'](_0x37bc50),_0x233c5b['type']='comment';const _0x12d846=new d({'view':_0x233c5b,'target':_0xe9a758,'type':'comment','isVisible':!_0x418075['isResolved']});return _0x37bc50['on']('escape',()=>{_0x12d846['fire']('escape');}),this['_bindAnnotationToEditors'](_0x37bc50,_0x12d846),_0x17b83f['add'](_0x12d846),_0x12d846;}['_bindAnnotationToEditors'](_0x27f3e5,_0x4bf0bf){this['listenTo'](_0x27f3e5,'editorReady',(_0x527462,_0xd9513a)=>{const _0x577df7=_0xd9513a['ui']['view']['body']['bodyCollectionContainer'];_0x4bf0bf['focusableElements']['add'](_0x577df7),this['context']instanceof _0x4a0063&&this['context']['ui']['focusTracker']['add'](_0x577df7);},{'priority':'highest'}),this['listenTo'](_0x27f3e5,'editorDestroyed',(_0x1ea0a0,_0x4f5f46)=>{const _0x5113a2=_0x4f5f46['ui']['view']['body']['bodyCollectionContainer'];_0x4bf0bf['focusableElements']['has'](_0x5113a2)&&_0x4bf0bf['focusableElements']['remove'](_0x5113a2),this['context']instanceof _0x4a0063&&this['context']['ui']['focusTracker']['remove'](_0x5113a2);});}['_unbindEditors'](_0x16a21c){this['stopListening'](_0x16a21c,'editorReady'),this['stopListening'](_0x16a21c,'editorDestroyed');}['_createCommentThreadView'](_0x4d46e8){const _0x39cc8b=this['context']['plugins']['get'](at),{config:_0x349689,locale:_0x214f90}=this['context'],_0x1853b4=pt(_0x349689['get']('locale'));return new(0x0,(_0x349689['get']('comments'))['CommentThreadView'])(_0x214f90,_0x4d46e8,_0x39cc8b['me'],{'editorConfig':{..._0x349689['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x349689['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x349689['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x349689['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x349689['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1853b4,'CommentView':_0x349689['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x1a1a54,channelId:_0x46dd90,resolvedAt:_0x39abc9,resolvedBy:_0xf4045c,isFromAdapter:_0x3b1e90}){if(!this['hasCommentThread'](_0x1a1a54))throw new _0x4cd5c0('commentsrepository-missing-comment-thread',null,{'threadId':_0x1a1a54});const _0x34679a=this['getCommentThread'](_0x1a1a54);if(_0x34679a['isResolved'])throw new _0x4cd5c0('commentsrepository-resolved-comment-thread',null,{'threadId':_0x1a1a54});const _0x4250fa=this['context']['plugins']['get'](at);if(_0x34679a['resolvedBy']=_0x4250fa['getUser'](_0xf4045c),_0x34679a['resolvedAt']=_0x39abc9,_0x3b1e90||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0xa22a43=this['context']['plugins']['get']('PendingActions'),_0x4cda03=_0xa22a43['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x46dd90,'threadId':_0x1a1a54})['then'](({resolvedAt:_0x5f509b,resolvedBy:_0x4fe9f5})=>{_0xa22a43['remove'](_0x4cda03),_0x34679a['resolvedBy']['id']!==_0x4fe9f5&&(_0x34679a['resolvedBy']=_0x4250fa['getUser'](_0x4fe9f5)),_0x34679a['resolvedAt']=_0x5f509b;})['catch'](_0x2aac6c=>{throw console['error'](_0x2aac6c),new _0x4cd5c0('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3a3491,channelId:_0x3f6927,isFromAdapter:_0x4b0122}){if(!this['hasCommentThread'](_0x3a3491))throw new _0x4cd5c0('commentsrepository-missing-comment-thread',null,{'threadId':_0x3a3491});const _0x39b2f5=this['getCommentThread'](_0x3a3491);if(!_0x39b2f5['isResolved'])throw new _0x4cd5c0('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3a3491});if(_0x39b2f5['resolvedBy']=null,_0x39b2f5['resolvedAt']=null,_0x4b0122||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2ffff5=this['context']['plugins']['get']('PendingActions'),_0x252265=_0x2ffff5['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x3f6927,'threadId':_0x3a3491})['then'](()=>_0x2ffff5['remove'](_0x252265))['catch'](_0x341b49=>{throw console['error'](_0x341b49),new _0x4cd5c0('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x230d4a,isFromAdapter:_0xbe224c}){const _0x125117=this['getCommentThread'](_0x230d4a);if(!_0x125117)throw new _0x4cd5c0('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x230d4a),this['_threads']['delete'](_0x230d4a),!_0x125117['isSubmitted']||_0xbe224c||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x51d722=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1794da}=_0x125117,_0x22ade6=_0x51d722['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1794da,'threadId':_0x230d4a})['then'](()=>_0x51d722['remove'](_0x22ade6))['catch'](_0x3ec3a4=>{throw console['error'](_0x3ec3a4),new _0x4cd5c0('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x24a714,unlinkedAt:_0x18b161,context:_0x23410f,attributes:_0x2efda8,isFromAdapter:_0x233579}){if('string'!=typeof _0x24a714)throw new _0x4cd5c0('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x24a714});if(!this['hasCommentThread'](_0x24a714))throw new _0x4cd5c0('commentsrepository-missing-comment-thread',null,{'threadId':_0x24a714});const _0x45253a=this['getCommentThread'](_0x24a714);let _0x37c830=!0x1;if(void 0x0!==_0x23410f&&_0x45253a['context']!==_0x23410f&&(_0x45253a['context']=_0x23410f,_0x37c830=!0x0),void 0x0!==_0x18b161&&_0x45253a['unlinkedAt']!==_0x18b161&&(_0x45253a['unlinkedAt']=_0x18b161,_0x37c830=!0x0),_0x2efda8&&!yt(_0x2efda8,_0x45253a['attributes'])&&(_0x45253a['attributes']=_0x2efda8,_0x37c830=!0x0),!_0x37c830)return Promise['resolve']();if(!_0x45253a['isSubmitted']||_0x233579||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0xac874=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3c6e00}=_0x45253a,_0x1f42ef=_0xac874['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x3c6e00,'threadId':_0x24a714,'context':_0x23410f,'unlinkedAt':_0x18b161,'attributes':_0x2efda8})['then'](()=>_0xac874['remove'](_0x1f42ef))['catch'](_0x1672cc=>{throw console['error'](_0x1672cc),new _0x4cd5c0('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1a7bba){const _0x4f88a2=this['context']['plugins']['get'](N),_0x3717a0=this['getCommentThread'](_0x1a7bba);if(this['_threadToController']['has'](_0x3717a0)){const _0x2e4f8e=this['_threadToController']['get'](_0x3717a0),_0xe1a939=_0x2e4f8e['view'],_0x2c3426=_0x4f88a2['getByInnerView'](_0xe1a939);this['_threadToController']['delete'](_0x3717a0),this['_viewToController']['delete'](_0xe1a939),_0x2c3426&&_0x4f88a2['remove'](_0x2c3426),_0x2e4f8e['destroy'](),_0xe1a939['destroy']()['then'](()=>{this['_unbindEditors'](_0xe1a939);});}}['_updateActiveAnnotation']({threadId:_0x3b31f2,resolvedAt:_0x56c9bb}){const _0x1a7977=!!_0x56c9bb,_0xd5e5e1=this['context']['plugins']['get'](N),_0x4009fc=this['getCommentThread'](_0x3b31f2);if(this['_threadToController']['has'](_0x4009fc)){const _0x2c19f5=this['_threadToController']['get'](_0x4009fc)['view'],_0x5e9101=_0xd5e5e1['getByInnerView'](_0x2c19f5);_0x5e9101&&(_0x1a7977&&_0xd5e5e1['_removeActiveAnnotation'](_0x5e9101),_0x5e9101['refreshVisibility']());}}['_getExternalAuthor'](_0x15bc01){const _0x2431f1=this['context']['plugins']['get'](at),_0xc69d42=It('external:'+_0x15bc01),_0x45d392=_0x2431f1['getUser'](_0xc69d42);return _0x45d392||_0x2431f1['addUser']({'id':_0xc69d42,'name':_0x15bc01});}['_createNewComment']({threadId:_0xf29a64,commentId:_0x39b170=_0x1f2324(),content:_0x1b556d,authorId:_0x128105,createdAt:_0x32eea9,attributes:_0x3a8f1f}){if('string'!=typeof _0x39b170)throw new _0x4cd5c0('commentsrepository-invalid-commentid');if('string'!=typeof _0x128105)throw new _0x4cd5c0('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1b556d||!_0x1b556d['trim']())throw new _0x4cd5c0('commentsrepository-invalid-comment-content');const _0x37d8f0=this['context']['plugins']['get'](at)['getUser'](_0x128105);if(!_0x37d8f0)throw new _0x4cd5c0('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x128105});let _0x635fe7=null,_0x5f537d=_0x32eea9;return _0x3a8f1f&&_0x3a8f1f['@external']&&(_0x635fe7=this['_getExternalAuthor'](_0x3a8f1f['@external']['authorName']),_0x5f537d=new Date(_0x3a8f1f['@external']['createdAt'])),new se(this,{'threadId':_0xf29a64,'id':_0x39b170,'author':_0x635fe7||_0x37d8f0,'creator':_0x37d8f0,'content':_0x1b556d,'createdAt':_0x32eea9,'authoredAt':_0x5f537d,'attributes':_0x3a8f1f});}['_addComment'](_0x32cf8b){let {threadId:_0xfcbd69,content:_0x3f4dcf,attributes:_0x37b4f4,isFromAdapter:_0x2ffa1e}=_0x32cf8b;const _0x5b69c8=this['getCommentThread'](_0x32cf8b['threadId']);if(!_0x5b69c8)throw new _0x4cd5c0('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x4b8c00=this['_createNewComment'](_0x32cf8b),{id:_0x49dfda}=_0x4b8c00;if(_0x5b69c8['_add'](_0x4b8c00),_0x2ffa1e||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5b69c8['isSubmitted'])return Promise['resolve']();const _0x4e471e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x45adf2}=_0x5b69c8,_0x1db17c=_0x4e471e['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x37b4f4||(_0x37b4f4={}),this['adapter']['addComment']({'channelId':_0x45adf2,'threadId':_0xfcbd69,'commentId':_0x49dfda,'content':_0x3f4dcf,'attributes':_0x37b4f4})['then'](_0x5df148=>{_0x4e471e['remove'](_0x1db17c),_0x5df148&&this['_updateComment']({'channelId':_0x45adf2,'threadId':_0xfcbd69,'commentId':_0x49dfda,'createdAt':_0x5df148['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x32e9fc=>{throw console['error'](_0x32e9fc),new _0x4cd5c0('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x5462c0,commentId:_0x44050d,content:_0x4ae4b6,createdAt:_0x444958,attributes:_0x47e76a,isFromAdapter:_0xd641f8}){if(void 0x0!==_0x4ae4b6&&('string'!=typeof _0x4ae4b6||!_0x4ae4b6['trim']()['length']))throw new _0x4cd5c0('commentsrepository-update-comment-invalid-content');const _0x109e6d=this['getCommentThread'](_0x5462c0),_0x507ca4=_0x109e6d['getComment'](_0x44050d);if(!_0x507ca4)throw new _0x4cd5c0('commentsrepository-update-missing-comment',this);let _0x27e208=!0x1;if(_0x4ae4b6&&_0x4ae4b6!==_0x507ca4['content']&&(_0x507ca4['isEditable']||_0xd641f8)&&(_0x507ca4['content']=_0x4ae4b6,_0x27e208=!0x0),_0x444958&&_0x444958!==_0x507ca4['createdAt']&&(_0x507ca4['createdAt']=_0x444958,_0x507ca4['attributes']&&_0x507ca4['attributes']['@external']||(_0x507ca4['authoredAt']=_0x444958),_0x27e208=!0x0),_0x47e76a&&!yt(_0x47e76a,_0x507ca4['attributes'])&&(_0x507ca4['attributes']=_0x47e76a,_0x27e208=!0x0),!_0x27e208)return Promise['resolve']();if(_0x109e6d['fire']('commentUpdated'),_0xd641f8||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x35f64a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2804b1}=this['getCommentThread'](_0x507ca4['threadId']),_0x22a46d=_0x35f64a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x2804b1,'threadId':_0x5462c0,'commentId':_0x44050d,'content':_0x4ae4b6,'attributes':_0x47e76a})['then'](()=>_0x35f64a['remove'](_0x22a46d))['catch'](_0x53ea85=>{throw console['error'](_0x53ea85),new _0x4cd5c0('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3e9ee2,commentId:_0x1207db,isFromAdapter:_0x5e555b}){const _0x587e6b=this['getCommentThread'](_0x3e9ee2),_0x42014e=_0x587e6b['getComment'](_0x1207db);if(!_0x42014e)throw new _0x4cd5c0('commentsrepository-remove-missing-comment',this);if(_0x587e6b['_remove'](_0x42014e),_0x5e555b||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x13d534=this['context']['plugins']['get']('PendingActions'),{channelId:_0x392abf}=_0x587e6b,_0x391023=_0x13d534['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x392abf,'threadId':_0x3e9ee2,'commentId':_0x1207db})['then'](()=>_0x13d534['remove'](_0x391023))['catch'](_0x534872=>{throw console['error'](_0x534872),new _0x4cd5c0('commentsrepository-remove-comment-internal-error',this);});}}class ie extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x16103a(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x17ebbb,_0x3d8a60){super();const _0x494cea=_0x17ebbb['context']['plugins']['get'](at)['me'],_0x544d5c=_0x17ebbb['getCommentThread'](_0x3d8a60['threadId']),_0x3874ec=0x0===_0x544d5c['comments']['length'],_0xaea227=_0x494cea===_0x3d8a60['author'];this['id']=_0x3d8a60['id'],this['threadId']=_0x3d8a60['threadId'],this['author']=_0x3d8a60['author'],this['creator']=_0x3d8a60['creator'],this['isExternal']=Boolean(_0x3d8a60['attributes']&&_0x3d8a60['attributes']['@external']),this['set']('content',_0x3d8a60['content']),this['createdAt']=_0x3d8a60['createdAt']||new Date(),this['set']('authoredAt',_0x3d8a60['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x544d5c,'resolvedAt'),this['set']('attributes',_0x3d8a60['attributes']||{}),this['bind']('isEditable')['to'](_0x17ebbb,'_permissions',()=>{const _0x182f87=_0x17ebbb['getPermissions'](_0x544d5c['channelId'])['write'],_0x19965b=_0x17ebbb['getPermissions'](_0x544d5c['channelId'])['modifyAll'];return _0xaea227&&_0x182f87||!_0xaea227&&_0x19965b;}),this['bind']('isRemovable')['to'](_0x544d5c,'isRemovable',_0x17ebbb,'_permissions',_0x2d7ebe=>{const _0x1ecf36=_0x17ebbb['getPermissions'](_0x544d5c['channelId'])['write'],_0xbbdf55=_0x17ebbb['getPermissions'](_0x544d5c['channelId'])['modifyAll'];return _0xaea227&&_0x1ecf36||_0x2d7ebe&&_0x3874ec||!_0xaea227&&_0xbbdf55&&!_0x3874ec;}),this['bind']('isReadOnly')['to'](_0x544d5c,'isReadOnly'),this['_repository']=_0x17ebbb;}get['weight'](){return Math['max'](function(_0x4f0bc6){const _0x1446e9=document['createElement']('div');return _0x1446e9['innerHTML']=_0x4f0bc6,_0x1446e9['textContent']['length'];}(this['content']),0xc8);}['update'](_0x44e839){const {threadId:_0x5e2c25,id:_0x2a89ce}=this;if(!this['_repository']['hasCommentThread'](_0x5e2c25))throw new _0x4cd5c0('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3681a2}=this['_repository']['getCommentThread'](_0x5e2c25);this['_repository']['fire'](Nt('updateComment',_0x3681a2,_0x5e2c25),{'channelId':_0x3681a2,'threadId':_0x5e2c25,'commentId':_0x2a89ce,..._0x44e839});}['setAttribute'](_0x15b1f6,_0x2e6dc7){const _0x230fb9=wt(this['attributes']);At(_0x230fb9,_0x15b1f6,_0x2e6dc7),this['update']({'attributes':_0x230fb9});}['removeAttribute'](_0x4def43){const _0x47a4ba=wt(this['attributes']);Ct(_0x47a4ba,_0x4def43),this['update']({'attributes':_0x47a4ba});}['remove'](_0x5f5279={}){if(!_0x5f5279['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x5e27e1,id:_0x38920a}=this;if(!this['_repository']['hasCommentThread'](_0x5e27e1))throw new _0x4cd5c0('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x59766f}=this['_repository']['getCommentThread'](_0x5e27e1);this['_repository']['fire'](Nt('removeComment',_0x59766f,_0x5e27e1),{'channelId':_0x59766f,'threadId':_0x5e27e1,'commentId':_0x38920a,..._0x5f5279});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x5f9d50,..._0x158ade){for(const _0x10c314 of _0x158ade)void 0x0!==_0x10c314&&(_0x5f9d50+=':'+String(_0x10c314));return _0x5f9d50;}class Q extends _0x28ea17{['refresh'](){const _0x3f65c7=this['editor']['model']['document']['selection'];for(const _0x476bb9 of _0x3f65c7['getRanges']())if(this['_hasContent'](_0x476bb9))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0xd9390=_0x1f2324()}={}){const _0x3763ac=this['editor']['model'],_0x787adf=[];for(const _0xf9284a of _0x3763ac['document']['selection']['getRanges']())this['_hasContent'](_0xf9284a)&&_0x787adf['push'](this['_trimToContent'](_0xf9284a));_0x3763ac['change'](_0x4aeb4a=>{for(const _0x31c634 of _0x787adf){const _0x423084=_0x1f2324()['substr'](0x1,0x5),_0x30b0c0='comment:'+_0xd9390+':'+_0x423084;_0x4aeb4a['addMarker'](_0x30b0c0,{'range':_0x31c634,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x1b5af6){for(const _0x445b5d of _0x1b5af6['getItems']())if(this['_itemIsContent'](_0x445b5d))return!0x0;return!0x1;}['_itemIsContent'](_0x3c7d81){return _0x3c7d81['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3c7d81)&&!_0x3c7d81['is']('element','tableCell');}['_trimToContent'](_0xf9d0b4){const _0x389b86=_0x434b0b=>!this['_itemIsContent'](_0x434b0b['item']),_0x2be1b8=_0xf9d0b4['start']['getLastMatchingPosition'](_0x389b86),_0x62f494=_0xf9d0b4['end']['getLastMatchingPosition'](_0x389b86,{'direction':'backward'});return this['editor']['model']['createRange'](_0x2be1b8,_0x62f494);}}class P extends _0x5825dc{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49e941){super(_0x49e941),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x2650ae=this['editor'],_0x3cbda5=_0x2650ae['model']['document']['selection'],_0x5d77af=_0x42ced3(()=>this['refreshSelectedViews'](),0xa);_0x3cbda5['on']('change:range',(_0x566611,_0x2f5088)=>{_0x2f5088['directChange']&&(_0x5d77af['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x2650ae['editing']['view']['document'],'change:isFocused',(_0x129095,_0x361d46,_0x500494)=>{_0x500494&&_0x5d77af();}),this['listenTo'](_0x2650ae['ui']['focusTracker'],'change:isFocused',(_0x701728,_0x15fb47,_0x13ee68)=>{_0x13ee68||_0x2650ae['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x35e1eb=>this['_editorAnnotationsData']['has'](_0x35e1eb['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x5acd2e){if(this['_editorAnnotations']['has'](_0x5acd2e['view']))return;this['_editorAnnotations']['add'](_0x5acd2e['view']),this['editor']['ui']['focusTracker']['add'](_0x5acd2e['view']['element']);const _0xf0ccfb=this['editor']['plugins']['get'](N);this['listenTo'](_0xf0ccfb['collection'],'remove',(_0x27dd68,_0x29304e)=>{this['editor']['ui']['focusTracker']['remove'](_0x29304e['view']['element']),this['_editorAnnotations']['delete'](_0x29304e['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x26401d){if('function'!=typeof _0x26401d)throw new _0x4cd5c0('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x26401d);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x33fd01,annotations:_0x148181}){const _0x8c9f70=[],_0x304d42=this['editor']['model']['document']['selection'],_0x148628=Array['from'](_0x304d42['getRanges']());for(const [_0x58b9e1,_0x7ef6d]of this['_editorAnnotationsData']){const _0x59923d=_0x1b95cd(_0x7ef6d),_0xd317f5=_0x148181['getByInnerView'](_0x58b9e1);_0x59923d&&_0xd317f5&&_0x8c9f70['push']({'annotation':_0xd317f5,'range':_0x59923d});}function _0x1b95cd(_0x2e48ef){for(const _0x36ac38 of _0x2e48ef)for(const _0x566e2f of _0x148628)if(_0x36ac38['containsRange'](_0x566e2f,!_0x304d42['isCollapsed']))return _0x36ac38;return null;}return _0x8c9f70['sort']((_0x2d9e8d,_0x3d4a5e)=>{const _0x1cd34a=_0x2d9e8d['range'],_0x53ea61=_0x3d4a5e['range'];if(!_0x1cd34a['isEqual'](_0x53ea61)){if(_0x1cd34a['containsRange'](_0x53ea61,!0x0))return 0x1;if(_0x53ea61['containsRange'](_0x1cd34a,!0x0))return-0x1;}return _0x2d9e8d['annotation']==_0x33fd01?-0x1:_0x3d4a5e['annotation']==_0x33fd01?0x1:0x0;})['map'](_0x5ab6e4=>_0x5ab6e4['annotation']);}get['_editorAnnotationsData'](){const _0x23a116=new Map();for(const _0x3d5fd8 of Array['from'](this['_dataCollectors']))for(const [_0x23ffba,_0x34835d]of _0x3d5fd8())_0x23a116['set'](_0x23ffba,_0x34835d);return _0x23a116;}}class ct extends _0x5825dc{['afterInit'](){const _0x15b352=this['editor'];if(!_0x15b352['plugins']['has']('RestrictedEditingModeEditing'))return;_0x15b352['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class mt extends _0x5825dc{constructor(_0x5eb993){super(_0x5eb993),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x227d3=this['editor'],_0x27affe=_0x227d3['commands']['get']('importWord'),_0x552331=_0x227d3['plugins']['get'](at);_0x27affe&&(_0x27affe['on']('execute',(_0x20084b,[,_0x3a1390])=>{_0x3a1390['collaboration_features']={'comments':!0x0,'user_id':_0x552331['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x27affe,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x433b79,_0x5d95b2){const {comment_threads:_0xe39865}=_0x5d95b2;_0xe39865&&_0xe39865['forEach'](({thread_id:_0x44667b,comments:_0x54c17b,is_resolved:_0x14402d})=>{const _0x337ce3=new Date(),_0x2a6869=_0x54c17b['map'](({author:_0x32c69d,content:_0x4bb547,created_at:_0x3d5077})=>({'content':_0x4bb547,'authorId':this['editor']['plugins']['get'](at)['me']['id'],'createdAt':_0x337ce3,'attributes':{'@external':{'authorName':_0x32c69d,'createdAt':_0x3d5077?new Date(_0x3d5077):new Date(),'source':'importWord'}}})),_0x556f63=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x556f63,'threadId':_0x44667b,'comments':_0x2a6869,'resolvedAt':_0x14402d?_0x337ce3:null});});}}class dt extends _0x5825dc{constructor(_0x197b58){super(_0x197b58),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Rt,Mt];}['afterInit'](){const _0x3e3228=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x3e3228,'contentInsertion',(_0x205f08,_0x460668)=>this['_removeMarkersWithoutThreads'](_0x460668['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x30c133){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x30c133;const _0x41daa8=this['editor']['plugins']['get']('CommentsRepository');for(const _0x300362 of _0x30c133['keys']()){const [_0x1ec8da,_0x580b1a]=_0x300362['split'](':');'comment'!=_0x1ec8da||_0x41daa8['hasCommentThread'](_0x580b1a)||_0x30c133['delete'](_0x300362);}return _0x30c133;}['_registerMarkerInClipboardPipeline'](){const _0x3024f4=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3f703e=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3f703e&&_0x3024f4['_registerMarkerToCopy']('comment',_0x3f703e);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x784614){switch(_0x784614){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 _0x5825dc{static get['requires'](){return[o,P,at,ct,mt,dt];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e79fd){super(_0x4e79fd),this['set']('isThreadsLoadingPaused',!0x0),_0x4e79fd['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x451a13,_0x431d68,_0xfcf878,_0x65f0b7)=>{const _0x40761d=_0xfcf878?ne(_0xfcf878)['id']:null;if(_0x4e79fd['model']['change'](()=>{if(_0x40761d){const _0x273d79=this['getAllMarkersForId'](_0x40761d);for(const _0xb8f3a7 of _0x273d79)_0x4e79fd['editing']['reconvertMarker'](_0xb8f3a7);}if(_0x65f0b7){const {id:_0x3c8efb}=ne(_0x65f0b7),_0x41f934=this['getAllMarkersForId'](_0x3c8efb);for(const _0x2431c7 of _0x41f934)_0x4e79fd['editing']['reconvertMarker'](_0x2431c7);}}),_0x40761d){const _0x461166=_0x4e79fd['plugins']['get'](o)['getCommentThread'](_0x40761d);_0x461166&&_0x461166['isResolved']&&this['scrollToThreadMarker'](_0x40761d);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3abdde=this['editor'],_0x235258=_0x3abdde['plugins']['get'](o),_0x4621b7=_0x3abdde['config']['get']('collaboration.channelId');_0x3abdde['commands']['add']('addCommentThread',new Q(_0x3abdde)),this['listenTo'](_0x3abdde,'change:isReadOnly',(_0x50190f,_0x452fc0,_0xc47fa9)=>{_0x235258['switchReadOnly'](_0xc47fa9,_0x3abdde['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x235258,ht('addCommentThread',_0x4621b7),(_0x26b992,{threadId:_0x57920f})=>{const _0x24d636=this['editor']['plugins']['get'](o)['getCommentThread'](_0x57920f);_0x24d636&&_0x24d636['unlinkedAt']&&this['_attachArchivedThread'](_0x57920f);}),this['listenTo'](_0x235258,ht('removeCommentThread',_0x4621b7),(_0x161895,{threadId:_0xeb8a17})=>{_0x3abdde['model']['enqueueChange']({'isUndoable':!0x1},_0xb0fbf0=>{const _0x498570=this['getAllMarkersForId'](_0xeb8a17);for(const _0xc82619 of _0x498570)_0xb0fbf0['removeMarker'](_0xc82619);});}),this['listenTo'](_0x235258,ht('resolveCommentThread',_0x4621b7),(_0x179a55,{threadId:_0x1ba025})=>{(this['_reconvertMarkers'](_0x1ba025),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1ba025)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x235258,ht('reopenCommentThread',_0x4621b7),(_0x2827ff,{threadId:_0x78d659})=>{this['_reconvertMarkers'](_0x78d659);},{'priority':'low'}),this['listenTo'](_0x235258,ht('addComment',_0x4621b7),(_0x144f96,{threadId:_0x51ffb9,isFromAdapter:_0x957bea})=>{const _0x380cde=this['getAllMarkersForId'](_0x51ffb9);if(_0x957bea||0x0==_0x380cde['length']||!_0x235258['hasCommentThread'](_0x51ffb9))return;0x1===_0x235258['getCommentThread'](_0x51ffb9)['length']&&_0x3abdde['model']['enqueueChange']({'isUndoable':!0x1},_0x2d29b2=>{for(const _0x108a2c of _0x380cde)_0x2d29b2['updateMarker'](_0x108a2c,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0x18907b=this['editor']['plugins']['get'](o),_0x417195=this['editor']['config']['get']('collaboration.channelId');for(const _0x537aca of _0x18907b['getCommentThreads']({'channelId':_0x417195}))_0x18907b['_detachCommentThread'](_0x537aca['id']),_0x18907b['_threads']['delete'](_0x537aca['id']);super['destroy']();}['hasMarkerForId'](_0x1a1839){return this['getAllMarkersForId'](_0x1a1839)['length']>0x0;}['getAllMarkersForId'](_0x31f6af){const _0x416d20=[];for(const _0xdc4ee5 of this['editor']['model']['markers'])_0xdc4ee5['name']['startsWith']('comment:'+_0x31f6af)&&_0x416d20['push'](_0xdc4ee5);return _0x416d20;}['scrollToThreadMarker'](_0x9e0311){const _0x5a0bee=this['_getTargetForId'](_0x9e0311);_0x5a0bee&&setTimeout(()=>{this['activeMarker']&&ne(this['activeMarker'])['id']===_0x9e0311&&rt({'target':_0x5a0bee[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x38f49a){this['editor']['model']['change'](()=>{for(const _0x52a756 of this['getAllMarkersForId'](_0x38f49a))this['editor']['editing']['reconvertMarker'](_0x52a756);});}['_attachArchivedThread'](_0x571556){const _0x522fce=this['editor']['plugins']['get'](o),_0x5569c7=this['editor']['plugins']['get'](P),_0x9712f9=_0x522fce['getCommentThread'](_0x571556);if(!_0x9712f9['isAttached']){const _0x222cf9=_0x9712f9['attachTo'](()=>this['_getTargetForId'](_0x9712f9['id']));_0x5569c7['registerAnnotation'](_0x222cf9),_0x9712f9['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x4b1391=this['editor'],_0x24352f=_0x4b1391['plugins']['get'](at);_0x4b1391['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x9c4929,_0x83a652)=>{const {id:_0x29c937}=ne(_0x9c4929['markerName']),_0x2b5004=_0x4b1391['plugins']['get'](o)['getCommentThread'](_0x29c937),_0x4c667f=this['activeMarker']&&ne(this['activeMarker'])['id']===_0x29c937;let _0x28f9ba;if(_0x2b5004&&_0x2b5004['isResolved']&&!_0x4c667f&&_0x9c4929['item'])return _0x83a652['consumable']['consume'](_0x9c4929['item'],'addMarker:'+_0x9c4929['markerName']),_0x83a652['consumable']['consume'](_0x9c4929['item'],'removeMarker:'+_0x9c4929['markerName']),null;const _0x4de994=['ck-comment-marker'];return _0x4c667f&&_0x4de994['push']('ck-comment-marker--active'),_0x28f9ba=_0x2b5004&&_0x2b5004['length']?_0x2b5004['comments']['first']['author']['id']:_0x24352f['me']['id'],{'classes':_0x4de994,'attributes':{'data-comment':_0x29c937,'data-author-id':_0x28f9ba}};}}),_0x4b1391['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3e5213,{options:_0x3332d9})=>{const _0x67bb88=_0x4b1391['plugins']['get'](o),_0x293a0f=_0x4b1391['model']['markers']['get'](_0x3e5213),{id:_0x4193c5,part:_0x3b86ac}=ne(_0x3e5213);if(_0x293a0f&&!_0x293a0f['affectsData'])return null;if(_0x3332d9['ignoreResolvedComments']){const _0x263dfd=_0x67bb88['getCommentThread'](_0x4193c5);if(_0x263dfd&&_0x263dfd['isResolved'])return null;}return{'group':'comment','name':_0x3b86ac?_0x4193c5+':'+_0x3b86ac:_0x4193c5};}}),_0x4b1391['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x560e86,{writer:_0x933d57})=>_0x933d57['createElement']('$marker',{'data-name':'comment:'+_0x560e86['getAttribute']('id')})}),_0x4b1391['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x4d191e=this['editor'],_0x4714d8=_0x4d191e['plugins']['get'](o),_0x380adc=new Set(),_0x3be4cc=new Set();_0x4d191e['model']['document']['registerPostFixer'](_0x24528b=>{let _0x545f50=!0x1;for(const {name:_0x34ea16,data:_0x578cee}of _0x4d191e['model']['document']['differ']['getChangedMarkers']()){const {group:_0x72ae9b,id:_0x22cd16}=ne(_0x34ea16);let _0x255327=_0x578cee['newRange'];if('comment'!==_0x72ae9b||!_0x255327)continue;const _0x1e74d5='$graveyard'===_0x255327['root']['rootName'];_0x1e74d5||(_0x255327=lt(_0x255327,_0x4d191e['model']),!_0x255327||_0x255327['isCollapsed']||!_0x578cee['newRange']||_0x255327['isEqual'](_0x578cee['newRange']))?_0x4d191e['model']['hasContent'](_0x255327)&&!_0x1e74d5?this['isThreadsLoadingPaused']?_0x380adc['add'](_0x34ea16):this['_handleThreadMarker'](_0x34ea16,_0x22cd16):(_0x3be4cc['add'](_0x34ea16),_0x380adc['delete'](_0x34ea16),_0x24528b['removeMarker'](_0x34ea16),_0x545f50=!0x0):(_0x24528b['updateMarker'](_0x34ea16,{'range':_0x255327}),_0x545f50=!0x0);}return _0x545f50;}),this['on']('change:isThreadsLoadingPaused',(_0x5947a9,_0x1bab37,_0x48514a)=>{if(!_0x48514a&&_0x380adc['size'])for(const _0x5b2e01 of _0x380adc){const {id:_0x493753}=ne(_0x5b2e01);_0x380adc['delete'](_0x5b2e01),_0x4d191e['model']['markers']['get'](_0x5b2e01)&&this['_handleThreadMarker'](_0x5b2e01,_0x493753);}}),this['listenTo'](_0x4d191e['model']['document'],'change',(_0x5e9fe6,_0x12baba)=>{for(const {name:_0x25a372,data:{newRange:_0x4d7adf}}of _0x4d191e['model']['document']['differ']['getChangedMarkers']()){const {group:_0x44f9f5,id:_0x2e47bd}=ne(_0x25a372);if('comment'!==_0x44f9f5)continue;const _0x954340=_0x4714d8['getCommentThread'](_0x2e47bd),_0x5964fa=this['hasMarkerForId'](_0x2e47bd);_0x954340&&(!_0x954340['_hasTargetInContent']&&_0x4d7adf&&_0x4d191e['editing']['view']['once']('render',()=>{const _0x5b47d1=_0x4d191e['plugins']['get'](N),_0x544fda=_0x4714d8['_threadToController']['get'](_0x954340)['view'];_0x5b47d1['getByInnerView'](_0x544fda)['refreshVisibility']();},{'priority':'low'}),_0x954340['_hasTargetInContent']=_0x5964fa||!!_0x4d7adf),_0x4d7adf||(_0x3be4cc['add'](_0x25a372),_0x380adc['delete'](_0x25a372));}if(_0x12baba['isLocal'])for(const _0x396dd6 of _0x3be4cc){const {id:_0x2109a3}=ne(_0x396dd6),_0x3245b9=_0x4714d8['getCommentThread'](_0x2109a3),_0x47c753=this['hasMarkerForId'](_0x2109a3);_0x380adc['delete'](_0x396dd6),!_0x3245b9||_0x47c753||_0x3245b9['unlinkedAt']||_0x3245b9['setUnlinkedAt'](new Date());}_0x3be4cc['clear']();});}['_getTargetForId'](_0x1ec453){const _0x2cbd68=this['editor'],_0x67c93e=this['getAllMarkersForId'](_0x1ec453);return nt(_0x2cbd68['editing'],_0x67c93e);}['_getTextContext'](_0x875453){const _0x4afce8=this['getAllMarkersForId'](_0x875453);let _0x86d1fa='',_0x467bb6=!0x1;for(const _0x2dbbed of _0x4afce8){const _0xbe7f36=_0x2dbbed['getRange']();for(const _0x61b466 of Array['from'](_0xbe7f36['getItems']()))_0x61b466['is']('$textProxy')?(_0x86d1fa&&_0x467bb6&&(_0x86d1fa+='\x20',_0x467bb6=!0x1),_0x86d1fa+=_0x61b466['data']):_0x467bb6=!0x0;_0x467bb6=!0x0;}return _0x86d1fa['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x29ed09,_0x3705a3){const _0x563d0a=this['editor'],_0x753905=_0x563d0a['plugins']['get'](o);let _0x1e651d=_0x753905['getCommentThread'](_0x3705a3);const _0x36201e=_0x563d0a['config']['get']('collaboration.channelId'),_0x35ea61=_0x563d0a['plugins']['get'](P);if(_0x1e651d&&(_0x1e651d['unlinkedAt']&&_0x1e651d['setUnlinkedAt'](null),_0x1e651d['isAttached']))return _0x1e651d;return!this['getAllMarkersForId'](_0x3705a3)[0x0]['managedUsingOperations']?_0x563d0a['editing']['view']['once']('render',()=>{if(_0x753905['getCommentThread'](_0x3705a3))return;const _0x38be4a=_0x563d0a['plugins']['get'](N);_0x1e651d=_0x753905['openNewCommentThread']({'channelId':_0x36201e,'threadId':_0x3705a3,'target':()=>this['_getTargetForId'](_0x3705a3),'context':{'type':'text','value':this['_getTextContext'](_0x3705a3)}});const _0x490e35=_0x753905['_threadToController']['get'](_0x1e651d)['view'],_0x159376=_0x38be4a['getByInnerView'](_0x490e35);_0x159376&&_0x35ea61['registerAnnotation'](_0x159376);},{'priority':'low'}):_0x753905['fetchCommentThread']({'channelId':_0x36201e,'threadId':_0x3705a3})['then'](_0x520640=>{if('destroyed'!==_0x563d0a['state']){if(_0x1e651d=_0x520640,_0x1e651d&&!_0x1e651d['isAttached']){const _0x2d005f=_0x1e651d['attachTo'](()=>this['_getTargetForId'](_0x3705a3));_0x35ea61['registerAnnotation'](_0x2d005f),_0x1e651d['isResolved']&&this['_reconvertMarkers'](_0x3705a3);}else{if(!_0x1e651d){const _0x33693d=this['getAllMarkersForId'](_0x3705a3);_0x563d0a['model']['change'](_0x25fd78=>{for(const _0x4b3970 of _0x33693d)_0x25fd78['removeMarker'](_0x4b3970);});}}}}),_0x1e651d;}['_handleThreadMarker'](_0x17d195,_0x9b3b8b){const _0x124a51=this['_attachMarkerToThread'](_0x17d195,_0x9b3b8b);_0x124a51&&!_0x124a51['context']&&_0x124a51['setContext']({'type':'text','value':this['_getTextContext'](_0x9b3b8b)});}['_initAriaMarkerChangeAnnouncements'](){const _0x19350d=this['editor'];ot(_0x19350d['model'],({left:_0xae29a2,entered:_0x387232})=>{for(const _0x1f2a8c of _0xae29a2)if(ft(_0x1f2a8c)){_0x19350d['ui']['ariaLiveAnnouncer']['announce'](S(_0x19350d['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x575fc2 of _0x387232)if(ft(_0x575fc2)){_0x19350d['ui']['ariaLiveAnnouncer']['announce'](S(_0x19350d['locale'],'ENTER_COMMENT_ANNOUNCEMENT',et(te)));break;}});}}function ht(_0x525504,_0x498c15){return _0x498c15?_0x525504+':'+_0x498c15:_0x525504;}function ne(_0x11154d){const _0x2df6ca=_0x11154d['split'](':');return{'group':_0x2df6ca[0x0],'id':_0x2df6ca[0x1],'part':_0x2df6ca[0x2]};}function lt(_0x3bc357,_0x591903){const _0x1d1c91=_0x591903['schema'],_0x17b397=_0x591903['createRange'](_0x3bc357['start']);for(const _0x27d6c6 of _0x3bc357['getWalker']()){const {type:_0x138143,item:_0x38f12c,nextPosition:_0x298151}=_0x27d6c6;if('text'===_0x138143||_0x1d1c91['isObject'](_0x38f12c)){const _0x253bee=_0x591903['createPositionBefore'](_0x38f12c);_0x17b397['isCollapsed']&&(_0x17b397['start']=_0x253bee),_0x17b397['end']=_0x298151;}}return _0x17b397;}function ft(_0x14b623){return'comment'===ne(_0x14b623['name'])['group'];}var Dt='<!--\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 _0x5825dc{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 _0x39f22a=this['editor'],_0x1bdc77=_0x39f22a['plugins']['get'](o),_0x519984=_0x39f22a['plugins']['get'](r),_0x396c94=_0x39f22a['plugins']['get'](N),_0x11753f=_0x39f22a['plugins']['get'](P);_0x39f22a['ui']['componentFactory']['add']('comment',()=>{const _0x19db69=this['_createUIButton'](_0x576862);return _0x19db69['tooltip']=!0x0,_0x19db69;}),_0x39f22a['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x15b94b)),_0x11753f['addSourceCollector'](()=>{const _0x33a41c=[];for(const [_0x442edd,_0x324307]of _0x1bdc77['_threadToController']){const _0x3b9a48=_0x519984['getAllMarkersForId'](_0x442edd['id']),_0x7ee5d8=_0x3b9a48['map'](_0x3aff9a=>_0x3aff9a['getRange']());_0x3b9a48['length']>0x0&&_0x33a41c['push']([_0x324307['view'],_0x7ee5d8]);}return _0x33a41c;}),this['listenTo'](_0x396c94,'change:activeAnnotations',(_0x524ea3,_0x2ca53b,_0x237d85)=>{const _0x3003bc=Array['from'](_0x237d85)['map'](_0x14e3e8=>_0x14e3e8['innerView'])['find'](_0x16fa37=>_0x1bdc77['_viewToController']['has'](_0x16fa37));if(!_0x3003bc)return void(_0x519984['activeMarker']=null);const _0x428d60=_0x1bdc77['_viewToController']['get'](_0x3003bc)['model']['id'],_0x423be9='comment:'+_0x428d60;_0x428d60&&_0x519984['hasMarkerForId'](_0x428d60)?_0x519984['activeMarker']=_0x423be9:_0x519984['activeMarker']&&(_0x519984['activeMarker']=null);}),this['listenTo'](_0x1bdc77,'removeCommentThread',(_0x23919a,{threadId:_0x37f971,isFromAdapter:_0x294014})=>{!_0x294014&&_0x39f22a['ui']['focusTracker']['isFocused']&&_0x519984['hasMarkerForId'](_0x37f971)&&_0x39f22a['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1bdc77,'addComment',(_0x513a30,{threadId:_0xc90d2a,isFromAdapter:_0x32628d})=>{if(_0x32628d||!_0x519984['hasMarkerForId'](_0xc90d2a)||!_0x1bdc77['hasCommentThread'](_0xc90d2a))return;0x1===_0x1bdc77['getCommentThread'](_0xc90d2a)['length']&&(_0x39f22a['editing']['view']['focus'](),_0x513a30['stop']());},{'priority':'low'});}['_createUIButton'](_0x36e042){const _0x8bb638=this['editor'],_0x447b88=new _0x36e042(_0x8bb638['locale']),_0x200218=_0x8bb638['commands']['get']('addCommentThread');return _0x447b88['set']({'label':S(_0x8bb638['locale'],'Comment'),'icon':Dt}),_0x447b88['bind']('isEnabled')['to'](_0x200218),this['listenTo'](_0x447b88,'execute',()=>_0x200218['execute']()),_0x447b88;}}class s extends _0x5825dc{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2e9a50){super(_0x2e9a50),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x471028,_0x3bf5e8,_0x2081c9)=>{_0x2081c9?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x51c15e,_0x2ae2bd]of this['editor']['commands'])_0x2ae2bd['affectsData']&&'addCommentThread'!==_0x51c15e&&_0x2ae2bd['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x20642f=this['editor']['editing']['view']['document'];this['listenTo'](_0x20642f,'cut',_0x1f142d=>_0x1f142d['stop'](),{'priority':'highest'}),this['listenTo'](_0x20642f,'clipboardInput',_0x2ff31c=>_0x2ff31c['stop'](),{'priority':'highest'}),this['listenTo'](_0x20642f,'delete',_0x4455b9=>_0x4455b9['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x2ca0ce,_0x12adee]of this['editor']['commands'])_0x12adee['affectsData']&&'addCommentThread'!==_0x2ca0ce&&_0x12adee['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x41c971{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xabfc28){super(_0xabfc28),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x2fc67c=this['context']['plugins']['get'](N);this['listenTo'](_0x2fc67c,'_activateAnnotation',(_0x2bbbb6,_0x5df673)=>{for(const _0x780f7f of this['activeUIs']){const _0x5e4bf7=this['_uis']['get'](_0x780f7f);(0x0,this['_uisData']['get'](_0x780f7f)['filter'])(_0x5df673)&&_0x5e4bf7['setActiveAnnotation'](_0x5df673);}}),this['listenTo'](_0x2fc67c,'_deactivateAllAnnotations',()=>{for(const _0x44d24c of this['activeUIs']){this['_uis']['get'](_0x44d24c)['setActiveAnnotation'](null);}}),this['listenTo'](_0x2fc67c['_visibleAnnotations'],'add',(_0x3e172a,_0xfd9ca7)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xfd9ca7);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x2268f6){return this['activeUIs']['has'](_0x2268f6);}['activate'](_0x129324,_0x5abd9a=()=>!0x0){const _0x45a073=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x129324))throw new _0x4cd5c0('annotationsuis-missing-ui',this,{'uiName':_0x129324});this['isActive'](_0x129324)&&this['deactivate'](_0x129324),this['activeUIs']['add'](_0x129324);const _0x1168b9=new x();!function({source:_0x14cf69,target:_0x36bc62,filter:_0x355def}){for(const _0x165649 of _0x14cf69)_0x355def(_0x165649)&&_0x36bc62['add'](_0x165649);_0x36bc62['listenTo'](_0x14cf69,'add',(_0x387934,_0x49c956)=>{_0x355def(_0x49c956)&&_0x36bc62['add'](_0x49c956);}),_0x36bc62['listenTo'](_0x14cf69,'remove',(_0x500b7b,_0x5b55df)=>{_0x36bc62['has'](_0x5b55df)&&_0x36bc62['remove'](_0x5b55df);});}({'source':_0x45a073['_visibleAnnotations'],'target':_0x1168b9,'filter':_0x5abd9a}),this['_uisData']['set'](_0x129324,{'collection':_0x1168b9,'filter':_0x5abd9a});const _0x5aabb2=this['_uis']['get'](_0x129324);_0x5aabb2['attach'](_0x1168b9),this['listenTo'](_0x5aabb2,'change:activeAnnotation',(_0x297ca5,_0x3d6235,_0x2f3581,_0xcd21b)=>{_0xcd21b&&_0x45a073['_removeActiveAnnotation'](_0xcd21b),_0x2f3581&&_0x45a073['_addActiveAnnotation'](_0x2f3581);});}['deactivate'](_0x34d106){if(this['activeUIs']['delete'](_0x34d106),!this['_uis']['has'](_0x34d106))throw new _0x4cd5c0('annotationsuis-missing-ui',this,{'uiName':_0x34d106});const _0x4caa5b=this['_uis']['get'](_0x34d106);_0x4caa5b['detach'](),this['stopListening'](_0x4caa5b),this['_uisData']['get'](_0x34d106)['collection']['destroy'](),this['_uisData']['delete'](_0x34d106);}['switchTo'](_0x44e209){if(!this['_uis']['has'](_0x44e209))throw new _0x4cd5c0('annotationsuis-missing-ui',this,{'uiName':_0x44e209});const _0xec40bf=this['context']['plugins']['get'](N),_0x1d17d5=Array['from'](_0xec40bf['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x44e209);const _0x417363=this['_uis']['get'](_0x44e209);_0x417363['setActiveAnnotation'](_0x1d17d5),_0x417363['_setSelectedAnnotations']&&_0x1d17d5&&_0x417363['_setSelectedAnnotations']([_0x1d17d5]);}['deactivateAll'](){for(const _0x26f923 of this['activeUIs'])this['deactivate'](_0x26f923);}['register'](_0x33dda0,_0xfc985d){if(this['_uis']['has'](_0x33dda0))throw new _0x4cd5c0('annotationsuis-register-already-registered');if('function'!=typeof _0xfc985d['attach']||'function'!=typeof _0xfc985d['detach']||'function'!=typeof _0xfc985d['setActiveAnnotation'])throw new _0x4cd5c0('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x33dda0,_0xfc985d);}['refilterAnnotations'](){const _0x677784=this['context']['plugins']['get'](N)['collection'],_0x5d0188=new Map(),_0x4e847b=Array['from'](this['activeUIs']);for(const _0x2b505c of this['activeUIs']){const _0x47cdf=this['_uisData']['get'](_0x2b505c)['collection'];for(const _0x143df2 of _0x47cdf)_0x5d0188['set'](_0x143df2,_0x2b505c);}for(const _0x32b82b of _0x677784){const _0x143386=_0x5d0188['get'](_0x32b82b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x32b82b);const _0x107a7c=_0x4e847b['find'](_0x7ecd00=>this['_uisData']['get'](_0x7ecd00)['filter'](_0x32b82b));_0x143386!==_0x107a7c&&(_0x143386&&this['_uisData']['get'](_0x143386)['collection']['remove'](_0x32b82b),_0x107a7c&&this['_uisData']['get'](_0x107a7c)['collection']['add'](_0x32b82b));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x428f83){const _0x1ab429=[];for(const _0x3f127d of this['activeUIs']){(0x0,this['_uisData']['get'](_0x3f127d)['filter'])(_0x428f83)&&_0x1ab429['push'](_0x3f127d);}if(_0x1ab429['length']>0x1)throw new _0x4cd5c0('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1ab429,'annotationType':_0x428f83['type']});}}const oe=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x15af41){super(_0x15af41);const _0x15f9b7=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 _0x450a05(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x15f9b7['to']('class')],'style':{'minHeight':_0x15f9b7['to']('minHeight',_0x36188a=>'number'==typeof _0x36188a?oe(_0x36188a+0xa):null)},'dir':_0x15af41['uiLanguageDirection'],'role':'application','aria-label':S(_0x15af41,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x15af41,'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',_0x366026=>{this['_updateItemPositionInFocusables'](_0x366026['source']);}),this['list']['forEach'](_0x50242d=>{this['focusTracker']['add'](_0x50242d['element']),this['_updateItemPositionInFocusables'](_0x50242d);}),this['list']['on']('change',(_0x7b7609,_0x4286b2)=>{for(const _0x4a1c34 of _0x4286b2['removed'])this['focusTracker']['remove'](_0x4a1c34['element']),this['focusables']['remove'](_0x4a1c34);for(const _0x403422 of _0x4286b2['added'])this['focusTracker']['add'](_0x403422['element']),this['_updateItemPositionInFocusables'](_0x403422);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x17fdc5){const _0x10e56f=this['focusables']['getIndex'](_0x17fdc5);let _0x59c935,_0x44dd6e;for(const _0x3cec5c of this['focusables'])if(_0x17fdc5['top']<_0x3cec5c['top']){_0x59c935=_0x3cec5c;break;}if(_0x44dd6e=_0x59c935?this['focusables']['getIndex'](_0x59c935):this['focusables']['length'],-0x1!==_0x10e56f){if(_0x10e56f===_0x44dd6e-0x1)return;this['focusables']['remove'](_0x17fdc5),_0x44dd6e=_0x59c935?this['focusables']['getIndex'](_0x59c935):this['focusables']['length'];}this['focusables']['add'](_0x17fdc5,_0x44dd6e);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x4ef330){super(_0x4ef330),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x4b1605,_0x31f4c7)=>_0x4b1605+_0x31f4c7),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=J(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x38c0f2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x38c0f2['to']('isAnimationDisabled',_0x1f2f69=>_0x1f2f69?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x38c0f2['to']('top',_0x2a9cfd=>qt(_0x2a9cfd))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xf534c7=this['element']['clientHeight'];_0xf534c7&&(this['height']=_0xf534c7);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x41c971{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43649e){super(_0x43649e),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 _0x1d61ff=this['context']['config']['get']('sidebar.container');_0x1d61ff&&this['setContainer'](_0x1d61ff);}['setContainer'](_0x22584c){if(!y(_0x22584c))throw new _0x4cd5c0('sidebar-setcontainer-invalid-element');this['container']=_0x22584c;}['_attachToContainer']({viewClass:_0x4f6e46='',spaceBetweenItems:_0x2f8c03=0x19}={}){if(!y(this['container']))throw new _0x4cd5c0('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x4f6e46,this['_spaceBetweenItems']=_0x2f8c03;}['rearrange']({removedAnnotation:_0x222dce,previousAnnotation:_0x2403a2,nextAnnotation:_0x443425}){const _0x4551a6=this['getSidebarItemView'](_0x222dce);this['view']['list']['remove'](_0x4551a6),this['_destroySidebarItemView'](_0x222dce),_0x2403a2&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2403a2)),_0x443425&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x443425)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x23eaf8,activatedAnnotation:_0x123bcb,disableAnimationOnActivatedAnnotation:_0x5b7bf7}){if(this['_activeAnnotation']=_0x123bcb,_0x23eaf8){_0x23eaf8['isActive']=!0x1;const _0x507cfb=this['getSidebarItemView'](_0x23eaf8);_0x507cfb&&_0x5b7bf7&&(_0x507cfb['isAnimationDisabled']=!0x1);}if(_0x123bcb){const _0x43ba9b=this['getSidebarItemView'](_0x123bcb);_0x43ba9b&&(_0x123bcb['isActive']=!0x0,_0x5b7bf7&&(_0x43ba9b['isAnimationDisabled']=!0x0,_0x43ba9b['top']+=0x1),this['_alignToTargetRect'](_0x43ba9b));}}['_detachFromContainer'](_0x889723){if(this['view']['element']['remove'](),_0x889723){for(const _0x3d5b2d of _0x889723)this['_destroySidebarItemView'](_0x3d5b2d);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x58b325,_0x245dcc){_0x245dcc||(_0x245dcc=_0x58b325['view']);const _0x1c3306=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x1c3306,_0x58b325),this['_annotationToSidebarItemView']['set'](_0x58b325,_0x1c3306),_0x1c3306['content']['add'](_0x245dcc),this['listenTo'](_0x58b325['view'],'change:targetRect',(_0x349e62,_0x4279be,_0x48e6c9)=>{const _0x1d9538=this['_getTargetTop'](_0x58b325,_0x48e6c9);_0x1c3306['_targetTop']!=_0x1d9538&&(_0x1c3306['_targetTop']=_0x1d9538,this['_setItemTop'](_0x1c3306,_0x1d9538));}),this['listenTo'](_0x1c3306,'change:top',()=>{this['_recalculate'](_0x1c3306,'top');}),this['listenTo'](_0x1c3306,'change:bottom',()=>{this['_recalculate'](_0x1c3306,'bottom');}),this['_alignToTargetRect'](_0x1c3306);const _0x282573=this['_getItemBefore'](_0x1c3306);if(_0x282573)this['_alignAfterItem'](_0x282573,_0x1c3306)||this['_alignToTargetRect'](_0x1c3306);else this['_alignToTargetRect'](_0x1c3306);return this['_updateLastItem'](),this['view']['list']['add'](_0x1c3306),_0x1c3306;}['_alignForTopChange'](_0xccf227){if(!_0xccf227['content']['length'])return;const _0x108f0b=this['_getItemBefore'](_0xccf227);if(!_0x108f0b)return;const _0x32ed38=this['_sidebarItemViewToAnnotation']['get'](_0x108f0b),_0x4ac4d2=this['_activeAnnotation'];_0x4ac4d2&&_0x4ac4d2===_0x32ed38?this['_alignAfterItem'](_0x108f0b,_0xccf227):this['_alignBeforeItem'](_0xccf227,_0x108f0b);}['_alignForBottomChange'](_0x576a11){if(!_0x576a11['content']['length'])return;const _0x81a142=this['_getItemAfter'](_0x576a11);if(!_0x81a142)return;const _0x420f63=this['_sidebarItemViewToAnnotation']['get'](_0x81a142),_0xc86c02=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x189325=this['_activeAnnotation'];_0x189325&&_0x189325===_0x420f63&&_0xc86c02?(this['_alignBeforeItem'](_0x81a142,_0x576a11),this['_alignAfterItem'](_0x576a11,_0x81a142)):_0x189325&&_0x189325===_0x420f63?this['_alignBeforeItem'](_0x81a142,_0x576a11):this['_alignAfterItem'](_0x576a11,_0x81a142);}['_recalculate'](_0x5386e3,_0x5542a8){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x9ba7d0,changedProp:_0x86314e}of this['_recalculateBuffer'])'top'===_0x86314e?this['_alignForTopChange'](_0x9ba7d0):this['_alignForBottomChange'](_0x9ba7d0);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5386e3,'changedProp':_0x5542a8});}['getSidebarItemView'](_0x2d9a88){return this['_annotationToSidebarItemView']['get'](_0x2d9a88);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1b19ad){const _0x3ecdc6=this['getSidebarItemView'](_0x1b19ad);this['stopListening'](_0x3ecdc6),this['stopListening'](_0x1b19ad['view']),_0x3ecdc6['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1b19ad),this['_sidebarItemViewToAnnotation']['delete'](_0x3ecdc6);}['_createSidebarView'](){const _0x271adb=new V(this['context']['locale']);return _0x271adb['render'](),this['on']('change:_lastItem',(_0x5ea9e2,_0x3a1cad,_0x31b57d,_0xd0628f)=>{_0xd0628f&&_0x271adb['unbind']('minHeight'),_0x31b57d?_0x271adb['bind']('minHeight')['to'](_0x31b57d,'bottom'):_0x271adb['minHeight']=null;}),_0x271adb;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x16800d){const _0x8d920e=this['_sidebarItemViewToAnnotation']['get'](_0x16800d),_0x659c9d=_0x8d920e&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x8d920e)-0x1);return _0x659c9d&&this['getSidebarItemView'](_0x659c9d)||null;}['_getItemAfter'](_0x49a944){const _0x5df9e1=this['_sidebarItemViewToAnnotation']['get'](_0x49a944),_0x1d3519=_0x5df9e1&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5df9e1)+0x1);return _0x1d3519&&this['getSidebarItemView'](_0x1d3519)||null;}['_alignBeforeItem'](_0x5a0719,_0x291bf9){_0x5a0719['updateHeight']();const _0x44433c=R(_0x291bf9['bottom']+this['_spaceBetweenItems'],_0x5a0719['top']);return!!_0x44433c&&(this['_setItemTop'](_0x291bf9,_0x291bf9['top']-_0x44433c),!0x0);}['_alignAfterItem'](_0x5cba44,_0x90b188){_0x5cba44['updateHeight']();const _0x5bc5ab=R(_0x5cba44['bottom']+this['_spaceBetweenItems'],_0x90b188['top']);return!!_0x5bc5ab&&(this['_setItemTop'](_0x90b188,_0x90b188['top']+_0x5bc5ab,!0x1),!0x0);}['_alignToTargetRect'](_0x4d4432){const _0x73ddae=this['_sidebarItemViewToAnnotation']['get'](_0x4d4432);if(!_0x73ddae||!_0x73ddae['target']||!_0x73ddae['targetRect'])return;const _0x52a9a4=this['_getTargetTop'](_0x73ddae,_0x73ddae['targetRect']);this['_setItemTop'](_0x4d4432,_0x52a9a4);}['_getTargetTop'](_0x236e1b,_0x1f0d62){if(null===_0x1f0d62)return 0x0;if(_0x236e1b['target']instanceof _0x182c6f)return _0x1f0d62['top'];{const _0xd1b82e=new _0x182c6f(this['view']['element'])['top'];return _0x1f0d62['top']-_0xd1b82e;}}['_setItemTop'](_0x492668,_0x5bb2fa,_0x6e55f8=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x6e55f8&&(_0x5bb2fa=Math['max'](_0x5bb2fa,this['_getMaxAvailableTop'](_0x492668))),_0x492668['top']=_0x5bb2fa;}['_getMaxAvailableTop'](_0x14f8b8){let _0x249984=this['_getItemBefore'](_0x14f8b8),_0x562efe=0x0;for(;_0x249984;)_0x249984['updateHeight'](),_0x562efe+=this['_spaceBetweenItems']+_0x249984['height'],_0x249984=this['_getItemBefore'](_0x249984);return _0x562efe;}}function R(_0x1447cf,_0x52f3ab){return Math['max'](_0x1447cf-_0x52f3ab,0x0);}function y(_0x29618d){return null!==_0x29618d&&'object'==typeof _0x29618d&&0x1===_0x29618d['nodeType'];}class e extends _0x41c971{['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(_0x3fbf54){super(_0x3fbf54),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x15524d(),this['_refreshPositioningDebounced']=_0x42ced3(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x4696f2=this['context']['plugins']['get'](M),_0x4342dd=this['context']['plugins']['get'](z);_0x4696f2['register']('wideSidebar',this),_0x4342dd['container']&&_0x4696f2['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x10172f){if(_0x10172f===this['activeAnnotation'])return;const _0x40de10=this['context']['plugins']['get'](z);_0x40de10['_activeAnnotation']=_0x10172f;const _0x43e2e3=this['activeAnnotation'];this['activeAnnotation']=_0x10172f,_0x40de10['refresh']({'blurredAnnotation':_0x43e2e3,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x4c1eeb){this['annotations']=_0x4c1eeb;const _0x226332=this['context']['plugins']['get'](z);if(_0x226332['_annotations']=_0x4c1eeb,this['isAttached'])throw new _0x4cd5c0('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x226332,'set:container',()=>{this['detach'](),this['listenTo'](_0x226332,'change:container',_0x34f7fb=>{_0x34f7fb['off'](),this['attach'](_0x4c1eeb);});}),_0x226332['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x1b18a1=_0x3ed502=>{_0x3ed502['updateTargetRect'](),_0x226332['addAnnotation'](_0x3ed502);};for(const _0x4988a5 of _0x4c1eeb)_0x1b18a1(_0x4988a5);this['listenTo'](_0x4c1eeb,'add',(_0x213355,_0x2a2c4c)=>{_0x1b18a1(_0x2a2c4c);}),this['listenTo'](_0x4c1eeb,'remove',(_0x21269e,_0x4b9f58,_0x3b06fd)=>{_0x226332['rearrange']({'removedAnnotation':_0x4b9f58,'previousAnnotation':_0x4c1eeb['get'](_0x3b06fd-0x1),'nextAnnotation':_0x4c1eeb['get'](_0x3b06fd+0x1)}),_0x4b9f58===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4c1eeb,'focus',(_0x40bb4c,_0x472901)=>{this['setActiveAnnotation'](_0x472901);}),this['listenTo'](_0x4c1eeb,'blur',()=>{this['setActiveAnnotation'](null);});const _0x494af6=this['context']instanceof _0x2401c5?this['context']['editors']:new _0x15524d([this['context']]);for(const _0x5c56bd of _0x494af6)this['_integrateWithEditorAnnotations'](_0x5c56bd);this['listenTo'](_0x494af6,'add',(_0x3c283e,_0x1cd464)=>{this['listenTo'](_0x1cd464,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1cd464);});}),this['listenTo'](_0x494af6,'remove',(_0x177df9,_0x2c8a20)=>{_0x2c8a20['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2c8a20['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4cd5c0('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xa7dbab=this['context']['plugins']['get'](z);_0xa7dbab['_detachFromContainer'](this['annotations']),this['stopListening'](_0xa7dbab),this['stopListening'](this['annotations']),this['context']instanceof _0x2401c5&&this['stopListening'](this['context']['editors']);for(const _0x603452 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x603452);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x10e426){if(!_0x10e426['plugins']['has']('EditorAnnotations'))return;const _0x14daa0=_0x10e426['plugins']['get']('EditorAnnotations'),_0x48b5bd=()=>{const _0x5cdf35=_0x14daa0['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x5cdf35[0x0]||null);};this['listenTo'](_0x14daa0,'refresh',_0x48b5bd),this['listenTo'](_0x14daa0,'blur',(_0x1a0a04,{isAnnotationTracked:_0x3be9c5})=>{this['activeAnnotation']&&_0x3be9c5(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x14daa0,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x43c443=>{_0x14daa0['hasDomSelection']()&&(_0x48b5bd(),_0x43c443['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x14daa0);}['_destroyEditorAnnotationsIntegration'](_0x233f8d){this['stopListening'](_0x233f8d),this['_editorAnnotations']['remove'](_0x233f8d);}}class D extends _0x576862{['counterView'];constructor(_0x3b32a2){super(_0x3b32a2);const _0x2152ef=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x495ebb,_0xaf54af)=>_0x495ebb?'...':_0xaf54af['toString']()),this['set']('annotationType',''),this['icon']=Dt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x2152ef['to']('annotationType',_0x5bb84e=>'ck-annotation-counter__badge--'+_0x5bb84e),_0x2152ef['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2152ef['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x41c971{['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(_0x4c0baf){super(_0x4c0baf),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x42d70f),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x15524d(),this['_refreshPositioningDebounced']=_0x42ced3(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x439f3b(this['context']['locale']),this['balloonPanelView']=new _0x58e70f(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3da5ed){this['annotations']=_0x3da5ed;const _0x221f44=this['context']['plugins']['get'](z),_0x4d9c42=this['balloonPanelView'];if(_0x221f44['_annotations']=_0x3da5ed,this['isAttached'])throw new _0x4cd5c0('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x221f44,'set:container',()=>{this['detach'](),this['listenTo'](_0x221f44,'change:container',_0x44dbad=>{_0x44dbad['off'](),this['attach'](_0x3da5ed);});}),_0x221f44['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2173d4=_0x272e46=>{const _0x499512=new D(this['context']['locale']);_0x221f44['addAnnotation'](_0x272e46,_0x499512),this['_annotationToNarrowView']['set'](_0x272e46,_0x499512),_0x499512['bind']('isDirty','annotationType','number')['to'](_0x272e46['view'],'isDirty','type','length'),_0x499512['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4d9c42['content']['first']!==_0x272e46['view']?(this['_showBalloon'](_0x272e46),_0x272e46['view']['element']['focus'](),this['setActiveAnnotation'](_0x272e46)):this['setActiveAnnotation'](null);});};for(const _0x18cbcb of _0x3da5ed)_0x2173d4(_0x18cbcb);this['listenTo'](_0x3da5ed,'add',(_0x2733ae,_0x149e3f)=>{_0x2173d4(_0x149e3f);}),this['listenTo'](_0x3da5ed,'remove',(_0x4f56e7,_0x31f2b4,_0x51a723)=>{this['_annotationToNarrowView']['get'](_0x31f2b4)['destroy'](),this['_annotationToNarrowView']['delete'](_0x31f2b4),_0x221f44['rearrange']({'removedAnnotation':_0x31f2b4,'previousAnnotation':_0x3da5ed['get'](_0x51a723-0x1),'nextAnnotation':_0x3da5ed['get'](_0x51a723+0x1)}),_0x31f2b4===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3da5ed,'focus',(_0xc8c88e,_0x49738c)=>{this['setActiveAnnotation'](_0x49738c);}),this['listenTo'](_0x3da5ed,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x28efba,_0x1ea286)=>{_0x1ea286['keyCode']===_0x509b6c['esc']&&_0x4d9c42['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x4d9c42['content']['first']),this['_hideBalloon'](),_0x1ea286['stopPropagation'](),_0x1ea286['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x5996c3,_0xae50fd)=>{const _0x4849ea=_0xae50fd['target'];_0x4d9c42['isVisible']&&_0x4d9c42['element']['contains'](_0x4849ea)||_0x221f44['view']['element']['contains'](_0x4849ea)||_0x5996c3['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x143a78=>_0x143a78['contains'](_0x4849ea))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2dbb8c=this['context']instanceof _0x2401c5?this['context']['editors']:new _0x15524d([this['context']]);for(const _0x44fe7f of _0x2dbb8c)this['_integrateWithEditorAnnotations'](_0x44fe7f);this['listenTo'](_0x2dbb8c,'add',(_0x5b096d,_0x50b094)=>{this['listenTo'](_0x50b094,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x50b094);});}),this['listenTo'](_0x2dbb8c,'remove',(_0x16ab85,_0x4561ed)=>{_0x4561ed['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4561ed['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1f1000){if(_0x1f1000===this['activeAnnotation'])return;const _0x445656=this['context']['plugins']['get'](z);if(_0x445656['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1f1000,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1f1000)_0x445656['getSidebarItemView'](_0x1f1000)?this['_showBalloon'](_0x1f1000):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x1f1000;}['detach'](){if(!this['isAttached'])throw new _0x4cd5c0('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x666a80=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x1feab0=>_0x1feab0['destroy']()),this['_annotationToNarrowView']['clear'](),_0x666a80['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2401c5&&this['stopListening'](this['context']['editors']);for(const _0x19041f of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x19041f);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'](_0x211741){if(!_0x211741['plugins']['has']('EditorAnnotations'))return;const _0x1cb7ea=_0x211741['plugins']['get']('EditorAnnotations'),_0x5ecd08=this['context']['plugins']['get'](z),_0x367ef4=this['annotations'],_0x4f2927=this['balloonPanelView'],_0x400244=()=>{const _0x1044b7=_0x1cb7ea['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1044b7),this['setActiveAnnotation'](_0x1044b7[0x0]||null);};this['listenTo'](_0x1cb7ea,'refresh',_0x400244),this['listenTo'](_0x1cb7ea,'blur',(_0x1e10d9,{isAnnotationTracked:_0x49b615})=>{this['activeAnnotation']&&_0x49b615(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1cb7ea,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x367ef4,'blur',_0x50a777=>{_0x1cb7ea['hasDomSelection']()&&_0x50a777['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x6426f0,_0x5069c8)=>{const _0x4fc6dc=_0x5069c8['target'];_0x4f2927['isVisible']&&_0x4f2927['element']['contains'](_0x4fc6dc)||_0x5ecd08['view']['element']['contains'](_0x4fc6dc)||this['activeAnnotation']&&_0x1cb7ea['hasDomSelection']()&&(_0x400244(),_0x6426f0['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1cb7ea);}['_destroyEditorAnnotationsIntegration'](_0x9124c6){_0x9124c6&&(this['stopListening'](_0x9124c6),this['_editorAnnotations']['remove'](_0x9124c6));}['_setSelectedAnnotations'](_0x36ba49){for(const _0x47081c of this['_selectedAnnotations'])_0x36ba49['includes'](_0x47081c)||this['_manuallyClosedAnnotationViews']['delete'](_0x47081c['view']);this['_selectedAnnotations']=_0x36ba49;}['_refreshPositioning'](){const _0x354b83=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x354b83['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x14944b){if(this['_manuallyClosedAnnotationViews']['has'](_0x14944b['view']))return;const _0x77c24e=this['balloonPanelView']['content']['first'];_0x77c24e!==_0x14944b['view']?(_0x77c24e&&this['_detachListeners'](_0x77c24e),this['_attachListeners'](_0x14944b['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x14944b['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x5c9528=this['balloonPanelView']['content']['first'],_0x30e155=_0x5c9528&&this['annotations']['getByView'](_0x5c9528);if(!_0x30e155||!this['_annotationToNarrowView']['has'](_0x30e155))return;const _0x338652=this['_annotationToNarrowView']['get'](_0x30e155)['element'],_0x57b115=(function(){const _0x3f32e3=_0x58e70f['defaultPositions'];return[_0x3f32e3['southArrowNorthEast'],_0x3f32e3['northArrowSouthEast'],_0x3f32e3['southArrowNorth'],_0x3f32e3['northArrowSouth'],_0x3f32e3['southArrowNorthWest'],_0x3f32e3['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x338652,'positions':_0x57b115});}['_hideBalloon'](){const _0x5ae161=this['balloonPanelView'],_0x9ae48c=_0x5ae161['content']['first'];_0x9ae48c&&(this['_detachListeners'](_0x9ae48c),_0x5ae161['unpin'](),_0x5ae161['content']['clear']());}['_attachListeners'](_0x175fd0){this['listenTo'](_0x175fd0,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x175fd0,'Esc',(_0xbb7d,_0x661c5)=>{this['_manuallyClosedAnnotationViews']['add'](_0x175fd0),this['_hideBalloon'](),_0x661c5();});}['_detachListeners'](_0x16d7c7){this['stopListening'](_0x16d7c7);}}class c extends _0x5825dc{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0xf93f9e,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e13d7){super(_0x1e13d7),_0x1e13d7['editing']['view']['addObserver'](_0x8be4ce),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1e13d7['plugins']['get'](_0xf93f9e),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x235c6a=this['editor']['plugins']['get'](M);_0x235c6a['context']===this['editor']&&(_0x235c6a['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x61dd4,_0x4a3044)=>{const _0x2d1d09=this['_balloon'];if(this['isAttached']&&_0x2d1d09['visibleView']){const _0x5c4141=this['annotations']['getByView'](_0x2d1d09['visibleView']);_0x5c4141&&this['_closeAnnotation'](_0x5c4141),_0x4a3044();}}));}['afterInit'](){const _0x5bc891=this['editor']['plugins']['get'](M);_0x5bc891['context']===this['editor']&&(_0x5bc891['hasActive']()||_0x5bc891['switchTo']('inline'));}['setActiveAnnotation'](_0x28bc24){_0x28bc24!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x28bc24&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x28bc24)&&this['_addAnnotationToBalloon'](_0x28bc24,!0x0),_0x28bc24['isActive']=!0x0),_0x28bc24||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x28bc24);}['attach'](_0x55e597){this['annotations']=_0x55e597;const _0xf3637c=this['editor']['plugins']['get'](M),_0x32ddfd=this['_balloon'];if(this['isAttached'])throw new _0x4cd5c0('inlineannotations-attach-already-attached',this);if(_0xf3637c['context']!==this['editor'])throw new _0x4cd5c0('inlineannotations-not-allowed-with-context',this);const _0x46e5d9=this['editor']['plugins']['get'](P);this['listenTo'](_0x46e5d9,'refresh',()=>{const _0x3970b6=_0x46e5d9['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x2d5ea7,_0x4feda1;!this['_forceRefresh']&&(_0x2d5ea7=_0x3970b6,_0x4feda1=this['_selectedAnnotations'],_0x2d5ea7['length']===_0x4feda1['length']&&_0x2d5ea7['every'](_0x2c2caa=>_0x4feda1['includes'](_0x2c2caa)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x3970b6),this['setActiveAnnotation'](_0x3970b6[0x0]||null));}),this['listenTo'](_0x46e5d9,'blur',(_0x240c14,{isAnnotationTracked:_0x141c9c})=>{this['activeAnnotation']&&_0x141c9c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x13b949,_0x416de6,_0x2d4cc0)=>{_0x2d4cc0||this['setActiveAnnotation'](null);}),this['listenTo'](_0x55e597,'remove',(_0x4c0cc6,_0x45b8cd)=>{this['_removeAnnotationFromBalloon'](_0x45b8cd),_0x45b8cd===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x32ddfd,'change:visibleView',(_0xab00fd,_0x928fe9,_0x571fc0,_0x3df32b)=>{_0x3df32b&&this['stopListening'](_0x3df32b);const _0x14f04b=_0x55e597['getByView'](_0x571fc0);_0x571fc0&&_0x14f04b&&(this['listenTo'](_0x571fc0,'change:height',()=>{_0x32ddfd['updatePosition']();}),this['listenTo'](_0x571fc0,'Esc',()=>{this['_closeAnnotation'](_0x14f04b),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x14f04b&&this['setActiveAnnotation'](_0x14f04b));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x32ddfd['visibleView']&&(_0x55e597['getByView'](_0x32ddfd['visibleView'])&&_0x32ddfd['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 _0x4cd5c0('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x28783b of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x28783b);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x454036){for(const _0x189a37 of this['_selectedAnnotations'])_0x454036['includes'](_0x189a37)||this['_manuallyClosed']['delete'](_0x189a37);for(const _0x4d414f of this['annotations'])_0x454036['includes'](_0x4d414f)||this['_removeAnnotationFromBalloon'](_0x4d414f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x3148cb of _0x454036)this['_addAnnotationToBalloon'](_0x3148cb);}this['_selectedAnnotations']=_0x454036;}['_addAnnotationToBalloon'](_0x2c5598,_0x577a27=!0x1){this['_manuallyClosed']['has'](_0x2c5598)||(this['_addedAnnotations']['has'](_0x2c5598)||this['_balloon']['hasView'](_0x2c5598['view'])||(this['_addedAnnotations']['add'](_0x2c5598),this['_balloon']['add']({'stackId':_0x2c5598['view']['id'],'view':_0x2c5598['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2c5598)}})),_0x577a27&&this['_balloon']['showStack'](_0x2c5598['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3c3994){const _0x5b7a89=_0x3c3994['target'],_0x5d7a06=this['editor']['editing']['view'],_0x3c9806=_0x5d7a06['document']['selection']['getFirstRange'](),_0x254f5d=_0x5d7a06['domConverter']['viewRangeToDom'](_0x3c9806);if(_0x254f5d['collapse'](!0x0),_0x5b7a89){if(_0x5b7a89 instanceof _0x182c6f)return _0x5b7a89;let _0x37619a=[];for(const _0x2a0adf of _0x5b7a89)_0x37619a['push'](...(_0x1c1139=_0x2a0adf['getClientRects'](),Array['from'](_0x1c1139)['map'](DOMRect['fromRect'])));_0x37619a=function(_0x3112e5){const _0x337d81=[];let _0x2538ac=_0x3112e5[0x0];for(let _0x456a89=0x1;_0x456a89<_0x3112e5['length'];_0x456a89++)b(_0x2538ac,_0x3112e5[_0x456a89])?_0x2538ac['width']+=_0x3112e5[_0x456a89]['width']:(_0x337d81['push'](_0x2538ac),_0x2538ac=_0x3112e5[_0x456a89]);return _0x337d81['push'](_0x2538ac),_0x337d81;}(_0x37619a);const _0x47358f=_0x254f5d['getBoundingClientRect']();return _0x37619a['find'](_0x4546d8=>_0x4546d8['top']<=_0x47358f['top']&&_0x4546d8['bottom']>=_0x47358f['bottom']&&_0x4546d8['left']<=_0x47358f['left']&&_0x4546d8['right']>=_0x47358f['right'])||_0x37619a[0x0];}var _0x1c1139;return _0x3c3994['targetRect']||_0x254f5d;}['_removeAnnotationFromBalloon'](_0x131390){this['_addedAnnotations']['has'](_0x131390)&&this['_balloon']['hasView'](_0x131390['view'])&&(this['_addedAnnotations']['delete'](_0x131390),this['_balloon']['remove'](_0x131390['view']));}['_closeAnnotation'](_0xba7573){this['_manuallyClosed']['add'](_0xba7573),this['_removeAnnotationFromBalloon'](_0xba7573);}}function b(_0x2ad113,_0x4eba74){return _0x2ad113['top']===_0x4eba74['top']&&_0x2ad113['bottom']===_0x4eba74['bottom']&&_0x2ad113['right']===_0x4eba74['left'];}var it='<!--\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 st extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x4a37f8,_0x2ce854){super(_0x4a37f8),this['set']('isEmpty',!_0x2ce854['length']),this['focusTracker']=new _0x450a05(),this['_annotationViews']=_0x2ce854,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x2ce854,'focusTracker':this['focusTracker']}),this['listenTo'](_0x2ce854,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x2ce854,'remove',(_0x466600,_0x4aebb8)=>{_0x4aebb8['isActive']&&this['focus'](),_0x2ce854['length']||(this['isEmpty']=!0x0);});const _0x3c0002=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x4a37f8,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x2ce854},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x3c0002['if']('isEmpty','ck-hidden',_0x3b2368=>!_0x3b2368)]},'children':[{'text':S(_0x4a37f8,'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 _0x88b855 of this['_annotationViews'])this['focusTracker']['add'](_0x88b855['element']);this['_annotationViews']['on']('change',(_0x380746,{added:_0x407cb9,removed:_0x5ec785})=>{for(const _0x42ff65 of _0x407cb9)this['focusTracker']['add'](_0x42ff65['element']);for(const _0x331ac0 of _0x5ec785)this['focusTracker']['remove'](_0x331ac0['element']);});}}class f extends _0x41c971{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x14c187){super(_0x14c187),this['archivedThreads']=new _0x15524d();}['init'](){const _0x42fe1d=this['context'],_0x264c42=_0x42fe1d['plugins']['get'](o),_0xef3685=_0x42fe1d['plugins']['get'](N);this['listenTo'](_0x264c42,'addCommentThread',(_0x2cfb9f,{threadId:_0x8d3ec})=>{const _0x589238=_0x264c42['getCommentThread'](_0x8d3ec);_0x589238['archivedAt']&&this['archivedThreads']['add'](_0x589238,this['_calculatePosition'](_0x589238['archivedAt'])),this['listenTo'](_0x589238,'change:archivedAt',(_0x4a0723,_0x349dc6,_0x11d040)=>{_0x11d040?this['archivedThreads']['has'](_0x589238)||this['archivedThreads']['add'](_0x589238,this['_calculatePosition'](_0x589238['archivedAt'])):this['archivedThreads']['has'](_0x589238)&&this['archivedThreads']['remove'](_0x589238);});}),this['listenTo'](_0x264c42,'removeCommentThread',(_0x106e94,{threadId:_0x522f5a})=>{const _0x54fc59=_0x264c42['getCommentThread'](_0x522f5a);this['stopListening'](_0x54fc59),this['archivedThreads']['has'](_0x54fc59)&&this['archivedThreads']['remove'](_0x54fc59);},{'priority':'highest'}),this['listenTo'](_0xef3685['collection'],'focus',(_0x235d23,_0x404f26)=>{_0x404f26['isVisible']||(_0x404f26['isActive']=!0x0,_0xef3685['activate'](_0x404f26));});}['_calculatePosition'](_0x3a93aa){const _0xbd8c0e=[...this['archivedThreads']]['findIndex'](_0x5dc556=>_0x5dc556['archivedAt']<_0x3a93aa);return _0xbd8c0e>-0x1?_0xbd8c0e:this['archivedThreads']['length'];}}class a extends _0x5825dc{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x413fb6];}constructor(_0x1ee255){super(_0x1ee255),this['annotationViews']=new _0x34bcaf(),this['_pendingThreads']=[];}['init'](){const _0x50b679=this['editor'],_0x280967=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x50b679['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x576862,!0x0)),_0x50b679['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2785b0=this['_createCommentsArchiveButton'](_0x15b94b);return _0x2785b0['set']({'role':'menuitemcheckbox'}),_0x2785b0;});const _0xd83664=_0x50b679['plugins']['get'](f),_0x3988f6=_0x50b679['plugins']['get']('Annotations'),_0x5ad709=_0x50b679['plugins']['get']('CommentsRepository');this['listenTo'](_0xd83664['archivedThreads'],'add',(_0x3d73e4,_0x39803b)=>{const _0x3687a3=_0x50b679['config']['get']('collaboration.channelId');if(!_0x3687a3||_0x39803b['channelId']===_0x3687a3){const _0x4f2073=_0x5ad709['_threadToController']['get'](_0x39803b);if(!_0x4f2073)return void this['_pendingThreads']['push'](_0x39803b);const _0x2eb109=this['_calculatePosition'](_0x39803b['archivedAt']),_0x4ce725=_0x3988f6['getByInnerView'](_0x4f2073['view']);_0x4ce725['isVisible']&&_0x3988f6['_visibleAnnotations']['remove'](_0x4ce725),this['annotationViews']['add'](_0x4ce725['view'],_0x2eb109);}}),this['listenTo'](_0x3988f6['collection'],'add',(_0x34bd3a,_0x188379)=>{const _0x29725a=this['_pendingThreads']['find'](_0x4b5129=>{const _0x38efde=_0x5ad709['_threadToController']['get'](_0x4b5129);return _0x38efde&&_0x188379['innerView']===_0x38efde['view'];});if(_0x29725a){const _0x1eb544=this['_calculatePosition'](_0x29725a['archivedAt']);this['annotationViews']['add'](_0x188379['view'],_0x1eb544),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x29725a),0x1);}}),this['listenTo'](_0xd83664['archivedThreads'],'remove',(_0x424acd,_0x2595d0)=>{const _0x46782f=_0x50b679['config']['get']('collaboration.channelId');if(!_0x46782f||_0x2595d0['channelId']===_0x46782f){const _0x5477e4=_0x5ad709['_threadToController']['get'](_0x2595d0),_0x4cad39=_0x3988f6['getByInnerView'](_0x5477e4['view']);this['annotationViews']['remove'](_0x4cad39['view']),this['stopListening'](_0x4cad39['focusableElements']);}}),this['listenTo'](_0x3988f6['collection'],'add',(_0x300751,_0x8b301c)=>{this['listenTo'](_0x8b301c,'escape',_0x280967);}),this['listenTo'](_0x3988f6['collection'],'remove',(_0x29a1a4,_0x1238a1)=>{this['stopListening'](_0x1238a1,'escape',_0x280967);});}['_calculatePosition'](_0xc98c36){const _0x456310=this['editor']['config']['get']('collaboration.channelId'),_0xaac2f3=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x26b165=>_0x26b165['channelId']===_0x456310)['findIndex'](_0x2a2561=>_0x2a2561['archivedAt']<_0xc98c36);return _0xaac2f3<0x0||_0xaac2f3>this['annotationViews']['length']?this['annotationViews']['length']:_0xaac2f3-0x1;}['_toggleDialog'](){const _0x243370=this['editor'],_0x2a4048=_0x243370['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new st(_0x243370['locale'],this['annotationViews'])),'commentsArchive'===_0x2a4048['id']?_0x2a4048['hide']():_0x2a4048['show']({'id':'commentsArchive','title':S(_0x243370['locale'],'COMMENTS_ARCHIVE'),'icon':it,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':tt['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x677e2e,_0x410b31=!0x1){const _0x128961=this['editor']['locale'],_0x2c3986=this['editor']['plugins']['get']('Dialog'),_0x1e112c=new _0x677e2e(_0x128961);return _0x1e112c['bind']('isEnabled')['to'](this,'isEnabled'),_0x1e112c['bind']('isOn')['to'](_0x2c3986,'id',_0xe557a5=>'commentsArchive'===_0xe557a5),_0x1e112c['set']({'label':S(_0x128961,'COMMENTS_ARCHIVE'),'icon':it,'isToggleable':!0x0}),_0x410b31&&(_0x1e112c['tooltip']=!0x0),this['listenTo'](_0x1e112c,'execute',()=>this['_toggleDialog']()),_0x1e112c;}['_hideDialogOnAnnotationEscape']=_0x537cad=>{const _0x1a4c07=_0x537cad['source'];if(!this['annotationViews']['has'](_0x1a4c07['view']))return;const _0x1ff898=this['editor']['plugins']['get']('Dialog');_0x1ff898['isOpen']&&'commentsArchive'===_0x1ff898['id']&&(_0x1ff898['hide'](),_0x537cad['stop']());};}class p extends _0x5825dc{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,vt as CommentThreadController,Pt as CommentThreadInputView,gt as CommentThreadView,Tt 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};
|